@3sc/common-component 0.0.574 → 0.0.576
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +2 -2
- package/dist/common-component.css +0 -1
- package/dist/index-DdXpyoz3.js +0 -45035
- package/dist/index-DdXpyoz3.js.map +0 -1
- package/dist/index.es.js +0 -27
- package/dist/index.es.js.map +0 -1
- package/dist/index.umd.js +0 -257
- package/dist/index.umd.js.map +0 -1
- package/dist/nl-BTxxLUUu.js +0 -327
- package/dist/nl-BTxxLUUu.js.map +0 -1
- package/dist/tr-B_2_iGCT.js +0 -379
- package/dist/tr-B_2_iGCT.js.map +0 -1
- package/dist/vite.svg +0 -1
package/dist/index.umd.js
DELETED
|
@@ -1,257 +0,0 @@
|
|
|
1
|
-
(function(it,x){typeof exports=="object"&&typeof module<"u"?x(exports,require("react"),require("react-dom")):typeof define=="function"&&define.amd?define(["exports","react","react-dom"],x):(it=typeof globalThis<"u"?globalThis:it||self,x(it.ScaiCommonComponent={},it.React,it.ReactDOM))})(this,(function(it,x,Is){"use strict";function yp(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const n in e)if(n!=="default"){const r=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,r.get?r:{enumerable:!0,get:()=>e[n]})}}return t.default=e,Object.freeze(t)}const I=yp(x),sx=yp(Is);function ix(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var ua={exports:{}},Ds={};var bp;function ax(){if(bp)return Ds;bp=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.fragment");function n(r,o,s){var a=null;if(s!==void 0&&(a=""+s),o.key!==void 0&&(a=""+o.key),"key"in o){s={};for(var l in o)l!=="key"&&(s[l]=o[l])}else s=o;return o=s.ref,{$$typeof:e,type:r,key:a,ref:o!==void 0?o:null,props:s}}return Ds.Fragment=t,Ds.jsx=n,Ds.jsxs=n,Ds}var As={};var vp;function lx(){return vp||(vp=1,process.env.NODE_ENV!=="production"&&(function(){function e(D){if(D==null)return null;if(typeof D=="function")return D.$$typeof===L?null:D.displayName||D.name||null;if(typeof D=="string")return D;switch(D){case b:return"Fragment";case k:return"Profiler";case v:return"StrictMode";case T:return"Suspense";case E:return"SuspenseList";case A:return"Activity"}if(typeof D=="object")switch(typeof D.tag=="number"&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),D.$$typeof){case y:return"Portal";case C:return D.displayName||"Context";case S:return(D._context.displayName||"Context")+".Consumer";case w:var z=D.render;return D=D.displayName,D||(D=z.displayName||z.name||"",D=D!==""?"ForwardRef("+D+")":"ForwardRef"),D;case M:return z=D.displayName||null,z!==null?z:e(D.type)||"Memo";case j:z=D._payload,D=D._init;try{return e(D(z))}catch{}}return null}function t(D){return""+D}function n(D){try{t(D);var z=!1}catch{z=!0}if(z){z=console;var V=z.error,X=typeof Symbol=="function"&&Symbol.toStringTag&&D[Symbol.toStringTag]||D.constructor.name||"Object";return V.call(z,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",X),t(D)}}function r(D){if(D===b)return"<>";if(typeof D=="object"&&D!==null&&D.$$typeof===j)return"<...>";try{var z=e(D);return z?"<"+z+">":"<...>"}catch{return"<...>"}}function o(){var D=O.A;return D===null?null:D.getOwner()}function s(){return Error("react-stack-top-frame")}function a(D){if(N.call(D,"key")){var z=Object.getOwnPropertyDescriptor(D,"key").get;if(z&&z.isReactWarning)return!1}return D.key!==void 0}function l(D,z){function V(){$||($=!0,console.error("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",z))}V.isReactWarning=!0,Object.defineProperty(D,"key",{get:V,configurable:!0})}function c(){var D=e(this.type);return _[D]||(_[D]=!0,console.error("Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release.")),D=this.props.ref,D!==void 0?D:null}function d(D,z,V,X,G,Y){var K=V.ref;return D={$$typeof:g,type:D,key:z,props:V,_owner:X},(K!==void 0?K:null)!==null?Object.defineProperty(D,"ref",{enumerable:!1,get:c}):Object.defineProperty(D,"ref",{enumerable:!1,value:null}),D._store={},Object.defineProperty(D._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty(D,"_debugInfo",{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.defineProperty(D,"_debugStack",{configurable:!1,enumerable:!1,writable:!0,value:G}),Object.defineProperty(D,"_debugTask",{configurable:!1,enumerable:!1,writable:!0,value:Y}),Object.freeze&&(Object.freeze(D.props),Object.freeze(D)),D}function u(D,z,V,X,G,Y){var K=z.children;if(K!==void 0)if(X)if(P(K)){for(X=0;X<K.length;X++)f(K[X]);Object.freeze&&Object.freeze(K)}else console.error("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else f(K);if(N.call(z,"key")){K=e(D);var ae=Object.keys(z).filter(function(W){return W!=="key"});X=0<ae.length?"{key: someKey, "+ae.join(": ..., ")+": ...}":"{key: someKey}",B[K+X]||(ae=0<ae.length?"{"+ae.join(": ..., ")+": ...}":"{}",console.error(`A props object containing a "key" prop is being spread into JSX:
|
|
2
|
-
let props = %s;
|
|
3
|
-
<%s {...props} />
|
|
4
|
-
React keys must be passed directly to JSX without using spread:
|
|
5
|
-
let props = %s;
|
|
6
|
-
<%s key={someKey} {...props} />`,X,K,ae,K),B[K+X]=!0)}if(K=null,V!==void 0&&(n(V),K=""+V),a(z)&&(n(z.key),K=""+z.key),"key"in z){V={};for(var le in z)le!=="key"&&(V[le]=z[le])}else V=z;return K&&l(V,typeof D=="function"?D.displayName||D.name||"Unknown":D),d(D,K,V,o(),G,Y)}function f(D){h(D)?D._store&&(D._store.validated=1):typeof D=="object"&&D!==null&&D.$$typeof===j&&(D._payload.status==="fulfilled"?h(D._payload.value)&&D._payload.value._store&&(D._payload.value._store.validated=1):D._store&&(D._store.validated=1))}function h(D){return typeof D=="object"&&D!==null&&D.$$typeof===g}var m=x,g=Symbol.for("react.transitional.element"),y=Symbol.for("react.portal"),b=Symbol.for("react.fragment"),v=Symbol.for("react.strict_mode"),k=Symbol.for("react.profiler"),S=Symbol.for("react.consumer"),C=Symbol.for("react.context"),w=Symbol.for("react.forward_ref"),T=Symbol.for("react.suspense"),E=Symbol.for("react.suspense_list"),M=Symbol.for("react.memo"),j=Symbol.for("react.lazy"),A=Symbol.for("react.activity"),L=Symbol.for("react.client.reference"),O=m.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,N=Object.prototype.hasOwnProperty,P=Array.isArray,R=console.createTask?console.createTask:function(){return null};m={react_stack_bottom_frame:function(D){return D()}};var $,_={},U=m.react_stack_bottom_frame.bind(m,s)(),H=R(r(s)),B={};As.Fragment=b,As.jsx=function(D,z,V){var X=1e4>O.recentlyCreatedOwnerStacks++;return u(D,z,V,!1,X?Error("react-stack-top-frame"):U,X?R(r(D)):H)},As.jsxs=function(D,z,V){var X=1e4>O.recentlyCreatedOwnerStacks++;return u(D,z,V,!0,X?Error("react-stack-top-frame"):U,X?R(r(D)):H)}})()),As}var xp;function cx(){return xp||(xp=1,process.env.NODE_ENV==="production"?ua.exports=ax():ua.exports=lx()),ua.exports}var p=cx();const Rs={black:"#000",white:"#fff"},Io={300:"#e57373",400:"#ef5350",500:"#f44336",700:"#d32f2f",800:"#c62828"},Do={50:"#f3e5f5",200:"#ce93d8",300:"#ba68c8",400:"#ab47bc",500:"#9c27b0",700:"#7b1fa2"},Ao={50:"#e3f2fd",200:"#90caf9",400:"#42a5f5",700:"#1976d2",800:"#1565c0"},Ro={300:"#4fc3f7",400:"#29b6f6",500:"#03a9f4",700:"#0288d1",900:"#01579b"},No={300:"#81c784",400:"#66bb6a",500:"#4caf50",700:"#388e3c",800:"#2e7d32",900:"#1b5e20"},Ns={300:"#ffb74d",400:"#ffa726",500:"#ff9800",700:"#f57c00",900:"#e65100"},dx={50:"#fafafa",100:"#f5f5f5",200:"#eeeeee",300:"#e0e0e0",400:"#bdbdbd",500:"#9e9e9e",600:"#757575",700:"#616161",800:"#424242",900:"#212121",A100:"#f5f5f5",A200:"#eeeeee",A400:"#bdbdbd",A700:"#616161"};function Qn(e,...t){const n=new URL(`https://mui.com/production-error/?code=${e}`);return t.forEach(r=>n.searchParams.append("args[]",r)),`Minified MUI error #${e}; visit ${n} for the full message.`}const er="$$material";function fa(){return fa=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},fa.apply(null,arguments)}function ux(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]}function fx(e){var t=document.createElement("style");return t.setAttribute("data-emotion",e.key),e.nonce!==void 0&&t.setAttribute("nonce",e.nonce),t.appendChild(document.createTextNode("")),t.setAttribute("data-s",""),t}var px=(function(){function e(n){var r=this;this._insertTag=function(o){var s;r.tags.length===0?r.insertionPoint?s=r.insertionPoint.nextSibling:r.prepend?s=r.container.firstChild:s=r.before:s=r.tags[r.tags.length-1].nextSibling,r.container.insertBefore(o,s),r.tags.push(o)},this.isSpeedy=n.speedy===void 0?!0:n.speedy,this.tags=[],this.ctr=0,this.nonce=n.nonce,this.key=n.key,this.container=n.container,this.prepend=n.prepend,this.insertionPoint=n.insertionPoint,this.before=null}var t=e.prototype;return t.hydrate=function(r){r.forEach(this._insertTag)},t.insert=function(r){this.ctr%(this.isSpeedy?65e3:1)===0&&this._insertTag(fx(this));var o=this.tags[this.tags.length-1];if(this.isSpeedy){var s=ux(o);try{s.insertRule(r,s.cssRules.length)}catch{}}else o.appendChild(document.createTextNode(r));this.ctr++},t.flush=function(){this.tags.forEach(function(r){var o;return(o=r.parentNode)==null?void 0:o.removeChild(r)}),this.tags=[],this.ctr=0},e})(),Qt="-ms-",pa="-moz-",ot="-webkit-",wp="comm",xc="rule",wc="decl",hx="@import",Sp="@keyframes",mx="@layer",gx=Math.abs,ha=String.fromCharCode,yx=Object.assign;function bx(e,t){return qt(e,0)^45?(((t<<2^qt(e,0))<<2^qt(e,1))<<2^qt(e,2))<<2^qt(e,3):0}function Cp(e){return e.trim()}function vx(e,t){return(e=t.exec(e))?e[0]:e}function st(e,t,n){return e.replace(t,n)}function Sc(e,t){return e.indexOf(t)}function qt(e,t){return e.charCodeAt(t)|0}function $s(e,t,n){return e.slice(t,n)}function tr(e){return e.length}function Cc(e){return e.length}function ma(e,t){return t.push(e),e}function xx(e,t){return e.map(t).join("")}var ga=1,$o=1,Tp=0,un=0,Lt=0,Lo="";function ya(e,t,n,r,o,s,a){return{value:e,root:t,parent:n,type:r,props:o,children:s,line:ga,column:$o,length:a,return:""}}function Ls(e,t){return yx(ya("",null,null,"",null,null,0),e,{length:-e.length},t)}function wx(){return Lt}function Sx(){return Lt=un>0?qt(Lo,--un):0,$o--,Lt===10&&($o=1,ga--),Lt}function bn(){return Lt=un<Tp?qt(Lo,un++):0,$o++,Lt===10&&($o=1,ga++),Lt}function nr(){return qt(Lo,un)}function ba(){return un}function Bs(e,t){return $s(Lo,e,t)}function _s(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 kp(e){return ga=$o=1,Tp=tr(Lo=e),un=0,[]}function Ep(e){return Lo="",e}function va(e){return Cp(Bs(un-1,Tc(e===91?e+2:e===40?e+1:e)))}function Cx(e){for(;(Lt=nr())&&Lt<33;)bn();return _s(e)>2||_s(Lt)>3?"":" "}function Tx(e,t){for(;--t&&bn()&&!(Lt<48||Lt>102||Lt>57&&Lt<65||Lt>70&&Lt<97););return Bs(e,ba()+(t<6&&nr()==32&&bn()==32))}function Tc(e){for(;bn();)switch(Lt){case e:return un;case 34:case 39:e!==34&&e!==39&&Tc(Lt);break;case 40:e===41&&Tc(e);break;case 92:bn();break}return un}function kx(e,t){for(;bn()&&e+Lt!==57;)if(e+Lt===84&&nr()===47)break;return"/*"+Bs(t,un-1)+"*"+ha(e===47?e:bn())}function Ex(e){for(;!_s(nr());)bn();return Bs(e,un)}function Ox(e){return Ep(xa("",null,null,null,[""],e=kp(e),0,[0],e))}function xa(e,t,n,r,o,s,a,l,c){for(var d=0,u=0,f=a,h=0,m=0,g=0,y=1,b=1,v=1,k=0,S="",C=o,w=s,T=r,E=S;b;)switch(g=k,k=bn()){case 40:if(g!=108&&qt(E,f-1)==58){Sc(E+=st(va(k),"&","&\f"),"&\f")!=-1&&(v=-1);break}case 34:case 39:case 91:E+=va(k);break;case 9:case 10:case 13:case 32:E+=Cx(g);break;case 92:E+=Tx(ba()-1,7);continue;case 47:switch(nr()){case 42:case 47:ma(Mx(kx(bn(),ba()),t,n),c);break;default:E+="/"}break;case 123*y:l[d++]=tr(E)*v;case 125*y:case 59:case 0:switch(k){case 0:case 125:b=0;case 59+u:v==-1&&(E=st(E,/\f/g,"")),m>0&&tr(E)-f&&ma(m>32?Mp(E+";",r,n,f-1):Mp(st(E," ","")+";",r,n,f-2),c);break;case 59:E+=";";default:if(ma(T=Op(E,t,n,d,u,o,l,S,C=[],w=[],f),s),k===123)if(u===0)xa(E,t,T,T,C,s,f,l,w);else switch(h===99&&qt(E,3)===110?100:h){case 100:case 108:case 109:case 115:xa(e,T,T,r&&ma(Op(e,T,T,0,0,o,l,S,o,C=[],f),w),o,w,f,l,r?C:w);break;default:xa(E,T,T,T,[""],w,0,l,w)}}d=u=m=0,y=v=1,S=E="",f=a;break;case 58:f=1+tr(E),m=g;default:if(y<1){if(k==123)--y;else if(k==125&&y++==0&&Sx()==125)continue}switch(E+=ha(k),k*y){case 38:v=u>0?1:(E+="\f",-1);break;case 44:l[d++]=(tr(E)-1)*v,v=1;break;case 64:nr()===45&&(E+=va(bn())),h=nr(),u=f=tr(S=E+=Ex(ba())),k++;break;case 45:g===45&&tr(E)==2&&(y=0)}}return s}function Op(e,t,n,r,o,s,a,l,c,d,u){for(var f=o-1,h=o===0?s:[""],m=Cc(h),g=0,y=0,b=0;g<r;++g)for(var v=0,k=$s(e,f+1,f=gx(y=a[g])),S=e;v<m;++v)(S=Cp(y>0?h[v]+" "+k:st(k,/&\f/g,h[v])))&&(c[b++]=S);return ya(e,t,n,o===0?xc:l,c,d,u)}function Mx(e,t,n){return ya(e,t,n,wp,ha(wx()),$s(e,2,-2),0)}function Mp(e,t,n,r){return ya(e,t,n,wc,$s(e,0,r),$s(e,r+1,-1),r)}function Bo(e,t){for(var n="",r=Cc(e),o=0;o<r;o++)n+=t(e[o],o,e,t)||"";return n}function Px(e,t,n,r){switch(e.type){case mx:if(e.children.length)break;case hx:case wc:return e.return=e.return||e.value;case wp:return"";case Sp:return e.return=e.value+"{"+Bo(e.children,r)+"}";case xc:e.value=e.props.join(",")}return tr(n=Bo(e.children,r))?e.return=e.value+"{"+n+"}":""}function jx(e){var t=Cc(e);return function(n,r,o,s){for(var a="",l=0;l<t;l++)a+=e[l](n,r,o,s)||"";return a}}function Ix(e){return function(t){t.root||(t=t.return)&&e(t)}}function Pp(e){var t=Object.create(null);return function(n){return t[n]===void 0&&(t[n]=e(n)),t[n]}}var Dx=function(t,n,r){for(var o=0,s=0;o=s,s=nr(),o===38&&s===12&&(n[r]=1),!_s(s);)bn();return Bs(t,un)},Ax=function(t,n){var r=-1,o=44;do switch(_s(o)){case 0:o===38&&nr()===12&&(n[r]=1),t[r]+=Dx(un-1,n,r);break;case 2:t[r]+=va(o);break;case 4:if(o===44){t[++r]=nr()===58?"&\f":"",n[r]=t[r].length;break}default:t[r]+=ha(o)}while(o=bn());return t},Rx=function(t,n){return Ep(Ax(kp(t),n))},jp=new WeakMap,Nx=function(t){if(!(t.type!=="rule"||!t.parent||t.length<1)){for(var n=t.value,r=t.parent,o=t.column===r.column&&t.line===r.line;r.type!=="rule";)if(r=r.parent,!r)return;if(!(t.props.length===1&&n.charCodeAt(0)!==58&&!jp.get(r))&&!o){jp.set(t,!0);for(var s=[],a=Rx(n,s),l=r.props,c=0,d=0;c<a.length;c++)for(var u=0;u<l.length;u++,d++)t.props[d]=s[c]?a[c].replace(/&\f/g,l[u]):l[u]+" "+a[c]}}},$x=function(t){if(t.type==="decl"){var n=t.value;n.charCodeAt(0)===108&&n.charCodeAt(2)===98&&(t.return="",t.value="")}};function Ip(e,t){switch(bx(e,t)){case 5103:return ot+"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 ot+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return ot+e+pa+e+Qt+e+e;case 6828:case 4268:return ot+e+Qt+e+e;case 6165:return ot+e+Qt+"flex-"+e+e;case 5187:return ot+e+st(e,/(\w+).+(:[^]+)/,ot+"box-$1$2"+Qt+"flex-$1$2")+e;case 5443:return ot+e+Qt+"flex-item-"+st(e,/flex-|-self/,"")+e;case 4675:return ot+e+Qt+"flex-line-pack"+st(e,/align-content|flex-|-self/,"")+e;case 5548:return ot+e+Qt+st(e,"shrink","negative")+e;case 5292:return ot+e+Qt+st(e,"basis","preferred-size")+e;case 6060:return ot+"box-"+st(e,"-grow","")+ot+e+Qt+st(e,"grow","positive")+e;case 4554:return ot+st(e,/([^-])(transform)/g,"$1"+ot+"$2")+e;case 6187:return st(st(st(e,/(zoom-|grab)/,ot+"$1"),/(image-set)/,ot+"$1"),e,"")+e;case 5495:case 3959:return st(e,/(image-set\([^]*)/,ot+"$1$`$1");case 4968:return st(st(e,/(.+:)(flex-)?(.*)/,ot+"box-pack:$3"+Qt+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+ot+e+e;case 4095:case 3583:case 4068:case 2532:return st(e,/(.+)-inline(.+)/,ot+"$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(tr(e)-1-t>6)switch(qt(e,t+1)){case 109:if(qt(e,t+4)!==45)break;case 102:return st(e,/(.+:)(.+)-([^]+)/,"$1"+ot+"$2-$3$1"+pa+(qt(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~Sc(e,"stretch")?Ip(st(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(qt(e,t+1)!==115)break;case 6444:switch(qt(e,tr(e)-3-(~Sc(e,"!important")&&10))){case 107:return st(e,":",":"+ot)+e;case 101:return st(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+ot+(qt(e,14)===45?"inline-":"")+"box$3$1"+ot+"$2$3$1"+Qt+"$2box$3")+e}break;case 5936:switch(qt(e,t+11)){case 114:return ot+e+Qt+st(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return ot+e+Qt+st(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return ot+e+Qt+st(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return ot+e+Qt+e+e}return e}var Lx=function(t,n,r,o){if(t.length>-1&&!t.return)switch(t.type){case wc:t.return=Ip(t.value,t.length);break;case Sp:return Bo([Ls(t,{value:st(t.value,"@","@"+ot)})],o);case xc:if(t.length)return xx(t.props,function(s){switch(vx(s,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return Bo([Ls(t,{props:[st(s,/:(read-\w+)/,":"+pa+"$1")]})],o);case"::placeholder":return Bo([Ls(t,{props:[st(s,/:(plac\w+)/,":"+ot+"input-$1")]}),Ls(t,{props:[st(s,/:(plac\w+)/,":"+pa+"$1")]}),Ls(t,{props:[st(s,/:(plac\w+)/,Qt+"input-$1")]})],o)}return""})}},Bx=[Lx],_x=function(t){var n=t.key;if(n==="css"){var r=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(r,function(y){var b=y.getAttribute("data-emotion");b.indexOf(" ")!==-1&&(document.head.appendChild(y),y.setAttribute("data-s",""))})}var o=t.stylisPlugins||Bx,s={},a,l=[];a=t.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+n+' "]'),function(y){for(var b=y.getAttribute("data-emotion").split(" "),v=1;v<b.length;v++)s[b[v]]=!0;l.push(y)});var c,d=[Nx,$x];{var u,f=[Px,Ix(function(y){u.insert(y)})],h=jx(d.concat(o,f)),m=function(b){return Bo(Ox(b),h)};c=function(b,v,k,S){u=k,m(b?b+"{"+v.styles+"}":v.styles),S&&(g.inserted[v.name]=!0)}}var g={key:n,sheet:new px({key:n,container:a,nonce:t.nonce,speedy:t.speedy,prepend:t.prepend,insertionPoint:t.insertionPoint}),nonce:t.nonce,inserted:s,registered:{},insert:c};return g.sheet.hydrate(l),g},wa={exports:{}},at={};var Dp;function Fx(){if(Dp)return at;Dp=1;var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,n=e?Symbol.for("react.portal"):60106,r=e?Symbol.for("react.fragment"):60107,o=e?Symbol.for("react.strict_mode"):60108,s=e?Symbol.for("react.profiler"):60114,a=e?Symbol.for("react.provider"):60109,l=e?Symbol.for("react.context"):60110,c=e?Symbol.for("react.async_mode"):60111,d=e?Symbol.for("react.concurrent_mode"):60111,u=e?Symbol.for("react.forward_ref"):60112,f=e?Symbol.for("react.suspense"):60113,h=e?Symbol.for("react.suspense_list"):60120,m=e?Symbol.for("react.memo"):60115,g=e?Symbol.for("react.lazy"):60116,y=e?Symbol.for("react.block"):60121,b=e?Symbol.for("react.fundamental"):60117,v=e?Symbol.for("react.responder"):60118,k=e?Symbol.for("react.scope"):60119;function S(w){if(typeof w=="object"&&w!==null){var T=w.$$typeof;switch(T){case t:switch(w=w.type,w){case c:case d:case r:case s:case o:case f:return w;default:switch(w=w&&w.$$typeof,w){case l:case u:case g:case m:case a:return w;default:return T}}case n:return T}}}function C(w){return S(w)===d}return at.AsyncMode=c,at.ConcurrentMode=d,at.ContextConsumer=l,at.ContextProvider=a,at.Element=t,at.ForwardRef=u,at.Fragment=r,at.Lazy=g,at.Memo=m,at.Portal=n,at.Profiler=s,at.StrictMode=o,at.Suspense=f,at.isAsyncMode=function(w){return C(w)||S(w)===c},at.isConcurrentMode=C,at.isContextConsumer=function(w){return S(w)===l},at.isContextProvider=function(w){return S(w)===a},at.isElement=function(w){return typeof w=="object"&&w!==null&&w.$$typeof===t},at.isForwardRef=function(w){return S(w)===u},at.isFragment=function(w){return S(w)===r},at.isLazy=function(w){return S(w)===g},at.isMemo=function(w){return S(w)===m},at.isPortal=function(w){return S(w)===n},at.isProfiler=function(w){return S(w)===s},at.isStrictMode=function(w){return S(w)===o},at.isSuspense=function(w){return S(w)===f},at.isValidElementType=function(w){return typeof w=="string"||typeof w=="function"||w===r||w===d||w===s||w===o||w===f||w===h||typeof w=="object"&&w!==null&&(w.$$typeof===g||w.$$typeof===m||w.$$typeof===a||w.$$typeof===l||w.$$typeof===u||w.$$typeof===b||w.$$typeof===v||w.$$typeof===k||w.$$typeof===y)},at.typeOf=S,at}var lt={};var Ap;function Wx(){return Ap||(Ap=1,process.env.NODE_ENV!=="production"&&(function(){var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,n=e?Symbol.for("react.portal"):60106,r=e?Symbol.for("react.fragment"):60107,o=e?Symbol.for("react.strict_mode"):60108,s=e?Symbol.for("react.profiler"):60114,a=e?Symbol.for("react.provider"):60109,l=e?Symbol.for("react.context"):60110,c=e?Symbol.for("react.async_mode"):60111,d=e?Symbol.for("react.concurrent_mode"):60111,u=e?Symbol.for("react.forward_ref"):60112,f=e?Symbol.for("react.suspense"):60113,h=e?Symbol.for("react.suspense_list"):60120,m=e?Symbol.for("react.memo"):60115,g=e?Symbol.for("react.lazy"):60116,y=e?Symbol.for("react.block"):60121,b=e?Symbol.for("react.fundamental"):60117,v=e?Symbol.for("react.responder"):60118,k=e?Symbol.for("react.scope"):60119;function S(F){return typeof F=="string"||typeof F=="function"||F===r||F===d||F===s||F===o||F===f||F===h||typeof F=="object"&&F!==null&&(F.$$typeof===g||F.$$typeof===m||F.$$typeof===a||F.$$typeof===l||F.$$typeof===u||F.$$typeof===b||F.$$typeof===v||F.$$typeof===k||F.$$typeof===y)}function C(F){if(typeof F=="object"&&F!==null){var fe=F.$$typeof;switch(fe){case t:var se=F.type;switch(se){case c:case d:case r:case s:case o:case f:return se;default:var Z=se&&se.$$typeof;switch(Z){case l:case u:case g:case m:case a:return Z;default:return fe}}case n:return fe}}}var w=c,T=d,E=l,M=a,j=t,A=u,L=r,O=g,N=m,P=n,R=s,$=o,_=f,U=!1;function H(F){return U||(U=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")),B(F)||C(F)===c}function B(F){return C(F)===d}function D(F){return C(F)===l}function z(F){return C(F)===a}function V(F){return typeof F=="object"&&F!==null&&F.$$typeof===t}function X(F){return C(F)===u}function G(F){return C(F)===r}function Y(F){return C(F)===g}function K(F){return C(F)===m}function ae(F){return C(F)===n}function le(F){return C(F)===s}function W(F){return C(F)===o}function ee(F){return C(F)===f}lt.AsyncMode=w,lt.ConcurrentMode=T,lt.ContextConsumer=E,lt.ContextProvider=M,lt.Element=j,lt.ForwardRef=A,lt.Fragment=L,lt.Lazy=O,lt.Memo=N,lt.Portal=P,lt.Profiler=R,lt.StrictMode=$,lt.Suspense=_,lt.isAsyncMode=H,lt.isConcurrentMode=B,lt.isContextConsumer=D,lt.isContextProvider=z,lt.isElement=V,lt.isForwardRef=X,lt.isFragment=G,lt.isLazy=Y,lt.isMemo=K,lt.isPortal=ae,lt.isProfiler=le,lt.isStrictMode=W,lt.isSuspense=ee,lt.isValidElementType=S,lt.typeOf=C})()),lt}var Rp;function zx(){return Rp||(Rp=1,process.env.NODE_ENV==="production"?wa.exports=Fx():wa.exports=Wx()),wa.exports}var kc,Np;function Vx(){if(Np)return kc;Np=1;var e=zx(),t={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},n={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},r={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},o={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},s={};s[e.ForwardRef]=r,s[e.Memo]=o;function a(g){return e.isMemo(g)?o:s[g.$$typeof]||t}var l=Object.defineProperty,c=Object.getOwnPropertyNames,d=Object.getOwnPropertySymbols,u=Object.getOwnPropertyDescriptor,f=Object.getPrototypeOf,h=Object.prototype;function m(g,y,b){if(typeof y!="string"){if(h){var v=f(y);v&&v!==h&&m(g,v,b)}var k=c(y);d&&(k=k.concat(d(y)));for(var S=a(g),C=a(y),w=0;w<k.length;++w){var T=k[w];if(!n[T]&&!(b&&b[T])&&!(C&&C[T])&&!(S&&S[T])){var E=u(y,T);try{l(g,T,E)}catch{}}}}return g}return kc=m,kc}Vx();var Hx=!0;function $p(e,t,n){var r="";return n.split(" ").forEach(function(o){e[o]!==void 0?t.push(e[o]+";"):o&&(r+=o+" ")}),r}var Ec=function(t,n,r){var o=t.key+"-"+n.name;(r===!1||Hx===!1)&&t.registered[o]===void 0&&(t.registered[o]=n.styles)},Oc=function(t,n,r){Ec(t,n,r);var o=t.key+"-"+n.name;if(t.inserted[n.name]===void 0){var s=n;do t.insert(n===s?"."+o:"",s,t.sheet,!0),s=s.next;while(s!==void 0)}};function Ux(e){for(var t=0,n,r=0,o=e.length;o>=4;++r,o-=4)n=e.charCodeAt(r)&255|(e.charCodeAt(++r)&255)<<8|(e.charCodeAt(++r)&255)<<16|(e.charCodeAt(++r)&255)<<24,n=(n&65535)*1540483477+((n>>>16)*59797<<16),n^=n>>>24,t=(n&65535)*1540483477+((n>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(o){case 3:t^=(e.charCodeAt(r+2)&255)<<16;case 2:t^=(e.charCodeAt(r+1)&255)<<8;case 1:t^=e.charCodeAt(r)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16)}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}var Yx={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,scale:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},qx=/[A-Z]|^ms/g,Gx=/_EMO_([^_]+?)_([^]*?)_EMO_/g,Lp=function(t){return t.charCodeAt(1)===45},Bp=function(t){return t!=null&&typeof t!="boolean"},Mc=Pp(function(e){return Lp(e)?e:e.replace(qx,"-$&").toLowerCase()}),_p=function(t,n){switch(t){case"animation":case"animationName":if(typeof n=="string")return n.replace(Gx,function(r,o,s){return rr={name:o,styles:s,next:rr},o})}return Yx[t]!==1&&!Lp(t)&&typeof n=="number"&&n!==0?n+"px":n};function Fs(e,t,n){if(n==null)return"";var r=n;if(r.__emotion_styles!==void 0)return r;switch(typeof n){case"boolean":return"";case"object":{var o=n;if(o.anim===1)return rr={name:o.name,styles:o.styles,next:rr},o.name;var s=n;if(s.styles!==void 0){var a=s.next;if(a!==void 0)for(;a!==void 0;)rr={name:a.name,styles:a.styles,next:rr},a=a.next;var l=s.styles+";";return l}return Kx(e,t,n)}case"function":{if(e!==void 0){var c=rr,d=n(e);return rr=c,Fs(e,t,d)}break}}var u=n;if(t==null)return u;var f=t[u];return f!==void 0?f:u}function Kx(e,t,n){var r="";if(Array.isArray(n))for(var o=0;o<n.length;o++)r+=Fs(e,t,n[o])+";";else for(var s in n){var a=n[s];if(typeof a!="object"){var l=a;t!=null&&t[l]!==void 0?r+=s+"{"+t[l]+"}":Bp(l)&&(r+=Mc(s)+":"+_p(s,l)+";")}else if(Array.isArray(a)&&typeof a[0]=="string"&&(t==null||t[a[0]]===void 0))for(var c=0;c<a.length;c++)Bp(a[c])&&(r+=Mc(s)+":"+_p(s,a[c])+";");else{var d=Fs(e,t,a);switch(s){case"animation":case"animationName":{r+=Mc(s)+":"+d+";";break}default:r+=s+"{"+d+"}"}}}return r}var Fp=/label:\s*([^\s;{]+)\s*(;|$)/g,rr;function Ws(e,t,n){if(e.length===1&&typeof e[0]=="object"&&e[0]!==null&&e[0].styles!==void 0)return e[0];var r=!0,o="";rr=void 0;var s=e[0];if(s==null||s.raw===void 0)r=!1,o+=Fs(n,t,s);else{var a=s;o+=a[0]}for(var l=1;l<e.length;l++)if(o+=Fs(n,t,e[l]),r){var c=s;o+=c[l]}Fp.lastIndex=0;for(var d="",u;(u=Fp.exec(o))!==null;)d+="-"+u[1];var f=Ux(o)+d;return{name:f,styles:o,next:rr}}var Xx=function(t){return t()},Wp=I.useInsertionEffect?I.useInsertionEffect:!1,zp=Wp||Xx,Vp=Wp||I.useLayoutEffect,Hp=I.createContext(typeof HTMLElement<"u"?_x({key:"css"}):null);Hp.Provider;var Pc=function(t){return x.forwardRef(function(n,r){var o=x.useContext(Hp);return t(n,o,r)})},zs=I.createContext({}),jc={}.hasOwnProperty,Ic="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",Zx=function(t,n){var r={};for(var o in n)jc.call(n,o)&&(r[o]=n[o]);return r[Ic]=t,r},Jx=function(t){var n=t.cache,r=t.serialized,o=t.isStringTag;return Ec(n,r,o),zp(function(){return Oc(n,r,o)}),null},Qx=Pc(function(e,t,n){var r=e.css;typeof r=="string"&&t.registered[r]!==void 0&&(r=t.registered[r]);var o=e[Ic],s=[r],a="";typeof e.className=="string"?a=$p(t.registered,s,e.className):e.className!=null&&(a=e.className+" ");var l=Ws(s,void 0,I.useContext(zs));a+=t.key+"-"+l.name;var c={};for(var d in e)jc.call(e,d)&&d!=="css"&&d!==Ic&&(c[d]=e[d]);return c.className=a,n&&(c.ref=n),I.createElement(I.Fragment,null,I.createElement(Jx,{cache:t,serialized:l,isStringTag:typeof o=="string"}),I.createElement(o,c))}),ew=Qx,Up=function(t,n){var r=arguments;if(n==null||!jc.call(n,"css"))return I.createElement.apply(void 0,r);var o=r.length,s=new Array(o);s[0]=ew,s[1]=Zx(t,n);for(var a=2;a<o;a++)s[a]=r[a];return I.createElement.apply(null,s)};(function(e){var t;t||(t=e.JSX||(e.JSX={}))})(Up||(Up={}));var tw=Pc(function(e,t){var n=e.styles,r=Ws([n],void 0,I.useContext(zs)),o=I.useRef();return Vp(function(){var s=t.key+"-global",a=new t.sheet.constructor({key:s,nonce:t.sheet.nonce,container:t.sheet.container,speedy:t.sheet.isSpeedy}),l=!1,c=document.querySelector('style[data-emotion="'+s+" "+r.name+'"]');return t.sheet.tags.length&&(a.before=t.sheet.tags[0]),c!==null&&(l=!0,c.setAttribute("data-emotion",s),a.hydrate([c])),o.current=[a,l],function(){a.flush()}},[t]),Vp(function(){var s=o.current,a=s[0],l=s[1];if(l){s[1]=!1;return}if(r.next!==void 0&&Oc(t,r.next,!0),a.tags.length){var c=a.tags[a.tags.length-1].nextElementSibling;a.before=c,a.flush()}t.insert("",r,a,!1)},[t,r.name]),null});function Vs(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return Ws(t)}function Br(){var e=Vs.apply(void 0,arguments),t="animation-"+e.name;return{name:t,styles:"@keyframes "+t+"{"+e.styles+"}",anim:1,toString:function(){return"_EMO_"+this.name+"_"+this.styles+"_EMO_"}}}var nw=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|disableRemotePlayback|download|draggable|encType|enterKeyHint|fetchpriority|fetchPriority|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|popover|popoverTarget|popoverTargetAction|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,rw=Pp(function(e){return nw.test(e)||e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)<91}),ow=rw,sw=function(t){return t!=="theme"},Yp=function(t){return typeof t=="string"&&t.charCodeAt(0)>96?ow:sw},qp=function(t,n,r){var o;if(n){var s=n.shouldForwardProp;o=t.__emotion_forwardProp&&s?function(a){return t.__emotion_forwardProp(a)&&s(a)}:s}return typeof o!="function"&&r&&(o=t.__emotion_forwardProp),o},iw=function(t){var n=t.cache,r=t.serialized,o=t.isStringTag;return Ec(n,r,o),zp(function(){return Oc(n,r,o)}),null},aw=function e(t,n){var r=t.__emotion_real===t,o=r&&t.__emotion_base||t,s,a;n!==void 0&&(s=n.label,a=n.target);var l=qp(t,n,r),c=l||Yp(o),d=!c("as");return function(){var u=arguments,f=r&&t.__emotion_styles!==void 0?t.__emotion_styles.slice(0):[];if(s!==void 0&&f.push("label:"+s+";"),u[0]==null||u[0].raw===void 0)f.push.apply(f,u);else{var h=u[0];f.push(h[0]);for(var m=u.length,g=1;g<m;g++)f.push(u[g],h[g])}var y=Pc(function(b,v,k){var S=d&&b.as||o,C="",w=[],T=b;if(b.theme==null){T={};for(var E in b)T[E]=b[E];T.theme=I.useContext(zs)}typeof b.className=="string"?C=$p(v.registered,w,b.className):b.className!=null&&(C=b.className+" ");var M=Ws(f.concat(w),v.registered,T);C+=v.key+"-"+M.name,a!==void 0&&(C+=" "+a);var j=d&&l===void 0?Yp(S):c,A={};for(var L in b)d&&L==="as"||j(L)&&(A[L]=b[L]);return A.className=C,k&&(A.ref=k),I.createElement(I.Fragment,null,I.createElement(iw,{cache:v,serialized:M,isStringTag:typeof S=="string"}),I.createElement(S,A))});return y.displayName=s!==void 0?s:"Styled("+(typeof o=="string"?o:o.displayName||o.name||"Component")+")",y.defaultProps=t.defaultProps,y.__emotion_real=y,y.__emotion_base=o,y.__emotion_styles=f,y.__emotion_forwardProp=l,Object.defineProperty(y,"toString",{value:function(){return"."+a}}),y.withComponent=function(b,v){var k=e(b,fa({},n,v,{shouldForwardProp:qp(y,v,!0)}));return k.apply(void 0,f)},y}},lw=["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"],Dc=aw.bind(null);lw.forEach(function(e){Dc[e]=Dc(e)});var Sa={exports:{}},Ca={exports:{}},ct={};var Gp;function cw(){if(Gp)return ct;Gp=1;var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,n=e?Symbol.for("react.portal"):60106,r=e?Symbol.for("react.fragment"):60107,o=e?Symbol.for("react.strict_mode"):60108,s=e?Symbol.for("react.profiler"):60114,a=e?Symbol.for("react.provider"):60109,l=e?Symbol.for("react.context"):60110,c=e?Symbol.for("react.async_mode"):60111,d=e?Symbol.for("react.concurrent_mode"):60111,u=e?Symbol.for("react.forward_ref"):60112,f=e?Symbol.for("react.suspense"):60113,h=e?Symbol.for("react.suspense_list"):60120,m=e?Symbol.for("react.memo"):60115,g=e?Symbol.for("react.lazy"):60116,y=e?Symbol.for("react.block"):60121,b=e?Symbol.for("react.fundamental"):60117,v=e?Symbol.for("react.responder"):60118,k=e?Symbol.for("react.scope"):60119;function S(w){if(typeof w=="object"&&w!==null){var T=w.$$typeof;switch(T){case t:switch(w=w.type,w){case c:case d:case r:case s:case o:case f:return w;default:switch(w=w&&w.$$typeof,w){case l:case u:case g:case m:case a:return w;default:return T}}case n:return T}}}function C(w){return S(w)===d}return ct.AsyncMode=c,ct.ConcurrentMode=d,ct.ContextConsumer=l,ct.ContextProvider=a,ct.Element=t,ct.ForwardRef=u,ct.Fragment=r,ct.Lazy=g,ct.Memo=m,ct.Portal=n,ct.Profiler=s,ct.StrictMode=o,ct.Suspense=f,ct.isAsyncMode=function(w){return C(w)||S(w)===c},ct.isConcurrentMode=C,ct.isContextConsumer=function(w){return S(w)===l},ct.isContextProvider=function(w){return S(w)===a},ct.isElement=function(w){return typeof w=="object"&&w!==null&&w.$$typeof===t},ct.isForwardRef=function(w){return S(w)===u},ct.isFragment=function(w){return S(w)===r},ct.isLazy=function(w){return S(w)===g},ct.isMemo=function(w){return S(w)===m},ct.isPortal=function(w){return S(w)===n},ct.isProfiler=function(w){return S(w)===s},ct.isStrictMode=function(w){return S(w)===o},ct.isSuspense=function(w){return S(w)===f},ct.isValidElementType=function(w){return typeof w=="string"||typeof w=="function"||w===r||w===d||w===s||w===o||w===f||w===h||typeof w=="object"&&w!==null&&(w.$$typeof===g||w.$$typeof===m||w.$$typeof===a||w.$$typeof===l||w.$$typeof===u||w.$$typeof===b||w.$$typeof===v||w.$$typeof===k||w.$$typeof===y)},ct.typeOf=S,ct}var dt={};var Kp;function dw(){return Kp||(Kp=1,process.env.NODE_ENV!=="production"&&(function(){var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,n=e?Symbol.for("react.portal"):60106,r=e?Symbol.for("react.fragment"):60107,o=e?Symbol.for("react.strict_mode"):60108,s=e?Symbol.for("react.profiler"):60114,a=e?Symbol.for("react.provider"):60109,l=e?Symbol.for("react.context"):60110,c=e?Symbol.for("react.async_mode"):60111,d=e?Symbol.for("react.concurrent_mode"):60111,u=e?Symbol.for("react.forward_ref"):60112,f=e?Symbol.for("react.suspense"):60113,h=e?Symbol.for("react.suspense_list"):60120,m=e?Symbol.for("react.memo"):60115,g=e?Symbol.for("react.lazy"):60116,y=e?Symbol.for("react.block"):60121,b=e?Symbol.for("react.fundamental"):60117,v=e?Symbol.for("react.responder"):60118,k=e?Symbol.for("react.scope"):60119;function S(F){return typeof F=="string"||typeof F=="function"||F===r||F===d||F===s||F===o||F===f||F===h||typeof F=="object"&&F!==null&&(F.$$typeof===g||F.$$typeof===m||F.$$typeof===a||F.$$typeof===l||F.$$typeof===u||F.$$typeof===b||F.$$typeof===v||F.$$typeof===k||F.$$typeof===y)}function C(F){if(typeof F=="object"&&F!==null){var fe=F.$$typeof;switch(fe){case t:var se=F.type;switch(se){case c:case d:case r:case s:case o:case f:return se;default:var Z=se&&se.$$typeof;switch(Z){case l:case u:case g:case m:case a:return Z;default:return fe}}case n:return fe}}}var w=c,T=d,E=l,M=a,j=t,A=u,L=r,O=g,N=m,P=n,R=s,$=o,_=f,U=!1;function H(F){return U||(U=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")),B(F)||C(F)===c}function B(F){return C(F)===d}function D(F){return C(F)===l}function z(F){return C(F)===a}function V(F){return typeof F=="object"&&F!==null&&F.$$typeof===t}function X(F){return C(F)===u}function G(F){return C(F)===r}function Y(F){return C(F)===g}function K(F){return C(F)===m}function ae(F){return C(F)===n}function le(F){return C(F)===s}function W(F){return C(F)===o}function ee(F){return C(F)===f}dt.AsyncMode=w,dt.ConcurrentMode=T,dt.ContextConsumer=E,dt.ContextProvider=M,dt.Element=j,dt.ForwardRef=A,dt.Fragment=L,dt.Lazy=O,dt.Memo=N,dt.Portal=P,dt.Profiler=R,dt.StrictMode=$,dt.Suspense=_,dt.isAsyncMode=H,dt.isConcurrentMode=B,dt.isContextConsumer=D,dt.isContextProvider=z,dt.isElement=V,dt.isForwardRef=X,dt.isFragment=G,dt.isLazy=Y,dt.isMemo=K,dt.isPortal=ae,dt.isProfiler=le,dt.isStrictMode=W,dt.isSuspense=ee,dt.isValidElementType=S,dt.typeOf=C})()),dt}var Xp;function Zp(){return Xp||(Xp=1,process.env.NODE_ENV==="production"?Ca.exports=cw():Ca.exports=dw()),Ca.exports}var Ac,Jp;function uw(){if(Jp)return Ac;Jp=1;var e=Object.getOwnPropertySymbols,t=Object.prototype.hasOwnProperty,n=Object.prototype.propertyIsEnumerable;function r(s){if(s==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(s)}function o(){try{if(!Object.assign)return!1;var s=new String("abc");if(s[5]="de",Object.getOwnPropertyNames(s)[0]==="5")return!1;for(var a={},l=0;l<10;l++)a["_"+String.fromCharCode(l)]=l;var c=Object.getOwnPropertyNames(a).map(function(u){return a[u]});if(c.join("")!=="0123456789")return!1;var d={};return"abcdefghijklmnopqrst".split("").forEach(function(u){d[u]=u}),Object.keys(Object.assign({},d)).join("")==="abcdefghijklmnopqrst"}catch{return!1}}return Ac=o()?Object.assign:function(s,a){for(var l,c=r(s),d,u=1;u<arguments.length;u++){l=Object(arguments[u]);for(var f in l)t.call(l,f)&&(c[f]=l[f]);if(e){d=e(l);for(var h=0;h<d.length;h++)n.call(l,d[h])&&(c[d[h]]=l[d[h]])}}return c},Ac}var Rc,Qp;function Nc(){if(Qp)return Rc;Qp=1;var e="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return Rc=e,Rc}var $c,eh;function th(){return eh||(eh=1,$c=Function.call.bind(Object.prototype.hasOwnProperty)),$c}var Lc,nh;function fw(){if(nh)return Lc;nh=1;var e=function(){};if(process.env.NODE_ENV!=="production"){var t=Nc(),n={},r=th();e=function(s){var a="Warning: "+s;typeof console<"u"&&console.error(a);try{throw new Error(a)}catch{}}}function o(s,a,l,c,d){if(process.env.NODE_ENV!=="production"){for(var u in s)if(r(s,u)){var f;try{if(typeof s[u]!="function"){var h=Error((c||"React class")+": "+l+" type `"+u+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof s[u]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw h.name="Invariant Violation",h}f=s[u](a,u,c,l,null,t)}catch(g){f=g}if(f&&!(f instanceof Error)&&e((c||"React class")+": type specification of "+l+" `"+u+"` is invalid; the type checker function must return `null` or an `Error` but returned a "+typeof f+". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."),f instanceof Error&&!(f.message in n)){n[f.message]=!0;var m=d?d():"";e("Failed "+l+" type: "+f.message+(m??""))}}}}return o.resetWarningCache=function(){process.env.NODE_ENV!=="production"&&(n={})},Lc=o,Lc}var Bc,rh;function pw(){if(rh)return Bc;rh=1;var e=Zp(),t=uw(),n=Nc(),r=th(),o=fw(),s=function(){};process.env.NODE_ENV!=="production"&&(s=function(l){var c="Warning: "+l;typeof console<"u"&&console.error(c);try{throw new Error(c)}catch{}});function a(){return null}return Bc=function(l,c){var d=typeof Symbol=="function"&&Symbol.iterator,u="@@iterator";function f(B){var D=B&&(d&&B[d]||B[u]);if(typeof D=="function")return D}var h="<<anonymous>>",m={array:v("array"),bigint:v("bigint"),bool:v("boolean"),func:v("function"),number:v("number"),object:v("object"),string:v("string"),symbol:v("symbol"),any:k(),arrayOf:S,element:C(),elementType:w(),instanceOf:T,node:A(),objectOf:M,oneOf:E,oneOfType:j,shape:O,exact:N};function g(B,D){return B===D?B!==0||1/B===1/D:B!==B&&D!==D}function y(B,D){this.message=B,this.data=D&&typeof D=="object"?D:{},this.stack=""}y.prototype=Error.prototype;function b(B){if(process.env.NODE_ENV!=="production")var D={},z=0;function V(G,Y,K,ae,le,W,ee){if(ae=ae||h,W=W||K,ee!==n){if(c){var F=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 F.name="Invariant Violation",F}else if(process.env.NODE_ENV!=="production"&&typeof console<"u"){var fe=ae+":"+K;!D[fe]&&z<3&&(s("You are manually calling a React.PropTypes validation function for the `"+W+"` prop on `"+ae+"`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details."),D[fe]=!0,z++)}}return Y[K]==null?G?Y[K]===null?new y("The "+le+" `"+W+"` is marked as required "+("in `"+ae+"`, but its value is `null`.")):new y("The "+le+" `"+W+"` is marked as required in "+("`"+ae+"`, but its value is `undefined`.")):null:B(Y,K,ae,le,W)}var X=V.bind(null,!1);return X.isRequired=V.bind(null,!0),X}function v(B){function D(z,V,X,G,Y,K){var ae=z[V],le=$(ae);if(le!==B){var W=_(ae);return new y("Invalid "+G+" `"+Y+"` of type "+("`"+W+"` supplied to `"+X+"`, expected ")+("`"+B+"`."),{expectedType:B})}return null}return b(D)}function k(){return b(a)}function S(B){function D(z,V,X,G,Y){if(typeof B!="function")return new y("Property `"+Y+"` of component `"+X+"` has invalid PropType notation inside arrayOf.");var K=z[V];if(!Array.isArray(K)){var ae=$(K);return new y("Invalid "+G+" `"+Y+"` of type "+("`"+ae+"` supplied to `"+X+"`, expected an array."))}for(var le=0;le<K.length;le++){var W=B(K,le,X,G,Y+"["+le+"]",n);if(W instanceof Error)return W}return null}return b(D)}function C(){function B(D,z,V,X,G){var Y=D[z];if(!l(Y)){var K=$(Y);return new y("Invalid "+X+" `"+G+"` of type "+("`"+K+"` supplied to `"+V+"`, expected a single ReactElement."))}return null}return b(B)}function w(){function B(D,z,V,X,G){var Y=D[z];if(!e.isValidElementType(Y)){var K=$(Y);return new y("Invalid "+X+" `"+G+"` of type "+("`"+K+"` supplied to `"+V+"`, expected a single ReactElement type."))}return null}return b(B)}function T(B){function D(z,V,X,G,Y){if(!(z[V]instanceof B)){var K=B.name||h,ae=H(z[V]);return new y("Invalid "+G+" `"+Y+"` of type "+("`"+ae+"` supplied to `"+X+"`, expected ")+("instance of `"+K+"`."))}return null}return b(D)}function E(B){if(!Array.isArray(B))return process.env.NODE_ENV!=="production"&&(arguments.length>1?s("Invalid arguments supplied to oneOf, expected an array, got "+arguments.length+" arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z])."):s("Invalid argument supplied to oneOf, expected an array.")),a;function D(z,V,X,G,Y){for(var K=z[V],ae=0;ae<B.length;ae++)if(g(K,B[ae]))return null;var le=JSON.stringify(B,function(ee,F){var fe=_(F);return fe==="symbol"?String(F):F});return new y("Invalid "+G+" `"+Y+"` of value `"+String(K)+"` "+("supplied to `"+X+"`, expected one of "+le+"."))}return b(D)}function M(B){function D(z,V,X,G,Y){if(typeof B!="function")return new y("Property `"+Y+"` of component `"+X+"` has invalid PropType notation inside objectOf.");var K=z[V],ae=$(K);if(ae!=="object")return new y("Invalid "+G+" `"+Y+"` of type "+("`"+ae+"` supplied to `"+X+"`, expected an object."));for(var le in K)if(r(K,le)){var W=B(K,le,X,G,Y+"."+le,n);if(W instanceof Error)return W}return null}return b(D)}function j(B){if(!Array.isArray(B))return process.env.NODE_ENV!=="production"&&s("Invalid argument supplied to oneOfType, expected an instance of array."),a;for(var D=0;D<B.length;D++){var z=B[D];if(typeof z!="function")return s("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+U(z)+" at index "+D+"."),a}function V(X,G,Y,K,ae){for(var le=[],W=0;W<B.length;W++){var ee=B[W],F=ee(X,G,Y,K,ae,n);if(F==null)return null;F.data&&r(F.data,"expectedType")&&le.push(F.data.expectedType)}var fe=le.length>0?", expected one of type ["+le.join(", ")+"]":"";return new y("Invalid "+K+" `"+ae+"` supplied to "+("`"+Y+"`"+fe+"."))}return b(V)}function A(){function B(D,z,V,X,G){return P(D[z])?null:new y("Invalid "+X+" `"+G+"` supplied to "+("`"+V+"`, expected a ReactNode."))}return b(B)}function L(B,D,z,V,X){return new y((B||"React class")+": "+D+" type `"+z+"."+V+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+X+"`.")}function O(B){function D(z,V,X,G,Y){var K=z[V],ae=$(K);if(ae!=="object")return new y("Invalid "+G+" `"+Y+"` of type `"+ae+"` "+("supplied to `"+X+"`, expected `object`."));for(var le in B){var W=B[le];if(typeof W!="function")return L(X,G,Y,le,_(W));var ee=W(K,le,X,G,Y+"."+le,n);if(ee)return ee}return null}return b(D)}function N(B){function D(z,V,X,G,Y){var K=z[V],ae=$(K);if(ae!=="object")return new y("Invalid "+G+" `"+Y+"` of type `"+ae+"` "+("supplied to `"+X+"`, expected `object`."));var le=t({},z[V],B);for(var W in le){var ee=B[W];if(r(B,W)&&typeof ee!="function")return L(X,G,Y,W,_(ee));if(!ee)return new y("Invalid "+G+" `"+Y+"` key `"+W+"` supplied to `"+X+"`.\nBad object: "+JSON.stringify(z[V],null," ")+`
|
|
7
|
-
Valid keys: `+JSON.stringify(Object.keys(B),null," "));var F=ee(K,W,X,G,Y+"."+W,n);if(F)return F}return null}return b(D)}function P(B){switch(typeof B){case"number":case"string":case"undefined":return!0;case"boolean":return!B;case"object":if(Array.isArray(B))return B.every(P);if(B===null||l(B))return!0;var D=f(B);if(D){var z=D.call(B),V;if(D!==B.entries){for(;!(V=z.next()).done;)if(!P(V.value))return!1}else for(;!(V=z.next()).done;){var X=V.value;if(X&&!P(X[1]))return!1}}else return!1;return!0;default:return!1}}function R(B,D){return B==="symbol"?!0:D?D["@@toStringTag"]==="Symbol"||typeof Symbol=="function"&&D instanceof Symbol:!1}function $(B){var D=typeof B;return Array.isArray(B)?"array":B instanceof RegExp?"object":R(D,B)?"symbol":D}function _(B){if(typeof B>"u"||B===null)return""+B;var D=$(B);if(D==="object"){if(B instanceof Date)return"date";if(B instanceof RegExp)return"regexp"}return D}function U(B){var D=_(B);switch(D){case"array":case"object":return"an "+D;case"boolean":case"date":case"regexp":return"a "+D;default:return D}}function H(B){return!B.constructor||!B.constructor.name?h:B.constructor.name}return m.checkPropTypes=o,m.resetWarningCache=o.resetWarningCache,m.PropTypes=m,m},Bc}var _c,oh;function hw(){if(oh)return _c;oh=1;var e=Nc();function t(){}function n(){}return n.resetWarningCache=t,_c=function(){function r(a,l,c,d,u,f){if(f!==e){var h=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw h.name="Invariant Violation",h}}r.isRequired=r;function o(){return r}var s={array:r,bigint:r,bool:r,func:r,number:r,object:r,string:r,symbol:r,any:r,arrayOf:o,element:r,elementType:r,instanceOf:o,node:r,objectOf:o,oneOf:o,oneOfType:o,shape:o,exact:o,checkPropTypes:n,resetWarningCache:t};return s.PropTypes=s,s},_c}var sh;function mw(){if(sh)return Sa.exports;if(sh=1,process.env.NODE_ENV!=="production"){var e=Zp(),t=!0;Sa.exports=pw()(e.isElement,t)}else Sa.exports=hw()();return Sa.exports}var gw=mw();const i=ix(gw);function yw(e){return e==null||Object.keys(e).length===0}function Fc(e){const{styles:t,defaultTheme:n={}}=e,r=typeof t=="function"?o=>t(yw(o)?n:o):t;return p.jsx(tw,{styles:r})}process.env.NODE_ENV!=="production"&&(Fc.propTypes={defaultTheme:i.object,styles:i.oneOfType([i.array,i.string,i.object,i.func])});function ih(e,t){const n=Dc(e,t);return process.env.NODE_ENV!=="production"?(...r)=>{const o=typeof e=="string"?`"${e}"`:"component";return r.length===0?console.error([`MUI: Seems like you called \`styled(${o})()\` without a \`style\` argument.`,'You must provide a `styles` argument: `styled("div")(styleYouForgotToPass)`.'].join(`
|
|
8
|
-
`)):r.some(s=>s===void 0)&&console.error(`MUI: the styled(${o})(...args) API requires all its args to be defined.`),n(...r)}:n}function bw(e,t){Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=t(e.__emotion_styles))}const ah=[];function _r(e){return ah[0]=e,Ws(ah)}var Ta={exports:{}},bt={};var lh;function vw(){if(lh)return bt;lh=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),s=Symbol.for("react.consumer"),a=Symbol.for("react.context"),l=Symbol.for("react.forward_ref"),c=Symbol.for("react.suspense"),d=Symbol.for("react.suspense_list"),u=Symbol.for("react.memo"),f=Symbol.for("react.lazy"),h=Symbol.for("react.view_transition"),m=Symbol.for("react.client.reference");function g(y){if(typeof y=="object"&&y!==null){var b=y.$$typeof;switch(b){case e:switch(y=y.type,y){case n:case o:case r:case c:case d:case h:return y;default:switch(y=y&&y.$$typeof,y){case a:case l:case f:case u:return y;case s:return y;default:return b}}case t:return b}}}return bt.ContextConsumer=s,bt.ContextProvider=a,bt.Element=e,bt.ForwardRef=l,bt.Fragment=n,bt.Lazy=f,bt.Memo=u,bt.Portal=t,bt.Profiler=o,bt.StrictMode=r,bt.Suspense=c,bt.SuspenseList=d,bt.isContextConsumer=function(y){return g(y)===s},bt.isContextProvider=function(y){return g(y)===a},bt.isElement=function(y){return typeof y=="object"&&y!==null&&y.$$typeof===e},bt.isForwardRef=function(y){return g(y)===l},bt.isFragment=function(y){return g(y)===n},bt.isLazy=function(y){return g(y)===f},bt.isMemo=function(y){return g(y)===u},bt.isPortal=function(y){return g(y)===t},bt.isProfiler=function(y){return g(y)===o},bt.isStrictMode=function(y){return g(y)===r},bt.isSuspense=function(y){return g(y)===c},bt.isSuspenseList=function(y){return g(y)===d},bt.isValidElementType=function(y){return typeof y=="string"||typeof y=="function"||y===n||y===o||y===r||y===c||y===d||typeof y=="object"&&y!==null&&(y.$$typeof===f||y.$$typeof===u||y.$$typeof===a||y.$$typeof===s||y.$$typeof===l||y.$$typeof===m||y.getModuleId!==void 0)},bt.typeOf=g,bt}var vt={};var ch;function xw(){return ch||(ch=1,process.env.NODE_ENV!=="production"&&(function(){function e(y){if(typeof y=="object"&&y!==null){var b=y.$$typeof;switch(b){case t:switch(y=y.type,y){case r:case s:case o:case d:case u:case m:return y;default:switch(y=y&&y.$$typeof,y){case l:case c:case h:case f:return y;case a:return y;default:return b}}case n:return b}}}var t=Symbol.for("react.transitional.element"),n=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),o=Symbol.for("react.strict_mode"),s=Symbol.for("react.profiler"),a=Symbol.for("react.consumer"),l=Symbol.for("react.context"),c=Symbol.for("react.forward_ref"),d=Symbol.for("react.suspense"),u=Symbol.for("react.suspense_list"),f=Symbol.for("react.memo"),h=Symbol.for("react.lazy"),m=Symbol.for("react.view_transition"),g=Symbol.for("react.client.reference");vt.ContextConsumer=a,vt.ContextProvider=l,vt.Element=t,vt.ForwardRef=c,vt.Fragment=r,vt.Lazy=h,vt.Memo=f,vt.Portal=n,vt.Profiler=s,vt.StrictMode=o,vt.Suspense=d,vt.SuspenseList=u,vt.isContextConsumer=function(y){return e(y)===a},vt.isContextProvider=function(y){return e(y)===l},vt.isElement=function(y){return typeof y=="object"&&y!==null&&y.$$typeof===t},vt.isForwardRef=function(y){return e(y)===c},vt.isFragment=function(y){return e(y)===r},vt.isLazy=function(y){return e(y)===h},vt.isMemo=function(y){return e(y)===f},vt.isPortal=function(y){return e(y)===n},vt.isProfiler=function(y){return e(y)===s},vt.isStrictMode=function(y){return e(y)===o},vt.isSuspense=function(y){return e(y)===d},vt.isSuspenseList=function(y){return e(y)===u},vt.isValidElementType=function(y){return typeof y=="string"||typeof y=="function"||y===r||y===s||y===o||y===d||y===u||typeof y=="object"&&y!==null&&(y.$$typeof===h||y.$$typeof===f||y.$$typeof===l||y.$$typeof===a||y.$$typeof===c||y.$$typeof===g||y.getModuleId!==void 0)},vt.typeOf=e})()),vt}var dh;function ww(){return dh||(dh=1,process.env.NODE_ENV==="production"?Ta.exports=vw():Ta.exports=xw()),Ta.exports}var kr=ww();function or(e){if(typeof e!="object"||e===null)return!1;const t=Object.getPrototypeOf(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}function uh(e){if(I.isValidElement(e)||kr.isValidElementType(e)||!or(e))return e;const t={};return Object.keys(e).forEach(n=>{t[n]=uh(e[n])}),t}function Ht(e,t,n={clone:!0}){const r=n.clone?{...e}:e;return or(e)&&or(t)&&Object.keys(t).forEach(o=>{I.isValidElement(t[o])||kr.isValidElementType(t[o])?r[o]=t[o]:or(t[o])&&Object.prototype.hasOwnProperty.call(e,o)&&or(e[o])?r[o]=Ht(e[o],t[o],n):n.clone?r[o]=or(t[o])?uh(t[o]):t[o]:r[o]=t[o]}),r}const Sw=e=>{const t=Object.keys(e).map(n=>({key:n,val:e[n]}))||[];return t.sort((n,r)=>n.val-r.val),t.reduce((n,r)=>({...n,[r.key]:r.val}),{})};function Cw(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:n="px",step:r=5,...o}=e,s=Sw(t),a=Object.keys(s);function l(h){return`@media (min-width:${typeof t[h]=="number"?t[h]:h}${n})`}function c(h){return`@media (max-width:${(typeof t[h]=="number"?t[h]:h)-r/100}${n})`}function d(h,m){const g=a.indexOf(m);return`@media (min-width:${typeof t[h]=="number"?t[h]:h}${n}) and (max-width:${(g!==-1&&typeof t[a[g]]=="number"?t[a[g]]:m)-r/100}${n})`}function u(h){return a.indexOf(h)+1<a.length?d(h,a[a.indexOf(h)+1]):l(h)}function f(h){const m=a.indexOf(h);return m===0?l(a[1]):m===a.length-1?c(a[m]):d(h,a[a.indexOf(h)+1]).replace("@media","@media not all and")}return{keys:a,values:s,up:l,down:c,between:d,only:u,not:f,unit:n,...o}}function fh(e,t){if(!e.containerQueries)return t;const n=Object.keys(t).filter(r=>r.startsWith("@container")).sort((r,o)=>{const s=/min-width:\s*([0-9.]+)/;return+(r.match(s)?.[1]||0)-+(o.match(s)?.[1]||0)});return n.length?n.reduce((r,o)=>{const s=t[o];return delete r[o],r[o]=s,r},{...t}):t}function Tw(e,t){return t==="@"||t.startsWith("@")&&(e.some(n=>t.startsWith(`@${n}`))||!!t.match(/^@\d/))}function kw(e,t){const n=t.match(/^@([^/]+)?\/?(.+)?$/);if(!n){if(process.env.NODE_ENV!=="production")throw new Error(process.env.NODE_ENV!=="production"?`MUI: The provided shorthand ${`(${t})`} is invalid. The format should be \`@<breakpoint | number>\` or \`@<breakpoint | number>/<container>\`.
|
|
9
|
-
For example, \`@sm\` or \`@600\` or \`@40rem/sidebar\`.`:Qn(18,`(${t})`));return null}const[,r,o]=n,s=Number.isNaN(+r)?r||0:+r;return e.containerQueries(o).up(s)}function Ew(e){const t=(s,a)=>s.replace("@media",a?`@container ${a}`:"@container");function n(s,a){s.up=(...l)=>t(e.breakpoints.up(...l),a),s.down=(...l)=>t(e.breakpoints.down(...l),a),s.between=(...l)=>t(e.breakpoints.between(...l),a),s.only=(...l)=>t(e.breakpoints.only(...l),a),s.not=(...l)=>{const c=t(e.breakpoints.not(...l),a);return c.includes("not all and")?c.replace("not all and ","").replace("min-width:","width<").replace("max-width:","width>").replace("and","or"):c}}const r={},o=s=>(n(r,s),r);return n(o),{...e,containerQueries:o}}const Ow={borderRadius:4},Fr=process.env.NODE_ENV!=="production"?i.oneOfType([i.number,i.string,i.object,i.array]):{};function Hs(e,t){return t?Ht(e,t,{clone:!1}):e}const ka={xs:0,sm:600,md:900,lg:1200,xl:1536},ph={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${ka[e]}px)`},Mw={containerQueries:e=>({up:t=>{let n=typeof t=="number"?t:ka[t]||t;return typeof n=="number"&&(n=`${n}px`),e?`@container ${e} (min-width:${n})`:`@container (min-width:${n})`}})};function Vn(e,t,n){const r=e.theme||{};if(Array.isArray(t)){const s=r.breakpoints||ph;return t.reduce((a,l,c)=>(a[s.up(s.keys[c])]=n(t[c]),a),{})}if(typeof t=="object"){const s=r.breakpoints||ph;return Object.keys(t).reduce((a,l)=>{if(Tw(s.keys,l)){const c=kw(r.containerQueries?r:Mw,l);c&&(a[c]=n(t[l],l))}else if(Object.keys(s.values||ka).includes(l)){const c=s.up(l);a[c]=n(t[l],l)}else{const c=l;a[c]=t[c]}return a},{})}return n(t)}function hh(e={}){return e.keys?.reduce((n,r)=>{const o=e.up(r);return n[o]={},n},{})||{}}function Wc(e,t){return e.reduce((n,r)=>{const o=n[r];return(!o||Object.keys(o).length===0)&&delete n[r],n},t)}function Pw(e,...t){const n=hh(e),r=[n,...t].reduce((o,s)=>Ht(o,s),{});return Wc(Object.keys(n),r)}function jw(e,t){if(typeof e!="object")return{};const n={},r=Object.keys(t);return Array.isArray(e)?r.forEach((o,s)=>{s<e.length&&(n[o]=!0)}):r.forEach(o=>{e[o]!=null&&(n[o]=!0)}),n}function zc({values:e,breakpoints:t,base:n}){const r=n||jw(e,t),o=Object.keys(r);if(o.length===0)return e;let s;return o.reduce((a,l,c)=>(Array.isArray(e)?(a[l]=e[c]!=null?e[c]:e[s],s=c):typeof e=="object"?(a[l]=e[l]!=null?e[l]:e[s],s=l):a[l]=e,a),{})}function Q(e){if(typeof e!="string")throw new Error(process.env.NODE_ENV!=="production"?"MUI: `capitalize(string)` expects a string argument.":Qn(7));return e.charAt(0).toUpperCase()+e.slice(1)}function Ea(e,t,n=!0){if(!t||typeof t!="string")return null;if(e&&e.vars&&n){const r=`vars.${t}`.split(".").reduce((o,s)=>o&&o[s]?o[s]:null,e);if(r!=null)return r}return t.split(".").reduce((r,o)=>r&&r[o]!=null?r[o]:null,e)}function Oa(e,t,n,r=n){let o;return typeof e=="function"?o=e(n):Array.isArray(e)?o=e[n]||r:o=Ea(e,n)||r,t&&(o=t(o,r,e)),o}function Rt(e){const{prop:t,cssProperty:n=e.prop,themeKey:r,transform:o}=e,s=a=>{if(a[t]==null)return null;const l=a[t],c=a.theme,d=Ea(c,r)||{};return Vn(a,l,f=>{let h=Oa(d,o,f);return f===h&&typeof f=="string"&&(h=Oa(d,o,`${t}${f==="default"?"":Q(f)}`,f)),n===!1?h:{[n]:h}})};return s.propTypes=process.env.NODE_ENV!=="production"?{[t]:Fr}:{},s.filterProps=[t],s}function Iw(e){const t={};return n=>(t[n]===void 0&&(t[n]=e(n)),t[n])}const Dw={m:"margin",p:"padding"},Aw={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},mh={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},Rw=Iw(e=>{if(e.length>2)if(mh[e])e=mh[e];else return[e];const[t,n]=e.split(""),r=Dw[t],o=Aw[n]||"";return Array.isArray(o)?o.map(s=>r+s):[r+o]}),Ma=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],Pa=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"],Nw=[...Ma,...Pa];function Us(e,t,n,r){const o=Ea(e,t,!0)??n;return typeof o=="number"||typeof o=="string"?s=>typeof s=="string"?s:(process.env.NODE_ENV!=="production"&&typeof s!="number"&&console.error(`MUI: Expected ${r} argument to be a number or a string, got ${s}.`),typeof o=="string"?o.startsWith("var(")&&s===0?0:o.startsWith("var(")&&s===1?o:`calc(${s} * ${o})`:o*s):Array.isArray(o)?s=>{if(typeof s=="string")return s;const a=Math.abs(s);process.env.NODE_ENV!=="production"&&(Number.isInteger(a)?a>o.length-1&&console.error([`MUI: The value provided (${a}) overflows.`,`The supported values are: ${JSON.stringify(o)}.`,`${a} > ${o.length-1}, you need to add the missing values.`].join(`
|
|
10
|
-
`)):console.error([`MUI: The \`theme.${t}\` array type cannot be combined with non integer values.You should either use an integer value that can be used as index, or define the \`theme.${t}\` as a number.`].join(`
|
|
11
|
-
`)));const l=o[a];return s>=0?l:typeof l=="number"?-l:typeof l=="string"&&l.startsWith("var(")?`calc(-1 * ${l})`:`-${l}`}:typeof o=="function"?o:(process.env.NODE_ENV!=="production"&&console.error([`MUI: The \`theme.${t}\` value (${o}) is invalid.`,"It should be a number, an array or a function."].join(`
|
|
12
|
-
`)),()=>{})}function ja(e){return Us(e,"spacing",8,"spacing")}function ro(e,t){return typeof t=="string"||t==null?t:e(t)}function $w(e,t){return n=>e.reduce((r,o)=>(r[o]=ro(t,n),r),{})}function Lw(e,t,n,r){if(!t.includes(n))return null;const o=Rw(n),s=$w(o,r),a=e[n];return Vn(e,a,s)}function gh(e,t){const n=ja(e.theme);return Object.keys(e).map(r=>Lw(e,t,r,n)).reduce(Hs,{})}function It(e){return gh(e,Ma)}It.propTypes=process.env.NODE_ENV!=="production"?Ma.reduce((e,t)=>(e[t]=Fr,e),{}):{},It.filterProps=Ma;function Dt(e){return gh(e,Pa)}Dt.propTypes=process.env.NODE_ENV!=="production"?Pa.reduce((e,t)=>(e[t]=Fr,e),{}):{},Dt.filterProps=Pa,process.env.NODE_ENV!=="production"&&Nw.reduce((e,t)=>(e[t]=Fr,e),{});function yh(e=8,t=ja({spacing:e})){if(e.mui)return e;const n=(...r)=>(process.env.NODE_ENV!=="production"&&(r.length<=4||console.error(`MUI: Too many arguments provided, expected between 0 and 4, got ${r.length}`)),(r.length===0?[1]:r).map(s=>{const a=t(s);return typeof a=="number"?`${a}px`:a}).join(" "));return n.mui=!0,n}function Ia(...e){const t=e.reduce((r,o)=>(o.filterProps.forEach(s=>{r[s]=o}),r),{}),n=r=>Object.keys(r).reduce((o,s)=>t[s]?Hs(o,t[s](r)):o,{});return n.propTypes=process.env.NODE_ENV!=="production"?e.reduce((r,o)=>Object.assign(r,o.propTypes),{}):{},n.filterProps=e.reduce((r,o)=>r.concat(o.filterProps),[]),n}function kn(e){return typeof e!="number"?e:`${e}px solid`}function En(e,t){return Rt({prop:e,themeKey:"borders",transform:t})}const Bw=En("border",kn),_w=En("borderTop",kn),Fw=En("borderRight",kn),Ww=En("borderBottom",kn),zw=En("borderLeft",kn),Vw=En("borderColor"),Hw=En("borderTopColor"),Uw=En("borderRightColor"),Yw=En("borderBottomColor"),qw=En("borderLeftColor"),Gw=En("outline",kn),Kw=En("outlineColor"),Da=e=>{if(e.borderRadius!==void 0&&e.borderRadius!==null){const t=Us(e.theme,"shape.borderRadius",4,"borderRadius"),n=r=>({borderRadius:ro(t,r)});return Vn(e,e.borderRadius,n)}return null};Da.propTypes=process.env.NODE_ENV!=="production"?{borderRadius:Fr}:{},Da.filterProps=["borderRadius"],Ia(Bw,_w,Fw,Ww,zw,Vw,Hw,Uw,Yw,qw,Da,Gw,Kw);const Aa=e=>{if(e.gap!==void 0&&e.gap!==null){const t=Us(e.theme,"spacing",8,"gap"),n=r=>({gap:ro(t,r)});return Vn(e,e.gap,n)}return null};Aa.propTypes=process.env.NODE_ENV!=="production"?{gap:Fr}:{},Aa.filterProps=["gap"];const Ra=e=>{if(e.columnGap!==void 0&&e.columnGap!==null){const t=Us(e.theme,"spacing",8,"columnGap"),n=r=>({columnGap:ro(t,r)});return Vn(e,e.columnGap,n)}return null};Ra.propTypes=process.env.NODE_ENV!=="production"?{columnGap:Fr}:{},Ra.filterProps=["columnGap"];const Na=e=>{if(e.rowGap!==void 0&&e.rowGap!==null){const t=Us(e.theme,"spacing",8,"rowGap"),n=r=>({rowGap:ro(t,r)});return Vn(e,e.rowGap,n)}return null};Na.propTypes=process.env.NODE_ENV!=="production"?{rowGap:Fr}:{},Na.filterProps=["rowGap"];const Xw=Rt({prop:"gridColumn"}),Zw=Rt({prop:"gridRow"}),Jw=Rt({prop:"gridAutoFlow"}),Qw=Rt({prop:"gridAutoColumns"}),eS=Rt({prop:"gridAutoRows"}),tS=Rt({prop:"gridTemplateColumns"}),nS=Rt({prop:"gridTemplateRows"}),rS=Rt({prop:"gridTemplateAreas"}),oS=Rt({prop:"gridArea"});Ia(Aa,Ra,Na,Xw,Zw,Jw,Qw,eS,tS,nS,rS,oS);function _o(e,t){return t==="grey"?t:e}const sS=Rt({prop:"color",themeKey:"palette",transform:_o}),iS=Rt({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:_o}),aS=Rt({prop:"backgroundColor",themeKey:"palette",transform:_o});Ia(sS,iS,aS);function vn(e){return e<=1&&e!==0?`${e*100}%`:e}const lS=Rt({prop:"width",transform:vn}),Vc=e=>{if(e.maxWidth!==void 0&&e.maxWidth!==null){const t=n=>{const r=e.theme?.breakpoints?.values?.[n]||ka[n];return r?e.theme?.breakpoints?.unit!=="px"?{maxWidth:`${r}${e.theme.breakpoints.unit}`}:{maxWidth:r}:{maxWidth:vn(n)}};return Vn(e,e.maxWidth,t)}return null};Vc.filterProps=["maxWidth"];const cS=Rt({prop:"minWidth",transform:vn}),dS=Rt({prop:"height",transform:vn}),uS=Rt({prop:"maxHeight",transform:vn}),fS=Rt({prop:"minHeight",transform:vn});Rt({prop:"size",cssProperty:"width",transform:vn}),Rt({prop:"size",cssProperty:"height",transform:vn});const pS=Rt({prop:"boxSizing"});Ia(lS,Vc,cS,dS,uS,fS,pS);const Ys={border:{themeKey:"borders",transform:kn},borderTop:{themeKey:"borders",transform:kn},borderRight:{themeKey:"borders",transform:kn},borderBottom:{themeKey:"borders",transform:kn},borderLeft:{themeKey:"borders",transform:kn},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:kn},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:Da},color:{themeKey:"palette",transform:_o},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:_o},backgroundColor:{themeKey:"palette",transform:_o},p:{style:Dt},pt:{style:Dt},pr:{style:Dt},pb:{style:Dt},pl:{style:Dt},px:{style:Dt},py:{style:Dt},padding:{style:Dt},paddingTop:{style:Dt},paddingRight:{style:Dt},paddingBottom:{style:Dt},paddingLeft:{style:Dt},paddingX:{style:Dt},paddingY:{style:Dt},paddingInline:{style:Dt},paddingInlineStart:{style:Dt},paddingInlineEnd:{style:Dt},paddingBlock:{style:Dt},paddingBlockStart:{style:Dt},paddingBlockEnd:{style:Dt},m:{style:It},mt:{style:It},mr:{style:It},mb:{style:It},ml:{style:It},mx:{style:It},my:{style:It},margin:{style:It},marginTop:{style:It},marginRight:{style:It},marginBottom:{style:It},marginLeft:{style:It},marginX:{style:It},marginY:{style:It},marginInline:{style:It},marginInlineStart:{style:It},marginInlineEnd:{style:It},marginBlock:{style:It},marginBlockStart:{style:It},marginBlockEnd:{style:It},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:Aa},rowGap:{style:Na},columnGap:{style:Ra},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:vn},maxWidth:{style:Vc},minWidth:{transform:vn},height:{transform:vn},maxHeight:{transform:vn},minHeight:{transform:vn},boxSizing:{},font:{themeKey:"font"},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}};function hS(...e){const t=e.reduce((r,o)=>r.concat(Object.keys(o)),[]),n=new Set(t);return e.every(r=>n.size===Object.keys(r).length)}function mS(e,t){return typeof e=="function"?e(t):e}function gS(){function e(n,r,o,s){const a={[n]:r,theme:o},l=s[n];if(!l)return{[n]:r};const{cssProperty:c=n,themeKey:d,transform:u,style:f}=l;if(r==null)return null;if(d==="typography"&&r==="inherit")return{[n]:r};const h=Ea(o,d)||{};return f?f(a):Vn(a,r,g=>{let y=Oa(h,u,g);return g===y&&typeof g=="string"&&(y=Oa(h,u,`${n}${g==="default"?"":Q(g)}`,g)),c===!1?y:{[c]:y}})}function t(n){const{sx:r,theme:o={},nested:s}=n||{};if(!r)return null;const a=o.unstable_sxConfig??Ys;function l(c){let d=c;if(typeof c=="function")d=c(o);else if(typeof c!="object")return c;if(!d)return null;const u=hh(o.breakpoints),f=Object.keys(u);let h=u;return Object.keys(d).forEach(m=>{const g=mS(d[m],o);if(g!=null)if(typeof g=="object")if(a[m])h=Hs(h,e(m,g,o,a));else{const y=Vn({theme:o},g,b=>({[m]:b}));hS(y,g)?h[m]=t({sx:g,theme:o,nested:!0}):h=Hs(h,y)}else h=Hs(h,e(m,g,o,a))}),!s&&o.modularCssLayers?{"@layer sx":fh(o,Wc(f,h))}:fh(o,Wc(f,h))}return Array.isArray(r)?r.map(l):l(r)}return t}const Wr=gS();Wr.filterProps=["sx"];function yS(e,t){const n=this;if(n.vars){if(!n.colorSchemes?.[e]||typeof n.getColorSchemeSelector!="function")return{};let r=n.getColorSchemeSelector(e);return r==="&"?t:((r.includes("data-")||r.includes("."))&&(r=`*:where(${r.replace(/\s*&$/,"")}) &`),{[r]:t})}return n.palette.mode===e?t:{}}function qs(e={},...t){const{breakpoints:n={},palette:r={},spacing:o,shape:s={},...a}=e,l=Cw(n),c=yh(o);let d=Ht({breakpoints:l,direction:"ltr",components:{},palette:{mode:"light",...r},spacing:c,shape:{...Ow,...s}},a);return d=Ew(d),d.applyStyles=yS,d=t.reduce((u,f)=>Ht(u,f),d),d.unstable_sxConfig={...Ys,...a?.unstable_sxConfig},d.unstable_sx=function(f){return Wr({sx:f,theme:this})},d}function bS(e){return Object.keys(e).length===0}function Hc(e=null){const t=I.useContext(zs);return!t||bS(t)?e:t}const vS=qs();function Gs(e=vS){return Hc(e)}function Uc(e){const t=_r(e);return e!==t&&t.styles?(t.styles.match(/^@layer\s+[^{]*$/)||(t.styles=`@layer global{${t.styles}}`),t):e}function Yc({styles:e,themeId:t,defaultTheme:n={}}){const r=Gs(n),o=t&&r[t]||r;let s=typeof e=="function"?e(o):e;return o.modularCssLayers&&(Array.isArray(s)?s=s.map(a=>Uc(typeof a=="function"?a(o):a)):s=Uc(s)),p.jsx(Fc,{styles:s})}process.env.NODE_ENV!=="production"&&(Yc.propTypes={defaultTheme:i.object,styles:i.oneOfType([i.array,i.func,i.number,i.object,i.string,i.bool]),themeId:i.string});const xS=e=>{const t={systemProps:{},otherProps:{}},n=e?.theme?.unstable_sxConfig??Ys;return Object.keys(e).forEach(r=>{n[r]?t.systemProps[r]=e[r]:t.otherProps[r]=e[r]}),t};function $a(e){const{sx:t,...n}=e,{systemProps:r,otherProps:o}=xS(n);let s;return Array.isArray(t)?s=[r,...t]:typeof t=="function"?s=(...a)=>{const l=t(...a);return or(l)?{...r,...l}:r}:s={...r,...t},{...o,sx:s}}const bh=e=>e,vh=(()=>{let e=bh;return{configure(t){e=t},generate(t){return e(t)},reset(){e=bh}}})();function xh(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(n=xh(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function me(){for(var e,t,n=0,r="",o=arguments.length;n<o;n++)(e=arguments[n])&&(t=xh(e))&&(r&&(r+=" "),r+=t);return r}function wS(e={}){const{themeId:t,defaultTheme:n,defaultClassName:r="MuiBox-root",generateClassName:o}=e,s=ih("div",{shouldForwardProp:l=>l!=="theme"&&l!=="sx"&&l!=="as"})(Wr);return I.forwardRef(function(c,d){const u=Gs(n),{className:f,component:h="div",...m}=$a(c);return p.jsx(s,{as:h,ref:d,className:me(f,o?o(r):r),theme:t&&u[t]||u,...m})})}const SS={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 Ae(e,t,n="Mui"){const r=SS[t];return r?`${n}-${r}`:`${vh.generate(e)}-${t}`}function Ne(e,t,n="Mui"){const r={};return t.forEach(o=>{r[o]=Ae(e,o,n)}),r}function wh(e,t=""){return e.displayName||e.name||t}function Sh(e,t,n){const r=wh(t);return e.displayName||(r!==""?`${n}(${r})`:n)}function CS(e){if(e!=null){if(typeof e=="string")return e;if(typeof e=="function")return wh(e,"Component");if(typeof e=="object")switch(e.$$typeof){case kr.ForwardRef:return Sh(e,e.render,"ForwardRef");case kr.Memo:return Sh(e,e.type,"memo");default:return}}}function Ch(e){const{variants:t,...n}=e,r={variants:t,style:_r(n),isProcessed:!0};return r.style===n||t&&t.forEach(o=>{typeof o.style!="function"&&(o.style=_r(o.style))}),r}const TS=qs();function qc(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}function oo(e,t){return t&&e&&typeof e=="object"&&e.styles&&!e.styles.startsWith("@layer")&&(e.styles=`@layer ${t}{${String(e.styles)}}`),e}function kS(e){return e?(t,n)=>n[e]:null}function ES(e,t,n){e.theme=PS(e.theme)?n:e.theme[t]||e.theme}function La(e,t,n){const r=typeof t=="function"?t(e):t;if(Array.isArray(r))return r.flatMap(o=>La(e,o,n));if(Array.isArray(r?.variants)){let o;if(r.isProcessed)o=n?oo(r.style,n):r.style;else{const{variants:s,...a}=r;o=n?oo(_r(a),n):a}return Th(e,r.variants,[o],n)}return r?.isProcessed?n?oo(_r(r.style),n):r.style:n?oo(_r(r),n):r}function Th(e,t,n=[],r=void 0){let o;e:for(let s=0;s<t.length;s+=1){const a=t[s];if(typeof a.props=="function"){if(o??={...e,...e.ownerState,ownerState:e.ownerState},!a.props(o))continue}else for(const l in a.props)if(e[l]!==a.props[l]&&e.ownerState?.[l]!==a.props[l])continue e;typeof a.style=="function"?(o??={...e,...e.ownerState,ownerState:e.ownerState},n.push(r?oo(_r(a.style(o)),r):a.style(o))):n.push(r?oo(_r(a.style),r):a.style)}return n}function kh(e={}){const{themeId:t,defaultTheme:n=TS,rootShouldForwardProp:r=qc,slotShouldForwardProp:o=qc}=e;function s(l){ES(l,t,n)}return(l,c={})=>{bw(l,T=>T.filter(E=>E!==Wr));const{name:d,slot:u,skipVariantsResolver:f,skipSx:h,overridesResolver:m=kS(Eh(u)),...g}=c,y=d&&d.startsWith("Mui")||u?"components":"custom",b=f!==void 0?f:u&&u!=="Root"&&u!=="root"||!1,v=h||!1;let k=qc;u==="Root"||u==="root"?k=r:u?k=o:jS(l)&&(k=void 0);const S=ih(l,{shouldForwardProp:k,label:MS(d,u),...g}),C=T=>{if(T.__emotion_real===T)return T;if(typeof T=="function")return function(M){return La(M,T,M.theme.modularCssLayers?y:void 0)};if(or(T)){const E=Ch(T);return function(j){return E.variants?La(j,E,j.theme.modularCssLayers?y:void 0):j.theme.modularCssLayers?oo(E.style,y):E.style}}return T},w=(...T)=>{const E=[],M=T.map(C),j=[];if(E.push(s),d&&m&&j.push(function(N){const R=N.theme.components?.[d]?.styleOverrides;if(!R)return null;const $={};for(const _ in R)$[_]=La(N,R[_],N.theme.modularCssLayers?"theme":void 0);return m(N,$)}),d&&!b&&j.push(function(N){const R=N.theme?.components?.[d]?.variants;return R?Th(N,R,[],N.theme.modularCssLayers?"theme":void 0):null}),v||j.push(Wr),Array.isArray(M[0])){const O=M.shift(),N=new Array(E.length).fill(""),P=new Array(j.length).fill("");let R;R=[...N,...O,...P],R.raw=[...N,...O.raw,...P],E.unshift(R)}const A=[...E,...M,...j],L=S(...A);return l.muiName&&(L.muiName=l.muiName),process.env.NODE_ENV!=="production"&&(L.displayName=OS(d,u,l)),L};return S.withConfig&&(w.withConfig=S.withConfig),w}}function OS(e,t,n){return e?`${e}${Q(t||"")}`:`Styled(${CS(n)})`}function MS(e,t){let n;return process.env.NODE_ENV!=="production"&&e&&(n=`${e}-${Eh(t||"Root")}`),n}function PS(e){for(const t in e)return!1;return!0}function jS(e){return typeof e=="string"&&e.charCodeAt(0)>96}function Eh(e){return e&&e.charAt(0).toLowerCase()+e.slice(1)}const Oh=kh();function Ks(e,t,n=!1){const r={...t};for(const o in e)if(Object.prototype.hasOwnProperty.call(e,o)){const s=o;if(s==="components"||s==="slots")r[s]={...e[s],...r[s]};else if(s==="componentsProps"||s==="slotProps"){const a=e[s],l=t[s];if(!l)r[s]=a||{};else if(!a)r[s]=l;else{r[s]={...l};for(const c in a)if(Object.prototype.hasOwnProperty.call(a,c)){const d=c;r[s][d]=Ks(a[d],l[d],n)}}}else s==="className"&&n&&t.className?r.className=me(e?.className,t?.className):s==="style"&&n&&t.style?r.style={...e?.style,...t?.style}:r[s]===void 0&&(r[s]=e[s])}return r}function IS(e){const{theme:t,name:n,props:r}=e;return!t||!t.components||!t.components[n]||!t.components[n].defaultProps?r:Ks(t.components[n].defaultProps,r)}function Mh({props:e,name:t,defaultTheme:n,themeId:r}){let o=Gs(n);return r&&(o=o[r]||o),IS({theme:o,name:t,props:e})}const On=typeof window<"u"?I.useLayoutEffect:I.useEffect;function DS(e,t=Number.MIN_SAFE_INTEGER,n=Number.MAX_SAFE_INTEGER){return Math.max(t,Math.min(e,n))}function Gc(e,t=0,n=1){return process.env.NODE_ENV!=="production"&&(e<t||e>n)&&console.error(`MUI: The value provided ${e} is out of range [${t}, ${n}].`),DS(e,t,n)}function AS(e){e=e.slice(1);const t=new RegExp(`.{1,${e.length>=6?2:1}}`,"g");let n=e.match(t);return n&&n[0].length===1&&(n=n.map(r=>r+r)),process.env.NODE_ENV!=="production"&&e.length!==e.trim().length&&console.error(`MUI: The color: "${e}" is invalid. Make sure the color input doesn't contain leading/trailing space.`),n?`rgb${n.length===4?"a":""}(${n.map((r,o)=>o<3?parseInt(r,16):Math.round(parseInt(r,16)/255*1e3)/1e3).join(", ")})`:""}function zr(e){if(e.type)return e;if(e.charAt(0)==="#")return zr(AS(e));const t=e.indexOf("("),n=e.substring(0,t);if(!["rgb","rgba","hsl","hsla","color"].includes(n))throw new Error(process.env.NODE_ENV!=="production"?`MUI: Unsupported \`${e}\` color.
|
|
13
|
-
The following formats are supported: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla(), color().`:Qn(9,e));let r=e.substring(t+1,e.length-1),o;if(n==="color"){if(r=r.split(" "),o=r.shift(),r.length===4&&r[3].charAt(0)==="/"&&(r[3]=r[3].slice(1)),!["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].includes(o))throw new Error(process.env.NODE_ENV!=="production"?`MUI: unsupported \`${o}\` color space.
|
|
14
|
-
The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rgb, rec-2020.`:Qn(10,o))}else r=r.split(",");return r=r.map(s=>parseFloat(s)),{type:n,values:r,colorSpace:o}}const RS=e=>{const t=zr(e);return t.values.slice(0,3).map((n,r)=>t.type.includes("hsl")&&r!==0?`${n}%`:n).join(" ")},Xs=(e,t)=>{try{return RS(e)}catch{return t&&process.env.NODE_ENV!=="production"&&console.warn(t),e}};function Ba(e){const{type:t,colorSpace:n}=e;let{values:r}=e;return t.includes("rgb")?r=r.map((o,s)=>s<3?parseInt(o,10):o):t.includes("hsl")&&(r[1]=`${r[1]}%`,r[2]=`${r[2]}%`),t.includes("color")?r=`${n} ${r.join(" ")}`:r=`${r.join(", ")}`,`${t}(${r})`}function Ph(e){e=zr(e);const{values:t}=e,n=t[0],r=t[1]/100,o=t[2]/100,s=r*Math.min(o,1-o),a=(d,u=(d+n/30)%12)=>o-s*Math.max(Math.min(u-3,9-u,1),-1);let l="rgb";const c=[Math.round(a(0)*255),Math.round(a(8)*255),Math.round(a(4)*255)];return e.type==="hsla"&&(l+="a",c.push(t[3])),Ba({type:l,values:c})}function Kc(e){e=zr(e);let t=e.type==="hsl"||e.type==="hsla"?zr(Ph(e)).values:e.values;return t=t.map(n=>(e.type!=="color"&&(n/=255),n<=.03928?n/12.92:((n+.055)/1.055)**2.4)),Number((.2126*t[0]+.7152*t[1]+.0722*t[2]).toFixed(3))}function jh(e,t){const n=Kc(e),r=Kc(t);return(Math.max(n,r)+.05)/(Math.min(n,r)+.05)}function _a(e,t){return e=zr(e),t=Gc(t),(e.type==="rgb"||e.type==="hsl")&&(e.type+="a"),e.type==="color"?e.values[3]=`/${t}`:e.values[3]=t,Ba(e)}function so(e,t,n){try{return _a(e,t)}catch{return n&&process.env.NODE_ENV!=="production"&&console.warn(n),e}}function Fa(e,t){if(e=zr(e),t=Gc(t),e.type.includes("hsl"))e.values[2]*=1-t;else if(e.type.includes("rgb")||e.type.includes("color"))for(let n=0;n<3;n+=1)e.values[n]*=1-t;return Ba(e)}function pt(e,t,n){try{return Fa(e,t)}catch{return n&&process.env.NODE_ENV!=="production"&&console.warn(n),e}}function Wa(e,t){if(e=zr(e),t=Gc(t),e.type.includes("hsl"))e.values[2]+=(100-e.values[2])*t;else if(e.type.includes("rgb"))for(let n=0;n<3;n+=1)e.values[n]+=(255-e.values[n])*t;else if(e.type.includes("color"))for(let n=0;n<3;n+=1)e.values[n]+=(1-e.values[n])*t;return Ba(e)}function ht(e,t,n){try{return Wa(e,t)}catch{return n&&process.env.NODE_ENV!=="production"&&console.warn(n),e}}function Xc(e,t=.15){return Kc(e)>.5?Fa(e,t):Wa(e,t)}function za(e,t,n){try{return Xc(e,t)}catch{return e}}const NS="exact-prop: ";function Va(e){return process.env.NODE_ENV==="production"?e:{...e,[NS]:t=>{const n=Object.keys(t).filter(r=>!e.hasOwnProperty(r));return n.length>0?new Error(`The following props are not supported: ${n.map(r=>`\`${r}\``).join(", ")}. Please remove them.`):null}}}const Zc=I.createContext(null);process.env.NODE_ENV!=="production"&&(Zc.displayName="ThemeContext");function Jc(){const e=I.useContext(Zc);return process.env.NODE_ENV!=="production"&&I.useDebugValue(e),e}const $S=typeof Symbol=="function"&&Symbol.for?Symbol.for("mui.nested"):"__THEME_NESTED__";function LS(e,t){if(typeof t=="function"){const n=t(e);return process.env.NODE_ENV!=="production"&&(n||console.error(["MUI: You should return an object from your theme function, i.e.","<ThemeProvider theme={() => ({})} />"].join(`
|
|
15
|
-
`))),n}return{...e,...t}}function Ha(e){const{children:t,theme:n}=e,r=Jc();process.env.NODE_ENV!=="production"&&r===null&&typeof n=="function"&&console.error(["MUI: You are providing a theme function prop to the ThemeProvider component:","<ThemeProvider theme={outerTheme => outerTheme} />","","However, no outer theme is present.","Make sure a theme is already injected higher in the React tree or provide a theme object."].join(`
|
|
16
|
-
`));const o=I.useMemo(()=>{const s=r===null?{...n}:LS(r,n);return s!=null&&(s[$S]=r!==null),s},[n,r]);return p.jsx(Zc.Provider,{value:o,children:t})}process.env.NODE_ENV!=="production"&&(Ha.propTypes={children:i.node,theme:i.oneOfType([i.object,i.func]).isRequired}),process.env.NODE_ENV!=="production"&&process.env.NODE_ENV!=="production"&&(Ha.propTypes=Va(Ha.propTypes));const Ih=I.createContext();function Dh({value:e,...t}){return p.jsx(Ih.Provider,{value:e??!0,...t})}process.env.NODE_ENV!=="production"&&(Dh.propTypes={children:i.node,value:i.bool});const Fo=()=>I.useContext(Ih)??!1,Ah=I.createContext(void 0);function Rh({value:e,children:t}){return p.jsx(Ah.Provider,{value:e,children:t})}process.env.NODE_ENV!=="production"&&(Rh.propTypes={children:i.node,value:i.object});function BS(e){const{theme:t,name:n,props:r}=e;if(!t||!t.components||!t.components[n])return r;const o=t.components[n];return o.defaultProps?Ks(o.defaultProps,r,t.components.mergeClassNameAndStyle):!o.styleOverrides&&!o.variants?Ks(o,r,t.components.mergeClassNameAndStyle):r}function _S({props:e,name:t}){const n=I.useContext(Ah);return BS({props:e,name:t,theme:{components:n}})}let Nh=0;function FS(e){const[t,n]=I.useState(e),r=e||t;return I.useEffect(()=>{t==null&&(Nh+=1,n(`mui-${Nh}`))},[t]),r}const $h={...I}.useId;function io(e){if($h!==void 0){const t=$h();return e??t}return FS(e)}function WS(e){const t=Hc(),n=io()||"",{modularCssLayers:r}=e;let o="mui.global, mui.components, mui.theme, mui.custom, mui.sx";return!r||t!==null?o="":typeof r=="string"?o=r.replace(/mui(?!\.)/g,o):o=`@layer ${o};`,On(()=>{const s=document.querySelector("head");if(!s)return;const a=s.firstChild;if(o){if(a&&a.hasAttribute?.("data-mui-layer-order")&&a.getAttribute("data-mui-layer-order")===n)return;const l=document.createElement("style");l.setAttribute("data-mui-layer-order",n),l.textContent=o,s.prepend(l)}else s.querySelector(`style[data-mui-layer-order="${n}"]`)?.remove()},[o,n]),o?p.jsx(Yc,{styles:o}):null}const Lh={};function Bh(e,t,n,r=!1){return I.useMemo(()=>{const o=e&&t[e]||t;if(typeof n=="function"){const s=n(o),a=e?{...t,[e]:s}:s;return r?()=>a:a}return e?{...t,[e]:n}:{...t,...n}},[e,t,n,r])}function Zs(e){const{children:t,theme:n,themeId:r}=e,o=Hc(Lh),s=Jc()||Lh;process.env.NODE_ENV!=="production"&&(o===null&&typeof n=="function"||r&&o&&!o[r]&&typeof n=="function")&&console.error(["MUI: You are providing a theme function prop to the ThemeProvider component:","<ThemeProvider theme={outerTheme => outerTheme} />","","However, no outer theme is present.","Make sure a theme is already injected higher in the React tree or provide a theme object."].join(`
|
|
17
|
-
`));const a=Bh(r,o,n),l=Bh(r,s,n,!0),c=(r?a[r]:a).direction==="rtl",d=WS(a);return p.jsx(Ha,{theme:l,children:p.jsx(zs.Provider,{value:a,children:p.jsx(Dh,{value:c,children:p.jsxs(Rh,{value:r?a[r].components:a.components,children:[d,t]})})})})}process.env.NODE_ENV!=="production"&&(Zs.propTypes={children:i.node,theme:i.oneOfType([i.func,i.object]).isRequired,themeId:i.string}),process.env.NODE_ENV!=="production"&&process.env.NODE_ENV!=="production"&&(Zs.propTypes=Va(Zs.propTypes));const _h={theme:void 0};function zS(e){let t,n;return function(o){let s=t;return(s===void 0||o.theme!==n)&&(_h.theme=o.theme,s=Ch(e(_h)),t=s,n=o.theme),s}}const Qc="mode",ed="color-scheme",VS="data-color-scheme";function HS(e){const{defaultMode:t="system",defaultLightColorScheme:n="light",defaultDarkColorScheme:r="dark",modeStorageKey:o=Qc,colorSchemeStorageKey:s=ed,attribute:a=VS,colorSchemeNode:l="document.documentElement",nonce:c}=e||{};let d="",u=a;if(a==="class"&&(u=".%s"),a==="data"&&(u="[data-%s]"),u.startsWith(".")){const h=u.substring(1);d+=`${l}.classList.remove('${h}'.replace('%s', light), '${h}'.replace('%s', dark));
|
|
18
|
-
${l}.classList.add('${h}'.replace('%s', colorScheme));`}const f=u.match(/\[([^[\]]+)\]/);if(f){const[h,m]=f[1].split("=");m||(d+=`${l}.removeAttribute('${h}'.replace('%s', light));
|
|
19
|
-
${l}.removeAttribute('${h}'.replace('%s', dark));`),d+=`
|
|
20
|
-
${l}.setAttribute('${h}'.replace('%s', colorScheme), ${m?`${m}.replace('%s', colorScheme)`:'""'});`}else u!==".%s"&&(d+=`${l}.setAttribute('${u}', colorScheme);`);return p.jsx("script",{suppressHydrationWarning:!0,nonce:typeof window>"u"?c:"",dangerouslySetInnerHTML:{__html:`(function() {
|
|
21
|
-
try {
|
|
22
|
-
let colorScheme = '';
|
|
23
|
-
const mode = localStorage.getItem('${o}') || '${t}';
|
|
24
|
-
const dark = localStorage.getItem('${s}-dark') || '${r}';
|
|
25
|
-
const light = localStorage.getItem('${s}-light') || '${n}';
|
|
26
|
-
if (mode === 'system') {
|
|
27
|
-
// handle system mode
|
|
28
|
-
const mql = window.matchMedia('(prefers-color-scheme: dark)');
|
|
29
|
-
if (mql.matches) {
|
|
30
|
-
colorScheme = dark
|
|
31
|
-
} else {
|
|
32
|
-
colorScheme = light
|
|
33
|
-
}
|
|
34
|
-
}
|
|
35
|
-
if (mode === 'light') {
|
|
36
|
-
colorScheme = light;
|
|
37
|
-
}
|
|
38
|
-
if (mode === 'dark') {
|
|
39
|
-
colorScheme = dark;
|
|
40
|
-
}
|
|
41
|
-
if (colorScheme) {
|
|
42
|
-
${d}
|
|
43
|
-
}
|
|
44
|
-
} catch(e){}})();`}},"mui-color-scheme-init")}function US(){}const YS=({key:e,storageWindow:t})=>(!t&&typeof window<"u"&&(t=window),{get(n){if(typeof window>"u")return;if(!t)return n;let r;try{r=t.localStorage.getItem(e)}catch{}return r||n},set:n=>{if(t)try{t.localStorage.setItem(e,n)}catch{}},subscribe:n=>{if(!t)return US;const r=o=>{const s=o.newValue;o.key===e&&n(s)};return t.addEventListener("storage",r),()=>{t.removeEventListener("storage",r)}}});function td(){}function Fh(e){if(typeof window<"u"&&typeof window.matchMedia=="function"&&e==="system")return window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"}function Wh(e,t){if(e.mode==="light"||e.mode==="system"&&e.systemMode==="light")return t("light");if(e.mode==="dark"||e.mode==="system"&&e.systemMode==="dark")return t("dark")}function qS(e){return Wh(e,t=>{if(t==="light")return e.lightColorScheme;if(t==="dark")return e.darkColorScheme})}function GS(e){const{defaultMode:t="light",defaultLightColorScheme:n,defaultDarkColorScheme:r,supportedColorSchemes:o=[],modeStorageKey:s=Qc,colorSchemeStorageKey:a=ed,storageWindow:l=typeof window>"u"?void 0:window,storageManager:c=YS,noSsr:d=!1}=e,u=o.join(","),f=o.length>1,h=I.useMemo(()=>c?.({key:s,storageWindow:l}),[c,s,l]),m=I.useMemo(()=>c?.({key:`${a}-light`,storageWindow:l}),[c,a,l]),g=I.useMemo(()=>c?.({key:`${a}-dark`,storageWindow:l}),[c,a,l]),[y,b]=I.useState(()=>{const M=h?.get(t)||t,j=m?.get(n)||n,A=g?.get(r)||r;return{mode:M,systemMode:Fh(M),lightColorScheme:j,darkColorScheme:A}}),[v,k]=I.useState(d||!f);I.useEffect(()=>{k(!0)},[]);const S=qS(y),C=I.useCallback(M=>{b(j=>{if(M===j.mode)return j;const A=M??t;return h?.set(A),{...j,mode:A,systemMode:Fh(A)}})},[h,t]),w=I.useCallback(M=>{M?typeof M=="string"?M&&!u.includes(M)?console.error(`\`${M}\` does not exist in \`theme.colorSchemes\`.`):b(j=>{const A={...j};return Wh(j,L=>{L==="light"&&(m?.set(M),A.lightColorScheme=M),L==="dark"&&(g?.set(M),A.darkColorScheme=M)}),A}):b(j=>{const A={...j},L=M.light===null?n:M.light,O=M.dark===null?r:M.dark;return L&&(u.includes(L)?(A.lightColorScheme=L,m?.set(L)):console.error(`\`${L}\` does not exist in \`theme.colorSchemes\`.`)),O&&(u.includes(O)?(A.darkColorScheme=O,g?.set(O)):console.error(`\`${O}\` does not exist in \`theme.colorSchemes\`.`)),A}):b(j=>(m?.set(n),g?.set(r),{...j,lightColorScheme:n,darkColorScheme:r}))},[u,m,g,n,r]),T=I.useCallback(M=>{y.mode==="system"&&b(j=>{const A=M?.matches?"dark":"light";return j.systemMode===A?j:{...j,systemMode:A}})},[y.mode]),E=I.useRef(T);return E.current=T,I.useEffect(()=>{if(typeof window.matchMedia!="function"||!f)return;const M=(...A)=>E.current(...A),j=window.matchMedia("(prefers-color-scheme: dark)");return j.addListener(M),M(j),()=>{j.removeListener(M)}},[f]),I.useEffect(()=>{if(f){const M=h?.subscribe(L=>{(!L||["light","dark","system"].includes(L))&&C(L||t)})||td,j=m?.subscribe(L=>{(!L||u.match(L))&&w({light:L})})||td,A=g?.subscribe(L=>{(!L||u.match(L))&&w({dark:L})})||td;return()=>{M(),j(),A()}}},[w,C,u,t,l,f,h,m,g]),{...y,mode:v?y.mode:void 0,systemMode:v?y.systemMode:void 0,colorScheme:v?S:void 0,setMode:C,setColorScheme:w}}const KS="*{-webkit-transition:none!important;-moz-transition:none!important;-o-transition:none!important;-ms-transition:none!important;transition:none!important}";function XS(e){const{themeId:t,theme:n={},modeStorageKey:r=Qc,colorSchemeStorageKey:o=ed,disableTransitionOnChange:s=!1,defaultColorScheme:a,resolveTheme:l}=e,c={allColorSchemes:[],colorScheme:void 0,darkColorScheme:void 0,lightColorScheme:void 0,mode:void 0,setColorScheme:()=>{},setMode:()=>{},systemMode:void 0},d=I.createContext(void 0);process.env.NODE_ENV!=="production"&&(d.displayName="ColorSchemeContext");const u=()=>I.useContext(d)||c,f={},h={};function m(v){const{children:k,theme:S,modeStorageKey:C=r,colorSchemeStorageKey:w=o,disableTransitionOnChange:T=s,storageManager:E,storageWindow:M=typeof window>"u"?void 0:window,documentNode:j=typeof document>"u"?void 0:document,colorSchemeNode:A=typeof document>"u"?void 0:document.documentElement,disableNestedContext:L=!1,disableStyleSheetGeneration:O=!1,defaultMode:N="system",forceThemeRerender:P=!1,noSsr:R}=v,$=I.useRef(!1),_=Jc(),U=I.useContext(d),H=!!U&&!L,B=I.useMemo(()=>S||(typeof n=="function"?n():n),[S]),D=B[t],z=D||B,{colorSchemes:V=f,components:X=h,cssVarPrefix:G}=z,Y=Object.keys(V).filter(pe=>!!V[pe]).join(","),K=I.useMemo(()=>Y.split(","),[Y]),ae=typeof a=="string"?a:a.light,le=typeof a=="string"?a:a.dark,W=V[ae]&&V[le]?N:V[z.defaultColorScheme]?.palette?.mode||z.palette?.mode,{mode:ee,setMode:F,systemMode:fe,lightColorScheme:se,darkColorScheme:Z,colorScheme:Ce,setColorScheme:Te}=GS({supportedColorSchemes:K,defaultLightColorScheme:ae,defaultDarkColorScheme:le,modeStorageKey:C,colorSchemeStorageKey:w,defaultMode:W,storageManager:E,storageWindow:M,noSsr:R});let ke=ee,we=Ce;H&&(ke=U.mode,we=U.colorScheme),process.env.NODE_ENV!=="production"&&P&&!z.vars&&console.warn(["MUI: The `forceThemeRerender` prop should only be used with CSS theme variables.","Note that it will slow down the app when changing between modes, so only do this when you cannot find a better solution."].join(`
|
|
45
|
-
`));let Re=we||z.defaultColorScheme;z.vars&&!P&&(Re=z.defaultColorScheme);const Oe=I.useMemo(()=>{const pe=z.generateThemeVars?.()||z.vars,he={...z,components:X,colorSchemes:V,cssVarPrefix:G,vars:pe};if(typeof he.generateSpacing=="function"&&(he.spacing=he.generateSpacing()),Re){const Me=V[Re];Me&&typeof Me=="object"&&Object.keys(Me).forEach(We=>{Me[We]&&typeof Me[We]=="object"?he[We]={...he[We],...Me[We]}:he[We]=Me[We]})}return l?l(he):he},[z,Re,X,V,G]),ge=z.colorSchemeSelector;On(()=>{if(we&&A&&ge&&ge!=="media"){const pe=ge;let he=ge;if(pe==="class"&&(he=".%s"),pe==="data"&&(he="[data-%s]"),pe?.startsWith("data-")&&!pe.includes("%s")&&(he=`[${pe}="%s"]`),he.startsWith("."))A.classList.remove(...K.map(Me=>he.substring(1).replace("%s",Me))),A.classList.add(he.substring(1).replace("%s",we));else{const Me=he.replace("%s",we).match(/\[([^\]]+)\]/);if(Me){const[We,rt]=Me[1].split("=");rt||K.forEach(be=>{A.removeAttribute(We.replace(we,be))}),A.setAttribute(We,rt?rt.replace(/"|'/g,""):"")}else A.setAttribute(he,we)}}},[we,ge,A,K]),I.useEffect(()=>{let pe;if(T&&$.current&&j){const he=j.createElement("style");he.appendChild(j.createTextNode(KS)),j.head.appendChild(he),window.getComputedStyle(j.body),pe=setTimeout(()=>{j.head.removeChild(he)},1)}return()=>{clearTimeout(pe)}},[we,T,j]),I.useEffect(()=>($.current=!0,()=>{$.current=!1}),[]);const ne=I.useMemo(()=>({allColorSchemes:K,colorScheme:we,darkColorScheme:Z,lightColorScheme:se,mode:ke,setColorScheme:Te,setMode:process.env.NODE_ENV==="production"?F:pe=>{Oe.colorSchemeSelector==="media"&&console.error(["MUI: The `setMode` function has no effect if `colorSchemeSelector` is `media` (`media` is the default value).","To toggle the mode manually, please configure `colorSchemeSelector` to use a class or data attribute.","To learn more, visit https://mui.com/material-ui/customization/css-theme-variables/configuration/#toggling-dark-mode-manually"].join(`
|
|
46
|
-
`)),F(pe)},systemMode:fe}),[K,we,Z,se,ke,Te,F,fe,Oe.colorSchemeSelector]);let ie=!0;(O||z.cssVariables===!1||H&&_?.cssVarPrefix===G)&&(ie=!1);const Ee=p.jsxs(I.Fragment,{children:[p.jsx(Zs,{themeId:D?t:void 0,theme:Oe,children:k}),ie&&p.jsx(Fc,{styles:Oe.generateStyleSheets?.()||[]})]});return H?Ee:p.jsx(d.Provider,{value:ne,children:Ee})}process.env.NODE_ENV!=="production"&&(m.propTypes={children:i.node,colorSchemeNode:i.any,colorSchemeStorageKey:i.string,defaultMode:i.string,disableNestedContext:i.bool,disableStyleSheetGeneration:i.bool,disableTransitionOnChange:i.bool,documentNode:i.any,forceThemeRerender:i.bool,modeStorageKey:i.string,noSsr:i.bool,storageManager:i.func,storageWindow:i.any,theme:i.object});const g=typeof a=="string"?a:a.light,y=typeof a=="string"?a:a.dark;return{CssVarsProvider:m,useColorScheme:u,getInitColorSchemeScript:v=>HS({colorSchemeStorageKey:o,defaultLightColorScheme:g,defaultDarkColorScheme:y,modeStorageKey:r,...v})}}function ZS(e=""){function t(...r){if(!r.length)return"";const o=r[0];return typeof o=="string"&&!o.match(/(#|\(|\)|(-?(\d*\.)?\d+)(px|em|%|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc))|^(-?(\d*\.)?\d+)$|(\d+ \d+ \d+)/)?`, var(--${e?`${e}-`:""}${o}${t(...r.slice(1))})`:`, ${o}`}return(r,...o)=>`var(--${e?`${e}-`:""}${r}${t(...o)})`}const zh=(e,t,n,r=[])=>{let o=e;t.forEach((s,a)=>{a===t.length-1?Array.isArray(o)?o[Number(s)]=n:o&&typeof o=="object"&&(o[s]=n):o&&typeof o=="object"&&(o[s]||(o[s]=r.includes(s)?[]:{}),o=o[s])})},JS=(e,t,n)=>{function r(o,s=[],a=[]){Object.entries(o).forEach(([l,c])=>{(!n||n&&!n([...s,l]))&&c!=null&&(typeof c=="object"&&Object.keys(c).length>0?r(c,[...s,l],Array.isArray(c)?[...a,l]:a):t([...s,l],c,a))})}r(e)},QS=(e,t)=>typeof t=="number"?["lineHeight","fontWeight","opacity","zIndex"].some(r=>e.includes(r))||e[e.length-1].toLowerCase().includes("opacity")?t:`${t}px`:t;function nd(e,t){const{prefix:n,shouldSkipGeneratingVar:r}=t||{},o={},s={},a={};return JS(e,(l,c,d)=>{if((typeof c=="string"||typeof c=="number")&&(!r||!r(l,c))){const u=`--${n?`${n}-`:""}${l.join("-")}`,f=QS(l,c);Object.assign(o,{[u]:f}),zh(s,l,`var(${u})`,d),zh(a,l,`var(${u}, ${f})`,d)}},l=>l[0]==="vars"),{css:o,vars:s,varsWithDefaults:a}}function eC(e,t={}){const{getSelector:n=v,disableCssColorScheme:r,colorSchemeSelector:o,enableContrastVars:s}=t,{colorSchemes:a={},components:l,defaultColorScheme:c="light",...d}=e,{vars:u,css:f,varsWithDefaults:h}=nd(d,t);let m=h;const g={},{[c]:y,...b}=a;if(Object.entries(b||{}).forEach(([C,w])=>{const{vars:T,css:E,varsWithDefaults:M}=nd(w,t);m=Ht(m,M),g[C]={css:E,vars:T}}),y){const{css:C,vars:w,varsWithDefaults:T}=nd(y,t);m=Ht(m,T),g[c]={css:C,vars:w}}function v(C,w){let T=o;if(o==="class"&&(T=".%s"),o==="data"&&(T="[data-%s]"),o?.startsWith("data-")&&!o.includes("%s")&&(T=`[${o}="%s"]`),C){if(T==="media")return e.defaultColorScheme===C?":root":{[`@media (prefers-color-scheme: ${a[C]?.palette?.mode||C})`]:{":root":w}};if(T)return e.defaultColorScheme===C?`:root, ${T.replace("%s",String(C))}`:T.replace("%s",String(C))}return":root"}return{vars:m,generateThemeVars:()=>{let C={...u};return Object.entries(g).forEach(([,{vars:w}])=>{C=Ht(C,w)}),C},generateStyleSheets:()=>{const C=[],w=e.defaultColorScheme||"light";function T(j,A){Object.keys(A).length&&C.push(typeof j=="string"?{[j]:{...A}}:j)}T(n(void 0,{...f}),f);const{[w]:E,...M}=g;if(E){const{css:j}=E,A=a[w]?.palette?.mode,L=!r&&A?{colorScheme:A,...j}:{...j};T(n(w,{...L}),L)}return Object.entries(M).forEach(([j,{css:A}])=>{const L=a[j]?.palette?.mode,O=!r&&L?{colorScheme:L,...A}:{...A};T(n(j,{...O}),O)}),s&&C.push({":root":{"--__l-threshold":"0.7","--__l":"clamp(0, (l / var(--__l-threshold) - 1) * -infinity, 1)","--__a":"clamp(0.87, (l / var(--__l-threshold) - 1) * -infinity, 1)"}}),C}}}function tC(e){return function(n){return e==="media"?(process.env.NODE_ENV!=="production"&&n!=="light"&&n!=="dark"&&console.error(`MUI: @media (prefers-color-scheme) supports only 'light' or 'dark', but receive '${n}'.`),`@media (prefers-color-scheme: ${n})`):e?e.startsWith("data-")&&!e.includes("%s")?`[${e}="${n}"] &`:e==="class"?`.${n} &`:e==="data"?`[data-${n}] &`:`${e.replace("%s",n)} &`:"&"}}function $e(e,t,n=void 0){const r={};for(const o in e){const s=e[o];let a="",l=!0;for(let c=0;c<s.length;c+=1){const d=s[c];d&&(a+=(l===!0?"":" ")+t(d),l=!1,n&&n[d]&&(a+=" "+n[d]))}r[o]=a}return r}function Ua(e,t){return I.isValidElement(e)&&t.indexOf(e.type.muiName??e.type?._payload?.value?.muiName)!==-1}const nC=(e,t)=>e.filter(n=>t.includes(n)),Wo=(e,t,n)=>{const r=e.keys[0];Array.isArray(t)?t.forEach((o,s)=>{n((a,l)=>{s<=e.keys.length-1&&(s===0?Object.assign(a,l):a[e.up(e.keys[s])]=l)},o)}):t&&typeof t=="object"?(Object.keys(t).length>e.keys.length?e.keys:nC(e.keys,Object.keys(t))).forEach(s=>{if(e.keys.includes(s)){const a=t[s];a!==void 0&&n((l,c)=>{r===s?Object.assign(l,c):l[e.up(s)]=c},a)}}):(typeof t=="number"||typeof t=="string")&&n((o,s)=>{Object.assign(o,s)},t)};function Ya(e){return`--Grid-${e}Spacing`}function qa(e){return`--Grid-parent-${e}Spacing`}const Vh="--Grid-columns",zo="--Grid-parent-columns",rC=({theme:e,ownerState:t})=>{const n={};return Wo(e.breakpoints,t.size,(r,o)=>{let s={};o==="grow"&&(s={flexBasis:0,flexGrow:1,maxWidth:"100%"}),o==="auto"&&(s={flexBasis:"auto",flexGrow:0,flexShrink:0,maxWidth:"none",width:"auto"}),typeof o=="number"&&(s={flexGrow:0,flexBasis:"auto",width:`calc(100% * ${o} / var(${zo}) - (var(${zo}) - ${o}) * (var(${qa("column")}) / var(${zo})))`}),r(n,s)}),n},oC=({theme:e,ownerState:t})=>{const n={};return Wo(e.breakpoints,t.offset,(r,o)=>{let s={};o==="auto"&&(s={marginLeft:"auto"}),typeof o=="number"&&(s={marginLeft:o===0?"0px":`calc(100% * ${o} / var(${zo}) + var(${qa("column")}) * ${o} / var(${zo}))`}),r(n,s)}),n},sC=({theme:e,ownerState:t})=>{if(!t.container)return{};const n={[Vh]:12};return Wo(e.breakpoints,t.columns,(r,o)=>{const s=o??12;r(n,{[Vh]:s,"> *":{[zo]:s}})}),n},iC=({theme:e,ownerState:t})=>{if(!t.container)return{};const n={};return Wo(e.breakpoints,t.rowSpacing,(r,o)=>{const s=typeof o=="string"?o:e.spacing?.(o);r(n,{[Ya("row")]:s,"> *":{[qa("row")]:s}})}),n},aC=({theme:e,ownerState:t})=>{if(!t.container)return{};const n={};return Wo(e.breakpoints,t.columnSpacing,(r,o)=>{const s=typeof o=="string"?o:e.spacing?.(o);r(n,{[Ya("column")]:s,"> *":{[qa("column")]:s}})}),n},lC=({theme:e,ownerState:t})=>{if(!t.container)return{};const n={};return Wo(e.breakpoints,t.direction,(r,o)=>{r(n,{flexDirection:o})}),n},cC=({ownerState:e})=>({minWidth:0,boxSizing:"border-box",...e.container&&{display:"flex",flexWrap:"wrap",...e.wrap&&e.wrap!=="wrap"&&{flexWrap:e.wrap},gap:`var(${Ya("row")}) var(${Ya("column")})`}}),dC=e=>{const t=[];return Object.entries(e).forEach(([n,r])=>{r!==!1&&r!==void 0&&t.push(`grid-${n}-${String(r)}`)}),t},uC=(e,t="xs")=>{function n(r){return r===void 0?!1:typeof r=="string"&&!Number.isNaN(Number(r))||typeof r=="number"&&r>0}if(n(e))return[`spacing-${t}-${String(e)}`];if(typeof e=="object"&&!Array.isArray(e)){const r=[];return Object.entries(e).forEach(([o,s])=>{n(s)&&r.push(`spacing-${o}-${String(s)}`)}),r}return[]},fC=e=>e===void 0?[]:typeof e=="object"?Object.entries(e).map(([t,n])=>`direction-${t}-${n}`):[`direction-xs-${String(e)}`],pC=e=>["item","zeroMinWidth"].includes(e)?`The \`${e}\` prop has been removed and is no longer necessary. You can safely remove it.`:`The \`${e}\` prop has been removed. See https://mui.com/material-ui/migration/upgrade-to-grid-v2/ for migration instructions.`,Hh=[];function hC(e,t){const n=[];e.item!==void 0&&(delete e.item,n.push("item")),e.zeroMinWidth!==void 0&&(delete e.zeroMinWidth,n.push("zeroMinWidth")),t.keys.forEach(r=>{e[r]!==void 0&&(n.push(r),delete e[r])}),process.env.NODE_ENV!=="production"&&n.forEach(r=>{Hh.includes(r)||(Hh.push(r),console.warn(`MUI Grid: ${pC(r)}
|
|
47
|
-
`))})}const mC=qs(),gC=Oh("div",{name:"MuiGrid",slot:"Root"});function yC(e){return Mh({props:e,name:"MuiGrid",defaultTheme:mC})}function bC(e={}){const{createStyledComponent:t=gC,useThemeProps:n=yC,useTheme:r=Gs,componentName:o="MuiGrid"}=e,s=(d,u)=>{const{container:f,direction:h,spacing:m,wrap:g,size:y}=d,b={root:["root",f&&"container",g!=="wrap"&&`wrap-xs-${String(g)}`,...fC(h),...dC(y),...f?uC(m,u.breakpoints.keys[0]):[]]};return $e(b,v=>Ae(o,v),{})};function a(d,u,f=()=>!0){const h={};return d===null||(Array.isArray(d)?d.forEach((m,g)=>{m!==null&&f(m)&&u.keys[g]&&(h[u.keys[g]]=m)}):typeof d=="object"?Object.keys(d).forEach(m=>{const g=d[m];g!=null&&f(g)&&(h[m]=g)}):h[u.keys[0]]=d),h}const l=t(sC,aC,iC,rC,lC,cC,oC),c=I.forwardRef(function(u,f){const h=r(),m=n(u),g=$a(m);hC(g,h.breakpoints);const{className:y,children:b,columns:v=12,container:k=!1,component:S="div",direction:C="row",wrap:w="wrap",size:T={},offset:E={},spacing:M=0,rowSpacing:j=M,columnSpacing:A=M,unstable_level:L=0,...O}=g,N=a(T,h.breakpoints,D=>D!==!1),P=a(E,h.breakpoints),R=u.columns??(L?void 0:v),$=u.spacing??(L?void 0:M),_=u.rowSpacing??u.spacing??(L?void 0:j),U=u.columnSpacing??u.spacing??(L?void 0:A),H={...g,level:L,columns:R,container:k,direction:C,wrap:w,spacing:$,rowSpacing:_,columnSpacing:U,size:N,offset:P},B=s(H,h);return p.jsx(l,{ref:f,as:S,ownerState:H,className:me(B.root,y),...O,children:I.Children.map(b,D=>I.isValidElement(D)&&Ua(D,["Grid"])&&k&&D.props.container?I.cloneElement(D,{unstable_level:D.props?.unstable_level??L+1}):D)})});return process.env.NODE_ENV!=="production"&&(c.propTypes={children:i.node,className:i.string,columns:i.oneOfType([i.arrayOf(i.number),i.number,i.object]),columnSpacing:i.oneOfType([i.arrayOf(i.oneOfType([i.number,i.string])),i.number,i.object,i.string]),component:i.elementType,container:i.bool,direction:i.oneOfType([i.oneOf(["column-reverse","column","row-reverse","row"]),i.arrayOf(i.oneOf(["column-reverse","column","row-reverse","row"])),i.object]),offset:i.oneOfType([i.string,i.number,i.arrayOf(i.oneOfType([i.string,i.number])),i.object]),rowSpacing:i.oneOfType([i.arrayOf(i.oneOfType([i.number,i.string])),i.number,i.object,i.string]),size:i.oneOfType([i.string,i.bool,i.number,i.arrayOf(i.oneOfType([i.string,i.bool,i.number])),i.object]),spacing:i.oneOfType([i.arrayOf(i.oneOfType([i.number,i.string])),i.number,i.object,i.string]),sx:i.oneOfType([i.arrayOf(i.oneOfType([i.func,i.object,i.bool])),i.func,i.object]),wrap:i.oneOf(["nowrap","wrap-reverse","wrap"])}),c.muiName="Grid",c}const vC=qs(),xC=Oh("div",{name:"MuiStack",slot:"Root"});function wC(e){return Mh({props:e,name:"MuiStack",defaultTheme:vC})}function SC(e,t){const n=I.Children.toArray(e).filter(Boolean);return n.reduce((r,o,s)=>(r.push(o),s<n.length-1&&r.push(I.cloneElement(t,{key:`separator-${s}`})),r),[])}const CC=e=>({row:"Left","row-reverse":"Right",column:"Top","column-reverse":"Bottom"})[e],TC=({ownerState:e,theme:t})=>{let n={display:"flex",flexDirection:"column",...Vn({theme:t},zc({values:e.direction,breakpoints:t.breakpoints.values}),r=>({flexDirection:r}))};if(e.spacing){const r=ja(t),o=Object.keys(t.breakpoints.values).reduce((c,d)=>((typeof e.spacing=="object"&&e.spacing[d]!=null||typeof e.direction=="object"&&e.direction[d]!=null)&&(c[d]=!0),c),{}),s=zc({values:e.direction,base:o}),a=zc({values:e.spacing,base:o});typeof s=="object"&&Object.keys(s).forEach((c,d,u)=>{if(!s[c]){const h=d>0?s[u[d-1]]:"column";s[c]=h}}),n=Ht(n,Vn({theme:t},a,(c,d)=>e.useFlexGap?{gap:ro(r,c)}:{"& > :not(style):not(style)":{margin:0},"& > :not(style) ~ :not(style)":{[`margin${CC(d?s[d]:e.direction)}`]:ro(r,c)}}))}return n=Pw(t.breakpoints,n),n};function kC(e={}){const{createStyledComponent:t=xC,useThemeProps:n=wC,componentName:r="MuiStack"}=e,o=()=>$e({root:["root"]},c=>Ae(r,c),{}),s=t(TC),a=I.forwardRef(function(c,d){const u=n(c),f=$a(u),{component:h="div",direction:m="column",spacing:g=0,divider:y,children:b,className:v,useFlexGap:k=!1,...S}=f,C={direction:m,spacing:g,useFlexGap:k},w=o();return p.jsx(s,{as:h,ownerState:C,ref:d,className:me(w.root,v),...S,children:y?SC(b,y):b})});return process.env.NODE_ENV!=="production"&&(a.propTypes={children:i.node,direction:i.oneOfType([i.oneOf(["column-reverse","column","row-reverse","row"]),i.arrayOf(i.oneOf(["column-reverse","column","row-reverse","row"])),i.object]),divider:i.node,spacing:i.oneOfType([i.arrayOf(i.oneOfType([i.number,i.string])),i.number,i.object,i.string]),sx:i.oneOfType([i.arrayOf(i.oneOfType([i.func,i.object,i.bool])),i.func,i.object])}),a}function Uh(){return{text:{primary:"rgba(0, 0, 0, 0.87)",secondary:"rgba(0, 0, 0, 0.6)",disabled:"rgba(0, 0, 0, 0.38)"},divider:"rgba(0, 0, 0, 0.12)",background:{paper:Rs.white,default:Rs.white},action:{active:"rgba(0, 0, 0, 0.54)",hover:"rgba(0, 0, 0, 0.04)",hoverOpacity:.04,selected:"rgba(0, 0, 0, 0.08)",selectedOpacity:.08,disabled:"rgba(0, 0, 0, 0.26)",disabledBackground:"rgba(0, 0, 0, 0.12)",disabledOpacity:.38,focus:"rgba(0, 0, 0, 0.12)",focusOpacity:.12,activatedOpacity:.12}}}const Yh=Uh();function qh(){return{text:{primary:Rs.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:Rs.white,hover:"rgba(255, 255, 255, 0.08)",hoverOpacity:.08,selected:"rgba(255, 255, 255, 0.16)",selectedOpacity:.16,disabled:"rgba(255, 255, 255, 0.3)",disabledBackground:"rgba(255, 255, 255, 0.12)",disabledOpacity:.38,focus:"rgba(255, 255, 255, 0.12)",focusOpacity:.12,activatedOpacity:.24}}}const rd=qh();function Gh(e,t,n,r){const o=r.light||r,s=r.dark||r*1.5;e[t]||(e.hasOwnProperty(n)?e[t]=e[n]:t==="light"?e.light=Wa(e.main,o):t==="dark"&&(e.dark=Fa(e.main,s)))}function Kh(e,t,n,r,o){const s=o.light||o,a=o.dark||o*1.5;t[n]||(t.hasOwnProperty(r)?t[n]=t[r]:n==="light"?t.light=`color-mix(in ${e}, ${t.main}, #fff ${(s*100).toFixed(0)}%)`:n==="dark"&&(t.dark=`color-mix(in ${e}, ${t.main}, #000 ${(a*100).toFixed(0)}%)`))}function EC(e="light"){return e==="dark"?{main:Ao[200],light:Ao[50],dark:Ao[400]}:{main:Ao[700],light:Ao[400],dark:Ao[800]}}function OC(e="light"){return e==="dark"?{main:Do[200],light:Do[50],dark:Do[400]}:{main:Do[500],light:Do[300],dark:Do[700]}}function MC(e="light"){return e==="dark"?{main:Io[500],light:Io[300],dark:Io[700]}:{main:Io[700],light:Io[400],dark:Io[800]}}function PC(e="light"){return e==="dark"?{main:Ro[400],light:Ro[300],dark:Ro[700]}:{main:Ro[700],light:Ro[500],dark:Ro[900]}}function jC(e="light"){return e==="dark"?{main:No[400],light:No[300],dark:No[700]}:{main:No[800],light:No[500],dark:No[900]}}function IC(e="light"){return e==="dark"?{main:Ns[400],light:Ns[300],dark:Ns[700]}:{main:"#ed6c02",light:Ns[500],dark:Ns[900]}}function DC(e){return`oklch(from ${e} var(--__l) 0 h / var(--__a))`}function od(e){const{mode:t="light",contrastThreshold:n=3,tonalOffset:r=.2,colorSpace:o,...s}=e,a=e.primary||EC(t),l=e.secondary||OC(t),c=e.error||MC(t),d=e.info||PC(t),u=e.success||jC(t),f=e.warning||IC(t);function h(b){if(o)return DC(b);const v=jh(b,rd.text.primary)>=n?rd.text.primary:Yh.text.primary;if(process.env.NODE_ENV!=="production"){const k=jh(b,v);k<3&&console.error([`MUI: The contrast ratio of ${k}:1 for ${v} on ${b}`,"falls below the WCAG recommended absolute minimum contrast ratio of 3:1.","https://www.w3.org/TR/2008/REC-WCAG20-20081211/#visual-audio-contrast-contrast"].join(`
|
|
48
|
-
`))}return v}const m=({color:b,name:v,mainShade:k=500,lightShade:S=300,darkShade:C=700})=>{if(b={...b},!b.main&&b[k]&&(b.main=b[k]),!b.hasOwnProperty("main"))throw new Error(process.env.NODE_ENV!=="production"?`MUI: The color${v?` (${v})`:""} provided to augmentColor(color) is invalid.
|
|
49
|
-
The color object needs to have a \`main\` property or a \`${k}\` property.`:Qn(11,v?` (${v})`:"",k));if(typeof b.main!="string")throw new Error(process.env.NODE_ENV!=="production"?`MUI: The color${v?` (${v})`:""} provided to augmentColor(color) is invalid.
|
|
50
|
-
\`color.main\` should be a string, but \`${JSON.stringify(b.main)}\` was provided instead.
|
|
51
|
-
|
|
52
|
-
Did you intend to use one of the following approaches?
|
|
53
|
-
|
|
54
|
-
import { green } from "@mui/material/colors";
|
|
55
|
-
|
|
56
|
-
const theme1 = createTheme({ palette: {
|
|
57
|
-
primary: green,
|
|
58
|
-
} });
|
|
59
|
-
|
|
60
|
-
const theme2 = createTheme({ palette: {
|
|
61
|
-
primary: { main: green[500] },
|
|
62
|
-
} });`:Qn(12,v?` (${v})`:"",JSON.stringify(b.main)));return o?(Kh(o,b,"light",S,r),Kh(o,b,"dark",C,r)):(Gh(b,"light",S,r),Gh(b,"dark",C,r)),b.contrastText||(b.contrastText=h(b.main)),b};let g;return t==="light"?g=Uh():t==="dark"&&(g=qh()),process.env.NODE_ENV!=="production"&&(g||console.error(`MUI: The palette mode \`${t}\` is not supported.`)),Ht({common:{...Rs},mode:t,primary:m({color:a,name:"primary"}),secondary:m({color:l,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:m({color:c,name:"error"}),warning:m({color:f,name:"warning"}),info:m({color:d,name:"info"}),success:m({color:u,name:"success"}),grey:dx,contrastThreshold:n,getContrastText:h,augmentColor:m,tonalOffset:r,...g},s)}function AC(e){const t={};return Object.entries(e).forEach(r=>{const[o,s]=r;typeof s=="object"&&(t[o]=`${s.fontStyle?`${s.fontStyle} `:""}${s.fontVariant?`${s.fontVariant} `:""}${s.fontWeight?`${s.fontWeight} `:""}${s.fontStretch?`${s.fontStretch} `:""}${s.fontSize||""}${s.lineHeight?`/${s.lineHeight} `:""}${s.fontFamily||""}`)}),t}function RC(e,t){return{toolbar:{minHeight:56,[e.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[e.up("sm")]:{minHeight:64}},...t}}function NC(e){return Math.round(e*1e5)/1e5}const Xh={textTransform:"uppercase"},Zh='"Roboto", "Helvetica", "Arial", sans-serif';function Jh(e,t){const{fontFamily:n=Zh,fontSize:r=14,fontWeightLight:o=300,fontWeightRegular:s=400,fontWeightMedium:a=500,fontWeightBold:l=700,htmlFontSize:c=16,allVariants:d,pxToRem:u,...f}=typeof t=="function"?t(e):t;process.env.NODE_ENV!=="production"&&(typeof r!="number"&&console.error("MUI: `fontSize` is required to be a number."),typeof c!="number"&&console.error("MUI: `htmlFontSize` is required to be a number."));const h=r/14,m=u||(b=>`${b/c*h}rem`),g=(b,v,k,S,C)=>({fontFamily:n,fontWeight:b,fontSize:m(v),lineHeight:k,...n===Zh?{letterSpacing:`${NC(S/v)}em`}:{},...C,...d}),y={h1:g(o,96,1.167,-1.5),h2:g(o,60,1.2,-.5),h3:g(s,48,1.167,0),h4:g(s,34,1.235,.25),h5:g(s,24,1.334,0),h6:g(a,20,1.6,.15),subtitle1:g(s,16,1.75,.15),subtitle2:g(a,14,1.57,.1),body1:g(s,16,1.5,.15),body2:g(s,14,1.43,.15),button:g(a,14,1.75,.4,Xh),caption:g(s,12,1.66,.4),overline:g(s,12,2.66,1,Xh),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return Ht({htmlFontSize:c,pxToRem:m,fontFamily:n,fontSize:r,fontWeightLight:o,fontWeightRegular:s,fontWeightMedium:a,fontWeightBold:l,...y},f,{clone:!1})}const $C=.2,LC=.14,BC=.12;function kt(...e){return[`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,${$C})`,`${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,${LC})`,`${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,${BC})`].join(",")}const _C=["none",kt(0,2,1,-1,0,1,1,0,0,1,3,0),kt(0,3,1,-2,0,2,2,0,0,1,5,0),kt(0,3,3,-2,0,3,4,0,0,1,8,0),kt(0,2,4,-1,0,4,5,0,0,1,10,0),kt(0,3,5,-1,0,5,8,0,0,1,14,0),kt(0,3,5,-1,0,6,10,0,0,1,18,0),kt(0,4,5,-2,0,7,10,1,0,2,16,1),kt(0,5,5,-3,0,8,10,1,0,3,14,2),kt(0,5,6,-3,0,9,12,1,0,3,16,2),kt(0,6,6,-3,0,10,14,1,0,4,18,3),kt(0,6,7,-4,0,11,15,1,0,4,20,3),kt(0,7,8,-4,0,12,17,2,0,5,22,4),kt(0,7,8,-4,0,13,19,2,0,5,24,4),kt(0,7,9,-4,0,14,21,2,0,5,26,4),kt(0,8,9,-5,0,15,22,2,0,6,28,5),kt(0,8,10,-5,0,16,24,2,0,6,30,5),kt(0,8,11,-5,0,17,26,2,0,6,32,5),kt(0,9,11,-5,0,18,28,2,0,7,34,6),kt(0,9,12,-6,0,19,29,2,0,7,36,6),kt(0,10,13,-6,0,20,31,3,0,8,38,7),kt(0,10,13,-6,0,21,33,3,0,8,40,7),kt(0,10,14,-6,0,22,35,3,0,8,42,7),kt(0,11,14,-7,0,23,36,3,0,9,44,8),kt(0,11,15,-7,0,24,38,3,0,9,46,8)],FC={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)"},WC={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function Qh(e){return`${Math.round(e)}ms`}function zC(e){if(!e)return 0;const t=e/36;return Math.min(Math.round((4+15*t**.25+t/5)*10),3e3)}function VC(e){const t={...FC,...e.easing},n={...WC,...e.duration};return{getAutoHeightDuration:zC,create:(o=["all"],s={})=>{const{duration:a=n.standard,easing:l=t.easeInOut,delay:c=0,...d}=s;if(process.env.NODE_ENV!=="production"){const u=h=>typeof h=="string",f=h=>!Number.isNaN(parseFloat(h));!u(o)&&!Array.isArray(o)&&console.error('MUI: Argument "props" must be a string or Array.'),!f(a)&&!u(a)&&console.error(`MUI: Argument "duration" must be a number or a string but found ${a}.`),u(l)||console.error('MUI: Argument "easing" must be a string.'),!f(c)&&!u(c)&&console.error('MUI: Argument "delay" must be a number or a string.'),typeof s!="object"&&console.error(["MUI: Secong argument of transition.create must be an object.","Arguments should be either `create('prop1', options)` or `create(['prop1', 'prop2'], options)`"].join(`
|
|
63
|
-
`)),Object.keys(d).length!==0&&console.error(`MUI: Unrecognized argument(s) [${Object.keys(d).join(",")}].`)}return(Array.isArray(o)?o:[o]).map(u=>`${u} ${typeof a=="string"?a:Qh(a)} ${l} ${typeof c=="string"?c:Qh(c)}`).join(",")},...e,easing:t,duration:n}}const HC={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500};function UC(e){return or(e)||typeof e>"u"||typeof e=="string"||typeof e=="boolean"||typeof e=="number"||Array.isArray(e)}function em(e={}){const t={...e};function n(r){const o=Object.entries(r);for(let s=0;s<o.length;s++){const[a,l]=o[s];!UC(l)||a.startsWith("unstable_")?delete r[a]:or(l)&&(r[a]={...l},n(r[a]))}}return n(t),`import { unstable_createBreakpoints as createBreakpoints, createTransitions } from '@mui/material/styles';
|
|
64
|
-
|
|
65
|
-
const theme = ${JSON.stringify(t,null,2)};
|
|
66
|
-
|
|
67
|
-
theme.breakpoints = createBreakpoints(theme.breakpoints || {});
|
|
68
|
-
theme.transitions = createTransitions(theme.transitions || {});
|
|
69
|
-
|
|
70
|
-
export default theme;`}function tm(e){return typeof e=="number"?`${(e*100).toFixed(0)}%`:`calc((${e}) * 100%)`}const YC=e=>{if(!Number.isNaN(+e))return+e;const t=e.match(/\d*\.?\d+/g);if(!t)return 0;let n=0;for(let r=0;r<t.length;r+=1)n+=+t[r];return n};function qC(e){Object.assign(e,{alpha(t,n){const r=this||e;return r.colorSpace?`oklch(from ${t} l c h / ${typeof n=="string"?`calc(${n})`:n})`:r.vars?`rgba(${t.replace(/var\(--([^,\s)]+)(?:,[^)]+)?\)+/g,"var(--$1Channel)")} / ${typeof n=="string"?`calc(${n})`:n})`:_a(t,YC(n))},lighten(t,n){const r=this||e;return r.colorSpace?`color-mix(in ${r.colorSpace}, ${t}, #fff ${tm(n)})`:Wa(t,n)},darken(t,n){const r=this||e;return r.colorSpace?`color-mix(in ${r.colorSpace}, ${t}, #000 ${tm(n)})`:Fa(t,n)}})}function sd(e={},...t){const{breakpoints:n,mixins:r={},spacing:o,palette:s={},transitions:a={},typography:l={},shape:c,colorSpace:d,...u}=e;if(e.vars&&e.generateThemeVars===void 0)throw new Error(process.env.NODE_ENV!=="production"?"MUI: `vars` is a private field used for CSS variables support.\nPlease use another name or follow the [docs](https://mui.com/material-ui/customization/css-theme-variables/usage/) to enable the feature.":Qn(20));const f=od({...s,colorSpace:d}),h=qs(e);let m=Ht(h,{mixins:RC(h.breakpoints,r),palette:f,shadows:_C.slice(),typography:Jh(f,l),transitions:VC(a),zIndex:{...HC}});if(m=Ht(m,u),m=t.reduce((g,y)=>Ht(g,y),m),process.env.NODE_ENV!=="production"){const g=["active","checked","completed","disabled","error","expanded","focused","focusVisible","required","selected"],y=(b,v)=>{let k;for(k in b){const S=b[k];if(g.includes(k)&&Object.keys(S).length>0){if(process.env.NODE_ENV!=="production"){const C=Ae("",k);console.error([`MUI: The \`${v}\` component increases the CSS specificity of the \`${k}\` internal state.`,"You can not override it like this: ",JSON.stringify(b,null,2),"",`Instead, you need to use the '&.${C}' syntax:`,JSON.stringify({root:{[`&.${C}`]:S}},null,2),"","https://mui.com/r/state-classes-guide"].join(`
|
|
71
|
-
`))}b[k]={}}}};Object.keys(m.components).forEach(b=>{const v=m.components[b].styleOverrides;v&&b.startsWith("Mui")&&y(v,b)})}return m.unstable_sxConfig={...Ys,...u?.unstable_sxConfig},m.unstable_sx=function(y){return Wr({sx:y,theme:this})},m.toRuntimeSource=em,qC(m),m}function id(e){let t;return e<1?t=5.11916*e**2:t=4.5*Math.log(e+1)+2,Math.round(t*10)/1e3}const GC=[...Array(25)].map((e,t)=>{if(t===0)return"none";const n=id(t);return`linear-gradient(rgba(255 255 255 / ${n}), rgba(255 255 255 / ${n}))`});function nm(e){return{inputPlaceholder:e==="dark"?.5:.42,inputUnderline:e==="dark"?.7:.42,switchTrackDisabled:e==="dark"?.2:.12,switchTrack:e==="dark"?.3:.38}}function rm(e){return e==="dark"?GC:[]}function KC(e){const{palette:t={mode:"light"},opacity:n,overlays:r,colorSpace:o,...s}=e,a=od({...t,colorSpace:o});return{palette:a,opacity:{...nm(a.mode),...n},overlays:r||rm(a.mode),...s}}function XC(e){return!!e[0].match(/(cssVarPrefix|colorSchemeSelector|modularCssLayers|rootSelector|typography|mixins|breakpoints|direction|transitions)/)||!!e[0].match(/sxConfig$/)||e[0]==="palette"&&!!e[1]?.match(/(mode|contrastThreshold|tonalOffset)/)}const ZC=e=>[...[...Array(25)].map((t,n)=>`--${e?`${e}-`:""}overlays-${n}`),`--${e?`${e}-`:""}palette-AppBar-darkBg`,`--${e?`${e}-`:""}palette-AppBar-darkColor`],JC=e=>(t,n)=>{const r=e.rootSelector||":root",o=e.colorSchemeSelector;let s=o;if(o==="class"&&(s=".%s"),o==="data"&&(s="[data-%s]"),o?.startsWith("data-")&&!o.includes("%s")&&(s=`[${o}="%s"]`),e.defaultColorScheme===t){if(t==="dark"){const a={};return ZC(e.cssVarPrefix).forEach(l=>{a[l]=n[l],delete n[l]}),s==="media"?{[r]:n,"@media (prefers-color-scheme: dark)":{[r]:a}}:s?{[s.replace("%s",t)]:a,[`${r}, ${s.replace("%s",t)}`]:n}:{[r]:{...n,...a}}}if(s&&s!=="media")return`${r}, ${s.replace("%s",String(t))}`}else if(t){if(s==="media")return{[`@media (prefers-color-scheme: ${String(t)})`]:{[r]:n}};if(s)return s.replace("%s",String(t))}return r};function QC(e,t){t.forEach(n=>{e[n]||(e[n]={})})}function J(e,t,n){!e[t]&&n&&(e[t]=n)}function Js(e){return typeof e!="string"||!e.startsWith("hsl")?e:Ph(e)}function Er(e,t){`${t}Channel`in e||(e[`${t}Channel`]=Xs(Js(e[t]),`MUI: Can't create \`palette.${t}Channel\` because \`palette.${t}\` is not one of these formats: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla(), color().
|
|
72
|
-
To suppress this warning, you need to explicitly provide the \`palette.${t}Channel\` as a string (in rgb format, for example "12 12 12") or undefined if you want to remove the channel token.`))}function eT(e){return typeof e=="number"?`${e}px`:typeof e=="string"||typeof e=="function"||Array.isArray(e)?e:"8px"}const sr=e=>{try{return e()}catch{}},tT=(e="mui")=>ZS(e);function ad(e,t,n,r,o){if(!n)return;n=n===!0?{}:n;const s=o==="dark"?"dark":"light";if(!r){t[o]=KC({...n,palette:{mode:s,...n?.palette},colorSpace:e});return}const{palette:a,...l}=sd({...r,palette:{mode:s,...n?.palette},colorSpace:e});return t[o]={...n,palette:a,opacity:{...nm(s),...n?.opacity},overlays:n?.overlays||rm(s)},l}function nT(e={},...t){const{colorSchemes:n={light:!0},defaultColorScheme:r,disableCssColorScheme:o=!1,cssVarPrefix:s="mui",nativeColor:a=!1,shouldSkipGeneratingVar:l=XC,colorSchemeSelector:c=n.light&&n.dark?"media":void 0,rootSelector:d=":root",...u}=e,f=Object.keys(n)[0],h=r||(n.light&&f!=="light"?"light":f),m=tT(s),{[h]:g,light:y,dark:b,...v}=n,k={...v};let S=g;if((h==="dark"&&!("dark"in n)||h==="light"&&!("light"in n))&&(S=!0),!S)throw new Error(process.env.NODE_ENV!=="production"?`MUI: The \`colorSchemes.${h}\` option is either missing or invalid.`:Qn(21,h));let C;a&&(C="oklch");const w=ad(C,k,S,u,h);y&&!k.light&&ad(C,k,y,void 0,"light"),b&&!k.dark&&ad(C,k,b,void 0,"dark");let T={defaultColorScheme:h,...w,cssVarPrefix:s,colorSchemeSelector:c,rootSelector:d,getCssVar:m,colorSchemes:k,font:{...AC(w.typography),...w.font},spacing:eT(u.spacing)};Object.keys(T.colorSchemes).forEach(L=>{const O=T.colorSchemes[L].palette,N=R=>{const $=R.split("-"),_=$[1],U=$[2];return m(R,O[_][U])};O.mode==="light"&&(J(O.common,"background","#fff"),J(O.common,"onBackground","#000")),O.mode==="dark"&&(J(O.common,"background","#000"),J(O.common,"onBackground","#fff"));function P(R,$,_){if(C){let U;return R===so&&(U=`transparent ${((1-_)*100).toFixed(0)}%`),R===pt&&(U=`#000 ${(_*100).toFixed(0)}%`),R===ht&&(U=`#fff ${(_*100).toFixed(0)}%`),`color-mix(in ${C}, ${$}, ${U})`}return R($,_)}if(QC(O,["Alert","AppBar","Avatar","Button","Chip","FilledInput","LinearProgress","Skeleton","Slider","SnackbarContent","SpeedDialAction","StepConnector","StepContent","Switch","TableCell","Tooltip"]),O.mode==="light"){J(O.Alert,"errorColor",P(pt,O.error.light,.6)),J(O.Alert,"infoColor",P(pt,O.info.light,.6)),J(O.Alert,"successColor",P(pt,O.success.light,.6)),J(O.Alert,"warningColor",P(pt,O.warning.light,.6)),J(O.Alert,"errorFilledBg",N("palette-error-main")),J(O.Alert,"infoFilledBg",N("palette-info-main")),J(O.Alert,"successFilledBg",N("palette-success-main")),J(O.Alert,"warningFilledBg",N("palette-warning-main")),J(O.Alert,"errorFilledColor",sr(()=>O.getContrastText(O.error.main))),J(O.Alert,"infoFilledColor",sr(()=>O.getContrastText(O.info.main))),J(O.Alert,"successFilledColor",sr(()=>O.getContrastText(O.success.main))),J(O.Alert,"warningFilledColor",sr(()=>O.getContrastText(O.warning.main))),J(O.Alert,"errorStandardBg",P(ht,O.error.light,.9)),J(O.Alert,"infoStandardBg",P(ht,O.info.light,.9)),J(O.Alert,"successStandardBg",P(ht,O.success.light,.9)),J(O.Alert,"warningStandardBg",P(ht,O.warning.light,.9)),J(O.Alert,"errorIconColor",N("palette-error-main")),J(O.Alert,"infoIconColor",N("palette-info-main")),J(O.Alert,"successIconColor",N("palette-success-main")),J(O.Alert,"warningIconColor",N("palette-warning-main")),J(O.AppBar,"defaultBg",N("palette-grey-100")),J(O.Avatar,"defaultBg",N("palette-grey-400")),J(O.Button,"inheritContainedBg",N("palette-grey-300")),J(O.Button,"inheritContainedHoverBg",N("palette-grey-A100")),J(O.Chip,"defaultBorder",N("palette-grey-400")),J(O.Chip,"defaultAvatarColor",N("palette-grey-700")),J(O.Chip,"defaultIconColor",N("palette-grey-700")),J(O.FilledInput,"bg","rgba(0, 0, 0, 0.06)"),J(O.FilledInput,"hoverBg","rgba(0, 0, 0, 0.09)"),J(O.FilledInput,"disabledBg","rgba(0, 0, 0, 0.12)"),J(O.LinearProgress,"primaryBg",P(ht,O.primary.main,.62)),J(O.LinearProgress,"secondaryBg",P(ht,O.secondary.main,.62)),J(O.LinearProgress,"errorBg",P(ht,O.error.main,.62)),J(O.LinearProgress,"infoBg",P(ht,O.info.main,.62)),J(O.LinearProgress,"successBg",P(ht,O.success.main,.62)),J(O.LinearProgress,"warningBg",P(ht,O.warning.main,.62)),J(O.Skeleton,"bg",C?P(so,O.text.primary,.11):`rgba(${N("palette-text-primaryChannel")} / 0.11)`),J(O.Slider,"primaryTrack",P(ht,O.primary.main,.62)),J(O.Slider,"secondaryTrack",P(ht,O.secondary.main,.62)),J(O.Slider,"errorTrack",P(ht,O.error.main,.62)),J(O.Slider,"infoTrack",P(ht,O.info.main,.62)),J(O.Slider,"successTrack",P(ht,O.success.main,.62)),J(O.Slider,"warningTrack",P(ht,O.warning.main,.62));const R=C?P(pt,O.background.default,.6825):za(O.background.default,.8);J(O.SnackbarContent,"bg",R),J(O.SnackbarContent,"color",sr(()=>C?rd.text.primary:O.getContrastText(R))),J(O.SpeedDialAction,"fabHoverBg",za(O.background.paper,.15)),J(O.StepConnector,"border",N("palette-grey-400")),J(O.StepContent,"border",N("palette-grey-400")),J(O.Switch,"defaultColor",N("palette-common-white")),J(O.Switch,"defaultDisabledColor",N("palette-grey-100")),J(O.Switch,"primaryDisabledColor",P(ht,O.primary.main,.62)),J(O.Switch,"secondaryDisabledColor",P(ht,O.secondary.main,.62)),J(O.Switch,"errorDisabledColor",P(ht,O.error.main,.62)),J(O.Switch,"infoDisabledColor",P(ht,O.info.main,.62)),J(O.Switch,"successDisabledColor",P(ht,O.success.main,.62)),J(O.Switch,"warningDisabledColor",P(ht,O.warning.main,.62)),J(O.TableCell,"border",P(ht,P(so,O.divider,1),.88)),J(O.Tooltip,"bg",P(so,O.grey[700],.92))}if(O.mode==="dark"){J(O.Alert,"errorColor",P(ht,O.error.light,.6)),J(O.Alert,"infoColor",P(ht,O.info.light,.6)),J(O.Alert,"successColor",P(ht,O.success.light,.6)),J(O.Alert,"warningColor",P(ht,O.warning.light,.6)),J(O.Alert,"errorFilledBg",N("palette-error-dark")),J(O.Alert,"infoFilledBg",N("palette-info-dark")),J(O.Alert,"successFilledBg",N("palette-success-dark")),J(O.Alert,"warningFilledBg",N("palette-warning-dark")),J(O.Alert,"errorFilledColor",sr(()=>O.getContrastText(O.error.dark))),J(O.Alert,"infoFilledColor",sr(()=>O.getContrastText(O.info.dark))),J(O.Alert,"successFilledColor",sr(()=>O.getContrastText(O.success.dark))),J(O.Alert,"warningFilledColor",sr(()=>O.getContrastText(O.warning.dark))),J(O.Alert,"errorStandardBg",P(pt,O.error.light,.9)),J(O.Alert,"infoStandardBg",P(pt,O.info.light,.9)),J(O.Alert,"successStandardBg",P(pt,O.success.light,.9)),J(O.Alert,"warningStandardBg",P(pt,O.warning.light,.9)),J(O.Alert,"errorIconColor",N("palette-error-main")),J(O.Alert,"infoIconColor",N("palette-info-main")),J(O.Alert,"successIconColor",N("palette-success-main")),J(O.Alert,"warningIconColor",N("palette-warning-main")),J(O.AppBar,"defaultBg",N("palette-grey-900")),J(O.AppBar,"darkBg",N("palette-background-paper")),J(O.AppBar,"darkColor",N("palette-text-primary")),J(O.Avatar,"defaultBg",N("palette-grey-600")),J(O.Button,"inheritContainedBg",N("palette-grey-800")),J(O.Button,"inheritContainedHoverBg",N("palette-grey-700")),J(O.Chip,"defaultBorder",N("palette-grey-700")),J(O.Chip,"defaultAvatarColor",N("palette-grey-300")),J(O.Chip,"defaultIconColor",N("palette-grey-300")),J(O.FilledInput,"bg","rgba(255, 255, 255, 0.09)"),J(O.FilledInput,"hoverBg","rgba(255, 255, 255, 0.13)"),J(O.FilledInput,"disabledBg","rgba(255, 255, 255, 0.12)"),J(O.LinearProgress,"primaryBg",P(pt,O.primary.main,.5)),J(O.LinearProgress,"secondaryBg",P(pt,O.secondary.main,.5)),J(O.LinearProgress,"errorBg",P(pt,O.error.main,.5)),J(O.LinearProgress,"infoBg",P(pt,O.info.main,.5)),J(O.LinearProgress,"successBg",P(pt,O.success.main,.5)),J(O.LinearProgress,"warningBg",P(pt,O.warning.main,.5)),J(O.Skeleton,"bg",C?P(so,O.text.primary,.13):`rgba(${N("palette-text-primaryChannel")} / 0.13)`),J(O.Slider,"primaryTrack",P(pt,O.primary.main,.5)),J(O.Slider,"secondaryTrack",P(pt,O.secondary.main,.5)),J(O.Slider,"errorTrack",P(pt,O.error.main,.5)),J(O.Slider,"infoTrack",P(pt,O.info.main,.5)),J(O.Slider,"successTrack",P(pt,O.success.main,.5)),J(O.Slider,"warningTrack",P(pt,O.warning.main,.5));const R=C?P(ht,O.background.default,.985):za(O.background.default,.98);J(O.SnackbarContent,"bg",R),J(O.SnackbarContent,"color",sr(()=>C?Yh.text.primary:O.getContrastText(R))),J(O.SpeedDialAction,"fabHoverBg",za(O.background.paper,.15)),J(O.StepConnector,"border",N("palette-grey-600")),J(O.StepContent,"border",N("palette-grey-600")),J(O.Switch,"defaultColor",N("palette-grey-300")),J(O.Switch,"defaultDisabledColor",N("palette-grey-600")),J(O.Switch,"primaryDisabledColor",P(pt,O.primary.main,.55)),J(O.Switch,"secondaryDisabledColor",P(pt,O.secondary.main,.55)),J(O.Switch,"errorDisabledColor",P(pt,O.error.main,.55)),J(O.Switch,"infoDisabledColor",P(pt,O.info.main,.55)),J(O.Switch,"successDisabledColor",P(pt,O.success.main,.55)),J(O.Switch,"warningDisabledColor",P(pt,O.warning.main,.55)),J(O.TableCell,"border",P(pt,P(so,O.divider,1),.68)),J(O.Tooltip,"bg",P(so,O.grey[700],.92))}Er(O.background,"default"),Er(O.background,"paper"),Er(O.common,"background"),Er(O.common,"onBackground"),Er(O,"divider"),Object.keys(O).forEach(R=>{const $=O[R];R!=="tonalOffset"&&$&&typeof $=="object"&&($.main&&J(O[R],"mainChannel",Xs(Js($.main))),$.light&&J(O[R],"lightChannel",Xs(Js($.light))),$.dark&&J(O[R],"darkChannel",Xs(Js($.dark))),$.contrastText&&J(O[R],"contrastTextChannel",Xs(Js($.contrastText))),R==="text"&&(Er(O[R],"primary"),Er(O[R],"secondary")),R==="action"&&($.active&&Er(O[R],"active"),$.selected&&Er(O[R],"selected")))})}),T=t.reduce((L,O)=>Ht(L,O),T);const E={prefix:s,disableCssColorScheme:o,shouldSkipGeneratingVar:l,getSelector:JC(T),enableContrastVars:a},{vars:M,generateThemeVars:j,generateStyleSheets:A}=eC(T,E);return T.vars=M,Object.entries(T.colorSchemes[T.defaultColorScheme]).forEach(([L,O])=>{T[L]=O}),T.generateThemeVars=j,T.generateStyleSheets=A,T.generateSpacing=function(){return yh(u.spacing,ja(this))},T.getColorSchemeSelector=tC(c),T.spacing=T.generateSpacing(),T.shouldSkipGeneratingVar=l,T.unstable_sxConfig={...Ys,...u?.unstable_sxConfig},T.unstable_sx=function(O){return Wr({sx:O,theme:this})},T.toRuntimeSource=em,T}function om(e,t,n){e.colorSchemes&&n&&(e.colorSchemes[t]={...n!==!0&&n,palette:od({...n===!0?{}:n.palette,mode:t})})}function Qs(e={},...t){const{palette:n,cssVariables:r=!1,colorSchemes:o=n?void 0:{light:!0},defaultColorScheme:s=n?.mode,...a}=e,l=s||"light",c=o?.[l],d={...o,...n?{[l]:{...typeof c!="boolean"&&c,palette:n}}:void 0};if(r===!1){if(!("colorSchemes"in e))return sd(e,...t);let u=n;"palette"in e||d[l]&&(d[l]!==!0?u=d[l].palette:l==="dark"&&(u={mode:"dark"}));const f=sd({...e,palette:u},...t);return f.defaultColorScheme=l,f.colorSchemes=d,f.palette.mode==="light"&&(f.colorSchemes.light={...d.light!==!0&&d.light,palette:f.palette},om(f,"dark",d.dark)),f.palette.mode==="dark"&&(f.colorSchemes.dark={...d.dark!==!0&&d.dark,palette:f.palette},om(f,"light",d.light)),f}return!n&&!("light"in d)&&l==="light"&&(d.light=!0),nT({...a,colorSchemes:d,defaultColorScheme:l,...typeof r!="boolean"&&r},...t)}function rT(e){return String(e).match(/[\d.\-+]*\s*(.*)/)[1]||""}function oT(e){return parseFloat(e)}const ld=Qs();function mt(){const e=Gs(ld);return process.env.NODE_ENV!=="production"&&I.useDebugValue(e),e[er]||e}function sm(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const xn=e=>sm(e)&&e!=="classes",te=kh({themeId:er,defaultTheme:ld,rootShouldForwardProp:xn});function sT({theme:e,...t}){const n=er in e?e[er]:void 0;return p.jsx(Zs,{...t,themeId:n?er:void 0,theme:n||e})}const Ga={colorSchemeStorageKey:"mui-color-scheme",defaultLightColorScheme:"light",defaultDarkColorScheme:"dark",modeStorageKey:"mui-mode"};process.env.NODE_ENV!=="production"&&(i.string,i.string,i.string,i.string,i.string,i.oneOf(["dark","light","system"]),i.string,i.string);const{CssVarsProvider:iT}=XS({themeId:er,theme:()=>Qs({cssVariables:!0}),colorSchemeStorageKey:Ga.colorSchemeStorageKey,modeStorageKey:Ga.modeStorageKey,defaultColorScheme:{light:Ga.defaultLightColorScheme,dark:Ga.defaultDarkColorScheme},resolveTheme:e=>{const t={...e,typography:Jh(e.palette,e.typography)};return t.unstable_sx=function(r){return Wr({sx:r,theme:this})},t}}),aT=iT;function lT({theme:e,...t}){const n=I.useMemo(()=>{if(typeof e=="function")return e;const r=er in e?e[er]:e;return"colorSchemes"in r?null:"vars"in r?e:{...e,vars:null}},[e]);return n?p.jsx(sT,{theme:n,...t}):p.jsx(aT,{theme:e,...t})}function im(...e){return e.reduce((t,n)=>n==null?t:function(...o){t.apply(this,o),n.apply(this,o)},()=>{})}function am(e){return p.jsx(Yc,{...e,defaultTheme:ld,themeId:er})}process.env.NODE_ENV!=="production"&&(am.propTypes={styles:i.oneOfType([i.array,i.func,i.number,i.object,i.string,i.bool])});function cT(e){return function(n){return p.jsx(am,{styles:typeof e=="function"?r=>e({theme:r,...n}):e})}}function dT(){return $a}const _e=zS;process.env.NODE_ENV!=="production"&&(i.node,i.object.isRequired);function Fe(e){return _S(e)}function uT(e){return Ae("MuiSvgIcon",e)}Ne("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const fT=e=>{const{color:t,fontSize:n,classes:r}=e,o={root:["root",t!=="inherit"&&`color${Q(t)}`,`fontSize${Q(n)}`]};return $e(o,uT,r)},pT=te("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.color!=="inherit"&&t[`color${Q(n.color)}`],t[`fontSize${Q(n.fontSize)}`]]}})(_e(({theme:e})=>({userSelect:"none",width:"1em",height:"1em",display:"inline-block",flexShrink:0,transition:e.transitions?.create?.("fill",{duration:(e.vars??e).transitions?.duration?.shorter}),variants:[{props:t=>!t.hasSvgAsChild,style:{fill:"currentColor"}},{props:{fontSize:"inherit"},style:{fontSize:"inherit"}},{props:{fontSize:"small"},style:{fontSize:e.typography?.pxToRem?.(20)||"1.25rem"}},{props:{fontSize:"medium"},style:{fontSize:e.typography?.pxToRem?.(24)||"1.5rem"}},{props:{fontSize:"large"},style:{fontSize:e.typography?.pxToRem?.(35)||"2.1875rem"}},...Object.entries((e.vars??e).palette).filter(([,t])=>t&&t.main).map(([t])=>({props:{color:t},style:{color:(e.vars??e).palette?.[t]?.main}})),{props:{color:"action"},style:{color:(e.vars??e).palette?.action?.active}},{props:{color:"disabled"},style:{color:(e.vars??e).palette?.action?.disabled}},{props:{color:"inherit"},style:{color:void 0}}]}))),Ka=I.forwardRef(function(t,n){const r=Fe({props:t,name:"MuiSvgIcon"}),{children:o,className:s,color:a="inherit",component:l="svg",fontSize:c="medium",htmlColor:d,inheritViewBox:u=!1,titleAccess:f,viewBox:h="0 0 24 24",...m}=r,g=I.isValidElement(o)&&o.type==="svg",y={...r,color:a,component:l,fontSize:c,instanceFontSize:t.fontSize,inheritViewBox:u,viewBox:h,hasSvgAsChild:g},b={};u||(b.viewBox=h);const v=fT(y);return p.jsxs(pT,{as:l,className:me(v.root,s),focusable:"false",color:d,"aria-hidden":f?void 0:!0,role:f?"img":void 0,ref:n,...b,...m,...g&&o.props,ownerState:y,children:[g?o.props.children:o,f?p.jsx("title",{children:f}):null]})});process.env.NODE_ENV!=="production"&&(Ka.propTypes={children:i.node,classes:i.object,className:i.string,color:i.oneOfType([i.oneOf(["inherit","action","disabled","primary","secondary","error","info","success","warning"]),i.string]),component:i.elementType,fontSize:i.oneOfType([i.oneOf(["inherit","large","medium","small"]),i.string]),htmlColor:i.string,inheritViewBox:i.bool,shapeRendering:i.string,sx:i.oneOfType([i.arrayOf(i.oneOfType([i.func,i.object,i.bool])),i.func,i.object]),titleAccess:i.string,viewBox:i.string}),Ka.muiName="SvgIcon";function wn(e,t){function n(r,o){return p.jsx(Ka,{"data-testid":process.env.NODE_ENV!=="production"?`${t}Icon`:void 0,ref:o,...r,children:e})}return process.env.NODE_ENV!=="production"&&(n.displayName=`${t}Icon`),n.muiName=Ka.muiName,I.memo(I.forwardRef(n))}function ei(e,t=166){let n;function r(...o){const s=()=>{e.apply(this,o)};clearTimeout(n),n=setTimeout(s,t)}return r.clear=()=>{clearTimeout(n)},r}function fn(e){return e&&e.ownerDocument||document}function Hn(e){return fn(e).defaultView||window}function hT(e,t){if(process.env.NODE_ENV==="production")return()=>()=>null;const n=t?{...t.propTypes}:null;return o=>(s,a,l,c,d,...u)=>{const f=d||a,h=n?.[f];if(h){const m=h(s,a,l,c,d,...u);if(m)return m}return typeof s[a]<"u"&&!s[o]?new Error(`The prop \`${f}\` of \`${e}\` can only be used together with the \`${o}\` prop.`):null}}function lm(e,t){typeof e=="function"?e(t):e&&(e.current=t)}function cm(e,t,n,r,o){if(process.env.NODE_ENV==="production")return null;const s=o||t;return typeof e[t]<"u"?new Error(`The prop \`${s}\` is not supported. Please remove it.`):null}function ti(e){const{controlled:t,default:n,name:r,state:o="value"}=e,{current:s}=I.useRef(t!==void 0),[a,l]=I.useState(n),c=s?t:a;if(process.env.NODE_ENV!=="production"){I.useEffect(()=>{s!==(t!==void 0)&&console.error([`MUI: A component is changing the ${s?"":"un"}controlled ${o} state of ${r} to be ${s?"un":""}controlled.`,"Elements should not switch from uncontrolled to controlled (or vice versa).",`Decide between using a controlled or uncontrolled ${r} element for the lifetime of the component.`,"The nature of the state is determined during the first render. It's considered controlled if the value is not `undefined`.","More info: https://fb.me/react-controlled-components"].join(`
|
|
73
|
-
`))},[o,r,t]);const{current:u}=I.useRef(n);I.useEffect(()=>{!s&&JSON.stringify(n)!==JSON.stringify(u)&&console.error([`MUI: A component is changing the default ${o} state of an uncontrolled ${r} after being initialized. To suppress this warning opt to use a controlled ${r}.`].join(`
|
|
74
|
-
`))},[JSON.stringify(n)])}const d=I.useCallback(u=>{s||l(u)},[]);return[c,d]}function Mn(e){const t=I.useRef(e);return On(()=>{t.current=e}),I.useRef((...n)=>(0,t.current)(...n)).current}function Ut(...e){const t=I.useRef(void 0),n=I.useCallback(r=>{const o=e.map(s=>{if(s==null)return null;if(typeof s=="function"){const a=s,l=a(r);return typeof l=="function"?l:()=>{a(null)}}return s.current=r,()=>{s.current=null}});return()=>{o.forEach(s=>s?.())}},e);return I.useMemo(()=>e.every(r=>r==null)?null:r=>{t.current&&(t.current(),t.current=void 0),r!=null&&(t.current=n(r))},e)}function mT(e,t){const n=e.charCodeAt(2);return e[0]==="o"&&e[1]==="n"&&n>=65&&n<=90&&typeof t=="function"}function dm(e,t){if(!e)return t;function n(a,l){const c={};return Object.keys(l).forEach(d=>{mT(d,l[d])&&typeof a[d]=="function"&&(c[d]=(...u)=>{a[d](...u),l[d](...u)})}),c}if(typeof e=="function"||typeof t=="function")return a=>{const l=typeof t=="function"?t(a):t,c=typeof e=="function"?e({...a,...l}):e,d=me(a?.className,l?.className,c?.className),u=n(c,l);return{...l,...c,...u,...!!d&&{className:d},...l?.style&&c?.style&&{style:{...l.style,...c.style}},...l?.sx&&c?.sx&&{sx:[...Array.isArray(l.sx)?l.sx:[l.sx],...Array.isArray(c.sx)?c.sx:[c.sx]]}}};const r=t,o=n(e,r),s=me(r?.className,e?.className);return{...t,...e,...o,...!!s&&{className:s},...r?.style&&e?.style&&{style:{...r.style,...e.style}},...r?.sx&&e?.sx&&{sx:[...Array.isArray(r.sx)?r.sx:[r.sx],...Array.isArray(e.sx)?e.sx:[e.sx]]}}}function Vr(e,t){return process.env.NODE_ENV==="production"?()=>null:function(...r){return e(...r)||t(...r)}}function um(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}function cd(e,t){return cd=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,r){return n.__proto__=r,n},cd(e,t)}function fm(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,cd(e,t)}const pm={disabled:!1};var gT=process.env.NODE_ENV!=="production"?i.oneOfType([i.number,i.shape({enter:i.number,exit:i.number,appear:i.number}).isRequired]):null;process.env.NODE_ENV!=="production"&&i.oneOfType([i.string,i.shape({enter:i.string,exit:i.string,active:i.string}),i.shape({enter:i.string,enterDone:i.string,enterActive:i.string,exit:i.string,exitDone:i.string,exitActive:i.string})]);const Xa=x.createContext(null);var yT=function(t){return t.scrollTop},ni="unmounted",ao="exited",lo="entering",Vo="entered",dd="exiting",ir=(function(e){fm(t,e);function t(r,o){var s;s=e.call(this,r,o)||this;var a=o,l=a&&!a.isMounting?r.enter:r.appear,c;return s.appearStatus=null,r.in?l?(c=ao,s.appearStatus=lo):c=Vo:r.unmountOnExit||r.mountOnEnter?c=ni:c=ao,s.state={status:c},s.nextCallback=null,s}t.getDerivedStateFromProps=function(o,s){var a=o.in;return a&&s.status===ni?{status:ao}:null};var n=t.prototype;return n.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},n.componentDidUpdate=function(o){var s=null;if(o!==this.props){var a=this.state.status;this.props.in?a!==lo&&a!==Vo&&(s=lo):(a===lo||a===Vo)&&(s=dd)}this.updateStatus(!1,s)},n.componentWillUnmount=function(){this.cancelNextCallback()},n.getTimeouts=function(){var o=this.props.timeout,s,a,l;return s=a=l=o,o!=null&&typeof o!="number"&&(s=o.exit,a=o.enter,l=o.appear!==void 0?o.appear:a),{exit:s,enter:a,appear:l}},n.updateStatus=function(o,s){if(o===void 0&&(o=!1),s!==null)if(this.cancelNextCallback(),s===lo){if(this.props.unmountOnExit||this.props.mountOnEnter){var a=this.props.nodeRef?this.props.nodeRef.current:Is.findDOMNode(this);a&&yT(a)}this.performEnter(o)}else this.performExit();else this.props.unmountOnExit&&this.state.status===ao&&this.setState({status:ni})},n.performEnter=function(o){var s=this,a=this.props.enter,l=this.context?this.context.isMounting:o,c=this.props.nodeRef?[l]:[Is.findDOMNode(this),l],d=c[0],u=c[1],f=this.getTimeouts(),h=l?f.appear:f.enter;if(!o&&!a||pm.disabled){this.safeSetState({status:Vo},function(){s.props.onEntered(d)});return}this.props.onEnter(d,u),this.safeSetState({status:lo},function(){s.props.onEntering(d,u),s.onTransitionEnd(h,function(){s.safeSetState({status:Vo},function(){s.props.onEntered(d,u)})})})},n.performExit=function(){var o=this,s=this.props.exit,a=this.getTimeouts(),l=this.props.nodeRef?void 0:Is.findDOMNode(this);if(!s||pm.disabled){this.safeSetState({status:ao},function(){o.props.onExited(l)});return}this.props.onExit(l),this.safeSetState({status:dd},function(){o.props.onExiting(l),o.onTransitionEnd(a.exit,function(){o.safeSetState({status:ao},function(){o.props.onExited(l)})})})},n.cancelNextCallback=function(){this.nextCallback!==null&&(this.nextCallback.cancel(),this.nextCallback=null)},n.safeSetState=function(o,s){s=this.setNextCallback(s),this.setState(o,s)},n.setNextCallback=function(o){var s=this,a=!0;return this.nextCallback=function(l){a&&(a=!1,s.nextCallback=null,o(l))},this.nextCallback.cancel=function(){a=!1},this.nextCallback},n.onTransitionEnd=function(o,s){this.setNextCallback(s);var a=this.props.nodeRef?this.props.nodeRef.current:Is.findDOMNode(this),l=o==null&&!this.props.addEndListener;if(!a||l){setTimeout(this.nextCallback,0);return}if(this.props.addEndListener){var c=this.props.nodeRef?[this.nextCallback]:[a,this.nextCallback],d=c[0],u=c[1];this.props.addEndListener(d,u)}o!=null&&setTimeout(this.nextCallback,o)},n.render=function(){var o=this.state.status;if(o===ni)return null;var s=this.props,a=s.children;s.in,s.mountOnEnter,s.unmountOnExit,s.appear,s.enter,s.exit,s.timeout,s.addEndListener,s.onEnter,s.onEntering,s.onEntered,s.onExit,s.onExiting,s.onExited,s.nodeRef;var l=um(s,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return x.createElement(Xa.Provider,{value:null},typeof a=="function"?a(o,l):x.cloneElement(x.Children.only(a),l))},t})(x.Component);ir.contextType=Xa,ir.propTypes=process.env.NODE_ENV!=="production"?{nodeRef:i.shape({current:typeof Element>"u"?i.any:function(e,t,n,r,o,s){var a=e[t];return i.instanceOf(a&&"ownerDocument"in a?a.ownerDocument.defaultView.Element:Element)(e,t,n,r,o,s)}}),children:i.oneOfType([i.func.isRequired,i.element.isRequired]).isRequired,in:i.bool,mountOnEnter:i.bool,unmountOnExit:i.bool,appear:i.bool,enter:i.bool,exit:i.bool,timeout:function(t){var n=gT;t.addEndListener||(n=n.isRequired);for(var r=arguments.length,o=new Array(r>1?r-1:0),s=1;s<r;s++)o[s-1]=arguments[s];return n.apply(void 0,[t].concat(o))},addEndListener:i.func,onEnter:i.func,onEntering:i.func,onEntered:i.func,onExit:i.func,onExiting:i.func,onExited:i.func}:{};function Ho(){}ir.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:Ho,onEntering:Ho,onEntered:Ho,onExit:Ho,onExiting:Ho,onExited:Ho},ir.UNMOUNTED=ni,ir.EXITED=ao,ir.ENTERING=lo,ir.ENTERED=Vo,ir.EXITING=dd;function bT(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function ud(e,t){var n=function(s){return t&&x.isValidElement(s)?t(s):s},r=Object.create(null);return e&&x.Children.map(e,function(o){return o}).forEach(function(o){r[o.key]=n(o)}),r}function vT(e,t){e=e||{},t=t||{};function n(u){return u in t?t[u]:e[u]}var r=Object.create(null),o=[];for(var s in e)s in t?o.length&&(r[s]=o,o=[]):o.push(s);var a,l={};for(var c in t){if(r[c])for(a=0;a<r[c].length;a++){var d=r[c][a];l[r[c][a]]=n(d)}l[c]=n(c)}for(a=0;a<o.length;a++)l[o[a]]=n(o[a]);return l}function co(e,t,n){return n[t]!=null?n[t]:e.props[t]}function xT(e,t){return ud(e.children,function(n){return x.cloneElement(n,{onExited:t.bind(null,n),in:!0,appear:co(n,"appear",e),enter:co(n,"enter",e),exit:co(n,"exit",e)})})}function wT(e,t,n){var r=ud(e.children),o=vT(t,r);return Object.keys(o).forEach(function(s){var a=o[s];if(x.isValidElement(a)){var l=s in t,c=s in r,d=t[s],u=x.isValidElement(d)&&!d.props.in;c&&(!l||u)?o[s]=x.cloneElement(a,{onExited:n.bind(null,a),in:!0,exit:co(a,"exit",e),enter:co(a,"enter",e)}):!c&&l&&!u?o[s]=x.cloneElement(a,{in:!1}):c&&l&&x.isValidElement(d)&&(o[s]=x.cloneElement(a,{onExited:n.bind(null,a),in:d.props.in,exit:co(a,"exit",e),enter:co(a,"enter",e)}))}}),o}var ST=Object.values||function(e){return Object.keys(e).map(function(t){return e[t]})},CT={component:"div",childFactory:function(t){return t}},fd=(function(e){fm(t,e);function t(r,o){var s;s=e.call(this,r,o)||this;var a=s.handleExited.bind(bT(s));return s.state={contextValue:{isMounting:!0},handleExited:a,firstRender:!0},s}var n=t.prototype;return n.componentDidMount=function(){this.mounted=!0,this.setState({contextValue:{isMounting:!1}})},n.componentWillUnmount=function(){this.mounted=!1},t.getDerivedStateFromProps=function(o,s){var a=s.children,l=s.handleExited,c=s.firstRender;return{children:c?xT(o,l):wT(o,a,l),firstRender:!1}},n.handleExited=function(o,s){var a=ud(this.props.children);o.key in a||(o.props.onExited&&o.props.onExited(s),this.mounted&&this.setState(function(l){var c=fa({},l.children);return delete c[o.key],{children:c}}))},n.render=function(){var o=this.props,s=o.component,a=o.childFactory,l=um(o,["component","childFactory"]),c=this.state.contextValue,d=ST(this.state.children).map(a);return delete l.appear,delete l.enter,delete l.exit,s===null?x.createElement(Xa.Provider,{value:c},d):x.createElement(Xa.Provider,{value:c},x.createElement(s,l,d))},t})(x.Component);fd.propTypes=process.env.NODE_ENV!=="production"?{component:i.any,children:i.node,appear:i.bool,enter:i.bool,exit:i.bool,childFactory:i.func}:{},fd.defaultProps=CT;const hm={};function mm(e,t){const n=I.useRef(hm);return n.current===hm&&(n.current=e(t)),n}const TT=[];function kT(e){I.useEffect(e,TT)}class Za{static create(){return new Za}currentId=null;start(t,n){this.clear(),this.currentId=setTimeout(()=>{this.currentId=null,n()},t)}clear=()=>{this.currentId!==null&&(clearTimeout(this.currentId),this.currentId=null)};disposeEffect=()=>this.clear}function Uo(){const e=mm(Za.create).current;return kT(e.disposeEffect),e}function ET(e){const{prototype:t={}}=e;return!!t.isReactComponent}function OT(e,t,n,r,o){const s=e[t],a=o||t;if(s==null||typeof window>"u")return null;let l;return typeof s=="function"&&!ET(s)&&(l="Did you accidentally provide a plain function component instead?"),s===I.Fragment&&(l="Did you accidentally provide a React.Fragment instead?"),l!==void 0?new Error(`Invalid ${r} \`${a}\` supplied to \`${n}\`. Expected an element type that can hold a ref. ${l} For more information see https://mui.com/r/caveat-with-refs-guide`):null}const pd=Vr(i.elementType,OT),gm=e=>e.scrollTop;function Ja(e,t){const{timeout:n,easing:r,style:o={}}=e;return{duration:o.transitionDuration??(typeof n=="number"?n:n[t.mode]||0),easing:o.transitionTimingFunction??(typeof r=="object"?r[t.mode]:r),delay:o.transitionDelay}}function Qa(e){return typeof e=="string"}function ym(e,t,n){return e===void 0||Qa(e)?t:{...t,ownerState:{...t.ownerState,...n}}}function bm(e,t,n){return typeof e=="function"?e(t,n):e}function vm(e,t=[]){if(e===void 0)return{};const n={};return Object.keys(e).filter(r=>r.match(/^on[A-Z]/)&&typeof e[r]=="function"&&!t.includes(r)).forEach(r=>{n[r]=e[r]}),n}function xm(e){if(e===void 0)return{};const t={};return Object.keys(e).filter(n=>!(n.match(/^on[A-Z]/)&&typeof e[n]=="function")).forEach(n=>{t[n]=e[n]}),t}function wm(e){const{getSlotProps:t,additionalProps:n,externalSlotProps:r,externalForwardedProps:o,className:s}=e;if(!t){const m=me(n?.className,s,o?.className,r?.className),g={...n?.style,...o?.style,...r?.style},y={...n,...o,...r};return m.length>0&&(y.className=m),Object.keys(g).length>0&&(y.style=g),{props:y,internalRef:void 0}}const a=vm({...o,...r}),l=xm(r),c=xm(o),d=t(a),u=me(d?.className,n?.className,s,o?.className,r?.className),f={...d?.style,...n?.style,...o?.style,...r?.style},h={...d,...n,...c,...l};return u.length>0&&(h.className=u),Object.keys(f).length>0&&(h.style=f),{props:h,internalRef:d.ref}}function Ye(e,t){const{className:n,elementType:r,ownerState:o,externalForwardedProps:s,internalForwardedProps:a,shouldForwardComponentProp:l=!1,...c}=t,{component:d,slots:u={[e]:void 0},slotProps:f={[e]:void 0},...h}=s,m=u[e]||r,g=bm(f[e],o),{props:{component:y,...b},internalRef:v}=wm({className:n,...c,externalForwardedProps:e==="root"?h:void 0,externalSlotProps:g}),k=Ut(v,g?.ref,t.ref),S=e==="root"?y||d:y,C=ym(m,{...e==="root"&&!d&&!u[e]&&a,...e!=="root"&&!u[e]&&a,...b,...S&&!l&&{as:S},...S&&l&&{component:S},ref:k},o);return[m,C]}function MT(e){const t=typeof e;switch(t){case"number":return Number.isNaN(e)?"NaN":Number.isFinite(e)?e!==Math.floor(e)?"float":"number":"Infinity";case"object":return e===null?"null":e.constructor.name;default:return t}}function Sm(e,t,n,r){const o=e[t];if(o==null||!Number.isInteger(o)){const s=MT(o);return new RangeError(`Invalid ${r} \`${t}\` of type \`${s}\` supplied to \`${n}\`, expected \`integer\`.`)}return null}function Cm(e,t,n,r){return e[t]===void 0?null:Sm(e,t,n,r)}function hd(){return null}Cm.isRequired=Sm,hd.isRequired=hd;const ar=process.env.NODE_ENV==="production"?hd:Cm;function PT(e){return Ae("MuiPaper",e)}Ne("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 jT=e=>{const{square:t,elevation:n,variant:r,classes:o}=e,s={root:["root",r,!t&&"rounded",r==="elevation"&&`elevation${n}`]};return $e(s,PT,o)},IT=te("div",{name:"MuiPaper",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],!n.square&&t.rounded,n.variant==="elevation"&&t[`elevation${n.elevation}`]]}})(_e(({theme:e})=>({backgroundColor:(e.vars||e).palette.background.paper,color:(e.vars||e).palette.text.primary,transition:e.transitions.create("box-shadow"),variants:[{props:({ownerState:t})=>!t.square,style:{borderRadius:e.shape.borderRadius}},{props:{variant:"outlined"},style:{border:`1px solid ${(e.vars||e).palette.divider}`}},{props:{variant:"elevation"},style:{boxShadow:"var(--Paper-shadow)",backgroundImage:"var(--Paper-overlay)"}}]}))),ri=I.forwardRef(function(t,n){const r=Fe({props:t,name:"MuiPaper"}),o=mt(),{className:s,component:a="div",elevation:l=1,square:c=!1,variant:d="elevation",...u}=r,f={...r,component:a,elevation:l,square:c,variant:d},h=jT(f);return process.env.NODE_ENV!=="production"&&o.shadows[l]===void 0&&console.error([`MUI: The elevation provided <Paper elevation={${l}}> is not available in the theme.`,`Please make sure that \`theme.shadows[${l}]\` is defined.`].join(`
|
|
75
|
-
`)),p.jsx(IT,{as:a,ownerState:f,className:me(h.root,s),ref:n,...u,style:{...d==="elevation"&&{"--Paper-shadow":(o.vars||o).shadows[l],...o.vars&&{"--Paper-overlay":o.vars.overlays?.[l]},...!o.vars&&o.palette.mode==="dark"&&{"--Paper-overlay":`linear-gradient(${_a("#fff",id(l))}, ${_a("#fff",id(l))})`}},...u.style}})});process.env.NODE_ENV!=="production"&&(ri.propTypes={children:i.node,classes:i.object,className:i.string,component:i.elementType,elevation:Vr(ar,e=>{const{elevation:t,variant:n}=e;return t>0&&n==="outlined"?new Error(`MUI: Combining \`elevation={${t}}\` with \`variant="${n}"\` has no effect. Either use \`elevation={0}\` or use a different \`variant\`.`):null}),square:i.bool,style:i.object,sx:i.oneOfType([i.arrayOf(i.oneOfType([i.func,i.object,i.bool])),i.func,i.object]),variant:i.oneOfType([i.oneOf(["elevation","outlined"]),i.string])});const pn=i.oneOfType([i.func,i.object]);function el(e){try{return e.matches(":focus-visible")}catch{process.env.NODE_ENV!=="production"&&!window.navigator.userAgent.includes("jsdom")&&console.warn(["MUI: The `:focus-visible` pseudo class is not supported in this browser.","Some components rely on this feature to work properly."].join(`
|
|
76
|
-
`))}return!1}class tl{static create(){return new tl}static use(){const t=mm(tl.create).current,[n,r]=I.useState(!1);return t.shouldMount=n,t.setShouldMount=r,I.useEffect(t.mountEffect,[n]),t}constructor(){this.ref={current:null},this.mounted=null,this.didMount=!1,this.shouldMount=!1,this.setShouldMount=null}mount(){return this.mounted||(this.mounted=AT(),this.shouldMount=!0,this.setShouldMount(this.shouldMount)),this.mounted}mountEffect=()=>{this.shouldMount&&!this.didMount&&this.ref.current!==null&&(this.didMount=!0,this.mounted.resolve())};start(...t){this.mount().then(()=>this.ref.current?.start(...t))}stop(...t){this.mount().then(()=>this.ref.current?.stop(...t))}pulsate(...t){this.mount().then(()=>this.ref.current?.pulsate(...t))}}function DT(){return tl.use()}function AT(){let e,t;const n=new Promise((r,o)=>{e=r,t=o});return n.resolve=e,n.reject=t,n}function Tm(e){const{className:t,classes:n,pulsate:r=!1,rippleX:o,rippleY:s,rippleSize:a,in:l,onExited:c,timeout:d}=e,[u,f]=I.useState(!1),h=me(t,n.ripple,n.rippleVisible,r&&n.ripplePulsate),m={width:a,height:a,top:-(a/2)+s,left:-(a/2)+o},g=me(n.child,u&&n.childLeaving,r&&n.childPulsate);return!l&&!u&&f(!0),I.useEffect(()=>{if(!l&&c!=null){const y=setTimeout(c,d);return()=>{clearTimeout(y)}}},[c,l,d]),p.jsx("span",{className:h,style:m,children:p.jsx("span",{className:g})})}process.env.NODE_ENV!=="production"&&(Tm.propTypes={classes:i.object.isRequired,className:i.string,in:i.bool,onExited:i.func,pulsate:i.bool,rippleSize:i.number,rippleX:i.number,rippleY:i.number,timeout:i.number.isRequired});const Pn=Ne("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]),md=550,RT=80,NT=Br`
|
|
77
|
-
0% {
|
|
78
|
-
transform: scale(0);
|
|
79
|
-
opacity: 0.1;
|
|
80
|
-
}
|
|
81
|
-
|
|
82
|
-
100% {
|
|
83
|
-
transform: scale(1);
|
|
84
|
-
opacity: 0.3;
|
|
85
|
-
}
|
|
86
|
-
`,$T=Br`
|
|
87
|
-
0% {
|
|
88
|
-
opacity: 1;
|
|
89
|
-
}
|
|
90
|
-
|
|
91
|
-
100% {
|
|
92
|
-
opacity: 0;
|
|
93
|
-
}
|
|
94
|
-
`,LT=Br`
|
|
95
|
-
0% {
|
|
96
|
-
transform: scale(1);
|
|
97
|
-
}
|
|
98
|
-
|
|
99
|
-
50% {
|
|
100
|
-
transform: scale(0.92);
|
|
101
|
-
}
|
|
102
|
-
|
|
103
|
-
100% {
|
|
104
|
-
transform: scale(1);
|
|
105
|
-
}
|
|
106
|
-
`,BT=te("span",{name:"MuiTouchRipple",slot:"Root"})({overflow:"hidden",pointerEvents:"none",position:"absolute",zIndex:0,top:0,right:0,bottom:0,left:0,borderRadius:"inherit"}),_T=te(Tm,{name:"MuiTouchRipple",slot:"Ripple"})`
|
|
107
|
-
opacity: 0;
|
|
108
|
-
position: absolute;
|
|
109
|
-
|
|
110
|
-
&.${Pn.rippleVisible} {
|
|
111
|
-
opacity: 0.3;
|
|
112
|
-
transform: scale(1);
|
|
113
|
-
animation-name: ${NT};
|
|
114
|
-
animation-duration: ${md}ms;
|
|
115
|
-
animation-timing-function: ${({theme:e})=>e.transitions.easing.easeInOut};
|
|
116
|
-
}
|
|
117
|
-
|
|
118
|
-
&.${Pn.ripplePulsate} {
|
|
119
|
-
animation-duration: ${({theme:e})=>e.transitions.duration.shorter}ms;
|
|
120
|
-
}
|
|
121
|
-
|
|
122
|
-
& .${Pn.child} {
|
|
123
|
-
opacity: 1;
|
|
124
|
-
display: block;
|
|
125
|
-
width: 100%;
|
|
126
|
-
height: 100%;
|
|
127
|
-
border-radius: 50%;
|
|
128
|
-
background-color: currentColor;
|
|
129
|
-
}
|
|
130
|
-
|
|
131
|
-
& .${Pn.childLeaving} {
|
|
132
|
-
opacity: 0;
|
|
133
|
-
animation-name: ${$T};
|
|
134
|
-
animation-duration: ${md}ms;
|
|
135
|
-
animation-timing-function: ${({theme:e})=>e.transitions.easing.easeInOut};
|
|
136
|
-
}
|
|
137
|
-
|
|
138
|
-
& .${Pn.childPulsate} {
|
|
139
|
-
position: absolute;
|
|
140
|
-
/* @noflip */
|
|
141
|
-
left: 0px;
|
|
142
|
-
top: 0;
|
|
143
|
-
animation-name: ${LT};
|
|
144
|
-
animation-duration: 2500ms;
|
|
145
|
-
animation-timing-function: ${({theme:e})=>e.transitions.easing.easeInOut};
|
|
146
|
-
animation-iteration-count: infinite;
|
|
147
|
-
animation-delay: 200ms;
|
|
148
|
-
}
|
|
149
|
-
`,km=I.forwardRef(function(t,n){const r=Fe({props:t,name:"MuiTouchRipple"}),{center:o=!1,classes:s={},className:a,...l}=r,[c,d]=I.useState([]),u=I.useRef(0),f=I.useRef(null);I.useEffect(()=>{f.current&&(f.current(),f.current=null)},[c]);const h=I.useRef(!1),m=Uo(),g=I.useRef(null),y=I.useRef(null),b=I.useCallback(C=>{const{pulsate:w,rippleX:T,rippleY:E,rippleSize:M,cb:j}=C;d(A=>[...A,p.jsx(_T,{classes:{ripple:me(s.ripple,Pn.ripple),rippleVisible:me(s.rippleVisible,Pn.rippleVisible),ripplePulsate:me(s.ripplePulsate,Pn.ripplePulsate),child:me(s.child,Pn.child),childLeaving:me(s.childLeaving,Pn.childLeaving),childPulsate:me(s.childPulsate,Pn.childPulsate)},timeout:md,pulsate:w,rippleX:T,rippleY:E,rippleSize:M},u.current)]),u.current+=1,f.current=j},[s]),v=I.useCallback((C={},w={},T=()=>{})=>{const{pulsate:E=!1,center:M=o||w.pulsate,fakeElement:j=!1}=w;if(C?.type==="mousedown"&&h.current){h.current=!1;return}C?.type==="touchstart"&&(h.current=!0);const A=j?null:y.current,L=A?A.getBoundingClientRect():{width:0,height:0,left:0,top:0};let O,N,P;if(M||C===void 0||C.clientX===0&&C.clientY===0||!C.clientX&&!C.touches)O=Math.round(L.width/2),N=Math.round(L.height/2);else{const{clientX:R,clientY:$}=C.touches&&C.touches.length>0?C.touches[0]:C;O=Math.round(R-L.left),N=Math.round($-L.top)}if(M)P=Math.sqrt((2*L.width**2+L.height**2)/3),P%2===0&&(P+=1);else{const R=Math.max(Math.abs((A?A.clientWidth:0)-O),O)*2+2,$=Math.max(Math.abs((A?A.clientHeight:0)-N),N)*2+2;P=Math.sqrt(R**2+$**2)}C?.touches?g.current===null&&(g.current=()=>{b({pulsate:E,rippleX:O,rippleY:N,rippleSize:P,cb:T})},m.start(RT,()=>{g.current&&(g.current(),g.current=null)})):b({pulsate:E,rippleX:O,rippleY:N,rippleSize:P,cb:T})},[o,b,m]),k=I.useCallback(()=>{v({},{pulsate:!0})},[v]),S=I.useCallback((C,w)=>{if(m.clear(),C?.type==="touchend"&&g.current){g.current(),g.current=null,m.start(0,()=>{S(C,w)});return}g.current=null,d(T=>T.length>0?T.slice(1):T),f.current=w},[m]);return I.useImperativeHandle(n,()=>({pulsate:k,start:v,stop:S}),[k,v,S]),p.jsx(BT,{className:me(Pn.root,s.root,a),ref:y,...l,children:p.jsx(fd,{component:null,exit:!0,children:c})})});process.env.NODE_ENV!=="production"&&(km.propTypes={center:i.bool,classes:i.object,className:i.string});function FT(e){return Ae("MuiButtonBase",e)}const WT=Ne("MuiButtonBase",["root","disabled","focusVisible"]),zT=e=>{const{disabled:t,focusVisible:n,focusVisibleClassName:r,classes:o}=e,a=$e({root:["root",t&&"disabled",n&&"focusVisible"]},FT,o);return n&&r&&(a.root+=` ${r}`),a},VT=te("button",{name:"MuiButtonBase",slot:"Root"})({display:"inline-flex",alignItems:"center",justifyContent:"center",position:"relative",boxSizing:"border-box",WebkitTapHighlightColor:"transparent",backgroundColor:"transparent",outline:0,border:0,margin:0,borderRadius:0,padding:0,cursor:"pointer",userSelect:"none",verticalAlign:"middle",MozAppearance:"none",WebkitAppearance:"none",textDecoration:"none",color:"inherit","&::-moz-focus-inner":{borderStyle:"none"},[`&.${WT.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),lr=I.forwardRef(function(t,n){const r=Fe({props:t,name:"MuiButtonBase"}),{action:o,centerRipple:s=!1,children:a,className:l,component:c="button",disabled:d=!1,disableRipple:u=!1,disableTouchRipple:f=!1,focusRipple:h=!1,focusVisibleClassName:m,LinkComponent:g="a",onBlur:y,onClick:b,onContextMenu:v,onDragLeave:k,onFocus:S,onFocusVisible:C,onKeyDown:w,onKeyUp:T,onMouseDown:E,onMouseLeave:M,onMouseUp:j,onTouchEnd:A,onTouchMove:L,onTouchStart:O,tabIndex:N=0,TouchRippleProps:P,touchRippleRef:R,type:$,..._}=r,U=I.useRef(null),H=DT(),B=Ut(H.ref,R),[D,z]=I.useState(!1);d&&D&&z(!1),I.useImperativeHandle(o,()=>({focusVisible:()=>{z(!0),U.current.focus()}}),[]);const V=H.shouldMount&&!u&&!d;I.useEffect(()=>{D&&h&&!u&&H.pulsate()},[u,h,D,H]);const X=Or(H,"start",E,f),G=Or(H,"stop",v,f),Y=Or(H,"stop",k,f),K=Or(H,"stop",j,f),ae=Or(H,"stop",ge=>{D&&ge.preventDefault(),M&&M(ge)},f),le=Or(H,"start",O,f),W=Or(H,"stop",A,f),ee=Or(H,"stop",L,f),F=Or(H,"stop",ge=>{el(ge.target)||z(!1),y&&y(ge)},!1),fe=Mn(ge=>{U.current||(U.current=ge.currentTarget),el(ge.target)&&(z(!0),C&&C(ge)),S&&S(ge)}),se=()=>{const ge=U.current;return c&&c!=="button"&&!(ge.tagName==="A"&&ge.href)},Z=Mn(ge=>{h&&!ge.repeat&&D&&ge.key===" "&&H.stop(ge,()=>{H.start(ge)}),ge.target===ge.currentTarget&&se()&&ge.key===" "&&ge.preventDefault(),w&&w(ge),ge.target===ge.currentTarget&&se()&&ge.key==="Enter"&&!d&&(ge.preventDefault(),b&&b(ge))}),Ce=Mn(ge=>{h&&ge.key===" "&&D&&!ge.defaultPrevented&&H.stop(ge,()=>{H.pulsate(ge)}),T&&T(ge),b&&ge.target===ge.currentTarget&&se()&&ge.key===" "&&!ge.defaultPrevented&&b(ge)});let Te=c;Te==="button"&&(_.href||_.to)&&(Te=g);const ke={};if(Te==="button"){const ge=!!_.formAction;ke.type=$===void 0&&!ge?"button":$,ke.disabled=d}else!_.href&&!_.to&&(ke.role="button"),d&&(ke["aria-disabled"]=d);const we=Ut(n,U),Re={...r,centerRipple:s,component:c,disabled:d,disableRipple:u,disableTouchRipple:f,focusRipple:h,tabIndex:N,focusVisible:D},Oe=zT(Re);return p.jsxs(VT,{as:Te,className:me(Oe.root,l),ownerState:Re,onBlur:F,onClick:b,onContextMenu:G,onFocus:fe,onKeyDown:Z,onKeyUp:Ce,onMouseDown:X,onMouseLeave:ae,onMouseUp:K,onDragLeave:Y,onTouchEnd:W,onTouchMove:ee,onTouchStart:le,ref:we,tabIndex:d?-1:N,type:$,...ke,..._,children:[a,V?p.jsx(km,{ref:B,center:s,...P}):null]})});function Or(e,t,n,r=!1){return Mn(o=>(n&&n(o),r||e[t](o),!0))}process.env.NODE_ENV!=="production"&&(lr.propTypes={action:pn,centerRipple:i.bool,children:i.node,classes:i.object,className:i.string,component:pd,disabled:i.bool,disableRipple:i.bool,disableTouchRipple:i.bool,focusRipple:i.bool,focusVisibleClassName:i.string,formAction:i.oneOfType([i.func,i.string]),href:i.any,LinkComponent:i.elementType,onBlur:i.func,onClick:i.func,onContextMenu:i.func,onDragLeave:i.func,onFocus:i.func,onFocusVisible:i.func,onKeyDown:i.func,onKeyUp:i.func,onMouseDown:i.func,onMouseLeave:i.func,onMouseUp:i.func,onTouchEnd:i.func,onTouchMove:i.func,onTouchStart:i.func,sx:i.oneOfType([i.arrayOf(i.oneOfType([i.func,i.object,i.bool])),i.func,i.object]),tabIndex:i.number,TouchRippleProps:i.object,touchRippleRef:i.oneOfType([i.func,i.shape({current:i.shape({pulsate:i.func.isRequired,start:i.func.isRequired,stop:i.func.isRequired})})]),type:i.oneOfType([i.oneOf(["button","reset","submit"]),i.string])});function HT(e){return typeof e.main=="string"}function UT(e,t=[]){if(!HT(e))return!1;for(const n of t)if(!e.hasOwnProperty(n)||typeof e[n]!="string")return!1;return!0}function Ft(e=[]){return([,t])=>t&&UT(t,e)}function YT(e){return Ae("MuiCircularProgress",e)}Ne("MuiCircularProgress",["root","determinate","indeterminate","colorPrimary","colorSecondary","svg","track","circle","circleDeterminate","circleIndeterminate","circleDisableShrink"]);const Un=44,gd=Br`
|
|
150
|
-
0% {
|
|
151
|
-
transform: rotate(0deg);
|
|
152
|
-
}
|
|
153
|
-
|
|
154
|
-
100% {
|
|
155
|
-
transform: rotate(360deg);
|
|
156
|
-
}
|
|
157
|
-
`,yd=Br`
|
|
158
|
-
0% {
|
|
159
|
-
stroke-dasharray: 1px, 200px;
|
|
160
|
-
stroke-dashoffset: 0;
|
|
161
|
-
}
|
|
162
|
-
|
|
163
|
-
50% {
|
|
164
|
-
stroke-dasharray: 100px, 200px;
|
|
165
|
-
stroke-dashoffset: -15px;
|
|
166
|
-
}
|
|
167
|
-
|
|
168
|
-
100% {
|
|
169
|
-
stroke-dasharray: 1px, 200px;
|
|
170
|
-
stroke-dashoffset: -126px;
|
|
171
|
-
}
|
|
172
|
-
`,qT=typeof gd!="string"?Vs`
|
|
173
|
-
animation: ${gd} 1.4s linear infinite;
|
|
174
|
-
`:null,GT=typeof yd!="string"?Vs`
|
|
175
|
-
animation: ${yd} 1.4s ease-in-out infinite;
|
|
176
|
-
`:null,KT=e=>{const{classes:t,variant:n,color:r,disableShrink:o}=e,s={root:["root",n,`color${Q(r)}`],svg:["svg"],track:["track"],circle:["circle",`circle${Q(n)}`,o&&"circleDisableShrink"]};return $e(s,YT,t)},XT=te("span",{name:"MuiCircularProgress",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`color${Q(n.color)}`]]}})(_e(({theme:e})=>({display:"inline-block",variants:[{props:{variant:"determinate"},style:{transition:e.transitions.create("transform")}},{props:{variant:"indeterminate"},style:qT||{animation:`${gd} 1.4s linear infinite`}},...Object.entries(e.palette).filter(Ft()).map(([t])=>({props:{color:t},style:{color:(e.vars||e).palette[t].main}}))]}))),ZT=te("svg",{name:"MuiCircularProgress",slot:"Svg"})({display:"block"}),JT=te("circle",{name:"MuiCircularProgress",slot:"Circle",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.circle,t[`circle${Q(n.variant)}`],n.disableShrink&&t.circleDisableShrink]}})(_e(({theme:e})=>({stroke:"currentColor",variants:[{props:{variant:"determinate"},style:{transition:e.transitions.create("stroke-dashoffset")}},{props:{variant:"indeterminate"},style:{strokeDasharray:"80px, 200px",strokeDashoffset:0}},{props:({ownerState:t})=>t.variant==="indeterminate"&&!t.disableShrink,style:GT||{animation:`${yd} 1.4s ease-in-out infinite`}}]}))),QT=te("circle",{name:"MuiCircularProgress",slot:"Track"})(_e(({theme:e})=>({stroke:"currentColor",opacity:(e.vars||e).palette.action.activatedOpacity}))),Yo=I.forwardRef(function(t,n){const r=Fe({props:t,name:"MuiCircularProgress"}),{className:o,color:s="primary",disableShrink:a=!1,enableTrackSlot:l=!1,size:c=40,style:d,thickness:u=3.6,value:f=0,variant:h="indeterminate",...m}=r,g={...r,color:s,disableShrink:a,size:c,thickness:u,value:f,variant:h,enableTrackSlot:l},y=KT(g),b={},v={},k={};if(h==="determinate"){const S=2*Math.PI*((Un-u)/2);b.strokeDasharray=S.toFixed(3),k["aria-valuenow"]=Math.round(f),b.strokeDashoffset=`${((100-f)/100*S).toFixed(3)}px`,v.transform="rotate(-90deg)"}return p.jsx(XT,{className:me(y.root,o),style:{width:c,height:c,...v,...d},ownerState:g,ref:n,role:"progressbar",...k,...m,children:p.jsxs(ZT,{className:y.svg,ownerState:g,viewBox:`${Un/2} ${Un/2} ${Un} ${Un}`,children:[l?p.jsx(QT,{className:y.track,ownerState:g,cx:Un,cy:Un,r:(Un-u)/2,fill:"none",strokeWidth:u,"aria-hidden":"true"}):null,p.jsx(JT,{className:y.circle,style:b,ownerState:g,cx:Un,cy:Un,r:(Un-u)/2,fill:"none",strokeWidth:u})]})})});process.env.NODE_ENV!=="production"&&(Yo.propTypes={classes:i.object,className:i.string,color:i.oneOfType([i.oneOf(["inherit","primary","secondary","error","info","success","warning"]),i.string]),disableShrink:Vr(i.bool,e=>e.disableShrink&&e.variant&&e.variant!=="indeterminate"?new Error("MUI: You have provided the `disableShrink` prop with a variant other than `indeterminate`. This will have no effect."):null),enableTrackSlot:i.bool,size:i.oneOfType([i.number,i.string]),style:i.object,sx:i.oneOfType([i.arrayOf(i.oneOfType([i.func,i.object,i.bool])),i.func,i.object]),thickness:i.number,value:i.number,variant:i.oneOf(["determinate","indeterminate"])});function ek(e){return Ae("MuiIconButton",e)}const Em=Ne("MuiIconButton",["root","disabled","colorInherit","colorPrimary","colorSecondary","colorError","colorInfo","colorSuccess","colorWarning","edgeStart","edgeEnd","sizeSmall","sizeMedium","sizeLarge","loading","loadingIndicator","loadingWrapper"]),tk=e=>{const{classes:t,disabled:n,color:r,edge:o,size:s,loading:a}=e,l={root:["root",a&&"loading",n&&"disabled",r!=="default"&&`color${Q(r)}`,o&&`edge${Q(o)}`,`size${Q(s)}`],loadingIndicator:["loadingIndicator"],loadingWrapper:["loadingWrapper"]};return $e(l,ek,t)},nk=te(lr,{name:"MuiIconButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.loading&&t.loading,n.color!=="default"&&t[`color${Q(n.color)}`],n.edge&&t[`edge${Q(n.edge)}`],t[`size${Q(n.size)}`]]}})(_e(({theme:e})=>({textAlign:"center",flex:"0 0 auto",fontSize:e.typography.pxToRem(24),padding:8,borderRadius:"50%",color:(e.vars||e).palette.action.active,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shortest}),variants:[{props:t=>!t.disableRipple,style:{"--IconButton-hoverBg":e.alpha((e.vars||e).palette.action.active,(e.vars||e).palette.action.hoverOpacity),"&:hover":{backgroundColor:"var(--IconButton-hoverBg)","@media (hover: none)":{backgroundColor:"transparent"}}}},{props:{edge:"start"},style:{marginLeft:-12}},{props:{edge:"start",size:"small"},style:{marginLeft:-3}},{props:{edge:"end"},style:{marginRight:-12}},{props:{edge:"end",size:"small"},style:{marginRight:-3}}]})),_e(({theme:e})=>({variants:[{props:{color:"inherit"},style:{color:"inherit"}},...Object.entries(e.palette).filter(Ft()).map(([t])=>({props:{color:t},style:{color:(e.vars||e).palette[t].main}})),...Object.entries(e.palette).filter(Ft()).map(([t])=>({props:{color:t},style:{"--IconButton-hoverBg":e.alpha((e.vars||e).palette[t].main,(e.vars||e).palette.action.hoverOpacity)}})),{props:{size:"small"},style:{padding:5,fontSize:e.typography.pxToRem(18)}},{props:{size:"large"},style:{padding:12,fontSize:e.typography.pxToRem(28)}}],[`&.${Em.disabled}`]:{backgroundColor:"transparent",color:(e.vars||e).palette.action.disabled},[`&.${Em.loading}`]:{color:"transparent"}}))),rk=te("span",{name:"MuiIconButton",slot:"LoadingIndicator"})(({theme:e})=>({display:"none",position:"absolute",visibility:"visible",top:"50%",left:"50%",transform:"translate(-50%, -50%)",color:(e.vars||e).palette.action.disabled,variants:[{props:{loading:!0},style:{display:"flex"}}]})),nl=I.forwardRef(function(t,n){const r=Fe({props:t,name:"MuiIconButton"}),{edge:o=!1,children:s,className:a,color:l="default",disabled:c=!1,disableFocusRipple:d=!1,size:u="medium",id:f,loading:h=null,loadingIndicator:m,...g}=r,y=io(f),b=m??p.jsx(Yo,{"aria-labelledby":y,color:"inherit",size:16}),v={...r,edge:o,color:l,disabled:c,disableFocusRipple:d,loading:h,loadingIndicator:b,size:u},k=tk(v);return p.jsxs(nk,{id:h?y:f,className:me(k.root,a),centerRipple:!0,focusRipple:!d,disabled:c||h,ref:n,...g,ownerState:v,children:[typeof h=="boolean"&&p.jsx("span",{className:k.loadingWrapper,style:{display:"contents"},children:p.jsx(rk,{className:k.loadingIndicator,ownerState:v,children:h&&b})}),s]})});process.env.NODE_ENV!=="production"&&(nl.propTypes={children:Vr(i.node,e=>I.Children.toArray(e.children).some(n=>I.isValidElement(n)&&n.props.onClick)?new Error(["MUI: You are providing an onClick event listener to a child of a button element.","Prefer applying it to the IconButton directly.","This guarantees that the whole <button> will be responsive to click events."].join(`
|
|
177
|
-
`)):null),classes:i.object,className:i.string,color:i.oneOfType([i.oneOf(["inherit","default","primary","secondary","error","info","success","warning"]),i.string]),disabled:i.bool,disableFocusRipple:i.bool,disableRipple:i.bool,edge:i.oneOf(["end","start",!1]),id:i.string,loading:i.bool,loadingIndicator:i.node,size:i.oneOfType([i.oneOf(["small","medium","large"]),i.string]),sx:i.oneOfType([i.arrayOf(i.oneOfType([i.func,i.object,i.bool])),i.func,i.object])});function ok(e){return Ae("MuiTypography",e)}Ne("MuiTypography",["root","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","inherit","button","caption","overline","alignLeft","alignRight","alignCenter","alignJustify","noWrap","gutterBottom","paragraph"]);const sk={primary:!0,secondary:!0,error:!0,info:!0,success:!0,warning:!0,textPrimary:!0,textSecondary:!0,textDisabled:!0},ik=dT(),ak=e=>{const{align:t,gutterBottom:n,noWrap:r,paragraph:o,variant:s,classes:a}=e,l={root:["root",s,e.align!=="inherit"&&`align${Q(t)}`,n&&"gutterBottom",r&&"noWrap",o&&"paragraph"]};return $e(l,ok,a)},lk=te("span",{name:"MuiTypography",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.variant&&t[n.variant],n.align!=="inherit"&&t[`align${Q(n.align)}`],n.noWrap&&t.noWrap,n.gutterBottom&&t.gutterBottom,n.paragraph&&t.paragraph]}})(_e(({theme:e})=>({margin:0,variants:[{props:{variant:"inherit"},style:{font:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}},...Object.entries(e.typography).filter(([t,n])=>t!=="inherit"&&n&&typeof n=="object").map(([t,n])=>({props:{variant:t},style:n})),...Object.entries(e.palette).filter(Ft()).map(([t])=>({props:{color:t},style:{color:(e.vars||e).palette[t].main}})),...Object.entries(e.palette?.text||{}).filter(([,t])=>typeof t=="string").map(([t])=>({props:{color:`text${Q(t)}`},style:{color:(e.vars||e).palette.text[t]}})),{props:({ownerState:t})=>t.align!=="inherit",style:{textAlign:"var(--Typography-textAlign)"}},{props:({ownerState:t})=>t.noWrap,style:{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"}},{props:({ownerState:t})=>t.gutterBottom,style:{marginBottom:"0.35em"}},{props:({ownerState:t})=>t.paragraph,style:{marginBottom:16}}]}))),Om={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},ut=I.forwardRef(function(t,n){const{color:r,...o}=Fe({props:t,name:"MuiTypography"}),s=!sk[r],a=ik({...o,...s&&{color:r}}),{align:l="inherit",className:c,component:d,gutterBottom:u=!1,noWrap:f=!1,paragraph:h=!1,variant:m="body1",variantMapping:g=Om,...y}=a,b={...a,align:l,color:r,className:c,component:d,gutterBottom:u,noWrap:f,paragraph:h,variant:m,variantMapping:g},v=d||(h?"p":g[m]||Om[m])||"span",k=ak(b);return p.jsx(lk,{as:v,ref:n,className:me(k.root,c),...y,ownerState:b,style:{...l!=="inherit"&&{"--Typography-textAlign":l},...y.style}})});process.env.NODE_ENV!=="production"&&(ut.propTypes={align:i.oneOf(["center","inherit","justify","left","right"]),children:i.node,classes:i.object,className:i.string,color:i.oneOfType([i.oneOf(["primary","secondary","success","error","info","warning","textPrimary","textSecondary","textDisabled"]),i.string]),component:i.elementType,gutterBottom:i.bool,noWrap:i.bool,paragraph:i.bool,style:i.object,sx:i.oneOfType([i.arrayOf(i.oneOfType([i.func,i.object,i.bool])),i.func,i.object]),variant:i.oneOfType([i.oneOf(["body1","body2","button","caption","h1","h2","h3","h4","h5","h6","inherit","overline","subtitle1","subtitle2"]),i.string]),variantMapping:i.object});function Mm(e){const t=I.useRef({});return I.useEffect(()=>{t.current=e}),t.current}function Mr(e,t,n,r,o){if(process.env.NODE_ENV==="production")return null;const s=e[t],a=o||t;return s==null?null:s&&s.nodeType!==1?new Error(`Invalid ${r} \`${a}\` supplied to \`${n}\`. Expected an HTMLElement.`):null}var hn="top",jn="bottom",In="right",mn="left",bd="auto",oi=[hn,jn,In,mn],qo="start",si="end",ck="clippingParents",Pm="viewport",ii="popper",dk="reference",jm=oi.reduce(function(e,t){return e.concat([t+"-"+qo,t+"-"+si])},[]),Im=[].concat(oi,[bd]).reduce(function(e,t){return e.concat([t,t+"-"+qo,t+"-"+si])},[]),uk="beforeRead",fk="read",pk="afterRead",hk="beforeMain",mk="main",gk="afterMain",yk="beforeWrite",bk="write",vk="afterWrite",xk=[uk,fk,pk,hk,mk,gk,yk,bk,vk];function cr(e){return e?(e.nodeName||"").toLowerCase():null}function Sn(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function uo(e){var t=Sn(e).Element;return e instanceof t||e instanceof Element}function Dn(e){var t=Sn(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function vd(e){if(typeof ShadowRoot>"u")return!1;var t=Sn(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function wk(e){var t=e.state;Object.keys(t.elements).forEach(function(n){var r=t.styles[n]||{},o=t.attributes[n]||{},s=t.elements[n];!Dn(s)||!cr(s)||(Object.assign(s.style,r),Object.keys(o).forEach(function(a){var l=o[a];l===!1?s.removeAttribute(a):s.setAttribute(a,l===!0?"":l)}))})}function Sk(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow),function(){Object.keys(t.elements).forEach(function(r){var o=t.elements[r],s=t.attributes[r]||{},a=Object.keys(t.styles.hasOwnProperty(r)?t.styles[r]:n[r]),l=a.reduce(function(c,d){return c[d]="",c},{});!Dn(o)||!cr(o)||(Object.assign(o.style,l),Object.keys(s).forEach(function(c){o.removeAttribute(c)}))})}}const Ck={name:"applyStyles",enabled:!0,phase:"write",fn:wk,effect:Sk,requires:["computeStyles"]};function dr(e){return e.split("-")[0]}var fo=Math.max,rl=Math.min,Go=Math.round;function xd(){var e=navigator.userAgentData;return e!=null&&e.brands&&Array.isArray(e.brands)?e.brands.map(function(t){return t.brand+"/"+t.version}).join(" "):navigator.userAgent}function Dm(){return!/^((?!chrome|android).)*safari/i.test(xd())}function Ko(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!1);var r=e.getBoundingClientRect(),o=1,s=1;t&&Dn(e)&&(o=e.offsetWidth>0&&Go(r.width)/e.offsetWidth||1,s=e.offsetHeight>0&&Go(r.height)/e.offsetHeight||1);var a=uo(e)?Sn(e):window,l=a.visualViewport,c=!Dm()&&n,d=(r.left+(c&&l?l.offsetLeft:0))/o,u=(r.top+(c&&l?l.offsetTop:0))/s,f=r.width/o,h=r.height/s;return{width:f,height:h,top:u,right:d+f,bottom:u+h,left:d,x:d,y:u}}function wd(e){var t=Ko(e),n=e.offsetWidth,r=e.offsetHeight;return Math.abs(t.width-n)<=1&&(n=t.width),Math.abs(t.height-r)<=1&&(r=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:r}}function Am(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&vd(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function Pr(e){return Sn(e).getComputedStyle(e)}function Tk(e){return["table","td","th"].indexOf(cr(e))>=0}function Hr(e){return((uo(e)?e.ownerDocument:e.document)||window.document).documentElement}function ol(e){return cr(e)==="html"?e:e.assignedSlot||e.parentNode||(vd(e)?e.host:null)||Hr(e)}function Rm(e){return!Dn(e)||Pr(e).position==="fixed"?null:e.offsetParent}function kk(e){var t=/firefox/i.test(xd()),n=/Trident/i.test(xd());if(n&&Dn(e)){var r=Pr(e);if(r.position==="fixed")return null}var o=ol(e);for(vd(o)&&(o=o.host);Dn(o)&&["html","body"].indexOf(cr(o))<0;){var s=Pr(o);if(s.transform!=="none"||s.perspective!=="none"||s.contain==="paint"||["transform","perspective"].indexOf(s.willChange)!==-1||t&&s.willChange==="filter"||t&&s.filter&&s.filter!=="none")return o;o=o.parentNode}return null}function ai(e){for(var t=Sn(e),n=Rm(e);n&&Tk(n)&&Pr(n).position==="static";)n=Rm(n);return n&&(cr(n)==="html"||cr(n)==="body"&&Pr(n).position==="static")?t:n||kk(e)||t}function Sd(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function li(e,t,n){return fo(e,rl(t,n))}function Ek(e,t,n){var r=li(e,t,n);return r>n?n:r}function Nm(){return{top:0,right:0,bottom:0,left:0}}function $m(e){return Object.assign({},Nm(),e)}function Lm(e,t){return t.reduce(function(n,r){return n[r]=e,n},{})}var Ok=function(t,n){return t=typeof t=="function"?t(Object.assign({},n.rects,{placement:n.placement})):t,$m(typeof t!="number"?t:Lm(t,oi))};function Mk(e){var t,n=e.state,r=e.name,o=e.options,s=n.elements.arrow,a=n.modifiersData.popperOffsets,l=dr(n.placement),c=Sd(l),d=[mn,In].indexOf(l)>=0,u=d?"height":"width";if(!(!s||!a)){var f=Ok(o.padding,n),h=wd(s),m=c==="y"?hn:mn,g=c==="y"?jn:In,y=n.rects.reference[u]+n.rects.reference[c]-a[c]-n.rects.popper[u],b=a[c]-n.rects.reference[c],v=ai(s),k=v?c==="y"?v.clientHeight||0:v.clientWidth||0:0,S=y/2-b/2,C=f[m],w=k-h[u]-f[g],T=k/2-h[u]/2+S,E=li(C,T,w),M=c;n.modifiersData[r]=(t={},t[M]=E,t.centerOffset=E-T,t)}}function Pk(e){var t=e.state,n=e.options,r=n.element,o=r===void 0?"[data-popper-arrow]":r;o!=null&&(typeof o=="string"&&(o=t.elements.popper.querySelector(o),!o)||Am(t.elements.popper,o)&&(t.elements.arrow=o))}const jk={name:"arrow",enabled:!0,phase:"main",fn:Mk,effect:Pk,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function Xo(e){return e.split("-")[1]}var Ik={top:"auto",right:"auto",bottom:"auto",left:"auto"};function Dk(e,t){var n=e.x,r=e.y,o=t.devicePixelRatio||1;return{x:Go(n*o)/o||0,y:Go(r*o)/o||0}}function Bm(e){var t,n=e.popper,r=e.popperRect,o=e.placement,s=e.variation,a=e.offsets,l=e.position,c=e.gpuAcceleration,d=e.adaptive,u=e.roundOffsets,f=e.isFixed,h=a.x,m=h===void 0?0:h,g=a.y,y=g===void 0?0:g,b=typeof u=="function"?u({x:m,y}):{x:m,y};m=b.x,y=b.y;var v=a.hasOwnProperty("x"),k=a.hasOwnProperty("y"),S=mn,C=hn,w=window;if(d){var T=ai(n),E="clientHeight",M="clientWidth";if(T===Sn(n)&&(T=Hr(n),Pr(T).position!=="static"&&l==="absolute"&&(E="scrollHeight",M="scrollWidth")),T=T,o===hn||(o===mn||o===In)&&s===si){C=jn;var j=f&&T===w&&w.visualViewport?w.visualViewport.height:T[E];y-=j-r.height,y*=c?1:-1}if(o===mn||(o===hn||o===jn)&&s===si){S=In;var A=f&&T===w&&w.visualViewport?w.visualViewport.width:T[M];m-=A-r.width,m*=c?1:-1}}var L=Object.assign({position:l},d&&Ik),O=u===!0?Dk({x:m,y},Sn(n)):{x:m,y};if(m=O.x,y=O.y,c){var N;return Object.assign({},L,(N={},N[C]=k?"0":"",N[S]=v?"0":"",N.transform=(w.devicePixelRatio||1)<=1?"translate("+m+"px, "+y+"px)":"translate3d("+m+"px, "+y+"px, 0)",N))}return Object.assign({},L,(t={},t[C]=k?y+"px":"",t[S]=v?m+"px":"",t.transform="",t))}function Ak(e){var t=e.state,n=e.options,r=n.gpuAcceleration,o=r===void 0?!0:r,s=n.adaptive,a=s===void 0?!0:s,l=n.roundOffsets,c=l===void 0?!0:l,d={placement:dr(t.placement),variation:Xo(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:o,isFixed:t.options.strategy==="fixed"};t.modifiersData.popperOffsets!=null&&(t.styles.popper=Object.assign({},t.styles.popper,Bm(Object.assign({},d,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:a,roundOffsets:c})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,Bm(Object.assign({},d,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:c})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}const Rk={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:Ak,data:{}};var sl={passive:!0};function Nk(e){var t=e.state,n=e.instance,r=e.options,o=r.scroll,s=o===void 0?!0:o,a=r.resize,l=a===void 0?!0:a,c=Sn(t.elements.popper),d=[].concat(t.scrollParents.reference,t.scrollParents.popper);return s&&d.forEach(function(u){u.addEventListener("scroll",n.update,sl)}),l&&c.addEventListener("resize",n.update,sl),function(){s&&d.forEach(function(u){u.removeEventListener("scroll",n.update,sl)}),l&&c.removeEventListener("resize",n.update,sl)}}const $k={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:Nk,data:{}};var Lk={left:"right",right:"left",bottom:"top",top:"bottom"};function il(e){return e.replace(/left|right|bottom|top/g,function(t){return Lk[t]})}var Bk={start:"end",end:"start"};function _m(e){return e.replace(/start|end/g,function(t){return Bk[t]})}function Cd(e){var t=Sn(e),n=t.pageXOffset,r=t.pageYOffset;return{scrollLeft:n,scrollTop:r}}function Td(e){return Ko(Hr(e)).left+Cd(e).scrollLeft}function _k(e,t){var n=Sn(e),r=Hr(e),o=n.visualViewport,s=r.clientWidth,a=r.clientHeight,l=0,c=0;if(o){s=o.width,a=o.height;var d=Dm();(d||!d&&t==="fixed")&&(l=o.offsetLeft,c=o.offsetTop)}return{width:s,height:a,x:l+Td(e),y:c}}function Fk(e){var t,n=Hr(e),r=Cd(e),o=(t=e.ownerDocument)==null?void 0:t.body,s=fo(n.scrollWidth,n.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),a=fo(n.scrollHeight,n.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0),l=-r.scrollLeft+Td(e),c=-r.scrollTop;return Pr(o||n).direction==="rtl"&&(l+=fo(n.clientWidth,o?o.clientWidth:0)-s),{width:s,height:a,x:l,y:c}}function kd(e){var t=Pr(e),n=t.overflow,r=t.overflowX,o=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+o+r)}function Fm(e){return["html","body","#document"].indexOf(cr(e))>=0?e.ownerDocument.body:Dn(e)&&kd(e)?e:Fm(ol(e))}function ci(e,t){var n;t===void 0&&(t=[]);var r=Fm(e),o=r===((n=e.ownerDocument)==null?void 0:n.body),s=Sn(r),a=o?[s].concat(s.visualViewport||[],kd(r)?r:[]):r,l=t.concat(a);return o?l:l.concat(ci(ol(a)))}function Ed(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function Wk(e,t){var n=Ko(e,!1,t==="fixed");return n.top=n.top+e.clientTop,n.left=n.left+e.clientLeft,n.bottom=n.top+e.clientHeight,n.right=n.left+e.clientWidth,n.width=e.clientWidth,n.height=e.clientHeight,n.x=n.left,n.y=n.top,n}function Wm(e,t,n){return t===Pm?Ed(_k(e,n)):uo(t)?Wk(t,n):Ed(Fk(Hr(e)))}function zk(e){var t=ci(ol(e)),n=["absolute","fixed"].indexOf(Pr(e).position)>=0,r=n&&Dn(e)?ai(e):e;return uo(r)?t.filter(function(o){return uo(o)&&Am(o,r)&&cr(o)!=="body"}):[]}function Vk(e,t,n,r){var o=t==="clippingParents"?zk(e):[].concat(t),s=[].concat(o,[n]),a=s[0],l=s.reduce(function(c,d){var u=Wm(e,d,r);return c.top=fo(u.top,c.top),c.right=rl(u.right,c.right),c.bottom=rl(u.bottom,c.bottom),c.left=fo(u.left,c.left),c},Wm(e,a,r));return l.width=l.right-l.left,l.height=l.bottom-l.top,l.x=l.left,l.y=l.top,l}function zm(e){var t=e.reference,n=e.element,r=e.placement,o=r?dr(r):null,s=r?Xo(r):null,a=t.x+t.width/2-n.width/2,l=t.y+t.height/2-n.height/2,c;switch(o){case hn:c={x:a,y:t.y-n.height};break;case jn:c={x:a,y:t.y+t.height};break;case In:c={x:t.x+t.width,y:l};break;case mn:c={x:t.x-n.width,y:l};break;default:c={x:t.x,y:t.y}}var d=o?Sd(o):null;if(d!=null){var u=d==="y"?"height":"width";switch(s){case qo:c[d]=c[d]-(t[u]/2-n[u]/2);break;case si:c[d]=c[d]+(t[u]/2-n[u]/2);break}}return c}function di(e,t){t===void 0&&(t={});var n=t,r=n.placement,o=r===void 0?e.placement:r,s=n.strategy,a=s===void 0?e.strategy:s,l=n.boundary,c=l===void 0?ck:l,d=n.rootBoundary,u=d===void 0?Pm:d,f=n.elementContext,h=f===void 0?ii:f,m=n.altBoundary,g=m===void 0?!1:m,y=n.padding,b=y===void 0?0:y,v=$m(typeof b!="number"?b:Lm(b,oi)),k=h===ii?dk:ii,S=e.rects.popper,C=e.elements[g?k:h],w=Vk(uo(C)?C:C.contextElement||Hr(e.elements.popper),c,u,a),T=Ko(e.elements.reference),E=zm({reference:T,element:S,placement:o}),M=Ed(Object.assign({},S,E)),j=h===ii?M:T,A={top:w.top-j.top+v.top,bottom:j.bottom-w.bottom+v.bottom,left:w.left-j.left+v.left,right:j.right-w.right+v.right},L=e.modifiersData.offset;if(h===ii&&L){var O=L[o];Object.keys(A).forEach(function(N){var P=[In,jn].indexOf(N)>=0?1:-1,R=[hn,jn].indexOf(N)>=0?"y":"x";A[N]+=O[R]*P})}return A}function Hk(e,t){t===void 0&&(t={});var n=t,r=n.placement,o=n.boundary,s=n.rootBoundary,a=n.padding,l=n.flipVariations,c=n.allowedAutoPlacements,d=c===void 0?Im:c,u=Xo(r),f=u?l?jm:jm.filter(function(g){return Xo(g)===u}):oi,h=f.filter(function(g){return d.indexOf(g)>=0});h.length===0&&(h=f);var m=h.reduce(function(g,y){return g[y]=di(e,{placement:y,boundary:o,rootBoundary:s,padding:a})[dr(y)],g},{});return Object.keys(m).sort(function(g,y){return m[g]-m[y]})}function Uk(e){if(dr(e)===bd)return[];var t=il(e);return[_m(e),t,_m(t)]}function Yk(e){var t=e.state,n=e.options,r=e.name;if(!t.modifiersData[r]._skip){for(var o=n.mainAxis,s=o===void 0?!0:o,a=n.altAxis,l=a===void 0?!0:a,c=n.fallbackPlacements,d=n.padding,u=n.boundary,f=n.rootBoundary,h=n.altBoundary,m=n.flipVariations,g=m===void 0?!0:m,y=n.allowedAutoPlacements,b=t.options.placement,v=dr(b),k=v===b,S=c||(k||!g?[il(b)]:Uk(b)),C=[b].concat(S).reduce(function(X,G){return X.concat(dr(G)===bd?Hk(t,{placement:G,boundary:u,rootBoundary:f,padding:d,flipVariations:g,allowedAutoPlacements:y}):G)},[]),w=t.rects.reference,T=t.rects.popper,E=new Map,M=!0,j=C[0],A=0;A<C.length;A++){var L=C[A],O=dr(L),N=Xo(L)===qo,P=[hn,jn].indexOf(O)>=0,R=P?"width":"height",$=di(t,{placement:L,boundary:u,rootBoundary:f,altBoundary:h,padding:d}),_=P?N?In:mn:N?jn:hn;w[R]>T[R]&&(_=il(_));var U=il(_),H=[];if(s&&H.push($[O]<=0),l&&H.push($[_]<=0,$[U]<=0),H.every(function(X){return X})){j=L,M=!1;break}E.set(L,H)}if(M)for(var B=g?3:1,D=function(G){var Y=C.find(function(K){var ae=E.get(K);if(ae)return ae.slice(0,G).every(function(le){return le})});if(Y)return j=Y,"break"},z=B;z>0;z--){var V=D(z);if(V==="break")break}t.placement!==j&&(t.modifiersData[r]._skip=!0,t.placement=j,t.reset=!0)}}const qk={name:"flip",enabled:!0,phase:"main",fn:Yk,requiresIfExists:["offset"],data:{_skip:!1}};function Vm(e,t,n){return n===void 0&&(n={x:0,y:0}),{top:e.top-t.height-n.y,right:e.right-t.width+n.x,bottom:e.bottom-t.height+n.y,left:e.left-t.width-n.x}}function Hm(e){return[hn,In,jn,mn].some(function(t){return e[t]>=0})}function Gk(e){var t=e.state,n=e.name,r=t.rects.reference,o=t.rects.popper,s=t.modifiersData.preventOverflow,a=di(t,{elementContext:"reference"}),l=di(t,{altBoundary:!0}),c=Vm(a,r),d=Vm(l,o,s),u=Hm(c),f=Hm(d);t.modifiersData[n]={referenceClippingOffsets:c,popperEscapeOffsets:d,isReferenceHidden:u,hasPopperEscaped:f},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":u,"data-popper-escaped":f})}const Kk={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:Gk};function Xk(e,t,n){var r=dr(e),o=[mn,hn].indexOf(r)>=0?-1:1,s=typeof n=="function"?n(Object.assign({},t,{placement:e})):n,a=s[0],l=s[1];return a=a||0,l=(l||0)*o,[mn,In].indexOf(r)>=0?{x:l,y:a}:{x:a,y:l}}function Zk(e){var t=e.state,n=e.options,r=e.name,o=n.offset,s=o===void 0?[0,0]:o,a=Im.reduce(function(u,f){return u[f]=Xk(f,t.rects,s),u},{}),l=a[t.placement],c=l.x,d=l.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=c,t.modifiersData.popperOffsets.y+=d),t.modifiersData[r]=a}const Jk={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:Zk};function Qk(e){var t=e.state,n=e.name;t.modifiersData[n]=zm({reference:t.rects.reference,element:t.rects.popper,placement:t.placement})}const eE={name:"popperOffsets",enabled:!0,phase:"read",fn:Qk,data:{}};function tE(e){return e==="x"?"y":"x"}function nE(e){var t=e.state,n=e.options,r=e.name,o=n.mainAxis,s=o===void 0?!0:o,a=n.altAxis,l=a===void 0?!1:a,c=n.boundary,d=n.rootBoundary,u=n.altBoundary,f=n.padding,h=n.tether,m=h===void 0?!0:h,g=n.tetherOffset,y=g===void 0?0:g,b=di(t,{boundary:c,rootBoundary:d,padding:f,altBoundary:u}),v=dr(t.placement),k=Xo(t.placement),S=!k,C=Sd(v),w=tE(C),T=t.modifiersData.popperOffsets,E=t.rects.reference,M=t.rects.popper,j=typeof y=="function"?y(Object.assign({},t.rects,{placement:t.placement})):y,A=typeof j=="number"?{mainAxis:j,altAxis:j}:Object.assign({mainAxis:0,altAxis:0},j),L=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,O={x:0,y:0};if(T){if(s){var N,P=C==="y"?hn:mn,R=C==="y"?jn:In,$=C==="y"?"height":"width",_=T[C],U=_+b[P],H=_-b[R],B=m?-M[$]/2:0,D=k===qo?E[$]:M[$],z=k===qo?-M[$]:-E[$],V=t.elements.arrow,X=m&&V?wd(V):{width:0,height:0},G=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:Nm(),Y=G[P],K=G[R],ae=li(0,E[$],X[$]),le=S?E[$]/2-B-ae-Y-A.mainAxis:D-ae-Y-A.mainAxis,W=S?-E[$]/2+B+ae+K+A.mainAxis:z+ae+K+A.mainAxis,ee=t.elements.arrow&&ai(t.elements.arrow),F=ee?C==="y"?ee.clientTop||0:ee.clientLeft||0:0,fe=(N=L?.[C])!=null?N:0,se=_+le-fe-F,Z=_+W-fe,Ce=li(m?rl(U,se):U,_,m?fo(H,Z):H);T[C]=Ce,O[C]=Ce-_}if(l){var Te,ke=C==="x"?hn:mn,we=C==="x"?jn:In,Re=T[w],Oe=w==="y"?"height":"width",ge=Re+b[ke],ne=Re-b[we],ie=[hn,mn].indexOf(v)!==-1,Ee=(Te=L?.[w])!=null?Te:0,pe=ie?ge:Re-E[Oe]-M[Oe]-Ee+A.altAxis,he=ie?Re+E[Oe]+M[Oe]-Ee-A.altAxis:ne,Me=m&&ie?Ek(pe,Re,he):li(m?pe:ge,Re,m?he:ne);T[w]=Me,O[w]=Me-Re}t.modifiersData[r]=O}}const rE={name:"preventOverflow",enabled:!0,phase:"main",fn:nE,requiresIfExists:["offset"]};function oE(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function sE(e){return e===Sn(e)||!Dn(e)?Cd(e):oE(e)}function iE(e){var t=e.getBoundingClientRect(),n=Go(t.width)/e.offsetWidth||1,r=Go(t.height)/e.offsetHeight||1;return n!==1||r!==1}function aE(e,t,n){n===void 0&&(n=!1);var r=Dn(t),o=Dn(t)&&iE(t),s=Hr(t),a=Ko(e,o,n),l={scrollLeft:0,scrollTop:0},c={x:0,y:0};return(r||!r&&!n)&&((cr(t)!=="body"||kd(s))&&(l=sE(t)),Dn(t)?(c=Ko(t,!0),c.x+=t.clientLeft,c.y+=t.clientTop):s&&(c.x=Td(s))),{x:a.left+l.scrollLeft-c.x,y:a.top+l.scrollTop-c.y,width:a.width,height:a.height}}function lE(e){var t=new Map,n=new Set,r=[];e.forEach(function(s){t.set(s.name,s)});function o(s){n.add(s.name);var a=[].concat(s.requires||[],s.requiresIfExists||[]);a.forEach(function(l){if(!n.has(l)){var c=t.get(l);c&&o(c)}}),r.push(s)}return e.forEach(function(s){n.has(s.name)||o(s)}),r}function cE(e){var t=lE(e);return xk.reduce(function(n,r){return n.concat(t.filter(function(o){return o.phase===r}))},[])}function dE(e){var t;return function(){return t||(t=new Promise(function(n){Promise.resolve().then(function(){t=void 0,n(e())})})),t}}function uE(e){var t=e.reduce(function(n,r){var o=n[r.name];return n[r.name]=o?Object.assign({},o,r,{options:Object.assign({},o.options,r.options),data:Object.assign({},o.data,r.data)}):r,n},{});return Object.keys(t).map(function(n){return t[n]})}var Um={placement:"bottom",modifiers:[],strategy:"absolute"};function Ym(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return!t.some(function(r){return!(r&&typeof r.getBoundingClientRect=="function")})}function fE(e){e===void 0&&(e={});var t=e,n=t.defaultModifiers,r=n===void 0?[]:n,o=t.defaultOptions,s=o===void 0?Um:o;return function(l,c,d){d===void 0&&(d=s);var u={placement:"bottom",orderedModifiers:[],options:Object.assign({},Um,s),modifiersData:{},elements:{reference:l,popper:c},attributes:{},styles:{}},f=[],h=!1,m={state:u,setOptions:function(v){var k=typeof v=="function"?v(u.options):v;y(),u.options=Object.assign({},s,u.options,k),u.scrollParents={reference:uo(l)?ci(l):l.contextElement?ci(l.contextElement):[],popper:ci(c)};var S=cE(uE([].concat(r,u.options.modifiers)));return u.orderedModifiers=S.filter(function(C){return C.enabled}),g(),m.update()},forceUpdate:function(){if(!h){var v=u.elements,k=v.reference,S=v.popper;if(Ym(k,S)){u.rects={reference:aE(k,ai(S),u.options.strategy==="fixed"),popper:wd(S)},u.reset=!1,u.placement=u.options.placement,u.orderedModifiers.forEach(function(A){return u.modifiersData[A.name]=Object.assign({},A.data)});for(var C=0;C<u.orderedModifiers.length;C++){if(u.reset===!0){u.reset=!1,C=-1;continue}var w=u.orderedModifiers[C],T=w.fn,E=w.options,M=E===void 0?{}:E,j=w.name;typeof T=="function"&&(u=T({state:u,options:M,name:j,instance:m})||u)}}}},update:dE(function(){return new Promise(function(b){m.forceUpdate(),b(u)})}),destroy:function(){y(),h=!0}};if(!Ym(l,c))return m;m.setOptions(d).then(function(b){!h&&d.onFirstUpdate&&d.onFirstUpdate(b)});function g(){u.orderedModifiers.forEach(function(b){var v=b.name,k=b.options,S=k===void 0?{}:k,C=b.effect;if(typeof C=="function"){var w=C({state:u,name:v,instance:m,options:S}),T=function(){};f.push(w||T)}})}function y(){f.forEach(function(b){return b()}),f=[]}return m}}var pE=[$k,eE,Rk,Ck,Jk,qk,rE,jk,Kk],hE=fE({defaultModifiers:pE});function po(e){const{elementType:t,externalSlotProps:n,ownerState:r,skipResolvingSlotProps:o=!1,...s}=e,a=o?{}:bm(n,r),{props:l,internalRef:c}=wm({...s,externalSlotProps:a}),d=Ut(c,a?.ref,e.additionalProps?.ref);return ym(t,{...l,ref:d},r)}function Zo(e){return parseInt(I.version,10)>=19?e?.props?.ref||null:e?.ref||null}function mE(e){return typeof e=="function"?e():e}const ui=I.forwardRef(function(t,n){const{children:r,container:o,disablePortal:s=!1}=t,[a,l]=I.useState(null),c=Ut(I.isValidElement(r)?Zo(r):null,n);if(On(()=>{s||l(mE(o)||document.body)},[o,s]),On(()=>{if(a&&!s)return lm(n,a),()=>{lm(n,null)}},[n,a,s]),s){if(I.isValidElement(r)){const d={ref:c};return I.cloneElement(r,d)}return r}return a&&sx.createPortal(r,a)});process.env.NODE_ENV!=="production"&&(ui.propTypes={children:i.node,container:i.oneOfType([Mr,i.func]),disablePortal:i.bool}),process.env.NODE_ENV!=="production"&&(ui.propTypes=Va(ui.propTypes));function gE(e){return Ae("MuiPopper",e)}Ne("MuiPopper",["root"]);function yE(e,t){if(t==="ltr")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}}function al(e){return typeof e=="function"?e():e}function ll(e){return e.nodeType!==void 0}function bE(e){return!ll(e)}const vE=e=>{const{classes:t}=e;return $e({root:["root"]},gE,t)},xE={},wE=I.forwardRef(function(t,n){const{anchorEl:r,children:o,direction:s,disablePortal:a,modifiers:l,open:c,placement:d,popperOptions:u,popperRef:f,slotProps:h={},slots:m={},TransitionProps:g,ownerState:y,...b}=t,v=I.useRef(null),k=Ut(v,n),S=I.useRef(null),C=Ut(S,f),w=I.useRef(C);On(()=>{w.current=C},[C]),I.useImperativeHandle(f,()=>S.current,[]);const T=yE(d,s),[E,M]=I.useState(T),[j,A]=I.useState(al(r));I.useEffect(()=>{S.current&&S.current.forceUpdate()}),I.useEffect(()=>{r&&A(al(r))},[r]),On(()=>{if(!j||!c)return;const R=U=>{M(U.placement)};if(process.env.NODE_ENV!=="production"&&j&&ll(j)&&j.nodeType===1){const U=j.getBoundingClientRect();process.env.NODE_ENV!=="test"&&U.top===0&&U.left===0&&U.right===0&&U.bottom===0&&console.warn(["MUI: The `anchorEl` prop provided to the component is invalid.","The anchor element should be part of the document layout.","Make sure the element is present in the document or that it's not display none."].join(`
|
|
178
|
-
`))}let $=[{name:"preventOverflow",options:{altBoundary:a}},{name:"flip",options:{altBoundary:a}},{name:"onUpdate",enabled:!0,phase:"afterWrite",fn:({state:U})=>{R(U)}}];l!=null&&($=$.concat(l)),u&&u.modifiers!=null&&($=$.concat(u.modifiers));const _=hE(j,v.current,{placement:T,...u,modifiers:$});return w.current(_),()=>{_.destroy(),w.current(null)}},[j,a,l,c,u,T]);const L={placement:E};g!==null&&(L.TransitionProps=g);const O=vE(t),N=m.root??"div",P=po({elementType:N,externalSlotProps:h.root,externalForwardedProps:b,additionalProps:{role:"tooltip",ref:k},ownerState:t,className:O.root});return p.jsx(N,{...P,children:typeof o=="function"?o(L):o})}),qm=I.forwardRef(function(t,n){const{anchorEl:r,children:o,container:s,direction:a="ltr",disablePortal:l=!1,keepMounted:c=!1,modifiers:d,open:u,placement:f="bottom",popperOptions:h=xE,popperRef:m,style:g,transition:y=!1,slotProps:b={},slots:v={},...k}=t,[S,C]=I.useState(!0),w=()=>{C(!1)},T=()=>{C(!0)};if(!c&&!u&&(!y||S))return null;let E;if(s)E=s;else if(r){const A=al(r);E=A&&ll(A)?fn(A).body:fn(null).body}const M=!u&&c&&(!y||S)?"none":void 0,j=y?{in:u,onEnter:w,onExited:T}:void 0;return p.jsx(ui,{disablePortal:l,container:E,children:p.jsx(wE,{anchorEl:r,direction:a,disablePortal:l,modifiers:d,ref:n,open:y?!S:u,placement:f,popperOptions:h,popperRef:m,slotProps:b,slots:v,...k,style:{position:"fixed",top:0,left:0,display:M,...g},TransitionProps:j,children:o})})});process.env.NODE_ENV!=="production"&&(qm.propTypes={anchorEl:Vr(i.oneOfType([Mr,i.object,i.func]),e=>{if(e.open){const t=al(e.anchorEl);if(t&&ll(t)&&t.nodeType===1){const n=t.getBoundingClientRect();if(process.env.NODE_ENV!=="test"&&n.top===0&&n.left===0&&n.right===0&&n.bottom===0)return new Error(["MUI: The `anchorEl` prop provided to the component is invalid.","The anchor element should be part of the document layout.","Make sure the element is present in the document or that it's not display none."].join(`
|
|
179
|
-
`))}else if(!t||typeof t.getBoundingClientRect!="function"||bE(t)&&t.contextElement!=null&&t.contextElement.nodeType!==1)return new Error(["MUI: The `anchorEl` prop provided to the component is invalid.","It should be an HTML element instance or a virtualElement ","(https://popper.js.org/docs/v2/virtual-elements/)."].join(`
|
|
180
|
-
`))}return null}),children:i.oneOfType([i.node,i.func]),container:i.oneOfType([Mr,i.func]),direction:i.oneOf(["ltr","rtl"]),disablePortal:i.bool,keepMounted:i.bool,modifiers:i.arrayOf(i.shape({data:i.object,effect:i.func,enabled:i.bool,fn:i.func,name:i.any,options:i.object,phase:i.oneOf(["afterMain","afterRead","afterWrite","beforeMain","beforeRead","beforeWrite","main","read","write"]),requires:i.arrayOf(i.string),requiresIfExists:i.arrayOf(i.string)})),open:i.bool.isRequired,placement:i.oneOf(["auto-end","auto-start","auto","bottom-end","bottom-start","bottom","left-end","left-start","left","right-end","right-start","right","top-end","top-start","top"]),popperOptions:i.shape({modifiers:i.array,onFirstUpdate:i.func,placement:i.oneOf(["auto-end","auto-start","auto","bottom-end","bottom-start","bottom","left-end","left-start","left","right-end","right-start","right","top-end","top-start","top"]),strategy:i.oneOf(["absolute","fixed"])}),popperRef:pn,slotProps:i.shape({root:i.oneOfType([i.func,i.object])}),slots:i.shape({root:i.elementType}),transition:i.bool});const SE=te(qm,{name:"MuiPopper",slot:"Root"})({}),fi=I.forwardRef(function(t,n){const r=Fo(),o=Fe({props:t,name:"MuiPopper"}),{anchorEl:s,component:a,components:l,componentsProps:c,container:d,disablePortal:u,keepMounted:f,modifiers:h,open:m,placement:g,popperOptions:y,popperRef:b,transition:v,slots:k,slotProps:S,...C}=o,w=k?.root??l?.Root,T={anchorEl:s,container:d,disablePortal:u,keepMounted:f,modifiers:h,open:m,placement:g,popperOptions:y,popperRef:b,transition:v,...C};return p.jsx(SE,{as:a,direction:r?"rtl":"ltr",slots:{root:w},slotProps:S??c,...T,ref:n})});process.env.NODE_ENV!=="production"&&(fi.propTypes={anchorEl:i.oneOfType([Mr,i.object,i.func]),children:i.oneOfType([i.node,i.func]),component:i.elementType,components:i.shape({Root:i.elementType}),componentsProps:i.shape({root:i.oneOfType([i.func,i.object])}),container:i.oneOfType([Mr,i.func]),disablePortal:i.bool,keepMounted:i.bool,modifiers:i.arrayOf(i.shape({data:i.object,effect:i.func,enabled:i.bool,fn:i.func,name:i.any,options:i.object,phase:i.oneOf(["afterMain","afterRead","afterWrite","beforeMain","beforeRead","beforeWrite","main","read","write"]),requires:i.arrayOf(i.string),requiresIfExists:i.arrayOf(i.string)})),open:i.bool.isRequired,placement:i.oneOf(["auto-end","auto-start","auto","bottom-end","bottom-start","bottom","left-end","left-start","left","right-end","right-start","right","top-end","top-start","top"]),popperOptions:i.shape({modifiers:i.array,onFirstUpdate:i.func,placement:i.oneOf(["auto-end","auto-start","auto","bottom-end","bottom-start","bottom","left-end","left-start","left","right-end","right-start","right","top-end","top-start","top"]),strategy:i.oneOf(["absolute","fixed"])}),popperRef:pn,slotProps:i.shape({root:i.oneOfType([i.func,i.object])}),slots:i.shape({root:i.elementType}),sx:i.oneOfType([i.arrayOf(i.oneOfType([i.func,i.object,i.bool])),i.func,i.object]),transition:i.bool});const CE=wn(p.jsx("path",{d:"M12 2C6.47 2 2 6.47 2 12s4.47 10 10 10 10-4.47 10-10S17.53 2 12 2zm5 13.59L15.59 17 12 13.41 8.41 17 7 15.59 10.59 12 7 8.41 8.41 7 12 10.59 15.59 7 17 8.41 13.41 12 17 15.59z"}),"Cancel");function TE(e){return Ae("MuiChip",e)}const et=Ne("MuiChip",["root","sizeSmall","sizeMedium","colorDefault","colorError","colorInfo","colorPrimary","colorSecondary","colorSuccess","colorWarning","disabled","clickable","clickableColorPrimary","clickableColorSecondary","deletable","deletableColorPrimary","deletableColorSecondary","outlined","filled","outlinedPrimary","outlinedSecondary","filledPrimary","filledSecondary","avatar","avatarSmall","avatarMedium","avatarColorPrimary","avatarColorSecondary","icon","iconSmall","iconMedium","iconColorPrimary","iconColorSecondary","label","labelSmall","labelMedium","deleteIcon","deleteIconSmall","deleteIconMedium","deleteIconColorPrimary","deleteIconColorSecondary","deleteIconOutlinedColorPrimary","deleteIconOutlinedColorSecondary","deleteIconFilledColorPrimary","deleteIconFilledColorSecondary","focusVisible"]),kE=e=>{const{classes:t,disabled:n,size:r,color:o,iconColor:s,onDelete:a,clickable:l,variant:c}=e,d={root:["root",c,n&&"disabled",`size${Q(r)}`,`color${Q(o)}`,l&&"clickable",l&&`clickableColor${Q(o)}`,a&&"deletable",a&&`deletableColor${Q(o)}`,`${c}${Q(o)}`],label:["label",`label${Q(r)}`],avatar:["avatar",`avatar${Q(r)}`,`avatarColor${Q(o)}`],icon:["icon",`icon${Q(r)}`,`iconColor${Q(s)}`],deleteIcon:["deleteIcon",`deleteIcon${Q(r)}`,`deleteIconColor${Q(o)}`,`deleteIcon${Q(c)}Color${Q(o)}`]};return $e(d,TE,t)},EE=te("div",{name:"MuiChip",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e,{color:r,iconColor:o,clickable:s,onDelete:a,size:l,variant:c}=n;return[{[`& .${et.avatar}`]:t.avatar},{[`& .${et.avatar}`]:t[`avatar${Q(l)}`]},{[`& .${et.avatar}`]:t[`avatarColor${Q(r)}`]},{[`& .${et.icon}`]:t.icon},{[`& .${et.icon}`]:t[`icon${Q(l)}`]},{[`& .${et.icon}`]:t[`iconColor${Q(o)}`]},{[`& .${et.deleteIcon}`]:t.deleteIcon},{[`& .${et.deleteIcon}`]:t[`deleteIcon${Q(l)}`]},{[`& .${et.deleteIcon}`]:t[`deleteIconColor${Q(r)}`]},{[`& .${et.deleteIcon}`]:t[`deleteIcon${Q(c)}Color${Q(r)}`]},t.root,t[`size${Q(l)}`],t[`color${Q(r)}`],s&&t.clickable,s&&r!=="default"&&t[`clickableColor${Q(r)}`],a&&t.deletable,a&&r!=="default"&&t[`deletableColor${Q(r)}`],t[c],t[`${c}${Q(r)}`]]}})(_e(({theme:e})=>{const t=e.palette.mode==="light"?e.palette.grey[700]:e.palette.grey[300];return{maxWidth:"100%",fontFamily:e.typography.fontFamily,fontSize:e.typography.pxToRem(13),display:"inline-flex",alignItems:"center",justifyContent:"center",height:32,lineHeight:1.5,color:(e.vars||e).palette.text.primary,backgroundColor:(e.vars||e).palette.action.selected,borderRadius:32/2,whiteSpace:"nowrap",transition:e.transitions.create(["background-color","box-shadow"]),cursor:"unset",outline:0,textDecoration:"none",border:0,padding:0,verticalAlign:"middle",boxSizing:"border-box",[`&.${et.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity,pointerEvents:"none"},[`& .${et.avatar}`]:{marginLeft:5,marginRight:-6,width:24,height:24,color:e.vars?e.vars.palette.Chip.defaultAvatarColor:t,fontSize:e.typography.pxToRem(12)},[`& .${et.avatarColorPrimary}`]:{color:(e.vars||e).palette.primary.contrastText,backgroundColor:(e.vars||e).palette.primary.dark},[`& .${et.avatarColorSecondary}`]:{color:(e.vars||e).palette.secondary.contrastText,backgroundColor:(e.vars||e).palette.secondary.dark},[`& .${et.avatarSmall}`]:{marginLeft:4,marginRight:-4,width:18,height:18,fontSize:e.typography.pxToRem(10)},[`& .${et.icon}`]:{marginLeft:5,marginRight:-6},[`& .${et.deleteIcon}`]:{WebkitTapHighlightColor:"transparent",color:e.alpha((e.vars||e).palette.text.primary,.26),fontSize:22,cursor:"pointer",margin:"0 5px 0 -6px","&:hover":{color:e.alpha((e.vars||e).palette.text.primary,.4)}},variants:[{props:{size:"small"},style:{height:24,[`& .${et.icon}`]:{fontSize:18,marginLeft:4,marginRight:-4},[`& .${et.deleteIcon}`]:{fontSize:16,marginRight:4,marginLeft:-4}}},...Object.entries(e.palette).filter(Ft(["contrastText"])).map(([n])=>({props:{color:n},style:{backgroundColor:(e.vars||e).palette[n].main,color:(e.vars||e).palette[n].contrastText,[`& .${et.deleteIcon}`]:{color:e.alpha((e.vars||e).palette[n].contrastText,.7),"&:hover, &:active":{color:(e.vars||e).palette[n].contrastText}}}})),{props:n=>n.iconColor===n.color,style:{[`& .${et.icon}`]:{color:e.vars?e.vars.palette.Chip.defaultIconColor:t}}},{props:n=>n.iconColor===n.color&&n.color!=="default",style:{[`& .${et.icon}`]:{color:"inherit"}}},{props:{onDelete:!0},style:{[`&.${et.focusVisible}`]:{backgroundColor:e.alpha((e.vars||e).palette.action.selected,`${(e.vars||e).palette.action.selectedOpacity} + ${(e.vars||e).palette.action.focusOpacity}`)}}},...Object.entries(e.palette).filter(Ft(["dark"])).map(([n])=>({props:{color:n,onDelete:!0},style:{[`&.${et.focusVisible}`]:{background:(e.vars||e).palette[n].dark}}})),{props:{clickable:!0},style:{userSelect:"none",WebkitTapHighlightColor:"transparent",cursor:"pointer","&:hover":{backgroundColor:e.alpha((e.vars||e).palette.action.selected,`${(e.vars||e).palette.action.selectedOpacity} + ${(e.vars||e).palette.action.hoverOpacity}`)},[`&.${et.focusVisible}`]:{backgroundColor:e.alpha((e.vars||e).palette.action.selected,`${(e.vars||e).palette.action.selectedOpacity} + ${(e.vars||e).palette.action.focusOpacity}`)},"&:active":{boxShadow:(e.vars||e).shadows[1]}}},...Object.entries(e.palette).filter(Ft(["dark"])).map(([n])=>({props:{color:n,clickable:!0},style:{[`&:hover, &.${et.focusVisible}`]:{backgroundColor:(e.vars||e).palette[n].dark}}})),{props:{variant:"outlined"},style:{backgroundColor:"transparent",border:e.vars?`1px solid ${e.vars.palette.Chip.defaultBorder}`:`1px solid ${e.palette.mode==="light"?e.palette.grey[400]:e.palette.grey[700]}`,[`&.${et.clickable}:hover`]:{backgroundColor:(e.vars||e).palette.action.hover},[`&.${et.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`& .${et.avatar}`]:{marginLeft:4},[`& .${et.avatarSmall}`]:{marginLeft:2},[`& .${et.icon}`]:{marginLeft:4},[`& .${et.iconSmall}`]:{marginLeft:2},[`& .${et.deleteIcon}`]:{marginRight:5},[`& .${et.deleteIconSmall}`]:{marginRight:3}}},...Object.entries(e.palette).filter(Ft()).map(([n])=>({props:{variant:"outlined",color:n},style:{color:(e.vars||e).palette[n].main,border:`1px solid ${e.alpha((e.vars||e).palette[n].main,.7)}`,[`&.${et.clickable}:hover`]:{backgroundColor:e.alpha((e.vars||e).palette[n].main,(e.vars||e).palette.action.hoverOpacity)},[`&.${et.focusVisible}`]:{backgroundColor:e.alpha((e.vars||e).palette[n].main,(e.vars||e).palette.action.focusOpacity)},[`& .${et.deleteIcon}`]:{color:e.alpha((e.vars||e).palette[n].main,.7),"&:hover, &:active":{color:(e.vars||e).palette[n].main}}}}))]}})),OE=te("span",{name:"MuiChip",slot:"Label",overridesResolver:(e,t)=>{const{ownerState:n}=e,{size:r}=n;return[t.label,t[`label${Q(r)}`]]}})({overflow:"hidden",textOverflow:"ellipsis",paddingLeft:12,paddingRight:12,whiteSpace:"nowrap",variants:[{props:{variant:"outlined"},style:{paddingLeft:11,paddingRight:11}},{props:{size:"small"},style:{paddingLeft:8,paddingRight:8}},{props:{size:"small",variant:"outlined"},style:{paddingLeft:7,paddingRight:7}}]});function Gm(e){return e.key==="Backspace"||e.key==="Delete"}const Km=I.forwardRef(function(t,n){const r=Fe({props:t,name:"MuiChip"}),{avatar:o,className:s,clickable:a,color:l="default",component:c,deleteIcon:d,disabled:u=!1,icon:f,label:h,onClick:m,onDelete:g,onKeyDown:y,onKeyUp:b,size:v="medium",variant:k="filled",tabIndex:S,skipFocusWhenDisabled:C=!1,slots:w={},slotProps:T={},...E}=r,M=I.useRef(null),j=Ut(M,n),A=Y=>{Y.stopPropagation(),g&&g(Y)},L=Y=>{Y.currentTarget===Y.target&&Gm(Y)&&Y.preventDefault(),y&&y(Y)},O=Y=>{Y.currentTarget===Y.target&&g&&Gm(Y)&&g(Y),b&&b(Y)},N=a!==!1&&m?!0:a,P=N||g?lr:c||"div",R={...r,component:P,disabled:u,size:v,color:l,iconColor:I.isValidElement(f)&&f.props.color||l,onDelete:!!g,clickable:N,variant:k},$=kE(R),_=P===lr?{component:c||"div",focusVisibleClassName:$.focusVisible,...g&&{disableRipple:!0}}:{};let U=null;g&&(U=d&&I.isValidElement(d)?I.cloneElement(d,{className:me(d.props.className,$.deleteIcon),onClick:A}):p.jsx(CE,{className:$.deleteIcon,onClick:A}));let H=null;o&&I.isValidElement(o)&&(H=I.cloneElement(o,{className:me($.avatar,o.props.className)}));let B=null;f&&I.isValidElement(f)&&(B=I.cloneElement(f,{className:me($.icon,f.props.className)})),process.env.NODE_ENV!=="production"&&H&&B&&console.error("MUI: The Chip component can not handle the avatar and the icon prop at the same time. Pick one.");const D={slots:w,slotProps:T},[z,V]=Ye("root",{elementType:EE,externalForwardedProps:{...D,...E},ownerState:R,shouldForwardComponentProp:!0,ref:j,className:me($.root,s),additionalProps:{disabled:N&&u?!0:void 0,tabIndex:C&&u?-1:S,..._},getSlotProps:Y=>({...Y,onClick:K=>{Y.onClick?.(K),m?.(K)},onKeyDown:K=>{Y.onKeyDown?.(K),L(K)},onKeyUp:K=>{Y.onKeyUp?.(K),O(K)}})}),[X,G]=Ye("label",{elementType:OE,externalForwardedProps:D,ownerState:R,className:$.label});return p.jsxs(z,{as:P,...V,children:[H||B,p.jsx(X,{...G,children:h}),U]})});process.env.NODE_ENV!=="production"&&(Km.propTypes={avatar:i.element,children:cm,classes:i.object,className:i.string,clickable:i.bool,color:i.oneOfType([i.oneOf(["default","primary","secondary","error","info","success","warning"]),i.string]),component:i.elementType,deleteIcon:i.element,disabled:i.bool,icon:i.element,label:i.node,onClick:i.func,onDelete:i.func,onKeyDown:i.func,onKeyUp:i.func,size:i.oneOfType([i.oneOf(["medium","small"]),i.string]),skipFocusWhenDisabled:i.bool,slotProps:i.shape({label:i.oneOfType([i.func,i.object]),root:i.oneOfType([i.func,i.object])}),slots:i.shape({label:i.elementType,root:i.elementType}),sx:i.oneOfType([i.arrayOf(i.oneOfType([i.func,i.object,i.bool])),i.func,i.object]),tabIndex:i.number,variant:i.oneOfType([i.oneOf(["filled","outlined"]),i.string])});function cl(e){return parseInt(e,10)||0}const ME={shadow:{visibility:"hidden",position:"absolute",overflow:"hidden",height:0,top:0,left:0,transform:"translateZ(0)"}};function PE(e){for(const t in e)return!1;return!0}function Xm(e){return PE(e)||e.outerHeightStyle===0&&!e.overflowing}const Zm=I.forwardRef(function(t,n){const{onChange:r,maxRows:o,minRows:s=1,style:a,value:l,...c}=t,{current:d}=I.useRef(l!=null),u=I.useRef(null),f=Ut(n,u),h=I.useRef(null),m=I.useRef(null),g=I.useCallback(()=>{const S=u.current,C=m.current;if(!S||!C)return;const T=Hn(S).getComputedStyle(S);if(T.width==="0px")return{outerHeightStyle:0,overflowing:!1};C.style.width=T.width,C.value=S.value||t.placeholder||"x",C.value.slice(-1)===`
|
|
181
|
-
`&&(C.value+=" ");const E=T.boxSizing,M=cl(T.paddingBottom)+cl(T.paddingTop),j=cl(T.borderBottomWidth)+cl(T.borderTopWidth),A=C.scrollHeight;C.value="x";const L=C.scrollHeight;let O=A;s&&(O=Math.max(Number(s)*L,O)),o&&(O=Math.min(Number(o)*L,O)),O=Math.max(O,L);const N=O+(E==="border-box"?M+j:0),P=Math.abs(O-A)<=1;return{outerHeightStyle:N,overflowing:P}},[o,s,t.placeholder]),y=Mn(()=>{const S=u.current,C=g();if(!S||!C||Xm(C))return!1;const w=C.outerHeightStyle;return h.current!=null&&h.current!==w}),b=I.useCallback(()=>{const S=u.current,C=g();if(!S||!C||Xm(C))return;const w=C.outerHeightStyle;h.current!==w&&(h.current=w,S.style.height=`${w}px`),S.style.overflow=C.overflowing?"hidden":""},[g]),v=I.useRef(-1);On(()=>{const S=ei(b),C=u?.current;if(!C)return;const w=Hn(C);w.addEventListener("resize",S);let T;return typeof ResizeObserver<"u"&&(T=new ResizeObserver(()=>{y()&&(T.unobserve(C),cancelAnimationFrame(v.current),b(),v.current=requestAnimationFrame(()=>{T.observe(C)}))}),T.observe(C)),()=>{S.clear(),cancelAnimationFrame(v.current),w.removeEventListener("resize",S),T&&T.disconnect()}},[g,b,y]),On(()=>{b()});const k=S=>{d||b();const C=S.target,w=C.value.length,T=C.value.endsWith(`
|
|
182
|
-
`),E=C.selectionStart===w;T&&E&&C.setSelectionRange(w,w),r&&r(S)};return p.jsxs(I.Fragment,{children:[p.jsx("textarea",{value:l,onChange:k,ref:f,rows:s,style:a,...c}),p.jsx("textarea",{"aria-hidden":!0,className:t.className,readOnly:!0,ref:m,tabIndex:-1,style:{...ME.shadow,...a,paddingTop:0,paddingBottom:0}})]})});process.env.NODE_ENV!=="production"&&(Zm.propTypes={className:i.string,maxRows:i.oneOfType([i.number,i.string]),minRows:i.oneOfType([i.number,i.string]),onChange:i.func,placeholder:i.string,style:i.object,value:i.oneOfType([i.arrayOf(i.string),i.number,i.string])});function Jo({props:e,states:t,muiFormControl:n}){return t.reduce((r,o)=>(r[o]=e[o],n&&typeof e[o]>"u"&&(r[o]=n[o]),r),{})}const pi=I.createContext(void 0);process.env.NODE_ENV!=="production"&&(pi.displayName="FormControlContext");function Ur(){return I.useContext(pi)}function Jm(e){return e!=null&&!(Array.isArray(e)&&e.length===0)}function dl(e,t=!1){return e&&(Jm(e.value)&&e.value!==""||t&&Jm(e.defaultValue)&&e.defaultValue!=="")}function jE(e){return e.startAdornment}function IE(e){return Ae("MuiInputBase",e)}const Qo=Ne("MuiInputBase",["root","formControl","focused","disabled","adornedStart","adornedEnd","error","sizeSmall","multiline","colorSecondary","fullWidth","hiddenLabel","readOnly","input","inputSizeSmall","inputMultiline","inputTypeSearch","inputAdornedStart","inputAdornedEnd","inputHiddenLabel"]);var Qm;const ul=(e,t)=>{const{ownerState:n}=e;return[t.root,n.formControl&&t.formControl,n.startAdornment&&t.adornedStart,n.endAdornment&&t.adornedEnd,n.error&&t.error,n.size==="small"&&t.sizeSmall,n.multiline&&t.multiline,n.color&&t[`color${Q(n.color)}`],n.fullWidth&&t.fullWidth,n.hiddenLabel&&t.hiddenLabel]},fl=(e,t)=>{const{ownerState:n}=e;return[t.input,n.size==="small"&&t.inputSizeSmall,n.multiline&&t.inputMultiline,n.type==="search"&&t.inputTypeSearch,n.startAdornment&&t.inputAdornedStart,n.endAdornment&&t.inputAdornedEnd,n.hiddenLabel&&t.inputHiddenLabel]},DE=e=>{const{classes:t,color:n,disabled:r,error:o,endAdornment:s,focused:a,formControl:l,fullWidth:c,hiddenLabel:d,multiline:u,readOnly:f,size:h,startAdornment:m,type:g}=e,y={root:["root",`color${Q(n)}`,r&&"disabled",o&&"error",c&&"fullWidth",a&&"focused",l&&"formControl",h&&h!=="medium"&&`size${Q(h)}`,u&&"multiline",m&&"adornedStart",s&&"adornedEnd",d&&"hiddenLabel",f&&"readOnly"],input:["input",r&&"disabled",g==="search"&&"inputTypeSearch",u&&"inputMultiline",h==="small"&&"inputSizeSmall",d&&"inputHiddenLabel",m&&"inputAdornedStart",s&&"inputAdornedEnd",f&&"readOnly"]};return $e(y,IE,t)},pl=te("div",{name:"MuiInputBase",slot:"Root",overridesResolver:ul})(_e(({theme:e})=>({...e.typography.body1,color:(e.vars||e).palette.text.primary,lineHeight:"1.4375em",boxSizing:"border-box",position:"relative",cursor:"text",display:"inline-flex",alignItems:"center",[`&.${Qo.disabled}`]:{color:(e.vars||e).palette.text.disabled,cursor:"default"},variants:[{props:({ownerState:t})=>t.multiline,style:{padding:"4px 0 5px"}},{props:({ownerState:t,size:n})=>t.multiline&&n==="small",style:{paddingTop:1}},{props:({ownerState:t})=>t.fullWidth,style:{width:"100%"}}]}))),hl=te("input",{name:"MuiInputBase",slot:"Input",overridesResolver:fl})(_e(({theme:e})=>{const t=e.palette.mode==="light",n={color:"currentColor",...e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:t?.42:.5},transition:e.transitions.create("opacity",{duration:e.transitions.duration.shorter})},r={opacity:"0 !important"},o=e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:t?.42:.5};return{font:"inherit",letterSpacing:"inherit",color:"currentColor",padding:"4px 0 5px",border:0,boxSizing:"content-box",background:"none",height:"1.4375em",margin:0,WebkitTapHighlightColor:"transparent",display:"block",minWidth:0,width:"100%","&::-webkit-input-placeholder":n,"&::-moz-placeholder":n,"&::-ms-input-placeholder":n,"&:focus":{outline:0},"&:invalid":{boxShadow:"none"},"&::-webkit-search-decoration":{WebkitAppearance:"none"},[`label[data-shrink=false] + .${Qo.formControl} &`]:{"&::-webkit-input-placeholder":r,"&::-moz-placeholder":r,"&::-ms-input-placeholder":r,"&:focus::-webkit-input-placeholder":o,"&:focus::-moz-placeholder":o,"&:focus::-ms-input-placeholder":o},[`&.${Qo.disabled}`]:{opacity:1,WebkitTextFillColor:(e.vars||e).palette.text.disabled},variants:[{props:({ownerState:s})=>!s.disableInjectingGlobalStyles,style:{animationName:"mui-auto-fill-cancel",animationDuration:"10ms","&:-webkit-autofill":{animationDuration:"5000s",animationName:"mui-auto-fill"}}},{props:{size:"small"},style:{paddingTop:1}},{props:({ownerState:s})=>s.multiline,style:{height:"auto",resize:"none",padding:0,paddingTop:0}},{props:{type:"search"},style:{MozAppearance:"textfield"}}]}})),eg=cT({"@keyframes mui-auto-fill":{from:{display:"block"}},"@keyframes mui-auto-fill-cancel":{from:{display:"block"}}}),ml=I.forwardRef(function(t,n){const r=Fe({props:t,name:"MuiInputBase"}),{"aria-describedby":o,autoComplete:s,autoFocus:a,className:l,color:c,components:d={},componentsProps:u={},defaultValue:f,disabled:h,disableInjectingGlobalStyles:m,endAdornment:g,error:y,fullWidth:b=!1,id:v,inputComponent:k="input",inputProps:S={},inputRef:C,margin:w,maxRows:T,minRows:E,multiline:M=!1,name:j,onBlur:A,onChange:L,onClick:O,onFocus:N,onKeyDown:P,onKeyUp:R,placeholder:$,readOnly:_,renderSuffix:U,rows:H,size:B,slotProps:D={},slots:z={},startAdornment:V,type:X="text",value:G,...Y}=r,K=S.value!=null?S.value:G,{current:ae}=I.useRef(K!=null),le=I.useRef(),W=I.useCallback(be=>{process.env.NODE_ENV!=="production"&&be&&be.nodeName!=="INPUT"&&!be.focus&&console.error(["MUI: You have provided a `inputComponent` to the input component","that does not correctly handle the `ref` prop.","Make sure the `ref` prop is called with a HTMLInputElement."].join(`
|
|
183
|
-
`))},[]),ee=Ut(le,C,S.ref,W),[F,fe]=I.useState(!1),se=Ur();process.env.NODE_ENV!=="production"&&I.useEffect(()=>{if(se)return se.registerEffect()},[se]);const Z=Jo({props:r,muiFormControl:se,states:["color","disabled","error","hiddenLabel","size","required","filled"]});Z.focused=se?se.focused:F,I.useEffect(()=>{!se&&h&&F&&(fe(!1),A&&A())},[se,h,F,A]);const Ce=se&&se.onFilled,Te=se&&se.onEmpty,ke=I.useCallback(be=>{dl(be)?Ce&&Ce():Te&&Te()},[Ce,Te]);On(()=>{ae&&ke({value:K})},[K,ke,ae]);const we=be=>{N&&N(be),S.onFocus&&S.onFocus(be),se&&se.onFocus?se.onFocus(be):fe(!0)},Re=be=>{A&&A(be),S.onBlur&&S.onBlur(be),se&&se.onBlur?se.onBlur(be):fe(!1)},Oe=(be,...wt)=>{if(!ae){const yt=be.target||le.current;if(yt==null)throw new Error(process.env.NODE_ENV!=="production"?"MUI: Expected valid input target. Did you use a custom `inputComponent` and forget to forward refs? See https://mui.com/r/input-component-ref-interface for more info.":Qn(1));ke({value:yt.value})}S.onChange&&S.onChange(be,...wt),L&&L(be,...wt)};I.useEffect(()=>{ke(le.current)},[]);const ge=be=>{le.current&&be.currentTarget===be.target&&le.current.focus(),O&&O(be)};let ne=k,ie=S;M&&ne==="input"&&(H?(process.env.NODE_ENV!=="production"&&(E||T)&&console.warn("MUI: You can not use the `minRows` or `maxRows` props when the input `rows` prop is set."),ie={type:void 0,minRows:H,maxRows:H,...ie}):ie={type:void 0,maxRows:T,minRows:E,...ie},ne=Zm);const Ee=be=>{ke(be.animationName==="mui-auto-fill-cancel"?le.current:{value:"x"})};I.useEffect(()=>{se&&se.setAdornedStart(!!V)},[se,V]);const pe={...r,color:Z.color||"primary",disabled:Z.disabled,endAdornment:g,error:Z.error,focused:Z.focused,formControl:se,fullWidth:b,hiddenLabel:Z.hiddenLabel,multiline:M,size:Z.size,startAdornment:V,type:X},he=DE(pe),Me=z.root||d.Root||pl,We=D.root||u.root||{},rt=z.input||d.Input||hl;return ie={...ie,...D.input??u.input},p.jsxs(I.Fragment,{children:[!m&&typeof eg=="function"&&(Qm||(Qm=p.jsx(eg,{}))),p.jsxs(Me,{...We,ref:n,onClick:ge,...Y,...!Qa(Me)&&{ownerState:{...pe,...We.ownerState}},className:me(he.root,We.className,l,_&&"MuiInputBase-readOnly"),children:[V,p.jsx(pi.Provider,{value:null,children:p.jsx(rt,{"aria-invalid":Z.error,"aria-describedby":o,autoComplete:s,autoFocus:a,defaultValue:f,disabled:Z.disabled,id:v,onAnimationStart:Ee,name:j,placeholder:$,readOnly:_,required:Z.required,rows:H,value:K,onKeyDown:P,onKeyUp:R,type:X,...ie,...!Qa(rt)&&{as:ne,ownerState:{...pe,...ie.ownerState}},ref:ee,className:me(he.input,ie.className,_&&"MuiInputBase-readOnly"),onBlur:Re,onChange:Oe,onFocus:we})}),g,U?U({...Z,startAdornment:V}):null]})]})});process.env.NODE_ENV!=="production"&&(ml.propTypes={"aria-describedby":i.string,autoComplete:i.string,autoFocus:i.bool,classes:i.object,className:i.string,color:i.oneOfType([i.oneOf(["primary","secondary","error","info","success","warning"]),i.string]),components:i.shape({Input:i.elementType,Root:i.elementType}),componentsProps:i.shape({input:i.object,root:i.object}),defaultValue:i.any,disabled:i.bool,disableInjectingGlobalStyles:i.bool,endAdornment:i.node,error:i.bool,fullWidth:i.bool,id:i.string,inputComponent:pd,inputProps:i.object,inputRef:pn,margin:i.oneOf(["dense","none"]),maxRows:i.oneOfType([i.number,i.string]),minRows:i.oneOfType([i.number,i.string]),multiline:i.bool,name:i.string,onBlur:i.func,onChange:i.func,onClick:i.func,onFocus:i.func,onInvalid:i.func,onKeyDown:i.func,onKeyUp:i.func,placeholder:i.string,readOnly:i.bool,renderSuffix:i.func,required:i.bool,rows:i.oneOfType([i.number,i.string]),size:i.oneOfType([i.oneOf(["medium","small"]),i.string]),slotProps:i.shape({input:i.object,root:i.object}),slots:i.shape({input:i.elementType,root:i.elementType}),startAdornment:i.node,sx:i.oneOfType([i.arrayOf(i.oneOfType([i.func,i.object,i.bool])),i.func,i.object]),type:i.string,value:i.any});function AE(e){return Ae("MuiInput",e)}const hi={...Qo,...Ne("MuiInput",["root","underline","input"])};function RE(e){return Ae("MuiOutlinedInput",e)}const ur={...Qo,...Ne("MuiOutlinedInput",["root","notchedOutline","input"])};function NE(e){return Ae("MuiFilledInput",e)}const ho={...Qo,...Ne("MuiFilledInput",["root","underline","input","adornedStart","adornedEnd","sizeSmall","multiline","hiddenLabel"])},$E=wn(p.jsx("path",{d:"M7 10l5 5 5-5z"}),"ArrowDropDown");function LE(e){const{prototype:t={}}=e;return!!t.isReactComponent}function tg(e,t,n,r,o){const s=e[t],a=o||t;if(s==null||typeof window>"u")return null;let l;const c=s.type;return typeof c=="function"&&!LE(c)&&(l="Did you accidentally use a plain function component for an element instead?"),l!==void 0?new Error(`Invalid ${r} \`${a}\` supplied to \`${n}\`. Expected an element that can hold a ref. ${l} For more information see https://mui.com/r/caveat-with-refs-guide`):null}const es=Vr(i.element,tg);es.isRequired=Vr(i.element.isRequired,tg);const BE={entering:{opacity:1},entered:{opacity:1}},mi=I.forwardRef(function(t,n){const r=mt(),o={enter:r.transitions.duration.enteringScreen,exit:r.transitions.duration.leavingScreen},{addEndListener:s,appear:a=!0,children:l,easing:c,in:d,onEnter:u,onEntered:f,onEntering:h,onExit:m,onExited:g,onExiting:y,style:b,timeout:v=o,TransitionComponent:k=ir,...S}=t,C=I.useRef(null),w=Ut(C,Zo(l),n),T=P=>R=>{if(P){const $=C.current;R===void 0?P($):P($,R)}},E=T(h),M=T((P,R)=>{gm(P);const $=Ja({style:b,timeout:v,easing:c},{mode:"enter"});P.style.webkitTransition=r.transitions.create("opacity",$),P.style.transition=r.transitions.create("opacity",$),u&&u(P,R)}),j=T(f),A=T(y),L=T(P=>{const R=Ja({style:b,timeout:v,easing:c},{mode:"exit"});P.style.webkitTransition=r.transitions.create("opacity",R),P.style.transition=r.transitions.create("opacity",R),m&&m(P)}),O=T(g),N=P=>{s&&s(C.current,P)};return p.jsx(k,{appear:a,in:d,nodeRef:C,onEnter:M,onEntered:j,onEntering:E,onExit:L,onExited:O,onExiting:A,addEndListener:N,timeout:v,...S,children:(P,{ownerState:R,...$})=>I.cloneElement(l,{style:{opacity:0,visibility:P==="exited"&&!d?"hidden":void 0,...BE[P],...b,...l.props.style},ref:w,...$})})});process.env.NODE_ENV!=="production"&&(mi.propTypes={addEndListener:i.func,appear:i.bool,children:es.isRequired,easing:i.oneOfType([i.shape({enter:i.string,exit:i.string}),i.string]),in:i.bool,onEnter:i.func,onEntered:i.func,onEntering:i.func,onExit:i.func,onExited:i.func,onExiting:i.func,style:i.object,timeout:i.oneOfType([i.number,i.shape({appear:i.number,enter:i.number,exit:i.number})])});function _E(e){return Ae("MuiBackdrop",e)}Ne("MuiBackdrop",["root","invisible"]);const FE=e=>{const{classes:t,invisible:n}=e;return $e({root:["root",n&&"invisible"]},_E,t)},WE=te("div",{name:"MuiBackdrop",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.invisible&&t.invisible]}})({position:"fixed",display:"flex",alignItems:"center",justifyContent:"center",right:0,bottom:0,top:0,left:0,backgroundColor:"rgba(0, 0, 0, 0.5)",WebkitTapHighlightColor:"transparent",variants:[{props:{invisible:!0},style:{backgroundColor:"transparent"}}]}),gl=I.forwardRef(function(t,n){const r=Fe({props:t,name:"MuiBackdrop"}),{children:o,className:s,component:a="div",invisible:l=!1,open:c,components:d={},componentsProps:u={},slotProps:f={},slots:h={},TransitionComponent:m,transitionDuration:g,...y}=r,b={...r,component:a,invisible:l},v=FE(b),k={transition:m,root:d.Root,...h},S={...u,...f},C={component:a,slots:k,slotProps:S},[w,T]=Ye("root",{elementType:WE,externalForwardedProps:C,className:me(v.root,s),ownerState:b}),[E,M]=Ye("transition",{elementType:mi,externalForwardedProps:C,ownerState:b});return p.jsx(E,{in:c,timeout:g,...y,...M,children:p.jsx(w,{"aria-hidden":!0,...T,ref:n,children:o})})});process.env.NODE_ENV!=="production"&&(gl.propTypes={children:i.node,classes:i.object,className:i.string,component:i.elementType,components:i.shape({Root:i.elementType}),componentsProps:i.shape({root:i.object}),invisible:i.bool,open:i.bool.isRequired,slotProps:i.shape({root:i.oneOfType([i.func,i.object]),transition:i.oneOfType([i.func,i.object])}),slots:i.shape({root:i.elementType,transition:i.elementType}),sx:i.oneOfType([i.arrayOf(i.oneOfType([i.func,i.object,i.bool])),i.func,i.object]),TransitionComponent:i.elementType,transitionDuration:i.oneOfType([i.number,i.shape({appear:i.number,enter:i.number,exit:i.number})])});function zE(e){const{badgeContent:t,invisible:n=!1,max:r=99,showZero:o=!1}=e,s=Mm({badgeContent:t,max:r});let a=n;n===!1&&t===0&&!o&&(a=!0);const{badgeContent:l,max:c=r}=a?s:e,d=l&&Number(l)>c?`${c}+`:l;return{badgeContent:l,invisible:a,max:c,displayValue:d}}function VE(e){return Ae("MuiBadge",e)}const Yr=Ne("MuiBadge",["root","badge","dot","standard","anchorOriginTopRight","anchorOriginBottomRight","anchorOriginTopLeft","anchorOriginBottomLeft","invisible","colorError","colorInfo","colorPrimary","colorSecondary","colorSuccess","colorWarning","overlapRectangular","overlapCircular","anchorOriginTopLeftCircular","anchorOriginTopLeftRectangular","anchorOriginTopRightCircular","anchorOriginTopRightRectangular","anchorOriginBottomLeftCircular","anchorOriginBottomLeftRectangular","anchorOriginBottomRightCircular","anchorOriginBottomRightRectangular"]),Od=10,Md=4,HE=e=>{const{color:t,anchorOrigin:n,invisible:r,overlap:o,variant:s,classes:a={}}=e,l={root:["root"],badge:["badge",s,r&&"invisible",`anchorOrigin${Q(n.vertical)}${Q(n.horizontal)}`,`anchorOrigin${Q(n.vertical)}${Q(n.horizontal)}${Q(o)}`,`overlap${Q(o)}`,t!=="default"&&`color${Q(t)}`]};return $e(l,VE,a)},UE=te("span",{name:"MuiBadge",slot:"Root"})({position:"relative",display:"inline-flex",verticalAlign:"middle",flexShrink:0}),YE=te("span",{name:"MuiBadge",slot:"Badge",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.badge,t[n.variant],t[`anchorOrigin${Q(n.anchorOrigin.vertical)}${Q(n.anchorOrigin.horizontal)}${Q(n.overlap)}`],n.color!=="default"&&t[`color${Q(n.color)}`],n.invisible&&t.invisible]}})(_e(({theme:e})=>({display:"flex",flexDirection:"row",flexWrap:"wrap",justifyContent:"center",alignContent:"center",alignItems:"center",position:"absolute",boxSizing:"border-box",fontFamily:e.typography.fontFamily,fontWeight:e.typography.fontWeightMedium,fontSize:e.typography.pxToRem(12),minWidth:Od*2,lineHeight:1,padding:"0 6px",height:Od*2,borderRadius:Od,zIndex:1,transition:e.transitions.create("transform",{easing:e.transitions.easing.easeInOut,duration:e.transitions.duration.enteringScreen}),variants:[...Object.entries(e.palette).filter(Ft(["contrastText"])).map(([t])=>({props:{color:t},style:{backgroundColor:(e.vars||e).palette[t].main,color:(e.vars||e).palette[t].contrastText}})),{props:{variant:"dot"},style:{borderRadius:Md,height:Md*2,minWidth:Md*2,padding:0}},{props:({ownerState:t})=>t.anchorOrigin.vertical==="top"&&t.anchorOrigin.horizontal==="right"&&t.overlap==="rectangular",style:{top:0,right:0,transform:"scale(1) translate(50%, -50%)",transformOrigin:"100% 0%",[`&.${Yr.invisible}`]:{transform:"scale(0) translate(50%, -50%)"}}},{props:({ownerState:t})=>t.anchorOrigin.vertical==="bottom"&&t.anchorOrigin.horizontal==="right"&&t.overlap==="rectangular",style:{bottom:0,right:0,transform:"scale(1) translate(50%, 50%)",transformOrigin:"100% 100%",[`&.${Yr.invisible}`]:{transform:"scale(0) translate(50%, 50%)"}}},{props:({ownerState:t})=>t.anchorOrigin.vertical==="top"&&t.anchorOrigin.horizontal==="left"&&t.overlap==="rectangular",style:{top:0,left:0,transform:"scale(1) translate(-50%, -50%)",transformOrigin:"0% 0%",[`&.${Yr.invisible}`]:{transform:"scale(0) translate(-50%, -50%)"}}},{props:({ownerState:t})=>t.anchorOrigin.vertical==="bottom"&&t.anchorOrigin.horizontal==="left"&&t.overlap==="rectangular",style:{bottom:0,left:0,transform:"scale(1) translate(-50%, 50%)",transformOrigin:"0% 100%",[`&.${Yr.invisible}`]:{transform:"scale(0) translate(-50%, 50%)"}}},{props:({ownerState:t})=>t.anchorOrigin.vertical==="top"&&t.anchorOrigin.horizontal==="right"&&t.overlap==="circular",style:{top:"14%",right:"14%",transform:"scale(1) translate(50%, -50%)",transformOrigin:"100% 0%",[`&.${Yr.invisible}`]:{transform:"scale(0) translate(50%, -50%)"}}},{props:({ownerState:t})=>t.anchorOrigin.vertical==="bottom"&&t.anchorOrigin.horizontal==="right"&&t.overlap==="circular",style:{bottom:"14%",right:"14%",transform:"scale(1) translate(50%, 50%)",transformOrigin:"100% 100%",[`&.${Yr.invisible}`]:{transform:"scale(0) translate(50%, 50%)"}}},{props:({ownerState:t})=>t.anchorOrigin.vertical==="top"&&t.anchorOrigin.horizontal==="left"&&t.overlap==="circular",style:{top:"14%",left:"14%",transform:"scale(1) translate(-50%, -50%)",transformOrigin:"0% 0%",[`&.${Yr.invisible}`]:{transform:"scale(0) translate(-50%, -50%)"}}},{props:({ownerState:t})=>t.anchorOrigin.vertical==="bottom"&&t.anchorOrigin.horizontal==="left"&&t.overlap==="circular",style:{bottom:"14%",left:"14%",transform:"scale(1) translate(-50%, 50%)",transformOrigin:"0% 100%",[`&.${Yr.invisible}`]:{transform:"scale(0) translate(-50%, 50%)"}}},{props:{invisible:!0},style:{transition:e.transitions.create("transform",{easing:e.transitions.easing.easeInOut,duration:e.transitions.duration.leavingScreen})}}]})));function ng(e){return{vertical:e?.vertical??"top",horizontal:e?.horizontal??"right"}}const Pd=I.forwardRef(function(t,n){const r=Fe({props:t,name:"MuiBadge"}),{anchorOrigin:o,className:s,classes:a,component:l,components:c={},componentsProps:d={},children:u,overlap:f="rectangular",color:h="default",invisible:m=!1,max:g=99,badgeContent:y,slots:b,slotProps:v,showZero:k=!1,variant:S="standard",...C}=r,{badgeContent:w,invisible:T,max:E,displayValue:M}=zE({max:g,invisible:m,badgeContent:y,showZero:k}),j=Mm({anchorOrigin:ng(o),color:h,overlap:f,variant:S,badgeContent:y}),A=T||w==null&&S!=="dot",{color:L=h,overlap:O=f,anchorOrigin:N,variant:P=S}=A?j:r,R=ng(N),$=P!=="dot"?M:void 0,_={...r,badgeContent:w,invisible:A,max:E,displayValue:$,showZero:k,anchorOrigin:R,color:L,overlap:O,variant:P},U=HE(_),H={slots:{root:b?.root??c.Root,badge:b?.badge??c.Badge},slotProps:{root:v?.root??d.root,badge:v?.badge??d.badge}},[B,D]=Ye("root",{elementType:UE,externalForwardedProps:{...H,...C},ownerState:_,className:me(U.root,s),ref:n,additionalProps:{as:l}}),[z,V]=Ye("badge",{elementType:YE,externalForwardedProps:H,ownerState:_,className:U.badge});return p.jsxs(B,{...D,children:[u,p.jsx(z,{...V,children:$})]})});process.env.NODE_ENV!=="production"&&(Pd.propTypes={anchorOrigin:i.shape({horizontal:i.oneOf(["left","right"]),vertical:i.oneOf(["bottom","top"])}),badgeContent:i.node,children:i.node,classes:i.object,className:i.string,color:i.oneOfType([i.oneOf(["default","primary","secondary","error","info","success","warning"]),i.string]),component:i.elementType,components:i.shape({Badge:i.elementType,Root:i.elementType}),componentsProps:i.shape({badge:i.oneOfType([i.func,i.object]),root:i.oneOfType([i.func,i.object])}),invisible:i.bool,max:i.number,overlap:i.oneOf(["circular","rectangular"]),showZero:i.bool,slotProps:i.shape({badge:i.oneOfType([i.func,i.object]),root:i.oneOfType([i.func,i.object])}),slots:i.shape({badge:i.elementType,root:i.elementType}),sx:i.oneOfType([i.arrayOf(i.oneOfType([i.func,i.object,i.bool])),i.func,i.object]),variant:i.oneOfType([i.oneOf(["dot","standard"]),i.string])});const qE=Ne("MuiBox",["root"]),GE=Qs(),oe=wS({themeId:er,defaultTheme:GE,defaultClassName:qE.root,generateClassName:vh.generate});process.env.NODE_ENV!=="production"&&(oe.propTypes={children:i.node,component:i.elementType,sx:i.oneOfType([i.arrayOf(i.oneOfType([i.func,i.object,i.bool])),i.func,i.object])});const KE=wn(p.jsx("path",{d:"M6 10c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm12 0c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm-6 0c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2z"}),"MoreHoriz"),XE=te(lr,{name:"MuiBreadcrumbCollapsed"})(_e(({theme:e})=>({display:"flex",marginLeft:`calc(${e.spacing(1)} * 0.5)`,marginRight:`calc(${e.spacing(1)} * 0.5)`,...e.palette.mode==="light"?{backgroundColor:e.palette.grey[100],color:e.palette.grey[700]}:{backgroundColor:e.palette.grey[700],color:e.palette.grey[100]},borderRadius:2,"&:hover, &:focus":{...e.palette.mode==="light"?{backgroundColor:e.palette.grey[200]}:{backgroundColor:e.palette.grey[600]}},"&:active":{boxShadow:e.shadows[0],...e.palette.mode==="light"?{backgroundColor:Xc(e.palette.grey[200],.12)}:{backgroundColor:Xc(e.palette.grey[600],.12)}}}))),ZE=te(KE)({width:24,height:16});function rg(e){const{slots:t={},slotProps:n={},...r}=e,o=e;return p.jsx("li",{children:p.jsx(XE,{focusRipple:!0,...r,ownerState:o,children:p.jsx(ZE,{as:t.CollapsedIcon,ownerState:o,...n.collapsedIcon})})})}process.env.NODE_ENV!=="production"&&(rg.propTypes={slotProps:i.shape({collapsedIcon:i.oneOfType([i.func,i.object])}),slots:i.shape({CollapsedIcon:i.elementType}),sx:i.object});function JE(e){return Ae("MuiBreadcrumbs",e)}const QE=Ne("MuiBreadcrumbs",["root","ol","li","separator"]),eO=e=>{const{classes:t}=e;return $e({root:["root"],li:["li"],ol:["ol"],separator:["separator"]},JE,t)},tO=te(ut,{name:"MuiBreadcrumbs",slot:"Root",overridesResolver:(e,t)=>[{[`& .${QE.li}`]:t.li},t.root]})({}),nO=te("ol",{name:"MuiBreadcrumbs",slot:"Ol"})({display:"flex",flexWrap:"wrap",alignItems:"center",padding:0,margin:0,listStyle:"none"}),rO=te("li",{name:"MuiBreadcrumbs",slot:"Separator"})({display:"flex",userSelect:"none",marginLeft:8,marginRight:8});function oO(e,t,n,r){return e.reduce((o,s,a)=>(a<e.length-1?o=o.concat(s,p.jsx(rO,{"aria-hidden":!0,className:t,ownerState:r,children:n},`separator-${a}`)):o.push(s),o),[])}const og=I.forwardRef(function(t,n){const r=Fe({props:t,name:"MuiBreadcrumbs"}),{children:o,className:s,component:a="nav",slots:l={},slotProps:c={},expandText:d="Show path",itemsAfterCollapse:u=1,itemsBeforeCollapse:f=1,maxItems:h=8,separator:m="/",...g}=r,[y,b]=I.useState(!1),v={...r,component:a,expanded:y,expandText:d,itemsAfterCollapse:u,itemsBeforeCollapse:f,maxItems:h,separator:m},k=eO(v),S=po({elementType:l.CollapsedIcon,externalSlotProps:c.collapsedIcon,ownerState:v}),C=I.useRef(null),w=E=>{const M=()=>{b(!0);const j=C.current.querySelector("a[href],button,[tabindex]");j&&j.focus()};return f+u>=E.length?(process.env.NODE_ENV!=="production"&&console.error(["MUI: You have provided an invalid combination of props to the Breadcrumbs.",`itemsAfterCollapse={${u}} + itemsBeforeCollapse={${f}} >= maxItems={${h}}`].join(`
|
|
184
|
-
`)),E):[...E.slice(0,f),p.jsx(rg,{"aria-label":d,slots:{CollapsedIcon:l.CollapsedIcon},slotProps:{collapsedIcon:S},onClick:M},"ellipsis"),...E.slice(E.length-u,E.length)]},T=I.Children.toArray(o).filter(E=>(process.env.NODE_ENV!=="production"&&kr.isFragment(E)&&console.error(["MUI: The Breadcrumbs component doesn't accept a Fragment as a child.","Consider providing an array instead."].join(`
|
|
185
|
-
`)),I.isValidElement(E))).map((E,M)=>p.jsx("li",{className:k.li,children:E},`child-${M}`));return p.jsx(tO,{ref:n,component:a,color:"textSecondary",className:me(k.root,s),ownerState:v,...g,children:p.jsx(nO,{className:k.ol,ref:C,ownerState:v,children:oO(y||h&&T.length<=h?T:w(T),k.separator,m,v)})})});process.env.NODE_ENV!=="production"&&(og.propTypes={children:i.node,classes:i.object,className:i.string,component:i.elementType,expandText:i.string,itemsAfterCollapse:ar,itemsBeforeCollapse:ar,maxItems:ar,separator:i.node,slotProps:i.shape({collapsedIcon:i.oneOfType([i.func,i.object])}),slots:i.shape({CollapsedIcon:i.elementType}),sx:i.oneOfType([i.arrayOf(i.oneOfType([i.func,i.object,i.bool])),i.func,i.object])});function sO(e){return Ae("MuiButton",e)}const mo=Ne("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","loading","loadingWrapper","loadingIconPlaceholder","loadingIndicator","loadingPositionCenter","loadingPositionStart","loadingPositionEnd"]),sg=I.createContext({});process.env.NODE_ENV!=="production"&&(sg.displayName="ButtonGroupContext");const ig=I.createContext(void 0);process.env.NODE_ENV!=="production"&&(ig.displayName="ButtonGroupButtonContext");const iO=e=>{const{color:t,disableElevation:n,fullWidth:r,size:o,variant:s,loading:a,loadingPosition:l,classes:c}=e,d={root:["root",a&&"loading",s,`${s}${Q(t)}`,`size${Q(o)}`,`${s}Size${Q(o)}`,`color${Q(t)}`,n&&"disableElevation",r&&"fullWidth",a&&`loadingPosition${Q(l)}`],startIcon:["icon","startIcon",`iconSize${Q(o)}`],endIcon:["icon","endIcon",`iconSize${Q(o)}`],loadingIndicator:["loadingIndicator"],loadingWrapper:["loadingWrapper"]},u=$e(d,sO,c);return{...c,...u}},ag=[{props:{size:"small"},style:{"& > *:nth-of-type(1)":{fontSize:18}}},{props:{size:"medium"},style:{"& > *:nth-of-type(1)":{fontSize:20}}},{props:{size:"large"},style:{"& > *:nth-of-type(1)":{fontSize:22}}}],aO=te(lr,{shouldForwardProp:e=>xn(e)||e==="classes",name:"MuiButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`${n.variant}${Q(n.color)}`],t[`size${Q(n.size)}`],t[`${n.variant}Size${Q(n.size)}`],n.color==="inherit"&&t.colorInherit,n.disableElevation&&t.disableElevation,n.fullWidth&&t.fullWidth,n.loading&&t.loading]}})(_e(({theme:e})=>{const t=e.palette.mode==="light"?e.palette.grey[300]:e.palette.grey[800],n=e.palette.mode==="light"?e.palette.grey.A100:e.palette.grey[700];return{...e.typography.button,minWidth:64,padding:"6px 16px",border:0,borderRadius:(e.vars||e).shape.borderRadius,transition:e.transitions.create(["background-color","box-shadow","border-color","color"],{duration:e.transitions.duration.short}),"&:hover":{textDecoration:"none"},[`&.${mo.disabled}`]:{color:(e.vars||e).palette.action.disabled},variants:[{props:{variant:"contained"},style:{color:"var(--variant-containedColor)",backgroundColor:"var(--variant-containedBg)",boxShadow:(e.vars||e).shadows[2],"&:hover":{boxShadow:(e.vars||e).shadows[4],"@media (hover: none)":{boxShadow:(e.vars||e).shadows[2]}},"&:active":{boxShadow:(e.vars||e).shadows[8]},[`&.${mo.focusVisible}`]:{boxShadow:(e.vars||e).shadows[6]},[`&.${mo.disabled}`]:{color:(e.vars||e).palette.action.disabled,boxShadow:(e.vars||e).shadows[0],backgroundColor:(e.vars||e).palette.action.disabledBackground}}},{props:{variant:"outlined"},style:{padding:"5px 15px",border:"1px solid currentColor",borderColor:"var(--variant-outlinedBorder, currentColor)",backgroundColor:"var(--variant-outlinedBg)",color:"var(--variant-outlinedColor)",[`&.${mo.disabled}`]:{border:`1px solid ${(e.vars||e).palette.action.disabledBackground}`}}},{props:{variant:"text"},style:{padding:"6px 8px",color:"var(--variant-textColor)",backgroundColor:"var(--variant-textBg)"}},...Object.entries(e.palette).filter(Ft()).map(([r])=>({props:{color:r},style:{"--variant-textColor":(e.vars||e).palette[r].main,"--variant-outlinedColor":(e.vars||e).palette[r].main,"--variant-outlinedBorder":e.alpha((e.vars||e).palette[r].main,.5),"--variant-containedColor":(e.vars||e).palette[r].contrastText,"--variant-containedBg":(e.vars||e).palette[r].main,"@media (hover: hover)":{"&:hover":{"--variant-containedBg":(e.vars||e).palette[r].dark,"--variant-textBg":e.alpha((e.vars||e).palette[r].main,(e.vars||e).palette.action.hoverOpacity),"--variant-outlinedBorder":(e.vars||e).palette[r].main,"--variant-outlinedBg":e.alpha((e.vars||e).palette[r].main,(e.vars||e).palette.action.hoverOpacity)}}}})),{props:{color:"inherit"},style:{color:"inherit",borderColor:"currentColor","--variant-containedBg":e.vars?e.vars.palette.Button.inheritContainedBg:t,"@media (hover: hover)":{"&:hover":{"--variant-containedBg":e.vars?e.vars.palette.Button.inheritContainedHoverBg:n,"--variant-textBg":e.alpha((e.vars||e).palette.text.primary,(e.vars||e).palette.action.hoverOpacity),"--variant-outlinedBg":e.alpha((e.vars||e).palette.text.primary,(e.vars||e).palette.action.hoverOpacity)}}}},{props:{size:"small",variant:"text"},style:{padding:"4px 5px",fontSize:e.typography.pxToRem(13)}},{props:{size:"large",variant:"text"},style:{padding:"8px 11px",fontSize:e.typography.pxToRem(15)}},{props:{size:"small",variant:"outlined"},style:{padding:"3px 9px",fontSize:e.typography.pxToRem(13)}},{props:{size:"large",variant:"outlined"},style:{padding:"7px 21px",fontSize:e.typography.pxToRem(15)}},{props:{size:"small",variant:"contained"},style:{padding:"4px 10px",fontSize:e.typography.pxToRem(13)}},{props:{size:"large",variant:"contained"},style:{padding:"8px 22px",fontSize:e.typography.pxToRem(15)}},{props:{disableElevation:!0},style:{boxShadow:"none","&:hover":{boxShadow:"none"},[`&.${mo.focusVisible}`]:{boxShadow:"none"},"&:active":{boxShadow:"none"},[`&.${mo.disabled}`]:{boxShadow:"none"}}},{props:{fullWidth:!0},style:{width:"100%"}},{props:{loadingPosition:"center"},style:{transition:e.transitions.create(["background-color","box-shadow","border-color"],{duration:e.transitions.duration.short}),[`&.${mo.loading}`]:{color:"transparent"}}}]}})),lO=te("span",{name:"MuiButton",slot:"StartIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.startIcon,n.loading&&t.startIconLoadingStart,t[`iconSize${Q(n.size)}`]]}})(({theme:e})=>({display:"inherit",marginRight:8,marginLeft:-4,variants:[{props:{size:"small"},style:{marginLeft:-2}},{props:{loadingPosition:"start",loading:!0},style:{transition:e.transitions.create(["opacity"],{duration:e.transitions.duration.short}),opacity:0}},{props:{loadingPosition:"start",loading:!0,fullWidth:!0},style:{marginRight:-8}},...ag]})),cO=te("span",{name:"MuiButton",slot:"EndIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.endIcon,n.loading&&t.endIconLoadingEnd,t[`iconSize${Q(n.size)}`]]}})(({theme:e})=>({display:"inherit",marginRight:-4,marginLeft:8,variants:[{props:{size:"small"},style:{marginRight:-2}},{props:{loadingPosition:"end",loading:!0},style:{transition:e.transitions.create(["opacity"],{duration:e.transitions.duration.short}),opacity:0}},{props:{loadingPosition:"end",loading:!0,fullWidth:!0},style:{marginLeft:-8}},...ag]})),dO=te("span",{name:"MuiButton",slot:"LoadingIndicator"})(({theme:e})=>({display:"none",position:"absolute",visibility:"visible",variants:[{props:{loading:!0},style:{display:"flex"}},{props:{loadingPosition:"start"},style:{left:14}},{props:{loadingPosition:"start",size:"small"},style:{left:10}},{props:{variant:"text",loadingPosition:"start"},style:{left:6}},{props:{loadingPosition:"center"},style:{left:"50%",transform:"translate(-50%)",color:(e.vars||e).palette.action.disabled}},{props:{loadingPosition:"end"},style:{right:14}},{props:{loadingPosition:"end",size:"small"},style:{right:10}},{props:{variant:"text",loadingPosition:"end"},style:{right:6}},{props:{loadingPosition:"start",fullWidth:!0},style:{position:"relative",left:-10}},{props:{loadingPosition:"end",fullWidth:!0},style:{position:"relative",right:-10}}]})),lg=te("span",{name:"MuiButton",slot:"LoadingIconPlaceholder"})({display:"inline-block",width:"1em",height:"1em"}),yl=I.forwardRef(function(t,n){const r=I.useContext(sg),o=I.useContext(ig),s=Ks(r,t),a=Fe({props:s,name:"MuiButton"}),{children:l,color:c="primary",component:d="button",className:u,disabled:f=!1,disableElevation:h=!1,disableFocusRipple:m=!1,endIcon:g,focusVisibleClassName:y,fullWidth:b=!1,id:v,loading:k=null,loadingIndicator:S,loadingPosition:C="center",size:w="medium",startIcon:T,type:E,variant:M="text",...j}=a,A=io(v),L=S??p.jsx(Yo,{"aria-labelledby":A,color:"inherit",size:16}),O={...a,color:c,component:d,disabled:f,disableElevation:h,disableFocusRipple:m,fullWidth:b,loading:k,loadingIndicator:L,loadingPosition:C,size:w,type:E,variant:M},N=iO(O),P=(T||k&&C==="start")&&p.jsx(lO,{className:N.startIcon,ownerState:O,children:T||p.jsx(lg,{className:N.loadingIconPlaceholder,ownerState:O})}),R=(g||k&&C==="end")&&p.jsx(cO,{className:N.endIcon,ownerState:O,children:g||p.jsx(lg,{className:N.loadingIconPlaceholder,ownerState:O})}),$=o||"",_=typeof k=="boolean"?p.jsx("span",{className:N.loadingWrapper,style:{display:"contents"},children:k&&p.jsx(dO,{className:N.loadingIndicator,ownerState:O,children:L})}):null;return p.jsxs(aO,{ownerState:O,className:me(r.className,N.root,u,$),component:d,disabled:f||k,focusRipple:!m,focusVisibleClassName:me(N.focusVisible,y),ref:n,type:E,id:k?A:v,...j,classes:N,children:[P,C!=="end"&&_,l,C==="end"&&_,R]})});process.env.NODE_ENV!=="production"&&(yl.propTypes={children:i.node,classes:i.object,className:i.string,color:i.oneOfType([i.oneOf(["inherit","primary","secondary","success","error","info","warning"]),i.string]),component:i.elementType,disabled:i.bool,disableElevation:i.bool,disableFocusRipple:i.bool,disableRipple:i.bool,endIcon:i.node,focusVisibleClassName:i.string,fullWidth:i.bool,href:i.string,id:i.string,loading:i.bool,loadingIndicator:i.node,loadingPosition:i.oneOf(["center","end","start"]),size:i.oneOfType([i.oneOf(["small","medium","large"]),i.string]),startIcon:i.node,sx:i.oneOfType([i.arrayOf(i.oneOfType([i.func,i.object,i.bool])),i.func,i.object]),type:i.oneOfType([i.oneOf(["button","reset","submit"]),i.string]),variant:i.oneOfType([i.oneOf(["contained","outlined","text"]),i.string])});function uO(e){return Ae("PrivateSwitchBase",e)}Ne("PrivateSwitchBase",["root","checked","disabled","input","edgeStart","edgeEnd"]);const fO=e=>{const{classes:t,checked:n,disabled:r,edge:o}=e,s={root:["root",n&&"checked",r&&"disabled",o&&`edge${Q(o)}`],input:["input"]};return $e(s,uO,t)},pO=te(lr,{name:"MuiSwitchBase"})({padding:9,borderRadius:"50%",variants:[{props:{edge:"start",size:"small"},style:{marginLeft:-3}},{props:({edge:e,ownerState:t})=>e==="start"&&t.size!=="small",style:{marginLeft:-12}},{props:{edge:"end",size:"small"},style:{marginRight:-3}},{props:({edge:e,ownerState:t})=>e==="end"&&t.size!=="small",style:{marginRight:-12}}]}),hO=te("input",{name:"MuiSwitchBase",shouldForwardProp:xn})({cursor:"inherit",position:"absolute",opacity:0,width:"100%",height:"100%",top:0,left:0,margin:0,padding:0,zIndex:1}),jd=I.forwardRef(function(t,n){const{autoFocus:r,checked:o,checkedIcon:s,defaultChecked:a,disabled:l,disableFocusRipple:c=!1,edge:d=!1,icon:u,id:f,inputProps:h,inputRef:m,name:g,onBlur:y,onChange:b,onFocus:v,readOnly:k,required:S=!1,tabIndex:C,type:w,value:T,slots:E={},slotProps:M={},...j}=t,[A,L]=ti({controlled:o,default:!!a,name:"SwitchBase",state:"checked"}),O=Ur(),N=G=>{v&&v(G),O&&O.onFocus&&O.onFocus(G)},P=G=>{y&&y(G),O&&O.onBlur&&O.onBlur(G)},R=G=>{if(G.nativeEvent.defaultPrevented||k)return;const Y=G.target.checked;L(Y),b&&b(G,Y)};let $=l;O&&typeof $>"u"&&($=O.disabled);const _=w==="checkbox"||w==="radio",U={...t,checked:A,disabled:$,disableFocusRipple:c,edge:d},H=fO(U),B={slots:E,slotProps:{input:h,...M}},[D,z]=Ye("root",{ref:n,elementType:pO,className:H.root,shouldForwardComponentProp:!0,externalForwardedProps:{...B,component:"span",...j},getSlotProps:G=>({...G,onFocus:Y=>{G.onFocus?.(Y),N(Y)},onBlur:Y=>{G.onBlur?.(Y),P(Y)}}),ownerState:U,additionalProps:{centerRipple:!0,focusRipple:!c,disabled:$,role:void 0,tabIndex:null}}),[V,X]=Ye("input",{ref:m,elementType:hO,className:H.input,externalForwardedProps:B,getSlotProps:G=>({...G,onChange:Y=>{G.onChange?.(Y),R(Y)}}),ownerState:U,additionalProps:{autoFocus:r,checked:o,defaultChecked:a,disabled:$,id:_?f:void 0,name:g,readOnly:k,required:S,tabIndex:C,type:w,...w==="checkbox"&&T===void 0?{}:{value:T}}});return p.jsxs(D,{...z,children:[p.jsx(V,{...X}),A?s:u]})});process.env.NODE_ENV!=="production"&&(jd.propTypes={autoFocus:i.bool,checked:i.bool,checkedIcon:i.node.isRequired,classes:i.object,className:i.string,defaultChecked:i.bool,disabled:i.bool,disableFocusRipple:i.bool,edge:i.oneOf(["end","start",!1]),icon:i.node.isRequired,id:i.string,inputProps:i.object,inputRef:pn,name:i.string,onBlur:i.func,onChange:i.func,onFocus:i.func,readOnly:i.bool,required:i.bool,slotProps:i.shape({input:i.oneOfType([i.func,i.object]),root:i.oneOfType([i.func,i.object])}),slots:i.shape({input:i.elementType,root:i.elementType}),sx:i.object,tabIndex:i.oneOfType([i.number,i.string]),type:i.string.isRequired,value:i.any});const mO=wn(p.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"),gO=wn(p.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"),yO=wn(p.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 bO(e){return Ae("MuiCheckbox",e)}const Id=Ne("MuiCheckbox",["root","checked","disabled","indeterminate","colorPrimary","colorSecondary","sizeSmall","sizeMedium"]),vO=e=>{const{classes:t,indeterminate:n,color:r,size:o}=e,s={root:["root",n&&"indeterminate",`color${Q(r)}`,`size${Q(o)}`]},a=$e(s,bO,t);return{...t,...a}},xO=te(jd,{shouldForwardProp:e=>xn(e)||e==="classes",name:"MuiCheckbox",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.indeterminate&&t.indeterminate,t[`size${Q(n.size)}`],n.color!=="default"&&t[`color${Q(n.color)}`]]}})(_e(({theme:e})=>({color:(e.vars||e).palette.text.secondary,variants:[{props:{color:"default",disableRipple:!1},style:{"&:hover":{backgroundColor:e.alpha((e.vars||e).palette.action.active,(e.vars||e).palette.action.hoverOpacity)}}},...Object.entries(e.palette).filter(Ft()).map(([t])=>({props:{color:t,disableRipple:!1},style:{"&:hover":{backgroundColor:e.alpha((e.vars||e).palette[t].main,(e.vars||e).palette.action.hoverOpacity)}}})),...Object.entries(e.palette).filter(Ft()).map(([t])=>({props:{color:t},style:{[`&.${Id.checked}, &.${Id.indeterminate}`]:{color:(e.vars||e).palette[t].main},[`&.${Id.disabled}`]:{color:(e.vars||e).palette.action.disabled}}})),{props:{disableRipple:!1},style:{"&:hover":{"@media (hover: none)":{backgroundColor:"transparent"}}}}]}))),wO=p.jsx(gO,{}),SO=p.jsx(mO,{}),CO=p.jsx(yO,{}),cg=I.forwardRef(function(t,n){const r=Fe({props:t,name:"MuiCheckbox"}),{checkedIcon:o=wO,color:s="primary",icon:a=SO,indeterminate:l=!1,indeterminateIcon:c=CO,inputProps:d,size:u="medium",disableRipple:f=!1,className:h,slots:m={},slotProps:g={},...y}=r,b=l?c:a,v=l?c:o,k={...r,disableRipple:f,color:s,indeterminate:l,size:u},S=vO(k),C=g.input??d,[w,T]=Ye("root",{ref:n,elementType:xO,className:me(S.root,h),shouldForwardComponentProp:!0,externalForwardedProps:{slots:m,slotProps:g,...y},ownerState:k,additionalProps:{type:"checkbox",icon:I.cloneElement(b,{fontSize:b.props.fontSize??u}),checkedIcon:I.cloneElement(v,{fontSize:v.props.fontSize??u}),disableRipple:f,slots:m,slotProps:{input:dm(typeof C=="function"?C(k):C,{"data-indeterminate":l})}}});return p.jsx(w,{...T,classes:S})});process.env.NODE_ENV!=="production"&&(cg.propTypes={checked:i.bool,checkedIcon:i.node,classes:i.object,className:i.string,color:i.oneOfType([i.oneOf(["default","primary","secondary","error","info","success","warning"]),i.string]),defaultChecked:i.bool,disabled:i.bool,disableRipple:i.bool,icon:i.node,id:i.string,indeterminate:i.bool,indeterminateIcon:i.node,inputProps:i.object,onChange:i.func,required:i.bool,size:i.oneOfType([i.oneOf(["medium","small"]),i.string]),slotProps:i.shape({input:i.oneOfType([i.func,i.object]),root:i.oneOfType([i.func,i.object])}),slots:i.shape({input:i.elementType,root:i.elementType}),sx:i.oneOfType([i.arrayOf(i.oneOfType([i.func,i.object,i.bool])),i.func,i.object]),value:i.any});function dg(e=window){const t=e.document.documentElement.clientWidth;return e.innerWidth-t}function TO(e){const t=fn(e);return t.body===e?Hn(e).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}function gi(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function ug(e){return parseFloat(Hn(e).getComputedStyle(e).paddingRight)||0}function kO(e){const n=["TEMPLATE","SCRIPT","STYLE","LINK","MAP","META","NOSCRIPT","PICTURE","COL","COLGROUP","PARAM","SLOT","SOURCE","TRACK"].includes(e.tagName),r=e.tagName==="INPUT"&&e.getAttribute("type")==="hidden";return n||r}function fg(e,t,n,r,o){const s=[t,n,...r];[].forEach.call(e.children,a=>{const l=!s.includes(a),c=!kO(a);l&&c&&gi(a,o)})}function Dd(e,t){let n=-1;return e.some((r,o)=>t(r)?(n=o,!0):!1),n}function EO(e,t){const n=[],r=e.container;if(!t.disableScrollLock){if(TO(r)){const a=dg(Hn(r));n.push({value:r.style.paddingRight,property:"padding-right",el:r}),r.style.paddingRight=`${ug(r)+a}px`;const l=fn(r).querySelectorAll(".mui-fixed");[].forEach.call(l,c=>{n.push({value:c.style.paddingRight,property:"padding-right",el:c}),c.style.paddingRight=`${ug(c)+a}px`})}let s;if(r.parentNode instanceof DocumentFragment)s=fn(r).body;else{const a=r.parentElement,l=Hn(r);s=a?.nodeName==="HTML"&&l.getComputedStyle(a).overflowY==="scroll"?a:r}n.push({value:s.style.overflow,property:"overflow",el:s},{value:s.style.overflowX,property:"overflow-x",el:s},{value:s.style.overflowY,property:"overflow-y",el:s}),s.style.overflow="hidden"}return()=>{n.forEach(({value:s,el:a,property:l})=>{s?a.style.setProperty(l,s):a.style.removeProperty(l)})}}function OO(e){const t=[];return[].forEach.call(e.children,n=>{n.getAttribute("aria-hidden")==="true"&&t.push(n)}),t}class MO{constructor(){this.modals=[],this.containers=[]}add(t,n){let r=this.modals.indexOf(t);if(r!==-1)return r;r=this.modals.length,this.modals.push(t),t.modalRef&&gi(t.modalRef,!1);const o=OO(n);fg(n,t.mount,t.modalRef,o,!0);const s=Dd(this.containers,a=>a.container===n);return s!==-1?(this.containers[s].modals.push(t),r):(this.containers.push({modals:[t],container:n,restore:null,hiddenSiblings:o}),r)}mount(t,n){const r=Dd(this.containers,s=>s.modals.includes(t)),o=this.containers[r];o.restore||(o.restore=EO(o,n))}remove(t,n=!0){const r=this.modals.indexOf(t);if(r===-1)return r;const o=Dd(this.containers,a=>a.modals.includes(t)),s=this.containers[o];if(s.modals.splice(s.modals.indexOf(t),1),this.modals.splice(r,1),s.modals.length===0)s.restore&&s.restore(),t.modalRef&&gi(t.modalRef,n),fg(s.container,t.mount,t.modalRef,s.hiddenSiblings,!1),this.containers.splice(o,1);else{const a=s.modals[s.modals.length-1];a.modalRef&&gi(a.modalRef,!1)}return r}isTopModal(t){return this.modals.length>0&&this.modals[this.modals.length-1]===t}}function ts(e){let t=e.activeElement;for(;t?.shadowRoot?.activeElement!=null;)t=t.shadowRoot.activeElement;return t}const PO=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function jO(e){const t=parseInt(e.getAttribute("tabindex")||"",10);return Number.isNaN(t)?e.contentEditable==="true"||(e.nodeName==="AUDIO"||e.nodeName==="VIDEO"||e.nodeName==="DETAILS")&&e.getAttribute("tabindex")===null?0:e.tabIndex:t}function IO(e){if(e.tagName!=="INPUT"||e.type!=="radio"||!e.name)return!1;const t=r=>e.ownerDocument.querySelector(`input[type="radio"]${r}`);let n=t(`[name="${e.name}"]:checked`);return n||(n=t(`[name="${e.name}"]`)),n!==e}function DO(e){return!(e.disabled||e.tagName==="INPUT"&&e.type==="hidden"||IO(e))}function AO(e){const t=[],n=[];return Array.from(e.querySelectorAll(PO)).forEach((r,o)=>{const s=jO(r);s===-1||!DO(r)||(s===0?t.push(r):n.push({documentOrder:o,tabIndex:s,node:r}))}),n.sort((r,o)=>r.tabIndex===o.tabIndex?r.documentOrder-o.documentOrder:r.tabIndex-o.tabIndex).map(r=>r.node).concat(t)}function RO(){return!0}function bl(e){const{children:t,disableAutoFocus:n=!1,disableEnforceFocus:r=!1,disableRestoreFocus:o=!1,getTabbable:s=AO,isEnabled:a=RO,open:l}=e,c=I.useRef(!1),d=I.useRef(null),u=I.useRef(null),f=I.useRef(null),h=I.useRef(null),m=I.useRef(!1),g=I.useRef(null),y=Ut(Zo(t),g),b=I.useRef(null);I.useEffect(()=>{!l||!g.current||(m.current=!n)},[n,l]),I.useEffect(()=>{if(!l||!g.current)return;const S=fn(g.current),C=ts(S);return g.current.contains(C)||(g.current.hasAttribute("tabIndex")||(process.env.NODE_ENV!=="production"&&console.error(["MUI: The modal content node does not accept focus.",'For the benefit of assistive technologies, the tabIndex of the node is being set to "-1".'].join(`
|
|
186
|
-
`)),g.current.setAttribute("tabIndex","-1")),m.current&&g.current.focus()),()=>{o||(f.current&&f.current.focus&&(c.current=!0,f.current.focus()),f.current=null)}},[l]),I.useEffect(()=>{if(!l||!g.current)return;const S=fn(g.current),C=E=>{if(b.current=E,r||!a()||E.key!=="Tab")return;ts(S)===g.current&&E.shiftKey&&(c.current=!0,u.current&&u.current.focus())},w=()=>{const E=g.current;if(E===null)return;const M=ts(S);if(!S.hasFocus()||!a()||c.current){c.current=!1;return}if(E.contains(M)||r&&M!==d.current&&M!==u.current)return;if(M!==h.current)h.current=null;else if(h.current!==null)return;if(!m.current)return;let j=[];if((M===d.current||M===u.current)&&(j=s(g.current)),j.length>0){const A=!!(b.current?.shiftKey&&b.current?.key==="Tab"),L=j[0],O=j[j.length-1];typeof L!="string"&&typeof O!="string"&&(A?O.focus():L.focus())}else E.focus()};S.addEventListener("focusin",w),S.addEventListener("keydown",C,!0);const T=setInterval(()=>{const E=ts(S);E&&E.tagName==="BODY"&&w()},50);return()=>{clearInterval(T),S.removeEventListener("focusin",w),S.removeEventListener("keydown",C,!0)}},[n,r,o,a,l,s]);const v=S=>{f.current===null&&(f.current=S.relatedTarget),m.current=!0,h.current=S.target;const C=t.props.onFocus;C&&C(S)},k=S=>{f.current===null&&(f.current=S.relatedTarget),m.current=!0};return p.jsxs(I.Fragment,{children:[p.jsx("div",{tabIndex:l?0:-1,onFocus:k,ref:d,"data-testid":"sentinelStart"}),I.cloneElement(t,{ref:y,onFocus:v}),p.jsx("div",{tabIndex:l?0:-1,onFocus:k,ref:u,"data-testid":"sentinelEnd"})]})}process.env.NODE_ENV!=="production"&&(bl.propTypes={children:es,disableAutoFocus:i.bool,disableEnforceFocus:i.bool,disableRestoreFocus:i.bool,getTabbable:i.func,isEnabled:i.func,open:i.bool.isRequired}),process.env.NODE_ENV!=="production"&&(bl.propTypes=Va(bl.propTypes));function NO(e){return typeof e=="function"?e():e}function $O(e){return e?e.props.hasOwnProperty("in"):!1}const pg=()=>{},vl=new MO;function LO(e){const{container:t,disableEscapeKeyDown:n=!1,disableScrollLock:r=!1,closeAfterTransition:o=!1,onTransitionEnter:s,onTransitionExited:a,children:l,onClose:c,open:d,rootRef:u}=e,f=I.useRef({}),h=I.useRef(null),m=I.useRef(null),g=Ut(m,u),[y,b]=I.useState(!d),v=$O(l);let k=!0;(e["aria-hidden"]==="false"||e["aria-hidden"]===!1)&&(k=!1);const S=()=>fn(h.current),C=()=>(f.current.modalRef=m.current,f.current.mount=h.current,f.current),w=()=>{vl.mount(C(),{disableScrollLock:r}),m.current&&(m.current.scrollTop=0)},T=Mn(()=>{const R=NO(t)||S().body;vl.add(C(),R),m.current&&w()}),E=()=>vl.isTopModal(C()),M=Mn(R=>{h.current=R,R&&(d&&E()?w():m.current&&gi(m.current,k))}),j=I.useCallback(()=>{vl.remove(C(),k)},[k]);I.useEffect(()=>()=>{j()},[j]),I.useEffect(()=>{d?T():(!v||!o)&&j()},[d,j,v,o,T]);const A=R=>$=>{R.onKeyDown?.($),!($.key!=="Escape"||$.which===229||!E())&&(n||($.stopPropagation(),c&&c($,"escapeKeyDown")))},L=R=>$=>{R.onClick?.($),$.target===$.currentTarget&&c&&c($,"backdropClick")};return{getRootProps:(R={})=>{const $=vm(e);delete $.onTransitionEnter,delete $.onTransitionExited;const _={...$,...R};return{role:"presentation",..._,onKeyDown:A(_),ref:g}},getBackdropProps:(R={})=>{const $=R;return{"aria-hidden":!0,...$,onClick:L($),open:d}},getTransitionProps:()=>{const R=()=>{b(!1),s&&s()},$=()=>{b(!0),a&&a(),o&&j()};return{onEnter:im(R,l?.props.onEnter??pg),onExited:im($,l?.props.onExited??pg)}},rootRef:g,portalRef:M,isTopModal:E,exited:y,hasTransition:v}}function BO(e){return Ae("MuiModal",e)}Ne("MuiModal",["root","hidden","backdrop"]);const _O=e=>{const{open:t,exited:n,classes:r}=e;return $e({root:["root",!t&&n&&"hidden"],backdrop:["backdrop"]},BO,r)},FO=te("div",{name:"MuiModal",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.open&&n.exited&&t.hidden]}})(_e(({theme:e})=>({position:"fixed",zIndex:(e.vars||e).zIndex.modal,right:0,bottom:0,top:0,left:0,variants:[{props:({ownerState:t})=>!t.open&&t.exited,style:{visibility:"hidden"}}]}))),WO=te(gl,{name:"MuiModal",slot:"Backdrop"})({zIndex:-1}),Ad=I.forwardRef(function(t,n){const r=Fe({name:"MuiModal",props:t}),{BackdropComponent:o=WO,BackdropProps:s,classes:a,className:l,closeAfterTransition:c=!1,children:d,container:u,component:f,components:h={},componentsProps:m={},disableAutoFocus:g=!1,disableEnforceFocus:y=!1,disableEscapeKeyDown:b=!1,disablePortal:v=!1,disableRestoreFocus:k=!1,disableScrollLock:S=!1,hideBackdrop:C=!1,keepMounted:w=!1,onClose:T,onTransitionEnter:E,onTransitionExited:M,open:j,slotProps:A={},slots:L={},theme:O,...N}=r,P={...r,closeAfterTransition:c,disableAutoFocus:g,disableEnforceFocus:y,disableEscapeKeyDown:b,disablePortal:v,disableRestoreFocus:k,disableScrollLock:S,hideBackdrop:C,keepMounted:w},{getRootProps:R,getBackdropProps:$,getTransitionProps:_,portalRef:U,isTopModal:H,exited:B,hasTransition:D}=LO({...P,rootRef:n}),z={...P,exited:B},V=_O(z),X={};if(d.props.tabIndex===void 0&&(X.tabIndex="-1"),D){const{onEnter:W,onExited:ee}=_();X.onEnter=W,X.onExited=ee}const G={slots:{root:h.Root,backdrop:h.Backdrop,...L},slotProps:{...m,...A}},[Y,K]=Ye("root",{ref:n,elementType:FO,externalForwardedProps:{...G,...N,component:f},getSlotProps:R,ownerState:z,className:me(l,V?.root,!z.open&&z.exited&&V?.hidden)}),[ae,le]=Ye("backdrop",{ref:s?.ref,elementType:o,externalForwardedProps:G,shouldForwardComponentProp:!0,additionalProps:s,getSlotProps:W=>$({...W,onClick:ee=>{W?.onClick&&W.onClick(ee)}}),className:me(s?.className,V?.backdrop),ownerState:z});return!w&&!j&&(!D||B)?null:p.jsx(ui,{ref:U,container:u,disablePortal:v,children:p.jsxs(Y,{...K,children:[!C&&o?p.jsx(ae,{...le}):null,p.jsx(bl,{disableEnforceFocus:y,disableAutoFocus:g,disableRestoreFocus:k,isEnabled:H,open:j,children:I.cloneElement(d,X)})]})})});process.env.NODE_ENV!=="production"&&(Ad.propTypes={BackdropComponent:i.elementType,BackdropProps:i.object,children:es.isRequired,classes:i.object,className:i.string,closeAfterTransition:i.bool,component:i.elementType,components:i.shape({Backdrop:i.elementType,Root:i.elementType}),componentsProps:i.shape({backdrop:i.oneOfType([i.func,i.object]),root:i.oneOfType([i.func,i.object])}),container:i.oneOfType([Mr,i.func]),disableAutoFocus:i.bool,disableEnforceFocus:i.bool,disableEscapeKeyDown:i.bool,disablePortal:i.bool,disableRestoreFocus:i.bool,disableScrollLock:i.bool,hideBackdrop:i.bool,keepMounted:i.bool,onClose:i.func,onTransitionEnter:i.func,onTransitionExited:i.func,open:i.bool.isRequired,slotProps:i.shape({backdrop:i.oneOfType([i.func,i.object]),root:i.oneOfType([i.func,i.object])}),slots:i.shape({backdrop:i.elementType,root:i.elementType}),sx:i.oneOfType([i.arrayOf(i.oneOfType([i.func,i.object,i.bool])),i.func,i.object])});function zO(e){return Ae("MuiDialog",e)}const Rd=Ne("MuiDialog",["root","backdrop","scrollPaper","scrollBody","container","paper","paperScrollPaper","paperScrollBody","paperWidthFalse","paperWidthXs","paperWidthSm","paperWidthMd","paperWidthLg","paperWidthXl","paperFullWidth","paperFullScreen"]),hg=I.createContext({});process.env.NODE_ENV!=="production"&&(hg.displayName="DialogContext");const VO=te(gl,{name:"MuiDialog",slot:"Backdrop"})({zIndex:-1}),HO=e=>{const{classes:t,scroll:n,maxWidth:r,fullWidth:o,fullScreen:s}=e,a={root:["root"],backdrop:["backdrop"],container:["container",`scroll${Q(n)}`],paper:["paper",`paperScroll${Q(n)}`,`paperWidth${Q(String(r))}`,o&&"paperFullWidth",s&&"paperFullScreen"]};return $e(a,zO,t)},UO=te(Ad,{name:"MuiDialog",slot:"Root"})({"@media print":{position:"absolute !important"}}),YO=te("div",{name:"MuiDialog",slot:"Container",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.container,t[`scroll${Q(n.scroll)}`]]}})({height:"100%","@media print":{height:"auto"},outline:0,variants:[{props:{scroll:"paper"},style:{display:"flex",justifyContent:"center",alignItems:"center"}},{props:{scroll:"body"},style:{overflowY:"auto",overflowX:"hidden",textAlign:"center","&::after":{content:'""',display:"inline-block",verticalAlign:"middle",height:"100%",width:"0"}}}]}),qO=te(ri,{name:"MuiDialog",slot:"Paper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.paper,t[`scrollPaper${Q(n.scroll)}`],t[`paperWidth${Q(String(n.maxWidth))}`],n.fullWidth&&t.paperFullWidth,n.fullScreen&&t.paperFullScreen]}})(_e(({theme:e})=>({margin:32,position:"relative",overflowY:"auto","@media print":{overflowY:"visible",boxShadow:"none"},variants:[{props:{scroll:"paper"},style:{display:"flex",flexDirection:"column",maxHeight:"calc(100% - 64px)"}},{props:{scroll:"body"},style:{display:"inline-block",verticalAlign:"middle",textAlign:"initial"}},{props:({ownerState:t})=>!t.maxWidth,style:{maxWidth:"calc(100% - 64px)"}},{props:{maxWidth:"xs"},style:{maxWidth:e.breakpoints.unit==="px"?Math.max(e.breakpoints.values.xs,444):`max(${e.breakpoints.values.xs}${e.breakpoints.unit}, 444px)`,[`&.${Rd.paperScrollBody}`]:{[e.breakpoints.down(Math.max(e.breakpoints.values.xs,444)+64)]:{maxWidth:"calc(100% - 64px)"}}}},...Object.keys(e.breakpoints.values).filter(t=>t!=="xs").map(t=>({props:{maxWidth:t},style:{maxWidth:`${e.breakpoints.values[t]}${e.breakpoints.unit}`,[`&.${Rd.paperScrollBody}`]:{[e.breakpoints.down(e.breakpoints.values[t]+64)]:{maxWidth:"calc(100% - 64px)"}}}})),{props:({ownerState:t})=>t.fullWidth,style:{width:"calc(100% - 64px)"}},{props:({ownerState:t})=>t.fullScreen,style:{margin:0,width:"100%",maxWidth:"100%",height:"100%",maxHeight:"none",borderRadius:0,[`&.${Rd.paperScrollBody}`]:{margin:0,maxWidth:"100%"}}}]}))),Nd=I.forwardRef(function(t,n){const r=Fe({props:t,name:"MuiDialog"}),o=mt(),s={enter:o.transitions.duration.enteringScreen,exit:o.transitions.duration.leavingScreen},{"aria-describedby":a,"aria-labelledby":l,"aria-modal":c=!0,BackdropComponent:d,BackdropProps:u,children:f,className:h,disableEscapeKeyDown:m=!1,fullScreen:g=!1,fullWidth:y=!1,maxWidth:b="sm",onClick:v,onClose:k,open:S,PaperComponent:C=ri,PaperProps:w={},scroll:T="paper",slots:E={},slotProps:M={},TransitionComponent:j=mi,transitionDuration:A=s,TransitionProps:L,...O}=r,N={...r,disableEscapeKeyDown:m,fullScreen:g,fullWidth:y,maxWidth:b,scroll:T},P=HO(N),R=I.useRef(),$=fe=>{R.current=fe.target===fe.currentTarget},_=fe=>{v&&v(fe),R.current&&(R.current=null,k&&k(fe,"backdropClick"))},U=io(l),H=I.useMemo(()=>({titleId:U}),[U]),B={transition:j,...E},D={transition:L,paper:w,backdrop:u,...M},z={slots:B,slotProps:D},[V,X]=Ye("root",{elementType:UO,shouldForwardComponentProp:!0,externalForwardedProps:z,ownerState:N,className:me(P.root,h),ref:n}),[G,Y]=Ye("backdrop",{elementType:VO,shouldForwardComponentProp:!0,externalForwardedProps:z,ownerState:N,className:P.backdrop}),[K,ae]=Ye("paper",{elementType:qO,shouldForwardComponentProp:!0,externalForwardedProps:z,ownerState:N,className:me(P.paper,w.className)}),[le,W]=Ye("container",{elementType:YO,externalForwardedProps:z,ownerState:N,className:P.container}),[ee,F]=Ye("transition",{elementType:mi,externalForwardedProps:z,ownerState:N,additionalProps:{appear:!0,in:S,timeout:A,role:"presentation"}});return p.jsx(V,{closeAfterTransition:!0,slots:{backdrop:G},slotProps:{backdrop:{transitionDuration:A,as:d,...Y}},disableEscapeKeyDown:m,onClose:k,open:S,onClick:_,...X,...O,children:p.jsx(ee,{...F,children:p.jsx(le,{onMouseDown:$,...W,children:p.jsx(K,{as:C,elevation:24,role:"dialog","aria-describedby":a,"aria-labelledby":U,"aria-modal":c,...ae,children:p.jsx(hg.Provider,{value:H,children:f})})})})})});process.env.NODE_ENV!=="production"&&(Nd.propTypes={"aria-describedby":i.string,"aria-labelledby":i.string,"aria-modal":i.oneOfType([i.oneOf(["false","true"]),i.bool]),BackdropComponent:i.elementType,BackdropProps:i.object,children:i.node,classes:i.object,className:i.string,disableEscapeKeyDown:i.bool,fullScreen:i.bool,fullWidth:i.bool,maxWidth:i.oneOfType([i.oneOf(["xs","sm","md","lg","xl",!1]),i.string]),onClick:i.func,onClose:i.func,open:i.bool.isRequired,PaperComponent:i.elementType,PaperProps:i.object,scroll:i.oneOf(["body","paper"]),slotProps:i.shape({backdrop:i.oneOfType([i.func,i.object]),container:i.oneOfType([i.func,i.object]),paper:i.oneOfType([i.func,i.object]),root:i.oneOfType([i.func,i.object]),transition:i.oneOfType([i.func,i.object])}),slots:i.shape({backdrop:i.elementType,container:i.elementType,paper:i.elementType,root:i.elementType,transition:i.elementType}),sx:i.oneOfType([i.arrayOf(i.oneOfType([i.func,i.object,i.bool])),i.func,i.object]),TransitionComponent:i.elementType,transitionDuration:i.oneOfType([i.number,i.shape({appear:i.number,enter:i.number,exit:i.number})]),TransitionProps:i.object});function GO(e){return Ae("MuiDialogActions",e)}Ne("MuiDialogActions",["root","spacing"]);const KO=e=>{const{classes:t,disableSpacing:n}=e;return $e({root:["root",!n&&"spacing"]},GO,t)},XO=te("div",{name:"MuiDialogActions",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.disableSpacing&&t.spacing]}})({display:"flex",alignItems:"center",padding:8,justifyContent:"flex-end",flex:"0 0 auto",variants:[{props:({ownerState:e})=>!e.disableSpacing,style:{"& > :not(style) ~ :not(style)":{marginLeft:8}}}]}),$d=I.forwardRef(function(t,n){const r=Fe({props:t,name:"MuiDialogActions"}),{className:o,disableSpacing:s=!1,...a}=r,l={...r,disableSpacing:s},c=KO(l);return p.jsx(XO,{className:me(c.root,o),ownerState:l,ref:n,...a})});process.env.NODE_ENV!=="production"&&($d.propTypes={children:i.node,classes:i.object,className:i.string,disableSpacing:i.bool,sx:i.oneOfType([i.arrayOf(i.oneOfType([i.func,i.object,i.bool])),i.func,i.object])});function ZO(e){return Ae("MuiDialogContent",e)}Ne("MuiDialogContent",["root","dividers"]);const JO=Ne("MuiDialogTitle",["root"]),QO=e=>{const{classes:t,dividers:n}=e;return $e({root:["root",n&&"dividers"]},ZO,t)},e3=te("div",{name:"MuiDialogContent",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.dividers&&t.dividers]}})(_e(({theme:e})=>({flex:"1 1 auto",WebkitOverflowScrolling:"touch",overflowY:"auto",padding:"20px 24px",variants:[{props:({ownerState:t})=>t.dividers,style:{padding:"16px 24px",borderTop:`1px solid ${(e.vars||e).palette.divider}`,borderBottom:`1px solid ${(e.vars||e).palette.divider}`}},{props:({ownerState:t})=>!t.dividers,style:{[`.${JO.root} + &`]:{paddingTop:0}}}]}))),Ld=I.forwardRef(function(t,n){const r=Fe({props:t,name:"MuiDialogContent"}),{className:o,dividers:s=!1,...a}=r,l={...r,dividers:s},c=QO(l);return p.jsx(e3,{className:me(c.root,o),ownerState:l,ref:n,...a})});process.env.NODE_ENV!=="production"&&(Ld.propTypes={children:i.node,classes:i.object,className:i.string,dividers:i.bool,sx:i.oneOfType([i.arrayOf(i.oneOfType([i.func,i.object,i.bool])),i.func,i.object])});function t3(e){return Ae("MuiDivider",e)}Ne("MuiDivider",["root","absolute","fullWidth","inset","middle","flexItem","light","vertical","withChildren","withChildrenVertical","textAlignRight","textAlignLeft","wrapper","wrapperVertical"]);const n3=e=>{const{absolute:t,children:n,classes:r,flexItem:o,light:s,orientation:a,textAlign:l,variant:c}=e;return $e({root:["root",t&&"absolute",c,s&&"light",a==="vertical"&&"vertical",o&&"flexItem",n&&"withChildren",n&&a==="vertical"&&"withChildrenVertical",l==="right"&&a!=="vertical"&&"textAlignRight",l==="left"&&a!=="vertical"&&"textAlignLeft"],wrapper:["wrapper",a==="vertical"&&"wrapperVertical"]},t3,r)},r3=te("div",{name:"MuiDivider",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.absolute&&t.absolute,t[n.variant],n.light&&t.light,n.orientation==="vertical"&&t.vertical,n.flexItem&&t.flexItem,n.children&&t.withChildren,n.children&&n.orientation==="vertical"&&t.withChildrenVertical,n.textAlign==="right"&&n.orientation!=="vertical"&&t.textAlignRight,n.textAlign==="left"&&n.orientation!=="vertical"&&t.textAlignLeft]}})(_e(({theme:e})=>({margin:0,flexShrink:0,borderWidth:0,borderStyle:"solid",borderColor:(e.vars||e).palette.divider,borderBottomWidth:"thin",variants:[{props:{absolute:!0},style:{position:"absolute",bottom:0,left:0,width:"100%"}},{props:{light:!0},style:{borderColor:e.alpha((e.vars||e).palette.divider,.08)}},{props:{variant:"inset"},style:{marginLeft:72}},{props:{variant:"middle",orientation:"horizontal"},style:{marginLeft:e.spacing(2),marginRight:e.spacing(2)}},{props:{variant:"middle",orientation:"vertical"},style:{marginTop:e.spacing(1),marginBottom:e.spacing(1)}},{props:{orientation:"vertical"},style:{height:"100%",borderBottomWidth:0,borderRightWidth:"thin"}},{props:{flexItem:!0},style:{alignSelf:"stretch",height:"auto"}},{props:({ownerState:t})=>!!t.children,style:{display:"flex",textAlign:"center",border:0,borderTopStyle:"solid",borderLeftStyle:"solid","&::before, &::after":{content:'""',alignSelf:"center"}}},{props:({ownerState:t})=>t.children&&t.orientation!=="vertical",style:{"&::before, &::after":{width:"100%",borderTop:`thin solid ${(e.vars||e).palette.divider}`,borderTopStyle:"inherit"}}},{props:({ownerState:t})=>t.orientation==="vertical"&&t.children,style:{flexDirection:"column","&::before, &::after":{height:"100%",borderLeft:`thin solid ${(e.vars||e).palette.divider}`,borderLeftStyle:"inherit"}}},{props:({ownerState:t})=>t.textAlign==="right"&&t.orientation!=="vertical",style:{"&::before":{width:"90%"},"&::after":{width:"10%"}}},{props:({ownerState:t})=>t.textAlign==="left"&&t.orientation!=="vertical",style:{"&::before":{width:"10%"},"&::after":{width:"90%"}}}]}))),o3=te("span",{name:"MuiDivider",slot:"Wrapper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.wrapper,n.orientation==="vertical"&&t.wrapperVertical]}})(_e(({theme:e})=>({display:"inline-block",paddingLeft:`calc(${e.spacing(1)} * 1.2)`,paddingRight:`calc(${e.spacing(1)} * 1.2)`,whiteSpace:"nowrap",variants:[{props:{orientation:"vertical"},style:{paddingTop:`calc(${e.spacing(1)} * 1.2)`,paddingBottom:`calc(${e.spacing(1)} * 1.2)`}}]}))),ns=I.forwardRef(function(t,n){const r=Fe({props:t,name:"MuiDivider"}),{absolute:o=!1,children:s,className:a,orientation:l="horizontal",component:c=s||l==="vertical"?"div":"hr",flexItem:d=!1,light:u=!1,role:f=c!=="hr"?"separator":void 0,textAlign:h="center",variant:m="fullWidth",...g}=r,y={...r,absolute:o,component:c,flexItem:d,light:u,orientation:l,role:f,textAlign:h,variant:m},b=n3(y);return p.jsx(r3,{as:c,className:me(b.root,a),role:f,ref:n,ownerState:y,"aria-orientation":f==="separator"&&(c!=="hr"||l==="vertical")?l:void 0,...g,children:s?p.jsx(o3,{className:b.wrapper,ownerState:y,children:s}):null})});ns&&(ns.muiSkipListHighlight=!0),process.env.NODE_ENV!=="production"&&(ns.propTypes={absolute:i.bool,children:i.node,classes:i.object,className:i.string,component:i.elementType,flexItem:i.bool,light:i.bool,orientation:i.oneOf(["horizontal","vertical"]),role:i.string,sx:i.oneOfType([i.arrayOf(i.oneOfType([i.func,i.object,i.bool])),i.func,i.object]),textAlign:i.oneOf(["center","left","right"]),variant:i.oneOfType([i.oneOf(["fullWidth","inset","middle"]),i.string])});const s3=e=>{const{classes:t,disableUnderline:n,startAdornment:r,endAdornment:o,size:s,hiddenLabel:a,multiline:l}=e,c={root:["root",!n&&"underline",r&&"adornedStart",o&&"adornedEnd",s==="small"&&`size${Q(s)}`,a&&"hiddenLabel",l&&"multiline"],input:["input"]},d=$e(c,NE,t);return{...t,...d}},i3=te(pl,{shouldForwardProp:e=>xn(e)||e==="classes",name:"MuiFilledInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[...ul(e,t),!n.disableUnderline&&t.underline]}})(_e(({theme:e})=>{const t=e.palette.mode==="light",n=t?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)",r=t?"rgba(0, 0, 0, 0.06)":"rgba(255, 255, 255, 0.09)",o=t?"rgba(0, 0, 0, 0.09)":"rgba(255, 255, 255, 0.13)",s=t?"rgba(0, 0, 0, 0.12)":"rgba(255, 255, 255, 0.12)";return{position:"relative",backgroundColor:e.vars?e.vars.palette.FilledInput.bg:r,borderTopLeftRadius:(e.vars||e).shape.borderRadius,borderTopRightRadius:(e.vars||e).shape.borderRadius,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),"&:hover":{backgroundColor:e.vars?e.vars.palette.FilledInput.hoverBg:o,"@media (hover: none)":{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:r}},[`&.${ho.focused}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:r},[`&.${ho.disabled}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.disabledBg:s},variants:[{props:({ownerState:a})=>!a.disableUnderline,style:{"&::after":{left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:e.transitions.create("transform",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),pointerEvents:"none"},[`&.${ho.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${ho.error}`]:{"&::before, &::after":{borderBottomColor:(e.vars||e).palette.error.main}},"&::before":{borderBottom:`1px solid ${e.vars?e.alpha(e.vars.palette.common.onBackground,e.vars.opacity.inputUnderline):n}`,left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:e.transitions.create("border-bottom-color",{duration:e.transitions.duration.shorter}),pointerEvents:"none"},[`&:hover:not(.${ho.disabled}, .${ho.error}):before`]:{borderBottom:`1px solid ${(e.vars||e).palette.text.primary}`},[`&.${ho.disabled}:before`]:{borderBottomStyle:"dotted"}}},...Object.entries(e.palette).filter(Ft()).map(([a])=>({props:{disableUnderline:!1,color:a},style:{"&::after":{borderBottom:`2px solid ${(e.vars||e).palette[a]?.main}`}}})),{props:({ownerState:a})=>a.startAdornment,style:{paddingLeft:12}},{props:({ownerState:a})=>a.endAdornment,style:{paddingRight:12}},{props:({ownerState:a})=>a.multiline,style:{padding:"25px 12px 8px"}},{props:({ownerState:a,size:l})=>a.multiline&&l==="small",style:{paddingTop:21,paddingBottom:4}},{props:({ownerState:a})=>a.multiline&&a.hiddenLabel,style:{paddingTop:16,paddingBottom:17}},{props:({ownerState:a})=>a.multiline&&a.hiddenLabel&&a.size==="small",style:{paddingTop:8,paddingBottom:9}}]}})),a3=te(hl,{name:"MuiFilledInput",slot:"Input",overridesResolver:fl})(_e(({theme:e})=>({paddingTop:25,paddingRight:12,paddingBottom:8,paddingLeft:12,...!e.vars&&{"&:-webkit-autofill":{WebkitBoxShadow:e.palette.mode==="light"?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:e.palette.mode==="light"?null:"#fff",caretColor:e.palette.mode==="light"?null:"#fff",borderTopLeftRadius:"inherit",borderTopRightRadius:"inherit"}},...e.vars&&{"&:-webkit-autofill":{borderTopLeftRadius:"inherit",borderTopRightRadius:"inherit"},[e.getColorSchemeSelector("dark")]:{"&:-webkit-autofill":{WebkitBoxShadow:"0 0 0 100px #266798 inset",WebkitTextFillColor:"#fff",caretColor:"#fff"}}},variants:[{props:{size:"small"},style:{paddingTop:21,paddingBottom:4}},{props:({ownerState:t})=>t.hiddenLabel,style:{paddingTop:16,paddingBottom:17}},{props:({ownerState:t})=>t.startAdornment,style:{paddingLeft:0}},{props:({ownerState:t})=>t.endAdornment,style:{paddingRight:0}},{props:({ownerState:t})=>t.hiddenLabel&&t.size==="small",style:{paddingTop:8,paddingBottom:9}},{props:({ownerState:t})=>t.multiline,style:{paddingTop:0,paddingBottom:0,paddingLeft:0,paddingRight:0}}]}))),xl=I.forwardRef(function(t,n){const r=Fe({props:t,name:"MuiFilledInput"}),{disableUnderline:o=!1,components:s={},componentsProps:a,fullWidth:l=!1,hiddenLabel:c,inputComponent:d="input",multiline:u=!1,slotProps:f,slots:h={},type:m="text",...g}=r,y={...r,disableUnderline:o,fullWidth:l,inputComponent:d,multiline:u,type:m},b=s3(r),v={root:{ownerState:y},input:{ownerState:y}},k=f??a?Ht(v,f??a):v,S=h.root??s.Root??i3,C=h.input??s.Input??a3;return p.jsx(ml,{slots:{root:S,input:C},slotProps:k,fullWidth:l,inputComponent:d,multiline:u,ref:n,type:m,...g,classes:b})});process.env.NODE_ENV!=="production"&&(xl.propTypes={autoComplete:i.string,autoFocus:i.bool,classes:i.object,color:i.oneOfType([i.oneOf(["primary","secondary"]),i.string]),components:i.shape({Input:i.elementType,Root:i.elementType}),componentsProps:i.shape({input:i.object,root:i.object}),defaultValue:i.any,disabled:i.bool,disableUnderline:i.bool,endAdornment:i.node,error:i.bool,fullWidth:i.bool,hiddenLabel:i.bool,id:i.string,inputComponent:i.elementType,inputProps:i.object,inputRef:pn,margin:i.oneOf(["dense","none"]),maxRows:i.oneOfType([i.number,i.string]),minRows:i.oneOfType([i.number,i.string]),multiline:i.bool,name:i.string,onChange:i.func,placeholder:i.string,readOnly:i.bool,required:i.bool,rows:i.oneOfType([i.number,i.string]),slotProps:i.shape({input:i.object,root:i.object}),slots:i.shape({input:i.elementType,root:i.elementType}),startAdornment:i.node,sx:i.oneOfType([i.arrayOf(i.oneOfType([i.func,i.object,i.bool])),i.func,i.object]),type:i.string,value:i.any}),xl.muiName="Input";function l3(e){return Ae("MuiFormControl",e)}Ne("MuiFormControl",["root","marginNone","marginNormal","marginDense","fullWidth","disabled"]);const c3=e=>{const{classes:t,margin:n,fullWidth:r}=e,o={root:["root",n!=="none"&&`margin${Q(n)}`,r&&"fullWidth"]};return $e(o,l3,t)},d3=te("div",{name:"MuiFormControl",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`margin${Q(n.margin)}`],n.fullWidth&&t.fullWidth]}})({display:"inline-flex",flexDirection:"column",position:"relative",minWidth:0,padding:0,margin:0,border:0,verticalAlign:"top",variants:[{props:{margin:"normal"},style:{marginTop:16,marginBottom:8}},{props:{margin:"dense"},style:{marginTop:8,marginBottom:4}},{props:{fullWidth:!0},style:{width:"100%"}}]}),mg=I.forwardRef(function(t,n){const r=Fe({props:t,name:"MuiFormControl"}),{children:o,className:s,color:a="primary",component:l="div",disabled:c=!1,error:d=!1,focused:u,fullWidth:f=!1,hiddenLabel:h=!1,margin:m="none",required:g=!1,size:y="medium",variant:b="outlined",...v}=r,k={...r,color:a,component:l,disabled:c,error:d,fullWidth:f,hiddenLabel:h,margin:m,required:g,size:y,variant:b},S=c3(k),[C,w]=I.useState(()=>{let $=!1;return o&&I.Children.forEach(o,_=>{if(!Ua(_,["Input","Select"]))return;const U=Ua(_,["Select"])?_.props.input:_;U&&jE(U.props)&&($=!0)}),$}),[T,E]=I.useState(()=>{let $=!1;return o&&I.Children.forEach(o,_=>{Ua(_,["Input","Select"])&&(dl(_.props,!0)||dl(_.props.inputProps,!0))&&($=!0)}),$}),[M,j]=I.useState(!1);c&&M&&j(!1);const A=u!==void 0&&!c?u:M;let L;const O=I.useRef(!1);process.env.NODE_ENV!=="production"&&(L=()=>(O.current&&console.error(["MUI: There are multiple `InputBase` components inside a FormControl.","This creates visual inconsistencies, only use one `InputBase`."].join(`
|
|
187
|
-
`)),O.current=!0,()=>{O.current=!1}));const N=I.useCallback(()=>{E(!0)},[]),P=I.useCallback(()=>{E(!1)},[]),R=I.useMemo(()=>({adornedStart:C,setAdornedStart:w,color:a,disabled:c,error:d,filled:T,focused:A,fullWidth:f,hiddenLabel:h,size:y,onBlur:()=>{j(!1)},onFocus:()=>{j(!0)},onEmpty:P,onFilled:N,registerEffect:L,required:g,variant:b}),[C,a,c,d,T,A,f,h,L,P,N,g,y,b]);return p.jsx(pi.Provider,{value:R,children:p.jsx(d3,{as:l,ownerState:k,className:me(S.root,s),ref:n,...v,children:o})})});process.env.NODE_ENV!=="production"&&(mg.propTypes={children:i.node,classes:i.object,className:i.string,color:i.oneOfType([i.oneOf(["primary","secondary","error","info","success","warning"]),i.string]),component:i.elementType,disabled:i.bool,error:i.bool,focused:i.bool,fullWidth:i.bool,hiddenLabel:i.bool,margin:i.oneOf(["dense","none","normal"]),required:i.bool,size:i.oneOfType([i.oneOf(["medium","small"]),i.string]),sx:i.oneOfType([i.arrayOf(i.oneOfType([i.func,i.object,i.bool])),i.func,i.object]),variant:i.oneOf(["filled","outlined","standard"])});function u3(e){return Ae("MuiFormHelperText",e)}const gg=Ne("MuiFormHelperText",["root","error","disabled","sizeSmall","sizeMedium","contained","focused","filled","required"]);var yg;const f3=e=>{const{classes:t,contained:n,size:r,disabled:o,error:s,filled:a,focused:l,required:c}=e,d={root:["root",o&&"disabled",s&&"error",r&&`size${Q(r)}`,n&&"contained",l&&"focused",a&&"filled",c&&"required"]};return $e(d,u3,t)},p3=te("p",{name:"MuiFormHelperText",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.size&&t[`size${Q(n.size)}`],n.contained&&t.contained,n.filled&&t.filled]}})(_e(({theme:e})=>({color:(e.vars||e).palette.text.secondary,...e.typography.caption,textAlign:"left",marginTop:3,marginRight:0,marginBottom:0,marginLeft:0,[`&.${gg.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${gg.error}`]:{color:(e.vars||e).palette.error.main},variants:[{props:{size:"small"},style:{marginTop:4}},{props:({ownerState:t})=>t.contained,style:{marginLeft:14,marginRight:14}}]}))),bg=I.forwardRef(function(t,n){const r=Fe({props:t,name:"MuiFormHelperText"}),{children:o,className:s,component:a="p",disabled:l,error:c,filled:d,focused:u,margin:f,required:h,variant:m,...g}=r,y=Ur(),b=Jo({props:r,muiFormControl:y,states:["variant","size","disabled","error","filled","focused","required"]}),v={...r,component:a,contained:b.variant==="filled"||b.variant==="outlined",variant:b.variant,size:b.size,disabled:b.disabled,error:b.error,filled:b.filled,focused:b.focused,required:b.required};delete v.ownerState;const k=f3(v);return p.jsx(p3,{as:a,className:me(k.root,s),ref:n,...g,ownerState:v,children:o===" "?yg||(yg=p.jsx("span",{className:"notranslate","aria-hidden":!0,children:""})):o})});process.env.NODE_ENV!=="production"&&(bg.propTypes={children:i.node,classes:i.object,className:i.string,component:i.elementType,disabled:i.bool,error:i.bool,filled:i.bool,focused:i.bool,margin:i.oneOf(["dense"]),required:i.bool,sx:i.oneOfType([i.arrayOf(i.oneOfType([i.func,i.object,i.bool])),i.func,i.object]),variant:i.oneOfType([i.oneOf(["filled","outlined","standard"]),i.string])});function h3(e){return Ae("MuiFormLabel",e)}const yi=Ne("MuiFormLabel",["root","colorSecondary","focused","disabled","error","filled","required","asterisk"]),m3=e=>{const{classes:t,color:n,focused:r,disabled:o,error:s,filled:a,required:l}=e,c={root:["root",`color${Q(n)}`,o&&"disabled",s&&"error",a&&"filled",r&&"focused",l&&"required"],asterisk:["asterisk",s&&"error"]};return $e(c,h3,t)},g3=te("label",{name:"MuiFormLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.color==="secondary"&&t.colorSecondary,n.filled&&t.filled]}})(_e(({theme:e})=>({color:(e.vars||e).palette.text.secondary,...e.typography.body1,lineHeight:"1.4375em",padding:0,position:"relative",variants:[...Object.entries(e.palette).filter(Ft()).map(([t])=>({props:{color:t},style:{[`&.${yi.focused}`]:{color:(e.vars||e).palette[t].main}}})),{props:{},style:{[`&.${yi.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${yi.error}`]:{color:(e.vars||e).palette.error.main}}}]}))),y3=te("span",{name:"MuiFormLabel",slot:"Asterisk"})(_e(({theme:e})=>({[`&.${yi.error}`]:{color:(e.vars||e).palette.error.main}}))),vg=I.forwardRef(function(t,n){const r=Fe({props:t,name:"MuiFormLabel"}),{children:o,className:s,color:a,component:l="label",disabled:c,error:d,filled:u,focused:f,required:h,...m}=r,g=Ur(),y=Jo({props:r,muiFormControl:g,states:["color","required","focused","disabled","error","filled"]}),b={...r,color:y.color||"primary",component:l,disabled:y.disabled,error:y.error,filled:y.filled,focused:y.focused,required:y.required},v=m3(b);return p.jsxs(g3,{as:l,ownerState:b,className:me(v.root,s),ref:n,...m,children:[o,y.required&&p.jsxs(y3,{ownerState:b,"aria-hidden":!0,className:v.asterisk,children:[" ","*"]})]})});process.env.NODE_ENV!=="production"&&(vg.propTypes={children:i.node,classes:i.object,className:i.string,color:i.oneOfType([i.oneOf(["error","info","primary","secondary","success","warning"]),i.string]),component:i.elementType,disabled:i.bool,error:i.bool,filled:i.bool,focused:i.bool,required:i.bool,sx:i.oneOfType([i.arrayOf(i.oneOfType([i.func,i.object,i.bool])),i.func,i.object])});const bi=bC({createStyledComponent:te("div",{name:"MuiGrid",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.container&&t.container]}}),componentName:"MuiGrid",useThemeProps:e=>Fe({props:e,name:"MuiGrid"}),useTheme:mt});if(process.env.NODE_ENV!=="production"&&(bi.propTypes={children:i.node,columns:i.oneOfType([i.arrayOf(i.number),i.number,i.object]),columnSpacing:i.oneOfType([i.arrayOf(i.oneOfType([i.number,i.string])),i.number,i.object,i.string]),container:i.bool,direction:i.oneOfType([i.oneOf(["column-reverse","column","row-reverse","row"]),i.arrayOf(i.oneOf(["column-reverse","column","row-reverse","row"])),i.object]),offset:i.oneOfType([i.string,i.number,i.arrayOf(i.oneOfType([i.string,i.number])),i.object]),rowSpacing:i.oneOfType([i.arrayOf(i.oneOfType([i.number,i.string])),i.number,i.object,i.string]),size:i.oneOfType([i.string,i.bool,i.number,i.arrayOf(i.oneOfType([i.string,i.bool,i.number])),i.object]),spacing:i.oneOfType([i.arrayOf(i.oneOfType([i.number,i.string])),i.number,i.object,i.string]),sx:i.oneOfType([i.arrayOf(i.oneOfType([i.func,i.object,i.bool])),i.func,i.object]),unstable_level:i.number,wrap:i.oneOf(["nowrap","wrap-reverse","wrap"])}),process.env.NODE_ENV!=="production"){const e=bi,t=hT("Grid",e);e.propTypes={...e.propTypes,direction:t("container"),spacing:t("container"),wrap:t("container")}}function Bd(e){return`scale(${e}, ${e**2})`}const b3={entering:{opacity:1,transform:Bd(1)},entered:{opacity:1,transform:"none"}},_d=typeof navigator<"u"&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),vi=I.forwardRef(function(t,n){const{addEndListener:r,appear:o=!0,children:s,easing:a,in:l,onEnter:c,onEntered:d,onEntering:u,onExit:f,onExited:h,onExiting:m,style:g,timeout:y="auto",TransitionComponent:b=ir,...v}=t,k=Uo(),S=I.useRef(),C=mt(),w=I.useRef(null),T=Ut(w,Zo(s),n),E=R=>$=>{if(R){const _=w.current;$===void 0?R(_):R(_,$)}},M=E(u),j=E((R,$)=>{gm(R);const{duration:_,delay:U,easing:H}=Ja({style:g,timeout:y,easing:a},{mode:"enter"});let B;y==="auto"?(B=C.transitions.getAutoHeightDuration(R.clientHeight),S.current=B):B=_,R.style.transition=[C.transitions.create("opacity",{duration:B,delay:U}),C.transitions.create("transform",{duration:_d?B:B*.666,delay:U,easing:H})].join(","),c&&c(R,$)}),A=E(d),L=E(m),O=E(R=>{const{duration:$,delay:_,easing:U}=Ja({style:g,timeout:y,easing:a},{mode:"exit"});let H;y==="auto"?(H=C.transitions.getAutoHeightDuration(R.clientHeight),S.current=H):H=$,R.style.transition=[C.transitions.create("opacity",{duration:H,delay:_}),C.transitions.create("transform",{duration:_d?H:H*.666,delay:_d?_:_||H*.333,easing:U})].join(","),R.style.opacity=0,R.style.transform=Bd(.75),f&&f(R)}),N=E(h),P=R=>{y==="auto"&&k.start(S.current||0,R),r&&r(w.current,R)};return p.jsx(b,{appear:o,in:l,nodeRef:w,onEnter:j,onEntered:A,onEntering:M,onExit:O,onExited:N,onExiting:L,addEndListener:P,timeout:y==="auto"?null:y,...v,children:(R,{ownerState:$,..._})=>I.cloneElement(s,{style:{opacity:0,transform:Bd(.75),visibility:R==="exited"&&!l?"hidden":void 0,...b3[R],...g,...s.props.style},ref:T,..._})})});process.env.NODE_ENV!=="production"&&(vi.propTypes={addEndListener:i.func,appear:i.bool,children:es.isRequired,easing:i.oneOfType([i.shape({enter:i.string,exit:i.string}),i.string]),in:i.bool,onEnter:i.func,onEntered:i.func,onEntering:i.func,onExit:i.func,onExited:i.func,onExiting:i.func,style:i.object,timeout:i.oneOfType([i.oneOf(["auto"]),i.number,i.shape({appear:i.number,enter:i.number,exit:i.number})])}),vi&&(vi.muiSupportAuto=!0);const v3=e=>{const{classes:t,disableUnderline:n}=e,o=$e({root:["root",!n&&"underline"],input:["input"]},AE,t);return{...t,...o}},x3=te(pl,{shouldForwardProp:e=>xn(e)||e==="classes",name:"MuiInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[...ul(e,t),!n.disableUnderline&&t.underline]}})(_e(({theme:e})=>{let n=e.palette.mode==="light"?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)";return e.vars&&(n=e.alpha(e.vars.palette.common.onBackground,e.vars.opacity.inputUnderline)),{position:"relative",variants:[{props:({ownerState:r})=>r.formControl,style:{"label + &":{marginTop:16}}},{props:({ownerState:r})=>!r.disableUnderline,style:{"&::after":{left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:e.transitions.create("transform",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),pointerEvents:"none"},[`&.${hi.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${hi.error}`]:{"&::before, &::after":{borderBottomColor:(e.vars||e).palette.error.main}},"&::before":{borderBottom:`1px solid ${n}`,left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:e.transitions.create("border-bottom-color",{duration:e.transitions.duration.shorter}),pointerEvents:"none"},[`&:hover:not(.${hi.disabled}, .${hi.error}):before`]:{borderBottom:`2px solid ${(e.vars||e).palette.text.primary}`,"@media (hover: none)":{borderBottom:`1px solid ${n}`}},[`&.${hi.disabled}:before`]:{borderBottomStyle:"dotted"}}},...Object.entries(e.palette).filter(Ft()).map(([r])=>({props:{color:r,disableUnderline:!1},style:{"&::after":{borderBottom:`2px solid ${(e.vars||e).palette[r].main}`}}}))]}})),w3=te(hl,{name:"MuiInput",slot:"Input",overridesResolver:fl})({}),wl=I.forwardRef(function(t,n){const r=Fe({props:t,name:"MuiInput"}),{disableUnderline:o=!1,components:s={},componentsProps:a,fullWidth:l=!1,inputComponent:c="input",multiline:d=!1,slotProps:u,slots:f={},type:h="text",...m}=r,g=v3(r),b={root:{ownerState:{disableUnderline:o}}},v=u??a?Ht(u??a,b):b,k=f.root??s.Root??x3,S=f.input??s.Input??w3;return p.jsx(ml,{slots:{root:k,input:S},slotProps:v,fullWidth:l,inputComponent:c,multiline:d,ref:n,type:h,...m,classes:g})});process.env.NODE_ENV!=="production"&&(wl.propTypes={autoComplete:i.string,autoFocus:i.bool,classes:i.object,color:i.oneOfType([i.oneOf(["primary","secondary"]),i.string]),components:i.shape({Input:i.elementType,Root:i.elementType}),componentsProps:i.shape({input:i.object,root:i.object}),defaultValue:i.any,disabled:i.bool,disableUnderline:i.bool,endAdornment:i.node,error:i.bool,fullWidth:i.bool,id:i.string,inputComponent:i.elementType,inputProps:i.object,inputRef:pn,margin:i.oneOf(["dense","none"]),maxRows:i.oneOfType([i.number,i.string]),minRows:i.oneOfType([i.number,i.string]),multiline:i.bool,name:i.string,onChange:i.func,placeholder:i.string,readOnly:i.bool,required:i.bool,rows:i.oneOfType([i.number,i.string]),slotProps:i.shape({input:i.object,root:i.object}),slots:i.shape({input:i.elementType,root:i.elementType}),startAdornment:i.node,sx:i.oneOfType([i.arrayOf(i.oneOfType([i.func,i.object,i.bool])),i.func,i.object]),type:i.string,value:i.any}),wl.muiName="Input";function S3(e){return Ae("MuiInputAdornment",e)}const xg=Ne("MuiInputAdornment",["root","filled","standard","outlined","positionStart","positionEnd","disablePointerEvents","hiddenLabel","sizeSmall"]);var wg;const C3=(e,t)=>{const{ownerState:n}=e;return[t.root,t[`position${Q(n.position)}`],n.disablePointerEvents===!0&&t.disablePointerEvents,t[n.variant]]},T3=e=>{const{classes:t,disablePointerEvents:n,hiddenLabel:r,position:o,size:s,variant:a}=e,l={root:["root",n&&"disablePointerEvents",o&&`position${Q(o)}`,a,r&&"hiddenLabel",s&&`size${Q(s)}`]};return $e(l,S3,t)},k3=te("div",{name:"MuiInputAdornment",slot:"Root",overridesResolver:C3})(_e(({theme:e})=>({display:"flex",maxHeight:"2em",alignItems:"center",whiteSpace:"nowrap",color:(e.vars||e).palette.action.active,variants:[{props:{variant:"filled"},style:{[`&.${xg.positionStart}&:not(.${xg.hiddenLabel})`]:{marginTop:16}}},{props:{position:"start"},style:{marginRight:8}},{props:{position:"end"},style:{marginLeft:8}},{props:{disablePointerEvents:!0},style:{pointerEvents:"none"}}]}))),Sl=I.forwardRef(function(t,n){const r=Fe({props:t,name:"MuiInputAdornment"}),{children:o,className:s,component:a="div",disablePointerEvents:l=!1,disableTypography:c=!1,position:d,variant:u,...f}=r,h=Ur()||{};let m=u;u&&h.variant&&process.env.NODE_ENV!=="production"&&u===h.variant&&console.error("MUI: The `InputAdornment` variant infers the variant prop you do not have to provide one."),h&&!m&&(m=h.variant);const g={...r,hiddenLabel:h.hiddenLabel,size:h.size,disablePointerEvents:l,position:d,variant:m},y=T3(g);return p.jsx(pi.Provider,{value:null,children:p.jsx(k3,{as:a,ownerState:g,className:me(y.root,s),ref:n,...f,children:typeof o=="string"&&!c?p.jsx(ut,{color:"textSecondary",children:o}):p.jsxs(I.Fragment,{children:[d==="start"?wg||(wg=p.jsx("span",{className:"notranslate","aria-hidden":!0,children:""})):null,o]})})})});process.env.NODE_ENV!=="production"&&(Sl.propTypes={children:i.node,classes:i.object,className:i.string,component:i.elementType,disablePointerEvents:i.bool,disableTypography:i.bool,position:i.oneOf(["end","start"]).isRequired,sx:i.oneOfType([i.arrayOf(i.oneOfType([i.func,i.object,i.bool])),i.func,i.object]),variant:i.oneOf(["filled","outlined","standard"])});function E3(e){return Ae("MuiInputLabel",e)}Ne("MuiInputLabel",["root","focused","disabled","error","required","asterisk","formControl","sizeSmall","shrink","animated","standard","filled","outlined"]);const O3=e=>{const{classes:t,formControl:n,size:r,shrink:o,disableAnimation:s,variant:a,required:l}=e,c={root:["root",n&&"formControl",!s&&"animated",o&&"shrink",r&&r!=="medium"&&`size${Q(r)}`,a],asterisk:[l&&"asterisk"]},d=$e(c,E3,t);return{...t,...d}},M3=te(vg,{shouldForwardProp:e=>xn(e)||e==="classes",name:"MuiInputLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${yi.asterisk}`]:t.asterisk},t.root,n.formControl&&t.formControl,n.size==="small"&&t.sizeSmall,n.shrink&&t.shrink,!n.disableAnimation&&t.animated,n.focused&&t.focused,t[n.variant]]}})(_e(({theme:e})=>({display:"block",transformOrigin:"top left",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",maxWidth:"100%",variants:[{props:({ownerState:t})=>t.formControl,style:{position:"absolute",left:0,top:0,transform:"translate(0, 20px) scale(1)"}},{props:{size:"small"},style:{transform:"translate(0, 17px) scale(1)"}},{props:({ownerState:t})=>t.shrink,style:{transform:"translate(0, -1.5px) scale(0.75)",transformOrigin:"top left",maxWidth:"133%"}},{props:({ownerState:t})=>!t.disableAnimation,style:{transition:e.transitions.create(["color","transform","max-width"],{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut})}},{props:{variant:"filled"},style:{zIndex:1,pointerEvents:"none",transform:"translate(12px, 16px) scale(1)",maxWidth:"calc(100% - 24px)"}},{props:{variant:"filled",size:"small"},style:{transform:"translate(12px, 13px) scale(1)"}},{props:({variant:t,ownerState:n})=>t==="filled"&&n.shrink,style:{userSelect:"none",pointerEvents:"auto",transform:"translate(12px, 7px) scale(0.75)",maxWidth:"calc(133% - 24px)"}},{props:({variant:t,ownerState:n,size:r})=>t==="filled"&&n.shrink&&r==="small",style:{transform:"translate(12px, 4px) scale(0.75)"}},{props:{variant:"outlined"},style:{zIndex:1,pointerEvents:"none",transform:"translate(14px, 16px) scale(1)",maxWidth:"calc(100% - 24px)"}},{props:{variant:"outlined",size:"small"},style:{transform:"translate(14px, 9px) scale(1)"}},{props:({variant:t,ownerState:n})=>t==="outlined"&&n.shrink,style:{userSelect:"none",pointerEvents:"auto",maxWidth:"calc(133% - 32px)",transform:"translate(14px, -9px) scale(0.75)"}}]}))),Sg=I.forwardRef(function(t,n){const r=Fe({name:"MuiInputLabel",props:t}),{disableAnimation:o=!1,margin:s,shrink:a,variant:l,className:c,...d}=r,u=Ur();let f=a;typeof f>"u"&&u&&(f=u.filled||u.focused||u.adornedStart);const h=Jo({props:r,muiFormControl:u,states:["size","variant","required","focused"]}),m={...r,disableAnimation:o,formControl:u,shrink:f,size:h.size,variant:h.variant,required:h.required,focused:h.focused},g=O3(m);return p.jsx(M3,{"data-shrink":f,ref:n,className:me(g.root,c),...d,ownerState:m,classes:g})});process.env.NODE_ENV!=="production"&&(Sg.propTypes={children:i.node,classes:i.object,className:i.string,color:i.oneOfType([i.oneOf(["error","info","primary","secondary","success","warning"]),i.string]),disableAnimation:i.bool,disabled:i.bool,error:i.bool,focused:i.bool,margin:i.oneOf(["dense"]),required:i.bool,shrink:i.bool,size:i.oneOfType([i.oneOf(["medium","small"]),i.string]),sx:i.oneOfType([i.arrayOf(i.oneOfType([i.func,i.object,i.bool])),i.func,i.object]),variant:i.oneOf(["filled","outlined","standard"])});const Cg=I.createContext({});process.env.NODE_ENV!=="production"&&(Cg.displayName="ListContext");function P3(e){return Ae("MuiList",e)}Ne("MuiList",["root","padding","dense","subheader"]);const j3=e=>{const{classes:t,disablePadding:n,dense:r,subheader:o}=e;return $e({root:["root",!n&&"padding",r&&"dense",o&&"subheader"]},P3,t)},I3=te("ul",{name:"MuiList",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.disablePadding&&t.padding,n.dense&&t.dense,n.subheader&&t.subheader]}})({listStyle:"none",margin:0,padding:0,position:"relative",variants:[{props:({ownerState:e})=>!e.disablePadding,style:{paddingTop:8,paddingBottom:8}},{props:({ownerState:e})=>e.subheader,style:{paddingTop:0}}]}),go=I.forwardRef(function(t,n){const r=Fe({props:t,name:"MuiList"}),{children:o,className:s,component:a="ul",dense:l=!1,disablePadding:c=!1,subheader:d,...u}=r,f=I.useMemo(()=>({dense:l}),[l]),h={...r,component:a,dense:l,disablePadding:c},m=j3(h);return p.jsx(Cg.Provider,{value:f,children:p.jsxs(I3,{as:a,className:me(m.root,s),ref:n,ownerState:h,...u,children:[d,o]})})});process.env.NODE_ENV!=="production"&&(go.propTypes={children:i.node,classes:i.object,className:i.string,component:i.elementType,dense:i.bool,disablePadding:i.bool,subheader:i.node,sx:i.oneOfType([i.arrayOf(i.oneOfType([i.func,i.object,i.bool])),i.func,i.object])});function Fd(e,t,n){return e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:n?null:e.firstChild}function Tg(e,t,n){return e===t?n?e.firstChild:e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:n?null:e.lastChild}function kg(e,t){if(t===void 0)return!0;let n=e.innerText;return n===void 0&&(n=e.textContent),n=n.trim().toLowerCase(),n.length===0?!1:t.repeating?n[0]===t.keys[0]:n.startsWith(t.keys.join(""))}function xi(e,t,n,r,o,s){let a=!1,l=o(e,t,t?n:!1);for(;l;){if(l===e.firstChild){if(a)return!1;a=!0}const c=r?!1:l.disabled||l.getAttribute("aria-disabled")==="true";if(!l.hasAttribute("tabindex")||!kg(l,s)||c)l=o(e,l,n);else return l.focus(),!0}return!1}const Eg=I.forwardRef(function(t,n){const{actions:r,autoFocus:o=!1,autoFocusItem:s=!1,children:a,className:l,disabledItemsFocusable:c=!1,disableListWrap:d=!1,onKeyDown:u,variant:f="selectedMenu",...h}=t,m=I.useRef(null),g=I.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});On(()=>{o&&m.current.focus()},[o]),I.useImperativeHandle(r,()=>({adjustStyleForScrollbar:(S,{direction:C})=>{const w=!m.current.style.width;if(S.clientHeight<m.current.clientHeight&&w){const T=`${dg(Hn(S))}px`;m.current.style[C==="rtl"?"paddingLeft":"paddingRight"]=T,m.current.style.width=`calc(100% + ${T})`}return m.current}}),[]);const y=S=>{const C=m.current,w=S.key;if(S.ctrlKey||S.metaKey||S.altKey){u&&u(S);return}const E=ts(fn(C));if(w==="ArrowDown")S.preventDefault(),xi(C,E,d,c,Fd);else if(w==="ArrowUp")S.preventDefault(),xi(C,E,d,c,Tg);else if(w==="Home")S.preventDefault(),xi(C,null,d,c,Fd);else if(w==="End")S.preventDefault(),xi(C,null,d,c,Tg);else if(w.length===1){const M=g.current,j=w.toLowerCase(),A=performance.now();M.keys.length>0&&(A-M.lastTime>500?(M.keys=[],M.repeating=!0,M.previousKeyMatched=!0):M.repeating&&j!==M.keys[0]&&(M.repeating=!1)),M.lastTime=A,M.keys.push(j);const L=E&&!M.repeating&&kg(E,M);M.previousKeyMatched&&(L||xi(C,E,!1,c,Fd,M))?S.preventDefault():M.previousKeyMatched=!1}u&&u(S)},b=Ut(m,n);let v=-1;I.Children.forEach(a,(S,C)=>{if(!I.isValidElement(S)){v===C&&(v+=1,v>=a.length&&(v=-1));return}process.env.NODE_ENV!=="production"&&kr.isFragment(S)&&console.error(["MUI: The Menu component doesn't accept a Fragment as a child.","Consider providing an array instead."].join(`
|
|
188
|
-
`)),S.props.disabled||(f==="selectedMenu"&&S.props.selected||v===-1)&&(v=C),v===C&&(S.props.disabled||S.props.muiSkipListHighlight||S.type.muiSkipListHighlight)&&(v+=1,v>=a.length&&(v=-1))});const k=I.Children.map(a,(S,C)=>{if(C===v){const w={};return s&&(w.autoFocus=!0),S.props.tabIndex===void 0&&f==="selectedMenu"&&(w.tabIndex=0),I.cloneElement(S,w)}return S});return p.jsx(go,{role:"menu",ref:b,className:l,onKeyDown:y,tabIndex:o?0:-1,...h,children:k})});process.env.NODE_ENV!=="production"&&(Eg.propTypes={autoFocus:i.bool,autoFocusItem:i.bool,children:i.node,className:i.string,disabledItemsFocusable:i.bool,disableListWrap:i.bool,onKeyDown:i.func,variant:i.oneOf(["menu","selectedMenu"])});function D3(e){return Ae("MuiPopover",e)}Ne("MuiPopover",["root","paper"]);function Og(e,t){let n=0;return typeof t=="number"?n=t:t==="center"?n=e.height/2:t==="bottom"&&(n=e.height),n}function Mg(e,t){let n=0;return typeof t=="number"?n=t:t==="center"?n=e.width/2:t==="right"&&(n=e.width),n}function Pg(e){return[e.horizontal,e.vertical].map(t=>typeof t=="number"?`${t}px`:t).join(" ")}function wi(e){return typeof e=="function"?e():e}const A3=e=>{const{classes:t}=e;return $e({root:["root"],paper:["paper"]},D3,t)},R3=te(Ad,{name:"MuiPopover",slot:"Root"})({}),jg=te(ri,{name:"MuiPopover",slot:"Paper"})({position:"absolute",overflowY:"auto",overflowX:"hidden",minWidth:16,minHeight:16,maxWidth:"calc(100% - 32px)",maxHeight:"calc(100% - 32px)",outline:0}),Si=I.forwardRef(function(t,n){const r=Fe({props:t,name:"MuiPopover"}),{action:o,anchorEl:s,anchorOrigin:a={vertical:"top",horizontal:"left"},anchorPosition:l,anchorReference:c="anchorEl",children:d,className:u,container:f,elevation:h=8,marginThreshold:m=16,open:g,PaperProps:y={},slots:b={},slotProps:v={},transformOrigin:k={vertical:"top",horizontal:"left"},TransitionComponent:S,transitionDuration:C="auto",TransitionProps:w={},disableScrollLock:T=!1,...E}=r,M=I.useRef(),j={...r,anchorOrigin:a,anchorReference:c,elevation:h,marginThreshold:m,transformOrigin:k,TransitionComponent:S,transitionDuration:C,TransitionProps:w},A=A3(j),L=I.useCallback(()=>{if(c==="anchorPosition")return process.env.NODE_ENV!=="production"&&(l||console.error('MUI: You need to provide a `anchorPosition` prop when using <Popover anchorReference="anchorPosition" />.')),l;const W=wi(s),ee=W&&W.nodeType===1?W:fn(M.current).body,F=ee.getBoundingClientRect();if(process.env.NODE_ENV!=="production"){const fe=ee.getBoundingClientRect();process.env.NODE_ENV!=="test"&&fe.top===0&&fe.left===0&&fe.right===0&&fe.bottom===0&&console.warn(["MUI: The `anchorEl` prop provided to the component is invalid.","The anchor element should be part of the document layout.","Make sure the element is present in the document or that it's not display none."].join(`
|
|
189
|
-
`))}return{top:F.top+Og(F,a.vertical),left:F.left+Mg(F,a.horizontal)}},[s,a.horizontal,a.vertical,l,c]),O=I.useCallback(W=>({vertical:Og(W,k.vertical),horizontal:Mg(W,k.horizontal)}),[k.horizontal,k.vertical]),N=I.useCallback(W=>{const ee={width:W.offsetWidth,height:W.offsetHeight},F=O(ee);if(c==="none")return{top:null,left:null,transformOrigin:Pg(F)};const fe=L();let se=fe.top-F.vertical,Z=fe.left-F.horizontal;const Ce=se+ee.height,Te=Z+ee.width,ke=Hn(wi(s)),we=ke.innerHeight-m,Re=ke.innerWidth-m;if(m!==null&&se<m){const Oe=se-m;se-=Oe,F.vertical+=Oe}else if(m!==null&&Ce>we){const Oe=Ce-we;se-=Oe,F.vertical+=Oe}if(process.env.NODE_ENV!=="production"&&ee.height>we&&ee.height&&we&&console.error(["MUI: The popover component is too tall.",`Some part of it can not be seen on the screen (${ee.height-we}px).`,"Please consider adding a `max-height` to improve the user-experience."].join(`
|
|
190
|
-
`)),m!==null&&Z<m){const Oe=Z-m;Z-=Oe,F.horizontal+=Oe}else if(Te>Re){const Oe=Te-Re;Z-=Oe,F.horizontal+=Oe}return{top:`${Math.round(se)}px`,left:`${Math.round(Z)}px`,transformOrigin:Pg(F)}},[s,c,L,O,m]),[P,R]=I.useState(g),$=I.useCallback(()=>{const W=M.current;if(!W)return;const ee=N(W);ee.top!==null&&W.style.setProperty("top",ee.top),ee.left!==null&&(W.style.left=ee.left),W.style.transformOrigin=ee.transformOrigin,R(!0)},[N]);I.useEffect(()=>(T&&window.addEventListener("scroll",$),()=>window.removeEventListener("scroll",$)),[s,T,$]);const _=()=>{$()},U=()=>{R(!1)};I.useEffect(()=>{g&&$()}),I.useImperativeHandle(o,()=>g?{updatePosition:()=>{$()}}:null,[g,$]),I.useEffect(()=>{if(!g)return;const W=ei(()=>{$()}),ee=Hn(wi(s));return ee.addEventListener("resize",W),()=>{W.clear(),ee.removeEventListener("resize",W)}},[s,g,$]);let H=C;const B={slots:{transition:S,...b},slotProps:{transition:w,paper:y,...v}},[D,z]=Ye("transition",{elementType:vi,externalForwardedProps:B,ownerState:j,getSlotProps:W=>({...W,onEntering:(ee,F)=>{W.onEntering?.(ee,F),_()},onExited:ee=>{W.onExited?.(ee),U()}}),additionalProps:{appear:!0,in:g}});C==="auto"&&!D.muiSupportAuto&&(H=void 0);const V=f||(s?fn(wi(s)).body:void 0),[X,{slots:G,slotProps:Y,...K}]=Ye("root",{ref:n,elementType:R3,externalForwardedProps:{...B,...E},shouldForwardComponentProp:!0,additionalProps:{slots:{backdrop:b.backdrop},slotProps:{backdrop:dm(typeof v.backdrop=="function"?v.backdrop(j):v.backdrop,{invisible:!0})},container:V,open:g},ownerState:j,className:me(A.root,u)}),[ae,le]=Ye("paper",{ref:M,className:A.paper,elementType:jg,externalForwardedProps:B,shouldForwardComponentProp:!0,additionalProps:{elevation:h,style:P?void 0:{opacity:0}},ownerState:j});return p.jsx(X,{...K,...!Qa(X)&&{slots:G,slotProps:Y,disableScrollLock:T},children:p.jsx(D,{...z,timeout:H,children:p.jsx(ae,{...le,children:d})})})});process.env.NODE_ENV!=="production"&&(Si.propTypes={action:pn,anchorEl:Vr(i.oneOfType([Mr,i.func]),e=>{if(e.open&&(!e.anchorReference||e.anchorReference==="anchorEl")){const t=wi(e.anchorEl);if(t&&t.nodeType===1){const n=t.getBoundingClientRect();if(process.env.NODE_ENV!=="test"&&n.top===0&&n.left===0&&n.right===0&&n.bottom===0)return new Error(["MUI: The `anchorEl` prop provided to the component is invalid.","The anchor element should be part of the document layout.","Make sure the element is present in the document or that it's not display none."].join(`
|
|
191
|
-
`))}else return new Error(["MUI: The `anchorEl` prop provided to the component is invalid.",`It should be an Element or PopoverVirtualElement instance but it's \`${t}\` instead.`].join(`
|
|
192
|
-
`))}return null}),anchorOrigin:i.shape({horizontal:i.oneOfType([i.oneOf(["center","left","right"]),i.number]).isRequired,vertical:i.oneOfType([i.oneOf(["bottom","center","top"]),i.number]).isRequired}),anchorPosition:i.shape({left:i.number.isRequired,top:i.number.isRequired}),anchorReference:i.oneOf(["anchorEl","anchorPosition","none"]),BackdropComponent:i.elementType,BackdropProps:i.object,children:i.node,classes:i.object,className:i.string,container:i.oneOfType([Mr,i.func]),disableScrollLock:i.bool,elevation:ar,marginThreshold:i.number,onClose:i.func,open:i.bool.isRequired,PaperProps:i.shape({component:pd}),slotProps:i.shape({backdrop:i.oneOfType([i.func,i.object]),paper:i.oneOfType([i.func,i.object]),root:i.oneOfType([i.func,i.object]),transition:i.oneOfType([i.func,i.object])}),slots:i.shape({backdrop:i.elementType,paper:i.elementType,root:i.elementType,transition:i.elementType}),sx:i.oneOfType([i.arrayOf(i.oneOfType([i.func,i.object,i.bool])),i.func,i.object]),transformOrigin:i.shape({horizontal:i.oneOfType([i.oneOf(["center","left","right"]),i.number]).isRequired,vertical:i.oneOfType([i.oneOf(["bottom","center","top"]),i.number]).isRequired}),TransitionComponent:i.elementType,transitionDuration:i.oneOfType([i.oneOf(["auto"]),i.number,i.shape({appear:i.number,enter:i.number,exit:i.number})]),TransitionProps:i.object});function N3(e){return Ae("MuiMenu",e)}Ne("MuiMenu",["root","paper","list"]);const $3={vertical:"top",horizontal:"right"},L3={vertical:"top",horizontal:"left"},B3=e=>{const{classes:t}=e;return $e({root:["root"],paper:["paper"],list:["list"]},N3,t)},_3=te(Si,{shouldForwardProp:e=>xn(e)||e==="classes",name:"MuiMenu",slot:"Root"})({}),F3=te(jg,{name:"MuiMenu",slot:"Paper"})({maxHeight:"calc(100% - 96px)",WebkitOverflowScrolling:"touch"}),W3=te(Eg,{name:"MuiMenu",slot:"List"})({outline:0}),Ig=I.forwardRef(function(t,n){const r=Fe({props:t,name:"MuiMenu"}),{autoFocus:o=!0,children:s,className:a,disableAutoFocusItem:l=!1,MenuListProps:c={},onClose:d,open:u,PaperProps:f={},PopoverClasses:h,transitionDuration:m="auto",TransitionProps:{onEntering:g,...y}={},variant:b="selectedMenu",slots:v={},slotProps:k={},...S}=r,C=Fo(),w={...r,autoFocus:o,disableAutoFocusItem:l,MenuListProps:c,onEntering:g,PaperProps:f,transitionDuration:m,TransitionProps:y,variant:b},T=B3(w),E=o&&!l&&u,M=I.useRef(null),j=(H,B)=>{M.current&&M.current.adjustStyleForScrollbar(H,{direction:C?"rtl":"ltr"}),g&&g(H,B)},A=H=>{H.key==="Tab"&&(H.preventDefault(),d&&d(H,"tabKeyDown"))};let L=-1;I.Children.map(s,(H,B)=>{I.isValidElement(H)&&(process.env.NODE_ENV!=="production"&&kr.isFragment(H)&&console.error(["MUI: The Menu component doesn't accept a Fragment as a child.","Consider providing an array instead."].join(`
|
|
193
|
-
`)),H.props.disabled||(b==="selectedMenu"&&H.props.selected||L===-1)&&(L=B))});const O={slots:v,slotProps:{list:c,transition:y,paper:f,...k}},N=po({elementType:v.root,externalSlotProps:k.root,ownerState:w,className:[T.root,a]}),[P,R]=Ye("paper",{className:T.paper,elementType:F3,externalForwardedProps:O,shouldForwardComponentProp:!0,ownerState:w}),[$,_]=Ye("list",{className:me(T.list,c.className),elementType:W3,shouldForwardComponentProp:!0,externalForwardedProps:O,getSlotProps:H=>({...H,onKeyDown:B=>{A(B),H.onKeyDown?.(B)}}),ownerState:w}),U=typeof O.slotProps.transition=="function"?O.slotProps.transition(w):O.slotProps.transition;return p.jsx(_3,{onClose:d,anchorOrigin:{vertical:"bottom",horizontal:C?"right":"left"},transformOrigin:C?$3:L3,slots:{root:v.root,paper:P,backdrop:v.backdrop,...v.transition&&{transition:v.transition}},slotProps:{root:N,paper:R,backdrop:typeof k.backdrop=="function"?k.backdrop(w):k.backdrop,transition:{...U,onEntering:(...H)=>{j(...H),U?.onEntering?.(...H)}}},open:u,ref:n,transitionDuration:m,ownerState:w,...S,classes:h,children:p.jsx($,{actions:M,autoFocus:o&&(L===-1||l),autoFocusItem:E,variant:b,..._,children:s})})});process.env.NODE_ENV!=="production"&&(Ig.propTypes={anchorEl:i.oneOfType([Mr,i.func]),autoFocus:i.bool,children:i.node,classes:i.object,className:i.string,disableAutoFocusItem:i.bool,MenuListProps:i.object,onClose:i.func,open:i.bool.isRequired,PaperProps:i.object,PopoverClasses:i.object,slotProps:i.shape({backdrop:i.oneOfType([i.func,i.object]),list:i.oneOfType([i.func,i.object]),paper:i.oneOfType([i.func,i.object]),root:i.oneOfType([i.func,i.object]),transition:i.oneOfType([i.func,i.object])}),slots:i.shape({backdrop:i.elementType,list:i.elementType,paper:i.elementType,root:i.elementType,transition:i.elementType}),sx:i.oneOfType([i.arrayOf(i.oneOfType([i.func,i.object,i.bool])),i.func,i.object]),transitionDuration:i.oneOfType([i.oneOf(["auto"]),i.number,i.shape({appear:i.number,enter:i.number,exit:i.number})]),TransitionProps:i.object,variant:i.oneOf(["menu","selectedMenu"])});function z3(e){return Ae("MuiNativeSelect",e)}const Wd=Ne("MuiNativeSelect",["root","select","multiple","filled","outlined","standard","disabled","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]),V3=e=>{const{classes:t,variant:n,disabled:r,multiple:o,open:s,error:a}=e,l={select:["select",n,r&&"disabled",o&&"multiple",a&&"error"],icon:["icon",`icon${Q(n)}`,s&&"iconOpen",r&&"disabled"]};return $e(l,z3,t)},Dg=te("select",{name:"MuiNativeSelect"})(({theme:e})=>({MozAppearance:"none",WebkitAppearance:"none",userSelect:"none",borderRadius:0,cursor:"pointer","&:focus":{borderRadius:0},[`&.${Wd.disabled}`]:{cursor:"default"},"&[multiple]":{height:"auto"},"&:not([multiple]) option, &:not([multiple]) optgroup":{backgroundColor:(e.vars||e).palette.background.paper},variants:[{props:({ownerState:t})=>t.variant!=="filled"&&t.variant!=="outlined",style:{"&&&":{paddingRight:24,minWidth:16}}},{props:{variant:"filled"},style:{"&&&":{paddingRight:32}}},{props:{variant:"outlined"},style:{borderRadius:(e.vars||e).shape.borderRadius,"&:focus":{borderRadius:(e.vars||e).shape.borderRadius},"&&&":{paddingRight:32}}}]})),H3=te(Dg,{name:"MuiNativeSelect",slot:"Select",shouldForwardProp:xn,overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.select,t[n.variant],n.error&&t.error,{[`&.${Wd.multiple}`]:t.multiple}]}})({}),Ag=te("svg",{name:"MuiNativeSelect"})(({theme:e})=>({position:"absolute",right:0,top:"calc(50% - .5em)",pointerEvents:"none",color:(e.vars||e).palette.action.active,[`&.${Wd.disabled}`]:{color:(e.vars||e).palette.action.disabled},variants:[{props:({ownerState:t})=>t.open,style:{transform:"rotate(180deg)"}},{props:{variant:"filled"},style:{right:7}},{props:{variant:"outlined"},style:{right:7}}]})),U3=te(Ag,{name:"MuiNativeSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.icon,n.variant&&t[`icon${Q(n.variant)}`],n.open&&t.iconOpen]}})({}),Rg=I.forwardRef(function(t,n){const{className:r,disabled:o,error:s,IconComponent:a,inputRef:l,variant:c="standard",...d}=t,u={...t,disabled:o,variant:c,error:s},f=V3(u);return p.jsxs(I.Fragment,{children:[p.jsx(H3,{ownerState:u,className:me(f.select,r),disabled:o,ref:l||n,...d}),t.multiple?null:p.jsx(U3,{as:a,ownerState:u,className:f.icon})]})});process.env.NODE_ENV!=="production"&&(Rg.propTypes={children:i.node,classes:i.object,className:i.string,disabled:i.bool,error:i.bool,IconComponent:i.elementType.isRequired,inputRef:pn,multiple:i.bool,name:i.string,onChange:i.func,value:i.any,variant:i.oneOf(["standard","outlined","filled"])});var Ng;const Y3=te("fieldset",{name:"MuiNotchedOutlined",shouldForwardProp:xn})({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%"}),q3=te("legend",{name:"MuiNotchedOutlined",shouldForwardProp:xn})(_e(({theme:e})=>({float:"unset",width:"auto",overflow:"hidden",variants:[{props:({ownerState:t})=>!t.withLabel,style:{padding:0,lineHeight:"11px",transition:e.transitions.create("width",{duration:150,easing:e.transitions.easing.easeOut})}},{props:({ownerState:t})=>t.withLabel,style:{display:"block",padding:0,height:11,fontSize:"0.75em",visibility:"hidden",maxWidth:.01,transition:e.transitions.create("max-width",{duration:50,easing:e.transitions.easing.easeOut}),whiteSpace:"nowrap","& > span":{paddingLeft:5,paddingRight:5,display:"inline-block",opacity:0,visibility:"visible"}}},{props:({ownerState:t})=>t.withLabel&&t.notched,style:{maxWidth:"100%",transition:e.transitions.create("max-width",{duration:100,easing:e.transitions.easing.easeOut,delay:50})}}]})));function $g(e){const{children:t,classes:n,className:r,label:o,notched:s,...a}=e,l=o!=null&&o!=="",c={...e,notched:s,withLabel:l};return p.jsx(Y3,{"aria-hidden":!0,className:r,ownerState:c,...a,children:p.jsx(q3,{ownerState:c,children:l?p.jsx("span",{children:o}):Ng||(Ng=p.jsx("span",{className:"notranslate","aria-hidden":!0,children:""}))})})}process.env.NODE_ENV!=="production"&&($g.propTypes={children:i.node,classes:i.object,className:i.string,label:i.node,notched:i.bool.isRequired,style:i.object});const G3=e=>{const{classes:t}=e,r=$e({root:["root"],notchedOutline:["notchedOutline"],input:["input"]},RE,t);return{...t,...r}},K3=te(pl,{shouldForwardProp:e=>xn(e)||e==="classes",name:"MuiOutlinedInput",slot:"Root",overridesResolver:ul})(_e(({theme:e})=>{const t=e.palette.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return{position:"relative",borderRadius:(e.vars||e).shape.borderRadius,[`&:hover .${ur.notchedOutline}`]:{borderColor:(e.vars||e).palette.text.primary},"@media (hover: none)":{[`&:hover .${ur.notchedOutline}`]:{borderColor:e.vars?e.alpha(e.vars.palette.common.onBackground,.23):t}},[`&.${ur.focused} .${ur.notchedOutline}`]:{borderWidth:2},variants:[...Object.entries(e.palette).filter(Ft()).map(([n])=>({props:{color:n},style:{[`&.${ur.focused} .${ur.notchedOutline}`]:{borderColor:(e.vars||e).palette[n].main}}})),{props:{},style:{[`&.${ur.error} .${ur.notchedOutline}`]:{borderColor:(e.vars||e).palette.error.main},[`&.${ur.disabled} .${ur.notchedOutline}`]:{borderColor:(e.vars||e).palette.action.disabled}}},{props:({ownerState:n})=>n.startAdornment,style:{paddingLeft:14}},{props:({ownerState:n})=>n.endAdornment,style:{paddingRight:14}},{props:({ownerState:n})=>n.multiline,style:{padding:"16.5px 14px"}},{props:({ownerState:n,size:r})=>n.multiline&&r==="small",style:{padding:"8.5px 14px"}}]}})),X3=te($g,{name:"MuiOutlinedInput",slot:"NotchedOutline"})(_e(({theme:e})=>{const t=e.palette.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return{borderColor:e.vars?e.alpha(e.vars.palette.common.onBackground,.23):t}})),Z3=te(hl,{name:"MuiOutlinedInput",slot:"Input",overridesResolver:fl})(_e(({theme:e})=>({padding:"16.5px 14px",...!e.vars&&{"&:-webkit-autofill":{WebkitBoxShadow:e.palette.mode==="light"?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:e.palette.mode==="light"?null:"#fff",caretColor:e.palette.mode==="light"?null:"#fff",borderRadius:"inherit"}},...e.vars&&{"&:-webkit-autofill":{borderRadius:"inherit"},[e.getColorSchemeSelector("dark")]:{"&:-webkit-autofill":{WebkitBoxShadow:"0 0 0 100px #266798 inset",WebkitTextFillColor:"#fff",caretColor:"#fff"}}},variants:[{props:{size:"small"},style:{padding:"8.5px 14px"}},{props:({ownerState:t})=>t.multiline,style:{padding:0}},{props:({ownerState:t})=>t.startAdornment,style:{paddingLeft:0}},{props:({ownerState:t})=>t.endAdornment,style:{paddingRight:0}}]}))),Cl=I.forwardRef(function(t,n){const r=Fe({props:t,name:"MuiOutlinedInput"}),{components:o={},fullWidth:s=!1,inputComponent:a="input",label:l,multiline:c=!1,notched:d,slots:u={},slotProps:f={},type:h="text",...m}=r,g=G3(r),y=Ur(),b=Jo({props:r,muiFormControl:y,states:["color","disabled","error","focused","hiddenLabel","size","required"]}),v={...r,color:b.color||"primary",disabled:b.disabled,error:b.error,focused:b.focused,formControl:y,fullWidth:s,hiddenLabel:b.hiddenLabel,multiline:c,size:b.size,type:h},k=u.root??o.Root??K3,S=u.input??o.Input??Z3,[C,w]=Ye("notchedOutline",{elementType:X3,className:g.notchedOutline,shouldForwardComponentProp:!0,ownerState:v,externalForwardedProps:{slots:u,slotProps:f},additionalProps:{label:l!=null&&l!==""&&b.required?p.jsxs(I.Fragment,{children:[l," ","*"]}):l}});return p.jsx(ml,{slots:{root:k,input:S},slotProps:f,renderSuffix:T=>p.jsx(C,{...w,notched:typeof d<"u"?d:!!(T.startAdornment||T.filled||T.focused)}),fullWidth:s,inputComponent:a,multiline:c,ref:n,type:h,...m,classes:{...g,notchedOutline:null}})});process.env.NODE_ENV!=="production"&&(Cl.propTypes={autoComplete:i.string,autoFocus:i.bool,classes:i.object,color:i.oneOfType([i.oneOf(["primary","secondary"]),i.string]),components:i.shape({Input:i.elementType,Root:i.elementType}),defaultValue:i.any,disabled:i.bool,endAdornment:i.node,error:i.bool,fullWidth:i.bool,id:i.string,inputComponent:i.elementType,inputProps:i.object,inputRef:pn,label:i.node,margin:i.oneOf(["dense","none"]),maxRows:i.oneOfType([i.number,i.string]),minRows:i.oneOfType([i.number,i.string]),multiline:i.bool,name:i.string,notched:i.bool,onChange:i.func,placeholder:i.string,readOnly:i.bool,required:i.bool,rows:i.oneOfType([i.number,i.string]),slotProps:i.shape({input:i.object,notchedOutline:i.oneOfType([i.func,i.object]),root:i.object}),slots:i.shape({input:i.elementType,notchedOutline:i.elementType,root:i.elementType}),startAdornment:i.node,sx:i.oneOfType([i.arrayOf(i.oneOfType([i.func,i.object,i.bool])),i.func,i.object]),type:i.string,value:i.any}),Cl.muiName="Input";function J3(e){return Ae("MuiPagination",e)}Ne("MuiPagination",["root","ul","outlined","text"]);function Q3(e={}){const{boundaryCount:t=1,componentName:n="usePagination",count:r=1,defaultPage:o=1,disabled:s=!1,hideNextButton:a=!1,hidePrevButton:l=!1,onChange:c,page:d,showFirstButton:u=!1,showLastButton:f=!1,siblingCount:h=1,...m}=e,[g,y]=ti({controlled:d,default:o,name:n,state:"page"}),b=(j,A)=>{d||y(A),c&&c(j,A)},v=(j,A)=>{const L=A-j+1;return Array.from({length:L},(O,N)=>j+N)},k=v(1,Math.min(t,r)),S=v(Math.max(r-t+1,t+1),r),C=Math.max(Math.min(g-h,r-t-h*2-1),t+2),w=Math.min(Math.max(g+h,t+h*2+2),r-t-1),T=[...u?["first"]:[],...l?[]:["previous"],...k,...C>t+2?["start-ellipsis"]:t+1<r-t?[t+1]:[],...v(C,w),...w<r-t-1?["end-ellipsis"]:r-t>t?[r-t]:[],...S,...a?[]:["next"],...f?["last"]:[]],E=j=>{switch(j){case"first":return 1;case"previous":return g-1;case"next":return g+1;case"last":return r;default:return null}};return{items:T.map(j=>typeof j=="number"?{onClick:A=>{b(A,j)},type:"page",page:j,selected:j===g,disabled:s,"aria-current":j===g?"page":void 0}:{onClick:A=>{b(A,E(j))},type:j,page:E(j),selected:!1,disabled:s||!j.includes("ellipsis")&&(j==="next"||j==="last"?g>=r:g<=1)}),...m}}function e5(e){return Ae("MuiPaginationItem",e)}const rn=Ne("MuiPaginationItem",["root","page","sizeSmall","sizeLarge","text","textPrimary","textSecondary","outlined","outlinedPrimary","outlinedSecondary","rounded","ellipsis","firstLast","previousNext","focusVisible","disabled","selected","icon","colorPrimary","colorSecondary"]),t5=wn(p.jsx("path",{d:"M18.41 16.59L13.82 12l4.59-4.59L17 6l-6 6 6 6zM6 6h2v12H6z"}),"FirstPage"),n5=wn(p.jsx("path",{d:"M5.59 7.41L10.18 12l-4.59 4.59L7 18l6-6-6-6zM16 6h2v12h-2z"}),"LastPage"),r5=wn(p.jsx("path",{d:"M15.41 7.41L14 6l-6 6 6 6 1.41-1.41L10.83 12z"}),"NavigateBefore"),o5=wn(p.jsx("path",{d:"M10 6L8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"}),"NavigateNext"),Lg=(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`size${Q(n.size)}`],n.variant==="text"&&t[`text${Q(n.color)}`],n.variant==="outlined"&&t[`outlined${Q(n.color)}`],n.shape==="rounded"&&t.rounded,n.type==="page"&&t.page,(n.type==="start-ellipsis"||n.type==="end-ellipsis")&&t.ellipsis,(n.type==="previous"||n.type==="next")&&t.previousNext,(n.type==="first"||n.type==="last")&&t.firstLast]},s5=e=>{const{classes:t,color:n,disabled:r,selected:o,size:s,shape:a,type:l,variant:c}=e,d={root:["root",`size${Q(s)}`,c,a,n!=="standard"&&`color${Q(n)}`,n!=="standard"&&`${c}${Q(n)}`,r&&"disabled",o&&"selected",{page:"page",first:"firstLast",last:"firstLast","start-ellipsis":"ellipsis","end-ellipsis":"ellipsis",previous:"previousNext",next:"previousNext"}[l]],icon:["icon"]};return $e(d,e5,t)},i5=te("div",{name:"MuiPaginationItem",slot:"Root",overridesResolver:Lg})(_e(({theme:e})=>({...e.typography.body2,borderRadius:32/2,textAlign:"center",boxSizing:"border-box",minWidth:32,padding:"0 6px",margin:"0 3px",color:(e.vars||e).palette.text.primary,height:"auto",[`&.${rn.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},variants:[{props:{size:"small"},style:{minWidth:26,borderRadius:26/2,margin:"0 1px",padding:"0 4px"}},{props:{size:"large"},style:{minWidth:40,borderRadius:40/2,padding:"0 10px",fontSize:e.typography.pxToRem(15)}}]}))),a5=te(lr,{name:"MuiPaginationItem",slot:"Root",overridesResolver:Lg})(_e(({theme:e})=>({...e.typography.body2,borderRadius:32/2,textAlign:"center",boxSizing:"border-box",minWidth:32,height:32,padding:"0 6px",margin:"0 3px",color:(e.vars||e).palette.text.primary,[`&.${rn.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${rn.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},transition:e.transitions.create(["color","background-color"],{duration:e.transitions.duration.short}),"&:hover":{backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${rn.selected}`]:{backgroundColor:(e.vars||e).palette.action.selected,"&:hover":{backgroundColor:e.alpha((e.vars||e).palette.action.selected,`${(e.vars||e).palette.action.selectedOpacity} + ${(e.vars||e).palette.action.hoverOpacity}`),"@media (hover: none)":{backgroundColor:(e.vars||e).palette.action.selected}},[`&.${rn.focusVisible}`]:{backgroundColor:e.alpha((e.vars||e).palette.action.selected,`${(e.vars||e).palette.action.selectedOpacity} + ${(e.vars||e).palette.action.focusOpacity}`)},[`&.${rn.disabled}`]:{opacity:1,color:(e.vars||e).palette.action.disabled,backgroundColor:(e.vars||e).palette.action.selected}},variants:[{props:{size:"small"},style:{minWidth:26,height:26,borderRadius:26/2,margin:"0 1px",padding:"0 4px"}},{props:{size:"large"},style:{minWidth:40,height:40,borderRadius:40/2,padding:"0 10px",fontSize:e.typography.pxToRem(15)}},{props:{shape:"rounded"},style:{borderRadius:(e.vars||e).shape.borderRadius}},{props:{variant:"outlined"},style:{border:e.vars?`1px solid ${e.alpha(e.vars.palette.common.onBackground,.23)}`:`1px solid ${e.palette.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)"}`,[`&.${rn.selected}`]:{[`&.${rn.disabled}`]:{borderColor:(e.vars||e).palette.action.disabledBackground,color:(e.vars||e).palette.action.disabled}}}},{props:{variant:"text"},style:{[`&.${rn.selected}`]:{[`&.${rn.disabled}`]:{color:(e.vars||e).palette.action.disabled}}}},...Object.entries(e.palette).filter(Ft(["dark","contrastText"])).map(([t])=>({props:{variant:"text",color:t},style:{[`&.${rn.selected}`]:{color:(e.vars||e).palette[t].contrastText,backgroundColor:(e.vars||e).palette[t].main,"&:hover":{backgroundColor:(e.vars||e).palette[t].dark,"@media (hover: none)":{backgroundColor:(e.vars||e).palette[t].main}},[`&.${rn.focusVisible}`]:{backgroundColor:(e.vars||e).palette[t].dark},[`&.${rn.disabled}`]:{color:(e.vars||e).palette.action.disabled}}}})),...Object.entries(e.palette).filter(Ft(["light"])).map(([t])=>({props:{variant:"outlined",color:t},style:{[`&.${rn.selected}`]:{color:(e.vars||e).palette[t].main,border:`1px solid ${e.alpha((e.vars||e).palette[t].main,.5)}`,backgroundColor:e.alpha((e.vars||e).palette[t].main,(e.vars||e).palette.action.activatedOpacity),"&:hover":{backgroundColor:e.alpha((e.vars||e).palette[t].main,`${(e.vars||e).palette.action.activatedOpacity} + ${(e.vars||e).palette.action.focusOpacity}`),"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${rn.focusVisible}`]:{backgroundColor:e.alpha((e.vars||e).palette[t].main,`${(e.vars||e).palette.action.activatedOpacity} + ${(e.vars||e).palette.action.focusOpacity}`)}}}}))]}))),l5=te("div",{name:"MuiPaginationItem",slot:"Icon"})(_e(({theme:e})=>({fontSize:e.typography.pxToRem(20),margin:"0 -8px",variants:[{props:{size:"small"},style:{fontSize:e.typography.pxToRem(18)}},{props:{size:"large"},style:{fontSize:e.typography.pxToRem(22)}}]}))),Bg=I.forwardRef(function(t,n){const r=Fe({props:t,name:"MuiPaginationItem"}),{className:o,color:s="standard",component:a,components:l={},disabled:c=!1,page:d,selected:u=!1,shape:f="circular",size:h="medium",slots:m={},slotProps:g={},type:y="page",variant:b="text",...v}=r,k={...r,color:s,disabled:c,selected:u,shape:f,size:h,type:y,variant:b},S=Fo(),C=s5(k),w={slots:{previous:m.previous??l.previous,next:m.next??l.next,first:m.first??l.first,last:m.last??l.last},slotProps:g},[T,E]=Ye("previous",{elementType:r5,externalForwardedProps:w,ownerState:k}),[M,j]=Ye("next",{elementType:o5,externalForwardedProps:w,ownerState:k}),[A,L]=Ye("first",{elementType:t5,externalForwardedProps:w,ownerState:k}),[O,N]=Ye("last",{elementType:n5,externalForwardedProps:w,ownerState:k}),P=S?{previous:"next",next:"previous",first:"last",last:"first"}[y]:y,R={previous:T,next:M,first:A,last:O}[P],$={previous:E,next:j,first:L,last:N}[P];return y==="start-ellipsis"||y==="end-ellipsis"?p.jsx(i5,{ref:n,ownerState:k,className:me(C.root,o),children:"…"}):p.jsxs(a5,{ref:n,ownerState:k,component:a,disabled:c,className:me(C.root,o),...v,children:[y==="page"&&d,R?p.jsx(l5,{...$,className:C.icon,as:R}):null]})});process.env.NODE_ENV!=="production"&&(Bg.propTypes={children:i.node,classes:i.object,className:i.string,color:i.oneOfType([i.oneOf(["primary","secondary","standard"]),i.string]),component:i.elementType,components:i.shape({first:i.elementType,last:i.elementType,next:i.elementType,previous:i.elementType}),disabled:i.bool,page:i.node,selected:i.bool,shape:i.oneOf(["circular","rounded"]),size:i.oneOfType([i.oneOf(["small","medium","large"]),i.string]),slotProps:i.shape({first:i.oneOfType([i.func,i.object]),last:i.oneOfType([i.func,i.object]),next:i.oneOfType([i.func,i.object]),previous:i.oneOfType([i.func,i.object])}),slots:i.shape({first:i.elementType,last:i.elementType,next:i.elementType,previous:i.elementType}),sx:i.oneOfType([i.arrayOf(i.oneOfType([i.func,i.object,i.bool])),i.func,i.object]),type:i.oneOf(["end-ellipsis","first","last","next","page","previous","start-ellipsis"]),variant:i.oneOfType([i.oneOf(["outlined","text"]),i.string])});const c5=e=>{const{classes:t,variant:n}=e;return $e({root:["root",n],ul:["ul"]},J3,t)},d5=te("nav",{name:"MuiPagination",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant]]}})({}),u5=te("ul",{name:"MuiPagination",slot:"Ul"})({display:"flex",flexWrap:"wrap",alignItems:"center",padding:0,margin:0,listStyle:"none"});function f5(e,t,n){return e==="page"?`${n?"":"Go to "}page ${t}`:`Go to ${e} page`}const _g=I.forwardRef(function(t,n){const r=Fe({props:t,name:"MuiPagination"}),{boundaryCount:o=1,className:s,color:a="standard",count:l=1,defaultPage:c=1,disabled:d=!1,getItemAriaLabel:u=f5,hideNextButton:f=!1,hidePrevButton:h=!1,onChange:m,page:g,renderItem:y=A=>p.jsx(Bg,{...A}),shape:b="circular",showFirstButton:v=!1,showLastButton:k=!1,siblingCount:S=1,size:C="medium",variant:w="text",...T}=r,{items:E}=Q3({...r,componentName:"Pagination"}),M={...r,boundaryCount:o,color:a,count:l,defaultPage:c,disabled:d,getItemAriaLabel:u,hideNextButton:f,hidePrevButton:h,renderItem:y,shape:b,showFirstButton:v,showLastButton:k,siblingCount:S,size:C,variant:w},j=c5(M);return p.jsx(d5,{"aria-label":"pagination navigation",className:me(j.root,s),ownerState:M,ref:n,...T,children:p.jsx(u5,{className:j.ul,ownerState:M,children:E.map((A,L)=>p.jsx("li",{children:y({...A,color:a,"aria-label":u(A.type,A.page,A.selected),shape:b,size:C,variant:w})},L))})})});process.env.NODE_ENV!=="production"&&(_g.propTypes={boundaryCount:ar,classes:i.object,className:i.string,color:i.oneOfType([i.oneOf(["primary","secondary","standard"]),i.string]),count:ar,defaultPage:ar,disabled:i.bool,getItemAriaLabel:i.func,hideNextButton:i.bool,hidePrevButton:i.bool,onChange:i.func,page:ar,renderItem:i.func,shape:i.oneOf(["circular","rounded"]),showFirstButton:i.bool,showLastButton:i.bool,siblingCount:ar,size:i.oneOfType([i.oneOf(["small","medium","large"]),i.string]),sx:i.oneOfType([i.arrayOf(i.oneOfType([i.func,i.object,i.bool])),i.func,i.object]),variant:i.oneOfType([i.oneOf(["outlined","text"]),i.string])});function Fg(e){return Ae("MuiSelect",e)}const Ci=Ne("MuiSelect",["root","select","multiple","filled","outlined","standard","disabled","focused","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]);var Wg;const p5=te(Dg,{name:"MuiSelect",slot:"Select",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`&.${Ci.select}`]:t.select},{[`&.${Ci.select}`]:t[n.variant]},{[`&.${Ci.error}`]:t.error},{[`&.${Ci.multiple}`]:t.multiple}]}})({[`&.${Ci.select}`]:{height:"auto",minHeight:"1.4375em",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden"}}),h5=te(Ag,{name:"MuiSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.icon,n.variant&&t[`icon${Q(n.variant)}`],n.open&&t.iconOpen]}})({}),m5=te("input",{shouldForwardProp:e=>sm(e)&&e!=="classes",name:"MuiSelect",slot:"NativeInput"})({bottom:0,left:0,position:"absolute",opacity:0,pointerEvents:"none",width:"100%",boxSizing:"border-box"});function zg(e,t){return typeof t=="object"&&t!==null?e===t:String(e)===String(t)}function g5(e){return e==null||typeof e=="string"&&!e.trim()}const y5=e=>{const{classes:t,variant:n,disabled:r,multiple:o,open:s,error:a}=e,l={select:["select",n,r&&"disabled",o&&"multiple",a&&"error"],icon:["icon",`icon${Q(n)}`,s&&"iconOpen",r&&"disabled"],nativeInput:["nativeInput"]};return $e(l,Fg,t)},Vg=I.forwardRef(function(t,n){const{"aria-describedby":r,"aria-label":o,autoFocus:s,autoWidth:a,children:l,className:c,defaultOpen:d,defaultValue:u,disabled:f,displayEmpty:h,error:m=!1,IconComponent:g,inputRef:y,labelId:b,MenuProps:v={},multiple:k,name:S,onBlur:C,onChange:w,onClose:T,onFocus:E,onKeyDown:M,onMouseDown:j,onOpen:A,open:L,readOnly:O,renderValue:N,required:P,SelectDisplayProps:R={},tabIndex:$,type:_,value:U,variant:H="standard",...B}=t,[D,z]=ti({controlled:U,default:u,name:"Select"}),[V,X]=ti({controlled:L,default:d,name:"Select"}),G=I.useRef(null),Y=I.useRef(null),[K,ae]=I.useState(null),{current:le}=I.useRef(L!=null),[W,ee]=I.useState(),F=Ut(n,y),fe=I.useCallback(xe=>{Y.current=xe,xe&&ae(xe)},[]),se=K?.parentNode;I.useImperativeHandle(F,()=>({focus:()=>{Y.current.focus()},node:G.current,value:D}),[D]);const Z=K!==null&&V;I.useEffect(()=>{if(!Z||!se||a||typeof ResizeObserver>"u")return;const xe=new ResizeObserver(()=>{ee(se.clientWidth)});return xe.observe(se),()=>{xe.disconnect()}},[Z,se,a]),I.useEffect(()=>{d&&V&&K&&!le&&(ee(a?null:se.clientWidth),Y.current.focus())},[K,a]),I.useEffect(()=>{s&&Y.current.focus()},[s]),I.useEffect(()=>{if(!b)return;const xe=fn(Y.current).getElementById(b);if(xe){const ce=()=>{getSelection().isCollapsed&&Y.current.focus()};return xe.addEventListener("click",ce),()=>{xe.removeEventListener("click",ce)}}},[b]);const Ce=(xe,ce)=>{xe?A&&A(ce):T&&T(ce),le||(ee(a?null:se.clientWidth),X(xe))},Te=xe=>{j?.(xe),xe.button===0&&(xe.preventDefault(),Y.current.focus(),Ce(!0,xe))},ke=xe=>{Ce(!1,xe)},we=I.Children.toArray(l),Re=xe=>{const ce=we.find(De=>De.props.value===xe.target.value);ce!==void 0&&(z(ce.props.value),w&&w(xe,ce))},Oe=xe=>ce=>{let De;if(ce.currentTarget.hasAttribute("tabindex")){if(k){De=Array.isArray(D)?D.slice():[];const Pe=D.indexOf(xe.props.value);Pe===-1?De.push(xe.props.value):De.splice(Pe,1)}else De=xe.props.value;if(xe.props.onClick&&xe.props.onClick(ce),D!==De&&(z(De),w)){const Pe=ce.nativeEvent||ce,Xe=new Pe.constructor(Pe.type,Pe);Object.defineProperty(Xe,"target",{writable:!0,value:{value:De,name:S}}),w(Xe,xe)}k||Ce(!1,ce)}},ge=xe=>{O||([" ","ArrowUp","ArrowDown","Enter"].includes(xe.key)&&(xe.preventDefault(),Ce(!0,xe)),M?.(xe))},ne=xe=>{!Z&&C&&(Object.defineProperty(xe,"target",{writable:!0,value:{value:D,name:S}}),C(xe))};delete B["aria-invalid"];let ie,Ee;const pe=[];let he=!1,Me=!1;(dl({value:D})||h)&&(N?ie=N(D):he=!0);const We=we.map(xe=>{if(!I.isValidElement(xe))return null;process.env.NODE_ENV!=="production"&&kr.isFragment(xe)&&console.error(["MUI: The Select component doesn't accept a Fragment as a child.","Consider providing an array instead."].join(`
|
|
194
|
-
`));let ce;if(k){if(!Array.isArray(D))throw new Error(process.env.NODE_ENV!=="production"?"MUI: The `value` prop must be an array when using the `Select` component with `multiple`.":Qn(2));ce=D.some(De=>zg(De,xe.props.value)),ce&&he&&pe.push(xe.props.children)}else ce=zg(D,xe.props.value),ce&&he&&(Ee=xe.props.children);return ce&&(Me=!0),I.cloneElement(xe,{"aria-selected":ce?"true":"false",onClick:Oe(xe),onKeyUp:De=>{De.key===" "&&De.preventDefault(),xe.props.onKeyUp&&xe.props.onKeyUp(De)},role:"option",selected:ce,value:void 0,"data-value":xe.props.value})});process.env.NODE_ENV!=="production"&&I.useEffect(()=>{if(!Me&&!k&&D!==""){const xe=we.map(ce=>ce.props.value);console.warn([`MUI: You have provided an out-of-range value \`${D}\` for the select ${S?`(name="${S}") `:""}component.`,"Consider providing a value that matches one of the available options or ''.",`The available values are ${xe.filter(ce=>ce!=null).map(ce=>`\`${ce}\``).join(", ")||'""'}.`].join(`
|
|
195
|
-
`))}},[Me,we,k,S,D]),he&&(k?pe.length===0?ie=null:ie=pe.reduce((xe,ce,De)=>(xe.push(ce),De<pe.length-1&&xe.push(", "),xe),[]):ie=Ee);let rt=W;!a&&le&&K&&(rt=se.clientWidth);let be;typeof $<"u"?be=$:be=f?null:0;const wt=R.id||(S?`mui-component-select-${S}`:void 0),yt={...t,variant:H,value:D,open:Z,error:m},tt=y5(yt),Xt={...v.PaperProps,...typeof v.slotProps?.paper=="function"?v.slotProps.paper(yt):v.slotProps?.paper},_n={...v.MenuListProps,...typeof v.slotProps?.list=="function"?v.slotProps.list(yt):v.slotProps?.list},Jn=io();return p.jsxs(I.Fragment,{children:[p.jsx(p5,{as:"div",ref:fe,tabIndex:be,role:"combobox","aria-controls":Z?Jn:void 0,"aria-disabled":f?"true":void 0,"aria-expanded":Z?"true":"false","aria-haspopup":"listbox","aria-label":o,"aria-labelledby":[b,wt].filter(Boolean).join(" ")||void 0,"aria-describedby":r,"aria-required":P?"true":void 0,"aria-invalid":m?"true":void 0,onKeyDown:ge,onMouseDown:f||O?null:Te,onBlur:ne,onFocus:E,...R,ownerState:yt,className:me(R.className,tt.select,c),id:wt,children:g5(ie)?Wg||(Wg=p.jsx("span",{className:"notranslate","aria-hidden":!0,children:""})):ie}),p.jsx(m5,{"aria-invalid":m,value:Array.isArray(D)?D.join(","):D,name:S,ref:G,"aria-hidden":!0,onChange:Re,tabIndex:-1,disabled:f,className:tt.nativeInput,autoFocus:s,required:P,...B,ownerState:yt}),p.jsx(h5,{as:g,className:tt.icon,ownerState:yt}),p.jsx(Ig,{id:`menu-${S||""}`,anchorEl:se,open:Z,onClose:ke,anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"center"},...v,slotProps:{...v.slotProps,list:{"aria-labelledby":b,role:"listbox","aria-multiselectable":k?"true":void 0,disableListWrap:!0,id:Jn,..._n},paper:{...Xt,style:{minWidth:rt,...Xt!=null?Xt.style:null}}},children:We})]})});process.env.NODE_ENV!=="production"&&(Vg.propTypes={"aria-describedby":i.string,"aria-label":i.string,autoFocus:i.bool,autoWidth:i.bool,children:i.node,classes:i.object,className:i.string,defaultOpen:i.bool,defaultValue:i.any,disabled:i.bool,displayEmpty:i.bool,error:i.bool,IconComponent:i.elementType.isRequired,inputRef:pn,labelId:i.string,MenuProps:i.object,multiple:i.bool,name:i.string,onBlur:i.func,onChange:i.func,onClose:i.func,onFocus:i.func,onOpen:i.func,open:i.bool,readOnly:i.bool,renderValue:i.func,required:i.bool,SelectDisplayProps:i.object,tabIndex:i.oneOfType([i.number,i.string]),type:i.any,value:i.any,variant:i.oneOf(["standard","outlined","filled"])});const b5=e=>{const{classes:t}=e,r=$e({root:["root"]},Fg,t);return{...t,...r}},zd={name:"MuiSelect",slot:"Root",shouldForwardProp:e=>xn(e)&&e!=="variant"},v5=te(wl,zd)(""),x5=te(Cl,zd)(""),w5=te(xl,zd)(""),Vd=I.forwardRef(function(t,n){const r=Fe({name:"MuiSelect",props:t}),{autoWidth:o=!1,children:s,classes:a={},className:l,defaultOpen:c=!1,displayEmpty:d=!1,IconComponent:u=$E,id:f,input:h,inputProps:m,label:g,labelId:y,MenuProps:b,multiple:v=!1,native:k=!1,onClose:S,onOpen:C,open:w,renderValue:T,SelectDisplayProps:E,variant:M="outlined",...j}=r,A=k?Rg:Vg,L=Ur(),O=Jo({props:r,muiFormControl:L,states:["variant","error"]}),N=O.variant||M,P={...r,variant:N,classes:a},R=b5(P),{root:$,..._}=R,U=h||{standard:p.jsx(v5,{ownerState:P}),outlined:p.jsx(x5,{label:g,ownerState:P}),filled:p.jsx(w5,{ownerState:P})}[N],H=Ut(n,Zo(U));return p.jsx(I.Fragment,{children:I.cloneElement(U,{inputComponent:A,inputProps:{children:s,error:O.error,IconComponent:u,variant:N,type:void 0,multiple:v,...k?{id:f}:{autoWidth:o,defaultOpen:c,displayEmpty:d,labelId:y,MenuProps:b,onClose:S,onOpen:C,open:w,renderValue:T,SelectDisplayProps:{id:f,...E}},...m,classes:m?Ht(_,m.classes):_,...h?h.props.inputProps:{}},...(v&&k||d)&&N==="outlined"?{notched:!0}:{},ref:H,className:me(U.props.className,l,R.root),...!h&&{variant:N},...j})})});process.env.NODE_ENV!=="production"&&(Vd.propTypes={autoWidth:i.bool,children:i.node,classes:i.object,className:i.string,defaultOpen:i.bool,defaultValue:i.any,displayEmpty:i.bool,IconComponent:i.elementType,id:i.string,input:i.element,inputProps:i.object,label:i.node,labelId:i.string,MenuProps:i.object,multiple:i.bool,native:i.bool,onChange:i.func,onClose:i.func,onOpen:i.func,open:i.bool,renderValue:i.func,SelectDisplayProps:i.object,sx:i.oneOfType([i.arrayOf(i.oneOfType([i.func,i.object,i.bool])),i.func,i.object]),value:i.oneOfType([i.oneOf([""]),i.any]),variant:i.oneOf(["filled","outlined","standard"])}),Vd.muiName="Select";function S5(e){return Ae("MuiSkeleton",e)}Ne("MuiSkeleton",["root","text","rectangular","rounded","circular","pulse","wave","withChildren","fitContent","heightAuto"]);const C5=e=>{const{classes:t,variant:n,animation:r,hasChildren:o,width:s,height:a}=e;return $e({root:["root",n,r,o&&"withChildren",o&&!s&&"fitContent",o&&!a&&"heightAuto"]},S5,t)},Hd=Br`
|
|
196
|
-
0% {
|
|
197
|
-
opacity: 1;
|
|
198
|
-
}
|
|
199
|
-
|
|
200
|
-
50% {
|
|
201
|
-
opacity: 0.4;
|
|
202
|
-
}
|
|
203
|
-
|
|
204
|
-
100% {
|
|
205
|
-
opacity: 1;
|
|
206
|
-
}
|
|
207
|
-
`,Ud=Br`
|
|
208
|
-
0% {
|
|
209
|
-
transform: translateX(-100%);
|
|
210
|
-
}
|
|
211
|
-
|
|
212
|
-
50% {
|
|
213
|
-
/* +0.5s of delay between each loop */
|
|
214
|
-
transform: translateX(100%);
|
|
215
|
-
}
|
|
216
|
-
|
|
217
|
-
100% {
|
|
218
|
-
transform: translateX(100%);
|
|
219
|
-
}
|
|
220
|
-
`,T5=typeof Hd!="string"?Vs`
|
|
221
|
-
animation: ${Hd} 2s ease-in-out 0.5s infinite;
|
|
222
|
-
`:null,k5=typeof Ud!="string"?Vs`
|
|
223
|
-
&::after {
|
|
224
|
-
animation: ${Ud} 2s linear 0.5s infinite;
|
|
225
|
-
}
|
|
226
|
-
`:null,E5=te("span",{name:"MuiSkeleton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],n.animation!==!1&&t[n.animation],n.hasChildren&&t.withChildren,n.hasChildren&&!n.width&&t.fitContent,n.hasChildren&&!n.height&&t.heightAuto]}})(_e(({theme:e})=>{const t=rT(e.shape.borderRadius)||"px",n=oT(e.shape.borderRadius);return{display:"block",backgroundColor:e.vars?e.vars.palette.Skeleton.bg:e.alpha(e.palette.text.primary,e.palette.mode==="light"?.11:.13),height:"1.2em",variants:[{props:{variant:"text"},style:{marginTop:0,marginBottom:0,height:"auto",transformOrigin:"0 55%",transform:"scale(1, 0.60)",borderRadius:`${n}${t}/${Math.round(n/.6*10)/10}${t}`,"&:empty:before":{content:'"\\00a0"'}}},{props:{variant:"circular"},style:{borderRadius:"50%"}},{props:{variant:"rounded"},style:{borderRadius:(e.vars||e).shape.borderRadius}},{props:({ownerState:r})=>r.hasChildren,style:{"& > *":{visibility:"hidden"}}},{props:({ownerState:r})=>r.hasChildren&&!r.width,style:{maxWidth:"fit-content"}},{props:({ownerState:r})=>r.hasChildren&&!r.height,style:{height:"auto"}},{props:{animation:"pulse"},style:T5||{animation:`${Hd} 2s ease-in-out 0.5s infinite`}},{props:{animation:"wave"},style:{position:"relative",overflow:"hidden",WebkitMaskImage:"-webkit-radial-gradient(white, black)","&::after":{background:`linear-gradient(
|
|
227
|
-
90deg,
|
|
228
|
-
transparent,
|
|
229
|
-
${(e.vars||e).palette.action.hover},
|
|
230
|
-
transparent
|
|
231
|
-
)`,content:'""',position:"absolute",transform:"translateX(-100%)",bottom:0,left:0,right:0,top:0}}},{props:{animation:"wave"},style:k5||{"&::after":{animation:`${Ud} 2s linear 0.5s infinite`}}}]}})),fr=I.forwardRef(function(t,n){const r=Fe({props:t,name:"MuiSkeleton"}),{animation:o="pulse",className:s,component:a="span",height:l,style:c,variant:d="text",width:u,...f}=r,h={...r,animation:o,component:a,variant:d,hasChildren:!!f.children},m=C5(h);return p.jsx(E5,{as:a,ref:n,className:me(m.root,s),ownerState:h,...f,style:{width:u,height:l,...c}})});process.env.NODE_ENV!=="production"&&(fr.propTypes={animation:i.oneOf(["pulse","wave",!1]),children:i.node,classes:i.object,className:i.string,component:i.elementType,height:i.oneOfType([i.number,i.string]),style:i.object,sx:i.oneOfType([i.arrayOf(i.oneOfType([i.func,i.object,i.bool])),i.func,i.object]),variant:i.oneOfType([i.oneOf(["circular","rectangular","rounded","text"]),i.string]),width:i.oneOfType([i.number,i.string])});function O5(e){return Ae("MuiTooltip",e)}const At=Ne("MuiTooltip",["popper","popperInteractive","popperArrow","popperClose","tooltip","tooltipArrow","touch","tooltipPlacementLeft","tooltipPlacementRight","tooltipPlacementTop","tooltipPlacementBottom","arrow"]);function M5(e){return Math.round(e*1e5)/1e5}const P5=e=>{const{classes:t,disableInteractive:n,arrow:r,touch:o,placement:s}=e,a={popper:["popper",!n&&"popperInteractive",r&&"popperArrow"],tooltip:["tooltip",r&&"tooltipArrow",o&&"touch",`tooltipPlacement${Q(s.split("-")[0])}`],arrow:["arrow"]};return $e(a,O5,t)},j5=te(fi,{name:"MuiTooltip",slot:"Popper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.popper,!n.disableInteractive&&t.popperInteractive,n.arrow&&t.popperArrow,!n.open&&t.popperClose]}})(_e(({theme:e})=>({zIndex:(e.vars||e).zIndex.tooltip,pointerEvents:"none",variants:[{props:({ownerState:t})=>!t.disableInteractive,style:{pointerEvents:"auto"}},{props:({open:t})=>!t,style:{pointerEvents:"none"}},{props:({ownerState:t})=>t.arrow,style:{[`&[data-popper-placement*="bottom"] .${At.arrow}`]:{top:0,marginTop:"-0.71em","&::before":{transformOrigin:"0 100%"}},[`&[data-popper-placement*="top"] .${At.arrow}`]:{bottom:0,marginBottom:"-0.71em","&::before":{transformOrigin:"100% 0"}},[`&[data-popper-placement*="right"] .${At.arrow}`]:{height:"1em",width:"0.71em","&::before":{transformOrigin:"100% 100%"}},[`&[data-popper-placement*="left"] .${At.arrow}`]:{height:"1em",width:"0.71em","&::before":{transformOrigin:"0 0"}}}},{props:({ownerState:t})=>t.arrow&&!t.isRtl,style:{[`&[data-popper-placement*="right"] .${At.arrow}`]:{left:0,marginLeft:"-0.71em"}}},{props:({ownerState:t})=>t.arrow&&!!t.isRtl,style:{[`&[data-popper-placement*="right"] .${At.arrow}`]:{right:0,marginRight:"-0.71em"}}},{props:({ownerState:t})=>t.arrow&&!t.isRtl,style:{[`&[data-popper-placement*="left"] .${At.arrow}`]:{right:0,marginRight:"-0.71em"}}},{props:({ownerState:t})=>t.arrow&&!!t.isRtl,style:{[`&[data-popper-placement*="left"] .${At.arrow}`]:{left:0,marginLeft:"-0.71em"}}}]}))),I5=te("div",{name:"MuiTooltip",slot:"Tooltip",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.tooltip,n.touch&&t.touch,n.arrow&&t.tooltipArrow,t[`tooltipPlacement${Q(n.placement.split("-")[0])}`]]}})(_e(({theme:e})=>({backgroundColor:e.vars?e.vars.palette.Tooltip.bg:e.alpha(e.palette.grey[700],.92),borderRadius:(e.vars||e).shape.borderRadius,color:(e.vars||e).palette.common.white,fontFamily:e.typography.fontFamily,padding:"4px 8px",fontSize:e.typography.pxToRem(11),maxWidth:300,margin:2,wordWrap:"break-word",fontWeight:e.typography.fontWeightMedium,[`.${At.popper}[data-popper-placement*="left"] &`]:{transformOrigin:"right center"},[`.${At.popper}[data-popper-placement*="right"] &`]:{transformOrigin:"left center"},[`.${At.popper}[data-popper-placement*="top"] &`]:{transformOrigin:"center bottom",marginBottom:"14px"},[`.${At.popper}[data-popper-placement*="bottom"] &`]:{transformOrigin:"center top",marginTop:"14px"},variants:[{props:({ownerState:t})=>t.arrow,style:{position:"relative",margin:0}},{props:({ownerState:t})=>t.touch,style:{padding:"8px 16px",fontSize:e.typography.pxToRem(14),lineHeight:`${M5(16/14)}em`,fontWeight:e.typography.fontWeightRegular}},{props:({ownerState:t})=>!t.isRtl,style:{[`.${At.popper}[data-popper-placement*="left"] &`]:{marginRight:"14px"},[`.${At.popper}[data-popper-placement*="right"] &`]:{marginLeft:"14px"}}},{props:({ownerState:t})=>!t.isRtl&&t.touch,style:{[`.${At.popper}[data-popper-placement*="left"] &`]:{marginRight:"24px"},[`.${At.popper}[data-popper-placement*="right"] &`]:{marginLeft:"24px"}}},{props:({ownerState:t})=>!!t.isRtl,style:{[`.${At.popper}[data-popper-placement*="left"] &`]:{marginLeft:"14px"},[`.${At.popper}[data-popper-placement*="right"] &`]:{marginRight:"14px"}}},{props:({ownerState:t})=>!!t.isRtl&&t.touch,style:{[`.${At.popper}[data-popper-placement*="left"] &`]:{marginLeft:"24px"},[`.${At.popper}[data-popper-placement*="right"] &`]:{marginRight:"24px"}}},{props:({ownerState:t})=>t.touch,style:{[`.${At.popper}[data-popper-placement*="top"] &`]:{marginBottom:"24px"}}},{props:({ownerState:t})=>t.touch,style:{[`.${At.popper}[data-popper-placement*="bottom"] &`]:{marginTop:"24px"}}}]}))),D5=te("span",{name:"MuiTooltip",slot:"Arrow"})(_e(({theme:e})=>({overflow:"hidden",position:"absolute",width:"1em",height:"0.71em",boxSizing:"border-box",color:e.vars?e.vars.palette.Tooltip.bg:e.alpha(e.palette.grey[700],.9),"&::before":{content:'""',margin:"auto",display:"block",width:"100%",height:"100%",backgroundColor:"currentColor",transform:"rotate(45deg)"}})));let Tl=!1;const Hg=new Za;let Ti={x:0,y:0};function kl(e,t){return(n,...r)=>{t&&t(n,...r),e(n,...r)}}const rs=I.forwardRef(function(t,n){const r=Fe({props:t,name:"MuiTooltip"}),{arrow:o=!1,children:s,classes:a,components:l={},componentsProps:c={},describeChild:d=!1,disableFocusListener:u=!1,disableHoverListener:f=!1,disableInteractive:h=!1,disableTouchListener:m=!1,enterDelay:g=100,enterNextDelay:y=0,enterTouchDelay:b=700,followCursor:v=!1,id:k,leaveDelay:S=0,leaveTouchDelay:C=1500,onClose:w,onOpen:T,open:E,placement:M="bottom",PopperComponent:j,PopperProps:A={},slotProps:L={},slots:O={},title:N,TransitionComponent:P,TransitionProps:R,...$}=r,_=I.isValidElement(s)?s:p.jsx("span",{children:s}),U=mt(),H=Fo(),[B,D]=I.useState(),[z,V]=I.useState(null),X=I.useRef(!1),G=h||v,Y=Uo(),K=Uo(),ae=Uo(),le=Uo(),[W,ee]=ti({controlled:E,default:!1,name:"Tooltip",state:"open"});let F=W;if(process.env.NODE_ENV!=="production"){const{current:Le}=I.useRef(E!==void 0);I.useEffect(()=>{B&&B.disabled&&!Le&&N!==""&&B.tagName.toLowerCase()==="button"&&console.warn(["MUI: You are providing a disabled `button` child to the Tooltip component.","A disabled element does not fire events.","Tooltip needs to listen to the child element's events to display the title.","","Add a simple wrapper element, such as a `span`."].join(`
|
|
232
|
-
`))},[N,B,Le])}const fe=io(k),se=I.useRef(),Z=Mn(()=>{se.current!==void 0&&(document.body.style.WebkitUserSelect=se.current,se.current=void 0),le.clear()});I.useEffect(()=>Z,[Z]);const Ce=Le=>{Hg.clear(),Tl=!0,ee(!0),T&&!F&&T(Le)},Te=Mn(Le=>{Hg.start(800+S,()=>{Tl=!1}),ee(!1),w&&F&&w(Le),Y.start(U.transitions.duration.shortest,()=>{X.current=!1})}),ke=Le=>{X.current&&Le.type!=="touchstart"||(B&&B.removeAttribute("title"),K.clear(),ae.clear(),g||Tl&&y?K.start(Tl?y:g,()=>{Ce(Le)}):Ce(Le))},we=Le=>{K.clear(),ae.start(S,()=>{Te(Le)})},[,Re]=I.useState(!1),Oe=Le=>{el(Le.target)||(Re(!1),we(Le))},ge=Le=>{B||D(Le.currentTarget),el(Le.target)&&(Re(!0),ke(Le))},ne=Le=>{X.current=!0;const Zt=_.props;Zt.onTouchStart&&Zt.onTouchStart(Le)},ie=Le=>{ne(Le),ae.clear(),Y.clear(),Z(),se.current=document.body.style.WebkitUserSelect,document.body.style.WebkitUserSelect="none",le.start(b,()=>{document.body.style.WebkitUserSelect=se.current,ke(Le)})},Ee=Le=>{_.props.onTouchEnd&&_.props.onTouchEnd(Le),Z(),ae.start(C,()=>{Te(Le)})};I.useEffect(()=>{if(!F)return;function Le(Zt){Zt.key==="Escape"&&Te(Zt)}return document.addEventListener("keydown",Le),()=>{document.removeEventListener("keydown",Le)}},[Te,F]);const pe=Ut(Zo(_),D,n);!N&&N!==0&&(F=!1);const he=I.useRef(),Me=Le=>{const Zt=_.props;Zt.onMouseMove&&Zt.onMouseMove(Le),Ti={x:Le.clientX,y:Le.clientY},he.current&&he.current.update()},We={},rt=typeof N=="string";d?(We.title=!F&&rt&&!f?N:null,We["aria-describedby"]=F?fe:null):(We["aria-label"]=rt?N:null,We["aria-labelledby"]=F&&!rt?fe:null);const be={...We,...$,..._.props,className:me($.className,_.props.className),onTouchStart:ne,ref:pe,...v?{onMouseMove:Me}:{}};process.env.NODE_ENV!=="production"&&(be["data-mui-internal-clone-element"]=!0,I.useEffect(()=>{B&&!B.getAttribute("data-mui-internal-clone-element")&&console.error(["MUI: The `children` component of the Tooltip is not forwarding its props correctly.","Please make sure that props are spread on the same element that the ref is applied to."].join(`
|
|
233
|
-
`))},[B]));const wt={};m||(be.onTouchStart=ie,be.onTouchEnd=Ee),f||(be.onMouseOver=kl(ke,be.onMouseOver),be.onMouseLeave=kl(we,be.onMouseLeave),G||(wt.onMouseOver=ke,wt.onMouseLeave=we)),u||(be.onFocus=kl(ge,be.onFocus),be.onBlur=kl(Oe,be.onBlur),G||(wt.onFocus=ge,wt.onBlur=Oe)),process.env.NODE_ENV!=="production"&&_.props.title&&console.error(["MUI: You have provided a `title` prop to the child of <Tooltip />.",`Remove this title prop \`${_.props.title}\` or the Tooltip component.`].join(`
|
|
234
|
-
`));const yt={...r,isRtl:H,arrow:o,disableInteractive:G,placement:M,PopperComponentProp:j,touch:X.current},tt=typeof L.popper=="function"?L.popper(yt):L.popper,Xt=I.useMemo(()=>{let Le=[{name:"arrow",enabled:!!z,options:{element:z,padding:4}}];return A.popperOptions?.modifiers&&(Le=Le.concat(A.popperOptions.modifiers)),tt?.popperOptions?.modifiers&&(Le=Le.concat(tt.popperOptions.modifiers)),{...A.popperOptions,...tt?.popperOptions,modifiers:Le}},[z,A.popperOptions,tt?.popperOptions]),_n=P5(yt),Jn=typeof L.transition=="function"?L.transition(yt):L.transition,xe={slots:{popper:l.Popper,transition:l.Transition??P,tooltip:l.Tooltip,arrow:l.Arrow,...O},slotProps:{arrow:L.arrow??c.arrow,popper:{...A,...tt??c.popper},tooltip:L.tooltip??c.tooltip,transition:{...R,...Jn??c.transition}}},[ce,De]=Ye("popper",{elementType:j5,externalForwardedProps:xe,ownerState:yt,className:me(_n.popper,A?.className)}),[Pe,Xe]=Ye("transition",{elementType:vi,externalForwardedProps:xe,ownerState:yt}),[Vt,Ze]=Ye("tooltip",{elementType:I5,className:_n.tooltip,externalForwardedProps:xe,ownerState:yt}),[Fn,no]=Ye("arrow",{elementType:D5,className:_n.arrow,externalForwardedProps:xe,ownerState:yt,ref:V});return p.jsxs(I.Fragment,{children:[I.cloneElement(_,be),p.jsx(ce,{as:j??fi,placement:M,anchorEl:v?{getBoundingClientRect:()=>({top:Ti.y,left:Ti.x,right:Ti.x,bottom:Ti.y,width:0,height:0})}:B,popperRef:he,open:B?F:!1,id:fe,transition:!0,...wt,...De,popperOptions:Xt,children:({TransitionProps:Le})=>p.jsx(Pe,{timeout:U.transitions.duration.shorter,...Le,...Xe,children:p.jsxs(Vt,{...Ze,children:[N,o?p.jsx(Fn,{...no}):null]})})})]})});process.env.NODE_ENV!=="production"&&(rs.propTypes={arrow:i.bool,children:es.isRequired,classes:i.object,className:i.string,components:i.shape({Arrow:i.elementType,Popper:i.elementType,Tooltip:i.elementType,Transition:i.elementType}),componentsProps:i.shape({arrow:i.object,popper:i.object,tooltip:i.object,transition:i.object}),describeChild:i.bool,disableFocusListener:i.bool,disableHoverListener:i.bool,disableInteractive:i.bool,disableTouchListener:i.bool,enterDelay:i.number,enterNextDelay:i.number,enterTouchDelay:i.number,followCursor:i.bool,id:i.string,leaveDelay:i.number,leaveTouchDelay:i.number,onClose:i.func,onOpen:i.func,open:i.bool,placement:i.oneOf(["auto-end","auto-start","auto","bottom-end","bottom-start","bottom","left-end","left-start","left","right-end","right-start","right","top-end","top-start","top"]),PopperComponent:i.elementType,PopperProps:i.object,slotProps:i.shape({arrow:i.oneOfType([i.func,i.object]),popper:i.oneOfType([i.func,i.object]),tooltip:i.oneOfType([i.func,i.object]),transition:i.oneOfType([i.func,i.object])}),slots:i.shape({arrow:i.elementType,popper:i.elementType,tooltip:i.elementType,transition:i.elementType}),sx:i.oneOfType([i.arrayOf(i.oneOfType([i.func,i.object,i.bool])),i.func,i.object]),title:i.node,TransitionComponent:i.elementType,TransitionProps:i.object});const qe=kC({createStyledComponent:te("div",{name:"MuiStack",slot:"Root"}),useThemeProps:e=>Fe({props:e,name:"MuiStack"})});process.env.NODE_ENV!=="production"&&(qe.propTypes={children:i.node,component:i.elementType,direction:i.oneOfType([i.oneOf(["column-reverse","column","row-reverse","row"]),i.arrayOf(i.oneOf(["column-reverse","column","row-reverse","row"])),i.object]),divider:i.node,spacing:i.oneOfType([i.arrayOf(i.oneOfType([i.number,i.string])),i.number,i.object,i.string]),sx:i.oneOfType([i.arrayOf(i.oneOfType([i.func,i.object,i.bool])),i.func,i.object]),useFlexGap:i.bool});function A5(e){return Ae("MuiSwitch",e)}const on=Ne("MuiSwitch",["root","edgeStart","edgeEnd","switchBase","colorPrimary","colorSecondary","sizeSmall","sizeMedium","checked","disabled","input","thumb","track"]),R5=e=>{const{classes:t,edge:n,size:r,color:o,checked:s,disabled:a}=e,l={root:["root",n&&`edge${Q(n)}`,`size${Q(r)}`],switchBase:["switchBase",`color${Q(o)}`,s&&"checked",a&&"disabled"],thumb:["thumb"],track:["track"],input:["input"]},c=$e(l,A5,t);return{...t,...c}},N5=te("span",{name:"MuiSwitch",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.edge&&t[`edge${Q(n.edge)}`],t[`size${Q(n.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,[`& .${on.thumb}`]:{width:16,height:16},[`& .${on.switchBase}`]:{padding:4,[`&.${on.checked}`]:{transform:"translateX(16px)"}}}}]}),$5=te(jd,{name:"MuiSwitch",slot:"SwitchBase",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.switchBase,{[`& .${on.input}`]:t.input},n.color!=="default"&&t[`color${Q(n.color)}`]]}})(_e(({theme:e})=>({position:"absolute",top:0,left:0,zIndex:1,color:e.vars?e.vars.palette.Switch.defaultColor:`${e.palette.mode==="light"?e.palette.common.white:e.palette.grey[300]}`,transition:e.transitions.create(["left","transform"],{duration:e.transitions.duration.shortest}),[`&.${on.checked}`]:{transform:"translateX(20px)"},[`&.${on.disabled}`]:{color:e.vars?e.vars.palette.Switch.defaultDisabledColor:`${e.palette.mode==="light"?e.palette.grey[100]:e.palette.grey[600]}`},[`&.${on.checked} + .${on.track}`]:{opacity:.5},[`&.${on.disabled} + .${on.track}`]:{opacity:e.vars?e.vars.opacity.switchTrackDisabled:`${e.palette.mode==="light"?.12:.2}`},[`& .${on.input}`]:{left:"-100%",width:"300%"}})),_e(({theme:e})=>({"&:hover":{backgroundColor:e.alpha((e.vars||e).palette.action.active,(e.vars||e).palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},variants:[...Object.entries(e.palette).filter(Ft(["light"])).map(([t])=>({props:{color:t},style:{[`&.${on.checked}`]:{color:(e.vars||e).palette[t].main,"&:hover":{backgroundColor:e.alpha((e.vars||e).palette[t].main,(e.vars||e).palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${on.disabled}`]:{color:e.vars?e.vars.palette.Switch[`${t}DisabledColor`]:`${e.palette.mode==="light"?e.lighten(e.palette[t].main,.62):e.darken(e.palette[t].main,.55)}`}},[`&.${on.checked} + .${on.track}`]:{backgroundColor:(e.vars||e).palette[t].main}}}))]}))),L5=te("span",{name:"MuiSwitch",slot:"Track"})(_e(({theme:e})=>({height:"100%",width:"100%",borderRadius:14/2,zIndex:-1,transition:e.transitions.create(["opacity","background-color"],{duration:e.transitions.duration.shortest}),backgroundColor:e.vars?e.vars.palette.common.onBackground:`${e.palette.mode==="light"?e.palette.common.black:e.palette.common.white}`,opacity:e.vars?e.vars.opacity.switchTrack:`${e.palette.mode==="light"?.38:.3}`}))),B5=te("span",{name:"MuiSwitch",slot:"Thumb"})(_e(({theme:e})=>({boxShadow:(e.vars||e).shadows[1],backgroundColor:"currentColor",width:20,height:20,borderRadius:"50%"}))),Ug=I.forwardRef(function(t,n){const r=Fe({props:t,name:"MuiSwitch"}),{className:o,color:s="primary",edge:a=!1,size:l="medium",sx:c,slots:d={},slotProps:u={},...f}=r,h={...r,color:s,edge:a,size:l},m=R5(h),g={slots:d,slotProps:u},[y,b]=Ye("root",{className:me(m.root,o),elementType:N5,externalForwardedProps:g,ownerState:h,additionalProps:{sx:c}}),[v,k]=Ye("thumb",{className:m.thumb,elementType:B5,externalForwardedProps:g,ownerState:h}),S=p.jsx(v,{...k}),[C,w]=Ye("track",{className:m.track,elementType:L5,externalForwardedProps:g,ownerState:h});return p.jsxs(y,{...b,children:[p.jsx($5,{type:"checkbox",icon:S,checkedIcon:S,ref:n,ownerState:h,...f,classes:{...m,root:m.switchBase},slots:{...d.switchBase&&{root:d.switchBase},...d.input&&{input:d.input}},slotProps:{...u.switchBase&&{root:typeof u.switchBase=="function"?u.switchBase(h):u.switchBase},input:{role:"switch"},...u.input&&{input:typeof u.input=="function"?u.input(h):u.input}}}),p.jsx(C,{...w})]})});process.env.NODE_ENV!=="production"&&(Ug.propTypes={checked:i.bool,checkedIcon:i.node,classes:i.object,className:i.string,color:i.oneOfType([i.oneOf(["default","primary","secondary","error","info","success","warning"]),i.string]),defaultChecked:i.bool,disabled:i.bool,disableRipple:i.bool,edge:i.oneOf(["end","start",!1]),icon:i.node,id:i.string,inputProps:i.object,inputRef:pn,onChange:i.func,required:i.bool,size:i.oneOfType([i.oneOf(["medium","small"]),i.string]),slotProps:i.shape({input:i.oneOfType([i.func,i.object]),root:i.oneOfType([i.func,i.object]),switchBase:i.oneOfType([i.func,i.object]),thumb:i.oneOfType([i.func,i.object]),track:i.oneOfType([i.func,i.object])}),slots:i.shape({input:i.elementType,root:i.elementType,switchBase:i.elementType,thumb:i.elementType,track:i.elementType}),sx:i.oneOfType([i.arrayOf(i.oneOfType([i.func,i.object,i.bool])),i.func,i.object]),value:i.any});function _5(e){return Ae("MuiTab",e)}const An=Ne("MuiTab",["root","labelIcon","textColorInherit","textColorPrimary","textColorSecondary","selected","disabled","fullWidth","wrapped","iconWrapper","icon"]),F5=e=>{const{classes:t,textColor:n,fullWidth:r,wrapped:o,icon:s,label:a,selected:l,disabled:c}=e,d={root:["root",s&&a&&"labelIcon",`textColor${Q(n)}`,r&&"fullWidth",o&&"wrapped",l&&"selected",c&&"disabled"],icon:["iconWrapper","icon"]};return $e(d,_5,t)},W5=te(lr,{name:"MuiTab",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.label&&n.icon&&t.labelIcon,t[`textColor${Q(n.textColor)}`],n.fullWidth&&t.fullWidth,n.wrapped&&t.wrapped,{[`& .${An.iconWrapper}`]:t.iconWrapper},{[`& .${An.icon}`]:t.icon}]}})(_e(({theme:e})=>({...e.typography.button,maxWidth:360,minWidth:90,position:"relative",minHeight:48,flexShrink:0,padding:"12px 16px",overflow:"hidden",whiteSpace:"normal",textAlign:"center",lineHeight:1.25,variants:[{props:({ownerState:t})=>t.label&&(t.iconPosition==="top"||t.iconPosition==="bottom"),style:{flexDirection:"column"}},{props:({ownerState:t})=>t.label&&t.iconPosition!=="top"&&t.iconPosition!=="bottom",style:{flexDirection:"row"}},{props:({ownerState:t})=>t.icon&&t.label,style:{minHeight:72,paddingTop:9,paddingBottom:9}},{props:({ownerState:t,iconPosition:n})=>t.icon&&t.label&&n==="top",style:{[`& > .${An.icon}`]:{marginBottom:6}}},{props:({ownerState:t,iconPosition:n})=>t.icon&&t.label&&n==="bottom",style:{[`& > .${An.icon}`]:{marginTop:6}}},{props:({ownerState:t,iconPosition:n})=>t.icon&&t.label&&n==="start",style:{[`& > .${An.icon}`]:{marginRight:e.spacing(1)}}},{props:({ownerState:t,iconPosition:n})=>t.icon&&t.label&&n==="end",style:{[`& > .${An.icon}`]:{marginLeft:e.spacing(1)}}},{props:{textColor:"inherit"},style:{color:"inherit",opacity:.6,[`&.${An.selected}`]:{opacity:1},[`&.${An.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity}}},{props:{textColor:"primary"},style:{color:(e.vars||e).palette.text.secondary,[`&.${An.selected}`]:{color:(e.vars||e).palette.primary.main},[`&.${An.disabled}`]:{color:(e.vars||e).palette.text.disabled}}},{props:{textColor:"secondary"},style:{color:(e.vars||e).palette.text.secondary,[`&.${An.selected}`]:{color:(e.vars||e).palette.secondary.main},[`&.${An.disabled}`]:{color:(e.vars||e).palette.text.disabled}}},{props:({ownerState:t})=>t.fullWidth,style:{flexShrink:1,flexGrow:1,flexBasis:0,maxWidth:"none"}},{props:({ownerState:t})=>t.wrapped,style:{fontSize:e.typography.pxToRem(12)}}]}))),Yg=I.forwardRef(function(t,n){const r=Fe({props:t,name:"MuiTab"}),{className:o,disabled:s=!1,disableFocusRipple:a=!1,fullWidth:l,icon:c,iconPosition:d="top",indicator:u,label:f,onChange:h,onClick:m,onFocus:g,selected:y,selectionFollowsFocus:b,textColor:v="inherit",value:k,wrapped:S=!1,...C}=r,w={...r,disabled:s,disableFocusRipple:a,selected:y,icon:!!c,iconPosition:d,label:!!f,fullWidth:l,textColor:v,wrapped:S},T=F5(w),E=c&&f&&I.isValidElement(c)?I.cloneElement(c,{className:me(T.icon,c.props.className)}):c,M=A=>{!y&&h&&h(A,k),m&&m(A)},j=A=>{b&&!y&&h&&h(A,k),g&&g(A)};return p.jsxs(W5,{focusRipple:!a,className:me(T.root,o),ref:n,role:"tab","aria-selected":y,disabled:s,onClick:M,onFocus:j,ownerState:w,tabIndex:y?0:-1,...C,children:[d==="top"||d==="start"?p.jsxs(I.Fragment,{children:[E,f]}):p.jsxs(I.Fragment,{children:[f,E]}),u]})});process.env.NODE_ENV!=="production"&&(Yg.propTypes={children:cm,classes:i.object,className:i.string,disabled:i.bool,disableFocusRipple:i.bool,disableRipple:i.bool,icon:i.oneOfType([i.element,i.string]),iconPosition:i.oneOf(["bottom","end","start","top"]),label:i.node,onChange:i.func,onClick:i.func,onFocus:i.func,sx:i.oneOfType([i.arrayOf(i.oneOfType([i.func,i.object,i.bool])),i.func,i.object]),value:i.any,wrapped:i.bool});const Yd=I.createContext();process.env.NODE_ENV!=="production"&&(Yd.displayName="TableContext");function z5(e){return Ae("MuiTable",e)}Ne("MuiTable",["root","stickyHeader"]);const V5=e=>{const{classes:t,stickyHeader:n}=e;return $e({root:["root",n&&"stickyHeader"]},z5,t)},H5=te("table",{name:"MuiTable",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.stickyHeader&&t.stickyHeader]}})(_e(({theme:e})=>({display:"table",width:"100%",borderCollapse:"collapse",borderSpacing:0,"& caption":{...e.typography.body2,padding:e.spacing(2),color:(e.vars||e).palette.text.secondary,textAlign:"left",captionSide:"bottom"},variants:[{props:({ownerState:t})=>t.stickyHeader,style:{borderCollapse:"separate"}}]}))),qg="table",qd=I.forwardRef(function(t,n){const r=Fe({props:t,name:"MuiTable"}),{className:o,component:s=qg,padding:a="normal",size:l="medium",stickyHeader:c=!1,...d}=r,u={...r,component:s,padding:a,size:l,stickyHeader:c},f=V5(u),h=I.useMemo(()=>({padding:a,size:l,stickyHeader:c}),[a,l,c]);return p.jsx(Yd.Provider,{value:h,children:p.jsx(H5,{as:s,role:s===qg?null:"table",ref:n,className:me(f.root,o),ownerState:u,...d})})});process.env.NODE_ENV!=="production"&&(qd.propTypes={children:i.node,classes:i.object,className:i.string,component:i.elementType,padding:i.oneOf(["checkbox","none","normal"]),size:i.oneOfType([i.oneOf(["medium","small"]),i.string]),stickyHeader:i.bool,sx:i.oneOfType([i.arrayOf(i.oneOfType([i.func,i.object,i.bool])),i.func,i.object])});const ki=I.createContext();process.env.NODE_ENV!=="production"&&(ki.displayName="Tablelvl2Context");function U5(e){return Ae("MuiTableBody",e)}Ne("MuiTableBody",["root"]);const Y5=e=>{const{classes:t}=e;return $e({root:["root"]},U5,t)},q5=te("tbody",{name:"MuiTableBody",slot:"Root"})({display:"table-row-group"}),G5={variant:"body"},Gg="tbody",Gd=I.forwardRef(function(t,n){const r=Fe({props:t,name:"MuiTableBody"}),{className:o,component:s=Gg,...a}=r,l={...r,component:s},c=Y5(l);return p.jsx(ki.Provider,{value:G5,children:p.jsx(q5,{className:me(c.root,o),as:s,ref:n,role:s===Gg?null:"rowgroup",ownerState:l,...a})})});process.env.NODE_ENV!=="production"&&(Gd.propTypes={children:i.node,classes:i.object,className:i.string,component:i.elementType,sx:i.oneOfType([i.arrayOf(i.oneOfType([i.func,i.object,i.bool])),i.func,i.object])});function K5(e){return Ae("MuiTableCell",e)}const Kd=Ne("MuiTableCell",["root","head","body","footer","sizeSmall","sizeMedium","paddingCheckbox","paddingNone","alignLeft","alignCenter","alignRight","alignJustify","stickyHeader"]),X5=e=>{const{classes:t,variant:n,align:r,padding:o,size:s,stickyHeader:a}=e,l={root:["root",n,a&&"stickyHeader",r!=="inherit"&&`align${Q(r)}`,o!=="normal"&&`padding${Q(o)}`,`size${Q(s)}`]};return $e(l,K5,t)},Z5=te("td",{name:"MuiTableCell",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`size${Q(n.size)}`],n.padding!=="normal"&&t[`padding${Q(n.padding)}`],n.align!=="inherit"&&t[`align${Q(n.align)}`],n.stickyHeader&&t.stickyHeader]}})(_e(({theme:e})=>({...e.typography.body2,display:"table-cell",verticalAlign:"inherit",borderBottom:e.vars?`1px solid ${e.vars.palette.TableCell.border}`:`1px solid
|
|
235
|
-
${e.palette.mode==="light"?e.lighten(e.alpha(e.palette.divider,1),.88):e.darken(e.alpha(e.palette.divider,1),.68)}`,textAlign:"left",padding:16,variants:[{props:{variant:"head"},style:{color:(e.vars||e).palette.text.primary,lineHeight:e.typography.pxToRem(24),fontWeight:e.typography.fontWeightMedium}},{props:{variant:"body"},style:{color:(e.vars||e).palette.text.primary}},{props:{variant:"footer"},style:{color:(e.vars||e).palette.text.secondary,lineHeight:e.typography.pxToRem(21),fontSize:e.typography.pxToRem(12)}},{props:{size:"small"},style:{padding:"6px 16px",[`&.${Kd.paddingCheckbox}`]:{width:24,padding:"0 12px 0 16px","& > *":{padding:0}}}},{props:{padding:"checkbox"},style:{width:48,padding:"0 0 0 4px"}},{props:{padding:"none"},style:{padding:0}},{props:{align:"left"},style:{textAlign:"left"}},{props:{align:"center"},style:{textAlign:"center"}},{props:{align:"right"},style:{textAlign:"right",flexDirection:"row-reverse"}},{props:{align:"justify"},style:{textAlign:"justify"}},{props:({ownerState:t})=>t.stickyHeader,style:{position:"sticky",top:0,zIndex:2,backgroundColor:(e.vars||e).palette.background.default}}]}))),os=I.forwardRef(function(t,n){const r=Fe({props:t,name:"MuiTableCell"}),{align:o="inherit",className:s,component:a,padding:l,scope:c,size:d,sortDirection:u,variant:f,...h}=r,m=I.useContext(Yd),g=I.useContext(ki),y=g&&g.variant==="head";let b;a?b=a:b=y?"th":"td";let v=c;b==="td"?v=void 0:!v&&y&&(v="col");const k=f||g&&g.variant,S={...r,align:o,component:b,padding:l||(m&&m.padding?m.padding:"normal"),size:d||(m&&m.size?m.size:"medium"),sortDirection:u,stickyHeader:k==="head"&&m&&m.stickyHeader,variant:k},C=X5(S);let w=null;return u&&(w=u==="asc"?"ascending":"descending"),p.jsx(Z5,{as:b,ref:n,className:me(C.root,s),"aria-sort":w,scope:v,ownerState:S,...h})});process.env.NODE_ENV!=="production"&&(os.propTypes={align:i.oneOf(["center","inherit","justify","left","right"]),children:i.node,classes:i.object,className:i.string,component:i.elementType,padding:i.oneOf(["checkbox","none","normal"]),scope:i.string,size:i.oneOfType([i.oneOf(["medium","small"]),i.string]),sortDirection:i.oneOf(["asc","desc",!1]),sx:i.oneOfType([i.arrayOf(i.oneOfType([i.func,i.object,i.bool])),i.func,i.object]),variant:i.oneOfType([i.oneOf(["body","footer","head"]),i.string])});function J5(e){return Ae("MuiTableContainer",e)}Ne("MuiTableContainer",["root"]);const Q5=e=>{const{classes:t}=e;return $e({root:["root"]},J5,t)},eM=te("div",{name:"MuiTableContainer",slot:"Root"})({width:"100%",overflowX:"auto"}),Xd=I.forwardRef(function(t,n){const r=Fe({props:t,name:"MuiTableContainer"}),{className:o,component:s="div",...a}=r,l={...r,component:s},c=Q5(l);return p.jsx(eM,{ref:n,as:s,className:me(c.root,o),ownerState:l,...a})});process.env.NODE_ENV!=="production"&&(Xd.propTypes={children:i.node,classes:i.object,className:i.string,component:i.elementType,sx:i.oneOfType([i.arrayOf(i.oneOfType([i.func,i.object,i.bool])),i.func,i.object])});function tM(e){return Ae("MuiTableHead",e)}Ne("MuiTableHead",["root"]);const nM=e=>{const{classes:t}=e;return $e({root:["root"]},tM,t)},rM=te("thead",{name:"MuiTableHead",slot:"Root"})({display:"table-header-group"}),oM={variant:"head"},Kg="thead",Zd=I.forwardRef(function(t,n){const r=Fe({props:t,name:"MuiTableHead"}),{className:o,component:s=Kg,...a}=r,l={...r,component:s},c=nM(l);return p.jsx(ki.Provider,{value:oM,children:p.jsx(rM,{as:s,className:me(c.root,o),ref:n,role:s===Kg?null:"rowgroup",ownerState:l,...a})})});process.env.NODE_ENV!=="production"&&(Zd.propTypes={children:i.node,classes:i.object,className:i.string,component:i.elementType,sx:i.oneOfType([i.arrayOf(i.oneOfType([i.func,i.object,i.bool])),i.func,i.object])});const sM=wn(p.jsx("path",{d:"M15.41 16.09l-4.58-4.59 4.58-4.59L14 5.5l-6 6 6 6z"}),"KeyboardArrowLeft"),iM=wn(p.jsx("path",{d:"M8.59 16.34l4.58-4.59-4.58-4.59L10 5.75l6 6-6 6z"}),"KeyboardArrowRight");function aM(e){return Ae("MuiTableRow",e)}const Xg=Ne("MuiTableRow",["root","selected","hover","head","footer"]),lM=e=>{const{classes:t,selected:n,hover:r,head:o,footer:s}=e;return $e({root:["root",n&&"selected",r&&"hover",o&&"head",s&&"footer"]},aM,t)},cM=te("tr",{name:"MuiTableRow",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.head&&t.head,n.footer&&t.footer]}})(_e(({theme:e})=>({color:"inherit",display:"table-row",verticalAlign:"middle",outline:0,[`&.${Xg.hover}:hover`]:{backgroundColor:(e.vars||e).palette.action.hover},[`&.${Xg.selected}`]:{backgroundColor:e.alpha((e.vars||e).palette.primary.main,(e.vars||e).palette.action.selectedOpacity),"&:hover":{backgroundColor:e.alpha((e.vars||e).palette.primary.main,`${(e.vars||e).palette.action.selectedOpacity} + ${(e.vars||e).palette.action.hoverOpacity}`)}}}))),Zg="tr",Jg=I.forwardRef(function(t,n){const r=Fe({props:t,name:"MuiTableRow"}),{className:o,component:s=Zg,hover:a=!1,selected:l=!1,...c}=r,d=I.useContext(ki),u={...r,component:s,hover:a,selected:l,head:d&&d.variant==="head",footer:d&&d.variant==="footer"},f=lM(u);return p.jsx(cM,{as:s,ref:n,className:me(f.root,o),role:s===Zg?null:"row",ownerState:u,...c})});process.env.NODE_ENV!=="production"&&(Jg.propTypes={children:i.node,classes:i.object,className:i.string,component:i.elementType,hover:i.bool,selected:i.bool,sx:i.oneOfType([i.arrayOf(i.oneOfType([i.func,i.object,i.bool])),i.func,i.object])});function dM(e){return(1+Math.sin(Math.PI*e-Math.PI/2))/2}function uM(e,t,n,r={},o=()=>{}){const{ease:s=dM,duration:a=300}=r;let l=null;const c=t[e];let d=!1;const u=()=>{d=!0},f=h=>{if(d){o(new Error("Animation cancelled"));return}l===null&&(l=h);const m=Math.min(1,(h-l)/a);if(t[e]=s(m)*(n-c)+c,m>=1){requestAnimationFrame(()=>{o(null)});return}requestAnimationFrame(f)};return c===n?(o(new Error("Element already at target position")),u):(requestAnimationFrame(f),u)}const fM={width:99,height:99,position:"absolute",top:-9999,overflow:"scroll"};function Qg(e){const{onChange:t,...n}=e,r=I.useRef(),o=I.useRef(null),s=()=>{r.current=o.current.offsetHeight-o.current.clientHeight};return On(()=>{const a=ei(()=>{const c=r.current;s(),c!==r.current&&t(r.current)}),l=Hn(o.current);return l.addEventListener("resize",a),()=>{a.clear(),l.removeEventListener("resize",a)}},[t]),I.useEffect(()=>{s(),t(r.current)},[t]),p.jsx("div",{style:fM,...n,ref:o})}process.env.NODE_ENV!=="production"&&(Qg.propTypes={onChange:i.func.isRequired});function pM(e){return Ae("MuiTabScrollButton",e)}const hM=Ne("MuiTabScrollButton",["root","vertical","horizontal","disabled"]),mM=e=>{const{classes:t,orientation:n,disabled:r}=e;return $e({root:["root",n,r&&"disabled"]},pM,t)},gM=te(lr,{name:"MuiTabScrollButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.orientation&&t[n.orientation]]}})({width:40,flexShrink:0,opacity:.8,[`&.${hM.disabled}`]:{opacity:0},variants:[{props:{orientation:"vertical"},style:{width:"100%",height:40,"& svg":{transform:"var(--TabScrollButton-svgRotate)"}}}]}),e0=I.forwardRef(function(t,n){const r=Fe({props:t,name:"MuiTabScrollButton"}),{className:o,slots:s={},slotProps:a={},direction:l,orientation:c,disabled:d,...u}=r,f=Fo(),h={isRtl:f,...r},m=mM(h),g=s.StartScrollButtonIcon??sM,y=s.EndScrollButtonIcon??iM,b=po({elementType:g,externalSlotProps:a.startScrollButtonIcon,additionalProps:{fontSize:"small"},ownerState:h}),v=po({elementType:y,externalSlotProps:a.endScrollButtonIcon,additionalProps:{fontSize:"small"},ownerState:h});return p.jsx(gM,{component:"div",className:me(m.root,o),ref:n,role:null,ownerState:h,tabIndex:null,...u,style:{...u.style,...c==="vertical"&&{"--TabScrollButton-svgRotate":`rotate(${f?-90:90}deg)`}},children:l==="left"?p.jsx(g,{...b}):p.jsx(y,{...v})})});process.env.NODE_ENV!=="production"&&(e0.propTypes={children:i.node,classes:i.object,className:i.string,direction:i.oneOf(["left","right"]).isRequired,disabled:i.bool,orientation:i.oneOf(["horizontal","vertical"]).isRequired,slotProps:i.shape({endScrollButtonIcon:i.oneOfType([i.func,i.object]),startScrollButtonIcon:i.oneOfType([i.func,i.object])}),slots:i.shape({EndScrollButtonIcon:i.elementType,StartScrollButtonIcon:i.elementType}),style:i.object,sx:i.oneOfType([i.arrayOf(i.oneOfType([i.func,i.object,i.bool])),i.func,i.object])});function yM(e){return Ae("MuiTabs",e)}const Jd=Ne("MuiTabs",["root","vertical","list","flexContainer","flexContainerVertical","centered","scroller","fixed","scrollableX","scrollableY","hideScrollbar","scrollButtons","scrollButtonsHideMobile","indicator"]),t0=(e,t)=>e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:e.firstChild,n0=(e,t)=>e===t?e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:e.lastChild,El=(e,t,n)=>{let r=!1,o=n(e,t);for(;o;){if(o===e.firstChild){if(r)return;r=!0}const s=o.disabled||o.getAttribute("aria-disabled")==="true";if(!o.hasAttribute("tabindex")||s)o=n(e,o);else{o.focus();return}}},bM=e=>{const{vertical:t,fixed:n,hideScrollbar:r,scrollableX:o,scrollableY:s,centered:a,scrollButtonsHideMobile:l,classes:c}=e;return $e({root:["root",t&&"vertical"],scroller:["scroller",n&&"fixed",r&&"hideScrollbar",o&&"scrollableX",s&&"scrollableY"],list:["list","flexContainer",t&&"flexContainerVertical",t&&"vertical",a&&"centered"],indicator:["indicator"],scrollButtons:["scrollButtons",l&&"scrollButtonsHideMobile"],scrollableX:[o&&"scrollableX"],hideScrollbar:[r&&"hideScrollbar"]},yM,c)},vM=te("div",{name:"MuiTabs",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${Jd.scrollButtons}`]:t.scrollButtons},{[`& .${Jd.scrollButtons}`]:n.scrollButtonsHideMobile&&t.scrollButtonsHideMobile},t.root,n.vertical&&t.vertical]}})(_e(({theme:e})=>({overflow:"hidden",minHeight:48,WebkitOverflowScrolling:"touch",display:"flex",variants:[{props:({ownerState:t})=>t.vertical,style:{flexDirection:"column"}},{props:({ownerState:t})=>t.scrollButtonsHideMobile,style:{[`& .${Jd.scrollButtons}`]:{[e.breakpoints.down("sm")]:{display:"none"}}}}]}))),xM=te("div",{name:"MuiTabs",slot:"Scroller",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.scroller,n.fixed&&t.fixed,n.hideScrollbar&&t.hideScrollbar,n.scrollableX&&t.scrollableX,n.scrollableY&&t.scrollableY]}})({position:"relative",display:"inline-block",flex:"1 1 auto",whiteSpace:"nowrap",variants:[{props:({ownerState:e})=>e.fixed,style:{overflowX:"hidden",width:"100%"}},{props:({ownerState:e})=>e.hideScrollbar,style:{scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"}}},{props:({ownerState:e})=>e.scrollableX,style:{overflowX:"auto",overflowY:"hidden"}},{props:({ownerState:e})=>e.scrollableY,style:{overflowY:"auto",overflowX:"hidden"}}]}),wM=te("div",{name:"MuiTabs",slot:"List",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.list,t.flexContainer,n.vertical&&t.flexContainerVertical,n.centered&&t.centered]}})({display:"flex",variants:[{props:({ownerState:e})=>e.vertical,style:{flexDirection:"column"}},{props:({ownerState:e})=>e.centered,style:{justifyContent:"center"}}]}),SM=te("span",{name:"MuiTabs",slot:"Indicator"})(_e(({theme:e})=>({position:"absolute",height:2,bottom:0,width:"100%",transition:e.transitions.create(),variants:[{props:{indicatorColor:"primary"},style:{backgroundColor:(e.vars||e).palette.primary.main}},{props:{indicatorColor:"secondary"},style:{backgroundColor:(e.vars||e).palette.secondary.main}},{props:({ownerState:t})=>t.vertical,style:{height:"100%",width:2,right:0}}]}))),CM=te(Qg)({overflowX:"auto",overflowY:"hidden",scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"}}),r0={};let o0=!1;const s0=I.forwardRef(function(t,n){const r=Fe({props:t,name:"MuiTabs"}),o=mt(),s=Fo(),{"aria-label":a,"aria-labelledby":l,action:c,centered:d=!1,children:u,className:f,component:h="div",allowScrollButtonsMobile:m=!1,indicatorColor:g="primary",onChange:y,orientation:b="horizontal",ScrollButtonComponent:v,scrollButtons:k="auto",selectionFollowsFocus:S,slots:C={},slotProps:w={},TabIndicatorProps:T={},TabScrollButtonProps:E={},textColor:M="primary",value:j,variant:A="standard",visibleScrollbar:L=!1,...O}=r,N=A==="scrollable",P=b==="vertical",R=P?"scrollTop":"scrollLeft",$=P?"top":"left",_=P?"bottom":"right",U=P?"clientHeight":"clientWidth",H=P?"height":"width",B={...r,component:h,allowScrollButtonsMobile:m,indicatorColor:g,orientation:b,vertical:P,scrollButtons:k,textColor:M,variant:A,visibleScrollbar:L,fixed:!N,hideScrollbar:N&&!L,scrollableX:N&&!P,scrollableY:N&&P,centered:d&&!N,scrollButtonsHideMobile:!m},D=bM(B),z=po({elementType:C.StartScrollButtonIcon,externalSlotProps:w.startScrollButtonIcon,ownerState:B}),V=po({elementType:C.EndScrollButtonIcon,externalSlotProps:w.endScrollButtonIcon,ownerState:B});process.env.NODE_ENV!=="production"&&d&&N&&console.error('MUI: You can not use the `centered={true}` and `variant="scrollable"` properties at the same time on a `Tabs` component.');const[X,G]=I.useState(!1),[Y,K]=I.useState(r0),[ae,le]=I.useState(!1),[W,ee]=I.useState(!1),[F,fe]=I.useState(!1),[se,Z]=I.useState({overflow:"hidden",scrollbarWidth:0}),Ce=new Map,Te=I.useRef(null),ke=I.useRef(null),we={slots:C,slotProps:{indicator:T,scrollButtons:E,...w}},Re=()=>{const ye=Te.current;let je;if(ye){const Je=ye.getBoundingClientRect();je={clientWidth:ye.clientWidth,scrollLeft:ye.scrollLeft,scrollTop:ye.scrollTop,scrollWidth:ye.scrollWidth,top:Je.top,bottom:Je.bottom,left:Je.left,right:Je.right}}let nt;if(ye&&j!==!1){const Je=ke.current.children;if(Je.length>0){const jt=Je[Ce.get(j)];process.env.NODE_ENV!=="production"&&(jt||console.error(["MUI: The `value` provided to the Tabs component is invalid.",`None of the Tabs' children match with "${j}".`,Ce.keys?`You can provide one of the following values: ${Array.from(Ce.keys()).join(", ")}.`:null].join(`
|
|
236
|
-
`))),nt=jt?jt.getBoundingClientRect():null,process.env.NODE_ENV!=="production"&&process.env.NODE_ENV!=="test"&&!o0&&nt&&nt.width===0&&nt.height===0&&je.clientWidth!==0&&(je=null,console.error(["MUI: The `value` provided to the Tabs component is invalid.",`The Tab with this \`value\` ("${j}") is not part of the document layout.`,"Make sure the tab item is present in the document or that it's not `display: none`."].join(`
|
|
237
|
-
`)),o0=!0)}}return{tabsMeta:je,tabMeta:nt}},Oe=Mn(()=>{const{tabsMeta:ye,tabMeta:je}=Re();let nt=0,Je;P?(Je="top",je&&ye&&(nt=je.top-ye.top+ye.scrollTop)):(Je=s?"right":"left",je&&ye&&(nt=(s?-1:1)*(je[Je]-ye[Je]+ye.scrollLeft)));const jt={[Je]:nt,[H]:je?je[H]:0};if(typeof Y[Je]!="number"||typeof Y[H]!="number")K(jt);else{const Wn=Math.abs(Y[Je]-jt[Je]),nn=Math.abs(Y[H]-jt[H]);(Wn>=1||nn>=1)&&K(jt)}}),ge=(ye,{animation:je=!0}={})=>{je?uM(R,Te.current,ye,{duration:o.transitions.duration.standard}):Te.current[R]=ye},ne=ye=>{let je=Te.current[R];P?je+=ye:je+=ye*(s?-1:1),ge(je)},ie=()=>{const ye=Te.current[U];let je=0;const nt=Array.from(ke.current.children);for(let Je=0;Je<nt.length;Je+=1){const jt=nt[Je];if(je+jt[U]>ye){Je===0&&(je=ye);break}je+=jt[U]}return je},Ee=()=>{ne(-1*ie())},pe=()=>{ne(ie())},[he,{onChange:Me,...We}]=Ye("scrollbar",{className:me(D.scrollableX,D.hideScrollbar),elementType:CM,shouldForwardComponentProp:!0,externalForwardedProps:we,ownerState:B}),rt=I.useCallback(ye=>{Me?.(ye),Z({overflow:null,scrollbarWidth:ye})},[Me]),[be,wt]=Ye("scrollButtons",{className:me(D.scrollButtons,E.className),elementType:e0,externalForwardedProps:we,ownerState:B,additionalProps:{orientation:b,slots:{StartScrollButtonIcon:C.startScrollButtonIcon||C.StartScrollButtonIcon,EndScrollButtonIcon:C.endScrollButtonIcon||C.EndScrollButtonIcon},slotProps:{startScrollButtonIcon:z,endScrollButtonIcon:V}}}),yt=()=>{const ye={};ye.scrollbarSizeListener=N?p.jsx(he,{...We,onChange:rt}):null;const nt=N&&(k==="auto"&&(ae||W)||k===!0);return ye.scrollButtonStart=nt?p.jsx(be,{direction:s?"right":"left",onClick:Ee,disabled:!ae,...wt}):null,ye.scrollButtonEnd=nt?p.jsx(be,{direction:s?"left":"right",onClick:pe,disabled:!W,...wt}):null,ye},tt=Mn(ye=>{const{tabsMeta:je,tabMeta:nt}=Re();if(!(!nt||!je)){if(nt[$]<je[$]){const Je=je[R]+(nt[$]-je[$]);ge(Je,{animation:ye})}else if(nt[_]>je[_]){const Je=je[R]+(nt[_]-je[_]);ge(Je,{animation:ye})}}}),Xt=Mn(()=>{N&&k!==!1&&fe(!F)});I.useEffect(()=>{const ye=ei(()=>{Te.current&&Oe()});let je;const nt=Wn=>{Wn.forEach(nn=>{nn.removedNodes.forEach(Sr=>{je?.unobserve(Sr)}),nn.addedNodes.forEach(Sr=>{je?.observe(Sr)})}),ye(),Xt()},Je=Hn(Te.current);Je.addEventListener("resize",ye);let jt;return typeof ResizeObserver<"u"&&(je=new ResizeObserver(ye),Array.from(ke.current.children).forEach(Wn=>{je.observe(Wn)})),typeof MutationObserver<"u"&&(jt=new MutationObserver(nt),jt.observe(ke.current,{childList:!0})),()=>{ye.clear(),Je.removeEventListener("resize",ye),jt?.disconnect(),je?.disconnect()}},[Oe,Xt]),I.useEffect(()=>{const ye=Array.from(ke.current.children),je=ye.length;if(typeof IntersectionObserver<"u"&&je>0&&N&&k!==!1){const nt=ye[0],Je=ye[je-1],jt={root:Te.current,threshold:.99},Wn=Cr=>{le(!Cr[0].isIntersecting)},nn=new IntersectionObserver(Wn,jt);nn.observe(nt);const Sr=Cr=>{ee(!Cr[0].isIntersecting)},zn=new IntersectionObserver(Sr,jt);return zn.observe(Je),()=>{nn.disconnect(),zn.disconnect()}}},[N,k,F,u?.length]),I.useEffect(()=>{G(!0)},[]),I.useEffect(()=>{Oe()}),I.useEffect(()=>{tt(r0!==Y)},[tt,Y]),I.useImperativeHandle(c,()=>({updateIndicator:Oe,updateScrollButtons:Xt}),[Oe,Xt]);const[_n,Jn]=Ye("indicator",{className:me(D.indicator,T.className),elementType:SM,externalForwardedProps:we,ownerState:B,additionalProps:{style:Y}}),xe=p.jsx(_n,{...Jn});let ce=0;const De=I.Children.map(u,ye=>{if(!I.isValidElement(ye))return null;process.env.NODE_ENV!=="production"&&kr.isFragment(ye)&&console.error(["MUI: The Tabs component doesn't accept a Fragment as a child.","Consider providing an array instead."].join(`
|
|
238
|
-
`));const je=ye.props.value===void 0?ce:ye.props.value;Ce.set(je,ce);const nt=je===j;return ce+=1,I.cloneElement(ye,{fullWidth:A==="fullWidth",indicator:nt&&!X&&xe,selected:nt,selectionFollowsFocus:S,onChange:y,textColor:M,value:je,...ce===1&&j===!1&&!ye.props.tabIndex?{tabIndex:0}:{}})}),Pe=ye=>{if(ye.altKey||ye.shiftKey||ye.ctrlKey||ye.metaKey)return;const je=ke.current,nt=ts(fn(je));if(nt?.getAttribute("role")!=="tab")return;let jt=b==="horizontal"?"ArrowLeft":"ArrowUp",Wn=b==="horizontal"?"ArrowRight":"ArrowDown";switch(b==="horizontal"&&s&&(jt="ArrowRight",Wn="ArrowLeft"),ye.key){case jt:ye.preventDefault(),El(je,nt,n0);break;case Wn:ye.preventDefault(),El(je,nt,t0);break;case"Home":ye.preventDefault(),El(je,null,t0);break;case"End":ye.preventDefault(),El(je,null,n0);break}},Xe=yt(),[Vt,Ze]=Ye("root",{ref:n,className:me(D.root,f),elementType:vM,externalForwardedProps:{...we,...O,component:h},ownerState:B}),[Fn,no]=Ye("scroller",{ref:Te,className:D.scroller,elementType:xM,externalForwardedProps:we,ownerState:B,additionalProps:{style:{overflow:se.overflow,[P?`margin${s?"Left":"Right"}`:"marginBottom"]:L?void 0:-se.scrollbarWidth}}}),[Le,Zt]=Ye("list",{ref:ke,className:me(D.list,D.flexContainer),elementType:wM,externalForwardedProps:we,ownerState:B,getSlotProps:ye=>({...ye,onKeyDown:je=>{Pe(je),ye.onKeyDown?.(je)}})});return p.jsxs(Vt,{...Ze,children:[Xe.scrollButtonStart,Xe.scrollbarSizeListener,p.jsxs(Fn,{...no,children:[p.jsx(Le,{"aria-label":a,"aria-labelledby":l,"aria-orientation":b==="vertical"?"vertical":null,role:"tablist",...Zt,children:De}),X&&xe]}),Xe.scrollButtonEnd]})});process.env.NODE_ENV!=="production"&&(s0.propTypes={action:pn,allowScrollButtonsMobile:i.bool,"aria-label":i.string,"aria-labelledby":i.string,centered:i.bool,children:i.node,classes:i.object,className:i.string,component:i.elementType,indicatorColor:i.oneOfType([i.oneOf(["primary","secondary"]),i.string]),onChange:i.func,orientation:i.oneOf(["horizontal","vertical"]),ScrollButtonComponent:i.elementType,scrollButtons:i.oneOf(["auto",!1,!0]),selectionFollowsFocus:i.bool,slotProps:i.shape({endScrollButtonIcon:i.oneOfType([i.func,i.object]),indicator:i.oneOfType([i.func,i.object]),list:i.oneOfType([i.func,i.object]),root:i.oneOfType([i.func,i.object]),scrollbar:i.oneOfType([i.func,i.object]),scrollButtons:i.oneOfType([i.func,i.object]),scroller:i.oneOfType([i.func,i.object]),startScrollButtonIcon:i.oneOfType([i.func,i.object])}),slots:i.shape({endScrollButtonIcon:i.elementType,EndScrollButtonIcon:i.elementType,indicator:i.elementType,list:i.elementType,root:i.elementType,scrollbar:i.elementType,scrollButtons:i.elementType,scroller:i.elementType,startScrollButtonIcon:i.elementType,StartScrollButtonIcon:i.elementType}),sx:i.oneOfType([i.arrayOf(i.oneOfType([i.func,i.object,i.bool])),i.func,i.object]),TabIndicatorProps:i.object,TabScrollButtonProps:i.object,textColor:i.oneOf(["inherit","primary","secondary"]),value:i.any,variant:i.oneOf(["fullWidth","scrollable","standard"]),visibleScrollbar:i.bool});function TM(e){return Ae("MuiTextField",e)}Ne("MuiTextField",["root"]);const kM={standard:wl,filled:xl,outlined:Cl},EM=e=>{const{classes:t}=e;return $e({root:["root"]},TM,t)},OM=te(mg,{name:"MuiTextField",slot:"Root"})({}),Qd=I.forwardRef(function(t,n){const r=Fe({props:t,name:"MuiTextField"}),{autoComplete:o,autoFocus:s=!1,children:a,className:l,color:c="primary",defaultValue:d,disabled:u=!1,error:f=!1,FormHelperTextProps:h,fullWidth:m=!1,helperText:g,id:y,InputLabelProps:b,inputProps:v,InputProps:k,inputRef:S,label:C,maxRows:w,minRows:T,multiline:E=!1,name:M,onBlur:j,onChange:A,onFocus:L,placeholder:O,required:N=!1,rows:P,select:R=!1,SelectProps:$,slots:_={},slotProps:U={},type:H,value:B,variant:D="outlined",...z}=r,V={...r,autoFocus:s,color:c,disabled:u,error:f,fullWidth:m,multiline:E,required:N,select:R,variant:D},X=EM(V);process.env.NODE_ENV!=="production"&&R&&!a&&console.error("MUI: `children` must be passed when using the `TextField` component with `select`.");const G=io(y),Y=g&&G?`${G}-helper-text`:void 0,K=C&&G?`${G}-label`:void 0,ae=kM[D],le={slots:_,slotProps:{input:k,inputLabel:b,htmlInput:v,formHelperText:h,select:$,...U}},W={},ee=le.slotProps.inputLabel;D==="outlined"&&(ee&&typeof ee.shrink<"u"&&(W.notched=ee.shrink),W.label=C),R&&((!$||!$.native)&&(W.id=void 0),W["aria-describedby"]=void 0);const[F,fe]=Ye("root",{elementType:OM,shouldForwardComponentProp:!0,externalForwardedProps:{...le,...z},ownerState:V,className:me(X.root,l),ref:n,additionalProps:{disabled:u,error:f,fullWidth:m,required:N,color:c,variant:D}}),[se,Z]=Ye("input",{elementType:ae,externalForwardedProps:le,additionalProps:W,ownerState:V}),[Ce,Te]=Ye("inputLabel",{elementType:Sg,externalForwardedProps:le,ownerState:V}),[ke,we]=Ye("htmlInput",{elementType:"input",externalForwardedProps:le,ownerState:V}),[Re,Oe]=Ye("formHelperText",{elementType:bg,externalForwardedProps:le,ownerState:V}),[ge,ne]=Ye("select",{elementType:Vd,externalForwardedProps:le,ownerState:V}),ie=p.jsx(se,{"aria-describedby":Y,autoComplete:o,autoFocus:s,defaultValue:d,fullWidth:m,multiline:E,name:M,rows:P,maxRows:w,minRows:T,type:H,value:B,id:G,inputRef:S,onBlur:j,onChange:A,onFocus:L,placeholder:O,inputProps:we,slots:{input:_.htmlInput?ke:void 0},...Z});return p.jsxs(F,{...fe,children:[C!=null&&C!==""&&p.jsx(Ce,{htmlFor:G,id:K,...Te,children:C}),R?p.jsx(ge,{"aria-describedby":Y,id:G,labelId:K,value:B,input:ie,...ne,children:a}):ie,g&&p.jsx(Re,{id:Y,...Oe,children:g})]})});process.env.NODE_ENV!=="production"&&(Qd.propTypes={autoComplete:i.string,autoFocus:i.bool,children:i.node,classes:i.object,className:i.string,color:i.oneOfType([i.oneOf(["primary","secondary","error","info","success","warning"]),i.string]),defaultValue:i.any,disabled:i.bool,error:i.bool,FormHelperTextProps:i.object,fullWidth:i.bool,helperText:i.node,id:i.string,InputLabelProps:i.object,inputProps:i.object,InputProps:i.object,inputRef:pn,label:i.node,margin:i.oneOf(["dense","none","normal"]),maxRows:i.oneOfType([i.number,i.string]),minRows:i.oneOfType([i.number,i.string]),multiline:i.bool,name:i.string,onBlur:i.func,onChange:i.func,onFocus:i.func,placeholder:i.string,required:i.bool,rows:i.oneOfType([i.number,i.string]),select:i.bool,SelectProps:i.object,size:i.oneOfType([i.oneOf(["medium","small"]),i.string]),slotProps:i.shape({formHelperText:i.oneOfType([i.func,i.object]),htmlInput:i.oneOfType([i.func,i.object]),input:i.oneOfType([i.func,i.object]),inputLabel:i.oneOfType([i.func,i.object]),select:i.oneOfType([i.func,i.object])}),slots:i.shape({formHelperText:i.elementType,htmlInput:i.elementType,input:i.elementType,inputLabel:i.elementType,root:i.elementType,select:i.elementType}),sx:i.oneOfType([i.arrayOf(i.oneOfType([i.func,i.object,i.bool])),i.func,i.object]),type:i.string,value:i.any,variant:i.oneOf(["filled","outlined","standard"])});const Ol={THEME:"THEME",LOGOUT:"LOGOUT"},Ge={Search:"data:image/svg+xml,%3csvg%20width='16'%20height='15'%20viewBox='0%200%2016%2015'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M7.6503%2013.8006C11.3232%2013.8006%2014.3006%2010.8232%2014.3006%207.15029C14.3006%203.47744%2011.3232%200.5%207.6503%200.5C3.97744%200.5%201%203.47744%201%207.15029C1%2010.8232%203.97744%2013.8006%207.6503%2013.8006Z'%20stroke='%23898A93'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M14.9997%2014.5006L13.5996%2013.1006'%20stroke='%23898A93'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3c/svg%3e",Refresh:"data:image/svg+xml,%3csvg%20width='16'%20height='16'%20viewBox='0%200%2016%2016'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M6.0733%203.38664C6.6533%203.21331%207.2933%203.09998%207.99997%203.09998C11.1933%203.09998%2013.78%205.68664%2013.78%208.87998C13.78%2012.0733%2011.1933%2014.66%207.99997%2014.66C4.80664%2014.66%202.21997%2012.0733%202.21997%208.87998C2.21997%207.69331%202.57997%206.58664%203.1933%205.66664'%20stroke='%23909090'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M5.2467%203.54671L7.17337%201.33337'%20stroke='%23909090'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M5.2467%203.54663L7.49337%205.18663'%20stroke='%23909090'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3c/svg%3e",Close:"data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='12'%20height='12'%20viewBox='0%200%2024%2024'%3e%3ccircle%20cx='12'%20cy='12'%20r='11'%20fill='none'%20stroke='%23E85353'%20stroke-width='2'/%3e%3cpath%20d='M8.5%208.5l7%207M15.5%208.5l-7%207'%20stroke='%23E85353'%20stroke-width='2'/%3e%3c/svg%3e",Unsort:"data:image/svg+xml,%3csvg%20width='10'%20height='10'%20viewBox='0%200%2010%2012'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M0.646447%203.24676C0.451184%203.44202%200.451184%203.7586%200.646447%203.95387C0.841709%204.14913%201.15829%204.14913%201.35355%203.95387L0.646447%203.24676ZM3.40012%201.2002H3.90012C3.90012%200.997964%203.7783%200.815646%203.59146%200.738256C3.40462%200.660865%203.18956%200.703643%203.04656%200.846642L3.40012%201.2002ZM2.90012%2010.8007C2.90012%2011.0768%203.12398%2011.3007%203.40012%2011.3007C3.67626%2011.3007%203.90012%2011.0768%203.90012%2010.8007H2.90012ZM9.35377%208.7541C9.54903%208.55884%209.54903%208.24226%209.35377%208.04699C9.15851%207.85173%208.84193%207.85173%208.64666%208.04699L9.35377%208.7541ZM6.6001%2010.8007H6.1001C6.1001%2011.0029%206.22192%2011.1852%206.40876%2011.2626C6.5956%2011.34%206.81065%2011.2972%206.95365%2011.1542L6.6001%2010.8007ZM7.1001%201.2002C7.1001%200.924053%206.87624%200.700195%206.6001%200.700195C6.32396%200.700195%206.1001%200.924053%206.1001%201.2002H7.1001ZM1.35355%203.95387L3.75367%201.55375L3.04656%200.846642L0.646447%203.24676L1.35355%203.95387ZM2.90012%201.2002V10.8007H3.90012V1.2002H2.90012ZM8.64666%208.04699L6.24655%2010.4471L6.95365%2011.1542L9.35377%208.7541L8.64666%208.04699ZM7.1001%2010.8007V1.2002H6.1001V10.8007H7.1001Z'%20fill='%23909090'/%3e%3c/svg%3e",AscSort:"data:image/svg+xml,%3csvg%20width='9'%20height='12'%20viewBox='0%200%209%2012'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M8%204.59888L4.5%201.09888L1%204.59888'%20stroke='%23909090'%20stroke-miterlimit='10'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M4.5%2010.9013V1.19702'%20stroke='%23909090'%20stroke-miterlimit='10'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3c/svg%3e",DescSort:"data:image/svg+xml,%3csvg%20width='9'%20height='12'%20viewBox='0%200%209%2012'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M1%207.40112L4.5%2010.9011L8%207.40112'%20stroke='%23909090'%20stroke-miterlimit='10'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M4.5%201.09869L4.5%2010.803'%20stroke='%23909090'%20stroke-miterlimit='10'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3c/svg%3e",Menu:"data:image/svg+xml,%3csvg%20width='4'%20height='10'%20viewBox='0%200%204%2010'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M2%207.5C1.45%207.5%201%207.95%201%208.5C1%209.05%201.45%209.5%202%209.5C2.55%209.5%203%209.05%203%208.5C3%207.95%202.55%207.5%202%207.5Z'%20stroke='%23909090'%20stroke-width='0.7'/%3e%3cpath%20d='M2%204C1.45%204%201%204.45%201%205C1%205.55%201.45%206%202%206C2.55%206%203%205.55%203%205C3%204.45%202.55%204%202%204Z'%20stroke='%23909090'%20stroke-width='0.7'/%3e%3cpath%20d='M2%200.5C1.45%200.5%201%200.95%201%201.5C1%202.05%201.45%202.5%202%202.5C2.55%202.5%203%202.05%203%201.5C3%200.95%202.55%200.5%202%200.5Z'%20stroke='%23909090'%20stroke-width='0.7'/%3e%3c/svg%3e",Manage:"data:image/svg+xml,%3csvg%20width='14'%20height='14'%20viewBox='0%200%2014%2014'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M8.75065%202.33398V11.6673M2.33398%208.60482H8.75065M2.33398%205.39648H8.75065M3.50065%2011.6673H10.5007C11.145%2011.6673%2011.6673%2011.145%2011.6673%2010.5007V3.50065C11.6673%202.85632%2011.145%202.33398%2010.5007%202.33398H3.50065C2.85632%202.33398%202.33398%202.85632%202.33398%203.50065V10.5007C2.33398%2011.145%202.85632%2011.6673%203.50065%2011.6673Z'%20stroke='%23A8A8A8'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3c/svg%3e",ArrowSelectUp:"data:image/svg+xml,%3csvg%20width='10'%20height='5'%20viewBox='0%200%2010%205'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M9%200.595703L5.50126%204.09444C5.08807%204.50763%204.41193%204.50763%203.99874%204.09444L0.5%200.595703'%20stroke='%23909090'%20stroke-miterlimit='10'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3c/svg%3e",ArrowSelectDown:"data:image/svg+xml,%3csvg%20width='10'%20height='5'%20viewBox='0%200%2010%205'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M9%204.4043L5.50126%200.90556C5.08807%200.492365%204.41193%200.492365%203.99874%200.90556L0.5%204.4043'%20stroke='%23909090'%20stroke-miterlimit='10'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3c/svg%3e",Upload:"data:image/svg+xml,%3csvg%20width='15'%20height='15'%20viewBox='0%200%2014%2014'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M5.25016%209.9165V6.4165L4.0835%207.58317'%20stroke='%23909090'%20stroke-width='0.8'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M5.25%206.4165L6.41667%207.58317'%20stroke='%23909090'%20stroke-width='0.8'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M12.8332%205.83317V8.74984C12.8332%2011.6665%2011.6665%2012.8332%208.74984%2012.8332H5.24984C2.33317%2012.8332%201.1665%2011.6665%201.1665%208.74984V5.24984C1.1665%202.33317%202.33317%201.1665%205.24984%201.1665H8.1665'%20stroke='%23909090'%20stroke-width='0.8'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M12.8332%205.83317H10.4998C8.74984%205.83317%208.1665%205.24984%208.1665%203.49984V1.1665L12.8332%205.83317Z'%20stroke='%23909090'%20stroke-width='0.8'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3c/svg%3e",Download:"data:image/svg+xml,%3csvg%20width='15'%20height='15'%20viewBox='0%200%2014%2014'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M5.25%206.41699V9.91699L6.41667%208.75033'%20stroke='%23909090'%20stroke-width='0.8'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M5.25114%209.91667L4.08447%208.75'%20stroke='%23909090'%20stroke-width='0.8'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M12.8322%205.83366V8.75033C12.8322%2011.667%2011.6655%2012.8337%208.74886%2012.8337H5.24886C2.33219%2012.8337%201.16553%2011.667%201.16553%208.75033V5.25033C1.16553%202.33366%202.33219%201.16699%205.24886%201.16699H8.16553'%20stroke='%23909090'%20stroke-width='0.8'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M12.8322%205.83366H10.4989C8.74886%205.83366%208.16553%205.25033%208.16553%203.50033V1.16699L12.8322%205.83366Z'%20stroke='%23909090'%20stroke-width='0.8'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3c/svg%3e",More:"data:image/svg+xml,%3csvg%20width='15'%20height='16'%20viewBox='0%200%2015%2016'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M2.4531%202.16699H7.64478C8.07645%202.16699%208.43227%202.52283%208.43227%202.9545V3.81782C8.43227%204.13282%208.23395%204.52366%208.04145%204.722L6.3498%206.21533C6.11647%206.41366%205.95894%206.80449%205.95894%207.11949V8.81117C5.95894%209.0445%205.80145%209.3595%205.60312%209.482L5.05478%209.83782C4.54145%2010.1528%203.8356%209.79699%203.8356%209.16699V7.08449C3.8356%206.81032%203.67811%206.4545%203.52061%206.25616L2.02728%204.68116C1.82895%204.48282%201.67146%204.13282%201.67146%203.89365V2.98949C1.66562%202.52283%202.02144%202.16699%202.4531%202.16699Z'%20stroke='%23909090'%20stroke-miterlimit='10'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M1.66211%207.99998V9.74998C1.66211%2012.6666%202.82878%2013.8333%205.74544%2013.8333H9.24544C12.1621%2013.8333%2013.3288%2012.6666%2013.3288%209.74998V6.24998C13.3288%204.42998%2012.8738%203.28664%2011.8179%202.69164C11.5204%202.52248%2010.9254%202.39414%2010.3829%202.30664'%20stroke='%23909090'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M8.08789%208.5835H11.0046'%20stroke='%23909090'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M6.91211%2010.9165H10.9954'%20stroke='%23909090'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3c/svg%3e",ArrowRight:"data:image/svg+xml,%3csvg%20width='12'%20height='12'%20viewBox='0%200%2012%2012'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M4.45508%209.96028L7.71508%206.70028C8.10008%206.31528%208.10008%205.68528%207.71508%205.30028L4.45508%202.04028'%20stroke='%23A8A8A8'%20stroke-miterlimit='10'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3c/svg%3e",Cross:"data:image/svg+xml,%3csvg%20width='15'%20height='16'%20viewBox='0%200%2015%2016'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M12.2302%203.25244L2.75%2012.7366'%20stroke='%23909090'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M12.25%2012.75L2.75%203.25'%20stroke='%23909090'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3c/svg%3e",CrossLight:"data:image/svg+xml,%3csvg%20width='15'%20height='16'%20viewBox='0%200%2015%2016'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M12.2302%203.25244L2.75%2012.7366'%20stroke='%23666D80'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M12.25%2012.75L2.75%203.25'%20stroke='%23666D80'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3c/svg%3e",PaginationLeft:"data:image/svg+xml,%3csvg%20width='7'%20height='11'%20viewBox='0%200%207%2011'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M5.5%209.96346L1.82547%206.28893C1.39151%205.85497%201.39151%205.14487%201.82547%204.71091L5.5%201.03638'%20stroke='%23909090'%20stroke-width='1.2'%20stroke-miterlimit='10'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3c/svg%3e",PaginationRight:"data:image/svg+xml,%3csvg%20width='7'%20height='11'%20viewBox='0%200%207%2011'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M1.5%209.96346L5.17453%206.28893C5.60849%205.85498%205.60849%205.14487%205.17453%204.71091L1.5%201.03638'%20stroke='%23909090'%20stroke-width='1.2'%20stroke-miterlimit='10'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3c/svg%3e",Import:"data:image/svg+xml,%3csvg%20width='16'%20height='16'%20viewBox='0%200%2016%2016'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M14.6649%201.33252L9.19824%206.79919'%20stroke='%232176FF'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M8.66504%204.11377V7.33377H11.885'%20stroke='%232176FF'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M7.33496%201.33252H6.00163C2.66829%201.33252%201.33496%202.66585%201.33496%205.99919V9.99919C1.33496%2013.3325%202.66829%2014.6659%206.00163%2014.6659H10.0016C13.335%2014.6659%2014.6683%2013.3325%2014.6683%209.99919V8.66585'%20stroke='%232176FF'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3c/svg%3e",Expand:"data:image/svg+xml,%3csvg%20width='16'%20height='16'%20viewBox='0%200%2016%2016'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M14%206V2H10'%20stroke='%230166FF'%20stroke-width='1.5'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M2%2010V14H6'%20stroke='%230166FF'%20stroke-width='1.5'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M14%202L9%207'%20stroke='%230166FF'%20stroke-width='1.5'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M7%209L2%2014'%20stroke='%230166FF'%20stroke-width='1.5'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3c/svg%3e",Merge:"data:image/svg+xml,%3csvg%20width='16'%20height='16'%20viewBox='0%200%2016%2016'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M12.5114%206.05379L10.4511%209.04164L10.4814%209.0719C10.8132%209.40375%2010.9784%209.84252%2010.9769%2010.2806C10.9754%2010.7187%2010.8077%2011.1577%2010.4735%2011.4919L10.3922%2011.5732C10.2241%2011.7413%2010.0025%2011.8263%209.7824%2011.8271C9.56227%2011.8279%209.34086%2011.7443%209.17346%2011.5769L7.78628%2010.1897L4.12799%2013.1773L4.12799%2013.1773L4.06473%2013.0999L12.5114%206.05379ZM12.5114%206.05379C12.8545%206.18859%2013.1918%206.29598%2013.5225%206.3222C13.9811%206.3591%2014.409%206.24328%2014.79%205.86233C14.9483%205.704%2015.0749%205.43718%2015.0758%205.15458C15.0766%204.92373%2014.9983%204.68086%2014.7942%204.47678L11.5247%201.20722C11.3206%201.00314%2011.0777%200.924811%2010.8469%200.925604L10.8472%201.0256C10.5923%201.02601%2010.3506%201.14147%2010.2098%201.2822C9.85167%201.64036%209.74361%202.03912%209.77846%202.4714C9.80525%202.80959%209.92193%203.15912%2010.0693%203.52532M12.5114%206.05379L10.8471%200.925604C10.5647%200.926052%2010.2979%201.05275%2010.1391%201.21149C9.75774%201.59287%209.64191%202.0216%209.67877%202.4793M10.0693%203.52532L10.0126%203.44299L9.94694%203.48823M10.0693%203.52532L9.97655%203.56266C9.96655%203.53782%209.95668%203.51301%209.94694%203.48823M10.0693%203.52532L6.94655%205.67851M9.94694%203.48823C9.81244%203.14589%209.70493%202.80948%209.67877%202.4793M9.94694%203.48823L6.95836%205.5489M9.67877%202.4793C9.67878%202.47935%209.67878%202.47939%209.67879%202.47944L9.77841%202.47141L9.67877%202.4793ZM6.95836%205.5489L7.01726%205.6078L6.94655%205.67851M6.95836%205.5489L6.9281%205.51864C6.59577%205.18631%206.15746%205.02161%205.71939%205.02312C5.28131%205.02462%204.84181%205.19279%204.50813%205.52647L4.42677%205.60783C4.25803%205.77657%204.17412%205.99823%204.17337%206.21807C4.17261%206.43897%204.25556%206.65997%204.42307%206.82748L5.81025%208.21466M6.95836%205.5489L6.88979%205.59618L6.94655%205.67851M6.94655%205.67851L6.85739%205.58935C6.54488%205.27684%206.13258%205.1217%205.71973%205.12311C5.30688%205.12453%204.89304%205.28298%204.57884%205.59718L4.49749%205.67854C4.34833%205.82769%204.27404%206.02364%204.27337%206.21842C4.2727%206.41412%204.34611%206.6091%204.49378%206.75677L5.9449%208.20789M5.81025%208.21466L5.86745%208.14463L5.9449%208.20789M5.81025%208.21466L2.82266%2011.873L2.82261%2011.873C2.66975%2012.0605%202.58321%2012.2918%202.5819%2012.5216L2.5819%2012.5219L2.58189%2012.5237L2.68189%2012.5241L5.9449%208.20789M5.81025%208.21466L5.87419%208.2786L5.9449%208.20789M9.67929%208.9237L9.70517%208.88617L12.0837%205.43671C12.173%205.2898%2012.359%205.22439%2012.5234%205.29377M9.67929%208.9237L10.8454%201.63016C10.9045%201.62996%2010.9672%201.64976%2011.0237%201.70625L14.2933%204.97582C14.3498%205.03232%2014.3696%205.09506%2014.3694%205.15415C14.3691%205.2439%2014.3302%205.32407%2014.2915%205.3628C14.0788%205.57541%2013.845%205.63877%2013.5816%205.61797L13.5737%205.71766L13.5817%205.61798C13.2757%205.59352%2012.9203%205.46074%2012.5234%205.29377M9.67929%208.9237L9.68069%208.92915M9.67929%208.9237L9.68069%208.92915M12.5234%205.29377C12.5234%205.29378%2012.5234%205.29379%2012.5234%205.2938L12.4845%205.38592M12.5234%205.29377C12.5233%205.29376%2012.5233%205.29375%2012.5233%205.29374L12.4845%205.38592M12.4845%205.38592C12.3663%205.33599%2012.2315%205.38352%2012.1678%205.49091L12.4845%205.38592ZM9.68069%208.92915C9.61177%209.06459%209.63845%209.22978%209.74409%209.33659L9.74448%209.33699L9.98131%209.57381C10.175%209.76752%2010.2717%2010.0244%2010.2708%2010.2826V10.2828C10.2704%2010.5403%2010.1719%2010.7983%209.97594%2010.9943L9.89458%2011.0757C9.86461%2011.1056%209.82417%2011.1213%209.78426%2011.1215C9.743%2011.1213%209.70347%2011.1059%209.67442%2011.0769L4.92402%206.32649C4.89507%206.29754%204.8797%206.25724%204.87984%206.21654L4.77984%206.2162L4.87984%206.21654C4.87998%206.17511%204.89552%206.13514%204.92526%206.1054L5.00662%206.02404C5.20212%205.82854%205.46009%205.73002%205.71831%205.72914L5.71848%205.72914C5.97604%205.72783%206.23289%205.82446%206.4271%206.01868L6.66393%206.2555C6.79239%206.38396%206.99539%206.3914%207.13378%206.28051L10.5799%203.90425L10.5799%203.90425L10.5806%203.90375C10.719%203.80648%2010.7688%203.62722%2010.7059%203.47652L10.7058%203.47623C10.5388%203.07917%2010.4055%202.72425%2010.3811%202.4183L10.3811%202.41823C10.3599%202.15556%2010.4236%201.92124%2010.6367%201.70807C10.6755%201.66934%2010.7556%201.63047%2010.8454%201.63016L9.68069%208.92915ZM6.30997%208.71246L7.28616%209.68865L3.68235%2012.6321C3.61745%2012.685%203.54349%2012.7114%203.47784%2012.7116L3.47784%2012.7115L3.47462%2012.7117L3.46448%2012.712C3.41893%2012.7093%203.37647%2012.6919%203.34137%2012.6568C3.3036%2012.619%203.28592%2012.5717%203.28609%2012.5199C3.28631%2012.4557%203.31278%2012.3822%203.36653%2012.3163L6.30997%208.71246Z'%20fill='%23007AFF'%20stroke='%23007AFF'%20stroke-width='0.2'/%3e%3c/svg%3e",FilterLight:"data:image/svg+xml,%3csvg%20width='13'%20height='14'%20viewBox='0%200%2013%2014'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M7.26379%2011.7614L6.50005%2012.2543C5.79047%2012.693%204.80463%2012.2001%204.80463%2011.3226V8.4247C4.80463%208.04011%204.58797%207.5472%204.36589%207.27637L2.28587%205.08803C2.00962%204.81178%201.79297%204.32428%201.79297%203.99387V2.7372C1.79297%202.08178%202.2859%201.58887%202.88715%201.58887H10.113C10.7142%201.58887%2011.2071%202.08178%2011.2071%202.68303V3.88553C11.2071%204.32428%2010.9309%204.87137%2010.66%205.1422'%20stroke='%23282A2A'%20stroke-miterlimit='10'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M9.25136%206.94027L7.33383%208.85776C7.258%208.93359%207.18759%209.07443%207.17134%209.17734L7.06842%209.9086C7.03051%2010.174%207.21468%2010.3582%207.48009%2010.3203L8.21133%2010.2173C8.31425%2010.2011%208.46051%2010.1307%208.53093%2010.0549L10.4484%208.13735C10.7788%207.80693%2010.9359%207.42235%2010.4484%206.93485C9.96633%206.45277%209.58177%206.60986%209.25136%206.94027Z'%20stroke='%23282A2A'%20stroke-miterlimit='10'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M8.98047%207.21094C9.14297%207.79594%209.59795%208.25092%2010.183%208.41342'%20stroke='%23282A2A'%20stroke-miterlimit='10'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3c/svg%3e",Filter:"data:image/svg+xml,%3csvg%20width='13'%20height='14'%20viewBox='0%200%2013%2014'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M7.26379%2011.7614L6.50005%2012.2543C5.79047%2012.693%204.80463%2012.2001%204.80463%2011.3226V8.4247C4.80463%208.04011%204.58797%207.5472%204.36589%207.27637L2.28587%205.08803C2.00962%204.81178%201.79297%204.32428%201.79297%203.99387V2.7372C1.79297%202.08178%202.2859%201.58887%202.88715%201.58887H10.113C10.7142%201.58887%2011.2071%202.08178%2011.2071%202.68303V3.88553C11.2071%204.32428%2010.9309%204.87137%2010.66%205.1422'%20stroke='white'%20stroke-miterlimit='10'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M9.25136%206.94027L7.33383%208.85776C7.258%208.93359%207.18759%209.07443%207.17134%209.17734L7.06842%209.9086C7.03051%2010.174%207.21468%2010.3582%207.48009%2010.3203L8.21133%2010.2173C8.31425%2010.2011%208.46051%2010.1307%208.53093%2010.0549L10.4484%208.13735C10.7788%207.80693%2010.9359%207.42235%2010.4484%206.93485C9.96633%206.45277%209.58177%206.60986%209.25136%206.94027Z'%20stroke='white'%20stroke-miterlimit='10'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M8.98047%207.21094C9.14297%207.79594%209.59795%208.25092%2010.183%208.41342'%20stroke='white'%20stroke-miterlimit='10'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3c/svg%3e",FilterClose:"data:image/svg+xml,%3csvg%20width='12'%20height='12'%20viewBox='0%200%2012%2012'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3crect%20width='12'%20height='12'%20rx='3'%20fill='%23E85353'/%3e%3cpath%20d='M3.75%208.25L8.25%203.75'%20stroke='white'%20stroke-width='0.8'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M8.25%208.25L3.75%203.75'%20stroke='white'%20stroke-width='0.8'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3c/svg%3e",Check:"data:image/svg+xml,%3csvg%20width='16'%20height='16'%20viewBox='0%200%2016%2016'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M6.00001%2014.6666H10C13.3333%2014.6666%2014.6667%2013.3333%2014.6667%209.99992V5.99992C14.6667%202.66659%2013.3333%201.33325%2010%201.33325H6.00001C2.66668%201.33325%201.33334%202.66659%201.33334%205.99992V9.99992C1.33334%2013.3333%202.66668%2014.6666%206.00001%2014.6666Z'%20fill='%23E94F1C'%20stroke='%23E94F1C'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M5.16666%207.99995L7.05332%209.88661L10.8333%206.11328'%20stroke='white'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3c/svg%3e",Uncheck:"data:image/svg+xml,%3csvg%20width='16'%20height='16'%20viewBox='0%200%2016%2016'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M6.00001%2014.6666H10C13.3333%2014.6666%2014.6667%2013.3333%2014.6667%209.99992V5.99992C14.6667%202.66659%2013.3333%201.33325%2010%201.33325H6.00001C2.66668%201.33325%201.33334%202.66659%201.33334%205.99992V9.99992C1.33334%2013.3333%202.66668%2014.6666%206.00001%2014.6666Z'%20stroke='%23909090'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3c/svg%3e",Calendar:"data:image/svg+xml,%3csvg%20width='14'%20height='14'%20viewBox='0%200%2014%2014'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M4.66602%201.16602V2.91602'%20stroke='%23909090'%20stroke-width='0.8'%20stroke-miterlimit='10'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M9.33398%201.16602V2.91602'%20stroke='%23909090'%20stroke-width='0.8'%20stroke-miterlimit='10'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M2.04102%205.30176H11.9577'%20stroke='%23909090'%20stroke-width='0.8'%20stroke-miterlimit='10'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M12.25%204.95768V9.91602C12.25%2011.666%2011.375%2012.8327%209.33333%2012.8327H4.66667C2.625%2012.8327%201.75%2011.666%201.75%209.91602V4.95768C1.75%203.20768%202.625%202.04102%204.66667%202.04102H9.33333C11.375%202.04102%2012.25%203.20768%2012.25%204.95768Z'%20stroke='%23909090'%20stroke-width='0.8'%20stroke-miterlimit='10'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M6.99745%207.99186H7.00269'%20stroke='%23909090'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M4.83729%207.99186H4.84253'%20stroke='%23909090'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M4.83729%209.74186H4.84253'%20stroke='%23909090'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3c/svg%3e",Collapse:"data:image/svg+xml,%3csvg%20width='16'%20height='16'%20viewBox='0%200%2016%2016'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M9%203V7H13'%20stroke='%230166FF'%20stroke-width='1.5'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M7%2013V9H3'%20stroke='%230166FF'%20stroke-width='1.5'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M14%202L9%207'%20stroke='%230166FF'%20stroke-width='1.5'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M7%209L2%2014'%20stroke='%230166FF'%20stroke-width='1.5'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3c/svg%3e",Group:"data:image/svg+xml,%3csvg%20width='15'%20height='15'%20viewBox='0%200%2015%2015'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M8.12852%201.82495L11.816%203.46245C12.8785%203.9312%2012.8785%204.7062%2011.816%205.17495L8.12852%206.81245C7.70977%206.99995%207.02227%206.99995%206.60352%206.81245L2.91602%205.17495C1.85352%204.7062%201.85352%203.9312%202.91602%203.46245L6.60352%201.82495C7.02227%201.63745%207.70977%201.63745%208.12852%201.82495Z'%20stroke='%23909090'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M1.875%206.875C1.875%207.4%202.26875%208.00625%202.75%208.21875L6.99375%2010.1062C7.31875%2010.25%207.6875%2010.25%208.00625%2010.1062L12.25%208.21875C12.7313%208.00625%2013.125%207.4%2013.125%206.875'%20stroke='%23909090'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M1.875%2010C1.875%2010.5812%202.21875%2011.1062%202.75%2011.3437L6.99375%2013.2312C7.31875%2013.375%207.6875%2013.375%208.00625%2013.2312L12.25%2011.3437C12.7813%2011.1062%2013.125%2010.5812%2013.125%2010'%20stroke='%23909090'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3c/svg%3e",CrossWhite:"data:image/svg+xml,%3csvg%20width='15'%20height='16'%20viewBox='0%200%2015%2016'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M12.2302%203.25293L2.75%2012.7371'%20stroke='%23909090'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M12.25%2012.75L2.75%203.25'%20stroke='%23909090'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3c/svg%3e",Save:"data:image/svg+xml,%3csvg%20width='12'%20height='12'%20viewBox='0%200%2012%2012'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M4.61086%204.11505C3.64436%204.11505%202.86086%203.33155%202.86086%202.36505V0.290039H2.5407C1.13751%200.290039%200%201.42755%200%202.83074V9.24934C0%2010.3917%200.753899%2011.3579%201.79129%2011.6777V8.57536C1.79129%207.05657%203.02251%205.82536%204.5413%205.82536H6.9599C8.47869%205.82536%209.7099%207.05658%209.7099%208.57536V11.6773C10.7467%2011.3572%2011.5%2010.3912%2011.5%209.24934V4.56517C11.5%204.0332%2011.2887%203.52301%2010.9125%203.14685L8.64319%200.877528C8.64211%200.876443%208.64102%200.875359%208.63993%200.874277V2.36505C8.63993%203.33155%207.85643%204.11505%206.88993%204.11505H4.61086ZM7.13993%200.290039H4.36086V2.36505C4.36086%202.50312%204.47279%202.61505%204.61086%202.61505H6.88993C7.028%202.61505%207.13993%202.50312%207.13993%202.36505V0.290039ZM4.5413%207.32536C3.85094%207.32536%203.29129%207.885%203.29129%208.57536V11.7091H8.2099V8.57536C8.2099%207.885%207.65026%207.32536%206.9599%207.32536H4.5413Z'%20fill='%23909090'/%3e%3c/svg%3e",UploadDark:"data:image/svg+xml,%3csvg%20width='14'%20height='14'%20viewBox='0%200%2014%2014'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M5.25065%209.91699V6.41699L4.08398%207.58366'%20stroke='%23909090'%20stroke-width='0.8'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M5.25%206.41699L6.41667%207.58366'%20stroke='%23909090'%20stroke-width='0.8'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M12.8327%205.83366V8.75033C12.8327%2011.667%2011.666%2012.8337%208.74935%2012.8337H5.24935C2.33268%2012.8337%201.16602%2011.667%201.16602%208.75033V5.25033C1.16602%202.33366%202.33268%201.16699%205.24935%201.16699H8.16602'%20stroke='%23909090'%20stroke-width='0.8'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M12.8327%205.83366H10.4993C8.74935%205.83366%208.16602%205.25033%208.16602%203.50033V1.16699L12.8327%205.83366Z'%20stroke='%23909090'%20stroke-width='0.8'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3c/svg%3e",ArrowDownLight:"data:image/svg+xml,%3csvg%20width='8'%20height='4'%20viewBox='0%200%208%204'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M7%200.543945L4.32449%203.21945C4.00852%203.53542%203.49148%203.53542%203.17551%203.21945L0.5%200.543945'%20stroke='white'%20stroke-miterlimit='10'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3c/svg%3e",ArrowUpLight:"data:image/svg+xml,%3csvg%20width='8'%20height='4'%20viewBox='0%200%208%204'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M7%203.45605L4.32449%200.78055C4.00852%200.464578%203.49148%200.464578%203.17551%200.78055L0.5%203.45605'%20stroke='white'%20stroke-miterlimit='10'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3c/svg%3e",Drag:"data:image/svg+xml,%3csvg%20width='13'%20height='13'%20viewBox='0%200%2016%2018'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M6.5%207.5C5.675%207.5%205%208.175%205%209C5%209.825%205.675%2010.5%206.5%2010.5C7.325%2010.5%208%209.825%208%209C8%208.175%207.325%207.5%206.5%207.5Z'%20fill='%23909090'/%3e%3cpath%20d='M6.5%2013.5C5.675%2013.5%205%2014.175%205%2015C5%2015.825%205.675%2016.5%206.5%2016.5C7.325%2016.5%208%2015.825%208%2015C8%2014.175%207.325%2013.5%206.5%2013.5Z'%20fill='%23909090'/%3e%3cpath%20d='M6.5%201.5C5.675%201.5%205%202.175%205%203C5%203.825%205.675%204.5%206.5%204.5C7.325%204.5%208%203.825%208%203C8%202.175%207.325%201.5%206.5%201.5Z'%20fill='%23909090'/%3e%3cpath%20d='M12%207.5C11.175%207.5%2010.5%208.175%2010.5%209C10.5%209.825%2011.175%2010.5%2012%2010.5C12.825%2010.5%2013.5%209.825%2013.5%209C13.5%208.175%2012.825%207.5%2012%207.5Z'%20fill='%23909090'/%3e%3cpath%20d='M12%2013.5C11.175%2013.5%2010.5%2014.175%2010.5%2015C10.5%2015.825%2011.175%2016.5%2012%2016.5C12.825%2016.5%2013.5%2015.825%2013.5%2015C13.5%2014.175%2012.825%2013.5%2012%2013.5Z'%20fill='%23909090'/%3e%3cpath%20d='M12%201.5C11.175%201.5%2010.5%202.175%2010.5%203C10.5%203.825%2011.175%204.5%2012%204.5C12.825%204.5%2013.5%203.825%2013.5%203C13.5%202.175%2012.825%201.5%2012%201.5Z'%20fill='%23909090'/%3e%3c/svg%3e",CloseCircle:"data:image/svg+xml,%3csvg%20width='16'%20height='16'%20viewBox='0%200%2016%2016'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M8.00065%2014.6663C11.6673%2014.6663%2014.6673%2011.6663%2014.6673%207.99967C14.6673%204.33301%2011.6673%201.33301%208.00065%201.33301C4.33398%201.33301%201.33398%204.33301%201.33398%207.99967C1.33398%2011.6663%204.33398%2014.6663%208.00065%2014.6663Z'%20stroke='%23999999'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M6.11328%209.88661L9.88661%206.11328'%20stroke='%23999999'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M9.88661%209.88661L6.11328%206.11328'%20stroke='%23999999'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3c/svg%3e",AddSquare:"data:image/svg+xml,%3csvg%20width='14'%20height='14'%20viewBox='0%200%2014%2014'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M4.66602%207H9.33268'%20stroke='%23909090'%20stroke-width='0.8'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M7%209.33366V4.66699'%20stroke='%23909090'%20stroke-width='0.8'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M5.24935%2012.8337H8.74935C11.666%2012.8337%2012.8327%2011.667%2012.8327%208.75033V5.25033C12.8327%202.33366%2011.666%201.16699%208.74935%201.16699H5.24935C2.33268%201.16699%201.16602%202.33366%201.16602%205.25033V8.75033C1.16602%2011.667%202.33268%2012.8337%205.24935%2012.8337Z'%20stroke='%23909090'%20stroke-width='0.8'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3c/svg%3e",CalendarEdit:"data:image/svg+xml,%3csvg%20width='14'%20height='14'%20viewBox='0%200%2014%2014'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M4.66699%201.16699V2.91699'%20stroke='white'%20stroke-width='0.8'%20stroke-miterlimit='10'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M9.33301%201.16699V2.91699'%20stroke='white'%20stroke-width='0.8'%20stroke-miterlimit='10'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M2.04199%205.30273H11.9587'%20stroke='white'%20stroke-width='0.8'%20stroke-miterlimit='10'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M11.2058%209.19949L9.14078%2011.2645C9.05912%2011.3462%208.98327%2011.4978%208.96577%2011.6087L8.85494%2012.3962C8.8141%2012.682%209.01244%2012.8803%209.29828%2012.8395L10.0858%2012.7287C10.1966%2012.7112%2010.3541%2012.6353%2010.4299%2012.5537L12.4949%2010.4887C12.8508%2010.1328%2013.0199%209.71867%2012.4949%209.19367C11.9758%208.6745%2011.5616%208.84366%2011.2058%209.19949Z'%20stroke='white'%20stroke-width='0.6'%20stroke-miterlimit='10'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M10.9082%209.49707C11.0832%2010.1271%2011.5732%2010.6171%2012.2032%2010.7921'%20stroke='white'%20stroke-width='0.6'%20stroke-miterlimit='10'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M7%2012.8337H4.66667C2.625%2012.8337%201.75%2011.667%201.75%209.91699V4.95866C1.75%203.20866%202.625%202.04199%204.66667%202.04199H9.33333C11.375%202.04199%2012.25%203.20866%2012.25%204.95866V7.00033'%20stroke='white'%20stroke-width='0.8'%20stroke-miterlimit='10'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M6.99745%207.99186H7.00269'%20stroke='white'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M4.83827%207.99186H4.84351'%20stroke='white'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M4.83827%209.74186H4.84351'%20stroke='white'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3c/svg%3e"},MM={light:Qs({mode:"light",palette:{primary:{appBackground:"#FFFFFF",main:"#f5f7fa",notifyBackground:"#F8FAFB",notifyTextColor:"#525252",notifyActiveText:"#282A2A",notifyBorderColor:"#D0D4DA",notifyTooltipBackground:"#07080B",notifyButtonBackground:"#E6EAEC",notifyActiveBorderColor:"#1D1D1D",notifyIconColor:"#666D80"},brandColor:{blue:"#0166FF",lightBlue:"#0582CA",orange:"#E94F1C",lightOrange:"#ff9a78",grey1:"#595959",red:"#E85353",main:"#FF6D33",grey3:"#898A93",paginationBc:"#EDEDED",white:"#FFFFFF",grey:"#2D2D2F"}},typography:{fontFamily:"Euclid Circular Regular, sans-serif",fontSize:12,fontWeightMedium:"bold",fontWeightRegular:"lighter"},components:{MuiDrawer:{defaultProps:{disableRipple:!0}}},icons:{close:Ge.CrossLight,filter:Ge.FilterLight}}),dark:Qs({mode:"dark",palette:{primary:{appBackground:"#101010",main:"#f5f7fa",notifyBackground:"#1D1D1D",notifyTextColor:"#A8A8A8",notifyActiveText:"#FFFFFF",notifyBorderColor:"#313133",notifyTooltipBackground:"#07080B",notifyButtonBackground:"#2C2C2F",notifyActiveBorderColor:"#FFFFFF",notifyIconColor:"#909090"},brandColor:{blue:"#0166FF",lightBlue:"#0582CA",orange:"#E94F1C",lightOrange:"#ff9a78",grey1:"#595959",main:"#FF6D33",red:"#E85353",grey3:"#898A93",paginationBc:"#1D1D1F",white:"#FFFFFF"}},typography:{fontFamily:"Euclid Circular Regular, sans-serif",fontSize:12,fontWeightMedium:"bold",fontWeightRegular:"lighter"},components:{MuiDrawer:{defaultProps:{disableRipple:!0}}},icons:{close:Ge.Cross,filter:Ge.Filter}})};function Yt({children:e}){const t=JSON.parse(localStorage.getItem("settings"))?.platform?.theme||"light",[n,r]=x.useState(t);return x.useEffect(()=>{const o=s=>{r(s?.detail)};return window.addEventListener(Ol.THEME,o),()=>{window.removeEventListener(Ol.THEME,o)}},[]),p.jsx(lT,{theme:MM[n],children:e})}const eu=x.createContext({});function qr(e){const t=x.useRef(null);return t.current===null&&(t.current=e()),t.current}const tu=typeof window<"u",nu=tu?x.useLayoutEffect:x.useEffect,Ml=x.createContext(null);function ru(e,t){e.indexOf(t)===-1&&e.push(t)}function ou(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}function PM([...e],t,n){const r=t<0?e.length+t:t;if(r>=0&&r<e.length){const o=n<0?e.length+n:n,[s]=e.splice(t,1);e.splice(o,0,s)}return e}const pr=(e,t,n)=>n>t?t:n<e?e:n;function su(e,t){return t?`${e}. For more information and steps for solving, visit https://motion.dev/troubleshooting/${t}`:e}let ss=()=>{},Yn=()=>{};typeof process<"u"&&process.env?.NODE_ENV!=="production"&&(ss=(e,t,n)=>{!e&&typeof console<"u"&&console.warn(su(t,n))},Yn=(e,t,n)=>{if(!e)throw new Error(su(t,n))});const jr={},i0=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e);function a0(e){return typeof e=="object"&&e!==null}const l0=e=>/^0[^.\s]+$/u.test(e);function iu(e){let t;return()=>(t===void 0&&(t=e()),t)}const Rn=e=>e,jM=(e,t)=>n=>t(e(n)),Ei=(...e)=>e.reduce(jM),Oi=(e,t,n)=>{const r=t-e;return r===0?1:(n-e)/r};class au{constructor(){this.subscriptions=[]}add(t){return ru(this.subscriptions,t),()=>ou(this.subscriptions,t)}notify(t,n,r){const o=this.subscriptions.length;if(o)if(o===1)this.subscriptions[0](t,n,r);else for(let s=0;s<o;s++){const a=this.subscriptions[s];a&&a(t,n,r)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}const hr=e=>e*1e3,Nn=e=>e/1e3;function c0(e,t){return t?e*(1e3/t):0}const d0=new Set;function lu(e,t,n){e||d0.has(t)||(console.warn(su(t,n)),d0.add(t))}const u0=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e,IM=1e-7,DM=12;function AM(e,t,n,r,o){let s,a,l=0;do a=t+(n-t)/2,s=u0(a,r,o)-e,s>0?n=a:t=a;while(Math.abs(s)>IM&&++l<DM);return a}function Mi(e,t,n,r){if(e===t&&n===r)return Rn;const o=s=>AM(s,0,1,e,n);return s=>s===0||s===1?s:u0(o(s),t,r)}const f0=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,p0=e=>t=>1-e(1-t),h0=Mi(.33,1.53,.69,.99),cu=p0(h0),m0=f0(cu),g0=e=>(e*=2)<1?.5*cu(e):.5*(2-Math.pow(2,-10*(e-1))),du=e=>1-Math.sin(Math.acos(e)),y0=p0(du),b0=f0(du),RM=Mi(.42,0,1,1),NM=Mi(0,0,.58,1),v0=Mi(.42,0,.58,1),$M=e=>Array.isArray(e)&&typeof e[0]!="number",x0=e=>Array.isArray(e)&&typeof e[0]=="number",w0={linear:Rn,easeIn:RM,easeInOut:v0,easeOut:NM,circIn:du,circInOut:b0,circOut:y0,backIn:cu,backInOut:m0,backOut:h0,anticipate:g0},LM=e=>typeof e=="string",S0=e=>{if(x0(e)){Yn(e.length===4,"Cubic bezier arrays must contain four numerical values.","cubic-bezier-length");const[t,n,r,o]=e;return Mi(t,n,r,o)}else if(LM(e))return Yn(w0[e]!==void 0,`Invalid easing type '${e}'`,"invalid-easing-type"),w0[e];return e},Pl=["setup","read","resolveKeyframes","preUpdate","update","preRender","render","postRender"];function BM(e,t){let n=new Set,r=new Set,o=!1,s=!1;const a=new WeakSet;let l={delta:0,timestamp:0,isProcessing:!1};function c(u){a.has(u)&&(d.schedule(u),e()),u(l)}const d={schedule:(u,f=!1,h=!1)=>{const g=h&&o?n:r;return f&&a.add(u),g.has(u)||g.add(u),u},cancel:u=>{r.delete(u),a.delete(u)},process:u=>{if(l=u,o){s=!0;return}o=!0,[n,r]=[r,n],n.forEach(c),n.clear(),o=!1,s&&(s=!1,d.process(u))}};return d}const _M=40;function C0(e,t){let n=!1,r=!0;const o={delta:0,timestamp:0,isProcessing:!1},s=()=>n=!0,a=Pl.reduce((S,C)=>(S[C]=BM(s),S),{}),{setup:l,read:c,resolveKeyframes:d,preUpdate:u,update:f,preRender:h,render:m,postRender:g}=a,y=()=>{const S=jr.useManualTiming?o.timestamp:performance.now();n=!1,jr.useManualTiming||(o.delta=r?1e3/60:Math.max(Math.min(S-o.timestamp,_M),1)),o.timestamp=S,o.isProcessing=!0,l.process(o),c.process(o),d.process(o),u.process(o),f.process(o),h.process(o),m.process(o),g.process(o),o.isProcessing=!1,n&&t&&(r=!1,e(y))},b=()=>{n=!0,r=!0,o.isProcessing||e(y)};return{schedule:Pl.reduce((S,C)=>{const w=a[C];return S[C]=(T,E=!1,M=!1)=>(n||b(),w.schedule(T,E,M)),S},{}),cancel:S=>{for(let C=0;C<Pl.length;C++)a[Pl[C]].cancel(S)},state:o,steps:a}}const{schedule:Ct,cancel:Ir,state:Gt,steps:uu}=C0(typeof requestAnimationFrame<"u"?requestAnimationFrame:Rn,!0);let jl;function FM(){jl=void 0}const sn={now:()=>(jl===void 0&&sn.set(Gt.isProcessing||jr.useManualTiming?Gt.timestamp:performance.now()),jl),set:e=>{jl=e,queueMicrotask(FM)}},T0=e=>t=>typeof t=="string"&&t.startsWith(e),k0=T0("--"),WM=T0("var(--"),fu=e=>WM(e)?zM.test(e.split("/*")[0].trim()):!1,zM=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu;function E0(e){return typeof e!="string"?!1:e.split("/*")[0].includes("var(--")}const is={test:e=>typeof e=="number",parse:parseFloat,transform:e=>e},Pi={...is,transform:e=>pr(0,1,e)},Il={...is,default:1},ji=e=>Math.round(e*1e5)/1e5,pu=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function VM(e){return e==null}const HM=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,hu=(e,t)=>n=>!!(typeof n=="string"&&HM.test(n)&&n.startsWith(e)||t&&!VM(n)&&Object.prototype.hasOwnProperty.call(n,t)),O0=(e,t,n)=>r=>{if(typeof r!="string")return r;const[o,s,a,l]=r.match(pu);return{[e]:parseFloat(o),[t]:parseFloat(s),[n]:parseFloat(a),alpha:l!==void 0?parseFloat(l):1}},UM=e=>pr(0,255,e),mu={...is,transform:e=>Math.round(UM(e))},yo={test:hu("rgb","red"),parse:O0("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:r=1})=>"rgba("+mu.transform(e)+", "+mu.transform(t)+", "+mu.transform(n)+", "+ji(Pi.transform(r))+")"};function YM(e){let t="",n="",r="",o="";return e.length>5?(t=e.substring(1,3),n=e.substring(3,5),r=e.substring(5,7),o=e.substring(7,9)):(t=e.substring(1,2),n=e.substring(2,3),r=e.substring(3,4),o=e.substring(4,5),t+=t,n+=n,r+=r,o+=o),{red:parseInt(t,16),green:parseInt(n,16),blue:parseInt(r,16),alpha:o?parseInt(o,16)/255:1}}const gu={test:hu("#"),parse:YM,transform:yo.transform},Ii=e=>({test:t=>typeof t=="string"&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),Gr=Ii("deg"),mr=Ii("%"),Se=Ii("px"),qM=Ii("vh"),GM=Ii("vw"),M0={...mr,parse:e=>mr.parse(e)/100,transform:e=>mr.transform(e*100)},as={test:hu("hsl","hue"),parse:O0("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>"hsla("+Math.round(e)+", "+mr.transform(ji(t))+", "+mr.transform(ji(n))+", "+ji(Pi.transform(r))+")"},Bt={test:e=>yo.test(e)||gu.test(e)||as.test(e),parse:e=>yo.test(e)?yo.parse(e):as.test(e)?as.parse(e):gu.parse(e),transform:e=>typeof e=="string"?e:e.hasOwnProperty("red")?yo.transform(e):as.transform(e),getAnimatableNone:e=>{const t=Bt.parse(e);return t.alpha=0,Bt.transform(t)}},KM=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function XM(e){return isNaN(e)&&typeof e=="string"&&(e.match(pu)?.length||0)+(e.match(KM)?.length||0)>0}const P0="number",j0="color",ZM="var",JM="var(",I0="${}",QM=/var\s*\(\s*--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)|#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\)|-?(?:\d+(?:\.\d+)?|\.\d+)/giu;function Di(e){const t=e.toString(),n=[],r={color:[],number:[],var:[]},o=[];let s=0;const l=t.replace(QM,c=>(Bt.test(c)?(r.color.push(s),o.push(j0),n.push(Bt.parse(c))):c.startsWith(JM)?(r.var.push(s),o.push(ZM),n.push(c)):(r.number.push(s),o.push(P0),n.push(parseFloat(c))),++s,I0)).split(I0);return{values:n,split:l,indexes:r,types:o}}function D0(e){return Di(e).values}function A0(e){const{split:t,types:n}=Di(e),r=t.length;return o=>{let s="";for(let a=0;a<r;a++)if(s+=t[a],o[a]!==void 0){const l=n[a];l===P0?s+=ji(o[a]):l===j0?s+=Bt.transform(o[a]):s+=o[a]}return s}}const eP=e=>typeof e=="number"?0:Bt.test(e)?Bt.getAnimatableNone(e):e;function tP(e){const t=D0(e);return A0(e)(t.map(eP))}const Kr={test:XM,parse:D0,createTransformer:A0,getAnimatableNone:tP};function yu(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+(t-e)*6*n:n<1/2?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function nP({hue:e,saturation:t,lightness:n,alpha:r}){e/=360,t/=100,n/=100;let o=0,s=0,a=0;if(!t)o=s=a=n;else{const l=n<.5?n*(1+t):n+t-n*t,c=2*n-l;o=yu(c,l,e+1/3),s=yu(c,l,e),a=yu(c,l,e-1/3)}return{red:Math.round(o*255),green:Math.round(s*255),blue:Math.round(a*255),alpha:r}}function Dl(e,t){return n=>n>0?t:e}const Et=(e,t,n)=>e+(t-e)*n,bu=(e,t,n)=>{const r=e*e,o=n*(t*t-r)+r;return o<0?0:Math.sqrt(o)},rP=[gu,yo,as],oP=e=>rP.find(t=>t.test(e));function R0(e){const t=oP(e);if(ss(!!t,`'${e}' is not an animatable color. Use the equivalent color code instead.`,"color-not-animatable"),!t)return!1;let n=t.parse(e);return t===as&&(n=nP(n)),n}const N0=(e,t)=>{const n=R0(e),r=R0(t);if(!n||!r)return Dl(e,t);const o={...n};return s=>(o.red=bu(n.red,r.red,s),o.green=bu(n.green,r.green,s),o.blue=bu(n.blue,r.blue,s),o.alpha=Et(n.alpha,r.alpha,s),yo.transform(o))},vu=new Set(["none","hidden"]);function sP(e,t){return vu.has(e)?n=>n<=0?e:t:n=>n>=1?t:e}function iP(e,t){return n=>Et(e,t,n)}function xu(e){return typeof e=="number"?iP:typeof e=="string"?fu(e)?Dl:Bt.test(e)?N0:cP:Array.isArray(e)?$0:typeof e=="object"?Bt.test(e)?N0:aP:Dl}function $0(e,t){const n=[...e],r=n.length,o=e.map((s,a)=>xu(s)(s,t[a]));return s=>{for(let a=0;a<r;a++)n[a]=o[a](s);return n}}function aP(e,t){const n={...e,...t},r={};for(const o in n)e[o]!==void 0&&t[o]!==void 0&&(r[o]=xu(e[o])(e[o],t[o]));return o=>{for(const s in r)n[s]=r[s](o);return n}}function lP(e,t){const n=[],r={color:0,var:0,number:0};for(let o=0;o<t.values.length;o++){const s=t.types[o],a=e.indexes[s][r[s]],l=e.values[a]??0;n[o]=l,r[s]++}return n}const cP=(e,t)=>{const n=Kr.createTransformer(t),r=Di(e),o=Di(t);return r.indexes.var.length===o.indexes.var.length&&r.indexes.color.length===o.indexes.color.length&&r.indexes.number.length>=o.indexes.number.length?vu.has(e)&&!o.values.length||vu.has(t)&&!r.values.length?sP(e,t):Ei($0(lP(r,o),o.values),n):(ss(!0,`Complex values '${e}' and '${t}' too different to mix. Ensure all colors are of the same type, and that each contains the same quantity of number and color values. Falling back to instant transition.`,"complex-values-different"),Dl(e,t))};function L0(e,t,n){return typeof e=="number"&&typeof t=="number"&&typeof n=="number"?Et(e,t,n):xu(e)(e,t)}const dP=e=>{const t=({timestamp:n})=>e(n);return{start:(n=!0)=>Ct.update(t,n),stop:()=>Ir(t),now:()=>Gt.isProcessing?Gt.timestamp:sn.now()}},B0=(e,t,n=10)=>{let r="";const o=Math.max(Math.round(t/n),2);for(let s=0;s<o;s++)r+=Math.round(e(s/(o-1))*1e4)/1e4+", ";return`linear(${r.substring(0,r.length-2)})`},Al=2e4;function wu(e){let t=0;const n=50;let r=e.next(t);for(;!r.done&&t<Al;)t+=n,r=e.next(t);return t>=Al?1/0:t}function uP(e,t=100,n){const r=n({...e,keyframes:[0,t]}),o=Math.min(wu(r),Al);return{type:"keyframes",ease:s=>r.next(o*s).value/t,duration:Nn(o)}}const fP=5;function _0(e,t,n){const r=Math.max(t-fP,0);return c0(n-e(r),t-r)}const Mt={stiffness:100,damping:10,mass:1,velocity:0,duration:800,bounce:.3,visualDuration:.3,restSpeed:{granular:.01,default:2},restDelta:{granular:.005,default:.5},minDuration:.01,maxDuration:10,minDamping:.05,maxDamping:1},Su=.001;function pP({duration:e=Mt.duration,bounce:t=Mt.bounce,velocity:n=Mt.velocity,mass:r=Mt.mass}){let o,s;ss(e<=hr(Mt.maxDuration),"Spring duration must be 10 seconds or less","spring-duration-limit");let a=1-t;a=pr(Mt.minDamping,Mt.maxDamping,a),e=pr(Mt.minDuration,Mt.maxDuration,Nn(e)),a<1?(o=d=>{const u=d*a,f=u*e,h=u-n,m=Cu(d,a),g=Math.exp(-f);return Su-h/m*g},s=d=>{const f=d*a*e,h=f*n+n,m=Math.pow(a,2)*Math.pow(d,2)*e,g=Math.exp(-f),y=Cu(Math.pow(d,2),a);return(-o(d)+Su>0?-1:1)*((h-m)*g)/y}):(o=d=>{const u=Math.exp(-d*e),f=(d-n)*e+1;return-Su+u*f},s=d=>{const u=Math.exp(-d*e),f=(n-d)*(e*e);return u*f});const l=5/e,c=mP(o,s,l);if(e=hr(e),isNaN(c))return{stiffness:Mt.stiffness,damping:Mt.damping,duration:e};{const d=Math.pow(c,2)*r;return{stiffness:d,damping:a*2*Math.sqrt(r*d),duration:e}}}const hP=12;function mP(e,t,n){let r=n;for(let o=1;o<hP;o++)r=r-e(r)/t(r);return r}function Cu(e,t){return e*Math.sqrt(1-t*t)}const gP=["duration","bounce"],yP=["stiffness","damping","mass"];function F0(e,t){return t.some(n=>e[n]!==void 0)}function bP(e){let t={velocity:Mt.velocity,stiffness:Mt.stiffness,damping:Mt.damping,mass:Mt.mass,isResolvedFromDuration:!1,...e};if(!F0(e,yP)&&F0(e,gP))if(e.visualDuration){const n=e.visualDuration,r=2*Math.PI/(n*1.2),o=r*r,s=2*pr(.05,1,1-(e.bounce||0))*Math.sqrt(o);t={...t,mass:Mt.mass,stiffness:o,damping:s}}else{const n=pP(e);t={...t,...n,mass:Mt.mass},t.isResolvedFromDuration=!0}return t}function Rl(e=Mt.visualDuration,t=Mt.bounce){const n=typeof e!="object"?{visualDuration:e,keyframes:[0,1],bounce:t}:e;let{restSpeed:r,restDelta:o}=n;const s=n.keyframes[0],a=n.keyframes[n.keyframes.length-1],l={done:!1,value:s},{stiffness:c,damping:d,mass:u,duration:f,velocity:h,isResolvedFromDuration:m}=bP({...n,velocity:-Nn(n.velocity||0)}),g=h||0,y=d/(2*Math.sqrt(c*u)),b=a-s,v=Nn(Math.sqrt(c/u)),k=Math.abs(b)<5;r||(r=k?Mt.restSpeed.granular:Mt.restSpeed.default),o||(o=k?Mt.restDelta.granular:Mt.restDelta.default);let S;if(y<1){const w=Cu(v,y);S=T=>{const E=Math.exp(-y*v*T);return a-E*((g+y*v*b)/w*Math.sin(w*T)+b*Math.cos(w*T))}}else if(y===1)S=w=>a-Math.exp(-v*w)*(b+(g+v*b)*w);else{const w=v*Math.sqrt(y*y-1);S=T=>{const E=Math.exp(-y*v*T),M=Math.min(w*T,300);return a-E*((g+y*v*b)*Math.sinh(M)+w*b*Math.cosh(M))/w}}const C={calculatedDuration:m&&f||null,next:w=>{const T=S(w);if(m)l.done=w>=f;else{let E=w===0?g:0;y<1&&(E=w===0?hr(g):_0(S,w,T));const M=Math.abs(E)<=r,j=Math.abs(a-T)<=o;l.done=M&&j}return l.value=l.done?a:T,l},toString:()=>{const w=Math.min(wu(C),Al),T=B0(E=>C.next(w*E).value,w,30);return w+"ms "+T},toTransition:()=>{}};return C}Rl.applyToOptions=e=>{const t=uP(e,100,Rl);return e.ease=t.ease,e.duration=hr(t.duration),e.type="keyframes",e};function Tu({keyframes:e,velocity:t=0,power:n=.8,timeConstant:r=325,bounceDamping:o=10,bounceStiffness:s=500,modifyTarget:a,min:l,max:c,restDelta:d=.5,restSpeed:u}){const f=e[0],h={done:!1,value:f},m=M=>l!==void 0&&M<l||c!==void 0&&M>c,g=M=>l===void 0?c:c===void 0||Math.abs(l-M)<Math.abs(c-M)?l:c;let y=n*t;const b=f+y,v=a===void 0?b:a(b);v!==b&&(y=v-f);const k=M=>-y*Math.exp(-M/r),S=M=>v+k(M),C=M=>{const j=k(M),A=S(M);h.done=Math.abs(j)<=d,h.value=h.done?v:A};let w,T;const E=M=>{m(h.value)&&(w=M,T=Rl({keyframes:[h.value,g(h.value)],velocity:_0(S,M,h.value),damping:o,stiffness:s,restDelta:d,restSpeed:u}))};return E(0),{calculatedDuration:null,next:M=>{let j=!1;return!T&&w===void 0&&(j=!0,C(M),E(M)),w!==void 0&&M>=w?T.next(M-w):(!j&&C(M),h)}}}function vP(e,t,n){const r=[],o=n||jr.mix||L0,s=e.length-1;for(let a=0;a<s;a++){let l=o(e[a],e[a+1]);if(t){const c=Array.isArray(t)?t[a]||Rn:t;l=Ei(c,l)}r.push(l)}return r}function W0(e,t,{clamp:n=!0,ease:r,mixer:o}={}){const s=e.length;if(Yn(s===t.length,"Both input and output ranges must be the same length","range-length"),s===1)return()=>t[0];if(s===2&&t[0]===t[1])return()=>t[1];const a=e[0]===e[1];e[0]>e[s-1]&&(e=[...e].reverse(),t=[...t].reverse());const l=vP(t,r,o),c=l.length,d=u=>{if(a&&u<e[0])return t[0];let f=0;if(c>1)for(;f<e.length-2&&!(u<e[f+1]);f++);const h=Oi(e[f],e[f+1],u);return l[f](h)};return n?u=>d(pr(e[0],e[s-1],u)):d}function xP(e,t){const n=e[e.length-1];for(let r=1;r<=t;r++){const o=Oi(0,t,r);e.push(Et(n,1,o))}}function wP(e){const t=[0];return xP(t,e.length-1),t}function SP(e,t){return e.map(n=>n*t)}function CP(e,t){return e.map(()=>t||v0).splice(0,e.length-1)}function ls({duration:e=300,keyframes:t,times:n,ease:r="easeInOut"}){const o=$M(r)?r.map(S0):S0(r),s={done:!1,value:t[0]},a=SP(n&&n.length===t.length?n:wP(t),e),l=W0(a,t,{ease:Array.isArray(o)?o:CP(t,o)});return{calculatedDuration:e,next:c=>(s.value=l(c),s.done=c>=e,s)}}const TP=e=>e!==null;function ku(e,{repeat:t,repeatType:n="loop"},r,o=1){const s=e.filter(TP),l=o<0||t&&n!=="loop"&&t%2===1?0:s.length-1;return!l||r===void 0?s[l]:r}const kP={decay:Tu,inertia:Tu,tween:ls,keyframes:ls,spring:Rl};function z0(e){typeof e.type=="string"&&(e.type=kP[e.type])}class Eu{constructor(){this.updateFinished()}get finished(){return this._finished}updateFinished(){this._finished=new Promise(t=>{this.resolve=t})}notifyFinished(){this.resolve()}then(t,n){return this.finished.then(t,n)}}const EP=e=>e/100;class Ou extends Eu{constructor(t){super(),this.state="idle",this.startTime=null,this.isStopped=!1,this.currentTime=0,this.holdTime=null,this.playbackSpeed=1,this.stop=()=>{const{motionValue:n}=this.options;n&&n.updatedAt!==sn.now()&&this.tick(sn.now()),this.isStopped=!0,this.state!=="idle"&&(this.teardown(),this.options.onStop?.())},this.options=t,this.initAnimation(),this.play(),t.autoplay===!1&&this.pause()}initAnimation(){const{options:t}=this;z0(t);const{type:n=ls,repeat:r=0,repeatDelay:o=0,repeatType:s,velocity:a=0}=t;let{keyframes:l}=t;const c=n||ls;process.env.NODE_ENV!=="production"&&c!==ls&&Yn(l.length<=2,`Only two keyframes currently supported with spring and inertia animations. Trying to animate ${l}`,"spring-two-frames"),c!==ls&&typeof l[0]!="number"&&(this.mixKeyframes=Ei(EP,L0(l[0],l[1])),l=[0,100]);const d=c({...t,keyframes:l});s==="mirror"&&(this.mirroredGenerator=c({...t,keyframes:[...l].reverse(),velocity:-a})),d.calculatedDuration===null&&(d.calculatedDuration=wu(d));const{calculatedDuration:u}=d;this.calculatedDuration=u,this.resolvedDuration=u+o,this.totalDuration=this.resolvedDuration*(r+1)-o,this.generator=d}updateTime(t){const n=Math.round(t-this.startTime)*this.playbackSpeed;this.holdTime!==null?this.currentTime=this.holdTime:this.currentTime=n}tick(t,n=!1){const{generator:r,totalDuration:o,mixKeyframes:s,mirroredGenerator:a,resolvedDuration:l,calculatedDuration:c}=this;if(this.startTime===null)return r.next(0);const{delay:d=0,keyframes:u,repeat:f,repeatType:h,repeatDelay:m,type:g,onUpdate:y,finalKeyframe:b}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,t):this.speed<0&&(this.startTime=Math.min(t-o/this.speed,this.startTime)),n?this.currentTime=t:this.updateTime(t);const v=this.currentTime-d*(this.playbackSpeed>=0?1:-1),k=this.playbackSpeed>=0?v<0:v>o;this.currentTime=Math.max(v,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=o);let S=this.currentTime,C=r;if(f){const M=Math.min(this.currentTime,o)/l;let j=Math.floor(M),A=M%1;!A&&M>=1&&(A=1),A===1&&j--,j=Math.min(j,f+1),j%2&&(h==="reverse"?(A=1-A,m&&(A-=m/l)):h==="mirror"&&(C=a)),S=pr(0,1,A)*l}const w=k?{done:!1,value:u[0]}:C.next(S);s&&(w.value=s(w.value));let{done:T}=w;!k&&c!==null&&(T=this.playbackSpeed>=0?this.currentTime>=o:this.currentTime<=0);const E=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&T);return E&&g!==Tu&&(w.value=ku(u,this.options,b,this.speed)),y&&y(w.value),E&&this.finish(),w}then(t,n){return this.finished.then(t,n)}get duration(){return Nn(this.calculatedDuration)}get iterationDuration(){const{delay:t=0}=this.options||{};return this.duration+Nn(t)}get time(){return Nn(this.currentTime)}set time(t){t=hr(t),this.currentTime=t,this.startTime===null||this.holdTime!==null||this.playbackSpeed===0?this.holdTime=t:this.driver&&(this.startTime=this.driver.now()-t/this.playbackSpeed),this.driver?.start(!1)}get speed(){return this.playbackSpeed}set speed(t){this.updateTime(sn.now());const n=this.playbackSpeed!==t;this.playbackSpeed=t,n&&(this.time=Nn(this.currentTime))}play(){if(this.isStopped)return;const{driver:t=dP,startTime:n}=this.options;this.driver||(this.driver=t(o=>this.tick(o))),this.options.onPlay?.();const r=this.driver.now();this.state==="finished"?(this.updateFinished(),this.startTime=r):this.holdTime!==null?this.startTime=r-this.holdTime:this.startTime||(this.startTime=n??r),this.state==="finished"&&this.speed<0&&(this.startTime+=this.calculatedDuration),this.holdTime=null,this.state="running",this.driver.start()}pause(){this.state="paused",this.updateTime(sn.now()),this.holdTime=this.currentTime}complete(){this.state!=="running"&&this.play(),this.state="finished",this.holdTime=null}finish(){this.notifyFinished(),this.teardown(),this.state="finished",this.options.onComplete?.()}cancel(){this.holdTime=null,this.startTime=0,this.tick(0),this.teardown(),this.options.onCancel?.()}teardown(){this.state="idle",this.stopDriver(),this.startTime=this.holdTime=null}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(t){return this.startTime=0,this.tick(t,!0)}attachTimeline(t){return this.options.allowFlatten&&(this.options.type="keyframes",this.options.ease="linear",this.initAnimation()),this.driver?.stop(),t.observe(this)}}function OP(e){for(let t=1;t<e.length;t++)e[t]??(e[t]=e[t-1])}const bo=e=>e*180/Math.PI,Mu=e=>{const t=bo(Math.atan2(e[1],e[0]));return Pu(t)},MP={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:e=>(Math.abs(e[0])+Math.abs(e[3]))/2,rotate:Mu,rotateZ:Mu,skewX:e=>bo(Math.atan(e[1])),skewY:e=>bo(Math.atan(e[2])),skew:e=>(Math.abs(e[1])+Math.abs(e[2]))/2},Pu=e=>(e=e%360,e<0&&(e+=360),e),V0=Mu,H0=e=>Math.sqrt(e[0]*e[0]+e[1]*e[1]),U0=e=>Math.sqrt(e[4]*e[4]+e[5]*e[5]),PP={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:H0,scaleY:U0,scale:e=>(H0(e)+U0(e))/2,rotateX:e=>Pu(bo(Math.atan2(e[6],e[5]))),rotateY:e=>Pu(bo(Math.atan2(-e[2],e[0]))),rotateZ:V0,rotate:V0,skewX:e=>bo(Math.atan(e[4])),skewY:e=>bo(Math.atan(e[1])),skew:e=>(Math.abs(e[1])+Math.abs(e[4]))/2};function ju(e){return e.includes("scale")?1:0}function Iu(e,t){if(!e||e==="none")return ju(t);const n=e.match(/^matrix3d\(([-\d.e\s,]+)\)$/u);let r,o;if(n)r=PP,o=n;else{const l=e.match(/^matrix\(([-\d.e\s,]+)\)$/u);r=MP,o=l}if(!o)return ju(t);const s=r[t],a=o[1].split(",").map(IP);return typeof s=="function"?s(a):a[s]}const jP=(e,t)=>{const{transform:n="none"}=getComputedStyle(e);return Iu(n,t)};function IP(e){return parseFloat(e.trim())}const cs=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],ds=new Set(cs),Y0=e=>e===is||e===Se,DP=new Set(["x","y","z"]),AP=cs.filter(e=>!DP.has(e));function RP(e){const t=[];return AP.forEach(n=>{const r=e.getValue(n);r!==void 0&&(t.push([n,r.get()]),r.set(n.startsWith("scale")?1:0))}),t}const Xr={width:({x:e},{paddingLeft:t="0",paddingRight:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),height:({y:e},{paddingTop:t="0",paddingBottom:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),top:(e,{top:t})=>parseFloat(t),left:(e,{left:t})=>parseFloat(t),bottom:({y:e},{top:t})=>parseFloat(t)+(e.max-e.min),right:({x:e},{left:t})=>parseFloat(t)+(e.max-e.min),x:(e,{transform:t})=>Iu(t,"x"),y:(e,{transform:t})=>Iu(t,"y")};Xr.translateX=Xr.x,Xr.translateY=Xr.y;const vo=new Set;let Du=!1,Au=!1,Ru=!1;function q0(){if(Au){const e=Array.from(vo).filter(r=>r.needsMeasurement),t=new Set(e.map(r=>r.element)),n=new Map;t.forEach(r=>{const o=RP(r);o.length&&(n.set(r,o),r.render())}),e.forEach(r=>r.measureInitialState()),t.forEach(r=>{r.render();const o=n.get(r);o&&o.forEach(([s,a])=>{r.getValue(s)?.set(a)})}),e.forEach(r=>r.measureEndState()),e.forEach(r=>{r.suspendedScrollY!==void 0&&window.scrollTo(0,r.suspendedScrollY)})}Au=!1,Du=!1,vo.forEach(e=>e.complete(Ru)),vo.clear()}function G0(){vo.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(Au=!0)})}function NP(){Ru=!0,G0(),q0(),Ru=!1}class Nu{constructor(t,n,r,o,s,a=!1){this.state="pending",this.isAsync=!1,this.needsMeasurement=!1,this.unresolvedKeyframes=[...t],this.onComplete=n,this.name=r,this.motionValue=o,this.element=s,this.isAsync=a}scheduleResolve(){this.state="scheduled",this.isAsync?(vo.add(this),Du||(Du=!0,Ct.read(G0),Ct.resolveKeyframes(q0))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:t,name:n,element:r,motionValue:o}=this;if(t[0]===null){const s=o?.get(),a=t[t.length-1];if(s!==void 0)t[0]=s;else if(r&&n){const l=r.readValue(n,a);l!=null&&(t[0]=l)}t[0]===void 0&&(t[0]=a),o&&s===void 0&&o.set(t[0])}OP(t)}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(t=!1){this.state="complete",this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,t),vo.delete(this)}cancel(){this.state==="scheduled"&&(vo.delete(this),this.state="pending")}resume(){this.state==="pending"&&this.scheduleResolve()}}const $P=e=>e.startsWith("--");function LP(e,t,n){$P(t)?e.style.setProperty(t,n):e.style[t]=n}const BP=iu(()=>window.ScrollTimeline!==void 0),_P={};function FP(e,t){const n=iu(e);return()=>_P[t]??n()}const K0=FP(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing"),Ai=([e,t,n,r])=>`cubic-bezier(${e}, ${t}, ${n}, ${r})`,X0={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:Ai([0,.65,.55,1]),circOut:Ai([.55,0,1,.45]),backIn:Ai([.31,.01,.66,-.59]),backOut:Ai([.33,1.53,.69,.99])};function Z0(e,t){if(e)return typeof e=="function"?K0()?B0(e,t):"ease-out":x0(e)?Ai(e):Array.isArray(e)?e.map(n=>Z0(n,t)||X0.easeOut):X0[e]}function WP(e,t,n,{delay:r=0,duration:o=300,repeat:s=0,repeatType:a="loop",ease:l="easeOut",times:c}={},d=void 0){const u={[t]:n};c&&(u.offset=c);const f=Z0(l,o);Array.isArray(f)&&(u.easing=f);const h={delay:r,duration:o,easing:Array.isArray(f)?"linear":f,fill:"both",iterations:s+1,direction:a==="reverse"?"alternate":"normal"};return d&&(h.pseudoElement=d),e.animate(u,h)}function J0(e){return typeof e=="function"&&"applyToOptions"in e}function zP({type:e,...t}){return J0(e)&&K0()?e.applyToOptions(t):(t.duration??(t.duration=300),t.ease??(t.ease="easeOut"),t)}class VP extends Eu{constructor(t){if(super(),this.finishedTime=null,this.isStopped=!1,this.manualStartTime=null,!t)return;const{element:n,name:r,keyframes:o,pseudoElement:s,allowFlatten:a=!1,finalKeyframe:l,onComplete:c}=t;this.isPseudoElement=!!s,this.allowFlatten=a,this.options=t,Yn(typeof t.type!="string",`Mini animate() doesn't support "type" as a string.`,"mini-spring");const d=zP(t);this.animation=WP(n,r,o,d,s),d.autoplay===!1&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!s){const u=ku(o,this.options,l,this.speed);this.updateMotionValue?this.updateMotionValue(u):LP(n,r,u),this.animation.cancel()}c?.(),this.notifyFinished()}}play(){this.isStopped||(this.manualStartTime=null,this.animation.play(),this.state==="finished"&&this.updateFinished())}pause(){this.animation.pause()}complete(){this.animation.finish?.()}cancel(){try{this.animation.cancel()}catch{}}stop(){if(this.isStopped)return;this.isStopped=!0;const{state:t}=this;t==="idle"||t==="finished"||(this.updateMotionValue?this.updateMotionValue():this.commitStyles(),this.isPseudoElement||this.cancel())}commitStyles(){this.isPseudoElement||this.animation.commitStyles?.()}get duration(){const t=this.animation.effect?.getComputedTiming?.().duration||0;return Nn(Number(t))}get iterationDuration(){const{delay:t=0}=this.options||{};return this.duration+Nn(t)}get time(){return Nn(Number(this.animation.currentTime)||0)}set time(t){this.manualStartTime=null,this.finishedTime=null,this.animation.currentTime=hr(t)}get speed(){return this.animation.playbackRate}set speed(t){t<0&&(this.finishedTime=null),this.animation.playbackRate=t}get state(){return this.finishedTime!==null?"finished":this.animation.playState}get startTime(){return this.manualStartTime??Number(this.animation.startTime)}set startTime(t){this.manualStartTime=this.animation.startTime=t}attachTimeline({timeline:t,observe:n}){return this.allowFlatten&&this.animation.effect?.updateTiming({easing:"linear"}),this.animation.onfinish=null,t&&BP()?(this.animation.timeline=t,Rn):n(this)}}const Q0={anticipate:g0,backInOut:m0,circInOut:b0};function HP(e){return e in Q0}function UP(e){typeof e.ease=="string"&&HP(e.ease)&&(e.ease=Q0[e.ease])}const $u=10;class YP extends VP{constructor(t){UP(t),z0(t),super(t),t.startTime!==void 0&&(this.startTime=t.startTime),this.options=t}updateMotionValue(t){const{motionValue:n,onUpdate:r,onComplete:o,element:s,...a}=this.options;if(!n)return;if(t!==void 0){n.set(t);return}const l=new Ou({...a,autoplay:!1}),c=Math.max($u,sn.now()-this.startTime),d=pr(0,$u,c-$u);n.setWithVelocity(l.sample(Math.max(0,c-d)).value,l.sample(c).value,d),l.stop()}}const ey=(e,t)=>t==="zIndex"?!1:!!(typeof e=="number"||Array.isArray(e)||typeof e=="string"&&(Kr.test(e)||e==="0")&&!e.startsWith("url("));function qP(e){const t=e[0];if(e.length===1)return!0;for(let n=0;n<e.length;n++)if(e[n]!==t)return!0}function GP(e,t,n,r){const o=e[0];if(o===null)return!1;if(t==="display"||t==="visibility")return!0;const s=e[e.length-1],a=ey(o,t),l=ey(s,t);return ss(a===l,`You are trying to animate ${t} from "${o}" to "${s}". "${a?s:o}" is not an animatable value.`,"value-not-animatable"),!a||!l?!1:qP(e)||(n==="spring"||J0(n))&&r}function Lu(e){e.duration=0,e.type="keyframes"}const KP=new Set(["opacity","clipPath","filter","transform"]),XP=iu(()=>Object.hasOwnProperty.call(Element.prototype,"animate"));function ZP(e){const{motionValue:t,name:n,repeatDelay:r,repeatType:o,damping:s,type:a}=e;if(!(t?.owner?.current instanceof HTMLElement))return!1;const{onUpdate:c,transformTemplate:d}=t.owner.getProps();return XP()&&n&&KP.has(n)&&(n!=="transform"||!d)&&!c&&!r&&o!=="mirror"&&s!==0&&a!=="inertia"}const JP=40;class QP extends Eu{constructor({autoplay:t=!0,delay:n=0,type:r="keyframes",repeat:o=0,repeatDelay:s=0,repeatType:a="loop",keyframes:l,name:c,motionValue:d,element:u,...f}){super(),this.stop=()=>{this._animation&&(this._animation.stop(),this.stopTimeline?.()),this.keyframeResolver?.cancel()},this.createdAt=sn.now();const h={autoplay:t,delay:n,type:r,repeat:o,repeatDelay:s,repeatType:a,name:c,motionValue:d,element:u,...f},m=u?.KeyframeResolver||Nu;this.keyframeResolver=new m(l,(g,y,b)=>this.onKeyframesResolved(g,y,h,!b),c,d,u),this.keyframeResolver?.scheduleResolve()}onKeyframesResolved(t,n,r,o){this.keyframeResolver=void 0;const{name:s,type:a,velocity:l,delay:c,isHandoff:d,onUpdate:u}=r;this.resolvedAt=sn.now(),GP(t,s,a,l)||((jr.instantAnimations||!c)&&u?.(ku(t,r,n)),t[0]=t[t.length-1],Lu(r),r.repeat=0);const h={startTime:o?this.resolvedAt?this.resolvedAt-this.createdAt>JP?this.resolvedAt:this.createdAt:this.createdAt:void 0,finalKeyframe:n,...r,keyframes:t},m=!d&&ZP(h)?new YP({...h,element:h.motionValue.owner.current}):new Ou(h);m.finished.then(()=>this.notifyFinished()).catch(Rn),this.pendingTimeline&&(this.stopTimeline=m.attachTimeline(this.pendingTimeline),this.pendingTimeline=void 0),this._animation=m}get finished(){return this._animation?this.animation.finished:this._finished}then(t,n){return this.finished.finally(t).then(()=>{})}get animation(){return this._animation||(this.keyframeResolver?.resume(),NP()),this._animation}get duration(){return this.animation.duration}get iterationDuration(){return this.animation.iterationDuration}get time(){return this.animation.time}set time(t){this.animation.time=t}get speed(){return this.animation.speed}get state(){return this.animation.state}set speed(t){this.animation.speed=t}get startTime(){return this.animation.startTime}attachTimeline(t){return this._animation?this.stopTimeline=this.animation.attachTimeline(t):this.pendingTimeline=t,()=>this.stop()}play(){this.animation.play()}pause(){this.animation.pause()}complete(){this.animation.complete()}cancel(){this._animation&&this.animation.cancel(),this.keyframeResolver?.cancel()}}const ej=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function tj(e){const t=ej.exec(e);if(!t)return[,];const[,n,r,o]=t;return[`--${n??r}`,o]}const nj=4;function ty(e,t,n=1){Yn(n<=nj,`Max CSS variable fallback depth detected in property "${e}". This may indicate a circular fallback dependency.`,"max-css-var-depth");const[r,o]=tj(e);if(!r)return;const s=window.getComputedStyle(t).getPropertyValue(r);if(s){const a=s.trim();return i0(a)?parseFloat(a):a}return fu(o)?ty(o,t,n+1):o}function Bu(e,t){return e?.[t]??e?.default??e}const ny=new Set(["width","height","top","left","right","bottom",...cs]),rj={test:e=>e==="auto",parse:e=>e},ry=e=>t=>t.test(e),oy=[is,Se,mr,Gr,GM,qM,rj],sy=e=>oy.find(ry(e));function oj(e){return typeof e=="number"?e===0:e!==null?e==="none"||e==="0"||l0(e):!0}const sj=new Set(["brightness","contrast","saturate","opacity"]);function ij(e){const[t,n]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;const[r]=n.match(pu)||[];if(!r)return e;const o=n.replace(r,"");let s=sj.has(t)?1:0;return r!==n&&(s*=100),t+"("+s+o+")"}const aj=/\b([a-z-]*)\(.*?\)/gu,_u={...Kr,getAnimatableNone:e=>{const t=e.match(aj);return t?t.map(ij).join(" "):e}},iy={...is,transform:Math.round},Fu={borderWidth:Se,borderTopWidth:Se,borderRightWidth:Se,borderBottomWidth:Se,borderLeftWidth:Se,borderRadius:Se,radius:Se,borderTopLeftRadius:Se,borderTopRightRadius:Se,borderBottomRightRadius:Se,borderBottomLeftRadius:Se,width:Se,maxWidth:Se,height:Se,maxHeight:Se,top:Se,right:Se,bottom:Se,left:Se,inset:Se,insetBlock:Se,insetBlockStart:Se,insetBlockEnd:Se,insetInline:Se,insetInlineStart:Se,insetInlineEnd:Se,padding:Se,paddingTop:Se,paddingRight:Se,paddingBottom:Se,paddingLeft:Se,paddingBlock:Se,paddingBlockStart:Se,paddingBlockEnd:Se,paddingInline:Se,paddingInlineStart:Se,paddingInlineEnd:Se,margin:Se,marginTop:Se,marginRight:Se,marginBottom:Se,marginLeft:Se,marginBlock:Se,marginBlockStart:Se,marginBlockEnd:Se,marginInline:Se,marginInlineStart:Se,marginInlineEnd:Se,backgroundPositionX:Se,backgroundPositionY:Se,...{rotate:Gr,rotateX:Gr,rotateY:Gr,rotateZ:Gr,scale:Il,scaleX:Il,scaleY:Il,scaleZ:Il,skew:Gr,skewX:Gr,skewY:Gr,distance:Se,translateX:Se,translateY:Se,translateZ:Se,x:Se,y:Se,z:Se,perspective:Se,transformPerspective:Se,opacity:Pi,originX:M0,originY:M0,originZ:Se},zIndex:iy,fillOpacity:Pi,strokeOpacity:Pi,numOctaves:iy},lj={...Fu,color:Bt,backgroundColor:Bt,outlineColor:Bt,fill:Bt,stroke:Bt,borderColor:Bt,borderTopColor:Bt,borderRightColor:Bt,borderBottomColor:Bt,borderLeftColor:Bt,filter:_u,WebkitFilter:_u},ay=e=>lj[e];function ly(e,t){let n=ay(e);return n!==_u&&(n=Kr),n.getAnimatableNone?n.getAnimatableNone(t):void 0}const cj=new Set(["auto","none","0"]);function dj(e,t,n){let r=0,o;for(;r<e.length&&!o;){const s=e[r];typeof s=="string"&&!cj.has(s)&&Di(s).values.length&&(o=e[r]),r++}if(o&&n)for(const s of t)e[s]=ly(n,o)}class uj extends Nu{constructor(t,n,r,o,s){super(t,n,r,o,s,!0)}readKeyframes(){const{unresolvedKeyframes:t,element:n,name:r}=this;if(!n||!n.current)return;super.readKeyframes();for(let u=0;u<t.length;u++){let f=t[u];if(typeof f=="string"&&(f=f.trim(),fu(f))){const h=ty(f,n.current);h!==void 0&&(t[u]=h),u===t.length-1&&(this.finalKeyframe=f)}}if(this.resolveNoneKeyframes(),!ny.has(r)||t.length!==2)return;const[o,s]=t,a=sy(o),l=sy(s),c=E0(o),d=E0(s);if(c!==d&&Xr[r]){this.needsMeasurement=!0;return}if(a!==l)if(Y0(a)&&Y0(l))for(let u=0;u<t.length;u++){const f=t[u];typeof f=="string"&&(t[u]=parseFloat(f))}else Xr[r]&&(this.needsMeasurement=!0)}resolveNoneKeyframes(){const{unresolvedKeyframes:t,name:n}=this,r=[];for(let o=0;o<t.length;o++)(t[o]===null||oj(t[o]))&&r.push(o);r.length&&dj(t,r,n)}measureInitialState(){const{element:t,unresolvedKeyframes:n,name:r}=this;if(!t||!t.current)return;r==="height"&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=Xr[r](t.measureViewportBox(),window.getComputedStyle(t.current)),n[0]=this.measuredOrigin;const o=n[n.length-1];o!==void 0&&t.getValue(r,o).jump(o,!1)}measureEndState(){const{element:t,name:n,unresolvedKeyframes:r}=this;if(!t||!t.current)return;const o=t.getValue(n);o&&o.jump(this.measuredOrigin,!1);const s=r.length-1,a=r[s];r[s]=Xr[n](t.measureViewportBox(),window.getComputedStyle(t.current)),a!==null&&this.finalKeyframe===void 0&&(this.finalKeyframe=a),this.removedTransforms?.length&&this.removedTransforms.forEach(([l,c])=>{t.getValue(l).set(c)}),this.resolveNoneKeyframes()}}function fj(e,t,n){if(e instanceof EventTarget)return[e];if(typeof e=="string"){let r=document;const o=n?.[e]??r.querySelectorAll(e);return o?Array.from(o):[]}return Array.from(e)}const cy=(e,t)=>t&&typeof e=="number"?t.transform(e):e;function dy(e){return a0(e)&&"offsetHeight"in e}const uy=30,pj=e=>!isNaN(parseFloat(e)),Ri={current:void 0};class hj{constructor(t,n={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=r=>{const o=sn.now();if(this.updatedAt!==o&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(r),this.current!==this.prev&&(this.events.change?.notify(this.current),this.dependents))for(const s of this.dependents)s.dirty()},this.hasAnimated=!1,this.setCurrent(t),this.owner=n.owner}setCurrent(t){this.current=t,this.updatedAt=sn.now(),this.canTrackVelocity===null&&t!==void 0&&(this.canTrackVelocity=pj(this.current))}setPrevFrameValue(t=this.current){this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt}onChange(t){return process.env.NODE_ENV!=="production"&&lu(!1,'value.onChange(callback) is deprecated. Switch to value.on("change", callback).'),this.on("change",t)}on(t,n){this.events[t]||(this.events[t]=new au);const r=this.events[t].add(n);return t==="change"?()=>{r(),Ct.read(()=>{this.events.change.getSize()||this.stop()})}:r}clearListeners(){for(const t in this.events)this.events[t].clear()}attach(t,n){this.passiveEffect=t,this.stopPassiveEffect=n}set(t){this.passiveEffect?this.passiveEffect(t,this.updateAndNotify):this.updateAndNotify(t)}setWithVelocity(t,n,r){this.set(n),this.prev=void 0,this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt-r}jump(t,n=!0){this.updateAndNotify(t),this.prev=t,this.prevUpdatedAt=this.prevFrameValue=void 0,n&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}dirty(){this.events.change?.notify(this.current)}addDependent(t){this.dependents||(this.dependents=new Set),this.dependents.add(t)}removeDependent(t){this.dependents&&this.dependents.delete(t)}get(){return Ri.current&&Ri.current.push(this),this.current}getPrevious(){return this.prev}getVelocity(){const t=sn.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||t-this.updatedAt>uy)return 0;const n=Math.min(this.updatedAt-this.prevUpdatedAt,uy);return c0(parseFloat(this.current)-parseFloat(this.prevFrameValue),n)}start(t){return this.stop(),new Promise(n=>{this.hasAnimated=!0,this.animation=t(n),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){this.dependents?.clear(),this.events.destroy?.notify(),this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function xo(e,t){return new hj(e,t)}const{schedule:Wu}=C0(queueMicrotask,!1),qn={x:!1,y:!1};function fy(){return qn.x||qn.y}function mj(e){return e==="x"||e==="y"?qn[e]?null:(qn[e]=!0,()=>{qn[e]=!1}):qn.x||qn.y?null:(qn.x=qn.y=!0,()=>{qn.x=qn.y=!1})}function py(e,t){const n=fj(e),r=new AbortController,o={passive:!0,...t,signal:r.signal};return[n,o,()=>r.abort()]}function hy(e){return!(e.pointerType==="touch"||fy())}function gj(e,t,n={}){const[r,o,s]=py(e,n),a=l=>{if(!hy(l))return;const{target:c}=l,d=t(c,l);if(typeof d!="function"||!c)return;const u=f=>{hy(f)&&(d(f),c.removeEventListener("pointerleave",u))};c.addEventListener("pointerleave",u,o)};return r.forEach(l=>{l.addEventListener("pointerenter",a,o)}),s}const my=(e,t)=>t?e===t?!0:my(e,t.parentElement):!1,zu=e=>e.pointerType==="mouse"?typeof e.button!="number"||e.button<=0:e.isPrimary!==!1,yj=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function gy(e){return yj.has(e.tagName)||e.isContentEditable===!0}const Nl=new WeakSet;function yy(e){return t=>{t.key==="Enter"&&e(t)}}function Vu(e,t){e.dispatchEvent(new PointerEvent("pointer"+t,{isPrimary:!0,bubbles:!0}))}const bj=(e,t)=>{const n=e.currentTarget;if(!n)return;const r=yy(()=>{if(Nl.has(n))return;Vu(n,"down");const o=yy(()=>{Vu(n,"up")}),s=()=>Vu(n,"cancel");n.addEventListener("keyup",o,t),n.addEventListener("blur",s,t)});n.addEventListener("keydown",r,t),n.addEventListener("blur",()=>n.removeEventListener("keydown",r),t)};function by(e){return zu(e)&&!fy()}function vj(e,t,n={}){const[r,o,s]=py(e,n),a=l=>{const c=l.currentTarget;if(!by(l))return;Nl.add(c);const d=t(c,l),u=(m,g)=>{window.removeEventListener("pointerup",f),window.removeEventListener("pointercancel",h),Nl.has(c)&&Nl.delete(c),by(m)&&typeof d=="function"&&d(m,{success:g})},f=m=>{u(m,c===window||c===document||n.useGlobalTarget||my(c,m.target))},h=m=>{u(m,!1)};window.addEventListener("pointerup",f,o),window.addEventListener("pointercancel",h,o)};return r.forEach(l=>{(n.useGlobalTarget?window:l).addEventListener("pointerdown",a,o),dy(l)&&(l.addEventListener("focus",d=>bj(d,o)),!gy(l)&&!l.hasAttribute("tabindex")&&(l.tabIndex=0))}),s}function vy(e){return a0(e)&&"ownerSVGElement"in e}function xj(e){return vy(e)&&e.tagName==="svg"}function wj(...e){const t=!Array.isArray(e[0]),n=t?0:-1,r=e[0+n],o=e[1+n],s=e[2+n],a=e[3+n],l=W0(o,s,a);return t?l(r):l}const Kt=e=>!!(e&&e.getVelocity),Sj=[...oy,Bt,Kr],Cj=e=>Sj.find(ry(e)),$l=x.createContext({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"});function xy(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function Tj(...e){return t=>{let n=!1;const r=e.map(o=>{const s=xy(o,t);return!n&&typeof s=="function"&&(n=!0),s});if(n)return()=>{for(let o=0;o<r.length;o++){const s=r[o];typeof s=="function"?s():xy(e[o],null)}}}}function kj(...e){return I.useCallback(Tj(...e),e)}class Ej extends I.Component{getSnapshotBeforeUpdate(t){const n=this.props.childRef.current;if(n&&t.isPresent&&!this.props.isPresent){const r=n.offsetParent,o=dy(r)&&r.offsetWidth||0,s=this.props.sizeRef.current;s.height=n.offsetHeight||0,s.width=n.offsetWidth||0,s.top=n.offsetTop,s.left=n.offsetLeft,s.right=o-s.width-s.left}return null}componentDidUpdate(){}render(){return this.props.children}}function Oj({children:e,isPresent:t,anchorX:n,root:r}){const o=x.useId(),s=x.useRef(null),a=x.useRef({width:0,height:0,top:0,left:0,right:0}),{nonce:l}=x.useContext($l),c=e.props?.ref??e?.ref,d=kj(s,c);return x.useInsertionEffect(()=>{const{width:u,height:f,top:h,left:m,right:g}=a.current;if(t||!s.current||!u||!f)return;const y=n==="left"?`left: ${m}`:`right: ${g}`;s.current.dataset.motionPopId=o;const b=document.createElement("style");l&&(b.nonce=l);const v=r??document.head;return v.appendChild(b),b.sheet&&b.sheet.insertRule(`
|
|
239
|
-
[data-motion-pop-id="${o}"] {
|
|
240
|
-
position: absolute !important;
|
|
241
|
-
width: ${u}px !important;
|
|
242
|
-
height: ${f}px !important;
|
|
243
|
-
${y}px !important;
|
|
244
|
-
top: ${h}px !important;
|
|
245
|
-
}
|
|
246
|
-
`),()=>{v.contains(b)&&v.removeChild(b)}},[t]),p.jsx(Ej,{isPresent:t,childRef:s,sizeRef:a,children:I.cloneElement(e,{ref:d})})}const Mj=({children:e,initial:t,isPresent:n,onExitComplete:r,custom:o,presenceAffectsLayout:s,mode:a,anchorX:l,root:c})=>{const d=qr(Pj),u=x.useId();let f=!0,h=x.useMemo(()=>(f=!1,{id:u,initial:t,isPresent:n,custom:o,onExitComplete:m=>{d.set(m,!0);for(const g of d.values())if(!g)return;r&&r()},register:m=>(d.set(m,!1),()=>d.delete(m))}),[n,d,r]);return s&&f&&(h={...h}),x.useMemo(()=>{d.forEach((m,g)=>d.set(g,!1))},[n]),I.useEffect(()=>{!n&&!d.size&&r&&r()},[n]),a==="popLayout"&&(e=p.jsx(Oj,{isPresent:n,anchorX:l,root:c,children:e})),p.jsx(Ml.Provider,{value:h,children:e})};function Pj(){return new Map}function wy(e=!0){const t=x.useContext(Ml);if(t===null)return[!0,null];const{isPresent:n,onExitComplete:r,register:o}=t,s=x.useId();x.useEffect(()=>{if(e)return o(s)},[e]);const a=x.useCallback(()=>e&&r&&r(s),[s,r,e]);return!n&&r?[!1,a]:[!0]}const Ll=e=>e.key||"";function Sy(e){const t=[];return x.Children.forEach(e,n=>{x.isValidElement(n)&&t.push(n)}),t}const jj=({children:e,custom:t,initial:n=!0,onExitComplete:r,presenceAffectsLayout:o=!0,mode:s="sync",propagate:a=!1,anchorX:l="left",root:c})=>{const[d,u]=wy(a),f=x.useMemo(()=>Sy(e),[e]),h=a&&!d?[]:f.map(Ll),m=x.useRef(!0),g=x.useRef(f),y=qr(()=>new Map),b=x.useRef(new Set),[v,k]=x.useState(f),[S,C]=x.useState(f);nu(()=>{m.current=!1,g.current=f;for(let E=0;E<S.length;E++){const M=Ll(S[E]);h.includes(M)?(y.delete(M),b.current.delete(M)):y.get(M)!==!0&&y.set(M,!1)}},[S,h.length,h.join("-")]);const w=[];if(f!==v){let E=[...f];for(let M=0;M<S.length;M++){const j=S[M],A=Ll(j);h.includes(A)||(E.splice(M,0,j),w.push(j))}return s==="wait"&&w.length&&(E=w),C(Sy(E)),k(f),null}process.env.NODE_ENV!=="production"&&s==="wait"&&S.length>1&&console.warn(`You're attempting to animate multiple children within AnimatePresence, but its mode is set to "wait". This will lead to odd visual behaviour.`);const{forceRender:T}=x.useContext(eu);return p.jsx(p.Fragment,{children:S.map(E=>{const M=Ll(E),j=a&&!d?!1:f===S||h.includes(M),A=()=>{if(b.current.has(M))return;if(b.current.add(M),y.has(M))y.set(M,!0);else return;let L=!0;y.forEach(O=>{O||(L=!1)}),L&&(T?.(),C(g.current),a&&u?.(),r&&r())};return p.jsx(Mj,{isPresent:j,initial:!m.current||n?void 0:!1,custom:t,presenceAffectsLayout:o,mode:s,root:c,onExitComplete:j?void 0:A,anchorX:l,children:E},M)})})},Cy=x.createContext({strict:!1}),Ty={animation:["animate","variants","whileHover","whileTap","exit","whileInView","whileFocus","whileDrag"],exit:["exit"],drag:["drag","dragControls"],focus:["whileFocus"],hover:["whileHover","onHoverStart","onHoverEnd"],tap:["whileTap","onTap","onTapStart","onTapCancel"],pan:["onPan","onPanStart","onPanSessionStart","onPanEnd"],inView:["whileInView","onViewportEnter","onViewportLeave"],layout:["layout","layoutId"]},us={};for(const e in Ty)us[e]={isEnabled:t=>Ty[e].some(n=>!!t[n])};function Ij(e){for(const t in e)us[t]={...us[t],...e[t]}}const Dj=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","custom","inherit","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","globalTapTarget","ignoreStrict","viewport"]);function Bl(e){return e.startsWith("while")||e.startsWith("drag")&&e!=="draggable"||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||Dj.has(e)}let ky=e=>!Bl(e);function Aj(e){typeof e=="function"&&(ky=t=>t.startsWith("on")?!Bl(t):e(t))}try{Aj(require("@emotion/is-prop-valid").default)}catch{}function Rj(e,t,n){const r={};for(const o in e)o==="values"&&typeof e.values=="object"||(ky(o)||n===!0&&Bl(o)||!t&&!Bl(o)||e.draggable&&o.startsWith("onDrag"))&&(r[o]=e[o]);return r}const _l=x.createContext({});function Fl(e){return e!==null&&typeof e=="object"&&typeof e.start=="function"}function Ni(e){return typeof e=="string"||Array.isArray(e)}const Hu=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],Uu=["initial",...Hu];function Wl(e){return Fl(e.animate)||Uu.some(t=>Ni(e[t]))}function Ey(e){return!!(Wl(e)||e.variants)}function Nj(e,t){if(Wl(e)){const{initial:n,animate:r}=e;return{initial:n===!1||Ni(n)?n:void 0,animate:Ni(r)?r:void 0}}return e.inherit!==!1?t:{}}function $j(e){const{initial:t,animate:n}=Nj(e,x.useContext(_l));return x.useMemo(()=>({initial:t,animate:n}),[Oy(t),Oy(n)])}function Oy(e){return Array.isArray(e)?e.join(" "):e}function My(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}const $i={correct:(e,t)=>{if(!t.target)return e;if(typeof e=="string")if(Se.test(e))e=parseFloat(e);else return e;const n=My(e,t.target.x),r=My(e,t.target.y);return`${n}% ${r}%`}},Lj={correct:(e,{treeScale:t,projectionDelta:n})=>{const r=e,o=Kr.parse(e);if(o.length>5)return r;const s=Kr.createTransformer(e),a=typeof o[0]!="number"?1:0,l=n.x.scale*t.x,c=n.y.scale*t.y;o[0+a]/=l,o[1+a]/=c;const d=Et(l,c,.5);return typeof o[2+a]=="number"&&(o[2+a]/=d),typeof o[3+a]=="number"&&(o[3+a]/=d),s(o)}},Yu={borderRadius:{...$i,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:$i,borderTopRightRadius:$i,borderBottomLeftRadius:$i,borderBottomRightRadius:$i,boxShadow:Lj};function Py(e,{layout:t,layoutId:n}){return ds.has(e)||e.startsWith("origin")||(t||n!==void 0)&&(!!Yu[e]||e==="opacity")}const Bj={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},_j=cs.length;function Fj(e,t,n){let r="",o=!0;for(let s=0;s<_j;s++){const a=cs[s],l=e[a];if(l===void 0)continue;let c=!0;if(typeof l=="number"?c=l===(a.startsWith("scale")?1:0):c=parseFloat(l)===0,!c||n){const d=cy(l,Fu[a]);if(!c){o=!1;const u=Bj[a]||a;r+=`${u}(${d}) `}n&&(t[a]=d)}}return r=r.trim(),n?r=n(t,o?"":r):o&&(r="none"),r}function qu(e,t,n){const{style:r,vars:o,transformOrigin:s}=e;let a=!1,l=!1;for(const c in t){const d=t[c];if(ds.has(c)){a=!0;continue}else if(k0(c)){o[c]=d;continue}else{const u=cy(d,Fu[c]);c.startsWith("origin")?(l=!0,s[c]=u):r[c]=u}}if(t.transform||(a||n?r.transform=Fj(t,e.transform,n):r.transform&&(r.transform="none")),l){const{originX:c="50%",originY:d="50%",originZ:u=0}=s;r.transformOrigin=`${c} ${d} ${u}`}}const Gu=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function jy(e,t,n){for(const r in t)!Kt(t[r])&&!Py(r,n)&&(e[r]=t[r])}function Wj({transformTemplate:e},t){return x.useMemo(()=>{const n=Gu();return qu(n,t,e),Object.assign({},n.vars,n.style)},[t])}function zj(e,t){const n=e.style||{},r={};return jy(r,n,e),Object.assign(r,Wj(e,t)),r}function Vj(e,t){const n={},r=zj(e,t);return e.drag&&e.dragListener!==!1&&(n.draggable=!1,r.userSelect=r.WebkitUserSelect=r.WebkitTouchCallout="none",r.touchAction=e.drag===!0?"none":`pan-${e.drag==="x"?"y":"x"}`),e.tabIndex===void 0&&(e.onTap||e.onTapStart||e.whileTap)&&(n.tabIndex=0),n.style=r,n}const Hj={offset:"stroke-dashoffset",array:"stroke-dasharray"},Uj={offset:"strokeDashoffset",array:"strokeDasharray"};function Yj(e,t,n=1,r=0,o=!0){e.pathLength=1;const s=o?Hj:Uj;e[s.offset]=Se.transform(-r);const a=Se.transform(t),l=Se.transform(n);e[s.array]=`${a} ${l}`}const qj=["offsetDistance","offsetPath","offsetRotate","offsetAnchor"];function Iy(e,{attrX:t,attrY:n,attrScale:r,pathLength:o,pathSpacing:s=1,pathOffset:a=0,...l},c,d,u){if(qu(e,l,d),c){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};const{attrs:f,style:h}=e;f.transform&&(h.transform=f.transform,delete f.transform),(h.transform||f.transformOrigin)&&(h.transformOrigin=f.transformOrigin??"50% 50%",delete f.transformOrigin),h.transform&&(h.transformBox=u?.transformBox??"fill-box",delete f.transformBox);for(const m of qj)f[m]!==void 0&&(h[m]=f[m],delete f[m]);t!==void 0&&(f.x=t),n!==void 0&&(f.y=n),r!==void 0&&(f.scale=r),o!==void 0&&Yj(f,o,s,a,!1)}const Dy=()=>({...Gu(),attrs:{}}),Ay=e=>typeof e=="string"&&e.toLowerCase()==="svg";function Gj(e,t,n,r){const o=x.useMemo(()=>{const s=Dy();return Iy(s,t,Ay(r),e.transformTemplate,e.style),{...s.attrs,style:{...s.style}}},[t]);if(e.style){const s={};jy(s,e.style,e),o.style={...s,...o.style}}return o}const Kj=["animate","circle","defs","desc","ellipse","g","image","line","filter","marker","mask","metadata","path","pattern","polygon","polyline","rect","stop","switch","symbol","svg","text","tspan","use","view"];function Ku(e){return typeof e!="string"||e.includes("-")?!1:!!(Kj.indexOf(e)>-1||/[A-Z]/u.test(e))}function Xj(e,t,n,{latestValues:r},o,s=!1,a){const c=(a??Ku(e)?Gj:Vj)(t,r,o,e),d=Rj(t,typeof e=="string",s),u=e!==x.Fragment?{...d,...c,ref:n}:{},{children:f}=t,h=x.useMemo(()=>Kt(f)?f.get():f,[f]);return x.createElement(e,{...u,children:h})}function Ry(e){const t=[{},{}];return e?.values.forEach((n,r)=>{t[0][r]=n.get(),t[1][r]=n.getVelocity()}),t}function Xu(e,t,n,r){if(typeof t=="function"){const[o,s]=Ry(r);t=t(n!==void 0?n:e.custom,o,s)}if(typeof t=="string"&&(t=e.variants&&e.variants[t]),typeof t=="function"){const[o,s]=Ry(r);t=t(n!==void 0?n:e.custom,o,s)}return t}function zl(e){return Kt(e)?e.get():e}function Zj({scrapeMotionValuesFromProps:e,createRenderState:t},n,r,o){return{latestValues:Jj(n,r,o,e),renderState:t()}}function Jj(e,t,n,r){const o={},s=r(e,{});for(const h in s)o[h]=zl(s[h]);let{initial:a,animate:l}=e;const c=Wl(e),d=Ey(e);t&&d&&!c&&e.inherit!==!1&&(a===void 0&&(a=t.initial),l===void 0&&(l=t.animate));let u=n?n.initial===!1:!1;u=u||a===!1;const f=u?l:a;if(f&&typeof f!="boolean"&&!Fl(f)){const h=Array.isArray(f)?f:[f];for(let m=0;m<h.length;m++){const g=Xu(e,h[m]);if(g){const{transitionEnd:y,transition:b,...v}=g;for(const k in v){let S=v[k];if(Array.isArray(S)){const C=u?S.length-1:0;S=S[C]}S!==null&&(o[k]=S)}for(const k in y)o[k]=y[k]}}}return o}const Ny=e=>(t,n)=>{const r=x.useContext(_l),o=x.useContext(Ml),s=()=>Zj(e,t,r,o);return n?s():qr(s)};function Zu(e,t,n){const{style:r}=e,o={};for(const s in r)(Kt(r[s])||t.style&&Kt(t.style[s])||Py(s,e)||n?.getValue(s)?.liveStyle!==void 0)&&(o[s]=r[s]);return o}const Qj=Ny({scrapeMotionValuesFromProps:Zu,createRenderState:Gu});function $y(e,t,n){const r=Zu(e,t,n);for(const o in e)if(Kt(e[o])||Kt(t[o])){const s=cs.indexOf(o)!==-1?"attr"+o.charAt(0).toUpperCase()+o.substring(1):o;r[s]=e[o]}return r}const eI=Ny({scrapeMotionValuesFromProps:$y,createRenderState:Dy}),tI=Symbol.for("motionComponentSymbol");function nI(e,t,n){const r=x.useRef(n);x.useInsertionEffect(()=>{r.current=n});const o=x.useRef(null);return x.useCallback(s=>{s&&e.onMount?.(s),t&&(s?t.mount(s):t.unmount());const a=r.current;if(typeof a=="function")if(s){const l=a(s);typeof l=="function"&&(o.current=l)}else o.current?(o.current(),o.current=null):a(s);else a&&(a.current=s)},[t])}const Ju=e=>e.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),Ly="data-"+Ju("framerAppearId"),By=x.createContext({});function Li(e){return e&&typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}function rI(e,t,n,r,o,s){const{visualElement:a}=x.useContext(_l),l=x.useContext(Cy),c=x.useContext(Ml),d=x.useContext($l).reducedMotion,u=x.useRef(null);r=r||l.renderer,!u.current&&r&&(u.current=r(e,{visualState:t,parent:a,props:n,presenceContext:c,blockInitialAnimation:c?c.initial===!1:!1,reducedMotionConfig:d,isSVG:s}));const f=u.current,h=x.useContext(By);f&&!f.projection&&o&&(f.type==="html"||f.type==="svg")&&oI(u.current,n,o,h);const m=x.useRef(!1);x.useInsertionEffect(()=>{f&&m.current&&f.update(n,c)});const g=n[Ly],y=x.useRef(!!g&&!window.MotionHandoffIsComplete?.(g)&&window.MotionHasOptimisedAnimation?.(g));return nu(()=>{f&&(m.current=!0,window.MotionIsMounted=!0,f.updateFeatures(),f.scheduleRenderMicrotask(),y.current&&f.animationState&&f.animationState.animateChanges())}),x.useEffect(()=>{f&&(!y.current&&f.animationState&&f.animationState.animateChanges(),y.current&&(queueMicrotask(()=>{window.MotionHandoffMarkAsComplete?.(g)}),y.current=!1),f.enteringChildren=void 0)}),f}function oI(e,t,n,r){const{layoutId:o,layout:s,drag:a,dragConstraints:l,layoutScroll:c,layoutRoot:d,layoutCrossfade:u}=t;e.projection=new n(e.latestValues,t["data-framer-portal-id"]?void 0:_y(e.parent)),e.projection.setOptions({layoutId:o,layout:s,alwaysMeasureLayout:!!a||l&&Li(l),visualElement:e,animationType:typeof s=="string"?s:"both",initialPromotionConfig:r,crossfade:u,layoutScroll:c,layoutRoot:d})}function _y(e){if(e)return e.options.allowProjection!==!1?e.projection:_y(e.parent)}function Qu(e,{forwardMotionProps:t=!1,type:n}={},r,o){r&&Ij(r);const s=n?n==="svg":Ku(e),a=s?eI:Qj;function l(d,u){let f;const h={...x.useContext($l),...d,layoutId:sI(d)},{isStatic:m}=h,g=$j(d),y=a(d,m);if(!m&&tu){iI(h,r);const b=aI(h);f=b.MeasureLayout,g.visualElement=rI(e,y,h,o,b.ProjectionNode,s)}return p.jsxs(_l.Provider,{value:g,children:[f&&g.visualElement?p.jsx(f,{visualElement:g.visualElement,...h}):null,Xj(e,d,nI(y,g.visualElement,u),y,m,t,s)]})}l.displayName=`motion.${typeof e=="string"?e:`create(${e.displayName??e.name??""})`}`;const c=x.forwardRef(l);return c[tI]=e,c}function sI({layoutId:e}){const t=x.useContext(eu).id;return t&&e!==void 0?t+"-"+e:e}function iI(e,t){const n=x.useContext(Cy).strict;if(process.env.NODE_ENV!=="production"&&t&&n){const r="You have rendered a `motion` component within a `LazyMotion` component. This will break tree shaking. Import and render a `m` component instead.";e.ignoreStrict?ss(!1,r,"lazy-strict-mode"):Yn(!1,r,"lazy-strict-mode")}}function aI(e){const{drag:t,layout:n}=us;if(!t&&!n)return{};const r={...t,...n};return{MeasureLayout:t?.isEnabled(e)||n?.isEnabled(e)?r.MeasureLayout:void 0,ProjectionNode:r.ProjectionNode}}function lI(e,t){if(typeof Proxy>"u")return Qu;const n=new Map,r=(s,a)=>Qu(s,a,e,t),o=(s,a)=>(process.env.NODE_ENV!=="production"&&lu(!1,"motion() is deprecated. Use motion.create() instead."),r(s,a));return new Proxy(o,{get:(s,a)=>a==="create"?r:(n.has(a)||n.set(a,Qu(a,void 0,e,t)),n.get(a))})}function Fy({top:e,left:t,right:n,bottom:r}){return{x:{min:t,max:n},y:{min:e,max:r}}}function cI({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function dI(e,t){if(!t)return e;const n=t({x:e.left,y:e.top}),r=t({x:e.right,y:e.bottom});return{top:n.y,left:n.x,bottom:r.y,right:r.x}}function ef(e){return e===void 0||e===1}function tf({scale:e,scaleX:t,scaleY:n}){return!ef(e)||!ef(t)||!ef(n)}function wo(e){return tf(e)||Wy(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function Wy(e){return zy(e.x)||zy(e.y)}function zy(e){return e&&e!=="0%"}function Vl(e,t,n){const r=e-n,o=t*r;return n+o}function Vy(e,t,n,r,o){return o!==void 0&&(e=Vl(e,o,r)),Vl(e,n,r)+t}function nf(e,t=0,n=1,r,o){e.min=Vy(e.min,t,n,r,o),e.max=Vy(e.max,t,n,r,o)}function Hy(e,{x:t,y:n}){nf(e.x,t.translate,t.scale,t.originPoint),nf(e.y,n.translate,n.scale,n.originPoint)}const Uy=.999999999999,Yy=1.0000000000001;function uI(e,t,n,r=!1){const o=n.length;if(!o)return;t.x=t.y=1;let s,a;for(let l=0;l<o;l++){s=n[l],a=s.projectionDelta;const{visualElement:c}=s.options;c&&c.props.style&&c.props.style.display==="contents"||(r&&s.options.layoutScroll&&s.scroll&&s!==s.root&&ps(e,{x:-s.scroll.offset.x,y:-s.scroll.offset.y}),a&&(t.x*=a.x.scale,t.y*=a.y.scale,Hy(e,a)),r&&wo(s.latestValues)&&ps(e,s.latestValues))}t.x<Yy&&t.x>Uy&&(t.x=1),t.y<Yy&&t.y>Uy&&(t.y=1)}function fs(e,t){e.min=e.min+t,e.max=e.max+t}function qy(e,t,n,r,o=.5){const s=Et(e.min,e.max,o);nf(e,t,n,s,r)}function ps(e,t){qy(e.x,t.x,t.scaleX,t.scale,t.originX),qy(e.y,t.y,t.scaleY,t.scale,t.originY)}function Gy(e,t){return Fy(dI(e.getBoundingClientRect(),t))}function fI(e,t,n){const r=Gy(e,n),{scroll:o}=t;return o&&(fs(r.x,o.offset.x),fs(r.y,o.offset.y)),r}const Ky=()=>({translate:0,scale:1,origin:0,originPoint:0}),hs=()=>({x:Ky(),y:Ky()}),Xy=()=>({min:0,max:0}),Wt=()=>({x:Xy(),y:Xy()}),rf={current:null},Zy={current:!1};function pI(){if(Zy.current=!0,!!tu)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>rf.current=e.matches;e.addEventListener("change",t),t()}else rf.current=!1}const hI=new WeakMap;function mI(e,t,n){for(const r in t){const o=t[r],s=n[r];if(Kt(o))e.addValue(r,o);else if(Kt(s))e.addValue(r,xo(o,{owner:e}));else if(s!==o)if(e.hasValue(r)){const a=e.getValue(r);a.liveStyle===!0?a.jump(o):a.hasAnimated||a.set(o)}else{const a=e.getStaticValue(r);e.addValue(r,xo(a!==void 0?a:o,{owner:e}))}}for(const r in n)t[r]===void 0&&e.removeValue(r);return t}const Jy=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];class gI{scrapeMotionValuesFromProps(t,n,r){return{}}constructor({parent:t,props:n,presenceContext:r,reducedMotionConfig:o,blockInitialAnimation:s,visualState:a},l={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=Nu,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.renderScheduledAt=0,this.scheduleRender=()=>{const h=sn.now();this.renderScheduledAt<h&&(this.renderScheduledAt=h,Ct.render(this.render,!1,!0))};const{latestValues:c,renderState:d}=a;this.latestValues=c,this.baseTarget={...c},this.initialValues=n.initial?{...c}:{},this.renderState=d,this.parent=t,this.props=n,this.presenceContext=r,this.depth=t?t.depth+1:0,this.reducedMotionConfig=o,this.options=l,this.blockInitialAnimation=!!s,this.isControllingVariants=Wl(n),this.isVariantNode=Ey(n),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(t&&t.current);const{willChange:u,...f}=this.scrapeMotionValuesFromProps(n,{},this);for(const h in f){const m=f[h];c[h]!==void 0&&Kt(m)&&m.set(c[h])}}mount(t){this.current=t,hI.set(t,this),this.projection&&!this.projection.instance&&this.projection.mount(t),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((n,r)=>this.bindToMotionValue(r,n)),this.reducedMotionConfig==="never"?this.shouldReduceMotion=!1:this.reducedMotionConfig==="always"?this.shouldReduceMotion=!0:(Zy.current||pI(),this.shouldReduceMotion=rf.current),process.env.NODE_ENV!=="production"&&lu(this.shouldReduceMotion!==!0,"You have Reduced Motion enabled on your device. Animations may not appear as expected.","reduced-motion-disabled"),this.parent?.addChild(this),this.update(this.props,this.presenceContext)}unmount(){this.projection&&this.projection.unmount(),Ir(this.notifyUpdate),Ir(this.render),this.valueSubscriptions.forEach(t=>t()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent?.removeChild(this);for(const t in this.events)this.events[t].clear();for(const t in this.features){const n=this.features[t];n&&(n.unmount(),n.isMounted=!1)}this.current=null}addChild(t){this.children.add(t),this.enteringChildren??(this.enteringChildren=new Set),this.enteringChildren.add(t)}removeChild(t){this.children.delete(t),this.enteringChildren&&this.enteringChildren.delete(t)}bindToMotionValue(t,n){this.valueSubscriptions.has(t)&&this.valueSubscriptions.get(t)();const r=ds.has(t);r&&this.onBindTransform&&this.onBindTransform();const o=n.on("change",a=>{this.latestValues[t]=a,this.props.onUpdate&&Ct.preRender(this.notifyUpdate),r&&this.projection&&(this.projection.isTransformDirty=!0),this.scheduleRender()});let s;window.MotionCheckAppearSync&&(s=window.MotionCheckAppearSync(this,t,n)),this.valueSubscriptions.set(t,()=>{o(),s&&s(),n.owner&&n.stop()})}sortNodePosition(t){return!this.current||!this.sortInstanceNodePosition||this.type!==t.type?0:this.sortInstanceNodePosition(this.current,t.current)}updateFeatures(){let t="animation";for(t in us){const n=us[t];if(!n)continue;const{isEnabled:r,Feature:o}=n;if(!this.features[t]&&o&&r(this.props)&&(this.features[t]=new o(this)),this.features[t]){const s=this.features[t];s.isMounted?s.update():(s.mount(),s.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):Wt()}getStaticValue(t){return this.latestValues[t]}setStaticValue(t,n){this.latestValues[t]=n}update(t,n){(t.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=t,this.prevPresenceContext=this.presenceContext,this.presenceContext=n;for(let r=0;r<Jy.length;r++){const o=Jy[r];this.propEventSubscriptions[o]&&(this.propEventSubscriptions[o](),delete this.propEventSubscriptions[o]);const s="on"+o,a=t[s];a&&(this.propEventSubscriptions[o]=this.on(o,a))}this.prevMotionValues=mI(this,this.scrapeMotionValuesFromProps(t,this.prevProps,this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue()}getProps(){return this.props}getVariant(t){return this.props.variants?this.props.variants[t]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}addVariantChild(t){const n=this.getClosestVariantNode();if(n)return n.variantChildren&&n.variantChildren.add(t),()=>n.variantChildren.delete(t)}addValue(t,n){const r=this.values.get(t);n!==r&&(r&&this.removeValue(t),this.bindToMotionValue(t,n),this.values.set(t,n),this.latestValues[t]=n.get())}removeValue(t){this.values.delete(t);const n=this.valueSubscriptions.get(t);n&&(n(),this.valueSubscriptions.delete(t)),delete this.latestValues[t],this.removeValueFromRenderState(t,this.renderState)}hasValue(t){return this.values.has(t)}getValue(t,n){if(this.props.values&&this.props.values[t])return this.props.values[t];let r=this.values.get(t);return r===void 0&&n!==void 0&&(r=xo(n===null?void 0:n,{owner:this}),this.addValue(t,r)),r}readValue(t,n){let r=this.latestValues[t]!==void 0||!this.current?this.latestValues[t]:this.getBaseTargetFromProps(this.props,t)??this.readValueFromInstance(this.current,t,this.options);return r!=null&&(typeof r=="string"&&(i0(r)||l0(r))?r=parseFloat(r):!Cj(r)&&Kr.test(n)&&(r=ly(t,n)),this.setBaseTarget(t,Kt(r)?r.get():r)),Kt(r)?r.get():r}setBaseTarget(t,n){this.baseTarget[t]=n}getBaseTarget(t){const{initial:n}=this.props;let r;if(typeof n=="string"||typeof n=="object"){const s=Xu(this.props,n,this.presenceContext?.custom);s&&(r=s[t])}if(n&&r!==void 0)return r;const o=this.getBaseTargetFromProps(this.props,t);return o!==void 0&&!Kt(o)?o:this.initialValues[t]!==void 0&&r===void 0?void 0:this.baseTarget[t]}on(t,n){return this.events[t]||(this.events[t]=new au),this.events[t].add(n)}notify(t,...n){this.events[t]&&this.events[t].notify(...n)}scheduleRenderMicrotask(){Wu.render(this.render)}}class Qy extends gI{constructor(){super(...arguments),this.KeyframeResolver=uj}sortInstanceNodePosition(t,n){return t.compareDocumentPosition(n)&2?1:-1}getBaseTargetFromProps(t,n){return t.style?t.style[n]:void 0}removeValueFromRenderState(t,{vars:n,style:r}){delete n[t],delete r[t]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:t}=this.props;Kt(t)&&(this.childSubscription=t.on("change",n=>{this.current&&(this.current.textContent=`${n}`)}))}}function eb(e,{style:t,vars:n},r,o){const s=e.style;let a;for(a in t)s[a]=t[a];o?.applyProjectionStyles(s,r);for(a in n)s.setProperty(a,n[a])}function yI(e){return window.getComputedStyle(e)}class bI extends Qy{constructor(){super(...arguments),this.type="html",this.renderInstance=eb}readValueFromInstance(t,n){if(ds.has(n))return this.projection?.isProjecting?ju(n):jP(t,n);{const r=yI(t),o=(k0(n)?r.getPropertyValue(n):r[n])||0;return typeof o=="string"?o.trim():o}}measureInstanceViewportBox(t,{transformPagePoint:n}){return Gy(t,n)}build(t,n,r){qu(t,n,r.transformTemplate)}scrapeMotionValuesFromProps(t,n,r){return Zu(t,n,r)}}const tb=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength","startOffset","textLength","lengthAdjust"]);function vI(e,t,n,r){eb(e,t,void 0,r);for(const o in t.attrs)e.setAttribute(tb.has(o)?o:Ju(o),t.attrs[o])}class xI extends Qy{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=Wt}getBaseTargetFromProps(t,n){return t[n]}readValueFromInstance(t,n){if(ds.has(n)){const r=ay(n);return r&&r.default||0}return n=tb.has(n)?n:Ju(n),t.getAttribute(n)}scrapeMotionValuesFromProps(t,n,r){return $y(t,n,r)}build(t,n,r){Iy(t,n,this.isSVGTag,r.transformTemplate,r.style)}renderInstance(t,n,r,o){vI(t,n,r,o)}mount(t){this.isSVGTag=Ay(t.tagName),super.mount(t)}}const wI=(e,t)=>t.isSVG??Ku(e)?new xI(t):new bI(t,{allowProjection:e!==x.Fragment});function ms(e,t,n){const r=e.getProps();return Xu(r,t,n!==void 0?n:r.custom,e)}const of=e=>Array.isArray(e);function SI(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,xo(n))}function CI(e){return of(e)?e[e.length-1]||0:e}function TI(e,t){const n=ms(e,t);let{transitionEnd:r={},transition:o={},...s}=n||{};s={...s,...r};for(const a in s){const l=CI(s[a]);SI(e,a,l)}}function kI(e){return!!(Kt(e)&&e.add)}function sf(e,t){const n=e.getValue("willChange");if(kI(n))return n.add(t);if(!n&&jr.WillChange){const r=new jr.WillChange("auto");e.addValue("willChange",r),r.add(t)}}function nb(e){return e.props[Ly]}const EI=e=>e!==null;function OI(e,{repeat:t,repeatType:n="loop"},r){const o=e.filter(EI),s=t&&n!=="loop"&&t%2===1?0:o.length-1;return o[s]}const MI={type:"spring",stiffness:500,damping:25,restSpeed:10},PI=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),jI={type:"keyframes",duration:.8},II={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},DI=(e,{keyframes:t})=>t.length>2?jI:ds.has(e)?e.startsWith("scale")?PI(t[1]):MI:II;function AI({when:e,delay:t,delayChildren:n,staggerChildren:r,staggerDirection:o,repeat:s,repeatType:a,repeatDelay:l,from:c,elapsed:d,...u}){return!!Object.keys(u).length}const af=(e,t,n,r={},o,s)=>a=>{const l=Bu(r,e)||{},c=l.delay||r.delay||0;let{elapsed:d=0}=r;d=d-hr(c);const u={keyframes:Array.isArray(n)?n:[null,n],ease:"easeOut",velocity:t.getVelocity(),...l,delay:-d,onUpdate:h=>{t.set(h),l.onUpdate&&l.onUpdate(h)},onComplete:()=>{a(),l.onComplete&&l.onComplete()},name:e,motionValue:t,element:s?void 0:o};AI(l)||Object.assign(u,DI(e,u)),u.duration&&(u.duration=hr(u.duration)),u.repeatDelay&&(u.repeatDelay=hr(u.repeatDelay)),u.from!==void 0&&(u.keyframes[0]=u.from);let f=!1;if((u.type===!1||u.duration===0&&!u.repeatDelay)&&(Lu(u),u.delay===0&&(f=!0)),(jr.instantAnimations||jr.skipAnimations)&&(f=!0,Lu(u),u.delay=0),u.allowFlatten=!l.type&&!l.ease,f&&!s&&t.get()!==void 0){const h=OI(u.keyframes,l);if(h!==void 0){Ct.update(()=>{u.onUpdate(h),u.onComplete()});return}}return l.isSync?new Ou(u):new QP(u)};function RI({protectedKeys:e,needsAnimating:t},n){const r=e.hasOwnProperty(n)&&t[n]!==!0;return t[n]=!1,r}function rb(e,t,{delay:n=0,transitionOverride:r,type:o}={}){let{transition:s=e.getDefaultTransition(),transitionEnd:a,...l}=t;r&&(s=r);const c=[],d=o&&e.animationState&&e.animationState.getState()[o];for(const u in l){const f=e.getValue(u,e.latestValues[u]??null),h=l[u];if(h===void 0||d&&RI(d,u))continue;const m={delay:n,...Bu(s||{},u)},g=f.get();if(g!==void 0&&!f.isAnimating&&!Array.isArray(h)&&h===g&&!m.velocity)continue;let y=!1;if(window.MotionHandoffAnimation){const v=nb(e);if(v){const k=window.MotionHandoffAnimation(v,u,Ct);k!==null&&(m.startTime=k,y=!0)}}sf(e,u),f.start(af(u,f,h,e.shouldReduceMotion&&ny.has(u)?{type:!1}:m,e,y));const b=f.animation;b&&c.push(b)}return a&&Promise.all(c).then(()=>{Ct.update(()=>{a&&TI(e,a)})}),c}function ob(e,t,n,r=0,o=1){const s=Array.from(e).sort((d,u)=>d.sortNodePosition(u)).indexOf(t),a=e.size,l=(a-1)*r;return typeof n=="function"?n(s,a):o===1?s*r:l-s*r}function lf(e,t,n={}){const r=ms(e,t,n.type==="exit"?e.presenceContext?.custom:void 0);let{transition:o=e.getDefaultTransition()||{}}=r||{};n.transitionOverride&&(o=n.transitionOverride);const s=r?()=>Promise.all(rb(e,r,n)):()=>Promise.resolve(),a=e.variantChildren&&e.variantChildren.size?(c=0)=>{const{delayChildren:d=0,staggerChildren:u,staggerDirection:f}=o;return NI(e,t,c,d,u,f,n)}:()=>Promise.resolve(),{when:l}=o;if(l){const[c,d]=l==="beforeChildren"?[s,a]:[a,s];return c().then(()=>d())}else return Promise.all([s(),a(n.delay)])}function NI(e,t,n=0,r=0,o=0,s=1,a){const l=[];for(const c of e.variantChildren)c.notify("AnimationStart",t),l.push(lf(c,t,{...a,delay:n+(typeof r=="function"?0:r)+ob(e.variantChildren,c,r,o,s)}).then(()=>c.notify("AnimationComplete",t)));return Promise.all(l)}function $I(e,t,n={}){e.notify("AnimationStart",t);let r;if(Array.isArray(t)){const o=t.map(s=>lf(e,s,n));r=Promise.all(o)}else if(typeof t=="string")r=lf(e,t,n);else{const o=typeof t=="function"?ms(e,t,n.custom):t;r=Promise.all(rb(e,o,n))}return r.then(()=>{e.notify("AnimationComplete",t)})}function sb(e,t){if(!Array.isArray(t))return!1;const n=t.length;if(n!==e.length)return!1;for(let r=0;r<n;r++)if(t[r]!==e[r])return!1;return!0}const LI=Uu.length;function ib(e){if(!e)return;if(!e.isControllingVariants){const n=e.parent?ib(e.parent)||{}:{};return e.props.initial!==void 0&&(n.initial=e.props.initial),n}const t={};for(let n=0;n<LI;n++){const r=Uu[n],o=e.props[r];(Ni(o)||o===!1)&&(t[r]=o)}return t}const BI=[...Hu].reverse(),_I=Hu.length;function FI(e){return t=>Promise.all(t.map(({animation:n,options:r})=>$I(e,n,r)))}function WI(e){let t=FI(e),n=ab(),r=!0;const o=c=>(d,u)=>{const f=ms(e,u,c==="exit"?e.presenceContext?.custom:void 0);if(f){const{transition:h,transitionEnd:m,...g}=f;d={...d,...g,...m}}return d};function s(c){t=c(e)}function a(c){const{props:d}=e,u=ib(e.parent)||{},f=[],h=new Set;let m={},g=1/0;for(let b=0;b<_I;b++){const v=BI[b],k=n[v],S=d[v]!==void 0?d[v]:u[v],C=Ni(S),w=v===c?k.isActive:null;w===!1&&(g=b);let T=S===u[v]&&S!==d[v]&&C;if(T&&r&&e.manuallyAnimateOnMount&&(T=!1),k.protectedKeys={...m},!k.isActive&&w===null||!S&&!k.prevProp||Fl(S)||typeof S=="boolean")continue;const E=zI(k.prevProp,S);let M=E||v===c&&k.isActive&&!T&&C||b>g&&C,j=!1;const A=Array.isArray(S)?S:[S];let L=A.reduce(o(v),{});w===!1&&(L={});const{prevResolvedValues:O={}}=k,N={...O,...L},P=_=>{M=!0,h.has(_)&&(j=!0,h.delete(_)),k.needsAnimating[_]=!0;const U=e.getValue(_);U&&(U.liveStyle=!1)};for(const _ in N){const U=L[_],H=O[_];if(m.hasOwnProperty(_))continue;let B=!1;of(U)&&of(H)?B=!sb(U,H):B=U!==H,B?U!=null?P(_):h.add(_):U!==void 0&&h.has(_)?P(_):k.protectedKeys[_]=!0}k.prevProp=S,k.prevResolvedValues=L,k.isActive&&(m={...m,...L}),r&&e.blockInitialAnimation&&(M=!1);const R=T&&E;M&&(!R||j)&&f.push(...A.map(_=>{const U={type:v};if(typeof _=="string"&&r&&!R&&e.manuallyAnimateOnMount&&e.parent){const{parent:H}=e,B=ms(H,_);if(H.enteringChildren&&B){const{delayChildren:D}=B.transition||{};U.delay=ob(H.enteringChildren,e,D)}}return{animation:_,options:U}}))}if(h.size){const b={};if(typeof d.initial!="boolean"){const v=ms(e,Array.isArray(d.initial)?d.initial[0]:d.initial);v&&v.transition&&(b.transition=v.transition)}h.forEach(v=>{const k=e.getBaseTarget(v),S=e.getValue(v);S&&(S.liveStyle=!0),b[v]=k??null}),f.push({animation:b})}let y=!!f.length;return r&&(d.initial===!1||d.initial===d.animate)&&!e.manuallyAnimateOnMount&&(y=!1),r=!1,y?t(f):Promise.resolve()}function l(c,d){if(n[c].isActive===d)return Promise.resolve();e.variantChildren?.forEach(f=>f.animationState?.setActive(c,d)),n[c].isActive=d;const u=a(c);for(const f in n)n[f].protectedKeys={};return u}return{animateChanges:a,setActive:l,setAnimateFunction:s,getState:()=>n,reset:()=>{n=ab()}}}function zI(e,t){return typeof t=="string"?t!==e:Array.isArray(t)?!sb(t,e):!1}function So(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function ab(){return{animate:So(!0),whileInView:So(),whileHover:So(),whileTap:So(),whileDrag:So(),whileFocus:So(),exit:So()}}class Zr{constructor(t){this.isMounted=!1,this.node=t}update(){}}class VI extends Zr{constructor(t){super(t),t.animationState||(t.animationState=WI(t))}updateAnimationControlsSubscription(){const{animate:t}=this.node.getProps();Fl(t)&&(this.unmountControls=t.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:t}=this.node.getProps(),{animate:n}=this.node.prevProps||{};t!==n&&this.updateAnimationControlsSubscription()}unmount(){this.node.animationState.reset(),this.unmountControls?.()}}let HI=0;class UI extends Zr{constructor(){super(...arguments),this.id=HI++}update(){if(!this.node.presenceContext)return;const{isPresent:t,onExitComplete:n}=this.node.presenceContext,{isPresent:r}=this.node.prevPresenceContext||{};if(!this.node.animationState||t===r)return;const o=this.node.animationState.setActive("exit",!t);n&&!t&&o.then(()=>{n(this.id)})}mount(){const{register:t,onExitComplete:n}=this.node.presenceContext||{};n&&n(this.id),t&&(this.unmount=t(this.id))}unmount(){}}const YI={animation:{Feature:VI},exit:{Feature:UI}};function Bi(e,t,n,r={passive:!0}){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n)}function _i(e){return{point:{x:e.pageX,y:e.pageY}}}const qI=e=>t=>zu(t)&&e(t,_i(t));function Fi(e,t,n,r){return Bi(e,t,qI(n),r)}const lb=1e-4,GI=1-lb,KI=1+lb,cb=.01,XI=0-cb,ZI=0+cb;function an(e){return e.max-e.min}function JI(e,t,n){return Math.abs(e-t)<=n}function db(e,t,n,r=.5){e.origin=r,e.originPoint=Et(t.min,t.max,e.origin),e.scale=an(n)/an(t),e.translate=Et(n.min,n.max,e.origin)-e.originPoint,(e.scale>=GI&&e.scale<=KI||isNaN(e.scale))&&(e.scale=1),(e.translate>=XI&&e.translate<=ZI||isNaN(e.translate))&&(e.translate=0)}function Wi(e,t,n,r){db(e.x,t.x,n.x,r?r.originX:void 0),db(e.y,t.y,n.y,r?r.originY:void 0)}function ub(e,t,n){e.min=n.min+t.min,e.max=e.min+an(t)}function QI(e,t,n){ub(e.x,t.x,n.x),ub(e.y,t.y,n.y)}function fb(e,t,n){e.min=t.min-n.min,e.max=e.min+an(t)}function Hl(e,t,n){fb(e.x,t.x,n.x),fb(e.y,t.y,n.y)}function $n(e){return[e("x"),e("y")]}const pb=({current:e})=>e?e.ownerDocument.defaultView:null,hb=(e,t)=>Math.abs(e-t);function eD(e,t){const n=hb(e.x,t.x),r=hb(e.y,t.y);return Math.sqrt(n**2+r**2)}const mb=new Set(["auto","scroll"]);class gb{constructor(t,n,{transformPagePoint:r,contextWindow:o=window,dragSnapToOrigin:s=!1,distanceThreshold:a=3,element:l}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.scrollPositions=new Map,this.removeScrollListeners=null,this.onElementScroll=m=>{this.handleScroll(m.target)},this.onWindowScroll=()=>{this.handleScroll(window)},this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const m=df(this.lastMoveEventInfo,this.history),g=this.startEvent!==null,y=eD(m.offset,{x:0,y:0})>=this.distanceThreshold;if(!g&&!y)return;const{point:b}=m,{timestamp:v}=Gt;this.history.push({...b,timestamp:v});const{onStart:k,onMove:S}=this.handlers;g||(k&&k(this.lastMoveEvent,m),this.startEvent=this.lastMoveEvent),S&&S(this.lastMoveEvent,m)},this.handlePointerMove=(m,g)=>{this.lastMoveEvent=m,this.lastMoveEventInfo=cf(g,this.transformPagePoint),Ct.update(this.updatePoint,!0)},this.handlePointerUp=(m,g)=>{this.end();const{onEnd:y,onSessionEnd:b,resumeAnimation:v}=this.handlers;if((this.dragSnapToOrigin||!this.startEvent)&&v&&v(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const k=df(m.type==="pointercancel"?this.lastMoveEventInfo:cf(g,this.transformPagePoint),this.history);this.startEvent&&y&&y(m,k),b&&b(m,k)},!zu(t))return;this.dragSnapToOrigin=s,this.handlers=n,this.transformPagePoint=r,this.distanceThreshold=a,this.contextWindow=o||window;const c=_i(t),d=cf(c,this.transformPagePoint),{point:u}=d,{timestamp:f}=Gt;this.history=[{...u,timestamp:f}];const{onSessionStart:h}=n;h&&h(t,df(d,this.history)),this.removeListeners=Ei(Fi(this.contextWindow,"pointermove",this.handlePointerMove),Fi(this.contextWindow,"pointerup",this.handlePointerUp),Fi(this.contextWindow,"pointercancel",this.handlePointerUp)),l&&this.startScrollTracking(l)}startScrollTracking(t){let n=t.parentElement;for(;n;){const r=getComputedStyle(n);(mb.has(r.overflowX)||mb.has(r.overflowY))&&this.scrollPositions.set(n,{x:n.scrollLeft,y:n.scrollTop}),n=n.parentElement}this.scrollPositions.set(window,{x:window.scrollX,y:window.scrollY}),window.addEventListener("scroll",this.onElementScroll,{capture:!0,passive:!0}),window.addEventListener("scroll",this.onWindowScroll,{passive:!0}),this.removeScrollListeners=()=>{window.removeEventListener("scroll",this.onElementScroll,{capture:!0}),window.removeEventListener("scroll",this.onWindowScroll)}}handleScroll(t){const n=this.scrollPositions.get(t);if(!n)return;const r=t===window,o=r?{x:window.scrollX,y:window.scrollY}:{x:t.scrollLeft,y:t.scrollTop},s={x:o.x-n.x,y:o.y-n.y};s.x===0&&s.y===0||(r?this.lastMoveEventInfo&&(this.lastMoveEventInfo.point.x+=s.x,this.lastMoveEventInfo.point.y+=s.y):this.history.length>0&&(this.history[0].x-=s.x,this.history[0].y-=s.y),this.scrollPositions.set(t,o),Ct.update(this.updatePoint,!0))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),this.removeScrollListeners&&this.removeScrollListeners(),this.scrollPositions.clear(),Ir(this.updatePoint)}}function cf(e,t){return t?{point:t(e.point)}:e}function yb(e,t){return{x:e.x-t.x,y:e.y-t.y}}function df({point:e},t){return{point:e,delta:yb(e,bb(t)),offset:yb(e,tD(t)),velocity:nD(t,.1)}}function tD(e){return e[0]}function bb(e){return e[e.length-1]}function nD(e,t){if(e.length<2)return{x:0,y:0};let n=e.length-1,r=null;const o=bb(e);for(;n>=0&&(r=e[n],!(o.timestamp-r.timestamp>hr(t)));)n--;if(!r)return{x:0,y:0};const s=Nn(o.timestamp-r.timestamp);if(s===0)return{x:0,y:0};const a={x:(o.x-r.x)/s,y:(o.y-r.y)/s};return a.x===1/0&&(a.x=0),a.y===1/0&&(a.y=0),a}function rD(e,{min:t,max:n},r){return t!==void 0&&e<t?e=r?Et(t,e,r.min):Math.max(e,t):n!==void 0&&e>n&&(e=r?Et(n,e,r.max):Math.min(e,n)),e}function vb(e,t,n){return{min:t!==void 0?e.min+t:void 0,max:n!==void 0?e.max+n-(e.max-e.min):void 0}}function oD(e,{top:t,left:n,bottom:r,right:o}){return{x:vb(e.x,n,o),y:vb(e.y,t,r)}}function xb(e,t){let n=t.min-e.min,r=t.max-e.max;return t.max-t.min<e.max-e.min&&([n,r]=[r,n]),{min:n,max:r}}function sD(e,t){return{x:xb(e.x,t.x),y:xb(e.y,t.y)}}function iD(e,t){let n=.5;const r=an(e),o=an(t);return o>r?n=Oi(t.min,t.max-r,e.min):r>o&&(n=Oi(e.min,e.max-o,t.min)),pr(0,1,n)}function aD(e,t){const n={};return t.min!==void 0&&(n.min=t.min-e.min),t.max!==void 0&&(n.max=t.max-e.min),n}const uf=.35;function lD(e=uf){return e===!1?e=0:e===!0&&(e=uf),{x:wb(e,"left","right"),y:wb(e,"top","bottom")}}function wb(e,t,n){return{min:Sb(e,t),max:Sb(e,n)}}function Sb(e,t){return typeof e=="number"?e:e[t]||0}const cD=new WeakMap;class dD{constructor(t){this.openDragLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=Wt(),this.latestPointerEvent=null,this.latestPanInfo=null,this.visualElement=t}start(t,{snapToCursor:n=!1,distanceThreshold:r}={}){const{presenceContext:o}=this.visualElement;if(o&&o.isPresent===!1)return;const s=f=>{n?(this.stopAnimation(),this.snapToCursor(_i(f).point)):this.pauseAnimation()},a=(f,h)=>{this.stopAnimation();const{drag:m,dragPropagation:g,onDragStart:y}=this.getProps();if(m&&!g&&(this.openDragLock&&this.openDragLock(),this.openDragLock=mj(m),!this.openDragLock))return;this.latestPointerEvent=f,this.latestPanInfo=h,this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),$n(v=>{let k=this.getAxisMotionValue(v).get()||0;if(mr.test(k)){const{projection:S}=this.visualElement;if(S&&S.layout){const C=S.layout.layoutBox[v];C&&(k=an(C)*(parseFloat(k)/100))}}this.originPoint[v]=k}),y&&Ct.postRender(()=>y(f,h)),sf(this.visualElement,"transform");const{animationState:b}=this.visualElement;b&&b.setActive("whileDrag",!0)},l=(f,h)=>{this.latestPointerEvent=f,this.latestPanInfo=h;const{dragPropagation:m,dragDirectionLock:g,onDirectionLock:y,onDrag:b}=this.getProps();if(!m&&!this.openDragLock)return;const{offset:v}=h;if(g&&this.currentDirection===null){this.currentDirection=uD(v),this.currentDirection!==null&&y&&y(this.currentDirection);return}this.updateAxis("x",h.point,v),this.updateAxis("y",h.point,v),this.visualElement.render(),b&&b(f,h)},c=(f,h)=>{this.latestPointerEvent=f,this.latestPanInfo=h,this.stop(f,h),this.latestPointerEvent=null,this.latestPanInfo=null},d=()=>$n(f=>this.getAnimationState(f)==="paused"&&this.getAxisMotionValue(f).animation?.play()),{dragSnapToOrigin:u}=this.getProps();this.panSession=new gb(t,{onSessionStart:s,onStart:a,onMove:l,onSessionEnd:c,resumeAnimation:d},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:u,distanceThreshold:r,contextWindow:pb(this.visualElement),element:this.visualElement.current})}stop(t,n){const r=t||this.latestPointerEvent,o=n||this.latestPanInfo,s=this.isDragging;if(this.cancel(),!s||!o||!r)return;const{velocity:a}=o;this.startAnimation(a);const{onDragEnd:l}=this.getProps();l&&Ct.postRender(()=>l(r,o))}cancel(){this.isDragging=!1;const{projection:t,animationState:n}=this.visualElement;t&&(t.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;const{dragPropagation:r}=this.getProps();!r&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),n&&n.setActive("whileDrag",!1)}updateAxis(t,n,r){const{drag:o}=this.getProps();if(!r||!Ul(t,o,this.currentDirection))return;const s=this.getAxisMotionValue(t);let a=this.originPoint[t]+r[t];this.constraints&&this.constraints[t]&&(a=rD(a,this.constraints[t],this.elastic[t])),s.set(a)}resolveConstraints(){const{dragConstraints:t,dragElastic:n}=this.getProps(),r=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):this.visualElement.projection?.layout,o=this.constraints;t&&Li(t)?this.constraints||(this.constraints=this.resolveRefConstraints()):t&&r?this.constraints=oD(r.layoutBox,t):this.constraints=!1,this.elastic=lD(n),o!==this.constraints&&r&&this.constraints&&!this.hasMutatedConstraints&&$n(s=>{this.constraints!==!1&&this.getAxisMotionValue(s)&&(this.constraints[s]=aD(r.layoutBox[s],this.constraints[s]))})}resolveRefConstraints(){const{dragConstraints:t,onMeasureDragConstraints:n}=this.getProps();if(!t||!Li(t))return!1;const r=t.current;Yn(r!==null,"If `dragConstraints` is set as a React ref, that ref must be passed to another component's `ref` prop.","drag-constraints-ref");const{projection:o}=this.visualElement;if(!o||!o.layout)return!1;const s=fI(r,o.root,this.visualElement.getTransformPagePoint());let a=sD(o.layout.layoutBox,s);if(n){const l=n(cI(a));this.hasMutatedConstraints=!!l,l&&(a=Fy(l))}return a}startAnimation(t){const{drag:n,dragMomentum:r,dragElastic:o,dragTransition:s,dragSnapToOrigin:a,onDragTransitionEnd:l}=this.getProps(),c=this.constraints||{},d=$n(u=>{if(!Ul(u,n,this.currentDirection))return;let f=c&&c[u]||{};a&&(f={min:0,max:0});const h=o?200:1e6,m=o?40:1e7,g={type:"inertia",velocity:r?t[u]:0,bounceStiffness:h,bounceDamping:m,timeConstant:750,restDelta:1,restSpeed:10,...s,...f};return this.startAxisValueAnimation(u,g)});return Promise.all(d).then(l)}startAxisValueAnimation(t,n){const r=this.getAxisMotionValue(t);return sf(this.visualElement,t),r.start(af(t,r,0,n,this.visualElement,!1))}stopAnimation(){$n(t=>this.getAxisMotionValue(t).stop())}pauseAnimation(){$n(t=>this.getAxisMotionValue(t).animation?.pause())}getAnimationState(t){return this.getAxisMotionValue(t).animation?.state}getAxisMotionValue(t){const n=`_drag${t.toUpperCase()}`,r=this.visualElement.getProps(),o=r[n];return o||this.visualElement.getValue(t,(r.initial?r.initial[t]:void 0)||0)}snapToCursor(t){$n(n=>{const{drag:r}=this.getProps();if(!Ul(n,r,this.currentDirection))return;const{projection:o}=this.visualElement,s=this.getAxisMotionValue(n);if(o&&o.layout){const{min:a,max:l}=o.layout.layoutBox[n],c=s.get()||0;s.set(t[n]-Et(a,l,.5)+c)}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:t,dragConstraints:n}=this.getProps(),{projection:r}=this.visualElement;if(!Li(n)||!r||!this.constraints)return;this.stopAnimation();const o={x:0,y:0};$n(a=>{const l=this.getAxisMotionValue(a);if(l&&this.constraints!==!1){const c=l.get();o[a]=iD({min:c,max:c},this.constraints[a])}});const{transformTemplate:s}=this.visualElement.getProps();this.visualElement.current.style.transform=s?s({},""):"none",r.root&&r.root.updateScroll(),r.updateLayout(),this.resolveConstraints(),$n(a=>{if(!Ul(a,t,null))return;const l=this.getAxisMotionValue(a),{min:c,max:d}=this.constraints[a];l.set(Et(c,d,o[a]))})}addListeners(){if(!this.visualElement.current)return;cD.set(this.visualElement,this);const t=this.visualElement.current,n=Fi(t,"pointerdown",c=>{const{drag:d,dragListener:u=!0}=this.getProps();d&&u&&!gy(c.target)&&this.start(c)}),r=()=>{const{dragConstraints:c}=this.getProps();Li(c)&&c.current&&(this.constraints=this.resolveRefConstraints())},{projection:o}=this.visualElement,s=o.addEventListener("measure",r);o&&!o.layout&&(o.root&&o.root.updateScroll(),o.updateLayout()),Ct.read(r);const a=Bi(window,"resize",()=>this.scalePositionWithinConstraints()),l=o.addEventListener("didUpdate",(({delta:c,hasLayoutChanged:d})=>{this.isDragging&&d&&($n(u=>{const f=this.getAxisMotionValue(u);f&&(this.originPoint[u]+=c[u].translate,f.set(f.get()+c[u].translate))}),this.visualElement.render())}));return()=>{a(),n(),s(),l&&l()}}getProps(){const t=this.visualElement.getProps(),{drag:n=!1,dragDirectionLock:r=!1,dragPropagation:o=!1,dragConstraints:s=!1,dragElastic:a=uf,dragMomentum:l=!0}=t;return{...t,drag:n,dragDirectionLock:r,dragPropagation:o,dragConstraints:s,dragElastic:a,dragMomentum:l}}}function Ul(e,t,n){return(t===!0||t===e)&&(n===null||n===e)}function uD(e,t=10){let n=null;return Math.abs(e.y)>t?n="y":Math.abs(e.x)>t&&(n="x"),n}class fD extends Zr{constructor(t){super(t),this.removeGroupControls=Rn,this.removeListeners=Rn,this.controls=new dD(t)}mount(){const{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||Rn}update(){const{dragControls:t}=this.node.getProps(),{dragControls:n}=this.node.prevProps||{};t!==n&&(this.removeGroupControls(),t&&(this.removeGroupControls=t.subscribe(this.controls)))}unmount(){this.removeGroupControls(),this.removeListeners()}}const Cb=e=>(t,n)=>{e&&Ct.postRender(()=>e(t,n))};class pD extends Zr{constructor(){super(...arguments),this.removePointerDownListener=Rn}onPointerDown(t){this.session=new gb(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:pb(this.node)})}createPanHandlers(){const{onPanSessionStart:t,onPanStart:n,onPan:r,onPanEnd:o}=this.node.getProps();return{onSessionStart:Cb(t),onStart:Cb(n),onMove:r,onEnd:(s,a)=>{delete this.session,o&&Ct.postRender(()=>o(s,a))}}}mount(){this.removePointerDownListener=Fi(this.node.current,"pointerdown",t=>this.onPointerDown(t))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}const Yl={hasAnimatedSinceResize:!0,hasEverUpdated:!1};let ff=!1;class hD extends x.Component{componentDidMount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r,layoutId:o}=this.props,{projection:s}=t;s&&(n.group&&n.group.add(s),r&&r.register&&o&&r.register(s),ff&&s.root.didUpdate(),s.addEventListener("animationComplete",()=>{this.safeToRemove()}),s.setOptions({...s.options,onExitComplete:()=>this.safeToRemove()})),Yl.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){const{layoutDependency:n,visualElement:r,drag:o,isPresent:s}=this.props,{projection:a}=r;return a&&(a.isPresent=s,ff=!0,o||t.layoutDependency!==n||n===void 0||t.isPresent!==s?a.willUpdate():this.safeToRemove(),t.isPresent!==s&&(s?a.promote():a.relegate()||Ct.postRender(()=>{const l=a.getStack();(!l||!l.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{projection:t}=this.props.visualElement;t&&(t.root.didUpdate(),Wu.postRender(()=>{!t.currentAnimation&&t.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r}=this.props,{projection:o}=t;ff=!0,o&&(o.scheduleCheckAfterUnmount(),n&&n.group&&n.group.remove(o),r&&r.deregister&&r.deregister(o))}safeToRemove(){const{safeToRemove:t}=this.props;t&&t()}render(){return null}}function Tb(e){const[t,n]=wy(),r=x.useContext(eu);return p.jsx(hD,{...e,layoutGroup:r,switchLayoutGroup:x.useContext(By),isPresent:t,safeToRemove:n})}function mD(e,t,n){const r=Kt(e)?e:xo(e);return r.start(af("",r,t,n)),r.animation}const gD=(e,t)=>e.depth-t.depth;class yD{constructor(){this.children=[],this.isDirty=!1}add(t){ru(this.children,t),this.isDirty=!0}remove(t){ou(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(gD),this.isDirty=!1,this.children.forEach(t)}}function bD(e,t){const n=sn.now(),r=({timestamp:o})=>{const s=o-n;s>=t&&(Ir(r),e(s-t))};return Ct.setup(r,!0),()=>Ir(r)}const kb=["TopLeft","TopRight","BottomLeft","BottomRight"],vD=kb.length,Eb=e=>typeof e=="string"?parseFloat(e):e,Ob=e=>typeof e=="number"||Se.test(e);function xD(e,t,n,r,o,s){o?(e.opacity=Et(0,n.opacity??1,wD(r)),e.opacityExit=Et(t.opacity??1,0,SD(r))):s&&(e.opacity=Et(t.opacity??1,n.opacity??1,r));for(let a=0;a<vD;a++){const l=`border${kb[a]}Radius`;let c=Mb(t,l),d=Mb(n,l);if(c===void 0&&d===void 0)continue;c||(c=0),d||(d=0),c===0||d===0||Ob(c)===Ob(d)?(e[l]=Math.max(Et(Eb(c),Eb(d),r),0),(mr.test(d)||mr.test(c))&&(e[l]+="%")):e[l]=d}(t.rotate||n.rotate)&&(e.rotate=Et(t.rotate||0,n.rotate||0,r))}function Mb(e,t){return e[t]!==void 0?e[t]:e.borderRadius}const wD=Pb(0,.5,y0),SD=Pb(.5,.95,Rn);function Pb(e,t,n){return r=>r<e?0:r>t?1:n(Oi(e,t,r))}function jb(e,t){e.min=t.min,e.max=t.max}function Gn(e,t){jb(e.x,t.x),jb(e.y,t.y)}function Ib(e,t){e.translate=t.translate,e.scale=t.scale,e.originPoint=t.originPoint,e.origin=t.origin}function Db(e,t,n,r,o){return e-=t,e=Vl(e,1/n,r),o!==void 0&&(e=Vl(e,1/o,r)),e}function CD(e,t=0,n=1,r=.5,o,s=e,a=e){if(mr.test(t)&&(t=parseFloat(t),t=Et(a.min,a.max,t/100)-a.min),typeof t!="number")return;let l=Et(s.min,s.max,r);e===s&&(l-=t),e.min=Db(e.min,t,n,l,o),e.max=Db(e.max,t,n,l,o)}function Ab(e,t,[n,r,o],s,a){CD(e,t[n],t[r],t[o],t.scale,s,a)}const TD=["x","scaleX","originX"],kD=["y","scaleY","originY"];function Rb(e,t,n,r){Ab(e.x,t,TD,n?n.x:void 0,r?r.x:void 0),Ab(e.y,t,kD,n?n.y:void 0,r?r.y:void 0)}function Nb(e){return e.translate===0&&e.scale===1}function $b(e){return Nb(e.x)&&Nb(e.y)}function Lb(e,t){return e.min===t.min&&e.max===t.max}function ED(e,t){return Lb(e.x,t.x)&&Lb(e.y,t.y)}function Bb(e,t){return Math.round(e.min)===Math.round(t.min)&&Math.round(e.max)===Math.round(t.max)}function _b(e,t){return Bb(e.x,t.x)&&Bb(e.y,t.y)}function Fb(e){return an(e.x)/an(e.y)}function Wb(e,t){return e.translate===t.translate&&e.scale===t.scale&&e.originPoint===t.originPoint}class OD{constructor(){this.members=[]}add(t){ru(this.members,t),t.scheduleRender()}remove(t){if(ou(this.members,t),t===this.prevLead&&(this.prevLead=void 0),t===this.lead){const n=this.members[this.members.length-1];n&&this.promote(n)}}relegate(t){const n=this.members.findIndex(o=>t===o);if(n===0)return!1;let r;for(let o=n;o>=0;o--){const s=this.members[o];if(s.isPresent!==!1){r=s;break}}return r?(this.promote(r),!0):!1}promote(t,n){const r=this.lead;if(t!==r&&(this.prevLead=r,this.lead=t,t.show(),r)){r.instance&&r.scheduleRender(),t.scheduleRender(),t.resumeFrom=r,n&&(t.resumeFrom.preserveOpacity=!0),r.snapshot&&(t.snapshot=r.snapshot,t.snapshot.latestValues=r.animationValues||r.latestValues),t.root&&t.root.isUpdating&&(t.isLayoutDirty=!0);const{crossfade:o}=t.options;o===!1&&r.hide()}}exitAnimationComplete(){this.members.forEach(t=>{const{options:n,resumingFrom:r}=t;n.onExitComplete&&n.onExitComplete(),r&&r.options.onExitComplete&&r.options.onExitComplete()})}scheduleRender(){this.members.forEach(t=>{t.instance&&t.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}function MD(e,t,n){let r="";const o=e.x.translate/t.x,s=e.y.translate/t.y,a=n?.z||0;if((o||s||a)&&(r=`translate3d(${o}px, ${s}px, ${a}px) `),(t.x!==1||t.y!==1)&&(r+=`scale(${1/t.x}, ${1/t.y}) `),n){const{transformPerspective:d,rotate:u,rotateX:f,rotateY:h,skewX:m,skewY:g}=n;d&&(r=`perspective(${d}px) ${r}`),u&&(r+=`rotate(${u}deg) `),f&&(r+=`rotateX(${f}deg) `),h&&(r+=`rotateY(${h}deg) `),m&&(r+=`skewX(${m}deg) `),g&&(r+=`skewY(${g}deg) `)}const l=e.x.scale*t.x,c=e.y.scale*t.y;return(l!==1||c!==1)&&(r+=`scale(${l}, ${c})`),r||"none"}const pf=["","X","Y","Z"],PD=1e3;let jD=0;function hf(e,t,n,r){const{latestValues:o}=t;o[e]&&(n[e]=o[e],t.setStaticValue(e,0),r&&(r[e]=0))}function zb(e){if(e.hasCheckedOptimisedAppear=!0,e.root===e)return;const{visualElement:t}=e.options;if(!t)return;const n=nb(t);if(window.MotionHasOptimisedAnimation(n,"transform")){const{layout:o,layoutId:s}=e.options;window.MotionCancelOptimisedAnimation(n,"transform",Ct,!(o||s))}const{parent:r}=e;r&&!r.hasCheckedOptimisedAppear&&zb(r)}function Vb({attachResizeListener:e,defaultParent:t,measureScroll:n,checkIsScrollRoot:r,resetTransform:o}){return class{constructor(a={},l=t?.()){this.id=jD++,this.animationId=0,this.animationCommitId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.hasCheckedOptimisedAppear=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.layoutVersion=0,this.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,this.nodes.forEach(AD),this.nodes.forEach(LD),this.nodes.forEach(BD),this.nodes.forEach(RD)},this.resolvedRelativeTargetAt=0,this.linkedParentVersion=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=a,this.root=l?l.root||l:this,this.path=l?[...l.path,l]:[],this.parent=l,this.depth=l?l.depth+1:0;for(let c=0;c<this.path.length;c++)this.path[c].shouldResetTransform=!0;this.root===this&&(this.nodes=new yD)}addEventListener(a,l){return this.eventHandlers.has(a)||this.eventHandlers.set(a,new au),this.eventHandlers.get(a).add(l)}notifyListeners(a,...l){const c=this.eventHandlers.get(a);c&&c.notify(...l)}hasListeners(a){return this.eventHandlers.has(a)}mount(a){if(this.instance)return;this.isSVG=vy(a)&&!xj(a),this.instance=a;const{layoutId:l,layout:c,visualElement:d}=this.options;if(d&&!d.current&&d.mount(a),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),this.root.hasTreeAnimated&&(c||l)&&(this.isLayoutDirty=!0),e){let u,f=0;const h=()=>this.root.updateBlockedByResize=!1;Ct.read(()=>{f=window.innerWidth}),e(a,()=>{const m=window.innerWidth;m!==f&&(f=m,this.root.updateBlockedByResize=!0,u&&u(),u=bD(h,250),Yl.hasAnimatedSinceResize&&(Yl.hasAnimatedSinceResize=!1,this.nodes.forEach(Yb)))})}l&&this.root.registerSharedNode(l,this),this.options.animate!==!1&&d&&(l||c)&&this.addEventListener("didUpdate",({delta:u,hasLayoutChanged:f,hasRelativeLayoutChanged:h,layout:m})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const g=this.options.transition||d.getDefaultTransition()||VD,{onLayoutAnimationStart:y,onLayoutAnimationComplete:b}=d.getProps(),v=!this.targetLayout||!_b(this.targetLayout,m),k=!f&&h;if(this.options.layoutRoot||this.resumeFrom||k||f&&(v||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0);const S={...Bu(g,"layout"),onPlay:y,onComplete:b};(d.shouldReduceMotion||this.options.layoutRoot)&&(S.delay=0,S.type=!1),this.startAnimation(S),this.setAnimationOrigin(u,k)}else f||Yb(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=m})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const a=this.getStack();a&&a.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,this.eventHandlers.clear(),Ir(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}isTreeAnimationBlocked(){return this.isAnimationBlocked||this.parent&&this.parent.isTreeAnimationBlocked()||!1}startUpdate(){this.isUpdateBlocked()||(this.isUpdating=!0,this.nodes&&this.nodes.forEach(_D),this.animationId++)}getTransformTemplate(){const{visualElement:a}=this.options;return a&&a.getProps().transformTemplate}willUpdate(a=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&zb(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let u=0;u<this.path.length;u++){const f=this.path[u];f.shouldResetTransform=!0,f.updateScroll("snapshot"),f.options.layoutRoot&&f.willUpdate(!1)}const{layoutId:l,layout:c}=this.options;if(l===void 0&&!c)return;const d=this.getTransformTemplate();this.prevTransformTemplateValue=d?d(this.latestValues,""):void 0,this.updateSnapshot(),a&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEach(Hb);return}if(this.animationId<=this.animationCommitId){this.nodes.forEach(Ub);return}this.animationCommitId=this.animationId,this.isUpdating?(this.isUpdating=!1,this.nodes.forEach($D),this.nodes.forEach(ID),this.nodes.forEach(DD)):this.nodes.forEach(Ub),this.clearAllSnapshots();const l=sn.now();Gt.delta=pr(0,1e3/60,l-Gt.timestamp),Gt.timestamp=l,Gt.isProcessing=!0,uu.update.process(Gt),uu.preRender.process(Gt),uu.render.process(Gt),Gt.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,Wu.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(ND),this.sharedNodes.forEach(FD)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,Ct.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){Ct.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure(),this.snapshot&&!an(this.snapshot.measuredBox.x)&&!an(this.snapshot.measuredBox.y)&&(this.snapshot=void 0))}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let c=0;c<this.path.length;c++)this.path[c].updateScroll();const a=this.layout;this.layout=this.measure(!1),this.layoutVersion++,this.layoutCorrected=Wt(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);const{visualElement:l}=this.options;l&&l.notify("LayoutMeasure",this.layout.layoutBox,a?a.layoutBox:void 0)}updateScroll(a="measure"){let l=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===a&&(l=!1),l&&this.instance){const c=r(this.instance);this.scroll={animationId:this.root.animationId,phase:a,isRoot:c,offset:n(this.instance),wasRoot:this.scroll?this.scroll.isRoot:c}}}resetTransform(){if(!o)return;const a=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,l=this.projectionDelta&&!$b(this.projectionDelta),c=this.getTransformTemplate(),d=c?c(this.latestValues,""):void 0,u=d!==this.prevTransformTemplateValue;a&&this.instance&&(l||wo(this.latestValues)||u)&&(o(this.instance,d),this.shouldResetTransform=!1,this.scheduleRender())}measure(a=!0){const l=this.measurePageBox();let c=this.removeElementScroll(l);return a&&(c=this.removeTransform(c)),HD(c),{animationId:this.root.animationId,measuredBox:l,layoutBox:c,latestValues:{},source:this.id}}measurePageBox(){const{visualElement:a}=this.options;if(!a)return Wt();const l=a.measureViewportBox();if(!(this.scroll?.wasRoot||this.path.some(UD))){const{scroll:d}=this.root;d&&(fs(l.x,d.offset.x),fs(l.y,d.offset.y))}return l}removeElementScroll(a){const l=Wt();if(Gn(l,a),this.scroll?.wasRoot)return l;for(let c=0;c<this.path.length;c++){const d=this.path[c],{scroll:u,options:f}=d;d!==this.root&&u&&f.layoutScroll&&(u.wasRoot&&Gn(l,a),fs(l.x,u.offset.x),fs(l.y,u.offset.y))}return l}applyTransform(a,l=!1){const c=Wt();Gn(c,a);for(let d=0;d<this.path.length;d++){const u=this.path[d];!l&&u.options.layoutScroll&&u.scroll&&u!==u.root&&ps(c,{x:-u.scroll.offset.x,y:-u.scroll.offset.y}),wo(u.latestValues)&&ps(c,u.latestValues)}return wo(this.latestValues)&&ps(c,this.latestValues),c}removeTransform(a){const l=Wt();Gn(l,a);for(let c=0;c<this.path.length;c++){const d=this.path[c];if(!d.instance||!wo(d.latestValues))continue;tf(d.latestValues)&&d.updateSnapshot();const u=Wt(),f=d.measurePageBox();Gn(u,f),Rb(l,d.latestValues,d.snapshot?d.snapshot.layoutBox:void 0,u)}return wo(this.latestValues)&&Rb(l,this.latestValues),l}setTargetDelta(a){this.targetDelta=a,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(a){this.options={...this.options,...a,crossfade:a.crossfade!==void 0?a.crossfade:!0}}clearMeasurements(){this.scroll=void 0,this.layout=void 0,this.snapshot=void 0,this.prevTransformTemplateValue=void 0,this.targetDelta=void 0,this.target=void 0,this.isLayoutDirty=!1}forceRelativeParentToResolveTarget(){this.relativeParent&&this.relativeParent.resolvedRelativeTargetAt!==Gt.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(a=!1){const l=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=l.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=l.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=l.isSharedProjectionDirty);const c=!!this.resumingFrom||this!==l;if(!(a||c&&this.isSharedProjectionDirty||this.isProjectionDirty||this.parent?.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;const{layout:u,layoutId:f}=this.options;if(!this.layout||!(u||f))return;this.resolvedRelativeTargetAt=Gt.timestamp;const h=this.getClosestProjectingParent();h&&this.linkedParentVersion!==h.layoutVersion&&!h.options.layoutRoot&&this.removeRelativeTarget(),!this.targetDelta&&!this.relativeTarget&&(h&&h.layout?this.createRelativeTarget(h,this.layout.layoutBox,h.layout.layoutBox):this.removeRelativeTarget()),!(!this.relativeTarget&&!this.targetDelta)&&(this.target||(this.target=Wt(),this.targetWithTransforms=Wt()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),QI(this.target,this.relativeTarget,this.relativeParent.target)):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):Gn(this.target,this.layout.layoutBox),Hy(this.target,this.targetDelta)):Gn(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget&&(this.attemptToResolveRelativeTarget=!1,h&&!!h.resumingFrom==!!this.resumingFrom&&!h.options.layoutScroll&&h.target&&this.animationProgress!==1?this.createRelativeTarget(h,this.target,h.target):this.relativeParent=this.relativeTarget=void 0))}getClosestProjectingParent(){if(!(!this.parent||tf(this.parent.latestValues)||Wy(this.parent.latestValues)))return this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}createRelativeTarget(a,l,c){this.relativeParent=a,this.linkedParentVersion=a.layoutVersion,this.forceRelativeParentToResolveTarget(),this.relativeTarget=Wt(),this.relativeTargetOrigin=Wt(),Hl(this.relativeTargetOrigin,l,c),Gn(this.relativeTarget,this.relativeTargetOrigin)}removeRelativeTarget(){this.relativeParent=this.relativeTarget=void 0}calcProjection(){const a=this.getLead(),l=!!this.resumingFrom||this!==a;let c=!0;if((this.isProjectionDirty||this.parent?.isProjectionDirty)&&(c=!1),l&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(c=!1),this.resolvedRelativeTargetAt===Gt.timestamp&&(c=!1),c)return;const{layout:d,layoutId:u}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(d||u))return;Gn(this.layoutCorrected,this.layout.layoutBox);const f=this.treeScale.x,h=this.treeScale.y;uI(this.layoutCorrected,this.treeScale,this.path,l),a.layout&&!a.target&&(this.treeScale.x!==1||this.treeScale.y!==1)&&(a.target=a.layout.layoutBox,a.targetWithTransforms=Wt());const{target:m}=a;if(!m){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}!this.projectionDelta||!this.prevProjectionDelta?this.createProjectionDeltas():(Ib(this.prevProjectionDelta.x,this.projectionDelta.x),Ib(this.prevProjectionDelta.y,this.projectionDelta.y)),Wi(this.projectionDelta,this.layoutCorrected,m,this.latestValues),(this.treeScale.x!==f||this.treeScale.y!==h||!Wb(this.projectionDelta.x,this.prevProjectionDelta.x)||!Wb(this.projectionDelta.y,this.prevProjectionDelta.y))&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",m))}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(a=!0){if(this.options.visualElement?.scheduleRender(),a){const l=this.getStack();l&&l.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=hs(),this.projectionDelta=hs(),this.projectionDeltaWithTransform=hs()}setAnimationOrigin(a,l=!1){const c=this.snapshot,d=c?c.latestValues:{},u={...this.latestValues},f=hs();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!l;const h=Wt(),m=c?c.source:void 0,g=this.layout?this.layout.source:void 0,y=m!==g,b=this.getStack(),v=!b||b.members.length<=1,k=!!(y&&!v&&this.options.crossfade===!0&&!this.path.some(zD));this.animationProgress=0;let S;this.mixTargetDelta=C=>{const w=C/1e3;qb(f.x,a.x,w),qb(f.y,a.y,w),this.setTargetDelta(f),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(Hl(h,this.layout.layoutBox,this.relativeParent.layout.layoutBox),WD(this.relativeTarget,this.relativeTargetOrigin,h,w),S&&ED(this.relativeTarget,S)&&(this.isProjectionDirty=!1),S||(S=Wt()),Gn(S,this.relativeTarget)),y&&(this.animationValues=u,xD(u,d,this.latestValues,w,k,v)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=w},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(a){this.notifyListeners("animationStart"),this.currentAnimation?.stop(),this.resumingFrom?.currentAnimation?.stop(),this.pendingAnimation&&(Ir(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=Ct.update(()=>{Yl.hasAnimatedSinceResize=!0,this.motionValue||(this.motionValue=xo(0)),this.currentAnimation=mD(this.motionValue,[0,1e3],{...a,velocity:0,isSync:!0,onUpdate:l=>{this.mixTargetDelta(l),a.onUpdate&&a.onUpdate(l)},onStop:()=>{},onComplete:()=>{a.onComplete&&a.onComplete(),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);const a=this.getStack();a&&a.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(PD),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const a=this.getLead();let{targetWithTransforms:l,target:c,layout:d,latestValues:u}=a;if(!(!l||!c||!d)){if(this!==a&&this.layout&&d&&Jb(this.options.animationType,this.layout.layoutBox,d.layoutBox)){c=this.target||Wt();const f=an(this.layout.layoutBox.x);c.x.min=a.target.x.min,c.x.max=c.x.min+f;const h=an(this.layout.layoutBox.y);c.y.min=a.target.y.min,c.y.max=c.y.min+h}Gn(l,c),ps(l,u),Wi(this.projectionDeltaWithTransform,this.layoutCorrected,l,u)}}registerSharedNode(a,l){this.sharedNodes.has(a)||this.sharedNodes.set(a,new OD),this.sharedNodes.get(a).add(l);const d=l.options.initialPromotionConfig;l.promote({transition:d?d.transition:void 0,preserveFollowOpacity:d&&d.shouldPreserveFollowOpacity?d.shouldPreserveFollowOpacity(l):void 0})}isLead(){const a=this.getStack();return a?a.lead===this:!0}getLead(){const{layoutId:a}=this.options;return a?this.getStack()?.lead||this:this}getPrevLead(){const{layoutId:a}=this.options;return a?this.getStack()?.prevLead:void 0}getStack(){const{layoutId:a}=this.options;if(a)return this.root.sharedNodes.get(a)}promote({needsReset:a,transition:l,preserveFollowOpacity:c}={}){const d=this.getStack();d&&d.promote(this,c),a&&(this.projectionDelta=void 0,this.needsReset=!0),l&&this.setOptions({transition:l})}relegate(){const a=this.getStack();return a?a.relegate(this):!1}resetSkewAndRotation(){const{visualElement:a}=this.options;if(!a)return;let l=!1;const{latestValues:c}=a;if((c.z||c.rotate||c.rotateX||c.rotateY||c.rotateZ||c.skewX||c.skewY)&&(l=!0),!l)return;const d={};c.z&&hf("z",a,d,this.animationValues);for(let u=0;u<pf.length;u++)hf(`rotate${pf[u]}`,a,d,this.animationValues),hf(`skew${pf[u]}`,a,d,this.animationValues);a.render();for(const u in d)a.setStaticValue(u,d[u]),this.animationValues&&(this.animationValues[u]=d[u]);a.scheduleRender()}applyProjectionStyles(a,l){if(!this.instance||this.isSVG)return;if(!this.isVisible){a.visibility="hidden";return}const c=this.getTransformTemplate();if(this.needsReset){this.needsReset=!1,a.visibility="",a.opacity="",a.pointerEvents=zl(l?.pointerEvents)||"",a.transform=c?c(this.latestValues,""):"none";return}const d=this.getLead();if(!this.projectionDelta||!this.layout||!d.target){this.options.layoutId&&(a.opacity=this.latestValues.opacity!==void 0?this.latestValues.opacity:1,a.pointerEvents=zl(l?.pointerEvents)||""),this.hasProjected&&!wo(this.latestValues)&&(a.transform=c?c({},""):"none",this.hasProjected=!1);return}a.visibility="";const u=d.animationValues||d.latestValues;this.applyTransformsToTarget();let f=MD(this.projectionDeltaWithTransform,this.treeScale,u);c&&(f=c(u,f)),a.transform=f;const{x:h,y:m}=this.projectionDelta;a.transformOrigin=`${h.origin*100}% ${m.origin*100}% 0`,d.animationValues?a.opacity=d===this?u.opacity??this.latestValues.opacity??1:this.preserveOpacity?this.latestValues.opacity:u.opacityExit:a.opacity=d===this?u.opacity!==void 0?u.opacity:"":u.opacityExit!==void 0?u.opacityExit:0;for(const g in Yu){if(u[g]===void 0)continue;const{correct:y,applyTo:b,isCSSVariable:v}=Yu[g],k=f==="none"?u[g]:y(u[g],d);if(b){const S=b.length;for(let C=0;C<S;C++)a[b[C]]=k}else v?this.options.visualElement.renderState.vars[g]=k:a[g]=k}this.options.layoutId&&(a.pointerEvents=d===this?zl(l?.pointerEvents)||"":"none")}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(a=>a.currentAnimation?.stop()),this.root.nodes.forEach(Hb),this.root.sharedNodes.clear()}}}function ID(e){e.updateLayout()}function DD(e){const t=e.resumeFrom?.snapshot||e.snapshot;if(e.isLead()&&e.layout&&t&&e.hasListeners("didUpdate")){const{layoutBox:n,measuredBox:r}=e.layout,{animationType:o}=e.options,s=t.source!==e.layout.source;o==="size"?$n(u=>{const f=s?t.measuredBox[u]:t.layoutBox[u],h=an(f);f.min=n[u].min,f.max=f.min+h}):Jb(o,t.layoutBox,n)&&$n(u=>{const f=s?t.measuredBox[u]:t.layoutBox[u],h=an(n[u]);f.max=f.min+h,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[u].max=e.relativeTarget[u].min+h)});const a=hs();Wi(a,n,t.layoutBox);const l=hs();s?Wi(l,e.applyTransform(r,!0),t.measuredBox):Wi(l,n,t.layoutBox);const c=!$b(a);let d=!1;if(!e.resumeFrom){const u=e.getClosestProjectingParent();if(u&&!u.resumeFrom){const{snapshot:f,layout:h}=u;if(f&&h){const m=Wt();Hl(m,t.layoutBox,f.layoutBox);const g=Wt();Hl(g,n,h.layoutBox),_b(m,g)||(d=!0),u.options.layoutRoot&&(e.relativeTarget=g,e.relativeTargetOrigin=m,e.relativeParent=u)}}}e.notifyListeners("didUpdate",{layout:n,snapshot:t,delta:l,layoutDelta:a,hasLayoutChanged:c,hasRelativeLayoutChanged:d})}else if(e.isLead()){const{onExitComplete:n}=e.options;n&&n()}e.options.transition=void 0}function AD(e){e.parent&&(e.isProjecting()||(e.isProjectionDirty=e.parent.isProjectionDirty),e.isSharedProjectionDirty||(e.isSharedProjectionDirty=!!(e.isProjectionDirty||e.parent.isProjectionDirty||e.parent.isSharedProjectionDirty)),e.isTransformDirty||(e.isTransformDirty=e.parent.isTransformDirty))}function RD(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function ND(e){e.clearSnapshot()}function Hb(e){e.clearMeasurements()}function Ub(e){e.isLayoutDirty=!1}function $D(e){const{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function Yb(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function LD(e){e.resolveTargetDelta()}function BD(e){e.calcProjection()}function _D(e){e.resetSkewAndRotation()}function FD(e){e.removeLeadSnapshot()}function qb(e,t,n){e.translate=Et(t.translate,0,n),e.scale=Et(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function Gb(e,t,n,r){e.min=Et(t.min,n.min,r),e.max=Et(t.max,n.max,r)}function WD(e,t,n,r){Gb(e.x,t.x,n.x,r),Gb(e.y,t.y,n.y,r)}function zD(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}const VD={duration:.45,ease:[.4,0,.1,1]},Kb=e=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),Xb=Kb("applewebkit/")&&!Kb("chrome/")?Math.round:Rn;function Zb(e){e.min=Xb(e.min),e.max=Xb(e.max)}function HD(e){Zb(e.x),Zb(e.y)}function Jb(e,t,n){return e==="position"||e==="preserve-aspect"&&!JI(Fb(t),Fb(n),.2)}function UD(e){return e!==e.root&&e.scroll?.wasRoot}const YD=Vb({attachResizeListener:(e,t)=>Bi(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),mf={current:void 0},Qb=Vb({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!mf.current){const e=new YD({});e.mount(window),e.setOptions({layoutScroll:!0}),mf.current=e}return mf.current},resetTransform:(e,t)=>{e.style.transform=t!==void 0?t:"none"},checkIsScrollRoot:e=>window.getComputedStyle(e).position==="fixed"}),qD={pan:{Feature:pD},drag:{Feature:fD,ProjectionNode:Qb,MeasureLayout:Tb}};function ev(e,t,n){const{props:r}=e;e.animationState&&r.whileHover&&e.animationState.setActive("whileHover",n==="Start");const o="onHover"+n,s=r[o];s&&Ct.postRender(()=>s(t,_i(t)))}class GD extends Zr{mount(){const{current:t}=this.node;t&&(this.unmount=gj(t,(n,r)=>(ev(this.node,r,"Start"),o=>ev(this.node,o,"End"))))}unmount(){}}class KD extends Zr{constructor(){super(...arguments),this.isActive=!1}onFocus(){let t=!1;try{t=this.node.current.matches(":focus-visible")}catch{t=!0}!t||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!0),this.isActive=!0)}onBlur(){!this.isActive||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!1),this.isActive=!1)}mount(){this.unmount=Ei(Bi(this.node.current,"focus",()=>this.onFocus()),Bi(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}function tv(e,t,n){const{props:r}=e;if(e.current instanceof HTMLButtonElement&&e.current.disabled)return;e.animationState&&r.whileTap&&e.animationState.setActive("whileTap",n==="Start");const o="onTap"+(n==="End"?"":n),s=r[o];s&&Ct.postRender(()=>s(t,_i(t)))}class XD extends Zr{mount(){const{current:t}=this.node;t&&(this.unmount=vj(t,(n,r)=>(tv(this.node,r,"Start"),(o,{success:s})=>tv(this.node,o,s?"End":"Cancel")),{useGlobalTarget:this.node.props.globalTapTarget}))}unmount(){}}const gf=new WeakMap,yf=new WeakMap,ZD=e=>{const t=gf.get(e.target);t&&t(e)},JD=e=>{e.forEach(ZD)};function QD({root:e,...t}){const n=e||document;yf.has(n)||yf.set(n,{});const r=yf.get(n),o=JSON.stringify(t);return r[o]||(r[o]=new IntersectionObserver(JD,{root:e,...t})),r[o]}function eA(e,t,n){const r=QD(t);return gf.set(e,n),r.observe(e),()=>{gf.delete(e),r.unobserve(e)}}const tA={some:0,all:1};class nA extends Zr{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:t={}}=this.node.getProps(),{root:n,margin:r,amount:o="some",once:s}=t,a={root:n?n.current:void 0,rootMargin:r,threshold:typeof o=="number"?o:tA[o]},l=c=>{const{isIntersecting:d}=c;if(this.isInView===d||(this.isInView=d,s&&!d&&this.hasEnteredView))return;d&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",d);const{onViewportEnter:u,onViewportLeave:f}=this.node.getProps(),h=d?u:f;h&&h(c)};return eA(this.node.current,a,l)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:t,prevProps:n}=this.node;["amount","margin","root"].some(rA(t,n))&&this.startObserver()}unmount(){}}function rA({viewport:e={}},{viewport:t={}}={}){return n=>e[n]!==t[n]}const oA={...YI,...{inView:{Feature:nA},tap:{Feature:XD},focus:{Feature:KD},hover:{Feature:GD}},...qD,...{layout:{ProjectionNode:Qb,MeasureLayout:Tb}}},Jr=lI(oA,wI);function nv(e){const t=qr(()=>xo(e)),{isStatic:n}=x.useContext($l);if(n){const[,r]=x.useState(e);x.useEffect(()=>t.on("change",r),[])}return t}function rv(e,t){const n=nv(t()),r=()=>n.set(t());return r(),nu(()=>{const o=()=>Ct.preRender(r,!1,!0),s=e.map(a=>a.on("change",o));return()=>{s.forEach(a=>a()),Ir(r)}}),n}function sA(e){Ri.current=[],e();const t=rv(Ri.current,e);return Ri.current=void 0,t}function iA(e,t,n,r){if(typeof e=="function")return sA(e);const s=typeof t=="function"?t:wj(t,n,r);return Array.isArray(e)?ov(e,s):ov([e],([a])=>s(a))}function ov(e,t){const n=qr(()=>[]);return rv(e,()=>{n.length=0;const r=e.length;for(let o=0;o<r;o++)n[o]=e[o].get();return t(n)})}class aA{constructor(){this.componentControls=new Set}subscribe(t){return this.componentControls.add(t),()=>this.componentControls.delete(t)}start(t,n){this.componentControls.forEach(r=>{r.start(t.nativeEvent||t,n)})}cancel(){this.componentControls.forEach(t=>{t.cancel()})}stop(){this.componentControls.forEach(t=>{t.stop()})}}const lA=()=>new aA;function sv(){return qr(lA)}const iv=x.createContext(null);function cA(e,t,n,r){if(!r)return e;const o=e.findIndex(u=>u.value===t);if(o===-1)return e;const s=r>0?1:-1,a=e[o+s];if(!a)return e;const l=e[o],c=a.layout,d=Et(c.min,c.max,.5);return s===1&&l.layout.max+n>d||s===-1&&l.layout.min+n<d?PM(e,o,o+s):e}function dA({children:e,as:t="ul",axis:n="y",onReorder:r,values:o,...s},a){const l=qr(()=>Jr[t]),c=[],d=x.useRef(!1),u=x.useRef(null);Yn(!!o,"Reorder.Group must be provided a values prop","reorder-values");const f={axis:n,groupRef:u,registerItem:(g,y)=>{const b=c.findIndex(v=>g===v.value);b!==-1?c[b].layout=y[n]:c.push({value:g,layout:y[n]}),c.sort(pA)},updateOrder:(g,y,b)=>{if(d.current)return;const v=cA(c,g,y,b);c!==v&&(d.current=!0,r(v.map(fA).filter(k=>o.indexOf(k)!==-1)))}};x.useEffect(()=>{d.current=!1});const h=g=>{u.current=g,typeof a=="function"?a(g):a&&(a.current=g)},m={overflowAnchor:"none",...s.style};return p.jsx(l,{...s,style:m,ref:h,ignoreStrict:!0,children:p.jsx(iv.Provider,{value:f,children:e})})}const uA=x.forwardRef(dA);function fA(e){return e.value}function pA(e,t){return e.layout.min-t.layout.min}const ql=50,av=25,hA=new Set(["auto","scroll"]),zi=new WeakMap,Vi=new WeakMap;let Hi=null;function mA(){if(Hi){const e=bf(Hi,"y");e&&(Vi.delete(e),zi.delete(e));const t=bf(Hi,"x");t&&t!==e&&(Vi.delete(t),zi.delete(t)),Hi=null}}function gA(e,t){const n=getComputedStyle(e),r=t==="x"?n.overflowX:n.overflowY;return hA.has(r)}function bf(e,t){let n=e?.parentElement;for(;n;){if(gA(n,t))return n;n=n.parentElement}return null}function yA(e,t,n){const r=t.getBoundingClientRect(),o=n==="x"?r.left:r.top,s=n==="x"?r.right:r.bottom,a=e-o,l=s-e;if(a<ql){const c=1-a/ql;return{amount:-av*c*c,edge:"start"}}else if(l<ql){const c=1-l/ql;return{amount:av*c*c,edge:"end"}}return{amount:0,edge:null}}function bA(e,t,n,r){if(!e)return;Hi=e;const o=bf(e,n);if(!o)return;const{amount:s,edge:a}=yA(t,o,n);if(a===null){Vi.delete(o),zi.delete(o);return}if(Vi.get(o)!==a){if(!(a==="start"&&r<0||a==="end"&&r>0))return;Vi.set(o,a);const d=n==="x"?o.scrollWidth-o.clientWidth:o.scrollHeight-o.clientHeight;zi.set(o,d)}if(s>0){const c=zi.get(o);if((n==="x"?o.scrollLeft:o.scrollTop)>=c)return}n==="x"?o.scrollLeft+=s:o.scrollTop+=s}function lv(e,t=0){return Kt(e)?e:nv(t)}function vA({children:e,style:t={},value:n,as:r="li",onDrag:o,onDragEnd:s,layout:a=!0,...l},c){const d=qr(()=>Jr[r]),u=x.useContext(iv),f={x:lv(t.x),y:lv(t.y)},h=iA([f.x,f.y],([v,k])=>v||k?1:"unset");Yn(!!u,"Reorder.Item must be a child of Reorder.Group","reorder-item-child");const{axis:m,registerItem:g,updateOrder:y,groupRef:b}=u;return p.jsx(d,{drag:m,...l,dragSnapToOrigin:!0,style:{...t,x:f.x,y:f.y,zIndex:h},layout:a,onDrag:(v,k)=>{const{velocity:S,point:C}=k,w=f[m].get();y(n,w,S[m]),bA(b.current,C[m],m,S[m]),o&&o(v,k)},onDragEnd:(v,k)=>{mA(),s&&s(v,k)},onLayoutMeasure:v=>{g(n,v)},ref:c,ignoreStrict:!0,children:e})}const cv=x.forwardRef(vA),zt=({name:e,size:t=24,url:n,color:r="currentColor",style:o={},...s})=>{const{isPrimary:a}=s,l=n||Ge[e],d=mt().palette.mode==="dark",u=a?"invert(0%) brightness(200%)":d?"invert(100%) sepia(0%) saturate(0%) hue-rotate(93deg) brightness(103%) contrast(103%)":"invert(48%) sepia(0%) saturate(0%) hue-rotate(181deg) brightness(95%) contrast(90%)";return l?p.jsx("img",{src:l,alt:`${e}-icon`,draggable:!1,style:{filter:u,...o},...s}):null},xA=({showOptions:e,setShowOptions:t,buttonRef:n,options:r,onClick:o})=>{const s=x.useRef(null);return x.useEffect(()=>{let a;return e&&(a=setTimeout(()=>{const l=c=>{s?.current&&!s?.current.contains(c.target)&&!n?.contains(c.target)&&t(!1)};document.addEventListener("mousedown",l),document._customLabelClickOutside=l},0)),()=>{clearTimeout(a),document._customLabelClickOutside&&(document.removeEventListener("mousedown",document._customLabelClickOutside),delete document._customLabelClickOutside)}},[e]),p.jsx(fi,{open:e,anchorEl:n,placement:"bottom",transition:!0,modifiers:[{name:"offset",options:{offset:[0,0]}},{name:"sameWidth",enabled:!0,phase:"beforeWrite",requires:["computeStyles"],fn:({state:a})=>{a.styles.popper.width=`${a.rects.reference.width}px`}}],style:{zIndex:1300},ref:s,children:({TransitionProps:a})=>p.jsx(mi,{...a,timeout:100,children:p.jsx(oe,{sx:{background:l=>l.palette.primary.appBackground,border:l=>`1px solid ${l.palette.primary.notifyBorderColor}`,borderRadius:"0.7rem",width:"100%",padding:"0.3rem",maxHeight:"20rem",overflowY:"auto"},children:p.jsx(oe,{children:r?.map((l,c)=>p.jsx(go,{sx:{opacity:1,pointerEvents:"auto",padding:"0rem",borderTop:c!==0?d=>`0.1rem solid ${d.palette.primary.notifyBorderColor}`:"none"},onClick:d=>{d.stopPropagation(),o(l)},children:p.jsx(qe,{direction:"row",alignItems:"center",justifyContent:"space-between",sx:{p:"0.5rem"},children:p.jsx(qe,{direction:"row",alignItems:"center",gap:"1rem",children:p.jsx(ut,{component:"h3",sx:{color:d=>d.palette.primary.notifyActiveText,fontWeight:"300",fontSize:"1.1rem",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis"},children:l.label})})})},c))})})})})},dv=({styles:e,label:t,helpText:n,disabled:r,onClick:o,...s})=>{const a=mt(),{t:l}=x.useContext(ln);let c=l(t)?.length*(l(t)?.length>=10?6.5:8.5)+42||0;c=s?.options?c+15:c;const[d,u]=x.useState(!1),f=x.useRef(null),[h,m]=x.useState(!1),[g,y]=x.useState(e?.isAnimate),[b,v]=x.useState(!1);return p.jsx(rs,{title:l(n)??l(t),placement:"top",componentsProps:{tooltip:{sx:{fontSize:"1rem",padding:"0.6rem 1rem",boxShadow:"0 2px 8px rgba(0,0,0,0.3)"}}},children:p.jsxs(Jr.button,{ref:f,onFocus:()=>v(!0),onBlur:()=>v(!1),onMouseEnter:()=>g&&u(!0),onMouseLeave:()=>{g&&u(!1),v(!1)},initial:{width:e?.width||(!g&&t?`${c/10}rem`:"3.2rem"),borderRadius:"0.7rem"},animate:{width:g?`${d?c/9:3.2}rem`:t?e?.width??`${c/10}rem`:"3.2rem"},whileHover:{backgroundColor:e?.hover?.backgroundColor,color:e?.hover?.color},transition:{duration:.2,ease:"easeInOut"},style:{height:"3.2rem",outline:"none",overflow:"hidden",backgroundColor:e?.variant!=="outlined"?e?.colorType==="secondary"?a.palette.brandColor.blue:e?.colorType==="danger"?a.palette.brandColor.red:e?.colorType==="empty"?a.palette.primary.notifyButtonBackground:a.palette.brandColor.orange:a.palette.primary.notifyBackground,border:e?.variant==="outlined"||e?.colorType==="empty"?b?`0.1rem solid ${a.palette.brandColor.orange}`:`0.1rem solid ${a.palette.primary.notifyBorderColor}`:b?`0.1rem solid ${a.palette.brandColor.orange}`:"none",display:"flex",alignItems:"center",gap:d||!g?"0.5rem":0,color:e?.variant==="outlined"||e?.colorType==="empty"?a.palette.primary.notifyTextColor:"white",justifyContent:"center",padding:d||!g?"1.2rem":"0.8rem",whiteSpace:"nowrap",opacity:r?.5:1,cursor:r?"auto":"pointer",...e},disabled:r,layout:!0,onClick:()=>{v(!1),!s?.options&&o(),s?.options&&(m(k=>!k),y(h))},...s,children:[e?.icon&&(!e?.iconPosition||e?.iconPosition==="start")&&p.jsx(zt,{url:e?.icon,isPrimary:e?.iconPrimary}),t&&p.jsxs(Jr.div,{layout:!0,initial:{opacity:0,width:0},animate:{opacity:d||!g?1:0,width:d||!g?"auto":0},transition:{duration:.2,ease:"easeInOut",delay:d?.1:0},style:{overflow:"hidden",whiteSpace:"nowrap",display:"flex",justifyContent:"center",gap:"0.8rem"},children:[p.jsx(ut,{sx:{fontSize:"1.1rem"},children:l(t)}),s?.options&&(h?p.jsx(zt,{url:Ge.ArrowUpLight}):p.jsx(zt,{url:Ge.ArrowDownLight}))]}),e?.iconPosition==="end"&&p.jsx(zt,{url:e?.icon,isPrimary:e?.iconPrimary}),p.jsx(xA,{showOptions:h,buttonRef:f?.current,setShowOptions:m,options:s?.options,onClick:o})]})})};dv.propTypes={styles:i.object.isRequired,label:i.string};function Dr({...e}){return p.jsx(Yt,{children:p.jsx(dv,{...e})})}function gr({...e}){return p.jsx(Yt,{children:p.jsx(cg,{sx:{p:"0!important"},id:e?.id,icon:p.jsx(oe,{component:"img",src:Ge.Uncheck}),checkedIcon:p.jsx(oe,{component:"img",src:Ge.Check}),...e})})}const wA=({iconUrl:e,placeholder:t,...n})=>{const[r,o]=x.useState(!1),[s,a]=x.useState(!1),l=mt(),{t:c}=x.useContext(ln);return p.jsxs(oe,{sx:{display:"flex",alignItems:"center",border:`0.1rem solid ${s?l.palette.brandColor.orange:l.palette.primary.notifyBorderColor}`,borderRadius:"0.7rem",backgroundColor:l.palette.primary.notifyBackground,height:"3.2rem",paddingLeft:"0.5rem",overflow:"hidden",transition:"border 0.2s ease"},children:[e&&p.jsx(oe,{component:zt,url:e,sx:{width:"1.3rem",height:"1.3rem",margin:"0 0.5rem 0.2rem 0.5rem",userSelect:"none",pointerEvents:"none",objectFit:"contain"},draggable:!1}),p.jsx(Jr.input,{type:"text",onFocus:()=>{a(!0),o(!0)},onBlur:()=>{a(!1),o(!1)},initial:{width:"10rem"},animate:{width:r?"13rem":"10rem"},transition:{duration:.3,ease:"easeInOut"},style:{height:"3.007rem",outline:"none",boxShadow:"none",fontSize:"1.1rem",border:"none",backgroundColor:"transparent",padding:0,color:l.palette.primary.notifyTextColor,flex:1,transition:"height 0.1s ease"},placeholder:c(t),...n})]})};function uv({...e}){return p.jsx(Yt,{children:p.jsx(wA,{...e})})}const SA=te(Qd)(({theme:e})=>({width:"100%!important","& .MuiFormHelperText-root":{margin:0},"& .MuiInputBase-root.MuiOutlinedInput-root.Mui-error .MuiOutlinedInput-notchedOutline":{borderColor:e.palette.brandColor.red},"& .MuiInputLabel-root.Mui-error":{color:e.palette.brandColor.red},"& .MuiFilledInput-root":{borderRadius:"0.8rem"},"& .MuiOutlinedInput-root":{fontSize:"1.1rem",color:e.palette.primary.notifyTextColor,borderRadius:"0.8rem",backgroundColor:`${e.palette.primary.notifyBackground}`,padding:"0.3rem","& fieldset":{borderColor:`${e.palette.primary.notifyBorderColor}`},"&:hover fieldset":{borderColor:`${e.palette.primary.notifyBorderColor}`},"&.Mui-focused fieldset":{borderColor:`${e.palette.brandColor.orange}`,borderWidth:"0.12rem"},"&.Mui-disabled .MuiOutlinedInput-notchedOutline":{borderColor:`${e.palette.primary.notifyBorderColor}`}},"& .MuiInputBase-input":{color:e.palette.primary.notifyActiveText,fontSize:"1.1rem",height:"2.6rem",padding:"0.3rem 1rem"},"& .MuiInputBase-input.Mui-disabled":{color:`${e.palette.primary.notifyTextColor} !important`,cursor:"not-allowed","-webkit-text-fill-color":`${e.palette.primary.notifyTextColor} !important`,opacity:1},"& .Mui-disabled":{color:`${e.palette.primary.notifyTextColor} !important`,overflow:"hidden",opacity:1},"& .Mui-disabled:before":{border:"none !important"},"& .MuiInputBase-input::placeholder":{color:e.palette.primary.notifyTextColor,fontSize:"1.1rem"},"& .MuiInputLabel-root":{paddingLeft:"0.5rem",backgroundColor:`${e.palette.primary.notifyBackground}!important`,color:e.palette.primary.notifyTextColor,fontSize:"1.1rem",top:"1.1rem",left:"1rem",transform:"none","&.Mui-focused":{color:e.palette.primary.notifyTextColor}},"& .MuiInputLabel-shrink":{top:"0",backgroundColor:`${e.palette.primary.notifyBackground}!important`,padding:"0 0.4rem",transform:"translateY(-50%) translateX(0rem)"},"& .MuiFormHelperText-root.Mui-error":{color:`${e.palette.brandColor.red} !important`,paddingLeft:"0.8rem",paddingTop:"0.2rem",fontSize:"0.9rem"},"& .MuiInputBase-input::placeholder":{color:e.palette.primary.notifyTextColor,opacity:1},"& .MuiFormLabel-asterisk":{color:`${e.palette.brandColor.red} !important`},"& input:-webkit-autofill":{WebkitBoxShadow:"0 0 0 10rem transparent inset !important",WebkitTextFillColor:`${e.palette.primary.notifyActiveText}!important`,caretColor:e.palette.primary.notifyActiveText,transition:"background-color 9999s ease-in-out 0s !important"},"& input:-webkit-autofill:hover ":{WebkitBoxShadow:"0 0 0 10rem transparent inset !important",WebkitTextFillColor:`${e.palette.primary.notifyActiveText}!important`}})),Ui=({showBorder:e=!0,...t})=>p.jsx(Yt,{children:p.jsx(SA,{variant:"outlined",inputProps:{style:{cursor:t?.disabled?"not-allowed":"pointer"}},slotProps:{htmlInput:{title:""}},sx:{"& .MuiFormLabel-asterisk.MuiInputLabel-asterisk":{"&::after":{content:'""',marginLeft:"4px",color:"red"}},cursor:t?.disabled?"not-allowed":"pointer",opacity:t?.disabled?.5:1,...!e&&{"& .MuiOutlinedInput-root":{borderRadius:0,"& fieldset":{borderColor:"transparent"},"&:hover fieldset":{borderColor:"transparent"},"&.Mui-focused fieldset":{borderColor:"transparent",borderWidth:"0.15rem"},"&.Mui-disabled .MuiOutlinedInput-notchedOutline":{borderColor:"transparent"}}},...t.styles},...t})}),Gl=e=>{const t=localStorage.getItem(e);return t?JSON.parse(t):""},CA=(e,t)=>{const n=new Date,r=new Date(e);let o=n-r;o<0&&(o=0);const s=Math.floor(o/1e3),a=Math.floor(s/60);return s<60?`${s} ${t("LABEL_SEC_AGO")}`:a<60?`${a} ${t("LABEL_MIN_AGO")}`:r.toLocaleTimeString("en-US",{hour:"2-digit",minute:"2-digit",hour12:!0})},Kl=e=>e.sort((n,r)=>{let o=new Date(n.createdAt),s=new Date(r.createdAt);return o===s?0:o>s?-1:1}).sort((n,r)=>n.isRead===r.isRead?0:r.isRead?-1:1),fv=e=>{let t=0;for(let n=0;n<e?.length;n++)e[n].isRead||t++;return t},TA=e=>{const t=[];return e?.forEach(n=>{n.isRead||t.push(n.id)}),t},kA=(e,t,n)=>e?.filter(o=>t.some(s=>o[s]?.toLowerCase()?.includes(n?.trim()?.toLowerCase()))),EA=(e,t,n)=>e?.sort((o,s)=>n==="asc"?o[t].toLowerCase().localeCompare(s[t].toLowerCase()):s[t].toLowerCase().localeCompare(o[t].toLowerCase())),vf=(e,t,n)=>e?.slice((t-1)*n,t*n),OA=e=>{const t=e?.reduce((r,o)=>{const s=new Date(o?.createdAt),a=new Intl.DateTimeFormat("en-US",{day:"numeric",month:"long",year:"numeric"}).format(s);return r[a]||(r[a]=[]),r[a].push(o),r},{});return Object.fromEntries(Object.entries(t).sort(([r],[o])=>new Date(o)-new Date(r)))},MA=(e,t)=>{if(!Array.isArray(e))return[];const n=t?.toLowerCase?.().trim();if(!n)return e;const r=o=>o.map(s=>{const a=s?.label?.toLowerCase?.().includes(n);let l=[];return Array.isArray(s.children)&&(l=r(s.children)),a||l.length>0?{...s,children:l.length>0?l:s.children}:null}).filter(Boolean);return r(e)};async function PA(e){switch(e.split("-")[0]){case"tr":return(await Promise.resolve().then(()=>l4)).tr;case"nl":return(await Promise.resolve().then(()=>AR)).nl;default:return(await Promise.resolve().then(()=>O6)).enUS}}function pv(e){if(typeof e=="number")return e;if(typeof e=="string"){const t=e.trim();if(t.endsWith("px"))return parseFloat(t);if(t.endsWith("rem")){const r=parseFloat(t),o=typeof window<"u"?parseFloat(getComputedStyle(document.documentElement).fontSize):16;return r*o}const n=parseFloat(t);return isNaN(n)?0:n}return 0}const Ve={LOADING:"LOADING",SUCCESS:"SUCCESS",ERROR:"ERROR",MARK_ALL_AS_READ:"MARK_ALL_AS_READ",SET_GRID_DATA:"SET_GRID_DATA",PREV_GRID_DEF:"PREV_GRID_DEF",HAS_SETTING_CHANGE:"HAS_SETTING_CHANGE",TRIGGER_API:"TRIGGER_API",SET_MODE:"SET_MODE",SET_ACTIVE_TAB:"SET_ACTIVE_TAB"},yr={SWR:"SWR",UNHANDLED:"UNHANDLED",NRF:"NRF"},Yi=x.createContext(null),gs=x.createContext(null);function hv({children:e}){const[t,n]=x.useReducer(jA,IA);return p.jsx(Yi.Provider,{value:t,children:p.jsx(gs.Provider,{value:n,children:p.jsx(Yt,{children:e})})})}function jA(e,t){switch(t.type){case Ve.SET_GRID_DATA:case Ve.HAS_SETTING_CHANGE:case Ve.TRIGGER_API:case Ve.PREV_GRID_DEF:return{...e,...t.payload};default:throw new Error(`${yr.UNHANDLED}: ${t}`)}}const IA={visibleGridColumns:[],prevGridColumns:{},hasChange:!1,triggerApi:!1};hv.propTypes={children:i.node.isRequired};const DA=({options:e,isDraggable:t})=>{const n=x.useRef(null),[r,o]=x.useState(!1),[s,a]=x.useState(null),[l,c]=x.useState(e),[d,u]=x.useState(!1),f=t?x.useContext(gs):null,{hasChange:h,visibleGridColumns:m}=t?x.useContext(Yi):{hasChange:!1,visibleGridColumns:[]};x.useEffect(()=>{c(e?.sort((k,S)=>k.sequenceId-S.sequenceId))},[e]);const g=k=>{t&&a(k)},y=k=>{t&&k.preventDefault()},b=k=>{if(!t||s===null||s===k)return;const S=[...l],C=S.findIndex(M=>M.sequenceId===k),w=S.findIndex(M=>M.sequenceId===s);if(C===-1||w===-1)console.warn("Invalid drag or drop index",{toInsertAtIndex:C,draggedIndex:s});else{const[M]=S.splice(w,1);S.splice(C,0,M)}const T=l.slice().sort((M,j)=>M.sequenceId-j.sequenceId).map(M=>M.sequenceId),E=S.map((M,j)=>({...M,sequenceId:T[j]??M.sequenceId}));c(E),f?.({type:Ve.SET_GRID_DATA,payload:{visibleGridColumns:E}}),f?.({type:Ve.HAS_SETTING_CHANGE,payload:{hasChange:!0}}),a(null)},v=()=>{t&&h&&f?.({type:Ve.TRIGGER_API,payload:{triggerApi:!0}})};return x.useEffect(()=>{if(n.current){const k=n.current.getBoundingClientRect(),S=window.innerHeight-k.bottom;u(S<200)}},[r]),{hasChange:h,closeDropdown:v,handleDragStart:g,handleDragOver:y,handleDrop:b}},ln=x.createContext({t:e=>e}),ys=({isDraggable:e=!1,showSearch:t=!1,options:n=[],value:r,isMulti:o=!1,selectAll:s=!1,selectOnClose:a=!1,isManageColumn:l,isLoadingMore:c=!1,handleLoadMore:d,handleSearchFuncation:u,...f})=>{const{t:h}=x.useContext(ln),[m,g]=x.useState(!1),[y,b]=x.useState(null),[v,k]=x.useState(""),[S,C]=x.useState([]),[w,T]=x.useState("bottom-start"),[E,M]=x.useState([]),[j,A]=x.useState(null),[L,O]=x.useState(!1),N=x.useRef(null),P=x.useRef(null),R=x.useRef(null),$=x.useRef(!1),_=x.useRef(null),U=x.useRef(null),H=x.useRef(null),[B,D]=x.useState(0),z=x.useRef([]),{closeDropdown:V,hasChange:X,handleDragStart:G,handleDrop:Y}=DA({options:n,isDraggable:e});x.useEffect(()=>{C(n)},[n]),x.useEffect(()=>{const W=S?.filter(ee=>!ee?.isMandatory||ee?.isMandatory&&ee?.showHide===!0);M(W)},[S]);const K=(W,ee)=>{if(!o){f?.onChange?.(W),g(!1),D(0);return}let F=JSON.parse(JSON.stringify(r));if(!W)F=n.length===r.length?[]:n.map(se=>({...se}));else if(ee)if(l)F=F.map(fe=>{if(!fe.children)return fe;let se=fe?.children?.length?[...fe?.children]:[];return se.findIndex(Ce=>Ce.key===W.key)>-1?se=se.filter(Ce=>Ce.key!==W.key):se=[...se,W],{...fe,children:se}});else{const fe=ee?.id,se=W?.id,Z=W?.key,Ce=F.findIndex(Te=>Te.id===fe);if(Ce>-1){const Te=F[Ce],ke=Te.children||[],Re=ke.some(Oe=>Oe.id===se&&Oe.key===Z)?ke.filter(Oe=>!(Oe.id===se&&Oe.key===Z)):[...ke,W];F[Ce]={...Te,children:Re}}else F.push({id:fe,label:ee?.label,value:ee?.value,children:[W]})}else F=F.some(se=>se.id===W.id)?F.filter(se=>se.id!==W.id):[...F,{...W}];b(F),f?.onChange?.(F)},ae=x.useMemo(()=>ei(async W=>{if(c)try{return await u(W)}catch(ee){console.error("Search API Error",ee);return}},1e3),[]);x.useEffect(()=>{ae(v)},[v]),x.useEffect(()=>{const W=MA(n,v);C(W)},[v,n]);const le=W=>{k(W.target.value)};return x.useEffect(()=>{const W=ee=>{R.current&&!R.current.contains(ee.target)&&!N.current?.contains(ee.target)&&!P.current?.contains(ee.target)&&(g(!1),D(0),k(""),V(),a&&f?.onChange?.(y,"closed"),$.current=!0,setTimeout(()=>{$.current=!1},150))};return document.addEventListener("mousedown",W),()=>document.removeEventListener("mousedown",W)},[m,X,y]),x.useEffect(()=>{const W=z.current[B];W&&W.scrollIntoView({block:"nearest",behavior:"smooth"})},[B]),x.useEffect(()=>{if(m&&!t){const W=setTimeout(()=>{_.current&&_.current.focus()},0);return()=>clearTimeout(W)}},[m,t]),x.useEffect(()=>{if(!m||typeof d!="function")return;const W=setTimeout(()=>{const ee=_.current;let F=!1;if(!ee)return;const fe=async()=>{const se=ee.scrollHeight-ee.scrollTop<=ee.clientHeight+1;if(c&&se&&!F){F=!0;try{O(!0);const Z=await d();A(Z?.data),Z&&O(!1)}catch(Z){console.error("Error loading more options:",Z),O(!1)}}};return ee.addEventListener("scroll",fe),()=>ee.removeEventListener("scroll",fe)},100);return()=>clearTimeout(W)},[m,j]),p.jsxs(p.Fragment,{children:[p.jsx(oe,{ref:P,sx:{position:"relative",display:"inline-block",width:"100%"},children:p.jsx(Ui,{inputProps:{readOnly:!0,tabIndex:0,inputMode:"none",role:"combobox","aria-haspopup":"listbox","aria-expanded":m,style:{cursor:f?.disabled?"not-allowed":"pointer"}},InputLabelProps:{shrink:r?.length&&!f?.placeholder},InputProps:{endAdornment:p.jsx(Sl,{position:"start",children:p.jsx(qe,{direction:"row",alignItems:"center",gap:"0.5rem",sx:{cursor:f?.disabled?"not-allowed":"pointer"},children:p.jsx(oe,{component:"img",src:m?Ge.ArrowSelectDown:Ge.ArrowSelectUp})})}),startAdornment:f?.styles?.icon&&p.jsx(Sl,{position:"start",sx:{pl:1,cursor:f?.disabled?"not-allowed":"pointer"},children:p.jsx(zt,{url:f?.styles?.icon})})},sx:{opacity:f?.disabled?.5:1,"& .MuiOutlinedInput-root":{borderBottomLeftRadius:m&&w.startsWith("bottom")?0:"0.7rem",borderBottomRightRadius:m&&w.startsWith("bottom")?0:"0.7rem",borderTopLeftRadius:m&&w.startsWith("top")?0:"0.7rem",borderTopRightRadius:m&&w.startsWith("top")?0:"0.7rem"},"& .MuiInputBase-input":{caretColor:"transparent",userSelect:"none",color:W=>`${f?.placeholder?W.palette.primary.notifyTextColor:W.palette.primary.notifyActiveText}!important`}},onKeyDown:W=>{["Tab","ArrowDown","ArrowUp","Escape"].includes(W.key)||(W.preventDefault(),W.key==="Enter"&&(W.preventDefault(),g(ee=>!ee),D(s?-1:0)))},onMouseDown:W=>W.preventDefault(),onClick:W=>{f?.disabled||(W.preventDefault(),V(),a&&f?.onChange?.(y,"closed"),!$.current&&(g(ee=>!ee),m&&D(0)))},...f?.placeholder?{}:{value:Array.isArray(r)?Array.isArray(n)&&r.length===n.length&&n.length?h("LABEL_ALL_SELECTED",{count:n.length}):r.map(W=>W?.label).filter(Boolean).join(", "):r?.label||r||""},label:h(f?.label),...f})}),p.jsx(fi,{open:m,anchorEl:P.current,placement:"bottom-start",style:{zIndex:99999},ref:R,autoFocus:!0,tabIndex:0,modifiers:[{name:"offset",options:{offset:[0,0]}},{name:"updatePlacement",enabled:!0,phase:"afterWrite",fn({state:W}){T(W.placement)}}],children:p.jsxs(oe,{role:"listbox",ref:_,onDragStart:W=>W.preventDefault(),sx:{userSelect:"none",WebkitUserSelect:"none",MozUserSelect:"none",msUserSelect:"none",background:W=>W.palette.primary.appBackground,border:W=>`1px solid ${W.palette.primary.notifyBorderColor}`,borderTop:"none",borderRadius:w.startsWith("bottom")?"0 0 0.7rem 0.7rem":"0.7rem 0.7rem 0 0",width:P.current?.offsetWidth||"auto",maxHeight:"20rem",overflowY:"auto",outline:"none",scrollbarWidth:"thin"},tabIndex:0,autoFocus:!0,onKeyDown:W=>{if(W.key==="ArrowDown"||W.key==="Tab")W.preventDefault(),D(ee=>Math.min(ee+1,E.length-1));else if(W.key==="ArrowUp")W.preventDefault(),D(ee=>Math.max(ee-1,0));else if(W.key==="Enter"){W.preventDefault();const ee=E[B];ee&&K(ee)}else W.key==="Escape"&&(P.current.focus(),W.preventDefault(),g(!1),D(0))},children:[t&&p.jsx(Ui,{inputRef:U,type:"text",placeholder:h("SEARCH"),value:v,variant:"standard",autoFocus:!0,size:"small",draggable:!1,InputProps:{readOnly:!1,disableUnderline:!0,tabIndex:0,inputMode:"none"},onChange:le,sx:{position:"sticky",top:0,zIndex:1,backgroundColor:W=>W.palette.primary.appBackground,fontSize:"1.1rem",borderBottom:W=>`1px solid ${W.palette.primary.notifyBorderColor}`,"& .MuiInputBase-input":{padding:"0.3rem 1.3rem!important"}}}),E?.length>0?p.jsxs(p.Fragment,{children:[o&&s&&p.jsx(go,{ref:H,autoFocus:!0,tabIndex:0,sx:{padding:"0.8rem 1.2rem",cursor:"pointer",border:W=>B===-1&&`0.1rem solid ${W.palette.brandColor.orange}`},onClick:W=>{W.stopPropagation(),K()},children:p.jsxs(qe,{direction:"row",alignItems:"center",gap:"1rem",children:[p.jsx(gr,{sx:{p:0},draggable:!1,checked:n?.length>0&&r?.length===n?.length}),p.jsx(ut,{component:"h3",sx:{color:W=>W.palette.primary.notifyTextColor,fontSize:"1.1rem"},children:h("LABEL_SELECT_ALL")})]})}),E.map((W,ee)=>(!W?.isMandatory||W?.isMandatory&&W?.showHide===!0)&&p.jsxs(x.Fragment,{children:[p.jsx(go,{"data-option-index":ee,autoFocus:!0,sx:{opacity:W?.isMandatory&&!W?.showHide||W?.disabled?.5:1,cursor:"pointer",pointerEvents:W?.disabled?"none":"auto",padding:"0.8rem 1.2rem",borderTop:ee!==0||s?F=>`0.1rem solid ${F.palette.primary.notifyBorderColor}`:"none",border:F=>ee===B&&`0.1rem solid ${F.palette.brandColor.orange}`},draggable:!1,onDragStart:W?.isMandatory?F=>{F.preventDefault()}:()=>G(W?.sequenceId),onDragOver:F=>{W?.isMandatory||F.preventDefault()},onDrop:F=>{W?.isMandatory?F.preventDefault():Y(W?.sequenceId)},onClick:F=>{F.stopPropagation(),(!W?.isMandatory||W?.isMandatory&&W?.showHide===!0)&&(W?.showCheckbox||!W?.children?.length)&&K(W)},children:p.jsx(qe,{direction:"row",alignItems:"center",justifyContent:"space-between",gap:"1rem",width:"100%",draggable:!1,children:p.jsxs(qe,{draggable:!1,direction:"row",alignItems:"center",gap:"1rem",sx:{minWidth:0,flex:1},children:[o&&(!W?.children?.length||W?.showCheckbox)&&p.jsx(gr,{draggable:!1,sx:{p:0},checked:r?.some(F=>F.id===W.id)}),p.jsx(ut,{draggable:!1,component:"h3",noWrap:!0,sx:{color:F=>W?.children?.length&&!W?.showCheckbox&&!W.showInHierarchy?F.palette.primary.notifyActiveText:F.palette.primary.notifyTextColor,fontWeight:W?.children?.length&&!W?.showCheckbox?"500":"300",fontSize:"1.1rem",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",minWidth:0,flex:1},children:W.label})]})})}),W.children?.map((F,fe)=>(!F?.isMandatory||F?.isMandatory&&F?.showHide===!0&&F?.showInHierarchy)&&p.jsx(go,{"data-option-index":fe,autoFocus:!0,sx:{cursor:"pointer",opacity:F?.disabled?.5:1,pointerEvents:F?.disabled?"none":"auto",padding:"0.8rem 1.2rem",pl:"1.5rem",borderTop:se=>`0.1rem solid ${se.palette.primary.notifyBorderColor}`},draggable:!1,onDragStart:()=>G(ee,fe),onDragOver:se=>{F?.isMandatory||se.preventDefault()},onDrop:se=>{F?.isMandatory||Y(ee,fe)},onClick:se=>{se.stopPropagation(),K(F,W)},children:p.jsxs(qe,{direction:"row",alignItems:"center",gap:"1rem",children:[o&&W?.showChildCheckbox&&p.jsx(gr,{sx:{p:0},checked:r.some(se=>se.children?.some(Z=>Z.id===F.id))}),p.jsx(ut,{component:"h4",sx:{color:se=>se.palette.primary.notifyTextColor,fontSize:"1.05rem",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis"},children:F.label})]})},`${ee}-${fe}`))]},ee)),L&&p.jsx(Yo,{sx:{color:"blue"},size:45})]}):p.jsx(oe,{autoFocus:!0,sx:{display:"flex",justifyContent:"center",alignItems:"center",padding:"0.1rem 1rem",height:"3rem"},children:p.jsx(ut,{component:"h3",sx:{color:W=>W.palette.primary.notifyTextColor,fontSize:"1.1rem"},children:h("NO_OPTIONS")})})]})})]})};function mv({...e}){return p.jsx(Yt,{children:p.jsx(ys,{...e})})}const AA=te(oe)(({theme:e,height:t})=>({borderRadius:"0.4rem",position:"relative",background:e.palette.primary.notifyButtonBackground,display:"flex",height:t||"2.5rem"})),RA=te(oe)(({theme:e})=>({borderRadius:"0.4rem",position:"absolute",background:e.palette.primary.notifyBackground,border:`0.1rem solid ${e.palette.primary.notifyBorderColor}`,transition:"all 0.5s ease"})),gv=te(yl)(({theme:e})=>({borderRadius:"0.4rem",fontWeight:"400",transition:"all 0.2s 0.1s ease",padding:"0.4rem 0.8rem",fontSize:"1rem",textTransform:"none",zIndex:1,"&:hover":{background:"transparent",boxShadow:"none"}})),NA=({isChartType:e,setIsChartType:t,leftSwitchText:n,rigthSwitchText:r,disabled:o,height:s})=>{const[a,l]=x.useState(0),[c,d]=x.useState(0),{t:u}=x.useContext(ln),f=x.useRef(null),h=x.useRef(null);return x.useLayoutEffect(()=>{if(!f.current||!h.current)return;const m=()=>{const y=e?h.current:f.current;l(y.offsetWidth),d(y.offsetLeft)};m();const g=new ResizeObserver(m);return g.observe(f.current),g.observe(h.current),()=>g.disconnect()},[e]),p.jsx(oe,{sx:{display:"flex"},children:p.jsxs(AA,{height:s,children:[p.jsx(RA,{sx:{width:a,transform:`translateX(${c}px)`,height:s||"2.5rem"}}),p.jsx(gv,{ref:f,disableRipple:!0,sx:m=>({opacity:o?.5:1,cursor:`${o?"not-allowed":"pointer"}!important`,color:e?m.palette.brandColor.grey1:m.palette.primary.notifyActiveText}),onClick:()=>o?null:t(!1),children:u(n)}),p.jsx(gv,{ref:h,disableRipple:!0,sx:m=>({opacity:o?.5:1,cursor:`${o?"not-allowed":"pointer"}!important`,color:e?m.palette.primary.notifyActiveText:m.palette.brandColor.grey1}),onClick:()=>o?null:t(!0),children:u(r)})]})})};function yv({...e}){return p.jsx(Yt,{children:p.jsx(NA,{...e})})}const bv=6048e5,$A=864e5,vv=Symbol.for("constructDateFrom");function _t(e,t){return typeof e=="function"?e(t):e&&typeof e=="object"&&vv in e?e[vv](t):e instanceof Date?new e.constructor(t):new Date(t)}function xt(e,t){return _t(t||e,e)}function xv(e,t,n){const r=xt(e,n?.in);return isNaN(t)?_t(e,NaN):(t&&r.setDate(r.getDate()+t),r)}function wv(e,t,n){const r=xt(e,n?.in);if(isNaN(t))return _t(e,NaN);if(!t)return r;const o=r.getDate(),s=_t(e,r.getTime());s.setMonth(r.getMonth()+t+1,0);const a=s.getDate();return o>=a?s:(r.setFullYear(s.getFullYear(),s.getMonth(),o),r)}let LA={};function qi(){return LA}function bs(e,t){const n=qi(),r=t?.weekStartsOn??t?.locale?.options?.weekStartsOn??n.weekStartsOn??n.locale?.options?.weekStartsOn??0,o=xt(e,t?.in),s=o.getDay(),a=(s<r?7:0)+s-r;return o.setDate(o.getDate()-a),o.setHours(0,0,0,0),o}function Gi(e,t){return bs(e,{...t,weekStartsOn:1})}function Sv(e,t){const n=xt(e,t?.in),r=n.getFullYear(),o=_t(n,0);o.setFullYear(r+1,0,4),o.setHours(0,0,0,0);const s=Gi(o),a=_t(n,0);a.setFullYear(r,0,4),a.setHours(0,0,0,0);const l=Gi(a);return n.getTime()>=s.getTime()?r+1:n.getTime()>=l.getTime()?r:r-1}function Cv(e){const t=xt(e),n=new Date(Date.UTC(t.getFullYear(),t.getMonth(),t.getDate(),t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()));return n.setUTCFullYear(t.getFullYear()),+e-+n}function vs(e,...t){const n=_t.bind(null,t.find(r=>typeof r=="object"));return t.map(n)}function Ki(e,t){const n=xt(e,t?.in);return n.setHours(0,0,0,0),n}function xf(e,t,n){const[r,o]=vs(n?.in,e,t),s=Ki(r),a=Ki(o),l=+s-Cv(s),c=+a-Cv(a);return Math.round((l-c)/$A)}function BA(e,t){const n=Sv(e,t),r=_t(e,0);return r.setFullYear(n,0,4),r.setHours(0,0,0,0),Gi(r)}function _A(e,t,n){return xv(e,t*7,n)}function FA(e,t,n){return wv(e,t*12,n)}function WA(e,t){let n,r=t?.in;return e.forEach(o=>{!r&&typeof o=="object"&&(r=_t.bind(null,o));const s=xt(o,r);(!n||n<s||isNaN(+s))&&(n=s)}),_t(r,n||NaN)}function zA(e,t){let n,r=t?.in;return e.forEach(o=>{!r&&typeof o=="object"&&(r=_t.bind(null,o));const s=xt(o,r);(!n||n>s||isNaN(+s))&&(n=s)}),_t(r,n||NaN)}function VA(e,t,n){const[r,o]=vs(n?.in,e,t);return+Ki(r)==+Ki(o)}function Tv(e){return e instanceof Date||typeof e=="object"&&Object.prototype.toString.call(e)==="[object Date]"}function HA(e){return!(!Tv(e)&&typeof e!="number"||isNaN(+xt(e)))}function kv(e,t,n){const[r,o]=vs(n?.in,e,t),s=r.getFullYear()-o.getFullYear(),a=r.getMonth()-o.getMonth();return s*12+a}function UA(e,t){const n=xt(e,t?.in),r=n.getMonth();return n.setFullYear(n.getFullYear(),r+1,0),n.setHours(23,59,59,999),n}function Ev(e,t){const[n,r]=vs(e,t.start,t.end);return{start:n,end:r}}function YA(e,t){const{start:n,end:r}=Ev(t?.in,e);let o=+n>+r;const s=o?+n:+r,a=o?r:n;a.setHours(0,0,0,0),a.setDate(1);let l=1;const c=[];for(;+a<=s;)c.push(_t(n,a)),a.setMonth(a.getMonth()+l);return o?c.reverse():c}function qA(e,t){const n=xt(e,t?.in);return n.setDate(1),n.setHours(0,0,0,0),n}function GA(e,t){const n=xt(e,t?.in),r=n.getFullYear();return n.setFullYear(r+1,0,0),n.setHours(23,59,59,999),n}function Ov(e,t){const n=xt(e,t?.in);return n.setFullYear(n.getFullYear(),0,1),n.setHours(0,0,0,0),n}function KA(e,t){const{start:n,end:r}=Ev(t?.in,e);let o=+n>+r;const s=o?+n:+r,a=o?r:n;a.setHours(0,0,0,0),a.setMonth(0,1);let l=1;const c=[];for(;+a<=s;)c.push(_t(n,a)),a.setFullYear(a.getFullYear()+l);return o?c.reverse():c}function Mv(e,t){const n=qi(),r=t?.weekStartsOn??t?.locale?.options?.weekStartsOn??n.weekStartsOn??n.locale?.options?.weekStartsOn??0,o=xt(e,t?.in),s=o.getDay(),a=(s<r?-7:0)+6-(s-r);return o.setDate(o.getDate()+a),o.setHours(23,59,59,999),o}function XA(e,t){return Mv(e,{...t,weekStartsOn:1})}const ZA={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}},JA=(e,t,n)=>{let r;const o=ZA[e];return typeof o=="string"?r=o:t===1?r=o.one:r=o.other.replace("{{count}}",t.toString()),n?.addSuffix?n.comparison&&n.comparison>0?"in "+r:r+" ago":r};function Ar(e){return(t={})=>{const n=t.width?String(t.width):e.defaultWidth;return e.formats[n]||e.formats[e.defaultWidth]}}const QA={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},e6={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},t6={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},n6={date:Ar({formats:QA,defaultWidth:"full"}),time:Ar({formats:e6,defaultWidth:"full"}),dateTime:Ar({formats:t6,defaultWidth:"full"})},r6={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},o6=(e,t,n,r)=>r6[e];function cn(e){return(t,n)=>{const r=n?.context?String(n.context):"standalone";let o;if(r==="formatting"&&e.formattingValues){const a=e.defaultFormattingWidth||e.defaultWidth,l=n?.width?String(n.width):a;o=e.formattingValues[l]||e.formattingValues[a]}else{const a=e.defaultWidth,l=n?.width?String(n.width):e.defaultWidth;o=e.values[l]||e.values[a]}const s=e.argumentCallback?e.argumentCallback(t):t;return o[s]}}const s6={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},i6={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},a6={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},l6={narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},c6={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},d6={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},u6={ordinalNumber:(e,t)=>{const n=Number(e),r=n%100;if(r>20||r<10)switch(r%10){case 1:return n+"st";case 2:return n+"nd";case 3:return n+"rd"}return n+"th"},era:cn({values:s6,defaultWidth:"wide"}),quarter:cn({values:i6,defaultWidth:"wide",argumentCallback:e=>e-1}),month:cn({values:a6,defaultWidth:"wide"}),day:cn({values:l6,defaultWidth:"wide"}),dayPeriod:cn({values:c6,defaultWidth:"wide",formattingValues:d6,defaultFormattingWidth:"wide"})};function dn(e){return(t,n={})=>{const r=n.width,o=r&&e.matchPatterns[r]||e.matchPatterns[e.defaultMatchWidth],s=t.match(o);if(!s)return null;const a=s[0],l=r&&e.parsePatterns[r]||e.parsePatterns[e.defaultParseWidth],c=Array.isArray(l)?p6(l,f=>f.test(a)):f6(l,f=>f.test(a));let d;d=e.valueCallback?e.valueCallback(c):c,d=n.valueCallback?n.valueCallback(d):d;const u=t.slice(a.length);return{value:d,rest:u}}}function f6(e,t){for(const n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&t(e[n]))return n}function p6(e,t){for(let n=0;n<e.length;n++)if(t(e[n]))return n}function wf(e){return(t,n={})=>{const r=t.match(e.matchPattern);if(!r)return null;const o=r[0],s=t.match(e.parsePattern);if(!s)return null;let a=e.valueCallback?e.valueCallback(s[0]):s[0];a=n.valueCallback?n.valueCallback(a):a;const l=t.slice(o.length);return{value:a,rest:l}}}const h6=/^(\d+)(th|st|nd|rd)?/i,m6=/\d+/i,g6={narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},y6={any:[/^b/i,/^(a|c)/i]},b6={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},v6={any:[/1/i,/2/i,/3/i,/4/i]},x6={narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},w6={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},S6={narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},C6={narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},T6={narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},k6={any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},E6={ordinalNumber:wf({matchPattern:h6,parsePattern:m6,valueCallback:e=>parseInt(e,10)}),era:dn({matchPatterns:g6,defaultMatchWidth:"wide",parsePatterns:y6,defaultParseWidth:"any"}),quarter:dn({matchPatterns:b6,defaultMatchWidth:"wide",parsePatterns:v6,defaultParseWidth:"any",valueCallback:e=>e+1}),month:dn({matchPatterns:x6,defaultMatchWidth:"wide",parsePatterns:w6,defaultParseWidth:"any"}),day:dn({matchPatterns:S6,defaultMatchWidth:"wide",parsePatterns:C6,defaultParseWidth:"any"}),dayPeriod:dn({matchPatterns:T6,defaultMatchWidth:"any",parsePatterns:k6,defaultParseWidth:"any"})},Qr={code:"en-US",formatDistance:JA,formatLong:n6,formatRelative:o6,localize:u6,match:E6,options:{weekStartsOn:0,firstWeekContainsDate:1}},O6=Object.freeze(Object.defineProperty({__proto__:null,enUS:Qr},Symbol.toStringTag,{value:"Module"}));function M6(e,t){const n=xt(e,t?.in);return xf(n,Ov(n))+1}function Sf(e,t){const n=xt(e,t?.in),r=+Gi(n)-+BA(n);return Math.round(r/bv)+1}function Pv(e,t){const n=xt(e,t?.in),r=n.getFullYear(),o=qi(),s=t?.firstWeekContainsDate??t?.locale?.options?.firstWeekContainsDate??o.firstWeekContainsDate??o.locale?.options?.firstWeekContainsDate??1,a=_t(t?.in||e,0);a.setFullYear(r+1,0,s),a.setHours(0,0,0,0);const l=bs(a,t),c=_t(t?.in||e,0);c.setFullYear(r,0,s),c.setHours(0,0,0,0);const d=bs(c,t);return+n>=+l?r+1:+n>=+d?r:r-1}function P6(e,t){const n=qi(),r=t?.firstWeekContainsDate??t?.locale?.options?.firstWeekContainsDate??n.firstWeekContainsDate??n.locale?.options?.firstWeekContainsDate??1,o=Pv(e,t),s=_t(t?.in||e,0);return s.setFullYear(o,0,r),s.setHours(0,0,0,0),bs(s,t)}function Cf(e,t){const n=xt(e,t?.in),r=+bs(n,t)-+P6(n,t);return Math.round(r/bv)+1}function gt(e,t){const n=e<0?"-":"",r=Math.abs(e).toString().padStart(t,"0");return n+r}const eo={y(e,t){const n=e.getFullYear(),r=n>0?n:1-n;return gt(t==="yy"?r%100:r,t.length)},M(e,t){const n=e.getMonth();return t==="M"?String(n+1):gt(n+1,2)},d(e,t){return gt(e.getDate(),t.length)},a(e,t){const n=e.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return n.toUpperCase();case"aaa":return n;case"aaaaa":return n[0];default:return n==="am"?"a.m.":"p.m."}},h(e,t){return gt(e.getHours()%12||12,t.length)},H(e,t){return gt(e.getHours(),t.length)},m(e,t){return gt(e.getMinutes(),t.length)},s(e,t){return gt(e.getSeconds(),t.length)},S(e,t){const n=t.length,r=e.getMilliseconds(),o=Math.trunc(r*Math.pow(10,n-3));return gt(o,t.length)}},xs={midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},jv={G:function(e,t,n){const r=e.getFullYear()>0?1:0;switch(t){case"G":case"GG":case"GGG":return n.era(r,{width:"abbreviated"});case"GGGGG":return n.era(r,{width:"narrow"});default:return n.era(r,{width:"wide"})}},y:function(e,t,n){if(t==="yo"){const r=e.getFullYear(),o=r>0?r:1-r;return n.ordinalNumber(o,{unit:"year"})}return eo.y(e,t)},Y:function(e,t,n,r){const o=Pv(e,r),s=o>0?o:1-o;if(t==="YY"){const a=s%100;return gt(a,2)}return t==="Yo"?n.ordinalNumber(s,{unit:"year"}):gt(s,t.length)},R:function(e,t){const n=Sv(e);return gt(n,t.length)},u:function(e,t){const n=e.getFullYear();return gt(n,t.length)},Q:function(e,t,n){const r=Math.ceil((e.getMonth()+1)/3);switch(t){case"Q":return String(r);case"QQ":return gt(r,2);case"Qo":return n.ordinalNumber(r,{unit:"quarter"});case"QQQ":return n.quarter(r,{width:"abbreviated",context:"formatting"});case"QQQQQ":return n.quarter(r,{width:"narrow",context:"formatting"});default:return n.quarter(r,{width:"wide",context:"formatting"})}},q:function(e,t,n){const r=Math.ceil((e.getMonth()+1)/3);switch(t){case"q":return String(r);case"qq":return gt(r,2);case"qo":return n.ordinalNumber(r,{unit:"quarter"});case"qqq":return n.quarter(r,{width:"abbreviated",context:"standalone"});case"qqqqq":return n.quarter(r,{width:"narrow",context:"standalone"});default:return n.quarter(r,{width:"wide",context:"standalone"})}},M:function(e,t,n){const r=e.getMonth();switch(t){case"M":case"MM":return eo.M(e,t);case"Mo":return n.ordinalNumber(r+1,{unit:"month"});case"MMM":return n.month(r,{width:"abbreviated",context:"formatting"});case"MMMMM":return n.month(r,{width:"narrow",context:"formatting"});default:return n.month(r,{width:"wide",context:"formatting"})}},L:function(e,t,n){const r=e.getMonth();switch(t){case"L":return String(r+1);case"LL":return gt(r+1,2);case"Lo":return n.ordinalNumber(r+1,{unit:"month"});case"LLL":return n.month(r,{width:"abbreviated",context:"standalone"});case"LLLLL":return n.month(r,{width:"narrow",context:"standalone"});default:return n.month(r,{width:"wide",context:"standalone"})}},w:function(e,t,n,r){const o=Cf(e,r);return t==="wo"?n.ordinalNumber(o,{unit:"week"}):gt(o,t.length)},I:function(e,t,n){const r=Sf(e);return t==="Io"?n.ordinalNumber(r,{unit:"week"}):gt(r,t.length)},d:function(e,t,n){return t==="do"?n.ordinalNumber(e.getDate(),{unit:"date"}):eo.d(e,t)},D:function(e,t,n){const r=M6(e);return t==="Do"?n.ordinalNumber(r,{unit:"dayOfYear"}):gt(r,t.length)},E:function(e,t,n){const r=e.getDay();switch(t){case"E":case"EE":case"EEE":return n.day(r,{width:"abbreviated",context:"formatting"});case"EEEEE":return n.day(r,{width:"narrow",context:"formatting"});case"EEEEEE":return n.day(r,{width:"short",context:"formatting"});default:return n.day(r,{width:"wide",context:"formatting"})}},e:function(e,t,n,r){const o=e.getDay(),s=(o-r.weekStartsOn+8)%7||7;switch(t){case"e":return String(s);case"ee":return gt(s,2);case"eo":return n.ordinalNumber(s,{unit:"day"});case"eee":return n.day(o,{width:"abbreviated",context:"formatting"});case"eeeee":return n.day(o,{width:"narrow",context:"formatting"});case"eeeeee":return n.day(o,{width:"short",context:"formatting"});default:return n.day(o,{width:"wide",context:"formatting"})}},c:function(e,t,n,r){const o=e.getDay(),s=(o-r.weekStartsOn+8)%7||7;switch(t){case"c":return String(s);case"cc":return gt(s,t.length);case"co":return n.ordinalNumber(s,{unit:"day"});case"ccc":return n.day(o,{width:"abbreviated",context:"standalone"});case"ccccc":return n.day(o,{width:"narrow",context:"standalone"});case"cccccc":return n.day(o,{width:"short",context:"standalone"});default:return n.day(o,{width:"wide",context:"standalone"})}},i:function(e,t,n){const r=e.getDay(),o=r===0?7:r;switch(t){case"i":return String(o);case"ii":return gt(o,t.length);case"io":return n.ordinalNumber(o,{unit:"day"});case"iii":return n.day(r,{width:"abbreviated",context:"formatting"});case"iiiii":return n.day(r,{width:"narrow",context:"formatting"});case"iiiiii":return n.day(r,{width:"short",context:"formatting"});default:return n.day(r,{width:"wide",context:"formatting"})}},a:function(e,t,n){const o=e.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return n.dayPeriod(o,{width:"abbreviated",context:"formatting"});case"aaa":return n.dayPeriod(o,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return n.dayPeriod(o,{width:"narrow",context:"formatting"});default:return n.dayPeriod(o,{width:"wide",context:"formatting"})}},b:function(e,t,n){const r=e.getHours();let o;switch(r===12?o=xs.noon:r===0?o=xs.midnight:o=r/12>=1?"pm":"am",t){case"b":case"bb":return n.dayPeriod(o,{width:"abbreviated",context:"formatting"});case"bbb":return n.dayPeriod(o,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return n.dayPeriod(o,{width:"narrow",context:"formatting"});default:return n.dayPeriod(o,{width:"wide",context:"formatting"})}},B:function(e,t,n){const r=e.getHours();let o;switch(r>=17?o=xs.evening:r>=12?o=xs.afternoon:r>=4?o=xs.morning:o=xs.night,t){case"B":case"BB":case"BBB":return n.dayPeriod(o,{width:"abbreviated",context:"formatting"});case"BBBBB":return n.dayPeriod(o,{width:"narrow",context:"formatting"});default:return n.dayPeriod(o,{width:"wide",context:"formatting"})}},h:function(e,t,n){if(t==="ho"){let r=e.getHours()%12;return r===0&&(r=12),n.ordinalNumber(r,{unit:"hour"})}return eo.h(e,t)},H:function(e,t,n){return t==="Ho"?n.ordinalNumber(e.getHours(),{unit:"hour"}):eo.H(e,t)},K:function(e,t,n){const r=e.getHours()%12;return t==="Ko"?n.ordinalNumber(r,{unit:"hour"}):gt(r,t.length)},k:function(e,t,n){let r=e.getHours();return r===0&&(r=24),t==="ko"?n.ordinalNumber(r,{unit:"hour"}):gt(r,t.length)},m:function(e,t,n){return t==="mo"?n.ordinalNumber(e.getMinutes(),{unit:"minute"}):eo.m(e,t)},s:function(e,t,n){return t==="so"?n.ordinalNumber(e.getSeconds(),{unit:"second"}):eo.s(e,t)},S:function(e,t){return eo.S(e,t)},X:function(e,t,n){const r=e.getTimezoneOffset();if(r===0)return"Z";switch(t){case"X":return Dv(r);case"XXXX":case"XX":return Co(r);default:return Co(r,":")}},x:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"x":return Dv(r);case"xxxx":case"xx":return Co(r);default:return Co(r,":")}},O:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"O":case"OO":case"OOO":return"GMT"+Iv(r,":");default:return"GMT"+Co(r,":")}},z:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"z":case"zz":case"zzz":return"GMT"+Iv(r,":");default:return"GMT"+Co(r,":")}},t:function(e,t,n){const r=Math.trunc(+e/1e3);return gt(r,t.length)},T:function(e,t,n){return gt(+e,t.length)}};function Iv(e,t=""){const n=e>0?"-":"+",r=Math.abs(e),o=Math.trunc(r/60),s=r%60;return s===0?n+String(o):n+String(o)+t+gt(s,2)}function Dv(e,t){return e%60===0?(e>0?"-":"+")+gt(Math.abs(e)/60,2):Co(e,t)}function Co(e,t=""){const n=e>0?"-":"+",r=Math.abs(e),o=gt(Math.trunc(r/60),2),s=gt(r%60,2);return n+o+t+s}const Av=(e,t)=>{switch(e){case"P":return t.date({width:"short"});case"PP":return t.date({width:"medium"});case"PPP":return t.date({width:"long"});default:return t.date({width:"full"})}},Rv=(e,t)=>{switch(e){case"p":return t.time({width:"short"});case"pp":return t.time({width:"medium"});case"ppp":return t.time({width:"long"});default:return t.time({width:"full"})}},j6={p:Rv,P:(e,t)=>{const n=e.match(/(P+)(p+)?/)||[],r=n[1],o=n[2];if(!o)return Av(e,t);let s;switch(r){case"P":s=t.dateTime({width:"short"});break;case"PP":s=t.dateTime({width:"medium"});break;case"PPP":s=t.dateTime({width:"long"});break;default:s=t.dateTime({width:"full"});break}return s.replace("{{date}}",Av(r,t)).replace("{{time}}",Rv(o,t))}},I6=/^D+$/,D6=/^Y+$/,A6=["D","DD","YY","YYYY"];function R6(e){return I6.test(e)}function N6(e){return D6.test(e)}function $6(e,t,n){const r=L6(e,t,n);if(console.warn(r),A6.includes(e))throw new RangeError(r)}function L6(e,t,n){const r=e[0]==="Y"?"years":"days of the month";return`Use \`${e.toLowerCase()}\` instead of \`${e}\` (in \`${t}\`) for formatting ${r} to the input \`${n}\`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md`}const B6=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,_6=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,F6=/^'([^]*?)'?$/,W6=/''/g,z6=/[a-zA-Z]/;function ws(e,t,n){const r=qi(),o=n?.locale??r.locale??Qr,s=n?.firstWeekContainsDate??n?.locale?.options?.firstWeekContainsDate??r.firstWeekContainsDate??r.locale?.options?.firstWeekContainsDate??1,a=n?.weekStartsOn??n?.locale?.options?.weekStartsOn??r.weekStartsOn??r.locale?.options?.weekStartsOn??0,l=xt(e,n?.in);if(!HA(l))throw new RangeError("Invalid time value");let c=t.match(_6).map(u=>{const f=u[0];if(f==="p"||f==="P"){const h=j6[f];return h(u,o.formatLong)}return u}).join("").match(B6).map(u=>{if(u==="''")return{isToken:!1,value:"'"};const f=u[0];if(f==="'")return{isToken:!1,value:V6(u)};if(jv[f])return{isToken:!0,value:u};if(f.match(z6))throw new RangeError("Format string contains an unescaped latin alphabet character `"+f+"`");return{isToken:!1,value:u}});o.localize.preprocessor&&(c=o.localize.preprocessor(l,c));const d={firstWeekContainsDate:s,weekStartsOn:a,locale:o};return c.map(u=>{if(!u.isToken)return u.value;const f=u.value;(!n?.useAdditionalWeekYearTokens&&N6(f)||!n?.useAdditionalDayOfYearTokens&&R6(f))&&$6(f,t,String(e));const h=jv[f[0]];return h(l,f,o.localize,d)}).join("")}function V6(e){const t=e.match(F6);return t?t[1].replace(W6,"'"):e}function H6(e,t){const n=xt(e,t?.in),r=n.getFullYear(),o=n.getMonth(),s=_t(n,0);return s.setFullYear(r,o+1,0),s.setHours(0,0,0,0),s.getDate()}function U6(e,t){return xt(e,t?.in).getMonth()}function Y6(e,t){return xt(e,t?.in).getFullYear()}function q6(e,t){return+xt(e)>+xt(t)}function G6(e,t){return+xt(e)<+xt(t)}function K6(e,t,n){const[r,o]=vs(n?.in,e,t);return r.getFullYear()===o.getFullYear()&&r.getMonth()===o.getMonth()}function X6(e,t,n){const[r,o]=vs(n?.in,e,t);return r.getFullYear()===o.getFullYear()}function Z6(e,t,n){const r=xt(e,n?.in),o=r.getFullYear(),s=r.getDate(),a=_t(e,0);a.setFullYear(o,t,15),a.setHours(0,0,0,0);const l=H6(a);return r.setMonth(t,Math.min(s,l)),r}function J6(e,t,n){const r=xt(e,n?.in);return isNaN(+r)?_t(e,NaN):(r.setFullYear(t),r)}function Q6(e,t,n="long"){return new Intl.DateTimeFormat("en-US",{hour:"numeric",timeZone:e,timeZoneName:n}).format(t).split(/\s/g).slice(2).join(" ")}const eR={},Xi={};function To(e,t){try{const r=(eR[e]||=new Intl.DateTimeFormat("en-US",{timeZone:e,timeZoneName:"longOffset"}).format)(t).split("GMT")[1];return r in Xi?Xi[r]:Nv(r,r.split(":"))}catch{if(e in Xi)return Xi[e];const n=e?.match(tR);return n?Nv(e,n.slice(1)):NaN}}const tR=/([+-]\d\d):?(\d\d)?/;function Nv(e,t){const n=+(t[0]||0),r=+(t[1]||0),o=+(t[2]||0)/60;return Xi[e]=n*60+r>0?n*60+r+o:n*60-r-o}class br extends Date{constructor(...t){super(),t.length>1&&typeof t[t.length-1]=="string"&&(this.timeZone=t.pop()),this.internal=new Date,isNaN(To(this.timeZone,this))?this.setTime(NaN):t.length?typeof t[0]=="number"&&(t.length===1||t.length===2&&typeof t[1]!="number")?this.setTime(t[0]):typeof t[0]=="string"?this.setTime(+new Date(t[0])):t[0]instanceof Date?this.setTime(+t[0]):(this.setTime(+new Date(...t)),Lv(this),Tf(this)):this.setTime(Date.now())}static tz(t,...n){return n.length?new br(...n,t):new br(Date.now(),t)}withTimeZone(t){return new br(+this,t)}getTimezoneOffset(){const t=-To(this.timeZone,this);return t>0?Math.floor(t):Math.ceil(t)}setTime(t){return Date.prototype.setTime.apply(this,arguments),Tf(this),+this}[Symbol.for("constructDateFrom")](t){return new br(+new Date(t),this.timeZone)}}const $v=/^(get|set)(?!UTC)/;Object.getOwnPropertyNames(Date.prototype).forEach(e=>{if(!$v.test(e))return;const t=e.replace($v,"$1UTC");br.prototype[t]&&(e.startsWith("get")?br.prototype[e]=function(){return this.internal[t]()}:(br.prototype[e]=function(){return Date.prototype[t].apply(this.internal,arguments),nR(this),+this},br.prototype[t]=function(){return Date.prototype[t].apply(this,arguments),Tf(this),+this}))});function Tf(e){e.internal.setTime(+e),e.internal.setUTCSeconds(e.internal.getUTCSeconds()-Math.round(-To(e.timeZone,e)*60))}function nR(e){Date.prototype.setFullYear.call(e,e.internal.getUTCFullYear(),e.internal.getUTCMonth(),e.internal.getUTCDate()),Date.prototype.setHours.call(e,e.internal.getUTCHours(),e.internal.getUTCMinutes(),e.internal.getUTCSeconds(),e.internal.getUTCMilliseconds()),Lv(e)}function Lv(e){const t=To(e.timeZone,e),n=t>0?Math.floor(t):Math.ceil(t),r=new Date(+e);r.setUTCHours(r.getUTCHours()-1);const o=-new Date(+e).getTimezoneOffset(),s=-new Date(+r).getTimezoneOffset(),a=o-s,l=Date.prototype.getHours.apply(e)!==e.internal.getUTCHours();a&&l&&e.internal.setUTCMinutes(e.internal.getUTCMinutes()+a);const c=o-n;c&&Date.prototype.setUTCMinutes.call(e,Date.prototype.getUTCMinutes.call(e)+c);const d=new Date(+e);d.setUTCSeconds(0);const u=o>0?d.getSeconds():(d.getSeconds()-60)%60,f=Math.round(-(To(e.timeZone,e)*60))%60;(f||u)&&(e.internal.setUTCSeconds(e.internal.getUTCSeconds()+f),Date.prototype.setUTCSeconds.call(e,Date.prototype.getUTCSeconds.call(e)+f+u));const h=To(e.timeZone,e),m=h>0?Math.floor(h):Math.ceil(h),y=-new Date(+e).getTimezoneOffset()-m,b=m!==n,v=y-c;if(b&&v){Date.prototype.setUTCMinutes.call(e,Date.prototype.getUTCMinutes.call(e)+v);const k=To(e.timeZone,e),S=k>0?Math.floor(k):Math.ceil(k),C=m-S;C&&(e.internal.setUTCMinutes(e.internal.getUTCMinutes()+C),Date.prototype.setUTCMinutes.call(e,Date.prototype.getUTCMinutes.call(e)+C))}}class en extends br{static tz(t,...n){return n.length?new en(...n,t):new en(Date.now(),t)}toISOString(){const[t,n,r]=this.tzComponents(),o=`${t}${n}:${r}`;return this.internal.toISOString().slice(0,-1)+o}toString(){return`${this.toDateString()} ${this.toTimeString()}`}toDateString(){const[t,n,r,o]=this.internal.toUTCString().split(" ");return`${t?.slice(0,-1)} ${r} ${n} ${o}`}toTimeString(){const t=this.internal.toUTCString().split(" ")[4],[n,r,o]=this.tzComponents();return`${t} GMT${n}${r}${o} (${Q6(this.timeZone,this)})`}toLocaleString(t,n){return Date.prototype.toLocaleString.call(this,t,{...n,timeZone:n?.timeZone||this.timeZone})}toLocaleDateString(t,n){return Date.prototype.toLocaleDateString.call(this,t,{...n,timeZone:n?.timeZone||this.timeZone})}toLocaleTimeString(t,n){return Date.prototype.toLocaleTimeString.call(this,t,{...n,timeZone:n?.timeZone||this.timeZone})}tzComponents(){const t=this.getTimezoneOffset(),n=t>0?"-":"+",r=String(Math.floor(Math.abs(t)/60)).padStart(2,"0"),o=String(Math.abs(t)%60).padStart(2,"0");return[n,r,o]}withTimeZone(t){return new en(+this,t)}[Symbol.for("constructDateFrom")](t){return new en(+new Date(t),this.timeZone)}}const Bv=5,rR=4;function oR(e,t){const n=t.startOfMonth(e),r=n.getDay()>0?n.getDay():7,o=t.addDays(e,-r+1),s=t.addDays(o,Bv*7-1);return t.getMonth(e)===t.getMonth(s)?Bv:rR}function _v(e,t){const n=t.startOfMonth(e),r=n.getDay();return r===1?n:r===0?t.addDays(n,-6):t.addDays(n,-1*(r-1))}function sR(e,t){const n=_v(e,t),r=oR(e,t);return t.addDays(n,r*7-1)}const iR={lessThanXSeconds:{one:"minder dan een seconde",other:"minder dan {{count}} seconden"},xSeconds:{one:"1 seconde",other:"{{count}} seconden"},halfAMinute:"een halve minuut",lessThanXMinutes:{one:"minder dan een minuut",other:"minder dan {{count}} minuten"},xMinutes:{one:"een minuut",other:"{{count}} minuten"},aboutXHours:{one:"ongeveer 1 uur",other:"ongeveer {{count}} uur"},xHours:{one:"1 uur",other:"{{count}} uur"},xDays:{one:"1 dag",other:"{{count}} dagen"},aboutXWeeks:{one:"ongeveer 1 week",other:"ongeveer {{count}} weken"},xWeeks:{one:"1 week",other:"{{count}} weken"},aboutXMonths:{one:"ongeveer 1 maand",other:"ongeveer {{count}} maanden"},xMonths:{one:"1 maand",other:"{{count}} maanden"},aboutXYears:{one:"ongeveer 1 jaar",other:"ongeveer {{count}} jaar"},xYears:{one:"1 jaar",other:"{{count}} jaar"},overXYears:{one:"meer dan 1 jaar",other:"meer dan {{count}} jaar"},almostXYears:{one:"bijna 1 jaar",other:"bijna {{count}} jaar"}},aR=(e,t,n)=>{let r;const o=iR[e];return typeof o=="string"?r=o:t===1?r=o.one:r=o.other.replace("{{count}}",String(t)),n?.addSuffix?n.comparison&&n.comparison>0?"over "+r:r+" geleden":r},lR={full:"EEEE d MMMM y",long:"d MMMM y",medium:"d MMM y",short:"dd-MM-y"},cR={full:"HH:mm:ss zzzz",long:"HH:mm:ss z",medium:"HH:mm:ss",short:"HH:mm"},dR={full:"{{date}} 'om' {{time}}",long:"{{date}} 'om' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},uR={date:Ar({formats:lR,defaultWidth:"full"}),time:Ar({formats:cR,defaultWidth:"full"}),dateTime:Ar({formats:dR,defaultWidth:"full"})},fR={lastWeek:"'afgelopen' eeee 'om' p",yesterday:"'gisteren om' p",today:"'vandaag om' p",tomorrow:"'morgen om' p",nextWeek:"eeee 'om' p",other:"P"},pR=(e,t,n,r)=>fR[e],hR={narrow:["v.C.","n.C."],abbreviated:["v.Chr.","n.Chr."],wide:["voor Christus","na Christus"]},mR={narrow:["1","2","3","4"],abbreviated:["K1","K2","K3","K4"],wide:["1e kwartaal","2e kwartaal","3e kwartaal","4e kwartaal"]},gR={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["jan.","feb.","mrt.","apr.","mei","jun.","jul.","aug.","sep.","okt.","nov.","dec."],wide:["januari","februari","maart","april","mei","juni","juli","augustus","september","oktober","november","december"]},yR={narrow:["Z","M","D","W","D","V","Z"],short:["zo","ma","di","wo","do","vr","za"],abbreviated:["zon","maa","din","woe","don","vri","zat"],wide:["zondag","maandag","dinsdag","woensdag","donderdag","vrijdag","zaterdag"]},bR={narrow:{am:"AM",pm:"PM",midnight:"middernacht",noon:"het middaguur",morning:"'s ochtends",afternoon:"'s middags",evening:"'s avonds",night:"'s nachts"},abbreviated:{am:"AM",pm:"PM",midnight:"middernacht",noon:"het middaguur",morning:"'s ochtends",afternoon:"'s middags",evening:"'s avonds",night:"'s nachts"},wide:{am:"AM",pm:"PM",midnight:"middernacht",noon:"het middaguur",morning:"'s ochtends",afternoon:"'s middags",evening:"'s avonds",night:"'s nachts"}},vR={ordinalNumber:(e,t)=>Number(e)+"e",era:cn({values:hR,defaultWidth:"wide"}),quarter:cn({values:mR,defaultWidth:"wide",argumentCallback:e=>e-1}),month:cn({values:gR,defaultWidth:"wide"}),day:cn({values:yR,defaultWidth:"wide"}),dayPeriod:cn({values:bR,defaultWidth:"wide"})},xR=/^(\d+)e?/i,wR=/\d+/i,SR={narrow:/^([vn]\.? ?C\.?)/,abbreviated:/^([vn]\. ?Chr\.?)/,wide:/^((voor|na) Christus)/},CR={any:[/^v/,/^n/]},TR={narrow:/^[1234]/i,abbreviated:/^K[1234]/i,wide:/^[1234]e kwartaal/i},kR={any:[/1/i,/2/i,/3/i,/4/i]},ER={narrow:/^[jfmasond]/i,abbreviated:/^(jan.|feb.|mrt.|apr.|mei|jun.|jul.|aug.|sep.|okt.|nov.|dec.)/i,wide:/^(januari|februari|maart|april|mei|juni|juli|augustus|september|oktober|november|december)/i},OR={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^jan/i,/^feb/i,/^m(r|a)/i,/^apr/i,/^mei/i,/^jun/i,/^jul/i,/^aug/i,/^sep/i,/^okt/i,/^nov/i,/^dec/i]},MR={narrow:/^[zmdwv]/i,short:/^(zo|ma|di|wo|do|vr|za)/i,abbreviated:/^(zon|maa|din|woe|don|vri|zat)/i,wide:/^(zondag|maandag|dinsdag|woensdag|donderdag|vrijdag|zaterdag)/i},PR={narrow:[/^z/i,/^m/i,/^d/i,/^w/i,/^d/i,/^v/i,/^z/i],any:[/^zo/i,/^ma/i,/^di/i,/^wo/i,/^do/i,/^vr/i,/^za/i]},jR={any:/^(am|pm|middernacht|het middaguur|'s (ochtends|middags|avonds|nachts))/i},IR={any:{am:/^am/i,pm:/^pm/i,midnight:/^middernacht/i,noon:/^het middaguur/i,morning:/ochtend/i,afternoon:/middag/i,evening:/avond/i,night:/nacht/i}},DR={ordinalNumber:wf({matchPattern:xR,parsePattern:wR,valueCallback:e=>parseInt(e,10)}),era:dn({matchPatterns:SR,defaultMatchWidth:"wide",parsePatterns:CR,defaultParseWidth:"any"}),quarter:dn({matchPatterns:TR,defaultMatchWidth:"wide",parsePatterns:kR,defaultParseWidth:"any",valueCallback:e=>e+1}),month:dn({matchPatterns:ER,defaultMatchWidth:"wide",parsePatterns:OR,defaultParseWidth:"any"}),day:dn({matchPatterns:MR,defaultMatchWidth:"wide",parsePatterns:PR,defaultParseWidth:"any"}),dayPeriod:dn({matchPatterns:jR,defaultMatchWidth:"any",parsePatterns:IR,defaultParseWidth:"any"})},AR=Object.freeze(Object.defineProperty({__proto__:null,nl:{code:"nl",formatDistance:aR,formatLong:uR,formatRelative:pR,localize:vR,match:DR,options:{weekStartsOn:1,firstWeekContainsDate:4}}},Symbol.toStringTag,{value:"Module"})),RR={lessThanXSeconds:{one:"bir saniyeden az",other:"{{count}} saniyeden az"},xSeconds:{one:"1 saniye",other:"{{count}} saniye"},halfAMinute:"yarım dakika",lessThanXMinutes:{one:"bir dakikadan az",other:"{{count}} dakikadan az"},xMinutes:{one:"1 dakika",other:"{{count}} dakika"},aboutXHours:{one:"yaklaşık 1 saat",other:"yaklaşık {{count}} saat"},xHours:{one:"1 saat",other:"{{count}} saat"},xDays:{one:"1 gün",other:"{{count}} gün"},aboutXWeeks:{one:"yaklaşık 1 hafta",other:"yaklaşık {{count}} hafta"},xWeeks:{one:"1 hafta",other:"{{count}} hafta"},aboutXMonths:{one:"yaklaşık 1 ay",other:"yaklaşık {{count}} ay"},xMonths:{one:"1 ay",other:"{{count}} ay"},aboutXYears:{one:"yaklaşık 1 yıl",other:"yaklaşık {{count}} yıl"},xYears:{one:"1 yıl",other:"{{count}} yıl"},overXYears:{one:"1 yıldan fazla",other:"{{count}} yıldan fazla"},almostXYears:{one:"neredeyse 1 yıl",other:"neredeyse {{count}} yıl"}},NR=(e,t,n)=>{let r;const o=RR[e];return typeof o=="string"?r=o:t===1?r=o.one:r=o.other.replace("{{count}}",t.toString()),n?.addSuffix?n.comparison&&n.comparison>0?r+" sonra":r+" önce":r},$R={full:"d MMMM y EEEE",long:"d MMMM y",medium:"d MMM y",short:"dd.MM.yyyy"},LR={full:"HH:mm:ss zzzz",long:"HH:mm:ss z",medium:"HH:mm:ss",short:"HH:mm"},BR={full:"{{date}} 'saat' {{time}}",long:"{{date}} 'saat' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},_R={date:Ar({formats:$R,defaultWidth:"full"}),time:Ar({formats:LR,defaultWidth:"full"}),dateTime:Ar({formats:BR,defaultWidth:"full"})},FR={lastWeek:"'geçen hafta' eeee 'saat' p",yesterday:"'dün saat' p",today:"'bugün saat' p",tomorrow:"'yarın saat' p",nextWeek:"eeee 'saat' p",other:"P"},WR=(e,t,n,r)=>FR[e],zR={narrow:["MÖ","MS"],abbreviated:["MÖ","MS"],wide:["Milattan Önce","Milattan Sonra"]},VR={narrow:["1","2","3","4"],abbreviated:["1Ç","2Ç","3Ç","4Ç"],wide:["İlk çeyrek","İkinci Çeyrek","Üçüncü çeyrek","Son çeyrek"]},HR={narrow:["O","Ş","M","N","M","H","T","A","E","E","K","A"],abbreviated:["Oca","Şub","Mar","Nis","May","Haz","Tem","Ağu","Eyl","Eki","Kas","Ara"],wide:["Ocak","Şubat","Mart","Nisan","Mayıs","Haziran","Temmuz","Ağustos","Eylül","Ekim","Kasım","Aralık"]},UR={narrow:["P","P","S","Ç","P","C","C"],short:["Pz","Pt","Sa","Ça","Pe","Cu","Ct"],abbreviated:["Paz","Pzt","Sal","Çar","Per","Cum","Cts"],wide:["Pazar","Pazartesi","Salı","Çarşamba","Perşembe","Cuma","Cumartesi"]},YR={narrow:{am:"öö",pm:"ös",midnight:"gy",noon:"ö",morning:"sa",afternoon:"ös",evening:"ak",night:"ge"},abbreviated:{am:"ÖÖ",pm:"ÖS",midnight:"gece yarısı",noon:"öğle",morning:"sabah",afternoon:"öğleden sonra",evening:"akşam",night:"gece"},wide:{am:"Ö.Ö.",pm:"Ö.S.",midnight:"gece yarısı",noon:"öğle",morning:"sabah",afternoon:"öğleden sonra",evening:"akşam",night:"gece"}},qR={narrow:{am:"öö",pm:"ös",midnight:"gy",noon:"ö",morning:"sa",afternoon:"ös",evening:"ak",night:"ge"},abbreviated:{am:"ÖÖ",pm:"ÖS",midnight:"gece yarısı",noon:"öğlen",morning:"sabahleyin",afternoon:"öğleden sonra",evening:"akşamleyin",night:"geceleyin"},wide:{am:"ö.ö.",pm:"ö.s.",midnight:"gece yarısı",noon:"öğlen",morning:"sabahleyin",afternoon:"öğleden sonra",evening:"akşamleyin",night:"geceleyin"}},GR={ordinalNumber:(e,t)=>Number(e)+".",era:cn({values:zR,defaultWidth:"wide"}),quarter:cn({values:VR,defaultWidth:"wide",argumentCallback:e=>Number(e)-1}),month:cn({values:HR,defaultWidth:"wide"}),day:cn({values:UR,defaultWidth:"wide"}),dayPeriod:cn({values:YR,defaultWidth:"wide",formattingValues:qR,defaultFormattingWidth:"wide"})},KR=/^(\d+)(\.)?/i,XR=/\d+/i,ZR={narrow:/^(mö|ms)/i,abbreviated:/^(mö|ms)/i,wide:/^(milattan önce|milattan sonra)/i},JR={any:[/(^mö|^milattan önce)/i,/(^ms|^milattan sonra)/i]},QR={narrow:/^[1234]/i,abbreviated:/^[1234]ç/i,wide:/^((i|İ)lk|(i|İ)kinci|üçüncü|son) çeyrek/i},e4={any:[/1/i,/2/i,/3/i,/4/i],abbreviated:[/1ç/i,/2ç/i,/3ç/i,/4ç/i],wide:[/^(i|İ)lk çeyrek/i,/(i|İ)kinci çeyrek/i,/üçüncü çeyrek/i,/son çeyrek/i]},t4={narrow:/^[oşmnhtaek]/i,abbreviated:/^(oca|şub|mar|nis|may|haz|tem|ağu|eyl|eki|kas|ara)/i,wide:/^(ocak|şubat|mart|nisan|mayıs|haziran|temmuz|ağustos|eylül|ekim|kasım|aralık)/i},n4={narrow:[/^o/i,/^ş/i,/^m/i,/^n/i,/^m/i,/^h/i,/^t/i,/^a/i,/^e/i,/^e/i,/^k/i,/^a/i],any:[/^o/i,/^ş/i,/^mar/i,/^n/i,/^may/i,/^h/i,/^t/i,/^ağ/i,/^ey/i,/^ek/i,/^k/i,/^ar/i]},r4={narrow:/^[psçc]/i,short:/^(pz|pt|sa|ça|pe|cu|ct)/i,abbreviated:/^(paz|pzt|sal|çar|per|cum|cts)/i,wide:/^(pazar(?!tesi)|pazartesi|salı|çarşamba|perşembe|cuma(?!rtesi)|cumartesi)/i},o4={narrow:[/^p/i,/^p/i,/^s/i,/^ç/i,/^p/i,/^c/i,/^c/i],any:[/^pz/i,/^pt/i,/^sa/i,/^ça/i,/^pe/i,/^cu/i,/^ct/i],wide:[/^pazar(?!tesi)/i,/^pazartesi/i,/^salı/i,/^çarşamba/i,/^perşembe/i,/^cuma(?!rtesi)/i,/^cumartesi/i]},s4={narrow:/^(öö|ös|gy|ö|sa|ös|ak|ge)/i,any:/^(ö\.?\s?[ös]\.?|öğleden sonra|gece yarısı|öğle|(sabah|öğ|akşam|gece)(leyin))/i},i4={any:{am:/^ö\.?ö\.?/i,pm:/^ö\.?s\.?/i,midnight:/^(gy|gece yarısı)/i,noon:/^öğ/i,morning:/^sa/i,afternoon:/^öğleden sonra/i,evening:/^ak/i,night:/^ge/i}},a4={ordinalNumber:wf({matchPattern:KR,parsePattern:XR,valueCallback:function(e){return parseInt(e,10)}}),era:dn({matchPatterns:ZR,defaultMatchWidth:"wide",parsePatterns:JR,defaultParseWidth:"any"}),quarter:dn({matchPatterns:QR,defaultMatchWidth:"wide",parsePatterns:e4,defaultParseWidth:"any",valueCallback:e=>e+1}),month:dn({matchPatterns:t4,defaultMatchWidth:"wide",parsePatterns:n4,defaultParseWidth:"any"}),day:dn({matchPatterns:r4,defaultMatchWidth:"wide",parsePatterns:o4,defaultParseWidth:"any"}),dayPeriod:dn({matchPatterns:s4,defaultMatchWidth:"any",parsePatterns:i4,defaultParseWidth:"any"})},l4=Object.freeze(Object.defineProperty({__proto__:null,tr:{code:"tr",formatDistance:NR,formatLong:_R,formatRelative:WR,localize:GR,match:a4,options:{weekStartsOn:1,firstWeekContainsDate:1}}},Symbol.toStringTag,{value:"Module"})),Fv={...Qr,labels:{labelDayButton:(e,t,n,r)=>{let o;r&&typeof r.format=="function"?o=r.format.bind(r):o=(a,l)=>ws(a,l,{locale:Qr,...n});let s=o(e,"PPPP");return t.today&&(s=`Today, ${s}`),t.selected&&(s=`${s}, selected`),s},labelMonthDropdown:"Choose the Month",labelNext:"Go to the Next Month",labelPrevious:"Go to the Previous Month",labelWeekNumber:e=>`Week ${e}`,labelYearDropdown:"Choose the Year",labelGrid:(e,t,n)=>{let r;return n&&typeof n.format=="function"?r=n.format.bind(n):r=(o,s)=>ws(o,s,{locale:Qr,...t}),r(e,"LLLL yyyy")},labelGridcell:(e,t,n,r)=>{let o;r&&typeof r.format=="function"?o=r.format.bind(r):o=(a,l)=>ws(a,l,{locale:Qr,...n});let s=o(e,"PPPP");return t?.today&&(s=`Today, ${s}`),s},labelNav:"Navigation bar",labelWeekNumberHeader:"Week Number",labelWeekday:(e,t,n)=>{let r;return n&&typeof n.format=="function"?r=n.format.bind(n):r=(o,s)=>ws(o,s,{locale:Qr,...t}),r(e,"cccc")}}};class Cn{constructor(t,n){this.Date=Date,this.today=()=>this.overrides?.today?this.overrides.today():this.options.timeZone?en.tz(this.options.timeZone):new this.Date,this.newDate=(r,o,s)=>this.overrides?.newDate?this.overrides.newDate(r,o,s):this.options.timeZone?new en(r,o,s,this.options.timeZone):new Date(r,o,s),this.addDays=(r,o)=>this.overrides?.addDays?this.overrides.addDays(r,o):xv(r,o),this.addMonths=(r,o)=>this.overrides?.addMonths?this.overrides.addMonths(r,o):wv(r,o),this.addWeeks=(r,o)=>this.overrides?.addWeeks?this.overrides.addWeeks(r,o):_A(r,o),this.addYears=(r,o)=>this.overrides?.addYears?this.overrides.addYears(r,o):FA(r,o),this.differenceInCalendarDays=(r,o)=>this.overrides?.differenceInCalendarDays?this.overrides.differenceInCalendarDays(r,o):xf(r,o),this.differenceInCalendarMonths=(r,o)=>this.overrides?.differenceInCalendarMonths?this.overrides.differenceInCalendarMonths(r,o):kv(r,o),this.eachMonthOfInterval=r=>this.overrides?.eachMonthOfInterval?this.overrides.eachMonthOfInterval(r):YA(r),this.eachYearOfInterval=r=>{const o=this.overrides?.eachYearOfInterval?this.overrides.eachYearOfInterval(r):KA(r),s=new Set(o.map(l=>this.getYear(l)));if(s.size===o.length)return o;const a=[];return s.forEach(l=>{a.push(new Date(l,0,1))}),a},this.endOfBroadcastWeek=r=>this.overrides?.endOfBroadcastWeek?this.overrides.endOfBroadcastWeek(r):sR(r,this),this.endOfISOWeek=r=>this.overrides?.endOfISOWeek?this.overrides.endOfISOWeek(r):XA(r),this.endOfMonth=r=>this.overrides?.endOfMonth?this.overrides.endOfMonth(r):UA(r),this.endOfWeek=(r,o)=>this.overrides?.endOfWeek?this.overrides.endOfWeek(r,o):Mv(r,this.options),this.endOfYear=r=>this.overrides?.endOfYear?this.overrides.endOfYear(r):GA(r),this.format=(r,o,s)=>{const a=this.overrides?.format?this.overrides.format(r,o,this.options):ws(r,o,this.options);return this.options.numerals&&this.options.numerals!=="latn"?this.replaceDigits(a):a},this.getISOWeek=r=>this.overrides?.getISOWeek?this.overrides.getISOWeek(r):Sf(r),this.getMonth=(r,o)=>this.overrides?.getMonth?this.overrides.getMonth(r,this.options):U6(r,this.options),this.getYear=(r,o)=>this.overrides?.getYear?this.overrides.getYear(r,this.options):Y6(r,this.options),this.getWeek=(r,o)=>this.overrides?.getWeek?this.overrides.getWeek(r,this.options):Cf(r,this.options),this.isAfter=(r,o)=>this.overrides?.isAfter?this.overrides.isAfter(r,o):q6(r,o),this.isBefore=(r,o)=>this.overrides?.isBefore?this.overrides.isBefore(r,o):G6(r,o),this.isDate=r=>this.overrides?.isDate?this.overrides.isDate(r):Tv(r),this.isSameDay=(r,o)=>this.overrides?.isSameDay?this.overrides.isSameDay(r,o):VA(r,o),this.isSameMonth=(r,o)=>this.overrides?.isSameMonth?this.overrides.isSameMonth(r,o):K6(r,o),this.isSameYear=(r,o)=>this.overrides?.isSameYear?this.overrides.isSameYear(r,o):X6(r,o),this.max=r=>this.overrides?.max?this.overrides.max(r):WA(r),this.min=r=>this.overrides?.min?this.overrides.min(r):zA(r),this.setMonth=(r,o)=>this.overrides?.setMonth?this.overrides.setMonth(r,o):Z6(r,o),this.setYear=(r,o)=>this.overrides?.setYear?this.overrides.setYear(r,o):J6(r,o),this.startOfBroadcastWeek=(r,o)=>this.overrides?.startOfBroadcastWeek?this.overrides.startOfBroadcastWeek(r,this):_v(r,this),this.startOfDay=r=>this.overrides?.startOfDay?this.overrides.startOfDay(r):Ki(r),this.startOfISOWeek=r=>this.overrides?.startOfISOWeek?this.overrides.startOfISOWeek(r):Gi(r),this.startOfMonth=r=>this.overrides?.startOfMonth?this.overrides.startOfMonth(r):qA(r),this.startOfWeek=(r,o)=>this.overrides?.startOfWeek?this.overrides.startOfWeek(r,this.options):bs(r,this.options),this.startOfYear=r=>this.overrides?.startOfYear?this.overrides.startOfYear(r):Ov(r),this.options={locale:Fv,...t},this.overrides=n}getDigitMap(){const{numerals:t="latn"}=this.options,n=new Intl.NumberFormat("en-US",{numberingSystem:t}),r={};for(let o=0;o<10;o++)r[o.toString()]=n.format(o);return r}replaceDigits(t){const n=this.getDigitMap();return t.replace(/\d/g,r=>n[r]||r)}formatNumber(t){return this.replaceDigits(t.toString())}getMonthYearOrder(){const t=this.options.locale?.code;return t&&Cn.yearFirstLocales.has(t)?"year-first":"month-first"}formatMonthYear(t){const{locale:n,timeZone:r,numerals:o}=this.options,s=n?.code;if(s&&Cn.yearFirstLocales.has(s))try{return new Intl.DateTimeFormat(s,{month:"long",year:"numeric",timeZone:r,numberingSystem:o}).format(t)}catch{}const a=this.getMonthYearOrder()==="year-first"?"y LLLL":"LLLL y";return this.format(t,a)}}Cn.yearFirstLocales=new Set(["eu","hu","ja","ja-Hira","ja-JP","ko","ko-KR","lt","lt-LT","lv","lv-LV","mn","mn-MN","zh","zh-CN","zh-HK","zh-TW"]);const vr=new Cn;class Wv{constructor(t,n,r=vr){this.date=t,this.displayMonth=n,this.outside=!!(n&&!r.isSameMonth(t,n)),this.dateLib=r,this.isoDate=r.format(t,"yyyy-MM-dd"),this.displayMonthId=r.format(n,"yyyy-MM"),this.dateMonthId=r.format(t,"yyyy-MM")}isEqualTo(t){return this.dateLib.isSameDay(t.date,this.date)&&this.dateLib.isSameMonth(t.displayMonth,this.displayMonth)}}class c4{constructor(t,n){this.date=t,this.weeks=n}}class d4{constructor(t,n){this.days=n,this.weekNumber=t}}function u4(e){return x.createElement("button",{...e})}function f4(e){return x.createElement("span",{...e})}function p4(e){const{size:t=24,orientation:n="left",className:r}=e;return x.createElement("svg",{className:r,width:t,height:t,viewBox:"0 0 24 24"},n==="up"&&x.createElement("polygon",{points:"6.77 17 12.5 11.43 18.24 17 20 15.28 12.5 8 5 15.28"}),n==="down"&&x.createElement("polygon",{points:"6.77 8 12.5 13.57 18.24 8 20 9.72 12.5 17 5 9.72"}),n==="left"&&x.createElement("polygon",{points:"16 18.112 9.81111111 12 16 5.87733333 14.0888889 4 6 12 14.0888889 20"}),n==="right"&&x.createElement("polygon",{points:"8 18.112 14.18888889 12 8 5.87733333 9.91111111 4 18 12 9.91111111 20"}))}function h4(e){const{day:t,modifiers:n,...r}=e;return x.createElement("td",{...r})}function m4(e){const{day:t,modifiers:n,...r}=e,o=x.useRef(null);return x.useEffect(()=>{n.focused&&o.current?.focus()},[n.focused]),x.createElement("button",{ref:o,...r})}var Ie;(function(e){e.Root="root",e.Chevron="chevron",e.Day="day",e.DayButton="day_button",e.CaptionLabel="caption_label",e.Dropdowns="dropdowns",e.Dropdown="dropdown",e.DropdownRoot="dropdown_root",e.Footer="footer",e.MonthGrid="month_grid",e.MonthCaption="month_caption",e.MonthsDropdown="months_dropdown",e.Month="month",e.Months="months",e.Nav="nav",e.NextMonthButton="button_next",e.PreviousMonthButton="button_previous",e.Week="week",e.Weeks="weeks",e.Weekday="weekday",e.Weekdays="weekdays",e.WeekNumber="week_number",e.WeekNumberHeader="week_number_header",e.YearsDropdown="years_dropdown"})(Ie||(Ie={}));var Pt;(function(e){e.disabled="disabled",e.hidden="hidden",e.outside="outside",e.focused="focused",e.today="today"})(Pt||(Pt={}));var Kn;(function(e){e.range_end="range_end",e.range_middle="range_middle",e.range_start="range_start",e.selected="selected"})(Kn||(Kn={}));var Tn;(function(e){e.weeks_before_enter="weeks_before_enter",e.weeks_before_exit="weeks_before_exit",e.weeks_after_enter="weeks_after_enter",e.weeks_after_exit="weeks_after_exit",e.caption_after_enter="caption_after_enter",e.caption_after_exit="caption_after_exit",e.caption_before_enter="caption_before_enter",e.caption_before_exit="caption_before_exit"})(Tn||(Tn={}));function g4(e){const{options:t,className:n,components:r,classNames:o,...s}=e,a=[o[Ie.Dropdown],n].join(" "),l=t?.find(({value:c})=>c===s.value);return x.createElement("span",{"data-disabled":s.disabled,className:o[Ie.DropdownRoot]},x.createElement(r.Select,{className:a,...s},t?.map(({value:c,label:d,disabled:u})=>x.createElement(r.Option,{key:c,value:c,disabled:u},d))),x.createElement("span",{className:o[Ie.CaptionLabel],"aria-hidden":!0},l?.label,x.createElement(r.Chevron,{orientation:"down",size:18,className:o[Ie.Chevron]})))}function y4(e){return x.createElement("div",{...e})}function b4(e){return x.createElement("div",{...e})}function v4(e){const{calendarMonth:t,displayIndex:n,...r}=e;return x.createElement("div",{...r},e.children)}function x4(e){const{calendarMonth:t,displayIndex:n,...r}=e;return x.createElement("div",{...r})}function w4(e){return x.createElement("table",{...e})}function S4(e){return x.createElement("div",{...e})}const zv=x.createContext(void 0);function Zi(){const e=x.useContext(zv);if(e===void 0)throw new Error("useDayPicker() must be used within a custom component.");return e}function C4(e){const{components:t}=Zi();return x.createElement(t.Dropdown,{...e})}function T4(e){const{onPreviousClick:t,onNextClick:n,previousMonth:r,nextMonth:o,...s}=e,{components:a,classNames:l,labels:{labelPrevious:c,labelNext:d}}=Zi(),u=x.useCallback(h=>{o&&n?.(h)},[o,n]),f=x.useCallback(h=>{r&&t?.(h)},[r,t]);return x.createElement("nav",{...s},x.createElement(a.PreviousMonthButton,{type:"button",className:l[Ie.PreviousMonthButton],tabIndex:r?void 0:-1,"aria-disabled":r?void 0:!0,"aria-label":c(r),onClick:f},x.createElement(a.Chevron,{disabled:r?void 0:!0,className:l[Ie.Chevron],orientation:"left"})),x.createElement(a.NextMonthButton,{type:"button",className:l[Ie.NextMonthButton],tabIndex:o?void 0:-1,"aria-disabled":o?void 0:!0,"aria-label":d(o),onClick:u},x.createElement(a.Chevron,{disabled:o?void 0:!0,orientation:"right",className:l[Ie.Chevron]})))}function k4(e){const{components:t}=Zi();return x.createElement(t.Button,{...e})}function E4(e){return x.createElement("option",{...e})}function O4(e){const{components:t}=Zi();return x.createElement(t.Button,{...e})}function M4(e){const{rootRef:t,...n}=e;return x.createElement("div",{...n,ref:t})}function P4(e){return x.createElement("select",{...e})}function j4(e){const{week:t,...n}=e;return x.createElement("tr",{...n})}function I4(e){return x.createElement("th",{...e})}function D4(e){return x.createElement("thead",{"aria-hidden":!0},x.createElement("tr",{...e}))}function A4(e){const{week:t,...n}=e;return x.createElement("th",{...n})}function R4(e){return x.createElement("th",{...e})}function N4(e){return x.createElement("tbody",{...e})}function $4(e){const{components:t}=Zi();return x.createElement(t.Dropdown,{...e})}const L4=Object.freeze(Object.defineProperty({__proto__:null,Button:u4,CaptionLabel:f4,Chevron:p4,Day:h4,DayButton:m4,Dropdown:g4,DropdownNav:y4,Footer:b4,Month:v4,MonthCaption:x4,MonthGrid:w4,Months:S4,MonthsDropdown:C4,Nav:T4,NextMonthButton:k4,Option:E4,PreviousMonthButton:O4,Root:M4,Select:P4,Week:j4,WeekNumber:A4,WeekNumberHeader:R4,Weekday:I4,Weekdays:D4,Weeks:N4,YearsDropdown:$4},Symbol.toStringTag,{value:"Module"}));function Rr(e,t,n=!1,r=vr){let{from:o,to:s}=e;const{differenceInCalendarDays:a,isSameDay:l}=r;return o&&s?(a(s,o)<0&&([o,s]=[s,o]),a(t,o)>=(n?1:0)&&a(s,t)>=(n?1:0)):!n&&s?l(s,t):!n&&o?l(o,t):!1}function kf(e){return!!(e&&typeof e=="object"&&"before"in e&&"after"in e)}function Xl(e){return!!(e&&typeof e=="object"&&"from"in e)}function Ef(e){return!!(e&&typeof e=="object"&&"after"in e)}function Of(e){return!!(e&&typeof e=="object"&&"before"in e)}function Vv(e){return!!(e&&typeof e=="object"&&"dayOfWeek"in e)}function Hv(e,t){return Array.isArray(e)&&e.every(t.isDate)}function Nr(e,t,n=vr){const r=Array.isArray(t)?t:[t],{isSameDay:o,differenceInCalendarDays:s,isAfter:a}=n;return r.some(l=>{if(typeof l=="boolean")return l;if(n.isDate(l))return o(e,l);if(Hv(l,n))return l.some(c=>o(e,c));if(Xl(l))return Rr(l,e,!1,n);if(Vv(l))return Array.isArray(l.dayOfWeek)?l.dayOfWeek.includes(e.getDay()):l.dayOfWeek===e.getDay();if(kf(l)){const c=s(l.before,e),d=s(l.after,e),u=c>0,f=d<0;return a(l.before,l.after)?f&&u:u||f}return Ef(l)?s(e,l.after)>0:Of(l)?s(l.before,e)>0:typeof l=="function"?l(e):!1})}function B4(e,t,n,r,o){const{disabled:s,hidden:a,modifiers:l,showOutsideDays:c,broadcastCalendar:d,today:u=o.today()}=t,{isSameDay:f,isSameMonth:h,startOfMonth:m,isBefore:g,endOfMonth:y,isAfter:b}=o,v=n&&m(n),k=r&&y(r),S={[Pt.focused]:[],[Pt.outside]:[],[Pt.disabled]:[],[Pt.hidden]:[],[Pt.today]:[]},C={};for(const w of e){const{date:T,displayMonth:E}=w,M=!!(E&&!h(T,E)),j=!!(v&&g(T,v)),A=!!(k&&b(T,k)),L=!!(s&&Nr(T,s,o)),O=!!(a&&Nr(T,a,o))||j||A||!d&&!c&&M||d&&c===!1&&M,N=f(T,u);M&&S.outside.push(w),L&&S.disabled.push(w),O&&S.hidden.push(w),N&&S.today.push(w),l&&Object.keys(l).forEach(P=>{const R=l?.[P];R&&Nr(T,R,o)&&(C[P]?C[P].push(w):C[P]=[w])})}return w=>{const T={[Pt.focused]:!1,[Pt.disabled]:!1,[Pt.hidden]:!1,[Pt.outside]:!1,[Pt.today]:!1},E={};for(const M in S){const j=S[M];T[M]=j.some(A=>A===w)}for(const M in C)E[M]=C[M].some(j=>j===w);return{...T,...E}}}function _4(e,t,n={}){return Object.entries(e).filter(([,o])=>o===!0).reduce((o,[s])=>(n[s]?o.push(n[s]):t[Pt[s]]?o.push(t[Pt[s]]):t[Kn[s]]&&o.push(t[Kn[s]]),o),[t[Ie.Day]])}function F4(e){return{...L4,...e}}function W4(e){const t={"data-mode":e.mode??void 0,"data-required":"required"in e?e.required:void 0,"data-multiple-months":e.numberOfMonths&&e.numberOfMonths>1||void 0,"data-week-numbers":e.showWeekNumber||void 0,"data-broadcast-calendar":e.broadcastCalendar||void 0,"data-nav-layout":e.navLayout||void 0};return Object.entries(e).forEach(([n,r])=>{n.startsWith("data-")&&(t[n]=r)}),t}function z4(){const e={};for(const t in Ie)e[Ie[t]]=`rdp-${Ie[t]}`;for(const t in Pt)e[Pt[t]]=`rdp-${Pt[t]}`;for(const t in Kn)e[Kn[t]]=`rdp-${Kn[t]}`;for(const t in Tn)e[Tn[t]]=`rdp-${Tn[t]}`;return e}function Uv(e,t,n){return(n??new Cn(t)).formatMonthYear(e)}const V4=Uv;function H4(e,t,n){return(n??new Cn(t)).format(e,"d")}function U4(e,t=vr){return t.format(e,"LLLL")}function Y4(e,t,n){return(n??new Cn(t)).format(e,"cccccc")}function q4(e,t=vr){return e<10?t.formatNumber(`0${e.toLocaleString()}`):t.formatNumber(`${e.toLocaleString()}`)}function G4(){return""}function Yv(e,t=vr){return t.format(e,"yyyy")}const K4=Object.freeze(Object.defineProperty({__proto__:null,formatCaption:Uv,formatDay:H4,formatMonthCaption:V4,formatMonthDropdown:U4,formatWeekNumber:q4,formatWeekNumberHeader:G4,formatWeekdayName:Y4,formatYearCaption:Yv,formatYearDropdown:Yv},Symbol.toStringTag,{value:"Module"}));function X4(e){return e?.formatMonthCaption&&!e.formatCaption&&(e.formatCaption=e.formatMonthCaption),e?.formatYearCaption&&!e.formatYearDropdown&&(e.formatYearDropdown=e.formatYearCaption),{...K4,...e}}function Mf(e,t,n,r){let o=(r??new Cn(n)).format(e,"PPPP");return t.today&&(o=`Today, ${o}`),t.selected&&(o=`${o}, selected`),o}const Z4=Mf;function Pf(e,t,n){return(n??new Cn(t)).formatMonthYear(e)}const J4=Pf;function qv(e,t,n,r){let o=(r??new Cn(n)).format(e,"PPPP");return t?.today&&(o=`Today, ${o}`),o}function Gv(e){return"Choose the Month"}function Kv(){return""}const Q4="Go to the Next Month";function Xv(e,t){return Q4}function Zv(e){return"Go to the Previous Month"}function Jv(e,t,n){return(n??new Cn(t)).format(e,"cccc")}function Qv(e,t){return`Week ${e}`}function e1(e){return"Week Number"}function t1(e){return"Choose the Year"}const e9=Object.freeze(Object.defineProperty({__proto__:null,labelCaption:J4,labelDay:Z4,labelDayButton:Mf,labelGrid:Pf,labelGridcell:qv,labelMonthDropdown:Gv,labelNav:Kv,labelNext:Xv,labelPrevious:Zv,labelWeekNumber:Qv,labelWeekNumberHeader:e1,labelWeekday:Jv,labelYearDropdown:t1},Symbol.toStringTag,{value:"Module"})),Xn=(e,t,n)=>t||(n?typeof n=="function"?n:(...r)=>n:e);function t9(e,t){const n=t.locale?.labels??{};return{...e9,...e??{},labelDayButton:Xn(Mf,e?.labelDayButton,n.labelDayButton),labelMonthDropdown:Xn(Gv,e?.labelMonthDropdown,n.labelMonthDropdown),labelNext:Xn(Xv,e?.labelNext,n.labelNext),labelPrevious:Xn(Zv,e?.labelPrevious,n.labelPrevious),labelWeekNumber:Xn(Qv,e?.labelWeekNumber,n.labelWeekNumber),labelYearDropdown:Xn(t1,e?.labelYearDropdown,n.labelYearDropdown),labelGrid:Xn(Pf,e?.labelGrid,n.labelGrid),labelGridcell:Xn(qv,e?.labelGridcell,n.labelGridcell),labelNav:Xn(Kv,e?.labelNav,n.labelNav),labelWeekNumberHeader:Xn(e1,e?.labelWeekNumberHeader,n.labelWeekNumberHeader),labelWeekday:Xn(Jv,e?.labelWeekday,n.labelWeekday)}}function n9(e,t,n,r,o){const{startOfMonth:s,startOfYear:a,endOfYear:l,eachMonthOfInterval:c,getMonth:d}=o;return c({start:a(e),end:l(e)}).map(h=>{const m=r.formatMonthDropdown(h,o),g=d(h),y=t&&h<s(t)||n&&h>s(n)||!1;return{value:g,label:m,disabled:y}})}function r9(e,t={},n={}){let r={...t?.[Ie.Day]};return Object.entries(e).filter(([,o])=>o===!0).forEach(([o])=>{r={...r,...n?.[o]}}),r}function o9(e,t,n,r){const o=r??e.today(),s=n?e.startOfBroadcastWeek(o,e):t?e.startOfISOWeek(o):e.startOfWeek(o),a=[];for(let l=0;l<7;l++){const c=e.addDays(s,l);a.push(c)}return a}function s9(e,t,n,r,o=!1){if(!e||!t)return;const{startOfYear:s,endOfYear:a,eachYearOfInterval:l,getYear:c}=r,d=s(e),u=a(t),f=l({start:d,end:u});return o&&f.reverse(),f.map(h=>{const m=n.formatYearDropdown(h,r);return{value:c(h),label:m,disabled:!1}})}function i9(e,t={}){const{weekStartsOn:n,locale:r}=t,o=n??r?.options?.weekStartsOn??0,s=l=>{const c=typeof l=="number"||typeof l=="string"?new Date(l):l;return new en(c.getFullYear(),c.getMonth(),c.getDate(),12,0,0,e)},a=l=>{const c=s(l);return new Date(c.getFullYear(),c.getMonth(),c.getDate(),0,0,0,0)};return{today:()=>s(en.tz(e)),newDate:(l,c,d)=>new en(l,c,d,12,0,0,e),startOfDay:l=>s(l),startOfWeek:(l,c)=>{const d=s(l),u=c?.weekStartsOn??o,f=(d.getDay()-u+7)%7;return d.setDate(d.getDate()-f),d},startOfISOWeek:l=>{const c=s(l),d=(c.getDay()-1+7)%7;return c.setDate(c.getDate()-d),c},startOfMonth:l=>{const c=s(l);return c.setDate(1),c},startOfYear:l=>{const c=s(l);return c.setMonth(0,1),c},endOfWeek:(l,c)=>{const d=s(l),h=(((c?.weekStartsOn??o)+6)%7-d.getDay()+7)%7;return d.setDate(d.getDate()+h),d},endOfISOWeek:l=>{const c=s(l),d=(7-c.getDay())%7;return c.setDate(c.getDate()+d),c},endOfMonth:l=>{const c=s(l);return c.setMonth(c.getMonth()+1,0),c},endOfYear:l=>{const c=s(l);return c.setMonth(11,31),c},eachMonthOfInterval:l=>{const c=s(l.start),d=s(l.end),u=[],f=new en(c.getFullYear(),c.getMonth(),1,12,0,0,e),h=d.getFullYear()*12+d.getMonth();for(;f.getFullYear()*12+f.getMonth()<=h;)u.push(new en(f,e)),f.setMonth(f.getMonth()+1,1);return u},addDays:(l,c)=>{const d=s(l);return d.setDate(d.getDate()+c),d},addWeeks:(l,c)=>{const d=s(l);return d.setDate(d.getDate()+c*7),d},addMonths:(l,c)=>{const d=s(l);return d.setMonth(d.getMonth()+c),d},addYears:(l,c)=>{const d=s(l);return d.setFullYear(d.getFullYear()+c),d},eachYearOfInterval:l=>{const c=s(l.start),d=s(l.end),u=[],f=new en(c.getFullYear(),0,1,12,0,0,e);for(;f.getFullYear()<=d.getFullYear();)u.push(new en(f,e)),f.setFullYear(f.getFullYear()+1,0,1);return u},getWeek:(l,c)=>{const d=a(l);return Cf(d,{weekStartsOn:c?.weekStartsOn??o,firstWeekContainsDate:c?.firstWeekContainsDate??r?.options?.firstWeekContainsDate??1})},getISOWeek:l=>{const c=a(l);return Sf(c)},differenceInCalendarDays:(l,c)=>{const d=a(l),u=a(c);return xf(d,u)},differenceInCalendarMonths:(l,c)=>{const d=a(l),u=a(c);return kv(d,u)}}}const Ji=e=>e instanceof HTMLElement?e:null,jf=e=>[...e.querySelectorAll("[data-animated-month]")??[]],a9=e=>Ji(e.querySelector("[data-animated-month]")),If=e=>Ji(e.querySelector("[data-animated-caption]")),Df=e=>Ji(e.querySelector("[data-animated-weeks]")),l9=e=>Ji(e.querySelector("[data-animated-nav]")),c9=e=>Ji(e.querySelector("[data-animated-weekdays]"));function d9(e,t,{classNames:n,months:r,focused:o,dateLib:s}){const a=x.useRef(null),l=x.useRef(r),c=x.useRef(!1);x.useLayoutEffect(()=>{const d=l.current;if(l.current=r,!t||!e.current||!(e.current instanceof HTMLElement)||r.length===0||d.length===0||r.length!==d.length)return;const u=s.isSameMonth(r[0].date,d[0].date),f=s.isAfter(r[0].date,d[0].date),h=f?n[Tn.caption_after_enter]:n[Tn.caption_before_enter],m=f?n[Tn.weeks_after_enter]:n[Tn.weeks_before_enter],g=a.current,y=e.current.cloneNode(!0);if(y instanceof HTMLElement?(jf(y).forEach(S=>{if(!(S instanceof HTMLElement))return;const C=a9(S);C&&S.contains(C)&&S.removeChild(C);const w=If(S);w&&w.classList.remove(h);const T=Df(S);T&&T.classList.remove(m)}),a.current=y):a.current=null,c.current||u||o)return;const b=g instanceof HTMLElement?jf(g):[],v=jf(e.current);if(v?.every(k=>k instanceof HTMLElement)&&b&&b.every(k=>k instanceof HTMLElement)){c.current=!0,e.current.style.isolation="isolate";const k=l9(e.current);k&&(k.style.zIndex="1"),v.forEach((S,C)=>{const w=b[C];if(!w)return;S.style.position="relative",S.style.overflow="hidden";const T=If(S);T&&T.classList.add(h);const E=Df(S);E&&E.classList.add(m);const M=()=>{c.current=!1,e.current&&(e.current.style.isolation=""),k&&(k.style.zIndex=""),T&&T.classList.remove(h),E&&E.classList.remove(m),S.style.position="",S.style.overflow="",S.contains(w)&&S.removeChild(w)};w.style.pointerEvents="none",w.style.position="absolute",w.style.overflow="hidden",w.setAttribute("aria-hidden","true");const j=c9(w);j&&(j.style.opacity="0");const A=If(w);A&&(A.classList.add(f?n[Tn.caption_before_exit]:n[Tn.caption_after_exit]),A.addEventListener("animationend",M));const L=Df(w);L&&L.classList.add(f?n[Tn.weeks_before_exit]:n[Tn.weeks_after_exit]),S.insertBefore(w,S.firstChild)})}})}function u9(e,t,n,r){const o=e[0],s=e[e.length-1],{ISOWeek:a,fixedWeeks:l,broadcastCalendar:c}=n??{},{addDays:d,differenceInCalendarDays:u,differenceInCalendarMonths:f,endOfBroadcastWeek:h,endOfISOWeek:m,endOfMonth:g,endOfWeek:y,isAfter:b,startOfBroadcastWeek:v,startOfISOWeek:k,startOfWeek:S}=r,C=c?v(o,r):a?k(o):S(o),w=c?h(s):a?m(g(s)):y(g(s)),T=t&&(c?h(t):a?m(t):y(t)),E=T&&b(w,T)?T:w,M=u(E,C),j=f(s,o)+1,A=[];for(let N=0;N<=M;N++){const P=d(C,N);A.push(P)}const O=(c?35:42)*j;if(l&&A.length<O){const N=O-A.length;for(let P=0;P<N;P++){const R=d(A[A.length-1],1);A.push(R)}}return A}function f9(e){const t=[];return e.reduce((n,r)=>{const o=r.weeks.reduce((s,a)=>s.concat(a.days.slice()),t.slice());return n.concat(o.slice())},t.slice())}function p9(e,t,n,r){const{numberOfMonths:o=1}=n,s=[];for(let a=0;a<o;a++){const l=r.addMonths(e,a);if(t&&l>t)break;s.push(l)}return s}function n1(e,t,n,r){const{month:o,defaultMonth:s,today:a=r.today(),numberOfMonths:l=1}=e;let c=o||s||a;const{differenceInCalendarMonths:d,addMonths:u,startOfMonth:f}=r;if(n&&d(n,c)<l-1){const h=-1*(l-1);c=u(n,h)}return t&&d(c,t)<0&&(c=t),f(c)}function h9(e,t,n,r){const{addDays:o,endOfBroadcastWeek:s,endOfISOWeek:a,endOfMonth:l,endOfWeek:c,getISOWeek:d,getWeek:u,startOfBroadcastWeek:f,startOfISOWeek:h,startOfWeek:m}=r,g=e.reduce((y,b)=>{const v=n.broadcastCalendar?f(b,r):n.ISOWeek?h(b):m(b),k=n.broadcastCalendar?s(b):n.ISOWeek?a(l(b)):c(l(b)),S=t.filter(E=>E>=v&&E<=k),C=n.broadcastCalendar?35:42;if(n.fixedWeeks&&S.length<C){const E=t.filter(M=>{const j=C-S.length;return M>k&&M<=o(k,j)});S.push(...E)}const w=S.reduce((E,M)=>{const j=n.ISOWeek?d(M):u(M),A=E.find(O=>O.weekNumber===j),L=new Wv(M,b,r);return A?A.days.push(L):E.push(new d4(j,[L])),E},[]),T=new c4(b,w);return y.push(T),y},[]);return n.reverseMonths?g.reverse():g}function m9(e,t){let{startMonth:n,endMonth:r}=e;const{startOfYear:o,startOfDay:s,startOfMonth:a,endOfMonth:l,addYears:c,endOfYear:d,newDate:u,today:f}=t,{fromYear:h,toYear:m,fromMonth:g,toMonth:y}=e;!n&&g&&(n=g),!n&&h&&(n=t.newDate(h,0,1)),!r&&y&&(r=y),!r&&m&&(r=u(m,11,31));const b=e.captionLayout==="dropdown"||e.captionLayout==="dropdown-years";return n?n=a(n):h?n=u(h,0,1):!n&&b&&(n=o(c(e.today??f(),-100))),r?r=l(r):m?r=u(m,11,31):!r&&b&&(r=d(e.today??f())),[n&&s(n),r&&s(r)]}function g9(e,t,n,r){if(n.disableNavigation)return;const{pagedNavigation:o,numberOfMonths:s=1}=n,{startOfMonth:a,addMonths:l,differenceInCalendarMonths:c}=r,d=o?s:1,u=a(e);if(!t)return l(u,d);if(!(c(t,e)<s))return l(u,d)}function y9(e,t,n,r){if(n.disableNavigation)return;const{pagedNavigation:o,numberOfMonths:s}=n,{startOfMonth:a,addMonths:l,differenceInCalendarMonths:c}=r,d=o?s??1:1,u=a(e);if(!t)return l(u,-d);if(!(c(u,t)<=0))return l(u,-d)}function b9(e){const t=[];return e.reduce((n,r)=>n.concat(r.weeks.slice()),t.slice())}function Zl(e,t){const[n,r]=x.useState(e);return[t===void 0?n:t,r]}function v9(e,t){const[n,r]=m9(e,t),{startOfMonth:o,endOfMonth:s}=t,a=n1(e,n,r,t),[l,c]=Zl(a,e.month?a:void 0);x.useEffect(()=>{const C=n1(e,n,r,t);c(C)},[e.timeZone]);const{months:d,weeks:u,days:f,previousMonth:h,nextMonth:m}=x.useMemo(()=>{const C=p9(l,r,{numberOfMonths:e.numberOfMonths},t),w=u9(C,e.endMonth?s(e.endMonth):void 0,{ISOWeek:e.ISOWeek,fixedWeeks:e.fixedWeeks,broadcastCalendar:e.broadcastCalendar},t),T=h9(C,w,{broadcastCalendar:e.broadcastCalendar,fixedWeeks:e.fixedWeeks,ISOWeek:e.ISOWeek,reverseMonths:e.reverseMonths},t),E=b9(T),M=f9(T),j=y9(l,n,e,t),A=g9(l,r,e,t);return{months:T,weeks:E,days:M,previousMonth:j,nextMonth:A}},[t,l.getTime(),r?.getTime(),n?.getTime(),e.disableNavigation,e.broadcastCalendar,e.endMonth?.getTime(),e.fixedWeeks,e.ISOWeek,e.numberOfMonths,e.pagedNavigation,e.reverseMonths]),{disableNavigation:g,onMonthChange:y}=e,b=C=>u.some(w=>w.days.some(T=>T.isEqualTo(C))),v=C=>{if(g)return;let w=o(C);n&&w<o(n)&&(w=o(n)),r&&w>o(r)&&(w=o(r)),c(w),y?.(w)};return{months:d,weeks:u,days:f,navStart:n,navEnd:r,previousMonth:h,nextMonth:m,goToMonth:v,goToDay:C=>{b(C)||v(C.date)}}}var xr;(function(e){e[e.Today=0]="Today",e[e.Selected=1]="Selected",e[e.LastFocused=2]="LastFocused",e[e.FocusedModifier=3]="FocusedModifier"})(xr||(xr={}));function r1(e){return!e[Pt.disabled]&&!e[Pt.hidden]&&!e[Pt.outside]}function x9(e,t,n,r){let o,s=-1;for(const a of e){const l=t(a);r1(l)&&(l[Pt.focused]&&s<xr.FocusedModifier?(o=a,s=xr.FocusedModifier):r?.isEqualTo(a)&&s<xr.LastFocused?(o=a,s=xr.LastFocused):n(a.date)&&s<xr.Selected?(o=a,s=xr.Selected):l[Pt.today]&&s<xr.Today&&(o=a,s=xr.Today))}return o||(o=e.find(a=>r1(t(a)))),o}function w9(e,t,n,r,o,s,a){const{ISOWeek:l,broadcastCalendar:c}=s,{addDays:d,addMonths:u,addWeeks:f,addYears:h,endOfBroadcastWeek:m,endOfISOWeek:g,endOfWeek:y,max:b,min:v,startOfBroadcastWeek:k,startOfISOWeek:S,startOfWeek:C}=a;let T={day:d,week:f,month:u,year:h,startOfWeek:E=>c?k(E,a):l?S(E):C(E),endOfWeek:E=>c?m(E):l?g(E):y(E)}[e](n,t==="after"?1:-1);return t==="before"&&r?T=b([r,T]):t==="after"&&o&&(T=v([o,T])),T}function o1(e,t,n,r,o,s,a,l=0){if(l>365)return;const c=w9(e,t,n.date,r,o,s,a),d=!!(s.disabled&&Nr(c,s.disabled,a)),u=!!(s.hidden&&Nr(c,s.hidden,a)),f=c,h=new Wv(c,f,a);return!d&&!u?h:o1(e,t,h,r,o,s,a,l+1)}function S9(e,t,n,r,o){const{autoFocus:s}=e,[a,l]=x.useState(),c=x9(t.days,n,r||(()=>!1),a),[d,u]=x.useState(s?c:void 0);return{isFocusTarget:y=>!!c?.isEqualTo(y),setFocused:u,focused:d,blur:()=>{l(d),u(void 0)},moveFocus:(y,b)=>{if(!d)return;const v=o1(y,b,d,t.navStart,t.navEnd,e,o);v&&(e.disableNavigation&&!t.days.some(S=>S.isEqualTo(v))||(t.goToDay(v),u(v)))}}}function C9(e,t){const{selected:n,required:r,onSelect:o}=e,[s,a]=Zl(n,o?n:void 0),l=o?n:s,{isSameDay:c}=t,d=m=>l?.some(g=>c(g,m))??!1,{min:u,max:f}=e;return{selected:l,select:(m,g,y)=>{let b=[...l??[]];if(d(m)){if(l?.length===u||r&&l?.length===1)return;b=l?.filter(v=>!c(v,m))}else l?.length===f?b=[m]:b=[...b,m];return o||a(b),o?.(b,m,g,y),b},isSelected:d}}function T9(e,t,n=0,r=0,o=!1,s=vr){const{from:a,to:l}=t||{},{isSameDay:c,isAfter:d,isBefore:u}=s;let f;if(!a&&!l)f={from:e,to:n>0?void 0:e};else if(a&&!l)c(a,e)?n===0?f={from:a,to:e}:o?f={from:a,to:void 0}:f=void 0:u(e,a)?f={from:e,to:a}:f={from:a,to:e};else if(a&&l)if(c(a,e)&&c(l,e))o?f={from:a,to:l}:f=void 0;else if(c(a,e))f={from:a,to:n>0?void 0:e};else if(c(l,e))f={from:e,to:n>0?void 0:e};else if(u(e,a))f={from:e,to:l};else if(d(e,a))f={from:a,to:e};else if(d(e,l))f={from:a,to:e};else throw new Error("Invalid range");if(f?.from&&f?.to){const h=s.differenceInCalendarDays(f.to,f.from);r>0&&h>r?f={from:e,to:void 0}:n>1&&h<n&&(f={from:e,to:void 0})}return f}function k9(e,t,n=vr){const r=Array.isArray(t)?t:[t];let o=e.from;const s=n.differenceInCalendarDays(e.to,e.from),a=Math.min(s,6);for(let l=0;l<=a;l++){if(r.includes(o.getDay()))return!0;o=n.addDays(o,1)}return!1}function s1(e,t,n=vr){return Rr(e,t.from,!1,n)||Rr(e,t.to,!1,n)||Rr(t,e.from,!1,n)||Rr(t,e.to,!1,n)}function E9(e,t,n=vr){const r=Array.isArray(t)?t:[t];if(r.filter(l=>typeof l!="function").some(l=>typeof l=="boolean"?l:n.isDate(l)?Rr(e,l,!1,n):Hv(l,n)?l.some(c=>Rr(e,c,!1,n)):Xl(l)?l.from&&l.to?s1(e,{from:l.from,to:l.to},n):!1:Vv(l)?k9(e,l.dayOfWeek,n):kf(l)?n.isAfter(l.before,l.after)?s1(e,{from:n.addDays(l.after,1),to:n.addDays(l.before,-1)},n):Nr(e.from,l,n)||Nr(e.to,l,n):Ef(l)||Of(l)?Nr(e.from,l,n)||Nr(e.to,l,n):!1))return!0;const a=r.filter(l=>typeof l=="function");if(a.length){let l=e.from;const c=n.differenceInCalendarDays(e.to,e.from);for(let d=0;d<=c;d++){if(a.some(u=>u(l)))return!0;l=n.addDays(l,1)}}return!1}function O9(e,t){const{disabled:n,excludeDisabled:r,selected:o,required:s,onSelect:a}=e,[l,c]=Zl(o,a?o:void 0),d=a?o:l;return{selected:d,select:(h,m,g)=>{const{min:y,max:b}=e,v=h?T9(h,d,y,b,s,t):void 0;return r&&n&&v?.from&&v.to&&E9({from:v.from,to:v.to},n,t)&&(v.from=h,v.to=void 0),a||c(v),a?.(v,h,m,g),v},isSelected:h=>d&&Rr(d,h,!1,t)}}function M9(e,t){const{selected:n,required:r,onSelect:o}=e,[s,a]=Zl(n,o?n:void 0),l=o?n:s,{isSameDay:c}=t;return{selected:l,select:(f,h,m)=>{let g=f;return!r&&l&&l&&c(f,l)&&(g=void 0),o||a(g),o?.(g,f,h,m),g},isSelected:f=>l?c(l,f):!1}}function P9(e,t){const n=M9(e,t),r=C9(e,t),o=O9(e,t);switch(e.mode){case"single":return n;case"multiple":return r;case"range":return o;default:return}}function Ln(e,t){return e instanceof en&&e.timeZone===t?e:new en(e,t)}function Ss(e,t,n){return Ln(e,t)}function i1(e,t,n){return typeof e=="boolean"||typeof e=="function"?e:e instanceof Date?Ss(e,t):Array.isArray(e)?e.map(r=>r instanceof Date?Ss(r,t):r):Xl(e)?{...e,from:e.from?Ln(e.from,t):e.from,to:e.to?Ln(e.to,t):e.to}:kf(e)?{before:Ss(e.before,t),after:Ss(e.after,t)}:Ef(e)?{after:Ss(e.after,t)}:Of(e)?{before:Ss(e.before,t)}:e}function Af(e,t,n){return e&&(Array.isArray(e)?e.map(r=>i1(r,t)):i1(e,t))}function j9(e){let t=e;const n=t.timeZone;if(n&&(t={...e,timeZone:n},t.today&&(t.today=Ln(t.today,n)),t.month&&(t.month=Ln(t.month,n)),t.defaultMonth&&(t.defaultMonth=Ln(t.defaultMonth,n)),t.startMonth&&(t.startMonth=Ln(t.startMonth,n)),t.endMonth&&(t.endMonth=Ln(t.endMonth,n)),t.mode==="single"&&t.selected?t.selected=Ln(t.selected,n):t.mode==="multiple"&&t.selected?t.selected=t.selected?.map(ce=>Ln(ce,n)):t.mode==="range"&&t.selected&&(t.selected={from:t.selected.from?Ln(t.selected.from,n):t.selected.from,to:t.selected.to?Ln(t.selected.to,n):t.selected.to}),t.disabled!==void 0&&(t.disabled=Af(t.disabled,n)),t.hidden!==void 0&&(t.hidden=Af(t.hidden,n)),t.modifiers)){const ce={};Object.keys(t.modifiers).forEach(De=>{ce[De]=Af(t.modifiers?.[De],n)}),t.modifiers=ce}const{components:r,formatters:o,labels:s,dateLib:a,locale:l,classNames:c}=x.useMemo(()=>{const ce={...Fv,...t.locale},De=t.broadcastCalendar?1:t.weekStartsOn,Pe=t.noonSafe&&t.timeZone?i9(t.timeZone,{weekStartsOn:De,locale:ce}):void 0,Xe=t.dateLib&&Pe?{...Pe,...t.dateLib}:t.dateLib??Pe,Vt=new Cn({locale:ce,weekStartsOn:De,firstWeekContainsDate:t.firstWeekContainsDate,useAdditionalWeekYearTokens:t.useAdditionalWeekYearTokens,useAdditionalDayOfYearTokens:t.useAdditionalDayOfYearTokens,timeZone:t.timeZone,numerals:t.numerals},Xe);return{dateLib:Vt,components:F4(t.components),formatters:X4(t.formatters),labels:t9(t.labels,Vt.options),locale:ce,classNames:{...z4(),...t.classNames}}},[t.locale,t.broadcastCalendar,t.weekStartsOn,t.firstWeekContainsDate,t.useAdditionalWeekYearTokens,t.useAdditionalDayOfYearTokens,t.timeZone,t.numerals,t.dateLib,t.noonSafe,t.components,t.formatters,t.labels,t.classNames]);t.today||(t={...t,today:a.today()});const{captionLayout:d,mode:u,navLayout:f,numberOfMonths:h=1,onDayBlur:m,onDayClick:g,onDayFocus:y,onDayKeyDown:b,onDayMouseEnter:v,onDayMouseLeave:k,onNextClick:S,onPrevClick:C,showWeekNumber:w,styles:T}=t,{formatCaption:E,formatDay:M,formatMonthDropdown:j,formatWeekNumber:A,formatWeekNumberHeader:L,formatWeekdayName:O,formatYearDropdown:N}=o,P=v9(t,a),{days:R,months:$,navStart:_,navEnd:U,previousMonth:H,nextMonth:B,goToMonth:D}=P,z=B4(R,t,_,U,a),{isSelected:V,select:X,selected:G}=P9(t,a)??{},{blur:Y,focused:K,isFocusTarget:ae,moveFocus:le,setFocused:W}=S9(t,P,z,V??(()=>!1),a),{labelDayButton:ee,labelGridcell:F,labelGrid:fe,labelMonthDropdown:se,labelNav:Z,labelPrevious:Ce,labelNext:Te,labelWeekday:ke,labelWeekNumber:we,labelWeekNumberHeader:Re,labelYearDropdown:Oe}=s,ge=x.useMemo(()=>o9(a,t.ISOWeek,t.broadcastCalendar,t.today),[a,t.ISOWeek,t.broadcastCalendar,t.today]),ne=u!==void 0||g!==void 0,ie=x.useCallback(()=>{H&&(D(H),C?.(H))},[H,D,C]),Ee=x.useCallback(()=>{B&&(D(B),S?.(B))},[D,B,S]),pe=x.useCallback((ce,De)=>Pe=>{Pe.preventDefault(),Pe.stopPropagation(),W(ce),!De.disabled&&(X?.(ce.date,De,Pe),g?.(ce.date,De,Pe))},[X,g,W]),he=x.useCallback((ce,De)=>Pe=>{W(ce),y?.(ce.date,De,Pe)},[y,W]),Me=x.useCallback((ce,De)=>Pe=>{Y(),m?.(ce.date,De,Pe)},[Y,m]),We=x.useCallback((ce,De)=>Pe=>{const Xe={ArrowLeft:[Pe.shiftKey?"month":"day",t.dir==="rtl"?"after":"before"],ArrowRight:[Pe.shiftKey?"month":"day",t.dir==="rtl"?"before":"after"],ArrowDown:[Pe.shiftKey?"year":"week","after"],ArrowUp:[Pe.shiftKey?"year":"week","before"],PageUp:[Pe.shiftKey?"year":"month","before"],PageDown:[Pe.shiftKey?"year":"month","after"],Home:["startOfWeek","before"],End:["endOfWeek","after"]};if(Xe[Pe.key]){Pe.preventDefault(),Pe.stopPropagation();const[Vt,Ze]=Xe[Pe.key];le(Vt,Ze)}b?.(ce.date,De,Pe)},[le,b,t.dir]),rt=x.useCallback((ce,De)=>Pe=>{v?.(ce.date,De,Pe)},[v]),be=x.useCallback((ce,De)=>Pe=>{k?.(ce.date,De,Pe)},[k]),wt=x.useCallback(ce=>De=>{const Pe=Number(De.target.value),Xe=a.setMonth(a.startOfMonth(ce),Pe);D(Xe)},[a,D]),yt=x.useCallback(ce=>De=>{const Pe=Number(De.target.value),Xe=a.setYear(a.startOfMonth(ce),Pe);D(Xe)},[a,D]),{className:tt,style:Xt}=x.useMemo(()=>({className:[c[Ie.Root],t.className].filter(Boolean).join(" "),style:{...T?.[Ie.Root],...t.style}}),[c,t.className,t.style,T]),_n=W4(t),Jn=x.useRef(null);d9(Jn,!!t.animate,{classNames:c,months:$,focused:K,dateLib:a});const xe={dayPickerProps:t,selected:G,select:X,isSelected:V,months:$,nextMonth:B,previousMonth:H,goToMonth:D,getModifiers:z,components:r,classNames:c,styles:T,labels:s,formatters:o};return x.createElement(zv.Provider,{value:xe},x.createElement(r.Root,{rootRef:t.animate?Jn:void 0,className:tt,style:Xt,dir:t.dir,id:t.id,lang:t.lang,nonce:t.nonce,title:t.title,role:t.role,"aria-label":t["aria-label"],"aria-labelledby":t["aria-labelledby"],..._n},x.createElement(r.Months,{className:c[Ie.Months],style:T?.[Ie.Months]},!t.hideNavigation&&!f&&x.createElement(r.Nav,{"data-animated-nav":t.animate?"true":void 0,className:c[Ie.Nav],style:T?.[Ie.Nav],"aria-label":Z(),onPreviousClick:ie,onNextClick:Ee,previousMonth:H,nextMonth:B}),$.map((ce,De)=>x.createElement(r.Month,{"data-animated-month":t.animate?"true":void 0,className:c[Ie.Month],style:T?.[Ie.Month],key:De,displayIndex:De,calendarMonth:ce},f==="around"&&!t.hideNavigation&&De===0&&x.createElement(r.PreviousMonthButton,{type:"button",className:c[Ie.PreviousMonthButton],tabIndex:H?void 0:-1,"aria-disabled":H?void 0:!0,"aria-label":Ce(H),onClick:ie,"data-animated-button":t.animate?"true":void 0},x.createElement(r.Chevron,{disabled:H?void 0:!0,className:c[Ie.Chevron],orientation:t.dir==="rtl"?"right":"left"})),x.createElement(r.MonthCaption,{"data-animated-caption":t.animate?"true":void 0,className:c[Ie.MonthCaption],style:T?.[Ie.MonthCaption],calendarMonth:ce,displayIndex:De},d?.startsWith("dropdown")?x.createElement(r.DropdownNav,{className:c[Ie.Dropdowns],style:T?.[Ie.Dropdowns]},(()=>{const Pe=d==="dropdown"||d==="dropdown-months"?x.createElement(r.MonthsDropdown,{key:"month",className:c[Ie.MonthsDropdown],"aria-label":se(),classNames:c,components:r,disabled:!!t.disableNavigation,onChange:wt(ce.date),options:n9(ce.date,_,U,o,a),style:T?.[Ie.Dropdown],value:a.getMonth(ce.date)}):x.createElement("span",{key:"month"},j(ce.date,a)),Xe=d==="dropdown"||d==="dropdown-years"?x.createElement(r.YearsDropdown,{key:"year",className:c[Ie.YearsDropdown],"aria-label":Oe(a.options),classNames:c,components:r,disabled:!!t.disableNavigation,onChange:yt(ce.date),options:s9(_,U,o,a,!!t.reverseYears),style:T?.[Ie.Dropdown],value:a.getYear(ce.date)}):x.createElement("span",{key:"year"},N(ce.date,a));return a.getMonthYearOrder()==="year-first"?[Xe,Pe]:[Pe,Xe]})(),x.createElement("span",{role:"status","aria-live":"polite",style:{border:0,clip:"rect(0 0 0 0)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"absolute",width:"1px",whiteSpace:"nowrap",wordWrap:"normal"}},E(ce.date,a.options,a))):x.createElement(r.CaptionLabel,{className:c[Ie.CaptionLabel],role:"status","aria-live":"polite"},E(ce.date,a.options,a))),f==="around"&&!t.hideNavigation&&De===h-1&&x.createElement(r.NextMonthButton,{type:"button",className:c[Ie.NextMonthButton],tabIndex:B?void 0:-1,"aria-disabled":B?void 0:!0,"aria-label":Te(B),onClick:Ee,"data-animated-button":t.animate?"true":void 0},x.createElement(r.Chevron,{disabled:B?void 0:!0,className:c[Ie.Chevron],orientation:t.dir==="rtl"?"left":"right"})),De===h-1&&f==="after"&&!t.hideNavigation&&x.createElement(r.Nav,{"data-animated-nav":t.animate?"true":void 0,className:c[Ie.Nav],style:T?.[Ie.Nav],"aria-label":Z(),onPreviousClick:ie,onNextClick:Ee,previousMonth:H,nextMonth:B}),x.createElement(r.MonthGrid,{role:"grid","aria-multiselectable":u==="multiple"||u==="range","aria-label":fe(ce.date,a.options,a)||void 0,className:c[Ie.MonthGrid],style:T?.[Ie.MonthGrid]},!t.hideWeekdays&&x.createElement(r.Weekdays,{"data-animated-weekdays":t.animate?"true":void 0,className:c[Ie.Weekdays],style:T?.[Ie.Weekdays]},w&&x.createElement(r.WeekNumberHeader,{"aria-label":Re(a.options),className:c[Ie.WeekNumberHeader],style:T?.[Ie.WeekNumberHeader],scope:"col"},L()),ge.map(Pe=>x.createElement(r.Weekday,{"aria-label":ke(Pe,a.options,a),className:c[Ie.Weekday],key:String(Pe),style:T?.[Ie.Weekday],scope:"col"},O(Pe,a.options,a)))),x.createElement(r.Weeks,{"data-animated-weeks":t.animate?"true":void 0,className:c[Ie.Weeks],style:T?.[Ie.Weeks]},ce.weeks.map(Pe=>x.createElement(r.Week,{className:c[Ie.Week],key:Pe.weekNumber,style:T?.[Ie.Week],week:Pe},w&&x.createElement(r.WeekNumber,{week:Pe,style:T?.[Ie.WeekNumber],"aria-label":we(Pe.weekNumber,{locale:l}),className:c[Ie.WeekNumber],scope:"row",role:"rowheader"},A(Pe.weekNumber,a)),Pe.days.map(Xe=>{const{date:Vt}=Xe,Ze=z(Xe);if(Ze[Pt.focused]=!Ze.hidden&&!!K?.isEqualTo(Xe),Ze[Kn.selected]=V?.(Vt)||Ze.selected,Xl(G)){const{from:Zt,to:ye}=G;Ze[Kn.range_start]=!!(Zt&&ye&&a.isSameDay(Vt,Zt)),Ze[Kn.range_end]=!!(Zt&&ye&&a.isSameDay(Vt,ye)),Ze[Kn.range_middle]=Rr(G,Vt,!0,a)}const Fn=r9(Ze,T,t.modifiersStyles),no=_4(Ze,c,t.modifiersClassNames),Le=!ne&&!Ze.hidden?F(Vt,Ze,a.options,a):void 0;return x.createElement(r.Day,{key:`${Xe.isoDate}_${Xe.displayMonthId}`,day:Xe,modifiers:Ze,className:no.join(" "),style:Fn,role:"gridcell","aria-selected":Ze.selected||void 0,"aria-label":Le,"data-day":Xe.isoDate,"data-month":Xe.outside?Xe.dateMonthId:void 0,"data-selected":Ze.selected||void 0,"data-disabled":Ze.disabled||void 0,"data-hidden":Ze.hidden||void 0,"data-outside":Xe.outside||void 0,"data-focused":Ze.focused||void 0,"data-today":Ze.today||void 0},!Ze.hidden&&ne?x.createElement(r.DayButton,{className:c[Ie.DayButton],style:T?.[Ie.DayButton],type:"button",day:Xe,modifiers:Ze,disabled:!Ze.focused&&Ze.disabled||void 0,"aria-disabled":Ze.focused&&Ze.disabled||void 0,tabIndex:ae(Xe)?0:-1,"aria-label":ee(Vt,Ze,a.options,a),onClick:pe(Xe,Ze),onBlur:Me(Xe,Ze),onFocus:he(Xe,Ze),onKeyDown:We(Xe,Ze),onMouseEnter:rt(Xe,Ze),onMouseLeave:be(Xe,Ze)},M(Vt,a.options,a)):!Ze.hidden&&M(Xe.date,a.options,a))})))))))),t.footer&&x.createElement(r.Footer,{className:c[Ie.Footer],style:T?.[Ie.Footer],role:"status","aria-live":"polite"},t.footer)))}const I9=({color:e})=>p.jsx("svg",{width:"7",height:"11",viewBox:"0 0 7 11",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:p.jsx("path",{d:"M5.5 9.96346L1.82547 6.28893C1.39151 5.85497 1.39151 5.14487 1.82547 4.71091L5.5 1.03638",stroke:e,"stroke-width":"1.2","stroke-miterlimit":"10","stroke-linecap":"round","stroke-linejoin":"round"})}),D9=({color:e})=>p.jsx("svg",{width:"7",height:"11",viewBox:"0 0 7 11",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:p.jsx("path",{d:"M1.5 9.96346L5.17453 6.28893C5.60849 5.85498 5.60849 5.14487 5.17453 4.71091L1.5 1.03638",stroke:e,"stroke-width":"1.2","stroke-miterlimit":"10","stroke-linecap":"round","stroke-linejoin":"round"})}),a1=({color:e})=>p.jsx("svg",{width:"10",height:"5",viewBox:"0 0 10 5",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:p.jsx("path",{d:"M9 0.595703L5.50126 4.09444C5.08807 4.50763 4.41193 4.50763 3.99874 4.09444L0.5 0.595703",stroke:e,"stroke-miterlimit":"10","stroke-linecap":"round","stroke-linejoin":"round"})}),A9=({color:e})=>p.jsx("svg",{width:"10",height:"5",viewBox:"0 0 10 5",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:p.jsx("path",{d:"M9 4.4043L5.50126 0.90556C5.08807 0.492365 4.41193 0.492365 3.99874 0.90556L0.5 4.4043",stroke:e,"stroke-miterlimit":"10","stroke-linecap":"round","stroke-linejoin":"round"})});function l1(e){return x.useMemo(()=>Array.from({length:e},(t,n)=>{const r=String(n).padStart(2,"0");return{key:r,label:r,value:r}}),[e])}const c1=({time:e,setTime:t})=>{const n=l1(24),r=l1(60);return p.jsxs(oe,{display:"flex",gap:"1rem",paddingLeft:"2rem",children:[p.jsxs(oe,{display:"flex",flexDirection:"column",alignItems:"center",width:"6rem",gap:"1rem",children:[p.jsx(ut,{variant:"h5",color:o=>o.palette.primary.notifyActiveText,children:"HH"}),p.jsx(ys,{options:n,value:e.hh,onChange:o=>t(s=>({...s,hh:o.value}))})]}),p.jsxs(oe,{display:"flex",flexDirection:"column",alignItems:"center",width:"6rem",gap:"1rem",children:[p.jsx(ut,{variant:"h5",color:o=>o.palette.primary.notifyActiveText,children:"MM"}),p.jsx(ys,{options:r,value:e.mm,onChange:o=>t(s=>({...s,mm:o.value}))})]})]})},R9=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function d1(e){const t=e instanceof Date?e:new Date(e);return{hh:String(t.getHours()).padStart(2,"0"),mm:String(t.getMinutes()).padStart(2,"0")}}function u1(e,t){const n=e instanceof Date?e:new Date(e);return n.setHours(Number(t.hh),Number(t.mm)),n}const N9=({label:e,mode:t="single",showTimeStamp:n=!1,value:r,onChange:o,disabled:s,readOnly:a,formatString:l,error:c,errorText:d,openCalendar:u,inputProps:f,showFooter:h,minDate:m=new Date(new Date().getFullYear()-10,0,1),maxDate:g=new Date(new Date().getFullYear()+10,11,31),yearRange:y,required:b,calendarWidth:v,calendarHeight:k,calendarZoom:S,calendarSx:C,...w})=>{const T=Array.from({length:y?.to??36},(Z,Ce)=>(y?.from??2e3)+Ce),{t:E}=x.useContext(ln),M=mt(),j=x.useRef(null),A=x.useRef(null),[L,O]=x.useState(null),[N,P]=x.useState(r),[R,$]=x.useState(Qr),[_,U]=x.useState(()=>n&&r?d1(r):{hh:"00",mm:"00"}),[H,B]=x.useState(t==="range"&&r?.from?r.from:r||new Date),[D,z]=x.useState("calendar"),V=!!L,X=V?"date-picker-popover":void 0,G=Z=>{O(Z.currentTarget),P(r),n&&r&&U(d1(r))},Y=()=>{O(null),z("calendar")};x.useEffect(()=>{n&&N&&P(u1(N,_))},[_]),x.useEffect(()=>{const Z=localStorage.getItem("i18nextLng")??"en-US";PA(Z).then($)},[]);const K=Z=>{B(new Date(H.getFullYear(),Z)),z("calendar")},ae=Z=>{B(new Date(Z,H.getMonth())),z("month")},le=Z=>{if(Z)if(t==="range")h?P(Z):o?.(Z);else if(t==="multiple"){const Te=[...Array.isArray(Z)?Z:[Z]];h?P(Te):o?.(Te)}else h?P(u1(Z,_)):(o?.(Z),Y())},W=({orientation:Z,className:Ce,disabled:Te})=>p.jsx(oe,{className:Ce,sx:{opacity:Te?.5:1,pointerEvents:Te?"none":"auto"},children:{left:p.jsx(I9,{color:M.palette.primary.notifyIconColor}),right:p.jsx(D9,{color:M.palette.primary.notifyIconColor}),down:p.jsx(a1,{color:M.palette.primary.notifyIconColor}),up:p.jsx(A9,{color:M.palette.primary.notifyIconColor})}[Z]}),ee=Z=>{const{options:Ce,value:Te}=Z??{},ke=Ce?.length!==12,we=Ce?.find(Oe=>Oe?.value===Te)?.label,Re=()=>{z("year")};return p.jsxs(qe,{direction:"row",sx:{cursor:"pointer",justifyContent:"center",alignItems:"center",gap:"0.5rem"},onClick:Re,children:[p.jsx(ut,{sx:{color:M.palette.primary.notifyActiveText,fontSize:"1.7rem",fontWeight:"500"},children:we}),ke&&p.jsx(a1,{color:M.palette.primary.notifyIconColor})]})},F=()=>{const Z=Array.isArray(H)?H[0]:H;if(!(Z instanceof Date)||isNaN(Z))return null;const Ce=Z.getFullYear(),Te=Z.getMonth();return D==="month"?p.jsx(oe,{sx:{display:"grid",gridTemplateColumns:"repeat(4, 1fr)",gap:1,justifyContent:"center",mb:2,height:k??"30rem",width:v??"30rem"},children:R9.map((ke,we)=>{const Re=new Date(Ce,we,1),Oe=m&&Re<new Date(m.getFullYear(),m.getMonth(),1);return p.jsx(oe,{sx:{display:"flex",justifyContent:"center",alignItems:"center",cursor:Oe?"not-allowed":"pointer",opacity:Oe?.5:1},onClick:()=>!Oe&&K(we),children:p.jsx(oe,{sx:{p:"0.8rem 1.2rem",borderRadius:"2rem",bgcolor:we===Te&&!Oe&&M.palette.brandColor.orange,color:we===Te&&!Oe?M.palette.brandColor.white:M.palette.primary.notifyActiveText,fontSize:"1.1rem"},children:E(ke)})},ke)})}):D==="year"?p.jsx(oe,{sx:{maxHeight:k??"30rem",overflowY:"auto",pr:1},children:p.jsx(oe,{sx:{display:"grid",gridTemplateColumns:"repeat(4, 1fr)",gap:1,justifyContent:"center",mb:2,height:k??"30rem",width:v??"30rem"},children:T.map(ke=>{const we=m&&ke<m.getFullYear();return p.jsx(oe,{sx:{display:"flex",justifyContent:"center",alignItems:"center",cursor:we?"not-allowed":"pointer",opacity:we?.5:1},onClick:()=>!we&&ae(ke),children:p.jsx(oe,{sx:{p:"0.8rem 1.2rem",borderRadius:"2rem",bgcolor:ke===Ce&&!we&&M.palette.brandColor.orange,color:ke===Ce&&!we?M.palette.brandColor.white:M.palette.primary.notifyActiveText,fontSize:"1.1rem"},children:ke})},ke)})})}):null},fe=(()=>{if(!r)return"";const Z=Ce=>ws(Ce,l,{locale:R});if(t==="range"){if(r?.from&&r?.to)return`${Z(r.from)} - ${Z(r.to)}`;if(r?.from)return`${Z(r.from)} - `}return t==="multiple"&&Array.isArray(r)?r.map(Z).join(", "):Z(r)})(),se=Z=>Z instanceof Date&&!isNaN(Z.getTime());return x.useEffect(()=>{const Z=Ce=>{if(!V&&!u)return;const Te=A.current?.querySelectorAll('button, [href], input, select, textarea, [tabindex]:not([tabindex="-1"])'),ke=Array.from(Te||[]),we=ke[0],Re=ke[ke.length-1];Ce.key==="Tab"&&(Ce.shiftKey?document.activeElement===we&&(Ce.preventDefault(),Re?.focus()):document.activeElement===Re&&(Ce.preventDefault(),we?.focus())),Ce.key==="Escape"&&Y?.()};return document.addEventListener("keydown",Z),()=>document.removeEventListener("keydown",Z)},[V,u,Y]),p.jsxs(oe,{ref:j,children:[!u&&p.jsx(Ui,{label:E(e),value:fe,onClick:s?void 0:G,disabled:s,InputLabelProps:{shrink:!!r},error:c,helperText:E(d),required:b,inputProps:{readOnly:!0,tabIndex:0,style:{cursor:s?"not-allowed":"pointer"}},InputProps:{endAdornment:p.jsx(Sl,{position:"end",sx:{px:"0.5rem"},children:p.jsx(zt,{url:Ge.Calendar,style:{zIndex:"9"}})})},onKeyDown:Z=>{Z.key==="Enter"&&(Z.preventDefault(),O(Z.currentTarget))},sx:{cursor:s?"not-allowed":"pointer",opacity:s?.6:1,"& .MuiInputBase-root":{cursor:s?"not-allowed":"pointer"},...f&&!f?.showBorder&&{"& .MuiOutlinedInput-root":{borderRadius:0,"& fieldset":{borderColor:"transparent"},"&:hover fieldset":{borderColor:"transparent"},"&.Mui-focused fieldset":{borderColor:"transparent",borderWidth:"0.1rem"},"&.Mui-disabled .MuiOutlinedInput-notchedOutline":{borderColor:"transparent"}}},"& .MuiInputLabel-root, & .MuiInputLabel-shrink":{maxWidth:"85%",overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis",left:"0.5rem"}}}),p.jsx(oe,{component:u?oe:Si,id:X,open:u?!0:V,anchorEl:L,ref:A,onClose:u||h?void 0:Y,anchorOrigin:{vertical:"top",horizontal:"left"},transformOrigin:{vertical:"top",horizontal:"left"},sx:u?{width:"max-content",border:`0.1rem solid ${M.palette.primary.notifyBorderColor}`,borderRadius:"0.8rem"}:{"& .MuiPopover-paper":{backgroundColor:"transparent",borderRadius:"1rem"}},children:p.jsxs(oe,{sx:{zoom:S??"0.85",backgroundColor:M.palette.primary.notifyBackground,p:"2rem 1.5rem",boxShadow:"none",borderRadius:"1rem","& .rdp-selected .rdp-day_button":{border:"none",backgroundColor:M.palette.brandColor.orange,color:M.palette.brandColor.white},"& .rdp-weekday":{color:M.palette.primary.notifyTextColor,fontSize:"1.2rem",textTransform:"uppercase"},"& .rdp-month_grid ":{marginTop:"1.5rem"},"& .rdp-month_caption":{pl:"1rem"},"& .rdp-range_start":{backgroundImage:`linear-gradient(90deg, transparent 50%, ${M.palette.brandColor.lightOrange} 50%)`},"& .rdp-range_middle":{backgroundColor:M.palette.brandColor.lightOrange,"& .rdp-day_button":{backgroundColor:"transparent"}},"& .rdp-range_end":{backgroundImage:`linear-gradient(90deg, ${M.palette.brandColor.lightOrange} 50%, transparent 50%)`},"& .rdp-caption_label":{color:M.palette.primary.notifyActiveText,fontSize:"1.7rem",fontWeight:"500"},"& .rdp-day_button:disabled":{color:M.palette.primary.notifyTextColor}},children:[p.jsxs(qe,{flexDirection:"row",children:[F(),D==="calendar"&&p.jsx(j9,{mode:t,locale:R,selected:N||r,onSelect:u?void 0:le,month:H,onMonthChange:B,startMonth:m,endMonth:g,captionLayout:u?"label":"dropdown",hideNavigation:!!u,...w,styles:{day:{fontSize:"1.5rem",fontWeight:"300",border:"none",boxShadow:"none",outline:"none",color:M.palette.primary.notifyActiveText}},modifiersStyles:{today:{fontWeight:"bold",color:M.palette.brandColor.orange},disabled:{color:M.palette.primary.notifyBorderColor,opacity:.5,backgroundColor:"transparent",cursor:"not-allowed"}},components:{Chevron:W,Dropdown:ee},disabled:u?!0:{before:m,after:g}}),n&&p.jsx(c1,{time:_,setTime:U})]}),h&&p.jsxs(qe,{direction:"row-reverse",gap:"0.5rem",sx:{paddingTop:"1rem",borderTop:Z=>`0.1rem solid ${Z.palette.primary.notifyBorderColor}`},children:[p.jsx(Dr,{label:E("LABEL_SAVE"),styles:{variant:"filled",height:"3.2rem"},onClick:()=>{o(N),Y()},disabled:n&&(N==null||!se(new Date(N)))}),p.jsx(Dr,{label:E("LABEL_CANCEL"),styles:{variant:"outlined",height:"3.2rem"},onClick:Y})]})]})})]})},$9=e=>p.jsx(Yt,{children:p.jsx(N9,{...e})});function L9({...e}){return p.jsx(Yt,{children:p.jsx(c1,{...e})})}const B9=wn(p.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"),_9=({progress:e=0,status:t})=>{const r=Math.max(0,Math.min(e,100))/2-4,o={SUCCESS:"#2A9D8F",QUEUED:"#E9C46A",FAILED:"#E76F51"},s={SUCCESS:"rgba(42, 157, 143, 0.3)",QUEUED:"rgba(233, 196, 106, 0.3)",FAILED:"rgba(231, 111, 81, 0.3)"};return p.jsxs(oe,{sx:{height:"0.2rem",width:"100%",position:"relative",overflow:"hidden",backgroundColor:"transparent"},children:[p.jsx(oe,{sx:{position:"absolute",bottom:0,left:"50%",width:`${r}%`,height:"100%",transform:"translateX(-99%)",backgroundColor:o[t],borderTopLeftRadius:"1rem",borderBottomLeftRadius:"1rem",filter:`drop-shadow(0px 4px 10px ${s[t]})`,transition:"width 1s ease-in-out"}}),p.jsx(oe,{sx:{position:"absolute",bottom:0,left:"50%",width:`${r}%`,height:"100%",backgroundColor:o[t],borderTopRightRadius:"1rem",borderBottomRightRadius:"1rem",filter:`drop-shadow(0px 4px 10px ${s[t]})`,transition:"width 1s ease-in-out"}})]})},Rf={showToast:()=>{throw new Error("ToastProvider is not mounted")}},F9={success:e=>Rf.showToast(e,"SUCCESS"),error:e=>Rf.showToast(e,"FAILED")},W9=te(Si)(({theme:e})=>({"& .MuiPopover-paper":{backgroundColor:"transparent!important",right:"0!important",boxShadow:"none"},"& .MuiPaper-root":{pointerEvents:"auto",maxHeight:"40vh",boxShadow:"none"}})),z9=({message:e,status:t})=>{const{t:n}=x.useContext(ln),[r,o]=x.useState(0),[s,a]=x.useState(!0),[l,c]=x.useState("entering"),[d,u]=x.useState(!0);x.useEffect(()=>{let m=setInterval(()=>{o(g=>s?g>=98?(a(!1),99):g+2:g)},100);return()=>clearInterval(m)},[s]),x.useEffect(()=>{let m=null,g=null;return l==="entering"&&(m=setTimeout(()=>{c("visible"),g=setTimeout(()=>{c("exiting")},8e3)},100)),()=>{clearTimeout(m),clearTimeout(g)}},[]),x.useEffect(()=>{const m=g=>{g.detail?.logout&&u(!1)};return window.addEventListener(Ol.LOGOUT,m),()=>{window.removeEventListener(Ol.LOGOUT,m)}},[]);const f=()=>{setTimeout(()=>{c("exiting")},200)},h={entering:"translateX(100%)",visible:"translateX(-100%)",exiting:"translateX(100%)"};return p.jsx(W9,{anchorPosition:{top:118,right:0},id:"scai-toast-popover",open:d,anchorReference:"anchorPosition",disableEnforceFocus:!0,disableAutoFocus:!0,disableRestoreFocus:!0,hideBackdrop:!0,sx:{padding:"0.5rem",pointerEvents:"none",overflow:"hidden"},anchorOrigin:{vertical:"bottom",horizontal:"right"},transformOrigin:{vertical:"top",horizontal:"left"},children:p.jsx(oe,{position:"fixed",sx:{transform:h[l],opacity:l==="exiting"?0:1,transition:"transform 0.6s ease, opacity 1s ease",mb:0},children:p.jsxs(ri,{elevation:6,sx:{display:"flex",justifyContent:"space-between",filter:"drop-shadow(rgba(0, 0, 0, 0.16) 0px 1px 4px)",width:"25rem",minHeight:"4rem",borderRadius:"1rem",cursor:"default",position:"relative",border:m=>`0.1rem solid ${m.palette.primary.notifyBorderColor}!important`,backgroundColor:m=>m.palette.primary.notifyBackground,color:m=>m.palette.primary.notifyActiveText,"&:hover .close-icon":{opacity:1,color:m=>m.palette.primary.notifyActiveText,backgroundColor:m=>`${m.palette.primary.notifyBackground}!important`,border:m=>`0.1rem solid ${m.palette.primary.notifyBorderColor}!important`}},children:[p.jsx(nl,{size:"small",onClick:m=>{m.stopPropagation(),f()},className:"close-icon",sx:{position:"absolute",top:"-0.7rem",left:"-0.7rem",padding:"2px",opacity:0,transition:"opacity 0.3s ease",color:m=>m.palette.primary.notifyActiveText,backgroundColor:m=>m.palette.primary.notifyBackground,border:m=>`0.1rem solid ${m.palette.primary.notifyBorderColor}`},children:p.jsx(B9,{fontSize:"small"})}),p.jsxs(qe,{sx:{width:"100%"},direction:"column",children:[p.jsx(ut,{sx:{flexGrow:1,padding:"1.2rem 1rem 1rem 1rem",fontSize:"1.1rem",whiteSpace:"normal"},children:n(e)}),p.jsx(_9,{progress:r,status:t})]})]})})})},V9=({message:e,status:t})=>p.jsx(Yt,{children:p.jsx(z9,{message:e,status:t})}),H9=({children:e})=>{const[t,n]=x.useState(null),r=x.useCallback((o,s)=>{n({message:o,status:s,key:Date.now()})},[]);return Rf.showToast=r,p.jsxs(p.Fragment,{children:[e,t&&p.jsx(V9,{message:t.message,status:t.status},t.key)]})},U9=Br`
|
|
247
|
-
0% {background-position: 0 0,100% 0 ,100% 100%,0 100%}
|
|
248
|
-
33% {background-position: 0 0,100% 0 ,100% 100%,0 100%; width:60px; height: 60px}
|
|
249
|
-
66% {background-position: 100% 0,100% 100%,0 100%,0 0 ; width:60px; height: 60px}
|
|
250
|
-
100% {background-position: 100% 0,100% 100%,0 100%,0 0 }
|
|
251
|
-
`;function Y9(){return p.jsx(gl,{sx:{backdropFilter:"blur(2px)",backgroundColor:"transparent",opacity:1,zIndex:e=>e.zIndex.drawer+101},open:!0,children:p.jsx(oe,{sx:{width:"40px",height:"40px","--c":"no-repeat linear-gradient(#E94F1C 0 0)",background:"var(--c), var(--c), var(--c), var(--c)",backgroundSize:"21px 21px",animation:`${U9} 1.5s infinite cubic-bezier(0.3,1,0,1)`}})})}const Jl=({type:e})=>{const r=mt()?.mode==="dark"?{bgcolor:"grey.800"}:{};return{grid:p.jsxs(oe,{sx:{borderRadius:2,overflow:"hidden"},children:[p.jsx(fr,{variant:"text",width:"100%",height:60,sx:r}),Array.from({length:10}).map((s,a)=>p.jsx(oe,{sx:{display:"flex",alignItems:"center",padding:"0.5rem",gap:"3rem"},children:Array.from({length:5}).map((l,c)=>p.jsx(oe,{sx:{flex:1},children:p.jsx(fr,{variant:"text",height:45,sx:r})},c))},a))]}),toolbar:p.jsx(p.Fragment,{children:p.jsxs(qe,{direction:"row",justifyContent:"space-between",sx:{display:"flex",gap:"1rem"},children:[p.jsxs(qe,{direction:"row",gap:"1rem",children:[p.jsx(fr,{variant:"text",width:"10.2rem",height:"5rem",sx:r}),p.jsx(fr,{variant:"text",width:"3.5rem",height:"5rem",sx:r}),p.jsx(fr,{variant:"text",width:"15.2rem",height:"5rem",sx:r})]}),p.jsxs(qe,{direction:"row",gap:"1rem",children:[p.jsx(fr,{variant:"text",width:"10.2rem",height:"5rem",sx:r}),p.jsx(fr,{variant:"text",width:"3.5rem",height:"5rem",sx:r}),p.jsx(fr,{variant:"text",width:"3.5rem",height:"5rem",sx:r})]})]})}),cell:p.jsx(p.Fragment,{children:p.jsx(fr,{variant:"text",width:"7rem",height:"3rem",sx:r})})}[e]};function q9({...e}){return p.jsx(Yt,{children:p.jsx(Jl,{...e})})}const Nf=x.createContext(null),f1=x.createContext(null);function p1({children:e}){const[t,n]=x.useReducer(G9,K9);return p.jsx(Nf.Provider,{value:t,children:p.jsx(f1.Provider,{value:n,children:e})})}function G9(e,t){switch(t.type){case Ve.LOADING:return{...e,loading:t.loading};case Ve.SUCCESS:return{...e,data:t.data?.sort((n,r)=>new Date(r.createdAt)-new Date(n.createdAt))};case Ve.MARK_ALL_AS_READ:return{...e,isMarkAllAsRead:t.isMarkAllAsRead};case Ve.SET_ACTIVE_TAB:return{...e,activeTab:t.activeTab};case Ve.SET_MODE:return{...e,mode:t.mode};case Ve.ERROR:return{...e,error:t.error};default:throw new Error(`${yr.UNHANDLED}: ${t}`)}}const K9={loading:!1,data:[],error:"",isMarkAllAsRead:{count:0,boo:!1},mode:!1,activeTab:0},h1=({parentProps:e,childProps:t})=>{const n=mt();return p.jsxs(qe,{sx:{background:n.palette.primary.notifyBackground,border:`0.1rem solid ${n.palette.primary.notifyBorderColor}`,borderRadius:"1rem",position:"relative",overflow:"hidden"},children:[p.jsx(qe,{direction:"row",justifyContent:"space-between",alignItems:"center",sx:{maxHeight:"10rem",p:"1.5rem",cursor:"pointer",zIndex:4},onClick:t.toggleExpand,children:e.content}),p.jsx(Jr.div,{layout:!0,initial:{opacity:0,maxHeight:0},animate:{opacity:t.isExpanded?1:0,maxHeight:t.isExpanded?"50rem":0},transition:{duration:.5,ease:"easeInOut"},style:{background:n.palette.primary.notifyBackground,overflow:"hidden",display:"flex",flexDirection:"column",width:"100%"},children:p.jsx(oe,{sx:{p:"1rem"},children:t.content})})]})};h1.propTypes={parentProps:i.object.isRequired,childProps:i.object.isRequired};const m1=({accordionProps:e})=>p.jsx(Yt,{children:p.jsx(p1,{children:p.jsx(h1,{...e})})});m1.propTypes={accordionProps:i.object.isRequired};function $f({children:e,handleClose:t,open:n,isMainDialog:r}){return p.jsx(Nd,{open:n,onClose:t,scroll:r?"paper":void 0,fullWidth:!r,maxWidth:r?void 0:"md",PaperProps:{sx:r?{position:"fixed",top:30,right:30,m:0,width:400,height:450,display:"flex",flexDirection:"column",borderRadius:2,boxShadow:6,backgroundColor:o=>o.palette.primary.notifyBackground}:{minHeight:250,maxHeight:500,borderRadius:"1.5rem",boxShadow:6,backgroundColor:o=>o.palette.primary.appBackground}},children:e})}function X9({children:e,...t}){return p.jsx(Yt,{children:p.jsx($f,{...t,children:e})})}const Z9=({rightChild:e,leftChild:t,isDrawerMerged:n,isDrawerOpen:r,drawerTitle:o,showExpand:s,onCloseClick:a,onMergeClick:l,onExpandClick:c,isDrawerExpanded:d,styles:u,showMerge:f,isCloseVisible:h=!0})=>{const m=mt();return p.jsx(oe,{sx:{position:"relative",overflow:"hidden"},children:p.jsxs(bi,{container:!0,sx:{height:"100%"},children:[p.jsx(bi,{item:!0,sx:{width:n?u?.drawerWidth?`calc(${"100%"-u?.drawerWidth})`:"75%":"100%",position:"relative",zIndex:3,height:"calc(100vh - 7rem)",p:"0rem 1.5rem",overflow:"auto"},children:t}),r&&!n&&p.jsx(p.Fragment,{children:p.jsx(oe,{onClick:a,sx:{position:"fixed",top:0,left:0,width:"100%",height:"100%",backgroundColor:"#07080B80",backdropFilter:"blur(3px)",zIndex:3,transition:"opacity 0.3s ease-in-out"}})}),e&&p.jsxs(bi,{item:!0,sx:{width:d?"90%":u?.drawerWidth||"25%",position:n?"relative":"absolute",top:0,right:0,height:"calc(100vh - 7rem)",backgroundColor:m.palette.primary.notifyBackground,transform:r?"translateX(0)":"translateX(100%)",transition:"transform 0.4s ease-in-out , width 0.4s ease-in-out",zIndex:4,borderLeft:`0.1rem solid ${m.palette.primary.notifyBorderColor}`,display:"flex",flexDirection:"column"},children:[p.jsxs(qe,{direction:"row",alignItems:"center",sx:{width:"100%",flexShrink:0,paddingBottom:"0.8rem",px:2,pt:"0.8rem",borderBottom:g=>`0.1rem solid ${g.palette.primary.notifyBorderColor}`},children:[!d&&f&&p.jsxs(p.Fragment,{children:[p.jsx(oe,{component:"img",src:Ge.Merge,sx:{display:"flex",justifyContent:"center",alignItems:"center",cursor:"pointer"},onClick:l}),p.jsx(ns,{orientation:"vertical",flexItem:!0,sx:{mx:"1rem",height:"auto!important",borderColor:m.palette.primary.notifyBorderColor}})]}),p.jsxs(qe,{direction:"row",justifyContent:"space-between",alignItems:"center",flexGrow:1,children:[p.jsxs(qe,{direction:"row",gap:"0.5rem",alignItems:"center",sx:{cursor:"pointer"},children:[h&&p.jsx(oe,{onClick:a,children:p.jsx(zt,{url:Ge.CrossLight})}),p.jsx(ut,{sx:{fontSize:"1.2rem",color:m.palette.primary.notifyTextColor},children:o})]}),p.jsx(qe,{direction:"row",gap:"0.5rem",alignItems:"center",children:s&&p.jsx(oe,{onClick:c,sx:{cursor:"pointer"},children:p.jsx(oe,{component:"img",src:d?Ge.Collapse:Ge.Expand})})})]})]}),p.jsx(oe,{sx:{scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"},overflow:"auto",px:2},children:e})]})]})})},g1=({layoutChildren:e,layoutProps:t})=>p.jsx(Yt,{children:p.jsx(Z9,{...e,...t})});g1.propTypes={layoutChildren:i.object.isRequired,layoutProps:i.object.isRequired};const Lf=({list:e,handleLinkClick:t})=>{const n=mt(),{t:r}=x.useContext(ln),o=({list:s})=>s?.sort((a,l)=>a.order-l.order)?.map((a,l)=>a?.link?p.jsx(go,{component:"h3",sx:{fontSize:"1rem",cursor:"pointer",color:l===s?.length-1?n.palette.brandColor.orange:n.palette.primary.notifyTextColor},href:a?.link,underline:"hover",onClick:()=>t(a),children:r(a?.title)},l):p.jsx(ut,{component:"h3",sx:{fontSize:"1rem",color:l===s?.length-1?n.palette.brandColor.orange:n.palette.primary.notifyTextColor},children:r(a?.title)},l));return p.jsx(og,{separator:p.jsx(zt,{url:Ge.ArrowRight}),children:o({list:e})})};Lf.propTypes={list:i.array.isRequired,handleLinkClick:i.func};function J9({...e}){return p.jsx(Yt,{children:p.jsx(Lf,{...e})})}const y1=({breadcrumbProps:e,switchProps:t,filterComponentProps:n,metaDataProps:r})=>{const o=mt(),{t:s}=x.useContext(ln),a=n?.filterBtnProps?.disabled;return p.jsxs(p.Fragment,{children:[p.jsxs(qe,{sx:{background:o.palette.primary.notifyBackground,borderBottom:`0.1rem solid ${o.palette.primary.notifyBorderColor}`,height:"3rem",p:"0px 1.5rem 0 1.5rem",zIndex:4,position:"relative"},direction:"row",justifyContent:"space-between",alignItems:"center",children:[p.jsx(Lf,{...e}),p.jsxs(qe,{direction:"row",gap:"1rem",alignItems:"center",children:[r,t&&p.jsx(yv,{...t}),n?.filterBtnProps&&p.jsxs(qe,{direction:"row",children:[p.jsx(ns,{orientation:"vertical",flexItem:!0,sx:{mx:"1rem",height:"2rem!important",opacity:"1!important",borderColor:o.palette.primary.notifyBorderColor}}),p.jsxs(qe,{direction:"row",alignItems:"center",gap:"0.5rem",onClick:n?.filterBtnProps?.onFilterClick,sx:{opacity:a?.5:1,cursor:a?"not-allowed":"pointer"},children:[p.jsx(zt,{url:Ge.Filter}),p.jsx(ut,{sx:{fontSize:"1.1rem",color:o.palette.primary.notifyActiveText},children:s(n?.filterBtnProps?.label)})]})]})]})]}),p.jsx(Jr.div,{layout:!0,initial:{height:"0rem"},animate:{height:n?.filterBtnProps?.filterContainerVisible?"5rem":"0rem",opacity:n?.filterBtnProps?.filterContainerVisible?1:0},transition:{duration:.5,ease:"easeInOut"},style:{background:o.palette.primary.notifyBackground,borderBottom:`0.1rem solid ${o.palette.primary.notifyBorderColor}`,padding:"0px 5.5rem 0 1.5rem",position:"relative",alignItems:"center",display:"flex",overflow:"hidden",width:n?.filterContainerProps?.isSideDrawerOpen?"75%":"100%"},children:p.jsxs(qe,{sx:{background:o.palette.primary.appBackground,height:"3.8rem",p:"0 2rem",width:"100%",borderRadius:"0.7rem",overflow:"visible"},direction:"row",alignItems:"center",children:[p.jsxs(ut,{sx:{fontSize:"1.2rem",fontWeight:"500",color:o.palette.primary.notifyActiveText},children:[n?.labels?.description||s("Filters")," :"]}),p.jsx(oe,{sx:{overflowX:"auto",overflowY:"visible",whiteSpace:"nowrap",scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"},margin:"0 1rem",padding:"0.5rem 0",flexGrow:1},children:p.jsx(qe,{direction:"row",gap:"1.2rem",sx:{overflow:"visible"},children:n?.filterItems?.map((l,c)=>p.jsx(p.Fragment,{children:p.jsxs(oe,{sx:{position:"relative",overflow:"visible",border:`0.1rem solid ${o.palette.primary.notifyBorderColor}`,background:o.palette.primary.notifyBackground,borderRadius:"0.6rem",padding:"0.3rem 1.1rem",display:"inline-block"},children:[p.jsx(oe,{component:"img",src:Ge.FilterClose,sx:{position:"absolute",top:"-0.4rem",right:"-0.6rem",cursor:"pointer"},onClick:()=>n?.onFilterChipClose(l)}),p.jsx(ut,{sx:{fontSize:"1rem",color:o.palette.primary.notifyTextColor},children:l?.filterLabel})]},c)}))})}),p.jsx(oe,{component:ut,sx:{fontSize:"1.1rem",fontWeight:"500",textDecoration:"underline",color:o.palette.brandColor.red,cursor:"pointer"},onClick:n?.filterContainerProps?.onClearClick,children:n?.labels?.button||s("Clear")})]})})]})};y1.propTypes={breadcrumbProps:i.object.isRequired,switchProps:i.object};function b1({headerProps:e}){return p.jsx(Yt,{children:p.jsx(y1,{...e})})}b1.propTypes={headerProps:i.object.isRequired};function Q9(e){return"children"in e&&Array.isArray(e.children)}const eN=120,tN=40,nN=1/0;function v1(e,t,n){return Math.max(t,Math.min(n,e))}function rN(e,t){switch(t.type){case"RESIZE":{const n=e.colMap[t.id];if(!n)return e;const r=v1(n.width+t.delta,n.minWidth,n.maxWidth);return r===n.width?e:{...e,colMap:{...e.colMap,[t.id]:{...n,width:r}}}}case"SET_WIDTH":{const n=e.colMap[t.id];if(!n)return e;const r=v1(t.width,n.minWidth,n.maxWidth);return{...e,colMap:{...e.colMap,[t.id]:{...n,width:r}}}}case"PIN":{const n=e.colMap[t.id];return!n||n.pinned===t.side?e:{...e,colMap:{...e.colMap,[t.id]:{...n,pinned:t.side}}}}case"TOGGLE_HIDDEN":{const n=e.colMap[t.id];return n?{...e,colMap:{...e.colMap,[t.id]:{...n,hidden:!n.hidden}}}:e}case"SHOW_ALL":{const n={...e.colMap};for(const r of Object.keys(n)){const o=n[r];o?.hidden&&(n[r]={...o,hidden:!1})}return{...e,colMap:n}}case"MOVE_BEFORE":{const{sourceId:n,targetId:r}=t,o=[...e.colOrder],s=o.indexOf(n),a=o.indexOf(r);if(s===-1||a===-1||s===a)return e;o.splice(s,1);const l=o.indexOf(r);return o.splice(l,0,n),{...e,colOrder:o}}case"MOVE_LAST":{const n=[...e.colOrder],r=n.indexOf(t.sourceId);return r===-1||r===n.length-1?e:(n.splice(r,1),n.push(t.sourceId),{...e,colOrder:n})}case"TOGGLE_SORT":{const{sort:n}=e;let r="asc";if(n.columnId===t.id)if(n.direction==="asc")r="desc";else return{...e,sort:{columnId:null,direction:"asc"}};return{...e,sort:{columnId:t.id,direction:r}}}case"RESET":return t.initial;default:return e}}function x1(e){const t=[],n=[];return e.forEach((r,o)=>{Q9(r)?(n.push(r),r.children.forEach(s=>{t.push({...s,groupId:r.id,defIndex:o})})):t.push({...r,groupId:null,defIndex:o})}),{leaves:t,groups:n}}function oN(e){var t,n,r,o,s;const{leaves:a,groups:l}=x1(e),c={},d=[];for(const u of a)d.push(u.id),c[u.id]={width:(t=u.width)!=null?t:eN,minWidth:(n=u.minWidth)!=null?n:tN,maxWidth:(r=u.maxWidth)!=null?r:nN,pinned:(o=u.pinned)!=null?o:null,hidden:(s=u.hidden)!=null?s:!1};return{internal:{colMap:c,colOrder:d,sort:{columnId:null,direction:"asc"}},leaves:a,groups:l}}function sN(e){const{initial:t}=x.useMemo(()=>({initial:oN(e).internal}),[]),{leaves:n,groups:r}=x.useMemo(()=>x1(e),[e]),[o,s]=x.useReducer(rN,t),a=x.useMemo(()=>o.colOrder.flatMap(j=>{var A,L,O,N,P;const R=n.find(U=>U.id===j),$=o.colMap[j];return!R||!$?[]:[{id:R.id,label:R.label,field:R.field,accessor:R.accessor,renderCell:R.renderCell,deferRender:R.deferRender,renderHeader:R.renderHeader,cellStyle:R.cellStyle,headerStyle:R.headerStyle,align:(A=R.align)!=null?A:"left",sortable:(L=R.sortable)!=null?L:!0,resizable:(O=R.resizable)!=null?O:!0,draggable:(N=R.draggable)!=null?N:!0,hideable:(P=R.hideable)!=null?P:!0,groupId:R.groupId,defIndex:R.defIndex,width:$.width,minWidth:$.minWidth,maxWidth:$.maxWidth,pinned:$.pinned,hidden:$.hidden}]}),[o.colOrder,o.colMap,n]),l=x.useMemo(()=>a.filter(j=>!j.hidden),[a]),c=x.useMemo(()=>l.filter(j=>j.pinned==="left"),[l]),d=x.useMemo(()=>l.filter(j=>j.pinned==="right"),[l]),u=x.useMemo(()=>l.filter(j=>!j.pinned),[l]),f=x.useMemo(()=>c.reduce((j,A)=>j+A.width,0),[c]),h=x.useMemo(()=>d.reduce((j,A)=>j+A.width,0),[d]),m=x.useMemo(()=>u.reduce((j,A)=>j+A.width,0),[u]),g=x.useCallback((j,A)=>s({type:"RESIZE",id:j,delta:A}),[]),y=x.useCallback((j,A)=>s({type:"SET_WIDTH",id:j,width:A}),[]),b=x.useCallback((j,A)=>s({type:"PIN",id:j,side:A}),[]),v=x.useCallback(j=>s({type:"TOGGLE_HIDDEN",id:j}),[]),k=x.useCallback(()=>s({type:"SHOW_ALL"}),[]),S=x.useCallback((j,A)=>s({type:"MOVE_BEFORE",sourceId:j,targetId:A}),[]),C=x.useCallback(j=>s({type:"MOVE_LAST",sourceId:j}),[]),w=x.useCallback(j=>s({type:"TOGGLE_SORT",id:j}),[]),T=x.useCallback(()=>s({type:"RESET",initial:t}),[t]);return{...{orderedColumns:a,visibleColumns:l,pinnedLeftColumns:c,pinnedRightColumns:d,scrollableColumns:u,pinnedLeftWidth:f,pinnedRightWidth:h,scrollableWidth:m,sortState:o.sort,groups:r,hasGroups:r.length>0},...{resizeColumn:g,setColumnWidth:y,pinColumn:b,toggleColumnVisibility:v,showAllColumns:k,moveColumnBefore:S,moveColumnToEnd:C,toggleSort:w,resetColumns:T}}}const w1=16,S1=1e3;function iN(e,t,n,r){if(e===0||r<=0)return{startIndex:0,endIndex:-1,totalHeight:e*t,offsetY:0};const o=e*t,s=Math.floor(n/t),a=Math.max(0,s-w1),l=Math.ceil(r/t),c=Math.min(e-1,s+l+w1);return{startIndex:a,endIndex:c,totalHeight:o,offsetY:a*t}}function aN(e,t,n,r){var o,s,a;const l=e.length;if(l===0)return{startIndex:0,endIndex:-1};const c=Math.max(0,n-S1),d=n+r+S1;let u=0,f=l-1;for(;u<f;){const g=u+f>>>1;((o=e[g])!=null?o:0)+((s=t[g])!=null?s:0)<=c?u=g+1:f=g}const h=u;let m=h;for(;m<l-1&&((a=e[m+1])!=null?a:0)<d;)m++;return{startIndex:h,endIndex:Math.min(l-1,m)}}function lN(e){var t,n;const r=new Array(e.length);let o=0;for(let s=0;s<e.length;s++)r[s]=o,o+=(n=(t=e[s])==null?void 0:t.width)!=null?n:0;return r}function cN({onResize:e,onResizeEnd:t,getCurrentWidth:n}){const r=x.useRef(0),o=x.useRef("");return{startResize:x.useCallback((a,l)=>{a.preventDefault(),a.stopPropagation(),r.current=a.clientX,o.current=l;const c=u=>{const f=u.clientX-r.current;r.current=u.clientX,e(o.current,f)},d=()=>{window.removeEventListener("mousemove",c),window.removeEventListener("mouseup",d),document.body.style.cursor="",document.body.style.userSelect="",t?.(o.current,n(o.current))};document.body.style.cursor="col-resize",document.body.style.userSelect="none",window.addEventListener("mousemove",c),window.addEventListener("mouseup",d)},[e,t,n])}}const C1=4,T1={draggingId:null,overTargetId:null,insertBefore:!0};function dN({onMoveColumnBefore:e,onMoveColumnToEnd:t,columns:n,getColumnViewportBounds:r}){const[o,s]=x.useState(T1),a=x.useRef(n);a.current=n;const l=x.useRef(r);l.current=r;const c=x.useRef(null),d=x.useRef(!1),u=x.useRef(0),f=x.useCallback(b=>{c.current=b},[]);x.useLayoutEffect(()=>{o.draggingId&&c.current&&(c.current.style.left=`${u.current}px`)},[o.draggingId]);const h=x.useCallback(b=>{var v,k;const S=a.current,C=S.findIndex(A=>A.id===b);if(C===-1)return{ids:new Set([b]),afterId:null};const w=S[C];let T=C,E=C;for(let A=C-1;A>=0;A--){const L=S[A];if(L.pinned!==w.pinned||L.groupId!==w.groupId)break;T=A}for(let A=C+1;A<S.length;A++){const L=S[A];if(L.pinned!==w.pinned||L.groupId!==w.groupId)break;E=A}const M=new Set(S.slice(T,E+1).map(A=>A.id)),j=(k=(v=S[E+1])==null?void 0:v.id)!=null?k:null;return{ids:M,afterId:j}},[]),m=x.useCallback((b,v)=>{var k,S,C;const{ids:w,afterId:T}=h(v),E=l.current,M=a.current,j=[];for(const N of w){if(N===v)continue;const P=E(N);if(!P)continue;const R=M.find($=>$.id===N);j.push({id:N,left:P.left,right:P.right,mid:(P.left+P.right)/2,draggable:(k=R?.draggable)!=null?k:!1})}j.sort((N,P)=>N.left-P.left);let A=null;for(const N of j){if(b<=N.mid)return N.draggable?{id:N.id,afterId:T,highlightId:N.id,insertBefore:!0}:{id:N.id,afterId:T,highlightId:(S=A?.id)!=null?S:null,insertBefore:!1};N.draggable&&(A=N)}let L=null;for(let N=j.length-1;N>=0;N--)if(j[N].draggable){L=j[N];break}return j[j.length-1]?{id:null,afterId:T,highlightId:(C=L?.id)!=null?C:null,insertBefore:!1}:{id:null,afterId:T,highlightId:null,insertBefore:!0}},[h]),g=x.useCallback(b=>({onPointerDown:v=>{if(v.button!==0)return;v.preventDefault();const k=v.clientX,S=v.clientY;let C=!1,w=0,T=0,E=null,M=null,j=!0;const A=()=>{if(!E)return;const N=E;E=null;const{highlightId:P,insertBefore:R}=m(N.clientX,b);c.current&&(c.current.style.left=`${N.clientX-w}px`),(P!==M||R!==j)&&(M=P,j=R,s($=>$.overTargetId===P&&$.insertBefore===R?$:{...$,overTargetId:P,insertBefore:R}))},L=N=>{if(!C){if(Math.abs(N.clientX-k)<C1&&Math.abs(N.clientY-S)<C1)return;C=!0;const P=l.current(b);P&&(w=k-P.left),u.current=k-w;const{highlightId:R,insertBefore:$}=m(k,b);M=R,j=$,s({draggingId:b,overTargetId:R,insertBefore:$}),document.body.style.cursor="grabbing",document.body.style.userSelect="none";return}E=N,T||(T=requestAnimationFrame(()=>{T=0,A()}))},O=N=>{if(document.removeEventListener("pointermove",L),document.removeEventListener("pointerup",O),T&&cancelAnimationFrame(T),document.body.style.cursor="",document.body.style.userSelect="",C){const{id:P,afterId:R}=m(N.clientX,b);P!==null&&P!==b?e(b,P):P===null&&(R!==null?e(b,R):t?.(b)),d.current=!0,setTimeout(()=>{d.current=!1},0)}s(T1)};document.addEventListener("pointermove",L),document.addEventListener("pointerup",O)}}),[e,t,m]),y=x.useCallback(()=>d.current?(d.current=!1,!0):!1,[]);return{getDragHandlers:g,dragState:o,registerGhost:f,consumeDragEnd:y}}const k1=x.createContext(null),uN=k1.Provider;function Cs(){const e=x.useContext(k1);if(!e)throw new Error("[LatticeGrid] useGridContext must be inside a <LatticeGrid>.");return e}const Qi={"--vg-font":"'DM Sans', 'Segoe UI', system-ui, sans-serif","--vg-font-mono":"'JetBrains Mono', 'Fira Code', 'Cascadia Code', monospace","--vg-font-size":"12.5px","--vg-line-height":"1.45","--vg-row-height":"36px","--vg-header-height":"38px","--vg-group-height":"28px","--vg-radius":"7px","--vg-radius-sm":"4px","--vg-radius-xs":"3px","--vg-transition":"0.12s ease","--vg-z-pinned":"3","--vg-z-header":"4","--vg-z-panel":"100","--vg-scrollbar-width":"6px"},Ql={light:{...Qi,"--vg-bg":"#ffffff","--vg-bg-header":"#f7f8fa","--vg-bg-group":"#f0f2f6","--vg-bg-row-alt":"#fafbfc","--vg-bg-row-hover":"#f0f5ff","--vg-bg-row-selected":"#e8efff","--vg-bg-pinned":"#ffffff","--vg-bg-frozen":"#eff6ff","--vg-bg-toolbar":"#ffffff","--vg-bg-panel":"#ffffff","--vg-bg-btn":"#f3f4f6","--vg-bg-btn-hover":"#e9eaec","--vg-bg-btn-active":"#dbeafe","--vg-bg-tag":"#f0f2f6","--vg-bg-input":"#ffffff","--vg-text":"#111827","--vg-text-dim":"#6b7280","--vg-text-header":"#374151","--vg-text-group":"#1e2939","--vg-text-placeholder":"#9ca3af","--vg-border":"#e5e7eb","--vg-border-strong":"#d1d5db","--vg-border-focus":"#2563eb","--vg-accent":"#2563eb","--vg-accent-hover":"#1d4ed8","--vg-accent-bg":"#dbeafe","--vg-accent-text":"#1d4ed8","--vg-accent-fg":"#ffffff","--vg-shadow-pin":"4px 0 12px rgba(0,0,0,0.06)","--vg-shadow-panel":"0 8px 24px rgba(0,0,0,0.10), 0 2px 6px rgba(0,0,0,0.06)","--vg-scrollbar-track":"#f1f3f5","--vg-scrollbar-thumb":"#d1d5db","--vg-sort-icon":"#9ca3af","--vg-sort-active":"#2563eb","--vg-resize-hover":"#2563eb","--vg-drag-indicator":"#2563eb"},dark:{...Qi,"--vg-bg":"#0d1117","--vg-bg-header":"#161c28","--vg-bg-group":"#1a2235","--vg-bg-row-alt":"#111620","--vg-bg-row-hover":"#1c2438","--vg-bg-row-selected":"#1a3558","--vg-bg-pinned":"#0d1117","--vg-bg-frozen":"#0f2040","--vg-bg-toolbar":"#161c28","--vg-bg-panel":"#161c28","--vg-bg-btn":"#1c2438","--vg-bg-btn-hover":"#242e48","--vg-bg-btn-active":"#1e3558","--vg-bg-tag":"#1c2438","--vg-bg-input":"#1c2438","--vg-text":"#e2e8f4","--vg-text-dim":"#8896b4","--vg-text-header":"#b4c0d8","--vg-text-group":"#d0daf0","--vg-text-placeholder":"#4a5670","--vg-border":"#1e2840","--vg-border-strong":"#283550","--vg-border-focus":"#3b82f6","--vg-accent":"#3b82f6","--vg-accent-hover":"#60a5fa","--vg-accent-bg":"#1e3558","--vg-accent-text":"#93c5fd","--vg-accent-fg":"#ffffff","--vg-shadow-pin":"4px 0 16px rgba(0,0,0,0.4)","--vg-shadow-panel":"0 8px 32px rgba(0,0,0,0.5), 0 2px 8px rgba(0,0,0,0.3)","--vg-scrollbar-track":"#161c28","--vg-scrollbar-thumb":"#283550","--vg-sort-icon":"#3a4a68","--vg-sort-active":"#3b82f6","--vg-resize-hover":"#3b82f6","--vg-drag-indicator":"#3b82f6"},ocean:{...Qi,"--vg-bg":"#081425","--vg-bg-header":"#0c1e38","--vg-bg-group":"#0f2444","--vg-bg-row-alt":"#0a1830","--vg-bg-row-hover":"#112440","--vg-bg-row-selected":"#0e2c58","--vg-bg-pinned":"#081425","--vg-bg-frozen":"#051830","--vg-bg-toolbar":"#0c1e38","--vg-bg-panel":"#0c1e38","--vg-bg-btn":"#0f2444","--vg-bg-btn-hover":"#163058","--vg-bg-btn-active":"#0e2c58","--vg-bg-tag":"#0f2444","--vg-bg-input":"#0f2444","--vg-text":"#b8d4f8","--vg-text-dim":"#3c6080","--vg-text-header":"#6aabf0","--vg-text-group":"#9ccaf0","--vg-text-placeholder":"#2a4860","--vg-border":"#0f2444","--vg-border-strong":"#163058","--vg-border-focus":"#0e9eff","--vg-accent":"#0e9eff","--vg-accent-hover":"#40b6ff","--vg-accent-bg":"#0e2c58","--vg-accent-text":"#7dd0ff","--vg-accent-fg":"#ffffff","--vg-shadow-pin":"4px 0 16px rgba(0,0,0,0.5)","--vg-shadow-panel":"0 8px 40px rgba(0,10,30,0.7)","--vg-scrollbar-track":"#0c1e38","--vg-scrollbar-thumb":"#163058","--vg-sort-icon":"#1a4070","--vg-sort-active":"#0e9eff","--vg-resize-hover":"#0e9eff","--vg-drag-indicator":"#0e9eff"},forest:{...Qi,"--vg-bg":"#0a140c","--vg-bg-header":"#0f1e12","--vg-bg-group":"#132418","--vg-bg-row-alt":"#0c1810","--vg-bg-row-hover":"#162c1c","--vg-bg-row-selected":"#143a1a","--vg-bg-pinned":"#0a140c","--vg-bg-frozen":"#0a1f0a","--vg-bg-toolbar":"#0f1e12","--vg-bg-panel":"#0f1e12","--vg-bg-btn":"#132418","--vg-bg-btn-hover":"#1e3828","--vg-bg-btn-active":"#143a1a","--vg-bg-tag":"#132418","--vg-bg-input":"#132418","--vg-text":"#b8d8a8","--vg-text-dim":"#406840","--vg-text-header":"#72b860","--vg-text-group":"#98c888","--vg-text-placeholder":"#284828","--vg-border":"#132418","--vg-border-strong":"#1e3828","--vg-border-focus":"#4ade80","--vg-accent":"#4ade80","--vg-accent-hover":"#86efac","--vg-accent-bg":"#143a1a","--vg-accent-text":"#86efac","--vg-accent-fg":"#0a140c","--vg-shadow-pin":"4px 0 16px rgba(0,0,0,0.5)","--vg-shadow-panel":"0 8px 40px rgba(0,10,0,0.7)","--vg-scrollbar-track":"#0f1e12","--vg-scrollbar-thumb":"#1e3828","--vg-sort-icon":"#204020","--vg-sort-active":"#4ade80","--vg-resize-hover":"#4ade80","--vg-drag-indicator":"#4ade80"},sunset:{...Qi,"--vg-bg":"#160a04","--vg-bg-header":"#221008","--vg-bg-group":"#2e160c","--vg-bg-row-alt":"#1c0e06","--vg-bg-row-hover":"#2e1a0c","--vg-bg-row-selected":"#3a1a08","--vg-bg-pinned":"#160a04","--vg-bg-frozen":"#1f0d04","--vg-bg-toolbar":"#221008","--vg-bg-panel":"#221008","--vg-bg-btn":"#2e160c","--vg-bg-btn-hover":"#3e2018","--vg-bg-btn-active":"#3a1a08","--vg-bg-tag":"#2e160c","--vg-bg-input":"#2e160c","--vg-text":"#f0c8a0","--vg-text-dim":"#805030","--vg-text-header":"#e09060","--vg-text-group":"#f0a870","--vg-text-placeholder":"#503020","--vg-border":"#2e160c","--vg-border-strong":"#3e2018","--vg-border-focus":"#fb923c","--vg-accent":"#fb923c","--vg-accent-hover":"#fdba74","--vg-accent-bg":"#3a1a08","--vg-accent-text":"#fdba74","--vg-accent-fg":"#160a04","--vg-shadow-pin":"4px 0 16px rgba(0,0,0,0.5)","--vg-shadow-panel":"0 8px 40px rgba(20,0,0,0.7)","--vg-scrollbar-track":"#221008","--vg-scrollbar-thumb":"#3e2018","--vg-sort-icon":"#50280c","--vg-sort-active":"#fb923c","--vg-resize-hover":"#fb923c","--vg-drag-indicator":"#fb923c"}};function fN(e){var t;return!e||e==="light"?Ql.light:typeof e=="string"?(t=Ql[e])!=null?t:Ql.light:{...Ql.light,...e}}function MB(e){return e}function pN({direction:e,active:t}){return p.jsxs("span",{style:{display:"inline-flex",flexDirection:"column",gap:1,marginLeft:3,opacity:t?1:.3,flexShrink:0,color:t?"var(--vg-sort-active)":"var(--vg-sort-icon)",transition:"opacity var(--vg-transition)"},children:[p.jsx("svg",{width:"7",height:"5",viewBox:"0 0 7 5",children:p.jsx("path",{d:"M3.5 0L7 5H0z",fill:"currentColor",opacity:t&&e==="asc"?1:.35})}),p.jsx("svg",{width:"7",height:"5",viewBox:"0 0 7 5",children:p.jsx("path",{d:"M3.5 5L0 0h7z",fill:"currentColor",opacity:t&&e==="desc"?1:.35})})]})}function hN(){return p.jsx("svg",{width:"8",height:"8",viewBox:"0 0 8 8",fill:"none",children:p.jsx("path",{d:"M1 1l6 6M7 1L1 7",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round"})})}const ko=x.memo(function({column:t,style:n,showResizeHandle:r=!0,isFirst:o=!1,isLast:s=!1}){var a,l;const{engine:c,dragHandlers:d,startResize:u,features:f,icons:h,styles:m,classNames:g}=Cs(),{sortState:y,toggleSort:b,toggleColumnVisibility:v}=c,{getDragHandlers:k,dragState:S,consumeDragEnd:C}=d,[w,T]=x.useState(!1),E=y.columnId===t.id,M=S.draggingId===t.id,j=S.overTargetId===t.id,A=S.insertBefore,L=t.sortable&&f.sort,O=t.resizable&&f.resize,N=t.draggable&&f.reorder,P=t.hideable&&f.columnHide,R=N?k(t.id):{},$=V=>{C()||V.target.closest("[data-vg-hide]")||L&&b(t.id)},_=V=>{V.stopPropagation(),v(t.id)},U=V=>{V.stopPropagation(),V.preventDefault(),u(V,t.id)},H=j?"var(--vg-accent-bg)":w?"var(--vg-bg-row-hover)":"var(--vg-bg-header)",B=o?"1px solid var(--vg-border)":void 0,D="1px solid var(--vg-border)",z=j?A?"inset 3px 0 0 var(--vg-accent)":"inset -3px 0 0 var(--vg-accent)":void 0;return p.jsxs("div",{role:"columnheader","aria-sort":E?y.direction==="asc"?"ascending":"descending":"none",className:(a=g.headerCell)!=null?a:void 0,...R,onClick:$,onMouseEnter:()=>T(!0),onMouseLeave:()=>T(!1),style:{...n,position:"absolute",display:"flex",alignItems:"center",justifyContent:t.align==="center"?"center":t.align==="right"?"flex-end":"flex-start",padding:"0 8px",fontWeight:600,fontSize:"var(--vg-font-size)",color:"var(--vg-text-header)",background:H,borderLeft:B,borderRight:D,borderBottom:"1px solid var(--vg-border)",boxShadow:z,cursor:L?"pointer":N?"grab":"default",userSelect:"none",opacity:M?.45:1,boxSizing:"border-box",overflow:"visible",whiteSpace:"nowrap",transition:"background var(--vg-transition)",outline:"none",...t.headerStyle,...m.headerCell,...t.groupId?m.groupHeaderCell:{}},children:[p.jsx("span",{style:{flex:1,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",textAlign:t.align},children:t.renderHeader?t.renderHeader(t,c):t.label}),L&&(()=>{if(E){const V=y.direction==="asc"?h.sortAsc:h.sortDesc;if(V)return p.jsx("span",{style:{marginLeft:3,flexShrink:0},children:V})}else if(h.sortNone)return p.jsx("span",{style:{marginLeft:3,flexShrink:0,opacity:.3},children:h.sortNone});return p.jsx(pN,{direction:y.direction,active:E})})(),P&&p.jsx("span",{"data-vg-hide":"",role:"button","aria-label":"Hide column",title:"Hide column",onClick:_,style:{display:"inline-flex",alignItems:"center",justifyContent:"center",width:14,height:14,borderRadius:3,marginLeft:3,flexShrink:0,cursor:"pointer",opacity:w?.7:0,pointerEvents:w?"auto":"none",background:"transparent",color:"var(--vg-text-dim)",transition:"opacity 0.12s",userSelect:"none"},onMouseEnter:V=>{V.currentTarget.style.opacity="1",V.currentTarget.style.background="var(--vg-border-strong)"},onMouseLeave:V=>{V.currentTarget.style.opacity=w?"0.7":"0",V.currentTarget.style.background="transparent"},children:(l=h.hideColumn)!=null?l:p.jsx(hN,{})}),r&&O&&p.jsx("div",{"aria-hidden":"true","data-resize-handle":"",onPointerDown:V=>V.stopPropagation(),onMouseDown:U,onClick:V=>V.stopPropagation(),style:{position:"absolute",right:-4,top:0,width:8,height:"100%",borderRadius:2,cursor:"col-resize",background:"transparent",zIndex:3,transition:"background var(--vg-transition)"},onMouseEnter:V=>V.currentTarget.style.background="var(--vg-resize-hover)",onMouseLeave:V=>V.currentTarget.style.background="transparent"})]})});if(typeof document<"u"){const e="vg-shimmer-keyframes";if(!document.getElementById(e)){const t=document.createElement("style");t.id=e,t.textContent="@keyframes vg-shimmer{from{background-position:200% 0}to{background-position:-200% 0}}",document.head.appendChild(t)}}function mN(e,t){return e.column===t.column&&e.row===t.row&&e.pinned===t.pinned&&e.isScrolling===t.isScrolling&&e.style.left===t.style.left&&e.style.top===t.style.top&&e.style.width===t.style.width&&e.style.height===t.style.height&&e.style.background===t.style.background&&e.style.zIndex===t.style.zIndex}function gN(){return p.jsx("div",{style:{width:"60%",height:10,borderRadius:4,background:"linear-gradient(90deg, var(--vg-border) 25%, var(--vg-bg-row-hover) 50%, var(--vg-border) 75%)",backgroundSize:"200% 100%",animation:"vg-shimmer 1.2s infinite linear"}})}const ec=x.memo(function({column:t,row:n,style:r,pinned:o=!1,isScrolling:s=!1,loadingCell:a}){var l,c;const{styles:d,classNames:u}=Cs();if(s&&t.deferRender&&t.renderCell)return p.jsx("div",{style:{...r,position:"absolute",display:"flex",alignItems:"center",justifyContent:"center",padding:"0 10px",boxSizing:"border-box",overflow:"hidden"},children:a??p.jsx(gN,{})});const f=t.accessor?t.accessor(n):n[(l=t.field)!=null?l:t.id],h=t.renderCell?t.renderCell(f,n):f??"—",m=t.align==="center"?"center":t.align==="right"?"flex-end":"flex-start",g=o?d.pinnedCell:d.cell,{background:y,backgroundColor:b,...v}=g??{},{background:k,backgroundColor:S,...C}=(c=t.cellStyle)!=null?c:{};return p.jsx("div",{className:[u.cell,o?u.pinnedCell:void 0].filter(Boolean).join(" ")||void 0,style:{...r,position:"absolute",display:"flex",alignItems:"center",justifyContent:m,padding:"0 10px",fontSize:"var(--vg-font-size)",color:"var(--vg-text)",borderRight:"1px solid var(--vg-border)",boxSizing:"border-box",overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis",...C,...v},children:h})},mN),E1=x.memo(function({group:t,left:n,width:r,height:o}){const{classNames:s,styles:a}=Cs();return p.jsx("div",{className:s.groupRow||void 0,style:{position:"absolute",left:n,top:0,width:r,height:o,display:"flex",alignItems:"center",justifyContent:"center",background:"var(--vg-bg-header)",borderRight:"1px solid var(--vg-border)",borderBottom:"1px solid var(--vg-border)",fontWeight:700,fontSize:"calc(var(--vg-font-size) - 0.5px)",letterSpacing:"0.025em",color:"var(--vg-text-group)",overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis",boxSizing:"border-box",...t.headerStyle,...a.groupRow},children:t.label})}),yN=x.memo(function({height:t,slot:n}){return p.jsx("div",{style:{height:t,display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",gap:10,color:"var(--vg-text-dim)",fontSize:"var(--vg-font-size)",fontFamily:"var(--vg-font)"},children:n??p.jsxs(p.Fragment,{children:[p.jsxs("svg",{width:"36",height:"36",viewBox:"0 0 36 36",fill:"none",children:[p.jsx("rect",{x:"4",y:"4",width:"28",height:"28",rx:"4",stroke:"currentColor",strokeWidth:"1.5",opacity:"0.4"}),p.jsx("line",{x1:"4",y1:"13",x2:"32",y2:"13",stroke:"currentColor",strokeWidth:"1.2",opacity:"0.3"}),p.jsx("line",{x1:"4",y1:"22",x2:"32",y2:"22",stroke:"currentColor",strokeWidth:"1.2",opacity:"0.2"}),p.jsx("line",{x1:"14",y1:"4",x2:"14",y2:"32",stroke:"currentColor",strokeWidth:"1.2",opacity:"0.2"})]}),p.jsx("span",{style:{opacity:.5},children:"No data to display"})]})})}),bN=x.memo(function({onClose:t}){const{engine:n,features:r,classNames:o}=Cs(),{orderedColumns:s,toggleColumnVisibility:a,pinColumn:l,showAllColumns:c}=n,d=x.useRef(null);x.useEffect(()=>{const f=m=>{d.current&&!d.current.contains(m.target)&&t()},h=setTimeout(()=>document.addEventListener("mousedown",f),50);return()=>{clearTimeout(h),document.removeEventListener("mousedown",f)}},[t]);const u=s.filter(f=>f.hidden).length;return p.jsxs("div",{ref:d,role:"dialog","aria-label":"Column manager",className:o.columnPanel||void 0,style:{position:"absolute",top:"calc(100% + 4px)",right:0,zIndex:"var(--vg-z-panel)",background:"var(--vg-bg-panel)",border:"1px solid var(--vg-border-strong)",borderRadius:"var(--vg-radius)",boxShadow:"var(--vg-shadow-panel)",minWidth:260,maxHeight:420,display:"flex",flexDirection:"column",overflow:"hidden",fontFamily:"var(--vg-font)"},children:[p.jsxs("div",{style:{display:"flex",alignItems:"center",justifyContent:"space-between",padding:"10px 14px 8px",borderBottom:"1px solid var(--vg-border)",flexShrink:0},children:[p.jsxs("span",{style:{fontWeight:700,fontSize:11,textTransform:"uppercase",letterSpacing:"0.08em",color:"var(--vg-text-dim)"},children:["Columns",u>0&&p.jsxs("span",{style:{marginLeft:6,background:"var(--vg-accent-bg)",color:"var(--vg-accent-text)",borderRadius:10,padding:"1px 6px",fontSize:10},children:[u," hidden"]})]}),u>0&&p.jsx("button",{onClick:c,style:{background:"none",border:"none",cursor:"pointer",fontSize:11,color:"var(--vg-accent)",fontWeight:600,fontFamily:"var(--vg-font)",padding:"2px 4px"},children:"Show all"})]}),p.jsx("div",{style:{overflow:"auto",flex:1},children:s.map(f=>{var h;return p.jsxs("div",{style:{display:"flex",alignItems:"center",gap:8,padding:"6px 14px",fontSize:"var(--vg-font-size)",color:f.hidden?"var(--vg-text-dim)":"var(--vg-text)",transition:"background var(--vg-transition)"},onMouseEnter:m=>m.currentTarget.style.background="var(--vg-bg-row-hover)",onMouseLeave:m=>m.currentTarget.style.background="transparent",children:[p.jsx("input",{type:"checkbox",id:`vg-col-${f.id}`,checked:!f.hidden,onChange:()=>a(f.id),style:{accentColor:"var(--vg-accent)",cursor:"pointer",width:13,height:13,flexShrink:0}}),p.jsx("label",{htmlFor:`vg-col-${f.id}`,style:{flex:1,cursor:"pointer",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},children:f.label}),r.columnPin&&p.jsxs("select",{value:(h=f.pinned)!=null?h:"",onChange:m=>l(f.id,m.target.value||null),style:{fontSize:11,padding:"2px 5px",background:"var(--vg-bg-btn)",color:"var(--vg-text)",border:"1px solid var(--vg-border-strong)",borderRadius:"var(--vg-radius-xs)",cursor:"pointer",fontFamily:"var(--vg-font)",outline:"none"},children:[p.jsx("option",{value:"",children:"No pin"}),p.jsx("option",{value:"left",children:"Pin left"}),p.jsx("option",{value:"right",children:"Pin right"})]})]},f.id)})}),p.jsx("div",{style:{padding:"10px 14px",borderTop:"1px solid var(--vg-border)",flexShrink:0},children:p.jsx("button",{onClick:t,style:{width:"100%",padding:"7px 12px",background:"var(--vg-accent)",color:"var(--vg-accent-fg)",border:"none",borderRadius:"var(--vg-radius-sm)",cursor:"pointer",fontWeight:600,fontSize:"var(--vg-font-size)",fontFamily:"var(--vg-font)",transition:"background var(--vg-transition)"},onMouseEnter:f=>f.currentTarget.style.background="var(--vg-accent-hover)",onMouseLeave:f=>f.currentTarget.style.background="var(--vg-accent)",children:"Done"})})]})}),vN=x.memo(function({left:t,right:n,colManagerSlot:r}){const{classNames:o,styles:s}=Cs();return p.jsxs("div",{role:"toolbar",className:o.toolbar||void 0,style:{display:"flex",alignItems:"center",justifyContent:"space-between",padding:"7px 12px",background:"var(--vg-bg-toolbar)",borderBottom:"1px solid var(--vg-border)",gap:8,flexShrink:0,position:"relative",...s.toolbar},children:[p.jsx("div",{style:{display:"flex",alignItems:"center",gap:8},children:t}),p.jsxs("div",{style:{display:"flex",alignItems:"center",gap:6,position:"relative"},children:[n,r]})]})}),xN=x.memo(function({onClick:t,active:n=!1,children:r,icon:o,"aria-label":s}){return p.jsxs("button",{onClick:t,"aria-label":s,"aria-pressed":n,style:{display:"inline-flex",alignItems:"center",gap:5,padding:"5px 10px",borderRadius:"var(--vg-radius-sm)",border:`1px solid ${n?"var(--vg-accent)":"var(--vg-border-strong)"}`,background:n?"var(--vg-accent-bg)":"var(--vg-bg-btn)",color:n?"var(--vg-accent-text)":"var(--vg-text)",fontSize:12,fontWeight:600,cursor:"pointer",fontFamily:"var(--vg-font)",transition:"all var(--vg-transition)",lineHeight:1},onMouseEnter:a=>{n||(a.currentTarget.style.background="var(--vg-bg-btn-hover)")},onMouseLeave:a=>{n||(a.currentTarget.style.background="var(--vg-bg-btn)")},children:[o,r]})}),wN=x.memo(function({startRow:t,endRow:n,totalRows:r,visibleCols:o,totalCols:s}){const{classNames:a,styles:l}=Cs();return p.jsxs("div",{className:a.footer||void 0,style:{display:"flex",alignItems:"center",justifyContent:"flex-end",padding:"5px 12px",background:"var(--vg-bg-toolbar)",borderTop:"1px solid var(--vg-border)",fontSize:11,color:"var(--vg-text-dim)",fontFamily:"var(--vg-font-mono)",flexShrink:0,gap:12,...l.footer},children:[p.jsxs("span",{children:[t.toLocaleString(),"–",n.toLocaleString()," of ",r.toLocaleString()," rows"]}),p.jsx("span",{style:{opacity:.5},children:"·"}),p.jsxs("span",{children:[o,"/",s," columns"]})]})});function SN(){return p.jsxs("svg",{width:"13",height:"13",viewBox:"0 0 13 13",fill:"none","aria-hidden":"true",children:[p.jsx("rect",{x:"0.5",y:"1.5",width:"3.5",height:"9",rx:"0.8",stroke:"currentColor",strokeWidth:"1.15"}),p.jsx("rect",{x:"5",y:"1.5",width:"3",height:"9",rx:"0.8",stroke:"currentColor",strokeWidth:"1.15"}),p.jsx("rect",{x:"9.5",y:"1.5",width:"3",height:"9",rx:"0.8",stroke:"currentColor",strokeWidth:"1.15"})]})}const CN=36,TN=38,kN=28,EN={sort:!0,resize:!0,reorder:!0,columnHide:!0,columnPin:!0,alternateRows:!0,toolbar:!0,footer:!0,rowSelection:!0},ON={},MN={},PN={};function jN(e,t,n,r){var o;if(r<=0)return null;const s=e.findIndex(a=>a.id===n);return s<0?null:((o=t[s])!=null?o:0)<r?s:null}function IN({columns:e,data:t,getRowId:n,height:r,maxHeight:o=600,rowHeight:s=CN,headerHeight:a=TN,groupHeaderHeight:l=kN,theme:c="light",features:d,icons:u,classNames:f,styles:h,slots:m={},freezeColId:g,loading:y=!1,selectedRowId:b,onRowClick:v,onSortChange:k,onColumnStateChange:S,onColumnResize:C,onColumnReorder:w,sortMode:T="client",ariaLabel:E="Data grid",className:M,style:j}){var A,L,O,N,P;const R=x.useMemo(()=>({...EN,...d}),[JSON.stringify(d)]),$=u??ON,_=h??MN,U=f??PN,H=sN(e),{pinnedLeftColumns:B,pinnedRightColumns:D,scrollableColumns:z,pinnedLeftWidth:V,pinnedRightWidth:X,sortState:G,groups:Y,hasGroups:K,visibleColumns:ae,orderedColumns:le,resizeColumn:W,moveColumnBefore:ee,moveColumnToEnd:F}=H,fe=x.useRef(G);x.useEffect(()=>{(fe.current.columnId!==G.columnId||fe.current.direction!==G.direction)&&(fe.current=G,k?.(G))},[G,k]);const se=x.useRef(null);x.useEffect(()=>{var re;se.current=G.columnId&&(re=H.orderedColumns.find(de=>de.id===G.columnId))!=null?re:null},[G.columnId]);const Z=x.useMemo(()=>{var re;if(T==="server")return t;const de=se.current;if(!G.columnId||!de)return t;const ue=(re=de.accessor)!=null?re:ve=>{var He;return ve[(He=de.field)!=null?He:de.id]};return[...t].sort((ve,He)=>{const Be=ue(ve),Ue=ue(He);if(Be==null)return 1;if(Ue==null)return-1;const ze=Be<Ue?-1:Be>Ue?1:0;return G.direction==="asc"?ze:-ze})},[t,T,G.columnId,G.direction]),Ce=x.useRef("");x.useEffect(()=>{if(!S)return;const re=H.orderedColumns.map((ue,ve)=>({id:ue.id,hidden:ue.hidden,pinned:ue.pinned,width:ue.width,order:ve})),de=JSON.stringify(re);de!==Ce.current&&(Ce.current=de,S(re))},[H.orderedColumns,S]);const[Te,ke]=x.useState(null);x.useEffect(()=>{R.rowSelection&&ke(b!=null?String(b):null)},[b,R.rowSelection]);const we=x.useCallback((re,de)=>{if(R.rowSelection){const ue=String(n?n(re,de):de);ke(ue)}v?.(re,de)},[R.rowSelection,n,v]),Re=x.useCallback((re,de)=>!Te||!R.rowSelection?!1:String(n?n(re,de):de)===Te,[Te,R.rowSelection,n]),Oe=x.useRef(null),ge=x.useRef(0),ne=x.useRef(0),[,ie]=x.useReducer(re=>re+1,0),Ee=x.useRef(0),pe=x.useRef(!1),he=x.useRef(null),Me=x.useRef(null),We=x.useRef(null),rt=x.useRef(null),be=x.useMemo(()=>lN(z),[z]),wt=x.useMemo(()=>z.map(re=>re.width),[z]),yt=x.useMemo(()=>wt.reduce((re,de)=>re+de,0),[wt]),tt=x.useRef(null),[Xt,_n]=x.useState(400),[Jn,xe]=x.useState(800);x.useEffect(()=>{const re=tt.current;if(!re)return;const de=new ResizeObserver(([ue])=>{ue&&(_n(ue.contentRect.height),xe(ue.contentRect.width))});return de.observe(re),_n(re.clientHeight),xe(re.clientWidth),()=>de.disconnect()},[]);const ce=K?l+a:a,De=R.toolbar&&!m.toolbar?36:0,Pe=R.footer&&!m.footer?29:0,Xe=ce+Z.length*s+De+Pe,Vt=r??Math.min(Xe,o),Ze=Math.max(0,Jn-V-X),Fn=V+yt+X,no=x.useRef({startIndex:0,endIndex:-1,totalHeight:0,offsetY:0}),Le=x.useCallback(re=>{no.current=iN(Z.length,s,re,Math.max(0,Xt-ce))},[Z.length,s,Xt,ce]),Zt=x.useRef({startIndex:0,endIndex:0}),ye=x.useCallback(re=>{const de=Math.max(0,re-V),ue=Ze>0?Ze:1400;Zt.current=aN(be,wt,de,ue)},[be,wt,Ze,V]),je=x.useRef(null),nt=x.useCallback(re=>{if(!g){je.current=null;return}const de=Math.max(0,re-V);je.current=jN(z,be,g,de)},[g,z,be,V]),Je=x.useMemo(()=>{var re;return g&&(re=z.find(de=>de.id===g))!=null?re:null},[g,z]),jt=x.useMemo(()=>{var re;if(!Je)return 0;const de=z.findIndex(ue=>ue.id===Je.id);return de>=0&&(re=be[de])!=null?re:0},[Je,z,be]),Wn=x.useCallback(()=>{const re=Oe.current;if(!re)return;const de=re.scrollTop,ue=re.scrollLeft;ne.current=de,ge.current=ue,Le(de),ye(ue),nt(ue);const ve=je.current!==null;Me.current&&(Me.current.style.visibility=ve?"visible":"hidden",Me.current.style.pointerEvents=ve?"auto":"none"),pe.current=!0,he.current&&clearTimeout(he.current),he.current=setTimeout(()=>{pe.current=!1,ie()},150),cancelAnimationFrame(Ee.current),Ee.current=requestAnimationFrame(ie)},[Le,ye,nt,ie]);x.useEffect(()=>{Le(ne.current),ye(ge.current),nt(ge.current)},[Le,ye,nt]),x.useEffect(()=>{const re=He=>{He.preventDefault();const Be=Oe.current;Be&&(Be.scrollTop+=He.deltaY,Be.scrollLeft+=He.deltaX)},de={passive:!1},ue=We.current,ve=rt.current;return ue?.addEventListener("wheel",re,de),ve?.addEventListener("wheel",re,de),()=>{ue?.removeEventListener("wheel",re,de),ve?.removeEventListener("wheel",re,de)}},[]),x.useLayoutEffect(()=>{if(!Me.current)return;const re=je.current!==null;Me.current.style.visibility=re?"visible":"hidden",Me.current.style.pointerEvents=re?"auto":"none"});const nn=Zt.current,Sr=je.current,zn=Sr!==null&&(A=z[Sr])!=null?A:null,Cr=(L=Je?.width)!=null?L:0,Tr=no.current,vc=pe.current,G2=x.useMemo(()=>{const re=new Set(Y.flatMap(de=>de.children.map(ue=>ue.id)));return new Set(z.filter(de=>!re.has(de.id)).map(de=>de.id))},[Y,z]),hp=x.useRef(H.orderedColumns);hp.current=H.orderedColumns;const ca=x.useRef(w);ca.current=w;const K2=x.useRef(re=>120);K2.current=re=>{var de,ue;return(ue=(de=H.orderedColumns.find(ve=>ve.id===re))==null?void 0:de.width)!=null?ue:120};const{startResize:X2}=cN({onResize:(re,de)=>W(re,de),onResizeEnd:(re,de)=>C?.(re,de),getCurrentWidth:x.useCallback(re=>K2.current(re),[])}),gL=x.useCallback(re=>{var de,ue;const ve=(de=tt.current)==null?void 0:de.getBoundingClientRect();if(!ve)return null;const He=ge.current;let Be=0;for(const ze of B){if(ze.id===re)return{left:ve.left+Be,right:ve.left+Be+ze.width};Be+=ze.width}const Ue=z.findIndex(ze=>ze.id===re);if(Ue!==-1){const ze=z[Ue],St=V+((ue=be[Ue])!=null?ue:0)-He;return{left:ve.left+St,right:ve.left+St+ze.width}}Be=0;for(const ze of D){if(ze.id===re){const St=ve.right-X;return{left:St+Be,right:St+Be+ze.width}}Be+=ze.width}return null},[B,z,D,V,X,be]),da=dN({onMoveColumnBefore:(re,de)=>{if(ee(re,de),ca.current){const ve=hp.current.map(He=>He.id).filter(He=>He!==re);ve.splice(ve.indexOf(de),0,re),ca.current(ve)}},onMoveColumnToEnd:re=>{if(F(re),ca.current){const ue=[...hp.current.map(ve=>ve.id).filter(ve=>ve!==re),re];ca.current(ue)}},columns:ae.map(re=>({id:re.id,groupId:re.groupId,draggable:re.draggable,pinned:re.pinned})),getColumnViewportBounds:gL}),[Z2,mp]=x.useState(!1),J2=x.useMemo(()=>fN(c),[c]),yL=x.useMemo(()=>J2,[J2]),bL=x.useMemo(()=>({engine:H,dragHandlers:da,startResize:X2,features:R,icons:$,styles:_,classNames:U}),[H,da,X2,R,$,_,U]),Q2=x.useCallback((re,de)=>{var ue,ve,He,Be,Ue,ze,St,ft;return Re(re,de)?(Be=(He=(ue=_.rowSelected)==null?void 0:ue.background)!=null?He:(ve=_.rowSelected)==null?void 0:ve.backgroundColor)!=null?Be:"var(--vg-bg-row-selected)":R.alternateRows&&de%2===1?"var(--vg-bg-row-alt)":(ft=(St=(Ue=_.row)==null?void 0:Ue.background)!=null?St:(ze=_.row)==null?void 0:ze.backgroundColor)!=null?ft:"var(--vg-bg)"},[Re,R.alternateRows,_.rowSelected,_.row]),vL=x.useCallback((re,de)=>{var ue,ve,He,Be,Ue,ze,St,ft,Ot,Qe;return Re(re,de)?(Be=(He=(ue=_.rowSelected)==null?void 0:ue.background)!=null?He:(ve=_.rowSelected)==null?void 0:ve.backgroundColor)!=null?Be:"var(--vg-bg-row-selected)":R.alternateRows&&de%2===1?"var(--vg-bg-row-alt)":(Qe=(Ot=(St=(Ue=_.pinnedCell)==null?void 0:Ue.background)!=null?St:(ze=_.pinnedCell)==null?void 0:ze.backgroundColor)!=null?Ot:(ft=_.row)==null?void 0:ft.background)!=null?Qe:"var(--vg-bg-pinned)"},[Re,R.alternateRows,_.rowSelected,_.row,_.pinnedCell]),xL=()=>{var re,de;const ue=[],ve=new Set;for(let He=nn.startIndex;He<=nn.endIndex;He++){const Be=z[He];if(!Be)continue;const Ue=V+((re=be[He])!=null?re:0);if(G2.has(Be.id)){ue.push(p.jsx(ko,{column:Be,style:{position:"absolute",left:Ue,top:0,width:Be.width,height:l+a,zIndex:1,background:"var(--vg-bg-header)"}},`hspan-${Be.id}`));continue}const ze=Y.find(Qe=>Qe.children.some(Nt=>Nt.id===Be.id));if(!ze||ve.has(ze.id))continue;ve.add(ze.id);const St=z.filter(Qe=>ze.children.some(Nt=>Nt.id===Qe.id)),ft=St.reduce((Qe,Nt)=>Qe+Nt.width,0),Ot=z.findIndex(Qe=>{var Nt;return Qe.id===((Nt=St[0])==null?void 0:Nt.id)});ue.push(p.jsx(E1,{group:ze,left:V+((de=be[Ot])!=null?de:0),width:ft,height:l},`grp-${ze.id}`))}return ue},wL=()=>{const re=[];let de;const ue=[];for(let ve=nn.startIndex;ve<=nn.endIndex;ve++){const He=z[ve];!He||G2.has(He.id)||ue.push(ve)}return ue.forEach((ve,He)=>{var Be;const Ue=z[ve];if(!Ue)return;const ze=Ue.groupId!==de;de=Ue.groupId;const St=He===ue.length-1;re.push(p.jsx(ko,{column:Ue,isFirst:ze,isLast:St,style:{position:"absolute",left:V+((Be=be[ve])!=null?Be:0),top:0,width:Ue.width,height:a,zIndex:1}},`lh-${Ue.id}`))}),re},SL=()=>{const re=[],de=[];for(let ue=nn.startIndex;ue<=nn.endIndex;ue++)z[ue]&&de.push(ue);return de.forEach((ue,ve)=>{var He;const Be=z[ue];Be&&re.push(p.jsx(ko,{column:Be,isFirst:ve===0,isLast:ve===de.length-1,style:{position:"absolute",left:V+((He=be[ue])!=null?He:0),top:0,width:Be.width,height:a,zIndex:1}},`fh-${Be.id}`))}),re},CL=re=>{var de,ue;const ve=Z[re];if(!ve)return null;const He=ce+re*s,Be=Q2(ve,re),Ue=vL(ve,re),ze=Re(ve,re),St=String(n?n(ve,re):re),ft=[];for(let $t=nn.startIndex;$t<=nn.endIndex;$t++){const Jt=z[$t];Jt&&ft.push(p.jsx(ec,{column:Jt,row:ve,isScrolling:vc,loadingCell:m.loadingCell,style:{position:"absolute",left:V+((de=be[$t])!=null?de:0),top:0,width:Jt.width,height:s,background:Be}},`ds-${Jt.id}`))}let Ot=0;const Qe=B.length>0?B.map($t=>{const Jt=Ot;return Ot+=$t.width,p.jsx(ec,{column:$t,row:ve,pinned:!0,isScrolling:vc,loadingCell:m.loadingCell,style:{position:"absolute",left:Jt,top:0,width:$t.width,height:s,background:Ue}},`ps-l-${$t.id}`)}):null;let Nt=0;const js=D.length>0?D.map($t=>{const Jt=Nt;return Nt+=$t.width,p.jsx(ec,{column:$t,row:ve,pinned:!0,isScrolling:vc,loadingCell:m.loadingCell,style:{position:"absolute",left:Jt,top:0,width:$t.width,height:s,background:Ue}},`ps-r-${$t.id}`)}):null;return p.jsxs("div",{role:"row","aria-rowindex":re+1,"aria-selected":ze,onClick:()=>we(ve,re),className:[U.row,ze?U.rowSelected:void 0].filter(Boolean).join(" ")||void 0,style:{position:"absolute",top:He,left:0,width:Fn,height:s,background:Be,cursor:"pointer",display:"flex",..._.row,...ze?_.rowSelected:{}},onMouseEnter:$t=>{if(!ze){const Jt=$t.currentTarget;Jt.style.background="var(--vg-bg-row-hover)",Jt.querySelectorAll("[data-pinned-sticky]").forEach(jo=>{jo.style.background="var(--vg-bg-row-hover)"})}},onMouseLeave:$t=>{const Jt=$t.currentTarget;Jt.style.background=Be,Jt.querySelectorAll("[data-pinned-sticky]").forEach(jo=>{jo.style.background=Ue})},children:[Qe&&p.jsx("div",{"data-pinned-sticky":"left",style:{position:"sticky",left:0,width:V,height:s,flexShrink:0,zIndex:5,background:Ue,overflow:"hidden"},children:Qe}),js&&p.jsx("div",{style:{flex:1}}),js&&p.jsx("div",{"data-pinned-sticky":"right",style:{position:"sticky",right:0,width:X,height:s,flexShrink:0,zIndex:5,background:Ue,overflow:"hidden"},children:js}),ft,ze&&((ue=m.rowSelectionIndicator)==null?void 0:ue.call(m,ve,re))]},St)},TL=()=>{var re,de,ue,ve,He;if(!Je)return null;const Be=[];for(let Ue=Tr.startIndex;Ue<=Tr.endIndex;Ue++){const ze=Z[Ue];if(!ze)continue;const St=String(n?n(ze,Ue):Ue),ft=Re(ze,Ue),Ot=ft?(ve=(ue=(re=_.rowSelected)==null?void 0:re.background)!=null?ue:(de=_.rowSelected)==null?void 0:de.backgroundColor)!=null?ve:"var(--vg-bg-row-selected)":"var(--vg-bg-frozen, var(--vg-bg-row-alt))";Be.push(p.jsxs("div",{onClick:()=>we(ze,Ue),className:[U.row,ft?U.rowSelected:void 0].filter(Boolean).join(" ")||void 0,style:{position:"absolute",left:0,top:Ue*s,width:Cr,height:s,background:Ot,cursor:"pointer",overflow:"hidden",..._.row,...ft?_.rowSelected:{}},onMouseEnter:Qe=>{ft||(Qe.currentTarget.style.background="var(--vg-bg-row-hover)")},onMouseLeave:Qe=>{Qe.currentTarget.style.background=Ot},children:[p.jsx(ec,{column:Je,row:ze,pinned:!0,isScrolling:vc,loadingCell:m.loadingCell,style:{position:"absolute",left:0,top:0,width:Cr,height:s,background:Ot,zIndex:2}}),ft&&p.jsx("div",{style:{position:"absolute",inset:0,zIndex:3,pointerEvents:"none"},children:(He=m.rowSelectionIndicator)==null?void 0:He.call(m,ze,Ue)})]},St))}return Be},ex=re=>{const de=re==="left",ue=de?B:D,ve=de?V:X,He=de&&zn!==null,Be=He?ve+Cr:ve;if(!ue.length&&!He)return null;const Ue=[];let ze=0;for(const Ot of ue)Ue.push(ze),ze+=Ot.width;const St=ze,ft=[];if(K){const Ot=new Set;if(ue.forEach((Qe,Nt)=>{var js,$t,Jt;if(!Qe.groupId)ft.push(p.jsx(ko,{column:Qe,isFirst:Nt===0,isLast:Nt===ue.length-1,style:{position:"absolute",left:Ue[Nt],top:0,width:Qe.width,height:l+a,zIndex:2,background:"var(--vg-bg-header)"}},`ph-span-${Qe.id}`));else{if(!Ot.has(Qe.groupId)){Ot.add(Qe.groupId);const jo=Y.find(rx=>rx.id===Qe.groupId);if(jo){const ML=ue.filter(gp=>gp.groupId===Qe.groupId).reduce((gp,PL)=>gp+PL.width,0);ft.push(p.jsx(E1,{group:jo,left:(js=Ue[Nt])!=null?js:0,width:ML,height:l},`pgh-${jo.id}`))}}ft.push(p.jsx(ko,{column:Qe,isFirst:Nt===0||(($t=ue[Nt-1])==null?void 0:$t.groupId)!==Qe.groupId,isLast:Nt===ue.length-1||((Jt=ue[Nt+1])==null?void 0:Jt.groupId)!==Qe.groupId,style:{position:"absolute",left:Ue[Nt],top:l,width:Qe.width,height:a,zIndex:2,background:"var(--vg-bg-header)"}},`ph-leaf-${Qe.id}`))}}),He&&zn){const Qe=zn.align==="center"?"center":zn.align==="right"?"flex-end":"flex-start";ft.push(p.jsx("div",{style:{position:"absolute",left:St,top:0,width:Cr,height:l+a,background:"var(--vg-bg-frozen, var(--vg-bg-group))",borderRight:"1px solid var(--vg-border-strong)",borderBottom:"1px solid var(--vg-border-strong)",zIndex:2,boxSizing:"border-box",display:"flex",alignItems:"center",justifyContent:Qe,padding:"0 10px",fontWeight:700,fontSize:"calc(var(--vg-font-size) - 0.5px)",color:"var(--vg-text-group)",overflow:"hidden",whiteSpace:"nowrap",..._.headerCell},children:zn.label},`ph-frozen-${zn.id}`))}}else ue.forEach((Ot,Qe)=>{ft.push(p.jsx(ko,{column:Ot,isFirst:Qe===0,isLast:Qe===ue.length-1,style:{position:"absolute",left:Ue[Qe],top:0,width:Ot.width,height:a,zIndex:2,background:"var(--vg-bg-header)"}},`ph-${Ot.id}`))}),He&&zn&&ft.push(p.jsx(ko,{column:zn,style:{position:"absolute",left:St,top:0,width:Cr,height:a,zIndex:2,background:"var(--vg-bg-frozen, var(--vg-accent-bg))"}},`ph-frozen-${zn.id}`));return p.jsxs("div",{style:{position:"absolute",[re]:0,top:0,width:Be,height:"100%",zIndex:20,pointerEvents:"none"},children:[p.jsx("div",{ref:de?We:rt,style:{position:"absolute",top:0,left:0,width:Be,height:ce,pointerEvents:"auto"},children:p.jsx("div",{style:{position:"absolute",top:0,left:0,width:Be,height:ce,background:"var(--vg-bg-header)",borderBottom:"1px solid var(--vg-border-strong)",zIndex:10,overflow:"visible"},children:ft})}),p.jsx("div",{"aria-hidden":"true",style:{position:"absolute",[de?"right":"left"]:-8,top:0,width:8,height:"100%",pointerEvents:"none",zIndex:15,background:de?"linear-gradient(to right, rgba(0,0,0,0.08), transparent)":"linear-gradient(to left, rgba(0,0,0,0.08), transparent)"}})]},`layer-${re}`)},kL=p.jsxs("span",{style:{fontSize:12,color:"var(--vg-text-dim)",fontWeight:500},children:[Z.length.toLocaleString()," rows",Te&&p.jsx("span",{style:{marginLeft:8,color:"var(--vg-accent)",fontWeight:600},children:"· 1 selected"})]}),EL=Z2?m.columnManager?m.columnManager({engine:H,onClose:()=>mp(!1)}):p.jsx(bN,{onClose:()=>mp(!1)}):null,OL=(O=$.columnsPanel)!=null?O:p.jsx(SN,{}),tx={startRow:Tr.startIndex+1,endRow:Math.min(Tr.endIndex+1,Z.length),totalRows:Z.length,visibleCols:ae.length,totalCols:le.length},nx=ce+Z.length*s;return p.jsx(uN,{value:bL,children:p.jsxs("div",{role:"grid","aria-label":E,"aria-rowcount":Z.length,"aria-colcount":ae.length,className:[U.root,M].filter(Boolean).join(" ")||void 0,style:{...yL,fontFamily:"var(--vg-font)",fontSize:"var(--vg-font-size)",lineHeight:"var(--vg-line-height)",background:"var(--vg-bg)",border:"1px solid var(--vg-border-strong)",borderRadius:"var(--vg-radius)",overflow:"hidden",display:"flex",flexDirection:"column",height:Vt,position:"relative",..._.root,...j},children:[R.toolbar&&(m.toolbar?m.toolbar(H):p.jsx(vN,{left:(N=m.toolbarLeft)!=null?N:kL,right:m.toolbarRight,colManagerSlot:p.jsxs(p.Fragment,{children:[p.jsx(xN,{onClick:()=>mp(re=>!re),active:Z2,icon:OL,"aria-label":"Manage columns",children:"Columns"}),EL]})})),p.jsx("div",{ref:tt,style:{position:"relative",flex:1,overflow:"hidden"},children:Z.length===0?p.jsx(yN,{height:Xt,slot:m.emptyState}):p.jsxs(p.Fragment,{children:[p.jsx("div",{ref:Oe,onScroll:Wn,style:{position:"absolute",inset:0,overflowX:"auto",overflowY:nx>Xt?"auto":"hidden",scrollbarWidth:"thin",scrollbarColor:"var(--vg-scrollbar-thumb) var(--vg-scrollbar-track)",willChange:"scroll-position"},children:p.jsxs("div",{style:{width:Fn,height:nx,position:"relative"},children:[p.jsx("div",{style:{position:"sticky",top:0,width:Fn,height:ce,zIndex:8,background:"var(--vg-bg-header)",borderBottom:"1px solid var(--vg-border-strong)",..._.headerRow},children:K?p.jsxs(p.Fragment,{children:[p.jsx("div",{role:"row",style:{position:"absolute",top:0,left:0,width:Fn,height:l,overflow:"visible"},children:xL()}),p.jsx("div",{role:"row",style:{position:"absolute",top:l,left:0,width:Fn,height:a,overflow:"visible"},children:wL()})]}):p.jsx("div",{role:"row",style:{position:"absolute",top:0,left:0,width:Fn,height:a,overflow:"visible"},children:SL()})}),Je&&p.jsx("div",{ref:Me,style:{position:"sticky",left:V,marginLeft:V+jt,width:Cr,height:Z.length*s,zIndex:6,visibility:Sr!==null?"visible":"hidden",pointerEvents:Sr!==null?"auto":"none"},children:TL()}),Array.from({length:Math.max(0,Tr.endIndex-Tr.startIndex+1)},(re,de)=>CL(Tr.startIndex+de))]})}),ex("left"),ex("right"),y&&p.jsx("div",{style:{position:"absolute",inset:0,background:"rgba(255,255,255,0.6)",display:"flex",alignItems:"center",justifyContent:"center",zIndex:50,backdropFilter:"blur(1px)"},children:(P=m.loadingOverlay)!=null?P:p.jsx("div",{style:{padding:"10px 20px",borderRadius:6,background:"var(--vg-bg)",border:"1px solid var(--vg-border-strong)",fontSize:13,color:"var(--vg-text-dim)",fontFamily:"var(--vg-font)"},children:"Loading…"})})]})}),R.footer&&(m.footer?m.footer(tx):p.jsx(wN,{...tx})),da.dragState.draggingId&&(()=>{var re;const{draggingId:de}=da.dragState,ue=ae.find(Be=>Be.id===de);if(!ue)return null;const ve=(re=tt.current)==null?void 0:re.getBoundingClientRect();if(!ve)return null;const He=ue.align==="center"?"center":ue.align==="right"?"flex-end":"flex-start";return p.jsx(p.Fragment,{children:p.jsxs("div",{ref:da.registerGhost,style:{position:"fixed",top:ve.top,width:ue.width,height:ve.height,zIndex:9999,pointerEvents:"none",boxShadow:"0 6px 24px rgba(0,0,0,0.20)",borderRadius:4,overflow:"hidden",background:"var(--vg-bg)"},children:[p.jsx("div",{style:{height:ce,background:"var(--vg-bg-header)",borderBottom:"1px solid var(--vg-border-strong)",display:"flex",alignItems:"center",justifyContent:He,padding:"0 8px",fontWeight:600,fontSize:"var(--vg-font-size)",color:"var(--vg-text-header)",boxSizing:"border-box",overflow:"hidden",whiteSpace:"nowrap"},children:ue.label}),Array.from({length:Tr.endIndex-Tr.startIndex+1},(Be,Ue)=>{var ze;const St=Tr.startIndex+Ue,ft=Z[St];if(!ft)return null;const Ot=ue.accessor?ue.accessor(ft):ft[(ze=ue.field)!=null?ze:ue.id],Qe=ue.renderCell?ue.renderCell(Ot,ft):Ot??"—";return p.jsx("div",{style:{height:s,display:"flex",alignItems:"center",justifyContent:He,padding:"0 10px",fontSize:"var(--vg-font-size)",color:"var(--vg-text)",borderBottom:"1px solid var(--vg-border)",boxSizing:"border-box",overflow:"hidden",whiteSpace:"nowrap",background:Q2(ft,St)},children:Qe},St)})]})})})()]})})}const DN=x.memo(IN);x.memo(function({currentPage:t,pageCount:n,totalRows:r,startIndex:o,endIndex:s,pageSize:a,pageSizeOptions:l,canGoPrev:c,canGoNext:d,goToPage:u,nextPage:f,prevPage:h,firstPage:m,lastPage:g,setPageSize:y}){const b=AN(t,n);return p.jsxs("div",{style:{display:"flex",alignItems:"center",justifyContent:"space-between",gap:12,padding:"8px 12px",background:"var(--vg-bg-toolbar)",borderTop:"1px solid var(--vg-border)",borderRadius:"0 0 var(--vg-radius) var(--vg-radius)",fontFamily:"var(--vg-font)",flexWrap:"wrap"},children:[p.jsxs("span",{style:{fontSize:12,color:"var(--vg-text-dim)",fontFamily:"var(--vg-font-mono)",flexShrink:0},children:[(o+1).toLocaleString(),"–",Math.min(s+1,r).toLocaleString()," of"," ",r.toLocaleString()," rows"]}),p.jsxs("div",{style:{display:"flex",alignItems:"center",gap:3},children:[p.jsx(tc,{onClick:m,disabled:!c,title:"First page",children:p.jsx(M1,{left:!0})}),p.jsx(tc,{onClick:h,disabled:!c,title:"Previous page",children:p.jsx(O1,{left:!0})}),b.map((v,k)=>v==="…"?p.jsx("span",{style:{padding:"0 4px",fontSize:12,color:"var(--vg-text-dim)"},children:"…"},`ellipsis-${k}`):p.jsx("button",{onClick:()=>u(v),"aria-current":v===t?"page":void 0,style:{minWidth:28,height:28,padding:"0 6px",borderRadius:"var(--vg-radius-xs)",border:`1px solid ${v===t?"var(--vg-accent)":"var(--vg-border-strong)"}`,background:v===t?"var(--vg-accent-bg)":"var(--vg-bg-btn)",color:v===t?"var(--vg-accent-text)":"var(--vg-text)",fontWeight:v===t?700:500,fontSize:12,cursor:"pointer",fontFamily:"var(--vg-font-mono)",lineHeight:1,transition:"all var(--vg-transition)"},children:v},v)),p.jsx(tc,{onClick:f,disabled:!d,title:"Next page",children:p.jsx(O1,{})}),p.jsx(tc,{onClick:g,disabled:!d,title:"Last page",children:p.jsx(M1,{})})]}),p.jsxs("div",{style:{display:"flex",alignItems:"center",gap:7,flexShrink:0},children:[p.jsx("span",{style:{fontSize:12,color:"var(--vg-text-dim)"},children:"Rows per page"}),p.jsx("select",{value:a,onChange:v=>y(Number(v.target.value)),style:{padding:"3px 6px",borderRadius:"var(--vg-radius-xs)",border:"1px solid var(--vg-border-strong)",background:"var(--vg-bg-btn)",color:"var(--vg-text)",fontSize:12,cursor:"pointer",fontFamily:"var(--vg-font)",outline:"none"},children:l.map(v=>p.jsx("option",{value:v,children:v},v))})]})]})});function tc({onClick:e,disabled:t,title:n,children:r}){return p.jsx("button",{onClick:e,disabled:t,title:n,style:{width:28,height:28,display:"flex",alignItems:"center",justifyContent:"center",borderRadius:"var(--vg-radius-xs)",border:"1px solid var(--vg-border-strong)",background:"var(--vg-bg-btn)",color:t?"var(--vg-text-dim)":"var(--vg-text)",cursor:t?"not-allowed":"pointer",opacity:t?.45:1,transition:"all var(--vg-transition)",padding:0},children:r})}function O1({left:e=!1}){return p.jsx("svg",{width:"12",height:"12",viewBox:"0 0 12 12",fill:"none",style:{transform:e?"rotate(180deg)":void 0},children:p.jsx("path",{d:"M4.5 2.5L7.5 6l-3 3.5",stroke:"currentColor",strokeWidth:"1.4",strokeLinecap:"round",strokeLinejoin:"round"})})}function M1({left:e=!1}){return p.jsx("svg",{width:"12",height:"12",viewBox:"0 0 12 12",fill:"none",style:{transform:e?"rotate(180deg)":void 0},children:p.jsx("path",{d:"M7 2.5L4 6l3 3.5M10 2.5L7 6l3 3.5",stroke:"currentColor",strokeWidth:"1.4",strokeLinecap:"round",strokeLinejoin:"round"})})}function AN(e,t){if(t<=7)return Array.from({length:t},(s,a)=>a+1);const n=[];n.push(1);const r=Math.max(2,e-1),o=Math.min(t-1,e+1);r>2&&n.push("…");for(let s=r;s<=o;s++)n.push(s);return o<t-1&&n.push("…"),n.push(t),n}function RN({engine:e,onClose:t}){const{orderedColumns:n,toggleColumnVisibility:r,pinColumn:o,showAllColumns:s,resetColumns:a}=e,[l,c]=x.useState(""),d=x.useMemo(()=>n.filter(f=>f.label.toLowerCase().includes(l.toLowerCase())),[n,l]),u=n.filter(f=>f.hidden).length;return p.jsxs("div",{style:{display:"flex",flexDirection:"column",fontFamily:'var(--vg-font, "DM Sans", sans-serif)',fontSize:"var(--vg-font-size, 12.5px)",background:"var(--vg-bg-panel, #fff)",border:"1px solid var(--vg-border-strong, #d1d5db)",borderRadius:"var(--vg-radius, 7px)",boxShadow:"var(--vg-shadow-panel, 0 8px 24px rgba(0,0,0,0.1))",overflow:"hidden",minWidth:240},children:[p.jsxs("div",{style:{display:"flex",alignItems:"center",justifyContent:"space-between",padding:"10px 14px 8px",borderBottom:"1px solid var(--vg-border, #e5e7eb)",gap:8,flexShrink:0},children:[p.jsxs("span",{style:{fontWeight:700,fontSize:11,textTransform:"uppercase",letterSpacing:"0.08em",color:"var(--vg-text-dim, #6b7280)"},children:["Columns",u>0&&p.jsxs("span",{style:{marginLeft:6,background:"var(--vg-accent-bg, #dbeafe)",color:"var(--vg-accent-text, #1d4ed8)",borderRadius:10,padding:"1px 6px",fontSize:10},children:[u," hidden"]})]}),p.jsxs("div",{style:{display:"flex",gap:6},children:[u>0&&p.jsx("button",{onClick:s,style:{background:"none",border:"none",cursor:"pointer",fontSize:11,color:"var(--vg-accent, #2563eb)",fontWeight:600,fontFamily:"var(--vg-font, sans-serif)",padding:"2px 4px"},children:"Show all"}),p.jsx("button",{onClick:a,style:{background:"none",border:"none",cursor:"pointer",fontSize:11,color:"var(--vg-text-dim, #6b7280)",fontFamily:"var(--vg-font, sans-serif)",padding:"2px 4px"},children:"Reset"})]})]}),p.jsx("div",{style:{padding:"8px 14px",borderBottom:"1px solid var(--vg-border, #e5e7eb)",flexShrink:0},children:p.jsx("input",{value:l,onChange:f=>c(f.target.value),placeholder:"Search columns…",style:{width:"100%",padding:"5px 9px",border:"1px solid var(--vg-border-strong, #d1d5db)",borderRadius:"var(--vg-radius-sm, 4px)",background:"var(--vg-bg, #fff)",color:"var(--vg-text, #111827)",fontSize:12,outline:"none",fontFamily:"var(--vg-font, sans-serif)",boxSizing:"border-box"}})}),p.jsxs("div",{style:{overflow:"auto",flex:1,maxHeight:320},children:[d.map(f=>{var h;return p.jsxs("div",{style:{display:"flex",alignItems:"center",gap:8,padding:"6px 14px",borderBottom:"1px solid var(--vg-border, #e5e7eb)",transition:"background 0.1s"},onMouseEnter:m=>m.currentTarget.style.background="var(--vg-bg-row-hover, #f0f5ff)",onMouseLeave:m=>m.currentTarget.style.background="transparent",children:[p.jsx("input",{type:"checkbox",id:`vcm-${f.id}`,checked:!f.hidden,onChange:()=>r(f.id),style:{accentColor:"var(--vg-accent, #2563eb)",cursor:"pointer",width:13,height:13,flexShrink:0}}),p.jsx("label",{htmlFor:`vcm-${f.id}`,style:{flex:1,cursor:"pointer",color:f.hidden?"var(--vg-text-dim, #6b7280)":"var(--vg-text, #111827)",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},children:f.label}),p.jsxs("select",{value:(h=f.pinned)!=null?h:"",onChange:m=>o(f.id,m.target.value||null),style:{fontSize:11,padding:"2px 5px",background:"var(--vg-bg-btn, #f3f4f6)",color:"var(--vg-text, #111827)",border:"1px solid var(--vg-border-strong, #d1d5db)",borderRadius:"var(--vg-radius-xs, 3px)",cursor:"pointer",fontFamily:"var(--vg-font, sans-serif)",outline:"none"},children:[p.jsx("option",{value:"",children:"No pin"}),p.jsx("option",{value:"left",children:"Pin left"}),p.jsx("option",{value:"right",children:"Pin right"})]})]},f.id)}),d.length===0&&p.jsxs("div",{style:{padding:"20px 14px",textAlign:"center",fontSize:12,color:"var(--vg-text-dim, #6b7280)"},children:['No columns match "',l,'"']})]}),t&&p.jsx("div",{style:{padding:"10px 14px",borderTop:"1px solid var(--vg-border, #e5e7eb)",flexShrink:0},children:p.jsx("button",{onClick:t,style:{width:"100%",padding:"7px 12px",background:"var(--vg-accent, #2563eb)",color:"var(--vg-accent-fg, #fff)",border:"none",borderRadius:"var(--vg-radius-sm, 4px)",cursor:"pointer",fontWeight:600,fontSize:"var(--vg-font-size, 12.5px)",fontFamily:"var(--vg-font, sans-serif)"},children:"Done"})})]})}function NN(){const[e,t]=x.useState(!1),n=x.useRef(null),[r,o]=x.useState(!1),s=x.useCallback(()=>t(!0),[]),a=x.useCallback(()=>t(!1),[]),l=x.useCallback(()=>t(u=>!u),[]),c=x.useCallback(u=>{n.current=u,r||o(!0)},[r]),d=x.useCallback(({render:u,onClose:f,style:h,className:m})=>{const g=n.current;return g?u?p.jsx("div",{style:h,className:m,children:u({engine:g,close:a})}):p.jsx("div",{style:h,className:m,children:p.jsx(RN,{engine:g,onClose:f})}):null},[r,a]);return{isOpen:e,open:s,close:a,toggle:l,captureEngine:c,engine:n.current,ColumnManagerPanel:d}}function P1(e,t){return function(){return e.apply(t,arguments)}}const{toString:$N}=Object.prototype,{getPrototypeOf:Bf}=Object,{iterator:nc,toStringTag:j1}=Symbol,rc=(e=>t=>{const n=$N.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),Zn=e=>(e=e.toLowerCase(),t=>rc(t)===e),oc=e=>t=>typeof t===e,{isArray:Ts}=Array,ks=oc("undefined");function ea(e){return e!==null&&!ks(e)&&e.constructor!==null&&!ks(e.constructor)&&gn(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const I1=Zn("ArrayBuffer");function LN(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&I1(e.buffer),t}const BN=oc("string"),gn=oc("function"),D1=oc("number"),ta=e=>e!==null&&typeof e=="object",_N=e=>e===!0||e===!1,sc=e=>{if(rc(e)!=="object")return!1;const t=Bf(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(j1 in e)&&!(nc in e)},FN=e=>{if(!ta(e)||ea(e))return!1;try{return Object.keys(e).length===0&&Object.getPrototypeOf(e)===Object.prototype}catch{return!1}},WN=Zn("Date"),zN=Zn("File"),VN=Zn("Blob"),HN=Zn("FileList"),UN=e=>ta(e)&&gn(e.pipe),YN=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||gn(e.append)&&((t=rc(e))==="formdata"||t==="object"&&gn(e.toString)&&e.toString()==="[object FormData]"))},qN=Zn("URLSearchParams"),[GN,KN,XN,ZN]=["ReadableStream","Request","Response","Headers"].map(Zn),JN=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function na(e,t,{allOwnKeys:n=!1}={}){if(e===null||typeof e>"u")return;let r,o;if(typeof e!="object"&&(e=[e]),Ts(e))for(r=0,o=e.length;r<o;r++)t.call(null,e[r],r,e);else{if(ea(e))return;const s=n?Object.getOwnPropertyNames(e):Object.keys(e),a=s.length;let l;for(r=0;r<a;r++)l=s[r],t.call(null,e[l],l,e)}}function A1(e,t){if(ea(e))return null;t=t.toLowerCase();const n=Object.keys(e);let r=n.length,o;for(;r-- >0;)if(o=n[r],t===o.toLowerCase())return o;return null}const Eo=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,R1=e=>!ks(e)&&e!==Eo;function _f(){const{caseless:e,skipUndefined:t}=R1(this)&&this||{},n={},r=(o,s)=>{const a=e&&A1(n,s)||s;sc(n[a])&&sc(o)?n[a]=_f(n[a],o):sc(o)?n[a]=_f({},o):Ts(o)?n[a]=o.slice():(!t||!ks(o))&&(n[a]=o)};for(let o=0,s=arguments.length;o<s;o++)arguments[o]&&na(arguments[o],r);return n}const QN=(e,t,n,{allOwnKeys:r}={})=>(na(t,(o,s)=>{n&&gn(o)?e[s]=P1(o,n):e[s]=o},{allOwnKeys:r}),e),e$=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),t$=(e,t,n,r)=>{e.prototype=Object.create(t.prototype,r),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),n&&Object.assign(e.prototype,n)},n$=(e,t,n,r)=>{let o,s,a;const l={};if(t=t||{},e==null)return t;do{for(o=Object.getOwnPropertyNames(e),s=o.length;s-- >0;)a=o[s],(!r||r(a,e,t))&&!l[a]&&(t[a]=e[a],l[a]=!0);e=n!==!1&&Bf(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},r$=(e,t,n)=>{e=String(e),(n===void 0||n>e.length)&&(n=e.length),n-=t.length;const r=e.indexOf(t,n);return r!==-1&&r===n},o$=e=>{if(!e)return null;if(Ts(e))return e;let t=e.length;if(!D1(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},s$=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&Bf(Uint8Array)),i$=(e,t)=>{const r=(e&&e[nc]).call(e);let o;for(;(o=r.next())&&!o.done;){const s=o.value;t.call(e,s[0],s[1])}},a$=(e,t)=>{let n;const r=[];for(;(n=e.exec(t))!==null;)r.push(n);return r},l$=Zn("HTMLFormElement"),c$=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,r,o){return r.toUpperCase()+o}),N1=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),d$=Zn("RegExp"),$1=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};na(n,(o,s)=>{let a;(a=t(o,s,e))!==!1&&(r[s]=a||o)}),Object.defineProperties(e,r)},u$=e=>{$1(e,(t,n)=>{if(gn(e)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const r=e[n];if(gn(r)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")})}})},f$=(e,t)=>{const n={},r=o=>{o.forEach(s=>{n[s]=!0})};return Ts(e)?r(e):r(String(e).split(t)),n},p$=()=>{},h$=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t;function m$(e){return!!(e&&gn(e.append)&&e[j1]==="FormData"&&e[nc])}const g$=e=>{const t=new Array(10),n=(r,o)=>{if(ta(r)){if(t.indexOf(r)>=0)return;if(ea(r))return r;if(!("toJSON"in r)){t[o]=r;const s=Ts(r)?[]:{};return na(r,(a,l)=>{const c=n(a,o+1);!ks(c)&&(s[l]=c)}),t[o]=void 0,s}}return r};return n(e,0)},y$=Zn("AsyncFunction"),b$=e=>e&&(ta(e)||gn(e))&&gn(e.then)&&gn(e.catch),L1=((e,t)=>e?setImmediate:t?((n,r)=>(Eo.addEventListener("message",({source:o,data:s})=>{o===Eo&&s===n&&r.length&&r.shift()()},!1),o=>{r.push(o),Eo.postMessage(n,"*")}))(`axios@${Math.random()}`,[]):n=>setTimeout(n))(typeof setImmediate=="function",gn(Eo.postMessage)),v$=typeof queueMicrotask<"u"?queueMicrotask.bind(Eo):typeof process<"u"&&process.nextTick||L1,q={isArray:Ts,isArrayBuffer:I1,isBuffer:ea,isFormData:YN,isArrayBufferView:LN,isString:BN,isNumber:D1,isBoolean:_N,isObject:ta,isPlainObject:sc,isEmptyObject:FN,isReadableStream:GN,isRequest:KN,isResponse:XN,isHeaders:ZN,isUndefined:ks,isDate:WN,isFile:zN,isBlob:VN,isRegExp:d$,isFunction:gn,isStream:UN,isURLSearchParams:qN,isTypedArray:s$,isFileList:HN,forEach:na,merge:_f,extend:QN,trim:JN,stripBOM:e$,inherits:t$,toFlatObject:n$,kindOf:rc,kindOfTest:Zn,endsWith:r$,toArray:o$,forEachEntry:i$,matchAll:a$,isHTMLForm:l$,hasOwnProperty:N1,hasOwnProp:N1,reduceDescriptors:$1,freezeMethods:u$,toObjectSet:f$,toCamelCase:c$,noop:p$,toFiniteNumber:h$,findKey:A1,global:Eo,isContextDefined:R1,isSpecCompliantForm:m$,toJSONObject:g$,isAsyncFn:y$,isThenable:b$,setImmediate:L1,asap:v$,isIterable:e=>e!=null&&gn(e[nc])};function Ke(e,t,n,r,o){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=e,this.name="AxiosError",t&&(this.code=t),n&&(this.config=n),r&&(this.request=r),o&&(this.response=o,this.status=o.status?o.status:null)}q.inherits(Ke,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:q.toJSONObject(this.config),code:this.code,status:this.status}}});const B1=Ke.prototype,_1={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(e=>{_1[e]={value:e}}),Object.defineProperties(Ke,_1),Object.defineProperty(B1,"isAxiosError",{value:!0}),Ke.from=(e,t,n,r,o,s)=>{const a=Object.create(B1);q.toFlatObject(e,a,function(u){return u!==Error.prototype},d=>d!=="isAxiosError");const l=e&&e.message?e.message:"Error",c=t==null&&e?e.code:t;return Ke.call(a,l,c,n,r,o),e&&a.cause==null&&Object.defineProperty(a,"cause",{value:e,configurable:!0}),a.name=e&&e.name||"Error",s&&Object.assign(a,s),a};const x$=null;function Ff(e){return q.isPlainObject(e)||q.isArray(e)}function F1(e){return q.endsWith(e,"[]")?e.slice(0,-2):e}function W1(e,t,n){return e?e.concat(t).map(function(o,s){return o=F1(o),!n&&s?"["+o+"]":o}).join(n?".":""):t}function w$(e){return q.isArray(e)&&!e.some(Ff)}const S$=q.toFlatObject(q,{},null,function(t){return/^is[A-Z]/.test(t)});function ic(e,t,n){if(!q.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,n=q.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(y,b){return!q.isUndefined(b[y])});const r=n.metaTokens,o=n.visitor||u,s=n.dots,a=n.indexes,c=(n.Blob||typeof Blob<"u"&&Blob)&&q.isSpecCompliantForm(t);if(!q.isFunction(o))throw new TypeError("visitor must be a function");function d(g){if(g===null)return"";if(q.isDate(g))return g.toISOString();if(q.isBoolean(g))return g.toString();if(!c&&q.isBlob(g))throw new Ke("Blob is not supported. Use a Buffer instead.");return q.isArrayBuffer(g)||q.isTypedArray(g)?c&&typeof Blob=="function"?new Blob([g]):Buffer.from(g):g}function u(g,y,b){let v=g;if(g&&!b&&typeof g=="object"){if(q.endsWith(y,"{}"))y=r?y:y.slice(0,-2),g=JSON.stringify(g);else if(q.isArray(g)&&w$(g)||(q.isFileList(g)||q.endsWith(y,"[]"))&&(v=q.toArray(g)))return y=F1(y),v.forEach(function(S,C){!(q.isUndefined(S)||S===null)&&t.append(a===!0?W1([y],C,s):a===null?y:y+"[]",d(S))}),!1}return Ff(g)?!0:(t.append(W1(b,y,s),d(g)),!1)}const f=[],h=Object.assign(S$,{defaultVisitor:u,convertValue:d,isVisitable:Ff});function m(g,y){if(!q.isUndefined(g)){if(f.indexOf(g)!==-1)throw Error("Circular reference detected in "+y.join("."));f.push(g),q.forEach(g,function(v,k){(!(q.isUndefined(v)||v===null)&&o.call(t,v,q.isString(k)?k.trim():k,y,h))===!0&&m(v,y?y.concat(k):[k])}),f.pop()}}if(!q.isObject(e))throw new TypeError("data must be an object");return m(e),t}function z1(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(r){return t[r]})}function Wf(e,t){this._pairs=[],e&&ic(e,this,t)}const V1=Wf.prototype;V1.append=function(t,n){this._pairs.push([t,n])},V1.toString=function(t){const n=t?function(r){return t.call(this,r,z1)}:z1;return this._pairs.map(function(o){return n(o[0])+"="+n(o[1])},"").join("&")};function C$(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+")}function H1(e,t,n){if(!t)return e;const r=n&&n.encode||C$;q.isFunction(n)&&(n={serialize:n});const o=n&&n.serialize;let s;if(o?s=o(t,n):s=q.isURLSearchParams(t)?t.toString():new Wf(t,n).toString(r),s){const a=e.indexOf("#");a!==-1&&(e=e.slice(0,a)),e+=(e.indexOf("?")===-1?"?":"&")+s}return e}class U1{constructor(){this.handlers=[]}use(t,n,r){return this.handlers.push({fulfilled:t,rejected:n,synchronous:r?r.synchronous:!1,runWhen:r?r.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){q.forEach(this.handlers,function(r){r!==null&&t(r)})}}const Y1={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},T$={isBrowser:!0,classes:{URLSearchParams:typeof URLSearchParams<"u"?URLSearchParams:Wf,FormData:typeof FormData<"u"?FormData:null,Blob:typeof Blob<"u"?Blob:null},protocols:["http","https","file","blob","url","data"]},zf=typeof window<"u"&&typeof document<"u",Vf=typeof navigator=="object"&&navigator||void 0,k$=zf&&(!Vf||["ReactNative","NativeScript","NS"].indexOf(Vf.product)<0),E$=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",O$=zf&&window.location.href||"http://localhost",tn={...Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:zf,hasStandardBrowserEnv:k$,hasStandardBrowserWebWorkerEnv:E$,navigator:Vf,origin:O$},Symbol.toStringTag,{value:"Module"})),...T$};function M$(e,t){return ic(e,new tn.classes.URLSearchParams,{visitor:function(n,r,o,s){return tn.isNode&&q.isBuffer(n)?(this.append(r,n.toString("base64")),!1):s.defaultVisitor.apply(this,arguments)},...t})}function P$(e){return q.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function j$(e){const t={},n=Object.keys(e);let r;const o=n.length;let s;for(r=0;r<o;r++)s=n[r],t[s]=e[s];return t}function q1(e){function t(n,r,o,s){let a=n[s++];if(a==="__proto__")return!0;const l=Number.isFinite(+a),c=s>=n.length;return a=!a&&q.isArray(o)?o.length:a,c?(q.hasOwnProp(o,a)?o[a]=[o[a],r]:o[a]=r,!l):((!o[a]||!q.isObject(o[a]))&&(o[a]=[]),t(n,r,o[a],s)&&q.isArray(o[a])&&(o[a]=j$(o[a])),!l)}if(q.isFormData(e)&&q.isFunction(e.entries)){const n={};return q.forEachEntry(e,(r,o)=>{t(P$(r),o,n,0)}),n}return null}function I$(e,t,n){if(q.isString(e))try{return(t||JSON.parse)(e),q.trim(e)}catch(r){if(r.name!=="SyntaxError")throw r}return(n||JSON.stringify)(e)}const ra={transitional:Y1,adapter:["xhr","http","fetch"],transformRequest:[function(t,n){const r=n.getContentType()||"",o=r.indexOf("application/json")>-1,s=q.isObject(t);if(s&&q.isHTMLForm(t)&&(t=new FormData(t)),q.isFormData(t))return o?JSON.stringify(q1(t)):t;if(q.isArrayBuffer(t)||q.isBuffer(t)||q.isStream(t)||q.isFile(t)||q.isBlob(t)||q.isReadableStream(t))return t;if(q.isArrayBufferView(t))return t.buffer;if(q.isURLSearchParams(t))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let l;if(s){if(r.indexOf("application/x-www-form-urlencoded")>-1)return M$(t,this.formSerializer).toString();if((l=q.isFileList(t))||r.indexOf("multipart/form-data")>-1){const c=this.env&&this.env.FormData;return ic(l?{"files[]":t}:t,c&&new c,this.formSerializer)}}return s||o?(n.setContentType("application/json",!1),I$(t)):t}],transformResponse:[function(t){const n=this.transitional||ra.transitional,r=n&&n.forcedJSONParsing,o=this.responseType==="json";if(q.isResponse(t)||q.isReadableStream(t))return t;if(t&&q.isString(t)&&(r&&!this.responseType||o)){const a=!(n&&n.silentJSONParsing)&&o;try{return JSON.parse(t,this.parseReviver)}catch(l){if(a)throw l.name==="SyntaxError"?Ke.from(l,Ke.ERR_BAD_RESPONSE,this,null,this.response):l}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:tn.classes.FormData,Blob:tn.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};q.forEach(["delete","get","head","post","put","patch"],e=>{ra.headers[e]={}});const D$=q.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),A$=e=>{const t={};let n,r,o;return e&&e.split(`
|
|
252
|
-
`).forEach(function(a){o=a.indexOf(":"),n=a.substring(0,o).trim().toLowerCase(),r=a.substring(o+1).trim(),!(!n||t[n]&&D$[n])&&(n==="set-cookie"?t[n]?t[n].push(r):t[n]=[r]:t[n]=t[n]?t[n]+", "+r:r)}),t},G1=Symbol("internals");function oa(e){return e&&String(e).trim().toLowerCase()}function ac(e){return e===!1||e==null?e:q.isArray(e)?e.map(ac):String(e)}function R$(e){const t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let r;for(;r=n.exec(e);)t[r[1]]=r[2];return t}const N$=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function Hf(e,t,n,r,o){if(q.isFunction(r))return r.call(this,t,n);if(o&&(t=n),!!q.isString(t)){if(q.isString(r))return t.indexOf(r)!==-1;if(q.isRegExp(r))return r.test(t)}}function $$(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,n,r)=>n.toUpperCase()+r)}function L$(e,t){const n=q.toCamelCase(" "+t);["get","set","has"].forEach(r=>{Object.defineProperty(e,r+n,{value:function(o,s,a){return this[r].call(this,t,o,s,a)},configurable:!0})})}let yn=class{constructor(t){t&&this.set(t)}set(t,n,r){const o=this;function s(l,c,d){const u=oa(c);if(!u)throw new Error("header name must be a non-empty string");const f=q.findKey(o,u);(!f||o[f]===void 0||d===!0||d===void 0&&o[f]!==!1)&&(o[f||c]=ac(l))}const a=(l,c)=>q.forEach(l,(d,u)=>s(d,u,c));if(q.isPlainObject(t)||t instanceof this.constructor)a(t,n);else if(q.isString(t)&&(t=t.trim())&&!N$(t))a(A$(t),n);else if(q.isObject(t)&&q.isIterable(t)){let l={},c,d;for(const u of t){if(!q.isArray(u))throw TypeError("Object iterator must return a key-value pair");l[d=u[0]]=(c=l[d])?q.isArray(c)?[...c,u[1]]:[c,u[1]]:u[1]}a(l,n)}else t!=null&&s(n,t,r);return this}get(t,n){if(t=oa(t),t){const r=q.findKey(this,t);if(r){const o=this[r];if(!n)return o;if(n===!0)return R$(o);if(q.isFunction(n))return n.call(this,o,r);if(q.isRegExp(n))return n.exec(o);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,n){if(t=oa(t),t){const r=q.findKey(this,t);return!!(r&&this[r]!==void 0&&(!n||Hf(this,this[r],r,n)))}return!1}delete(t,n){const r=this;let o=!1;function s(a){if(a=oa(a),a){const l=q.findKey(r,a);l&&(!n||Hf(r,r[l],l,n))&&(delete r[l],o=!0)}}return q.isArray(t)?t.forEach(s):s(t),o}clear(t){const n=Object.keys(this);let r=n.length,o=!1;for(;r--;){const s=n[r];(!t||Hf(this,this[s],s,t,!0))&&(delete this[s],o=!0)}return o}normalize(t){const n=this,r={};return q.forEach(this,(o,s)=>{const a=q.findKey(r,s);if(a){n[a]=ac(o),delete n[s];return}const l=t?$$(s):String(s).trim();l!==s&&delete n[s],n[l]=ac(o),r[l]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const n=Object.create(null);return q.forEach(this,(r,o)=>{r!=null&&r!==!1&&(n[o]=t&&q.isArray(r)?r.join(", "):r)}),n}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,n])=>t+": "+n).join(`
|
|
253
|
-
`)}getSetCookie(){return this.get("set-cookie")||[]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...n){const r=new this(t);return n.forEach(o=>r.set(o)),r}static accessor(t){const r=(this[G1]=this[G1]={accessors:{}}).accessors,o=this.prototype;function s(a){const l=oa(a);r[l]||(L$(o,a),r[l]=!0)}return q.isArray(t)?t.forEach(s):s(t),this}};yn.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),q.reduceDescriptors(yn.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(r){this[n]=r}}}),q.freezeMethods(yn);function Uf(e,t){const n=this||ra,r=t||n,o=yn.from(r.headers);let s=r.data;return q.forEach(e,function(l){s=l.call(n,s,o.normalize(),t?t.status:void 0)}),o.normalize(),s}function K1(e){return!!(e&&e.__CANCEL__)}function Es(e,t,n){Ke.call(this,e??"canceled",Ke.ERR_CANCELED,t,n),this.name="CanceledError"}q.inherits(Es,Ke,{__CANCEL__:!0});function X1(e,t,n){const r=n.config.validateStatus;!n.status||!r||r(n.status)?e(n):t(new Ke("Request failed with status code "+n.status,[Ke.ERR_BAD_REQUEST,Ke.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}function B$(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function _$(e,t){e=e||10;const n=new Array(e),r=new Array(e);let o=0,s=0,a;return t=t!==void 0?t:1e3,function(c){const d=Date.now(),u=r[s];a||(a=d),n[o]=c,r[o]=d;let f=s,h=0;for(;f!==o;)h+=n[f++],f=f%e;if(o=(o+1)%e,o===s&&(s=(s+1)%e),d-a<t)return;const m=u&&d-u;return m?Math.round(h*1e3/m):void 0}}function F$(e,t){let n=0,r=1e3/t,o,s;const a=(d,u=Date.now())=>{n=u,o=null,s&&(clearTimeout(s),s=null),e(...d)};return[(...d)=>{const u=Date.now(),f=u-n;f>=r?a(d,u):(o=d,s||(s=setTimeout(()=>{s=null,a(o)},r-f)))},()=>o&&a(o)]}const lc=(e,t,n=3)=>{let r=0;const o=_$(50,250);return F$(s=>{const a=s.loaded,l=s.lengthComputable?s.total:void 0,c=a-r,d=o(c),u=a<=l;r=a;const f={loaded:a,total:l,progress:l?a/l:void 0,bytes:c,rate:d||void 0,estimated:d&&l&&u?(l-a)/d:void 0,event:s,lengthComputable:l!=null,[t?"download":"upload"]:!0};e(f)},n)},Z1=(e,t)=>{const n=e!=null;return[r=>t[0]({lengthComputable:n,total:e,loaded:r}),t[1]]},J1=e=>(...t)=>q.asap(()=>e(...t)),W$=tn.hasStandardBrowserEnv?((e,t)=>n=>(n=new URL(n,tn.origin),e.protocol===n.protocol&&e.host===n.host&&(t||e.port===n.port)))(new URL(tn.origin),tn.navigator&&/(msie|trident)/i.test(tn.navigator.userAgent)):()=>!0,z$=tn.hasStandardBrowserEnv?{write(e,t,n,r,o,s,a){if(typeof document>"u")return;const l=[`${e}=${encodeURIComponent(t)}`];q.isNumber(n)&&l.push(`expires=${new Date(n).toUTCString()}`),q.isString(r)&&l.push(`path=${r}`),q.isString(o)&&l.push(`domain=${o}`),s===!0&&l.push("secure"),q.isString(a)&&l.push(`SameSite=${a}`),document.cookie=l.join("; ")},read(e){if(typeof document>"u")return null;const t=document.cookie.match(new RegExp("(?:^|; )"+e+"=([^;]*)"));return t?decodeURIComponent(t[1]):null},remove(e){this.write(e,"",Date.now()-864e5,"/")}}:{write(){},read(){return null},remove(){}};function V$(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function H$(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function Q1(e,t,n){let r=!V$(t);return e&&(r||n==!1)?H$(e,t):t}const e2=e=>e instanceof yn?{...e}:e;function Oo(e,t){t=t||{};const n={};function r(d,u,f,h){return q.isPlainObject(d)&&q.isPlainObject(u)?q.merge.call({caseless:h},d,u):q.isPlainObject(u)?q.merge({},u):q.isArray(u)?u.slice():u}function o(d,u,f,h){if(q.isUndefined(u)){if(!q.isUndefined(d))return r(void 0,d,f,h)}else return r(d,u,f,h)}function s(d,u){if(!q.isUndefined(u))return r(void 0,u)}function a(d,u){if(q.isUndefined(u)){if(!q.isUndefined(d))return r(void 0,d)}else return r(void 0,u)}function l(d,u,f){if(f in t)return r(d,u);if(f in e)return r(void 0,d)}const c={url:s,method:s,data:s,baseURL:a,transformRequest:a,transformResponse:a,paramsSerializer:a,timeout:a,timeoutMessage:a,withCredentials:a,withXSRFToken:a,adapter:a,responseType:a,xsrfCookieName:a,xsrfHeaderName:a,onUploadProgress:a,onDownloadProgress:a,decompress:a,maxContentLength:a,maxBodyLength:a,beforeRedirect:a,transport:a,httpAgent:a,httpsAgent:a,cancelToken:a,socketPath:a,responseEncoding:a,validateStatus:l,headers:(d,u,f)=>o(e2(d),e2(u),f,!0)};return q.forEach(Object.keys({...e,...t}),function(u){const f=c[u]||o,h=f(e[u],t[u],u);q.isUndefined(h)&&f!==l||(n[u]=h)}),n}const t2=e=>{const t=Oo({},e);let{data:n,withXSRFToken:r,xsrfHeaderName:o,xsrfCookieName:s,headers:a,auth:l}=t;if(t.headers=a=yn.from(a),t.url=H1(Q1(t.baseURL,t.url,t.allowAbsoluteUrls),e.params,e.paramsSerializer),l&&a.set("Authorization","Basic "+btoa((l.username||"")+":"+(l.password?unescape(encodeURIComponent(l.password)):""))),q.isFormData(n)){if(tn.hasStandardBrowserEnv||tn.hasStandardBrowserWebWorkerEnv)a.setContentType(void 0);else if(q.isFunction(n.getHeaders)){const c=n.getHeaders(),d=["content-type","content-length"];Object.entries(c).forEach(([u,f])=>{d.includes(u.toLowerCase())&&a.set(u,f)})}}if(tn.hasStandardBrowserEnv&&(r&&q.isFunction(r)&&(r=r(t)),r||r!==!1&&W$(t.url))){const c=o&&s&&z$.read(s);c&&a.set(o,c)}return t},U$=typeof XMLHttpRequest<"u"&&function(e){return new Promise(function(n,r){const o=t2(e);let s=o.data;const a=yn.from(o.headers).normalize();let{responseType:l,onUploadProgress:c,onDownloadProgress:d}=o,u,f,h,m,g;function y(){m&&m(),g&&g(),o.cancelToken&&o.cancelToken.unsubscribe(u),o.signal&&o.signal.removeEventListener("abort",u)}let b=new XMLHttpRequest;b.open(o.method.toUpperCase(),o.url,!0),b.timeout=o.timeout;function v(){if(!b)return;const S=yn.from("getAllResponseHeaders"in b&&b.getAllResponseHeaders()),w={data:!l||l==="text"||l==="json"?b.responseText:b.response,status:b.status,statusText:b.statusText,headers:S,config:e,request:b};X1(function(E){n(E),y()},function(E){r(E),y()},w),b=null}"onloadend"in b?b.onloadend=v:b.onreadystatechange=function(){!b||b.readyState!==4||b.status===0&&!(b.responseURL&&b.responseURL.indexOf("file:")===0)||setTimeout(v)},b.onabort=function(){b&&(r(new Ke("Request aborted",Ke.ECONNABORTED,e,b)),b=null)},b.onerror=function(C){const w=C&&C.message?C.message:"Network Error",T=new Ke(w,Ke.ERR_NETWORK,e,b);T.event=C||null,r(T),b=null},b.ontimeout=function(){let C=o.timeout?"timeout of "+o.timeout+"ms exceeded":"timeout exceeded";const w=o.transitional||Y1;o.timeoutErrorMessage&&(C=o.timeoutErrorMessage),r(new Ke(C,w.clarifyTimeoutError?Ke.ETIMEDOUT:Ke.ECONNABORTED,e,b)),b=null},s===void 0&&a.setContentType(null),"setRequestHeader"in b&&q.forEach(a.toJSON(),function(C,w){b.setRequestHeader(w,C)}),q.isUndefined(o.withCredentials)||(b.withCredentials=!!o.withCredentials),l&&l!=="json"&&(b.responseType=o.responseType),d&&([h,g]=lc(d,!0),b.addEventListener("progress",h)),c&&b.upload&&([f,m]=lc(c),b.upload.addEventListener("progress",f),b.upload.addEventListener("loadend",m)),(o.cancelToken||o.signal)&&(u=S=>{b&&(r(!S||S.type?new Es(null,e,b):S),b.abort(),b=null)},o.cancelToken&&o.cancelToken.subscribe(u),o.signal&&(o.signal.aborted?u():o.signal.addEventListener("abort",u)));const k=B$(o.url);if(k&&tn.protocols.indexOf(k)===-1){r(new Ke("Unsupported protocol "+k+":",Ke.ERR_BAD_REQUEST,e));return}b.send(s||null)})},Y$=(e,t)=>{const{length:n}=e=e?e.filter(Boolean):[];if(t||n){let r=new AbortController,o;const s=function(d){if(!o){o=!0,l();const u=d instanceof Error?d:this.reason;r.abort(u instanceof Ke?u:new Es(u instanceof Error?u.message:u))}};let a=t&&setTimeout(()=>{a=null,s(new Ke(`timeout ${t} of ms exceeded`,Ke.ETIMEDOUT))},t);const l=()=>{e&&(a&&clearTimeout(a),a=null,e.forEach(d=>{d.unsubscribe?d.unsubscribe(s):d.removeEventListener("abort",s)}),e=null)};e.forEach(d=>d.addEventListener("abort",s));const{signal:c}=r;return c.unsubscribe=()=>q.asap(l),c}},q$=function*(e,t){let n=e.byteLength;if(n<t){yield e;return}let r=0,o;for(;r<n;)o=r+t,yield e.slice(r,o),r=o},G$=async function*(e,t){for await(const n of K$(e))yield*q$(n,t)},K$=async function*(e){if(e[Symbol.asyncIterator]){yield*e;return}const t=e.getReader();try{for(;;){const{done:n,value:r}=await t.read();if(n)break;yield r}}finally{await t.cancel()}},n2=(e,t,n,r)=>{const o=G$(e,t);let s=0,a,l=c=>{a||(a=!0,r&&r(c))};return new ReadableStream({async pull(c){try{const{done:d,value:u}=await o.next();if(d){l(),c.close();return}let f=u.byteLength;if(n){let h=s+=f;n(h)}c.enqueue(new Uint8Array(u))}catch(d){throw l(d),d}},cancel(c){return l(c),o.return()}},{highWaterMark:2})},r2=64*1024,{isFunction:cc}=q,X$=(({Request:e,Response:t})=>({Request:e,Response:t}))(q.global),{ReadableStream:o2,TextEncoder:s2}=q.global,i2=(e,...t)=>{try{return!!e(...t)}catch{return!1}},Z$=e=>{e=q.merge.call({skipUndefined:!0},X$,e);const{fetch:t,Request:n,Response:r}=e,o=t?cc(t):typeof fetch=="function",s=cc(n),a=cc(r);if(!o)return!1;const l=o&&cc(o2),c=o&&(typeof s2=="function"?(g=>y=>g.encode(y))(new s2):async g=>new Uint8Array(await new n(g).arrayBuffer())),d=s&&l&&i2(()=>{let g=!1;const y=new n(tn.origin,{body:new o2,method:"POST",get duplex(){return g=!0,"half"}}).headers.has("Content-Type");return g&&!y}),u=a&&l&&i2(()=>q.isReadableStream(new r("").body)),f={stream:u&&(g=>g.body)};o&&["text","arrayBuffer","blob","formData","stream"].forEach(g=>{!f[g]&&(f[g]=(y,b)=>{let v=y&&y[g];if(v)return v.call(y);throw new Ke(`Response type '${g}' is not supported`,Ke.ERR_NOT_SUPPORT,b)})});const h=async g=>{if(g==null)return 0;if(q.isBlob(g))return g.size;if(q.isSpecCompliantForm(g))return(await new n(tn.origin,{method:"POST",body:g}).arrayBuffer()).byteLength;if(q.isArrayBufferView(g)||q.isArrayBuffer(g))return g.byteLength;if(q.isURLSearchParams(g)&&(g=g+""),q.isString(g))return(await c(g)).byteLength},m=async(g,y)=>{const b=q.toFiniteNumber(g.getContentLength());return b??h(y)};return async g=>{let{url:y,method:b,data:v,signal:k,cancelToken:S,timeout:C,onDownloadProgress:w,onUploadProgress:T,responseType:E,headers:M,withCredentials:j="same-origin",fetchOptions:A}=t2(g),L=t||fetch;E=E?(E+"").toLowerCase():"text";let O=Y$([k,S&&S.toAbortSignal()],C),N=null;const P=O&&O.unsubscribe&&(()=>{O.unsubscribe()});let R;try{if(T&&d&&b!=="get"&&b!=="head"&&(R=await m(M,v))!==0){let D=new n(y,{method:"POST",body:v,duplex:"half"}),z;if(q.isFormData(v)&&(z=D.headers.get("content-type"))&&M.setContentType(z),D.body){const[V,X]=Z1(R,lc(J1(T)));v=n2(D.body,r2,V,X)}}q.isString(j)||(j=j?"include":"omit");const $=s&&"credentials"in n.prototype,_={...A,signal:O,method:b.toUpperCase(),headers:M.normalize().toJSON(),body:v,duplex:"half",credentials:$?j:void 0};N=s&&new n(y,_);let U=await(s?L(N,A):L(y,_));const H=u&&(E==="stream"||E==="response");if(u&&(w||H&&P)){const D={};["status","statusText","headers"].forEach(G=>{D[G]=U[G]});const z=q.toFiniteNumber(U.headers.get("content-length")),[V,X]=w&&Z1(z,lc(J1(w),!0))||[];U=new r(n2(U.body,r2,V,()=>{X&&X(),P&&P()}),D)}E=E||"text";let B=await f[q.findKey(f,E)||"text"](U,g);return!H&&P&&P(),await new Promise((D,z)=>{X1(D,z,{data:B,headers:yn.from(U.headers),status:U.status,statusText:U.statusText,config:g,request:N})})}catch($){throw P&&P(),$&&$.name==="TypeError"&&/Load failed|fetch/i.test($.message)?Object.assign(new Ke("Network Error",Ke.ERR_NETWORK,g,N),{cause:$.cause||$}):Ke.from($,$&&$.code,g,N)}}},J$=new Map,a2=e=>{let t=e&&e.env||{};const{fetch:n,Request:r,Response:o}=t,s=[r,o,n];let a=s.length,l=a,c,d,u=J$;for(;l--;)c=s[l],d=u.get(c),d===void 0&&u.set(c,d=l?new Map:Z$(t)),u=d;return d};a2();const Yf={http:x$,xhr:U$,fetch:{get:a2}};q.forEach(Yf,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const l2=e=>`- ${e}`,Q$=e=>q.isFunction(e)||e===null||e===!1;function e8(e,t){e=q.isArray(e)?e:[e];const{length:n}=e;let r,o;const s={};for(let a=0;a<n;a++){r=e[a];let l;if(o=r,!Q$(r)&&(o=Yf[(l=String(r)).toLowerCase()],o===void 0))throw new Ke(`Unknown adapter '${l}'`);if(o&&(q.isFunction(o)||(o=o.get(t))))break;s[l||"#"+a]=o}if(!o){const a=Object.entries(s).map(([c,d])=>`adapter ${c} `+(d===!1?"is not supported by the environment":"is not available in the build"));let l=n?a.length>1?`since :
|
|
254
|
-
`+a.map(l2).join(`
|
|
255
|
-
`):" "+l2(a[0]):"as no adapter specified";throw new Ke("There is no suitable adapter to dispatch the request "+l,"ERR_NOT_SUPPORT")}return o}const c2={getAdapter:e8,adapters:Yf};function qf(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new Es(null,e)}function d2(e){return qf(e),e.headers=yn.from(e.headers),e.data=Uf.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),c2.getAdapter(e.adapter||ra.adapter,e)(e).then(function(r){return qf(e),r.data=Uf.call(e,e.transformResponse,r),r.headers=yn.from(r.headers),r},function(r){return K1(r)||(qf(e),r&&r.response&&(r.response.data=Uf.call(e,e.transformResponse,r.response),r.response.headers=yn.from(r.response.headers))),Promise.reject(r)})}const u2="1.13.2",dc={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{dc[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}});const f2={};dc.transitional=function(t,n,r){function o(s,a){return"[Axios v"+u2+"] Transitional option '"+s+"'"+a+(r?". "+r:"")}return(s,a,l)=>{if(t===!1)throw new Ke(o(a," has been removed"+(n?" in "+n:"")),Ke.ERR_DEPRECATED);return n&&!f2[a]&&(f2[a]=!0,console.warn(o(a," has been deprecated since v"+n+" and will be removed in the near future"))),t?t(s,a,l):!0}},dc.spelling=function(t){return(n,r)=>(console.warn(`${r} is likely a misspelling of ${t}`),!0)};function t8(e,t,n){if(typeof e!="object")throw new Ke("options must be an object",Ke.ERR_BAD_OPTION_VALUE);const r=Object.keys(e);let o=r.length;for(;o-- >0;){const s=r[o],a=t[s];if(a){const l=e[s],c=l===void 0||a(l,s,e);if(c!==!0)throw new Ke("option "+s+" must be "+c,Ke.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new Ke("Unknown option "+s,Ke.ERR_BAD_OPTION)}}const uc={assertOptions:t8,validators:dc},wr=uc.validators;let Mo=class{constructor(t){this.defaults=t||{},this.interceptors={request:new U1,response:new U1}}async request(t,n){try{return await this._request(t,n)}catch(r){if(r instanceof Error){let o={};Error.captureStackTrace?Error.captureStackTrace(o):o=new Error;const s=o.stack?o.stack.replace(/^.+\n/,""):"";try{r.stack?s&&!String(r.stack).endsWith(s.replace(/^.+\n.+\n/,""))&&(r.stack+=`
|
|
256
|
-
`+s):r.stack=s}catch{}}throw r}}_request(t,n){typeof t=="string"?(n=n||{},n.url=t):n=t||{},n=Oo(this.defaults,n);const{transitional:r,paramsSerializer:o,headers:s}=n;r!==void 0&&uc.assertOptions(r,{silentJSONParsing:wr.transitional(wr.boolean),forcedJSONParsing:wr.transitional(wr.boolean),clarifyTimeoutError:wr.transitional(wr.boolean)},!1),o!=null&&(q.isFunction(o)?n.paramsSerializer={serialize:o}:uc.assertOptions(o,{encode:wr.function,serialize:wr.function},!0)),n.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls!==void 0?n.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:n.allowAbsoluteUrls=!0),uc.assertOptions(n,{baseUrl:wr.spelling("baseURL"),withXsrfToken:wr.spelling("withXSRFToken")},!0),n.method=(n.method||this.defaults.method||"get").toLowerCase();let a=s&&q.merge(s.common,s[n.method]);s&&q.forEach(["delete","get","head","post","put","patch","common"],g=>{delete s[g]}),n.headers=yn.concat(a,s);const l=[];let c=!0;this.interceptors.request.forEach(function(y){typeof y.runWhen=="function"&&y.runWhen(n)===!1||(c=c&&y.synchronous,l.unshift(y.fulfilled,y.rejected))});const d=[];this.interceptors.response.forEach(function(y){d.push(y.fulfilled,y.rejected)});let u,f=0,h;if(!c){const g=[d2.bind(this),void 0];for(g.unshift(...l),g.push(...d),h=g.length,u=Promise.resolve(n);f<h;)u=u.then(g[f++],g[f++]);return u}h=l.length;let m=n;for(;f<h;){const g=l[f++],y=l[f++];try{m=g(m)}catch(b){y.call(this,b);break}}try{u=d2.call(this,m)}catch(g){return Promise.reject(g)}for(f=0,h=d.length;f<h;)u=u.then(d[f++],d[f++]);return u}getUri(t){t=Oo(this.defaults,t);const n=Q1(t.baseURL,t.url,t.allowAbsoluteUrls);return H1(n,t.params,t.paramsSerializer)}};q.forEach(["delete","get","head","options"],function(t){Mo.prototype[t]=function(n,r){return this.request(Oo(r||{},{method:t,url:n,data:(r||{}).data}))}}),q.forEach(["post","put","patch"],function(t){function n(r){return function(s,a,l){return this.request(Oo(l||{},{method:t,headers:r?{"Content-Type":"multipart/form-data"}:{},url:s,data:a}))}}Mo.prototype[t]=n(),Mo.prototype[t+"Form"]=n(!0)});let n8=class ox{constructor(t){if(typeof t!="function")throw new TypeError("executor must be a function.");let n;this.promise=new Promise(function(s){n=s});const r=this;this.promise.then(o=>{if(!r._listeners)return;let s=r._listeners.length;for(;s-- >0;)r._listeners[s](o);r._listeners=null}),this.promise.then=o=>{let s;const a=new Promise(l=>{r.subscribe(l),s=l}).then(o);return a.cancel=function(){r.unsubscribe(s)},a},t(function(s,a,l){r.reason||(r.reason=new Es(s,a,l),n(r.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const n=this._listeners.indexOf(t);n!==-1&&this._listeners.splice(n,1)}toAbortSignal(){const t=new AbortController,n=r=>{t.abort(r)};return this.subscribe(n),t.signal.unsubscribe=()=>this.unsubscribe(n),t.signal}static source(){let t;return{token:new ox(function(o){t=o}),cancel:t}}};function r8(e){return function(n){return e.apply(null,n)}}function o8(e){return q.isObject(e)&&e.isAxiosError===!0}const Gf={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511,WebServerIsDown:521,ConnectionTimedOut:522,OriginIsUnreachable:523,TimeoutOccurred:524,SslHandshakeFailed:525,InvalidSslCertificate:526};Object.entries(Gf).forEach(([e,t])=>{Gf[t]=e});function p2(e){const t=new Mo(e),n=P1(Mo.prototype.request,t);return q.extend(n,Mo.prototype,t,{allOwnKeys:!0}),q.extend(n,t,null,{allOwnKeys:!0}),n.create=function(o){return p2(Oo(e,o))},n}const Tt=p2(ra);Tt.Axios=Mo,Tt.CanceledError=Es,Tt.CancelToken=n8,Tt.isCancel=K1,Tt.VERSION=u2,Tt.toFormData=ic,Tt.AxiosError=Ke,Tt.Cancel=Tt.CanceledError,Tt.all=function(t){return Promise.all(t)},Tt.spread=r8,Tt.isAxiosError=o8,Tt.mergeConfig=Oo,Tt.AxiosHeaders=yn,Tt.formToJSON=e=>q1(q.isHTMLForm(e)?new FormData(e):e),Tt.getAdapter=c2.getAdapter,Tt.HttpStatusCode=Gf,Tt.default=Tt;const{Axios:NB,AxiosError:$B,CanceledError:LB,isCancel:BB,CancelToken:_B,VERSION:FB,all:WB,Cancel:zB,isAxiosError:VB,spread:HB,toFormData:UB,AxiosHeaders:YB,HttpStatusCode:qB,formToJSON:GB,getAdapter:KB,mergeConfig:XB}=Tt,Kf={BASE_URL:"https://qa.3sc.ai/api",VERSION:"/v1"},sa={headers:{"Content-Type":"application/json"},withCredentials:!0},h2=Tt.create({baseURL:Kf.BASE_URL,axiosConfig:sa});h2.interceptors.request.use(function(e){return e},function(e){return Promise.reject(e)}),h2.interceptors.response.use(function(e){return e},function(e){return Promise.reject(e)});const Bn={TOKEN:"token",USER:"user",SNOP:"snop",SELECTED_BU:"selected_business_unit",SETTINGS:"settings"},m2={TENANT_ID:"tenant_id",BU_ID:"bu_id"},s8=Object.values({"SKU Name":"sku_name",Node:"node","Channel Name":"channel_name"}),i8=[10,25,50,100],a8={MARK_ALL_READ:"MARK_ALL_READ"},l8=i8.map(e=>({label:e,value:e})),g2={PRIMARY:"PRIMARY",SECONDARY:"SECONDARY"},fc={NOTIFICATION:"/notifications",SETTING:"/configuration/setting"};function pc(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)e[r]=n[r]}return e}var c8={read:function(e){return e[0]==='"'&&(e=e.slice(1,-1)),e.replace(/(%[\dA-F]{2})+/gi,decodeURIComponent)},write:function(e){return encodeURIComponent(e).replace(/%(2[346BF]|3[AC-F]|40|5[BDE]|60|7[BCD])/g,decodeURIComponent)}};function Xf(e,t){function n(o,s,a){if(!(typeof document>"u")){a=pc({},t,a),typeof a.expires=="number"&&(a.expires=new Date(Date.now()+a.expires*864e5)),a.expires&&(a.expires=a.expires.toUTCString()),o=encodeURIComponent(o).replace(/%(2[346B]|5E|60|7C)/g,decodeURIComponent).replace(/[()]/g,escape);var l="";for(var c in a)a[c]&&(l+="; "+c,a[c]!==!0&&(l+="="+a[c].split(";")[0]));return document.cookie=o+"="+e.write(s,o)+l}}function r(o){if(!(typeof document>"u"||arguments.length&&!o)){for(var s=document.cookie?document.cookie.split("; "):[],a={},l=0;l<s.length;l++){var c=s[l].split("="),d=c.slice(1).join("=");try{var u=decodeURIComponent(c[0]);if(a[u]=e.read(d,u),o===u)break}catch{}}return o?a[o]:a}}return Object.create({set:n,get:r,remove:function(o,s){n(o,"",pc({},s,{expires:-1}))},withAttributes:function(o){return Xf(this.converter,pc({},this.attributes,o))},withConverter:function(o){return Xf(pc({},this.converter,o),this.attributes)}},{attributes:{value:Object.freeze(t)},converter:{value:Object.freeze(e)}})}var d8=Xf(c8,{path:"/"});const u8=Gl(Bn.SNOP),f8=Gl(Bn.SELECTED_BU),p8=Gl(Bn.USER);Gl(Bn.SETTINGS);const y2={BU_IDS:f8?.business_unit_id,TOKEN:JSON.parse(d8.get(Bn.TOKEN)||null),TENANT_IDS:p8?.tenant_id,SNOP_IDS:u8?.snop_id},{TENANT_ID:h8,BU_ID:m8}=m2,{TENANT_IDS:g8,BU_IDS:y8}=y2,ia=async({baseUrl:e,payload:t})=>{try{const n=`${e}${fc.SETTING}/v1?${h8}=${g8}&${m8}=${y8}`;return await Tt.post(n,t,sa)}catch(n){return n}},aa=JSON.parse(localStorage.getItem("configuration")),Zf=localStorage.getItem("i18nextLng"),b8=aa?.entities?.locationHierarchy?.[Zf]??aa?.entities?.locationHierarchy??{},v8=aa?.entities?.productHierarchy?.[Zf]??aa?.entities?.productHierarchy??{},x8=b8?.base??"Node",w8=v8?.base??"SKU",S8=aa?.entities?.labelChannel?.[Zf]||"Channel";JSON.parse(localStorage.getItem("snop"));const C8=({columns:e,gridPath:t,baseUrl:n,isDefaultConfig:r,pageSize:o=10,childUniqueKey:s,data:a})=>{const l=a?.length;let{definitions:c,defaultUserSettings:d,labels:u}=e;const f=$r(u),h=t.split("/").filter(Boolean),m=JSON.parse(localStorage.getItem(Bn.SETTINGS));let g=h.reduce((S,C)=>S?.[C],m)||null;const y=$r(g?.columns||[]);if(!r&&t&&l){let S=(d&&Jf({col:d,childUniqueKey:s,definitions:c}))??Jf({col:c,childUniqueKey:s});const C=S.filter(T=>!y[T.key]),w=g&&g?.columns?.some(T=>T?.children&&T.children[s]);if(l&&(C.length||s&&w===!1)){if(w==!1&&s.length>0){const T=$r(S);S=g?.columns?.map(E=>E?.children&&!E.children[s]?{...E,children:{...E.children,[s]:T?.[E?.key]?.children[s]}}:E)}(async()=>{try{const E={...m||{platform:{theme:"light"}}},M=g?.pageSize??o;let j=E;for(let A=0;A<h.length;A++){const L=h[A];A===h.length-1?j[L]={columns:S,pageSize:M}:(j[L]={...j[L]||{}},j=j[L])}localStorage.setItem(Bn.SETTINGS,JSON.stringify(E)),await ia({baseUrl:n,payload:E})}catch(T){console.error(T)}})()}}d=(g?.columns&&T8(y,d,s))??d??Jf({col:c});const b=[],v=$r(d);for(const S of c){const C=v[S.key]||{},w=f[S.key]||{},T=y[S.key],E=$r(C.children||[]),M=$r(w.children||[]);let j={...S,style:T?.style,...C,...w};S.children?.length&&(j.children=S.children.map(A=>({...A,...E[A.key],...M[A.key]}))),b.push(j)}return b.sort((S,C)=>S.sequenceId-C.sequenceId)},b2=e=>e.sort((t,n)=>t.sequenceId-n.sequenceId),la=({columns:e,childUniqueKey:t,definitions:n})=>{let r=n||e;return e?.map(o=>{let s=r?.find(a=>a?.key===o?.key);return{id:o.id,key:o.key,sequenceId:o.sequenceId||o.id,isHidden:o.isHidden||!1,style:o.style||s?.style||{},...o?.children&&{children:t?{[t]:la({columns:o.children,definitions:s?.children})}:la({columns:o.children,definitions:s?.children})}}})},$r=e=>Array.isArray(e)&&e?.reduce((t,n)=>(t[n.key]=n,t),{}),Jf=({col:e,childUniqueKey:t,definitions:n})=>la({columns:e,childUniqueKey:t,definitions:n}),T8=(e,t,n)=>t.map(o=>{const s=e[o.key],a=o.children?o.children.map(l=>{const d=$r(Array.isArray(s?.children)?s?.children:s?.children?.[n])?.[l.key];return{...l,sequenceId:d?.sequenceId||l.sequenceId,isHidden:d?.isHidden??l.isHidden}}):void 0;return{...o,sequenceId:s?.sequenceId||o.sequenceId,isHidden:s?.isHidden??o.isHidden,...a?{children:a}:{}}}),k8=({t:e})=>{const t=[{id:1,key:"sku_name",isSortable:!0,isMandatory:!0},{id:2,key:"node",isSortable:!0,isMandatory:!0},{id:3,key:"channel_name",isSortable:!0,isMandatory:!0}],n=[{id:1,key:"sku_name",sequenceId:1,isHidden:!1,style:{width:"20rem",minWidth:"20rem",maxWidth:"20rem"}},{id:2,key:"node",sequenceId:2,isHidden:!1,style:{width:"20rem",minWidth:"20rem",maxWidth:"20rem"}},{id:3,key:"channel_name",sequenceId:3,isHidden:!1,style:{width:"20rem",minWidth:"20rem",maxWidth:"20rem"}}],r=[{id:1,key:"sku_name",label:e(w8),isLocalizable:!1},{id:2,key:"node",label:e(x8),isLocalizable:!1},{id:3,key:"channel_name",label:e(S8),isLocalizable:!1}];return{definitions:t,defaultUserSettings:n,labels:r}},E8=e=>{if(!e)return null;try{const t=JSON.parse(localStorage.getItem(Bn.SETTINGS));return e.split("/").filter(Boolean).reduce((n,r)=>n?.[r],t)??null}catch{return null}},v2=(e=[],t)=>{const n=new Map,r=o=>o.forEach(s=>{n.set(s.key,s);const a=Array.isArray(s.children)?s.children:t?s.children?.[t]??[]:[];a.length&&r(a)});return r(e),n},x2=(e,t,n,r)=>e.map(o=>{const s=t.get(o.key),a=n?.get(o.key),l={key:o.key,sequenceId:s?.sequenceId??a?.sequenceId??o.sequenceId,isHidden:s?.isHidden??!1,style:s?.style??o.style??{}};if(o.children?.length){const c=x2(o.children,t,n,r);if(r){const d=s?.children&&!Array.isArray(s.children)?s.children:{};l.children={...d,[r]:c}}else l.children=c}return l}),O8=({definitions:e=[],defaultSetting:t=[],gridPath:n,childUniqueKey:r})=>{const s=E8(n)?.columns??[],a=v2(s,r),l=v2(t,r),c=(()=>{if(!s.length)return!0;const d=u=>u.some(f=>!a.has(f.key)||d(f.children??[]));return d(e)})();return{settings:x2(e,a,l,r),hasNewColumns:c}},hc=async({settings:e,gridPath:t,baseUrl:n})=>{if(t)try{const r=JSON.parse(localStorage.getItem(Bn.SETTINGS))??{platform:{theme:"light"}},o=t.split("/").filter(Boolean);let s=r;for(let a=0;a<o.length;a++){const l=o[a];a===o.length-1?s[l]={...s[l]??{},columns:e}:(s[l]={...s[l]??{}},s=s[l])}localStorage.setItem(Bn.SETTINGS,JSON.stringify(r)),n&&await ia({baseUrl:n,payload:r})}catch(r){console.error("saveColumnSettings failed:",r)}},M8=e=>{if(!e)return null;const{options:t,...n}=e,r=t?"select":"button",o={button:s=>p.jsx(Dr,{...s,styles:{...s.styles,iconPrimary:s?.styles?.variant=="filled"}}),select:s=>p.jsx(oe,{sx:{"& .MuiInputBase-input":{padding:"0rem!important"},width:s.styles?.width},children:p.jsx(mv,{...s,options:t})})};return o[r]?o[r](n):null},P8=({presentSetting:e,gridSetting:t,gridPath:n,childUniqueKey:r})=>{if(!n)return e;const o=n.split("/").filter(Boolean);let s=o.reduce((d,u)=>d?.[u],e)||null,a=la({columns:t?.grid,childUniqueKey:r});const l=$r(s?.columns);a=a?.map(d=>{const u=d?.children||{},f=l?.[d?.key]?.children||{};return{...d,...(Object.keys(f)?.length>0||u?.[r])&&{children:{...f,[r]:u?.[r]}}}});let c=e;for(let d=0;d<o.length;d++){const u=o[d];d===o.length-1?c[u]={columns:a,pageSize:t?.pageSize??null}:(c[u]=c[u]||{},c=c[u])}return{settingObject:e,defaultUserSettings:a}},j8=async({baseUrl:e,gridSetting:t,childUniqueKey:n,gridPath:r})=>{try{const o=JSON.parse(localStorage.getItem("settings")),{settingObject:s,defaultUserSettings:a}=P8({presentSetting:o,gridSetting:t,gridPath:r,childUniqueKey:n});return localStorage.setItem("settings",JSON.stringify(s)),await ia({baseUrl:e,payload:s}),a}catch(o){console.error(o)}},w2=({index:e,visibleGridColumns:t,width:n,columnUpdaterFunction:r})=>{if(!t||!t[e])return null;t[e];let o=`${n/10}rem`;const s=t.map((a,l)=>l===e?{...a,style:{...a.style,width:o,minWidth:o,maxWidth:o}}:a);return r({updatedColumns:s}),s[e]},I8=({definitions:e=[],labels:t=[],settings:n=[],childUniqueKey:r})=>{const o=(f=[],h=!1)=>{const m=[],g=y=>{y?.forEach(b=>{m.push(b);let v=b.children;h&&r&&v&&!Array.isArray(v)&&(v=v[r]??[]),Array.isArray(v)&&v.length&&g(v)})};return g(f),m},s=o(t),a=o(n,!0),l=new Map(s.map(f=>[f.key,f])),c=new Map(a.map(f=>[f.key,f])),d=f=>{if(f){if(typeof f=="number")return f;if(f.includes("rem"))return parseFloat(f)*16;if(f.includes("px"))return parseFloat(f)}},u=f=>{const h=l.get(f.key),m=c.get(f.key),g=f.isMandatory===!0;return{id:f.key,label:h?.label,field:f.key,renderHeader:y=>p.jsx(rs,{title:y.helpText??y.label,placement:"top",componentsProps:{tooltip:{sx:{fontSize:"1rem",padding:"0.6rem 1rem",boxShadow:"0 2px 8px rgba(0,0,0,0.3)"}}},children:y.label??""}),width:d(m?.style?.width??f.style?.width),minWidth:d(f.style?.minWidth),maxWidth:d(f.style?.maxWidth),sortable:f.isSortable??!1,pinned:f.isSticky?"left":void 0,hidden:m?.isHidden??!1,resizable:f?.isResizable??!0,draggable:f?.isDraggable??!g,hideable:!g,align:"center",deferRender:f.deferRender,renderCell:f.cellRenderer?(y,b,v)=>f.cellRenderer(b,v):void 0,meta:{isMandatory:g,...f},children:f.children?.map(u)}};return e.map(u)},mc=({pagination:e,gridPath:t,baseUrl:n,t:r})=>{const{selectedPage:o,rowPerPage:s,totalRecords:a,onPageChange:l,onPageSizeChange:c}=e,d=mt(),u=async(m,g)=>{if(!g)return;const y=g.split("/").filter(Boolean),b="settings",k={...JSON.parse(localStorage.getItem(b))||{}};let S=k;for(let C=0;C<y.length;C++){const w=y[C];C===y.length-1?S[w]={...S[w]||{},pageSize:m}:(S[w]={...S[w]||{}},S=S[w])}localStorage.setItem(b,JSON.stringify(k)),await ia({baseUrl:n,payload:k})},f=a===0?0:(o-1)*s+1,h=Math.min(o*s,a);return p.jsxs(oe,{sx:{display:"flex",p:"1rem 1.5rem"},children:[p.jsxs(oe,{sx:{display:"flex",flexDirection:"row",alignItems:"center",gap:"0.5rem",width:"100%"},children:[p.jsx(ut,{sx:{fontSize:"1.1rem",color:d.palette.primary.notifyTextColor},children:r("SHOWING_ROWS",{start:f,end:h,current:Math.min(o*s,a),total:a})}),p.jsx(oe,{sx:{"& .MuiInputBase-input":{padding:"0rem 0.8rem!important"},width:"6rem"},children:p.jsx(ys,{options:l8,value:s,onChange:async m=>{c(m),u(m?.value,t)}})})]}),p.jsx(_g,{count:Math.ceil(a/s),page:o,onChange:async(m,g)=>{l(g)},siblingCount:0,shape:"rounded",sx:{width:"100%","& .MuiPagination-ul":{width:"100%",display:"flex",justifyContent:"flex-end","& li:first-of-type":{border:`0.1rem solid ${d.palette.primary.notifyBorderColor}`,color:d.palette.primary.notifyActiveText,marginRight:"1.5rem",borderRadius:"1rem",width:"3rem",height:"3rem",justifyContent:"center",alignItems:"center",display:"flex"},"& li:last-child":{border:`0.1rem solid ${d.palette.primary.notifyBorderColor}`,color:d.palette.primary.notifyActiveText,marginLeft:"1.5rem",borderRadius:"1rem",width:"3rem",height:"3rem",justifyContent:"center",alignItems:"center",display:"flex"}},"& .MuiPaginationItem-root":{color:"#595959",fontSize:"1.1rem",borderRadius:"1rem",width:"3rem",height:"3rem",justifyContent:"center",alignItems:"center",display:"flex","& .MuiSvgIcon-root":{fontSize:"2.2rem"}},"& .Mui-selected":{color:d.palette.primary.notifyActiveText,backgroundColor:`${d.palette.brandColor.paginationBc} !important`}}})]})};mc.propTypes={pagination:i.object.isRequired};const D8=({customTools:e})=>{const t=e?.filter(r=>r?.type===g2.PRIMARY)?.sort((r,o)=>r.sequenceId-o.sequenceId),n=e?.filter(r=>r?.type===g2.SECONDARY)?.sort((r,o)=>r.sequenceId-o.sequenceId);return{primaryButtons:t,secondaryButtons:n}},S2=({customTools:e,isExpanded:t,setIsExpanded:n})=>{const{primaryButtons:r,secondaryButtons:o}=D8({customTools:e}),[s,a]=x.useState(r),l=o?.length>0,{t:c}=x.useContext(ln),d=f=>{f?a([...r,...o]):setTimeout(()=>{a(r)},100)},u=()=>{const f=!t;n(f),d(f)};return x.useEffect(()=>{d(t)},[e]),p.jsxs(p.Fragment,{children:[t&&p.jsx("div",{style:{position:"fixed",left:0,width:"100vw",height:"4rem",zIndex:998}}),p.jsxs(oe,{sx:{display:"flex",alignItems:"center",gap:"0.8rem",flexWrap:"nowrap",maxWidth:"100%",whiteSpace:"nowrap",zIndex:999},children:[p.jsx(jj,{mode:"popLayout",children:s.map((f,h)=>p.jsx(Jr.div,{initial:{opacity:0},animate:{opacity:1},exit:{opacity:0},transition:{duration:.15},layout:!0,children:p.jsx(oe,{sx:{flexShrink:0,minWidth:"fit-content"},children:M8(f)})},`${f.id}_${h}`))}),l&&p.jsx(oe,{sx:{paddingLeft:t?"0.5rem":0},children:p.jsx(Dr,{label:t?"":c("LABEL_MORE_ACTIONS"),styles:{iconPrimary:!0,icon:t?Ge.CrossWhite:Ge.More,colorType:t?"danger":""},onClick:u})})]})]})};S2.propTypes={customTools:i.array.isRequired};const Qf=({defaultTools:e,isManageable:t,customTools:n,baseUrl:r,gridPath:o,pageSize:s,gridData:a,childUniqueKey:l})=>{const{t:c}=x.useContext(ln),d=x.useContext(gs),u=x.useContext(Yi)||{},{visibleGridColumns:f=[],triggerApi:h=!1}=u,[m,g]=x.useState([]),[y,b]=x.useState(!1),v=n?.filter(T=>T.position==="left").sort((T,E)=>T.sequenceId-E.sequenceId)||[],k=n?.filter(T=>T.position==="right").sort((T,E)=>T.sequenceId-E.sequenceId)||[];x.useEffect(()=>{if(f.length&&t){const T={id:99999,sequenceId:99999,isLocalizable:!1,key:"horizons",label:c("Horizons"),isSortable:!1,isHidden:!0,showChildCheckbox:!0,showCheckbox:!1,isMandatory:!0,showInHierarchy:!0,showHide:!0,children:[]};let E=f.map(j=>(j?.children&&j.children.forEach(A=>{T.children.some(O=>O.key===A.key)||T.children.push({...A,showInHierarchy:!0})}),j)).filter(j=>j?.id!==T?.id);const M=T.children.length>0?[...E,T]:E;g(M)}},[f]);const S=async T=>{try{await j8({baseUrl:r,gridPath:o,childUniqueKey:l,gridSetting:{grid:T,pageSize:s}})}catch(E){console.error(E)}finally{d({type:Ve.HAS_SETTING_CHANGE,payload:{hasChange:!1}}),d({type:Ve.TRIGGER_API,payload:{triggerApi:!1}})}};x.useEffect(()=>{h&&t&&S(f)},[h]);const C=T=>{const E=T?.map(A=>A.id),M=T?.flatMap(A=>A.children||[])?.map(A=>A.id),j=m?.map(A=>{const L=E?.includes(A.id);if(Array.isArray(A.children)&&A.children.length>0){const N=A?.children?.map(R=>{const $=M?.includes?.(R.id);return{...R,isHidden:!$}}),P=N?.filter(R=>m?.some($=>$.children?.some(_=>_.id===R.id)))?.every(R=>R.isHidden);return{...A,...!A.children[0]?.showInHierarchy&&{isHidden:P||!L},children:N}}return{...A,isHidden:!L}});d({type:Ve.SET_GRID_DATA,payload:{visibleGridColumns:j}}),d({type:Ve.HAS_SETTING_CHANGE,payload:{hasChange:!0}})},w=()=>m.map(E=>{const M=Array.isArray(E.children)?E.children.filter(j=>!j.isHidden):void 0;return!E.isHidden||E.isHidden&&E.showInHierarchy?{...E,children:M}:null}).filter(Boolean);return p.jsxs(oe,{sx:{margin:"1rem 0",position:"relative",zIndex:10,display:"flex",flexDirection:"row",justifyContent:"space-between",alignItems:"center",gap:"0.6rem",width:"100%"},children:[p.jsxs(oe,{sx:{display:"flex",flexDirection:"row",gap:"0.6rem",alignItems:"center"},children:[e?.search?.isRequired&&p.jsx(uv,{...e?.search,iconUrl:Ge.Search}),e?.refresh?.isRequired&&p.jsx(Dr,{...e?.refresh,styles:{variant:"filled",icon:Ge.Refresh,colorType:"empty",width:"3.2rem",height:"3.2rem"}}),e?.groupBy?.isRequired&&p.jsx(oe,{sx:{"& .MuiInputBase-input":{padding:"0rem!important"}},children:p.jsx(ys,{styles:{icon:Ge.Group},...e.groupBy})}),t&&p.jsx(oe,{sx:{"& .MuiInputBase-input":{padding:"0rem!important"}},children:p.jsx(ys,{placeholder:c("LABEL_MANAGE_COLUMN"),options:m,value:w(),isMulti:!0,isDraggable:!0,showSearch:!0,isManageColumn:!0,onChange:C,disabled:!a.length,styles:{icon:Ge.Manage}})}),v?.length>0&&v.map((T,E)=>p.jsx(x.Fragment,{children:T.render()},T.id))]}),p.jsxs(oe,{sx:{display:"flex",flexDirection:"row",justifyContent:"flex-end",alignItems:"center",gap:"0.6rem"},children:[k?.length>0&&k.map((T,E)=>p.jsx(x.Fragment,{children:T.render()},T.id)),n&&p.jsx(S2,{customTools:n,setIsExpanded:b,isExpanded:y}),e?.save?.isRequired&&p.jsx(oe,{sx:{px:"0.5rem"},children:p.jsx(Dr,{label:y?"":"Save",styles:{icon:Ge.Save,colorType:"empty"},...e?.save})}),e?.upload?.isRequired&&p.jsx(Dr,{...e?.upload,styles:{variant:y?"outlined":"filled",icon:y?Ge.UploadDark:Ge.Upload,iconPrimary:!y,colorType:"secondary",isAnimate:!0}}),e?.download?.isRequired&&p.jsx(Dr,{...e?.download,styles:{variant:"outlined",icon:Ge.Download,isAnimate:!0}})]})]})};Qf.propTypes={defaultTools:i.object.isRequired,customTools:i.array,isManageable:i.bool,baseUrl:i.string,gridPath:i.gridPath},te(Nd)(({theme:e})=>({"& .MuiPaper-root":{borderRadius:8,border:`1px solid ${e.palette.primary.notifyBorderColor}`,boxShadow:e.shadows[4],padding:"1rem 1rem 0rem 1rem",backgroundColor:e.palette.primary.notifyBackground}}));const Lr=te(ut)(({theme:e})=>({color:e.palette.primary.notifyTextColor,fontSize:"1.1rem"})),A8=te(Ug)(({theme:e})=>({width:28,height:16,padding:0,display:"flex","&:active":{"& .MuiSwitch-thumb":{width:15},"& .MuiSwitch-switchBase.Mui-checked":{transform:"translateX(9px)"}},"& .MuiSwitch-switchBase":{padding:2,"&.Mui-checked":{transform:"translateX(12px)",color:"#fff","& + .MuiSwitch-track":{opacity:1,backgroundColor:"#1890ff",...e.applyStyles("dark",{backgroundColor:"#177ddc"})}}},"& .MuiSwitch-thumb":{boxShadow:"0 2px 4px 0 rgb(0 35 11 / 20%)",width:12,height:12,borderRadius:6,transition:e.transitions.create(["width"],{duration:200})},"& .MuiSwitch-track":{borderRadius:16/2,opacity:1,backgroundColor:"rgba(0,0,0,.25)",boxSizing:"border-box",...e.applyStyles("dark",{backgroundColor:"rgba(255,255,255,.35)"})}})),R8=te(ns)(({theme:e})=>({color:e.palette.primary.notifyTextColor,padding:"0.6rem 0",fontSize:"0.9rem",fontWeight:500,"&::before, &::after":{borderColor:`${e.palette.primary.notifyBorderColor}!important`}})),N8=te(Pd)(({theme:e})=>({"& .MuiBadge-badge":{right:3.5,top:1.8,border:`0.1rem solid ${e.palette.primary.notifyBackground}`,padding:"0 1.3px",borderRadius:"50%",backgroundColor:"#D44E40",fontSize:"0.725rem",minWidth:"0.7rem",height:"0.7rem"}}));te(Qd)(({theme:e})=>({"& .MuiInputBase-root":{height:"3.52rem"},"& .MuiFormLabel-root":{color:`${e.palette.primary.notifyBorderColor} !important`,fontSize:"1rem",marginTop:"0.4rem"},"& label.Mui-focused":{color:e.palette.primary.notifyTextColor},"& .MuiInput-underline:after":{borderBottomColor:e.palette.primary.notifyBorderColor,borderBottomWidth:"0.1rem"},"& .MuiOutlinedInput-root":{"& fieldset":{borderColor:e.palette.primary.notifyBorderColor,borderWidth:"0.1rem"},"&:hover fieldset":{borderColor:e.palette.primary.notifyBorderColor,borderWidth:"0.1rem"},"&.Mui-focused fieldset":{borderColor:e.palette.primary.notifyBorderColor,borderWidth:"0.1rem"}}}));const $8=te(s0)(({theme:e})=>({minHeight:"2rem","& .MuiTabs-indicator":{height:"0.1rem",backgroundColor:e.palette.primary.notifyActiveText}})),ep=te(Yg)(({theme:e})=>({color:e.palette.primary.notifyActiveText,textTransform:"none",fontWeight:"normal",padding:0,fontSize:"1rem",minHeight:"2rem",paddingBottom:"1rem","&.Mui-selected":{fontWeight:"bold",color:e.palette.primary.notifyActiveText}})),gc=te(Km)(({theme:e})=>({"&.MuiChip-outlined":{borderColor:e.palette.primary.notifyBorderColor,color:e.palette.primary.notifyActiveText},height:"2rem",fontSize:"0.9rem",fontWeight:"300",borderColor:e.palette.primary.notifyBorderColor,color:e.palette.primary.notifyActiveText,borderRadius:"0.6rem",padding:"0.2rem","&:hover":{backgroundColor:`${e.palette.brandColor.orange} !important`,color:`${e.palette.brandColor.white} !important`}}));function L8(e,t){const n=new Map((t??[]).map(s=>[s.id,s.label])),r=[],o=new Set;for(const s of e)s.label?.trim()&&(s.groupId?(o.has(s.groupId)||(o.add(s.groupId),r.push({isGroup:!0,id:s.groupId,label:n.get(s.groupId)??s.groupId,children:[]})),r.find(a=>a.isGroup&&a.id===s.groupId)?.children.push(s)):r.push({isGroup:!1,...s}));return r}const Os=({children:e,indent:t=!1,onClick:n,...r})=>p.jsx(qe,{direction:"row",alignItems:"center",gap:"0.5rem",onClick:n,sx:{pl:t?"2.2rem":"0.8rem",pr:"0.8rem",py:"0.4rem",cursor:"pointer",minHeight:"2rem",userSelect:"none","&:hover":{background:o=>o.palette.action?.hover??"rgba(0,0,0,0.04)"}},...r,children:e}),Ms=({hidden:e,children:t})=>p.jsx(ut,{sx:{fontSize:"1.1rem",fontWeight:300,color:n=>e?n.palette.primary.notifyTextColor:n.palette.primary.notifyActiveText,overflow:"hidden",textOverflow:"ellipsis",minWidth:0},children:t});function B8({item:e,onDragEnd:t,hiddenIds:n,expandedIds:r,toggleExpand:o,handleGroupToggle:s,handleChildToggle:a,groupAllVisible:l,groupSomeVisible:c}){const d=sv(),u=r.has(e.id);return p.jsxs(cv,{value:e,dragListener:!1,dragControls:d,onDragEnd:t,as:"div",whileDrag:{opacity:.75,scale:1.01,zIndex:50},layout:!1,style:{listStyle:"none"},children:[p.jsx(Os,{onClick:()=>e.children.length===1&&s(e),children:p.jsxs(qe,{direction:"row",justifyContent:"space-between",alignItems:"center",width:"100%",gap:"0.5rem",children:[p.jsx(oe,{onPointerDown:f=>f.stopPropagation(),onClick:f=>{f.stopPropagation(),o(e.id)},sx:{cursor:"pointer",flexShrink:0,width:"2rem",height:"0.9rem",opacity:.6,display:"flex",alignItems:"center",justifyContent:"center"},children:p.jsx(zt,{url:u?Ge.ArrowSelectUp:Ge.ArrowRight})}),p.jsxs(qe,{direction:"row",gap:"0.5rem",width:"100%",alignItems:"center",children:[p.jsx(oe,{onPointerDown:f=>f.stopPropagation(),children:p.jsx(gr,{sx:{p:0},checked:l(e),indeterminate:c(e),onClick:f=>{f.stopPropagation(),s(e)}})}),p.jsx(Ms,{hidden:!l(e)&&!c(e),children:e.label})]})]})}),u&&e.children.map(f=>p.jsx(Os,{indent:!0,onClick:()=>a(f),children:p.jsxs(qe,{direction:"row",gap:"1rem",width:"100%",children:[p.jsx(oe,{sx:{flexShrink:0,width:"1rem",height:"0.9rem"}}),p.jsx(oe,{onPointerDown:h=>h.stopPropagation(),children:p.jsx(gr,{sx:{p:0},checked:!n.has(f.id),onClick:h=>{h.stopPropagation(),a(f)}})}),p.jsx(Ms,{hidden:n.has(f.id),children:f.label})]})},f.id))]})}function _8({item:e,onDragEnd:t,hiddenIds:n,handleLeafToggle:r}){const o=sv();return p.jsx(cv,{value:e,dragListener:!1,dragControls:o,onDragEnd:t,as:"div",whileDrag:{opacity:.75,scale:1.01,zIndex:50},layout:!1,style:{listStyle:"none"},children:p.jsx(Os,{onClick:()=>r(e),children:p.jsxs(qe,{direction:"row",justifyContent:"space-between",alignItems:"center",width:"100%",gap:"0.5rem",children:[p.jsx(oe,{sx:{flexShrink:0,width:"2rem",height:"0.9rem"}}),p.jsxs(qe,{direction:"row",gap:"0.5rem",width:"100%",alignItems:"center",children:[p.jsx(oe,{onPointerDown:s=>s.stopPropagation(),children:p.jsx(gr,{sx:{p:0},checked:!n.has(e.id),onClick:s=>{s.stopPropagation(),r(e)}})}),p.jsx(Ms,{hidden:n.has(e.id),children:e.label})]})]})})})}const F8=({engine:e,onClose:t})=>{const{t:n}=x.useContext(ln),{orderedColumns:r,toggleColumnVisibility:o,showAllColumns:s,resetColumns:a,moveColumnBefore:l,groups:c=[]}=e,d=x.useMemo(()=>r.filter(P=>P.draggable||P.hideable),[r]),[u,f]=x.useState(""),[h,m]=x.useState(new Set),[g,y]=x.useState(()=>L8(d,c)),b=x.useRef(g),[v,k]=x.useState(()=>{const P=new Set;return d.forEach(R=>{R.hidden&&P.add(R.id)}),P}),S=P=>m(R=>{const $=new Set(R);return $.has(P)?$.delete(P):$.add(P),$}),C=x.useMemo(()=>d.filter(P=>P.label?.trim()).map(P=>P.id),[d]);C.length>0&&C.every(P=>!v.has(P));const w=P=>P.children.every(R=>!v.has(R.id)),T=P=>P.children.some(R=>!v.has(R.id))&&!P.children.every(R=>!v.has(R.id)),E=P=>{const R=new Set(v),$=P.children.every(_=>!R.has(_.id));k(_=>{const U=new Set(_);return P.children.forEach(H=>$?U.add(H.id):U.delete(H.id)),U}),setTimeout(()=>{P.children.forEach(_=>{const U=R.has(_.id);$&&!U&&o(_.id),!$&&U&&o(_.id)})},0)},M=P=>{o(P.id),k(R=>{const $=new Set(R);return $.has(P.id)?$.delete(P.id):$.add(P.id),$})},j=P=>{o(P.id),k(R=>{const $=new Set(R);return $.has(P.id)?$.delete(P.id):$.add(P.id),$})},A=P=>{y(P),b.current=P},L=()=>{const R=b.current.flatMap($=>$.isGroup?$.children.map(_=>_.id):[$.id]);setTimeout(()=>{for(let $=R.length-2;$>=0;$--)l(R[$],R[$+1])},0)},O=x.useMemo(()=>{if(!u)return g;const P=u.toLowerCase();return g.reduce((R,$)=>{if($.isGroup){const _=$.label.toLowerCase().includes(P),U=$.children.filter(H=>H.label.toLowerCase().includes(P));_?R.push($):U.length&&R.push({...$,children:U})}else $.label.toLowerCase().includes(P)&&R.push($);return R},[])},[g,u]),N={hiddenIds:v,expandedIds:h,toggleExpand:S,handleGroupToggle:E,handleChildToggle:M,handleLeafToggle:j,groupAllVisible:w,groupSomeVisible:T,onDragEnd:L};return p.jsxs(oe,{sx:{display:"flex",flexDirection:"column",height:"100%",background:P=>P.palette.primary.notifyBackground,border:P=>`0.1rem solid ${P.palette.primary.notifyBorderColor}`,overflow:"hidden",py:"1rem"},children:[p.jsx(oe,{sx:{flexShrink:0,padding:"0rem 1rem",pb:"0.5rem"},children:p.jsx(Ui,{type:"text",placeholder:n("SEARCH"),value:u,variant:"standard",size:"small",InputProps:{disableUnderline:!0},onChange:P=>f(P.target.value),sx:{background:P=>P.palette.primary.appBackground,borderRadius:"0.8rem",border:P=>`0.1rem solid ${P.palette.primary.notifyBorderColor}`,width:"100%","& .MuiInputBase-input":{padding:"0.5rem 0.8rem!important",height:"1.8rem"}}})}),p.jsx(oe,{sx:{flex:1,overflowY:"auto",scrollbarWidth:"thin"},children:(u?O:g).length===0?p.jsx(qe,{justifyContent:"center",alignItems:"center",sx:{height:"3rem"},children:p.jsx(ut,{sx:{color:P=>P.palette.primary.notifyTextColor,fontSize:"1.1rem"},children:n("NO_OPTIONS")})}):u?p.jsx(oe,{children:O.map(P=>P.isGroup?p.jsxs(oe,{children:[p.jsx(Os,{onClick:()=>P.children.length===1&&E(P),children:p.jsxs(qe,{direction:"row",justifyContent:"space-between",alignItems:"center",width:"100%",gap:"0.5rem",children:[p.jsx(oe,{onClick:R=>{R.stopPropagation(),S(P.id)},sx:{cursor:"pointer",flexShrink:0,width:"2rem",height:"0.9rem",opacity:.6,display:"flex",alignItems:"center",justifyContent:"center"},children:p.jsx(zt,{url:h.has(P.id)?Ge.ArrowSelectUp:Ge.ArrowRight})}),p.jsxs(qe,{direction:"row",gap:"0.5rem",width:"100%",alignItems:"center",children:[p.jsx(gr,{sx:{p:0},checked:w(P),indeterminate:T(P),onClick:R=>{R.stopPropagation(),E(P)}}),p.jsx(oe,{sx:{flexShrink:0,width:"2rem",height:"0.9rem",opacity:.25,display:"flex",alignItems:"center",justifyContent:"center"}}),p.jsx(Ms,{hidden:!w(P)&&!T(P),children:P.label})]})]})}),P.children.map(R=>p.jsx(Os,{indent:!0,onClick:()=>M(R),children:p.jsxs(qe,{direction:"row",gap:"1rem",width:"100%",children:[p.jsx(oe,{sx:{flexShrink:0,width:"1rem",height:"0.9rem"}}),p.jsx(gr,{sx:{p:0},checked:!v.has(R.id),onClick:$=>{$.stopPropagation(),M(R)}}),p.jsx(Ms,{hidden:v.has(R.id),children:R.label})]})},R.id))]},P.id):p.jsx(Os,{onClick:()=>j(P),children:p.jsxs(qe,{direction:"row",justifyContent:"space-between",alignItems:"center",width:"100%",gap:"0.5rem",children:[p.jsx(oe,{sx:{flexShrink:0,width:"2rem",height:"0.9rem"}}),p.jsxs(qe,{direction:"row",gap:"0.5rem",width:"100%",alignItems:"center",children:[p.jsx(gr,{sx:{p:0},checked:!v.has(P.id),onClick:R=>{R.stopPropagation(),j(P)}}),p.jsx(oe,{sx:{flexShrink:0,width:"2rem",height:"0.5rem",opacity:.25,display:"flex",alignItems:"center",justifyContent:"center"}}),p.jsx(Ms,{hidden:v.has(P.id),children:P.label})]})]})},P.id))}):p.jsx(uA,{as:"div",axis:"y",values:g,onReorder:A,style:{padding:0,margin:0},children:g.map(P=>P.isGroup?p.jsx(B8,{item:P,...N},P.id):p.jsx(_8,{item:P,...N},P.id))})})]})};function W8({columns:e,data:t,maxHeight:n=400,freezeColId:r,features:o,rowHeight:s,colMgr:a,sidebarOpen:l,onColumnSave:c,onColumnReorder:d,onColumnResize:u,...f}){const h=mt(),m=h.mode==="dark"?"dark":"light",g=h.palette.primary.notifyBackground,y=h.palette.primary.appBackground,b=h.palette.primary.notifyTextColor,v=h.palette.primary.notifyActiveText,k=h.palette.primary.notifyBorderColor,S=h.typography?.fontFamily??"Euclid Circular Regular, sans-serif",C={root:{borderRadius:"1.4rem 0 0 1.4rem",border:`0.1rem solid ${k}`,borderRight:l?"none":`0.1rem solid ${k}`,background:g,fontFamily:S,fontSize:"1.1rem",overflow:"hidden"},headerRow:{background:g,color:v,fontWeight:600},groupRow:{background:g,color:v,borderColor:k,borderLeft:`0.1rem solid ${k}`,fontWeight:600,borderBottom:`0.1rem solid ${k}`},groupHeaderCell:{borderColor:k,borderLeft:`0.1rem solid ${k}`,borderRight:`0.1rem solid ${k}`},headerCell:{background:g,color:b,borderColor:k,borderRight:"none",padding:"0 12px",textAlign:"center",fontWeight:"bold",fontSize:"1.1rem",lineHeight:"1.5rem",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis"},row:{background:g,color:b,borderColor:k,fontSize:"1.1rem"},cell:{background:g,borderBottom:`0.1rem solid ${k}`,borderRight:"none",color:b,borderColor:k,padding:"0",textAlign:"center",fontSize:"1.1rem",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",fontVariantNumeric:"tabular-nums"},pinnedCell:{background:g,color:b,borderBottom:`0.1rem solid ${k}`,borderRight:"none",padding:"0"},pinnedHeaderCell:{background:g,color:b,borderColor:k,borderRight:"none",padding:"0"},rowSelected:{background:y}},w={sortAsc:p.jsx(zt,{url:Ge.AscSort}),sortDesc:p.jsx(zt,{url:Ge.DescSort}),sortNone:p.jsx(zt,{url:Ge.Unsort})},T={columns:e,data:t,rowHeight:s,maxHeight:n,theme:m,features:o,styles:C,icons:w,slots:{loadingCell:p.jsx(Jl,{type:"cell"}),toolbar:E=>{a.captureEngine(E)},rowSelectionIndicator:(E,M)=>p.jsx("div",{style:{position:"absolute",bottom:0,left:0,width:"100%",height:"0.08rem",background:"linear-gradient(to right, #F9B16E, #F68080)",pointerEvents:"none",zIndex:5}})},onColumnStateChange:E=>c?.(E),onColumnReorder:d,onColumnResize:u,...f};return p.jsx(DN,{...T})}function z8(e){const{t}=x.useContext(ln),n=NN(),{tableProps:r,toolbarProps:o}=e,{pagination:s={},data:a=[],childUniqueKey:l=""}=r??{},{gridPath:c="",baseUrl:d=""}=o??{},{columns:u}=r??{},[f,h]=x.useState(0),m=u?.definitions??[],g=u?.defaultUserSettings??[],y=x.useMemo(()=>m.filter(R=>R.isVisible!==!1),[u?.definitions]),{settings:b,hasNewColumns:v}=x.useMemo(()=>!c||!m.length?{settings:u?.settings??[],hasNewColumns:!1}:O8({definitions:m,defaultSetting:g,gridPath:c,childUniqueKey:l}),[c,l,f]),k=x.useRef(null),S=x.useRef(null),C=x.useRef(b),w=x.useRef(l);w.current!==l&&(w.current=l,C.current=b,S.current=null);const T=R=>{const $=[];return R.forEach(_=>{$.push(_),(Array.isArray(_.children)?_.children:l?_.children?.[l]??[]:[]).forEach(H=>$.push(H))}),$},E=x.useCallback(R=>{c&&(clearTimeout(k.current),k.current=setTimeout(()=>{const $=new Map(R.map(D=>[D.id,D])),_=new Map(T(C.current).map(D=>[D.key,D])),U=new Map(T(b).map(D=>[D.key,D])),H=m.map(D=>{const z=$.get(D.key),V=_.get(D.key)??U.get(D.key),X={key:D.key,sequenceId:V?.sequenceId??0,isHidden:z?z.hidden:V?.isHidden??!0,style:V?.style??D.style??{}};if(D.children?.length&&l){const G=V?.children&&!Array.isArray(V.children)?V.children:{},Y=D.children.map(K=>{const ae=$.get(K.key),le=_.get(K.key)??U.get(K.key);return{key:K.key,sequenceId:le?.sequenceId??0,isHidden:ae?ae.hidden:le?.isHidden??!1,style:le?.style??K.style??{}}});X.children={...G,[l]:Y}}return X}),B=JSON.stringify(H);if(S.current===null){S.current=B,C.current=H,v&&(hc({settings:H,gridPath:c,baseUrl:d}),h(D=>D+1));return}B!==S.current&&(S.current=B,C.current=H,hc({settings:H,gridPath:c,baseUrl:d}),h(D=>D+1))},1500))},[c,d,v,m,b,l]),M=x.useCallback(R=>{if(!c)return;const $=new Map(R.map((B,D)=>[B,D])),_=new Map(T(C.current).map(B=>[B.key,B])),U=m.map(B=>{const D=_.get(B.key),z={key:B.key,sequenceId:$.get(B.key)??D?.sequenceId??0,isHidden:D?.isHidden??!1,style:D?.style??B.style??{}};return B.children?.length&&l&&D?.children&&(z.children=D.children),z}),H=JSON.stringify(U);H!==S.current&&(S.current=H,C.current=U,hc({settings:U,gridPath:c,baseUrl:d}),h(B=>B+1))},[c,d,m,l]),j=x.useCallback((R,$)=>{c&&(clearTimeout(k.current),k.current=setTimeout(()=>{const _=`${$}px`,U=new Map(T(C.current).map(D=>[D.key,D])),H=m.map(D=>{const z=U.get(D.key),X=D.key===R?{width:_}:z?.style??D.style??{},G={key:D.key,sequenceId:z?.sequenceId??0,isHidden:z?.isHidden??!1,style:X};if(D.children?.length&&l){const Y=z?.children??{},ae=(Array.isArray(Y[l])?Y[l]:[]).map(le=>le.key===R?{...le,style:{width:_}}:le);G.children={...Y,[l]:ae}}return G}),B=JSON.stringify(H);B!==S.current&&(S.current=B,C.current=H,hc({settings:H,gridPath:c,baseUrl:d}),h(D=>D+1))},1500))},[c,d,m,l]),A=x.useMemo(()=>{if(!b.length)return y;const R=new Map(b.map($=>[$.key,$.sequenceId??0]));return[...y].sort(($,_)=>(R.get($.key)??0)-(R.get(_.key)??0))},[y,b]),L=x.useMemo(()=>u&&{...u,definitions:A,settings:b,childUniqueKey:l},[u,A,b,l]),O=x.useMemo(()=>I8(L),[L]),N=x.useRef(null),P={pageSize:s?.rowPerPage,gridData:a};return a.length?p.jsxs(Yt,{children:[o&&p.jsx(Qf,{...o,...P}),p.jsxs(oe,{sx:{display:"flex",alignItems:"stretch"},children:[p.jsxs(oe,{ref:N,sx:{flex:1,minWidth:0,alignSelf:"flex-start",position:"relative"},children:[p.jsx(W8,{...r,columns:O,colMgr:n,sidebarOpen:!1,onColumnSave:E,onColumnReorder:M,onColumnResize:j}),n.isOpen&&p.jsx(oe,{sx:{position:"absolute",top:0,right:0,width:260,height:"100%",zIndex:10,display:"flex",flexDirection:"column",overflow:"hidden"},children:p.jsx(n.ColumnManagerPanel,{style:{width:"100%",height:"100%",display:"flex",flexDirection:"column",overflow:"hidden"},render:({engine:R,close:$})=>p.jsx(F8,{engine:R,onClose:$})})})]}),p.jsx(rs,{title:t("LABEL_MANAGE_COLUMN"),placement:"left",children:p.jsxs(oe,{onClick:n.toggle,sx:{width:"2rem",flexShrink:0,display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",cursor:"pointer",gap:"0.5rem",p:"0 1.3rem",borderRadius:(n.isOpen,"0 1.4rem 1.4rem 0"),border:R=>`0.1rem solid ${R.palette.primary.notifyBorderColor}`,borderLeft:"none",background:R=>R.palette.primary.notifyButtonBackground,transition:"background 0.15s","&:hover":{background:R=>R.palette.primary.appBackground}},children:[p.jsx(oe,{component:"img",src:Ge.Manage,sx:{width:"1.6rem",height:"2rem",transform:"rotate(90deg)"}}),p.jsx(ut,{sx:{fontSize:"1rem",letterSpacing:"0.08em",writingMode:"vertical-rl",textOrientation:"mixed",transform:"rotate(360deg)",userSelect:"none",color:R=>R.palette.primary.notifyTextColor},children:a?.length>1?t("LABEL_MANAGE_COLUMN"):t("LABEL_MANAGE_COLUMN")?.slice(0,7)})]})})]}),s&&p.jsx(mc,{pagination:s,gridPath:c,baseUrl:d,t})]}):p.jsx(Lr,{sx:{textAlign:"center"},children:t(yr.NRF)})}const C2=e=>{let{disabled:t=!1,minWidth:n=0,maxWidth:r,className:o="",id:s,resizeStart:a,resizeEnd:l,defaultWidth:c,rowSpan:d=1,colSpan:u=1}=e;const[f,h]=x.useState(!1),[m,g]=x.useState(0),[y,b]=x.useState(0),[v,k]=x.useState(0),[S,C]=x.useState(null),w=x.useRef(null),T=x.useCallback(O=>{if(!t&&(C(s),a&&a(),h(!0),g(O),b(0),w.current)){const N=w.current.previousSibling;N&&b(N.clientWidth)}},[t,s,a]),E=x.useCallback(()=>{t||(f&&l&&S===s&&l(v),h(!1),C(null))},[t,l,S,s,v,f]),M=x.useCallback(O=>{if(t)return;const N=O instanceof TouchEvent?O.touches[0].screenX:O.screenX;if(!f)return;const P=w.current;if(!P||!P.previousSibling)return;const R=P.previousSibling,$=m-N;let _=y-$;n!==void 0&&_<n&&(_=n),r!==void 0&&_>r&&(_=r),R.style.width=_+"px",R.style.minWidth=_+"px",R.style.maxWidth=_+"px",R.style.setProperty("--column_resize_before_width",_+"px"),k(_)},[t,f,m,y,n,r]);x.useEffect(()=>{const O=w.current;if(O&&O.previousSibling){const N=O.previousSibling;c?(N.style.minWidth=c+"px",N.style.width=c+"px",N.style.maxWidth=c+"px",N.style.setProperty("--column_resize_before_width",c+"px")):n&&(N.style.minWidth=n+"px",N.style.width=n+"px",N.style.maxWidth=n+"px",N.style.setProperty("--column_resize_before_width",n+"px"))}},[c,n]),x.useEffect(()=>{const O=w.current;if(t&&O&&O.previousSibling){const N=O.previousSibling;c&&(N.style.minWidth=c+"px",N.style.width=c+"px",N.style.maxWidth=c+"px",N.style.setProperty("--column_resize_before_width",c+"px")),r&&(N.style.maxWidth=r+"px")}},[t,c,r]);const j=x.useCallback(()=>{document.addEventListener("mousemove",M),document.addEventListener("mouseup",E),document.addEventListener("touchmove",M),document.addEventListener("touchend",E)},[M,E]),A=x.useCallback(()=>{document.removeEventListener("mousemove",M),document.removeEventListener("mouseup",E),document.removeEventListener("touchmove",M),document.removeEventListener("touchend",E)},[M,E]);x.useEffect(()=>(t||j(),()=>{A()}),[t,j,A]);const L={userSelect:"none"};return t||(L.cursor="ew-resize"),o===""&&(L.width="6px",L.backgroundColor="rgba(0, 0, 0, 0.1)"),x.createElement("th",{ref:w,style:L,rowSpan:d,colSpan:u,className:"column_resizer_own_class ".concat(t?"disabled_column_resize":""," ").concat(o),onMouseDown:t?void 0:O=>T(O.screenX),onTouchStart:t?void 0:O=>T(O.touches[0].screenX)})};function yc({isRenderCellContent:e,column:t,row:n,parent:r}){const o=n[t.key],s=o?.length>20;return p.jsx(p.Fragment,{children:e?p.jsx(oe,{sx:{display:"flex",alignItems:"center",justifyContent:"center",width:"100%",overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis",textTransform:"none",fontSize:"1.1rem"},children:t?.cellRenderer(n,{column:t,parent:r})}):p.jsx(p.Fragment,{children:s?p.jsx(rs,{title:o,placement:"top",componentsProps:{tooltip:{sx:{fontSize:"1rem",padding:"0.5rem 1rem",boxShadow:"0 2px 8px rgba(0,0,0,0.3)"}}},children:p.jsx(oe,{sx:{maxWidth:"auto",whiteSpace:"normal"},children:p.jsx(ut,{sx:{fontSize:"1.1rem",overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis",textTransform:"none"},children:o})})}):p.jsx(oe,{sx:{overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis",textTransform:"none",fontSize:"1.1rem",m:0},id:t.key,component:"p",children:o??""})})})}yc.propTypes={isRenderCellContent:i.bool,column:i.object,row:i.object};const V8=te(os)(({theme:e})=>({overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",display:"table-cell",[`&.${Kd.head}`]:{color:e.palette.primary.notifyTextColor,backgroundColor:e.palette.primary.notifyBackground,borderColor:e.palette.primary.notifyBorderColor,padding:"0rem",textAlign:"center",lineHeight:"1.5rem"},[`&.${Kd.body}`]:{color:e.palette.primary.notifyTextColor,borderColor:e.palette.primary.notifyBorderColor,padding:"0rem",textAlign:"center"}}));function Po({children:e,...t}){return p.jsx(V8,{...t,children:e})}Po.propTypes={children:i.node};const H8=te(Jg)(()=>({"&:last-child td":{borderBottom:"none"}}));function to({children:e,...t}){return p.jsx(H8,{...t,children:e})}to.propTypes={children:i.node};const T2=x.memo(({row:e,isSelected:t,isHigh:n,onRowClick:r,children:o,sxProps:s})=>p.jsx(to,{sx:a=>({backgroundColor:t||n?a.palette.primary.appBackground:a.palette.primary.notifyBackground,...s}),onClick:()=>r?.(e),children:o},e?.fhi)),k2=x.memo(({nestedData:e,nestedColumn:t,t:n})=>e?.length?p.jsx(p.Fragment,{children:e.map((r,o)=>p.jsx(to,{children:t.map((s,a)=>p.jsx(Po,{style:s?.style,children:p.jsx(yc,{isRenderCellContent:!!s?.cellRenderer,column:s,row:r})},a))},`nested-${o}`))}):p.jsx(to,{children:p.jsx(Po,{colSpan:t.length,children:p.jsx(Lr,{sx:{textAlign:"center"},children:n(yr.NRF)})})})),E2=(e,t,n,r,o,s)=>{const[a,l]=x.useState({isOpen:!1,column:null}),c=(h,m,g)=>{l({isOpen:h.currentTarget,column:m,isChild:!!g})},d=()=>{l({isOpen:!1,column:null,isChild:!1})},u=async()=>{d();const h=e.map(m=>{if(a?.isChild&&Array.isArray(m.children)){const g=m.children.map(b=>b.key===a.column?.key?{...b,isHidden:!0}:b),y=g.every(b=>b.isHidden);return{...m,isHidden:y?!0:m.isHidden,children:g}}return m.key===a.column?.key?{...m,isHidden:!0}:m});f({updatedColumns:h})},f=async({updatedColumns:h})=>{t({type:Ve.SET_GRID_DATA,payload:{visibleGridColumns:h}});const m=r.split("/").filter(Boolean),g=JSON.parse(localStorage.getItem(Bn.SETTINGS));let y=m.reduce((T,E)=>T?.[E],g)||null,b=la({columns:h,childUniqueKey:s});const v=$r(y?.columns);b=b?.map(T=>{const E=T?.children||{},M=v?.[T?.key]?.children||{};return{...T,...(Object.keys(M)?.length>0||E?.[s])&&{children:{...M,[s]:E?.[s]}}}});const S={...g||{platform:{theme:"light"}}},C=y?.pageSize??o;let w=S;for(let T=0;T<m.length;T++){const E=m[T];T===m.length-1?w[E]={columns:b,pageSize:C}:(w[E]={...w[E]||{}},w=w[E])}localStorage.setItem(Bn.SETTINGS,JSON.stringify(S)),await ia({baseUrl:n,payload:S})};return{selectedColumn:a,handleMenuClick:c,handleClose:d,handleHideClick:u,columnUpdaterFunction:f}},tp=({menuOpen:e,handleClose:t,onHideClick:n})=>{const r=mt(),{t:o}=x.useContext(ln);return p.jsx(Si,{open:!!e,anchorEl:e,onClose:t,anchorOrigin:{vertical:"bottom",horizontal:"left"},children:p.jsx(oe,{sx:{backgroundColor:r.palette.primary.notifyBackground,border:`0.1rem solid ${r.palette.primary.notifyBorderColor}`,minHeight:"2.3rem",display:"flex",justifyContent:"center",alignItems:"center"},children:p.jsx(yl,{onClick:n,disableRipple:!0,sx:{textTransform:"none",fontSize:"1.1rem",p:"0.4rem 1rem",minHeight:"unset",fontWeight:500,color:r.palette.primary.notifyTextColor,backgroundColor:"transparent","&:hover":{backgroundColor:"transparent"},"&:active":{backgroundColor:"transparent"},"&:focus":{backgroundColor:"transparent"}},children:o("LABEL_HIDE_COLUMN")})})})};tp.propTypes={menuOpen:i.object,handleClose:i.func,onHideClick:i.func};const O2=({sortKey:e,sortField:t,sortDir:n,handleSortClick:r})=>{const o=s=>p.jsx(nl,{onClick:r,sx:{padding:"0.2rem"},draggable:!1,children:p.jsx(zt,{url:s})});return p.jsx(p.Fragment,{children:o(t===e?n==="asc"?Ge.AscSort:Ge.DescSort:Ge.Unsort)})};O2.propTypes={sortKey:i.string.isRequired,sortField:i.string,sortDir:i.string,handleSortClick:i.func};function np({parent:e,column:t,sort:n,handleMenuClick:r,isManageable:o}){const s=o&&(!t?.isMandatory||t?.isMandatory&&t?.showHide===!0),a=t?.label,l=t?.helpText,c=t?.isSortable,d=n?.sortField,u=n?.sortDir,f=n?.onSort;return p.jsxs(oe,{sx:{display:"flex",alignItems:"center",justifyContent:"center"},draggable:!1,children:[p.jsx(oe,{sx:{fontWeight:"bold",fontSize:"1.1rem",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",padding:"0.5rem",textAlign:"center"},children:p.jsx(rs,{title:l??a,placement:"top",componentsProps:{tooltip:{sx:{fontSize:"1rem",padding:"0.6rem 1rem",boxShadow:"0 2px 8px rgba(0,0,0,0.3)"}}},children:a??""})}),p.jsxs(oe,{sx:{display:"flex",alignItems:"center"},draggable:!1,children:[c&&p.jsx(O2,{sortKey:e?`${e?.key}|${t?.key}`:t?.key,sortField:d,sortDir:u,handleSortClick:()=>f({column:t,sortDir:u,sortField:d,parent:e})}),s&&p.jsx(nl,{draggable:!1,onClick:h=>r(h,t,e),sx:{padding:"0.2rem"},children:p.jsx(zt,{url:Ge.Menu})})]})]})}np.propTypes={column:i.object.isRequired,sort:i.object.isRequired,handleMenuClick:i.func,isManageable:i.bool};function M2({rows:e,sort:t,data:n,pagination:r,columns:o,nested:s,baseUrl:a,gridPath:l,childUniqueKey:c,isVirtualizedTable:d=!1,t:u}){const f=mt(),{visibleGridColumns:h}=x.useContext(Yi),m=x.useContext(gs),{selectedColumn:g,handleMenuClick:y,handleClose:b,handleHideClick:v,columnUpdaterFunction:k}=E2(h,m,a,l,r?.rowPerPage,c),S=o?.isManageable,C=o?.isResizable,w=n?.length>0,T=x.useRef(null),E=x.useRef(null),M=45,j=10,A=n?.length,[L,O]=x.useState({start:0,end:10}),[N,P]=x.useState(null),[R,$]=x.useState(null),[_,U]=x.useState(null);let H=null;const B=x.useRef(0),D=x.useRef(!1),z=x.useRef(null),V=b2(s?.column?.definitions||[]),X=s?.isNested,G=s?.data||[],Y=s?.hashKey,[K,ae]=x.useState(0);x.useEffect(()=>{if(T.current){const ne=()=>{ae(T.current.offsetHeight)};return ne(),window.addEventListener("resize",ne),()=>window.removeEventListener("resize",ne)}},[n]),x.useEffect(()=>{const ie=T.current?.querySelector("thead");if(!ie)return;const Ee=()=>{U(null)};return ie?.addEventListener("mousedown",Ee),()=>{ie?.removeEventListener("mousedown",Ee)}},[]);const le=(ne,ie)=>{if(D.current){ne.preventDefault();return}P(ie),U(null),ne.dataTransfer.setData("colIndex",ie);const Ee=h[ie],pe=Ee?.label,he=document.createElement("div");he.textContent=pe,Object.assign(he.style,{display:"flex",alignItems:"center",justifyContent:"center",padding:"1.5rem 2.5rem",minWidth:Ee?.style?.minWidth,maxWidth:Ee?.style?.maxWidth,fontSize:"1.2rem",fontWeight:"500",color:f.palette.primary.notifyTextColor,background:f.palette.primary.notifyBackground,border:`0.1rem solid ${f.palette.primary.notifyBorderColor}`,borderRadius:"0rem",pointerEvents:"none",position:"absolute",top:"0",left:"0",zIndex:"-1",textAlign:"center",boxSizing:"border-box",boxShadow:"0 1px 4px rgba(0, 0, 0, 0.2)"}),document.body.appendChild(he);const{offsetWidth:Me,offsetHeight:We}=he;ne.dataTransfer.setDragImage(he,Me/2,We/2),requestAnimationFrame(()=>{document.body.removeChild(he)})},W=(ne,ie)=>{ne.preventDefault(),$(ie),Te(ne)},ee=async(ne,ie)=>{if(ne.preventDefault(),clearInterval(H),N===null||N===ie)return;const Ee=[...h],[pe]=Ee.splice(N,1);Ee.splice(ie,0,pe);const he=h.slice().sort((We,rt)=>We.sequenceId-rt.sequenceId).map(We=>We.sequenceId),Me=Ee.map((We,rt)=>({...We,sequenceId:he[rt]??We.sequenceId}));k({updatedColumns:Me}),P(null),$(null)},F=()=>{P(null),$(null)},fe=(ne,ie,Ee,pe)=>{if(!ne)return null;const he=ne?.isMandatory&&ne?.isSticky,Me=parseFloat(ne?.style?.minWidth?.toString().replace("rem",""))||7.5;ie===0&&(B.current=0);const We=he?ie===0?0:`${B.current}rem`:void 0;he&&(B.current+=Me);const rt=N===ie,be=R==ie||h?.[R]?.isMandatory,wt=tt=>{ne.isMandatory?(tt.preventDefault(),tt.dataTransfer.dropEffect="none"):(tt.preventDefault(),tt.dataTransfer.dropEffect="move"),W?.(tt,ie)},yt=tt=>{ne.isMandatory||ee?.(tt,ie)};return pe&&`${pe?.key}${ne?.key}${ie}`,p.jsx(Po,{rowSpan:ne?.children?1:2,colSpan:ne?.children?.filter(tt=>!tt?.isHidden)?.length,style:ne?.style,draggable:Ee&&!ne?.isMandatory,onDragStart:Ee&&!ne?.isMandatory?tt=>le(tt,ie):tt=>{tt.preventDefault()},onDragOver:Ee&&!ne?.isMandatory?wt:void 0,onDrop:Ee&&!ne?.isMandatory?yt:void 0,onDragEnd:Ee&&!ne?.isMandatory?F:void 0,sx:{...ne?.isSticky&&{boxShadow:"rgba(17, 17, 26, 0.3) 4px 0px 6px -2px"},...ne.isCenterTable&&{borderRight:"0.1rem solid",borderBottom:"0.1rem solid",borderTop:"none",...ne?.key==="volume_value"&&{borderLeft:"1px solid"}},...rt&&{border:`0.1rem solid ${f.palette.brandColor.lightBlue}!important`},...he&&{position:"sticky",left:We,zIndex:3},cursor:be?"not-allowed":Ee&&!ne?.isMandatory?"grab":"default"},children:p.jsx(np,{parent:pe,column:ne,sort:t,handleMenuClick:y,isManageable:Ee})},ie)},se=x.useCallback((ne,ie,Ee,pe)=>{if(!ne)return null;const he=ne?.isMandatory&&ne?.isSticky,Me=parseFloat(ne?.style?.minWidth?.toString().replace("rem",""))||7.5;Ee===0&&(B.current=0);const We=he?Ee===0?0:`${B.current}rem`:void 0;return he&&(B.current+=Me),p.jsxs(Po,{colSpan:1,style:ne?.style,className:`${ne?.label}`,sx:{position:"relative",...ne.isCenterTable&&{borderRight:"0.1rem solid",borderBottom:"0.1rem solid",borderTop:"none",...ne?.key==="volume_value"&&{borderLeft:"1px solid"}},...ne?.isSticky&&{boxShadow:"rgba(17, 17, 26, 0.3) 4px 0px 6px -2px"},...he&&{position:"sticky",left:We,zIndex:2,backgroundColor:rt=>e?.selectedRow&&e?.selectedRow?.fhi===ie?.fhi||ie?.isHigh?rt.palette.primary.appBackground:rt.palette.primary.notifyBackground}},children:[(e?.selectedRow&&e?.selectedRow?.fhi===ie?.fhi||ie?.isHigh)&&p.jsx(oe,{sx:{position:"absolute",bottom:0,left:0,width:"100%",height:"0.08rem",background:"linear-gradient(#F9B16E, #F68080)",pointerEvents:"none",zIndex:1}}),p.jsx(yc,{isRenderCellContent:!!ne?.cellRenderer,column:ne,row:ie,parent:pe})]},Ee)},[e?.selectedRow,f]),Z=(ne,ie,Ee,pe)=>p.jsx(p.Fragment,{children:ne&&Ee&&!ne?.isMandatory?p.jsx(oe,{resizeStart:()=>{ne?.isMandatory&&!ne?.isResizable||(D.current=!0)},resizeEnd:he=>{ne?.isMandatory&&!ne?.isResizable||he<=20||(D.current=!1,w2({index:ie,visibleGridColumns:h,width:he,columnUpdaterFunction:k}))},component:ne?.children||ne?.isMandatory?os:C2,rowSpan:ne?.children?1:2,colSpan:1,id:ie,sx:{width:"1rem",maxWidth:"1rem",minWidth:"1rem",padding:0,position:"relative",borderBottom:`0.1rem solid ${f.palette.primary.notifyBorderColor}`,cursor:"col-resize","&::after":{content:'""',position:"absolute",top:"50%",left:"50%",transform:"translate(-50%, -50%)",width:"0.15rem",height:"1.5rem",backgroundColor:f.palette.primary.notifyBorderColor,zIndex:1},...!ne?.isMandatory&&{"&:hover::after":{content:'""',position:"absolute",top:0,left:"50%",transform:"translateX(-50%)",width:"0.2rem",height:`${K}px`,backgroundColor:f.palette.primary.notifyBorderColor,zIndex:1}}}}):null}),Ce=x.useCallback((ne,ie,Ee,pe,he,Me,We)=>p.jsx(p.Fragment,{children:ie&&pe&&!ie?.isMandatory?p.jsx(os,{className:"column_resizer_body",sx:{width:"1rem",maxWidth:"1rem",minWidth:"1rem",padding:0,position:"relative",borderBottom:`0.1rem solid ${f.palette.primary.notifyBorderColor}`},children:(e?.selectedRow&&e?.selectedRow?.fhi===ne?.fhi||ne?.isHigh)&&p.jsx(oe,{sx:{position:"absolute",bottom:0,left:0,width:"100%",height:"0.08rem",background:"linear-gradient(#F9B16E, #F68080)",pointerEvents:"none"}})},`resize-${Ee}_${We}`):null}),[e?.selectedRow,f]),Te=ne=>{const ie=T.current,{left:Ee,right:pe}=ie.getBoundingClientRect(),he=50,Me=ne.clientX>pe-he?1:ne.clientX<Ee+he?-1:0;Me!==0?(z.current&&clearInterval(z.current),z.current=setInterval(()=>{ie.scrollLeft+=Me*10},50)):z.current&&(clearInterval(z.current),z.current=null)},ke=ne=>ne?.map((ie,Ee)=>{const pe=L.start+Ee,he=ie[Y],Me=G?.[he],We=e?.selectedRow&&e?.selectedRow?.fhi===ie?.fhi,rt=ie?.isHigh;return p.jsxs(x.Fragment,{children:[p.jsx(T2,{row:ie,isSelected:We,isHigh:rt,onRowClick:e?.onRowClick,children:h.map((be,wt)=>be?.isHidden||be?.isVisible===!1?null:be?.children?be.children.map((yt,tt)=>yt?.isHidden?null:p.jsxs(x.Fragment,{children:[se(yt,ie,tt,be),C&&Ce(ie,yt,tt,S,be,"",pe)]},`col-${wt}-${tt}`)):p.jsxs(x.Fragment,{children:[se(be,ie,wt),C&&Ce(ie,be,wt,S,"","",pe)]},`col-${wt}`))}),X&&Me&&p.jsx(k2,{nestedData:Me,nestedColumn:V,t:u})]},`row-${pe}`)}),we=()=>{const ne=E.current;if(!ne)return;const ie=ne.scrollTop,Ee=ne.clientHeight,pe=Math.floor(ie/M)-j,he=Math.ceil(Ee/M)+2*j,Me=Math.max(0,Math.min(A-1,pe)),We=Math.max(Me,Math.min(A,Me+he));O(rt=>rt.start===Me&&rt.end===We?rt:{start:Me,end:We})};x.useEffect(()=>{let ne;const ie=()=>{ne&&cancelAnimationFrame(ne),ne=requestAnimationFrame(()=>{we()})},Ee=E.current;if(!(!Ee||!d))return we(),Ee.addEventListener("scroll",ie),()=>{cancelAnimationFrame(ne),Ee.removeEventListener("scroll",ie)}},[A]);const Re=L.start*M,Oe=(A-L.end)*M,ge=d?n?.slice(L.start,L.end):n;return w?p.jsxs(p.Fragment,{children:[p.jsx(Xd,{ref:E,sx:{willChange:"transform",WebkitTransform:"translateZ(0)",maxHeight:"40rem",whiteSpace:"nowrap",overflow:"auto",width:"100%",border:`0.1rem solid ${f.palette.primary.notifyBorderColor}`,borderRadius:"1.4rem",position:"relative"},children:p.jsxs(qd,{ref:T,stickyHeader:!0,"aria-label":"sticky table",sx:{backgroundColor:ne=>ne.palette.primary.notifyBackground},children:[p.jsxs(Zd,{children:[p.jsx(to,{sx:{position:"sticky",top:0,zIndex:3,backgroundColor:ne=>ne.palette.primary.notifyBackground},children:h.map((ne,ie)=>ne?.isHidden||ne?.isVisible===!1?null:p.jsxs(x.Fragment,{children:[fe(ne,ie,S),Z(ne,ie,S)]},ie))}),p.jsx(to,{draggable:!1,sx:{position:"sticky",top:"2.5rem",backgroundColor:f.palette.primary.notifyBackground,zIndex:2},children:h.flatMap((ne,ie)=>ne?.isHidden||!ne?.children||ne?.isVisible===!1?[]:ne.children.map((Ee,pe)=>Ee?.isHidden?null:p.jsxs(x.Fragment,{children:[fe(Ee,pe,S,ne),C&&Z(Ee,pe,S)]},`${ie}-${pe}`)))})]}),p.jsxs(Gd,{children:[d&&p.jsx("tr",{style:{height:Re}}),ke(ge),d&&p.jsx("tr",{style:{height:Oe}})]})]})}),r&&p.jsx(mc,{pagination:r,gridPath:l,baseUrl:a,t:u}),p.jsx(tp,{menuOpen:g?.isOpen,handleClose:b,onHideClick:v})]}):p.jsx(Lr,{sx:{textAlign:"center"},children:u(yr.NRF)})}M2.propTypes={sort:i.object,data:i.array,pagination:i.object,columns:i.object,nested:i.object};function P2(e){return pv(e?.style?.width??e?.style?.minWidth??e?.style?.maxWidth)||0}const j2=e=>e?.isHidden||e?.isVisible===!1;function U8(e){const t=x.useMemo(()=>{let o=0;return e.flatMap((s,a)=>{if(j2(s))return[];if(Array.isArray(s.children)&&s.children.length){const d=s.children.filter(u=>!j2(u));return d.length?d.map(u=>{const f=P2(u),h={...u,_parent:s,_originalIndex:a,width:f,start:o,end:o+f,isSticky:!!(u?.isSticky??s?.isSticky)};return o+=f,h}):[]}const l=P2(s);if(l===0)return[];const c={...s,_parent:null,_originalIndex:a,width:l,start:o,end:o+l,isSticky:!!s?.isSticky};return o+=l,c})},[e]),n=x.useMemo(()=>{let o=0;const s={};return t.forEach(a=>{a.isSticky&&(s[a.sequenceId]=o,o+=a.width)}),s},[t]);return{columnsMeta:t,stickyOffsets:n,getStickyLeft:o=>{if(!o?.isMandatory||!o?.isSticky)return;const s=n[o.sequenceId];return s===0?0:`${s}px`}}}function Y8({visibleGridColumns:e,columnUpdaterFunction:t,isResizingRef:n,startAutoScroll:r,stopAutoScroll:o}){const s=mt(),[a,l]=x.useState(null),[c,d]=x.useState(null),u=x.useCallback((b,v)=>{if(n.current){b.preventDefault();return}l(v),b.dataTransfer.setData("colIndex",v);const k=e[v],S=document.createElement("div");S.textContent=k?.label,Object.assign(S.style,{display:"flex",alignItems:"center",justifyContent:"center",padding:"1.5rem 2.5rem",minWidth:k?.style?.minWidth,maxWidth:k?.style?.maxWidth,fontSize:"1.2rem",fontWeight:"500",color:s.palette.primary.notifyTextColor,background:s.palette.primary.notifyBackground,border:`0.1rem solid ${s.palette.primary.notifyBorderColor}`,borderRadius:"0rem",pointerEvents:"none",position:"absolute",top:"0",left:"0",zIndex:"-1",textAlign:"center",boxSizing:"border-box",boxShadow:"0 1px 4px rgba(0, 0, 0, 0.2)"}),document.body.appendChild(S);const{offsetWidth:C,offsetHeight:w}=S;b.dataTransfer.setDragImage(S,C/2,w/2),requestAnimationFrame(()=>document.body.removeChild(S))},[n,e,s]),f=x.useCallback((b,v)=>{if(b.preventDefault(),e?.[v]?.isMandatory){b.dataTransfer.dropEffect="none";return}b.dataTransfer.dropEffect="move",d(v),r(b.clientX)},[r,e]),h=x.useCallback(async(b,v)=>{if(b.preventDefault(),o(),a===null||a===v||e?.[v]?.isMandatory)return;const k=[...e],[S]=k.splice(a,1);k.splice(v,0,S);const C=[...e].sort((T,E)=>T.sequenceId-E.sequenceId).map(T=>T.sequenceId),w=k.map((T,E)=>({...T,sequenceId:C[E]??T.sequenceId}));t({updatedColumns:w}),l(null),d(null)},[a,e,t,o]),m=x.useCallback(()=>{o(),l(null),d(null)},[o]),g=b=>!b?.isMandatory,y=x.useCallback(b=>c===null||a===null?!1:!!(e?.[b]?.isMandatory||e?.[c]?.isMandatory),[c,a,e]);return{draggedColIndex:a,dragOverIndex:c,handleDragStart:u,handleDragOver:f,handleDrop:h,handleDragEnd:m,isDraggable:g,isInvalidDrop:y}}const I2=50,q8=10,G8=50;function K8(e){const t=x.useRef(null),n=x.useCallback(()=>{t.current&&(clearInterval(t.current),t.current=null)},[]);return{startAutoScroll:x.useCallback(o=>{const s=e.current;if(!s)return;const{left:a,right:l}=s.getBoundingClientRect(),c=o>l-I2?1:o<a+I2?-1:0;if(c===0){n();return}t.current||(t.current=setInterval(()=>{s.scrollLeft+=c*q8},G8))},[e,n]),stopAutoScroll:n}}const rp=x.memo(function({column:t,index:n,isManageable:r,parent:o,stickyLeft:s,colSpanOverride:a,draggedColIndex:l,isInvalidDrop:c,onDragStart:d,onDragOver:u,onDrop:f,onDragEnd:h,sort:m,handleMenuClick:g}){const y=mt(),b=l===n,v=r&&!t?.isMandatory,k=t?.isMandatory&&t?.isSticky,S=o&&o.children?.find(T=>!T?.isHidden&&T?.isVisible!==!1)?.key===t?.key,C=!o&&Array.isArray(t?.children)&&t.children.some(T=>!T?.isHidden&&T?.isVisible!==!1),w=a??t.children?.filter(T=>!T?.isHidden)?.length;return p.jsx(Po,{rowSpan:t?.children?1:2,colSpan:w,style:t?.style,draggable:v,onDragStart:v?T=>d(T,n):T=>T.preventDefault(),onDragOver:v?T=>u(T,n):void 0,onDrop:v?T=>f(T,n):void 0,onDragEnd:v?h:void 0,sx:{...t?.isSticky&&{boxShadow:"rgba(17, 17, 26, 0.3) 4px 0px 6px -2px"},...t.isCenterTable&&{borderRight:"0.1rem solid",borderBottom:"0.1rem solid",borderTop:"none",...(S||C)&&{borderLeft:"0.1rem solid"}},...b&&{border:`0.1rem solid ${y.palette.brandColor.lightBlue}!important`},...k&&{position:"sticky",left:s,zIndex:3},cursor:c(n)?"not-allowed":v?"grab":"default"},children:p.jsx(np,{parent:o,column:t,sort:m,handleMenuClick:g,isManageable:r})},n)}),op=x.memo(function({column:t,index:n,isManageable:r,tableHeight:o,onResizeStart:s,onResizeEnd:a}){const l=mt();return!t||!r||t?.isMandatory?null:p.jsx(oe,{component:t?.children||t?.isMandatory?os:C2,rowSpan:t?.children?1:2,colSpan:1,id:n,resizeStart:s,resizeEnd:a,sx:{width:"1rem",maxWidth:"1rem",minWidth:"1rem",padding:0,position:"relative",borderBottom:`0.1rem solid ${l.palette.primary.notifyBorderColor}`,cursor:"col-resize","&::after":{content:'""',position:"absolute",top:"50%",left:"50%",transform:"translate(-50%, -50%)",width:"0.15rem",height:"1.5rem",backgroundColor:l.palette.primary.notifyBorderColor,zIndex:1},"&:hover::after":{content:'""',position:"absolute",top:0,left:"50%",transform:"translateX(-50%)",width:"0.2rem",height:`${o}px`,backgroundColor:l.palette.primary.notifyBorderColor,zIndex:1}}})}),X8=x.memo(function({stickyGridColumns:t,virtualisedColumns:n,isManageable:r,isResizable:o,tableHeight:s,sort:a,handleMenuClick:l,getStickyLeft:c,offsetX:d,draggedColIndex:u,isInvalidDrop:f,onDragStart:h,onDragOver:m,onDrop:g,onDragEnd:y,isResizingRef:b,columnUpdaterFunction:v,visibleGridColumns:k}){const S=mt(),C={draggedColIndex:u,isInvalidDrop:f,onDragStart:h,onDragOver:m,onDrop:g,onDragEnd:y},w=(E,M)=>({onResizeStart:()=>{E?.isMandatory&&!E?.isResizable||(b.current=!0)},onResizeEnd:j=>{E?.isMandatory&&!E?.isResizable||j<=20||(b.current=!1,w2({index:M,visibleGridColumns:k,width:j,columnUpdaterFunction:v}))}}),T=x.useMemo(()=>{const E=[];return n.forEach(M=>{const j=M._parent?.key??M.key,A=E[E.length-1];A&&A.key===j?A.colSpan+=1:E.push({key:j,column:M._parent??M,colSpan:1,firstChild:M})}),E},[n]);return p.jsxs(Zd,{children:[p.jsxs(to,{sx:{position:"sticky",top:0,zIndex:3,backgroundColor:S.palette.primary.notifyBackground},children:[t.map((E,M)=>{const j=E._parent??E;return p.jsxs(x.Fragment,{children:[p.jsx(rp,{column:j,index:E._originalIndex,isManageable:r,stickyLeft:c(E),sort:a,handleMenuClick:l,...C}),o&&p.jsx(op,{column:j,index:E._originalIndex,isManageable:r,tableHeight:s,...w(j,E._originalIndex)})]},`sticky-p-${M}`)}),p.jsx("th",{style:{minWidth:d,width:d,padding:0,border:"none"}}),T.map((E,M)=>p.jsxs(x.Fragment,{children:[p.jsx(rp,{column:E.column,index:E.firstChild._originalIndex,colSpanOverride:E.colSpan,isManageable:r,stickyLeft:c(E.firstChild),sort:a,handleMenuClick:l,...C}),o&&p.jsx(op,{column:E.column,index:E.firstChild._originalIndex,isManageable:r,tableHeight:s,...w(E.column,E.firstChild._originalIndex)})]},`parent-${E.key}`))]}),p.jsxs(to,{draggable:!1,sx:{position:"sticky",top:"2.5rem",backgroundColor:S.palette.primary.notifyBackground,zIndex:2},children:[p.jsx("th",{style:{minWidth:d,width:d,padding:0,border:"none"}}),n?.map((E,M)=>E._parent&&p.jsxs(x.Fragment,{children:[p.jsx(rp,{column:E,index:E._originalIndex,isManageable:r,parent:E._parent,stickyLeft:c(E),sort:a,handleMenuClick:l,...C}),o&&p.jsx(op,{column:E,index:E._originalIndex,isManageable:r,tableHeight:s,...w(E,E._originalIndex)})]},`child-${E?._parent?.key??E.key}-${M}`))]})]})}),Z8=()=>p.jsx(oe,{sx:{position:"absolute",bottom:0,left:0,width:"100%",height:"0.08rem",background:"linear-gradient(#F9B16E, #F68080)",pointerEvents:"none",zIndex:1}}),D2=x.memo(function({column:t,row:n,cellKey:r,parent:o,stickyLeft:s,isSelected:a,isHigh:l}){const c=mt(),d=t?.isMandatory&&t?.isSticky,u=a||l,f=o&&o.children?.find(h=>!h?.isHidden&&h?.isVisible!==!1)?.key===t?.key;return p.jsxs(Po,{colSpan:1,style:t?.style,className:`${t?.label}`,sx:{position:"relative",...t.isCenterTable&&{borderRight:"0.1rem solid",borderBottom:"0.1rem solid",borderTop:"none",...f&&{borderLeft:"0.1rem solid"}},...t?.isSticky&&{boxShadow:"rgba(17, 17, 26, 0.3) 4px 0px 6px -2px"},...d&&{position:"sticky",left:s,zIndex:2,backgroundColor:u?c.palette.primary.appBackground:c.palette.primary.notifyBackground}},children:[u&&p.jsx(Z8,{}),p.jsx(yc,{isRenderCellContent:!!t?.cellRenderer,column:t,row:n,parent:o})]},r)});function J8({actualIndex:e,extraHeight:t,measureRow:n,resetRow:r}){return useEffect(()=>(n(e,t),()=>r(e)),[e,t]),null}const Q8=x.memo(function({visibleRows:t,stickyGridColumns:n,virtualisedColumns:r,isResizable:o,isManageable:s,topSpacerHeight:a,bottomSpacerHeight:l,selectedRow:c,isNested:d,nestedRow:u,nestedColumn:f,hashKey:h,getStickyLeft:m,offsetX:g,rightSpacerWidth:y,rowStart:b,defaultRowHeight:v,measureRow:k,resetRow:S,t:C}){const w=mt(),T=x.useCallback((E,M,j)=>{if(!E||!s||E?.isMandatory)return null;const A=c&&c?.fhi===M?.fhi||M?.isHigh;return p.jsx(os,{className:"column_resizer_body",sx:{width:"1rem",maxWidth:"1rem",minWidth:"1rem",padding:0,position:"relative",borderBottom:`0.1rem solid ${w.palette.primary.notifyBorderColor}`},children:A&&p.jsx("div",{style:{position:"absolute",bottom:0,left:0,width:"100%",height:"0.08rem",background:"linear-gradient(#F9B16E, #F68080)",pointerEvents:"none"}})},`resize-${j}`)},[s,c,w]);return p.jsxs(Gd,{children:[p.jsx("tr",{style:{height:a}}),t?.map((E,M)=>{const j=b+M,A=c&&c?.fhi===E?.fhi,L=E?.isHigh,O=u?.[E[h]];return p.jsxs(x.Fragment,{children:[p.jsxs(T2,{row:E,isSelected:A,isHigh:L,sxProps:{height:"3.5rem","& td, & th":{height:"3.5rem"}},children:[n.map((N,P)=>p.jsxs(x.Fragment,{children:[p.jsx(D2,{column:N,row:E,cellKey:P,parent:N._parent,stickyLeft:m(N),isSelected:A,isHigh:L}),o&&T(N,E,`sticky-${P}-${j}`)]},`sticky-${N.sequenceId??P}`)),p.jsx("td",{style:{minWidth:g,width:g,padding:0,border:"none"}}),r.map((N,P)=>p.jsxs(x.Fragment,{children:[p.jsx(D2,{column:N,row:E,cellKey:P,parent:N._parent,stickyLeft:m(N),isSelected:A,isHigh:L}),o&&T(N,E,`${P}-${j}`)]},`col-${N?._parent?.key??N.key}-${P}`))]}),d&&O&&p.jsxs(p.Fragment,{children:[p.jsx(J8,{actualIndex:j,extraHeight:O.length*v,measureRow:k,resetRow:S}),p.jsx(k2,{nestedData:O,nestedColumn:f,t:C})]})]},`row-${j}`)}),p.jsx("tr",{style:{height:l}})]})});function eL({rowCount:e,defaultRowHeight:t,scrollTop:n,containerRef:r,overscan:o=5}){const s=x.useRef(0),[a,l]=x.useState(()=>pv("40rem"));x.useEffect(()=>{const m=r?.current;if(!m)return;const g=m.clientHeight;g&&g!==s.current&&(s.current=g,l(g));const y=new ResizeObserver(b=>{const v=b[0].contentRect;v.height!==s.current&&(s.current=v.height,l(v.height))});return y.observe(m),()=>y.disconnect()},[]);const[c,d]=x.useState({}),u=(m,g)=>{d(y=>y[m]===g?y:{...y,[m]:g})},f=m=>{d(g=>{if(!(m in g))return g;const y={...g};return delete y[m],y})},h=x.useMemo(()=>{const m=new Array(e+1);m[0]=0;for(let g=0;g<e;g++)m[g+1]=m[g]+(c[g]??t);return m},[c,e,t]);return x.useMemo(()=>{const m=h[e],g=n+a;let y=0,b=e-1,v=0;for(;y<=b;){const S=y+b>>1;h[S+1]>n?(v=S,b=S-1):y=S+1}v=Math.max(0,v-o),y=v,b=e-1;let k=e;for(;y<=b;){const S=y+b>>1;h[S]>=g?(k=S,b=S-1):y=S+1}return k=Math.min(e,k+o),{startIndex:v,endIndex:k,topSpacerHeight:h[v],bottomSpacerHeight:m-h[k],totalHeight:m,measureRow:u,resetRow:f}},[h,e,a,n,o])}function tL({columnWidths:e,scrollLeft:t,overscan:n=2}){const r=x.useRef(0),[o,s]=x.useState(0),a=x.useRef(null),l=x.useCallback(f=>{if(a.current?.disconnect(),!f)return;const h=f.clientWidth;h&&(r.current=h,s(h)),a.current=new ResizeObserver(m=>{const g=m[0].contentRect;g.width!==r.current&&(r.current=g.width,s(g.width))}),a.current.observe(f)},[]),c=x.useMemo(()=>e.map(f=>{const h=Number(f);return Number.isFinite(h)&&h>0?h:0}),[e]),d=x.useMemo(()=>{const f=new Array(c.length+1);f[0]=0;for(let h=0;h<c.length;h++)f[h+1]=f[h]+c[h];return f},[c]);return{...x.useMemo(()=>{const f=t+o,h=d[c.length];let m=0,g=c.length-1,y=c.length;for(;m<=g;){const v=m+g>>1;d[v+1]>t?(y=v,g=v-1):m=v+1}y=Math.max(0,y-n),m=y,g=c.length-1;let b=c.length;for(;m<=g;){const v=m+g>>1;d[v]>=f?(b=v,g=v-1):m=v+1}return b=Math.min(c.length,b+n),{startIndex:y,endIndex:b,offsetX:d[y]||0,rightSpacerWidth:h-d[b],viewportWidth:o}},[c,d,o,t,n]),measuredRef:l}}const A2=45;function nL({rows:e,sort:t,data:n,pagination:r,columns:o,nested:s,baseUrl:a,gridPath:l,childUniqueKey:c,isVirtualizedTable:d=!1,t:u}){const f=mt(),{visibleGridColumns:h}=x.useContext(Yi),m=x.useContext(gs),{selectedColumn:g,handleMenuClick:y,handleClose:b,handleHideClick:v,columnUpdaterFunction:k}=E2(h,m,a,l,r?.rowPerPage,c),S=o?.isManageable,C=o?.isResizable,w=x.useRef(null),T=x.useRef(null),E=x.useRef(!1),M=x.useRef(0),j=x.useRef(0),A=x.useRef(!1),L=x.useRef(n),[,O]=x.useState({}),{getStickyLeft:N,columnsMeta:P}=U8(h),{startAutoScroll:R,stopAutoScroll:$}=K8(w),{draggedColIndex:_,isInvalidDrop:U,handleDragStart:H,handleDragOver:B,handleDrop:D,handleDragEnd:z}=Y8({visibleGridColumns:h,columnUpdaterFunction:k,isResizingRef:E,startAutoScroll:R,stopAutoScroll:$});L.current!==n&&(L.current=n,M.current=0,j.current=0,T.current&&(T.current.scrollTop=0,T.current.scrollLeft=0));const V=pe=>{const he=pe.currentTarget.scrollTop,Me=pe.currentTarget.scrollLeft;A.current||(A.current=!0,requestAnimationFrame(()=>{M.current=he,j.current=Me,O({}),A.current=!1}))},X=x.useMemo(()=>P.filter(pe=>pe.isSticky&&!pe.isCenterTable),[P]),G=x.useMemo(()=>P.filter(pe=>pe.isSticky&&pe.isCenterTable||!pe.isSticky),[P]),Y=x.useMemo(()=>G.map(pe=>pe.width),[G]),{startIndex:K,endIndex:ae,topSpacerHeight:le,bottomSpacerHeight:W,measureRow:ee,resetRow:F}=eL({rowCount:n.length,defaultRowHeight:A2,scrollTop:M.current,containerRef:T,overscan:15}),{startIndex:fe,endIndex:se,offsetX:Z,measuredRef:Ce}=tL({columnWidths:Y,scrollLeft:j.current,overscan:2}),Te=x.useMemo(()=>G.slice(fe,se),[G,fe,se]),ke=n?.slice(K,ae),[we,Re]=x.useState(0);x.useEffect(()=>{const pe=w.current;if(!pe)return;const he=new ResizeObserver(()=>Re(pe.offsetHeight));return he.observe(pe),()=>he.disconnect()},[]);const Oe=b2(s?.column?.definitions||[]),ge=s?.isNested,ne=s?.data||[],ie=s?.hashKey,Ee=x.useCallback(pe=>{T.current=pe,Ce(pe)},[Ce]);return n?.length?p.jsxs(p.Fragment,{children:[p.jsx(Xd,{ref:Ee,onScroll:V,sx:{willChange:"transform",WebkitTransform:"translateZ(0)",maxHeight:"40rem",whiteSpace:"nowrap",overflow:"auto",width:"100%",border:`0.1rem solid ${f.palette.primary.notifyBorderColor}`,borderRadius:"1.4rem",position:"relative"},children:p.jsxs(qd,{ref:w,stickyHeader:!0,"aria-label":"sticky table",sx:{backgroundColor:f.palette.primary.notifyBackground},children:[p.jsx(X8,{offsetX:Z,stickyGridColumns:X,virtualisedColumns:Te,isManageable:S,isResizable:C,tableHeight:we,sort:t,handleMenuClick:y,getStickyLeft:N,draggedColIndex:_,isInvalidDrop:U,onDragStart:H,onDragOver:B,onDrop:D,onDragEnd:z,isResizingRef:E,visibleGridColumns:h,columnUpdaterFunction:k}),p.jsx(Q8,{offsetX:Z,rowStart:K,defaultRowHeight:A2,measureRow:ee,resetRow:F,visibleRows:ke,stickyGridColumns:X,virtualisedColumns:Te,isResizable:C,isManageable:S,topSpacerHeight:le,bottomSpacerHeight:W,selectedRow:e?.selectedRow,isNested:ge,nestedRow:ne,nestedColumn:Oe,hashKey:ie,getStickyLeft:N,t:u})]})}),r&&p.jsx(mc,{pagination:r,gridPath:l,baseUrl:a,t:u}),p.jsx(tp,{menuOpen:g?.isOpen,handleClose:b,onHideClick:v})]}):p.jsx(Lr,{sx:{textAlign:"center"},children:u(yr.NRF)})}function R2({tableProps:e,isDefaultConfig:t,gridPath:n,baseUrl:r,childUniqueKey:o}){const{columns:s}=e,a=x.useContext(gs),{t:l}=x.useContext(ln),c=!!e?.isVirtualizedTable,d=C8({columns:s,gridPath:n,baseUrl:r,isDefaultConfig:t,childUniqueKey:o,pageSize:e?.pagination?.rowPerPage,data:e?.data});return x.useEffect(()=>{d?.length&&e?.data?.length&&a?.({type:Ve.SET_GRID_DATA,payload:{visibleGridColumns:d}})},[d,e?.data]),p.jsx(p.Fragment,{children:c?p.jsx(nL,{...e,gridPath:n,baseUrl:r,childUniqueKey:o,t:l}):p.jsx(M2,{...e,gridPath:n,baseUrl:r,childUniqueKey:o,t:l})})}R2.propTypes={tableProps:i.object.isRequired,mergedColumns:i.array.isRequired};function sp({tableProps:e,toolbarProps:t,isDefaultConfig:n,isLoading:r}){const o=e.columns?.isManageable;return p.jsx(hv,{children:r?p.jsxs(p.Fragment,{children:[t&&p.jsx(Jl,{type:"toolbar"}),e&&p.jsx(Jl,{type:"grid"})]}):p.jsxs(oe,{sx:{position:"sticky"},children:[t&&p.jsx(Qf,{...t,isManageable:o,pageSize:e?.pagination?.rowPerPage,gridData:e?.data}),p.jsx(R2,{tableProps:e,isDefaultConfig:n,gridPath:t?.gridPath||"",baseUrl:t?.baseUrl||"",childUniqueKey:t?.childUniqueKey||""})]})})}sp.propTypes={tableProps:i.object.isRequired,toolbarProps:i.object,isDefaultConfig:i.bool};const{TENANT_ID:ip,BU_ID:ap}=m2,{TENANT_IDS:lp,BU_IDS:cp}=y2,rL=async e=>{try{const t=localStorage.getItem("i18nextLng"),n=`${e}${fc.NOTIFICATION}/v1?${ip}=${lp}&${ap}=${cp}&lang=${t}`;return await Tt.get(n,sa)}catch(t){return t}},N2=async(e,t,n)=>{try{const r=localStorage.getItem("i18nextLng"),o=`${e}${fc.NOTIFICATION}${Kf.VERSION}?${ip}=${lp}&${ap}=${cp}&lang=${r}`;return await Tt.put(o,t,sa)}catch(r){return r}},oL=async({baseUrl:e,id:t,snopId:n})=>{try{const r=localStorage.getItem("i18nextLng"),o=`${e}${fc.NOTIFICATION}${Kf.VERSION}?${ip}=${lp}&${ap}=${cp}&id=${t}&lang=${r}`;return await Tt.get(o,sa)}catch(r){return r}},Ps={OK:200,CREATED:201,NO_CONTENT:204,BAD_REQUEST:400,UNAUTHORIZED:401,NOT_FOUND:404,INTERNAL_SERVER_ERROR:500},$2=({baseUrl:e})=>{const t=x.useContext(f1),[n,r]=x.useState(!1),[o,s]=x.useState(!1),[a,l]=x.useState(!1),[c,d]=x.useState({}),[u,f]=x.useState(null),[h,m]=x.useState(1),g=x.useRef(!1),{loading:y,data:b,isMarkAllAsRead:v,mode:k,activeTab:S}=x.useContext(Nf),[C,w]=x.useState([]);x.useEffect(()=>{w(b)},[b]);const T=x.useCallback(async()=>{if(!(g.current||!e))try{t({type:Ve.LOADING,loading:!0}),t({type:Ve.SUCCESS,data:[]});const N=await rL(e);if(N.status===Ps.UNAUTHORIZED){g.current=!0;return}if(N.status===Ps.OK){const P=N.data?.responseData?.response||[],R=Kl(P);t({type:Ve.SET_MODE,mode:!1}),t({type:Ve.SUCCESS,data:Kl(R)}),t({type:Ve.MARK_ALL_AS_READ,isMarkAllAsRead:{count:fv(P),boo:fv(P)>0}}),t({type:Ve.LOADING,loading:!1})}}catch(N){N?.response?.status===Ps.UNAUTHORIZED&&(g.current=!0),t({type:Ve.ERROR,error:yr.SWR}),t({type:Ve.LOADING,loading:!1})}},[e,t]),E=N=>{const P=(b||[]).filter(R=>k?!R.isRead:!0);return{0:P,1:P.filter(R=>R?.type==="INFO"),2:P.filter(R=>R?.type==="ERROR")}};x.useEffect(()=>{T();const N=setInterval(T,3e5);return()=>clearInterval(N)},[T]);const M=async(N,P)=>{if(!(!N||!e)){f(N);try{const R=await oL({baseUrl:e,id:N,snopId:P});if(R.status===Ps.OK){const $=R.data?.responseData?.response||{};d($||{}),l(!0)}else throw new Error}catch{t({type:Ve.ERROR,error:yr.SWR})}finally{f(null)}}},j=async(N,P)=>{if(!(!N.length||!e)){t({type:Ve.LOADING,loading:!0});try{if((await N2(e,N,P)).status===Ps.OK){const $=b.map(U=>N.includes(U.id)?{...U,isRead:!0}:U),_=$.filter(U=>!U.isRead).length;_===0&&t({type:Ve.SET_MODE,mode:!1}),t({type:Ve.SUCCESS,data:Kl($)}),t({type:Ve.MARK_ALL_AS_READ,isMarkAllAsRead:{count:_,boo:_>0}}),setTimeout(()=>{t({type:Ve.LOADING,loading:!1})},200)}}catch{t({type:Ve.ERROR,error:yr.SWR}),t({type:Ve.LOADING,loading:!1})}}},A=async()=>{if(e){t({type:Ve.LOADING,loading:!0});try{const N=TA(b);if((await N2(e,N,a8.MARK_ALL_READ)).status===Ps.OK){const R=b.map($=>({...$,isRead:!0}));t({type:Ve.SET_MODE,mode:!1}),t({type:Ve.SUCCESS,data:Kl(R)}),t({type:Ve.MARK_ALL_AS_READ,isMarkAllAsRead:{count:0,boo:!1}}),setTimeout(()=>{t({type:Ve.LOADING,loading:!1})},200)}}catch{t({type:Ve.ERROR,error:yr.SWR}),t({type:Ve.LOADING,loading:!1})}}},L=(N,P)=>{t({type:Ve.LOADING,loading:!0}),t({type:Ve.SET_ACTIVE_TAB,activeTab:P}),setTimeout(()=>{t({type:Ve.LOADING,loading:!1})},400)},O=()=>{t({type:Ve.LOADING,loading:!0});const N=k?b||[]:(C||[]).filter(P=>!P.isRead);t({type:Ve.SET_MODE,mode:!k}),w(N),m(1),setTimeout(()=>{t({type:Ve.LOADING,loading:!1})},400)};return{fetchNotification:T,showDetailsProps:{open:a,handleClose:()=>l(!1),setOpen:l,data:c,clickId:u},alertDialogProps:{open:n,handleClose:()=>r(!1),onRefresh:T,handleRead:j,handleMarkAllAsRead:A,setOpen:r,handleShowDetails:M,clickId:u,isMainDialog:!0},activeTab:S,loading:y,tabData:E()[S],data:C,mode:k,handleTabChange:L,toggleAlertMode:O,page:h,setPage:m,isMarkAllAsRead:v}};var L2,B2,_2;function dp(){return dp=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},dp.apply(null,arguments)}var sL=function(t){return I.createElement("svg",dp({xmlns:"http://www.w3.org/2000/svg",width:16,height:17,fill:"none"},t),L2||(L2=I.createElement("path",{stroke:"#909090",strokeLinecap:"round",strokeMiterlimit:10,d:"M8.013 2.19c-2.206 0-4 1.793-4 4v1.927c0 .406-.173 1.026-.38 1.373l-.766 1.273c-.474.787-.147 1.66.72 1.954 2.873.96 5.973.96 8.846 0a1.335 1.335 0 0 0 .72-1.954l-.766-1.273c-.2-.347-.374-.967-.374-1.373V6.19c0-2.2-1.8-4-4-4Z"})),B2||(B2=I.createElement("path",{stroke:"#909090",strokeLinecap:"round",strokeLinejoin:"round",strokeMiterlimit:10,d:"M9.247 2.383a4.503 4.503 0 0 0-2.467 0 1.324 1.324 0 0 1 2.467 0"})),_2||(_2=I.createElement("path",{stroke:"#909090",strokeMiterlimit:10,d:"M10.013 12.957c0 1.1-.9 2-2 2a2.007 2.007 0 0 1-2-2"})))};const iL=({count:e})=>(mt(),p.jsxs(p.Fragment,{children:[p.jsx(oe,{sx:{gap:"0.5rem",display:"flex",justifyContent:"center",alignItems:"center","& svg":{transform:"scale(1)"}},children:p.jsx(sL,{style:{scale:1.2}})}),p.jsx(N8,{badgeContent:e!=0?"":null,color:"error"})]}));var F2;function up(){return up=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},up.apply(null,arguments)}var aL=function(t){return I.createElement("svg",up({xmlns:"http://www.w3.org/2000/svg",width:14,height:9,fill:"none",viewBox:"0 0 13 9"},t),F2||(F2=I.createElement("path",{fill:"#A8A8A8",fillRule:"evenodd",d:"M8.954 1.004a.406.406 0 0 1 0 .575L3.537 6.996a.406.406 0 0 1-.574 0L.796 4.829a.406.406 0 1 1 .575-.575l1.879 1.88 5.13-5.13a.406.406 0 0 1 .574 0m3.25 0a.406.406 0 0 1 0 .575L6.787 6.996a.406.406 0 1 1-.574-.575l5.416-5.417a.406.406 0 0 1 .575 0",clipRule:"evenodd"})))},W2,z2;function fp(){return fp=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},fp.apply(null,arguments)}var lL=function(t){return I.createElement("svg",fp({xmlns:"http://www.w3.org/2000/svg",width:12,height:12,fill:"none"},t),W2||(W2=I.createElement("path",{stroke:"#fff",strokeLinecap:"round",strokeLinejoin:"round",d:"M7.79 6c0 .99-.8 1.79-1.79 1.79S4.21 6.99 4.21 6 5.01 4.21 6 4.21s1.79.8 1.79 1.79"})),z2||(z2=I.createElement("path",{stroke:"#fff",strokeLinecap:"round",strokeLinejoin:"round",d:"M6 10.135c1.765 0 3.41-1.04 4.555-2.84.45-.705.45-1.89 0-2.595C9.41 2.9 7.765 1.86 6 1.86S2.59 2.9 1.445 4.7c-.45.705-.45 1.89 0 2.595 1.145 1.8 2.79 2.84 4.555 2.84"})))},V2;function pp(){return pp=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},pp.apply(null,arguments)}var cL=function(t){return I.createElement("svg",pp({xmlns:"http://www.w3.org/2000/svg",width:9,height:8,fill:"none"},t),V2||(V2=I.createElement("path",{fill:"#fff",fillRule:"evenodd",d:"M8.277 1.004a.406.406 0 0 1 0 .575L2.86 6.996a.406.406 0 0 1-.574 0L.119 4.829a.406.406 0 1 1 .575-.575l1.879 1.88 5.13-5.13a.406.406 0 0 1 .574 0",clipRule:"evenodd"})))};const H2=({type:e,item:t,handleShowDetails:n,handleRead:r,handleCTAClicked:o,clickId:s,t:a})=>{const l=mt(),c=JSON.parse(localStorage.getItem("settings"))?.platform?.theme;return p.jsxs(oe,{className:"cards",sx:{pt:" 0.8rem"},children:[p.jsx(qe,{display:"flex",flexDirection:"row",alignItems:"start",justifyContent:"space-between",gap:1,children:p.jsx(Pd,{sx:{width:"calc(100% - 2%)","& .MuiBadge-badge":{backgroundColor:"#6041EA",height:"0.5rem",minWidth:"0.5rem"}},variant:"dot",invisible:t?.isRead,children:p.jsx(Lr,{sx:{color:l.palette.primary.notifyActiveText,whiteSpace:"normal",wordBreak:"break-word"},component:"p",className:["title-card",t?.isRead&&"read"].join(" "),children:a(t?.message)})})}),p.jsx(qe,{display:"flex",flexDirection:"row",alignItems:"center",justifyContent:"space-between",children:p.jsxs(qe,{display:"flex",flexDirection:"row",justifyContent:"start",gap:1,sx:{p:"0.5rem 0"},children:[t?.isNotificationDetails&&p.jsx(gc,{icon:p.jsx(lL,{className:`${c==="light"?"chip-icon-light":"chip-icon-dark"}`}),disabled:s,onClick:n,label:s===t?.id?p.jsx(Yo,{color:"primary",size:13}):a("SHOW_DETAILS"),component:"button",variant:"filled",clickable:!0,size:"small",sx:{backgroundColor:l.palette.brandColor.orange,color:l.palette.brandColor.white}}),!t?.isRead&&p.jsx(gc,{icon:p.jsx(cL,{className:`${c==="light"?"chip-icon-light":"chip-icon-dark"}`}),disabled:s,onClick:r,label:a("ACKNOWLEDGE"),component:"button",variant:"outlined",clickable:!0,size:"small"}),t?.primaryCTAURL&&p.jsx(gc,{disabled:t?.isPrimaryCTAClicked,onClick:()=>o({redirect:t?.isPrimaryCTARedirect,isClicked:t?.isPrimaryCTAClicked,url:t?.primaryCTAURL}),label:a(t?.primaryCTALabel),component:"button",variant:"outlined",clickable:!0,size:"small"}),t?.secondaryCTAURL&&p.jsx(gc,{disabled:t?.isSecondaryCTAClicked,onClick:()=>o({redirect:t?.isSecondaryCTARedirect,isClicked:t?.isSecondaryCTAClicked,url:t?.secondaryCTAURL}),label:a(t?.secondaryCTALabel),component:"button",variant:"outlined",clickable:!0,size:"small"})]})}),p.jsxs(qe,{display:"flex",flexDirection:"row",alignItems:"center",gap:.35,children:[p.jsx(Lr,{sx:{fontSize:"0.8rem"},children:a(t?.product)}),p.jsx(Lr,{color:l.palette.primary.notifyTextColor,children:"•"}),p.jsx(Lr,{sx:{fontSize:"0.8rem"},children:CA(t?.createdAt,a)})]})]})};H2.propTypes={type:i.string,title:i.string,subTitle:i.string,isRead:i.bool,handleShowDetails:i.func,handleRead:i.func};const bc=60,U2=2,Y2=({data:e,handleRead:t,handleShowDetails:n,clickId:r,mode:o,t:s})=>{const{isMarkAllAsRead:a}=x.useContext(Nf),l=x.useRef(null),[c,d]=x.useState({start:0,end:4}),u=e?.length,f=new Date,h=new Intl.DateTimeFormat("en-US",{day:"numeric",month:"long",year:"numeric"}).format(f),m=x.useMemo(()=>o?a?.count?e?.filter(C=>!C.isRead):[]:e||[],[e,o,a]),g=m.slice(c.start,c.end),y=c.start*bc,b=(u-c.end)*bc,v=()=>{const C=l.current;if(!C)return;const w=C.scrollTop,T=C.clientHeight,E=Math.floor(w/bc)-U2,M=Math.ceil(T/bc)+2*U2,j=Math.max(0,Math.min(u-1,E)),A=Math.max(j,Math.min(u,j+M));d(L=>L.start===j&&L.end===A?L:{start:j,end:A})},k=({url:C})=>{window.open(C,"_blank")},S=x.useMemo(()=>OA(g),[g]);return x.useEffect(()=>{let C;const w=()=>{C&&cancelAnimationFrame(C),C=requestAnimationFrame(()=>{v()})},T=l.current;if(T)return v(),T.addEventListener("scroll",w),()=>{cancelAnimationFrame(C),T.removeEventListener("scroll",w)}},[u]),m.length||s("CONTAINER_MESSAGE"),p.jsxs(oe,{ref:l,sx:{height:"100%",overflowY:"auto"},children:[p.jsx(oe,{style:{height:y}}),Object.entries(S).map(([C,w])=>{const T=localStorage.getItem("i18nextLng"),E=new Date(C),M=new Intl.DateTimeFormat(T,{month:"long"}).format(E),j=E.getDate(),A=E.getFullYear(),L=`${M} ${j}, ${A}`;return p.jsxs(x.Fragment,{children:[C!==h&&p.jsx(R8,{children:L}),w.map((O,N)=>p.jsx(H2,{item:O,handleCTAClicked:k,handleShowDetails:()=>n(O.id,O.snopId),handleRead:()=>t([O.id],O.snopId),clickId:r,t:s},`${O.id}_${N}`))]},C)}),p.jsx(oe,{style:{height:b}})]})};Y2.propTypes={data:i.array,handleRead:i.func,handleShowDetails:i.func};const dL=({onRefresh:e,handleShowDetails:t,clickId:n,handleRead:r,handleMarkAllAsRead:o,t:s})=>{const{loading:a,activeTab:l,data:c,tabData:d,mode:u,page:f,setPage:h,handleTabChange:m,toggleAlertMode:g}=$2({});return p.jsxs(p.Fragment,{children:[p.jsxs(oe,{sx:{display:"flex",alignItems:"center",justifyContent:"space-between",px:2,pt:2},children:[p.jsx(ut,{variant:"h2",sx:{fontSize:"1.2rem",color:y=>y.palette.primary.notifyTextColor},children:s("NOTIFICATION")}),p.jsx(oe,{onClick:e,children:p.jsx(zt,{url:Ge.Refresh,alt:"refresh",sx:{cursor:"pointer"}})})]}),p.jsx(oe,{sx:{borderBottom:1,m:"1.2rem 1.2rem 0 1.2rem",borderColor:y=>y.palette.primary.notifyBorderColor},children:p.jsxs($8,{value:l,onChange:m,children:[p.jsx(ep,{label:p.jsx(oe,{sx:{display:"flex",alignItems:"center",fontSize:"1rem",fontWeight:"500"},children:p.jsx(ut,{component:"span",sx:{fontWeight:500,fontSize:"1rem"},children:s("ALL",{count:c?.filter(y=>!y?.isRead)?.length||0})})})}),p.jsx(ep,{label:p.jsx(oe,{sx:{display:"flex",alignItems:"center",fontSize:"1rem",fontWeight:"500"},children:p.jsx(ut,{component:"span",sx:{fontWeight:500,fontSize:"1rem"},children:s("INFO",{count:c?.filter(y=>y?.type==="INFO"&&!y?.isRead)?.length||0})})}),sx:{color:y=>y.palette.brandColor.blue}}),p.jsx(ep,{label:p.jsx(oe,{sx:{display:"flex",alignItems:"center",fontSize:"1rem",fontWeight:"500"},children:s("ERROR",{count:c?.filter(y=>y?.type==="ERROR"&&!y?.isRead)?.length||0})}),sx:{color:y=>y.palette.brandColor.red}})]})}),p.jsx(Ld,{dividers:!0,sx:{p:0,...a&&!d.length&&{alignItems:"center",justifyContent:"center"},flexGrow:1,overflowY:"auto",mx:"1.2rem",borderColor:y=>y.palette.primary.notifyBorderColor},tabIndex:-1,children:a&&!d.length?p.jsx(oe,{sx:{height:300,display:"flex",justifyContent:"center",alignItems:"center"},children:p.jsx(Yo,{size:30,sx:{color:y=>y.palette.primary.notifyIconColor}})}):p.jsx(p.Fragment,{children:p.jsx(Y2,{data:d,handleShowDetails:t,handleRead:r,clickId:n,page:f,setPage:h,mode:u,t:s})})}),p.jsxs($d,{sx:{justifyContent:"space-between",px:"1.2rem"},children:[p.jsxs(qe,{direction:"row",gap:1,children:[p.jsx(Lr,{sx:{fontSize:"1rem"},children:s("SHOW_UNREAD")}),p.jsx(A8,{disabled:a,checked:u,onChange:g})]}),p.jsx(yl,{variant:"outlined",className:"view-all",onClick:o,startIcon:p.jsx(aL,{}),disabled:!c?.filter(y=>!y?.isRead)?.length,style:{backgroundColor:"transparent"},sx:{fontSize:"1rem",fontWeight:"300",p:0,border:"none",textTransform:"none",color:y=>y.palette.primary.notifyTextColor,"&:hover":{color:y=>y.palette.primary.notifyActiveText,background:"transparent",boxShadow:"none",border:"none"},"&.Mui-disabled":{opacity:.5,color:y=>`${y.palette.primary.notifyActiveText}!important`,background:"transparent",boxShadow:"none",border:"none"}},children:s("READ_ALL")})]})]})},uL=({data:e,handleClose:t,t:n})=>{const[r,o]=x.useState(1),[s,a]=x.useState(10),[l,c]=x.useState(e?.notificationDetails?.length||0),[d,u]=x.useState("sku_name"),[f,h]=x.useState("asc"),[m,g]=x.useState([]),[y,b]=x.useState("");return x.useEffect(()=>{if((y||d)&&e?.notificationDetails?.length){const v=kA(e?.notificationDetails,s8,y);if(d){const k=EA(v,d,f);g(vf(k,r,s)),c(k?.length||0);return}g(vf(v,r,s)),c(v?.length||0);return}g(vf(e?.notificationDetails,r,s)),c(e?.notificationDetails?.length)},[y,e,r,s,f,d]),p.jsxs(p.Fragment,{children:[p.jsxs(qe,{direction:"row",justifyContent:"space-between",sx:{padding:"1.5rem 2rem",borderBottom:"0.1rem solid",borderColor:v=>v.palette.primary.notifyBorderColor},children:[p.jsx(ut,{component:"h2",sx:{fontSize:"1.4rem",color:v=>v.palette.primary.notifyActiveText},children:n(e?.message)||e?.message}),p.jsx(oe,{onClick:t,sx:{cursor:"pointer"},children:p.jsx(zt,{url:Ge.CloseCircle})})]}),p.jsx(Ld,{children:p.jsx(sp,{t:n,tableProps:{data:m,columns:{...k8({t:n}),isManageable:!1},sort:{sortField:d,sortDir:f,onSort:v=>{const k=v?.column?.key;h(S=>d===k&&S==="asc"?"desc":"asc"),u(k)}},pagination:{selectedPage:r,rowPerPage:s,totalRecords:l,onPageChange:v=>{o(v)},onPageSizeChange:v=>{a(v?.value),o(1)}}},toolbarProps:{defaultTools:{search:{isRequired:!0,onChange:v=>{const k=v.target.value;k&&o(1),b(k)},placeholder:`${n("SEARCH")}...`}}}})}),p.jsx($d,{sx:{padding:"1.5rem 2rem"}})]})},fL=({baseUrl:e,t})=>{const{alertDialogProps:n,showDetailsProps:r,fetchNotification:o,isMarkAllAsRead:s}=$2({baseUrl:e});return p.jsxs(p.Fragment,{children:[p.jsx(oe,{sx:{display:"flex",justifyContent:"center",cursor:"pointer",marginTop:"0.6rem"},onClick:()=>{o(),n?.setOpen?.(!0)},children:p.jsx(iL,{count:s.count})}),p.jsx($f,{...n,children:p.jsx(dL,{...n,t})}),p.jsx($f,{...r,children:p.jsx(uL,{...r,t})})]})},pL=({baseUrl:e,t})=>p.jsx(Yt,{children:p.jsx(p1,{children:p.jsx(fL,{baseUrl:e,t})})}),q2=x.createContext(null),hL=q2.Provider,mL=()=>{const e=x.useContext(q2);return e||console.warn("useAnalytics used outside AnalyticsProvider"),e};it.Accordion=m1,it.AnalyticsProvider=hL,it.Breadcrumb=J9,it.Button=Dr,it.Checkbox=gr,it.DatePicker=$9,it.Dialog=X9,it.Grid=sp,it.GridTable=z8,it.Header=b1,it.InputField=uv,it.Loader=Y9,it.Notification=pL,it.Select=mv,it.SkeletonLoader=q9,it.SliderLayout=g1,it.Switch=yv,it.TextField=Ui,it.TimePicker=L9,it.ToastProvider=H9,it.TranslationContext=ln,it.toast=F9,it.useAnalytics=mL,Object.defineProperty(it,Symbol.toStringTag,{value:"Module"})}));
|
|
257
|
-
//# sourceMappingURL=index.umd.js.map
|