1const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/web-Bmns9-W5.js","assets/index-BkJrzYmK.js","assets/index-BzLiNzZo.css","assets/web-Bi-SP-H5.js","assets/web-eP20xUuF.js","assets/PendingInvite-w8CXnTp5.js","assets/CapacitorListener-B1QTWhcP.js","assets/index-D5b3gegs.js","assets/ImageCache-OXdzyrgJ.js","assets/WidgetService-2-7NGEwL.js","assets/FeedbackService-42cagSqN.js","assets/web-CEA4UNDz.js"])))=>i.map(i=>d[i]); 2var Sp=e=>{throw TypeError(e)};var Zu=(e,t,r)=>t.has(e)||Sp("Cannot "+r);var z=(e,t,r)=>(Zu(e,t,"read from private field"),r?r.call(e):t.get(e)),Be=(e,t,r)=>t.has(e)?Sp("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,r),Se=(e,t,r,n)=>(Zu(e,t,"write to private field"),n?n.call(e,r):t.set(e,r),r),tt=(e,t,r)=>(Zu(e,t,"access private method"),r);var Cl=(e,t,r,n)=>({set _(o){Se(e,t,o,r)},get _(){return z(e,t,n)}});import{r as p,a as Wb,b as Ub,f as fc,g as zc,j as c,c as Vb,h as Yb,d as Gb,i as Kn,_ as Mr,R as Gl}from"./index-BkJrzYmK.js";const Kb=(e,t,r,n)=>{var a,i,s,l;const o=[r,{code:t,...n||{}}];if((i=(a=e==null?void 0:e.services)==null?void 0:a.logger)!=null&&i.forward)return e.services.logger.forward(o,"warn","react-i18next::",!0);wa(o[0])&&(o[0]=`react-i18next:: ${o[0]}`),(l=(s=e==null?void 0:e.services)==null?void 0:s.logger)!=null&&l.warn?e.services.logger.warn(...o):console!=null&&console.warn},wp={},x0=(e,t,r,n)=>{wa(r)&&wp[r]||(wa(r)&&(wp[r]=new Date),Kb(e,t,r,n))},C0=(e,t)=>()=>{if(e.isInitialized)t();else{const r=()=>{setTimeout(()=>{e.off("initialized",r)},0),t()};e.on("initialized",r)}},Rd=(e,t,r)=>{e.loadNamespaces(t,C0(e,r))},kp=(e,t,r,n)=>{if(wa(r)&&(r=[r]),e.options.preload&&e.options.preload.indexOf(t)>-1)return Rd(e,r,n);r.forEach(o=>{e.options.ns.indexOf(o)<0&&e.options.ns.push(o)}),e.loadLanguages(t,C0(e,n))},Jb=(e,t,r={})=>!t.languages||!t.languages.length?(x0(t,"NO_LANGUAGES","i18n.languages were undefined or empty",{languages:t.languages}),!0):t.hasLoadedNamespace(e,{lng:r.lng,precheck:(n,o)=>{if(r.bindI18n&&r.bindI18n.indexOf("languageChanging")>-1&&n.services.backendConnector.backend&&n.isLanguageChangingTo&&!o(n.isLanguageChangingTo,e))return!1}}),wa=e=>typeof e=="string",qb=e=>typeof e=="object"&&e!==null,Xb=p.createContext();class Qb{constructor(){this.usedNamespaces={}}addUsedNamespaces(t){t.forEach(r=>{this.usedNamespaces[r]||(this.usedNamespaces[r]=!0)})}getUsedNamespaces(){return Object.keys(this.usedNamespaces)}}var S0={exports:{}},w0={};/** 3 * @license React 4 * use-sync-external-store-shim.production.js 5 * 6 * Copyright (c) Meta Platforms, Inc. and affiliates. 7 * 8 * This source code is licensed under the MIT license found in the 9 * LICENSE file in the root directory of this source tree. 10 */var bi=p;function Zb(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var ex=typeof Object.is=="function"?Object.is:Zb,tx=bi.useState,rx=bi.useEffect,nx=bi.useLayoutEffect,ox=bi.useDebugValue;function ax(e,t){var r=t(),n=tx({inst:{value:r,getSnapshot:t}}),o=n[0].inst,a=n[1];return nx(function(){o.value=r,o.getSnapshot=t,ed(o)&&a({inst:o})},[e,r,t]),rx(function(){return ed(o)&&a({inst:o}),e(function(){ed(o)&&a({inst:o})})},[e]),ox(r),r}function ed(e){var t=e.getSnapshot;e=e.value;try{var r=t();return!ex(e,r)}catch{return!0}}function ix(e,t){return t()}var sx=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?ix:ax;w0.useSyncExternalStore=bi.useSyncExternalStore!==void 0?bi.useSyncExternalStore:sx;S0.exports=w0;var lx=S0.exports;const cx=(e,t)=>wa(t)?t:qb(t)&&wa(t.defaultValue)?t.defaultValue:Array.isArray(e)?e[e.length-1]:e,ux={t:cx,ready:!1},dx=()=>()=>{},Jn=(e,t={})=>{var E,T,I;const{i18n:r}=t,{i18n:n,defaultNS:o}=p.useContext(Xb)||{},a=r||n||Ub();a&&!a.reportNamespaces&&(a.reportNamespaces=new Qb),a||x0(a,"NO_I18NEXT_INSTANCE","useTranslation: You will need to pass in an i18next instance by using initReactI18next");const i=p.useMemo(()=>{var k;return{...Wb(),...(k=a==null?void 0:a.options)==null?void 0:k.react,...t}},[a,t]),{useSuspense:s,keyPrefix:l}=i,u=e||o||((E=a==null?void 0:a.options)==null?void 0:E.defaultNS),d=wa(u)?[u]:u||["translation"],f=p.useMemo(()=>d,d);(I=(T=a==null?void 0:a.reportNamespaces)==null?void 0:T.addUsedNamespaces)==null||I.call(T,f);const h=p.useRef(0),g=p.useCallback(k=>{if(!a)return dx;const{bindI18n:D,bindI18nStore:L}=i,$=()=>{h.current+=1,k()};return D&&a.on(D,$),L&&a.store.on(L,$),()=>{D&&D.split(" ").forEach(j=>a.off(j,$)),L&&L.split(" ").forEach(j=>a.store.off(j,$))}},[a,i]),m=p.useRef(),v=p.useCallback(()=>
10{if(!a)return ux;const k=!!(a.isInitialized||a.initializedStoreOnce)&&f.every(M=>Jb(M,a,i)),D=t.lng||a.language,L=h.current,$=m.current;if($&&$.ready===k&&$.lng===D&&$.keyPrefix===l&&$.revision===L)return $;const A={t:a.getFixedT(D,i.nsMode==="fallback"?f:f[0],l),ready:k,lng:D,keyPrefix:l,revision:L};return m.current=A,A},[a,f,l,i,t.lng]),[x,w]=p.useState(0),{t:S,ready:y}=lx.useSyncExternalStore(g,v,v);p.useEffect(()=>{if(a&&!y&&!s){const k=()=>w(D=>D+1);t.lng?kp(a,t.lng,f,k):Rd(a,f,k)}},[a,t.lng,f,y,s,x]);const _=a||{},R=p.useRef(null),O=p.useRef(),b=k=>{const D=Object.getOwnPropertyDescriptors(k);D.__original&&delete D.__original;const L=Object.create(Object.getPrototypeOf(k),D);if(!Object.prototype.hasOwnProperty.call(L,"__original"))try{Object.defineProperty(L,"__original",{value:k,writable:!1,enumerable:!1,configurable:!1})}catch{}return L},P=p.useMemo(()=>{const k=_,D=k==null?void 0:k.language;let L=k;k&&(R.current&&R.current.__original===k?O.current!==D?(L=b(k),R.current=L,O.current=D):L=R.current:(L=b(k),R.current=L,O.current=D));const $=[S,L,y];return $.t=S,$.i18n=L,$.ready=y,$},[S,_,y,_.resolvedLanguage,_.language,_.languages]);if(a&&s&&!y)throw new Promise(k=>{const D=()=>k();t.lng?kp(a,t.lng,f,D):Rd(a,f,D)});return P},rs={grey:{50:"#FBFCFE",100:"#F0F4F8",200:"#DDE7EE",300:"#CDD7E1",400:"#9FA6AD",500:"#636B74",600:"#555E68",700:"#32383E",800:"#171A1C",900:"#0B0D0E"},blue:{50:"#EDF5FD",100:"#E3EFFB",200:"#C7DFF7",300:"#97C3F0",400:"#4393E4",500:"#0B6BCB",600:"#185EA5",700:"#12467B",800:"#0A2744",900:"#051423"},yellow:{50:"#FEFAF6",100:"#FDF0E1",200:"#FCE1C2",300:"#F3C896",400:"#EA9A3E",500:"#9A5B13",600:"#72430D",700:"#492B08",800:"#2E1B05",900:"#1D1002"},red:{50:"#FEF6F6",100:"#FCE4E4",200:"#F7C5C5",300:"#F09898",400:"#E47474",500:"#C41C1C",600:"#A51818",700:"#7D1212",800:"#430A0A",900:"#240505"},green:{50:"#F6FEF6",100:"#E3FBE3",200:"#C7F7C7",300:"#A1E8A1",400:"#51BC51",500:"#1F7A1F",600:"#136C13",700:"#0A470A",800:"#042F04",900:"#021D02"}},$i="$$joy";function vo(e){let t="https://mui.com/production-error/?code="+e;for(let r=1;r<arguments.length;r+=1)t+="&args[]="+encodeURIComponent(arguments[r]);return"Minified MUI error #"+e+"; visit "+t+" for the full message."}const fx=Object.freeze(Object.defineProperty({__proto__:null,default:vo},Symbol.toStringTag,{value:"Module"}));function C(){return C=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},C.apply(null,arguments)}const hx=Object.freeze(Object.defineProperty({__proto__:null,get default(){return C}},Symbol.toStringTag,{value:"Module"}));function px(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 mx(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 gx=function(){function e(r){var n=this;this._insertTag=function(o){var a;n.tags.length===0?n.insertionPoint?a=n.insertionPoint.nextSibling:n.prepend?a=n.container.firstChild:a=n.before:a=n.tags[n.tags.length-1].nextSibling,n.container.insertBefore(o,a),n.tags.push(o)},this.isSpeedy=r.speedy===void 0?!0:r.speedy,this.tags=[],this.ctr=0,this.nonce=r.nonce,this.key=r.key,this.container=r.container,this.prepend=r.prepend,this.insertionPoint=r.insertionPoint,this.before=null}var t=e.prototype;return t.hydrate=function(n){n.forEach(this._insertTag)},t.insert=function(n){this.ctr%(this.isSpeedy?65e3:1)===0&&this._insertTag(mx(this));var o=this.tags[this.tags.length-1];if(this.isSpeedy){var a=px(o);try{a.insertRule(n,a.cssRules.length)}catch{}}else o.appendChild(document.createTextNode(n));this.ctr++}
vendor: 12,402 bytes, lines 10-17
10,t.flush=function(){this.tags.forEach(function(n){var o;return(o=n.parentNode)==null?void 0:o.removeChild(n)}),this.tags=[],this.ctr=0},e}(),Rr="-ms-",hc="-moz-",kt="-webkit-",k0="comm",$f="rule",jf="decl",vx="@import",_0="@keyframes",yx="@layer",bx=Math.abs,Nc=String.fromCharCode,xx=Object.assign;function Cx(e,t){return Sr(e,0)^45?(((t<<2^Sr(e,0))<<2^Sr(e,1))<<2^Sr(e,2))<<2^Sr(e,3):0}function E0(e){return e.trim()}function Sx(e,t){return(e=t.exec(e))?e[0]:e}function Et(e,t,r){return e.replace(t,r)}function Td(e,t){return e.indexOf(t)}function Sr(e,t){return e.charCodeAt(t)|0}function Is(e,t,r){return e.slice(t,r)}function zn(e){return e.length}function Af(e){return e.length}function Sl(e,t){return t.push(e),e}function wx(e,t){return e.map(t).join("")}var Fc=1,xi=1,P0=0,Yr=0,sr=0,ji="";function Hc(e,t,r,n,o,a,i){return{value:e,root:t,parent:r,type:n,props:o,children:a,line:Fc,column:xi,length:i,return:""}}function ns(e,t){return xx(Hc("",null,null,"",null,null,0),e,{length:-e.length},t)}function kx(){return sr}function _x(){return sr=Yr>0?Sr(ji,--Yr):0,xi--,sr===10&&(xi=1,Fc--),sr}function Xr(){return sr=Yr<P0?Sr(ji,Yr++):0,xi++,sr===10&&(xi=1,Fc++),sr}function Bn(){return Sr(ji,Yr)}function Kl(){return Yr}function rl(e,t){return Is(ji,e,t)}function Ds(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 R0(e){return Fc=xi=1,P0=zn(ji=e),Yr=0,[]}function T0(e){return ji="",e}function Jl(e){return E0(rl(Yr-1,Id(e===91?e+2:e===40?e+1:e)))}function Ex(e){for(;(sr=Bn())&&sr<33;)Xr();return Ds(e)>2||Ds(sr)>3?"":" "}function Px(e,t){for(;--t&&Xr()&&!(sr<48||sr>102||sr>57&&sr<65||sr>70&&sr<97););return rl(e,Kl()+(t<6&&Bn()==32&&Xr()==32))}function Id(e){for(;Xr();)switch(sr){case e:return Yr;case 34:case 39:e!==34&&e!==39&&Id(sr);break;case 40:e===41&&Id(e);break;case 92:Xr();break}return Yr}function Rx(e,t){for(;Xr()&&e+sr!==57;)if(e+sr===84&&Bn()===47)break;return"/*"+rl(t,Yr-1)+"*"+Nc(e===47?e:Xr())}function Tx(e){for(;!Ds(Bn());)Xr();return rl(e,Yr)}function Ix(e){return T0(ql("",null,null,null,[""],e=R0(e),0,[0],e))}function ql(e,t,r,n,o,a,i,s,l){for(var u=0,d=0,f=i,h=0,g=0,m=0,v=1,x=1,w=1,S=0,y="",_=o,R=a,O=n,b=y;x;)switch(m=S,S=Xr()){case 40:if(m!=108&&Sr(b,f-1)==58){Td(b+=Et(Jl(S),"&","&\f"),"&\f")!=-1&&(w=-1);break}case 34:case 39:case 91:b+=Jl(S);break;case 9:case 10:case 13:case 32:b+=Ex(m);break;case 92:b+=Px(Kl()-1,7);continue;case 47:switch(Bn()){case 42:case 47:Sl(Dx(Rx(Xr(),Kl()),t,r),l);break;default:b+="/"}break;case 123*v:s[u++]=zn(b)*w;case 125*v:case 59:case 0:switch(S){case 0:case 125:x=0;case 59+d:w==-1&&(b=Et(b,/\f/g,"")),g>0&&zn(b)-f&&Sl(g>32?Ep(b+";",n,r,f-1):Ep(Et(b," ","")+";",n,r,f-2),l);break;case 59:b+=";";default:if(Sl(O=_p(b,t,r,u,d,o,s,y,_=[],R=[],f),a),S===123)if(d===0)ql(b,t,O,O,_,a,f,s,R);else switch(h===99&&Sr(b,3)===110?100:h){case 100:case 108:case 109:case 115:ql(e,O,O,n&&Sl(_p(e,O,O,0,0,o,s,y,o,_=[],f),R),o,R,f,s,n?_:R);break;default:ql(b,O,O,O,[""],R,0,s,R)}}u=d=g=0,v=w=1,y=b="",f=i;break;case 58:f=1+zn(b),g=m;default:if(v<1){if(S==123)--v;else if(S==125&&v++==0&&_x()==125)continue}switch(b+=Nc(S),S*v){case 38:w=d>0?1:(b+="\f",-1);break;case 44:s[u++]=(zn(b)-1)*w,w=1;break;case 64:Bn()===45&&(b+=Jl(Xr())),h=Bn(),d=f=zn(y=b+=Tx(Kl())),S++;break;case 45:m===45&&zn(b)==2&&(v=0)}}return a}function _p(e,t,r,n,o,a,i,s,l,u,d){for(var f=o-1,h=o===0?a:[""],g=Af(h),m=0,v=0,x=0;m<n;++m)for(var w=0,S=Is(e,f+1,f=bx(v=i[m])),y=e;w<g;++w)(y=E0(v>0?h[w]+" "+S:Et(S,/&\f/g,h[w])))&&(l[x++]=y);return Hc(e,t,r,o===0?$f:s,l,u,d)}function Dx(e,t,r){return Hc(e,t,r,k0,Nc(kx()),Is(e,2,-2),0)}function Ep(e,t,r,n){return Hc(e,t,r,jf,Is(e,0,n),Is(e,n+1,-1),n)}function Xa(e,t){for(var r="",n=Af(e),o=0;o<n;o++)r+=t(e[o],o,e,t)||"";return r}function Ox(e,t,r,n){switch(e.type){case yx:if(e.children.length)break;case vx:case jf:return e.return=e.return||e.value;case k0:return"";case _0:return e.return=e.value+"{"+Xa(e.children,n)+"}";case $f:e.value=e.props.join(",")}return zn(r=Xa(e.children,n))?e.return=e.value+"{"+r+"}":""}function $x(e){var t=Af(e);return function(r,n,o,a){for(var i="",s=0;s<t;s++)i+=e[s](r,n,o,a)||"";return i}}function jx(e){return function(t){t.root||(t=t.return)&&e(t)}}function I0(e){var t=Object.create(null);return function(r){return t[r]===void 0&&(t[r]=e(r)),t[r]}}var Ax=function(t,r,n){for(var o=0,a=0;o=a,a=Bn(),o===38&&a===12&&(r[n]=1),!Ds(a);)Xr();return rl(t,Yr)},Lx=function(t,r){var n=-1,o=44;do switch(Ds(o)){case 0:o===38&&Bn()===12&&(r[n]=1),t[n]+=Ax(Yr-1,r,n);break;case 2:t[n]+=Jl(o);break;case 4:if(o===44){t[++n]=Bn()===58?"&\f":"",r[n]=t[n].length;break}default:t[n]+=Nc(o)}while(o=Xr());return t},Mx=function(t,r){return T0(Lx(R0(t),r))},Pp=new WeakMap,zx=function(t){if(!(t.type!=="rule"||!t.parent||t.length<1)){for(var r=t.value,n=t.parent,o=t.column===n.column&&t.line===n.line;n.type!=="rule";)if(n=n.parent,!n)return;if(!(t.props.length===1&&r.charCodeAt(0)!==58&&!Pp.get(n))&&!o){Pp.set(t,!0);for(var a=[],i=Mx(r,a),s=n.props,l=0,u=0;l<i.length;l++)for(var d=0;d<s.length;d++,u++)t.props[u]=a[l]?i[l].replace(/&\f/g,s[d]):s[d]+" "+i[l]}}},Nx=function(t){if(t.type==="decl"){var r=t.value;r.charCodeAt(0)===108&&r.charCodeAt(2)===98&&(t.return="",t.value="")}};function D0(e,t){switch(Cx(e,t)){case 5103:return kt+"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 kt+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return kt+e+hc+e+Rr+e+e;case 6828:case 4268:return kt+e+Rr+e+e;case 6165:return kt+e+Rr+"flex-"+e+e;case 5187:return kt+e+Et(e,/(\w+).+(:[^]+)/,kt+"box-$1$2"+Rr+"flex-$1$2")+e;case 5443:return kt+e+Rr+"flex-item-"+Et(e,/flex-|-self/,"")+e;case 4675:return kt+e+Rr+"flex-line-pack"+Et(e,/align-content|flex-|-self/,"")+e;case 5548:return kt+e+Rr+Et(e,"shrink","negative")+e;case 5292:return kt+e+Rr+Et(e,"basis","preferred-size")+e;case 6060:return kt+"box-"+Et(e,"-grow","")+kt+e+Rr+Et(e,"grow","positive")+e;case 4554:return kt+Et(e,/([^-])(transform)/g,"$1"+kt+"$2")+e;case 6187:return Et(Et(Et(e,/(zoom-|grab)/,kt+"$1"),/(image-set)/,kt+"$1"),e,"")+e;case 5495:case 3959:return Et(e,/(image-set\([^]*)/,kt+"$1$`$1");case 4968:return Et(Et(e,/(.+:)(flex-)?(.*)/,kt+"box-pack:$3"+Rr+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+kt+e+e;case 4095:case 3583:case 4068:case 2532:return Et(e,/(.+)-inline(.+)/,kt+"$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(zn(e)-1-t>6)switch(Sr(e,t+1)){case 109:if(Sr(e,t+4)!==45)break;case 102:return Et(e,/(.+:)(.+)-([^]+)/,"$1"+kt+"$2-$3$1"+hc+(Sr(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~Td(e,"stretch")?D0(Et(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(Sr(e,t+1)!==115)break;case 6444:switch(Sr(e,zn(e)-3-(~Td(e,"!important")&&10))){case 107:return Et(e,":",":"+kt)+e;case 101:return Et(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+kt+(Sr(e,14)===45?"inline-":"")+"box$3$1"+kt+"$2$3$1"+Rr+"$2box$3")+e}break;case 5936:switch(Sr(e,t+11)){case 114:return kt+e+Rr+Et(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return kt+e+Rr+Et(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return kt+e+Rr+Et(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return kt+e+Rr+e+e}return e}var Fx=function(t,r,n,o){if(t.length>-1&&!t.return)switch(t.type){case jf:t.return=D0(t.value,t.length);break;case _0:return Xa([ns(t,{value:Et(t.value,"@","@"+kt)})],o);case $f:if(t.length)return wx(t.props,function(a){switch(Sx(a,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return Xa([ns(t,{props:[Et(a,/:(read-\w+)/,":"+hc+"$1")]})],o);case"::placeholder":return Xa([ns(t,{props:[Et(a,/:(plac\w+)/,":"+kt+"input-$1")]}),ns(t,{props:[Et(a,/:(plac\w+)/,":"+hc+"$1")]}),ns(t,{props:[Et(a,/:(plac\w+)/,Rr+"input-$1")]})],o)}return""})}},Hx=[Fx],pc=function(t){var r=t.key;if(r==="css"){var n=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(n,function(v){var x=v.getAttribute("data-emotion");x.indexOf(" ")!==-1&&(document.head.appendChild(v),v.setAttribute("data-s",""))})}var o=t.stylisPlugins||Hx,a={},i,s=[];i=t.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+r+' "]'),function(v){for(var x=v.getAttribute("data-emotion").split(" "),w=1;w<x.length;w++)a[x[w]]=!0;s.push(v)});var l,u=[zx,Nx];{var d,f=[Ox,jx(function(v){d.insert(v)})],h=$x(u.concat(o,f)),g=function(x){return Xa(Ix(x),h)};l=function(x,w,S,y){d=S,g(x?x+"{"+w.styles+"}":w.styles),y&&(m.inserted[w.name]=!0)}}var m={key:r,sheet:new gx({key:r,container:i,nonce:t.nonce,speedy:t.speedy,prepend:t.prepend,insertionPoint:t.insertionPoint}),nonce:t.nonce,inserted:a,registered:{},insert:l};return m.sheet.hydrate(s),m},O0={exports:{}},$t={};/** @license React v16.13.1 11 * react-is.production.min.js 12 * 13 * Copyright (c) Facebook, Inc. and its affiliates. 14 * 15 * This source code is licensed under the MIT license found in the 16 * LICENSE file in the root directory of this source tree. 17 */var yr=typeof Symbol=="function"&&Symbol.for,Lf=yr?Symbol.for("react.element"):60103,Mf=yr?Symbol.for("react.portal"):60106,Bc=yr?Symbol.for("react.fragment"):60107,Wc=yr?Symbol.for("react.strict_mode"):60108,Uc=yr?Symbol.for("react.profiler"):60114,Vc=yr?Symbol.for("react.provider"):60109,Yc=yr?Symbol.for("react.context"):60110,zf=yr?Symbol.for("react.async_mode"):60111,Gc=yr?Symbol.for("react.concurrent_mode"):60111,Kc=yr?Symbol.for("react.forward_ref"):60112,Jc=yr?Symbol.for("react.suspense"):60113,Bx=yr?Symbol.for("react.suspense_list"):60120,qc=yr?Symbol.for("react.memo"):60115,Xc=yr?Symbol.for("react.lazy"):60116,Wx=yr?Symbol.for("react.block"):60121,Ux=yr?Symbol.for("react.fundamental"):60117,Vx=yr?Symbol.for("react.responder"):60118,Yx=yr?Symbol.for("react.scope"):60119;function Zr(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case Lf:switch(e=e.type,e){case zf:case Gc:case Bc:case Uc:case Wc:case Jc:return e;default:switch(e=e&&e.$$typeof,e){case Yc:case Kc:case Xc:case qc:case Vc:return e;default:return t}}case Mf:return t}}}function $0(e){return Zr(e)===Gc}$t.AsyncMode=zf;$t.ConcurrentMode=Gc;$t.ContextConsumer=Yc;$t.ContextProvider=Vc;$t.Element=Lf;$t.ForwardRef=Kc;$t.Fragment=Bc;$t.Lazy=Xc;$t.Memo=qc;$t.Portal=Mf;$t.Profiler=Uc;$t.StrictMode=Wc;$t.Suspense=Jc;$t.isAsyncMode=function(e){return $0(e)||Zr(e)===zf};$t.isConcurrentMode=$0;$t.isContextConsumer=function(e){return Zr(e)===Yc};$t.isContextProvider=function(e){return Zr(e)===Vc};$t.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===Lf};$t.isForwardRef=function(e){return Zr(e)===Kc};$t.isFragment=function(e){return Zr(e)===Bc};$t.isLazy=function(e){return Zr(e)===Xc};$t.isMemo=function(e){return Zr(e)===qc};$t.isPortal=function(e){return Zr(e)===Mf};$t.isProfiler=function(e){return Zr(e)===Uc};$t.isStrictMode=function(e){return Zr(e)===Wc};$t.isSuspense=function(e){return Zr(e)===Jc};$t.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===Bc||e===Gc||e===Uc||e===Wc||e===Jc||e===Bx||typeof e=="object"&&e!==null&&(e.$$typeof===Xc||e.$$typeof===qc||e.$$typeof===Vc||e.$$typeof===Yc||e.$$typeof===Kc||e.$$typeof===Ux||e.$$typeof===Vx||e.$$typeof===Yx||e.$$typeof===Wx)};$t.typeOf=Zr;O0.exports=$t;var Gx=O0.exports,j0=Gx,Kx={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},Jx={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},A0={};A0[j0.ForwardRef]=Kx;A0[j0.Memo]=Jx;var qx=!0;function L0(e,t,r){var n="";return r.split(" ").forEach(function(o){e[o]!==void 0?t.push(e[o]+";"):o&&(n+=o+" ")}),n}var Nf=function(t,r,n){var o=t.key+"-"+r.name;(n===!1||qx===!1)&&t.registered[o]===void 0&&(t.registered[o]=r.styles)},Ff=function(t,r,n){Nf(t,r,n);var o=t.key+"-"+r.name;if(t.inserted[r.name]===void 0){var a=r;do t.insert(r===a?"."+o:"",a,t.sheet,!0),a=a.next;while(a!==void 0)}};function Xx(e){for(var t=0,r,n=0,o=e.length;o>=4;++n,o-=4)r=e.charCodeAt(n)&255|(e.charCodeAt(++n)&255)<<8|(e.charCodeAt(++n)&255)<<16|(e.charCodeAt(++n)&255)<<24,r=(r&65535)*1540483477+((r>>>16)*59797<<16),r^=r>>
vendor: 10,869 bytes, line 17
17>24,t=(r&65535)*1540483477+((r>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(o){case 3:t^=(e.charCodeAt(n+2)&255)<<16;case 2:t^=(e.charCodeAt(n+1)&255)<<8;case 1:t^=e.charCodeAt(n)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16)}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}var Qx={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},Zx=/[A-Z]|^ms/g,e2=/_EMO_([^_]+?)_([^]*?)_EMO_/g,M0=function(t){return t.charCodeAt(1)===45},Rp=function(t){return t!=null&&typeof t!="boolean"},td=I0(function(e){return M0(e)?e:e.replace(Zx,"-$&").toLowerCase()}),Tp=function(t,r){switch(t){case"animation":case"animationName":if(typeof r=="string")return r.replace(e2,function(n,o,a){return Nn={name:o,styles:a,next:Nn},o})}return Qx[t]!==1&&!M0(t)&&typeof r=="number"&&r!==0?r+"px":r};function Os(e,t,r){if(r==null)return"";var n=r;if(n.__emotion_styles!==void 0)return n;switch(typeof r){case"boolean":return"";case"object":{var o=r;if(o.anim===1)return Nn={name:o.name,styles:o.styles,next:Nn},o.name;var a=r;if(a.styles!==void 0){var i=a.next;if(i!==void 0)for(;i!==void 0;)Nn={name:i.name,styles:i.styles,next:Nn},i=i.next;var s=a.styles+";";return s}return t2(e,t,r)}case"function":{if(e!==void 0){var l=Nn,u=r(e);return Nn=l,Os(e,t,u)}break}}var d=r;if(t==null)return d;var f=t[d];return f!==void 0?f:d}function t2(e,t,r){var n="";if(Array.isArray(r))for(var o=0;o<r.length;o++)n+=Os(e,t,r[o])+";";else for(var a in r){var i=r[a];if(typeof i!="object"){var s=i;t!=null&&t[s]!==void 0?n+=a+"{"+t[s]+"}":Rp(s)&&(n+=td(a)+":"+Tp(a,s)+";")}else if(Array.isArray(i)&&typeof i[0]=="string"&&(t==null||t[i[0]]===void 0))for(var l=0;l<i.length;l++)Rp(i[l])&&(n+=td(a)+":"+Tp(a,i[l])+";");else{var u=Os(e,t,i);switch(a){case"animation":case"animationName":{n+=td(a)+":"+u+";";break}default:n+=a+"{"+u+"}"}}}return n}var Ip=/label:\s*([^\s;{]+)\s*(;|$)/g,Nn;function nl(e,t,r){if(e.length===1&&typeof e[0]=="object"&&e[0]!==null&&e[0].styles!==void 0)return e[0];var n=!0,o="";Nn=void 0;var a=e[0];if(a==null||a.raw===void 0)n=!1,o+=Os(r,t,a);else{var i=a;o+=i[0]}for(var s=1;s<e.length;s++)if(o+=Os(r,t,e[s]),n){var l=a;o+=l[s]}Ip.lastIndex=0;for(var u="",d;(d=Ip.exec(o))!==null;)u+="-"+d[1];var f=Xx(o)+u;return{name:f,styles:o,next:Nn}}var r2=function(t){return t()},z0=fc.useInsertionEffect?fc.useInsertionEffect:!1,N0=z0||r2,Dp=z0||p.useLayoutEffect,F0=p.createContext(typeof HTMLElement<"u"?pc({key:"css"}):null),H0=F0.Provider,Hf=function(t){return p.forwardRef(function(r,n){var o=p.useContext(F0);return t(r,o,n)})},Ai=p.createContext({}),Bf={}.hasOwnProperty,Dd="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",n2=function(t,r){var n={};for(var o in r)Bf.call(r,o)&&(n[o]=r[o]);return n[Dd]=t,n},o2=function(t){var r=t.cache,n=t.serialized,o=t.isStringTag;return Nf(r,n,o),N0(function(){return Ff(r,n,o)}),null},a2=Hf(function(e,t,r){var n=e.css;typeof n=="string"&&t.registered[n]!==void 0&&(n=t.registered[n]);var o=e[Dd],a=[n],i="";typeof e.className=="string"?i=L0(t.registered,a,e.className):e.className!=null&&(i=e.className+" ");var s=nl(a,void 0,p.useContext(Ai));i+=t.key+"-"+s.name;var l={};for(var u in e)Bf.call(e,u)&&u!=="css"&&u!==Dd&&(l[u]=e[u]);return l.className=i,r&&(l.ref=r),p.createElement(p.Fragment,null,p.createElement(o2,{cache:t,serialized:s,isStringTag:typeof o=="string"}),p.createElement(o,l))}),i2=a2,Op=function(t,r){var n=arguments;if(r==null||!Bf.call(r,"css"))return p.createElement.apply(void 0,n);var o=n.length,a=new Array(o);a[0]=i2,a[1]=n2(t,r);for(var i=2;i<o;i++)a[i]=n[i];return p.createElement.apply(null,a)};(function(e){var t;t||(t=e.JSX||(e.JSX={}))})(Op||(Op={}));var s2=Hf(function(e,t){var r=e.styles,n=nl([r],void 0,p.useContext(Ai)),o=p.useRef();return Dp(function(){var a=t.key+"-global",i=new t.sheet.constructor({key:a,nonce:t.sheet.nonce,container:t.sheet.container,speedy:t.sheet.isSpeedy}),s=!1,l=document.querySelector('style[data-emotion="'+a+" "+n.name+'"]');return t.sheet.tags.length&&(i.before=t.sheet.tags[0]),l!==null&&(s=!0,l.setAttribute("data-emotion",a),i.hydrate([l])),o.current=[i,s],function(){i.flush()}},[t]),Dp(function(){var a=o.current,i=a[0],s=a[1];if(s){a[1]=!1;return}if(n.next!==void 0&&Ff(t,n.next,!0),i.tags.length){var l=i.tags[i.tags.length-1].nextElementSibling;i.before=l,i.flush()}t.insert("",n,i,!1)},[t,n.name]),null});function Wf(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return nl(t)}function Qc(){var e=Wf.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 l2=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|disableRemotePlayback|download|draggable|encType|enterKeyHint|fetchpriority|fetchPriority|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,c2=I0(function(e){return l2.test(e)||e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)<91}),u2=c2,d2=function(t){return t!=="theme"},$p=function(t){return typeof t=="string"&&t.charCodeAt(0)>96?u2:d2},jp=function(t,r,n){var o;if(r){var a=r.shouldForwardProp;o=t.__emotion_forwardProp&&a?function(i){return t.__emotion_forwardProp(i)&&a(i)}:a}return typeof o!="function"&&n&&(o=t.__emotion_forwardProp),o},f2=function(t){var r=t.cache,n=t.serialized,o=t.isStringTag;return Nf(r,n,o),N0(function(){return Ff(r,n,o)}),null},h2=function e(t,r){var n=t.__emotion_real===t,o=n&&t.__emotion_base||t,a,i;r!==void 0&&(a=r.label,i=r.target);var s=jp(t,r,n),l=s||$p(o),u=!l("as");return function(){var d=arguments,f=n&&t.__emotion_styles!==void 0?t.__emotion_styles.slice(0):[];if(a!==void 0&&f.push("label:"+a+";"),d[0]==null||d[0].raw===void 0)f.push.apply(f,d);else{var h=d[0];f.push(h[0]);for(var g=d.length,m=1;m<g;m++)f.push(d[m],h[m])}var v=Hf(function(x,w,S){var y=u&&x.as||o,_="",R=[],O=x;if(x.theme==null){O={};for(var b in x)O[b]=x[b];O.theme=p.useContext(Ai)}typeof x.className=="string"?_=L0(w.registered,R,x.className):x.className!=null&&(_=x.className+" ");var P=nl(f.concat(R),w.registered,O);_+=w.key+"-"+P.name,i!==void 0&&(_+=" "+i);var E=u&&s===void 0?$p(y):l,T={};for(var I in x)u&&I==="as"||E(I)&&(T[I]=x[I]);return T.className=_,S&&(T.ref=S),p.createElement(p.Fragment,null,p.createElement(f2,{cache:w,serialized:P,isStringTag:typeof y=="string"}),p.createElement(y,T))});
17return v.displayName=a!==void 0?a:"Styled("+(typeof o=="string"?o:o.displayName||o.name||"Component")+")",v.defaultProps=t.defaultProps,v.__emotion_real=v,v.__emotion_base=o,v.__emotion_styles=f,v.__emotion_forwardProp=s,Object.defineProperty(v,"toString",{value:function(){return"."+i}}),v.withComponent=function(x,w){var S=e(x,C({},r,w,{shouldForwardProp:jp(v,w,!0)}));return S.apply(void 0,f)},v}},p2=["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"],Od=h2.bind(null);p2.forEach(function(e){Od[e]=Od(e)});var B0={exports:{}},m2="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED",g2=m2,v2=g2;function W0(){}function U0(){}U0.resetWarningCache=W0;var y2=function(){function e(n,o,a,i,s,l){if(l!==v2){var u=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 u.name="Invariant Violation",u}}e.isRequired=e;function t(){return e}var r={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:U0,resetWarningCache:W0};return r.PropTypes=r,r};B0.exports=y2();var b2=B0.exports;const mr=zc(b2);function x2(e,t){const r=pc({key:"css",prepend:e});if(t){const n=r.insert;r.insert=(...o)=>(o[1].styles.match(/^@layer\s+[^{]*$/)||(o[1].styles=`@layer mui {${o[1].styles}}`),n(...o))}return r}const rd=new Map;function C2(e){const{injectFirst:t,enableCssLayer:r,children:n}=e,o=p.useMemo(()=>{const a=`${t}-${r}`;if(typeof document=="object"&&rd.has(a))return rd.get(a);const i=x2(t,r);return rd.set(a,i),i},[t,r]);return t||r?c.jsx(H0,{value:o,children:n}):n}function S2(e){return e==null||Object.keys(e).length===0}function bs(e){const{styles:t,defaultTheme:r={}}=e,n=typeof t=="function"?o=>t(S2(o)?r:o):t;return c.jsx(s2,{styles:n})}function Uf(e,t){return Od(e,t)}const V0=(e,t)=>{Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=t(e.__emotion_styles))},Ap=[];function mc(e){return Ap[0]=e,nl(Ap)}const w2=Object.freeze(Object.defineProperty({__proto__:null,GlobalStyles:bs,StyledEngineProvider:C2,ThemeContext:Ai,css:Wf,default:Uf,internal_processStyles:V0,internal_serializeStyles:mc,keyframes:Qc},Symbol.toStringTag,{value:"Module"}));function we(e,t){if(e==null)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(t.indexOf(n)!==-1)continue;r[n]=e[n]}return r}function lo(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 Y0(e){if(p.isValidElement(e)||!lo(e))return e;const t={};return Object.keys(e).forEach(r=>{t[r]=Y0(e[r])}),t}function vr(e,t,r={clone:!0}){const n=r.clone?C({},e):e;return lo(e)&&lo(t)&&Object.keys(t).forEach(o=>{p.isValidElement(t[o])?n[o]=t[o]:lo(t[o])&&Object.prototype.hasOwnProperty.call(e,o)&&lo(e[o])?n[o]=vr(e[o],t[o],r):r.clone?n[o]=lo(t[o])?Y0(t[o]):t[o]:n[o]=t[o]}),n}const k2=Object.freeze(Object.defineProperty({__proto__:null,default:vr,isPlainObject:lo},Symbol.toStringTag,{value:"Module"})),_2=["values","unit","step"],E2=e=>{const t=Object.keys(e).map(r=>({key:r,val:e[r]}))||[];return t.sort((r,n)=>r.val-n.val),t.reduce((r,n)=>C({},r,{[n.key]:n.val}),{})};function Vf(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:r="px",step:n=5}=e,o=we(e,_2),a=E2(t),i=Object.keys(a);function s(h){return`@media (min-width:${typeof t[h]=="number"?t[h]:h}${r})`}function l(h){return`@media (max-width:${(typeof t[h]=="number"?t[h]:h)-n/100}${r})`}function u(h,g){const m=i.indexOf(g);return`@media (min-width:${typeof t[h]=="number"?t[h]:h}${r}) and (max-width:${(m!==-1&&typeof t[i[m]]=="number"?t[i[m]]:g)-n/100}${r})`}function d(h){return i.indexOf(h)+1<i.length?u(h,i[i.indexOf(h)+1]):s(h)}function f(h){const g=i.indexOf(h);return g===0?s(i[1]):g===i.length-1?l(i[g]):u(h,i[i.indexOf(h)+1]).replace("@media","@media not all and")}return C({keys:i,values:a,up:s,down:l,between:u,only:d,not:f,unit:r},o)}const P2={borderRadius:4};function xs(e,t){return t?vr(e,t,{clone:!1}):e}const Yf={xs:0,sm:600,md:900,lg:1200,xl:1536},Lp={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${Yf[e]}px)`};function cn(e,t,r){const n=e.theme||{};if(Array.isArray(t)){const a=n.breakpoints||Lp;return t.reduce((i,s,l)=>(i[a.up(a.keys[l])]=r(t[l]),i),{})}if(typeof t=="object"){const a=n.breakpoints||Lp;return Object.keys(t).reduce((i,s)=>{if(Object.keys(a.values||Yf).indexOf(s)!==-1){const l=a.up(s);i[l]=r(t[s],s)}else{const l=s;i[l]=t[l]}return i},{})}return r(t)}function G0(e={}){var t;return((t=e.keys)==null?void 0:t.reduce((n,o)=>{const a=e.up(o);return n[a]={},n},{}))||{}}function $d(e,t){return e.reduce((r,n)=>{const o=r[n];return(!o||Object.keys(o).length===0)&&delete r[n],r},t)}function l7(e,...t){const r=G0(e),n=[r,...t].reduce((o,a)=>vr(o,a),{});return $d(Object.keys(r),n)}function R2(e,t){if(typeof e!="object")return{};const r={},n=Object.keys(t);
17return Array.isArray(e)?n.forEach((o,a)=>{a<e.length&&(r[o]=!0)}):n.forEach(o=>{e[o]!=null&&(r[o]=!0)}),r}function Zc({values:e,breakpoints:t,base:r}){const n=r||R2(e,t),o=Object.keys(n);if(o.length===0)return e;let a;return o.reduce((i,s,l)=>(Array.isArray(e)?(i[s]=e[l]!=null?e[l]:e[a],a=l):typeof e=="object"?(i[s]=e[s]!=null?e[s]:e[a],a=s):i[s]=e,i),{})}function ae(e){if(typeof e!="string")throw new Error(vo(7));return e.charAt(0).toUpperCase()+e.slice(1)}const T2=Object.freeze(Object.defineProperty({__proto__:null,default:ae},Symbol.toStringTag,{value:"Module"}));function Ci(e,t,r=!0){if(!t||typeof t!="string")return null;if(e&&e.vars&&r){const n=`vars.${t}`.split(".").reduce((o,a)=>o&&o[a]?o[a]:null,e);if(n!=null)return n}return t.split(".").reduce((n,o)=>n&&n[o]!=null?n[o]:null,e)}function gc(e,t,r,n=r){let o;return typeof e=="function"?o=e(r):Array.isArray(e)?o=e[r]||n:o=Ci(e,r)||n,t&&(o=t(o,n,e)),o}function or(e){const{prop:t,cssProperty:r=e.prop,themeKey:n,transform:o}=e,a=i=>{if(i[t]==null)return null;const s=i[t],l=i.theme,u=Ci(l,n)||{};return cn(i,s,f=>{let h=gc(u,o,f);return f===h&&typeof f=="string"&&(h=gc(u,o,`${t}${f==="default"?"":ae(f)}`,f)),r===!1?h:{[r]:h}})};return a.propTypes={},a.filterProps=[t],a}function I2(e){const t={};return r=>(t[r]===void 0&&(t[r]=e(r)),t[r])}const D2={m:"margin",p:"padding"},O2={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},Mp={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},$2=I2(e=>{if(e.length>2)if(Mp[e])e=Mp[e];else return[e];const[t,r]=e.split(""),n=D2[t],o=O2[r]||"";return Array.isArray(o)?o.map(a=>n+a):[n+o]}),Gf=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],Kf=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"];[...Gf,...Kf];function ol(e,t,r,n){var o;const a=(o=Ci(e,t,!1))!=null?o:r;return typeof a=="number"?i=>typeof i=="string"?i:a*i:Array.isArray(a)?i=>typeof i=="string"?i:a[i]:typeof a=="function"?a:()=>{}}function K0(e){return ol(e,"spacing",8)}function al(e,t){if(typeof t=="string"||t==null)return t;const r=Math.abs(t),n=e(r);return t>=0?n:typeof n=="number"?-n:`-${n}`}function j2(e,t){return r=>e.reduce((n,o)=>(n[o]=al(t,r),n),{})}function A2(e,t,r,n){if(t.indexOf(r)===-1)return null;const o=$2(r),a=j2(o,n),i=e[r];return cn(e,i,a)}function J0(e,t){const r=K0(e.theme);return Object.keys(e).map(n=>A2(e,t,n,r)).reduce(xs,{})}function er(e){return J0(e,Gf)}er.propTypes={};er.filterProps=Gf;function tr(e){return J0(e,Kf)}tr.propTypes={};tr.filterProps=Kf;function q0(e=8){if(e.mui)return e;const t=K0({spacing:e}),r=(...n)=>(n.length===0?[1]:n).map(a=>{const i=t(a);return typeof i=="number"?`${i}px`:i}).join(" ");return r.mui=!0,r}function eu(...e){const t=e.reduce((n,o)=>(o.filterProps.forEach(a=>{n[a]=o}),n),{}),r=n=>Object.keys(n).reduce((o,a)=>t[a]?xs(o,t[a](n)):o,{});return r.propTypes={},r.filterProps=e.reduce((n,o)=>n.concat(o.filterProps),[]),r}function on(e){return typeof e!="number"?e:`${e}px solid`}function mn(e,t){return or({prop:e,themeKey:"borders",transform:t})}const L2=mn("border",on),M2=mn("borderTop",on),z2=mn("borderRight",on),N2=mn("borderBottom",on),F2=mn("borderLeft",on),H2=mn("borderColor"),B2=mn("borderTopColor"),W2=mn("borderRightColor"),U2=mn("borderBottomColor"),V2=mn("borderLeftColor"),Y2=mn("outline",on),G2=mn("outlineColor"),tu=e=>{if(e.borderRadius!==void 0&&e.borderRadius!==null){const t=ol(e.theme,"shape.borderRadius",4),r=n=>({borderRadius:al(t,n)});return cn(e,e.borderRadius,r)}return null};tu.propTypes={};tu.filterProps=["borderRadius"];eu(L2,M2,z2,N2,F2,H2,B2,W2,U2,V2,tu,Y2,G2);const ru=e=>{if(e.gap!==void 0&&e.gap!==null){const t=ol(e.theme,"spacing",8),r=n=>({gap:al(t,n)});return cn(e,e.gap,r)}return null};ru.propTypes={};ru.filterProps=["gap"];const nu=e=>{if(e.columnGap!==void 0&&e.columnGap!==null){const t=ol(e.theme,"spacing",8),r=n=>({columnGap:al(t,n)});return cn(e,e.columnGap,r)}return null};
17nu.propTypes={};nu.filterProps=["columnGap"];const ou=e=>{if(e.rowGap!==void 0&&e.rowGap!==null){const t=ol(e.theme,"spacing",8),r=n=>({rowGap:al(t,n)});return cn(e,e.rowGap,r)}return null};ou.propTypes={};ou.filterProps=["rowGap"];const K2=or({prop:"gridColumn"}),J2=or({prop:"gridRow"}),q2=or({prop:"gridAutoFlow"}),X2=or({prop:"gridAutoColumns"}),Q2=or({prop:"gridAutoRows"}),Z2=or({prop:"gridTemplateColumns"}),eC=or({prop:"gridTemplateRows"}),tC=or({prop:"gridTemplateAreas"}),rC=or({prop:"gridArea"});eu(ru,nu,ou,K2,J2,q2,X2,Q2,Z2,eC,tC,rC);function Qa(e,t){return t==="grey"?t:e}const nC=or({prop:"color",themeKey:"palette",transform:Qa}),oC=or({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:Qa}),aC=or({prop:"backgroundColor",themeKey:"palette",transform:Qa});eu(nC,oC,aC);function qr(e){return e<=1&&e!==0?`${e*100}%`:e}const iC=or({prop:"width",transform:qr}),Jf=e=>{if(e.maxWidth!==void 0&&e.maxWidth!==null){const t=r=>{var n,o;const a=((n=e.theme)==null||(n=n.breakpoints)==null||(n=n.values)==null?void 0:n[r])||Yf[r];return a?((o=e.theme)==null||(o=o.breakpoints)==null?void 0:o.unit)!=="px"?{maxWidth:`${a}${e.theme.breakpoints.unit}`}:{maxWidth:a}:{maxWidth:qr(r)}};return cn(e,e.maxWidth,t)}return null};Jf.filterProps=["maxWidth"];const sC=or({prop:"minWidth",transform:qr}),lC=or({prop:"height",transform:qr}),cC=or({prop:"maxHeight",transform:qr}),uC=or({prop:"minHeight",transform:qr});or({prop:"size",cssProperty:"width",transform:qr});or({prop:"size",cssProperty:"height",transform:qr});const dC=or({prop:"boxSizing"});eu(iC,Jf,sC,lC,cC,uC,dC);const Li={border:{themeKey:"borders",transform:on},borderTop:{themeKey:"borders",transform:on},borderRight:{themeKey:"borders",transform:on},borderBottom:{themeKey:"borders",transform:on},borderLeft:{themeKey:"borders",transform:on},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:on},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:tu},color:{themeKey:"palette",transform:Qa},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:Qa},backgroundColor:{themeKey:"palette",transform:Qa},p:{style:tr},pt:{style:tr},pr:{style:tr},pb:{style:tr},pl:{style:tr},px:{style:tr},py:{style:tr},padding:{style:tr},paddingTop:{style:tr},paddingRight:{style:tr},paddingBottom:{style:tr},paddingLeft:{style:tr},paddingX:{style:tr},paddingY:{style:tr},paddingInline:{style:tr},paddingInlineStart:{style:tr},paddingInlineEnd:{style:tr},paddingBlock:{style:tr},paddingBlockStart:{style:tr},paddingBlockEnd:{style:tr},m:{style:er},mt:{style:er},mr:{style:er},mb:{style:er},ml:{style:er},mx:{style:er},my:{style:er},margin:{style:er},marginTop:{style:er},marginRight:{style:er},marginBottom:{style:er},marginLeft:{style:er},marginX:{style:er},marginY:{style:er},marginInline:{style:er},marginInlineStart:{style:er},marginInlineEnd:{style:er},marginBlock:{style:er},marginBlockStart:{style:er},marginBlockEnd:{style:er},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:ru},rowGap:{style:ou},columnGap:{style:nu},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:qr},maxWidth:{style:Jf},minWidth:{transform:qr},height:{transform:qr},maxHeight:{transform:qr},minHeight:{transform:qr},boxSizing:{},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}};function fC(...e){const t=e.reduce((n,o)=>n.concat(Object.keys(o)),[]),r=new Set(t);return e.every(n=>r.size===Object.keys(n).length)}function hC(e,t){return typeof e=="function"?e(t):e}function X0(){function e(r,n,o,a){const i={[r]:n,theme:o},s=a[r];if(!s)return{[r]:n};const{cssProperty:l=r,themeKey:u,transform:d,style:f}=s;if(n==null)return null;if(u==="typography"&&n==="inherit")return{[r]:n};const h=Ci(o,u)||{};return f?f(i):cn(i,n,m=>{let v=gc(h,d,m);return m===v&&typeof m=="string"&&(v=gc(h,d,`${r}${m==="default"?"":ae(m)}`,m)),l===!1?v:{[l]:v}})}function t(r){var n;const{sx:o,theme:a={},nested:i}=r||{};if(!o)return null;const s=(n=a.unstable_sxConfig)!=null?n:Li;function l(u){let d=u;if(typeof u=="function")d=u(a);else if(typeof u!="object")return u;if(!d)return null;const f=G0(a.breakpoints),h=Object.keys(f);let g=f;
17return Object.keys(d).forEach(m=>{const v=hC(d[m],a);if(v!=null)if(typeof v=="object")if(s[m])g=xs(g,e(m,v,a,s));else{const x=cn({theme:a},v,w=>({[m]:w}));fC(x,v)?g[m]=t({sx:v,theme:a,nested:!0}):g=xs(g,x)}else g=xs(g,e(m,v,a,s))}),!i&&a.modularCssLayers?{"@layer sx":$d(h,g)}:$d(h,g)}return Array.isArray(o)?o.map(l):l(o)}return t}const Da=X0();Da.filterProps=["sx"];function qf(e,t){const r=this;return r.vars&&typeof r.getColorSchemeSelector=="function"?{[r.getColorSchemeSelector(e).replace(/(\[[^\]]+\])/,"*:where($1)")]:t}:r.palette.mode===e?t:{}}const pC=["breakpoints","palette","spacing","shape"];function Mi(e={},...t){const{breakpoints:r={},palette:n={},spacing:o,shape:a={}}=e,i=we(e,pC),s=Vf(r),l=q0(o);let u=vr({breakpoints:s,direction:"ltr",components:{},palette:C({mode:"light"},n),spacing:l,shape:C({},P2,a)},i);return u.applyStyles=qf,u=t.reduce((d,f)=>vr(d,f),u),u.unstable_sxConfig=C({},Li,i==null?void 0:i.unstable_sxConfig),u.unstable_sx=function(f){return Da({sx:f,theme:this})},u}const mC=Object.freeze(Object.defineProperty({__proto__:null,default:Mi,private_createBreakpoints:Vf,unstable_applyStyles:qf},Symbol.toStringTag,{value:"Module"}));function gC(e){return Object.keys(e).length===0}function au(e=null){const t=p.useContext(Ai);return!t||gC(t)?e:t}const vC=Mi();function zi(e=vC){return au(e)}function nd(e){const t=mc(e);return e!==t&&t.styles?(t.styles.match(/^@layer\s+[^{]*$/)||(t.styles=`@layer global{${t.styles}}`),t):e}function Q0({styles:e,themeId:t,defaultTheme:r={}}){const n=zi(r),o=t&&n[t]||n;let a=typeof e=="function"?e(o):e;return o.modularCssLayers&&(Array.isArray(a)?a=a.map(i=>nd(typeof i=="function"?i(o):i)):a=nd(a)),c.jsx(bs,{styles:a})}const yC=["sx"],bC=e=>{var t,r;const n={systemProps:{},otherProps:{}},o=(t=e==null||(r=e.theme)==null?void 0:r.unstable_sxConfig)!=null?t:Li;return Object.keys(e).forEach(a=>{o[a]?n.systemProps[a]=e[a]:n.otherProps[a]=e[a]}),n};function Ni(e){const{sx:t}=e,r=we(e,yC),{systemProps:n,otherProps:o}=bC(r);let a;return Array.isArray(t)?a=[n,...t]:typeof t=="function"?a=(...i)=>{const s=t(...i);return lo(s)?C({},n,s):n}:a=C({},n,t),C({},o,{sx:a})}const xC=Object.freeze(Object.defineProperty({__proto__:null,default:Da,extendSxProp:Ni,unstable_createStyleFunctionSx:X0,unstable_defaultSxConfig:Li},Symbol.toStringTag,{value:"Module"})),zp=e=>e,CC=()=>{let e=zp;return{configure(t){e=t},generate(t){return e(t)},reset(){e=zp}}},iu=CC();function Z0(e){var t,r,n="";if(typeof e=="string"||typeof e=="number")n+=e;else if(typeof e=="object")if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(r=Z0(e[t]))&&(n&&(n+=" "),n+=r)}else for(r in e)e[r]&&(n&&(n+=" "),n+=r);return n}function Bt(){for(var e,t,r=0,n="",o=arguments.length;r<o;r++)(e=arguments[r])&&(t=Z0(e))&&(n&&(n+=" "),n+=t);return n}const SC=["className","component"];function ev(e={}){const{themeId:t,defaultTheme:r,defaultClassName:n="MuiBox-root",generateClassName:o}=e,a=Uf("div",{shouldForwardProp:s=>s!=="theme"&&s!=="sx"&&s!=="as"})(Da);return p.forwardRef(function(l,u){const d=zi(r),f=Ni(l),{className:h,component:g="div"}=f,m=we(f,SC);return c.jsx(a,C({as:g,ref:u,className:Bt(h,o?o(n):n),theme:t&&d[t]||d},m))})}const tv={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 Fi(e,t,r="Mui"){const n=tv[t];return n?`${r}-${n}`:`${iu.generate(e)}-${t}`}function il(e,t,r="Mui"){const n={};return t.forEach(o=>{n[o]=Fi(e,o,r)}),n}var rv={exports:{}},Ft={};/** 18 * @license React 19 * react-is.production.js 20 * 21 * Copyright (c) Meta Platforms, Inc. and affiliates. 22 * 23 * This source code is licensed under the MIT license found in the 24 * LICENSE file in the root directory of this source tree. 25 */var Xf=Symbol.for("react.transitional.element"),Qf=Symbol.for("react.portal"),su=Symbol.for("react.fragment"),lu=Symbol.for("react.strict_mode"),cu=Symbol.for("react.profiler"),uu=Symbol.for("react.consumer"),du=Symbol.for("react.context"),fu=Symbol.for("react.forward_ref"),hu=Symbol.for("react.suspense"),pu=Symbol.for("react.suspense_list"),mu=Symbol.for("react.memo"),gu=Symbol.for("react.lazy"),wC=Symbol.for("react.view_transition"),kC=Symbol.for("react.client.reference");function gn(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case Xf:switch(e=e.type,e){case su:case cu:case lu:case hu:case pu:case wC:return e;default:switch(e=e&&e.$$typeof,e){case du:case fu:case gu:case mu:return e;case uu:return e;default:return t}}case Qf:return t}}}Ft.ContextConsumer=uu;Ft.ContextProvider=du;Ft.Element=Xf;Ft.ForwardRef=fu;Ft.Fragment=su;Ft.Lazy=gu;Ft.Memo=mu;Ft.Portal=Qf;Ft.Profiler=cu;Ft.StrictMode=lu;Ft.Suspense=hu;Ft.SuspenseList=pu;Ft.isContextConsumer=function(e){return gn(e)===uu};Ft.isContextProvider=function(e){return gn(e)===du};Ft.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===Xf};Ft.isForwardRef=function(e){return gn(e)===fu};Ft.isFragment=function(e){return gn(e)===su};Ft.isLazy=function(e){return gn(e)===gu};Ft.isMemo=function(e){return gn(e)===mu};Ft.isPortal=function(e){return gn(e)===Qf};Ft.isProfiler=function(e){return gn(e)===cu};Ft.isStrictMode=function(e){return gn(e)===lu};Ft.isSuspense=function(e){return gn(e)===hu};Ft.isSuspenseList=function(e){return gn(e)===pu};Ft.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===su||e===cu||e===lu||e===hu||e===pu||typeof e=="object"&&e!==null&&(e.$$typeof===gu||e.$$typeof===mu||e.$$typeof===du||e.$$typeof===uu||e.$$typeof===fu||e.$$typeof===kC||e.getModuleId!==void 0)};Ft.typeOf=gn;rv.exports=Ft;var Np=rv.exports;const _C=/^\s*function(?:\s|\s*\/\*.*\*\/\s*)+([^(\s/]*)\s*/;function nv(e){const t=`${e}`.match(_C);return t&&t[1]||""}function ov(e,t=""){return e.displayName||e.name||nv(e)||t}function Fp(e,t,r){const n=ov(t);return e.displayName||(n!==""?`${r}(${n})`:r)}function EC(e){if(e!=null){if(typeof e=="string")return e;if(typeof e=="function")return ov(e,"Component");if(typeof e=="object")switch(e.$$typeof){case Np.ForwardRef:return Fp(e,e.render,"ForwardRef");case Np.Memo:return Fp(e,e.type,"memo");default:return}}}const PC=Object.freeze(Object.defineProperty({__proto__:null,default:EC,getFunctionName:nv},Symbol.toStringTag,{value:"Module"})),RC=["ownerState"],TC=["variants"],IC=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function DC(e){return Object.keys(e).length===0}function OC(e){return typeof e=="string"&&e.charCodeAt(0)>96}function od(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}
25function Hp(e,t){return t&&e&&typeof e=="object"&&e.styles&&!e.styles.startsWith("@layer")&&(e.styles=`@layer ${t}{${String(e.styles)}}`),e}const $C=Mi(),jC=e=>e&&e.charAt(0).toLowerCase()+e.slice(1);function wl({defaultTheme:e,theme:t,themeId:r}){return DC(t)?e:t[r]||t}function AC(e){return e?(t,r)=>r[e]:null}function Xl(e,t,r){let{ownerState:n}=t,o=we(t,RC);const a=typeof e=="function"?e(C({ownerState:n},o)):e;if(Array.isArray(a))return a.flatMap(i=>Xl(i,C({ownerState:n},o),r));if(a&&typeof a=="object"&&Array.isArray(a.variants)){const{variants:i=[]}=a;let l=we(a,TC);return i.forEach(u=>{let d=!0;if(typeof u.props=="function"?d=u.props(C({ownerState:n},o,n)):Object.keys(u.props).forEach(f=>{(n==null?void 0:n[f])!==u.props[f]&&o[f]!==u.props[f]&&(d=!1)}),d){Array.isArray(l)||(l=[l]);const f=typeof u.style=="function"?u.style(C({ownerState:n},o,n)):u.style;l.push(r?Hp(mc(f),r):f)}}),l}return r?Hp(mc(a),r):a}function av(e={}){const{themeId:t,defaultTheme:r=$C,rootShouldForwardProp:n=od,slotShouldForwardProp:o=od}=e,a=i=>Da(C({},i,{theme:wl(C({},i,{defaultTheme:r,themeId:t}))}));return a.__mui_systemSx=!0,(i,s={})=>{V0(i,O=>O.filter(b=>!(b!=null&&b.__mui_systemSx)));const{name:l,slot:u,skipVariantsResolver:d,skipSx:f,overridesResolver:h=AC(jC(u))}=s,g=we(s,IC),m=l&&l.startsWith("Mui")||u?"components":"custom",v=d!==void 0?d:u&&u!=="Root"&&u!=="root"||!1,x=f||!1;let w,S=od;u==="Root"||u==="root"?S=n:u?S=o:OC(i)&&(S=void 0);const y=Uf(i,C({shouldForwardProp:S,label:w},g)),_=O=>typeof O=="function"&&O.__emotion_real!==O||lo(O)?b=>{const P=wl({theme:b.theme,defaultTheme:r,themeId:t});return Xl(O,C({},b,{theme:P}),P.modularCssLayers?m:void 0)}:O,R=(O,...b)=>{let P=_(O);const E=b?b.map(_):[];l&&h&&E.push(k=>{const D=wl(C({},k,{defaultTheme:r,themeId:t}));if(!D.components||!D.components[l]||!D.components[l].styleOverrides)return null;const L=D.components[l].styleOverrides,$={};return Object.entries(L).forEach(([j,A])=>{$[j]=Xl(A,C({},k,{theme:D}),D.modularCssLayers?"theme":void 0)}),h(k,$)}),l&&!v&&E.push(k=>{var D;const L=wl(C({},k,{defaultTheme:r,themeId:t})),$=L==null||(D=L.components)==null||(D=D[l])==null?void 0:D.variants;return Xl({variants:$},C({},k,{theme:L}),L.modularCssLayers?"theme":void 0)}),x||E.push(a);const T=E.length-b.length;if(Array.isArray(O)&&T>0){const k=new Array(T).fill("");P=[...O,...k],P.raw=[...O.raw,...k]}const I=y(P,...E);return i.muiName&&(I.muiName=i.muiName),I};return y.withConfig&&(R.withConfig=y.withConfig),R}}const iv=av();function vc(e,t){const r=C({},t);return Object.keys(e).forEach(n=>{if(n.toString().match(/^(components|slots)$/))r[n]=C({},e[n],r[n]);else if(n.toString().match(/^(componentsProps|slotProps)$/)){const o=e[n]||{},a=t[n];r[n]={},!a||!Object.keys(a)?r[n]=o:!o||!Object.keys(o)?r[n]=a:(r[n]=C({},a),Object.keys(o).forEach(i=>{r[n][i]=vc(o[i],a[i])}))}else r[n]===void 0&&(r[n]=e[n])}),r}function sv(e){const{theme:t,name:r,props:n}=e;return!t||!t.components||!t.components[r]||!t.components[r].defaultProps?n:vc(t.components[r].defaultProps,n)}function Zf({props:e,name:t,defaultTheme:r,themeId:n}){let o=zi(r);return n&&(o=o[n]||o),sv({theme:o,name:t,props:e})}const un=typeof window<"u"?p.useLayoutEffect:p.useEffect;function LC(e,t,r,n,o){const[a,i]=p.useState(()=>o&&r?r(e).matches:n?n(e).matches:t);return un(()=>{let s=!0;if(!r)return;const l=r(e),u=()=>{s&&i(l.matches)};return u(),l.addListener(u),()=>{s=!1,l.removeListener(u)}},[e,r]),a}const lv=p.useSyncExternalStore;function MC(e,t,r,n,o){const a=p.useCallback(()=>t,[t]),i=p.useMemo(()=>{if(o&&r)return()=>r(e).matches;if(n!==null){const{matches:d}=n(e);return()=>d}return a},[a,e,n,o,r]),[s,l]=p.useMemo(()=>{if(r===null)return[a,()=>()=>{}];const d=r(e);return[()=>d.matches,f=>(d.addListener(f),()=>{d.removeListener(f)})]},[a,r,e]);return lv(l,s,i)}function eh(e,t={}){const r=au(),n=typeof window<"u"&&typeof window.matchMedia<"u",{defaultMatches:o=!1,matchMedia:a=n?window.matchMedia:null,ssrMatchMedia:i=null,noSsr:s=!1}=sv({name:"MuiUseMediaQuery",props:t,theme:r});let l=typeof e=="function"?e(r):e;return l=l.replace(/^@media( ?)/m,""),(lv!==void 0?MC:LC)(l,o,a,i,s)}function zC(e,t=Number.MIN_SAFE_INTEGER,r=Number.MAX_SAFE_INTEGER){return Math.max(t,Math.min(e,r))}const NC=Object.freeze(Object.defineProperty({__proto__:null,default:zC},Symbol.toStringTag,{value:"Module"}));function FC(e){e=e.slice(1);const t=new RegExp(`.{1,${e.length>=6?2:1}}`,"g");let r=e.match(t);return r&&r[0].length===1&&(r=r.map(n=>n+n)),r?`rgb${r.length===4?"a":""}(${r.map((n,o)=>o<3?parseInt(n,16):Math.round(parseInt(n,16)/255*1e3)/1e3).join(", ")})`:""}function cv(e){if(e.type)return e;if(e.charAt(0)==="#")return cv(FC(e));const t=e.indexOf("("),r=e.substring(0,t);if(["rgb","rgba","hsl","hsla","color"].indexOf(r)===-1)throw new Error(vo(9,e));let n=e.substring(t+1,e.length-1),o;if(r==="color"){if(n=n.split(" "),o=n.shift(),n.length===4&&n[3].charAt(0)==="/"&&(n[3]=n[3].slice(1)),["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].indexOf(o)===-1)throw new Error(vo(10,o))}else n=n.split(",");return n=n.map(a=>parseFloat(a)),{type:r,values:n,colorSpace:o}}const ea=e=>{const t=cv(e);return t.values.slice(0,3).map((r,n)=>t.type.indexOf("hsl")!==-1&&n!==0?`${r}%`:r).join(" ")};
25function jd(...e){return e.reduce((t,r)=>r==null?t:function(...o){t.apply(this,o),r.apply(this,o)},()=>{})}function HC(e,t=166){let r;function n(...o){const a=()=>{e.apply(this,o)};clearTimeout(r),r=setTimeout(a,t)}return n.clear=()=>{clearTimeout(r)},n}function BC(e,t){return()=>null}function Hi(e,t){var r,n;return p.isValidElement(e)&&t.indexOf((r=e.type.muiName)!=null?r:(n=e.type)==null||(n=n._payload)==null||(n=n.value)==null?void 0:n.muiName)!==-1}function Wr(e){return e&&e.ownerDocument||document}function vu(e){return Wr(e).defaultView||window}function WC(e,t){return()=>null}function $s(e,t){typeof e=="function"?e(t):e&&(e.current=t)}let Bp=0;function UC(e){const[t,r]=p.useState(e),n=e||t;return p.useEffect(()=>{t==null&&(Bp+=1,r(`mui-${Bp}`))},[t]),n}const Wp=fc.useId;function zr(e){if(Wp!==void 0){const t=Wp();return e??t}return UC(e)}function VC(e,t,r,n,o){return null}function ba({controlled:e,default:t,name:r,state:n="value"}){const{current:o}=p.useRef(e!==void 0),[a,i]=p.useState(t),s=o?e:a,l=p.useCallback(u=>{o||i(u)},[]);return[s,l]}function sn(e){const t=p.useRef(e);return un(()=>{t.current=e}),p.useRef((...r)=>(0,t.current)(...r)).current}function It(...e){return p.useMemo(()=>e.every(t=>t==null)?null:t=>{e.forEach(r=>{$s(r,t)})},e)}const Up={};function YC(e,t){const r=p.useRef(Up);return r.current===Up&&(r.current=e(t)),r}const GC=[];function KC(e){p.useEffect(e,GC)}class sl{constructor(){this.currentId=null,this.clear=()=>{this.currentId!==null&&(clearTimeout(this.currentId),this.currentId=null)},this.disposeEffect=()=>this.clear}static create(){return new sl}start(t,r){this.clear(),this.currentId=setTimeout(()=>{this.currentId=null,r()},t)}}function ms(){const e=YC(sl.create).current;return KC(e.disposeEffect),e}let yu=!0,Ad=!1;const JC=new sl,qC={text:!0,search:!0,url:!0,tel:!0,email:!0,password:!0,number:!0,date:!0,month:!0,week:!0,time:!0,datetime:!0,"datetime-local":!0};function XC(e){const{type:t,tagName:r}=e;return!!(r==="INPUT"&&qC[t]&&!e.readOnly||r==="TEXTAREA"&&!e.readOnly||e.isContentEditable)}function QC(e){e.metaKey||e.altKey||e.ctrlKey||(yu=!0)}function ad(){yu=!1}function ZC(){this.visibilityState==="hidden"&&Ad&&(yu=!0)}function eS(e){e.addEventListener("keydown",QC,!0),e.addEventListener("mousedown",ad,!0),e.addEventListener("pointerdown",ad,!0),e.addEventListener("touchstart",ad,!0),e.addEventListener("visibilitychange",ZC,!0)}function tS(e){const{target:t}=e;try{return t.matches(":focus-visible")}catch{}return yu||XC(t)}function ll(){const e=p.useCallback(o=>{o!=null&&eS(o.ownerDocument)},[]),t=p.useRef(!1);function r(){return t.current?(Ad=!0,JC.start(100,()=>{Ad=!1}),t.current=!1,!0):!1}function n(o){return tS(o)?(t.current=!0,!0):!1}return{isFocusVisibleRef:t,onFocus:n,onBlur:r,ref:e}}function rS(e){const t=e.documentElement.clientWidth;return Math.abs(window.innerWidth-t)}const uv=e=>{const t=p.useRef({});return p.useEffect(()=>{t.current=e}),t.current},nS={border:0,clip:"rect(0 0 0 0)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"absolute",whiteSpace:"nowrap",width:"1px"};function ot(e,t,r=void 0){const n={};return Object.keys(e).forEach(o=>{n[o]=e[o].reduce((a,i)=>{if(i){const s=t(i);s!==""&&a.push(s),r&&r[i]&&a.push(r[i])}return a},[]).join(" ")}),n}function oS(e){return typeof e=="string"}function dv(e,t,r){return e===void 0||oS(e)?t:C({},t,{ownerState:C({},t.ownerState,r)})}function _r(e,t=[]){if(e===void 0)return{};const r={};return Object.keys(e).filter(n=>n.match(/^on[A-Z]/)&&typeof e[n]=="function"&&!t.includes(n)).forEach(n=>{r[n]=e[n]}),r}function Vp(e){if(e===void 0)return{};const t={};return Object.keys(e).filter(r=>!(r.match(/^on[A-Z]/)&&typeof e[r]=="function")).forEach(r=>{t[r]=e[r]}),t}function fv(e){const{getSlotProps:t,additionalProps:r,externalSlotProps:n,externalForwardedProps:o,className:a}=e;if(!t){const g=Bt(r==null?void 0:r.className,a,o==null?void 0:o.className,n==null?void 0:n.className),m=C({},r==null?void 0:r.style,o==null?void 0:o.style,n==null?void 0:n.style),v=C({},r,o,n);return g.length>0&&(v.className=g),Object.keys(m).length>0&&(v.style=m),{props:v,internalRef:void 0}}const i=_r(C({},o,n)),s=Vp(n),l=Vp(o),u=t(i),d=Bt(u==null?void 0:u.className,r==null?void 0:r.className,a,o==null?void 0:o.className,n==null?void 0:n.className),f=C({},u==null?void 0:u.style,r==null?void 0:r.style,o==null?void 0:o.style,n==null?void 0:n.style),h=C({},u,r,l,s);return d.length>0&&(h.className=d),Object.keys(f).length>0&&(h.style=f),{props:h,internalRef:u.ref}}function hv(e,t,r){return typeof e=="function"?e(t,r):e}const aS=["elementType","externalSlotProps","ownerState","skipResolvingSlotProps"];function pv(e){var t;const{elementType:r,externalSlotProps:n,ownerState:o,skipResolvingSlotProps:a=!1}=e,i=we(e,aS),s=a?{}:hv(n,o),{props:l,internalRef:u}=fv(C({},i,{externalSlotProps:s})),d=It(u,s==null?void 0:s.ref,(t=e.additionalProps)==null?void 0:t.ref);return dv(r,C({},l,{ref:d}),o)}function bu(e){if(parseInt(p.version,10)>=19){var t;return(e==null||(t=e.props)==null?void 0:t.ref)||null}return(e==null?void 0:e.ref)||null}const mv=p.createContext(null);function th(){return p.useContext(mv)}
25const iS=typeof Symbol=="function"&&Symbol.for,sS=iS?Symbol.for("mui.nested"):"__THEME_NESTED__";function lS(e,t){return typeof t=="function"?t(e):C({},e,t)}function cS(e){const{children:t,theme:r}=e,n=th(),o=p.useMemo(()=>{const a=n===null?r:lS(n,r);return a!=null&&(a[sS]=n!==null),a},[r,n]);return c.jsx(mv.Provider,{value:o,children:t})}const uS=["value"],dS=p.createContext();function fS(e){let{value:t}=e,r=we(e,uS);return c.jsx(dS.Provider,C({value:t??!0},r))}const gv=p.createContext(void 0);function hS({value:e,children:t}){return c.jsx(gv.Provider,{value:e,children:t})}function pS(e){const{theme:t,name:r,props:n}=e;if(!t||!t.components||!t.components[r])return n;const o=t.components[r];return o.defaultProps?vc(o.defaultProps,n):!o.styleOverrides&&!o.variants?vc(o,n):n}function mS({props:e,name:t}){const r=p.useContext(gv);return pS({props:e,name:t,theme:{components:r}})}function gS(e){const t=au(),r=zr()||"",{modularCssLayers:n}=e;let o="mui.global, mui.components, mui.theme, mui.custom, mui.sx";return!n||t!==null?o="":typeof n=="string"?o=n.replace(/mui(?!\.)/g,o):o=`@layer ${o};`,un(()=>{const a=document.querySelector("head");if(!a)return;const i=a.firstChild;if(o){var s;if(i&&(s=i.hasAttribute)!=null&&s.call(i,"data-mui-layer-order")&&i.getAttribute("data-mui-layer-order")===r)return;const u=document.createElement("style");u.setAttribute("data-mui-layer-order",r),u.textContent=o,a.prepend(u)}else{var l;(l=a.querySelector(`style[data-mui-layer-order="${r}"]`))==null||l.remove()}},[o,r]),o?c.jsx(Q0,{styles:o}):null}const Yp={};function Gp(e,t,r,n=!1){return p.useMemo(()=>{const o=e&&t[e]||t;if(typeof r=="function"){const a=r(o),i=e?C({},t,{[e]:a}):a;return n?()=>i:i}return e?C({},t,{[e]:r}):C({},t,r)},[e,t,r,n])}function vS(e){const{children:t,theme:r,themeId:n}=e,o=au(Yp),a=th()||Yp,i=Gp(n,o,r),s=Gp(n,a,r,!0),l=i.direction==="rtl",u=gS(i);return c.jsx(cS,{theme:s,children:c.jsx(Ai.Provider,{value:i,children:c.jsx(fS,{value:l,children:c.jsxs(hS,{value:i==null?void 0:i.components,children:[u,t]}
25)})})})}const rh="mode",nh="color-scheme",vv="data-color-scheme";function yS(e){const{defaultMode:t="light",defaultLightColorScheme:r="light",defaultDarkColorScheme:n="dark",modeStorageKey:o=rh,colorSchemeStorageKey:a=nh,attribute:i=vv,colorSchemeNode:s="document.documentElement",nonce:l}=e||{};return c.jsx("script",{suppressHydrationWarning:!0,nonce:typeof window>"u"?l:"",dangerouslySetInnerHTML:{__html:`(function() { 26try { 27 var mode = localStorage.getItem('${o}') || '${t}'; 28 var colorScheme = ''; 29 if (mode === 'system') { 30 // handle system mode 31 var mql = window.matchMedia('(prefers-color-scheme: dark)'); 32 if (mql.matches) { 33 colorScheme = localStorage.getItem('${a}-dark') || '${n}'; 34 } else { 35 colorScheme = localStorage.getItem('${a}-light') || '${r}'; 36 } 37 } 38 if (mode === 'light') { 39 colorScheme = localStorage.getItem('${a}-light') || '${r}'; 40 } 41 if (mode === 'dark') { 42 colorScheme = localStorage.getItem('${a}-dark') || '${n}'; 43 } 44 if (colorScheme) { 45 ${s}.setAttribute('${i}', colorScheme); 46 } 47} catch(e){}})();`}},"mui-color-scheme-init")}function Kp(e){if(typeof window<"u"&&e==="system")return window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"}function yv(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 bS(e){return yv(e,t=>{if(t==="light")return e.lightColorScheme;if(t==="dark")return e.darkColorScheme})}function id(e,t){if(typeof window>"u")return;let r;try{r=localStorage.getItem(e)||void 0,r||localStorage.setItem(e,t)}catch{}return r||t}function xS(e){const{defaultMode:t="light",defaultLightColorScheme:r,defaultDarkColorScheme:n,supportedColorSchemes:o=[],modeStorageKey:a=rh,colorSchemeStorageKey:i=nh,storageWindow:s=typeof window>"u"?void 0:window}=e,l=o.join(","),[u,d]=p.useState(()=>{const x=id(a,t),w=id(`${i}-light`,r),S=id(`${i}-dark`,n);return{mode:x,systemMode:Kp(x),lightColorScheme:w,darkColorScheme:S}}),f=bS(u),h=p.useCallback(x=>{d(w=>{if(x===w.mode)return w;const S=x??t;try{localStorage.setItem(a,S)}catch{}return C({},w,{mode:S,systemMode:Kp(S)})})},[a,t]),g=p.useCallback(x=>{x?typeof x=="string"?x&&!l.includes(x)||d(w=>{const S=C({},w);return yv(w,y=>{try{localStorage.setItem(`${i}-${y}`,x)}catch{}y==="light"&&(S.lightColorScheme=x),y==="dark"&&(S.darkColorScheme=x)}),S}):d(w=>{const S=C({},w),y=x.light===null?r:x.light,_=x.dark===null?n:x.dark;if(y&&l.includes(y)){S.lightColorScheme=y;try{localStorage.setItem(`${i}-light`,y)}catch{}}if(_&&l.includes(_)){S.darkColorScheme=_;try{localStorage.setItem(`${i}-dark`,_)}catch{}}return S}):d(w=>{try{localStorage.setItem(`${i}-light`,r),localStorage.setItem(`${i}-dark`,n)}catch{}return C({},w,{lightColorScheme:r,darkColorScheme:n})})},[l,i,r,n]),m=p.useCallback(x=>{u.mode==="system"&&d(w=>{const S=x!=null&&x.matches?"dark":"light";return w.systemMode===S?w:C({},w,{systemMode:S})})},[u.mode]),v=p.useRef(m);return v.current=m,p.useEffect(()=>{const x=(...S)=>v.current(...S),w=window.matchMedia("(prefers-color-scheme: dark)");return w.addListener(x),x(w),()=>{w.removeListener(x)}},[]),p.useEffect(()=>{if(s){const x=w=>{const S=w.newValue;typeof w.key=="string"&&w.key.startsWith(i)&&(!S||l.match(S))&&(w.key.endsWith("light")&&g({light:S}),w.key.endsWith("dark")&&g({dark:S})),w.key===a&&(!S||["light","dark","system"].includes(S))&&h(S||t)};return s.addEventListener("storage",x),()=>{s.removeEventListener("storage",x)}}},[g,h,a,i,l,t,s]),C({},u,{colorScheme:f,setMode:h,setColorScheme:g})}const CS=["colorSchemes","components","generateCssVars","cssVarPrefix"],SS="*{-webkit-transition:none!important;-moz-transition:none!important;-o-transition:none!important;-ms-transition:none!important;transition:none!important}";function wS(e){const{themeId:t,theme:r={},attribute:n=vv,modeStorageKey:o=rh,colorSchemeStorageKey:a=nh,defaultMode:i="light",defaultColorScheme:s,disableTransitionOnChange:l=!1,resolveTheme:u,excludeVariablesFromRoot:d}=e;!r.colorSchemes||typeof s=="string"&&!r.colorSchemes[s]||typeof s=="object"&&!r.colorSchemes[s==null?void 0:s.light]||typeof s=="object"&&r.colorSchemes[s==null?void 0:s.dark];const f=p.createContext(void 0),h=()=>{const w=p.useContext(f);if(!w)throw new Error(vo(19));return w};function g(w){const{children:S,theme:y=r,modeStorageKey:_=o,colorSchemeStorageKey:R=a,attribute:O=n,defaultMode:b=i,defaultColorScheme:P=s,disableTransitionOnChange:E=l,storageWindow:T=typeof window>"u"?void 0:window,documentNode:I=typeof document>"u"?void 0:document,colorSchemeNode:k=typeof document>"u"?void 0:document.documentElement,colorSchemeSelector:D=":root",disableNestedContext:L=!1,disableStyleSheetGeneration:$=!1}=w,j=p.useRef(!1),A=th(),M=p.useContext(f),F=!!M&&!L,V=y[t],K=V||y,{colorSchemes:le={},components:xe={},generateCssVars:de=()=>({vars:{},css:{}}),cssVarPrefix:re}=K,_e=we(K,CS),G=Object.keys(le),U=typeof P=="string"?P:P.light,X=typeof P=="string"?P:P.dark,{mode:oe,setMode:ge,systemMode:te,lightColorScheme:Ee,darkColorScheme:je,colorScheme:ve,setColorScheme:ne}=xS({supportedColorSchemes:G,defaultLightColorScheme:U,defaultDar
47kColorScheme:X,modeStorageKey:_,colorSchemeStorageKey:R,defaultMode:b,storageWindow:T});let We=oe,Re=ve;F&&(We=M.mode,Re=M.colorScheme);const st=We||(b==="system"?i:b),gt=Re||(st==="dark"?X:U),{css:jt,vars:At}=de(),qe=C({},_e,{components:xe,colorSchemes:le,cssVarPrefix:re,vars:At,getColorSchemeSelector:Te=>`[${O}="${Te}"] &`}),J={},Ve={};Object.entries(le).forEach(([Te,rt])=>{const{css:Ht,vars:fe}=de(Te);qe.vars=vr(qe.vars,fe),Te===gt&&(Object.keys(rt).forEach($e=>{rt[$e]&&typeof rt[$e]=="object"?qe[$e]=C({},qe[$e],rt[$e]):qe[$e]=rt[$e]}),qe.palette&&(qe.palette.colorScheme=Te));const ye=typeof P=="string"?P:b==="dark"?P.dark:P.light;if(Te===ye){if(d){const $e={};d(re).forEach(Ge=>{$e[Ge]=Ht[Ge],delete Ht[Ge]}),J[`[${O}="${Te}"]`]=$e}J[`${D}, [${O}="${Te}"]`]=Ht}else Ve[`${D===":root"?"":D}[${O}="${Te}"]`]=Ht}),qe.vars=vr(qe.vars,At),p.useEffect(()=>{Re&&k&&k.setAttribute(O,Re)},[Re,O,k]),p.useEffect(()=>{let Te;if(E&&j.current&&I){const rt=I.createElement("style");rt.appendChild(I.createTextNode(SS)),I.head.appendChild(rt),window.getComputedStyle(I.body),Te=setTimeout(()=>{I.head.removeChild(rt)},1)}return()=>{clearTimeout(Te)}},[Re,E,I]),p.useEffect(()=>(j.current=!0,()=>{j.current=!1}),[]);const Ke=p.useMemo(()=>({allColorSchemes:G,colorScheme:Re,darkColorScheme:je,lightColorScheme:Ee,mode:We,setColorScheme:ne,setMode:ge,systemMode:te}),[G,Re,je,Ee,We,ne,ge,te]);let Ye=!0;($||F&&(A==null?void 0:A.cssVarPrefix)===re)&&(Ye=!1);const ze=c.jsxs(p.Fragment,{children:[Ye&&c.jsxs(p.Fragment,{children:[c.jsx(bs,{styles:{[D]:jt}}),c.jsx(bs,{styles:J}),c.jsx(bs,{styles:Ve})]}),c.jsx(vS,{themeId:V?t:void 0,theme:u?u(qe):qe,children:S})]});return F?ze:c.jsx(f.Provider,{value:Ke,children:ze})}const m=typeof s=="string"?s:s.light,v=typeof s=="string"?s:s.dark;return{CssVarsProvider:g,useColorScheme:h,getInitColorSchemeScript:w=>yS(C({attribute:n,colorSchemeStorageKey:a,defaultMode:i,defaultLightColorScheme:m,defaultDarkColorScheme:v,modeStorageKey:o},w))}}function oh(e=""){function t(...n){if(!n.length)return"";const o=n[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(...n.slice(1))})`:`, ${o}`}return(n,...o)=>`var(--${e?`${e}-`:""}${n}${t(...o)})`}const Jp=(e,t,r,n=[])=>{let o=e;t.forEach((a,i)=>{i===t.length-1?Array.isArray(o)?o[Number(a)]=r:o&&typeof o=="object"&&(o[a]=r):o&&typeof o=="object"&&(o[a]||(o[a]=n.includes(a)?[]:{}),o=o[a])})},kS=(e,t,r)=>{function n(o,a=[],i=[]){Object.entries(o).forEach(([s,l])=>{(!r||r&&!r([...a,s]))&&l!=null&&(typeof l=="object"&&Object.keys(l).length>0?n(l,[...a,s],Array.isArray(l)?[...i,s]:i):t([...a,s],l,i))})}n(e)},_S=(e,t)=>typeof t=="number"?["lineHeight","fontWeight","opacity","zIndex"].some(n=>e.includes(n))||e[e.length-1].toLowerCase().indexOf("opacity")>=0?t:`${t}px`:t;function sd(e,t){const{prefix:r,shouldSkipGeneratingVar:n}=t||{},o={},a={},i={};return kS(e,(s,l,u)=>{if((typeof l=="string"||typeof l=="number")&&(!n||!n(s,l))){const d=`--${r?`${r}-`:""}${s.join("-")}`;Object.assign(o,{[d]:_S(s,l)}),Jp(a,s,`var(${d})`,u),Jp(i,s,`var(${d}, ${l})`,u)}},s=>s[0]==="vars"),{css:o,vars:a,varsWithDefaults:i}}function js(e){"@babel/helpers - typeof";return js=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},js(e)}function ES(e,t){if(js(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(js(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}function PS(e){var t=ES(e,"string");return js(t)=="symbol"?t:t+""}const RS=["colorSchemes","components","defaultColorScheme"];function TS(e,t){const{colorSchemes:r={},defaultColorScheme:n="light"}=e,o=we(e,RS),{vars:a,css:i,varsWithDefaults:s}=sd(o,t);let l=s;const u={},{[n]:d}=r,f=we(r,[n].map(PS));if(Object.entries(f||{}).forEach(([g,m])=>{const{vars:v,css:x,varsWithDefaults:w}=sd(m,t);
vendor: 4,364 bytes, line 47
47l=vr(l,w),u[g]={css:x,vars:v}}),d){const{css:g,vars:m,varsWithDefaults:v}=sd(d,t);l=vr(l,v),u[n]={css:g,vars:m}}return{vars:l,generateCssVars:g=>{var m;if(!g){var v;const w=C({},i);return{css:w,vars:a,selector:(t==null||(v=t.getSelector)==null?void 0:v.call(t,g,w))||":root"}}const x=C({},u[g].css);return{css:x,vars:u[g].vars,selector:(t==null||(m=t.getSelector)==null?void 0:m.call(t,g,x))||":root"}}}}const IS=["className","component","disableGutters","fixed","maxWidth","classes"],DS=Mi(),OS=iv("div",{name:"MuiContainer",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[`maxWidth${ae(String(r.maxWidth))}`],r.fixed&&t.fixed,r.disableGutters&&t.disableGutters]}}),$S=e=>Zf({props:e,name:"MuiContainer",defaultTheme:DS}),jS=(e,t)=>{const r=l=>Fi(t,l),{classes:n,fixed:o,disableGutters:a,maxWidth:i}=e,s={root:["root",i&&`maxWidth${ae(String(i))}`,o&&"fixed",a&&"disableGutters"]};return ot(s,r,n)};function AS(e={}){const{createStyledComponent:t=OS,useThemeProps:r=$S,componentName:n="MuiContainer"}=e,o=t(({theme:i,ownerState:s})=>C({width:"100%",marginLeft:"auto",boxSizing:"border-box",marginRight:"auto",display:"block"},!s.disableGutters&&{paddingLeft:i.spacing(2),paddingRight:i.spacing(2),[i.breakpoints.up("sm")]:{paddingLeft:i.spacing(3),paddingRight:i.spacing(3)}}),({theme:i,ownerState:s})=>s.fixed&&Object.keys(i.breakpoints.values).reduce((l,u)=>{const d=u,f=i.breakpoints.values[d];return f!==0&&(l[i.breakpoints.up(d)]={maxWidth:`${f}${i.breakpoints.unit}`}),l},{}),({theme:i,ownerState:s})=>C({},s.maxWidth==="xs"&&{[i.breakpoints.up("xs")]:{maxWidth:Math.max(i.breakpoints.values.xs,444)}},s.maxWidth&&s.maxWidth!=="xs"&&{[i.breakpoints.up(s.maxWidth)]:{maxWidth:`${i.breakpoints.values[s.maxWidth]}${i.breakpoints.unit}`}}));return p.forwardRef(function(s,l){const u=r(s),{className:d,component:f="div",disableGutters:h=!1,fixed:g=!1,maxWidth:m="lg"}=u,v=we(u,IS),x=C({},u,{component:f,disableGutters:h,fixed:g,maxWidth:m}),w=jS(x,n);return c.jsx(o,C({as:f,ownerState:x,className:Bt(w.root,d),ref:l},v))})}const LS=(e,t)=>e.filter(r=>t.includes(r)),Bi=(e,t,r)=>{const n=e.keys[0];Array.isArray(t)?t.forEach((o,a)=>{r((i,s)=>{a<=e.keys.length-1&&(a===0?Object.assign(i,s):i[e.up(e.keys[a])]=s)},o)}):t&&typeof t=="object"?(Object.keys(t).length>e.keys.length?e.keys:LS(e.keys,Object.keys(t))).forEach(a=>{if(e.keys.indexOf(a)!==-1){const i=t[a];i!==void 0&&r((s,l)=>{n===a?Object.assign(s,l):s[e.up(a)]=l},i)}}):(typeof t=="number"||typeof t=="string")&&r((o,a)=>{Object.assign(o,a)},t)};function yo(e){return e?`Level${e}`:""}function cl(e){return e.unstable_level>0&&e.container}function bv(e){return function(r){return`var(--Grid-${r}Spacing${yo(e.unstable_level)})`}}function ah(e){return function(r){return e.unstable_level===0?`var(--Grid-${r}Spacing)`:`var(--Grid-${r}Spacing${yo(e.unstable_level-1)})`}}function ih(e){return e.unstable_level===0?"var(--Grid-columns)":`var(--Grid-columns${yo(e.unstable_level-1)})`}const MS=({theme:e,ownerState:t})=>{const r=bv(t),n={};return Bi(e.breakpoints,t.gridSize,(o,a)=>{let i={};a===!0&&(i={flexBasis:0,flexGrow:1,maxWidth:"100%"}),a==="auto"&&(i={flexBasis:"auto",flexGrow:0,flexShrink:0,maxWidth:"none",width:"auto"}),typeof a=="number"&&(i={flexGrow:0,flexBasis:"auto",width:`calc(100% * ${a} / ${ih(t)}${cl(t)?` + ${r("column")}`:""})`}),o(n,i)}),n},zS=({theme:e,ownerState:t})=>{const r={};return Bi(e.breakpoints,t.gridOffset,(n,o)=>{let a={};o==="auto"&&(a={marginLeft:"auto"}),typeof o=="number"&&(a={marginLeft:o===0?"0px":`calc(100% * ${o} / ${ih(t)})`}),n(r,a)}),r},NS=({theme:e,ownerState:t})=>{if(!t.container)return{};const r=cl(t)?{[`--Grid-columns${yo(t.unstable_level)}`]:ih(t)}:{"--Grid-columns":12};return Bi(e.breakpoints,t.columns,(n,o)=>{n(r,{[`--Grid-columns${yo(t.unstable_level)}`]:o})}),r},FS=({theme:e,ownerState:t})=>{if(!t.container)return{};const r=ah(t),n=cl(t)?{[`--Grid-rowSpacing${yo(t.unstable_level)}`]:r("row")}:{};return Bi(e.breakpoints,t.rowSpacing,(o,a)=>{var i;o(n,{[`--Grid-rowSpacing${yo(t.unstable_level)}`]:typeof a=="string"?a:(i=e.spacing)==null?void 0:i.call(e,a)})}),n},HS=({theme:e,ownerState:t})=>{if(!t.container)return{};const r=ah(t),n=cl(t)?{[`--Grid-columnSpacing${yo(t.unstable_level)}`]:r("column")}:{};return Bi(e.breakpoints,t.columnSpacing,(o,a)=>{var i;o(n,{[`--Grid-columnSpacing${yo(t.unstable_level)}
47`]:typeof a=="string"?a:(i=e.spacing)==null?void 0:i.call(e,a)})}),n},BS=({theme:e,ownerState:t})=>{if(!t.container)return{};const r={};return Bi(e.breakpoints,t.direction,(n,o)=>{n(r,{flexDirection:o})}),r},WS=({ownerState:e})=>{const t=bv(e),r=ah(e);return C({minWidth:0,boxSizing:"border-box"},e.container&&C({display:"flex",flexWrap:"wrap"},e.wrap&&e.wrap!=="wrap"&&{flexWrap:e.wrap},{margin:`calc(${t("row")} / -2) calc(${t("column")} / -2)`},e.disableEqualOverflow&&{margin:`calc(${t("row")} * -1) 0px 0px calc(${t("column")} * -1)`}),(!e.container||cl(e))&&C({padding:`calc(${r("row")} / 2) calc(${r("column")} / 2)`},(e.disableEqualOverflow||e.parentDisableEqualOverflow)&&{padding:`${r("row")} 0px 0px ${r("column")}`}))},US=e=>{const t=[];return Object.entries(e).forEach(([r,n])=>{n!==!1&&n!==void 0&&t.push(`grid-${r}-${String(n)}`)}),t},VS=(e,t="xs")=>{function r(n){return n===void 0?!1:typeof n=="string"&&!Number.isNaN(Number(n))||typeof n=="number"&&n>0}if(r(e))return[`spacing-${t}-${String(e)}`];if(typeof e=="object"&&!Array.isArray(e)){const n=[];return Object.entries(e).forEach(([o,a])=>{r(a)&&n.push(`spacing-${o}-${String(a)}`)}),n}return[]},YS=e=>e===void 0?[]:typeof e=="object"?Object.entries(e).map(([t,r])=>`direction-${t}-${r}`):[`direction-xs-${String(e)}`],GS=["className","children","columns","container","component","direction","wrap","spacing","rowSpacing","columnSpacing","disableEqualOverflow","unstable_level"],KS=Mi(),JS=iv("div",{name:"MuiGrid",slot:"Root",overridesResolver:(e,t)=>t.root});function qS(e){return Zf({props:e,name:"MuiGrid",defaultTheme:KS})}function XS(e={}){const{createStyledComponent:t=JS,useThemeProps:r=qS,componentName:n="MuiGrid"}=e,o=p.createContext(void 0),a=(l,u)=>{const{container:d,direction:f,spacing:h,wrap:g,gridSize:m}=l,v={root:["root",d&&"container",g!=="wrap"&&`wrap-xs-${String(g)}`,...YS(f),...US(m),...d?VS(h,u.breakpoints.keys[0]):[]]};return ot(v,x=>Fi(n,x),{})},i=t(NS,HS,FS,MS,BS,WS,zS),s=p.forwardRef(function(u,d){var f,h,g,m,v,x,w,S;const y=zi(),_=r(u),R=Ni(_),O=p.useContext(o),{className:b,children:P,columns:E=12,container:T=!1,component:I="div",direction:k="row",wrap:D="wrap",spacing:L=0,rowSpacing:$=L,columnSpacing:j=L,disableEqualOverflow:A,unstable_level:M=0}=R,F=we(R,GS);let V=A;M&&A!==void 0&&(V=u.disableEqualOverflow);const K={},le={},xe={};Object.entries(F).forEach(([ge,te])=>{y.breakpoints.values[ge]!==void 0?K[ge]=te:y.breakpoints.values[ge.replace("Offset","")]!==void 0?le[ge.replace("Offset","")]=te:xe[ge]=te});const de=(f=u.columns)!=null?f:M?void 0:E,re=(h=u.spacing)!=null?h:M?void 0:L,_e=(g=(m=u.rowSpacing)!=null?m:u.spacing)!=null?g:M?void 0:$,G=(v=(x=u.columnSpacing)!=null?x:u.spacing)!=null?v:M?void 0:j,U=C({},R,{level:M,columns:de,container:T,direction:k,wrap:D,spacing:re,rowSpacing:_e,columnSpacing:G,gridSize:K,gridOffset:le,disableEqualOverflow:(w=(S=V)!=null?S:O)!=null?w:!1,parentDisableEqualOverflow:O}),X=a(U,y);let oe=c.jsx(i,C({ref:d,as:I,ownerState:U,className:Bt(X.root,b)},xe,{children:p.Children.map(P,ge=>{if(p.isValidElement(ge)&&Hi(ge,["Grid"])){var te,Ee;return p.cloneElement(ge,{unstable_level:(te=(Ee=ge.props)==null?void 0:Ee.unstable_level)!=null?te:M+1})}return ge})}));return V!==void 0&&V!==(O??!1)&&(oe=c.jsx(o.Provider,{value:V,children:oe})),oe});return s.muiName="Grid",s}const QS=C({},Li,{borderRadius:{themeKey:"radius"},boxShadow:{themeKey:"shadow"},fontFamily:{themeKey:"fontFamily"},fontSize:{themeKey:"fontSize"},fontWeight:{themeKey:"fontWeight"},letterSpacing:{themeKey:"letterSpacing"},lineHeight:{themeKey:"lineHeight"}});function ZS(e){var t;return!!e[0].match(/^(typography|variants|breakpoints)$/)||!!e[0].match(/sxConfig$/)||e[0]==="palette"&&!!((t=e[1])!=null&&t.match(/^(mode)$/))||e[0]==="focus"&&e[1]!=="thickness"}const it=(e,t)=>Fi(e,t,"Mui"),ct=(e,t)=>il(e,t,"Mui"),ew=e=>e&&typeof e=="object"&&Object.keys(e).some(t=>{var r;return(r=t.match)==null?void 0:r.call(t,/^(plain(Hover|Active|Disabled)?(Color|Bg)|outlined(Hover|Active|Disabled)?(Color|Border|Bg)|soft(Hover|Active|Disabled)?(Color|Bg)|solid(Hover|Active|Disabled)?(Color|Bg))$/)}),qp=(e,t,r)=>{t.includes("Color")&&(e.color=r),t.includes("Bg")&&(e.backgroundColor=r),t.includes("Border")&&(e.borderColor=r)},Xp=(e,t,r)=>{const n={};return Object.entries(t||{}
vendor: 5,033 bytes, line 47
47).forEach(([o,a])=>{if(o.match(new RegExp(`${e}(color|bg|border)`,"i"))&&a){const i=r?r(o):a;o.includes("Disabled")&&(n.pointerEvents="none",n.cursor="default",n["--Icon-color"]="currentColor"),o.match(/(Hover|Active|Disabled)/)||(n["--variant-borderWidth"]||(n["--variant-borderWidth"]="0px"),o.includes("Border")&&(n["--variant-borderWidth"]="1px",n.border="var(--variant-borderWidth) solid")),qp(n,o,i)}}),n},Pr=(e,t)=>{let r={};if(t){const{getCssVar:n,palette:o}=t;Object.entries(o).forEach(a=>{const[i,s]=a;ew(s)&&typeof s=="object"&&(r=C({},r,{[i]:Xp(e,s,l=>`var(--variant-${l}, ${n(`palette-${i}-${l}`,o[i][l])})`)}))})}return r.context=Xp(e,{plainColor:"var(--variant-plainColor)",plainHoverColor:"var(--variant-plainHoverColor)",plainHoverBg:"var(--variant-plainHoverBg)",plainActiveBg:"var(--variant-plainActiveBg)",plainDisabledColor:"var(--variant-plainDisabledColor)",outlinedColor:"var(--variant-outlinedColor)",outlinedBorder:"var(--variant-outlinedBorder)",outlinedHoverColor:"var(--variant-outlinedHoverColor)",outlinedHoverBorder:"var(--variant-outlinedHoverBorder)",outlinedHoverBg:"var(--variant-outlinedHoverBg)",outlinedActiveBg:"var(--variant-outlinedActiveBg)",outlinedDisabledColor:"var(--variant-outlinedDisabledColor)",outlinedDisabledBorder:"var(--variant-outlinedDisabledBorder)",softColor:"var(--variant-softColor)",softBg:"var(--variant-softBg)",softHoverColor:"var(--variant-softHoverColor)",softHoverBg:"var(--variant-softHoverBg)",softActiveBg:"var(--variant-softActiveBg)",softDisabledColor:"var(--variant-softDisabledColor)",softDisabledBg:"var(--variant-softDisabledBg)",solidColor:"var(--variant-solidColor)",solidBg:"var(--variant-solidBg)",solidHoverBg:"var(--variant-solidHoverBg)",solidActiveBg:"var(--variant-solidActiveBg)",solidDisabledColor:"var(--variant-solidDisabledColor)",solidDisabledBg:"var(--variant-solidDisabledBg)"}),r},tw=["cssVarPrefix","breakpoints","spacing","components","variants","shouldSkipGeneratingVar"],rw=["colorSchemes"],nw=(e="joy")=>oh(e);function Ld(e){var t,r,n,o,a,i,s,l,u,d;const f=e||{},{cssVarPrefix:h="joy",breakpoints:g,spacing:m,components:v,variants:x,shouldSkipGeneratingVar:w=ZS}=f,S=we(f,tw),y=nw(h),_={primary:rs.blue,neutral:rs.grey,danger:rs.red,success:rs.green,warning:rs.yellow,common:{white:"#FFF",black:"#000"}},R=U=>{var X;const oe=U.split("-"),ge=oe[1],te=oe[2];return y(U,(X=_[ge])==null?void 0:X[te])},O=U=>({plainColor:R(`palette-${U}-500`),plainHoverBg:R(`palette-${U}-100`),plainActiveBg:R(`palette-${U}-200`),plainDisabledColor:R("palette-neutral-400"),outlinedColor:R(`palette-${U}-500`),outlinedBorder:R(`palette-${U}-300`),outlinedHoverBg:R(`palette-${U}-100`),outlinedActiveBg:R(`palette-${U}-200`),outlinedDisabledColor:R("palette-neutral-400"),outlinedDisabledBorder:R("palette-neutral-200"),softColor:R(`palette-${U}-700`),softBg:R(`palette-${U}-100`),softHoverBg:R(`palette-${U}-200`),softActiveColor:R(`palette-${U}-800`),softActiveBg:R(`palette-${U}-300`),softDisabledColor:R("palette-neutral-400"),softDisabledBg:R("palette-neutral-50"),solidColor:R("palette-common-white"),solidBg:R(`palette-${U}-500`),solidHoverBg:R(`palette-${U}-600`),solidActiveBg:R(`palette-${U}-700`),solidDisabledColor:R("palette-neutral-400"),solidDisabledBg:R("palette-neutral-100")}),b=U=>({plainColor:R(`palette-${U}-300`),plainHoverBg:R(`palette-${U}-800`),plainActiveBg:R(`palette-${U}-700`),plainDisabledColor:R("palette-neutral-500"),outlinedColor:R(`palette-${U}-200`),outlinedBorder:R(`palette-${U}-700`),outlinedHoverBg:R(`palette-${U}-800`),outlinedActiveBg:R(`palette-${U}-700`),outlinedDisabledColor:R("palette-neutral-500"),outlinedDisabledBorder:R("palette-neutral-800"),softColor:R(`palette-${U}-200`),softBg:R(`palette-${U}-800`),softHoverBg:R(`palette-${U}-700`),softActiveColor:R(`palette-${U}-100`),softActiveBg:R(`palette-${U}-600`),softDisabledColor:R("palette-neutral-500"),softDisabledBg:R("palette-neutral-800"),solidColor:R("palette-common-white"),solidBg:R(`palette-${U}-500`),solidHoverBg:R(`palette-${U}-600`),solidActiveBg:R(`palette-${U}-700`),solidDisabledColor:R("palette-neutral-500"),solidDisabledBg:R("palette-neutral-800")}),P={palette:{mode:"light",primary:C({},_.primary,O("primary")),neutral:C({},_.neutral,O("neutral"),{plainColor:R("palette-neutral-700"),plainHoverColor:R("palette-neutral-900"),outlinedColor:R("palette-neutral-700")}),danger:C({},_.danger,O("danger")),success:C({},_.success,O("success")),warning:C({},_.warning,O("warning")),common:{white:"#FFF",black:"#000"},text:{primary:R("palette-neutral-800"),secondary:R("palette-neutral-700"),tertiary:R("palette-neutral-600"),icon:R("palette-neutral-500")},background:{body:R("palette-common-white"),surface:R("palette-neutral-50"),popup:R("palette-common-white"),level1:R("palette-neutral-100"),level2:R("palette-neutral-200"),level3:R("palette-neutral-300"),tooltip:R("palette-neutral-500"),backdrop:`rgba(${y("palette-neutral-darkChannel",ea(_.neutral[900]))} / 0.25)`},divider:`rgba(${y("palette-neutral-mainChannel",ea(_.neutral[500]))}
47 / 0.2)`,focusVisible:R("palette-primary-500")},shadowRing:"0 0 #000",shadowChannel:"21 21 21",shadowOpacity:"0.08"},E={palette:{mode:"dark",primary:C({},_.primary,b("primary")),neutral:C({},_.neutral,b("neutral"),{plainColor:R("palette-neutral-300"),plainHoverColor:R("palette-neutral-300")}),danger:C({},_.danger,b("danger")),success:C({},_.success,b("success")),warning:C({},_.warning,b("warning")),common:{white:"#FFF",black:"#000"},text:{primary:R("palette-neutral-100"),secondary:R("palette-neutral-300"),tertiary:R("palette-neutral-400"),icon:R("palette-neutral-400")},background:{body:R("palette-common-black"),surface:R("palette-neutral-900"),popup:R("palette-common-black"),level1:R("palette-neutral-800"),level2:R("palette-neutral-700"),level3:R("palette-neutral-600"),tooltip:R("palette-neutral-600"),backdrop:`rgba(${y("palette-neutral-darkChannel",ea(_.neutral[50]))} / 0.25)`},divider:`rgba(${y("palette-neutral-mainChannel",ea(_.neutral[500]))} / 0.16)`,focusVisible:R("palette-primary-500")},shadowRing:"0 0 #000",shadowChannel:"0 0 0",shadowOpacity:"0.6"},T='-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"',I=C({body:`"Inter", ${y(`fontFamily-fallback, ${T}`)}`,display:`"Inter", ${y(`fontFamily-fallback, ${T}`)}`,code:"Source Code Pro,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace",fallback:T},S.fontFamily),k=C({sm:300,md:500,lg:600,xl:700},S.fontWeight),D=C({xs:"0.75rem",sm:"0.875rem",md:"1rem",lg:"1.125rem",xl:"1.25rem",xl2:"1.5rem",xl3:"1.875rem",xl4:"2.25rem"},S.fontSize),L=C({xs:"1.33334",sm:"1.42858",md:"1.5",lg:"1.55556",xl:"1.66667"},S.lineHeight),$=(t=(r=S.colorSchemes)==null||(r=r.light)==null?void 0:r.shadowRing)!=null?t:P.shadowRing,j=(n=(o=S.colorSchemes)==null||(o=o.light)==null?void 0:o.shadowChannel)!=null?n:P.shadowChannel,A=(a=(i=S.colorSchemes)==null||(i=i.light)==null?void 0:i.shadowOpacity)!=null?a:P.shadowOpacity,M={colorSchemes:{light:P,dark:E},fontSize:D,fontFamily:I,fontWeight:k,focus:{thickness:"2px",selector:`&.${it("","focusVisible")}, &:focus-visible`,default:{outlineOffset:`var(--focus-outline-offset, ${y("focus-thickness",(s=(l=S.focus)==null?void 0:l.thickness)!=null?s:"2px")})`,outline:`${y("focus-thickness",(u=(d=S.focus)==null?void 0:d.thickness)!=null?u:"2px")} solid ${y("palette-focusVisible",_.primary[500])}`}},lineHeight:L,radius:{xs:"2px",sm:"6px",md:"8px",lg:"12px",xl:"16px"},shadow:{xs:`${y("shadowRing",$)}, 0px 1px 2px 0px rgba(${y("shadowChannel",j)} / ${y("shadowOpacity",A)})`,sm:`${y("shadowRing",$)}, 0px 1px 2px 0px rgba(${y("shadowChannel",j)} / ${y("shadowOpacity",A)}), 0px 2px 4px 0px rgba(${y("shadowChannel",j)} / ${y("shadowOpacity",A)})`,md:`${y("shadowRing",$)}, 0px 2px 8px -2px rgba(${y("shadowChannel",j)} / ${y("shadowOpacity",A)}), 0px 6px 12px -2px rgba(${y("shadowChannel",j)} / ${y("shadowOpacity",A)})`,lg:`${y("shadowRing",$)}, 0px 2px 8px -2px rgba(${y("shadowChannel",j)} / ${y("shadowOpacity",A)}), 0px 12px 16px -4px rgba(${y("shadowChannel",j)} / ${y("shadowOpacity",A)})`,xl:`${y("shadowRing",$)}, 0px 2px 8px -2px rgba(${y("shadowChannel",j)} / ${y("shadowOpacity",A)}), 0px 20px 24px -4px rgba(${y("shadowChannel",j)} / ${y("shadowOpacity",A)})`},zIndex:{badge:1,table:10,popup:1e3,modal:1300,snackbar:1400,tooltip:1500},typography:{h1:{fontFamily:y(`fontFamily-display, ${I.display}`),fontWeight:y(`fontWeight-xl, ${k.xl}`),fontSize:y(`fontSize-xl4, ${D.xl4}`),lineHeight:y(`lineHeight-xs, ${L.xs}`),letterSpacing:"-0.025em",color:y(`palette-text-primary, ${P.palette.text.primary}`)},h2:{fontFamily:y(`fontFamily-display, ${I.display}`),fontWeight:y(`fontWeight-xl, ${k.xl}`),fontSize:y(`fontSize-xl3, ${D.xl3}`),lineHeight:y(`lineHeight-xs, ${L.xs}`),letterSpacing:"-0.025em",color:y(`palette-text-primary, ${P.palette.text.primary}`)},h3:{fontFamily:y(`fontFamily-display, ${I.display}`),fontWeight:y(`fontWeight-lg, ${k.lg}`),fontSize:y(`fontSize-xl2, ${D.xl2}`),lineHeight:y(`lineHeight-xs, ${L.xs}`),letterSpacing:"-0.025em",color:y(`palette-text-primary, ${P.palette.text.primary}`)},h4:{fontFamily:y(`fontFamily-display, ${I.display}`),fontWeight:y(`fontWeight-lg, ${k.lg}`),fontSize:y(`fontSize-xl, ${D.xl}`),lineHeight:y(`lineHeight-md, ${L.md}`),letterSpacing:"-0.025em",color:y(`palette-text-primary, ${P.palette.text.primary}`)},"title-lg":{fontFamily:y(`fontFamily-body, ${I.body}`),fontWeight:y(`fontWeight-lg, ${k.lg}`),fontSize:y(`fontSize-lg, ${D.lg}`),lineHeight:y(`lineHeight-xs, ${L.xs}`),color:y(`palette-text-primary, ${P.palette.text.primary}`)},"title-md":{fontFamily:y(`fontFamily-body, ${I.body}`),fontWeight:y(`fontWeight-md, ${k.md}`),fontSize:y(`fontSize-md, ${D.md}`),lineHeight:y(`lineHeight-md, ${L.md}`),color:y(`palette-text-primary, ${P.palette.text.primary}`)},"title-sm":{fontFamily:y(`fontFamily-body, ${I.body}`),fontWeight:y(`fontWeight-md, ${k.md}`),fontSize:y(`fontSize-sm, ${D.sm}`),lineHeight:y(`lineHeight-sm, ${L.sm}`),color:y(`palette-text-primary, ${P.palette.text.primary}`)},"body-lg":{fontFamily:y(`fontFamily-body, ${I.body}`),fontSize:y(`fontSize-lg, ${D.lg}`),lineHeight:y(`lineHeight-md, ${L.md}`),color:y(`palette-text-secondary, ${P.palette.text.secondary}`)},"body-md":{fontFamily:y(`fontFamily-body, ${I.body}`),fontSize:y(`fontSize-md, ${D.md}`),lineHeight:y(`lineHeight-md, ${L.md}`),color:y(`palette-text-secondary, ${P.palette.text.secondary}`)},"body-sm":{fontFamily:y(`fontFamily-body, ${I.body}`),fontSize:y(`fontSize-sm, ${D.sm}`),lineHeight:y(`lineHeight-md, ${L.md}`),color:y(`palette-text-tertiary, ${P.palette.text.tertiary}`)},"body-xs":{fontFamily:y(`fontFamily-body, ${I.body}`),fontWeight:y(`fontWeight-md, ${k.md}`),fontSize:y(`fontSize-xs, ${D.xs}`),lineHeight:y(`lineHeight-md, ${L.md}`),color:y(`palette-text-tertiary, ${P.palette.text.tertiary}`)}}},F=S?vr(M,S):M,{colorSchemes:V}=F,K=we(F,rw),le=C({colorSchemes:V},K,{breakpoints:Vf(g??{}),components:vr({MuiSvgIcon:{defaultProps:{fontSize:"xl2"},styleOverrides:{root:({ownerState:U,theme:X})=>{var oe;const ge=U.instanceFontSize;return C({margin:"var(--Icon-margin)"},U.fontSize&&U.fontSize!=="inherit"&&{fontSize:`var(--Icon-fontSize, ${X.vars.fontSize[U.fontSize]})`},!U.htmlColor&&C({color:`var(--Icon-color, ${le.vars.palette.text.icon})`},U.color&&U.color!=="inherit"&&X.vars.palette[U.color]&&{color:`rgba(${(oe=X.vars.palette[U.color])==null?void 0:oe.mainChannel} / 1)`}),ge&&ge!=="inherit"&&{"--Icon-fontSize":X.vars.fontSize[ge]})}}}},v),cssVarPrefix:h,getCssVar:y,spacing:q0(m)});
47function xe(U,X){Object.keys(X).forEach(oe=>{const ge={main:"500",light:"200",dark:"700"};U==="dark"&&(ge.main=400),!X[oe].mainChannel&&X[oe][ge.main]&&(X[oe].mainChannel=ea(X[oe][ge.main])),!X[oe].lightChannel&&X[oe][ge.light]&&(X[oe].lightChannel=ea(X[oe][ge.light])),!X[oe].darkChannel&&X[oe][ge.dark]&&(X[oe].darkChannel=ea(X[oe][ge.dark]))})}Object.entries(le.colorSchemes).forEach(([U,X])=>{xe(U,X.palette)});const de={prefix:h,shouldSkipGeneratingVar:w},{vars:re,generateCssVars:_e}=TS(C({colorSchemes:V},K),de);le.vars=re,le.generateCssVars=_e,le.unstable_sxConfig=C({},QS,e==null?void 0:e.unstable_sxConfig),le.unstable_sx=function(X){return Da({sx:X,theme:this})},le.getColorSchemeSelector=U=>U==="light"?"&":`&[data-joy-color-scheme="${U}"], [data-joy-color-scheme="${U}"] &`;const G={getCssVar:y,palette:le.colorSchemes.light.palette};return le.variants=vr({plain:Pr("plain",G),plainHover:Pr("plainHover",G),plainActive:Pr("plainActive",G),plainDisabled:Pr("plainDisabled",G),outlined:Pr("outlined",G),outlinedHover:Pr("outlinedHover",G),outlinedActive:Pr("outlinedActive",G),outlinedDisabled:Pr("outlinedDisabled",G),soft:Pr("soft",G),softHover:Pr("softHover",G),softActive:Pr("softActive",G),softDisabled:Pr("softDisabled",G),solid:Pr("solid",G),solidHover:Pr("solidHover",G),solidActive:Pr("solidActive",G),solidDisabled:Pr("solidDisabled",G)},x),le.palette=C({},le.colorSchemes.light.palette,{colorScheme:"light"}),le.shouldSkipGeneratingVar=w,le.applyStyles=qf,le}const Oa=Ld(),os={attribute:"data-joy-color-scheme",colorSchemeStorageKey:"joy-color-scheme",defaultLightColorScheme:"light",defaultDarkColorScheme:"dark",modeStorageKey:"joy-mode"},{CssVarsProvider:ow,useColorScheme:aw}=wS({themeId:$i,theme:Oa,attribute:os.attribute,modeStorageKey:os.modeStorageKey,colorSchemeStorageKey:os.colorSchemeStorageKey,defaultColorScheme:{light:os.defaultLightColorScheme,dark:os.defaultDarkColorScheme}}),Q=av({defaultTheme:Oa,themeId:$i}),iw=()=>{const e=zi(Oa);return e[$i]||e};function ut({props:e,name:t}){return Zf({props:e,name:t,defaultTheme:C({},Oa,{components:{}}),themeId:$i})}function sw(e){return c.jsx(Q0,C({},e,{defaultTheme:Oa,themeId:$i}))}function Qp(e,t,r=(n,o)=>n===o){return e.length===t.length&&e.every((n,o)=>r(n,t[o]))}const lw={disableDefaultClasses:!1},cw=p.createContext(lw);function uw(e){const{disableDefaultClasses:t}=p.useContext(cw);return r=>t?"":e(r)}function dw(e){const{rootElementName:t=""}=e,[r,n]=p.useState(t.toUpperCase()),o=p.useCallback(a=>{var i;n((i=a==null?void 0:a.tagName)!=null?i:"")},[]);return[r,o]}const xv="base";function fw(e){return`${xv}--${e}`}function hw(e,t){return`${xv}-${e}-${t}`}function pw(e,t){const r=tv[t];return r?fw(r):hw(e,t)}function Go(e={}){const{disabled:t=!1,focusableWhenDisabled:r,href:n,rootRef:o,tabIndex:a,to:i,type:s,rootElementName:l}=e,u=p.useRef(null),[d,f]=p.useState(!1),{isFocusVisibleRef:h,onFocus:g,onBlur:m,ref:v}=ll(),[x,w]=p.useState(!1);t&&!r&&x&&w(!1),p.useEffect(()=>{h.current=x},[x,h]);const[S,y]=dw({rootElementName:l??(n||i?"a":void 0)}),_=$=>j=>{var A;x&&j.preventDefault(),(A=$.onMouseLeave)==null||A.call($,j)},R=$=>j=>{var A;m(j),h.current===!1&&w(!1),(A=$.onBlur)==null||A.call($,j)},O=$=>j=>{var A;if(u.current||(u.current=j.currentTarget),g(j),h.current===!0){var M;w(!0),(M=$.onFocusVisible)==null||M.call($,j)}(A=$.onFocus)==null||A.call($,j)},b=()=>{const $=u.current;return S==="BUTTON"||S==="INPUT"&&["button","submit","reset"].includes($==null?void 0:$.type)||S==="A"&&($==null?void 0:$.href)},P=$=>j=>{if(!t){var A;(A=$.onClick)==null||A.call($,j)}},E=$=>j=>{var A;t||(f(!0),document.addEventListener("mouseup",()=>{f(!1)},{once:!0})),(A=$.onMouseDown)==null||A.call($,j)},T=$=>j=>{var A;if((A=$.onKeyDown)==null||A.call($,j),!j.defaultMuiPrevented&&(j.target===j.currentTarget&&!b()&&j.key===" "&&j.preventDefault(),j.target===j.currentTarget&&j.key===" "&&!t&&f(!0),j.target===j.currentTarget&&!b()&&j.key==="Enter"&&!t)){var M;(M=$.onClick)==null||M.call($,j),j.preventDefault()}},I=$=>j=>{var A;if(j.target===j.currentTarget&&f(!1),(A=$.onKeyUp)==null||A.call($,j),j.target===j.currentTarget&&!b()&&!t&&j.key===" "&&!j.defaultMuiPrevented){var M;(M=$.onClick)==null||M.call($,j)}},k=It(y,o,v,u),D={};return a!==void 0&&(D.tabIndex=a),S==="BUTTON"?(D.type=s??"button",r?D["aria-disabled"]=t:D.disabled=t):S==="INPUT"?s&&["button","submit","reset"].includes(s)&&(r?D["aria-disabled"]=t:D.disabled=t):S!==""&&(!n&&!i&&(D.role="button",D.tabIndex=a??0),t&&(D["aria-disabled"]=t,D.tabIndex=r?a??0:-1)),{getRootProps:($={})=>{const j=C({},_r(e),_r($)),A=C({type:s},j,D,$,{onBlur:R(j),onClick:P(j),onFocus:O(j),onKeyDown:T(j),onKeyUp:I(j),onMouseDown:E(j),onMouseLeave:_(j),ref:k});return delete A.onFocusVisible,A},focusVisible:x,setFocusVisible:w,active:d,rootRef:k}}function Zp(e){return e.substring(2).toLowerCase()}function mw(e,t){return t.documentElement.clientWidth<e.clientX||t.documentElement.clientHeight<e.clientY}function gw(e){const{children:t,disableReactTree:r=!1,mouseEvent:n="onClick",onClickAway:o,touchEvent:a="onTouchEnd"}=e,i=p.useRef(!1),s=p.useRef(null),l=p.useRef(!1),u=p.useRef(!1);p.useEffect(()=>(setTimeout(()=>{l.current=!0},0),()=>{l.current=!1}),[]);const d=It(bu(t),s),f=sn(m=>{const v=u.current;u.current=!1;const x=Wr(s.current);if(!l.current||!s.current||"clientX"in m&&mw(m,x))return;if(i.current){i.current=!1;return}let w;m.composedPath?w=m.composedPath().indexOf(s.current)>-1:w=!x.documentElement.contains(m.target)||s.current.contains(m.target),!w&&(r||!v)&&o(m)}),h=m=>v=>{u.current=!0;const x=t.props[m];x&&x(v)},g={ref:d};return a!==!1&&(g[a]=h(a)),p.useEffect(()=>{if(a!==!1){const m=Zp(a),v=Wr(s.current),x=()=>{i.current=!0};return v.addEventListener(m,f),v.addEventListener("touchmove",x),()=>{v.removeEventListener(m,f),v.removeEventListener("touchmove",x)}}}
47,[f,a]),n!==!1&&(g[n]=h(n)),p.useEffect(()=>{if(n!==!1){const m=Zp(n),v=Wr(s.current);return v.addEventListener(m,f),()=>{v.removeEventListener(m,f)}}},[f,n]),c.jsx(p.Fragment,{children:p.cloneElement(t,g)})}const Cv=p.createContext(null);function vw(e,t){return e===t}const ld={},em=()=>{};function Md(e,t){const r=C({},e);return Object.keys(t).forEach(n=>{t[n]!==void 0&&(r[n]=t[n])}),r}function yw(e){const{nextState:t,initialState:r,stateComparers:n,onStateChange:o,controlledProps:a,lastActionRef:i}=e,s=p.useRef(r);p.useEffect(()=>{if(i.current===null)return;const l=Md(s.current,a);Object.keys(t).forEach(u=>{var d;const f=(d=n[u])!=null?d:vw,h=t[u],g=l[u];if(g==null&&h!=null||g!=null&&h==null||g!=null&&h!=null&&!f(h,g)){var m,v;o==null||o((m=i.current.event)!=null?m:null,u,h,(v=i.current.type)!=null?v:"",t)}}),s.current=t,i.current=null},[s,t,i,o,n,a])}function bw(e){const t=p.useRef(null),{reducer:r,initialState:n,controlledProps:o=ld,stateComparers:a=ld,onStateChange:i=em,actionContext:s,componentName:l=""}=e;p.useRef(o);const u=p.useCallback((g,m)=>{t.current=m;const v=Md(g,o);return r(v,m)},[o,r]),[d,f]=p.useReducer(u,n),h=p.useCallback(g=>{f(C({},g,{context:s}))},[s]);return yw({nextState:d,initialState:n,stateComparers:a??ld,onStateChange:i??em,controlledProps:o,lastActionRef:t}),[Md(d,o),h]}const zd={blur:"dropdown:blur",escapeKeyDown:"dropdown:escapeKeyDown",toggle:"dropdown:toggle",open:"dropdown:open",close:"dropdown:close"},xw=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function Cw(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 Sw(e){if(e.tagName!=="INPUT"||e.type!=="radio"||!e.name)return!1;const t=n=>e.ownerDocument.querySelector(`input[type="radio"]${n}`);let r=t(`[name="${e.name}"]:checked`);return r||(r=t(`[name="${e.name}"]`)),r!==e}function ww(e){return!(e.disabled||e.tagName==="INPUT"&&e.type==="hidden"||Sw(e))}function kw(e){const t=[],r=[];return Array.from(e.querySelectorAll(xw)).forEach((n,o)=>{const a=Cw(n);a===-1||!ww(n)||(a===0?t.push(n):r.push({documentOrder:o,tabIndex:a,node:n}))}),r.sort((n,o)=>n.tabIndex===o.tabIndex?n.documentOrder-o.documentOrder:n.tabIndex-o.tabIndex).map(n=>n.node).concat(t)}function _w(){return!0}function Ew(e){const{children:t,disableAutoFocus:r=!1,disableEnforceFocus:n=!1,disableRestoreFocus:o=!1,getTabbable:a=kw,isEnabled:i=_w,open:s}=e,l=p.useRef(!1),u=p.useRef(null),d=p.useRef(null),f=p.useRef(null),h=p.useRef(null),g=p.useRef(!1),m=p.useRef(null),v=It(bu(t),m),x=p.useRef(null);p.useEffect(()=>{!s||!m.current||(g.current=!r)},[r,s]),p.useEffect(()=>{if(!s||!m.current)return;const y=Wr(m.current);return m.current.contains(y.activeElement)||(m.current.hasAttribute("tabIndex")||m.current.setAttribute("tabIndex","-1"),g.current&&m.current.focus()),()=>{o||(f.current&&f.current.focus&&(l.current=!0,f.current.focus()),f.current=null)}},[s]),p.useEffect(()=>{if(!s||!m.current)return;const y=Wr(m.current),_=b=>{x.current=b,!(n||!i()||b.key!=="Tab")&&y.activeElement===m.current&&b.shiftKey&&(l.current=!0,d.current&&d.current.focus())},R=()=>{const b=m.current;if(b===null)return;if(!y.hasFocus()||!i()||l.current){l.current=!1;return}if(b.contains(y.activeElement)||n&&y.activeElement!==u.current&&y.activeElement!==d.current)return;if(y.activeElement!==h.current)h.current=null;else if(h.current!==null)return;if(!g.current)return;let P=[];if((y.activeElement===u.current||y.activeElement===d.current)&&(P=a(m.current)),P.length>0){var E,T;const I=!!((E=x.current)!=null&&E.shiftKey&&((T=x.current)==null?void 0:T.key)==="Tab"),k=P[0],D=P[P.length-1];typeof k!="string"&&typeof D!="string"&&(I?D.focus():k.focus())}else b.focus()};y.addEventListener("focusin",R),y.addEventListener("keydown",_,!0);const O=setInterval(()=>{y.activeElement&&y.activeElement.tagName==="BODY"&&R()},50);return()=>{clearInterval(O),y.removeEventListener("focusin",R),y.removeEventListener("keydown",_,!0)}},[r,n,o,i,s,a]);const w=y=>{f.current===null&&(f.current=y.relatedTarget),g.current=!0,h.current=y.target;const _=t.props.onFocus;_&&_(y)},S=y=>{f.current===null&&(f.current=y.relatedTarget),g.current=!0};return c.jsxs(p.Fragment,{children:[c.jsx("div",{tabIndex:s?0:-1,onFocus:S,ref:u,"data-testid":"sentinelStart"}),p.cloneElement(t,{ref:v,onFocus:w}),c.jsx("div",{tabIndex:s?0:-1,onFocus:S,ref:d,"data-testid":"sentinelEnd"})]})}const Pw=p.createContext(void 0);function Rw(){return p.useContext(Pw)}function Tw(e={}){const{defaultValue:t,disabled:r=!1,error:n=!1,onBlur:o,onChange:a,onFocus:i,required:s=!1,value:l,inputRef:u}=e,d=Rw();let f,h,g,m,v;if(d){var x,w,S;f=void 0,h=(x=d.disabled)!=null?x:!1,g=(w=d.error)!=null?w:!1,m=(S=d.required)!=null?S:!1,v=d.value}else f=t,h=r,g=n,m=s,v=l;const{current:y}=p.useRef(v!=null),_=p.useCallback($=>{},[]),R=p.useRef(null),O=It(R,u,_),[b,P]=p.useState(!1);p.useEffect(()=>{!d&&h&&b&&(P(!1),o==null||o())},[d,h,b,o]);const E=$=>j=>{var A;if(d!=null&&d.disabled){j.stopPropagation();return}if((A=$.onFocus)==null||A.call($,j),d&&d.onFocus){var M;
vendor: 4,425 bytes, line 47
47d==null||(M=d.onFocus)==null||M.call(d)}else P(!0)},T=$=>j=>{var A;(A=$.onBlur)==null||A.call($,j),d&&d.onBlur?d.onBlur():P(!1)},I=$=>(j,...A)=>{var M,F;if(!y&&(j.target||R.current)==null)throw new Error(vo(17));d==null||(M=d.onChange)==null||M.call(d,j),(F=$.onChange)==null||F.call($,j,...A)},k=$=>j=>{var A;R.current&&j.currentTarget===j.target&&R.current.focus(),(A=$.onClick)==null||A.call($,j)};return{disabled:h,error:g,focused:b,formControlContext:d,getInputProps:($={})=>{const A=C({},{onBlur:o,onChange:a,onFocus:i},_r($)),M=C({},A,{onBlur:T(A),onChange:I(A),onFocus:E(A)});return C({},M,{"aria-invalid":g||void 0,defaultValue:f,value:v,required:m,disabled:h},$,{ref:O},M)},getRootProps:($={})=>{const j=_r(e,["onBlur","onChange","onFocus"]),A=C({},j,_r($));return C({},$,A,{onClick:k(A)})},inputRef:O,required:m,value:v}}const Nt={blur:"list:blur",itemClick:"list:itemClick",itemHover:"list:itemHover",itemsChange:"list:itemsChange",keyDown:"list:keyDown",resetHighlight:"list:resetHighlight",highlightLast:"list:highlightLast",textNavigation:"list:textNavigation",clearSelection:"list:clearSelection"};function Iw(e,t,r,n,o,a){if(r.length===0||!n&&r.every((s,l)=>o(s,l)))return-1;let i=e;for(;;){if(!a&&t==="next"&&i===r.length||!a&&t==="previous"&&i===-1)return-1;if(n?!1:o(r[i],i))i+=t==="next"?1:-1,a&&(i=(i+r.length)%r.length);else return i}}function Cr(e,t,r){var n;const{items:o,isItemDisabled:a,disableListWrap:i,disabledItemsFocusable:s,itemComparer:l,focusManagement:u}=r,d=u==="DOM"?0:-1,f=o.length-1,h=e==null?-1:o.findIndex(w=>l(w,e));let g,m,v=!i;switch(t){case"reset":if(d===-1)return null;g=0,m="next",v=!1;break;case"start":g=0,m="next",v=!1;break;case"end":g=f,m="previous",v=!1;break;default:{const w=h+t;w<0?!v&&h!==-1||Math.abs(t)>1?(g=0,m="next"):(g=f,m="previous"):w>f?!v||Math.abs(t)>1?(g=f,m="previous"):(g=0,m="next"):(g=w,m=t>=0?"next":"previous")}}const x=Iw(g,m,o,s,a,v);return x===-1&&e!==null&&!a(e,h)?e:(n=o[x])!=null?n:null}function Dw(e,t,r,n){return r==="none"?[]:r==="single"?n(t[0],e)?t:[e]:t.some(o=>n(o,e))?t.filter(o=>!n(o,e)):[...t,e]}function sh(e,t,r){const{itemComparer:n,isItemDisabled:o,selectionMode:a,items:i}=r,{selectedValues:s}=t,l=i.findIndex(d=>n(e,d));if(o(e,l))return t;const u=Dw(e,s,a,n);return C({},t,{selectedValues:u,highlightedValue:e})}function Ow(e,t,r){const n=t.highlightedValue,{orientation:o,pageSize:a}=r;switch(e){case"Home":return C({},t,{highlightedValue:Cr(n,"start",r)});case"End":return C({},t,{highlightedValue:Cr(n,"end",r)});case"PageUp":return C({},t,{highlightedValue:Cr(n,-a,r)});case"PageDown":return C({},t,{highlightedValue:Cr(n,a,r)});case"ArrowUp":if(o!=="vertical")break;return C({},t,{highlightedValue:Cr(n,-1,r)});case"ArrowDown":if(o!=="vertical")break;return C({},t,{highlightedValue:Cr(n,1,r)});case"ArrowLeft":{if(o==="vertical")break;return C({},t,{highlightedValue:Cr(n,o==="horizontal-ltr"?-1:1,r)})}case"ArrowRight":{if(o==="vertical")break;return C({},t,{highlightedValue:Cr(n,o==="horizontal-ltr"?1:-1,r)})}case"Enter":case" ":return t.highlightedValue===null?t:sh(t.highlightedValue,t,r)}return t}function $w(e,t){return t.focusManagement==="DOM"?e:C({},e,{highlightedValue:null})}function jw(e,t,r){var n;const o=(n=r(e))==null?void 0:n.trim().toLowerCase();return!o||o.length===0?!1:o.indexOf(t)===0}function Aw(e,t,r){const{items:n,isItemDisabled:o,disabledItemsFocusable:a,getItemAsString:i}=r,s=t.length>1;let l=s?e.highlightedValue:Cr(e.highlightedValue,1,r);for(let u=0;u<n.length;u+=1){if(!l||!s&&e.highlightedValue===l)return e;if(jw(l,t,i)&&(!o(l,n.indexOf(l))||a))return C({},e,{highlightedValue:l});l=Cr(l,1,r)}return e}function Lw(e,t,r,n){var o;const{itemComparer:a,focusManagement:i}=n;let s=null;if(r.highlightedValue!=null){var l;s=(l=e.find(f=>a(f,r.highlightedValue)))!=null?l:null}else i==="DOM"&&t.length===0&&(s=Cr(null,"reset",n));const d=((o=r.selectedValues)!=null?o:[]).filter(f=>e.some(h=>a(h,f)));return C({},r,{highlightedValue:s,selectedValues:d})}function Mw(e,t){return C({},e,{highlightedValue:Cr(null,"reset",t)})}function zw(e,t){return C({},e,{highlightedValue:Cr(null,"end",t)})}function Nw(e,t){return C({},e,{selectedValues:[],highlightedValue:Cr(null,"reset",t)})}function lh(e,t){const{type:r,context:n}=t;switch(r){case Nt.keyDown:return Ow(t.key,e,n);case Nt.itemClick:return sh(t.item,e,n);case Nt.blur:return $w(e,n);case Nt.textNavigation:return Aw(e,t.searchString,n);
47case Nt.itemsChange:return Lw(t.items,t.previousItems,e,n);case Nt.resetHighlight:return Mw(e,n);case Nt.highlightLast:return zw(e,n);case Nt.clearSelection:return Nw(e,n);default:return e}}const Fw=500;function Hw(e){const t=p.useRef({searchString:"",lastTime:null});return p.useCallback(r=>{if(r.key.length===1&&r.key!==" "){const n=t.current,o=r.key.toLowerCase(),a=performance.now();n.searchString.length>0&&n.lastTime&&a-n.lastTime>Fw?n.searchString=o:(n.searchString.length!==1||o!==n.searchString)&&(n.searchString+=o),n.lastTime=a,e(n.searchString,r)}},[e])}const tm={},Bw=()=>{},Ww=(e,t)=>e===t,Uw=()=>!1,Vw=e=>typeof e=="string"?e:String(e),Yw=()=>({highlightedValue:null,selectedValues:[]});function Sv(e){const{controlledProps:t=tm,disabledItemsFocusable:r=!1,disableListWrap:n=!1,focusManagement:o="activeDescendant",getInitialState:a=Yw,getItemDomElement:i,getItemId:s,isItemDisabled:l=Uw,rootRef:u,onStateChange:d=Bw,items:f,itemComparer:h=Ww,getItemAsString:g=Vw,onChange:m,onHighlightChange:v,onItemsChange:x,orientation:w="vertical",pageSize:S=5,reducerActionContext:y=tm,selectionMode:_="single",stateReducer:R,componentName:O="useList"}=e,b=p.useRef(null),P=It(u,b),E=p.useCallback((G,U,X)=>{if(v==null||v(G,U,X),o==="DOM"&&U!=null&&(X===Nt.itemClick||X===Nt.keyDown||X===Nt.textNavigation)){var oe;i==null||(oe=i(U))==null||oe.focus()}},[i,v,o]),T=p.useMemo(()=>({highlightedValue:h,selectedValues:(G,U)=>Qp(G,U,h)}),[h]),I=p.useCallback((G,U,X,oe,ge)=>{switch(d==null||d(G,U,X,oe,ge),U){case"highlightedValue":E(G,X,oe);break;case"selectedValues":m==null||m(G,X,oe);break}},[E,m,d]),k=p.useMemo(()=>({disabledItemsFocusable:r,disableListWrap:n,focusManagement:o,isItemDisabled:l,itemComparer:h,items:f,getItemAsString:g,onHighlightChange:E,orientation:w,pageSize:S,selectionMode:_,stateComparers:T}),[r,n,o,l,h,f,g,E,w,S,_,T]),D=a(),L=R??lh,$=p.useMemo(()=>C({},y,k),[y,k]),[j,A]=bw({reducer:L,actionContext:$,initialState:D,controlledProps:t,stateComparers:T,onStateChange:I,componentName:O}),{highlightedValue:M,selectedValues:F}=j,V=Hw((G,U)=>A({type:Nt.textNavigation,event:U,searchString:G})),K=p.useRef([]);p.useEffect(()=>{Qp(K.current,f,h)||(A({type:Nt.itemsChange,event:null,items:f,previousItems:K.current}),K.current=f,x==null||x(f))},[f,h,A,x]);const le=G=>U=>{var X;if((X=G.onKeyDown)==null||X.call(G,U),U.defaultMuiPrevented)return;const oe=["Home","End","PageUp","PageDown"];w==="vertical"?oe.push("ArrowUp","ArrowDown"):oe.push("ArrowLeft","ArrowRight"),o==="activeDescendant"&&oe.push(" ","Enter"),oe.includes(U.key)&&U.preventDefault(),A({type:Nt.keyDown,key:U.key,event:U}),V(U)},xe=G=>U=>{var X,oe;(X=G.onBlur)==null||X.call(G,U),!U.defaultMuiPrevented&&((oe=b.current)!=null&&oe.contains(U.relatedTarget)||A({type:Nt.blur,event:U}))},de=(G={})=>{const U=_r(G);return C({},G,{"aria-activedescendant":o==="activeDescendant"&&M!=null?s(M):void 0,tabIndex:o==="DOM"?-1:0,ref:P},U,{onBlur:xe(U),onKeyDown:le(U)})},re=p.useCallback(G=>{const U=(F??[]).some(ge=>ge!=null&&h(G,ge)),X=M!=null&&h(G,M);return{focusable:o==="DOM",highlighted:X,selected:U}},[h,F,M,o]),_e=p.useMemo(()=>({dispatch:A,getItemState:re}),[A,re]);return p.useDebugValue({state:j}),{contextValue:_e,dispatch:A,getRootProps:de,rootRef:P,state:j}}const $a=p.createContext(null);function wv(e){const{handlePointerOverEvents:t=!1,item:r}=e,n=p.useContext($a);if(!n)throw new Error("useListItem must be used within a ListProvider");const{dispatch:o,getItemState:a}=n,{highlighted:i,selected:s,focusable:l}=a(r),u=p.useCallback(g=>m=>{var v;(v=g.onClick)==null||v.call(g,m),!m.defaultPrevented&&o({type:Nt.itemClick,item:r,event:m})},[o,r]),d=p.useCallback(g=>m=>{var v;(v=g.onMouseOver)==null||v.call(g,m),!m.defaultPrevented&&o({type:Nt.itemHover,item:r,event:m})},[o,r]);let f;return l&&(f=i?0:-1),{getRootProps:(g={})=>{const m=_r(g);return C({},g,{onClick:u(m),onPointerOver:t?d(m):void 0,tabIndex:f})},highlighted:i,selected:s}}function Gw(e,t){if(t.type===Nt.itemHover)return C({},e,{highlightedValue:t.item});const r=lh(e,t);if(r.highlightedValue===null&&t.context.items.length>0)return C({}
47,r,{highlightedValue:t.context.items[0]});if(t.type===Nt.keyDown&&t.event.key==="Escape")return C({},r,{open:!1});if(t.type===Nt.blur){var n;if(!((n=t.context.listboxRef.current)!=null&&n.contains(t.event.relatedTarget))){var o,a;const i=(o=t.context.listboxRef.current)==null?void 0:o.getAttribute("id"),s=(a=t.event.relatedTarget)==null?void 0:a.getAttribute("aria-controls");return i&&s&&i===s?r:C({},r,{open:!1,highlightedValue:t.context.items[0]})}}return r}const ch=p.createContext(null);function Kw(e){const t=Array.from(e.keys()).map(r=>{const n=e.get(r);return{key:r,subitem:n}});return t.sort((r,n)=>{const o=r.subitem.ref.current,a=n.subitem.ref.current;return o===null||a===null||o===a?0:o.compareDocumentPosition(a)&Node.DOCUMENT_POSITION_PRECEDING?1:-1}),new Map(t.map(r=>[r.key,r.subitem]))}function kv(){const[e,t]=p.useState(new Map),r=p.useRef(new Set),n=p.useCallback(function(u){r.current.delete(u),t(d=>{const f=new Map(d);return f.delete(u),f})},[]),o=p.useCallback(function(u,d){let f;return typeof u=="function"?f=u(r.current):f=u,r.current.add(f),t(h=>{const g=new Map(h);return g.set(f,d),g}),{id:f,deregister:()=>n(f)}},[n]),a=p.useMemo(()=>Kw(e),[e]),i=p.useCallback(function(u){return Array.from(a.keys()).indexOf(u)},[a]);return{contextValue:p.useMemo(()=>({getItemIndex:i,registerItem:o,totalSubitemCount:e.size}),[i,o,e.size]),subitems:a}}function _v(e,t){const r=p.useContext(ch);if(r===null)throw new Error("useCompoundItem must be used within a useCompoundParent");const{registerItem:n}=r,[o,a]=p.useState(typeof e=="function"?void 0:e);return un(()=>{const{id:i,deregister:s}=n(e,t);return a(i),s},[n,t,e]),{id:o,index:o!==void 0?r.getItemIndex(o):-1,totalItemCount:r.totalSubitemCount}}function ka(e,t){return function(n={}){const o=C({},n,e(n));return C({},o,t(o))}}const Jw={dispatch:()=>{},registerPopup:()=>{},state:{open:!0,changeReason:null},triggerElement:null};function qw(e={}){var t,r;const{listboxRef:n,onItemsChange:o,id:a,disabledItemsFocusable:i=!0,disableListWrap:s=!1,autoFocus:l=!0,componentName:u="useMenu"}=e,d=p.useRef(null),f=It(d,n),h=(t=zr(a))!=null?t:"",{state:{open:g,changeReason:m},dispatch:v,triggerElement:x,registerPopup:w}=(r=p.useContext(Cv))!=null?r:Jw,S=p.useRef(g),{subitems:y,contextValue:_}=kv(),R=p.useMemo(()=>Array.from(y.keys()),[y]),O=p.useCallback(F=>{var V,K;return F==null?null:(V=(K=y.get(F))==null?void 0:K.ref.current)!=null?V:null},[y]),b=p.useCallback(F=>{var V;return(y==null||(V=y.get(F))==null?void 0:V.disabled)||!1},[y]),P=p.useCallback(F=>{var V,K;return((V=y.get(F))==null?void 0:V.label)||((K=y.get(F))==null||(K=K.ref.current)==null?void 0:K.innerText)},[y]),E=p.useMemo(()=>({listboxRef:d}),[d]),{dispatch:T,getRootProps:I,contextValue:k,state:{highlightedValue:D},rootRef:L}=Sv({disabledItemsFocusable:i,disableListWrap:s,focusManagement:"DOM",getItemDomElement:O,getInitialState:()=>({selectedValues:[],highlightedValue:null}),isItemDisabled:b,items:R,getItemAsString:P,rootRef:f,onItemsChange:o,reducerActionContext:E,selectionMode:"none",stateReducer:Gw,componentName:u});un(()=>{w(h)},[h,w]),un(()=>{g&&(m==null?void 0:m.type)==="keydown"&&m.key==="ArrowUp"&&T({type:Nt.highlightLast,event:m})},[g,m,T]),p.useEffect(()=>{if(g&&l&&D&&!S.current){var F;(F=y.get(D))==null||(F=F.ref)==null||(F=F.current)==null||F.focus()}},[g,l,D,y,R]),p.useEffect(()=>{var F;if((F=d.current)!=null&&F.contains(document.activeElement)&&D!==null){var V;y==null||(V=y.get(D))==null||(V=V.ref.current)==null||V.focus()}},[D,y]);const $=F=>V=>{var K,le;(K=F.onBlur)==null||K.call(F,V),!V.defaultMuiPrevented&&((le=d.current)!=null&&le.contains(V.relatedTarget)||V.relatedTarget===x||v({type:zd.blur,event:V}))},j=F=>V=>{var K;(K=F.onKeyDown)==null||K.call(F,V),!V.defaultMuiPrevented&&V.key==="Escape"&&v({type:zd.escapeKeyDown,event:V})},A=(F={})=>({onBlur:$(F),onKeyDown:j(F)}),M=(F={})=>{const V=ka(A,I),K=_r(F);return C({},F,K,V(K),{id:h,role:"menu"})};return p.useDebugValue({subitems:y,highlightedValue:D}),{contextValue:C({},_,k),dispatch:T,getListboxProps:M,highlightedValue:D,listboxRef:L,menuItems:y,open:g,triggerElement:x}}function Xw(e){const{value:t,children:r}=e,{dispatch:n,getItemIndex:o,getItemState:a,registerItem:i,totalSubitemCount:s}=t,l=p.useMemo(()=>({dispatch:n,getItemState:a,getItemIndex:o}),[n,o,a]),u=p.useMemo(()=>({getItemIndex:o,registerItem:i,totalSubitemCount:s}),[i,o,s]);return c.jsx(ch.Provider,{value:u,children:c.jsx($a.Provider,{value:l,children:r})})}function Qw(e){return typeof e=="function"?e():e}const Ev=p.forwardRef(function(t,r){const{children:n,container:o,disablePortal:a=!1}=t,[i,s]=p.useState(null),l=It(p.isValidElement(n)?bu(n):null,r);if(un(()=>{a||s(Qw(o)||document.body)},[o,a]),un(()=>
47{if(i&&!a)return $s(r,i),()=>{$s(r,null)}},[r,i,a]),a){if(p.isValidElement(n)){const u={ref:l};return p.cloneElement(n,u)}return c.jsx(p.Fragment,{children:n})}return c.jsx(p.Fragment,{children:i&&Vb.createPortal(n,i)})});function Zw(e){return`menu-item-${e.size}`}const e5={dispatch:()=>{}};function t5(e){var t;const{disabled:r=!1,id:n,rootRef:o,label:a,disableFocusOnHover:i=!1}=e,s=zr(n),l=p.useRef(null),u=p.useMemo(()=>({disabled:r,id:s??"",label:a,ref:l}),[r,s,a]),{dispatch:d}=(t=p.useContext(Cv))!=null?t:e5,{getRootProps:f,highlighted:h}=wv({item:s,handlePointerOverEvents:!i}),{index:g,totalItemCount:m}=_v(s??Zw,u),{getRootProps:v,focusVisible:x,rootRef:w}=Go({disabled:r,focusableWhenDisabled:!0}),S=It(w,o,l);p.useDebugValue({id:s,highlighted:h,disabled:r,label:a});const y=O=>b=>{var P;(P=O.onClick)==null||P.call(O,b),!b.defaultMuiPrevented&&d({type:zd.close,event:b})},_=(O={})=>C({},O,{onClick:y(O)});function R(O={}){const b=_r(O),P=ka(_,ka(v,f));return C({},O,b,P(b),{id:s,ref:S,role:"menuitem"})}return s===void 0?{getRootProps:R,disabled:!1,focusVisible:x,highlighted:!1,index:-1,totalItemCount:0,rootRef:S}:{getRootProps:R,disabled:r,focusVisible:x,highlighted:h,index:g,totalItemCount:m,rootRef:S}}function r5(e){const t=p.useContext($a);if(!t)throw new Error("MenuItem: ListContext was not found.");const r=zr(e),{getItemState:n,dispatch:o}=t;let a;r!=null?a=n(r):a={focusable:!0,highlighted:!1,selected:!1};const{highlighted:i,selected:s,focusable:l}=a,u=p.useCallback(f=>{if(f!==r)throw new Error(["Base UI MenuItem: Tried to access the state of another MenuItem.",`itemValue: ${f} | id: ${r}`,"This is unsupported when the MenuItem uses the MenuItemContextStabilizer as a performance optimization."].join("/n"));return{highlighted:i,selected:s,focusable:l}},[i,s,l,r]);return{contextValue:p.useMemo(()=>({dispatch:o,getItemState:u}),[o,u]),id:r}}function n5(e){const t=Wr(e);return t.body===e?vu(e).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}function Cs(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function rm(e){return parseInt(vu(e).getComputedStyle(e).paddingRight,10)||0}function o5(e){const r=["TEMPLATE","SCRIPT","STYLE","LINK","MAP","META","NOSCRIPT","PICTURE","COL","COLGROUP","PARAM","SLOT","SOURCE","TRACK"].indexOf(e.tagName)!==-1,n=e.tagName==="INPUT"&&e.getAttribute("type")==="hidden";return r||n}function nm(e,t,r,n,o){const a=[t,r,...n];[].forEach.call(e.children,i=>{const s=a.indexOf(i)===-1,l=!o5(i);s&&l&&Cs(i,o)})}function cd(e,t){let r=-1;return e.some((n,o)=>t(n)?(r=o,!0):!1),r}function a5(e,t){const r=[],n=e.container;if(!t.disableScrollLock){if(n5(n)){const i=rS(Wr(n));r.push({value:n.style.paddingRight,property:"padding-right",el:n}),n.style.paddingRight=`${rm(n)+i}px`;const s=Wr(n).querySelectorAll(".mui-fixed");[].forEach.call(s,l=>{r.push({value:l.style.paddingRight,property:"padding-right",el:l}),l.style.paddingRight=`${rm(l)+i}px`})}let a;if(n.parentNode instanceof DocumentFragment)a=Wr(n).body;else{const i=n.parentElement,s=vu(n);a=(i==null?void 0:i.nodeName)==="HTML"&&s.getComputedStyle(i).overflowY==="scroll"?i:n}r.push({value:a.style.overflow,property:"overflow",el:a},{value:a.style.overflowX,property:"overflow-x",el:a},{value:a.style.overflowY,property:"overflow-y",el:a}),a.style.overflow="hidden"}return()=>{r.forEach(({value:a,el:i,property:s})=>{a?i.style.setProperty(s,a):i.style.removeProperty(s)})}}function i5(e){const t=[];return[].forEach.call(e.children,r=>{r.getAttribute("aria-hidden")==="true"&&t.push(r)}),t}class s5{constructor(){this.containers=void 0,this.modals=void 0,this.modals=[],this.containers=[]}add(t,r){let n=this.modals.indexOf(t);if(n!==-1)return n;n=this.modals.length,this.modals.push(t),t.modalRef&&Cs(t.modalRef,!1);const o=i5(r);nm(r,t.mount,t.modalRef,o,!0);const a=cd(this.containers,i=>i.container===r);return a!==-1?(this.containers[a].modals.push(t),n):(this.containers.push({modals:[t],container:r,restore:null,hiddenSiblings:o}),n)}mount(t,r){const n=cd(this.containers,a=>a.modals.indexOf(t)!==-1),o=this.containers[n];o.restore||(o.restore=a5(o,r))}remove(t,r=!0){const n=this.modals.indexOf(t);if(n===-1)return n;const o=cd(this.containers,i=>i.modals.indexOf(t)!==-1),a=this.containers[o];if(a.modals.splice(a.modals.indexOf(t),1),this.modals.splice(n,1),a.modals.length===0)a.restore&&a.restore(
47),t.modalRef&&Cs(t.modalRef,r),nm(a.container,t.mount,t.modalRef,a.hiddenSiblings,!1),this.containers.splice(o,1);else{const i=a.modals[a.modals.length-1];i.modalRef&&Cs(i.modalRef,!1)}return n}isTopModal(t){return this.modals.length>0&&this.modals[this.modals.length-1]===t}}function l5(e){return typeof e=="function"?e():e}function c5(e){return e?e.props.hasOwnProperty("in"):!1}const u5=new s5;function d5(e){const{container:t,disableEscapeKeyDown:r=!1,disableScrollLock:n=!1,manager:o=u5,closeAfterTransition:a=!1,onTransitionEnter:i,onTransitionExited:s,children:l,onClose:u,open:d,rootRef:f}=e,h=p.useRef({}),g=p.useRef(null),m=p.useRef(null),v=It(m,f),[x,w]=p.useState(!d),S=c5(l);let y=!0;(e["aria-hidden"]==="false"||e["aria-hidden"]===!1)&&(y=!1);const _=()=>Wr(g.current),R=()=>(h.current.modalRef=m.current,h.current.mount=g.current,h.current),O=()=>{o.mount(R(),{disableScrollLock:n}),m.current&&(m.current.scrollTop=0)},b=sn(()=>{const j=l5(t)||_().body;o.add(R(),j),m.current&&O()}),P=p.useCallback(()=>o.isTopModal(R()),[o]),E=sn(j=>{g.current=j,j&&(d&&P()?O():m.current&&Cs(m.current,y))}),T=p.useCallback(()=>{o.remove(R(),y)},[y,o]);p.useEffect(()=>()=>{T()},[T]),p.useEffect(()=>{d?b():(!S||!a)&&T()},[d,T,S,a,b]);const I=j=>A=>{var M;(M=j.onKeyDown)==null||M.call(j,A),!(A.key!=="Escape"||A.which===229||!P())&&(r||(A.stopPropagation(),u&&u(A,"escapeKeyDown")))},k=j=>A=>{var M;(M=j.onClick)==null||M.call(j,A),A.target===A.currentTarget&&u&&u(A,"backdropClick")};return{getRootProps:(j={})=>{const A=_r(e);delete A.onTransitionEnter,delete A.onTransitionExited;const M=C({},A,j);return C({role:"presentation"},M,{onKeyDown:I(M),ref:v})},getBackdropProps:(j={})=>{const A=j;return C({"aria-hidden":!0},A,{onClick:k(A),open:d})},getTransitionProps:()=>{const j=()=>{w(!1),i&&i()},A=()=>{w(!0),s&&s(),a&&T()};return{onEnter:jd(j,l==null?void 0:l.props.onEnter),onExited:jd(A,l==null?void 0:l.props.onExited)}},rootRef:v,portalRef:E,isTopModal:P,exited:x,hasTransition:S}}function f5(e){const{value:t,label:r,disabled:n,rootRef:o,id:a}=e,{getRootProps:i,highlighted:s,selected:l}=wv({item:t}),{getRootProps:u,rootRef:d}=Go({disabled:n,focusableWhenDisabled:!0}),f=zr(a),h=p.useRef(null),g=p.useMemo(()=>({disabled:n,label:r,value:t,ref:h,id:f}),[n,r,t,f]),{index:m}=_v(t,g),v=It(o,h,d),x=S=>y=>{var _;(_=S.onKeyDown)==null||_.call(S,y),!y.defaultMuiPrevented&&[" ","Enter"].includes(y.key)&&(y.defaultMuiPrevented=!0)},w=(S={})=>({onKeyDown:x(S)});return{getRootProps:(S={})=>{const y=_r(S),_=ka(i,ka(u,w));return C({},S,y,_(y),{id:f,ref:v,role:"option","aria-selected":l})},highlighted:s,index:m,selected:l,rootRef:v}}function h5(e){const t=p.useContext($a);if(!t)throw new Error("Option: ListContext was not found.");const{getItemState:r,dispatch:n}=t,{highlighted:o,selected:a,focusable:i}=r(e),s=p.useCallback(u=>{if(u!==e)throw new Error(["Base UI Option: Tried to access the state of another Option.","This is unsupported when the Option uses the OptionContextStabilizer as a performance optimization."].join("/n"));return{highlighted:o,selected:a,focusable:i}},[o,a,i,e]);return{contextValue:p.useMemo(()=>({dispatch:n,getItemState:s}),[n,s])}}var Ur="top",dn="bottom",fn="right",Vr="left",uh="auto",ul=[Ur,dn,fn,Vr],Si="start",As="end",p5="clippingParents",Pv="viewport",as="popper",m5="reference",om=ul.reduce(function(e,t){return e.concat([t+"-"+Si,t+"-"+As])},[]),Rv=[].concat(ul,[uh]).reduce(function(e,t){return e.concat([t,t+"-"+Si,t+"-"+As])},[]),g5="beforeRead",v5="read",y5="afterRead",b5="beforeMain",x5="main",C5="afterMain",S5="beforeWrite",w5="write",k5="afterWrite",_5=[g5,v5,y5,b5,x5,C5,S5,w5,k5];function Vn(e){return e?(e.nodeName||"").toLowerCase():null}function Qr(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function _a(e){var t=Qr(e).Element;return e instanceof t||e instanceof Element}function ln(e){var t=Qr(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function dh(e){if(typeof ShadowRoot>"u")return!1;var t=Qr(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function E5(e){var t=e.state;
vendor: 16,609 bytes, line 47
47Object.keys(t.elements).forEach(function(r){var n=t.styles[r]||{},o=t.attributes[r]||{},a=t.elements[r];!ln(a)||!Vn(a)||(Object.assign(a.style,n),Object.keys(o).forEach(function(i){var s=o[i];s===!1?a.removeAttribute(i):a.setAttribute(i,s===!0?"":s)}))})}function P5(e){var t=e.state,r={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,r.popper),t.styles=r,t.elements.arrow&&Object.assign(t.elements.arrow.style,r.arrow),function(){Object.keys(t.elements).forEach(function(n){var o=t.elements[n],a=t.attributes[n]||{},i=Object.keys(t.styles.hasOwnProperty(n)?t.styles[n]:r[n]),s=i.reduce(function(l,u){return l[u]="",l},{});!ln(o)||!Vn(o)||(Object.assign(o.style,s),Object.keys(a).forEach(function(l){o.removeAttribute(l)}))})}}const R5={name:"applyStyles",enabled:!0,phase:"write",fn:E5,effect:P5,requires:["computeStyles"]};function Wn(e){return e.split("-")[0]}var xa=Math.max,yc=Math.min,wi=Math.round;function Nd(){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 Tv(){return!/^((?!chrome|android).)*safari/i.test(Nd())}function ki(e,t,r){t===void 0&&(t=!1),r===void 0&&(r=!1);var n=e.getBoundingClientRect(),o=1,a=1;t&&ln(e)&&(o=e.offsetWidth>0&&wi(n.width)/e.offsetWidth||1,a=e.offsetHeight>0&&wi(n.height)/e.offsetHeight||1);var i=_a(e)?Qr(e):window,s=i.visualViewport,l=!Tv()&&r,u=(n.left+(l&&s?s.offsetLeft:0))/o,d=(n.top+(l&&s?s.offsetTop:0))/a,f=n.width/o,h=n.height/a;return{width:f,height:h,top:d,right:u+f,bottom:d+h,left:u,x:u,y:d}}function fh(e){var t=ki(e),r=e.offsetWidth,n=e.offsetHeight;return Math.abs(t.width-r)<=1&&(r=t.width),Math.abs(t.height-n)<=1&&(n=t.height),{x:e.offsetLeft,y:e.offsetTop,width:r,height:n}}function Iv(e,t){var r=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(r&&dh(r)){var n=t;do{if(n&&e.isSameNode(n))return!0;n=n.parentNode||n.host}while(n)}return!1}function bo(e){return Qr(e).getComputedStyle(e)}function T5(e){return["table","td","th"].indexOf(Vn(e))>=0}function Ko(e){return((_a(e)?e.ownerDocument:e.document)||window.document).documentElement}function xu(e){return Vn(e)==="html"?e:e.assignedSlot||e.parentNode||(dh(e)?e.host:null)||Ko(e)}function am(e){return!ln(e)||bo(e).position==="fixed"?null:e.offsetParent}function I5(e){var t=/firefox/i.test(Nd()),r=/Trident/i.test(Nd());if(r&&ln(e)){var n=bo(e);if(n.position==="fixed")return null}var o=xu(e);for(dh(o)&&(o=o.host);ln(o)&&["html","body"].indexOf(Vn(o))<0;){var a=bo(o);if(a.transform!=="none"||a.perspective!=="none"||a.contain==="paint"||["transform","perspective"].indexOf(a.willChange)!==-1||t&&a.willChange==="filter"||t&&a.filter&&a.filter!=="none")return o;o=o.parentNode}return null}function dl(e){for(var t=Qr(e),r=am(e);r&&T5(r)&&bo(r).position==="static";)r=am(r);return r&&(Vn(r)==="html"||Vn(r)==="body"&&bo(r).position==="static")?t:r||I5(e)||t}function hh(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function Ss(e,t,r){return xa(e,yc(t,r))}function D5(e,t,r){var n=Ss(e,t,r);return n>r?r:n}function Dv(){return{top:0,right:0,bottom:0,left:0}}function Ov(e){return Object.assign({},Dv(),e)}function $v(e,t){return t.reduce(function(r,n){return r[n]=e,r},{})}var O5=function(t,r){return t=typeof t=="function"?t(Object.assign({},r.rects,{placement:r.placement})):t,Ov(typeof t!="number"?t:$v(t,ul))};function $5(e){var t,r=e.state,n=e.name,o=e.options,a=r.elements.arrow,i=r.modifiersData.popperOffsets,s=Wn(r.placement),l=hh(s),u=[Vr,fn].indexOf(s)>=0,d=u?"height":"width";if(!(!a||!i)){var f=O5(o.padding,r),h=fh(a),g=l==="y"?Ur:Vr,m=l==="y"?dn:fn,v=r.rects.reference[d]+r.rects.reference[l]-i[l]-r.rects.popper[d],x=i[l]-r.rects.reference[l],w=dl(a),S=w?l==="y"?w.clientHeight||0:w.clientWidth||0:0,y=v/2-x/2,_=f[g],R=S-h[d]-f[m],O=S/2-h[d]/2+y,b=Ss(_,O,R),P=l;r.modifiersData[n]=(t={},t[P]=b,t.centerOffset=b-O,t)}}function j5(e){var t=e.state,r=e.options,n=r.element,o=n===void 0?"[data-popper-arrow]":n;o!=null&&(typeof o=="string"&&(o=t.elements.popper.querySelector(o),!o)||Iv(t.elements.popper,o)&&(t.elements.arrow=o))}const A5={name:"arrow",enabled:!0,phase:"main",fn:$5,effect:j5,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function _i(e){return e.split("-")[1]}var L5={top:"auto",right:"auto",bottom:"auto",left:"auto"};function M5(e,t){var r=e.x,n=e.y,o=t.devicePixelRatio||1;return{x:wi(r*o)/o||0,y:wi(n*o)/o||0}}function im(e){var t,r=e.popper,n=e.popperRect,o=e.placement,a=e.variation,i=e.offsets,s=e.position,l=e.gpuAcceleration,u=e.adaptive,d=e.roundOffsets,f=e.isFixed,h=i.x,g=h===void 0?0:h,m=i.y,v=m===void 0?0:m,x=typeof d=="function"?d({x:g,y:v}):{x:g,y:v};g=x.x,v=x.y;var w=i.hasOwnProperty("x"),S=i.hasOwnProperty("y"),y=Vr,_=Ur,R=window;if(u){var O=dl(r),b="clientHeight",P="clientWidth";if(O===Qr(r)&&(O=Ko(r),bo(O).position!=="static"&&s==="absolute"&&(b="scrollHeight",P="scrollWidth")),O=O,o===Ur||(o===Vr||o===fn)&&a===As){_=dn;var E=f&&O===R&&R.visualViewport?R.visualViewport.height:O[b];v-=E-n.height,v*=l?1:-1}if(o===Vr||(o===Ur||o===dn)&&a===As){y=fn;var T=f&&O===R&&R.visualViewport?R.visualViewport.width:O[P];g-=T-n.width,g*=l?1:-1}}var I=Object.assign({position:s},u&&L5),k=d===!0?M5({x:g,y:v},Qr(r)):{x:g,y:v};if(g=k.x,v=k.y,l){var D;return Object.assign({},I,(D={},D[_]=S?"0":"",D[y]=w?"0":"",D.transform=(R.devicePixelRatio||1)<=1?"translate("+g+"px, "+v+"px)":"translate3d("+g+"px, "+v+"px, 0)",D))}return Object.assign({},I,(t={},t[_]=S?v+"px":"",t[y]=w?g+"px":"",t.transform="",t))}function z5(e){var t=e.state,r=e.options,n=r.gpuAcceleration,o=n===void 0?!0:n,a=r.adaptive,i=a===void 0?!0:a,s=r.roundOffsets,l=s===void 0?!0:s,u={placement:Wn(t.placement),variation:_i(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,im(Object.assign({},u,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:i,roundOffsets:l})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,im(Object.assign({},u,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:l})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}const N5={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:z5,data:{}};var kl={passive:!0};function F5(e){var t=e.state,r=e.instance,n=e.options,o=n.scroll,a=o===void 0?!0:o,i=n.resize,s=i===void 0?!0:i,l=Qr(t.elements.popper),u=[].concat(t.scrollParents.reference,t.scrollParents.popper);return a&&u.forEach(function(d){d.addEventListener("scroll",r.update,kl)}),s&&l.addEventListener("resize",r.update,kl),function(){a&&u.forEach(function(d){d.removeEventListener("scroll",r.update,kl)}),s&&l.removeEventListener("resize",r.update,kl)}}const H5={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:F5,data:{}};var B5={left:"right",right:"left",bottom:"top",top:"bottom"};function Ql(e){return e.replace(/left|right|bottom|top/g,function(t){return B5[t]})}var W5={start:"end",end:"start"};function sm(e){return e.replace(/start|end/g,function(t){return W5[t]})}function ph(e){var t=Qr(e),r=t.pageXOffset,n=t.pageYOffset;return{scrollLeft:r,scrollTop:n}}function mh(e){return ki(Ko(e)).left+ph(e).scrollLeft}function U5(e,t){var r=Qr(e),n=Ko(e),o=r.visualViewport,a=n.clientWidth,i=n.clientHeight,s=0,l=0;if(o){a=o.width,i=o.height;var u=Tv();(u||!u&&t==="fixed")&&(s=o.offsetLeft,l=o.offsetTop)}return{width:a,height:i,x:s+mh(e),y:l}}function V5(e){var t,r=Ko(e),n=ph(e),o=(t=e.ownerDocument)==null?void 0:t.body,a=xa(r.scrollWidth,r.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),i=xa(r.scrollHeight,r.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0),s=-n.scrollLeft+mh(e),l=-n.scrollTop;return bo(o||r).direction==="rtl"&&(s+=xa(r.clientWidth,o?o.clientWidth:0)-a),{width:a,height:i,x:s,y:l}}function gh(e){var t=bo(e),r=t.overflow,n=t.overflowX,o=t.overflowY;return/auto|scroll|overlay|hidden/.test(r+o+n)}function jv(e){return["html","body","#document"].indexOf(Vn(e))>=0?e.ownerDocument.body:ln(e)&&gh(e)?e:jv(xu(e))}function ws(e,t){var r;t===void 0&&(t=[]);var n=jv(e),o=n===((r=e.ownerDocument)==null?void 0:r.body),a=Qr(n),i=o?[a].concat(a.visualViewport||[],gh(n)?n:[]):n,s=t.concat(i);return o?s:s.concat(ws(xu(i)))}function Fd(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function Y5(e,t){var r=ki(e,!1,t==="fixed");return r.top=r.top+e.clientTop,r.left=r.left+e.clientLeft,r.bottom=r.top+e.clientHeight,r.right=r.left+e.clientWidth,r.width=e.clientWidth,r.height=e.clientHeight,r.x=r.left,r.y=r.top,r}function lm(e,t,r){return t===Pv?Fd(U5(e,r)):_a(t)?Y5(t,r):Fd(V5(Ko(e)))}function G5(e){var t=ws(xu(e)),r=["absolute","fixed"].indexOf(bo(e).position)>=0,n=r&&ln(e)?dl(e):e;return _a(n)?t.filter(function(o){return _a(o)&&Iv(o,n)&&Vn(o)!=="body"}):[]}function K5(e,t,r,n){var o=t==="clippingParents"?G5(e):[].concat(t),a=[].concat(o,[r]),i=a[0],s=a.reduce(function(l,u){var d=lm(e,u,n);return l.top=xa(d.top,l.top),l.right=yc(d.right,l.right),l.bottom=yc(d.bottom,l.bottom),l.left=xa(d.left,l.left),l},lm(e,i,n));return s.width=s.right-s.left,s.height=s.bottom-s.top,s.x=s.left,s.y=s.top,s}function Av(e){var t=e.reference,r=e.element,n=e.placement,o=n?Wn(n):null,a=n?_i(n):null,i=t.x+t.width/2-r.width/2,s=t.y+t.height/2-r.height/2,l;switch(o){case Ur:l={x:i,y:t.y-r.height};break;case dn:l={x:i,y:t.y+t.height};break;case fn:l={x:t.x+t.width,y:s};break;case Vr:l={x:t.x-r.width,y:s};break;default:l={x:t.x,y:t.y}}var u=o?hh(o):null;if(u!=null){var d=u==="y"?"height":"width";switch(a){case Si:l[u]=l[u]-(t[d]/2-r[d]/2);break;case As:l[u]=l[u]+(t[d]/2-r[d]/2);break}}return l}function Ls(e,t){t===void 0&&(t={});var r=t,n=r.placement,o=n===void 0?e.placement:n,a=r.strategy,i=a===void 0?e.strategy:a,s=r.boundary,l=s===void 0?p5:s,u=r.rootBoundary,d=u===void 0?Pv:u,f=r.elementContext,h=f===void 0?as:f,g=r.altBoundary,m=g===void 0?!1:g,v=r.padding,x=v===void 0?0:v,w=Ov(typeof x!="number"?x:$v(x,ul)),S=h===as?m5:as,y=e.rects.popper,_=e.elements[m?S:h],R=K5(_a(_)?_:_.contextElement||Ko(e.elements.popper),l,d,i),O=ki(e.elements.reference),b=Av({reference:O,element:y,placement:o}),P=Fd(Object.assign({},y,b)),E=h===as?P:O,T={top:R.top-E.top+w.top,bottom:E.bottom-R.bottom+w.bottom,left:R.left-E.left+w.left,right:E.right-R.right+w.right},I=e.modifiersData.offset;if(h===as&&I){var k=I[o];Object.keys(T).forEach(function(D){var L=[fn,dn].indexOf(D)>=0?1:-1,$=[Ur,dn].indexOf(D)>=0?"y":"x";T[D]+=k[$]*L})}return T}function J5(e,t){t===void 0&&(t={});var r=t,n=r.placement,o=r.boundary,a=r.rootBoundary,i=r.padding,s=r.flipVariations,l=r.allowedAutoPlacements,u=l===void 0?Rv:l,d=_i(n),f=d?s?om:om.filter(function(m){return _i(m)===d}):ul,h=f.filter(function(m){return u.indexOf(m)>=0});h.length===0&&(h=f);var g=h.reduce(function(m,v){return m[v]=Ls(e,{placement:v,boundary:o,rootBoundary:a,padding:i})[Wn(v)],m},{});return Object.keys(g).sort(function(m,v){return g[m]-g[v]})}function q5(e){if(Wn(e)===uh)return[];var t=Ql(e);return[sm(e),t,sm(t)]}function X5(e){var t=e.state,r=e.options,n=e.name;if(!t.modifiersData[n]._skip){for(var o=r.mainAxis,a=o===void 0?!0:o,i=r.altAxis,s=i===void 0?!0:i,l=r.fallbackPlacements,u=r.padding,d=r.boundary,f=r.rootBoundary,h=r.altBoundary,g=r.flipVariations,m=g===void 0?!0:g,v=r.allowedAutoPlacements,x=t.options.placement,w=Wn(x),S=w===x,y=l||(S||!m?[Ql(x)]:q5(x)),_=[x].concat(y).reduce(function(de,re){return de.concat(Wn(re)===uh?J5(t,{placement:re,boundary:d,rootBoundary:f,padding:u,flipVariations:m,allowedAutoPlacements:v}):re)},[]),R=t.rects.reference,O=t.rects.popper,b=new Map,P=!0,E=_[0],T=0;T<_.length;T++){var I=_[T],k=Wn(I),D=_i(I)===Si,L=[Ur,dn].indexOf(k)>=0,$=L?"width":"height",j=Ls(t,{placement:I,boundary:d,rootBoundary:f,altBoundary:h,padding:u}),A=L?D?fn:Vr:D?dn:Ur;R[$]>O[$]&&(A=Ql(A));var M=Ql(A),F=[];if(a&&F.push(j[k]<=0),s&&F.push(j[A]<=0,j[M]<=0),F.every(function(de){return de})){E=I,P=!1;break}b.set(I,F)}if(P)for(var V=m?3:1,K=function(re){var _e=_.find(function(G){var U=b.get(G);if(U)return U.slice(0,re).every(function(X){return X})});if(_e)return E=_e,"break"},le=V;le>0;le--){var xe=K(le);if(xe==="break")break}t.placement!==E&&(t.modifiersData[n]._skip=!0,t.placement=E,t.reset=!0)}}const Q5={name:"flip",enabled:!0,phase:"main",fn:X5,requiresIfExists:["offset"],data:{_skip:!1}};function cm(e,t,r){return r===void 0&&(r={x:0,y:0}),{top:e.top-t.height-r.y,right:e.right-t.width+r.x,bottom:e.bottom-t.height+r.y,left:e.left-t.width-r.x}}function um(e){return[Ur,fn,dn,Vr].some(function(t){return e[t]>=0})}function Z5(e){var t=e.state,r=e.name,n=t.rects.reference,o=t.rects.popper,a=t.modifiersData.preventOverflow,i=Ls(t,{elementContext:"reference"}),s=Ls(t,{altBoundary:!0}),l=cm(i,n),u=cm(s,o,a),d=um(l),f=um(u);t.modifiersData[r]={referenceClippingOffsets:l,popperEscapeOffsets:u,isReferenceHidden:d,hasPopperEscaped:f},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":d,"data-popper-escaped":f})}const ek={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:Z5};function tk(e,t,r){var n=Wn(e),o=[Vr,Ur].indexOf(n)>=0?-1:1,a=typeof r=="function"?r(Object.assign({},t,{placement:e})):r,i=a[0],s=a[1];return i=i||0,s=(s||0)*o,[Vr,fn].indexOf(n)>=0?{x:s,y:i}:{x:i,y:s}}function rk(e){var t=e.state,r=e.options,n=e.name,o=r.offset,a=o===void 0?[0,0]:o,i=Rv.reduce(function(d,f){return d[f]=tk(f,t.rects,a),d},{}),s=i[t.placement],l=s.x,u=s.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=l,t.modifiersData.popperOffsets.y+=u),t.modifiersData[n]=i}const nk={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:rk};function ok(e){var t=e.state,r=e.name;t.modifiersData[r]=Av({reference:t.rects.reference,element:t.rects.popper,placement:t.placement})}const ak={name:"popperOffsets",enabled:!0,phase:"read",fn:ok,data:{}};function ik(e){return e==="x"?"y":"x"}function sk(e){var t=e.state,r=e.options,n=e.name,o=r.mainAxis,a=o===void 0?!0:o,i=r.altAxis,s=i===void 0?!1:i,l=r.boundary,u=r.rootBoundary,d=r.altBoundary,f=r.padding,h=r.tether,g=h===void 0?!0:h,m=r.tetherOffset,v=m===void 0?0:m,x=Ls(t,{boundary:l,rootBoundary:u,padding:f,altBoundary:d}),w=Wn(t.placement),S=_i(t.placement),y=!S,_=hh(w),R=ik(_),O=t.modifiersData.popperOffsets,b=t.rects.reference,P=t.rects.popper,E=typeof v=="function"?v(Object.assign({},t.rects,{placement:t.placement})):v,T=typeof E=="number"?{mainAxis:E,altAxis:E}:Object.assign({mainAxis:0,altAxis:0},E),I=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,k={x:0,y:0};if(O){if(a){var D,L=_==="y"?Ur:Vr,$=_==="y"?dn:fn,j=_==="y"?"height":"width",A=O[_],M=A+x[L],F=A-x[$],V=g?-P[j]/2:0,K=S===Si?b[j]:P[j],le=S===Si?-P[j]:-b[j],xe=t.elements.arrow,de=g&&xe?fh(xe):{width:0,height:0},re=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:Dv(),_e=re[L],G=re[$],U=Ss(0,b[j],de[j]),X=y?b[j]/2-V-U-_e-T.mainAxis:K-U-_e-T.mainAxis,oe=y?-b[j]/2+V+U+G+T.mainAxis:le+U+G+T.mainAxis,ge=t.elements.arrow&&dl(t.elements.arrow),te=ge?_==="y"?ge.clientTop||0:ge.clientLeft||0:0,Ee=(D=I==null?void 0:I[_])!=null?D:0,je=A+X-Ee-te,ve=A+oe-Ee,ne=Ss(g?yc(M,je):M,A,g?xa(F,ve):F);O[_]=ne,k[_]=ne-A}if(s){var We,Re=_==="x"?Ur:Vr,st=_==="x"?dn:fn,gt=O[R],jt=R==="y"?"height":"width",At=gt+x[Re],qe=gt-x[st],J=[Ur,Vr].indexOf(w)!==-1,Ve=(We=I==null?void 0:I[R])!=null?We:0,Ke=J?At:gt-b[jt]-P[jt]-Ve+T.altAxis,Ye=J?gt+b[jt]+P[jt]-Ve-T.altAxis:qe,ze=g&&J?D5(Ke,gt,Ye):Ss(g?Ke:At,gt,g?Ye:qe);O[R]=ze,k[R]=ze-gt}t.modifiersData[n]=k}}const lk={name:"preventOverflow",enabled:!0,phase:"main",fn:sk,requiresIfExists:["offset"]};function ck(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function uk(e){return e===Qr(e)||!ln(e)?ph(e):ck(e)}function dk(e){var t=e.getBoundingClientRect(),r=wi(t.width)/e.offsetWidth||1,n=wi(t.height)/e.offsetHeight||1;return r!==1||n!==1}function fk(e,t,r){r===void 0&&(r=!1);var n=ln(t),o=ln(t)&&dk(t),a=Ko(t),i=ki(e,o,r),s={scrollLeft:0,scrollTop:0},l={x:0,y:0};return(n||!n&&!r)&&((Vn(t)!=="body"||gh(a))&&(s=uk(t)),ln(t)?(l=ki(t,!0),l.x+=t.clientLeft,l.y+=t.clientTop):a&&(l.x=mh(a))),{x:i.left+s.scrollLeft-l.x,y:i.top+s.scrollTop-l.y,width:i.width,height:i.height}}function hk(e){var t=new Map,r=new Set,n=[];e.forEach(function(a){t.set(a.name,a)});function o(a){r.add(a.name);var i=[].concat(a.requires||[],a.requiresIfExists||[]);
vendor: 4,969 bytes, line 47
47i.forEach(function(s){if(!r.has(s)){var l=t.get(s);l&&o(l)}}),n.push(a)}return e.forEach(function(a){r.has(a.name)||o(a)}),n}function pk(e){var t=hk(e);return _5.reduce(function(r,n){return r.concat(t.filter(function(o){return o.phase===n}))},[])}function mk(e){var t;return function(){return t||(t=new Promise(function(r){Promise.resolve().then(function(){t=void 0,r(e())})})),t}}function gk(e){var t=e.reduce(function(r,n){var o=r[n.name];return r[n.name]=o?Object.assign({},o,n,{options:Object.assign({},o.options,n.options),data:Object.assign({},o.data,n.data)}):n,r},{});return Object.keys(t).map(function(r){return t[r]})}var dm={placement:"bottom",modifiers:[],strategy:"absolute"};function fm(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return!t.some(function(n){return!(n&&typeof n.getBoundingClientRect=="function")})}function vk(e){e===void 0&&(e={});var t=e,r=t.defaultModifiers,n=r===void 0?[]:r,o=t.defaultOptions,a=o===void 0?dm:o;return function(s,l,u){u===void 0&&(u=a);var d={placement:"bottom",orderedModifiers:[],options:Object.assign({},dm,a),modifiersData:{},elements:{reference:s,popper:l},attributes:{},styles:{}},f=[],h=!1,g={state:d,setOptions:function(w){var S=typeof w=="function"?w(d.options):w;v(),d.options=Object.assign({},a,d.options,S),d.scrollParents={reference:_a(s)?ws(s):s.contextElement?ws(s.contextElement):[],popper:ws(l)};var y=pk(gk([].concat(n,d.options.modifiers)));return d.orderedModifiers=y.filter(function(_){return _.enabled}),m(),g.update()},forceUpdate:function(){if(!h){var w=d.elements,S=w.reference,y=w.popper;if(fm(S,y)){d.rects={reference:fk(S,dl(y),d.options.strategy==="fixed"),popper:fh(y)},d.reset=!1,d.placement=d.options.placement,d.orderedModifiers.forEach(function(T){return d.modifiersData[T.name]=Object.assign({},T.data)});for(var _=0;_<d.orderedModifiers.length;_++){if(d.reset===!0){d.reset=!1,_=-1;continue}var R=d.orderedModifiers[_],O=R.fn,b=R.options,P=b===void 0?{}:b,E=R.name;typeof O=="function"&&(d=O({state:d,options:P,name:E,instance:g})||d)}}}},update:mk(function(){return new Promise(function(x){g.forceUpdate(),x(d)})}),destroy:function(){v(),h=!0}};if(!fm(s,l))return g;g.setOptions(u).then(function(x){!h&&u.onFirstUpdate&&u.onFirstUpdate(x)});function m(){d.orderedModifiers.forEach(function(x){var w=x.name,S=x.options,y=S===void 0?{}:S,_=x.effect;if(typeof _=="function"){var R=_({state:d,name:w,instance:g,options:y}),O=function(){};f.push(R||O)}})}function v(){f.forEach(function(x){return x()}),f=[]}return g}}var yk=[H5,ak,N5,R5,nk,Q5,lk,A5,ek],bk=vk({defaultModifiers:yk});const xk="Popper";function Ck(e){return pw(xk,e)}const Sk=["anchorEl","children","direction","disablePortal","modifiers","open","placement","popperOptions","popperRef","slotProps","slots","TransitionProps","ownerState"],wk=["anchorEl","children","container","direction","disablePortal","keepMounted","modifiers","open","placement","popperOptions","popperRef","style","transition","slotProps","slots"];function kk(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 Hd(e){return typeof e=="function"?e():e}function _k(e){return e.nodeType!==void 0}const Ek=()=>ot({root:["root"]},uw(Ck)),Pk={},Rk=p.forwardRef(function(t,r){var n;const{anchorEl:o,children:a,direction:i,disablePortal:s,modifiers:l,open:u,placement:d,popperOptions:f,popperRef:h,slotProps:g={},slots:m={},TransitionProps:v}=t,x=we(t,Sk),w=p.useRef(null),S=It(w,r),y=p.useRef(null),_=It(y,h),R=p.useRef(_);un(()=>{R.current=_},[_]),p.useImperativeHandle(h,()=>y.current,[]);const O=kk(d,i),[b,P]=p.useState(O),[E,T]=p.useState(Hd(o));p.useEffect(()=>{y.current&&y.current.forceUpdate()}),p.useEffect(()=>{o&&T(Hd(o))},[o]),un(()=>{if(!E||!u)return;const $=M=>{P(M.placement)};let j=[{name:"preventOverflow",options:{altBoundary:s}},{name:"flip",options:{altBoundary:s}},{name:"onUpdate",enabled:!0,phase:"afterWrite",fn:({state:M})=>{$(M)}}];l!=null&&(j=j.concat(l)),f&&f.modifiers!=null&&(j=j.concat(f.modifiers));const A=bk(E,w.current,C({placement:O},f,{modifiers:j}));return R.current(A),()=>{A.destroy(),R.current(null)}},[E,s,l,u,f,O]);const I={placement:b};v!==null&&(I.TransitionProps=v);const k=Ek(),D=(n=m.root)!=null?n:"div",L=pv({elementType:D,externalSlotProps:g.root,externalForwardedProps:x,additionalProps:{role:"tooltip",ref:S},ownerState:t,className:k.root});return c.jsx(D,C({},L,{children:typeof a=="function"?a(I):a}))}),Cu=p.forwardRef(function(t,r){const{anchorEl:n,children:o,container:a,direction:i="ltr",disablePortal:s=!1,keepMounted:l=!1,modifiers:u,open:d,placement:f="bottom",popperOptions:h=Pk,popperRef:g,style:m,transition:v=!1,slotProps:x={},slots:w={}}=t,S=we(t,wk),[y,_]=p.useState(!0),R=()=>{_(!1)},O=()=>{_(!0)};if(!l&&!d&&(!v||y))return null;let b;if(a)b=a;else if(n){const T=Hd(n);b=T&&_k(T)?Wr(T).body:Wr(null).body}
47const P=!d&&l&&(!v||y)?"none":void 0,E=v?{in:d,onEnter:R,onExited:O}:void 0;return c.jsx(Ev,{disablePortal:s,container:b,children:c.jsx(Rk,C({anchorEl:n,direction:i,disablePortal:s,modifiers:u,ref:r,open:v?!y:d,placement:f,popperOptions:h,popperRef:g,slotProps:x,slots:w},S,{style:C({position:"fixed",top:0,left:0,display:P},m),TransitionProps:E,children:o}))})}),bc={buttonClick:"buttonClick",browserAutoFill:"browserAutoFill"},Tk=e=>{const{label:t,value:r}=e;return typeof t=="string"?t:typeof r=="string"?r:String(e)};function Ik(e,t){const{open:r}=e,{context:{selectionMode:n}}=t;if(t.type===bc.buttonClick){var o;const l=(o=e.selectedValues[0])!=null?o:Cr(null,"start",t.context);return C({},e,{open:!r,highlightedValue:r?null:l})}if(t.type===bc.browserAutoFill)return sh(t.item,e,t.context);const a=lh(e,t);switch(t.type){case Nt.keyDown:if(e.open){if(t.event.key==="Escape")return C({},a,{open:!1})}else{if(t.event.key==="ArrowDown"){var i;return C({},e,{open:!0,highlightedValue:(i=e.selectedValues[0])!=null?i:Cr(null,"start",t.context)})}if(t.event.key==="ArrowUp"){var s;return C({},e,{open:!0,highlightedValue:(s=e.selectedValues[0])!=null?s:Cr(null,"end",t.context)})}}break;case Nt.itemClick:if(n==="single")return C({},a,{open:!1});break;case Nt.blur:return C({},a,{open:!1});default:return a}return a}function Dk(e){return Array.isArray(e)?e.length===0?"":JSON.stringify(e.map(t=>t.value)):(e==null?void 0:e.value)==null?"":typeof e.value=="string"||typeof e.value=="number"?e.value:JSON.stringify(e.value)}function Ok(e){const{areOptionsEqual:t,buttonRef:r,defaultOpen:n=!1,defaultValue:o,disabled:a=!1,listboxId:i,listboxRef:s,multiple:l=!1,name:u,required:d,onChange:f,onHighlightChange:h,onOpenChange:g,open:m,options:v,getOptionAsString:x=Tk,getSerializedValue:w=Dk,value:S,componentName:y="useSelect"}=e,_=p.useRef(null),R=It(r,_),O=p.useRef(null),b=zr(i);let P;S===void 0&&o===void 0?P=[]:o!==void 0&&(l?P=o:P=o==null?[]:[o]);const E=p.useMemo(()=>{if(S!==void 0)return l?S:S==null?[]:[S]},[S,l]),{subitems:T,contextValue:I}=kv(),k=p.useMemo(()=>v!=null?new Map(v.map((fe,ye)=>[fe.value,{value:fe.value,label:fe.label,disabled:fe.disabled,ref:p.createRef(),id:`${b}_${ye}`}])):T,[v,T,b]),D=It(s,O),{getRootProps:L,active:$,focusVisible:j,rootRef:A}=Go({disabled:a,rootRef:R}),M=p.useMemo(()=>Array.from(k.keys()),[k]),F=p.useCallback(fe=>{if(t!==void 0){const ye=M.find($e=>t($e,fe));return k.get(ye)}return k.get(fe)},[k,t,M]),V=p.useCallback(fe=>{var ye;const $e=F(fe);return(ye=$e==null?void 0:$e.disabled)!=null?ye:!1},[F]),K=p.useCallback(fe=>{const ye=F(fe);return ye?x(ye):""},[F,x]),le=p.useMemo(()=>({selectedValues:E,open:m}),[E,m]),xe=p.useCallback(fe=>{var ye;return(ye=k.get(fe))==null?void 0:ye.id},[k]),de=p.useCallback((fe,ye)=>{if(l)f==null||f(fe,ye);else{var $e;f==null||f(fe,($e=ye[0])!=null?$e:null)}},[l,f]),re=p.useCallback((fe,ye)=>{h==null||h(fe,ye??null)},[h]),_e=p.useCallback((fe,ye,$e)=>{if(ye==="open"&&(g==null||g($e),$e===!1&&(fe==null?void 0:fe.type)!=="blur")){var Ge;(Ge=_.current)==null||Ge.focus()}},[g]),G=p.useCallback(fe=>{var ye,$e;return fe==null?null:(ye=($e=T.get(fe))==null?void 0:$e.ref.current)!=null?ye:null},[T]),U={getInitialState:()=>{var fe;return{highlightedValue:null,selectedValues:(fe=P)!=null?fe:[],open:n}},getItemId:xe,controlledProps:le,focusManagement:"DOM",getItemDomElement:G,itemComparer:t,isItemDisabled:V,rootRef:D,onChange:de,onHighlightChange:re,onStateChange:_e,reducerActionContext:p.useMemo(()=>({multiple:l}),[l]),items:M,getItemAsString:K,selectionMode:l?"multiple":"single",stateReducer:Ik,componentName:y},{dispatch:X,getRootProps:oe,contextValue:ge,state:{open:te,highlightedValue:Ee,selectedValues:je},rootRef:ve}=Sv(U),ne=p.useRef(te);un(()=>{if(te&&Ee!==null){var fe;const ye=(fe=F(Ee))==null?void 0:fe.ref;if(!O.current||!(ye!=null&&ye.current))return;ne.current||ye.current.focus({preventScroll:!0});const $e=O.current.getBoundingClientRect(),Ge=ye.current.getBoundingClientRect();Ge.top<$e.top?O.current.scrollTop-=$e.top-Ge.top:Ge.bottom>$e.bottom&&(O.current.scrollTop+=Ge.bottom-$e.bottom)}},[te,Ee,F]);const We=p.useCallback(fe=>F(fe),[F]),Re=fe=>ye=>{var $e;if(fe==null||($e=fe.onClick)==null||$e.call(fe,ye),!ye.defaultMuiPrevented){const Ge={type:bc.buttonClick,event:ye};X(Ge)}},st=fe=>ye=>{var $e;($e=fe.onKeyDown)==null||$e.call(fe,ye),!ye.defaultMuiPrevented&&(ye.key==="ArrowDown"||ye.key==="ArrowUp")&&(ye.preventDefault(),X({type:Nt.keyDown,key:ye.key,event:ye}))},gt=(fe={})=>({onClick:Re(fe),onKeyDown:st(fe)}),jt=(fe={})=>C({},fe,gt(fe),{role:"combobox","aria-expanded":te,"aria-controls":b}),At=(fe={})=>{const ye=_r(fe),$e=ka(jt,L);return C({},fe,$e(ye))},qe=fe=>ye=>{var $e,Ge;($e=fe.onBlur)==null||$e.call(fe,ye),!ye.defaultMuiPrevented&&((Ge=O.current)!=null&&Ge.contains(ye.relatedTarget)||ye.relatedTarget===_.current)&&(ye.defaultMuiPrevented=!0)},J=(fe={})=>({onBlur:qe(fe)}),Ve=(fe={})=>{const ye=_r(fe),$e=ka(J,oe);return C({id:b,role:"listbox","aria-multiselectable":l?"true":void 0},fe,$e(ye))};p.useDebugValue({selectedOptions:je,highlightedOption:Ee,open:te});const Ke=p.useMemo(()=>C({},ge,I),[ge,I]);let Ye;e.multiple?Ye=je:Ye=je.length>0?je[0]:null;let ze;if(l)ze=Ye.map(fe=>We(fe)).filter(fe=>fe!==void 0);else{var Te;ze=(Te=We(Ye))!=null?Te:null}const rt=fe=>ye=>{var $e;if(fe==null||($e=fe.onChange)==null||$e.call(fe,ye),ye.defaultMuiPrevented)return;const Ge=k.get(ye.target.value);ye.target.value===""?X({type:Nt.clearSelection}):Ge!==void 0&&X({type:bc.browserAutoFill,item:Ge.value,event:ye})};return{buttonActive:$,buttonFocusVisible:j,buttonRef:A,contextValue:Ke,disabled:a,dispatch:X,getButtonProps:At,getHiddenInputProps:(fe={})=>{const ye=_r(fe);return C({name:u,tabIndex:-1,"aria-hidden":!0,required:d?!0:void 0,value:w(ze),style:nS},fe,{onChange:rt(ye)})},getListboxProps:Ve,getOptionMetadata:We,listboxRef:ve,open:te,options:M,value:Ye,highlightedOption:Ee}}function $k(e){const{value:t,children:r}=e,{dispatch:n,getItemIndex:o,getItemState:a,registerItem:i,totalSubitemCount:s}=t,l=p.useMemo(()=>({dispatch:n,getItemState:a,getItemIndex:o}),[n,o,a]),u=p.useMemo(()=>({getItemIndex:o,registerItem:i,totalSubitemCount:s}),[i,o,s]);return c.jsx(ch.Provider,{value:u,children:c.jsx($a.Provider,{value:l,children:r})})}function jk(e={}){const{autoHideDuration:t=null,disableWindowBlurListener:r=!1,onClose:n,open:o,resumeHideDuration:a}
47=e,i=ms();p.useEffect(()=>{if(!o)return;function w(S){S.defaultPrevented||(S.key==="Escape"||S.key==="Esc")&&(n==null||n(S,"escapeKeyDown"))}return document.addEventListener("keydown",w),()=>{document.removeEventListener("keydown",w)}},[o,n]);const s=sn((w,S)=>{n==null||n(w,S)}),l=sn(w=>{!n||w==null||i.start(w,()=>{s(null,"timeout")})});p.useEffect(()=>(o&&l(t),i.clear),[o,t,l,i]);const u=w=>{n==null||n(w,"clickaway")},d=i.clear,f=p.useCallback(()=>{t!=null&&l(a??t*.5)},[t,a,l]),h=w=>S=>{const y=w.onBlur;y==null||y(S),f()},g=w=>S=>{const y=w.onFocus;y==null||y(S),d()},m=w=>S=>{const y=w.onMouseEnter;y==null||y(S),d()},v=w=>S=>{const y=w.onMouseLeave;y==null||y(S),f()};return p.useEffect(()=>{if(!r&&o)return window.addEventListener("focus",f),window.addEventListener("blur",d),()=>{window.removeEventListener("focus",f),window.removeEventListener("blur",d)}},[r,o,f,d]),{getRootProps:(w={})=>{const S=C({},_r(e),_r(w));return C({role:"presentation"},w,S,{onBlur:h(S),onFocus:g(S),onMouseEnter:m(S),onMouseLeave:v(S)})},onClickAway:u}}function Lv(e){const{checked:t,defaultChecked:r,disabled:n,onBlur:o,onChange:a,onFocus:i,onFocusVisible:s,readOnly:l,required:u}=e,[d,f]=ba({controlled:t,default:!!r,name:"Switch",state:"checked"}),h=P=>E=>{var T;E.nativeEvent.defaultPrevented||(f(E.target.checked),a==null||a(E),(T=P.onChange)==null||T.call(P,E))},{isFocusVisibleRef:g,onBlur:m,onFocus:v,ref:x}=ll(),[w,S]=p.useState(!1);n&&w&&S(!1),p.useEffect(()=>{g.current=w},[w,g]);const y=p.useRef(null),_=P=>E=>{var T;y.current||(y.current=E.currentTarget),v(E),g.current===!0&&(S(!0),s==null||s(E)),i==null||i(E),(T=P.onFocus)==null||T.call(P,E)},R=P=>E=>{var T;m(E),g.current===!1&&S(!1),o==null||o(E),(T=P.onBlur)==null||T.call(P,E)},O=It(x,y);return{checked:d,disabled:!!n,focusVisible:w,getInputProps:(P={})=>C({checked:t,defaultChecked:r,disabled:n,readOnly:l,ref:O,required:u,type:"checkbox",role:"switch","aria-checked":t},P,{onChange:h(P),onFocus:_(P),onBlur:R(P)}),inputRef:O,readOnly:!!l}}function hm(e){return typeof e.normalize<"u"?e.normalize("NFD").replace(/[\u0300-\u036f]/g,""):e}function Ak(e={}){const{ignoreAccents:t=!0,ignoreCase:r=!0,limit:n,matchFrom:o="any",stringify:a,trim:i=!1}=e;return(s,{inputValue:l,getOptionLabel:u})=>{let d=i?l.trim():l;r&&(d=d.toLowerCase()),t&&(d=hm(d));const f=d?s.filter(h=>{let g=(a||u)(h);return r&&(g=g.toLowerCase()),t&&(g=hm(g)),o==="start"?g.indexOf(d)===0:g.indexOf(d)>-1}):s;return typeof n=="number"?f.slice(0,n):f}}function _l(e,t){for(let r=0;r<e.length;r+=1)if(t(e[r]))return r;return-1}const Lk=Ak(),pm=5,Mk=e=>{var t;return e.current!==null&&((t=e.current.parentElement)==null?void 0:t.contains(document.activeElement))},zk=[];function Nk(e){const{unstable_isActiveElementInListbox:t=Mk,unstable_classNamePrefix:r="Mui",autoComplete:n=!1,autoHighlight:o=!1,autoSelect:a=!1,blurOnSelect:i=!1,clearOnBlur:s=!e.freeSolo,clearOnEscape:l=!1,componentName:u="useAutocomplete",defaultValue:d=e.multiple?zk:null,disableClearable:f=!1,disableCloseOnSelect:h=!1,disabled:g,disabledItemsFocusable:m=!1,disableListWrap:v=!1,filterOptions:x=Lk,filterSelectedOptions:w=!1,freeSolo:S=!1,getOptionDisabled:y,getOptionKey:_,getOptionLabel:R=B=>{var W;return(W=B.label)!=null?W:B},groupBy:O,handleHomeEndKeys:b=!e.freeSolo,id:P,includeInputInList:E=!1,inputValue:T,isOptionEqualToValue:I=(B,W)=>B===W,multiple:k=!1,onChange:D,onClose:L,onHighlightChange:$,onInputChange:j,onOpen:A,open:M,openOnFocus:F=!1,options:V,readOnly:K=!1,selectOnFocus:le=!e.freeSolo,value:xe}=e,de=zr(P);let re=R;re=B=>{const W=R(B);return typeof W!="string"?String(W):W};const _e=p.useRef(!1),G=p.useRef(!0),U=p.useRef(null),X=p.useRef(null),[oe,ge]=p.useState(null),[te,Ee]=p.useState(-1),je=o?0:-1,ve=p.useRef(je),[ne,We]=ba({controlled:xe,default:d,name:u}),[Re,st]=ba({controlled:T,default:"",name:u,state:"inputValue"}),[gt,jt]=p.useState(!1),At=p.useCallback((B,W)=>{if(!(k?ne.length<W.length:W!==null)&&!s)return;let Oe;if(k)Oe="";else if(W==null)Oe="";else{const Le=re(W);Oe=typeof Le=="string"?Le:""}Re!==Oe&&(st(Oe),j&&j(B,Oe,"reset"))},[re,Re,k,j,st,s,ne]),[qe,J]=ba({controlled:M,default:!1,name:u,state:"open"}),[Ve,Ke]=p.useState(!0),Ye=!k&&ne!=null&&Re===re(ne),ze=qe&&!K,Te=ze?x(V.filter(
vendor: 6,011 bytes, line 47
47B=>!(w&&(k?ne:[ne]).some(W=>W!==null&&I(B,W)))),{inputValue:Ye&&Ve?"":Re,getOptionLabel:re}):[],rt=uv({filteredOptions:Te,value:ne,inputValue:Re});p.useEffect(()=>{const B=ne!==rt.value;gt&&!B||S&&!B||At(null,ne)},[ne,At,gt,rt.value,S]);const Ht=qe&&Te.length>0&&!K,fe=sn(B=>{B===-1?U.current.focus():oe.querySelector(`[data-tag-index="${B}"]`).focus()});p.useEffect(()=>{k&&te>ne.length-1&&(Ee(-1),fe(-1))},[ne,k,te,fe]);function ye(B,W){if(!X.current||B<0||B>=Te.length)return-1;let ee=B;for(;;){const Oe=X.current.querySelector(`[data-option-index="${ee}"]`),Le=m?!1:!Oe||Oe.disabled||Oe.getAttribute("aria-disabled")==="true";if(Oe&&Oe.hasAttribute("tabindex")&&!Le)return ee;if(W==="next"?ee=(ee+1)%Te.length:ee=(ee-1+Te.length)%Te.length,ee===B)return-1}}const $e=sn(({event:B,index:W,reason:ee="auto"})=>{if(ve.current=W,W===-1?U.current.removeAttribute("aria-activedescendant"):U.current.setAttribute("aria-activedescendant",`${de}-option-${W}`),$&&$(B,W===-1?null:Te[W],ee),!X.current)return;const Oe=X.current.querySelector(`[role="option"].${r}-focused`);Oe&&(Oe.classList.remove(`${r}-focused`),Oe.classList.remove(`${r}-focusVisible`));let Le=X.current;if(X.current.getAttribute("role")!=="listbox"&&(Le=X.current.parentElement.querySelector('[role="listbox"]')),!Le)return;if(W===-1){Le.scrollTop=0;return}const He=X.current.querySelector(`[data-option-index="${W}"]`);if(He&&(He.classList.add(`${r}-focused`),ee==="keyboard"&&He.classList.add(`${r}-focusVisible`),Le.scrollHeight>Le.clientHeight&&ee!=="mouse"&&ee!=="touch")){const Je=He,cr=Le.clientHeight+Le.scrollTop,Dn=Je.offsetTop+Je.offsetHeight;Dn>cr?Le.scrollTop=Dn-Le.clientHeight:Je.offsetTop-Je.offsetHeight*(O?1.3:0)<Le.scrollTop&&(Le.scrollTop=Je.offsetTop-Je.offsetHeight*(O?1.3:0))}}),Ge=sn(({event:B,diff:W,direction:ee="next",reason:Oe="auto"})=>{if(!ze)return;const He=ye((()=>{const Je=Te.length-1;if(W==="reset")return je;if(W==="start")return 0;if(W==="end")return Je;const cr=ve.current+W;return cr<0?cr===-1&&E?-1:v&&ve.current!==-1||Math.abs(W)>1?0:Je:cr>Je?cr===Je+1&&E?-1:v||Math.abs(W)>1?Je:0:cr})(),ee);if($e({index:He,reason:Oe,event:B}),n&&W!=="reset")if(He===-1)U.current.value=Re;else{const Je=re(Te[He]);U.current.value=Je,Je.toLowerCase().indexOf(Re.toLowerCase())===0&&Re.length>0&&U.current.setSelectionRange(Re.length,Je.length)}}),Er=()=>{const B=(W,ee)=>{const Oe=W?re(W):"",Le=ee?re(ee):"";return Oe===Le};if(ve.current!==-1&&rt.filteredOptions&&rt.filteredOptions.length!==Te.length&&rt.inputValue===Re&&(k?ne.length===rt.value.length&&rt.value.every((W,ee)=>re(ne[ee])===re(W)):B(rt.value,ne))){const W=rt.filteredOptions[ve.current];if(W)return _l(Te,ee=>re(ee)===re(W))}return-1},Pt=p.useCallback(()=>{if(!ze)return;const B=Er();if(B!==-1){ve.current=B;return}const W=k?ne[0]:ne;if(Te.length===0||W==null){Ge({diff:"reset"});return}if(X.current){if(W!=null){const ee=Te[ve.current];if(k&&ee&&_l(ne,Le=>I(ee,Le))!==-1)return;const Oe=_l(Te,Le=>I(Le,W));Oe===-1?Ge({diff:"reset"}):$e({index:Oe});return}if(ve.current>=Te.length-1){$e({index:Te.length-1});return}$e({index:ve.current})}},[Te.length,k?!1:ne,w,Ge,$e,ze,Re,k]),br=sn(B=>{$s(X,B),B&&Pt()});p.useEffect(()=>{Pt()},[Pt]);const Wt=B=>{qe||(J(!0),Ke(!0),A&&A(B))},xt=(B,W)=>{qe&&(J(!1),L&&L(B,W))},wt=(B,W,ee,Oe)=>{if(k){if(ne.length===W.length&&ne.every((Le,He)=>Le===W[He]))return}else if(ne===W)return;D&&D(B,W,ee,Oe),We(W)},Lt=p.useRef(!1),Ae=(B,W,ee="selectOption",Oe="options")=>{let Le=ee,He=W;if(k){He=Array.isArray(ne)?ne.slice():[];const Je=_l(He,cr=>I(W,cr));Je===-1?He.push(W):Oe!=="freeSolo"&&(He.splice(Je,1),Le="removeOption")}At(B,He),wt(B,He,Le,{option:W}),!h&&(!B||!B.ctrlKey&&!B.metaKey)&&xt(B,Le),(i===!0||i==="touch"&&Lt.current||i==="mouse"&&!Lt.current)&&U.current.blur()};function Ut(B,W){if(B===-1)return-1;let ee=B;for(;;){if(W==="next"&&ee===ne.length||W==="previous"&&ee===-1)return-1;const Oe=oe.querySelector(`[data-tag-index="${ee}"]`);if(!Oe||!Oe.hasAttribute("tabindex")||Oe.disabled||Oe.getAttribute("aria-disabled")==="true")ee+=W==="next"?1:-1;else return ee}}const dt=(B,W)=>{if(!k)return;Re===""&&xt(B,"toggleInput");let ee=te;te===-1?Re===""&&W==="previous"&&(ee=ne.length-1):(ee+=W==="next"?1:-1,ee<0&&(ee=0),ee===ne.length&&(ee=-1)),ee=Ut(ee,W),Ee(ee),fe(ee)},et=B=>{_e.current=!0,st(""),j&&j(B,"","clear"),wt(B,k?[]:null,"clear")},Ne=B=>W=>{if(B.onKeyDown&&B.onKeyDown(W),!W.defaultMuiPrevented&&(te!==-1&&["ArrowLeft","ArrowRight"].indexOf(W.key)===-1&&(Ee(-1),fe(-1)),W.which!==229))switch(W.key){case"Home":ze&&b&&(W.preventDefault(),Ge({diff:"start",direction:"next",reason:"keyboard",event:W}));break;case"End":ze&&b&&(W.preventDefault(),Ge({diff:"end",direction:"previous",reason:"keyboard",event:W}));break;case"PageUp":W.preventDefault(),Ge({diff:-pm,direction:"previous",reason:"keyboard",event:W}),Wt(W);break;case"PageDown":W.preventDefault(),Ge({diff:pm,direction:"next",reason:"keyboard",event:W}),Wt(W);break;case"ArrowDown":W.preventDefault(),Ge({diff:1,direction:"next",reason:"keyboard",event:W}),Wt(W);break;case"ArrowUp":W.preventDefault(),Ge({diff:-1,direction:"previous",reason:"keyboard",event:W}),Wt(W);break;case"ArrowLeft":dt(W,"previous");break;case"ArrowRight":dt(W,"next");break;case"Enter":if(ve.current!==-1&&ze){const ee=Te[ve.current],Oe=y?y(ee):!1;if(W.preventDefault(),Oe)return;Ae(W,ee,"selectOption"),n&&U.current.setSelectionRange(U.current.value.length,U.current.value.length)}else S&&Re!==""&&Ye===!1&&(k&&W.preventDefault(),Ae(W,Re,"createOption","freeSolo"));break;case"Escape":ze?(W.preventDefault(),W.stopPropagation(),xt(W,"escape")):l&&(Re!==""||k&&ne.length>0)&&(W.preventDefault(),W.stopPropagation(),et(W));break;case"Backspace":if(k&&!K&&Re===""&&ne.length>0){const ee=te===-1?ne.length-1:te,Oe=ne.slice();Oe.splice(ee,1),wt(W,Oe,"removeOption",{option:ne[ee]})}break;case"Delete":if(k&&!K&&Re===""&&ne.length>0&&te!==-1){const ee=te,Oe=ne.slice();Oe.splice(ee,1),wt(W,Oe,"removeOption",{option:ne[ee]})}break}},Vt=B=>{jt(!0),F&&!_e.current&&Wt(B)},_o=B=>
47{if(t(X)){U.current.focus();return}jt(!1),G.current=!0,_e.current=!1,a&&ve.current!==-1&&ze?Ae(B,Te[ve.current],"blur"):a&&S&&Re!==""?Ae(B,Re,"blur","freeSolo"):s&&At(B,ne),xt(B,"blur")},Zn=B=>{const W=B.target.value;Re!==W&&(st(W),Ke(!1),j&&j(B,W,"input")),W===""?!f&&!k&&wt(B,null,"clear"):Wt(B)},N=B=>{const W=Number(B.currentTarget.getAttribute("data-option-index"));ve.current!==W&&$e({event:B,index:W,reason:"mouse"})},H=B=>{$e({event:B,index:Number(B.currentTarget.getAttribute("data-option-index")),reason:"touch"}),Lt.current=!0},Y=B=>{const W=Number(B.currentTarget.getAttribute("data-option-index"));Ae(B,Te[W],"selectOption"),Lt.current=!1},Z=B=>W=>{const ee=ne.slice();ee.splice(B,1),wt(W,ee,"removeOption",{option:ne[B]})},be=B=>{qe?xt(B,"toggleInput"):Wt(B)},Me=B=>{B.currentTarget.contains(B.target)&&B.target.getAttribute("id")!==de&&B.preventDefault()},Ue=B=>{B.currentTarget.contains(B.target)&&(U.current.focus(),le&&G.current&&U.current.selectionEnd-U.current.selectionStart===0&&U.current.select(),G.current=!1)},Ie=B=>{!g&&(Re===""||!qe)&&be(B)};let De=S&&Re.length>0;De=De||(k?ne.length>0:ne!==null);let ke=Te;return O&&(ke=Te.reduce((B,W,ee)=>{const Oe=O(W);return B.length>0&&B[B.length-1].group===Oe?B[B.length-1].options.push(W):B.push({key:ee,index:ee,group:Oe,options:[W]}),B},[])),g&>&&_o(),{getRootProps:(B={})=>C({"aria-owns":Ht?`${de}-listbox`:null},B,{onKeyDown:Ne(B),onMouseDown:Me,onClick:Ue}),getInputLabelProps:()=>({id:`${de}-label`,htmlFor:de}),getInputProps:()=>({id:de,value:Re,onBlur:_o,onFocus:Vt,onChange:Zn,onMouseDown:Ie,"aria-activedescendant":ze?"":null,"aria-autocomplete":n?"both":"list","aria-controls":Ht?`${de}-listbox`:void 0,"aria-expanded":Ht,autoComplete:"off",ref:U,autoCapitalize:"none",spellCheck:"false",role:"combobox",disabled:g}),getClearProps:()=>({tabIndex:-1,type:"button",onClick:et}),getPopupIndicatorProps:()=>({tabIndex:-1,type:"button",onClick:be}),getTagProps:({index:B})=>C({key:B,"data-tag-index":B,tabIndex:-1},!K&&{onDelete:Z(B)}),getListboxProps:()=>({role:"listbox",id:`${de}-listbox`,"aria-labelledby":`${de}-label`,ref:br,onMouseDown:B=>{B.preventDefault()}}),getOptionProps:({index:B,option:W})=>{var ee;const Oe=(k?ne:[ne]).some(He=>He!=null&&I(W,He)),Le=y?y(W):!1;return{key:(ee=_==null?void 0:_(W))!=null?ee:re(W),tabIndex:-1,role:"option",id:`${de}-option-${B}`,onMouseMove:N,onClick:Y,onTouchStart:H,"data-option-index":B,"aria-disabled":Le,"aria-selected":Oe}},id:de,inputValue:Re,value:ne,dirty:De,expanded:ze&&oe,popupOpen:ze,focused:gt||te!==-1,anchorEl:oe,setAnchorEl:ge,focusedTag:te,groupedOptions:ke}}const Fk=["className","elementType","ownerState","externalForwardedProps","getSlotOwnerState","internalForwardedProps"],Hk=["component","slots","slotProps"],Bk=["component"];function he(e,t){const{className:r,elementType:n,ownerState:o,externalForwardedProps:a,getSlotOwnerState:i,internalForwardedProps:s}=t,l=we(t,Fk),{component:u,slots:d={[e]:void 0},slotProps:f={[e]:void 0}}=a,h=we(a,Hk),g=d[e]||n,m=hv(f[e],o),v=fv(C({className:r},l,{externalForwardedProps:e==="root"?h:void 0,externalSlotProps:m})),{props:{component:x},internalRef:w}=v,S=we(v.props,Bk),y=It(w,m==null?void 0:m.ref,t.ref),_=i?i(S):{},R=C({},o,_),O=e==="root"?x||u:x,b=dv(g,C({},e==="root"&&!u&&!d[e]&&s,e!=="root"&&!d[e]&&s,S,O&&{as:O},{ref:y}),R);return Object.keys(_).forEach(P=>{delete b[P]}),[g,b]}function Wk(e){return it("MuiListItem",e)}const xc=ct("MuiListItem",["root","startAction","endAction","nested","nesting","sticky","colorPrimary","colorNeutral","colorDanger","colorSuccess","colorWarning","colorContext","variantPlain","variantSoft","variantOutlined","variantSolid"]),Cc=p.createContext(!1),fl=p.createContext(!1),Mv=p.createContext(!1),zv=p.createContext(void 0),Nv=p.createContext(void 0),Su=p.createContext(void 0),Uk=["component","className","children","nested","sticky","variant","color","startAction","endAction","role","slots","slotProps"],Vk=e=>{const{sticky:t,nested:r,nesting:n,variant:o,color:a}=e,i={root:["root",r&&"nested",n&&"nesting",t&&"sticky",a&&`color${ae(a)}`,o&&`variant${ae(o)}`],startAction:["startAction"],endAction:["endAction"]};return ot(i,Wk,{})},Yk=Q("li")(({theme:e,ownerState:t})=>{var r;return[!t.nested&&{"--ListItemButton-marginInline":"calc(-1 * var(--ListItem-paddingLeft)) calc(-1 * var(--ListItem-paddingRight))","--ListItemButton-marginBlock":"calc(-1 * var(--ListItem-paddingY))",alignItems:"center",gap:"var(--ListItem-gap)",marginInline:"var(--ListItem-marginInline)"},t.nested&&{"--NestedList-marginRight":"calc(-1 * var(--ListItem-paddingRight))","--NestedList-marginLeft":"calc(-1 * var(--ListItem-paddingLeft))","--NestedListItem-paddingLeft":"calc(var(--ListItem-paddingLeft) + var(--List-nestedInsetStart))","--ListItemButton-marginBlock":"0px","--ListItemButton-marginInline":"calc(-1 * var(--ListItem-paddingLeft)) calc(-1 * var(--ListItem-paddingRight))","--ListItem-marginInline":"calc(-1 * var(--ListItem-paddingLeft)) calc(-1 * var(--ListItem-paddingRight))",flexDirection:"column"},C({"--unstable_actionRadius":"calc(var(--ListItem-radius) - var(--variant-borderWidth, 0px))"},t.startAction&&{"--unstable_startActionWidth":"2rem"},t.endAction&&{"--unstable_endActionWidth":"2.5rem"},{boxSizing:"border-box",borderRadius:"var(--ListItem-radius)",display:"var(--_ListItem-display)","&:not([hidden])":{"--_ListItem-display":"var(--_List-markerDisplay, flex)"},flex:"none",listStyleType:"var(--_List-markerType, disc)",position:"relative",paddingBlockStart:t.nested?0:"var(--ListItem-paddingY)",paddingBlockEnd:t.nested?0:"var(--ListItem-paddingY)",paddingInlineStart:"var(--ListItem-paddingLeft)",paddingInlineEnd:"var(--ListItem-paddingRight)"},t["data-first-child"]===void 0&&C({},t.row?{marginInlineStart:"var(--List-gap)"}:{marginBlockStart:"var(--List-gap)"}),t.row&&t.wrap&&{marginInlineStart:"var(--List-gap)",marginBlockStart:"var(--List-gap)"},{minBlockSize:"var(--ListItem-minHeight)"},t.sticky&&{position:"sticky",top:"var(--ListItem-stickyTop, 0px)",zIndex:1,background:`var(--ListItem-stickyBackgroun
47d, ${e.vars.palette.background.body})`},{[`.${xc.nested} > &`]:{"--_ListItem-display":"flex"}}),(r=e.variants[t.variant])==null?void 0:r[t.color]]}),Gk=Q(Yk,{name:"JoyListItem",slot:"Root",overridesResolver:(e,t)=>t.root})({}),Kk=Q("div",{name:"JoyListItem",slot:"StartAction",overridesResolver:(e,t)=>t.startAction})(({ownerState:e})=>({display:"inherit",position:"absolute",top:e.nested?"calc(var(--ListItem-minHeight) / 2)":"50%",left:0,transform:"translate(var(--ListItem-startActionTranslateX), -50%)",zIndex:1})),Jk=Q("div",{name:"JoyListItem",slot:"StartAction",overridesResolver:(e,t)=>t.startAction})(({ownerState:e})=>({display:"inherit",position:"absolute",top:e.nested?"calc(var(--ListItem-minHeight) / 2)":"50%",right:0,transform:"translate(var(--ListItem-endActionTranslateX), -50%)"})),Tr=p.forwardRef(function(t,r){const n=ut({props:t,name:"JoyListItem"}),o=p.useContext(Su),a=p.useContext(zv),i=p.useContext(fl),s=p.useContext(Mv),l=p.useContext(Cc),{component:u,className:d,children:f,nested:h=!1,sticky:g=!1,variant:m="plain",color:v="neutral",startAction:x,endAction:w,role:S,slots:y={},slotProps:_={}}=n,R=we(n,Uk),[O,b]=p.useState(""),[P,E]=(a==null?void 0:a.split(":"))||["",""],T=u||(P&&!P.match(/^(ul|ol|menu)$/)?"div":void 0);let I=o==="menu"?"none":void 0;a&&(I={menu:"none",menubar:"none",group:"presentation"}[E]),S&&(I=S);const k=C({},n,{sticky:g,startAction:x,endAction:w,row:i,wrap:s,variant:m,color:v,nesting:l,nested:h,component:T,role:I}),D=Vk(k),L=C({},R,{component:T,slots:y,slotProps:_}),[$,j]=he("root",{additionalProps:{role:I},ref:r,className:Bt(D.root,d),elementType:Gk,externalForwardedProps:L,ownerState:k}),[A,M]=he("startAction",{className:D.startAction,elementType:Kk,externalForwardedProps:L,ownerState:k}),[F,V]=he("endAction",{className:D.endAction,elementType:Jk,externalForwardedProps:L,ownerState:k});return c.jsx(Nv.Provider,{value:b,children:c.jsx(Cc.Provider,{value:h?O||!0:!1,children:c.jsxs($,C({},j,{children:[x&&c.jsx(A,C({},M,{children:x})),p.Children.map(f,(K,le)=>{var xe;return p.isValidElement(K)?p.cloneElement(K,C({},le===0&&{"data-first-child":""},Hi(K,["ListItem"])&&{component:((xe=K.props)==null?void 0:xe.component)||"div"})):K}),w&&c.jsx(F,C({},V,{children:w}))]}))})})});Tr.muiName="ListItem";const vh={"--NestedList-marginRight":"0px","--NestedList-marginLeft":"0px","--NestedListItem-paddingLeft":"var(--ListItem-paddingX)","--ListItemButton-marginBlock":"0px","--ListItemButton-marginInline":"0px","--ListItem-marginBlock":"0px","--ListItem-marginInline":"0px"};function wu(e){const{children:t,nested:r,row:n=!1,wrap:o=!1}=e,a=c.jsx(fl.Provider,{value:n,children:c.jsx(Mv.Provider,{value:o,children:p.Children.map(t,(i,s)=>p.isValidElement(i)?p.cloneElement(i,C({},s===0&&{"data-first-child":""},s===p.Children.count(t)-1&&{"data-last-child":""})):i)})});return r===void 0?a:c.jsx(Cc.Provider,{value:r,children:a})}const ja=({theme:e,ownerState:t},r)=>{let n={};function o(a){if(typeof a=="function"){const i=a(e);o(i)}else Array.isArray(a)?a.forEach(i=>{typeof i!="boolean"&&o(i)}):typeof a=="object"&&(n=C({},n,a))}return t.sx&&(o(t.sx),r.forEach(a=>{const i=n[a];if(typeof i=="string"||typeof i=="number")if(a==="borderRadius")if(typeof i=="number")n[a]=`${i}px`;else{var s;n[a]=((s=e.vars)==null?void 0:s.radius[i])||i}else["p","padding","m","margin"].indexOf(a)!==-1&&typeof i=="number"?n[a]=e.spacing(i):n[a]=i;else typeof i=="function"?n[a]=i(e):n[a]=void 0})),n};function qk(e){return it("MuiList",e)}const Xk=ct("MuiList",["root","nesting","scoped","sizeSm","sizeMd","sizeLg","colorPrimary","colorNeutral","colorDanger","colorSuccess","colorWarning","colorContext","variantPlain","variantOutlined","variantSoft","variantSolid","horizontal","vertical"]),yh=p.createContext(void 0),Qk=["component","className","children","size","orientation","wrap","variant","color","role","slots","slotProps"],Zk=e=>{const{variant:t,color:r,size:n,nesting:o,orientation:a,instanceSize:i}=e,s={root:["root",a,t&&`variant${ae(t)}`,r&&`color${ae(r)}`,!i&&!o&&n&&`size${ae(n)}`,i&&`size${ae(i)}`,o&&"nesting"]};return ot(s,qk,{})},ku=Q("ul")(({theme:e,ownerState:t})=>{var r;const{p:n,padding:o,borderRadius:a}=ja({theme:e,ownerState:t},["p","padding","borderRadius"]);function i(s){return s==="sm"?{"--ListDivider-gap":"0.25rem","--ListItem-minHeight":"2rem","--ListItem-paddingY":"3px","--ListItem-paddingX":t.marker?"3px":"0.5rem","--ListItem-gap":"0.5rem","--ListItemDecorator-size":t.orientation==="horizontal"?"1.5rem":"2rem","--Icon-fontSize":e.vars.fontSize.lg}:s==="md"?{"--ListDivider-gap":"0.375rem","--ListItem-minHeight":"2.25rem","--ListItem-paddingY":"0.25rem","--ListItem-paddingX":t.marker?"0.25rem":"0.75rem","--ListItem-gap":"0.625rem","--ListItemDecorator-size":t.orientation==="horizontal"?"1.75rem":"2.5rem","--Icon-fontSize":e.vars.fontSize.xl}:s==="lg"?{"--ListDivider-gap":"0.5rem","--ListItem-minHeight":"2.75rem","--ListItem-paddingY":"0.375rem","--ListItem-paddingX":t.marker?"0.5rem":"1rem","--ListItem-gap":"0.75rem","--ListItemDecorator-size":t.orientation==="horizontal"?"2.25rem":"3rem","--Icon-fontSize":e.vars.fontSize.xl2}:{}}return[t.nesting&&C({},i(t.instanceSize),{"--ListItem-paddingRight":"var(--ListItem-paddingX)","--ListItem-paddingLeft":"var(--NestedListItem-paddingLeft)","--ListItemButton-marginBlock":"0px","--ListItemButton-marginInline":"0px","--ListItem-marginBlock":"0px","--ListItem-marginInline":"0px",padding:0},t.marker&&{paddingInlineStart:"calc(3ch - var(--_List-markerDeduct, 0px))"},{marginInlineStart:"var(--NestedList-marginLeft)",marginInlineEnd:"var(--NestedList-marginRight)",marginBlockStart:"var(--List-gap)",marginBlockEnd:"initial"}),!t.nesting&&C({},i(t.size),{"--List-gap":"0px","--List-nestedInsetStart":"0px","--ListItem-paddingLeft":"var(--ListItem-paddingX)","--ListItem-paddingRight":"var(--ListItem-paddingX)"},t.marker&&{"--_List-markerDeduct":"1ch"},{"--unstable_List-childRadius":"calc(max(var(--List-radius) - var(--List-padding), min(var(--List-padding) / 2, var(--List-radius) / 2)) - var(--variant-borderWidth, 0px))","--ListItem-radius":"var(--unstable_List-childRadius)","--ListItem-startActionTranslateX":"calc(0.5 * var(--ListItem-paddingLeft))","--ListItem-endActionTranslateX":"calc(-0.5 * var(--ListItem-paddingRight))",margin:"initial"},e.typography[`body-${t.size}`],t.orientation==="horizontal"?C({},t.wrap?{padding:"var(--List-padding)",marginInlineStart:"calc(-1 * var(--List-gap))",marginBlockStart:"calc(-1 * var(--List-gap))"}:{paddingInline:"var(--List-padding, var(--ListDivider-gap))",paddingBlock:"var(--List-padding)"}):{paddingBlock:"var(--List-padding, var(--ListDivider-gap))",paddingInline:"var(--List-padding)"},t.marker&&{paddingInlineStart:"3ch"}),C({boxSizing:"border-box",borderRadius:"var(--List-radius)",listStyle:"none",display:"flex",flexDirection:t.orientation==="horizontal"?"row":"column"},t.wrap&&{flexWrap:"wrap"},t.marker&&{"--_List-markerDisplay":"list-item","--_List-markerType":t.marker,lineHeight:"calc(var(--ListItem-minHeight) - 2 * var(--ListItem-paddingY))"},{flexGrow:1,position:"relative"},(r=e.variants[t.variant])==null?void 0:r[t.color],{"--unstable_List-borderWidth":"var(--variant-borderWidth, 0px)"},a!==void 0&&{"--List-radius":a},n!==void 0&&{"--List-padding":n},o!==void 0&&{"--List-padding":o})]}),e_=Q(ku,{name:"JoyList",slot:"Root",overridesResolver:(e,t)=>t.root})({}),Un=p.forwardRef(function(t,r){var n;const o=p.useContext(Cc),a=p.useContext(Su),i=p.useContext(yh),s=ut({props:t,name:"JoyList"}),{component:l,className:u,children:d,size:f,orientation:h="vertical",wrap:g=!1,variant:m="plain",color:v="neutral",role:x,slots:w={},slotProps:S={}}=s,y=we(s,Qk),_=f||((n=t.size)!=null?n:"md");let R;a&&(R="group"),i&&(R="presentation"),x&&(R=x);const O=C({},s,{instanceSize:t.size,size:_,nesting:o,orientation:h,wrap:g,variant:m,color:v,role:R}),b=Zk(O),P=C({},y,{component:l,slots:w,slotProps:S}),[E,T]=he("root",{ref:r,className:Bt(b.root,u),elementType:e_,externalForwardedProps:P,ownerState:O,additionalProps:{as:l,role:R,"aria-labelledby":typeof o=="str
47ing"?o:void 0}});return c.jsx(E,C({},T,{children:c.jsx(zv.Provider,{value:`${typeof l=="string"?l:""}:${R||""}`,children:c.jsx(wu,{row:h==="horizontal",wrap:g,children:d})})}))});function t_(e){return it("MuiListItemButton",e)}const Zl=ct("MuiListItemButton",["root","horizontal","vertical","colorPrimary","colorNeutral","colorDanger","colorSuccess","colorWarning","colorContext","focusVisible","disabled","selected","variantPlain","variantSoft","variantOutlined","variantSolid"]),bh=p.createContext("horizontal"),r_=["children","className","action","component","orientation","role","selected","color","variant","slots","slotProps"],n_=e=>{const{color:t,disabled:r,focusVisible:n,focusVisibleClassName:o,selected:a,variant:i}=e,s={root:["root",r&&"disabled",n&&"focusVisible",t&&`color${ae(t)}`,a&&"selected",i&&`variant${ae(i)}`]},l=ot(s,t_,{});return n&&o&&(l.root+=` ${o}`),l},_u=Q("div")(({theme:e,ownerState:t})=>{var r,n,o,a,i,s;return C({"--Icon-margin":"initial","--Icon-color":t.color!=="neutral"||t.variant==="solid"?"currentColor":e.vars.palette.text.icon,WebkitTapHighlightColor:"transparent",boxSizing:"border-box",position:"relative",font:"inherit",display:"flex",flexDirection:"row",alignItems:"center",alignSelf:"stretch",gap:"var(--ListItem-gap)"},t.orientation==="vertical"&&{flexDirection:"column",justifyContent:"center"},{textAlign:"initial",textDecoration:"initial",backgroundColor:"initial",cursor:"pointer",marginInline:"var(--ListItemButton-marginInline)",marginBlock:"var(--ListItemButton-marginBlock)"},t["data-first-child"]===void 0&&{marginInlineStart:t.row?"var(--List-gap)":void 0,marginBlockStart:t.row?void 0:"var(--List-gap)"},{paddingBlock:"calc(var(--ListItem-paddingY) - var(--variant-borderWidth, 0px))",paddingInlineStart:"calc(var(--ListItem-paddingLeft) + var(--ListItem-startActionWidth, var(--unstable_startActionWidth, 0px)))",paddingInlineEnd:"calc(var(--ListItem-paddingRight) + var(--ListItem-endActionWidth, var(--unstable_endActionWidth, 0px)))",minBlockSize:"var(--ListItem-minHeight)",border:"1px solid transparent",borderRadius:"var(--ListItem-radius)",flex:"var(--unstable_ListItem-flex, none)",fontSize:"inherit",lineHeight:"inherit",minInlineSize:0,[e.focus.selector]:C({},e.focus.default,{zIndex:1})},(r=e.variants[t.variant])==null?void 0:r[t.color],{"&:active":(n=e.variants[`${t.variant}Active`])==null?void 0:n[t.color],[`.${xc.root} > &`]:{"--unstable_ListItem-flex":"1 0 0%"},[`&.${Zl.selected}`]:C({},(o=e.variants[`${t.variant}Active`])==null?void 0:o[t.color],{"--Icon-color":"currentColor"}),[`&:not(.${Zl.selected}, [aria-selected="true"])`]:{"&:hover":(a=e.variants[`${t.variant}Hover`])==null?void 0:a[t.color],"&:active":(i=e.variants[`${t.variant}Active`])==null?void 0:i[t.color]},[`&.${Zl.disabled}`]:C({},(s=e.variants[`${t.variant}Disabled`])==null?void 0:s[t.color])})}),o_=Q(_u,{name:"JoyListItemButton",slot:"Root",overridesResolver:(e,t)=>t.root})(({ownerState:e,theme:t})=>C({},!e.row&&{[`&.${Zl.selected}`]:{fontWeight:t.vars.fontWeight.md}})),El=p.forwardRef(function(t,r){const n=ut({props:t,name:"JoyListItemButton"}),o=p.useContext(fl),{children:a,className:i,action:s,component:l="div",orientation:u="horizontal",role:d,selected:f=!1,color:h="neutral",variant:g="plain",slots:m={},slotProps:v={}}=n,x=we(n,r_),w=p.useRef(null),S=It(w,r),{focusVisible:y,setFocusVisible:_,getRootProps:R}=Go(C({},n,{rootRef:S}));p.useImperativeHandle(s,()=>({focusVisible:()=>{var I;_(!0),(I=w.current)==null||I.focus()}}),[_]);const O=C({},n,{component:l,color:h,focusVisible:y,orientation:u,row:o,selected:f,variant:g}),b=n_(O),P=C({},x,{component:l,slots:m,slotProps:v}),[E,T]=he("root",{ref:r,className:Bt(b.root,i),elementType:o_,externalForwardedProps:P,ownerState:O,getSlotProps:R});return c.jsx(bh.Provider,{value:u,children:c.jsx(E,C({},T,{role:d??T.role,children:a}))})});function a_(e){return it("MuiSvgIcon",e)}ct("MuiSvgIcon",["root","colorInherit","colorPrimary","colorNeutral","colorDanger","colorSuccess","colorWarning","fontSizeInherit","fontSizeXs","fontSizeSm","fontSizeMd","fontSizeLg","fontSizeXl","fontSizeXl2","fontSizeXl3","fontSizeXl4","sizeSm","sizeMd","sizeLg"]);const i_=["children","className","color","component","fontSize","htmlColor","inheritViewBox","titleAccess","viewBox","size","slots","slotProps"],s_=e=>{const{color:t,size:r,fontSize:n}=e,o={root:["root",t&&t!=="inherit"&&`color${ae(t)}`,r&&`size${ae(r)}`,n&&`fontSize${ae(n)}`]};return ot(o,a_,{})},mm={sm:"xl",md:"xl2",lg:"xl3"},l_=Q("svg",{name:"JoySvgIcon",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e,ownerState:t})=>{var r;return C({},t.instanceSize&&{"--Icon-fontSize":e.vars.fontSize[mm[t.instanceSize]]},t.instanceFontSize&&t.instanceFontSize!=="inherit"&&{"--Icon-fontSize":e.vars.fontSize[t.instanceFontSize]},{userSelect:"none",margin:"var(--Icon-margin)",width:"1em",height:"1em",display:"inline-block",fill:t.hasSvgAsChild?void 0:"currentColor",flexShrink:0,fontSize:`var(--Icon-fontSize, ${e.vars.fontSize[mm[t.size]]||"unset"})`},t.fontSize&&t.fontSize!=="inherit"&&{fontSize:`var(--Icon-fontSize, ${e.fontSize[t.fontSize]})`},!t.htmlColor&&C({color:`var(--Icon-color, ${e.vars.palette.text.icon})`},t.color==="inherit"&&{color:"inherit"},t.color!=="inherit"&&e.vars.palette[t.color]&&{color:`rgba(${(r=e.vars.palette[t.color])==null?void 0:r.mainChannel} / 1)`}))}),Sc=p.forwardRef(function(t,r){const n=ut({props:t,name:"JoySvgIcon"}),{children:o,className:a,color:i,component:s="svg",fontSize:l,htmlColor:u,inheritViewBox:d=!1,titleAccess:f,viewBox:h="0 0 24 24",size:g="md",slots:m={},slotProps:v={}}=n,x=we(n,i_),w=p.isValidElement(o)&&o.type==="svg",S=C({},n,{color:i,component:s,size:g,instanceSize:t.size,fontSize:l,instanceFontSize:t.fontSize,inheritViewBox:d,viewB
vendor: 14,984 bytes, line 47
47ox:h,hasSvgAsChild:w}),y=s_(S),_=C({},x,{component:s,slots:m,slotProps:v}),[R,O]=he("root",{ref:r,className:Bt(y.root,a),elementType:l_,externalForwardedProps:_,ownerState:S,additionalProps:C({color:u,focusable:!1},f&&{role:"img"},!f&&{"aria-hidden":!0},!d&&{viewBox:h},w&&o.props)});return c.jsxs(R,C({},O,{children:[w?o.props.children:o,f?c.jsx("title",{children:f}):null]}))});function Aa(e,t){function r(n,o){return c.jsx(Sc,C({"data-testid":`${t}Icon`,ref:o},n,{children:e}))}return r.muiName=Sc.muiName,p.memo(p.forwardRef(r))}const xh=e=>t=>`--${e?`${e}-`:""}${t.replace(/^--/,"")}`,Ei="data-skip-inverted-colors",Fv=`& :not([${Ei}], [${Ei}] *)`,Hv=e=>{var t,r,n,o,a,i,s,l,u,d,f,h,g,m,v,x,w,S,y,_,R,O;const b=xh(e.cssVarPrefix);return{"--variant-plainColor":"var(--variant-plainColor) !important","--variant-plainHoverColor":"var(--variant-plainHoverColor) !important","--variant-plainHoverBg":"var(--variant-plainHoverBg) !important","--variant-plainActiveBg":"var(--variant-plainActiveBg) !important","--variant-plainDisabledColor":"var(--variant-plainDisabledColor) !important","--variant-outlinedColor":"var(--variant-outlinedColor) !important","--variant-outlinedBorder":"var(--variant-outlinedBorder) !important","--variant-outlinedHoverColor":"var(--variant-outlinedHoverColor) !important","--variant-outlinedHoverBorder":"var(--variant-outlinedHoverBorder) !important","--variant-outlinedHoverBg":"var(--variant-outlinedHoverBg) !important","--variant-outlinedActiveBg":"var(--variant-outlinedActiveBg) !important","--variant-outlinedDisabledColor":"var(--variant-outlinedDisabledColor) !important","--variant-outlinedDisabledBorder":"var(--variant-outlinedDisabledBorder) !important","--variant-softColor":"var(--variant-softColor) !important","--variant-softHoverColor":"var(--variant-softHoverColor) !important","--variant-softBg":"var(--variant-softBg) !important","--variant-softHoverBg":"var(--variant-softHoverBg) !important","--variant-softActiveBg":"var(--variant-softActiveBg) !important","--variant-softActiveColor":"var(--variant-softActiveColor) !important","--variant-softDisabledColor":"var(--variant-softDisabledColor) !important","--variant-softDisabledBg":"var(--variant-softDisabledBg) !important","--variant-solidColor":"var(--variant-solidColor) !important","--variant-solidBg":"var(--variant-solidBg) !important","--variant-solidHoverBg":"var(--variant-solidHoverBg) !important","--variant-solidActiveBg":"var(--variant-solidActiveBg) !important","--variant-solidDisabledColor":"var(--variant-solidDisabledColor) !important","--variant-solidDisabledBg":"var(--variant-solidDisabledBg) !important","--Badge-ringColor":"var(--Badge-ringColor) !important",colorScheme:"unset",[e.getColorSchemeSelector("light")]:{[b("--palette-focusVisible")]:`${(t=e.colorSchemes.light)==null?void 0:t.palette.focusVisible} !important`,[b("--palette-background-body")]:`${(r=e.colorSchemes.light)==null?void 0:r.palette.background.body} !important`,[b("--palette-background-surface")]:`${(n=e.colorSchemes.light)==null?void 0:n.palette.background.surface} !important`,[b("--palette-background-popup")]:`${(o=e.colorSchemes.light)==null?void 0:o.palette.background.popup} !important`,[b("--palette-background-level1")]:`${(a=e.colorSchemes.light)==null?void 0:a.palette.background.level1} !important`,[b("--palette-background-level2")]:`${(i=e.colorSchemes.light)==null?void 0:i.palette.background.level2} !important`,[b("--palette-background-level3")]:`${(s=e.colorSchemes.light)==null?void 0:s.palette.background.level3} !important`,[b("--palette-text-primary")]:`${(l=e.colorSchemes.light)==null?void 0:l.palette.text.primary} !important`,[b("--palette-text-secondary")]:`${(u=e.colorSchemes.light)==null?void 0:u.palette.text.secondary} !important`,[b("--palette-text-tertiary")]:`${(d=e.colorSchemes.light)==null?void 0:d.palette.text.tertiary} !important`,[b("--palette-divider")]:`${(f=e.colorSchemes.light)==null?void 0:f.palette.divider} !important`},[e.getColorSchemeSelector("dark")]:{[b("--palette-focusVisible")]:`${(h=e.colorSchemes.dark)==null?void 0:h.palette.focusVisible} !important`,[b("--palette-background-body")]:`${(g=e.colorSchemes.dark)==null?void 0:g.palette.background.body} !important`,[b("--palette-background-surface")]:`${(m=e.colorSchemes.dark)==null?void 0:m.palette.background.surface} !important`,[b("--palette-background-popup")]:`${(v=e.colorSchemes.dark)==null?void 0:v.palette.background.popup} !important`,[b("--palette-background-level1")]:`${(x=e.colorSchemes.dark)==null?void 0:x.palette.background.level1} !important`,[b("--palette-background-level2")]:`${(w=e.colorSchemes.dark)==null?void 0:w.palette.background.level2} !important`,[b("--palette-background-level3")]:`${(S=e.colorSchemes.dark)==null?void 0:S.palette.background.level3} !important`,[b("--palette-text-primary")]:`${(y=e.colorSchemes.dark)==null?void 0:y.palette.text.primary} !important`,[b("--palette-text-secondary")]:`${(_=e.colorSchemes.dark)==null?void 0:_.palette.text.secondary} !important`,[b("--palette-text-tertiary")]:`${(R=e.colorSchemes.dark)==null?void 0:R.palette.text.tertiary} !important`,[b("--palette-divider")]:`${(O=e.colorSchemes.dark)==null?void 0:O.palette.divider} !important`}}};function c_(e){return e.theme!==void 0}const hl=e=>t=>{const r=c_(t)?t.theme:t,n=oh(r.cssVarPrefix),o=xh(r.cssVarPrefix),a=i=>{const s=i.split("-");return n(i,r.palette[s[1]][s[2]])};return{[Fv]:{"--Badge-ringColor":a(`palette-${e}-solidBg`),"--Icon-color":"currentColor",[`${r.getColorSchemeSelector("light")}, ${r.getColorSchemeSelector("dark")}`]:{colorScheme:"dark",[o("--palette-focusVisible")]:a(`palette-${e}-200`),[o("--palette-background-body")]:"rgba(0 0 0 / 0.1)",[o("--palette-background-surface")]:"rgba(0 0 0 / 0.06)",[o("--palette-background-popup")]:a(`palette-${e}-700`),[o("--palette-background-level1")]:`rgba(${a(`palette-${e}-darkChannel`)} / 0.2)`,[o("--palette-background-level2")]:`rgba(${a(`palette-${e}-darkChannel`)} / 0.36)`,[o("--palette-background-level3")]:`rgba(${a(`palette-${e}-darkChannel`)} / 0.6)`,[o("--palette-text-primary")]:a("palette-common-white"),[o("--palette-text-secondary")]:a(`palette-${e}-200`),[o("--palette-text-tertiary")]:a(`palette-${e}-300`),[o("--palette-text-icon")]:a(`palette-${e}-200`),[o("--palette-divider")]:`rgba(${a(`palette-${e}-lightChannel`)} / 0.32)`,"--variant-plainColor":a(`palette-${e}-50`),"--variant-plainHoverColor":"#fff","--variant-plainHoverBg":`rgba(${a(`palette-${e}-lightChannel`)} / 0.12)`,"--variant-plainActiveBg":`rgba(${a(`palette-${e}-lightChannel`)} / 0.32)`,"--variant-plainDisabledColor":`rgba(${a(`palette-${e}-lightChannel`)} / 0.72)`,"--variant-outlinedColor":a(`palette-${e}-50`),"--variant-outlinedBorder":`rgba(${a(`palette-${e}-lightChannel`)} / 0.5)`,"--variant-outlinedHoverColor":"#fff","--variant-outlinedHoverBorder":a(`palette-${e}-300`),"--variant-outlinedHoverBg":`rgba(${a(`palette-${e}-lightChannel`)} / 0.12)`,"--variant-outlinedActiveBg":`rgba(${a(`palette-${e}-lightChannel`)} / 0.32)`,"--variant-outlinedDisabledColor":`rgba(${a(`palette-${e}-lightChannel`)} / 0.72)`,"--variant-outlinedDisabledBorder":"rgba(255 255 255 / 0.2)","--variant-softColor":a("palette-common-white"),"--variant-softHoverColor":a("palette-common-white"),"--variant-softBg":`rgba(${a(`palette-${e}-lightChannel`)} / 0.24)`,"--variant-softHoverBg":`rgba(${a(`palette-${e}-lightChannel`)} / 0.36)`,"--variant-softActiveBg":`rgba(${a(`palette-${e}-lightChannel`)} / 0.16)`,"--variant-softActiveColor":"#fff","--variant-softDisabledColor":`rgba(${a(`palette-${e}-lightChannel`)} / 0.72)`,"--variant-softDisabledBg":`rgba(${a(`palette-${e}-lightChannel`)} / 0.1)`,"--variant-solidColor":a(`palette-${e}-${e==="neutral"?"600":"500"}`),"--variant-solidBg":a("palette-common-white"),"--variant-solidHoverBg":a("palette-common-white"),"--variant-solidActiveBg":a(`palette-${e}-100`),"--variant-solidDisabledColor":`rgba(${a(`palette-${e}-lightChannel`)} / 0.72)`,"--variant-solidDisabledBg":`rgba(${a(`palette-${e}-lightChannel`)} / 0.1)`}},[`&, & [${Ei}]`]:Hv(r)}},pl=e=>t=>{const{theme:r=t}=t,n=oh(r.cssVarPrefix),o=xh(r.cssVarPrefix),a=i=>{const s=i.split("-");return n(i,r.palette[s[1]][s[2]])};return{[Fv]:{"--Badge-ringColor":a(`palette-${e}-softBg`),"--Icon-color":"currentColor",[r.getColorSchemeSelector("dark")]:{[o("--palette-focusVisible")]:a(`palette-${e}-300`),[o("--palette-background-body")]:`rgba(${a(`palette-${e}-mainChannel`)} / 0.1)`,[o("--palette-background-surface")]:`rgba(${a(`palette-${e}-mainChannel`)} / 0.08)`,[o("--palette-background-level1")]:`rgba(${a(`palette-${e}-mainChannel`)} / 0.2)`,[o("--palette-background-level2")]:`rgba(${a(`palette-${e}-mainChannel`)} / 0.4)`,[o("--palette-background-level3")]:`rgba(${a(`palette-${e}-mainChannel`)} / 0.6)`,[o("--palette-text-primary")]:a(`palette-${e}-100`),[o("--palette-text-secondary")]:`rgba(${a(`palette-${e}-lightChannel`)} / 0.72)`,[o("--palette-text-tertiary")]:`rgba(${a(`palette-${e}-lightChannel`)} / 0.6)`,[o("--palette-text-icon")]:`rgba(${a(`palette-${e}-lightChannel`)} / 0.6)`,[o("--palette-divider")]:`rgba(${a(`palette-${e}-lightChannel`)} / 0.2)`,"--variant-plainColor":`rgba(${a(`palette-${e}-lightChannel`)} / 1)`,"--variant-plainHoverColor":a(`palette-${e}-50`),"--variant-plainHoverBg":`rgba(${a(`palette-${e}-mainChannel`)} / 0.16)`,"--variant-plainActiveBg":`rgba(${a(`palette-${e}-mainChannel`)} / 0.32)`,"--variant-plainDisabledColor":`rgba(${a(`palette-${e}-mainChannel`)} / 0.72)`,"--variant-outlinedColor":`rgba(${a(`palette-${e}-lightChannel`)} / 1)`,"--variant-outlinedHoverColor":a(`palette-${e}-50`),"--variant-outlinedBg":"initial","--variant-outlinedBorder":`rgba(${a(`palette-${e}-mainChannel`)} / 0.4)`,"--variant-outlinedHoverBorder":a(`palette-${e}-600`),"--variant-outlinedHoverBg":`rgba(${a(`palette-${e}-mainChannel`)} / 0.16)`,"--variant-outlinedActiveBg":`rgba(${a(`palette-${e}-mainChannel`)} / 0.32)`,"--variant-outlinedDisabledColor":`rgba(${a(`palette-${e}-mainChannel`)} / 0.72)`,"--variant-outlinedDisabledBorder":`rgba(${a(`palette-${e}-mainChannel`)} / 0.2)`,"--variant-softColor":a(`palette-${e}-200`),"--variant-softBg":`rgba(${a(`palette-${e}-mainChannel`)} / 0.24)`,"--variant-softHoverColor":"#fff","--variant-softHoverBg":`rgba(${a(`palette-${e}-mainChannel`)} / 0.32)`,"--variant-softActiveBg":`rgba(${a(`palette-${e}-mainChannel`)} / 0.48)`,"--variant-softDisabledColor":`rgba(${a(`palette-${e}-mainChannel`)} / 0.72)`,"--variant-softDisabledBg":`rgba(${a(`palette-${e}-mainChannel`)} / 0.12)`,"--variant-solidColor":"#fff","--variant-solidBg":a(`palette-${e}-500`),"--variant-solidHoverColor":"#fff","--variant-solidHoverBg":a(`palette-${e}-600`),"--variant-solidActiveBg":a(`palette-${e}-600`),"--variant-solidDisabledColor":`rgba(${a(`palette-${e}-mainChannel`)} / 0.72)`,"--variant-solidDisabledBg":`rgba(${a(`palette-${e}-mainChannel`)} / 0.12)`},[r.getColorSchemeSelector("light")]:{[o("--palette-focusVisible")]:a(`palette-${e}-500`),[o("--palette-background-body")]:`rgba(${a(`palette-${e}-mainChannel`)} / 0.1)`,[o("--palette-background-surface")]:`rgba(${a(`palette-${e}-mainChannel`)} / 0.08)`,[o("--palette-background-level1")]:`rgba(${a(`palette-${e}-mainChannel`)} / 0.2)`,[o("--palette-background-level2")]:`rgba(${a(`palette-${e}-mainChannel`)} / 0.32)`,[o("--palette-background-level3")]:`rgba(${a(`palette-${e}-mainChannel`)} / 0.48)`,[o("--palette-text-primary")]:a(`palette-${e}-700`),[o("--palette-text-secondary")]:`rgba(${a(`palette-${e}-darkChannel`)} / 0.8)`,[o("--palette-text-tertiary")]:`rgba(${a(`palette-${e}-darkChannel`)} / 0.68)`,[o("--palette-text-icon")]:a(`palette-${e}-500`),[o("--palette-divider")]:`rgba(${a(`palette-${e}-mainChannel`)} / 0.32)`,"--variant-plainColor":`rgba(${a(`palette-${e}-darkChannel`)} / 0.8)`,"--variant-plainHoverColor":`rgba(${a(`palette-${e}-darkChannel`)} / 1)`,"--variant-plainHoverBg":`rgba(${a(`palette-${e}-mainChannel`)} / 0.12)`,"--variant-plainActiveBg":`rgba(${a(`palette-${e}-mainChannel`)} / 0.24)`,"--variant-plainDisabledColor":`rgba(${a(`palette-${e}-mainChannel`)} / 0.6)`,"--variant-outlinedColor":`rgba(${a(`palette-${e}-mainChannel`)} / 1)`,"--variant-outlinedBorder":`rgba(${a(`palette-${e}-mainChannel`)} / 0.4)`,"--variant-outlinedHoverColor":a(`palette-${e}-600`),"--variant-outlinedHoverBorder":a(`palette-${e}-300`),"--variant-outlinedHoverBg":`rgba(${a(`palette-${e}-mainChannel`)} / 0.12)`,"--variant-outlinedActiveBg":`rgba(${a(`palette-${e}-mainChannel`)} / 0.24)`,"--variant-outlinedDisabledColor":`rgba(${a(`palette-${e}-mainChannel`)} / 0.6)`,"--variant-outlinedDisabledBorder":`rgba(${a(`palette-${e}-mainChannel`)} / 0.12)`,"--variant-softColor":a(`palette-${e}-600`),"--variant-softBg":`rgba(${a(`palette-${e}-lightChannel`)} / 0.8)`,"--variant-softHoverColor":a(`palette-${e}-700`),"--variant-softHoverBg":a(`palette-${e}-200`),"--variant-softActiveBg":a(`palette-${e}-300`),"--variant-softDisabledColor":`rgba(${a(`palette-${e}-mainChannel`)} / 0.6)`,"--variant-softDisabledBg":`rgba(${a(`palette-${e}-mainChannel`)} / 0.08)`,"--variant-solidColor":a("palette-common-white"),"--variant-solidBg":a(`palette-${e}-${e==="neutral"?"700":"500"}`),"--variant-solidHoverColor":a("palette-common-white"),"--variant-solidHoverBg":a(`palette-${e}-600`),"--variant-solidActiveBg":a(`palette-${e}-600`),"--variant-solidDisabledColor":`rgba(${a(`palette-${e}-mainChannel`)} / 0.6)`,"--variant-solidDisabledBg":`rgba(${a(`palette-${e}-mainChannel`)} / 0.08)`}},[`&, & [${Ei}]`]:Hv(r)}};function u_(e){return it("MuiAlert",e)}ct("MuiAlert",["root","startDecorator","endDecorator","colorPrimary","colorDanger","colorNeutral","colorSuccess","colorWarning","colorContext","sizeSm","sizeMd","sizeLg","variantPlain","variantOutlined","variantSoft","variantSolid"]);const d_=["children","className","color","invertedColors","role","variant","size","startDecorator","endDecorator","component","slots","slotProps"],f_=e=>{const{variant:t,color:r,size:n}=e,o={root:["root",n&&`size${ae(n)}`,r&&`color${ae(r)}`,t&&`variant${ae(t)}`],startDecorator:["startDecorator"],endDecorator:["endDecorator"]};return ot(o,u_,{})},h_=Q("div",{name:"JoyAlert",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e,ownerState:t})=>{var r;const{p:n,padding:o,borderRadius:a}=ja({theme:e,ownerState:t},["p","padding","borderRadius"]);return[C({"--Alert-radius":e.vars.radius.sm,"--Alert-decoratorChildRadius":"max((var(--Alert-radius) - var(--variant-borderWidth, 0px)) - var(--Alert-padding), min(var(--Alert-padding) + var(--variant-borderWidth, 0px), var(--Alert-radius) / 2))","--Button-minHeight":"var(--Alert-decoratorChildHeight)","--IconButton-size":"var(--Alert-decoratorChildHeight)","--Button-radius":"var(--Alert-decoratorChildRadius)","--IconButton-radius":"var(--Alert-decoratorChildRadius)","--Icon-color":"currentColor"},t.size==="sm"&&{"--Alert-padding":"0.5rem","--Alert-decoratorChildHeight":"1.5rem","--Icon-fontSize":e.vars.fontSize.xl,gap:"0.5rem"}
47,t.size==="md"&&{"--Alert-padding":"0.75rem","--Alert-decoratorChildHeight":"2rem","--Icon-fontSize":e.vars.fontSize.xl,gap:"0.625rem"},t.size==="lg"&&{"--Alert-padding":"1rem","--Alert-decoratorChildHeight":"2.375rem","--Icon-fontSize":e.vars.fontSize.xl2,gap:"0.875rem"},{backgroundColor:e.vars.palette.background.surface,display:"flex",position:"relative",alignItems:"center",padding:"var(--Alert-padding)",borderRadius:"var(--Alert-radius)"},e.typography[`body-${{sm:"xs",md:"sm",lg:"md"}[t.size]}`],{fontWeight:e.vars.fontWeight.md},t.variant==="solid"&&t.color&&t.invertedColors&&hl(t.color)(e),t.variant==="soft"&&t.color&&t.invertedColors&&pl(t.color)(e),(r=e.variants[t.variant])==null?void 0:r[t.color]),n!==void 0&&{"--Alert-padding":n},o!==void 0&&{"--Alert-padding":o},a!==void 0&&{"--Alert-radius":a}]}),p_=Q("span",{name:"JoyAlert",slot:"StartDecorator",overridesResolver:(e,t)=>t.startDecorator})({display:"inherit",flex:"none"}),m_=Q("span",{name:"JoyAlert",slot:"EndDecorator",overridesResolver:(e,t)=>t.endDecorator})({display:"inherit",flex:"none",marginLeft:"auto"}),g_=p.forwardRef(function(t,r){const n=ut({props:t,name:"JoyAlert"}),{children:o,className:a,color:i="neutral",invertedColors:s=!1,role:l="alert",variant:u="soft",size:d="md",startDecorator:f,endDecorator:h,component:g,slots:m={},slotProps:v={}}=n,x=we(n,d_),w=C({},n,{color:i,invertedColors:s,variant:u,size:d}),S=f_(w),y=C({},x,{component:g,slots:m,slotProps:v}),[_,R]=he("root",{ref:r,className:Bt(S.root,a),elementType:h_,externalForwardedProps:y,ownerState:w,additionalProps:{role:l}}),[O,b]=he("startDecorator",{className:S.startDecorator,elementType:p_,externalForwardedProps:y,ownerState:w}),[P,E]=he("endDecorator",{className:S.endDecorator,elementType:m_,externalForwardedProps:y,ownerState:w});return c.jsxs(_,C({},R,{children:[f&&c.jsx(O,C({},b,{children:f})),o,h&&c.jsx(P,C({},E,{children:h}))]}))}),v_=Aa(c.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"),y_=Aa(c.jsx("path",{d:"M7 10l5 5 5-5z"}),"ArrowDropDown"),Bv=p.createContext(void 0);function oa(e,t){let r=t,n=e;return e==="outlined"&&(r="neutral",n="plain"),e==="plain"&&(r="neutral"),{variant:n,color:r}}function Ch(e,t,r=!1){const n=p.useContext(Bv),[o,a]=typeof n=="string"?n.split(":"):[],i=oa(o||void 0,a||void 0);return i.variant=e||i.variant,i.color=t||(r?a:i.color),i}function Eu({children:e,color:t,variant:r}){return c.jsx(Bv.Provider,{value:`${r||""}:${t||""}`,children:e})}function b_(e){return it("MuiIconButton",e)}const c7=ct("MuiIconButton",["root","colorPrimary","colorNeutral","colorDanger","colorSuccess","colorWarning","colorContext","variantPlain","variantOutlined","variantSoft","variantSolid","focusVisible","disabled","sizeSm","sizeMd","sizeLg","loading","loadingIndicator"]),Wv=p.createContext({}),Uv=p.createContext(void 0);function x_(e){return it("MuiCircularProgress",e)}ct("MuiCircularProgress",["root","determinate","svg","track","progress","colorPrimary","colorNeutral","colorDanger","colorSuccess","colorWarning","colorContext","sizeSm","sizeMd","sizeLg","variantPlain","variantOutlined","variantSoft","variantSolid"]);let C_=e=>e,gm;const S_=["color","backgroundColor"],w_=["children","className","color","size","variant","thickness","determinate","value","component","slots","slotProps"],k_=Qc({"0%":{transform:"rotate(-90deg)"},"100%":{transform:"rotate(270deg)"}}),__=e=>{const{determinate:t,color:r,variant:n,size:o}=e,a={root:["root",t&&"determinate",r&&`color${ae(r)}`,n&&`variant${ae(n)}`,o&&`size${ae(o)}`],svg:["svg"],track:["track"],progress:["progress"]};return ot(a,x_,{})};function Na(e,t){return`var(--CircularProgress-${e}Thickness, var(--CircularProgress-thickness, ${t}))`}const E_=Q("span",{name:"JoyCircularProgress",slot:"Root",overridesResolver:(e,t)=>t.root})(({ownerState:e,theme:t})=>{var r,n,o,a;const i=((r=t.variants[e.variant])==null?void 0:r[e.color])||{},{color:s,backgroundColor:l}=i,u=we(i,S_);return C({"--Icon-fontSize":"calc(0.4 * var(--_root-size))","--CircularProgress-trackColor":l,"--CircularProgress-progressColor":s,"--CircularProgress-percent":e.value,"--CircularProgress-linecap":"round"},e.size==="sm"&&{"--_root-size":"var(--CircularProgress-size, 24px)","--_track-thickness":Na("track","3px"),"--_progress-thickness":Na("progress","3px")},e.instanceSize==="sm"&&{"--CircularProgress-size":"24px"}
vendor: 5,270 bytes, lines 47-50
47,e.size==="md"&&{"--_track-thickness":Na("track","6px"),"--_progress-thickness":Na("progress","6px"),"--_root-size":"var(--CircularProgress-size, 40px)"},e.instanceSize==="md"&&{"--CircularProgress-size":"40px"},e.size==="lg"&&{"--_track-thickness":Na("track","8px"),"--_progress-thickness":Na("progress","8px"),"--_root-size":"var(--CircularProgress-size, 64px)"},e.instanceSize==="lg"&&{"--CircularProgress-size":"64px"},e.thickness&&{"--_track-thickness":`${e.thickness}px`,"--_progress-thickness":`${e.thickness}px`},{"--_thickness-diff":"calc(var(--_track-thickness) - var(--_progress-thickness))","--_inner-size":"calc(var(--_root-size) - 2 * var(--variant-borderWidth, 0px))","--_outlined-inset":"max(var(--_track-thickness), var(--_progress-thickness))",width:"var(--_root-size)",height:"var(--_root-size)",borderRadius:"var(--_root-size)",margin:"var(--CircularProgress-margin)",boxSizing:"border-box",display:"inline-flex",justifyContent:"center",alignItems:"center",flexShrink:0,position:"relative",color:s},e.children&&{fontFamily:t.vars.fontFamily.body,fontWeight:t.vars.fontWeight.md,fontSize:"calc(0.2 * var(--_root-size))"},u,e.variant==="outlined"&&{"&::before":C({content:'""',display:"block",position:"absolute",borderRadius:"inherit",top:"var(--_outlined-inset)",left:"var(--_outlined-inset)",right:"var(--_outlined-inset)",bottom:"var(--_outlined-inset)"},u)},e.variant==="soft"&&{"--CircularProgress-trackColor":t.variants.soft.neutral.backgroundColor,"--CircularProgress-progressColor":(n=t.variants.solid)==null?void 0:n[e.color].backgroundColor},e.variant==="solid"&&{"--CircularProgress-trackColor":(o=t.variants.softHover)==null?void 0:o[e.color].backgroundColor,"--CircularProgress-progressColor":(a=t.variants.solid)==null?void 0:a[e.color].backgroundColor})}),P_=Q("svg",{name:"JoyCircularProgress",slot:"Svg",overridesResolver:(e,t)=>t.svg})({width:"inherit",height:"inherit",display:"inherit",boxSizing:"inherit",position:"absolute",top:"calc(-1 * var(--variant-borderWidth, 0px))",left:"calc(-1 * var(--variant-borderWidth, 0px))"}),R_=Q("circle",{name:"JoyCircularProgress",slot:"track",overridesResolver:(e,t)=>t.track})({cx:"50%",cy:"50%",r:"calc(var(--_inner-size) / 2 - var(--_track-thickness) / 2 + min(0px, var(--_thickness-diff) / 2))",fill:"transparent",strokeWidth:"var(--_track-thickness)",stroke:"var(--CircularProgress-trackColor)"}),T_=Q("circle",{name:"JoyCircularProgress",slot:"progress",overridesResolver:(e,t)=>t.progress})({"--_progress-radius":"calc(var(--_inner-size) / 2 - var(--_progress-thickness) / 2 - max(0px, var(--_thickness-diff) / 2))","--_progress-length":"calc(2 * 3.1415926535 * var(--_progress-radius))",cx:"50%",cy:"50%",r:"var(--_progress-radius)",fill:"transparent",strokeWidth:"var(--_progress-thickness)",stroke:"var(--CircularProgress-progressColor)",strokeLinecap:"var(--CircularProgress-linecap, round)",strokeDasharray:"var(--_progress-length)",strokeDashoffset:"calc(var(--_progress-length) - var(--CircularProgress-percent) * var(--_progress-length) / 100)",transformOrigin:"center",transform:"rotate(-90deg)"},({ownerState:e})=>!e.determinate&&Wf(gm||(gm=C_` 48 animation: var(--CircularProgress-circulation, 0.8s linear 0s infinite normal none running) 49 ${0}; 50 `),k_)),Vv=p.forwardRef(function(t,r){const n=ut({props:t,name:"JoyCircularProgress"}),{children:o,className:a,color:i="primary",size:s="md",variant:l="soft",thickness:u,determinate:d=!1,value:f=d?0:25,component:h,slots:g={},slotProps:m={}}=n,v=we(n,w_),x=C({},n,{color:i,size:s,variant:l,thickness:u,value:f,determinate:d,instanceSize:t.size}),w=__(x),S=C({},v,{component:h,slots:g,slotProps:m}),[y,_]=he("root",{ref:r,className:Bt(w.root,a),elementType:E_,externalForwardedProps:S,ownerState:x,additionalProps:C({role:"progressbar",style:{"--CircularProgress-percent":f}},f&&d&&{"aria-valuenow":Math.round(typeof f=="number"?f:Number(f||0))})}),[R,O]=he("svg",{className:w.svg,elementType:P_,externalForwardedProps:S,ownerState:x}),[b,P]=he("track",{className:w.track,elementType:R_,externalForwardedProps:S,ownerState:x}),[E,T]=he("progress",{className:w.progress,elementType:T_,externalForwardedProps:S,ownerState:x});return c.jsxs(y,C({},_,{children:[c.jsxs(R,C({},O,{children:[c.jsx(b,C({},P)),c.jsx(E,C({},T))]})),o]}))}),I_=["children","action","component","color","disabled","variant","loading","loadingIndicator","size","slots","slotProps"],D_=e=>{const{color:t,disabled:r,focusVisible:n,focusVisibleClassName:o,size:a,variant:i,loading:s}=e,l={root:["root",r&&"disabled",n&&"focusVisible",i&&`variant${ae(i)}`,t&&`color${ae(t)}`,a&&`size${ae(a)}`,s&&"loading"],loadingIndicator:["loadingIndicator"]},u=ot(l,b_,{});return n&&o&&(u.root+=` ${o}`),u},Pu=Q("button")(({theme:e,ownerState:t})=>{var r,n,o,a;return[C({"--Icon-margin":"initial","--Icon-color":t.color!=="neutral"||t.variant==="solid"?"currentColor":e.vars.palette.text.icon},t.instanceSize&&{"--IconButton-size":{sm:"2rem",md:"2.25rem",lg:"2.75rem"}[t.instanceSize]},t.size==="sm"&&{"--Icon-fontSize":"calc(var(--IconButton-size, 2rem) / 1.6)","--CircularProgress-size":"20px","--CircularProgress-thickness":"2px",minWidth:"var(--IconButton-size, 2rem)",minHeight:"var(--IconButton-size, 2rem)",fontSize:e.vars.fontSize.sm,paddingInline:"2px"}
vendor: 9,790 bytes, line 50
50,t.size==="md"&&{"--Icon-fontSize":"calc(var(--IconButton-size, 2.25rem) / 1.5)","--CircularProgress-size":"20px","--CircularProgress-thickness":"2px",minWidth:"var(--IconButton-size, 2.25rem)",minHeight:"var(--IconButton-size, 2.25rem)",fontSize:e.vars.fontSize.md,paddingInline:"0.25rem"},t.size==="lg"&&{"--Icon-fontSize":"calc(var(--IconButton-size, 2.75rem) / 1.571)","--CircularProgress-size":"28px","--CircularProgress-thickness":"4px",minWidth:"var(--IconButton-size, 2.75rem)",minHeight:"var(--IconButton-size, 2.75rem)",fontSize:e.vars.fontSize.lg,paddingInline:"0.375rem"},{WebkitTapHighlightColor:"transparent",paddingBlock:0,fontFamily:e.vars.fontFamily.body,fontWeight:e.vars.fontWeight.md,margin:"var(--IconButton-margin)",borderRadius:`var(--IconButton-radius, ${e.vars.radius.sm})`,border:"none",boxSizing:"border-box",backgroundColor:"transparent",cursor:"pointer",display:"inline-flex",alignItems:"center",justifyContent:"center",position:"relative",[e.focus.selector]:C({"--Icon-color":"currentColor"},e.focus.default)}),C({},(r=e.variants[t.variant])==null?void 0:r[t.color],{"&:hover":{"@media (hover: hover)":C({"--Icon-color":"currentColor"},(n=e.variants[`${t.variant}Hover`])==null?void 0:n[t.color])},'&:active, &[aria-pressed="true"]':C({"--Icon-color":"currentColor"},(o=e.variants[`${t.variant}Active`])==null?void 0:o[t.color]),"&:disabled":(a=e.variants[`${t.variant}Disabled`])==null?void 0:a[t.color]})]}),O_=Q(Pu,{name:"JoyIconButton",slot:"Root",overridesResolver:(e,t)=>t.root})({}),$_=Q("span",{name:"JoyIconButton",slot:"LoadingIndicator",overridesResolver:(e,t)=>t.loadingIndicator})(({theme:e,ownerState:t})=>{var r,n;return C({display:"inherit",position:"absolute",left:"50%",transform:"translateX(-50%)",color:(r=e.variants[t.variant])==null||(r=r[t.color])==null?void 0:r.color},t.disabled&&{color:(n=e.variants[`${t.variant}Disabled`])==null||(n=n[t.color])==null?void 0:n.color})}),dr=p.forwardRef(function(t,r){var n;const o=ut({props:t,name:"JoyIconButton"}),{children:a,action:i,component:s="button",color:l="neutral",disabled:u,variant:d="plain",loading:f=!1,loadingIndicator:h,size:g="md",slots:m={},slotProps:v={}}=o,x=we(o,I_),w=p.useContext(Wv),S=p.useContext(Uv),y=t.variant||w.variant||d,_=t.size||w.size||g,R=t.color||w.color||l,O=(n=t.loading||t.disabled)!=null?n:w.disabled||f||u,b=p.useRef(null),P=It(b,r),{focusVisible:E,setFocusVisible:T,getRootProps:I}=Go(C({},o,{disabled:O,rootRef:P})),k=h??c.jsx(Vv,{color:R,thickness:{sm:2,md:3,lg:4}[_]||3});p.useImperativeHandle(i,()=>({focusVisible:()=>{var le;T(!0),(le=b.current)==null||le.focus()}}),[T]);const D=C({},o,{component:s,color:R,disabled:O,variant:y,loading:f,size:_,focusVisible:E,instanceSize:t.size}),L=D_(D),$=le=>{var xe;let de=o.onClick;if(typeof v.root=="function"?de=v.root(D).onClick:v.root&&(de=v.root.onClick),(xe=de)==null||xe(le),S){var re;(re=S.onClick)==null||re.call(S,le,o.value)}};let j=o["aria-pressed"];typeof v.root=="function"?j=v.root(D)["aria-pressed"]:v.root&&(j=v.root["aria-pressed"]),S!=null&&S.value&&(Array.isArray(S.value)?j=S.value.indexOf(o.value)!==-1:j=S.value===o.value);const A=C({},x,{component:s,slots:m,slotProps:v}),[M,F]=he("root",{ref:r,className:L.root,elementType:O_,getSlotProps:I,externalForwardedProps:A,ownerState:D,additionalProps:{onClick:$,"aria-pressed":j}}),[V,K]=he("loadingIndicator",{className:L.loadingIndicator,elementType:$_,externalForwardedProps:A,ownerState:D});return c.jsx(M,C({},F,{children:f?c.jsx(V,C({},K,{children:k})):a}))});dr.muiName="IconButton";function j_(e){return it("MuiChip",e)}const Bd=ct("MuiChip",["root","clickable","colorPrimary","colorNeutral","colorDanger","colorSuccess","colorWarning","colorContext","disabled","endDecorator","focusVisible","label","labelSm","labelMd","labelLg","sizeSm","sizeMd","sizeLg","startDecorator","variantPlain","variantSolid","variantSoft","variantOutlined"]),Yv=p.createContext({disabled:void 0,variant:void 0,color:void 0}),A_=["children","className","color","onClick","disabled","size","variant","startDecorator","endDecorator","component","slots","slotProps"],L_=e=>{const{disabled:t,size:r,color:n,clickable:o,variant:a,focusVisible:i}=e,s={root:["root",t&&"disabled",n&&`color${ae(n)}`,r&&`size${ae(r)}`,a&&`variant${ae(a)}`,o&&"clickable"],action:["action",t&&"disabled",i&&"focusVisible"],label:["label",r&&`label${ae(r)}`],startDecorator:["startDecorator"],endDecorator:["endDecorator"]};return ot(s,j_,{})},M_=Q("div",{name:"JoyChip",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e,ownerState:t})=>{var r,n,o;const a=(r=e.variants[t.variant])==null?void 0:r[t.color],{borderRadius:i}=ja({theme:e,ownerState:t},["borderRadius"]);return[C({"--Chip-decoratorChildOffset":"min(calc(var(--Chip-paddingInline) - (var(--_Chip-minHeight) - 2 * var(--variant-borderWidth, 0px) - var(--Chip-decoratorChildHeight)) / 2), var(--Chip-paddingInline))","--Chip-decoratorChildRadius":"max(var(--_Chip-radius) - var(--variant-borderWidth, 0px) - var(--_Chip-paddingBlock), min(var(--_Chip-paddingBlock) + var(--variant-borderWidth, 0px), var(--_Chip-radius) / 2))","--Chip-deleteRadius":"var(--Chip-decoratorChildRadius)","--Chip-deleteSize":"var(--Chip-decoratorChildHeight)","--Avatar-radius":"var(--Chip-decoratorChildRadius)","--Avatar-size":"var(--Chip-decoratorChildHeight)","--Icon-margin":"initial","--Icon-color":"currentColor","--unstable_actionRadius":"var(--_Chip-radius)"},t.size==="sm"&&{"--Chip-paddingInline":"0.375rem","--Chip-decoratorChildHeight":"calc(var(--_Chip-minHeight) - 2 * var(--variant-borderWidth))","--Icon-fontSize":e.vars.fontSize.sm,"--_Chip-minHeight":"var(--Chip-minHeight, 1.25rem)",gap:"3px"},t.size==="md"&&{"--Chip-paddingInline":"0.5rem","--Chip-decoratorChildHeight":"calc(var(--_Chip-minHeight) - 0.25rem - 2 * var(--variant-borderWidth))","--Icon-fontSize":e.vars.fontSize.md,"--_Chip-minHeight":"var(--Chip-minHeight, 1.5rem)",gap:"0.25rem"},t.size==="lg"&&{"--Chip-paddingInline":"0.75rem","--Chip-decoratorChildHeight":"calc(var(--_Chip-minHeight) - 0.375rem - 2 * var(--variant-borderWidth))","--Icon-fontSize":e.vars.fontSize.lg,"--_Chip-minHeight":"var(--Chip-minHeight, 1.75rem)",gap:"0.375rem"},{"--_Chip-radius":"var(--Chip-radius, 1.5rem)","--_Chip-paddingBlock":"max((var(--_Chip-minHeight) - 2 * var(--variant-borderWidth, 0px) - var(--Chip-decoratorChildHeight)) / 2, 0px)",minHeight:"var(--_Chip-minHeight)",maxWidth:"max-content",paddingInline:"var(--Chip-paddingInline)",borderRadius:"var(--_Chip-radius)",position:"relative",display:"inline-flex",alignItems:"center",justifyContent:"center",whiteSpace:"nowrap",textDecoration:"none",verticalAlign:"middle",boxSizing:"border-box"},e.typography[`body-${{sm:"xs",md:"sm",lg:"md"}[t.size]}`],{fontWeight:e.vars.fontWeight.md,[`&.${Bd.disabled}`]:{color:(n=e.variants[`${t.variant}Disabled`])==null||(n=n[t.color])==null?void 0:n.color}}),...t.clickable?[{"--variant-borderWidth":"0px",color:a==null?void 0:a.color}]:[C({backgroundColor:e.vars.palette.background.surface},a,{[`&.${Bd.disabled}`]:(o=e.variants[`${t.variant}Disabled`])==null?void 0:o[t.color]})],i!==void 0&&{"--_Chip-radius":i}]}),z_=Q("span",{name:"JoyChip",slot:"Label",overridesResolver:(e,t)=>t.label})(({ownerState:e})=>C({display:"inline-block",overflow:"hidden",textOverflow:"ellipsis",order:1,minInlineSize:0,flexGrow:1},e.clickable&&{zIndex:1,pointerEvents:"none"})),N_=Q("button",{name:"JoyChip",slot:"Action",overridesResolver:(e,t)=>t.action})(({theme:e,ownerState:t})=>{var r,n,o,a;return[{"--Icon-color":t.color!=="neutral"||t.variant==="solid"?"currentColor":e.vars.palette.text.icon,position:"absolute",zIndex:0,top:0,left:0,bottom:0,right:0,width:"100%",border:"none",cursor:"pointer",padding:"initial",margin:"initial",backgroundColor:"initial",textDecoration:"none",borderRadius:"inherit",[e.focus.selector]:e.focus.default},C({backgroundColor:e.vars.palette.background.surface},(r=e.variants[t.variant])==null?void 0:r[t.color]),{"&:hover":{"@media (hover: hover)":(n=e.variants[`${t.variant}Hover`])==null?void 0:n[t.color]}},{"&:active":(o=e.variants[`${t.variant}Active`])==null?void 0:o[t.color]},{[`&.${Bd.disabled}`]:(a=e.variants[`${t.variant}Disabled`])==null?void 0:a[t.color]}]}),F_=Q("span",{name:"JoyChip",slot:"StartDecorator",overridesResolver:(e,t)=>t.startDecorator})({"--Avatar-marginInlineStart":"calc(var(--Chip-decoratorChildOffset) * -1)","--IconButton-margin":"0 calc(-1 * var(--Chip-paddingInline) / 3) 0 calc(var(--Chip-decoratorChildOffset) * -1)","--Icon-margin":"0 0 0 calc(var(--Chip-paddingInline) / -4)",display:"inherit",order:0,zIndex:1,pointerEvents:"none"}),H_=Q("span",{name:"JoyChip",slot:"EndDecorator",overridesResolver:(e,t)=>t.endDecorator})({"--IconButton-margin":"0 calc(var(--Chip-decoratorChildOffset) * -1) 0 calc(-1 * var(--Chip-paddingInline) / 3)","--Icon-margin":"0 calc(var(--Chip-paddingInline) / -4) 0 0",display:"inherit",order:2,zIndex:1,pointerEvents:"none"}),Kr=p.forwardRef(function(t,r){const n=ut({props:t,name:"JoyChip"}),{children:o,className:a,color:i="neutral",onClick:s,disabled:l=!1,size:u="md",variant:d="soft",startDecorator:f,endDecorator:h,component:g,slots:m={},slotProps:v={}}=n,x=we(n,A_),w=!!s||!!v.action,S=C({},n,{disabled:l,size:u,color:i,variant:d,clickable:w,focusVisible:!1}),y=typeof v.action=="function"?v.action(S):v.action,_=p.useRef(null),{focusVisible:R,getRootProps:O}=Go(C({},y,{disabled:l,rootRef:_}));S.focusVisible=R;const b=L_(S),P=C({},x,{component:g,slots:m,slotProps:v}),[E,T]=he("root",{ref:r,className:Bt(b.root,a),elementType:M_,externalForwardedProps:P,ownerState:S}),[I,k]=he("label",{className:b.label,elementType:z_,externalForwardedProps:P,ownerState:S}),D=zr(k.id),[L,$]=he("action",{className:b.action,elementType:N_,externalForwardedProps:P,ownerState:S,get
50SlotProps:O,additionalProps:{"aria-labelledby":D,as:y==null?void 0:y.component,onClick:s}}),[j,A]=he("startDecorator",{className:b.startDecorator,elementType:F_,externalForwardedProps:P,ownerState:S}),[M,F]=he("endDecorator",{className:b.endDecorator,elementType:H_,externalForwardedProps:P,ownerState:S}),V=p.useMemo(()=>({disabled:l}),[l]);return c.jsx(Yv.Provider,{value:V,children:c.jsx(Eu,{variant:d,color:i,children:c.jsxs(E,C({},T,{children:[w&&c.jsx(L,C({},$)),c.jsx(I,C({},k,{id:D,children:o})),f&&c.jsx(j,C({},A,{children:f})),h&&c.jsx(M,C({},F,{children:h}))]}))})})}),B_=Aa(c.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"}),"Cancel");function W_(e){return it("MuiChipDelete",e)}ct("MuiChipDelete",["root","disabled","focusVisible","colorPrimary","colorNeutral","colorDanger","colorSuccess","colorWarning","colorContext","variantPlain","variantSolid","variantSoft","variantOutlined"]);var vm;const U_=["children","variant","color","disabled","onKeyDown","onDelete","onClick","component","slots","slotProps"],V_=["onDelete"],Y_=e=>{const{focusVisible:t,variant:r,color:n,disabled:o}=e,a={root:["root",o&&"disabled",t&&"focusVisible",r&&`variant${ae(r)}`,n&&`color${ae(n)}`]};return ot(a,W_,{})},G_=Q(Pu,{name:"JoyChipDelete",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e})=>({"--IconButton-size":"var(--Chip-deleteSize, 2rem)","--Icon-fontSize":"calc(var(--IconButton-size, 2rem) / 1.3)",minWidth:"var(--IconButton-size, 2rem)",minHeight:"var(--IconButton-size, 2rem)",fontSize:e.vars.fontSize.sm,paddingInline:"2px",pointerEvents:"visible",borderRadius:"var(--Chip-deleteRadius, 50%)",zIndex:1,padding:0})),K_=p.forwardRef(function(t,r){const n=ut({props:t,name:"JoyChipDelete"}),{children:o,variant:a="plain",color:i="neutral",disabled:s,onKeyDown:l,onDelete:u,onClick:d,component:f,slots:h={},slotProps:g={}}=n,m=we(n,U_),v=p.useContext(Yv),{variant:x=a,color:w=i}=Ch(t.variant,t.color,!0),S=t.color||w,y=s??v.disabled,_=p.useRef(null),R=It(_,r),{focusVisible:O,getRootProps:b}=Go(C({},n,{disabled:y,rootRef:R})),P=C({},n,{disabled:y,variant:x,color:S,focusVisible:O}),E=Y_(P),T=C({},m,{component:f,slots:h,slotProps:g}),I=j=>{!y&&u&&u(j),d&&d(j)},k=j=>{["Backspace","Enter","Delete"].includes(j.key)&&(j.preventDefault(),!y&&u&&u(j)),l&&l(j)},[D,L]=he("root",{ref:r,elementType:G_,getSlotProps:b,externalForwardedProps:T,ownerState:P,additionalProps:{as:f,onKeyDown:k,onClick:I},className:E.root}),$=we(L,V_);return c.jsx(D,C({},$,{children:o??(vm||(vm=c.jsx(B_,{})))}))});function J_(e){return it("MuiInput",e)}const Gv=ct("MuiInput",["root","input","formControl","focused","disabled","error","adornedStart","adornedEnd","colorPrimary","colorNeutral","colorDanger","colorSuccess","colorWarning","colorContext","sizeSm","sizeMd","sizeLg","variantPlain","variantOutlined","variantSoft","variantSolid","fullWidth","startDecorator","endDecorator"]),xo=p.createContext(void 0),q_=["aria-describedby","aria-label","aria-labelledby","autoComplete","autoFocus","className","defaultValue","disabled","disabledInProp","error","id","name","onClick","onChange","onKeyDown","onKeyUp","onFocus","onBlur","placeholder","readOnly","required","type","value"];function X_(e,t){var r;const n=p.useContext(xo),{"aria-describedby":o,"aria-label":a,"aria-labelledby":i,autoComplete:s,autoFocus:l,className:u,defaultValue:d,disabled:f,disabledInProp:h,error:g,id:m,name:v,onClick:x,onChange:w,onKeyDown:S,onKeyUp:y,onFocus:_,onBlur:R,placeholder:O,readOnly:b,required:P,type:E,value:T}=e,I=we(e,q_),{getRootProps:k,getInputProps:D,focused:L,error:$,disabled:j}=Tw({disabled:(r=h??(n==null?void 0:n.disabled))!=null?r:f,defaultValue:d,error:g,onBlur:R,onClick:x,onChange:w,onFocus:_,required:P??(n==null?void 0:n.required),value:T}),A={[t.disabled]:j,[t.error]:$,[t.focused]:L,[t.formControl]:!!n,[u]:u},M={[t.disabled]:j};return C({formControl:n,propsToForward:{"aria-describedby":o,"aria-label":a,"aria-labelledby":i,autoComplete:s,autoFocus:l,disabled:j,id:m,onKeyDown:S,onKeyUp:y,name:v,placeholder:O,readOnly:b,type:E},rootStateClasses:A,inputStateClasses:M,getRootProps:k,getInputProps:D,focused:L,error:$,disabled:j},I)}const Q_=["propsToForward","rootStateClasses","inputStateClasses","getRootProps","getIn
50putProps","formControl","focused","error","disabled","fullWidth","size","color","variant","startDecorator","endDecorator","component","slots","slotProps"],Z_=e=>{const{disabled:t,fullWidth:r,variant:n,color:o,size:a}=e,i={root:["root",t&&"disabled",r&&"fullWidth",n&&`variant${ae(n)}`,o&&`color${ae(o)}`,a&&`size${ae(a)}`],input:["input"],startDecorator:["startDecorator"],endDecorator:["endDecorator"]};return ot(i,J_,{})},Kv=Q("div")(({theme:e,ownerState:t})=>{var r,n,o,a,i,s;const l=(r=e.variants[`${t.variant}`])==null?void 0:r[t.color];return[C({"--Input-radius":e.vars.radius.sm,"--Input-gap":"0.5rem","--Input-placeholderColor":"inherit","--Input-placeholderOpacity":.64,"--Input-decoratorColor":e.vars.palette.text.icon,"--Input-focused":"0","--Input-focusedThickness":e.vars.focus.thickness,"--Input-focusedHighlight":(n=e.vars.palette[t.color==="neutral"?"primary":t.color])==null?void 0:n[500],[`&:not([${Ei}])`]:C({},t.instanceColor&&{"--_Input-focusedHighlight":(o=e.vars.palette[t.instanceColor==="neutral"?"primary":t.instanceColor])==null?void 0:o[500]},{"--Input-focusedHighlight":`var(--_Input-focusedHighlight, ${e.vars.palette.focusVisible})`})},t.size==="sm"&&{"--Input-minHeight":"2rem","--Input-paddingInline":"0.5rem","--Input-decoratorChildHeight":"min(1.5rem, var(--Input-minHeight))","--Icon-fontSize":e.vars.fontSize.xl}
vendor: 7,208 bytes, line 50
50,t.size==="md"&&{"--Input-minHeight":"2.25rem","--Input-paddingInline":"0.75rem","--Input-decoratorChildHeight":"min(1.75rem, var(--Input-minHeight))","--Icon-fontSize":e.vars.fontSize.xl2},t.size==="lg"&&{"--Input-minHeight":"2.75rem","--Input-paddingInline":"1rem","--Input-gap":"0.75rem","--Input-decoratorChildHeight":"min(2.25rem, var(--Input-minHeight))","--Icon-fontSize":e.vars.fontSize.xl2},{"--Input-decoratorChildOffset":"min(calc(var(--Input-paddingInline) - (var(--Input-minHeight) - 2 * var(--variant-borderWidth, 0px) - var(--Input-decoratorChildHeight)) / 2), var(--Input-paddingInline))","--_Input-paddingBlock":"max((var(--Input-minHeight) - 2 * var(--variant-borderWidth, 0px) - var(--Input-decoratorChildHeight)) / 2, 0px)","--Input-decoratorChildRadius":"max(var(--Input-radius) - var(--variant-borderWidth, 0px) - var(--_Input-paddingBlock), min(var(--_Input-paddingBlock) + var(--variant-borderWidth, 0px), var(--Input-radius) / 2))","--Button-minHeight":"var(--Input-decoratorChildHeight)","--Button-paddingBlock":"0px","--IconButton-size":"var(--Input-decoratorChildHeight)","--Button-radius":"var(--Input-decoratorChildRadius)","--IconButton-radius":"var(--Input-decoratorChildRadius)",boxSizing:"border-box"},t.variant!=="plain"&&{boxShadow:e.shadow.xs},{minWidth:0,minHeight:"var(--Input-minHeight)"},t.fullWidth&&{width:"100%"},{cursor:"text",position:"relative",display:"flex",paddingInline:"var(--Input-paddingInline)",borderRadius:"var(--Input-radius)"},e.typography[`body-${t.size}`],l,{backgroundColor:(a=l==null?void 0:l.backgroundColor)!=null?a:e.vars.palette.background.surface,"&::before":{boxSizing:"border-box",content:'""',display:"block",position:"absolute",pointerEvents:"none",top:0,left:0,right:0,bottom:0,zIndex:1,borderRadius:"inherit",margin:"calc(var(--variant-borderWidth, 0px) * -1)",boxShadow:"var(--Input-focusedInset, inset) 0 0 0 calc(var(--Input-focused) * var(--Input-focusedThickness)) var(--Input-focusedHighlight)"}}),{"&:hover":C({},(i=e.variants[`${t.variant}Hover`])==null?void 0:i[t.color],{backgroundColor:null}),[`&.${Gv.disabled}`]:(s=e.variants[`${t.variant}Disabled`])==null?void 0:s[t.color],"&:focus-within::before":{"--Input-focused":"1"}}]}),Jv=Q("input")(({ownerState:e})=>({border:"none",minWidth:0,outline:0,padding:0,flex:1,color:"inherit",backgroundColor:"transparent",fontFamily:"inherit",fontSize:"inherit",fontStyle:"inherit",fontWeight:"inherit",lineHeight:"inherit",textOverflow:"ellipsis","&:-webkit-autofill":C({paddingInline:"var(--Input-paddingInline)"},!e.startDecorator&&{marginInlineStart:"calc(-1 * var(--Input-paddingInline))",paddingInlineStart:"var(--Input-paddingInline)",borderTopLeftRadius:"calc(var(--Input-radius) - var(--variant-borderWidth, 0px))",borderBottomLeftRadius:"calc(var(--Input-radius) - var(--variant-borderWidth, 0px))"},!e.endDecorator&&{marginInlineEnd:"calc(-1 * var(--Input-paddingInline))",paddingInlineEnd:"var(--Input-paddingInline)",borderTopRightRadius:"calc(var(--Input-radius) - var(--variant-borderWidth, 0px))",borderBottomRightRadius:"calc(var(--Input-radius) - var(--variant-borderWidth, 0px))"}),"&::-webkit-input-placeholder":{color:"var(--Input-placeholderColor)",opacity:"var(--Input-placeholderOpacity)"},"&::-moz-placeholder":{color:"var(--Input-placeholderColor)",opacity:"var(--Input-placeholderOpacity)"},"&:-ms-input-placeholder":{color:"var(--Input-placeholderColor)",opacity:"var(--Input-placeholderOpacity)"},"&::-ms-input-placeholder":{color:"var(--Input-placeholderColor)",opacity:"var(--Input-placeholderOpacity)"}})),qv=Q("div")({"--Button-margin":"0 0 0 calc(var(--Input-decoratorChildOffset) * -1)","--IconButton-margin":"0 0 0 calc(var(--Input-decoratorChildOffset) * -1)","--Icon-margin":"0 0 0 calc(var(--Input-paddingInline) / -4)",display:"inherit",alignItems:"center",paddingBlock:"var(--unstable_InputPaddingBlock)",flexWrap:"wrap",marginInlineEnd:"var(--Input-gap)",color:"var(--Input-decoratorColor)",cursor:"initial"}),Xv=Q("div")({"--Button-margin":"0 calc(var(--Input-decoratorChildOffset) * -1) 0 0","--IconButton-margin":"0 calc(var(--Input-decoratorChildOffset) * -1) 0 0","--Icon-margin":"0 calc(var(--Input-paddingInline) / -4) 0 0",display:"inherit",alignItems:"center",marginInlineStart:"var(--Input-gap)",color:"var(--Input-decoratorColor)",cursor:"initial"}),e3=Q(Kv,{name:"JoyInput",slot:"Root",overridesResolver:(e,t)=>t.root})({}),t3=Q(Jv,{name:"JoyInput",slot:"Input",overridesResolver:(e,t)=>t.input})({}),r3=Q(qv,{name:"JoyInput",slot:"StartDecorator",overridesResolver:(e,t)=>t.startDecorator})({}),n3=Q(Xv,{name:"JoyInput",slot:"EndDecorator",overridesResolver:(e,t)=>t.endDecorator})({}),Ru=p.forwardRef(function(t,r){var n,o,a,i,s,l;const u=ut({props:t,name:"JoyInput"}),d=X_(C({},u,{disabledInProp:t.disabled}),Gv),{propsToForward:f,rootStateClasses:h,inputStateClasses:g,getRootProps:m,getInputProps:v,formControl:x,focused:w,error:S=!1,disabled:y,fullWidth:_=!1,size:R="md",color:O="neutral",variant:b="outlined",startDecorator:P,endDecorator:E,component:T,slots:I={},slotProps:k={}}=d,D=we(d,Q_),L=(n=(o=t.error)!=null?o:x==null?void 0:x.error)!=null?n:S,$=(a=(i=t.size)!=null?i:x==null?void 0:x.size)!=null?a:R,j=(s=t.color)!=null?s:L?"danger":(l=x==null?void 0:x.color)!=null?l:O,A=C({instanceColor:L?"danger":t.color},u,{fullWidth:_,color:j,disabled:y,error:L,focused:w,size:$,variant:b}),M=Z_(A),F=C({},D,{component:T,slots:I,slotProps:k}),[V,K]=he("root",{ref:r,className:[M.root,h],elementType:e3,getSlotProps:m,externalForwardedProps:F,ownerState:A}),[le,xe]=he("input",C({},x&&{additionalProps:{id:x.htmlFor,"aria-describedby":x["aria-describedby"]}},{className:[M.input,g],elementType:t3,getSlotProps:v,internalForwardedProps:f,externalForwardedProps:F,ownerState:A})),[de,re]=he("startDecorator",{className:M.startDecorator,elementType:r3,externalForwardedProps:F,ownerState:A}),[_e,G]=he("endDecorator",{className:M.endDecorator,elementType:n3,externalForwardedProps:F,ownerState:A});return c.jsxs(V,C({},K,{children:[P&&c.jsx(de,C({},re,{children:P})),c.jsx(le,C({},xe)),E&&c.jsx(_e,C({},G,{children:E}))]}))});function o3(e){return it("MuiListSubheader",e)}ct("MuiListSubheader",["root","sticky","colorPrimary","colorNeutral","colorDanger","colorSuccess","colorWarning","colorContext","variantPlain","variantSoft","variantOutlined","variantSolid"]);const a3=["component","className","children","id","sticky","variant","color","slots","slotProps"],i3=e=>{const{variant:t,color:r,sticky:n}=e,o={root:["root",n&&"sticky",r&&`color${ae(r)}`,t&&`variant${ae(t)}`]};return ot(o,o3,{})},s3=Q("div",{name:"JoyListSubheader",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e,ownerState:t})=>{var r,n;return C({boxSizing:"border-box",display:"flex",alignItems:"center",marginInline:"var(--ListItem-marginInline)",paddingBlock:"var(--ListItem-paddingY)",paddingInlineStart:"var(--ListItem-paddingLeft)",paddingInlineEnd:"var(--ListItem-paddingRight)",minBlockSize:"var(--ListItem-minHeight)"},e.typography["body-xs"],{fontSize:"max(0.75em, 0.625rem)",textTransform:"uppercase",letterSpacing:"0.1em"},t.sticky&&{position:"sticky",top:"var(--ListItem-stickyTop, 0px)",zIndex:1,background:"var(--ListItem-stickyBackgroun
50d)"},{color:t.color?`var(--_Link-color, rgba(${(r=e.vars.palette[t.color])==null?void 0:r.mainChannel} / 1))`:e.vars.palette.text.tertiary},t.instanceColor&&{[`&:not([${Ei}])`]:{"--_Link-color":e.vars.palette.text.secondary}},(n=e.variants[t.variant])==null?void 0:n[t.color])}),l3=p.forwardRef(function(t,r){const n=ut({props:t,name:"JoyListSubheader"}),{component:o,className:a,children:i,id:s,sticky:l=!1,variant:u,color:d,slots:f={},slotProps:h={}}=n,g=we(n,a3),m=zr(s),v=p.useContext(Nv);p.useEffect(()=>{v&&v(m||"")},[v,m]);const x=C({instanceColor:t.color},n,{id:m,sticky:l,variant:u,color:u?d??"neutral":d}),w=i3(x),S=C({},g,{component:o,slots:f,slotProps:h}),[y,_]=he("root",{ref:r,className:Bt(w.root,a),elementType:s3,externalForwardedProps:S,ownerState:x,additionalProps:{as:o,id:m}});return c.jsx(y,C({},_,{children:i}))});function c3(e){return it("MuiAutocomplete",e)}const Do=ct("MuiAutocomplete",["root","wrapper","input","startDecorator","endDecorator","formControl","focused","disabled","error","multiple","limitTag","hasPopupIcon","hasClearIcon","clearIndicator","popupIndicator","popupIndicatorOpen","listbox","option","loading","noOptions","colorPrimary","colorNeutral","colorDanger","colorSuccess","colorWarning","colorContext","sizeSm","sizeMd","sizeLg","variantPlain","variantOutlined","variantSoft","variantSolid"]),Qv=Q(ku)(({theme:e,ownerState:t})=>{var r;const n=(r=e.variants[t.variant])==null?void 0:r[t.color];return C({"--focus-outline-offset":`calc(${e.vars.focus.thickness} * -1)`,"--ListItem-stickyBackground":(n==null?void 0:n.backgroundColor)||(n==null?void 0:n.background)||e.vars.palette.background.popup,"--ListItem-stickyTop":"calc(var(--List-padding, var(--ListDivider-gap)) * -1)"},vh,{boxShadow:e.shadow.md,borderRadius:`var(--List-radius, ${e.vars.radius.sm})`},!(n!=null&&n.backgroundColor)&&{backgroundColor:e.vars.palette.background.popup},{zIndex:e.vars.zIndex.popup,overflow:"auto",maxHeight:"40vh",position:"relative","&:empty":{visibility:"hidden"},[`& .${xc.nested}, & .${xc.nested} .${Xk.root}`]:{position:"initial"}})});Q(Qv,{name:"JoyAutocompleteListbox",slot:"Root",overridesResolver:(e,t)=>t.root})({});const Zv=Q(_u)(({theme:e,ownerState:t})=>{var r,n;return{'&[aria-disabled="true"]':(r=e.variants[`${t.variant}Disabled`])==null?void 0:r[t.color],'&[aria-selected="true"]':C({},(n=e.variants[`${t.variant}Active`])==null?void 0:n[t.color],{fontWeight:e.vars.fontWeight.md})}});Q(Zv,{name:"JoyAutocompleteOption",slot:"Root",overridesResolver:(e,t)=>t.root})({});var ym,bm;const u3=["aria-describedby","aria-label","aria-labelledby","autoComplete","autoHighlight","autoSelect","autoFocus","blurOnSelect","clearIcon","clearOnBlur","clearOnEscape","clearText","closeText","defaultValue","disableCloseOnSelect","disabledItemsFocusable","disableListWrap","disableClearable","disabled","endDecorator","error","filterOptions","filterSelectedOptions","forcePopupIcon","freeSolo","getLimitTagsText","getOptionDisabled","getOptionKey","getOptionLabel","handleHomeEndKeys","includeInputInList","isOptionEqualToValue","groupBy","id","inputValue","limitTags","loading","loadingText","multiple","name","noOptionsText","onChange","onClose","onHighlightChange","onInputChange","onOpen","open","openOnFocus","openText","options","placeholder","popupIcon","readOnly","renderGroup","renderOption","renderTags","required","type","startDecorator","size","color","variant","value","component","selectOnFocus","slots","slotProps"],d3=["onDelete"],f3=["key"],h3=["onBlur","onFocus","onMouseDown"],p3=["key"],m3=e=>e.current!==null&&e.current.contains(document.activeElement),g3=e=>{var t;return(t=e.label)!=null?t:e},v3=e=>`+${e}`,y3=e=>c.jsxs(Tr,{nested:!0,children:[c.jsx(l3,{sticky:!0,children:e.group}),c.jsx(Un,{children:e.children})]},e.key),b3=e=>{const{disabled:t,focused:r,hasClearIcon:n,hasPopupIcon:o,popupOpen:a,variant:i,color:s,size:l,multiple:u}=e,d={root:["root",r&&"focused",n&&"hasClearIcon",o&&"hasPopupIcon",i&&`variant${ae(i)}`,s&&`color${ae(s)}`,l&&`size${ae(l)}`],wrapper:["wrapper",u&&"multiple"],input:["input"],startDecorator:["startDecorator"],endDecorator:["endDecorator"],clearIndicator:["clearIndicator"],popupIndicator:["popupIndicator",a&&"popupIndicatorOpen",t&&"disabled"],listbox:["listbox"],option:["option"],loading:["loading"],noOptions:["noOptions"],limitTag:["limitTag"]};return ot(d,c3,{})},x3=Q(Kv,{name:"JoyAutocomplete",slot:"Root",overridesResolver:(e,t)=>t.root})(({ownerState:e})=>C({},e.size==="sm"&&{"--Autocomplete-wrapperGap":"3px"}
50,e.size==="md"&&{"--Autocomplete-wrapperGap":"3px"},e.size==="lg"&&{"--Autocomplete-wrapperGap":"4px"},{"@media (pointer: fine)":{[`&:hover .${Do.clearIndicator}`]:{visibility:"visible"}}},e.multiple&&!e.startDecorator&&{paddingInlineStart:0})),C3=Q("div",{name:"JoyAutocomplete",slot:"Wrapper",overridesResolver:(e,t)=>t.wrapper})(({ownerState:e})=>({flex:1,minWidth:0,display:"flex",alignItems:"center",flexWrap:"wrap",gap:"var(--Autocomplete-wrapperGap)",[`&.${Do.multiple}`]:C({paddingBlock:"var(--Autocomplete-wrapperGap)"},!e.startDecorator&&{paddingInlineStart:"var(--Autocomplete-wrapperGap)"},!e.endDecorator&&{paddingInlineEnd:"var(--Autocomplete-wrapperGap)"})})),S3=Q(Jv,{name:"JoyAutocomplete",slot:"Input",overridesResolver:(e,t)=>t.input})(({ownerState:e})=>C({minWidth:30,minHeight:"var(--Chip-minHeight)"},e.multiple&&{marginInlineStart:"calc(var(--Autocomplete-wrapperGap) * 2.5)"})),w3=Q(qv,{name:"JoyAutocomplete",slot:"StartDecorator",overridesResolver:(e,t)=>t.startDecorator})({}),k3=Q(Xv,{name:"JoyAutocomplete",slot:"EndDecorator",overridesResolver:(e,t)=>t.endDecorator})(({ownerState:e})=>C({},(e.hasClearIcon||e.hasPopupIcon)&&{"--Button-margin":"0px","--IconButton-margin":"0px","--Icon-margin":"0px"})),_3=Q(Pu,{name:"JoyAutocomplete",slot:"ClearIndicator",overridesResolver:(e,t)=>t.clearIndicator})(({ownerState:e})=>C({alignSelf:"center"},!e.hasPopupIcon&&{marginInlineEnd:"calc(var(--Input-decoratorChildOffset) * -1)"},{marginInlineStart:"calc(var(--_Input-paddingBlock) / 2)",visibility:e.focused?"visible":"hidden"})),E3=Q(Pu,{name:"JoyAutocomplete",slot:"PopupIndicator",overridesResolver:(e,t)=>t.popupIndicator})({alignSelf:"center",marginInlineStart:"calc(var(--_Input-paddingBlock) / 2)",marginInlineEnd:"calc(var(--Input-decoratorChildOffset) * -1)",[`&.${Do.popupIndicatorOpen}`]:{transform:"rotate(180deg)","--Icon-color":"currentColor"}}),P3=Q(Qv,{name:"JoyAutocomplete",slot:"Listbox",overridesResolver:(e,t)=>t.listbox})(({theme:e})=>({zIndex:`var(--unstable_popup-zIndex, ${e.vars.zIndex.popup})`})),R3=Q(Zv,{name:"JoyAutocomplete",slot:"Option",overridesResolver:(e,t)=>t.option})({}),T3=Q(Tr,{name:"JoyAutocomplete",slot:"Loading",overridesResolver:(e,t)=>t.loading})(({theme:e})=>({color:(e.vars||e).palette.text.secondary})),I3=Q(Tr,{name:"JoyAutocomplete",slot:"NoOptions",overridesResolver:(e,t)=>t.noOptions})(({theme:e})=>({color:(e.vars||e).palette.text.secondary})),D3=Q("div",{name:"JoyAutocomplete",slot:"NoOptions",overridesResolver:(e,t)=>t.noOptions})({marginInlineStart:"calc(var(--Input-paddingInline) / 2)",marginBlockStart:"var(--_Input-paddingBlock)"}),O3=p.forwardRef(function(t,r){var n,o,a,i,s,l,u;const d=ut({props:t,name:"JoyAutocomplete"}),{"aria-describedby":f,"aria-label":h,"aria-labelledby":g,autoFocus:m,clearIcon:v=ym||(ym=c.jsx(v_,{fontSize:"md"})),clearText:x="Clear",closeText:w="Close",disableClearable:S=!1,disabled:y,endDecorator:_,error:R=!1,forcePopupIcon:O="auto",freeSolo:b=!1,getLimitTagsText:P=v3,getOptionLabel:E=g3,groupBy:T,id:I,limitTags:k=-1,loading:D=!1,loadingText:L="Loadingâ¦",multiple:$=!1,name:j,noOptionsText:A="No options",openText:M="Open",placeholder:F,popupIcon:V=bm||(bm=c.jsx(y_,{})),readOnly:K=!1,renderGroup:le=y3,renderOption:xe,renderTags:de,required:re,type:_e,startDecorator:G,size:U="md",color:X="neutral",variant:oe="outlined",component:ge,slots:te={},slotProps:Ee={}}=d,je=we(d,u3),ve=p.useContext(xo),ne=(n=(o=t.error)!=null?o:ve==null?void 0:ve.error)!=null?n:R,We=(a=(i=t.size)!=null?i:ve==null?void 0:ve.size)!=null?a:U,Re=(s=t.color)!=null?s:ne?"danger":(l=ve==null?void 0:ve.color)!=null?l:X,st=(u=y??(ve==null?void 0:ve.disabled))!=null?u:!1,{getRootProps:gt,getInputProps:jt,getPopupIndicatorProps:At,getClearProps:qe,getTagProps:J,getListboxProps:Ve,getOptionProps:Ke,value:Ye,dirty:ze,popupOpen:Te,focused:rt,focusedTag:Ht,anchorEl:fe,setAnchorEl:ye,inputValue:$e,groupedOptions:Ge}=Nk(C({},d,{id:I??(ve==null?void 0:ve.htmlFor),componentName:"Autocomplete",unstable_classNamePrefix:"Mui",unstable_isActiveElementInListbox:m3})),{onMouseDown:Er}=jt(),{onClick:Pt}=gt(),br=!S&&!st&&ze&&!K,Wt=(!b||O===!0)&&O!==!1,xt=C({instanceColor:t.color},d,{value:Ye,disabled:st,focused:rt,getOptionLabel:E,hasOptions:!!Ge.length,hasClearIcon:br,hasPopupIcon:Wt,inputFocused:Ht===-1,popupOpen:Te,size:We,color:Re,variant:oe}),wt=b3(xt),Lt=C({},je,{component:ge,slots:te,slotProps:Ee});let Ae;if($&&Ye.length>0){const Ce=ft=>{const Yt=J(ft),{onDelete:xr}=Yt,Dt=we(Yt,d3);return C({disabled:st,size:We,onClick:xr},Dt)};de?Ae=de(Ye,Ce,xt):Ae=Ye.map((ft,Yt)=>{const xr=Ce({index:Yt}),{key:Dt}=xr,On=we(xr,f3);return c.jsx(Kr,{size:We,variant:"soft",color:"neutral",endDecorator:c.jsx(K_,C({},On),Dt),sx:{minWidth:0},children:E(ft)},Yt)})}const Ut=It(r,ye),dt={[Do.disabled]:st,[Do.error]:ne,[Do.focused]:rt,[Do.formControl]:!!ve},[et,Ne]=he("root",{ref:Ut,className:[wt.root,dt],elementType:x3,externalForwardedProps:Lt,ownerState:xt,getSlotProps:gt,additionalProps:{onClick:Ce=>{Pt&&Pt(Ce),Ce.currentTarget===Ce.target&&Er&&Er(Ce)}}}),[Vt,_o]=he("wrapper",{className:wt.wrapper,elementType:C3,externalForwardedProps:Lt,ownerState:xt}),Zn={[Do.disabled]:st},[N,H]=he("input",{className:[wt.input,Zn],elementType:S3,getSlotProps:Ce=>
50{const ft=jt(),{onBlur:Yt,onFocus:xr,onMouseDown:Dt}=ft,On=we(ft,h3);return C({},On,{onBlur:Cn=>{var $n;Yt==null||Yt(Cn),($n=Ce.onBlur)==null||$n.call(Ce,Cn)},onFocus:Cn=>{var $n;xr==null||xr(Cn),($n=Ce.onFocus)==null||$n.call(Ce,Cn)},onMouseDown:Cn=>{var $n;Dt==null||Dt(Cn),($n=Ce.onMouseDown)==null||$n.call(Ce,Cn)}})},externalForwardedProps:Lt,ownerState:xt,additionalProps:{autoFocus:m,placeholder:F,name:j,readOnly:K,disabled:st,required:re??(ve==null?void 0:ve.required),type:_e,"aria-invalid":ne||void 0,"aria-label":h,"aria-labelledby":g,"aria-describedby":f??(ve==null?void 0:ve["aria-describedby"])}}),[Y,Z]=he("startDecorator",{className:wt.startDecorator,elementType:w3,externalForwardedProps:Lt,ownerState:xt}),[be,Me]=he("endDecorator",{className:wt.endDecorator,elementType:k3,externalForwardedProps:Lt,ownerState:xt}),[Ue,Ie]=he("clearIndicator",{className:wt.clearIndicator,elementType:_3,getSlotProps:qe,externalForwardedProps:Lt,ownerState:xt,getSlotOwnerState:Ce=>({size:Ce.size||We,variant:Ce.variant||oa(oe,Re).variant||"plain",color:Ce.color||oa(oe,Re).color||"neutral",disableColorInversion:!!t.color}),additionalProps:{"aria-label":x,title:x}}),[De,ke]=he("popupIndicator",{className:wt.popupIndicator,elementType:E3,getSlotProps:At,externalForwardedProps:Lt,ownerState:xt,getSlotOwnerState:Ce=>({size:Ce.size||We,variant:Ce.variant||oa(oe,Re).variant||"plain",color:Ce.color||oa(oe,Re).color||"neutral",disableColorInversion:!!t.color}),additionalProps:{disabled:st,"aria-label":Te?w:M,title:Te?w:M,type:"button"}}),[B,W]=he("listbox",{className:wt.listbox,elementType:P3,getSlotProps:Ve,externalForwardedProps:Lt,ownerState:xt,getSlotOwnerState:Ce=>({size:Ce.size||We,variant:Ce.variant||oe,color:Ce.color||Re,disableColorInversion:!Ce.disablePortal}),additionalProps:{anchorEl:fe,open:Te,style:fe?{width:fe.clientWidth}:{}}}),[ee,Oe]=he("loading",{className:wt.loading,elementType:T3,externalForwardedProps:Lt,ownerState:xt}),[Le,He]=he("noOptions",{className:wt.noOptions,elementType:I3,externalForwardedProps:Lt,ownerState:xt,additionalProps:{role:"presentation",onMouseDown:Ce=>{Ce.preventDefault()}}}),[Je,cr]=he("limitTag",{className:wt.limitTag,elementType:D3,externalForwardedProps:Lt,ownerState:xt});if(k>-1&&Array.isArray(Ae)){const Ce=Ae.length-k;!rt&&Ce>0&&(Ae=Ae.splice(0,k),Ae.push(c.jsx(Je,C({},cr,{children:P(Ce)}),Ae.length)))}const[Dn,bn]=he("option",{className:wt.option,elementType:R3,externalForwardedProps:Lt,ownerState:xt,getSlotOwnerState:Ce=>({variant:Ce.variant||oa(oe,Re).variant||"plain",color:Ce.color||oa(oe,Re).color||"neutral",disableColorInversion:!W.disablePortal}),additionalProps:{as:"li"}}),ts=xe||((Ce,ft)=>{const{key:Yt}=Ce,xr=we(Ce,p3);return c.jsx(Dn,C({},xr,{children:E(ft)}),Yt)}),Eo=(Ce,ft)=>{const Yt=Ke({option:Ce,index:ft});return ts(C({},bn,Yt),Ce,{selected:!!Yt["aria-selected"],inputValue:$e,ownerState:xt})},eo=p.useMemo(()=>[{name:"offset",options:{offset:[0,4]}},...W.modifiers||[]],[W.modifiers]);let Qo=null;if(fe){var Zo;Qo=c.jsx(Eu,{variant:oe,color:Re,children:c.jsx(wu,{nested:!0,children:c.jsxs(B,C({},W,{className:Bt(W.className),modifiers:eo},!((Zo=d.slots)!=null&&Zo.listbox)&&{as:Cu,slots:{root:W.as||"ul"}},{children:[Ge.map((Ce,ft)=>{if(T){const Yt=Ce;return le({key:String(Yt.key),group:Yt.group,children:Yt.options.map((xr,Dt)=>Eo(xr,Yt.index+Dt))})}return Eo(Ce,ft)}),D&&Ge.length===0?c.jsx(ee,C({},Oe,{children:L})):null,Ge.length===0&&!b&&!D?c.jsx(Le,C({},He,{children:A})):null]}))})})}return c.jsxs(p.Fragment,{children:[c.jsxs(et,C({},Ne,{children:[G&&c.jsx(Y,C({},Z,{children:G})),c.jsxs(Vt,C({},_o,{children:[Ae,c.jsx(N,C({},H))]})),_&&c.jsx(be,C({},Me,{children:_})),br?c.jsx(Ue,C({},Ie,{children:v})):null,Wt?c.jsx(De,C({},ke,{children:V})):null]})),Qo]})}),$3=Aa(c.jsx("path",{d:"M12 12c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm0 2c-2.67 0-8 1.34-8 4v2h16v-2c0-2.66-5.33-4-8-4z"}),"Person");function j3(e){return it("MuiAvatar",e)}ct("MuiAvatar",["root","colorPrimary","colorNeutral","colorDanger","colorSuccess","colorWarning","colorContext","fallback","sizeSm","sizeMd","sizeLg","img","variantOutlined","variantSoft","variantSolid"]);const A3=p.createContext(void 0);Q("div",{name:"JoyAvatarGroup",slot:"Root",overridesResolver:(e,t)=>t.root})(({ownerState:e,theme:t})=>C({},e.size==="sm"&&{"--AvatarGroup-gap":"-0.375rem","--Avatar-ringSize":"2px"}
50,e.size==="md"&&{"--AvatarGroup-gap":"-0.5rem","--Avatar-ringSize":"2px"},e.size==="lg"&&{"--AvatarGroup-gap":"-0.625rem","--Avatar-ringSize":"4px"},{"--Avatar-ring":`0 0 0 var(--Avatar-ringSize) var(--Avatar-ringColor, ${t.vars.palette.background.surface})`,"--Avatar-marginInlineStart":"var(--AvatarGroup-gap)",display:"flex",marginInlineStart:"calc(-1 * var(--AvatarGroup-gap))"}));const L3=["alt","color","size","variant","src","srcSet","children","component","slots","slotProps"],M3=e=>{const{size:t,variant:r,color:n,src:o,srcSet:a}=e,i={root:["root",r&&`variant${ae(r)}`,n&&`color${ae(n)}`,t&&`size${ae(t)}`],img:[(o||a)&&"img"],fallback:["fallback"]};return ot(i,j3,{})},z3=Q("div",{name:"JoyAvatar",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e,ownerState:t})=>{var r;return C({"--Icon-color":t.color!=="neutral"||t.variant==="solid"?"currentColor":e.vars.palette.text.icon},e.typography[`title-${t.size}`],t.size==="sm"&&{width:"var(--Avatar-size, 2rem)",height:"var(--Avatar-size, 2rem)",fontSize:"calc(var(--Avatar-size, 2rem) * 0.4375)"},t.size==="md"&&{width:"var(--Avatar-size, 2.5rem)",height:"var(--Avatar-size, 2.5rem)",fontSize:"calc(var(--Avatar-size, 2.5rem) * 0.4)"},t.size==="lg"&&{width:"var(--Avatar-size, 3rem)",height:"var(--Avatar-size, 3rem)",fontSize:"calc(var(--Avatar-size, 3rem) * 0.375)"},{marginInlineStart:"var(--Avatar-marginInlineStart)",boxShadow:"var(--Avatar-ring)",position:"relative",display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0,lineHeight:1,overflow:"hidden",borderRadius:"var(--Avatar-radius, 50%)",userSelect:"none"},(r=e.variants[t.variant])==null?void 0:r[t.color])}),N3=Q("img",{name:"JoyAvatar",slot:"Img",overridesResolver:(e,t)=>t.img})({width:"100%",height:"100%",textAlign:"center",objectFit:"cover",color:"transparent",textIndent:1e4}),F3=Q($3,{name:"JoyAvatar",slot:"Fallback",overridesResolver:(e,t)=>t.fallback})({width:"64%",height:"64%"});function H3({crossOrigin:e,referrerPolicy:t,src:r,srcSet:n}){const[o,a]=p.useState(!1);return p.useEffect(()=>{if(!r&&!n)return;a(!1);let i=!0;const s=new Image;return s.onload=()=>{i&&a("loaded")},s.onerror=()=>{i&&a("error")},s.crossOrigin=e,s.referrerPolicy=t,r&&(s.src=r),n&&(s.srcset=n),()=>{i=!1}},[e,t,r,n]),o}const Ms=p.forwardRef(function(t,r){const n=ut({props:t,name:"JoyAvatar"}),o=p.useContext(A3),{alt:a,color:i="neutral",size:s="md",variant:l="soft",src:u,srcSet:d,children:f,component:h,slots:g={},slotProps:m={}}=n,v=we(n,L3),x=t.variant||(o==null?void 0:o.variant)||l,w=t.color||(o==null?void 0:o.color)||i,S=t.size||(o==null?void 0:o.size)||s;let y=null;const _=C({},n,{color:w,size:S,variant:x,grouped:!!o}),R=M3(_),O=C({},v,{component:h,slots:g,slotProps:m}),[b,P]=he("root",{ref:r,className:R.root,elementType:z3,externalForwardedProps:O,ownerState:_}),[E,T]=he("img",{additionalProps:{alt:a,src:u,srcSet:d},className:R.img,elementType:N3,externalForwardedProps:O,ownerState:_}),[I,k]=he("fallback",{className:R.fallback,elementType:F3,externalForwardedProps:O,ownerState:_}),D=H3(C({},T,{src:u,srcSet:d}));return(u||d)&&D!=="error"?y=c.jsx(E,C({},T)):f!=null?y=f:a?y=a[0]:y=c.jsx(I,C({},k)),c.jsx(b,C({},P,{children:y}))});function B3(e){return it("MuiBadge",e)}const W3=ct("MuiBadge",["root","badge","anchorOriginTopRight","anchorOriginBottomRight","anchorOriginTopLeft","anchorOriginBottomLeft","colorPrimary","colorDanger","colorNeutral","colorSuccess","colorWarning","colorContext","invisible","locationInside","locationOutside","sizeSm","sizeMd","sizeLg","variantPlain","variantOutlined","variantSoft","variantSolid"]),U3=["anchorOrigin","badgeInset","children","size","color","invisible","max","badgeContent","showZero","variant","component","slots","slotProps"],V3=e=>{const{color:t,variant:r,size:n,anchorOrigin:o,invisible:a}=e,i={root:["root"],badge:["badge",a&&"invisible",o&&`anchorOrigin${ae(o.vertical)}${ae(o.horizontal)}`,r&&`variant${ae(r)}`,t&&`color${ae(t)}`,n&&`size${ae(n)}`]};return ot(i,B3,{})},Y3=Q("span",{name:"JoyBadge",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e,ownerState:t})=>C({},t.size==="sm"&&C({"--Badge-minHeight":"0.5rem"},t.badgeContent&&{"--Badge-minHeight":"1rem"},{"--Badge-paddingX":"0.25rem"}),t.size==="md"&&C({"--Badge-minHeight":"0.75rem"},t.badgeContent&&{"--Badge-minHeight":"1.25rem"},{"--Badge-paddingX":"0.375rem"}),t.size==="lg"&&C({"--Badge-minHeight":"1rem"},t.badgeContent&&{"--Badge-minHeight":"1.5rem"},{"--Badge-paddingX":"0.5rem"}),{"--Badge-ringSize":"2px","--Badge-ring":`0 0 0 var(--Badge-ringSize) var(--Badge-ringColor, ${e.vars.palette.background.surface})`,position:"relative",display:"inline-flex",verticalAlign:"middle",flexShrink:0})),G3=Q("span",{name:"JoyBadge",slot:"Badge",overridesResolver:(e,t)=>t.badge})(({theme:e,ownerState:t})=>{var r,n,o,a,i,s;const l={top:t.badgeInset,left:t.badgeInset,bottom:t.badgeInset,right:t.badgeInset};if(typeof t.badgeInset=="string"){const m=t.badgeInset.split(" ");m.length>1&&(l.top=m[0],l.right=m[1],m.length===2&&(l.bottom=m[0],l.left=m[1]),m.length===3&&(l.left=m[1],l.bottom=m[2]),m.length===4&&(l.bottom=m[2],l.left=m[3]))}const u=((r=t.anchorOrigin)==null?void 0:r.vertical)==="top"?"translateY(-50%)":"translateY(50%)",d=((n=t.anchorOrigin)==null?void 0:n.horizontal)==="left"?"translateX(-50%)":"translateX(50%)",f=((o=t.anchorOrigin)==null?void 0:o.vertical)==="top"?"0%":"100%",h=((a=t.anchorOrigin)==null?void 0:a.horizontal)==="left"?"0%":"100%",g=e.typography[`body-${{sm:"xs",md:"sm",lg:"md"}[t.size]}`];return C({"--Icon-color":"currentColor","--Icon-fontSize":`calc(1em * ${(i=g==null?void 0:g.lineHeight)!=null?i:"1"})`,display:"inline-flex",flexWrap:"wrap",justifyContent:"center",alignContent:"center",alignItems:"center",position:"absolute",boxSizing:"border-box",boxShadow:"var(--Badge-ring)",lineHeight:1,padding:"0 calc(var(--Badge-paddingX) - var(--variant-borderWidth, 0px))",minHeight:"var(--Badge-minHeight)",minWidth:"var(--Badge-minHeight)",borderRadius:"var(--Badge-radius, var(--Badge-minHeight))",zIndex:e.vars.zIndex.badge,backgroundColor:e.vars.palette.background.surface,[t.anchorOrigin.vertical]:l[t.anchorOrigin.vertical],[t.anchorOrigin.horizontal]:l[t.anchorOrigin.horizontal],transform:`scale(1) ${d} ${u}`,transformOrigin:`${h} ${f}`,[`&.${W3.invisible}`]:{transform:`scale(0) ${d} ${u}`}},g,{fontWeight:e.vars.fontWeight.md},(s=e.variants[t.variant])==null?void 0:s[t.color])}),xm=p.forwardRef(function(t,r){const n=ut({props:t,name:"JoyBadge"}),{anchorOrigin:o={vertical:"top",horizontal:"right"},badgeInset:a=0,children:i,size:s="md",color:l="primary",invisible:u=!1,max:d=99,badgeContent:f="",showZero:h=!1,variant:g="solid",component:m,slots:v={},slotProps:x={}}=n,w=we(n,U3),S=uv({anchorOrigin:o,size:s,badgeInset:a,color:l,variant:g});let y=u;u===!1&&(f===0&&!h||f==null)&&(y=!0);const{color:_=l,size:R=s,anchorOrigin:O=o,variant:b=g,badgeInset:P=a}=y?S:n,E=C({},n,{anchorOrigin:O,badgeInset:P,variant:b,invisible:y,color:_,size:R}),T=V3(E),I=C({},w,{component:m,slots:v,slotProps:x});let k=f&&Number(f)>d?`${d}+`:f;y&&f===0&&(k="");const[D,L]=he("root",{ref:r,className:T.root,elementType:Y3,externalForwardedProps:I,ownerState:E}),[$,j]=he("badge",{className:T.badge,elementType:G3,externalForwardedProps:I,ownerState:E});return c.jsxs(D,C({},L,{children:[i,c.jsx($,C({},j,{children:k}))]}))}),K3=il("MuiBox",["root"]),ce=ev({themeId:$i,defaultTheme:Oa,defaultClassName:K3.root,generateClassName:iu.generate});function J3(e){return it("MuiTypography",e)}ct("MuiTypography",["root","h1","h2","h3","h4","title-lg","title-md","title-sm","body-lg","body-md","body-sm","body-xs","noWrap","gutterBottom","startDecorator","endDecorator","colorPrimary","colorNeutral","colorDanger","colorSuccess","colorWarning","colorContext","variantPlain","variantOutlined","variantSoft","variantSolid"]);const q3=["color","textColor"],X3=["component","gutterBottom","noWrap","level","levelMapping","children","endDecorator","startDecorator","variant","slots","slotProps"],Pi=p.createContext(!1),ey=p.createContext(!1),Q3=e=>{const{gutterBottom:t,noWrap:r,level:n,color:o,variant:a}=e,i={root:["root",n,t&&"gutterBottom",r&&"noWrap",o&&`color${ae(o)}`,a&&`variant${ae(a)}`],startDecorator:["startDecorator"],endDecorator:["endDecorator"]};return ot(i,J3,{})},Z3=Q("span",{name:"JoyTypography",slot:"StartDecorator",overridesResolver:(e,t)=>t.startDecorator})({display:"inline-flex",marginInlineEnd:"clamp(4px, var(--Typography-gap, 0.375em), 0.75rem)"}),e4=Q("span",{name:"JoyTypography",slot:"endDecorator",overridesResolver:(e,t)=>t.endDecorator})({display:"inline-flex",marginInlineStart:"clamp(4px, var(--Typography-gap, 0.375em), 0.75rem)"}),t4=Q("span",{name:"JoyTypography",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e,ownerState:t})=>{var r,n,o,a,i;const s=t.level!=="inherit"?(r=e.typography[t.level])==null?void 0:r.lineHeight:"1";return C({"--Icon-fontSize":`calc(1em * ${s})`},t.color&&{"--Icon-color":"currentColor"},{margin:"var(--Typography-margin, 0px)"},t.nesting?{display:"inline"}:C({display:"block"},t.unstable_hasSkeleton&&{position:"relative"}),(t.startDecorator||t.endDecorator)&&C({display:"flex",alignItems:"center"},t.nesting&&C({display:"inline-flex"},t.startDecorator&&{verticalAlign:"bottom"})),t.level&&t.level!=="inherit"&&e.typography[t.level],{fontSize:`var(--Typography-fontSize, ${t.level&&t.level!=="inherit"&&(n=(o=e.typography[t.level])==null?void 0:o.fontSize)!=null?n:"inherit"})`},t.noWrap&&{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},t.gutterBottom&&{marginBottom:"0.35em"},t.color&&{color:`var(--variant-plainColor, rgba(${(a=e.vars.palette[t.color])==null?void 0:a.mainChannel} / 1))`},t.variant&&C({borderRadius:e.vars.radius.xs,paddingBlock:"min(0.1em, 4px)",paddingInline:"0.25em"},!t.nesting&&{marginInline:"-0.25em"},(i=e.variants[t.variant])==null?void 0:i[t.color]))}),Cm={h1:"h1",h2:"h2",h3:"h3",h4:"h4","title-lg":"p","title-md":"p","title-sm":"p","body-lg":"p","body-md":"p","body-sm":"p","body-xs":"span",inherit:"p"},ue=p.forwardRef(function(t,r){var n;const o=ut({props:t,name:"JoyTypography"}),{color:a,textColor:i}=o,s=we(o,q3),l=p.useContext(Pi),u=p.useContext(ey),d=Ni(C({},s,{color:i})),{component:f,gutterBottom:h=!1,noWrap:g=!1,level:m="body-md",levelMapping:v=Cm,children:x,endDecorator:w,startDecorator:S,variant:y,slots:_={},slotProps:R={}}=d,O=we(d,X3),b=(n=t.color)!=null?n:y?a??"neutral":a,P=l||u?t.level||"inherit":m,E=Hi(x,["Skeleton"]),T=f||(l?"span":v[P]||Cm[P]||"span"),I=C({},d,{level:P,component:T,color:b,gutterBottom:h,noWrap:g,nesting:l,variant:y,unstable_hasSkeleton:E}),k=Q3(I),D=C({},O,{component:T,slots:_,slotProps:R}),[L,$]=he("root",{ref:r,className:k.root,elementType:t4,externalForwardedProps:D,ownerState:I}),[j,A]=he("startDecorator",{className:k.startDecorator,elementType:Z3,externalForwardedProps:D,ownerState:I}),[M,F]=he("endDecorator",{className:k.endDecorator,elementType:e4,externalForwardedProps:D,ownerState:I});return c.jsx(Pi.Provider,{value:!0,children:c.jsxs(L,C({},$,{children:[S&&c.jsx(j,C({},A,{children:S})),E?p.cloneElement(x,{variant:x.props.variant||"inline"}):x,w&&c.jsx(M,C({},F,{children:w}))]}))})});ue.muiName="Typography";function r4(e){return it("MuiButton",e)}const Sm=ct("MuiButton",["root","colorPrimary","colorNeutral","colorDanger","colorSuccess","colorWarning","colorContext","variantPlain","variantOutlined","variantSoft","variantSolid","focusVisible","disabled","sizeSm","sizeMd","sizeLg","fullWidth","startDecorator","endDecorator","loading","loadingIndicatorCenter"]),n4=["children","action","color","variant","size","fullWidth","startDecorator","endDecorator","loading","loadingPosition","loadingIndicator","disabled","component","slots","slotProps"],o4=e=>{const{color:t,disabled:r,focusVisible:n,focusVisibleClassName:o,fullWidth:a,size:i,variant:s,loading:l}=e,u={root:["root",r&&"disabled",n&&"focusVisible",a&&"fullWidth",s&&`variant${ae(s)}`,t&&`color${ae(t)}`,i&&`size${ae(i)}`,l&&"loading"],startDecorator:["startDecorator"],endDecorator:["endDecorator"],loadingIndicatorCenter:["loadingIndicatorCenter"]},d=ot(u,r4,{});return n&&o&&(d.root+=` ${o}`),d}
vendor: 1,406 bytes, line 50
50,a4=Q("span",{name:"JoyButton",slot:"StartDecorator",overridesResolver:(e,t)=>t.startDecorator})({"--Icon-margin":"0 0 0 calc(var(--Button-gap) / -2)","--CircularProgress-margin":"0 0 0 calc(var(--Button-gap) / -2)",display:"inherit",marginRight:"var(--Button-gap)"}),i4=Q("span",{name:"JoyButton",slot:"EndDecorator",overridesResolver:(e,t)=>t.endDecorator})({"--Icon-margin":"0 calc(var(--Button-gap) / -2) 0 0","--CircularProgress-margin":"0 calc(var(--Button-gap) / -2) 0 0",display:"inherit",marginLeft:"var(--Button-gap)"}),s4=Q("span",{name:"JoyButton",slot:"LoadingCenter",overridesResolver:(e,t)=>t.loadingIndicatorCenter})(({theme:e,ownerState:t})=>{var r,n;return C({display:"inherit",position:"absolute",left:"50%",transform:"translateX(-50%)",color:(r=e.variants[t.variant])==null||(r=r[t.color])==null?void 0:r.color},t.disabled&&{color:(n=e.variants[`${t.variant}Disabled`])==null||(n=n[t.color])==null?void 0:n.color})}),l4=({theme:e,ownerState:t})=>{var r,n,o,a;return[C({"--Icon-margin":"initial","--Icon-color":t.color!=="neutral"||t.variant==="solid"?"currentColor":e.vars.palette.text.icon},t.size==="sm"&&{"--Icon-fontSize":e.vars.fontSize.lg,"--CircularProgress-size":"20px","--CircularProgress-thickness":"2px","--Button-gap":"0.375rem",minHeight:"var(--Button-minHeight, 2rem)",fontSize:e.vars.fontSize.sm,paddingBlock:"var(--Button-paddingBlock, 0.25rem)",paddingInline:"0.75rem"}
vendor: 5,146 bytes, line 50
50,t.size==="md"&&{"--Icon-fontSize":e.vars.fontSize.xl,"--CircularProgress-size":"20px","--CircularProgress-thickness":"2px","--Button-gap":"0.5rem",minHeight:"var(--Button-minHeight, 2.25rem)",fontSize:e.vars.fontSize.sm,paddingBlock:"var(--Button-paddingBlock, 0.375rem)",paddingInline:"1rem"},t.size==="lg"&&{"--Icon-fontSize":e.vars.fontSize.xl2,"--CircularProgress-size":"28px","--CircularProgress-thickness":"4px","--Button-gap":"0.75rem",minHeight:"var(--Button-minHeight, 2.75rem)",fontSize:e.vars.fontSize.md,paddingBlock:"var(--Button-paddingBlock, 0.5rem)",paddingInline:"1.5rem"},{WebkitTapHighlightColor:"transparent",boxSizing:"border-box",borderRadius:`var(--Button-radius, ${e.vars.radius.sm})`,margin:"var(--Button-margin)",border:"none",backgroundColor:"transparent",cursor:"pointer",userSelect:"none",display:"inline-flex",alignItems:"center",justifyContent:"center",position:"relative",textDecoration:"none",fontFamily:e.vars.fontFamily.body,fontWeight:e.vars.fontWeight.lg,lineHeight:e.vars.lineHeight.md},t.fullWidth&&{width:"100%"},{[e.focus.selector]:e.focus.default}),C({},(r=e.variants[t.variant])==null?void 0:r[t.color],{"&:hover":{"@media (hover: hover)":(n=e.variants[`${t.variant}Hover`])==null?void 0:n[t.color]},'&:active, &[aria-pressed="true"]':(o=e.variants[`${t.variant}Active`])==null?void 0:o[t.color],[`&.${Sm.disabled}`]:(a=e.variants[`${t.variant}Disabled`])==null?void 0:a[t.color]},t.loadingPosition==="center"&&{[`&.${Sm.loading}`]:{color:"transparent"}})]},c4=Q("button",{name:"JoyButton",slot:"Root",overridesResolver:(e,t)=>t.root})(l4),wr=p.forwardRef(function(t,r){var n;const o=ut({props:t,name:"JoyButton"}),{children:a,action:i,color:s="primary",variant:l="solid",size:u="md",fullWidth:d=!1,startDecorator:f,endDecorator:h,loading:g=!1,loadingPosition:m="center",loadingIndicator:v,disabled:x,component:w,slots:S={},slotProps:y={}}=o,_=we(o,n4),R=p.useContext(Wv),O=p.useContext(Uv),b=t.variant||R.variant||l,P=t.size||R.size||u,E=t.color||R.color||s,T=(n=t.loading||t.disabled)!=null?n:R.disabled||g||x,I=p.useRef(null),k=It(I,r),{focusVisible:D,setFocusVisible:L,getRootProps:$}=Go(C({},o,{disabled:T,rootRef:k})),j=v??c.jsx(Vv,{color:E,thickness:{sm:2,md:3,lg:4}[P]||3});p.useImperativeHandle(i,()=>({focusVisible:()=>{var oe;L(!0),(oe=I.current)==null||oe.focus()}}),[L]);const A=C({},o,{color:E,fullWidth:d,variant:b,size:P,focusVisible:D,loading:g,loadingPosition:m,disabled:T}),M=o4(A),F=oe=>{var ge;let te=o.onClick;if(typeof y.root=="function"?te=y.root(A).onClick:y.root&&(te=y.root.onClick),(ge=te)==null||ge(oe),O){var Ee;(Ee=O.onClick)==null||Ee.call(O,oe,o.value)}};let V=o["aria-pressed"];typeof y.root=="function"?V=y.root(A)["aria-pressed"]:y.root&&(V=y.root["aria-pressed"]),O!=null&&O.value&&(Array.isArray(O.value)?V=O.value.indexOf(o.value)!==-1:V=O.value===o.value);const K=C({},_,{component:w,slots:S,slotProps:y}),[le,xe]=he("root",{ref:r,className:M.root,elementType:c4,externalForwardedProps:K,getSlotProps:$,ownerState:A,additionalProps:{onClick:F,"aria-pressed":V}}),[de,re]=he("startDecorator",{className:M.startDecorator,elementType:a4,externalForwardedProps:K,ownerState:A}),[_e,G]=he("endDecorator",{className:M.endDecorator,elementType:i4,externalForwardedProps:K,ownerState:A}),[U,X]=he("loadingIndicatorCenter",{className:M.loadingIndicatorCenter,elementType:s4,externalForwardedProps:K,ownerState:A});return c.jsxs(le,C({},xe,{children:[(f||g&&m==="start")&&c.jsx(de,C({},re,{children:g&&m==="start"?j:f})),a,g&&m==="center"&&c.jsx(U,C({},X,{children:j})),(h||g&&m==="end")&&c.jsx(_e,C({},G,{children:g&&m==="end"?j:h}))]}))});wr.muiName="Button";function u4(e){return it("MuiCard",e)}ct("MuiCard",["root","colorPrimary","colorNeutral","colorDanger","colorSuccess","colorWarning","colorContext","variantPlain","variantOutlined","variantSoft","variantSolid","sizeSm","sizeMd","sizeLg","horizontal","vertical"]);const d4=["className","color","component","invertedColors","size","variant","children","orientation","slots","slotProps"],f4=e=>{const{size:t,variant:r,color:n,orientation:o}=e,a={root:["root",o,r&&`variant${ae(r)}`,n&&`color${ae(n)}`,t&&`size${ae(t)}`]};return ot(a,u4,{})},h4=Q("div")(({theme:e,ownerState:t})=>{var r;const{p:n,padding:o,borderRadius:a}=ja({theme:e,ownerState:t},["p","padding","borderRadius"]);return[C({"--Icon-color":t.color!=="neutral"||t.variant==="solid"?"currentColor":e.vars.palette.text.icon,"--Card-childRadius":"max((var(--Card-radius) - var(--variant-borderWidth, 0px)) - var(--Card-padding), min(var(--Card-padding) / 2, (var(--Card-radius) - var(--variant-borderWidth, 0px)) / 2))","--AspectRatio-radius":"var(--Card-childRadius)","--unstable_actionMargin":"calc(-1 * var(--variant-borderWidth, 0px))","--unstable_actionRadius":"var(--Card-radius)","--CardCover-radius":"calc(var(--Card-radius) - var(--variant-borderWidth, 0px))","--CardOverflow-offset":"calc(-1 * var(--Card-padding))","--CardOverflow-radius":"calc(var(--Card-radius) - var(--variant-borderWidth, 0px))","--Divider-inset":"calc(-1 * var(--Card-padding))"},t.size==="sm"&&{"--Card-radius":e.vars.radius.sm,"--Card-padding":"0.625rem",gap:"0.5rem"}
50,t.size==="md"&&{"--Card-radius":e.vars.radius.md,"--Card-padding":"1rem",gap:"0.75rem 1rem"},t.size==="lg"&&{"--Card-radius":e.vars.radius.lg,"--Card-padding":"1.5rem",gap:"1rem 1.5rem"},{padding:"var(--Card-padding)",borderRadius:"var(--Card-radius)",backgroundColor:e.vars.palette.background.surface,position:"relative",display:"flex",flexDirection:t.orientation==="horizontal"?"row":"column"},e.typography[`body-${t.size}`],t.variant==="solid"&&t.color&&t.invertedColors&&hl(t.color)(e),t.variant==="soft"&&t.color&&t.invertedColors&&pl(t.color)(e),(r=e.variants[t.variant])==null?void 0:r[t.color]),n!==void 0&&{"--Card-padding":n},o!==void 0&&{"--Card-padding":o},a!==void 0&&{"--Card-radius":a}]}),p4=Q(h4,{name:"JoyCard",slot:"Root",overridesResolver:(e,t)=>t.root})({}),kr=p.forwardRef(function(t,r){const n=ut({props:t,name:"JoyCard"}),{className:o,color:a="neutral",component:i="div",invertedColors:s=!1,size:l="md",variant:u="outlined",children:d,orientation:f="vertical",slots:h={},slotProps:g={}}=n,m=we(n,d4),v=C({},n,{color:a,component:i,orientation:f,size:l,variant:u,invertedColors:s}),x=f4(v),w=C({},m,{component:i,slots:h,slotProps:g}),[S,y]=he("root",{ref:r,className:Bt(x.root,o),elementType:p4,externalForwardedProps:w,ownerState:v});return c.jsx(S,C({},y,{children:p.Children.map(d,(_,R)=>{if(!p.isValidElement(_))return _;const O={};if(Hi(_,["Divider"])){var b,P;const E=_.props;O.inset=(b=E==null?void 0:E.inset)!=null?b:"context";const T=f==="vertical"?"horizontal":"vertical";O.orientation=(P=E==null?void 0:E.orientation)!=null?P:T}return R===0&&(O["data-first-child"]=""),R===p.Children.count(d)-1&&(O["data-last-child"]=""),p.cloneElement(_,O)})}))});function m4(e){return it("MuiDivider",e)}ct("MuiDivider",["root","horizontal","vertical","insetContext","insetNone"]);function g4(e){return it("MuiCheckbox",e)}const Za=ct("MuiCheckbox",["root","checkbox","action","input","label","checked","disabled","focusVisible","indeterminate","colorPrimary","colorDanger","colorNeutral","colorSuccess","colorWarning","colorContext","sizeSm","sizeMd","sizeLg","variantOutlined","variantSoft","variantSolid"]),v4=Aa(c.jsx("path",{d:"M9 16.17 5.53 12.7a.9959.9959 0 0 0-1.41 0c-.39.39-.39 1.02 0 1.41l4.18 4.18c.39.39 1.02.39 1.41 0L20.29 7.71c.39-.39.39-1.02 0-1.41a.9959.9959 0 0 0-1.41 0L9 16.17z"}),"Check"),y4=Aa(c.jsx("path",{d:"M19 13H5c-.55 0-1-.45-1-1s.45-1 1-1h14c.55 0 1 .45 1 1s-.45 1-1 1z"}),"HorizontalRule"),b4=["checked","uncheckedIcon","checkedIcon","label","defaultChecked","disabled","disableIcon","overlay","id","indeterminate","indeterminateIcon","name","onBlur","onChange","onFocus","onFocusVisible","readOnly","required","value","color","variant","size","component","slots","slotProps"],x4=e=>{const{checked:t,disabled:r,disableIcon:n,focusVisible:o,color:a,variant:i,size:s,indeterminate:l}=e,u={root:["root",t&&"checked",r&&"disabled",o&&"focusVisible",i&&`variant${ae(i)}`,a&&`color${ae(a)}`,s&&`size${ae(s)}`],checkbox:["checkbox",t&&"checked",l&&"indeterminate",r&&"disabled"],action:["action",t&&"checked",n&&r&&"disabled",o&&"focusVisible"],input:["input"],label:["label"]};return ot(u,g4,{})},C4=Q("span",{name:"JoyCheckbox",slot:"Root",overridesResolver:(e,t)=>t.root})(({ownerState:e,theme:t})=>{var r,n,o;return C({"--Icon-fontSize":"var(--Checkbox-size)"},e.size==="sm"&&{"--Checkbox-size":"1rem","& ~ *":{"--FormHelperText-margin":"0 0 0 1.5rem"},fontSize:t.vars.fontSize.sm,gap:"var(--Checkbox-gap, 0.5rem)"}
50,e.size==="md"&&{"--Checkbox-size":"1.25rem","& ~ *":{"--FormHelperText-margin":"0.25rem 0 0 1.875rem"},fontSize:t.vars.fontSize.md,gap:"var(--Checkbox-gap, 0.625rem)"},e.size==="lg"&&{"--Checkbox-size":"1.5rem","& ~ *":{"--FormHelperText-margin":"0.375rem 0 0 2.25rem"},fontSize:t.vars.fontSize.lg,gap:"var(--Checkbox-gap, 0.75rem)"},{position:e.overlay?"initial":"relative",display:"inline-flex",fontFamily:t.vars.fontFamily.body,lineHeight:"var(--Checkbox-size)",color:t.vars.palette.text.primary,[`&.${Za.disabled}`]:{color:(r=t.variants.plainDisabled)==null||(r=r[e.color])==null?void 0:r.color}},e.disableIcon&&{color:(n=t.variants[e.variant])==null||(n=n[e.color])==null?void 0:n.color,[`&.${Za.disabled}`]:{color:(o=t.variants[`${e.variant}Disabled`])==null||(o=o[e.color])==null?void 0:o.color}})}),S4=Q("span",{name:"JoyCheckbox",slot:"Checkbox",overridesResolver:(e,t)=>t.checkbox})(({theme:e,ownerState:t})=>{var r,n,o,a,i;const s=(r=e.variants[`${t.variant}`])==null?void 0:r[t.color];return[C({"--Icon-color":t.color!=="neutral"||t.variant==="solid"?"currentColor":e.vars.palette.text.icon,boxSizing:"border-box",borderRadius:`min(${e.vars.radius.sm}, 0.25rem)`,width:"var(--Checkbox-size)",height:"var(--Checkbox-size)",display:"inline-flex",justifyContent:"center",alignItems:"center",flexShrink:0},t.disableIcon&&{display:"contents"},{[`&.${Za.checked}, &.${Za.indeterminate}`]:{"--Icon-color":"currentColor"}}),...t.disableIcon?[]:[C({},s,{backgroundColor:(n=s==null?void 0:s.backgroundColor)!=null?n:e.vars.palette.background.surface}),{"&:hover":{"@media (hover: hover)":(o=e.variants[`${t.variant}Hover`])==null?void 0:o[t.color]}},{"&:active":(a=e.variants[`${t.variant}Active`])==null?void 0:a[t.color]},{[`&.${Za.disabled}`]:(i=e.variants[`${t.variant}Disabled`])==null?void 0:i[t.color]}]]}),w4=Q("span",{name:"JoyCheckbox",slot:"Action",overridesResolver:(e,t)=>t.action})(({theme:e,ownerState:t})=>{var r,n,o,a;return[{borderRadius:`var(--Checkbox-actionRadius, ${t.overlay?"var(--unstable_actionRadius, inherit)":"inherit"})`,textAlign:"left",position:"absolute",top:"calc(-1 * var(--variant-borderWidth, 0px))",left:"calc(-1 * var(--variant-borderWidth, 0px))",bottom:"calc(-1 * var(--variant-borderWidth, 0px))",right:"calc(-1 * var(--variant-borderWidth, 0px))",zIndex:1,[e.focus.selector]:e.focus.default},...t.disableIcon?[(r=e.variants[t.variant])==null?void 0:r[t.color],{"&:hover":(n=e.variants[`${t.variant}Hover`])==null?void 0:n[t.color]},{"&:active":(o=e.variants[`${t.variant}Active`])==null?void 0:o[t.color]},{[`&.${Za.disabled}`]:(a=e.variants[`${t.variant}Disabled`])==null?void 0:a[t.color]}]:[]]}),k4=Q("input",{name:"JoyCheckbox",slot:"Input",overridesResolver:(e,t)=>t.input})(()=>({margin:0,opacity:0,position:"absolute",width:"100%",height:"100%",cursor:"pointer"})),_4=Q("label",{name:"JoyCheckbox",slot:"Label",overridesResolver:(e,t)=>t.label})(({ownerState:e})=>C({flex:1,minWidth:0},e.disableIcon&&{zIndex:1,pointerEvents:"none"})),E4=c.jsx(v4,{}),P4=c.jsx(y4,{}),fo=p.forwardRef(function(t,r){var n,o,a,i,s;const l=ut({props:t,name:"JoyCheckbox"}),{checked:u,uncheckedIcon:d,checkedIcon:f=E4,label:h,defaultChecked:g,disabled:m,disableIcon:v=!1,overlay:x,id:w,indeterminate:S=!1,indeterminateIcon:y=P4,name:_,onBlur:R,onChange:O,onFocus:b,onFocusVisible:P,readOnly:E,required:T,value:I,color:k,variant:D,size:L="md",component:$,slots:j={},slotProps:A={}}=l,M=we(l,b4),F=p.useContext(xo),V=(n=(o=t.disabled)!=null?o:F==null?void 0:F.disabled)!=null?n:m,K=(a=(i=t.size)!=null?i:F==null?void 0:F.size)!=null?a:L,le=zr(w??(F==null?void 0:F.htmlFor)),xe={checked:u,defaultChecked:g,disabled:V,onBlur:R,onChange:O,onFocus:b,onFocusVisible:P},{getInputProps:de,checked:re,disabled:_e,focusVisible:G}=Lv(xe),U=re||S,ge=U?D||"solid":D||"outlined",te=t.color||(F!=null&&F.error?"danger":(s=F==null?void 0:F.color)!=null?s:k),ve=C({},l,{checked:re,disabled:_e,disableIcon:v,overlay:x,focusVisible:G,color:U?te||"primary":te||"neutral",variant:ge,size:K}),ne=x4(ve),We=C({},M,{component:$,slots:j,slotProps:A}),[Re,st]=he("root",{ref:r,className:ne.root,elementType:C4,externalForwardedProps:We,ownerState:ve}),[gt,jt]=he("checkbox",{className:ne.checkbox,elementType:S4,externalForwardedProps:We,ownerState:ve}
50),[At,qe]=he("action",{className:ne.action,elementType:w4,externalForwardedProps:We,ownerState:ve}),[J,Ve]=he("input",{additionalProps:C({id:le,name:_,value:I,readOnly:E,role:void 0,required:T??(F==null?void 0:F.required),"aria-describedby":F==null?void 0:F["aria-describedby"]},S&&{"aria-checked":"mixed"}),className:ne.input,elementType:k4,externalForwardedProps:We,getSlotProps:de,ownerState:ve}),[Ke,Ye]=he("label",{additionalProps:{htmlFor:le},className:ne.label,elementType:_4,externalForwardedProps:We,ownerState:ve});let ze=d;return v?ze=null:S?ze=y:re&&(ze=f),c.jsxs(Re,C({},st,{children:[c.jsxs(gt,C({},jt,{children:[c.jsx(At,C({},qe,{children:c.jsx(J,C({},Ve))})),ze]})),h&&c.jsx(Pi.Provider,{value:!0,children:c.jsx(Ke,C({},Ye,{children:h}))})]}))}),ml=AS({createStyledComponent:Q("div",{name:"JoyContainer",slot:"Root",overridesResolver:(e,t)=>t.root}),useThemeProps:e=>ut({props:e,name:"JoyContainer"})});function R4(e){const{children:t,disableColorScheme:r=!1}=e;return c.jsxs(p.Fragment,{children:[c.jsx(sw,{styles:n=>{var o,a;const i={};r||Object.entries(n.colorSchemes).forEach(([l,u])=>{var d;i[n.getColorSchemeSelector(l).replace(/\s*&/,"")]={colorScheme:(d=u.palette)==null?void 0:d.mode}});const s=(o=(a=n.components)==null||(a=a.JoyTypography)==null||(a=a.defaultProps)==null?void 0:a.level)!=null?o:"body-md";return C({html:{WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale",boxSizing:"border-box",WebkitTextSizeAdjust:"100%"},"*, *::before, *::after":{boxSizing:"inherit"},"strong, b":{fontWeight:n.vars.fontWeight.lg},body:C({margin:0,color:n.vars.palette.text.primary,fontFamily:n.vars.fontFamily.body},n.typography[s],{backgroundColor:n.vars.palette.background.body,"@media print":{backgroundColor:n.vars.palette.common.white},"&::backdrop":{backgroundColor:n.vars.palette.background.backdrop}})},i)},defaultTheme:Oa}),t]})}const T4=["className","children","component","inset","orientation","role","slots","slotProps"],I4=e=>{const{orientation:t,inset:r}=e,n={root:["root",t,r&&`inset${ae(r)}`]};return ot(n,m4,{})},D4=Q("hr",{name:"JoyDivider",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e,ownerState:t})=>C({"--Divider-thickness":"1px","--Divider-lineColor":e.vars.palette.divider},t.inset==="none"&&{"--_Divider-inset":"0px"},t.inset==="context"&&{"--_Divider-inset":"var(--Divider-inset, 0px)"},{margin:"initial",marginInline:t.orientation==="vertical"?"initial":"var(--_Divider-inset)",marginBlock:t.orientation==="vertical"?"var(--_Divider-inset)":"initial",position:"relative",alignSelf:"stretch",flexShrink:0},t.children?C({"--Divider-gap":e.spacing(1),"--Divider-childPosition":"50%",display:"flex",flexDirection:t.orientation==="vertical"?"column":"row",alignItems:"center",whiteSpace:"nowrap",textAlign:"center",border:0},e.typography["body-sm"],{"&::before, &::after":{position:"relative",inlineSize:t.orientation==="vertical"?"var(--Divider-thickness)":"initial",blockSize:t.orientation==="vertical"?"initial":"var(--Divider-thickness)",backgroundColor:"var(--Divider-lineColor)",content:'""'},"&::before":{marginInlineEnd:t.orientation==="vertical"?"initial":"min(var(--Divider-childPosition) * 999, var(--Divider-gap))",marginBlockEnd:t.orientation==="vertical"?"min(var(--Divider-childPosition) * 999, var(--Divider-gap))":"initial",flexBasis:"var(--Divider-childPosition)"},"&::after":{marginInlineStart:t.orientation==="vertical"?"initial":"min((100% - var(--Divider-childPosition)) * 999, var(--Divider-gap))",marginBlockStart:t.orientation==="vertical"?"min((100% - var(--Divider-childPosition)) * 999, var(--Divider-gap))":"initial",flexBasis:"calc(100% - var(--Divider-childPosition))"}}):{border:"none",listStyle:"none",backgroundColor:"var(--Divider-lineColor)",inlineSize:t.orientation==="vertical"?"var(--Divider-thickness)":"initial",blockSize:t.orientation==="vertical"?"initial":"var(--Divider-thickness)"})),la=p.forwardRef(function(t,r){const n=ut({props:t,name:"JoyDivider"}),{className:o,children:a,component:i=a!=null?"div":"hr",inset:s,orientation:l="horizontal",role:u=i!=="hr"?"separator":void 0,slots:d={},slotProps:f={}}=n,h=we(n,T4),g=C({},n,{inset:s,role:u,orientation:l,component:i}),m=I4(g),v=C({},h,{component:i,slots:d,slotProps:f}),[x,w]=he("root",{ref:r,className:Bt(m.root,o),elementType:D4,externalForwardedProps:v,ownerState:g,additionalProps:C({as:i,role:u},u==="separator"&&l==="vertical"&&{"aria-orientation":"vertical"})});return c.jsx(x,C({},w,{children:a}))});la.muiName="Divider";function O4(e){return it("MuiModal",e)}ct("MuiModal",["root","hidden","backdrop"]);const $4=p.createContext(void 0),j4=["children","container","disableAutoFocus","disableEnforceFocus","disableEscapeKeyDown","disablePortal","disableRestoreFocus","disableScrollLock","hideBackdrop","keepMounted","onClose","onKeyDown","open","component","slots","slotProps"],A4=e=>{const{open:t}=e;return ot({root:["root",!t&&"hidden"],backdrop:["backdrop"]},O4,{})},L4=Q("div")(({ownerState:e,theme:t})=>C({"--unstable_popup-zIndex":`calc(${t.vars.zIndex.modal} + 1)`,'& ~ [role="listbox"]':{"--unstable_popup-zIndex":`calc(${t.vars.zIndex.modal} + 1)`},position:"fixed",zIndex:t.vars.zIndex.modal,right:0,bottom:0,top:0,left:0},!e.open&&{visibility:"hidden"})),M4=Q(L4,{name:"JoyModal",slot:"Root",overridesResolver:(e,t)=>t.root})({}),z4=Q("div")(({theme:e})=>({zIndex:-1,position:"fixed",right:0,bottom:0,top:0,left:0,backgroundColor:e.vars.palette.background.backdrop,WebkitTapHighlightColor:"transparent",backdropFilter:"blur(8px)"})),N4=Q(z4,{name:"JoyModal",slot:"Backdrop",overridesResolver:(e,t)=>t.backdrop})({}),F4=p.forwardRef(function(t,r){const n=ut({props:t,name:"JoyModal"}),{children:o,container:a,disableAutoFocus:i=!1,disableEnforceFocus:s=!1,disableEscapeKeyDown:l=!1,disablePortal:u=!1,disableRestoreFocus:d=!1,disableScrollLock:f=!1,hideBackdrop:h=!1,keepMounted:g=!1,onClose:m,open:v,component:x,slots:w={},slotProps:S={}}=n,y=we(n,j4),_=C({},n,{disableAutoFocus:i,disableEnforceFocus:s,disableEscapeKeyDown:l,disablePortal:u,disableRestoreFocus:d,disableScrollLock:f,hideBackdrop:h,keepMounted:g}),{getRootProps:R,getBackdropProps:O,rootRef:b,portalRef:P,isTopModal:E}=d5(C({},_,{rootRef:r})),T=A4(_),I=C({},y,{component:x,slots:w,slotProps:S}),[k,D]=he("root",{ref:b,className:T.root,elementType:M4,externalForwardedProps:I,getSlotProps:R,ownerState:_}),[L,$]=he("backdrop",{className:T.backdrop,elementType:N4,externalForwardedProps:I,getSlotProps:O,ownerState:_});return!g&&!v?null:c.jsx($4.Provider,{value:m,children:c.jsx(Ev,{ref:P,container:a,disablePortal:u,children:c.jsxs(k,C({},D,{children:[h?null:c.jsx(L,C({},$)),c.jsx(Ew,{disableEnforceFocus:s,disableAutoFocus:i,disableRestoreFocus:d,isEnabled:E,open:v,children:p.Children.only(o)&&p.cloneElement(o,C({},o.props.tabIndex===void 0&&{tabIndex:-1}))})]}))})})});function H4(e){return it("MuiFormControl",e)}const Wd=ct("MuiFormControl",["root","error","disabled","colorPrimary","colorNeutral","colorDanger","colorSuccess","colorWarning","sizeSm","sizeMd","sizeLg","horizontal","vertical"]);function u7(e){return it("MuiSwitch",e)}const B4=ct("MuiSwitch",["root","checked","disabled","action","input","thumb","track","focusVisible","readOnly","colorPrimary","colorDanger","colorSuccess","colorWarning","colorContext","sizeSm","sizeMd","sizeLg","variantOutlined","variantSoft","variantSolid","startDecorator","endDecorator"]),W4=["id","className","component","disabled","required","error","color","size","orientation","slots","slotProps"],U4=e=>{const{disabled:t,error:r,size:n,color:o,orientation:a}=e,i={root:["root",a,t&&"disabled",r&&"error",o&&`color${ae(o)}`,n&&`size${ae(n)}`]};return ot(i,H4,{})},V4=Q("div",{name:"JoyFormControl",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e,ownerState:t})=>{var r,n,o;return C({"--unstable_RadioGroup-margin":"0.5rem 0","--FormLabel-alignSelf":t.orientation==="horizontal"?"align-items":"flex-start","--FormLabel-asteriskColor":e.vars.palette.danger[500]},t.size==="sm"&&{"--FormLabel-fontSize":e.vars.fontSize.xs,"--FormLabel-lineHeight":e.vars.lineHeight.xl,"--FormLabel-margin":t.orientation==="horizontal"?"0 0.5rem 0 0":"0 0 0.25rem 0","--FormHelperText-fontSize":e.vars.fontSize.xs,"--FormHelperText-lineHeight":e.vars.lineHeight.xl}
50,t.size==="md"&&{"--FormLabel-fontSize":e.vars.fontSize.sm,"--FormLabel-lineHeight":e.vars.lineHeight.sm,"--FormLabel-margin":t.orientation==="horizontal"?"0 0.75rem 0 0":"0 0 0.375rem 0","--FormHelperText-fontSize":e.vars.fontSize.sm,"--FormHelperText-lineHeight":e.vars.lineHeight.sm},t.size==="lg"&&{"--FormLabel-fontSize":e.vars.fontSize.md,"--FormLabel-lineHeight":e.vars.lineHeight.md,"--FormLabel-margin":t.orientation==="horizontal"?"0 1rem 0 0":"0 0 0.5rem 0","--FormHelperText-fontSize":e.vars.fontSize.sm,"--FormHelperText-lineHeight":e.vars.lineHeight.sm},t.color&&{"--FormHelperText-color":(r=e.vars.palette[t.color])==null?void 0:r[500]},{"--FormHelperText-margin":"0.375rem 0 0 0",[`&.${Wd.error}`]:{"--FormHelperText-color":e.vars.palette.danger[500]},[`&.${Wd.disabled}`]:{"--FormLabel-color":(n=e.variants.plainDisabled)==null||(n=n[t.color||"neutral"])==null?void 0:n.color,"--FormHelperText-color":(o=e.variants.plainDisabled)==null||(o=o[t.color||"neutral"])==null?void 0:o.color},display:"flex",position:"relative",flexDirection:t.orientation==="horizontal"?"row":"column"},t.orientation==="horizontal"&&{[`& > label ~ .${B4.root}`]:{"--unstable_Switch-margin":"0 0 0 auto"}})}),ks=p.forwardRef(function(t,r){const n=ut({props:t,name:"JoyFormControl"}),{id:o,className:a,component:i="div",disabled:s=!1,required:l=!1,error:u=!1,color:d,size:f="md",orientation:h="vertical",slots:g={},slotProps:m={}}=n,v=we(n,W4),x=zr(o),[w,S]=p.useState(null),y=C({},n,{id:x,component:i,color:d,disabled:s,error:u,required:l,size:f,orientation:h});let _;const R=U4(y),[O,b]=he("root",{ref:r,className:Bt(R.root,a),elementType:V4,externalForwardedProps:C({},v,{component:i,slots:g,slotProps:m}),ownerState:y}),P=p.useMemo(()=>({disabled:s,required:l,error:u,color:d,size:f,htmlFor:x,labelId:`${x}-label`,"aria-describedby":w?`${x}-helper-text`:void 0,setHelperText:S,registerEffect:_}),[d,s,u,w,x,_,l,f]);return c.jsx(xo.Provider,{value:P,children:c.jsx(O,C({},b))})});function Y4(e){return it("MuiFormHelperText",e)}ct("MuiFormHelperText",["root"]);function d7(e){return it("MuiFormLabel",e)}const G4=ct("MuiFormLabel",["root","asterisk"]),K4=["children","component","slots","slotProps"],J4=()=>ot({root:["root"]},Y4,{}),q4=Q("div",{name:"JoyFormHelperText",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e})=>({"--Icon-fontSize":"calc(var(--FormHelperText-lineHeight) * 1em)",display:"flex",alignItems:"center",gap:"2px",fontFamily:e.vars.fontFamily.body,fontSize:`var(--FormHelperText-fontSize, ${e.vars.fontSize.sm})`,lineHeight:`var(--FormHelperText-lineHeight, ${e.vars.lineHeight.sm})`,color:`var(--FormHelperText-color, ${e.vars.palette.text.tertiary})`,margin:"var(--FormHelperText-margin, 0px)",[`.${G4.root} + &`]:{"--FormHelperText-margin":"0px"},[`.${Wd.error} &`]:{"--Icon-color":"currentColor"}})),ec=p.forwardRef(function(t,r){const n=ut({props:t,name:"JoyFormHelperText"}),{children:o,component:a,slots:i={},slotProps:s={}}=n,l=we(n,K4),u=p.useRef(null),d=It(u,r),f=p.useContext(xo),h=f==null?void 0:f.setHelperText;p.useEffect(()=>(h==null||h(u.current),()=>{h==null||h(null)}),[h]);const g=J4(),m=C({},l,{component:a,slots:i,slotProps:s}),[v,x]=he("root",{ref:d,elementType:q4,externalForwardedProps:m,ownerState:n,additionalProps:{as:a,id:f==null?void 0:f["aria-describedby"]},className:g.root});return c.jsx(v,C({},x,{children:o}))}),bt=XS({createStyledComponent:Q("div",{name:"JoyGrid",slot:"Root",overridesResolver:(e,t)=>t.root}),useThemeProps:e=>ut({props:e,name:"JoyGrid"})});function X4(e){return it("MuiLink",e)}const wm=ct("MuiLink",["root","disabled","focusVisible","colorPrimary","colorNeutral","colorDanger","colorSuccess","colorWarning","colorContext","focusVisible","variantPlain","variantOutlined","variantSoft","variantSolid","underlineNone","underlineHover","underlineAlways","h1","h2","h3","h4","title-lg","title-md","title-sm","body-lg","body-md","body-sm","body-xs","startDecorator","endDecorator"]),Q4=["color","textColor","variant"],Z4=["children","disabled","onBlur","onFocus","level","overlay","underline","endDecorator","startDecorator","component","slots","slotProps"],eE=e=>{const{level:t,color:r,variant:n,underline:o,focusVisible:a,disabled:i}=e,s={root:["root",r&&`color${ae(r)}
50`,i&&"disabled",a&&"focusVisible",t,o&&`underline${ae(o)}`,n&&`variant${ae(n)}`],startDecorator:["startDecorator"],endDecorator:["endDecorator"]};return ot(s,X4,{})},tE=Q("span",{name:"JoyLink",slot:"StartDecorator",overridesResolver:(e,t)=>t.startDecorator})(({ownerState:e})=>{var t;return C({display:"inline-flex",marginInlineEnd:"clamp(4px, var(--Link-gap, 0.375em), 0.75rem)"},typeof e.startDecorator!="string"&&(e.alignItems==="flex-start"||((t=e.sx)==null?void 0:t.alignItems)==="flex-start")&&{marginTop:"2px"})}),rE=Q("span",{name:"JoyLink",slot:"endDecorator",overridesResolver:(e,t)=>t.endDecorator})(({ownerState:e})=>{var t;return C({display:"inline-flex",marginInlineStart:"clamp(4px, var(--Link-gap, 0.25em), 0.5rem)"},typeof e.startDecorator!="string"&&(e.alignItems==="flex-start"||((t=e.sx)==null?void 0:t.alignItems)==="flex-start")&&{marginTop:"2px"})}),nE=Q("a",{name:"JoyLink",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e,ownerState:t})=>{var r,n,o,a,i,s,l;return[C({"--Icon-fontSize":"1.25em","--Icon-color":"currentColor","--CircularProgress-size":"1.25em","--CircularProgress-thickness":"3px"},t.level&&t.level!=="inherit"&&e.typography[t.level],t.level==="inherit"&&{font:"inherit"},t.underline==="none"&&{textDecoration:"none"},t.underline==="hover"&&{textDecoration:"none","&:hover":{"@media (hover: hover)":{textDecorationLine:"underline"}}},t.underline==="always"&&{textDecoration:"underline"},t.startDecorator&&{verticalAlign:"bottom"},{textDecorationThickness:"max(0.08em, 1px)",textUnderlineOffset:"0.15em",display:"inline-flex",alignItems:"center",WebkitTapHighlightColor:"transparent",backgroundColor:"transparent",outline:0,border:0,margin:0,borderRadius:e.vars.radius.xs,padding:0,cursor:"pointer",textDecorationColor:`var(--variant-outlinedBorder, rgba(${(r=e.vars.palette[t.color])==null?void 0:r.mainChannel} / var(--Link-underlineOpacity, 0.72)))`},t.variant?C({paddingBlock:"min(0.1em, 4px)",paddingInline:"0.25em"},!t.nesting&&{marginInline:"-0.25em"}):{color:`var(--variant-plainColor, rgba(${(n=e.vars.palette[t.color])==null?void 0:n.mainChannel} / 1))`,[`&.${wm.disabled}`]:{pointerEvents:"none",color:`var(--variant-plainDisabledColor, rgba(${(o=e.vars.palette[t.color])==null?void 0:o.mainChannel} / 0.6))`}},{userSelect:t.component==="button"?"none":void 0,MozAppearance:"none",WebkitAppearance:"none","&::-moz-focus-inner":{borderStyle:"none"}},t.overlay?{position:"initial","&::after":{content:'""',display:"block",position:"absolute",top:0,left:0,bottom:0,right:0,borderRadius:"var(--unstable_actionRadius, inherit)",margin:"var(--unstable_actionMargin)"},[`${e.focus.selector}`]:{"&::after":e.focus.default}}:{position:"relative",[e.focus.selector]:e.focus.default}),t.variant&&C({},(a=e.variants[t.variant])==null?void 0:a[t.color],{"&:hover":{"@media (hover: hover)":(i=e.variants[`${t.variant}Hover`])==null?void 0:i[t.color]},"&:active":(s=e.variants[`${t.variant}Active`])==null?void 0:s[t.color],[`&.${wm.disabled}`]:(l=e.variants[`${t.variant}Disabled`])==null?void 0:l[t.color]})]}),Pl=p.forwardRef(function(t,r){const n=ut({props:t,name:"JoyLink"}),{color:o="primary",textColor:a,variant:i}=n,s=we(n,Q4),l=p.useContext(Pi),u=p.useContext(ey),d=Ni(C({},s,{color:a})),{children:f,disabled:h=!1,onBlur:g,onFocus:m,level:v="body-md",overlay:x=!1,underline:w="hover",endDecorator:S,startDecorator:y,component:_,slots:R={},slotProps:O={}}=d,b=we(d,Z4),P=l||u?t.level||"inherit":v,{isFocusVisibleRef:E,onBlur:T,onFocus:I,ref:k}=ll(),[D,L]=p.useState(!1),$=It(r,k),j=G=>{T(G),E.current===!1&&L(!1),g&&g(G)},A=G=>{I(G),E.current===!0&&L(!0),m&&m(G)},M=C({},d,{color:o,disabled:h,focusVisible:D,underline:w,variant:i,level:P,overlay:x,nesting:l}),F=eE(M),V=C({},b,{component:_,slots:R,slotProps:O}),[K,le]=he("root",{additionalProps:{onBlur:j,onFocus:A},ref:$,className:F.root,elementType:nE,externalForwardedProps:V,ownerState:M}),[xe,de]=he("startDecorator",{className:F.startDecorator,elementType:tE,externalForwardedProps:V,ownerState:M}),[re,_e]=he("endDecorator",{className:F.endDecorator,elementType:rE,externalForwardedProps:V,ownerState:M});return c.jsx(Pi.Provider,{value:!0,children:c.jsxs(K,C({},le,{children:[y&&c.jsx(xe,C({},de,{children:y})),Hi(f,["Skeleton"])?p.cloneElement(f,{variant:f.props.variant||"inline"}):f,S&&c.jsx(re,C({},_e,{children:S}))]}))})});function oE(e){return it("MuiListItemContent",e)}ct("MuiListItemContent",["root"]);const aE=["component","className","children","slots","slotProps"],iE=()=>ot({root:["root"]},oE,{}),sE=Q("div",{name:"JoyListItemContent",slot:"Root",overridesResolver:(e,t)=>t.root})({flex:"1 1 auto",minWidth:0}),aa=p.forwardRef(function(t,r){const n=ut({props:t,name:"JoyListItemContent"}),{component:o,className:a,children:i,slots:s={},slotProps:l={}}=n,u=we(n,aE),d=C({},n),f=iE(),h=C({},u,{component:o,slots:s,slotProps:l}),[g,m]=he("root",{ref:r,className:Bt(f.root,a),elementType:sE,externalForwardedProps:h,ownerState:d});return c.jsx(g,C({},m,{children:i}))});function lE(e){return it("MuiListItemDecorator",e)}
50ct("MuiListItemDecorator",["root"]);const cE=["component","className","children","slots","slotProps"],uE=()=>ot({root:["root"]},lE,{}),dE=Q("span",{name:"JoyListItemDecorator",slot:"Root",overridesResolver:(e,t)=>t.root})(({ownerState:e})=>C({boxSizing:"border-box",display:"inline-flex",alignItems:`var(--unstable_ListItemDecorator-alignItems, ${e.parentOrientation==="horizontal"?"center":"initial"})`},e.parentOrientation==="horizontal"?{minInlineSize:"var(--ListItemDecorator-size)",marginInlineEnd:"calc(-1 * var(--ListItem-gap))"}:{minBlockSize:"var(--ListItemDecorator-size)",justifyContent:"center",marginBlockEnd:"calc(-1 * var(--ListItem-gap))"})),ta=p.forwardRef(function(t,r){const n=ut({props:t,name:"JoyListItemDecorator"}),{component:o,className:a,children:i,slots:s={},slotProps:l={}}=n,u=we(n,cE),d=p.useContext(bh),f=C({parentOrientation:d},n),h=uE(),g=C({},u,{component:o,slots:s,slotProps:l}),[m,v]=he("root",{ref:r,className:Bt(h.root,a),elementType:dE,externalForwardedProps:g,ownerState:f});return c.jsx(m,C({},v,{children:i}))});function fE(e){return it("MuiMenu",e)}ct("MuiMenu",["root","listbox","expanded","colorPrimary","colorNeutral","colorDanger","colorSuccess","colorWarning","colorContext","variantPlain","variantOutlined","variantSoft","variantSolid","sizeSm","sizeMd","sizeLg"]);const hE=["actions","children","color","component","disablePortal","keepMounted","id","invertedColors","onItemsChange","modifiers","variant","size","slots","slotProps"],pE=e=>{const{open:t,variant:r,color:n,size:o}=e,a={root:["root",t&&"expanded",r&&`variant${ae(r)}`,n&&`color${ae(n)}`,o&&`size${ae(o)}`],listbox:["listbox"]};return ot(a,fE,{})},km=Q(ku,{name:"JoyMenu",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e,ownerState:t})=>{var r,n;const o=(r=e.variants[t.variant])==null?void 0:r[t.color];return[C({"--focus-outline-offset":`calc(${e.vars.focus.thickness} * -1)`,"--ListItem-stickyBackground":(o==null?void 0:o.backgroundColor)||(o==null?void 0:o.background)||e.vars.palette.background.popup,"--ListItem-stickyTop":"calc(var(--List-padding, var(--ListDivider-gap)) * -1)"},vh,{borderRadius:`var(--List-radius, ${e.vars.radius.sm})`,boxShadow:e.shadow.md,overflow:"auto",zIndex:`var(--unstable_popup-zIndex, ${e.vars.zIndex.popup})`},!(o!=null&&o.backgroundColor)&&{backgroundColor:e.vars.palette.background.popup},t.variant==="solid"&&t.color&&t.invertedColors&&hl(t.color)(e),t.variant==="soft"&&t.color&&t.invertedColors&&pl(t.color)(e),(n=e.variants[t.variant])==null?void 0:n[t.color])]}),mE=p.forwardRef(function(t,r){var n;const o=ut({props:t,name:"JoyMenu"}),{actions:a,children:i,color:s="neutral",component:l,disablePortal:u=!1,keepMounted:d=!1,id:f,invertedColors:h=!1,onItemsChange:g,modifiers:m,variant:v="outlined",size:x="md",slots:w={},slotProps:S={}}=o,y=we(o,hE),{contextValue:_,getListboxProps:R,dispatch:O,open:b,triggerElement:P}=qw({onItemsChange:g,id:f,listboxRef:r});p.useImperativeHandle(a,()=>({dispatch:O,resetHighlight:()=>O({type:Nt.resetHighlight,event:null})}),[O]);const E=C({},o,{disablePortal:u,invertedColors:h,color:s,variant:v,size:x,open:b,nesting:!1,row:!1}),T=pE(E),I=C({},y,{component:l,slots:w,slotProps:S}),k=p.useMemo(()=>[{name:"offset",options:{offset:[0,4]}},...m||[]],[m]),D=pv({elementType:km,getSlotProps:R,externalForwardedProps:I,externalSlotProps:{},ownerState:E,additionalProps:{anchorEl:P,open:b&&P!==null,disablePortal:u,keepMounted:d,modifiers:k},className:T.root});return c.jsx(km,C({},D,!((n=o.slots)!=null&&n.root)&&{as:Cu,slots:{root:l||"ul"}},{children:c.jsx(Xw,{value:_,children:c.jsx(Eu,{variant:h?void 0:v,color:s,children:c.jsx(Su.Provider,{value:"menu",children:c.jsx(wu,{nested:!0,children:i})})})})}))});function gE(e){return it("MuiMenuItem",e)}ct("MuiMenuItem",["root","focusVisible","disabled","selected","colorPrimary","colorNeutral","colorDanger","colorSuccess","colorWarning","colorContext","variantPlain","variantSoft","variantOutlined","variantSolid"]);const vE=["children","disabled","component","selected","color","orientation","variant","slots","slotProps","id"],yE=e=>{const{focusVisible:t,disabled:r,selected:n,color:o,variant:a}=e,i={root:["root",t&&"focusVisible",r&&"disabled",n&&"selected",o&&`color${ae(o)}`,a&&`variant${ae(a)}`]};return ot(i,gE,{})}
50,bE=Q(_u,{name:"JoyMenuItem",slot:"Root",overridesResolver:(e,t)=>t.root})({}),xE=p.memo(p.forwardRef(function(t,r){const n=ut({props:t,name:"JoyMenuItem"}),o=p.useContext(fl),{children:a,disabled:i=!1,component:s="li",selected:l=!1,color:u="neutral",orientation:d="horizontal",variant:f="plain",slots:h={},slotProps:g={},id:m}=n,v=we(n,vE),{variant:x=f,color:w=u}=Ch(t.variant,t.color),{getRootProps:S,disabled:y,focusVisible:_}=t5({id:m,disabled:i,rootRef:r}),R=C({},n,{component:s,color:w,disabled:y,focusVisible:_,orientation:d,selected:l,row:o,variant:x}),O=yE(R),b=C({},v,{component:s,slots:h,slotProps:g}),[P,E]=he("root",{ref:r,elementType:bE,getSlotProps:S,externalForwardedProps:b,className:O.root,ownerState:R});return c.jsx(bh.Provider,{value:d,children:c.jsx(P,C({},E,{children:a}))})})),ra=p.forwardRef(function(t,r){const{contextValue:n,id:o}=r5(t.id);return c.jsx($a.Provider,{value:n,children:c.jsx(xE,C({},t,{id:o,ref:r}))})});function CE(e){return it("MuiOption",e)}const SE=ct("MuiOption",["root","colorPrimary","colorNeutral","colorDanger","colorSuccess","colorWarning","colorContext","focusVisible","disabled","selected","highlighted","variantPlain","variantSoft","variantOutlined","variantSolid"]),wE=["component","children","disabled","value","label","variant","color","slots","slotProps"],kE=e=>{const{disabled:t,highlighted:r,selected:n}=e;return ot({root:["root",t&&"disabled",r&&"highlighted",n&&"selected"]},CE,{})},_E=Q(_u,{name:"JoyOption",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e,ownerState:t})=>{var r;const n=(r=e.variants[`${t.variant}Hover`])==null?void 0:r[t.color];return{[`&.${SE.highlighted}:not([aria-selected="true"])`]:{backgroundColor:n==null?void 0:n.backgroundColor}}}),EE=p.memo(p.forwardRef(function(t,r){var n;const o=ut({props:t,name:"JoyOption"}),{component:a="li",children:i,disabled:s=!1,value:l,label:u,variant:d="plain",color:f="neutral",slots:h={},slotProps:g={}}=o,m=we(o,wE),v=p.useContext(fl),{variant:x=d,color:w=f}=Ch(t.variant,t.color),S=p.useRef(null),y=It(S,r),_=u??(typeof i=="string"?i:(n=S.current)==null?void 0:n.innerText),{getRootProps:R,selected:O,highlighted:b,index:P}=f5({disabled:s,label:_,value:l,rootRef:y}),E=C({},o,{disabled:s,selected:O,highlighted:b,index:P,component:a,variant:x,color:w,row:v}),T=kE(E),I=C({},m,{component:a,slots:h,slotProps:g}),[k,D]=he("root",{ref:r,getSlotProps:R,elementType:_E,externalForwardedProps:I,className:T.root,ownerState:E});return c.jsx(k,C({},D,{children:i}))})),Ca=p.forwardRef(function(t,r){const{contextValue:n}=h5(t.value);return c.jsx($a.Provider,{value:n,children:c.jsx(EE,C({},t,{ref:r}))})});function PE(e){return it("MuiRadio",e)}const zs=ct("MuiRadio",["root","radio","icon","action","input","label","checked","disabled","focusVisible","colorPrimary","colorDanger","colorNeutral","colorSuccess","colorWarning","colorContext","sizeSm","sizeMd","sizeLg","variantOutlined","variantSoft","variantSolid"]),RE=["checked","checkedIcon","defaultChecked","disabled","disableIcon","overlay","label","id","name","onBlur","onChange","onFocus","onFocusVisible","readOnly","required","color","variant","size","uncheckedIcon","value","component","slots","slotProps"],TE=e=>{const{checked:t,disabled:r,disableIcon:n,focusVisible:o,color:a,variant:i,size:s}=e,l={root:["root",t&&"checked",r&&"disabled",o&&"focusVisible",i&&`variant${ae(i)}`,a&&`color${ae(a)}`,s&&`size${ae(s)}`],radio:["radio",t&&"checked",r&&"disabled"],icon:["icon"],action:["action",t&&"checked",n&&r&&"disabled",o&&"focusVisible"],input:["input"],label:["label"]};return ot(l,PE,{})};function IE(e,t){return typeof t=="object"&&t!==null?e===t:String(e)===String(t)}const DE=Q("span",{name:"JoyRadio",slot:"Root",overridesResolver:(e,t)=>t.root})(({ownerState:e,theme:t})=>{var r,n,o;return[C({"--Icon-fontSize":"var(--Radio-size)","--Icon-color":"currentColor"},e.size==="sm"&&{"--Radio-size":"1rem","& ~ *":{"--FormHelperText-margin":"0 0 0 1.5rem"},fontSize:t.vars.fontSize.sm,gap:"var(--Radio-gap, 0.5rem)"}
50,e.size==="md"&&{"--Radio-size":"1.25rem","& ~ *":{"--FormHelperText-margin":"0.25rem 0 0 1.875rem"},fontSize:t.vars.fontSize.md,gap:"var(--Radio-gap, 0.625rem)"},e.size==="lg"&&{"--Radio-size":"1.5rem","& ~ *":{"--FormHelperText-margin":"0.375rem 0 0 2.25rem"},fontSize:t.vars.fontSize.lg,gap:"var(--Radio-gap, 0.75rem)"},{position:e.overlay?"initial":"relative",display:"inline-flex",boxSizing:"border-box",minWidth:0,fontFamily:t.vars.fontFamily.body,lineHeight:"var(--Radio-size)",color:t.vars.palette.text.primary,[`&.${zs.disabled}`]:{color:(r=t.variants.plainDisabled)==null||(r=r[e.color])==null?void 0:r.color}},e.disableIcon&&{color:(n=t.variants[e.variant])==null||(n=n[e.color])==null?void 0:n.color,[`&.${zs.disabled}`]:{color:(o=t.variants[`${e.variant}Disabled`])==null||(o=o[e.color])==null?void 0:o.color}},e["data-parent"]==="RadioGroup"&&e["data-first-child"]===void 0&&{marginInlineStart:e.orientation==="horizontal"?"var(--RadioGroup-gap)":void 0,marginBlockStart:e.orientation==="horizontal"?void 0:"var(--RadioGroup-gap)"})]}),OE=Q("span",{name:"JoyRadio",slot:"Radio",overridesResolver:(e,t)=>t.radio})(({ownerState:e,theme:t})=>{var r,n,o,a,i;const s=(r=t.variants[`${e.variant}`])==null?void 0:r[e.color];return[C({"--Icon-color":e.color!=="neutral"||e.variant==="solid"?"currentColor":t.vars.palette.text.icon,margin:0,boxSizing:"border-box",width:"var(--Radio-size)",height:"var(--Radio-size)",borderRadius:"var(--Radio-size)",display:"inline-flex",justifyContent:"center",alignItems:"center",flexShrink:0},e.disableIcon&&{display:"contents"},{[`&.${zs.checked}`]:{"--Icon-color":"currentColor"}}),...e.disableIcon?[]:[C({},s,{backgroundColor:(n=s==null?void 0:s.backgroundColor)!=null?n:t.vars.palette.background.surface}),{"&:hover":{"@media (hover: hover)":(o=t.variants[`${e.variant}Hover`])==null?void 0:o[e.color]}},{"&:active":(a=t.variants[`${e.variant}Active`])==null?void 0:a[e.color]},{[`&.${zs.disabled}`]:(i=t.variants[`${e.variant}Disabled`])==null?void 0:i[e.color]}]]}),$E=Q("span",{name:"JoyRadio",slot:"Action",overridesResolver:(e,t)=>t.action})(({theme:e,ownerState:t})=>{var r,n,o,a;return[{position:"absolute",textAlign:"left",borderRadius:`var(--Radio-actionRadius, ${t.overlay?"var(--unstable_actionRadius, inherit)":"inherit"})`,top:"calc(-1 * var(--variant-borderWidth, 0px))",left:"calc(-1 * var(--variant-borderWidth, 0px))",bottom:"calc(-1 * var(--variant-borderWidth, 0px))",right:"calc(-1 * var(--variant-borderWidth, 0px))",zIndex:1,[e.focus.selector]:e.focus.default},...t.disableIcon?[(r=e.variants[t.variant])==null?void 0:r[t.color],{"&:hover":{"@media (hover: hover)":(n=e.variants[`${t.variant}Hover`])==null?void 0:n[t.color]}},{"&:active":(o=e.variants[`${t.variant}Active`])==null?void 0:o[t.color]},{[`&.${zs.disabled}`]:(a=e.variants[`${t.variant}Disabled`])==null?void 0:a[t.color]}]:[]]}),jE=Q("input",{name:"JoyRadio",slot:"Input",overridesResolver:(e,t)=>t.input})(()=>({margin:0,opacity:0,position:"absolute",height:"100%",width:"100%",cursor:"pointer"})),AE=Q("label",{name:"JoyRadio",slot:"Label",overridesResolver:(e,t)=>t.label})(({ownerState:e})=>C({flex:1,minWidth:0},e.disableIcon&&{zIndex:1,pointerEvents:"none"})),LE=Q("span",{name:"JoyRadio",slot:"Icon",overridesResolver:(e,t)=>t.icon})(({ownerState:e})=>({width:"calc(var(--Radio-size) / 2)",height:"calc(var(--Radio-size) / 2)",borderRadius:"inherit",color:"inherit",backgroundColor:"currentColor",transform:e.checked?"scale(1)":"scale(0)"})),ty=p.forwardRef(function(t,r){var n,o,a,i,s,l,u;const d=ut({props:t,name:"JoyRadio"}),{checked:f,checkedIcon:h,defaultChecked:g,disabled:m,disableIcon:v=!1,overlay:x=!1,label:w,id:S,name:y,onBlur:_,onChange:R,onFocus:O,onFocusVisible:b,readOnly:P,required:E,color:T,variant:I="outlined",size:k="md",uncheckedIcon:D,value:L,component:$,slots:j={},slotProps:A={}}=d,M=we(d,RE),F=p.useContext(xo),V=zr(S??(F==null?void 0:F.htmlFor)),K=p.useContext(yh),le=F!=null&&F.error?"danger":(n=(o=(a=t.color)!=null?a:F==null?void 0:F.color)!=null?o:T)!=null?n:"primary",xe=F!=null&&F.error?"danger":(i=(s=(l=t.color)!=null?l:F==null?void 0:F.color)!=null?s:T)!=null?i:"neutral",de=t.size||(F==null?void 0:F.size)||(K==null?void 0:K.size)||k,re=t.name||(K==null?void 0:K.name)||y,_e=t.disableIcon||(K==null?void 0:K.disableIcon)||v,G=t.overlay||(K==null?void 0:K.overlay)||x,X={checked:typeof f>"u"&&L!=null?IE(K==null?void 0:K.value,L):f,defaultChecked:g,disabled:t.disabled||(F==null?void 0:F.disabled)||m,onBlur:_,onChange:R,onFocus:O,onFocusVisible:b},{getInputProps:oe,checked:ge,disabled:te,focusVisible:Ee}=Lv(X),je=(u=t.color)!=null?u:ge?le:xe,ve=C({},d,{checked:ge,disabled:te,focusVisible:Ee,color:je,variant:I,size:de,disableIcon:_e,overlay:G,orientation:K==null?void 0:K.orientation}),ne=TE(ve),We=C({},M,{component:$,slots:j,slotProps:A}),[Re,st]=he("root",{ref:r,className:ne.root,elementType:DE,externalForwardedProps:We,ownerState:ve}),[gt,jt]=he("radio",{className:ne.radio,elementType:OE,externalForwardedProps:We,ownerState:ve}
50),[At,qe]=he("icon",{className:ne.icon,elementType:LE,externalForwardedProps:We,ownerState:ve}),[J,Ve]=he("action",{className:ne.action,elementType:$E,externalForwardedProps:We,ownerState:ve}),[Ke,Ye]=he("input",{additionalProps:{type:"radio",role:void 0,id:V,name:re,readOnly:P,required:E??(F==null?void 0:F.required),value:String(L),"aria-describedby":F==null?void 0:F["aria-describedby"]},className:ne.input,elementType:jE,externalForwardedProps:We,getSlotProps:()=>oe({onChange:K==null?void 0:K.onChange}),ownerState:ve}),[ze,Te]=he("label",{additionalProps:{htmlFor:V},className:ne.label,elementType:AE,externalForwardedProps:We,ownerState:ve});return c.jsxs(Re,C({},st,{children:[c.jsxs(gt,C({},jt,{children:[ge&&!_e&&h,!ge&&!_e&&D,!h&&!D&&!_e&&c.jsx(At,C({},qe)),c.jsx(J,C({},Ve,{children:c.jsx(Ke,C({},Ye))}))]})),w&&c.jsx(ze,C({},Te,{children:c.jsx(Pi.Provider,{value:!0,children:w})}))]}))});function ME(e){return it("MuiRadioGroup",e)}ct("MuiRadioGroup",["root","colorPrimary","colorNeutral","colorDanger","colorSuccess","colorWarning","variantPlain","variantOutlined","variantSoft","variantSolid","sizeSm","sizeMd","sizeLg","horizontal","vertical"]);const zE=["className","component","children","name","defaultValue","disableIcon","overlay","value","onChange","color","variant","size","orientation","role","slots","slotProps"],NE=e=>{const{orientation:t,size:r,variant:n,color:o}=e,a={root:["root",t,n&&`variant${ae(n)}`,o&&`color${ae(o)}`,r&&`size${ae(r)}`]};return ot(a,ME,{})},FE=Q("div",{name:"JoyRadioGroup",slot:"Root",overridesResolver:(e,t)=>t.root})(({ownerState:e,theme:t})=>{var r;return C({},e.size==="sm"&&{"--RadioGroup-gap":"0.625rem"}
50,e.size==="md"&&{"--RadioGroup-gap":"0.875rem"},e.size==="lg"&&{"--RadioGroup-gap":"1.25rem"},{display:"flex",margin:"var(--unstable_RadioGroup-margin)",flexDirection:e.orientation==="horizontal"?"row":"column",borderRadius:t.vars.radius.sm},(r=t.variants[e.variant])==null?void 0:r[e.color])}),ry=p.forwardRef(function(t,r){const n=ut({props:t,name:"JoyRadioGroup"}),{className:o,component:a,children:i,name:s,defaultValue:l,disableIcon:u=!1,overlay:d,value:f,onChange:h,color:g="neutral",variant:m="plain",size:v="md",orientation:x="vertical",role:w="radiogroup",slots:S={},slotProps:y={}}=n,_=we(n,zE),[R,O]=ba({controlled:f,default:l,name:"RadioGroup"}),b=p.useContext(xo),P=t.size||(b==null?void 0:b.size)||v,E=C({orientation:x,size:P,variant:m,color:g,role:w},n),T=NE(E),I=zr(s),k=p.useMemo(()=>({disableIcon:u,overlay:d,orientation:x,size:P,name:I,value:R,onChange:$=>{O($.target.value),h&&h($)}}),[u,I,h,d,x,O,P,R]),[D,L]=he("root",{ref:r,className:Bt(T.root,o),elementType:FE,externalForwardedProps:C({},_,{component:a,slots:S,slotProps:y}),ownerState:E,additionalProps:{as:a,role:w,id:b==null?void 0:b.htmlFor,"aria-labelledby":b==null?void 0:b.labelId,"aria-describedby":b==null?void 0:b["aria-describedby"]}});return c.jsx(yh.Provider,{value:k,children:c.jsx(D,C({},L,{children:c.jsx(xo.Provider,{value:void 0,children:p.Children.map(i,($,j)=>p.isValidElement($)?p.cloneElement($,C({},j===0&&{"data-first-child":""},j===p.Children.count(i)-1&&{"data-last-child":""},{"data-parent":"RadioGroup"})):$)})}))})}),HE=Aa(c.jsx("path",{d:"m12 5.83 2.46 2.46c.39.39 1.02.39 1.41 0 .39-.39.39-1.02 0-1.41L12.7 3.7a.9959.9959 0 0 0-1.41 0L8.12 6.88c-.39.39-.39 1.02 0 1.41.39.39 1.02.39 1.41 0L12 5.83zm0 12.34-2.46-2.46a.9959.9959 0 0 0-1.41 0c-.39.39-.39 1.02 0 1.41l3.17 3.18c.39.39 1.02.39 1.41 0l3.17-3.17c.39-.39.39-1.02 0-1.41a.9959.9959 0 0 0-1.41 0L12 18.17z"}),"Unfold");function BE(e){return it("MuiSelect",e)}const ei=ct("MuiSelect",["root","button","indicator","startDecorator","endDecorator","popper","listbox","colorPrimary","colorNeutral","colorDanger","colorSuccess","colorWarning","colorContext","variantPlain","variantOutlined","variantSoft","variantSolid","sizeSm","sizeMd","sizeLg","focusVisible","disabled","expanded","multiple"]);var _m;const WE=["action","autoFocus","children","defaultValue","defaultListboxOpen","disabled","getSerializedValue","placeholder","listboxId","listboxOpen","onChange","onListboxOpenChange","onClose","renderValue","required","value","size","variant","color","startDecorator","endDecorator","indicator","aria-describedby","aria-label","aria-labelledby","id","name","multiple","slots","slotProps"];function UE(e){var t;return Array.isArray(e)?c.jsx(p.Fragment,{children:e.map(r=>r.label).join(", ")}):(t=e==null?void 0:e.label)!=null?t:""}const VE=[{name:"offset",options:{offset:[0,4]}},{name:"equalWidth",enabled:!0,phase:"beforeWrite",requires:["computeStyles"],fn:({state:e})=>{e.styles.popper.width=`${e.rects.reference.width}px`}}],YE=e=>{const{color:t,disabled:r,focusVisible:n,size:o,variant:a,open:i,multiple:s}=e,l={root:["root",r&&"disabled",n&&"focusVisible",i&&"expanded",a&&`variant${ae(a)}`,t&&`color${ae(t)}`,o&&`size${ae(o)}`,s&&"multiple"],button:["button"],startDecorator:["startDecorator"],endDecorator:["endDecorator"],indicator:["indicator",i&&"expanded"],listbox:["listbox",i&&"expanded",r&&"disabled"]};return ot(l,BE,{})},GE=Q("div",{name:"JoySelect",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e,ownerState:t})=>{var r,n,o,a,i;const s=(r=e.variants[`${t.variant}`])==null?void 0:r[t.color],{borderRadius:l}=ja({theme:e,ownerState:t},["borderRadius"]);return[C({"--Select-radius":e.vars.radius.sm,"--Select-gap":"0.5rem","--Select-placeholderOpacity":.64,"--Select-decoratorColor":e.vars.palette.text.icon,"--Select-focusedThickness":e.vars.focus.thickness,"--Select-focusedHighlight":(n=e.vars.palette[t.color==="neutral"?"primary":t.color])==null?void 0:n[500],'&:not([data-inverted-colors="false"])':C({},t.instanceColor&&{"--_Select-focusedHighlight":(o=e.vars.palette[t.instanceColor==="neutral"?"primary":t.instanceColor])==null?void 0:o[500]},{"--Select-focusedHighlight":e.vars.palette.focusVisible}),"--Select-indicatorColor":s!=null&&s.backgroundColor?s==null?void 0:s.color:e.vars.palette.text.tertiary},t.size==="sm"&&{"--Select-minHeight":"2rem","--Select-paddingInline":"0.5rem","--Select-decoratorChildHeight":"min(1.5rem, var(--Select-minHeight))","--Icon-fontSize":e.vars.fontSize.xl}
vendor: 4,732 bytes, line 50
50,t.size==="md"&&{"--Select-minHeight":"2.25rem","--Select-paddingInline":"0.75rem","--Select-decoratorChildHeight":"min(1.75rem, var(--Select-minHeight))","--Icon-fontSize":e.vars.fontSize.xl2},t.size==="lg"&&{"--Select-minHeight":"2.75rem","--Select-paddingInline":"1rem","--Select-decoratorChildHeight":"min(2.375rem, var(--Select-minHeight))","--Icon-fontSize":e.vars.fontSize.xl2},{"--Select-decoratorChildOffset":"min(calc(var(--Select-paddingInline) - (var(--Select-minHeight) - 2 * var(--variant-borderWidth, 0px) - var(--Select-decoratorChildHeight)) / 2), var(--Select-paddingInline))","--_Select-paddingBlock":"max((var(--Select-minHeight) - 2 * var(--variant-borderWidth, 0px) - var(--Select-decoratorChildHeight)) / 2, 0px)","--Select-decoratorChildRadius":"max(var(--Select-radius) - var(--variant-borderWidth, 0px) - var(--_Select-paddingBlock), min(var(--_Select-paddingBlock) + var(--variant-borderWidth, 0px), var(--Select-radius) / 2))","--Button-minHeight":"var(--Select-decoratorChildHeight)","--Button-paddingBlock":"0px","--IconButton-size":"var(--Select-decoratorChildHeight)","--Button-radius":"var(--Select-decoratorChildRadius)","--IconButton-radius":"var(--Select-decoratorChildRadius)",boxSizing:"border-box"},t.variant!=="plain"&&{boxShadow:e.shadow.xs},{minWidth:0,minHeight:"var(--Select-minHeight)",position:"relative",display:"flex",alignItems:"center",borderRadius:"var(--Select-radius)",cursor:"pointer"},!(s!=null&&s.backgroundColor)&&{backgroundColor:e.vars.palette.background.surface},t.size&&{paddingBlock:{sm:2,md:3,lg:4}[t.size]},{paddingInline:"var(--Select-paddingInline)"},e.typography[`body-${t.size}`],s,{"&::before":{boxSizing:"border-box",content:'""',display:"block",position:"absolute",pointerEvents:"none",top:0,left:0,right:0,bottom:0,zIndex:1,borderRadius:"inherit",margin:"calc(var(--variant-borderWidth, 0px) * -1)"},[`&.${ei.focusVisible}`]:{"--Select-indicatorColor":s==null?void 0:s.color,"&::before":{boxShadow:"inset 0 0 0 var(--Select-focusedThickness) var(--Select-focusedHighlight)"}},[`&.${ei.disabled}`]:{"--Select-indicatorColor":"inherit"}}),{"&:hover":(a=e.variants[`${t.variant}Hover`])==null?void 0:a[t.color],[`&.${ei.disabled}`]:(i=e.variants[`${t.variant}Disabled`])==null?void 0:i[t.color]},l!==void 0&&{"--Select-radius":l}]}),KE=Q("button",{name:"JoySelect",slot:"Button",overridesResolver:(e,t)=>t.button})(({ownerState:e})=>C({border:0,outline:0,background:"none",padding:0,fontSize:"inherit",color:"inherit",alignSelf:"stretch",display:"flex",alignItems:"center",flex:1,fontFamily:"inherit",cursor:"pointer",whiteSpace:"nowrap",overflow:"hidden"},(e.value===null||e.value===void 0)&&{opacity:"var(--Select-placeholderOpacity)"},{"&::before":{content:'""',display:"block",position:"absolute",top:"calc(-1 * var(--variant-borderWidth, 0px))",left:"calc(-1 * var(--variant-borderWidth, 0px))",right:"calc(-1 * var(--variant-borderWidth, 0px))",bottom:"calc(-1 * var(--variant-borderWidth, 0px))",borderRadius:"var(--Select-radius)"}})),JE=Q(ku,{name:"JoySelect",slot:"Listbox",overridesResolver:(e,t)=>t.listbox})(({theme:e,ownerState:t})=>{var r;const n=(r=e.variants[t.variant])==null?void 0:r[t.color];return C({"--focus-outline-offset":`calc(${e.vars.focus.thickness} * -1)`,"--ListItem-stickyBackground":(n==null?void 0:n.backgroundColor)||(n==null?void 0:n.background)||e.vars.palette.background.popup,"--ListItem-stickyTop":"calc(var(--List-padding, var(--ListDivider-gap)) * -1)"},vh,{minWidth:"max-content",maxHeight:"44vh",overflow:"auto",outline:0,boxShadow:e.shadow.md,borderRadius:`var(--List-radius, ${e.vars.radius.sm})`,zIndex:`var(--unstable_popup-zIndex, ${e.vars.zIndex.popup})`},!(n!=null&&n.backgroundColor)&&{backgroundColor:e.vars.palette.background.popup})}),qE=Q("span",{name:"JoySelect",slot:"StartDecorator",overridesResolver:(e,t)=>t.startDecorator})({"--Button-margin":"0 0 0 calc(var(--Select-decoratorChildOffset) * -1)","--IconButton-margin":"0 0 0 calc(var(--Select-decoratorChildOffset) * -1)","--Icon-margin":"0 0 0 calc(var(--Select-paddingInline) / -4)",display:"inherit",alignItems:"center",color:"var(--Select-decoratorColor)",marginInlineEnd:"var(--Select-gap)"}),XE=Q("span",{name:"JoySelect",slot:"EndDecorator",overridesResolver:(e,t)=>t.endDecorator})({"--Button-margin":"0 calc(var(--Select-decoratorChildOffset) * -1) 0 0","--IconButton-margin":"0 calc(var(--Select-decoratorChildOffset) * -1) 0 0","--Icon-margin":"0 calc(var(--Select-paddingInline) / -4) 0 0",display:"inherit",alignItems:"center",color:"var(--Select-decoratorColor)",marginInlineStart:"var(--Select-gap)"}),QE=Q("span",{name:"JoySelect",slot:"Indicator"})(({ownerState:e,theme:t})=>C({},e.size==="sm"&&{"--Icon-fontSize":t.vars.fontSize.lg}
50,e.size==="md"&&{"--Icon-fontSize":t.vars.fontSize.xl},e.size==="lg"&&{"--Icon-fontSize":t.vars.fontSize.xl2},{"--Icon-color":e.color!=="neutral"||e.variant==="solid"?"currentColor":t.vars.palette.text.icon,display:"inherit",alignItems:"center",marginInlineStart:"var(--Select-gap)",marginInlineEnd:"calc(var(--Select-paddingInline) / -4)",[`.${ei.endDecorator} + &`]:{marginInlineStart:"calc(var(--Select-gap) / 2)"},[`&.${ei.expanded}, .${ei.disabled} > &`]:{"--Icon-color":"currentColor"}})),Ri=p.forwardRef(function(t,r){var n,o,a,i,s,l,u;const d=ut({props:t,name:"JoySelect"}),f=d,{action:h,autoFocus:g,children:m,defaultValue:v,defaultListboxOpen:x=!1,disabled:w,getSerializedValue:S,placeholder:y,listboxId:_,listboxOpen:R,onChange:O,onListboxOpenChange:b,onClose:P,renderValue:E,required:T=!1,value:I,size:k="md",variant:D="outlined",color:L="neutral",startDecorator:$,endDecorator:j,indicator:A=_m||(_m=c.jsx(HE,{})),"aria-describedby":M,"aria-label":F,"aria-labelledby":V,id:K,name:le,multiple:xe=!1,slots:de={},slotProps:re={}}=f,_e=we(f,WE),G=p.useContext(xo),U=(n=(o=t.disabled)!=null?o:G==null?void 0:G.disabled)!=null?n:w,X=(a=(i=t.size)!=null?i:G==null?void 0:G.size)!=null?a:k,oe=(s=t.color)!=null?s:G!=null&&G.error?"danger":(l=G==null?void 0:G.color)!=null?l:L,ge=E??UE,[te,Ee]=p.useState(null),je=p.useRef(null),ve=p.useRef(null),ne=It(r,je);p.useImperativeHandle(h,()=>({focusVisible:()=>{var et;(et=ve.current)==null||et.focus()}}),[]),p.useEffect(()=>{Ee(je.current)},[]),p.useEffect(()=>{g&&ve.current.focus()},[g]);const We=p.useCallback(et=>{b==null||b(et),et||P==null||P()},[P,b]),{buttonActive:Re,buttonFocusVisible:st,contextValue:gt,disabled:jt,getButtonProps:At,getListboxProps:qe,getHiddenInputProps:J,getOptionMetadata:Ve,open:Ke,value:Ye}=Ok({buttonRef:ve,defaultOpen:x,defaultValue:v,disabled:U,getSerializedValue:S,listboxId:_,multiple:xe,name:le,required:T,onChange:O,onOpenChange:We,open:R,value:I}),ze=C({},d,{active:Re,defaultListboxOpen:x,disabled:jt,focusVisible:st,open:Ke,renderValue:ge,value:Ye,size:X,variant:D,color:oe}),Te=YE(ze),rt=C({},_e,{slots:de,slotProps:re}),Ht=p.useMemo(()=>{let et;if(xe)et=Ye.map(Vt=>Ve(Vt)).filter(Vt=>Vt!==void 0);else{var Ne;et=(Ne=Ve(Ye))!=null?Ne:null}return et},[Ve,Ye,xe]),[fe,ye]=he("root",{ref:ne,className:Te.root,elementType:GE,externalForwardedProps:rt,ownerState:ze}),[$e,Ge]=he("button",{additionalProps:{"aria-describedby":M??(G==null?void 0:G["aria-describedby"]),"aria-label":F,"aria-labelledby":V??(G==null?void 0:G.labelId),"aria-required":T?"true":void 0,id:K??(G==null?void 0:G.htmlFor),name:le},className:Te.button,elementType:KE,externalForwardedProps:rt,getSlotProps:At,ownerState:ze}),[Er,Pt]=he("listbox",{additionalProps:{anchorEl:te,open:Ke,placement:"bottom",keepMounted:!0},className:Te.listbox,elementType:JE,externalForwardedProps:rt,getSlotProps:qe,ownerState:C({},ze,{nesting:!1,row:!1,wrap:!1}),getSlotOwnerState:et=>({size:et.size||X,variant:et.variant||D,color:et.color||(et.disablePortal?oe:L),disableColorInversion:!et.disablePortal})}),[br,Wt]=he("startDecorator",{className:Te.startDecorator,elementType:qE,externalForwardedProps:rt,ownerState:ze}),[xt,wt]=he("endDecorator",{className:Te.endDecorator,elementType:XE,externalForwardedProps:rt,ownerState:ze}),[Lt,Ae]=he("indicator",{className:Te.indicator,elementType:QE,externalForwardedProps:rt,ownerState:ze}),Ut=p.useMemo(()=>[...VE,...Pt.modifiers||[]],[Pt.modifiers]);let dt=y;return(Array.isArray(Ht)&&Ht.length>0||!Array.isArray(Ht)&&Ht)&&(dt=ge(Ht)),c.jsxs(p.Fragment,{children:[c.jsxs(fe,C({},ye,{children:[$&&c.jsx(br,C({},Wt,{children:$})),c.jsx($e,C({},Ge,{children:dt})),j&&c.jsx(xt,C({},wt,{children:j})),A&&c.jsx(Lt,C({},Ae,{children:A})),c.jsx("input",C({},J()))]})),te&&c.jsx(Er,C({},Pt,{className:Bt(Pt.className),modifiers:Ut},!((u=d.slots)!=null&&u.listbox)&&{as:Cu,slots:{root:Pt.as||"ul"}},{children:c.jsx($k,{value:gt,children:c.jsx(Eu,{variant:D,color:L,children:c.jsx(Su.Provider,{value:"select",children:c.jsx(wu,{nested:!0,children:m})})})})}))]})});function ZE(e){return it("MuiSheet",e)}ct("MuiSheet",["root","colorPrimary","colorNeutral","colorDanger","colorSuccess","colorWarning","colorContext","variantPlain","variantOutlined","variantSoft","variantSolid"]);const eP=["className","color","component","variant","invertedColors","slots","slotProps"],tP=e=>{const{variant:t,color:r}=e,n={root:["root",t&&`variant${ae(t)}`,r&&`color${ae(r)}`]};return ot(n,ZE,{})},rP=Q("div",{name:"JoySheet",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e,ownerState:t})=>{var r,n;const o=(r=e.variants[t.variant])==null?void 0:r[t.color],{borderRadius:a,bgcolor:i,backgroundColor:s,background:l}=ja({theme:e,ownerState:t},["borderRadius","bgcolor","backgroundColor","background"]),u=Ci(e,`palette.${i}`)||i||Ci(e,`palette.${s}`)||s||l||(o==null?void 0:o.backgroundColor)||(o==null?void 0:o.background)||e.vars.palette.background.surface;return[C({"--Icon-color":t.color!=="neutral"||t.variant==="solid"?"currentColor":e.vars.palette.text.icon,"--ListItem-stickyBackgroun
50d":u==="transparent"?"initial":u,"--Sheet-background":u==="transparent"?"initial":u},a!==void 0&&{"--List-radius":`calc(${a} - var(--variant-borderWidth, 0px))`,"--unstable_actionRadius":`calc(${a} - var(--variant-borderWidth, 0px))`},{backgroundColor:e.vars.palette.background.surface,position:"relative"}),C({},e.typography["body-md"],t.variant==="solid"&&t.color&&t.invertedColors&&hl(t.color)(e),t.variant==="soft"&&t.color&&t.invertedColors&&pl(t.color)(e),(n=e.variants[t.variant])==null?void 0:n[t.color],o)]}),nP=p.forwardRef(function(t,r){const n=ut({props:t,name:"JoySheet"}),{className:o,color:a="neutral",component:i="div",variant:s="plain",invertedColors:l=!1,slots:u={},slotProps:d={}}=n,f=we(n,eP),h=C({},n,{color:a,component:i,invertedColors:l,variant:s}),g=tP(h),m=C({},f,{component:i,slots:u,slotProps:d}),[v,x]=he("root",{ref:r,className:Bt(g.root,o),elementType:rP,externalForwardedProps:m,ownerState:h});return c.jsx(v,C({},x))});function oP(e){return it("MuiSnackbar",e)}ct("MuiSnackbar",["root","anchorOriginTopCenter","anchorOriginBottomCenter","anchorOriginTopRight","anchorOriginBottomRight","anchorOriginTopLeft","anchorOriginBottomLeft","colorPrimary","colorDanger","colorNeutral","colorSuccess","colorWarning","endDecorator","sizeSm","sizeMd","sizeLg","startDecorator","variantPlain","variantOutlined","variantSoft","variantSolid"]);const aP=["anchorOrigin","animationDuration","autoHideDuration","color","children","className","component","disableWindowBlurListener","endDecorator","invertedColors","onBlur","onClose","onFocus","onMouseEnter","onMouseLeave","onUnmount","open","resumeHideDuration","size","slots","slotProps","startDecorator","variant"];let ny=e=>e,Em,Pm;const iP=e=>{const{variant:t,color:r,size:n,anchorOrigin:o}=e,a={root:["root",n&&`size${ae(n)}`,r&&`color${ae(r)}`,t&&`variant${ae(t)}`,`anchorOrigin${ae(o.vertical)}${ae(o.horizontal)}`],startDecorator:["startDecorator"],endDecorator:["endDecorator"]};return ot(a,oP,{})},sP=Qc(Em||(Em=ny` 51 0% { 52 transform: translateX(var(--Snackbar-translateX, 0px)) translateY(calc(var(--_Snackbar-anchorBottom, 1) * 100%)); 53 opacity: 0; 54 } 55 50% { 56 opacity: 1; 57 } 58 100% { 59 transform: translateX(var(--Snackbar-translateX, 0px)) translateY(0); 60 } 61`)),lP=Qc(Pm||(Pm=ny` 62 0% { 63 transform: translateX(var(--Snackbar-translateX, 0px)) translateY(0); 64 opacity: 1; 65 } 66 100% { 67 transform: translateX(var(--Snackbar-translateX, 0px)) translateY(calc(var(--_Snackbar-anchorBottom, 1) * 100%)); 68 opacity: 0; 69 } 70`)),cP=Q("div",{name:"JoySnackbar",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e,ownerState:t})=>{var r,n,o,a,i,s,l;const{p:u,padding:d,borderRadius:f}=ja({theme:e,ownerState:t},["p","padding","borderRadius"]);return[C({"--Snackbar-radius":e.vars.radius.sm,"--Snackbar-decoratorChildRadius":"max((var(--Snackbar-radius) - var(--variant-borderWidth, 0px)) - var(--Snackbar-padding), min(var(--Snackbar-padding) + var(--variant-borderWidth, 0px), var(--Snackbar-radius) / 2))","--Button-minHeight":"var(--Snackbar-decoratorChildHeight)","--IconButton-size":"var(--Snackbar-decoratorChildHeight)","--Button-radius":"var(--Snackbar-decoratorChildRadius)","--IconButton-radius":"var(--Snackbar-decoratorChildRadius)","--Icon-color":"currentColor"},t.size==="sm"&&{"--Snackbar-padding":"0.75rem","--Snackbar-inset":"0.5rem","--Snackbar-decoratorChildHeight":"1.5rem","--Icon-fontSize":e.vars.fontSize.xl,gap:"0.5rem"}
70,t.size==="md"&&{"--Snackbar-padding":"1rem","--Snackbar-inset":"0.75rem","--Snackbar-decoratorChildHeight":"2rem","--Icon-fontSize":e.vars.fontSize.xl,gap:"0.625rem"},t.size==="lg"&&{"--Snackbar-padding":"1.25rem","--Snackbar-inset":"1rem","--Snackbar-decoratorChildHeight":"2.375rem","--Icon-fontSize":e.vars.fontSize.xl2,gap:"0.875rem"},{zIndex:e.vars.zIndex.snackbar,position:"fixed",display:"flex",alignItems:"center",minWidth:300,top:((r=t.anchorOrigin)==null?void 0:r.vertical)==="top"?"var(--Snackbar-inset)":void 0,left:((n=t.anchorOrigin)==null?void 0:n.horizontal)==="left"?"var(--Snackbar-inset)":void 0,bottom:((o=t.anchorOrigin)==null?void 0:o.vertical)==="bottom"?"var(--Snackbar-inset)":void 0,right:((a=t.anchorOrigin)==null?void 0:a.horizontal)==="right"?"var(--Snackbar-inset)":void 0},((i=t.anchorOrigin)==null?void 0:i.horizontal)==="center"&&{"--Snackbar-translateX":"-50%",left:"50%",transform:"translateX(var(--Snackbar-translateX))"},((s=t.anchorOrigin)==null?void 0:s.vertical)==="top"&&{"--_Snackbar-anchorBottom":"-1"},{animation:`${sP} ${t.animationDuration}ms forwards`},!t.open&&{animationName:lP},{boxShadow:e.vars.shadow.lg,backgroundColor:e.vars.palette.background.surface,padding:"var(--Snackbar-padding)",borderRadius:"var(--Snackbar-radius)"},e.typography[`body-${{sm:"xs",md:"sm",lg:"md"}[t.size]}`],t.variant==="solid"&&t.color&&t.invertedColors&&hl(t.color)(e),t.variant==="soft"&&t.color&&t.invertedColors&&pl(t.color)(e),(l=e.variants[t.variant])==null?void 0:l[t.color]),u!==void 0&&{"--Snackbar-padding":u},d!==void 0&&{"--Snackbar-padding":d},f!==void 0&&{"--Snackbar-radius":f}]}),uP=Q("span",{name:"JoySnackbar",slot:"StartDecorator",overridesResolver:(e,t)=>t.startDecorator})({display:"inherit",flex:"none"}),dP=Q("span",{name:"JoySnackbar",slot:"EndDecorator",overridesResolver:(e,t)=>t.endDecorator})({display:"inherit",flex:"none",marginLeft:"auto"}),fP={vertical:"bottom",horizontal:"right"},hP=p.forwardRef(function(t,r){const n=ut({props:t,name:"JoySnackbar"}),{anchorOrigin:o=fP,animationDuration:a=300,autoHideDuration:i=null,color:s="neutral",children:l,className:u,component:d,disableWindowBlurListener:f=!1,endDecorator:h,invertedColors:g=!1,onUnmount:m,open:v,size:x="md",slots:w={},slotProps:S,startDecorator:y,variant:_="outlined"}=n,R=we(n,aP),[O,b]=p.useState(!0),[P,E]=p.useState(!1),T=p.useRef(m);T.current=m,p.useEffect(()=>{if(v)E(!1),b(!1);else{E(!0);const de=setTimeout(()=>{var re;b(!0),E(!1),(re=T.current)==null||re.call(T)},a);return()=>{clearTimeout(de)}}},[v,a]);const I=C({},n,{anchorOrigin:o,autoHideDuration:i,color:s,animationDuration:a,disableWindowBlurListener:f,invertedColors:g,size:x,variant:_});delete I.onUnmount;const k=iP(I),{getRootProps:D,onClickAway:L}=jk(I),$=de=>{P||L(de)},j=C({},R,{component:d,slots:w,slotProps:S}),[A,M]=he("root",{ref:r,className:Bt(k.root,u),elementType:cP,externalForwardedProps:j,getSlotProps:D,ownerState:I}),[F,V]=he("startDecorator",{className:k.startDecorator,elementType:uP,externalForwardedProps:j,ownerState:I}),[K,le]=he("endDecorator",{className:k.endDecorator,elementType:dP,externalForwardedProps:j,ownerState:I}),xe=w.clickAway||gw;return!v&&O?null:c.jsx(xe,C({onClickAway:$},typeof(S==null?void 0:S.clickAway)=="function"?S.clickAway(I):S==null?void 0:S.clickAway,{children:c.jsxs(A,C({},M,{children:[y&&c.jsx(F,C({},V,{children:y})),l,h&&c.jsx(K,C({},le,{children:h}))]}))}))}),pP=function(){throw new Error(["MUI: `TextField` component has been removed in favor of Input composition.","","To migrate, run `npx @mui/codemod@latest v5.0.0/joy-text-field-to-input <path>`.",`For the codemod detail, visit https://github.com/mui/material-ui/blob/master/packages/mui-codemod/README.md#joy-text-field-to-input 71 72To learn more why it has been removed, visit the RFC https://github.com/mui/material-ui/issues/34176`].join(` 73`))};function mP(e){return it("MuiTooltip",e)}ct("MuiTooltip",["root","tooltipArrow","arrow","touch","placementLeft","placementRight","placementTop","placementBottom","colorPrimary","colorDanger","colorNeutral","colorSuccess","colorWarning","colorContext","sizeSm","sizeMd","sizeLg","variantPlain","variantOutlined","variantSoft","variantSolid"]);const gP=["children","className","component","arrow","describeChild","disableFocusListener","disableHoverListener","disableInteractive","disableTouchListener","enterDelay","enterNextDelay","enterTouchDelay","followCursor","id","leaveDelay","leaveTouchDelay","onClose","onOpen","open","disablePortal","direction","keepMounted","modifiers","placement","title","color","variant","size","slots","slotProps"],vP=e=>{const{arrow:t,variant:r,color:n,size:o,placement:a,touch:i}=e,s={root:["root",t&&"tooltipArrow",i&&"touch",o&&`size${ae(o)}`,n&&`color${ae(n)}`,r&&`variant${ae(r)}`,`tooltipPlacement${ae(a.split("-")[0])}`],arrow:["arrow"]};return ot(s,mP,{})},yP=Q("div",{name:"JoyTooltip",slot:"Root",overridesResolver:(e,t)=>t.root})(({ownerState:e,theme:t})=>{var r,n,o;const a=(r=t.variants[e.variant])==null?void 0:r[e.color];return C({},e.size==="sm"&&{"--Icon-fontSize":t.vars.fontSize.md,"--Tooltip-arrowSize":"8px",padding:t.spacing(.25,.625)}
vendor: 4,930 bytes, line 73
73,e.size==="md"&&{"--Icon-fontSize":t.vars.fontSize.lg,"--Tooltip-arrowSize":"10px",padding:t.spacing(.5,.75)},e.size==="lg"&&{"--Icon-fontSize":t.vars.fontSize.xl,"--Tooltip-arrowSize":"12px",padding:t.spacing(.75,1)},{zIndex:t.vars.zIndex.tooltip,borderRadius:t.vars.radius.sm,boxShadow:t.shadow.sm,wordWrap:"break-word",position:"relative"},e.disableInteractive&&{pointerEvents:"none"},t.typography[`body-${{sm:"xs",md:"sm",lg:"md"}[e.size]}`],a,!a.backgroundColor&&{backgroundColor:t.vars.palette.background.surface},{"&::before":{content:'""',display:"block",position:"absolute",width:(n=e.placement)!=null&&n.match(/(top|bottom)/)?"100%":"calc(10px + var(--variant-borderWidth, 0px))",height:(o=e.placement)!=null&&o.match(/(top|bottom)/)?"calc(10px + var(--variant-borderWidth, 0px))":"100%"},'&[data-popper-placement*="bottom"]::before':{top:0,left:0,transform:"translateY(-100%)"},'&[data-popper-placement*="left"]::before':{top:0,right:0,transform:"translateX(100%)"},'&[data-popper-placement*="right"]::before':{top:0,left:0,transform:"translateX(-100%)"},'&[data-popper-placement*="top"]::before':{bottom:0,left:0,transform:"translateY(100%)"}})}),bP=Q("span",{name:"JoyTooltip",slot:"Arrow",overridesResolver:(e,t)=>t.arrow})(({theme:e,ownerState:t})=>{var r,n,o;const a=(r=e.variants[t.variant])==null?void 0:r[t.color];return{"--unstable_Tooltip-arrowRotation":0,width:"var(--Tooltip-arrowSize)",height:"var(--Tooltip-arrowSize)",boxSizing:"border-box","&::before":{content:'""',display:"block",position:"absolute",width:0,height:0,border:"calc(var(--Tooltip-arrowSize) / 2) solid",borderLeftColor:"transparent",borderBottomColor:"transparent",borderTopColor:(n=a==null?void 0:a.backgroundColor)!=null?n:e.vars.palette.background.surface,borderRightColor:(o=a==null?void 0:a.backgroundColor)!=null?o:e.vars.palette.background.surface,borderRadius:"0px 2px 0px 0px",boxShadow:`var(--variant-borderWidth, 0px) calc(-1 * var(--variant-borderWidth, 0px)) 0px 0px ${a.borderColor}`,transformOrigin:"center center",transform:"rotate(calc(-45deg + 90deg * var(--unstable_Tooltip-arrowRotation)))"},'[data-popper-placement*="bottom"] &':{top:"calc(0.5px + var(--Tooltip-arrowSize) * -1 / 2)"},'[data-popper-placement*="top"] &':{"--unstable_Tooltip-arrowRotation":2,bottom:"calc(0.5px + var(--Tooltip-arrowSize) * -1 / 2)"},'[data-popper-placement*="left"] &':{"--unstable_Tooltip-arrowRotation":1,right:"calc(0.5px + var(--Tooltip-arrowSize) * -1 / 2)"},'[data-popper-placement*="right"] &':{"--unstable_Tooltip-arrowRotation":3,left:"calc(0.5px + var(--Tooltip-arrowSize) * -1 / 2)"}}});let Rl=!1;const Rm=new sl;let is={x:0,y:0};function Tm(e,t){return r=>{t&&t(r),e(r)}}function Im(e,t){return(r,...n)=>{t&&t(r,...n),e(r,...n)}}const ss=p.forwardRef(function(t,r){var n;const o=ut({props:t,name:"JoyTooltip"}),{children:a,className:i,component:s,arrow:l=!1,describeChild:u=!1,disableFocusListener:d=!1,disableHoverListener:f=!1,disableInteractive:h=!1,disableTouchListener:g=!1,enterDelay:m=100,enterNextDelay:v=0,enterTouchDelay:x=700,followCursor:w=!1,id:S,leaveDelay:y=0,leaveTouchDelay:_=1500,onClose:R,onOpen:O,open:b,disablePortal:P,direction:E,keepMounted:T,modifiers:I,placement:k="bottom",title:D,color:L="neutral",variant:$="solid",size:j="md",slots:A={},slotProps:M={}}=o,F=we(o,gP),[V,K]=p.useState(),[le,xe]=p.useState(null),de=p.useRef(!1),re=h||w,_e=ms(),G=ms(),U=ms(),X=ms(),[oe,ge]=ba({controlled:b,default:!1,name:"Tooltip",state:"open"});let te=oe;const Ee=zr(S),je=p.useRef(void 0),ve=sn(()=>{je.current!==void 0&&(document.body.style.WebkitUserSelect=je.current,je.current=void 0),X.clear()});p.useEffect(()=>ve,[ve]);const ne=Ne=>{Rm.clear(),Rl=!0,ge(!0),O&&!te&&O(Ne)},We=sn(Ne=>{Rm.start(800+y,()=>{Rl=!1}),ge(!1),R&&te&&R(Ne),_e.start(150,()=>{de.current=!1})}),Re=Ne=>{de.current&&Ne.type!=="touchstart"||(V&&V.removeAttribute("title"),G.clear(),U.clear(),m||Rl&&v?G.start(Rl?v:m,()=>{ne(Ne)}):ne(Ne))},st=Ne=>{G.clear(),U.start(y,()=>{We(Ne)})},{isFocusVisibleRef:gt,onBlur:jt,onFocus:At,ref:qe}=ll(),[,J]=p.useState(!1),Ve=Ne=>{jt(Ne),gt.current===!1&&(J(!1),st(Ne))},Ke=Ne=>{V||K(Ne.currentTarget),At(Ne),gt.current===!0&&(J(!0),Re(Ne))},Ye=Ne=>{de.current=!0;const Vt=a.props;Vt.onTouchStart&&Vt.onTouchStart(Ne)},ze=Ne=>{Ye(Ne),U.clear(),_e.clear(),ve(),je.current=document.body.style.WebkitUserSelect,document.body.style.WebkitUserSelect="none",X.start(x,()=>{document.body.style.WebkitUserSelect=je.current,Re(Ne)})},Te=Ne=>{a.props.onTouchEnd&&a.props.onTouchEnd(Ne),ve(),U.start(_,()=>{We(Ne)})};p.useEffect(()=>{if(!te)return;function Ne(Vt){(Vt.key==="Escape"||Vt.key==="Esc")&&We(Vt)}return document.addEventListener("keydown",Ne),()=>{document.removeEventListener("keydown",Ne)}},[We,te]);const rt=It(K,r),Ht=It(qe,rt),fe=It(bu(a),Ht);typeof D!="number"&&!D&&(te=!1);const ye=p.useRef(null),$e=Ne=>{const Vt=a.props;Vt.onMouseMove&&Vt.onMouseMove(Ne),is={x:Ne.clientX,y:Ne.clientY}
73,ye.current&&ye.current.update()},Ge={},Er=typeof D=="string";u?(Ge.title=!te&&Er&&!f?D:null,Ge["aria-describedby"]=te?Ee:null):(Ge["aria-label"]=Er?D:null,Ge["aria-labelledby"]=te&&!Er?Ee:null);const Pt=C({},Ge,F,{component:s},a.props,{className:Bt(i,a.props.className),onTouchStart:Ye,ref:fe},w?{onMouseMove:$e}:{}),br={};g||(Pt.onTouchStart=ze,Pt.onTouchEnd=Te),f||(Pt.onMouseOver=Tm(Re,Pt.onMouseOver),Pt.onMouseLeave=Tm(st,Pt.onMouseLeave),re||(br.onMouseOver=Re,br.onMouseLeave=st)),d||(Pt.onFocus=Im(Ke,Pt.onFocus),Pt.onBlur=Im(Ve,Pt.onBlur),re||(br.onFocus=Ke,br.onBlur=Ve));const Wt=C({},o,{arrow:l,disableInteractive:re,placement:k,touch:de.current,color:L,variant:$,size:j}),xt=vP(Wt),wt=C({},F,{component:s,slots:A,slotProps:M}),Lt=p.useMemo(()=>[{name:"arrow",enabled:!!le,options:{element:le,padding:6}},{name:"offset",options:{offset:[0,10]}},...I||[]],[le,I]),[Ae,Ut]=he("root",{additionalProps:C({id:Ee,popperRef:ye,placement:k,anchorEl:w?{getBoundingClientRect:()=>({top:is.y,left:is.x,right:is.x,bottom:is.y,width:0,height:0})}:V,open:V?te:!1,disablePortal:P,keepMounted:T,direction:E,modifiers:Lt},br),ref:null,className:xt.root,elementType:yP,externalForwardedProps:wt,ownerState:Wt}),[dt,et]=he("arrow",{ref:xe,className:xt.arrow,elementType:bP,externalForwardedProps:wt,ownerState:Wt});return c.jsxs(p.Fragment,{children:[p.isValidElement(a)&&p.cloneElement(a,Pt),c.jsxs(Ae,C({},Ut,!((n=o.slots)!=null&&n.root)&&{as:Cu,slots:{root:s||"div"}},{children:[D,l?c.jsx(dt,C({},et)):null]}))]})});var Wi=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(e){return this.listeners.add(e),this.onSubscribe(),()=>{this.listeners.delete(e),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},Ea=typeof window>"u"||"Deno"in globalThis;function Ar(){}function xP(e,t){return typeof e=="function"?e(t):e}function Ud(e){return typeof e=="number"&&e>=0&&e!==1/0}function oy(e,t){return Math.max(e+(t||0)-Date.now(),0)}function Vo(e,t){return typeof e=="function"?e(t):e}function nn(e,t){return typeof e=="function"?e(t):e}function Dm(e,t){const{type:r="all",exact:n,fetchStatus:o,predicate:a,queryKey:i,stale:s}=e;if(i){if(n){if(t.queryHash!==Sh(i,t.options))return!1}else if(!Ns(t.queryKey,i))return!1}if(r!=="all"){const l=t.isActive();if(r==="active"&&!l||r==="inactive"&&l)return!1}return!(typeof s=="boolean"&&t.isStale()!==s||o&&o!==t.state.fetchStatus||a&&!a(t))}function Om(e,t){const{exact:r,status:n,predicate:o,mutationKey:a}=e;if(a){if(!t.options.mutationKey)return!1;if(r){if(Pa(t.options.mutationKey)!==Pa(a))return!1}else if(!Ns(t.options.mutationKey,a))return!1}return!(n&&t.state.status!==n||o&&!o(t))}function Sh(e,t){return((t==null?void 0:t.queryKeyHashFn)||Pa)(e)}function Pa(e){return JSON.stringify(e,(t,r)=>Vd(r)?Object.keys(r).sort().reduce((n,o)=>(n[o]=r[o],n),{}):r)}function Ns(e,t){return e===t?!0:typeof e!=typeof t?!1:e&&t&&typeof e=="object"&&typeof t=="object"?Object.keys(t).every(r=>Ns(e[r],t[r])):!1}var CP=Object.prototype.hasOwnProperty;function ay(e,t){if(e===t)return e;const r=$m(e)&&$m(t);if(!r&&!(Vd(e)&&Vd(t)))return t;const o=(r?e:Object.keys(e)).length,a=r?t:Object.keys(t),i=a.length,s=r?new Array(i):{};let l=0;for(let u=0;u<i;u++){const d=r?u:a[u],f=e[d],h=t[d];if(f===h){s[d]=f,(r?u<o:CP.call(e,d))&&l++;continue}if(f===null||h===null||typeof f!="object"||typeof h!="object"){s[d]=h;continue}const g=ay(f,h);s[d]=g,g===f&&l++}return o===i&&l===o?e:s}function wc(e,t){if(!t||Object.keys(e).length!==Object.keys(t).length)return!1;for(const r in e)if(e[r]!==t[r])return!1;return!0}function $m(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function Vd(e){if(!jm(e))return!1;const t=e.constructor;if(t===void 0)return!0;const r=t.prototype;return!(!jm(r)||!r.hasOwnProperty("isPrototypeOf")||Object.getPrototypeOf(e)!==Object.prototype)}function jm(e){return Object.prototype.toString.call(e)==="[object Object]"}function SP(e){return new Promise(t=>{setTimeout(t,e)})}function Yd(e,t,r){return typeof r.structuralSharing=="function"?r.structuralSharing(e,t):r.structuralSharing!==!1?ay(e,t):t}function wP(e,t,r=0){const n=[...e,t];return r&&n.length>r?n.slice(1):n}function kP(e,t,r=0){const n=[t,...e];return r&&n.length>r?n.slice(0,-1):n}var wh=Symbol();function iy(e,t){return!e.queryFn&&(t!=null&&t.initialPromise)?()=>t.initialPromise:!e.queryFn||e.queryFn===wh?()=>Promise.reject(new Error(`Missing queryFn: '${e.queryHash}'`)):e.queryFn}function sy(e,t){return typeof e=="function"?e(...t):!!e}var da,Oo,ii,s0,_P=(s0=class extends Wi{constructor(){super();Be(this,da);Be(this,Oo);Be(this,ii);Se(this,ii,t=>{if(!Ea&&window.addEventListener){const r=()=>t();return window.addEventListener("visibilitychange",r,!1),()=>{window.removeEventListener("visibilitychange",r)}}})}onSubscribe(){z(this,Oo)||this.setEventListener(z(this,ii))}onUnsubscribe(){var t;this.hasListeners()||((t=z(this,Oo))==null||t.call(this),Se(this,Oo,void 0))}setEventListener(t){var r;
vendor: 5,089 bytes, line 73
73Se(this,ii,t),(r=z(this,Oo))==null||r.call(this),Se(this,Oo,t(n=>{typeof n=="boolean"?this.setFocused(n):this.onFocus()}))}setFocused(t){z(this,da)!==t&&(Se(this,da,t),this.onFocus())}onFocus(){const t=this.isFocused();this.listeners.forEach(r=>{r(t)})}isFocused(){var t;return typeof z(this,da)=="boolean"?z(this,da):((t=globalThis.document)==null?void 0:t.visibilityState)!=="hidden"}},da=new WeakMap,Oo=new WeakMap,ii=new WeakMap,s0),kh=new _P,si,$o,li,l0,EP=(l0=class extends Wi{constructor(){super();Be(this,si,!0);Be(this,$o);Be(this,li);Se(this,li,t=>{if(!Ea&&window.addEventListener){const r=()=>t(!0),n=()=>t(!1);return window.addEventListener("online",r,!1),window.addEventListener("offline",n,!1),()=>{window.removeEventListener("online",r),window.removeEventListener("offline",n)}}})}onSubscribe(){z(this,$o)||this.setEventListener(z(this,li))}onUnsubscribe(){var t;this.hasListeners()||((t=z(this,$o))==null||t.call(this),Se(this,$o,void 0))}setEventListener(t){var r;Se(this,li,t),(r=z(this,$o))==null||r.call(this),Se(this,$o,t(this.setOnline.bind(this)))}setOnline(t){z(this,si)!==t&&(Se(this,si,t),this.listeners.forEach(n=>{n(t)}))}isOnline(){return z(this,si)}},si=new WeakMap,$o=new WeakMap,li=new WeakMap,l0),kc=new EP;function Gd(){let e,t;const r=new Promise((o,a)=>{e=o,t=a});r.status="pending",r.catch(()=>{});function n(o){Object.assign(r,o),delete r.resolve,delete r.reject}return r.resolve=o=>{n({status:"fulfilled",value:o}),e(o)},r.reject=o=>{n({status:"rejected",reason:o}),t(o)},r}function PP(e){return Math.min(1e3*2**e,3e4)}function ly(e){return(e??"online")==="online"?kc.isOnline():!0}var Kd=class extends Error{constructor(e){super("CancelledError"),this.revert=e==null?void 0:e.revert,this.silent=e==null?void 0:e.silent}};function cy(e){let t=!1,r=0,n;const o=Gd(),a=()=>o.status!=="pending",i=v=>{var x;if(!a()){const w=new Kd(v);h(w),(x=e.onCancel)==null||x.call(e,w)}},s=()=>{t=!0},l=()=>{t=!1},u=()=>kh.isFocused()&&(e.networkMode==="always"||kc.isOnline())&&e.canRun(),d=()=>ly(e.networkMode)&&e.canRun(),f=v=>{a()||(n==null||n(),o.resolve(v))},h=v=>{a()||(n==null||n(),o.reject(v))},g=()=>new Promise(v=>{var x;n=w=>{(a()||u())&&v(w)},(x=e.onPause)==null||x.call(e)}).then(()=>{var v;n=void 0,a()||(v=e.onContinue)==null||v.call(e)}),m=()=>{if(a())return;let v;const x=r===0?e.initialPromise:void 0;try{v=x??e.fn()}catch(w){v=Promise.reject(w)}Promise.resolve(v).then(f).catch(w=>{var O;if(a())return;const S=e.retry??(Ea?0:3),y=e.retryDelay??PP,_=typeof y=="function"?y(r,w):y,R=S===!0||typeof S=="number"&&r<S||typeof S=="function"&&S(r,w);if(t||!R){h(w);return}r++,(O=e.onFail)==null||O.call(e,r,w),SP(_).then(()=>u()?void 0:g()).then(()=>{t?h(w):m()})})};return{promise:o,status:()=>o.status,cancel:i,continue:()=>(n==null||n(),o),cancelRetry:s,continueRetry:l,canStart:d,start:()=>(d()?m():g().then(m),o)}}var RP=e=>setTimeout(e,0);function TP(){let e=[],t=0,r=s=>{s()},n=s=>{s()},o=RP;const a=s=>{t?e.push(s):o(()=>{r(s)})},i=()=>{const s=e;e=[],s.length&&o(()=>{n(()=>{s.forEach(l=>{r(l)})})})};return{batch:s=>{let l;t++;try{l=s()}finally{t--,t||i()}return l},batchCalls:s=>(...l)=>{a(()=>{s(...l)})},schedule:a,setNotifyFunction:s=>{r=s},setBatchNotifyFunction:s=>{n=s},setScheduler:s=>{o=s}}}var fr=TP(),fa,c0,uy=(c0=class{constructor(){Be(this,fa)}destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),Ud(this.gcTime)&&Se(this,fa,setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(Ea?1/0:5*60*1e3))}clearGcTimeout(){z(this,fa)&&(clearTimeout(z(this,fa)),Se(this,fa,void 0))}},fa=new WeakMap,c0),ci,ui,tn,ha,gr,Qs,pa,Sn,ro,u0,IP=(u0=class extends uy{constructor(t){super();Be(this,Sn);Be(this,ci);Be(this,ui);Be(this,tn);Be(this,ha);Be(this,gr);Be(this,Qs);Be(this,pa);Se(this,pa,!1),Se(this,Qs,t.defaultOptions),this.setOptions(t.options),this.observers=[],Se(this,ha,t.client),Se(this,tn,z(this,ha).getQueryCache()),this.queryKey=t.queryKey,this.queryHash=t.queryHash,Se(this,ci,DP(this.options)),this.state=t.state??z(this,ci),this.scheduleGc()}get meta(){return this.options.meta}get promise(){var t;return(t=z(this,gr))==null?void 0:t.promise}setOptions(t){this.options={...z(this,Qs),...t},this.updateGcTime(this.options.gcTime)}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&z(this,tn).remove(this)}setData(t,r){const n=Yd(this.state.data,t,this.options);return tt(this,Sn,ro).call(this,{data:n,type:"success",dataUpdatedAt:r==null?void 0:r.updatedAt,manual:r==null?void 0:r.manual}),n}setState(t,r){tt(this,Sn,ro).call(this,{type:"setState",state:t,setStateOptions:r})}cancel(t){var n,o;const r=(n=z(this,gr))==null?void 0:n.promise;return(o=z(this,gr))==null||o.cancel(t),r?r.then(Ar).catch(Ar):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(z(this,ci))}isActive(){return this.observers.some(t=>nn(t.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===wh||this.state.dataUpdateCount+this.state.errorUpdate
73Count===0}isStatic(){return this.getObserversCount()>0?this.observers.some(t=>Vo(t.options.staleTime,this)==="static"):!1}isStale(){return this.getObserversCount()>0?this.observers.some(t=>t.getCurrentResult().isStale):this.state.data===void 0||this.state.isInvalidated}isStaleByTime(t=0){return this.state.data===void 0?!0:t==="static"?!1:this.state.isInvalidated?!0:!oy(this.state.dataUpdatedAt,t)}onFocus(){var r;const t=this.observers.find(n=>n.shouldFetchOnWindowFocus());t==null||t.refetch({cancelRefetch:!1}),(r=z(this,gr))==null||r.continue()}onOnline(){var r;const t=this.observers.find(n=>n.shouldFetchOnReconnect());t==null||t.refetch({cancelRefetch:!1}),(r=z(this,gr))==null||r.continue()}addObserver(t){this.observers.includes(t)||(this.observers.push(t),this.clearGcTimeout(),z(this,tn).notify({type:"observerAdded",query:this,observer:t}))}removeObserver(t){this.observers.includes(t)&&(this.observers=this.observers.filter(r=>r!==t),this.observers.length||(z(this,gr)&&(z(this,pa)?z(this,gr).cancel({revert:!0}):z(this,gr).cancelRetry()),this.scheduleGc()),z(this,tn).notify({type:"observerRemoved",query:this,observer:t}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||tt(this,Sn,ro).call(this,{type:"invalidate"})}async fetch(t,r){var l,u,d,f,h,g,m,v,x,w,S,y;if(this.state.fetchStatus!=="idle"&&((l=z(this,gr))==null?void 0:l.status())!=="rejected"){if(this.state.data!==void 0&&(r!=null&&r.cancelRefetch))this.cancel({silent:!0});else if(z(this,gr))return z(this,gr).continueRetry(),z(this,gr).promise}if(t&&this.setOptions(t),!this.options.queryFn){const _=this.observers.find(R=>R.options.queryFn);_&&this.setOptions(_.options)}const n=new AbortController,o=_=>{Object.defineProperty(_,"signal",{enumerable:!0,get:()=>(Se(this,pa,!0),n.signal)})},a=()=>{const _=iy(this.options,r),O=(()=>{const b={client:z(this,ha),queryKey:this.queryKey,meta:this.meta};return o(b),b})();return Se(this,pa,!1),this.options.persister?this.options.persister(_,O,this):_(O)},s=(()=>{const _={fetchOptions:r,options:this.options,queryKey:this.queryKey,client:z(this,ha),state:this.state,fetchFn:a};return o(_),_})();(u=this.options.behavior)==null||u.onFetch(s,this),Se(this,ui,this.state),(this.state.fetchStatus==="idle"||this.state.fetchMeta!==((d=s.fetchOptions)==null?void 0:d.meta))&&tt(this,Sn,ro).call(this,{type:"fetch",meta:(f=s.fetchOptions)==null?void 0:f.meta}),Se(this,gr,cy({initialPromise:r==null?void 0:r.initialPromise,fn:s.fetchFn,onCancel:_=>{_ instanceof Kd&&_.revert&&this.setState({...z(this,ui),fetchStatus:"idle"}),n.abort()},onFail:(_,R)=>{tt(this,Sn,ro).call(this,{type:"failed",failureCount:_,error:R})},onPause:()=>{tt(this,Sn,ro).call(this,{type:"pause"})},onContinue:()=>{tt(this,Sn,ro).call(this,{type:"continue"})},retry:s.options.retry,retryDelay:s.options.retryDelay,networkMode:s.options.networkMode,canRun:()=>!0}));try{const _=await z(this,gr).start();if(_===void 0)throw new Error(`${this.queryHash} data is undefined`);return this.setData(_),(g=(h=z(this,tn).config).onSuccess)==null||g.call(h,_,this),(v=(m=z(this,tn).config).onSettled)==null||v.call(m,_,this.state.error,this),_}catch(_){if(_ instanceof Kd){if(_.silent)return z(this,gr).promise;if(_.revert){if(this.state.data===void 0)throw _;return this.state.data}}throw tt(this,Sn,ro).call(this,{type:"error",error:_}),(w=(x=z(this,tn).config).onError)==null||w.call(x,_,this),(y=(S=z(this,tn).config).onSettled)==null||y.call(S,this.state.data,_,this),_}finally{this.scheduleGc()}}},ci=new WeakMap,ui=new WeakMap,tn=new WeakMap,ha=new WeakMap,gr=new WeakMap,Qs=new WeakMap,pa=new WeakMap,Sn=new WeakSet,ro=function(t){const r=n=>{switch(t.type){case"failed":return{...n,fetchFailureCount:t.failureCount,fetchFailureReason:t.error};case"pause":return{...n,fetchStatus:"paused"};case"continue":return{...n,fetchStatus:"fetching"};case"fetch":return{...n,...dy(n.data,this.options),fetchMeta:t.meta??null};case"success":const o={...n,data:t.data,dataUpdateCount:n.dataUpdateCount+1,dataUpdatedAt:t.dataUpdatedAt??Date.now(),error:null,isInvalidated:!1,status:"success",...!t.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};return Se(this,ui,t.manual?o:void 0),o;case"error":const a=t.error;
vendor: 3,708 bytes, line 73
73return{...n,error:a,errorUpdateCount:n.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:n.fetchFailureCount+1,fetchFailureReason:a,fetchStatus:"idle",status:"error"};case"invalidate":return{...n,isInvalidated:!0};case"setState":return{...n,...t.state}}};this.state=r(this.state),fr.batch(()=>{this.observers.forEach(n=>{n.onQueryUpdate()}),z(this,tn).notify({query:this,type:"updated",action:t})})},u0);function dy(e,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:ly(t.networkMode)?"fetching":"paused",...e===void 0&&{error:null,status:"pending"}}}function DP(e){const t=typeof e.initialData=="function"?e.initialData():e.initialData,r=t!==void 0,n=r?typeof e.initialDataUpdatedAt=="function"?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:t,dataUpdateCount:0,dataUpdatedAt:r?n??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:r?"success":"pending",fetchStatus:"idle"}}var An,d0,OP=(d0=class extends Wi{constructor(t={}){super();Be(this,An);this.config=t,Se(this,An,new Map)}build(t,r,n){const o=r.queryKey,a=r.queryHash??Sh(o,r);let i=this.get(a);return i||(i=new IP({client:t,queryKey:o,queryHash:a,options:t.defaultQueryOptions(r),state:n,defaultOptions:t.getQueryDefaults(o)}),this.add(i)),i}add(t){z(this,An).has(t.queryHash)||(z(this,An).set(t.queryHash,t),this.notify({type:"added",query:t}))}remove(t){const r=z(this,An).get(t.queryHash);r&&(t.destroy(),r===t&&z(this,An).delete(t.queryHash),this.notify({type:"removed",query:t}))}clear(){fr.batch(()=>{this.getAll().forEach(t=>{this.remove(t)})})}get(t){return z(this,An).get(t)}getAll(){return[...z(this,An).values()]}find(t){const r={exact:!0,...t};return this.getAll().find(n=>Dm(r,n))}findAll(t={}){const r=this.getAll();return Object.keys(t).length>0?r.filter(n=>Dm(t,n)):r}notify(t){fr.batch(()=>{this.listeners.forEach(r=>{r(t)})})}onFocus(){fr.batch(()=>{this.getAll().forEach(t=>{t.onFocus()})})}onOnline(){fr.batch(()=>{this.getAll().forEach(t=>{t.onOnline()})})}},An=new WeakMap,d0),Ln,$r,ma,Mn,Po,f0,$P=(f0=class extends uy{constructor(t){super();Be(this,Mn);Be(this,Ln);Be(this,$r);Be(this,ma);this.mutationId=t.mutationId,Se(this,$r,t.mutationCache),Se(this,Ln,[]),this.state=t.state||fy(),this.setOptions(t.options),this.scheduleGc()}setOptions(t){this.options=t,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(t){z(this,Ln).includes(t)||(z(this,Ln).push(t),this.clearGcTimeout(),z(this,$r).notify({type:"observerAdded",mutation:this,observer:t}))}removeObserver(t){Se(this,Ln,z(this,Ln).filter(r=>r!==t)),this.scheduleGc(),z(this,$r).notify({type:"observerRemoved",mutation:this,observer:t})}optionalRemove(){z(this,Ln).length||(this.state.status==="pending"?this.scheduleGc():z(this,$r).remove(this))}continue(){var t;return((t=z(this,ma))==null?void 0:t.continue())??this.execute(this.state.variables)}async execute(t){var a,i,s,l,u,d,f,h,g,m,v,x,w,S,y,_,R,O,b,P;const r=()=>{tt(this,Mn,Po).call(this,{type:"continue"})};Se(this,ma,cy({fn:()=>this.options.mutationFn?this.options.mutationFn(t):Promise.reject(new Error("No mutationFn found")),onFail:(E,T)=>{tt(this,Mn,Po).call(this,{type:"failed",failureCount:E,error:T})},onPause:()=>{tt(this,Mn,Po).call(this,{type:"pause"})},onContinue:r,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>z(this,$r).canRun(this)}));const n=this.state.status==="pending",o=!z(this,ma).canStart();try{if(n)r();else{tt(this,Mn,Po).call(this,{type:"pending",variables:t,isPaused:o}),await((i=(a=z(this,$r).config).onMutate)==null?void 0:i.call(a,t,this));
73const T=await((l=(s=this.options).onMutate)==null?void 0:l.call(s,t));T!==this.state.context&&tt(this,Mn,Po).call(this,{type:"pending",context:T,variables:t,isPaused:o})}const E=await z(this,ma).start();return await((d=(u=z(this,$r).config).onSuccess)==null?void 0:d.call(u,E,t,this.state.context,this)),await((h=(f=this.options).onSuccess)==null?void 0:h.call(f,E,t,this.state.context)),await((m=(g=z(this,$r).config).onSettled)==null?void 0:m.call(g,E,null,this.state.variables,this.state.context,this)),await((x=(v=this.options).onSettled)==null?void 0:x.call(v,E,null,t,this.state.context)),tt(this,Mn,Po).call(this,{type:"success",data:E}),E}catch(E){try{throw await((S=(w=z(this,$r).config).onError)==null?void 0:S.call(w,E,t,this.state.context,this)),await((_=(y=this.options).onError)==null?void 0:_.call(y,E,t,this.state.context)),await((O=(R=z(this,$r).config).onSettled)==null?void 0:O.call(R,void 0,E,this.state.variables,this.state.context,this)),await((P=(b=this.options).onSettled)==null?void 0:P.call(b,void 0,E,t,this.state.context)),E}finally{tt(this,Mn,Po).call(this,{type:"error",error:E})}}finally{z(this,$r).runNext(this)}}},Ln=new WeakMap,$r=new WeakMap,ma=new WeakMap,Mn=new WeakSet,Po=function(t){const r=n=>{switch(t.type){case"failed":return{...n,failureCount:t.failureCount,failureReason:t.error};case"pause":return{...n,isPaused:!0};case"continue":return{...n,isPaused:!1};case"pending":return{...n,context:t.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:t.isPaused,status:"pending",variables:t.variables,submittedAt:Date.now()};case"success":return{...n,data:t.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...n,data:void 0,error:t.error,failureCount:n.failureCount+1,failureReason:t.error,isPaused:!1,status:"error"}}};this.state=r(this.state),fr.batch(()=>{z(this,Ln).forEach(n=>{n.onMutationUpdate(t)}),z(this,$r).notify({mutation:this,type:"updated",action:t})})},f0);function fy(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var ao,wn,Zs,h0,jP=(h0=class extends Wi{constructor(t={}){super();Be(this,ao);Be(this,wn);Be(this,Zs);this.config=t,Se(this,ao,new Set),Se(this,wn,new Map),Se(this,Zs,0)}build(t,r,n){const o=new $P({mutationCache:this,mutationId:++Cl(this,Zs)._,options:t.defaultMutationOptions(r),state:n});return this.add(o),o}add(t){z(this,ao).add(t);const r=Tl(t);if(typeof r=="string"){const n=z(this,wn).get(r);n?n.push(t):z(this,wn).set(r,[t])}this.notify({type:"added",mutation:t})}remove(t){if(z(this,ao).delete(t)){const r=Tl(t);if(typeof r=="string"){const n=z(this,wn).get(r);if(n)if(n.length>1){const o=n.indexOf(t);o!==-1&&n.splice(o,1)}else n[0]===t&&z(this,wn).delete(r)}}this.notify({type:"removed",mutation:t})}canRun(t){const r=Tl(t);if(typeof r=="string"){const n=z(this,wn).get(r),o=n==null?void 0:n.find(a=>a.state.status==="pending");return!o||o===t}else return!0}runNext(t){var n;const r=Tl(t);if(typeof r=="string"){const o=(n=z(this,wn).get(r))==null?void 0:n.find(a=>a!==t&&a.state.isPaused);return(o==null?void 0:o.continue())??Promise.resolve()}else return Promise.resolve()}clear(){fr.batch(()=>{z(this,ao).forEach(t=>{this.notify({type:"removed",mutation:t})}),z(this,ao).clear(),z(this,wn).clear()})}getAll(){return Array.from(z(this,ao))}find(t){const r={exact:!0,...t};return this.getAll().find(n=>Om(r,n))}findAll(t={}){return this.getAll().filter(r=>Om(t,r))}notify(t){fr.batch(()=>{this.listeners.forEach(r=>{r(t)})})}resumePausedMutations(){const t=this.getAll().filter(r=>
vendor: 8,141 bytes, line 73
73r.state.isPaused);return fr.batch(()=>Promise.all(t.map(r=>r.continue().catch(Ar))))}},ao=new WeakMap,wn=new WeakMap,Zs=new WeakMap,h0);function Tl(e){var t;return(t=e.options.scope)==null?void 0:t.id}function Am(e){return{onFetch:(t,r)=>{var d,f,h,g,m;const n=t.options,o=(h=(f=(d=t.fetchOptions)==null?void 0:d.meta)==null?void 0:f.fetchMore)==null?void 0:h.direction,a=((g=t.state.data)==null?void 0:g.pages)||[],i=((m=t.state.data)==null?void 0:m.pageParams)||[];let s={pages:[],pageParams:[]},l=0;const u=async()=>{let v=!1;const x=y=>{Object.defineProperty(y,"signal",{enumerable:!0,get:()=>(t.signal.aborted?v=!0:t.signal.addEventListener("abort",()=>{v=!0}),t.signal)})},w=iy(t.options,t.fetchOptions),S=async(y,_,R)=>{if(v)return Promise.reject();if(_==null&&y.pages.length)return Promise.resolve(y);const b=(()=>{const I={client:t.client,queryKey:t.queryKey,pageParam:_,direction:R?"backward":"forward",meta:t.options.meta};return x(I),I})(),P=await w(b),{maxPages:E}=t.options,T=R?kP:wP;return{pages:T(y.pages,P,E),pageParams:T(y.pageParams,_,E)}};if(o&&a.length){const y=o==="backward",_=y?hy:Jd,R={pages:a,pageParams:i},O=_(n,R);s=await S(R,O,y)}else{const y=e??a.length;do{const _=l===0?i[0]??n.initialPageParam:Jd(n,s);if(l>0&&_==null)break;s=await S(s,_),l++}while(l<y)}return s};t.options.persister?t.fetchFn=()=>{var v,x;return(x=(v=t.options).persister)==null?void 0:x.call(v,u,{client:t.client,queryKey:t.queryKey,meta:t.options.meta,signal:t.signal},r)}:t.fetchFn=u}}}function Jd(e,{pages:t,pageParams:r}){const n=t.length-1;return t.length>0?e.getNextPageParam(t[n],t,r[n],r):void 0}function hy(e,{pages:t,pageParams:r}){var n;return t.length>0?(n=e.getPreviousPageParam)==null?void 0:n.call(e,t[0],t,r[0],r):void 0}function f7(e,t){return t?Jd(e,t)!=null:!1}function h7(e,t){return!t||!e.getPreviousPageParam?!1:hy(e,t)!=null}var rr,jo,Ao,di,fi,Lo,hi,pi,p0,p7=(p0=class{constructor(e={}){Be(this,rr);Be(this,jo);Be(this,Ao);Be(this,di);Be(this,fi);Be(this,Lo);Be(this,hi);Be(this,pi);Se(this,rr,e.queryCache||new OP),Se(this,jo,e.mutationCache||new jP),Se(this,Ao,e.defaultOptions||{}),Se(this,di,new Map),Se(this,fi,new Map),Se(this,Lo,0)}mount(){Cl(this,Lo)._++,z(this,Lo)===1&&(Se(this,hi,kh.subscribe(async e=>{e&&(await this.resumePausedMutations(),z(this,rr).onFocus())})),Se(this,pi,kc.subscribe(async e=>{e&&(await this.resumePausedMutations(),z(this,rr).onOnline())})))}unmount(){var e,t;Cl(this,Lo)._--,z(this,Lo)===0&&((e=z(this,hi))==null||e.call(this),Se(this,hi,void 0),(t=z(this,pi))==null||t.call(this),Se(this,pi,void 0))}isFetching(e){return z(this,rr).findAll({...e,fetchStatus:"fetching"}).length}isMutating(e){return z(this,jo).findAll({...e,status:"pending"}).length}getQueryData(e){var r;const t=this.defaultQueryOptions({queryKey:e});return(r=z(this,rr).get(t.queryHash))==null?void 0:r.state.data}ensureQueryData(e){const t=this.defaultQueryOptions(e),r=z(this,rr).build(this,t),n=r.state.data;return n===void 0?this.fetchQuery(e):(e.revalidateIfStale&&r.isStaleByTime(Vo(t.staleTime,r))&&this.prefetchQuery(t),Promise.resolve(n))}getQueriesData(e){return z(this,rr).findAll(e).map(({queryKey:t,state:r})=>{const n=r.data;return[t,n]})}setQueryData(e,t,r){const n=this.defaultQueryOptions({queryKey:e}),o=z(this,rr).get(n.queryHash),a=o==null?void 0:o.state.data,i=xP(t,a);if(i!==void 0)return z(this,rr).build(this,n).setData(i,{...r,manual:!0})}setQueriesData(e,t,r){return fr.batch(()=>z(this,rr).findAll(e).map(({queryKey:n})=>[n,this.setQueryData(n,t,r)]))}getQueryState(e){var r;const t=this.defaultQueryOptions({queryKey:e});return(r=z(this,rr).get(t.queryHash))==null?void 0:r.state}removeQueries(e){const t=z(this,rr);fr.batch(()=>{t.findAll(e).forEach(r=>{t.remove(r)})})}resetQueries(e,t){const r=z(this,rr);return fr.batch(()=>(r.findAll(e).forEach(n=>{n.reset()}),this.refetchQueries({type:"active",...e},t)))}cancelQueries(e,t={}){const r={revert:!0,...t},n=fr.batch(()=>z(this,rr).findAll(e).map(o=>o.cancel(r)));return Promise.all(n).then(Ar).catch(Ar)}invalidateQueries(e,t={}){return fr.batch(()=>(z(this,rr).findAll(e).forEach(r=>{r.invalidate()}),(e==null?void 0:e.refetchType)==="none"?Promise.resolve():this.refetchQueries({...e,type:(e==null?void 0:e.refetchType)??(e==null?void 0:e.type)??"active"},t)))}refetchQueries(e,t={}){const r={...t,cancelRefetch:t.cancelRefetch??!0},n=fr.batch(()=>z(this,rr).findAll(e).filter(o=>!o.isDisabled()&&!o.isStatic()).map(o=>{let a=o.fetch(void 0,r);return r.throwOnError||(a=a.catch(Ar)),o.state.fetchStatus==="paused"?Promise.resolve():a}));return Promise.all(n).then(Ar)}fetchQuery(e){const t=this.defaultQueryOptions(e);t.retry===void 0&&(t.retry=!1);const r=z(this,rr).build(this,t);return r.isStaleByTime(Vo(t.staleTime,r))?r.fetch(t):Promise.resolve(r.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(Ar).catch(Ar)}fetchInfiniteQuery(e){return e.behavior=Am(e.pages),this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(Ar).catch(Ar)}ensureInfiniteQueryData(e){return e.behavior=Am(e.pages),this.ensureQueryData(e)}resumePausedMutations(){return kc.isOnline()?z(this,jo).resumePausedMutations():Promise.resolve()}getQueryCache(){return z(this,rr)}getMutationCache(){return z(this,jo)}getDefaultOptions(){return z(this,Ao)}setDefaultOptions(e){Se(this,Ao,e)}setQueryDefaults(e,t){z(this,di).set(Pa(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){const t=[...z(this,di).values()],r={};return t.forEach(n=>{Ns(e,n.queryKey)&&Object.assign(r,n.defaultOptions)}),r}setMutationDefaults(e,t){z(this,fi).set(Pa(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){const t=[...z(this,fi).values()],r={};return t.forEach(n=>{Ns(e,n.mutationKey)&&Object.assign(r,n.defaultOptions)}),r}defaultQueryOptions(e){if(e._defaulted)return e;const t={...z(this,Ao).queries,...this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return t.queryHash||(t.queryHash=Sh(t.queryKey,t)),t.refetchOnReconnect===void 0&&(t.refetchOnReconnect=t.networkMode!=="always"),t.throwOnError===void 0&&(t.throwOnError=!!t.suspense),!t.networkMode&&t.persister&&(t.networkMode="offlineFirst"),t.queryFn===wh&&(t.enabled=!1),t}defaultMutationOptions(e){return e!=null&&e._defaulted?e:{...z(this,Ao).mutations,...(e==null?void 0:e.mutationKey)&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){z(this,rr).clear(),z(this,jo).clear()}},rr=new WeakMap,jo=new WeakMap,Ao=new WeakMap,di=new WeakMap,fi=new WeakMap,Lo=new WeakMap,hi=new WeakMap,pi=new WeakMap,p0),Fr,mt,el,jr,ga,mi,io,Mo,tl,gi,vi,va,ya,zo,yi,Tt,gs,qd,Xd,Qd,Zd,ef,tf,rf,py,m0,AP=(m0=class extends Wi{constructor(t,r){super();Be(this,Tt);Be(this,Fr);Be(this,mt);Be(this,el);Be(this,jr);Be(this,ga);Be(this,mi);Be(this,io);Be(this,Mo);Be(this,tl);Be(this,gi);Be(this,vi);Be(this,va);Be(this,ya);Be(this,zo);Be(this,yi,new Set);this.options=r,Se(this,Fr,t),Se(this,Mo,null),Se(this,io,Gd()),this.bindMethods(),this.setOptions(r)}bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(z(this,mt).addObserver(this),Lm(z(this,mt),this.options)?tt(this,Tt,gs).call(this):this.updateResult(),tt(this,Tt,Zd).call(this))}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return nf(z(this,mt),this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return nf(z(this,mt),this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,tt(this,Tt,ef).call(this),tt(this,Tt,tf).call(this),z(this,mt).removeObserver(this)}setOptions(t){const r=this.options,n=z(this,mt);if(this.options=z(this,Fr).defaultQueryOptions(t),this.options.enabled!==void 0&&typeof this.options.enabled!="boolean"&&typeof this.options.enabled!="function"&&typeof nn(this.options.enabled,z(this,mt))!="boolean")throw new Error("Expected enabled to be a boolean or a callback that returns a boolean");tt(this,Tt,rf).call(this),z(this,mt).setOptions(this.options),r._defaulted&&!wc(this.options,r)&&z(this,Fr).getQueryCache().notify({type:"observerOptionsUpdated",query:z(this,mt),observer:this});const o=this.hasListeners();o&&Mm(z(this,mt),n,this.options,r)&&tt(this,Tt,gs).c
73all(this),this.updateResult(),o&&(z(this,mt)!==n||nn(this.options.enabled,z(this,mt))!==nn(r.enabled,z(this,mt))||Vo(this.options.staleTime,z(this,mt))!==Vo(r.staleTime,z(this,mt)))&&tt(this,Tt,qd).call(this);const a=tt(this,Tt,Xd).call(this);o&&(z(this,mt)!==n||nn(this.options.enabled,z(this,mt))!==nn(r.enabled,z(this,mt))||a!==z(this,zo))&&tt(this,Tt,Qd).call(this,a)}getOptimisticResult(t){const r=z(this,Fr).getQueryCache().build(z(this,Fr),t),n=this.createResult(r,t);return MP(this,n)&&(Se(this,jr,n),Se(this,mi,this.options),Se(this,ga,z(this,mt).state)),n}getCurrentResult(){return z(this,jr)}trackResult(t,r){return new Proxy(t,{get:(n,o)=>(this.trackProp(o),r==null||r(o),o==="promise"&&!this.options.experimental_prefetchInRender&&z(this,io).status==="pending"&&z(this,io).reject(new Error("experimental_prefetchInRender feature flag is not enabled")),Reflect.get(n,o))})}trackProp(t){z(this,yi).add(t)}getCurrentQuery(){return z(this,mt)}refetch({...t}={}){return this.fetch({...t})}fetchOptimistic(t){const r=z(this,Fr).defaultQueryOptions(t),n=z(this,Fr).getQueryCache().build(z(this,Fr),r);return n.fetch().then(()=>this.createResult(n,r))}
vendor: 2,535 bytes, line 73
73fetch(t){return tt(this,Tt,gs).call(this,{...t,cancelRefetch:t.cancelRefetch??!0}).then(()=>(this.updateResult(),z(this,jr)))}createResult(t,r){var E;const n=z(this,mt),o=this.options,a=z(this,jr),i=z(this,ga),s=z(this,mi),u=t!==n?t.state:z(this,el),{state:d}=t;let f={...d},h=!1,g;if(r._optimisticResults){const T=this.hasListeners(),I=!T&&Lm(t,r),k=T&&Mm(t,n,r,o);(I||k)&&(f={...f,...dy(d.data,t.options)}),r._optimisticResults==="isRestoring"&&(f.fetchStatus="idle")}let{error:m,errorUpdatedAt:v,status:x}=f;g=f.data;let w=!1;if(r.placeholderData!==void 0&&g===void 0&&x==="pending"){let T;a!=null&&a.isPlaceholderData&&r.placeholderData===(s==null?void 0:s.placeholderData)?(T=a.data,w=!0):T=typeof r.placeholderData=="function"?r.placeholderData((E=z(this,vi))==null?void 0:E.state.data,z(this,vi)):r.placeholderData,T!==void 0&&(x="success",g=Yd(a==null?void 0:a.data,T,r),h=!0)}if(r.select&&g!==void 0&&!w)if(a&&g===(i==null?void 0:i.data)&&r.select===z(this,tl))g=z(this,gi);else try{Se(this,tl,r.select),g=r.select(g),g=Yd(a==null?void 0:a.data,g,r),Se(this,gi,g),Se(this,Mo,null)}catch(T){Se(this,Mo,T)}z(this,Mo)&&(m=z(this,Mo),g=z(this,gi),v=Date.now(),x="error");const S=f.fetchStatus==="fetching",y=x==="pending",_=x==="error",R=y&&S,O=g!==void 0,P={status:x,fetchStatus:f.fetchStatus,isPending:y,isSuccess:x==="success",isError:_,isInitialLoading:R,isLoading:R,data:g,dataUpdatedAt:f.dataUpdatedAt,error:m,errorUpdatedAt:v,failureCount:f.fetchFailureCount,failureReason:f.fetchFailureReason,errorUpdateCount:f.errorUpdateCount,isFetched:f.dataUpdateCount>0||f.errorUpdateCount>0,isFetchedAfterMount:f.dataUpdateCount>u.dataUpdateCount||f.errorUpdateCount>u.errorUpdateCount,isFetching:S,isRefetching:S&&!y,isLoadingError:_&&!O,isPaused:f.fetchStatus==="paused",isPlaceholderData:h,isRefetchError:_&&O,isStale:_h(t,r),refetch:this.refetch,promise:z(this,io),isEnabled:nn(r.enabled,t)!==!1};if(this.options.experimental_prefetchInRender){const T=D=>{P.status==="error"?D.reject(P.error):P.data!==void 0&&D.resolve(P.data)},I=()=>{const D=Se(this,io,P.promise=Gd());T(D)},k=z(this,io);switch(k.status){case"pending":t.queryHash===n.queryHash&&T(k);break;case"fulfilled":(P.status==="error"||P.data!==k.value)&&I();break;case"rejected":(P.status!=="error"||P.error!==k.reason)&&I();break}}return P}updateResult(){const t=z(this,jr),r=this.createResult(z(this,mt),this.options);if(Se(this,ga,z(this,mt).state),Se(this,mi,this.options),z(this,ga).data!==void 0&&Se(this,vi,z(this,mt)),wc(r,t))return;Se(this,jr,r);const n=()=>
vendor: 5,793 bytes, line 73
73{if(!t)return!0;const{notifyOnChangeProps:o}=this.options,a=typeof o=="function"?o():o;if(a==="all"||!a&&!z(this,yi).size)return!0;const i=new Set(a??z(this,yi));return this.options.throwOnError&&i.add("error"),Object.keys(z(this,jr)).some(s=>{const l=s;return z(this,jr)[l]!==t[l]&&i.has(l)})};tt(this,Tt,py).call(this,{listeners:n()})}onQueryUpdate(){this.updateResult(),this.hasListeners()&&tt(this,Tt,Zd).call(this)}},Fr=new WeakMap,mt=new WeakMap,el=new WeakMap,jr=new WeakMap,ga=new WeakMap,mi=new WeakMap,io=new WeakMap,Mo=new WeakMap,tl=new WeakMap,gi=new WeakMap,vi=new WeakMap,va=new WeakMap,ya=new WeakMap,zo=new WeakMap,yi=new WeakMap,Tt=new WeakSet,gs=function(t){tt(this,Tt,rf).call(this);let r=z(this,mt).fetch(this.options,t);return t!=null&&t.throwOnError||(r=r.catch(Ar)),r},qd=function(){tt(this,Tt,ef).call(this);const t=Vo(this.options.staleTime,z(this,mt));if(Ea||z(this,jr).isStale||!Ud(t))return;const n=oy(z(this,jr).dataUpdatedAt,t)+1;Se(this,va,setTimeout(()=>{z(this,jr).isStale||this.updateResult()},n))},Xd=function(){return(typeof this.options.refetchInterval=="function"?this.options.refetchInterval(z(this,mt)):this.options.refetchInterval)??!1},Qd=function(t){tt(this,Tt,tf).call(this),Se(this,zo,t),!(Ea||nn(this.options.enabled,z(this,mt))===!1||!Ud(z(this,zo))||z(this,zo)===0)&&Se(this,ya,setInterval(()=>{(this.options.refetchIntervalInBackground||kh.isFocused())&&tt(this,Tt,gs).call(this)},z(this,zo)))},Zd=function(){tt(this,Tt,qd).call(this),tt(this,Tt,Qd).call(this,tt(this,Tt,Xd).call(this))},ef=function(){z(this,va)&&(clearTimeout(z(this,va)),Se(this,va,void 0))},tf=function(){z(this,ya)&&(clearInterval(z(this,ya)),Se(this,ya,void 0))},rf=function(){const t=z(this,Fr).getQueryCache().build(z(this,Fr),this.options);if(t===z(this,mt))return;const r=z(this,mt);Se(this,mt,t),Se(this,el,t.state),this.hasListeners()&&(r==null||r.removeObserver(this),t.addObserver(this))},py=function(t){fr.batch(()=>{t.listeners&&this.listeners.forEach(r=>{r(z(this,jr))}),z(this,Fr).getQueryCache().notify({query:z(this,mt),type:"observerResultsUpdated"})})},m0);function LP(e,t){return nn(t.enabled,e)!==!1&&e.state.data===void 0&&!(e.state.status==="error"&&t.retryOnMount===!1)}function Lm(e,t){return LP(e,t)||e.state.data!==void 0&&nf(e,t,t.refetchOnMount)}function nf(e,t,r){if(nn(t.enabled,e)!==!1&&Vo(t.staleTime,e)!=="static"){const n=typeof r=="function"?r(e):r;return n==="always"||n!==!1&&_h(e,t)}return!1}function Mm(e,t,r,n){return(e!==t||nn(n.enabled,e)===!1)&&(!r.suspense||e.state.status!=="error")&&_h(e,r)}function _h(e,t){return nn(t.enabled,e)!==!1&&e.isStaleByTime(Vo(t.staleTime,e))}function MP(e,t){return!wc(e.getCurrentResult(),t)}var No,Fo,Hr,so,go,tc,of,g0,zP=(g0=class extends Wi{constructor(t,r){super();Be(this,go);Be(this,No);Be(this,Fo);Be(this,Hr);Be(this,so);Se(this,No,t),this.setOptions(r),this.bindMethods(),tt(this,go,tc).call(this)}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(t){var n;const r=this.options;this.options=z(this,No).defaultMutationOptions(t),wc(this.options,r)||z(this,No).getMutationCache().notify({type:"observerOptionsUpdated",mutation:z(this,Hr),observer:this}),r!=null&&r.mutationKey&&this.options.mutationKey&&Pa(r.mutationKey)!==Pa(this.options.mutationKey)?this.reset():((n=z(this,Hr))==null?void 0:n.state.status)==="pending"&&z(this,Hr).setOptions(this.options)}onUnsubscribe(){var t;this.hasListeners()||(t=z(this,Hr))==null||t.removeObserver(this)}onMutationUpdate(t){tt(this,go,tc).call(this),tt(this,go,of).call(this,t)}getCurrentResult(){return z(this,Fo)}reset(){var t;(t=z(this,Hr))==null||t.removeObserver(this),Se(this,Hr,void 0),tt(this,go,tc).call(this),tt(this,go,of).call(this)}mutate(t,r){var n;return Se(this,so,r),(n=z(this,Hr))==null||n.removeObserver(this),Se(this,Hr,z(this,No).getMutationCache().build(z(this,No),this.options)),z(this,Hr).addObserver(this),z(this,Hr).execute(t)}},No=new WeakMap,Fo=new WeakMap,Hr=new WeakMap,so=new WeakMap,go=new WeakSet,tc=function(){var r;const t=((r=z(this,Hr))==null?void 0:r.state)??fy();Se(this,Fo,{...t,isPending:t.status==="pending",isSuccess:t.status==="success",isError:t.status==="error",isIdle:t.status==="idle",mutate:this.mutate,reset:this.reset})},of=function(t){fr.batch(()=>{var r,n,o,a,i,s,l,u;if(z(this,so)&&this.hasListeners()){const d=z(this,Fo).variables,f=z(this,Fo).context;(t==null?void 0:t.type)==="success"?((n=(r=z(this,so)).onSuccess)==null||n.call(r,t.data,d,f),(a=(o=z(this,so)).onSettled)==null||a.call(o,t.data,null,d,f)):(t==null?void 0:t.type)==="error"&&((s=(i=z(this,so)).onError)==null||s.call(i,t.error,d,f),(u=(l=z(this,so)).onSettled)==null||u.call(l,void 0,t.error,d,f))}this.listeners.forEach(d=>{d(z(this,Fo))})})},g0),my=p.createContext(void 0),So=e=>{const t=p.useContext(my);if(!t)throw new Error("No QueryClient set, use QueryClientProvider to set one");return t},m7=({client:e,children:t})=>(p.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]),c.jsx(my.Provider,{value:e,children:t})),gy=p.createContext(!1),NP=()=>p.useContext(gy);gy.Provider;function FP(){let e=!1;return{clearReset:()=>{e=!1},reset:()=>{e=!0},isReset:()=>e}}var HP=p.createContext(FP()),BP=()=>p.useContext(HP),WP=(e,t)=>{(e.suspense||e.throwOnError||e.experimental_prefetchInRender)&&(t.isReset()||(e.retryOnMount=!1))},UP=e=>{p.useEffect(()=>{e.clearReset()},[e])},VP=({result:e,errorResetBoundary:t,throwOnError:r,query:n,suspense:o})=>e.isError&&!t.isReset()&&!e.isFetching&&n&&(o&&e.data===void 0||sy(r,[e.error,n])),YP=e=>{if(e.suspense){const r=o=>o==="static"?o:Math.max(o??1e3,1e3),n=e.staleTime;e.staleTime=typeof n=="function"?(...o)=>r(n(...o)):r(n),typeof e.gcTime=="number"&&(e.gcTime=Math.max(e.gcTime,1e3))}},GP=(e,t)=>e.isLoading&&e.isFetching&&!t,KP=(e,t)=>
73(e==null?void 0:e.suspense)&&t.isPending,zm=(e,t,r)=>t.fetchOptimistic(e).catch(()=>{r.clearReset()});function JP(e,t,r){var f,h,g,m,v;const n=NP(),o=BP(),a=So(),i=a.defaultQueryOptions(e);(h=(f=a.getDefaultOptions().queries)==null?void 0:f._experimental_beforeQuery)==null||h.call(f,i),i._optimisticResults=n?"isRestoring":"optimistic",YP(i),WP(i,o),UP(o);const s=!a.getQueryCache().get(i.queryHash),[l]=p.useState(()=>new t(a,i)),u=l.getOptimisticResult(i),d=!n&&e.subscribed!==!1;if(p.useSyncExternalStore(p.useCallback(x=>{const w=d?l.subscribe(fr.batchCalls(x)):Ar;return l.updateResult(),w},[l,d]),()=>l.getCurrentResult(),()=>l.getCurrentResult()),p.useEffect(()=>{l.setOptions(i)},[i,l]),KP(i,u))throw zm(i,l,o);if(VP({result:u,errorResetBoundary:o,throwOnError:i.throwOnError,query:a.getQueryCache().get(i.queryHash),suspense:i.suspense}))throw u.error;if((m=(g=a.getDefaultOptions().queries)==null?void 0:g._experimental_afterQuery)==null||m.call(g,i,u),i.experimental_prefetchInRender&&!Ea&&GP(u,n)){const x=s?zm(i,l,o):(v=a.getQueryCache().get(i.queryHash))==null?void 0:v.promise;x==null||x.catch(Ar).finally(()=>{l.updateResult()})}return i.notifyOnChangeProps?u:l.trackResult(u)}function Ui(e,t){return JP(e,AP)}function vy(e,t){const r=So(),[n]=p.useState(()=>new zP(r,e));p.useEffect(()=>{n.setOptions(e)},[n,e]);const o=p.useSyncExternalStore(p.useCallback(i=>n.subscribe(fr.batchCalls(i)),[n]),()=>n.getCurrentResult(),()=>n.getCurrentResult()),a=p.useCallback((i,s)=>{n.mutate(i,s).catch(Ar)},[n]);if(o.error&&sy(n.options.throwOnError,[o.error]))throw o.error;return{...o,mutate:a,mutateAsync:o.mutate}}/** 74 * @remix-run/router v1.23.2 75 * 76 * Copyright (c) Remix Software Inc. 77 * 78 * This source code is licensed under the MIT license found in the 79 * LICENSE.md file in the root directory of this source tree. 80 * 81 * @license MIT 82 */function Qt(){return Qt=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Qt.apply(this,arguments)}var ir;(function(e){e.Pop="POP",e.Push="PUSH",e.Replace="REPLACE"})(ir||(ir={}));const Nm="popstate";function qP(e){e===void 0&&(e={});function t(n,o){let{pathname:a,search:i,hash:s}=n.location;return Fs("",{pathname:a,search:i,hash:s},o.state&&o.state.usr||null,o.state&&o.state.key||"default")}function r(n,o){return typeof o=="string"?o:Ta(o)}return QP(t,r,null,e)}function at(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function Ra(e,t){if(!e)try{throw new Error(t)}catch{}}function XP(){return Math.random().toString(36).substr(2,8)}function Fm(e,t){return{usr:e.state,key:e.key,idx:t}}function Fs(e,t,r,n){return r===void 0&&(r=null),Qt({pathname:typeof e=="string"?e:e.pathname,search:"",hash:""},typeof t=="string"?Jo(t):t,{state:r,key:t&&t.key||n||XP()})}function Ta(e){let{pathname:t="/",search:r="",hash:n=""}=e;return r&&r!=="?"&&(t+=r.charAt(0)==="?"?r:"?"+r),n&&n!=="#"&&(t+=n.charAt(0)==="#"?n:"#"+n),t}function Jo(e){let t={};if(e){let r=e.indexOf("#");r>=0&&(t.hash=e.substr(r),e=e.substr(0,r));let n=e.indexOf("?");n>=0&&(t.search=e.substr(n),e=e.substr(0,n)),e&&(t.pathname=e)}return t}function QP(e,t,r,n){n===void 0&&(n={});let{window:o=document.defaultView,v5Compat:a=!1}=n,i=o.history,s=ir.Pop,l=null,u=d();u==null&&(u=0,i.replaceState(Qt({},i.state,{idx:u}),""));function d(){return(i.state||{idx:null}).idx}function f(){s=ir.Pop;let x=d(),w=x==null?null:x-u;u=x,l&&l({action:s,location:v.location,delta:w})}function h(x,w){s=ir.Push;let S=Fs(v.location,x,w);u=d()+1;let y=Fm(S,u),_=v.createHref(S);try{i.pushState(y,"",_)}catch(R){if(R instanceof DOMException&&R.name==="DataCloneError")throw R;o.location.assign(_)}a&&l&&l({action:s,location:v.location,delta:1})}function g(x,w){s=ir.Replace;let S=Fs(v.location,x,w);u=d();let y=Fm(S,u),_=v.createHref(S);i.replaceState(y,"",_),a&&l&&l({action:s,location:v.location,delta:0})}function m(x){let w=o.location.origin!=="null"?o.location.origin:o.location.href,S=typeof x=="string"?x:Ta(x);return S=S.replace(/ $/,"%20"),at(w,"No window.location.(origin|href) available to create URL for href: "+S),new URL(S,w)}let v={get action(){return s},get location(){return e(o,i)}
vendor: 49,120 bytes, lines 82-92
82,listen(x){if(l)throw new Error("A history only accepts one active listener");return o.addEventListener(Nm,f),l=x,()=>{o.removeEventListener(Nm,f),l=null}},createHref(x){return t(o,x)},createURL:m,encodeLocation(x){let w=m(x);return{pathname:w.pathname,search:w.search,hash:w.hash}},push:h,replace:g,go(x){return i.go(x)}};return v}var Ot;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})(Ot||(Ot={}));const ZP=new Set(["lazy","caseSensitive","path","id","index","children"]);function eR(e){return e.index===!0}function _c(e,t,r,n){return r===void 0&&(r=[]),n===void 0&&(n={}),e.map((o,a)=>{let i=[...r,String(a)],s=typeof o.id=="string"?o.id:i.join("-");if(at(o.index!==!0||!o.children,"Cannot specify children on an index route"),at(!n[s],'Found a route id collision on id "'+s+`". Route id's must be globally unique within Data Router usages`),eR(o)){let l=Qt({},o,t(o),{id:s});return n[s]=l,l}else{let l=Qt({},o,t(o),{id:s,children:void 0});return n[s]=l,o.children&&(l.children=_c(o.children,t,i,n)),l}})}function ia(e,t,r){return r===void 0&&(r="/"),rc(e,t,r,!1)}function rc(e,t,r,n){let o=typeof t=="string"?Jo(t):t,a=Vi(o.pathname||"/",r);if(a==null)return null;let i=yy(e);rR(i);let s=null;for(let l=0;s==null&&l<i.length;++l){let u=hR(a);s=dR(i[l],u,n)}return s}function tR(e,t){let{route:r,pathname:n,params:o}=e;return{id:r.id,pathname:n,params:o,data:t[r.id],handle:r.handle}}function yy(e,t,r,n){t===void 0&&(t=[]),r===void 0&&(r=[]),n===void 0&&(n="");let o=(a,i,s)=>{let l={relativePath:s===void 0?a.path||"":s,caseSensitive:a.caseSensitive===!0,childrenIndex:i,route:a};l.relativePath.startsWith("/")&&(at(l.relativePath.startsWith(n),'Absolute route path "'+l.relativePath+'" nested under path '+('"'+n+'" is not valid. An absolute child route path ')+"must start with the combined path of all its parent routes."),l.relativePath=l.relativePath.slice(n.length));let u=ho([n,l.relativePath]),d=r.concat(l);a.children&&a.children.length>0&&(at(a.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+u+'".')),yy(a.children,t,d,u)),!(a.path==null&&!a.index)&&t.push({path:u,score:cR(u,a.index),routesMeta:d})};return e.forEach((a,i)=>{var s;if(a.path===""||!((s=a.path)!=null&&s.includes("?")))o(a,i);else for(let l of by(a.path))o(a,i,l)}),t}function by(e){let t=e.split("/");if(t.length===0)return[];let[r,...n]=t,o=r.endsWith("?"),a=r.replace(/\?$/,"");if(n.length===0)return o?[a,""]:[a];let i=by(n.join("/")),s=[];return s.push(...i.map(l=>l===""?a:[a,l].join("/"))),o&&s.push(...i),s.map(l=>e.startsWith("/")&&l===""?"/":l)}function rR(e){e.sort((t,r)=>t.score!==r.score?r.score-t.score:uR(t.routesMeta.map(n=>n.childrenIndex),r.routesMeta.map(n=>n.childrenIndex)))}const nR=/^:[\w-]+$/,oR=3,aR=2,iR=1,sR=10,lR=-2,Hm=e=>e==="*";function cR(e,t){let r=e.split("/"),n=r.length;return r.some(Hm)&&(n+=lR),t&&(n+=aR),r.filter(o=>!Hm(o)).reduce((o,a)=>o+(nR.test(a)?oR:a===""?iR:sR),n)}function uR(e,t){return e.length===t.length&&e.slice(0,-1).every((n,o)=>n===t[o])?e[e.length-1]-t[t.length-1]:0}function dR(e,t,r){r===void 0&&(r=!1);let{routesMeta:n}=e,o={},a="/",i=[];for(let s=0;s<n.length;++s){let l=n[s],u=s===n.length-1,d=a==="/"?t:t.slice(a.length)||"/",f=Bm({path:l.relativePath,caseSensitive:l.caseSensitive,end:u},d),h=l.route;if(!f&&u&&r&&!n[n.length-1].route.index&&(f=Bm({path:l.relativePath,caseSensitive:l.caseSensitive,end:!1},d)),!f)return null;Object.assign(o,f.params),i.push({params:o,pathname:ho([a,f.pathname]),pathnameBase:vR(ho([a,f.pathnameBase])),route:h}),f.pathnameBase!=="/"&&(a=ho([a,f.pathnameBase]))}return i}function Bm(e,t){typeof e=="string"&&(e={path:e,caseSensitive:!1,end:!0});let[r,n]=fR(e.path,e.caseSensitive,e.end),o=t.match(r);if(!o)return null;let a=o[0],i=a.replace(/(.)\/+$/,"$1"),s=o.slice(1);return{params:n.reduce((u,d,f)=>{let{paramName:h,isOptional:g}=d;if(h==="*"){let v=s[f]||"";i=a.slice(0,a.length-v.length).replace(/(.)\/+$/,"$1")}const m=s[f];return g&&!m?u[h]=void 0:u[h]=(m||"").replace(/%2F/g,"/"),u},{}),pathname:a,pathnameBase:i,pattern:e}}function fR(e,t,r){t===void 0&&(t=!1),r===void 0&&(r=!0),Ra(e==="*"||!e.endsWith("*")||e.endsWith("/*"),'Route path "'+e+'" will be treated as if it were '+('"'+e.replace(/\*$/,"/*")+'" because the `*` character must ')+"always follow a `/` in the pattern. To get rid of this warning, "+('please change the route path to "'+e.replace(/\*$/,"/*")+'".'));let n=[],o="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(i,s,l)=>(n.push({paramName:s,isOptional:l!=null}),l?"/?([^\\/]+)?":"/([^\\/]+)"));return e.endsWith("*")?(n.push({paramName:"*"}),o+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):r?o+="\\/*$":e!==""&&e!=="/"&&(o+="(?:(?=\\/|$))"),[new RegExp(o,t?void 0:"i"),n]}function hR(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return Ra(!1,'The URL path "'+e+'" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent '+("encoding ("+t+").")),e}}function Vi(e,t){if(t==="/")return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let r=t.endsWith("/")?t.length-1:t.length,n=e.charAt(r);return n&&n!=="/"?null:e.slice(r)||"/"}const pR=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,mR=e=>pR.test(e);function gR(e,t){t===void 0&&(t="/");let{pathname:r,search:n="",hash:o=""}=typeof e=="string"?Jo(e):e,a;if(r)if(mR(r))a=r;else{if(r.includes("//")){let i=r;r=r.replace(/\/\/+/g,"/"),Ra(!1,"Pathnames cannot have embedded double slashes - normalizing "+(i+" -> "+r))}r.startsWith("/")?a=Wm(r.substring(1),"/"):a=Wm(r,t)}else a=t;return{pathname:a,search:yR(n),hash:bR(o)}}function Wm(e,t){let r=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(o=>{o===".."?r.length>1&&r.pop():o!=="."&&r.push(o)}),r.length>1?r.join("/"):"/"}function ud(e,t,r,n){return"Cannot include a '"+e+"' character in a manually specified "+("`to."+t+"` field ["+JSON.stringify(n)+"]. Please separate it out to the ")+("`to."+r+"` field. Alternatively you may provide the full path as ")+'a string in <Link to="..."> and the router will parse it for you.'}function xy(e){return e.filter((t,r)=>r===0||t.route.path&&t.route.path.length>0)}function Tu(e,t){let r=xy(e);return t?r.map((n,o)=>o===r.length-1?n.pathname:n.pathnameBase):r.map(n=>n.pathnameBase)}function Iu(e,t,r,n){n===void 0&&(n=!1);let o;typeof e=="string"?o=Jo(e):(o=Qt({},e),at(!o.pathname||!o.pathname.includes("?"),ud("?","pathname","search",o)),at(!o.pathname||!o.pathname.includes("#"),ud("#","pathname","hash",o)),at(!o.search||!o.search.includes("#"),ud("#","search","hash",o)));let a=e===""||o.pathname==="",i=a?"/":o.pathname,s;if(i==null)s=r;else{let f=t.length-1;if(!n&&i.startsWith("..")){let h=i.split("/");for(;h[0]==="..";)h.shift(),f-=1;o.pathname=h.join("/")}s=f>=0?t[f]:"/"}let l=gR(o,s),u=i&&i!=="/"&&i.endsWith("/"),d=(a||i===".")&&r.endsWith("/");return!l.pathname.endsWith("/")&&(u||d)&&(l.pathname+="/"),l}const ho=e=>e.join("/").replace(/\/\/+/g,"/"),vR=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),yR=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,bR=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;class Ec{constructor(t,r,n,o){o===void 0&&(o=!1),this.status=t,this.statusText=r||"",this.internal=o,n instanceof Error?(this.data=n.toString(),this.error=n):this.data=n}}function Hs(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}const Cy=["post","put","patch","delete"],xR=new Set(Cy),CR=["get",...Cy],SR=new Set(CR),wR=new Set([301,302,303,307,308]),kR=new Set([307,308]),dd={state:"idle",location:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},_R={state:"idle",data:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},ls={state:"unblocked",proceed:void 0,reset:void 0,location:void 0},Eh=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,ER=e=>({hasErrorBoundary:!!e.hasErrorBoundary}),Sy="remix-router-transitions";function PR(e){const t=e.window?e.window:typeof window<"u"?window:void 0,r=typeof t<"u"&&typeof t.document<"u"&&typeof t.document.createElement<"u",n=!r;at(e.routes.length>0,"You must provide a non-empty routes array to createRouter");let o;if(e.mapRouteProperties)o=e.mapRouteProperties;else if(e.detectErrorBoundary){let N=e.detectErrorBoundary;o=H=>({hasErrorBoundary:N(H)})}else o=ER;let a={},i=_c(e.routes,o,void 0,a),s,l=e.basename||"/",u=e.dataStrategy||DR,d=e.patchRoutesOnNavigation,f=Qt({v7_fetcherPersist:!1,v7_normalizeFormMethod:!1,v7_partialHydration:!1,v7_prependBasename:!1,v7_relativeSplatPath:!1,v7_skipActionErrorRevalidation:!1},e.future),h=null,g=new Set,m=null,v=null,x=null,w=e.hydrationData!=null,S=ia(i,e.history.location,l),y=!1,_=null;if(S==null&&!d){let N=Br(404,{pathname:e.history.location.pathname}),{matches:H,route:Y}=eg(i);S=H,_={[Y.id]:N}}S&&!e.hydrationData&&Ne(S,i,e.history.location.pathname).active&&(S=null);let R;if(S)if(S.some(N=>N.route.lazy))R=!1;else if(!S.some(N=>N.route.loader))R=!0;else if(f.v7_partialHydration){let N=e.hydrationData?e.hydrationData.loaderData:null,H=e.hydrationData?e.hydrationData.errors:null;if(H){let Y=S.findIndex(Z=>H[Z.route.id]!==void 0);R=S.slice(0,Y+1).every(Z=>!sf(Z.route,N,H))}else R=S.every(Y=>!sf(Y.route,N,H))}else R=e.hydrationData!=null;else if(R=!1,S=[],f.v7_partialHydration){let N=Ne(null,i,e.history.location.pathname);N.active&&N.matches&&(y=!0,S=N.matches)}let O,b={historyAction:e.history.action,location:e.history.location,matches:S,initialized:R,navigation:dd,restoreScrollPosition:e.hydrationData!=null?!1:null,preventScrollReset:!1,revalidation:"idle",loaderData:e.hydrationData&&e.hydrationData.loaderData||{},actionData:e.hydrationData&&e.hydrationData.actionData||null,errors:e.hydrationData&&e.hydrationData.errors||_,fetchers:new Map,blockers:new Map},P=ir.Pop,E=!1,T,I=!1,k=new Map,D=null,L=!1,$=!1,j=[],A=new Set,M=new Map,F=0,V=-1,K=new Map,le=new Set,xe=new Map,de=new Map,re=new Set,_e=new Map,G=new Map,U;function X(){if(h=e.history.listen(N=>{let{action:H,location:Y,delta:Z}=N;if(U){U(),U=void 0;return}Ra(G.size===0||Z!=null,"You are trying to use a blocker on a POP navigation to a location that was not created by @remix-run/router. This will fail silently in production. This can happen if you are navigating outside the router via `window.history.pushState`/`window.location.hash` instead of using router navigation APIs. This can also happen if you are using createHashRouter and the user manually changes the URL.");let be=xt({currentLocation:b.location,nextLocation:Y,historyAction:H});if(be&&Z!=null){let Me=new Promise(Ue=>{U=Ue});e.history.go(Z*-1),Wt(be,{state:"blocked",location:Y,proceed(){Wt(be,{state:"proceeding",proceed:void 0,reset:void 0,location:Y}),Me.then(()=>e.history.go(Z))},reset(){let Ue=new Map(b.blockers);Ue.set(be,ls),te({blockers:Ue})}});return}return ne(H,Y)}),r){VR(t,k);let N=()=>YR(t,k);t.addEventListener("pagehide",N),D=()=>t.removeEventListener("pagehide",N)}return b.initialized||ne(ir.Pop,b.location,{initialHydration:!0}),O}function oe(){h&&h(),D&&D(),g.clear(),T&&T.abort(),b.fetchers.forEach((N,H)=>Ht(H)),b.blockers.forEach((N,H)=>br(H))}function ge(N){return g.add(N),()=>g.delete(N)}function te(N,H){H===void 0&&(H={}),b=Qt({},b,N);let Y=[],Z=[];f.v7_fetcherPersist&&b.fetchers.forEach((be,Me)=>{be.state==="idle"&&(re.has(Me)?Z.push(Me):Y.push(Me))}),re.forEach(be=>{!b.fetchers.has(be)&&!M.has(be)&&Z.push(be)}),[...g].forEach(be=>be(b,{deletedFetchers:Z,viewTransitionOpts:H.viewTransitionOpts,flushSync:H.flushSync===!0})),f.v7_fetcherPersist?(Y.forEach(be=>b.fetchers.delete(be)),Z.forEach(be=>Ht(be))):Z.forEach(be=>re.delete(be))}function Ee(N,H,Y){var Z,be;let{flushSync:Me}=Y===void 0?{}:Y,Ue=b.actionData!=null&&b.navigation.formMethod!=null&&kn(b.navigation.formMethod)&&b.navigation.state==="loading"&&((Z=N.state)==null?void 0:Z._isRedirect)!==!0,Ie;H.actionData?Object.keys(H.actionData).length>0?Ie=H.actionData:Ie=null:Ue?Ie=b.actionData:Ie=null;let De=H.loaderData?Qm(b.loaderData,H.loaderData,H.matches||[],H.errors):b.loaderData,ke=b.blockers;ke.size>0&&(ke=new Map(ke),ke.forEach((ee,Oe)=>ke.set(Oe,ls)));let B=E===!0||b.navigation.formMethod!=null&&kn(b.navigation.formMethod)&&((be=N.state)==null?void 0:be._isRedirect)!==!0;s&&(i=s,s=void 0),L||P===ir.Pop||(P===ir.Push?e.history.push(N,N.state):P===ir.Replace&&e.history.replace(N,N.state));let W;if(P===ir.Pop){let ee=k.get(b.location.pathname);ee&&ee.has(N.pathname)?W={currentLocation:b.location,nextLocation:N}:k.has(N.pathname)&&(W={currentLocation:N,nextLocation:b.location})}else if(I){let ee=k.get(b.location.pathname);ee?ee.add(N.pathname):(ee=new Set([N.pathname]),k.set(b.location.pathname,ee)),W={currentLocation:b.location,nextLocation:N}}te(Qt({},H,{actionData:Ie,loaderData:De,historyAction:P,location:N,initialized:!0,navigation:dd,revalidation:"idle",restoreScrollPosition:et(N,H.matches||b.matches),preventScrollReset:B,blockers:ke}),{viewTransitionOpts:W,flushSync:Me===!0}),P=ir.Pop,E=!1,I=!1,L=!1,$=!1,j=[]}async function je(N,H){if(typeof N=="number"){e.history.go(N);return}let Y=af(b.location,b.matches,l,f.v7_prependBasename,N,f.v7_relativeSplatPath,H==null?void 0:H.fromRouteId,H==null?void 0:H.relative),{path:Z,submission:be,error:Me}=Um(f.v7_normalizeFormMethod,!1,Y,H),Ue=b.location,Ie=Fs(b.location,Z,H&&H.state);Ie=Qt({},Ie,e.history.encodeLocation(Ie));let De=H&&H.replace!=null?H.replace:void 0,ke=ir.Push;De===!0?ke=ir.Replace:De===!1||be!=null&&kn(be.formMethod)&&be.formAction===b.location.pathname+b.location.search&&(ke=ir.Replace);let B=H&&"preventScrollReset"in H?H.preventScrollReset===!0:void 0,W=(H&&H.flushSync)===!0,ee=xt({currentLocation:Ue,nextLocation:Ie,historyAction:ke});if(ee){Wt(ee,{state:"blocked",location:Ie,proceed(){Wt(ee,{state:"proceeding",proceed:void 0,reset:void 0,location:Ie}),je(N,H)},reset(){let Oe=new Map(b.blockers);Oe.set(ee,ls),te({blockers:Oe})}});return}return await ne(ke,Ie,{submission:be,pendingError:Me,preventScrollReset:B,replace:H&&H.replace,enableViewTransition:H&&H.viewTransition,flushSync:W})}function ve(){if(Ye(),te({revalidation:"loading"}),b.navigation.state!=="submitting"){if(b.navigation.state==="idle"){ne(b.historyAction,b.location,{startUninterruptedRevalidation:!0});return}ne(P||b.historyAction,b.navigation.location,{overrideNavigation:b.navigation,enableViewTransition:I===!0})}}async function ne(N,H,Y){T&&T.abort(),T=null,P=N,L=(Y&&Y.startUninterruptedRevalidation)===!0,dt(b.location,b.matches),E=(Y&&Y.preventScrollReset)===!0,I=(Y&&Y.enableViewTransition)===!0;let Z=s||i,be=Y&&Y.overrideNavigation,Me=Y!=null&&Y.initialHydration&&b.matches&&b.matches.length>0&&!y?b.matches:ia(Z,H,l),Ue=(Y&&Y.flushSync)===!0;if(Me&&b.initialized&&!$&&MR(b.location,H)&&!(Y&&Y.submission&&kn(Y.submission.formMethod))){Ee(H,{matches:Me},{flushSync:Ue});return}let Ie=Ne(Me,Z,H.pathname);if(Ie.active&&Ie.matches&&(Me=Ie.matches),!Me){let{error:Le,notFoundMatches:He,route:Je}=wt(H.pathname);Ee(H,{matches:He,loaderData:{},errors:{[Je.id]:Le}},{flushSync:Ue});return}T=new AbortController;let De=Fa(e.history,H,T.signal,Y&&Y.submission),ke;if(Y&&Y.pendingError)ke=[sa(Me).route.id,{type:Ot.error,error:Y.pendingError}];else if(Y&&Y.submission&&kn(Y.submission.formMethod)){let Le=await We(De,H,Y.submission,Me,Ie.active,{replace:Y.replace,flushSync:Ue});if(Le.shortCircuited)return;if(Le.pendingActionResult){let[He,Je]=Le.pendingActionResult;if(Jr(Je)&&Hs(Je.error)&&Je.error.status===404){T=null,Ee(H,{matches:Le.matches,loaderData:{},errors:{[He]:Je.error}});return}}Me=Le.matches||Me,ke=Le.pendingActionResult,be=fd(H,Y.submission),Ue=!1,Ie.active=!1,De=Fa(e.history,De.url,De.signal)}let{shortCircuited:B,matches:W,loaderData:ee,errors:Oe}=await Re(De,H,Me,Ie.active,be,Y&&Y.submission,Y&&Y.fetcherSubmission,Y&&Y.replace,Y&&Y.initialHydration===!0,Ue,ke);B||(T=null,Ee(H,Qt({matches:W||Me},Zm(ke),{loaderData:ee,errors:Oe})))}async function We(N,H,Y,Z,be,Me){Me===void 0&&(Me={}),Ye();let Ue=WR(H,Y);if(te({navigation:Ue},{flushSync:Me.flushSync===!0}),be){let ke=await Vt(Z,H.pathname,N.signal);if(ke.type==="aborted")return{shortCircuited:!0};if(ke.type==="error"){let B=sa(ke.partialMatches).route.id;return{matches:ke.partialMatches,pendingActionResult:[B,{type:Ot.error,error:ke.error}]}}else if(ke.matches)Z=ke.matches;else{let{notFoundMatches:B,error:W,route:ee}=wt(H.pathname);return{matches:B,pendingActionResult:[ee.id,{type:Ot.error,error:W}]}}}let Ie,De=vs(Z,H);if(!De.route.action&&!De.route.lazy)Ie={type:Ot.error,error:Br(405,{method:N.method,pathname:H.pathname,routeId:De.route.id})};else if(Ie=(await Ve("action",b,N,[De],Z,null))[De.route.id],N.signal.aborted)return{shortCircuited:!0};if(ca(Ie)){let ke;return Me&&Me.replace!=null?ke=Me.replace:ke=Jm(Ie.response.headers.get("Location"),new URL(N.url),l,e.history)===b.location.pathname+b.location.search,await J(N,Ie,!0,{submission:Y,replace:ke}),{shortCircuited:!0}}if(Ho(Ie))throw Br(400,{type:"defer-action"});if(Jr(Ie)){let ke=sa(Z,De.route.id);return(Me&&Me.replace)!==!0&&(P=ir.Push),{matches:Z,pendingActionResult:[ke.route.id,Ie]}}return{matches:Z,pendingActionResult:[De.route.id,Ie]}}async function Re(N,H,Y,Z,be,Me,Ue,Ie,De,ke,B){let W=be||fd(H,Me),ee=Me||Ue||rg(W),Oe=!L&&(!f.v7_partialHydration||!De);if(Z){if(Oe){let ft=st(B);te(Qt({navigation:W},ft!==void 0?{actionData:ft}:{}),{flushSync:ke})}let Ce=await Vt(Y,H.pathname,N.signal);if(Ce.type==="aborted")return{shortCircuited:!0};if(Ce.type==="error"){let ft=sa(Ce.partialMatches).route.id;return{matches:Ce.partialMatches,loaderData:{},errors:{[ft]:Ce.error}}}else if(Ce.matches)Y=Ce.matches;else{let{error:ft,notFoundMatches:Yt,route:xr}=wt(H.pathname);return{matches:Yt,loaderData:{},errors:{[xr.id]:ft}}}}let Le=s||i,[He,Je]=Ym(e.history,b,Y,ee,H,f.v7_partialHydration&&De===!0,f.v7_skipActionErrorRevalidation,$,j,A,re,xe,le,Le,l,B);if(Lt(Ce=>!(Y&&Y.some(ft=>ft.route.id===Ce))||He&&He.some(ft=>ft.route.id===Ce)),V=++F,He.length===0&&Je.length===0){let Ce=Ge();return Ee(H,Qt({matches:Y,loaderData:{},errors:B&&Jr(B[1])?{[B[0]]:B[1].error}:null},Zm(B),Ce?{fetchers:new Map(b.fetchers)}:{}),{flushSync:ke}),{shortCircuited:!0}}if(Oe){let Ce={};if(!Z){Ce.navigation=W;let ft=st(B);ft!==void 0&&(Ce.actionData=ft)}Je.length>0&&(Ce.fetchers=gt(Je)),te(Ce,{flushSync:ke})}Je.forEach(Ce=>{ye(Ce.key),Ce.controller&&M.set(Ce.key,Ce.controller)});let cr=()=>Je.forEach(Ce=>ye(Ce.key));T&&T.signal.addEventListener("abort",cr);let{loaderResults:Dn,fetcherResults:bn}=await Ke(b,Y,He,Je,N);if(N.signal.aborted)return{shortCircuited:!0};T&&T.signal.removeEventListener("abort",cr),Je.forEach(Ce=>M.delete(Ce.key));let xn=Il(Dn);if(xn)return await J(N,xn.result,!0,{replace:Ie}),{shortCircuited:!0};if(xn=Il(bn),xn)return le.add(xn.key),await J(N,xn.result,!0,{replace:Ie}),{shortCircuited:!0};let{loaderData:ts,errors:Eo}=Xm(b,Y,Dn,B,Je,bn,_e);_e.forEach((Ce,ft)=>{Ce.subscribe(Yt=>{(Yt||Ce.done)&&_e.delete(ft)})}),f.v7_partialHydration&&De&&b.errors&&(Eo=Qt({},b.errors,Eo));let eo=Ge(),Qo=Er(V),Zo=eo||Qo||Je.length>0;return Qt({matches:Y,loaderData:ts,errors:Eo},Zo?{fetchers:new Map(b.fetchers)}:{})}function st(N){if(N&&!Jr(N[1]))return{[N[0]]:N[1].data};if(b.actionData)return Object.keys(b.actionData).length===0?null:b.actionData}function gt(N){return N.forEach(H=>{let Y=b.fetchers.get(H.key),Z=cs(void 0,Y?Y.data:void 0);b.fetchers.set(H.key,Z)}),new Map(b.fetchers)}function jt(N,H,Y,Z){if(n)throw new Error("router.fetch() was called during the server render, but it shouldn't be. You are likely calling a useFetcher() method in the body of your component. Try moving it to a useEffect or a callback.");ye(N);let be=(Z&&Z.flushSync)===!0,Me=s||i,Ue=af(b.location,b.matches,l,f.v7_prependBasename,Y,f.v7_relativeSplatPath,H,Z==null?void 0:Z.relative),Ie=ia(Me,Ue,l),De=Ne(Ie,Me,Ue);if(De.active&&De.matches&&(Ie=De.matches),!Ie){Te(N,H,Br(404,{pathname:Ue}),{flushSync:be});return}let{path:ke,submission:B,error:W}=Um(f.v7_normalizeFormMethod,!0,Ue,Z);if(W){Te(N,H,W,{flushSync:be});return}let ee=vs(Ie,ke),Oe=(Z&&Z.preventScrollReset)===!0;if(B&&kn(B.formMethod)){At(N,H,ke,ee,Ie,De.active,be,Oe,B);return}xe.set(N,{routeId:H,path:ke}),qe(N,H,ke,ee,Ie,De.active,be,Oe,B)}async function At(N,H,Y,Z,be,Me,Ue,Ie,De){Ye(),xe.delete(N);function ke(Dt){if(!Dt.route.action&&!Dt.route.lazy){let On=Br(405,{method:De.formMethod,pathname:Y,routeId:H});return Te(N,H,On,{flushSync:Ue}),!0}return!1}if(!Me&&ke(Z))return;let B=b.fetchers.get(N);ze(N,UR(De,B),{flushSync:Ue});let W=new AbortController,ee=Fa(e.history,Y,W.signal,De);if(Me){let Dt=await Vt(be,new URL(ee.url).pathname,ee.signal,N);if(Dt.type==="aborted")return;if(Dt.type==="error"){Te(N,H,Dt.error,{flushSync:Ue});return}else if(Dt.matches){if(be=Dt.matches,Z=vs(be,Y),ke(Z))return}else{Te(N,H,Br(404,{pathname:Y}),{flushSync:Ue});return}}M.set(N,W);let Oe=F,He=(await Ve("action",b,ee,[Z],be,N))[Z.route.id];if(ee.signal.aborted){M.get(N)===W&&M.delete(N);return}if(f.v7_fetcherPersist&&re.has(N)){if(ca(He)||Jr(He)){ze(N,Ro(void 0));return}}else{if(ca(He))if(M.delete(N),V>Oe){ze(N,Ro(void 0));return}else return le.add(N),ze(N,cs(De)),J(ee,He,!1,{fetcherSubmission:De,preventScrollReset:Ie});if(Jr(He)){Te(N,H,He.error);return}}if(Ho(He))throw Br(400,{type:"defer-action"});let Je=b.navigation.location||b.location,cr=Fa(e.history,Je,W.signal),Dn=s||i,bn=b.navigation.state!=="idle"?ia(Dn,b.navigation.location,l):b.matches;at(bn,"Didn't find any matches after fetcher action");let xn=++F;K.set(N,xn);let ts=cs(De,He.data);b.fetchers.set(N,ts);let[Eo,eo]=Ym(e.history,b,bn,De,Je,!1,f.v7_skipActionErrorRevalidation,$,j,A,re,xe,le,Dn,l,[Z.route.id,He]);eo.filter(Dt=>Dt.key!==N).forEach(Dt=>{let On=Dt.key,Cn=b.fetchers.get(On),$n=cs(void 0,Cn?Cn.data:void 0);b.fetchers.set(On,$n),ye(On),Dt.controller&&M.set(On,Dt.controller)}),te({fetchers:new Map(b.fetchers)});let Qo=()=>eo.forEach(Dt=>ye(Dt.key));W.signal.addEventListener("abort",Qo);let{loaderResults:Zo,fetcherResults:Ce}=await Ke(b,bn,Eo,eo,cr);if(W.signal.aborted)return;W.signal.removeEventListener("abort",Qo),K.delete(N),M.delete(N),eo.forEach(Dt=>M.delete(Dt.key));let ft=Il(Zo);if(ft)return J(cr,ft.result,!1,{preventScrollReset:Ie});if(ft=Il(Ce),ft)return le.add(ft.key),J(cr,ft.result,!1,{preventScrollReset:Ie});let{loaderData:Yt,errors:xr}=Xm(b,bn,Zo,void 0,eo,Ce,_e);if(b.fetchers.has(N)){let Dt=Ro(He.data);b.fetchers.set(N,Dt)}Er(xn),b.navigation.state==="loading"&&xn>V?(at(P,"Expected pending action"),T&&T.abort(),Ee(b.navigation.location,{matches:bn,loaderData:Yt,errors:xr,fetchers:new Map(b.fetchers)})):(te({errors:xr,loaderData:Qm(b.loaderData,Yt,bn,xr),fetchers:new Map(b.fetchers)}),$=!1)}async function qe(N,H,Y,Z,be,Me,Ue,Ie,De){let ke=b.fetchers.get(N);ze(N,cs(De,ke?ke.data:void 0),{flushSync:Ue});let B=new AbortController,W=Fa(e.history,Y,B.signal);if(Me){let He=await Vt(be,new URL(W.url).pathname,W.signal,N);if(He.type==="aborted")return;if(He.type==="error"){Te(N,H,He.error,{flushSync:Ue});return}else if(He.matches)be=He.matches,Z=vs(be,Y);else{Te(N,H,Br(404,{pathname:Y}),{flushSync:Ue});return}}M.set(N,B);let ee=F,Le=(await Ve("loader",b,W,[Z],be,N))[Z.route.id];if(Ho(Le)&&(Le=await Ph(Le,W.signal,!0)||Le),M.get(N)===B&&M.delete(N),!W.signal.aborted){if(re.has(N)){ze(N,Ro(void 0));return}if(ca(Le))if(V>ee){ze(N,Ro(void 0));return}else{le.add(N),await J(W,Le,!1,{preventScrollReset:Ie});return}if(Jr(Le)){Te(N,H,Le.error);return}at(!Ho(Le),"Unhandled fetcher deferred data"),ze(N,Ro(Le.data))}}async function J(N,H,Y,Z){let{submission:be,fetcherSubmission:Me,preventScrollReset:Ue,replace:Ie}=Z===void 0?{}:Z;H.response.headers.has("X-Remix-Revalidate")&&($=!0);let De=H.response.headers.get("Location");at(De,"Expected a Location header on the redirect Response"),De=Jm(De,new URL(N.url),l,e.history);let ke=Fs(b.location,De,{_isRedirect:!0});if(r){let He=!1;if(H.response.headers.has("X-Remix-Reload-Document"))He=!0;else if(Eh.test(De)){const Je=e.history.createURL(De);He=Je.origin!==t.location.origin||Vi(Je.pathname,l)==null}if(He){Ie?t.location.replace(De):t.location.assign(De);return}}T=null;let B=Ie===!0||H.response.headers.has("X-Remix-Replace")?ir.Replace:ir.Push,{formMethod:W,formAction:ee,formEncType:Oe}=b.navigation;!be&&!Me&&W&&ee&&Oe&&(be=rg(b.navigation));let Le=be||Me;if(kR.has(H.response.status)&&Le&&kn(Le.formMethod))await ne(B,ke,{submission:Qt({},Le,{formAction:De}),preventScrollReset:Ue||E,enableViewTransition:Y?I:void 0});else{let He=fd(ke,be);await ne(B,ke,{overrideNavigation:He,fetcherSubmission:Me,preventScrollReset:Ue||E,enableViewTransition:Y?I:void 0})}}async function Ve(N,H,Y,Z,be,Me){let Ue,Ie={};try{Ue=await OR(u,N,H,Y,Z,be,Me,a,o)}catch(De){return Z.forEach(ke=>{Ie[ke.route.id]={type:Ot.error,error:De}}),Ie}for(let[De,ke]of Object.entries(Ue))if(zR(ke)){let B=ke.result;Ie[De]={type:Ot.redirect,response:AR(B,Y,De,be,l,f.v7_relativeSplatPath)}}else Ie[De]=await jR(ke);return Ie}async function Ke(N,H,Y,Z,be){let Me=N.matches,Ue=Ve("loader",N,be,Y,H,null),Ie=Promise.all(Z.map(async B=>{if(B.matches&&B.match&&B.controller){let ee=(await Ve("loader",N,Fa(e.history,B.path,B.controller.signal),[B.match],B.matches,B.key))[B.match.route.id];return{[B.key]:ee}}else return Promise.resolve({[B.key]:{type:Ot.error,error:Br(404,{pathname:B.path})}})})),De=await Ue,ke=(await Ie).reduce((B,W)=>Object.assign(B,W),{});return await Promise.all([HR(H,De,be.signal,Me,N.loaderData),BR(H,ke,Z)]),{loaderResults:De,fetcherResults:ke}}function Ye(){$=!0,j.push(...Lt()),xe.forEach((N,H)=>{M.has(H)&&A.add(H),ye(H)})}function ze(N,H,Y){Y===void 0&&(Y={}),b.fetchers.set(N,H),te({fetchers:new Map(b.fetchers)},{flushSync:(Y&&Y.flushSync)===!0})}function Te(N,H,Y,Z){Z===void 0&&(Z={});let be=sa(b.matches,H);Ht(N),te({errors:{[be.route.id]:Y},fetchers:new Map(b.fetchers)},{flushSync:(Z&&Z.flushSync)===!0})}function rt(N){return de.set(N,(de.get(N)||0)+1),re.has(N)&&re.delete(N),b.fetchers.get(N)||_R}function Ht(N){let H=b.fetchers.get(N);M.has(N)&&!(H&&H.state==="loading"&&K.has(N))&&ye(N),xe.delete(N),K.delete(N),le.delete(N),f.v7_fetcherPersist&&re.delete(N),A.delete(N),b.fetchers.delete(N)}function fe(N){let H=(de.get(N)||0)-1;H<=0?(de.delete(N),re.add(N),f.v7_fetcherPersist||Ht(N)):de.set(N,H),te({fetchers:new Map(b.fetchers)})}function ye(N){let H=M.get(N);H&&(H.abort(),M.delete(N))}function $e(N){for(let H of N){let Y=rt(H),Z=Ro(Y.data);b.fetchers.set(H,Z)}}function Ge(){let N=[],H=!1;for(let Y of le){let Z=b.fetchers.get(Y);at(Z,"Expected fetcher: "+Y),Z.state==="loading"&&(le.delete(Y),N.push(Y),H=!0)}return $e(N),H}function Er(N){let H=[];for(let[Y,Z]of K)if(Z<N){let be=b.fetchers.get(Y);at(be,"Expected fetcher: "+Y),be.state==="loading"&&(ye(Y),K.delete(Y),H.push(Y))}return $e(H),H.length>0}function Pt(N,H){let Y=b.blockers.get(N)||ls;return G.get(N)!==H&&G.set(N,H),Y}function br(N){b.blockers.delete(N),G.delete(N)}function Wt(N,H){let Y=b.blockers.get(N)||ls;at(Y.state==="unblocked"&&H.state==="blocked"||Y.state==="blocked"&&H.state==="blocked"||Y.state==="blocked"&&H.state==="proceeding"||Y.state==="blocked"&&H.state==="unblocked"||Y.state==="proceeding"&&H.state==="unblocked","Invalid blocker state transition: "+Y.state+" -> "+H.state);let Z=new Map(b.blockers);Z.set(N,H),te({blockers:Z})}function xt(N){let{currentLocation:H,nextLocation:Y,historyAction:Z}=N;if(G.size===0)return;G.size>1&&Ra(!1,"A router only supports one blocker at a time");let be=Array.from(G.entries()),[Me,Ue]=be[be.length-1],Ie=b.blockers.get(Me);if(!(Ie&&Ie.state==="proceeding")&&Ue({currentLocation:H,nextLocation:Y,historyAction:Z}))return Me}function wt(N){let H=Br(404,{pathname:N}),Y=s||i,{matches:Z,route:be}=eg(Y);return Lt(),{notFoundMatches:Z,route:be,error:H}}function Lt(N){let H=[];return _e.forEach((Y,Z)=>{(!N||N(Z))&&(Y.cancel(),H.push(Z),_e.delete(Z))}),H}function Ae(N,H,Y){if(m=N,x=H,v=Y||null,!w&&b.navigation===dd){w=!0;let Z=et(b.location,b.matches);Z!=null&&te({restoreScrollPosition:Z})}return()=>{m=null,x=null,v=null}}function Ut(N,H){return v&&v(N,H.map(Z=>tR(Z,b.loaderData)))||N.key}function dt(N,H){if(m&&x){let Y=Ut(N,H);m[Y]=x()}}function et(N,H){if(m){let Y=Ut(N,H),Z=m[Y];if(typeof Z=="number")return Z}return null}function Ne(N,H,Y){if(d)if(N){if(Object.keys(N[0].params).length>0)return{active:!0,matches:rc(H,Y,l,!0)}}else return{active:!0,matches:rc(H,Y,l,!0)||[]};return{active:!1,matches:null}}async function Vt(N,H,Y,Z){if(!d)return{type:"success",matches:N};let be=N;for(;;){let Me=s==null,Ue=s||i,Ie=a;try{await d({signal:Y,path:H,matches:be,fetcherKey:Z,patch:(B,W)=>{Y.aborted||Km(B,W,Ue,Ie,o)}})}catch(B){return{type:"error",error:B,partialMatches:be}}finally{Me&&!Y.aborted&&(i=[...i])}if(Y.aborted)return{type:"aborted"};let De=ia(Ue,H,l);if(De)return{type:"success",matches:De};let ke=rc(Ue,H,l,!0);if(!ke||be.length===ke.length&&be.every((B,W)=>B.route.id===ke[W].route.id))return{type:"success",matches:null};be=ke}}function _o(N){a={},s=_c(N,o,void 0,a)}function Zn(N,H){let Y=s==null;Km(N,H,s||i,a,o),Y&&(i=[...i],te({}))}return O={get basename(){return l},get future(){return f},get state(){return b},get routes(){return i},get window(){return t},initialize:X,subscribe:ge,enableScrollRestoration:Ae,navigate:je,fetch:jt,revalidate:ve,createHref:N=>e.history.createHref(N),encodeLocation:N=>e.history.encodeLocation(N),getFetcher:rt,deleteFetcher:fe,dispose:oe,getBlocker:Pt,deleteBlocker:br,patchRoutes:Zn,_internalFetchControllers:M,_internalActiveDeferreds:_e,_internalSetRoutes:_o},O}function RR(e){return e!=null&&("formData"in e&&e.formData!=null||"body"in e&&e.body!==void 0)}function af(e,t,r,n,o,a,i,s){let l,u;if(i){l=[];for(let f of t)if(l.push(f),f.route.id===i){u=f;break}}else l=t,u=t[t.length-1];let d=Iu(o||".",Tu(l,a),Vi(e.pathname,r)||e.pathname,s==="path");if(o==null&&(d.search=e.search,d.hash=e.hash),(o==null||o===""||o===".")&&u){let f=Rh(d.search);if(u.route.index&&!f)d.search=d.search?d.search.replace(/^\?/,"?index&"):"?index";else if(!u.route.index&&f){let h=new URLSearchParams(d.search),g=h.getAll("index");h.delete("index"),g.filter(v=>v).forEach(v=>h.append("index",v));let m=h.toString();d.search=m?"?"+m:""}}return n&&r!=="/"&&(d.pathname=d.pathname==="/"?r:ho([r,d.pathname])),Ta(d)}function Um(e,t,r,n){if(!n||!RR(n))return{path:r};if(n.formMethod&&!FR(n.formMethod))return{path:r,error:Br(405,{method:n.formMethod})};let o=()=>({path:r,error:Br(400,{type:"invalid-body"})}),a=n.formMethod||"get",i=e?a.toUpperCase():a.toLowerCase(),s=_y(r);if(n.body!==void 0){if(n.formEncType==="text/plain"){if(!kn(i))return o();let h=typeof n.body=="string"?n.body:n.body instanceof FormData||n.body instanceof URLSearchParams?Array.from(n.body.entries()).reduce((g,m)=>{let[v,x]=m;return""+g+v+"="+x+` 83`},""):String(n.body);return{path:r,submission:{formMethod:i,formAction:s,formEncType:n.formEncType,formData:void 0,json:void 0,text:h}}}else if(n.formEncType==="application/json"){if(!kn(i))return o();try{let h=typeof n.body=="string"?JSON.parse(n.body):n.body;return{path:r,submission:{formMethod:i,formAction:s,formEncType:n.formEncType,formData:void 0,json:h,text:void 0}}}catch{return o()}}}at(typeof FormData=="function","FormData is not available in this environment");let l,u;if(n.formData)l=lf(n.formData),u=n.formData;else if(n.body instanceof FormData)l=lf(n.body),u=n.body;else if(n.body instanceof URLSearchParams)l=n.body,u=qm(l);else if(n.body==null)l=new URLSearchParams,u=new FormData;else try{l=new URLSearchParams(n.body),u=qm(l)}catch{return o()}let d={formMethod:i,formAction:s,formEncType:n&&n.formEncType||"application/x-www-form-urlencoded",formData:u,json:void 0,text:void 0};if(kn(d.formMethod))return{path:r,submission:d};let f=Jo(r);return t&&f.search&&Rh(f.search)&&l.append("index",""),f.search="?"+l,{path:Ta(f),submission:d}}function Vm(e,t,r){r===void 0&&(r=!1);let n=e.findIndex(o=>o.route.id===t);return n>=0?e.slice(0,r?n+1:n):e}function Ym(e,t,r,n,o,a,i,s,l,u,d,f,h,g,m,v){let x=v?Jr(v[1])?v[1].error:v[1].data:void 0,w=e.createURL(t.location),S=e.createURL(o),y=r;a&&t.errors?y=Vm(r,Object.keys(t.errors)[0],!0):v&&Jr(v[1])&&(y=Vm(r,v[0]));let _=v?v[1].statusCode:void 0,R=i&&_&&_>=400,O=y.filter((P,E)=>{let{route:T}=P;if(T.lazy)return!0;if(T.loader==null)return!1;if(a)return sf(T,t.loaderData,t.errors);if(TR(t.loaderData,t.matches[E],P)||l.some(D=>D===P.route.id))return!0;let I=t.matches[E],k=P;return Gm(P,Qt({currentUrl:w,currentParams:I.params,nextUrl:S,nextParams:k.params},n,{actionResult:x,actionStatus:_,defaultShouldRevalidate:R?!1:s||w.pathname+w.search===S.pathname+S.search||w.search!==S.search||wy(I,k)}))}),b=[];return f.forEach((P,E)=>{if(a||!r.some(L=>L.route.id===P.routeId)||d.has(E))return;let T=ia(g,P.path,m);if(!T){b.push({key:E,routeId:P.routeId,path:P.path,matches:null,match:null,controller:null});return}let I=t.fetchers.get(E),k=vs(T,P.path),D=!1;h.has(E)?D=!1:u.has(E)?(u.delete(E),D=!0):I&&I.state!=="idle"&&I.data===void 0?D=s:D=Gm(k,Qt({currentUrl:w,currentParams:t.matches[t.matches.length-1].params,nextUrl:S,nextParams:r[r.length-1].params},n,{actionResult:x,actionStatus:_,defaultShouldRevalidate:R?!1:s})),D&&b.push({key:E,routeId:P.routeId,path:P.path,matches:T,match:k,controller:new AbortController})}),[O,b]}function sf(e,t,r){if(e.lazy)return!0;if(!e.loader)return!1;let n=t!=null&&t[e.id]!==void 0,o=r!=null&&r[e.id]!==void 0;return!n&&o?!1:typeof e.loader=="function"&&e.loader.hydrate===!0?!0:!n&&!o}function TR(e,t,r){let n=!t||r.route.id!==t.route.id,o=e[r.route.id]===void 0;return n||o}function wy(e,t){let r=e.route.path;return e.pathname!==t.pathname||r!=null&&r.endsWith("*")&&e.params["*"]!==t.params["*"]}function Gm(e,t){if(e.route.shouldRevalidate){let r=e.route.shouldRevalidate(t);if(typeof r=="boolean")return r}return t.defaultShouldRevalidate}function Km(e,t,r,n,o){var a;let i;if(e){let u=n[e];at(u,"No route found to patch children into: routeId = "+e),u.children||(u.children=[]),i=u.children}else i=r;let s=t.filter(u=>!i.some(d=>ky(u,d))),l=_c(s,o,[e||"_","patch",String(((a=i)==null?void 0:a.length)||"0")],n);i.push(...l)}function ky(e,t){return"id"in e&&"id"in t&&e.id===t.id?!0:e.index===t.index&&e.path===t.path&&e.caseSensitive===t.caseSensitive?(!e.children||e.children.length===0)&&(!t.children||t.children.length===0)?!0:e.children.every((r,n)=>{var o;return(o=t.children)==null?void 0:o.some(a=>ky(r,a))}):!1}async function IR(e,t,r){if(!e.lazy)return;let n=await e.lazy();if(!e.lazy)return;let o=r[e.id];at(o,"No route found in manifest");let a={};for(let i in n){let l=o[i]!==void 0&&i!=="hasErrorBoundary";Ra(!l,'Route "'+o.id+'" has a static property "'+i+'" defined but its lazy function is also returning a value for this property. '+('The lazy route property "'+i+'" will be ignored.')),!l&&!ZP.has(i)&&(a[i]=n[i])}Object.assign(o,a),Object.assign(o,Qt({},t(o),{lazy:void 0}))}async function DR(e){let{matches:t}=e,r=t.filter(o=>o.shouldLoad);return(await Promise.all(r.map(o=>o.resolve()))).reduce((o,a,i)=>Object.assign(o,{[r[i].route.id]:a}),{})}async function OR(e,t,r,n,o,a,i,s,l,u){let d=a.map(g=>g.route.lazy?IR(g.route,l,s):void 0),f=a.map((g,m)=>{let v=d[m],x=o.some(S=>S.route.id===g.route.id);return Qt({},g,{shouldLoad:x,resolve:async S=>(S&&n.method==="GET"&&(g.route.lazy||g.route.loader)&&(x=!0),x?$R(t,n,g,v,S,u):Promise.resolve({type:Ot.data,result:void 0}))})}),h=await e({matches:f,request:n,params:a[0].params,fetcherKey:i,context:u});try{await Promise.all(d)}catch{}return h}async function $R(e,t,r,n,o,a){let i,s,l=u=>{let d,f=new Promise((m,v)=>d=v);s=()=>d(),t.signal.addEventListener("abort",s);let h=m=>typeof u!="function"?Promise.reject(new Error("You cannot call the handler for a route which defines a boolean "+('"'+e+'" [routeId: '+r.route.id+"]"))):u({request:t,params:r.params,context:a},...m!==void 0?[m]:[]),g=(async()=>{try{return{type:"data",result:await(o?o(v=>h(v)):h())}}catch(m){return{type:"error",result:m}}})();return Promise.race([g,f])};try{let u=r.route[e];if(n)if(u){let d,[f]=await Promise.all([l(u).catch(h=>{d=h}),n]);if(d!==void 0)throw d;i=f}else if(await n,u=r.route[e],u)i=await l(u);else if(e==="action"){let d=new URL(t.url),f=d.pathname+d.search;throw Br(405,{method:t.method,pathname:f,routeId:r.route.id})}else return{type:Ot.data,result:void 0};else if(u)i=await l(u);else{let d=new URL(t.url),f=d.pathname+d.search;throw Br(404,{pathname:f})}at(i.result!==void 0,"You defined "+(e==="action"?"an action":"a loader")+" for route "+('"'+r.route.id+"\" but didn't return anything from your `"+e+"` ")+"function. Please return a value or `null`.")}catch(u){return{type:Ot.error,result:u}}finally{s&&t.signal.removeEventListener("abort",s)}return i}async function jR(e){let{result:t,type:r}=e;if(Ey(t)){let f;try{let h=t.headers.get("Content-Type");h&&/\bapplication\/json\b/.test(h)?t.body==null?f=null:f=await t.json():f=await t.text()}catch(h){return{type:Ot.error,error:h}}return r===Ot.error?{type:Ot.error,error:new Ec(t.status,t.statusText,f),statusCode:t.status,headers:t.headers}:{type:Ot.data,data:f,statusCode:t.status,headers:t.headers}}if(r===Ot.error){if(tg(t)){var n,o;if(t.data instanceof Error){var a,i;return{type:Ot.error,error:t.data,statusCode:(a=t.init)==null?void 0:a.status,headers:(i=t.init)!=null&&i.headers?new Headers(t.init.headers):void 0}}return{type:Ot.error,error:new Ec(((n=t.init)==null?void 0:n.status)||500,void 0,t.data),statusCode:Hs(t)?t.status:void 0,headers:(o=t.init)!=null&&o.headers?new Headers(t.init.headers):void 0}}return{type:Ot.error,error:t,statusCode:Hs(t)?t.status:void 0}}if(NR(t)){var s,l;return{type:Ot.deferred,deferredData:t,statusCode:(s=t.init)==null?void 0:s.status,headers:((l=t.init)==null?void 0:l.headers)&&new Headers(t.init.headers)}}if(tg(t)){var u,d;return{type:Ot.data,data:t.data,statusCode:(u=t.init)==null?void 0:u.status,headers:(d=t.init)!=null&&d.headers?new Headers(t.init.headers):void 0}}return{type:Ot.data,data:t}}function AR(e,t,r,n,o,a){let i=e.headers.get("Location");if(at(i,"Redirects returned/thrown from loaders/actions must have a Location header"),!Eh.test(i)){let s=n.slice(0,n.findIndex(l=>l.route.id===r)+1);i=af(new URL(t.url),s,o,!0,i,a),e.headers.set("Location",i)}return e}function Jm(e,t,r,n){let o=["about:","blob:","chrome:","chrome-untrusted:","content:","data:","devtools:","file:","filesystem:","javascript:"];if(Eh.test(e)){let a=e,i=a.startsWith("//")?new URL(t.protocol+a):new URL(a);if(o.includes(i.protocol))throw new Error("Invalid redirect location");let s=Vi(i.pathname,r)!=null;if(i.origin===t.origin&&s)return i.pathname+i.search+i.hash}try{let a=n.createURL(e);if(o.includes(a.protocol))throw new Error("Invalid redirect location")}catch{}return e}function Fa(e,t,r,n){let o=e.createURL(_y(t)).toString(),a={signal:r};if(n&&kn(n.formMethod)){let{formMethod:i,formEncType:s}=n;a.method=i.toUpperCase(),s==="application/json"?(a.headers=new Headers({"Content-Type":s}),a.body=JSON.stringify(n.json)):s==="text/plain"?a.body=n.text:s==="application/x-www-form-urlencoded"&&n.formData?a.body=lf(n.formData):a.body=n.formData}return new Request(o,a)}function lf(e){let t=new URLSearchParams;for(let[r,n]of e.entries())t.append(r,typeof n=="string"?n:n.name);return t}function qm(e){let t=new FormData;for(let[r,n]of e.entries())t.append(r,n);return t}function LR(e,t,r,n,o){let a={},i=null,s,l=!1,u={},d=r&&Jr(r[1])?r[1].error:void 0;return e.forEach(f=>{if(!(f.route.id in t))return;let h=f.route.id,g=t[h];if(at(!ca(g),"Cannot handle redirect results in processLoaderData"),Jr(g)){let m=g.error;d!==void 0&&(m=d,d=void 0),i=i||{};{let v=sa(e,h);i[v.route.id]==null&&(i[v.route.id]=m)}a[h]=void 0,l||(l=!0,s=Hs(g.error)?g.error.status:500),g.headers&&(u[h]=g.headers)}else Ho(g)?(n.set(h,g.deferredData),a[h]=g.deferredData.data,g.statusCode!=null&&g.statusCode!==200&&!l&&(s=g.statusCode),g.headers&&(u[h]=g.headers)):(a[h]=g.data,g.statusCode&&g.statusCode!==200&&!l&&(s=g.statusCode),g.headers&&(u[h]=g.headers))}),d!==void 0&&r&&(i={[r[0]]:d},a[r[0]]=void 0),{loaderData:a,errors:i,statusCode:s||200,loaderHeaders:u}}function Xm(e,t,r,n,o,a,i){let{loaderData:s,errors:l}=LR(t,r,n,i);return o.forEach(u=>{let{key:d,match:f,controller:h}=u,g=a[d];if(at(g,"Did not find corresponding fetcher result"),!(h&&h.signal.aborted))if(Jr(g)){let m=sa(e.matches,f==null?void 0:f.route.id);l&&l[m.route.id]||(l=Qt({},l,{[m.route.id]:g.error})),e.fetchers.delete(d)}else if(ca(g))at(!1,"Unhandled fetcher revalidation redirect");else if(Ho(g))at(!1,"Unhandled fetcher deferred data");else{let m=Ro(g.data);e.fetchers.set(d,m)}}),{loaderData:s,errors:l}}function Qm(e,t,r,n){let o=Qt({},t);for(let a of r){let i=a.route.id;if(t.hasOwnProperty(i)?t[i]!==void 0&&(o[i]=t[i]):e[i]!==void 0&&a.route.loader&&(o[i]=e[i]),n&&n.hasOwnProperty(i))break}return o}function Zm(e){return e?Jr(e[1])?{actionData:{}}:{actionData:{[e[0]]:e[1].data}}:{}}function sa(e,t){return(t?e.slice(0,e.findIndex(n=>n.route.id===t)+1):[...e]).reverse().find(n=>n.route.hasErrorBoundary===!0)||e[0]}function eg(e){let t=e.length===1?e[0]:e.find(r=>r.index||!r.path||r.path==="/")||{id:"__shim-error-route__"};return{matches:[{params:{},pathname:"",pathnameBase:"",route:t}],route:t}}function Br(e,t){let{pathname:r,routeId:n,method:o,type:a,message:i}=t===void 0?{}:t,s="Unknown Server Error",l="Unknown @remix-run/router error";return e===400?(s="Bad Request",o&&r&&n?l="You made a "+o+' request to "'+r+'" but '+('did not provide a `loader` for route "'+n+'", ')+"so there is no way to handle the request.":a==="defer-action"?l="defer() is not supported in actions":a==="invalid-body"&&(l="Unable to encode submission body")):e===403?(s="Forbidden",l='Route "'+n+'" does not match URL "'+r+'"'):e===404?(s="Not Found",l='No route matches URL "'+r+'"'):e===405&&(s="Method Not Allowed",o&&r&&n?l="You made a "+o.toUpperCase()+' request to "'+r+'" but '+('did not provide an `action` for route "'+n+'", ')+"so there is no way to handle the request.":o&&(l='Invalid request method "'+o.toUpperCase()+'"')),new Ec(e||500,s,new Error(l),!0)}function Il(e){let t=Object.entries(e);for(let r=t.length-1;r>=0;r--){let[n,o]=t[r];if(ca(o))return{key:n,result:o}}}function _y(e){let t=typeof e=="string"?Jo(e):e;return Ta(Qt({},t,{hash:""}))}function MR(e,t){return e.pathname!==t.pathname||e.search!==t.search?!1:e.hash===""?t.hash!=="":e.hash===t.hash?!0:t.hash!==""}function zR(e){return Ey(e.result)&&wR.has(e.result.status)}function Ho(e){return e.type===Ot.deferred}function Jr(e){return e.type===Ot.error}function ca(e){return(e&&e.type)===Ot.redirect}function tg(e){return typeof e=="object"&&e!=null&&"type"in e&&"data"in e&&"init"in e&&e.type==="DataWithResponseInit"}function NR(e){let t=e;return t&&typeof t=="object"&&typeof t.data=="object"&&typeof t.subscribe=="function"&&typeof t.cancel=="function"&&typeof t.resolveData=="function"}function Ey(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.headers=="object"&&typeof e.body<"u"}function FR(e){return SR.has(e.toLowerCase())}function kn(e){return xR.has(e.toLowerCase())}async function HR(e,t,r,n,o){let a=Object.entries(t);for(let i=0;i<a.length;i++){let[s,l]=a[i],u=e.find(h=>(h==null?void 0:h.route.id)===s);if(!u)continue;let d=n.find(h=>h.route.id===u.route.id),f=d!=null&&!wy(d,u)&&(o&&o[u.route.id])!==void 0;Ho(l)&&f&&await Ph(l,r,!1).then(h=>{h&&(t[s]=h)})}}async function BR(e,t,r){for(let n=0;n<r.length;n++){let{key:o,routeId:a,controller:i}=r[n],s=t[o];e.find(u=>(u==null?void 0:u.route.id)===a)&&Ho(s)&&(at(i,"Expected an AbortController for revalidating fetcher deferred result"),await Ph(s,i.signal,!0).then(u=>{u&&(t[o]=u)}))}}async function Ph(e,t,r){if(r===void 0&&(r=!1),!await e.deferredData.resolveData(t)){if(r)try{return{type:Ot.data,data:e.deferredData.unwrappedData}}catch(o){return{type:Ot.error,error:o}}return{type:Ot.data,data:e.deferredData.data}}}function Rh(e){return new URLSearchParams(e).getAll("index").some(t=>t==="")}function vs(e,t){let r=typeof t=="string"?Jo(t).search:t.search;if(e[e.length-1].route.index&&Rh(r||""))return e[e.length-1];let n=xy(e);return n[n.length-1]}function rg(e){let{formMethod:t,formAction:r,formEncType:n,text:o,formData:a,json:i}=e;if(!(!t||!r||!n)){if(o!=null)return{formMethod:t,formAction:r,formEncType:n,formData:void 0,json:void 0,text:o};if(a!=null)return{formMethod:t,formAction:r,formEncType:n,formData:a,json:void 0,text:void 0};if(i!==void 0)return{formMethod:t,formAction:r,formEncType:n,formData:void 0,json:i,text:void 0}}}function fd(e,t){return t?{state:"loading",location:e,formMethod:t.formMethod,formAction:t.formAction,formEncType:t.formEncType,formData:t.formData,json:t.json,text:t.text}:{state:"loading",location:e,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0}}function WR(e,t){return{state:"submitting",location:e,formMethod:t.formMethod,formAction:t.formAction,formEncType:t.formEncType,formData:t.formData,json:t.json,text:t.text}}function cs(e,t){return e?{state:"loading",formMethod:e.formMethod,formAction:e.formAction,formEncType:e.formEncType,formData:e.formData,json:e.json,text:e.text,data:t}:{state:"loading",formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0,data:t}}function UR(e,t){return{state:"submitting",formMethod:e.formMethod,formAction:e.formAction,formEncType:e.formEncType,formData:e.formData,json:e.json,text:e.text,data:t?t.data:void 0}}function Ro(e){return{state:"idle",formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0,data:e}}function VR(e,t){try{let r=e.sessionStorage.getItem(Sy);if(r){let n=JSON.parse(r);for(let[o,a]of Object.entries(n||{}))a&&Array.isArray(a)&&t.set(o,new Set(a||[]))}}catch{}}function YR(e,t){if(t.size>0){let r={};for(let[n,o]of t)r[n]=[...o];try{e.sessionStorage.setItem(Sy,JSON.stringify(r))}catch(n){Ra(!1,"Failed to save applied view transitions in sessionStorage ("+n+").")}}}/** 84 * React Router v6.30.3 85 * 86 * Copyright (c) Remix Software Inc. 87 * 88 * This source code is licensed under the MIT license found in the 89 * LICENSE.md file in the root directory of this source tree. 90 * 91 * @license MIT 92 */function Pc(){return Pc=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Pc.apply(this,arguments)}const Du=p.createContext(null),Py=p.createContext(null),qo=p.createContext(null),Th=p.createContext(null),qn=p.createContext({outlet:null,matches:[],isDataRoute:!1}),Ry=p.createContext(null);function GR(e,t){let{relative:r}=t===void 0?{}:t;Yi()||at(!1);let{basename:n,navigator:o}=p.useContext(qo),{hash:a,pathname:i,search:s}=Iy(e,{relative:r}),l=i;return n!=="/"&&(l=i==="/"?n:ho([n,i])),o.createHref({pathname:l,search:s,hash:a})}function Yi(){return p.useContext(Th)!=null}function Gi(){return Yi()||at(!1),p.useContext(Th).location}function Ty(e){p.useContext(qo).static||p.useLayoutEffect(e)}function Xo(){let{isDataRoute:e}=p.useContext(qn);return e?sT():KR()}function KR(){Yi()||at(!1);let e=p.useContext(Du),{basename:t,future:r,navigator:n}=p.useContext(qo),{matches:o}=p.useContext(qn),{pathname:a}=Gi(),i=JSON.stringify(Tu(o,r.v7_relativeSplatPath)),s=p.useRef(!1);return Ty(()=>{s.current=!0}),p.useCallback(function(u,d){if(d===void 0&&(d={}),!s.current)return;if(typeof u=="number"){n.go(u);return}let f=Iu(u,JSON.parse(i),a,d.relative==="path");e==null&&t!=="/"&&(f.pathname=f.pathname==="/"?t:ho([t,f.pathname])),(d.replace?n.replace:n.push)(f,d.state,d)},[t,n,i,a,e])}const JR=p.createContext(null);function qR(e){let t=p.useContext(qn).outlet;return t&&p.createElement(JR.Provider,{value:e},t)}function g7(){let{matches:e}=p.useContext(qn),t=e[e.length-1];return t?t.params:{}}function Iy(e,t){let{relative:r}=t===void 0?{}:t,{future:n}=p.useContext(qo),{matches:o}=p.useContext(qn),{pathname:a}=Gi(),i=JSON.stringify(Tu(o,n.v7_relativeSplatPath));return p.useMemo(()=>Iu(e,JSON.parse(i),a,r==="path"),[e,i,a,r])}function XR(e,t,r,n){Yi()||at(!1);let{navigator:o}=p.useContext(qo),{matches:a}=p.useContext(qn),i=a[a.length-1],s=i?i.params:{};i&&i.pathname;let l=i?i.pathnameBase:"/";i&&i.route;let u=Gi(),d;d=u;let f=d.pathname||"/",h=f;if(l!=="/"){let v=l.replace(/^\//,"").split("/");h="/"+f.replace(/^\//,"").split("/").slice(v.length).join("/")}let g=ia(e,{pathname:h});return rT(g&&g.map(v=>Object.assign({},v,{params:Object.assign({},s,v.params),pathname:ho([l,o.encodeLocation?o.encodeLocation(v.pathname).pathname:v.pathname]),pathnameBase:v.pathnameBase==="/"?l:ho([l,o.encodeLocation?o.encodeLocation(v.pathnameBase).pathname:v.pathnameBase])})),a,r,n)}function QR(){let e=iT(),t=Hs(e)?e.status+" "+e.statusText:e instanceof Error?e.message:JSON.stringify(e),r=e instanceof Error?e.stack:null,o={padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"};return p.createElement(p.Fragment,null,p.createElement("h2",null,"Unexpected Application
92Error!"),p.createElement("h3",{style:{fontStyle:"italic"}},t),r?p.createElement("pre",{style:o},r):null,null)}const ZR=p.createElement(QR,null);class eT extends p.Component{constructor(t){super(t),this.state={location:t.location,revalidation:t.revalidation,error:t.error}}static getDerivedStateFromError(t){return{error:t}}static getDerivedStateFromProps(t,r){return r.location!==t.location||r.revalidation!=="idle"&&t.revalidation==="idle"?{error:t.error,location:t.location,revalidation:t.revalidation}:{error:t.error!==void 0?t.error:r.error,location:r.location,revalidation:t.revalidation||r.revalidation}}componentDidCatch(t,r){}render(){return this.state.error!==void 0?p.createElement(qn.Provider,{value:this.props.routeContext},p.createElement(Ry.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function tT(e){let{routeContext:t,match:r,children:n}=e,o=p.useContext(Du);return o&&o.static&&o.staticContext&&(r.route.errorElement||r.route.ErrorBoundary)&&(o.staticContext._deepestRenderedBoundaryId=r.route.id),p.createElement(qn.Provider,{value:t},n)}function rT(e,t,r,n){var o;if(t===void 0&&(t=[]),r===void 0&&(r=null),n===void 0&&(n=null),e==null){var a;if(!r)return null;if(r.errors)e=r.matches;else if((a=n)!=null&&a.v7_partialHydration&&t.length===0&&!r.initialized&&r.matches.length>0)e=r.matches;else return null}let i=e,s=(o=r)==null?void 0:o.errors;if(s!=null){let d=i.findIndex(f=>f.route.id&&(s==null?void 0:s[f.route.id])!==void 0);d>=0||at(!1),i=i.slice(0,Math.min(i.length,d+1))}let l=!1,u=-1;if(r&&n&&n.v7_partialHydration)for(let d=0;d<i.length;d++){let f=i[d];if((f.route.HydrateFallback||f.route.hydrateFallbackElement)&&(u=d),f.route.id){let{loaderData:h,errors:g}=r,m=f.route.loader&&h[f.route.id]===void 0&&(!g||g[f.route.id]===void 0);if(f.route.lazy||m){l=!0,u>=0?i=i.slice(0,u+1):i=[i[0]];break}}}return i.reduceRight((d,f,h)=>{let g,m=!1,v=null,x=null;r&&(g=s&&f.route.id?s[f.route.id]:void 0,v=f.route.errorElement||ZR,l&&(u<0&&h===0?(lT("route-fallback"),m=!0,x=null):u===h&&(m=!0,x=f.route.hydrateFallbackElement||null)));let w=t.concat(i.slice(0,h+1)),S=()=>{let y;return g?y=v:m?y=x:f.route.Component?y=p.createElement(f.route.Component,null):f.route.element?y=f.route.element:y=d,p.createElement(tT,{match:f,routeContext:{outlet:d,matches:w,isDataRoute:r!=null},children:y})};return r&&(f.route.ErrorBoundary||f.route.errorElement||h===0)?p.createElement(eT,{location:r.location,revalidation:r.revalidation,component:v,error:g,children:S(),routeC
vendor: 8,455 bytes, lines 92-101
92ontext:{outlet:null,matches:w,isDataRoute:!0}}):S()},null)}var Dy=function(e){return e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e}(Dy||{}),Oy=function(e){return e.UseBlocker="useBlocker",e.UseLoaderData="useLoaderData",e.UseActionData="useActionData",e.UseRouteError="useRouteError",e.UseNavigation="useNavigation",e.UseRouteLoaderData="useRouteLoaderData",e.UseMatches="useMatches",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e.UseRouteId="useRouteId",e}(Oy||{});function nT(e){let t=p.useContext(Du);return t||at(!1),t}function oT(e){let t=p.useContext(Py);return t||at(!1),t}function aT(e){let t=p.useContext(qn);return t||at(!1),t}function $y(e){let t=aT(),r=t.matches[t.matches.length-1];return r.route.id||at(!1),r.route.id}function iT(){var e;let t=p.useContext(Ry),r=oT(),n=$y();return t!==void 0?t:(e=r.errors)==null?void 0:e[n]}function sT(){let{router:e}=nT(Dy.UseNavigateStable),t=$y(Oy.UseNavigateStable),r=p.useRef(!1);return Ty(()=>{r.current=!0}),p.useCallback(function(o,a){a===void 0&&(a={}),r.current&&(typeof o=="number"?e.navigate(o):e.navigate(o,Pc({fromRouteId:t},a)))},[e,t])}const ng={};function lT(e,t,r){ng[e]||(ng[e]=!0)}function cT(e,t){e==null||e.v7_startTransition,(e==null?void 0:e.v7_relativeSplatPath)===void 0&&(!t||t.v7_relativeSplatPath),t&&(t.v7_fetcherPersist,t.v7_normalizeFormMethod,t.v7_partialHydration,t.v7_skipActionErrorRevalidation)}function v7(e){let{to:t,replace:r,state:n,relative:o}=e;Yi()||at(!1);let{future:a,static:i}=p.useContext(qo),{matches:s}=p.useContext(qn),{pathname:l}=Gi(),u=Xo(),d=Iu(t,Tu(s,a.v7_relativeSplatPath),l,o==="path"),f=JSON.stringify(d);return p.useEffect(()=>u(JSON.parse(f),{replace:r,state:n,relative:o}),[u,f,o,r,n]),null}function y7(e){return qR(e.context)}function uT(e){let{basename:t="/",children:r=null,location:n,navigationType:o=ir.Pop,navigator:a,static:i=!1,future:s}=e;Yi()&&at(!1);let l=t.replace(/^\/*/,"/"),u=p.useMemo(()=>({basename:l,navigator:a,static:i,future:Pc({v7_relativeSplatPath:!1},s)}),[l,s,a,i]);typeof n=="string"&&(n=Jo(n));let{pathname:d="/",search:f="",hash:h="",state:g=null,key:m="default"}=n,v=p.useMemo(()=>{let x=Vi(d,l);return x==null?null:{location:{pathname:x,search:f,hash:h,state:g,key:m},navigationType:o}},[l,d,f,h,g,m,o]);return v==null?null:p.createElement(qo.Provider,{value:u},p.createElement(Th.Provider,{children:r,value:v}))}new Promise(()=>{});function dT(e){let t={hasErrorBoundary:e.ErrorBoundary!=null||e.errorElement!=null};return e.Component&&Object.assign(t,{element:p.createElement(e.Component),Component:void 0}),e.HydrateFallback&&Object.assign(t,{hydrateFallbackElement:p.createElement(e.HydrateFallback),HydrateFallback:void 0}),e.ErrorBoundary&&Object.assign(t,{errorElement:p.createElement(e.ErrorBoundary),ErrorBoundary:void 0}),t}/** 93 * React Router DOM v6.30.3 94 * 95 * Copyright (c) Remix Software Inc. 96 * 97 * This source code is licensed under the MIT license found in the 98 * LICENSE.md file in the root directory of this source tree. 99 * 100 * @license MIT 101 */function Bs(){return Bs=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Bs.apply(this,arguments)}function fT(e,t){if(e==null)return{};var r={},n=Object.keys(e),o,a;for(a=0;a<n.length;a++)o=n[a],!(t.indexOf(o)>=0)&&(r[o]=e[o]);return r}function hT(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function pT(e,t){return e.button===0&&(!t||t==="_self")&&!hT(e)}function cf(e){return e===void 0&&(e=""),new URLSearchParams(typeof e=="string"||Array.isArray(e)||e instanceof URLSearchParams?e:Object.keys(e).reduce((t,r)=>{let n=e[r];return t.concat(Array.isArray(n)?n.map(o=>[r,o]):[[r,n]])},[]))}function mT(e,t){let r=cf(e);return t&&t.forEach((n,o)=>{r.has(o)||t.getAll(o).forEach(a=>{r.append(o,a)})}),r}const gT=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset","viewTransition"],vT="6";try{window.__reactRouterVersion=vT}catch{}function b7(e,t){return PR({basename:void 0,future:Bs({},void 0,{v7_prependBasename:!0}),history:qP({window:void 0}),hydrationData:yT(),routes:e,mapRouteProperties:dT,dataStrategy:void 0,patchRoutesOnNavigation:void 0,window:void 0}).initialize()}function yT(){var e;let t=(e=window)==null?void 0:e.__staticRouterHydrationData;return t&&t.errors&&(t=Bs({},t,{errors:bT(t.errors)})),t}function bT(e){if(!e)return null;let t=Object.entries(e),r={};for(let[n,o]of t)if(o&&o.__type==="RouteErrorResponse")r[n]=new Ec(o.status,o.statusText,o.data,o.internal===!0);else if(o&&o.__type==="Error"){if(o.__subType){let a=window[o.__subType];if(typeof a=="function")try{let i=new a(o.message);i.stack="",r[n]=i}catch{}}if(r[n]==null){let a=new Error(o.message);a.stack="",r[n]=a}}else r[n]=o;return r}const xT=p.createContext({isTransitioning:!1}),CT=p.createContext(new Map),ST="startTransition",og=fc[ST],wT="flushSync",ag=Yb[wT];function kT(e){og?og(e):e()}function us(e){ag?ag(e):e()}class _T{constructor(){this.status="pending",this.promise=new Promise((t,r)=>{this.resolve=n=>{this.status==="pending"&&(this.status="resolved",t(n))},this.reject=n=>{this.status==="pending"&&(this.status="rejected",r(n))}})}}function x7(e){let{fallbackElement:t,router:r,future:n}=e,[o,a]=p.useState(r.state),[i,s]=p.useState(),[l,u]=p.useState({isTransitioning:!1}),[d,f]=p.useState(),[h,g]=p.useState(),[m,v]=p.useState(),x=p.useRef(new Map),{v7_startTransition:w}=n||{},S=p.useCallback(P=>{w?kT(P):P()},[w]),y=p.useCallback((P,E)=>{let{deletedFetchers:T,flushSync:I,viewTransitionOpts:k}=E;P.fetchers.forEach((L,$)=>{L.data!==void 0&&x.current.set($,L.data)}),T.forEach(L=>x.current.delete(L));let D=r.window==null||r.window.document==null||typeof r.window.document.startViewTransition!="function";if(!k||D){I?us(()=>a(P)):S(()=>a(P));return}if(I){us(()=>{h&&(d&&d.resolve(),h.skipTransition()),u({isTransitioning:!0,flushSync:!0,currentLocation:k.currentLocation,nextLocation:k.nextLocation})});let L=r.window.document.startViewTransition(()=>{us(()=>a(P))});L.finished.finally(()=>{us(()=>{f(void 0),g(void 0),s(void 0),u({isTransitioning:!1})})}),us(()=>g(L));return}h?(d&&d.resolve(),h.skipTransition(),v({state:P,currentLocation:k.currentLocation,nextLocation:k.nextLocation})):(s(P),u({isTransitioning:!0,flushSync:!1,currentLocation:k.currentLocation,nextLocation:k.nextLocation}))},[r.window,h,d,x,S]);p.useLayoutEffect(()=>r.subscribe(y),[r,y]),p.useEffect(()=>{l.isTransitioning&&!l.flushSync&&f(new _T)},[l]),p.useEffect(()=>{if(d&&i&&r.window){let P=i,E=d.promise,T=r.window.document.startViewTransition(async()=>{S(()=>a(P)),await E});T.finished.finally(()=>{f(void 0),g(void 0),s(void 0),u({isTransitioning:!1})}),g(T)}},[S,i,d,r.window]),p.useEffect(()=>{d&&i&&o.location.key===i.location.key&&d.resolve()},[d,h,o.location,i]),p.useEffect(()=>{!l.isTransitioning&&m&&(s(m.state),u({isTransitioning:!0,flushSync:!1,currentLocation:m.currentLocation,nextLocation:m.nextLocation}),v(void 0))},[l.isTransitioning,m]),p.useEffect(()=>{},[]);let _=p.useMemo(()=>({createHref:r.createHref,encodeLocation:r.encodeLocation,go:P=>r.navigate(P),push:(P,E,T)=>r.navigate(P,{state:E,preventScrollReset:T==null?void 0:T.preventScrollReset}),replace:(P,E,T)=>r.navigate(P,{replace:!0,state:E,preventScrollReset:T==null?void 0:T.preventScrollReset})}),[r]),R=r.basename||"/",O=p.useMemo(()=>({router:r,navigator:_,static:!1,basename:R}),[r,_,R]),b=p.useMemo(()=>({v7_relativeSplatPath:r.future.v7_relativeSplatPath}),[r.future.v7_relativeSplatPath]);return p.useEffect(()=>cT(n,r.future),[n,r.future]),p.createElement(p.Fragment,null,p.createElement(Du.Provider,{value:O},p.createElement(Py.Provider,{value:o},p.createElement(CT.Provider,{value:x.current},p.createElement(xT.Provider,{value:l},p.createElement(uT,{basename:R,location:o.location,navigationType:o.historyAction,navigator:_,future:b},o.initialized||r.future.v7_partialHydration?p.createElement(ET,{routes:r.routes,future:r.future,state:o}):t))))),null)}const ET=p.memo(PT);function PT(e){let{routes:t,future:r,state:n}=e;return XR(t,void 0,n,r)}const RT=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",TT=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,C7=p.forwardRef(function(t,r){let{onClick:n,relative:o,reloadDocument:a,replace:i,state:s,target:l,to:u,preventScrollReset:d,viewTransition:f}
101=t,h=fT(t,gT),{basename:g}=p.useContext(qo),m,v=!1;if(typeof u=="string"&&TT.test(u)&&(m=u,RT))try{let y=new URL(window.location.href),_=u.startsWith("//")?new URL(y.protocol+u):new URL(u),R=Vi(_.pathname,g);_.origin===y.origin&&R!=null?u=R+_.search+_.hash:v=!0}catch{}let x=GR(u,{relative:o}),w=IT(u,{replace:i,state:s,target:l,preventScrollReset:d,relative:o,viewTransition:f});function S(y){n&&n(y),y.defaultPrevented||w(y)}return p.createElement("a",Bs({},h,{href:m||x,onClick:v||a?n:S,ref:r,target:l}))});var ig;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher",e.useViewTransitionState="useViewTransitionState"})(ig||(ig={}));var sg;(function(e){e.UseFetcher="useFetcher",e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})(sg||(sg={}));function IT(e,t){let{target:r,replace:n,state:o,preventScrollReset:a,relative:i,viewTransition:s}=t===void 0?{}:t,l=Xo(),u=Gi(),d=Iy(e,{relative:i});return p.useCallback(f=>{if(pT(f,r)){f.preventDefault();let h=n!==void 0?n:Ta(u)===Ta(d);l(e,{replace:h,state:o,preventScrollReset:a,relative:i,viewTransition:s})}},[u,l,d,n,o,r,e,a,i,s])}function S7(e){let t=p.useRef(cf(e)),r=p.useRef(!1),n=Gi(),o=p.useMemo(()=>mT(n.search,r.current?null:t.current),[n.search]),a=Xo(),i=p.useCallback((s,l)=>{const u=cf(typeof s=="function"?s(o):s);r.current=!0,a("?"+u,l)},[a,o]);return[o,i]}const jy=p.createContext(),DT=()=>p.useContext(jy),w7=({children:e})=>{const[t,r]=p.useState({isImpersonating:!1,impersonatedUser:null,originalUser:null}),n=p.useCallback((u,d)=>{const f={isImpersonating:!0,impersonatedUser:u,originalUser:d};r(f),localStorage.setItem("impersonation",JSON.stringify(f)),localStorage.setItem("impersonatedUserId",u.userId)},[]),o=p.useCallback(()=>{r({isImpersonating:!1,impersonatedUser:null,originalUser:null}),localStorage.removeItem("impersonation"),localStorage.removeItem("impersonatedUserId")},[]),a=p.useCallback(u=>t.isImpersonating&&t.impersonatedUser?t.impersonatedUser:u,[t]),i=p.useCallback(()=>t.isImpersonating&&t.impersonatedUser?{"X-Impersonate-User-ID":t.impersonatedUser.id.toString()}:{},[t]),s=p.useCallback((u,d=[])=>{if(!(u!=null&&u.id))return!1;if(d.length>0){const f=d.find(h=>h.userId===u.id);return(f==null?void 0:f.role)==="admin"||(f==null?void 0:f.role)==="manager"}return(u==null?void 0:u.role)==="admin"||(u==null?void 0:u.role)==="manager"},[]);p.useEffect(()=>{const u=localStorage.getItem("impersonation");if(u)try{const d=JSON.parse(u);d.isImpersonating&&d.impersonatedUser&&d.originalUser&&r(d)}catch{localStorage.removeItem("impersonation")}},[]);const l={...t,startImpersonation:n,stopImpersonation:o,getEffectiveUser:a,getImpersonationHeaders:i,canImpersonate:s,isImpersonating:t.isImpersonating,impersonatedUser:t.impersonatedUser,originalUser:t.originalUser,setImpersonatedUser:u=>{u?r(d=>({isImpersonating:!0,impersonatedUser:u,originalUser:d.originalUser})):o()}};return c.jsx(jy.Provider,{value:l,children:e})};//! moment.js 102//! version : 2.30.1 103//! authors : Tim Wood, Iskren Chernev, Moment.js contributors 104//! license : MIT 105//! momentjs.com 106var Ay;function q(){return Ay.apply(null,arguments)}function OT(e){Ay=e}function Rn(e){return e instanceof Array||Object.prototype.toString.call(e)==="[object Array]"}function Sa(e){return e!=null&&Object.prototype.toString.call(e)==="[object Object]"}function Ct(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function Ih(e){if(Object.getOwnPropertyNames)return Object.getOwnPropertyNames(e).length===0;var t;for(t in e)if(Ct(e,t))return!1;return!0}function Nr(e){return e===void 0}function Co(e){return typeof e=="number"||Object.prototype.toString.call(e)==="[object Number]"}function gl(e){return e instanceof Date||Object.prototype.toString.call(e)==="[object Date]"}function Ly(e,t){var r=[],n,o=e.length;for(n=0;n<o;++n)r.push(t(e[n],n));return r}function Bo(e,t){for(var r in t)Ct(t,r)&&(e[r]=t[r]);return Ct(t,"toString")&&(e.toString=t.toString),Ct(t,"valueOf")&&(e.valueOf=t.valueOf),e}function Xn(e,t,r,n){return a1(e,t,r,n,!0).utc()}function $T(){return{empty:!1,unusedTokens:[],unusedInput:[],overflow:-2,charsLeftOver:0,nullInput:!1,invalidEra:null,invali
vendor: 21,210 bytes, lines 106-109
106dMonth:null,invalidFormat:!1,userInvalidated:!1,iso:!1,parsedDateParts:[],era:null,meridiem:null,rfc2822:!1,weekdayMismatch:!1}}function Ze(e){return e._pf==null&&(e._pf=$T()),e._pf}var uf;Array.prototype.some?uf=Array.prototype.some:uf=function(e){var t=Object(this),r=t.length>>>0,n;for(n=0;n<r;n++)if(n in t&&e.call(this,t[n],n,t))return!0;return!1};function Dh(e){var t=null,r=!1,n=e._d&&!isNaN(e._d.getTime());if(n&&(t=Ze(e),r=uf.call(t.parsedDateParts,function(o){return o!=null}),n=t.overflow<0&&!t.empty&&!t.invalidEra&&!t.invalidMonth&&!t.invalidWeekday&&!t.weekdayMismatch&&!t.nullInput&&!t.invalidFormat&&!t.userInvalidated&&(!t.meridiem||t.meridiem&&r),e._strict&&(n=n&&t.charsLeftOver===0&&t.unusedTokens.length===0&&t.bigHour===void 0)),Object.isFrozen==null||!Object.isFrozen(e))e._isValid=n;else return n;return e._isValid}function Ou(e){var t=Xn(NaN);return e!=null?Bo(Ze(t),e):Ze(t).userInvalidated=!0,t}var lg=q.momentProperties=[],hd=!1;function Oh(e,t){var r,n,o,a=lg.length;if(Nr(t._isAMomentObject)||(e._isAMomentObject=t._isAMomentObject),Nr(t._i)||(e._i=t._i),Nr(t._f)||(e._f=t._f),Nr(t._l)||(e._l=t._l),Nr(t._strict)||(e._strict=t._strict),Nr(t._tzm)||(e._tzm=t._tzm),Nr(t._isUTC)||(e._isUTC=t._isUTC),Nr(t._offset)||(e._offset=t._offset),Nr(t._pf)||(e._pf=Ze(t)),Nr(t._locale)||(e._locale=t._locale),a>0)for(r=0;r<a;r++)n=lg[r],o=t[n],Nr(o)||(e[n]=o);return e}function vl(e){Oh(this,e),this._d=new Date(e._d!=null?e._d.getTime():NaN),this.isValid()||(this._d=new Date(NaN)),hd===!1&&(hd=!0,q.updateOffset(this),hd=!1)}function Tn(e){return e instanceof vl||e!=null&&e._isAMomentObject!=null}function My(e){q.suppressDeprecationWarnings===!1&&typeof console<"u"}function vn(e,t){var r=!0;return Bo(function(){if(q.deprecationHandler!=null&&q.deprecationHandler(null,e),r){var n=[],o,a,i,s=arguments.length;for(a=0;a<s;a++){if(o="",typeof arguments[a]=="object"){o+=` 107[`+a+"] ";for(i in arguments[0])Ct(arguments[0],i)&&(o+=i+": "+arguments[0][i]+", ");o=o.slice(0,-2)}else o=arguments[a];n.push(o)}My(e+` 108Arguments: `+Array.prototype.slice.call(n).join("")+` 109`+new Error().stack),r=!1}return t.apply(this,arguments)},t)}var cg={};function zy(e,t){q.deprecationHandler!=null&&q.deprecationHandler(e,t),cg[e]||(My(t),cg[e]=!0)}q.suppressDeprecationWarnings=!1;q.deprecationHandler=null;function Qn(e){return typeof Function<"u"&&e instanceof Function||Object.prototype.toString.call(e)==="[object Function]"}function jT(e){var t,r;for(r in e)Ct(e,r)&&(t=e[r],Qn(t)?this[r]=t:this["_"+r]=t);this._config=e,this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)}function df(e,t){var r=Bo({},e),n;for(n in t)Ct(t,n)&&(Sa(e[n])&&Sa(t[n])?(r[n]={},Bo(r[n],e[n]),Bo(r[n],t[n])):t[n]!=null?r[n]=t[n]:delete r[n]);for(n in e)Ct(e,n)&&!Ct(t,n)&&Sa(e[n])&&(r[n]=Bo({},r[n]));return r}function $h(e){e!=null&&this.set(e)}var ff;Object.keys?ff=Object.keys:ff=function(e){var t,r=[];for(t in e)Ct(e,t)&&r.push(t);return r};var AT={sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"};function LT(e,t,r){var n=this._calendar[e]||this._calendar.sameElse;return Qn(n)?n.call(t,r):n}function Yn(e,t,r){var n=""+Math.abs(e),o=t-n.length,a=e>=0;return(a?r?"+":"":"-")+Math.pow(10,Math.max(0,o)).toString().substr(1)+n}var jh=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|N{1,5}|YYYYYY|YYYYY|YYYY|YY|y{2,4}|yo?|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,Dl=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,pd={},ti={};function Fe(e,t,r,n){var o=n;typeof n=="string"&&(o=function(){return this[n]()}),e&&(ti[e]=o),t&&(ti[t[0]]=function(){return Yn(o.apply(this,arguments),t[1],t[2])}),r&&(ti[r]=function(){return this.localeData().ordinal(o.apply(this,arguments),e)})}function MT(e){return e.match(/\[[\s\S]/)?e.replace(/^\[|\]$/g,""):e.replace(/\\/g,"")}function zT(e){var t=e.match(jh),r,n;for(r=0,n=t.length;r<n;r++)ti[t[r]]?t[r]=ti[t[r]]:t[r]=MT(t[r]);return function(o){var a="",i;for(i=0;i<n;i++)a+=Qn(t[i])?t[i].call(o,e):t[i];return a}}function nc(e,t){return e.isValid()?(t=Ny(t,e.localeData()),pd[t]=pd[t]||zT(t),pd[t](e)):e.localeData().invalidDate()}function Ny(e,t){var r=5;function n(o){return t.longDateFormat(o)||o}for(Dl.lastIndex=0;r>=0&&Dl.test(e);)e=e.replace(Dl,n),Dl.lastIndex=0,r-=1;return e}var NT={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"};function FT(e){var t=this._longDateFormat[e],r=this._longDateFormat[e.toUpperCase()];return t||!r?t:(this._longDateFormat[e]=r.match(jh).map(function(n){return n==="MMMM"||n==="MM"||n==="DD"||n==="dddd"?n.slice(1):n}).join(""),this._longDateFormat[e])}var HT="Invalid date";function BT(){return this._invalidDate}var WT="%d",UT=/\d{1,2}/;function VT(e){return this._ordinal.replace("%d",e)}var YT={future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",w:"a week",ww:"%d weeks",M:"a month",MM:"%d months",y:"a year",yy:"%d years"};function GT(e,t,r,n){var o=this._relativeTime[r];return Qn(o)?o(e,t,r,n):o.replace(/%d/i,e)}function KT(e,t){var r=this._relativeTime[e>0?"future":"past"];return Qn(r)?r(t):r.replace(/%s/i,t)}var ug={D:"date",dates:"date",date:"date",d:"day",days:"day",day:"day",e:"weekday",weekdays:"weekday",weekday:"weekday",E:"isoWeekday",isoweekdays:"isoWeekday",isoweekday:"isoWeekday",DDD:"dayOfYear",dayofyears:"dayOfYear",dayofyear:"dayOfYear",h:"hour",hours:"hour",hour:"hour",ms:"millisecond",milliseconds:"millisecond",millisecond:"millisecond",m:"minute",minutes:"minute",minute:"minute",M:"month",months:"month",month:"month",Q:"quarter",quarters:"quarter",quarter:"quarter",s:"second",seconds:"second",second:"second",gg:"weekYear",weekyears:"weekYear",weekyear:"weekYear",GG:"isoWeekYear",isoweekyears:"isoWeekYear",isoweekyear:"isoWeekYear",w:"week",weeks:"week",week:"week",W:"isoWeek",isoweeks:"isoWeek",isoweek:"isoWeek",y:"year",years:"year",year:"year"};function yn(e){return typeof e=="string"?ug[e]||ug[e.toLowerCase()]:void 0}function Ah(e){var t={},r,n;for(n in e)Ct(e,n)&&(r=yn(n),r&&(t[r]=e[n]));return t}var JT={date:9,day:11,weekday:11,isoWeekday:11,dayOfYear:4,hour:13,millisecond:16,minute:14,month:8,quarter:7,second:15,weekYear:1,isoWeekYear:1,week:5,isoWeek:5,year:1};function qT(e){var t=[],r;for(r in e)Ct(e,r)&&t.push({unit:r,priority:JT[r]});return t.sort(function(n,o){return n.priority-o.priority}),t}var Fy=/\d/,en=/\d\d/,Hy=/\d{3}/,Lh=/\d{4}/,$u=/[+-]?\d{6}/,Jt=/\d\d?/,By=/\d\d\d\d?/,Wy=/\d\d\d\d\d\d?/,ju=/\d{1,3}/,Mh=/\d{1,4}/,Au=/[+-]?\d{1,6}/,Ki=/\d+/,Lu=/[+-]?\d+/,XT=/Z|[+-]\d\d:?\d\d/gi,Mu=/Z|[+-]\d\d(?::?\d\d)?/gi,QT=/[+-]?\d+(\.\d{1,3})?/,yl=/[0-9]{0,256}['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFF07\uFF10-\uFFEF]{1,256}|[\u0600-\u06FF\/]{1,256}(\s*?[\u0600-\u06FF]{1,256}){1,2}/i,Ji=/^[1-9]\d?/,zh=/^([1-9]\d|\d)/,Rc;Rc={};function Pe(e,t,r){Rc[e]=Qn(t)?t:function(n,o){return n&&r?r:t}}function ZT(e,t){return Ct(Rc,e)?Rc[e](t._strict,t._locale):new RegExp(eI(e))}function eI(e){return po(e.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(t,r,n,o,a){return r||n||o||a}))}function po(e){return e.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}function an(e){return e<0?Math.ceil(e)||0:Math.floor(e)}function lt(e){var t=+e,r=0;return t!==0&&isFinite(t)&&(r=an(t)),r}var hf={};function zt(e,t){var r,n=t,o;for(typeof e=="string"&&(e=[e]),Co(t)&&(n=function(a,i){i[t]=lt(a)}),o=e.length,r=0;r<o;r++)hf[e[r]]=n}function bl(e,t){zt(e,function(r,n,o,a){o._w=o._w||{},t(r,o._w,o,a)})}function tI(e,t,r){t!=null&&Ct(hf,e)&&hf[e](t,r._a,r,e)}function zu(e){return e%4===0&&e%100!==0||e%400===0}var Ir=0,co=1,Fn=2,hr=3,En=4,uo=5,ua=6,rI=7,nI=8;Fe("Y",0,0,function(){var e=this.year();return e<=9999?Yn(e,4):"+"+e});Fe(0,["YY",2],0,function(){return this.year()%100});Fe(0,["YYYY",4],0,"year");Fe(0,["YYYYY",5],0,"year");Fe(0,["YYYYYY",6,!0],0,"year");Pe("Y",Lu);Pe("YY",Jt,en);Pe("YYYY",Mh,Lh);Pe("YYYYY",Au,$u);Pe("YYYYYY",Au,$u);zt(["YYYYY","YYYYYY"],Ir);zt("YYYY",function(e,t){t[Ir]=e.length===2?q.parseTwoDigitYear(e):lt(e)});zt("YY",function(e,t){t[Ir]=q.parseTwoDigitYear(e)});zt("Y",function(e,t){t[Ir]=parseInt(e,10)});function _s(e){return zu(e)?366:365}q.parseTwoDigitYear=function(e){return lt(e)+(lt(e)>68?1900:2e3)};var Uy=qi("FullYear",!0);function oI(){return zu(this.year())}function qi(e,t){return function(r){return r!=null?(Vy(this,e,r),q.updateOffset(this,t),this):Ws(this,e)}}function Ws(e,t){if(!e.isValid())return NaN;var r=e._d,n=e._isUTC;switch(t){case"Milliseconds":return n?r.getUTCMilliseconds():r.getMilliseconds();case"Seconds":return n?r.getUTCSeconds():r.getSeconds();case"Minutes":return n?r.getUTCMinutes():r.getMinutes();case"Hours":return n?r.getUTCHours():r.getHours();case"Date":return n?r.getUTCDate():r.getDate();case"Day":return n?r.getUTCDay():r.getDay();case"Month":return n?r.getUTCMonth():r.getMonth();case"FullYear":return n?r.getUTCFullYear():r.getFullYear();default:return NaN}}function Vy(e,t,r){var n,o,a,i,s;if(!(!e.isValid()||isNaN(r))){switch(n=e._d,o=e._isUTC,t){case"Milliseconds":return void(o?n.setUTCMilliseconds(r):n.setMilliseconds(r));case"Seconds":return void(o?n.setUTCSeconds(r):n.setSeconds(r));case"Minutes":return void(o?n.setUTCMinutes(r):n.setMinutes(r));case"Hours":return void(o?n.setUTCHours(r):n.setHours(r));case"Date":return void(o?n.setUTCDate(r):n.setDate(r));case"FullYear":break;default:return}a=r,i=e.month(),s=e.date(),s=s===29&&i===1&&!zu(a)?28:s,o?n.setUTCFullYear(a,i,s):n.setFullYear(a,i,s)}}function aI(e){return e=yn(e),Qn(this[e])?this[e]():this}function iI(e,t){if(typeof e=="object"){e=Ah(e);var r=qT(e),n,o=r.length;for(n=0;n<o;n++)this[r[n].unit](e[r[n].unit])}else if(e=yn(e),Qn(this[e]))return this[e](t);return this}function sI(e,t){return(e%t+t)%t}var nr;Array.prototype.indexOf?nr=Array.prototype.indexOf:nr=function(e){var t;for(t=0;t<this.length;++t)if(this[t]===e)return t;return-1};function Nh(e,t){if(isNaN(e)||isNaN(t))return NaN;var r=sI(t,12);return e+=(t-r)/12,r===1?zu(e)?29:28:31-r%7%2}Fe("M",["MM",2],"Mo",function(){return this.month()+1});Fe("MMM",0,0,function(e){return this.localeData().monthsShort(this,e)});Fe("MMMM",0,0,function(e){return this.localeData().months(this,e)});Pe("M",Jt,Ji);Pe("MM",Jt,en);Pe("MMM",function(e,t){return t.monthsShortRegex(e)});Pe("MMMM",function(e,t){return t.monthsRegex(e)});zt(["M","MM"],function(e,t){t[co]=lt(e)-1});zt(["MMM","MMMM"],function(e,t,r,n){var o=r._locale.monthsParse(e,n,r._strict);o!=null?t[co]=o:Ze(r).invalidMonth=e});var lI="January_February_March_April_May_June_July_August_September_October_November_December".split("_"),Yy="Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),Gy=/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/,cI=yl,uI=yl;function dI(e,t){return e?Rn(this._months)?this._months[e.month()]:this._months[(this._months.isFormat||Gy).test(t)?"format":"standalone"][e.month()]:Rn(this._months)?this._months:this._months.standalone}function fI(e,t){return e?Rn(this._monthsShort)?this._monthsShort[e.month()]:this._monthsShort[Gy.test(t)?"format":"standalone"][e.month()]:Rn(this._monthsShort)?this._monthsShort:this._monthsShort.standalone}function hI(e,t,r){var n,o,a,i=e.toLocaleLowerCase();if(!this._monthsParse)for(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[],n=0;n<12;++n)a=Xn([2e3,n]),this._shortMonthsParse[n]=this.monthsShort(a,"").toLocaleLowerCase(),this._longMonthsParse[n]=this.months(a,"").toLocaleLowerCase();return r?t==="MMM"?(o=nr.call(this._shortMonthsParse,i),o!==-1?o:null):(o=nr.call(this._longMonthsParse,i),o!==-1?o:null):t==="MMM"?(o=nr.call(this._shortMonthsParse,i),o!==-1?o:(o=nr.call(this._longMonthsParse,i),o!==-1?o:null)):(o=nr.call(this._longMonthsParse,i),o!==-1?o:(o=nr.call(this._shortMonthsParse,i),o!==-1?o:null))}function pI(e,t,r){var n,o,a;if(this._monthsParseExact)return hI.call(this,e,t,r);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),n=0;n<12;n++){if(o=Xn([2e3,n]),r&&!this._longMonthsParse[n]&&(this._longMonthsParse[n]=new RegExp("^"+this.months(o,"").replace(".","")+"$","i"),this._shortMonthsParse[n]=new RegExp("^"+this.monthsShort(o,"").replace(".","")+"$","i")),!r&&!this._monthsParse[n]&&(a="^"+this.months(o,"")+"|^"+this.monthsShort(o,""),this._monthsParse[n]=new RegExp(a.replace(".",""),"i")),r&&t==="MMMM"&&this._longMonthsParse[n].test(e))return n;if(r&&t==="MMM"&&this._shortMonthsParse[n].test(e))return n;if(!r&&this._monthsParse[n].test(e))return n}}function Ky(e,t){if(!e.isValid())return e;if(typeof t=="string"){if(/^\d+$/.test(t))t=lt(t);else if(t=e.localeData().monthsParse(t),!Co(t))return e}var r=t,n=e.date();return n=n<29?n:Math.min(n,Nh(e.year(),r)),e._isUTC?e._d.setUTCMonth(r,n):e._d.setMonth(r,n),e}function Jy(e){return e!=null?(Ky(this,e),q.updateOffset(this,!0),this):Ws(this,"Month")}function mI(){return Nh(this.year(),this.month())}function gI(e){return this._monthsParseExact?(Ct(this,"_monthsRegex")||qy.call(this),e?this._monthsShortStrictRegex:this._monthsShortRegex):(Ct(this,"_monthsShortRegex")||(this._monthsShortRegex=cI),this._monthsShortStrictRegex&&e?this._monthsShortStrictRegex:this._monthsShortRegex)}function vI(e){return this._monthsParseExact?(Ct(this,"_monthsRegex")||qy.call(this),e?this._monthsStrictRegex:this._monthsRegex):(Ct(this,"_monthsRegex")||(this._monthsRegex=uI),this._monthsStrictRegex&&e?this._monthsStrictRegex:this._monthsRegex)}function qy(){function e(l,u){return u.length-l.length}var t=[],r=[],n=[],o,a,i,s;for(o=0;o<12;o++)a=Xn([2e3,o]),i=po(this.monthsShort(a,"")),s=po(this.months(a,"")),t.push(i),r.push(s),n.push(s),n.push(i);t.sort(e),r.sort(e),n.sort(e),this._monthsRegex=new RegExp("^("+n.join("|")+")","i"),this._monthsShortRegex=this._monthsRegex,this._monthsStrictRegex=new RegExp("^("+r.join("|")+")","i"),this._monthsShortStrictRegex=new RegExp("^("+t.join("|")+")","i")}function yI(e,t,r,n,o,a,i){var s;return e<100&&e>=0?(s=new Date(e+400,t,r,n,o,a,i),isFinite(s.getFullYear())&&s.setFullYear(e)):s=new Date(e,t,r,n,o,a,i),s}function Us(e){var t,r;return e<100&&e>=0?(r=Array.prototype.slice.call(arguments),r[0]=e+400,t=new Date(Date.UTC.apply(null,r)),isFinite(t.getUTCFullYear())&&t.setUTCFullYear(e)):t=new Date(Date.UTC.apply(null,arguments)),t}function Tc(e,t,r){var n=7+t-r,o=(7+Us(e,0,n).getUTCDay()-t)%7;return-o+n-1}function Xy(e,t,r,n,o){var a=(7+r-n)%7,i=Tc(e,n,o),s=1+7*(t-1)+a+i,l,u;return s<=0?(l=e-1,u=_s(l)+s):s>_s(e)?(l=e+1,u=s-_s(e)):(l=e,u=s),{year:l,dayOfYear:u}}function Vs(e,t,r){var n=Tc(e.year(),t,r),o=Math.floor((e.dayOfYear()-n-1)/7)+1,a,i;return o<1?(i=e.year()-1,a=o+mo(i,t,r)):o>mo(e.year(),t,r)?(a=o-mo(e.year(),t,r),i=e.year()+1):(i=e.year(),a=o),{week:a,year:i}}function mo(e,t,r){var n=Tc(e,t,r),o=Tc(e+1,t,r);return(_s(e)-n+o)/7}Fe("w",["ww",2],"wo","week");Fe("W",["WW",2],"Wo","isoWeek");Pe("w",Jt,Ji);Pe("ww",Jt,en);Pe("W",Jt,Ji);Pe("WW",Jt,en);bl(["w","ww","W","WW"],function(e,t,r,n){t[n.substr(0,1)]=lt(e)});function bI(e){return Vs(e,this._week.dow,this._week.doy).week}var xI={dow:0,doy:6};function CI(){return this._week.dow}function SI(){return this._week.doy}function wI(e){var t=this.localeData().week(this);return e==null?t:this.add((e-t)*7,"d")}function kI(e){var t=Vs(this,1,4).week;return e==null?t:this.add((e-t)*7,"d")}Fe("d",0,"do","day");Fe("dd",0,0,function(e){return this.localeData().weekdaysMin(this,e)});Fe("ddd",0,0,function(e){return this.localeData().weekdaysShort(this,e)});Fe("dddd",0,0,function(e){return this.localeData().weekdays(this,e)});Fe("e",0,0,"weekday");Fe("E",0,0,"isoWeekday");Pe("d",Jt);Pe("e",Jt);Pe("E",Jt);Pe("dd",function(e,t){return t.weekdaysMinRegex(e)});Pe("ddd",function(e,t){return t.weekdaysShortRegex(e)});Pe("dddd",function(e,t){return t.weekdaysRegex(e)});bl(["dd","ddd","dddd"],function(e,t,r,n){var o=r._locale.weekdaysParse(e,n,r._strict);o!=null?t.d=o:Ze(r).invalidWeekday=e});bl(["d","e","E"],function(e,t,r,n){t[n]=lt(e)});function _I(e,t){return typeof e!="string"?e:isNaN(e)?(e=t.weekdaysParse(e),typeof e=="number"?e:null):parseInt(e,10)}function EI(e,t){return typeof e=="string"?t.weekdaysParse(e)%7||7:isNaN(e)?null:e}function Fh(e,t){return e.slice(t,7).concat(e.slice(0,t))}var PI="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),Qy="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),RI="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),TI=yl,II=yl,DI=yl;function OI(e,t){var r=Rn(this._weekdays)?this._weekdays:this._weekdays[e&&e!==!0&&this._weekdays.isFormat.test(t)?"format":"standalone"];return e===!0?Fh(r,this._week.dow):e?r[e.day()]:r}function $I(e){return e===!0?Fh(this._weekdaysShort,this._week.dow):e?this._weekdaysShort[e.day()]:this._weekdaysShort}function jI(e){return e===!0?Fh(this._weekdaysMin,this._week.dow):e?this._weekdaysMin[e.day()]:this._weekdaysMin}function AI(e,t,r){var n,o,a,i=e.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],n=0;n<7;++n)a=Xn([2e3,1]).day(n),this._minWeekdaysParse[n]=this.weekdaysMin(a,"").toLocaleLowerCase(),this._shortWeekdaysParse[n]=this.weekdaysShort(a,"").toLocaleLowerCase(),this._weekdaysParse[n]=this.weekdays(a,"").toLocaleLowerCase();return r?t==="dddd"?(o=nr.call(this._weekdaysParse,i),o!==-1?o:null):t==="ddd"?(o=nr.call(this._shortWeekdaysParse,i),o!==-1?o:null):(o=nr.call(this._minWeekdaysParse,i),o!==-1?o:null):t==="dddd"?(o=nr.call(this._weekdaysParse,i),o!==-1||(o=nr.call(this._shortWeekdaysParse,i),o!==-1)?o:(o=nr.call(this._minWeekdaysParse,i),o!==-1?o:null)):t==="ddd"?(o=nr.call(this._shortWeekdaysParse,i),o!==-1||(o=nr.call(this._weekdaysParse,i),o!==-1)?o:(o=nr.call(this._minWeekdaysParse,i),o!==-1?o:null)):(o=nr.call(this._minWeekdaysParse,i),o!==-1||(o=nr.call(this._weekdaysParse,i),o!==-1)?o:(o=nr.call(this._shortWeekdaysParse,i),o!==-1?o:null))}function LI(e,t,r){var n,o,a;if(this._weekdaysParseExact)return AI.call(this,e,t,r);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),n=0;n<7;n++){if(o=Xn([2e3,1]).day(n),r&&!this._fullWeekdaysParse[n]&&(this._fullWeekdaysParse[n]=new RegExp("^"+this.weekdays(o,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[n]=new RegExp("^"+this.weekdaysShort(o,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[n]=new RegExp("^"+this.weekdaysMin(o,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[n]||(a="^"+this.weekdays(o,"")+"|^"+this.weekdaysShort(o,"")+"|^"+this.weekdaysMin(o,""),this._weekdaysParse[n]=new RegExp(a.replace(".",""),"i")),r&&t==="dddd"&&this._fullWeekdaysParse[n].test(e))return n;if(r&&t==="ddd"&&this._shortWeekdaysParse[n].test(e))return n;if(r&&t==="dd"&&this._minWeekdaysParse[n].test(e))return n;if(!r&&this._weekdaysParse[n].test(e))return n}}function MI(e){if(!this.isValid())return e!=null?this:NaN;var t=Ws(this,"Day");return e!=null?(e=_I(e,this.localeData()),this.add(e-t,"d")):t}function zI(e){if(!this.isValid())return e!=null?this:NaN;var t=(this.day()+7-this.localeData()._week.dow)%7;return e==null?t:this.add(e-t,"d")}function NI(e){if(!this.isValid())return e!=null?this:NaN;if(e!=null){var t=EI(e,this.localeData());return this.day(this.day()%7?t:t-7)}else return this.day()||7}function FI(e){return this._weekdaysParseExact?(Ct(this,"_weekdaysRegex")||Hh.call(this),e?this._weekdaysStrictRegex:this._weekdaysRegex):(Ct(this,"_weekdaysRegex")||(this._weekdaysRegex=TI),this._weekdaysStrictRegex&&e?this._weekdaysStrictRegex:this._weekdaysRegex)}function HI(e){return this._weekdaysParseExact?(Ct(this,"_weekdaysRegex")||Hh.call(this),e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(Ct(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=II),this._weekdaysShortStrictRegex&&e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)}function BI(e){return this._weekdaysParseExact?(Ct(this,"_weekdaysRegex")||Hh.call(this),e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(Ct(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=DI),this._weekdaysMinStrictRegex&&e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)}function Hh(){function e(d,f){return f.length-d.length}var t=[],r=[],n=[],o=[],a,i,s,l,u;for(a=0;a<7;a++)i=Xn([2e3,1]).day(a),s=po(this.weekdaysMin(i,"")),l=po(this.weekdaysShort(i,"")),u=po(this.weekdays(i,"")),t.push(s),r.push(l),n.push(u),o.push(s),o.push(l),o.push(u);t.sort(e),r.sort(e),n.sort(e),o.sort(e),this._weekdaysRegex=new RegExp("^("+o.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+n.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+r.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+t.join("|")+")","i")}function Bh(){return this.hours()%12||12}function WI(){return this.hours()||24}Fe("H",["HH",2],0,"hour");Fe("h",["hh",2],0,Bh);Fe("k",["kk",2],0,WI);Fe("hmm",0,0,function(){return""+Bh.apply(this)+Yn(this.minutes(),2)}
vendor: 17,846 bytes, line 109
109);Fe("hmmss",0,0,function(){return""+Bh.apply(this)+Yn(this.minutes(),2)+Yn(this.seconds(),2)});Fe("Hmm",0,0,function(){return""+this.hours()+Yn(this.minutes(),2)});Fe("Hmmss",0,0,function(){return""+this.hours()+Yn(this.minutes(),2)+Yn(this.seconds(),2)});function Zy(e,t){Fe(e,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),t)})}Zy("a",!0);Zy("A",!1);function e1(e,t){return t._meridiemParse}Pe("a",e1);Pe("A",e1);Pe("H",Jt,zh);Pe("h",Jt,Ji);Pe("k",Jt,Ji);Pe("HH",Jt,en);Pe("hh",Jt,en);Pe("kk",Jt,en);Pe("hmm",By);Pe("hmmss",Wy);Pe("Hmm",By);Pe("Hmmss",Wy);zt(["H","HH"],hr);zt(["k","kk"],function(e,t,r){var n=lt(e);t[hr]=n===24?0:n});zt(["a","A"],function(e,t,r){r._isPm=r._locale.isPM(e),r._meridiem=e});zt(["h","hh"],function(e,t,r){t[hr]=lt(e),Ze(r).bigHour=!0});zt("hmm",function(e,t,r){var n=e.length-2;t[hr]=lt(e.substr(0,n)),t[En]=lt(e.substr(n)),Ze(r).bigHour=!0});zt("hmmss",function(e,t,r){var n=e.length-4,o=e.length-2;t[hr]=lt(e.substr(0,n)),t[En]=lt(e.substr(n,2)),t[uo]=lt(e.substr(o)),Ze(r).bigHour=!0});zt("Hmm",function(e,t,r){var n=e.length-2;t[hr]=lt(e.substr(0,n)),t[En]=lt(e.substr(n))});zt("Hmmss",function(e,t,r){var n=e.length-4,o=e.length-2;t[hr]=lt(e.substr(0,n)),t[En]=lt(e.substr(n,2)),t[uo]=lt(e.substr(o))});function UI(e){return(e+"").toLowerCase().charAt(0)==="p"}var VI=/[ap]\.?m?\.?/i,YI=qi("Hours",!0);function GI(e,t,r){return e>11?r?"pm":"PM":r?"am":"AM"}var t1={calendar:AT,longDateFormat:NT,invalidDate:HT,ordinal:WT,dayOfMonthOrdinalParse:UT,relativeTime:YT,months:lI,monthsShort:Yy,week:xI,weekdays:PI,weekdaysMin:RI,weekdaysShort:Qy,meridiemParse:VI},Xt={},ds={},Ys;function KI(e,t){var r,n=Math.min(e.length,t.length);for(r=0;r<n;r+=1)if(e[r]!==t[r])return r;return n}function dg(e){return e&&e.toLowerCase().replace("_","-")}function JI(e){for(var t=0,r,n,o,a;t<e.length;){for(a=dg(e[t]).split("-"),r=a.length,n=dg(e[t+1]),n=n?n.split("-"):null;r>0;){if(o=Nu(a.slice(0,r).join("-")),o)return o;if(n&&n.length>=r&&KI(a,n)>=r-1)break;r--}t++}return Ys}function qI(e){return!!(e&&e.match("^[^/\\\\]*$"))}function Nu(e){var t=null,r;if(Xt[e]===void 0&&typeof module<"u"&&module&&module.exports&&qI(e))try{t=Ys._abbr,r=require,r("./locale/"+e),Yo(t)}catch{Xt[e]=null}return Xt[e]}function Yo(e,t){var r;return e&&(Nr(t)?r=wo(e):r=Wh(e,t),r&&(Ys=r)),Ys._abbr}function Wh(e,t){if(t!==null){var r,n=t1;if(t.abbr=e,Xt[e]!=null)zy("defineLocaleOverride","use moment.updateLocale(localeName, config) to change an existing locale. moment.defineLocale(localeName, config) should only be used for creating a new locale See http://momentjs.com/guides/#/warnings/define-locale/ for more info."),n=Xt[e]._config;else if(t.parentLocale!=null)if(Xt[t.parentLocale]!=null)n=Xt[t.parentLocale]._config;else if(r=Nu(t.parentLocale),r!=null)n=r._config;else return ds[t.parentLocale]||(ds[t.parentLocale]=[]),ds[t.parentLocale].push({name:e,config:t}),null;return Xt[e]=new $h(df(n,t)),ds[e]&&ds[e].forEach(function(o){Wh(o.name,o.config)}),Yo(e),Xt[e]}else return delete Xt[e],null}function XI(e,t){if(t!=null){var r,n,o=t1;Xt[e]!=null&&Xt[e].parentLocale!=null?Xt[e].set(df(Xt[e]._config,t)):(n=Nu(e),n!=null&&(o=n._config),t=df(o,t),n==null&&(t.abbr=e),r=new $h(t),r.parentLocale=Xt[e],Xt[e]=r),Yo(e)}else Xt[e]!=null&&(Xt[e].parentLocale!=null?(Xt[e]=Xt[e].parentLocale,e===Yo()&&Yo(e)):Xt[e]!=null&&delete Xt[e]);return Xt[e]}function wo(e){var t;if(e&&e._locale&&e._locale._abbr&&(e=e._locale._abbr),!e)return Ys;if(!Rn(e)){if(t=Nu(e),t)return t;e=[e]}return JI(e)}function QI(){return ff(Xt)}function Uh(e){var t,r=e._a;return r&&Ze(e).overflow===-2&&(t=r[co]<0||r[co]>11?co:r[Fn]<1||r[Fn]>Nh(r[Ir],r[co])?Fn:r[hr]<0||r[hr]>24||r[hr]===24&&(r[En]!==0||r[uo]!==0||r[ua]!==0)?hr:r[En]<0||r[En]>59?En:r[uo]<0||r[uo]>59?uo:r[ua]<0||r[ua]>999?ua:-1,Ze(e)._overflowDayOfYear&&(t<Ir||t>Fn)&&(t=Fn),Ze(e)._overflowWeeks&&t===-1&&(t=rI),Ze(e)._overflowWeekday&&t===-1&&(t=nI),Ze(e).overflow=t),e}var ZI=/^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,eD=/^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d|))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,tD=/Z|[+-]\d\d(?::?\d\d)?/,Ol=[["YYYYYY-MM-DD",/[+-]\d{6}-\d\d-\d\d/],["YYYY-MM-DD",/\d{4}-\d\d-\d\d/],["GGGG-[W]WW-E",/\d{4}-W\d\d-\d/],["GGGG-[W]WW",/\d{4}-W\d\d/,!1],["YYYY-DDD",/\d{4}-\d{3}/],["YYYY-MM",/\d{4}-\d\d/,!1],["YYYYYYMMDD",/[+-]\d{10}/],["YYYYMMDD",/\d{8}/],["GGGG[W]WWE",/\d{4}W\d{3}/],["GGGG[W]WW",/\d{4}W\d{2}/,!1],["YYYYDDD",/\d{7}/],["YYYYMM",/\d{6}/,!1],["YYYY",/\d{4}/,!1]],md=[["HH:mm:ss.SSSS",/\d\d:\d\d:\d\d\.\d+/],["HH:mm:ss,SSSS",/\d\d:\d\d:\d\d,\d+/],["HH:mm:ss",/\d\d:\d\d:\d\d/],["HH:mm",/\d\d:\d\d/],["HHmmss.SSSS",/\d\d\d\d\d\d\.\d+/],["HHmmss,SSSS",/\d\d\d\d\d\d,\d+/],["HHmmss",/\d\d\d\d\d\d/],["HHmm",/\d\d\d\d/],["HH",/\d\d/]],rD=/^\/?Date\((-?\d+)/i,nD=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),?\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|([+-]\d{4}))$/,oD={UT:0,GMT:0,EDT:-4*60,EST:-5*60,CDT:-5*60,CST:-6*60,MDT:-6*60,MST:-7*60,PDT:-7*60,PST:-8*60};function r1(e){var t,r,n=e._i,o=ZI.exec(n)||eD.exec(n),a,i,s,l,u=Ol.length,d=md.length;if(o){for(Ze(e).iso=!0,t=0,r=u;t<r;t++)if(Ol[t][1].exec(o[1])){i=Ol[t][0],a=Ol[t][2]!==!1;break}if(i==null){e._isValid=!1;return}if(o[3]){for(t=0,r=d;t<r;t++)if(md[t][1].exec(o[3])){s=(o[2]||" ")+md[t][0];break}if(s==null){e._isValid=!1;return}}if(!a&&s!=null){e._isValid=!1;return}if(o[4])if(tD.exec(o[4]))l="Z";else{e._isValid=!1;return}e._f=i+(s||"")+(l||""),Yh(e)}else e._isValid=!1}function aD(e,t,r,n,o,a){var i=[iD(e),Yy.indexOf(t),parseInt(r,10),parseInt(n,10),parseInt(o,10)];return a&&i.push(parseInt(a,10)),i}function iD(e){var t=parseInt(e,10);return t<=49?2e3+t:t<=999?1900+t:t}function sD(e){return e.replace(/\([^()]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").replace(/^\s\s*/,"").replace(/\s\s*$/,"")}function lD(e,t,r){if(e){var n=Qy.indexOf(e),o=new Date(t[0],t[1],t[2]).getDay();if(n!==o)return Ze(r).weekdayMismatch=!0,r._isValid=!1,!1}return!0}function cD(e,t,r){if(e)return oD[e];if(t)return 0;var n=parseInt(r,10),o=n%100,a=(n-o)/100;return a*60+o}function n1(e){var t=nD.exec(sD(e._i)),r;if(t){if(r=aD(t[4],t[3],t[2],t[5],t[6],t[7]),!lD(t[1],r,e))return;e._a=r,e._tzm=cD(t[8],t[9],t[10]),e._d=Us.apply(null,e._a),e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),Ze(e).rfc2822=!0}else e._isValid=!1}function uD(e){var t=rD.exec(e._i);if(t!==null){e._d=new Date(+t[1]);return}if(r1(e),e._isValid===!1)delete e._isValid;else return;if(n1(e),e._isValid===!1)delete e._isValid;else return;e._strict?e._isValid=!1:q.createFromInputFallback(e)}q.createFromInputFallback=vn("value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.",function(e){e._d=new Date(e._i+(e._useUTC?" UTC":""))});function Ka(e,t,r){return e??t??r}function dD(e){var t=new Date(q.now());return e._useUTC?[t.getUTCFullYear(),t.getUTCMonth(),t.getUTCDate()]:[t.getFullYear(),t.getMonth(),t.getDate()]}function Vh(e){var t,r,n=[],o,a,i;if(!e._d){for(o=dD(e),e._w&&e._a[Fn]==null&&e._a[co]==null&&fD(e),e._dayOfYear!=null&&(i=Ka(e._a[Ir],o[Ir]),(e._dayOfYear>_s(i)||e._dayOfYear===0)&&(Ze(e)._overflowDayOfYear=!0),r=Us(i,0,e._dayOfYear),e._a[co]=r.getUTCMonth(),e._a[Fn]=r.getUTCDate()),t=0;t<3&&e._a[t]==null;++t)e._a[t]=n[t]=o[t];for(;t<7;t++)e._a[t]=n[t]=e._a[t]==null?t===2?1:0:e._a[t];e._a[hr]===24&&e._a[En]===0&&e._a[uo]===0&&e._a[ua]===0&&(e._nextDay=!0,e._a[hr]=0),e._d=(e._useUTC?Us:yI).apply(null,n),a=e._useUTC?e._d.getUTCDay():e._d.getDay(),e._tzm!=null&&e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),e._nextDay&&(e._a[hr]=24),e._w&&typeof e._w.d<"u"&&e._w.d!==a&&(Ze(e).weekdayMismatch=!0)}}function fD(e){var t,r,n,o,a,i,s,l,u;t=e._w,t.GG!=null||t.W!=null||t.E!=null?(a=1,i=4,r=Ka(t.GG,e._a[Ir],Vs(Kt(),1,4).year),n=Ka(t.W,1),o=Ka(t.E,1),(o<1||o>7)&&(l=!0)):(a=e._locale._week.dow,i=e._locale._week.doy,u=Vs(Kt(),a,i),r=Ka(t.gg,e._a[Ir],u.year),n=Ka(t.w,u.week),t.d!=null?(o=t.d,(o<0||o>6)&&(l=!0)):t.e!=null?(o=t.e+a,(t.e<0||t.e>6)&&(l=!0)):o=a),n<1||n>mo(r,a,i)?Ze(e)._overflowWeeks=!0:l!=null?Ze(e)._overflowWeekday=!0:(s=Xy(r,n,o,a,i),e._a[Ir]=s.year,e._dayOfYear=s.dayOfYear)}q.ISO_8601=function(){};q.RFC_2822=function(){};function Yh(e){if(e._f===q.ISO_8601){r1(e);return}if(e._f===q.RFC_2822){n1(e);return}e._a=[],Ze(e).empty=!0;var t=""+e._i,r,n,o,a,i,s=t.length,l=0,u,d;for(o=Ny(e._f,e._locale).match(jh)||[],d=o.length,r=0;r<d;r++)a=o[r],n=(t.match(ZT(a,e))||[])[0],n&&(i=t.substr(0,t.indexOf(n)),i.length>0&&Ze(e).unusedInput.push(i),t=t.slice(t.indexOf(n)+n.length),l+=n.length),ti[a]?(n?Ze(e).empty=!1:Ze(e).unusedTokens.push(a),tI(a,n,e)):e._strict&&!n&&Ze(e).unusedTokens.push(a);Ze(e).charsLeftOver=s-l,t.length>0&&Ze(e).unusedInput.push(t),e._a[hr]<=12&&Ze(e).bigHour===!0&&e._a[hr]>0&&(Ze(e).bigHour=void 0),Ze(e).parsedDateParts=e._a.slice(0),Ze(e).meridiem=e._meridiem,e._a[hr]=hD(e._locale,e._a[hr],e._meridiem),u=Ze(e).era,u!==null&&(e._a[Ir]=e._locale.erasConvertYear(u,e._a[Ir])),Vh(e),Uh(e)}function hD(e,t,r){var n;return r==null?t:e.meridiemHour!=null?e.meridiemHour(t,r):(e.isPM!=null&&(n=e.isPM(r),n&&t<12&&(t+=12),!n&&t===12&&(t=0)),t)}function pD(e){var t,r,n,o,a,i,s=!1,l=e._f.length;if(l===0){Ze(e).invalidFormat=!0,e._d=new Date(NaN);return}for(o=0;o<l;o++)a=0,i=!1,t=Oh({},e),e._useUTC!=null&&(t._useUTC=e._useUTC),t._f=e._f[o],Yh(t),Dh(t)&&(i=!0),a+=Ze(t).charsLeftOver,a+=Ze(t).unusedTokens.length*10,Ze(t).score=a,s?a<n&&(n=a,r=t):(n==null||a<n||i)&&(n=a,r=t,i&&(s=!0));Bo(e,r||t)}function mD(e){if(!e._d){var t=Ah(e._i),r=t.day===void 0?t.date:t.day;e._a=Ly([t.year,t.month,r,t.hour,t.minute,t.second,t.millisecond],function(n){return n&&parseInt(n,10)}),Vh(e)}}function gD(e){var t=new vl(Uh(o1(e)));return t._nextDay&&(t.add(1,"d"),t._nextDay=void 0),t}function o1(e){var t=e._i,r=e._f;return e._locale=e._locale||wo(e._l),t===null||r===void 0&&t===""?Ou({nullInput:!0}):(typeof t=="string"&&(e._i=t=e._locale.preparse(t)),Tn(t)?new vl(Uh(t)):(gl(t)?e._d=t:Rn(r)?pD(e):r?Yh(e):vD(e),Dh(e)||(e._d=null),e))}function vD(e){var t=e._i;Nr(t)?e._d=new Date(q.now()):gl(t)?e._d=new Date(t.valueOf()):typeof t=="string"?uD(e):Rn(t)?(e._a=Ly(t.slice(0),function(r){return parseInt(r,10)}),Vh(e)):Sa(t)?mD(e):Co(t)?e._d=new Date(t):q.createFromInputFallback(e)}function a1(e,t,r,n,o){var a={};return(t===!0||t===!1)&&(n=t,t=void 0),(r===!0||r===!1)&&(n=r,r=void 0),(Sa(e)&&Ih(e)||Rn(e)&&e.length===0)&&(e=void 0),a._isAMomentObject=!0,a._useUTC=a._isUTC=o,a._l=r,a._i=e,a._f=t,a._strict=n,gD(a)}function Kt(e,t,r,n){return a1(e,t,r,n,!1)}var yD=vn("moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var e=Kt.apply(null,arguments);return this.isValid()&&e.isValid()?e<this?this:e:Ou()}),bD=vn("moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var e=Kt.apply(null,arguments);return this.isValid()&&e.isValid()?e>this?this:e:Ou()});function i1(e,t){var r,n;if(t.length===1&&Rn(t[0])&&(t=t[0]),!t.length)return Kt();for(r=t[0],n=1;n<t.length;++n)(!t[n].isValid()||t[n][e](r))&&(r=t[n]);return r}function xD(){var e=[].slice.call(arguments,0);return i1("isBefore",e)}function CD(){var e=[].slice.call(arguments,0);return i1("isAfter",e)}var SD=function(){return Date.now?Date.now():+new Date},fs=["year","quarter","month","week","day","hour","minute","second","millisecond"];function wD(e){var t,r=!1,n,o=fs.length;for(t in e)if(Ct(e,t)&&!(nr.call(fs,t)!==-1&&(e[t]==null||!isNaN(e[t]))))return!1;for(n=0;n<o;++n)if(e[fs[n]]){if(r)return!1;parseFloat(e[fs[n]])!==lt(e[fs[n]])&&(r=!0)}return!0}function kD(){return this._isValid}function _D(){return In(NaN)}function Fu(e){var t=Ah(e),r=t.year||0,n=t.quarter||0,o=t.month||0,a=t.week||t.isoWeek||0,i=t.day||0,s=t.hour||0,l=t.minute||0,u=t.second||0,d=t.millisecond||0;this._isValid=wD(t),this._milliseconds=+d+u*1e3+l*6e4+s*1e3*60*60,this._days=+i+a*7,this._months=+o+n*3+r*12,this._data={},this._locale=wo(),this._bubble()}function oc(e){return e instanceof Fu}function pf(e){return e<0?Math.round(-1*e)*-1:Math.round(e)}function ED(e,t,r){var n=Math.min(e.length,t.length),o=Math.abs(e.length-t.length),a=0,i;for(i=0;i<n;i++)lt(e[i])!==lt(t[i])&&a++;return a+o}function s1(e,t){Fe(e,0,0,function(){var r=this.utcOffset(),n="+";return r<0&&(r=-r,n="-"),n+Yn(~~(r/60),2)+t+Yn(~~r%60,2)})}s1("Z",":");s1("ZZ","");Pe("Z",Mu);Pe("ZZ",Mu);zt(["Z","ZZ"],function(e,t,r){r._useUTC=!0,r._tzm=Gh(Mu,e)});var PD=/([\+\-]|\d\d)/gi;function Gh(e,t){var r=(t||"").match(e),n,o,a;return r===null?null:(n=r[r.length-1]||[],o=(n+"").match(PD)||["-",0,0],a=+(o[1]*60)+lt(o[2]),a===0?0:o[0]==="+"?a:-a)}function Kh(e,t){var r,n;return t._isUTC?(r=t.clone(),n=(Tn(e)||gl(e)?e.valueOf():Kt(e).valueOf())-r.valueOf(),r._d.setTime(r._d.valueOf()+n),q.updateOffset(r,!1),r):Kt(e).local()}function mf(e){return-Math.round(e._d.getTimezoneOffset())}q.updateOffset=function(){};function RD(e,t,r){var n=this._offset||0,o;if(!this.isValid())return e!=null?this:NaN;if(e!=null){if(typeof e=="string"){if(e=Gh(Mu,e),e===null)return this}else Math.abs(e)<16&&!r&&(e=e*60);return!this._isUTC&&t&&(o=mf(this)),this._offset=e,this._isUTC=!0,o!=null&&this.add(o,"m"),n!==e&&(!t||this._changeInProgress?u1(this,In(e-n,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,q.updateOffset(this,!0),this._changeInProgress=null)),this}else return this._isUTC?n:mf(this)}function TD(e,t){return e!=null?(typeof e!="string"&&(e=-e),this.utcOffset(e,t),this):-this.utcOffset()}function ID(e){return this.utcOffset(0,e)}function DD(e){return this._isUTC&&(this.utcOffset(0,e),this._isUTC=!1,e&&this.subtract(mf(this),"m")),this}function OD(){if(this._tzm!=null)this.utcOffset(this._tzm,!1,!0);else if(typeof this._i=="string"){var e=Gh(XT,this._i);e!=null?this.utcOffset(e):this.utcOffset(0,!0)}return this}function $D(e){return this.isValid()?(e=e?Kt(e).utcOffset():0,(this.utcOffset()-e)%60===0):!1}function jD(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()}function AD(){if(!Nr(this._isDSTShifted))return this._isDSTShifted;var e={},t;return Oh(e,this),e=o1(e),e._a?(t=e._isUTC?Xn(e._a):Kt(e._a),this._isDSTShifted=this.isValid()&&ED(e._a,t.toArray())>0):this._isDSTShifted=!1,this._isDSTShifted}function LD(){return this.isValid()?!this._isUTC:!1}function MD(){return this.isValid()?this._isUTC:!1}function l1(){return this.isValid()?this._isUTC&&this._offset===0:!1}var zD=/^(-|\+)?(?:(\d*)[. ])?(\d+):(\d+)(?::(\d+)(\.\d*)?)?$/,ND=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function In(e,t){var r=e,n=null,o,a,i;return oc(e)?r={ms:e._milliseconds,d:e._days,M:e._months}:Co(e)||!isNaN(+e)?(r={},t?r[t]=+e:r.milliseconds=+e):(n=zD.exec(e))?(o=n[1]==="-"?-1:1,r={y:0,d:lt(n[Fn])*o,h:lt(n[hr])*o,m:lt(n[En])*o,s:lt(n[uo])*o,ms:lt(pf(n[ua]*1e3))*o}):(n=ND.exec(e))?(o=n[1]==="-"?-1:1,r={y:na(n[2],o),M:na(n[3],o),w:na(n[4],o),d:na(n[5],o),h:na(n[6],o),m:na(n[7],o),s:na(n[8],o)}):r==null?r={}:typeof r=="object"&&("from"in r||"to"in r)&&(i=FD(Kt(r.from),Kt(r.to)),r={},r.ms=i.milliseconds,r.M=i.months),a=new Fu(r),oc(e)&&Ct(e,"_locale")&&(a._locale=e._locale),oc(e)&&Ct(e,"_isValid")&&(a._isValid=e._isValid),a}In.fn=Fu.prototype;In.invalid=_D;function na(e,t){var r=e&&parseFloat(e.replace(",","."));return(isNaN(r)?0:r)*t}function fg(e,t){var r={};return r.months=t.month()-e.month()+(t.year()-e.year())*12,e.clone().add(r.months,"M").isAfter(t)&&--r.months,r.milliseconds=+t-+e.clone().add(r.months,"M"),r}function FD(e,t){var r;return e.isValid()&&t.isValid()?(t=Kh(t,e),e.isBefore(t)?r=fg(e,t):(r=fg(t,e),r.milliseconds=-r.milliseconds,r.months=-r.months),r):{milliseconds:0,months:0}}function c1(e,t){return function(r,n){var o,a;return n!==null&&!isNaN(+n)&&(zy(t,"moment()."+t+"(period, number) is deprecated. Please use moment()."+t+"(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."),a=r,r=n,n=a),o=In(r,n),u1(this,o,e),this}}function u1(e,t,r,n){var o=t._milliseconds,a=pf(t._days),i=pf(t._months);e.isValid()&&(n=n??!0,i&&Ky(e,Ws(e,"Month")+i*r),a&&Vy(e,"Date",Ws(e,"Date")+a*r),o&&e._d.setTime(e._d.valueOf()+o*r),n&&q.updateOffset(e,a||i))}var HD=c1(1,"add"),BD=c1(-1,"subtract");function d1(e){return typeof e=="string"||e instanceof String}function WD(e){return Tn(e)||gl(e)||d1(e)||Co(e)||VD(e)||UD(e)||e===null||e===void 0}function UD(e){var t=Sa(e)&&!Ih(e),r=!1,n=["years","year","y","months","month","M","days","day","d","dates","date","D","hours","hour","h","minutes","minute","m","seconds","second","s","milliseconds","millisecond","ms"],o,a,i=n.length;for(o=0;o<i;o+=1)a=n[o],r=r||Ct(e,a);return t&&r}function VD(e){var t=Rn(e),r=!1;return t&&(r=e.filter(function(n){return!Co(n)&&d1(e)}).length===0),t&&r}function YD(e){var t=Sa(e)&&!Ih(e),r=!1,n=["sameDay","nextDay","lastDay","nextWeek","lastWeek","sameElse"],o,a;for(o=0;o<n.length;o+=1)a=n[o],r=r||Ct(e,a);return t&&r}function GD(e,t){var r=e.diff(t,"days",!0);return r<-6?"sameElse":r<-1?"lastWeek":r<0?"lastDay":r<1?"sameDay":r<2?"nextDay":r<7?"nextWeek":"sameElse"}function KD(e,t){arguments.length===1&&(arguments[0]?WD(arguments[0])?(e=arguments[0],t=void 0):YD(arguments[0])&&(t=arguments[0],e=void 0):(e=void 0,t=void 0));var r=e||Kt(),n=Kh(r,this).startOf("day"),o=q.calendarFormat(this,n)||"sameElse",a=t&&(Qn(t[o])?t[o].c
vendor: 20,419 bytes, line 109
109all(this,r):t[o]);return this.format(a||this.localeData().calendar(o,this,Kt(r)))}function JD(){return new vl(this)}function qD(e,t){var r=Tn(e)?e:Kt(e);return this.isValid()&&r.isValid()?(t=yn(t)||"millisecond",t==="millisecond"?this.valueOf()>r.valueOf():r.valueOf()<this.clone().startOf(t).valueOf()):!1}function XD(e,t){var r=Tn(e)?e:Kt(e);return this.isValid()&&r.isValid()?(t=yn(t)||"millisecond",t==="millisecond"?this.valueOf()<r.valueOf():this.clone().endOf(t).valueOf()<r.valueOf()):!1}function QD(e,t,r,n){var o=Tn(e)?e:Kt(e),a=Tn(t)?t:Kt(t);return this.isValid()&&o.isValid()&&a.isValid()?(n=n||"()",(n[0]==="("?this.isAfter(o,r):!this.isBefore(o,r))&&(n[1]===")"?this.isBefore(a,r):!this.isAfter(a,r))):!1}function ZD(e,t){var r=Tn(e)?e:Kt(e),n;return this.isValid()&&r.isValid()?(t=yn(t)||"millisecond",t==="millisecond"?this.valueOf()===r.valueOf():(n=r.valueOf(),this.clone().startOf(t).valueOf()<=n&&n<=this.clone().endOf(t).valueOf())):!1}function eO(e,t){return this.isSame(e,t)||this.isAfter(e,t)}function tO(e,t){return this.isSame(e,t)||this.isBefore(e,t)}function rO(e,t,r){var n,o,a;if(!this.isValid())return NaN;if(n=Kh(e,this),!n.isValid())return NaN;switch(o=(n.utcOffset()-this.utcOffset())*6e4,t=yn(t),t){case"year":a=ac(this,n)/12;break;case"month":a=ac(this,n);break;case"quarter":a=ac(this,n)/3;break;case"second":a=(this-n)/1e3;break;case"minute":a=(this-n)/6e4;break;case"hour":a=(this-n)/36e5;break;case"day":a=(this-n-o)/864e5;break;case"week":a=(this-n-o)/6048e5;break;default:a=this-n}return r?a:an(a)}function ac(e,t){if(e.date()<t.date())return-ac(t,e);var r=(t.year()-e.year())*12+(t.month()-e.month()),n=e.clone().add(r,"months"),o,a;return t-n<0?(o=e.clone().add(r-1,"months"),a=(t-n)/(n-o)):(o=e.clone().add(r+1,"months"),a=(t-n)/(o-n)),-(r+a)||0}q.defaultFormat="YYYY-MM-DDTHH:mm:ssZ";q.defaultFormatUtc="YYYY-MM-DDTHH:mm:ss[Z]";function nO(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")}function oO(e){if(!this.isValid())return null;var t=e!==!0,r=t?this.clone().utc():this;return r.year()<0||r.year()>9999?nc(r,t?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):Qn(Date.prototype.toISOString)?t?this.toDate().toISOString():new Date(this.valueOf()+this.utcOffset()*60*1e3).toISOString().replace("Z",nc(r,"Z")):nc(r,t?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")}function aO(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var e="moment",t="",r,n,o,a;return this.isLocal()||(e=this.utcOffset()===0?"moment.utc":"moment.parseZone",t="Z"),r="["+e+'("]',n=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",o="-MM-DD[T]HH:mm:ss.SSS",a=t+'[")]',this.format(r+n+o+a)}function iO(e){e||(e=this.isUtc()?q.defaultFormatUtc:q.defaultFormat);var t=nc(this,e);return this.localeData().postformat(t)}function sO(e,t){return this.isValid()&&(Tn(e)&&e.isValid()||Kt(e).isValid())?In({to:this,from:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()}function lO(e){return this.from(Kt(),e)}function cO(e,t){return this.isValid()&&(Tn(e)&&e.isValid()||Kt(e).isValid())?In({from:this,to:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()}function uO(e){return this.to(Kt(),e)}function f1(e){var t;return e===void 0?this._locale._abbr:(t=wo(e),t!=null&&(this._locale=t),this)}var h1=vn("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",function(e){return e===void 0?this.localeData():this.locale(e)});function p1(){return this._locale}var Ic=1e3,ri=60*Ic,Dc=60*ri,m1=(365*400+97)*24*Dc;function ni(e,t){return(e%t+t)%t}function g1(e,t,r){return e<100&&e>=0?new Date(e+400,t,r)-m1:new Date(e,t,r).valueOf()}function v1(e,t,r){return e<100&&e>=0?Date.UTC(e+400,t,r)-m1:Date.UTC(e,t,r)}function dO(e){var t,r;if(e=yn(e),e===void 0||e==="millisecond"||!this.isValid())return this;switch(r=this._isUTC?v1:g1,e){case"year":t=r(this.year(),0,1);break;case"quarter":t=r(this.year(),this.month()-this.month()%3,1);break;case"month":t=r(this.year(),this.month(),1);break;case"week":t=r(this.year(),this.month(),this.date()-this.weekday());break;case"isoWeek":t=r(this.year(),this.month(),this.date()-(this.isoWeekday()-1));break;case"day":case"date":t=r(this.year(),this.month(),this.date());break;case"hour":t=this._d.valueOf(),t-=ni(t+(this._isUTC?0:this.utcOffset()*ri),Dc);break;case"minute":t=this._d.valueOf(),t-=ni(t,ri);break;case"second":t=this._d.valueOf(),t-=ni(t,Ic);break}return this._d.setTime(t),q.updateOffset(this,!0),this}function fO(e){var t,r;if(e=yn(e),e===void 0||e==="millisecond"||!this.isValid())return this;switch(r=this._isUTC?v1:g1,e){case"year":t=r(this.year()+1,0,1)-1;break;case"quarter":t=r(this.year(),this.month()-this.month()%3+3,1)-1;break;case"month":t=r(this.year(),this.month()+1,1)-1;break;case"week":t=r(this.year(),this.month(),this.date()-this.weekday()+7)-1;break;case"isoWeek":t=r(this.year(),this.month(),this.date()-(this.isoWeekday()-1)+7)-1;break;case"day":case"date":t=r(this.year(),this.month(),this.date()+1)-1;break;case"hour":t=this._d.valueOf(),t+=Dc-ni(t+(this._isUTC?0:this.utcOffset()*ri),Dc)-1;break;case"minute":t=this._d.valueOf(),t+=ri-ni(t,ri)-1;break;case"second":t=this._d.valueOf(),t+=Ic-ni(t,Ic)-1;break}return this._d.setTime(t),q.updateOffset(this,!0),this}function hO(){return this._d.valueOf()-(this._offset||0)*6e4}function pO(){return Math.floor(this.valueOf()/1e3)}function mO(){return new Date(this.valueOf())}function gO(){var e=this;return[e.year(),e.month(),e.date(),e.hour(),e.minute(),e.second(),e.millisecond()]}function vO(){var e=this;return{years:e.year(),months:e.month(),date:e.date(),hours:e.hours(),minutes:e.minutes(),seconds:e.seconds(),milliseconds:e.milliseconds()}}function yO(){return this.isValid()?this.toISOString():null}function bO(){return Dh(this)}function xO(){return Bo({},Ze(this))}function CO(){return Ze(this).overflow}function SO(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}}Fe("N",0,0,"eraAbbr");Fe("NN",0,0,"eraAbbr");Fe("NNN",0,0,"eraAbbr");Fe("NNNN",0,0,"eraName");Fe("NNNNN",0,0,"eraNarrow");Fe("y",["y",1],"yo","eraYear");Fe("y",["yy",2],0,"eraYear");Fe("y",["yyy",3],0,"eraYear");Fe("y",["yyyy",4],0,"eraYear");Pe("N",Jh);Pe("NN",Jh);Pe("NNN",Jh);Pe("NNNN",$O);Pe("NNNNN",jO);zt(["N","NN","NNN","NNNN","NNNNN"],function(e,t,r,n){var o=r._locale.erasParse(e,n,r._strict);o?Ze(r).era=o:Ze(r).invalidEra=e});Pe("y",Ki);Pe("yy",Ki);Pe("yyy",Ki);Pe("yyyy",Ki);Pe("yo",AO);zt(["y","yy","yyy","yyyy"],Ir);zt(["yo"],function(e,t,r,n){var o;r._locale._eraYearOrdinalRegex&&(o=e.match(r._locale._eraYearOrdinalRegex)),r._locale.eraYearOrdinalParse?t[Ir]=r._locale.eraYearOrdinalParse(e,o):t[Ir]=parseInt(e,10)});function wO(e,t){var r,n,o,a=this._eras||wo("en")._eras;for(r=0,n=a.length;r<n;++r){switch(typeof a[r].since){case"string":o=q(a[r].since).startOf("day"),a[r].since=o.valueOf();break}switch(typeof a[r].until){case"undefined":a[r].until=1/0;break;case"string":o=q(a[r].until).startOf("day").valueOf(),a[r].until=o.valueOf();break}}return a}function kO(e,t,r){var n,o,a=this.eras(),i,s,l;for(e=e.toUpperCase(),n=0,o=a.length;n<o;++n)if(i=a[n].name.toUpperCase(),s=a[n].abbr.toUpperCase(),l=a[n].narrow.toUpperCase(),r)switch(t){case"N":case"NN":case"NNN":if(s===e)return a[n];break;case"NNNN":if(i===e)return a[n];break;case"NNNNN":if(l===e)return a[n];break}else if([i,s,l].indexOf(e)>=0)return a[n]}function _O(e,t){var r=e.since<=e.until?1:-1;return t===void 0?q(e.since).year():q(e.since).year()+(t-e.offset)*r}function EO(){var e,t,r,n=this.localeData().eras();for(e=0,t=n.length;e<t;++e)if(r=this.clone().startOf("day").valueOf(),n[e].since<=r&&r<=n[e].until||n[e].until<=r&&r<=n[e].since)return n[e].name;return""}function PO(){var e,t,r,n=this.localeData().eras();for(e=0,t=n.length;e<t;++e)if(r=this.clone().startOf("day").valueOf(),n[e].since<=r&&r<=n[e].until||n[e].until<=r&&r<=n[e].since)return n[e].narrow;return""}function RO(){var e,t,r,n=this.localeData().eras();for(e=0,t=n.length;e<t;++e)if(r=this.clone().startOf("day").valueOf(),n[e].since<=r&&r<=n[e].until||n[e].until<=r&&r<=n[e].since)return n[e].abbr;return""}function TO(){var e,t,r,n,o=this.localeData().eras();for(e=0,t=o.length;e<t;++e)if(r=o[e].since<=o[e].until?1:-1,n=this.clone().startOf("day").valueOf(),o[e].since<=n&&n<=o[e].until||o[e].until<=n&&n<=o[e].since)return(this.year()-q(o[e].since).year())*r+o[e].offset;return this.year()}function IO(e){return Ct(this,"_erasNameRegex")||qh.call(this),e?this._erasNameRegex:this._erasRegex}function DO(e){return Ct(this,"_erasAbbrRegex")||qh.call(this),e?this._erasAbbrRegex:this._erasRegex}function OO(e){return Ct(this,"_erasNarrowRegex")||qh.call(this),e?this._erasNarrowRegex:this._erasRegex}function Jh(e,t){return t.erasAbbrRegex(e)}function $O(e,t){return t.erasNameRegex(e)}function jO(e,t){return t.erasNarrowRegex(e)}function AO(e,t){return t._eraYearOrdinalRegex||Ki}function qh(){var e=[],t=[],r=[],n=[],o,a,i,s,l,u=this.eras();for(o=0,a=u.length;o<a;++o)i=po(u[o].name),s=po(u[o].abbr),l=po(u[o].narrow),t.push(i),e.push(s),r.push(l),n.push(i),n.push(s),n.push(l);this._erasRegex=new RegExp("^("+n.join("|")+")","i"),this._erasNameRegex=new RegExp("^("+t.join("|")+")","i"),this._erasAbbrRegex=new RegExp("^("+e.join("|")+")","i"),this._erasNarrowRegex=new RegExp("^("+r.join("|")+")","i")}Fe(0,["gg",2],0,function(){return this.weekYear()%100});Fe(0,["GG",2],0,function(){return this.isoWeekYear()%100});function Hu(e,t){Fe(0,[e,e.length],0,t)}Hu("gggg","weekYear");Hu("ggggg","weekYear");Hu("GGGG","isoWeekYear");Hu("GGGGG","isoWeekYear");Pe("G",Lu);Pe("g",Lu);Pe("GG",Jt,en);Pe("gg",Jt,en);Pe("GGGG",Mh,Lh);Pe("gggg",Mh,Lh);Pe("GGGGG",Au,$u);Pe("ggggg",Au,$u);bl(["gggg","ggggg","GGGG","GGGGG"],function(e,t,r,n){t[n.substr(0,2)]=lt(e)});bl(["gg","GG"],function(e,t,r,n){t[n]=q.parseTwoDigitYear(e)});function LO(e){return y1.call(this,e,this.week(),this.weekday()+this.localeData()._week.dow,this.localeData()._week.dow,this.localeData()._week.doy)}function MO(e){return y1.call(this,e,this.isoWeek(),this.isoWeekday(),1,4)}function zO(){return mo(this.year(),1,4)}function NO(){return mo(this.isoWeekYear(),1,4)}function FO(){var e=this.localeData()._week;return mo(this.year(),e.dow,e.doy)}function HO(){var e=this.localeData()._week;return mo(this.weekYear(),e.dow,e.doy)}function y1(e,t,r,n,o){var a;return e==null?Vs(this,n,o).year:(a=mo(e,n,o),t>a&&(t=a),BO.call(this,e,t,r,n,o))}function BO(e,t,r,n,o){var a=Xy(e,t,r,n,o),i=Us(a.year,0,a.dayOfYear);return this.year(i.getUTCFullYear()),this.month(i.getUTCMonth()),this.date(i.getUTCDate()),this}Fe("Q",0,"Qo","quarter");Pe("Q",Fy);zt("Q",function(e,t){t[co]=(lt(e)-1)*3});function WO(e){return e==null?Math.ceil((this.month()+1)/3):this.month((e-1)*3+this.month()%3)}Fe("D",["DD",2],"Do","date");Pe("D",Jt,Ji);Pe("DD",Jt,en);Pe("Do",function(e,t){return e?t._dayOfMonthOrdinalParse||t._ordinalParse:t._dayOfMonthOrdinalParseLenient});zt(["D","DD"],Fn);zt("Do",function(e,t){t[Fn]=lt(e.match(Jt)[0])});var b1=qi("Date",!0);Fe("DDD",["DDDD",3],"DDDo","dayOfYear");Pe("DDD",ju);Pe("DDDD",Hy);zt(["DDD","DDDD"],function(e,t,r){r._dayOfYear=lt(e)});function UO(e){var t=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return e==null?t:this.add(e-t,"d")}Fe("m",["mm",2],0,"minute");Pe("m",Jt,zh);Pe("mm",Jt,en);zt(["m","mm"],En);var VO=qi("Minutes",!1);Fe("s",["ss",2],0,"second");Pe("s",Jt,zh);Pe("ss",Jt,en);zt(["s","ss"],uo);var YO=qi("Seconds",!1);Fe("S",0,0,function(){return~~(this.millisecond()/100)});Fe(0,["SS",2],0,function(){return~~(this.millisecond()/10)});Fe(0,["SSS",3],0,"millisecond");Fe(0,["SSSS",4],0,function(){return this.millisecond()*10});Fe(0,["SSSSS",5],0,function(){return this.millisecond()*100});Fe(0,["SSSSSS",6],0,function(){return this.millisecond()*1e3});Fe(0,["SSSSSSS",7],0,function(){return this.millisecond()*1e4});Fe(0,["SSSSSSSS",8],0,function(){return this.millisecond()*1e5});Fe(0,["SSSSSSSSS",9],0,function(){return this.millisecond()*1e6});Pe("S",ju,Fy);Pe("SS",ju,en);Pe("SSS",ju,Hy);var Wo,x1;for(Wo="SSSS";Wo.length<=9;Wo+="S")Pe(Wo,Ki);function GO(e,t){t[ua]=lt(("0."+e)*1e3)}for(Wo="S";Wo.length<=9;Wo+="S")zt(Wo,GO);x1=qi("Milliseconds",!1);Fe("z",0,0,"zoneAbbr");Fe("zz",0,0,"zoneName");function KO(){return this._isUTC?"UTC":""}function JO(){return this._isUTC?"Coordinated Universal Time":""}var se=vl.prototype;se.add=HD;se.calendar=KD;se.clone=JD;se.diff=rO;se.endOf=fO;se.format=iO;se.from=sO;se.fromNow=lO;se.to=cO;se.toNow=uO;se.get=aI;se.invalidAt=CO;se.isAfter=qD;se.isBefore=XD;se.isBetween=QD;se.isSame=ZD;se.isSameOrAfter=eO;se.isSameOrBefore=tO;se.isValid=bO;se.lang=h1;se.locale=f1;se.localeData=p1;se.max=bD;se.min=yD;se.parsingFlags=xO;se.set=iI;se.startOf=dO;se.subtract=BD;se.toArray=gO;se.toObject=vO;se.toDate=mO;se.toISOString=oO;se.inspect=aO;typeof Symbol<"u"&&Symbol.for!=null&&(se[Symbol.for("nodejs.util.inspect.custom")]=function(){return"Moment<"+this.format()+">"});se.toJSON=yO;se.toString=nO;se.unix=pO;se.valueOf=hO;se.creationData=SO;se.eraName=EO;se.eraNarrow=PO;se.eraAbbr=RO;se.eraYear=TO;se.year=Uy;se.isLeapYear=oI;se.weekYear=LO;se.isoWeekYear=MO;se.quarter=se.quarters=WO;se.month=Jy;se.daysInMonth=mI;se.week=se.weeks=wI;se.isoWeek=se.isoWeeks=kI;se.weeksInYear=FO;se.weeksInWeekYear=HO;se.isoWeeksInYear=zO;se.isoWeeksInISOWeekYear=NO;se.date=b1;se.day=se.days=MI;se.weekday=zI;se.isoWeekday=NI;se.dayOfYear=UO;se.hour=se.hours=YI;se.minute=se.minutes=VO;se.second=se.seconds=YO;se.millisecond=se.milliseconds=x1;se.utcOffset=RD;se.utc=ID;se.local=DD;se.parseZone=OD;se.hasAlignedHourOffset=$D;se.isDST=jD;se.isLocal=LD;se.isUtcOffset=MD;se.isUtc=l1;se.isUTC=l1;se.zoneAbbr=KO;se.zoneName=JO;se.dates=vn("dates accessor is deprecated. Use date instead.",b1);se.months=vn("months accessor is deprecated. Use month instead",Jy);se.years=vn("years accessor is deprecated. Use year instead",Uy);se.zone=vn("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",TD);se.isDSTShifted=vn("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",AD);function qO(e){return Kt(e*1e3)}function XO(){return Kt.apply(null,arguments).parseZone()}function C1(e){return e}var St=$h.prototype;St.calendar=LT;St.longDateFormat=FT;St.invalidDate=BT;St.ordinal=VT;St.preparse=C1;St.postformat=C1;St.relativeTime=GT;St.pastFuture=KT;St.set=jT;St.eras=wO;St.erasParse=kO;St.erasConvertYear=_O;St.erasAbbrRegex=DO;St.erasNameRegex=IO;St.erasNarrowRegex=OO;St.months=dI;St.monthsShort=fI;St.monthsParse=pI;St.monthsRegex=vI;St.monthsShortRegex=gI;St.week=bI;St.firstDayOfYear=SI;St.firstDayOfWeek=CI;St.weekdays=OI;St.weekdaysMin=jI;St.weekdaysShort=$I;St.weekdaysParse=LI;St.weekdaysRegex=FI;St.weekdaysShortRegex=HI;St.weekdaysMinRegex=BI;St.isPM=UI;St.meridiem=GI;function Oc(e,t,r,n){var o=wo(),a=Xn().set(n,t);return o[r](a,e)}function S1(e,t,r){if(Co(e)&&(t=e,e=void 0),e=e||"",t!=null)return Oc(e,t,r,"month");var n,o=[];for(n=0;n<12;n++)o[n]=Oc(e,n,r,"month");return o}function Xh(e,t,r,n){typeof e=="boolean"?(Co(t)&&(r=t,t=void 0),t=t||""):(t=e,r=t,e=!1,Co(t)&&(r=t,t=void 0),t=t||"");var o=wo(),a=e?o._week.dow:0,i,s=[];if(r!=null)return Oc(t,(r+a)%7,n,"day");for(i=0;i<7;i++)s[i]=Oc(t,(i+a)%7,n,"day");return s}function QO(e,t){return S1(e,t,"months")}function ZO(e,t){return S1(e,t,"monthsShort")}function e$(e,t,r){return Xh(e,t,r,"weekdays")}function t$(e,t,r){return Xh(e,t,r,"weekdaysShort")}function r$(e,t,r){return Xh(e,t,r,"weekdaysMin")}Yo("en",{eras:[{since:"0001-01-01",until:1/0,offset:1,name:"Anno Domini",narrow:"AD",abbr:"AD"},{since:"0000-12-31",until:-1/0,offset:1,name:"Before Christ",narrow:"BC",abbr:"BC"}],dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(e){var t=e%10,r=lt(e%100/10)===1?"th":t===1?"st":t===2?"nd":t===3?"rd":"th";return e+r}});q.lang=vn("moment.lang is deprecated. Use moment.locale instead.",Yo);q.langData=vn("moment.langData is deprecated. Use moment.localeData instead.",wo);var to=Math.abs;function n$(){var e=this._data;return this._milliseconds=to(this._milliseconds),this._days=to(this._days),this._months=to(this._months),e.milliseconds=to(e.milliseconds),e.seconds=to(e.seconds),e.minutes=to(e.minutes),e.hours=to(e.hours),e.months=to(e.months),e.years=to(e.years),this}function w1(e,t,r,n){var o=In(t,r);return e._milliseconds+=n*o._milliseconds,e._days+=n*o._days,e._months+=n*o._months,e._bubble()}function o$(e,t){return w1(this,e,t,1)}function a$(e,t){return w1(this,e,t,-1)}function hg(e){return e<0?Math.floor(e):Math.ceil(e)}function i$(){var e=this._milliseconds,t=this._days,r=this._months,n=this._data,o,a,i,s,l;return e>=0&&t>=0&&r>=0||e<=0&&t<=0&&r<=0||(e+=hg(gf(r)+t)*864e5,t=0,r=0),n.milliseconds=e%1e3,o=an(e/1e3),n.seconds=o%60,a=an(o/60),n.minutes=a%60,i=an(a/60),n.hours=i%24,t+=an(i/24),l=an(k1(t)),r+=l,t-=hg(gf(l)),s=an(r/12),r%=12,n.days=t,n.months=r,n.years=s,this}function k1(e){return e*4800/146097}function gf(e){return e*146097/4800}function s$(e){if(!this.isValid())return NaN;var t,r,n=this._milliseconds;if(e=yn(e),e==="month"||e==="quarter"||e==="year")switch(t=this._days+n/864e5,r=this._months+k1(t),e){case"month":return r;case"quarter":return r/3;case"year":return r/12}else switch(t=this._days+Math.round(gf(this._months)),e){case"week":return t/7+n/6048e5;case"day":return t+n/864e5;case"hour":return t*24+n/36e5;case"minute":return t*1440+n/6e4;case"second":return t*86400+n/1e3;case"millisecond":return Math.floor(t*864e5)+n;default:throw new Error("Unknown unit "+e)}}function ko(e){return function(){return this.as(e)}}var _1=ko("ms"),l$=ko("s"),c$=ko("m"),u$=ko("h"),d$=ko("d"),f$=ko("w"),h$=ko("M"),p$=ko("Q"),m$=ko("y"),g$=_1;function v$(){return In(this)}function y$(e){return e=yn(e),this.isValid()?this[e+"s"]():NaN}function La(e){return function(){return this.isValid()?this._data[e]:NaN}}var b$=La("milliseconds"),x$=La("seconds"),C$=La("minutes"),S$=La("hours"),w$=La("days"),k$=La("months"),_$=La("years");function E$(){return an(this.days()/7)}var no=Math.round,qa={ss:44,s:45,m:45,h:22,d:26,w:null,M:11};function P$(e,t,r,n,o){return o.relativeTime(t||1,!!r,e,n)}function R$(e,t,r,n){var o=In(e).abs(),a=no(o.as("s")),i=no(o.as("m")),s=no(o.as("h")),l=no(o.as("d")),u=no(o.as("M")),d=no(o.as("w")),f=no(o.as("y")),h=a<=r.ss&&["s",a]||a<r.s&&["ss",a]||i<=1&&["m"]||i<r.m&&["mm",i]||s<=1&&["h"]||s<r.h&&["hh",s]||l<=1&&["d"]||l<r.d&&["dd",l];return r.w!=null&&(h=h||d<=1&&["w"]||d<r.w&&["ww",d]),h=h||u<=1&&["M"]||u<r.M&&["MM",u]||f<=1&&["y"]||["yy",f],h[2]=t,h[3]=+e>0,h[4]=n,P$.apply(null,h)}function T$(e){return e===void 0?no:typeof e=="function"?(no=e,!0):!1}function I$(e,t){return qa[e]===void 0?!1:t===void 0?qa[e]:(qa[e]=t,e==="s"&&(qa.ss=t-1),!0)}function D$(e,t){if(!this.isValid())return this.localeData().invalidDate();var r=!1,n=qa,o,a;return typeof e=="object"&&(t=e,e=!1),typeof e=="boolean"&&(r=e),typeof t=="object"&&(n=Object.assign({},qa,t),t.s!=null&&t.ss==null&&(n.ss=t.s-1)),o=this.localeData(),a=R$(this,!r,n,o),r&&(a=o.pastFuture(+this,a)),o.postformat(a)}var gd=Math.abs;function Ha(e){return(e>0)-(e<0)||+e}function Bu(){if(!this.isValid())return this.localeData().invalidDate();var e=gd(this._milliseconds)/1e3,t=gd(this._days),r=gd(this._months),n,o,a,i,s=this.asSeconds(),l,u,d,f;return s?(n=an(e/60),o=an(n/60),e%=60,n%=60,a=an(r/12),r%=12,i=e?e.toFixed(3).replace(/\.?0+$/,""):"",l=s<0?"-":"",u=Ha(this._months)!==Ha(s)?"-":"",d=Ha(this._days)!==Ha(s)?"-":"",f=Ha(this._milliseconds)!==Ha(s)?"-":"",l+"P"+(a?u+a+"Y":"")+(r?u+r+"M":"")+(t?d+t+"D":"")+(o||n||e?"T":"")+(o?f+o+"H":"")+(n?f+n+"M":"")+(e?f+i+"S":"")):"P0D"}var vt=Fu.prototype;vt.isValid=kD;vt.abs=n$;vt.add=o$;vt.subtract=a$;vt.as=s$;vt.asMilliseconds=_1;vt.asSeconds=l$;vt.asMinutes=c$;vt.asHours=u$;vt.asDays=d$;vt.asWeeks=f$;vt.asMonths=h$;vt.asQuarters=p$;vt.asYears=m$;vt.valueOf=g$;vt._bubble=i$;vt.clone=v$;vt.get=y$;vt.milliseconds=b$;vt.seconds=x$;vt.minutes=C$;vt.hours=S$;vt.days=w$;vt.weeks=E$;vt.months=k$;vt.years=_$;vt.humanize=D$;vt.toISOString=Bu;vt.toString=Bu;vt.toJSON=Bu;vt.locale=f1;vt.localeData=p1;vt.toIsoString=vn("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",Bu);vt.lang=h1;Fe("X",0,0,"unix");Fe("x",0,0,"valueOf");Pe("x",Lu);Pe("X",QT);
109zt("X",function(e,t,r){r._d=new Date(parseFloat(e)*1e3)});zt("x",function(e,t,r){r._d=new Date(lt(e))});//! moment.js 110q.version="2.30.1";OT(Kt);q.fn=se;q.min=xD;q.max=CD;q.now=SD;q.utc=Xn;q.unix=qO;q.months=QO;q.isDate=gl;q.locale=Yo;q.invalid=Ou;q.duration=In;q.isMoment=Tn;q.weekdays=e$;q.parseZone=XO;q.localeData=wo;q.isDuration=oc;q.monthsShort=ZO;q.weekdaysMin=r$;q.defineLocale=Wh;q.updateLocale=XI;q.locales=QI;q.weekdaysShort=t$;q.normalizeUnits=yn;q.relativeTimeRounding=T$;q.relativeTimeThreshold=I$;q.calendarFormat=GD;q.prototype=se;q.HTML5_FMT={DATETIME_LOCAL:"YYYY-MM-DDTHH:mm",DATETIME_LOCAL_SECONDS:"YYYY-MM-DDTHH:mm:ss",DATETIME_LOCAL_MS:"YYYY-MM-DDTHH:mm:ss.SSS",DATE:"YYYY-MM-DD",TIME:"HH:mm",TIME_SECONDS:"HH:mm:ss",TIME_MS:"HH:mm:ss.SSS",WEEK:"GGGG-[W]WW",MONTH:"YYYY-MM"};const $l=(e,t)=>{const[r,n]=p.useState(()=>{const o=window.localStorage.getItem(t);return o!==null?JSON.parse(o):e});return p.useEffect(()=>{window.localStorage.setItem(t,JSON.stringify(r))},[t,r]),[r,n]},E1=p.createContext(),Dr={MDY:"MM/DD/YYYY",DMY:"DD/MM/YYYY",YMD:"YYYY-MM-DD",LONG:"MMMM D, YYYY",SHORT:"MMM D, YYYY"},Or={HOUR_12:"h:mm A",HOUR_24:"HH:mm"},pg=["ar","he","fa","ur"],mg={en:{dateFormat:Dr.MDY,timeFormat:Or.HOUR_12,firstDayOfWeek:0},ar:{dateFormat:Dr.DMY,timeFormat:Or.HOUR_12,firstDayOfWeek:6},cs:{dateFormat:Dr.DMY,timeFormat:Or.HOUR_24,firstDayOfWeek:1},de:{dateFormat:Dr.DMY,timeFormat:Or.HOUR_24,firstDayOfWeek:1},es:{dateFormat:Dr.DMY,timeFormat:Or.HOUR_24,firstDayOfWeek:1},fr:{dateFormat:Dr.DMY,timeFormat:Or.HOUR_24,firstDayOfWeek:1},he:{dateFormat:Dr.DMY,timeFormat:Or.HOUR_24,firstDayOfWeek:0},it:{dateFormat:Dr.DMY,timeFormat:Or.HOUR_24,firstDayOfWeek:1},nl:{dateFormat:Dr.DMY,timeFormat:Or.HOUR_24,firstDayOfWeek:1},ja:{dateFormat:Dr.YMD,timeFormat:Or.HOUR_24,firstDayOfWeek:0},pl:{dateFormat:Dr.DMY,timeFormat:Or.HOUR_24,firstDayOfWeek:1},pt:{dateFormat:Dr.DMY,timeFormat:Or.HOUR_24,firstDayOfWeek:0},ru:{dateFormat:Dr.DMY,timeFormat:Or.HOUR_24,firstDayOfWeek:1},"zh-CN":{dateFormat:Dr.YMD,timeFormat:Or.HOUR_24,firstDayOfWeek:1}},O$=[{code:"ar",name:"Arabic",nativeName:"Ø§ÙØ¹Ø±Ø¨ÙØ©"},{code:"cs",name:"Czech",nativeName:"ÄeÅ¡tina"},{code:"de",name:"German",nativeName:"Deutsch"},{code:"en",name:"English",nativeName:"English"},{code:"es",name:"Spanish",nativeName:"Español"},{code:"es-ES",name:"Spanish (Spain)",nativeName:"Español (España)"},{code:"fr",name:"French",nativeName:"Français"},{code:"he",name:"Hebrew",nativeName:"×¢×ר×ת"},{code:"it",name:"Italian",nativeName:"Italiano"},{code:"nl",name:"Dutch",nativeName:"Nederlands"},{code:"ja",name:"Japanese",nativeName:"æ¥æ¬èª"},{code:"pl",name:"Polish",nativeName:"Polski"},{code:"pt",name:"Portuguese (Brazil)",nativeName:"Português (Brasil)"},{code:"ru",name:"Russian",nativeName:"Ð ÑÑÑкий"},{code:"zh-CN",name:"Chinese (Simplified)",nativeName:"ç®ä½ä¸æ"}],k7=({children:e})=>{const{i18n:t}=Jn(),[r,n]=$l(Dr.MDY,"dateFormat"),[o,a]=$l(Or.HOUR_12,"timeFormat"),[i,s]=$l(0,"firstDayOfWeek"),[l,u]=$l("en","language"),d=y=>{u(y);const _=mg[y]||mg[y.split("-")[0]];_&&(n(_.dateFormat),a(_.timeFormat),s(_.firstDayOfWeek))};p.useEffect(()=>{t.changeLanguage(l),q.locale(l)},[l,t]),p.useEffect(()=>{const y=pg.some(_=>l===_||l.startsWith(`${_}-`));document.documentElement.dir=y?"rtl":"ltr",document.documentElement.lang=l},[l]);const f=(y,_=r)=>y?q(y).format(_):"",h=(y,_)=>{if(!y)return"";const R=_||`${r} ${o}`;return q(y).format(R)},g=(y,_=o)=>y?q(y).format(_):"",m=y=>y?q(y).fromNow():"",v=y=>y?q(y).calendar(null,{sameDay:`[Today] ${o}`,nextDay:`[Tomorrow] ${o}`,nextWeek:`dddd ${o}`,lastDay:`[Yesterday] ${o}`,lastWeek:`[Last] dddd ${o}`,sameElse:`${r} ${o}`}):"",x=pg.some(y=>l===y||l.startsWith(`${y}-`)),S={dateFormat:r,setDateFormat:n,timeFormat:o,setTimeFormat:a,firstDayOfWeek:i,setFirstDayOfWeek:s,language:l,setLanguage:d,isRTL:x,fmt:{date:f,dateTime:h,time:g,relative:m,calendar:v},availableLanguages:O$};return c.jsx(E1.Provider,{value:S,children:e})},Wu=()=>{const e=p.useContext(E1);if(!e)throw new Error("useLocalization must be used within LocalizationProvider");return e};
vendor: 9,441 bytes, lines 110-128
110var Gt="-ms-",Es="-moz-",_t="-webkit-",vf="comm",Gs="rule",Qh="decl",$$="@media",j$="@import",A$="@supports",P1="@keyframes",L$=Math.abs,Ps=String.fromCharCode,yf=Object.assign;function M$(e,t){return ur(e,0)^45?(((t<<2^ur(e,0))<<2^ur(e,1))<<2^ur(e,2))<<2^ur(e,3):0}function R1(e){return e.trim()}function oo(e,t){return(e=t.exec(e))?e[0]:e}function nt(e,t,r){return e.replace(t,r)}function vd(e,t){return e.indexOf(t)}function ur(e,t){return e.charCodeAt(t)|0}function Ia(e,t,r){return e.slice(t,r)}function jn(e){return e.length}function z$(e){return e.length}function ys(e,t){return t.push(e),e}function N$(e,t){return e.map(t).join("")}function gg(e,t){return e.filter(function(r){return!oo(r,t)})}var Uu=1,Ti=1,T1=0,hn=0,lr=0,Xi="";function Vu(e,t,r,n,o,a,i,s){return{value:e,root:t,parent:r,type:n,props:o,children:a,line:Uu,column:Ti,length:i,return:"",siblings:s}}function To(e,t){return yf(Vu("",null,null,"",null,null,0,e.siblings),e,{length:-e.length},t)}function Ba(e){for(;e.root;)e=To(e.root,{children:[e]});ys(e,e.siblings)}function F$(){return lr}function H$(){return lr=hn>0?ur(Xi,--hn):0,Ti--,lr===10&&(Ti=1,Uu--),lr}function Pn(){return lr=hn<T1?ur(Xi,hn++):0,Ti++,lr===10&&(Ti=1,Uu++),lr}function Uo(){return ur(Xi,hn)}function ic(){return hn}function Yu(e,t){return Ia(Xi,e,t)}function Ks(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 B$(e){return Uu=Ti=1,T1=jn(Xi=e),hn=0,[]}function W$(e){return Xi="",e}function yd(e){return R1(Yu(hn-1,bf(e===91?e+2:e===40?e+1:e)))}function U$(e){for(;(lr=Uo())&&lr<33;)Pn();return Ks(e)>2||Ks(lr)>3?"":" "}function V$(e,t){for(;--t&&Pn()&&!(lr<48||lr>102||lr>57&&lr<65||lr>70&&lr<97););return Yu(e,ic()+(t<6&&Uo()==32&&Pn()==32))}function bf(e){for(;Pn();)switch(lr){case e:return hn;case 34:case 39:e!==34&&e!==39&&bf(lr);break;case 40:e===41&&bf(e);break;case 92:Pn();break}return hn}function Y$(e,t){for(;Pn()&&e+lr!==57;)if(e+lr===84&&Uo()===47)break;return"/*"+Yu(t,hn-1)+"*"+Ps(e===47?e:Pn())}function G$(e){for(;!Ks(Uo());)Pn();return Yu(e,hn)}function K$(e){return W$(sc("",null,null,null,[""],e=B$(e),0,[0],e))}function sc(e,t,r,n,o,a,i,s,l){for(var u=0,d=0,f=i,h=0,g=0,m=0,v=1,x=1,w=1,S=0,y=0,_="",R=o,O=a,b=n,P=_;x;)switch(m=y,y=Pn()){case 40:m!=108&&ur(P,f-1)==58?(S++,P+="("):P+=yd(y);break;case 41:S--,P+=")";break;case 34:case 39:case 91:P+=yd(y);break;case 9:case 10:case 13:case 32:if(S>0){P+=Ps(y);break}P+=U$(m);break;case 92:P+=V$(ic()-1,7);continue;case 47:switch(Uo()){case 42:case 47:ys(J$(Y$(Pn(),ic()),t,r,l),l),(Ks(m||1)==5||Ks(Uo()||1)==5)&&jn(P)&&Ia(P,-1,void 0)!==" "&&(P+=" ");break;default:P+="/"}break;case 123*v:s[u++]=jn(P)*w;case 125*v:case 59:case 0:if(S>0&&y){P+=Ps(y);break}switch(y){case 0:case 125:x=0;case 59+d:w==-1&&(P=nt(P,/\f/g,"")),g>0&&(jn(P)-f||v===0)&&ys(g>32?yg(P+";",n,r,f-1,l):yg(nt(P," ","")+";",n,r,f-2,l),l);break;case 59:P+=";";default:if(ys(b=vg(P,t,r,u,d,o,s,_,R=[],O=[],f,a),a),y===123)if(d===0)sc(P,t,b,b,R,a,f,s,O);else{switch(h){case 99:if(ur(P,3)===110)break;case 108:if(ur(P,2)===97)break;default:d=0;case 100:case 109:case 115:}d?sc(e,b,b,n&&ys(vg(e,b,b,0,0,o,s,_,o,R=[],f,O),O),o,O,f,s,n?R:O):sc(P,b,b,b,[""],O,0,s,O)}}u=d=g=0,v=w=1,_=P="",f=i;break;case 58:f=1+jn(P),g=m;default:if(v<1){if(y==123)--v;else if(y==125&&v++==0&&H$()==125)continue}switch(P+=Ps(y),y*v){case 38:w=d>0?1:(P+="\f",-1);break;case 44:if(S>0)break;s[u++]=(jn(P)-1)*w,w=1;break;case 64:Uo()===45&&(P+=yd(Pn())),h=Uo(),d=f=jn(_=P+=G$(ic())),y++;break;case 45:m===45&&jn(P)==2&&(v=0)}}return a}function vg(e,t,r,n,o,a,i,s,l,u,d,f){for(var h=o-1,g=o===0?a:[""],m=z$(g),v=0,x=0,w=0;v<n;++v)for(var S=0,y=Ia(e,h+1,h=L$(x=i[v])),_=e;S<m;++S)(_=R1(x>0?g[S]+" "+y:nt(y,/&\f/g,g[S])))&&(l[w++]=_);return Vu(e,t,r,o===0?Gs:s,l,u,d,f)}function J$(e,t,r,n){return Vu(e,t,r,vf,Ps(F$()),Ia(e,2,-2),0,n)}function yg(e,t,r,n,o){return Vu(e,t,r,Qh,Ia(e,0,n),Ia(e,n+1,-1),n,o)}function I1(e,t,r){switch(M$(e,t)){case 5103:return _t+"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 4215:case 6389:case 5109:case 5365:case 5621:case 3829:case 6391:case 5879:case 5623:case 6135:case 4599:return _t+e+e;case 4855:return _t+e.replace("add","source-over").replace("substract","source-out").replace("intersect","source-in").replace("exclude","xor")+e;case 4789:return Es+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return _t+e+Es+e+Gt+e+e;case 5936:switch(ur(e,t+11)){case 114:return _t+e+Gt+nt(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return _t+e+Gt+nt(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return _t+e+Gt+nt(e,/[svh]\w+-[tblr]{2}/,"lr")+e}case 6828:case 4268:case 2903:return _t+e+Gt+e+e;case 6165:return _t+e+Gt+"flex-"+e+e;case 5187:return _t+e+nt(e,/(\w+).+(:[^]+)/,_t+"box-$1$2"+Gt+"flex-$1$2")+e;case 5443:return _t+e+Gt+"flex-item-"+nt(e,/flex-|-self/g,"")+(oo(e,/flex-|baseline/)?"":Gt+"grid-row-"+nt(e,/flex-|-self/g,""))+e;case 4675:return _t+e+Gt+"flex-line-pack"+nt(e,/align-content|flex-|-self/g,"")+e;case 5548:return _t+e+Gt+nt(e,"shrink","negative")+e;case 5292:return _t+e+Gt+nt(e,"basis","preferred-size")+e;case 6060:return _t+"box-"+nt(e,"-grow","")+_t+e+Gt+nt(e,"grow","positive")+e;case 4554:return _t+nt(e,/([^-])(transform)/g,"$1"+_t+"$2")+e;case 6187:return nt(nt(nt(e,/(zoom-|grab)/,_t+"$1"),/(image-set)/,_t+"$1"),e,"")+e;case 5495:case 3959:return nt(e,/(image-set\([^]*)/,_t+"$1$`$1");case 4968:return nt(nt(e,/(.+:)(flex-)?(.*)/,_t+"box-pack:$3"+Gt+"flex-pack:$3"),/space-between/,"justify")+_t+e+e;case 4200:if(!oo(e,/flex-|baseline/))return Gt+"grid-column-align"+Ia(e,t)+e;break;case 2592:case 3360:return Gt+nt(e,"template-","")+e;case 4384:case 3616:return r&&r.some(function(n,o){return t=o,oo(n.props,/grid-\w+-end/)})?~vd(e+(r=r[t].value),"span")?e:Gt+nt(e,"-start","")+e+Gt+"grid-row-span:"+(~vd(r,"span")?oo(r,/\d+/):+oo(r,/\d+/)-+oo(e,/\d+/))+";":Gt+nt(e,"-start","")+e;case 4896:case 4128:return r&&r.some(function(n){return oo(n.props,/grid-\w+-start/)})?e:Gt+nt(nt(e,"-end","-span"),"span ","")+e;case 4095:case 3583:case 4068:case 2532:return nt(e,/(.+)-inline(.+)/,_t+"$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(jn(e)-1-t>6)switch(ur(e,t+1)){case 109:if(ur(e,t+4)!==45)break;case 102:return nt(e,/(.+:)(.+)-([^]+)/,"$1"+_t+"$2-$3$1"+Es+(ur(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~vd(e,"stretch")?I1(nt(e,"stretch","fill-available"),t,r)+e:e}break;case 5152:case 5920:return nt(e,/(.+?):(\d+)(\s*\/\s*(span)?\s*(\d+))?(.*)/,function(n,o,a,i,s,l,u){return Gt+o+":"+a+u+(i?Gt+o+"-span:"+(s?l:+l-+a)+u:"")+e});case 4949:if(ur(e,t+6)===121)return nt(e,":",":"+_t)+e;break;case 6444:switch(ur(e,ur(e,14)===45?18:11)){case 120:return nt(e,/(.+:)([^;\s!]+)(;|(\s+)?!.+)?/,"$1"+_t+(ur(e,14)===45?"inline-":"")+"box$3$1"+_t+"$2$3$1"+Gt+"$2box$3")+e;case 100:return nt(e,":",":"+Gt)+e}break;case 5719:case 2647:case 2135:case 3927:case 2391:return nt(e,"scroll-","scroll-snap-")+e}return e}function D1(e,t){for(var r="",n=0;n<e.length;n++)r+=t(e[n],n,e,t)||"";return r}function bg(e,t,r,n){if(e.length>-1&&!e.return)switch(e.type){case Qh:e.return=I1(e.value,e.length,r);return;case P1:return D1([To(e,{value:nt(e.value,"@","@"+_t)})],n);case Gs:if(e.length)return N$(r=e.props,function(o){switch(oo(o,n=/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":Ba(To(e,{props:[nt(o,/:(read-\w+)/,":"+Es+"$1")]})),Ba(To(e,{props:[o]})),yf(e,{props:gg(r,n)});break;case"::placeholder":Ba(To(e,{props:[nt(o,/:(plac\w+)/,":"+_t+"input-$1")]})),Ba(To(e,{props:[nt(o,/:(plac\w+)/,":"+Es+"$1")]})),Ba(To(e,{props:[nt(o,/:(plac\w+)/,Gt+"input-$1")]})),Ba(To(e,{props:[o]})),yf(e,{props:gg(r,n)});break}return""})}}var xf={exports:{}};/*! 111 * CSSJanus. https://www.mediawiki.org/wiki/CSSJanus 112 * 113 * Copyright 2014 Trevor Parscal 114 * Copyright 2010 Roan Kattouw 115 * Copyright 2008 Google Inc. 116 * 117 * Licensed under the Apache License, Version 2.0 (the "License"); 118 * you may not use this file except in compliance with the License. 119 * You may obtain a copy of the License at 120 * 121 * http://www.apache.org/licenses/LICENSE-2.0 122 * 123 * Unless required by applicable law or agreed to in writing, software 124 * distributed under the License is distributed on an "AS IS" BASIS, 125 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 126 * See the License for the specific language governing permissions and 127 * limitations under the License. 128 */(function(e,t){var r;function n(a,i){var s=[],l=0;function u(f){return s.push(f),i}function d(){return s[l++]}return{tokenize:function(f){return f.replace(a,u)},detokenize:function(f){return f.replace(new RegExp("("+i+")","g"),d)}}}function o(){var a="`TMP`",i="`TMPLTR`",s="`TMPRTL`",l="`NOFLIP_SINGLE`",u="`NOFLIP_CLASS`",d="`COMMENT`",f="[^\\u0020-\\u007e]",h="(?:(?:\\\\[0-9a-f]{1,6})(?:\\r\\n|\\s)?)",g="(?:[0-9]*\\.[0-9]+|[0-9]+)",m="(?:em|ex|px|cm|mm|in|pt|pc|deg|rad|grad|ms|s|hz|khz|%)",v="direction\\s*:\\s*",x="[!#$%&*-~]",w=`['"]?\\s*`,S="(^|[^a-zA-Z])",y="[^\\}]*?",_="\\/\\*\\!?\\s*@noflip\\s*\\*\\/",R="\\/\\*[^*]*\\*+([^\\/*][^*]*\\*+)*\\/",O="(?:"+h+"|\\\\[^\\r\\n\\f0-9a-f])",b="(?:[_a-z]|"+f+"|"+O+")",P="(?:[_a-z0-9-]|"+f+"|"+O+")",E="-?"+b+P+"*",T=g+"(?:\\
128s*"+m+"|"+E+")?",I="((?:-?"+T+")|(?:inherit|auto))",k="(?:-?"+g+"(?:\\s*"+m+")?)",D="(?:\\+|\\-|\\*|\\/)",L="(?:\\(|\\)|\\t| )",$="(?:"+L+"|"+k+"|"+D+"){3,}",j="(?:calc\\((?:"+$+")\\))",A="((?:-?"+T+")|(?:inherit|auto)|"+j+")",M="((?:margin|padding|border-width)\\s*:\\s*)",F="((?:-color|border-style)\\s*:\\s*)",V="(#?"+P+"+|(?:rgba?|hsla?)\\([ \\d.,%-]+\\))",K="(?:"+x+"|"+f+"|"+O+")*?",le="(?![a-zA-Z])",xe="(?!("+P+`|\\r?\\n|\\s|#|\\:|\\.|\\,|\\+|>|~|\\(|\\)|\\[|\\]|=|\\*=|~=|\\^=|'[^']*'|"[^"]*"|`+d+")*?{)",de="(?!"+K+w+"\\))",re="(?="+K+w+"\\))",_e="(\\s*(?:!important\\s*)?[;}])",G=/`TMP`/g,U=/`TMPLTR`/g,X=/`TMPRTL`/g,oe=new RegExp(R,"gi"),ge=new RegExp("("+_+xe+"[^;}]+;?)","gi"),te=new RegExp("("+_+y+"})","gi"),Ee=new RegExp("("+v+")ltr","gi"),je=new RegExp("("+v+")rtl","gi"),ve=new RegExp(S+"(left)"+le+de+xe,"gi"),ne=new RegExp(S+"(right)"+le+de+xe,"gi"),We=new RegExp(S+"(left)"+re,"gi"),Re=new RegExp(S+"(right)"+re,"gi"),st=/(:dir\( *)ltr( *\))/g,gt=/(:dir\( *)rtl( *\))/g,jt=new RegExp(S+"(ltr)"+re,"gi"),At=new RegExp(S+"(rtl)"+re,"gi"),qe=new RegExp(S+"([ns]?)e-resize","gi"),J=new RegExp(S+"([ns]?)w-resize","gi"),Ve=new RegExp(M+A+"(\\s+)"+A+"(\\s+)"+A+"(\\s+)"+A+_e,"gi"),Ke=new RegExp(F+V+"(\\s+)"+V+"(\\s+)"+V+"(\\s+)"+V+_e,"gi"),Ye=new RegExp("(background(?:-position)?\\s*:\\s*(?:[^:;}\\s]+\\s+)*?)("+T+")","gi"),ze=new RegExp("(background-position-x\\s*:\\s*)(-?"+g+"%)","gi"),Te=new RegExp("(border-radius\\s*:\\s*)"+I+"(?:(?:\\s+"+I+")(?:\\s+"+I+")?(?:\\s+"+I+")?)?(?:(?:(?:\\s*\\/\\s*)"+I+")(?:\\s+"+I+")?(?:\\s+"+I+")?(?:\\s+"+I+")?)?"+_e,"gi"),rt=new RegExp("(box-shadow\\s*:\\s*(?:inset\\s*)?)"+I,"gi"),Ht=new RegExp("(text-shadow\\s*:\\s*)"+I+"(\\s*)"+V,"gi"),fe=new RegExp("(text-shadow\\s*:\\s*)"+V+"(\\s*)"+I,"gi"),ye=new RegExp("(text-shadow\\s*:\\s*)"+I,"gi"),$e=new RegExp("(transform\\s*:[^;}]*)(translateX\\s*\\(\\s*)"+I+"(\\s*\\))","gi"),Ge=new RegExp("(transform\\s*:[^;}]*)(translate\\s*\\(\\s*)"+I+"((?:\\s*,\\s*"+I+"){0,2}\\s*\\))","gi");function Er(Ae,Ut,dt){var et,Ne;return Ut.split("(").length>Ut.split(")").length?Ae:(dt.slice(-1)==="%"&&(et=dt.indexOf("."),et!==-1?(Ne=dt.length-et-2,dt=100-parseFloat(dt),dt=dt.toFixed(Ne)+"%"):dt=100-parseFloat(dt)+"%"),Ut+dt)}function Pt(Ae){switch(Ae.length){case 4:Ae=[Ae[1],Ae[0],Ae[3],Ae[2]];break;case 3:Ae=[Ae[1],Ae[0],Ae[1],Ae[2]];break;case 2:Ae=[Ae[1],Ae[0]];break;case 1:Ae=[Ae[0]];break}return Ae.join(" ")}function br(Ae,Ut){var dt,et=[].slice.call(arguments),Ne=et.slice(2,6).filter(function(Zn){return Zn}),Vt=et.slice(6,10).filter(function(Zn){return Zn}),_o=et[10]||"";return Vt.length?dt=Pt(Ne)+" / "+Pt(Vt):dt=Pt(Ne),Ut+dt+_o}function Wt(Ae){return parseFloat(Ae)===0?Ae:Ae[0]==="-"?Ae.slice(1):"-"+Ae}function xt(Ae,Ut,dt){return Ut+Wt(dt)}function wt(Ae,Ut,dt,et,Ne){return Ut+dt+Wt(et)+Ne}function Lt(Ae,Ut,dt,et,Ne){return Ut+dt+et+Wt(Ne)}return{transform:function(Ae,Ut){var dt=new n(ge,l),et=new n(te,u),Ne=new n(oe,d);return Ae=Ne.tokenize(et.tokenize(dt.tokenize(Ae.replace("`","%60")))),Ut.transformDirInUrl&&(Ae=Ae.replace(st,"$1"+i+"$2").replace(gt,"$1"+s+"$2").replace(jt,"$1"+a).replace(At,"$1ltr").replace(G,"rtl").replace(U,"ltr").replace(X,"rtl")),Ut.transformEdgeInUrl&&(Ae=Ae.replace(We,"$1"+a).replace(Re,"$1left").replace(G,"right")),Ae=Ae.replace(Ee,"$1"+a).replace(je,"$1ltr").replace(G,"rtl").replace(ve,"$1"+a).replace(ne,"$1left").replace(G,"right").replace(qe,"$1$2"+a).replace(J,"$1$2e-resize").replace(G,"w-resize").replace(Te,br).replace(rt,xt).replace(Ht,Lt).replace(fe,Lt).replace(ye,xt).replace($e,wt).replace(Ge,wt).replace(Ve,"$1$2$3$8$5$6$7$4$9").replace(Ke,"$1$2$3$8$5$6$7$4$9").replace(Ye,Er).replace(ze,Er),Ae=dt.detokenize(et.detokenize(Ne.detokenize(Ae))),Ae}}}r=new o,e.exports?t.transform=function(a,i,s){var l;return typeof i=="object"?l=i:(l={},typeof i=="boolean"&&(l.transformDirInUrl=i),typeof s=="boolean"&&(l.transformEdgeInUrl=s)),r.transform(a,l)}:typeof window<"u"&&(window.cssjanus=r)})(xf,xf.exports);var q$=xf.exports;const X$=zc(q$);function O1(e,t,r){switch(e.type){case j$:case Qh:case vf:return e.return=e.return||e.value;case Gs:e.value=Array.isArray(e.props)?e.props.join(","):e.props,Array.isArray(e.children)&&e.children.forEac
128h(function(o){o.type===vf&&(o.children=o.value)})}var n=D1(Array.prototype.concat(e.children),O1);return jn(n)?e.return=e.value+"{"+n+"}":""}function $1(e,t,r,n){if(e.type===P1||e.type===A$||e.type===Gs&&(!e.parent||e.parent.type===$$||e.parent.type===Gs)){var o=X$.transform(O1(e));e.children=o?K$(o)[0].children:[],e.return=""}}Object.defineProperty($1,"name",{value:"stylisRTLPlugin"});var j1={},A1={},Zh={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t}});function t(r){if(r=`${r}`,r==="0")return"0";if(/^[+-]?(\d+|\d*\.\d+)(e[+-]?\d+)?(%|\w+)?$/.test(r))return r.replace(/^[+-]?/,o=>o==="-"?"":"-");let n=["var","calc","min","max","clamp"];for(const o of n)if(r.includes(`${o}(`))return`calc(${r} * -1)`}})(Zh);var L1={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t}});const t=["preflight","container","accessibility","pointerEvents","visibility","position","inset","isolation","zIndex","order","gridColumn","gridColumnStart","gridColumnEnd","gridRow","gridRowStart","gridRowEnd","float","clear","margin","boxSizing","lineClamp","display","aspectRatio","size","height","maxHeight","minHeight","width","minWidth","maxWidth","flex","flexShrink","flexGrow","flexBasis","tableLayout","captionSide","borderCollapse","borderSpacing","transformOrigin","translate","rotate","skew","scale","transform","animation","cursor","touchAction","userSelect","resize","scrollSnapType","scrollSnapAlign","scrollSnapStop","scrollMargin","scrollPadding","listStylePosition","listStyleType","listStyleImage","appearance","columns","breakBefore","breakInside","breakAfter","gridAutoColumns","gridAutoFlow","gridAutoRows","gridTemplateColumns","gridTemplateRows","flexDirection","flexWrap","placeContent","placeItems","alignContent","alignItems","justifyContent","justifyItems","gap","space","divideWidth","divideStyle","divideColor","divideOpacity","placeSelf","alignSelf","justifySelf","overflow","overscrollBehavior","scrollBehavior","textOverflow","hyphens","whitespace","textWrap","wordBreak","borderRadius","borderWidth","borderStyle","borderColor","borderOpacity","backgroundColor","backgroundOpacity","backgroundImage","gradientColorStops","boxDecorationBreak","backgroundSize","backgroundAttachment","backgroundClip","backgroundPosition","backgroundRepeat","backgroundOrigin","fill","stroke","strokeWidth","objectFit","objectPosition","padding","textAlign","textIndent","verticalAlign","fontFamily","fontSize","fontWeight","textTransform","fontStyle","fontVariantNumeric","lineHeight","letterSpacing","textColor","textOpacity","textDecoration","textDecorationColor","textDecorationStyle","textDecorationThickness","textUnderlineOffset","fontSmoothing","placeholderColor","placeholderOpacity","caretColor","accentColor","opacity","backgroundBlendMode","mixBlendMode","boxShadow","boxShadowColor","outlineStyle","outlineWidth","outlineOffset","outlineColor","ringWidth","ringColor","ringOpacity","ringOffsetWidth","ringOffsetColor","blur","brightness","contrast","dropShadow","grayscale","hueRotate","invert","saturate","sepia","filter","backdropBlur","backdropBrightness","backdropContrast","backdropGrayscale","backdropHueRotate","backdropInvert","backdropOpacity","backdropSaturate","backdropSepia","backdropFilter","transitionProperty","transitionDelay","transitionDuration","transitionTimingFunction","willChange","contain","content","forcedColorAdjust"]})(L1);var M1={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t}});function t(r,n){return r===void 0?n:Array.isArray(r)?r:[...new Set(n.filter(a=>r!==!1&&r[a]!==!1).concat(Object.keys(r).filter(a=>r[a]!==!1)))]}})(M1);var z1={},Gu={},ep={exports:{}},Qe=String,N1=function(){return{isColorSupported:!1,reset:Qe,bold:Qe,dim:Qe,italic:Qe,underline:Qe,inverse:Qe,hidden:Qe,strikethrough:Qe,black:Qe,red:Qe,green:Qe,yellow:Qe,blue:Qe,magenta:Qe,cyan:Qe,white:Qe,gray:Qe,bgBlack:Qe,bgRed:Qe,bgGreen:Qe,bgYellow:Qe,bgBlue:Qe,bgMagenta:Qe,bgCyan:Qe,bgWhite:Qe,blackBright:Qe,redBright:Qe,greenBright:Qe,yellowBright:Qe,blueBright:Qe,magentaBright:Qe,cyanBright:Qe,whiteBright:Qe,bgBlackBright:Qe,bgRedBright:Qe,bgGreen
128Bright:Qe,bgYellowBright:Qe,bgBlueBright:Qe,bgMagentaBright:Qe,bgCyanBright:Qe,bgWhiteBright:Qe}};ep.exports=N1();ep.exports.createColors=N1;var F1=ep.exports;(function(e){var t={};Object.defineProperty(e,"__esModule",{value:!0});function r(u,d){for(var f in d)Object.defineProperty(u,f,{enumerable:!0,get:d[f]})}r(e,{dim:function(){return s},default:function(){return l}});const n=o(F1);function o(u){return u&&u.__esModule?u:{default:u}}let a=new Set;function i(u,d,f){typeof process<"u"&&t.JEST_WORKER_ID||f&&a.has(f)||(f&&a.add(f),d.forEach(h=>{}))}function s(u){return n.default.dim(u)}const l={info(u,d){i(n.default.bold(n.default.cyan("info")),...Array.isArray(u)?[u]:[d,u])},warn(u,d){i(n.default.bold(n.default.yellow("warn")),...Array.isArray(u)?[u]:[d,u])},risk(u,d){i(n.default.bold(n.default.magenta("risk")),...Array.isArray(u)?[u]:[d,u])}}})(Gu);(function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return o}});const t=r(Gu);function r(a){return a&&a.__esModule?a:{default:a}}function n({version:a,from:i,to:s}){t.default.warn(`${i}-color-renamed`,[`As of Tailwind CSS ${a}, \`${i}\` has been renamed to \`${s}\`.`,"Update your configuration file to silence this warning."])}const o={inherit:"inherit",current:"currentColor",transparent:"transparent",black:"#000",white:"#fff",slate:{50:"#f8fafc",100:"#f1f5f9",200:"#e2e8f0",300:"#cbd5e1",400:"#94a3b8",500:"#64748b",600:"#475569",700:"#334155",800:"#1e293b",900:"#0f172a",950:"#020617"},gray:{50:"#f9fafb",100:"#f3f4f6",200:"#e5e7eb",300:"#d1d5db",400:"#9ca3af",500:"#6b7280",600:"#4b5563",700:"#374151",800:"#1f2937",900:"#111827",950:"#030712"},zinc:{50:"#fafafa",100:"#f4f4f5",200:"#e4e4e7",300:"#d4d4d8",400:"#a1a1aa",500:"#71717a",600:"#52525b",700:"#3f3f46",800:"#27272a",900:"#18181b",950:"#09090b"},neutral:{50:"#fafafa",100:"#f5f5f5",200:"#e5e5e5",300:"#d4d4d4",400:"#a3a3a3",500:"#737373",600:"#525252",700:"#404040",800:"#262626",900:"#171717",950:"#0a0a0a"},stone:{50:"#fafaf9",100:"#f5f5f4",200:"#e7e5e4",300:"#d6d3d1",400:"#a8a29e",500:"#78716c",600:"#57534e",700:"#44403c",800:"#292524",900:"#1c1917",950:"#0c0a09"},red:{50:"#fef2f2",100:"#fee2e2",200:"#fecaca",300:"#fca5a5",400:"#f87171",500:"#ef4444",600:"#dc2626",700:"#b91c1c",800:"#991b1b",900:"#7f1d1d",950:"#450a0a"},orange:{50:"#fff7ed",100:"#ffedd5",200:"#fed7aa",300:"#fdba74",400:"#fb923c",500:"#f97316",600:"#ea580c",700:"#c2410c",800:"#9a3412",900:"#7c2d12",950:"#431407"},amber:{50:"#fffbeb",100:"#fef3c7",200:"#fde68a",300:"#fcd34d",400:"#fbbf24",500:"#f59e0b",600:"#d97706",700:"#b45309",800:"#92400e",900:"#78350f",950:"#451a03"},yellow:{50:"#fefce8",100:"#fef9c3",200:"#fef08a",300:"#fde047",400:"#facc15",500:"#eab308",600:"#ca8a04",700:"#a16207",800:"#854d0e",900:"#713f12",950:"#422006"},lime:{50:"#f7fee7",100:"#ecfccb",200:"#d9f99d",300:"#bef264",400:"#a3e635",500:"#84cc16",600:"#65a30d",700:"#4d7c0f",800:"#3f6212",900:"#365314",950:"#1a2e05"},green:{50:"#f0fdf4",100:"#dcfce7",200:"#bbf7d0",300:"#86efac",400:"#4ade80",500:"#22c55e",600:"#16a34a",700:"#15803d",800:"#166534",900:"#14532d",950:"#052e16"},emerald:{50:"#ecfdf5",100:"#d1fae5",200:"#a7f3d0",300:"#6ee7b7",400:"#34d399",500:"#10b981",600:"#059669",700:"#047857",800:"#065f46",900:"#064e3b",950:"#022c22"},teal:{50:"#f0fdfa",100:"#ccfbf1",200:"#99f6e4",300:"#5eead4",400:"#2dd4bf",500:"#14b8a6",600:"#0d9488",700:"#0f766e",800:"#115e59",900:"#134e4a",950:"#042f2e"},cyan:{50:"#ecfeff",100:"#cffafe",200:"#a5f3fc",300:"#67e8f9",400:"#22d3ee",500:"#06b6d4",600:"#0891b2",700:"#0e7490",800:"#155e75",900:"#164e63",950:"#083344"},sky:{50:"#f0f9ff",100:"#e0f2fe",200:"#bae6fd",300:"#7dd3fc",400:"#38bdf8",500:"#0ea5e9",600:"#0284c7",700:"#0369a1",800:"#075985",900:"#0c4a6e",950:"#082f49"},blue:{50:"#eff6ff",100:"#dbeafe",200:"#bfdbfe",300:"#93c5fd",400:"#60a5fa",500:"#3b82f6",600:"#2563eb",700:"#1d4ed8",800:"#1e40af",900:"#1e3a8a",950:"#172554"},indigo:{50:"#eef2ff",100:"#e0e7ff",200:"#c7d2fe",300:"#a5b4fc",400:"#818cf8",500:"#6366f1",600:"#4f46e5",700:"#4338ca",800:"#3730a3",900:"#312e81",950:"#1e1b4b"},violet:{50:"#f5f3ff",100:"#ede9fe",200:"#ddd6fe",300:"#c4b5fd",400:"#a78bfa",500:"#8b5cf6",600:"#7c3aed",700:"#6d28d9",800:"#5b21b6",900:"#4c1d95",950:"#2e1065"},purple:{50:"#faf5ff",100:"#f3e8ff",200:"#e9d5ff",300:"#d8b4fe",400:"#c084fc",500:"#a855f7",600:"#9333ea",700:"#7e22ce",800:"#6b21a8",900:"#581c87",950:"#3b0764"},fuchsia:{50:"#fdf4ff",100:"#fae8ff",200:"#f5d0fe",300:"#f0abfc",400:"#e879f9",500:"#d946ef",600:"#c026d3",700:"#a21caf",800:"#86198f",900:"#701a75",950:"#4a044e"},pink:{50:"#fdf2f8",100:"#fce7f3",200:"#fbcfe8",300:"#f9a8d4",400:"#f472b6",500:"#ec4899",600:"#db2777",700:"#be185d",800:"#9d174d",900:"#831843",950:"#500724"},rose:{50:"#fff1f2",100:"#ffe4e6",200:"#fecdd3",300:"#fda4af",400:"#fb7185",500:"#f43f5e",600:"#e11d48",700:"#be123c",800:"#9f1239",900:"#881337",950:"#4c0519"},get lightBlue(){return n({version:"v2.2",from:"lightBlue",to:"sky"}),this.sky},get warmGray(){return n({version:"v3.0",from:"warmGray",to:"stone"}),this.stone},get trueGray(){return n({version:"v3.0",from:"trueGray",to:"neutral"}),this.neutral},get coolGray(){return n({version:"v3.0",from:"coolGray",to:"gray"}),this.gray},get blueGray(){return n({version:"v3.0",from:"blueGray",to:"slate"}),this.slate}}})(z1);var H1={};
128(function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"defaults",{enumerable:!0,get:function(){return t}});function t(r,...n){for(let i of n){for(let s in i){var o;!(r==null||(o=r.hasOwnProperty)===null||o===void 0)&&o.call(r,s)||(r[s]=i[s])}for(let s of Object.getOwnPropertySymbols(i)){var a;!(r==null||(a=r.hasOwnProperty)===null||a===void 0)&&a.call(r,s)||(r[s]=i[s])}}return r}})(H1);var B1={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"toPath",{enumerable:!0,get:function(){return t}});function t(r){if(Array.isArray(r))return r;let n=r.split("[").length-1,o=r.split("]").length-1;if(n!==o)throw new Error(`Path is invalid. Has unbalanced brackets: ${r}`);return r.split(/\.(?![^\[]*\])|[\[\]]/g).filter(Boolean)}})(B1);var W1={},Ku={};(function(e){var t={};Object.defineProperty(e,"__esModule",{value:!0});function r(h,g){for(var m in g)Object.defineProperty(h,m,{enumerable:!0,get:g[m]})}r(e,{flagEnabled:function(){return l},issueFlagNotices:function(){return d},default:function(){return f}});const n=a(F1),o=a(Gu);function a(h){return h&&h.__esModule?h:{default:h}}let i={optimizeUniversalDefaults:!1,generalizedModifiers:!0,disableColorOpacityUtilitiesByDefault:!1,relativeContentPathsByDefault:!1},s={future:["hoverOnlyWhenSupported","respectDefaultRingColorOpacity","disableColorOpacityUtilitiesByDefault","relativeContentPathsByDefault"],experimental:["optimizeUniversalDefaults","generalizedModifiers"]};function l(h,g){if(s.future.includes(g)){var m,v,x;return h.future==="all"||((x=(v=h==null||(m=h.future)===null||m===void 0?void 0:m[g])!==null&&v!==void 0?v:i[g])!==null&&x!==void 0?x:!1)}if(s.experimental.includes(g)){var w,S,y;return h.experimental==="all"||((y=(S=h==null||(w=h.experimental)===null||w===void 0?void 0:w[g])!==null&&S!==void 0?S:i[g])!==null&&y!==void 0?y:!1)}return!1}function u(h){if(h.experimental==="all")return s.experimental;var g;return Object.keys((g=h==null?void 0:h.experimental)!==null&&g!==void 0?g:{}).filter(m=>s.experimental.includes(m)&&h.experimental[m])}function d(h){if(t.JEST_WORKER_ID===void 0&&u(h).length>0){let g=u(h).map(m=>n.default.yellow(m)).join(", ");o.default.warn("experimental-flags-enabled",[`You have enabled experimental features: ${g}`,"Experimental features in Tailwind CSS are not covered by semver, may introduce breaking changes, and can change at any time."])}}const f=s})(Ku);(function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"normalizeConfig",{enumerable:!0,get:function(){return a}});const t=Ku,r=o(Gu);function n(i){if(typeof WeakMap!="function")return null;var s=new WeakMap,l=new WeakMap;return(n=function(u){return u?l:s})(i)}function o(i,s){if(i&&i.__esModule)return i;if(i===null||typeof i!="object"&&typeof i!="function")return{default:i};var l=n(s);if(l&&l.has(i))return l.get(i);var u={},d=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var f in i)if(f!=="default"&&Object.prototype.hasOwnProperty.call(i,f)){var h=d?Object.getOwnPropertyDescriptor(i,f):null;h&&(h.get||h.set)?Object.defineProperty(u,f,h):u[f]=i[f]}return u.default=i,l&&l.set(i,u),u}function a(i){if((()=>{if(i.purge||!i.content||!Array.isArray(i.content)&&!(typeof i.content=="object"&&i.content!==null))return!1;if(Array.isArray(i.content))return i.content.every(u=>typeof u=="string"?!0:!(typeof(u==null?void 0:u.raw)!="string"||u!=null&&u.extension&&typeof(u==null?void 0:u.extension)!="str
128ing"));if(typeof i.content=="object"&&i.content!==null){if(Object.keys(i.content).some(u=>!["files","relative","extract","transform"].includes(u)))return!1;if(Array.isArray(i.content.files)){if(!i.content.files.every(u=>typeof u=="string"?!0:!(typeof(u==null?void 0:u.raw)!="string"||u!=null&&u.extension&&typeof(u==null?void 0:u.extension)!="string")))return!1;if(typeof i.content.extract=="object"){for(let u of Object.values(i.content.extract))if(typeof u!="function")return!1}else if(!(i.content.extract===void 0||typeof i.content.extract=="function"))return!1;if(typeof i.content.transform=="object"){for(let u of Object.values(i.content.transform))if(typeof u!="function")return!1}else if(!(i.content.transform===void 0||typeof i.content.transform=="function"))return!1;if(typeof i.content.relative!="boolean"&&typeof i.content.relative<"u")return!1}return!0}return!1})()||r.default.warn("purge-deprecation",["The `purge`/`content` options have changed in Tailwind CSS v3.0.","Update your configuration file to eliminate this warning.","https://tailwindcss.com/docs/upgrade-guide#configure-content-sources"]),i.safelist=(()=>{var u;let{content:d,purge:f,safelist:h}=i;return Array.isArray(h)?h:Array.isArray(d==null?void 0:d.safelist)?d.safelist:Array.isArray(f==null?void 0:f.safelist)?f.safelist:Array.isArray(f==null||(u=f.options)===null||u===void 0?void 0:u.safelist)?f.options.safelist:[]})(),i.blocklist=(()=>{let{blocklist:u}=i;if(Array.isArray(u)){if(u.every(d=>typeof d=="string"))return u;r.default.warn("blocklist-invalid",["The `blocklist` option must be an array of strings.","https://tailwindcss.com/docs/content-configuration#discarding-classes"])}return[]})(),typeof i.prefix=="function")r.default.warn("prefix-function",["As of Tailwind CSS v3.0, `prefix` cannot be a function.","Update `prefix` in your configuration to be a string to eliminate this warning.","https://tailwindcss.com/docs/upgrade-guide#prefix-cannot-be-a-function"]),i.prefix="";else{var l;i.prefix=(l=i.prefix)!==null&&l!==void 0?l:""}i.content={relative:(()=>{let{content:u}=i;return u!=null&&u.relative?u.relative:(0,t.flagEnabled)(i,"relativeContentPathsByDefault")})(),files:(()=>{let{content:u,purge:d}=i;return Array.isArray(d)?d:Array.isArray(d==null?void 0:d.content)?d.content:Array.isArray(u)?u:Array.isArray(u==null?void 0:u.content)?u.content:Array.isArray(u==null?void 0:u.files)?u.files:[]})(),extract:(()=>{let u=(()=>{var h,g,m,v,x,w,S,y,_,R;return!((h=i.purge)===null||h===void 0)&&h.extract?i.purge.extract:!((g=i.content)===null||g===void 0)&&g.extract?i.content.extract:!((m=i.purge)===null||m===void 0||(v=m.extract)===null||v===void 0)&&v.DEFAULT?i.purge.extract.DEFAULT:!((x=i.content)===null||x===void 0||(w=x.extract)===null||w===void 0)&&w.DEFAULT?i.content.extract.DEFAULT:!((S=i.purge)===null||S===void 0||(y=S.options)===null||y===void 0)&&y.extractors?i.purge.options.extractors:!((_=i.content)===null||_===void 0||(R=_.options)===null||R===void 0)&&R.extractors?i.content.options.extractors:{}})(),d={},f=(()=>{var h,g,m,v;if(!((h=i.purge)===null||h===void 0||(g=h.options)===null||g===void 0)&&g.defaultExtractor)return i.purge.options.defaultExtractor;if(!((m=i.content)===null||m===void 0||(v=m.options)===null||v===void 0)&&v.defaultExtractor)return i.content.options.defaultExtractor})();if(f!==void 0&&(d.DEFAULT=f),typeof u=="function")d.DEFAULT=u;else if(Array.isArray(u))for(let{extensions:h,extractor:g}of u??[])for(let m of h)d[m]=g;else typeof u=="object"&&u!==null&&Object.assign(d,u);return d})(),transform:(()=>{let u=(()=>{var f,h,g,m,v,x;return!((f=i.purge)===null||f===void 0)&&f.transform?i.purge.transform:!((h=i.content)===null||h===void 0)&&h.transform?i.content.transform:!((g=i.purge)===null||g===void 0||(m=g.transform)===null||m===void 0)&&m.DEFAULT?i.purge.transform.DEFAULT:!((v=i.content)===null||v===void 0||(x=v.transform)===null||x===void 0)&&x.DEFAULT?i.content.transform.DEFAULT:{}})(),d={};return typeof u=="function"?d.DEFAULT=u:typeof u=="object"&&u!==null&&Object.assign(d,u),d})()};for(let u of i.content.files)if(typeof u=="string"&&/{([^,]*?)}/g.test(u)){r.default.warn("invalid-glob-braces",[`The glob pattern ${(0,r.dim)(u)}
128 in your Tailwind CSS configuration is invalid.`,`Update it to ${(0,r.dim)(u.replace(/{([^,]*?)}/g,"$1"))} to silence this warning.`]);break}return i}})(W1);var U1={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t}});function t(r){if(Object.prototype.toString.call(r)!=="[object Object]")return!1;const n=Object.getPrototypeOf(r);return n===null||Object.getPrototypeOf(n)===null}})(U1);var V1={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"cloneDeep",{enumerable:!0,get:function(){return t}});function t(r){return Array.isArray(r)?r.map(n=>t(n)):typeof r=="object"&&r!==null?Object.fromEntries(Object.entries(r).map(([n,o])=>[n,t(o)])):r}})(V1);var Y1={},G1={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t}});function t(r){return r.replace(/\\,/g,"\\2c ")}})(G1);var tp={},rp={},K1={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t}});const t={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]}})(K1);
128(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(m,v){for(var x in v)Object.defineProperty(m,x,{enumerable:!0,get:v[x]})}t(e,{parseColor:function(){return h},formatColor:function(){return g}});const r=n(K1);function n(m){return m&&m.__esModule?m:{default:m}}let o=/^#([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})?$/i,a=/^#([a-f\d])([a-f\d])([a-f\d])([a-f\d])?$/i,i=/(?:\d+|\d*\.\d+)%?/,s=/(?:\s*,\s*|\s+)/,l=/\s*[,/]\s*/,u=/var\(--(?:[^ )]*?)(?:,(?:[^ )]*?|var\(--[^ )]*?\)))?\)/,d=new RegExp(`^(rgba?)\\(\\s*(${i.source}|${u.source})(?:${s.source}(${i.source}|${u.source}))?(?:${s.source}(${i.source}|${u.source}))?(?:${l.source}(${i.source}|${u.source}))?\\s*\\)$`),f=new RegExp(`^(hsla?)\\(\\s*((?:${i.source})(?:deg|rad|grad|turn)?|${u.source})(?:${s.source}(${i.source}|${u.source}))?(?:${s.source}(${i.source}|${u.source}))?(?:${l.source}(${i.source}|${u.source}))?\\s*\\)$`);function h(m,{loose:v=!1}={}){var x,w;if(typeof m!="string")return null;if(m=m.trim(),m==="transparent")return{mode:"rgb",color:["0","0","0"],alpha:"0"};if(m in r.default)return{mode:"rgb",color:r.default[m].map(O=>O.toString())};let S=m.replace(a,(O,b,P,E,T)=>["#",b,b,P,P,E,E,T?T+T:""].join("")).match(o);if(S!==null)return{mode:"rgb",color:[parseInt(S[1],16),parseInt(S[2],16),parseInt(S[3],16)].map(O=>O.toString()),alpha:S[4]?(parseInt(S[4],16)/255).toString():void 0};var y;let _=(y=m.match(d))!==null&&y!==void 0?y:m.match(f);if(_===null)return null;let R=[_[2],_[3],_[4]].filter(Boolean).map(O=>O.toString());return R.length===2&&R[0].startsWith("var(")?{mode:_[1],color:[R[0]],alpha:R[1]}:!v&&R.length!==3||R.length<3&&!R.some(O=>/^var\(.*?\)$/.test(O))?null:{mode:_[1],color:R,alpha:(x=_[5])===null||x===void 0||(w=x.toString)===null||w===void 0?void 0:w.call(x)}}function g({mode:m,color:v,alpha:x}){let w=x!==void 0;return m==="rgba"||m==="hsla"?`${m}(${v.join(", ")}${w?`, ${x}`:""})`:`${m}(${v.join(" ")}${w?` / ${x}`:""})`}})(rp);(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(a,i){for(var s in i)Object.defineProperty(a,s,{enumerable:!0,get:i[s]})}t(e,{withAlphaValue:function(){return n},default:function(){return o}});const r=rp;function n(a,i,s){if(typeof a=="function")return a({opacityValue:i});let l=(0,r.parseColor)(a,{loose:!0});return l===null?s:(0,r.formatColor)({...l,alpha:i})}function o({color:a,property:i,variable:s}){let l=[].concat(i);if(typeof a=="function")return{[s]:"1",...Object.fromEntries(l.map(d=>[d,a({opacityVariable:s,opacityValue:`var(${s}, 1)`})]))};const u=(0,r.parseColor)(a);return u===null?Object.fromEntries(l.map(d=>[d,a])):u.alpha!==void 0?Object.fromEntries(l.map(d=>[d,a])):{[s]:"1",...Object.fromEntries(l.map(d=>[d,(0,r.formatColor)({...u,alpha:`var(${s}, 1)`})]))}}})(tp);var np={},J1={},Ju={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"splitAtTopLevelOnly",{enumerable:!0,get:function(){return t}});function t(r,n){let o=[],a=[],i=0,s=!1;for(let l=0;l<r.length;l++){let u=r[l];o.length===0&&u===n[0]&&!s&&(n.length===1||r.slice(l,l+n.length)===n)&&(a.push(r.slice(i,l)),i=l+n.length),s=s?!1:u==="\\",u==="("||u==="["||u==="{"?o.push(u):(u===")"&&o[o.length-1]==="("||u==="]"&&o[o.length-1]==="["||u==="}"&&o[o.length-1]==="{")&&o.pop()}return a.push(r.slice(i)),a}})(Ju);(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(l,u){for(var d in u)Object.defineProperty(l,d,{enumerable:!0,get:u[d]})}t(e,{parseBoxShadowValue:function(){return i},formatBoxShadowValue:function(){return s}});const r=Ju;let n=new Set(["inset","inherit","initial","revert","unset"]),o=/\ +(?![^(]*\))/g,a=/^-?(\d+|\.\d+)(.*?)$/g;function i(l){return(0,r.splitAtTopLevelOnly)(l,",").map(d=>{let f=d.trim(),h={raw:f},g=f.split(o),m=new Set;for(let v of g)a.lastIndex=0,!m.has("KEYWORD")&&n.has(v)?(h.keyword=v,m.add("KEYWORD")):a.test(v)?m.has("X")?m.has("Y")?m.has("BLUR")?m.has("SPREAD")||(h.spread=v,m.add("SPREAD")):(h.blur=v,m.add("BLUR")):(h.y=v,m.add("Y")):(h.x=v,m.add("X")):h.color?(h.unknown||(h.unknown=[]),h.unknown.push(v)):h.color=v;return h.valid=h.x!==void 0&&h.y!==void 0,h})}function s(l){return l.map(u=>
128u.valid?[u.keyword,u.x,u.y,u.blur,u.spread,u.color].filter(Boolean).join(" "):u.raw).join(", ")}})(J1);(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(A,M){for(var F in M)Object.defineProperty(A,F,{enumerable:!0,get:M[F]})}t(e,{normalize:function(){return l},normalizeAttributeSelectors:function(){return u},url:function(){return f},number:function(){return h},percentage:function(){return g},length:function(){return x},lineWidth:function(){return S},shadow:function(){return y},color:function(){return _},image:function(){return R},gradient:function(){return b},position:function(){return E},familyName:function(){return T},genericName:function(){return k},absoluteSize:function(){return L},relativeSize:function(){return j}});const r=rp,n=J1,o=Ju;let a=["min","max","clamp","calc"];function i(A){return a.some(M=>new RegExp(`^${M}\\(.*\\)`).test(A))}const s=new Set(["scroll-timeline-name","timeline-scope","view-timeline-name","font-palette","anchor-name","anchor-scope","position-anchor","position-try-options","scroll-timeline","animation-timeline","view-timeline","position-try"]);function l(A,M=null,F=!0){let V=M&&s.has(M.property);return A.startsWith("--")&&!V?`var(${A})`:A.includes("url(")?A.split(/(url\(.*?\))/g).filter(Boolean).map(K=>/^url\(.*?\)$/.test(K)?K:l(K,M,!1)).join(""):(A=A.replace(/([^\\])_+/g,(K,le)=>le+" ".repeat(K.length-1)).replace(/^_/g," ").replace(/\\_/g,"_"),F&&(A=A.trim()),A=d(A),A)}function u(A){return A.includes("=")&&(A=A.replace(/(=.*)/g,(M,F)=>{if(F[1]==="'"||F[1]==='"')return F;if(F.length>2){let V=F[F.length-1];if(F[F.length-2]===" "&&(V==="i"||V==="I"||V==="s"||V==="S"))return`="${F.slice(1,-2)}" ${F[F.length-1]}`}return`="${F.slice(1)}"`})),A}function d(A){let M=["theme"],F=["min-content","max-content","fit-content","safe-area-inset-top","safe-area-inset-right","safe-area-inset-bottom","safe-area-inset-left","titlebar-area-x","titlebar-area-y","titlebar-area-width","titlebar-area-height","keyboard-inset-top","keyboard-inset-right","keyboard-inset-bottom","keyboard-inset-left","keyboard-inset-width","keyboard-inset-height","radial-gradient","linear-gradient","conic-gradient","repeating-radial-gradient","repeating-linear-gradient","repeating-conic-gradient","anchor-size"];return A.replace(/(calc|min|max|clamp)\(.+\)/g,V=>{let K="";function le(){let xe=K.trimEnd();return xe[xe.length-1]}for(let xe=0;xe<V.length;xe++){let de=function(G){return G.split("").every((U,X)=>V[xe+X]===U)},re=function(G){let U=1/0;for(let oe of G){let ge=V.indexOf(oe,xe);ge!==-1&&ge<U&&(U=ge)}let X=V.slice(xe,U);return xe+=X.length-1,X},_e=V[xe];if(de("var"))K+=re([")",","]);else if(F.some(G=>de(G))){let G=F.find(U=>de(U));K+=G,xe+=G.length-1}else M.some(G=>de(G))?K+=re([")"]):de("[")?K+=re(["]"]):["+","-","*","/"].includes(_e)&&!["(","+","-","*","/",","].includes(le())?K+=` ${_e} `:K+=_e}return K.replace(/\s+/g," ")})}function f(A){return A.startsWith("url(")}function h(A){return!isNaN(Number(A))||i(A)}function g(A){return A.endsWith("%")&&h(A.slice(0,-1))||i(A)}let v=`(?:${["cm","mm","Q","in","pc","pt","px","em","ex","ch","rem","lh","rlh","vw","vh","vmin","vmax","vb","vi","svw","svh","lvw","lvh","dvw","dvh","cqw","cqh","cqi","cqb","cqmin","cqmax"].join("|")})`;function x(A){return A==="0"||new RegExp(`^[+-]?[0-9]*.?[0-9]+(?:[eE][+-]?[0-9]+)?${v}$`).test(A)||i(A)}let w=new Set(["thin","medium","thick"]);function S(A){return w.has(A)}function y(A){let M=(0,n.parseBoxShadowValue)(l(A));for(let F of M)if(!F.valid)return!1;return!0}function _(A){let M=0;return(0,o.splitAtTopLevelOnly)(A,"_").every(V=>(V=l(V),V.startsWith("var(")?!0:(0,r.parseColor)(V,{loose:!0})!==null?(M++,!0):!1))?M>0:!1}function R(A){let M=0;return(0,o.splitAtTopLevelOnly)(A,",").every(V=>(V=l(V),V.startsWith("var(")?!0:f(V)||b(V)||["element(","image(","cross-fade(","image-set("].some(K=>V.startsWith(K))?(M++,!0):!1))?M>0:!1}let O=new Set(["conic-gradient","linear-gradient","radial-gradient","repeating-conic-gradient","repeating-linear-gradient","repeating-radial-gradient"]);function b(A){A=l(A);for(let M of O)if(A.startsWith(`${M}(`))return!0;return!1}let P=new Set(["center","top","right","bottom","left"]);function E(A){let M=0;return(0,o.splitAtTopLevelOnly)(A,"_").every(V=>(V=l(V),V.startsWith("var(")?!0:P.has(V)||x(V)||g(V)?(M++,!0):!1))?M>0:!1}function T(A){let M=0;return(0,o.splitAtTopLevelOnly)(A,",").every(V=>(V=l(V),V.startsWith("var(")?!0:V.includes(" ")&&!/(['"])([^"']+)\1/g.test(V)||/^\d/g.test(V)?!1:(M++,!0)))?M>0:!1}let I=new Set(["serif","sans-serif","monospace","cursive","fantasy","system-ui","ui-serif","ui-sans-serif","ui-monospace","ui-rounded","math","emoji","fangsong"]);function k(A){return I.has(A)}let D=new Set(["xx-small","x-small","small","medium","large","x-large","xx-large","xxx-large"]);function L(A){return D.has(A)}let $=new Set(["larger","smaller"]);function j(A){return $.has(A)}})(np);var q1={};
128(function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"backgroundSize",{enumerable:!0,get:function(){return n}});const t=np,r=Ju;function n(o){let a=["cover","contain"];return(0,r.splitAtTopLevelOnly)(o,",").every(i=>{let s=(0,r.splitAtTopLevelOnly)(i,"_").filter(Boolean);return s.length===1&&a.includes(s[0])?!0:s.length!==1&&s.length!==2?!1:s.every(l=>(0,t.length)(l)||(0,t.percentage)(l)||l==="auto")})}})(q1);(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(E,T){for(var I in T)Object.defineProperty(E,I,{enumerable:!0,get:T[I]})}t(e,{updateAllClasses:function(){return u},asValue:function(){return h},parseColorFormat:function(){return v},asColor:function(){return w},asLookupValue:function(){return S},typeMap:function(){return _},coerceValue:function(){return b},getMatchingTypes:function(){return P}});const r=l(G1),n=tp,o=np,a=l(Zh),i=q1,s=Ku;function l(E){return E&&E.__esModule?E:{default:E}}function u(E,T){E.walkClasses(I=>{I.value=T(I.value),I.raws&&I.raws.value&&(I.raws.value=(0,r.default)(I.raws.value))})}function d(E,T){if(!g(E))return;let I=E.slice(1,-1);if(T(I))return(0,o.normalize)(I)}function f(E,T={},I){let k=T[E];if(k!==void 0)return(0,a.default)(k);if(g(E)){let D=d(E,I);return D===void 0?void 0:(0,a.default)(D)}}function h(E,T={},{validate:I=()=>!0}={}){var k;let D=(k=T.values)===null||k===void 0?void 0:k[E];return D!==void 0?D:T.supportsNegativeValues&&E.startsWith("-")?f(E.slice(1),T.values,I):d(E,I)}function g(E){return E.startsWith("[")&&E.endsWith("]")}function m(E){let T=E.lastIndexOf("/"),I=E.lastIndexOf("[",T),k=E.indexOf("]",T);return E[T-1]==="]"||E[T+1]==="["||I!==-1&&k!==-1&&I<T&&T<k&&(T=E.lastIndexOf("/",I)),T===-1||T===E.length-1?[E,void 0]:g(E)&&!E.includes("]/[")?[E,void 0]:[E.slice(0,T),E.slice(T+1)]}function v(E){if(typeof E=="string"&&E.includes("<alpha-value>")){let T=E;return({opacityValue:I=1})=>T.replace(/<alpha-value>/g,I)}return E}function x(E){return(0,o.normalize)(E.slice(1,-1))}function w(E,T={},{tailwindConfig:I={}}={}){var k;if(((k=T.values)===null||k===void 0?void 0:k[E])!==void 0){var D;return v((D=T.values)===null||D===void 0?void 0:D[E])}let[L,$]=m(E);if($!==void 0){var j,A,M,F;let V=(F=(j=T.values)===null||j===void 0?void 0:j[L])!==null&&F!==void 0?F:g(L)?L.slice(1,-1):void 0;return V===void 0?void 0:(V=v(V),g($)?(0,n.withAlphaValue)(V,x($)):((A=I.theme)===null||A===void 0||(M=A.opacity)===null||M===void 0?void 0:M[$])===void 0?void 0:(0,n.withAlphaValue)(V,I.theme.opacity[$]))}return h(E,T,{validate:o.color})}function S(E,T={}){var I;return(I=T.values)===null||I===void 0?void 0:I[E]}function y(E){return(T,I)=>h(T,I,{validate:E})}let _={any:h,color:w,url:y(o.url),image:y(o.image),length:y(o.length),percentage:y(o.percentage),position:y(o.position),lookup:S,"generic-name":y(o.genericName),"family-name":y(o.familyName),number:y(o.number),"line-width":y(o.lineWidth),"absolute-size":y(o.absoluteSize),"relative-size":y(o.relativeSize),shadow:y(o.shadow),size:y(i.backgroundSize)},R=Object.keys(_);function O(E,T){let I=E.indexOf(T);return I===-1?[void 0,E]:[E.slice(0,I),E.slice(I+1)]}function b(E,T,I,k){if(I.values&&T in I.values)for(let{type:L}of E??[]){let $=_[L](T,I,{tailwindConfig:k});if($!==void 0)return[$,L,null]}if(g(T)){let L=T.slice(1,-1),[$,j]=O(L,":");if(!/^[\w-_]+$/g.test($))j=L;else if($!==void 0&&!R.includes($))return[];if(j.length>0&&R.includes($))return[h(`[${j}]`,I),$,null]}let D=P(E,T,I,k);for(let L of D)return L;return[]}function*P(E,T,I,k){let D=(0,s.flagEnabled)(k,"generalizedModifiers"),[L,$]=m(T);if(D&&I.modifiers!=null&&(I.modifiers==="any"||typeof I.modifiers=="object"&&($&&g($)||$ in I.modifiers))||(L=T,$=void 0),$!==void 0&&L===""&&(L="DEFAULT"),$!==void 0&&typeof I.modifiers=="object"){var A,M;let F=(M=(A=I.modifiers)===null||A===void 0?void 0:A[$])!==null&&M!==void 0?M:null;F!==null?$=F:g($)&&($=x($))}for(let{type:F}of E??[]){let V=_[F](L,I,{tailwindConfig:k});V!==void 0&&(yield[V,F,$??null])}}})(Y1);var X1={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t}});function t(r){return typeof r=="function"?r({}):r}})(X1);
128(function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return I}});const t=g(Zh),r=g(L1),n=g(M1),o=g(z1),a=H1,i=B1,s=W1,l=g(U1),u=V1,d=Y1,f=tp,h=g(X1);function g(k){return k&&k.__esModule?k:{default:k}}function m(k){return typeof k=="function"}function v(k,...D){let L=D.pop();for(let $ of D)for(let j in $){let A=L(k[j],$[j]);A===void 0?(0,l.default)(k[j])&&(0,l.default)($[j])?k[j]=v({},k[j],$[j],L):k[j]=$[j]:k[j]=A}return k}const x={colors:o.default,negative(k){return Object.keys(k).filter(D=>k[D]!=="0").reduce((D,L)=>{let $=(0,t.default)(k[L]);return $!==void 0&&(D[`-${L}`]=$),D},{})},breakpoints(k){return Object.keys(k).filter(D=>typeof k[D]=="string").reduce((D,L)=>({...D,[`screen-${L}`]:k[L]}),{})}};function w(k,...D){return m(k)?k(...D):k}function S(k){return k.reduce((D,{extend:L})=>v(D,L,($,j)=>$===void 0?[j]:Array.isArray($)?[j,...$]:[j,$]),{})}function y(k){return{...k.reduce((D,L)=>(0,a.defaults)(D,L),{}),extend:S(k)}}function _(k,D){if(Array.isArray(k)&&(0,l.default)(k[0]))return k.concat(D);if(Array.isArray(D)&&(0,l.default)(D[0])&&(0,l.default)(k))return[k,...D];if(Array.isArray(D))return D}function R({extend:k,...D}){return v(D,k,(L,$)=>!m(L)&&!$.some(m)?v({},L,...$,_):(j,A)=>v({},...[L,...$].map(M=>w(M,j,A)),_))}function*O(k){let D=(0,i.toPath)(k);if(D.length===0||(yield D,Array.isArray(k)))return;let L=/^(.*?)\s*\/\s*([^/]+)$/,$=k.match(L);if($!==null){let[,j,A]=$,M=(0,i.toPath)(j);M.alpha=A,yield M}}function b(k){const D=(L,$)=>{for(const j of O(L)){let A=0,M=k;for(;M!=null&&A<j.length;)M=M[j[A++]],M=m(M)&&(j.alpha===void 0||A<=j.length-1)?M(D,x):M;if(M!==void 0){if(j.alpha!==void 0){let F=(0,d.parseColorFormat)(M);return(0,f.withAlphaValue)(F,j.alpha,(0,h.default)(F))}return(0,l.default)(M)?(0,u.cloneDeep)(M):M}}return $};return Object.assign(D,{theme:D,...x}),Object.keys(k).reduce((L,$)=>(L[$]=m(k[$])?k[$](D,x):k[$],L),{})}function P(k){let D=[];return k.forEach(L=>{D=[...D,L];var $;const j=($=L==null?void 0:L.plugins)!==null&&$!==void 0?$:[];j.length!==0&&j.forEach(A=>{A.__isOptionsFunction&&(A=A());var M;D=[...D,...P([(M=A==null?void 0:A.config)!==null&&M!==void 0?M:{}])]})}),D}function E(k){return[...k].reduceRight((L,$)=>m($)?$({corePlugins:L}):(0,n.default)($,L),r.default)}function T(k){return[...k].reduceRight((L,$)=>[...L,...$],[])}function I(k){let D=[...P(k),{prefix:"",important:!1,separator:":"}];var L,$;return(0,s.normalizeConfig)((0,a.defaults)({theme:b(R(y(D.map(j=>(L=j==null?void 0:j.theme)!==null&&L!==void 0?L:{})))),corePlugins:E(D.map(j=>j.corePlugins)),plugins:T(k.map(j=>($=j==null?void 0:j.plugins)!==null&&$!==void 0?$:[]))},...D))}})(A1);var Q1={},Q$={content:[],presets:[],darkMode:"media",theme:{accentColor:({theme:e})=>({...e("colors"),auto:"auto"}),animation:{none:"none",spin:"spin 1s linear infinite",ping:"ping 1s cubic-bezier(0, 0, 0.2, 1) infinite",pulse:"pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite",bounce:"bounce 1s infinite"},aria:{busy:'busy="true"',checked:'checked="true"',disabled:'disabled="true"',expanded:'expanded="true"',hidden:'hidden="true"',pressed:'pressed="true"',readonly:'readonly="true"',required:'required="true"',selected:'selected="true"'},aspectRatio:{auto:"auto",square:"1 / 1",video:"16 / 9"},backdropBlur:({theme:e})=>e("blur"),backdropBrightness:({theme:e})=>e("brightness"),backdropContrast:({theme:e})=>e("contrast"),backdropGrayscale:({theme:e})=>e("grayscale"),backdropHueRotate:({theme:e})=>e("hueRotate"),backdropInvert:({theme:e})=>e("invert"),backdropOpacity:({theme:e})=>e("opacity"),backdropSaturate:({theme:e})=>e("saturate"),backdropSepia:({theme:e})=>e("sepia"),backgroundColor:({theme:e})=>e("colors"),backgroundImage:{none:"none","gradient-to-t":"linear-gradient(to top, var(--tw-gradient-stops))","gradient-to-tr":"linear-gradient(to top right, var(--tw-gradient-stops))","gradient-to-r":"linear-gradient(to right, var(--tw-gradient-stops))","gradient-to-br":"linear-gradient(to bottom right, var(--tw-gradient-stops))","gradient-to-b":"linear-gradient(to bottom, var(--tw-gradient-stops))","gradient-to-bl":"linear-gradient(to bottom left, var(--tw-gradient-stops))","gradient-to-l"
vendor: 10,940 bytes, line 128
128:"linear-gradient(to left, var(--tw-gradient-stops))","gradient-to-tl":"linear-gradient(to top left, var(--tw-gradient-stops))"},backgroundOpacity:({theme:e})=>e("opacity"),backgroundPosition:{bottom:"bottom",center:"center",left:"left","left-bottom":"left bottom","left-top":"left top",right:"right","right-bottom":"right bottom","right-top":"right top",top:"top"},backgroundSize:{auto:"auto",cover:"cover",contain:"contain"},blur:{0:"0",none:"",sm:"4px",DEFAULT:"8px",md:"12px",lg:"16px",xl:"24px","2xl":"40px","3xl":"64px"},borderColor:({theme:e})=>({...e("colors"),DEFAULT:e("colors.gray.200","currentColor")}),borderOpacity:({theme:e})=>e("opacity"),borderRadius:{none:"0px",sm:"0.125rem",DEFAULT:"0.25rem",md:"0.375rem",lg:"0.5rem",xl:"0.75rem","2xl":"1rem","3xl":"1.5rem",full:"9999px"},borderSpacing:({theme:e})=>({...e("spacing")}),borderWidth:{DEFAULT:"1px",0:"0px",2:"2px",4:"4px",8:"8px"},boxShadow:{sm:"0 1px 2px 0 rgb(0 0 0 / 0.05)",DEFAULT:"0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1)",md:"0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1)",lg:"0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1)",xl:"0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1)","2xl":"0 25px 50px -12px rgb(0 0 0 / 0.25)",inner:"inset 0 2px 4px 0 rgb(0 0 0 / 0.05)",none:"none"},boxShadowColor:({theme:e})=>e("colors"),brightness:{0:"0",50:".5",75:".75",90:".9",95:".95",100:"1",105:"1.05",110:"1.1",125:"1.25",150:"1.5",200:"2"},caretColor:({theme:e})=>e("colors"),colors:({colors:e})=>({inherit:e.inherit,current:e.current,transparent:e.transparent,black:e.black,white:e.white,slate:e.slate,gray:e.gray,zinc:e.zinc,neutral:e.neutral,stone:e.stone,red:e.red,orange:e.orange,amber:e.amber,yellow:e.yellow,lime:e.lime,green:e.green,emerald:e.emerald,teal:e.teal,cyan:e.cyan,sky:e.sky,blue:e.blue,indigo:e.indigo,violet:e.violet,purple:e.purple,fuchsia:e.fuchsia,pink:e.pink,rose:e.rose}),columns:{auto:"auto",1:"1",2:"2",3:"3",4:"4",5:"5",6:"6",7:"7",8:"8",9:"9",10:"10",11:"11",12:"12","3xs":"16rem","2xs":"18rem",xs:"20rem",sm:"24rem",md:"28rem",lg:"32rem",xl:"36rem","2xl":"42rem","3xl":"48rem","4xl":"56rem","5xl":"64rem","6xl":"72rem","7xl":"80rem"},container:{},content:{none:"none"},contrast:{0:"0",50:".5",75:".75",100:"1",125:"1.25",150:"1.5",200:"2"},cursor:{auto:"auto",default:"default",pointer:"pointer",wait:"wait",text:"text",move:"move",help:"help","not-allowed":"not-allowed",none:"none","context-menu":"context-menu",progress:"progress",cell:"cell",crosshair:"crosshair","vertical-text":"vertical-text",alias:"alias",copy:"copy","no-drop":"no-drop",grab:"grab",grabbing:"grabbing","all-scroll":"all-scroll","col-resize":"col-resize","row-resize":"row-resize","n-resize":"n-resize","e-resize":"e-resize","s-resize":"s-resize","w-resize":"w-resize","ne-resize":"ne-resize","nw-resize":"nw-resize","se-resize":"se-resize","sw-resize":"sw-resize","ew-resize":"ew-resize","ns-resize":"ns-resize","nesw-resize":"nesw-resize","nwse-resize":"nwse-resize","zoom-in":"zoom-in","zoom-out":"zoom-out"},divideColor:({theme:e})=>e("borderColor"),divideOpacity:({theme:e})=>e("borderOpacity"),divideWidth:({theme:e})=>e("borderWidth"),dropShadow:{sm:"0 1px 1px rgb(0 0 0 / 0.05)",DEFAULT:["0 1px 2px rgb(0 0 0 / 0.1)","0 1px 1px rgb(0 0 0 / 0.06)"],md:["0 4px 3px rgb(0 0 0 / 0.07)","0 2px 2px rgb(0 0 0 / 0.06)"],lg:["0 10px 8px rgb(0 0 0 / 0.04)","0 4px 3px rgb(0 0 0 / 0.1)"],xl:["0 20px 13px rgb(0 0 0 / 0.03)","0 8px 5px rgb(0 0 0 / 0.08)"],"2xl":"0 25px 25px rgb(0 0 0 / 0.15)",none:"0 0 #0000"},fill:({theme:e})=>({none:"none",...e("colors")}),flex:{1:"1 1 0%",auto:"1 1 auto",initial:"0 1 auto",none:"none"},flexBasis:({theme:e})=>({auto:"auto",...e("spacing"),"1/2":"50%","1/3":"33.333333%","2/3":"66.666667%","1/4":"25%","2/4":"50%","3/4":"75%","1/5":"20%","2/5":"40%","3/5":"60%","4/5":"80%","1/6":"16.666667%","2/6":"33.333333%","3/6":"50%","4/6":"66.666667%","5/6":"83.333333%","1/12":"8.333333%","2/12":"16.666667%","3/12":"25%","4/12":"33.333333%","5/12":"41.666667%","6/12":"50%","7/12":"58.333333%","8/12":"66.666667%","9/12":"75%","10/12":"83.333333%","11/12":"91.666667%",full:"100%"}),flexGrow:{0:"0",DEFAULT:"1"},flexShrink:{0:"0",DEFAULT:"1"},fontFamily:{sans:["ui-sans-serif","system-ui","sans-serif",'"Apple Color Emoji"','"Segoe UI Emoji"','"Segoe UI Symbol"','"Noto Color Emoji"'],serif:["ui-serif","Georgia","Cambria",'"Times New Roman"',"Times","serif"],mono:["ui-monospace","SFMono-Regular","Menlo","Monaco","Consolas",'"Liberation Mono"','"Courier New"',"monospace"]},fontSize:{xs:["0.75rem",{lineHeight:"1rem"}],sm:["0.875rem",{lineHeight:"1.25rem"}],base:["1rem",{lineHeight:"1.5rem"}],lg:["1.125rem",{lineHeight:"1.75rem"}],xl:["1.25rem",{lineHeight:"1.75rem"}],"2xl":["1.5rem",{lineHeight:"2rem"}],"3xl":["1.875rem",{lineHeight:"2.25rem"}],"4xl":["2.25rem",{lineHeight:"2.5rem"}],"5xl":["3rem",{lineHeight:"1"}],"6xl":["3.75rem",{lineHeight:"1"}],"7xl":["4.5rem",{lineHeight:"1"}],"8xl":["6rem",{lineHeight:"1"}],"9xl":["8rem",{lineHeight:"1"}]},fontWeight:{thin:"100",extralight:"200",light:"300",normal:"400",medium:"500",semibold:"600",bold:"700",extrabold:"800",black:"900"},gap:({theme:e})=>e("spacing"),gradientColorStops:({theme:e})=>e("colors"),gradientColorStopPositions:{"0%":"0%","5%":"5%","10%":"10%","15%":"15%","20%":"20%","25%":"25%","30%":"30%","35%":"35%","40%":"40%","45%":"45%","50%":"50%","55%":"55%","60%":"60%","65%":"65%","70%":"70%","75%":"75%","80%":"80%","85%":"85%","90%":"90%","95%":"95%","100%":"100%"},grayscale:{0:"0",DEFAULT:"100%"},gridAutoColumns:{auto:"auto",min:"min-content",max:"max-content",fr:"minmax(0, 1fr)"},gridAutoRows:{auto:"auto",min:"min-content",max:"max-content",fr:"minmax(0, 1fr)"},gridColumn:{auto:"auto","span-1":"span 1 / span 1","span-2":"span 2 / span 2","span-3":"span 3 / span 3","span-4":"span 4 / span 4","span-5":"span 5 / span 5","span-6":"span 6 / span 6","span-7":"span 7 / span 7","span-8":"span 8 / span 8","span-9":"span 9 / span 9","span-10":"span 10 / span 10","span-11":"span 11 / span 11","span-12":"span 12 / span 12","span-full":"1 / -1"},gridColumnEnd:{auto:"auto",1:"1",2:"2",3:"3",4:"4",5:"5",6:"6",7:"7",8:"8",9:"9",10:"10",11:"11",12:"12",13:"13"},gridColumnStart:{auto:"auto",1:"1",2:"2",3:"3",4:"4",5:"5",6:"6",7:"7",8:"8",9:"9",10:"10",11:"11",12:"12",13:"13"},gridRow:{auto:"auto","span-1":"span 1 / span 1","span-2":"span 2 / span 2","span-3":"span 3 / span 3","span-4":"span 4 / span 4","span-5":"span 5 / span 5","span-6":"span 6 / span 6","span-7":"span 7 / span 7","span-8":"span 8 / span 8","span-9":"span 9 / span 9","span-10":"span 10 / span 10","span-11":"span 11 / span 11","span-12":"span 12 / span 12","span-full":"1 / -1"},gridRowEnd:{auto:"auto",1:"1",2:"2",3:"3",4:"4",5:"5",6:"6",7:"7",8:"8",9:"9",10:"10",11:"11",12:"12",13:"13"},gridRowStart:{auto:"auto",1:"1",2:"2",3:"3",4:"4",5:"5",6:"6",7:"7",8:"8",9:"9",10:"10",11:"11",12:"12",13:"13"},gridTemplateColumns:{none:"none",subgrid:"subgrid",1:"repeat(1, minmax(0, 1fr))",2:"repeat(2, minmax(0, 1fr))",3:"repeat(3, minmax(0, 1fr))",4:"repeat(4, minmax(0, 1fr))",5:"repeat(5, minmax(0, 1fr))",6:"repeat(6, minmax(0, 1fr))",7:"repeat(7, minmax(0, 1fr))",8:"repeat(8, minmax(0, 1fr))",9:"repeat(9, minmax(0, 1fr))",10:"repeat(10, minmax(0, 1fr))",11:"repeat(11, minmax(0, 1fr))",12:"repeat(12, minmax(0, 1fr))"},gridTemplateRows:{none:"none",subgrid:"subgrid",1:"repeat(1, minmax(0, 1fr))",2:"repeat(2, minmax(0, 1fr))",3:"repeat(3, minmax(0, 1fr))",4:"repeat(4, minmax(0, 1fr))",5:"repeat(5, minmax(0, 1fr))",6:"repeat(6, minmax(0, 1fr))",7:"repeat(7, minmax(0, 1fr))",8:"repeat(8, minmax(0, 1fr))",9:"repeat(9, minmax(0, 1fr))",10:"repeat(10, minmax(0, 1fr))",11:"repeat(11, minmax(0, 1fr))",12:"repeat(12, minmax(0, 1fr))"},height:({theme:e})=>({auto:"auto",...e("spacing"),"1/2":"50%","1/3":"33.333333%","2/3":"66.666667%","1/4":"25%","2/4":"50%","3/4":"75%","1/5":"20%","2/5":"40%","3/5":"60%","4/5":"80%","1/6":"16.666667%","2/6":"33.333333%","3/6":"50%","4/6":"66.666667%","5/6":"83.333333%",full:"100%",screen:"100vh",svh:"100svh",lvh:"100lvh",dvh:"100dvh",min:"min-content",max:"max-content",fit:"fit-content"}),hueRotate:{0:"0deg",15:"15deg",30:"30deg",60:"60deg",90:"90deg",180:"180deg"},inset:({theme:e})=>({auto:"auto",...e("spacing"),"1/2":"50%","1/3":"33.333333%","2/3":"66.666667%","1/4":"25%","2/4":"50%","3/4":"75%",full:"100%"}),invert:{0:"0",DEFAULT:"100%"},keyframes:{spin:{to:{transform:"rotate(360deg)"}},ping:{"75%, 100%":{transform:"scale(2)",opacity:"0"}},pulse:{"50%":{opacity:".5"}},bounce:{"0%, 100%":{transform:"translateY(-25%)",animationTimingFunction:"cubic-bezier(0.8,0,1,1)"},"50%":{transform:"none",animationTimingFunction:"cubic-bezier(0,0,0.2,1)"}}},letterSpacing:{tighter:"-0.05em",tight:"-0.025em",normal:"0em",wide:"0.025em",wider:"0.05em",widest:"0.1em"},lineHeight:{none:"1",tight:"1.25",snug:"1.375",normal:"1.5",relaxed:"1.625",loose:"2",3:".75rem",4:"1rem",5:"1.25rem",6:"1.5rem",7:"1.75rem",8:"2rem",9:"2.25rem",10:"2.5rem"},listStyleType:{none:"none",disc:"disc",decimal:"decimal"},listStyleImage:{none:"none"},margin:({theme:e})=>({auto:"auto",...e("spacing")}),lineClamp:{1:"1",2:"2",3:"3",4:"4",5:"5",6:"6"},maxHeight:({theme:e})=>({...e("spacing"),none:"none",full:"100%",screen:"100vh",svh:"100svh",lvh:"100lvh",dvh:"100dvh",min:"min-content",max:"max-content",fit:"fit-content"}),maxWidth:({theme:e,breakpoints:t})=>({...e("spacing"),none:"none",xs:"20rem",sm:"24rem",md:"28rem",lg:"32rem",xl:"36rem","2xl":"42rem","3xl":"48rem","4xl":"56rem","5xl":"64rem","6xl":"72rem","7xl":"80rem",full:"100%",min:"min-content",max:"max-content",fit:"fit-content",prose:"65ch",...t(e("screens"))}),minHeight:({theme:e})=>({...e("spacing"),full:"100%",screen:"100vh",svh:"100svh",lvh:"100lvh",dvh:"100dvh",min:"min-content",max:"max-content",fit:"fit-content"}),minWidth:({theme:e})=>({...e("spacing"),full:"100%",min:"min-content",max:"max-content",fit:"fit-content"}),objectPosition:{bottom:"bottom",center:"center",left:"left","left-bottom":"left bottom","left-top":"left top",right:"right","right-bottom":"right bottom","right-top":"right top",top:"top"},opacity:{0:"0",5:"0.05",10:"0.1",15:"0.15",20:"0.2",25:"0.25",30:"0.3",35:"0.35",40:"0.4",45:"0.45",50:"0.5",55:"0.55",60:"0.6",65:"0.65",70:"0.7",75:"0.75",80:"0.8",85:"0.85",90:"0.9",95:"0.95",100:"1"},order:{first:"-9999",last:"9999",none:"0",1:"1",2:"2",3:"3",4:"4",5:"5",6:"6",7:"7",8:"8",9:"9",10:"10",11:"11",12:"12"},outlineColor:({theme:e})=>e("colors"),outlineOffset:{0:"0px",1:"1px",2:"2px",4:"4px",8:"8px"},outlineWidth:{0:"0px",1:"1px",2:"2px",4:"4px",8:"8px"},padding:({theme:e})=>e("spacing"),placeholderColor:({theme:e})=>e("colors"),placeholderOpacity:({theme:e})=>e("opacity"),ringColor:({theme:e})=>({DEFAULT:e("colors.blue.500","#3b82f6"),...e("colors")}),ringOffsetColor:({theme:e})=>e("colors"),ringOffsetWidth:{0:"0px",1:"1px",2:"2px",4:"4px",8:"8px"},ringOpacity:({theme:e})=>
128({DEFAULT:"0.5",...e("opacity")}),ringWidth:{DEFAULT:"3px",0:"0px",1:"1px",2:"2px",4:"4px",8:"8px"},rotate:{0:"0deg",1:"1deg",2:"2deg",3:"3deg",6:"6deg",12:"12deg",45:"45deg",90:"90deg",180:"180deg"},saturate:{0:"0",50:".5",100:"1",150:"1.5",200:"2"},scale:{0:"0",50:".5",75:".75",90:".9",95:".95",100:"1",105:"1.05",110:"1.1",125:"1.25",150:"1.5"},screens:{sm:"640px",md:"768px",lg:"1024px",xl:"1280px","2xl":"1536px"},scrollMargin:({theme:e})=>({...e("spacing")}),scrollPadding:({theme:e})=>e("spacing"),sepia:{0:"0",DEFAULT:"100%"},skew:{0:"0deg",1:"1deg",2:"2deg",3:"3deg",6:"6deg",12:"12deg"},space:({theme:e})=>({...e("spacing")}),spacing:{px:"1px",0:"0px",.5:"0.125rem",1:"0.25rem",1.5:"0.375rem",2:"0.5rem",2.5:"0.625rem",3:"0.75rem",3.5:"0.875rem",4:"1rem",5:"1.25rem",6:"1.5rem",7:"1.75rem",8:"2rem",9:"2.25rem",10:"2.5rem",11:"2.75rem",12:"3rem",14:"3.5rem",16:"4rem",20:"5rem",24:"6rem",28:"7rem",32:"8rem",36:"9rem",40:"10rem",44:"11rem",48:"12rem",52:"13rem",56:"14rem",60:"15rem",64:"16rem",72:"18rem",80:"20rem",96:"24rem"},stroke:({theme:e})=>({none:"none",...e("colors")}),strokeWidth:{0:"0",1:"1",2:"2"},supports:{},data:{},textColor:({theme:e})=>e("colors"),textDecorationColor:({theme:e})=>e("colors"),textDecorationThickness:{auto:"auto","from-font":"from-font",0:"0px",1:"1px",2:"2px",4:"4px",8:"8px"},textIndent:({theme:e})=>({...e("spacing")}),textOpacity:({theme:e})=>e("opacity"),textUnderlineOffset:{auto:"auto",0:"0px",1:"1px",2:"2px",4:"4px",8:"8px"},transformOrigin:{center:"center",top:"top","top-right":"top right",right:"right","bottom-right":"bottom right",bottom:"bottom","bottom-left":"bottom left",left:"left","top-left":"top left"},transitionDelay:{0:"0s",75:"75ms",100:"100ms",150:"150ms",200:"200ms",300:"300ms",500:"500ms",700:"700ms",1e3:"1000ms"},transitionDuration:{DEFAULT:"150ms",0:"0s",75:"75ms",100:"100ms",150:"150ms",200:"200ms",300:"300ms",500:"500ms",700:"700ms",1e3:"1000ms"},transitionProperty:{none:"none",all:"all",DEFAULT:"color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, backdrop-filter",colors:"color, background-color, border-color, text-decoration-color, fill, stroke",opacity:"opacity",shadow:"box-shadow",transform:"transform"},transitionTimingFunction:{DEFAULT:"cubic-bezier(0.4, 0, 0.2, 1)",linear:"linear",in:"cubic-bezier(0.4, 0, 1, 1)",out:"cubic-bezier(0, 0, 0.2, 1)","in-out":"cubic-bezier(0.4, 0, 0.2, 1)"},translate:({theme:e})=>({...e("spacing"),"1/2":"50%","1/3":"33.333333%","2/3":"66.666667%","1/4":"25%","2/4":"50%","3/4":"75%",full:"100%"}),size:({theme:e})=>({auto:"auto",...e("spacing"),"1/2":"50%","1/3":"33.333333%","2/3":"66.666667%","1/4":"25%","2/4":"50%","3/4":"75%","1/5":"20%","2/5":"40%","3/5":"60%","4/5":"80%","1/6":"16.666667%","2/6":"33.333333%","3/6":"50%","4/6":"66.666667%","5/6":"83.333333%","1/12":"8.333333%","2/12":"16.666667%","3/12":"25%","4/12":"33.333333%","5/12":"41.666667%","6/12":"50%","7/12":"58.333333%","8/12":"66.666667%","9/12":"75%","10/12":"83.333333%","11/12":"91.666667%",full:"100%",min:"min-content",max:"max-content",fit:"fit-content"}),width:({theme:e})=>({auto:"auto",...e("spacing"),"1/2":"50%","1/3":"33.333333%","2/3":"66.666667%","1/4":"25%","2/4":"50%","3/4":"75%","1/5":"20%","2/5":"40%","3/5":"60%","4/5":"80%","1/6":"16.666667%","2/6":"33.333333%","3/6":"50%","4/6":"66.666667%","5/6":"83.333333%","1/12":"8.333333%","2/12":"16.666667%","3/12":"25%","4/12":"33.333333%","5/12":"41.666667%","6/12":"50%","7/12":"58.333333%","8/12":"66.666667%","9/12":"75%","10/12":"83.333333%","11/12":"91.666667%",full:"100%",screen:"100vw",svw:"100svw",lvw:"100lvw",dvw:"100dvw",min:"min-content",max:"max-content",fit:"fit-content"}),willChange:{auto:"auto",scroll:"scroll-position",contents:"contents",transform:"transform"},zIndex:{auto:"auto",0:"0",10:"10",20:"20",30:"30",40:"40",50:"50"}},plugins:[]};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return o}});const t=n(Q$),r=Ku;function n(a){return a&&a.__esModule?a:{default:a}}function o(a){var i;const s=((i=a==null?void 0:a.presets)!==null&&i!==void 0?i:[t.default]).slice().reverse().flatMap(d=>o(d instanceof Function?d():d)),l={respectDefaultRingColorOpacity:{theme:{ringColor:({theme:d})=>({DEFAULT:"#3b82f67f",...d("colors")})}},disableColorOpacityUtilitiesByDefault:{corePlugins:{backgroundOpacity:!1,borderOpacity:!1,divideOpacity:!1,placeholderOpacity:!1,ringOpacity:!1,textOpacity:!1}}},u=Object.keys(l).filter(d=>(0,r.flagEnabled)(a,d)).map(d=>l[d]);return[a,...u,...s]}})(Q1);
128(function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return o}});const t=n(A1),r=n(Q1);function n(a){return a&&a.__esModule?a:{default:a}}function o(...a){let[,...i]=(0,r.default)(a[0]);return(0,t.default)([...a,...i])}})(j1);let bd=j1;var Z$=(bd.__esModule?bd:{default:bd}).default;const e6=zc(Z$),t6={content:["./index.html","./src/**/*.{js,ts,jsx,tsx}"],corePlugins:{preflight:!1},darkMode:"class",plugins:[],theme:{extend:{colors:{}}}},{theme:r6}=e6(t6),n6=r6.colors,xg={dark:"#000000",light:"#FFFFFF"},Z1="cyan",o6=["50",...Array.from({length:9},(e,t)=>String((t+1)*100))],a6=(e=Z1)=>o6.reduce((t,r)=>(t[r]=n6[e][r],t),{}),Cg=a6(Z1),Sg="12px",i6="10px",wg={popperOptions:{strategy:"fixed"},modifiers:[{name:"flip",options:{padding:8}},{name:"preventOverflow",options:{padding:8,altAxis:!0,tether:!1}}],sx:{maxHeight:"min(44dvh, 320px)"}},kg={radius:{xs:"6px",sm:"8px",md:"10px",lg:"12px",xl:"16px"},colorSchemes:{light:{palette:{background:{body:xg.light},primary:Cg,success:{50:"#f3faf7",100:"#def5eb",200:"#b7e7d5",300:"#8ed9be",400:"#6ecdb0",500:"#4ec1a2",600:"#46b89a",700:"#3cae91",800:"#32a487",900:"#229d76"},danger:{50:"#fef2f2",100:"#fde8e8",200:"#fbd5d5",300:"#f9c1c1",400:"#f6a8a8",500:"#ef4444",600:"#dc2626",700:"#b91c1c",800:"#991b1b",900:"#7f1d1d"},warning:{50:"#fffdf7",100:"#fef8e1",200:"#fdecb2",300:"#fcd982",400:"#fbcf52",500:"#f9c222",600:"#f6b81e",700:"#f3ae1a",800:"#f0a416",900:"#e99b0e"}}},dark:{palette:{background:{body:xg.dark},primary:Cg}}},components:{JoyButton:{styleOverrides:{root:({ownerState:e})=>({minHeight:e.size==="lg"?"44px":e.size==="sm"?"36px":"40px",borderRadius:`var(--Button-radius, ${Sg})`,fontWeight:600,transition:"background-color 140ms ease, border-color 140ms ease, color 140ms ease, box-shadow 140ms ease, transform 100ms ease","&:active:not(:disabled)":{transform:"scale(0.98)"},"@media (prefers-reduced-motion: reduce)":{transition:"none","&:active:not(:disabled)":{transform:"none"}}})}},JoyIconButton:{styleOverrides:{root:({ownerState:e})=>({borderRadius:`var(--IconButton-radius, ${i6})`,transition:"background-color 140ms ease, border-color 140ms ease, color 140ms ease, transform 100ms ease","&:active:not(:disabled)":{transform:"scale(0.96)"},...e.size==="md"&&{minWidth:"40px",minHeight:"40px","@media (max-width: 768px)":{minWidth:"44px",minHeight:"44px"}},"@media (prefers-reduced-motion: reduce)":{transition:"none","&:active:not(:disabled)":{transform:"none"}}})}},JoyButtonGroup:{styleOverrides:{root:({ownerState:e,theme:t})=>({"--ButtonGroup-radius":Sg,...t.direction==="rtl"&&Rg(e)})}},JoyToggleButtonGroup:{styleOverrides:{root:({ownerState:e,theme:t})=>t.direction==="rtl"?Rg(e):{}}},JoySelect:{defaultProps:{slotProps:{listbox:wg}}},JoyAutocomplete:{defaultProps:{slotProps:{listbox:wg}}}}},$c="var(--ButtonGroup-radius)",jc="var(--unstable_childRadius)",_g="calc(var(--ButtonGroup-separatorSize) * -1)",Eg=`${jc} ${$c} ${$c} ${jc}`,Pg=`${$c} ${jc} ${jc} ${$c}`,Rg=e=>e.orientation==="vertical"?{}:{"& > [data-first-child]":{"--Button-radius":Eg,"--IconButton-radius":Eg},"& > [data-last-child]":{"--Button-radius":Pg,"--IconButton-radius":Pg},"& > :not([data-first-child]):not(:only-child)":{"--Button-margin":`0 ${_g} 0 0`,"--IconButton-margin":`0 ${_g} 0 0`}},s6={ltr:{theme:Ld({...kg,direction:"ltr"}),cache:pc({key:"dt",stylisPlugins:[bg]})},rtl:{theme:Ld({...kg,direction:"rtl"}),cache:pc({key:"dt-rtl",stylisPlugins:[bg,$1]})}},l6=({children:e})=>{const{isRTL:t}=Wu(),{cache:r,theme:n}=p.useMemo(()=>s6[t?"rtl":"ltr"],[t]);return c.jsx(H0,{value:r,children:c.jsxs(ow,{theme:n,children:[c.jsx(R4,{}),e]})})};l6.propTypes={children:mr.node};var eb={exports:{}};(function(e,t){(function(r,n){e.exports=n()})(Gb,function(){return function(r){function n(a){if(o[a])return o[a].exports;var i=o[a]={exports:{},id:a,loaded:!1};return r[a].call(i.exports,i,i.exports,n),i.loaded=!0,i.exports}var o={};return n.m=r,n.c=o,n.p="dist/",n(0)}([function(r,n,o){function a(L){return L&&L.__esModule?L:{default:L}}var i=Object.assign||function(L){for(var $=1;$<arguments.length;$++){var j=arguments[$];for(var A in j)Object.prototype.hasOwnProperty.call(j,A)&&(L[A]=j[A])}return L},s=o(1),l=(a(s),o(6)),u=a(l),d=o(7),f=a(d),h=o(8),g=a(h),m=o(9),v=a(m),x=o(10),w=a(x),S=o(11),y=a(S),_=o(14),R=a(_),O=[],b=!1,P={offset:120,delay:0,easing:"ease",duration:400,disable:!1,once:!1,startEvent:"DOMContentLoaded",throttleDelay:99,debounceDelay:50,disableMutationObserver:!1},E=function(){var L=arguments.length>0&&arguments[0]!==void 0&&arguments[0];if(L&&(b=!0),b)return O=(0,y.default)(O,P),(0,w.default)(O,P.once),O},T=function(){O=(0,R.default)(),E()},I=function(){O.forEach(function(L,$){L.node.removeAttribute("data-aos"),L.node.removeAttribute("data-aos-easing"),L.node.removeAttribute("data-aos-duration"),L.node.removeAttribute("data-aos-delay")})},k=function(L){return L===!0||L==="mobile"&&v.default.mobile()||L==="phone"&&v.default.phone()||L==="tablet"&&v.default.tablet()||typeof L=="function"&&L()===!0},D=function(L){P=i(P,L),O=(0,R.default)();var $=document.all&&!window.atob;return k(P.disable)||$?I():(P.disableMutationObserver||g.default.isSupported()||(P.disableMutationObserver=!0),document.querySelector("body").setAttribute("data-aos-easing",P.easing),document.querySelector("body").setAttribute("data-aos-duration",P.duration),document.querySelector("body").setAttribute("data-aos-delay",P.delay),P.startEvent==="DOMContentLoaded"&&["complete","
128interactive"].indexOf(document.readyState)>-1?E(!0):P.startEvent==="load"?window.addEventListener(P.startEvent,function(){E(!0)}):document.addEventListener(P.startEvent,function(){E(!0)}),window.addEventListener("resize",(0,f.default)(E,P.debounceDelay,!0)),window.addEventListener("orientationchange",(0,f.default)(E,P.debounceDelay,!0)),window.addEventListener("scroll",(0,u.default)(function(){(0,w.default)(O,P.once)},P.throttleDelay)),P.disableMutationObserver||g.default.ready("[data-aos]",T),O)};r.exports={init:D,refresh:E,refreshHard:T}},function(r,n){},,,,,function(r,n){(function(o){function a(k,D,L){function $(je){var ve=de,ne=re;return de=re=void 0,oe=je,G=k.apply(ne,ve)}function j(je){return oe=je,U=setTimeout(F,D),ge?$(je):G}function A(je){var ve=je-X,ne=je-oe,We=D-ve;return te?T(We,_e-ne):We}function M(je){var ve=je-X,ne=je-oe;return X===void 0||ve>=D||ve<0||te&&ne>=_e}function F(){var je=I();return M(je)?V(je):void(U=setTimeout(F,A(je)))}function V(je){return U=void 0,Ee&&de?$(je):(de=re=void 0,G)}function K(){U!==void 0&&clearTimeout(U),oe=0,de=X=re=U=void 0}function le(){return U===void 0?G:V(I())}function xe(){var je=I(),ve=M(je);if(de=arguments,re=this,X=je,ve){if(U===void 0)return j(X);if(te)return U=setTimeout(F,D),$(X)}return U===void 0&&(U=setTimeout(F,D)),G}var de,re,_e,G,U,X,oe=0,ge=!1,te=!1,Ee=!0;if(typeof k!="function")throw new TypeError(h);return D=d(D)||0,s(L)&&(ge=!!L.leading,te="maxWait"in L,_e=te?E(d(L.maxWait)||0,D):_e,Ee="trailing"in L?!!L.trailing:Ee),xe.cancel=K,xe.flush=le,xe}function i(k,D,L){var $=!0,j=!0;if(typeof k!="function")throw new TypeError(h);return s(L)&&($="leading"in L?!!L.leading:$,j="trailing"in L?!!L.trailing:j),a(k,D,{leading:$,maxWait:D,trailing:j})}function s(k){var D=typeof k>"u"?"undefined":f(k);return!!k&&(D=="object"||D=="function")}function l(k){return!!k&&(typeof k>"u"?"undefined":f(k))=="object"}function u(k){return(typeof k>"u"?"undefined":f(k))=="symbol"||l(k)&&P.call(k)==m}function d(k){if(typeof k=="number")return k;if(u(k))return g;if(s(k)){var D=typeof k.valueOf=="function"?k.valueOf():k;k=s(D)?D+"":D}if(typeof k!="string")return k===0?k:+k;k=k.replace(v,"");var L=w.test(k);return L||S.test(k)?y(k.slice(2),L?2:8):x.test(k)?g:+k}var f=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(k){return typeof k}:function(k){return k&&typeof Symbol=="function"&&k.constructor===Symbol&&k!==Symbol.prototype?"symbol":typeof k},h="Expected a function",g=NaN,m="[object Symbol]",v=/^\s+|\s+$/g,x=/^[-+]0x[0-9a-f]+$/i,w=/^0b[01]+$/i,S=/^0o[0-7]+$/i,y=parseInt,_=(typeof o>"u"?"undefined":f(o))=="object"&&o&&o.Object===Object&&o,R=(typeof self>"u"?"undefined":f(self))=="object"&&self&&self.Object===Object&&self,O=_||R||Function("return this")(),b=Object.prototype,P=b.toString,E=Math.max,T=Math.min,I=function(){return O.Date.now()};r.exports=i}).call(n,function(){return this}())},function(r,n){(function(o){function a(I,k,D){function L(Ee){var je=xe,ve=de;return xe=de=void 0,X=Ee,_e=I.apply(ve,je)}function $(Ee){return X=Ee,G=setTimeout(M,k),oe?L(Ee):_e}function j(Ee){var je=Ee-U,ve=Ee-X,ne=k-je;return ge?E(ne,re-ve):ne}function A(Ee){var je=Ee-U,ve=Ee-X;return U===void 0||je>=k||je<0||ge&&ve>=re}function M(){var Ee=T();return A(Ee)?F(Ee):void(G=setTimeout(M,j(Ee)))}function F(Ee){return G=void 0,te&&xe?L(Ee):(xe=de=void 0,_e)}function V(){G!==void 0&&clearTimeout(G),X=0,xe=U=de=G=void 0}function K(){return G===void 0?_e:F(T())}function le(){var Ee=T(),je=A(Ee);if(xe=arguments,de=this,U=Ee,je){if(G===void 0)return $(U);if(ge)return G=setTimeout(M,k),L(U)}return G===void 0&&(G=setTimeout(M,k)),_e}var xe,de,re,_e,G,U,X=0,oe=!1,ge=!1,te=!0;if(typeof I!="function")throw new TypeError(f);return k=u(k)||0,i(D)&&(oe=!!D.leading,ge="maxWait"in D,re=ge?P(u(D.maxWait)||0,k):re,te="trailing"in D?!!D.trailing:te),le.cancel=V,le.flush=K,le}function i(I){var k=typeof I>"u"?"undefined":d(I);return!!I&&(k=="object"||k=="function")}function s(I){return!!I&&(typeof I>"u"?"undefined":d(I))=="object"}function l(I){return(typeof I>"u"?"undefined":d(I))=="symbol"||s(I)&&b.call(I)==g}function u(I){if(typeof I=="number")return I;if(l(I))return h;if(i(I)){var k=typeof I.valueOf=="function"?I.valueOf():I;I=i(k)?k+"":k}if(typeof I!="string")return I===0?I:+I;I=I.replace(m,"");
128var D=x.test(I);return D||w.test(I)?S(I.slice(2),D?2:8):v.test(I)?h:+I}var d=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(I){return typeof I}:function(I){return I&&typeof Symbol=="function"&&I.constructor===Symbol&&I!==Symbol.prototype?"symbol":typeof I},f="Expected a function",h=NaN,g="[object Symbol]",m=/^\s+|\s+$/g,v=/^[-+]0x[0-9a-f]+$/i,x=/^0b[01]+$/i,w=/^0o[0-7]+$/i,S=parseInt,y=(typeof o>"u"?"undefined":d(o))=="object"&&o&&o.Object===Object&&o,_=(typeof self>"u"?"undefined":d(self))=="object"&&self&&self.Object===Object&&self,R=y||_||Function("return this")(),O=Object.prototype,b=O.toString,P=Math.max,E=Math.min,T=function(){return R.Date.now()};r.exports=a}).call(n,function(){return this}())},function(r,n){function o(d){var f=void 0,h=void 0;for(f=0;f<d.length;f+=1)if(h=d[f],h.dataset&&h.dataset.aos||h.children&&o(h.children))return!0;return!1}function a(){return window.MutationObserver||window.WebKitMutationObserver||window.MozMutationObserver}function i(){return!!a()}function s(d,f){var h=window.document,g=a(),m=new g(l);u=f,m.observe(h.documentElement,{childList:!0,subtree:!0,removedNodes:!0})}function l(d){d&&d.forEach(function(f){var h=Array.prototype.slice.call(f.addedNodes),g=Array.prototype.slice.call(f.removedNodes),m=h.concat(g);if(o(m))return u()})}Object.defineProperty(n,"__esModule",{value:!0});var u=function(){};n.default={isSupported:i,ready:s}},function(r,n){function o(h,g){if(!(h instanceof g))throw new TypeError("Cannot call a class as a function")}function a(){return navigator.userAgent||navigator.vendor||window.opera||""}Object.defineProperty(n,"__esModule",{value:!0});var i=function(){function h(g,m){for(var v=0;v<m.length;v++){var x=m[v];x.enumerable=x.enumerable||!1,x.configurable=!0,"value"in x&&(x.writable=!0),Object.defineProperty(g,x.key,x)}}return function(g,m,v){return m&&h(g.prototype,m),v&&h(g,v),g}}(),s=/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino/i,l=/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s\-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|\-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw\-(n|u)|c55\/|capi|ccwa|cdm\-|cell|chtm|cldc|cmd\-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc\-s|devi|dica|dmob|do(c|p)o|ds(12|\-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(\-|_)|g1 u|g560|gene|gf\-5|g\-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd\-(m|p|t)|hei\-|hi(pt|ta)|hp( i|ip)|hs\-c|ht(c(\-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i\-(20|go|ma)|i230|iac( |\-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc\-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|\-[a-w])|libw|lynx|m1\-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m\-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(\-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)\-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|\-([1-8]|c))|phil|pire|pl(ay|uc)|pn\-2|po(ck|rt|se)|prox|psio|pt\-g|qa\-a|qc(07|12|21|32|60|\-[2-7]|i\-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h\-|oo|p\-)|sdk\/|se(c(\-|0|1)|47|mc|nd|ri)|sgh\-|shar|sie(\-|m)|sk\-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h\-|v\-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl\-|tdg\-|tel(i|m)|tim\-|t\-mo|to(pl|sh)|ts(70|m\-|m3|m5)|tx\-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|\-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(\-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas\-|your|zeto|zte\-/i,u=/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino|android|ipad|playbook|silk/i,d=/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s\-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|\-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw\-(n|u)|c55\/|capi|ccwa|cdm\-|cell|chtm|cldc|cmd\-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc\-s|devi|dica|dmob|do(c|p)o|ds(12|\-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(\-|_)|g1 u|g560|gene|gf\-5|g\-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd\-(m|p|t)|hei\-|hi(pt|ta)|hp( i|ip)|hs\-c|ht(c(\-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i\-(20|go|ma)|i230|iac( |\-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc\-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|\-[a-w])|libw|lynx|m1\-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m\-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(\-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)\-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|\-([1-8]|c))|phil|pire|pl(ay|uc)|pn\-2|po(ck|rt|se)|prox|psio|pt\-g|qa\-a|qc(07|12|21|32|60|\-[2-7]|i\-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h\-|oo|p\-)|sdk\/|se(c(\-|0|1)|47|mc|nd|ri)|sgh\-|shar|sie(\-|m)|sk\-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h\-|v\-|v )|
128sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl\-|tdg\-|tel(i|m)|tim\-|t\-mo|to(pl|sh)|ts(70|m\-|m3|m5)|tx\-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|\-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(\-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas\-|your|zeto|zte\-/i,f=function(){function h(){o(this,h)}return i(h,[{key:"phone",value:function(){var g=a();return!(!s.test(g)&&!l.test(g.substr(0,4)))}},{key:"mobile",value:function(){var g=a();return!(!u.test(g)&&!d.test(g.substr(0,4)))}},{key:"tablet",value:function(){return this.mobile()&&!this.phone()}}]),h}();n.default=new f},function(r,n){Object.defineProperty(n,"__esModule",{value:!0});var o=function(i,s,l){var u=i.node.getAttribute("data-aos-once");s>i.position?i.node.classList.add("aos-animate"):typeof u<"u"&&(u==="false"||!l&&u!=="true")&&i.node.classList.remove("aos-animate")},a=function(i,s){var l=window.pageYOffset,u=window.innerHeight;i.forEach(function(d,f){o(d,u+l,s)})};n.default=a},function(r,n,o){function a(u){return u&&u.__esModule?u:{default:u}}Object.defineProperty(n,"__esModule",{value:!0});var i=o(12),s=a(i),l=function(u,d){return u.forEach(function(f,h){f.n
128ode.classList.add("aos-init"),f.position=(0,s.default)(f.node,d.offset)}),u};n.default=l},function(r,n,o){function a(u){return u&&u.__esModule?u:{default:u}}Object.defineProperty(n,"__esModule",{value:!0});var i=o(13),s=a(i),l=function(u,d){var f=0,h=0,g=window.innerHeight,m={offset:u.getAttribute("data-aos-offset"),anchor:u.getAttribute("data-aos-anchor"),anchorPlacement:u.getAttribute("data-aos-anchor-placement")};switch(m.offset&&!isNaN(m.offset)&&(h=parseInt(m.offset)),m.anchor&&document.querySelectorAll(m.anchor)&&(u=document.querySelectorAll(m.anchor)[0]),f=(0,s.default)(u).top,m.anchorPlacement){case"top-bottom":break;case"center-bottom":f+=u.offsetHeight/2;break;case"bottom-bottom":f+=u.offsetHeight;break;case"top-center":f+=g/2;break;case"bottom-center":f+=g/2+u.offsetHeight;break;case"center-center":f+=g/2+u.offsetHeight/2;break;case"top-top":f+=g;break;case"bottom-top":f+=u.offsetHeight+g;break;case"center-top":f+=u.offsetHeight/2+g}return m.anchorPlacement||m.offset||isNaN(d)||(h=d),f+h};n.default=l},function(r,n){Object.defineProperty(n,"__esModule",{value:!0});var o=function(a){for(var i=0,s=0;a&&!isNaN(a.offsetLeft)&&!isNaN(a.offsetTop);)i+=a.offsetLeft-(a.tagName!="BODY"?a.scrollLeft:0),s+=a.offsetTop-(a.tagName!="BODY"?a.scrollTop:0),a=a.offsetParent;return{top:s,left:i}};n.default=o},function(r,n){Object.defineProperty(n,"__esModule",{value:!0});var o=function(a){return a=a||document.querySelectorAll("[data-aos]"),Array.prototype.map.call(a,function(i){return{node:i}})};n.default=o}])})})(eb);var c6=eb.exports;const u6=zc(c6);/*! js-cookie v3.0.7 | MIT */function jl(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)n!=="__proto__"&&(e[n]=r[n])}return e}var d6={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 Cf(e,t){function r(o,a,i){if(!(typeof document>"u")){i=jl({},t,i),typeof i.expires=="number"&&(i.expires=new Date(Date.now()+i.expires*864e5)),i.expires&&(i.expires=i.expires.toUTCString()),o=encodeURIComponent(o).replace(/%(2[346B]|5E|60|7C)/g,decodeURIComponent).replace(/[()]/g,escape);var s="";for(var l in i)i[l]&&(s+="; "+l,i[l]!==!0&&(s+="="+i[l].split(";")[0]));return document.cookie=o+"="+e.write(a,o)+s}}function n(o){if(!(typeof document>"u"||arguments.length&&!o)){for(var a=document.cookie?document.cookie.split("; "):[],i={},s=0;s<a.length;s++){var l=a[s].split("="),u=l.slice(1).join("=");try{var d=decodeURIComponent(l[0]);if(d in i||(i[d]=e.read(u,d)),o===d)break}catch{}}return o?i[o]:i}}return Object.create({set:r,get:n,remove:function(o,a){r(o,"",jl({},a,{expires:-1}))},withAttributes:function(o){return Cf(this.converter,jl({},this.attributes,o))},withConverter:function(o){return Cf(jl({},this.converter,o),this.attributes)}},{attributes:{value:Object.freeze(t)},converter:{value:Object.freeze(e)}})}var Tg=Cf(d6,{path:"/"});const f6=()=>{p.useEffect(()=>{Tg.get("cookies_permission")!=="true"&&t(!0)},[]);const[e,t]=p.useState(!1),r=()=>{Tg.set("cookies_permission","true"),t(!1)};return c.jsxs(hP,{open:e,anchorOrigin:{vertical:"bottom",horizontal:"center"},onClose:(n,o)=>{o!=="clickaway"&&r()},children:["We use cookies to ensure you get the best experience on our website.",c.jsx(wr,{variant:"soft",onClick:r,children:"Accept"})]})},h6=["random","least_assigned","least_completed","keep_last_assigned"],p6=()=>{const[e,t]=p.useState("random"),[r,n]=p.useState([{userId:3,id:3,displayName:"Ryan"}]),[o,a]=p.useState(3),i=[{userId:1,id:1,displayName:"Mo"},{userId:2,id:2,displayName:"Jiji"},{userId:3,id:3,displayName:"Ryan"}];return c.jsxs(c.Fragment,{children:[c.jsxs(bt,{item:!0,xs:12,sm:6,"data-aos-create-chore-assignee":!0,children:[c.jsxs(ce,{mt:2,"data-aos-delay":200,"data-aos-anchor":"[data-aos-create-chore-assignee]","data-aos":"fade-right",children:[c.jsx(ue,{level:"h4",children:"Assignees:"}),c.jsx(ue,{level:"h5",children:"Who can do this chore?"}),c.jsx(kr,{children:c.jsx(Un,{orientation:"horizontal",wrap:!0,sx:{"--List-gap":"8px","--ListItem-radius":"20px"},children:i==null?void 0:i.map(s=>c.jsx(Tr,{children:c.jsx(fo,{checked:r.find(l=>l.userId==s.id)!=null,onClick:()=>{r.find(l=>l.userId==s.id)?n(r.filter(l=>
128l.userId!==s.id)):n([...r,{userId:s.id}])},overlay:!0,disableIcon:!0,variant:"soft",label:s.displayName})},s.id))})})]}),c.jsxs(ce,{mt:2,"data-aos-delay":300,"data-aos-anchor":"[data-aos-create-chore-assignee]","data-aos":"fade-right",children:[c.jsx(ue,{level:"h4",children:"Assigned:"}),c.jsx(ue,{level:"h5",children:"Who is assigned the next due chore?"}),c.jsx(Ri,{placeholder:r.length===0?"No Assignees yet can perform this chore":"Select an assignee for this chore",disabled:r.length===0,value:o>-1?o:null,children:i==null?void 0:i.filter(s=>r.find(l=>l.userId==s.userId)).map((s,l)=>c.jsx(Ca,{value:s.id,onClick:()=>{},children:s.displayName},s.displayName))})]}),c.jsxs(ce,{mt:2,"data-aos-delay":400,"data-aos-anchor":"[data-aos-create-chore-assignee]","data-aos":"fade-right",children:[c.jsx(ue,{level:"h4",children:"Picking Mode:"}),c.jsx(ue,{level:"h5",children:"How to pick the next assignee for the following chore?"}),c.jsx(kr,{children:c.jsx(Un,{orientation:"horizontal",wrap:!0,sx:{"--List-gap":"8px","--ListItem-radius":"20px"},children:h6.map((s,l)=>c.jsx(Tr,{children:c.jsx(fo,{checked:e===s,onClick:()=>t(s),overlay:!0,disableIcon:!0,variant:"soft",label:s.split("_").map(u=>u.charAt(0).toUpperCase()+u.slice(1)).join(" ")})},s))})})]})]}),c.jsx(bt,{item:!0,xs:12,sm:6,"data-aos-create-chore-section-assignee":!0,children:c.jsxs(kr,{sx:{p:4,py:6},"data-aos-delay":200,"data-aos-anchor":"[data-aos-create-chore-section-assignee]","data-aos":"fade-left",children:[c.jsx(ue,{level:"h3",textAlign:"center",sx:{mt:2,mb:4},children:"Flexible Task Assignment"}),c.jsx(ue,{level:"body-lg",textAlign:"center",sx:{mb:4},children:"Whether youâre a solo user managing personal tasks or coordinating chores with others, Donetick provides robust assignment options. Assign tasks to different people and choose specific rotation strategies, such as assigning tasks based on who completed the most or least, randomly rotating assignments, or sticking with the last assigned person."})]})})]})};function tb(e){return mS(e)}var xl={},rb={exports:{}};(function(e){function t(r){return r&&r.__esModule?r:{default:r}}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports})(rb);var Qi=rb.exports;const m6=Kn(hx);var xd={exports:{}},Ig;function g6(){return Ig||(Ig=1,function(e){function t(r,n){if(r==null)return{};var o={};for(var a in r)if({}.hasOwnProperty.call(r,a)){if(n.indexOf(a)!==-1)continue;o[a]=r[a]}return o}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports}(xd)),xd.exports}const v6=Kn(w2),y6=Kn(k2),b6=Kn(T2),x6=Kn(PC),C6=Kn(mC),S6=Kn(xC);var Zi=Qi;Object.defineProperty(xl,"__esModule",{value:!0});var w6=xl.default=L6;xl.shouldForwardProp=lc;xl.systemDefaultTheme=void 0;var rn=Zi(m6),Sf=Zi(g6()),Ac=I6(v6),k6=y6;Zi(b6);Zi(x6);var _6=Zi(C6),E6=Zi(S6);const P6=["ownerState"],R6=["variants"],T6=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function nb(e){if(typeof WeakMap!="function")return null;var t=new WeakMap,r=new WeakMap;return(nb=function(n){return n?r:t})(e)}function I6(e,t){if(e&&e.__esModule)return e;if(e===null||typeof e!="object"&&typeof e!="function")return{default:e};var r=nb(t);if(r&&r.has(e))return r.get(e);var n={__proto__:null},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if(a!=="default"&&Object.prototype.hasOwnProperty.call(e,a)){var i=o?Object.getOwnPropertyDescriptor(e,a):null;i&&(i.get||i.set)?Object.defineProperty(n,a,i):n[a]=e[a]}return n.default=e,r&&r.set(e,n),n}function D6(e){return Object.keys(e).length===0}function O6(e){return typeof e=="string"&&e.charCodeAt(0)>96}function lc(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}function Dg(e,t){return t&&e&&typeof e=="object"&&e.styles&&!e.styles.startsWith("@layer")&&(e.styles=`@layer ${t}{${String(e.styles)}}`),e}const $6=xl.systemDefaultTheme=(0,_6.default)(),j6=e=>e&&e.charAt(0).toLowerCase()+e.slice(1);function Al({defaultTheme:e,theme:t,themeId:r}){return D6(t)?e:t[r]||t}function A6(e){return e?(t,r)=>r[e]:null}function cc(e,t,r){let{ownerState:n}=t,o=(0,Sf.default)(t,P6);const a=typeof e=="function"?e((0,rn.default)({ownerState:n},o)):e;if(Array.isArray(a))return a.flatMap(i=>cc(i,(0,rn.default)({ownerState:n},o),r));
128if(a&&typeof a=="object"&&Array.isArray(a.variants)){const{variants:i=[]}=a;let l=(0,Sf.default)(a,R6);return i.forEach(u=>{let d=!0;if(typeof u.props=="function"?d=u.props((0,rn.default)({ownerState:n},o,n)):Object.keys(u.props).forEach(f=>{(n==null?void 0:n[f])!==u.props[f]&&o[f]!==u.props[f]&&(d=!1)}),d){Array.isArray(l)||(l=[l]);const f=typeof u.style=="function"?u.style((0,rn.default)({ownerState:n},o,n)):u.style;l.push(r?Dg((0,Ac.internal_serializeStyles)(f),r):f)}}),l}return r?Dg((0,Ac.internal_serializeStyles)(a),r):a}function L6(e={}){const{themeId:t,defaultTheme:r=$6,rootShouldForwardProp:n=lc,slotShouldForwardProp:o=lc}=e,a=i=>(0,E6.default)((0,rn.default)({},i,{theme:Al((0,rn.default)({},i,{defaultTheme:r,themeId:t}))}));return a.__mui_systemSx=!0,(i,s={})=>{(0,Ac.internal_processStyles)(i,O=>O.filter(b=>!(b!=null&&b.__mui_systemSx)));const{name:l,slot:u,skipVariantsResolver:d,skipSx:f,overridesResolver:h=A6(j6(u))}=s,g=(0,Sf.default)(s,T6),m=l&&l.startsWith("Mui")||u?"components":"custom",v=d!==void 0?d:u&&u!=="Root"&&u!=="root"||!1,x=f||!1;let w,S=lc;u==="Root"||u==="root"?S=n:u?S=o:O6(i)&&(S=void 0);const y=(0,Ac.default)(i,(0,rn.default)({shouldForwardProp:S,label:w},g)),_=O=>typeof O=="function"&&O.__emotion_real!==O||(0,k6.isPlainObject)(O)?b=>{const P=Al({theme:b.theme,defaultTheme:r,themeId:t});return cc(O,(0,rn.default)({},b,{theme:P}),P.modularCssLayers?m:void 0)}:O,R=(O,...b)=>{let P=_(O);const E=b?b.map(_):[];l&&h&&E.push(k=>{const D=Al((0,rn.default)({},k,{defaultTheme:r,themeId:t}));if(!D.components||!D.components[l]||!D.components[l].styleOverrides)return null;const L=D.components[l].styleOverrides,$={};return Object.entries(L).forEach(([j,A])=>{$[j]=cc(A,(0,rn.default)({},k,{theme:D}),D.modularCssLayers?"theme":void 0)}),h(k,$)}),l&&!v&&E.push(k=>{var D;const L=Al((0,rn.default)({},k,{defaultTheme:r,themeId:t})),$=L==null||(D=L.components)==null||(D=D[l])==null?void 0:D.variants;return cc({variants:$},(0,rn.default)({},k,{theme:L}),L.modularCssLayers?"theme":void 0)}),x||E.push(a);const T=E.length-b.length;if(Array.isArray(O)&&T>0){const k=new Array(T).fill("");P=[...O,...k],P.raw=[...O.raw,...k]}const I=y(P,...E);return i.muiName&&(I.muiName=i.muiName),I};return y.withConfig&&(R.withConfig=y.withConfig),R}}function M6(e,t){return C({toolbar:{minHeight:56,[e.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[e.up("sm")]:{minHeight:64}}},t)}var ar={};const z6=Kn(fx),N6=Kn(NC);var ob=Qi;Object.defineProperty(ar,"__esModule",{value:!0});ar.alpha=lb;ar.blend=Q6;ar.colorChannel=void 0;var F6=ar.darken=ap;ar.decomposeColor=pn;ar.emphasize=cb;var H6=ar.getContrastRatio=G6;ar.getLuminance=Lc;ar.hexToRgb=ab;ar.hslToRgb=sb;var B6=ar.lighten=ip;ar.private_safeAlpha=K6;ar.private_safeColorChannel=void 0;ar.private_safeDarken=J6;ar.private_safeEmphasize=X6;ar.private_safeLighten=q6;ar.recomposeColor=es;ar.rgbToHex=Y6;var Og=ob(z6),W6=ob(N6);function op(e,t=0,r=1){return(0,W6.default)(e,t,r)}function ab(e){e=e.slice(1);const t=new RegExp(`.{1,${e.length>=6?2:1}}`,"g");let r=e.match(t);return r&&r[0].length===1&&(r=r.map(n=>n+n)),r?`rgb${r.length===4?"a":""}(${r.map((n,o)=>o<3?parseInt(n,16):Math.round(parseInt(n,16)/255*1e3)/1e3).join(", ")})`:""}function U6(e){const t=e.toString(16);return t.length===1?`0${t}`:t}function pn(e){if(e.type)return e;if(e.charAt(0)==="#")return pn(ab(e));const t=e.indexOf("("),r=e.substring(0,t);if(["rgb","rgba","hsl","hsla","color"].indexOf(r)===-1)throw new Error((0,Og.default)(9,e));let n=e.substring(t+1,e.length-1),o;if(r==="color"){if(n=n.split(" "),o=n.shift(),n.length===4&&n[3].charAt(0)==="/"&&(n[3]=n[3].slice(1)),["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].indexOf(o)===-1)throw new Error((0,Og.default)(10,o))}else n=n.split(",");return n=n.map(a=>parseFloat(a)),{type:r,values:n,colorSpace:o}}const ib=e=>{const t=pn(e);return t.values.slice(0,3).map((r,n)=>t.type.indexOf("hsl")!==-1&&n!==0?`${r}%`:r).join(" ")};ar.colorChannel=ib;const V6=(e,t)=>{try{return ib(e)}catch{return e}};ar.private_safeColorChannel=V6;function es(e){const{type:t,colorSpace:r}=e;let{values:n}=e;return t.indexOf("rgb")!==-1?n=n.map((o,a)=>a<3?parseInt(o,10):o):t.indexOf("hsl")!==-1&&(n[1]=`${n[1]}%`,n[2]=`${n[2]}%`),t.indexOf("color")!==-1?n=`${r} ${n.join(" ")}`:n=`${n.join(", ")}`,`${t}(${n})`}function Y6(e){if(e.indexOf("#")===0)return e;const{values:t}=pn(e);return`#${t.map((r,n)=>U6(n===3?Math.round(255*r):r)).join("")}`}
vendor: 5,130 bytes, line 128
128function sb(e){e=pn(e);const{values:t}=e,r=t[0],n=t[1]/100,o=t[2]/100,a=n*Math.min(o,1-o),i=(u,d=(u+r/30)%12)=>o-a*Math.max(Math.min(d-3,9-d,1),-1);let s="rgb";const l=[Math.round(i(0)*255),Math.round(i(8)*255),Math.round(i(4)*255)];return e.type==="hsla"&&(s+="a",l.push(t[3])),es({type:s,values:l})}function Lc(e){e=pn(e);let t=e.type==="hsl"||e.type==="hsla"?pn(sb(e)).values:e.values;return t=t.map(r=>(e.type!=="color"&&(r/=255),r<=.03928?r/12.92:((r+.055)/1.055)**2.4)),Number((.2126*t[0]+.7152*t[1]+.0722*t[2]).toFixed(3))}function G6(e,t){const r=Lc(e),n=Lc(t);return(Math.max(r,n)+.05)/(Math.min(r,n)+.05)}function lb(e,t){return e=pn(e),t=op(t),(e.type==="rgb"||e.type==="hsl")&&(e.type+="a"),e.type==="color"?e.values[3]=`/${t}`:e.values[3]=t,es(e)}function K6(e,t,r){try{return lb(e,t)}catch{return e}}function ap(e,t){if(e=pn(e),t=op(t),e.type.indexOf("hsl")!==-1)e.values[2]*=1-t;else if(e.type.indexOf("rgb")!==-1||e.type.indexOf("color")!==-1)for(let r=0;r<3;r+=1)e.values[r]*=1-t;return es(e)}function J6(e,t,r){try{return ap(e,t)}catch{return e}}function ip(e,t){if(e=pn(e),t=op(t),e.type.indexOf("hsl")!==-1)e.values[2]+=(100-e.values[2])*t;else if(e.type.indexOf("rgb")!==-1)for(let r=0;r<3;r+=1)e.values[r]+=(255-e.values[r])*t;else if(e.type.indexOf("color")!==-1)for(let r=0;r<3;r+=1)e.values[r]+=(1-e.values[r])*t;return es(e)}function q6(e,t,r){try{return ip(e,t)}catch{return e}}function cb(e,t=.15){return Lc(e)>.5?ap(e,t):ip(e,t)}function X6(e,t,r){try{return cb(e,t)}catch{return e}}function Q6(e,t,r,n=1){const o=(l,u)=>Math.round((l**(1/n)*(1-r)+u**(1/n)*r)**n),a=pn(e),i=pn(t),s=[o(a.values[0],i.values[0]),o(a.values[1],i.values[1]),o(a.values[2],i.values[2])];return es({type:"rgb",values:s})}const Js={black:"#000",white:"#fff"},Z6={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"},Wa={50:"#f3e5f5",200:"#ce93d8",300:"#ba68c8",400:"#ab47bc",500:"#9c27b0",700:"#7b1fa2"},Ua={300:"#e57373",400:"#ef5350",500:"#f44336",700:"#d32f2f",800:"#c62828"},hs={300:"#ffb74d",400:"#ffa726",500:"#ff9800",700:"#f57c00",900:"#e65100"},Va={50:"#e3f2fd",200:"#90caf9",400:"#42a5f5",700:"#1976d2",800:"#1565c0"},Ya={300:"#4fc3f7",400:"#29b6f6",500:"#03a9f4",700:"#0288d1",900:"#01579b"},Ga={300:"#81c784",400:"#66bb6a",500:"#4caf50",700:"#388e3c",800:"#2e7d32",900:"#1b5e20"},ej=["mode","contrastThreshold","tonalOffset"],$g={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:Js.white,default:Js.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}},Cd={text:{primary:Js.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:Js.white,hover:"rgba(255, 255, 255, 0.08)",hoverOpacity:.08,selected:"rgba(255, 255, 255, 0.16)",selectedOpacity:.16,disabled:"rgba(255, 255, 255, 0.3)",disabledBackground:"rgba(255, 255, 255, 0.12)",disabledOpacity:.38,focus:"rgba(255, 255, 255, 0.12)",focusOpacity:.12,activatedOpacity:.24}};function jg(e,t,r,n){const o=n.light||n,a=n.dark||n*1.5;e[t]||(e.hasOwnProperty(r)?e[t]=e[r]:t==="light"?e.light=B6(e.main,o):t==="dark"&&(e.dark=F6(e.main,a)))}function tj(e="light"){return e==="dark"?{main:Va[200],light:Va[50],dark:Va[400]}:{main:Va[700],light:Va[400],dark:Va[800]}}function rj(e="light"){return e==="dark"?{main:Wa[200],light:Wa[50],dark:Wa[400]}:{main:Wa[500],light:Wa[300],dark:Wa[700]}}function nj(e="light"){return e==="dark"?{main:Ua[500],light:Ua[300],dark:Ua[700]}:{main:Ua[700],light:Ua[400],dark:Ua[800]}}function oj(e="light"){return e==="dark"?{main:Ya[400],light:Ya[300],dark:Ya[700]}:{main:Ya[700],light:Ya[500],dark:Ya[900]}}function aj(e="light"){return e==="dark"?{main:Ga[400],light:Ga[300],dark:Ga[700]}:{main:Ga[800],light:Ga[500],dark:Ga[900]}}function ij(e="light"){return e==="dark"?{main:hs[400],light:hs[300],dark:hs[700]}:{main:"#ed6c02",light:hs[500],dark:hs[900]}}function sj(e){const{mode:t="light",contrastThreshold:r=3,tonalOffset:n=.2}=e,o=we(e,ej),a=e.primary||tj(t),i=e.secondary||rj(t),s=e.error||nj(t),l=e.info||oj(t),u=e.success||aj(t),d=e.warning||ij(t);function f(v){return H6(v,Cd.text.primary)>=r?Cd.text.primary:$g.text.primary}const h=({color:v,name:x,mainShade:w=500,lightShade:S=300,darkShade:y=700})=>{if(v=C({},v),!v.main&&v[w]&&(v.main=v[w]),!v.hasOwnProperty("main"))throw new Error(vo(11,x?` (${x})`:"",w));if(typeof v.main!="string")throw new Error(vo(12,x?` (${x})`:"",JSON.stringify(v.main)));return jg(v,"light",S,n),jg(v,"dark",y,n),v.contrastText||(v.contrastText=f(v.main)),v},g={dark:Cd,light:$g};return vr(C({common:C({},Js),mode:t,primary:h({color:a,name:"primary"}
128),secondary:h({color:i,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:h({color:s,name:"error"}),warning:h({color:d,name:"warning"}),info:h({color:l,name:"info"}),success:h({color:u,name:"success"}),grey:Z6,contrastThreshold:r,getContrastText:f,augmentColor:h,tonalOffset:n},g[t]),o)}const lj=["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"];function cj(e){return Math.round(e*1e5)/1e5}const Ag={textTransform:"uppercase"},Lg='"Roboto", "Helvetica", "Arial", sans-serif';function uj(e,t){const r=typeof t=="function"?t(e):t,{fontFamily:n=Lg,fontSize:o=14,fontWeightLight:a=300,fontWeightRegular:i=400,fontWeightMedium:s=500,fontWeightBold:l=700,htmlFontSize:u=16,allVariants:d,pxToRem:f}=r,h=we(r,lj),g=o/14,m=f||(w=>`${w/u*g}rem`),v=(w,S,y,_,R)=>C({fontFamily:n,fontWeight:w,fontSize:m(S),lineHeight:y},n===Lg?{letterSpacing:`${cj(_/S)}em`}:{},R,d),x={h1:v(a,96,1.167,-1.5),h2:v(a,60,1.2,-.5),h3:v(i,48,1.167,0),h4:v(i,34,1.235,.25),h5:v(i,24,1.334,0),h6:v(s,20,1.6,.15),subtitle1:v(i,16,1.75,.15),subtitle2:v(s,14,1.57,.1),body1:v(i,16,1.5,.15),body2:v(i,14,1.43,.15),button:v(s,14,1.75,.4,Ag),caption:v(i,12,1.66,.4),overline:v(i,12,2.66,1,Ag),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return vr(C({htmlFontSize:u,pxToRem:m,fontFamily:n,fontSize:o,fontWeightLight:a,fontWeightRegular:i,fontWeightMedium:s,fontWeightBold:l},x),h,{clone:!1})}const dj=.2,fj=.14,hj=.12;function qt(...e){return[`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,${dj})`,`${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,${fj})`,`${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,${hj})`].join(",")}const pj=["none",qt(0,2,1,-1,0,1,1,0,0,1,3,0),qt(0,3,1,-2,0,2,2,0,0,1,5,0),qt(0,3,3,-2,0,3,4,0,0,1,8,0),qt(0,2,4,-1,0,4,5,0,0,1,10,0),qt(0,3,5,-1,0,5,8,0,0,1,14,0),qt(0,3,5,-1,0,6,10,0,0,1,18,0),qt(0,4,5,-2,0,7,10,1,0,2,16,1),qt(0,5,5,-3,0,8,10,1,0,3,14,2),qt(0,5,6,-3,0,9,12,1,0,3,16,2),qt(0,6,6,-3,0,10,14,1,0,4,18,3),qt(0,6,7,-4,0,11,15,1,0,4,20,3),qt(0,7,8,-4,0,12,17,2,0,5,22,4),qt(0,7,8,-4,0,13,19,2,0,5,24,4),qt(0,7,9,-4,0,14,21,2,0,5,26,4),qt(0,8,9,-5,0,15,22,2,0,6,28,5),qt(0,8,10,-5,0,16,24,2,0,6,30,5),qt(0,8,11,-5,0,17,26,2,0,6,32,5),qt(0,9,11,-5,0,18,28,2,0,7,34,6),qt(0,9,12,-6,0,19,29,2,0,7,36,6),qt(0,10,13,-6,0,20,31,3,0,8,38,7),qt(0,10,13,-6,0,21,33,3,0,8,40,7),qt(0,10,14,-6,0,22,35,3,0,8,42,7),qt(0,11,14,-7,0,23,36,3,0,9,44,8),qt(0,11,15,-7,0,24,38,3,0,9,46,8)],mj=["duration","easing","delay"],gj={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)"},vj={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function Mg(e){return`${Math.round(e)}ms`}function yj(e){if(!e)return 0;const t=e/36;return Math.round((4+15*t**.25+t/5)*10)}function bj(e){const t=C({},gj,e.easing),r=C({},vj,e.duration);return C({getAutoHeightDuration:yj,create:(o=["all"],a={})=>{const{duration:i=r.standard,easing:s=t.easeInOut,delay:l=0}=a;return we(a,mj),(Array.isArray(o)?o:[o]).map(u=>`${u} ${typeof i=="string"?i:Mg(i)} ${s} ${typeof l=="string"?l:Mg(l)}`).join(",")}},e,{easing:t,duration:r})}const xj={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500},Cj=["breakpoints","mixins","spacing","palette","transitions","typography","shape"];function ub(e={},...t){const{mixins:r={},palette:n={},transitions:o={},typography:a={}}=e,i=we(e,Cj);if(e.vars&&e.generateCssVars===void 0)throw new Error(vo(18));const s=sj(n),l=Mi(e);let u=vr(l,{mixins:M6(l.breakpoints,r),palette:s,shadows:pj.slice(),typography:uj(s,a),transitions:bj(o),zIndex:C({},xj)});return u=vr(u,i),u=t.reduce((d,f)=>vr(d,f),u),u.unstable_sxConfig=C({},Li,i==null?void 0:i.unstable_sxConfig),u.unstable_sx=function(f){return Da({sx:f,theme:this})},u}const db=ub(),sp="$$material";function Sj(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const wj=e=>Sj(e)&&e!=="classes",fb=w6({themeId:sp,defaultTheme:db,rootShouldForwardProp:wj});function kj(e){return Fi("MuiSvgIcon",e)}il("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const _j=["children","className","color","component","fontSize","htmlColor","inheritViewBox","titleAccess","viewBox"],Ej=e=>{const{color:t,fontSize:r,classes:n}=e,o={root:["root",t!=="inherit"&&`color${ae(t)}`,`fontSize${ae(r)}`]};return ot(o,kj,n)},Pj=fb("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.color!=="inherit"&&t[`color${ae(r.color)}`],t[`fontSize${ae(r.fontSize)}`]]}})(({theme:e,ownerState:t})=>{var r,n,o,a,i,s,l,u,d,f,h,g,m;return{userSelect:"none",width:"1em",height:"1em",display:"inline-block",fill:t.hasSvgAsChild?void 0:"currentColor",flexShrink:0,transition:(r=e.transitions)==null||(n=r.create)==null?void 0:n.call(r,"fill",{duration:(o=e.transitions)==null||(o=o.duration)==null?void 0:o.shorter}),fontSize:{inherit:"inherit",small:((a=e.typography)==null||(i=a.pxToRem)==null?void 0:i.call(a,20))||"1.25rem",medium:((s=e.typography)==null||(l=s.pxToRem)==null?void 0:l.call(s,24))||"1.5rem",large:((u=e.typography)==null||(d=u.pxToRem)==null?void 0:d.call(u,35))||"2.1875rem"}[t.fontSize],color:(f=(h=(e.vars||e).palette)==null||(h=h[t.color])==null?void 0:h.main)!=null?f:{action:(g=(e.vars||e).palette)==null||(g=g.action)==null?void 0:g.active,disabled:(m=(e.vars||e).palette)==null||(m=m.action)==null?void 0:m.disabled,inherit:void 0}[t.color]}}),wf=p.forwardRef(function(t,r){const n=tb({props:t,name:"MuiSvgIcon"}),{children:o,className:a,color:i="inherit",component:s="svg",fontSize:l="medium",htmlColor:u,inheritViewBox:d=!1,titleAccess:f,viewBox:h="0 0 24 24"}=n,g=we(n,_j),m=p.isValidElement(o)&&o.type==="svg",v=C({},n,{color:i,component:s,fontSize:l,instanceFontSize:t.fontSize,inheritViewBox:d,viewB
128ox:h,hasSvgAsChild:m}),x={};d||(x.viewBox=h);const w=Ej(v);return c.jsxs(Pj,C({as:s,className:Bt(w.root,a),focusable:"false",color:u,"aria-hidden":f?void 0:!0,role:f?"img":void 0,ref:r},x,g,m&&o.props,{ownerState:v,children:[m?o.props.children:o,f?c.jsx("title",{children:f}):null]}))});wf.muiName="SvgIcon";function ie(e,t){function r(n,o){return c.jsx(wf,C({"data-testid":`${t}Icon`,ref:o},n,{children:e}))}return r.muiName=wf.muiName,p.memo(p.forwardRef(r))}const Rj={configure:e=>{iu.configure(e)}},Tj=Object.freeze(Object.defineProperty({__proto__:null,capitalize:ae,createChainedFunction:jd,createSvgIcon:ie,debounce:HC,deprecatedPropType:BC,isMuiElement:Hi,ownerDocument:Wr,ownerWindow:vu,requirePropFactory:WC,setRef:$s,unstable_ClassNameGenerator:Rj,unstable_useEnhancedEffect:un,unstable_useId:zr,unsupportedProp:VC,useControlled:ba,useEventCallback:sn,useForkRef:It,useIsFocusVisible:ll},Symbol.toStringTag,{value:"Module"})),Ij=ie([c.jsx("path",{d:"M11.99 2C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2M12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8"},"0"),c.jsx("path",{d:"M12.5 7H11v6l5.25 3.15.75-1.23-4.5-2.67z"},"1")],"AccessTime"),Dj=ie(c.jsx("path",{d:"M4 10h3v7H4zm6.5 0h3v7h-3zM2 19h20v3H2zm15-9h3v7h-3zm-5-9L2 6v2h20V6z"}),"AccountBalance"),Oj=ie([c.jsx("path",{d:"M18 11c.7 0 1.37.1 2 .29V9l-8-6-8 6v12h7.68c-.43-.91-.68-1.92-.68-3 0-3.87 3.13-7 7-7"},"0"),c.jsx("path",{d:"M18 13c-2.76 0-5 2.24-5 5s2.24 5 5 5 5-2.24 5-5-2.24-5-5-5m3 5.5h-2.5V21h-1v-2.5H15v-1h2.5V15h1v2.5H21z"},"1")],"AddHome"),$j=ie(c.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-2M9 17H7v-5h2zm4 0h-2v-3h2zm0-5h-2v-2h2zm4 5h-2V7h2z"}),"Analytics"),jj=ie(c.jsx("path",{d:"m17.6 9.48 1.84-3.18c.16-.31.04-.69-.26-.85-.29-.15-.65-.06-.83.22l-1.88 3.24c-2.86-1.21-6.08-1.21-8.94 0L5.65 5.67c-.19-.29-.58-.38-.87-.2-.28.18-.37.54-.22.83L6.4 9.48C3.3 11.25 1.28 14.44 1 18h22c-.28-3.56-2.3-6.75-5.4-8.52M7 15.25c-.69 0-1.25-.56-1.25-1.25s.56-1.25 1.25-1.25 1.25.56 1.25 1.25-.56 1.25-1.25 1.25m10 0c-.69 0-1.25-.56-1.25-1.25s.56-1.25 1.25-1.25 1.25.56 1.25 1.25-.56 1.25-1.25 1.25"}),"Android"),Aj=ie(c.jsx("path",{d:"m14 12-2 2-2-2 2-2zm-2-6 2.12 2.12 2.5-2.5L12 1 7.38 5.62l2.5 2.5zm-6 6 2.12-2.12-2.5-2.5L1 12l4.62 4.62 2.5-2.5zm12 0-2.12 2.12 2.5 2.5L23 12l-4.62-4.62-2.5 2.5zm-6 6-2.12-2.12-2.5 2.5L12 23l4.62-4.62-2.5-2.5z"}),"Api"),Lj=ie(c.jsx("path",{d:"M18.71 19.5c-.83 1.24-1.71 2.45-3.05 2.47-1.34.03-1.77-.79-3.29-.79-1.53 0-2 .77-3.27.82-1.31.05-2.3-1.32-3.14-2.53C4.25 17 2.94 12.45 4.7 9.39c.87-1.52 2.43-2.48 4.12-2.51 1.28-.02 2.5.87 3.29.87.78 0 2.26-1.07 3.81-.91.65.03 2.47.26 3.64 1.98-.09.06-2.17 1.28-2.15 3.81.03 3.02 2.65 4.03 2.68 4.04-.03.07-.42 1.44-1.38 2.83M13 3.5c.73-.83 1.94-1.46 2.94-1.5.13 1.17-.34 2.35-1.04 3.19-.69.85-1.83 1.51-2.95 1.42-.15-1.15.41-2.35 1.05-3.11z"}),"Apple"),Mj=ie(c.jsx("path",{d:"m20.54 5.23-1.39-1.68C18.88 3.21 18.47 3 18 3H6c-.47 0-.88.21-1.16.55L3.46 5.23C3.17 5.57 3 6.02 3 6.5V19c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V6.5c0-.48-.17-.93-.46-1.27M12 17.5 6.5 12H10v-2h4v2h3.5zM5.12 5l.81-1h12l.94 1z"}),"Archive"),Sd=ie(c.jsx("path",{d:"M20 11H7.83l5.59-5.59L12 4l-8 8 8 8 1.41-1.41L7.83 13H20z"}),"ArrowBack"),zj=ie(c.jsx("path",{d:"M19 3h-4.18C14.4 1.84 13.3 1 12 1c-1.3 0-2.4.84-2.82 2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2m-7 0c.55 0 1 .45 1 1s-.45 1-1 1-1-.45-1-1 .45-1 1-1m2 14H7v-2h7zm3-4H7v-2h10zm0-4H7V7h10z"}),"Assignment"),hb=ie(c.jsx("path",{d:"m19 9 1.25-2.75L23 5l-2.75-1.25L19 1l-1.25 2.75L15 5l2.75 1.25zm-7.5.5L9 4 6.5 9.5 1 12l5.5 2.5L9 20l2.5-5.5L17 12zM19 15l-1.25 2.75L15 19l2.75 1.25L19 23l1.25-2.75L23 19l-2.75-1.25z"}),"AutoAwesome"),Nj=ie(c.jsx("path",{d:"M18 2H6c-1.1 0-2 .9-2 2v16c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2M6 4h5v8l-2.5-1.5L6 12z"}),"Book"),Fj=ie(c.jsx("path",{d:"m22.7 19-9.1-9.1c.9-2.3.4-5-1.5-6.9-2-2-5-2.4-7.4-1.3L9 6 6 9 1.6 4.7C.4 7.1.9 10.1 2.9 12.1c1.9 1.9 4.6 2.4 6.9 1.5l9.1 9.1c.4.4 1 .4 1.4 0l2.3-2.3c.5-.4.5-1.1.1-1.4"}),"Build"),Hj=ie(c.jsx("path",{d:"M10 16v-1H3.01L3 19c0 1.11.89 2 2 2h14c1.11 0 2-.89 2-2v-4h-7v1zm10-9h-4.01V5l-2-2h-4l-2 2v2H4c-1.1 0-2 .9-2 2v3c0 1.11.89 2 2 2h6v-2h4v2h6c1.1 0 2-.9 2-2V9c0-1.1-.9-2-2-2m-6 0h-4V5h4z"}),"BusinessCenter"),Bj=ie(c.jsx("path",{d:"M19 4h-1V2h-2v2H8V2H6v2H5c-1.11 0-1.99.9-1.99 2L3 20c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2m0 16H5V10h14zM9 14H7v-2h2zm4 0h-2v-2h2zm4 0h-2v-2h2zm-8 4H7v-2h2zm4 0h-2v-2h2zm4 0h-2v-2h2z"}),"CalendarMonth"),Wj=ie(c.jsx("path",{d:"M12 2C6.47 2 2 6.47 2 12s4.47 10 10 10 10-4.47 10-10S17.53 2 12 2m5 13.59L15.59 17 12 13.41 8.41 17 7 15.59 10.59 12 7 8.41 8.41 7 12 10.59 15.59 7 17 8.41 13.41 12z"}),"Cancel"),pb=ie(c.jsx("path",{d:"M9 16.17 4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z"}),"Check"),mb=ie(c.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"}
128),"Close"),Uj=ie(c.jsx("path",{d:"M19.35 10.04C18.67 6.59 15.64 4 12 4 9.11 4 6.6 5.64 5.35 8.04 2.34 8.36 0 10.91 0 14c0 3.31 2.69 6 6 6h13c2.76 0 5-2.24 5-5 0-2.64-2.05-4.78-4.65-4.96"}),"Cloud"),Vj=ie(c.jsx("path",{d:"M21.5 14.98c-.02 0-.03 0-.05.01C21.2 13.3 19.76 12 18 12c-1.4 0-2.6.83-3.16 2.02C13.26 14.1 12 15.4 12 17c0 1.66 1.34 3 3 3l6.5-.02c1.38 0 2.5-1.12 2.5-2.5s-1.12-2.5-2.5-2.5M10 4.26v2.09C7.67 7.18 6 9.39 6 12c0 1.77.78 3.34 2 4.44V14h2v6H4v-2h2.73C5.06 16.54 4 14.4 4 12c0-3.73 2.55-6.85 6-7.74M20 6h-2.73c1.43 1.26 2.41 3.01 2.66 5h-2.02c-.23-1.36-.93-2.55-1.91-3.44V10h-2V4h6z"}),"CloudSync"),Yj=ie(c.jsx("path",{d:"M9.4 16.6 4.8 12l4.6-4.6L8 6l-6 6 6 6zm5.2 0 4.6-4.6-4.6-4.6L16 6l6 6-6 6z"}),"Code"),Gj=ie(c.jsx("path",{d:"M20 18c1.1 0 1.99-.9 1.99-2L22 6c0-1.1-.9-2-2-2H4c-1.1 0-2 .9-2 2v10c0 1.1.9 2 2 2H0v2h24v-2zM4 6h16v10H4z"}),"Computer"),Kj=ie(c.jsx("path",{d:"M18 2H9c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h9c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2m0 14H9V4h9zM3 15v-2h2v2zm0-5.5h2v2H3zM10 20h2v2h-2zm-7-1.5v-2h2v2zM5 22c-1.1 0-2-.9-2-2h2zm3.5 0h-2v-2h2zm5 0v-2h2c0 1.1-.9 2-2 2M5 6v2H3c0-1.1.9-2 2-2"}),"CopyAll"),Jj=ie(c.jsx("path",{d:"M12 3c-4.97 0-9 4.03-9 9s4.03 9 9 9 9-4.03 9-9c0-.46-.04-.92-.1-1.36-.98 1.37-2.58 2.26-4.4 2.26-2.98 0-5.4-2.42-5.4-5.4 0-1.81.89-3.42 2.26-4.4-.44-.06-.9-.1-1.36-.1"}),"DarkMode"),qj=ie(c.jsx("path",{d:"M6 19c0 1.1.9 2 2 2h8c1.1 0 2-.9 2-2V7H6zM19 4h-3.5l-1-1h-5l-1 1H5v2h14z"}),"Delete"),Xj=ie(c.jsx("path",{d:"M18.92 6.01C18.72 5.42 18.16 5 17.5 5h-11c-.66 0-1.21.42-1.42 1.01L3 12v8c0 .55.45 1 1 1h1c.55 0 1-.45 1-1v-1h12v1c0 .55.45 1 1 1h1c.55 0 1-.45 1-1v-8zM6.5 16c-.83 0-1.5-.67-1.5-1.5S5.67 13 6.5 13s1.5.67 1.5 1.5S7.33 16 6.5 16m11 0c-.83 0-1.5-.67-1.5-1.5s.67-1.5 1.5-1.5 1.5.67 1.5 1.5-.67 1.5-1.5 1.5M5 11l1.5-4.5h11L19 11z"}),"DirectionsCar"),Qj=ie(c.jsx("path",{d:"M20 6h-8l-2-2H4c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V8c0-1.1-.9-2-2-2m-6 12v-3h-4v-4h4V8l5 5z"}),"DriveFileMove"),Zj=ie(c.jsx("path",{d:"M3 17.25V21h3.75L17.81 9.94l-3.75-3.75zM20.71 7.04c.39-.39.39-1.02 0-1.41l-2.34-2.34a.9959.9959 0 0 0-1.41 0l-1.83 1.83 3.75 3.75z"}),"Edit"),eA=ie(c.jsx("path",{d:"M20 4H4c-1.1 0-1.99.9-1.99 2L2 18c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2m0 4-8 5-8-5V6l8 5 8-5z"}),"Email"),tA=ie(c.jsx("path",{d:"M19 5h-2V3H7v2H5c-1.1 0-2 .9-2 2v1c0 2.55 1.92 4.63 4.39 4.94.63 1.5 1.98 2.63 3.61 2.96V19H7v2h10v-2h-4v-3.1c1.63-.33 2.98-1.46 3.61-2.96C19.08 12.63 21 10.55 21 8V7c0-1.1-.9-2-2-2M5 8V7h2v3.82C5.84 10.4 5 9.3 5 8m14 0c0 1.3-.84 2.4-2 2.82V7h2z"}),"EmojiEvents"),rA=ie(c.jsx("path",{d:"M20.57 14.86 22 13.43 20.57 12 17 15.57 8.43 7 12 3.43 10.57 2 9.14 3.43 7.71 2 5.57 4.14 4.14 2.71 2.71 4.14l1.43 1.43L2 7.71l1.43 1.43L2 10.57 3.43 12 7 8.43 15.57 17 12 20.57 13.43 22l1.43-1.43L16.29 22l2.14-2.14 1.43 1.43 1.43-1.43-1.43-1.43L22 16.29z"}),"FitnessCenter"),wd=ie(c.jsx("path",{d:"M14.4 6 14 4H5v17h2v-7h5.6l.4 2h7V6z"}),"Flag"),nA=ie(c.jsx("path",{d:"M21 16v-2l-8-5V3.5c0-.83-.67-1.5-1.5-1.5S10 2.67 10 3.5V9l-8 5v2l8-2.5V19l-2 1.5V22l3.5-1 3.5 1v-1.5L13 19v-5.5z"}),"Flight"),gb=ie(c.jsx("path",{d:"M20 6h-8l-2-2H4c-1.1 0-1.99.9-1.99 2L2 18c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V8c0-1.1-.9-2-2-2m0 12H4V8h16z"}),"FolderOpen"),oA=ie(c.jsx("path",{d:"M15 7.5V2H9v5.5l3 3zM7.5 9H2v6h5.5l3-3zM9 16.5V22h6v-5.5l-3-3zM16.5 9l-3 3 3 3H22V9z"}),"Games"),lp=ie(c.jsx("path",{d:"M12 1.27a11 11 0 00-3.48 21.46c.55.09.73-.28.73-.55v-1.84c-3.03.64-3.67-1.46-3.67-1.46-.55-1.29-1.28-1.65-1.28-1.65-.92-.65.1-.65.1-.65 1.1 0 1.73 1.1 1.73 1.1.92 1.65 2.57 1.2 3.21.92a2 2 0 01.64-1.47c-2.47-.27-5.04-1.19-5.04-5.5 0-1.1.46-2.1 1.2-2.84a3.76 3.76 0 010-2.93s.91-.28 3.11 1.1c1.8-.49 3.7-.49 5.5 0 2.1-1.38 3.02-1.1 3.02-1.1a3.76 3.76 0 010 2.93c.83.74 1.2 1.74 1.2 2.94 0 4.21-2.57 5.13-5.04 5.4.45.37.82.92.82 2.02v3.03c0 .27.1.64.73.55A11 11 0 0012 1.27"}),"GitHub"),aA=ie(c.jsx("path",{d:"M16 11c1.66 0 2.99-1.34 2.99-3S17.66 5 16 5c-1.66 0-3 1.34-3 3s1.34 3 3 3m-8 0c1.66 0 2.99-1.34 2.99-3S9.66 5 8 5C6.34 5 5 6.34 5 8s1.34 3 3 3m0 2c-2.33 0-7 1.17-7 3.5V19h14v-2.5c0-2.33-4.67-3.5-7-3.5m8 0c-.29 0-.62.02-.97.05 1.16.84 1.97 1.97 1.97 3.45V19h6v-2.5c0-2.33-4.67-3.5-7-3.5"}),"Group"),iA=ie(c.jsx("path",{d:"M12 12.75c1.63 0 3.07.39 4.24.9 1.08.48 1.76 1.56 1.76 2.73V18H6v-1.61c0-1.18.68-2.26 1.76-2.73 1.17-.52 2.61-.91 4.24-.91M4 13c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2m1.13 1.1c-.37-.06-.74-.1-1.13-.1-.99 0-1.93.21-2.78.58C.48 14.9 0 15.62 0 16.43V18h4.5v-1.61c0-.83.23-1.61.63-2.29M20 13c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2m4 3.43c0-.81-.48-1.53-1.22-1.85-.85-.37-1.79-.58-2.78-.58-.39 0-.76.04-1.13.1.4.68.63 1.46.63 2.29V18H24zM12 6c1.66 0 3 1.34 3 3s-1.34 3-3 3-3-1.34-3-3 1.34-3 3-3"}),"Groups"),sA=ie(c.jsx("path",{d:"M10 20v-6h4v6h5v-8h3L12 3 2 12h3v8z"}),"Home"),lA=ie(c.jsx("path",{fillRule:"evenodd",d:"M4 11h16v2H4z"}),"HorizontalRule"),vb=ie(c.jsx("path",{d:"M6 2v6h.01L6 8.01 10 12l-4 4 .01.01H6V22h12v-5.99h-.01L18 16l-4-4 4-3.99-.01-.01H18V2zm10 14.5V20H8v-3.5l4-4zm-4-5-4-4V4h8v3.5z"}),"HourglassEmpty"),cA=ie([c.jsx("path",{d:"M17 18H7V6h7V1H7c-1.1 0-2 .9-2 2v18c0 1.1.9 2 2 2h10c1.1 0 2-.9 2-2v-5h-2z"},"0"),c.jsx("path",{d:"m18 14 5-5-1.41-1.41L19 10.17V3h-2v7.17l-2.59-2.58L13 9z"},"1")],"InstallMobile"),uA=ie(c.jsx("path",{d:"m5 12 1.41 1.41L12 7.83l5.59 5.58L19 12l-7-7z"}),"KeyboardControlKey"),dA=ie([c.jsx("path",{d:"M6 17.59 7.41 19 12 14.42 16.59 19 18 17.59l-6-6z"}
128,"0"),c.jsx("path",{d:"m6 11 1.41 1.41L12 7.83l4.59 4.58L18 11l-6-6z"},"1")],"KeyboardDoubleArrowUp"),fA=ie(c.jsx("path",{d:"M12 7c-2.76 0-5 2.24-5 5s2.24 5 5 5 5-2.24 5-5-2.24-5-5-5M2 13h2c.55 0 1-.45 1-1s-.45-1-1-1H2c-.55 0-1 .45-1 1s.45 1 1 1m18 0h2c.55 0 1-.45 1-1s-.45-1-1-1h-2c-.55 0-1 .45-1 1s.45 1 1 1M11 2v2c0 .55.45 1 1 1s1-.45 1-1V2c0-.55-.45-1-1-1s-1 .45-1 1m0 18v2c0 .55.45 1 1 1s1-.45 1-1v-2c0-.55-.45-1-1-1s-1 .45-1 1M5.99 4.58c-.39-.39-1.03-.39-1.41 0-.39.39-.39 1.03 0 1.41l1.06 1.06c.39.39 1.03.39 1.41 0s.39-1.03 0-1.41zm12.37 12.37c-.39-.39-1.03-.39-1.41 0-.39.39-.39 1.03 0 1.41l1.06 1.06c.39.39 1.03.39 1.41 0 .39-.39.39-1.03 0-1.41zm1.06-10.96c.39-.39.39-1.03 0-1.41-.39-.39-1.03-.39-1.41 0l-1.06 1.06c-.39.39-.39 1.03 0 1.41s1.03.39 1.41 0zM7.05 18.36c.39-.39.39-1.03 0-1.41-.39-.39-1.03-.39-1.41 0l-1.06 1.06c-.39.39-.39 1.03 0 1.41s1.03.39 1.41 0z"}),"LightMode"),hA=ie(c.jsx("path",{d:"M19 3H5c-1.1 0-1.99.9-1.99 2L3 19c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2m-1 11h-4v4h-4v-4H6v-4h4V6h4v4h4z"}),"LocalHospital"),pA=ie(c.jsx("path",{d:"M7 9H2V7h5zm0 3H2v2h5zm13.59 7-3.83-3.83c-.8.52-1.74.83-2.76.83-2.76 0-5-2.24-5-5s2.24-5 5-5 5 2.24 5 5c0 1.02-.31 1.96-.83 2.75L22 17.59zM17 11c0-1.65-1.35-3-3-3s-3 1.35-3 3 1.35 3 3 3 3-1.35 3-3M2 19h10v-2H2z"}),"ManageSearch"),mA=ie([c.jsx("path",{d:"M10 8v6l4.7 2.9.8-1.2-4-2.4V8z"},"0"),c.jsx("path",{d:"M17.92 12c.05.33.08.66.08 1 0 3.9-3.1 7-7 7s-7-3.1-7-7 3.1-7 7-7c.7 0 1.37.1 2 .29V4.23c-.64-.15-1.31-.23-2-.23-5 0-9 4-9 9s4 9 9 9 9-4 9-9c0-.34-.02-.67-.06-1z"},"1"),c.jsx("path",{d:"M20 5V2h-2v3h-3v2h3v3h2V7h3V5z"},"2")],"MoreTime"),cp=ie(c.jsx("path",{d:"M12 8c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2m0 2c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2m0 6c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2"}),"MoreVert"),gA=ie(c.jsx("path",{d:"M12 3v10.55c-.59-.34-1.27-.55-2-.55-2.21 0-4 1.79-4 4s1.79 4 4 4 4-1.79 4-4V7h4V3z"}),"MusicNote"),vA=ie(c.jsx("path",{d:"M20 7h-4V5c0-.55-.22-1.05-.59-1.41C15.05 3.22 14.55 3 14 3h-4c-1.1 0-2 .9-2 2v2H4c-1.1 0-2 .9-2 2v11c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V9c0-1.1-.9-2-2-2M10 5h4v2h-4zm1 13.5-1-1 3-3-3-3 1-1 4 4z"}),"NextWeek"),yA=ie(c.jsx("path",{d:"M20 2H4c-1.1 0-2 .9-2 2v16c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2m0 18H4V4h16zM18 6h-5c-1.1 0-2 .9-2 2v2.28c-.6.35-1 .98-1 1.72 0 1.1.9 2 2 2s2-.9 2-2c0-.74-.4-1.38-1-1.72V8h3v8H8V8h2V6H6v12h12z"}),"Nfc"),bA=ie(c.jsx("path",{d:"M14 2H6c-1.1 0-1.99.9-1.99 2L4 20c0 1.1.89 2 1.99 2H18c1.1 0 2-.9 2-2V8zm2 14h-3v3h-2v-3H8v-2h3v-3h2v3h3zm-3-7V3.5L18.5 9z"}),"NoteAdd"),yb=ie(c.jsx("path",{d:"M12 22c1.1 0 2-.9 2-2h-4c0 1.1.89 2 2 2m6-6v-5c0-3.07-1.64-5.64-4.5-6.32V4c0-.83-.67-1.5-1.5-1.5s-1.5.67-1.5 1.5v.68C7.63 5.36 6 7.92 6 11v5l-2 2v1h16v-1z"}),"Notifications"),xA=ie(c.jsx("path",{d:"M7.58 4.08 6.15 2.65C3.75 4.48 2.17 7.3 2.03 10.5h2c.15-2.65 1.51-4.97 3.55-6.42m12.39 6.42h2c-.15-3.2-1.73-6.02-4.12-7.85l-1.42 1.43c2.02 1.45 3.39 3.77 3.54 6.42M18 11c0-3.07-1.64-5.64-4.5-6.32V4c0-.83-.67-1.5-1.5-1.5s-1.5.67-1.5 1.5v.68C7.63 5.36 6 7.92 6 11v5l-2 2v1h16v-1l-2-2zm-6 11c.14 0 .27-.01.4-.04.65-.14 1.18-.58 1.44-1.18.1-.24.15-.5.15-.78h-4c.01 1.1.9 2 2.01 2"}),"NotificationsActive"),CA=ie(c.jsx("path",{d:"M12 2C6.49 2 2 6.49 2 12s4.49 10 10 10c1.38 0 2.5-1.12 2.5-2.5 0-.61-.23-1.2-.64-1.67-.08-.1-.13-.21-.13-.33 0-.28.22-.5.5-.5H16c3.31 0 6-2.69 6-6 0-4.96-4.49-9-10-9m5.5 11c-.83 0-1.5-.67-1.5-1.5s.67-1.5 1.5-1.5 1.5.67 1.5 1.5-.67 1.5-1.5 1.5m-3-4c-.83 0-1.5-.67-1.5-1.5S13.67 6 14.5 6s1.5.67 1.5 1.5S15.33 9 14.5 9M5 11.5c0-.83.67-1.5 1.5-1.5s1.5.67 1.5 1.5S7.33 13 6.5 13 5 12.33 5 11.5m6-4c0 .83-.67 1.5-1.5 1.5S8 8.33 8 7.5 8.67 6 9.5 6s1.5.67 1.5 1.5"}),"Palette"),SA=ie(c.jsx("path",{d:"M6 19h4V5H6zm8-14v14h4V5z"}),"Pause"),wA=ie([c.jsx("circle",{cx:"4.5",cy:"9.5",r:"2.5"},"0"),c.jsx("circle",{cx:"9",cy:"5.5",r:"2.5"},"1"),c.jsx("circle",{cx:"15",cy:"5.5",r:"2.5"},"2"),c.jsx("circle",{cx:"19.5",cy:"9.5",r:"2.5"},"3"),c.jsx("path",{d:"M17.34 14.86c-.87-1.02-1.6-1.89-2.48-2.91-.46-.54-1.05-1.08-1.75-1.32-.11-.04-.22-.07-.33-.09-.25-.04-.52-.04-.78-.04s-.53 0-.79.05c-.11.02-.22.05-.33.09-.7.24-1.28.78-1.75 1.32-.87 1.02-1.6 1.89-2.48 2.91-1.31 1.31-2.92 2.76-2.62 4.79.29 1.02 1.02 2.03 2.33 2.32.73.15 3.06-.44 5.54-.44h.18c2.48 0 4.81.58 5.54.44 1.31-.29 2.04-1.31 2.33-2.32.31-2.04-1.3-3.49-2.61-4.8"},"4")],"Pets"),kA=ie([c.jsx("circle",{cx:"12",cy:"12",r:"3.2"},"0"),c.jsx("path",{d:"M9 2 7.17 4H4c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2h-3.17L15 2zm3 15c-2.76 0-5-2.24-5-5s2.24-5 5-5 5 2.24 5 5-2.24 5-5 5"},"1")],"PhotoCamera"),_A=ie(c.jsx("path",{d:"M8 5v14l11-7z"}),"PlayArrow"),EA=ie([c.jsx("circle",{cx:"12",cy:"19",r:"2"},"0"),c.jsx("path",{d:"M10 3h4v12h-4z"},"1")],"PriorityHigh"),PA=ie([c.jsx("path",{d:"M13 8.57c-.79 0-1.43.64-1.43 1.43s.64 1.43 1.43 1.43 1.43-.64 1.43-1.43-.64-1.43-1.43-1.43"},"0"),c.jsx("path",{d:"M13 3C9.25 3 6.2 5.94 6.02 9.64L4.1 12.2c-.25.33-.01.8.4.8H6v3c0 1.1.9 2 2 2h1v3h7v-4.68c2.36-1.12 4-3.53 4-6.32 0-3.87-3.13-7-7-7m3 7c0 .13-.01.26-.02.39l.83.66c.08.06.1.16.05.25l-.8 1.39c-.05.09-.16.12-.24.09l-.99-.4c-.21.16-.43.29-.67.39L14 13.83c-.01.1-.1.17-.2.17h-1.6c-.1 0-.18-.07-.2-.17l-.15-1.06c-.25-.1-.47-.23-.68-.39l-.99.4c-.09.03-.2 0-.25-.09l-.8-1.39c-.05-.08-.03-.19.05-.25l.84-.66c-.01-.13-.02-.26-.02-.39s.02-.27.04-.39l-.85-.66c-.08-.06-.1-.16-.05-.26l.8-1.38c.05-.09.15-.12.24-.09l1 .4c.2-.15.43-.29.67-.39L12 6.17c.02-.1.1-.17.2-.17h1.6c.1 0 .18.07.2.17l.15 1.06c.24.1.46.23.67.39l1-.4c.09-.03.2 0 .24.09l.8 1.38c.05.09.03.2-.05.26l-.85.66c.03.12.04.25.04.39"},"1")],"Psychology"),RA=ie([c.jsx("circle",{cx:"9",cy:"9",r:"4"},"0"),c.jsx("path",{d:"M9 15c-2.67 0-8 1.34-8 4v2h16v-2c0-2.66-5.33-4-8-4m7.76-9.64-1.68 1.69c.84 1.18.84 2.71 0 3.89l1.68 1.69c2.02-2.02 2.02-5.07 0-7.27M20.07 2l-1.63 1.63c2.77 3.02 2.77 7.56 0 10.74L20.07 16c3.9-3.89 3.91-9.95 0-14"},"1")],"RecordVoiceOver"),TA=ie(c.jsx("path",{d:"M18.4 10.6C16.55 8.99 14.15 8 11.5 8c-4.65 0-8.58 3.03-9.96 7.22L3.9 16c1.05-3.19 4.05-5.5 7.6-5.5 1.95 0 3.73.72 5.12 1.88L13 16h9V7z"}),"Redo"),IA=ie(c.jsx("path",{d:"M7 7h10v3l4-4-4-4v3H5v6h2zm10 10H7v-3l-4 4 4 4v-3h12v-6h-2z"}),"Repeat"),DA=ie(c.jsx("path",{d:"M11 9H9V2H7v7H5V2H3v7c0 2.12 1.66 3.84 3.75 3.97V22h2.5v-9.03C11.34 12.84 13 11.12 13 9V2h-2zm5-3v8h2.5v8H21V2c-2.76 0-5 2.24-5 4"}),"Restaurant"),OA=ie(c.jsx("path",{d:"M22 10v8h-2v-8zm-2 10v2h2v-2zm-2-2.71C16.53 18.95 14.39 20 12 20c-4.41 0-8-3.59-8-8s3.59-8 8-8v9l7.55-7.55C17.72 3.34 15.02 2 12 2 6.48 2 2 6.48 2 12s4.48 10 10 10c2.25 0 4.33-.74 6-2z"}),"RunningWithErrors"),$A=ie(c.jsx("path",{d:"M17 3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V7zm-5 16c-1.66 0-3-1.34-3-3s1.34-3 3-3 3 1.34 3 3-1.34 3-3 3m3-10H5V5h10z"}),"Save"),bb=ie([c.jsx("path",{d:"M11.99 2C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2M12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8"},"0"),c.jsx("path",{d:"M12.5 7H11v6l5.25 3.15.75-1.23-4.5-2.67z"}
128,"1")],"Schedule"),jA=ie(c.jsx("path",{d:"M5 13.18v4L12 21l7-3.82v-4L12 17zM12 3 1 9l11 6 9-4.91V17h2V9z"}),"School"),AA=ie(c.jsx("path",{d:"M19.8 18.4 14 10.67V6.5l1.35-1.69c.26-.33.03-.81-.39-.81H9.04c-.42 0-.65.48-.39.81L10 6.5v4.17L4.2 18.4c-.49.66-.02 1.6.8 1.6h14c.82 0 1.29-.94.8-1.6"}),"Science"),LA=ie(c.jsx("path",{d:"M12 1 3 5v6c0 5.55 3.84 10.74 9 12 5.16-1.26 9-6.45 9-12V5zm0 10.99h7c-.53 4.12-3.28 7.79-7 8.94V12H5V6.3l7-3.11z"}),"Security"),MA=ie(c.jsx("path",{d:"M19.14 12.94c.04-.3.06-.61.06-.94 0-.32-.02-.64-.07-.94l2.03-1.58c.18-.14.23-.41.12-.61l-1.92-3.32c-.12-.22-.37-.29-.59-.22l-2.39.96c-.5-.38-1.03-.7-1.62-.94l-.36-2.54c-.04-.24-.24-.41-.48-.41h-3.84c-.24 0-.43.17-.47.41l-.36 2.54c-.59.24-1.13.57-1.62.94l-2.39-.96c-.22-.08-.47 0-.59.22L2.74 8.87c-.12.21-.08.47.12.61l2.03 1.58c-.05.3-.09.63-.09.94s.02.64.07.94l-2.03 1.58c-.18.14-.23.41-.12.61l1.92 3.32c.12.22.37.29.59.22l2.39-.96c.5.38 1.03.7 1.62.94l.36 2.54c.05.24.24.41.48.41h3.84c.24 0 .44-.17.47-.41l.36-2.54c.59-.24 1.13-.56 1.62-.94l2.39.96c.22.08.47 0 .59-.22l1.92-3.32c.12-.22.07-.47-.12-.61zM12 15.6c-1.98 0-3.6-1.62-3.6-3.6s1.62-3.6 3.6-3.6 3.6 1.62 3.6 3.6-1.62 3.6-3.6 3.6"}),"Settings"),zA=ie(c.jsx("path",{d:"M7 18c-1.1 0-1.99.9-1.99 2S5.9 22 7 22s2-.9 2-2-.9-2-2-2M1 2v2h2l3.6 7.59-1.35 2.45c-.16.28-.25.61-.25.96 0 1.1.9 2 2 2h12v-2H7.42c-.14 0-.25-.11-.25-.25l.03-.12.9-1.63h7.45c.75 0 1.41-.41 1.75-1.03l3.58-6.49c.08-.14.12-.31.12-.48 0-.55-.45-1-1-1H5.21l-.94-2zm16 16c-1.1 0-1.99.9-1.99 2s.89 2 1.99 2 2-.9 2-2-.9-2-2-2"}),"ShoppingCart"),NA=ie(c.jsx("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m1 3.3 1.35-.95c1.82.56 3.37 1.76 4.38 3.34l-.39 1.34-1.35.46L13 6.7zm-3.35-.95L11 5.3v1.4L7.01 9.49l-1.35-.46-.39-1.34c1.01-1.57 2.56-2.77 4.38-3.34M7.08 17.11l-1.14.1C4.73 15.81 4 13.99 4 12c0-.12.01-.23.02-.35l1-.73 1.38.48 1.46 4.34zm7.42 2.48c-.79.26-1.63.41-2.5.41s-1.71-.15-2.5-.41l-.69-1.49.64-1.1h5.11l.64 1.11zM14.27 15H9.73l-1.35-4.02L12 8.44l3.63 2.54zm3.79 2.21-1.14-.1-.79-1.37 1.46-4.34 1.39-.47 1 .73c.01.11.02.22.02.34 0 1.99-.73 3.81-1.94 5.21"}),"SportsSoccer"),FA=ie(c.jsx("path",{d:"M2 20h20v-4H2zm2-3h2v2H4zM2 4v4h20V4zm4 3H4V5h2zm-4 7h20v-4H2zm2-3h2v2H4z"}),"Storage"),HA=ie(c.jsx("path",{d:"M7.06 8.94 5 8l2.06-.94L8 5l.94 2.06L11 8l-2.06.94L8 11zM8 21l.94-2.06L11 18l-2.06-.94L8 15l-.94 2.06L5 18l2.06.94zm-3.63-8.63L3 13l1.37.63L5 15l.63-1.37L7 13l-1.37-.63L5 11zM12 12c0-2.73 1.08-5.27 2.75-7.25L12 2h7v7l-2.82-2.82C14.84 7.82 14 9.88 14 12c0 3.32 2.1 6.36 5 7.82V22c-4.09-1.59-7-5.65-7-10"}),"SwitchAccessShortcut"),xb=ie(c.jsx("path",{d:"M15 3H6c-.83 0-1.54.5-1.84 1.22l-3.02 7.05c-.09.23-.14.47-.14.73v2c0 1.1.9 2 2 2h6.31l-.95 4.57-.03.32c0 .41.17.79.44 1.06L9.83 23l6.59
128-6.59c.36-.36.58-.86.58-1.41V5c0-1.1-.9-2-2-2m4 0v12h4V3z"}),"ThumbDown"),BA=ie(c.jsx("path",{d:"M1 21h4V9H1zm22-11c0-1.1-.9-2-2-2h-6.31l.95-4.57.03-.32c0-.41-.17-.79-.44-1.06L14.17 1 7.59 7.59C7.22 7.95 7 8.45 7 9v10c0 1.1.9 2 2 2h9c.83 0 1.54-.5 1.84-1.22l3.02-7.05c.09-.23.14-.47.14-.73z"}),"ThumbUp"),WA=ie(c.jsx("path",{d:"M9 1h6v2H9zm10.03 6.39 1.42-1.42c-.43-.51-.9-.99-1.41-1.41l-1.42 1.42C16.07 4.74 14.12 4 12 4c-4.97 0-9 4.03-9 9s4.02 9 9 9 9-4.03 9-9c0-2.12-.74-4.07-1.97-5.61M13 14h-2V8h2z"}),"Timer"),UA=ie(c.jsx("path",{d:"M4 7h4v10H6V9H4zm11.83 4.72L18.66 7h-2.33l-1.66 2.77L13 7h-2.33l2.83 4.72L10.33 17h2.33l2-3.34 2 3.34H19z"}),"TimesOneMobiledata"),VA=ie(c.jsx("path",{d:"M19 3h-1V1h-2v2H8V1H6v2H5c-1.11 0-1.99.9-1.99 2L3 19c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2m0 16H5V8h14zM7 10h5v5H7z"}),"Today"),YA=ie(c.jsx("path",{d:"M15 4c-4.42 0-8 3.58-8 8s3.58 8 8 8 8-3.58 8-8-3.58-8-8-8m0 14c-3.31 0-6-2.69-6-6s2.69-6 6-6 6 2.69 6 6-2.69 6-6 6M3 12c0-2.61 1.67-4.83 4-5.65V4.26C3.55 5.15 1 8.27 1 12s2.55 6.85 6 7.74v-2.09c-2.33-.82-4-3.04-4-5.65"}),"Toll"),GA=ie(c.jsx("path",{d:"m20.55 5.22-1.39-1.68C18.88 3.21 18.47 3 18 3H6c-.47 0-.88.21-1.15.55L3.46 5.22C3.17 5.57 3 6.01 3 6.5V19c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V6.5c0-.49-.17-.93-.45-1.28M12 9.5l5.5 5.5H14v2h-4v-2H6.5zM5.12 5l.82-1h12l.93 1z"}),"Unarchive"),KA=ie(c.jsx("path",{d:"M21 10.12h-6.78l2.74-2.82c-2.73-2.7-7.15-2.8-9.88-.1-2.73 2.71-2.73 7.08 0 9.79s7.15 2.71 9.88 0C18.32 15.65 19 14.08 19 12.1h2c0 1.98-.88 4.55-2.64 6.29-3.51 3.48-9.21 3.48-12.72 0-3.5-3.47-3.53-9.11-.02-12.58s9.14-3.47 12.65 0L21 3zM12.5 8v4.25l3.5 2.08-.72 1.21L11 13V8z"}),"Update"),JA=ie(c.jsx("path",{d:"M2 7h4v10H2zm5 12h10V5H7zM18 7h4v10h-4z"}),"ViewCarousel"),qA=ie(c.jsx("path",{d:"m6.76 4.84-1.8-1.79-1.41 1.41 1.79 1.79zM4 10.5H1v2h3zm9-9.95h-2V3.5h2zm7.45 3.91-1.41-1.41-1.79 1.79 1.41 1.41zm-3.21 13.7 1.79 1.8 1.41-1.41-1.8-1.79zM20 10.5v2h3v-2zm-8-5c-3.31 0-6 2.69-6 6s2.69 6 6 6 6-2.69 6-6-2.69-6-6-6m-1 16.95h2V19.5h-2zm-7.45-3.91 1.41 1.41 1.79-1.8-1.41-1.41z"}),"WbSunny"),XA=ie(c.jsx("path",{d:"M10 15h5.88c.27-.31.67-.5 1.12-.5.83 0 1.5.67 1.5 1.5s-.67 1.5-1.5 1.5c-.44 0-.84-.19-1.12-.5H11.9c-.46 2.28-2.48 4-4.9 4-2.76 0-5-2.24-5-5 0-2.42 1.72-4.44 4-4.9v2.07c-1.16.41-2 1.53-2 2.83 0 1.65 1.35 3 3 3s3-1.35 3-3zm2.5-11c1.65 0 3 1.35 3 3h2c0-2.76-2.24-5-5-5s-5 2.24-5 5c0 1.43.6 2.71 1.55 3.62l-2.35 3.9c-.68.14-1.2.75-1.2 1.48 0 .83.67 1.5 1.5 1.5s1.5-.67 1.5-1.5c0-.16-.02-.31-.07-.45l3.38-5.63C10.49 9.61 9.5 8.42 9.5 7c0-1.65 1.35-3 3-3m4.5 9c-.64 0-1.23.2-1.72.54l-3.05-5.07C11.53 8.35 11 7.74 11 7c0-.83.67-1.5 1.5-1.5S14 6.17 14 7c0 .15-.02.29-.06.43l2.19 3.65c.28-.05.57-.08.87-.08 2.76 0 5 2.24 5 5s-2.24 5-5 5c-1.85 0-3.47-1.01-4.33-2.5h2.67c.48.32 1.05.5 1.66.5 1.65 0 3-1.35 3-3s-1.35-3-3-3"}),"Webhook"),QA=ie(c.jsx("path",{d:"M21 10c-1.1 0-2 .9-2 2v3H5v-3c0-1.1-.89-2-2-2s-2 .9-2 2v5c0 1.1.9 2 2 2h18c1.1 0 2-.9 2-2v-5c0-1.1-.9-2-2-2m-3-5H6c-1.1 0-2 .9-2 2v2.15c1.16.41 2 1.52 2 2.81V14h12v-2.03c0-1.3.84-2.4 2-2.81V7c0-1.1-.9-2-2-2"}),"Weekend"),ZA=ie(c.jsx("path",{d:"M13 13v8h8v-8zM3 21h8v-8H3zM3 3v8h8V3zm13.66-1.31L11 7.34 16.66 13l5.66-5.66z"}),"Widgets"),eL=ie(c.jsx("path",{d:"M20 6h-4V4c0-1.11-.89-2-2-2h-4c-1.11 0-2 .89-2 2v2H4c-1.11 0-1.99.89-1.99 2L2 19c0 1.11.89 2 2 2h16c1.11 0 2-.89 2-2V8c0-1.11-.89-2-2-2m-6 0h-4V4h4z"}),"Work"),tL=ie([c.jsx("path",{d:"M20 2H4c-1.1 0-2 .9-2 2v16c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2M8 8.22c0-.86.7-1.56 1.56-1.56.33 0 .64.1.89.28l-.01-.12c0-.86.7-1.56 1.56-1.56s1.56.7 1.56 1.56l-.01.12c.26-.18.56-.28.89-.28.86 0 1.56.7 1.56 1.56 0 .62-.37 1.16-.89 1.4.52.25.89.79.89 1.41 0 .86-.7 1.56-1.56 1.56-.33 0-.64-.11-.89-.28l.01.12c0 .86-.7 1.56-1.56 1.56s-1.56-.7-1.56-1.56l.01-.12c-.26.18-.56.28-.89.28-.86 0-1.56-.7-1.56-1.56 0-.62.37-1.16.89-1.4C8.37 9.38 8 8.84 8 8.22M12 19c-3.31 0-6-2.69-6-6 3.31 0 6 2.69 6 6 0-3.31 2.69-6 6-6 0 3.31-2.69 6-6 6"},"0"),c.jsx("circle",{cx:"12",cy:"9.62",r:"1.56"},"1")],"Yard"),Rs=[{name:"Default",value:"#FFFFFF"},{name:"Salmon",value:"#ff7961"},{name:"Teal",value:"#26a69a"},{name:"Sky Blue",value:"#80d8ff"},{name:"Grape",value:"#7e57c2"},{name:"Sunshine",value:"#ffee58"},{name:"Coral",value:"#ff7043"},{name:"Lavender",value:"#ce93d8"},{name:"Rose",value:"#f48fb1"},{name:"Charcoal",value:"#616161"},{name:"Sienna",value:"#8d6e63"},{name:"Mint",value:"#a7ffeb"},{name:"Amber",value:"#ffc107"},{name:"Cobalt",value:"#3f51b5"},{name:"Emerald",value:"#4caf50"},{name:"Peach",value:"#ffab91"},{name:"Ocean",value:"#0288d1"},{name:"Mustard",value:"#ffca28"},{name:"Ruby",value:"#d32f2f"},{name:"Periwinkle",value:"#b39ddb"},{name:"Turquoise",value:"#00bcd4"},{name:"Lime",value:"#cddc39"},{name:"Blush",value:"#f8bbd0"},{name:"Ash",value:"#90a4ae"},{name:"Sand",value:"#d7ccc8"}],_7=[...Rs.filter(e=>e.name!=="Default")];[...Rs.filter(e=>e.name!=="Default")];const E7={salmon:"#ff7961",teal:"#26a69a",skyBlue:"#80d8ff",grape:"#7e57c2",sunshine:"#ffee58",coral:"#ff7043",lavender:"#ce93d8",rose:"#f48fb1",charcoal:"#616161",sienna:"#8d6e63",mint:"#a
1287ffeb",amber:"#ffc107",cobalt:"#3f51b5",emerald:"#4caf50",peach:"#ffab91",ocean:"#0288d1",mustard:"#ffca28",ruby:"#d32f2f",periwinkle:"#b39ddb",turquoise:"#00bcd4",lime:"#cddc39",blush:"#f8bbd0",ash:"#90a4ae",sand:"#d7ccc8",white:"#FFFFFF"},Zt={PREDUE:"#4ec1a2",DUE_DATE:"#f6ad55",POSTDUE:"#F03A47"},yt={COMPLETED:"#4ec1a2",LATE:"#f6ad55",IN_PROGRESS:"#00bcd4",OVERDUE:"#F03A47",SCHEDULED:"#10B982",PENDING_REVIEW:"#8B6CE1",TODAY:"#ffc107",TOMORROW:"#4ec1a2",NEXT_7_DAYS:"#00bcd4",LATER_THIS_MONTH:"#b39ddb",FUTURE:"#d7ccc8",ANYTIME:"#90a4ae",ASSIGNED_TO_ME:"#4ec1a2",ASSIGNED_TO_OTHER:"#b39ddb",PRIORITY_1:"#d32f2f",PRIORITY_2:"#ed6c02",PRIORITY_3:"#0288d1",PRIORITY_4:"#90a4ae",NO_PRIORITY:"#90a4ae80"},Cb=e=>{if(!e)return"";const t=e.replace("#",""),r=parseInt(t.substring(0,2),16),n=parseInt(t.substring(2,4),16),o=parseInt(t.substring(4,6),16);return r*.299+n*.587+o*.114>186?"#000000":"#ffffff"},P7=e=>{switch(e){case 1:return yt.PRIORITY_1;case 2:return yt.PRIORITY_2;case 3:return yt.PRIORITY_3;case 4:return yt.PRIORITY_4;default:return yt.NO_PRIORITY}},kd=({action:e,defaults:t,sx:r})=>{if(!e)return null;const{label:n,sx:o,...a}=e;return c.jsx(wr,{...t,...a,sx:{...r,...o},children:n})},rL=({children:e,primary:t,secondary:r,stackOnMobile:n=!1,sx:o,tertiary:a})=>{const s={display:"flex",flexDirection:n?{xs:"column-reverse",sm:"row"}:"row",justifyContent:"flex-end",alignItems:"center",gap:1,...n?{"& > button":{width:{xs:"100%",sm:"auto"}}}:void 0,...o};return e?c.jsx(ce,{sx:s,children:e}):c.jsxs(ce,{sx:s,children:[c.jsx(kd,{action:a,defaults:{color:"neutral",variant:"plain"},sx:{mr:{sm:"auto"}}}),c.jsx(kd,{action:r,defaults:{color:"neutral",variant:"outlined"}}),c.jsx(kd,{action:t,defaults:{color:"primary",variant:"solid"}})]})},Ll={sm:400,md:520,lg:680,xl:840},qu=p.forwardRef(({backdropBlur:e=!0,children:t,closeOnBackdrop:r=!0,closeOnEscape:n=!0,contentSx:o,description:a,footer:i,footerSx:s,fullWidth:l=!0,isMobile:u,keepMounted:d=!1,maxHeight:f="90dvh",mobilePresentation:h="sheet",onClose:g,open:m,role:v="dialog",showCloseButton:x=!0,showHandle:w=!1,size:S="md",sx:y,title:_,unmountDelay:R=180,...O},b)=>{const{t:P}=Jn("common"),E=p.useId(),T=eh("(max-width:768px)"),I=u??T,k=_?`${E}-title`:void 0,D=a?`${E}-description`:void 0,L=I&&h==="sheet",$=I&&h==="fullscreen",j=(A,M)=>{M==="backdropClick"&&!r||M==="escapeKeyDown"&&!n||g==null||g(A,M)};return c.jsx(F4,{open:m,onClose:j,"aria-labelledby":k,"aria-describedby":D,keepMounted:d,sx:{...m&&{'& ~ [role="menu"]':{"--unstable_popup-zIndex":"calc(var(--joy-zIndex-modal) + 1)"}},display:"flex",alignItems:L?"flex-end":"center",justifyContent:"center",p:I?0:2,"& .MuiModal-backdrop":{backgroundColor:"rgba(8, 15, 24, 0.52)",backdropFilter:e?"blur(4px)":"none"}},...O,children:c.jsxs(nP,{ref:b,role:v,"aria-modal":"true","aria-labelledby":k,"aria-describedby":D,variant:"outlined",sx:{display:"flex",flexDirection:"column",width:$||L?"100%":l?`min(calc(100vw - 32px), ${Ll[S]||Ll.md}px)`:"auto",maxWidth:I?"none":Ll[S]||Ll.md,height:$?"100dvh":"auto",maxHeight:$?"100dvh":f,overflow:"hidden",borderRadius:$?0:L?"16px 16px 0 0":"16px",borderBottom:L?0:void 0,boxShadow:"lg",outline:0,pb:I?"env(safe-area-inset-bottom)":0,animation:m?`${L?"appSheetEnter":"appModalEnter"} ${Math.min(R,300)}ms cubic-bezier(0.2, 0.8, 0.2, 1)`:void 0,"@keyframes appModalEnter":{from:{opacity:0,transform:"translateY(8px) scale(0.99)"},to:{opacity:1,transform:"translateY(0) scale(1)"}},"@keyframes appSheetEnter":{from:{transform:"translateY(24px)"},to:{transform:"translateY(0)"}},"@media (prefers-reduced-motion: reduce)":{animation:"none"},...y},children:[L&&w&&c.jsx(ce,{"aria-hidden":"true",sx:{display:"flex",justifyContent:"center",pt:1.25},children:c.jsx(ce,{sx:{width:36,height:4,borderRadius:999,bgcolor:"neutral.300"}})}),(_||a||x)&&c.jsxs(ce,{component:"header",sx:{position:"relative",flexShrink:0,px:{xs:2,sm:3},pt:L&&w?1.25:{xs:2,sm:2.5},pb:a?1.5:2,pr:x?{xs:7,sm:8}:{xs:2,sm:3}},children:[_&&c.jsx(ue,{id:k,level:"title-lg",sx:{fontWeight:650},children:_}),a&&c.jsx(ue,{id:D,level:"body-sm",sx:{color:"text.tertiary",mt:.5},children:a}),x&&c.jsx(dr,{"aria-label":P("closeDialog"),variant:"plain",color:"neutral",onClick:j,sx:{position:"absolute",zIndex:1,top:L&&w?6:12,right:{xs:10,sm:16},borderRadius:"50%"},children:c.jsx(mb,{})})]}),c.jsx(ce,{sx:{flex:1,minHeight:0,overflowY:"auto",overscrollBehavior:"contain",px:{xs:2,sm:3},pb:{xs:2.5,sm:3},...o},children:t}),i&&c.jsxs(c.Fragment,{children:[c.jsx(la,{}),c.jsx(ce,{component:"footer",sx:{flexShrink:0,px:{xs:2,sm:3},py:2,bgcolor:"background.surface",...s},children:i})]})]})})});qu.displayName="AppModal";const nL=e=>p.createElement(qu,{...e,isMobile:!0}),oL=e=>p.createElement(qu,{...e,isMobile:!1}),aL=(e=768)=>{const t=eh(`(max-width:${e}px)`);return{ResponsiveModal:t?nL:oL,isMobile:t}};/*! Capacitor: https://capacitorjs.com/ - MIT License */var Ii;
128(function(e){e.Unimplemented="UNIMPLEMENTED",e.Unavailable="UNAVAILABLE"})(Ii||(Ii={}));class _d extends Error{constructor(t,r,n){super(t),this.message=t,this.code=r,this.data=n}}const iL=e=>{var t,r;return e!=null&&e.androidBridge?"android":!((r=(t=e==null?void 0:e.webkit)===null||t===void 0?void 0:t.messageHandlers)===null||r===void 0)&&r.bridge?"ios":"web"},sL=e=>{const t=e.CapacitorCustomPlatform||null,r=e.Capacitor||{},n=r.Plugins=r.Plugins||{},o=()=>t!==null?t.name:iL(e),a=()=>o()!=="web",i=f=>{const h=u.get(f);return!!(h!=null&&h.platforms.has(o())||s(f))},s=f=>{var h;return(h=r.PluginHeaders)===null||h===void 0?void 0:h.find(g=>g.name===f)},l=f=>e.console.error(f),u=new Map,d=(f,h={})=>{const g=u.get(f);if(g)return g.proxy;const m=o(),v=s(f);let x;const w=async()=>(!x&&m in h?x=typeof h[m]=="function"?x=await h[m]():x=h[m]:t!==null&&!x&&"web"in h&&(x=typeof h.web=="function"?x=await h.web():x=h.web),x),S=(P,E)=>{var T,I;if(v){const k=v==null?void 0:v.methods.find(D=>E===D.name);if(k)return k.rtype==="promise"?D=>r.nativePromise(f,E.toString(),D):(D,L)=>r.nativeCallback(f,E.toString(),D,L);if(P)return(T=P[E])===null||T===void 0?void 0:T.bind(P)}else{if(P)return(I=P[E])===null||I===void 0?void 0:I.bind(P);throw new _d(`"${f}" plugin is not implemented on ${m}`,Ii.Unimplemented)}},y=P=>{let E;const T=(...I)=>{const k=w().then(D=>{const L=S(D,P);if(L){const $=L(...I);return E=$==null?void 0:$.remove,$}else throw new _d(`"${f}.${P}()" is not implemented on ${m}`,Ii.Unimplemented)});return P==="addListener"&&(k.remove=async()=>E()),k};return T.toString=()=>`${P.toString()}() { [capacitor code] }`,Object.defineProperty(T,"name",{value:P,writable:!1,configurable:!1}),T},_=y("addListener"),R=y("removeListener"),O=(P,E)=>{const T=_({eventName:P},E),I=async()=>{const D=await T;R({eventName:P,callbackId:D},E)},k=new Promise(D=>T.then(()=>D({remove:I})));return k.remove=async()=>{await I()},k},b=new Proxy({},{get(P,E){switch(E){case"$$typeof":return;case"toJSON":return()=>({});case"addListener":return v?O:_;case"removeListener":return R;default:return y(E)}}});return n[f]=b,u.set(f,{name:f,proxy:b,platforms:new Set([...Object.keys(h),...v?[m]:[]])}),b};return r.convertFileSrc||(r.convertFileSrc=f=>f),r.getPlatform=o,r.handleError=l,r.isNativePlatform=a,r.isPluginAvailable=i,r.registerPlugin=d,r.Exception=_d,r.DEBUG=!!r.DEBUG,r.isLoggingEnabled=!!r.isLoggingEnabled,r},lL=e=>e.Capacitor=sL(e),Di=lL(typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{}),Ma=Di.registerPlugin;class up{constructor(){this.listeners={},this.retainedEventArguments={},this.windowListeners={}}addListener(t,r){let n=!1;this.listeners[t]||(this.listeners[t]=[],n=!0),this.listeners[t].push(r);const a=this.windowListeners[t];a&&!a.registered&&this.addWindowListener(a),n&&this.sendRetainedArgumentsForEvent(t);const i=async()=>this.removeListener(t,r);return Promise.resolve({remove:i})}async removeAllListeners(){this.listeners={};for(const t in this.windowListeners)this.removeWindowListener(this.windowListeners[t]);this.windowListeners={}}notifyListeners(t,r,n){const o=this.listeners[t];if(!o){if(n){let a=this.retainedEventArguments[t];a||(a=[]),a.push(r),this.retainedEventArguments[t]=a}return}o.forEach(a=>a(r))}hasListeners(t){var r;return!!(!((r=this.listeners[t])===null||r===void 0)&&r.length)}registerWindowListener(t,r){this.windowListeners[r]={registered:!1,windowEventName:t,pluginEventName:r,handler:n=>{this.notifyListeners(r,n)}}}unimplemented(t="not implemented"){return new Di.Exception(t,Ii.Unimplemented)}unavailable(t="not available"){return new Di.Exception(t,Ii.Unavailable)}async removeListener(t,r){const n=this.listeners[t];if(!n)return;const o=n.indexOf(r);this.listeners[t].splice(o,1),this.listeners[t].length||this.removeWindowListener(this.windowListeners[t])}addWindowListener(t){window.addEventListener(t.windowEventName,t.handler),t.registered=!0}removeWindowListener(t){t&&(window.removeEventListener(t.windowEventName,t.handler),t.registered=!1)}sendRetainedArgumentsForEvent(t){const r=this.retainedEventArguments[t];r&&(delete this.retainedEventArguments[t],r.forEach(n=>{this.notifyListeners(t,n)}))}}const zg=e=>
128encodeURIComponent(e).replace(/%(2[346B]|5E|60|7C)/g,decodeURIComponent).replace(/[()]/g,escape),Ng=e=>e.replace(/(%[\dA-F]{2})+/gi,decodeURIComponent);class cL extends up{async getCookies(){const t=document.cookie,r={};return t.split(";").forEach(n=>{if(n.length<=0)return;let[o,a]=n.replace(/=/,"CAP_COOKIE").split("CAP_COOKIE");o=Ng(o).trim(),a=Ng(a).trim(),r[o]=a}),r}async setCookie(t){try{const r=zg(t.key),n=zg(t.value),o=t.expires?`; expires=${t.expires.replace("expires=","")}`:"",a=(t.path||"/").replace("path=",""),i=t.url!=null&&t.url.length>0?`domain=${t.url}`:"";document.cookie=`${r}=${n||""}${o}; path=${a}; ${i};`}catch(r){return Promise.reject(r)}}async deleteCookie(t){try{document.cookie=`${t.key}=; Max-Age=0`}catch(r){return Promise.reject(r)}}async clearCookies(){try{const t=document.cookie.split(";")||[];for(const r of t)document.cookie=r.replace(/^ +/,"").replace(/=.*/,`=;expires=${new Date().toUTCString()};path=/`)}catch(t){return Promise.reject(t)}}async clearAllCookies(){try{await this.clearCookies()}catch(t){return Promise.reject(t)}}}Ma("CapacitorCookies",{web:()=>new cL});const uL=async e=>new Promise((t,r)=>{const n=new FileReader;n.onload=()=>{const o=n.result;t(o.indexOf(",")>=0?o.split(",")[1]:o)},n.onerror=o=>r(o),n.readAsDataURL(e)}),dL=(e={})=>{const t=Object.keys(e);return Object.keys(e).map(o=>o.toLocaleLowerCase()).reduce((o,a,i)=>(o[a]=e[t[i]],o),{})},fL=(e,t=!0)=>e?Object.entries(e).reduce((n,o)=>{const[a,i]=o;let s,l;return Array.isArray(i)?(l="",i.forEach(u=>{s=t?encodeURIComponent(u):u,l+=`${a}=${s}&`}),l.slice(0,-1)):(s=t?encodeURIComponent(i):i,l=`${a}=${s}`),`${n}&${l}`},"").substr(1):null,hL=(e,t={})=>{const r=Object.assign({method:e.method||"GET",headers:e.headers},t),o=dL(e.headers)["content-type"]||"";if(typeof e.data=="string")r.body=e.data;else if(o.includes("application/x-www-form-urlencoded")){const a=new URLSearchParams;for(const[i,s]of Object.entries(e.data||{}))a.set(i,s);r.body=a.toString()}else if(o.includes("multipart/form-data")||e.data instanceof FormData){const a=new FormData;if(e.data instanceof FormData)e.data.forEach((s,l)=>{a.append(l,s)});else for(const s of Object.keys(e.data))a.append(s,e.data[s]);r.body=a;const i=new Headers(r.headers);i.delete("content-type"),r.headers=i}else(o.includes("application/json")||typeof e.data=="object")&&(r.body=JSON.stringify(e.data));return r};class pL extends up{async request(t){const r=hL(t,t.webFetchExtra),n=fL(t.params,t.shouldEncodeUrlParams),o=n?`${t.url}?${n}`:t.url,a=await fetch(o,r),i=a.headers.get("content-type")||"";let{responseType:s="text"}=a.ok?t:{};i.includes("application/json")&&(s="json");let l,u;switch(s){case"arraybuffer":case"blob":u=await a.blob(),l=await uL(u);break;case"json":l=await a.json();break;case"document":case"text":default:l=await a.text()}const d={};return a.headers.forEach((f,h)=>{d[h]=f}),{data:l,headers:d,status:a.status,url:a.url}}async get(t){return this.request(Object.assign(Object.assign({},t),{method:"GET"}))}async post(t){return this.request(Object.assign(Object.assign({},t),{method:"POST"}))}async put(t){return this.request(Object.assign(Object.assign({},t),{method:"PUT"}))}async patch(t){return this.request(Object.assign(Object.assign({},t),{method:"PATCH"}))}async delete(t){return this.request(Object.assign(Object.assign({},t),{method:"DELETE"}))}}Ma("CapacitorHttp",{web:()=>new pL});var Fg;(function(e){e.Dark="DARK",e.Light="LIGHT",e.Default="DEFAULT"})(Fg||(Fg={}));var Hg;(function(e){e.StatusBar="StatusBar",e.NavigationBar="NavigationBar"})(Hg||(Hg={}));class mL extends up{async setStyle(){this.unavailable("not available for web")}async setAnimation(){this.unavailable("not available for web")}async show(){this.unavailable("not available for web")}async hide(){this.unavailable("not available for web")}}Ma("SystemBars",{web:()=>new mL});const ht=Ma("CapacitorSQLite",{web:()=>Mr(()=>import("./web-Bmns9-W5.js"),__vite__mapDeps([0,1,2])).then(e=>new e.CapacitorSQLiteWeb),electron:()=>window.CapacitorCustomPlatform.plugins.CapacitorSQLite}),dp="offline_feature_enabled",kf="donetick:offline-feature-changed",Sb=e=>{if(e===null||typeof e>"u")return!0;try{return JSON.parse(e)!==!1}catch{return!0}},Xe=()=>typeof window>"u"||!window.localStorage?!0:Sb(window.localStorage.getItem(dp)),R7=e=>{typeof window>"u"||!window.localStorage||(window.localStorage.setItem(dp,JSON.stringify(!!e)),window.dispatchEvent(new CustomEvent(kf,{detail:{enabled:!!e}})))},T7=e=>{if(typeof window>"u")return()=>{};const t=r=>{var n;if((r==null?void 0:r.type)==="storage"){if(r.key!==dp)return;e(Sb(r.newValue));return}e(!!((n=r==null?void 0:r.detail)!=null&&n.enabled))};return window.addEventListener(kf,t),window.addEventListener("storage",t),()=>{window.removeEventListener(kf,t),window.removeEventListener("storage",t)}},I7=async()=>
128{if(!(typeof window>"u"||!("caches"in window)))try{const e=await window.caches.keys();await Promise.all(e.map(t=>window.caches.delete(t)))}catch{}},pt="donetick_offline",gL=2,vL="donetick_offline",yL=2;let Ml=null;const bL=()=>{if(Ml===null)try{Ml=Di.isNativePlatform()}catch{Ml=!1}return Ml},Io=e=>((e==null?void 0:e.values)||[]).filter(t=>t&&typeof t=="object"&&!("ios_columns"in t)),zl=(e,t)=>{const r=[];for(const n of Io(e))try{r.push(JSON.parse(n[t]))}catch{}return r};class xL{constructor(){this.db=null,this.initialized=!1,this._initPromise=null}async init(){if(!this.initialized)return this._initPromise?this._initPromise:(this._initPromise=this._doInit().finally(()=>{this._initPromise=null}),this._initPromise)}async _doInit(){var t;try{this.db=await ht.createConnection({database:pt,version:gL,encrypted:!1,mode:"no-encryption"})}catch(r){if(!((t=r==null?void 0:r.message)!=null&&t.includes("already exists")))throw r}await ht.open({database:pt}),await ht.execute({database:pt,statements:` 129 CREATE TABLE IF NOT EXISTS cached_chores ( 130 id INTEGER PRIMARY KEY, 131 data TEXT NOT NULL, 132 sync_version INTEGER NOT NULL DEFAULT 0, 133 cached_at INTEGER NOT NULL 134 ); 135 136 CREATE TABLE IF NOT EXISTS command_queue ( 137 id INTEGER PRIMARY KEY AUTOINCREMENT, 138 command_type TEXT NOT NULL, 139 entity_id TEXT NOT NULL, 140 payload TEXT NOT NULL, 141 created_at INTEGER NOT NULL, 142 status TEXT NOT NULL DEFAULT 'pending', 143 error TEXT, 144 retry_count INTEGER NOT NULL DEFAULT 0 145 ); 146 147 CREATE TABLE IF NOT EXISTS sync_meta ( 148 key TEXT PRIMARY KEY, 149 value TEXT NOT NULL 150 ); 151 152 CREATE TABLE IF NOT EXISTS cached_history ( 153 id INTEGER PRIMARY KEY, 154 chore_id INTEGER NOT NULL, 155 data TEXT NOT NULL, 156 performed_at INTEGER NOT NULL, 157 pending INTEGER NOT NULL DEFAULT 0, 158 cached_at INTEGER NOT NULL 159 ); 160 161 CREATE INDEX IF NOT EXISTS idx_history_chore_id ON cached_history(chore_id); 162 CREATE INDEX IF NOT EXISTS idx_history_performed_at ON cached_history(performed_at DESC); 163 CREATE INDEX IF NOT EXISTS idx_history_pending ON cached_history(pending); 164 `});try{await ht.execute({database:pt,statements:"ALTER TABLE command_queue ADD COLUMN retry_count INTEGER NOT NULL DEFAULT 0;"})}catch{}this.initialized=!0}async saveChores(t){if(!t.length)return;const r=t.map(n=>({statement:"INSERT OR REPLACE INTO cached_chores (id, data, sync_version, cached_at) VALUES (?, ?, ?, ?)",values:[n.id,JSON.stringify(n),n.syncVersion||0,Date.now()]}));await ht.executeSet({database:pt,set:r})}async getChores(t=!1){const r=await ht.query({database:pt,statement:"SELECT data FROM cached_chores",values:[]}),n=zl(r,"data");return t?n:n.filter(o=>o.isActive!==!1)}async getChore(t){const r=Number(t),n=await ht.query({database:pt,statement:"SELECT data FROM cached_chores WHERE id = ?",values:[isNaN(r)?t:r]});return zl(n,"data")[0]??null}async deleteChores(t){if(!t.length)return;const r=t.map(n=>({statement:"DELETE FROM cached_chores WHERE id = ?",values:[n]}));await ht.executeSet({database:pt,set:r})}async clearChores(){await ht.execute({database:pt,statements:"DELETE FROM cached_chores"})}async saveHistory(t){if(!t.length)return;const r=[...new Set(t.map(o=>Number(o.choreId)))];if(r.length){const o=r.map(()=>"?").join(", ");await ht.run({database:pt,statement:`DELETE FROM cached_history WHERE pending = 1 AND chore_id IN (${o})`,values:r})}const n=t.map(o=>({statement:"INSERT OR REPLACE INTO cached_history (id, chore_id, data, performed_at, pending, cached_at) VALUES (?, ?, ?, ?, ?, ?)",values:[o.id,Number(o.choreId),JSON.stringify(o),new Date(o.performedAt).getTime(),0,Date.now()]}));await ht.executeSet({database:pt,set:n})}async savePendingHistory(t){await ht.run({database:pt,statement:"INSERT OR REPLACE INTO cached_history (id, chore_id, data, performed_at, pending, cached_at) VALUES (?, ?, ?, ?, ?, ?)",values:[t.id,Number(t.choreId),JSON.stringify(t),new Date(t.performedAt).getTime(),1,Date.now()]})}async getHistoryByChore(t){const r=await ht.query({database:pt,statement:"SELECT data FROM cached_history WHERE chore_id = ? ORDER BY performed_at DESC",values:[Number(t)]});return zl(r,"data")}async getHistoryByDays(t){const r=t>=365?0:Date.now()-t*24*60*60*1e3,n=await ht.query({database:pt,statement:r===0?"SELECT data FROM cached_history ORDER BY performed_at DESC":"SELECT data FROM cached_history WHERE performed_at >= ? ORDER BY performed_at DESC",values:r===0?[]:[r]});return zl(n,"data")}async deleteHistory(t){if(!t.length)return;const r=t.map(n=>
164({statement:"DELETE FROM cached_history WHERE id = ?",values:[n]}));await ht.executeSet({database:pt,set:r})}async updateHistoryEntry(t,r,n){const o=await ht.query({database:pt,statement:"SELECT data, pending FROM cached_history WHERE id = ?",values:[r]}),a=Io(o);if(!a.length)return;const i=a[0];let s;try{s=JSON.parse(i.data)}catch{return}const l={...s,...n,id:r,choreId:Number(t)};await ht.run({database:pt,statement:"INSERT OR REPLACE INTO cached_history (id, chore_id, data, performed_at, pending, cached_at) VALUES (?, ?, ?, ?, ?, ?)",values:[r,Number(t),JSON.stringify(l),new Date(l.performedAt).getTime(),i.pending||0,Date.now()]})}async deleteHistoryEntry(t){await ht.run({database:pt,statement:"DELETE FROM cached_history WHERE id = ?",values:[t]})}async clearHistory(){await ht.execute({database:pt,statements:"DELETE FROM cached_history"})}async enqueueCommand(t){var n;return(n=(await ht.run({database:pt,statement:`INSERT INTO command_queue (command_type, entity_id, payload, created_at, status, error) 165 VALUES (?, ?, ?, ?, ?, ?)`,values:[t.commandType,t.entityId,t.payload,t.createdAt,t.status,t.error]})).changes)==null?void 0:n.lastId}async getCommands(){const t=await ht.query({database:pt,statement:"SELECT * FROM command_queue ORDER BY created_at ASC",values:[]});return Io(t).map(r=>({id:r.id,commandType:r.command_type,entityId:r.entity_id,payload:r.payload,createdAt:r.created_at,status:r.status,error:r.error,retryCount:r.retry_count??0}))}async getCommandsByEntity(t){const r=await ht.query({database:pt,statement:"SELECT * FROM command_queue WHERE entity_id = ? ORDER BY created_at ASC",values:[t]});return Io(r).map(n=>({id:n.id,commandType:n.command_type,entityId:n.entity_id,payload:n.payload,createdAt:n.created_at,status:n.status,error:n.error,retryCount:n.retry_count??0}))}async updateCommandStatus(t,r,n){await ht.run({database:pt,statement:"UPDATE command_queue SET status = ?, error = ? WHERE id = ?",values:[r,n,t]})}async updateCommand(t,r){const n=await ht.query({database:pt,statement:"SELECT * FROM command_queue WHERE id = ?",values:[t]}),o=Io(n);if(!o.length)return;const a=o[0];await ht.run({database:pt,statement:`UPDATE command_queue 166 SET command_type = ?, entity_id = ?, payload = ?, created_at = ?, status = ?, error = ?, retry_count = ? 167 WHERE id = ?`,values:[r.commandType??a.command_type,r.entityId??a.entity_id,r.payload??a.payload,r.createdAt??a.created_at,r.status??a.status,Object.prototype.hasOwnProperty.call(r,"error")?r.error:a.error,r.retryCount??a.retry_count??0,t]})}async incrementCommandRetry(t){await ht.run({database:pt,statement:"UPDATE command_queue SET retry_count = COALESCE(retry_count, 0) + 1 WHERE id = ?",values:[t]})}async removeCommand(t){await ht.run({database:pt,statement:"DELETE FROM command_queue WHERE id = ?",values:[t]})}async clearCommands(){await ht.execute({database:pt,statements:"DELETE FROM command_queue"})}async getSyncCursor(){const t=await ht.query({database:pt,statement:"SELECT value FROM sync_meta WHERE key = 'sync_cursor'",values:[]}),r=Io(t);if(r.length>0){const n=Number(r[0].value);return Number.isFinite(n)?n:0}return 0}async setSyncCursor(t){await ht.run({database:pt,statement:"INSERT OR REPLACE INTO sync_meta (key, value) VALUES ('sync_cursor', ?)",values:[String(t)]})}async getLastSyncTime(){const t=await ht.query({database:pt,statement:"SELECT value FROM sync_meta WHERE key = 'last_sync_time'",values:[]}),r=Io(t);if(r.length>0){const n=Number(r[0].value);return Number.isFinite(n)?n:null}return null}async setLastSyncTime(t){await ht.run({database:pt,statement:"INSERT OR REPLACE INTO sync_meta (key, value) VALUES ('last_sync_time', ?)",values:[String(t)]})}async saveKV(t,r){await ht.run({database:pt,statement:"INSERT OR REPLACE INTO sync_meta (key, value) VALUES (?, ?)",values:[t,JSON.stringify(r)]})}async getKV(t){const r=await ht.query({database:pt,statement:"SELECT value FROM sync_meta WHERE key = ?",values:[t]}),n=Io(r);if(n.length>0)try{return JSON.parse(n[0].value)}catch{return null}return null}async clearAll(){await ht.execute({database:pt,statements:` 168 DELETE FROM cached_chores; 169 DELETE FROM command_queue; 170 DELETE FROM sync_meta; 171 DELETE FROM cached_history; 172 `})}}class CL{constructor(){this.db=null,this.initialized=!1}_open(){return new Promise((t,r)=>{const n=indexedDB.open(vL,yL);n.onupgradeneeded=o=>{const a=o.target.result;if(a.objectStoreNames.contains("cached_chores")||a.createObjectStore("cached_chores",{keyPath:"id"}),!a.objectStoreNames.contains("command_queue")){const i=a.createObjectStore("command_queue",{keyPath:"id",autoIncrement:!0});i.createIndex("entity_id","entityId",{unique:!1}),i.createIndex("created_at","createdAt",{unique:!1}),i.createIndex("status","status",{unique:!1})}if(a.objectStoreNames.contains("sync_meta")||a.createObjectStore("sync_meta",{keyPath:"key"}),!a.objectStoreNames.contains("cached_history")){const i=a.createObjectStore("cached_history",{keyPath:"id"});i.createIndex("chore_id","choreId",{unique:!1}),i.createIndex("performed_at","performedAt",{unique:!1}
172),i.createIndex("pending","pending",{unique:!1})}},n.onsuccess=o=>t(o.target.result),n.onerror=o=>r(o.target.error)})}async init(){this.initialized||(this.db=await this._open(),this.db.onclose=()=>{this.initialized=!1},this.initialized=!0)}async _tx(t,r="readonly"){(!this.initialized||!this.db)&&await this.init();try{const n=this.db.transaction(t,r),o=n.objectStore(t);return{tx:n,store:o}}catch(n){if(n.name==="InvalidStateError"||n.name==="TransactionInactiveError"){this.initialized=!1,await this.init();const o=this.db.transaction(t,r),a=o.objectStore(t);return{tx:o,store:a}}throw n}}_request(t){return new Promise((r,n)=>{t.onsuccess=()=>r(t.result),t.onerror=()=>n(t.error)})}async saveChores(t){if(!t.length)return;const{store:r,tx:n}=await this._tx("cached_chores","readwrite");for(const o of t)r.put({id:o.id,data:o,syncVersion:o.syncVersion||0,cachedAt:Date.now()});return new Promise((o,a)=>{n.oncomplete=()=>o(),n.onerror=()=>a(n.error)})}async getChores(t=!1){const{store:r}=await this._tx("cached_chores"),o=(await this._request(r.getAll())).map(a=>a.data);return t?o:o.filter(a=>a.isActive!==!1)}async getChore(t){const{store:r}=await this._tx("cached_chores"),n=Number(t),o=await this._request(r.get(isNaN(n)?t:n));return o?o.data:null}async deleteChores(t){if(!t.length)return;const{store:r,tx:n}=await this._tx("cached_chores","readwrite");for(const o of t)r.delete(o);return new Promise((o,a)=>{n.oncomplete=()=>o(),n.onerror=()=>a(n.error)})}async clearChores(){const{store:t}=await this._tx("cached_chores","readwrite");await this._request(t.clear())}async saveHistory(t){if(!t.length)return;const r=[...new Set(t.map(a=>Number(a.choreId)))];await this._deletePendingHistoryByChoreIds(r);const{store:n,tx:o}=await this._tx("cached_history","readwrite");for(const a of t)n.put({id:a.id,choreId:Number(a.choreId),data:a,performedAt:new Date(a.performedAt).getTime(),pending:0,cachedAt:Date.now()});return new Promise((a,i)=>{o.oncomplete=()=>a(),o.onerror=()=>i(o.error)})}async savePendingHistory(t){const{store:r}=await this._tx("cached_history","readwrite");await this._request(r.put({id:t.id,choreId:Number(t.choreId),data:t,performedAt:new Date(t.performedAt).getTime(),pending:1,cachedAt:Date.now()}))}async _deletePendingHistoryByChoreIds(t){if(!t.length)return;const r=new Set(t),{store:n}=await this._tx("cached_history"),o=n.index("pending"),i=(await this._request(o.getAll(1))).filter(u=>r.has(Number(u.choreId))).map(u=>u.id);if(!i.length)return;const{store:s,tx:l}=await this._tx("cached_history","readwrite");for(const u of i)s.delete(u);return new Promise((u,d)=>{l.oncomplete=()=>u(),l.onerror=()=>d(l.error)})}async getHistoryByChore(t){const{store:r}=await this._tx("cached_history"),n=r.index("chore_id");return(await this._request(n.getAll(Number(t)))).map(a=>a.data).sort((a,i)=>new Date(i.performedAt)-new Date(a.performedAt))}async getHistoryByDays(t){const r=t>=365?0:Date.now()-t*24*60*60*1e3,{store:n}=await this._tx("cached_history");return(await this._request(n.getAll())).map(a=>a.data).filter(a=>r===0?!0:new Date(a.performedAt).getTime()>=r).sort((a,i)=>new Date(i.performedAt)-new Date(a.performedAt))}async deleteHistory(t){if(!t.length)return;const{store:r,tx:n}=await this._tx("cached_history","readwrite");for(const o of t)r.delete(o);return new Promise((o,a)=>{n.oncomplete=()=>o(),n.onerror=()=>a(n.error)})}async updateHistoryEntry(t,r,n){const{store:o}=await this._tx("cached_history"),a=await this._request(o.get(r));if(!a)return;const i={...a,choreId:Number(t),data:{...a.data,...n,id:r,choreId:Number(t)}};i.performedAt=new Date(i.data.performedAt).getTime(),i.cachedAt=Date.now();const{store:s}=await this._tx("cached_history","readwrite");await this._request(s.put(i))}async deleteHistoryEntry(t){const{store:r}=await this._tx("cached_history","readwrite");await this._request(r.delete(t))}async clearHistory(){const{store:t}=await this._tx("cached_history","readwrite");await this._request(t.clear())}async enqueueCommand(t){const{store:r}=await this._tx("command_queue","readwrite");return await this._request(r.add({commandType:t.commandType,entityId:t.entityId,payload:t.payload,createdAt:t.createdAt,status:t.status,error:t.error,retryCount:0}))}async getCommands(){const{store:t}=await this._tx("command_queue"),r=t.index("created_at");return await this._request(r.getAll())}async getCommandsByEntity(t){const{store:r}=await this._tx("command_queue"),n=r.index("entity_id");return(await this._request(n.getAll(t))).sort((a,i)=>a.createdAt-i.createdAt)}async updateCommandStatus(t,r,n){const{store:o}=await this._tx("command_queue","readwrite"),a=await this._request(o.get(t));a&&(a.status=r,a.error=n,await this._request(o.put(a)))}async updateCommand(t,r){const{store:n}=await this._tx("command_queue","readwrite"),o=await this._request(n.get(t));o&&await this._request(n.put({...o,...r}))}async incrementCommandRetry(t){const{store:r}=await this._tx("command_queue","readwrite"),n=await this._request(r.get(t));n&&(n.retryCount=(n.retryCount??0)+1,await this._request(r.put(n)))}async removeCommand(t){const{store:r}=await this._tx("command_queue","readwrite");await this._request(r.delete(t))}async clearCommands(){const{store:t}=await this._tx("command_queue","readwrite");await this._request(t.clear())}async getSyncCursor(){const{store:t}=await this._tx("sync_meta"),r=await this._request(t.get("sync_cursor"));return r?Number(r.value):0}async setSyncCursor(t){const{store:r}=await this._tx("sync_meta","readwrite");await this._request(r.put({key:"sync_cursor",value:String(t)}))}async getLastSyncTime(){const{store:t}=await this._tx("sync_meta"),r=await this._request(t.get("last_sync_time"));return r?Number(r.value):null}async setLastSyncTime(t){const{store:r}=await this._tx("sync_meta","readwrite");await this._request(r.put({key:"last_sync_time",value:String(t)}))}async saveKV(t,r){const{store:n}=await this._tx("sync_meta","readwrite");await this._request(n.put({key:t,value:JSON.stringify(r)}))}async getKV(t){const{store:r}=await this._tx("sync_meta"),n=await this._request(r.get(t));if(n)try{return JSON.parse(n.value)}catch{return null}return null}async clearAll(){const t=["cached_chores","command_queue","sync_meta","cached_history"];for(const r of t){const{store:n}=await this._tx(r,"readwrite");await this._request(n.clear())}}}class SL{constructor(){this.backend=null,this.initialized=!1,typeof document<"u"&&document.addEventListener("visibilitychange",()=>{document.visibilityState==="visible"&&this.backend&&(this.backend.initialized=!1)})}
172async init(){if(!this.initialized)return this._initPromise?this._initPromise:(this._initPromise=(async()=>{this.backend=bL()?new xL:new CL,await this.backend.init(),this.initialized=!0,this._initPromise=null})(),this._initPromise)}async _ensureInit(){this.initialized||await this.init()}async saveChores(t){if(Xe())return await this._ensureInit(),this.backend.saveChores(t)}async getChores(t=!1){return Xe()?(await this._ensureInit(),this.backend.getChores(t)):[]}async getChore(t){return Xe()?(await this._ensureInit(),this.backend.getChore(t)):null}async deleteChores(t){if(Xe())return await this._ensureInit(),this.backend.deleteChores(t)}async clearChores(){if(Xe())return await this._ensureInit(),this.backend.clearChores()}async enqueueCommand(t){return Xe()?(await this._ensureInit(),this.backend.enqueueCommand(t)):null}async getCommands(){return Xe()?(await this._ensureInit(),this.backend.getCommands()):[]}async getCommandsByEntity(t){return Xe()?(await this._ensureInit(),this.backend.getCommandsByEntity(t)):[]}async updateCommandStatus(t,r,n){if(Xe())return await this._ensureInit(),this.backend.updateCommandStatus(t,r,n)}async updateCommand(t,r){if(Xe())return await this._ensureInit(),this.backend.updateCommand(t,r)}async incrementCommandRetry(t){if(Xe())return await this._ensureInit(),this.backend.incrementCommandRetry(t)}async removeCommand(t){if(Xe())return await this._ensureInit(),this.backend.removeCommand(t)}async clearCommands(){if(Xe())return await this._ensureInit(),this.backend.clearCommands()}async getSyncCursor(){return Xe()?(await this._ensureInit(),this.backend.getSyncCursor()):0}async setSyncCursor(t){if(Xe())return await this._ensureInit(),this.backend.setSyncCursor(t)}async getLastSyncTime(){return Xe()?(await this._ensureInit(),this.backend.getLastSyncTime()):null}async setLastSyncTime(t){if(Xe())return await this._ensureInit(),this.backend.setLastSyncTime(t)}async saveHistory(t){if(Xe())return await this._ensureInit(),this.backend.saveHistory(t)}async savePendingHistory(t){if(Xe())return await this._ensureInit(),this.backend.savePendingHistory(t)}async getHistoryByChore(t){return Xe()?(await this._ensureInit(),this.backend.getHistoryByChore(t)):[]}async getHistoryByDays(t){return Xe()?(await this._ensureInit(),this.backend.getHistoryByDays(t)):[]}async deleteHistory(t){if(Xe())return await this._ensureInit(),this.backend.deleteHistory(t)}async updateHistoryEntry(t,r,n){if(Xe())return await this._ensureInit(),this.backend.updateHistoryEntry(t,r,n)}async deleteHistoryEntry(t){if(Xe())return await this._ensureInit(),this.backend.deleteHistoryEntry(t)}async clearHistory(){if(Xe())return await this._ensureInit(),this.backend.clearHistory()}async saveKV(t,r){if(Xe())return await this._ensureInit(),this.backend.saveKV(t,r)}async getKV(t){return Xe()?(await this._ensureInit(),this.backend.getKV(t)):null}async clearAll(){return await this._ensureInit(),this.backend.clearAll()}}const Rt=new SL,Gr={CREATE_CHORE:"create_chore",UPDATE_CHORE:"update_chore",UPDATE_CHORE_HISTORY:"update_chore_history",COMPLETE_CHORE:"complete_chore",SKIP_CHORE:"skip_chore",START_CHORE:"start_chore",PAUSE_CHORE:"pause_chore",DELETE_CHORE:"delete_chore",DELETE_CHORE_HISTORY:"delete_chore_history",RESCHEDULE_CHORE:"reschedule_chore",ARCHIVE_CHORE:"archive_chore",UNARCHIVE_CHORE:"unarchive_chore"},Nl=e=>{try{return{...e,payload:JSON.parse(e.payload)}}catch{return null}};class wL{_sanitizeCreatePayload(t={}){const r={...t};return delete r.id,delete r._pendingCreate,delete r._pendingUpdate,r}_clearPendingFlags(t={}){const r={...t};return delete r._pending,delete r._pendingUpdate,r}async _rollbackCancelledCommand(t){if(!t||t.commandType!==Gr.ARCHIVE_CHORE&&t.commandType!==Gr.UNARCHIVE_CHORE)return;const r=await Rt.getChore(t.entityId);if(!r)return;const n=this._clearPendingFlags({...r,isActive:t.commandType===Gr.ARCHIVE_CHORE});await Rt.saveChores([n])}async enqueue(t,r,n){if(!Xe())throw new Error("Offline support is disabled on this device");const o={commandType:t,entityId:String(r),payload:JSON.stringify(n),createdAt:Date.now(),status:"pending",error:null};return Rt.enqueueCommand(o)}async getPending(){return Xe()?(await Rt.getCommands()).filter(r=>
172r.status==="pending"||r.status==="syncing").map(Nl).filter(Boolean):[]}async getFailed(){return Xe()?(await Rt.getCommands()).filter(r=>r.status==="failed").map(Nl).filter(Boolean):[]}async getPendingForEntity(t){if(!Xe())return[];const r=await Rt.getCommands(),n=String(t);return r.filter(a=>a.entityId===n||typeof a.entityId=="string"&&a.entityId.startsWith(`${n}:`)).sort((a,i)=>a.createdAt-i.createdAt).filter(a=>a.status==="pending"||a.status==="syncing").map(Nl).filter(Boolean)}async getPendingGroupedByEntity(){if(!Xe())return{};const t=await Rt.getCommands(),r={};return t.filter(n=>n.status==="pending"||n.status==="syncing").sort((n,o)=>n.createdAt-o.createdAt).forEach(n=>{const o=Nl(n);if(!o)return;const a=String(n.entityId??"").split(":")[0];a&&(r[a]=r[a]||[],r[a].push(o))}),r}async cancel(t){if(!Xe())return;const n=(await Rt.getCommands()).find(o=>String(o.id)===String(t));return await this._rollbackCancelledCommand(n),Rt.removeCommand(t)}async remapEntityId(t,r){if(!Xe())return;const n=String(t),o=String(r),a=await Rt.getCommands();for(const i of a){const s=String(i.entityId);if(!(s===n||s.startsWith(`${n}:`)))continue;const u=s===n?o:`${o}:${s.slice(n.length+1)}`;let d=i.payload;try{const f=JSON.parse(i.payload);f&&typeof f=="object"&&(String(f.id)===n&&(f.id=r),String(f.choreId)===n&&(f.choreId=r),d=JSON.stringify(f))}catch{}await Rt.updateCommand(i.id,{entityId:u,payload:d})}}async incrementRetry(t){if(Xe())return Rt.incrementCommandRetry(t)}async markSyncing(t){if(Xe())return Rt.updateCommandStatus(t,"syncing",null)}async markFailed(t,r){if(Xe())return Rt.updateCommandStatus(t,"failed",r)}async resetPending(t){if(Xe())return Rt.updateCommandStatus(t,"pending",null)}async resetSyncing(){if(!Xe())return;const r=(await Rt.getCommands()).filter(n=>n.status==="syncing");await Promise.all(r.map(n=>Rt.updateCommandStatus(n.id,"pending",null)))}async markDone(t){if(Xe())return Rt.removeCommand(t)}async compact(){var o,a,i,s;if(!Xe())return;const t=await this.getPending(),r=new Map,n=[];for(const l of t){const u=r.get(l.entityId);if((u==null?void 0:u.commandType)===Gr.CREATE_CHORE){if(l.commandType===Gr.UPDATE_CHORE){const d=this._sanitizeCreatePayload({...u.payload,...l.payload});await Rt.updateCommand(u.id,{payload:JSON.stringify(d)}),n.push(l.id);continue}if(l.commandType===Gr.RESCHEDULE_CHORE){const d=this._sanitizeCreatePayload({...u.payload,dueDate:((o=l.payload)==null?void 0:o.dueDate)??((a=u.payload)==null?void 0:a.dueDate),nextDueDate:((i=l.payload)==null?void 0:i.dueDate)??((s=u.payload)==null?void 0:s.nextDueDate)});await Rt.updateCommand(u.id,{payload:JSON.stringify(d)}),n.push(l.id);continue}if(l.commandType===Gr.ARCHIVE_CHORE){const d=this._sanitizeCreatePayload({...u.payload,isActive:!1});await Rt.updateCommand(u.id,{payload:JSON.stringify(d)}),n.push(l.id);continue}if(l.commandType===Gr.UNARCHIVE_CHORE){const d=this._sanitizeCreatePayload({...u.payload,isActive:!0});await Rt.updateCommand(u.id,{payload:JSON.stringify(d)}),n.push(l.id);continue}if(l.commandType===Gr.DELETE_CHORE){n.push(u.id,l.id),r.delete(l.entityId);continue}}l.commandType===Gr.UPDATE_CHORE&&u&&u.commandType===Gr.UPDATE_CHORE&&n.push(u.id),l.commandType===Gr.DELETE_CHORE&&(u==null?void 0:u.commandType)===Gr.UPDATE_CHORE&&n.push(u.id),r.set(l.entityId,l)}for(const l of[...new Set(n)])await Rt.removeCommand(l)}}const _f=new wL,kL={complete_chore:"completePending",skip_chore:"skipPending",update_chore:"updatePending",create_chore:"createPending",delete_chore:"deletePending",update_chore_history:"editHistoryPending",delete_chore_history:"deleteHistoryPending",reschedule_chore:"reschedulePending",archive_chore:"archivePending",unarchive_chore:"restorePending",start_chore:"startPending",pause_chore:"pausePending"},Bg=(e,t)=>{var n;const r=kL[e];return r?t(`pendingBadge.${r}`):((n=e==null?void 0:e.replace(/_/g," "))==null?void 0:n.replace(/\b\w/g,o=>o.toUpperCase()))||t("sync.commandLabels.pendingAction")};function wb({commands:e,size:t="sm",sx:r={}}){const{t:n}=Jn("common"),{ResponsiveModal:o}=aL(),a=So(),[i,s]=p.useState(!1),[l,u]=p.useState({}),[d,f]=p.useState(!1),h=n("sync.pendingSyncLabel",{count:(e==null?void 0:e.length)||0});if(!e||e.length===0)return null;const g=_=>{_.stopPropagation()},m=async()=>{await a.invalidateQueries({queryKey:["pendingCommands"]}),await a.invalidateQueries({queryKey:["chores"]}),await a.invalidateQueries({queryKey:["choreHistory"]})},v=async(_,R)=>{_.stopPropagation(),u(O=>({...O,[R]:!0}));try{await _f.cancel(R),await m()}finally{u(O=>{const b={...O};return delete b[R],b})}},x=async _=>{if(_.stopPropagation(),e.length!==0){f(!0);try{await Promise.all(e.map(R=>_f.cancel(R.id))),await m(),s(!1)}finally{f(!1),u({})}}},w=_=>{_.stopPropagation(),s(!0)},S=_=>{_!=null&&_.stopPropagation&&_.stopPropagation(),s(!1)},y=t==="xs";return c.jsxs(ce,{"data-no-chore-nav":"true",sx:{mt:y?0:.5,...r},children:[c.jsx(dr,{variant:"soft",color:"warning",size:"sm",onClick:w,onMouseDown:g,onPointerDown:g,"aria-label":h,title:h,sx:{borderRadius:"50%",...y&&{width:18,height:18,minWidth:18,minHeight:18,p:.25}},children:c.jsx(Vj,{sx:{fontSize:y?14:16}})}),c.jsxs(o,{open:i,onClose:S,size:"sm",title:n("sync.pendingActionsTitle"),footer:c.jsx(rL,{secondary:{label:n("close"),onClick:S},primary:{label:n("cancelAll"),color:"danger",onClick:x,loading:d,disabled:e.length===0}}),children:[c.jsx(ue,{level:"body-sm",sx:{color:"text.tertiary",mb:1.5},children:n("sync.actionsWaitingToSync",{count:e.length})}),c.jsx(Un,{sx:{"--List-gap":"8px",p:0,mb:1},children:e.map(_=>c.jsxs(Tr,{sx:{alignItems:"center",justifyContent:"space-between",p:1,border:"1px solid",borderColor:"divider",borderRadius:"md"},children:[c.jsxs(aa,{children:[c.jsx(ue,{level:"body-sm",sx:{fontWeight:600},children:Bg(_.commandType,n)}),c.jsx(ue,{level:"body-xs",sx:{color:"text.tertiary"}
172,children:new Date(_.createdAt).toLocaleString()})]}),c.jsx(dr,{"aria-label":n("sync.cancelActionAria",{label:Bg(_.commandType,n)}),variant:"plain",color:"danger",size:"sm",onClick:R=>v(R,_.id),disabled:!!l[_.id]||d,children:c.jsx(mb,{sx:{fontSize:14}})})]},_.id))})]})]})}const _L=e=>{if(typeof e!="number"||isNaN(e)||e<0)return null;const t=Math.floor(e/3600),r=Math.floor(e%3600/60),n=e%60;return`${t.toString().padStart(2,"0")}:${r.toString().padStart(2,"0")}:${n.toString().padStart(2,"0")}`},EL=e=>{if(!e)return"";if(typeof document>"u")return String(e).replace(/<[^>]*>/g,"");const t=document.createElement("div");return t.innerHTML=e,t.textContent||t.innerText||""},Wg={0:{labelKey:"status.inProgress",color:"primary",icon:c.jsx(Ij,{})},1:{labelKey:"status.completed",color:"success",icon:c.jsx(pb,{})},2:{labelKey:"status.skipped",color:"warning",icon:c.jsx(TA,{})},3:{labelKey:"status.pendingApproval",color:"neutral",icon:c.jsx(vb,{})},4:{labelKey:"status.rejected",color:"danger",icon:c.jsx(xb,{})},5:{labelKey:"status.missed",color:"danger",icon:c.jsx(OA,{})},6:{labelKey:"status.rescheduled",color:"warning",icon:c.jsx(bb,{})}},PL=({allHistory:e,historyEntry:t,index:r,onToggleActions:n,onViewDetails:o,onViewNote:a,pendingCommands:i,performers:s})=>{const{t:l}=Jn("history"),{fmt:u}=Wu(),d=s.find(y=>y.userId===t.completedBy),f=s.find(y=>y.userId===t.assignedTo),h=Wg[t.status]??Wg[1],g=t.status===6&&!t.dueDate?l("status.scheduled"):l(h.labelKey),m=t.performedAt||t.updatedAt,x=(()=>{const{dueDate:y,performedAt:_,status:R}=t;if(!y)return null;if(R===6||R===5)return l("card.wasDue",{date:u.date(y)});if((R===1||R===2||R===0)&&_){const O=q(_).diff(y,"hours"),b=Math.abs(O);if(b<=6)return null;const P=O<0;if(b>=48){const E=Math.floor(b/24);return P?l("card.daysBeforeDue",{count:E}):l("card.daysAfterDue",{count:E})}return P?l("card.hoursBeforeDue",{count:b}):l("card.hoursAfterDue",{count:b})}return null})(),w=t.notes?EL(t.notes):"",S=[u.dateTime(m),t.completedBy!==t.assignedTo&&f?l("card.assignedTo",{name:f.displayName}):null,(t==null?void 0:t.duration)>0?`â± ${_L(t.duration)}`:null,(t==null?void 0:t.points)>0?l("card.points",{count:t.points}):null].filter(Boolean);return c.jsxs(ce,{onClick:()=>o==null?void 0:o(),sx:{display:"flex",minWidth:"100%",bgcolor:"background.body",borderBottom:"1px solid",borderColor:"divider",borderLeft:"3px solid",borderLeftColor:`${h.color}.400`,cursor:o?"pointer":"default","&:hover":o?{bgcolor:"background.level1"}:{}},children:[c.jsxs(ce,{sx:{flex:1,minWidth:0,px:2,py:1.5},children:[c.jsx(ce,{sx:{display:"flex",alignItems:"center",justifyContent:"space-between",mb:.5},children:c.jsxs(ce,{sx:{display:"flex",alignItems:"center",gap:.75},children:[c.jsx(Ms,{size:"sm",color:h.color,variant:"soft",sx:{width:20,height:20,"& svg":{fontSize:"11px"}},children:h.icon}),c.jsx(ue,{level:"title-sm",fontWeight:"lg",sx:{color:`${h.color}.plainColor`},children:g})]})}),x&&c.jsx(ue,{level:"body-xs",sx:{color:"text.tertiary",mb:.25},children:x}),w&&c.jsx(kr,{variant:"soft",color:"neutral",size:"sm",sx:{mt:.5,whiteSpace:"pre-wrap",overflow:"hidden",textOverflow:"ellipsis"},children:c.jsx(ue,{level:"body-xs",sx:{color:"text.secondary",fontStyle:"italic",mb:.25,cursor:"pointer"},onClick:y=>{y.stopPropagation(),a==null||a(t.notes)},children:w.length>80?`${w.slice(0,80)}â¦`:w})}),c.jsxs(ce,{sx:{display:"flex",alignItems:"center",gap:.75,mt:.5,flexWrap:"wrap"},children:[d&&c.jsx(Kr,{size:"sm",variant:"soft",color:"neutral",startDecorator:c.jsx(Ms,{src:d.image,alt:d.displayName,sx:{width:14,height:14}}),children:d.displayName}),S.length>0&&c.jsx(ue,{level:"body-xs",sx:{color:"text.tertiary"},children:S.join(" · ")})]})]}),c.jsx(ce,{sx:{display:"flex",alignItems:"center",pr:.5},onClick:y=>y.stopPropagation(),children:n&&c.jsx(dr,{color:"neutral",variant:"plain",size:"sm",onClick:y=>{y.stopPropagation(),n()},children:c.jsx(cp,{sx:{fontSize:18}})})}),(i==null?void 0:i.length)>0&&c.jsx(wb,{commands:i,size:"s",sx:{mr:.5,position:"absolute",right:-3,top:-3}})]})},RL=()=>{const e=[{id:32,choreId:12,performedAt:q().hour(4).format(),completedBy:1,assignedTo:1,notes:null,dueDate:q().format(),status:1},{id:31,choreId:12,performedAt:q().day(-1).format(),completedBy:1,assignedTo:1,notes:"Need to be replaced with a new one",dueDate:q().day(-2).format(),status:1},{id:31,choreId:12,performedAt:q().day(-10).hour(1).format(),completedBy:2,assignedTo:1,notes:null,dueDate:q().day(-10).format(),status:1}],t=[{userId:1,displayName:"Ryan"},{userId:2,displayName:"Sarah"}];return c.jsxs(c.Fragment,{children:[c.jsx(bt,{item:!0,xs:12,sm:6,"data-aos-history-list":!0,children:c.jsx(ce,{sx:{borderRadius:"sm",p:2,boxShadow:"md"},children:c.jsx(Un,{sx:{p:0},children:e.map((r,n)=>c.jsx("div",{"data-aos-delay":100*n+200,"data-aos-anchor":"[data-aos-history-list]","data-aos":"fade-right",children:c.jsx(PL,{allHistory:e,historyEntry:r,index:n,performers:t,pen
172dingCommands:[]},n)},n))})})}),c.jsx(bt,{item:!0,xs:12,sm:6,"data-aos-history-demo-section":!0,children:c.jsxs(kr,{sx:{p:4,py:6},"data-aos-delay":200,"data-aos-anchor":"[data-aos-history-demo-section]","data-aos":"fade-left",children:[c.jsx(ue,{level:"h3",textAlign:"center",sx:{mt:2,mb:4},children:"History with a Purpose"}),c.jsx(ue,{level:"body-lg",textAlign:"center",sx:{mb:4},children:"Keep track of all your chores and tasks with ease. Donetick records due dates, completion dates, and who completed each task. Any notes added to tasks are also tracked, providing a complete history for your reference. Stay organized and informed with detailed task tracking."})]})})]})},TL=[],IL=e=>Ui({queryKey:["pendingCommands","byEntity"],queryFn:()=>_f.getPendingGroupedByEntity(),refetchInterval:2e3,staleTime:0,select:e}),DL=e=>{const t=p.useCallback(r=>(r==null?void 0:r[String(e)])??TL,[e]);return IL(t)},Gn=Ma("Preferences",{web:()=>Mr(()=>import("./web-Bi-SP-H5.js"),__vite__mapDeps([3,1,2])).then(e=>new e.PreferencesWeb)}),kb=Object.freeze(Object.defineProperty({__proto__:null,Preferences:Gn},Symbol.toStringTag,{value:"Module"})),Ef="https://api.donetick.com",OL="https://chore-assistant-fe.pages.dev/",$L="682262497914-uk8ncra1f8mlbrfrvqad5vt7f93ckq1a.apps.googleusercontent.com",jL=void 0,AL=Object.freeze(Object.defineProperty({__proto__:null,API_URL:Ef,ENVIROMENT:jL,GOOGLE_CLIENT_ID:$L,REDIRECT_URL:OL},Symbol.toStringTag,{value:"Module"})),Ug=Ma("Network",{web:()=>Mr(()=>import("./web-eP20xUuF.js"),__vite__mapDeps([4,1,2])).then(e=>new e.NetworkWeb)});class LL{constructor(){this.deviceOnline=!0,this.serverReachable=!0,this.offlineReason=null,this.connectionStatusListeners=[],this.queueSyncListeners=[],this.lastChecked=null,this.offlineSince=null,this.init()}get isOnline(){return this.deviceOnline&&this.serverReachable}get isNetworkOn(){return this.deviceOnline}async init(){const t=await Ug.getStatus();this.deviceOnline=t.connected,this.lastChecked=Date.now(),t.connected||(this.offlineReason="device",this.offlineSince=Date.now()),Ug.addListener("networkStatusChange",r=>{this.deviceOnline!==r.connected&&(this.deviceOnline=r.connected,this.lastChecked=Date.now(),r.connected?this.offlineReason=this.serverReachable?null:"server":(this.offlineReason="device",this.offlineSince=Date.now()),this.notifyConnectionStatus())})}setServerReachable(){this.serverReachable||(this.serverReachable=!0,this.offlineReason=this.deviceOnline?null:"device",this.notifyConnectionStatus())}setServerUnreachable(){Xe()&&this.serverReachable&&(this.serverReachable=!1,this.offlineReason="server",this.offlineSince=Date.now(),this.notifyConnectionStatus())}setOffline(){this.setServerUnreachable()}setOnline(){this.setServerReachable()}notifyConnectionStatus(){this.connectionStatusListeners.forEach(t=>{t(this.isOnline)})}notifyBackendSync(){this.queueSyncListeners.forEach(t=>{t()})}registerNetworkListener(t){this.connectionStatusListeners.push(t)}unregisterNetworkListener(t){this.connectionStatusListeners=this.connectionStatusListeners.filter(r=>r!==t)}registerBackendSyncListener(t){this.queueSyncListeners.includes(t)||this.queueSyncListeners.push(t)}}const ML=new LL,Pf=Date.now(),zL=`${Pf.toString(36)}-${Math.random().toString(36).slice(2,8)}`;var v0,y0,b0;const NL=((b0=(y0=(v0=performance.getEntriesByType)==null?void 0:v0.call(performance,"navigation"))==null?void 0:y0[0])==null?void 0:b0.type)??"unknown",FL=10,HL=8,Hn=[],uc=[];let _b=0,oi=null,Ts=null;const D7=e=>{if(!e)return;const t=Date.now(),r=Hn[Hn.length-1];if(r){if(r.path===e)return;r.dwellMs=t-r.at}Hn.push({path:e,at:t}),Hn.length>FL&&Hn.shift()},BL=()=>{const e=Date.now();return Hn.map((t,r)=>({path:t.path,dwellMs:t.dwellMs??(r===Hn.length-1?e-t.at:null),msAgo:e-t.at}))},WL=()=>Hn.length>1?Hn[Hn.length-2].path:null,Eb="diagnostics_server_build";try{const e=JSON.parse(localStorage.getItem(Eb)||"null");oi=(e==null?void 0:e.version)??null,Ts=(e==null?void 0:e.commit)??null}catch{}const Pb=(e,t)=>{if(!(!e&&!t)){oi=e||oi,Ts=t||Ts;try{localStorage.setItem(Eb,JSON.stringify({version:oi,commit:Ts}))}catch{}}},UL=e=>{var t,r,n,o;if(!oi)try{Pb(((r=(t=e==null?void 0:e.headers)==null?void 0:t.get)==null?void 0:r.call(t,"x-donetick-version"))||((o=(n=e==null?void 0:e.headers)==null?void 0:n.get)==null?void 0:o.call(n,"x-api-version")),null)}catch{}},O7=(e,t)=>Pb(e,t),VL=e=>String(e||"").split("?")[0].replace(/\/\d+/g,"/:id"),Vg=({endpoint:e,method:t,status:r})=>{uc.push({at:Date.now(),method:t||"GET",endpoint:VL(e),status:r??"network"}),uc.length>HL&&uc.shift()},YL=()=>{const e=Date.now();return uc.map(t=>({method:t.method,endpoint:t.endpoint,status:t.status,msAgo:e-t.at}))};typeof document<"u"&&document.addEventListener("visibilitychange",()=>{document.visibilityState==="hidden"&&(_b+=1)});const GL=async()=>
172{if(!("serviceWorker"in navigator))return{supported:!1};try{const e=await navigator.serviceWorker.getRegistration();return{supported:!0,controlled:!!navigator.serviceWorker.controller,updateWaiting:!!(e!=null&&e.waiting)}}catch{return{supported:!0,controlled:null,updateWaiting:null}}},KL=async()=>{try{const{quota:e,usage:t}=await navigator.storage.estimate();return{usageMb:Math.round(t/1048576*10)/10,quotaMb:Math.round(e/1048576),pressure:e?Math.round(t/e*100):null}}catch{return null}},$7=async()=>{const[e,t]=await Promise.all([GL(),KL()]);return{sessionId:zL,sessionStartedAt:new Date(Pf).toISOString(),sessionDurationMs:Date.now()-Pf,navigationType:NL,backgroundedCount:_b,serverVersion:oi,serverCommit:Ts,previousRoute:WL(),routeTrail:BL(),apiFailures:YL(),heapUsedMb:performance.memory?Math.round(performance.memory.usedJSHeapSize/1048576):null,storage:t,serviceWorker:e}};let fp=!1;const j7=()=>{fp=!0},A7=()=>{fp=!1},Yg=()=>fp||window.location.pathname==="/auth/oauth2",_n={ACCESS_TOKEN:"token",ACCESS_TOKEN_EXPIRY:"token_expiry",REFRESH_TOKEN:"refresh_token",REFRESH_TOKEN_EXPIRY:"refresh_token_expiry"};let Fl=null;const Xu=()=>{var e,t;if(Fl===null)try{Fl=typeof window<"u"&&((t=(e=window.Capacitor)==null?void 0:e.isNativePlatform)==null?void 0:t.call(e))}catch{Fl=!1}return Fl};let Ed=!1;const JL=async({accessToken:e,accessTokenExpiry:t,refreshToken:r,refreshTokenExpiry:n})=>{try{if(e&&localStorage.setItem(_n.ACCESS_TOKEN,e),t&&localStorage.setItem(_n.ACCESS_TOKEN_EXPIRY,t),n&&localStorage.setItem(_n.REFRESH_TOKEN_EXPIRY,n),Di.isNativePlatform())try{r&&await Gn.set({key:_n.REFRESH_TOKEN,value:r}),n&&await Gn.set({key:_n.REFRESH_TOKEN_EXPIRY,value:n})}catch{}}catch(o){throw o}},qL=async()=>{if(!Xu())return null;try{const{value:e}=await Gn.get({key:_n.REFRESH_TOKEN_EXPIRY});return e}catch{return null}},XL=async()=>{if(!Xu())return!1;const e=await qL();if(!e)return!0;try{const t=new Date(e);return isNaN(t.getTime())?!0:new Date>=t}catch{return!0}},QL=async()=>{if(!Ed){Ed=!0;try{if(localStorage.removeItem(_n.ACCESS_TOKEN),localStorage.removeItem(_n.ACCESS_TOKEN_EXPIRY),localStorage.removeItem(_n.REFRESH_TOKEN_EXPIRY),localStorage.removeItem("ca_token"),localStorage.removeItem("ca_expiration"),localStorage.removeItem("access_token"),Xu())try{await Gn.remove({key:_n.REFRESH_TOKEN}),await Gn.remove({key:_n.REFRESH_TOKEN_EXPIRY})}catch{}}catch{}finally{Ed=!1}}},L7=Xu,Gg="OAuth exchange in progress";class ZL{constructor(){this.customServerURL=`${Ef}/api/v1`,this.isRefreshing=!1,this.failedQueue=[],this.lastRefreshTime=0,this.refreshCooldown=3*1e3,this.logoutPromise=null}async init(t=!1){return this.initPromise&&!t?this.initPromise:this.initialized&&!t?Promise.resolve():(this.initPromise=this._doInit().finally(()=>{this.initPromise=null}),this.initPromise)}async _doInit(){const{value:t}=await Gn.get({key:"customServerUrl"});this.customServerURL=`${t||Ef}/api/v1`,this.initialized=!0}getApiURL(){return this.customServerURL}async refreshToken(){if(Yg())return{success:!1,error:Gg};if(await XL())return await this.handleLogout(),{success:!1,error:"Refresh token expired"};if(this.isRefreshing)return{success:!1,error:"Already refreshing"};if(Date.now()-this.lastRefreshTime<this.refreshCooldown)return{success:!1,error:"Refresh cooldown active"};this.isRefreshing=!0;try{const n=await oM();if(n.ok){const o=await n.json(),a=o.token||o.access_token;return await JL({accessToken:a,accessTokenExpiry:o.expire||o.access_token_expiry,refreshToken:o.refresh_token,refreshTokenExpiry:o.refresh_token_expiry}),this.lastRefreshTime=Date.now(),{success:!0,token:a}}else return{success:!1,error:"Refresh failed"}}catch(n){return{success:!1,error:n.message}}finally{this.isRefreshing=!1}}getToken(){return localStorage.getItem("token")}getHeaders(t={}){const r={...t},n=this.getToken();n&&(r.Authorization=`Bearer ${n}`);const o=localStorage.getItem("impersonatedUserId");return o&&(r["X-Impersonate-User-ID"]=o),r}processQueue(t,r=null){this.failedQueue.forEach(({reject:n,resolve:o})=>{t?n(t):o(r)}),this.failedQueue=[]}async handleLogout(){if(!Yg()){if(this.logoutPromise)return this.logoutPromise;this.logoutPromise=this.performLogout();try{await this.logoutPromise}finally{this.logoutPromise=null}}}async performLogout(){try{const{pathname:t,search:r}=window.location;if(t==="/circle/join"){const n=new URLSearchParams(r).get("code");if(n){const{setPendingInvite:o}=await Mr(async()=>{const{setPendingInvite:a}=await import("./PendingInvite-w8CXnTp5.js");return{setPendingInvite:a}},__vite__mapDeps([5,1,2]));o(n)}}}catch{}try{const{unregisterPushNotifications:t}=await Mr(async()=>{const{unregisterPushNotifications:r}=await import("./CapacitorListener-B1QTWhcP.js").then(n=>n.C);return{unregisterPushNotifications:r}},__vite__mapDeps([6,7,1,2,5]));await t()}catch{}await QL();try{await Rt.clearAll()}catch{}try{const{clearImageCache:t}=await Mr(async()=>{const{clearImageCache:r}=await import("./ImageCache-OXdzyrgJ.js");return{clearImageCache:r}},__vite__mapDeps([8,1,2]));await t()}catch{}try{const{clearWidgetData:t}=await Mr(async()=>{const{clearWidgetData:r}=await import("./WidgetService-2-7NGEwL.js");return{clearWidgetData:r}},__vite__mapDeps([9,1,2]));await t()}catch{}try{await tM()}catch{}window.location.pathname!=="/login"&&(window.location.href="/login")}async request(t,r={}){var u;await this.init();const n=`${this.customServerURL}
172${t}`,{skipAuthRecovery:o=!1,...a}=r,i=new AbortController,s=setTimeout(()=>i.abort(),1e4),l={...a,headers:this.getHeaders(a.headers),signal:a.signal??i.signal};try{let d=await fetch(n,l);if(clearTimeout(s),UL(d),d.ok||Vg({endpoint:t,method:l.method,status:d.status}),d.status===401&&(o||this.logoutPromise))return d;if(d.status===401){const f=new Promise((g,m)=>{this.failedQueue.push({resolve:async v=>{if(!v){m(new Error("Token refresh failed"));return}try{const x=this.getHeaders(r==null?void 0:r.headers),w={...l,headers:x},S=await fetch(n,w);g(S)}catch(x){m(x)}},reject:m})});if(f.catch(()=>{}),this.isRefreshing)return f;const h=await this.refreshToken();if(h.success)this.processQueue(null,h.token);else if(h.error==="Refresh cooldown active"){const g=this.getToken();if(g)this.processQueue(null,g);else return this.processQueue(new Error("No token available"),null),await this.handleLogout(),null}else return h.error===Gg?(this.processQueue(new Error(h.error),null),d):h.error==="Already refreshing"?f:(this.processQueue(new Error(h.error),null),h.error!=="Refresh token expired"&&await this.handleLogout(),null);return f}return d}catch(d){throw clearTimeout(s),(d==null?void 0:d.name)==="AbortError"&&((u=a.signal)==null?void 0:u.aborted)||(ML.setServerUnreachable(),Vg({endpoint:t,method:l.method,status:"network"})),d}}async get(t,r={}){return this.request(t,{...r,method:"GET"})}async post(t,r,n={}){return n.headers=n.headers||{},n.headers["Content-Type"]||(n.headers["Content-Type"]="application/json"),this.request(t,{...n,method:"POST",body:r||void 0})}async put(t,r,n={}){return n.headers=n.headers||{},n.headers["Content-Type"]||(n.headers["Content-Type"]="application/json"),this.request(t,{...n,method:"PUT",body:r||void 0})}async delete(t,r={}){return r.headers=r.headers||{},r.headers["Content-Type"]||(r.headers["Content-Type"]="application/json"),this.request(t,{...r,method:"DELETE"})}async upload(t,r,n={}){const o=n.headers||{};return delete o["Content-Type"],this.request(t,{...n,method:"POST",body:r,headers:o})}getAssetURL(t){return`${this.customServerURL}/assets/${t}`}}const Lr=new ZL,eM=Object.freeze(Object.defineProperty({__proto__:null,apiClient:Lr},Symbol.toStringTag,{value:"Module"})),pe=async(e,t={})=>{switch(t.method){case"GET":return Lr.get(e,t);case"POST":return Lr.post(e,t.body,t);case"PUT":return Lr.put(e,t.body,t);case"DELETE":return Lr.delete(e,t);default:return Lr.request(e,t)}},me=()=>Lr.getHeaders(),za={getApiURL:()=>Lr.getApiURL()},M7=async(e,t,r,n)=>{await Lr.init(!0);const o=za.getApiURL();return fetch(`${o}/auth/`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({username:e,password:t,displayName:r,email:n})})},tM=async()=>{var n,o;await Lr.init(!0);const e=za.getApiURL(),t=typeof window<"u"&&((o=(n=window.Capacitor)==null?void 0:n.isNativePlatform)==null?void 0:o.call(n)),r={method:"POST"};return t||(r.credentials="include"),fetch(`${e}/auth/logout`,r)},z7=async e=>{var t="/chores/";return e&&(t+="?includeArchived=true"),(await pe(t,{method:"GET",headers:me()})).json()},N7=()=>pe("/chores/archived",{method:"GET",headers:me()}),F7=e=>pe(`/chores/${e}/archive`,{method:"PUT",headers:me()}),H7=e=>pe(`/chores/${e}/unarchive`,{method:"PUT",headers:me()}),B7=e=>pe(`/chores/${e}`,{method:"GET",headers:me()}),W7=e=>pe(`/chores/${e}/details`,{method:"GET",headers:me()}),U7=(e,t,r,n)=>{var o=`/chores/${e}/do`;let a="";return r&&(a=`?completedDate=${new Date(r).toISOString()}`,o+=a),n&&(t.performer=Number(n),a===""?o+=`&performer=${n}`:o+=`?performer=${n}`),pe(o,{method:"POST",headers:me(),body:JSON.stringify(t)}).then(i=>(i!=null&&i.ok&&Mr(async()=>{const{recordTaskCompleted:s}=await import("./FeedbackService-42cagSqN.js");return{recordTaskCompleted:s}},__vite__mapDeps([10,1,2])).then(({recordTaskCompleted:s})=>s()).catch(()=>{}),i))},V7=e=>pe(`/chores/${e}/start`,{method:"PUT",headers:me()}),Y7=e=>pe(`/chores/${e}/pause`,{method:"PUT",headers:me()}),G7=(e,t,r)=>{var n=`/chores/${t}/subtask`;return pe(n,{method:"PUT",headers:me(),body:JSON.stringify({completedAt:r,id:e,choreId:t})})},K7=e=>pe(`/chores/${e}/skip`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({})}),J7=e=>pe(`/chores/${e}/approve`,{method:"POST",headers:me(),body:JSON.stringify({})}),q7=e=>pe(`/chores/${e}/reject`,{method:"POST",headers:me(),body:JSON.stringify({})}),X7=e=>pe(`/chores/${e}/undo`,{method:"POST",headers:me(),body:JSON.stringify({})}),Q7=(e,{message:t,notifyAllAssignees:r})=>pe(`/chores/${e}/nudge`,{method:"POST",headers:me(),body:JSON.stringify({all_assignees:r,message:t||""})}),Z7=(e,t)=>pe(`/chores/${e}/assignee`,{method:"PUT",headers:me(),body:JSON.stringify({assignee:Number(t),updatedAt:new Date().toISOString()})}),ez=e=>pe("/chores/",{method:"POST",headers:me(),body:JSON.stringify(e)}),tz=e=>pe(`/chores/${e}`,{method:"DELETE",headers:me()}),rz=e=>pe("/chores/",{method:"PUT",headers:me(),body:JSON.stringify(e)}),nz=(e,t)=>
172pe(`/chores/${e}/priority `,{method:"PUT",headers:me(),body:JSON.stringify({priority:t})}),oz=e=>pe(`/chores/${e}/history`,{method:"GET",headers:me()}),az=(e,t)=>pe(`/chores/${e}/history/${t}`,{method:"DELETE",headers:me()}),iz=(e,t,r)=>pe(`/chores/${e}/history/${t}`,{method:"PUT",headers:me(),body:JSON.stringify(r)}),rM=async()=>(await pe("/circles/members",{method:"GET",headers:me()})).json(),sz=async(e,t)=>pe("/circles/members/role",{method:"PUT",headers:me(),body:JSON.stringify({role:t,memberId:e})}),nM=()=>pe("/users/profile",{method:"GET",headers:me()}),lz=()=>pe("/circles/",{method:"GET",headers:me()}),cz=e=>pe(`/circles/join?invite_code=${e}`,{method:"POST",headers:me()}),uz=()=>pe("/circles/members/requests",{method:"GET",headers:me()}),dz=e=>pe(`/circles/members/requests/accept?requestId=${e}`,{method:"PUT",headers:me()}),fz=e=>pe(`/circles/leave?circle_id=${e}`,{method:"DELETE",headers:me()}),hz=(e,t)=>pe(`/circles/${e}/members/delete?member_id=${t}`,{method:"DELETE",headers:me()}),pz=e=>pe("/users",{method:"PUT",headers:me(),body:JSON.stringify(e)}),mz=e=>pe("/users/targets",{method:"PUT",headers:me(),body:JSON.stringify(e)}),gz=()=>pe("/payments/create-subscription",{method:"GET",headers:me()}),vz=()=>pe("/payments/cancel-subscription",{method:"POST",headers:me()}),yz=()=>pe("/things",{method:"GET",headers:me()}),bz=e=>pe("/things",{method:"POST",headers:me(),body:JSON.stringify(e)}),xz=e=>pe("/things",{method:"PUT",headers:me(),body:JSON.stringify(e)}),Cz=e=>pe(`/things/${e.id}/state?value=${e.state}`,{method:"PUT",headers:me()}),Sz=e=>pe(`/things/${e}`,{method:"DELETE",headers:me()}),wz=(e,t)=>pe(`/things/${e}/history?offset=${t}`,{method:"GET",headers:me()}),kz=e=>pe("/users/tokens",{method:"POST",headers:me(),body:JSON.stringify({name:e})}),_z=e=>pe(`/users/tokens/${e}`,{method:"DELETE",headers:me()}),Ez=()=>pe("/users/tokens",{method:"GET",headers:me()}),Pz=e=>pe("/labels",{method:"POST",headers:me(),body:JSON.stringify(e)}),Rz=async()=>(await pe("/labels",{method:"GET",headers:me()})).json(),Tz=async()=>{await Lr.init();const e=za.getApiURL();return(await fetch(`${e}/resource`,{method:"GET",headers:me()})).json()},Iz=e=>pe("/labels",{method:"PUT",headers:me(),body:JSON.stringify(e)}),Dz=e=>pe(`/labels/${e}`,{method:"DELETE",headers:me()}),Oz=(e,t)=>{const r=za.getApiURL();return fetch(`${r}/auth/password?c=${e}`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({password:t})})},$z=async e=>{await Lr.init();const t=za.getApiURL();return fetch(`${t}/auth/reset`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({email:e})})},jz=()=>pe("/users/mfa/status",{method:"GET",headers:me()}),Az=()=>pe("/users/mfa/setup",{method:"POST",headers:me()}),Lz=(e,t,r)=>pe("/users/mfa/confirm",{method:"POST",headers:me(),body:JSON.stringify({secret:e,code:t,backupCodes:r})}),Mz=e=>pe("/users/mfa/disable",{method:"POST",headers:me(),body:JSON.stringify({code:e})}),zz=(e,t)=>{const r=za.getApiURL();return fetch(`${r}/auth/mfa/verify`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({sessionToken:e,code:t})})},Nz=(e,t)=>pe(`/chores/${e}/dueDate`,{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify({dueDate:t?new Date(t).toISOString():null,updatedAt:new Date().toISOString()})}),Fz=(e,t,r)=>pe(`/circles/${r}/members/points/redeem`,{method:"POST",headers:me(),body:JSON.stringify({points:t,userId:e})}),oM=async()=>{var r,n;const e=za.getApiURL();if(typeof window<"u"&&((n=(r=window.Capacitor)==null?void 0:r.isNativePlatform)==null?void 0:n.call(r))){const{Preferences:o}=await Mr(async()=>{const{Preferences:i}=await Promise.resolve().then(()=>kb);return{Preferences:i}},void 0),{value:a}=await o.get({key:"refresh_token"});if(!a)throw new Error("No refresh token available");return fetch(`${e}/auth/refresh`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({refresh_token:a})})}else return fetch(`${e}/auth/refresh`,{method:"POST",credentials:"include",headers:me()})},Hz=async(e,t)=>{var r="/chores/history";return e||(e=7),e&&(r+=`?limit=${e}`),r+="&members=true",(await pe(r,{method:"GET",headers:me()})).json()},Bz=e=>pe("/users/webhook",{method:"PUT",headers:me(),body:JSON.stringify({url:e})}),Wz=()=>pe("/users/storage",{method:"GET",headers:me()}),Uz=e=>pe(`/chores/${e}/timer`,{method:"GET",headers:me()}),Vz=(e,t,r)=>pe(`/chores/${e}/timer/${t}`,{method:"PUT",headers:me(),body:JSON.stringify(r)}),Yz=(e,t)=>pe(`/chores/${e}/timer/${t}`,{method:"DELETE",headers:me()}),Gz=e=>pe(`/chores/${e}/timer/reset`,{method:"PUT",headers:me()}),Kz=e=>pe("/users/delete/check",{method:"POST",headers:me(),body:JSON.stringify({password:e})}),Jz=(e,t,r=[])=>pe("/users/delete",{method:"DELETE",headers:me(),body:JSON.stringify({password:e,confirmation:t,transferOptions:r})}),qz=(e,t,{draftId:r,entityId:n}={})=>{const o=new FormData;return o.append("file",e),o.append("entityType",t),n!=null&&o.append("entityId",String(n)),r!=null&&o.append("draftId",r),Lr.upload("/assets/chore",o)},Xz=e=>pe("/assets/chore",{method:"DELETE",headers:me(),body:JSON.stringify({file_path:e})}),Qz=e=>pe(`/chores/${e}/attachments`,{method:"GET",headers:me()}),Zz=(e,t)=>
172pe(`/chores/${e}/attachments`,{method:"DELETE",headers:me(),body:JSON.stringify({file_path:t})}),e8=(e,t,r,n,o)=>pe("/devices/tokens",{method:"POST",headers:me(),body:JSON.stringify({token:e,deviceId:t,platform:r,appVersion:n,deviceModel:o})}),t8=(e,t)=>pe("/devices/tokens",{method:"DELETE",skipAuthRecovery:!0,headers:me(),body:JSON.stringify({deviceId:e,token:t})}),aM=(e=!0)=>pe(`/devices/tokens?active=${e}`,{method:"GET",headers:me()}),r8=(e,t,r)=>pe("/users/subaccounts",{method:"POST",headers:me(),body:JSON.stringify({childName:e,displayName:t,password:r})}),iM=()=>pe("/users/subaccounts",{method:"GET",headers:me()}),n8=(e,t)=>pe("/users/subaccounts/password",{method:"PUT",headers:me(),body:JSON.stringify({childUserId:e,password:t})}),o8=e=>pe(`/users/subaccounts/${e}`,{method:"DELETE",headers:me()}),sM=()=>pe("/projects",{method:"GET",headers:me()}),lM=e=>pe("/projects",{method:"POST",headers:me(),body:JSON.stringify(e)}),cM=(e,t)=>pe(`/projects/${e}`,{method:"PUT",headers:me(),body:JSON.stringify(t)}),a8=e=>pe(`/projects/${e}`,{method:"DELETE",headers:me()}),i8=()=>pe("/filters",{method:"GET",headers:me()}),s8=e=>pe("/filters",{method:"POST",headers:me(),body:JSON.stringify(e)}),l8=(e,t)=>pe(`/filters/${e}`,{method:"PUT",headers:me(),body:JSON.stringify(t)}),c8=e=>pe(`/filters/${e}`,{method:"DELETE",headers:me()}),u8=e=>pe(`/filters/${e}/toggle-pin`,{method:"POST",headers:me()}),Rb=()=>{if(!localStorage.getItem("token"))return!1;const t=localStorage.getItem("token_expiry");return t?new Date<new Date(t):!0},d8=()=>{const e=So(),t=localStorage.getItem("token"),{data:r,error:n,isLoading:o}=Ui({queryKey:["allCircleMembers"],queryFn:async()=>{try{const i=await rM();return i!=null&&i.res&&Rt.saveKV("circle_members",i.res).catch(()=>{}),i}catch{const i=await Rt.getKV("circle_members");return i?{res:i}:{res:[]}}},enabled:!!t});return{data:r,error:n,isLoading:o,handleRefetch:()=>{e.invalidateQueries({queryKey:["allCircleMembers"]})}}},Tb=({enabled:e=!0}={})=>{const t=So(),r=localStorage.getItem("token"),{data:n,error:o,isLoading:a}=Ui({queryKey:["userProfile",r],queryFn:async()=>{if(!r)return null;try{const s=await(await nM()).json();return s!=null&&s.res&&await Rt.saveKV("user_profile",s.res),s.res||null}catch{return await Rt.getKV("user_profile")}},staleTime:30*60*1e3,gcTime:30*60*1e3,enabled:e&&!!r});return{data:n,error:o,isLoading:a,refetch:()=>t.invalidateQueries({queryKey:["userProfile"]})}},f8=()=>{const e=So(),{data:t,error:r,isLoading:n}=Ui({queryKey:["deviceTokens"],queryFn:async()=>Rb()?(await(await aM(!0)).json()).res||[]:null,staleTime:0,gcTime:10*60*1e3});return{data:t,error:r,isLoading:n,refetch:()=>e.invalidateQueries({queryKey:["deviceTokens"]})}},h8=()=>{const e=So(),{data:t,error:r,isLoading:n}=Ui({queryKey:["childUsers"],queryFn:async()=>Rb()?(await(await iM()).json()).res||[]:null,staleTime:5*60*1e3,gcTime:10*60*1e3});return{data:t,error:r,isLoading:n,refetch:()=>e.invalidateQueries({queryKey:["childUsers"]})}},Hl=["January","February","March","April","May","June","July","August","September","October","November","December"],uM=(e,t,r="h:mm A")=>{if((t==null?void 0:t.nextDueDate)===null||e===null)return"No Due Date";const n=q(e),o=q(e).diff(q(),"hours"),a={sameDay:`[Today] ${r}`,nextDay:`[Tomorrow] ${r}`,nextWeek:`dddd ${r}`,lastDay:`[Yesterday] ${r}`,lastWeek:`dddd ${r}`,sameElse:`MMM D ${r}`};if(n.hours()===23&&n.minutes()===59&&n.seconds()===59){if(o<0){const i=Math.abs(o);if(i<=24)return q(e).calendar(null,a).split(" ")[0];if(i<=48){const s=q().startOf("day").diff(n.clone().startOf("day"),"days");return`${s} day${s===1?"":"s"}`}return n.fromNow()}return o<48&&o>0?q(e).calendar(null,a).split(" ")[0]:n.fromNow()}return o<48&&o>0?q(e).calendar(null,a):q(e).fromNow()},dM=(e,t)=>{if((t==null?void 0:t.nextDueDate)===null||e===null)return"neutral";const r=q(e).diff(q(),"hours");return r<48&&r>0?"warning":r<0?"danger":"neutral"},fM=e=>{const t=typeof e.frequencyMetadata=="string"?JSON.parse(e.frequencyMetadata):e.frequencyMetadata,r=n=>{if(n>=11&&n<=13)return"th";switch(n%10){case 1:return"st";case 2:return"nd";case 3:return"rd";default:return"th"}};if(e.frequencyType==="once")return"Once";if(e.frequencyType==="trigger")return"Trigger";if(e.frequencyType==="daily")return"Daily";if(e.frequencyType==="adaptive")return"Adaptive";if(e.frequencyType==="weekly")return"Weekly";if(e.frequencyType==="monthly")return"Monthly";if(e.frequencyType==="yearly")return"Yearly";if(e.frequencyType==="days_of_the_week"){let n=t.days;if(n.length>4){const o=["Sunday","Monday","Tuesday","Wednesday","Thursday","Frid
172ay","Saturday"],a=n.map(l=>q().day(l).format("dddd"));return`Daily except ${o.filter(l=>!a.includes(l)).map(l=>q().day(l).format("ddd")).join(", ")}`}else return n=n.map(o=>q().day(o).format("ddd")),n.join(", ")}else if(e.frequencyType==="day_of_the_month"){let n=t!=null&&t.months?t.months:Hl;if(n.length>6){const o=n.map(l=>q().month(l).format("MMMM")),i=Hl.filter(l=>!o.includes(l)).map(l=>q().month(l).format("MMM"));let s=`Monthly ${e.frequency}${r(e.frequency)}`;return i.length>0&&(s+=` 173 except ${i.join(", ")}`),s}else{const a=[...t.months].sort((i,s)=>Hl.indexOf(i)-Hl.indexOf(s)).map(i=>q().month(i).format("MMM"));return`${e.frequency}${r(e.frequency)} of ${a.join(", ")}`}}else return e.frequencyType==="interval"?`Every ${e.frequency} ${t.unit}`:e.frequencyType},Kg=[1,2,3,4,0],p8=Object.freeze({STARTED:0,COMPLETED:1,SKIPPED:2,PENDING_APPROVAL:3,REJECTED:4,MISSED:5,RESCHEDULED:6}),m8=Object.freeze({INACTIVE:0,ACTIVE:1,PAUSED:2,PENDING_APPROVAL:3}),hM=e=>q(e).startOf("day").format("YYYY-MM-DD"),pM=e=>q(e,"YYYY-MM-DD").format("dddd, MMM D"),mM=e=>{const t=q().startOf("day"),r=q().add(1,"day").startOf("day"),n=q(e,"YYYY-MM-DD");return n.isBefore(t)?yt.OVERDUE:n.isSame(t)?yt.TODAY:n.isSame(r)?yt.TOMORROW:n.isBefore(q(t).add(8,"days"))?yt.NEXT_7_DAYS:n.isSame(t,"month")?yt.LATER_THIS_MONTH:yt.FUTURE},gM=e=>{const t={},r=[];return e.forEach(o=>{if(!o.nextDueDate){r.push(o);return}const a=hM(o.nextDueDate);t[a]||(t[a]=[]),t[a].push(o)}),{dateGroups:Object.keys(t).sort((o,a)=>q(o,"YYYY-MM-DD").valueOf()-q(a,"YYYY-MM-DD").valueOf()).map(o=>({name:pM(o),content:t[o],color:mM(o)})),anytime:r}},g8=(e,t,r)=>{r?t=t.filter(l=>r(l)):t=[...t],t.sort(vM);var n=[];switch(e){case"default":{var o={PendingApproval:[],Started:[],Today:[],Tomorrow:[],"Next 7 Days":[],"Later This Month":[],Future:[],Overdue:[],Anytime:[]};t.forEach(l=>{l.status===1||l.status===2?o.Started.push(l):l.status===3?o.PendingApproval.push(l):l.nextDueDate===null?o.Anytime.push(l):new Date(l.nextDueDate)<new Date?o.Overdue.push(l):new Date(l.nextDueDate).toDateString()===new Date().toDateString()?o.Today.push(l):new Date(l.nextDueDate).toDateString()===new Date(Date.now()+24*60*60*1e3).toDateString()?o.Tomorrow.push(l):new Date(l.nextDueDate)<new Date(Date.now()+8*24*60*60*1e3)&&new Date(l.nextDueDate)>new Date(Date.now()+24*60*60*1e3)?o["Next 7 Days"].push(l):new Date(l.nextDueDate).getMonth()===new Date().getMonth()&&new Date(l.nextDueDate).getFullYear()===new Date().getFullYear()?o["Later This Month"].push(l):o.Future.push(l)}),n=[],o.Started.length>0&&n.push({name:"Started",content:o.Started,color:yt.STARTED}),o.PendingApproval.length>0&&n.push({name:"Pending Approval",content:o.PendingApproval,color:yt.LATE}),o.Overdue.length>0&&n.push({name:"Overdue",content:o.Overdue,color:yt.OVERDUE}),o.Today.length>0&&n.push({name:"Today",content:o.Today,color:yt.TODAY}),o.Tomorrow.length>0&&n.push({name:"Tomorrow",content:o.Tomorrow,color:yt.TOMORROW}),o["Next 7 Days"].length>0&&n.push({name:"Next 7 Days",content:o["Next 7 Days"],color:yt.NEXT_7_DAYS}),o["Later This Month"].length>0&&n.push({name:"Later This Month",content:o["Later This Month"],color:yt.LATER_THIS_MONTH}),o.Future.length>0&&n.push({name:"Future",content:o.Future,color:yt.FUTURE}),o.Anytime.length>0&&n.push({name:"Anytime",content:o.Anytime,color:yt.ANYTIME});break}case"due_date":{var{anytime:a,dateGroups:i}=gM(t);n=[...i],a.length>0&&n.push({name:"Anytime",content:a,color:yt.ANYTIME});break}case"priority":o={p1:[],p2:[],p3:[],p4:[],no_priority:[]},t.forEach(l=>{switch(l.priority){case 1:o.p1.push(l);break;case 2:o.p2.push(l);break;case 3:o.p3.push(l);break;case 4:o.p4.push(l);break;default:o.no_priority.push(l);break}}),n=[{name:"Priority 1",content:o.p1,color:yt.PRIORITY_1},{name:"Priority 2",content:o.p2,color:yt.PRIORITY_2},{name:"Priority 3",content:o.p3,color:yt.PRIORITY_3},{name:"Priority 4",content:o.p4,color:yt.PRIORITY_4},{name:"No Priority",content:o.no_priority,color:yt.NO_PRIORITY}];break;case"labels":o={};var s={};t.forEach(l=>{l.labelsV2.forEach(u=>{s[u.id]=u,o[u.id]===void 0&&(o[u.id]=[]),o[u.id].push(l)})}),n=Object.keys(o).map(l=>({name:s[l].name,content:o[l]})),n.sort((l,u)=>
173{l.name<u.name})}return n},vM=(e,t)=>{const r=Kg.indexOf(e.priority),n=Kg.indexOf(t.priority);return r!==n?r-n:e.status!==t.status?e.status-t.status:!e.nextDueDate&&!t.nextDueDate?0:e.nextDueDate?t.nextDueDate?new Date(e.nextDueDate)-new Date(t.nextDueDate):-1:1},yM=e=>e.completionWindow&&e.completionWindow>-1&&e.nextDueDate&&q()<q(e.nextDueDate).add(-e.completionWindow,"hours"),v8=e=>({anyone:()=>!0,assigned_to_me:t=>t.assignedTo&&t.assignedTo===e,available_for_me:t=>t.assignedTo===null||t.assignedTo===e,assigned_to_others:t=>t.assignedTo&&t.assignedTo!==e,assigned_to_me_tasks:t=>t.assignees&&t.assignees.some(r=>r.userId===e),created_by_me:t=>t.createdBy&&t.createdBy===e}),y8=(e,t)=>!t||t==="Default Project"||t==="default"?e.filter(r=>!r.projectId||r.projectId===null||r.projectId===""):e.filter(r=>r.projectId===t),Rf=[{name:"P1",value:1,icon:c.jsx(EA,{}),color:"danger"},{name:"P2",value:2,icon:c.jsx(dA,{}),color:"warning"},{name:"P3 ",value:3,icon:c.jsx(uA,{}),color:""},{name:"P4",value:4,icon:c.jsx(lA,{}),color:""}];function bM(){const e=zi(db);return e[sp]||e}const xM=il("MuiBox",["root"]),CM=ub(),Jg=ev({themeId:sp,defaultTheme:CM,defaultClassName:xM.root,generateClassName:iu.generate}),qg=p.createContext();function SM(e){return Fi("MuiGrid",e)}const wM=[0,1,2,3,4,5,6,7,8,9,10],kM=["column-reverse","column","row-reverse","row"],_M=["nowrap","wrap-reverse","wrap"],ps=["auto",!0,1,2,3,4,5,6,7,8,9,10,11,12],qs=il("MuiGrid",["root","container","item","zeroMinWidth",...wM.map(e=>`spacing-xs-${e}`),...kM.map(e=>`direction-xs-${e}`),..._M.map(e=>`wrap-xs-${e}`),...ps.map(e=>`grid-xs-${e}`),...ps.map(e=>`grid-sm-${e}`),...ps.map(e=>`grid-md-${e}`),...ps.map(e=>`grid-lg-${e}`),...ps.map(e=>`grid-xl-${e}`)]),EM=["className","columns","columnSpacing","component","container","direction","item","rowSpacing","spacing","wrap","zeroMinWidth"];function ai(e){const t=parseFloat(e);return`${t}
173${String(e).replace(String(t),"")||"px"}`}function PM({theme:e,ownerState:t}){let r;return e.breakpoints.keys.reduce((n,o)=>{let a={};if(t[o]&&(r=t[o]),!r)return n;if(r===!0)a={flexBasis:0,flexGrow:1,maxWidth:"100%"};else if(r==="auto")a={flexBasis:"auto",flexGrow:0,flexShrink:0,maxWidth:"none",width:"auto"};else{const i=Zc({values:t.columns,breakpoints:e.breakpoints.values}),s=typeof i=="object"?i[o]:i;if(s==null)return n;const l=`${Math.round(r/s*1e8)/1e6}%`;let u={};if(t.container&&t.item&&t.columnSpacing!==0){const d=e.spacing(t.columnSpacing);if(d!=="0px"){const f=`calc(${l} + ${ai(d)})`;u={flexBasis:f,maxWidth:f}}}a=C({flexBasis:l,flexGrow:0,maxWidth:l},u)}return e.breakpoints.values[o]===0?Object.assign(n,a):n[e.breakpoints.up(o)]=a,n},{})}function RM({theme:e,ownerState:t}){const r=Zc({values:t.direction,breakpoints:e.breakpoints.values});return cn({theme:e},r,n=>{const o={flexDirection:n};return n.indexOf("column")===0&&(o[`& > .${qs.item}`]={maxWidth:"none"}),o})}function Ib({breakpoints:e,values:t}){let r="";Object.keys(t).forEach(o=>{r===""&&t[o]!==0&&(r=o)});const n=Object.keys(e).sort((o,a)=>e[o]-e[a]);return n.slice(0,n.indexOf(r))}function TM({theme:e,ownerState:t}){const{container:r,rowSpacing:n}=t;let o={};if(r&&n!==0){const a=Zc({values:n,breakpoints:e.breakpoints.values});let i;typeof a=="object"&&(i=Ib({breakpoints:e.breakpoints.values,values:a})),o=cn({theme:e},a,(s,l)=>{var u;const d=e.spacing(s);return d!=="0px"?{marginTop:`-${ai(d)}`,[`& > .${qs.item}`]:{paddingTop:ai(d)}}:(u=i)!=null&&u.includes(l)?{}:{marginTop:0,[`& > .${qs.item}`]:{paddingTop:0}}})}return o}function IM({theme:e,ownerState:t}){const{container:r,columnSpacing:n}=t;let o={};if(r&&n!==0){const a=Zc({values:n,breakpoints:e.breakpoints.values});let i;typeof a=="object"&&(i=Ib({breakpoints:e.breakpoints.values,values:a})),o=cn({theme:e},a,(s,l)=>{var u;const d=e.spacing(s);return d!=="0px"?{width:`calc(100% + ${ai(d)})`,marginLeft:`-${ai(d)}`,[`& > .${qs.item}`]:{paddingLeft:ai(d)}}:(u=i)!=null&&u.includes(l)?{}:{width:"100%",marginLeft:0,[`& > .${qs.item}`]:{paddingLeft:0}}})}return o}function DM(e,t,r={}){if(!e||e<=0)return[];if(typeof e=="string"&&!Number.isNaN(Number(e))||typeof e=="number")return[r[`spacing-xs-${String(e)}`]];const n=[];return t.forEach(o=>{const a=e[o];Number(a)>0&&n.push(r[`spacing-${o}-${String(a)}`])}),n}const OM=fb("div",{name:"MuiGrid",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e,{container:n,direction:o,item:a,spacing:i,wrap:s,zeroMinWidth:l,breakpoints:u}=r;let d=[];n&&(d=DM(i,u,t));const f=[];return u.forEach(h=>{const g=r[h];g&&f.push(t[`grid-${h}-${String(g)}`])}),[t.root,n&&t.container,a&&t.item,l&&t.zeroMinWidth,...d,o!=="row"&&t[`direction-xs-${String(o)}`],s!=="wrap"&&t[`wrap-xs-${String(s)}`],...f]}})(({ownerState:e})=>C({boxSizing:"border-box"},e.container&&{display:"flex",flexWrap:"wrap",width:"100%"},e.item&&{margin:0},e.zeroMinWidth&&{minWidth:0},e.wrap!=="wrap"&&{flexWrap:e.wrap}),RM,TM,IM,PM);function $M(e,t){if(!e||e<=0)return[];if(typeof e=="string"&&!Number.isNaN(Number(e))||typeof e=="number")return[`spacing-xs-${String(e)}`];const r=[];return t.forEach(n=>{const o=e[n];if(Number(o)>0){const a=`spacing-${n}-${String(o)}`;r.push(a)}}),r}const jM=e=>{const{classes:t,container:r,direction:n,item:o,spacing:a,wrap:i,zeroMinWidth:s,breakpoints:l}=e;let u=[];r&&(u=$M(a,l));const d=[];l.forEach(h=>{const g=e[h];g&&d.push(`grid-${h}-${String(g)}`)});const f={root:["root",r&&"container",o&&"item",s&&"zeroMinWidth",...u,n!=="row"&&`direction-xs-${String(n)}`,i!=="wrap"&&`wrap-xs-${String(i)}`,...d]};return ot(f,SM,t)},Bl=p.forwardRef(function(t,r){const n=tb({props:t,name:"MuiGrid"}),{breakpoints:o}=bM(),a=Ni(n),{className:i,columns:s,columnSpacing:l,component:u="div",container:d=!1,direction:f="row",item:h=!1,rowSpacing:g,spacing:m=0,wrap:v="wrap",zeroMinWidth:x=!1}=a,w=we(a,EM),S=g||m,y=l||m,_=p.useContext(qg),R=d?s||12:_,O={},b=C({},w);o.keys.forEach(T=>{w[T]!=null&&(O[T]=w[T],delete b[T])});const P=C({},a,{columns:R,container:d,direction:f,item:h,rowSpacing:S,columnSpacing:y,wrap:v,zeroMinWidth:x,spacing:m},O,{breakpoints:o.keys}
173),E=jM(P);return c.jsx(qg.Provider,{value:R,children:c.jsx(OM,C({ownerState:P,className:Bt(E.root,i),as:u,ref:r},b))})}),AM=async()=>{try{const{Preferences:e}=await Mr(async()=>{const{Preferences:o}=await Promise.resolve().then(()=>kb);return{Preferences:o}},void 0),{API_URL:t}=await Mr(async()=>{const{API_URL:o}=await Promise.resolve().then(()=>AL);return{API_URL:o}},void 0),{value:r}=await e.get({key:"customServerUrl"});return(r||t).toLowerCase().includes("donetick.com")}catch{return!1}},LM=()=>{try{return Mr(async()=>{const{apiClient:e}=await Promise.resolve().then(()=>eM);return{apiClient:e}},void 0).then(({apiClient:e})=>{const t=e.baseURL||e.customServerURL||"";return!t||typeof t!="string"?!1:t.toLowerCase().includes("donetick.com")}).catch(e=>!1)}catch{return!1}},MM=[{name:"Folder",icon:gb,value:"FolderOpen"},{name:"Work",icon:eL,value:"Work"},{name:"Home",icon:sA,value:"Home"},{name:"School",icon:jA,value:"School"},{name:"Business",icon:Hj,value:"BusinessCenter"},{name:"Code",icon:Yj,value:"Code"},{name:"Build",icon:Fj,value:"Build"},{name:"Design",icon:CA,value:"Palette"},{name:"Sports",icon:NA,value:"SportsSoccer"},{name:"Fitness",icon:rA,value:"FitnessCenter"},{name:"Shopping",icon:zA,value:"ShoppingCart"},{name:"Food",icon:DA,value:"Restaurant"},{name:"Travel",icon:nA,value:"Flight"},{name:"Study",icon:Nj,value:"Book"},{name:"Music",icon:gA,value:"MusicNote"},{name:"Photo",icon:kA,value:"PhotoCamera"},{name:"Games",icon:oA,value:"Games"},{name:"Science",icon:AA,value:"Science"},{name:"Finance",icon:Dj,value:"AccountBalance"},{name:"Health",icon:hA,value:"LocalHospital"},{name:"Auto",icon:Xj,value:"DirectionsCar"},{name:"Pets",icon:wA,value:"Pets"},{name:"Garden",icon:tL,value:"Garden"},{name:"Tech",icon:Gj,value:"Computer"}
173],zM=e=>{const t=MM.find(r=>r.value===e);return t?t.icon:gb},NM=Ma("Device",{web:()=>Mr(()=>import("./web-CEA4UNDz.js"),__vite__mapDeps([11,1,2])).then(e=>new e.DeviceWeb)}),FM=async()=>{if(Di.isNativePlatform())try{const{App:e}=await Mr(async()=>{const{App:r}=await import("./index-D5b3gegs.js");return{App:r}},__vite__mapDeps([7,1,2])),t=await e.getInfo();return`${t.version} (${t.build})`}catch{}return"1.2.55"},HM=async()=>{try{const e=await NM.getInfo();return{deviceModel:[e.manufacturer,e.model].filter(Boolean).join(" "),osVersion:`${e.operatingSystem} ${e.osVersion}`}}catch{return{deviceModel:"unknown",osVersion:"unknown"}}},Db={analytics:"analytics_consent",crash:"analytics_crash_consent"},Tf="analytics_anon_id",If="analytics_installation_id",Ob=()=>typeof crypto<"u"&&crypto.randomUUID?crypto.randomUUID():"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,e=>{const t=Math.random()*16|0;return(e==="x"?t:t&3|8).toString(16)}),hp=async e=>{try{const{value:t}=await Gn.get({key:e});return t??null}catch{return null}},pp=async(e,t)=>{try{await Gn.set({key:e,value:t})}catch{}},Xg=async e=>{try{await Gn.remove({key:e})}catch{}},Qg=async e=>{const t=await hp(Db[e]);return t==="enabled"||t==="disabled"?t:"unknown"},BM=(e,t)=>pp(Db[e],t),mp=(e,t)=>e==="enabled"||e==="disabled"?e:t==="cloud"?"enabled":"disabled",WM=async()=>{const e=await hp(Tf);if(e)return e;const t=Ob();return await pp(Tf,t),t},UM=async()=>{const e=await hp(If);if(e)return e;const t=Ob();return await pp(If,t),t},VM=async({deploymentType:e,userId:t})=>{const[r,n]=await Promise.all([WM(),e==="cloud"?null:UM()]);return{distinctId:r,installationId:n}},YM=async()=>{await Promise.all([Xg(Tf),Xg(If)])},GM={is_plus_account:"boolean",circle_member_count:"number"},pr=e=>({...e,...GM}),KM={onboarding_started:pr({}),onboarding_completed:pr({}),onboarding_skipped:pr({}),onboarding_option_selected:pr({option:"string",step:"string"}),chore_created:pr({has_due_date:"boolean",has_assignee:"boolean",has_labels:"boolean",has_description:"boolean",has_recurrence:"boolean",recurrence_type:"string",priority:"number",source:"enum:quick_add,voice,scan,full_page,clone"}),chore_updated:pr({has_due_date:"boolean",has_assignee:"boolean",has_labels:"boolean",has_description:"boolean",has_recurrence:"boolean",recurrence_type:"string",priority:"number"}),thing_created:pr({}),project_created:pr({}),filter_created:pr({}),localization_setting_changed:pr({setting:"enum:language,date_format,time_format,first_day_of_week",value:"string"}),analytics_enabled:pr({source:"enum:onboarding,settings"}),feedback_prompt_shown:pr({source:"enum:auto,settings",shown_count:"number"}),feedback_prompt_dismissed:pr({source:"enum:auto,settings",shown_count:"number",step:"enum:sentiment,details",sentiment:"enum:love,okay,issues"}),feedback_prompt_suppressed:pr({blocker:"enum:opted_out,too_few_completions,recent_error,new_account,cooldown,same_version"}),feedback_sentiment_selected:pr({sentiment:"enum:love,okay,issues"}),feedback_review_requested:pr({requested:"boolean"}),feedback_review_action:pr({action:"enum:github,appStore,playStore",sentiment:"enum:love,okay,issues"}),feedback_submitted:pr({category:"enum:bugs,missingFeature,tooComplicated,slow,notifications,ai,other",has_message:"boolean",result:"enum:sent,failed,unconfigured,misconfigured,self-hosted",sentiment:"enum:love,okay,issues"})},JM={frontend_error:{source:"enum:window_error,unhandled_rejection"}},qM=200,XM=e=>/[?&=]/.test(e),QM=(e,t)=>{if(e==null)return!1;if(t==="boolean")return typeof e=="boolean";if(t==="number")return typeof e=="number"&&!isNaN(e);if(t.startsWith("enum:")){const r=t.slice(5).split(",");return typeof e=="string"&&r.includes(e)}return t==="string"?typeof e=="string"&&e.length<=qM&&!XM(e):!1},$b=(e,t,r={})=>{const n=e[t];if(!n)return null;const o={};for(const[a,i]of Object.entries(r||{})){const s=n[a];s&&QM(i,s)&&(o[a]=i)}return o},ZM=(e,t)=>$b(KM,e,t),e9=(e,t)=>$b(JM,e,t);let Ja=null;const jb="phc_CRzzEVg72NzZhingJhL5AfwTCrtBwoya577Nbsc8DkoH",t9="https://d.donetick.com",Xs=()=>!!jb,r9=async()=>Xs()?Ja||(Ja=(await Mr(()=>import("./module-BzKmYcJB.js"),[])).default,Ja.init(jb,{api_host:t9,autocapture:!1,capture_pageview:!1,capture_pageleave:!1,disable_session_recording:!0,session_recording:{recorder:void 0},persistence:"localStorage",opt_out_capturing_by_default:!0}),Ja):null,Oi=()=>Ja,Mt={initialized:!1,initializing:null,deploymentType:null,consent:{analytics:"unknown",crash:"unknown"},distinctId:null,common:{is_plus_account:!1,circle_member_count:0}},n9=async()=>await AM().catch(()=>!1)?"cloud":"self_hosted",o9=async e=>{const[t,r]=await Promise.all([FM(),HM()]);e.register({deployment_type:Mt.deploymentType,app_version:t,platform:typeof window<"u"&&window.Capacitor?window.Capacitor.getPlatform():"web",os:r.osVersion})},Df=async()=>{const e=await r9();if(!e)return null;const{distinctId:t}=await VM({deploymentType:Mt.deploymentType,userId:null});return Mt.distinctId=t,e.identify(t),e.opt_in_capturing(),await o9(e),e},gp=async()=>(Mt.initializing||(Mt.initializing=(async()=>{Mt.deploymentType=await n9();const[e,t]=await Promise.all([Qg("analytics"),Qg("crash")]);Mt.consent.analytics=e,Mt.consent.crash=t;const r=mp(e,Mt.deploymentType);Xs()&&r==="enabled"&&await Df(),Mt.initialized=!0})()),Mt.initializing),a9=async e=>{if(Mt.initialized||await gp(),Mt.deploymentType!=="cloud"||!e)return;const t=Oi();t&&(Mt.distinctId=String(e),t.identify(Mt.distinctId))},i9=({circle_member_count:e,is_plus_account:t}={})=>
173{typeof t=="boolean"&&(Mt.common.is_plus_account=t),typeof e=="number"&&(Mt.common.circle_member_count=e);const r=Oi();r&&r.register({...Mt.common})},Ab=e=>Mt.initialized&&Xs()&&mp(Mt.consent[e],Mt.deploymentType)==="enabled",vp=(e,t={})=>{if(!Ab("analytics"))return;const r=Oi();if(!r)return;const n=ZM(e,{...Mt.common,...t});n&&r.capture(e,n)},Of=(e,t={})=>{if(!Ab("crash"))return;const r=Oi();if(!r)return;const n=e9("frontend_error",t);n&&r.captureException(e,n)};let Zg=!1;const s9=()=>{Zg||typeof window>"u"||(Zg=!0,window.addEventListener("error",e=>{const t=(e==null?void 0:e.error)instanceof Error?e.error:new Error((e==null?void 0:e.message)||"Unknown window error");Of(t,{source:"window_error"})}),window.addEventListener("unhandledrejection",e=>{const t=e==null?void 0:e.reason,r=t instanceof Error?t:new Error(String(t));Of(r,{source:"unhandled_rejection"})}))},l9=async(e,t,{source:r}={})=>{if(Mt.initialized||await gp(),Mt.consent[e]=t,await BM(e,t),t==="disabled"){const n=Oi();n&&(n.opt_out_capturing(),n.reset()),e==="analytics"&&Mt.consent.crash!=="enabled"&&await YM();return}e==="analytics"?Xs()&&(await Df(),vp("analytics_enabled",{source:r||"settings"})):e==="crash"&&Xs()&&!Oi()&&await Df()},c9=e=>mp(Mt.consent[e],Mt.deploymentType),b8=Object.freeze(Object.defineProperty({__proto__:null,captureException:Of,getConsent:c9,identify:a9,initialize:gp,installGlobalErrorHandlers:s9,setConsent:l9,track:vp,updateCommonProperties:i9},Symbol.toStringTag,{value:"Module"})),u9=()=>Ui({queryKey:["projects"],queryFn:async()=>{try{const e=await sM();if(e.ok){const t=await e.json(),r=t.res||t;return Rt.saveKV("projects",r),r}throw new Error("Failed to fetch projects")}catch{const e=await Rt.getKV("projects");return e||[]}},staleTime:5*60*1e3,cacheTime:10*60*1e3,refetchOnWindowFocus:!1}),x8=()=>{const e=So();return vy({mutationFn:async t=>{try{const r=await lM(t);if(r.ok){const n=await r.json();return vp("project_created",{}),n.res||n}throw new Error("Failed to create project")}catch{return{id:`local-${Date.now()}`,...t,created_by:"current_user",created_at:new Date().toISOString()}}},onSuccess:t=>{e.setQueryData(["projects"],(r=[])=>[...r,t]),e.invalidateQueries({queryKey:["projects"]})},onError:t=>{}})},C8=()=>{const e=So();return vy({mutationFn:async({projectData:t,projectId:r})=>{try{const n=await cM(r,t);if(n.ok){const o=await n.json();return o.res||o}throw new Error("Failed to update project")}catch{return{id:r,...t,updated_at:new Date().toISOString()}}},onSuccess:t=>{e.setQueryData(["projects"],(r=[])=>r.map(n=>n.id===t.id?t:n)),e.invalidateQueries({queryKey:["projects"]})},onError:t=>{}})},d9={name:"No priority",value:0,color:"neutral"},f9=e=>e.filter((t,r)=>t.type!=="divider"?!0:r===0||r===e.length-1?!1:e[r-1].type!=="divider"),h9=({anchorEl:e,chore:t,hiddenActions:r=[],onAction:n,onChangeAssignee:o,onChangeDueDate:a,onChangePriority:i,onClose:s,onCompleteWithNote:l,onCompleteWithPastDate:u,onDelete:d,onMouseEnter:f,onMouseLeave:h,onNudge:g,onOpen:m,onWriteNFC:v,sx:x={},trigger:w,variant:S="soft"})=>{const{t:y}=Jn("chores"),_=e!==void 0,[R,O]=Gl.useState(null),b=_?e:R,[P,E]=p.useState(!1),[T,I]=p.useState(!1),[k,D]=p.useState(!1),L=Gl.useRef(null),$=Xo(),{data:j=[]}=u9(),A=eh(J=>J.breakpoints.down("sm"));if(p.useEffect(()=>{try{E(LM())}catch{E(!1)}},[]),p.useEffect(()=>{if(A){b&&m&&m();return}if(!b)return;const J=Ve=>{var Ke;!b.contains(Ve.target)&&!((Ke=L.current)!=null&&Ke.contains(Ve.target))&&F()};return document.addEventListener("mousedown",J),m&&m(),()=>{document.removeEventListener("mousedown",J)}},[b,m,A]),!t)return null;const M=J=>{J.stopPropagation(),O(J.currentTarget)},F=()=>{I(!1),D(!1),_?s==null||s():O(null)},V=J=>{i==null||i(J),F()},K=J=>{n==null||n("moveToProject",t,{project:J}),F()},le=()=>{$(`/chores/${t.id}/edit`),F()},xe=()=>{$(`/chores/${t.id}/edit?clone=true`),F()},de=()=>{$(`/chores/${t.id}`),F()},re=()=>{d?d():n==null||n("delete",t),F()},_e=()=>{t.isActive?n==null||n("archive",t):n==null||n("unarchive",t),F()},G=()=>{n==null||n("skip",t),F()},U=()=>{$(`/chores/${t.id}/history`),F()},X=J=>{const Ve=new Date,Ke=new Date(Ve.getFullYear(),Ve.getMonth(),Ve.getDate());switch(Ke.setHours(23,59,59,0),J){case"today":return Ke;
173case"tomorrow":{const Ye=new Date(Ke);return Ye.setDate(Ke.getDate()+1),Ye}case"weekend":{const Ye=new Date(Ke),ze=(6-Ke.getDay()+7)%7||7;return Ye.setDate(Ke.getDate()+ze),Ye}case"next-week":{const Ye=new Date(Ke),ze=(1-Ke.getDay()+7)%7||7;return Ye.setDate(Ke.getDate()+ze),Ye}default:return Ke}},oe=J=>{const Ve=J==="remove"?null:X(J);n==null||n("changeDueDate",t,{date:Ve}),F()},ge=(J,Ve)=>{const Ke=J||Rs[0].value,Ye=zM(Ve||"FolderOpen");return c.jsx(Ms,{size:"sm",sx:{width:22,height:22,backgroundColor:Ke},children:c.jsx(Ye,{sx:{fontSize:13,color:Cb(Ke)}})})},te=Rf.find(J=>J.value===(t==null?void 0:t.priority))||null,Ee=[{key:"completeNote",icon:c.jsx(bA,{}),label:y("actionMenu.completeWithNote"),onClick:()=>{l==null||l(),F()}},{key:"completePast",icon:c.jsx(KA,{}),label:y("actionMenu.completeInPast"),onClick:()=>{u==null||u(),F()}},{key:"skip",icon:c.jsx(HA,{}),label:y("actionMenu.skipToNext"),onClick:G},{key:"delegate",icon:c.jsx(RA,{}),label:y("modals.delegate"),onClick:()=>{o==null||o(),F()}},P&&{key:"nudge",icon:c.jsx(yb,{}),label:y("actionMenu.sendNudge"),onClick:()=>{g==null||g(),F()}},{key:"divider-1",type:"divider"},{key:"history",icon:c.jsx(pA,{}),label:y("actionMenu.history"),onClick:U},{key:"divider-2",type:"divider"},{key:"quickSchedule",type:"quickSchedule"},{key:"divider-3",type:"divider"},{key:"changeDueDate",icon:c.jsx(mA,{}),label:y("modals.changeDueDate"),onClick:()=>{a==null||a(),F()}},i&&{key:"priority",icon:c.jsx(wd,{}),label:y("priority"),onClick:()=>D(!0),endDecorator:c.jsx(Kr,{size:"sm",variant:"soft",color:(te==null?void 0:te.color)||"neutral",children:(te==null?void 0:te.name.trim())||y("actionMenu.noPriority")})}
173,{key:"writeNfc",icon:c.jsx(yA,{}),label:y("actionMenu.writeNFC"),onClick:()=>{v==null||v(),F()}},{key:"edit",icon:c.jsx(Zj,{}),label:y("choreView.edit"),onClick:le},{key:"clone",icon:c.jsx(Kj,{}),label:y("actionMenu.clone"),onClick:xe},{key:"view",icon:c.jsx(JA,{}),label:y("actionMenu.view"),onClick:de},{key:"archive",icon:t.isActive?c.jsx(Mj,{}):c.jsx(GA,{}),label:t.isActive?y("actionMenu.archive"):y("actionMenu.unarchive"),onClick:_e,color:"neutral"},j.length>0&&{key:"moveToProject",icon:c.jsx(Qj,{}),label:y("actionMenu.moveToProject"),onClick:()=>I(!0)},{key:"divider-4",type:"divider"},{key:"delete",icon:c.jsx(qj,{}),label:y("archived.delete"),onClick:re,color:"danger"}].filter(Boolean).filter(J=>!r.includes(J.key)),je=f9(Ee),ve=c.jsxs(c.Fragment,{children:[c.jsx(ss,{title:y("duePicker.today"),placement:"top",children:c.jsx(dr,{size:"sm",onClick:J=>{J.stopPropagation(),oe("today")},children:c.jsx(VA,{})})}),c.jsx(ss,{title:y("duePicker.tomorrow"),placement:"top",children:c.jsx(dr,{size:"sm",onClick:J=>{J.stopPropagation(),oe("tomorrow")},children:c.jsx(qA,{})})}),c.jsx(ss,{title:y("duePicker.weekend"),placement:"top",children:c.jsx(dr,{size:"sm",onClick:J=>{J.stopPropagation(),oe("weekend")},children:c.jsx(QA,{})})}),c.jsx(ss,{title:y("duePicker.nextWeek"),placement:"top",children:c.jsx(dr,{size:"sm",onClick:J=>{J.stopPropagation(),oe("next-week")},children:c.jsx(vA,{})})}),c.jsx(ss,{title:y("actionMenu.removeDueDate"),placement:"top",children:c.jsx(dr,{size:"sm",color:"neutral",onClick:J=>{J.stopPropagation(),oe("remove")},children:c.jsx(Wj,{})})})]}),ne={display:"flex",justifyContent:"space-around",alignItems:"center",gap:1,px:1.5,py:1},We=()=>je.map(J=>J.type==="divider"?c.jsx(la,{},J.key):J.type==="quickSchedule"?c.jsx(ra,{sx:{...ne,cursor:"default","&:hover":{backgroundColor:"transparent"}},onClick:Ve=>Ve.stopPropagation(),children:ve},J.key):c.jsxs(ra,{color:J.color,onClick:Ve=>{Ve.stopPropagation(),J.onClick()},children:[J.icon,J.label,J.endDecorator&&c.jsx(ta,{sx:{ml:"auto",minInlineSize:0},children:J.endDecorator})]},J.key)),Re=()=>je.map(J=>J.type==="divider"?c.jsx(la,{},J.key):J.type==="quickSchedule"?c.jsx(Tr,{sx:ne,children:ve},J.key):c.jsx(Tr,{children:c.jsxs(El,{color:J.color,onClick:()=>J.onClick(),children:[c.jsx(ta,{children:J.icon}),c.jsx(aa,{children:J.label}),J.endDecorator]})},J.key)),st=[...Rf,d9],gt=()=>st.map(J=>c.jsx(Tr,{children:c.jsxs(El,{selected:((te==null?void 0:te.value)||0)===J.value,color:J.color||"neutral",onClick:()=>V(J),children:[c.jsx(ta,{children:J.icon||c.jsx(wd,{})}),c.jsx(aa,{children:J.name.trim()})]})},J.value)),jt=()=>c.jsxs(c.Fragment,{children:[c.jsxs(ra,{onClick:J=>{J.stopPropagation(),D(!1)},sx:{gap:1},children:[c.jsx(Sd,{fontSize:"small"}),c.jsx(ue,{level:"body-sm",fontWeight:600,children:y("priority")})]}),c.jsx(la,{}),st.map(J=>c.jsxs(ra,{selected:((te==null?void 0:te.value)||0)===J.value,color:J.color||"neutral",onClick:Ve=>{Ve.stopPropagation(),V(J)},children:[J.icon||c.jsx(wd,{}),J.name.trim()]},J.value))]}),At=()=>c.jsxs(c.Fragment,{children:[c.jsx(Tr,{children:c.jsxs(El,{onClick:()=>K({id:null,name:y("actionMenu.defaultProject")}),children:[c.jsx(ta,{children:ge(Rs[0].value,"FolderOpen")}),c.jsx(aa,{children:y("actionMenu.defaultProject")})]})}),j.map(J=>c.jsx(Tr,{children:c.jsxs(El,{onClick:()=>K(J),children:[c.jsx(ta,{children:ge(J.color,J.icon)}),c.jsx(aa,{children:J.name})]})},J.id))]});let qe;return T?qe=y("actionMenu.moveToProject"):k?qe=y("priority"):qe=null,c.jsxs(c.Fragment,{children:[_?null:w?Gl.cloneElement(w,{onClick:M,onMouseEnter:f,onMouseLeave:h}):c.jsx(dr,{variant:S,color:"success",onClick:M,onMouseEnter:f,onMouseLeave:h,sx:{borderRadius:"50%",width:25,height:25,position:"relative",left:-10,...x},children:c.jsx(cp,{})}),A?c.jsxs(qu,{open:!!b,onClose:F,title:qe,mobilePresentation:"sheet",showHandle:!0,contentSx:{px:0,pb:1},children:[(T||k)&&c.jsx(wr,{variant:"plain",color:"neutral",size:"sm",startDecorator:c.jsx(Sd,{fontSize:"small"}),onClick:()=>{I(!1),D(!1)},sx:{mx:2,mb:1},children:c.jsx(ue,{level:"body-sm",fontWeight:600,children:y("common:back")})}),c.jsx(Un,{sx:{"--ListItem-radius":"8px",px:1}
173,children:T?At():k?gt():Re()})]}):c.jsx(mE,{size:"md",ref:L,anchorEl:b,open:!!b,onClose:F,sx:{position:"absolute",top:"100%",left:"50%"},children:k?jt():T?c.jsxs(c.Fragment,{children:[c.jsxs(ra,{onClick:J=>{J.stopPropagation(),I(!1)},sx:{gap:1},children:[c.jsx(Sd,{fontSize:"small"}),c.jsx(ue,{level:"body-sm",fontWeight:600,children:y("actionMenu.moveToProject")})]}),c.jsx(la,{}),c.jsxs(ra,{onClick:J=>{J.stopPropagation(),K({id:null,name:y("actionMenu.defaultProject")})},children:[c.jsx(ta,{children:ge(Rs[0].value,"FolderOpen")}),c.jsx(aa,{children:c.jsx(ue,{level:"body-sm",children:y("actionMenu.defaultProject")})})]}),j.map(J=>c.jsxs(ra,{onClick:Ve=>{Ve.stopPropagation(),K(J)},children:[c.jsx(ta,{children:ge(J.color,J.icon)}),c.jsx(aa,{children:c.jsx(ue,{level:"body-sm",children:J.name})})]},J.id))]}):We()})]})},p9=({onClick:e,onMouseEnter:t,onMouseLeave:r,sx:n={},variant:o="soft"})=>c.jsx(dr,{variant:o,color:"success",onClick:e,onMouseEnter:t,onMouseLeave:r,sx:{borderRadius:"50%",width:25,height:25,position:"relative",left:-10,...n},children:c.jsx(cp,{})}),e0={width:32,height:32,color:"text.tertiary",flexShrink:0,"&:hover":{color:"text.secondary",bgcolor:"background.level1"}},m9=({chore:e,isMultiSelectMode:t=!1,isSelected:r=!1,onAction:n,onChipClick:o,onOpenActionMenu:a,onSelectionToggle:i,performers:s,showActions:l=!0,sx:u,viewOnly:d})=>{var y,_,R,O;const{t:f}=Jn("chores"),{data:h}=Tb({enabled:!d}),{timeFormat:g}=Wu(),{data:m}=DL(e.id),{impersonatedUser:v}=DT(),x=()=>{if(!s||!e)return!1;const b=s.find(P=>P.userId===((v==null?void 0:v.userId)||(h==null?void 0:h.id)));return(b==null?void 0:b.role)==="admin"||(b==null?void 0:b.role)==="manager"||e.createdBy===((v==null?void 0:v.userId)||(h==null?void 0:h.id))},w=b=>["once","no_repeat"].includes(b.frequencyType)?c.jsx(UA,{}):b.frequencyType==="trigger"?c.jsx(XA,{}):c.jsx(IA,{}),S=b=>{const P=Array.from(e.name);return isNaN(Number(P[0]))&&new RegExp("\\p{Emoji}","u").test(P[0])?P.slice(1).join("").trim():b};return c.jsxs(ce,{minWidth:"100%",sx:{position:"relative"},children:[c.jsx(Kr,{variant:"soft",sx:{position:"relative",top:10,zIndex:3,left:10},color:dM(e.nextDueDate,e),children:uM(e.nextDueDate,e,g)}),!["once","no_repeat"].includes(e.frequencyType)&&c.jsx(Kr,{variant:"soft",sx:{position:"relative",top:10,zIndex:3,ml:.4,left:10},children:c.jsxs("div",{style:{display:"flex",alignItems:"center",justifyContent:"center"},children:[w(e),fM(e)]})}),c.jsx(ce,{sx:{position:"absolute",top:10,right:10,zIndex:3},children:c.jsx(wb,{commands:m})}),c.jsx(ce,{sx:{position:"relative",overflow:"hidden",borderRadius:20},children:c.jsxs(kr,{style:d?{pointerEvents:"none"}:{},variant:"plain",sx:{...u,display:"flex",flexDirection:"column",justifyContent:"space-between",p:2,boxShadow:"sm",borderRadius:20,key:`${e.id}-card`,position:"relative",backgroundColor:"background.surface",border:"1px solid",borderColor:"divider",cursor:t?"pointer":"default","&:hover":{boxShadow:"md",borderColor:t?"primary.500":"primary.300"},pl:t?6:2,...t&&r&&{borderColor:"primary.500",backgroundColor:"primary.softBg",boxShadow:"sm"}},children:[t&&c.jsx(fo,{checked:r,onChange:i,sx:{position:"absolute",top:"50%",left:12,transform:"translateY(-50%)",zIndex:2,bgcolor:"background.surface",borderRadius:"md",borderColor:"divider","&:hover":{bgcolor:"background.level1",borderColor:"primary.300"},"&.Mui-checked":{bgcolor:"primary.500",borderColor:"primary.500",color:"primary.solidColor","&:hover":{bgcolor:"primary.600",borderColor:"primary.600"}}},onClick:b=>b.stopPropagation()}),c.jsxs(bt,{container:!0,children:[c.jsx(bt,{xs:9,sx:{cursor:"pointer"},children:c.jsxs(ce,{display:"flex",justifyContent:"start",alignItems:"center",children:[c.jsx(Ms,{sx:{mr:1,fontSize:22},children:Array.from(e.name)[0]}),c.jsxs(ce,{display:"flex",flexDirection:"column",children:[c.jsx(ue,{level:"title-md",children:S(e.name)}),e.assignedTo&&c.jsx(ce,{display:"flex",alignItems:"center",gap:.5,children:c.jsx(Kr,{variant:"outlined",startDecorator:c.jsx(Ms,{src:(y=s.find(b=>b.userId===e.assignedTo))==null?void 0:y.image}),children:(_=s.find(b=>b.userId===e.assignedTo))==null?void 0:_.displayName})}),e.assignedTo===null&&c.jsx(ce,{display:"flex",alignItems:"center",gap:.5,children:c.jsx(Kr,{variant:"outlined",startDecorator:c.jsx(aA,{}),children:f("choreCard.anyone")})}),c.jsxs(ce,{children:[e.priority>0&&c.jsxs(Kr,{sx:{position:"relative",mr:.5,top:2,zIndex:1},color:e.priority===1?"danger":e.priority===2?"warning":"neutral",startDecorator:(R=Rf.find(b=>b.value===e.priority))==null?void 0:R.icon,onClick:b=>{b.stopPropagation(),o({priority:e.priority})},children:["P",e.priority]}),e.points>0&&c.jsx(Kr,{sx:{position:"relative",mr:.5,top:2,zIndex:1},color:"success",startDecorator:c.jsx(YA,{}),children:e.points}),(O=e.labelsV2)==null?void 0:O.map((b,P)=>c.jsx("div",{role:"none",tabIndex:0,onClick:E=>{E.stopPropagation(),o({label:b})},onKeyDown:E=>
173{(E.key==="Enter"||E.key===" ")&&(E.stopPropagation(),o({label:b}))},style:{display:"inline-block",cursor:"pointer"},children:c.jsx(Kr,{variant:"solid",color:"primary",sx:{position:"relative",ml:P===0?0:.5,top:2,zIndex:1,backgroundColor:`${b==null?void 0:b.color} !important`,color:Cb(b==null?void 0:b.color)},children:b==null?void 0:b.name})},`chorecard-${e.id}-label-${b.id}`))]},`${e.id}-labels`)]})]})}),c.jsx(bt,{xs:3,sx:{display:"flex",flexDirection:"column",alignItems:"flex-end",justifyContent:"center"},children:l&&c.jsxs(ce,{display:"flex",justifyContent:"flex-end",alignItems:"flex-end",children:[e.status===3?x()?c.jsxs(ce,{sx:{display:"flex",gap:.5},children:[c.jsx(dr,{variant:"soft",color:"success",onClick:b=>{b.stopPropagation(),n("approve",e)},sx:{borderRadius:"50%",width:50,minWidth:50,height:50,flexShrink:0,zIndex:1,transition:"all 0.2s ease","&:hover":{transform:"scale(1.05)"},"&:active":{transform:"scale(0.95)"},"&:disabled":{opacity:.5,transform:"none"}},children:c.jsx(BA,{sx:{fontSize:18}})}),c.jsx(dr,{variant:"soft",color:"danger",onClick:b=>{b.stopPropagation(),n("reject",e)},sx:{borderRadius:"50%",width:50,minWidth:50,height:50,flexShrink:0,zIndex:1,transition:"all 0.2s ease","&:hover":{transform:"scale(1.05)"},"&:active":{transform:"scale(0.95)"}},children:c.jsx(xb,{sx:{fontSize:18}})})]}):c.jsx(dr,{variant:"soft",color:"neutral",disabled:!0,sx:{borderRadius:"50%",width:50,minWidth:50,height:50,flexShrink:0,zIndex:1,opacity:.5},children:c.jsx(vb,{})}):c.jsx(dr,{variant:e.status===0?"solid":"soft",color:e.status===0?"success":"warning",onClick:b=>{switch(b.stopPropagation(),e.status){case 0:n("complete",e);break;case 1:n("pause",e);break;case 2:n("start",e);break}},disabled:yM(e),sx:{borderRadius:"50%",width:50,minWidth:50,height:50,flexShrink:0,zIndex:1,transition:"all 0.2s ease","&:hover":{transform:"scale(1.05)"},"&:active":{transform:"scale(0.95)"},"&:disabled":{opacity:.5,transform:"none"}},children:c.jsx("div",{className:"relative grid place-items-center",children:e.status===0?c.jsx(pb,{}):e.status===1?c.jsx(SA,{}):c.jsx(_A,{})})}),a?c.jsx(p9,{variant:"plain",onClick:b=>{b.stopPropagation(),a(b.currentTarget,e)},sx:e0}):c.jsx(h9,{variant:"plain",chore:e,onCompleteWithNote:()=>n("completeWithNote",e),onCompleteWithPastDate:()=>n("completeWithPastDate",e),onAction:(b,P,E)=>n(b,P,E),onChangeAssignee:()=>n("changeAssignee",e),onChangeDueDate:()=>n("changeDueDate",e),onWriteNFC:()=>n("writeNFC",e),onNudge:()=>n("nudge",e),onDelete:()=>n("delete",e),sx:e0})]})})]})]})})]},e.id+"-box")},g9=()=>{const[e,t]=p.useState(null),r=[{id:12,name:"â»ï¸ Take out recycle ",frequencyType:"days_of_the_week",frequency:1,priority:1,frequencyMetadata:'{"days":["thursday"],"time":"2024-07-07T22:00:00-04:00"}',nextDueDate:q().add(1,"days").hour(8).minute(0).toISOString(),isRolling:!1,assignedTo:1,status:0},{id:9,name:"ð Spray Pesticide",frequencyType:"interval",frequency:3,frequencyMetadata:'{"unit":"months"}',nextDueDate:q().subtract(7,"day").toISOString(),isRolling:!1,assignedTo:1,status:0},{id:6,name:"ð Gutter Cleaning",frequencyType:"day_of_the_month",frequency:1,frequencyMetadata:'{"months":["may"]}',nextDueDate:q().month("may").year(q().year()+1).date(1).hour(17).minute(0).toISOString(),isRolling:!1,assignedTo:1}],n=[{displayName:"Me",id:1,userId:1}];return c.jsxs(c.Fragment,{children:[c.jsx(bt,{item:!0,xs:12,sm:5,"data-aos-first-tasks-list":!0,children:r.map((o,a)=>c.jsx("div",{"data-aos-delay":100*a+200,"data-aos-anchor":"[data-aos-first-tasks-list]","data-aos":"fade-up",children:c.jsx(m9,{chore:o,performers:n,showActions:!1,viewOnly:!0})},a))}),c.jsx(bt,{item:!0,xs:12,sm:7,"data-aos-my-chore-demo-section":!0,children:c.jsxs(kr,{sx:{p:4,py:6},"data-aos-delay":200,"data-aos-anchor":"[data-aos-my-chore-demo-section]","data-aos":"fade-left",children:[c.jsx(ue,{level:"h3",textAlign:"center",sx:{mt:2,mb:4},children:"Glance at Your Task and Chores"}),c.jsx(ue,{level:"body-lg",textAlign:"center",sx:{mb:4},children:"Main view prioritize tasks due today, followed by overdue ones, and finally, future tasks or those without due dates. With Donetick, you can view all the tasks you've created (whether assigned to you or not) as well as tasks assigned to you by others. Quickly mark them as done with just one click, ensuring a smooth and efficie
173nt task management experience."})]})})]})};var yp={},Pd={};const v9=Kn(Tj);var t0;function Qu(){return t0||(t0=1,function(e){"use client";Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.createSvgIcon}});var t=v9}(Pd)),Pd}var y9=Qi;Object.defineProperty(yp,"__esModule",{value:!0});var dc=yp.default=void 0,b9=y9(Qu()),x9=c;dc=yp.default=(0,b9.default)((0,x9.jsx)("path",{d:"M19 13h-6v6h-2v-6H5v-2h6V5h2v6h6z"}),"Add");var bp={},C9=Qi;Object.defineProperty(bp,"__esModule",{value:!0});var Lb=bp.default=void 0,S9=C9(Qu()),w9=c;Lb=bp.default=(0,S9.default)((0,w9.jsx)("path",{d:"M6 19c0 1.1.9 2 2 2h8c1.1 0 2-.9 2-2V7H6zM19 4h-3.5l-1-1h-5l-1 1H5v2h14z"}),"Delete");var xp={},k9=Qi;Object.defineProperty(xp,"__esModule",{value:!0});var Mb=xp.default=void 0,_9=k9(Qu()),E9=c;Mb=xp.default=(0,_9.default)((0,E9.jsx)("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m1 15h-2v-6h2zm0-8h-2V7h2z"}),"Info");var Cp={},P9=Qi;Object.defineProperty(Cp,"__esModule",{value:!0});var zb=Cp.default=void 0,R9=P9(Qu()),T9=c;zb=Cp.default=(0,R9.default)((0,T9.jsx)("path",{d:"M12 22c1.1 0 2-.9 2-2h-4c0 1.1.89 2 2 2m6-6v-5c0-3.07-1.64-5.64-4.5-6.32V4c0-.83-.67-1.5-1.5-1.5s-1.5.67-1.5 1.5v.68C7.63 5.36 6 7.92 6 11v5l-2 2v1h16v-1z"}),"Notifications");const Nb=[{label:"Mins",value:"m",seconds:60},{label:"Hours",value:"h",seconds:3600},{label:"Days",value:"d",seconds:86400}];function S8(e){return e%86400===0?{value:e/86400,unit:"d"}:e%3600===0?{value:e/3600,unit:"h"}:{value:Math.round(e/60),unit:"m"}}function w8(e,t){const r=Nb.find(n=>n.value===t);return e*((r==null?void 0:r.seconds)??1)}const I9=Nb,D9=[{value:"before"},{value:"ondue"},{value:"after"}];function r0(e,t){const{unit:r,value:n}=e,o=Number(n);if(o===0)return t("notificationTemplate.onDueDate");const a=t(`notificationTemplate.unitName.${r}`),i=Math.abs(o);return o<0?t("notificationTemplate.beforeDue",{count:i,unit:a}):t("notificationTemplate.afterDue",{count:i,unit:a})}function n0(e){const t=Number(e.value);return t===0?{timing:"ondue",displayValue:0,unit:e.unit}:t<0?{timing:"before",displayValue:Math.abs(t),unit:e.unit}:{timing:"after",displayValue:t,unit:e.unit}}function O9(e,t){return e==="ondue"?0:e==="before"?-Math.abs(t):Math.abs(t)}const $9=({maxNotifications:e=5,minNotifications:t=1,onChange:r,showTimeline:n=!0,value:o})=>{const{t:a}=Jn("chores"),[i,s]=p.useState((o==null?void 0:o.templates)||JSON.parse(localStorage.getItem("defaultNotificationTemplate"))||[]),l=p.useRef(i),[u,d]=p.useState({}),[f,h]=p.useState(null),[g,m]=p.useState(!1),[v,x]=p.useState({}),w=p.useCallback(()=>{const E=(k,D)=>{const L=Number(k);if(L===0)return 0;let $=Math.abs(L);return D==="h"&&($*=60),D==="d"&&($*=1440),L<0?-$:$},T=[...i].sort((k,D)=>{const L=E(k.value,k.unit),$=E(D.value,D.unit);return L-$}),I={};i.forEach((k,D)=>{const L=T.findIndex($=>Number($.value)===Number(k.value)&&$.unit===k.unit);I[D]=L+1}),x(I)},[i]);p.useEffect(()=>{w()},[w]),p.useEffect(()=>{r&&r({notifications:i})},[i,r]);const S=(E,T=-1,I=i)=>I.some((k,D)=>D===T?!1:Number(k.value)===Number(E.value)&&k.unit===E.unit),y=E=>{let T=[];return E==="reminder"||E==="before"?T=[{value:-1,unit:"d"},{value:-3,unit:"h"},{value:-30,unit:"m"}]:(E==="followup"||E==="after")&&(T=[{value:1,unit:"d"},{value:3,unit:"d"},{value:7,unit:"d"}]),T.find(I=>!S(I,-1,l.current))},_=(E,T,I)=>{const k=i[E];let L={...n0(k)},$={...k};if(T==="timing"){if(L.timing=I,I==="ondue")L.displayValue=0;else if(Number(k.value)===0){const M=y(I);M?(L.displayValue=Math.abs(M.value),L.unit=M.unit):(L.displayValue=1,L.unit="h")}}else T==="displayValue"?L.displayValue=Math.max(0,Number(I)):T==="unit"&&(L.unit=I,$.unit=I);const j=O9(L.timing,L.displayValue);$={...$,value:j,unit:L.unit};const A=i.map((M,F)=>F===E?$:M);s(A),l.current=A,h(null)},R=E=>{const T=l.current,I=T[E];if(I&&S(I,E,T)){h(a("notificationTemplate.errDuplicate"));return}},O=E=>{if(i.length>=e)return;m(!0);let T;if(E==="due"){if(l.current.some(k=>Number(k.value)===0)){h(a("notificationTemplate.errOneDue"));return}T={value:0,unit:"m"}}else if(T=y(E),!T){h(a("notificationTemplate.errAllConfigured",{type:E}));return}const I=[...i,T];s(I),l.current=I,h(null)},b=E=>{const T=i.filter((I,k)=>k!==E);s(T),l.current=T,d(I=>{const k={...I};return delete k[E],k}),m(!0)},P=()=>{const E=($,j)=>{const A=Number($);if(A===0)return 0;let M=Math.abs(A);return j==="h"&&(M*=60),j==="d"&&(M*=1440),A<0?-M:M},T=[...i].sort(($,j)=>
173{const A=E($.value,$.unit),M=E(j.value,j.unit);return A-M}),I=T.map($=>E($.value,$.unit)),k=Math.min(0,...I),D=Math.max(0,...I),L=($,j)=>{const A=E($,j);return A===0?50:A<0?k===0?30:45-Math.abs(A)/Math.abs(k)*35:D===0?70:55+A/D*35};return c.jsx(ce,{sx:{mt:3,mb:2},children:c.jsx(ce,{sx:{display:"flex",flexDirection:"column",position:"relative",height:90,bgcolor:"background.surface",borderRadius:"md",border:"1px solid",borderColor:"neutral.outlinedBorder",p:2,transition:"height 0.3s ease"},children:c.jsxs(ce,{sx:{position:"relative",width:"100%",height:3,bgcolor:"neutral.outlinedBorder",mt:2},children:[c.jsx(ce,{sx:{position:"absolute",left:"50%",height:16,width:3,bgcolor:"warning.500",top:-8,transform:"translateX(-50%)",borderRadius:"sm",display:"flex",flexDirection:"column",alignItems:"center"},children:c.jsx(ue,{level:"body-xs",sx:{mt:4,fontWeight:"md",color:"warning.700",fontSize:"0.6rem"},children:a("group.dueDate")})}),T.map(($,j)=>{const A=L($.value,$.unit);return c.jsx(ce,{sx:{position:"absolute",left:`${A}%`,transform:"translateX(-50%)",color:E($.value,$.unit)<0?yt.SCHEDULED:E($.value,$.unit)===0?yt.TODAY:yt.LATE,display:"flex",flexDirection:"column",alignItems:"center",transition:"all 0.3s ease",cursor:"pointer",opacity:.85,"&:hover":{opacity:1,transform:"translateX(-50%) scale(1.1)",zIndex:10}},title:r0($,a),children:c.jsx(xm,{badgeContent:v[i.findIndex(M=>Number(M.value)===Number($.value)&&M.unit===$.unit)]||j+1,size:"sm",variant:"solid",sx:{"--Badge-paddingX":"4px","--Badge-minHeight":"16px","--Badge-fontSize":"0.65rem",display:"flex",alignItems:"center",justifyContent:"center","& .MuiBadge-badge":{background:E($.value,$.unit)<0?Zt.PREDUE:E($.value,$.unit)===0?Zt.DUE_DATE:Zt.POSTDUE,color:"white"}},children:c.jsx(zb,{fontSize:"small",sx:{height:18,width:18}})})},j)})]})})})};return c.jsxs(ce,{children:[f&&c.jsx(g_,{variant:"soft",color:"danger",sx:{mb:2},startDecorator:c.jsx(Mb,{}),children:f}),i.map((E,T)=>({notification:E,originalIndex:T})).sort((E,T)=>{const I=v[E.originalIndex]||0,k=v[T.originalIndex]||0;return I-k}).map(({notification:E,originalIndex:T})=>{const I=v[T],k=n0(E),D=l.current.some((j,A)=>A!==T&&Number(j.value)===0),$=(j=>Number(j)<0?{bgColor:Zt.PREDUE,lightBg:`${Zt.PREDUE}20`,borderColor:`${Zt.PREDUE}40`,textColor:Zt.PREDUE}:Number(j)===0?{bgColor:Zt.DUE_DATE,lightBg:`${Zt.DUE_DATE}20`,borderColor:`${Zt.DUE_DATE}40`,textColor:Zt.DUE_DATE}:{bgColor:Zt.POSTDUE,lightBg:`${Zt.POSTDUE}20`,borderColor:`${Zt.POSTDUE}40`,textColor:Zt.POSTDUE})(E.value);return c.jsxs(ce,{sx:{position:"relative"},children:[c.jsx(xm,{badgeContent:I,size:"sm",sx:{"--Badge-minHeight":"16px","--Badge-fontSize":"0.7rem","--Badge-paddingX":"5px",top:10,left:10,"& .MuiBadge-badge":{background:$.bgColor,color:"white"}}}),c.jsxs(ce,{sx:{mb:1.5,p:2,borderRadius:8,border:"1px solid",borderColor:"neutral.outlinedBorder",background:"background.surface",transition:"all 0.2s ease",display:"flex",alignItems:"center",gap:1.5},children:[c.jsx(ce,{sx:{minWidth:0,flex:"1",display:{xs:"none",md:"flex"}},children:c.jsx(ue,{level:"body-sm",sx:{fontWeight:600,color:"text.primary",fontSize:14},children:r0(E,a)})}),c.jsxs(ce,{sx:{display:"flex",alignItems:"center",gap:1,flexShrink:0},children:[c.jsx(Ri,{value:k.timing,onChange:(j,A)=>_(T,"timing",A),onBlur:()=>R(T),sx:{minWidth:80},size:"sm",children:D9.map(j=>c.jsx(Ca,{value:j.value,disabled:j.value==="ondue"&&D,children:a(`notificationTemplate.timing.${j.value}`)},j.value))}),c.jsx(Ru,{type:"number",min:0,value:u[T]!==void 0?u[T]:k.displayValue,disabled:k.timing==="ondue",onChange:j=>{const A=j.target.value;if(A.includes("-")||(d(F=>({...F,[T]:A})),A===""))return;const M=Number(A);Number.isFinite(M)&&_(T,"displayValue",M)},onKeyDown:j=>{["-","e","+","."].includes(j.key)&&j.preventDefault()},onBlur:j=>{let A=j.target.value;const M=Number(A);A=M<=0?D?1:0:M,_(T,"displayValue",A),d(F=>{const V={...F};return delete V[T],V}),R(T)},sx:{width:60,opacity:k.timing==="ondue"?.6:1},size:"sm",placeholder:"0"}),c.jsx(Ri,{value:E.unit,disabled:k.timing==="ondue",onChange:(j,A)=>_(T,"unit",A),onBlur:()=>R(T),sx:{minWidth:70,opacity:k.timing==="ondue"?.6:1},size:"sm",children:I9.map(j=>c.jsx(Ca,{value:j.value,children:a(`notificationTemplate.unitShort.${j.value}`)},j.value))}),c.jsx(dr,{onClick:()=>b(T),disabled:i.length<=t,color:"danger",size:"sm",variant:"soft",sx:{transition:"all 0.2s ease","&:hover":{transform:"scale(1.1)"}},children:c.jsx(Lb,{fontSize:"small"})})]})]})]},T)}),c.jsxs(ce,{sx:{display:"flex",gap:1.5,mt:1,mb:2,flexWrap:"wrap"},children:[c.jsx(wr,{onClick:()=>O("reminder"),disabled:i.length>=e,startDecorator:c.jsx(dc,{}),size:"sm",variant:"outlined",sx:{borderRadius:6,fontWeight:500,borderColor:`${yt.SCHEDULED}60`,color:yt.SCHEDULED,"&:hover":{borderColor:yt.SCHEDULED,background:`${yt.SCHEDULED}10`}},children:a("notificationTemplate.reminder")}),c.jsx(wr,{onClick:()=>O("due"),disabled:i.length>=e||i.some(E=>Number(E.value)===0),startDecorator:c.jsx(dc,{}),size:"sm",variant:"outlined",sx:{borderRadius:6,fontWeight:500,borderColor:`${Zt.DUE_DATE}60`,color:Zt.DUE_DATE,"&:hover":{borderColor:Zt.DUE_DATE,background:`${Zt.DUE_DATE}10`}},children:a("notificationTemplate.dueAlert")}),c.jsx(wr,{onClick:()=>O("followup"),disabled:i.length>=e,startDecorator:c.jsx(dc,{}),size:"sm",variant:"outlined",sx:{borderRadius:6,fontWeight:500,borderColor:`${Zt.POSTDUE}60`,color:Zt.POSTDUE,"&:hover":{borderColor:Zt.POSTDUE,background:`${Zt.POSTDUE}10`}},children:a("notificationTemplate.followUp")})]}),g&&c.jsx(ce,{sx:{mt:1,display:"flex",justifyContent:"start",alignItems:"center",gap:1},children:c.jsx(wr,{variant:"outlined",size:"sm",color:"neutral",startDecorator:c.jsx($A,{}),sx:{borderRadius:6,fontWeight:500,"&:hover":{background:"neutral.softHoverBg"}},onClick:()=>{localStorage.setItem("defaultNotificationTemplate",JSON.stringify(i)),m(!1)},children:a("notificationTemplate.rememberFuture")})}),n&&P()]})}
173,j9=()=>{const e=[{value:-3,unit:"d"},{value:0,unit:"m"},{value:1,unit:"d"}],t=r=>{};return c.jsxs(c.Fragment,{children:[c.jsx(bt,{item:!0,xs:12,sm:7,"data-aos-notification-template-list":!0,children:c.jsx("div",{"data-aos-delay":100,"data-aos-anchor":"[data-aos-notification-template-list]","data-aos":"fade-up",children:c.jsx($9,{value:{templates:e},onChange:t,maxNotifications:5,showTimeline:!1})})}),c.jsx(bt,{item:!0,xs:12,sm:5,"data-aos-notification-demo-section":!0,children:c.jsxs(kr,{sx:{p:4,py:6,height:"fit-content"},"data-aos-delay":200,"data-aos-anchor":"[data-aos-notification-demo-section]","data-aos":"fade-left",children:[c.jsx(ue,{level:"h3",textAlign:"center",sx:{mt:2,mb:4},children:"Smart Notification Scheduling"}),c.jsx(ue,{level:"body-lg",textAlign:"center",sx:{mb:4},children:"Set up intelligent reminders for your tasks with flexible timing options. Get notified before, on, or after due dates with customizable intervals."})]})})]})},o0=e=>e==null?"":String(e),Mc=({allowEmpty:e=!1,emptyValue:t=null,fallbackValue:r,integer:n=!0,max:o,min:a,onBlur:i,onFocus:s,onValueChange:l,selectOnFocus:u=!1,slotProps:d,step:f=n?1:"any",value:h,...g})=>{const[m,v]=p.useState({sourceValue:h,value:o0(h)});Object.is(m.sourceValue,h)||v({sourceValue:h,value:o0(h)});const x=m.value,w=O=>{v({sourceValue:h,value:O})},S=O=>{if(O.trim()==="")return null;const b=Number(O);return Number.isFinite(b)?n?Math.trunc(b):b:null},y=O=>{let b=S(O);if(b===null){const P=r??a??0;b=n?Math.trunc(Number(P)):Number(P)}return a!=null&&(b=Math.max(a,b)),o!=null&&(b=Math.min(o,b)),b},_=O=>{const b=O.target.value;if(w(b),b===""&&e){l(t);return}const P=S(b);P!==null&&l(P)},R=O=>{if(x===""&&e){i==null||i(O);return}const b=y(x);w(String(b)),l(b),i==null||i(O)};return c.jsx(Ru,{...g,type:"number",value:x,onChange:_,onFocus:O=>{u&&O.target.select(),s==null||s(O)},onBlur:R,slotProps:{...d,input:{...d==null?void 0:d.input,min:a,max:o,step:f}}})};Mc.propTypes={allowEmpty:mr.bool,emptyValue:mr.any,fallbackValue:mr.number,integer:mr.bool,max:mr.number,min:mr.number,onBlur:mr.func,onFocus:mr.func,onValueChange:mr.func.isRequired,selectOnFocus:mr.bool,slotProps:mr.object,step:mr.oneOfType([mr.number,mr.string]),value:mr.oneOfType([mr.number,mr.string])};const Wl=e=>(e==null?void 0:e.expiration)&&q(e==null?void 0:e.expiration).isAfter(),k8=e=>{if(!e)return"";if(typeof globalThis.document>"u")return String(e).replace(/<[^>]*>/g," ");const t=globalThis.document.createElement("div");return t.innerHTML=String(e),t.textContent||t.innerText||""},A9=e=>e?e.startsWith("http")||e.startsWith("https")?e:Lr.getAssetURL(e):"",L9=e=>{if(!e)return null;try{const t=new URL(e,"http://relative.local").searchParams;if(t.has("expires")){const r=parseInt(t.get("expires"),10);return Number.isFinite(r)?r*1e3:null}if(t.has("X-Amz-Expires")&&t.has("X-Amz-Date")){const r=t.get("X-Amz-Date").replace(/^(\d{4})(\d{2})(\d{2})T(\d{2})(\d{2})(\d{2})Z$/,"$1-$2-$3T$4:$5:$6Z"),n=Date.parse(r),o=parseInt(t.get("X-Amz-Expires"),10);if(Number.isFinite(n)&&Number.isFinite(o))return n+o*1e3}return null}catch{return null}},M9=e=>{const t=L9(e);return t!=null&&Date.now()>t-6e4},Ul=new Map,_8=async e=>{if(!e)return"";const t=Ul.get(e);if(t!=null&&t.url&&!M9(t.url))return t.url;if(t!=null&&t.promise)return t.promise;const r=(async()=>{const n=await Lr.get(`/files/sign?path=${encodeURIComponent(e)}`);
173if(!(n!=null&&n.ok))throw new Error(`Failed to sign asset path: ${e}`);const o=await n.json(),a=A9(o.url);return Ul.set(e,{url:a}),a})();return r.catch(()=>Ul.delete(e)),Ul.set(e,{promise:r}),r},Fb=e=>e!=null&&e!=="",z9=(e,t,r)=>{if(!e||!Fb(r))return!1;if(e.type==="boolean")return!!["true","false"].includes(r);if(e.type==="number"){if(isNaN(r))return!1;if(["eq","neq","gt","gte","lt","lte"].includes(t))return!0}return e.type==="text"&&typeof r=="string"},N9=({isAttepmtingToSave:e,onTriggerUpdate:t,onValidate:r,selected:n,things:o})=>{const{t:a}=Jn("chores"),[i,s]=p.useState(null),[l,u]=p.useState(null),[d,f]=p.useState(null),h=Xo();return p.useEffect(()=>{n&&(s(o==null?void 0:o.find(g=>g.id===n.thingId)),u(n.condition),f(n.triggerState))},[o]),p.useEffect(()=>{i&&Fb(d)&&t({thing:i,condition:l,triggerState:d}),z9(i,l,d)?r(!0):r(!1)},[i,l,d]),c.jsxs(kr,{sx:{mt:1},children:[c.jsx(ue,{level:"h5",children:a("thing.triggerHint")}),(o==null?void 0:o.length)===0&&c.jsxs(ue,{level:"body-sm",children:[a("thing.noThingsMessage"),c.jsx(wr,{startDecorator:c.jsx(ZA,{}),size:"sm",onClick:()=>{h("/things")},children:a("thing.goToThings")})," ",a("thing.noThingsSuffix")]}),c.jsx(ks,{error:e&&!i,children:c.jsx(O3,{options:o,value:i,onChange:(g,m)=>s(m),getOptionLabel:g=>g.name,renderOption:(g,m)=>c.jsx(ce,{...g,children:c.jsxs(ce,{sx:{display:"flex",flexDirection:"column",justifyContent:"space-between",alignItems:"center",p:1},children:[c.jsx(ce,{sx:{alignSelf:"flex-start"},children:c.jsx(ue,{level:"body-lg",textColor:"primary",children:m.name})}),c.jsx(ce,{children:c.jsxs(ue,{level:"body2",textColor:"text.secondary",children:[c.jsx(Kr,{children:a("thing.typeChip",{type:m.type})})," ",c.jsx(Kr,{children:a("thing.stateChip",{state:m.state})})]})})]})}),renderInput:g=>c.jsx(pP,{...g,label:a("thing.selectThing")})})}),c.jsx(ue,{level:"body-sm",children:a("thing.conditionHint")}),(i==null?void 0:i.type)=="boolean"&&c.jsxs(ce,{children:[c.jsx(ue,{level:"body-sm",children:a("thing.stateChangeHint",{name:i.name})}),c.jsxs(Ri,{value:d,onChange:g=>{(g==null?void 0:g.target.value)==="true"||(g==null?void 0:g.target.value)==="false"?f(g.target.value):f("false")},children:[c.jsx(Ca,{value:"true",onClick:()=>f("true"),children:a("thing.boolTrue")}),c.jsx(Ca,{value:"false",onClick:()=>f("false"),children:a("thing.boolFalse")})]})]}),(i==null?void 0:i.type)=="number"&&c.jsxs(ce,{children:[c.jsx(ue,{level:"body-sm",children:a("thing.stateChangeHint",{name:i.name})}),c.jsxs(ce,{sx:{display:"flex",gap:1,direction:"row"},children:[c.jsx(ue,{level:"body-sm",children:a("thing.stateIs")}),c.jsx(Ri,{value:l,sx:{width:"50%"},children:[{name:a("thing.conditions.eq"),value:"eq"},{name:a("thing.conditions.neq"),value:"neq"},{name:a("thing.conditions.gt"),value:"gt"},{name:a("thing.conditions.gte"),value:"gte"},{name:a("thing.conditions.lt"),value:"lt"},{name:a("thing.conditions.lte"),value:"lte"}].map(g=>c.jsx(Ca,{value:g.value,onClick:()=>u(g.value),children:g.name},g.value))}),c.jsx(Mc,{value:d,allowEmpty:!0,integer:!1,onValueChange:f,sx:{width:"50%"}})]})]}),(i==null?void 0:i.type)=="text"&&c.jsxs(ce,{children:[c.jsx(ue,{level:"body-sm",children:a("thing.stateChangeHint",{name:i.name})}),c.jsx(Ru,{value:d,onChange:g=>f(g.target.value),label:a("thing.enterText")})]})]})},F9=["daily","weekly","monthly","yearly","adaptive","custom"],H9=["adaptive","custom"],Vl=["interval","days_of_the_week","day_of_the_month"],a0=["january","february","march","april","may","june","july","august","september","october","november","december"],i0=["monday","tuesday","wednesday","thursday","friday","saturday","sunday"],B9=["every_week","week_of_month"],Yl=[1,2,3,4,-1],Hb=e=>e===-1?"last":String(e),W9=(e,t,r)=>{var a,i;if(!((a=e==null?void 0:e.days)!=null&&a.length))return"";const n=e.days.map(s=>r(`repeat.daysShort.${s}`)).join(", "),o=e.time?t(e.time):r("repeat.defaultTime");if(e.weekPattern==="week_of_month"&&((i=e.occurrences)!=null&&i.length)){const s=e.occurrences.map(l=>r(`repeat.ordinal.${Hb(l)}`)).join(", ");return r("repeat.previewOccurrence",{occurrences:s,days:n,time:o})}return r("repeat.previewEvery",{days:n,time:o})},U9=({frequency:e,frequencyMetadata:t,frequencyType:r,onFrequencyMetadataUpdate:n,onFrequencyUpdate:o})=>{var l,u,d,f,h,g;const{fmt:a}=Wu(),{t:i}=Jn("chores");p.useEffect(()=>{t!=null&&t.time||(t.time=q(q(new Date).format("YYYY-MM-DD")+"T18:00").format()),t!=null&&t.weekPattern||n({...t,weekPattern:"every_week",occurrences:[]})},[t,n]);
173const s=c.jsxs(bt,{item:!0,sm:12,sx:{display:"flex",direction:"column",flexDirection:"column"},children:[c.jsx(ue,{level:"h5",children:i("repeat.timeOfDay")}),c.jsx(Ru,{type:"time",sx:{width:"150px"},defaultValue:q(t==null?void 0:t.time).format("HH:mm"),onChange:m=>{n({...t,timezone:Intl.DateTimeFormat().resolvedOptions().timeZone,time:q(q(new Date).format("YYYY-MM-DD")+"T"+m.target.value).format()})}})]});switch(r){case"interval":return c.jsxs(c.Fragment,{children:[c.jsxs(bt,{item:!0,sm:12,sx:{display:"flex",alignItems:"center"},children:[c.jsx(ue,{level:"h5",children:i("repeat.every")}),c.jsx(Mc,{min:1,max:1e3,value:e,onValueChange:o}),c.jsx(Ri,{placeholder:i("repeat.unitPlaceholder"),value:(t==null?void 0:t.unit)||"days",sx:{ml:1},children:["hours","days","weeks","months","years"].map(m=>c.jsx(Ca,{value:m,onClick:()=>{n({...t,unit:m})},children:i(`repeat.unit.${m}`)},m))})]}),s]});case"days_of_the_week":return c.jsxs(c.Fragment,{children:[c.jsx(bt,{item:!0,sm:12,sx:{display:"flex",alignItems:"center"},children:c.jsxs(kr,{children:[c.jsx(Un,{orientation:"horizontal",wrap:!0,sx:{"--List-gap":"8px","--ListItem-radius":"20px"},children:i0.map(m=>{var v;return c.jsx(Tr,{children:c.jsx(fo,{checked:((v=t==null?void 0:t.days)==null?void 0:v.includes(m))||!1,onClick:()=>{const x=t.days||[];x.includes(m)?x.splice(x.indexOf(m),1):x.push(m),n({...t,days:x.sort()})},overlay:!0,disableIcon:!0,variant:"soft",label:i(`repeat.days.${m}`)})},m)})}),c.jsx(wr,{size:"sm",variant:"soft",color:"neutral",checked:((l=t==null?void 0:t.days)==null?void 0:l.length)===7,onClick:()=>{var m;((m=t==null?void 0:t.days)==null?void 0:m.length)===7?n({...t,days:[],weekPattern:"every_week",occurrences:[]}):n({...t,days:i0.map(v=>v)})},overlay:!0,disableIcon:!0,children:((u=t==null?void 0:t.days)==null?void 0:u.length)===7?i("repeat.unselectAll"):i("repeat.selectAll")})]})}),c.jsx(bt,{item:!0,sm:12,sx:{display:"flex",alignItems:"center"},children:c.jsxs(ce,{children:[c.jsx(ry,{value:(t==null?void 0:t.weekPattern)||"every_week",onChange:m=>{const v=m.target.value;n({...t,weekPattern:v,occurrences:v==="every_week"?[]:(t==null?void 0:t.occurrences)||[]})},sx:{gap:1,"& > div":{p:1}},children:B9.map(m=>c.jsxs(ks,{children:[c.jsx(ty,{value:m,label:i(`repeat.weekPattern.${m}`),variant:"soft"}),c.jsx(ec,{children:i(`repeat.weekPatternHelp.${m}`)})]},m))}),(t==null?void 0:t.weekPattern)==="week_of_month"&&c.jsxs(ce,{mt:2,children:[c.jsx(ue,{level:"body-sm",mb:1,children:i("repeat.selectOccurrences")}),c.jsx(ue,{level:"body-xs",color:"neutral",mb:2,children:i("repeat.occurrenceExample")}),c.jsxs(kr,{children:[c.jsx(Un,{orientation:"horizontal",wrap:!0,sx:{"--List-gap":"8px","--ListItem-radius":"20px"},children:Yl.map(m=>{var v;return c.jsx(Tr,{children:c.jsx(fo,{checked:((v=t==null?void 0:t.occurrences)==null?void 0:v.includes(m))||!1,onChange:()=>{const x=(t==null?void 0:t.occurrences)||[],w=x.includes(m)?x.filter(S=>S!==m):[...x,m];n({...t,occurrences:w.sort((S,y)=>S===-1?1:y===-1?-1:S-y)})},overlay:!0,disableIcon:!0,variant:"soft",label:i(`repeat.occurrence.${Hb(m)}`)})},m)})}),c.jsx(wr,{size:"sm",variant:"soft",color:"neutral",onClick:()=>{var m;((m=t==null?void 0:t.occurrences)==null?void 0:m.length)===Yl.length?n({...t,occurrences:[]}):n({...t,occurrences:[...Yl]})},overlay:!0,disableIcon:!0,children:((d=t==null?void 0:t.occurrences)==null?void 0:d.length)===Yl.length?i("repeat.unselectAll"):i("repeat.selectAll")})]})]}),((f=t==null?void 0:t.days)==null?void 0:f.length)>0&&c.jsx(kr,{mt:2,p:2,children:c.jsx(ue,{level:"body-sm",color:"primary",children:W9(t,a.time,i)})})]})}),s]});case"day_of_the_month":return c.jsxs(c.Fragment,{children:[c.jsx(bt,{item:!0,sm:12,sx:{display:"flex",alignItems:"center",flexDirection:"column",justifyContent:"space-between"},children:c.jsxs(kr,{children:[c.jsx(Un,{orientation:"horizontal",wrap:!0,sx:{"--List-gap":"8px","--ListItem-radius":"20px"},children:a0.map(m=>{var v;return c.jsx(Tr,{children:c.jsx(fo,{checked:(v=t==null?void 0:t.months)==null?void 0:v.includes(m),onClick:()=>{const x=t.months||[];x.includes(m)?x.splice(x.indexOf(m),1):x.push(m),n({...t,months:x.sort()})},overlay:!0,disableIcon:!0,variant:"soft",label:i(`repeat.months.${m}`)})},m)})}),c.jsx(wr,{size:"sm",variant:"soft",color:"neutral",checked:((h=t==null?void 0:t.months)==null?void 0:h.length)===12,onClick:()=>{var m;((m=t==null?void 0:t.months)==null?void 0:m.length)===12?n({...t,months:[]}):n({...t,months:a0.map(v=>v)})},overlay:!0,disableIcon:!0,children:((g=t==null?void 0:t.months)==null?void 0:g.length)===12?i("repeat.unselectAll"):i("repeat.selectAll")})]})}),c.jsxs(ce,{sx:{display:"flex",alignItems:"center",mb:1.5},children:[c.jsx(ue,{children:i("repeat.onThe")}),c.jsx(Mc,{sx:{width:"80px"},min:1,max:31,value:e,onValueChange:o}),c.jsx(ue,{children:i("repeat.ofAboveMonths")})]}),s]});default:return c.jsx(c.Fragment,{})}},V9=({OnTriggerValidate:e,allUserThings:t,frequency:r,frequencyError:n,frequencyMetadata:o,frequencyType:a,isAttemptToSave:i,onFrequencyMetadataUpdate:s,onFrequencyTypeUpdate:l,onFrequencyUpdate:u,onTriggerUpdate:d,selectedThing:f,viewOnly:h=!1})=>{const{data:g}=Tb({enabled:!h}),{t:m}=Jn("chores");return c.jsxs(ce,{mt:2,children:[c.jsx(ue,{level:"h4",children:m("repeat.title")}),c.jsxs(ks,{sx:{mt:1},children:[c.jsx(fo,{onChange:v=>{l(v.target.checked?"daily":"once"),v.target.checked&&d(null)},defaultChecked:!["once","trigger"].includes(a),checked:!["once","trigger"].includes(a),value:!["once","trigger"].includes(a),overlay:!0,label:m("repeat.repeatThisTask")}),c.jsx(ec,{children:m("repeat.repeatThisTaskHelp")})]}),!["once","trigger"].includes(a)&&c.jsx(c.Fragment,{children:c.jsxs(kr,{sx:{mt:1},children:[c.jsx(ue,{level:"h5",children:m("repeat.howOften")}),c.jsx(Un,{orientation:"horizontal",wrap:!0,sx:{"--List-gap":"8px","--ListItem-radius":"20px"},children:F9.map(v=>c.jsx(Tr,{children:c.jsx(fo,{checked:v===a||v==="custom"&&Vl.includes(a),onClick:()=>
173{if(v==="custom"){l(Vl[0]),u(1),s({unit:"days",time:o!=null&&o.time?o==null?void 0:o.time:q(q(new Date).format("YYYY-MM-DD")+"T18:00").format(),timezone:Intl.DateTimeFormat().resolvedOptions().timeZone});return}l(v)},overlay:!0,disableIcon:!0,variant:"soft",label:m(`repeat.freqType.${v}`)})},v))}),c.jsx(ue,{children:H9.includes(a)?m(`repeat.freqMessage.${a}`):""}),a==="custom"||Vl.includes(a)&&c.jsx(c.Fragment,{children:c.jsxs(bt,{container:!0,spacing:1,mt:2,children:[c.jsxs(bt,{item:!0,children:[c.jsx(ue,{children:m("repeat.repeatOn")}),c.jsx(ce,{sx:{display:"flex",alignItems:"center",gap:2},children:c.jsx(ry,{orientation:"horizontal","aria-labelledby":"segmented-controls-example",name:"justify",sx:{minHeight:48,padding:"4px",borderRadius:"12px",bgcolor:"neutral.softBg","--RadioGroup-gap":"4px","--Radio-actionRadius":"8px",mb:1},children:Vl.map(v=>c.jsx(ty,{color:"neutral",checked:v===a,onClick:()=>{(v==="day_of_the_month"||v==="interval")&&u(1),l(v),v==="days_of_the_week"?s({...o,days:[],weekPattern:"every_week",weekNumbers:[]}):v==="day_of_the_month"?s({...o,months:[]}):v==="interval"&&s({...o,unit:"days"})},value:v,disableIcon:!0,label:m(`repeat.repeatOnType.${v}`),variant:"plain",sx:{px:2,alignItems:"center"},slotProps:{action:({checked:x})=>({sx:{...x&&{bgcolor:"background.surface",boxShadow:"sm","&:hover":{bgcolor:"background.surface"}}}})}},v))})})]}),c.jsx(U9,{frequency:r,onFrequencyUpdate:u,frequencyType:a,onFrequencyTypeUpdate:l,frequencyMetadata:o||{},onFrequencyMetadataUpdate:s,things:t})]})}),c.jsx(ks,{error:!!n,children:c.jsx(ec,{error:!0,children:n})})]})}),c.jsxs(ks,{sx:{mt:1},children:[c.jsx(fo,{onChange:v=>{l(v.target.checked?"trigger":"once"),v.target.checked||d(null)},defaultChecked:a==="trigger",checked:a==="trigger",value:a==="trigger",disabled:!Wl(g),overlay:!0,label:m("repeat.triggerLabel")}),c.jsxs(ec,{sx:{opacity:Wl(g)?1:.5},children:[m("repeat.triggerHelp")," ",g&&!Wl(g)&&c.jsx(Kr,{variant:"soft",color:"warning",children:m("settings:common.plusFeature")})]}),!Wl(g)&&c.jsx(ue,{level:"body-sm",color:"warning",sx:{mt:1},children:m("repeat.triggerPlanWarning")})]}),a==="trigger"&&c.jsx(N9,{things:t,onTriggerUpdate:d,onValidate:e,isAttemptToSave:i,selected:f})]})},Y9=()=>{const[e,t]=p.useState([]),[r,n]=p.useState(2),[o,a]=p.useState("weekly"),[i,s]=p.useState({months:["may","june","july"]});return c.jsxs(c.Fragment,{children:[c.jsx(bt,{item:!0,xs:12,sm:5,"data-aos-create-chore-scheduler":!0,children:c.jsx(ce,{"data-aos-delay":300,"data-aos-anchor":"[data-aos-create-chore-scheduler]","data-aos":"fade-right",children:c.jsx(V9,{frequency:r,onFrequencyUpdate:n,frequencyType:o,onFrequencyTypeUpdate:a,frequencyMetadata:i,onFrequencyMetadataUpdate:s,onFrequencyTimeUpdate:l=>{},frequencyError:null,allUserThings:[],onTriggerUpdate:l=>{},OnTriggerValidate:()=>{},isAttemptToSave:!1,selectedThing:null,viewOnly:!0})})}),c.jsx(bt,{item:!0,xs:12,sm:7,"data-aos-create-chore-section-scheduler":!0,children:c.jsxs(kr,{sx:{p:4,py:6},"data-aos-delay":200,"data-aos-anchor":"[data-aos-create-chore-section-scheduler]","data-aos":"fade-left",children:[c.jsx(ue,{level:"h3",textAlign:"center",sx:{mt:2,mb:4},children:"Advanced Scheduling and Automation"}),c.jsx(ue,{level:"body-lg",textAlign:"center",sx:{mb:4},children:"Scheduling is a crucial aspect of managing tasks and chores. Donetick offers basic scheduling options, such as recurring tasks daily, weekly, or yearly, as well as more customizable schedules like specific days of the week or month. For those unsure of exact frequencies, the adaptive scheduling feature averages based on how often you mark a task as completed. Additionally, Donetick supports automation by linking tasks with triggers via API. When specific conditions are met, Donetickâs Things feature will automatically initiate the task, streamlining your workflow."})]})})]})},G9=()=>{iw();const e=[{icon:c.jsx(PA,{}),title:"Natural Language Input",description:"Add tasks just by typing. Donetick understands dates, priorities, labels. you can have quickest way to add tasks."},{icon:c.jsx(iA,{}),title:"Collaboration",description:"Create groups for family, friends, or teams. Share, assign, and manage tasks together."},{icon:c.jsx(tA,{}),title:"Gamification and Points",description:"Earn points, climb leaderboards for c
173ompleting tasks. You can even require admin approval for points!"},{icon:c.jsx(Bj,{}),title:"Visual Calendar View",description:"See all your tasks in a color-coded calendar. Filter by assignee, view daily agendas, and plan with ease."},{icon:c.jsx(bb,{}),title:"Smart Scheduling",description:"Flexible recurring tasks: daily, weekly, monthly, or custom intervals. Choose rolling or fixed schedules and set completion windows to fit any routine."},{icon:c.jsx(zj,{}),title:"Automatic Task Assignment",description:"Distribute tasks fairly using smart algorithms: round-robin, least busy, random, or custom rules. No more manual juggling."},{icon:c.jsx(WA,{}),title:"Built-in Time Tracking",description:"Track work sessions with a timer, review detailed logs, and analyze productivity patterns for every task."},{icon:c.jsx(xA,{}),title:"Gentle Nudges",description:"Manually send friendly reminders to assignees about pending tasks. Customize messages and choose who gets notified."},{icon:c.jsx(hb,{}),title:"Advanced Organization",description:"Break down tasks with subtasks, set priorities, add labels and tags, and use templates for quick setup."},{icon:c.jsx(MA,{}),title:"Advanced Task Settings",description:"Configure task-specific settings like completion windows, custom point values, and require admin a
173pproval for tasks."},{icon:c.jsx($j,{}),title:"Insightful Analytics",description:"Track progress, view completion history, and spot trends with clear reports and visualizations."},{icon:c.jsx(yb,{}),title:"Smart Notifications",description:"Get timely reminders via Donetick app or other way like Telegram, push, or webhooks."},{icon:c.jsx(Aj,{}),title:"Seamless Integrations",description:"Connect with REST API, webhooks, and automation tools. Import, export, and trigger actions to fit your workflows."},{icon:c.jsx(LA,{}),title:"Privacy & Security",description:"Open-source and transparent. For security, you can secure your account with 2FA."}];return c.jsxs(ml,{maxWidth:"xl",sx:{py:{xs:6,sm:8,md:12}},children:[c.jsxs(ce,{textAlign:"center",mb:{xs:6,md:8},"data-aos":"fade-up",children:[c.jsx(ue,{level:"h2",sx:{fontSize:{xs:28,sm:36,md:42,lg:48},fontWeight:700,mb:{xs:2,md:3},color:"text.primary",lineHeight:{xs:1.2,md:1.1},background:"linear-gradient(135deg, var(--joy-palette-primary-500) 0%, var(--joy-palette-primary-600) 100%)",backgroundClip:"text",WebkitBackgroundClip:"text",WebkitTextFillColor:"transparent",textAlign:"center"},children:"Simple Yet Powerful Features"}),c.jsx(ue,{level:"body-lg",sx:{fontSize:{xs:16,sm:17,md:18,lg:19},color:"text.secondary",maxWidth:{xs:"100%",sm:600,md:700},mx:"auto",lineHeight:1.6,px:{xs:1,sm:0}},children:"Donetick helps you stay organized, motivated, and productive with a suite of powerful features designed for individuals and groups."})]}),c.jsx(bt,{container:!0,spacing:{xs:3,sm:4,md:4},children:e.map((t,r)=>c.jsx(bt,{item:!0,xs:12,sm:6,lg:4,children:c.jsxs(kr,{"data-aos":"fade-up","data-aos-delay":r*100,"data-aos-duration":"800",variant:"outlined",sx:{p:{xs:3,sm:4,md:4},height:"100%",borderRadius:{xs:16,md:20},border:"1px solid",borderColor:"divider",background:"background.surface",transition:"all 0.4s cubic-bezier(0.4, 0, 0.2, 1)",position:"relative",overflow:"hidden",cursor:"pointer",minHeight:{xs:200,sm:220},display:"flex",flexDirection:"column","&::before":{content:'""',position:"absolute",top:0,left:0,right:0,height:"4px",background:"linear-gradient(90deg, var(--joy-palette-primary-400) 0%, var(--joy-palette-primary-600) 100%)",transform:"scaleX(0)",transformOrigin:"left",transition:"transform 0.4s ease"},"&::after":{content:'""',position:"absolute",top:0,left:0,right:0,bottom:0,background:"linear-gradient(135deg, rgba(6, 182, 212, 0.02) 0%, rgba(8, 145, 178, 0.04) 100%)",opacity:0,transition:"opacity 0.4s ease",pointerEvents:"none"},"@media (max-width: 600px)":{"&:active":{transform:"scale(0.98)"}}},children:[c.jsxs(ce,{sx:{display:"flex",alignItems:{xs:"center",sm:"flex-start"},flexDirection:{xs:"row",sm:"column"},gap:{xs:2,sm:0},mb:{xs:1.5,sm:0}},children:[c.jsx(ce,{className:"feature-icon",sx:{display:"inline-flex",alignItems:"center",justifyContent:"center",width:{xs:40,sm:60},height:{xs:40,sm:60},borderRadius:{xs:10,sm:16},background:"linear-gradient(135deg, var(--joy-palette-primary-50) 0%, var(--joy-palette-primary-100) 100%)",color:"primary.500",mb:{xs:0,sm:3},transition:"all 0.4s cubic-bezier(0.4, 0, 0.2, 1)",flexShrink:0,"& svg":{fontSize:{xs:20,sm:28}}},children:t.icon}),c.jsx(ue,{className:"feature-title",level:"title-lg",sx:{fontSize:{xs:18,sm:20},fontWeight:700,mb:{xs:0,sm:2},color:"text.primary",lineHeight:1.3,transition:"color 0.3s ease",flex:1},children:t.title})]}),c.jsx(ue,{level:"body-md",sx:{color:"text.secondary",lineHeight:1.6,fontSize:{xs:14,sm:15},flex:1},children:t.description})]})},r))}),c.jsx(ce,{textAlign:"center",mt:{xs:8,sm:10,md:12},"data-aos":"fade-up","data-aos-duration":"800"})]})},Bb="/assets/logo-wN6HTMq7.svg",K9="1.2.55",J9=e=>c.jsx(Sc,{...e,viewBox:"0 0 24 24",children:c.jsx("path",{d:"M20.317 4.3698a19.7913 19.7913 0 00-4.8851-1.5152.0741.0741 0 00-.0785.0371c-.211.3753-.4447.8648-.6083 1.2495-1.8447-.2762-3.68-.2762-5.4868 0-.1636-.3933-.4058-.8742-.6177-1.2495a.077.077 0 00-.0785-.037 19.7363 19.7363 0 00-4.8852 1.515.0699.0699 0 00-.0321.0277C.5334 9.0458-.319 13.5799.0992 18.0578a.0824.0824 0 00.0312.0561c2.0528 1.5076 4.0413 2.4228 5.9929 3.0294a.0777.0777 0 00.0842-.0276c.4616-.6304.8731-1.2952 1.226-1.9942a.076.076 0 00-.0416-.1057c-.6528-.2476-1.2743-.5495-1.8722-.8923a.077.077 0 01-.0076-.1277c.1258-.0943.2517-.1923.3718-.2914a.0743.0743 0 01.0776-.0105c3.9278 1.7933 8.18 1.7933 12.0614 0a.0739.0739 0 01.0785.0095c.1202.099.246.1981.3728.2924a.077.077 0 01-.0066.1276 12.2986 12.2986 0 01-1.873.8914.0766.0766 0 00-.0407.1067c.3604.698.7719 1.3628 1.225 1.9932a.076.076 0 00.0842.0286c1.961-.6067 3.9495-1.5219 6.0023-3.0294a.077.077 0 00.0313-.0552c.5004-5.177-.8382-9.6739-3.5485-13.6604a.061.061 0 00-.0312-.0286zM8.02 15.3312c-1.1825 0-2.1569-1.0857-2.1569-2.419 0-1.3332.9555-2.4189 2.157-2.4189 1.2108 0 2.1757 1.0952 2.1568 2.419-.0190 1.3332-.9555 2.4189-2.1569 2.4189zm7.9748 0c-1.1825 0-2.1569-1.0857-2.1569-2.419 0-1.3332.9554-2.4189 2.1569-2.4189 1.2108 0 2.1757 1.0952 2.1568 2.419 0 1.3332-.9555 2.4189-2.1568 2.4189Z"})}),q9=e=>c.jsx(Sc,{...e,viewBox:"0 0 24 24",children:c.jsx("path",{d:"M12 0A12 12 0 0 0 0 12a12 12 0 0 0 12 12 12 12 0 0 0 12-12A12 12 0 0 0 12 0zm5.01 4.744c.688 0 1.25.561 1.25 1.249a1.25 1.25 0 0 1-2.498.056l-2.597-.547-.8 3.747c1.824.07 3.48.632 4.674 1.488.308-.309.73-.491 1.207-.491.968 0 1.754.786 1.754 1.754 0 .716-.435 1.333-1.01 1.614a3.111 3.111 0 0 1 .042.52c0 2.694-3.13 4.87-7.004 4.87-3.874 0-7.004-2.176-7.004-4.87 0-.183.015-.366.043-.534A1.748 1.748 0 0 1 4.028 12c0-.968.786-1.754 1.754-1.754.463 0 .898.196 1.207.49 1.207-.883 2.878-1.43 4.744-1.487l.885-4.182a.342.342 0 0 1 .14-.197.35.35 0 0 1 .238-.042l2.906.617a1.214 1.214 0 0 1 1.108-.701zM9.25 12C8.561 12 8 12.562 8 13.25c0 .687.561 1.248 1.25 1.248.687 0 1.248-.561 1.248-1.249 0-.688-.561-1.249-1.249-1.249zm5.5 0c-.687 0-1.248.561-1.248 1.25 0 .687.561 1.248 1.249 1.248.688 0 1.249-.561 1.249-1.249 0-.687-.562-1.249-1.25-1.249zm-5.466 3.99a.327.327 0 0 0-.231.094.33.33 0 0 0 0 .463c.842.842 2.484.913 2.961.913.477 0 2.105-.056 2.961-.913a.361.361 0 0 0 .029-.463.33.33 0 0 0-.464 0c-.547.533-1.684.73-2.512.73-.828 0-1.979-.196-2.512-.73a.326.326 0 0 0-.232-.095z"})}),X9=()=>{const e=new Date().getFullYear(),t={product:[{label:"Features",href:"#features"},{label:"Demo",href:"#demo"},{label:"Getting Started",href:"#getting-started"}],resources:[{label:"Documentation",href:"https://docs.donetick.com/"},{label:"API Reference",href:"https://docs.donetick.com/advance-settings/api"},{label:"Discussions",href:"https://github.com/donetick/donetick/discussions"},{label:"Roadmap",href:"https://github.com/orgs/donetick/projects/3"}],downloads:[{label:"GitHub Release",href:"https://github.com/donetick/donetick/releases"},{label:"Docker Hub",href:"https://hub.docker.com/r/donetick/donetick"},{label:"Home Assistant",href:"https://github.com/donetick/hassio-addons"},{label:"Source Code",href:"https://github.com/donetick/donetick"}],legal:[{label:"Privacy Policy",href:"/privacy"},{label:"Terms of Service",href:"/terms"},{label:"License",href:"https://github.com/donetick/donetick/blob/main/LICENSE"},{label:"Changelog",href:"https://github.com/donetick/donetick/releases"}]},r=[{icon:c.jsx(lp,{}),href:"https://github.com/donetick/donetick",label:"GitHub"},{icon:c.jsx(J9,{}),href:"https://discord.gg/6hSH6F33q7",label:"Discord"},{icon:c.jsx(q9,{}),href:"https://reddit.com/r/donetick",label:"Reddit"},{icon:c.jsx(eA,{}),href:"mailto:[email protected]",label:"Email"}];return c.jsx(ce,{component:"footer",sx:{background:"background.surface",borderTop:"1px solid",borderColor:"divider",py:{xs:6,md:8},mt:8},children:c.jsxs(ml,{maxWidth:"xl",children:[c.jsxs(bt,{container:!0,spacing:4,mb:6,children:[c.jsx(bt,{item:!0,xs:12,md:4,children:c.jsxs(ce,{sx:{mb:4},children:[c.jsxs(ce,{sx:{display:"flex",alignItems:"center",mb:3},children:[c.jsx("img",{src:Bb,alt:"Donetick Logo",width:"48px",height:"48px"}),c.jsxs(ue,{level:"h4",sx:{ml:2,fontWeight:700,fontSize:28,color:"text.primary"},children:["Done",c.jsx("span",{style:{color:"#06b6d4"},children:"tick"})]})]}),c.jsx(ue,{level:"body-md",sx:{color:"text.secondary",lineHeight:1.6,mb:4,maxWidth:300},children:"Open-source task management made simple. Organize your life, collaborate with your team, and stay on top of everything that matters."}),c.jsx(ce,{sx:{display:"flex",gap:1},children:r.map((n,o)=>c.jsx(dr,{component:"a",href:n.href,target:"_blank",rel:"noopener noreferrer",variant:"soft",sx:{color:"text.secondary",background:"background.level1","&:hover":{color:"primary.500",background:"primary.50",transform:"translateY(-2px)"},transition:"all 0.3s ease"},"aria-label":n.label,children:n.icon},o))})]})}),c.jsx(bt,{item:!0,xs:12,md:8,children:c.jsxs(bt,{container:!0,spacing:4,children:[c.jsxs(bt,{item:!0,xs:6,sm:3,children:[c.jsx(ue,{level:"title-md",sx:{color:"text.primary",fontWeight:600,mb:3},children:"Product"}),c.jsx(ce,{sx:{display:"flex",flexDirection:"column",gap:2},children:t.product.map((n,o)=>c.jsx(Pl,{href:n.href,sx:{color:"text.secondary",textDecoration:"none",fontSize:14,"&:hover":{color:"primary.500"},transition:"color 0.3s ease"},children:n.label},o))})]}),c.jsxs(bt,{item:!0,xs:6,sm:3,children:[c.jsx(ue,{level:"title-md",sx:{color:"text.primary",fontWeight:600,mb:3},children:"Resources"}),c.jsx(ce,{sx:{display:"flex",flexDirection:"column",gap:2},children:t.resources.map((n,o)=>c.jsx(Pl,{href:n.href,target:"_blank",rel:"noopener noreferrer",sx:{color:"text.secondary",textDecoration:"none",fontSize:14,"&:hover":{color:"primary.500"},transition:"color 0.3s ease"},children:n.label},o))})]}),c.jsxs(bt,{item:!0,xs:6,sm:3,children:[c.jsx(ue,{level:"title-md",sx:{color:"text.primary",fontWeight:600,mb:3},children:"Downloads"}),c.jsx(ce,{sx:{display:"flex",flexDirection:"column",gap:2},children:t.downloads.map((n,o)=>c.jsx(Pl,{href:n.href,target:"_blank",rel:"noopener noreferrer",sx:{color:"text.secondary",textDecoration:"none",fontSize:14,"&:hover":{color:"primary.500"},transition:"color 0.3s ease"},children:n.label},o))})]}),c.jsxs(bt,{item:!0,xs:6,sm:3,children:[c.jsx(ue,{level:"title-md",sx:{color:"text.primary",fontWeight:600,mb:3},children:"Legal"}),c.jsx(ce,{sx:{display:"flex",flexDirection:"column",gap:2},children:t.legal.map((n,o)=>c.jsx(Pl,{href:n.href,target:n.href.startsWith("http")?"_blank":"_self",rel:n.href.startsWith("http")?"noopener noreferrer":void 0,sx:{color:"text.secondary",textDecoration:"none",fontSize:14,"&:hover":{color:"primary.500"},transition:"color 0.3s ease"},children:n.label},o))})]})]})})]}),c.jsx(la,{sx:{borderColor:"divider",mb:4}}),c.jsxs(ce,{sx:{display:"flex",flexDirection:{xs:"column",md:"row"},justifyContent:"space-between",alignItems:"center",gap:2},children:[c.jsxs(ue,{level:"body-sm",sx:{color:"text.secondary",display:"flex",alignItems:"center",gap:1},children:["© ",e," Donetick. All rights reserved."]}),c.jsx(ce,{sx:{display:"flex",alignItems:"center",gap:3},children:c.jsxs(ue,{level:"body-sm",sx:{color:"text.secondary"},children:["Version ",K9]})})]})]})})};
173function Q9({button:e,description:t,icon:r,index:n,title:o}){return c.jsxs(kr,{"data-aos":"fade-up","data-aos-delay":n*100,"data-aos-duration":"800",variant:"outlined",sx:{p:{xs:3,sm:4,md:4},height:"100%",borderRadius:{xs:16,md:20},border:"1px solid",borderColor:"divider",background:"background.surface",transition:"all 0.4s cubic-bezier(0.4, 0, 0.2, 1)",position:"relative",overflow:"hidden",cursor:"pointer",minHeight:{xs:300,sm:320},display:"flex",flexDirection:"column",justifyContent:"space-between","&::before":{content:'""',position:"absolute",top:0,left:0,right:0,height:"4px",background:"linear-gradient(90deg, var(--joy-palette-primary-400) 0%, var(--joy-palette-primary-600) 100%)",transform:"scaleX(0)",transformOrigin:"left",transition:"transform 0.4s ease"},"&::after":{content:'""',position:"absolute",top:0,left:0,right:0,bottom:0,background:"linear-gradient(135deg, rgba(6, 182, 212, 0.02) 0%, rgba(8, 145, 178, 0.04) 100%)",opacity:0,transition:"opacity 0.4s ease",pointerEvents:"none"},"@media (max-width: 600px)":{"&:active":{transform:"scale(0.98)"}}},children:[c.jsxs(ce,{sx:{display:"flex",alignItems:"center",flexDirection:"column",textAlign:"center",mb:3},children:[c.jsx(ce,{className:"option-icon",sx:{display:"inline-flex",alignItems:"center",justifyContent:"center",width:{xs:60,sm:80},height:{xs:60,sm:80},borderRadius:{xs:16,sm:20},background:"linear-gradient(135deg, var(--joy-palette-primary-50) 0%, var(--joy-palette-primary-100) 100%)",color:"primary.500",mb:3,transition:"all 0.4s cubic-bezier(0.4, 0, 0.2, 1)","& svg":{fontSize:{xs:32,sm:40}}},children:r}),c.jsx(ue,{className:"option-title",level:"title-lg",sx:{fontSize:{xs:20,sm:24},fontWeight:700,color:"text.primary",lineHeight:1.3,transition:"color 0.3s ease"},children:o})]}),c.jsx(ue,{level:"body-md",sx:{color:"text.secondary",lineHeight:1.6,fontSize:{xs:14,sm:15},textAlign:"center",mb:3,flex:1},children:t}),c.jsx(ce,{sx:{mt:"auto"},children:e})]})}const Z9=()=>{const e=Xo(),t=[{title:"Donetick Web",icon:c.jsx(Uj,{}),description:"The easiest way! Just create account and start using Donetick",button:c.jsx(wr,{size:"lg",fullWidth:!0,startDecorator:c.jsx(hb,{}),onClick:()=>{e("/chores")},children:"Start Now!"})},{title:"Selfhosted",icon:c.jsx(FA,{}),description:"Download the binary and manage your own Donetick instance",button:c.jsx(wr,{size:"lg",fullWidth:!0,startDecorator:c.jsx(lp,{}),onClick:()=>{window.open("https://github.com/donetick/donetick/releases","_blank")},children:"Github Releases"})},{title:"Hassio Addon",icon:c.jsx(Oj,{}),description:"Have Home Assistant? Install Donetick as a Home Assistant Addon with single click",button:c.jsx(wr,{size:"lg",fullWidth:!0,startDecorator:c.jsx(cA,{}),onClick:()=>{window.open("https://my.home-assistant.io/redirect/supervisor_add_addon_repository/?repository_url=https%3A%2F%2Fgithub.com%2Fdonetick%2Fhassio-addons")},children:"Add Addon"})}];return c.jsxs(ml,{maxWidth:"xl",sx:{py:{xs:6,sm:8,md:12}},children:[c.jsxs(ce,{textAlign:"center",mb:{xs:6,md:8},"data-aos":"fade-up",children:[c.jsx(ue,{level:"h2",sx:{fontSize:{xs:28,sm:36,md:42,lg:48},fontWeight:700,mb:{xs:2,md:3},color:"text.primary",lineHeight:{xs:1.2,md:1.1},background:"linear-gradient(135deg, var(--joy-palette-primary-500) 0%, var(--joy-palette-primary-600) 100%)",backgroundClip:"text",WebkitBackgroundClip:"text",WebkitTextFillColor:"transparent",textAlign:"center"},children:"Get Started Today"}),c.jsx(ue,{level:"body-lg",sx:{fontSize:{xs:16,sm:17,md:18,lg:19},color:"text.secondary",maxWidth:{xs:"100%",sm:600,md:700},mx:"auto",lineHeight:1.6,px:{xs:1,sm:0}},children:"Ready to transform your household management? Start with our mobile app for the best experience, or choose from our other convenient options."})]}),c.jsx(ce,{textAlign:"center",mb:{xs:8,sm:10,md:12},"data-aos":"fade-up","data-aos-duration":"800",children:c.jsxs(ce,{sx:{p:{xs:5,sm:6,md:7},borderRadius:{xs:20,md:24},background:"linear-gradient(135deg, rgba(6, 182, 212, 0.08) 0%, rgba(8, 145, 178, 0.12) 100%)",border:"2px solid rgba(6, 182, 212, 0.2)",maxWidth:{xs:"100%",sm:650,md:700},mx:"auto",position:"relative",overflow:"hidden",boxShadow:"0 20px 40px rgba(0, 0, 0, 0.1)","&::before":{content:'""',position:"absolute",top:0,left:0,right:0,bottom:0,pointerEvents:"none"}},children:[c.jsx(ue,{level:"body-lg",sx:{color:"text.secondary",mb:{xs:4,sm:5},lineHeight:1.6,fontSize:{xs:16,sm:17},position:"relative",zIndex:1,px:{xs:0,sm:2},maxWidth:500,mx:"auto"},children:"Get the full Donetick experience with notifications, realtime updates, and seamless task management on the go"}),c.jsxs(ce,{sx:{display:"flex",flexDirection:{xs:"column",sm:"row"},gap:{xs:3,sm:4},justifyContent:"center",alignItems:"center",position:"relative",zIndex:1},children:[c.jsx(ce,{onClick:()=>{window.open("https://apps.apple.com/app/apple-store/id6742807441?pt=127258663&ct=website&mt=8","_blank")},sx:{cursor:"pointer",transition:"all 0.3s ease"},children:c.jsxs(ce,{sx:{display:"flex",alignItems:"center",background:"#000000",borderRadius:"12px",padding:"12px 24px",minWidth:{xs:200,sm:180},height:60,border:"1px solid #333",boxShadow:"0 4px 12px rgba(0, 0, 0, 0.15)"},children:[c.jsx(Lj,{sx:{color:"white",fontSize:40,mr:2}}),c.jsxs(ce,{children:[c.jsx(ue,{level:"body-xs",sx:{color:"white",fontSize:11,lineHeight:1,mb:.5,fontWeight:400},children:"Download on the"}),c.jsx(ue,{level:"title-md",sx:{color:"white",fontSize:18,lineHeight:1,fontWeight:600},children:"App Store"})]})]})}),c.jsx(ce,{onClick:()=>{window.open("https://play.google.com/store/apps/details?id=com.donetick.app","_blank")},sx:{cursor:"pointer",transition:"all 0.3s ease"},children:c.jsxs(ce,{sx:{display:"flex",alignItems:"center",background:"linear-gradient(135deg, #000000 0%, #1a1a1a 100%)",borderRadius:"12px",padding:"12px 24px",minWidth:{xs:200,sm:180},height:60,border:"1px solid #333",boxShadow:"0 4px 12px rgba(0, 0, 0, 0.15)"},children:[c.jsx(ce,{sx:{mr:2,display:"flex",alignItems:"center",justifyContent:"center",width:32,height:32},children:c.jsx(jj,{sx:{color:"white",fontSize:40}})}),c.jsxs(ce,{children:[c.jsx(ue,{level:"body-xs",sx:{color:"white",fontSize:11,lineHeight:1,mb:.5,fontWeight:400},children:"Download for"}),c.jsx(ue,{level:"title-md",sx:{color:"white",fontSize:18,lineHeight:1,fontWeight:600},children:"Android"})]})]})})]})]})}),c.jsxs(ce,{textAlign:"center",mb:{xs:4,md:6},"data-aos":"fade-up",children:[c.jsx(ue,{level:"h4",sx:{fontSize:{xs:20,sm:22,md:24},fontWeight:600,mb:{xs:1,md:1.5},color:"text.primary"},children:"Other Ways to Get Started"}),c.jsx(ue,{level:"body-md",sx:{color:"text.secondary",maxWidth:500,mx:"auto",fontSize:{xs:14,sm:15}},children:"Prefer a different setup? Choose from these alternatives"})]}),c.jsx(bt,{container:!0,spacing:{xs:3,sm:4,md:4},children:t.map((r,n)=>c.jsx(bt,{item:!0,xs:12,md:4,children:c.jsx(Q9,{icon:r.icon,title:r.title,de
173scription:r.description,button:r.button,index:n})},n))})]})},e7="/assets/screenshot-my-chore-DxJ0qrBK.png",t7="/assets/screenshot-my-chore-dark-Gxes-VFE.png";function r7(){const[e,t]=p.useState(window.innerWidth);return p.useEffect(()=>{const r=()=>t(window.innerWidth);return window.addEventListener("resize",r),()=>window.removeEventListener("resize",r)},[]),e}const n7=()=>{const e=Xo(),t=r7(),r=600,{mode:n,setMode:o}=aw(),a=["The smart task manager that keeps individuals and families organized with intelligent scheduling and fair task distribution."],[i,s]=Gl.useState(0);p.useEffect(()=>{},[]);const l=()=>c.jsxs(Jg,{sx:{textAlign:"center",display:"flex",flexDirection:"row",justifyContent:"center",alignItems:"center"},children:[c.jsx("img",{src:Bb,width:"100px"}),c.jsxs(ue,{level:"h1",fontSize:58,fontWeight:800,children:[c.jsx("span",{"data-aos-delay":50*1,"data-aos-anchor":"[data-aos-id-hero]","data-aos":"fade-up",children:"Done"}),c.jsx("span",{"data-aos-delay":100*3,"data-aos-anchor":"[data-aos-id-hero]","data-aos":"fade-up",style:{color:"#06b6d4"},children:"tick"})]})]}),u=()=>c.jsx(ue,{level:"h2",fontWeight:500,textAlign:"center",className:"opacity-70","data-aos-delay":100*5,"data-aos-anchor":"[data-aos-id-hero]","data-aos":"zoom-in",children:"Simplify Tasks & Chores, Together."}),d=()=>c.jsx(wr,{"data-aos-delay":100*2,"data-aos-anchor":"[data-aos-id-hero]","data-aos":"fade-up",variant:"solid",size:"lg",sx:{py:1.25,px:5,fontSize:20,mt:2,borderWidth:3,transition:"all 0.20s"},className:"hover:scale-105",onClick:()=>{window.location.hostname==="donetick.com"?window.location.href="https://app.donetick.com/chores":e("/chores")},children:"Get started"});return c.jsxs(Bl,{container:!0,spacing:16,sx:{py:12},children:[c.jsxs(Bl,{item:!0,xs:12,md:7,children:[c.jsx(l,{}),c.jsxs("div",{className:"flex flex-col gap-6",children:[c.jsx(u,{}),c.jsx(ue,{level:"title-lg",textAlign:"center",fontSize:28,color:"primary","data-aos-delay":100*1,"data-aos-anchor":"[data-aos-id-hero]","data-aos":"fade-up",children:`"${a[i%a.length]}"`}),c.jsxs(Jg,{className:"flex w-full justify-center",children:[c.jsx(d,{}),c.jsx(wr,{"data-aos-delay":100*2.5,"data-aos-anchor":"[data-aos-id-hero]","data-aos":"fade-up",variant:"soft",size:"lg",sx:{py:1.25,px:5,ml:2,fontSize:20,mt:2,borderWidth:3,transition:"all 0.20s"},className:"hover:scale-105",onClick:()=>{window.open("https://github.com/donetick/donetick","_blank")},startDecorator:c.jsx(lp,{}),children:"Github"})]})]})]}),t>r&&c.jsx(Bl,{item:!0,xs:12,md:5,children:c.jsx("div",{className:"flex justify-center",children:c.jsx("img",{src:n==="dark"?t7:e7,width:"100%",height:"auto",alt:"Hero img","data-aos-delay":100*2,"data-aos-anchor":"[data-aos-id-hero]","data-aos":"fade-left",style:{width:"100%",maxWidth:300},onMouseEnter:f=>{f.target.style.transform="rotate(0deg) scale(1.05)"},onMouseLeave:f=>{f.target.style.transform="rotate(5deg) scale(1)"}})})}),c.jsx(Bl,{item:!0,xs:12,sx:{display:"flex",justifyContent:"center",position:"absolute",top:-90,right:16},children:c.jsx(dr,{onClick:()=>{o(n==="dark"?"light":"dark")},sx:{backgroundColor:"rgba(255, 255, 255, 0.8)",borderRadius:"50%",boxShadow:"0px 4px 8px rgba(0, 0, 0, 0.1)",transition:"background-color 0.3s"},children:n==="dark"?c.jsx(fA,{sx:{color:"#333"}}):c.jsx(Jj,{sx:{color:"#333"}})})})]})},o7="/assets/ipad_dashbard_calendar-DyClinhg.png",a7=()=>c.jsxs(ml,{maxWidth:"xl",sx:{py:{xs:6,sm:8,md:12}},children:[c.jsxs(ce,{textAlign:"center",mb:{xs:6,md:8},"data-aos":"fade-up",children:[c.jsx(ue,{level:"h2",sx:{fontSize:{xs:28,sm:36,md:42,lg:48},fontWeight:700,mb:{xs:2,md:3},color:"text.primary",lineHeight:{xs:1.2,md:1.1},background:"linear-gradient(135deg, var(--joy-palette-primary-500) 0%, var(--joy-palette-primary-600) 100%)",backgroundClip:"text",WebkitBackgroundClip:"text",WebkitTextFillColor:"transparent",textAlign:"center"},children:"Perfect for Tablet Installations"}),c.jsx(ue,{level:"body-lg",sx:{fontSize:{xs:16,sm:17,md:18,lg:19},color:"text.secondary",maxWidth:{xs:"100%",sm:600,md:700},mx:"auto",lineHeight:1.6,px:{xs:1,sm:0}},children:"Mount Donetick on your tablet for easy family task management. Perfect for kitchens, office
173s, or any shared space."})]}),c.jsx(ce,{"data-aos":"fade-up","data-aos-duration":"1000",sx:{display:"flex",justifyContent:"center",alignItems:"center",mb:{xs:4,md:6}},children:c.jsx("img",{src:o7,alt:"DoneTick dashboard with calendar view showing task management interface",style:{maxWidth:"90%",height:"auto",borderRadius:"24px",border:"12px solid #2a2a2a",boxShadow:"0 25px 50px rgba(0, 0, 0, 0.25), 0 10px 20px rgba(0, 0, 0, 0.15)"}})}),c.jsxs(ce,{"data-aos":"fade-up","data-aos-delay":"200",sx:{display:"grid",gridTemplateColumns:{xs:"1fr",md:"repeat(3, 1fr)"},gap:{xs:3,md:4},mt:{xs:6,md:8}},children:[c.jsxs(ce,{sx:{textAlign:"center",p:{xs:3,md:4},borderRadius:"16px",background:"background.surface",border:"1px solid",borderColor:"divider"},children:[c.jsx(ue,{level:"title-lg",sx:{mb:2,color:"text.primary",fontWeight:600},children:"Kitchen Ready"}),c.jsx(ue,{level:"body-md",sx:{color:"text.secondary",lineHeight:1.6},children:"Perfect for family chore tracking. Mount it in your kitchen for everyone to see and update tasks easily."})]}),c.jsxs(ce,{sx:{textAlign:"center",p:{xs:3,md:4},borderRadius:"16px",background:"background.surface",border:"1px solid",borderColor:"divider"},children:[c.jsx(ue,{level:"title-lg",sx:{mb:2,color:"text.primary",fontWeight:600},children:"Office Dashboard"}),c.jsx(ue,{level:"body-md",sx:{color:"text.secondary",lineHeight:1.6},children:"Transform any workspace with a dedicated task management display. Great for team collaboration and productivity."})]}),c.jsxs(ce,{sx:{textAlign:"center",p:{xs:3,md:4},borderRadius:"16px",background:"background.surface",border:"1px solid",borderColor:"divider"},children:[c.jsx(ue,{level:"title-lg",sx:{mb:2,color:"text.primary",fontWeight:600},children:"Always Accessible"}),c.jsx(ue,{level:"body-md",sx:{color:"text.secondary",lineHeight:1.6},children:"No need to reach for phones. With a mounted tablet, your task management is always visible and touchable."})]})]})]}),E8=()=>{const e=Xo();return p.useEffect(()=>{window.location.host==="app.donetick.com"&&e("/chores"),u6.init({once:!1})},[]),c.jsxs(ml,{className:"flex h-full items-center justify-center",children:[c.jsx(n7,{}),c.jsxs(bt,{overflow:"hidden",container:!0,spacing:4,sx:{mt:5,mb:5,alignItems:"center"},children:[c.jsx(g9,{}),c.jsx(p6,{}),c.jsx(Y9,{}),c.jsx(j9,{}),c.jsx(RL,{})]}),c.jsx(G9,{}),c.jsx(a7,{}),c.jsx(Z9,{}),c.jsx(ce,{sx:{display:"flex",justifyContent:"center",alignItems:"center",mt:5,mb:5}}),c.jsx(f6,{}),c.jsx(X9,{})]})},P8=()=>c.jsxs("div",{style:{maxWidth:"800px",margin:"0 auto",padding:"20px",lineHeight:"1.6"},children:[c.jsx("h1",{children:"Privacy Policy"}),c.jsx("p",{children:c.jsx("em",{children:"How Donetick handles your data"})}),c.jsx("p",{children:c.jsx("strong",{children:"Last updated August 12, 2026"})}),c.jsx("p",{children:'Donetick is made by Favoro LLC ("we", "us", "our"). This policy covers the Donetick Cloud Service and our website. If you run Donetick yourself, your data lives on your own server and you control it. Only the analytics section below applies, and only if you opt in.'}),c.jsx("h2",{children:"1. What we collect"}),c.jsxs("p",{children:["⢠",c.jsx("strong",{children:"Account info:"})," your email, your name, and the circle (household or group) you belong to."]}),c.jsxs("p",{children:["⢠",c.jsx("strong",{children:"Your content:"})," the tasks, chores, labels, notes, and schedules you create."]}),c.jsxs("p",{children:["⢠",c.jsx("strong",{children:"Usage data:"})," basic, privacy-respecting information about how the app is used so we can keep it working and improve it."]}),c.jsxs("p",{children:["⢠",c.jsx("strong",{children:"Billing:"})," if you upgrade, payment is handled by Stripe. We never see or store your full card details."]}),c.jsx("h2",{children:"2. How we use it"}),c.jsx("p",{children:"To run the core product: store and sync your tasks across your devices, remind you when things are due, share chores with your circle, and provide support. We use your content to operate the Service for you, not to build advertising profiles, and never to train AI models."}),c.jsx("h2",{children:"3. Analytics and error reports"}),c.jsxs("p",{children:["We use"," ",c.jsx("a",{href:"https://posthog.com",target:"_blank",rel:"noreferrer",children:"PostHog"})," ","to see which features are used and to catch crashes. Every event is checked against a fixed list of allowed properties before it is sent, so only this can leave your device: feature usage (for example, that a task was created and whether it had a due date), technical details about your installation (platform, OS version, app version, Cloud or self-hosted), whether your account is on a paid plan and how many people are in y
173our circle, and, for errors, status codes and stack traces."]}),c.jsx("p",{children:"We never send the content of your tasks, chores, notes, search queries, circle names, or label names. We don't use session recording or automatic click capture."}),c.jsxs("p",{children:["For our public website we also use"," ",c.jsx("a",{href:"https://plausible.io",target:"_blank",rel:"noreferrer",children:"Plausible"}),", a privacy-friendly analytics tool that counts page views without cookies, without cross-site tracking, and without building a profile of you."]}),c.jsx("h2",{children:"4. Your analytics choices"}),c.jsxs("p",{children:["Product analytics and crash reporting are two separate switches under"," ",c.jsx("strong",{children:"Settings â Privacy & Analytics"}),". On the Cloud Service they're on by default and you can turn them off at any time. On self-hosted installations they're off by default and require you to opt in. Turning one off stops new data of that type immediately."]}),c.jsx("h2",{children:"5. Where it lives"}),c.jsx("p",{children:"Cloud Service data is stored on our hosted infrastructure, scoped so that only you and the circle you share with can access it. Files you upload, like task photos and attachments, are kept in secure cloud object storage provided by Cloudflare, and are served over private, expiring links rather than public URLs. We use reasonable safeguards to protect all of it, though no system on the internet is perfectly secure."}),c.jsx("h2",{children:"6. Sharing"}),c.jsx("p",{children:"We don't sell your data. We share it only with the service providers that make Donetick work (Cloudflare for hosting and file storage, PostHog and Plausible for analytics, Stripe for payments), or when required by law."}),c.jsx("h2",{children:"7. Your choices"}),c.jsxs("p",{children:["You can update your profile and permanently delete your account at any time from ",c.jsx("strong",{children:"Settings"}),". Deleting your account removes your content from our systems. You can also opt out of promotional emails using the unsubscribe link in any of them."]}),c.jsx("h2",{children:"8. Retention"}),c.jsx("p",{children:"We keep your data while your account is active. When you delete your account, we delete your content (backups age out on a rolling basis)."}),c.jsx("h2",{children:"9. Children"}),c.jsx("p",{children:"Donetick isn't directed to children under 13, and we don't knowingly collect their data. Child accounts created by a parent inside a circle are managed by that parent."}),c.jsx("h2",{children:"10. Changes"}),c.jsx("p",{children:"We'll post any updates here with a new date, and flag material changes with a one-time notice inside the app."}),c.jsx("h2",{children:"11. Contact"}),c.jsxs("p",{children:["Privacy questions or requests? Email"," ",c.jsx("a",{href:"mailto:[email protected]",children:"[email protected]"}),"."]}),c.jsx("hr",{}),c.jsx("p",{children:"Favoro LLC"})]}),R8=()=>c.jsxs("div",{style:{maxWidth:"800px",margin:"0 auto",padding:"20px",lineHeight:"1.6"},children:[c.jsx("h1",{children:"Terms of Service"}),c.jsx("p",{children:c.jsx("strong",{children:"Last updated August 12, 2026"})}),c.jsx("h2",{children:"1. Agreement"}),c.jsx("p",{children:`By creating an account or using Donetick Cloud at donetick.com (the "Service"), you agree to these Terms. If you don't agree, don't use the Service. Donetick is made by Favoro LLC ("we", "us", "our").`}),c.jsx("h2",{children:"2. Cloud vs. self-hosted"}),c.jsx("p",{children:"Donetick comes in two flavors, and they're governed differently."}),c.jsxs("p",{children:[c.jsx("strong",{children:"Donetick Cloud"})," is the hosted service we run at donetick.com. These Terms cover it."]}),c.jsxs("p",{children:[c.jsx("strong",{children:"Self-hosted Donetick"})," is the open-source software you run on your own server. It's licensed under the GNU Affero General Public License v3 (AGPLv3), and that license, not these Terms, governs your rights to use, modify, and share it. Nothing here is meant to restrict anything the AGPLv3 grants you."]}),c.jsx("p",{children:"If you run Donetick yourself, hosting, security, backups, updates, and data-protection obligations are yours, not ours. We don't provide support guarantees for self-hosted installs unless we've agreed to that separately in writing."}
173),c.jsx("h2",{children:"3. What Donetick does"}),c.jsx("p",{children:"Donetick helps you and the people in your circle track tasks, chores, and recurring schedules. It's a productivity tool, not professional, legal, financial, or medical advice."}),c.jsx("h2",{children:"4. Your account"}),c.jsx("p",{children:"You're responsible for your account and for keeping your login secure. You must be at least 13 years old (or the age of digital consent where you live) to use the Service. Provide accurate information, and tell us promptly if you think someone else has gotten into your account."}),c.jsx("h2",{children:"5. Acceptable use"}),c.jsx("p",{children:"Don't use Donetick to break the law, infringe anyone's rights, upload malware, harass other users, send spam, gain unauthorized access to our systems or anyone's account, circumvent usage limits, or overload the Service."}),c.jsx("p",{children:"Don't use Donetick Cloud to run a competing hosted service without our written permission. This applies only to our Cloud Service and takes nothing away from your AGPLv3 rights to the self-hosted software."}),c.jsx("h2",{children:"6. Your content"}),c.jsx("p",{children:"You own everything you put into Donetick: your tasks, chores, labels, comments, and files. You grant us a limited license to host, store, process, and transmit it solely to operate, secure, troubleshoot, and improve the Service for you. We don't sell your content, and we don't use it to train AI models."}),c.jsx("p",{children:"You're responsible for having the right to upload what you upload, and for managing who you share circles and content with. We may remove content when reasonably necessary to enforce these Terms, comply with the law, or address a security issue, and we'll give you notice first where that's practical."}),c.jsxs("p",{children:["How we handle personal information is covered in our"," ",c.jsx("a",{href:"/privacy",children:"Privacy Policy"}),", including what our analytics and error reporting do and don't collect, and how to turn them off."]}),c.jsx("h2",{children:"7. Availability"}),c.jsx("p",{children:"We aim for roughly 99% monthly availability on the Cloud Service, but that's a goal, not a service-level agreement, and there are no downtime credits. We may pause parts of the Service for maintenance, security, or emergencies, and we'll announce planned work ahead of time when we reasonably can. Storage limits, API rate limits, and fair-use limits may apply."}),c.jsx("h2",{children:"8. Plans and billing"}),c.jsx("p",{children:"Donetick offers a free plan and paid plans billed monthly or annually in advance through Stripe. Paid plans renew automatically until you cancel."}),c.jsx("p",{children:"You can cancel any time from your settings. Cancelling stops future renewals, and you keep paid features through the end of the current billing period. If a payment fails we may retry it or limit paid features until it goes through. We'll give you reasonable notice before a price change applies to your subscription. Refunds are handled case-by-case at our discretion, except where the law requires one. Nothing here limits your consumer-protection rights."}),c.jsx("h2",{children:"9. Your data and export"}),c.jsx("p",{children:"Where export tools are available, you can export your content; formats and availability may change over time. If we ever discontinue the Cloud Service, we'll give reasonable advance notice and, where possible, a chance to export first."}),c.jsx("h2",{children:"10. Third-party integrations"}),c.jsx("p",{children:"Donetick connects to outside services like messaging platforms, authentication providers, and webhooks. Those are governed by their own terms and privacy policies, and we're not responsible for services we don't control. Make sure you're authorized to connect whatever you connect."}),c.jsx("h2",{children:"11. Our brand"}),c.jsx("p",{children:"You own your content; we own the Donetick name, logo, branding, and the proprietary parts of the Cloud Service. The AGPLv3 covers the software, not our trademarks, so please don't use our name or logo in a way that suggests we end
173orse or sponsor you."}),c.jsx("h2",{children:"12. Termination"}),c.jsx("p",{children:"You can stop using Donetick and delete your account at any time from Settings. We may suspend or end access if you violate these Terms, or where we need to address abuse, fraud, a security incident, a legal obligation, or unpaid fees. Where it's practical, we'll give you notice and a chance to fix the problem first. After termination we delete or anonymize your content per our retention practices, though limited records may stick around for legal, security, or accounting reasons."}),c.jsx("h2",{children:"13. Security reports"}),c.jsxs("p",{children:["Found a vulnerability? Please email"," ",c.jsx("a",{href:"mailto:[email protected]",children:"[email protected]"})," and give us a reasonable chance to fix it before disclosing it publicly."]}),c.jsx("h2",{children:"14. Disclaimers and liability"}),c.jsx("p",{children:c.jsx("strong",{children:'THE SERVICE IS PROVIDED "AS IS" AND "AS AVAILABLE," WITHOUT WARRANTIES OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, TITLE, AND NON-INFRINGEMENT. WE DO NOT WARRANT THAT THE SERVICE WILL BE UNINTERRUPTED, ERROR-FREE, OR SECURE, OR THAT DATA WILL NEVER BE LOST OR CORRUPTED.'})}),c.jsx("p",{children:c.jsx("strong",{children:"TO THE MAXIMUM EXTENT PERMITTED BY LAW, FAVORO LLC IS NOT LIABLE FOR INDIRECT, INCIDENTAL, SPECIAL, CONSEQUENTIAL, EXEMPLARY, OR PUNITIVE DAMAGES, OR FOR LOST PROFITS, REVENUE, BUSINESS, GOODWILL, OR DATA. OUR TOTAL LIABILITY IS LIMITED TO THE GREATER OF WHAT YOU PAID US IN THE 12 MONTHS BEFORE THE CLAIM, OR $100."})}),c.jsx("p",{children:"Self-hosted installs are covered by the AGPLv3's warranty disclaimer. We're not responsible for problems arising from your own infrastructure, configuration, modifications, or hosting provider. Nothing in these Terms excludes liability that can't legally be excluded."}),c.jsx("h2",{children:"15. Indemnification"}),c.jsx("p",{children:"To the extent the law allows, you agree to cover Favoro LLC against third-party claims arising from your violation of these Terms, your unlawful use of the Service, your infringement of someone else's rights, or content you submitted. We'll give you reasonable notice of any such claim and cooperate in the defense."}),c.jsx("h2",{children:"16. Disputes and governing law"}),c.jsxs("p",{children:["Before filing anything, please email"," ",c.jsx("a",{href:"mailto:[email protected]",children:"[email protected]"})," and give us a fair chance to sort it out. These Terms are governed by the laws of the State of Delaware, USA, without regard to conflict-of-laws rules, and disputes go to the state or federal courts in Delaware. Either of us can still bring an eligible claim in small claims court, and none of this waives rights that can't legally be waived."]}),c.jsx("h2",{children:"17. Changes"}),c.jsx("p",{children:"We may update these Terms. We'll post the new version with an updated date, and for material changes we'll give reasonable advance notice by email or in-app notice (and get your consent where the law requires it). Continuing to use the Service after non-material changes means you accept them. If you don't agree to a material change, cancel before it takes effect."}),c.jsx("h2",{children:"18. The fine print"}),c.jsx("p",{children:"These Terms plus our Privacy Policy are the whole agreement between us. If one provision turns out to be unenforceable, it gets trimmed to the minimum necessary and the rest stands. Not enforcing something once doesn't waive it later. You can't transfer these Terms without our consent; we may transfer them in a merger, acquisition, or sale of assets. These Terms don't create a partnership, employment, or agency relationship. Neither of us is liable for delays caused by things outside our reasonable control. Provisions that should survive termination do, including those on content, intellectual property, disclaimers, liability, indemnification, and disputes."}),c.jsx("h2",{children:"19. Contact"}),c.jsxs("p",{children:["Questions about these Terms? Email"," ",c.jsx("a",{href:"mailto:[email protected]",children:"[email protected]"}),"."]}),c.jsx("hr",{}),c.jsx("p",{children:"Favoro LLC"})]});
173export{it as $,Go as A,It as B,_r as C,zd as D,ka as E,ba as F,kv as G,ch as H,w7 as I,lh as J,Nt as K,k7 as L,Cr as M,Sv as N,$a as O,P8 as P,m7 as Q,x7 as R,zr as S,l6 as T,_v as U,wv as V,vu as W,un as X,HC as Y,ct as Z,we as _,p7 as a,gb as a$,ut as a0,he as a1,ae as a2,Q as a3,Yk as a4,wu as a5,ku as a6,Wv as a7,Hi as a8,ja as a9,Ci as aA,X_ as aB,Uv as aC,AP as aD,Am as aE,h7 as aF,f7 as aG,JP as aH,ie as aI,il as aJ,tb as aK,fb as aL,v6 as aM,bu as aN,$s as aO,Wr as aP,bk as aQ,pv as aR,sn as aS,Jn as aT,eh as aU,Gi as aV,Xo as aW,nP as aX,ce as aY,C7 as aZ,YA as a_,Bi as aa,Sm as ab,c7 as ac,d5 as ad,$4 as ae,Ev as af,Ew as ag,L4 as ah,z4 as ai,hl as aj,pl as ak,xo as al,d7 as am,Wf as an,Qc as ao,fl as ap,zv as aq,D4 as ar,l4 as as,Vv as at,Lv as au,u7 as av,B4 as aw,bh as ax,_u as ay,vh as az,E8 as b,Y7 as b$,ZA as b0,Mj as b1,ue as b2,mr as b3,aL as b4,Un as b5,Tr as b6,Ms as b7,rL as b8,hP as b9,Ru as bA,El as bB,yb as bC,LA as bD,Aj as bE,FA as bF,CA as bG,Yj as bH,k8 as bI,So as bJ,Rt as bK,$7 as bL,ks as bM,Pl as bN,lp as bO,Di as bP,ss as bQ,Xe as bR,_f as bS,ML as bT,Gr as bU,H7 as bV,F7 as bW,Nz as bX,az as bY,iz as bZ,tz as b_,wr as ba,qu as bb,pb as bc,la as bd,kr as be,ty as bf,Kr as bg,gz as bh,Tb as bi,DT as bj,d8 as bk,$l as bl,Wl as bm,A9 as bn,mE as bo,ra as bp,ta as bq,aa as br,MA as bs,q as bt,Lr as bu,Ui as bv,Tz as bw,O7 as bx,dr as by,Sd as bz,b7 as c,Kz as c$,V7 as c0,K7 as c1,U7 as c2,rz as c3,ez as c4,Yg as c5,T7 as c6,xm as c7,Vj as c8,S7 as c9,Wu as cA,fo as cB,cp as cC,Zj as cD,qj as cE,G7 as cF,Rz as cG,Rs as cH,Iz as cI,Pz as cJ,g7 as cK,u9 as cL,rM as cM,yz as cN,ec as cO,Rf as cP,lA as cQ,zM as cR,Cb as cS,Zz as cT,Xz as cU,$A as cV,V9 as cW,ry as cX,$9 as cY,qz as cZ,iT as c_,Bb as ca,K9 as cb,a9 as cc,i9 as cd,g_ as ce,JL as cf,Ma as cg,xg as ch,gp as ci,s9 as cj,D7 as ck,y7 as cl,S8 as cm,Mc as cn,Ri as co,Nb as cp,Ca as cq,w8 as cr,z7 as cs,vy as ct,B7 as cu,W7 as cv,oz as cw,Hz as cx,vp as cy,ml as cz,R8 as d,QA as d$,Jz as d0,vz as d1,lz as d2,Bz as d3,R7 as d4,I7 as d5,Qu as d6,Qi as d7,h8 as d8,Lb as d9,Az as dA,Lz as dB,Mz as dC,f8 as dD,LM as dE,t8 as dF,mz as dG,NM as dH,O3 as dI,pz as dJ,Wz as dK,zz as dL,A7 as dM,Tg as dN,nM as dO,$z as dP,Ef as dQ,OL as dR,$L as dS,M7 as dT,Oz as dU,Uz as dV,Vz as dW,Yz as dX,Gz as dY,VA as dZ,qA as d_,o8 as da,r8 as db,n8 as dc,uz as dd,Kj as de,fz as df,sz as dg,hz as dh,dz as di,cz as dj,Gn as dk,Lj as dl,jj as dm,L7 as dn,qL as dp,oM as dq,Ez as dr,_z as ds,kz as dt,iA as du,tA as dv,Bj as dw,Dr as dx,Or as dy,jz as dz,Kb as e,Kg as e$,vA as e0,fA as e1,Qz as e2,yA as e3,SA as e4,_A as e5,wd as e6,bb as e7,DL as e8,p8 as e9,m9 as eA,EA as eB,N7 as eC,kA as eD,yt as eE,i8 as eF,s8 as eG,l8 as eH,c8 as eI,u8 as eJ,_7 as eK,MM as eL,x8 as eM,C8 as eN,Qj as eO,y8 as eP,v8 as eQ,TA as eR,g8 as eS,vM as eT,Ij as eU,KA as eV,OA as eW,aA as eX,$j as eY,PL as eZ,v7 as e_,X7 as ea,wb as eb,bt as ec,m8 as ed,yM as ee,h9 as ef,GA as eg,BA as eh,xb as ei,vb as ej,HA as ek,nz as el,J7 as em,q7 as en,Z7 as eo,Q7 as ep,K_ as eq,mb as er,P7 as es,uM as et,dM as eu,p9 as ev,UA as ew,XA as ex,IA as ey,fM as ez,qb as f,Dz as f0,AM as f1,a8 as f2,c9 as f3,l9 as f4,wz as f5,iw as f6,Cz as f7,Sz as f8,bz as f9,xz as fa,E7 as fb,Fz as fc,FM as fd,HM as fe,kh as ff,j7 as fg,e8 as fh,M9 as fi,_8 as fj,up as fk,kb as fl,b8 as fm,Xb as g,Ni as h,wa as i,C as j,Bt as k,Zf as l,cn as m,K0 as n,vr as o,l7 as p,ot as q,Zc as r,iv as s,Fi as t,aw as u,Mi as v,x0 as w,al as x,bw as y,Cv as z};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.