@home-cinema/app 0.0.2 → 0.0.6-beta.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,682 @@
1
+ function Ow(e,t){for(var a=0;a<t.length;a++){const i=t[a];if(typeof i!="string"&&!Array.isArray(i)){for(const l in i)if(l!=="default"&&!(l in e)){const s=Object.getOwnPropertyDescriptor(i,l);s&&Object.defineProperty(e,l,s.get?s:{enumerable:!0,get:()=>i[l]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const l of document.querySelectorAll('link[rel="modulepreload"]'))i(l);new MutationObserver(l=>{for(const s of l)if(s.type==="childList")for(const u of s.addedNodes)u.tagName==="LINK"&&u.rel==="modulepreload"&&i(u)}).observe(document,{childList:!0,subtree:!0});function a(l){const s={};return l.integrity&&(s.integrity=l.integrity),l.referrerPolicy&&(s.referrerPolicy=l.referrerPolicy),l.crossOrigin==="use-credentials"?s.credentials="include":l.crossOrigin==="anonymous"?s.credentials="omit":s.credentials="same-origin",s}function i(l){if(l.ep)return;l.ep=!0;const s=a(l);fetch(l.href,s)}})();function Zx(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Sh={exports:{}},ps={};var lb;function _w(){if(lb)return ps;lb=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.fragment");function a(i,l,s){var u=null;if(s!==void 0&&(u=""+s),l.key!==void 0&&(u=""+l.key),"key"in l){s={};for(var f in l)f!=="key"&&(s[f]=l[f])}else s=l;return l=s.ref,{$$typeof:e,type:i,key:u,ref:l!==void 0?l:null,props:s}}return ps.Fragment=t,ps.jsx=a,ps.jsxs=a,ps}var sb;function jw(){return sb||(sb=1,Sh.exports=_w()),Sh.exports}var y=jw(),Ch={exports:{}},Te={};var cb;function kw(){if(cb)return Te;cb=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.portal"),a=Symbol.for("react.fragment"),i=Symbol.for("react.strict_mode"),l=Symbol.for("react.profiler"),s=Symbol.for("react.consumer"),u=Symbol.for("react.context"),f=Symbol.for("react.forward_ref"),d=Symbol.for("react.suspense"),h=Symbol.for("react.memo"),m=Symbol.for("react.lazy"),v=Symbol.for("react.activity"),S=Symbol.iterator;function w(M){return M===null||typeof M!="object"?null:(M=S&&M[S]||M["@@iterator"],typeof M=="function"?M:null)}var x={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},b=Object.assign,A={};function j(M,G,le){this.props=M,this.context=G,this.refs=A,this.updater=le||x}j.prototype.isReactComponent={},j.prototype.setState=function(M,G){if(typeof M!="object"&&typeof M!="function"&&M!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,M,G,"setState")},j.prototype.forceUpdate=function(M){this.updater.enqueueForceUpdate(this,M,"forceUpdate")};function _(){}_.prototype=j.prototype;function R(M,G,le){this.props=M,this.context=G,this.refs=A,this.updater=le||x}var N=R.prototype=new _;N.constructor=R,b(N,j.prototype),N.isPureReactComponent=!0;var T=Array.isArray;function z(){}var D={H:null,A:null,T:null,S:null},V=Object.prototype.hasOwnProperty;function Q(M,G,le){var ce=le.ref;return{$$typeof:e,type:M,key:G,ref:ce!==void 0?ce:null,props:le}}function Z(M,G){return Q(M.type,G,M.props)}function q(M){return typeof M=="object"&&M!==null&&M.$$typeof===e}function $(M){var G={"=":"=0",":":"=2"};return"$"+M.replace(/[=:]/g,function(le){return G[le]})}var H=/\/+/g;function U(M,G){return typeof M=="object"&&M!==null&&M.key!=null?$(""+M.key):G.toString(36)}function Y(M){switch(M.status){case"fulfilled":return M.value;case"rejected":throw M.reason;default:switch(typeof M.status=="string"?M.then(z,z):(M.status="pending",M.then(function(G){M.status==="pending"&&(M.status="fulfilled",M.value=G)},function(G){M.status==="pending"&&(M.status="rejected",M.reason=G)})),M.status){case"fulfilled":return M.value;case"rejected":throw M.reason}}throw M}function k(M,G,le,ce,de){var me=typeof M;(me==="undefined"||me==="boolean")&&(M=null);var se=!1;if(M===null)se=!0;else switch(me){case"bigint":case"string":case"number":se=!0;break;case"object":switch(M.$$typeof){case e:case t:se=!0;break;case m:return se=M._init,k(se(M._payload),G,le,ce,de)}}if(se)return de=de(M),se=ce===""?"."+U(M,0):ce,T(de)?(le="",se!=null&&(le=se.replace(H,"$&/")+"/"),k(de,G,le,"",function(xe){return xe})):de!=null&&(q(de)&&(de=Z(de,le+(de.key==null||M&&M.key===de.key?"":(""+de.key).replace(H,"$&/")+"/")+se)),G.push(de)),1;se=0;var ie=ce===""?".":ce+":";if(T(M))for(var pe=0;pe<M.length;pe++)ce=M[pe],me=ie+U(ce,pe),se+=k(ce,G,le,me,de);else if(pe=w(M),typeof pe=="function")for(M=pe.call(M),pe=0;!(ce=M.next()).done;)ce=ce.value,me=ie+U(ce,pe++),se+=k(ce,G,le,me,de);else if(me==="object"){if(typeof M.then=="function")return k(Y(M),G,le,ce,de);throw G=String(M),Error("Objects are not valid as a React child (found: "+(G==="[object Object]"?"object with keys {"+Object.keys(M).join(", ")+"}":G)+"). If you meant to render a collection of children, use an array instead.")}return se}function P(M,G,le){if(M==null)return M;var ce=[],de=0;return k(M,ce,"","",function(me){return G.call(le,me,de++)}),ce}function J(M){if(M._status===-1){var G=M._result;G=G(),G.then(function(le){(M._status===0||M._status===-1)&&(M._status=1,M._result=le)},function(le){(M._status===0||M._status===-1)&&(M._status=2,M._result=le)}),M._status===-1&&(M._status=0,M._result=G)}if(M._status===1)return M._result.default;throw M._result}var ue=typeof reportError=="function"?reportError:function(M){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var G=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof M=="object"&&M!==null&&typeof M.message=="string"?String(M.message):String(M),error:M});if(!window.dispatchEvent(G))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",M);return}console.error(M)},ye={map:P,forEach:function(M,G,le){P(M,function(){G.apply(this,arguments)},le)},count:function(M){var G=0;return P(M,function(){G++}),G},toArray:function(M){return P(M,function(G){return G})||[]},only:function(M){if(!q(M))throw Error("React.Children.only expected to receive a single React element child.");return M}};return Te.Activity=v,Te.Children=ye,Te.Component=j,Te.Fragment=a,Te.Profiler=l,Te.PureComponent=R,Te.StrictMode=i,Te.Suspense=d,Te.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=D,Te.__COMPILER_RUNTIME={__proto__:null,c:function(M){return D.H.useMemoCache(M)}},Te.cache=function(M){return function(){return M.apply(null,arguments)}},Te.cacheSignal=function(){return null},Te.cloneElement=function(M,G,le){if(M==null)throw Error("The argument must be a React element, but you passed "+M+".");var ce=b({},M.props),de=M.key;if(G!=null)for(me in G.key!==void 0&&(de=""+G.key),G)!V.call(G,me)||me==="key"||me==="__self"||me==="__source"||me==="ref"&&G.ref===void 0||(ce[me]=G[me]);var me=arguments.length-2;if(me===1)ce.children=le;else if(1<me){for(var se=Array(me),ie=0;ie<me;ie++)se[ie]=arguments[ie+2];ce.children=se}return Q(M.type,de,ce)},Te.createContext=function(M){return M={$$typeof:u,_currentValue:M,_currentValue2:M,_threadCount:0,Provider:null,Consumer:null},M.Provider=M,M.Consumer={$$typeof:s,_context:M},M},Te.createElement=function(M,G,le){var ce,de={},me=null;if(G!=null)for(ce in G.key!==void 0&&(me=""+G.key),G)V.call(G,ce)&&ce!=="key"&&ce!=="__self"&&ce!=="__source"&&(de[ce]=G[ce]);var se=arguments.length-2;if(se===1)de.children=le;else if(1<se){for(var ie=Array(se),pe=0;pe<se;pe++)ie[pe]=arguments[pe+2];de.children=ie}if(M&&M.defaultProps)for(ce in se=M.defaultProps,se)de[ce]===void 0&&(de[ce]=se[ce]);return Q(M,me,de)},Te.createRef=function(){return{current:null}},Te.forwardRef=function(M){return{$$typeof:f,render:M}},Te.isValidElement=q,Te.lazy=function(M){return{$$typeof:m,_payload:{_status:-1,_result:M},_init:J}},Te.memo=function(M,G){return{$$typeof:h,type:M,compare:G===void 0?null:G}},Te.startTransition=function(M){var G=D.T,le={};D.T=le;try{var ce=M(),de=D.S;de!==null&&de(le,ce),typeof ce=="object"&&ce!==null&&typeof ce.then=="function"&&ce.then(z,ue)}catch(me){ue(me)}finally{G!==null&&le.types!==null&&(G.types=le.types),D.T=G}},Te.unstable_useCacheRefresh=function(){return D.H.useCacheRefresh()},Te.use=function(M){return D.H.use(M)},Te.useActionState=function(M,G,le){return D.H.useActionState(M,G,le)},Te.useCallback=function(M,G){return D.H.useCallback(M,G)},Te.useContext=function(M){return D.H.useContext(M)},Te.useDebugValue=function(){},Te.useDeferredValue=function(M,G){return D.H.useDeferredValue(M,G)},Te.useEffect=function(M,G){return D.H.useEffect(M,G)},Te.useEffectEvent=function(M){return D.H.useEffectEvent(M)},Te.useId=function(){return D.H.useId()},Te.useImperativeHandle=function(M,G,le){return D.H.useImperativeHandle(M,G,le)},Te.useInsertionEffect=function(M,G){return D.H.useInsertionEffect(M,G)},Te.useLayoutEffect=function(M,G){return D.H.useLayoutEffect(M,G)},Te.useMemo=function(M,G){return D.H.useMemo(M,G)},Te.useOptimistic=function(M,G){return D.H.useOptimistic(M,G)},Te.useReducer=function(M,G,le){return D.H.useReducer(M,G,le)},Te.useRef=function(M){return D.H.useRef(M)},Te.useState=function(M){return D.H.useState(M)},Te.useSyncExternalStore=function(M,G,le){return D.H.useSyncExternalStore(M,G,le)},Te.useTransition=function(){return D.H.useTransition()},Te.version="19.2.3",Te}var ub;function l0(){return ub||(ub=1,Ch.exports=kw()),Ch.exports}var C=l0();const ni=Zx(C),Qu=Ow({__proto__:null,default:ni},[C]);var Eh={exports:{}},hs={},wh={exports:{}},Ah={};var fb;function Nw(){return fb||(fb=1,(function(e){function t(k,P){var J=k.length;k.push(P);e:for(;0<J;){var ue=J-1>>>1,ye=k[ue];if(0<l(ye,P))k[ue]=P,k[J]=ye,J=ue;else break e}}function a(k){return k.length===0?null:k[0]}function i(k){if(k.length===0)return null;var P=k[0],J=k.pop();if(J!==P){k[0]=J;e:for(var ue=0,ye=k.length,M=ye>>>1;ue<M;){var G=2*(ue+1)-1,le=k[G],ce=G+1,de=k[ce];if(0>l(le,J))ce<ye&&0>l(de,le)?(k[ue]=de,k[ce]=J,ue=ce):(k[ue]=le,k[G]=J,ue=G);else if(ce<ye&&0>l(de,J))k[ue]=de,k[ce]=J,ue=ce;else break e}}return P}function l(k,P){var J=k.sortIndex-P.sortIndex;return J!==0?J:k.id-P.id}if(e.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var s=performance;e.unstable_now=function(){return s.now()}}else{var u=Date,f=u.now();e.unstable_now=function(){return u.now()-f}}var d=[],h=[],m=1,v=null,S=3,w=!1,x=!1,b=!1,A=!1,j=typeof setTimeout=="function"?setTimeout:null,_=typeof clearTimeout=="function"?clearTimeout:null,R=typeof setImmediate<"u"?setImmediate:null;function N(k){for(var P=a(h);P!==null;){if(P.callback===null)i(h);else if(P.startTime<=k)i(h),P.sortIndex=P.expirationTime,t(d,P);else break;P=a(h)}}function T(k){if(b=!1,N(k),!x)if(a(d)!==null)x=!0,z||(z=!0,$());else{var P=a(h);P!==null&&Y(T,P.startTime-k)}}var z=!1,D=-1,V=5,Q=-1;function Z(){return A?!0:!(e.unstable_now()-Q<V)}function q(){if(A=!1,z){var k=e.unstable_now();Q=k;var P=!0;try{e:{x=!1,b&&(b=!1,_(D),D=-1),w=!0;var J=S;try{t:{for(N(k),v=a(d);v!==null&&!(v.expirationTime>k&&Z());){var ue=v.callback;if(typeof ue=="function"){v.callback=null,S=v.priorityLevel;var ye=ue(v.expirationTime<=k);if(k=e.unstable_now(),typeof ye=="function"){v.callback=ye,N(k),P=!0;break t}v===a(d)&&i(d),N(k)}else i(d);v=a(d)}if(v!==null)P=!0;else{var M=a(h);M!==null&&Y(T,M.startTime-k),P=!1}}break e}finally{v=null,S=J,w=!1}P=void 0}}finally{P?$():z=!1}}}var $;if(typeof R=="function")$=function(){R(q)};else if(typeof MessageChannel<"u"){var H=new MessageChannel,U=H.port2;H.port1.onmessage=q,$=function(){U.postMessage(null)}}else $=function(){j(q,0)};function Y(k,P){D=j(function(){k(e.unstable_now())},P)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(k){k.callback=null},e.unstable_forceFrameRate=function(k){0>k||125<k?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):V=0<k?Math.floor(1e3/k):5},e.unstable_getCurrentPriorityLevel=function(){return S},e.unstable_next=function(k){switch(S){case 1:case 2:case 3:var P=3;break;default:P=S}var J=S;S=P;try{return k()}finally{S=J}},e.unstable_requestPaint=function(){A=!0},e.unstable_runWithPriority=function(k,P){switch(k){case 1:case 2:case 3:case 4:case 5:break;default:k=3}var J=S;S=k;try{return P()}finally{S=J}},e.unstable_scheduleCallback=function(k,P,J){var ue=e.unstable_now();switch(typeof J=="object"&&J!==null?(J=J.delay,J=typeof J=="number"&&0<J?ue+J:ue):J=ue,k){case 1:var ye=-1;break;case 2:ye=250;break;case 5:ye=1073741823;break;case 4:ye=1e4;break;default:ye=5e3}return ye=J+ye,k={id:m++,callback:P,priorityLevel:k,startTime:J,expirationTime:ye,sortIndex:-1},J>ue?(k.sortIndex=J,t(h,k),a(d)===null&&k===a(h)&&(b?(_(D),D=-1):b=!0,Y(T,J-ue))):(k.sortIndex=ye,t(d,k),x||w||(x=!0,z||(z=!0,$()))),k},e.unstable_shouldYield=Z,e.unstable_wrapCallback=function(k){var P=S;return function(){var J=S;S=P;try{return k.apply(this,arguments)}finally{S=J}}}})(Ah)),Ah}var db;function zw(){return db||(db=1,wh.exports=Nw()),wh.exports}var Rh={exports:{}},Jt={};var pb;function Dw(){if(pb)return Jt;pb=1;var e=l0();function t(d){var h="https://react.dev/errors/"+d;if(1<arguments.length){h+="?args[]="+encodeURIComponent(arguments[1]);for(var m=2;m<arguments.length;m++)h+="&args[]="+encodeURIComponent(arguments[m])}return"Minified React error #"+d+"; visit "+h+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function a(){}var i={d:{f:a,r:function(){throw Error(t(522))},D:a,C:a,L:a,m:a,X:a,S:a,M:a},p:0,findDOMNode:null},l=Symbol.for("react.portal");function s(d,h,m){var v=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:l,key:v==null?null:""+v,children:d,containerInfo:h,implementation:m}}var u=e.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function f(d,h){if(d==="font")return"";if(typeof h=="string")return h==="use-credentials"?h:""}return Jt.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=i,Jt.createPortal=function(d,h){var m=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!h||h.nodeType!==1&&h.nodeType!==9&&h.nodeType!==11)throw Error(t(299));return s(d,h,null,m)},Jt.flushSync=function(d){var h=u.T,m=i.p;try{if(u.T=null,i.p=2,d)return d()}finally{u.T=h,i.p=m,i.d.f()}},Jt.preconnect=function(d,h){typeof d=="string"&&(h?(h=h.crossOrigin,h=typeof h=="string"?h==="use-credentials"?h:"":void 0):h=null,i.d.C(d,h))},Jt.prefetchDNS=function(d){typeof d=="string"&&i.d.D(d)},Jt.preinit=function(d,h){if(typeof d=="string"&&h&&typeof h.as=="string"){var m=h.as,v=f(m,h.crossOrigin),S=typeof h.integrity=="string"?h.integrity:void 0,w=typeof h.fetchPriority=="string"?h.fetchPriority:void 0;m==="style"?i.d.S(d,typeof h.precedence=="string"?h.precedence:void 0,{crossOrigin:v,integrity:S,fetchPriority:w}):m==="script"&&i.d.X(d,{crossOrigin:v,integrity:S,fetchPriority:w,nonce:typeof h.nonce=="string"?h.nonce:void 0})}},Jt.preinitModule=function(d,h){if(typeof d=="string")if(typeof h=="object"&&h!==null){if(h.as==null||h.as==="script"){var m=f(h.as,h.crossOrigin);i.d.M(d,{crossOrigin:m,integrity:typeof h.integrity=="string"?h.integrity:void 0,nonce:typeof h.nonce=="string"?h.nonce:void 0})}}else h==null&&i.d.M(d)},Jt.preload=function(d,h){if(typeof d=="string"&&typeof h=="object"&&h!==null&&typeof h.as=="string"){var m=h.as,v=f(m,h.crossOrigin);i.d.L(d,m,{crossOrigin:v,integrity:typeof h.integrity=="string"?h.integrity:void 0,nonce:typeof h.nonce=="string"?h.nonce:void 0,type:typeof h.type=="string"?h.type:void 0,fetchPriority:typeof h.fetchPriority=="string"?h.fetchPriority:void 0,referrerPolicy:typeof h.referrerPolicy=="string"?h.referrerPolicy:void 0,imageSrcSet:typeof h.imageSrcSet=="string"?h.imageSrcSet:void 0,imageSizes:typeof h.imageSizes=="string"?h.imageSizes:void 0,media:typeof h.media=="string"?h.media:void 0})}},Jt.preloadModule=function(d,h){if(typeof d=="string")if(h){var m=f(h.as,h.crossOrigin);i.d.m(d,{as:typeof h.as=="string"&&h.as!=="script"?h.as:void 0,crossOrigin:m,integrity:typeof h.integrity=="string"?h.integrity:void 0})}else i.d.m(d)},Jt.requestFormReset=function(d){i.d.r(d)},Jt.unstable_batchedUpdates=function(d,h){return d(h)},Jt.useFormState=function(d,h,m){return u.H.useFormState(d,h,m)},Jt.useFormStatus=function(){return u.H.useHostTransitionStatus()},Jt.version="19.2.3",Jt}var hb;function eS(){if(hb)return Rh.exports;hb=1;function e(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(t){console.error(t)}}return e(),Rh.exports=Dw(),Rh.exports}var mb;function Mw(){if(mb)return hs;mb=1;var e=zw(),t=l0(),a=eS();function i(n){var r="https://react.dev/errors/"+n;if(1<arguments.length){r+="?args[]="+encodeURIComponent(arguments[1]);for(var o=2;o<arguments.length;o++)r+="&args[]="+encodeURIComponent(arguments[o])}return"Minified React error #"+n+"; visit "+r+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function l(n){return!(!n||n.nodeType!==1&&n.nodeType!==9&&n.nodeType!==11)}function s(n){var r=n,o=n;if(n.alternate)for(;r.return;)r=r.return;else{n=r;do r=n,(r.flags&4098)!==0&&(o=r.return),n=r.return;while(n)}return r.tag===3?o:null}function u(n){if(n.tag===13){var r=n.memoizedState;if(r===null&&(n=n.alternate,n!==null&&(r=n.memoizedState)),r!==null)return r.dehydrated}return null}function f(n){if(n.tag===31){var r=n.memoizedState;if(r===null&&(n=n.alternate,n!==null&&(r=n.memoizedState)),r!==null)return r.dehydrated}return null}function d(n){if(s(n)!==n)throw Error(i(188))}function h(n){var r=n.alternate;if(!r){if(r=s(n),r===null)throw Error(i(188));return r!==n?null:n}for(var o=n,c=r;;){var p=o.return;if(p===null)break;var g=p.alternate;if(g===null){if(c=p.return,c!==null){o=c;continue}break}if(p.child===g.child){for(g=p.child;g;){if(g===o)return d(p),n;if(g===c)return d(p),r;g=g.sibling}throw Error(i(188))}if(o.return!==c.return)o=p,c=g;else{for(var E=!1,O=p.child;O;){if(O===o){E=!0,o=p,c=g;break}if(O===c){E=!0,c=p,o=g;break}O=O.sibling}if(!E){for(O=g.child;O;){if(O===o){E=!0,o=g,c=p;break}if(O===c){E=!0,c=g,o=p;break}O=O.sibling}if(!E)throw Error(i(189))}}if(o.alternate!==c)throw Error(i(190))}if(o.tag!==3)throw Error(i(188));return o.stateNode.current===o?n:r}function m(n){var r=n.tag;if(r===5||r===26||r===27||r===6)return n;for(n=n.child;n!==null;){if(r=m(n),r!==null)return r;n=n.sibling}return null}var v=Object.assign,S=Symbol.for("react.element"),w=Symbol.for("react.transitional.element"),x=Symbol.for("react.portal"),b=Symbol.for("react.fragment"),A=Symbol.for("react.strict_mode"),j=Symbol.for("react.profiler"),_=Symbol.for("react.consumer"),R=Symbol.for("react.context"),N=Symbol.for("react.forward_ref"),T=Symbol.for("react.suspense"),z=Symbol.for("react.suspense_list"),D=Symbol.for("react.memo"),V=Symbol.for("react.lazy"),Q=Symbol.for("react.activity"),Z=Symbol.for("react.memo_cache_sentinel"),q=Symbol.iterator;function $(n){return n===null||typeof n!="object"?null:(n=q&&n[q]||n["@@iterator"],typeof n=="function"?n:null)}var H=Symbol.for("react.client.reference");function U(n){if(n==null)return null;if(typeof n=="function")return n.$$typeof===H?null:n.displayName||n.name||null;if(typeof n=="string")return n;switch(n){case b:return"Fragment";case j:return"Profiler";case A:return"StrictMode";case T:return"Suspense";case z:return"SuspenseList";case Q:return"Activity"}if(typeof n=="object")switch(n.$$typeof){case x:return"Portal";case R:return n.displayName||"Context";case _:return(n._context.displayName||"Context")+".Consumer";case N:var r=n.render;return n=n.displayName,n||(n=r.displayName||r.name||"",n=n!==""?"ForwardRef("+n+")":"ForwardRef"),n;case D:return r=n.displayName||null,r!==null?r:U(n.type)||"Memo";case V:r=n._payload,n=n._init;try{return U(n(r))}catch{}}return null}var Y=Array.isArray,k=t.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,P=a.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,J={pending:!1,data:null,method:null,action:null},ue=[],ye=-1;function M(n){return{current:n}}function G(n){0>ye||(n.current=ue[ye],ue[ye]=null,ye--)}function le(n,r){ye++,ue[ye]=n.current,n.current=r}var ce=M(null),de=M(null),me=M(null),se=M(null);function ie(n,r){switch(le(me,r),le(de,n),le(ce,null),r.nodeType){case 9:case 11:n=(n=r.documentElement)&&(n=n.namespaceURI)?_1(n):0;break;default:if(n=r.tagName,r=r.namespaceURI)r=_1(r),n=j1(r,n);else switch(n){case"svg":n=1;break;case"math":n=2;break;default:n=0}}G(ce),le(ce,n)}function pe(){G(ce),G(de),G(me)}function xe(n){n.memoizedState!==null&&le(se,n);var r=ce.current,o=j1(r,n.type);r!==o&&(le(de,n),le(ce,o))}function ze(n){de.current===n&&(G(ce),G(de)),se.current===n&&(G(se),cs._currentValue=J)}var mt,Bt;function wt(n){if(mt===void 0)try{throw Error()}catch(o){var r=o.stack.trim().match(/\n( *(at )?)/);mt=r&&r[1]||"",Bt=-1<o.stack.indexOf(`
2
+ at`)?" (<anonymous>)":-1<o.stack.indexOf("@")?"@unknown:0:0":""}return`
3
+ `+mt+n+Bt}var An=!1;function Vn(n,r){if(!n||An)return"";An=!0;var o=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var c={DetermineComponentFrameRoot:function(){try{if(r){var oe=function(){throw Error()};if(Object.defineProperty(oe.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(oe,[])}catch(te){var X=te}Reflect.construct(n,[],oe)}else{try{oe.call()}catch(te){X=te}n.call(oe.prototype)}}else{try{throw Error()}catch(te){X=te}(oe=n())&&typeof oe.catch=="function"&&oe.catch(function(){})}}catch(te){if(te&&X&&typeof te.stack=="string")return[te.stack,X.stack]}return[null,null]}};c.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var p=Object.getOwnPropertyDescriptor(c.DetermineComponentFrameRoot,"name");p&&p.configurable&&Object.defineProperty(c.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var g=c.DetermineComponentFrameRoot(),E=g[0],O=g[1];if(E&&O){var B=E.split(`
4
+ `),K=O.split(`
5
+ `);for(p=c=0;c<B.length&&!B[c].includes("DetermineComponentFrameRoot");)c++;for(;p<K.length&&!K[p].includes("DetermineComponentFrameRoot");)p++;if(c===B.length||p===K.length)for(c=B.length-1,p=K.length-1;1<=c&&0<=p&&B[c]!==K[p];)p--;for(;1<=c&&0<=p;c--,p--)if(B[c]!==K[p]){if(c!==1||p!==1)do if(c--,p--,0>p||B[c]!==K[p]){var ne=`
6
+ `+B[c].replace(" at new "," at ");return n.displayName&&ne.includes("<anonymous>")&&(ne=ne.replace("<anonymous>",n.displayName)),ne}while(1<=c&&0<=p);break}}}finally{An=!1,Error.prepareStackTrace=o}return(o=n?n.displayName||n.name:"")?wt(o):""}function nn(n,r){switch(n.tag){case 26:case 27:case 5:return wt(n.type);case 16:return wt("Lazy");case 13:return n.child!==r&&r!==null?wt("Suspense Fallback"):wt("Suspense");case 19:return wt("SuspenseList");case 0:case 15:return Vn(n.type,!1);case 11:return Vn(n.type.render,!1);case 1:return Vn(n.type,!0);case 31:return wt("Activity");default:return""}}function cn(n){try{var r="",o=null;do r+=nn(n,o),o=n,n=n.return;while(n);return r}catch(c){return`
7
+ Error generating stack: `+c.message+`
8
+ `+c.stack}}var hr=Object.prototype.hasOwnProperty,Lt=e.unstable_scheduleCallback,un=e.unstable_cancelCallback,we=e.unstable_shouldYield,Ra=e.unstable_requestPaint,At=e.unstable_now,Rr=e.unstable_getCurrentPriorityLevel,Tr=e.unstable_ImmediatePriority,Qt=e.unstable_UserBlockingPriority,Dt=e.unstable_NormalPriority,mr=e.unstable_LowPriority,gr=e.unstable_IdlePriority,Ta=e.log,he=e.unstable_setDisableYieldValue,ge=null,Ae=null;function st(n){if(typeof Ta=="function"&&he(n),Ae&&typeof Ae.setStrictMode=="function")try{Ae.setStrictMode(ge,n)}catch{}}var rn=Math.clz32?Math.clz32:cd,fi=Math.log,sd=Math.LN2;function cd(n){return n>>>=0,n===0?32:31-(fi(n)/sd|0)|0}var Ji=256,Zi=262144,eo=4194304;function qr(n){var r=n&42;if(r!==0)return r;switch(n&-n){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return n&261888;case 262144:case 524288:case 1048576:case 2097152:return n&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return n&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return n}}function to(n,r,o){var c=n.pendingLanes;if(c===0)return 0;var p=0,g=n.suspendedLanes,E=n.pingedLanes;n=n.warmLanes;var O=c&134217727;return O!==0?(c=O&~g,c!==0?p=qr(c):(E&=O,E!==0?p=qr(E):o||(o=O&~n,o!==0&&(p=qr(o))))):(O=c&~g,O!==0?p=qr(O):E!==0?p=qr(E):o||(o=c&~n,o!==0&&(p=qr(o)))),p===0?0:r!==0&&r!==p&&(r&g)===0&&(g=p&-p,o=r&-r,g>=o||g===32&&(o&4194048)!==0)?r:p}function $a(n,r){return(n.pendingLanes&~(n.suspendedLanes&~n.pingedLanes)&r)===0}function Ut(n,r){switch(n){case 1:case 2:case 4:case 8:case 64:return r+250;case 16:case 32:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return r+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function Cl(){var n=eo;return eo<<=1,(eo&62914560)===0&&(eo=4194304),n}function di(n){for(var r=[],o=0;31>o;o++)r.push(n);return r}function El(n,r){n.pendingLanes|=r,r!==268435456&&(n.suspendedLanes=0,n.pingedLanes=0,n.warmLanes=0)}function v4(n,r,o,c,p,g){var E=n.pendingLanes;n.pendingLanes=o,n.suspendedLanes=0,n.pingedLanes=0,n.warmLanes=0,n.expiredLanes&=o,n.entangledLanes&=o,n.errorRecoveryDisabledLanes&=o,n.shellSuspendCounter=0;var O=n.entanglements,B=n.expirationTimes,K=n.hiddenUpdates;for(o=E&~o;0<o;){var ne=31-rn(o),oe=1<<ne;O[ne]=0,B[ne]=-1;var X=K[ne];if(X!==null)for(K[ne]=null,ne=0;ne<X.length;ne++){var te=X[ne];te!==null&&(te.lane&=-536870913)}o&=~oe}c!==0&&dg(n,c,0),g!==0&&p===0&&n.tag!==0&&(n.suspendedLanes|=g&~(E&~r))}function dg(n,r,o){n.pendingLanes|=r,n.suspendedLanes&=~r;var c=31-rn(r);n.entangledLanes|=r,n.entanglements[c]=n.entanglements[c]|1073741824|o&261930}function pg(n,r){var o=n.entangledLanes|=r;for(n=n.entanglements;o;){var c=31-rn(o),p=1<<c;p&r|n[c]&r&&(n[c]|=r),o&=~p}}function hg(n,r){var o=r&-r;return o=(o&42)!==0?1:ud(o),(o&(n.suspendedLanes|r))!==0?0:o}function ud(n){switch(n){case 2:n=1;break;case 8:n=4;break;case 32:n=16;break;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:n=128;break;case 268435456:n=134217728;break;default:n=0}return n}function fd(n){return n&=-n,2<n?8<n?(n&134217727)!==0?32:268435456:8:2}function mg(){var n=P.p;return n!==0?n:(n=window.event,n===void 0?32:eb(n.type))}function gg(n,r){var o=P.p;try{return P.p=n,r()}finally{P.p=o}}var Oa=Math.random().toString(36).slice(2),Ft="__reactFiber$"+Oa,fn="__reactProps$"+Oa,no="__reactContainer$"+Oa,dd="__reactEvents$"+Oa,y4="__reactListeners$"+Oa,b4="__reactHandles$"+Oa,vg="__reactResources$"+Oa,wl="__reactMarker$"+Oa;function pd(n){delete n[Ft],delete n[fn],delete n[dd],delete n[y4],delete n[b4]}function ro(n){var r=n[Ft];if(r)return r;for(var o=n.parentNode;o;){if(r=o[no]||o[Ft]){if(o=r.alternate,r.child!==null||o!==null&&o.child!==null)for(n=L1(n);n!==null;){if(o=n[Ft])return o;n=L1(n)}return r}n=o,o=n.parentNode}return null}function ao(n){if(n=n[Ft]||n[no]){var r=n.tag;if(r===5||r===6||r===13||r===31||r===26||r===27||r===3)return n}return null}function Al(n){var r=n.tag;if(r===5||r===26||r===27||r===6)return n.stateNode;throw Error(i(33))}function io(n){var r=n[vg];return r||(r=n[vg]={hoistableStyles:new Map,hoistableScripts:new Map}),r}function Pt(n){n[wl]=!0}var yg=new Set,bg={};function pi(n,r){oo(n,r),oo(n+"Capture",r)}function oo(n,r){for(bg[n]=r,n=0;n<r.length;n++)yg.add(r[n])}var x4=RegExp("^[:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD][:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$"),xg={},Sg={};function S4(n){return hr.call(Sg,n)?!0:hr.call(xg,n)?!1:x4.test(n)?Sg[n]=!0:(xg[n]=!0,!1)}function hc(n,r,o){if(S4(r))if(o===null)n.removeAttribute(r);else{switch(typeof o){case"undefined":case"function":case"symbol":n.removeAttribute(r);return;case"boolean":var c=r.toLowerCase().slice(0,5);if(c!=="data-"&&c!=="aria-"){n.removeAttribute(r);return}}n.setAttribute(r,""+o)}}function mc(n,r,o){if(o===null)n.removeAttribute(r);else{switch(typeof o){case"undefined":case"function":case"symbol":case"boolean":n.removeAttribute(r);return}n.setAttribute(r,""+o)}}function Yr(n,r,o,c){if(c===null)n.removeAttribute(o);else{switch(typeof c){case"undefined":case"function":case"symbol":case"boolean":n.removeAttribute(o);return}n.setAttributeNS(r,o,""+c)}}function qn(n){switch(typeof n){case"bigint":case"boolean":case"number":case"string":case"undefined":return n;case"object":return n;default:return""}}function Cg(n){var r=n.type;return(n=n.nodeName)&&n.toLowerCase()==="input"&&(r==="checkbox"||r==="radio")}function C4(n,r,o){var c=Object.getOwnPropertyDescriptor(n.constructor.prototype,r);if(!n.hasOwnProperty(r)&&typeof c<"u"&&typeof c.get=="function"&&typeof c.set=="function"){var p=c.get,g=c.set;return Object.defineProperty(n,r,{configurable:!0,get:function(){return p.call(this)},set:function(E){o=""+E,g.call(this,E)}}),Object.defineProperty(n,r,{enumerable:c.enumerable}),{getValue:function(){return o},setValue:function(E){o=""+E},stopTracking:function(){n._valueTracker=null,delete n[r]}}}}function hd(n){if(!n._valueTracker){var r=Cg(n)?"checked":"value";n._valueTracker=C4(n,r,""+n[r])}}function Eg(n){if(!n)return!1;var r=n._valueTracker;if(!r)return!0;var o=r.getValue(),c="";return n&&(c=Cg(n)?n.checked?"true":"false":n.value),n=c,n!==o?(r.setValue(n),!0):!1}function gc(n){if(n=n||(typeof document<"u"?document:void 0),typeof n>"u")return null;try{return n.activeElement||n.body}catch{return n.body}}var E4=/[\n"\\]/g;function Yn(n){return n.replace(E4,function(r){return"\\"+r.charCodeAt(0).toString(16)+" "})}function md(n,r,o,c,p,g,E,O){n.name="",E!=null&&typeof E!="function"&&typeof E!="symbol"&&typeof E!="boolean"?n.type=E:n.removeAttribute("type"),r!=null?E==="number"?(r===0&&n.value===""||n.value!=r)&&(n.value=""+qn(r)):n.value!==""+qn(r)&&(n.value=""+qn(r)):E!=="submit"&&E!=="reset"||n.removeAttribute("value"),r!=null?gd(n,E,qn(r)):o!=null?gd(n,E,qn(o)):c!=null&&n.removeAttribute("value"),p==null&&g!=null&&(n.defaultChecked=!!g),p!=null&&(n.checked=p&&typeof p!="function"&&typeof p!="symbol"),O!=null&&typeof O!="function"&&typeof O!="symbol"&&typeof O!="boolean"?n.name=""+qn(O):n.removeAttribute("name")}function wg(n,r,o,c,p,g,E,O){if(g!=null&&typeof g!="function"&&typeof g!="symbol"&&typeof g!="boolean"&&(n.type=g),r!=null||o!=null){if(!(g!=="submit"&&g!=="reset"||r!=null)){hd(n);return}o=o!=null?""+qn(o):"",r=r!=null?""+qn(r):o,O||r===n.value||(n.value=r),n.defaultValue=r}c=c??p,c=typeof c!="function"&&typeof c!="symbol"&&!!c,n.checked=O?n.checked:!!c,n.defaultChecked=!!c,E!=null&&typeof E!="function"&&typeof E!="symbol"&&typeof E!="boolean"&&(n.name=E),hd(n)}function gd(n,r,o){r==="number"&&gc(n.ownerDocument)===n||n.defaultValue===""+o||(n.defaultValue=""+o)}function lo(n,r,o,c){if(n=n.options,r){r={};for(var p=0;p<o.length;p++)r["$"+o[p]]=!0;for(o=0;o<n.length;o++)p=r.hasOwnProperty("$"+n[o].value),n[o].selected!==p&&(n[o].selected=p),p&&c&&(n[o].defaultSelected=!0)}else{for(o=""+qn(o),r=null,p=0;p<n.length;p++){if(n[p].value===o){n[p].selected=!0,c&&(n[p].defaultSelected=!0);return}r!==null||n[p].disabled||(r=n[p])}r!==null&&(r.selected=!0)}}function Ag(n,r,o){if(r!=null&&(r=""+qn(r),r!==n.value&&(n.value=r),o==null)){n.defaultValue!==r&&(n.defaultValue=r);return}n.defaultValue=o!=null?""+qn(o):""}function Rg(n,r,o,c){if(r==null){if(c!=null){if(o!=null)throw Error(i(92));if(Y(c)){if(1<c.length)throw Error(i(93));c=c[0]}o=c}o==null&&(o=""),r=o}o=qn(r),n.defaultValue=o,c=n.textContent,c===o&&c!==""&&c!==null&&(n.value=c),hd(n)}function so(n,r){if(r){var o=n.firstChild;if(o&&o===n.lastChild&&o.nodeType===3){o.nodeValue=r;return}}n.textContent=r}var w4=new Set("animationIterationCount aspectRatio borderImageOutset borderImageSlice borderImageWidth boxFlex boxFlexGroup boxOrdinalGroup columnCount columns flex flexGrow flexPositive flexShrink flexNegative flexOrder gridArea gridRow gridRowEnd gridRowSpan gridRowStart gridColumn gridColumnEnd gridColumnSpan gridColumnStart fontWeight lineClamp lineHeight opacity order orphans scale tabSize widows zIndex zoom fillOpacity floodOpacity stopOpacity strokeDasharray strokeDashoffset strokeMiterlimit strokeOpacity strokeWidth MozAnimationIterationCount MozBoxFlex MozBoxFlexGroup MozLineClamp msAnimationIterationCount msFlex msZoom msFlexGrow msFlexNegative msFlexOrder msFlexPositive msFlexShrink msGridColumn msGridColumnSpan msGridRow msGridRowSpan WebkitAnimationIterationCount WebkitBoxFlex WebKitBoxFlexGroup WebkitBoxOrdinalGroup WebkitColumnCount WebkitColumns WebkitFlex WebkitFlexGrow WebkitFlexPositive WebkitFlexShrink WebkitLineClamp".split(" "));function Tg(n,r,o){var c=r.indexOf("--")===0;o==null||typeof o=="boolean"||o===""?c?n.setProperty(r,""):r==="float"?n.cssFloat="":n[r]="":c?n.setProperty(r,o):typeof o!="number"||o===0||w4.has(r)?r==="float"?n.cssFloat=o:n[r]=(""+o).trim():n[r]=o+"px"}function $g(n,r,o){if(r!=null&&typeof r!="object")throw Error(i(62));if(n=n.style,o!=null){for(var c in o)!o.hasOwnProperty(c)||r!=null&&r.hasOwnProperty(c)||(c.indexOf("--")===0?n.setProperty(c,""):c==="float"?n.cssFloat="":n[c]="");for(var p in r)c=r[p],r.hasOwnProperty(p)&&o[p]!==c&&Tg(n,p,c)}else for(var g in r)r.hasOwnProperty(g)&&Tg(n,g,r[g])}function vd(n){if(n.indexOf("-")===-1)return!1;switch(n){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var A4=new Map([["acceptCharset","accept-charset"],["htmlFor","for"],["httpEquiv","http-equiv"],["crossOrigin","crossorigin"],["accentHeight","accent-height"],["alignmentBaseline","alignment-baseline"],["arabicForm","arabic-form"],["baselineShift","baseline-shift"],["capHeight","cap-height"],["clipPath","clip-path"],["clipRule","clip-rule"],["colorInterpolation","color-interpolation"],["colorInterpolationFilters","color-interpolation-filters"],["colorProfile","color-profile"],["colorRendering","color-rendering"],["dominantBaseline","dominant-baseline"],["enableBackground","enable-background"],["fillOpacity","fill-opacity"],["fillRule","fill-rule"],["floodColor","flood-color"],["floodOpacity","flood-opacity"],["fontFamily","font-family"],["fontSize","font-size"],["fontSizeAdjust","font-size-adjust"],["fontStretch","font-stretch"],["fontStyle","font-style"],["fontVariant","font-variant"],["fontWeight","font-weight"],["glyphName","glyph-name"],["glyphOrientationHorizontal","glyph-orientation-horizontal"],["glyphOrientationVertical","glyph-orientation-vertical"],["horizAdvX","horiz-adv-x"],["horizOriginX","horiz-origin-x"],["imageRendering","image-rendering"],["letterSpacing","letter-spacing"],["lightingColor","lighting-color"],["markerEnd","marker-end"],["markerMid","marker-mid"],["markerStart","marker-start"],["overlinePosition","overline-position"],["overlineThickness","overline-thickness"],["paintOrder","paint-order"],["panose-1","panose-1"],["pointerEvents","pointer-events"],["renderingIntent","rendering-intent"],["shapeRendering","shape-rendering"],["stopColor","stop-color"],["stopOpacity","stop-opacity"],["strikethroughPosition","strikethrough-position"],["strikethroughThickness","strikethrough-thickness"],["strokeDasharray","stroke-dasharray"],["strokeDashoffset","stroke-dashoffset"],["strokeLinecap","stroke-linecap"],["strokeLinejoin","stroke-linejoin"],["strokeMiterlimit","stroke-miterlimit"],["strokeOpacity","stroke-opacity"],["strokeWidth","stroke-width"],["textAnchor","text-anchor"],["textDecoration","text-decoration"],["textRendering","text-rendering"],["transformOrigin","transform-origin"],["underlinePosition","underline-position"],["underlineThickness","underline-thickness"],["unicodeBidi","unicode-bidi"],["unicodeRange","unicode-range"],["unitsPerEm","units-per-em"],["vAlphabetic","v-alphabetic"],["vHanging","v-hanging"],["vIdeographic","v-ideographic"],["vMathematical","v-mathematical"],["vectorEffect","vector-effect"],["vertAdvY","vert-adv-y"],["vertOriginX","vert-origin-x"],["vertOriginY","vert-origin-y"],["wordSpacing","word-spacing"],["writingMode","writing-mode"],["xmlnsXlink","xmlns:xlink"],["xHeight","x-height"]]),R4=/^[\u0000-\u001F ]*j[\r\n\t]*a[\r\n\t]*v[\r\n\t]*a[\r\n\t]*s[\r\n\t]*c[\r\n\t]*r[\r\n\t]*i[\r\n\t]*p[\r\n\t]*t[\r\n\t]*:/i;function vc(n){return R4.test(""+n)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":n}function Gr(){}var yd=null;function bd(n){return n=n.target||n.srcElement||window,n.correspondingUseElement&&(n=n.correspondingUseElement),n.nodeType===3?n.parentNode:n}var co=null,uo=null;function Og(n){var r=ao(n);if(r&&(n=r.stateNode)){var o=n[fn]||null;e:switch(n=r.stateNode,r.type){case"input":if(md(n,o.value,o.defaultValue,o.defaultValue,o.checked,o.defaultChecked,o.type,o.name),r=o.name,o.type==="radio"&&r!=null){for(o=n;o.parentNode;)o=o.parentNode;for(o=o.querySelectorAll('input[name="'+Yn(""+r)+'"][type="radio"]'),r=0;r<o.length;r++){var c=o[r];if(c!==n&&c.form===n.form){var p=c[fn]||null;if(!p)throw Error(i(90));md(c,p.value,p.defaultValue,p.defaultValue,p.checked,p.defaultChecked,p.type,p.name)}}for(r=0;r<o.length;r++)c=o[r],c.form===n.form&&Eg(c)}break e;case"textarea":Ag(n,o.value,o.defaultValue);break e;case"select":r=o.value,r!=null&&lo(n,!!o.multiple,r,!1)}}}var xd=!1;function _g(n,r,o){if(xd)return n(r,o);xd=!0;try{var c=n(r);return c}finally{if(xd=!1,(co!==null||uo!==null)&&(au(),co&&(r=co,n=uo,uo=co=null,Og(r),n)))for(r=0;r<n.length;r++)Og(n[r])}}function Rl(n,r){var o=n.stateNode;if(o===null)return null;var c=o[fn]||null;if(c===null)return null;o=c[r];e:switch(r){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(c=!c.disabled)||(n=n.type,c=!(n==="button"||n==="input"||n==="select"||n==="textarea")),n=!c;break e;default:n=!1}if(n)return null;if(o&&typeof o!="function")throw Error(i(231,r,typeof o));return o}var Wr=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Sd=!1;if(Wr)try{var Tl={};Object.defineProperty(Tl,"passive",{get:function(){Sd=!0}}),window.addEventListener("test",Tl,Tl),window.removeEventListener("test",Tl,Tl)}catch{Sd=!1}var _a=null,Cd=null,yc=null;function jg(){if(yc)return yc;var n,r=Cd,o=r.length,c,p="value"in _a?_a.value:_a.textContent,g=p.length;for(n=0;n<o&&r[n]===p[n];n++);var E=o-n;for(c=1;c<=E&&r[o-c]===p[g-c];c++);return yc=p.slice(n,1<c?1-c:void 0)}function bc(n){var r=n.keyCode;return"charCode"in n?(n=n.charCode,n===0&&r===13&&(n=13)):n=r,n===10&&(n=13),32<=n||n===13?n:0}function xc(){return!0}function kg(){return!1}function dn(n){function r(o,c,p,g,E){this._reactName=o,this._targetInst=p,this.type=c,this.nativeEvent=g,this.target=E,this.currentTarget=null;for(var O in n)n.hasOwnProperty(O)&&(o=n[O],this[O]=o?o(g):g[O]);return this.isDefaultPrevented=(g.defaultPrevented!=null?g.defaultPrevented:g.returnValue===!1)?xc:kg,this.isPropagationStopped=kg,this}return v(r.prototype,{preventDefault:function(){this.defaultPrevented=!0;var o=this.nativeEvent;o&&(o.preventDefault?o.preventDefault():typeof o.returnValue!="unknown"&&(o.returnValue=!1),this.isDefaultPrevented=xc)},stopPropagation:function(){var o=this.nativeEvent;o&&(o.stopPropagation?o.stopPropagation():typeof o.cancelBubble!="unknown"&&(o.cancelBubble=!0),this.isPropagationStopped=xc)},persist:function(){},isPersistent:xc}),r}var hi={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(n){return n.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Sc=dn(hi),$l=v({},hi,{view:0,detail:0}),T4=dn($l),Ed,wd,Ol,Cc=v({},$l,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Rd,button:0,buttons:0,relatedTarget:function(n){return n.relatedTarget===void 0?n.fromElement===n.srcElement?n.toElement:n.fromElement:n.relatedTarget},movementX:function(n){return"movementX"in n?n.movementX:(n!==Ol&&(Ol&&n.type==="mousemove"?(Ed=n.screenX-Ol.screenX,wd=n.screenY-Ol.screenY):wd=Ed=0,Ol=n),Ed)},movementY:function(n){return"movementY"in n?n.movementY:wd}}),Ng=dn(Cc),$4=v({},Cc,{dataTransfer:0}),O4=dn($4),_4=v({},$l,{relatedTarget:0}),Ad=dn(_4),j4=v({},hi,{animationName:0,elapsedTime:0,pseudoElement:0}),k4=dn(j4),N4=v({},hi,{clipboardData:function(n){return"clipboardData"in n?n.clipboardData:window.clipboardData}}),z4=dn(N4),D4=v({},hi,{data:0}),zg=dn(D4),M4={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},B4={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},L4={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function P4(n){var r=this.nativeEvent;return r.getModifierState?r.getModifierState(n):(n=L4[n])?!!r[n]:!1}function Rd(){return P4}var I4=v({},$l,{key:function(n){if(n.key){var r=M4[n.key]||n.key;if(r!=="Unidentified")return r}return n.type==="keypress"?(n=bc(n),n===13?"Enter":String.fromCharCode(n)):n.type==="keydown"||n.type==="keyup"?B4[n.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Rd,charCode:function(n){return n.type==="keypress"?bc(n):0},keyCode:function(n){return n.type==="keydown"||n.type==="keyup"?n.keyCode:0},which:function(n){return n.type==="keypress"?bc(n):n.type==="keydown"||n.type==="keyup"?n.keyCode:0}}),H4=dn(I4),U4=v({},Cc,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Dg=dn(U4),F4=v({},$l,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Rd}),V4=dn(F4),q4=v({},hi,{propertyName:0,elapsedTime:0,pseudoElement:0}),Y4=dn(q4),G4=v({},Cc,{deltaX:function(n){return"deltaX"in n?n.deltaX:"wheelDeltaX"in n?-n.wheelDeltaX:0},deltaY:function(n){return"deltaY"in n?n.deltaY:"wheelDeltaY"in n?-n.wheelDeltaY:"wheelDelta"in n?-n.wheelDelta:0},deltaZ:0,deltaMode:0}),W4=dn(G4),K4=v({},hi,{newState:0,oldState:0}),X4=dn(K4),Q4=[9,13,27,32],Td=Wr&&"CompositionEvent"in window,_l=null;Wr&&"documentMode"in document&&(_l=document.documentMode);var J4=Wr&&"TextEvent"in window&&!_l,Mg=Wr&&(!Td||_l&&8<_l&&11>=_l),Bg=" ",Lg=!1;function Pg(n,r){switch(n){case"keyup":return Q4.indexOf(r.keyCode)!==-1;case"keydown":return r.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Ig(n){return n=n.detail,typeof n=="object"&&"data"in n?n.data:null}var fo=!1;function Z4(n,r){switch(n){case"compositionend":return Ig(r);case"keypress":return r.which!==32?null:(Lg=!0,Bg);case"textInput":return n=r.data,n===Bg&&Lg?null:n;default:return null}}function eE(n,r){if(fo)return n==="compositionend"||!Td&&Pg(n,r)?(n=jg(),yc=Cd=_a=null,fo=!1,n):null;switch(n){case"paste":return null;case"keypress":if(!(r.ctrlKey||r.altKey||r.metaKey)||r.ctrlKey&&r.altKey){if(r.char&&1<r.char.length)return r.char;if(r.which)return String.fromCharCode(r.which)}return null;case"compositionend":return Mg&&r.locale!=="ko"?null:r.data;default:return null}}var tE={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function Hg(n){var r=n&&n.nodeName&&n.nodeName.toLowerCase();return r==="input"?!!tE[n.type]:r==="textarea"}function Ug(n,r,o,c){co?uo?uo.push(c):uo=[c]:co=c,r=fu(r,"onChange"),0<r.length&&(o=new Sc("onChange","change",null,o,c),n.push({event:o,listeners:r}))}var jl=null,kl=null;function nE(n){w1(n,0)}function Ec(n){var r=Al(n);if(Eg(r))return n}function Fg(n,r){if(n==="change")return r}var Vg=!1;if(Wr){var $d;if(Wr){var Od="oninput"in document;if(!Od){var qg=document.createElement("div");qg.setAttribute("oninput","return;"),Od=typeof qg.oninput=="function"}$d=Od}else $d=!1;Vg=$d&&(!document.documentMode||9<document.documentMode)}function Yg(){jl&&(jl.detachEvent("onpropertychange",Gg),kl=jl=null)}function Gg(n){if(n.propertyName==="value"&&Ec(kl)){var r=[];Ug(r,kl,n,bd(n)),_g(nE,r)}}function rE(n,r,o){n==="focusin"?(Yg(),jl=r,kl=o,jl.attachEvent("onpropertychange",Gg)):n==="focusout"&&Yg()}function aE(n){if(n==="selectionchange"||n==="keyup"||n==="keydown")return Ec(kl)}function iE(n,r){if(n==="click")return Ec(r)}function oE(n,r){if(n==="input"||n==="change")return Ec(r)}function lE(n,r){return n===r&&(n!==0||1/n===1/r)||n!==n&&r!==r}var Rn=typeof Object.is=="function"?Object.is:lE;function Nl(n,r){if(Rn(n,r))return!0;if(typeof n!="object"||n===null||typeof r!="object"||r===null)return!1;var o=Object.keys(n),c=Object.keys(r);if(o.length!==c.length)return!1;for(c=0;c<o.length;c++){var p=o[c];if(!hr.call(r,p)||!Rn(n[p],r[p]))return!1}return!0}function Wg(n){for(;n&&n.firstChild;)n=n.firstChild;return n}function Kg(n,r){var o=Wg(n);n=0;for(var c;o;){if(o.nodeType===3){if(c=n+o.textContent.length,n<=r&&c>=r)return{node:o,offset:r-n};n=c}e:{for(;o;){if(o.nextSibling){o=o.nextSibling;break e}o=o.parentNode}o=void 0}o=Wg(o)}}function Xg(n,r){return n&&r?n===r?!0:n&&n.nodeType===3?!1:r&&r.nodeType===3?Xg(n,r.parentNode):"contains"in n?n.contains(r):n.compareDocumentPosition?!!(n.compareDocumentPosition(r)&16):!1:!1}function Qg(n){n=n!=null&&n.ownerDocument!=null&&n.ownerDocument.defaultView!=null?n.ownerDocument.defaultView:window;for(var r=gc(n.document);r instanceof n.HTMLIFrameElement;){try{var o=typeof r.contentWindow.location.href=="string"}catch{o=!1}if(o)n=r.contentWindow;else break;r=gc(n.document)}return r}function _d(n){var r=n&&n.nodeName&&n.nodeName.toLowerCase();return r&&(r==="input"&&(n.type==="text"||n.type==="search"||n.type==="tel"||n.type==="url"||n.type==="password")||r==="textarea"||n.contentEditable==="true")}var sE=Wr&&"documentMode"in document&&11>=document.documentMode,po=null,jd=null,zl=null,kd=!1;function Jg(n,r,o){var c=o.window===o?o.document:o.nodeType===9?o:o.ownerDocument;kd||po==null||po!==gc(c)||(c=po,"selectionStart"in c&&_d(c)?c={start:c.selectionStart,end:c.selectionEnd}:(c=(c.ownerDocument&&c.ownerDocument.defaultView||window).getSelection(),c={anchorNode:c.anchorNode,anchorOffset:c.anchorOffset,focusNode:c.focusNode,focusOffset:c.focusOffset}),zl&&Nl(zl,c)||(zl=c,c=fu(jd,"onSelect"),0<c.length&&(r=new Sc("onSelect","select",null,r,o),n.push({event:r,listeners:c}),r.target=po)))}function mi(n,r){var o={};return o[n.toLowerCase()]=r.toLowerCase(),o["Webkit"+n]="webkit"+r,o["Moz"+n]="moz"+r,o}var ho={animationend:mi("Animation","AnimationEnd"),animationiteration:mi("Animation","AnimationIteration"),animationstart:mi("Animation","AnimationStart"),transitionrun:mi("Transition","TransitionRun"),transitionstart:mi("Transition","TransitionStart"),transitioncancel:mi("Transition","TransitionCancel"),transitionend:mi("Transition","TransitionEnd")},Nd={},Zg={};Wr&&(Zg=document.createElement("div").style,"AnimationEvent"in window||(delete ho.animationend.animation,delete ho.animationiteration.animation,delete ho.animationstart.animation),"TransitionEvent"in window||delete ho.transitionend.transition);function gi(n){if(Nd[n])return Nd[n];if(!ho[n])return n;var r=ho[n],o;for(o in r)if(r.hasOwnProperty(o)&&o in Zg)return Nd[n]=r[o];return n}var ev=gi("animationend"),tv=gi("animationiteration"),nv=gi("animationstart"),cE=gi("transitionrun"),uE=gi("transitionstart"),fE=gi("transitioncancel"),rv=gi("transitionend"),av=new Map,zd="abort auxClick beforeToggle cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");zd.push("scrollEnd");function vr(n,r){av.set(n,r),pi(r,[n])}var wc=typeof reportError=="function"?reportError:function(n){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var r=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof n=="object"&&n!==null&&typeof n.message=="string"?String(n.message):String(n),error:n});if(!window.dispatchEvent(r))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",n);return}console.error(n)},Gn=[],mo=0,Dd=0;function Ac(){for(var n=mo,r=Dd=mo=0;r<n;){var o=Gn[r];Gn[r++]=null;var c=Gn[r];Gn[r++]=null;var p=Gn[r];Gn[r++]=null;var g=Gn[r];if(Gn[r++]=null,c!==null&&p!==null){var E=c.pending;E===null?p.next=p:(p.next=E.next,E.next=p),c.pending=p}g!==0&&iv(o,p,g)}}function Rc(n,r,o,c){Gn[mo++]=n,Gn[mo++]=r,Gn[mo++]=o,Gn[mo++]=c,Dd|=c,n.lanes|=c,n=n.alternate,n!==null&&(n.lanes|=c)}function Md(n,r,o,c){return Rc(n,r,o,c),Tc(n)}function vi(n,r){return Rc(n,null,null,r),Tc(n)}function iv(n,r,o){n.lanes|=o;var c=n.alternate;c!==null&&(c.lanes|=o);for(var p=!1,g=n.return;g!==null;)g.childLanes|=o,c=g.alternate,c!==null&&(c.childLanes|=o),g.tag===22&&(n=g.stateNode,n===null||n._visibility&1||(p=!0)),n=g,g=g.return;return n.tag===3?(g=n.stateNode,p&&r!==null&&(p=31-rn(o),n=g.hiddenUpdates,c=n[p],c===null?n[p]=[r]:c.push(r),r.lane=o|536870912),g):null}function Tc(n){if(50<ns)throw ns=0,qp=null,Error(i(185));for(var r=n.return;r!==null;)n=r,r=n.return;return n.tag===3?n.stateNode:null}var go={};function dE(n,r,o,c){this.tag=n,this.key=o,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=r,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=c,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Tn(n,r,o,c){return new dE(n,r,o,c)}function Bd(n){return n=n.prototype,!(!n||!n.isReactComponent)}function Kr(n,r){var o=n.alternate;return o===null?(o=Tn(n.tag,r,n.key,n.mode),o.elementType=n.elementType,o.type=n.type,o.stateNode=n.stateNode,o.alternate=n,n.alternate=o):(o.pendingProps=r,o.type=n.type,o.flags=0,o.subtreeFlags=0,o.deletions=null),o.flags=n.flags&65011712,o.childLanes=n.childLanes,o.lanes=n.lanes,o.child=n.child,o.memoizedProps=n.memoizedProps,o.memoizedState=n.memoizedState,o.updateQueue=n.updateQueue,r=n.dependencies,o.dependencies=r===null?null:{lanes:r.lanes,firstContext:r.firstContext},o.sibling=n.sibling,o.index=n.index,o.ref=n.ref,o.refCleanup=n.refCleanup,o}function ov(n,r){n.flags&=65011714;var o=n.alternate;return o===null?(n.childLanes=0,n.lanes=r,n.child=null,n.subtreeFlags=0,n.memoizedProps=null,n.memoizedState=null,n.updateQueue=null,n.dependencies=null,n.stateNode=null):(n.childLanes=o.childLanes,n.lanes=o.lanes,n.child=o.child,n.subtreeFlags=0,n.deletions=null,n.memoizedProps=o.memoizedProps,n.memoizedState=o.memoizedState,n.updateQueue=o.updateQueue,n.type=o.type,r=o.dependencies,n.dependencies=r===null?null:{lanes:r.lanes,firstContext:r.firstContext}),n}function $c(n,r,o,c,p,g){var E=0;if(c=n,typeof n=="function")Bd(n)&&(E=1);else if(typeof n=="string")E=vw(n,o,ce.current)?26:n==="html"||n==="head"||n==="body"?27:5;else e:switch(n){case Q:return n=Tn(31,o,r,p),n.elementType=Q,n.lanes=g,n;case b:return yi(o.children,p,g,r);case A:E=8,p|=24;break;case j:return n=Tn(12,o,r,p|2),n.elementType=j,n.lanes=g,n;case T:return n=Tn(13,o,r,p),n.elementType=T,n.lanes=g,n;case z:return n=Tn(19,o,r,p),n.elementType=z,n.lanes=g,n;default:if(typeof n=="object"&&n!==null)switch(n.$$typeof){case R:E=10;break e;case _:E=9;break e;case N:E=11;break e;case D:E=14;break e;case V:E=16,c=null;break e}E=29,o=Error(i(130,n===null?"null":typeof n,"")),c=null}return r=Tn(E,o,r,p),r.elementType=n,r.type=c,r.lanes=g,r}function yi(n,r,o,c){return n=Tn(7,n,c,r),n.lanes=o,n}function Ld(n,r,o){return n=Tn(6,n,null,r),n.lanes=o,n}function lv(n){var r=Tn(18,null,null,0);return r.stateNode=n,r}function Pd(n,r,o){return r=Tn(4,n.children!==null?n.children:[],n.key,r),r.lanes=o,r.stateNode={containerInfo:n.containerInfo,pendingChildren:null,implementation:n.implementation},r}var sv=new WeakMap;function Wn(n,r){if(typeof n=="object"&&n!==null){var o=sv.get(n);return o!==void 0?o:(r={value:n,source:r,stack:cn(r)},sv.set(n,r),r)}return{value:n,source:r,stack:cn(r)}}var vo=[],yo=0,Oc=null,Dl=0,Kn=[],Xn=0,ja=null,$r=1,Or="";function Xr(n,r){vo[yo++]=Dl,vo[yo++]=Oc,Oc=n,Dl=r}function cv(n,r,o){Kn[Xn++]=$r,Kn[Xn++]=Or,Kn[Xn++]=ja,ja=n;var c=$r;n=Or;var p=32-rn(c)-1;c&=~(1<<p),o+=1;var g=32-rn(r)+p;if(30<g){var E=p-p%5;g=(c&(1<<E)-1).toString(32),c>>=E,p-=E,$r=1<<32-rn(r)+p|o<<p|c,Or=g+n}else $r=1<<g|o<<p|c,Or=n}function Id(n){n.return!==null&&(Xr(n,1),cv(n,1,0))}function Hd(n){for(;n===Oc;)Oc=vo[--yo],vo[yo]=null,Dl=vo[--yo],vo[yo]=null;for(;n===ja;)ja=Kn[--Xn],Kn[Xn]=null,Or=Kn[--Xn],Kn[Xn]=null,$r=Kn[--Xn],Kn[Xn]=null}function uv(n,r){Kn[Xn++]=$r,Kn[Xn++]=Or,Kn[Xn++]=ja,$r=r.id,Or=r.overflow,ja=n}var Vt=null,ct=null,Pe=!1,ka=null,Qn=!1,Ud=Error(i(519));function Na(n){var r=Error(i(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw Ml(Wn(r,n)),Ud}function fv(n){var r=n.stateNode,o=n.type,c=n.memoizedProps;switch(r[Ft]=n,r[fn]=c,o){case"dialog":Me("cancel",r),Me("close",r);break;case"iframe":case"object":case"embed":Me("load",r);break;case"video":case"audio":for(o=0;o<as.length;o++)Me(as[o],r);break;case"source":Me("error",r);break;case"img":case"image":case"link":Me("error",r),Me("load",r);break;case"details":Me("toggle",r);break;case"input":Me("invalid",r),wg(r,c.value,c.defaultValue,c.checked,c.defaultChecked,c.type,c.name,!0);break;case"select":Me("invalid",r);break;case"textarea":Me("invalid",r),Rg(r,c.value,c.defaultValue,c.children)}o=c.children,typeof o!="string"&&typeof o!="number"&&typeof o!="bigint"||r.textContent===""+o||c.suppressHydrationWarning===!0||$1(r.textContent,o)?(c.popover!=null&&(Me("beforetoggle",r),Me("toggle",r)),c.onScroll!=null&&Me("scroll",r),c.onScrollEnd!=null&&Me("scrollend",r),c.onClick!=null&&(r.onclick=Gr),r=!0):r=!1,r||Na(n,!0)}function dv(n){for(Vt=n.return;Vt;)switch(Vt.tag){case 5:case 31:case 13:Qn=!1;return;case 27:case 3:Qn=!0;return;default:Vt=Vt.return}}function bo(n){if(n!==Vt)return!1;if(!Pe)return dv(n),Pe=!0,!1;var r=n.tag,o;if((o=r!==3&&r!==27)&&((o=r===5)&&(o=n.type,o=!(o!=="form"&&o!=="button")||oh(n.type,n.memoizedProps)),o=!o),o&&ct&&Na(n),dv(n),r===13){if(n=n.memoizedState,n=n!==null?n.dehydrated:null,!n)throw Error(i(317));ct=B1(n)}else if(r===31){if(n=n.memoizedState,n=n!==null?n.dehydrated:null,!n)throw Error(i(317));ct=B1(n)}else r===27?(r=ct,Ga(n.type)?(n=fh,fh=null,ct=n):ct=r):ct=Vt?Zn(n.stateNode.nextSibling):null;return!0}function bi(){ct=Vt=null,Pe=!1}function Fd(){var n=ka;return n!==null&&(gn===null?gn=n:gn.push.apply(gn,n),ka=null),n}function Ml(n){ka===null?ka=[n]:ka.push(n)}var Vd=M(null),xi=null,Qr=null;function za(n,r,o){le(Vd,r._currentValue),r._currentValue=o}function Jr(n){n._currentValue=Vd.current,G(Vd)}function qd(n,r,o){for(;n!==null;){var c=n.alternate;if((n.childLanes&r)!==r?(n.childLanes|=r,c!==null&&(c.childLanes|=r)):c!==null&&(c.childLanes&r)!==r&&(c.childLanes|=r),n===o)break;n=n.return}}function Yd(n,r,o,c){var p=n.child;for(p!==null&&(p.return=n);p!==null;){var g=p.dependencies;if(g!==null){var E=p.child;g=g.firstContext;e:for(;g!==null;){var O=g;g=p;for(var B=0;B<r.length;B++)if(O.context===r[B]){g.lanes|=o,O=g.alternate,O!==null&&(O.lanes|=o),qd(g.return,o,n),c||(E=null);break e}g=O.next}}else if(p.tag===18){if(E=p.return,E===null)throw Error(i(341));E.lanes|=o,g=E.alternate,g!==null&&(g.lanes|=o),qd(E,o,n),E=null}else E=p.child;if(E!==null)E.return=p;else for(E=p;E!==null;){if(E===n){E=null;break}if(p=E.sibling,p!==null){p.return=E.return,E=p;break}E=E.return}p=E}}function xo(n,r,o,c){n=null;for(var p=r,g=!1;p!==null;){if(!g){if((p.flags&524288)!==0)g=!0;else if((p.flags&262144)!==0)break}if(p.tag===10){var E=p.alternate;if(E===null)throw Error(i(387));if(E=E.memoizedProps,E!==null){var O=p.type;Rn(p.pendingProps.value,E.value)||(n!==null?n.push(O):n=[O])}}else if(p===se.current){if(E=p.alternate,E===null)throw Error(i(387));E.memoizedState.memoizedState!==p.memoizedState.memoizedState&&(n!==null?n.push(cs):n=[cs])}p=p.return}n!==null&&Yd(r,n,o,c),r.flags|=262144}function _c(n){for(n=n.firstContext;n!==null;){if(!Rn(n.context._currentValue,n.memoizedValue))return!0;n=n.next}return!1}function Si(n){xi=n,Qr=null,n=n.dependencies,n!==null&&(n.firstContext=null)}function qt(n){return pv(xi,n)}function jc(n,r){return xi===null&&Si(n),pv(n,r)}function pv(n,r){var o=r._currentValue;if(r={context:r,memoizedValue:o,next:null},Qr===null){if(n===null)throw Error(i(308));Qr=r,n.dependencies={lanes:0,firstContext:r},n.flags|=524288}else Qr=Qr.next=r;return o}var pE=typeof AbortController<"u"?AbortController:function(){var n=[],r=this.signal={aborted:!1,addEventListener:function(o,c){n.push(c)}};this.abort=function(){r.aborted=!0,n.forEach(function(o){return o()})}},hE=e.unstable_scheduleCallback,mE=e.unstable_NormalPriority,_t={$$typeof:R,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function Gd(){return{controller:new pE,data:new Map,refCount:0}}function Bl(n){n.refCount--,n.refCount===0&&hE(mE,function(){n.controller.abort()})}var Ll=null,Wd=0,So=0,Co=null;function gE(n,r){if(Ll===null){var o=Ll=[];Wd=0,So=Qp(),Co={status:"pending",value:void 0,then:function(c){o.push(c)}}}return Wd++,r.then(hv,hv),r}function hv(){if(--Wd===0&&Ll!==null){Co!==null&&(Co.status="fulfilled");var n=Ll;Ll=null,So=0,Co=null;for(var r=0;r<n.length;r++)(0,n[r])()}}function vE(n,r){var o=[],c={status:"pending",value:null,reason:null,then:function(p){o.push(p)}};return n.then(function(){c.status="fulfilled",c.value=r;for(var p=0;p<o.length;p++)(0,o[p])(r)},function(p){for(c.status="rejected",c.reason=p,p=0;p<o.length;p++)(0,o[p])(void 0)}),c}var mv=k.S;k.S=function(n,r){Jy=At(),typeof r=="object"&&r!==null&&typeof r.then=="function"&&gE(n,r),mv!==null&&mv(n,r)};var Ci=M(null);function Kd(){var n=Ci.current;return n!==null?n:lt.pooledCache}function kc(n,r){r===null?le(Ci,Ci.current):le(Ci,r.pool)}function gv(){var n=Kd();return n===null?null:{parent:_t._currentValue,pool:n}}var Eo=Error(i(460)),Xd=Error(i(474)),Nc=Error(i(542)),zc={then:function(){}};function vv(n){return n=n.status,n==="fulfilled"||n==="rejected"}function yv(n,r,o){switch(o=n[o],o===void 0?n.push(r):o!==r&&(r.then(Gr,Gr),r=o),r.status){case"fulfilled":return r.value;case"rejected":throw n=r.reason,xv(n),n;default:if(typeof r.status=="string")r.then(Gr,Gr);else{if(n=lt,n!==null&&100<n.shellSuspendCounter)throw Error(i(482));n=r,n.status="pending",n.then(function(c){if(r.status==="pending"){var p=r;p.status="fulfilled",p.value=c}},function(c){if(r.status==="pending"){var p=r;p.status="rejected",p.reason=c}})}switch(r.status){case"fulfilled":return r.value;case"rejected":throw n=r.reason,xv(n),n}throw wi=r,Eo}}function Ei(n){try{var r=n._init;return r(n._payload)}catch(o){throw o!==null&&typeof o=="object"&&typeof o.then=="function"?(wi=o,Eo):o}}var wi=null;function bv(){if(wi===null)throw Error(i(459));var n=wi;return wi=null,n}function xv(n){if(n===Eo||n===Nc)throw Error(i(483))}var wo=null,Pl=0;function Dc(n){var r=Pl;return Pl+=1,wo===null&&(wo=[]),yv(wo,n,r)}function Il(n,r){r=r.props.ref,n.ref=r!==void 0?r:null}function Mc(n,r){throw r.$$typeof===S?Error(i(525)):(n=Object.prototype.toString.call(r),Error(i(31,n==="[object Object]"?"object with keys {"+Object.keys(r).join(", ")+"}":n)))}function Sv(n){function r(F,I){if(n){var W=F.deletions;W===null?(F.deletions=[I],F.flags|=16):W.push(I)}}function o(F,I){if(!n)return null;for(;I!==null;)r(F,I),I=I.sibling;return null}function c(F){for(var I=new Map;F!==null;)F.key!==null?I.set(F.key,F):I.set(F.index,F),F=F.sibling;return I}function p(F,I){return F=Kr(F,I),F.index=0,F.sibling=null,F}function g(F,I,W){return F.index=W,n?(W=F.alternate,W!==null?(W=W.index,W<I?(F.flags|=67108866,I):W):(F.flags|=67108866,I)):(F.flags|=1048576,I)}function E(F){return n&&F.alternate===null&&(F.flags|=67108866),F}function O(F,I,W,ae){return I===null||I.tag!==6?(I=Ld(W,F.mode,ae),I.return=F,I):(I=p(I,W),I.return=F,I)}function B(F,I,W,ae){var Se=W.type;return Se===b?ne(F,I,W.props.children,ae,W.key):I!==null&&(I.elementType===Se||typeof Se=="object"&&Se!==null&&Se.$$typeof===V&&Ei(Se)===I.type)?(I=p(I,W.props),Il(I,W),I.return=F,I):(I=$c(W.type,W.key,W.props,null,F.mode,ae),Il(I,W),I.return=F,I)}function K(F,I,W,ae){return I===null||I.tag!==4||I.stateNode.containerInfo!==W.containerInfo||I.stateNode.implementation!==W.implementation?(I=Pd(W,F.mode,ae),I.return=F,I):(I=p(I,W.children||[]),I.return=F,I)}function ne(F,I,W,ae,Se){return I===null||I.tag!==7?(I=yi(W,F.mode,ae,Se),I.return=F,I):(I=p(I,W),I.return=F,I)}function oe(F,I,W){if(typeof I=="string"&&I!==""||typeof I=="number"||typeof I=="bigint")return I=Ld(""+I,F.mode,W),I.return=F,I;if(typeof I=="object"&&I!==null){switch(I.$$typeof){case w:return W=$c(I.type,I.key,I.props,null,F.mode,W),Il(W,I),W.return=F,W;case x:return I=Pd(I,F.mode,W),I.return=F,I;case V:return I=Ei(I),oe(F,I,W)}if(Y(I)||$(I))return I=yi(I,F.mode,W,null),I.return=F,I;if(typeof I.then=="function")return oe(F,Dc(I),W);if(I.$$typeof===R)return oe(F,jc(F,I),W);Mc(F,I)}return null}function X(F,I,W,ae){var Se=I!==null?I.key:null;if(typeof W=="string"&&W!==""||typeof W=="number"||typeof W=="bigint")return Se!==null?null:O(F,I,""+W,ae);if(typeof W=="object"&&W!==null){switch(W.$$typeof){case w:return W.key===Se?B(F,I,W,ae):null;case x:return W.key===Se?K(F,I,W,ae):null;case V:return W=Ei(W),X(F,I,W,ae)}if(Y(W)||$(W))return Se!==null?null:ne(F,I,W,ae,null);if(typeof W.then=="function")return X(F,I,Dc(W),ae);if(W.$$typeof===R)return X(F,I,jc(F,W),ae);Mc(F,W)}return null}function te(F,I,W,ae,Se){if(typeof ae=="string"&&ae!==""||typeof ae=="number"||typeof ae=="bigint")return F=F.get(W)||null,O(I,F,""+ae,Se);if(typeof ae=="object"&&ae!==null){switch(ae.$$typeof){case w:return F=F.get(ae.key===null?W:ae.key)||null,B(I,F,ae,Se);case x:return F=F.get(ae.key===null?W:ae.key)||null,K(I,F,ae,Se);case V:return ae=Ei(ae),te(F,I,W,ae,Se)}if(Y(ae)||$(ae))return F=F.get(W)||null,ne(I,F,ae,Se,null);if(typeof ae.then=="function")return te(F,I,W,Dc(ae),Se);if(ae.$$typeof===R)return te(F,I,W,jc(I,ae),Se);Mc(I,ae)}return null}function ve(F,I,W,ae){for(var Se=null,Fe=null,be=I,je=I=0,Le=null;be!==null&&je<W.length;je++){be.index>je?(Le=be,be=null):Le=be.sibling;var Ve=X(F,be,W[je],ae);if(Ve===null){be===null&&(be=Le);break}n&&be&&Ve.alternate===null&&r(F,be),I=g(Ve,I,je),Fe===null?Se=Ve:Fe.sibling=Ve,Fe=Ve,be=Le}if(je===W.length)return o(F,be),Pe&&Xr(F,je),Se;if(be===null){for(;je<W.length;je++)be=oe(F,W[je],ae),be!==null&&(I=g(be,I,je),Fe===null?Se=be:Fe.sibling=be,Fe=be);return Pe&&Xr(F,je),Se}for(be=c(be);je<W.length;je++)Le=te(be,F,je,W[je],ae),Le!==null&&(n&&Le.alternate!==null&&be.delete(Le.key===null?je:Le.key),I=g(Le,I,je),Fe===null?Se=Le:Fe.sibling=Le,Fe=Le);return n&&be.forEach(function(Ja){return r(F,Ja)}),Pe&&Xr(F,je),Se}function Ee(F,I,W,ae){if(W==null)throw Error(i(151));for(var Se=null,Fe=null,be=I,je=I=0,Le=null,Ve=W.next();be!==null&&!Ve.done;je++,Ve=W.next()){be.index>je?(Le=be,be=null):Le=be.sibling;var Ja=X(F,be,Ve.value,ae);if(Ja===null){be===null&&(be=Le);break}n&&be&&Ja.alternate===null&&r(F,be),I=g(Ja,I,je),Fe===null?Se=Ja:Fe.sibling=Ja,Fe=Ja,be=Le}if(Ve.done)return o(F,be),Pe&&Xr(F,je),Se;if(be===null){for(;!Ve.done;je++,Ve=W.next())Ve=oe(F,Ve.value,ae),Ve!==null&&(I=g(Ve,I,je),Fe===null?Se=Ve:Fe.sibling=Ve,Fe=Ve);return Pe&&Xr(F,je),Se}for(be=c(be);!Ve.done;je++,Ve=W.next())Ve=te(be,F,je,Ve.value,ae),Ve!==null&&(n&&Ve.alternate!==null&&be.delete(Ve.key===null?je:Ve.key),I=g(Ve,I,je),Fe===null?Se=Ve:Fe.sibling=Ve,Fe=Ve);return n&&be.forEach(function($w){return r(F,$w)}),Pe&&Xr(F,je),Se}function at(F,I,W,ae){if(typeof W=="object"&&W!==null&&W.type===b&&W.key===null&&(W=W.props.children),typeof W=="object"&&W!==null){switch(W.$$typeof){case w:e:{for(var Se=W.key;I!==null;){if(I.key===Se){if(Se=W.type,Se===b){if(I.tag===7){o(F,I.sibling),ae=p(I,W.props.children),ae.return=F,F=ae;break e}}else if(I.elementType===Se||typeof Se=="object"&&Se!==null&&Se.$$typeof===V&&Ei(Se)===I.type){o(F,I.sibling),ae=p(I,W.props),Il(ae,W),ae.return=F,F=ae;break e}o(F,I);break}else r(F,I);I=I.sibling}W.type===b?(ae=yi(W.props.children,F.mode,ae,W.key),ae.return=F,F=ae):(ae=$c(W.type,W.key,W.props,null,F.mode,ae),Il(ae,W),ae.return=F,F=ae)}return E(F);case x:e:{for(Se=W.key;I!==null;){if(I.key===Se)if(I.tag===4&&I.stateNode.containerInfo===W.containerInfo&&I.stateNode.implementation===W.implementation){o(F,I.sibling),ae=p(I,W.children||[]),ae.return=F,F=ae;break e}else{o(F,I);break}else r(F,I);I=I.sibling}ae=Pd(W,F.mode,ae),ae.return=F,F=ae}return E(F);case V:return W=Ei(W),at(F,I,W,ae)}if(Y(W))return ve(F,I,W,ae);if($(W)){if(Se=$(W),typeof Se!="function")throw Error(i(150));return W=Se.call(W),Ee(F,I,W,ae)}if(typeof W.then=="function")return at(F,I,Dc(W),ae);if(W.$$typeof===R)return at(F,I,jc(F,W),ae);Mc(F,W)}return typeof W=="string"&&W!==""||typeof W=="number"||typeof W=="bigint"?(W=""+W,I!==null&&I.tag===6?(o(F,I.sibling),ae=p(I,W),ae.return=F,F=ae):(o(F,I),ae=Ld(W,F.mode,ae),ae.return=F,F=ae),E(F)):o(F,I)}return function(F,I,W,ae){try{Pl=0;var Se=at(F,I,W,ae);return wo=null,Se}catch(be){if(be===Eo||be===Nc)throw be;var Fe=Tn(29,be,null,F.mode);return Fe.lanes=ae,Fe.return=F,Fe}}}var Ai=Sv(!0),Cv=Sv(!1),Da=!1;function Qd(n){n.updateQueue={baseState:n.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function Jd(n,r){n=n.updateQueue,r.updateQueue===n&&(r.updateQueue={baseState:n.baseState,firstBaseUpdate:n.firstBaseUpdate,lastBaseUpdate:n.lastBaseUpdate,shared:n.shared,callbacks:null})}function Ma(n){return{lane:n,tag:0,payload:null,callback:null,next:null}}function Ba(n,r,o){var c=n.updateQueue;if(c===null)return null;if(c=c.shared,(qe&2)!==0){var p=c.pending;return p===null?r.next=r:(r.next=p.next,p.next=r),c.pending=r,r=Tc(n),iv(n,null,o),r}return Rc(n,c,r,o),Tc(n)}function Hl(n,r,o){if(r=r.updateQueue,r!==null&&(r=r.shared,(o&4194048)!==0)){var c=r.lanes;c&=n.pendingLanes,o|=c,r.lanes=o,pg(n,o)}}function Zd(n,r){var o=n.updateQueue,c=n.alternate;if(c!==null&&(c=c.updateQueue,o===c)){var p=null,g=null;if(o=o.firstBaseUpdate,o!==null){do{var E={lane:o.lane,tag:o.tag,payload:o.payload,callback:null,next:null};g===null?p=g=E:g=g.next=E,o=o.next}while(o!==null);g===null?p=g=r:g=g.next=r}else p=g=r;o={baseState:c.baseState,firstBaseUpdate:p,lastBaseUpdate:g,shared:c.shared,callbacks:c.callbacks},n.updateQueue=o;return}n=o.lastBaseUpdate,n===null?o.firstBaseUpdate=r:n.next=r,o.lastBaseUpdate=r}var ep=!1;function Ul(){if(ep){var n=Co;if(n!==null)throw n}}function Fl(n,r,o,c){ep=!1;var p=n.updateQueue;Da=!1;var g=p.firstBaseUpdate,E=p.lastBaseUpdate,O=p.shared.pending;if(O!==null){p.shared.pending=null;var B=O,K=B.next;B.next=null,E===null?g=K:E.next=K,E=B;var ne=n.alternate;ne!==null&&(ne=ne.updateQueue,O=ne.lastBaseUpdate,O!==E&&(O===null?ne.firstBaseUpdate=K:O.next=K,ne.lastBaseUpdate=B))}if(g!==null){var oe=p.baseState;E=0,ne=K=B=null,O=g;do{var X=O.lane&-536870913,te=X!==O.lane;if(te?(Be&X)===X:(c&X)===X){X!==0&&X===So&&(ep=!0),ne!==null&&(ne=ne.next={lane:0,tag:O.tag,payload:O.payload,callback:null,next:null});e:{var ve=n,Ee=O;X=r;var at=o;switch(Ee.tag){case 1:if(ve=Ee.payload,typeof ve=="function"){oe=ve.call(at,oe,X);break e}oe=ve;break e;case 3:ve.flags=ve.flags&-65537|128;case 0:if(ve=Ee.payload,X=typeof ve=="function"?ve.call(at,oe,X):ve,X==null)break e;oe=v({},oe,X);break e;case 2:Da=!0}}X=O.callback,X!==null&&(n.flags|=64,te&&(n.flags|=8192),te=p.callbacks,te===null?p.callbacks=[X]:te.push(X))}else te={lane:X,tag:O.tag,payload:O.payload,callback:O.callback,next:null},ne===null?(K=ne=te,B=oe):ne=ne.next=te,E|=X;if(O=O.next,O===null){if(O=p.shared.pending,O===null)break;te=O,O=te.next,te.next=null,p.lastBaseUpdate=te,p.shared.pending=null}}while(!0);ne===null&&(B=oe),p.baseState=B,p.firstBaseUpdate=K,p.lastBaseUpdate=ne,g===null&&(p.shared.lanes=0),Ua|=E,n.lanes=E,n.memoizedState=oe}}function Ev(n,r){if(typeof n!="function")throw Error(i(191,n));n.call(r)}function wv(n,r){var o=n.callbacks;if(o!==null)for(n.callbacks=null,n=0;n<o.length;n++)Ev(o[n],r)}var Ao=M(null),Bc=M(0);function Av(n,r){n=la,le(Bc,n),le(Ao,r),la=n|r.baseLanes}function tp(){le(Bc,la),le(Ao,Ao.current)}function np(){la=Bc.current,G(Ao),G(Bc)}var $n=M(null),Jn=null;function La(n){var r=n.alternate;le(Rt,Rt.current&1),le($n,n),Jn===null&&(r===null||Ao.current!==null||r.memoizedState!==null)&&(Jn=n)}function rp(n){le(Rt,Rt.current),le($n,n),Jn===null&&(Jn=n)}function Rv(n){n.tag===22?(le(Rt,Rt.current),le($n,n),Jn===null&&(Jn=n)):Pa()}function Pa(){le(Rt,Rt.current),le($n,$n.current)}function On(n){G($n),Jn===n&&(Jn=null),G(Rt)}var Rt=M(0);function Lc(n){for(var r=n;r!==null;){if(r.tag===13){var o=r.memoizedState;if(o!==null&&(o=o.dehydrated,o===null||ch(o)||uh(o)))return r}else if(r.tag===19&&(r.memoizedProps.revealOrder==="forwards"||r.memoizedProps.revealOrder==="backwards"||r.memoizedProps.revealOrder==="unstable_legacy-backwards"||r.memoizedProps.revealOrder==="together")){if((r.flags&128)!==0)return r}else if(r.child!==null){r.child.return=r,r=r.child;continue}if(r===n)break;for(;r.sibling===null;){if(r.return===null||r.return===n)return null;r=r.return}r.sibling.return=r.return,r=r.sibling}return null}var Zr=0,$e=null,nt=null,jt=null,Pc=!1,Ro=!1,Ri=!1,Ic=0,Vl=0,To=null,yE=0;function vt(){throw Error(i(321))}function ap(n,r){if(r===null)return!1;for(var o=0;o<r.length&&o<n.length;o++)if(!Rn(n[o],r[o]))return!1;return!0}function ip(n,r,o,c,p,g){return Zr=g,$e=r,r.memoizedState=null,r.updateQueue=null,r.lanes=0,k.H=n===null||n.memoizedState===null?cy:xp,Ri=!1,g=o(c,p),Ri=!1,Ro&&(g=$v(r,o,c,p)),Tv(n),g}function Tv(n){k.H=Gl;var r=nt!==null&&nt.next!==null;if(Zr=0,jt=nt=$e=null,Pc=!1,Vl=0,To=null,r)throw Error(i(300));n===null||kt||(n=n.dependencies,n!==null&&_c(n)&&(kt=!0))}function $v(n,r,o,c){$e=n;var p=0;do{if(Ro&&(To=null),Vl=0,Ro=!1,25<=p)throw Error(i(301));if(p+=1,jt=nt=null,n.updateQueue!=null){var g=n.updateQueue;g.lastEffect=null,g.events=null,g.stores=null,g.memoCache!=null&&(g.memoCache.index=0)}k.H=uy,g=r(o,c)}while(Ro);return g}function bE(){var n=k.H,r=n.useState()[0];return r=typeof r.then=="function"?ql(r):r,n=n.useState()[0],(nt!==null?nt.memoizedState:null)!==n&&($e.flags|=1024),r}function op(){var n=Ic!==0;return Ic=0,n}function lp(n,r,o){r.updateQueue=n.updateQueue,r.flags&=-2053,n.lanes&=~o}function sp(n){if(Pc){for(n=n.memoizedState;n!==null;){var r=n.queue;r!==null&&(r.pending=null),n=n.next}Pc=!1}Zr=0,jt=nt=$e=null,Ro=!1,Vl=Ic=0,To=null}function an(){var n={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return jt===null?$e.memoizedState=jt=n:jt=jt.next=n,jt}function Tt(){if(nt===null){var n=$e.alternate;n=n!==null?n.memoizedState:null}else n=nt.next;var r=jt===null?$e.memoizedState:jt.next;if(r!==null)jt=r,nt=n;else{if(n===null)throw $e.alternate===null?Error(i(467)):Error(i(310));nt=n,n={memoizedState:nt.memoizedState,baseState:nt.baseState,baseQueue:nt.baseQueue,queue:nt.queue,next:null},jt===null?$e.memoizedState=jt=n:jt=jt.next=n}return jt}function Hc(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function ql(n){var r=Vl;return Vl+=1,To===null&&(To=[]),n=yv(To,n,r),r=$e,(jt===null?r.memoizedState:jt.next)===null&&(r=r.alternate,k.H=r===null||r.memoizedState===null?cy:xp),n}function Uc(n){if(n!==null&&typeof n=="object"){if(typeof n.then=="function")return ql(n);if(n.$$typeof===R)return qt(n)}throw Error(i(438,String(n)))}function cp(n){var r=null,o=$e.updateQueue;if(o!==null&&(r=o.memoCache),r==null){var c=$e.alternate;c!==null&&(c=c.updateQueue,c!==null&&(c=c.memoCache,c!=null&&(r={data:c.data.map(function(p){return p.slice()}),index:0})))}if(r==null&&(r={data:[],index:0}),o===null&&(o=Hc(),$e.updateQueue=o),o.memoCache=r,o=r.data[r.index],o===void 0)for(o=r.data[r.index]=Array(n),c=0;c<n;c++)o[c]=Z;return r.index++,o}function ea(n,r){return typeof r=="function"?r(n):r}function Fc(n){var r=Tt();return up(r,nt,n)}function up(n,r,o){var c=n.queue;if(c===null)throw Error(i(311));c.lastRenderedReducer=o;var p=n.baseQueue,g=c.pending;if(g!==null){if(p!==null){var E=p.next;p.next=g.next,g.next=E}r.baseQueue=p=g,c.pending=null}if(g=n.baseState,p===null)n.memoizedState=g;else{r=p.next;var O=E=null,B=null,K=r,ne=!1;do{var oe=K.lane&-536870913;if(oe!==K.lane?(Be&oe)===oe:(Zr&oe)===oe){var X=K.revertLane;if(X===0)B!==null&&(B=B.next={lane:0,revertLane:0,gesture:null,action:K.action,hasEagerState:K.hasEagerState,eagerState:K.eagerState,next:null}),oe===So&&(ne=!0);else if((Zr&X)===X){K=K.next,X===So&&(ne=!0);continue}else oe={lane:0,revertLane:K.revertLane,gesture:null,action:K.action,hasEagerState:K.hasEagerState,eagerState:K.eagerState,next:null},B===null?(O=B=oe,E=g):B=B.next=oe,$e.lanes|=X,Ua|=X;oe=K.action,Ri&&o(g,oe),g=K.hasEagerState?K.eagerState:o(g,oe)}else X={lane:oe,revertLane:K.revertLane,gesture:K.gesture,action:K.action,hasEagerState:K.hasEagerState,eagerState:K.eagerState,next:null},B===null?(O=B=X,E=g):B=B.next=X,$e.lanes|=oe,Ua|=oe;K=K.next}while(K!==null&&K!==r);if(B===null?E=g:B.next=O,!Rn(g,n.memoizedState)&&(kt=!0,ne&&(o=Co,o!==null)))throw o;n.memoizedState=g,n.baseState=E,n.baseQueue=B,c.lastRenderedState=g}return p===null&&(c.lanes=0),[n.memoizedState,c.dispatch]}function fp(n){var r=Tt(),o=r.queue;if(o===null)throw Error(i(311));o.lastRenderedReducer=n;var c=o.dispatch,p=o.pending,g=r.memoizedState;if(p!==null){o.pending=null;var E=p=p.next;do g=n(g,E.action),E=E.next;while(E!==p);Rn(g,r.memoizedState)||(kt=!0),r.memoizedState=g,r.baseQueue===null&&(r.baseState=g),o.lastRenderedState=g}return[g,c]}function Ov(n,r,o){var c=$e,p=Tt(),g=Pe;if(g){if(o===void 0)throw Error(i(407));o=o()}else o=r();var E=!Rn((nt||p).memoizedState,o);if(E&&(p.memoizedState=o,kt=!0),p=p.queue,hp(kv.bind(null,c,p,n),[n]),p.getSnapshot!==r||E||jt!==null&&jt.memoizedState.tag&1){if(c.flags|=2048,$o(9,{destroy:void 0},jv.bind(null,c,p,o,r),null),lt===null)throw Error(i(349));g||(Zr&127)!==0||_v(c,r,o)}return o}function _v(n,r,o){n.flags|=16384,n={getSnapshot:r,value:o},r=$e.updateQueue,r===null?(r=Hc(),$e.updateQueue=r,r.stores=[n]):(o=r.stores,o===null?r.stores=[n]:o.push(n))}function jv(n,r,o,c){r.value=o,r.getSnapshot=c,Nv(r)&&zv(n)}function kv(n,r,o){return o(function(){Nv(r)&&zv(n)})}function Nv(n){var r=n.getSnapshot;n=n.value;try{var o=r();return!Rn(n,o)}catch{return!0}}function zv(n){var r=vi(n,2);r!==null&&vn(r,n,2)}function dp(n){var r=an();if(typeof n=="function"){var o=n;if(n=o(),Ri){st(!0);try{o()}finally{st(!1)}}}return r.memoizedState=r.baseState=n,r.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:ea,lastRenderedState:n},r}function Dv(n,r,o,c){return n.baseState=o,up(n,nt,typeof c=="function"?c:ea)}function xE(n,r,o,c,p){if(Yc(n))throw Error(i(485));if(n=r.action,n!==null){var g={payload:p,action:n,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(E){g.listeners.push(E)}};k.T!==null?o(!0):g.isTransition=!1,c(g),o=r.pending,o===null?(g.next=r.pending=g,Mv(r,g)):(g.next=o.next,r.pending=o.next=g)}}function Mv(n,r){var o=r.action,c=r.payload,p=n.state;if(r.isTransition){var g=k.T,E={};k.T=E;try{var O=o(p,c),B=k.S;B!==null&&B(E,O),Bv(n,r,O)}catch(K){pp(n,r,K)}finally{g!==null&&E.types!==null&&(g.types=E.types),k.T=g}}else try{g=o(p,c),Bv(n,r,g)}catch(K){pp(n,r,K)}}function Bv(n,r,o){o!==null&&typeof o=="object"&&typeof o.then=="function"?o.then(function(c){Lv(n,r,c)},function(c){return pp(n,r,c)}):Lv(n,r,o)}function Lv(n,r,o){r.status="fulfilled",r.value=o,Pv(r),n.state=o,r=n.pending,r!==null&&(o=r.next,o===r?n.pending=null:(o=o.next,r.next=o,Mv(n,o)))}function pp(n,r,o){var c=n.pending;if(n.pending=null,c!==null){c=c.next;do r.status="rejected",r.reason=o,Pv(r),r=r.next;while(r!==c)}n.action=null}function Pv(n){n=n.listeners;for(var r=0;r<n.length;r++)(0,n[r])()}function Iv(n,r){return r}function Hv(n,r){if(Pe){var o=lt.formState;if(o!==null){e:{var c=$e;if(Pe){if(ct){t:{for(var p=ct,g=Qn;p.nodeType!==8;){if(!g){p=null;break t}if(p=Zn(p.nextSibling),p===null){p=null;break t}}g=p.data,p=g==="F!"||g==="F"?p:null}if(p){ct=Zn(p.nextSibling),c=p.data==="F!";break e}}Na(c)}c=!1}c&&(r=o[0])}}return o=an(),o.memoizedState=o.baseState=r,c={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Iv,lastRenderedState:r},o.queue=c,o=oy.bind(null,$e,c),c.dispatch=o,c=dp(!1),g=bp.bind(null,$e,!1,c.queue),c=an(),p={state:r,dispatch:null,action:n,pending:null},c.queue=p,o=xE.bind(null,$e,p,g,o),p.dispatch=o,c.memoizedState=n,[r,o,!1]}function Uv(n){var r=Tt();return Fv(r,nt,n)}function Fv(n,r,o){if(r=up(n,r,Iv)[0],n=Fc(ea)[0],typeof r=="object"&&r!==null&&typeof r.then=="function")try{var c=ql(r)}catch(E){throw E===Eo?Nc:E}else c=r;r=Tt();var p=r.queue,g=p.dispatch;return o!==r.memoizedState&&($e.flags|=2048,$o(9,{destroy:void 0},SE.bind(null,p,o),null)),[c,g,n]}function SE(n,r){n.action=r}function Vv(n){var r=Tt(),o=nt;if(o!==null)return Fv(r,o,n);Tt(),r=r.memoizedState,o=Tt();var c=o.queue.dispatch;return o.memoizedState=n,[r,c,!1]}function $o(n,r,o,c){return n={tag:n,create:o,deps:c,inst:r,next:null},r=$e.updateQueue,r===null&&(r=Hc(),$e.updateQueue=r),o=r.lastEffect,o===null?r.lastEffect=n.next=n:(c=o.next,o.next=n,n.next=c,r.lastEffect=n),n}function qv(){return Tt().memoizedState}function Vc(n,r,o,c){var p=an();$e.flags|=n,p.memoizedState=$o(1|r,{destroy:void 0},o,c===void 0?null:c)}function qc(n,r,o,c){var p=Tt();c=c===void 0?null:c;var g=p.memoizedState.inst;nt!==null&&c!==null&&ap(c,nt.memoizedState.deps)?p.memoizedState=$o(r,g,o,c):($e.flags|=n,p.memoizedState=$o(1|r,g,o,c))}function Yv(n,r){Vc(8390656,8,n,r)}function hp(n,r){qc(2048,8,n,r)}function CE(n){$e.flags|=4;var r=$e.updateQueue;if(r===null)r=Hc(),$e.updateQueue=r,r.events=[n];else{var o=r.events;o===null?r.events=[n]:o.push(n)}}function Gv(n){var r=Tt().memoizedState;return CE({ref:r,nextImpl:n}),function(){if((qe&2)!==0)throw Error(i(440));return r.impl.apply(void 0,arguments)}}function Wv(n,r){return qc(4,2,n,r)}function Kv(n,r){return qc(4,4,n,r)}function Xv(n,r){if(typeof r=="function"){n=n();var o=r(n);return function(){typeof o=="function"?o():r(null)}}if(r!=null)return n=n(),r.current=n,function(){r.current=null}}function Qv(n,r,o){o=o!=null?o.concat([n]):null,qc(4,4,Xv.bind(null,r,n),o)}function mp(){}function Jv(n,r){var o=Tt();r=r===void 0?null:r;var c=o.memoizedState;return r!==null&&ap(r,c[1])?c[0]:(o.memoizedState=[n,r],n)}function Zv(n,r){var o=Tt();r=r===void 0?null:r;var c=o.memoizedState;if(r!==null&&ap(r,c[1]))return c[0];if(c=n(),Ri){st(!0);try{n()}finally{st(!1)}}return o.memoizedState=[c,r],c}function gp(n,r,o){return o===void 0||(Zr&1073741824)!==0&&(Be&261930)===0?n.memoizedState=r:(n.memoizedState=o,n=e1(),$e.lanes|=n,Ua|=n,o)}function ey(n,r,o,c){return Rn(o,r)?o:Ao.current!==null?(n=gp(n,o,c),Rn(n,r)||(kt=!0),n):(Zr&42)===0||(Zr&1073741824)!==0&&(Be&261930)===0?(kt=!0,n.memoizedState=o):(n=e1(),$e.lanes|=n,Ua|=n,r)}function ty(n,r,o,c,p){var g=P.p;P.p=g!==0&&8>g?g:8;var E=k.T,O={};k.T=O,bp(n,!1,r,o);try{var B=p(),K=k.S;if(K!==null&&K(O,B),B!==null&&typeof B=="object"&&typeof B.then=="function"){var ne=vE(B,c);Yl(n,r,ne,kn(n))}else Yl(n,r,c,kn(n))}catch(oe){Yl(n,r,{then:function(){},status:"rejected",reason:oe},kn())}finally{P.p=g,E!==null&&O.types!==null&&(E.types=O.types),k.T=E}}function EE(){}function vp(n,r,o,c){if(n.tag!==5)throw Error(i(476));var p=ny(n).queue;ty(n,p,r,J,o===null?EE:function(){return ry(n),o(c)})}function ny(n){var r=n.memoizedState;if(r!==null)return r;r={memoizedState:J,baseState:J,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:ea,lastRenderedState:J},next:null};var o={};return r.next={memoizedState:o,baseState:o,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:ea,lastRenderedState:o},next:null},n.memoizedState=r,n=n.alternate,n!==null&&(n.memoizedState=r),r}function ry(n){var r=ny(n);r.next===null&&(r=n.alternate.memoizedState),Yl(n,r.next.queue,{},kn())}function yp(){return qt(cs)}function ay(){return Tt().memoizedState}function iy(){return Tt().memoizedState}function wE(n){for(var r=n.return;r!==null;){switch(r.tag){case 24:case 3:var o=kn();n=Ma(o);var c=Ba(r,n,o);c!==null&&(vn(c,r,o),Hl(c,r,o)),r={cache:Gd()},n.payload=r;return}r=r.return}}function AE(n,r,o){var c=kn();o={lane:c,revertLane:0,gesture:null,action:o,hasEagerState:!1,eagerState:null,next:null},Yc(n)?ly(r,o):(o=Md(n,r,o,c),o!==null&&(vn(o,n,c),sy(o,r,c)))}function oy(n,r,o){var c=kn();Yl(n,r,o,c)}function Yl(n,r,o,c){var p={lane:c,revertLane:0,gesture:null,action:o,hasEagerState:!1,eagerState:null,next:null};if(Yc(n))ly(r,p);else{var g=n.alternate;if(n.lanes===0&&(g===null||g.lanes===0)&&(g=r.lastRenderedReducer,g!==null))try{var E=r.lastRenderedState,O=g(E,o);if(p.hasEagerState=!0,p.eagerState=O,Rn(O,E))return Rc(n,r,p,0),lt===null&&Ac(),!1}catch{}if(o=Md(n,r,p,c),o!==null)return vn(o,n,c),sy(o,r,c),!0}return!1}function bp(n,r,o,c){if(c={lane:2,revertLane:Qp(),gesture:null,action:c,hasEagerState:!1,eagerState:null,next:null},Yc(n)){if(r)throw Error(i(479))}else r=Md(n,o,c,2),r!==null&&vn(r,n,2)}function Yc(n){var r=n.alternate;return n===$e||r!==null&&r===$e}function ly(n,r){Ro=Pc=!0;var o=n.pending;o===null?r.next=r:(r.next=o.next,o.next=r),n.pending=r}function sy(n,r,o){if((o&4194048)!==0){var c=r.lanes;c&=n.pendingLanes,o|=c,r.lanes=o,pg(n,o)}}var Gl={readContext:qt,use:Uc,useCallback:vt,useContext:vt,useEffect:vt,useImperativeHandle:vt,useLayoutEffect:vt,useInsertionEffect:vt,useMemo:vt,useReducer:vt,useRef:vt,useState:vt,useDebugValue:vt,useDeferredValue:vt,useTransition:vt,useSyncExternalStore:vt,useId:vt,useHostTransitionStatus:vt,useFormState:vt,useActionState:vt,useOptimistic:vt,useMemoCache:vt,useCacheRefresh:vt};Gl.useEffectEvent=vt;var cy={readContext:qt,use:Uc,useCallback:function(n,r){return an().memoizedState=[n,r===void 0?null:r],n},useContext:qt,useEffect:Yv,useImperativeHandle:function(n,r,o){o=o!=null?o.concat([n]):null,Vc(4194308,4,Xv.bind(null,r,n),o)},useLayoutEffect:function(n,r){return Vc(4194308,4,n,r)},useInsertionEffect:function(n,r){Vc(4,2,n,r)},useMemo:function(n,r){var o=an();r=r===void 0?null:r;var c=n();if(Ri){st(!0);try{n()}finally{st(!1)}}return o.memoizedState=[c,r],c},useReducer:function(n,r,o){var c=an();if(o!==void 0){var p=o(r);if(Ri){st(!0);try{o(r)}finally{st(!1)}}}else p=r;return c.memoizedState=c.baseState=p,n={pending:null,lanes:0,dispatch:null,lastRenderedReducer:n,lastRenderedState:p},c.queue=n,n=n.dispatch=AE.bind(null,$e,n),[c.memoizedState,n]},useRef:function(n){var r=an();return n={current:n},r.memoizedState=n},useState:function(n){n=dp(n);var r=n.queue,o=oy.bind(null,$e,r);return r.dispatch=o,[n.memoizedState,o]},useDebugValue:mp,useDeferredValue:function(n,r){var o=an();return gp(o,n,r)},useTransition:function(){var n=dp(!1);return n=ty.bind(null,$e,n.queue,!0,!1),an().memoizedState=n,[!1,n]},useSyncExternalStore:function(n,r,o){var c=$e,p=an();if(Pe){if(o===void 0)throw Error(i(407));o=o()}else{if(o=r(),lt===null)throw Error(i(349));(Be&127)!==0||_v(c,r,o)}p.memoizedState=o;var g={value:o,getSnapshot:r};return p.queue=g,Yv(kv.bind(null,c,g,n),[n]),c.flags|=2048,$o(9,{destroy:void 0},jv.bind(null,c,g,o,r),null),o},useId:function(){var n=an(),r=lt.identifierPrefix;if(Pe){var o=Or,c=$r;o=(c&~(1<<32-rn(c)-1)).toString(32)+o,r="_"+r+"R_"+o,o=Ic++,0<o&&(r+="H"+o.toString(32)),r+="_"}else o=yE++,r="_"+r+"r_"+o.toString(32)+"_";return n.memoizedState=r},useHostTransitionStatus:yp,useFormState:Hv,useActionState:Hv,useOptimistic:function(n){var r=an();r.memoizedState=r.baseState=n;var o={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return r.queue=o,r=bp.bind(null,$e,!0,o),o.dispatch=r,[n,r]},useMemoCache:cp,useCacheRefresh:function(){return an().memoizedState=wE.bind(null,$e)},useEffectEvent:function(n){var r=an(),o={impl:n};return r.memoizedState=o,function(){if((qe&2)!==0)throw Error(i(440));return o.impl.apply(void 0,arguments)}}},xp={readContext:qt,use:Uc,useCallback:Jv,useContext:qt,useEffect:hp,useImperativeHandle:Qv,useInsertionEffect:Wv,useLayoutEffect:Kv,useMemo:Zv,useReducer:Fc,useRef:qv,useState:function(){return Fc(ea)},useDebugValue:mp,useDeferredValue:function(n,r){var o=Tt();return ey(o,nt.memoizedState,n,r)},useTransition:function(){var n=Fc(ea)[0],r=Tt().memoizedState;return[typeof n=="boolean"?n:ql(n),r]},useSyncExternalStore:Ov,useId:ay,useHostTransitionStatus:yp,useFormState:Uv,useActionState:Uv,useOptimistic:function(n,r){var o=Tt();return Dv(o,nt,n,r)},useMemoCache:cp,useCacheRefresh:iy};xp.useEffectEvent=Gv;var uy={readContext:qt,use:Uc,useCallback:Jv,useContext:qt,useEffect:hp,useImperativeHandle:Qv,useInsertionEffect:Wv,useLayoutEffect:Kv,useMemo:Zv,useReducer:fp,useRef:qv,useState:function(){return fp(ea)},useDebugValue:mp,useDeferredValue:function(n,r){var o=Tt();return nt===null?gp(o,n,r):ey(o,nt.memoizedState,n,r)},useTransition:function(){var n=fp(ea)[0],r=Tt().memoizedState;return[typeof n=="boolean"?n:ql(n),r]},useSyncExternalStore:Ov,useId:ay,useHostTransitionStatus:yp,useFormState:Vv,useActionState:Vv,useOptimistic:function(n,r){var o=Tt();return nt!==null?Dv(o,nt,n,r):(o.baseState=n,[n,o.queue.dispatch])},useMemoCache:cp,useCacheRefresh:iy};uy.useEffectEvent=Gv;function Sp(n,r,o,c){r=n.memoizedState,o=o(c,r),o=o==null?r:v({},r,o),n.memoizedState=o,n.lanes===0&&(n.updateQueue.baseState=o)}var Cp={enqueueSetState:function(n,r,o){n=n._reactInternals;var c=kn(),p=Ma(c);p.payload=r,o!=null&&(p.callback=o),r=Ba(n,p,c),r!==null&&(vn(r,n,c),Hl(r,n,c))},enqueueReplaceState:function(n,r,o){n=n._reactInternals;var c=kn(),p=Ma(c);p.tag=1,p.payload=r,o!=null&&(p.callback=o),r=Ba(n,p,c),r!==null&&(vn(r,n,c),Hl(r,n,c))},enqueueForceUpdate:function(n,r){n=n._reactInternals;var o=kn(),c=Ma(o);c.tag=2,r!=null&&(c.callback=r),r=Ba(n,c,o),r!==null&&(vn(r,n,o),Hl(r,n,o))}};function fy(n,r,o,c,p,g,E){return n=n.stateNode,typeof n.shouldComponentUpdate=="function"?n.shouldComponentUpdate(c,g,E):r.prototype&&r.prototype.isPureReactComponent?!Nl(o,c)||!Nl(p,g):!0}function dy(n,r,o,c){n=r.state,typeof r.componentWillReceiveProps=="function"&&r.componentWillReceiveProps(o,c),typeof r.UNSAFE_componentWillReceiveProps=="function"&&r.UNSAFE_componentWillReceiveProps(o,c),r.state!==n&&Cp.enqueueReplaceState(r,r.state,null)}function Ti(n,r){var o=r;if("ref"in r){o={};for(var c in r)c!=="ref"&&(o[c]=r[c])}if(n=n.defaultProps){o===r&&(o=v({},o));for(var p in n)o[p]===void 0&&(o[p]=n[p])}return o}function py(n){wc(n)}function hy(n){console.error(n)}function my(n){wc(n)}function Gc(n,r){try{var o=n.onUncaughtError;o(r.value,{componentStack:r.stack})}catch(c){setTimeout(function(){throw c})}}function gy(n,r,o){try{var c=n.onCaughtError;c(o.value,{componentStack:o.stack,errorBoundary:r.tag===1?r.stateNode:null})}catch(p){setTimeout(function(){throw p})}}function Ep(n,r,o){return o=Ma(o),o.tag=3,o.payload={element:null},o.callback=function(){Gc(n,r)},o}function vy(n){return n=Ma(n),n.tag=3,n}function yy(n,r,o,c){var p=o.type.getDerivedStateFromError;if(typeof p=="function"){var g=c.value;n.payload=function(){return p(g)},n.callback=function(){gy(r,o,c)}}var E=o.stateNode;E!==null&&typeof E.componentDidCatch=="function"&&(n.callback=function(){gy(r,o,c),typeof p!="function"&&(Fa===null?Fa=new Set([this]):Fa.add(this));var O=c.stack;this.componentDidCatch(c.value,{componentStack:O!==null?O:""})})}function RE(n,r,o,c,p){if(o.flags|=32768,c!==null&&typeof c=="object"&&typeof c.then=="function"){if(r=o.alternate,r!==null&&xo(r,o,p,!0),o=$n.current,o!==null){switch(o.tag){case 31:case 13:return Jn===null?iu():o.alternate===null&&yt===0&&(yt=3),o.flags&=-257,o.flags|=65536,o.lanes=p,c===zc?o.flags|=16384:(r=o.updateQueue,r===null?o.updateQueue=new Set([c]):r.add(c),Wp(n,c,p)),!1;case 22:return o.flags|=65536,c===zc?o.flags|=16384:(r=o.updateQueue,r===null?(r={transitions:null,markerInstances:null,retryQueue:new Set([c])},o.updateQueue=r):(o=r.retryQueue,o===null?r.retryQueue=new Set([c]):o.add(c)),Wp(n,c,p)),!1}throw Error(i(435,o.tag))}return Wp(n,c,p),iu(),!1}if(Pe)return r=$n.current,r!==null?((r.flags&65536)===0&&(r.flags|=256),r.flags|=65536,r.lanes=p,c!==Ud&&(n=Error(i(422),{cause:c}),Ml(Wn(n,o)))):(c!==Ud&&(r=Error(i(423),{cause:c}),Ml(Wn(r,o))),n=n.current.alternate,n.flags|=65536,p&=-p,n.lanes|=p,c=Wn(c,o),p=Ep(n.stateNode,c,p),Zd(n,p),yt!==4&&(yt=2)),!1;var g=Error(i(520),{cause:c});if(g=Wn(g,o),ts===null?ts=[g]:ts.push(g),yt!==4&&(yt=2),r===null)return!0;c=Wn(c,o),o=r;do{switch(o.tag){case 3:return o.flags|=65536,n=p&-p,o.lanes|=n,n=Ep(o.stateNode,c,n),Zd(o,n),!1;case 1:if(r=o.type,g=o.stateNode,(o.flags&128)===0&&(typeof r.getDerivedStateFromError=="function"||g!==null&&typeof g.componentDidCatch=="function"&&(Fa===null||!Fa.has(g))))return o.flags|=65536,p&=-p,o.lanes|=p,p=vy(p),yy(p,n,o,c),Zd(o,p),!1}o=o.return}while(o!==null);return!1}var wp=Error(i(461)),kt=!1;function Yt(n,r,o,c){r.child=n===null?Cv(r,null,o,c):Ai(r,n.child,o,c)}function by(n,r,o,c,p){o=o.render;var g=r.ref;if("ref"in c){var E={};for(var O in c)O!=="ref"&&(E[O]=c[O])}else E=c;return Si(r),c=ip(n,r,o,E,g,p),O=op(),n!==null&&!kt?(lp(n,r,p),ta(n,r,p)):(Pe&&O&&Id(r),r.flags|=1,Yt(n,r,c,p),r.child)}function xy(n,r,o,c,p){if(n===null){var g=o.type;return typeof g=="function"&&!Bd(g)&&g.defaultProps===void 0&&o.compare===null?(r.tag=15,r.type=g,Sy(n,r,g,c,p)):(n=$c(o.type,null,c,r,r.mode,p),n.ref=r.ref,n.return=r,r.child=n)}if(g=n.child,!kp(n,p)){var E=g.memoizedProps;if(o=o.compare,o=o!==null?o:Nl,o(E,c)&&n.ref===r.ref)return ta(n,r,p)}return r.flags|=1,n=Kr(g,c),n.ref=r.ref,n.return=r,r.child=n}function Sy(n,r,o,c,p){if(n!==null){var g=n.memoizedProps;if(Nl(g,c)&&n.ref===r.ref)if(kt=!1,r.pendingProps=c=g,kp(n,p))(n.flags&131072)!==0&&(kt=!0);else return r.lanes=n.lanes,ta(n,r,p)}return Ap(n,r,o,c,p)}function Cy(n,r,o,c){var p=c.children,g=n!==null?n.memoizedState:null;if(n===null&&r.stateNode===null&&(r.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),c.mode==="hidden"){if((r.flags&128)!==0){if(g=g!==null?g.baseLanes|o:o,n!==null){for(c=r.child=n.child,p=0;c!==null;)p=p|c.lanes|c.childLanes,c=c.sibling;c=p&~g}else c=0,r.child=null;return Ey(n,r,g,o,c)}if((o&536870912)!==0)r.memoizedState={baseLanes:0,cachePool:null},n!==null&&kc(r,g!==null?g.cachePool:null),g!==null?Av(r,g):tp(),Rv(r);else return c=r.lanes=536870912,Ey(n,r,g!==null?g.baseLanes|o:o,o,c)}else g!==null?(kc(r,g.cachePool),Av(r,g),Pa(),r.memoizedState=null):(n!==null&&kc(r,null),tp(),Pa());return Yt(n,r,p,o),r.child}function Wl(n,r){return n!==null&&n.tag===22||r.stateNode!==null||(r.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),r.sibling}function Ey(n,r,o,c,p){var g=Kd();return g=g===null?null:{parent:_t._currentValue,pool:g},r.memoizedState={baseLanes:o,cachePool:g},n!==null&&kc(r,null),tp(),Rv(r),n!==null&&xo(n,r,c,!0),r.childLanes=p,null}function Wc(n,r){return r=Xc({mode:r.mode,children:r.children},n.mode),r.ref=n.ref,n.child=r,r.return=n,r}function wy(n,r,o){return Ai(r,n.child,null,o),n=Wc(r,r.pendingProps),n.flags|=2,On(r),r.memoizedState=null,n}function TE(n,r,o){var c=r.pendingProps,p=(r.flags&128)!==0;if(r.flags&=-129,n===null){if(Pe){if(c.mode==="hidden")return n=Wc(r,c),r.lanes=536870912,Wl(null,n);if(rp(r),(n=ct)?(n=M1(n,Qn),n=n!==null&&n.data==="&"?n:null,n!==null&&(r.memoizedState={dehydrated:n,treeContext:ja!==null?{id:$r,overflow:Or}:null,retryLane:536870912,hydrationErrors:null},o=lv(n),o.return=r,r.child=o,Vt=r,ct=null)):n=null,n===null)throw Na(r);return r.lanes=536870912,null}return Wc(r,c)}var g=n.memoizedState;if(g!==null){var E=g.dehydrated;if(rp(r),p)if(r.flags&256)r.flags&=-257,r=wy(n,r,o);else if(r.memoizedState!==null)r.child=n.child,r.flags|=128,r=null;else throw Error(i(558));else if(kt||xo(n,r,o,!1),p=(o&n.childLanes)!==0,kt||p){if(c=lt,c!==null&&(E=hg(c,o),E!==0&&E!==g.retryLane))throw g.retryLane=E,vi(n,E),vn(c,n,E),wp;iu(),r=wy(n,r,o)}else n=g.treeContext,ct=Zn(E.nextSibling),Vt=r,Pe=!0,ka=null,Qn=!1,n!==null&&uv(r,n),r=Wc(r,c),r.flags|=4096;return r}return n=Kr(n.child,{mode:c.mode,children:c.children}),n.ref=r.ref,r.child=n,n.return=r,n}function Kc(n,r){var o=r.ref;if(o===null)n!==null&&n.ref!==null&&(r.flags|=4194816);else{if(typeof o!="function"&&typeof o!="object")throw Error(i(284));(n===null||n.ref!==o)&&(r.flags|=4194816)}}function Ap(n,r,o,c,p){return Si(r),o=ip(n,r,o,c,void 0,p),c=op(),n!==null&&!kt?(lp(n,r,p),ta(n,r,p)):(Pe&&c&&Id(r),r.flags|=1,Yt(n,r,o,p),r.child)}function Ay(n,r,o,c,p,g){return Si(r),r.updateQueue=null,o=$v(r,c,o,p),Tv(n),c=op(),n!==null&&!kt?(lp(n,r,g),ta(n,r,g)):(Pe&&c&&Id(r),r.flags|=1,Yt(n,r,o,g),r.child)}function Ry(n,r,o,c,p){if(Si(r),r.stateNode===null){var g=go,E=o.contextType;typeof E=="object"&&E!==null&&(g=qt(E)),g=new o(c,g),r.memoizedState=g.state!==null&&g.state!==void 0?g.state:null,g.updater=Cp,r.stateNode=g,g._reactInternals=r,g=r.stateNode,g.props=c,g.state=r.memoizedState,g.refs={},Qd(r),E=o.contextType,g.context=typeof E=="object"&&E!==null?qt(E):go,g.state=r.memoizedState,E=o.getDerivedStateFromProps,typeof E=="function"&&(Sp(r,o,E,c),g.state=r.memoizedState),typeof o.getDerivedStateFromProps=="function"||typeof g.getSnapshotBeforeUpdate=="function"||typeof g.UNSAFE_componentWillMount!="function"&&typeof g.componentWillMount!="function"||(E=g.state,typeof g.componentWillMount=="function"&&g.componentWillMount(),typeof g.UNSAFE_componentWillMount=="function"&&g.UNSAFE_componentWillMount(),E!==g.state&&Cp.enqueueReplaceState(g,g.state,null),Fl(r,c,g,p),Ul(),g.state=r.memoizedState),typeof g.componentDidMount=="function"&&(r.flags|=4194308),c=!0}else if(n===null){g=r.stateNode;var O=r.memoizedProps,B=Ti(o,O);g.props=B;var K=g.context,ne=o.contextType;E=go,typeof ne=="object"&&ne!==null&&(E=qt(ne));var oe=o.getDerivedStateFromProps;ne=typeof oe=="function"||typeof g.getSnapshotBeforeUpdate=="function",O=r.pendingProps!==O,ne||typeof g.UNSAFE_componentWillReceiveProps!="function"&&typeof g.componentWillReceiveProps!="function"||(O||K!==E)&&dy(r,g,c,E),Da=!1;var X=r.memoizedState;g.state=X,Fl(r,c,g,p),Ul(),K=r.memoizedState,O||X!==K||Da?(typeof oe=="function"&&(Sp(r,o,oe,c),K=r.memoizedState),(B=Da||fy(r,o,B,c,X,K,E))?(ne||typeof g.UNSAFE_componentWillMount!="function"&&typeof g.componentWillMount!="function"||(typeof g.componentWillMount=="function"&&g.componentWillMount(),typeof g.UNSAFE_componentWillMount=="function"&&g.UNSAFE_componentWillMount()),typeof g.componentDidMount=="function"&&(r.flags|=4194308)):(typeof g.componentDidMount=="function"&&(r.flags|=4194308),r.memoizedProps=c,r.memoizedState=K),g.props=c,g.state=K,g.context=E,c=B):(typeof g.componentDidMount=="function"&&(r.flags|=4194308),c=!1)}else{g=r.stateNode,Jd(n,r),E=r.memoizedProps,ne=Ti(o,E),g.props=ne,oe=r.pendingProps,X=g.context,K=o.contextType,B=go,typeof K=="object"&&K!==null&&(B=qt(K)),O=o.getDerivedStateFromProps,(K=typeof O=="function"||typeof g.getSnapshotBeforeUpdate=="function")||typeof g.UNSAFE_componentWillReceiveProps!="function"&&typeof g.componentWillReceiveProps!="function"||(E!==oe||X!==B)&&dy(r,g,c,B),Da=!1,X=r.memoizedState,g.state=X,Fl(r,c,g,p),Ul();var te=r.memoizedState;E!==oe||X!==te||Da||n!==null&&n.dependencies!==null&&_c(n.dependencies)?(typeof O=="function"&&(Sp(r,o,O,c),te=r.memoizedState),(ne=Da||fy(r,o,ne,c,X,te,B)||n!==null&&n.dependencies!==null&&_c(n.dependencies))?(K||typeof g.UNSAFE_componentWillUpdate!="function"&&typeof g.componentWillUpdate!="function"||(typeof g.componentWillUpdate=="function"&&g.componentWillUpdate(c,te,B),typeof g.UNSAFE_componentWillUpdate=="function"&&g.UNSAFE_componentWillUpdate(c,te,B)),typeof g.componentDidUpdate=="function"&&(r.flags|=4),typeof g.getSnapshotBeforeUpdate=="function"&&(r.flags|=1024)):(typeof g.componentDidUpdate!="function"||E===n.memoizedProps&&X===n.memoizedState||(r.flags|=4),typeof g.getSnapshotBeforeUpdate!="function"||E===n.memoizedProps&&X===n.memoizedState||(r.flags|=1024),r.memoizedProps=c,r.memoizedState=te),g.props=c,g.state=te,g.context=B,c=ne):(typeof g.componentDidUpdate!="function"||E===n.memoizedProps&&X===n.memoizedState||(r.flags|=4),typeof g.getSnapshotBeforeUpdate!="function"||E===n.memoizedProps&&X===n.memoizedState||(r.flags|=1024),c=!1)}return g=c,Kc(n,r),c=(r.flags&128)!==0,g||c?(g=r.stateNode,o=c&&typeof o.getDerivedStateFromError!="function"?null:g.render(),r.flags|=1,n!==null&&c?(r.child=Ai(r,n.child,null,p),r.child=Ai(r,null,o,p)):Yt(n,r,o,p),r.memoizedState=g.state,n=r.child):n=ta(n,r,p),n}function Ty(n,r,o,c){return bi(),r.flags|=256,Yt(n,r,o,c),r.child}var Rp={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function Tp(n){return{baseLanes:n,cachePool:gv()}}function $p(n,r,o){return n=n!==null?n.childLanes&~o:0,r&&(n|=jn),n}function $y(n,r,o){var c=r.pendingProps,p=!1,g=(r.flags&128)!==0,E;if((E=g)||(E=n!==null&&n.memoizedState===null?!1:(Rt.current&2)!==0),E&&(p=!0,r.flags&=-129),E=(r.flags&32)!==0,r.flags&=-33,n===null){if(Pe){if(p?La(r):Pa(),(n=ct)?(n=M1(n,Qn),n=n!==null&&n.data!=="&"?n:null,n!==null&&(r.memoizedState={dehydrated:n,treeContext:ja!==null?{id:$r,overflow:Or}:null,retryLane:536870912,hydrationErrors:null},o=lv(n),o.return=r,r.child=o,Vt=r,ct=null)):n=null,n===null)throw Na(r);return uh(n)?r.lanes=32:r.lanes=536870912,null}var O=c.children;return c=c.fallback,p?(Pa(),p=r.mode,O=Xc({mode:"hidden",children:O},p),c=yi(c,p,o,null),O.return=r,c.return=r,O.sibling=c,r.child=O,c=r.child,c.memoizedState=Tp(o),c.childLanes=$p(n,E,o),r.memoizedState=Rp,Wl(null,c)):(La(r),Op(r,O))}var B=n.memoizedState;if(B!==null&&(O=B.dehydrated,O!==null)){if(g)r.flags&256?(La(r),r.flags&=-257,r=_p(n,r,o)):r.memoizedState!==null?(Pa(),r.child=n.child,r.flags|=128,r=null):(Pa(),O=c.fallback,p=r.mode,c=Xc({mode:"visible",children:c.children},p),O=yi(O,p,o,null),O.flags|=2,c.return=r,O.return=r,c.sibling=O,r.child=c,Ai(r,n.child,null,o),c=r.child,c.memoizedState=Tp(o),c.childLanes=$p(n,E,o),r.memoizedState=Rp,r=Wl(null,c));else if(La(r),uh(O)){if(E=O.nextSibling&&O.nextSibling.dataset,E)var K=E.dgst;E=K,c=Error(i(419)),c.stack="",c.digest=E,Ml({value:c,source:null,stack:null}),r=_p(n,r,o)}else if(kt||xo(n,r,o,!1),E=(o&n.childLanes)!==0,kt||E){if(E=lt,E!==null&&(c=hg(E,o),c!==0&&c!==B.retryLane))throw B.retryLane=c,vi(n,c),vn(E,n,c),wp;ch(O)||iu(),r=_p(n,r,o)}else ch(O)?(r.flags|=192,r.child=n.child,r=null):(n=B.treeContext,ct=Zn(O.nextSibling),Vt=r,Pe=!0,ka=null,Qn=!1,n!==null&&uv(r,n),r=Op(r,c.children),r.flags|=4096);return r}return p?(Pa(),O=c.fallback,p=r.mode,B=n.child,K=B.sibling,c=Kr(B,{mode:"hidden",children:c.children}),c.subtreeFlags=B.subtreeFlags&65011712,K!==null?O=Kr(K,O):(O=yi(O,p,o,null),O.flags|=2),O.return=r,c.return=r,c.sibling=O,r.child=c,Wl(null,c),c=r.child,O=n.child.memoizedState,O===null?O=Tp(o):(p=O.cachePool,p!==null?(B=_t._currentValue,p=p.parent!==B?{parent:B,pool:B}:p):p=gv(),O={baseLanes:O.baseLanes|o,cachePool:p}),c.memoizedState=O,c.childLanes=$p(n,E,o),r.memoizedState=Rp,Wl(n.child,c)):(La(r),o=n.child,n=o.sibling,o=Kr(o,{mode:"visible",children:c.children}),o.return=r,o.sibling=null,n!==null&&(E=r.deletions,E===null?(r.deletions=[n],r.flags|=16):E.push(n)),r.child=o,r.memoizedState=null,o)}function Op(n,r){return r=Xc({mode:"visible",children:r},n.mode),r.return=n,n.child=r}function Xc(n,r){return n=Tn(22,n,null,r),n.lanes=0,n}function _p(n,r,o){return Ai(r,n.child,null,o),n=Op(r,r.pendingProps.children),n.flags|=2,r.memoizedState=null,n}function Oy(n,r,o){n.lanes|=r;var c=n.alternate;c!==null&&(c.lanes|=r),qd(n.return,r,o)}function jp(n,r,o,c,p,g){var E=n.memoizedState;E===null?n.memoizedState={isBackwards:r,rendering:null,renderingStartTime:0,last:c,tail:o,tailMode:p,treeForkCount:g}:(E.isBackwards=r,E.rendering=null,E.renderingStartTime=0,E.last=c,E.tail=o,E.tailMode=p,E.treeForkCount=g)}function _y(n,r,o){var c=r.pendingProps,p=c.revealOrder,g=c.tail;c=c.children;var E=Rt.current,O=(E&2)!==0;if(O?(E=E&1|2,r.flags|=128):E&=1,le(Rt,E),Yt(n,r,c,o),c=Pe?Dl:0,!O&&n!==null&&(n.flags&128)!==0)e:for(n=r.child;n!==null;){if(n.tag===13)n.memoizedState!==null&&Oy(n,o,r);else if(n.tag===19)Oy(n,o,r);else if(n.child!==null){n.child.return=n,n=n.child;continue}if(n===r)break e;for(;n.sibling===null;){if(n.return===null||n.return===r)break e;n=n.return}n.sibling.return=n.return,n=n.sibling}switch(p){case"forwards":for(o=r.child,p=null;o!==null;)n=o.alternate,n!==null&&Lc(n)===null&&(p=o),o=o.sibling;o=p,o===null?(p=r.child,r.child=null):(p=o.sibling,o.sibling=null),jp(r,!1,p,o,g,c);break;case"backwards":case"unstable_legacy-backwards":for(o=null,p=r.child,r.child=null;p!==null;){if(n=p.alternate,n!==null&&Lc(n)===null){r.child=p;break}n=p.sibling,p.sibling=o,o=p,p=n}jp(r,!0,o,null,g,c);break;case"together":jp(r,!1,null,null,void 0,c);break;default:r.memoizedState=null}return r.child}function ta(n,r,o){if(n!==null&&(r.dependencies=n.dependencies),Ua|=r.lanes,(o&r.childLanes)===0)if(n!==null){if(xo(n,r,o,!1),(o&r.childLanes)===0)return null}else return null;if(n!==null&&r.child!==n.child)throw Error(i(153));if(r.child!==null){for(n=r.child,o=Kr(n,n.pendingProps),r.child=o,o.return=r;n.sibling!==null;)n=n.sibling,o=o.sibling=Kr(n,n.pendingProps),o.return=r;o.sibling=null}return r.child}function kp(n,r){return(n.lanes&r)!==0?!0:(n=n.dependencies,!!(n!==null&&_c(n)))}function $E(n,r,o){switch(r.tag){case 3:ie(r,r.stateNode.containerInfo),za(r,_t,n.memoizedState.cache),bi();break;case 27:case 5:xe(r);break;case 4:ie(r,r.stateNode.containerInfo);break;case 10:za(r,r.type,r.memoizedProps.value);break;case 31:if(r.memoizedState!==null)return r.flags|=128,rp(r),null;break;case 13:var c=r.memoizedState;if(c!==null)return c.dehydrated!==null?(La(r),r.flags|=128,null):(o&r.child.childLanes)!==0?$y(n,r,o):(La(r),n=ta(n,r,o),n!==null?n.sibling:null);La(r);break;case 19:var p=(n.flags&128)!==0;if(c=(o&r.childLanes)!==0,c||(xo(n,r,o,!1),c=(o&r.childLanes)!==0),p){if(c)return _y(n,r,o);r.flags|=128}if(p=r.memoizedState,p!==null&&(p.rendering=null,p.tail=null,p.lastEffect=null),le(Rt,Rt.current),c)break;return null;case 22:return r.lanes=0,Cy(n,r,o,r.pendingProps);case 24:za(r,_t,n.memoizedState.cache)}return ta(n,r,o)}function jy(n,r,o){if(n!==null)if(n.memoizedProps!==r.pendingProps)kt=!0;else{if(!kp(n,o)&&(r.flags&128)===0)return kt=!1,$E(n,r,o);kt=(n.flags&131072)!==0}else kt=!1,Pe&&(r.flags&1048576)!==0&&cv(r,Dl,r.index);switch(r.lanes=0,r.tag){case 16:e:{var c=r.pendingProps;if(n=Ei(r.elementType),r.type=n,typeof n=="function")Bd(n)?(c=Ti(n,c),r.tag=1,r=Ry(null,r,n,c,o)):(r.tag=0,r=Ap(null,r,n,c,o));else{if(n!=null){var p=n.$$typeof;if(p===N){r.tag=11,r=by(null,r,n,c,o);break e}else if(p===D){r.tag=14,r=xy(null,r,n,c,o);break e}}throw r=U(n)||n,Error(i(306,r,""))}}return r;case 0:return Ap(n,r,r.type,r.pendingProps,o);case 1:return c=r.type,p=Ti(c,r.pendingProps),Ry(n,r,c,p,o);case 3:e:{if(ie(r,r.stateNode.containerInfo),n===null)throw Error(i(387));c=r.pendingProps;var g=r.memoizedState;p=g.element,Jd(n,r),Fl(r,c,null,o);var E=r.memoizedState;if(c=E.cache,za(r,_t,c),c!==g.cache&&Yd(r,[_t],o,!0),Ul(),c=E.element,g.isDehydrated)if(g={element:c,isDehydrated:!1,cache:E.cache},r.updateQueue.baseState=g,r.memoizedState=g,r.flags&256){r=Ty(n,r,c,o);break e}else if(c!==p){p=Wn(Error(i(424)),r),Ml(p),r=Ty(n,r,c,o);break e}else for(n=r.stateNode.containerInfo,n.nodeType===9?n=n.body:n=n.nodeName==="HTML"?n.ownerDocument.body:n,ct=Zn(n.firstChild),Vt=r,Pe=!0,ka=null,Qn=!0,o=Cv(r,null,c,o),r.child=o;o;)o.flags=o.flags&-3|4096,o=o.sibling;else{if(bi(),c===p){r=ta(n,r,o);break e}Yt(n,r,c,o)}r=r.child}return r;case 26:return Kc(n,r),n===null?(o=U1(r.type,null,r.pendingProps,null))?r.memoizedState=o:Pe||(o=r.type,n=r.pendingProps,c=du(me.current).createElement(o),c[Ft]=r,c[fn]=n,Gt(c,o,n),Pt(c),r.stateNode=c):r.memoizedState=U1(r.type,n.memoizedProps,r.pendingProps,n.memoizedState),null;case 27:return xe(r),n===null&&Pe&&(c=r.stateNode=P1(r.type,r.pendingProps,me.current),Vt=r,Qn=!0,p=ct,Ga(r.type)?(fh=p,ct=Zn(c.firstChild)):ct=p),Yt(n,r,r.pendingProps.children,o),Kc(n,r),n===null&&(r.flags|=4194304),r.child;case 5:return n===null&&Pe&&((p=c=ct)&&(c=aw(c,r.type,r.pendingProps,Qn),c!==null?(r.stateNode=c,Vt=r,ct=Zn(c.firstChild),Qn=!1,p=!0):p=!1),p||Na(r)),xe(r),p=r.type,g=r.pendingProps,E=n!==null?n.memoizedProps:null,c=g.children,oh(p,g)?c=null:E!==null&&oh(p,E)&&(r.flags|=32),r.memoizedState!==null&&(p=ip(n,r,bE,null,null,o),cs._currentValue=p),Kc(n,r),Yt(n,r,c,o),r.child;case 6:return n===null&&Pe&&((n=o=ct)&&(o=iw(o,r.pendingProps,Qn),o!==null?(r.stateNode=o,Vt=r,ct=null,n=!0):n=!1),n||Na(r)),null;case 13:return $y(n,r,o);case 4:return ie(r,r.stateNode.containerInfo),c=r.pendingProps,n===null?r.child=Ai(r,null,c,o):Yt(n,r,c,o),r.child;case 11:return by(n,r,r.type,r.pendingProps,o);case 7:return Yt(n,r,r.pendingProps,o),r.child;case 8:return Yt(n,r,r.pendingProps.children,o),r.child;case 12:return Yt(n,r,r.pendingProps.children,o),r.child;case 10:return c=r.pendingProps,za(r,r.type,c.value),Yt(n,r,c.children,o),r.child;case 9:return p=r.type._context,c=r.pendingProps.children,Si(r),p=qt(p),c=c(p),r.flags|=1,Yt(n,r,c,o),r.child;case 14:return xy(n,r,r.type,r.pendingProps,o);case 15:return Sy(n,r,r.type,r.pendingProps,o);case 19:return _y(n,r,o);case 31:return TE(n,r,o);case 22:return Cy(n,r,o,r.pendingProps);case 24:return Si(r),c=qt(_t),n===null?(p=Kd(),p===null&&(p=lt,g=Gd(),p.pooledCache=g,g.refCount++,g!==null&&(p.pooledCacheLanes|=o),p=g),r.memoizedState={parent:c,cache:p},Qd(r),za(r,_t,p)):((n.lanes&o)!==0&&(Jd(n,r),Fl(r,null,null,o),Ul()),p=n.memoizedState,g=r.memoizedState,p.parent!==c?(p={parent:c,cache:c},r.memoizedState=p,r.lanes===0&&(r.memoizedState=r.updateQueue.baseState=p),za(r,_t,c)):(c=g.cache,za(r,_t,c),c!==p.cache&&Yd(r,[_t],o,!0))),Yt(n,r,r.pendingProps.children,o),r.child;case 29:throw r.pendingProps}throw Error(i(156,r.tag))}function na(n){n.flags|=4}function Np(n,r,o,c,p){if((r=(n.mode&32)!==0)&&(r=!1),r){if(n.flags|=16777216,(p&335544128)===p)if(n.stateNode.complete)n.flags|=8192;else if(a1())n.flags|=8192;else throw wi=zc,Xd}else n.flags&=-16777217}function ky(n,r){if(r.type!=="stylesheet"||(r.state.loading&4)!==0)n.flags&=-16777217;else if(n.flags|=16777216,!G1(r))if(a1())n.flags|=8192;else throw wi=zc,Xd}function Qc(n,r){r!==null&&(n.flags|=4),n.flags&16384&&(r=n.tag!==22?Cl():536870912,n.lanes|=r,ko|=r)}function Kl(n,r){if(!Pe)switch(n.tailMode){case"hidden":r=n.tail;for(var o=null;r!==null;)r.alternate!==null&&(o=r),r=r.sibling;o===null?n.tail=null:o.sibling=null;break;case"collapsed":o=n.tail;for(var c=null;o!==null;)o.alternate!==null&&(c=o),o=o.sibling;c===null?r||n.tail===null?n.tail=null:n.tail.sibling=null:c.sibling=null}}function ut(n){var r=n.alternate!==null&&n.alternate.child===n.child,o=0,c=0;if(r)for(var p=n.child;p!==null;)o|=p.lanes|p.childLanes,c|=p.subtreeFlags&65011712,c|=p.flags&65011712,p.return=n,p=p.sibling;else for(p=n.child;p!==null;)o|=p.lanes|p.childLanes,c|=p.subtreeFlags,c|=p.flags,p.return=n,p=p.sibling;return n.subtreeFlags|=c,n.childLanes=o,r}function OE(n,r,o){var c=r.pendingProps;switch(Hd(r),r.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return ut(r),null;case 1:return ut(r),null;case 3:return o=r.stateNode,c=null,n!==null&&(c=n.memoizedState.cache),r.memoizedState.cache!==c&&(r.flags|=2048),Jr(_t),pe(),o.pendingContext&&(o.context=o.pendingContext,o.pendingContext=null),(n===null||n.child===null)&&(bo(r)?na(r):n===null||n.memoizedState.isDehydrated&&(r.flags&256)===0||(r.flags|=1024,Fd())),ut(r),null;case 26:var p=r.type,g=r.memoizedState;return n===null?(na(r),g!==null?(ut(r),ky(r,g)):(ut(r),Np(r,p,null,c,o))):g?g!==n.memoizedState?(na(r),ut(r),ky(r,g)):(ut(r),r.flags&=-16777217):(n=n.memoizedProps,n!==c&&na(r),ut(r),Np(r,p,n,c,o)),null;case 27:if(ze(r),o=me.current,p=r.type,n!==null&&r.stateNode!=null)n.memoizedProps!==c&&na(r);else{if(!c){if(r.stateNode===null)throw Error(i(166));return ut(r),null}n=ce.current,bo(r)?fv(r):(n=P1(p,c,o),r.stateNode=n,na(r))}return ut(r),null;case 5:if(ze(r),p=r.type,n!==null&&r.stateNode!=null)n.memoizedProps!==c&&na(r);else{if(!c){if(r.stateNode===null)throw Error(i(166));return ut(r),null}if(g=ce.current,bo(r))fv(r);else{var E=du(me.current);switch(g){case 1:g=E.createElementNS("http://www.w3.org/2000/svg",p);break;case 2:g=E.createElementNS("http://www.w3.org/1998/Math/MathML",p);break;default:switch(p){case"svg":g=E.createElementNS("http://www.w3.org/2000/svg",p);break;case"math":g=E.createElementNS("http://www.w3.org/1998/Math/MathML",p);break;case"script":g=E.createElement("div"),g.innerHTML="<script><\/script>",g=g.removeChild(g.firstChild);break;case"select":g=typeof c.is=="string"?E.createElement("select",{is:c.is}):E.createElement("select"),c.multiple?g.multiple=!0:c.size&&(g.size=c.size);break;default:g=typeof c.is=="string"?E.createElement(p,{is:c.is}):E.createElement(p)}}g[Ft]=r,g[fn]=c;e:for(E=r.child;E!==null;){if(E.tag===5||E.tag===6)g.appendChild(E.stateNode);else if(E.tag!==4&&E.tag!==27&&E.child!==null){E.child.return=E,E=E.child;continue}if(E===r)break e;for(;E.sibling===null;){if(E.return===null||E.return===r)break e;E=E.return}E.sibling.return=E.return,E=E.sibling}r.stateNode=g;e:switch(Gt(g,p,c),p){case"button":case"input":case"select":case"textarea":c=!!c.autoFocus;break e;case"img":c=!0;break e;default:c=!1}c&&na(r)}}return ut(r),Np(r,r.type,n===null?null:n.memoizedProps,r.pendingProps,o),null;case 6:if(n&&r.stateNode!=null)n.memoizedProps!==c&&na(r);else{if(typeof c!="string"&&r.stateNode===null)throw Error(i(166));if(n=me.current,bo(r)){if(n=r.stateNode,o=r.memoizedProps,c=null,p=Vt,p!==null)switch(p.tag){case 27:case 5:c=p.memoizedProps}n[Ft]=r,n=!!(n.nodeValue===o||c!==null&&c.suppressHydrationWarning===!0||$1(n.nodeValue,o)),n||Na(r,!0)}else n=du(n).createTextNode(c),n[Ft]=r,r.stateNode=n}return ut(r),null;case 31:if(o=r.memoizedState,n===null||n.memoizedState!==null){if(c=bo(r),o!==null){if(n===null){if(!c)throw Error(i(318));if(n=r.memoizedState,n=n!==null?n.dehydrated:null,!n)throw Error(i(557));n[Ft]=r}else bi(),(r.flags&128)===0&&(r.memoizedState=null),r.flags|=4;ut(r),n=!1}else o=Fd(),n!==null&&n.memoizedState!==null&&(n.memoizedState.hydrationErrors=o),n=!0;if(!n)return r.flags&256?(On(r),r):(On(r),null);if((r.flags&128)!==0)throw Error(i(558))}return ut(r),null;case 13:if(c=r.memoizedState,n===null||n.memoizedState!==null&&n.memoizedState.dehydrated!==null){if(p=bo(r),c!==null&&c.dehydrated!==null){if(n===null){if(!p)throw Error(i(318));if(p=r.memoizedState,p=p!==null?p.dehydrated:null,!p)throw Error(i(317));p[Ft]=r}else bi(),(r.flags&128)===0&&(r.memoizedState=null),r.flags|=4;ut(r),p=!1}else p=Fd(),n!==null&&n.memoizedState!==null&&(n.memoizedState.hydrationErrors=p),p=!0;if(!p)return r.flags&256?(On(r),r):(On(r),null)}return On(r),(r.flags&128)!==0?(r.lanes=o,r):(o=c!==null,n=n!==null&&n.memoizedState!==null,o&&(c=r.child,p=null,c.alternate!==null&&c.alternate.memoizedState!==null&&c.alternate.memoizedState.cachePool!==null&&(p=c.alternate.memoizedState.cachePool.pool),g=null,c.memoizedState!==null&&c.memoizedState.cachePool!==null&&(g=c.memoizedState.cachePool.pool),g!==p&&(c.flags|=2048)),o!==n&&o&&(r.child.flags|=8192),Qc(r,r.updateQueue),ut(r),null);case 4:return pe(),n===null&&th(r.stateNode.containerInfo),ut(r),null;case 10:return Jr(r.type),ut(r),null;case 19:if(G(Rt),c=r.memoizedState,c===null)return ut(r),null;if(p=(r.flags&128)!==0,g=c.rendering,g===null)if(p)Kl(c,!1);else{if(yt!==0||n!==null&&(n.flags&128)!==0)for(n=r.child;n!==null;){if(g=Lc(n),g!==null){for(r.flags|=128,Kl(c,!1),n=g.updateQueue,r.updateQueue=n,Qc(r,n),r.subtreeFlags=0,n=o,o=r.child;o!==null;)ov(o,n),o=o.sibling;return le(Rt,Rt.current&1|2),Pe&&Xr(r,c.treeForkCount),r.child}n=n.sibling}c.tail!==null&&At()>nu&&(r.flags|=128,p=!0,Kl(c,!1),r.lanes=4194304)}else{if(!p)if(n=Lc(g),n!==null){if(r.flags|=128,p=!0,n=n.updateQueue,r.updateQueue=n,Qc(r,n),Kl(c,!0),c.tail===null&&c.tailMode==="hidden"&&!g.alternate&&!Pe)return ut(r),null}else 2*At()-c.renderingStartTime>nu&&o!==536870912&&(r.flags|=128,p=!0,Kl(c,!1),r.lanes=4194304);c.isBackwards?(g.sibling=r.child,r.child=g):(n=c.last,n!==null?n.sibling=g:r.child=g,c.last=g)}return c.tail!==null?(n=c.tail,c.rendering=n,c.tail=n.sibling,c.renderingStartTime=At(),n.sibling=null,o=Rt.current,le(Rt,p?o&1|2:o&1),Pe&&Xr(r,c.treeForkCount),n):(ut(r),null);case 22:case 23:return On(r),np(),c=r.memoizedState!==null,n!==null?n.memoizedState!==null!==c&&(r.flags|=8192):c&&(r.flags|=8192),c?(o&536870912)!==0&&(r.flags&128)===0&&(ut(r),r.subtreeFlags&6&&(r.flags|=8192)):ut(r),o=r.updateQueue,o!==null&&Qc(r,o.retryQueue),o=null,n!==null&&n.memoizedState!==null&&n.memoizedState.cachePool!==null&&(o=n.memoizedState.cachePool.pool),c=null,r.memoizedState!==null&&r.memoizedState.cachePool!==null&&(c=r.memoizedState.cachePool.pool),c!==o&&(r.flags|=2048),n!==null&&G(Ci),null;case 24:return o=null,n!==null&&(o=n.memoizedState.cache),r.memoizedState.cache!==o&&(r.flags|=2048),Jr(_t),ut(r),null;case 25:return null;case 30:return null}throw Error(i(156,r.tag))}function _E(n,r){switch(Hd(r),r.tag){case 1:return n=r.flags,n&65536?(r.flags=n&-65537|128,r):null;case 3:return Jr(_t),pe(),n=r.flags,(n&65536)!==0&&(n&128)===0?(r.flags=n&-65537|128,r):null;case 26:case 27:case 5:return ze(r),null;case 31:if(r.memoizedState!==null){if(On(r),r.alternate===null)throw Error(i(340));bi()}return n=r.flags,n&65536?(r.flags=n&-65537|128,r):null;case 13:if(On(r),n=r.memoizedState,n!==null&&n.dehydrated!==null){if(r.alternate===null)throw Error(i(340));bi()}return n=r.flags,n&65536?(r.flags=n&-65537|128,r):null;case 19:return G(Rt),null;case 4:return pe(),null;case 10:return Jr(r.type),null;case 22:case 23:return On(r),np(),n!==null&&G(Ci),n=r.flags,n&65536?(r.flags=n&-65537|128,r):null;case 24:return Jr(_t),null;case 25:return null;default:return null}}function Ny(n,r){switch(Hd(r),r.tag){case 3:Jr(_t),pe();break;case 26:case 27:case 5:ze(r);break;case 4:pe();break;case 31:r.memoizedState!==null&&On(r);break;case 13:On(r);break;case 19:G(Rt);break;case 10:Jr(r.type);break;case 22:case 23:On(r),np(),n!==null&&G(Ci);break;case 24:Jr(_t)}}function Xl(n,r){try{var o=r.updateQueue,c=o!==null?o.lastEffect:null;if(c!==null){var p=c.next;o=p;do{if((o.tag&n)===n){c=void 0;var g=o.create,E=o.inst;c=g(),E.destroy=c}o=o.next}while(o!==p)}}catch(O){Je(r,r.return,O)}}function Ia(n,r,o){try{var c=r.updateQueue,p=c!==null?c.lastEffect:null;if(p!==null){var g=p.next;c=g;do{if((c.tag&n)===n){var E=c.inst,O=E.destroy;if(O!==void 0){E.destroy=void 0,p=r;var B=o,K=O;try{K()}catch(ne){Je(p,B,ne)}}}c=c.next}while(c!==g)}}catch(ne){Je(r,r.return,ne)}}function zy(n){var r=n.updateQueue;if(r!==null){var o=n.stateNode;try{wv(r,o)}catch(c){Je(n,n.return,c)}}}function Dy(n,r,o){o.props=Ti(n.type,n.memoizedProps),o.state=n.memoizedState;try{o.componentWillUnmount()}catch(c){Je(n,r,c)}}function Ql(n,r){try{var o=n.ref;if(o!==null){switch(n.tag){case 26:case 27:case 5:var c=n.stateNode;break;case 30:c=n.stateNode;break;default:c=n.stateNode}typeof o=="function"?n.refCleanup=o(c):o.current=c}}catch(p){Je(n,r,p)}}function _r(n,r){var o=n.ref,c=n.refCleanup;if(o!==null)if(typeof c=="function")try{c()}catch(p){Je(n,r,p)}finally{n.refCleanup=null,n=n.alternate,n!=null&&(n.refCleanup=null)}else if(typeof o=="function")try{o(null)}catch(p){Je(n,r,p)}else o.current=null}function My(n){var r=n.type,o=n.memoizedProps,c=n.stateNode;try{e:switch(r){case"button":case"input":case"select":case"textarea":o.autoFocus&&c.focus();break e;case"img":o.src?c.src=o.src:o.srcSet&&(c.srcset=o.srcSet)}}catch(p){Je(n,n.return,p)}}function zp(n,r,o){try{var c=n.stateNode;JE(c,n.type,o,r),c[fn]=r}catch(p){Je(n,n.return,p)}}function By(n){return n.tag===5||n.tag===3||n.tag===26||n.tag===27&&Ga(n.type)||n.tag===4}function Dp(n){e:for(;;){for(;n.sibling===null;){if(n.return===null||By(n.return))return null;n=n.return}for(n.sibling.return=n.return,n=n.sibling;n.tag!==5&&n.tag!==6&&n.tag!==18;){if(n.tag===27&&Ga(n.type)||n.flags&2||n.child===null||n.tag===4)continue e;n.child.return=n,n=n.child}if(!(n.flags&2))return n.stateNode}}function Mp(n,r,o){var c=n.tag;if(c===5||c===6)n=n.stateNode,r?(o.nodeType===9?o.body:o.nodeName==="HTML"?o.ownerDocument.body:o).insertBefore(n,r):(r=o.nodeType===9?o.body:o.nodeName==="HTML"?o.ownerDocument.body:o,r.appendChild(n),o=o._reactRootContainer,o!=null||r.onclick!==null||(r.onclick=Gr));else if(c!==4&&(c===27&&Ga(n.type)&&(o=n.stateNode,r=null),n=n.child,n!==null))for(Mp(n,r,o),n=n.sibling;n!==null;)Mp(n,r,o),n=n.sibling}function Jc(n,r,o){var c=n.tag;if(c===5||c===6)n=n.stateNode,r?o.insertBefore(n,r):o.appendChild(n);else if(c!==4&&(c===27&&Ga(n.type)&&(o=n.stateNode),n=n.child,n!==null))for(Jc(n,r,o),n=n.sibling;n!==null;)Jc(n,r,o),n=n.sibling}function Ly(n){var r=n.stateNode,o=n.memoizedProps;try{for(var c=n.type,p=r.attributes;p.length;)r.removeAttributeNode(p[0]);Gt(r,c,o),r[Ft]=n,r[fn]=o}catch(g){Je(n,n.return,g)}}var ra=!1,Nt=!1,Bp=!1,Py=typeof WeakSet=="function"?WeakSet:Set,It=null;function jE(n,r){if(n=n.containerInfo,ah=bu,n=Qg(n),_d(n)){if("selectionStart"in n)var o={start:n.selectionStart,end:n.selectionEnd};else e:{o=(o=n.ownerDocument)&&o.defaultView||window;var c=o.getSelection&&o.getSelection();if(c&&c.rangeCount!==0){o=c.anchorNode;var p=c.anchorOffset,g=c.focusNode;c=c.focusOffset;try{o.nodeType,g.nodeType}catch{o=null;break e}var E=0,O=-1,B=-1,K=0,ne=0,oe=n,X=null;t:for(;;){for(var te;oe!==o||p!==0&&oe.nodeType!==3||(O=E+p),oe!==g||c!==0&&oe.nodeType!==3||(B=E+c),oe.nodeType===3&&(E+=oe.nodeValue.length),(te=oe.firstChild)!==null;)X=oe,oe=te;for(;;){if(oe===n)break t;if(X===o&&++K===p&&(O=E),X===g&&++ne===c&&(B=E),(te=oe.nextSibling)!==null)break;oe=X,X=oe.parentNode}oe=te}o=O===-1||B===-1?null:{start:O,end:B}}else o=null}o=o||{start:0,end:0}}else o=null;for(ih={focusedElem:n,selectionRange:o},bu=!1,It=r;It!==null;)if(r=It,n=r.child,(r.subtreeFlags&1028)!==0&&n!==null)n.return=r,It=n;else for(;It!==null;){switch(r=It,g=r.alternate,n=r.flags,r.tag){case 0:if((n&4)!==0&&(n=r.updateQueue,n=n!==null?n.events:null,n!==null))for(o=0;o<n.length;o++)p=n[o],p.ref.impl=p.nextImpl;break;case 11:case 15:break;case 1:if((n&1024)!==0&&g!==null){n=void 0,o=r,p=g.memoizedProps,g=g.memoizedState,c=o.stateNode;try{var ve=Ti(o.type,p);n=c.getSnapshotBeforeUpdate(ve,g),c.__reactInternalSnapshotBeforeUpdate=n}catch(Ee){Je(o,o.return,Ee)}}break;case 3:if((n&1024)!==0){if(n=r.stateNode.containerInfo,o=n.nodeType,o===9)sh(n);else if(o===1)switch(n.nodeName){case"HEAD":case"HTML":case"BODY":sh(n);break;default:n.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((n&1024)!==0)throw Error(i(163))}if(n=r.sibling,n!==null){n.return=r.return,It=n;break}It=r.return}}function Iy(n,r,o){var c=o.flags;switch(o.tag){case 0:case 11:case 15:ia(n,o),c&4&&Xl(5,o);break;case 1:if(ia(n,o),c&4)if(n=o.stateNode,r===null)try{n.componentDidMount()}catch(E){Je(o,o.return,E)}else{var p=Ti(o.type,r.memoizedProps);r=r.memoizedState;try{n.componentDidUpdate(p,r,n.__reactInternalSnapshotBeforeUpdate)}catch(E){Je(o,o.return,E)}}c&64&&zy(o),c&512&&Ql(o,o.return);break;case 3:if(ia(n,o),c&64&&(n=o.updateQueue,n!==null)){if(r=null,o.child!==null)switch(o.child.tag){case 27:case 5:r=o.child.stateNode;break;case 1:r=o.child.stateNode}try{wv(n,r)}catch(E){Je(o,o.return,E)}}break;case 27:r===null&&c&4&&Ly(o);case 26:case 5:ia(n,o),r===null&&c&4&&My(o),c&512&&Ql(o,o.return);break;case 12:ia(n,o);break;case 31:ia(n,o),c&4&&Fy(n,o);break;case 13:ia(n,o),c&4&&Vy(n,o),c&64&&(n=o.memoizedState,n!==null&&(n=n.dehydrated,n!==null&&(o=IE.bind(null,o),ow(n,o))));break;case 22:if(c=o.memoizedState!==null||ra,!c){r=r!==null&&r.memoizedState!==null||Nt,p=ra;var g=Nt;ra=c,(Nt=r)&&!g?oa(n,o,(o.subtreeFlags&8772)!==0):ia(n,o),ra=p,Nt=g}break;case 30:break;default:ia(n,o)}}function Hy(n){var r=n.alternate;r!==null&&(n.alternate=null,Hy(r)),n.child=null,n.deletions=null,n.sibling=null,n.tag===5&&(r=n.stateNode,r!==null&&pd(r)),n.stateNode=null,n.return=null,n.dependencies=null,n.memoizedProps=null,n.memoizedState=null,n.pendingProps=null,n.stateNode=null,n.updateQueue=null}var dt=null,pn=!1;function aa(n,r,o){for(o=o.child;o!==null;)Uy(n,r,o),o=o.sibling}function Uy(n,r,o){if(Ae&&typeof Ae.onCommitFiberUnmount=="function")try{Ae.onCommitFiberUnmount(ge,o)}catch{}switch(o.tag){case 26:Nt||_r(o,r),aa(n,r,o),o.memoizedState?o.memoizedState.count--:o.stateNode&&(o=o.stateNode,o.parentNode.removeChild(o));break;case 27:Nt||_r(o,r);var c=dt,p=pn;Ga(o.type)&&(dt=o.stateNode,pn=!1),aa(n,r,o),os(o.stateNode),dt=c,pn=p;break;case 5:Nt||_r(o,r);case 6:if(c=dt,p=pn,dt=null,aa(n,r,o),dt=c,pn=p,dt!==null)if(pn)try{(dt.nodeType===9?dt.body:dt.nodeName==="HTML"?dt.ownerDocument.body:dt).removeChild(o.stateNode)}catch(g){Je(o,r,g)}else try{dt.removeChild(o.stateNode)}catch(g){Je(o,r,g)}break;case 18:dt!==null&&(pn?(n=dt,z1(n.nodeType===9?n.body:n.nodeName==="HTML"?n.ownerDocument.body:n,o.stateNode),Io(n)):z1(dt,o.stateNode));break;case 4:c=dt,p=pn,dt=o.stateNode.containerInfo,pn=!0,aa(n,r,o),dt=c,pn=p;break;case 0:case 11:case 14:case 15:Ia(2,o,r),Nt||Ia(4,o,r),aa(n,r,o);break;case 1:Nt||(_r(o,r),c=o.stateNode,typeof c.componentWillUnmount=="function"&&Dy(o,r,c)),aa(n,r,o);break;case 21:aa(n,r,o);break;case 22:Nt=(c=Nt)||o.memoizedState!==null,aa(n,r,o),Nt=c;break;default:aa(n,r,o)}}function Fy(n,r){if(r.memoizedState===null&&(n=r.alternate,n!==null&&(n=n.memoizedState,n!==null))){n=n.dehydrated;try{Io(n)}catch(o){Je(r,r.return,o)}}}function Vy(n,r){if(r.memoizedState===null&&(n=r.alternate,n!==null&&(n=n.memoizedState,n!==null&&(n=n.dehydrated,n!==null))))try{Io(n)}catch(o){Je(r,r.return,o)}}function kE(n){switch(n.tag){case 31:case 13:case 19:var r=n.stateNode;return r===null&&(r=n.stateNode=new Py),r;case 22:return n=n.stateNode,r=n._retryCache,r===null&&(r=n._retryCache=new Py),r;default:throw Error(i(435,n.tag))}}function Zc(n,r){var o=kE(n);r.forEach(function(c){if(!o.has(c)){o.add(c);var p=HE.bind(null,n,c);c.then(p,p)}})}function hn(n,r){var o=r.deletions;if(o!==null)for(var c=0;c<o.length;c++){var p=o[c],g=n,E=r,O=E;e:for(;O!==null;){switch(O.tag){case 27:if(Ga(O.type)){dt=O.stateNode,pn=!1;break e}break;case 5:dt=O.stateNode,pn=!1;break e;case 3:case 4:dt=O.stateNode.containerInfo,pn=!0;break e}O=O.return}if(dt===null)throw Error(i(160));Uy(g,E,p),dt=null,pn=!1,g=p.alternate,g!==null&&(g.return=null),p.return=null}if(r.subtreeFlags&13886)for(r=r.child;r!==null;)qy(r,n),r=r.sibling}var yr=null;function qy(n,r){var o=n.alternate,c=n.flags;switch(n.tag){case 0:case 11:case 14:case 15:hn(r,n),mn(n),c&4&&(Ia(3,n,n.return),Xl(3,n),Ia(5,n,n.return));break;case 1:hn(r,n),mn(n),c&512&&(Nt||o===null||_r(o,o.return)),c&64&&ra&&(n=n.updateQueue,n!==null&&(c=n.callbacks,c!==null&&(o=n.shared.hiddenCallbacks,n.shared.hiddenCallbacks=o===null?c:o.concat(c))));break;case 26:var p=yr;if(hn(r,n),mn(n),c&512&&(Nt||o===null||_r(o,o.return)),c&4){var g=o!==null?o.memoizedState:null;if(c=n.memoizedState,o===null)if(c===null)if(n.stateNode===null){e:{c=n.type,o=n.memoizedProps,p=p.ownerDocument||p;t:switch(c){case"title":g=p.getElementsByTagName("title")[0],(!g||g[wl]||g[Ft]||g.namespaceURI==="http://www.w3.org/2000/svg"||g.hasAttribute("itemprop"))&&(g=p.createElement(c),p.head.insertBefore(g,p.querySelector("head > title"))),Gt(g,c,o),g[Ft]=n,Pt(g),c=g;break e;case"link":var E=q1("link","href",p).get(c+(o.href||""));if(E){for(var O=0;O<E.length;O++)if(g=E[O],g.getAttribute("href")===(o.href==null||o.href===""?null:o.href)&&g.getAttribute("rel")===(o.rel==null?null:o.rel)&&g.getAttribute("title")===(o.title==null?null:o.title)&&g.getAttribute("crossorigin")===(o.crossOrigin==null?null:o.crossOrigin)){E.splice(O,1);break t}}g=p.createElement(c),Gt(g,c,o),p.head.appendChild(g);break;case"meta":if(E=q1("meta","content",p).get(c+(o.content||""))){for(O=0;O<E.length;O++)if(g=E[O],g.getAttribute("content")===(o.content==null?null:""+o.content)&&g.getAttribute("name")===(o.name==null?null:o.name)&&g.getAttribute("property")===(o.property==null?null:o.property)&&g.getAttribute("http-equiv")===(o.httpEquiv==null?null:o.httpEquiv)&&g.getAttribute("charset")===(o.charSet==null?null:o.charSet)){E.splice(O,1);break t}}g=p.createElement(c),Gt(g,c,o),p.head.appendChild(g);break;default:throw Error(i(468,c))}g[Ft]=n,Pt(g),c=g}n.stateNode=c}else Y1(p,n.type,n.stateNode);else n.stateNode=V1(p,c,n.memoizedProps);else g!==c?(g===null?o.stateNode!==null&&(o=o.stateNode,o.parentNode.removeChild(o)):g.count--,c===null?Y1(p,n.type,n.stateNode):V1(p,c,n.memoizedProps)):c===null&&n.stateNode!==null&&zp(n,n.memoizedProps,o.memoizedProps)}break;case 27:hn(r,n),mn(n),c&512&&(Nt||o===null||_r(o,o.return)),o!==null&&c&4&&zp(n,n.memoizedProps,o.memoizedProps);break;case 5:if(hn(r,n),mn(n),c&512&&(Nt||o===null||_r(o,o.return)),n.flags&32){p=n.stateNode;try{so(p,"")}catch(ve){Je(n,n.return,ve)}}c&4&&n.stateNode!=null&&(p=n.memoizedProps,zp(n,p,o!==null?o.memoizedProps:p)),c&1024&&(Bp=!0);break;case 6:if(hn(r,n),mn(n),c&4){if(n.stateNode===null)throw Error(i(162));c=n.memoizedProps,o=n.stateNode;try{o.nodeValue=c}catch(ve){Je(n,n.return,ve)}}break;case 3:if(mu=null,p=yr,yr=pu(r.containerInfo),hn(r,n),yr=p,mn(n),c&4&&o!==null&&o.memoizedState.isDehydrated)try{Io(r.containerInfo)}catch(ve){Je(n,n.return,ve)}Bp&&(Bp=!1,Yy(n));break;case 4:c=yr,yr=pu(n.stateNode.containerInfo),hn(r,n),mn(n),yr=c;break;case 12:hn(r,n),mn(n);break;case 31:hn(r,n),mn(n),c&4&&(c=n.updateQueue,c!==null&&(n.updateQueue=null,Zc(n,c)));break;case 13:hn(r,n),mn(n),n.child.flags&8192&&n.memoizedState!==null!=(o!==null&&o.memoizedState!==null)&&(tu=At()),c&4&&(c=n.updateQueue,c!==null&&(n.updateQueue=null,Zc(n,c)));break;case 22:p=n.memoizedState!==null;var B=o!==null&&o.memoizedState!==null,K=ra,ne=Nt;if(ra=K||p,Nt=ne||B,hn(r,n),Nt=ne,ra=K,mn(n),c&8192)e:for(r=n.stateNode,r._visibility=p?r._visibility&-2:r._visibility|1,p&&(o===null||B||ra||Nt||$i(n)),o=null,r=n;;){if(r.tag===5||r.tag===26){if(o===null){B=o=r;try{if(g=B.stateNode,p)E=g.style,typeof E.setProperty=="function"?E.setProperty("display","none","important"):E.display="none";else{O=B.stateNode;var oe=B.memoizedProps.style,X=oe!=null&&oe.hasOwnProperty("display")?oe.display:null;O.style.display=X==null||typeof X=="boolean"?"":(""+X).trim()}}catch(ve){Je(B,B.return,ve)}}}else if(r.tag===6){if(o===null){B=r;try{B.stateNode.nodeValue=p?"":B.memoizedProps}catch(ve){Je(B,B.return,ve)}}}else if(r.tag===18){if(o===null){B=r;try{var te=B.stateNode;p?D1(te,!0):D1(B.stateNode,!1)}catch(ve){Je(B,B.return,ve)}}}else if((r.tag!==22&&r.tag!==23||r.memoizedState===null||r===n)&&r.child!==null){r.child.return=r,r=r.child;continue}if(r===n)break e;for(;r.sibling===null;){if(r.return===null||r.return===n)break e;o===r&&(o=null),r=r.return}o===r&&(o=null),r.sibling.return=r.return,r=r.sibling}c&4&&(c=n.updateQueue,c!==null&&(o=c.retryQueue,o!==null&&(c.retryQueue=null,Zc(n,o))));break;case 19:hn(r,n),mn(n),c&4&&(c=n.updateQueue,c!==null&&(n.updateQueue=null,Zc(n,c)));break;case 30:break;case 21:break;default:hn(r,n),mn(n)}}function mn(n){var r=n.flags;if(r&2){try{for(var o,c=n.return;c!==null;){if(By(c)){o=c;break}c=c.return}if(o==null)throw Error(i(160));switch(o.tag){case 27:var p=o.stateNode,g=Dp(n);Jc(n,g,p);break;case 5:var E=o.stateNode;o.flags&32&&(so(E,""),o.flags&=-33);var O=Dp(n);Jc(n,O,E);break;case 3:case 4:var B=o.stateNode.containerInfo,K=Dp(n);Mp(n,K,B);break;default:throw Error(i(161))}}catch(ne){Je(n,n.return,ne)}n.flags&=-3}r&4096&&(n.flags&=-4097)}function Yy(n){if(n.subtreeFlags&1024)for(n=n.child;n!==null;){var r=n;Yy(r),r.tag===5&&r.flags&1024&&r.stateNode.reset(),n=n.sibling}}function ia(n,r){if(r.subtreeFlags&8772)for(r=r.child;r!==null;)Iy(n,r.alternate,r),r=r.sibling}function $i(n){for(n=n.child;n!==null;){var r=n;switch(r.tag){case 0:case 11:case 14:case 15:Ia(4,r,r.return),$i(r);break;case 1:_r(r,r.return);var o=r.stateNode;typeof o.componentWillUnmount=="function"&&Dy(r,r.return,o),$i(r);break;case 27:os(r.stateNode);case 26:case 5:_r(r,r.return),$i(r);break;case 22:r.memoizedState===null&&$i(r);break;case 30:$i(r);break;default:$i(r)}n=n.sibling}}function oa(n,r,o){for(o=o&&(r.subtreeFlags&8772)!==0,r=r.child;r!==null;){var c=r.alternate,p=n,g=r,E=g.flags;switch(g.tag){case 0:case 11:case 15:oa(p,g,o),Xl(4,g);break;case 1:if(oa(p,g,o),c=g,p=c.stateNode,typeof p.componentDidMount=="function")try{p.componentDidMount()}catch(K){Je(c,c.return,K)}if(c=g,p=c.updateQueue,p!==null){var O=c.stateNode;try{var B=p.shared.hiddenCallbacks;if(B!==null)for(p.shared.hiddenCallbacks=null,p=0;p<B.length;p++)Ev(B[p],O)}catch(K){Je(c,c.return,K)}}o&&E&64&&zy(g),Ql(g,g.return);break;case 27:Ly(g);case 26:case 5:oa(p,g,o),o&&c===null&&E&4&&My(g),Ql(g,g.return);break;case 12:oa(p,g,o);break;case 31:oa(p,g,o),o&&E&4&&Fy(p,g);break;case 13:oa(p,g,o),o&&E&4&&Vy(p,g);break;case 22:g.memoizedState===null&&oa(p,g,o),Ql(g,g.return);break;case 30:break;default:oa(p,g,o)}r=r.sibling}}function Lp(n,r){var o=null;n!==null&&n.memoizedState!==null&&n.memoizedState.cachePool!==null&&(o=n.memoizedState.cachePool.pool),n=null,r.memoizedState!==null&&r.memoizedState.cachePool!==null&&(n=r.memoizedState.cachePool.pool),n!==o&&(n!=null&&n.refCount++,o!=null&&Bl(o))}function Pp(n,r){n=null,r.alternate!==null&&(n=r.alternate.memoizedState.cache),r=r.memoizedState.cache,r!==n&&(r.refCount++,n!=null&&Bl(n))}function br(n,r,o,c){if(r.subtreeFlags&10256)for(r=r.child;r!==null;)Gy(n,r,o,c),r=r.sibling}function Gy(n,r,o,c){var p=r.flags;switch(r.tag){case 0:case 11:case 15:br(n,r,o,c),p&2048&&Xl(9,r);break;case 1:br(n,r,o,c);break;case 3:br(n,r,o,c),p&2048&&(n=null,r.alternate!==null&&(n=r.alternate.memoizedState.cache),r=r.memoizedState.cache,r!==n&&(r.refCount++,n!=null&&Bl(n)));break;case 12:if(p&2048){br(n,r,o,c),n=r.stateNode;try{var g=r.memoizedProps,E=g.id,O=g.onPostCommit;typeof O=="function"&&O(E,r.alternate===null?"mount":"update",n.passiveEffectDuration,-0)}catch(B){Je(r,r.return,B)}}else br(n,r,o,c);break;case 31:br(n,r,o,c);break;case 13:br(n,r,o,c);break;case 23:break;case 22:g=r.stateNode,E=r.alternate,r.memoizedState!==null?g._visibility&2?br(n,r,o,c):Jl(n,r):g._visibility&2?br(n,r,o,c):(g._visibility|=2,Oo(n,r,o,c,(r.subtreeFlags&10256)!==0||!1)),p&2048&&Lp(E,r);break;case 24:br(n,r,o,c),p&2048&&Pp(r.alternate,r);break;default:br(n,r,o,c)}}function Oo(n,r,o,c,p){for(p=p&&((r.subtreeFlags&10256)!==0||!1),r=r.child;r!==null;){var g=n,E=r,O=o,B=c,K=E.flags;switch(E.tag){case 0:case 11:case 15:Oo(g,E,O,B,p),Xl(8,E);break;case 23:break;case 22:var ne=E.stateNode;E.memoizedState!==null?ne._visibility&2?Oo(g,E,O,B,p):Jl(g,E):(ne._visibility|=2,Oo(g,E,O,B,p)),p&&K&2048&&Lp(E.alternate,E);break;case 24:Oo(g,E,O,B,p),p&&K&2048&&Pp(E.alternate,E);break;default:Oo(g,E,O,B,p)}r=r.sibling}}function Jl(n,r){if(r.subtreeFlags&10256)for(r=r.child;r!==null;){var o=n,c=r,p=c.flags;switch(c.tag){case 22:Jl(o,c),p&2048&&Lp(c.alternate,c);break;case 24:Jl(o,c),p&2048&&Pp(c.alternate,c);break;default:Jl(o,c)}r=r.sibling}}var Zl=8192;function _o(n,r,o){if(n.subtreeFlags&Zl)for(n=n.child;n!==null;)Wy(n,r,o),n=n.sibling}function Wy(n,r,o){switch(n.tag){case 26:_o(n,r,o),n.flags&Zl&&n.memoizedState!==null&&yw(o,yr,n.memoizedState,n.memoizedProps);break;case 5:_o(n,r,o);break;case 3:case 4:var c=yr;yr=pu(n.stateNode.containerInfo),_o(n,r,o),yr=c;break;case 22:n.memoizedState===null&&(c=n.alternate,c!==null&&c.memoizedState!==null?(c=Zl,Zl=16777216,_o(n,r,o),Zl=c):_o(n,r,o));break;default:_o(n,r,o)}}function Ky(n){var r=n.alternate;if(r!==null&&(n=r.child,n!==null)){r.child=null;do r=n.sibling,n.sibling=null,n=r;while(n!==null)}}function es(n){var r=n.deletions;if((n.flags&16)!==0){if(r!==null)for(var o=0;o<r.length;o++){var c=r[o];It=c,Qy(c,n)}Ky(n)}if(n.subtreeFlags&10256)for(n=n.child;n!==null;)Xy(n),n=n.sibling}function Xy(n){switch(n.tag){case 0:case 11:case 15:es(n),n.flags&2048&&Ia(9,n,n.return);break;case 3:es(n);break;case 12:es(n);break;case 22:var r=n.stateNode;n.memoizedState!==null&&r._visibility&2&&(n.return===null||n.return.tag!==13)?(r._visibility&=-3,eu(n)):es(n);break;default:es(n)}}function eu(n){var r=n.deletions;if((n.flags&16)!==0){if(r!==null)for(var o=0;o<r.length;o++){var c=r[o];It=c,Qy(c,n)}Ky(n)}for(n=n.child;n!==null;){switch(r=n,r.tag){case 0:case 11:case 15:Ia(8,r,r.return),eu(r);break;case 22:o=r.stateNode,o._visibility&2&&(o._visibility&=-3,eu(r));break;default:eu(r)}n=n.sibling}}function Qy(n,r){for(;It!==null;){var o=It;switch(o.tag){case 0:case 11:case 15:Ia(8,o,r);break;case 23:case 22:if(o.memoizedState!==null&&o.memoizedState.cachePool!==null){var c=o.memoizedState.cachePool.pool;c!=null&&c.refCount++}break;case 24:Bl(o.memoizedState.cache)}if(c=o.child,c!==null)c.return=o,It=c;else e:for(o=n;It!==null;){c=It;var p=c.sibling,g=c.return;if(Hy(c),c===o){It=null;break e}if(p!==null){p.return=g,It=p;break e}It=g}}}var NE={getCacheForType:function(n){var r=qt(_t),o=r.data.get(n);return o===void 0&&(o=n(),r.data.set(n,o)),o},cacheSignal:function(){return qt(_t).controller.signal}},zE=typeof WeakMap=="function"?WeakMap:Map,qe=0,lt=null,De=null,Be=0,Qe=0,_n=null,Ha=!1,jo=!1,Ip=!1,la=0,yt=0,Ua=0,Oi=0,Hp=0,jn=0,ko=0,ts=null,gn=null,Up=!1,tu=0,Jy=0,nu=1/0,ru=null,Fa=null,Mt=0,Va=null,No=null,sa=0,Fp=0,Vp=null,Zy=null,ns=0,qp=null;function kn(){return(qe&2)!==0&&Be!==0?Be&-Be:k.T!==null?Qp():mg()}function e1(){if(jn===0)if((Be&536870912)===0||Pe){var n=Zi;Zi<<=1,(Zi&3932160)===0&&(Zi=262144),jn=n}else jn=536870912;return n=$n.current,n!==null&&(n.flags|=32),jn}function vn(n,r,o){(n===lt&&(Qe===2||Qe===9)||n.cancelPendingCommit!==null)&&(zo(n,0),qa(n,Be,jn,!1)),El(n,o),((qe&2)===0||n!==lt)&&(n===lt&&((qe&2)===0&&(Oi|=o),yt===4&&qa(n,Be,jn,!1)),jr(n))}function t1(n,r,o){if((qe&6)!==0)throw Error(i(327));var c=!o&&(r&127)===0&&(r&n.expiredLanes)===0||$a(n,r),p=c?BE(n,r):Gp(n,r,!0),g=c;do{if(p===0){jo&&!c&&qa(n,r,0,!1);break}else{if(o=n.current.alternate,g&&!DE(o)){p=Gp(n,r,!1),g=!1;continue}if(p===2){if(g=r,n.errorRecoveryDisabledLanes&g)var E=0;else E=n.pendingLanes&-536870913,E=E!==0?E:E&536870912?536870912:0;if(E!==0){r=E;e:{var O=n;p=ts;var B=O.current.memoizedState.isDehydrated;if(B&&(zo(O,E).flags|=256),E=Gp(O,E,!1),E!==2){if(Ip&&!B){O.errorRecoveryDisabledLanes|=g,Oi|=g,p=4;break e}g=gn,gn=p,g!==null&&(gn===null?gn=g:gn.push.apply(gn,g))}p=E}if(g=!1,p!==2)continue}}if(p===1){zo(n,0),qa(n,r,0,!0);break}e:{switch(c=n,g=p,g){case 0:case 1:throw Error(i(345));case 4:if((r&4194048)!==r)break;case 6:qa(c,r,jn,!Ha);break e;case 2:gn=null;break;case 3:case 5:break;default:throw Error(i(329))}if((r&62914560)===r&&(p=tu+300-At(),10<p)){if(qa(c,r,jn,!Ha),to(c,0,!0)!==0)break e;sa=r,c.timeoutHandle=k1(n1.bind(null,c,o,gn,ru,Up,r,jn,Oi,ko,Ha,g,"Throttled",-0,0),p);break e}n1(c,o,gn,ru,Up,r,jn,Oi,ko,Ha,g,null,-0,0)}}break}while(!0);jr(n)}function n1(n,r,o,c,p,g,E,O,B,K,ne,oe,X,te){if(n.timeoutHandle=-1,oe=r.subtreeFlags,oe&8192||(oe&16785408)===16785408){oe={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:Gr},Wy(r,g,oe);var ve=(g&62914560)===g?tu-At():(g&4194048)===g?Jy-At():0;if(ve=bw(oe,ve),ve!==null){sa=g,n.cancelPendingCommit=ve(u1.bind(null,n,r,g,o,c,p,E,O,B,ne,oe,null,X,te)),qa(n,g,E,!K);return}}u1(n,r,g,o,c,p,E,O,B)}function DE(n){for(var r=n;;){var o=r.tag;if((o===0||o===11||o===15)&&r.flags&16384&&(o=r.updateQueue,o!==null&&(o=o.stores,o!==null)))for(var c=0;c<o.length;c++){var p=o[c],g=p.getSnapshot;p=p.value;try{if(!Rn(g(),p))return!1}catch{return!1}}if(o=r.child,r.subtreeFlags&16384&&o!==null)o.return=r,r=o;else{if(r===n)break;for(;r.sibling===null;){if(r.return===null||r.return===n)return!0;r=r.return}r.sibling.return=r.return,r=r.sibling}}return!0}function qa(n,r,o,c){r&=~Hp,r&=~Oi,n.suspendedLanes|=r,n.pingedLanes&=~r,c&&(n.warmLanes|=r),c=n.expirationTimes;for(var p=r;0<p;){var g=31-rn(p),E=1<<g;c[g]=-1,p&=~E}o!==0&&dg(n,o,r)}function au(){return(qe&6)===0?(rs(0),!1):!0}function Yp(){if(De!==null){if(Qe===0)var n=De.return;else n=De,Qr=xi=null,sp(n),wo=null,Pl=0,n=De;for(;n!==null;)Ny(n.alternate,n),n=n.return;De=null}}function zo(n,r){var o=n.timeoutHandle;o!==-1&&(n.timeoutHandle=-1,tw(o)),o=n.cancelPendingCommit,o!==null&&(n.cancelPendingCommit=null,o()),sa=0,Yp(),lt=n,De=o=Kr(n.current,null),Be=r,Qe=0,_n=null,Ha=!1,jo=$a(n,r),Ip=!1,ko=jn=Hp=Oi=Ua=yt=0,gn=ts=null,Up=!1,(r&8)!==0&&(r|=r&32);var c=n.entangledLanes;if(c!==0)for(n=n.entanglements,c&=r;0<c;){var p=31-rn(c),g=1<<p;r|=n[p],c&=~g}return la=r,Ac(),o}function r1(n,r){$e=null,k.H=Gl,r===Eo||r===Nc?(r=bv(),Qe=3):r===Xd?(r=bv(),Qe=4):Qe=r===wp?8:r!==null&&typeof r=="object"&&typeof r.then=="function"?6:1,_n=r,De===null&&(yt=1,Gc(n,Wn(r,n.current)))}function a1(){var n=$n.current;return n===null?!0:(Be&4194048)===Be?Jn===null:(Be&62914560)===Be||(Be&536870912)!==0?n===Jn:!1}function i1(){var n=k.H;return k.H=Gl,n===null?Gl:n}function o1(){var n=k.A;return k.A=NE,n}function iu(){yt=4,Ha||(Be&4194048)!==Be&&$n.current!==null||(jo=!0),(Ua&134217727)===0&&(Oi&134217727)===0||lt===null||qa(lt,Be,jn,!1)}function Gp(n,r,o){var c=qe;qe|=2;var p=i1(),g=o1();(lt!==n||Be!==r)&&(ru=null,zo(n,r)),r=!1;var E=yt;e:do try{if(Qe!==0&&De!==null){var O=De,B=_n;switch(Qe){case 8:Yp(),E=6;break e;case 3:case 2:case 9:case 6:$n.current===null&&(r=!0);var K=Qe;if(Qe=0,_n=null,Do(n,O,B,K),o&&jo){E=0;break e}break;default:K=Qe,Qe=0,_n=null,Do(n,O,B,K)}}ME(),E=yt;break}catch(ne){r1(n,ne)}while(!0);return r&&n.shellSuspendCounter++,Qr=xi=null,qe=c,k.H=p,k.A=g,De===null&&(lt=null,Be=0,Ac()),E}function ME(){for(;De!==null;)l1(De)}function BE(n,r){var o=qe;qe|=2;var c=i1(),p=o1();lt!==n||Be!==r?(ru=null,nu=At()+500,zo(n,r)):jo=$a(n,r);e:do try{if(Qe!==0&&De!==null){r=De;var g=_n;t:switch(Qe){case 1:Qe=0,_n=null,Do(n,r,g,1);break;case 2:case 9:if(vv(g)){Qe=0,_n=null,s1(r);break}r=function(){Qe!==2&&Qe!==9||lt!==n||(Qe=7),jr(n)},g.then(r,r);break e;case 3:Qe=7;break e;case 4:Qe=5;break e;case 7:vv(g)?(Qe=0,_n=null,s1(r)):(Qe=0,_n=null,Do(n,r,g,7));break;case 5:var E=null;switch(De.tag){case 26:E=De.memoizedState;case 5:case 27:var O=De;if(E?G1(E):O.stateNode.complete){Qe=0,_n=null;var B=O.sibling;if(B!==null)De=B;else{var K=O.return;K!==null?(De=K,ou(K)):De=null}break t}}Qe=0,_n=null,Do(n,r,g,5);break;case 6:Qe=0,_n=null,Do(n,r,g,6);break;case 8:Yp(),yt=6;break e;default:throw Error(i(462))}}LE();break}catch(ne){r1(n,ne)}while(!0);return Qr=xi=null,k.H=c,k.A=p,qe=o,De!==null?0:(lt=null,Be=0,Ac(),yt)}function LE(){for(;De!==null&&!we();)l1(De)}function l1(n){var r=jy(n.alternate,n,la);n.memoizedProps=n.pendingProps,r===null?ou(n):De=r}function s1(n){var r=n,o=r.alternate;switch(r.tag){case 15:case 0:r=Ay(o,r,r.pendingProps,r.type,void 0,Be);break;case 11:r=Ay(o,r,r.pendingProps,r.type.render,r.ref,Be);break;case 5:sp(r);default:Ny(o,r),r=De=ov(r,la),r=jy(o,r,la)}n.memoizedProps=n.pendingProps,r===null?ou(n):De=r}function Do(n,r,o,c){Qr=xi=null,sp(r),wo=null,Pl=0;var p=r.return;try{if(RE(n,p,r,o,Be)){yt=1,Gc(n,Wn(o,n.current)),De=null;return}}catch(g){if(p!==null)throw De=p,g;yt=1,Gc(n,Wn(o,n.current)),De=null;return}r.flags&32768?(Pe||c===1?n=!0:jo||(Be&536870912)!==0?n=!1:(Ha=n=!0,(c===2||c===9||c===3||c===6)&&(c=$n.current,c!==null&&c.tag===13&&(c.flags|=16384))),c1(r,n)):ou(r)}function ou(n){var r=n;do{if((r.flags&32768)!==0){c1(r,Ha);return}n=r.return;var o=OE(r.alternate,r,la);if(o!==null){De=o;return}if(r=r.sibling,r!==null){De=r;return}De=r=n}while(r!==null);yt===0&&(yt=5)}function c1(n,r){do{var o=_E(n.alternate,n);if(o!==null){o.flags&=32767,De=o;return}if(o=n.return,o!==null&&(o.flags|=32768,o.subtreeFlags=0,o.deletions=null),!r&&(n=n.sibling,n!==null)){De=n;return}De=n=o}while(n!==null);yt=6,De=null}function u1(n,r,o,c,p,g,E,O,B){n.cancelPendingCommit=null;do lu();while(Mt!==0);if((qe&6)!==0)throw Error(i(327));if(r!==null){if(r===n.current)throw Error(i(177));if(g=r.lanes|r.childLanes,g|=Dd,v4(n,o,g,E,O,B),n===lt&&(De=lt=null,Be=0),No=r,Va=n,sa=o,Fp=g,Vp=p,Zy=c,(r.subtreeFlags&10256)!==0||(r.flags&10256)!==0?(n.callbackNode=null,n.callbackPriority=0,UE(Dt,function(){return m1(),null})):(n.callbackNode=null,n.callbackPriority=0),c=(r.flags&13878)!==0,(r.subtreeFlags&13878)!==0||c){c=k.T,k.T=null,p=P.p,P.p=2,E=qe,qe|=4;try{jE(n,r,o)}finally{qe=E,P.p=p,k.T=c}}Mt=1,f1(),d1(),p1()}}function f1(){if(Mt===1){Mt=0;var n=Va,r=No,o=(r.flags&13878)!==0;if((r.subtreeFlags&13878)!==0||o){o=k.T,k.T=null;var c=P.p;P.p=2;var p=qe;qe|=4;try{qy(r,n);var g=ih,E=Qg(n.containerInfo),O=g.focusedElem,B=g.selectionRange;if(E!==O&&O&&O.ownerDocument&&Xg(O.ownerDocument.documentElement,O)){if(B!==null&&_d(O)){var K=B.start,ne=B.end;if(ne===void 0&&(ne=K),"selectionStart"in O)O.selectionStart=K,O.selectionEnd=Math.min(ne,O.value.length);else{var oe=O.ownerDocument||document,X=oe&&oe.defaultView||window;if(X.getSelection){var te=X.getSelection(),ve=O.textContent.length,Ee=Math.min(B.start,ve),at=B.end===void 0?Ee:Math.min(B.end,ve);!te.extend&&Ee>at&&(E=at,at=Ee,Ee=E);var F=Kg(O,Ee),I=Kg(O,at);if(F&&I&&(te.rangeCount!==1||te.anchorNode!==F.node||te.anchorOffset!==F.offset||te.focusNode!==I.node||te.focusOffset!==I.offset)){var W=oe.createRange();W.setStart(F.node,F.offset),te.removeAllRanges(),Ee>at?(te.addRange(W),te.extend(I.node,I.offset)):(W.setEnd(I.node,I.offset),te.addRange(W))}}}}for(oe=[],te=O;te=te.parentNode;)te.nodeType===1&&oe.push({element:te,left:te.scrollLeft,top:te.scrollTop});for(typeof O.focus=="function"&&O.focus(),O=0;O<oe.length;O++){var ae=oe[O];ae.element.scrollLeft=ae.left,ae.element.scrollTop=ae.top}}bu=!!ah,ih=ah=null}finally{qe=p,P.p=c,k.T=o}}n.current=r,Mt=2}}function d1(){if(Mt===2){Mt=0;var n=Va,r=No,o=(r.flags&8772)!==0;if((r.subtreeFlags&8772)!==0||o){o=k.T,k.T=null;var c=P.p;P.p=2;var p=qe;qe|=4;try{Iy(n,r.alternate,r)}finally{qe=p,P.p=c,k.T=o}}Mt=3}}function p1(){if(Mt===4||Mt===3){Mt=0,Ra();var n=Va,r=No,o=sa,c=Zy;(r.subtreeFlags&10256)!==0||(r.flags&10256)!==0?Mt=5:(Mt=0,No=Va=null,h1(n,n.pendingLanes));var p=n.pendingLanes;if(p===0&&(Fa=null),fd(o),r=r.stateNode,Ae&&typeof Ae.onCommitFiberRoot=="function")try{Ae.onCommitFiberRoot(ge,r,void 0,(r.current.flags&128)===128)}catch{}if(c!==null){r=k.T,p=P.p,P.p=2,k.T=null;try{for(var g=n.onRecoverableError,E=0;E<c.length;E++){var O=c[E];g(O.value,{componentStack:O.stack})}}finally{k.T=r,P.p=p}}(sa&3)!==0&&lu(),jr(n),p=n.pendingLanes,(o&261930)!==0&&(p&42)!==0?n===qp?ns++:(ns=0,qp=n):ns=0,rs(0)}}function h1(n,r){(n.pooledCacheLanes&=r)===0&&(r=n.pooledCache,r!=null&&(n.pooledCache=null,Bl(r)))}function lu(){return f1(),d1(),p1(),m1()}function m1(){if(Mt!==5)return!1;var n=Va,r=Fp;Fp=0;var o=fd(sa),c=k.T,p=P.p;try{P.p=32>o?32:o,k.T=null,o=Vp,Vp=null;var g=Va,E=sa;if(Mt=0,No=Va=null,sa=0,(qe&6)!==0)throw Error(i(331));var O=qe;if(qe|=4,Xy(g.current),Gy(g,g.current,E,o),qe=O,rs(0,!1),Ae&&typeof Ae.onPostCommitFiberRoot=="function")try{Ae.onPostCommitFiberRoot(ge,g)}catch{}return!0}finally{P.p=p,k.T=c,h1(n,r)}}function g1(n,r,o){r=Wn(o,r),r=Ep(n.stateNode,r,2),n=Ba(n,r,2),n!==null&&(El(n,2),jr(n))}function Je(n,r,o){if(n.tag===3)g1(n,n,o);else for(;r!==null;){if(r.tag===3){g1(r,n,o);break}else if(r.tag===1){var c=r.stateNode;if(typeof r.type.getDerivedStateFromError=="function"||typeof c.componentDidCatch=="function"&&(Fa===null||!Fa.has(c))){n=Wn(o,n),o=vy(2),c=Ba(r,o,2),c!==null&&(yy(o,c,r,n),El(c,2),jr(c));break}}r=r.return}}function Wp(n,r,o){var c=n.pingCache;if(c===null){c=n.pingCache=new zE;var p=new Set;c.set(r,p)}else p=c.get(r),p===void 0&&(p=new Set,c.set(r,p));p.has(o)||(Ip=!0,p.add(o),n=PE.bind(null,n,r,o),r.then(n,n))}function PE(n,r,o){var c=n.pingCache;c!==null&&c.delete(r),n.pingedLanes|=n.suspendedLanes&o,n.warmLanes&=~o,lt===n&&(Be&o)===o&&(yt===4||yt===3&&(Be&62914560)===Be&&300>At()-tu?(qe&2)===0&&zo(n,0):Hp|=o,ko===Be&&(ko=0)),jr(n)}function v1(n,r){r===0&&(r=Cl()),n=vi(n,r),n!==null&&(El(n,r),jr(n))}function IE(n){var r=n.memoizedState,o=0;r!==null&&(o=r.retryLane),v1(n,o)}function HE(n,r){var o=0;switch(n.tag){case 31:case 13:var c=n.stateNode,p=n.memoizedState;p!==null&&(o=p.retryLane);break;case 19:c=n.stateNode;break;case 22:c=n.stateNode._retryCache;break;default:throw Error(i(314))}c!==null&&c.delete(r),v1(n,o)}function UE(n,r){return Lt(n,r)}var su=null,Mo=null,Kp=!1,cu=!1,Xp=!1,Ya=0;function jr(n){n!==Mo&&n.next===null&&(Mo===null?su=Mo=n:Mo=Mo.next=n),cu=!0,Kp||(Kp=!0,VE())}function rs(n,r){if(!Xp&&cu){Xp=!0;do for(var o=!1,c=su;c!==null;){if(n!==0){var p=c.pendingLanes;if(p===0)var g=0;else{var E=c.suspendedLanes,O=c.pingedLanes;g=(1<<31-rn(42|n)+1)-1,g&=p&~(E&~O),g=g&201326741?g&201326741|1:g?g|2:0}g!==0&&(o=!0,S1(c,g))}else g=Be,g=to(c,c===lt?g:0,c.cancelPendingCommit!==null||c.timeoutHandle!==-1),(g&3)===0||$a(c,g)||(o=!0,S1(c,g));c=c.next}while(o);Xp=!1}}function FE(){y1()}function y1(){cu=Kp=!1;var n=0;Ya!==0&&ew()&&(n=Ya);for(var r=At(),o=null,c=su;c!==null;){var p=c.next,g=b1(c,r);g===0?(c.next=null,o===null?su=p:o.next=p,p===null&&(Mo=o)):(o=c,(n!==0||(g&3)!==0)&&(cu=!0)),c=p}Mt!==0&&Mt!==5||rs(n),Ya!==0&&(Ya=0)}function b1(n,r){for(var o=n.suspendedLanes,c=n.pingedLanes,p=n.expirationTimes,g=n.pendingLanes&-62914561;0<g;){var E=31-rn(g),O=1<<E,B=p[E];B===-1?((O&o)===0||(O&c)!==0)&&(p[E]=Ut(O,r)):B<=r&&(n.expiredLanes|=O),g&=~O}if(r=lt,o=Be,o=to(n,n===r?o:0,n.cancelPendingCommit!==null||n.timeoutHandle!==-1),c=n.callbackNode,o===0||n===r&&(Qe===2||Qe===9)||n.cancelPendingCommit!==null)return c!==null&&c!==null&&un(c),n.callbackNode=null,n.callbackPriority=0;if((o&3)===0||$a(n,o)){if(r=o&-o,r===n.callbackPriority)return r;switch(c!==null&&un(c),fd(o)){case 2:case 8:o=Qt;break;case 32:o=Dt;break;case 268435456:o=gr;break;default:o=Dt}return c=x1.bind(null,n),o=Lt(o,c),n.callbackPriority=r,n.callbackNode=o,r}return c!==null&&c!==null&&un(c),n.callbackPriority=2,n.callbackNode=null,2}function x1(n,r){if(Mt!==0&&Mt!==5)return n.callbackNode=null,n.callbackPriority=0,null;var o=n.callbackNode;if(lu()&&n.callbackNode!==o)return null;var c=Be;return c=to(n,n===lt?c:0,n.cancelPendingCommit!==null||n.timeoutHandle!==-1),c===0?null:(t1(n,c,r),b1(n,At()),n.callbackNode!=null&&n.callbackNode===o?x1.bind(null,n):null)}function S1(n,r){if(lu())return null;t1(n,r,!0)}function VE(){nw(function(){(qe&6)!==0?Lt(Tr,FE):y1()})}function Qp(){if(Ya===0){var n=So;n===0&&(n=Ji,Ji<<=1,(Ji&261888)===0&&(Ji=256)),Ya=n}return Ya}function C1(n){return n==null||typeof n=="symbol"||typeof n=="boolean"?null:typeof n=="function"?n:vc(""+n)}function E1(n,r){var o=r.ownerDocument.createElement("input");return o.name=r.name,o.value=r.value,n.id&&o.setAttribute("form",n.id),r.parentNode.insertBefore(o,r),n=new FormData(n),o.parentNode.removeChild(o),n}function qE(n,r,o,c,p){if(r==="submit"&&o&&o.stateNode===p){var g=C1((p[fn]||null).action),E=c.submitter;E&&(r=(r=E[fn]||null)?C1(r.formAction):E.getAttribute("formAction"),r!==null&&(g=r,E=null));var O=new Sc("action","action",null,c,p);n.push({event:O,listeners:[{instance:null,listener:function(){if(c.defaultPrevented){if(Ya!==0){var B=E?E1(p,E):new FormData(p);vp(o,{pending:!0,data:B,method:p.method,action:g},null,B)}}else typeof g=="function"&&(O.preventDefault(),B=E?E1(p,E):new FormData(p),vp(o,{pending:!0,data:B,method:p.method,action:g},g,B))},currentTarget:p}]})}}for(var Jp=0;Jp<zd.length;Jp++){var Zp=zd[Jp],YE=Zp.toLowerCase(),GE=Zp[0].toUpperCase()+Zp.slice(1);vr(YE,"on"+GE)}vr(ev,"onAnimationEnd"),vr(tv,"onAnimationIteration"),vr(nv,"onAnimationStart"),vr("dblclick","onDoubleClick"),vr("focusin","onFocus"),vr("focusout","onBlur"),vr(cE,"onTransitionRun"),vr(uE,"onTransitionStart"),vr(fE,"onTransitionCancel"),vr(rv,"onTransitionEnd"),oo("onMouseEnter",["mouseout","mouseover"]),oo("onMouseLeave",["mouseout","mouseover"]),oo("onPointerEnter",["pointerout","pointerover"]),oo("onPointerLeave",["pointerout","pointerover"]),pi("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),pi("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),pi("onBeforeInput",["compositionend","keypress","textInput","paste"]),pi("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),pi("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),pi("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var as="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),WE=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(as));function w1(n,r){r=(r&4)!==0;for(var o=0;o<n.length;o++){var c=n[o],p=c.event;c=c.listeners;e:{var g=void 0;if(r)for(var E=c.length-1;0<=E;E--){var O=c[E],B=O.instance,K=O.currentTarget;if(O=O.listener,B!==g&&p.isPropagationStopped())break e;g=O,p.currentTarget=K;try{g(p)}catch(ne){wc(ne)}p.currentTarget=null,g=B}else for(E=0;E<c.length;E++){if(O=c[E],B=O.instance,K=O.currentTarget,O=O.listener,B!==g&&p.isPropagationStopped())break e;g=O,p.currentTarget=K;try{g(p)}catch(ne){wc(ne)}p.currentTarget=null,g=B}}}}function Me(n,r){var o=r[dd];o===void 0&&(o=r[dd]=new Set);var c=n+"__bubble";o.has(c)||(A1(r,n,2,!1),o.add(c))}function eh(n,r,o){var c=0;r&&(c|=4),A1(o,n,c,r)}var uu="_reactListening"+Math.random().toString(36).slice(2);function th(n){if(!n[uu]){n[uu]=!0,yg.forEach(function(o){o!=="selectionchange"&&(WE.has(o)||eh(o,!1,n),eh(o,!0,n))});var r=n.nodeType===9?n:n.ownerDocument;r===null||r[uu]||(r[uu]=!0,eh("selectionchange",!1,r))}}function A1(n,r,o,c){switch(eb(r)){case 2:var p=Cw;break;case 8:p=Ew;break;default:p=gh}o=p.bind(null,r,o,n),p=void 0,!Sd||r!=="touchstart"&&r!=="touchmove"&&r!=="wheel"||(p=!0),c?p!==void 0?n.addEventListener(r,o,{capture:!0,passive:p}):n.addEventListener(r,o,!0):p!==void 0?n.addEventListener(r,o,{passive:p}):n.addEventListener(r,o,!1)}function nh(n,r,o,c,p){var g=c;if((r&1)===0&&(r&2)===0&&c!==null)e:for(;;){if(c===null)return;var E=c.tag;if(E===3||E===4){var O=c.stateNode.containerInfo;if(O===p)break;if(E===4)for(E=c.return;E!==null;){var B=E.tag;if((B===3||B===4)&&E.stateNode.containerInfo===p)return;E=E.return}for(;O!==null;){if(E=ro(O),E===null)return;if(B=E.tag,B===5||B===6||B===26||B===27){c=g=E;continue e}O=O.parentNode}}c=c.return}_g(function(){var K=g,ne=bd(o),oe=[];e:{var X=av.get(n);if(X!==void 0){var te=Sc,ve=n;switch(n){case"keypress":if(bc(o)===0)break e;case"keydown":case"keyup":te=H4;break;case"focusin":ve="focus",te=Ad;break;case"focusout":ve="blur",te=Ad;break;case"beforeblur":case"afterblur":te=Ad;break;case"click":if(o.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":te=Ng;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":te=O4;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":te=V4;break;case ev:case tv:case nv:te=k4;break;case rv:te=Y4;break;case"scroll":case"scrollend":te=T4;break;case"wheel":te=W4;break;case"copy":case"cut":case"paste":te=z4;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":te=Dg;break;case"toggle":case"beforetoggle":te=X4}var Ee=(r&4)!==0,at=!Ee&&(n==="scroll"||n==="scrollend"),F=Ee?X!==null?X+"Capture":null:X;Ee=[];for(var I=K,W;I!==null;){var ae=I;if(W=ae.stateNode,ae=ae.tag,ae!==5&&ae!==26&&ae!==27||W===null||F===null||(ae=Rl(I,F),ae!=null&&Ee.push(is(I,ae,W))),at)break;I=I.return}0<Ee.length&&(X=new te(X,ve,null,o,ne),oe.push({event:X,listeners:Ee}))}}if((r&7)===0){e:{if(X=n==="mouseover"||n==="pointerover",te=n==="mouseout"||n==="pointerout",X&&o!==yd&&(ve=o.relatedTarget||o.fromElement)&&(ro(ve)||ve[no]))break e;if((te||X)&&(X=ne.window===ne?ne:(X=ne.ownerDocument)?X.defaultView||X.parentWindow:window,te?(ve=o.relatedTarget||o.toElement,te=K,ve=ve?ro(ve):null,ve!==null&&(at=s(ve),Ee=ve.tag,ve!==at||Ee!==5&&Ee!==27&&Ee!==6)&&(ve=null)):(te=null,ve=K),te!==ve)){if(Ee=Ng,ae="onMouseLeave",F="onMouseEnter",I="mouse",(n==="pointerout"||n==="pointerover")&&(Ee=Dg,ae="onPointerLeave",F="onPointerEnter",I="pointer"),at=te==null?X:Al(te),W=ve==null?X:Al(ve),X=new Ee(ae,I+"leave",te,o,ne),X.target=at,X.relatedTarget=W,ae=null,ro(ne)===K&&(Ee=new Ee(F,I+"enter",ve,o,ne),Ee.target=W,Ee.relatedTarget=at,ae=Ee),at=ae,te&&ve)t:{for(Ee=KE,F=te,I=ve,W=0,ae=F;ae;ae=Ee(ae))W++;ae=0;for(var Se=I;Se;Se=Ee(Se))ae++;for(;0<W-ae;)F=Ee(F),W--;for(;0<ae-W;)I=Ee(I),ae--;for(;W--;){if(F===I||I!==null&&F===I.alternate){Ee=F;break t}F=Ee(F),I=Ee(I)}Ee=null}else Ee=null;te!==null&&R1(oe,X,te,Ee,!1),ve!==null&&at!==null&&R1(oe,at,ve,Ee,!0)}}e:{if(X=K?Al(K):window,te=X.nodeName&&X.nodeName.toLowerCase(),te==="select"||te==="input"&&X.type==="file")var Fe=Fg;else if(Hg(X))if(Vg)Fe=oE;else{Fe=aE;var be=rE}else te=X.nodeName,!te||te.toLowerCase()!=="input"||X.type!=="checkbox"&&X.type!=="radio"?K&&vd(K.elementType)&&(Fe=Fg):Fe=iE;if(Fe&&(Fe=Fe(n,K))){Ug(oe,Fe,o,ne);break e}be&&be(n,X,K),n==="focusout"&&K&&X.type==="number"&&K.memoizedProps.value!=null&&gd(X,"number",X.value)}switch(be=K?Al(K):window,n){case"focusin":(Hg(be)||be.contentEditable==="true")&&(po=be,jd=K,zl=null);break;case"focusout":zl=jd=po=null;break;case"mousedown":kd=!0;break;case"contextmenu":case"mouseup":case"dragend":kd=!1,Jg(oe,o,ne);break;case"selectionchange":if(sE)break;case"keydown":case"keyup":Jg(oe,o,ne)}var je;if(Td)e:{switch(n){case"compositionstart":var Le="onCompositionStart";break e;case"compositionend":Le="onCompositionEnd";break e;case"compositionupdate":Le="onCompositionUpdate";break e}Le=void 0}else fo?Pg(n,o)&&(Le="onCompositionEnd"):n==="keydown"&&o.keyCode===229&&(Le="onCompositionStart");Le&&(Mg&&o.locale!=="ko"&&(fo||Le!=="onCompositionStart"?Le==="onCompositionEnd"&&fo&&(je=jg()):(_a=ne,Cd="value"in _a?_a.value:_a.textContent,fo=!0)),be=fu(K,Le),0<be.length&&(Le=new zg(Le,n,null,o,ne),oe.push({event:Le,listeners:be}),je?Le.data=je:(je=Ig(o),je!==null&&(Le.data=je)))),(je=J4?Z4(n,o):eE(n,o))&&(Le=fu(K,"onBeforeInput"),0<Le.length&&(be=new zg("onBeforeInput","beforeinput",null,o,ne),oe.push({event:be,listeners:Le}),be.data=je)),qE(oe,n,K,o,ne)}w1(oe,r)})}function is(n,r,o){return{instance:n,listener:r,currentTarget:o}}function fu(n,r){for(var o=r+"Capture",c=[];n!==null;){var p=n,g=p.stateNode;if(p=p.tag,p!==5&&p!==26&&p!==27||g===null||(p=Rl(n,o),p!=null&&c.unshift(is(n,p,g)),p=Rl(n,r),p!=null&&c.push(is(n,p,g))),n.tag===3)return c;n=n.return}return[]}function KE(n){if(n===null)return null;do n=n.return;while(n&&n.tag!==5&&n.tag!==27);return n||null}function R1(n,r,o,c,p){for(var g=r._reactName,E=[];o!==null&&o!==c;){var O=o,B=O.alternate,K=O.stateNode;if(O=O.tag,B!==null&&B===c)break;O!==5&&O!==26&&O!==27||K===null||(B=K,p?(K=Rl(o,g),K!=null&&E.unshift(is(o,K,B))):p||(K=Rl(o,g),K!=null&&E.push(is(o,K,B)))),o=o.return}E.length!==0&&n.push({event:r,listeners:E})}var XE=/\r\n?/g,QE=/\u0000|\uFFFD/g;function T1(n){return(typeof n=="string"?n:""+n).replace(XE,`
9
+ `).replace(QE,"")}function $1(n,r){return r=T1(r),T1(n)===r}function rt(n,r,o,c,p,g){switch(o){case"children":typeof c=="string"?r==="body"||r==="textarea"&&c===""||so(n,c):(typeof c=="number"||typeof c=="bigint")&&r!=="body"&&so(n,""+c);break;case"className":mc(n,"class",c);break;case"tabIndex":mc(n,"tabindex",c);break;case"dir":case"role":case"viewBox":case"width":case"height":mc(n,o,c);break;case"style":$g(n,c,g);break;case"data":if(r!=="object"){mc(n,"data",c);break}case"src":case"href":if(c===""&&(r!=="a"||o!=="href")){n.removeAttribute(o);break}if(c==null||typeof c=="function"||typeof c=="symbol"||typeof c=="boolean"){n.removeAttribute(o);break}c=vc(""+c),n.setAttribute(o,c);break;case"action":case"formAction":if(typeof c=="function"){n.setAttribute(o,"javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')");break}else typeof g=="function"&&(o==="formAction"?(r!=="input"&&rt(n,r,"name",p.name,p,null),rt(n,r,"formEncType",p.formEncType,p,null),rt(n,r,"formMethod",p.formMethod,p,null),rt(n,r,"formTarget",p.formTarget,p,null)):(rt(n,r,"encType",p.encType,p,null),rt(n,r,"method",p.method,p,null),rt(n,r,"target",p.target,p,null)));if(c==null||typeof c=="symbol"||typeof c=="boolean"){n.removeAttribute(o);break}c=vc(""+c),n.setAttribute(o,c);break;case"onClick":c!=null&&(n.onclick=Gr);break;case"onScroll":c!=null&&Me("scroll",n);break;case"onScrollEnd":c!=null&&Me("scrollend",n);break;case"dangerouslySetInnerHTML":if(c!=null){if(typeof c!="object"||!("__html"in c))throw Error(i(61));if(o=c.__html,o!=null){if(p.children!=null)throw Error(i(60));n.innerHTML=o}}break;case"multiple":n.multiple=c&&typeof c!="function"&&typeof c!="symbol";break;case"muted":n.muted=c&&typeof c!="function"&&typeof c!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(c==null||typeof c=="function"||typeof c=="boolean"||typeof c=="symbol"){n.removeAttribute("xlink:href");break}o=vc(""+c),n.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",o);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":c!=null&&typeof c!="function"&&typeof c!="symbol"?n.setAttribute(o,""+c):n.removeAttribute(o);break;case"inert":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":c&&typeof c!="function"&&typeof c!="symbol"?n.setAttribute(o,""):n.removeAttribute(o);break;case"capture":case"download":c===!0?n.setAttribute(o,""):c!==!1&&c!=null&&typeof c!="function"&&typeof c!="symbol"?n.setAttribute(o,c):n.removeAttribute(o);break;case"cols":case"rows":case"size":case"span":c!=null&&typeof c!="function"&&typeof c!="symbol"&&!isNaN(c)&&1<=c?n.setAttribute(o,c):n.removeAttribute(o);break;case"rowSpan":case"start":c==null||typeof c=="function"||typeof c=="symbol"||isNaN(c)?n.removeAttribute(o):n.setAttribute(o,c);break;case"popover":Me("beforetoggle",n),Me("toggle",n),hc(n,"popover",c);break;case"xlinkActuate":Yr(n,"http://www.w3.org/1999/xlink","xlink:actuate",c);break;case"xlinkArcrole":Yr(n,"http://www.w3.org/1999/xlink","xlink:arcrole",c);break;case"xlinkRole":Yr(n,"http://www.w3.org/1999/xlink","xlink:role",c);break;case"xlinkShow":Yr(n,"http://www.w3.org/1999/xlink","xlink:show",c);break;case"xlinkTitle":Yr(n,"http://www.w3.org/1999/xlink","xlink:title",c);break;case"xlinkType":Yr(n,"http://www.w3.org/1999/xlink","xlink:type",c);break;case"xmlBase":Yr(n,"http://www.w3.org/XML/1998/namespace","xml:base",c);break;case"xmlLang":Yr(n,"http://www.w3.org/XML/1998/namespace","xml:lang",c);break;case"xmlSpace":Yr(n,"http://www.w3.org/XML/1998/namespace","xml:space",c);break;case"is":hc(n,"is",c);break;case"innerText":case"textContent":break;default:(!(2<o.length)||o[0]!=="o"&&o[0]!=="O"||o[1]!=="n"&&o[1]!=="N")&&(o=A4.get(o)||o,hc(n,o,c))}}function rh(n,r,o,c,p,g){switch(o){case"style":$g(n,c,g);break;case"dangerouslySetInnerHTML":if(c!=null){if(typeof c!="object"||!("__html"in c))throw Error(i(61));if(o=c.__html,o!=null){if(p.children!=null)throw Error(i(60));n.innerHTML=o}}break;case"children":typeof c=="string"?so(n,c):(typeof c=="number"||typeof c=="bigint")&&so(n,""+c);break;case"onScroll":c!=null&&Me("scroll",n);break;case"onScrollEnd":c!=null&&Me("scrollend",n);break;case"onClick":c!=null&&(n.onclick=Gr);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!bg.hasOwnProperty(o))e:{if(o[0]==="o"&&o[1]==="n"&&(p=o.endsWith("Capture"),r=o.slice(2,p?o.length-7:void 0),g=n[fn]||null,g=g!=null?g[o]:null,typeof g=="function"&&n.removeEventListener(r,g,p),typeof c=="function")){typeof g!="function"&&g!==null&&(o in n?n[o]=null:n.hasAttribute(o)&&n.removeAttribute(o)),n.addEventListener(r,c,p);break e}o in n?n[o]=c:c===!0?n.setAttribute(o,""):hc(n,o,c)}}}function Gt(n,r,o){switch(r){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":Me("error",n),Me("load",n);var c=!1,p=!1,g;for(g in o)if(o.hasOwnProperty(g)){var E=o[g];if(E!=null)switch(g){case"src":c=!0;break;case"srcSet":p=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(i(137,r));default:rt(n,r,g,E,o,null)}}p&&rt(n,r,"srcSet",o.srcSet,o,null),c&&rt(n,r,"src",o.src,o,null);return;case"input":Me("invalid",n);var O=g=E=p=null,B=null,K=null;for(c in o)if(o.hasOwnProperty(c)){var ne=o[c];if(ne!=null)switch(c){case"name":p=ne;break;case"type":E=ne;break;case"checked":B=ne;break;case"defaultChecked":K=ne;break;case"value":g=ne;break;case"defaultValue":O=ne;break;case"children":case"dangerouslySetInnerHTML":if(ne!=null)throw Error(i(137,r));break;default:rt(n,r,c,ne,o,null)}}wg(n,g,O,B,K,E,p,!1);return;case"select":Me("invalid",n),c=E=g=null;for(p in o)if(o.hasOwnProperty(p)&&(O=o[p],O!=null))switch(p){case"value":g=O;break;case"defaultValue":E=O;break;case"multiple":c=O;default:rt(n,r,p,O,o,null)}r=g,o=E,n.multiple=!!c,r!=null?lo(n,!!c,r,!1):o!=null&&lo(n,!!c,o,!0);return;case"textarea":Me("invalid",n),g=p=c=null;for(E in o)if(o.hasOwnProperty(E)&&(O=o[E],O!=null))switch(E){case"value":c=O;break;case"defaultValue":p=O;break;case"children":g=O;break;case"dangerouslySetInnerHTML":if(O!=null)throw Error(i(91));break;default:rt(n,r,E,O,o,null)}Rg(n,c,p,g);return;case"option":for(B in o)o.hasOwnProperty(B)&&(c=o[B],c!=null)&&(B==="selected"?n.selected=c&&typeof c!="function"&&typeof c!="symbol":rt(n,r,B,c,o,null));return;case"dialog":Me("beforetoggle",n),Me("toggle",n),Me("cancel",n),Me("close",n);break;case"iframe":case"object":Me("load",n);break;case"video":case"audio":for(c=0;c<as.length;c++)Me(as[c],n);break;case"image":Me("error",n),Me("load",n);break;case"details":Me("toggle",n);break;case"embed":case"source":case"link":Me("error",n),Me("load",n);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(K in o)if(o.hasOwnProperty(K)&&(c=o[K],c!=null))switch(K){case"children":case"dangerouslySetInnerHTML":throw Error(i(137,r));default:rt(n,r,K,c,o,null)}return;default:if(vd(r)){for(ne in o)o.hasOwnProperty(ne)&&(c=o[ne],c!==void 0&&rh(n,r,ne,c,o,void 0));return}}for(O in o)o.hasOwnProperty(O)&&(c=o[O],c!=null&&rt(n,r,O,c,o,null))}function JE(n,r,o,c){switch(r){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var p=null,g=null,E=null,O=null,B=null,K=null,ne=null;for(te in o){var oe=o[te];if(o.hasOwnProperty(te)&&oe!=null)switch(te){case"checked":break;case"value":break;case"defaultValue":B=oe;default:c.hasOwnProperty(te)||rt(n,r,te,null,c,oe)}}for(var X in c){var te=c[X];if(oe=o[X],c.hasOwnProperty(X)&&(te!=null||oe!=null))switch(X){case"type":g=te;break;case"name":p=te;break;case"checked":K=te;break;case"defaultChecked":ne=te;break;case"value":E=te;break;case"defaultValue":O=te;break;case"children":case"dangerouslySetInnerHTML":if(te!=null)throw Error(i(137,r));break;default:te!==oe&&rt(n,r,X,te,c,oe)}}md(n,E,O,B,K,ne,g,p);return;case"select":te=E=O=X=null;for(g in o)if(B=o[g],o.hasOwnProperty(g)&&B!=null)switch(g){case"value":break;case"multiple":te=B;default:c.hasOwnProperty(g)||rt(n,r,g,null,c,B)}for(p in c)if(g=c[p],B=o[p],c.hasOwnProperty(p)&&(g!=null||B!=null))switch(p){case"value":X=g;break;case"defaultValue":O=g;break;case"multiple":E=g;default:g!==B&&rt(n,r,p,g,c,B)}r=O,o=E,c=te,X!=null?lo(n,!!o,X,!1):!!c!=!!o&&(r!=null?lo(n,!!o,r,!0):lo(n,!!o,o?[]:"",!1));return;case"textarea":te=X=null;for(O in o)if(p=o[O],o.hasOwnProperty(O)&&p!=null&&!c.hasOwnProperty(O))switch(O){case"value":break;case"children":break;default:rt(n,r,O,null,c,p)}for(E in c)if(p=c[E],g=o[E],c.hasOwnProperty(E)&&(p!=null||g!=null))switch(E){case"value":X=p;break;case"defaultValue":te=p;break;case"children":break;case"dangerouslySetInnerHTML":if(p!=null)throw Error(i(91));break;default:p!==g&&rt(n,r,E,p,c,g)}Ag(n,X,te);return;case"option":for(var ve in o)X=o[ve],o.hasOwnProperty(ve)&&X!=null&&!c.hasOwnProperty(ve)&&(ve==="selected"?n.selected=!1:rt(n,r,ve,null,c,X));for(B in c)X=c[B],te=o[B],c.hasOwnProperty(B)&&X!==te&&(X!=null||te!=null)&&(B==="selected"?n.selected=X&&typeof X!="function"&&typeof X!="symbol":rt(n,r,B,X,c,te));return;case"img":case"link":case"area":case"base":case"br":case"col":case"embed":case"hr":case"keygen":case"meta":case"param":case"source":case"track":case"wbr":case"menuitem":for(var Ee in o)X=o[Ee],o.hasOwnProperty(Ee)&&X!=null&&!c.hasOwnProperty(Ee)&&rt(n,r,Ee,null,c,X);for(K in c)if(X=c[K],te=o[K],c.hasOwnProperty(K)&&X!==te&&(X!=null||te!=null))switch(K){case"children":case"dangerouslySetInnerHTML":if(X!=null)throw Error(i(137,r));break;default:rt(n,r,K,X,c,te)}return;default:if(vd(r)){for(var at in o)X=o[at],o.hasOwnProperty(at)&&X!==void 0&&!c.hasOwnProperty(at)&&rh(n,r,at,void 0,c,X);for(ne in c)X=c[ne],te=o[ne],!c.hasOwnProperty(ne)||X===te||X===void 0&&te===void 0||rh(n,r,ne,X,c,te);return}}for(var F in o)X=o[F],o.hasOwnProperty(F)&&X!=null&&!c.hasOwnProperty(F)&&rt(n,r,F,null,c,X);for(oe in c)X=c[oe],te=o[oe],!c.hasOwnProperty(oe)||X===te||X==null&&te==null||rt(n,r,oe,X,c,te)}function O1(n){switch(n){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function ZE(){if(typeof performance.getEntriesByType=="function"){for(var n=0,r=0,o=performance.getEntriesByType("resource"),c=0;c<o.length;c++){var p=o[c],g=p.transferSize,E=p.initiatorType,O=p.duration;if(g&&O&&O1(E)){for(E=0,O=p.responseEnd,c+=1;c<o.length;c++){var B=o[c],K=B.startTime;if(K>O)break;var ne=B.transferSize,oe=B.initiatorType;ne&&O1(oe)&&(B=B.responseEnd,E+=ne*(B<O?1:(O-K)/(B-K)))}if(--c,r+=8*(g+E)/(p.duration/1e3),n++,10<n)break}}if(0<n)return r/n/1e6}return navigator.connection&&(n=navigator.connection.downlink,typeof n=="number")?n:5}var ah=null,ih=null;function du(n){return n.nodeType===9?n:n.ownerDocument}function _1(n){switch(n){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function j1(n,r){if(n===0)switch(r){case"svg":return 1;case"math":return 2;default:return 0}return n===1&&r==="foreignObject"?0:n}function oh(n,r){return n==="textarea"||n==="noscript"||typeof r.children=="string"||typeof r.children=="number"||typeof r.children=="bigint"||typeof r.dangerouslySetInnerHTML=="object"&&r.dangerouslySetInnerHTML!==null&&r.dangerouslySetInnerHTML.__html!=null}var lh=null;function ew(){var n=window.event;return n&&n.type==="popstate"?n===lh?!1:(lh=n,!0):(lh=null,!1)}var k1=typeof setTimeout=="function"?setTimeout:void 0,tw=typeof clearTimeout=="function"?clearTimeout:void 0,N1=typeof Promise=="function"?Promise:void 0,nw=typeof queueMicrotask=="function"?queueMicrotask:typeof N1<"u"?function(n){return N1.resolve(null).then(n).catch(rw)}:k1;function rw(n){setTimeout(function(){throw n})}function Ga(n){return n==="head"}function z1(n,r){var o=r,c=0;do{var p=o.nextSibling;if(n.removeChild(o),p&&p.nodeType===8)if(o=p.data,o==="/$"||o==="/&"){if(c===0){n.removeChild(p),Io(r);return}c--}else if(o==="$"||o==="$?"||o==="$~"||o==="$!"||o==="&")c++;else if(o==="html")os(n.ownerDocument.documentElement);else if(o==="head"){o=n.ownerDocument.head,os(o);for(var g=o.firstChild;g;){var E=g.nextSibling,O=g.nodeName;g[wl]||O==="SCRIPT"||O==="STYLE"||O==="LINK"&&g.rel.toLowerCase()==="stylesheet"||o.removeChild(g),g=E}}else o==="body"&&os(n.ownerDocument.body);o=p}while(o);Io(r)}function D1(n,r){var o=n;n=0;do{var c=o.nextSibling;if(o.nodeType===1?r?(o._stashedDisplay=o.style.display,o.style.display="none"):(o.style.display=o._stashedDisplay||"",o.getAttribute("style")===""&&o.removeAttribute("style")):o.nodeType===3&&(r?(o._stashedText=o.nodeValue,o.nodeValue=""):o.nodeValue=o._stashedText||""),c&&c.nodeType===8)if(o=c.data,o==="/$"){if(n===0)break;n--}else o!=="$"&&o!=="$?"&&o!=="$~"&&o!=="$!"||n++;o=c}while(o)}function sh(n){var r=n.firstChild;for(r&&r.nodeType===10&&(r=r.nextSibling);r;){var o=r;switch(r=r.nextSibling,o.nodeName){case"HTML":case"HEAD":case"BODY":sh(o),pd(o);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(o.rel.toLowerCase()==="stylesheet")continue}n.removeChild(o)}}function aw(n,r,o,c){for(;n.nodeType===1;){var p=o;if(n.nodeName.toLowerCase()!==r.toLowerCase()){if(!c&&(n.nodeName!=="INPUT"||n.type!=="hidden"))break}else if(c){if(!n[wl])switch(r){case"meta":if(!n.hasAttribute("itemprop"))break;return n;case"link":if(g=n.getAttribute("rel"),g==="stylesheet"&&n.hasAttribute("data-precedence"))break;if(g!==p.rel||n.getAttribute("href")!==(p.href==null||p.href===""?null:p.href)||n.getAttribute("crossorigin")!==(p.crossOrigin==null?null:p.crossOrigin)||n.getAttribute("title")!==(p.title==null?null:p.title))break;return n;case"style":if(n.hasAttribute("data-precedence"))break;return n;case"script":if(g=n.getAttribute("src"),(g!==(p.src==null?null:p.src)||n.getAttribute("type")!==(p.type==null?null:p.type)||n.getAttribute("crossorigin")!==(p.crossOrigin==null?null:p.crossOrigin))&&g&&n.hasAttribute("async")&&!n.hasAttribute("itemprop"))break;return n;default:return n}}else if(r==="input"&&n.type==="hidden"){var g=p.name==null?null:""+p.name;if(p.type==="hidden"&&n.getAttribute("name")===g)return n}else return n;if(n=Zn(n.nextSibling),n===null)break}return null}function iw(n,r,o){if(r==="")return null;for(;n.nodeType!==3;)if((n.nodeType!==1||n.nodeName!=="INPUT"||n.type!=="hidden")&&!o||(n=Zn(n.nextSibling),n===null))return null;return n}function M1(n,r){for(;n.nodeType!==8;)if((n.nodeType!==1||n.nodeName!=="INPUT"||n.type!=="hidden")&&!r||(n=Zn(n.nextSibling),n===null))return null;return n}function ch(n){return n.data==="$?"||n.data==="$~"}function uh(n){return n.data==="$!"||n.data==="$?"&&n.ownerDocument.readyState!=="loading"}function ow(n,r){var o=n.ownerDocument;if(n.data==="$~")n._reactRetry=r;else if(n.data!=="$?"||o.readyState!=="loading")r();else{var c=function(){r(),o.removeEventListener("DOMContentLoaded",c)};o.addEventListener("DOMContentLoaded",c),n._reactRetry=c}}function Zn(n){for(;n!=null;n=n.nextSibling){var r=n.nodeType;if(r===1||r===3)break;if(r===8){if(r=n.data,r==="$"||r==="$!"||r==="$?"||r==="$~"||r==="&"||r==="F!"||r==="F")break;if(r==="/$"||r==="/&")return null}}return n}var fh=null;function B1(n){n=n.nextSibling;for(var r=0;n;){if(n.nodeType===8){var o=n.data;if(o==="/$"||o==="/&"){if(r===0)return Zn(n.nextSibling);r--}else o!=="$"&&o!=="$!"&&o!=="$?"&&o!=="$~"&&o!=="&"||r++}n=n.nextSibling}return null}function L1(n){n=n.previousSibling;for(var r=0;n;){if(n.nodeType===8){var o=n.data;if(o==="$"||o==="$!"||o==="$?"||o==="$~"||o==="&"){if(r===0)return n;r--}else o!=="/$"&&o!=="/&"||r++}n=n.previousSibling}return null}function P1(n,r,o){switch(r=du(o),n){case"html":if(n=r.documentElement,!n)throw Error(i(452));return n;case"head":if(n=r.head,!n)throw Error(i(453));return n;case"body":if(n=r.body,!n)throw Error(i(454));return n;default:throw Error(i(451))}}function os(n){for(var r=n.attributes;r.length;)n.removeAttributeNode(r[0]);pd(n)}var er=new Map,I1=new Set;function pu(n){return typeof n.getRootNode=="function"?n.getRootNode():n.nodeType===9?n:n.ownerDocument}var ca=P.d;P.d={f:lw,r:sw,D:cw,C:uw,L:fw,m:dw,X:hw,S:pw,M:mw};function lw(){var n=ca.f(),r=au();return n||r}function sw(n){var r=ao(n);r!==null&&r.tag===5&&r.type==="form"?ry(r):ca.r(n)}var Bo=typeof document>"u"?null:document;function H1(n,r,o){var c=Bo;if(c&&typeof r=="string"&&r){var p=Yn(r);p='link[rel="'+n+'"][href="'+p+'"]',typeof o=="string"&&(p+='[crossorigin="'+o+'"]'),I1.has(p)||(I1.add(p),n={rel:n,crossOrigin:o,href:r},c.querySelector(p)===null&&(r=c.createElement("link"),Gt(r,"link",n),Pt(r),c.head.appendChild(r)))}}function cw(n){ca.D(n),H1("dns-prefetch",n,null)}function uw(n,r){ca.C(n,r),H1("preconnect",n,r)}function fw(n,r,o){ca.L(n,r,o);var c=Bo;if(c&&n&&r){var p='link[rel="preload"][as="'+Yn(r)+'"]';r==="image"&&o&&o.imageSrcSet?(p+='[imagesrcset="'+Yn(o.imageSrcSet)+'"]',typeof o.imageSizes=="string"&&(p+='[imagesizes="'+Yn(o.imageSizes)+'"]')):p+='[href="'+Yn(n)+'"]';var g=p;switch(r){case"style":g=Lo(n);break;case"script":g=Po(n)}er.has(g)||(n=v({rel:"preload",href:r==="image"&&o&&o.imageSrcSet?void 0:n,as:r},o),er.set(g,n),c.querySelector(p)!==null||r==="style"&&c.querySelector(ls(g))||r==="script"&&c.querySelector(ss(g))||(r=c.createElement("link"),Gt(r,"link",n),Pt(r),c.head.appendChild(r)))}}function dw(n,r){ca.m(n,r);var o=Bo;if(o&&n){var c=r&&typeof r.as=="string"?r.as:"script",p='link[rel="modulepreload"][as="'+Yn(c)+'"][href="'+Yn(n)+'"]',g=p;switch(c){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":g=Po(n)}if(!er.has(g)&&(n=v({rel:"modulepreload",href:n},r),er.set(g,n),o.querySelector(p)===null)){switch(c){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(o.querySelector(ss(g)))return}c=o.createElement("link"),Gt(c,"link",n),Pt(c),o.head.appendChild(c)}}}function pw(n,r,o){ca.S(n,r,o);var c=Bo;if(c&&n){var p=io(c).hoistableStyles,g=Lo(n);r=r||"default";var E=p.get(g);if(!E){var O={loading:0,preload:null};if(E=c.querySelector(ls(g)))O.loading=5;else{n=v({rel:"stylesheet",href:n,"data-precedence":r},o),(o=er.get(g))&&dh(n,o);var B=E=c.createElement("link");Pt(B),Gt(B,"link",n),B._p=new Promise(function(K,ne){B.onload=K,B.onerror=ne}),B.addEventListener("load",function(){O.loading|=1}),B.addEventListener("error",function(){O.loading|=2}),O.loading|=4,hu(E,r,c)}E={type:"stylesheet",instance:E,count:1,state:O},p.set(g,E)}}}function hw(n,r){ca.X(n,r);var o=Bo;if(o&&n){var c=io(o).hoistableScripts,p=Po(n),g=c.get(p);g||(g=o.querySelector(ss(p)),g||(n=v({src:n,async:!0},r),(r=er.get(p))&&ph(n,r),g=o.createElement("script"),Pt(g),Gt(g,"link",n),o.head.appendChild(g)),g={type:"script",instance:g,count:1,state:null},c.set(p,g))}}function mw(n,r){ca.M(n,r);var o=Bo;if(o&&n){var c=io(o).hoistableScripts,p=Po(n),g=c.get(p);g||(g=o.querySelector(ss(p)),g||(n=v({src:n,async:!0,type:"module"},r),(r=er.get(p))&&ph(n,r),g=o.createElement("script"),Pt(g),Gt(g,"link",n),o.head.appendChild(g)),g={type:"script",instance:g,count:1,state:null},c.set(p,g))}}function U1(n,r,o,c){var p=(p=me.current)?pu(p):null;if(!p)throw Error(i(446));switch(n){case"meta":case"title":return null;case"style":return typeof o.precedence=="string"&&typeof o.href=="string"?(r=Lo(o.href),o=io(p).hoistableStyles,c=o.get(r),c||(c={type:"style",instance:null,count:0,state:null},o.set(r,c)),c):{type:"void",instance:null,count:0,state:null};case"link":if(o.rel==="stylesheet"&&typeof o.href=="string"&&typeof o.precedence=="string"){n=Lo(o.href);var g=io(p).hoistableStyles,E=g.get(n);if(E||(p=p.ownerDocument||p,E={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},g.set(n,E),(g=p.querySelector(ls(n)))&&!g._p&&(E.instance=g,E.state.loading=5),er.has(n)||(o={rel:"preload",as:"style",href:o.href,crossOrigin:o.crossOrigin,integrity:o.integrity,media:o.media,hrefLang:o.hrefLang,referrerPolicy:o.referrerPolicy},er.set(n,o),g||gw(p,n,o,E.state))),r&&c===null)throw Error(i(528,""));return E}if(r&&c!==null)throw Error(i(529,""));return null;case"script":return r=o.async,o=o.src,typeof o=="string"&&r&&typeof r!="function"&&typeof r!="symbol"?(r=Po(o),o=io(p).hoistableScripts,c=o.get(r),c||(c={type:"script",instance:null,count:0,state:null},o.set(r,c)),c):{type:"void",instance:null,count:0,state:null};default:throw Error(i(444,n))}}function Lo(n){return'href="'+Yn(n)+'"'}function ls(n){return'link[rel="stylesheet"]['+n+"]"}function F1(n){return v({},n,{"data-precedence":n.precedence,precedence:null})}function gw(n,r,o,c){n.querySelector('link[rel="preload"][as="style"]['+r+"]")?c.loading=1:(r=n.createElement("link"),c.preload=r,r.addEventListener("load",function(){return c.loading|=1}),r.addEventListener("error",function(){return c.loading|=2}),Gt(r,"link",o),Pt(r),n.head.appendChild(r))}function Po(n){return'[src="'+Yn(n)+'"]'}function ss(n){return"script[async]"+n}function V1(n,r,o){if(r.count++,r.instance===null)switch(r.type){case"style":var c=n.querySelector('style[data-href~="'+Yn(o.href)+'"]');if(c)return r.instance=c,Pt(c),c;var p=v({},o,{"data-href":o.href,"data-precedence":o.precedence,href:null,precedence:null});return c=(n.ownerDocument||n).createElement("style"),Pt(c),Gt(c,"style",p),hu(c,o.precedence,n),r.instance=c;case"stylesheet":p=Lo(o.href);var g=n.querySelector(ls(p));if(g)return r.state.loading|=4,r.instance=g,Pt(g),g;c=F1(o),(p=er.get(p))&&dh(c,p),g=(n.ownerDocument||n).createElement("link"),Pt(g);var E=g;return E._p=new Promise(function(O,B){E.onload=O,E.onerror=B}),Gt(g,"link",c),r.state.loading|=4,hu(g,o.precedence,n),r.instance=g;case"script":return g=Po(o.src),(p=n.querySelector(ss(g)))?(r.instance=p,Pt(p),p):(c=o,(p=er.get(g))&&(c=v({},o),ph(c,p)),n=n.ownerDocument||n,p=n.createElement("script"),Pt(p),Gt(p,"link",c),n.head.appendChild(p),r.instance=p);case"void":return null;default:throw Error(i(443,r.type))}else r.type==="stylesheet"&&(r.state.loading&4)===0&&(c=r.instance,r.state.loading|=4,hu(c,o.precedence,n));return r.instance}function hu(n,r,o){for(var c=o.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),p=c.length?c[c.length-1]:null,g=p,E=0;E<c.length;E++){var O=c[E];if(O.dataset.precedence===r)g=O;else if(g!==p)break}g?g.parentNode.insertBefore(n,g.nextSibling):(r=o.nodeType===9?o.head:o,r.insertBefore(n,r.firstChild))}function dh(n,r){n.crossOrigin==null&&(n.crossOrigin=r.crossOrigin),n.referrerPolicy==null&&(n.referrerPolicy=r.referrerPolicy),n.title==null&&(n.title=r.title)}function ph(n,r){n.crossOrigin==null&&(n.crossOrigin=r.crossOrigin),n.referrerPolicy==null&&(n.referrerPolicy=r.referrerPolicy),n.integrity==null&&(n.integrity=r.integrity)}var mu=null;function q1(n,r,o){if(mu===null){var c=new Map,p=mu=new Map;p.set(o,c)}else p=mu,c=p.get(o),c||(c=new Map,p.set(o,c));if(c.has(n))return c;for(c.set(n,null),o=o.getElementsByTagName(n),p=0;p<o.length;p++){var g=o[p];if(!(g[wl]||g[Ft]||n==="link"&&g.getAttribute("rel")==="stylesheet")&&g.namespaceURI!=="http://www.w3.org/2000/svg"){var E=g.getAttribute(r)||"";E=n+E;var O=c.get(E);O?O.push(g):c.set(E,[g])}}return c}function Y1(n,r,o){n=n.ownerDocument||n,n.head.insertBefore(o,r==="title"?n.querySelector("head > title"):null)}function vw(n,r,o){if(o===1||r.itemProp!=null)return!1;switch(n){case"meta":case"title":return!0;case"style":if(typeof r.precedence!="string"||typeof r.href!="string"||r.href==="")break;return!0;case"link":if(typeof r.rel!="string"||typeof r.href!="string"||r.href===""||r.onLoad||r.onError)break;return r.rel==="stylesheet"?(n=r.disabled,typeof r.precedence=="string"&&n==null):!0;case"script":if(r.async&&typeof r.async!="function"&&typeof r.async!="symbol"&&!r.onLoad&&!r.onError&&r.src&&typeof r.src=="string")return!0}return!1}function G1(n){return!(n.type==="stylesheet"&&(n.state.loading&3)===0)}function yw(n,r,o,c){if(o.type==="stylesheet"&&(typeof c.media!="string"||matchMedia(c.media).matches!==!1)&&(o.state.loading&4)===0){if(o.instance===null){var p=Lo(c.href),g=r.querySelector(ls(p));if(g){r=g._p,r!==null&&typeof r=="object"&&typeof r.then=="function"&&(n.count++,n=gu.bind(n),r.then(n,n)),o.state.loading|=4,o.instance=g,Pt(g);return}g=r.ownerDocument||r,c=F1(c),(p=er.get(p))&&dh(c,p),g=g.createElement("link"),Pt(g);var E=g;E._p=new Promise(function(O,B){E.onload=O,E.onerror=B}),Gt(g,"link",c),o.instance=g}n.stylesheets===null&&(n.stylesheets=new Map),n.stylesheets.set(o,r),(r=o.state.preload)&&(o.state.loading&3)===0&&(n.count++,o=gu.bind(n),r.addEventListener("load",o),r.addEventListener("error",o))}}var hh=0;function bw(n,r){return n.stylesheets&&n.count===0&&yu(n,n.stylesheets),0<n.count||0<n.imgCount?function(o){var c=setTimeout(function(){if(n.stylesheets&&yu(n,n.stylesheets),n.unsuspend){var g=n.unsuspend;n.unsuspend=null,g()}},6e4+r);0<n.imgBytes&&hh===0&&(hh=62500*ZE());var p=setTimeout(function(){if(n.waitingForImages=!1,n.count===0&&(n.stylesheets&&yu(n,n.stylesheets),n.unsuspend)){var g=n.unsuspend;n.unsuspend=null,g()}},(n.imgBytes>hh?50:800)+r);return n.unsuspend=o,function(){n.unsuspend=null,clearTimeout(c),clearTimeout(p)}}:null}function gu(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)yu(this,this.stylesheets);else if(this.unsuspend){var n=this.unsuspend;this.unsuspend=null,n()}}}var vu=null;function yu(n,r){n.stylesheets=null,n.unsuspend!==null&&(n.count++,vu=new Map,r.forEach(xw,n),vu=null,gu.call(n))}function xw(n,r){if(!(r.state.loading&4)){var o=vu.get(n);if(o)var c=o.get(null);else{o=new Map,vu.set(n,o);for(var p=n.querySelectorAll("link[data-precedence],style[data-precedence]"),g=0;g<p.length;g++){var E=p[g];(E.nodeName==="LINK"||E.getAttribute("media")!=="not all")&&(o.set(E.dataset.precedence,E),c=E)}c&&o.set(null,c)}p=r.instance,E=p.getAttribute("data-precedence"),g=o.get(E)||c,g===c&&o.set(null,p),o.set(E,p),this.count++,c=gu.bind(this),p.addEventListener("load",c),p.addEventListener("error",c),g?g.parentNode.insertBefore(p,g.nextSibling):(n=n.nodeType===9?n.head:n,n.insertBefore(p,n.firstChild)),r.state.loading|=4}}var cs={$$typeof:R,Provider:null,Consumer:null,_currentValue:J,_currentValue2:J,_threadCount:0};function Sw(n,r,o,c,p,g,E,O,B){this.tag=1,this.containerInfo=n,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=di(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=di(0),this.hiddenUpdates=di(null),this.identifierPrefix=c,this.onUncaughtError=p,this.onCaughtError=g,this.onRecoverableError=E,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=B,this.incompleteTransitions=new Map}function W1(n,r,o,c,p,g,E,O,B,K,ne,oe){return n=new Sw(n,r,o,E,B,K,ne,oe,O),r=1,g===!0&&(r|=24),g=Tn(3,null,null,r),n.current=g,g.stateNode=n,r=Gd(),r.refCount++,n.pooledCache=r,r.refCount++,g.memoizedState={element:c,isDehydrated:o,cache:r},Qd(g),n}function K1(n){return n?(n=go,n):go}function X1(n,r,o,c,p,g){p=K1(p),c.context===null?c.context=p:c.pendingContext=p,c=Ma(r),c.payload={element:o},g=g===void 0?null:g,g!==null&&(c.callback=g),o=Ba(n,c,r),o!==null&&(vn(o,n,r),Hl(o,n,r))}function Q1(n,r){if(n=n.memoizedState,n!==null&&n.dehydrated!==null){var o=n.retryLane;n.retryLane=o!==0&&o<r?o:r}}function mh(n,r){Q1(n,r),(n=n.alternate)&&Q1(n,r)}function J1(n){if(n.tag===13||n.tag===31){var r=vi(n,67108864);r!==null&&vn(r,n,67108864),mh(n,67108864)}}function Z1(n){if(n.tag===13||n.tag===31){var r=kn();r=ud(r);var o=vi(n,r);o!==null&&vn(o,n,r),mh(n,r)}}var bu=!0;function Cw(n,r,o,c){var p=k.T;k.T=null;var g=P.p;try{P.p=2,gh(n,r,o,c)}finally{P.p=g,k.T=p}}function Ew(n,r,o,c){var p=k.T;k.T=null;var g=P.p;try{P.p=8,gh(n,r,o,c)}finally{P.p=g,k.T=p}}function gh(n,r,o,c){if(bu){var p=vh(c);if(p===null)nh(n,r,c,xu,o),tb(n,c);else if(Aw(p,n,r,o,c))c.stopPropagation();else if(tb(n,c),r&4&&-1<ww.indexOf(n)){for(;p!==null;){var g=ao(p);if(g!==null)switch(g.tag){case 3:if(g=g.stateNode,g.current.memoizedState.isDehydrated){var E=qr(g.pendingLanes);if(E!==0){var O=g;for(O.pendingLanes|=2,O.entangledLanes|=2;E;){var B=1<<31-rn(E);O.entanglements[1]|=B,E&=~B}jr(g),(qe&6)===0&&(nu=At()+500,rs(0))}}break;case 31:case 13:O=vi(g,2),O!==null&&vn(O,g,2),au(),mh(g,2)}if(g=vh(c),g===null&&nh(n,r,c,xu,o),g===p)break;p=g}p!==null&&c.stopPropagation()}else nh(n,r,c,null,o)}}function vh(n){return n=bd(n),yh(n)}var xu=null;function yh(n){if(xu=null,n=ro(n),n!==null){var r=s(n);if(r===null)n=null;else{var o=r.tag;if(o===13){if(n=u(r),n!==null)return n;n=null}else if(o===31){if(n=f(r),n!==null)return n;n=null}else if(o===3){if(r.stateNode.current.memoizedState.isDehydrated)return r.tag===3?r.stateNode.containerInfo:null;n=null}else r!==n&&(n=null)}}return xu=n,null}function eb(n){switch(n){case"beforetoggle":case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"toggle":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 2;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 8;case"message":switch(Rr()){case Tr:return 2;case Qt:return 8;case Dt:case mr:return 32;case gr:return 268435456;default:return 32}default:return 32}}var bh=!1,Wa=null,Ka=null,Xa=null,us=new Map,fs=new Map,Qa=[],ww="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset".split(" ");function tb(n,r){switch(n){case"focusin":case"focusout":Wa=null;break;case"dragenter":case"dragleave":Ka=null;break;case"mouseover":case"mouseout":Xa=null;break;case"pointerover":case"pointerout":us.delete(r.pointerId);break;case"gotpointercapture":case"lostpointercapture":fs.delete(r.pointerId)}}function ds(n,r,o,c,p,g){return n===null||n.nativeEvent!==g?(n={blockedOn:r,domEventName:o,eventSystemFlags:c,nativeEvent:g,targetContainers:[p]},r!==null&&(r=ao(r),r!==null&&J1(r)),n):(n.eventSystemFlags|=c,r=n.targetContainers,p!==null&&r.indexOf(p)===-1&&r.push(p),n)}function Aw(n,r,o,c,p){switch(r){case"focusin":return Wa=ds(Wa,n,r,o,c,p),!0;case"dragenter":return Ka=ds(Ka,n,r,o,c,p),!0;case"mouseover":return Xa=ds(Xa,n,r,o,c,p),!0;case"pointerover":var g=p.pointerId;return us.set(g,ds(us.get(g)||null,n,r,o,c,p)),!0;case"gotpointercapture":return g=p.pointerId,fs.set(g,ds(fs.get(g)||null,n,r,o,c,p)),!0}return!1}function nb(n){var r=ro(n.target);if(r!==null){var o=s(r);if(o!==null){if(r=o.tag,r===13){if(r=u(o),r!==null){n.blockedOn=r,gg(n.priority,function(){Z1(o)});return}}else if(r===31){if(r=f(o),r!==null){n.blockedOn=r,gg(n.priority,function(){Z1(o)});return}}else if(r===3&&o.stateNode.current.memoizedState.isDehydrated){n.blockedOn=o.tag===3?o.stateNode.containerInfo:null;return}}}n.blockedOn=null}function Su(n){if(n.blockedOn!==null)return!1;for(var r=n.targetContainers;0<r.length;){var o=vh(n.nativeEvent);if(o===null){o=n.nativeEvent;var c=new o.constructor(o.type,o);yd=c,o.target.dispatchEvent(c),yd=null}else return r=ao(o),r!==null&&J1(r),n.blockedOn=o,!1;r.shift()}return!0}function rb(n,r,o){Su(n)&&o.delete(r)}function Rw(){bh=!1,Wa!==null&&Su(Wa)&&(Wa=null),Ka!==null&&Su(Ka)&&(Ka=null),Xa!==null&&Su(Xa)&&(Xa=null),us.forEach(rb),fs.forEach(rb)}function Cu(n,r){n.blockedOn===r&&(n.blockedOn=null,bh||(bh=!0,e.unstable_scheduleCallback(e.unstable_NormalPriority,Rw)))}var Eu=null;function ab(n){Eu!==n&&(Eu=n,e.unstable_scheduleCallback(e.unstable_NormalPriority,function(){Eu===n&&(Eu=null);for(var r=0;r<n.length;r+=3){var o=n[r],c=n[r+1],p=n[r+2];if(typeof c!="function"){if(yh(c||o)===null)continue;break}var g=ao(o);g!==null&&(n.splice(r,3),r-=3,vp(g,{pending:!0,data:p,method:o.method,action:c},c,p))}}))}function Io(n){function r(B){return Cu(B,n)}Wa!==null&&Cu(Wa,n),Ka!==null&&Cu(Ka,n),Xa!==null&&Cu(Xa,n),us.forEach(r),fs.forEach(r);for(var o=0;o<Qa.length;o++){var c=Qa[o];c.blockedOn===n&&(c.blockedOn=null)}for(;0<Qa.length&&(o=Qa[0],o.blockedOn===null);)nb(o),o.blockedOn===null&&Qa.shift();if(o=(n.ownerDocument||n).$$reactFormReplay,o!=null)for(c=0;c<o.length;c+=3){var p=o[c],g=o[c+1],E=p[fn]||null;if(typeof g=="function")E||ab(o);else if(E){var O=null;if(g&&g.hasAttribute("formAction")){if(p=g,E=g[fn]||null)O=E.formAction;else if(yh(p)!==null)continue}else O=E.action;typeof O=="function"?o[c+1]=O:(o.splice(c,3),c-=3),ab(o)}}}function ib(){function n(g){g.canIntercept&&g.info==="react-transition"&&g.intercept({handler:function(){return new Promise(function(E){return p=E})},focusReset:"manual",scroll:"manual"})}function r(){p!==null&&(p(),p=null),c||setTimeout(o,20)}function o(){if(!c&&!navigation.transition){var g=navigation.currentEntry;g&&g.url!=null&&navigation.navigate(g.url,{state:g.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var c=!1,p=null;return navigation.addEventListener("navigate",n),navigation.addEventListener("navigatesuccess",r),navigation.addEventListener("navigateerror",r),setTimeout(o,100),function(){c=!0,navigation.removeEventListener("navigate",n),navigation.removeEventListener("navigatesuccess",r),navigation.removeEventListener("navigateerror",r),p!==null&&(p(),p=null)}}}function xh(n){this._internalRoot=n}wu.prototype.render=xh.prototype.render=function(n){var r=this._internalRoot;if(r===null)throw Error(i(409));var o=r.current,c=kn();X1(o,c,n,r,null,null)},wu.prototype.unmount=xh.prototype.unmount=function(){var n=this._internalRoot;if(n!==null){this._internalRoot=null;var r=n.containerInfo;X1(n.current,2,null,n,null,null),au(),r[no]=null}};function wu(n){this._internalRoot=n}wu.prototype.unstable_scheduleHydration=function(n){if(n){var r=mg();n={blockedOn:null,target:n,priority:r};for(var o=0;o<Qa.length&&r!==0&&r<Qa[o].priority;o++);Qa.splice(o,0,n),o===0&&nb(n)}};var ob=t.version;if(ob!=="19.2.3")throw Error(i(527,ob,"19.2.3"));P.findDOMNode=function(n){var r=n._reactInternals;if(r===void 0)throw typeof n.render=="function"?Error(i(188)):(n=Object.keys(n).join(","),Error(i(268,n)));return n=h(r),n=n!==null?m(n):null,n=n===null?null:n.stateNode,n};var Tw={bundleType:0,version:"19.2.3",rendererPackageName:"react-dom",currentDispatcherRef:k,reconcilerVersion:"19.2.3"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var Au=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Au.isDisabled&&Au.supportsFiber)try{ge=Au.inject(Tw),Ae=Au}catch{}}return hs.createRoot=function(n,r){if(!l(n))throw Error(i(299));var o=!1,c="",p=py,g=hy,E=my;return r!=null&&(r.unstable_strictMode===!0&&(o=!0),r.identifierPrefix!==void 0&&(c=r.identifierPrefix),r.onUncaughtError!==void 0&&(p=r.onUncaughtError),r.onCaughtError!==void 0&&(g=r.onCaughtError),r.onRecoverableError!==void 0&&(E=r.onRecoverableError)),r=W1(n,1,!1,null,null,o,c,null,p,g,E,ib),n[no]=r.current,th(n),new xh(r)},hs.hydrateRoot=function(n,r,o){if(!l(n))throw Error(i(299));var c=!1,p="",g=py,E=hy,O=my,B=null;return o!=null&&(o.unstable_strictMode===!0&&(c=!0),o.identifierPrefix!==void 0&&(p=o.identifierPrefix),o.onUncaughtError!==void 0&&(g=o.onUncaughtError),o.onCaughtError!==void 0&&(E=o.onCaughtError),o.onRecoverableError!==void 0&&(O=o.onRecoverableError),o.formState!==void 0&&(B=o.formState)),r=W1(n,1,!0,r,o??null,c,p,B,g,E,O,ib),r.context=K1(null),o=r.current,c=kn(),c=ud(c),p=Ma(c),p.callback=null,Ba(o,p,c),o=c,r.current.lanes=o,El(r,o),jr(r),n[no]=r.current,th(n),new wu(r)},hs.version="19.2.3",hs}var gb;function Bw(){if(gb)return Eh.exports;gb=1;function e(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(t){console.error(t)}}return e(),Eh.exports=Mw(),Eh.exports}var Lw=Bw();var vb="popstate";function Pw(e={}){function t(i,l){let{pathname:s,search:u,hash:f}=i.location;return om("",{pathname:s,search:u,hash:f},l.state&&l.state.usr||null,l.state&&l.state.key||"default")}function a(i,l){return typeof l=="string"?l:Ms(l)}return Hw(t,a,null,e)}function gt(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function lr(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function Iw(){return Math.random().toString(36).substring(2,10)}function yb(e,t){return{usr:e.state,key:e.key,idx:t}}function om(e,t,a=null,i){return{pathname:typeof e=="string"?e:e.pathname,search:"",hash:"",...typeof t=="string"?fl(t):t,state:a,key:t&&t.key||i||Iw()}}function Ms({pathname:e="/",search:t="",hash:a=""}){return t&&t!=="?"&&(e+=t.charAt(0)==="?"?t:"?"+t),a&&a!=="#"&&(e+=a.charAt(0)==="#"?a:"#"+a),e}function fl(e){let t={};if(e){let a=e.indexOf("#");a>=0&&(t.hash=e.substring(a),e=e.substring(0,a));let i=e.indexOf("?");i>=0&&(t.search=e.substring(i),e=e.substring(0,i)),e&&(t.pathname=e)}return t}function Hw(e,t,a,i={}){let{window:l=document.defaultView,v5Compat:s=!1}=i,u=l.history,f="POP",d=null,h=m();h==null&&(h=0,u.replaceState({...u.state,idx:h},""));function m(){return(u.state||{idx:null}).idx}function v(){f="POP";let A=m(),j=A==null?null:A-h;h=A,d&&d({action:f,location:b.location,delta:j})}function S(A,j){f="PUSH";let _=om(b.location,A,j);h=m()+1;let R=yb(_,h),N=b.createHref(_);try{u.pushState(R,"",N)}catch(T){if(T instanceof DOMException&&T.name==="DataCloneError")throw T;l.location.assign(N)}s&&d&&d({action:f,location:b.location,delta:1})}function w(A,j){f="REPLACE";let _=om(b.location,A,j);h=m();let R=yb(_,h),N=b.createHref(_);u.replaceState(R,"",N),s&&d&&d({action:f,location:b.location,delta:0})}function x(A){return Uw(A)}let b={get action(){return f},get location(){return e(l,u)},listen(A){if(d)throw new Error("A history only accepts one active listener");return l.addEventListener(vb,v),d=A,()=>{l.removeEventListener(vb,v),d=null}},createHref(A){return t(l,A)},createURL:x,encodeLocation(A){let j=x(A);return{pathname:j.pathname,search:j.search,hash:j.hash}},push:S,replace:w,go(A){return u.go(A)}};return b}function Uw(e,t=!1){let a="http://localhost";typeof window<"u"&&(a=window.location.origin!=="null"?window.location.origin:window.location.href),gt(a,"No window.location.(origin|href) available to create URL");let i=typeof e=="string"?e:Ms(e);return i=i.replace(/ $/,"%20"),!t&&i.startsWith("//")&&(i=a+i),new URL(i,a)}function tS(e,t,a="/"){return Fw(e,t,a,!1)}function Fw(e,t,a,i){let l=typeof t=="string"?fl(t):t,s=va(l.pathname||"/",a);if(s==null)return null;let u=nS(e);Vw(u);let f=null;for(let d=0;f==null&&d<u.length;++d){let h=tA(s);f=Zw(u[d],h,i)}return f}function nS(e,t=[],a=[],i="",l=!1){let s=(u,f,d=l,h)=>{let m={relativePath:h===void 0?u.path||"":h,caseSensitive:u.caseSensitive===!0,childrenIndex:f,route:u};if(m.relativePath.startsWith("/")){if(!m.relativePath.startsWith(i)&&d)return;gt(m.relativePath.startsWith(i),`Absolute route path "${m.relativePath}" nested under path "${i}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`),m.relativePath=m.relativePath.slice(i.length)}let v=ha([i,m.relativePath]),S=a.concat(m);u.children&&u.children.length>0&&(gt(u.index!==!0,`Index routes must not have child routes. Please remove all child routes from route path "${v}".`),nS(u.children,t,S,v,d)),!(u.path==null&&!u.index)&&t.push({path:v,score:Qw(v,u.index),routesMeta:S})};return e.forEach((u,f)=>{if(u.path===""||!u.path?.includes("?"))s(u,f);else for(let d of rS(u.path))s(u,f,!0,d)}),t}function rS(e){let t=e.split("/");if(t.length===0)return[];let[a,...i]=t,l=a.endsWith("?"),s=a.replace(/\?$/,"");if(i.length===0)return l?[s,""]:[s];let u=rS(i.join("/")),f=[];return f.push(...u.map(d=>d===""?s:[s,d].join("/"))),l&&f.push(...u),f.map(d=>e.startsWith("/")&&d===""?"/":d)}function Vw(e){e.sort((t,a)=>t.score!==a.score?a.score-t.score:Jw(t.routesMeta.map(i=>i.childrenIndex),a.routesMeta.map(i=>i.childrenIndex)))}var qw=/^:[\w-]+$/,Yw=3,Gw=2,Ww=1,Kw=10,Xw=-2,bb=e=>e==="*";function Qw(e,t){let a=e.split("/"),i=a.length;return a.some(bb)&&(i+=Xw),t&&(i+=Gw),a.filter(l=>!bb(l)).reduce((l,s)=>l+(qw.test(s)?Yw:s===""?Ww:Kw),i)}function Jw(e,t){return e.length===t.length&&e.slice(0,-1).every((i,l)=>i===t[l])?e[e.length-1]-t[t.length-1]:0}function Zw(e,t,a=!1){let{routesMeta:i}=e,l={},s="/",u=[];for(let f=0;f<i.length;++f){let d=i[f],h=f===i.length-1,m=s==="/"?t:t.slice(s.length)||"/",v=Ju({path:d.relativePath,caseSensitive:d.caseSensitive,end:h},m),S=d.route;if(!v&&h&&a&&!i[i.length-1].route.index&&(v=Ju({path:d.relativePath,caseSensitive:d.caseSensitive,end:!1},m)),!v)return null;Object.assign(l,v.params),u.push({params:l,pathname:ha([s,v.pathname]),pathnameBase:iA(ha([s,v.pathnameBase])),route:S}),v.pathnameBase!=="/"&&(s=ha([s,v.pathnameBase]))}return u}function Ju(e,t){typeof e=="string"&&(e={path:e,caseSensitive:!1,end:!0});let[a,i]=eA(e.path,e.caseSensitive,e.end),l=t.match(a);if(!l)return null;let s=l[0],u=s.replace(/(.)\/+$/,"$1"),f=l.slice(1);return{params:i.reduce((h,{paramName:m,isOptional:v},S)=>{if(m==="*"){let x=f[S]||"";u=s.slice(0,s.length-x.length).replace(/(.)\/+$/,"$1")}const w=f[S];return v&&!w?h[m]=void 0:h[m]=(w||"").replace(/%2F/g,"/"),h},{}),pathname:s,pathnameBase:u,pattern:e}}function eA(e,t=!1,a=!0){lr(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 i=[],l="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(u,f,d)=>(i.push({paramName:f,isOptional:d!=null}),d?"/?([^\\/]+)?":"/([^\\/]+)")).replace(/\/([\w-]+)\?(\/|$)/g,"(/$1)?$2");return e.endsWith("*")?(i.push({paramName:"*"}),l+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):a?l+="\\/*$":e!==""&&e!=="/"&&(l+="(?:(?=\\/|$))"),[new RegExp(l,t?void 0:"i"),i]}function tA(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return lr(!1,`The URL path "${e}" could not be decoded because it is a malformed URL segment. This is probably due to a bad percent encoding (${t}).`),e}}function va(e,t){if(t==="/")return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let a=t.endsWith("/")?t.length-1:t.length,i=e.charAt(a);return i&&i!=="/"?null:e.slice(a)||"/"}var aS=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,nA=e=>aS.test(e);function rA(e,t="/"){let{pathname:a,search:i="",hash:l=""}=typeof e=="string"?fl(e):e,s;if(a)if(nA(a))s=a;else{if(a.includes("//")){let u=a;a=a.replace(/\/\/+/g,"/"),lr(!1,`Pathnames cannot have embedded double slashes - normalizing ${u} -> ${a}`)}a.startsWith("/")?s=xb(a.substring(1),"/"):s=xb(a,t)}else s=t;return{pathname:s,search:oA(i),hash:lA(l)}}function xb(e,t){let a=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(l=>{l===".."?a.length>1&&a.pop():l!=="."&&a.push(l)}),a.length>1?a.join("/"):"/"}function Th(e,t,a,i){return`Cannot include a '${e}' character in a manually specified \`to.${t}\` field [${JSON.stringify(i)}]. Please separate it out to the \`to.${a}\` field. Alternatively you may provide the full path as a string in <Link to="..."> and the router will parse it for you.`}function aA(e){return e.filter((t,a)=>a===0||t.route.path&&t.route.path.length>0)}function iS(e){let t=aA(e);return t.map((a,i)=>i===t.length-1?a.pathname:a.pathnameBase)}function oS(e,t,a,i=!1){let l;typeof e=="string"?l=fl(e):(l={...e},gt(!l.pathname||!l.pathname.includes("?"),Th("?","pathname","search",l)),gt(!l.pathname||!l.pathname.includes("#"),Th("#","pathname","hash",l)),gt(!l.search||!l.search.includes("#"),Th("#","search","hash",l)));let s=e===""||l.pathname==="",u=s?"/":l.pathname,f;if(u==null)f=a;else{let v=t.length-1;if(!i&&u.startsWith("..")){let S=u.split("/");for(;S[0]==="..";)S.shift(),v-=1;l.pathname=S.join("/")}f=v>=0?t[v]:"/"}let d=rA(l,f),h=u&&u!=="/"&&u.endsWith("/"),m=(s||u===".")&&a.endsWith("/");return!d.pathname.endsWith("/")&&(h||m)&&(d.pathname+="/"),d}var ha=e=>e.join("/").replace(/\/\/+/g,"/"),iA=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),oA=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,lA=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e,sA=class{constructor(e,t,a,i=!1){this.status=e,this.statusText=t||"",this.internal=i,a instanceof Error?(this.data=a.toString(),this.error=a):this.data=a}};function cA(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}function uA(e){return e.map(t=>t.route.path).filter(Boolean).join("/").replace(/\/\/*/g,"/")||"/"}var lS=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";function sS(e,t){let a=e;if(typeof a!="string"||!aS.test(a))return{absoluteURL:void 0,isExternal:!1,to:a};let i=a,l=!1;if(lS)try{let s=new URL(window.location.href),u=a.startsWith("//")?new URL(s.protocol+a):new URL(a),f=va(u.pathname,t);u.origin===s.origin&&f!=null?a=f+u.search+u.hash:l=!0}catch{lr(!1,`<Link to="${a}"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.`)}return{absoluteURL:i,isExternal:l,to:a}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");var cS=["POST","PUT","PATCH","DELETE"];new Set(cS);var fA=["GET",...cS];new Set(fA);var dl=C.createContext(null);dl.displayName="DataRouter";var Sf=C.createContext(null);Sf.displayName="DataRouterState";var dA=C.createContext(!1),uS=C.createContext({isTransitioning:!1});uS.displayName="ViewTransition";var pA=C.createContext(new Map);pA.displayName="Fetchers";var hA=C.createContext(null);hA.displayName="Await";var ur=C.createContext(null);ur.displayName="Navigation";var Ks=C.createContext(null);Ks.displayName="Location";var Ur=C.createContext({outlet:null,matches:[],isDataRoute:!1});Ur.displayName="Route";var s0=C.createContext(null);s0.displayName="RouteError";var fS="REACT_ROUTER_ERROR",mA="REDIRECT",gA="ROUTE_ERROR_RESPONSE";function vA(e){if(e.startsWith(`${fS}:${mA}:{`))try{let t=JSON.parse(e.slice(28));if(typeof t=="object"&&t&&typeof t.status=="number"&&typeof t.statusText=="string"&&typeof t.location=="string"&&typeof t.reloadDocument=="boolean"&&typeof t.replace=="boolean")return t}catch{}}function yA(e){if(e.startsWith(`${fS}:${gA}:{`))try{let t=JSON.parse(e.slice(40));if(typeof t=="object"&&t&&typeof t.status=="number"&&typeof t.statusText=="string")return new sA(t.status,t.statusText,t.data)}catch{}}function bA(e,{relative:t}={}){gt(Xs(),"useHref() may be used only in the context of a <Router> component.");let{basename:a,navigator:i}=C.useContext(ur),{hash:l,pathname:s,search:u}=Qs(e,{relative:t}),f=s;return a!=="/"&&(f=s==="/"?a:ha([a,s])),i.createHref({pathname:f,search:u,hash:l})}function Xs(){return C.useContext(Ks)!=null}function si(){return gt(Xs(),"useLocation() may be used only in the context of a <Router> component."),C.useContext(Ks).location}var dS="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function pS(e){C.useContext(ur).static||C.useLayoutEffect(e)}function sn(){let{isDataRoute:e}=C.useContext(Ur);return e?kA():xA()}function xA(){gt(Xs(),"useNavigate() may be used only in the context of a <Router> component.");let e=C.useContext(dl),{basename:t,navigator:a}=C.useContext(ur),{matches:i}=C.useContext(Ur),{pathname:l}=si(),s=JSON.stringify(iS(i)),u=C.useRef(!1);return pS(()=>{u.current=!0}),C.useCallback((d,h={})=>{if(lr(u.current,dS),!u.current)return;if(typeof d=="number"){a.go(d);return}let m=oS(d,JSON.parse(s),l,h.relative==="path");e==null&&t!=="/"&&(m.pathname=m.pathname==="/"?t:ha([t,m.pathname])),(h.replace?a.replace:a.push)(m,h.state,h)},[t,a,s,l,e])}C.createContext(null);function c0(){let{matches:e}=C.useContext(Ur),t=e[e.length-1];return t?t.params:{}}function Qs(e,{relative:t}={}){let{matches:a}=C.useContext(Ur),{pathname:i}=si(),l=JSON.stringify(iS(a));return C.useMemo(()=>oS(e,JSON.parse(l),i,t==="path"),[e,l,i,t])}function SA(e,t){return hS(e,t)}function hS(e,t,a,i,l){gt(Xs(),"useRoutes() may be used only in the context of a <Router> component.");let{navigator:s}=C.useContext(ur),{matches:u}=C.useContext(Ur),f=u[u.length-1],d=f?f.params:{},h=f?f.pathname:"/",m=f?f.pathnameBase:"/",v=f&&f.route;{let _=v&&v.path||"";gS(h,!v||_.endsWith("*")||_.endsWith("*?"),`You rendered descendant <Routes> (or called \`useRoutes()\`) at "${h}" (under <Route path="${_}">) but the parent route path has no trailing "*". This means if you navigate deeper, the parent won't match anymore and therefore the child routes will never render.
10
+
11
+ Please change the parent <Route path="${_}"> to <Route path="${_==="/"?"*":`${_}/*`}">.`)}let S=si(),w;if(t){let _=typeof t=="string"?fl(t):t;gt(m==="/"||_.pathname?.startsWith(m),`When overriding the location using \`<Routes location>\` or \`useRoutes(routes, location)\`, the location pathname must begin with the portion of the URL pathname that was matched by all parent routes. The current pathname base is "${m}" but pathname "${_.pathname}" was given in the \`location\` prop.`),w=_}else w=S;let x=w.pathname||"/",b=x;if(m!=="/"){let _=m.replace(/^\//,"").split("/");b="/"+x.replace(/^\//,"").split("/").slice(_.length).join("/")}let A=tS(e,{pathname:b});lr(v||A!=null,`No routes matched location "${w.pathname}${w.search}${w.hash}" `),lr(A==null||A[A.length-1].route.element!==void 0||A[A.length-1].route.Component!==void 0||A[A.length-1].route.lazy!==void 0,`Matched leaf route at location "${w.pathname}${w.search}${w.hash}" does not have an element or Component. This means it will render an <Outlet /> with a null value by default resulting in an "empty" page.`);let j=RA(A&&A.map(_=>Object.assign({},_,{params:Object.assign({},d,_.params),pathname:ha([m,s.encodeLocation?s.encodeLocation(_.pathname.replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:_.pathname]),pathnameBase:_.pathnameBase==="/"?m:ha([m,s.encodeLocation?s.encodeLocation(_.pathnameBase.replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:_.pathnameBase])})),u,a,i,l);return t&&j?C.createElement(Ks.Provider,{value:{location:{pathname:"/",search:"",hash:"",state:null,key:"default",...w},navigationType:"POP"}},j):j}function CA(){let e=jA(),t=cA(e)?`${e.status} ${e.statusText}`:e instanceof Error?e.message:JSON.stringify(e),a=e instanceof Error?e.stack:null,i="rgba(200,200,200, 0.5)",l={padding:"0.5rem",backgroundColor:i},s={padding:"2px 4px",backgroundColor:i},u=null;return console.error("Error handled by React Router default ErrorBoundary:",e),u=C.createElement(C.Fragment,null,C.createElement("p",null,"💿 Hey developer 👋"),C.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",C.createElement("code",{style:s},"ErrorBoundary")," or"," ",C.createElement("code",{style:s},"errorElement")," prop on your route.")),C.createElement(C.Fragment,null,C.createElement("h2",null,"Unexpected Application Error!"),C.createElement("h3",{style:{fontStyle:"italic"}},t),a?C.createElement("pre",{style:l},a):null,u)}var EA=C.createElement(CA,null),mS=class extends C.Component{constructor(e){super(e),this.state={location:e.location,revalidation:e.revalidation,error:e.error}}static getDerivedStateFromError(e){return{error:e}}static getDerivedStateFromProps(e,t){return t.location!==e.location||t.revalidation!=="idle"&&e.revalidation==="idle"?{error:e.error,location:e.location,revalidation:e.revalidation}:{error:e.error!==void 0?e.error:t.error,location:t.location,revalidation:e.revalidation||t.revalidation}}componentDidCatch(e,t){this.props.onError?this.props.onError(e,t):console.error("React Router caught the following error during render",e)}render(){let e=this.state.error;if(this.context&&typeof e=="object"&&e&&"digest"in e&&typeof e.digest=="string"){const a=yA(e.digest);a&&(e=a)}let t=e!==void 0?C.createElement(Ur.Provider,{value:this.props.routeContext},C.createElement(s0.Provider,{value:e,children:this.props.component})):this.props.children;return this.context?C.createElement(wA,{error:e},t):t}};mS.contextType=dA;var $h=new WeakMap;function wA({children:e,error:t}){let{basename:a}=C.useContext(ur);if(typeof t=="object"&&t&&"digest"in t&&typeof t.digest=="string"){let i=vA(t.digest);if(i){let l=$h.get(t);if(l)throw l;let s=sS(i.location,a);if(lS&&!$h.get(t))if(s.isExternal||i.reloadDocument)window.location.href=s.absoluteURL||s.to;else{const u=Promise.resolve().then(()=>window.__reactRouterDataRouter.navigate(s.to,{replace:i.replace}));throw $h.set(t,u),u}return C.createElement("meta",{httpEquiv:"refresh",content:`0;url=${s.absoluteURL||s.to}`})}}return e}function AA({routeContext:e,match:t,children:a}){let i=C.useContext(dl);return i&&i.static&&i.staticContext&&(t.route.errorElement||t.route.ErrorBoundary)&&(i.staticContext._deepestRenderedBoundaryId=t.route.id),C.createElement(Ur.Provider,{value:e},a)}function RA(e,t=[],a=null,i=null,l=null){if(e==null){if(!a)return null;if(a.errors)e=a.matches;else if(t.length===0&&!a.initialized&&a.matches.length>0)e=a.matches;else return null}let s=e,u=a?.errors;if(u!=null){let m=s.findIndex(v=>v.route.id&&u?.[v.route.id]!==void 0);gt(m>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(u).join(",")}`),s=s.slice(0,Math.min(s.length,m+1))}let f=!1,d=-1;if(a)for(let m=0;m<s.length;m++){let v=s[m];if((v.route.HydrateFallback||v.route.hydrateFallbackElement)&&(d=m),v.route.id){let{loaderData:S,errors:w}=a,x=v.route.loader&&!S.hasOwnProperty(v.route.id)&&(!w||w[v.route.id]===void 0);if(v.route.lazy||x){f=!0,d>=0?s=s.slice(0,d+1):s=[s[0]];break}}}let h=a&&i?(m,v)=>{i(m,{location:a.location,params:a.matches?.[0]?.params??{},unstable_pattern:uA(a.matches),errorInfo:v})}:void 0;return s.reduceRight((m,v,S)=>{let w,x=!1,b=null,A=null;a&&(w=u&&v.route.id?u[v.route.id]:void 0,b=v.route.errorElement||EA,f&&(d<0&&S===0?(gS("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),x=!0,A=null):d===S&&(x=!0,A=v.route.hydrateFallbackElement||null)));let j=t.concat(s.slice(0,S+1)),_=()=>{let R;return w?R=b:x?R=A:v.route.Component?R=C.createElement(v.route.Component,null):v.route.element?R=v.route.element:R=m,C.createElement(AA,{match:v,routeContext:{outlet:m,matches:j,isDataRoute:a!=null},children:R})};return a&&(v.route.ErrorBoundary||v.route.errorElement||S===0)?C.createElement(mS,{location:a.location,revalidation:a.revalidation,component:b,error:w,children:_(),routeContext:{outlet:null,matches:j,isDataRoute:!0},onError:h}):_()},null)}function u0(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function TA(e){let t=C.useContext(dl);return gt(t,u0(e)),t}function $A(e){let t=C.useContext(Sf);return gt(t,u0(e)),t}function OA(e){let t=C.useContext(Ur);return gt(t,u0(e)),t}function f0(e){let t=OA(e),a=t.matches[t.matches.length-1];return gt(a.route.id,`${e} can only be used on routes that contain a unique "id"`),a.route.id}function _A(){return f0("useRouteId")}function jA(){let e=C.useContext(s0),t=$A("useRouteError"),a=f0("useRouteError");return e!==void 0?e:t.errors?.[a]}function kA(){let{router:e}=TA("useNavigate"),t=f0("useNavigate"),a=C.useRef(!1);return pS(()=>{a.current=!0}),C.useCallback(async(l,s={})=>{lr(a.current,dS),a.current&&(typeof l=="number"?await e.navigate(l):await e.navigate(l,{fromRouteId:t,...s}))},[e,t])}var Sb={};function gS(e,t,a){!t&&!Sb[e]&&(Sb[e]=!0,lr(!1,a))}C.memo(NA);function NA({routes:e,future:t,state:a,onError:i}){return hS(e,void 0,a,i,t)}function yn(e){gt(!1,"A <Route> is only ever to be used as the child of <Routes> element, never rendered directly. Please wrap your <Route> in a <Routes>.")}function zA({basename:e="/",children:t=null,location:a,navigationType:i="POP",navigator:l,static:s=!1,unstable_useTransitions:u}){gt(!Xs(),"You cannot render a <Router> inside another <Router>. You should never have more than one in your app.");let f=e.replace(/^\/*/,"/"),d=C.useMemo(()=>({basename:f,navigator:l,static:s,unstable_useTransitions:u,future:{}}),[f,l,s,u]);typeof a=="string"&&(a=fl(a));let{pathname:h="/",search:m="",hash:v="",state:S=null,key:w="default"}=a,x=C.useMemo(()=>{let b=va(h,f);return b==null?null:{location:{pathname:b,search:m,hash:v,state:S,key:w},navigationType:i}},[f,h,m,v,S,w,i]);return lr(x!=null,`<Router basename="${f}"> is not able to match the URL "${h}${m}${v}" because it does not start with the basename, so the <Router> won't render anything.`),x==null?null:C.createElement(ur.Provider,{value:d},C.createElement(Ks.Provider,{children:t,value:x}))}function DA({children:e,location:t}){return SA(lm(e),t)}function lm(e,t=[]){let a=[];return C.Children.forEach(e,(i,l)=>{if(!C.isValidElement(i))return;let s=[...t,l];if(i.type===C.Fragment){a.push.apply(a,lm(i.props.children,s));return}gt(i.type===yn,`[${typeof i.type=="string"?i.type:i.type.name}] is not a <Route> component. All component children of <Routes> must be a <Route> or <React.Fragment>`),gt(!i.props.index||!i.props.children,"An index route cannot have child routes.");let u={id:i.props.id||s.join("-"),caseSensitive:i.props.caseSensitive,element:i.props.element,Component:i.props.Component,index:i.props.index,path:i.props.path,middleware:i.props.middleware,loader:i.props.loader,action:i.props.action,hydrateFallbackElement:i.props.hydrateFallbackElement,HydrateFallback:i.props.HydrateFallback,errorElement:i.props.errorElement,ErrorBoundary:i.props.ErrorBoundary,hasErrorBoundary:i.props.hasErrorBoundary===!0||i.props.ErrorBoundary!=null||i.props.errorElement!=null,shouldRevalidate:i.props.shouldRevalidate,handle:i.props.handle,lazy:i.props.lazy};i.props.children&&(u.children=lm(i.props.children,s)),a.push(u)}),a}var Du="get",Mu="application/x-www-form-urlencoded";function Cf(e){return typeof HTMLElement<"u"&&e instanceof HTMLElement}function MA(e){return Cf(e)&&e.tagName.toLowerCase()==="button"}function BA(e){return Cf(e)&&e.tagName.toLowerCase()==="form"}function LA(e){return Cf(e)&&e.tagName.toLowerCase()==="input"}function PA(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function IA(e,t){return e.button===0&&(!t||t==="_self")&&!PA(e)}function sm(e=""){return new URLSearchParams(typeof e=="string"||Array.isArray(e)||e instanceof URLSearchParams?e:Object.keys(e).reduce((t,a)=>{let i=e[a];return t.concat(Array.isArray(i)?i.map(l=>[a,l]):[[a,i]])},[]))}function HA(e,t){let a=sm(e);return t&&t.forEach((i,l)=>{a.has(l)||t.getAll(l).forEach(s=>{a.append(l,s)})}),a}var Ru=null;function UA(){if(Ru===null)try{new FormData(document.createElement("form"),0),Ru=!1}catch{Ru=!0}return Ru}var FA=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function Oh(e){return e!=null&&!FA.has(e)?(lr(!1,`"${e}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${Mu}"`),null):e}function VA(e,t){let a,i,l,s,u;if(BA(e)){let f=e.getAttribute("action");i=f?va(f,t):null,a=e.getAttribute("method")||Du,l=Oh(e.getAttribute("enctype"))||Mu,s=new FormData(e)}else if(MA(e)||LA(e)&&(e.type==="submit"||e.type==="image")){let f=e.form;if(f==null)throw new Error('Cannot submit a <button> or <input type="submit"> without a <form>');let d=e.getAttribute("formaction")||f.getAttribute("action");if(i=d?va(d,t):null,a=e.getAttribute("formmethod")||f.getAttribute("method")||Du,l=Oh(e.getAttribute("formenctype"))||Oh(f.getAttribute("enctype"))||Mu,s=new FormData(f,e),!UA()){let{name:h,type:m,value:v}=e;if(m==="image"){let S=h?`${h}.`:"";s.append(`${S}x`,"0"),s.append(`${S}y`,"0")}else h&&s.append(h,v)}}else{if(Cf(e))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');a=Du,i=null,l=Mu,u=e}return s&&l==="text/plain"&&(u=s,s=void 0),{action:i,method:a.toLowerCase(),encType:l,formData:s,body:u}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");function d0(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function qA(e,t,a){let i=typeof e=="string"?new URL(e,typeof window>"u"?"server://singlefetch/":window.location.origin):e;return i.pathname==="/"?i.pathname=`_root.${a}`:t&&va(i.pathname,t)==="/"?i.pathname=`${t.replace(/\/$/,"")}/_root.${a}`:i.pathname=`${i.pathname.replace(/\/$/,"")}.${a}`,i}async function YA(e,t){if(e.id in t)return t[e.id];try{let a=await import(e.module);return t[e.id]=a,a}catch(a){return console.error(`Error loading route module \`${e.module}\`, reloading page...`),console.error(a),window.__reactRouterContext&&window.__reactRouterContext.isSpaMode,window.location.reload(),new Promise(()=>{})}}function GA(e){return e==null?!1:e.href==null?e.rel==="preload"&&typeof e.imageSrcSet=="string"&&typeof e.imageSizes=="string":typeof e.rel=="string"&&typeof e.href=="string"}async function WA(e,t,a){let i=await Promise.all(e.map(async l=>{let s=t.routes[l.route.id];if(s){let u=await YA(s,a);return u.links?u.links():[]}return[]}));return JA(i.flat(1).filter(GA).filter(l=>l.rel==="stylesheet"||l.rel==="preload").map(l=>l.rel==="stylesheet"?{...l,rel:"prefetch",as:"style"}:{...l,rel:"prefetch"}))}function Cb(e,t,a,i,l,s){let u=(d,h)=>a[h]?d.route.id!==a[h].route.id:!0,f=(d,h)=>a[h].pathname!==d.pathname||a[h].route.path?.endsWith("*")&&a[h].params["*"]!==d.params["*"];return s==="assets"?t.filter((d,h)=>u(d,h)||f(d,h)):s==="data"?t.filter((d,h)=>{let m=i.routes[d.route.id];if(!m||!m.hasLoader)return!1;if(u(d,h)||f(d,h))return!0;if(d.route.shouldRevalidate){let v=d.route.shouldRevalidate({currentUrl:new URL(l.pathname+l.search+l.hash,window.origin),currentParams:a[0]?.params||{},nextUrl:new URL(e,window.origin),nextParams:d.params,defaultShouldRevalidate:!0});if(typeof v=="boolean")return v}return!0}):[]}function KA(e,t,{includeHydrateFallback:a}={}){return XA(e.map(i=>{let l=t.routes[i.route.id];if(!l)return[];let s=[l.module];return l.clientActionModule&&(s=s.concat(l.clientActionModule)),l.clientLoaderModule&&(s=s.concat(l.clientLoaderModule)),a&&l.hydrateFallbackModule&&(s=s.concat(l.hydrateFallbackModule)),l.imports&&(s=s.concat(l.imports)),s}).flat(1))}function XA(e){return[...new Set(e)]}function QA(e){let t={},a=Object.keys(e).sort();for(let i of a)t[i]=e[i];return t}function JA(e,t){let a=new Set;return new Set(t),e.reduce((i,l)=>{let s=JSON.stringify(QA(l));return a.has(s)||(a.add(s),i.push({key:s,link:l})),i},[])}function vS(){let e=C.useContext(dl);return d0(e,"You must render this element inside a <DataRouterContext.Provider> element"),e}function ZA(){let e=C.useContext(Sf);return d0(e,"You must render this element inside a <DataRouterStateContext.Provider> element"),e}var p0=C.createContext(void 0);p0.displayName="FrameworkContext";function yS(){let e=C.useContext(p0);return d0(e,"You must render this element inside a <HydratedRouter> element"),e}function e6(e,t){let a=C.useContext(p0),[i,l]=C.useState(!1),[s,u]=C.useState(!1),{onFocus:f,onBlur:d,onMouseEnter:h,onMouseLeave:m,onTouchStart:v}=t,S=C.useRef(null);C.useEffect(()=>{if(e==="render"&&u(!0),e==="viewport"){let b=j=>{j.forEach(_=>{u(_.isIntersecting)})},A=new IntersectionObserver(b,{threshold:.5});return S.current&&A.observe(S.current),()=>{A.disconnect()}}},[e]),C.useEffect(()=>{if(i){let b=setTimeout(()=>{u(!0)},100);return()=>{clearTimeout(b)}}},[i]);let w=()=>{l(!0)},x=()=>{l(!1),u(!1)};return a?e!=="intent"?[s,S,{}]:[s,S,{onFocus:ms(f,w),onBlur:ms(d,x),onMouseEnter:ms(h,w),onMouseLeave:ms(m,x),onTouchStart:ms(v,w)}]:[!1,S,{}]}function ms(e,t){return a=>{e&&e(a),a.defaultPrevented||t(a)}}function t6({page:e,...t}){let{router:a}=vS(),i=C.useMemo(()=>tS(a.routes,e,a.basename),[a.routes,e,a.basename]);return i?C.createElement(r6,{page:e,matches:i,...t}):null}function n6(e){let{manifest:t,routeModules:a}=yS(),[i,l]=C.useState([]);return C.useEffect(()=>{let s=!1;return WA(e,t,a).then(u=>{s||l(u)}),()=>{s=!0}},[e,t,a]),i}function r6({page:e,matches:t,...a}){let i=si(),{manifest:l,routeModules:s}=yS(),{basename:u}=vS(),{loaderData:f,matches:d}=ZA(),h=C.useMemo(()=>Cb(e,t,d,l,i,"data"),[e,t,d,l,i]),m=C.useMemo(()=>Cb(e,t,d,l,i,"assets"),[e,t,d,l,i]),v=C.useMemo(()=>{if(e===i.pathname+i.search+i.hash)return[];let x=new Set,b=!1;if(t.forEach(j=>{let _=l.routes[j.route.id];!_||!_.hasLoader||(!h.some(R=>R.route.id===j.route.id)&&j.route.id in f&&s[j.route.id]?.shouldRevalidate||_.hasClientLoader?b=!0:x.add(j.route.id))}),x.size===0)return[];let A=qA(e,u,"data");return b&&x.size>0&&A.searchParams.set("_routes",t.filter(j=>x.has(j.route.id)).map(j=>j.route.id).join(",")),[A.pathname+A.search]},[u,f,i,l,h,t,e,s]),S=C.useMemo(()=>KA(m,l),[m,l]),w=n6(m);return C.createElement(C.Fragment,null,v.map(x=>C.createElement("link",{key:x,rel:"prefetch",as:"fetch",href:x,...a})),S.map(x=>C.createElement("link",{key:x,rel:"modulepreload",href:x,...a})),w.map(({key:x,link:b})=>C.createElement("link",{key:x,nonce:a.nonce,...b})))}function a6(...e){return t=>{e.forEach(a=>{typeof a=="function"?a(t):a!=null&&(a.current=t)})}}var i6=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";try{i6&&(window.__reactRouterVersion="7.11.0")}catch{}function o6({basename:e,children:t,unstable_useTransitions:a,window:i}){let l=C.useRef();l.current==null&&(l.current=Pw({window:i,v5Compat:!0}));let s=l.current,[u,f]=C.useState({action:s.action,location:s.location}),d=C.useCallback(h=>{a===!1?f(h):C.startTransition(()=>f(h))},[a]);return C.useLayoutEffect(()=>s.listen(d),[s,d]),C.createElement(zA,{basename:e,children:t,location:u.location,navigationType:u.action,navigator:s,unstable_useTransitions:a})}var bS=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,Ni=C.forwardRef(function({onClick:t,discover:a="render",prefetch:i="none",relative:l,reloadDocument:s,replace:u,state:f,target:d,to:h,preventScrollReset:m,viewTransition:v,unstable_defaultShouldRevalidate:S,...w},x){let{basename:b,unstable_useTransitions:A}=C.useContext(ur),j=typeof h=="string"&&bS.test(h),_=sS(h,b);h=_.to;let R=bA(h,{relative:l}),[N,T,z]=e6(i,w),D=u6(h,{replace:u,state:f,target:d,preventScrollReset:m,relative:l,viewTransition:v,unstable_defaultShouldRevalidate:S,unstable_useTransitions:A});function V(Z){t&&t(Z),Z.defaultPrevented||D(Z)}let Q=C.createElement("a",{...w,...z,href:_.absoluteURL||R,onClick:_.isExternal||s?t:V,ref:a6(x,T),target:d,"data-discover":!j&&a==="render"?"true":void 0});return N&&!j?C.createElement(C.Fragment,null,Q,C.createElement(t6,{page:R})):Q});Ni.displayName="Link";var l6=C.forwardRef(function({"aria-current":t="page",caseSensitive:a=!1,className:i="",end:l=!1,style:s,to:u,viewTransition:f,children:d,...h},m){let v=Qs(u,{relative:h.relative}),S=si(),w=C.useContext(Sf),{navigator:x,basename:b}=C.useContext(ur),A=w!=null&&m6(v)&&f===!0,j=x.encodeLocation?x.encodeLocation(v).pathname:v.pathname,_=S.pathname,R=w&&w.navigation&&w.navigation.location?w.navigation.location.pathname:null;a||(_=_.toLowerCase(),R=R?R.toLowerCase():null,j=j.toLowerCase()),R&&b&&(R=va(R,b)||R);const N=j!=="/"&&j.endsWith("/")?j.length-1:j.length;let T=_===j||!l&&_.startsWith(j)&&_.charAt(N)==="/",z=R!=null&&(R===j||!l&&R.startsWith(j)&&R.charAt(j.length)==="/"),D={isActive:T,isPending:z,isTransitioning:A},V=T?t:void 0,Q;typeof i=="function"?Q=i(D):Q=[i,T?"active":null,z?"pending":null,A?"transitioning":null].filter(Boolean).join(" ");let Z=typeof s=="function"?s(D):s;return C.createElement(Ni,{...h,"aria-current":V,className:Q,ref:m,style:Z,to:u,viewTransition:f},typeof d=="function"?d(D):d)});l6.displayName="NavLink";var s6=C.forwardRef(({discover:e="render",fetcherKey:t,navigate:a,reloadDocument:i,replace:l,state:s,method:u=Du,action:f,onSubmit:d,relative:h,preventScrollReset:m,viewTransition:v,unstable_defaultShouldRevalidate:S,...w},x)=>{let{unstable_useTransitions:b}=C.useContext(ur),A=p6(),j=h6(f,{relative:h}),_=u.toLowerCase()==="get"?"get":"post",R=typeof f=="string"&&bS.test(f),N=T=>{if(d&&d(T),T.defaultPrevented)return;T.preventDefault();let z=T.nativeEvent.submitter,D=z?.getAttribute("formmethod")||u,V=()=>A(z||T.currentTarget,{fetcherKey:t,method:D,navigate:a,replace:l,state:s,relative:h,preventScrollReset:m,viewTransition:v,unstable_defaultShouldRevalidate:S});b&&a!==!1?C.startTransition(()=>V()):V()};return C.createElement("form",{ref:x,method:_,action:j,onSubmit:i?d:N,...w,"data-discover":!R&&e==="render"?"true":void 0})});s6.displayName="Form";function c6(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function xS(e){let t=C.useContext(dl);return gt(t,c6(e)),t}function u6(e,{target:t,replace:a,state:i,preventScrollReset:l,relative:s,viewTransition:u,unstable_defaultShouldRevalidate:f,unstable_useTransitions:d}={}){let h=sn(),m=si(),v=Qs(e,{relative:s});return C.useCallback(S=>{if(IA(S,t)){S.preventDefault();let w=a!==void 0?a:Ms(m)===Ms(v),x=()=>h(e,{replace:w,state:i,preventScrollReset:l,relative:s,viewTransition:u,unstable_defaultShouldRevalidate:f});d?C.startTransition(()=>x()):x()}},[m,h,v,a,i,t,e,l,s,u,f,d])}function Ef(e){lr(typeof URLSearchParams<"u","You cannot use the `useSearchParams` hook in a browser that does not support the URLSearchParams API. If you need to support Internet Explorer 11, we recommend you load a polyfill such as https://github.com/ungap/url-search-params.");let t=C.useRef(sm(e)),a=C.useRef(!1),i=si(),l=C.useMemo(()=>HA(i.search,a.current?null:t.current),[i.search]),s=sn(),u=C.useCallback((f,d)=>{const h=sm(typeof f=="function"?f(new URLSearchParams(l)):f);a.current=!0,s("?"+h,d)},[s,l]);return[l,u]}var f6=0,d6=()=>`__${String(++f6)}__`;function p6(){let{router:e}=xS("useSubmit"),{basename:t}=C.useContext(ur),a=_A(),i=e.fetch,l=e.navigate;return C.useCallback(async(s,u={})=>{let{action:f,method:d,encType:h,formData:m,body:v}=VA(s,t);if(u.navigate===!1){let S=u.fetcherKey||d6();await i(S,a,u.action||f,{unstable_defaultShouldRevalidate:u.unstable_defaultShouldRevalidate,preventScrollReset:u.preventScrollReset,formData:m,body:v,formMethod:u.method||d,formEncType:u.encType||h,flushSync:u.flushSync})}else await l(u.action||f,{unstable_defaultShouldRevalidate:u.unstable_defaultShouldRevalidate,preventScrollReset:u.preventScrollReset,formData:m,body:v,formMethod:u.method||d,formEncType:u.encType||h,replace:u.replace,state:u.state,fromRouteId:a,flushSync:u.flushSync,viewTransition:u.viewTransition})},[i,l,t,a])}function h6(e,{relative:t}={}){let{basename:a}=C.useContext(ur),i=C.useContext(Ur);gt(i,"useFormAction must be used inside a RouteContext");let[l]=i.matches.slice(-1),s={...Qs(e||".",{relative:t})},u=si();if(e==null){s.search=u.search;let f=new URLSearchParams(s.search),d=f.getAll("index");if(d.some(m=>m==="")){f.delete("index"),d.filter(v=>v).forEach(v=>f.append("index",v));let m=f.toString();s.search=m?`?${m}`:""}}return(!e||e===".")&&l.route.index&&(s.search=s.search?s.search.replace(/^\?/,"?index&"):"?index"),a!=="/"&&(s.pathname=s.pathname==="/"?a:ha([a,s.pathname])),Ms(s)}function m6(e,{relative:t}={}){let a=C.useContext(uS);gt(a!=null,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?");let{basename:i}=xS("useViewTransitionState"),l=Qs(e,{relative:t});if(!a.isTransitioning)return!1;let s=va(a.currentLocation.pathname,i)||a.currentLocation.pathname,u=va(a.nextLocation.pathname,i)||a.nextLocation.pathname;return Ju(l.pathname,u)!=null||Ju(l.pathname,s)!=null}var g6={prefix:"fas",iconName:"rotate",icon:[512,512,[128260,"sync-alt"],"f2f1","M480.1 192l7.9 0c13.3 0 24-10.7 24-24l0-144c0-9.7-5.8-18.5-14.8-22.2S477.9 .2 471 7L419.3 58.8C375 22.1 318 0 256 0 127 0 20.3 95.4 2.6 219.5 .1 237 12.2 253.2 29.7 255.7s33.7-9.7 36.2-27.1C79.2 135.5 159.3 64 256 64 300.4 64 341.2 79 373.7 104.3L327 151c-6.9 6.9-8.9 17.2-5.2 26.2S334.3 192 344 192l136.1 0zm29.4 100.5c2.5-17.5-9.7-33.7-27.1-36.2s-33.7 9.7-36.2 27.1c-13.3 93-93.4 164.5-190.1 164.5-44.4 0-85.2-15-117.7-40.3L185 361c6.9-6.9 8.9-17.2 5.2-26.2S177.7 320 168 320L24 320c-13.3 0-24 10.7-24 24L0 488c0 9.7 5.8 18.5 14.8 22.2S34.1 511.8 41 505l51.8-51.8C137 489.9 194 512 256 512 385 512 491.7 416.6 509.4 292.5z"]},v6={prefix:"fas",iconName:"right-long",icon:[576,512,["long-arrow-alt-right"],"f30b","M566.6 233.4c12.5 12.5 12.5 32.8 0 45.3l-128 128c-9.2 9.2-22.9 11.9-34.9 6.9S384 396.9 384 384l0-64-336 0c-26.5 0-48-21.5-48-48l0-32c0-26.5 21.5-48 48-48l336 0 0-64c0-12.9 7.8-24.6 19.8-29.6s25.7-2.2 34.9 6.9l128 128z"]},y6={prefix:"fas",iconName:"magnifying-glass",icon:[512,512,[128269,"search"],"f002","M416 208c0 45.9-14.9 88.3-40 122.7L502.6 457.4c12.5 12.5 12.5 32.8 0 45.3s-32.8 12.5-45.3 0L330.7 376C296.3 401.1 253.9 416 208 416 93.1 416 0 322.9 0 208S93.1 0 208 0 416 93.1 416 208zM208 352a144 144 0 1 0 0-288 144 144 0 1 0 0 288z"]},b6=y6,x6={prefix:"fas",iconName:"floppy-disk",icon:[448,512,[128190,128426,"save"],"f0c7","M64 32C28.7 32 0 60.7 0 96L0 416c0 35.3 28.7 64 64 64l320 0c35.3 0 64-28.7 64-64l0-242.7c0-17-6.7-33.3-18.7-45.3L352 50.7C340 38.7 323.7 32 306.7 32L64 32zm32 96c0-17.7 14.3-32 32-32l160 0c17.7 0 32 14.3 32 32l0 64c0 17.7-14.3 32-32 32l-160 0c-17.7 0-32-14.3-32-32l0-64zM224 288a64 64 0 1 1 0 128 64 64 0 1 1 0-128z"]},S6={prefix:"fas",iconName:"trash",icon:[448,512,[],"f1f8","M136.7 5.9L128 32 32 32C14.3 32 0 46.3 0 64S14.3 96 32 96l384 0c17.7 0 32-14.3 32-32s-14.3-32-32-32l-96 0-8.7-26.1C306.9-7.2 294.7-16 280.9-16L167.1-16c-13.8 0-26 8.8-30.4 21.9zM416 144L32 144 53.1 467.1C54.7 492.4 75.7 512 101 512L347 512c25.3 0 46.3-19.6 47.9-44.9L416 144z"]},C6={prefix:"fas",iconName:"slash",icon:[576,512,[],"f715","M7-25c9.4-9.4 24.6-9.4 33.9 0L569 503c9.4 9.4 9.4 24.6 0 33.9s-24.6 9.4-33.9 0L7 9C-2.3-.4-2.3-15.6 7-25z"]},SS={prefix:"fas",iconName:"stop",icon:[448,512,[9209],"f04d","M64 32l320 0c35.3 0 64 28.7 64 64l0 320c0 35.3-28.7 64-64 64L64 480c-35.3 0-64-28.7-64-64L0 96C0 60.7 28.7 32 64 32z"]},CS={prefix:"fas",iconName:"video",icon:[576,512,["video-camera"],"f03d","M96 64c-35.3 0-64 28.7-64 64l0 256c0 35.3 28.7 64 64 64l256 0c35.3 0 64-28.7 64-64l0-256c0-35.3-28.7-64-64-64L96 64zM464 336l73.5 58.8c4.2 3.4 9.4 5.2 14.8 5.2 13.1 0 23.7-10.6 23.7-23.7l0-240.6c0-13.1-10.6-23.7-23.7-23.7-5.4 0-10.6 1.8-14.8 5.2L464 176 464 336z"]},E6={prefix:"fas",iconName:"circle-xmark",icon:[512,512,[61532,"times-circle","xmark-circle"],"f057","M256 512a256 256 0 1 0 0-512 256 256 0 1 0 0 512zM167 167c9.4-9.4 24.6-9.4 33.9 0l55 55 55-55c9.4-9.4 24.6-9.4 33.9 0s9.4 24.6 0 33.9l-55 55 55 55c9.4 9.4 9.4 24.6 0 33.9s-24.6 9.4-33.9 0l-55-55-55 55c-9.4 9.4-24.6 9.4-33.9 0s-9.4-24.6 0-33.9l55-55-55-55c-9.4-9.4-9.4-24.6 0-33.9z"]},w6=E6,h0={prefix:"fas",iconName:"x",icon:[384,512,[120],"58","M376.6 84.5c11.3-13.6 9.5-33.8-4.1-45.1s-33.8-9.5-45.1 4.1L192 206 56.6 43.5C45.3 29.9 25.1 28.1 11.5 39.4S-3.9 70.9 7.4 84.5L150.3 256 7.4 427.5c-11.3 13.6-9.5 33.8 4.1 45.1s33.8 9.5 45.1-4.1L192 306 327.4 468.5c11.3 13.6 31.5 15.4 45.1 4.1s15.4-31.5 4.1-45.1L233.7 256 376.6 84.5z"]},Ts={prefix:"fas",iconName:"file",icon:[384,512,[128196,128459,61462],"f15b","M64 0C28.7 0 0 28.7 0 64L0 448c0 35.3 28.7 64 64 64l256 0c35.3 0 64-28.7 64-64l0-277.5c0-17-6.7-33.3-18.7-45.3L258.7 18.7C246.7 6.7 230.5 0 213.5 0L64 0zM325.5 176L232 176c-13.3 0-24-10.7-24-24L208 58.5 325.5 176z"]},A6={prefix:"fas",iconName:"face-sad-cry",icon:[512,512,[128557,"sad-cry"],"f5b3","M352 493.4c-29.6 12-62.1 18.6-96 18.6s-66.4-6.6-96-18.6L160 296c0-13.3-10.7-24-24-24s-24 10.7-24 24l0 171.7C44.4 421.6 0 344 0 256 0 114.6 114.6 0 256 0S512 114.6 512 256c0 88-44.4 165.6-112 211.7L400 296c0-13.3-10.7-24-24-24s-24 10.7-24 24l0 197.4zM152 196l16 0c11 0 20 9 20 20s9 20 20 20 20-9 20-20c0-33.1-26.9-60-60-60l-16 0c-33.1 0-60 26.9-60 60 0 11 9 20 20 20s20-9 20-20 9-20 20-20zm172 20c0-11 9-20 20-20l16 0c11 0 20 9 20 20s9 20 20 20 20-9 20-20c0-33.1-26.9-60-60-60l-16 0c-33.1 0-60 26.9-60 60 0 11 9 20 20 20s20-9 20-20zM208 336l0 32c0 26.5 21.5 48 48 48s48-21.5 48-48l0-32c0-26.5-21.5-48-48-48s-48 21.5-48 48z"]},R6=A6,Zu={prefix:"fas",iconName:"play",icon:[448,512,[9654],"f04b","M91.2 36.9c-12.4-6.8-27.4-6.5-39.6 .7S32 57.9 32 72l0 368c0 14.1 7.5 27.2 19.6 34.4s27.2 7.5 39.6 .7l336-184c12.8-7 20.8-20.5 20.8-35.1s-8-28.1-20.8-35.1l-336-184z"]},T6={prefix:"fas",iconName:"check",icon:[448,512,[10003,10004],"f00c","M434.8 70.1c14.3 10.4 17.5 30.4 7.1 44.7l-256 352c-5.5 7.6-14 12.3-23.4 13.1s-18.5-2.7-25.1-9.3l-128-128c-12.5-12.5-12.5-32.8 0-45.3s32.8-12.5 45.3 0l101.5 101.5 234-321.7c10.4-14.3 30.4-17.5 44.7-7.1z"]},ES={prefix:"fas",iconName:"xmark",icon:[384,512,[128473,10005,10006,10060,215,"close","multiply","remove","times"],"f00d","M55.1 73.4c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3L147.2 256 9.9 393.4c-12.5 12.5-12.5 32.8 0 45.3s32.8 12.5 45.3 0L192.5 301.3 329.9 438.6c12.5 12.5 32.8 12.5 45.3 0s12.5-32.8 0-45.3L237.8 256 375.1 118.6c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0L192.5 210.7 55.1 73.4z"]},$6={prefix:"fas",iconName:"moon",icon:[512,512,[127769,9214],"f186","M256 0C114.6 0 0 114.6 0 256S114.6 512 256 512c68.8 0 131.3-27.2 177.3-71.4 7.3-7 9.4-17.9 5.3-27.1s-13.7-14.9-23.8-14.1c-4.9 .4-9.8 .6-14.8 .6-101.6 0-184-82.4-184-184 0-72.1 41.5-134.6 102.1-164.8 9.1-4.5 14.3-14.3 13.1-24.4S322.6 8.5 312.7 6.3C294.4 2.2 275.4 0 256 0z"]},m0={prefix:"fas",iconName:"chevron-left",icon:[320,512,[9001],"f053","M9.4 233.4c-12.5 12.5-12.5 32.8 0 45.3l192 192c12.5 12.5 32.8 12.5 45.3 0s12.5-32.8 0-45.3L77.3 256 246.6 86.6c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0l-192 192z"]},O6={prefix:"fas",iconName:"star",icon:[576,512,[11088,61446],"f005","M309.5-18.9c-4.1-8-12.4-13.1-21.4-13.1s-17.3 5.1-21.4 13.1L193.1 125.3 33.2 150.7c-8.9 1.4-16.3 7.7-19.1 16.3s-.5 18 5.8 24.4l114.4 114.5-25.2 159.9c-1.4 8.9 2.3 17.9 9.6 23.2s16.9 6.1 25 2L288.1 417.6 432.4 491c8 4.1 17.7 3.3 25-2s11-14.2 9.6-23.2L441.7 305.9 556.1 191.4c6.4-6.4 8.6-15.8 5.8-24.4s-10.1-14.9-19.1-16.3L383 125.3 309.5-18.9z"]},Bs={prefix:"fas",iconName:"download",icon:[448,512,[],"f019","M256 32c0-17.7-14.3-32-32-32s-32 14.3-32 32l0 210.7-41.4-41.4c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3l96 96c12.5 12.5 32.8 12.5 45.3 0l96-96c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0L256 242.7 256 32zM64 320c-35.3 0-64 28.7-64 64l0 32c0 35.3 28.7 64 64 64l320 0c35.3 0 64-28.7 64-64l0-32c0-35.3-28.7-64-64-64l-46.9 0-56.6 56.6c-31.2 31.2-81.9 31.2-113.1 0L110.9 320 64 320zm304 56a24 24 0 1 1 0 48 24 24 0 1 1 0-48z"]},_6={prefix:"fas",iconName:"upload",icon:[448,512,[],"f093","M256 109.3L256 320c0 17.7-14.3 32-32 32s-32-14.3-32-32l0-210.7-41.4 41.4c-12.5 12.5-32.8 12.5-45.3 0s-12.5-32.8 0-45.3l96-96c12.5-12.5 32.8-12.5 45.3 0l96 96c12.5 12.5 12.5 32.8 0 45.3s-32.8 12.5-45.3 0L256 109.3zM224 400c44.2 0 80-35.8 80-80l80 0c35.3 0 64 28.7 64 64l0 32c0 35.3-28.7 64-64 64L64 480c-35.3 0-64-28.7-64-64l0-32c0-35.3 28.7-64 64-64l80 0c0 44.2 35.8 80 80 80zm144 24a24 24 0 1 0 0-48 24 24 0 1 0 0 48z"]},j6={prefix:"fas",iconName:"plus",icon:[448,512,[10133,61543,"add"],"2b","M256 64c0-17.7-14.3-32-32-32s-32 14.3-32 32l0 160-160 0c-17.7 0-32 14.3-32 32s14.3 32 32 32l160 0 0 160c0 17.7 14.3 32 32 32s32-14.3 32-32l0-160 160 0c17.7 0 32-14.3 32-32s-14.3-32-32-32l-160 0 0-160z"]},k6={prefix:"fas",iconName:"copy",icon:[448,512,[],"f0c5","M192 0c-35.3 0-64 28.7-64 64l0 256c0 35.3 28.7 64 64 64l192 0c35.3 0 64-28.7 64-64l0-200.6c0-17.4-7.1-34.1-19.7-46.2L370.6 17.8C358.7 6.4 342.8 0 326.3 0L192 0zM64 128c-35.3 0-64 28.7-64 64L0 448c0 35.3 28.7 64 64 64l192 0c35.3 0 64-28.7 64-64l0-16-64 0 0 16-192 0 0-256 16 0 0-64-16 0z"]},N6={prefix:"fas",iconName:"arrow-up-right-from-square",icon:[512,512,["external-link"],"f08e","M320 0c-17.7 0-32 14.3-32 32s14.3 32 32 32l82.7 0-201.4 201.4c-12.5 12.5-12.5 32.8 0 45.3s32.8 12.5 45.3 0L448 109.3 448 192c0 17.7 14.3 32 32 32s32-14.3 32-32l0-160c0-17.7-14.3-32-32-32L320 0zM80 96C35.8 96 0 131.8 0 176L0 432c0 44.2 35.8 80 80 80l256 0c44.2 0 80-35.8 80-80l0-80c0-17.7-14.3-32-32-32s-32 14.3-32 32l0 80c0 8.8-7.2 16-16 16L80 448c-8.8 0-16-7.2-16-16l0-256c0-8.8 7.2-16 16-16l80 0c17.7 0 32-14.3 32-32s-14.3-32-32-32L80 96z"]},wS={prefix:"fas",iconName:"pause",icon:[384,512,[9208],"f04c","M48 32C21.5 32 0 53.5 0 80L0 432c0 26.5 21.5 48 48 48l64 0c26.5 0 48-21.5 48-48l0-352c0-26.5-21.5-48-48-48L48 32zm224 0c-26.5 0-48 21.5-48 48l0 352c0 26.5 21.5 48 48 48l64 0c26.5 0 48-21.5 48-48l0-352c0-26.5-21.5-48-48-48l-64 0z"]},z6={prefix:"fas",iconName:"left-long",icon:[576,512,["long-arrow-alt-left"],"f30a","M9.4 278.6c-12.5-12.5-12.5-32.8 0-45.3l128-128c9.2-9.2 22.9-11.9 34.9-6.9S192 115.1 192 128l0 64 336 0c26.5 0 48 21.5 48 48l0 32c0 26.5-21.5 48-48 48l-336 0 0 64c0 12.9-7.8 24.6-19.8 29.6s-25.7 2.2-34.9-6.9l-128-128z"]},D6={prefix:"fas",iconName:"stopwatch",icon:[448,512,[9201],"f2f2","M168.5 0c-13.3 0-24 10.7-24 24s10.7 24 24 24l32 0 0 25.3c-108 11.9-192 103.5-192 214.7 0 119.3 96.7 216 216 216s216-96.7 216-216c0-39.8-10.8-77.1-29.6-109.2l28.2-28.2c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0l-23.4 23.4c-32.9-30.2-75.2-50.3-122-55.5l0-25.3 32 0c13.3 0 24-10.7 24-24s-10.7-24-24-24l-112 0zm80 184l0 104c0 13.3-10.7 24-24 24s-24-10.7-24-24l0-104c0-13.3 10.7-24 24-24s24 10.7 24 24z"]};function cm(e,t){(t==null||t>e.length)&&(t=e.length);for(var a=0,i=Array(t);a<t;a++)i[a]=e[a];return i}function M6(e){if(Array.isArray(e))return e}function B6(e){if(Array.isArray(e))return cm(e)}function L6(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function P6(e,t){for(var a=0;a<t.length;a++){var i=t[a];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,AS(i.key),i)}}function I6(e,t,a){return t&&P6(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function Bu(e,t){var a=typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(!a){if(Array.isArray(e)||(a=g0(e))||t){a&&(e=a);var i=0,l=function(){};return{s:l,n:function(){return i>=e.length?{done:!0}:{done:!1,value:e[i++]}},e:function(d){throw d},f:l}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
12
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var s,u=!0,f=!1;return{s:function(){a=a.call(e)},n:function(){var d=a.next();return u=d.done,d},e:function(d){f=!0,s=d},f:function(){try{u||a.return==null||a.return()}finally{if(f)throw s}}}}function ke(e,t,a){return(t=AS(t))in e?Object.defineProperty(e,t,{value:a,enumerable:!0,configurable:!0,writable:!0}):e[t]=a,e}function H6(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function U6(e,t){var a=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(a!=null){var i,l,s,u,f=[],d=!0,h=!1;try{if(s=(a=a.call(e)).next,t===0){if(Object(a)!==a)return;d=!1}else for(;!(d=(i=s.call(a)).done)&&(f.push(i.value),f.length!==t);d=!0);}catch(m){h=!0,l=m}finally{try{if(!d&&a.return!=null&&(u=a.return(),Object(u)!==u))return}finally{if(h)throw l}}return f}}function F6(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
13
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function V6(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
14
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Eb(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(l){return Object.getOwnPropertyDescriptor(e,l).enumerable})),a.push.apply(a,i)}return a}function fe(e){for(var t=1;t<arguments.length;t++){var a=arguments[t]!=null?arguments[t]:{};t%2?Eb(Object(a),!0).forEach(function(i){ke(e,i,a[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(a)):Eb(Object(a)).forEach(function(i){Object.defineProperty(e,i,Object.getOwnPropertyDescriptor(a,i))})}return e}function wf(e,t){return M6(e)||U6(e,t)||g0(e,t)||F6()}function Cr(e){return B6(e)||H6(e)||g0(e)||V6()}function q6(e,t){if(typeof e!="object"||!e)return e;var a=e[Symbol.toPrimitive];if(a!==void 0){var i=a.call(e,t);if(typeof i!="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function AS(e){var t=q6(e,"string");return typeof t=="symbol"?t:t+""}function ef(e){"@babel/helpers - typeof";return ef=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},ef(e)}function g0(e,t){if(e){if(typeof e=="string")return cm(e,t);var a={}.toString.call(e).slice(8,-1);return a==="Object"&&e.constructor&&(a=e.constructor.name),a==="Map"||a==="Set"?Array.from(e):a==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(a)?cm(e,t):void 0}}var wb=function(){},v0={},RS={},TS=null,$S={mark:wb,measure:wb};try{typeof window<"u"&&(v0=window),typeof document<"u"&&(RS=document),typeof MutationObserver<"u"&&(TS=MutationObserver),typeof performance<"u"&&($S=performance)}catch{}var Y6=v0.navigator||{},Ab=Y6.userAgent,Rb=Ab===void 0?"":Ab,ai=v0,ft=RS,Tb=TS,Tu=$S;ai.document;var wa=!!ft.documentElement&&!!ft.head&&typeof ft.addEventListener=="function"&&typeof ft.createElement=="function",OS=~Rb.indexOf("MSIE")||~Rb.indexOf("Trident/"),_h,G6=/fa(k|kd|s|r|l|t|d|dr|dl|dt|b|slr|slpr|wsb|tl|ns|nds|es|jr|jfr|jdr|usb|ufsb|udsb|cr|ss|sr|sl|st|sds|sdr|sdl|sdt)?[\-\ ]/,W6=/Font ?Awesome ?([567 ]*)(Solid|Regular|Light|Thin|Duotone|Brands|Free|Pro|Sharp Duotone|Sharp|Kit|Notdog Duo|Notdog|Chisel|Etch|Thumbprint|Jelly Fill|Jelly Duo|Jelly|Utility|Utility Fill|Utility Duo|Slab Press|Slab|Whiteboard)?.*/i,_S={classic:{fa:"solid",fas:"solid","fa-solid":"solid",far:"regular","fa-regular":"regular",fal:"light","fa-light":"light",fat:"thin","fa-thin":"thin",fab:"brands","fa-brands":"brands"},duotone:{fa:"solid",fad:"solid","fa-solid":"solid","fa-duotone":"solid",fadr:"regular","fa-regular":"regular",fadl:"light","fa-light":"light",fadt:"thin","fa-thin":"thin"},sharp:{fa:"solid",fass:"solid","fa-solid":"solid",fasr:"regular","fa-regular":"regular",fasl:"light","fa-light":"light",fast:"thin","fa-thin":"thin"},"sharp-duotone":{fa:"solid",fasds:"solid","fa-solid":"solid",fasdr:"regular","fa-regular":"regular",fasdl:"light","fa-light":"light",fasdt:"thin","fa-thin":"thin"},slab:{"fa-regular":"regular",faslr:"regular"},"slab-press":{"fa-regular":"regular",faslpr:"regular"},thumbprint:{"fa-light":"light",fatl:"light"},whiteboard:{"fa-semibold":"semibold",fawsb:"semibold"},notdog:{"fa-solid":"solid",fans:"solid"},"notdog-duo":{"fa-solid":"solid",fands:"solid"},etch:{"fa-solid":"solid",faes:"solid"},jelly:{"fa-regular":"regular",fajr:"regular"},"jelly-fill":{"fa-regular":"regular",fajfr:"regular"},"jelly-duo":{"fa-regular":"regular",fajdr:"regular"},chisel:{"fa-regular":"regular",facr:"regular"},utility:{"fa-semibold":"semibold",fausb:"semibold"},"utility-duo":{"fa-semibold":"semibold",faudsb:"semibold"},"utility-fill":{"fa-semibold":"semibold",faufsb:"semibold"}},K6={GROUP:"duotone-group",PRIMARY:"primary",SECONDARY:"secondary"},jS=["fa-classic","fa-duotone","fa-sharp","fa-sharp-duotone","fa-thumbprint","fa-whiteboard","fa-notdog","fa-notdog-duo","fa-chisel","fa-etch","fa-jelly","fa-jelly-fill","fa-jelly-duo","fa-slab","fa-slab-press","fa-utility","fa-utility-duo","fa-utility-fill"],Xt="classic",Js="duotone",kS="sharp",NS="sharp-duotone",zS="chisel",DS="etch",MS="jelly",BS="jelly-duo",LS="jelly-fill",PS="notdog",IS="notdog-duo",HS="slab",US="slab-press",FS="thumbprint",VS="utility",qS="utility-duo",YS="utility-fill",GS="whiteboard",X6="Classic",Q6="Duotone",J6="Sharp",Z6="Sharp Duotone",eR="Chisel",tR="Etch",nR="Jelly",rR="Jelly Duo",aR="Jelly Fill",iR="Notdog",oR="Notdog Duo",lR="Slab",sR="Slab Press",cR="Thumbprint",uR="Utility",fR="Utility Duo",dR="Utility Fill",pR="Whiteboard",WS=[Xt,Js,kS,NS,zS,DS,MS,BS,LS,PS,IS,HS,US,FS,VS,qS,YS,GS];_h={},ke(ke(ke(ke(ke(ke(ke(ke(ke(ke(_h,Xt,X6),Js,Q6),kS,J6),NS,Z6),zS,eR),DS,tR),MS,nR),BS,rR),LS,aR),PS,iR),ke(ke(ke(ke(ke(ke(ke(ke(_h,IS,oR),HS,lR),US,sR),FS,cR),VS,uR),qS,fR),YS,dR),GS,pR);var hR={classic:{900:"fas",400:"far",normal:"far",300:"fal",100:"fat"},duotone:{900:"fad",400:"fadr",300:"fadl",100:"fadt"},sharp:{900:"fass",400:"fasr",300:"fasl",100:"fast"},"sharp-duotone":{900:"fasds",400:"fasdr",300:"fasdl",100:"fasdt"},slab:{400:"faslr"},"slab-press":{400:"faslpr"},whiteboard:{600:"fawsb"},thumbprint:{300:"fatl"},notdog:{900:"fans"},"notdog-duo":{900:"fands"},etch:{900:"faes"},chisel:{400:"facr"},jelly:{400:"fajr"},"jelly-fill":{400:"fajfr"},"jelly-duo":{400:"fajdr"},utility:{600:"fausb"},"utility-duo":{600:"faudsb"},"utility-fill":{600:"faufsb"}},mR={"Font Awesome 7 Free":{900:"fas",400:"far"},"Font Awesome 7 Pro":{900:"fas",400:"far",normal:"far",300:"fal",100:"fat"},"Font Awesome 7 Brands":{400:"fab",normal:"fab"},"Font Awesome 7 Duotone":{900:"fad",400:"fadr",normal:"fadr",300:"fadl",100:"fadt"},"Font Awesome 7 Sharp":{900:"fass",400:"fasr",normal:"fasr",300:"fasl",100:"fast"},"Font Awesome 7 Sharp Duotone":{900:"fasds",400:"fasdr",normal:"fasdr",300:"fasdl",100:"fasdt"},"Font Awesome 7 Jelly":{400:"fajr",normal:"fajr"},"Font Awesome 7 Jelly Fill":{400:"fajfr",normal:"fajfr"},"Font Awesome 7 Jelly Duo":{400:"fajdr",normal:"fajdr"},"Font Awesome 7 Slab":{400:"faslr",normal:"faslr"},"Font Awesome 7 Slab Press":{400:"faslpr",normal:"faslpr"},"Font Awesome 7 Thumbprint":{300:"fatl",normal:"fatl"},"Font Awesome 7 Notdog":{900:"fans",normal:"fans"},"Font Awesome 7 Notdog Duo":{900:"fands",normal:"fands"},"Font Awesome 7 Etch":{900:"faes",normal:"faes"},"Font Awesome 7 Chisel":{400:"facr",normal:"facr"},"Font Awesome 7 Whiteboard":{600:"fawsb",normal:"fawsb"},"Font Awesome 7 Utility":{600:"fausb",normal:"fausb"},"Font Awesome 7 Utility Duo":{600:"faudsb",normal:"faudsb"},"Font Awesome 7 Utility Fill":{600:"faufsb",normal:"faufsb"}},gR=new Map([["classic",{defaultShortPrefixId:"fas",defaultStyleId:"solid",styleIds:["solid","regular","light","thin","brands"],futureStyleIds:[],defaultFontWeight:900}],["duotone",{defaultShortPrefixId:"fad",defaultStyleId:"solid",styleIds:["solid","regular","light","thin"],futureStyleIds:[],defaultFontWeight:900}],["sharp",{defaultShortPrefixId:"fass",defaultStyleId:"solid",styleIds:["solid","regular","light","thin"],futureStyleIds:[],defaultFontWeight:900}],["sharp-duotone",{defaultShortPrefixId:"fasds",defaultStyleId:"solid",styleIds:["solid","regular","light","thin"],futureStyleIds:[],defaultFontWeight:900}],["chisel",{defaultShortPrefixId:"facr",defaultStyleId:"regular",styleIds:["regular"],futureStyleIds:[],defaultFontWeight:400}],["etch",{defaultShortPrefixId:"faes",defaultStyleId:"solid",styleIds:["solid"],futureStyleIds:[],defaultFontWeight:900}],["jelly",{defaultShortPrefixId:"fajr",defaultStyleId:"regular",styleIds:["regular"],futureStyleIds:[],defaultFontWeight:400}],["jelly-duo",{defaultShortPrefixId:"fajdr",defaultStyleId:"regular",styleIds:["regular"],futureStyleIds:[],defaultFontWeight:400}],["jelly-fill",{defaultShortPrefixId:"fajfr",defaultStyleId:"regular",styleIds:["regular"],futureStyleIds:[],defaultFontWeight:400}],["notdog",{defaultShortPrefixId:"fans",defaultStyleId:"solid",styleIds:["solid"],futureStyleIds:[],defaultFontWeight:900}],["notdog-duo",{defaultShortPrefixId:"fands",defaultStyleId:"solid",styleIds:["solid"],futureStyleIds:[],defaultFontWeight:900}],["slab",{defaultShortPrefixId:"faslr",defaultStyleId:"regular",styleIds:["regular"],futureStyleIds:[],defaultFontWeight:400}],["slab-press",{defaultShortPrefixId:"faslpr",defaultStyleId:"regular",styleIds:["regular"],futureStyleIds:[],defaultFontWeight:400}],["thumbprint",{defaultShortPrefixId:"fatl",defaultStyleId:"light",styleIds:["light"],futureStyleIds:[],defaultFontWeight:300}],["utility",{defaultShortPrefixId:"fausb",defaultStyleId:"semibold",styleIds:["semibold"],futureStyleIds:[],defaultFontWeight:600}],["utility-duo",{defaultShortPrefixId:"faudsb",defaultStyleId:"semibold",styleIds:["semibold"],futureStyleIds:[],defaultFontWeight:600}],["utility-fill",{defaultShortPrefixId:"faufsb",defaultStyleId:"semibold",styleIds:["semibold"],futureStyleIds:[],defaultFontWeight:600}],["whiteboard",{defaultShortPrefixId:"fawsb",defaultStyleId:"semibold",styleIds:["semibold"],futureStyleIds:[],defaultFontWeight:600}]]),vR={chisel:{regular:"facr"},classic:{brands:"fab",light:"fal",regular:"far",solid:"fas",thin:"fat"},duotone:{light:"fadl",regular:"fadr",solid:"fad",thin:"fadt"},etch:{solid:"faes"},jelly:{regular:"fajr"},"jelly-duo":{regular:"fajdr"},"jelly-fill":{regular:"fajfr"},notdog:{solid:"fans"},"notdog-duo":{solid:"fands"},sharp:{light:"fasl",regular:"fasr",solid:"fass",thin:"fast"},"sharp-duotone":{light:"fasdl",regular:"fasdr",solid:"fasds",thin:"fasdt"},slab:{regular:"faslr"},"slab-press":{regular:"faslpr"},thumbprint:{light:"fatl"},utility:{semibold:"fausb"},"utility-duo":{semibold:"faudsb"},"utility-fill":{semibold:"faufsb"},whiteboard:{semibold:"fawsb"}},KS=["fak","fa-kit","fakd","fa-kit-duotone"],$b={kit:{fak:"kit","fa-kit":"kit"},"kit-duotone":{fakd:"kit-duotone","fa-kit-duotone":"kit-duotone"}},yR=["kit"],bR="kit",xR="kit-duotone",SR="Kit",CR="Kit Duotone";ke(ke({},bR,SR),xR,CR);var ER={kit:{"fa-kit":"fak"}},wR={"Font Awesome Kit":{400:"fak",normal:"fak"},"Font Awesome Kit Duotone":{400:"fakd",normal:"fakd"}},AR={kit:{fak:"fa-kit"}},Ob={kit:{kit:"fak"},"kit-duotone":{"kit-duotone":"fakd"}},jh,$u={GROUP:"duotone-group",SWAP_OPACITY:"swap-opacity",PRIMARY:"primary",SECONDARY:"secondary"},RR=["fa-classic","fa-duotone","fa-sharp","fa-sharp-duotone","fa-thumbprint","fa-whiteboard","fa-notdog","fa-notdog-duo","fa-chisel","fa-etch","fa-jelly","fa-jelly-fill","fa-jelly-duo","fa-slab","fa-slab-press","fa-utility","fa-utility-duo","fa-utility-fill"],TR="classic",$R="duotone",OR="sharp",_R="sharp-duotone",jR="chisel",kR="etch",NR="jelly",zR="jelly-duo",DR="jelly-fill",MR="notdog",BR="notdog-duo",LR="slab",PR="slab-press",IR="thumbprint",HR="utility",UR="utility-duo",FR="utility-fill",VR="whiteboard",qR="Classic",YR="Duotone",GR="Sharp",WR="Sharp Duotone",KR="Chisel",XR="Etch",QR="Jelly",JR="Jelly Duo",ZR="Jelly Fill",eT="Notdog",tT="Notdog Duo",nT="Slab",rT="Slab Press",aT="Thumbprint",iT="Utility",oT="Utility Duo",lT="Utility Fill",sT="Whiteboard";jh={},ke(ke(ke(ke(ke(ke(ke(ke(ke(ke(jh,TR,qR),$R,YR),OR,GR),_R,WR),jR,KR),kR,XR),NR,QR),zR,JR),DR,ZR),MR,eT),ke(ke(ke(ke(ke(ke(ke(ke(jh,BR,tT),LR,nT),PR,rT),IR,aT),HR,iT),UR,oT),FR,lT),VR,sT);var cT="kit",uT="kit-duotone",fT="Kit",dT="Kit Duotone";ke(ke({},cT,fT),uT,dT);var pT={classic:{"fa-brands":"fab","fa-duotone":"fad","fa-light":"fal","fa-regular":"far","fa-solid":"fas","fa-thin":"fat"},duotone:{"fa-regular":"fadr","fa-light":"fadl","fa-thin":"fadt"},sharp:{"fa-solid":"fass","fa-regular":"fasr","fa-light":"fasl","fa-thin":"fast"},"sharp-duotone":{"fa-solid":"fasds","fa-regular":"fasdr","fa-light":"fasdl","fa-thin":"fasdt"},slab:{"fa-regular":"faslr"},"slab-press":{"fa-regular":"faslpr"},whiteboard:{"fa-semibold":"fawsb"},thumbprint:{"fa-light":"fatl"},notdog:{"fa-solid":"fans"},"notdog-duo":{"fa-solid":"fands"},etch:{"fa-solid":"faes"},jelly:{"fa-regular":"fajr"},"jelly-fill":{"fa-regular":"fajfr"},"jelly-duo":{"fa-regular":"fajdr"},chisel:{"fa-regular":"facr"},utility:{"fa-semibold":"fausb"},"utility-duo":{"fa-semibold":"faudsb"},"utility-fill":{"fa-semibold":"faufsb"}},hT={classic:["fas","far","fal","fat","fad"],duotone:["fadr","fadl","fadt"],sharp:["fass","fasr","fasl","fast"],"sharp-duotone":["fasds","fasdr","fasdl","fasdt"],slab:["faslr"],"slab-press":["faslpr"],whiteboard:["fawsb"],thumbprint:["fatl"],notdog:["fans"],"notdog-duo":["fands"],etch:["faes"],jelly:["fajr"],"jelly-fill":["fajfr"],"jelly-duo":["fajdr"],chisel:["facr"],utility:["fausb"],"utility-duo":["faudsb"],"utility-fill":["faufsb"]},um={classic:{fab:"fa-brands",fad:"fa-duotone",fal:"fa-light",far:"fa-regular",fas:"fa-solid",fat:"fa-thin"},duotone:{fadr:"fa-regular",fadl:"fa-light",fadt:"fa-thin"},sharp:{fass:"fa-solid",fasr:"fa-regular",fasl:"fa-light",fast:"fa-thin"},"sharp-duotone":{fasds:"fa-solid",fasdr:"fa-regular",fasdl:"fa-light",fasdt:"fa-thin"},slab:{faslr:"fa-regular"},"slab-press":{faslpr:"fa-regular"},whiteboard:{fawsb:"fa-semibold"},thumbprint:{fatl:"fa-light"},notdog:{fans:"fa-solid"},"notdog-duo":{fands:"fa-solid"},etch:{faes:"fa-solid"},jelly:{fajr:"fa-regular"},"jelly-fill":{fajfr:"fa-regular"},"jelly-duo":{fajdr:"fa-regular"},chisel:{facr:"fa-regular"},utility:{fausb:"fa-semibold"},"utility-duo":{faudsb:"fa-semibold"},"utility-fill":{faufsb:"fa-semibold"}},mT=["fa-solid","fa-regular","fa-light","fa-thin","fa-duotone","fa-brands","fa-semibold"],XS=["fa","fas","far","fal","fat","fad","fadr","fadl","fadt","fab","fass","fasr","fasl","fast","fasds","fasdr","fasdl","fasdt","faslr","faslpr","fawsb","fatl","fans","fands","faes","fajr","fajfr","fajdr","facr","fausb","faudsb","faufsb"].concat(RR,mT),gT=["solid","regular","light","thin","duotone","brands","semibold"],QS=[1,2,3,4,5,6,7,8,9,10],vT=QS.concat([11,12,13,14,15,16,17,18,19,20]),yT=["aw","fw","pull-left","pull-right"],bT=[].concat(Cr(Object.keys(hT)),gT,yT,["2xs","xs","sm","lg","xl","2xl","beat","border","fade","beat-fade","bounce","flip-both","flip-horizontal","flip-vertical","flip","inverse","layers","layers-bottom-left","layers-bottom-right","layers-counter","layers-text","layers-top-left","layers-top-right","li","pull-end","pull-start","pulse","rotate-180","rotate-270","rotate-90","rotate-by","shake","spin-pulse","spin-reverse","spin","stack-1x","stack-2x","stack","ul","width-auto","width-fixed",$u.GROUP,$u.SWAP_OPACITY,$u.PRIMARY,$u.SECONDARY]).concat(QS.map(function(e){return"".concat(e,"x")})).concat(vT.map(function(e){return"w-".concat(e)})),xT={"Font Awesome 5 Free":{900:"fas",400:"far"},"Font Awesome 5 Pro":{900:"fas",400:"far",normal:"far",300:"fal"},"Font Awesome 5 Brands":{400:"fab",normal:"fab"},"Font Awesome 5 Duotone":{900:"fad"}},ya="___FONT_AWESOME___",fm=16,JS="fa",ZS="svg-inline--fa",qi="data-fa-i2svg",dm="data-fa-pseudo-element",ST="data-fa-pseudo-element-pending",y0="data-prefix",b0="data-icon",_b="fontawesome-i2svg",CT="async",ET=["HTML","HEAD","STYLE","SCRIPT"],eC=["::before","::after",":before",":after"],tC=(function(){try{return!0}catch{return!1}})();function Zs(e){return new Proxy(e,{get:function(a,i){return i in a?a[i]:a[Xt]}})}var nC=fe({},_S);nC[Xt]=fe(fe(fe(fe({},{"fa-duotone":"duotone"}),_S[Xt]),$b.kit),$b["kit-duotone"]);var wT=Zs(nC),pm=fe({},vR);pm[Xt]=fe(fe(fe(fe({},{duotone:"fad"}),pm[Xt]),Ob.kit),Ob["kit-duotone"]);var jb=Zs(pm),hm=fe({},um);hm[Xt]=fe(fe({},hm[Xt]),AR.kit);var x0=Zs(hm),mm=fe({},pT);mm[Xt]=fe(fe({},mm[Xt]),ER.kit);Zs(mm);var AT=G6,rC="fa-layers-text",RT=W6,TT=fe({},hR);Zs(TT);var $T=["class","data-prefix","data-icon","data-fa-transform","data-fa-mask"],kh=K6,OT=[].concat(Cr(yR),Cr(bT)),$s=ai.FontAwesomeConfig||{};function _T(e){var t=ft.querySelector("script["+e+"]");if(t)return t.getAttribute(e)}function jT(e){return e===""?!0:e==="false"?!1:e==="true"?!0:e}if(ft&&typeof ft.querySelector=="function"){var kT=[["data-family-prefix","familyPrefix"],["data-css-prefix","cssPrefix"],["data-family-default","familyDefault"],["data-style-default","styleDefault"],["data-replacement-class","replacementClass"],["data-auto-replace-svg","autoReplaceSvg"],["data-auto-add-css","autoAddCss"],["data-search-pseudo-elements","searchPseudoElements"],["data-search-pseudo-elements-warnings","searchPseudoElementsWarnings"],["data-search-pseudo-elements-full-scan","searchPseudoElementsFullScan"],["data-observe-mutations","observeMutations"],["data-mutate-approach","mutateApproach"],["data-keep-original-source","keepOriginalSource"],["data-measure-performance","measurePerformance"],["data-show-missing-icons","showMissingIcons"]];kT.forEach(function(e){var t=wf(e,2),a=t[0],i=t[1],l=jT(_T(a));l!=null&&($s[i]=l)})}var aC={styleDefault:"solid",familyDefault:Xt,cssPrefix:JS,replacementClass:ZS,autoReplaceSvg:!0,autoAddCss:!0,searchPseudoElements:!1,searchPseudoElementsWarnings:!0,searchPseudoElementsFullScan:!1,observeMutations:!0,mutateApproach:"async",keepOriginalSource:!0,measurePerformance:!1,showMissingIcons:!0};$s.familyPrefix&&($s.cssPrefix=$s.familyPrefix);var rl=fe(fe({},aC),$s);rl.autoReplaceSvg||(rl.observeMutations=!1);var Ce={};Object.keys(aC).forEach(function(e){Object.defineProperty(Ce,e,{enumerable:!0,set:function(a){rl[e]=a,Os.forEach(function(i){return i(Ce)})},get:function(){return rl[e]}})});Object.defineProperty(Ce,"familyPrefix",{enumerable:!0,set:function(t){rl.cssPrefix=t,Os.forEach(function(a){return a(Ce)})},get:function(){return rl.cssPrefix}});ai.FontAwesomeConfig=Ce;var Os=[];function NT(e){return Os.push(e),function(){Os.splice(Os.indexOf(e),1)}}var Ho=fm,Mr={size:16,x:0,y:0,rotate:0,flipX:!1,flipY:!1};function zT(e){if(!(!e||!wa)){var t=ft.createElement("style");t.setAttribute("type","text/css"),t.innerHTML=e;for(var a=ft.head.childNodes,i=null,l=a.length-1;l>-1;l--){var s=a[l],u=(s.tagName||"").toUpperCase();["STYLE","LINK"].indexOf(u)>-1&&(i=s)}return ft.head.insertBefore(t,i),e}}var DT="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ";function kb(){for(var e=12,t="";e-- >0;)t+=DT[Math.random()*62|0];return t}function pl(e){for(var t=[],a=(e||[]).length>>>0;a--;)t[a]=e[a];return t}function S0(e){return e.classList?pl(e.classList):(e.getAttribute("class")||"").split(" ").filter(function(t){return t})}function iC(e){return"".concat(e).replace(/&/g,"&amp;").replace(/"/g,"&quot;").replace(/'/g,"&#39;").replace(/</g,"&lt;").replace(/>/g,"&gt;")}function MT(e){return Object.keys(e||{}).reduce(function(t,a){return t+"".concat(a,'="').concat(iC(e[a]),'" ')},"").trim()}function Af(e){return Object.keys(e||{}).reduce(function(t,a){return t+"".concat(a,": ").concat(e[a].trim(),";")},"")}function C0(e){return e.size!==Mr.size||e.x!==Mr.x||e.y!==Mr.y||e.rotate!==Mr.rotate||e.flipX||e.flipY}function BT(e){var t=e.transform,a=e.containerWidth,i=e.iconWidth,l={transform:"translate(".concat(a/2," 256)")},s="translate(".concat(t.x*32,", ").concat(t.y*32,") "),u="scale(".concat(t.size/16*(t.flipX?-1:1),", ").concat(t.size/16*(t.flipY?-1:1),") "),f="rotate(".concat(t.rotate," 0 0)"),d={transform:"".concat(s," ").concat(u," ").concat(f)},h={transform:"translate(".concat(i/2*-1," -256)")};return{outer:l,inner:d,path:h}}function LT(e){var t=e.transform,a=e.width,i=a===void 0?fm:a,l=e.height,s=l===void 0?fm:l,u="";return OS?u+="translate(".concat(t.x/Ho-i/2,"em, ").concat(t.y/Ho-s/2,"em) "):u+="translate(calc(-50% + ".concat(t.x/Ho,"em), calc(-50% + ").concat(t.y/Ho,"em)) "),u+="scale(".concat(t.size/Ho*(t.flipX?-1:1),", ").concat(t.size/Ho*(t.flipY?-1:1),") "),u+="rotate(".concat(t.rotate,"deg) "),u}var PT=`:root, :host {
15
+ --fa-font-solid: normal 900 1em/1 "Font Awesome 7 Free";
16
+ --fa-font-regular: normal 400 1em/1 "Font Awesome 7 Free";
17
+ --fa-font-light: normal 300 1em/1 "Font Awesome 7 Pro";
18
+ --fa-font-thin: normal 100 1em/1 "Font Awesome 7 Pro";
19
+ --fa-font-duotone: normal 900 1em/1 "Font Awesome 7 Duotone";
20
+ --fa-font-duotone-regular: normal 400 1em/1 "Font Awesome 7 Duotone";
21
+ --fa-font-duotone-light: normal 300 1em/1 "Font Awesome 7 Duotone";
22
+ --fa-font-duotone-thin: normal 100 1em/1 "Font Awesome 7 Duotone";
23
+ --fa-font-brands: normal 400 1em/1 "Font Awesome 7 Brands";
24
+ --fa-font-sharp-solid: normal 900 1em/1 "Font Awesome 7 Sharp";
25
+ --fa-font-sharp-regular: normal 400 1em/1 "Font Awesome 7 Sharp";
26
+ --fa-font-sharp-light: normal 300 1em/1 "Font Awesome 7 Sharp";
27
+ --fa-font-sharp-thin: normal 100 1em/1 "Font Awesome 7 Sharp";
28
+ --fa-font-sharp-duotone-solid: normal 900 1em/1 "Font Awesome 7 Sharp Duotone";
29
+ --fa-font-sharp-duotone-regular: normal 400 1em/1 "Font Awesome 7 Sharp Duotone";
30
+ --fa-font-sharp-duotone-light: normal 300 1em/1 "Font Awesome 7 Sharp Duotone";
31
+ --fa-font-sharp-duotone-thin: normal 100 1em/1 "Font Awesome 7 Sharp Duotone";
32
+ --fa-font-slab-regular: normal 400 1em/1 "Font Awesome 7 Slab";
33
+ --fa-font-slab-press-regular: normal 400 1em/1 "Font Awesome 7 Slab Press";
34
+ --fa-font-whiteboard-semibold: normal 600 1em/1 "Font Awesome 7 Whiteboard";
35
+ --fa-font-thumbprint-light: normal 300 1em/1 "Font Awesome 7 Thumbprint";
36
+ --fa-font-notdog-solid: normal 900 1em/1 "Font Awesome 7 Notdog";
37
+ --fa-font-notdog-duo-solid: normal 900 1em/1 "Font Awesome 7 Notdog Duo";
38
+ --fa-font-etch-solid: normal 900 1em/1 "Font Awesome 7 Etch";
39
+ --fa-font-jelly-regular: normal 400 1em/1 "Font Awesome 7 Jelly";
40
+ --fa-font-jelly-fill-regular: normal 400 1em/1 "Font Awesome 7 Jelly Fill";
41
+ --fa-font-jelly-duo-regular: normal 400 1em/1 "Font Awesome 7 Jelly Duo";
42
+ --fa-font-chisel-regular: normal 400 1em/1 "Font Awesome 7 Chisel";
43
+ --fa-font-utility-semibold: normal 600 1em/1 "Font Awesome 7 Utility";
44
+ --fa-font-utility-duo-semibold: normal 600 1em/1 "Font Awesome 7 Utility Duo";
45
+ --fa-font-utility-fill-semibold: normal 600 1em/1 "Font Awesome 7 Utility Fill";
46
+ }
47
+
48
+ .svg-inline--fa {
49
+ box-sizing: content-box;
50
+ display: var(--fa-display, inline-block);
51
+ height: 1em;
52
+ overflow: visible;
53
+ vertical-align: -0.125em;
54
+ width: var(--fa-width, 1.25em);
55
+ }
56
+ .svg-inline--fa.fa-2xs {
57
+ vertical-align: 0.1em;
58
+ }
59
+ .svg-inline--fa.fa-xs {
60
+ vertical-align: 0em;
61
+ }
62
+ .svg-inline--fa.fa-sm {
63
+ vertical-align: -0.0714285714em;
64
+ }
65
+ .svg-inline--fa.fa-lg {
66
+ vertical-align: -0.2em;
67
+ }
68
+ .svg-inline--fa.fa-xl {
69
+ vertical-align: -0.25em;
70
+ }
71
+ .svg-inline--fa.fa-2xl {
72
+ vertical-align: -0.3125em;
73
+ }
74
+ .svg-inline--fa.fa-pull-left,
75
+ .svg-inline--fa .fa-pull-start {
76
+ float: inline-start;
77
+ margin-inline-end: var(--fa-pull-margin, 0.3em);
78
+ }
79
+ .svg-inline--fa.fa-pull-right,
80
+ .svg-inline--fa .fa-pull-end {
81
+ float: inline-end;
82
+ margin-inline-start: var(--fa-pull-margin, 0.3em);
83
+ }
84
+ .svg-inline--fa.fa-li {
85
+ width: var(--fa-li-width, 2em);
86
+ inset-inline-start: calc(-1 * var(--fa-li-width, 2em));
87
+ inset-block-start: 0.25em; /* syncing vertical alignment with Web Font rendering */
88
+ }
89
+
90
+ .fa-layers-counter, .fa-layers-text {
91
+ display: inline-block;
92
+ position: absolute;
93
+ text-align: center;
94
+ }
95
+
96
+ .fa-layers {
97
+ display: inline-block;
98
+ height: 1em;
99
+ position: relative;
100
+ text-align: center;
101
+ vertical-align: -0.125em;
102
+ width: var(--fa-width, 1.25em);
103
+ }
104
+ .fa-layers .svg-inline--fa {
105
+ inset: 0;
106
+ margin: auto;
107
+ position: absolute;
108
+ transform-origin: center center;
109
+ }
110
+
111
+ .fa-layers-text {
112
+ left: 50%;
113
+ top: 50%;
114
+ transform: translate(-50%, -50%);
115
+ transform-origin: center center;
116
+ }
117
+
118
+ .fa-layers-counter {
119
+ background-color: var(--fa-counter-background-color, #ff253a);
120
+ border-radius: var(--fa-counter-border-radius, 1em);
121
+ box-sizing: border-box;
122
+ color: var(--fa-inverse, #fff);
123
+ line-height: var(--fa-counter-line-height, 1);
124
+ max-width: var(--fa-counter-max-width, 5em);
125
+ min-width: var(--fa-counter-min-width, 1.5em);
126
+ overflow: hidden;
127
+ padding: var(--fa-counter-padding, 0.25em 0.5em);
128
+ right: var(--fa-right, 0);
129
+ text-overflow: ellipsis;
130
+ top: var(--fa-top, 0);
131
+ transform: scale(var(--fa-counter-scale, 0.25));
132
+ transform-origin: top right;
133
+ }
134
+
135
+ .fa-layers-bottom-right {
136
+ bottom: var(--fa-bottom, 0);
137
+ right: var(--fa-right, 0);
138
+ top: auto;
139
+ transform: scale(var(--fa-layers-scale, 0.25));
140
+ transform-origin: bottom right;
141
+ }
142
+
143
+ .fa-layers-bottom-left {
144
+ bottom: var(--fa-bottom, 0);
145
+ left: var(--fa-left, 0);
146
+ right: auto;
147
+ top: auto;
148
+ transform: scale(var(--fa-layers-scale, 0.25));
149
+ transform-origin: bottom left;
150
+ }
151
+
152
+ .fa-layers-top-right {
153
+ top: var(--fa-top, 0);
154
+ right: var(--fa-right, 0);
155
+ transform: scale(var(--fa-layers-scale, 0.25));
156
+ transform-origin: top right;
157
+ }
158
+
159
+ .fa-layers-top-left {
160
+ left: var(--fa-left, 0);
161
+ right: auto;
162
+ top: var(--fa-top, 0);
163
+ transform: scale(var(--fa-layers-scale, 0.25));
164
+ transform-origin: top left;
165
+ }
166
+
167
+ .fa-1x {
168
+ font-size: 1em;
169
+ }
170
+
171
+ .fa-2x {
172
+ font-size: 2em;
173
+ }
174
+
175
+ .fa-3x {
176
+ font-size: 3em;
177
+ }
178
+
179
+ .fa-4x {
180
+ font-size: 4em;
181
+ }
182
+
183
+ .fa-5x {
184
+ font-size: 5em;
185
+ }
186
+
187
+ .fa-6x {
188
+ font-size: 6em;
189
+ }
190
+
191
+ .fa-7x {
192
+ font-size: 7em;
193
+ }
194
+
195
+ .fa-8x {
196
+ font-size: 8em;
197
+ }
198
+
199
+ .fa-9x {
200
+ font-size: 9em;
201
+ }
202
+
203
+ .fa-10x {
204
+ font-size: 10em;
205
+ }
206
+
207
+ .fa-2xs {
208
+ font-size: calc(10 / 16 * 1em); /* converts a 10px size into an em-based value that's relative to the scale's 16px base */
209
+ line-height: calc(1 / 10 * 1em); /* sets the line-height of the icon back to that of it's parent */
210
+ vertical-align: calc((6 / 10 - 0.375) * 1em); /* vertically centers the icon taking into account the surrounding text's descender */
211
+ }
212
+
213
+ .fa-xs {
214
+ font-size: calc(12 / 16 * 1em); /* converts a 12px size into an em-based value that's relative to the scale's 16px base */
215
+ line-height: calc(1 / 12 * 1em); /* sets the line-height of the icon back to that of it's parent */
216
+ vertical-align: calc((6 / 12 - 0.375) * 1em); /* vertically centers the icon taking into account the surrounding text's descender */
217
+ }
218
+
219
+ .fa-sm {
220
+ font-size: calc(14 / 16 * 1em); /* converts a 14px size into an em-based value that's relative to the scale's 16px base */
221
+ line-height: calc(1 / 14 * 1em); /* sets the line-height of the icon back to that of it's parent */
222
+ vertical-align: calc((6 / 14 - 0.375) * 1em); /* vertically centers the icon taking into account the surrounding text's descender */
223
+ }
224
+
225
+ .fa-lg {
226
+ font-size: calc(20 / 16 * 1em); /* converts a 20px size into an em-based value that's relative to the scale's 16px base */
227
+ line-height: calc(1 / 20 * 1em); /* sets the line-height of the icon back to that of it's parent */
228
+ vertical-align: calc((6 / 20 - 0.375) * 1em); /* vertically centers the icon taking into account the surrounding text's descender */
229
+ }
230
+
231
+ .fa-xl {
232
+ font-size: calc(24 / 16 * 1em); /* converts a 24px size into an em-based value that's relative to the scale's 16px base */
233
+ line-height: calc(1 / 24 * 1em); /* sets the line-height of the icon back to that of it's parent */
234
+ vertical-align: calc((6 / 24 - 0.375) * 1em); /* vertically centers the icon taking into account the surrounding text's descender */
235
+ }
236
+
237
+ .fa-2xl {
238
+ font-size: calc(32 / 16 * 1em); /* converts a 32px size into an em-based value that's relative to the scale's 16px base */
239
+ line-height: calc(1 / 32 * 1em); /* sets the line-height of the icon back to that of it's parent */
240
+ vertical-align: calc((6 / 32 - 0.375) * 1em); /* vertically centers the icon taking into account the surrounding text's descender */
241
+ }
242
+
243
+ .fa-width-auto {
244
+ --fa-width: auto;
245
+ }
246
+
247
+ .fa-fw,
248
+ .fa-width-fixed {
249
+ --fa-width: 1.25em;
250
+ }
251
+
252
+ .fa-ul {
253
+ list-style-type: none;
254
+ margin-inline-start: var(--fa-li-margin, 2.5em);
255
+ padding-inline-start: 0;
256
+ }
257
+ .fa-ul > li {
258
+ position: relative;
259
+ }
260
+
261
+ .fa-li {
262
+ inset-inline-start: calc(-1 * var(--fa-li-width, 2em));
263
+ position: absolute;
264
+ text-align: center;
265
+ width: var(--fa-li-width, 2em);
266
+ line-height: inherit;
267
+ }
268
+
269
+ /* Heads Up: Bordered Icons will not be supported in the future!
270
+ - This feature will be deprecated in the next major release of Font Awesome (v8)!
271
+ - You may continue to use it in this version *v7), but it will not be supported in Font Awesome v8.
272
+ */
273
+ /* Notes:
274
+ * --@{v.$css-prefix}-border-width = 1/16 by default (to render as ~1px based on a 16px default font-size)
275
+ * --@{v.$css-prefix}-border-padding =
276
+ ** 3/16 for vertical padding (to give ~2px of vertical whitespace around an icon considering it's vertical alignment)
277
+ ** 4/16 for horizontal padding (to give ~4px of horizontal whitespace around an icon)
278
+ */
279
+ .fa-border {
280
+ border-color: var(--fa-border-color, #eee);
281
+ border-radius: var(--fa-border-radius, 0.1em);
282
+ border-style: var(--fa-border-style, solid);
283
+ border-width: var(--fa-border-width, 0.0625em);
284
+ box-sizing: var(--fa-border-box-sizing, content-box);
285
+ padding: var(--fa-border-padding, 0.1875em 0.25em);
286
+ }
287
+
288
+ .fa-pull-left,
289
+ .fa-pull-start {
290
+ float: inline-start;
291
+ margin-inline-end: var(--fa-pull-margin, 0.3em);
292
+ }
293
+
294
+ .fa-pull-right,
295
+ .fa-pull-end {
296
+ float: inline-end;
297
+ margin-inline-start: var(--fa-pull-margin, 0.3em);
298
+ }
299
+
300
+ .fa-beat {
301
+ animation-name: fa-beat;
302
+ animation-delay: var(--fa-animation-delay, 0s);
303
+ animation-direction: var(--fa-animation-direction, normal);
304
+ animation-duration: var(--fa-animation-duration, 1s);
305
+ animation-iteration-count: var(--fa-animation-iteration-count, infinite);
306
+ animation-timing-function: var(--fa-animation-timing, ease-in-out);
307
+ }
308
+
309
+ .fa-bounce {
310
+ animation-name: fa-bounce;
311
+ animation-delay: var(--fa-animation-delay, 0s);
312
+ animation-direction: var(--fa-animation-direction, normal);
313
+ animation-duration: var(--fa-animation-duration, 1s);
314
+ animation-iteration-count: var(--fa-animation-iteration-count, infinite);
315
+ animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.28, 0.84, 0.42, 1));
316
+ }
317
+
318
+ .fa-fade {
319
+ animation-name: fa-fade;
320
+ animation-delay: var(--fa-animation-delay, 0s);
321
+ animation-direction: var(--fa-animation-direction, normal);
322
+ animation-duration: var(--fa-animation-duration, 1s);
323
+ animation-iteration-count: var(--fa-animation-iteration-count, infinite);
324
+ animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.4, 0, 0.6, 1));
325
+ }
326
+
327
+ .fa-beat-fade {
328
+ animation-name: fa-beat-fade;
329
+ animation-delay: var(--fa-animation-delay, 0s);
330
+ animation-direction: var(--fa-animation-direction, normal);
331
+ animation-duration: var(--fa-animation-duration, 1s);
332
+ animation-iteration-count: var(--fa-animation-iteration-count, infinite);
333
+ animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.4, 0, 0.6, 1));
334
+ }
335
+
336
+ .fa-flip {
337
+ animation-name: fa-flip;
338
+ animation-delay: var(--fa-animation-delay, 0s);
339
+ animation-direction: var(--fa-animation-direction, normal);
340
+ animation-duration: var(--fa-animation-duration, 1s);
341
+ animation-iteration-count: var(--fa-animation-iteration-count, infinite);
342
+ animation-timing-function: var(--fa-animation-timing, ease-in-out);
343
+ }
344
+
345
+ .fa-shake {
346
+ animation-name: fa-shake;
347
+ animation-delay: var(--fa-animation-delay, 0s);
348
+ animation-direction: var(--fa-animation-direction, normal);
349
+ animation-duration: var(--fa-animation-duration, 1s);
350
+ animation-iteration-count: var(--fa-animation-iteration-count, infinite);
351
+ animation-timing-function: var(--fa-animation-timing, linear);
352
+ }
353
+
354
+ .fa-spin {
355
+ animation-name: fa-spin;
356
+ animation-delay: var(--fa-animation-delay, 0s);
357
+ animation-direction: var(--fa-animation-direction, normal);
358
+ animation-duration: var(--fa-animation-duration, 2s);
359
+ animation-iteration-count: var(--fa-animation-iteration-count, infinite);
360
+ animation-timing-function: var(--fa-animation-timing, linear);
361
+ }
362
+
363
+ .fa-spin-reverse {
364
+ --fa-animation-direction: reverse;
365
+ }
366
+
367
+ .fa-pulse,
368
+ .fa-spin-pulse {
369
+ animation-name: fa-spin;
370
+ animation-direction: var(--fa-animation-direction, normal);
371
+ animation-duration: var(--fa-animation-duration, 1s);
372
+ animation-iteration-count: var(--fa-animation-iteration-count, infinite);
373
+ animation-timing-function: var(--fa-animation-timing, steps(8));
374
+ }
375
+
376
+ @media (prefers-reduced-motion: reduce) {
377
+ .fa-beat,
378
+ .fa-bounce,
379
+ .fa-fade,
380
+ .fa-beat-fade,
381
+ .fa-flip,
382
+ .fa-pulse,
383
+ .fa-shake,
384
+ .fa-spin,
385
+ .fa-spin-pulse {
386
+ animation: none !important;
387
+ transition: none !important;
388
+ }
389
+ }
390
+ @keyframes fa-beat {
391
+ 0%, 90% {
392
+ transform: scale(1);
393
+ }
394
+ 45% {
395
+ transform: scale(var(--fa-beat-scale, 1.25));
396
+ }
397
+ }
398
+ @keyframes fa-bounce {
399
+ 0% {
400
+ transform: scale(1, 1) translateY(0);
401
+ }
402
+ 10% {
403
+ transform: scale(var(--fa-bounce-start-scale-x, 1.1), var(--fa-bounce-start-scale-y, 0.9)) translateY(0);
404
+ }
405
+ 30% {
406
+ transform: scale(var(--fa-bounce-jump-scale-x, 0.9), var(--fa-bounce-jump-scale-y, 1.1)) translateY(var(--fa-bounce-height, -0.5em));
407
+ }
408
+ 50% {
409
+ transform: scale(var(--fa-bounce-land-scale-x, 1.05), var(--fa-bounce-land-scale-y, 0.95)) translateY(0);
410
+ }
411
+ 57% {
412
+ transform: scale(1, 1) translateY(var(--fa-bounce-rebound, -0.125em));
413
+ }
414
+ 64% {
415
+ transform: scale(1, 1) translateY(0);
416
+ }
417
+ 100% {
418
+ transform: scale(1, 1) translateY(0);
419
+ }
420
+ }
421
+ @keyframes fa-fade {
422
+ 50% {
423
+ opacity: var(--fa-fade-opacity, 0.4);
424
+ }
425
+ }
426
+ @keyframes fa-beat-fade {
427
+ 0%, 100% {
428
+ opacity: var(--fa-beat-fade-opacity, 0.4);
429
+ transform: scale(1);
430
+ }
431
+ 50% {
432
+ opacity: 1;
433
+ transform: scale(var(--fa-beat-fade-scale, 1.125));
434
+ }
435
+ }
436
+ @keyframes fa-flip {
437
+ 50% {
438
+ transform: rotate3d(var(--fa-flip-x, 0), var(--fa-flip-y, 1), var(--fa-flip-z, 0), var(--fa-flip-angle, -180deg));
439
+ }
440
+ }
441
+ @keyframes fa-shake {
442
+ 0% {
443
+ transform: rotate(-15deg);
444
+ }
445
+ 4% {
446
+ transform: rotate(15deg);
447
+ }
448
+ 8%, 24% {
449
+ transform: rotate(-18deg);
450
+ }
451
+ 12%, 28% {
452
+ transform: rotate(18deg);
453
+ }
454
+ 16% {
455
+ transform: rotate(-22deg);
456
+ }
457
+ 20% {
458
+ transform: rotate(22deg);
459
+ }
460
+ 32% {
461
+ transform: rotate(-12deg);
462
+ }
463
+ 36% {
464
+ transform: rotate(12deg);
465
+ }
466
+ 40%, 100% {
467
+ transform: rotate(0deg);
468
+ }
469
+ }
470
+ @keyframes fa-spin {
471
+ 0% {
472
+ transform: rotate(0deg);
473
+ }
474
+ 100% {
475
+ transform: rotate(360deg);
476
+ }
477
+ }
478
+ .fa-rotate-90 {
479
+ transform: rotate(90deg);
480
+ }
481
+
482
+ .fa-rotate-180 {
483
+ transform: rotate(180deg);
484
+ }
485
+
486
+ .fa-rotate-270 {
487
+ transform: rotate(270deg);
488
+ }
489
+
490
+ .fa-flip-horizontal {
491
+ transform: scale(-1, 1);
492
+ }
493
+
494
+ .fa-flip-vertical {
495
+ transform: scale(1, -1);
496
+ }
497
+
498
+ .fa-flip-both,
499
+ .fa-flip-horizontal.fa-flip-vertical {
500
+ transform: scale(-1, -1);
501
+ }
502
+
503
+ .fa-rotate-by {
504
+ transform: rotate(var(--fa-rotate-angle, 0));
505
+ }
506
+
507
+ .svg-inline--fa .fa-primary {
508
+ fill: var(--fa-primary-color, currentColor);
509
+ opacity: var(--fa-primary-opacity, 1);
510
+ }
511
+
512
+ .svg-inline--fa .fa-secondary {
513
+ fill: var(--fa-secondary-color, currentColor);
514
+ opacity: var(--fa-secondary-opacity, 0.4);
515
+ }
516
+
517
+ .svg-inline--fa.fa-swap-opacity .fa-primary {
518
+ opacity: var(--fa-secondary-opacity, 0.4);
519
+ }
520
+
521
+ .svg-inline--fa.fa-swap-opacity .fa-secondary {
522
+ opacity: var(--fa-primary-opacity, 1);
523
+ }
524
+
525
+ .svg-inline--fa mask .fa-primary,
526
+ .svg-inline--fa mask .fa-secondary {
527
+ fill: black;
528
+ }
529
+
530
+ .svg-inline--fa.fa-inverse {
531
+ fill: var(--fa-inverse, #fff);
532
+ }
533
+
534
+ .fa-stack {
535
+ display: inline-block;
536
+ height: 2em;
537
+ line-height: 2em;
538
+ position: relative;
539
+ vertical-align: middle;
540
+ width: 2.5em;
541
+ }
542
+
543
+ .fa-inverse {
544
+ color: var(--fa-inverse, #fff);
545
+ }
546
+
547
+ .svg-inline--fa.fa-stack-1x {
548
+ --fa-width: 1.25em;
549
+ height: 1em;
550
+ width: var(--fa-width);
551
+ }
552
+ .svg-inline--fa.fa-stack-2x {
553
+ --fa-width: 2.5em;
554
+ height: 2em;
555
+ width: var(--fa-width);
556
+ }
557
+
558
+ .fa-stack-1x,
559
+ .fa-stack-2x {
560
+ inset: 0;
561
+ margin: auto;
562
+ position: absolute;
563
+ z-index: var(--fa-stack-z-index, auto);
564
+ }`;function oC(){var e=JS,t=ZS,a=Ce.cssPrefix,i=Ce.replacementClass,l=PT;if(a!==e||i!==t){var s=new RegExp("\\.".concat(e,"\\-"),"g"),u=new RegExp("\\--".concat(e,"\\-"),"g"),f=new RegExp("\\.".concat(t),"g");l=l.replace(s,".".concat(a,"-")).replace(u,"--".concat(a,"-")).replace(f,".".concat(i))}return l}var Nb=!1;function Nh(){Ce.autoAddCss&&!Nb&&(zT(oC()),Nb=!0)}var IT={mixout:function(){return{dom:{css:oC,insertCss:Nh}}},hooks:function(){return{beforeDOMElementCreation:function(){Nh()},beforeI2svg:function(){Nh()}}}},ba=ai||{};ba[ya]||(ba[ya]={});ba[ya].styles||(ba[ya].styles={});ba[ya].hooks||(ba[ya].hooks={});ba[ya].shims||(ba[ya].shims=[]);var Sr=ba[ya],lC=[],sC=function(){ft.removeEventListener("DOMContentLoaded",sC),tf=1,lC.map(function(t){return t()})},tf=!1;wa&&(tf=(ft.documentElement.doScroll?/^loaded|^c/:/^loaded|^i|^c/).test(ft.readyState),tf||ft.addEventListener("DOMContentLoaded",sC));function HT(e){wa&&(tf?setTimeout(e,0):lC.push(e))}function ec(e){var t=e.tag,a=e.attributes,i=a===void 0?{}:a,l=e.children,s=l===void 0?[]:l;return typeof e=="string"?iC(e):"<".concat(t," ").concat(MT(i),">").concat(s.map(ec).join(""),"</").concat(t,">")}function zb(e,t,a){if(e&&e[t]&&e[t][a])return{prefix:t,iconName:a,icon:e[t][a]}}var zh=function(t,a,i,l){var s=Object.keys(t),u=s.length,f=a,d,h,m;for(i===void 0?(d=1,m=t[s[0]]):(d=0,m=i);d<u;d++)h=s[d],m=f(m,t[h],h,t);return m};function cC(e){return Cr(e).length!==1?null:e.codePointAt(0).toString(16)}function Db(e){return Object.keys(e).reduce(function(t,a){var i=e[a],l=!!i.icon;return l?t[i.iconName]=i.icon:t[a]=i,t},{})}function gm(e,t){var a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},i=a.skipHooks,l=i===void 0?!1:i,s=Db(t);typeof Sr.hooks.addPack=="function"&&!l?Sr.hooks.addPack(e,Db(t)):Sr.styles[e]=fe(fe({},Sr.styles[e]||{}),s),e==="fas"&&gm("fa",t)}var Ls=Sr.styles,UT=Sr.shims,uC=Object.keys(x0),FT=uC.reduce(function(e,t){return e[t]=Object.keys(x0[t]),e},{}),E0=null,fC={},dC={},pC={},hC={},mC={};function VT(e){return~OT.indexOf(e)}function qT(e,t){var a=t.split("-"),i=a[0],l=a.slice(1).join("-");return i===e&&l!==""&&!VT(l)?l:null}var gC=function(){var t=function(s){return zh(Ls,function(u,f,d){return u[d]=zh(f,s,{}),u},{})};fC=t(function(l,s,u){if(s[3]&&(l[s[3]]=u),s[2]){var f=s[2].filter(function(d){return typeof d=="number"});f.forEach(function(d){l[d.toString(16)]=u})}return l}),dC=t(function(l,s,u){if(l[u]=u,s[2]){var f=s[2].filter(function(d){return typeof d=="string"});f.forEach(function(d){l[d]=u})}return l}),mC=t(function(l,s,u){var f=s[2];return l[u]=u,f.forEach(function(d){l[d]=u}),l});var a="far"in Ls||Ce.autoFetchSvg,i=zh(UT,function(l,s){var u=s[0],f=s[1],d=s[2];return f==="far"&&!a&&(f="fas"),typeof u=="string"&&(l.names[u]={prefix:f,iconName:d}),typeof u=="number"&&(l.unicodes[u.toString(16)]={prefix:f,iconName:d}),l},{names:{},unicodes:{}});pC=i.names,hC=i.unicodes,E0=Rf(Ce.styleDefault,{family:Ce.familyDefault})};NT(function(e){E0=Rf(e.styleDefault,{family:Ce.familyDefault})});gC();function w0(e,t){return(fC[e]||{})[t]}function YT(e,t){return(dC[e]||{})[t]}function Di(e,t){return(mC[e]||{})[t]}function vC(e){return pC[e]||{prefix:null,iconName:null}}function GT(e){var t=hC[e],a=w0("fas",e);return t||(a?{prefix:"fas",iconName:a}:null)||{prefix:null,iconName:null}}function ii(){return E0}var yC=function(){return{prefix:null,iconName:null,rest:[]}};function WT(e){var t=Xt,a=uC.reduce(function(i,l){return i[l]="".concat(Ce.cssPrefix,"-").concat(l),i},{});return WS.forEach(function(i){(e.includes(a[i])||e.some(function(l){return FT[i].includes(l)}))&&(t=i)}),t}function Rf(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},a=t.family,i=a===void 0?Xt:a,l=wT[i][e];if(i===Js&&!e)return"fad";var s=jb[i][e]||jb[i][l],u=e in Sr.styles?e:null,f=s||u||null;return f}function KT(e){var t=[],a=null;return e.forEach(function(i){var l=qT(Ce.cssPrefix,i);l?a=l:i&&t.push(i)}),{iconName:a,rest:t}}function Mb(e){return e.sort().filter(function(t,a,i){return i.indexOf(t)===a})}var Bb=XS.concat(KS);function Tf(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},a=t.skipLookups,i=a===void 0?!1:a,l=null,s=Mb(e.filter(function(w){return Bb.includes(w)})),u=Mb(e.filter(function(w){return!Bb.includes(w)})),f=s.filter(function(w){return l=w,!jS.includes(w)}),d=wf(f,1),h=d[0],m=h===void 0?null:h,v=WT(s),S=fe(fe({},KT(u)),{},{prefix:Rf(m,{family:v})});return fe(fe(fe({},S),ZT({values:e,family:v,styles:Ls,config:Ce,canonical:S,givenPrefix:l})),XT(i,l,S))}function XT(e,t,a){var i=a.prefix,l=a.iconName;if(e||!i||!l)return{prefix:i,iconName:l};var s=t==="fa"?vC(l):{},u=Di(i,l);return l=s.iconName||u||l,i=s.prefix||i,i==="far"&&!Ls.far&&Ls.fas&&!Ce.autoFetchSvg&&(i="fas"),{prefix:i,iconName:l}}var QT=WS.filter(function(e){return e!==Xt||e!==Js}),JT=Object.keys(um).filter(function(e){return e!==Xt}).map(function(e){return Object.keys(um[e])}).flat();function ZT(e){var t=e.values,a=e.family,i=e.canonical,l=e.givenPrefix,s=l===void 0?"":l,u=e.styles,f=u===void 0?{}:u,d=e.config,h=d===void 0?{}:d,m=a===Js,v=t.includes("fa-duotone")||t.includes("fad"),S=h.familyDefault==="duotone",w=i.prefix==="fad"||i.prefix==="fa-duotone";if(!m&&(v||S||w)&&(i.prefix="fad"),(t.includes("fa-brands")||t.includes("fab"))&&(i.prefix="fab"),!i.prefix&&QT.includes(a)){var x=Object.keys(f).find(function(A){return JT.includes(A)});if(x||h.autoFetchSvg){var b=gR.get(a).defaultShortPrefixId;i.prefix=b,i.iconName=Di(i.prefix,i.iconName)||i.iconName}}return(i.prefix==="fa"||s==="fa")&&(i.prefix=ii()||"fas"),i}var e$=(function(){function e(){L6(this,e),this.definitions={}}return I6(e,[{key:"add",value:function(){for(var a=this,i=arguments.length,l=new Array(i),s=0;s<i;s++)l[s]=arguments[s];var u=l.reduce(this._pullDefinitions,{});Object.keys(u).forEach(function(f){a.definitions[f]=fe(fe({},a.definitions[f]||{}),u[f]),gm(f,u[f]);var d=x0[Xt][f];d&&gm(d,u[f]),gC()})}},{key:"reset",value:function(){this.definitions={}}},{key:"_pullDefinitions",value:function(a,i){var l=i.prefix&&i.iconName&&i.icon?{0:i}:i;return Object.keys(l).map(function(s){var u=l[s],f=u.prefix,d=u.iconName,h=u.icon,m=h[2];a[f]||(a[f]={}),m.length>0&&m.forEach(function(v){typeof v=="string"&&(a[f][v]=h)}),a[f][d]=h}),a}}])})(),Lb=[],Qo={},Jo={},t$=Object.keys(Jo);function n$(e,t){var a=t.mixoutsTo;return Lb=e,Qo={},Object.keys(Jo).forEach(function(i){t$.indexOf(i)===-1&&delete Jo[i]}),Lb.forEach(function(i){var l=i.mixout?i.mixout():{};if(Object.keys(l).forEach(function(u){typeof l[u]=="function"&&(a[u]=l[u]),ef(l[u])==="object"&&Object.keys(l[u]).forEach(function(f){a[u]||(a[u]={}),a[u][f]=l[u][f]})}),i.hooks){var s=i.hooks();Object.keys(s).forEach(function(u){Qo[u]||(Qo[u]=[]),Qo[u].push(s[u])})}i.provides&&i.provides(Jo)}),a}function vm(e,t){for(var a=arguments.length,i=new Array(a>2?a-2:0),l=2;l<a;l++)i[l-2]=arguments[l];var s=Qo[e]||[];return s.forEach(function(u){t=u.apply(null,[t].concat(i))}),t}function Yi(e){for(var t=arguments.length,a=new Array(t>1?t-1:0),i=1;i<t;i++)a[i-1]=arguments[i];var l=Qo[e]||[];l.forEach(function(s){s.apply(null,a)})}function oi(){var e=arguments[0],t=Array.prototype.slice.call(arguments,1);return Jo[e]?Jo[e].apply(null,t):void 0}function ym(e){e.prefix==="fa"&&(e.prefix="fas");var t=e.iconName,a=e.prefix||ii();if(t)return t=Di(a,t)||t,zb(bC.definitions,a,t)||zb(Sr.styles,a,t)}var bC=new e$,r$=function(){Ce.autoReplaceSvg=!1,Ce.observeMutations=!1,Yi("noAuto")},a$={i2svg:function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return wa?(Yi("beforeI2svg",t),oi("pseudoElements2svg",t),oi("i2svg",t)):Promise.reject(new Error("Operation requires a DOM of some kind."))},watch:function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},a=t.autoReplaceSvgRoot;Ce.autoReplaceSvg===!1&&(Ce.autoReplaceSvg=!0),Ce.observeMutations=!0,HT(function(){o$({autoReplaceSvgRoot:a}),Yi("watch",t)})}},i$={icon:function(t){if(t===null)return null;if(ef(t)==="object"&&t.prefix&&t.iconName)return{prefix:t.prefix,iconName:Di(t.prefix,t.iconName)||t.iconName};if(Array.isArray(t)&&t.length===2){var a=t[1].indexOf("fa-")===0?t[1].slice(3):t[1],i=Rf(t[0]);return{prefix:i,iconName:Di(i,a)||a}}if(typeof t=="string"&&(t.indexOf("".concat(Ce.cssPrefix,"-"))>-1||t.match(AT))){var l=Tf(t.split(" "),{skipLookups:!0});return{prefix:l.prefix||ii(),iconName:Di(l.prefix,l.iconName)||l.iconName}}if(typeof t=="string"){var s=ii();return{prefix:s,iconName:Di(s,t)||t}}}},In={noAuto:r$,config:Ce,dom:a$,parse:i$,library:bC,findIconDefinition:ym,toHtml:ec},o$=function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},a=t.autoReplaceSvgRoot,i=a===void 0?ft:a;(Object.keys(Sr.styles).length>0||Ce.autoFetchSvg)&&wa&&Ce.autoReplaceSvg&&In.dom.i2svg({node:i})};function $f(e,t){return Object.defineProperty(e,"abstract",{get:t}),Object.defineProperty(e,"html",{get:function(){return e.abstract.map(function(i){return ec(i)})}}),Object.defineProperty(e,"node",{get:function(){if(wa){var i=ft.createElement("div");return i.innerHTML=e.html,i.children}}}),e}function l$(e){var t=e.children,a=e.main,i=e.mask,l=e.attributes,s=e.styles,u=e.transform;if(C0(u)&&a.found&&!i.found){var f=a.width,d=a.height,h={x:f/d/2,y:.5};l.style=Af(fe(fe({},s),{},{"transform-origin":"".concat(h.x+u.x/16,"em ").concat(h.y+u.y/16,"em")}))}return[{tag:"svg",attributes:l,children:t}]}function s$(e){var t=e.prefix,a=e.iconName,i=e.children,l=e.attributes,s=e.symbol,u=s===!0?"".concat(t,"-").concat(Ce.cssPrefix,"-").concat(a):s;return[{tag:"svg",attributes:{style:"display: none;"},children:[{tag:"symbol",attributes:fe(fe({},l),{},{id:u}),children:i}]}]}function c$(e){var t=["aria-label","aria-labelledby","title","role"];return t.some(function(a){return a in e})}function A0(e){var t=e.icons,a=t.main,i=t.mask,l=e.prefix,s=e.iconName,u=e.transform,f=e.symbol,d=e.maskId,h=e.extra,m=e.watchable,v=m===void 0?!1:m,S=i.found?i:a,w=S.width,x=S.height,b=[Ce.replacementClass,s?"".concat(Ce.cssPrefix,"-").concat(s):""].filter(function(T){return h.classes.indexOf(T)===-1}).filter(function(T){return T!==""||!!T}).concat(h.classes).join(" "),A={children:[],attributes:fe(fe({},h.attributes),{},{"data-prefix":l,"data-icon":s,class:b,role:h.attributes.role||"img",viewBox:"0 0 ".concat(w," ").concat(x)})};!c$(h.attributes)&&!h.attributes["aria-hidden"]&&(A.attributes["aria-hidden"]="true"),v&&(A.attributes[qi]="");var j=fe(fe({},A),{},{prefix:l,iconName:s,main:a,mask:i,maskId:d,transform:u,symbol:f,styles:fe({},h.styles)}),_=i.found&&a.found?oi("generateAbstractMask",j)||{children:[],attributes:{}}:oi("generateAbstractIcon",j)||{children:[],attributes:{}},R=_.children,N=_.attributes;return j.children=R,j.attributes=N,f?s$(j):l$(j)}function Pb(e){var t=e.content,a=e.width,i=e.height,l=e.transform,s=e.extra,u=e.watchable,f=u===void 0?!1:u,d=fe(fe({},s.attributes),{},{class:s.classes.join(" ")});f&&(d[qi]="");var h=fe({},s.styles);C0(l)&&(h.transform=LT({transform:l,width:a,height:i}),h["-webkit-transform"]=h.transform);var m=Af(h);m.length>0&&(d.style=m);var v=[];return v.push({tag:"span",attributes:d,children:[t]}),v}function u$(e){var t=e.content,a=e.extra,i=fe(fe({},a.attributes),{},{class:a.classes.join(" ")}),l=Af(a.styles);l.length>0&&(i.style=l);var s=[];return s.push({tag:"span",attributes:i,children:[t]}),s}var Dh=Sr.styles;function bm(e){var t=e[0],a=e[1],i=e.slice(4),l=wf(i,1),s=l[0],u=null;return Array.isArray(s)?u={tag:"g",attributes:{class:"".concat(Ce.cssPrefix,"-").concat(kh.GROUP)},children:[{tag:"path",attributes:{class:"".concat(Ce.cssPrefix,"-").concat(kh.SECONDARY),fill:"currentColor",d:s[0]}},{tag:"path",attributes:{class:"".concat(Ce.cssPrefix,"-").concat(kh.PRIMARY),fill:"currentColor",d:s[1]}}]}:u={tag:"path",attributes:{fill:"currentColor",d:s}},{found:!0,width:t,height:a,icon:u}}var f$={found:!1,width:512,height:512};function d$(e,t){!tC&&!Ce.showMissingIcons&&e&&console.error('Icon with name "'.concat(e,'" and prefix "').concat(t,'" is missing.'))}function xm(e,t){var a=t;return t==="fa"&&Ce.styleDefault!==null&&(t=ii()),new Promise(function(i,l){if(a==="fa"){var s=vC(e)||{};e=s.iconName||e,t=s.prefix||t}if(e&&t&&Dh[t]&&Dh[t][e]){var u=Dh[t][e];return i(bm(u))}d$(e,t),i(fe(fe({},f$),{},{icon:Ce.showMissingIcons&&e?oi("missingIconAbstract")||{}:{}}))})}var Ib=function(){},Sm=Ce.measurePerformance&&Tu&&Tu.mark&&Tu.measure?Tu:{mark:Ib,measure:Ib},Ss='FA "7.1.0"',p$=function(t){return Sm.mark("".concat(Ss," ").concat(t," begins")),function(){return xC(t)}},xC=function(t){Sm.mark("".concat(Ss," ").concat(t," ends")),Sm.measure("".concat(Ss," ").concat(t),"".concat(Ss," ").concat(t," begins"),"".concat(Ss," ").concat(t," ends"))},R0={begin:p$,end:xC},Lu=function(){};function Hb(e){var t=e.getAttribute?e.getAttribute(qi):null;return typeof t=="string"}function h$(e){var t=e.getAttribute?e.getAttribute(y0):null,a=e.getAttribute?e.getAttribute(b0):null;return t&&a}function m$(e){return e&&e.classList&&e.classList.contains&&e.classList.contains(Ce.replacementClass)}function g$(){if(Ce.autoReplaceSvg===!0)return Pu.replace;var e=Pu[Ce.autoReplaceSvg];return e||Pu.replace}function v$(e){return ft.createElementNS("http://www.w3.org/2000/svg",e)}function y$(e){return ft.createElement(e)}function SC(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},a=t.ceFn,i=a===void 0?e.tag==="svg"?v$:y$:a;if(typeof e=="string")return ft.createTextNode(e);var l=i(e.tag);Object.keys(e.attributes||[]).forEach(function(u){l.setAttribute(u,e.attributes[u])});var s=e.children||[];return s.forEach(function(u){l.appendChild(SC(u,{ceFn:i}))}),l}function b$(e){var t=" ".concat(e.outerHTML," ");return t="".concat(t,"Font Awesome fontawesome.com "),t}var Pu={replace:function(t){var a=t[0];if(a.parentNode)if(t[1].forEach(function(l){a.parentNode.insertBefore(SC(l),a)}),a.getAttribute(qi)===null&&Ce.keepOriginalSource){var i=ft.createComment(b$(a));a.parentNode.replaceChild(i,a)}else a.remove()},nest:function(t){var a=t[0],i=t[1];if(~S0(a).indexOf(Ce.replacementClass))return Pu.replace(t);var l=new RegExp("".concat(Ce.cssPrefix,"-.*"));if(delete i[0].attributes.id,i[0].attributes.class){var s=i[0].attributes.class.split(" ").reduce(function(f,d){return d===Ce.replacementClass||d.match(l)?f.toSvg.push(d):f.toNode.push(d),f},{toNode:[],toSvg:[]});i[0].attributes.class=s.toSvg.join(" "),s.toNode.length===0?a.removeAttribute("class"):a.setAttribute("class",s.toNode.join(" "))}var u=i.map(function(f){return ec(f)}).join(`
565
+ `);a.setAttribute(qi,""),a.innerHTML=u}};function Ub(e){e()}function CC(e,t){var a=typeof t=="function"?t:Lu;if(e.length===0)a();else{var i=Ub;Ce.mutateApproach===CT&&(i=ai.requestAnimationFrame||Ub),i(function(){var l=g$(),s=R0.begin("mutate");e.map(l),s(),a()})}}var T0=!1;function EC(){T0=!0}function Cm(){T0=!1}var nf=null;function Fb(e){if(Tb&&Ce.observeMutations){var t=e.treeCallback,a=t===void 0?Lu:t,i=e.nodeCallback,l=i===void 0?Lu:i,s=e.pseudoElementsCallback,u=s===void 0?Lu:s,f=e.observeMutationsRoot,d=f===void 0?ft:f;nf=new Tb(function(h){if(!T0){var m=ii();pl(h).forEach(function(v){if(v.type==="childList"&&v.addedNodes.length>0&&!Hb(v.addedNodes[0])&&(Ce.searchPseudoElements&&u(v.target),a(v.target)),v.type==="attributes"&&v.target.parentNode&&Ce.searchPseudoElements&&u([v.target],!0),v.type==="attributes"&&Hb(v.target)&&~$T.indexOf(v.attributeName))if(v.attributeName==="class"&&h$(v.target)){var S=Tf(S0(v.target)),w=S.prefix,x=S.iconName;v.target.setAttribute(y0,w||m),x&&v.target.setAttribute(b0,x)}else m$(v.target)&&l(v.target)})}}),wa&&nf.observe(d,{childList:!0,attributes:!0,characterData:!0,subtree:!0})}}function x$(){nf&&nf.disconnect()}function S$(e){var t=e.getAttribute("style"),a=[];return t&&(a=t.split(";").reduce(function(i,l){var s=l.split(":"),u=s[0],f=s.slice(1);return u&&f.length>0&&(i[u]=f.join(":").trim()),i},{})),a}function C$(e){var t=e.getAttribute("data-prefix"),a=e.getAttribute("data-icon"),i=e.innerText!==void 0?e.innerText.trim():"",l=Tf(S0(e));return l.prefix||(l.prefix=ii()),t&&a&&(l.prefix=t,l.iconName=a),l.iconName&&l.prefix||(l.prefix&&i.length>0&&(l.iconName=YT(l.prefix,e.innerText)||w0(l.prefix,cC(e.innerText))),!l.iconName&&Ce.autoFetchSvg&&e.firstChild&&e.firstChild.nodeType===Node.TEXT_NODE&&(l.iconName=e.firstChild.data)),l}function E$(e){var t=pl(e.attributes).reduce(function(a,i){return a.name!=="class"&&a.name!=="style"&&(a[i.name]=i.value),a},{});return t}function w$(){return{iconName:null,prefix:null,transform:Mr,symbol:!1,mask:{iconName:null,prefix:null,rest:[]},maskId:null,extra:{classes:[],styles:{},attributes:{}}}}function Vb(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{styleParser:!0},a=C$(e),i=a.iconName,l=a.prefix,s=a.rest,u=E$(e),f=vm("parseNodeAttributes",{},e),d=t.styleParser?S$(e):[];return fe({iconName:i,prefix:l,transform:Mr,mask:{iconName:null,prefix:null,rest:[]},maskId:null,symbol:!1,extra:{classes:s,styles:d,attributes:u}},f)}var A$=Sr.styles;function wC(e){var t=Ce.autoReplaceSvg==="nest"?Vb(e,{styleParser:!1}):Vb(e);return~t.extra.classes.indexOf(rC)?oi("generateLayersText",e,t):oi("generateSvgReplacementMutation",e,t)}function R$(){return[].concat(Cr(KS),Cr(XS))}function qb(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;if(!wa)return Promise.resolve();var a=ft.documentElement.classList,i=function(v){return a.add("".concat(_b,"-").concat(v))},l=function(v){return a.remove("".concat(_b,"-").concat(v))},s=Ce.autoFetchSvg?R$():jS.concat(Object.keys(A$));s.includes("fa")||s.push("fa");var u=[".".concat(rC,":not([").concat(qi,"])")].concat(s.map(function(m){return".".concat(m,":not([").concat(qi,"])")})).join(", ");if(u.length===0)return Promise.resolve();var f=[];try{f=pl(e.querySelectorAll(u))}catch{}if(f.length>0)i("pending"),l("complete");else return Promise.resolve();var d=R0.begin("onTree"),h=f.reduce(function(m,v){try{var S=wC(v);S&&m.push(S)}catch(w){tC||w.name==="MissingIcon"&&console.error(w)}return m},[]);return new Promise(function(m,v){Promise.all(h).then(function(S){CC(S,function(){i("active"),i("complete"),l("pending"),typeof t=="function"&&t(),d(),m()})}).catch(function(S){d(),v(S)})})}function T$(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;wC(e).then(function(a){a&&CC([a],t)})}function $$(e){return function(t){var a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i=(t||{}).icon?t:ym(t||{}),l=a.mask;return l&&(l=(l||{}).icon?l:ym(l||{})),e(i,fe(fe({},a),{},{mask:l}))}}var O$=function(t){var a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i=a.transform,l=i===void 0?Mr:i,s=a.symbol,u=s===void 0?!1:s,f=a.mask,d=f===void 0?null:f,h=a.maskId,m=h===void 0?null:h,v=a.classes,S=v===void 0?[]:v,w=a.attributes,x=w===void 0?{}:w,b=a.styles,A=b===void 0?{}:b;if(t){var j=t.prefix,_=t.iconName,R=t.icon;return $f(fe({type:"icon"},t),function(){return Yi("beforeDOMElementCreation",{iconDefinition:t,params:a}),A0({icons:{main:bm(R),mask:d?bm(d.icon):{found:!1,width:null,height:null,icon:{}}},prefix:j,iconName:_,transform:fe(fe({},Mr),l),symbol:u,maskId:m,extra:{attributes:x,styles:A,classes:S}})})}},_$={mixout:function(){return{icon:$$(O$)}},hooks:function(){return{mutationObserverCallbacks:function(a){return a.treeCallback=qb,a.nodeCallback=T$,a}}},provides:function(t){t.i2svg=function(a){var i=a.node,l=i===void 0?ft:i,s=a.callback,u=s===void 0?function(){}:s;return qb(l,u)},t.generateSvgReplacementMutation=function(a,i){var l=i.iconName,s=i.prefix,u=i.transform,f=i.symbol,d=i.mask,h=i.maskId,m=i.extra;return new Promise(function(v,S){Promise.all([xm(l,s),d.iconName?xm(d.iconName,d.prefix):Promise.resolve({found:!1,width:512,height:512,icon:{}})]).then(function(w){var x=wf(w,2),b=x[0],A=x[1];v([a,A0({icons:{main:b,mask:A},prefix:s,iconName:l,transform:u,symbol:f,maskId:h,extra:m,watchable:!0})])}).catch(S)})},t.generateAbstractIcon=function(a){var i=a.children,l=a.attributes,s=a.main,u=a.transform,f=a.styles,d=Af(f);d.length>0&&(l.style=d);var h;return C0(u)&&(h=oi("generateAbstractTransformGrouping",{main:s,transform:u,containerWidth:s.width,iconWidth:s.width})),i.push(h||s.icon),{children:i,attributes:l}}}},j$={mixout:function(){return{layer:function(a){var i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},l=i.classes,s=l===void 0?[]:l;return $f({type:"layer"},function(){Yi("beforeDOMElementCreation",{assembler:a,params:i});var u=[];return a(function(f){Array.isArray(f)?f.map(function(d){u=u.concat(d.abstract)}):u=u.concat(f.abstract)}),[{tag:"span",attributes:{class:["".concat(Ce.cssPrefix,"-layers")].concat(Cr(s)).join(" ")},children:u}]})}}}},k$={mixout:function(){return{counter:function(a){var i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};i.title;var l=i.classes,s=l===void 0?[]:l,u=i.attributes,f=u===void 0?{}:u,d=i.styles,h=d===void 0?{}:d;return $f({type:"counter",content:a},function(){return Yi("beforeDOMElementCreation",{content:a,params:i}),u$({content:a.toString(),extra:{attributes:f,styles:h,classes:["".concat(Ce.cssPrefix,"-layers-counter")].concat(Cr(s))}})})}}}},N$={mixout:function(){return{text:function(a){var i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},l=i.transform,s=l===void 0?Mr:l,u=i.classes,f=u===void 0?[]:u,d=i.attributes,h=d===void 0?{}:d,m=i.styles,v=m===void 0?{}:m;return $f({type:"text",content:a},function(){return Yi("beforeDOMElementCreation",{content:a,params:i}),Pb({content:a,transform:fe(fe({},Mr),s),extra:{attributes:h,styles:v,classes:["".concat(Ce.cssPrefix,"-layers-text")].concat(Cr(f))}})})}}},provides:function(t){t.generateLayersText=function(a,i){var l=i.transform,s=i.extra,u=null,f=null;if(OS){var d=parseInt(getComputedStyle(a).fontSize,10),h=a.getBoundingClientRect();u=h.width/d,f=h.height/d}return Promise.resolve([a,Pb({content:a.innerHTML,width:u,height:f,transform:l,extra:s,watchable:!0})])}}},AC=new RegExp('"',"ug"),Yb=[1105920,1112319],Gb=fe(fe(fe(fe({},{FontAwesome:{normal:"fas",400:"fas"}}),mR),xT),wR),Em=Object.keys(Gb).reduce(function(e,t){return e[t.toLowerCase()]=Gb[t],e},{}),z$=Object.keys(Em).reduce(function(e,t){var a=Em[t];return e[t]=a[900]||Cr(Object.entries(a))[0][1],e},{});function D$(e){var t=e.replace(AC,"");return cC(Cr(t)[0]||"")}function M$(e){var t=e.getPropertyValue("font-feature-settings").includes("ss01"),a=e.getPropertyValue("content"),i=a.replace(AC,""),l=i.codePointAt(0),s=l>=Yb[0]&&l<=Yb[1],u=i.length===2?i[0]===i[1]:!1;return s||u||t}function B$(e,t){var a=e.replace(/^['"]|['"]$/g,"").toLowerCase(),i=parseInt(t),l=isNaN(i)?"normal":i;return(Em[a]||{})[l]||z$[a]}function Wb(e,t){var a="".concat(ST).concat(t.replace(":","-"));return new Promise(function(i,l){if(e.getAttribute(a)!==null)return i();var s=pl(e.children),u=s.filter(function(z){return z.getAttribute(dm)===t})[0],f=ai.getComputedStyle(e,t),d=f.getPropertyValue("font-family"),h=d.match(RT),m=f.getPropertyValue("font-weight"),v=f.getPropertyValue("content");if(u&&!h)return e.removeChild(u),i();if(h&&v!=="none"&&v!==""){var S=f.getPropertyValue("content"),w=B$(d,m),x=D$(S),b=h[0].startsWith("FontAwesome"),A=M$(f),j=w0(w,x),_=j;if(b){var R=GT(x);R.iconName&&R.prefix&&(j=R.iconName,w=R.prefix)}if(j&&!A&&(!u||u.getAttribute(y0)!==w||u.getAttribute(b0)!==_)){e.setAttribute(a,_),u&&e.removeChild(u);var N=w$(),T=N.extra;T.attributes[dm]=t,xm(j,w).then(function(z){var D=A0(fe(fe({},N),{},{icons:{main:z,mask:yC()},prefix:w,iconName:_,extra:T,watchable:!0})),V=ft.createElementNS("http://www.w3.org/2000/svg","svg");t==="::before"?e.insertBefore(V,e.firstChild):e.appendChild(V),V.outerHTML=D.map(function(Q){return ec(Q)}).join(`
566
+ `),e.removeAttribute(a),i()}).catch(l)}else i()}else i()})}function L$(e){return Promise.all([Wb(e,"::before"),Wb(e,"::after")])}function P$(e){return e.parentNode!==document.head&&!~ET.indexOf(e.tagName.toUpperCase())&&!e.getAttribute(dm)&&(!e.parentNode||e.parentNode.tagName!=="svg")}var I$=function(t){return!!t&&eC.some(function(a){return t.includes(a)})},H$=function(t){if(!t)return[];var a=new Set,i=t.split(/,(?![^()]*\))/).map(function(d){return d.trim()});i=i.flatMap(function(d){return d.includes("(")?d:d.split(",").map(function(h){return h.trim()})});var l=Bu(i),s;try{for(l.s();!(s=l.n()).done;){var u=s.value;if(I$(u)){var f=eC.reduce(function(d,h){return d.replace(h,"")},u);f!==""&&f!=="*"&&a.add(f)}}}catch(d){l.e(d)}finally{l.f()}return a};function Kb(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if(wa){var a;if(t)a=e;else if(Ce.searchPseudoElementsFullScan)a=e.querySelectorAll("*");else{var i=new Set,l=Bu(document.styleSheets),s;try{for(l.s();!(s=l.n()).done;){var u=s.value;try{var f=Bu(u.cssRules),d;try{for(f.s();!(d=f.n()).done;){var h=d.value,m=H$(h.selectorText),v=Bu(m),S;try{for(v.s();!(S=v.n()).done;){var w=S.value;i.add(w)}}catch(b){v.e(b)}finally{v.f()}}}catch(b){f.e(b)}finally{f.f()}}catch(b){Ce.searchPseudoElementsWarnings&&console.warn("Font Awesome: cannot parse stylesheet: ".concat(u.href," (").concat(b.message,`)
567
+ If it declares any Font Awesome CSS pseudo-elements, they will not be rendered as SVG icons. Add crossorigin="anonymous" to the <link>, enable searchPseudoElementsFullScan for slower but more thorough DOM parsing, or suppress this warning by setting searchPseudoElementsWarnings to false.`))}}}catch(b){l.e(b)}finally{l.f()}if(!i.size)return;var x=Array.from(i).join(", ");try{a=e.querySelectorAll(x)}catch{}}return new Promise(function(b,A){var j=pl(a).filter(P$).map(L$),_=R0.begin("searchPseudoElements");EC(),Promise.all(j).then(function(){_(),Cm(),b()}).catch(function(){_(),Cm(),A()})})}}var U$={hooks:function(){return{mutationObserverCallbacks:function(a){return a.pseudoElementsCallback=Kb,a}}},provides:function(t){t.pseudoElements2svg=function(a){var i=a.node,l=i===void 0?ft:i;Ce.searchPseudoElements&&Kb(l)}}},Xb=!1,F$={mixout:function(){return{dom:{unwatch:function(){EC(),Xb=!0}}}},hooks:function(){return{bootstrap:function(){Fb(vm("mutationObserverCallbacks",{}))},noAuto:function(){x$()},watch:function(a){var i=a.observeMutationsRoot;Xb?Cm():Fb(vm("mutationObserverCallbacks",{observeMutationsRoot:i}))}}}},Qb=function(t){var a={size:16,x:0,y:0,flipX:!1,flipY:!1,rotate:0};return t.toLowerCase().split(" ").reduce(function(i,l){var s=l.toLowerCase().split("-"),u=s[0],f=s.slice(1).join("-");if(u&&f==="h")return i.flipX=!0,i;if(u&&f==="v")return i.flipY=!0,i;if(f=parseFloat(f),isNaN(f))return i;switch(u){case"grow":i.size=i.size+f;break;case"shrink":i.size=i.size-f;break;case"left":i.x=i.x-f;break;case"right":i.x=i.x+f;break;case"up":i.y=i.y-f;break;case"down":i.y=i.y+f;break;case"rotate":i.rotate=i.rotate+f;break}return i},a)},V$={mixout:function(){return{parse:{transform:function(a){return Qb(a)}}}},hooks:function(){return{parseNodeAttributes:function(a,i){var l=i.getAttribute("data-fa-transform");return l&&(a.transform=Qb(l)),a}}},provides:function(t){t.generateAbstractTransformGrouping=function(a){var i=a.main,l=a.transform,s=a.containerWidth,u=a.iconWidth,f={transform:"translate(".concat(s/2," 256)")},d="translate(".concat(l.x*32,", ").concat(l.y*32,") "),h="scale(".concat(l.size/16*(l.flipX?-1:1),", ").concat(l.size/16*(l.flipY?-1:1),") "),m="rotate(".concat(l.rotate," 0 0)"),v={transform:"".concat(d," ").concat(h," ").concat(m)},S={transform:"translate(".concat(u/2*-1," -256)")},w={outer:f,inner:v,path:S};return{tag:"g",attributes:fe({},w.outer),children:[{tag:"g",attributes:fe({},w.inner),children:[{tag:i.icon.tag,children:i.icon.children,attributes:fe(fe({},i.icon.attributes),w.path)}]}]}}}},Mh={x:0,y:0,width:"100%",height:"100%"};function Jb(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;return e.attributes&&(e.attributes.fill||t)&&(e.attributes.fill="black"),e}function q$(e){return e.tag==="g"?e.children:[e]}var Y$={hooks:function(){return{parseNodeAttributes:function(a,i){var l=i.getAttribute("data-fa-mask"),s=l?Tf(l.split(" ").map(function(u){return u.trim()})):yC();return s.prefix||(s.prefix=ii()),a.mask=s,a.maskId=i.getAttribute("data-fa-mask-id"),a}}},provides:function(t){t.generateAbstractMask=function(a){var i=a.children,l=a.attributes,s=a.main,u=a.mask,f=a.maskId,d=a.transform,h=s.width,m=s.icon,v=u.width,S=u.icon,w=BT({transform:d,containerWidth:v,iconWidth:h}),x={tag:"rect",attributes:fe(fe({},Mh),{},{fill:"white"})},b=m.children?{children:m.children.map(Jb)}:{},A={tag:"g",attributes:fe({},w.inner),children:[Jb(fe({tag:m.tag,attributes:fe(fe({},m.attributes),w.path)},b))]},j={tag:"g",attributes:fe({},w.outer),children:[A]},_="mask-".concat(f||kb()),R="clip-".concat(f||kb()),N={tag:"mask",attributes:fe(fe({},Mh),{},{id:_,maskUnits:"userSpaceOnUse",maskContentUnits:"userSpaceOnUse"}),children:[x,j]},T={tag:"defs",children:[{tag:"clipPath",attributes:{id:R},children:q$(S)},N]};return i.push(T,{tag:"rect",attributes:fe({fill:"currentColor","clip-path":"url(#".concat(R,")"),mask:"url(#".concat(_,")")},Mh)}),{children:i,attributes:l}}}},G$={provides:function(t){var a=!1;ai.matchMedia&&(a=ai.matchMedia("(prefers-reduced-motion: reduce)").matches),t.missingIconAbstract=function(){var i=[],l={fill:"currentColor"},s={attributeType:"XML",repeatCount:"indefinite",dur:"2s"};i.push({tag:"path",attributes:fe(fe({},l),{},{d:"M156.5,447.7l-12.6,29.5c-18.7-9.5-35.9-21.2-51.5-34.9l22.7-22.7C127.6,430.5,141.5,440,156.5,447.7z M40.6,272H8.5 c1.4,21.2,5.4,41.7,11.7,61.1L50,321.2C45.1,305.5,41.8,289,40.6,272z M40.6,240c1.4-18.8,5.2-37,11.1-54.1l-29.5-12.6 C14.7,194.3,10,216.7,8.5,240H40.6z M64.3,156.5c7.8-14.9,17.2-28.8,28.1-41.5L69.7,92.3c-13.7,15.6-25.5,32.8-34.9,51.5 L64.3,156.5z M397,419.6c-13.9,12-29.4,22.3-46.1,30.4l11.9,29.8c20.7-9.9,39.8-22.6,56.9-37.6L397,419.6z M115,92.4 c13.9-12,29.4-22.3,46.1-30.4l-11.9-29.8c-20.7,9.9-39.8,22.6-56.8,37.6L115,92.4z M447.7,355.5c-7.8,14.9-17.2,28.8-28.1,41.5 l22.7,22.7c13.7-15.6,25.5-32.9,34.9-51.5L447.7,355.5z M471.4,272c-1.4,18.8-5.2,37-11.1,54.1l29.5,12.6 c7.5-21.1,12.2-43.5,13.6-66.8H471.4z M321.2,462c-15.7,5-32.2,8.2-49.2,9.4v32.1c21.2-1.4,41.7-5.4,61.1-11.7L321.2,462z M240,471.4c-18.8-1.4-37-5.2-54.1-11.1l-12.6,29.5c21.1,7.5,43.5,12.2,66.8,13.6V471.4z M462,190.8c5,15.7,8.2,32.2,9.4,49.2h32.1 c-1.4-21.2-5.4-41.7-11.7-61.1L462,190.8z M92.4,397c-12-13.9-22.3-29.4-30.4-46.1l-29.8,11.9c9.9,20.7,22.6,39.8,37.6,56.9 L92.4,397z M272,40.6c18.8,1.4,36.9,5.2,54.1,11.1l12.6-29.5C317.7,14.7,295.3,10,272,8.5V40.6z M190.8,50 c15.7-5,32.2-8.2,49.2-9.4V8.5c-21.2,1.4-41.7,5.4-61.1,11.7L190.8,50z M442.3,92.3L419.6,115c12,13.9,22.3,29.4,30.5,46.1 l29.8-11.9C470,128.5,457.3,109.4,442.3,92.3z M397,92.4l22.7-22.7c-15.6-13.7-32.8-25.5-51.5-34.9l-12.6,29.5 C370.4,72.1,384.4,81.5,397,92.4z"})});var u=fe(fe({},s),{},{attributeName:"opacity"}),f={tag:"circle",attributes:fe(fe({},l),{},{cx:"256",cy:"364",r:"28"}),children:[]};return a||f.children.push({tag:"animate",attributes:fe(fe({},s),{},{attributeName:"r",values:"28;14;28;28;14;28;"})},{tag:"animate",attributes:fe(fe({},u),{},{values:"1;0;1;1;0;1;"})}),i.push(f),i.push({tag:"path",attributes:fe(fe({},l),{},{opacity:"1",d:"M263.7,312h-16c-6.6,0-12-5.4-12-12c0-71,77.4-63.9,77.4-107.8c0-20-17.8-40.2-57.4-40.2c-29.1,0-44.3,9.6-59.2,28.7 c-3.9,5-11.1,6-16.2,2.4l-13.1-9.2c-5.6-3.9-6.9-11.8-2.6-17.2c21.2-27.2,46.4-44.7,91.2-44.7c52.3,0,97.4,29.8,97.4,80.2 c0,67.6-77.4,63.5-77.4,107.8C275.7,306.6,270.3,312,263.7,312z"}),children:a?[]:[{tag:"animate",attributes:fe(fe({},u),{},{values:"1;0;0;0;0;1;"})}]}),a||i.push({tag:"path",attributes:fe(fe({},l),{},{opacity:"0",d:"M232.5,134.5l7,168c0.3,6.4,5.6,11.5,12,11.5h9c6.4,0,11.7-5.1,12-11.5l7-168c0.3-6.8-5.2-12.5-12-12.5h-23 C237.7,122,232.2,127.7,232.5,134.5z"}),children:[{tag:"animate",attributes:fe(fe({},u),{},{values:"0;0;1;1;0;0;"})}]}),{tag:"g",attributes:{class:"missing"},children:i}}}},W$={hooks:function(){return{parseNodeAttributes:function(a,i){var l=i.getAttribute("data-fa-symbol"),s=l===null?!1:l===""?!0:l;return a.symbol=s,a}}}},K$=[IT,_$,j$,k$,N$,U$,F$,V$,Y$,G$,W$];n$(K$,{mixoutsTo:In});In.noAuto;var Ps=In.config;In.library;In.dom;var RC=In.parse;In.findIconDefinition;In.toHtml;var X$=In.icon;In.layer;In.text;In.counter;function Q$(e){return e=e-0,e===e}function TC(e){return Q$(e)?e:(e=e.replace(/[_-]+(.)?/g,(t,a)=>a?a.toUpperCase():""),e.charAt(0).toLowerCase()+e.slice(1))}function J$(e){return e.charAt(0).toUpperCase()+e.slice(1)}var Uo=new Map,Z$=1e3;function eO(e){if(Uo.has(e))return Uo.get(e);const t={};let a=0;const i=e.length;for(;a<i;){const l=e.indexOf(";",a),s=l===-1?i:l,u=e.slice(a,s).trim();if(u){const f=u.indexOf(":");if(f>0){const d=u.slice(0,f).trim(),h=u.slice(f+1).trim();if(d&&h){const m=TC(d);t[m.startsWith("webkit")?J$(m):m]=h}}}a=s+1}if(Uo.size===Z$){const l=Uo.keys().next().value;l&&Uo.delete(l)}return Uo.set(e,t),t}function $C(e,t,a={}){if(typeof t=="string")return t;const i=(t.children||[]).map(m=>$C(e,m)),l=t.attributes||{},s={};for(const[m,v]of Object.entries(l))switch(!0){case m==="class":{s.className=v;break}case m==="style":{s.style=eO(String(v));break}case m.startsWith("aria-"):case m.startsWith("data-"):{s[m.toLowerCase()]=v;break}default:s[TC(m)]=v}const{style:u,role:f,"aria-label":d,...h}=a;return u&&(s.style=s.style?{...s.style,...u}:u),f&&(s.role=f),d&&(s["aria-label"]=d,s["aria-hidden"]="false"),e(t.tag,{...h,...s},...i)}var tO=$C.bind(null,ni.createElement),Zb=(e,t)=>{const a=C.useId();return e||(t?a:void 0)},nO=class{constructor(e="react-fontawesome"){this.enabled=!1;let t=!1;try{t=typeof process<"u"&&!1}catch{}this.scope=e,this.enabled=t}log(...e){this.enabled&&console.log(`[${this.scope}]`,...e)}warn(...e){this.enabled&&console.warn(`[${this.scope}]`,...e)}error(...e){this.enabled&&console.error(`[${this.scope}]`,...e)}},rO="searchPseudoElementsFullScan"in Ps?"7.0.0":"6.0.0",aO=Number.parseInt(rO)>=7,_s="fa",ua={beat:"fa-beat",fade:"fa-fade",beatFade:"fa-beat-fade",bounce:"fa-bounce",shake:"fa-shake",spin:"fa-spin",spinPulse:"fa-spin-pulse",spinReverse:"fa-spin-reverse",pulse:"fa-pulse"},iO={left:"fa-pull-left",right:"fa-pull-right"},oO={90:"fa-rotate-90",180:"fa-rotate-180",270:"fa-rotate-270"},lO={"2xs":"fa-2xs",xs:"fa-xs",sm:"fa-sm",lg:"fa-lg",xl:"fa-xl","2xl":"fa-2xl","1x":"fa-1x","2x":"fa-2x","3x":"fa-3x","4x":"fa-4x","5x":"fa-5x","6x":"fa-6x","7x":"fa-7x","8x":"fa-8x","9x":"fa-9x","10x":"fa-10x"},fa={border:"fa-border",fixedWidth:"fa-fw",flip:"fa-flip",flipHorizontal:"fa-flip-horizontal",flipVertical:"fa-flip-vertical",inverse:"fa-inverse",rotateBy:"fa-rotate-by",swapOpacity:"fa-swap-opacity",widthAuto:"fa-width-auto"};function sO(e){const t=Ps.cssPrefix||Ps.familyPrefix||_s;return t===_s?e:e.replace(new RegExp(String.raw`(?<=^|\s)${_s}-`,"g"),`${t}-`)}function cO(e){const{beat:t,fade:a,beatFade:i,bounce:l,shake:s,spin:u,spinPulse:f,spinReverse:d,pulse:h,fixedWidth:m,inverse:v,border:S,flip:w,size:x,rotation:b,pull:A,swapOpacity:j,rotateBy:_,widthAuto:R,className:N}=e,T=[];return N&&T.push(...N.split(" ")),t&&T.push(ua.beat),a&&T.push(ua.fade),i&&T.push(ua.beatFade),l&&T.push(ua.bounce),s&&T.push(ua.shake),u&&T.push(ua.spin),d&&T.push(ua.spinReverse),f&&T.push(ua.spinPulse),h&&T.push(ua.pulse),m&&T.push(fa.fixedWidth),v&&T.push(fa.inverse),S&&T.push(fa.border),w===!0&&T.push(fa.flip),(w==="horizontal"||w==="both")&&T.push(fa.flipHorizontal),(w==="vertical"||w==="both")&&T.push(fa.flipVertical),x!=null&&T.push(lO[x]),b!=null&&b!==0&&T.push(oO[b]),A!=null&&T.push(iO[A]),j&&T.push(fa.swapOpacity),aO?(_&&T.push(fa.rotateBy),R&&T.push(fa.widthAuto),(Ps.cssPrefix||Ps.familyPrefix||_s)===_s?T:T.map(sO)):T}var uO=e=>typeof e=="object"&&"icon"in e&&!!e.icon;function e2(e){if(e)return uO(e)?e:RC.icon(e)}function fO(e){return Object.keys(e)}var t2=new nO("FontAwesomeIcon"),OC={border:!1,className:"",mask:void 0,maskId:void 0,fixedWidth:!1,inverse:!1,flip:!1,icon:void 0,listItem:!1,pull:void 0,pulse:!1,rotation:void 0,rotateBy:!1,size:void 0,spin:!1,spinPulse:!1,spinReverse:!1,beat:!1,fade:!1,beatFade:!1,bounce:!1,shake:!1,symbol:!1,title:"",titleId:void 0,transform:void 0,swapOpacity:!1,widthAuto:!1},dO=new Set(Object.keys(OC)),Ne=ni.forwardRef((e,t)=>{const a={...OC,...e},{icon:i,mask:l,symbol:s,title:u,titleId:f,maskId:d,transform:h}=a,m=Zb(d,!!l),v=Zb(f,!!u),S=e2(i);if(!S)return t2.error("Icon lookup is undefined",i),null;const w=cO(a),x=typeof h=="string"?RC.transform(h):h,b=e2(l),A=X$(S,{...w.length>0&&{classes:w},...x&&{transform:x},...b&&{mask:b},symbol:s,title:u,titleId:v,maskId:m});if(!A)return t2.error("Could not find icon",S),null;const{abstract:j}=A,_={ref:t};for(const R of fO(a))dO.has(R)||(_[R]=a[R]);return tO(j[0],_)});Ne.displayName="FontAwesomeIcon";function rf(e){return y.jsx(y.Fragment,{children:y.jsxs("div",{className:"rounded-full border-2 border-white flex items-center gap-3 p-2 w-fit ",children:[y.jsx("div",{onClick:e.onClickIcon,children:e.Icon&&y.jsx(Ne,{icon:e.Icon,className:"ml-2"})}),y.jsx("input",{...e,type:"text",className:"bg-transparent outline-none placeholder:font-bold "+e.className})]})})}function af(e){let t="https://mui.com/production-error/?code="+e;for(let a=1;a<arguments.length;a+=1)t+="&args[]="+encodeURIComponent(arguments[a]);return"Minified MUI error #"+e+"; visit "+t+" for the full message."}function L(){return L=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var i in a)({}).hasOwnProperty.call(a,i)&&(e[i]=a[i])}return e},L.apply(null,arguments)}function pO(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 hO(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 mO=(function(){function e(a){var i=this;this._insertTag=function(l){var s;i.tags.length===0?i.insertionPoint?s=i.insertionPoint.nextSibling:i.prepend?s=i.container.firstChild:s=i.before:s=i.tags[i.tags.length-1].nextSibling,i.container.insertBefore(l,s),i.tags.push(l)},this.isSpeedy=a.speedy===void 0?!0:a.speedy,this.tags=[],this.ctr=0,this.nonce=a.nonce,this.key=a.key,this.container=a.container,this.prepend=a.prepend,this.insertionPoint=a.insertionPoint,this.before=null}var t=e.prototype;return t.hydrate=function(i){i.forEach(this._insertTag)},t.insert=function(i){this.ctr%(this.isSpeedy?65e3:1)===0&&this._insertTag(hO(this));var l=this.tags[this.tags.length-1];if(this.isSpeedy){var s=pO(l);try{s.insertRule(i,s.cssRules.length)}catch{}}else l.appendChild(document.createTextNode(i));this.ctr++},t.flush=function(){this.tags.forEach(function(i){var l;return(l=i.parentNode)==null?void 0:l.removeChild(i)}),this.tags=[],this.ctr=0},e})(),en="-ms-",of="-moz-",Ye="-webkit-",_C="comm",$0="rule",O0="decl",gO="@import",jC="@keyframes",vO="@layer",yO=Math.abs,Of=String.fromCharCode,bO=Object.assign;function xO(e,t){return Kt(e,0)^45?(((t<<2^Kt(e,0))<<2^Kt(e,1))<<2^Kt(e,2))<<2^Kt(e,3):0}function kC(e){return e.trim()}function SO(e,t){return(e=t.exec(e))?e[0]:e}function Ge(e,t,a){return e.replace(t,a)}function wm(e,t){return e.indexOf(t)}function Kt(e,t){return e.charCodeAt(t)|0}function Is(e,t,a){return e.slice(t,a)}function zr(e){return e.length}function _0(e){return e.length}function Ou(e,t){return t.push(e),e}function CO(e,t){return e.map(t).join("")}var _f=1,al=1,NC=0,En=0,zt=0,hl="";function jf(e,t,a,i,l,s,u){return{value:e,root:t,parent:a,type:i,props:l,children:s,line:_f,column:al,length:u,return:""}}function gs(e,t){return bO(jf("",null,null,"",null,null,0),e,{length:-e.length},t)}function EO(){return zt}function wO(){return zt=En>0?Kt(hl,--En):0,al--,zt===10&&(al=1,_f--),zt}function Mn(){return zt=En<NC?Kt(hl,En++):0,al++,zt===10&&(al=1,_f++),zt}function Lr(){return Kt(hl,En)}function Iu(){return En}function tc(e,t){return Is(hl,e,t)}function Hs(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 zC(e){return _f=al=1,NC=zr(hl=e),En=0,[]}function DC(e){return hl="",e}function Hu(e){return kC(tc(En-1,Am(e===91?e+2:e===40?e+1:e)))}function AO(e){for(;(zt=Lr())&&zt<33;)Mn();return Hs(e)>2||Hs(zt)>3?"":" "}function RO(e,t){for(;--t&&Mn()&&!(zt<48||zt>102||zt>57&&zt<65||zt>70&&zt<97););return tc(e,Iu()+(t<6&&Lr()==32&&Mn()==32))}function Am(e){for(;Mn();)switch(zt){case e:return En;case 34:case 39:e!==34&&e!==39&&Am(zt);break;case 40:e===41&&Am(e);break;case 92:Mn();break}return En}function TO(e,t){for(;Mn()&&e+zt!==57;)if(e+zt===84&&Lr()===47)break;return"/*"+tc(t,En-1)+"*"+Of(e===47?e:Mn())}function $O(e){for(;!Hs(Lr());)Mn();return tc(e,En)}function OO(e){return DC(Uu("",null,null,null,[""],e=zC(e),0,[0],e))}function Uu(e,t,a,i,l,s,u,f,d){for(var h=0,m=0,v=u,S=0,w=0,x=0,b=1,A=1,j=1,_=0,R="",N=l,T=s,z=i,D=R;A;)switch(x=_,_=Mn()){case 40:if(x!=108&&Kt(D,v-1)==58){wm(D+=Ge(Hu(_),"&","&\f"),"&\f")!=-1&&(j=-1);break}case 34:case 39:case 91:D+=Hu(_);break;case 9:case 10:case 13:case 32:D+=AO(x);break;case 92:D+=RO(Iu()-1,7);continue;case 47:switch(Lr()){case 42:case 47:Ou(_O(TO(Mn(),Iu()),t,a),d);break;default:D+="/"}break;case 123*b:f[h++]=zr(D)*j;case 125*b:case 59:case 0:switch(_){case 0:case 125:A=0;case 59+m:j==-1&&(D=Ge(D,/\f/g,"")),w>0&&zr(D)-v&&Ou(w>32?r2(D+";",i,a,v-1):r2(Ge(D," ","")+";",i,a,v-2),d);break;case 59:D+=";";default:if(Ou(z=n2(D,t,a,h,m,l,f,R,N=[],T=[],v),s),_===123)if(m===0)Uu(D,t,z,z,N,s,v,f,T);else switch(S===99&&Kt(D,3)===110?100:S){case 100:case 108:case 109:case 115:Uu(e,z,z,i&&Ou(n2(e,z,z,0,0,l,f,R,l,N=[],v),T),l,T,v,f,i?N:T);break;default:Uu(D,z,z,z,[""],T,0,f,T)}}h=m=w=0,b=j=1,R=D="",v=u;break;case 58:v=1+zr(D),w=x;default:if(b<1){if(_==123)--b;else if(_==125&&b++==0&&wO()==125)continue}switch(D+=Of(_),_*b){case 38:j=m>0?1:(D+="\f",-1);break;case 44:f[h++]=(zr(D)-1)*j,j=1;break;case 64:Lr()===45&&(D+=Hu(Mn())),S=Lr(),m=v=zr(R=D+=$O(Iu())),_++;break;case 45:x===45&&zr(D)==2&&(b=0)}}return s}function n2(e,t,a,i,l,s,u,f,d,h,m){for(var v=l-1,S=l===0?s:[""],w=_0(S),x=0,b=0,A=0;x<i;++x)for(var j=0,_=Is(e,v+1,v=yO(b=u[x])),R=e;j<w;++j)(R=kC(b>0?S[j]+" "+_:Ge(_,/&\f/g,S[j])))&&(d[A++]=R);return jf(e,t,a,l===0?$0:f,d,h,m)}function _O(e,t,a){return jf(e,t,a,_C,Of(EO()),Is(e,2,-2),0)}function r2(e,t,a,i){return jf(e,t,a,O0,Is(e,0,i),Is(e,i+1,-1),i)}function Zo(e,t){for(var a="",i=_0(e),l=0;l<i;l++)a+=t(e[l],l,e,t)||"";return a}function jO(e,t,a,i){switch(e.type){case vO:if(e.children.length)break;case gO:case O0:return e.return=e.return||e.value;case _C:return"";case jC:return e.return=e.value+"{"+Zo(e.children,i)+"}";case $0:e.value=e.props.join(",")}return zr(a=Zo(e.children,i))?e.return=e.value+"{"+a+"}":""}function kO(e){var t=_0(e);return function(a,i,l,s){for(var u="",f=0;f<t;f++)u+=e[f](a,i,l,s)||"";return u}}function NO(e){return function(t){t.root||(t=t.return)&&e(t)}}function MC(e){var t=Object.create(null);return function(a){return t[a]===void 0&&(t[a]=e(a)),t[a]}}var zO=function(t,a,i){for(var l=0,s=0;l=s,s=Lr(),l===38&&s===12&&(a[i]=1),!Hs(s);)Mn();return tc(t,En)},DO=function(t,a){var i=-1,l=44;do switch(Hs(l)){case 0:l===38&&Lr()===12&&(a[i]=1),t[i]+=zO(En-1,a,i);break;case 2:t[i]+=Hu(l);break;case 4:if(l===44){t[++i]=Lr()===58?"&\f":"",a[i]=t[i].length;break}default:t[i]+=Of(l)}while(l=Mn());return t},MO=function(t,a){return DC(DO(zC(t),a))},a2=new WeakMap,BO=function(t){if(!(t.type!=="rule"||!t.parent||t.length<1)){for(var a=t.value,i=t.parent,l=t.column===i.column&&t.line===i.line;i.type!=="rule";)if(i=i.parent,!i)return;if(!(t.props.length===1&&a.charCodeAt(0)!==58&&!a2.get(i))&&!l){a2.set(t,!0);for(var s=[],u=MO(a,s),f=i.props,d=0,h=0;d<u.length;d++)for(var m=0;m<f.length;m++,h++)t.props[h]=s[d]?u[d].replace(/&\f/g,f[m]):f[m]+" "+u[d]}}},LO=function(t){if(t.type==="decl"){var a=t.value;a.charCodeAt(0)===108&&a.charCodeAt(2)===98&&(t.return="",t.value="")}};function BC(e,t){switch(xO(e,t)){case 5103:return Ye+"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 Ye+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return Ye+e+of+e+en+e+e;case 6828:case 4268:return Ye+e+en+e+e;case 6165:return Ye+e+en+"flex-"+e+e;case 5187:return Ye+e+Ge(e,/(\w+).+(:[^]+)/,Ye+"box-$1$2"+en+"flex-$1$2")+e;case 5443:return Ye+e+en+"flex-item-"+Ge(e,/flex-|-self/,"")+e;case 4675:return Ye+e+en+"flex-line-pack"+Ge(e,/align-content|flex-|-self/,"")+e;case 5548:return Ye+e+en+Ge(e,"shrink","negative")+e;case 5292:return Ye+e+en+Ge(e,"basis","preferred-size")+e;case 6060:return Ye+"box-"+Ge(e,"-grow","")+Ye+e+en+Ge(e,"grow","positive")+e;case 4554:return Ye+Ge(e,/([^-])(transform)/g,"$1"+Ye+"$2")+e;case 6187:return Ge(Ge(Ge(e,/(zoom-|grab)/,Ye+"$1"),/(image-set)/,Ye+"$1"),e,"")+e;case 5495:case 3959:return Ge(e,/(image-set\([^]*)/,Ye+"$1$`$1");case 4968:return Ge(Ge(e,/(.+:)(flex-)?(.*)/,Ye+"box-pack:$3"+en+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+Ye+e+e;case 4095:case 3583:case 4068:case 2532:return Ge(e,/(.+)-inline(.+)/,Ye+"$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(zr(e)-1-t>6)switch(Kt(e,t+1)){case 109:if(Kt(e,t+4)!==45)break;case 102:return Ge(e,/(.+:)(.+)-([^]+)/,"$1"+Ye+"$2-$3$1"+of+(Kt(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~wm(e,"stretch")?BC(Ge(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(Kt(e,t+1)!==115)break;case 6444:switch(Kt(e,zr(e)-3-(~wm(e,"!important")&&10))){case 107:return Ge(e,":",":"+Ye)+e;case 101:return Ge(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+Ye+(Kt(e,14)===45?"inline-":"")+"box$3$1"+Ye+"$2$3$1"+en+"$2box$3")+e}break;case 5936:switch(Kt(e,t+11)){case 114:return Ye+e+en+Ge(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return Ye+e+en+Ge(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return Ye+e+en+Ge(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return Ye+e+en+e+e}return e}var PO=function(t,a,i,l){if(t.length>-1&&!t.return)switch(t.type){case O0:t.return=BC(t.value,t.length);break;case jC:return Zo([gs(t,{value:Ge(t.value,"@","@"+Ye)})],l);case $0:if(t.length)return CO(t.props,function(s){switch(SO(s,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return Zo([gs(t,{props:[Ge(s,/:(read-\w+)/,":"+of+"$1")]})],l);case"::placeholder":return Zo([gs(t,{props:[Ge(s,/:(plac\w+)/,":"+Ye+"input-$1")]}),gs(t,{props:[Ge(s,/:(plac\w+)/,":"+of+"$1")]}),gs(t,{props:[Ge(s,/:(plac\w+)/,en+"input-$1")]})],l)}return""})}},IO=[PO],HO=function(t){var a=t.key;if(a==="css"){var i=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(i,function(b){var A=b.getAttribute("data-emotion");A.indexOf(" ")!==-1&&(document.head.appendChild(b),b.setAttribute("data-s",""))})}var l=t.stylisPlugins||IO,s={},u,f=[];u=t.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+a+' "]'),function(b){for(var A=b.getAttribute("data-emotion").split(" "),j=1;j<A.length;j++)s[A[j]]=!0;f.push(b)});var d,h=[BO,LO];{var m,v=[jO,NO(function(b){m.insert(b)})],S=kO(h.concat(l,v)),w=function(A){return Zo(OO(A),S)};d=function(A,j,_,R){m=_,w(A?A+"{"+j.styles+"}":j.styles),R&&(x.inserted[j.name]=!0)}}var x={key:a,sheet:new mO({key:a,container:u,nonce:t.nonce,speedy:t.speedy,prepend:t.prepend,insertionPoint:t.insertionPoint}),nonce:t.nonce,inserted:s,registered:{},insert:d};return x.sheet.hydrate(f),x},Bh={exports:{}},Ke={};var i2;function UO(){if(i2)return Ke;i2=1;var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,a=e?Symbol.for("react.portal"):60106,i=e?Symbol.for("react.fragment"):60107,l=e?Symbol.for("react.strict_mode"):60108,s=e?Symbol.for("react.profiler"):60114,u=e?Symbol.for("react.provider"):60109,f=e?Symbol.for("react.context"):60110,d=e?Symbol.for("react.async_mode"):60111,h=e?Symbol.for("react.concurrent_mode"):60111,m=e?Symbol.for("react.forward_ref"):60112,v=e?Symbol.for("react.suspense"):60113,S=e?Symbol.for("react.suspense_list"):60120,w=e?Symbol.for("react.memo"):60115,x=e?Symbol.for("react.lazy"):60116,b=e?Symbol.for("react.block"):60121,A=e?Symbol.for("react.fundamental"):60117,j=e?Symbol.for("react.responder"):60118,_=e?Symbol.for("react.scope"):60119;function R(T){if(typeof T=="object"&&T!==null){var z=T.$$typeof;switch(z){case t:switch(T=T.type,T){case d:case h:case i:case s:case l:case v:return T;default:switch(T=T&&T.$$typeof,T){case f:case m:case x:case w:case u:return T;default:return z}}case a:return z}}}function N(T){return R(T)===h}return Ke.AsyncMode=d,Ke.ConcurrentMode=h,Ke.ContextConsumer=f,Ke.ContextProvider=u,Ke.Element=t,Ke.ForwardRef=m,Ke.Fragment=i,Ke.Lazy=x,Ke.Memo=w,Ke.Portal=a,Ke.Profiler=s,Ke.StrictMode=l,Ke.Suspense=v,Ke.isAsyncMode=function(T){return N(T)||R(T)===d},Ke.isConcurrentMode=N,Ke.isContextConsumer=function(T){return R(T)===f},Ke.isContextProvider=function(T){return R(T)===u},Ke.isElement=function(T){return typeof T=="object"&&T!==null&&T.$$typeof===t},Ke.isForwardRef=function(T){return R(T)===m},Ke.isFragment=function(T){return R(T)===i},Ke.isLazy=function(T){return R(T)===x},Ke.isMemo=function(T){return R(T)===w},Ke.isPortal=function(T){return R(T)===a},Ke.isProfiler=function(T){return R(T)===s},Ke.isStrictMode=function(T){return R(T)===l},Ke.isSuspense=function(T){return R(T)===v},Ke.isValidElementType=function(T){return typeof T=="string"||typeof T=="function"||T===i||T===h||T===s||T===l||T===v||T===S||typeof T=="object"&&T!==null&&(T.$$typeof===x||T.$$typeof===w||T.$$typeof===u||T.$$typeof===f||T.$$typeof===m||T.$$typeof===A||T.$$typeof===j||T.$$typeof===_||T.$$typeof===b)},Ke.typeOf=R,Ke}var o2;function FO(){return o2||(o2=1,Bh.exports=UO()),Bh.exports}var Lh,l2;function VO(){if(l2)return Lh;l2=1;var e=FO(),t={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},a={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},i={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},l={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},s={};s[e.ForwardRef]=i,s[e.Memo]=l;function u(x){return e.isMemo(x)?l:s[x.$$typeof]||t}var f=Object.defineProperty,d=Object.getOwnPropertyNames,h=Object.getOwnPropertySymbols,m=Object.getOwnPropertyDescriptor,v=Object.getPrototypeOf,S=Object.prototype;function w(x,b,A){if(typeof b!="string"){if(S){var j=v(b);j&&j!==S&&w(x,j,A)}var _=d(b);h&&(_=_.concat(h(b)));for(var R=u(x),N=u(b),T=0;T<_.length;++T){var z=_[T];if(!a[z]&&!(A&&A[z])&&!(N&&N[z])&&!(R&&R[z])){var D=m(b,z);try{f(x,z,D)}catch{}}}}return x}return Lh=w,Lh}VO();var qO=!0;function LC(e,t,a){var i="";return a.split(" ").forEach(function(l){e[l]!==void 0?t.push(e[l]+";"):l&&(i+=l+" ")}),i}var j0=function(t,a,i){var l=t.key+"-"+a.name;(i===!1||qO===!1)&&t.registered[l]===void 0&&(t.registered[l]=a.styles)},PC=function(t,a,i){j0(t,a,i);var l=t.key+"-"+a.name;if(t.inserted[a.name]===void 0){var s=a;do t.insert(a===s?"."+l:"",s,t.sheet,!0),s=s.next;while(s!==void 0)}};function YO(e){for(var t=0,a,i=0,l=e.length;l>=4;++i,l-=4)a=e.charCodeAt(i)&255|(e.charCodeAt(++i)&255)<<8|(e.charCodeAt(++i)&255)<<16|(e.charCodeAt(++i)&255)<<24,a=(a&65535)*1540483477+((a>>>16)*59797<<16),a^=a>>>24,t=(a&65535)*1540483477+((a>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(l){case 3:t^=(e.charCodeAt(i+2)&255)<<16;case 2:t^=(e.charCodeAt(i+1)&255)<<8;case 1:t^=e.charCodeAt(i)&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 GO={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},WO=/[A-Z]|^ms/g,KO=/_EMO_([^_]+?)_([^]*?)_EMO_/g,IC=function(t){return t.charCodeAt(1)===45},s2=function(t){return t!=null&&typeof t!="boolean"},Ph=MC(function(e){return IC(e)?e:e.replace(WO,"-$&").toLowerCase()}),c2=function(t,a){switch(t){case"animation":case"animationName":if(typeof a=="string")return a.replace(KO,function(i,l,s){return Dr={name:l,styles:s,next:Dr},l})}return GO[t]!==1&&!IC(t)&&typeof a=="number"&&a!==0?a+"px":a};function Us(e,t,a){if(a==null)return"";var i=a;if(i.__emotion_styles!==void 0)return i;switch(typeof a){case"boolean":return"";case"object":{var l=a;if(l.anim===1)return Dr={name:l.name,styles:l.styles,next:Dr},l.name;var s=a;if(s.styles!==void 0){var u=s.next;if(u!==void 0)for(;u!==void 0;)Dr={name:u.name,styles:u.styles,next:Dr},u=u.next;var f=s.styles+";";return f}return XO(e,t,a)}case"function":{if(e!==void 0){var d=Dr,h=a(e);return Dr=d,Us(e,t,h)}break}}var m=a;if(t==null)return m;var v=t[m];return v!==void 0?v:m}function XO(e,t,a){var i="";if(Array.isArray(a))for(var l=0;l<a.length;l++)i+=Us(e,t,a[l])+";";else for(var s in a){var u=a[s];if(typeof u!="object"){var f=u;t!=null&&t[f]!==void 0?i+=s+"{"+t[f]+"}":s2(f)&&(i+=Ph(s)+":"+c2(s,f)+";")}else if(Array.isArray(u)&&typeof u[0]=="string"&&(t==null||t[u[0]]===void 0))for(var d=0;d<u.length;d++)s2(u[d])&&(i+=Ph(s)+":"+c2(s,u[d])+";");else{var h=Us(e,t,u);switch(s){case"animation":case"animationName":{i+=Ph(s)+":"+h+";";break}default:i+=s+"{"+h+"}"}}}return i}var u2=/label:\s*([^\s;{]+)\s*(;|$)/g,Dr;function kf(e,t,a){if(e.length===1&&typeof e[0]=="object"&&e[0]!==null&&e[0].styles!==void 0)return e[0];var i=!0,l="";Dr=void 0;var s=e[0];if(s==null||s.raw===void 0)i=!1,l+=Us(a,t,s);else{var u=s;l+=u[0]}for(var f=1;f<e.length;f++)if(l+=Us(a,t,e[f]),i){var d=s;l+=d[f]}u2.lastIndex=0;for(var h="",m;(m=u2.exec(l))!==null;)h+="-"+m[1];var v=YO(l)+h;return{name:v,styles:l,next:Dr}}var QO=function(t){return t()},JO=Qu.useInsertionEffect?Qu.useInsertionEffect:!1,HC=JO||QO,UC=C.createContext(typeof HTMLElement<"u"?HO({key:"css"}):null);UC.Provider;var FC=function(t){return C.forwardRef(function(a,i){var l=C.useContext(UC);return t(a,l,i)})},Nf=C.createContext({}),k0={}.hasOwnProperty,Rm="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",ZO=function(t,a){var i={};for(var l in a)k0.call(a,l)&&(i[l]=a[l]);return i[Rm]=t,i},e_=function(t){var a=t.cache,i=t.serialized,l=t.isStringTag;return j0(a,i,l),HC(function(){return PC(a,i,l)}),null},t_=FC(function(e,t,a){var i=e.css;typeof i=="string"&&t.registered[i]!==void 0&&(i=t.registered[i]);var l=e[Rm],s=[i],u="";typeof e.className=="string"?u=LC(t.registered,s,e.className):e.className!=null&&(u=e.className+" ");var f=kf(s,void 0,C.useContext(Nf));u+=t.key+"-"+f.name;var d={};for(var h in e)k0.call(e,h)&&h!=="css"&&h!==Rm&&(d[h]=e[h]);return d.className=u,a&&(d.ref=a),C.createElement(C.Fragment,null,C.createElement(e_,{cache:t,serialized:f,isStringTag:typeof l=="string"}),C.createElement(l,d))}),n_=t_,f2=function(t,a){var i=arguments;if(a==null||!k0.call(a,"css"))return C.createElement.apply(void 0,i);var l=i.length,s=new Array(l);s[0]=n_,s[1]=ZO(t,a);for(var u=2;u<l;u++)s[u]=i[u];return C.createElement.apply(null,s)};(function(e){var t;t||(t=e.JSX||(e.JSX={}))})(f2||(f2={}));function zf(){for(var e=arguments.length,t=new Array(e),a=0;a<e;a++)t[a]=arguments[a];return kf(t)}function ml(){var e=zf.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 r_=/^((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)-.*))$/,a_=MC(function(e){return r_.test(e)||e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)<91}),i_=a_,o_=function(t){return t!=="theme"},d2=function(t){return typeof t=="string"&&t.charCodeAt(0)>96?i_:o_},p2=function(t,a,i){var l;if(a){var s=a.shouldForwardProp;l=t.__emotion_forwardProp&&s?function(u){return t.__emotion_forwardProp(u)&&s(u)}:s}return typeof l!="function"&&i&&(l=t.__emotion_forwardProp),l},l_=function(t){var a=t.cache,i=t.serialized,l=t.isStringTag;return j0(a,i,l),HC(function(){return PC(a,i,l)}),null},s_=function e(t,a){var i=t.__emotion_real===t,l=i&&t.__emotion_base||t,s,u;a!==void 0&&(s=a.label,u=a.target);var f=p2(t,a,i),d=f||d2(l),h=!d("as");return function(){var m=arguments,v=i&&t.__emotion_styles!==void 0?t.__emotion_styles.slice(0):[];if(s!==void 0&&v.push("label:"+s+";"),m[0]==null||m[0].raw===void 0)v.push.apply(v,m);else{var S=m[0];v.push(S[0]);for(var w=m.length,x=1;x<w;x++)v.push(m[x],S[x])}var b=FC(function(A,j,_){var R=h&&A.as||l,N="",T=[],z=A;if(A.theme==null){z={};for(var D in A)z[D]=A[D];z.theme=C.useContext(Nf)}typeof A.className=="string"?N=LC(j.registered,T,A.className):A.className!=null&&(N=A.className+" ");var V=kf(v.concat(T),j.registered,z);N+=j.key+"-"+V.name,u!==void 0&&(N+=" "+u);var Q=h&&f===void 0?d2(R):d,Z={};for(var q in A)h&&q==="as"||Q(q)&&(Z[q]=A[q]);return Z.className=N,_&&(Z.ref=_),C.createElement(C.Fragment,null,C.createElement(l_,{cache:j,serialized:V,isStringTag:typeof R=="string"}),C.createElement(R,Z))});return b.displayName=s!==void 0?s:"Styled("+(typeof l=="string"?l:l.displayName||l.name||"Component")+")",b.defaultProps=t.defaultProps,b.__emotion_real=b,b.__emotion_base=l,b.__emotion_styles=v,b.__emotion_forwardProp=f,Object.defineProperty(b,"toString",{value:function(){return"."+u}}),b.withComponent=function(A,j){var _=e(A,L({},a,j,{shouldForwardProp:p2(b,j,!0)}));return _.apply(void 0,v)},b}},c_=["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"],lf=s_.bind(null);c_.forEach(function(e){lf[e]=lf(e)});function VC(e,t){return lf(e,t)}const u_=(e,t)=>{Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=t(e.__emotion_styles))};function Ue(e,t){if(e==null)return{};var a={};for(var i in e)if({}.hasOwnProperty.call(e,i)){if(t.indexOf(i)!==-1)continue;a[i]=e[i]}return a}function Za(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 qC(e){if(C.isValidElement(e)||!Za(e))return e;const t={};return Object.keys(e).forEach(a=>{t[a]=qC(e[a])}),t}function ma(e,t,a={clone:!0}){const i=a.clone?L({},e):e;return Za(e)&&Za(t)&&Object.keys(t).forEach(l=>{C.isValidElement(t[l])?i[l]=t[l]:Za(t[l])&&Object.prototype.hasOwnProperty.call(e,l)&&Za(e[l])?i[l]=ma(e[l],t[l],a):a.clone?i[l]=Za(t[l])?qC(t[l]):t[l]:i[l]=t[l]}),i}const f_=["values","unit","step"],d_=e=>{const t=Object.keys(e).map(a=>({key:a,val:e[a]}))||[];return t.sort((a,i)=>a.val-i.val),t.reduce((a,i)=>L({},a,{[i.key]:i.val}),{})};function YC(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:a="px",step:i=5}=e,l=Ue(e,f_),s=d_(t),u=Object.keys(s);function f(S){return`@media (min-width:${typeof t[S]=="number"?t[S]:S}${a})`}function d(S){return`@media (max-width:${(typeof t[S]=="number"?t[S]:S)-i/100}${a})`}function h(S,w){const x=u.indexOf(w);return`@media (min-width:${typeof t[S]=="number"?t[S]:S}${a}) and (max-width:${(x!==-1&&typeof t[u[x]]=="number"?t[u[x]]:w)-i/100}${a})`}function m(S){return u.indexOf(S)+1<u.length?h(S,u[u.indexOf(S)+1]):f(S)}function v(S){const w=u.indexOf(S);return w===0?f(u[1]):w===u.length-1?d(u[w]):h(S,u[u.indexOf(S)+1]).replace("@media","@media not all and")}return L({keys:u,values:s,up:f,down:d,between:h,only:m,not:v,unit:a},l)}const p_={borderRadius:4};function js(e,t){return t?ma(e,t,{clone:!1}):e}const N0={xs:0,sm:600,md:900,lg:1200,xl:1536},h2={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${N0[e]}px)`};function xa(e,t,a){const i=e.theme||{};if(Array.isArray(t)){const s=i.breakpoints||h2;return t.reduce((u,f,d)=>(u[s.up(s.keys[d])]=a(t[d]),u),{})}if(typeof t=="object"){const s=i.breakpoints||h2;return Object.keys(t).reduce((u,f)=>{if(Object.keys(s.values||N0).indexOf(f)!==-1){const d=s.up(f);u[d]=a(t[f],f)}else{const d=f;u[d]=t[d]}return u},{})}return a(t)}function h_(e={}){var t;return((t=e.keys)==null?void 0:t.reduce((i,l)=>{const s=e.up(l);return i[s]={},i},{}))||{}}function m_(e,t){return e.reduce((a,i)=>{const l=a[i];return(!l||Object.keys(l).length===0)&&delete a[i],a},t)}function Ie(e){if(typeof e!="string")throw new Error(af(7));return e.charAt(0).toUpperCase()+e.slice(1)}function Df(e,t,a=!0){if(!t||typeof t!="string")return null;if(e&&e.vars&&a){const i=`vars.${t}`.split(".").reduce((l,s)=>l&&l[s]?l[s]:null,e);if(i!=null)return i}return t.split(".").reduce((i,l)=>i&&i[l]!=null?i[l]:null,e)}function sf(e,t,a,i=a){let l;return typeof e=="function"?l=e(a):Array.isArray(e)?l=e[a]||i:l=Df(e,a)||i,t&&(l=t(l,i,e)),l}function $t(e){const{prop:t,cssProperty:a=e.prop,themeKey:i,transform:l}=e,s=u=>{if(u[t]==null)return null;const f=u[t],d=u.theme,h=Df(d,i)||{};return xa(u,f,v=>{let S=sf(h,l,v);return v===S&&typeof v=="string"&&(S=sf(h,l,`${t}${v==="default"?"":Ie(v)}`,v)),a===!1?S:{[a]:S}})};return s.propTypes={},s.filterProps=[t],s}function g_(e){const t={};return a=>(t[a]===void 0&&(t[a]=e(a)),t[a])}const v_={m:"margin",p:"padding"},y_={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},m2={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},b_=g_(e=>{if(e.length>2)if(m2[e])e=m2[e];else return[e];const[t,a]=e.split(""),i=v_[t],l=y_[a]||"";return Array.isArray(l)?l.map(s=>i+s):[i+l]}),z0=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],D0=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"];[...z0,...D0];function nc(e,t,a,i){var l;const s=(l=Df(e,t,!1))!=null?l:a;return typeof s=="number"?u=>typeof u=="string"?u:s*u:Array.isArray(s)?u=>typeof u=="string"?u:s[u]:typeof s=="function"?s:()=>{}}function GC(e){return nc(e,"spacing",8)}function rc(e,t){if(typeof t=="string"||t==null)return t;const a=Math.abs(t),i=e(a);return t>=0?i:typeof i=="number"?-i:`-${i}`}function x_(e,t){return a=>e.reduce((i,l)=>(i[l]=rc(t,a),i),{})}function S_(e,t,a,i){if(t.indexOf(a)===-1)return null;const l=b_(a),s=x_(l,i),u=e[a];return xa(e,u,s)}function WC(e,t){const a=GC(e.theme);return Object.keys(e).map(i=>S_(e,t,i,a)).reduce(js,{})}function bt(e){return WC(e,z0)}bt.propTypes={};bt.filterProps=z0;function xt(e){return WC(e,D0)}xt.propTypes={};xt.filterProps=D0;function KC(e=8){if(e.mui)return e;const t=GC({spacing:e}),a=(...i)=>(i.length===0?[1]:i).map(s=>{const u=t(s);return typeof u=="number"?`${u}px`:u}).join(" ");return a.mui=!0,a}function Mf(...e){const t=e.reduce((i,l)=>(l.filterProps.forEach(s=>{i[s]=l}),i),{}),a=i=>Object.keys(i).reduce((l,s)=>t[s]?js(l,t[s](i)):l,{});return a.propTypes={},a.filterProps=e.reduce((i,l)=>i.concat(l.filterProps),[]),a}function nr(e){return typeof e!="number"?e:`${e}px solid`}function fr(e,t){return $t({prop:e,themeKey:"borders",transform:t})}const C_=fr("border",nr),E_=fr("borderTop",nr),w_=fr("borderRight",nr),A_=fr("borderBottom",nr),R_=fr("borderLeft",nr),T_=fr("borderColor"),$_=fr("borderTopColor"),O_=fr("borderRightColor"),__=fr("borderBottomColor"),j_=fr("borderLeftColor"),k_=fr("outline",nr),N_=fr("outlineColor"),Bf=e=>{if(e.borderRadius!==void 0&&e.borderRadius!==null){const t=nc(e.theme,"shape.borderRadius",4),a=i=>({borderRadius:rc(t,i)});return xa(e,e.borderRadius,a)}return null};Bf.propTypes={};Bf.filterProps=["borderRadius"];Mf(C_,E_,w_,A_,R_,T_,$_,O_,__,j_,Bf,k_,N_);const Lf=e=>{if(e.gap!==void 0&&e.gap!==null){const t=nc(e.theme,"spacing",8),a=i=>({gap:rc(t,i)});return xa(e,e.gap,a)}return null};Lf.propTypes={};Lf.filterProps=["gap"];const Pf=e=>{if(e.columnGap!==void 0&&e.columnGap!==null){const t=nc(e.theme,"spacing",8),a=i=>({columnGap:rc(t,i)});return xa(e,e.columnGap,a)}return null};Pf.propTypes={};Pf.filterProps=["columnGap"];const If=e=>{if(e.rowGap!==void 0&&e.rowGap!==null){const t=nc(e.theme,"spacing",8),a=i=>({rowGap:rc(t,i)});return xa(e,e.rowGap,a)}return null};If.propTypes={};If.filterProps=["rowGap"];const z_=$t({prop:"gridColumn"}),D_=$t({prop:"gridRow"}),M_=$t({prop:"gridAutoFlow"}),B_=$t({prop:"gridAutoColumns"}),L_=$t({prop:"gridAutoRows"}),P_=$t({prop:"gridTemplateColumns"}),I_=$t({prop:"gridTemplateRows"}),H_=$t({prop:"gridTemplateAreas"}),U_=$t({prop:"gridArea"});Mf(Lf,Pf,If,z_,D_,M_,B_,L_,P_,I_,H_,U_);function el(e,t){return t==="grey"?t:e}const F_=$t({prop:"color",themeKey:"palette",transform:el}),V_=$t({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:el}),q_=$t({prop:"backgroundColor",themeKey:"palette",transform:el});Mf(F_,V_,q_);function zn(e){return e<=1&&e!==0?`${e*100}%`:e}const Y_=$t({prop:"width",transform:zn}),M0=e=>{if(e.maxWidth!==void 0&&e.maxWidth!==null){const t=a=>{var i,l;const s=((i=e.theme)==null||(i=i.breakpoints)==null||(i=i.values)==null?void 0:i[a])||N0[a];return s?((l=e.theme)==null||(l=l.breakpoints)==null?void 0:l.unit)!=="px"?{maxWidth:`${s}${e.theme.breakpoints.unit}`}:{maxWidth:s}:{maxWidth:zn(a)}};return xa(e,e.maxWidth,t)}return null};M0.filterProps=["maxWidth"];const G_=$t({prop:"minWidth",transform:zn}),W_=$t({prop:"height",transform:zn}),K_=$t({prop:"maxHeight",transform:zn}),X_=$t({prop:"minHeight",transform:zn});$t({prop:"size",cssProperty:"width",transform:zn});$t({prop:"size",cssProperty:"height",transform:zn});const Q_=$t({prop:"boxSizing"});Mf(Y_,M0,G_,W_,K_,X_,Q_);const Hf={border:{themeKey:"borders",transform:nr},borderTop:{themeKey:"borders",transform:nr},borderRight:{themeKey:"borders",transform:nr},borderBottom:{themeKey:"borders",transform:nr},borderLeft:{themeKey:"borders",transform:nr},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:nr},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:Bf},color:{themeKey:"palette",transform:el},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:el},backgroundColor:{themeKey:"palette",transform:el},p:{style:xt},pt:{style:xt},pr:{style:xt},pb:{style:xt},pl:{style:xt},px:{style:xt},py:{style:xt},padding:{style:xt},paddingTop:{style:xt},paddingRight:{style:xt},paddingBottom:{style:xt},paddingLeft:{style:xt},paddingX:{style:xt},paddingY:{style:xt},paddingInline:{style:xt},paddingInlineStart:{style:xt},paddingInlineEnd:{style:xt},paddingBlock:{style:xt},paddingBlockStart:{style:xt},paddingBlockEnd:{style:xt},m:{style:bt},mt:{style:bt},mr:{style:bt},mb:{style:bt},ml:{style:bt},mx:{style:bt},my:{style:bt},margin:{style:bt},marginTop:{style:bt},marginRight:{style:bt},marginBottom:{style:bt},marginLeft:{style:bt},marginX:{style:bt},marginY:{style:bt},marginInline:{style:bt},marginInlineStart:{style:bt},marginInlineEnd:{style:bt},marginBlock:{style:bt},marginBlockStart:{style:bt},marginBlockEnd:{style:bt},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:Lf},rowGap:{style:If},columnGap:{style:Pf},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:zn},maxWidth:{style:M0},minWidth:{transform:zn},height:{transform:zn},maxHeight:{transform:zn},minHeight:{transform:zn},boxSizing:{},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}};function J_(...e){const t=e.reduce((i,l)=>i.concat(Object.keys(l)),[]),a=new Set(t);return e.every(i=>a.size===Object.keys(i).length)}function Z_(e,t){return typeof e=="function"?e(t):e}function e7(){function e(a,i,l,s){const u={[a]:i,theme:l},f=s[a];if(!f)return{[a]:i};const{cssProperty:d=a,themeKey:h,transform:m,style:v}=f;if(i==null)return null;if(h==="typography"&&i==="inherit")return{[a]:i};const S=Df(l,h)||{};return v?v(u):xa(u,i,x=>{let b=sf(S,m,x);return x===b&&typeof x=="string"&&(b=sf(S,m,`${a}${x==="default"?"":Ie(x)}`,x)),d===!1?b:{[d]:b}})}function t(a){var i;const{sx:l,theme:s={}}=a||{};if(!l)return null;const u=(i=s.unstable_sxConfig)!=null?i:Hf;function f(d){let h=d;if(typeof d=="function")h=d(s);else if(typeof d!="object")return d;if(!h)return null;const m=h_(s.breakpoints),v=Object.keys(m);let S=m;return Object.keys(h).forEach(w=>{const x=Z_(h[w],s);if(x!=null)if(typeof x=="object")if(u[w])S=js(S,e(w,x,s,u));else{const b=xa({theme:s},x,A=>({[w]:A}));J_(b,x)?S[w]=t({sx:x,theme:s}):S=js(S,b)}else S=js(S,e(w,x,s,u))}),m_(v,S)}return Array.isArray(l)?l.map(f):f(l)}return t}const ac=e7();ac.filterProps=["sx"];function XC(e,t){const a=this;return a.vars&&typeof a.getColorSchemeSelector=="function"?{[a.getColorSchemeSelector(e).replace(/(\[[^\]]+\])/,"*:where($1)")]:t}:a.palette.mode===e?t:{}}const t7=["breakpoints","palette","spacing","shape"];function QC(e={},...t){const{breakpoints:a={},palette:i={},spacing:l,shape:s={}}=e,u=Ue(e,t7),f=YC(a),d=KC(l);let h=ma({breakpoints:f,direction:"ltr",components:{},palette:L({mode:"light"},i),spacing:d,shape:L({},p_,s)},u);return h.applyStyles=XC,h=t.reduce((m,v)=>ma(m,v),h),h.unstable_sxConfig=L({},Hf,u?.unstable_sxConfig),h.unstable_sx=function(v){return ac({sx:v,theme:this})},h}function n7(e){return Object.keys(e).length===0}function r7(e=null){const t=C.useContext(Nf);return!t||n7(t)?e:t}const a7=QC();function JC(e=a7){return r7(e)}const i7=["sx"],o7=e=>{var t,a;const i={systemProps:{},otherProps:{}},l=(t=e==null||(a=e.theme)==null?void 0:a.unstable_sxConfig)!=null?t:Hf;return Object.keys(e).forEach(s=>{l[s]?i.systemProps[s]=e[s]:i.otherProps[s]=e[s]}),i};function ZC(e){const{sx:t}=e,a=Ue(e,i7),{systemProps:i,otherProps:l}=o7(a);let s;return Array.isArray(t)?s=[i,...t]:typeof t=="function"?s=(...u)=>{const f=t(...u);return Za(f)?L({},i,f):i}:s=L({},i,t),L({},l,{sx:s})}const g2=e=>e,l7=()=>{let e=g2;return{configure(t){e=t},generate(t){return e(t)},reset(){e=g2}}},e5=l7();function t5(e){var t,a,i="";if(typeof e=="string"||typeof e=="number")i+=e;else if(typeof e=="object")if(Array.isArray(e)){var l=e.length;for(t=0;t<l;t++)e[t]&&(a=t5(e[t]))&&(i&&(i+=" "),i+=a)}else for(a in e)e[a]&&(i&&(i+=" "),i+=a);return i}function Xe(){for(var e,t,a=0,i="",l=arguments.length;a<l;a++)(e=arguments[a])&&(t=t5(e))&&(i&&(i+=" "),i+=t);return i}const s7=["className","component"];function c7(e={}){const{themeId:t,defaultTheme:a,defaultClassName:i="MuiBox-root",generateClassName:l}=e,s=VC("div",{shouldForwardProp:f=>f!=="theme"&&f!=="sx"&&f!=="as"})(ac);return C.forwardRef(function(d,h){const m=JC(a),v=ZC(d),{className:S,component:w="div"}=v,x=Ue(v,s7);return y.jsx(s,L({as:w,ref:h,className:Xe(S,l?l(i):i),theme:t&&m[t]||m},x))})}const n5={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 r5(e,t,a="Mui"){const i=n5[t];return i?`${a}-${i}`:`${e5.generate(e)}-${t}`}function a5(e,t,a="Mui"){const i={};return t.forEach(l=>{i[l]=r5(e,l,a)}),i}const u7=["ownerState"],f7=["variants"],d7=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function p7(e){return Object.keys(e).length===0}function h7(e){return typeof e=="string"&&e.charCodeAt(0)>96}function Ih(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const m7=QC(),g7=e=>e&&e.charAt(0).toLowerCase()+e.slice(1);function _u({defaultTheme:e,theme:t,themeId:a}){return p7(t)?e:t[a]||t}function v7(e){return e?(t,a)=>a[e]:null}function Fu(e,t){let{ownerState:a}=t,i=Ue(t,u7);const l=typeof e=="function"?e(L({ownerState:a},i)):e;if(Array.isArray(l))return l.flatMap(s=>Fu(s,L({ownerState:a},i)));if(l&&typeof l=="object"&&Array.isArray(l.variants)){const{variants:s=[]}=l;let f=Ue(l,f7);return s.forEach(d=>{let h=!0;typeof d.props=="function"?h=d.props(L({ownerState:a},i,a)):Object.keys(d.props).forEach(m=>{a?.[m]!==d.props[m]&&i[m]!==d.props[m]&&(h=!1)}),h&&(Array.isArray(f)||(f=[f]),f.push(typeof d.style=="function"?d.style(L({ownerState:a},i,a)):d.style))}),f}return l}function y7(e={}){const{themeId:t,defaultTheme:a=m7,rootShouldForwardProp:i=Ih,slotShouldForwardProp:l=Ih}=e,s=u=>ac(L({},u,{theme:_u(L({},u,{defaultTheme:a,themeId:t}))}));return s.__mui_systemSx=!0,(u,f={})=>{u_(u,T=>T.filter(z=>!(z!=null&&z.__mui_systemSx)));const{name:d,slot:h,skipVariantsResolver:m,skipSx:v,overridesResolver:S=v7(g7(h))}=f,w=Ue(f,d7),x=m!==void 0?m:h&&h!=="Root"&&h!=="root"||!1,b=v||!1;let A,j=Ih;h==="Root"||h==="root"?j=i:h?j=l:h7(u)&&(j=void 0);const _=VC(u,L({shouldForwardProp:j,label:A},w)),R=T=>typeof T=="function"&&T.__emotion_real!==T||Za(T)?z=>Fu(T,L({},z,{theme:_u({theme:z.theme,defaultTheme:a,themeId:t})})):T,N=(T,...z)=>{let D=R(T);const V=z?z.map(R):[];d&&S&&V.push(q=>{const $=_u(L({},q,{defaultTheme:a,themeId:t}));if(!$.components||!$.components[d]||!$.components[d].styleOverrides)return null;const H=$.components[d].styleOverrides,U={};return Object.entries(H).forEach(([Y,k])=>{U[Y]=Fu(k,L({},q,{theme:$}))}),S(q,U)}),d&&!x&&V.push(q=>{var $;const H=_u(L({},q,{defaultTheme:a,themeId:t})),U=H==null||($=H.components)==null||($=$[d])==null?void 0:$.variants;return Fu({variants:U},L({},q,{theme:H}))}),b||V.push(s);const Q=V.length-z.length;if(Array.isArray(T)&&Q>0){const q=new Array(Q).fill("");D=[...T,...q],D.raw=[...T.raw,...q]}const Z=_(D,...V);return u.muiName&&(Z.muiName=u.muiName),Z};return _.withConfig&&(N.withConfig=_.withConfig),N}}function i5(e,t){const a=L({},t);return Object.keys(e).forEach(i=>{if(i.toString().match(/^(components|slots)$/))a[i]=L({},e[i],a[i]);else if(i.toString().match(/^(componentsProps|slotProps)$/)){const l=e[i]||{},s=t[i];a[i]={},!s||!Object.keys(s)?a[i]=l:!l||!Object.keys(l)?a[i]=s:(a[i]=L({},s),Object.keys(l).forEach(u=>{a[i][u]=i5(l[u],s[u])}))}else a[i]===void 0&&(a[i]=e[i])}),a}function b7(e){const{theme:t,name:a,props:i}=e;return!t||!t.components||!t.components[a]||!t.components[a].defaultProps?i:i5(t.components[a].defaultProps,i)}function x7({props:e,name:t,defaultTheme:a,themeId:i}){let l=JC(a);return l=l[i]||l,b7({theme:l,name:t,props:e})}const Gi=typeof window<"u"?C.useLayoutEffect:C.useEffect;function S7(e){e=e.slice(1);const t=new RegExp(`.{1,${e.length>=6?2:1}}`,"g");let a=e.match(t);return a&&a[0].length===1&&(a=a.map(i=>i+i)),a?`rgb${a.length===4?"a":""}(${a.map((i,l)=>l<3?parseInt(i,16):Math.round(parseInt(i,16)/255*1e3)/1e3).join(", ")})`:""}function o5(e){if(e.type)return e;if(e.charAt(0)==="#")return o5(S7(e));const t=e.indexOf("("),a=e.substring(0,t);if(["rgb","rgba","hsl","hsla","color"].indexOf(a)===-1)throw new Error(af(9,e));let i=e.substring(t+1,e.length-1),l;if(a==="color"){if(i=i.split(" "),l=i.shift(),i.length===4&&i[3].charAt(0)==="/"&&(i[3]=i[3].slice(1)),["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].indexOf(l)===-1)throw new Error(af(10,l))}else i=i.split(",");return i=i.map(s=>parseFloat(s)),{type:a,values:i,colorSpace:l}}const _i=e=>{const t=o5(e);return t.values.slice(0,3).map((a,i)=>t.type.indexOf("hsl")!==-1&&i!==0?`${a}%`:a).join(" ")};function v2(...e){return e.reduce((t,a)=>a==null?t:function(...l){t.apply(this,l),a.apply(this,l)},()=>{})}function C7(e,t){var a,i;return C.isValidElement(e)&&t.indexOf((a=e.type.muiName)!=null?a:(i=e.type)==null||(i=i._payload)==null||(i=i.value)==null?void 0:i.muiName)!==-1}function Pr(e){return e&&e.ownerDocument||document}function B0(e){return Pr(e).defaultView||window}function Tm(e,t){typeof e=="function"?e(t):e&&(e.current=t)}let y2=0;function E7(e){const[t,a]=C.useState(e),i=e||t;return C.useEffect(()=>{t==null&&(y2+=1,a(`mui-${y2}`))},[t]),i}const b2=Qu.useId;function cf(e){if(b2!==void 0){const t=b2();return e??t}return E7(e)}function x2(e){const t=C.useRef(e);return Gi(()=>{t.current=e}),C.useRef((...a)=>(0,t.current)(...a)).current}function Ht(...e){return C.useMemo(()=>e.every(t=>t==null)?null:t=>{e.forEach(a=>{Tm(a,t)})},e)}let w7=class l5{constructor(){this.currentId=null,this.clear=()=>{this.currentId!==null&&(clearTimeout(this.currentId),this.currentId=null)},this.disposeEffect=()=>this.clear}static create(){return new l5}start(t,a){this.clear(),this.currentId=setTimeout(()=>{this.currentId=null,a()},t)}},Uf=!0,$m=!1;const A7=new w7,R7={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 T7(e){const{type:t,tagName:a}=e;return!!(a==="INPUT"&&R7[t]&&!e.readOnly||a==="TEXTAREA"&&!e.readOnly||e.isContentEditable)}function $7(e){e.metaKey||e.altKey||e.ctrlKey||(Uf=!0)}function Hh(){Uf=!1}function O7(){this.visibilityState==="hidden"&&$m&&(Uf=!0)}function _7(e){e.addEventListener("keydown",$7,!0),e.addEventListener("mousedown",Hh,!0),e.addEventListener("pointerdown",Hh,!0),e.addEventListener("touchstart",Hh,!0),e.addEventListener("visibilitychange",O7,!0)}function j7(e){const{target:t}=e;try{return t.matches(":focus-visible")}catch{}return Uf||T7(t)}function k7(){const e=C.useCallback(l=>{l!=null&&_7(l.ownerDocument)},[]),t=C.useRef(!1);function a(){return t.current?($m=!0,A7.start(100,()=>{$m=!1}),t.current=!1,!0):!1}function i(l){return j7(l)?(t.current=!0,!0):!1}return{isFocusVisibleRef:t,onFocus:i,onBlur:a,ref:e}}function N7(e){const t=e.documentElement.clientWidth;return Math.abs(window.innerWidth-t)}const z7={border:0,clip:"rect(0 0 0 0)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"absolute",whiteSpace:"nowrap",width:"1px"};function Hn(e,t,a=void 0){const i={};return Object.keys(e).forEach(l=>{i[l]=e[l].reduce((s,u)=>{if(u){const f=t(u);f!==""&&s.push(f),a&&a[u]&&s.push(a[u])}return s},[]).join(" ")}),i}function D7(e){return typeof e=="string"}function s5(e,t,a){return e===void 0||D7(e)?t:L({},t,{ownerState:L({},t.ownerState,a)})}function Bn(e,t=[]){if(e===void 0)return{};const a={};return Object.keys(e).filter(i=>i.match(/^on[A-Z]/)&&typeof e[i]=="function"&&!t.includes(i)).forEach(i=>{a[i]=e[i]}),a}function S2(e){if(e===void 0)return{};const t={};return Object.keys(e).filter(a=>!(a.match(/^on[A-Z]/)&&typeof e[a]=="function")).forEach(a=>{t[a]=e[a]}),t}function c5(e){const{getSlotProps:t,additionalProps:a,externalSlotProps:i,externalForwardedProps:l,className:s}=e;if(!t){const w=Xe(a?.className,s,l?.className,i?.className),x=L({},a?.style,l?.style,i?.style),b=L({},a,l,i);return w.length>0&&(b.className=w),Object.keys(x).length>0&&(b.style=x),{props:b,internalRef:void 0}}const u=Bn(L({},l,i)),f=S2(i),d=S2(l),h=t(u),m=Xe(h?.className,a?.className,s,l?.className,i?.className),v=L({},h?.style,a?.style,l?.style,i?.style),S=L({},h,a,d,f);return m.length>0&&(S.className=m),Object.keys(v).length>0&&(S.style=v),{props:S,internalRef:h.ref}}function u5(e,t,a){return typeof e=="function"?e(t,a):e}const M7=["elementType","externalSlotProps","ownerState","skipResolvingSlotProps"];function B7(e){var t;const{elementType:a,externalSlotProps:i,ownerState:l,skipResolvingSlotProps:s=!1}=e,u=Ue(e,M7),f=s?{}:u5(i,l),{props:d,internalRef:h}=c5(L({},u,{externalSlotProps:f})),m=Ht(h,f?.ref,(t=e.additionalProps)==null?void 0:t.ref);return s5(a,L({},d,{ref:m}),l)}function f5(e){if(parseInt(C.version,10)>=19){var t;return(e==null||(t=e.props)==null?void 0:t.ref)||null}return e?.ref||null}function L0(e=""){function t(...i){if(!i.length)return"";const l=i[0];return typeof l=="string"&&!l.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}-`:""}${l}${t(...i.slice(1))})`:`, ${l}`}return(i,...l)=>`var(--${e?`${e}-`:""}${i}${t(...l)})`}const C2=(e,t,a,i=[])=>{let l=e;t.forEach((s,u)=>{u===t.length-1?Array.isArray(l)?l[Number(s)]=a:l&&typeof l=="object"&&(l[s]=a):l&&typeof l=="object"&&(l[s]||(l[s]=i.includes(s)?[]:{}),l=l[s])})},L7=(e,t,a)=>{function i(l,s=[],u=[]){Object.entries(l).forEach(([f,d])=>{(!a||a&&!a([...s,f]))&&d!=null&&(typeof d=="object"&&Object.keys(d).length>0?i(d,[...s,f],Array.isArray(d)?[...u,f]:u):t([...s,f],d,u))})}i(e)},P7=(e,t)=>typeof t=="number"?["lineHeight","fontWeight","opacity","zIndex"].some(i=>e.includes(i))||e[e.length-1].toLowerCase().indexOf("opacity")>=0?t:`${t}px`:t;function Uh(e,t){const{prefix:a,shouldSkipGeneratingVar:i}=t||{},l={},s={},u={};return L7(e,(f,d,h)=>{if((typeof d=="string"||typeof d=="number")&&(!i||!i(f,d))){const m=`--${a?`${a}-`:""}${f.join("-")}`;Object.assign(l,{[m]:P7(f,d)}),C2(s,f,`var(${m})`,h),C2(u,f,`var(${m}, ${d})`,h)}},f=>f[0]==="vars"),{css:l,vars:s,varsWithDefaults:u}}function Fs(e){"@babel/helpers - typeof";return Fs=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},Fs(e)}function I7(e,t){if(Fs(e)!="object"||!e)return e;var a=e[Symbol.toPrimitive];if(a!==void 0){var i=a.call(e,t);if(Fs(i)!="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}function H7(e){var t=I7(e,"string");return Fs(t)=="symbol"?t:t+""}const U7=["colorSchemes","components","defaultColorScheme"];function F7(e,t){const{colorSchemes:a={},defaultColorScheme:i="light"}=e,l=Ue(e,U7),{vars:s,css:u,varsWithDefaults:f}=Uh(l,t);let d=f;const h={},{[i]:m}=a,v=Ue(a,[i].map(H7));if(Object.entries(v||{}).forEach(([w,x])=>{const{vars:b,css:A,varsWithDefaults:j}=Uh(x,t);d=ma(d,j),h[w]={css:A,vars:b}}),m){const{css:w,vars:x,varsWithDefaults:b}=Uh(m,t);d=ma(d,b),h[i]={css:w,vars:x}}return{vars:d,generateCssVars:w=>{var x;if(!w){var b;const j=L({},u);return{css:j,vars:s,selector:(t==null||(b=t.getSelector)==null?void 0:b.call(t,w,j))||":root"}}const A=L({},h[w].css);return{css:A,vars:h[w].vars,selector:(t==null||(x=t.getSelector)==null?void 0:x.call(t,w,A))||":root"}}}}const Un=(e,t)=>r5(e,t,"Mui"),wn=(e,t)=>a5(e,t,"Mui"),V7=L({},Hf,{borderRadius:{themeKey:"radius"},boxShadow:{themeKey:"shadow"},fontFamily:{themeKey:"fontFamily"},fontSize:{themeKey:"fontSize"},fontWeight:{themeKey:"fontWeight"},letterSpacing:{themeKey:"letterSpacing"},lineHeight:{themeKey:"lineHeight"}}),vs={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"}};function q7(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 Y7=e=>e&&typeof e=="object"&&Object.keys(e).some(t=>{var a;return(a=t.match)==null?void 0:a.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))$/)}),E2=(e,t,a)=>{t.includes("Color")&&(e.color=a),t.includes("Bg")&&(e.backgroundColor=a),t.includes("Border")&&(e.borderColor=a)},w2=(e,t,a)=>{const i={};return Object.entries(t||{}).forEach(([l,s])=>{if(l.match(new RegExp(`${e}(color|bg|border)`,"i"))&&s){const u=a?a(l):s;l.includes("Disabled")&&(i.pointerEvents="none",i.cursor="default",i["--Icon-color"]="currentColor"),l.match(/(Hover|Active|Disabled)/)||(i["--variant-borderWidth"]||(i["--variant-borderWidth"]="0px"),l.includes("Border")&&(i["--variant-borderWidth"]="1px",i.border="var(--variant-borderWidth) solid")),E2(i,l,u)}}),i},Zt=(e,t)=>{let a={};if(t){const{getCssVar:i,palette:l}=t;Object.entries(l).forEach(s=>{const[u,f]=s;Y7(f)&&typeof f=="object"&&(a=L({},a,{[u]:w2(e,f,d=>`var(--variant-${d}, ${i(`palette-${u}-${d}`,l[u][d])})`)}))})}return a.context=w2(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)"}),a},G7=["cssVarPrefix","breakpoints","spacing","components","variants","shouldSkipGeneratingVar"],W7=["colorSchemes"],K7=(e="joy")=>L0(e);function X7(e){var t,a,i,l,s,u,f,d,h,m;const v={},{cssVarPrefix:S="joy",breakpoints:w,spacing:x,components:b,variants:A,shouldSkipGeneratingVar:j=q7}=v,_=Ue(v,G7),R=K7(S),N={primary:vs.blue,neutral:vs.grey,danger:vs.red,success:vs.green,warning:vs.yellow,common:{white:"#FFF",black:"#000"}},T=ie=>{var pe;const xe=ie.split("-"),ze=xe[1],mt=xe[2];return R(ie,(pe=N[ze])==null?void 0:pe[mt])},z=ie=>({plainColor:T(`palette-${ie}-500`),plainHoverBg:T(`palette-${ie}-100`),plainActiveBg:T(`palette-${ie}-200`),plainDisabledColor:T("palette-neutral-400"),outlinedColor:T(`palette-${ie}-500`),outlinedBorder:T(`palette-${ie}-300`),outlinedHoverBg:T(`palette-${ie}-100`),outlinedActiveBg:T(`palette-${ie}-200`),outlinedDisabledColor:T("palette-neutral-400"),outlinedDisabledBorder:T("palette-neutral-200"),softColor:T(`palette-${ie}-700`),softBg:T(`palette-${ie}-100`),softHoverBg:T(`palette-${ie}-200`),softActiveColor:T(`palette-${ie}-800`),softActiveBg:T(`palette-${ie}-300`),softDisabledColor:T("palette-neutral-400"),softDisabledBg:T("palette-neutral-50"),solidColor:T("palette-common-white"),solidBg:T(`palette-${ie}-500`),solidHoverBg:T(`palette-${ie}-600`),solidActiveBg:T(`palette-${ie}-700`),solidDisabledColor:T("palette-neutral-400"),solidDisabledBg:T("palette-neutral-100")}),D=ie=>({plainColor:T(`palette-${ie}-300`),plainHoverBg:T(`palette-${ie}-800`),plainActiveBg:T(`palette-${ie}-700`),plainDisabledColor:T("palette-neutral-500"),outlinedColor:T(`palette-${ie}-200`),outlinedBorder:T(`palette-${ie}-700`),outlinedHoverBg:T(`palette-${ie}-800`),outlinedActiveBg:T(`palette-${ie}-700`),outlinedDisabledColor:T("palette-neutral-500"),outlinedDisabledBorder:T("palette-neutral-800"),softColor:T(`palette-${ie}-200`),softBg:T(`palette-${ie}-800`),softHoverBg:T(`palette-${ie}-700`),softActiveColor:T(`palette-${ie}-100`),softActiveBg:T(`palette-${ie}-600`),softDisabledColor:T("palette-neutral-500"),softDisabledBg:T("palette-neutral-800"),solidColor:T("palette-common-white"),solidBg:T(`palette-${ie}-500`),solidHoverBg:T(`palette-${ie}-600`),solidActiveBg:T(`palette-${ie}-700`),solidDisabledColor:T("palette-neutral-500"),solidDisabledBg:T("palette-neutral-800")}),V={palette:{mode:"light",primary:L({},N.primary,z("primary")),neutral:L({},N.neutral,z("neutral"),{plainColor:T("palette-neutral-700"),plainHoverColor:T("palette-neutral-900"),outlinedColor:T("palette-neutral-700")}),danger:L({},N.danger,z("danger")),success:L({},N.success,z("success")),warning:L({},N.warning,z("warning")),common:{white:"#FFF",black:"#000"},text:{primary:T("palette-neutral-800"),secondary:T("palette-neutral-700"),tertiary:T("palette-neutral-600"),icon:T("palette-neutral-500")},background:{body:T("palette-common-white"),surface:T("palette-neutral-50"),popup:T("palette-common-white"),level1:T("palette-neutral-100"),level2:T("palette-neutral-200"),level3:T("palette-neutral-300"),tooltip:T("palette-neutral-500"),backdrop:`rgba(${R("palette-neutral-darkChannel",_i(N.neutral[900]))} / 0.25)`},divider:`rgba(${R("palette-neutral-mainChannel",_i(N.neutral[500]))} / 0.2)`,focusVisible:T("palette-primary-500")},shadowRing:"0 0 #000",shadowChannel:"21 21 21",shadowOpacity:"0.08"},Q={palette:{mode:"dark",primary:L({},N.primary,D("primary")),neutral:L({},N.neutral,D("neutral"),{plainColor:T("palette-neutral-300"),plainHoverColor:T("palette-neutral-300")}),danger:L({},N.danger,D("danger")),success:L({},N.success,D("success")),warning:L({},N.warning,D("warning")),common:{white:"#FFF",black:"#000"},text:{primary:T("palette-neutral-100"),secondary:T("palette-neutral-300"),tertiary:T("palette-neutral-400"),icon:T("palette-neutral-400")},background:{body:T("palette-common-black"),surface:T("palette-neutral-900"),popup:T("palette-common-black"),level1:T("palette-neutral-800"),level2:T("palette-neutral-700"),level3:T("palette-neutral-600"),tooltip:T("palette-neutral-600"),backdrop:`rgba(${R("palette-neutral-darkChannel",_i(N.neutral[50]))} / 0.25)`},divider:`rgba(${R("palette-neutral-mainChannel",_i(N.neutral[500]))} / 0.16)`,focusVisible:T("palette-primary-500")},shadowRing:"0 0 #000",shadowChannel:"0 0 0",shadowOpacity:"0.6"},Z='-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"',q=L({body:`"Inter", ${R(`fontFamily-fallback, ${Z}`)}`,display:`"Inter", ${R(`fontFamily-fallback, ${Z}`)}`,code:"Source Code Pro,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace",fallback:Z},_.fontFamily),$=L({sm:300,md:500,lg:600,xl:700},_.fontWeight),H=L({xs:"0.75rem",sm:"0.875rem",md:"1rem",lg:"1.125rem",xl:"1.25rem",xl2:"1.5rem",xl3:"1.875rem",xl4:"2.25rem"},_.fontSize),U=L({xs:"1.33334",sm:"1.42858",md:"1.5",lg:"1.55556",xl:"1.66667"},_.lineHeight),Y=(t=(a=_.colorSchemes)==null||(a=a.light)==null?void 0:a.shadowRing)!=null?t:V.shadowRing,k=(i=(l=_.colorSchemes)==null||(l=l.light)==null?void 0:l.shadowChannel)!=null?i:V.shadowChannel,P=(s=(u=_.colorSchemes)==null||(u=u.light)==null?void 0:u.shadowOpacity)!=null?s:V.shadowOpacity,J={colorSchemes:{light:V,dark:Q},fontSize:H,fontFamily:q,fontWeight:$,focus:{thickness:"2px",selector:`&.${Un("","focusVisible")}, &:focus-visible`,default:{outlineOffset:`var(--focus-outline-offset, ${R("focus-thickness",(f=(d=_.focus)==null?void 0:d.thickness)!=null?f:"2px")})`,outline:`${R("focus-thickness",(h=(m=_.focus)==null?void 0:m.thickness)!=null?h:"2px")} solid ${R("palette-focusVisible",N.primary[500])}`}},lineHeight:U,radius:{xs:"2px",sm:"6px",md:"8px",lg:"12px",xl:"16px"},shadow:{xs:`${R("shadowRing",Y)}, 0px 1px 2px 0px rgba(${R("shadowChannel",k)} / ${R("shadowOpacity",P)})`,sm:`${R("shadowRing",Y)}, 0px 1px 2px 0px rgba(${R("shadowChannel",k)} / ${R("shadowOpacity",P)}), 0px 2px 4px 0px rgba(${R("shadowChannel",k)} / ${R("shadowOpacity",P)})`,md:`${R("shadowRing",Y)}, 0px 2px 8px -2px rgba(${R("shadowChannel",k)} / ${R("shadowOpacity",P)}), 0px 6px 12px -2px rgba(${R("shadowChannel",k)} / ${R("shadowOpacity",P)})`,lg:`${R("shadowRing",Y)}, 0px 2px 8px -2px rgba(${R("shadowChannel",k)} / ${R("shadowOpacity",P)}), 0px 12px 16px -4px rgba(${R("shadowChannel",k)} / ${R("shadowOpacity",P)})`,xl:`${R("shadowRing",Y)}, 0px 2px 8px -2px rgba(${R("shadowChannel",k)} / ${R("shadowOpacity",P)}), 0px 20px 24px -4px rgba(${R("shadowChannel",k)} / ${R("shadowOpacity",P)})`},zIndex:{badge:1,table:10,popup:1e3,modal:1300,snackbar:1400,tooltip:1500},typography:{h1:{fontFamily:R(`fontFamily-display, ${q.display}`),fontWeight:R(`fontWeight-xl, ${$.xl}`),fontSize:R(`fontSize-xl4, ${H.xl4}`),lineHeight:R(`lineHeight-xs, ${U.xs}`),letterSpacing:"-0.025em",color:R(`palette-text-primary, ${V.palette.text.primary}`)},h2:{fontFamily:R(`fontFamily-display, ${q.display}`),fontWeight:R(`fontWeight-xl, ${$.xl}`),fontSize:R(`fontSize-xl3, ${H.xl3}`),lineHeight:R(`lineHeight-xs, ${U.xs}`),letterSpacing:"-0.025em",color:R(`palette-text-primary, ${V.palette.text.primary}`)},h3:{fontFamily:R(`fontFamily-display, ${q.display}`),fontWeight:R(`fontWeight-lg, ${$.lg}`),fontSize:R(`fontSize-xl2, ${H.xl2}`),lineHeight:R(`lineHeight-xs, ${U.xs}`),letterSpacing:"-0.025em",color:R(`palette-text-primary, ${V.palette.text.primary}`)},h4:{fontFamily:R(`fontFamily-display, ${q.display}`),fontWeight:R(`fontWeight-lg, ${$.lg}`),fontSize:R(`fontSize-xl, ${H.xl}`),lineHeight:R(`lineHeight-md, ${U.md}`),letterSpacing:"-0.025em",color:R(`palette-text-primary, ${V.palette.text.primary}`)},"title-lg":{fontFamily:R(`fontFamily-body, ${q.body}`),fontWeight:R(`fontWeight-lg, ${$.lg}`),fontSize:R(`fontSize-lg, ${H.lg}`),lineHeight:R(`lineHeight-xs, ${U.xs}`),color:R(`palette-text-primary, ${V.palette.text.primary}`)},"title-md":{fontFamily:R(`fontFamily-body, ${q.body}`),fontWeight:R(`fontWeight-md, ${$.md}`),fontSize:R(`fontSize-md, ${H.md}`),lineHeight:R(`lineHeight-md, ${U.md}`),color:R(`palette-text-primary, ${V.palette.text.primary}`)},"title-sm":{fontFamily:R(`fontFamily-body, ${q.body}`),fontWeight:R(`fontWeight-md, ${$.md}`),fontSize:R(`fontSize-sm, ${H.sm}`),lineHeight:R(`lineHeight-sm, ${U.sm}`),color:R(`palette-text-primary, ${V.palette.text.primary}`)},"body-lg":{fontFamily:R(`fontFamily-body, ${q.body}`),fontSize:R(`fontSize-lg, ${H.lg}`),lineHeight:R(`lineHeight-md, ${U.md}`),color:R(`palette-text-secondary, ${V.palette.text.secondary}`)},"body-md":{fontFamily:R(`fontFamily-body, ${q.body}`),fontSize:R(`fontSize-md, ${H.md}`),lineHeight:R(`lineHeight-md, ${U.md}`),color:R(`palette-text-secondary, ${V.palette.text.secondary}`)},"body-sm":{fontFamily:R(`fontFamily-body, ${q.body}`),fontSize:R(`fontSize-sm, ${H.sm}`),lineHeight:R(`lineHeight-md, ${U.md}`),color:R(`palette-text-tertiary, ${V.palette.text.tertiary}`)},"body-xs":{fontFamily:R(`fontFamily-body, ${q.body}`),fontWeight:R(`fontWeight-md, ${$.md}`),fontSize:R(`fontSize-xs, ${H.xs}`),lineHeight:R(`lineHeight-md, ${U.md}`),color:R(`palette-text-tertiary, ${V.palette.text.tertiary}`)}}},ue=_?ma(J,_):J,{colorSchemes:ye}=ue,M=Ue(ue,W7),G=L({colorSchemes:ye},M,{breakpoints:YC(w??{}),components:ma({MuiSvgIcon:{defaultProps:{fontSize:"xl2"},styleOverrides:{root:({ownerState:ie,theme:pe})=>{var xe;const ze=ie.instanceFontSize;return L({margin:"var(--Icon-margin)"},ie.fontSize&&ie.fontSize!=="inherit"&&{fontSize:`var(--Icon-fontSize, ${pe.vars.fontSize[ie.fontSize]})`},!ie.htmlColor&&L({color:`var(--Icon-color, ${G.vars.palette.text.icon})`},ie.color&&ie.color!=="inherit"&&pe.vars.palette[ie.color]&&{color:`rgba(${(xe=pe.vars.palette[ie.color])==null?void 0:xe.mainChannel} / 1)`}),ze&&ze!=="inherit"&&{"--Icon-fontSize":pe.vars.fontSize[ze]})}}}},b),cssVarPrefix:S,getCssVar:R,spacing:KC(x)});function le(ie,pe){Object.keys(pe).forEach(xe=>{const ze={main:"500",light:"200",dark:"700"};ie==="dark"&&(ze.main=400),!pe[xe].mainChannel&&pe[xe][ze.main]&&(pe[xe].mainChannel=_i(pe[xe][ze.main])),!pe[xe].lightChannel&&pe[xe][ze.light]&&(pe[xe].lightChannel=_i(pe[xe][ze.light])),!pe[xe].darkChannel&&pe[xe][ze.dark]&&(pe[xe].darkChannel=_i(pe[xe][ze.dark]))})}Object.entries(G.colorSchemes).forEach(([ie,pe])=>{le(ie,pe.palette)});const ce={prefix:S,shouldSkipGeneratingVar:j},{vars:de,generateCssVars:me}=F7(L({colorSchemes:ye},M),ce);G.vars=de,G.generateCssVars=me,G.unstable_sxConfig=L({},V7,void 0),G.unstable_sx=function(pe){return ac({sx:pe,theme:this})},G.getColorSchemeSelector=ie=>ie==="light"?"&":`&[data-joy-color-scheme="${ie}"], [data-joy-color-scheme="${ie}"] &`;const se={getCssVar:R,palette:G.colorSchemes.light.palette};return G.variants=ma({plain:Zt("plain",se),plainHover:Zt("plainHover",se),plainActive:Zt("plainActive",se),plainDisabled:Zt("plainDisabled",se),outlined:Zt("outlined",se),outlinedHover:Zt("outlinedHover",se),outlinedActive:Zt("outlinedActive",se),outlinedDisabled:Zt("outlinedDisabled",se),soft:Zt("soft",se),softHover:Zt("softHover",se),softActive:Zt("softActive",se),softDisabled:Zt("softDisabled",se),solid:Zt("solid",se),solidHover:Zt("solidHover",se),solidActive:Zt("solidActive",se),solidDisabled:Zt("solidDisabled",se)},A),G.palette=L({},G.colorSchemes.light.palette,{colorScheme:"light"}),G.shouldSkipGeneratingVar=j,G.applyStyles=XC,G}const P0=X7(),I0="$$joy",Q7=a5("MuiBox",["root"]),J7=c7({themeId:I0,defaultTheme:P0,defaultClassName:Q7.root,generateClassName:e5.generate});function Z7(e){const{rootElementName:t=""}=e,[a,i]=C.useState(t.toUpperCase()),l=C.useCallback(s=>{var u;i((u=s?.tagName)!=null?u:"")},[]);return[a,l]}function gl(e={}){const{disabled:t=!1,focusableWhenDisabled:a,href:i,rootRef:l,tabIndex:s,to:u,type:f,rootElementName:d}=e,h=C.useRef(null),[m,v]=C.useState(!1),{isFocusVisibleRef:S,onFocus:w,onBlur:x,ref:b}=k7(),[A,j]=C.useState(!1);t&&!a&&A&&j(!1),C.useEffect(()=>{S.current=A},[A,S]);const[_,R]=Z7({rootElementName:d??(i||u?"a":void 0)}),N=Y=>k=>{var P;A&&k.preventDefault(),(P=Y.onMouseLeave)==null||P.call(Y,k)},T=Y=>k=>{var P;x(k),S.current===!1&&j(!1),(P=Y.onBlur)==null||P.call(Y,k)},z=Y=>k=>{var P;if(h.current||(h.current=k.currentTarget),w(k),S.current===!0){var J;j(!0),(J=Y.onFocusVisible)==null||J.call(Y,k)}(P=Y.onFocus)==null||P.call(Y,k)},D=()=>{const Y=h.current;return _==="BUTTON"||_==="INPUT"&&["button","submit","reset"].includes(Y?.type)||_==="A"&&Y?.href},V=Y=>k=>{if(!t){var P;(P=Y.onClick)==null||P.call(Y,k)}},Q=Y=>k=>{var P;t||(v(!0),document.addEventListener("mouseup",()=>{v(!1)},{once:!0})),(P=Y.onMouseDown)==null||P.call(Y,k)},Z=Y=>k=>{var P;if((P=Y.onKeyDown)==null||P.call(Y,k),!k.defaultMuiPrevented&&(k.target===k.currentTarget&&!D()&&k.key===" "&&k.preventDefault(),k.target===k.currentTarget&&k.key===" "&&!t&&v(!0),k.target===k.currentTarget&&!D()&&k.key==="Enter"&&!t)){var J;(J=Y.onClick)==null||J.call(Y,k),k.preventDefault()}},q=Y=>k=>{var P;if(k.target===k.currentTarget&&v(!1),(P=Y.onKeyUp)==null||P.call(Y,k),k.target===k.currentTarget&&!D()&&!t&&k.key===" "&&!k.defaultMuiPrevented){var J;(J=Y.onClick)==null||J.call(Y,k)}},$=Ht(R,l,b,h),H={};return s!==void 0&&(H.tabIndex=s),_==="BUTTON"?(H.type=f??"button",a?H["aria-disabled"]=t:H.disabled=t):_==="INPUT"?f&&["button","submit","reset"].includes(f)&&(a?H["aria-disabled"]=t:H.disabled=t):_!==""&&(!i&&!u&&(H.role="button",H.tabIndex=s??0),t&&(H["aria-disabled"]=t,H.tabIndex=a?s??0:-1)),{getRootProps:(Y={})=>{const k=L({},Bn(e),Bn(Y)),P=L({type:f},k,H,Y,{onBlur:T(k),onClick:V(k),onFocus:z(k),onKeyDown:Z(k),onKeyUp:q(k),onMouseDown:Q(k),onMouseLeave:N(k),ref:$});return delete P.onFocusVisible,P},focusVisible:A,setFocusVisible:j,active:m,rootRef:$}}const _e=y7({defaultTheme:P0,themeId:I0});function dr({props:e,name:t}){return x7({props:e,name:t,defaultTheme:L({},P0,{components:{}}),themeId:I0})}function A2(e,t,a=(i,l)=>i===l){return e.length===t.length&&e.every((i,l)=>a(i,t[l]))}const ej={disableDefaultClasses:!1},tj=C.createContext(ej);function nj(e){const{disableDefaultClasses:t}=C.useContext(tj);return a=>t?"":e(a)}const rj=["className","elementType","ownerState","externalForwardedProps","getSlotOwnerState","internalForwardedProps"],aj=["component","slots","slotProps"],ij=["component"];function We(e,t){const{className:a,elementType:i,ownerState:l,externalForwardedProps:s,getSlotOwnerState:u,internalForwardedProps:f}=t,d=Ue(t,rj),{component:h,slots:m={[e]:void 0},slotProps:v={[e]:void 0}}=s,S=Ue(s,aj),w=m[e]||i,x=u5(v[e],l),b=c5(L({className:a},d,{externalForwardedProps:e==="root"?S:void 0,externalSlotProps:x})),{props:{component:A},internalRef:j}=b,_=Ue(b.props,ij),R=Ht(j,x?.ref,t.ref),N=u?u(_):{},T=L({},l,N),z=e==="root"?A||h:A,D=s5(w,L({},e==="root"&&!h&&!m[e]&&f,e!=="root"&&!m[e]&&f,_,z&&{as:z},{ref:R}),T);return Object.keys(N).forEach(V=>{delete D[V]}),[w,D]}function oj(e){return Un("MuiIconButton",e)}wn("MuiIconButton",["root","colorPrimary","colorNeutral","colorDanger","colorSuccess","colorWarning","colorContext","variantPlain","variantOutlined","variantSoft","variantSolid","focusVisible","disabled","sizeSm","sizeMd","sizeLg","loading","loadingIndicator"]);const d5=C.createContext({}),p5=C.createContext(void 0),h5="base";function lj(e){return`${h5}--${e}`}function sj(e,t){return`${h5}-${e}-${t}`}function cj(e,t){const a=n5[t];return a?lj(a):sj(e,t)}function uj(e,t){return e===t}const Fh={},R2=()=>{};function Om(e,t){const a=L({},e);return Object.keys(t).forEach(i=>{t[i]!==void 0&&(a[i]=t[i])}),a}function fj(e){const{nextState:t,initialState:a,stateComparers:i,onStateChange:l,controlledProps:s,lastActionRef:u}=e,f=C.useRef(a);C.useEffect(()=>{if(u.current===null)return;const d=Om(f.current,s);Object.keys(t).forEach(h=>{var m;const v=(m=i[h])!=null?m:uj,S=t[h],w=d[h];if(w==null&&S!=null||w!=null&&S==null||w!=null&&S!=null&&!v(S,w)){var x,b;l?.((x=u.current.event)!=null?x:null,h,S,(b=u.current.type)!=null?b:"",t)}}),f.current=t,u.current=null},[f,t,u,l,i,s])}function dj(e){const t=C.useRef(null),{reducer:a,initialState:i,controlledProps:l=Fh,stateComparers:s=Fh,onStateChange:u=R2,actionContext:f}=e;C.useRef(l);const d=C.useCallback((S,w)=>{t.current=w;const x=Om(S,l);return a(x,w)},[l,a]),[h,m]=C.useReducer(d,i),v=C.useCallback(S=>{m(L({},S,{context:f}))},[f]);return fj({nextState:h,initialState:i,stateComparers:s??Fh,onStateChange:u??R2,controlledProps:l,lastActionRef:t}),[Om(h,l),v]}const pj=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function hj(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 mj(e){if(e.tagName!=="INPUT"||e.type!=="radio"||!e.name)return!1;const t=i=>e.ownerDocument.querySelector(`input[type="radio"]${i}`);let a=t(`[name="${e.name}"]:checked`);return a||(a=t(`[name="${e.name}"]`)),a!==e}function gj(e){return!(e.disabled||e.tagName==="INPUT"&&e.type==="hidden"||mj(e))}function vj(e){const t=[],a=[];return Array.from(e.querySelectorAll(pj)).forEach((i,l)=>{const s=hj(i);s===-1||!gj(i)||(s===0?t.push(i):a.push({documentOrder:l,tabIndex:s,node:i}))}),a.sort((i,l)=>i.tabIndex===l.tabIndex?i.documentOrder-l.documentOrder:i.tabIndex-l.tabIndex).map(i=>i.node).concat(t)}function yj(){return!0}function bj(e){const{children:t,disableAutoFocus:a=!1,disableEnforceFocus:i=!1,disableRestoreFocus:l=!1,getTabbable:s=vj,isEnabled:u=yj,open:f}=e,d=C.useRef(!1),h=C.useRef(null),m=C.useRef(null),v=C.useRef(null),S=C.useRef(null),w=C.useRef(!1),x=C.useRef(null),b=Ht(f5(t),x),A=C.useRef(null);C.useEffect(()=>{!f||!x.current||(w.current=!a)},[a,f]),C.useEffect(()=>{if(!f||!x.current)return;const R=Pr(x.current);return x.current.contains(R.activeElement)||(x.current.hasAttribute("tabIndex")||x.current.setAttribute("tabIndex","-1"),w.current&&x.current.focus()),()=>{l||(v.current&&v.current.focus&&(d.current=!0,v.current.focus()),v.current=null)}},[f]),C.useEffect(()=>{if(!f||!x.current)return;const R=Pr(x.current),N=D=>{A.current=D,!(i||!u()||D.key!=="Tab")&&R.activeElement===x.current&&D.shiftKey&&(d.current=!0,m.current&&m.current.focus())},T=()=>{const D=x.current;if(D===null)return;if(!R.hasFocus()||!u()||d.current){d.current=!1;return}if(D.contains(R.activeElement)||i&&R.activeElement!==h.current&&R.activeElement!==m.current)return;if(R.activeElement!==S.current)S.current=null;else if(S.current!==null)return;if(!w.current)return;let V=[];if((R.activeElement===h.current||R.activeElement===m.current)&&(V=s(x.current)),V.length>0){var Q,Z;const q=!!((Q=A.current)!=null&&Q.shiftKey&&((Z=A.current)==null?void 0:Z.key)==="Tab"),$=V[0],H=V[V.length-1];typeof $!="string"&&typeof H!="string"&&(q?H.focus():$.focus())}else D.focus()};R.addEventListener("focusin",T),R.addEventListener("keydown",N,!0);const z=setInterval(()=>{R.activeElement&&R.activeElement.tagName==="BODY"&&T()},50);return()=>{clearInterval(z),R.removeEventListener("focusin",T),R.removeEventListener("keydown",N,!0)}},[a,i,l,u,f,s]);const j=R=>{v.current===null&&(v.current=R.relatedTarget),w.current=!0,S.current=R.target;const N=t.props.onFocus;N&&N(R)},_=R=>{v.current===null&&(v.current=R.relatedTarget),w.current=!0};return y.jsxs(C.Fragment,{children:[y.jsx("div",{tabIndex:f?0:-1,onFocus:_,ref:h,"data-testid":"sentinelStart"}),C.cloneElement(t,{ref:b,onFocus:j}),y.jsx("div",{tabIndex:f?0:-1,onFocus:_,ref:m,"data-testid":"sentinelEnd"})]})}const xj=C.createContext(void 0);function Sj(){return C.useContext(xj)}function Cj(e={}){const{defaultValue:t,disabled:a=!1,error:i=!1,onBlur:l,onChange:s,onFocus:u,required:f=!1,value:d,inputRef:h}=e,m=Sj();let v,S,w,x,b;if(m){var A,j,_;v=void 0,S=(A=m.disabled)!=null?A:!1,w=(j=m.error)!=null?j:!1,x=(_=m.required)!=null?_:!1,b=m.value}else v=t,S=a,w=i,x=f,b=d;const{current:R}=C.useRef(b!=null),N=C.useCallback(Y=>{},[]),T=C.useRef(null),z=Ht(T,h,N),[D,V]=C.useState(!1);C.useEffect(()=>{!m&&S&&D&&(V(!1),l?.())},[m,S,D,l]);const Q=Y=>k=>{var P;if(m!=null&&m.disabled){k.stopPropagation();return}if((P=Y.onFocus)==null||P.call(Y,k),m&&m.onFocus){var J;m==null||(J=m.onFocus)==null||J.call(m)}else V(!0)},Z=Y=>k=>{var P;(P=Y.onBlur)==null||P.call(Y,k),m&&m.onBlur?m.onBlur():V(!1)},q=Y=>(k,...P)=>{var J,ue;if(!R&&(k.target||T.current)==null)throw new Error(af(17));m==null||(J=m.onChange)==null||J.call(m,k),(ue=Y.onChange)==null||ue.call(Y,k,...P)},$=Y=>k=>{var P;T.current&&k.currentTarget===k.target&&T.current.focus(),(P=Y.onClick)==null||P.call(Y,k)};return{disabled:S,error:w,focused:D,formControlContext:m,getInputProps:(Y={})=>{const P=L({},{onBlur:l,onChange:s,onFocus:u},Bn(Y)),J=L({},P,{onBlur:Z(P),onChange:q(P),onFocus:Q(P)});return L({},J,{"aria-invalid":w||void 0,defaultValue:v,value:b,required:x,disabled:S},Y,{ref:z},J)},getRootProps:(Y={})=>{const k=Bn(e,["onBlur","onChange","onFocus"]),P=L({},k,Bn(Y));return L({},Y,P,{onClick:$(P)})},inputRef:z,required:x,value:b}}const Et={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 Ej(e,t,a,i,l,s){if(a.length===0||!i&&a.every((f,d)=>l(f,d)))return-1;let u=e;for(;;){if(!s&&t==="next"&&u===a.length||!s&&t==="previous"&&u===-1)return-1;if(i?!1:l(a[u],u))u+=t==="next"?1:-1,s&&(u=(u+a.length)%a.length);else return u}}function Wt(e,t,a){var i;const{items:l,isItemDisabled:s,disableListWrap:u,disabledItemsFocusable:f,itemComparer:d,focusManagement:h}=a,m=h==="DOM"?0:-1,v=l.length-1,S=e==null?-1:l.findIndex(j=>d(j,e));let w,x,b=!u;switch(t){case"reset":if(m===-1)return null;w=0,x="next",b=!1;break;case"start":w=0,x="next",b=!1;break;case"end":w=v,x="previous",b=!1;break;default:{const j=S+t;j<0?!b&&S!==-1||Math.abs(t)>1?(w=0,x="next"):(w=v,x="previous"):j>v?!b||Math.abs(t)>1?(w=v,x="previous"):(w=0,x="next"):(w=j,x=t>=0?"next":"previous")}}const A=Ej(w,x,l,f,s,b);return A===-1&&e!==null&&!s(e,S)?e:(i=l[A])!=null?i:null}function wj(e,t,a,i){return a==="none"?[]:a==="single"?i(t[0],e)?t:[e]:t.some(l=>i(l,e))?t.filter(l=>!i(l,e)):[...t,e]}function H0(e,t,a){const{itemComparer:i,isItemDisabled:l,selectionMode:s,items:u}=a,{selectedValues:f}=t,d=u.findIndex(m=>i(e,m));if(l(e,d))return t;const h=wj(e,f,s,i);return L({},t,{selectedValues:h,highlightedValue:e})}function Aj(e,t,a){const i=t.highlightedValue,{orientation:l,pageSize:s}=a;switch(e){case"Home":return L({},t,{highlightedValue:Wt(i,"start",a)});case"End":return L({},t,{highlightedValue:Wt(i,"end",a)});case"PageUp":return L({},t,{highlightedValue:Wt(i,-s,a)});case"PageDown":return L({},t,{highlightedValue:Wt(i,s,a)});case"ArrowUp":if(l!=="vertical")break;return L({},t,{highlightedValue:Wt(i,-1,a)});case"ArrowDown":if(l!=="vertical")break;return L({},t,{highlightedValue:Wt(i,1,a)});case"ArrowLeft":{if(l==="vertical")break;return L({},t,{highlightedValue:Wt(i,l==="horizontal-ltr"?-1:1,a)})}case"ArrowRight":{if(l==="vertical")break;return L({},t,{highlightedValue:Wt(i,l==="horizontal-ltr"?1:-1,a)})}case"Enter":case" ":return t.highlightedValue===null?t:H0(t.highlightedValue,t,a)}return t}function Rj(e,t){return t.focusManagement==="DOM"?e:L({},e,{highlightedValue:null})}function Tj(e,t,a){var i;const l=(i=a(e))==null?void 0:i.trim().toLowerCase();return!l||l.length===0?!1:l.indexOf(t)===0}function $j(e,t,a){const{items:i,isItemDisabled:l,disabledItemsFocusable:s,getItemAsString:u}=a,f=t.length>1;let d=f?e.highlightedValue:Wt(e.highlightedValue,1,a);for(let h=0;h<i.length;h+=1){if(!d||!f&&e.highlightedValue===d)return e;if(Tj(d,t,u)&&(!l(d,i.indexOf(d))||s))return L({},e,{highlightedValue:d});d=Wt(d,1,a)}return e}function Oj(e,t,a,i){var l;const{itemComparer:s,focusManagement:u}=i;let f=null;if(a.highlightedValue!=null){var d;f=(d=e.find(v=>s(v,a.highlightedValue)))!=null?d:null}else u==="DOM"&&t.length===0&&(f=Wt(null,"reset",i));const m=((l=a.selectedValues)!=null?l:[]).filter(v=>e.some(S=>s(S,v)));return L({},a,{highlightedValue:f,selectedValues:m})}function _j(e,t){return L({},e,{highlightedValue:Wt(null,"reset",t)})}function jj(e,t){return L({},e,{highlightedValue:Wt(null,"end",t)})}function kj(e,t){return L({},e,{selectedValues:[],highlightedValue:Wt(null,"reset",t)})}function m5(e,t){const{type:a,context:i}=t;switch(a){case Et.keyDown:return Aj(t.key,e,i);case Et.itemClick:return H0(t.item,e,i);case Et.blur:return Rj(e,i);case Et.textNavigation:return $j(e,t.searchString,i);case Et.itemsChange:return Oj(t.items,t.previousItems,e,i);case Et.resetHighlight:return _j(e,i);case Et.highlightLast:return jj(e,i);case Et.clearSelection:return kj(e,i);default:return e}}const Nj=500;function zj(e){const t=C.useRef({searchString:"",lastTime:null});return C.useCallback(a=>{if(a.key.length===1&&a.key!==" "){const i=t.current,l=a.key.toLowerCase(),s=performance.now();i.searchString.length>0&&i.lastTime&&s-i.lastTime>Nj?i.searchString=l:(i.searchString.length!==1||l!==i.searchString)&&(i.searchString+=l),i.lastTime=s,e(i.searchString,a)}},[e])}const T2={},Dj=()=>{},Mj=(e,t)=>e===t,Bj=()=>!1,Lj=e=>typeof e=="string"?e:String(e),Pj=()=>({highlightedValue:null,selectedValues:[]});function Ij(e){const{controlledProps:t=T2,disabledItemsFocusable:a=!1,disableListWrap:i=!1,focusManagement:l="activeDescendant",getInitialState:s=Pj,getItemDomElement:u,getItemId:f,isItemDisabled:d=Bj,rootRef:h,onStateChange:m=Dj,items:v,itemComparer:S=Mj,getItemAsString:w=Lj,onChange:x,onHighlightChange:b,onItemsChange:A,orientation:j="vertical",pageSize:_=5,reducerActionContext:R=T2,selectionMode:N="single",stateReducer:T,componentName:z="useList"}=e,D=C.useRef(null),V=Ht(h,D),Q=C.useCallback((se,ie,pe)=>{if(b?.(se,ie,pe),l==="DOM"&&ie!=null&&(pe===Et.itemClick||pe===Et.keyDown||pe===Et.textNavigation)){var xe;u==null||(xe=u(ie))==null||xe.focus()}},[u,b,l]),Z=C.useMemo(()=>({highlightedValue:S,selectedValues:(se,ie)=>A2(se,ie,S)}),[S]),q=C.useCallback((se,ie,pe,xe,ze)=>{switch(m?.(se,ie,pe,xe,ze),ie){case"highlightedValue":Q(se,pe,xe);break;case"selectedValues":x?.(se,pe,xe);break}},[Q,x,m]),$=C.useMemo(()=>({disabledItemsFocusable:a,disableListWrap:i,focusManagement:l,isItemDisabled:d,itemComparer:S,items:v,getItemAsString:w,onHighlightChange:Q,orientation:j,pageSize:_,selectionMode:N,stateComparers:Z}),[a,i,l,d,S,v,w,Q,j,_,N,Z]),H=s(),U=T??m5,Y=C.useMemo(()=>L({},R,$),[R,$]),[k,P]=dj({reducer:U,actionContext:Y,initialState:H,controlledProps:t,stateComparers:Z,onStateChange:q}),{highlightedValue:J,selectedValues:ue}=k,ye=zj((se,ie)=>P({type:Et.textNavigation,event:ie,searchString:se})),M=C.useRef([]);C.useEffect(()=>{A2(M.current,v,S)||(P({type:Et.itemsChange,event:null,items:v,previousItems:M.current}),M.current=v,A?.(v))},[v,S,P,A]);const G=se=>ie=>{var pe;if((pe=se.onKeyDown)==null||pe.call(se,ie),ie.defaultMuiPrevented)return;const xe=["Home","End","PageUp","PageDown"];j==="vertical"?xe.push("ArrowUp","ArrowDown"):xe.push("ArrowLeft","ArrowRight"),l==="activeDescendant"&&xe.push(" ","Enter"),xe.includes(ie.key)&&ie.preventDefault(),P({type:Et.keyDown,key:ie.key,event:ie}),ye(ie)},le=se=>ie=>{var pe,xe;(pe=se.onBlur)==null||pe.call(se,ie),!ie.defaultMuiPrevented&&((xe=D.current)!=null&&xe.contains(ie.relatedTarget)||P({type:Et.blur,event:ie}))},ce=(se={})=>{const ie=Bn(se);return L({},se,{"aria-activedescendant":l==="activeDescendant"&&J!=null?f(J):void 0,tabIndex:l==="DOM"?-1:0,ref:V},ie,{onBlur:le(ie),onKeyDown:G(ie)})},de=C.useCallback(se=>{const ie=(ue??[]).some(ze=>ze!=null&&S(se,ze)),pe=J!=null&&S(se,J);return{focusable:l==="DOM",highlighted:pe,selected:ie}},[S,ue,J,l]),me=C.useMemo(()=>({dispatch:P,getItemState:de}),[P,de]);return C.useDebugValue({state:k}),{contextValue:me,dispatch:P,getRootProps:ce,rootRef:V,state:k}}const Ff=C.createContext(null);function Hj(e){const{handlePointerOverEvents:t=!1,item:a}=e,i=C.useContext(Ff);if(!i)throw new Error("useListItem must be used within a ListProvider");const{dispatch:l,getItemState:s}=i,{highlighted:u,selected:f,focusable:d}=s(a),h=C.useCallback(w=>x=>{var b;(b=w.onClick)==null||b.call(w,x),!x.defaultPrevented&&l({type:Et.itemClick,item:a,event:x})},[l,a]),m=C.useCallback(w=>x=>{var b;(b=w.onMouseOver)==null||b.call(w,x),!x.defaultPrevented&&l({type:Et.itemHover,item:a,event:x})},[l,a]);let v;return d&&(v=u?0:-1),{getRootProps:(w={})=>{const x=Bn(w);return L({},w,{onClick:h(x),onPointerOver:t?m(x):void 0,tabIndex:v})},highlighted:u,selected:f}}const g5=C.createContext(null);function Uj(e){const t=Array.from(e.keys()).map(a=>{const i=e.get(a);return{key:a,subitem:i}});return t.sort((a,i)=>{const l=a.subitem.ref.current,s=i.subitem.ref.current;return l===null||s===null||l===s?0:l.compareDocumentPosition(s)&Node.DOCUMENT_POSITION_PRECEDING?1:-1}),new Map(t.map(a=>[a.key,a.subitem]))}function Fj(){const[e,t]=C.useState(new Map),a=C.useRef(new Set),i=C.useCallback(function(h){a.current.delete(h),t(m=>{const v=new Map(m);return v.delete(h),v})},[]),l=C.useCallback(function(h,m){let v;return typeof h=="function"?v=h(a.current):v=h,a.current.add(v),t(S=>{const w=new Map(S);return w.set(v,m),w}),{id:v,deregister:()=>i(v)}},[i]),s=C.useMemo(()=>Uj(e),[e]),u=C.useCallback(function(h){return Array.from(s.keys()).indexOf(h)},[s]);return{contextValue:C.useMemo(()=>({getItemIndex:u,registerItem:l,totalSubitemCount:e.size}),[u,l,e.size]),subitems:s}}function Vj(e,t){const a=C.useContext(g5);if(a===null)throw new Error("useCompoundItem must be used within a useCompoundParent");const{registerItem:i}=a,[l,s]=C.useState(typeof e=="function"?void 0:e);return Gi(()=>{const{id:u,deregister:f}=i(e,t);return s(u),f},[i,t,e]),{id:l,index:l!==void 0?a.getItemIndex(l):-1,totalItemCount:a.totalSubitemCount}}function uf(e,t){return function(i={}){const l=L({},i,e(i));return L({},l,t(l))}}var qj=eS();function Yj(e){return typeof e=="function"?e():e}const v5=C.forwardRef(function(t,a){const{children:i,container:l,disablePortal:s=!1}=t,[u,f]=C.useState(null),d=Ht(C.isValidElement(i)?f5(i):null,a);if(Gi(()=>{s||f(Yj(l)||document.body)},[l,s]),Gi(()=>{if(u&&!s)return Tm(a,u),()=>{Tm(a,null)}},[a,u,s]),s){if(C.isValidElement(i)){const h={ref:d};return C.cloneElement(i,h)}return y.jsx(C.Fragment,{children:i})}return y.jsx(C.Fragment,{children:u&&qj.createPortal(i,u)})});function Gj(e){const t=Pr(e);return t.body===e?B0(e).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}function ks(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function $2(e){return parseInt(B0(e).getComputedStyle(e).paddingRight,10)||0}function Wj(e){const a=["TEMPLATE","SCRIPT","STYLE","LINK","MAP","META","NOSCRIPT","PICTURE","COL","COLGROUP","PARAM","SLOT","SOURCE","TRACK"].indexOf(e.tagName)!==-1,i=e.tagName==="INPUT"&&e.getAttribute("type")==="hidden";return a||i}function O2(e,t,a,i,l){const s=[t,a,...i];[].forEach.call(e.children,u=>{const f=s.indexOf(u)===-1,d=!Wj(u);f&&d&&ks(u,l)})}function Vh(e,t){let a=-1;return e.some((i,l)=>t(i)?(a=l,!0):!1),a}function Kj(e,t){const a=[],i=e.container;if(!t.disableScrollLock){if(Gj(i)){const u=N7(Pr(i));a.push({value:i.style.paddingRight,property:"padding-right",el:i}),i.style.paddingRight=`${$2(i)+u}px`;const f=Pr(i).querySelectorAll(".mui-fixed");[].forEach.call(f,d=>{a.push({value:d.style.paddingRight,property:"padding-right",el:d}),d.style.paddingRight=`${$2(d)+u}px`})}let s;if(i.parentNode instanceof DocumentFragment)s=Pr(i).body;else{const u=i.parentElement,f=B0(i);s=u?.nodeName==="HTML"&&f.getComputedStyle(u).overflowY==="scroll"?u:i}a.push({value:s.style.overflow,property:"overflow",el:s},{value:s.style.overflowX,property:"overflow-x",el:s},{value:s.style.overflowY,property:"overflow-y",el:s}),s.style.overflow="hidden"}return()=>{a.forEach(({value:s,el:u,property:f})=>{s?u.style.setProperty(f,s):u.style.removeProperty(f)})}}function Xj(e){const t=[];return[].forEach.call(e.children,a=>{a.getAttribute("aria-hidden")==="true"&&t.push(a)}),t}class Qj{constructor(){this.containers=void 0,this.modals=void 0,this.modals=[],this.containers=[]}add(t,a){let i=this.modals.indexOf(t);if(i!==-1)return i;i=this.modals.length,this.modals.push(t),t.modalRef&&ks(t.modalRef,!1);const l=Xj(a);O2(a,t.mount,t.modalRef,l,!0);const s=Vh(this.containers,u=>u.container===a);return s!==-1?(this.containers[s].modals.push(t),i):(this.containers.push({modals:[t],container:a,restore:null,hiddenSiblings:l}),i)}mount(t,a){const i=Vh(this.containers,s=>s.modals.indexOf(t)!==-1),l=this.containers[i];l.restore||(l.restore=Kj(l,a))}remove(t,a=!0){const i=this.modals.indexOf(t);if(i===-1)return i;const l=Vh(this.containers,u=>u.modals.indexOf(t)!==-1),s=this.containers[l];if(s.modals.splice(s.modals.indexOf(t),1),this.modals.splice(i,1),s.modals.length===0)s.restore&&s.restore(),t.modalRef&&ks(t.modalRef,a),O2(s.container,t.mount,t.modalRef,s.hiddenSiblings,!1),this.containers.splice(l,1);else{const u=s.modals[s.modals.length-1];u.modalRef&&ks(u.modalRef,!1)}return i}isTopModal(t){return this.modals.length>0&&this.modals[this.modals.length-1]===t}}function Jj(e){return typeof e=="function"?e():e}function Zj(e){return e?e.props.hasOwnProperty("in"):!1}const ek=new Qj;function tk(e){const{container:t,disableEscapeKeyDown:a=!1,disableScrollLock:i=!1,manager:l=ek,closeAfterTransition:s=!1,onTransitionEnter:u,onTransitionExited:f,children:d,onClose:h,open:m,rootRef:v}=e,S=C.useRef({}),w=C.useRef(null),x=C.useRef(null),b=Ht(x,v),[A,j]=C.useState(!m),_=Zj(d);let R=!0;(e["aria-hidden"]==="false"||e["aria-hidden"]===!1)&&(R=!1);const N=()=>Pr(w.current),T=()=>(S.current.modalRef=x.current,S.current.mount=w.current,S.current),z=()=>{l.mount(T(),{disableScrollLock:i}),x.current&&(x.current.scrollTop=0)},D=x2(()=>{const k=Jj(t)||N().body;l.add(T(),k),x.current&&z()}),V=C.useCallback(()=>l.isTopModal(T()),[l]),Q=x2(k=>{w.current=k,k&&(m&&V()?z():x.current&&ks(x.current,R))}),Z=C.useCallback(()=>{l.remove(T(),R)},[R,l]);C.useEffect(()=>()=>{Z()},[Z]),C.useEffect(()=>{m?D():(!_||!s)&&Z()},[m,Z,_,s,D]);const q=k=>P=>{var J;(J=k.onKeyDown)==null||J.call(k,P),!(P.key!=="Escape"||P.which===229||!V())&&(a||(P.stopPropagation(),h&&h(P,"escapeKeyDown")))},$=k=>P=>{var J;(J=k.onClick)==null||J.call(k,P),P.target===P.currentTarget&&h&&h(P,"backdropClick")};return{getRootProps:(k={})=>{const P=Bn(e);delete P.onTransitionEnter,delete P.onTransitionExited;const J=L({},P,k);return L({role:"presentation"},J,{onKeyDown:q(J),ref:b})},getBackdropProps:(k={})=>{const P=k;return L({"aria-hidden":!0},P,{onClick:$(P),open:m})},getTransitionProps:()=>{const k=()=>{j(!1),u&&u()},P=()=>{j(!0),f&&f(),s&&Z()};return{onEnter:v2(k,d?.props.onEnter),onExited:v2(P,d?.props.onExited)}},rootRef:b,portalRef:Q,isTopModal:V,exited:A,hasTransition:_}}function nk(e){const{value:t,label:a,disabled:i,rootRef:l,id:s}=e,{getRootProps:u,highlighted:f,selected:d}=Hj({item:t}),{getRootProps:h,rootRef:m}=gl({disabled:i,focusableWhenDisabled:!0}),v=cf(s),S=C.useRef(null),w=C.useMemo(()=>({disabled:i,label:a,value:t,ref:S,id:v}),[i,a,t,v]),{index:x}=Vj(t,w),b=Ht(l,S,m),A=_=>R=>{var N;(N=_.onKeyDown)==null||N.call(_,R),!R.defaultMuiPrevented&&[" ","Enter"].includes(R.key)&&(R.defaultMuiPrevented=!0)},j=(_={})=>({onKeyDown:A(_)});return{getRootProps:(_={})=>{const R=Bn(_),N=uf(u,uf(h,j));return L({},_,R,N(R),{id:v,ref:b,role:"option","aria-selected":d})},highlighted:f,index:x,selected:d,rootRef:b}}function rk(e){const t=C.useContext(Ff);if(!t)throw new Error("Option: ListContext was not found.");const{getItemState:a,dispatch:i}=t,{highlighted:l,selected:s,focusable:u}=a(e),f=C.useCallback(h=>{if(h!==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:l,selected:s,focusable:u}},[l,s,u,e]);return{contextValue:C.useMemo(()=>({dispatch:i,getItemState:f}),[i,f])}}var bn="top",sr="bottom",cr="right",xn="left",U0="auto",ic=[bn,sr,cr,xn],il="start",Vs="end",ak="clippingParents",y5="viewport",ys="popper",ik="reference",_2=ic.reduce(function(e,t){return e.concat([t+"-"+il,t+"-"+Vs])},[]),b5=[].concat(ic,[U0]).reduce(function(e,t){return e.concat([t,t+"-"+il,t+"-"+Vs])},[]),ok="beforeRead",lk="read",sk="afterRead",ck="beforeMain",uk="main",fk="afterMain",dk="beforeWrite",pk="write",hk="afterWrite",mk=[ok,lk,sk,ck,uk,fk,dk,pk,hk];function Hr(e){return e?(e.nodeName||"").toLowerCase():null}function Ln(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function Wi(e){var t=Ln(e).Element;return e instanceof t||e instanceof Element}function or(e){var t=Ln(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function F0(e){if(typeof ShadowRoot>"u")return!1;var t=Ln(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function gk(e){var t=e.state;Object.keys(t.elements).forEach(function(a){var i=t.styles[a]||{},l=t.attributes[a]||{},s=t.elements[a];!or(s)||!Hr(s)||(Object.assign(s.style,i),Object.keys(l).forEach(function(u){var f=l[u];f===!1?s.removeAttribute(u):s.setAttribute(u,f===!0?"":f)}))})}function vk(e){var t=e.state,a={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,a.popper),t.styles=a,t.elements.arrow&&Object.assign(t.elements.arrow.style,a.arrow),function(){Object.keys(t.elements).forEach(function(i){var l=t.elements[i],s=t.attributes[i]||{},u=Object.keys(t.styles.hasOwnProperty(i)?t.styles[i]:a[i]),f=u.reduce(function(d,h){return d[h]="",d},{});!or(l)||!Hr(l)||(Object.assign(l.style,f),Object.keys(s).forEach(function(d){l.removeAttribute(d)}))})}}const yk={name:"applyStyles",enabled:!0,phase:"write",fn:gk,effect:vk,requires:["computeStyles"]};function Ir(e){return e.split("-")[0]}var Pi=Math.max,ff=Math.min,ol=Math.round;function _m(){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 x5(){return!/^((?!chrome|android).)*safari/i.test(_m())}function ll(e,t,a){t===void 0&&(t=!1),a===void 0&&(a=!1);var i=e.getBoundingClientRect(),l=1,s=1;t&&or(e)&&(l=e.offsetWidth>0&&ol(i.width)/e.offsetWidth||1,s=e.offsetHeight>0&&ol(i.height)/e.offsetHeight||1);var u=Wi(e)?Ln(e):window,f=u.visualViewport,d=!x5()&&a,h=(i.left+(d&&f?f.offsetLeft:0))/l,m=(i.top+(d&&f?f.offsetTop:0))/s,v=i.width/l,S=i.height/s;return{width:v,height:S,top:m,right:h+v,bottom:m+S,left:h,x:h,y:m}}function V0(e){var t=ll(e),a=e.offsetWidth,i=e.offsetHeight;return Math.abs(t.width-a)<=1&&(a=t.width),Math.abs(t.height-i)<=1&&(i=t.height),{x:e.offsetLeft,y:e.offsetTop,width:a,height:i}}function S5(e,t){var a=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(a&&F0(a)){var i=t;do{if(i&&e.isSameNode(i))return!0;i=i.parentNode||i.host}while(i)}return!1}function Sa(e){return Ln(e).getComputedStyle(e)}function bk(e){return["table","td","th"].indexOf(Hr(e))>=0}function ci(e){return((Wi(e)?e.ownerDocument:e.document)||window.document).documentElement}function Vf(e){return Hr(e)==="html"?e:e.assignedSlot||e.parentNode||(F0(e)?e.host:null)||ci(e)}function j2(e){return!or(e)||Sa(e).position==="fixed"?null:e.offsetParent}function xk(e){var t=/firefox/i.test(_m()),a=/Trident/i.test(_m());if(a&&or(e)){var i=Sa(e);if(i.position==="fixed")return null}var l=Vf(e);for(F0(l)&&(l=l.host);or(l)&&["html","body"].indexOf(Hr(l))<0;){var s=Sa(l);if(s.transform!=="none"||s.perspective!=="none"||s.contain==="paint"||["transform","perspective"].indexOf(s.willChange)!==-1||t&&s.willChange==="filter"||t&&s.filter&&s.filter!=="none")return l;l=l.parentNode}return null}function oc(e){for(var t=Ln(e),a=j2(e);a&&bk(a)&&Sa(a).position==="static";)a=j2(a);return a&&(Hr(a)==="html"||Hr(a)==="body"&&Sa(a).position==="static")?t:a||xk(e)||t}function q0(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function Ns(e,t,a){return Pi(e,ff(t,a))}function Sk(e,t,a){var i=Ns(e,t,a);return i>a?a:i}function C5(){return{top:0,right:0,bottom:0,left:0}}function E5(e){return Object.assign({},C5(),e)}function w5(e,t){return t.reduce(function(a,i){return a[i]=e,a},{})}var Ck=function(t,a){return t=typeof t=="function"?t(Object.assign({},a.rects,{placement:a.placement})):t,E5(typeof t!="number"?t:w5(t,ic))};function Ek(e){var t,a=e.state,i=e.name,l=e.options,s=a.elements.arrow,u=a.modifiersData.popperOffsets,f=Ir(a.placement),d=q0(f),h=[xn,cr].indexOf(f)>=0,m=h?"height":"width";if(!(!s||!u)){var v=Ck(l.padding,a),S=V0(s),w=d==="y"?bn:xn,x=d==="y"?sr:cr,b=a.rects.reference[m]+a.rects.reference[d]-u[d]-a.rects.popper[m],A=u[d]-a.rects.reference[d],j=oc(s),_=j?d==="y"?j.clientHeight||0:j.clientWidth||0:0,R=b/2-A/2,N=v[w],T=_-S[m]-v[x],z=_/2-S[m]/2+R,D=Ns(N,z,T),V=d;a.modifiersData[i]=(t={},t[V]=D,t.centerOffset=D-z,t)}}function wk(e){var t=e.state,a=e.options,i=a.element,l=i===void 0?"[data-popper-arrow]":i;l!=null&&(typeof l=="string"&&(l=t.elements.popper.querySelector(l),!l)||S5(t.elements.popper,l)&&(t.elements.arrow=l))}const Ak={name:"arrow",enabled:!0,phase:"main",fn:Ek,effect:wk,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function sl(e){return e.split("-")[1]}var Rk={top:"auto",right:"auto",bottom:"auto",left:"auto"};function Tk(e,t){var a=e.x,i=e.y,l=t.devicePixelRatio||1;return{x:ol(a*l)/l||0,y:ol(i*l)/l||0}}function k2(e){var t,a=e.popper,i=e.popperRect,l=e.placement,s=e.variation,u=e.offsets,f=e.position,d=e.gpuAcceleration,h=e.adaptive,m=e.roundOffsets,v=e.isFixed,S=u.x,w=S===void 0?0:S,x=u.y,b=x===void 0?0:x,A=typeof m=="function"?m({x:w,y:b}):{x:w,y:b};w=A.x,b=A.y;var j=u.hasOwnProperty("x"),_=u.hasOwnProperty("y"),R=xn,N=bn,T=window;if(h){var z=oc(a),D="clientHeight",V="clientWidth";if(z===Ln(a)&&(z=ci(a),Sa(z).position!=="static"&&f==="absolute"&&(D="scrollHeight",V="scrollWidth")),z=z,l===bn||(l===xn||l===cr)&&s===Vs){N=sr;var Q=v&&z===T&&T.visualViewport?T.visualViewport.height:z[D];b-=Q-i.height,b*=d?1:-1}if(l===xn||(l===bn||l===sr)&&s===Vs){R=cr;var Z=v&&z===T&&T.visualViewport?T.visualViewport.width:z[V];w-=Z-i.width,w*=d?1:-1}}var q=Object.assign({position:f},h&&Rk),$=m===!0?Tk({x:w,y:b},Ln(a)):{x:w,y:b};if(w=$.x,b=$.y,d){var H;return Object.assign({},q,(H={},H[N]=_?"0":"",H[R]=j?"0":"",H.transform=(T.devicePixelRatio||1)<=1?"translate("+w+"px, "+b+"px)":"translate3d("+w+"px, "+b+"px, 0)",H))}return Object.assign({},q,(t={},t[N]=_?b+"px":"",t[R]=j?w+"px":"",t.transform="",t))}function $k(e){var t=e.state,a=e.options,i=a.gpuAcceleration,l=i===void 0?!0:i,s=a.adaptive,u=s===void 0?!0:s,f=a.roundOffsets,d=f===void 0?!0:f,h={placement:Ir(t.placement),variation:sl(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:l,isFixed:t.options.strategy==="fixed"};t.modifiersData.popperOffsets!=null&&(t.styles.popper=Object.assign({},t.styles.popper,k2(Object.assign({},h,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:u,roundOffsets:d})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,k2(Object.assign({},h,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:d})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}const Ok={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:$k,data:{}};var ju={passive:!0};function _k(e){var t=e.state,a=e.instance,i=e.options,l=i.scroll,s=l===void 0?!0:l,u=i.resize,f=u===void 0?!0:u,d=Ln(t.elements.popper),h=[].concat(t.scrollParents.reference,t.scrollParents.popper);return s&&h.forEach(function(m){m.addEventListener("scroll",a.update,ju)}),f&&d.addEventListener("resize",a.update,ju),function(){s&&h.forEach(function(m){m.removeEventListener("scroll",a.update,ju)}),f&&d.removeEventListener("resize",a.update,ju)}}const jk={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:_k,data:{}};var kk={left:"right",right:"left",bottom:"top",top:"bottom"};function Vu(e){return e.replace(/left|right|bottom|top/g,function(t){return kk[t]})}var Nk={start:"end",end:"start"};function N2(e){return e.replace(/start|end/g,function(t){return Nk[t]})}function Y0(e){var t=Ln(e),a=t.pageXOffset,i=t.pageYOffset;return{scrollLeft:a,scrollTop:i}}function G0(e){return ll(ci(e)).left+Y0(e).scrollLeft}function zk(e,t){var a=Ln(e),i=ci(e),l=a.visualViewport,s=i.clientWidth,u=i.clientHeight,f=0,d=0;if(l){s=l.width,u=l.height;var h=x5();(h||!h&&t==="fixed")&&(f=l.offsetLeft,d=l.offsetTop)}return{width:s,height:u,x:f+G0(e),y:d}}function Dk(e){var t,a=ci(e),i=Y0(e),l=(t=e.ownerDocument)==null?void 0:t.body,s=Pi(a.scrollWidth,a.clientWidth,l?l.scrollWidth:0,l?l.clientWidth:0),u=Pi(a.scrollHeight,a.clientHeight,l?l.scrollHeight:0,l?l.clientHeight:0),f=-i.scrollLeft+G0(e),d=-i.scrollTop;return Sa(l||a).direction==="rtl"&&(f+=Pi(a.clientWidth,l?l.clientWidth:0)-s),{width:s,height:u,x:f,y:d}}function W0(e){var t=Sa(e),a=t.overflow,i=t.overflowX,l=t.overflowY;return/auto|scroll|overlay|hidden/.test(a+l+i)}function A5(e){return["html","body","#document"].indexOf(Hr(e))>=0?e.ownerDocument.body:or(e)&&W0(e)?e:A5(Vf(e))}function zs(e,t){var a;t===void 0&&(t=[]);var i=A5(e),l=i===((a=e.ownerDocument)==null?void 0:a.body),s=Ln(i),u=l?[s].concat(s.visualViewport||[],W0(i)?i:[]):i,f=t.concat(u);return l?f:f.concat(zs(Vf(u)))}function jm(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function Mk(e,t){var a=ll(e,!1,t==="fixed");return a.top=a.top+e.clientTop,a.left=a.left+e.clientLeft,a.bottom=a.top+e.clientHeight,a.right=a.left+e.clientWidth,a.width=e.clientWidth,a.height=e.clientHeight,a.x=a.left,a.y=a.top,a}function z2(e,t,a){return t===y5?jm(zk(e,a)):Wi(t)?Mk(t,a):jm(Dk(ci(e)))}function Bk(e){var t=zs(Vf(e)),a=["absolute","fixed"].indexOf(Sa(e).position)>=0,i=a&&or(e)?oc(e):e;return Wi(i)?t.filter(function(l){return Wi(l)&&S5(l,i)&&Hr(l)!=="body"}):[]}function Lk(e,t,a,i){var l=t==="clippingParents"?Bk(e):[].concat(t),s=[].concat(l,[a]),u=s[0],f=s.reduce(function(d,h){var m=z2(e,h,i);return d.top=Pi(m.top,d.top),d.right=ff(m.right,d.right),d.bottom=ff(m.bottom,d.bottom),d.left=Pi(m.left,d.left),d},z2(e,u,i));return f.width=f.right-f.left,f.height=f.bottom-f.top,f.x=f.left,f.y=f.top,f}function R5(e){var t=e.reference,a=e.element,i=e.placement,l=i?Ir(i):null,s=i?sl(i):null,u=t.x+t.width/2-a.width/2,f=t.y+t.height/2-a.height/2,d;switch(l){case bn:d={x:u,y:t.y-a.height};break;case sr:d={x:u,y:t.y+t.height};break;case cr:d={x:t.x+t.width,y:f};break;case xn:d={x:t.x-a.width,y:f};break;default:d={x:t.x,y:t.y}}var h=l?q0(l):null;if(h!=null){var m=h==="y"?"height":"width";switch(s){case il:d[h]=d[h]-(t[m]/2-a[m]/2);break;case Vs:d[h]=d[h]+(t[m]/2-a[m]/2);break}}return d}function qs(e,t){t===void 0&&(t={});var a=t,i=a.placement,l=i===void 0?e.placement:i,s=a.strategy,u=s===void 0?e.strategy:s,f=a.boundary,d=f===void 0?ak:f,h=a.rootBoundary,m=h===void 0?y5:h,v=a.elementContext,S=v===void 0?ys:v,w=a.altBoundary,x=w===void 0?!1:w,b=a.padding,A=b===void 0?0:b,j=E5(typeof A!="number"?A:w5(A,ic)),_=S===ys?ik:ys,R=e.rects.popper,N=e.elements[x?_:S],T=Lk(Wi(N)?N:N.contextElement||ci(e.elements.popper),d,m,u),z=ll(e.elements.reference),D=R5({reference:z,element:R,placement:l}),V=jm(Object.assign({},R,D)),Q=S===ys?V:z,Z={top:T.top-Q.top+j.top,bottom:Q.bottom-T.bottom+j.bottom,left:T.left-Q.left+j.left,right:Q.right-T.right+j.right},q=e.modifiersData.offset;if(S===ys&&q){var $=q[l];Object.keys(Z).forEach(function(H){var U=[cr,sr].indexOf(H)>=0?1:-1,Y=[bn,sr].indexOf(H)>=0?"y":"x";Z[H]+=$[Y]*U})}return Z}function Pk(e,t){t===void 0&&(t={});var a=t,i=a.placement,l=a.boundary,s=a.rootBoundary,u=a.padding,f=a.flipVariations,d=a.allowedAutoPlacements,h=d===void 0?b5:d,m=sl(i),v=m?f?_2:_2.filter(function(x){return sl(x)===m}):ic,S=v.filter(function(x){return h.indexOf(x)>=0});S.length===0&&(S=v);var w=S.reduce(function(x,b){return x[b]=qs(e,{placement:b,boundary:l,rootBoundary:s,padding:u})[Ir(b)],x},{});return Object.keys(w).sort(function(x,b){return w[x]-w[b]})}function Ik(e){if(Ir(e)===U0)return[];var t=Vu(e);return[N2(e),t,N2(t)]}function Hk(e){var t=e.state,a=e.options,i=e.name;if(!t.modifiersData[i]._skip){for(var l=a.mainAxis,s=l===void 0?!0:l,u=a.altAxis,f=u===void 0?!0:u,d=a.fallbackPlacements,h=a.padding,m=a.boundary,v=a.rootBoundary,S=a.altBoundary,w=a.flipVariations,x=w===void 0?!0:w,b=a.allowedAutoPlacements,A=t.options.placement,j=Ir(A),_=j===A,R=d||(_||!x?[Vu(A)]:Ik(A)),N=[A].concat(R).reduce(function(ce,de){return ce.concat(Ir(de)===U0?Pk(t,{placement:de,boundary:m,rootBoundary:v,padding:h,flipVariations:x,allowedAutoPlacements:b}):de)},[]),T=t.rects.reference,z=t.rects.popper,D=new Map,V=!0,Q=N[0],Z=0;Z<N.length;Z++){var q=N[Z],$=Ir(q),H=sl(q)===il,U=[bn,sr].indexOf($)>=0,Y=U?"width":"height",k=qs(t,{placement:q,boundary:m,rootBoundary:v,altBoundary:S,padding:h}),P=U?H?cr:xn:H?sr:bn;T[Y]>z[Y]&&(P=Vu(P));var J=Vu(P),ue=[];if(s&&ue.push(k[$]<=0),f&&ue.push(k[P]<=0,k[J]<=0),ue.every(function(ce){return ce})){Q=q,V=!1;break}D.set(q,ue)}if(V)for(var ye=x?3:1,M=function(de){var me=N.find(function(se){var ie=D.get(se);if(ie)return ie.slice(0,de).every(function(pe){return pe})});if(me)return Q=me,"break"},G=ye;G>0;G--){var le=M(G);if(le==="break")break}t.placement!==Q&&(t.modifiersData[i]._skip=!0,t.placement=Q,t.reset=!0)}}const Uk={name:"flip",enabled:!0,phase:"main",fn:Hk,requiresIfExists:["offset"],data:{_skip:!1}};function D2(e,t,a){return a===void 0&&(a={x:0,y:0}),{top:e.top-t.height-a.y,right:e.right-t.width+a.x,bottom:e.bottom-t.height+a.y,left:e.left-t.width-a.x}}function M2(e){return[bn,cr,sr,xn].some(function(t){return e[t]>=0})}function Fk(e){var t=e.state,a=e.name,i=t.rects.reference,l=t.rects.popper,s=t.modifiersData.preventOverflow,u=qs(t,{elementContext:"reference"}),f=qs(t,{altBoundary:!0}),d=D2(u,i),h=D2(f,l,s),m=M2(d),v=M2(h);t.modifiersData[a]={referenceClippingOffsets:d,popperEscapeOffsets:h,isReferenceHidden:m,hasPopperEscaped:v},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":m,"data-popper-escaped":v})}const Vk={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:Fk};function qk(e,t,a){var i=Ir(e),l=[xn,bn].indexOf(i)>=0?-1:1,s=typeof a=="function"?a(Object.assign({},t,{placement:e})):a,u=s[0],f=s[1];return u=u||0,f=(f||0)*l,[xn,cr].indexOf(i)>=0?{x:f,y:u}:{x:u,y:f}}function Yk(e){var t=e.state,a=e.options,i=e.name,l=a.offset,s=l===void 0?[0,0]:l,u=b5.reduce(function(m,v){return m[v]=qk(v,t.rects,s),m},{}),f=u[t.placement],d=f.x,h=f.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=d,t.modifiersData.popperOffsets.y+=h),t.modifiersData[i]=u}const Gk={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:Yk};function Wk(e){var t=e.state,a=e.name;t.modifiersData[a]=R5({reference:t.rects.reference,element:t.rects.popper,placement:t.placement})}const Kk={name:"popperOffsets",enabled:!0,phase:"read",fn:Wk,data:{}};function Xk(e){return e==="x"?"y":"x"}function Qk(e){var t=e.state,a=e.options,i=e.name,l=a.mainAxis,s=l===void 0?!0:l,u=a.altAxis,f=u===void 0?!1:u,d=a.boundary,h=a.rootBoundary,m=a.altBoundary,v=a.padding,S=a.tether,w=S===void 0?!0:S,x=a.tetherOffset,b=x===void 0?0:x,A=qs(t,{boundary:d,rootBoundary:h,padding:v,altBoundary:m}),j=Ir(t.placement),_=sl(t.placement),R=!_,N=q0(j),T=Xk(N),z=t.modifiersData.popperOffsets,D=t.rects.reference,V=t.rects.popper,Q=typeof b=="function"?b(Object.assign({},t.rects,{placement:t.placement})):b,Z=typeof Q=="number"?{mainAxis:Q,altAxis:Q}:Object.assign({mainAxis:0,altAxis:0},Q),q=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,$={x:0,y:0};if(z){if(s){var H,U=N==="y"?bn:xn,Y=N==="y"?sr:cr,k=N==="y"?"height":"width",P=z[N],J=P+A[U],ue=P-A[Y],ye=w?-V[k]/2:0,M=_===il?D[k]:V[k],G=_===il?-V[k]:-D[k],le=t.elements.arrow,ce=w&&le?V0(le):{width:0,height:0},de=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:C5(),me=de[U],se=de[Y],ie=Ns(0,D[k],ce[k]),pe=R?D[k]/2-ye-ie-me-Z.mainAxis:M-ie-me-Z.mainAxis,xe=R?-D[k]/2+ye+ie+se+Z.mainAxis:G+ie+se+Z.mainAxis,ze=t.elements.arrow&&oc(t.elements.arrow),mt=ze?N==="y"?ze.clientTop||0:ze.clientLeft||0:0,Bt=(H=q?.[N])!=null?H:0,wt=P+pe-Bt-mt,An=P+xe-Bt,Vn=Ns(w?ff(J,wt):J,P,w?Pi(ue,An):ue);z[N]=Vn,$[N]=Vn-P}if(f){var nn,cn=N==="x"?bn:xn,hr=N==="x"?sr:cr,Lt=z[T],un=T==="y"?"height":"width",we=Lt+A[cn],Ra=Lt-A[hr],At=[bn,xn].indexOf(j)!==-1,Rr=(nn=q?.[T])!=null?nn:0,Tr=At?we:Lt-D[un]-V[un]-Rr+Z.altAxis,Qt=At?Lt+D[un]+V[un]-Rr-Z.altAxis:Ra,Dt=w&&At?Sk(Tr,Lt,Qt):Ns(w?Tr:we,Lt,w?Qt:Ra);z[T]=Dt,$[T]=Dt-Lt}t.modifiersData[i]=$}}const Jk={name:"preventOverflow",enabled:!0,phase:"main",fn:Qk,requiresIfExists:["offset"]};function Zk(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function e8(e){return e===Ln(e)||!or(e)?Y0(e):Zk(e)}function t8(e){var t=e.getBoundingClientRect(),a=ol(t.width)/e.offsetWidth||1,i=ol(t.height)/e.offsetHeight||1;return a!==1||i!==1}function n8(e,t,a){a===void 0&&(a=!1);var i=or(t),l=or(t)&&t8(t),s=ci(t),u=ll(e,l,a),f={scrollLeft:0,scrollTop:0},d={x:0,y:0};return(i||!i&&!a)&&((Hr(t)!=="body"||W0(s))&&(f=e8(t)),or(t)?(d=ll(t,!0),d.x+=t.clientLeft,d.y+=t.clientTop):s&&(d.x=G0(s))),{x:u.left+f.scrollLeft-d.x,y:u.top+f.scrollTop-d.y,width:u.width,height:u.height}}function r8(e){var t=new Map,a=new Set,i=[];e.forEach(function(s){t.set(s.name,s)});function l(s){a.add(s.name);var u=[].concat(s.requires||[],s.requiresIfExists||[]);u.forEach(function(f){if(!a.has(f)){var d=t.get(f);d&&l(d)}}),i.push(s)}return e.forEach(function(s){a.has(s.name)||l(s)}),i}function a8(e){var t=r8(e);return mk.reduce(function(a,i){return a.concat(t.filter(function(l){return l.phase===i}))},[])}function i8(e){var t;return function(){return t||(t=new Promise(function(a){Promise.resolve().then(function(){t=void 0,a(e())})})),t}}function o8(e){var t=e.reduce(function(a,i){var l=a[i.name];return a[i.name]=l?Object.assign({},l,i,{options:Object.assign({},l.options,i.options),data:Object.assign({},l.data,i.data)}):i,a},{});return Object.keys(t).map(function(a){return t[a]})}var B2={placement:"bottom",modifiers:[],strategy:"absolute"};function L2(){for(var e=arguments.length,t=new Array(e),a=0;a<e;a++)t[a]=arguments[a];return!t.some(function(i){return!(i&&typeof i.getBoundingClientRect=="function")})}function l8(e){e===void 0&&(e={});var t=e,a=t.defaultModifiers,i=a===void 0?[]:a,l=t.defaultOptions,s=l===void 0?B2:l;return function(f,d,h){h===void 0&&(h=s);var m={placement:"bottom",orderedModifiers:[],options:Object.assign({},B2,s),modifiersData:{},elements:{reference:f,popper:d},attributes:{},styles:{}},v=[],S=!1,w={state:m,setOptions:function(j){var _=typeof j=="function"?j(m.options):j;b(),m.options=Object.assign({},s,m.options,_),m.scrollParents={reference:Wi(f)?zs(f):f.contextElement?zs(f.contextElement):[],popper:zs(d)};var R=a8(o8([].concat(i,m.options.modifiers)));return m.orderedModifiers=R.filter(function(N){return N.enabled}),x(),w.update()},forceUpdate:function(){if(!S){var j=m.elements,_=j.reference,R=j.popper;if(L2(_,R)){m.rects={reference:n8(_,oc(R),m.options.strategy==="fixed"),popper:V0(R)},m.reset=!1,m.placement=m.options.placement,m.orderedModifiers.forEach(function(Z){return m.modifiersData[Z.name]=Object.assign({},Z.data)});for(var N=0;N<m.orderedModifiers.length;N++){if(m.reset===!0){m.reset=!1,N=-1;continue}var T=m.orderedModifiers[N],z=T.fn,D=T.options,V=D===void 0?{}:D,Q=T.name;typeof z=="function"&&(m=z({state:m,options:V,name:Q,instance:w})||m)}}}},update:i8(function(){return new Promise(function(A){w.forceUpdate(),A(m)})}),destroy:function(){b(),S=!0}};if(!L2(f,d))return w;w.setOptions(h).then(function(A){!S&&h.onFirstUpdate&&h.onFirstUpdate(A)});function x(){m.orderedModifiers.forEach(function(A){var j=A.name,_=A.options,R=_===void 0?{}:_,N=A.effect;if(typeof N=="function"){var T=N({state:m,name:j,instance:w,options:R}),z=function(){};v.push(T||z)}})}function b(){v.forEach(function(A){return A()}),v=[]}return w}}var s8=[jk,Kk,Ok,yk,Gk,Uk,Jk,Ak,Vk],c8=l8({defaultModifiers:s8});const u8="Popper";function f8(e){return cj(u8,e)}const d8=["anchorEl","children","direction","disablePortal","modifiers","open","placement","popperOptions","popperRef","slotProps","slots","TransitionProps","ownerState"],p8=["anchorEl","children","container","direction","disablePortal","keepMounted","modifiers","open","placement","popperOptions","popperRef","style","transition","slotProps","slots"];function h8(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 km(e){return typeof e=="function"?e():e}function m8(e){return e.nodeType!==void 0}const g8=()=>Hn({root:["root"]},nj(f8)),v8={},y8=C.forwardRef(function(t,a){var i;const{anchorEl:l,children:s,direction:u,disablePortal:f,modifiers:d,open:h,placement:m,popperOptions:v,popperRef:S,slotProps:w={},slots:x={},TransitionProps:b}=t,A=Ue(t,d8),j=C.useRef(null),_=Ht(j,a),R=C.useRef(null),N=Ht(R,S),T=C.useRef(N);Gi(()=>{T.current=N},[N]),C.useImperativeHandle(S,()=>R.current,[]);const z=h8(m,u),[D,V]=C.useState(z),[Q,Z]=C.useState(km(l));C.useEffect(()=>{R.current&&R.current.forceUpdate()}),C.useEffect(()=>{l&&Z(km(l))},[l]),Gi(()=>{if(!Q||!h)return;const Y=J=>{V(J.placement)};let k=[{name:"preventOverflow",options:{altBoundary:f}},{name:"flip",options:{altBoundary:f}},{name:"onUpdate",enabled:!0,phase:"afterWrite",fn:({state:J})=>{Y(J)}}];d!=null&&(k=k.concat(d)),v&&v.modifiers!=null&&(k=k.concat(v.modifiers));const P=c8(Q,j.current,L({placement:z},v,{modifiers:k}));return T.current(P),()=>{P.destroy(),T.current(null)}},[Q,f,d,h,v,z]);const q={placement:D};b!==null&&(q.TransitionProps=b);const $=g8(),H=(i=x.root)!=null?i:"div",U=B7({elementType:H,externalSlotProps:w.root,externalForwardedProps:A,additionalProps:{role:"tooltip",ref:_},ownerState:t,className:$.root});return y.jsx(H,L({},U,{children:typeof s=="function"?s(q):s}))}),b8=C.forwardRef(function(t,a){const{anchorEl:i,children:l,container:s,direction:u="ltr",disablePortal:f=!1,keepMounted:d=!1,modifiers:h,open:m,placement:v="bottom",popperOptions:S=v8,popperRef:w,style:x,transition:b=!1,slotProps:A={},slots:j={}}=t,_=Ue(t,p8),[R,N]=C.useState(!0),T=()=>{N(!1)},z=()=>{N(!0)};if(!d&&!m&&(!b||R))return null;let D;if(s)D=s;else if(i){const Z=km(i);D=Z&&m8(Z)?Pr(Z).body:Pr(null).body}const V=!m&&d&&(!b||R)?"none":void 0,Q=b?{in:m,onEnter:T,onExited:z}:void 0;return y.jsx(v5,{disablePortal:f,container:D,children:y.jsx(y8,L({anchorEl:i,direction:u,disablePortal:f,modifiers:h,ref:a,open:b?!R:m,placement:v,popperOptions:S,popperRef:w,slotProps:A,slots:j},_,{style:L({position:"fixed",top:0,left:0,display:V},x),TransitionProps:Q,children:l}))})}),df={buttonClick:"buttonClick",browserAutoFill:"browserAutoFill"},x8=e=>{const{label:t,value:a}=e;return typeof t=="string"?t:typeof a=="string"?a:String(e)};function S8(e,t){const{open:a}=e,{context:{selectionMode:i}}=t;if(t.type===df.buttonClick){var l;const d=(l=e.selectedValues[0])!=null?l:Wt(null,"start",t.context);return L({},e,{open:!a,highlightedValue:a?null:d})}if(t.type===df.browserAutoFill)return H0(t.item,e,t.context);const s=m5(e,t);switch(t.type){case Et.keyDown:if(e.open){if(t.event.key==="Escape")return L({},s,{open:!1})}else{if(t.event.key==="ArrowDown"){var u;return L({},e,{open:!0,highlightedValue:(u=e.selectedValues[0])!=null?u:Wt(null,"start",t.context)})}if(t.event.key==="ArrowUp"){var f;return L({},e,{open:!0,highlightedValue:(f=e.selectedValues[0])!=null?f:Wt(null,"end",t.context)})}}break;case Et.itemClick:if(i==="single")return L({},s,{open:!1});break;case Et.blur:return L({},s,{open:!1});default:return s}return s}function C8(e){return Array.isArray(e)?e.length===0?"":JSON.stringify(e.map(t=>t.value)):e?.value==null?"":typeof e.value=="string"||typeof e.value=="number"?e.value:JSON.stringify(e.value)}function E8(e){const{areOptionsEqual:t,buttonRef:a,defaultOpen:i=!1,defaultValue:l,disabled:s=!1,listboxId:u,listboxRef:f,multiple:d=!1,name:h,required:m,onChange:v,onHighlightChange:S,onOpenChange:w,open:x,options:b,getOptionAsString:A=x8,getSerializedValue:j=C8,value:_,componentName:R="useSelect"}=e,N=C.useRef(null),T=Ht(a,N),z=C.useRef(null),D=cf(u);let V;_===void 0&&l===void 0?V=[]:l!==void 0&&(d?V=l:V=l==null?[]:[l]);const Q=C.useMemo(()=>{if(_!==void 0)return d?_:_==null?[]:[_]},[_,d]),{subitems:Z,contextValue:q}=Fj(),$=C.useMemo(()=>b!=null?new Map(b.map((he,ge)=>[he.value,{value:he.value,label:he.label,disabled:he.disabled,ref:C.createRef(),id:`${D}_${ge}`}])):Z,[b,Z,D]),H=Ht(f,z),{getRootProps:U,active:Y,focusVisible:k,rootRef:P}=gl({disabled:s,rootRef:T}),J=C.useMemo(()=>Array.from($.keys()),[$]),ue=C.useCallback(he=>{if(t!==void 0){const ge=J.find(Ae=>t(Ae,he));return $.get(ge)}return $.get(he)},[$,t,J]),ye=C.useCallback(he=>{var ge;const Ae=ue(he);return(ge=Ae?.disabled)!=null?ge:!1},[ue]),M=C.useCallback(he=>{const ge=ue(he);return ge?A(ge):""},[ue,A]),G=C.useMemo(()=>({selectedValues:Q,open:x}),[Q,x]),le=C.useCallback(he=>{var ge;return(ge=$.get(he))==null?void 0:ge.id},[$]),ce=C.useCallback((he,ge)=>{if(d)v?.(he,ge);else{var Ae;v?.(he,(Ae=ge[0])!=null?Ae:null)}},[d,v]),de=C.useCallback((he,ge)=>{S?.(he,ge??null)},[S]),me=C.useCallback((he,ge,Ae)=>{if(ge==="open"&&(w?.(Ae),Ae===!1&&he?.type!=="blur")){var st;(st=N.current)==null||st.focus()}},[w]),se=C.useCallback(he=>{var ge,Ae;return he==null?null:(ge=(Ae=Z.get(he))==null?void 0:Ae.ref.current)!=null?ge:null},[Z]),ie={getInitialState:()=>{var he;return{highlightedValue:null,selectedValues:(he=V)!=null?he:[],open:i}},getItemId:le,controlledProps:G,focusManagement:"DOM",getItemDomElement:se,itemComparer:t,isItemDisabled:ye,rootRef:H,onChange:ce,onHighlightChange:de,onStateChange:me,reducerActionContext:C.useMemo(()=>({multiple:d}),[d]),items:J,getItemAsString:M,selectionMode:d?"multiple":"single",stateReducer:S8,componentName:R},{dispatch:pe,getRootProps:xe,contextValue:ze,state:{open:mt,highlightedValue:Bt,selectedValues:wt},rootRef:An}=Ij(ie),Vn=C.useRef(mt);Gi(()=>{if(mt&&Bt!==null){var he;const ge=(he=ue(Bt))==null?void 0:he.ref;if(!z.current||!(ge!=null&&ge.current))return;Vn.current||ge.current.focus({preventScroll:!0});const Ae=z.current.getBoundingClientRect(),st=ge.current.getBoundingClientRect();st.top<Ae.top?z.current.scrollTop-=Ae.top-st.top:st.bottom>Ae.bottom&&(z.current.scrollTop+=st.bottom-Ae.bottom)}},[mt,Bt,ue]);const nn=C.useCallback(he=>ue(he),[ue]),cn=he=>ge=>{var Ae;if(he==null||(Ae=he.onClick)==null||Ae.call(he,ge),!ge.defaultMuiPrevented){const st={type:df.buttonClick,event:ge};pe(st)}},hr=he=>ge=>{var Ae;(Ae=he.onKeyDown)==null||Ae.call(he,ge),!ge.defaultMuiPrevented&&(ge.key==="ArrowDown"||ge.key==="ArrowUp")&&(ge.preventDefault(),pe({type:Et.keyDown,key:ge.key,event:ge}))},Lt=(he={})=>({onClick:cn(he),onKeyDown:hr(he)}),un=(he={})=>L({},he,Lt(he),{role:"combobox","aria-expanded":mt,"aria-controls":D}),we=(he={})=>{const ge=Bn(he),Ae=uf(un,U);return L({},he,Ae(ge))},Ra=he=>ge=>{var Ae,st;(Ae=he.onBlur)==null||Ae.call(he,ge),!ge.defaultMuiPrevented&&((st=z.current)!=null&&st.contains(ge.relatedTarget)||ge.relatedTarget===N.current)&&(ge.defaultMuiPrevented=!0)},At=(he={})=>({onBlur:Ra(he)}),Rr=(he={})=>{const ge=Bn(he),Ae=uf(At,xe);return L({id:D,role:"listbox","aria-multiselectable":d?"true":void 0},he,Ae(ge))};C.useDebugValue({selectedOptions:wt,highlightedOption:Bt,open:mt});const Tr=C.useMemo(()=>L({},ze,q),[ze,q]);let Qt;e.multiple?Qt=wt:Qt=wt.length>0?wt[0]:null;let Dt;if(d)Dt=Qt.map(he=>nn(he)).filter(he=>he!==void 0);else{var mr;Dt=(mr=nn(Qt))!=null?mr:null}const gr=he=>ge=>{var Ae;if(he==null||(Ae=he.onChange)==null||Ae.call(he,ge),ge.defaultMuiPrevented)return;const st=$.get(ge.target.value);ge.target.value===""?pe({type:Et.clearSelection}):st!==void 0&&pe({type:df.browserAutoFill,item:st.value,event:ge})};return{buttonActive:Y,buttonFocusVisible:k,buttonRef:P,contextValue:Tr,disabled:s,dispatch:pe,getButtonProps:we,getHiddenInputProps:(he={})=>{const ge=Bn(he);return L({name:h,tabIndex:-1,"aria-hidden":!0,required:m?!0:void 0,value:j(Dt),style:z7},he,{onChange:gr(ge)})},getListboxProps:Rr,getOptionMetadata:nn,listboxRef:An,open:mt,options:J,value:Qt,highlightedOption:Bt}}function w8(e){const{value:t,children:a}=e,{dispatch:i,getItemIndex:l,getItemState:s,registerItem:u,totalSubitemCount:f}=t,d=C.useMemo(()=>({dispatch:i,getItemState:s,getItemIndex:l}),[i,l,s]),h=C.useMemo(()=>({getItemIndex:l,registerItem:u,totalSubitemCount:f}),[u,l,f]);return y.jsx(g5.Provider,{value:h,children:y.jsx(Ff.Provider,{value:d,children:a})})}function A8(e){return Un("MuiCircularProgress",e)}wn("MuiCircularProgress",["root","determinate","svg","track","progress","colorPrimary","colorNeutral","colorDanger","colorSuccess","colorWarning","colorContext","sizeSm","sizeMd","sizeLg","variantPlain","variantOutlined","variantSoft","variantSolid"]);let R8=e=>e,P2;const T8=["color","backgroundColor"],$8=["children","className","color","size","variant","thickness","determinate","value","component","slots","slotProps"],O8=ml({"0%":{transform:"rotate(-90deg)"},"100%":{transform:"rotate(270deg)"}}),_8=e=>{const{determinate:t,color:a,variant:i,size:l}=e,s={root:["root",t&&"determinate",a&&`color${Ie(a)}`,i&&`variant${Ie(i)}`,l&&`size${Ie(l)}`],svg:["svg"],track:["track"],progress:["progress"]};return Hn(s,A8,{})};function Fo(e,t){return`var(--CircularProgress-${e}Thickness, var(--CircularProgress-thickness, ${t}))`}const j8=_e("span",{name:"JoyCircularProgress",slot:"Root",overridesResolver:(e,t)=>t.root})(({ownerState:e,theme:t})=>{var a,i,l,s;const u=((a=t.variants[e.variant])==null?void 0:a[e.color])||{},{color:f,backgroundColor:d}=u,h=Ue(u,T8);return L({"--Icon-fontSize":"calc(0.4 * var(--_root-size))","--CircularProgress-trackColor":d,"--CircularProgress-progressColor":f,"--CircularProgress-percent":e.value,"--CircularProgress-linecap":"round"},e.size==="sm"&&{"--_root-size":"var(--CircularProgress-size, 24px)","--_track-thickness":Fo("track","3px"),"--_progress-thickness":Fo("progress","3px")},e.instanceSize==="sm"&&{"--CircularProgress-size":"24px"},e.size==="md"&&{"--_track-thickness":Fo("track","6px"),"--_progress-thickness":Fo("progress","6px"),"--_root-size":"var(--CircularProgress-size, 40px)"},e.instanceSize==="md"&&{"--CircularProgress-size":"40px"},e.size==="lg"&&{"--_track-thickness":Fo("track","8px"),"--_progress-thickness":Fo("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:f},e.children&&{fontFamily:t.vars.fontFamily.body,fontWeight:t.vars.fontWeight.md,fontSize:"calc(0.2 * var(--_root-size))"},h,e.variant==="outlined"&&{"&::before":L({content:'""',display:"block",position:"absolute",borderRadius:"inherit",top:"var(--_outlined-inset)",left:"var(--_outlined-inset)",right:"var(--_outlined-inset)",bottom:"var(--_outlined-inset)"},h)},e.variant==="soft"&&{"--CircularProgress-trackColor":t.variants.soft.neutral.backgroundColor,"--CircularProgress-progressColor":(i=t.variants.solid)==null?void 0:i[e.color].backgroundColor},e.variant==="solid"&&{"--CircularProgress-trackColor":(l=t.variants.softHover)==null?void 0:l[e.color].backgroundColor,"--CircularProgress-progressColor":(s=t.variants.solid)==null?void 0:s[e.color].backgroundColor})}),k8=_e("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))"}),N8=_e("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)"}),z8=_e("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&&zf(P2||(P2=R8`
568
+ animation: var(--CircularProgress-circulation, 0.8s linear 0s infinite normal none running)
569
+ ${0};
570
+ `),O8)),T5=C.forwardRef(function(t,a){const i=dr({props:t,name:"JoyCircularProgress"}),{children:l,className:s,color:u="primary",size:f="md",variant:d="soft",thickness:h,determinate:m=!1,value:v=m?0:25,component:S,slots:w={},slotProps:x={}}=i,b=Ue(i,$8),A=L({},i,{color:u,size:f,variant:d,thickness:h,value:v,determinate:m,instanceSize:t.size}),j=_8(A),_=L({},b,{component:S,slots:w,slotProps:x}),[R,N]=We("root",{ref:a,className:Xe(j.root,s),elementType:j8,externalForwardedProps:_,ownerState:A,additionalProps:L({role:"progressbar",style:{"--CircularProgress-percent":v}},v&&m&&{"aria-valuenow":Math.round(typeof v=="number"?v:Number(v||0))})}),[T,z]=We("svg",{className:j.svg,elementType:k8,externalForwardedProps:_,ownerState:A}),[D,V]=We("track",{className:j.track,elementType:N8,externalForwardedProps:_,ownerState:A}),[Q,Z]=We("progress",{className:j.progress,elementType:z8,externalForwardedProps:_,ownerState:A});return y.jsxs(R,L({},N,{children:[y.jsxs(T,L({},z,{children:[y.jsx(D,L({},V)),y.jsx(Q,L({},Z))]})),l]}))}),D8=["children","action","component","color","disabled","variant","loading","loadingIndicator","size","slots","slotProps"],M8=e=>{const{color:t,disabled:a,focusVisible:i,focusVisibleClassName:l,size:s,variant:u,loading:f}=e,d={root:["root",a&&"disabled",i&&"focusVisible",u&&`variant${Ie(u)}`,t&&`color${Ie(t)}`,s&&`size${Ie(s)}`,f&&"loading"],loadingIndicator:["loadingIndicator"]},h=Hn(d,oj,{});return i&&l&&(h.root+=` ${l}`),h},$5=_e("button")(({theme:e,ownerState:t})=>{var a,i,l,s;return[L({"--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"},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]:L({"--Icon-color":"currentColor"},e.focus.default)}),L({},(a=e.variants[t.variant])==null?void 0:a[t.color],{"&:hover":{"@media (hover: hover)":L({"--Icon-color":"currentColor"},(i=e.variants[`${t.variant}Hover`])==null?void 0:i[t.color])},'&:active, &[aria-pressed="true"]':L({"--Icon-color":"currentColor"},(l=e.variants[`${t.variant}Active`])==null?void 0:l[t.color]),"&:disabled":(s=e.variants[`${t.variant}Disabled`])==null?void 0:s[t.color]})]}),B8=_e($5,{name:"JoyIconButton",slot:"Root",overridesResolver:(e,t)=>t.root})({}),L8=_e("span",{name:"JoyIconButton",slot:"LoadingIndicator",overridesResolver:(e,t)=>t.loadingIndicator})(({theme:e,ownerState:t})=>{var a,i;return L({display:"inherit",position:"absolute",left:"50%",transform:"translateX(-50%)",color:(a=e.variants[t.variant])==null||(a=a[t.color])==null?void 0:a.color},t.disabled&&{color:(i=e.variants[`${t.variant}Disabled`])==null||(i=i[t.color])==null?void 0:i.color})}),O5=C.forwardRef(function(t,a){var i;const l=dr({props:t,name:"JoyIconButton"}),{children:s,action:u,component:f="button",color:d="neutral",disabled:h,variant:m="plain",loading:v=!1,loadingIndicator:S,size:w="md",slots:x={},slotProps:b={}}=l,A=Ue(l,D8),j=C.useContext(d5),_=C.useContext(p5),R=t.variant||j.variant||m,N=t.size||j.size||w,T=t.color||j.color||d,z=(i=t.loading||t.disabled)!=null?i:j.disabled||v||h,D=C.useRef(null),V=Ht(D,a),{focusVisible:Q,setFocusVisible:Z,getRootProps:q}=gl(L({},l,{disabled:z,rootRef:V})),$=S??y.jsx(T5,{color:T,thickness:{sm:2,md:3,lg:4}[N]||3});C.useImperativeHandle(u,()=>({focusVisible:()=>{var G;Z(!0),(G=D.current)==null||G.focus()}}),[Z]);const H=L({},l,{component:f,color:T,disabled:z,variant:R,loading:v,size:N,focusVisible:Q,instanceSize:t.size}),U=M8(H),Y=G=>{var le;let ce=l.onClick;if(typeof b.root=="function"?ce=b.root(H).onClick:b.root&&(ce=b.root.onClick),(le=ce)==null||le(G),_){var de;(de=_.onClick)==null||de.call(_,G,l.value)}};let k=l["aria-pressed"];typeof b.root=="function"?k=b.root(H)["aria-pressed"]:b.root&&(k=b.root["aria-pressed"]),_!=null&&_.value&&(Array.isArray(_.value)?k=_.value.indexOf(l.value)!==-1:k=_.value===l.value);const P=L({},A,{component:f,slots:x,slotProps:b}),[J,ue]=We("root",{ref:a,className:U.root,elementType:B8,getSlotProps:q,externalForwardedProps:P,ownerState:H,additionalProps:{onClick:Y,"aria-pressed":k}}),[ye,M]=We("loadingIndicator",{className:U.loadingIndicator,elementType:L8,externalForwardedProps:P,ownerState:H});return y.jsx(J,L({},ue,{children:v?y.jsx(ye,L({},M,{children:$})):s}))});O5.muiName="IconButton";const K0=e=>t=>`--${e?`${e}-`:""}${t.replace(/^--/,"")}`,Ys="data-skip-inverted-colors",_5=`& :not([${Ys}], [${Ys}] *)`,j5=e=>{var t,a,i,l,s,u,f,d,h,m,v,S,w,x,b,A,j,_,R,N,T,z;const D=K0(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")]:{[D("--palette-focusVisible")]:`${(t=e.colorSchemes.light)==null?void 0:t.palette.focusVisible} !important`,[D("--palette-background-body")]:`${(a=e.colorSchemes.light)==null?void 0:a.palette.background.body} !important`,[D("--palette-background-surface")]:`${(i=e.colorSchemes.light)==null?void 0:i.palette.background.surface} !important`,[D("--palette-background-popup")]:`${(l=e.colorSchemes.light)==null?void 0:l.palette.background.popup} !important`,[D("--palette-background-level1")]:`${(s=e.colorSchemes.light)==null?void 0:s.palette.background.level1} !important`,[D("--palette-background-level2")]:`${(u=e.colorSchemes.light)==null?void 0:u.palette.background.level2} !important`,[D("--palette-background-level3")]:`${(f=e.colorSchemes.light)==null?void 0:f.palette.background.level3} !important`,[D("--palette-text-primary")]:`${(d=e.colorSchemes.light)==null?void 0:d.palette.text.primary} !important`,[D("--palette-text-secondary")]:`${(h=e.colorSchemes.light)==null?void 0:h.palette.text.secondary} !important`,[D("--palette-text-tertiary")]:`${(m=e.colorSchemes.light)==null?void 0:m.palette.text.tertiary} !important`,[D("--palette-divider")]:`${(v=e.colorSchemes.light)==null?void 0:v.palette.divider} !important`},[e.getColorSchemeSelector("dark")]:{[D("--palette-focusVisible")]:`${(S=e.colorSchemes.dark)==null?void 0:S.palette.focusVisible} !important`,[D("--palette-background-body")]:`${(w=e.colorSchemes.dark)==null?void 0:w.palette.background.body} !important`,[D("--palette-background-surface")]:`${(x=e.colorSchemes.dark)==null?void 0:x.palette.background.surface} !important`,[D("--palette-background-popup")]:`${(b=e.colorSchemes.dark)==null?void 0:b.palette.background.popup} !important`,[D("--palette-background-level1")]:`${(A=e.colorSchemes.dark)==null?void 0:A.palette.background.level1} !important`,[D("--palette-background-level2")]:`${(j=e.colorSchemes.dark)==null?void 0:j.palette.background.level2} !important`,[D("--palette-background-level3")]:`${(_=e.colorSchemes.dark)==null?void 0:_.palette.background.level3} !important`,[D("--palette-text-primary")]:`${(R=e.colorSchemes.dark)==null?void 0:R.palette.text.primary} !important`,[D("--palette-text-secondary")]:`${(N=e.colorSchemes.dark)==null?void 0:N.palette.text.secondary} !important`,[D("--palette-text-tertiary")]:`${(T=e.colorSchemes.dark)==null?void 0:T.palette.text.tertiary} !important`,[D("--palette-divider")]:`${(z=e.colorSchemes.dark)==null?void 0:z.palette.divider} !important`}}};function P8(e){return e.theme!==void 0}const I8=e=>t=>{const a=P8(t)?t.theme:t,i=L0(a.cssVarPrefix),l=K0(a.cssVarPrefix),s=u=>{const f=u.split("-");return i(u,a.palette[f[1]][f[2]])};return{[_5]:{"--Badge-ringColor":s(`palette-${e}-solidBg`),"--Icon-color":"currentColor",[`${a.getColorSchemeSelector("light")}, ${a.getColorSchemeSelector("dark")}`]:{colorScheme:"dark",[l("--palette-focusVisible")]:s(`palette-${e}-200`),[l("--palette-background-body")]:"rgba(0 0 0 / 0.1)",[l("--palette-background-surface")]:"rgba(0 0 0 / 0.06)",[l("--palette-background-popup")]:s(`palette-${e}-700`),[l("--palette-background-level1")]:`rgba(${s(`palette-${e}-darkChannel`)} / 0.2)`,[l("--palette-background-level2")]:`rgba(${s(`palette-${e}-darkChannel`)} / 0.36)`,[l("--palette-background-level3")]:`rgba(${s(`palette-${e}-darkChannel`)} / 0.6)`,[l("--palette-text-primary")]:s("palette-common-white"),[l("--palette-text-secondary")]:s(`palette-${e}-200`),[l("--palette-text-tertiary")]:s(`palette-${e}-300`),[l("--palette-text-icon")]:s(`palette-${e}-200`),[l("--palette-divider")]:`rgba(${s(`palette-${e}-lightChannel`)} / 0.32)`,"--variant-plainColor":s(`palette-${e}-50`),"--variant-plainHoverColor":"#fff","--variant-plainHoverBg":`rgba(${s(`palette-${e}-lightChannel`)} / 0.12)`,"--variant-plainActiveBg":`rgba(${s(`palette-${e}-lightChannel`)} / 0.32)`,"--variant-plainDisabledColor":`rgba(${s(`palette-${e}-lightChannel`)} / 0.72)`,"--variant-outlinedColor":s(`palette-${e}-50`),"--variant-outlinedBorder":`rgba(${s(`palette-${e}-lightChannel`)} / 0.5)`,"--variant-outlinedHoverColor":"#fff","--variant-outlinedHoverBorder":s(`palette-${e}-300`),"--variant-outlinedHoverBg":`rgba(${s(`palette-${e}-lightChannel`)} / 0.12)`,"--variant-outlinedActiveBg":`rgba(${s(`palette-${e}-lightChannel`)} / 0.32)`,"--variant-outlinedDisabledColor":`rgba(${s(`palette-${e}-lightChannel`)} / 0.72)`,"--variant-outlinedDisabledBorder":"rgba(255 255 255 / 0.2)","--variant-softColor":s("palette-common-white"),"--variant-softHoverColor":s("palette-common-white"),"--variant-softBg":`rgba(${s(`palette-${e}-lightChannel`)} / 0.24)`,"--variant-softHoverBg":`rgba(${s(`palette-${e}-lightChannel`)} / 0.36)`,"--variant-softActiveBg":`rgba(${s(`palette-${e}-lightChannel`)} / 0.16)`,"--variant-softActiveColor":"#fff","--variant-softDisabledColor":`rgba(${s(`palette-${e}-lightChannel`)} / 0.72)`,"--variant-softDisabledBg":`rgba(${s(`palette-${e}-lightChannel`)} / 0.1)`,"--variant-solidColor":s(`palette-${e}-${e==="neutral"?"600":"500"}`),"--variant-solidBg":s("palette-common-white"),"--variant-solidHoverBg":s("palette-common-white"),"--variant-solidActiveBg":s(`palette-${e}-100`),"--variant-solidDisabledColor":`rgba(${s(`palette-${e}-lightChannel`)} / 0.72)`,"--variant-solidDisabledBg":`rgba(${s(`palette-${e}-lightChannel`)} / 0.1)`}},[`&, & [${Ys}]`]:j5(a)}},H8=e=>t=>{const{theme:a=t}=t,i=L0(a.cssVarPrefix),l=K0(a.cssVarPrefix),s=u=>{const f=u.split("-");return i(u,a.palette[f[1]][f[2]])};return{[_5]:{"--Badge-ringColor":s(`palette-${e}-softBg`),"--Icon-color":"currentColor",[a.getColorSchemeSelector("dark")]:{[l("--palette-focusVisible")]:s(`palette-${e}-300`),[l("--palette-background-body")]:`rgba(${s(`palette-${e}-mainChannel`)} / 0.1)`,[l("--palette-background-surface")]:`rgba(${s(`palette-${e}-mainChannel`)} / 0.08)`,[l("--palette-background-level1")]:`rgba(${s(`palette-${e}-mainChannel`)} / 0.2)`,[l("--palette-background-level2")]:`rgba(${s(`palette-${e}-mainChannel`)} / 0.4)`,[l("--palette-background-level3")]:`rgba(${s(`palette-${e}-mainChannel`)} / 0.6)`,[l("--palette-text-primary")]:s(`palette-${e}-100`),[l("--palette-text-secondary")]:`rgba(${s(`palette-${e}-lightChannel`)} / 0.72)`,[l("--palette-text-tertiary")]:`rgba(${s(`palette-${e}-lightChannel`)} / 0.6)`,[l("--palette-text-icon")]:`rgba(${s(`palette-${e}-lightChannel`)} / 0.6)`,[l("--palette-divider")]:`rgba(${s(`palette-${e}-lightChannel`)} / 0.2)`,"--variant-plainColor":`rgba(${s(`palette-${e}-lightChannel`)} / 1)`,"--variant-plainHoverColor":s(`palette-${e}-50`),"--variant-plainHoverBg":`rgba(${s(`palette-${e}-mainChannel`)} / 0.16)`,"--variant-plainActiveBg":`rgba(${s(`palette-${e}-mainChannel`)} / 0.32)`,"--variant-plainDisabledColor":`rgba(${s(`palette-${e}-mainChannel`)} / 0.72)`,"--variant-outlinedColor":`rgba(${s(`palette-${e}-lightChannel`)} / 1)`,"--variant-outlinedHoverColor":s(`palette-${e}-50`),"--variant-outlinedBg":"initial","--variant-outlinedBorder":`rgba(${s(`palette-${e}-mainChannel`)} / 0.4)`,"--variant-outlinedHoverBorder":s(`palette-${e}-600`),"--variant-outlinedHoverBg":`rgba(${s(`palette-${e}-mainChannel`)} / 0.16)`,"--variant-outlinedActiveBg":`rgba(${s(`palette-${e}-mainChannel`)} / 0.32)`,"--variant-outlinedDisabledColor":`rgba(${s(`palette-${e}-mainChannel`)} / 0.72)`,"--variant-outlinedDisabledBorder":`rgba(${s(`palette-${e}-mainChannel`)} / 0.2)`,"--variant-softColor":s(`palette-${e}-200`),"--variant-softBg":`rgba(${s(`palette-${e}-mainChannel`)} / 0.24)`,"--variant-softHoverColor":"#fff","--variant-softHoverBg":`rgba(${s(`palette-${e}-mainChannel`)} / 0.32)`,"--variant-softActiveBg":`rgba(${s(`palette-${e}-mainChannel`)} / 0.48)`,"--variant-softDisabledColor":`rgba(${s(`palette-${e}-mainChannel`)} / 0.72)`,"--variant-softDisabledBg":`rgba(${s(`palette-${e}-mainChannel`)} / 0.12)`,"--variant-solidColor":"#fff","--variant-solidBg":s(`palette-${e}-500`),"--variant-solidHoverColor":"#fff","--variant-solidHoverBg":s(`palette-${e}-600`),"--variant-solidActiveBg":s(`palette-${e}-600`),"--variant-solidDisabledColor":`rgba(${s(`palette-${e}-mainChannel`)} / 0.72)`,"--variant-solidDisabledBg":`rgba(${s(`palette-${e}-mainChannel`)} / 0.12)`},[a.getColorSchemeSelector("light")]:{[l("--palette-focusVisible")]:s(`palette-${e}-500`),[l("--palette-background-body")]:`rgba(${s(`palette-${e}-mainChannel`)} / 0.1)`,[l("--palette-background-surface")]:`rgba(${s(`palette-${e}-mainChannel`)} / 0.08)`,[l("--palette-background-level1")]:`rgba(${s(`palette-${e}-mainChannel`)} / 0.2)`,[l("--palette-background-level2")]:`rgba(${s(`palette-${e}-mainChannel`)} / 0.32)`,[l("--palette-background-level3")]:`rgba(${s(`palette-${e}-mainChannel`)} / 0.48)`,[l("--palette-text-primary")]:s(`palette-${e}-700`),[l("--palette-text-secondary")]:`rgba(${s(`palette-${e}-darkChannel`)} / 0.8)`,[l("--palette-text-tertiary")]:`rgba(${s(`palette-${e}-darkChannel`)} / 0.68)`,[l("--palette-text-icon")]:s(`palette-${e}-500`),[l("--palette-divider")]:`rgba(${s(`palette-${e}-mainChannel`)} / 0.32)`,"--variant-plainColor":`rgba(${s(`palette-${e}-darkChannel`)} / 0.8)`,"--variant-plainHoverColor":`rgba(${s(`palette-${e}-darkChannel`)} / 1)`,"--variant-plainHoverBg":`rgba(${s(`palette-${e}-mainChannel`)} / 0.12)`,"--variant-plainActiveBg":`rgba(${s(`palette-${e}-mainChannel`)} / 0.24)`,"--variant-plainDisabledColor":`rgba(${s(`palette-${e}-mainChannel`)} / 0.6)`,"--variant-outlinedColor":`rgba(${s(`palette-${e}-mainChannel`)} / 1)`,"--variant-outlinedBorder":`rgba(${s(`palette-${e}-mainChannel`)} / 0.4)`,"--variant-outlinedHoverColor":s(`palette-${e}-600`),"--variant-outlinedHoverBorder":s(`palette-${e}-300`),"--variant-outlinedHoverBg":`rgba(${s(`palette-${e}-mainChannel`)} / 0.12)`,"--variant-outlinedActiveBg":`rgba(${s(`palette-${e}-mainChannel`)} / 0.24)`,"--variant-outlinedDisabledColor":`rgba(${s(`palette-${e}-mainChannel`)} / 0.6)`,"--variant-outlinedDisabledBorder":`rgba(${s(`palette-${e}-mainChannel`)} / 0.12)`,"--variant-softColor":s(`palette-${e}-600`),"--variant-softBg":`rgba(${s(`palette-${e}-lightChannel`)} / 0.8)`,"--variant-softHoverColor":s(`palette-${e}-700`),"--variant-softHoverBg":s(`palette-${e}-200`),"--variant-softActiveBg":s(`palette-${e}-300`),"--variant-softDisabledColor":`rgba(${s(`palette-${e}-mainChannel`)} / 0.6)`,"--variant-softDisabledBg":`rgba(${s(`palette-${e}-mainChannel`)} / 0.08)`,"--variant-solidColor":s("palette-common-white"),"--variant-solidBg":s(`palette-${e}-${e==="neutral"?"700":"500"}`),"--variant-solidHoverColor":s("palette-common-white"),"--variant-solidHoverBg":s(`palette-${e}-600`),"--variant-solidActiveBg":s(`palette-${e}-600`),"--variant-solidDisabledColor":`rgba(${s(`palette-${e}-mainChannel`)} / 0.6)`,"--variant-solidDisabledBg":`rgba(${s(`palette-${e}-mainChannel`)} / 0.08)`}},[`&, & [${Ys}]`]:j5(a)}},k5=C.createContext(void 0),N5=_e("div")(({ownerState:e,theme:t})=>L({"--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"}));_e(N5,{name:"JoyModal",slot:"Root",overridesResolver:(e,t)=>t.root})({});const z5=_e("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)"}));_e(z5,{name:"JoyModal",slot:"Backdrop",overridesResolver:(e,t)=>t.backdrop})({});function U8(e){return Un("MuiDrawer",e)}wn("MuiDrawer",["root","hidden","backdrop","content","colorPrimary","colorNeutral","colorDanger","colorSuccess","colorWarning","colorContext","variantPlain","variantOutlined","variantSoft","variantSolid","sizeSm","sizeMd","sizeLg"]);const D5=C.createContext(void 0),M5=C.createContext(void 0),F8=wn("MuiDialogTitle",["root","h1","h2","h3","h4","title-lg","title-md","title-sm","body-lg","body-md","body-sm","body-xs","colorPrimary","colorNeutral","colorDanger","colorSuccess","colorWarning","colorContext","variantPlain","variantOutlined","variantSoft","variantSolid"]),V8=["children","anchor","container","disableAutoFocus","disableEnforceFocus","disableEscapeKeyDown","disablePortal","disableRestoreFocus","disableScrollLock","hideBackdrop","color","variant","invertedColors","size","onClose","onKeyDown","open","component","slots","slotProps"],q8=e=>{const{open:t,variant:a,color:i,size:l}=e,s={root:["root",!t&&"hidden",a&&`variant${Ie(a)}`,i&&`color${Ie(i)}`,l&&`size${Ie(l)}`],backdrop:["backdrop"],content:["content"]};return Hn(s,U8,{})},Y8=_e(N5,{name:"JoyDrawer",slot:"Root",overridesResolver:(e,t)=>t.root})(({ownerState:e})=>L({"--Drawer-transitionDuration":"0.3s","--Drawer-transitionFunction":"ease","--ModalClose-radius":"max((var(--Drawer-contentRadius) - var(--variant-borderWidth, 0px)) - var(--ModalClose-inset), min(var(--ModalClose-inset) / 2, (var(--Drawer-contentRadius) - var(--variant-borderWidth, 0px)) / 2))"},e.size==="sm"&&{"--ModalClose-inset":"0.5rem","--Drawer-verticalSize":"clamp(350px, 30%, 100%)","--Drawer-horizontalSize":"clamp(256px, 20%, 100%)","--Drawer-titleMargin":"0.625rem 0.75rem calc(0.625rem / 2)"},e.size==="md"&&{"--ModalClose-inset":"0.5rem","--Drawer-verticalSize":"clamp(400px, 45%, 100%)","--Drawer-horizontalSize":"clamp(300px, 30%, 100%)","--Drawer-titleMargin":"0.75rem 0.75rem calc(0.75rem / 2)"},e.size==="lg"&&{"--ModalClose-inset":"0.75rem","--Drawer-verticalSize":"clamp(500px, 60%, 100%)","--Drawer-horizontalSize":"clamp(440px, 60%, 100%)","--Drawer-titleMargin":"1rem 1rem calc(1rem / 2)"},{transitionProperty:"visibility",transitionDelay:e.open?"0s":"var(--Drawer-transitionDuration)"},!e.open&&{visibility:"hidden"})),G8=_e(z5,{name:"JoyDrawer",slot:"Backdrop",overridesResolver:(e,t)=>t.backdrop})(({ownerState:e})=>({opacity:e.open?1:0,transition:"opacity var(--Drawer-transitionDuration) ease-in-out"})),W8=_e("div",{name:"JoyDrawer",slot:"Content",overridesResolver:(e,t)=>t.content})(({theme:e,ownerState:t})=>{var a;return L({},e.typography[`body-${t.size}`],{boxShadow:e.shadow.md,backgroundColor:e.vars.palette.background.surface,outline:0,display:"flex",flexDirection:"column",position:"fixed",boxSizing:"border-box",overflow:"auto"},t.anchor==="left"&&{top:0,left:0,transform:t.open?"translateX(0)":"translateX(-100%)"},t.anchor==="right"&&{top:0,right:0,transform:t.open?"translateX(0)":"translateX(100%)"},t.anchor==="top"&&{top:0,transform:t.open?"translateY(0)":"translateY(-100%)"},t.anchor==="bottom"&&{bottom:0,transform:t.open?"translateY(0)":"translateY(100%)"},{height:t.anchor.match(/(left|right)/)?"100%":"min(100vh, var(--Drawer-verticalSize))",width:t.anchor.match(/(top|bottom)/)?"100vw":"min(100vw, var(--Drawer-horizontalSize))",transition:"transform var(--Drawer-transitionDuration) var(--Drawer-transitionFunction)"},t.variant==="solid"&&t.color&&t.invertedColors&&I8(t.color)(e),t.variant==="soft"&&t.color&&t.invertedColors&&H8(t.color)(e),(a=e.variants[t.variant])==null?void 0:a[t.color],{[`& > .${F8.root}`]:{"--unstable_DialogTitle-margin":"var(--Drawer-titleMargin)"}})}),K8=C.forwardRef(function(t,a){const i=dr({props:t,name:"JoyDrawer"}),{children:l,anchor:s="left",container:u,disableAutoFocus:f=!1,disableEnforceFocus:d=!1,disableEscapeKeyDown:h=!1,disablePortal:m=!1,disableRestoreFocus:v=!1,disableScrollLock:S=!1,hideBackdrop:w=!1,color:x="neutral",variant:b="plain",invertedColors:A=!1,size:j="md",onClose:_,open:R,component:N,slots:T={},slotProps:z={}}=i,D=Ue(i,V8),V=L({},i,{anchor:s,disableAutoFocus:f,disableEnforceFocus:d,disableEscapeKeyDown:h,disablePortal:m,disableRestoreFocus:v,disableScrollLock:S,hideBackdrop:w,invertedColors:A,color:x,variant:b,size:j}),{getRootProps:Q,getBackdropProps:Z,rootRef:q,portalRef:$,isTopModal:H}=tk(L({},V,{rootRef:a,children:null})),U=q8(V),Y=L({},D,{component:N,slots:T,slotProps:z}),k=cf(),P=cf(),J=C.useMemo(()=>({variant:b,color:x,labelledBy:k,describedBy:P}),[x,b,k,P]),[ue,ye]=We("root",{ref:q,className:U.root,elementType:Y8,externalForwardedProps:Y,getSlotProps:Q,ownerState:V}),[M,G]=We("backdrop",{className:U.backdrop,elementType:G8,externalForwardedProps:Y,getSlotProps:Z,ownerState:V}),[le,ce]=We("content",{className:U.content,elementType:W8,additionalProps:{tabIndex:-1,role:"dialog","aria-modal":"true","aria-labelledby":k,"aria-describedby":P},externalForwardedProps:Y,ownerState:V});return y.jsx(k5.Provider,{value:_,children:y.jsx(M5.Provider,{value:j,children:y.jsx(D5.Provider,{value:J,children:y.jsx(v5,{ref:$,container:u,disablePortal:m,children:y.jsxs(ue,L({},ye,{children:[w?null:y.jsx(M,L({},G)),y.jsx(bj,{disableEnforceFocus:d,disableAutoFocus:f,disableRestoreFocus:v,isEnabled:H,open:R,children:y.jsx(le,L({},ce,{children:l}))})]}))})})})})});function X8(e){return Un("MuiInput",e)}const B5=wn("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"]),L5=C.createContext(void 0),Q8=["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 J8(e,t){var a;const i=C.useContext(L5),{"aria-describedby":l,"aria-label":s,"aria-labelledby":u,autoComplete:f,autoFocus:d,className:h,defaultValue:m,disabled:v,disabledInProp:S,error:w,id:x,name:b,onClick:A,onChange:j,onKeyDown:_,onKeyUp:R,onFocus:N,onBlur:T,placeholder:z,readOnly:D,required:V,type:Q,value:Z}=e,q=Ue(e,Q8),{getRootProps:$,getInputProps:H,focused:U,error:Y,disabled:k}=Cj({disabled:(a=S??i?.disabled)!=null?a:v,defaultValue:m,error:w,onBlur:T,onClick:A,onChange:j,onFocus:N,required:V??i?.required,value:Z}),P={[t.disabled]:k,[t.error]:Y,[t.focused]:U,[t.formControl]:!!i,[h]:h},J={[t.disabled]:k};return L({formControl:i,propsToForward:{"aria-describedby":l,"aria-label":s,"aria-labelledby":u,autoComplete:f,autoFocus:d,disabled:k,id:x,onKeyDown:_,onKeyUp:R,name:b,placeholder:z,readOnly:D,type:Q},rootStateClasses:P,inputStateClasses:J,getRootProps:$,getInputProps:H,focused:U,error:Y,disabled:k},q)}const Z8=["propsToForward","rootStateClasses","inputStateClasses","getRootProps","getInputProps","formControl","focused","error","disabled","fullWidth","size","color","variant","startDecorator","endDecorator","component","slots","slotProps"],eN=e=>{const{disabled:t,fullWidth:a,variant:i,color:l,size:s}=e,u={root:["root",t&&"disabled",a&&"fullWidth",i&&`variant${Ie(i)}`,l&&`color${Ie(l)}`,s&&`size${Ie(s)}`],input:["input"],startDecorator:["startDecorator"],endDecorator:["endDecorator"]};return Hn(u,X8,{})},tN=_e("div")(({theme:e,ownerState:t})=>{var a,i,l,s,u,f;const d=(a=e.variants[`${t.variant}`])==null?void 0:a[t.color];return[L({"--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":(i=e.vars.palette[t.color==="neutral"?"primary":t.color])==null?void 0:i[500],[`&:not([${Ys}])`]:L({},t.instanceColor&&{"--_Input-focusedHighlight":(l=e.vars.palette[t.instanceColor==="neutral"?"primary":t.instanceColor])==null?void 0:l[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},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}`],d,{backgroundColor:(s=d?.backgroundColor)!=null?s: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":L({},(u=e.variants[`${t.variant}Hover`])==null?void 0:u[t.color],{backgroundColor:null}),[`&.${B5.disabled}`]:(f=e.variants[`${t.variant}Disabled`])==null?void 0:f[t.color],"&:focus-within::before":{"--Input-focused":"1"}}]}),nN=_e("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":L({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)"}})),rN=_e("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"}),aN=_e("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"}),iN=_e(tN,{name:"JoyInput",slot:"Root",overridesResolver:(e,t)=>t.root})({}),oN=_e(nN,{name:"JoyInput",slot:"Input",overridesResolver:(e,t)=>t.input})({}),lN=_e(rN,{name:"JoyInput",slot:"StartDecorator",overridesResolver:(e,t)=>t.startDecorator})({}),sN=_e(aN,{name:"JoyInput",slot:"EndDecorator",overridesResolver:(e,t)=>t.endDecorator})({}),P5=C.forwardRef(function(t,a){var i,l,s,u,f,d;const h=dr({props:t,name:"JoyInput"}),m=J8(L({},h,{disabledInProp:t.disabled}),B5),{propsToForward:v,rootStateClasses:S,inputStateClasses:w,getRootProps:x,getInputProps:b,formControl:A,focused:j,error:_=!1,disabled:R,fullWidth:N=!1,size:T="md",color:z="neutral",variant:D="outlined",startDecorator:V,endDecorator:Q,component:Z,slots:q={},slotProps:$={}}=m,H=Ue(m,Z8),U=(i=(l=t.error)!=null?l:A?.error)!=null?i:_,Y=(s=(u=t.size)!=null?u:A?.size)!=null?s:T,k=(f=t.color)!=null?f:U?"danger":(d=A?.color)!=null?d:z,P=L({instanceColor:U?"danger":t.color},h,{fullWidth:N,color:k,disabled:R,error:U,focused:j,size:Y,variant:D}),J=eN(P),ue=L({},H,{component:Z,slots:q,slotProps:$}),[ye,M]=We("root",{ref:a,className:[J.root,S],elementType:iN,getSlotProps:x,externalForwardedProps:ue,ownerState:P}),[G,le]=We("input",L({},A&&{additionalProps:{id:A.htmlFor,"aria-describedby":A["aria-describedby"]}},{className:[J.input,w],elementType:oN,getSlotProps:b,internalForwardedProps:v,externalForwardedProps:ue,ownerState:P})),[ce,de]=We("startDecorator",{className:J.startDecorator,elementType:lN,externalForwardedProps:ue,ownerState:P}),[me,se]=We("endDecorator",{className:J.endDecorator,elementType:sN,externalForwardedProps:ue,ownerState:P});return y.jsxs(ye,L({},M,{children:[V&&y.jsx(ce,L({},de,{children:V})),y.jsx(G,L({},le)),Q&&y.jsx(me,L({},se,{children:Q}))]}))}),I5=({theme:e,ownerState:t},a)=>{let i={};function l(s){if(typeof s=="function"){const u=s(e);l(u)}else Array.isArray(s)?s.forEach(u=>{typeof u!="boolean"&&l(u)}):typeof s=="object"&&(i=L({},i,s))}return t.sx&&(l(t.sx),a.forEach(s=>{const u=i[s];if(typeof u=="string"||typeof u=="number")if(s==="borderRadius")if(typeof u=="number")i[s]=`${u}px`;else{var f;i[s]=((f=e.vars)==null?void 0:f.radius[u])||u}else["p","padding","m","margin"].indexOf(s)!==-1&&typeof u=="number"?i[s]=e.spacing(u):i[s]=u;else typeof u=="function"?i[s]=u(e):i[s]=void 0})),i};function cN(e){return Un("MuiList",e)}wn("MuiList",["root","nesting","scoped","sizeSm","sizeMd","sizeLg","colorPrimary","colorNeutral","colorDanger","colorSuccess","colorWarning","colorContext","variantPlain","variantOutlined","variantSoft","variantSolid","horizontal","vertical"]);const H5=C.createContext(!1),uN=C.createContext(void 0),U5=C.createContext(void 0),X0=C.createContext(!1),fN=C.createContext(!1),dN={"--NestedList-marginRight":"0px","--NestedList-marginLeft":"0px","--NestedListItem-paddingLeft":"var(--ListItem-paddingX)","--ListItemButton-marginBlock":"0px","--ListItemButton-marginInline":"0px","--ListItem-marginBlock":"0px","--ListItem-marginInline":"0px"};function F5(e){const{children:t,nested:a,row:i=!1,wrap:l=!1}=e,s=y.jsx(X0.Provider,{value:i,children:y.jsx(fN.Provider,{value:l,children:C.Children.map(t,(u,f)=>C.isValidElement(u)?C.cloneElement(u,L({},f===0&&{"data-first-child":""},f===C.Children.count(t)-1&&{"data-last-child":""})):u)})});return a===void 0?s:y.jsx(H5.Provider,{value:a,children:s})}const pN=C.createContext(void 0),hN=["component","className","children","size","orientation","wrap","variant","color","role","slots","slotProps"],mN=e=>{const{variant:t,color:a,size:i,nesting:l,orientation:s,instanceSize:u}=e,f={root:["root",s,t&&`variant${Ie(t)}`,a&&`color${Ie(a)}`,!u&&!l&&i&&`size${Ie(i)}`,u&&`size${Ie(u)}`,l&&"nesting"]};return Hn(f,cN,{})},V5=_e("ul")(({theme:e,ownerState:t})=>{var a;const{p:i,padding:l,borderRadius:s}=I5({theme:e,ownerState:t},["p","padding","borderRadius"]);function u(f){return f==="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}:f==="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}:f==="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&&L({},u(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&&L({},u(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"?L({},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"}),L({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"},(a=e.variants[t.variant])==null?void 0:a[t.color],{"--unstable_List-borderWidth":"var(--variant-borderWidth, 0px)"},s!==void 0&&{"--List-radius":s},i!==void 0&&{"--List-padding":i},l!==void 0&&{"--List-padding":l})]}),gN=_e(V5,{name:"JoyList",slot:"Root",overridesResolver:(e,t)=>t.root})({}),vN=C.forwardRef(function(t,a){var i;const l=C.useContext(H5),s=C.useContext(U5),u=C.useContext(pN),f=dr({props:t,name:"JoyList"}),{component:d,className:h,children:m,size:v,orientation:S="vertical",wrap:w=!1,variant:x="plain",color:b="neutral",role:A,slots:j={},slotProps:_={}}=f,R=Ue(f,hN),N=v||((i=t.size)!=null?i:"md");let T;s&&(T="group"),u&&(T="presentation"),A&&(T=A);const z=L({},f,{instanceSize:t.size,size:N,nesting:l,orientation:S,wrap:w,variant:x,color:b,role:T}),D=mN(z),V=L({},R,{component:d,slots:j,slotProps:_}),[Q,Z]=We("root",{ref:a,className:Xe(D.root,h),elementType:gN,externalForwardedProps:V,ownerState:z,additionalProps:{as:d,role:T,"aria-labelledby":typeof l=="string"?l:void 0}});return y.jsx(Q,L({},Z,{children:y.jsx(uN.Provider,{value:`${typeof d=="string"?d:""}:${T||""}`,children:y.jsx(F5,{row:S==="horizontal",wrap:w,children:m})})}))}),yN=wn("MuiListItem",["root","startAction","endAction","nested","nesting","sticky","colorPrimary","colorNeutral","colorDanger","colorSuccess","colorWarning","colorContext","variantPlain","variantSoft","variantOutlined","variantSolid"]);function bN(e){return Un("MuiListItemButton",e)}const qu=wn("MuiListItemButton",["root","horizontal","vertical","colorPrimary","colorNeutral","colorDanger","colorSuccess","colorWarning","colorContext","focusVisible","disabled","selected","variantPlain","variantSoft","variantOutlined","variantSolid"]),xN=C.createContext("horizontal"),SN=["children","className","action","component","orientation","role","selected","color","variant","slots","slotProps"],CN=e=>{const{color:t,disabled:a,focusVisible:i,focusVisibleClassName:l,selected:s,variant:u}=e,f={root:["root",a&&"disabled",i&&"focusVisible",t&&`color${Ie(t)}`,s&&"selected",u&&`variant${Ie(u)}`]},d=Hn(f,bN,{});return i&&l&&(d.root+=` ${l}`),d},q5=_e("div")(({theme:e,ownerState:t})=>{var a,i,l,s,u,f;return L({"--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]:L({},e.focus.default,{zIndex:1})},(a=e.variants[t.variant])==null?void 0:a[t.color],{"&:active":(i=e.variants[`${t.variant}Active`])==null?void 0:i[t.color],[`.${yN.root} > &`]:{"--unstable_ListItem-flex":"1 0 0%"},[`&.${qu.selected}`]:L({},(l=e.variants[`${t.variant}Active`])==null?void 0:l[t.color],{"--Icon-color":"currentColor"}),[`&:not(.${qu.selected}, [aria-selected="true"])`]:{"&:hover":(s=e.variants[`${t.variant}Hover`])==null?void 0:s[t.color],"&:active":(u=e.variants[`${t.variant}Active`])==null?void 0:u[t.color]},[`&.${qu.disabled}`]:L({},(f=e.variants[`${t.variant}Disabled`])==null?void 0:f[t.color])})}),EN=_e(q5,{name:"JoyListItemButton",slot:"Root",overridesResolver:(e,t)=>t.root})(({ownerState:e,theme:t})=>L({},!e.row&&{[`&.${qu.selected}`]:{fontWeight:t.vars.fontWeight.md}})),Vo=C.forwardRef(function(t,a){const i=dr({props:t,name:"JoyListItemButton"}),l=C.useContext(X0),{children:s,className:u,action:f,component:d="div",orientation:h="horizontal",role:m,selected:v=!1,color:S="neutral",variant:w="plain",slots:x={},slotProps:b={}}=i,A=Ue(i,SN),j=C.useRef(null),_=Ht(j,a),{focusVisible:R,setFocusVisible:N,getRootProps:T}=gl(L({},i,{rootRef:_}));C.useImperativeHandle(f,()=>({focusVisible:()=>{var q;N(!0),(q=j.current)==null||q.focus()}}),[N]);const z=L({},i,{component:d,color:S,focusVisible:R,orientation:h,row:l,selected:v,variant:w}),D=CN(z),V=L({},A,{component:d,slots:x,slotProps:b}),[Q,Z]=We("root",{ref:a,className:Xe(D.root,u),elementType:EN,externalForwardedProps:V,ownerState:z,getSlotProps:T});return y.jsx(xN.Provider,{value:h,children:y.jsx(Q,L({},Z,{role:m??Z.role,children:s}))})});function wN(e){return Un("MuiTypography",e)}wn("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 AN=["color","textColor"],RN=["component","gutterBottom","noWrap","level","levelMapping","children","endDecorator","startDecorator","variant","slots","slotProps"],I2=C.createContext(!1),TN=C.createContext(!1),$N=e=>{const{gutterBottom:t,noWrap:a,level:i,color:l,variant:s}=e,u={root:["root",i,t&&"gutterBottom",a&&"noWrap",l&&`color${Ie(l)}`,s&&`variant${Ie(s)}`],startDecorator:["startDecorator"],endDecorator:["endDecorator"]};return Hn(u,wN,{})},ON=_e("span",{name:"JoyTypography",slot:"StartDecorator",overridesResolver:(e,t)=>t.startDecorator})({display:"inline-flex",marginInlineEnd:"clamp(4px, var(--Typography-gap, 0.375em), 0.75rem)"}),_N=_e("span",{name:"JoyTypography",slot:"endDecorator",overridesResolver:(e,t)=>t.endDecorator})({display:"inline-flex",marginInlineStart:"clamp(4px, var(--Typography-gap, 0.375em), 0.75rem)"}),jN=_e("span",{name:"JoyTypography",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e,ownerState:t})=>{var a,i,l,s,u;const f=t.level!=="inherit"?(a=e.typography[t.level])==null?void 0:a.lineHeight:"1";return L({"--Icon-fontSize":`calc(1em * ${f})`},t.color&&{"--Icon-color":"currentColor"},{margin:"var(--Typography-margin, 0px)"},t.nesting?{display:"inline"}:L({display:"block"},t.unstable_hasSkeleton&&{position:"relative"}),(t.startDecorator||t.endDecorator)&&L({display:"flex",alignItems:"center"},t.nesting&&L({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"&&(i=(l=e.typography[t.level])==null?void 0:l.fontSize)!=null?i:"inherit"})`},t.noWrap&&{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},t.gutterBottom&&{marginBottom:"0.35em"},t.color&&{color:`var(--variant-plainColor, rgba(${(s=e.vars.palette[t.color])==null?void 0:s.mainChannel} / 1))`},t.variant&&L({borderRadius:e.vars.radius.xs,paddingBlock:"min(0.1em, 4px)",paddingInline:"0.25em"},!t.nesting&&{marginInline:"-0.25em"},(u=e.variants[t.variant])==null?void 0:u[t.color]))}),H2={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"},Y5=C.forwardRef(function(t,a){var i;const l=dr({props:t,name:"JoyTypography"}),{color:s,textColor:u}=l,f=Ue(l,AN),d=C.useContext(I2),h=C.useContext(TN),m=ZC(L({},f,{color:u})),{component:v,gutterBottom:S=!1,noWrap:w=!1,level:x="body-md",levelMapping:b=H2,children:A,endDecorator:j,startDecorator:_,variant:R,slots:N={},slotProps:T={}}=m,z=Ue(m,RN),D=(i=t.color)!=null?i:R?s??"neutral":s,V=d||h?t.level||"inherit":x,Q=C7(A,["Skeleton"]),Z=v||(d?"span":b[V]||H2[V]||"span"),q=L({},m,{level:V,component:Z,color:D,gutterBottom:S,noWrap:w,nesting:d,variant:R,unstable_hasSkeleton:Q}),$=$N(q),H=L({},z,{component:Z,slots:N,slotProps:T}),[U,Y]=We("root",{ref:a,className:$.root,elementType:jN,externalForwardedProps:H,ownerState:q}),[k,P]=We("startDecorator",{className:$.startDecorator,elementType:ON,externalForwardedProps:H,ownerState:q}),[J,ue]=We("endDecorator",{className:$.endDecorator,elementType:_N,externalForwardedProps:H,ownerState:q});return y.jsx(I2.Provider,{value:!0,children:y.jsxs(U,L({},Y,{children:[_&&y.jsx(k,L({},P,{children:_})),Q?C.cloneElement(A,{variant:A.props.variant||"inline"}):A,j&&y.jsx(J,L({},ue,{children:j}))]}))})});Y5.muiName="Typography";function kN(e){return Un("MuiModalClose",e)}wn("MuiModalClose",["root","colorPrimary","colorNeutral","colorDanger","colorSuccess","colorWarning","colorContext","variantPlain","variantOutlined","variantSoft","variantSolid","sizeSm","sizeMd","sizeLg"]);function NN(e){return Un("MuiSvgIcon",e)}wn("MuiSvgIcon",["root","colorInherit","colorPrimary","colorNeutral","colorDanger","colorSuccess","colorWarning","fontSizeInherit","fontSizeXs","fontSizeSm","fontSizeMd","fontSizeLg","fontSizeXl","fontSizeXl2","fontSizeXl3","fontSizeXl4","sizeSm","sizeMd","sizeLg"]);const zN=["children","className","color","component","fontSize","htmlColor","inheritViewBox","titleAccess","viewBox","size","slots","slotProps"],DN=e=>{const{color:t,size:a,fontSize:i}=e,l={root:["root",t&&t!=="inherit"&&`color${Ie(t)}`,a&&`size${Ie(a)}`,i&&`fontSize${Ie(i)}`]};return Hn(l,NN,{})},U2={sm:"xl",md:"xl2",lg:"xl3"},MN=_e("svg",{name:"JoySvgIcon",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e,ownerState:t})=>{var a;return L({},t.instanceSize&&{"--Icon-fontSize":e.vars.fontSize[U2[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[U2[t.size]]||"unset"})`},t.fontSize&&t.fontSize!=="inherit"&&{fontSize:`var(--Icon-fontSize, ${e.fontSize[t.fontSize]})`},!t.htmlColor&&L({color:`var(--Icon-color, ${e.vars.palette.text.icon})`},t.color==="inherit"&&{color:"inherit"},t.color!=="inherit"&&e.vars.palette[t.color]&&{color:`rgba(${(a=e.vars.palette[t.color])==null?void 0:a.mainChannel} / 1)`}))}),F2=C.forwardRef(function(t,a){const i=dr({props:t,name:"JoySvgIcon"}),{children:l,className:s,color:u,component:f="svg",fontSize:d,htmlColor:h,inheritViewBox:m=!1,titleAccess:v,viewBox:S="0 0 24 24",size:w="md",slots:x={},slotProps:b={}}=i,A=Ue(i,zN),j=C.isValidElement(l)&&l.type==="svg",_=L({},i,{color:u,component:f,size:w,instanceSize:t.size,fontSize:d,instanceFontSize:t.fontSize,inheritViewBox:m,viewBox:S,hasSvgAsChild:j}),R=DN(_),N=L({},A,{component:f,slots:x,slotProps:b}),[T,z]=We("root",{ref:a,className:Xe(R.root,s),elementType:MN,externalForwardedProps:N,ownerState:_,additionalProps:L({color:h,focusable:!1},v&&{role:"img"},!v&&{"aria-hidden":!0},!m&&{viewBox:S},j&&l.props)});return y.jsxs(T,L({},z,{children:[j?l.props.children:l,v?y.jsx("title",{children:v}):null]}))});function G5(e,t){function a(i,l){return y.jsx(F2,L({"data-testid":`${t}Icon`,ref:l},i,{children:e}))}return a.muiName=F2.muiName,C.memo(C.forwardRef(a))}const BN=G5(y.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");var V2;const LN=["component","color","variant","size","onClick","slots","slotProps"],PN=e=>{const{variant:t,color:a,disabled:i,focusVisible:l,size:s}=e,u={root:["root",i&&"disabled",l&&"focusVisible",t&&`variant${Ie(t)}`,a&&`color${Ie(a)}`,s&&`size${Ie(s)}`]};return Hn(u,kN,{})},IN=_e($5,{name:"JoyModalClose",slot:"Root",overridesResolver:(e,t)=>t.root})(({ownerState:e,theme:t})=>{var a;return L({},e.size==="sm"&&{"--IconButton-size":"1.75rem"},e.size==="md"&&{"--IconButton-size":"2rem"},e.size==="lg"&&{"--IconButton-size":"2.25rem"},{position:"absolute",zIndex:1,top:"var(--ModalClose-inset, 0.625rem)",right:"var(--ModalClose-inset, 0.625rem)",borderRadius:`var(--ModalClose-radius, ${t.vars.radius.sm})`},!((a=t.variants[e.variant])!=null&&(a=a[e.color])!=null&&a.backgroundColor)&&{color:t.vars.palette.text.secondary})}),HN={plain:"plain",outlined:"plain",soft:"soft",solid:"solid"},UN=C.forwardRef(function(t,a){var i,l,s,u,f,d;const h=dr({props:t,name:"JoyModalClose"}),{component:m="button",color:v="neutral",variant:S="plain",size:w="md",onClick:x,slots:b={},slotProps:A={}}=h,j=Ue(h,LN),_=C.useContext(k5),R=C.useContext(D5),N=(i=(l=t.variant)!=null?l:HN[R?.variant])!=null?i:S,T=(s=(u=t.color)!=null?u:R?.color)!=null?s:v,z=C.useContext(M5),D=(f=(d=t.size)!=null?d:z)!=null?f:w,{focusVisible:V,getRootProps:Q}=gl(L({},h,{rootRef:a})),Z=L({},h,{color:T,component:m,variant:N,size:D,focusVisible:V}),q=PN(Z),[$,H]=We("root",{ref:a,elementType:IN,getSlotProps:Q,externalForwardedProps:L({onClick:U=>{_?.(U,"closeClick"),x?.(U)}},j,{component:m,slots:b,slotProps:A}),className:q.root,ownerState:Z});return y.jsx($,L({},H,{children:V2||(V2=y.jsx(BN,{}))}))}),q2=e=>e,FN=()=>{let e=q2;return{configure(t){e=t},generate(t){return e(t)},reset(){e=q2}}},VN=FN();function Gs(e,...t){const a=new URL(`https://mui.com/production-error/?code=${e}`);return t.forEach(i=>a.searchParams.append("args[]",i)),`Minified MUI error #${e}; visit ${a} for the full message.`}function tt(e){if(typeof e!="string")throw new Error(Gs(7));return e.charAt(0).toUpperCase()+e.slice(1)}function Fr(e,t,a=void 0){const i={};for(const l in e){const s=e[l];let u="",f=!0;for(let d=0;d<s.length;d+=1){const h=s[d];h&&(u+=(f===!0?"":" ")+t(h),f=!1,a&&a[h]&&(u+=" "+a[h]))}i[l]=u}return i}function Nm(e,...t){const a=new URL(`https://mui.com/production-error/?code=${e}`);return t.forEach(i=>a.searchParams.append("args[]",i)),`Minified MUI error #${e}; visit ${a} for the full message.`}function W5(e){if(typeof e!="string")throw new Error(Nm(7));return e.charAt(0).toUpperCase()+e.slice(1)}var qh={exports:{}},it={};var Y2;function qN(){if(Y2)return it;Y2=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.portal"),a=Symbol.for("react.fragment"),i=Symbol.for("react.strict_mode"),l=Symbol.for("react.profiler"),s=Symbol.for("react.consumer"),u=Symbol.for("react.context"),f=Symbol.for("react.forward_ref"),d=Symbol.for("react.suspense"),h=Symbol.for("react.suspense_list"),m=Symbol.for("react.memo"),v=Symbol.for("react.lazy"),S=Symbol.for("react.view_transition"),w=Symbol.for("react.client.reference");function x(b){if(typeof b=="object"&&b!==null){var A=b.$$typeof;switch(A){case e:switch(b=b.type,b){case a:case l:case i:case d:case h:case S:return b;default:switch(b=b&&b.$$typeof,b){case u:case f:case v:case m:return b;case s:return b;default:return A}}case t:return A}}}return it.ContextConsumer=s,it.ContextProvider=u,it.Element=e,it.ForwardRef=f,it.Fragment=a,it.Lazy=v,it.Memo=m,it.Portal=t,it.Profiler=l,it.StrictMode=i,it.Suspense=d,it.SuspenseList=h,it.isContextConsumer=function(b){return x(b)===s},it.isContextProvider=function(b){return x(b)===u},it.isElement=function(b){return typeof b=="object"&&b!==null&&b.$$typeof===e},it.isForwardRef=function(b){return x(b)===f},it.isFragment=function(b){return x(b)===a},it.isLazy=function(b){return x(b)===v},it.isMemo=function(b){return x(b)===m},it.isPortal=function(b){return x(b)===t},it.isProfiler=function(b){return x(b)===l},it.isStrictMode=function(b){return x(b)===i},it.isSuspense=function(b){return x(b)===d},it.isSuspenseList=function(b){return x(b)===h},it.isValidElementType=function(b){return typeof b=="string"||typeof b=="function"||b===a||b===l||b===i||b===d||b===h||typeof b=="object"&&b!==null&&(b.$$typeof===v||b.$$typeof===m||b.$$typeof===u||b.$$typeof===s||b.$$typeof===f||b.$$typeof===w||b.getModuleId!==void 0)},it.typeOf=x,it}var G2;function YN(){return G2||(G2=1,qh.exports=qN()),qh.exports}var K5=YN();function ei(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 X5(e){if(C.isValidElement(e)||K5.isValidElementType(e)||!ei(e))return e;const t={};return Object.keys(e).forEach(a=>{t[a]=X5(e[a])}),t}function Ii(e,t,a={clone:!0}){const i=a.clone?{...e}:e;return ei(e)&&ei(t)&&Object.keys(t).forEach(l=>{C.isValidElement(t[l])||K5.isValidElementType(t[l])?i[l]=t[l]:ei(t[l])&&Object.prototype.hasOwnProperty.call(e,l)&&ei(e[l])?i[l]=Ii(e[l],t[l],a):a.clone?i[l]=ei(t[l])?X5(t[l]):t[l]:i[l]=t[l]}),i}function Ds(e,t){return t?Ii(e,t,{clone:!1}):e}function W2(e,t){if(!e.containerQueries)return t;const a=Object.keys(t).filter(i=>i.startsWith("@container")).sort((i,l)=>{const s=/min-width:\s*([0-9.]+)/;return+(i.match(s)?.[1]||0)-+(l.match(s)?.[1]||0)});return a.length?a.reduce((i,l)=>{const s=t[l];return delete i[l],i[l]=s,i},{...t}):t}function GN(e,t){return t==="@"||t.startsWith("@")&&(e.some(a=>t.startsWith(`@${a}`))||!!t.match(/^@\d/))}function WN(e,t){const a=t.match(/^@([^/]+)?\/?(.+)?$/);if(!a)return null;const[,i,l]=a,s=Number.isNaN(+i)?i||0:+i;return e.containerQueries(l).up(s)}function KN(e){const t=(s,u)=>s.replace("@media",u?`@container ${u}`:"@container");function a(s,u){s.up=(...f)=>t(e.breakpoints.up(...f),u),s.down=(...f)=>t(e.breakpoints.down(...f),u),s.between=(...f)=>t(e.breakpoints.between(...f),u),s.only=(...f)=>t(e.breakpoints.only(...f),u),s.not=(...f)=>{const d=t(e.breakpoints.not(...f),u);return d.includes("not all and")?d.replace("not all and ","").replace("min-width:","width<").replace("max-width:","width>").replace("and","or"):d}}const i={},l=s=>(a(i,s),i);return a(l),{...e,containerQueries:l}}const qf={xs:0,sm:600,md:900,lg:1200,xl:1536},K2={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${qf[e]}px)`},XN={containerQueries:e=>({up:t=>{let a=typeof t=="number"?t:qf[t]||t;return typeof a=="number"&&(a=`${a}px`),e?`@container ${e} (min-width:${a})`:`@container (min-width:${a})`}})};function Ca(e,t,a){const i=e.theme||{};if(Array.isArray(t)){const s=i.breakpoints||K2;return t.reduce((u,f,d)=>(u[s.up(s.keys[d])]=a(t[d]),u),{})}if(typeof t=="object"){const s=i.breakpoints||K2;return Object.keys(t).reduce((u,f)=>{if(GN(s.keys,f)){const d=WN(i.containerQueries?i:XN,f);d&&(u[d]=a(t[f],f))}else if(Object.keys(s.values||qf).includes(f)){const d=s.up(f);u[d]=a(t[f],f)}else{const d=f;u[d]=t[d]}return u},{})}return a(t)}function QN(e={}){return e.keys?.reduce((a,i)=>{const l=e.up(i);return a[l]={},a},{})||{}}function X2(e,t){return e.reduce((a,i)=>{const l=a[i];return(!l||Object.keys(l).length===0)&&delete a[i],a},t)}function Yf(e,t,a=!0){if(!t||typeof t!="string")return null;if(e&&e.vars&&a){const i=`vars.${t}`.split(".").reduce((l,s)=>l&&l[s]?l[s]:null,e);if(i!=null)return i}return t.split(".").reduce((i,l)=>i&&i[l]!=null?i[l]:null,e)}function pf(e,t,a,i=a){let l;return typeof e=="function"?l=e(a):Array.isArray(e)?l=e[a]||i:l=Yf(e,a)||i,t&&(l=t(l,i,e)),l}function Ot(e){const{prop:t,cssProperty:a=e.prop,themeKey:i,transform:l}=e,s=u=>{if(u[t]==null)return null;const f=u[t],d=u.theme,h=Yf(d,i)||{};return Ca(u,f,v=>{let S=pf(h,l,v);return v===S&&typeof v=="string"&&(S=pf(h,l,`${t}${v==="default"?"":W5(v)}`,v)),a===!1?S:{[a]:S}})};return s.propTypes={},s.filterProps=[t],s}function JN(e){const t={};return a=>(t[a]===void 0&&(t[a]=e(a)),t[a])}const ZN={m:"margin",p:"padding"},ez={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},Q2={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},tz=JN(e=>{if(e.length>2)if(Q2[e])e=Q2[e];else return[e];const[t,a]=e.split(""),i=ZN[t],l=ez[a]||"";return Array.isArray(l)?l.map(s=>i+s):[i+l]}),Q0=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],J0=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"];[...Q0,...J0];function lc(e,t,a,i){const l=Yf(e,t,!0)??a;return typeof l=="number"||typeof l=="string"?s=>typeof s=="string"?s:typeof l=="string"?l.startsWith("var(")&&s===0?0:l.startsWith("var(")&&s===1?l:`calc(${s} * ${l})`:l*s:Array.isArray(l)?s=>{if(typeof s=="string")return s;const u=Math.abs(s),f=l[u];return s>=0?f:typeof f=="number"?-f:typeof f=="string"&&f.startsWith("var(")?`calc(-1 * ${f})`:`-${f}`}:typeof l=="function"?l:()=>{}}function Z0(e){return lc(e,"spacing",8)}function sc(e,t){return typeof t=="string"||t==null?t:e(t)}function nz(e,t){return a=>e.reduce((i,l)=>(i[l]=sc(t,a),i),{})}function rz(e,t,a,i){if(!t.includes(a))return null;const l=tz(a),s=nz(l,i),u=e[a];return Ca(e,u,s)}function Q5(e,t){const a=Z0(e.theme);return Object.keys(e).map(i=>rz(e,t,i,a)).reduce(Ds,{})}function St(e){return Q5(e,Q0)}St.propTypes={};St.filterProps=Q0;function Ct(e){return Q5(e,J0)}Ct.propTypes={};Ct.filterProps=J0;function Gf(...e){const t=e.reduce((i,l)=>(l.filterProps.forEach(s=>{i[s]=l}),i),{}),a=i=>Object.keys(i).reduce((l,s)=>t[s]?Ds(l,t[s](i)):l,{});return a.propTypes={},a.filterProps=e.reduce((i,l)=>i.concat(l.filterProps),[]),a}function rr(e){return typeof e!="number"?e:`${e}px solid`}function pr(e,t){return Ot({prop:e,themeKey:"borders",transform:t})}const az=pr("border",rr),iz=pr("borderTop",rr),oz=pr("borderRight",rr),lz=pr("borderBottom",rr),sz=pr("borderLeft",rr),cz=pr("borderColor"),uz=pr("borderTopColor"),fz=pr("borderRightColor"),dz=pr("borderBottomColor"),pz=pr("borderLeftColor"),hz=pr("outline",rr),mz=pr("outlineColor"),Wf=e=>{if(e.borderRadius!==void 0&&e.borderRadius!==null){const t=lc(e.theme,"shape.borderRadius",4),a=i=>({borderRadius:sc(t,i)});return Ca(e,e.borderRadius,a)}return null};Wf.propTypes={};Wf.filterProps=["borderRadius"];Gf(az,iz,oz,lz,sz,cz,uz,fz,dz,pz,Wf,hz,mz);const Kf=e=>{if(e.gap!==void 0&&e.gap!==null){const t=lc(e.theme,"spacing",8),a=i=>({gap:sc(t,i)});return Ca(e,e.gap,a)}return null};Kf.propTypes={};Kf.filterProps=["gap"];const Xf=e=>{if(e.columnGap!==void 0&&e.columnGap!==null){const t=lc(e.theme,"spacing",8),a=i=>({columnGap:sc(t,i)});return Ca(e,e.columnGap,a)}return null};Xf.propTypes={};Xf.filterProps=["columnGap"];const Qf=e=>{if(e.rowGap!==void 0&&e.rowGap!==null){const t=lc(e.theme,"spacing",8),a=i=>({rowGap:sc(t,i)});return Ca(e,e.rowGap,a)}return null};Qf.propTypes={};Qf.filterProps=["rowGap"];const gz=Ot({prop:"gridColumn"}),vz=Ot({prop:"gridRow"}),yz=Ot({prop:"gridAutoFlow"}),bz=Ot({prop:"gridAutoColumns"}),xz=Ot({prop:"gridAutoRows"}),Sz=Ot({prop:"gridTemplateColumns"}),Cz=Ot({prop:"gridTemplateRows"}),Ez=Ot({prop:"gridTemplateAreas"}),wz=Ot({prop:"gridArea"});Gf(Kf,Xf,Qf,gz,vz,yz,bz,xz,Sz,Cz,Ez,wz);function tl(e,t){return t==="grey"?t:e}const Az=Ot({prop:"color",themeKey:"palette",transform:tl}),Rz=Ot({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:tl}),Tz=Ot({prop:"backgroundColor",themeKey:"palette",transform:tl});Gf(Az,Rz,Tz);function Dn(e){return e<=1&&e!==0?`${e*100}%`:e}const $z=Ot({prop:"width",transform:Dn}),eg=e=>{if(e.maxWidth!==void 0&&e.maxWidth!==null){const t=a=>{const i=e.theme?.breakpoints?.values?.[a]||qf[a];return i?e.theme?.breakpoints?.unit!=="px"?{maxWidth:`${i}${e.theme.breakpoints.unit}`}:{maxWidth:i}:{maxWidth:Dn(a)}};return Ca(e,e.maxWidth,t)}return null};eg.filterProps=["maxWidth"];const Oz=Ot({prop:"minWidth",transform:Dn}),_z=Ot({prop:"height",transform:Dn}),jz=Ot({prop:"maxHeight",transform:Dn}),kz=Ot({prop:"minHeight",transform:Dn});Ot({prop:"size",cssProperty:"width",transform:Dn});Ot({prop:"size",cssProperty:"height",transform:Dn});const Nz=Ot({prop:"boxSizing"});Gf($z,eg,Oz,_z,jz,kz,Nz);const cc={border:{themeKey:"borders",transform:rr},borderTop:{themeKey:"borders",transform:rr},borderRight:{themeKey:"borders",transform:rr},borderBottom:{themeKey:"borders",transform:rr},borderLeft:{themeKey:"borders",transform:rr},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:rr},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:Wf},color:{themeKey:"palette",transform:tl},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:tl},backgroundColor:{themeKey:"palette",transform:tl},p:{style:Ct},pt:{style:Ct},pr:{style:Ct},pb:{style:Ct},pl:{style:Ct},px:{style:Ct},py:{style:Ct},padding:{style:Ct},paddingTop:{style:Ct},paddingRight:{style:Ct},paddingBottom:{style:Ct},paddingLeft:{style:Ct},paddingX:{style:Ct},paddingY:{style:Ct},paddingInline:{style:Ct},paddingInlineStart:{style:Ct},paddingInlineEnd:{style:Ct},paddingBlock:{style:Ct},paddingBlockStart:{style:Ct},paddingBlockEnd:{style:Ct},m:{style:St},mt:{style:St},mr:{style:St},mb:{style:St},ml:{style:St},mx:{style:St},my:{style:St},margin:{style:St},marginTop:{style:St},marginRight:{style:St},marginBottom:{style:St},marginLeft:{style:St},marginX:{style:St},marginY:{style:St},marginInline:{style:St},marginInlineStart:{style:St},marginInlineEnd:{style:St},marginBlock:{style:St},marginBlockStart:{style:St},marginBlockEnd:{style:St},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:Kf},rowGap:{style:Qf},columnGap:{style:Xf},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:Dn},maxWidth:{style:eg},minWidth:{transform:Dn},height:{transform:Dn},maxHeight:{transform:Dn},minHeight:{transform:Dn},boxSizing:{},font:{themeKey:"font"},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}};function zz(...e){const t=e.reduce((i,l)=>i.concat(Object.keys(l)),[]),a=new Set(t);return e.every(i=>a.size===Object.keys(i).length)}function Dz(e,t){return typeof e=="function"?e(t):e}function Mz(){function e(a,i,l,s){const u={[a]:i,theme:l},f=s[a];if(!f)return{[a]:i};const{cssProperty:d=a,themeKey:h,transform:m,style:v}=f;if(i==null)return null;if(h==="typography"&&i==="inherit")return{[a]:i};const S=Yf(l,h)||{};return v?v(u):Ca(u,i,x=>{let b=pf(S,m,x);return x===b&&typeof x=="string"&&(b=pf(S,m,`${a}${x==="default"?"":W5(x)}`,x)),d===!1?b:{[d]:b}})}function t(a){const{sx:i,theme:l={},nested:s}=a||{};if(!i)return null;const u=l.unstable_sxConfig??cc;function f(d){let h=d;if(typeof d=="function")h=d(l);else if(typeof d!="object")return d;if(!h)return null;const m=QN(l.breakpoints),v=Object.keys(m);let S=m;return Object.keys(h).forEach(w=>{const x=Dz(h[w],l);if(x!=null)if(typeof x=="object")if(u[w])S=Ds(S,e(w,x,l,u));else{const b=Ca({theme:l},x,A=>({[w]:A}));zz(b,x)?S[w]=t({sx:x,theme:l,nested:!0}):S=Ds(S,b)}else S=Ds(S,e(w,x,l,u))}),!s&&l.modularCssLayers?{"@layer sx":W2(l,X2(v,S))}:W2(l,X2(v,S))}return Array.isArray(i)?i.map(f):f(i)}return t}const cl=Mz();cl.filterProps=["sx"];const Bz=e=>{const t={systemProps:{},otherProps:{}},a=e?.theme?.unstable_sxConfig??cc;return Object.keys(e).forEach(i=>{a[i]?t.systemProps[i]=e[i]:t.otherProps[i]=e[i]}),t};function Lz(e){const{sx:t,...a}=e,{systemProps:i,otherProps:l}=Bz(a);let s;return Array.isArray(t)?s=[i,...t]:typeof t=="function"?s=(...u)=>{const f=t(...u);return ei(f)?{...i,...f}:i}:s={...i,...t},{...l,sx:s}}function Pz(e,t){return lf(e,t)}function Iz(e,t){Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=t(e.__emotion_styles))}const J2=[];function Hi(e){return J2[0]=e,kf(J2)}const Hz=e=>{const t=Object.keys(e).map(a=>({key:a,val:e[a]}))||[];return t.sort((a,i)=>a.val-i.val),t.reduce((a,i)=>({...a,[i.key]:i.val}),{})};function Uz(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:a="px",step:i=5,...l}=e,s=Hz(t),u=Object.keys(s);function f(S){return`@media (min-width:${typeof t[S]=="number"?t[S]:S}${a})`}function d(S){return`@media (max-width:${(typeof t[S]=="number"?t[S]:S)-i/100}${a})`}function h(S,w){const x=u.indexOf(w);return`@media (min-width:${typeof t[S]=="number"?t[S]:S}${a}) and (max-width:${(x!==-1&&typeof t[u[x]]=="number"?t[u[x]]:w)-i/100}${a})`}function m(S){return u.indexOf(S)+1<u.length?h(S,u[u.indexOf(S)+1]):f(S)}function v(S){const w=u.indexOf(S);return w===0?f(u[1]):w===u.length-1?d(u[w]):h(S,u[u.indexOf(S)+1]).replace("@media","@media not all and")}return{keys:u,values:s,up:f,down:d,between:h,only:m,not:v,unit:a,...l}}const Fz={borderRadius:4};function J5(e=8,t=Z0({spacing:e})){if(e.mui)return e;const a=(...i)=>(i.length===0?[1]:i).map(s=>{const u=t(s);return typeof u=="number"?`${u}px`:u}).join(" ");return a.mui=!0,a}function Vz(e,t){const a=this;if(a.vars){if(!a.colorSchemes?.[e]||typeof a.getColorSchemeSelector!="function")return{};let i=a.getColorSchemeSelector(e);return i==="&"?t:((i.includes("data-")||i.includes("."))&&(i=`*:where(${i.replace(/\s*&$/,"")}) &`),{[i]:t})}return a.palette.mode===e?t:{}}function tg(e={},...t){const{breakpoints:a={},palette:i={},spacing:l,shape:s={},...u}=e,f=Uz(a),d=J5(l);let h=Ii({breakpoints:f,direction:"ltr",components:{},palette:{mode:"light",...i},spacing:d,shape:{...Fz,...s}},u);return h=KN(h),h.applyStyles=Vz,h=t.reduce((m,v)=>Ii(m,v),h),h.unstable_sxConfig={...cc,...u?.unstable_sxConfig},h.unstable_sx=function(v){return cl({sx:v,theme:this})},h}function qz(e){return Object.keys(e).length===0}function Yz(e=null){const t=C.useContext(Nf);return!t||qz(t)?e:t}const Gz=tg();function Wz(e=Gz){return Yz(e)}function Z5(e){const{variants:t,...a}=e,i={variants:t,style:Hi(a),isProcessed:!0};return i.style===a||t&&t.forEach(l=>{typeof l.style!="function"&&(l.style=Hi(l.style))}),i}const Kz=tg();function Yh(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}function Mi(e,t){return t&&e&&typeof e=="object"&&e.styles&&!e.styles.startsWith("@layer")&&(e.styles=`@layer ${t}{${String(e.styles)}}`),e}function Xz(e){return e?(t,a)=>a[e]:null}function Qz(e,t,a){e.theme=eD(e.theme)?a:e.theme[t]||e.theme}function Yu(e,t,a){const i=typeof t=="function"?t(e):t;if(Array.isArray(i))return i.flatMap(l=>Yu(e,l,a));if(Array.isArray(i?.variants)){let l;if(i.isProcessed)l=a?Mi(i.style,a):i.style;else{const{variants:s,...u}=i;l=a?Mi(Hi(u),a):u}return e3(e,i.variants,[l],a)}return i?.isProcessed?a?Mi(Hi(i.style),a):i.style:a?Mi(Hi(i),a):i}function e3(e,t,a=[],i=void 0){let l;e:for(let s=0;s<t.length;s+=1){const u=t[s];if(typeof u.props=="function"){if(l??={...e,...e.ownerState,ownerState:e.ownerState},!u.props(l))continue}else for(const f in u.props)if(e[f]!==u.props[f]&&e.ownerState?.[f]!==u.props[f])continue e;typeof u.style=="function"?(l??={...e,...e.ownerState,ownerState:e.ownerState},a.push(i?Mi(Hi(u.style(l)),i):u.style(l))):a.push(i?Mi(Hi(u.style),i):u.style)}return a}function Jz(e={}){const{themeId:t,defaultTheme:a=Kz,rootShouldForwardProp:i=Yh,slotShouldForwardProp:l=Yh}=e;function s(f){Qz(f,t,a)}return(f,d={})=>{Iz(f,z=>z.filter(D=>D!==cl));const{name:h,slot:m,skipVariantsResolver:v,skipSx:S,overridesResolver:w=Xz(nD(m)),...x}=d,b=h&&h.startsWith("Mui")||m?"components":"custom",A=v!==void 0?v:m&&m!=="Root"&&m!=="root"||!1,j=S||!1;let _=Yh;m==="Root"||m==="root"?_=i:m?_=l:tD(f)&&(_=void 0);const R=Pz(f,{shouldForwardProp:_,label:Zz(),...x}),N=z=>{if(z.__emotion_real===z)return z;if(typeof z=="function")return function(V){return Yu(V,z,V.theme.modularCssLayers?b:void 0)};if(ei(z)){const D=Z5(z);return function(Q){return D.variants?Yu(Q,D,Q.theme.modularCssLayers?b:void 0):Q.theme.modularCssLayers?Mi(D.style,b):D.style}}return z},T=(...z)=>{const D=[],V=z.map(N),Q=[];if(D.push(s),h&&w&&Q.push(function(H){const Y=H.theme.components?.[h]?.styleOverrides;if(!Y)return null;const k={};for(const P in Y)k[P]=Yu(H,Y[P],H.theme.modularCssLayers?"theme":void 0);return w(H,k)}),h&&!A&&Q.push(function(H){const Y=H.theme?.components?.[h]?.variants;return Y?e3(H,Y,[],H.theme.modularCssLayers?"theme":void 0):null}),j||Q.push(cl),Array.isArray(V[0])){const $=V.shift(),H=new Array(D.length).fill(""),U=new Array(Q.length).fill("");let Y;Y=[...H,...$,...U],Y.raw=[...H,...$.raw,...U],D.unshift(Y)}const Z=[...D,...V,...Q],q=R(...Z);return f.muiName&&(q.muiName=f.muiName),q};return R.withConfig&&(T.withConfig=R.withConfig),T}}function Zz(e,t){return void 0}function eD(e){for(const t in e)return!1;return!0}function tD(e){return typeof e=="string"&&e.charCodeAt(0)>96}function nD(e){return e&&e.charAt(0).toLowerCase()+e.slice(1)}function zm(e,t,a=!1){const i={...t};for(const l in e)if(Object.prototype.hasOwnProperty.call(e,l)){const s=l;if(s==="components"||s==="slots")i[s]={...e[s],...i[s]};else if(s==="componentsProps"||s==="slotProps"){const u=e[s],f=t[s];if(!f)i[s]=u||{};else if(!u)i[s]=f;else{i[s]={...f};for(const d in u)if(Object.prototype.hasOwnProperty.call(u,d)){const h=d;i[s][h]=zm(u[h],f[h],a)}}}else s==="className"&&a&&t.className?i.className=Xe(e?.className,t?.className):s==="style"&&a&&t.style?i.style={...e?.style,...t?.style}:i[s]===void 0&&(i[s]=e[s])}return i}function rD(e,t=Number.MIN_SAFE_INTEGER,a=Number.MAX_SAFE_INTEGER){return Math.max(t,Math.min(e,a))}function ng(e,t=0,a=1){return rD(e,t,a)}function aD(e){e=e.slice(1);const t=new RegExp(`.{1,${e.length>=6?2:1}}`,"g");let a=e.match(t);return a&&a[0].length===1&&(a=a.map(i=>i+i)),a?`rgb${a.length===4?"a":""}(${a.map((i,l)=>l<3?parseInt(i,16):Math.round(parseInt(i,16)/255*1e3)/1e3).join(", ")})`:""}function li(e){if(e.type)return e;if(e.charAt(0)==="#")return li(aD(e));const t=e.indexOf("("),a=e.substring(0,t);if(!["rgb","rgba","hsl","hsla","color"].includes(a))throw new Error(Nm(9,e));let i=e.substring(t+1,e.length-1),l;if(a==="color"){if(i=i.split(" "),l=i.shift(),i.length===4&&i[3].charAt(0)==="/"&&(i[3]=i[3].slice(1)),!["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].includes(l))throw new Error(Nm(10,l))}else i=i.split(",");return i=i.map(s=>parseFloat(s)),{type:a,values:i,colorSpace:l}}const iD=e=>{const t=li(e);return t.values.slice(0,3).map((a,i)=>t.type.includes("hsl")&&i!==0?`${a}%`:a).join(" ")},Cs=(e,t)=>{try{return iD(e)}catch{return e}};function Jf(e){const{type:t,colorSpace:a}=e;let{values:i}=e;return t.includes("rgb")?i=i.map((l,s)=>s<3?parseInt(l,10):l):t.includes("hsl")&&(i[1]=`${i[1]}%`,i[2]=`${i[2]}%`),t.includes("color")?i=`${a} ${i.join(" ")}`:i=`${i.join(", ")}`,`${t}(${i})`}function t3(e){e=li(e);const{values:t}=e,a=t[0],i=t[1]/100,l=t[2]/100,s=i*Math.min(l,1-l),u=(h,m=(h+a/30)%12)=>l-s*Math.max(Math.min(m-3,9-m,1),-1);let f="rgb";const d=[Math.round(u(0)*255),Math.round(u(8)*255),Math.round(u(4)*255)];return e.type==="hsla"&&(f+="a",d.push(t[3])),Jf({type:f,values:d})}function Dm(e){e=li(e);let t=e.type==="hsl"||e.type==="hsla"?li(t3(e)).values:e.values;return t=t.map(a=>(e.type!=="color"&&(a/=255),a<=.03928?a/12.92:((a+.055)/1.055)**2.4)),Number((.2126*t[0]+.7152*t[1]+.0722*t[2]).toFixed(3))}function oD(e,t){const a=Dm(e),i=Dm(t);return(Math.max(a,i)+.05)/(Math.min(a,i)+.05)}function hf(e,t){return e=li(e),t=ng(t),(e.type==="rgb"||e.type==="hsl")&&(e.type+="a"),e.type==="color"?e.values[3]=`/${t}`:e.values[3]=t,Jf(e)}function ji(e,t,a){try{return hf(e,t)}catch{return e}}function Zf(e,t){if(e=li(e),t=ng(t),e.type.includes("hsl"))e.values[2]*=1-t;else if(e.type.includes("rgb")||e.type.includes("color"))for(let a=0;a<3;a+=1)e.values[a]*=1-t;return Jf(e)}function Ze(e,t,a){try{return Zf(e,t)}catch{return e}}function ed(e,t){if(e=li(e),t=ng(t),e.type.includes("hsl"))e.values[2]+=(100-e.values[2])*t;else if(e.type.includes("rgb"))for(let a=0;a<3;a+=1)e.values[a]+=(255-e.values[a])*t;else if(e.type.includes("color"))for(let a=0;a<3;a+=1)e.values[a]+=(1-e.values[a])*t;return Jf(e)}function et(e,t,a){try{return ed(e,t)}catch{return e}}function lD(e,t=.15){return Dm(e)>.5?Zf(e,t):ed(e,t)}function ku(e,t,a){try{return lD(e,t)}catch{return e}}const sD=C.createContext(void 0);function cD(e){const{theme:t,name:a,props:i}=e;if(!t||!t.components||!t.components[a])return i;const l=t.components[a];return l.defaultProps?zm(l.defaultProps,i,t.components.mergeClassNameAndStyle):!l.styleOverrides&&!l.variants?zm(l,i,t.components.mergeClassNameAndStyle):i}function uD({props:e,name:t}){const a=C.useContext(sD);return cD({props:e,name:t,theme:{components:a}})}const Z2={theme:void 0};function fD(e){let t,a;return function(l){let s=t;return(s===void 0||l.theme!==a)&&(Z2.theme=l.theme,s=Z5(e(Z2)),t=s,a=l.theme),s}}function dD(e=""){function t(...i){if(!i.length)return"";const l=i[0];return typeof l=="string"&&!l.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}-`:""}${l}${t(...i.slice(1))})`:`, ${l}`}return(i,...l)=>`var(--${e?`${e}-`:""}${i}${t(...l)})`}const ex=(e,t,a,i=[])=>{let l=e;t.forEach((s,u)=>{u===t.length-1?Array.isArray(l)?l[Number(s)]=a:l&&typeof l=="object"&&(l[s]=a):l&&typeof l=="object"&&(l[s]||(l[s]=i.includes(s)?[]:{}),l=l[s])})},pD=(e,t,a)=>{function i(l,s=[],u=[]){Object.entries(l).forEach(([f,d])=>{(!a||a&&!a([...s,f]))&&d!=null&&(typeof d=="object"&&Object.keys(d).length>0?i(d,[...s,f],Array.isArray(d)?[...u,f]:u):t([...s,f],d,u))})}i(e)},hD=(e,t)=>typeof t=="number"?["lineHeight","fontWeight","opacity","zIndex"].some(i=>e.includes(i))||e[e.length-1].toLowerCase().includes("opacity")?t:`${t}px`:t;function Gh(e,t){const{prefix:a,shouldSkipGeneratingVar:i}=t||{},l={},s={},u={};return pD(e,(f,d,h)=>{if((typeof d=="string"||typeof d=="number")&&(!i||!i(f,d))){const m=`--${a?`${a}-`:""}${f.join("-")}`,v=hD(f,d);Object.assign(l,{[m]:v}),ex(s,f,`var(${m})`,h),ex(u,f,`var(${m}, ${v})`,h)}},f=>f[0]==="vars"),{css:l,vars:s,varsWithDefaults:u}}function mD(e,t={}){const{getSelector:a=j,disableCssColorScheme:i,colorSchemeSelector:l,enableContrastVars:s}=t,{colorSchemes:u={},components:f,defaultColorScheme:d="light",...h}=e,{vars:m,css:v,varsWithDefaults:S}=Gh(h,t);let w=S;const x={},{[d]:b,...A}=u;if(Object.entries(A||{}).forEach(([N,T])=>{const{vars:z,css:D,varsWithDefaults:V}=Gh(T,t);w=Ii(w,V),x[N]={css:D,vars:z}}),b){const{css:N,vars:T,varsWithDefaults:z}=Gh(b,t);w=Ii(w,z),x[d]={css:N,vars:T}}function j(N,T){let z=l;if(l==="class"&&(z=".%s"),l==="data"&&(z="[data-%s]"),l?.startsWith("data-")&&!l.includes("%s")&&(z=`[${l}="%s"]`),N){if(z==="media")return e.defaultColorScheme===N?":root":{[`@media (prefers-color-scheme: ${u[N]?.palette?.mode||N})`]:{":root":T}};if(z)return e.defaultColorScheme===N?`:root, ${z.replace("%s",String(N))}`:z.replace("%s",String(N))}return":root"}return{vars:w,generateThemeVars:()=>{let N={...m};return Object.entries(x).forEach(([,{vars:T}])=>{N=Ii(N,T)}),N},generateStyleSheets:()=>{const N=[],T=e.defaultColorScheme||"light";function z(Q,Z){Object.keys(Z).length&&N.push(typeof Q=="string"?{[Q]:{...Z}}:Q)}z(a(void 0,{...v}),v);const{[T]:D,...V}=x;if(D){const{css:Q}=D,Z=u[T]?.palette?.mode,q=!i&&Z?{colorScheme:Z,...Q}:{...Q};z(a(T,{...q}),q)}return Object.entries(V).forEach(([Q,{css:Z}])=>{const q=u[Q]?.palette?.mode,$=!i&&q?{colorScheme:q,...Z}:{...Z};z(a(Q,{...$}),$)}),s&&N.push({":root":{"--__l-threshold":"0.7","--__l":"clamp(0, (l / var(--__l-threshold) - 1) * -infinity, 1)","--__a":"clamp(0.87, (l / var(--__l-threshold) - 1) * -infinity, 1)"}}),N}}}function gD(e){return function(a){return e==="media"?`@media (prefers-color-scheme: ${a})`:e?e.startsWith("data-")&&!e.includes("%s")?`[${e}="${a}"] &`:e==="class"?`.${a} &`:e==="data"?`[data-${a}] &`:`${e.replace("%s",a)} &`:"&"}}var Wh={exports:{}},ot={};var tx;function vD(){if(tx)return ot;tx=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.portal"),a=Symbol.for("react.fragment"),i=Symbol.for("react.strict_mode"),l=Symbol.for("react.profiler"),s=Symbol.for("react.consumer"),u=Symbol.for("react.context"),f=Symbol.for("react.forward_ref"),d=Symbol.for("react.suspense"),h=Symbol.for("react.suspense_list"),m=Symbol.for("react.memo"),v=Symbol.for("react.lazy"),S=Symbol.for("react.view_transition"),w=Symbol.for("react.client.reference");function x(b){if(typeof b=="object"&&b!==null){var A=b.$$typeof;switch(A){case e:switch(b=b.type,b){case a:case l:case i:case d:case h:case S:return b;default:switch(b=b&&b.$$typeof,b){case u:case f:case v:case m:return b;case s:return b;default:return A}}case t:return A}}}return ot.ContextConsumer=s,ot.ContextProvider=u,ot.Element=e,ot.ForwardRef=f,ot.Fragment=a,ot.Lazy=v,ot.Memo=m,ot.Portal=t,ot.Profiler=l,ot.StrictMode=i,ot.Suspense=d,ot.SuspenseList=h,ot.isContextConsumer=function(b){return x(b)===s},ot.isContextProvider=function(b){return x(b)===u},ot.isElement=function(b){return typeof b=="object"&&b!==null&&b.$$typeof===e},ot.isForwardRef=function(b){return x(b)===f},ot.isFragment=function(b){return x(b)===a},ot.isLazy=function(b){return x(b)===v},ot.isMemo=function(b){return x(b)===m},ot.isPortal=function(b){return x(b)===t},ot.isProfiler=function(b){return x(b)===l},ot.isStrictMode=function(b){return x(b)===i},ot.isSuspense=function(b){return x(b)===d},ot.isSuspenseList=function(b){return x(b)===h},ot.isValidElementType=function(b){return typeof b=="string"||typeof b=="function"||b===a||b===l||b===i||b===d||b===h||typeof b=="object"&&b!==null&&(b.$$typeof===v||b.$$typeof===m||b.$$typeof===u||b.$$typeof===s||b.$$typeof===f||b.$$typeof===w||b.getModuleId!==void 0)},ot.typeOf=x,ot}var nx;function yD(){return nx||(nx=1,Wh.exports=vD()),Wh.exports}var n3=yD();function ti(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 r3(e){if(C.isValidElement(e)||n3.isValidElementType(e)||!ti(e))return e;const t={};return Object.keys(e).forEach(a=>{t[a]=r3(e[a])}),t}function Ui(e,t,a={clone:!0}){const i=a.clone?{...e}:e;return ti(e)&&ti(t)&&Object.keys(t).forEach(l=>{C.isValidElement(t[l])||n3.isValidElementType(t[l])?i[l]=t[l]:ti(t[l])&&Object.prototype.hasOwnProperty.call(e,l)&&ti(e[l])?i[l]=Ui(e[l],t[l],a):a.clone?i[l]=ti(t[l])?r3(t[l]):t[l]:i[l]=t[l]}),i}const Ws={black:"#000",white:"#fff"},bD={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"},qo={50:"#f3e5f5",200:"#ce93d8",300:"#ba68c8",400:"#ab47bc",500:"#9c27b0",700:"#7b1fa2"},Yo={300:"#e57373",400:"#ef5350",500:"#f44336",700:"#d32f2f",800:"#c62828"},bs={300:"#ffb74d",400:"#ffa726",500:"#ff9800",700:"#f57c00",900:"#e65100"},Go={50:"#e3f2fd",200:"#90caf9",400:"#42a5f5",700:"#1976d2",800:"#1565c0"},Wo={300:"#4fc3f7",400:"#29b6f6",500:"#03a9f4",700:"#0288d1",900:"#01579b"},Ko={300:"#81c784",400:"#66bb6a",500:"#4caf50",700:"#388e3c",800:"#2e7d32",900:"#1b5e20"};function a3(){return{text:{primary:"rgba(0, 0, 0, 0.87)",secondary:"rgba(0, 0, 0, 0.6)",disabled:"rgba(0, 0, 0, 0.38)"},divider:"rgba(0, 0, 0, 0.12)",background:{paper:Ws.white,default:Ws.white},action:{active:"rgba(0, 0, 0, 0.54)",hover:"rgba(0, 0, 0, 0.04)",hoverOpacity:.04,selected:"rgba(0, 0, 0, 0.08)",selectedOpacity:.08,disabled:"rgba(0, 0, 0, 0.26)",disabledBackground:"rgba(0, 0, 0, 0.12)",disabledOpacity:.38,focus:"rgba(0, 0, 0, 0.12)",focusOpacity:.12,activatedOpacity:.12}}}const i3=a3();function o3(){return{text:{primary:Ws.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:Ws.white,hover:"rgba(255, 255, 255, 0.08)",hoverOpacity:.08,selected:"rgba(255, 255, 255, 0.16)",selectedOpacity:.16,disabled:"rgba(255, 255, 255, 0.3)",disabledBackground:"rgba(255, 255, 255, 0.12)",disabledOpacity:.38,focus:"rgba(255, 255, 255, 0.12)",focusOpacity:.12,activatedOpacity:.24}}}const Mm=o3();function rx(e,t,a,i){const l=i.light||i,s=i.dark||i*1.5;e[t]||(e.hasOwnProperty(a)?e[t]=e[a]:t==="light"?e.light=ed(e.main,l):t==="dark"&&(e.dark=Zf(e.main,s)))}function ax(e,t,a,i,l){const s=l.light||l,u=l.dark||l*1.5;t[a]||(t.hasOwnProperty(i)?t[a]=t[i]:a==="light"?t.light=`color-mix(in ${e}, ${t.main}, #fff ${(s*100).toFixed(0)}%)`:a==="dark"&&(t.dark=`color-mix(in ${e}, ${t.main}, #000 ${(u*100).toFixed(0)}%)`))}function xD(e="light"){return e==="dark"?{main:Go[200],light:Go[50],dark:Go[400]}:{main:Go[700],light:Go[400],dark:Go[800]}}function SD(e="light"){return e==="dark"?{main:qo[200],light:qo[50],dark:qo[400]}:{main:qo[500],light:qo[300],dark:qo[700]}}function CD(e="light"){return e==="dark"?{main:Yo[500],light:Yo[300],dark:Yo[700]}:{main:Yo[700],light:Yo[400],dark:Yo[800]}}function ED(e="light"){return e==="dark"?{main:Wo[400],light:Wo[300],dark:Wo[700]}:{main:Wo[700],light:Wo[500],dark:Wo[900]}}function wD(e="light"){return e==="dark"?{main:Ko[400],light:Ko[300],dark:Ko[700]}:{main:Ko[800],light:Ko[500],dark:Ko[900]}}function AD(e="light"){return e==="dark"?{main:bs[400],light:bs[300],dark:bs[700]}:{main:"#ed6c02",light:bs[500],dark:bs[900]}}function RD(e){return`oklch(from ${e} var(--__l) 0 h / var(--__a))`}function rg(e){const{mode:t="light",contrastThreshold:a=3,tonalOffset:i=.2,colorSpace:l,...s}=e,u=e.primary||xD(t),f=e.secondary||SD(t),d=e.error||CD(t),h=e.info||ED(t),m=e.success||wD(t),v=e.warning||AD(t);function S(A){return l?RD(A):oD(A,Mm.text.primary)>=a?Mm.text.primary:i3.text.primary}const w=({color:A,name:j,mainShade:_=500,lightShade:R=300,darkShade:N=700})=>{if(A={...A},!A.main&&A[_]&&(A.main=A[_]),!A.hasOwnProperty("main"))throw new Error(Gs(11,j?` (${j})`:"",_));if(typeof A.main!="string")throw new Error(Gs(12,j?` (${j})`:"",JSON.stringify(A.main)));return l?(ax(l,A,"light",R,i),ax(l,A,"dark",N,i)):(rx(A,"light",R,i),rx(A,"dark",N,i)),A.contrastText||(A.contrastText=S(A.main)),A};let x;return t==="light"?x=a3():t==="dark"&&(x=o3()),Ui({common:{...Ws},mode:t,primary:w({color:u,name:"primary"}),secondary:w({color:f,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:w({color:d,name:"error"}),warning:w({color:v,name:"warning"}),info:w({color:h,name:"info"}),success:w({color:m,name:"success"}),grey:bD,contrastThreshold:a,getContrastText:S,augmentColor:w,tonalOffset:i,...x},s)}function TD(e){const t={};return Object.entries(e).forEach(i=>{const[l,s]=i;typeof s=="object"&&(t[l]=`${s.fontStyle?`${s.fontStyle} `:""}${s.fontVariant?`${s.fontVariant} `:""}${s.fontWeight?`${s.fontWeight} `:""}${s.fontStretch?`${s.fontStretch} `:""}${s.fontSize||""}${s.lineHeight?`/${s.lineHeight} `:""}${s.fontFamily||""}`)}),t}const $D={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 Er(e,t,a="Mui"){const i=$D[t];return i?`${a}-${i}`:`${VN.generate(e)}-${t}`}function OD(e,t){return{toolbar:{minHeight:56,[e.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[e.up("sm")]:{minHeight:64}},...t}}function _D(e){return Math.round(e*1e5)/1e5}const ix={textTransform:"uppercase"},ox='"Roboto", "Helvetica", "Arial", sans-serif';function jD(e,t){const{fontFamily:a=ox,fontSize:i=14,fontWeightLight:l=300,fontWeightRegular:s=400,fontWeightMedium:u=500,fontWeightBold:f=700,htmlFontSize:d=16,allVariants:h,pxToRem:m,...v}=typeof t=="function"?t(e):t,S=i/14,w=m||(A=>`${A/d*S}rem`),x=(A,j,_,R,N)=>({fontFamily:a,fontWeight:A,fontSize:w(j),lineHeight:_,...a===ox?{letterSpacing:`${_D(R/j)}em`}:{},...N,...h}),b={h1:x(l,96,1.167,-1.5),h2:x(l,60,1.2,-.5),h3:x(s,48,1.167,0),h4:x(s,34,1.235,.25),h5:x(s,24,1.334,0),h6:x(u,20,1.6,.15),subtitle1:x(s,16,1.75,.15),subtitle2:x(u,14,1.57,.1),body1:x(s,16,1.5,.15),body2:x(s,14,1.43,.15),button:x(u,14,1.75,.4,ix),caption:x(s,12,1.66,.4),overline:x(s,12,2.66,1,ix),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return Ui({htmlFontSize:d,pxToRem:w,fontFamily:a,fontSize:i,fontWeightLight:l,fontWeightRegular:s,fontWeightMedium:u,fontWeightBold:f,...b},v,{clone:!1})}const kD=.2,ND=.14,zD=.12;function pt(...e){return[`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,${kD})`,`${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,${ND})`,`${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,${zD})`].join(",")}const DD=["none",pt(0,2,1,-1,0,1,1,0,0,1,3,0),pt(0,3,1,-2,0,2,2,0,0,1,5,0),pt(0,3,3,-2,0,3,4,0,0,1,8,0),pt(0,2,4,-1,0,4,5,0,0,1,10,0),pt(0,3,5,-1,0,5,8,0,0,1,14,0),pt(0,3,5,-1,0,6,10,0,0,1,18,0),pt(0,4,5,-2,0,7,10,1,0,2,16,1),pt(0,5,5,-3,0,8,10,1,0,3,14,2),pt(0,5,6,-3,0,9,12,1,0,3,16,2),pt(0,6,6,-3,0,10,14,1,0,4,18,3),pt(0,6,7,-4,0,11,15,1,0,4,20,3),pt(0,7,8,-4,0,12,17,2,0,5,22,4),pt(0,7,8,-4,0,13,19,2,0,5,24,4),pt(0,7,9,-4,0,14,21,2,0,5,26,4),pt(0,8,9,-5,0,15,22,2,0,6,28,5),pt(0,8,10,-5,0,16,24,2,0,6,30,5),pt(0,8,11,-5,0,17,26,2,0,6,32,5),pt(0,9,11,-5,0,18,28,2,0,7,34,6),pt(0,9,12,-6,0,19,29,2,0,7,36,6),pt(0,10,13,-6,0,20,31,3,0,8,38,7),pt(0,10,13,-6,0,21,33,3,0,8,40,7),pt(0,10,14,-6,0,22,35,3,0,8,42,7),pt(0,11,14,-7,0,23,36,3,0,9,44,8),pt(0,11,15,-7,0,24,38,3,0,9,46,8)],MD={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)"},BD={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function lx(e){return`${Math.round(e)}ms`}function LD(e){if(!e)return 0;const t=e/36;return Math.min(Math.round((4+15*t**.25+t/5)*10),3e3)}function PD(e){const t={...MD,...e.easing},a={...BD,...e.duration};return{getAutoHeightDuration:LD,create:(l=["all"],s={})=>{const{duration:u=a.standard,easing:f=t.easeInOut,delay:d=0,...h}=s;return(Array.isArray(l)?l:[l]).map(m=>`${m} ${typeof u=="string"?u:lx(u)} ${f} ${typeof d=="string"?d:lx(d)}`).join(",")},...e,easing:t,duration:a}}const ID={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500};function HD(e){return ti(e)||typeof e>"u"||typeof e=="string"||typeof e=="boolean"||typeof e=="number"||Array.isArray(e)}function l3(e={}){const t={...e};function a(i){const l=Object.entries(i);for(let s=0;s<l.length;s++){const[u,f]=l[s];!HD(f)||u.startsWith("unstable_")?delete i[u]:ti(f)&&(i[u]={...f},a(i[u]))}}return a(t),`import { unstable_createBreakpoints as createBreakpoints, createTransitions } from '@mui/material/styles';
571
+
572
+ const theme = ${JSON.stringify(t,null,2)};
573
+
574
+ theme.breakpoints = createBreakpoints(theme.breakpoints || {});
575
+ theme.transitions = createTransitions(theme.transitions || {});
576
+
577
+ export default theme;`}function sx(e){return typeof e=="number"?`${(e*100).toFixed(0)}%`:`calc((${e}) * 100%)`}const UD=e=>{if(!Number.isNaN(+e))return+e;const t=e.match(/\d*\.?\d+/g);if(!t)return 0;let a=0;for(let i=0;i<t.length;i+=1)a+=+t[i];return a};function FD(e){Object.assign(e,{alpha(t,a){const i=this||e;return i.colorSpace?`oklch(from ${t} l c h / ${typeof a=="string"?`calc(${a})`:a})`:i.vars?`rgba(${t.replace(/var\(--([^,\s)]+)(?:,[^)]+)?\)+/g,"var(--$1Channel)")} / ${typeof a=="string"?`calc(${a})`:a})`:hf(t,UD(a))},lighten(t,a){const i=this||e;return i.colorSpace?`color-mix(in ${i.colorSpace}, ${t}, #fff ${sx(a)})`:ed(t,a)},darken(t,a){const i=this||e;return i.colorSpace?`color-mix(in ${i.colorSpace}, ${t}, #000 ${sx(a)})`:Zf(t,a)}})}function Bm(e={},...t){const{breakpoints:a,mixins:i={},spacing:l,palette:s={},transitions:u={},typography:f={},shape:d,colorSpace:h,...m}=e;if(e.vars&&e.generateThemeVars===void 0)throw new Error(Gs(20));const v=rg({...s,colorSpace:h}),S=tg(e);let w=Ui(S,{mixins:OD(S.breakpoints,i),palette:v,shadows:DD.slice(),typography:jD(v,f),transitions:PD(u),zIndex:{...ID}});return w=Ui(w,m),w=t.reduce((x,b)=>Ui(x,b),w),w.unstable_sxConfig={...cc,...m?.unstable_sxConfig},w.unstable_sx=function(b){return cl({sx:b,theme:this})},w.toRuntimeSource=l3,FD(w),w}function Lm(e){let t;return e<1?t=5.11916*e**2:t=4.5*Math.log(e+1)+2,Math.round(t*10)/1e3}const VD=[...Array(25)].map((e,t)=>{if(t===0)return"none";const a=Lm(t);return`linear-gradient(rgba(255 255 255 / ${a}), rgba(255 255 255 / ${a}))`});function s3(e){return{inputPlaceholder:e==="dark"?.5:.42,inputUnderline:e==="dark"?.7:.42,switchTrackDisabled:e==="dark"?.2:.12,switchTrack:e==="dark"?.3:.38}}function c3(e){return e==="dark"?VD:[]}function qD(e){const{palette:t={mode:"light"},opacity:a,overlays:i,colorSpace:l,...s}=e,u=rg({...t,colorSpace:l});return{palette:u,opacity:{...s3(u.mode),...a},overlays:i||c3(u.mode),...s}}function YD(e){return!!e[0].match(/(cssVarPrefix|colorSchemeSelector|modularCssLayers|rootSelector|typography|mixins|breakpoints|direction|transitions)/)||!!e[0].match(/sxConfig$/)||e[0]==="palette"&&!!e[1]?.match(/(mode|contrastThreshold|tonalOffset)/)}const GD=e=>[...[...Array(25)].map((t,a)=>`--${e?`${e}-`:""}overlays-${a}`),`--${e?`${e}-`:""}palette-AppBar-darkBg`,`--${e?`${e}-`:""}palette-AppBar-darkColor`],WD=e=>(t,a)=>{const i=e.rootSelector||":root",l=e.colorSchemeSelector;let s=l;if(l==="class"&&(s=".%s"),l==="data"&&(s="[data-%s]"),l?.startsWith("data-")&&!l.includes("%s")&&(s=`[${l}="%s"]`),e.defaultColorScheme===t){if(t==="dark"){const u={};return GD(e.cssVarPrefix).forEach(f=>{u[f]=a[f],delete a[f]}),s==="media"?{[i]:a,"@media (prefers-color-scheme: dark)":{[i]:u}}:s?{[s.replace("%s",t)]:u,[`${i}, ${s.replace("%s",t)}`]:a}:{[i]:{...a,...u}}}if(s&&s!=="media")return`${i}, ${s.replace("%s",String(t))}`}else if(t){if(s==="media")return{[`@media (prefers-color-scheme: ${String(t)})`]:{[i]:a}};if(s)return s.replace("%s",String(t))}return i};function KD(e,t){t.forEach(a=>{e[a]||(e[a]={})})}function re(e,t,a){!e[t]&&a&&(e[t]=a)}function Es(e){return typeof e!="string"||!e.startsWith("hsl")?e:t3(e)}function da(e,t){`${t}Channel`in e||(e[`${t}Channel`]=Cs(Es(e[t])))}function XD(e){return typeof e=="number"?`${e}px`:typeof e=="string"||typeof e=="function"||Array.isArray(e)?e:"8px"}const kr=e=>{try{return e()}catch{}},QD=(e="mui")=>dD(e);function Kh(e,t,a,i,l){if(!a)return;a=a===!0?{}:a;const s=l==="dark"?"dark":"light";if(!i){t[l]=qD({...a,palette:{mode:s,...a?.palette},colorSpace:e});return}const{palette:u,...f}=Bm({...i,palette:{mode:s,...a?.palette},colorSpace:e});return t[l]={...a,palette:u,opacity:{...s3(s),...a?.opacity},overlays:a?.overlays||c3(s)},f}function JD(e={},...t){const{colorSchemes:a={light:!0},defaultColorScheme:i,disableCssColorScheme:l=!1,cssVarPrefix:s="mui",nativeColor:u=!1,shouldSkipGeneratingVar:f=YD,colorSchemeSelector:d=a.light&&a.dark?"media":void 0,rootSelector:h=":root",...m}=e,v=Object.keys(a)[0],S=i||(a.light&&v!=="light"?"light":v),w=QD(s),{[S]:x,light:b,dark:A,...j}=a,_={...j};let R=x;if((S==="dark"&&!("dark"in a)||S==="light"&&!("light"in a))&&(R=!0),!R)throw new Error(Gs(21,S));let N;u&&(N="oklch");const T=Kh(N,_,R,m,S);b&&!_.light&&Kh(N,_,b,void 0,"light"),A&&!_.dark&&Kh(N,_,A,void 0,"dark");let z={defaultColorScheme:S,...T,cssVarPrefix:s,colorSchemeSelector:d,rootSelector:h,getCssVar:w,colorSchemes:_,font:{...TD(T.typography),...T.font},spacing:XD(m.spacing)};Object.keys(z.colorSchemes).forEach(q=>{const $=z.colorSchemes[q].palette,H=Y=>{const k=Y.split("-"),P=k[1],J=k[2];return w(Y,$[P][J])};$.mode==="light"&&(re($.common,"background","#fff"),re($.common,"onBackground","#000")),$.mode==="dark"&&(re($.common,"background","#000"),re($.common,"onBackground","#fff"));function U(Y,k,P){if(N){let J;return Y===ji&&(J=`transparent ${((1-P)*100).toFixed(0)}%`),Y===Ze&&(J=`#000 ${(P*100).toFixed(0)}%`),Y===et&&(J=`#fff ${(P*100).toFixed(0)}%`),`color-mix(in ${N}, ${k}, ${J})`}return Y(k,P)}if(KD($,["Alert","AppBar","Avatar","Button","Chip","FilledInput","LinearProgress","Skeleton","Slider","SnackbarContent","SpeedDialAction","StepConnector","StepContent","Switch","TableCell","Tooltip"]),$.mode==="light"){re($.Alert,"errorColor",U(Ze,$.error.light,.6)),re($.Alert,"infoColor",U(Ze,$.info.light,.6)),re($.Alert,"successColor",U(Ze,$.success.light,.6)),re($.Alert,"warningColor",U(Ze,$.warning.light,.6)),re($.Alert,"errorFilledBg",H("palette-error-main")),re($.Alert,"infoFilledBg",H("palette-info-main")),re($.Alert,"successFilledBg",H("palette-success-main")),re($.Alert,"warningFilledBg",H("palette-warning-main")),re($.Alert,"errorFilledColor",kr(()=>$.getContrastText($.error.main))),re($.Alert,"infoFilledColor",kr(()=>$.getContrastText($.info.main))),re($.Alert,"successFilledColor",kr(()=>$.getContrastText($.success.main))),re($.Alert,"warningFilledColor",kr(()=>$.getContrastText($.warning.main))),re($.Alert,"errorStandardBg",U(et,$.error.light,.9)),re($.Alert,"infoStandardBg",U(et,$.info.light,.9)),re($.Alert,"successStandardBg",U(et,$.success.light,.9)),re($.Alert,"warningStandardBg",U(et,$.warning.light,.9)),re($.Alert,"errorIconColor",H("palette-error-main")),re($.Alert,"infoIconColor",H("palette-info-main")),re($.Alert,"successIconColor",H("palette-success-main")),re($.Alert,"warningIconColor",H("palette-warning-main")),re($.AppBar,"defaultBg",H("palette-grey-100")),re($.Avatar,"defaultBg",H("palette-grey-400")),re($.Button,"inheritContainedBg",H("palette-grey-300")),re($.Button,"inheritContainedHoverBg",H("palette-grey-A100")),re($.Chip,"defaultBorder",H("palette-grey-400")),re($.Chip,"defaultAvatarColor",H("palette-grey-700")),re($.Chip,"defaultIconColor",H("palette-grey-700")),re($.FilledInput,"bg","rgba(0, 0, 0, 0.06)"),re($.FilledInput,"hoverBg","rgba(0, 0, 0, 0.09)"),re($.FilledInput,"disabledBg","rgba(0, 0, 0, 0.12)"),re($.LinearProgress,"primaryBg",U(et,$.primary.main,.62)),re($.LinearProgress,"secondaryBg",U(et,$.secondary.main,.62)),re($.LinearProgress,"errorBg",U(et,$.error.main,.62)),re($.LinearProgress,"infoBg",U(et,$.info.main,.62)),re($.LinearProgress,"successBg",U(et,$.success.main,.62)),re($.LinearProgress,"warningBg",U(et,$.warning.main,.62)),re($.Skeleton,"bg",N?U(ji,$.text.primary,.11):`rgba(${H("palette-text-primaryChannel")} / 0.11)`),re($.Slider,"primaryTrack",U(et,$.primary.main,.62)),re($.Slider,"secondaryTrack",U(et,$.secondary.main,.62)),re($.Slider,"errorTrack",U(et,$.error.main,.62)),re($.Slider,"infoTrack",U(et,$.info.main,.62)),re($.Slider,"successTrack",U(et,$.success.main,.62)),re($.Slider,"warningTrack",U(et,$.warning.main,.62));const Y=N?U(Ze,$.background.default,.6825):ku($.background.default,.8);re($.SnackbarContent,"bg",Y),re($.SnackbarContent,"color",kr(()=>N?Mm.text.primary:$.getContrastText(Y))),re($.SpeedDialAction,"fabHoverBg",ku($.background.paper,.15)),re($.StepConnector,"border",H("palette-grey-400")),re($.StepContent,"border",H("palette-grey-400")),re($.Switch,"defaultColor",H("palette-common-white")),re($.Switch,"defaultDisabledColor",H("palette-grey-100")),re($.Switch,"primaryDisabledColor",U(et,$.primary.main,.62)),re($.Switch,"secondaryDisabledColor",U(et,$.secondary.main,.62)),re($.Switch,"errorDisabledColor",U(et,$.error.main,.62)),re($.Switch,"infoDisabledColor",U(et,$.info.main,.62)),re($.Switch,"successDisabledColor",U(et,$.success.main,.62)),re($.Switch,"warningDisabledColor",U(et,$.warning.main,.62)),re($.TableCell,"border",U(et,U(ji,$.divider,1),.88)),re($.Tooltip,"bg",U(ji,$.grey[700],.92))}if($.mode==="dark"){re($.Alert,"errorColor",U(et,$.error.light,.6)),re($.Alert,"infoColor",U(et,$.info.light,.6)),re($.Alert,"successColor",U(et,$.success.light,.6)),re($.Alert,"warningColor",U(et,$.warning.light,.6)),re($.Alert,"errorFilledBg",H("palette-error-dark")),re($.Alert,"infoFilledBg",H("palette-info-dark")),re($.Alert,"successFilledBg",H("palette-success-dark")),re($.Alert,"warningFilledBg",H("palette-warning-dark")),re($.Alert,"errorFilledColor",kr(()=>$.getContrastText($.error.dark))),re($.Alert,"infoFilledColor",kr(()=>$.getContrastText($.info.dark))),re($.Alert,"successFilledColor",kr(()=>$.getContrastText($.success.dark))),re($.Alert,"warningFilledColor",kr(()=>$.getContrastText($.warning.dark))),re($.Alert,"errorStandardBg",U(Ze,$.error.light,.9)),re($.Alert,"infoStandardBg",U(Ze,$.info.light,.9)),re($.Alert,"successStandardBg",U(Ze,$.success.light,.9)),re($.Alert,"warningStandardBg",U(Ze,$.warning.light,.9)),re($.Alert,"errorIconColor",H("palette-error-main")),re($.Alert,"infoIconColor",H("palette-info-main")),re($.Alert,"successIconColor",H("palette-success-main")),re($.Alert,"warningIconColor",H("palette-warning-main")),re($.AppBar,"defaultBg",H("palette-grey-900")),re($.AppBar,"darkBg",H("palette-background-paper")),re($.AppBar,"darkColor",H("palette-text-primary")),re($.Avatar,"defaultBg",H("palette-grey-600")),re($.Button,"inheritContainedBg",H("palette-grey-800")),re($.Button,"inheritContainedHoverBg",H("palette-grey-700")),re($.Chip,"defaultBorder",H("palette-grey-700")),re($.Chip,"defaultAvatarColor",H("palette-grey-300")),re($.Chip,"defaultIconColor",H("palette-grey-300")),re($.FilledInput,"bg","rgba(255, 255, 255, 0.09)"),re($.FilledInput,"hoverBg","rgba(255, 255, 255, 0.13)"),re($.FilledInput,"disabledBg","rgba(255, 255, 255, 0.12)"),re($.LinearProgress,"primaryBg",U(Ze,$.primary.main,.5)),re($.LinearProgress,"secondaryBg",U(Ze,$.secondary.main,.5)),re($.LinearProgress,"errorBg",U(Ze,$.error.main,.5)),re($.LinearProgress,"infoBg",U(Ze,$.info.main,.5)),re($.LinearProgress,"successBg",U(Ze,$.success.main,.5)),re($.LinearProgress,"warningBg",U(Ze,$.warning.main,.5)),re($.Skeleton,"bg",N?U(ji,$.text.primary,.13):`rgba(${H("palette-text-primaryChannel")} / 0.13)`),re($.Slider,"primaryTrack",U(Ze,$.primary.main,.5)),re($.Slider,"secondaryTrack",U(Ze,$.secondary.main,.5)),re($.Slider,"errorTrack",U(Ze,$.error.main,.5)),re($.Slider,"infoTrack",U(Ze,$.info.main,.5)),re($.Slider,"successTrack",U(Ze,$.success.main,.5)),re($.Slider,"warningTrack",U(Ze,$.warning.main,.5));const Y=N?U(et,$.background.default,.985):ku($.background.default,.98);re($.SnackbarContent,"bg",Y),re($.SnackbarContent,"color",kr(()=>N?i3.text.primary:$.getContrastText(Y))),re($.SpeedDialAction,"fabHoverBg",ku($.background.paper,.15)),re($.StepConnector,"border",H("palette-grey-600")),re($.StepContent,"border",H("palette-grey-600")),re($.Switch,"defaultColor",H("palette-grey-300")),re($.Switch,"defaultDisabledColor",H("palette-grey-600")),re($.Switch,"primaryDisabledColor",U(Ze,$.primary.main,.55)),re($.Switch,"secondaryDisabledColor",U(Ze,$.secondary.main,.55)),re($.Switch,"errorDisabledColor",U(Ze,$.error.main,.55)),re($.Switch,"infoDisabledColor",U(Ze,$.info.main,.55)),re($.Switch,"successDisabledColor",U(Ze,$.success.main,.55)),re($.Switch,"warningDisabledColor",U(Ze,$.warning.main,.55)),re($.TableCell,"border",U(Ze,U(ji,$.divider,1),.68)),re($.Tooltip,"bg",U(ji,$.grey[700],.92))}da($.background,"default"),da($.background,"paper"),da($.common,"background"),da($.common,"onBackground"),da($,"divider"),Object.keys($).forEach(Y=>{const k=$[Y];Y!=="tonalOffset"&&k&&typeof k=="object"&&(k.main&&re($[Y],"mainChannel",Cs(Es(k.main))),k.light&&re($[Y],"lightChannel",Cs(Es(k.light))),k.dark&&re($[Y],"darkChannel",Cs(Es(k.dark))),k.contrastText&&re($[Y],"contrastTextChannel",Cs(Es(k.contrastText))),Y==="text"&&(da($[Y],"primary"),da($[Y],"secondary")),Y==="action"&&(k.active&&da($[Y],"active"),k.selected&&da($[Y],"selected")))})}),z=t.reduce((q,$)=>Ui(q,$),z);const D={prefix:s,disableCssColorScheme:l,shouldSkipGeneratingVar:f,getSelector:WD(z),enableContrastVars:u},{vars:V,generateThemeVars:Q,generateStyleSheets:Z}=mD(z,D);return z.vars=V,Object.entries(z.colorSchemes[z.defaultColorScheme]).forEach(([q,$])=>{z[q]=$}),z.generateThemeVars=Q,z.generateStyleSheets=Z,z.generateSpacing=function(){return J5(m.spacing,Z0(this))},z.getColorSchemeSelector=gD(d),z.spacing=z.generateSpacing(),z.shouldSkipGeneratingVar=f,z.unstable_sxConfig={...cc,...m?.unstable_sxConfig},z.unstable_sx=function($){return cl({sx:$,theme:this})},z.toRuntimeSource=l3,z}function cx(e,t,a){e.colorSchemes&&a&&(e.colorSchemes[t]={...a!==!0&&a,palette:rg({...a===!0?{}:a.palette,mode:t})})}function ZD(e={},...t){const{palette:a,cssVariables:i=!1,colorSchemes:l=a?void 0:{light:!0},defaultColorScheme:s=a?.mode,...u}=e,f=s||"light",d=l?.[f],h={...l,...a?{[f]:{...typeof d!="boolean"&&d,palette:a}}:void 0};if(i===!1){if(!("colorSchemes"in e))return Bm(e,...t);let m=a;"palette"in e||h[f]&&(h[f]!==!0?m=h[f].palette:f==="dark"&&(m={mode:"dark"}));const v=Bm({...e,palette:m},...t);return v.defaultColorScheme=f,v.colorSchemes=h,v.palette.mode==="light"&&(v.colorSchemes.light={...h.light!==!0&&h.light,palette:v.palette},cx(v,"dark",h.dark)),v.palette.mode==="dark"&&(v.colorSchemes.dark={...h.dark!==!0&&h.dark,palette:v.palette},cx(v,"light",h.light)),v}return!a&&!("light"in h)&&f==="light"&&(h.light=!0),JD({...u,colorSchemes:h,defaultColorScheme:f,...typeof i!="boolean"&&i},...t)}const u3=ZD(),f3="$$material";function eM(){const e=Wz(u3);return e[f3]||e}function tM(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const d3=e=>tM(e)&&e!=="classes",ht=Jz({themeId:f3,defaultTheme:u3,rootShouldForwardProp:d3});function nM(){return Lz}const ln=fD;function Vr(e){return uD(e)}function wr(e,t,a="Mui"){const i={};return t.forEach(l=>{i[l]=Er(e,l,a)}),i}function rM(e){return Er("MuiSvgIcon",e)}wr("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const aM=e=>{const{color:t,fontSize:a,classes:i}=e,l={root:["root",t!=="inherit"&&`color${tt(t)}`,`fontSize${tt(a)}`]};return Fr(l,rM,i)},iM=ht("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:a}=e;return[t.root,a.color!=="inherit"&&t[`color${tt(a.color)}`],t[`fontSize${tt(a.fontSize)}`]]}})(ln(({theme:e})=>({userSelect:"none",width:"1em",height:"1em",display:"inline-block",flexShrink:0,transition:e.transitions?.create?.("fill",{duration:(e.vars??e).transitions?.duration?.shorter}),variants:[{props:t=>!t.hasSvgAsChild,style:{fill:"currentColor"}},{props:{fontSize:"inherit"},style:{fontSize:"inherit"}},{props:{fontSize:"small"},style:{fontSize:e.typography?.pxToRem?.(20)||"1.25rem"}},{props:{fontSize:"medium"},style:{fontSize:e.typography?.pxToRem?.(24)||"1.5rem"}},{props:{fontSize:"large"},style:{fontSize:e.typography?.pxToRem?.(35)||"2.1875rem"}},...Object.entries((e.vars??e).palette).filter(([,t])=>t&&t.main).map(([t])=>({props:{color:t},style:{color:(e.vars??e).palette?.[t]?.main}})),{props:{color:"action"},style:{color:(e.vars??e).palette?.action?.active}},{props:{color:"disabled"},style:{color:(e.vars??e).palette?.action?.disabled}},{props:{color:"inherit"},style:{color:void 0}}]}))),Pm=C.forwardRef(function(t,a){const i=Vr({props:t,name:"MuiSvgIcon"}),{children:l,className:s,color:u="inherit",component:f="svg",fontSize:d="medium",htmlColor:h,inheritViewBox:m=!1,titleAccess:v,viewBox:S="0 0 24 24",...w}=i,x=C.isValidElement(l)&&l.type==="svg",b={...i,color:u,component:f,fontSize:d,instanceFontSize:t.fontSize,inheritViewBox:m,viewBox:S,hasSvgAsChild:x},A={};m||(A.viewBox=S);const j=aM(b);return y.jsxs(iM,{as:f,className:Xe(j.root,s),focusable:"false",color:h,"aria-hidden":v?void 0:!0,role:v?"img":void 0,ref:a,...A,...w,...x&&l.props,ownerState:b,children:[x?l.props.children:l,v?y.jsx("title",{children:v}):null]})});Pm.muiName="SvgIcon";function Qi(e,t){function a(i,l){return y.jsx(Pm,{"data-testid":void 0,ref:l,...i,children:e})}return a.muiName=Pm.muiName,C.memo(C.forwardRef(a))}const oM=typeof window<"u"?C.useLayoutEffect:C.useEffect;let ux=0;function lM(e){const[t,a]=C.useState(e),i=e||t;return C.useEffect(()=>{t==null&&(ux+=1,a(`mui-${ux}`))},[t]),i}const sM={...Qu},fx=sM.useId;function cM(e){if(fx!==void 0){const t=fx();return e??t}return lM(e)}function uM(e){const{controlled:t,default:a}=e,{current:i}=C.useRef(t!==void 0),[l,s]=C.useState(a),u=i?t:l,f=C.useCallback(d=>{i||s(d)},[]);return[u,f]}function Gu(e){const t=C.useRef(e);return oM(()=>{t.current=e}),C.useRef((...a)=>(0,t.current)(...a)).current}function Im(...e){const t=C.useRef(void 0),a=C.useCallback(i=>{const l=e.map(s=>{if(s==null)return null;if(typeof s=="function"){const u=s,f=u(i);return typeof f=="function"?f:()=>{u(null)}}return s.current=i,()=>{s.current=null}});return()=>{l.forEach(s=>s?.())}},e);return C.useMemo(()=>e.every(i=>i==null)?null:i=>{t.current&&(t.current(),t.current=void 0),i!=null&&(t.current=a(i))},e)}const fM=Qi(y.jsx("path",{d:"M3 18h18v-2H3zm0-5h18v-2H3zm0-7v2h18V6z"})),dM=Qi(y.jsx("path",{d:"M15.5 14h-.79l-.28-.27C15.41 12.59 16 11.11 16 9.5 16 5.91 13.09 3 9.5 3S3 5.91 3 9.5 5.91 16 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14"}));function pM({mode:e}){const[t,a]=C.useState(!1),[i,l]=C.useState(),s=sn(),u=f=>{f==="Enter"&&(e==="TV"?s(`/home_cinema/watch_tv_shows?query=${i}`):location.href=`/home_cinema/search?term=${i}`)};return y.jsxs(C.Fragment,{children:[y.jsx(O5,{variant:"outlined",color:"neutral",onClick:()=>a(!0),children:y.jsx(fM,{})}),y.jsxs(K8,{sx:{"&.MuiDrawer-content":{backgroundColor:"black !important"}},open:t,onClose:()=>a(!1),children:[y.jsxs(J7,{sx:{display:"flex",alignItems:"center",gap:.5,ml:"auto",mt:1,mr:2},children:[y.jsx(Y5,{component:"label",htmlFor:"close-icon",sx:{fontSize:"sm",fontWeight:"lg",cursor:"pointer"},children:"Close"}),y.jsx(UN,{id:"close-icon",sx:{position:"initial"}})]}),y.jsx(P5,{onKeyUp:f=>{u(f.key)},onChange:f=>{l(f.target.value)},value:i,size:"sm",placeholder:"Search",variant:"plain",endDecorator:y.jsx(dM,{}),slotProps:{input:{"aria-label":"Search anything"}},sx:{m:3,borderRadius:0,borderBottom:"2px solid",borderColor:"neutral.outlinedBorder","&:hover":{borderColor:"neutral.outlinedHoverBorder"},"&::before":{border:"1px solid var(--Input-focusedHighlight)",transform:"scaleX(0)",left:0,right:0,bottom:"-2px",top:"unset",transition:"transform .15s cubic-bezier(0.1,0.9,0.2,1)",borderRadius:0},"&:focus-within::before":{transform:"scaleX(1)"}}}),y.jsxs(vN,{size:"lg",component:"nav",sx:{flex:"none",fontSize:"xl","& > div":{justifyContent:"center"}},children:[y.jsx(Vo,{sx:{fontWeight:"lg"},onClick:()=>s("/home_cinema"),children:"Home"}),y.jsx(Vo,{onClick:()=>s("/home_cinema/watch"),children:"Movies"}),y.jsx(Vo,{onClick:()=>s("/home_cinema/watch_tv_shows"),children:"TV Shows"}),y.jsxs(Vo,{onClick:()=>s("/home_cinema/torrents"),children:[" ","Torrents"]}),y.jsxs(Vo,{onClick:()=>s("/home_cinema/downloads"),children:[" ","Downloads"]}),y.jsxs(Vo,{onClick:()=>s("/home_cinema/saved"),children:[" ","Saved"]})]})]})]})}const hM="data:image/svg+xml,%3csvg%20width='1024'%20height='1024'%20viewBox='0%200%201024%201024'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3crect%20width='1024'%20height='1024'%20fill='black'/%3e%3cpath%20d='M169%20297.625C169%20250.329%20207.454%20211.875%20254.75%20211.875H769.25C816.547%20211.875%20855%20250.329%20855%20297.625V726.375C855%20773.672%20816.547%20812.125%20769.25%20812.125H254.75C207.454%20812.125%20169%20773.672%20169%20726.375V297.625ZM233.312%20662.062V704.938C233.312%20716.728%20242.959%20726.375%20254.75%20726.375H297.625C309.416%20726.375%20319.062%20716.728%20319.062%20704.938V662.062C319.062%20650.272%20309.416%20640.625%20297.625%20640.625H254.75C242.959%20640.625%20233.312%20650.272%20233.312%20662.062ZM726.375%20640.625C714.584%20640.625%20704.938%20650.272%20704.938%20662.062V704.938C704.938%20716.728%20714.584%20726.375%20726.375%20726.375H769.25C781.041%20726.375%20790.688%20716.728%20790.688%20704.938V662.062C790.688%20650.272%20781.041%20640.625%20769.25%20640.625H726.375ZM233.312%20490.562V533.438C233.312%20545.228%20242.959%20554.875%20254.75%20554.875H297.625C309.416%20554.875%20319.062%20545.228%20319.062%20533.438V490.562C319.062%20478.772%20309.416%20469.125%20297.625%20469.125H254.75C242.959%20469.125%20233.312%20478.772%20233.312%20490.562ZM726.375%20469.125C714.584%20469.125%20704.938%20478.772%20704.938%20490.562V533.438C704.938%20545.228%20714.584%20554.875%20726.375%20554.875H769.25C781.041%20554.875%20790.688%20545.228%20790.688%20533.438V490.562C790.688%20478.772%20781.041%20469.125%20769.25%20469.125H726.375ZM233.312%20319.062V361.938C233.312%20373.728%20242.959%20383.375%20254.75%20383.375H297.625C309.416%20383.375%20319.062%20373.728%20319.062%20361.938V319.062C319.062%20307.272%20309.416%20297.625%20297.625%20297.625H254.75C242.959%20297.625%20233.312%20307.272%20233.312%20319.062ZM726.375%20297.625C714.584%20297.625%20704.938%20307.272%20704.938%20319.062V361.938C704.938%20373.728%20714.584%20383.375%20726.375%20383.375H769.25C781.041%20383.375%20790.688%20373.728%20790.688%20361.938V319.062C790.688%20307.272%20781.041%20297.625%20769.25%20297.625H726.375ZM383.375%20340.5V426.25C383.375%20449.965%20402.535%20469.125%20426.25%20469.125H597.75C621.465%20469.125%20640.625%20449.965%20640.625%20426.25V340.5C640.625%20316.785%20621.465%20297.625%20597.75%20297.625H426.25C402.535%20297.625%20383.375%20316.785%20383.375%20340.5ZM426.25%20554.875C402.535%20554.875%20383.375%20574.035%20383.375%20597.75V683.5C383.375%20707.215%20402.535%20726.375%20426.25%20726.375H597.75C621.465%20726.375%20640.625%20707.215%20640.625%20683.5V597.75C640.625%20574.035%20621.465%20554.875%20597.75%20554.875H426.25Z'%20fill='white'/%3e%3c/svg%3e";function p3(e,t){return function(){return e.apply(t,arguments)}}const{toString:mM}=Object.prototype,{getPrototypeOf:ag}=Object,{iterator:td,toStringTag:h3}=Symbol,nd=(e=>t=>{const a=mM.call(t);return e[a]||(e[a]=a.slice(8,-1).toLowerCase())})(Object.create(null)),Ar=e=>(e=e.toLowerCase(),t=>nd(t)===e),rd=e=>t=>typeof t===e,{isArray:vl}=Array,ul=rd("undefined");function uc(e){return e!==null&&!ul(e)&&e.constructor!==null&&!ul(e.constructor)&&Sn(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const m3=Ar("ArrayBuffer");function gM(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&m3(e.buffer),t}const vM=rd("string"),Sn=rd("function"),g3=rd("number"),fc=e=>e!==null&&typeof e=="object",yM=e=>e===!0||e===!1,Wu=e=>{if(nd(e)!=="object")return!1;const t=ag(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(h3 in e)&&!(td in e)},bM=e=>{if(!fc(e)||uc(e))return!1;try{return Object.keys(e).length===0&&Object.getPrototypeOf(e)===Object.prototype}catch{return!1}},xM=Ar("Date"),SM=Ar("File"),CM=Ar("Blob"),EM=Ar("FileList"),wM=e=>fc(e)&&Sn(e.pipe),AM=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||Sn(e.append)&&((t=nd(e))==="formdata"||t==="object"&&Sn(e.toString)&&e.toString()==="[object FormData]"))},RM=Ar("URLSearchParams"),[TM,$M,OM,_M]=["ReadableStream","Request","Response","Headers"].map(Ar),jM=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function dc(e,t,{allOwnKeys:a=!1}={}){if(e===null||typeof e>"u")return;let i,l;if(typeof e!="object"&&(e=[e]),vl(e))for(i=0,l=e.length;i<l;i++)t.call(null,e[i],i,e);else{if(uc(e))return;const s=a?Object.getOwnPropertyNames(e):Object.keys(e),u=s.length;let f;for(i=0;i<u;i++)f=s[i],t.call(null,e[f],f,e)}}function v3(e,t){if(uc(e))return null;t=t.toLowerCase();const a=Object.keys(e);let i=a.length,l;for(;i-- >0;)if(l=a[i],t===l.toLowerCase())return l;return null}const Bi=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,y3=e=>!ul(e)&&e!==Bi;function Hm(){const{caseless:e,skipUndefined:t}=y3(this)&&this||{},a={},i=(l,s)=>{const u=e&&v3(a,s)||s;Wu(a[u])&&Wu(l)?a[u]=Hm(a[u],l):Wu(l)?a[u]=Hm({},l):vl(l)?a[u]=l.slice():(!t||!ul(l))&&(a[u]=l)};for(let l=0,s=arguments.length;l<s;l++)arguments[l]&&dc(arguments[l],i);return a}const kM=(e,t,a,{allOwnKeys:i}={})=>(dc(t,(l,s)=>{a&&Sn(l)?e[s]=p3(l,a):e[s]=l},{allOwnKeys:i}),e),NM=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),zM=(e,t,a,i)=>{e.prototype=Object.create(t.prototype,i),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),a&&Object.assign(e.prototype,a)},DM=(e,t,a,i)=>{let l,s,u;const f={};if(t=t||{},e==null)return t;do{for(l=Object.getOwnPropertyNames(e),s=l.length;s-- >0;)u=l[s],(!i||i(u,e,t))&&!f[u]&&(t[u]=e[u],f[u]=!0);e=a!==!1&&ag(e)}while(e&&(!a||a(e,t))&&e!==Object.prototype);return t},MM=(e,t,a)=>{e=String(e),(a===void 0||a>e.length)&&(a=e.length),a-=t.length;const i=e.indexOf(t,a);return i!==-1&&i===a},BM=e=>{if(!e)return null;if(vl(e))return e;let t=e.length;if(!g3(t))return null;const a=new Array(t);for(;t-- >0;)a[t]=e[t];return a},LM=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&ag(Uint8Array)),PM=(e,t)=>{const i=(e&&e[td]).call(e);let l;for(;(l=i.next())&&!l.done;){const s=l.value;t.call(e,s[0],s[1])}},IM=(e,t)=>{let a;const i=[];for(;(a=e.exec(t))!==null;)i.push(a);return i},HM=Ar("HTMLFormElement"),UM=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(a,i,l){return i.toUpperCase()+l}),dx=(({hasOwnProperty:e})=>(t,a)=>e.call(t,a))(Object.prototype),FM=Ar("RegExp"),b3=(e,t)=>{const a=Object.getOwnPropertyDescriptors(e),i={};dc(a,(l,s)=>{let u;(u=t(l,s,e))!==!1&&(i[s]=u||l)}),Object.defineProperties(e,i)},VM=e=>{b3(e,(t,a)=>{if(Sn(e)&&["arguments","caller","callee"].indexOf(a)!==-1)return!1;const i=e[a];if(Sn(i)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+a+"'")})}})},qM=(e,t)=>{const a={},i=l=>{l.forEach(s=>{a[s]=!0})};return vl(e)?i(e):i(String(e).split(t)),a},YM=()=>{},GM=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t;function WM(e){return!!(e&&Sn(e.append)&&e[h3]==="FormData"&&e[td])}const KM=e=>{const t=new Array(10),a=(i,l)=>{if(fc(i)){if(t.indexOf(i)>=0)return;if(uc(i))return i;if(!("toJSON"in i)){t[l]=i;const s=vl(i)?[]:{};return dc(i,(u,f)=>{const d=a(u,l+1);!ul(d)&&(s[f]=d)}),t[l]=void 0,s}}return i};return a(e,0)},XM=Ar("AsyncFunction"),QM=e=>e&&(fc(e)||Sn(e))&&Sn(e.then)&&Sn(e.catch),x3=((e,t)=>e?setImmediate:t?((a,i)=>(Bi.addEventListener("message",({source:l,data:s})=>{l===Bi&&s===a&&i.length&&i.shift()()},!1),l=>{i.push(l),Bi.postMessage(a,"*")}))(`axios@${Math.random()}`,[]):a=>setTimeout(a))(typeof setImmediate=="function",Sn(Bi.postMessage)),JM=typeof queueMicrotask<"u"?queueMicrotask.bind(Bi):typeof process<"u"&&process.nextTick||x3,ZM=e=>e!=null&&Sn(e[td]),ee={isArray:vl,isArrayBuffer:m3,isBuffer:uc,isFormData:AM,isArrayBufferView:gM,isString:vM,isNumber:g3,isBoolean:yM,isObject:fc,isPlainObject:Wu,isEmptyObject:bM,isReadableStream:TM,isRequest:$M,isResponse:OM,isHeaders:_M,isUndefined:ul,isDate:xM,isFile:SM,isBlob:CM,isRegExp:FM,isFunction:Sn,isStream:wM,isURLSearchParams:RM,isTypedArray:LM,isFileList:EM,forEach:dc,merge:Hm,extend:kM,trim:jM,stripBOM:NM,inherits:zM,toFlatObject:DM,kindOf:nd,kindOfTest:Ar,endsWith:MM,toArray:BM,forEachEntry:PM,matchAll:IM,isHTMLForm:HM,hasOwnProperty:dx,hasOwnProp:dx,reduceDescriptors:b3,freezeMethods:VM,toObjectSet:qM,toCamelCase:UM,noop:YM,toFiniteNumber:GM,findKey:v3,global:Bi,isContextDefined:y3,isSpecCompliantForm:WM,toJSONObject:KM,isAsyncFn:XM,isThenable:QM,setImmediate:x3,asap:JM,isIterable:ZM};function Oe(e,t,a,i,l){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=e,this.name="AxiosError",t&&(this.code=t),a&&(this.config=a),i&&(this.request=i),l&&(this.response=l,this.status=l.status?l.status:null)}ee.inherits(Oe,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:ee.toJSONObject(this.config),code:this.code,status:this.status}}});const S3=Oe.prototype,C3={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(e=>{C3[e]={value:e}});Object.defineProperties(Oe,C3);Object.defineProperty(S3,"isAxiosError",{value:!0});Oe.from=(e,t,a,i,l,s)=>{const u=Object.create(S3);ee.toFlatObject(e,u,function(m){return m!==Error.prototype},h=>h!=="isAxiosError");const f=e&&e.message?e.message:"Error",d=t==null&&e?e.code:t;return Oe.call(u,f,d,a,i,l),e&&u.cause==null&&Object.defineProperty(u,"cause",{value:e,configurable:!0}),u.name=e&&e.name||"Error",s&&Object.assign(u,s),u};const e9=null;function Um(e){return ee.isPlainObject(e)||ee.isArray(e)}function E3(e){return ee.endsWith(e,"[]")?e.slice(0,-2):e}function px(e,t,a){return e?e.concat(t).map(function(l,s){return l=E3(l),!a&&s?"["+l+"]":l}).join(a?".":""):t}function t9(e){return ee.isArray(e)&&!e.some(Um)}const n9=ee.toFlatObject(ee,{},null,function(t){return/^is[A-Z]/.test(t)});function ad(e,t,a){if(!ee.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,a=ee.toFlatObject(a,{metaTokens:!0,dots:!1,indexes:!1},!1,function(b,A){return!ee.isUndefined(A[b])});const i=a.metaTokens,l=a.visitor||m,s=a.dots,u=a.indexes,d=(a.Blob||typeof Blob<"u"&&Blob)&&ee.isSpecCompliantForm(t);if(!ee.isFunction(l))throw new TypeError("visitor must be a function");function h(x){if(x===null)return"";if(ee.isDate(x))return x.toISOString();if(ee.isBoolean(x))return x.toString();if(!d&&ee.isBlob(x))throw new Oe("Blob is not supported. Use a Buffer instead.");return ee.isArrayBuffer(x)||ee.isTypedArray(x)?d&&typeof Blob=="function"?new Blob([x]):Buffer.from(x):x}function m(x,b,A){let j=x;if(x&&!A&&typeof x=="object"){if(ee.endsWith(b,"{}"))b=i?b:b.slice(0,-2),x=JSON.stringify(x);else if(ee.isArray(x)&&t9(x)||(ee.isFileList(x)||ee.endsWith(b,"[]"))&&(j=ee.toArray(x)))return b=E3(b),j.forEach(function(R,N){!(ee.isUndefined(R)||R===null)&&t.append(u===!0?px([b],N,s):u===null?b:b+"[]",h(R))}),!1}return Um(x)?!0:(t.append(px(A,b,s),h(x)),!1)}const v=[],S=Object.assign(n9,{defaultVisitor:m,convertValue:h,isVisitable:Um});function w(x,b){if(!ee.isUndefined(x)){if(v.indexOf(x)!==-1)throw Error("Circular reference detected in "+b.join("."));v.push(x),ee.forEach(x,function(j,_){(!(ee.isUndefined(j)||j===null)&&l.call(t,j,ee.isString(_)?_.trim():_,b,S))===!0&&w(j,b?b.concat(_):[_])}),v.pop()}}if(!ee.isObject(e))throw new TypeError("data must be an object");return w(e),t}function hx(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(i){return t[i]})}function ig(e,t){this._pairs=[],e&&ad(e,this,t)}const w3=ig.prototype;w3.append=function(t,a){this._pairs.push([t,a])};w3.toString=function(t){const a=t?function(i){return t.call(this,i,hx)}:hx;return this._pairs.map(function(l){return a(l[0])+"="+a(l[1])},"").join("&")};function r9(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+")}function A3(e,t,a){if(!t)return e;const i=a&&a.encode||r9;ee.isFunction(a)&&(a={serialize:a});const l=a&&a.serialize;let s;if(l?s=l(t,a):s=ee.isURLSearchParams(t)?t.toString():new ig(t,a).toString(i),s){const u=e.indexOf("#");u!==-1&&(e=e.slice(0,u)),e+=(e.indexOf("?")===-1?"?":"&")+s}return e}class mx{constructor(){this.handlers=[]}use(t,a,i){return this.handlers.push({fulfilled:t,rejected:a,synchronous:i?i.synchronous:!1,runWhen:i?i.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){ee.forEach(this.handlers,function(i){i!==null&&t(i)})}}const R3={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},a9=typeof URLSearchParams<"u"?URLSearchParams:ig,i9=typeof FormData<"u"?FormData:null,o9=typeof Blob<"u"?Blob:null,l9={isBrowser:!0,classes:{URLSearchParams:a9,FormData:i9,Blob:o9},protocols:["http","https","file","blob","url","data"]},og=typeof window<"u"&&typeof document<"u",Fm=typeof navigator=="object"&&navigator||void 0,s9=og&&(!Fm||["ReactNative","NativeScript","NS"].indexOf(Fm.product)<0),c9=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",u9=og&&window.location.href||"http://localhost",f9=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:og,hasStandardBrowserEnv:s9,hasStandardBrowserWebWorkerEnv:c9,navigator:Fm,origin:u9},Symbol.toStringTag,{value:"Module"})),tn={...f9,...l9};function d9(e,t){return ad(e,new tn.classes.URLSearchParams,{visitor:function(a,i,l,s){return tn.isNode&&ee.isBuffer(a)?(this.append(i,a.toString("base64")),!1):s.defaultVisitor.apply(this,arguments)},...t})}function p9(e){return ee.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function h9(e){const t={},a=Object.keys(e);let i;const l=a.length;let s;for(i=0;i<l;i++)s=a[i],t[s]=e[s];return t}function T3(e){function t(a,i,l,s){let u=a[s++];if(u==="__proto__")return!0;const f=Number.isFinite(+u),d=s>=a.length;return u=!u&&ee.isArray(l)?l.length:u,d?(ee.hasOwnProp(l,u)?l[u]=[l[u],i]:l[u]=i,!f):((!l[u]||!ee.isObject(l[u]))&&(l[u]=[]),t(a,i,l[u],s)&&ee.isArray(l[u])&&(l[u]=h9(l[u])),!f)}if(ee.isFormData(e)&&ee.isFunction(e.entries)){const a={};return ee.forEachEntry(e,(i,l)=>{t(p9(i),l,a,0)}),a}return null}function m9(e,t,a){if(ee.isString(e))try{return(t||JSON.parse)(e),ee.trim(e)}catch(i){if(i.name!=="SyntaxError")throw i}return(a||JSON.stringify)(e)}const pc={transitional:R3,adapter:["xhr","http","fetch"],transformRequest:[function(t,a){const i=a.getContentType()||"",l=i.indexOf("application/json")>-1,s=ee.isObject(t);if(s&&ee.isHTMLForm(t)&&(t=new FormData(t)),ee.isFormData(t))return l?JSON.stringify(T3(t)):t;if(ee.isArrayBuffer(t)||ee.isBuffer(t)||ee.isStream(t)||ee.isFile(t)||ee.isBlob(t)||ee.isReadableStream(t))return t;if(ee.isArrayBufferView(t))return t.buffer;if(ee.isURLSearchParams(t))return a.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let f;if(s){if(i.indexOf("application/x-www-form-urlencoded")>-1)return d9(t,this.formSerializer).toString();if((f=ee.isFileList(t))||i.indexOf("multipart/form-data")>-1){const d=this.env&&this.env.FormData;return ad(f?{"files[]":t}:t,d&&new d,this.formSerializer)}}return s||l?(a.setContentType("application/json",!1),m9(t)):t}],transformResponse:[function(t){const a=this.transitional||pc.transitional,i=a&&a.forcedJSONParsing,l=this.responseType==="json";if(ee.isResponse(t)||ee.isReadableStream(t))return t;if(t&&ee.isString(t)&&(i&&!this.responseType||l)){const u=!(a&&a.silentJSONParsing)&&l;try{return JSON.parse(t,this.parseReviver)}catch(f){if(u)throw f.name==="SyntaxError"?Oe.from(f,Oe.ERR_BAD_RESPONSE,this,null,this.response):f}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:tn.classes.FormData,Blob:tn.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};ee.forEach(["delete","get","head","post","put","patch"],e=>{pc.headers[e]={}});const g9=ee.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),v9=e=>{const t={};let a,i,l;return e&&e.split(`
578
+ `).forEach(function(u){l=u.indexOf(":"),a=u.substring(0,l).trim().toLowerCase(),i=u.substring(l+1).trim(),!(!a||t[a]&&g9[a])&&(a==="set-cookie"?t[a]?t[a].push(i):t[a]=[i]:t[a]=t[a]?t[a]+", "+i:i)}),t},gx=Symbol("internals");function xs(e){return e&&String(e).trim().toLowerCase()}function Ku(e){return e===!1||e==null?e:ee.isArray(e)?e.map(Ku):String(e)}function y9(e){const t=Object.create(null),a=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let i;for(;i=a.exec(e);)t[i[1]]=i[2];return t}const b9=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function Xh(e,t,a,i,l){if(ee.isFunction(i))return i.call(this,t,a);if(l&&(t=a),!!ee.isString(t)){if(ee.isString(i))return t.indexOf(i)!==-1;if(ee.isRegExp(i))return i.test(t)}}function x9(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,a,i)=>a.toUpperCase()+i)}function S9(e,t){const a=ee.toCamelCase(" "+t);["get","set","has"].forEach(i=>{Object.defineProperty(e,i+a,{value:function(l,s,u){return this[i].call(this,t,l,s,u)},configurable:!0})})}let Cn=class{constructor(t){t&&this.set(t)}set(t,a,i){const l=this;function s(f,d,h){const m=xs(d);if(!m)throw new Error("header name must be a non-empty string");const v=ee.findKey(l,m);(!v||l[v]===void 0||h===!0||h===void 0&&l[v]!==!1)&&(l[v||d]=Ku(f))}const u=(f,d)=>ee.forEach(f,(h,m)=>s(h,m,d));if(ee.isPlainObject(t)||t instanceof this.constructor)u(t,a);else if(ee.isString(t)&&(t=t.trim())&&!b9(t))u(v9(t),a);else if(ee.isObject(t)&&ee.isIterable(t)){let f={},d,h;for(const m of t){if(!ee.isArray(m))throw TypeError("Object iterator must return a key-value pair");f[h=m[0]]=(d=f[h])?ee.isArray(d)?[...d,m[1]]:[d,m[1]]:m[1]}u(f,a)}else t!=null&&s(a,t,i);return this}get(t,a){if(t=xs(t),t){const i=ee.findKey(this,t);if(i){const l=this[i];if(!a)return l;if(a===!0)return y9(l);if(ee.isFunction(a))return a.call(this,l,i);if(ee.isRegExp(a))return a.exec(l);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,a){if(t=xs(t),t){const i=ee.findKey(this,t);return!!(i&&this[i]!==void 0&&(!a||Xh(this,this[i],i,a)))}return!1}delete(t,a){const i=this;let l=!1;function s(u){if(u=xs(u),u){const f=ee.findKey(i,u);f&&(!a||Xh(i,i[f],f,a))&&(delete i[f],l=!0)}}return ee.isArray(t)?t.forEach(s):s(t),l}clear(t){const a=Object.keys(this);let i=a.length,l=!1;for(;i--;){const s=a[i];(!t||Xh(this,this[s],s,t,!0))&&(delete this[s],l=!0)}return l}normalize(t){const a=this,i={};return ee.forEach(this,(l,s)=>{const u=ee.findKey(i,s);if(u){a[u]=Ku(l),delete a[s];return}const f=t?x9(s):String(s).trim();f!==s&&delete a[s],a[f]=Ku(l),i[f]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const a=Object.create(null);return ee.forEach(this,(i,l)=>{i!=null&&i!==!1&&(a[l]=t&&ee.isArray(i)?i.join(", "):i)}),a}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,a])=>t+": "+a).join(`
579
+ `)}getSetCookie(){return this.get("set-cookie")||[]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...a){const i=new this(t);return a.forEach(l=>i.set(l)),i}static accessor(t){const i=(this[gx]=this[gx]={accessors:{}}).accessors,l=this.prototype;function s(u){const f=xs(u);i[f]||(S9(l,u),i[f]=!0)}return ee.isArray(t)?t.forEach(s):s(t),this}};Cn.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);ee.reduceDescriptors(Cn.prototype,({value:e},t)=>{let a=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(i){this[a]=i}}});ee.freezeMethods(Cn);function Qh(e,t){const a=this||pc,i=t||a,l=Cn.from(i.headers);let s=i.data;return ee.forEach(e,function(f){s=f.call(a,s,l.normalize(),t?t.status:void 0)}),l.normalize(),s}function $3(e){return!!(e&&e.__CANCEL__)}function yl(e,t,a){Oe.call(this,e??"canceled",Oe.ERR_CANCELED,t,a),this.name="CanceledError"}ee.inherits(yl,Oe,{__CANCEL__:!0});function O3(e,t,a){const i=a.config.validateStatus;!a.status||!i||i(a.status)?e(a):t(new Oe("Request failed with status code "+a.status,[Oe.ERR_BAD_REQUEST,Oe.ERR_BAD_RESPONSE][Math.floor(a.status/100)-4],a.config,a.request,a))}function C9(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function E9(e,t){e=e||10;const a=new Array(e),i=new Array(e);let l=0,s=0,u;return t=t!==void 0?t:1e3,function(d){const h=Date.now(),m=i[s];u||(u=h),a[l]=d,i[l]=h;let v=s,S=0;for(;v!==l;)S+=a[v++],v=v%e;if(l=(l+1)%e,l===s&&(s=(s+1)%e),h-u<t)return;const w=m&&h-m;return w?Math.round(S*1e3/w):void 0}}function w9(e,t){let a=0,i=1e3/t,l,s;const u=(h,m=Date.now())=>{a=m,l=null,s&&(clearTimeout(s),s=null),e(...h)};return[(...h)=>{const m=Date.now(),v=m-a;v>=i?u(h,m):(l=h,s||(s=setTimeout(()=>{s=null,u(l)},i-v)))},()=>l&&u(l)]}const mf=(e,t,a=3)=>{let i=0;const l=E9(50,250);return w9(s=>{const u=s.loaded,f=s.lengthComputable?s.total:void 0,d=u-i,h=l(d),m=u<=f;i=u;const v={loaded:u,total:f,progress:f?u/f:void 0,bytes:d,rate:h||void 0,estimated:h&&f&&m?(f-u)/h:void 0,event:s,lengthComputable:f!=null,[t?"download":"upload"]:!0};e(v)},a)},vx=(e,t)=>{const a=e!=null;return[i=>t[0]({lengthComputable:a,total:e,loaded:i}),t[1]]},yx=e=>(...t)=>ee.asap(()=>e(...t)),A9=tn.hasStandardBrowserEnv?((e,t)=>a=>(a=new URL(a,tn.origin),e.protocol===a.protocol&&e.host===a.host&&(t||e.port===a.port)))(new URL(tn.origin),tn.navigator&&/(msie|trident)/i.test(tn.navigator.userAgent)):()=>!0,R9=tn.hasStandardBrowserEnv?{write(e,t,a,i,l,s,u){if(typeof document>"u")return;const f=[`${e}=${encodeURIComponent(t)}`];ee.isNumber(a)&&f.push(`expires=${new Date(a).toUTCString()}`),ee.isString(i)&&f.push(`path=${i}`),ee.isString(l)&&f.push(`domain=${l}`),s===!0&&f.push("secure"),ee.isString(u)&&f.push(`SameSite=${u}`),document.cookie=f.join("; ")},read(e){if(typeof document>"u")return null;const t=document.cookie.match(new RegExp("(?:^|; )"+e+"=([^;]*)"));return t?decodeURIComponent(t[1]):null},remove(e){this.write(e,"",Date.now()-864e5,"/")}}:{write(){},read(){return null},remove(){}};function T9(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function $9(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function _3(e,t,a){let i=!T9(t);return e&&(i||a==!1)?$9(e,t):t}const bx=e=>e instanceof Cn?{...e}:e;function Ki(e,t){t=t||{};const a={};function i(h,m,v,S){return ee.isPlainObject(h)&&ee.isPlainObject(m)?ee.merge.call({caseless:S},h,m):ee.isPlainObject(m)?ee.merge({},m):ee.isArray(m)?m.slice():m}function l(h,m,v,S){if(ee.isUndefined(m)){if(!ee.isUndefined(h))return i(void 0,h,v,S)}else return i(h,m,v,S)}function s(h,m){if(!ee.isUndefined(m))return i(void 0,m)}function u(h,m){if(ee.isUndefined(m)){if(!ee.isUndefined(h))return i(void 0,h)}else return i(void 0,m)}function f(h,m,v){if(v in t)return i(h,m);if(v in e)return i(void 0,h)}const d={url:s,method:s,data:s,baseURL:u,transformRequest:u,transformResponse:u,paramsSerializer:u,timeout:u,timeoutMessage:u,withCredentials:u,withXSRFToken:u,adapter:u,responseType:u,xsrfCookieName:u,xsrfHeaderName:u,onUploadProgress:u,onDownloadProgress:u,decompress:u,maxContentLength:u,maxBodyLength:u,beforeRedirect:u,transport:u,httpAgent:u,httpsAgent:u,cancelToken:u,socketPath:u,responseEncoding:u,validateStatus:f,headers:(h,m,v)=>l(bx(h),bx(m),v,!0)};return ee.forEach(Object.keys({...e,...t}),function(m){const v=d[m]||l,S=v(e[m],t[m],m);ee.isUndefined(S)&&v!==f||(a[m]=S)}),a}const j3=e=>{const t=Ki({},e);let{data:a,withXSRFToken:i,xsrfHeaderName:l,xsrfCookieName:s,headers:u,auth:f}=t;if(t.headers=u=Cn.from(u),t.url=A3(_3(t.baseURL,t.url,t.allowAbsoluteUrls),e.params,e.paramsSerializer),f&&u.set("Authorization","Basic "+btoa((f.username||"")+":"+(f.password?unescape(encodeURIComponent(f.password)):""))),ee.isFormData(a)){if(tn.hasStandardBrowserEnv||tn.hasStandardBrowserWebWorkerEnv)u.setContentType(void 0);else if(ee.isFunction(a.getHeaders)){const d=a.getHeaders(),h=["content-type","content-length"];Object.entries(d).forEach(([m,v])=>{h.includes(m.toLowerCase())&&u.set(m,v)})}}if(tn.hasStandardBrowserEnv&&(i&&ee.isFunction(i)&&(i=i(t)),i||i!==!1&&A9(t.url))){const d=l&&s&&R9.read(s);d&&u.set(l,d)}return t},O9=typeof XMLHttpRequest<"u",_9=O9&&function(e){return new Promise(function(a,i){const l=j3(e);let s=l.data;const u=Cn.from(l.headers).normalize();let{responseType:f,onUploadProgress:d,onDownloadProgress:h}=l,m,v,S,w,x;function b(){w&&w(),x&&x(),l.cancelToken&&l.cancelToken.unsubscribe(m),l.signal&&l.signal.removeEventListener("abort",m)}let A=new XMLHttpRequest;A.open(l.method.toUpperCase(),l.url,!0),A.timeout=l.timeout;function j(){if(!A)return;const R=Cn.from("getAllResponseHeaders"in A&&A.getAllResponseHeaders()),T={data:!f||f==="text"||f==="json"?A.responseText:A.response,status:A.status,statusText:A.statusText,headers:R,config:e,request:A};O3(function(D){a(D),b()},function(D){i(D),b()},T),A=null}"onloadend"in A?A.onloadend=j:A.onreadystatechange=function(){!A||A.readyState!==4||A.status===0&&!(A.responseURL&&A.responseURL.indexOf("file:")===0)||setTimeout(j)},A.onabort=function(){A&&(i(new Oe("Request aborted",Oe.ECONNABORTED,e,A)),A=null)},A.onerror=function(N){const T=N&&N.message?N.message:"Network Error",z=new Oe(T,Oe.ERR_NETWORK,e,A);z.event=N||null,i(z),A=null},A.ontimeout=function(){let N=l.timeout?"timeout of "+l.timeout+"ms exceeded":"timeout exceeded";const T=l.transitional||R3;l.timeoutErrorMessage&&(N=l.timeoutErrorMessage),i(new Oe(N,T.clarifyTimeoutError?Oe.ETIMEDOUT:Oe.ECONNABORTED,e,A)),A=null},s===void 0&&u.setContentType(null),"setRequestHeader"in A&&ee.forEach(u.toJSON(),function(N,T){A.setRequestHeader(T,N)}),ee.isUndefined(l.withCredentials)||(A.withCredentials=!!l.withCredentials),f&&f!=="json"&&(A.responseType=l.responseType),h&&([S,x]=mf(h,!0),A.addEventListener("progress",S)),d&&A.upload&&([v,w]=mf(d),A.upload.addEventListener("progress",v),A.upload.addEventListener("loadend",w)),(l.cancelToken||l.signal)&&(m=R=>{A&&(i(!R||R.type?new yl(null,e,A):R),A.abort(),A=null)},l.cancelToken&&l.cancelToken.subscribe(m),l.signal&&(l.signal.aborted?m():l.signal.addEventListener("abort",m)));const _=C9(l.url);if(_&&tn.protocols.indexOf(_)===-1){i(new Oe("Unsupported protocol "+_+":",Oe.ERR_BAD_REQUEST,e));return}A.send(s||null)})},j9=(e,t)=>{const{length:a}=e=e?e.filter(Boolean):[];if(t||a){let i=new AbortController,l;const s=function(h){if(!l){l=!0,f();const m=h instanceof Error?h:this.reason;i.abort(m instanceof Oe?m:new yl(m instanceof Error?m.message:m))}};let u=t&&setTimeout(()=>{u=null,s(new Oe(`timeout ${t} of ms exceeded`,Oe.ETIMEDOUT))},t);const f=()=>{e&&(u&&clearTimeout(u),u=null,e.forEach(h=>{h.unsubscribe?h.unsubscribe(s):h.removeEventListener("abort",s)}),e=null)};e.forEach(h=>h.addEventListener("abort",s));const{signal:d}=i;return d.unsubscribe=()=>ee.asap(f),d}},k9=function*(e,t){let a=e.byteLength;if(a<t){yield e;return}let i=0,l;for(;i<a;)l=i+t,yield e.slice(i,l),i=l},N9=async function*(e,t){for await(const a of z9(e))yield*k9(a,t)},z9=async function*(e){if(e[Symbol.asyncIterator]){yield*e;return}const t=e.getReader();try{for(;;){const{done:a,value:i}=await t.read();if(a)break;yield i}}finally{await t.cancel()}},xx=(e,t,a,i)=>{const l=N9(e,t);let s=0,u,f=d=>{u||(u=!0,i&&i(d))};return new ReadableStream({async pull(d){try{const{done:h,value:m}=await l.next();if(h){f(),d.close();return}let v=m.byteLength;if(a){let S=s+=v;a(S)}d.enqueue(new Uint8Array(m))}catch(h){throw f(h),h}},cancel(d){return f(d),l.return()}},{highWaterMark:2})},Sx=64*1024,{isFunction:Nu}=ee,D9=(({Request:e,Response:t})=>({Request:e,Response:t}))(ee.global),{ReadableStream:Cx,TextEncoder:Ex}=ee.global,wx=(e,...t)=>{try{return!!e(...t)}catch{return!1}},M9=e=>{e=ee.merge.call({skipUndefined:!0},D9,e);const{fetch:t,Request:a,Response:i}=e,l=t?Nu(t):typeof fetch=="function",s=Nu(a),u=Nu(i);if(!l)return!1;const f=l&&Nu(Cx),d=l&&(typeof Ex=="function"?(x=>b=>x.encode(b))(new Ex):async x=>new Uint8Array(await new a(x).arrayBuffer())),h=s&&f&&wx(()=>{let x=!1;const b=new a(tn.origin,{body:new Cx,method:"POST",get duplex(){return x=!0,"half"}}).headers.has("Content-Type");return x&&!b}),m=u&&f&&wx(()=>ee.isReadableStream(new i("").body)),v={stream:m&&(x=>x.body)};l&&["text","arrayBuffer","blob","formData","stream"].forEach(x=>{!v[x]&&(v[x]=(b,A)=>{let j=b&&b[x];if(j)return j.call(b);throw new Oe(`Response type '${x}' is not supported`,Oe.ERR_NOT_SUPPORT,A)})});const S=async x=>{if(x==null)return 0;if(ee.isBlob(x))return x.size;if(ee.isSpecCompliantForm(x))return(await new a(tn.origin,{method:"POST",body:x}).arrayBuffer()).byteLength;if(ee.isArrayBufferView(x)||ee.isArrayBuffer(x))return x.byteLength;if(ee.isURLSearchParams(x)&&(x=x+""),ee.isString(x))return(await d(x)).byteLength},w=async(x,b)=>{const A=ee.toFiniteNumber(x.getContentLength());return A??S(b)};return async x=>{let{url:b,method:A,data:j,signal:_,cancelToken:R,timeout:N,onDownloadProgress:T,onUploadProgress:z,responseType:D,headers:V,withCredentials:Q="same-origin",fetchOptions:Z}=j3(x),q=t||fetch;D=D?(D+"").toLowerCase():"text";let $=j9([_,R&&R.toAbortSignal()],N),H=null;const U=$&&$.unsubscribe&&(()=>{$.unsubscribe()});let Y;try{if(z&&h&&A!=="get"&&A!=="head"&&(Y=await w(V,j))!==0){let M=new a(b,{method:"POST",body:j,duplex:"half"}),G;if(ee.isFormData(j)&&(G=M.headers.get("content-type"))&&V.setContentType(G),M.body){const[le,ce]=vx(Y,mf(yx(z)));j=xx(M.body,Sx,le,ce)}}ee.isString(Q)||(Q=Q?"include":"omit");const k=s&&"credentials"in a.prototype,P={...Z,signal:$,method:A.toUpperCase(),headers:V.normalize().toJSON(),body:j,duplex:"half",credentials:k?Q:void 0};H=s&&new a(b,P);let J=await(s?q(H,Z):q(b,P));const ue=m&&(D==="stream"||D==="response");if(m&&(T||ue&&U)){const M={};["status","statusText","headers"].forEach(de=>{M[de]=J[de]});const G=ee.toFiniteNumber(J.headers.get("content-length")),[le,ce]=T&&vx(G,mf(yx(T),!0))||[];J=new i(xx(J.body,Sx,le,()=>{ce&&ce(),U&&U()}),M)}D=D||"text";let ye=await v[ee.findKey(v,D)||"text"](J,x);return!ue&&U&&U(),await new Promise((M,G)=>{O3(M,G,{data:ye,headers:Cn.from(J.headers),status:J.status,statusText:J.statusText,config:x,request:H})})}catch(k){throw U&&U(),k&&k.name==="TypeError"&&/Load failed|fetch/i.test(k.message)?Object.assign(new Oe("Network Error",Oe.ERR_NETWORK,x,H),{cause:k.cause||k}):Oe.from(k,k&&k.code,x,H)}}},B9=new Map,k3=e=>{let t=e&&e.env||{};const{fetch:a,Request:i,Response:l}=t,s=[i,l,a];let u=s.length,f=u,d,h,m=B9;for(;f--;)d=s[f],h=m.get(d),h===void 0&&m.set(d,h=f?new Map:M9(t)),m=h;return h};k3();const lg={http:e9,xhr:_9,fetch:{get:k3}};ee.forEach(lg,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const Ax=e=>`- ${e}`,L9=e=>ee.isFunction(e)||e===null||e===!1;function P9(e,t){e=ee.isArray(e)?e:[e];const{length:a}=e;let i,l;const s={};for(let u=0;u<a;u++){i=e[u];let f;if(l=i,!L9(i)&&(l=lg[(f=String(i)).toLowerCase()],l===void 0))throw new Oe(`Unknown adapter '${f}'`);if(l&&(ee.isFunction(l)||(l=l.get(t))))break;s[f||"#"+u]=l}if(!l){const u=Object.entries(s).map(([d,h])=>`adapter ${d} `+(h===!1?"is not supported by the environment":"is not available in the build"));let f=a?u.length>1?`since :
580
+ `+u.map(Ax).join(`
581
+ `):" "+Ax(u[0]):"as no adapter specified";throw new Oe("There is no suitable adapter to dispatch the request "+f,"ERR_NOT_SUPPORT")}return l}const N3={getAdapter:P9,adapters:lg};function Jh(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new yl(null,e)}function Rx(e){return Jh(e),e.headers=Cn.from(e.headers),e.data=Qh.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),N3.getAdapter(e.adapter||pc.adapter,e)(e).then(function(i){return Jh(e),i.data=Qh.call(e,e.transformResponse,i),i.headers=Cn.from(i.headers),i},function(i){return $3(i)||(Jh(e),i&&i.response&&(i.response.data=Qh.call(e,e.transformResponse,i.response),i.response.headers=Cn.from(i.response.headers))),Promise.reject(i)})}const z3="1.13.2",id={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{id[e]=function(i){return typeof i===e||"a"+(t<1?"n ":" ")+e}});const Tx={};id.transitional=function(t,a,i){function l(s,u){return"[Axios v"+z3+"] Transitional option '"+s+"'"+u+(i?". "+i:"")}return(s,u,f)=>{if(t===!1)throw new Oe(l(u," has been removed"+(a?" in "+a:"")),Oe.ERR_DEPRECATED);return a&&!Tx[u]&&(Tx[u]=!0,console.warn(l(u," has been deprecated since v"+a+" and will be removed in the near future"))),t?t(s,u,f):!0}};id.spelling=function(t){return(a,i)=>(console.warn(`${i} is likely a misspelling of ${t}`),!0)};function I9(e,t,a){if(typeof e!="object")throw new Oe("options must be an object",Oe.ERR_BAD_OPTION_VALUE);const i=Object.keys(e);let l=i.length;for(;l-- >0;){const s=i[l],u=t[s];if(u){const f=e[s],d=f===void 0||u(f,s,e);if(d!==!0)throw new Oe("option "+s+" must be "+d,Oe.ERR_BAD_OPTION_VALUE);continue}if(a!==!0)throw new Oe("Unknown option "+s,Oe.ERR_BAD_OPTION)}}const Xu={assertOptions:I9,validators:id},Nr=Xu.validators;let Fi=class{constructor(t){this.defaults=t||{},this.interceptors={request:new mx,response:new mx}}async request(t,a){try{return await this._request(t,a)}catch(i){if(i instanceof Error){let l={};Error.captureStackTrace?Error.captureStackTrace(l):l=new Error;const s=l.stack?l.stack.replace(/^.+\n/,""):"";try{i.stack?s&&!String(i.stack).endsWith(s.replace(/^.+\n.+\n/,""))&&(i.stack+=`
582
+ `+s):i.stack=s}catch{}}throw i}}_request(t,a){typeof t=="string"?(a=a||{},a.url=t):a=t||{},a=Ki(this.defaults,a);const{transitional:i,paramsSerializer:l,headers:s}=a;i!==void 0&&Xu.assertOptions(i,{silentJSONParsing:Nr.transitional(Nr.boolean),forcedJSONParsing:Nr.transitional(Nr.boolean),clarifyTimeoutError:Nr.transitional(Nr.boolean)},!1),l!=null&&(ee.isFunction(l)?a.paramsSerializer={serialize:l}:Xu.assertOptions(l,{encode:Nr.function,serialize:Nr.function},!0)),a.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls!==void 0?a.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:a.allowAbsoluteUrls=!0),Xu.assertOptions(a,{baseUrl:Nr.spelling("baseURL"),withXsrfToken:Nr.spelling("withXSRFToken")},!0),a.method=(a.method||this.defaults.method||"get").toLowerCase();let u=s&&ee.merge(s.common,s[a.method]);s&&ee.forEach(["delete","get","head","post","put","patch","common"],x=>{delete s[x]}),a.headers=Cn.concat(u,s);const f=[];let d=!0;this.interceptors.request.forEach(function(b){typeof b.runWhen=="function"&&b.runWhen(a)===!1||(d=d&&b.synchronous,f.unshift(b.fulfilled,b.rejected))});const h=[];this.interceptors.response.forEach(function(b){h.push(b.fulfilled,b.rejected)});let m,v=0,S;if(!d){const x=[Rx.bind(this),void 0];for(x.unshift(...f),x.push(...h),S=x.length,m=Promise.resolve(a);v<S;)m=m.then(x[v++],x[v++]);return m}S=f.length;let w=a;for(;v<S;){const x=f[v++],b=f[v++];try{w=x(w)}catch(A){b.call(this,A);break}}try{m=Rx.call(this,w)}catch(x){return Promise.reject(x)}for(v=0,S=h.length;v<S;)m=m.then(h[v++],h[v++]);return m}getUri(t){t=Ki(this.defaults,t);const a=_3(t.baseURL,t.url,t.allowAbsoluteUrls);return A3(a,t.params,t.paramsSerializer)}};ee.forEach(["delete","get","head","options"],function(t){Fi.prototype[t]=function(a,i){return this.request(Ki(i||{},{method:t,url:a,data:(i||{}).data}))}});ee.forEach(["post","put","patch"],function(t){function a(i){return function(s,u,f){return this.request(Ki(f||{},{method:t,headers:i?{"Content-Type":"multipart/form-data"}:{},url:s,data:u}))}}Fi.prototype[t]=a(),Fi.prototype[t+"Form"]=a(!0)});let H9=class D3{constructor(t){if(typeof t!="function")throw new TypeError("executor must be a function.");let a;this.promise=new Promise(function(s){a=s});const i=this;this.promise.then(l=>{if(!i._listeners)return;let s=i._listeners.length;for(;s-- >0;)i._listeners[s](l);i._listeners=null}),this.promise.then=l=>{let s;const u=new Promise(f=>{i.subscribe(f),s=f}).then(l);return u.cancel=function(){i.unsubscribe(s)},u},t(function(s,u,f){i.reason||(i.reason=new yl(s,u,f),a(i.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const a=this._listeners.indexOf(t);a!==-1&&this._listeners.splice(a,1)}toAbortSignal(){const t=new AbortController,a=i=>{t.abort(i)};return this.subscribe(a),t.signal.unsubscribe=()=>this.unsubscribe(a),t.signal}static source(){let t;return{token:new D3(function(l){t=l}),cancel:t}}};function U9(e){return function(a){return e.apply(null,a)}}function F9(e){return ee.isObject(e)&&e.isAxiosError===!0}const Vm={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511,WebServerIsDown:521,ConnectionTimedOut:522,OriginIsUnreachable:523,TimeoutOccurred:524,SslHandshakeFailed:525,InvalidSslCertificate:526};Object.entries(Vm).forEach(([e,t])=>{Vm[t]=e});function M3(e){const t=new Fi(e),a=p3(Fi.prototype.request,t);return ee.extend(a,Fi.prototype,t,{allOwnKeys:!0}),ee.extend(a,t,null,{allOwnKeys:!0}),a.create=function(l){return M3(Ki(e,l))},a}const He=M3(pc);He.Axios=Fi;He.CanceledError=yl;He.CancelToken=H9;He.isCancel=$3;He.VERSION=z3;He.toFormData=ad;He.AxiosError=Oe;He.Cancel=He.CanceledError;He.all=function(t){return Promise.all(t)};He.spread=U9;He.isAxiosError=F9;He.mergeConfig=Ki;He.AxiosHeaders=Cn;He.formToJSON=e=>T3(ee.isHTMLForm(e)?new FormData(e):e);He.getAdapter=N3.getAdapter;He.HttpStatusCode=Vm;He.default=He;const{Axios:tH,AxiosError:B3,CanceledError:nH,isCancel:rH,CancelToken:aH,VERSION:iH,all:oH,Cancel:lH,isAxiosError:sH,spread:cH,toFormData:uH,AxiosHeaders:fH,HttpStatusCode:dH,formToJSON:pH,getAdapter:hH,mergeConfig:mH}=He;async function Pn(){return(await He.get("/api/config")).data}function Aa(e){const[t,a]=C.useState(!1),[i,l]=C.useState(!1),[s]=Ef(),[u,f]=C.useState(""),[d,h]=C.useState(),m=sn();C.useEffect(()=>{if(t===!0){setTimeout(()=>{l(!0)},15);return}l(!1)},[t]),C.useEffect(()=>{let S=s.get("term");S&&f(S)},[s]),C.useEffect(()=>{Pn().then(S=>{h(S.version)})},[]);const v=(S,w)=>{if(w==="Enter"){let x=document?.getElementById(S).value;e.mode==="TV"?m(`/home_cinema/watch_tv_shows?query=${x}`):location.href=`/home_cinema/search?term=${x}`}};return y.jsx(y.Fragment,{children:y.jsx("div",{className:"w-full mt-10",children:y.jsxs("div",{className:"flex justify-between ps-8 pr-8 sm:ps-32 sm:pr-32 "+(t?"!justify-center":""),children:[!t&&y.jsx(Ni,{to:e.mode?e.mode==="Movies"?"/home_cinema/watch":"/home_cinema/watch_tv_shows":"/home_cinema/",children:y.jsx("div",{children:y.jsxs("div",{className:"flex items-center gap-4",children:[y.jsx("img",{src:hM,className:"lg:h-12 h-9"}),y.jsxs("h1",{className:"lg:text-xl font-black",children:["Home Cinema",y.jsx("p",{title:`Version : ${d?.semVer}`,className:"text-sm font-semibold p-0 text-green-600 rounded-full",children:d?.name})]})]})})}),y.jsxs("div",{className:"flex justify-center xl:gap-20 gap-6 items-center text-base",children:[y.jsxs(Ni,{to:e.mode==="Movies"||!e.mode?"/home_cinema/watch_tv_shows":"/home_cinema/watch",className:"font-bold lg:block hidden",children:[e.mode==="TV"&&y.jsx(y.Fragment,{children:"Movies"}),(e.mode==="Movies"||!e.mode)&&y.jsx(y.Fragment,{children:"TV Shows"})]}),y.jsx(Ni,{to:"/home_cinema/downloads",className:"font-bold lg:block hidden",children:"Downloads"}),y.jsx(Ni,{to:"/home_cinema/torrents",className:"font-bold lg:block hidden",children:"Torrents"}),y.jsx(Ni,{to:"/home_cinema/saved",className:"font-bold lg:block hidden",children:"Saved"}),y.jsx("div",{className:"md:block hidden",children:y.jsx(rf,{value:u,id:"searchInp1",className:"!w-[150px]",onKeyUp:S=>v("searchInp1",S.key),onChange:S=>{f(S.value)},Icon:b6,placeholder:"Search"})}),y.jsx("div",{className:"lg:hidden",children:y.jsx(pM,{mode:e.mode})}),t&&y.jsx("div",{className:"",children:y.jsx(rf,{value:u,onChange:S=>{f(S.value)},id:"searchInp",onKeyUp:S=>v("searchInp",S.key),onClickIcon:()=>a(!1),Icon:h0,placeholder:"Search",className:"w-0 duration-300 "+(i?"!w-[225px]":"w-0")})})]})]})})})}const V9="/assets/home_img-CbOFmeaT.webp";function Xi(e){return y.jsx(y.Fragment,{children:y.jsx("button",{...e,className:"bg-white rounded-full font-bold ps-10 pr-10 pt-2 pb-2 md:text-2xl md:pt-3 md:pb-3 md:ps-20 md:pr-20 text-black cursor-pointer "+e.className,children:e.children})})}function q9(){return y.jsxs(y.Fragment,{children:[y.jsx(Aa,{}),y.jsxs("div",{className:"flex justify-center xl:justify-between md:ps-32 md:pr-32 relative mt-28",children:[y.jsx("div",{className:"xl:z-30 z-10 absolute rounded-full duration-[2000ms] bg-[#000000] xl:bg-[#ffffffa9] opacity-40 xl:opacity-20 hover:opacity-15 w-[200px] h-[200px] sm:w-[500px] sm:h-[500px] blur-[253px] pointer-events-none lg:top-[75px] lg:left-[300px]"}),y.jsxs("div",{className:"z-20 md:mt-[15%] mt-[30%] translate-y-[-30%]",children:[y.jsxs("h1",{className:"md:text-7xl text-5xl font-black text-white",children:["Watch Movies ",y.jsx("br",{})," In Your Home"]}),y.jsxs("div",{className:"flex gap-5 mt-16",children:[y.jsx(Xi,{className:"sm:text-lg text-sm",onClick:()=>{location.href="/home_cinema/watch"},children:"Movies"}),y.jsx(Xi,{onClick:()=>{location.href="/home_cinema/watch_tv_shows"},className:"!bg-transparent border-4 text-white border-white sm:text-lg text-sm",children:"TV Shows"})]})]}),y.jsx("div",{className:"md:mr-10 xl:relative sm:left-auto sm:top-auto z-0 left-0 top-20 absolute",children:y.jsx("img",{src:V9,className:"h-[588px]",alt:""})})]})]})}const Y9=" https://yts.bz/api/v2/list_movies.json";function ws(e){e.fetchWhenCall===void 0&&(e.fetchWhenCall=!0);const[t,a]=C.useState(),[i,l]=C.useState(),[s,u]=C.useState(!0),f=async h=>{const m=await He.get(h);if(m.status==200&&m.data.status==="ok"){if(m.data.data.movie_count==0){l("movie not found :(");return}let v=m.data.data.movies;a([]);for(let S of v)a(w=>{const x={id:S.id,title:S.title,year:S.year,rating:S.rating,runtime:S.runtime,medium_cover_image:S.medium_cover_image};return w?[...w,x]:[x]})}else l(m.data.error)},d=h=>{const m=new URL(Y9);if(h)for(let v of h)m.searchParams.set(v[0],v[1]);f(m.href).catch(v=>{typeof v.err=="string"?l(v.err):l("unexpected error while getting movies list")}).finally(()=>{u(!1)})};return e.fetchWhenCall&&C.useEffect(()=>{d(e.queries)},[]),{resp:t,isLoading:s,err:i,fetch:d}}var L3={prefix:"far",iconName:"bookmark",icon:[384,512,[128278,61591],"f02e","M0 64C0 28.7 28.7 0 64 0L320 0c35.3 0 64 28.7 64 64l0 417.1c0 25.6-28.5 40.8-49.8 26.6L192 412.8 49.8 507.7C28.5 521.9 0 506.6 0 481.1L0 64zM64 48c-8.8 0-16 7.2-16 16l0 387.2 117.4-78.2c16.1-10.7 37.1-10.7 53.2 0L336 451.2 336 64c0-8.8-7.2-16-16-16L64 48z"]};const qm=(e,t)=>t.some(a=>e instanceof a);let $x,Ox;function G9(){return $x||($x=[IDBDatabase,IDBObjectStore,IDBIndex,IDBCursor,IDBTransaction])}function W9(){return Ox||(Ox=[IDBCursor.prototype.advance,IDBCursor.prototype.continue,IDBCursor.prototype.continuePrimaryKey])}const Ym=new WeakMap,Zh=new WeakMap,od=new WeakMap;function K9(e){const t=new Promise((a,i)=>{const l=()=>{e.removeEventListener("success",s),e.removeEventListener("error",u)},s=()=>{a(Vi(e.result)),l()},u=()=>{i(e.error),l()};e.addEventListener("success",s),e.addEventListener("error",u)});return od.set(t,e),t}function X9(e){if(Ym.has(e))return;const t=new Promise((a,i)=>{const l=()=>{e.removeEventListener("complete",s),e.removeEventListener("error",u),e.removeEventListener("abort",u)},s=()=>{a(),l()},u=()=>{i(e.error||new DOMException("AbortError","AbortError")),l()};e.addEventListener("complete",s),e.addEventListener("error",u),e.addEventListener("abort",u)});Ym.set(e,t)}let Gm={get(e,t,a){if(e instanceof IDBTransaction){if(t==="done")return Ym.get(e);if(t==="store")return a.objectStoreNames[1]?void 0:a.objectStore(a.objectStoreNames[0])}return Vi(e[t])},set(e,t,a){return e[t]=a,!0},has(e,t){return e instanceof IDBTransaction&&(t==="done"||t==="store")?!0:t in e}};function P3(e){Gm=e(Gm)}function Q9(e){return W9().includes(e)?function(...t){return e.apply(Wm(this),t),Vi(this.request)}:function(...t){return Vi(e.apply(Wm(this),t))}}function J9(e){return typeof e=="function"?Q9(e):(e instanceof IDBTransaction&&X9(e),qm(e,G9())?new Proxy(e,Gm):e)}function Vi(e){if(e instanceof IDBRequest)return K9(e);if(Zh.has(e))return Zh.get(e);const t=J9(e);return t!==e&&(Zh.set(e,t),od.set(t,e)),t}const Wm=e=>od.get(e);function Z9(e,t,{blocked:a,upgrade:i,blocking:l,terminated:s}={}){const u=indexedDB.open(e,t),f=Vi(u);return i&&u.addEventListener("upgradeneeded",d=>{i(Vi(u.result),d.oldVersion,d.newVersion,Vi(u.transaction),d)}),a&&u.addEventListener("blocked",d=>a(d.oldVersion,d.newVersion,d)),f.then(d=>{s&&d.addEventListener("close",()=>s()),l&&d.addEventListener("versionchange",h=>l(h.oldVersion,h.newVersion,h))}).catch(()=>{}),f}const eB=["get","getKey","getAll","getAllKeys","count"],tB=["put","add","delete","clear"],em=new Map;function _x(e,t){if(!(e instanceof IDBDatabase&&!(t in e)&&typeof t=="string"))return;if(em.get(t))return em.get(t);const a=t.replace(/FromIndex$/,""),i=t!==a,l=tB.includes(a);if(!(a in(i?IDBIndex:IDBObjectStore).prototype)||!(l||eB.includes(a)))return;const s=async function(u,...f){const d=this.transaction(u,l?"readwrite":"readonly");let h=d.store;return i&&(h=h.index(f.shift())),(await Promise.all([h[a](...f),l&&d.done]))[0]};return em.set(t,s),s}P3(e=>({...e,get:(t,a,i)=>_x(t,a)||e.get(t,a,i),has:(t,a)=>!!_x(t,a)||e.has(t,a)}));const nB=["continue","continuePrimaryKey","advance"],jx={},Km=new WeakMap,I3=new WeakMap,rB={get(e,t){if(!nB.includes(t))return e[t];let a=jx[t];return a||(a=jx[t]=function(...i){Km.set(this,I3.get(this)[t](...i))}),a}};async function*aB(...e){let t=this;if(t instanceof IDBCursor||(t=await t.openCursor(...e)),!t)return;t=t;const a=new Proxy(t,rB);for(I3.set(a,t),od.set(a,Wm(t));t;)yield a,t=await(Km.get(a)||t.continue()),Km.delete(a)}function kx(e,t){return t===Symbol.asyncIterator&&qm(e,[IDBIndex,IDBObjectStore,IDBCursor])||t==="iterate"&&qm(e,[IDBIndex,IDBObjectStore])}P3(e=>({...e,get(t,a,i){return kx(t,a)?aB:e.get(t,a,i)},has(t,a){return kx(t,a)||e.has(t,a)}}));const Fn=Z9("data",1,{upgrade(e){e.createObjectStore("saved_movies",{keyPath:"id"}),e.createObjectStore("saved_tvshows",{keyPath:"id"}),e.createObjectStore("torrents",{keyPath:"infoHash"}),e.createObjectStore("downloads",{keyPath:"infoHash"})}});async function H3(e){(await Fn).put("saved_movies",e)}async function iB(){return await(await Fn).getAll("saved_movies")}async function U3(e){return await(await Fn).get("saved_movies",e)}async function F3(e){await(await Fn).delete("saved_movies",e)}async function V3(e){(await Fn).put("saved_tvshows",e)}async function oB(){return await(await Fn).getAll("saved_tvshows")}async function q3(e){return await(await Fn).get("saved_tvshows",e)}async function Y3(e){await(await Fn).delete("saved_tvshows",e)}async function G3(e){(await Fn).put("torrents",e)}async function lB(){return await(await Fn).getAll("torrents")}async function W3(e){return await(await Fn).get("torrents",e)}async function K3(e){await(await Fn).delete("torrents",e)}async function sB(e){(await Fn).put("downloads",e)}function bl({m:e,loading:t,to:a}){const[i,l]=C.useState(!1);return C.useEffect(()=>{e?.id&&U3(e.id).then(s=>{s&&l(!0)})},[]),y.jsxs(y.Fragment,{children:[!t&&e&&y.jsx("div",{className:"lg:w-[230px] rounded-xl overflow-hidden w-[115px] h-[172px] relative lg:h-[345px] shrink-0 cursor-pointer",style:{backgroundImage:`url("${e.medium_cover_image}")`,backgroundSize:"cover"},children:y.jsxs("div",{className:"w-full h-full backdrop-blur-sm opacity-0 hover:opacity-100 relative pt-10 bg-[#0000009c] duration-300",children:[y.jsx(xl,{saved:i,className:"!absolute top-2 left-2",onClick:async()=>{i?(await F3(e.id),l(!1)):(await H3(e),l(!0))}}),y.jsxs("div",{onClick:()=>{location.href=a||"/home_cinema/watch/"+e.id},children:[y.jsx("h1",{className:"text-center text-sm lg:text-lg mt-5 font-bold lg:overflow-auto overflow-hidden text-nowrap lg:text-wrap",children:e.title}),y.jsxs("div",{className:"flex flex-col-reverse gap-2 md:mt-5 justify-center items-center",children:[y.jsxs("h1",{className:"font-extrabold text-center text-sm lg:text-lg",children:[e.rating," / 10"," "]})," ",y.jsx("div",{children:y.jsx(Ne,{icon:O6,className:"h-3 lg:h-5"})})]}),y.jsxs("div",{className:"flex justify-center items-center gap-1 mt-5",children:[y.jsx(Ne,{icon:D6,className:"h-3 lg:h-5"}),y.jsxs("h1",{className:"text-sm lg:text-lg",children:[e.runtime," min"]})]})]})]})}),t&&y.jsx("div",{className:"lg:w-[230px] w-[115px] h-[172px] relative lg:h-[345px] shrink-0 loading-background"})]})}function xl({onClick:e,className:t,saved:a}){return y.jsxs("div",{onClick:e,className:"relative border-2 cursor-pointer duration-200 rounded-full w-8 h-8 flex justify-center items-center "+t+(a?" border-yellow-500 pop-animation":" border-white"),children:[y.jsx("div",{className:`${a?"w-5":"w-0"} h-[2px] duration-150 top-[13px] absolute rounded-full rotate-[30deg] bg-yellow-500`}),y.jsx(Ne,{icon:L3,color:`${a?"#eab308":"white"}`})]})}function cB(){const[e,t]=C.useState(!1),a=sn();return y.jsx(y.Fragment,{children:y.jsxs("div",{onClick:()=>a("/home_cinema/saved"),className:"lg:w-[230px] bg-[#080808] overflow-visible rounded-xl w-[115px] h-[172px] relative lg:h-[345px] shrink-0 cursor-pointer",children:[y.jsx("div",{className:"w-full absolute !z-10 h-full rounded-full blur-3xl duration-300 "+(e?"bg-[#212121e4]":"bg-[#141414cb]")}),y.jsxs("div",{onMouseOver:()=>t(!0),onMouseLeave:()=>t(!1),className:"flex h-full z-20 opacity-60 hover:opacity-100 duration-300 relative justify-center items-center flex-col",children:[y.jsx("div",{className:"border-2 border-white rounded-full lg:w-20 lg:h-20 w-10 h-10 flex justify-center items-center",children:y.jsx(Ne,{icon:L3,className:"lg:h-10! h-5!"})}),y.jsx("h1",{className:"mt-3 lg:text-lg text-[12px] font-bold",children:"See more saved"})]})]})})}function ld(){let e=[];for(let t=0;t<5;t++)e.push(y.jsx(bl,{loading:!0},t));return e}function tm({isLoading:e,err:t,resp:a,category:i,listID:l}){return y.jsx(y.Fragment,{children:y.jsxs("div",{className:"md:ps-28 md:pe-28 ps-10 pr-10",children:[y.jsx("h1",{className:"font-extrabold text-xl md:text-4xl mb-10 md:mb-20 mt-7 md:mt-20",children:i}),e&&!t&&y.jsx(gf,{listID:"",children:ld()}),!e&&!t&&a&&y.jsx(gf,{listID:l,children:y.jsx(y.Fragment,{children:a.map((s,u)=>y.jsx(bl,{m:s},u))})})]})})}function gf({children:e,listID:t}){return y.jsx(y.Fragment,{children:y.jsxs("div",{className:"relative overflow-visible md:ps-10",children:[y.jsx("div",{onClick:()=>{let a=document.getElementById(t);a?.scroll({left:a.scrollLeft-300})},className:"absolute hidden md:block w-fit left-[-40px] cursor-pointer top-[50%] translate-y-[-50%] bg-[#444] p-5 z-30 rounded-md",children:y.jsx(Ne,{icon:z6,className:"text-white"})}),y.jsx("div",{onClick:()=>{let a=document.getElementById(t);a?.scroll({left:a.scrollLeft+300})},className:"absolute hidden md:block w-fit right-[-40px] cursor-pointer top-[50%] translate-y-[-50%] bg-[#444] p-5 z-30 rounded-md",children:y.jsx(Ne,{icon:v6,className:"text-white"})}),y.jsx("div",{id:t,className:"flex gap-8 lg:gap-16 overflow-x-scroll whitespace-nowrap horz-list relative",children:e})]})})}function uB({isLoading:e,err:t,resp:a,category:i,listID:l,endComponent:s}){const u=()=>{if(!a)return[];const f=[],d=3;for(let h=0;h<=d&&h<a.length;h++)f.push(y.jsx(bl,{m:a[h]},h)),(h==d||h==a.length-1)&&f.push(s);return f};return y.jsx(y.Fragment,{children:y.jsxs("div",{className:"md:ps-28 md:pe-28 ps-10 pr-10 rounded-md",children:[y.jsx("h1",{className:"font-extrabold text-xl md:text-4xl mb-10 md:mb-20 mt-7 md:mt-20",children:i}),e&&!t&&y.jsx(gf,{listID:"",children:ld()}),!e&&!t&&a&&y.jsx(gf,{listID:l,children:y.jsx(y.Fragment,{children:u()})})]})})}function X3(){const[e,t]=C.useState();return C.useEffect(()=>{iB().then(a=>{t(a)})},[]),e}function fB(){const e=X3(),{resp:t,err:a,isLoading:i}=ws({queries:[["sort_by","like_count"]]}),{resp:l,err:s,isLoading:u}=ws({queries:[["sort_by","date_added"]]}),{resp:f,err:d,isLoading:h}=ws({queries:[["genre","Action"],["sort_by","rating"]]}),{resp:m,err:v,isLoading:S}=ws({queries:[["sort_by","download_count"]]});return y.jsxs(y.Fragment,{children:[y.jsx(Aa,{mode:"Movies"}),a&&y.jsxs("div",{className:"bg-[#ff38384f] rounded-md border-2 border-red-600 p-4 flex items-center gap-3",children:[y.jsx(Ne,{icon:w6}),y.jsxs("h1",{children:[" ",a," "]})]}),e&&e.length>0&&y.jsx(uB,{resp:e,err:"",isLoading:!1,listID:"saved-mv",category:"Saved Movies",endComponent:y.jsx(cB,{})}),y.jsx(tm,{resp:t,err:a,isLoading:i,listID:"best",category:"Best Movies"}),y.jsx(tm,{resp:l,err:s,isLoading:u,listID:"new",category:"New Movies"}),y.jsx(tm,{resp:f,err:d,isLoading:h,listID:"action",category:"Action"}),y.jsxs("div",{className:"md:ps-28 md:pe-28 ps-2",children:[y.jsx("h1",{className:"font-extrabold text-xl md:text-4xl mb-10 md:mb-20 mt-7 md:mt-20",children:"Movies you may like"}),y.jsx("div",{className:"flex flex-wrap justify-center gap-7 md:gap-16 lg:mt-20 ",children:!S&&!v&&y.jsx(y.Fragment,{children:m?.map((w,x)=>y.jsx(bl,{m:w},x))})})]})]})}function dB(){const[e]=Ef(),[t]=C.useState(""),{resp:a,err:i,isLoading:l,fetch:s}=ws({queries:[["query_term",t]],fetchWhenCall:!1});return C.useEffect(()=>{let u=e.get("term");u||(u=""),s([["query_term",u],["sort_by","like_count"]])},[e]),y.jsxs(y.Fragment,{children:[y.jsx(Aa,{mode:"Movies"}),y.jsxs("div",{className:"md:ps-28 md:pe-28 ps-3 pr-3 mt-10 md:mt-20 mb-20",children:[y.jsx("h1",{className:"md:text-4xl text-xl mb-10 md:mb-20 font-extrabold",children:"Search results"}),i&&y.jsxs("h1",{className:"text-red-500",children:["Error when searching : ",i]}),l&&!i&&y.jsx(y.Fragment,{children:y.jsxs("div",{className:"flex gap-5 justify-center",children:[" ",ld()," "]})}),!l&&!i&&y.jsx(y.Fragment,{children:y.jsx("div",{className:"flex gap-4 md:gap-16 flex-wrap justify-center",children:a?.map((u,f)=>y.jsx(bl,{m:u},f))})})]})]})}const pB=" https://yts.bz/api/v2/movie_details.json";function hB(e){const[t,a]=C.useState(),[i,l]=C.useState(),[s,u]=C.useState(!0),f=async h=>{const m=await He.get(h);if(m.status===200&&m.data.status==="ok"){let v=m.data.data.movie;a(v)}else{if(m.data.error==="error"){l(m.data.status_message);return}l("unexpected error while getting movie details")}},d=()=>{u(!0);const h=new URL(pB);h.searchParams.set("movie_id",e),f(h.href).catch(m=>{l(m)}).finally(()=>u(!1))};return C.useEffect(()=>{d()},[]),{resp:t,err:i,isLoading:s,fetch:d}}function mB(){const e=c0(),{resp:t,isLoading:a}=hB(e.id);return y.jsx(gB,{resp:t,isLoading:a})}function gB({resp:e,isLoading:t}){const[a,i]=C.useState(!1),l=d=>{const h=new URL(`/home_cinema/torrents/${e?.torrents[d].hash}/files`,location.origin);return h.searchParams.set("seeds",`${e?.torrents[d].seeds}`),h.searchParams.set("about",`${e?.torrents[d].url}`),h.searchParams.set("name",`${e?.title} (${e?.year}) [${e?.torrents[d].quality}] [YTS]`),h.searchParams.set("provider","YTS"),h.href},[s,u]=C.useState(!1);C.useEffect(()=>{e?.id&&U3(e.id).then(d=>{d&&u(!0)})},[e]);const f=sn();return y.jsxs(y.Fragment,{children:[y.jsx(Aa,{}),y.jsxs("div",{className:"xl:ps-28 xl:pr-28 md:ps-8 md:pr-8 sm:ps-0 sm:pr-0 ps-3 pr-3 md:mt-20 mt-10",children:[y.jsx("div",{className:"md:mb-10 mb-10 cursor-pointer bg-white rounded-full h-10 w-10 flex justify-center items-center",onClick:()=>{f(-1)},children:y.jsx(Ne,{className:"h-5! font-bold text-black",icon:m0})}),y.jsxs("div",{className:"flex items-center md:items-start flex-col-reverse md:flex-row md:gap-10 flex-wrap md:justify-start justify-center md:flex-nowrap",children:[y.jsx("div",{className:"blur-[100px] absolute z-0",children:y.jsx("img",{src:e?.medium_cover_image,alt:""})}),y.jsx("div",{className:"z-20 h-[345px] w-[230px] rounded-lg md:relative absolute top-[30%]"+(t?" loading-background relative":""),style:t?{}:{backgroundImage:`url(${e?.medium_cover_image})`,backgroundSize:"cover"},children:y.jsx("div",{className:"rounded-lg bg-gradient-to-t from-[#000000] to-[#00000091] w-full h-full z-30 block md:hidden"})}),!t&&y.jsxs("div",{className:"lg:text-lg flex flex-col gap-3 z-20",children:[y.jsxs("div",{className:"flex sm:flex-row flex-col sm:items-center gap-3",children:[y.jsxs("h1",{className:"text-3xl font-extrabold"+(t?" loading-background w-80 h-5":""),children:[e?.title," ",e?.year?`(${e.year})`:""]}),y.jsx(xl,{onClick:async()=>{if(!s&&e)await H3({id:e?.id,title:e?.title,year:e.year,rating:e.rating,medium_cover_image:e.medium_cover_image,runtime:e.runtime?.toString()}),u(!0);else{if(!e)return;await F3(e?.id),u(!1)}},saved:s})]}),y.jsx("p",{className:"xl:max-w-[1000px] lg:max-w-[700px] max-w-[500px] xl:text-[16px] text-sm",children:e?.description_intro}),y.jsxs("p",{className:t?" loading-background w-50 h-5":"",children:[t?"":"Genres :"," ",e?.genres?.join(" / ")]}),y.jsxs("div",{className:"flex gap-5 flex-wrap "+(t?" loading-background w-60 h-5":""),children:[y.jsx("p",{children:"Available in : "}),e?.torrents.map((d,h)=>y.jsx("div",{className:"lg:text-base text-sm h-fit border-[1px] border-white ps-2 pr-2 cursor-pointer",onClick:()=>{d.quality==="2160p"&&(location.href=l(h)),location.href=l(h)},children:y.jsxs("p",{className:d.quality==="2160p"?"text-yellow-500":"",children:[d.quality,"",d.video_codec==="x265"?y.jsxs("span",{className:"text-green-600",children:[".",d.video_codec]}):"",d.type!="bluray"?"."+d.type:""]})},h))]}),y.jsxs("p",{children:["Rating : ",e?.rating]}),y.jsxs("p",{children:["Duration : ",Math.floor(e?.runtime/60),"h"," ",e?.runtime-Math.floor(e?.runtime/60)*60,"min"]}),y.jsxs("div",{className:"flex gap-5",children:[y.jsx(Xi,{className:"md:text-xl text-lg",onClick:()=>{i(!a)},children:"Watch"}),y.jsx(Xi,{onClick:()=>{location.href="https://www.youtube.com/watch?v="+e?.yt_trailer_code},className:"md:text-xl text-lg",children:"Trailer"})]})]}),t&&y.jsxs("div",{className:"flex flex-col gap-5",children:[y.jsx("div",{className:" loading-background w-80 h-5 "}),y.jsx("div",{className:" loading-background w-60 h-5 "}),y.jsx("div",{className:" loading-background w-70 h-5 "}),y.jsx("div",{className:" loading-background w-30 h-5 "}),y.jsx("div",{className:" loading-background w-60 h-10 mt-15"})]})]})]}),a&&y.jsxs(y.Fragment,{children:[y.jsx("div",{onClick:()=>i(!1),className:"w-full h-full bg-[#000000c0] absolute z-40 top-0 left-0"}),y.jsxs("div",{className:"h-[80vh] xl:w-auto w-[90%] overflow-y-scroll fixed p-3 md:p-10 bg-[#0f0f0f] top-[50%] z-50 left-[50%] translate-x-[-50%] translate-y-[-50%] rounded-md border-2 border-white",children:[y.jsx("div",{className:"ms-3 mb-5 mt-5 cursor-pointer",onClick:()=>{i(!1)},children:y.jsx(Ne,{icon:h0})}),e?.torrents.map((d,h)=>y.jsxs("div",{className:"grid grid-cols-12 items-center mb-5 gap-3 hover:bg-[#b4b4b43e] p-3 duration-100 rounded-md cursor-pointer",children:[y.jsxs("div",{className:"col-span-9",onClick:()=>{location.href=l(h)},children:[y.jsx("h1",{className:"text-2xl col-span-6",children:d.quality}),y.jsxs("h3",{className:"col-span-3",children:[d.type,"",d.video_codec==="x265"?y.jsxs("span",{className:"text-green-600",children:[".",d.video_codec]}):""]})]}),y.jsx("div",{className:"flex gap-3 items-center justify-center col-span-3 bg-[#202020] p-2 rounded-md",children:y.jsx("h6",{className:"col-span-1 text-sm",children:d.size})})]},h))]})]})]})}function vB(){return y.jsx(y.Fragment,{children:y.jsx("h1",{className:"text-xl font-bold",children:"Sorry this page is deleted. You can use an external video player to play the video."})})}function yB(e){const[t,a]=C.useState(),[i,l]=C.useState(),[s,u]=C.useState(!1),f=async h=>{const m=new URL("/api/tv_shows",location.origin);return m.searchParams.set("page",h),(await He.get(m.href)).data};return{resp:t,err:i,isLoading:s,fetch:()=>{u(!0),f(e.page).then(h=>{a(h)}).catch(h=>{if(h instanceof B3){l(h.response?.data.error);return}l(h.message)}).finally(()=>{u(!1)})}}}function Xm({show:e,to:t}){const a=sn(),[i,l]=C.useState(!1);return C.useEffect(()=>{q3(e.id).then(s=>{s&&l(!0)})},[]),y.jsx(y.Fragment,{children:y.jsx("div",{style:{backgroundImage:`url("https://media.themoviedb.org/t/p/w300_and_h450_bestv2${e.poster_path})`},className:"lg:w-[230px] duration-500 ease-out tv_show w-[115px] h-[172px] relative lg:h-[345px] shrink-0 cursor-pointer rounded-md",children:y.jsxs("div",{className:" opacity-0 hover:opacity-100 duration-300 bg-[#000000a3] flex items-center h-full justify-center",children:[y.jsx(xl,{onClick:async()=>{i?(await Y3(e.id),l(!1)):(await V3(e),l(!0))},saved:i,className:"absolute! md:top-2 top-0 left-0 md:left-2 md:scale-100! scale-75"}),y.jsxs("div",{onClick:()=>{a(t||"/home_cinema/tv_shows/"+e.id)},className:"flex mt-7 flex-col gap-5 h-full items-center justify-center",children:[y.jsx("h1",{className:"text-center font-bold md:text-base text-sm lg:text-xl",children:e.name}),y.jsxs("h3",{className:"lg:text-base text-center",children:["Date : ",e.first_air_date]}),y.jsxs("h3",{children:["Rating : ",e.vote_average]})]})]})})})}const bB="/api/tv_shows/search/";function xB(){const[e,t]=C.useState(),[a,i]=C.useState(!1),[l,s]=C.useState(),u=async(d,h)=>{await Pn();const m=new URL(bB,location.origin);return m.searchParams.set("query",d),m.searchParams.set("page",h),(await He.get(m.href)).data};return{resp:e,isLoading:a,err:l,fetch:(d,h)=>{i(!0),u(d,h).then(m=>{t(m)}).catch(m=>{s(m)}).finally(()=>{i(!1)})}}}function ki({page:e,focus:t,setSearchParams:a,query:i}){return y.jsx("div",{onClick:()=>{a([["page",e],["query",i||""]])},className:"rounded-full text-black w-7 h-7 flex items-center justify-center cursor-pointer "+(t?"bg-white":""),children:y.jsx("h1",{className:"text-center font-bold "+(t?"text-black":"text-white"),children:e})})}function SB({page:e,setSearchParams:t,pageCount:a,query:i}){return y.jsxs("div",{className:"flex justify-center gap-1 mt-3",children:[y.jsx("button",{className:"mr-3",onClick:()=>{+e-1<1||t([["page",`${+e-1}`],["query",i||""]])},children:"Previous"}),+e-60>0&&y.jsxs(y.Fragment,{children:[y.jsx(ki,{query:i,setSearchParams:t,page:`${+e-60}`}),y.jsx("h1",{children:"..."})]}),+e-2>0&&y.jsx(ki,{query:i,setSearchParams:t,page:`${+e-2}`}),+e-1>0&&y.jsx(ki,{query:i,setSearchParams:t,page:`${+e-1}`}),y.jsx(ki,{query:i,setSearchParams:t,page:e,focus:!0}),+e+1<=(a||500)&&y.jsx(y.Fragment,{children:y.jsx(ki,{query:i,setSearchParams:t,page:`${+e+1}`})}),+e+2<=(a||500)&&y.jsx(y.Fragment,{children:y.jsx(ki,{query:i,setSearchParams:t,page:`${+e+2}`})}),+e+60<=(a||500)&&y.jsxs(y.Fragment,{children:[y.jsx("h1",{children:"..."}),y.jsx(ki,{query:i,setSearchParams:t,page:`${+e+60}`})]}),y.jsx("button",{className:"ms-3",onClick:()=>{+e+1>(a||500)||t([["page",`${+e+1}`],["query",i||""]])},children:"Next"})]})}function CB(){const[e,t]=Ef(),{resp:a,isLoading:i,err:l,fetch:s}=yB({page:e.get("page")}),{resp:u,isLoading:f,err:d,fetch:h}=xB();return C.useEffect(()=>{e.get("page")},[e]),C.useEffect(()=>{let m=e.get("query");if(m){console.log(m);let v=e.get("page");h(m,v||"1")}else s()},[e]),y.jsxs(y.Fragment,{children:[y.jsx(Aa,{mode:"TV"}),y.jsxs("div",{className:"md:ps-28 md:pe-28 ps-5 pr-5",children:[y.jsx("h1",{className:"md:text-3xl text-xl font-extrabold mt-10 mb-10",children:"TV Shows"}),y.jsxs("div",{className:"flex justify-center gap-10 flex-wrap",children:[!u&&a?.results.map((m,v)=>y.jsx(Xm,{show:m},v)),u&&u?.results.map((m,v)=>y.jsx(Xm,{show:m},v))]}),y.jsx("div",{className:"mt-5 mb-5",children:y.jsx(SB,{setSearchParams:t,page:e.get("page")||"1",pageCount:a?a.total_pages:u?.total_pages,query:e.get("query")||""})}),(i||f)&&!l&&y.jsx("div",{className:"flex justify-center gap-10 flex-wrap",children:ld()}),l&&y.jsx("div",{className:"w-full h-screen",children:y.jsx("div",{className:"bg-red-600 p-5 border-2 border-red-700",children:y.jsx("h1",{children:l})})}),d&&y.jsx("div",{className:"w-full h-screen",children:y.jsx("div",{className:"bg-red-600 p-5 border-2 border-red-700",children:y.jsxs("h1",{children:["error when searching : ",l]})})})]})]})}function EB(e){const[t,a]=C.useState(),[i,l]=C.useState(),[s,u]=C.useState(!0),f=async d=>{const h=new URL("/api/tv_shows/"+d,location.origin);return(await He.get(h.href)).data};return C.useEffect(()=>{u(!0),f(e).then(d=>{a(d)}).catch(d=>{if(d instanceof B3){l(d.response?.data.error);return}l(d.message)}).finally(()=>{u(!1)})},[]),{resp:t,err:i,isLoading:s}}function wB(e){return Un("MuiButton",e)}const Nx=wn("MuiButton",["root","colorPrimary","colorNeutral","colorDanger","colorSuccess","colorWarning","colorContext","variantPlain","variantOutlined","variantSoft","variantSolid","focusVisible","disabled","sizeSm","sizeMd","sizeLg","fullWidth","startDecorator","endDecorator","loading","loadingIndicatorCenter"]),AB=["children","action","color","variant","size","fullWidth","startDecorator","endDecorator","loading","loadingPosition","loadingIndicator","disabled","component","slots","slotProps"],RB=e=>{const{color:t,disabled:a,focusVisible:i,focusVisibleClassName:l,fullWidth:s,size:u,variant:f,loading:d}=e,h={root:["root",a&&"disabled",i&&"focusVisible",s&&"fullWidth",f&&`variant${Ie(f)}`,t&&`color${Ie(t)}`,u&&`size${Ie(u)}`,d&&"loading"],startDecorator:["startDecorator"],endDecorator:["endDecorator"],loadingIndicatorCenter:["loadingIndicatorCenter"]},m=Hn(h,wB,{});return i&&l&&(m.root+=` ${l}`),m},TB=_e("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)"}),$B=_e("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)"}),OB=_e("span",{name:"JoyButton",slot:"LoadingCenter",overridesResolver:(e,t)=>t.loadingIndicatorCenter})(({theme:e,ownerState:t})=>{var a,i;return L({display:"inherit",position:"absolute",left:"50%",transform:"translateX(-50%)",color:(a=e.variants[t.variant])==null||(a=a[t.color])==null?void 0:a.color},t.disabled&&{color:(i=e.variants[`${t.variant}Disabled`])==null||(i=i[t.color])==null?void 0:i.color})}),_B=({theme:e,ownerState:t})=>{var a,i,l,s;return[L({"--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"},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}),L({},(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, &[aria-pressed="true"]':(l=e.variants[`${t.variant}Active`])==null?void 0:l[t.color],[`&.${Nx.disabled}`]:(s=e.variants[`${t.variant}Disabled`])==null?void 0:s[t.color]},t.loadingPosition==="center"&&{[`&.${Nx.loading}`]:{color:"transparent"}})]},jB=_e("button",{name:"JoyButton",slot:"Root",overridesResolver:(e,t)=>t.root})(_B),ga=C.forwardRef(function(t,a){var i;const l=dr({props:t,name:"JoyButton"}),{children:s,action:u,color:f="primary",variant:d="solid",size:h="md",fullWidth:m=!1,startDecorator:v,endDecorator:S,loading:w=!1,loadingPosition:x="center",loadingIndicator:b,disabled:A,component:j,slots:_={},slotProps:R={}}=l,N=Ue(l,AB),T=C.useContext(d5),z=C.useContext(p5),D=t.variant||T.variant||d,V=t.size||T.size||h,Q=t.color||T.color||f,Z=(i=t.loading||t.disabled)!=null?i:T.disabled||w||A,q=C.useRef(null),$=Ht(q,a),{focusVisible:H,setFocusVisible:U,getRootProps:Y}=gl(L({},l,{disabled:Z,rootRef:$})),k=b??y.jsx(T5,{color:Q,thickness:{sm:2,md:3,lg:4}[V]||3});C.useImperativeHandle(u,()=>({focusVisible:()=>{var xe;U(!0),(xe=q.current)==null||xe.focus()}}),[U]);const P=L({},l,{color:Q,fullWidth:m,variant:D,size:V,focusVisible:H,loading:w,loadingPosition:x,disabled:Z}),J=RB(P),ue=xe=>{var ze;let mt=l.onClick;if(typeof R.root=="function"?mt=R.root(P).onClick:R.root&&(mt=R.root.onClick),(ze=mt)==null||ze(xe),z){var Bt;(Bt=z.onClick)==null||Bt.call(z,xe,l.value)}};let ye=l["aria-pressed"];typeof R.root=="function"?ye=R.root(P)["aria-pressed"]:R.root&&(ye=R.root["aria-pressed"]),z!=null&&z.value&&(Array.isArray(z.value)?ye=z.value.indexOf(l.value)!==-1:ye=z.value===l.value);const M=L({},N,{component:j,slots:_,slotProps:R}),[G,le]=We("root",{ref:a,className:J.root,elementType:jB,externalForwardedProps:M,getSlotProps:Y,ownerState:P,additionalProps:{onClick:ue,"aria-pressed":ye}}),[ce,de]=We("startDecorator",{className:J.startDecorator,elementType:TB,externalForwardedProps:M,ownerState:P}),[me,se]=We("endDecorator",{className:J.endDecorator,elementType:$B,externalForwardedProps:M,ownerState:P}),[ie,pe]=We("loadingIndicatorCenter",{className:J.loadingIndicatorCenter,elementType:OB,externalForwardedProps:M,ownerState:P});return y.jsxs(G,L({},le,{children:[(v||w&&x==="start")&&y.jsx(ce,L({},de,{children:w&&x==="start"?k:v})),s,w&&x==="center"&&y.jsx(ie,L({},pe,{children:k})),(S||w&&x==="end")&&y.jsx(me,L({},se,{children:w&&x==="end"?k:S}))]}))});ga.muiName="Button";const kB="/api/search";function NB(){const[e,t]=C.useState(),[a,i]=C.useState(!1),[l,s]=C.useState(),u=async(d,h)=>{const m=await Pn(),v=new URL(kB,m["torrent-streamer-api"].external?m["torrent-streamer-api"].origin:location.origin);v.searchParams.set("query",d),v.searchParams.set("limit",`${h}`),await new Promise((S,w)=>{const x=new EventSource(v.href);x.onmessage=b=>{try{const A=JSON.parse(b.data);t(j=>j?[...j,A]:[A])}catch(A){console.error("Failed to parse JSON:",A)}},x.onerror=b=>{console.error("EventSource failed:",b),x.close(),w(b)},x.addEventListener("close",b=>{console.log("Server sent close event:",b.data),S(),x.close()})})};return{resp:e,isLoading:a,err:l,fetch:(d,h)=>{i(!0),s(void 0),t(void 0),u(d,h).catch(m=>{s(m)}).finally(()=>{i(!1)})}}}const zB=G5(y.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 DB(e){return Un("MuiSelect",e)}const nl=wn("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"]),Q3=C.createContext(void 0);function MB(e,t){let a=t,i=e;return e==="outlined"&&(a="neutral",i="plain"),e==="plain"&&(a="neutral"),{variant:i,color:a}}function BB(e,t,a=!1){const i=C.useContext(Q3),[l,s]=typeof i=="string"?i.split(":"):[],u=MB(l||void 0,s||void 0);return u.variant=e||u.variant,u.color=t||(a?s:u.color),u}function LB({children:e,color:t,variant:a}){return y.jsx(Q3.Provider,{value:`${a||""}:${t||""}`,children:e})}var zx;const PB=["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 IB(e){var t;return Array.isArray(e)?y.jsx(C.Fragment,{children:e.map(a=>a.label).join(", ")}):(t=e?.label)!=null?t:""}const HB=[{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`}}],UB=e=>{const{color:t,disabled:a,focusVisible:i,size:l,variant:s,open:u,multiple:f}=e,d={root:["root",a&&"disabled",i&&"focusVisible",u&&"expanded",s&&`variant${Ie(s)}`,t&&`color${Ie(t)}`,l&&`size${Ie(l)}`,f&&"multiple"],button:["button"],startDecorator:["startDecorator"],endDecorator:["endDecorator"],indicator:["indicator",u&&"expanded"],listbox:["listbox",u&&"expanded",a&&"disabled"]};return Hn(d,DB,{})},FB=_e("div",{name:"JoySelect",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e,ownerState:t})=>{var a,i,l,s,u;const f=(a=e.variants[`${t.variant}`])==null?void 0:a[t.color],{borderRadius:d}=I5({theme:e,ownerState:t},["borderRadius"]);return[L({"--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":(i=e.vars.palette[t.color==="neutral"?"primary":t.color])==null?void 0:i[500],'&:not([data-inverted-colors="false"])':L({},t.instanceColor&&{"--_Select-focusedHighlight":(l=e.vars.palette[t.instanceColor==="neutral"?"primary":t.instanceColor])==null?void 0:l[500]},{"--Select-focusedHighlight":e.vars.palette.focusVisible}),"--Select-indicatorColor":f!=null&&f.backgroundColor?f?.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},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"},!(f!=null&&f.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}`],f,{"&::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)"},[`&.${nl.focusVisible}`]:{"--Select-indicatorColor":f?.color,"&::before":{boxShadow:"inset 0 0 0 var(--Select-focusedThickness) var(--Select-focusedHighlight)"}},[`&.${nl.disabled}`]:{"--Select-indicatorColor":"inherit"}}),{"&:hover":(s=e.variants[`${t.variant}Hover`])==null?void 0:s[t.color],[`&.${nl.disabled}`]:(u=e.variants[`${t.variant}Disabled`])==null?void 0:u[t.color]},d!==void 0&&{"--Select-radius":d}]}),VB=_e("button",{name:"JoySelect",slot:"Button",overridesResolver:(e,t)=>t.button})(({ownerState:e})=>L({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)"}})),qB=_e(V5,{name:"JoySelect",slot:"Listbox",overridesResolver:(e,t)=>t.listbox})(({theme:e,ownerState:t})=>{var a;const i=(a=e.variants[t.variant])==null?void 0:a[t.color];return L({"--focus-outline-offset":`calc(${e.vars.focus.thickness} * -1)`,"--ListItem-stickyBackground":i?.backgroundColor||i?.background||e.vars.palette.background.popup,"--ListItem-stickyTop":"calc(var(--List-padding, var(--ListDivider-gap)) * -1)"},dN,{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})`},!(i!=null&&i.backgroundColor)&&{backgroundColor:e.vars.palette.background.popup})}),YB=_e("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)"}),GB=_e("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)"}),WB=_e("span",{name:"JoySelect",slot:"Indicator"})(({ownerState:e,theme:t})=>L({},e.size==="sm"&&{"--Icon-fontSize":t.vars.fontSize.lg},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)",[`.${nl.endDecorator} + &`]:{marginInlineStart:"calc(var(--Select-gap) / 2)"},[`&.${nl.expanded}, .${nl.disabled} > &`]:{"--Icon-color":"currentColor"}})),nm=C.forwardRef(function(t,a){var i,l,s,u,f,d,h;const m=dr({props:t,name:"JoySelect"}),v=m,{action:S,autoFocus:w,children:x,defaultValue:b,defaultListboxOpen:A=!1,disabled:j,getSerializedValue:_,placeholder:R,listboxId:N,listboxOpen:T,onChange:z,onListboxOpenChange:D,onClose:V,renderValue:Q,required:Z=!1,value:q,size:$="md",variant:H="outlined",color:U="neutral",startDecorator:Y,endDecorator:k,indicator:P=zx||(zx=y.jsx(zB,{})),"aria-describedby":J,"aria-label":ue,"aria-labelledby":ye,id:M,name:G,multiple:le=!1,slots:ce={},slotProps:de={}}=v,me=Ue(v,PB),se=C.useContext(L5),ie=(i=(l=t.disabled)!=null?l:se?.disabled)!=null?i:j,pe=(s=(u=t.size)!=null?u:se?.size)!=null?s:$,xe=(f=t.color)!=null?f:se!=null&&se.error?"danger":(d=se?.color)!=null?d:U,ze=Q??IB,[mt,Bt]=C.useState(null),wt=C.useRef(null),An=C.useRef(null),Vn=Ht(a,wt);C.useImperativeHandle(S,()=>({focusVisible:()=>{var Ut;(Ut=An.current)==null||Ut.focus()}}),[]),C.useEffect(()=>{Bt(wt.current)},[]),C.useEffect(()=>{w&&An.current.focus()},[w]);const nn=C.useCallback(Ut=>{D?.(Ut),Ut||V?.()},[V,D]),{buttonActive:cn,buttonFocusVisible:hr,contextValue:Lt,disabled:un,getButtonProps:we,getListboxProps:Ra,getHiddenInputProps:At,getOptionMetadata:Rr,open:Tr,value:Qt}=E8({buttonRef:An,defaultOpen:A,defaultValue:b,disabled:ie,getSerializedValue:_,listboxId:N,multiple:le,name:G,required:Z,onChange:z,onOpenChange:nn,open:T,value:q}),Dt=L({},m,{active:cn,defaultListboxOpen:A,disabled:un,focusVisible:hr,open:Tr,renderValue:ze,value:Qt,size:pe,variant:H,color:xe}),mr=UB(Dt),gr=L({},me,{slots:ce,slotProps:de}),Ta=C.useMemo(()=>{let Ut;if(le)Ut=Qt.map(di=>Rr(di)).filter(di=>di!==void 0);else{var Cl;Ut=(Cl=Rr(Qt))!=null?Cl:null}return Ut},[Rr,Qt,le]),[he,ge]=We("root",{ref:Vn,className:mr.root,elementType:FB,externalForwardedProps:gr,ownerState:Dt}),[Ae,st]=We("button",{additionalProps:{"aria-describedby":J??se?.["aria-describedby"],"aria-label":ue,"aria-labelledby":ye??se?.labelId,"aria-required":Z?"true":void 0,id:M??se?.htmlFor,name:G},className:mr.button,elementType:VB,externalForwardedProps:gr,getSlotProps:we,ownerState:Dt}),[rn,fi]=We("listbox",{additionalProps:{anchorEl:mt,open:Tr,placement:"bottom",keepMounted:!0},className:mr.listbox,elementType:qB,externalForwardedProps:gr,getSlotProps:Ra,ownerState:L({},Dt,{nesting:!1,row:!1,wrap:!1}),getSlotOwnerState:Ut=>({size:Ut.size||pe,variant:Ut.variant||H,color:Ut.color||(Ut.disablePortal?xe:U),disableColorInversion:!Ut.disablePortal})}),[sd,cd]=We("startDecorator",{className:mr.startDecorator,elementType:YB,externalForwardedProps:gr,ownerState:Dt}),[Ji,Zi]=We("endDecorator",{className:mr.endDecorator,elementType:GB,externalForwardedProps:gr,ownerState:Dt}),[eo,qr]=We("indicator",{className:mr.indicator,elementType:WB,externalForwardedProps:gr,ownerState:Dt}),to=C.useMemo(()=>[...HB,...fi.modifiers||[]],[fi.modifiers]);let $a=R;return(Array.isArray(Ta)&&Ta.length>0||!Array.isArray(Ta)&&Ta)&&($a=ze(Ta)),y.jsxs(C.Fragment,{children:[y.jsxs(he,L({},ge,{children:[Y&&y.jsx(sd,L({},cd,{children:Y})),y.jsx(Ae,L({},st,{children:$a})),k&&y.jsx(Ji,L({},Zi,{children:k})),P&&y.jsx(eo,L({},qr,{children:P})),y.jsx("input",L({},At()))]})),mt&&y.jsx(rn,L({},fi,{className:Xe(fi.className),modifiers:to},!((h=m.slots)!=null&&h.listbox)&&{as:b8,slots:{root:fi.as||"ul"}},{children:y.jsx(w8,{value:Lt,children:y.jsx(LB,{variant:H,color:U,children:y.jsx(U5.Provider,{value:"select",children:y.jsx(F5,{nested:!0,children:x})})})})}))]})});function KB(e){return Un("MuiOption",e)}const XB=wn("MuiOption",["root","colorPrimary","colorNeutral","colorDanger","colorSuccess","colorWarning","colorContext","focusVisible","disabled","selected","highlighted","variantPlain","variantSoft","variantOutlined","variantSolid"]),QB=["component","children","disabled","value","label","variant","color","slots","slotProps"],JB=e=>{const{disabled:t,highlighted:a,selected:i}=e;return Hn({root:["root",t&&"disabled",a&&"highlighted",i&&"selected"]},KB,{})},ZB=_e(q5,{name:"JoyOption",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e,ownerState:t})=>{var a;const i=(a=e.variants[`${t.variant}Hover`])==null?void 0:a[t.color];return{[`&.${XB.highlighted}:not([aria-selected="true"])`]:{backgroundColor:i?.backgroundColor}}}),eL=C.memo(C.forwardRef(function(t,a){var i;const l=dr({props:t,name:"JoyOption"}),{component:s="li",children:u,disabled:f=!1,value:d,label:h,variant:m="plain",color:v="neutral",slots:S={},slotProps:w={}}=l,x=Ue(l,QB),b=C.useContext(X0),{variant:A=m,color:j=v}=BB(t.variant,t.color),_=C.useRef(null),R=Ht(_,a),N=h??(typeof u=="string"?u:(i=_.current)==null?void 0:i.innerText),{getRootProps:T,selected:z,highlighted:D,index:V}=nk({disabled:f,label:N,value:d,rootRef:R}),Q=L({},l,{disabled:f,selected:z,highlighted:D,index:V,component:s,variant:A,color:j,row:b}),Z=JB(Q),q=L({},x,{component:s,slots:S,slotProps:w}),[$,H]=We("root",{ref:a,getSlotProps:T,elementType:ZB,externalForwardedProps:q,className:Z.root,ownerState:Q});return y.jsx($,L({},H,{children:u}))})),As=C.forwardRef(function(t,a){const{contextValue:i}=rk(t.value);return y.jsx(Ff.Provider,{value:i,children:y.jsx(eL,L({},t,{ref:a}))})});function tL(e){const{resp:t,err:a,isLoading:i,fetch:l}=NB(),[s,u]=C.useState(),[f,d]=C.useState(),[h,m]=C.useState(10),v=sn(),[S,w]=C.useState(!1);C.useEffect(()=>{q3(e.id).then(b=>{b&&w(!0)})},[]);const x=()=>{document.getElementById("season")?.value,document.getElementById("ep")?.value;let b=`${e.name}`;s&&(b+=` S0${s}`),f&&(b+=`E0${f}`),l(b,h)};return C.useEffect(()=>{let b=document.getElementById("season");b&&(b.onchange=()=>{u(b.value)})},[t]),y.jsxs(y.Fragment,{children:[y.jsx("div",{className:"md:mb-10 mb-10 cursor-pointer bg-white rounded-full h-10 w-10 flex justify-center items-center",onClick:()=>{v(-1)},children:y.jsx(Ne,{className:"h-5! font-bold text-black",icon:m0})}),y.jsxs("div",{className:"lg:flex gap-20 relative",children:[y.jsxs("div",{className:"lg:z-10 left-[50%] lg:top-0 top-[20%] lg:left-0 lg:translate-x-0 translate-x-[-50%] z-[-10] lg:relative w-fit absolute min-w-[300px] min-h-[450px] rounded-md",children:[y.jsx("div",{className:"rounded-md overflow-hidden w-fit",children:y.jsx("img",{className:"w-[300px] h-[450px]",src:`https://media.themoviedb.org/t/p/w300_and_h450_bestv2${e.poster_path}`})}),y.jsx("div",{className:"rounded-lg absolute top-0 bg-gradient-to-t from-[#000000] to-[#00000086] w-full h-full z-30 block lg:hidden"}),y.jsx("div",{className:"blur-[100px] opacity-50 absolute z-[-10] top-[-50px]",children:y.jsx("img",{src:`https://media.themoviedb.org/t/p/w300_and_h450_bestv2${e.poster_path}`,alt:""})})]}),y.jsxs("div",{className:"z-10 mb-10",children:[y.jsxs("div",{className:"flex sm:flex-row flex-col sm:items-center gap-3",children:[y.jsx("h1",{className:"text-4xl font-extrabold",children:e.name}),y.jsx(xl,{onClick:async()=>{S?(await Y3(e.id),w(!1)):(await V3({id:e?.id,name:e?.name,vote_average:e.vote_average,backdrop_path:e.backdrop_path,genre_ids:[],origin_country:e.origin_country,poster_path:e.poster_path,first_air_date:e.first_air_date}),w(!0))},saved:S})]}),y.jsxs("h1",{className:"text-xl font-semibold mt-3",children:[e.seasons.length," Season",e.seasons.length>1?"s":""]}),y.jsxs("h1",{className:"text-lg mt-2",children:["Genres :"," ",e.genres.map((b,A)=>A===e.genres.length-1?b.name:b.name+" / ")]}),y.jsxs("h1",{className:"text-lg",children:["Rating :",e.vote_average]}),y.jsx("p",{className:"mt-7 text-base md:text-lg",children:e.overview}),y.jsxs("div",{className:"flex flex-wrap",children:[y.jsxs("div",{children:[y.jsx("p",{className:"mt-5",children:"Season "}),y.jsxs(nm,{onChange:(b,A)=>{typeof A=="number"&&(A==0&&d(0),u(A))},placeholder:"Choose one…",name:"",id:"season",className:" mr-2 !bg-[#151515] !text-white after:bg-black !w-[150px]",sx:{padding:0,paddingLeft:"10px"},children:[y.jsx(As,{className:"!bg-[#000000] !text-white !border-0 hover:!bg-[#242424]",value:0,children:"any"}),e.seasons.map((b,A)=>{if(b.name!=="Specials")return y.jsx(As,{className:"!bg-[#000000] !text-white !border-0 hover:!bg-[#242424]",value:b.season_number,children:b.name},A)})]})]}),y.jsxs("div",{children:[y.jsx("p",{className:"mt-5",children:"Episode "}),y.jsxs(nm,{disabled:!s,onChange:(b,A)=>{typeof A=="number"&&d(A)},placeholder:"Choose one…",name:"",id:"ep",className:"mr-2 !bg-[#151515] !text-white after:bg-black !w-[150px]",sx:{padding:0,paddingLeft:"10px","&.Mui-disabled":{backgroundColor:"#000 !important",color:"#797979 !important",border:"2px solid #ccc"}},children:[y.jsx(As,{className:"!bg-[#000000] !text-white !border-0 hover:!bg-[#242424]",value:0,children:"any"}),s&&e.seasons.map(b=>{if(b.season_number===s){let A=[];for(let j=1;j<b.episode_count+1;j++)A.push(y.jsxs(As,{value:j,className:"!bg-[#000000] !text-white !border-0 hover:!bg-[#242424]",children:["episode ",j]},j));return A}})]})]}),y.jsxs("div",{children:[y.jsx("p",{className:"mt-5",children:"Search Limit"}),y.jsx(nm,{onChange:(b,A)=>{typeof A=="number"&&m(A)},className:" mr-2 !bg-[#151515] !text-white after:bg-black !w-[150px]",sx:{padding:0,paddingLeft:"10px"},name:"",defaultValue:10,placeholder:10,id:"limit",children:nL()})]})]}),y.jsx(ga,{loading:i,color:"neutral",onClick:x,className:"!text-base !pr-7 !ps-7 !pt-2 !pb-2 !mt-3",children:"Search"})]})]}),y.jsxs("div",{children:[!i&&t&&y.jsxs(y.Fragment,{children:[y.jsx("h1",{className:"text-2xl font-bold mb-5",children:"Torrents Found"}),y.jsxs("div",{className:"lg:p-5 font-bold gap-5 grid md:grid-cols-11 grid-cols-10 lg:grid-cols-12 rounded-md lg:text-base text-sm ",children:[y.jsx("h1",{className:"col-span-7 text-center",children:"Name"}),y.jsx("h1",{className:"col-span-1 text-center sm:block hidden",children:"seeders"}),y.jsx("h1",{className:"col-span-1 text-center sm:block hidden",children:"leechers"}),y.jsx("h1",{className:"col-span-1 text-center sm:hidden block",children:"S"}),y.jsx("h1",{className:"col-span-1 text-center sm:hidden block",children:"L"}),y.jsx("h1",{className:"col-span-1 text-center md:block hidden",children:"Provider"}),y.jsx("h1",{className:"col-span-1 text-center lg:block hidden",children:"torrent page"})]}),y.jsx(Xo,{filter:"720p",torrents:t}),y.jsx(Xo,{filter:"1080p",torrents:t}),y.jsx(Xo,{filter:"2060p",torrents:t}),y.jsx(Xo,{filter:"4k",torrents:t}),y.jsx(Xo,{filter:"h264",torrents:t}),y.jsx(Xo,{filter:"h265",torrents:t}),t.length===0&&y.jsx("h1",{children:"No Torrents Found :("})]}),a&&!t&&y.jsx("h1",{className:"text-red-600",children:"Error when searching for torrents"})]})]})}function J3({t:e}){const[t,a]=C.useState(!1);return C.useEffect(()=>{W3(e.infoHash).then(i=>{if(i)return a(!0);a(!1)})},[]),y.jsx(y.Fragment,{children:y.jsxs("div",{className:"lg:p-5 lg:text-base text-sm p-2 gap-5 grid md:grid-cols-11 grid-cols-10 lg:grid-cols-12 hover:bg-[#50505059] rounded-md duration-200",children:[y.jsx("a",{href:(()=>{const i=new URL(`/home_cinema/torrents/${e.infoHash}/files`,location.origin);return i.searchParams.set("seeds",`${e.seeders}`),i.searchParams.set("leechers",`${e.leechers}`),i.searchParams.set("about",`${e.url}`),i.searchParams.set("name",`${e.name}`),i.searchParams.set("provider",`${e.provider}`),i.href})(),className:"col-span-7 hover:underline cursor-pointer break-words",children:e.name}),y.jsx("p",{className:"col-span-1 text-center",children:e.seeders}),y.jsx("p",{className:"col-span-1 text-center",children:e.leechers}),y.jsx("p",{className:"col-span-1 text-center md:block hidden",children:e.provider}),y.jsx("a",{className:"col-span-1 text-center lg:block hidden",target:"_blank",href:e.url,children:y.jsx(Ne,{icon:N6})}),y.jsx(xl,{onClick:async()=>{try{t?(await K3(e.infoHash),a(!1)):(await G3(e),a(!0))}catch(i){console.log(i)}},saved:t})]})})}function Xo({torrents:e,filter:t}){return y.jsxs(y.Fragment,{children:[e?.find(a=>{if(a.name.includes(t))return!0})&&y.jsxs("p",{className:"font-bold underline",children:[t," :"]}),e?.sort((a,i)=>(i.seeders||0)-(a.seeders||0)).map((a,i)=>{if(a.name.toUpperCase().includes(t.toUpperCase()))return y.jsx(J3,{t:a},i)})]})}function nL(){let e=[];for(let t=0;t<7;t++)e.push(y.jsx(As,{className:"!bg-[#000000] !text-white !border-0 hover:!bg-[#242424]",value:(t+1)*10,children:(t+1)*10}));return e}function rL(){const e=c0(),{resp:t,err:a,isLoading:i}=EB(e.id);return y.jsxs(y.Fragment,{children:[y.jsx(Aa,{}),y.jsx("div",{className:"ps-2 pr-2 md:pr-16 md:ps-16 mt-20",children:!a&&!i&&t&&y.jsx(tL,{...t})})]})}const aL="/api/torrents/:hash/files",iL="/api/torrents/:hash/files/:path64";function Z3(){const[e,t]=C.useState(),[a,i]=C.useState(!1),[l,s]=C.useState(),u=async d=>{const h=await Pn(),m=new URL(aL.replace(":hash",d),h["torrent-streamer-api"].external?h["torrent-streamer-api"].origin:location.origin),v=await He.get(m.href);for(let S of v.data){const w=new URL(iL.replace(":hash",d).replace(":path64",S.path64),h["torrent-streamer-api"].external?h["torrent-streamer-api"].origin:location.origin);S.downloadLink=w.href}return v.data};return{resp:e,isLoading:a,err:l,fetch:d=>{i(!0),s(""),u(d).then(h=>{t(h)}).catch(h=>{console.log(h),s(h.message)}).finally(()=>{i(!1)})}}}const oL="/api/streams";function e4(){const[e,t]=C.useState(),[a,i]=C.useState(!1),[l,s]=C.useState(),u=async(d,h)=>{const m=await Pn(),v=new URL(oL,m["torrent-streamer-api"].external?m["torrent-streamer-api"].origin:location.origin);return(await He.post(v.href,{hash:d,filePath:h})).data};return C.useEffect(()=>{},[]),{resp:e,isLoading:a,err:l,fetch:(d,h)=>{i(!0),s(""),t(void 0),u(d,h).then(m=>{t(m)}).catch(m=>{s(m.message)}).finally(()=>{i(!1)})}}}function Qm(e,t){return Qm=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(a,i){return a.__proto__=i,a},Qm(e,t)}function lL(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,Qm(e,t)}const Dx=ni.createContext(null);function sL(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function sg(e,t){var a=function(s){return t&&C.isValidElement(s)?t(s):s},i=Object.create(null);return e&&C.Children.map(e,function(l){return l}).forEach(function(l){i[l.key]=a(l)}),i}function cL(e,t){e=e||{},t=t||{};function a(m){return m in t?t[m]:e[m]}var i=Object.create(null),l=[];for(var s in e)s in t?l.length&&(i[s]=l,l=[]):l.push(s);var u,f={};for(var d in t){if(i[d])for(u=0;u<i[d].length;u++){var h=i[d][u];f[i[d][u]]=a(h)}f[d]=a(d)}for(u=0;u<l.length;u++)f[l[u]]=a(l[u]);return f}function Li(e,t,a){return a[t]!=null?a[t]:e.props[t]}function uL(e,t){return sg(e.children,function(a){return C.cloneElement(a,{onExited:t.bind(null,a),in:!0,appear:Li(a,"appear",e),enter:Li(a,"enter",e),exit:Li(a,"exit",e)})})}function fL(e,t,a){var i=sg(e.children),l=cL(t,i);return Object.keys(l).forEach(function(s){var u=l[s];if(C.isValidElement(u)){var f=s in t,d=s in i,h=t[s],m=C.isValidElement(h)&&!h.props.in;d&&(!f||m)?l[s]=C.cloneElement(u,{onExited:a.bind(null,u),in:!0,exit:Li(u,"exit",e),enter:Li(u,"enter",e)}):!d&&f&&!m?l[s]=C.cloneElement(u,{in:!1}):d&&f&&C.isValidElement(h)&&(l[s]=C.cloneElement(u,{onExited:a.bind(null,u),in:h.props.in,exit:Li(u,"exit",e),enter:Li(u,"enter",e)}))}}),l}var dL=Object.values||function(e){return Object.keys(e).map(function(t){return e[t]})},pL={component:"div",childFactory:function(t){return t}},cg=(function(e){lL(t,e);function t(i,l){var s;s=e.call(this,i,l)||this;var u=s.handleExited.bind(sL(s));return s.state={contextValue:{isMounting:!0},handleExited:u,firstRender:!0},s}var a=t.prototype;return a.componentDidMount=function(){this.mounted=!0,this.setState({contextValue:{isMounting:!1}})},a.componentWillUnmount=function(){this.mounted=!1},t.getDerivedStateFromProps=function(l,s){var u=s.children,f=s.handleExited,d=s.firstRender;return{children:d?uL(l,f):fL(l,u,f),firstRender:!1}},a.handleExited=function(l,s){var u=sg(this.props.children);l.key in u||(l.props.onExited&&l.props.onExited(s),this.mounted&&this.setState(function(f){var d=L({},f.children);return delete d[l.key],{children:d}}))},a.render=function(){var l=this.props,s=l.component,u=l.childFactory,f=Ue(l,["component","childFactory"]),d=this.state.contextValue,h=dL(this.state.children).map(u);return delete f.appear,delete f.enter,delete f.exit,s===null?ni.createElement(Dx.Provider,{value:d},h):ni.createElement(Dx.Provider,{value:d},ni.createElement(s,f,h))},t})(ni.Component);cg.propTypes={};cg.defaultProps=pL;const Mx={};function t4(e,t){const a=C.useRef(Mx);return a.current===Mx&&(a.current=e(t)),a}const hL=[];function mL(e){C.useEffect(e,hL)}class ug{static create(){return new ug}currentId=null;start(t,a){this.clear(),this.currentId=setTimeout(()=>{this.currentId=null,a()},t)}clear=()=>{this.currentId!==null&&(clearTimeout(this.currentId),this.currentId=null)};disposeEffect=()=>this.clear}function gL(){const e=t4(ug.create).current;return mL(e.disposeEffect),e}function vL(e){return typeof e=="string"}function yL(e,t,a){return e===void 0||vL(e)?t:{...t,ownerState:{...t.ownerState,...a}}}function bL(e,t,a){return typeof e=="function"?e(t,a):e}function xL(e,t=[]){if(e===void 0)return{};const a={};return Object.keys(e).filter(i=>i.match(/^on[A-Z]/)&&typeof e[i]=="function"&&!t.includes(i)).forEach(i=>{a[i]=e[i]}),a}function Bx(e){if(e===void 0)return{};const t={};return Object.keys(e).filter(a=>!(a.match(/^on[A-Z]/)&&typeof e[a]=="function")).forEach(a=>{t[a]=e[a]}),t}function SL(e){const{getSlotProps:t,additionalProps:a,externalSlotProps:i,externalForwardedProps:l,className:s}=e;if(!t){const w=Xe(a?.className,s,l?.className,i?.className),x={...a?.style,...l?.style,...i?.style},b={...a,...l,...i};return w.length>0&&(b.className=w),Object.keys(x).length>0&&(b.style=x),{props:b,internalRef:void 0}}const u=xL({...l,...i}),f=Bx(i),d=Bx(l),h=t(u),m=Xe(h?.className,a?.className,s,l?.className,i?.className),v={...h?.style,...a?.style,...l?.style,...i?.style},S={...h,...a,...d,...f};return m.length>0&&(S.className=m),Object.keys(v).length>0&&(S.style=v),{props:S,internalRef:h.ref}}function ar(e,t){const{className:a,elementType:i,ownerState:l,externalForwardedProps:s,internalForwardedProps:u,shouldForwardComponentProp:f=!1,...d}=t,{component:h,slots:m={[e]:void 0},slotProps:v={[e]:void 0},...S}=s,w=m[e]||i,x=bL(v[e],l),{props:{component:b,...A},internalRef:j}=SL({className:a,...d,externalForwardedProps:e==="root"?S:void 0,externalSlotProps:x}),_=Im(j,x?.ref,t.ref),R=e==="root"?b||h:b,N=yL(w,{...e==="root"&&!h&&!m[e]&&u,...e!=="root"&&!m[e]&&u,...A,...R&&!f&&{as:R},...R&&f&&{component:R},ref:_},l);return[w,N]}function CL(e){return Er("MuiPaper",e)}wr("MuiPaper",["root","rounded","outlined","elevation","elevation0","elevation1","elevation2","elevation3","elevation4","elevation5","elevation6","elevation7","elevation8","elevation9","elevation10","elevation11","elevation12","elevation13","elevation14","elevation15","elevation16","elevation17","elevation18","elevation19","elevation20","elevation21","elevation22","elevation23","elevation24"]);const EL=e=>{const{square:t,elevation:a,variant:i,classes:l}=e,s={root:["root",i,!t&&"rounded",i==="elevation"&&`elevation${a}`]};return Fr(s,CL,l)},wL=ht("div",{name:"MuiPaper",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:a}=e;return[t.root,t[a.variant],!a.square&&t.rounded,a.variant==="elevation"&&t[`elevation${a.elevation}`]]}})(ln(({theme:e})=>({backgroundColor:(e.vars||e).palette.background.paper,color:(e.vars||e).palette.text.primary,transition:e.transitions.create("box-shadow"),variants:[{props:({ownerState:t})=>!t.square,style:{borderRadius:e.shape.borderRadius}},{props:{variant:"outlined"},style:{border:`1px solid ${(e.vars||e).palette.divider}`}},{props:{variant:"elevation"},style:{boxShadow:"var(--Paper-shadow)",backgroundImage:"var(--Paper-overlay)"}}]}))),AL=C.forwardRef(function(t,a){const i=Vr({props:t,name:"MuiPaper"}),l=eM(),{className:s,component:u="div",elevation:f=1,square:d=!1,variant:h="elevation",...m}=i,v={...i,component:u,elevation:f,square:d,variant:h},S=EL(v);return y.jsx(wL,{as:u,ownerState:v,className:Xe(S.root,s),ref:a,...m,style:{...h==="elevation"&&{"--Paper-shadow":(l.vars||l).shadows[f],...l.vars&&{"--Paper-overlay":l.vars.overlays?.[f]},...!l.vars&&l.palette.mode==="dark"&&{"--Paper-overlay":`linear-gradient(${hf("#fff",Lm(f))}, ${hf("#fff",Lm(f))})`}},...m.style}})});function Lx(e){try{return e.matches(":focus-visible")}catch{}return!1}class vf{static create(){return new vf}static use(){const t=t4(vf.create).current,[a,i]=C.useState(!1);return t.shouldMount=a,t.setShouldMount=i,C.useEffect(t.mountEffect,[a]),t}constructor(){this.ref={current:null},this.mounted=null,this.didMount=!1,this.shouldMount=!1,this.setShouldMount=null}mount(){return this.mounted||(this.mounted=TL(),this.shouldMount=!0,this.setShouldMount(this.shouldMount)),this.mounted}mountEffect=()=>{this.shouldMount&&!this.didMount&&this.ref.current!==null&&(this.didMount=!0,this.mounted.resolve())};start(...t){this.mount().then(()=>this.ref.current?.start(...t))}stop(...t){this.mount().then(()=>this.ref.current?.stop(...t))}pulsate(...t){this.mount().then(()=>this.ref.current?.pulsate(...t))}}function RL(){return vf.use()}function TL(){let e,t;const a=new Promise((i,l)=>{e=i,t=l});return a.resolve=e,a.reject=t,a}function $L(e){const{className:t,classes:a,pulsate:i=!1,rippleX:l,rippleY:s,rippleSize:u,in:f,onExited:d,timeout:h}=e,[m,v]=C.useState(!1),S=Xe(t,a.ripple,a.rippleVisible,i&&a.ripplePulsate),w={width:u,height:u,top:-(u/2)+s,left:-(u/2)+l},x=Xe(a.child,m&&a.childLeaving,i&&a.childPulsate);return!f&&!m&&v(!0),C.useEffect(()=>{if(!f&&d!=null){const b=setTimeout(d,h);return()=>{clearTimeout(b)}}},[d,f,h]),y.jsx("span",{className:S,style:w,children:y.jsx("span",{className:x})})}const tr=wr("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]),Jm=550,OL=80,_L=ml`
583
+ 0% {
584
+ transform: scale(0);
585
+ opacity: 0.1;
586
+ }
587
+
588
+ 100% {
589
+ transform: scale(1);
590
+ opacity: 0.3;
591
+ }
592
+ `,jL=ml`
593
+ 0% {
594
+ opacity: 1;
595
+ }
596
+
597
+ 100% {
598
+ opacity: 0;
599
+ }
600
+ `,kL=ml`
601
+ 0% {
602
+ transform: scale(1);
603
+ }
604
+
605
+ 50% {
606
+ transform: scale(0.92);
607
+ }
608
+
609
+ 100% {
610
+ transform: scale(1);
611
+ }
612
+ `,NL=ht("span",{name:"MuiTouchRipple",slot:"Root"})({overflow:"hidden",pointerEvents:"none",position:"absolute",zIndex:0,top:0,right:0,bottom:0,left:0,borderRadius:"inherit"}),zL=ht($L,{name:"MuiTouchRipple",slot:"Ripple"})`
613
+ opacity: 0;
614
+ position: absolute;
615
+
616
+ &.${tr.rippleVisible} {
617
+ opacity: 0.3;
618
+ transform: scale(1);
619
+ animation-name: ${_L};
620
+ animation-duration: ${Jm}ms;
621
+ animation-timing-function: ${({theme:e})=>e.transitions.easing.easeInOut};
622
+ }
623
+
624
+ &.${tr.ripplePulsate} {
625
+ animation-duration: ${({theme:e})=>e.transitions.duration.shorter}ms;
626
+ }
627
+
628
+ & .${tr.child} {
629
+ opacity: 1;
630
+ display: block;
631
+ width: 100%;
632
+ height: 100%;
633
+ border-radius: 50%;
634
+ background-color: currentColor;
635
+ }
636
+
637
+ & .${tr.childLeaving} {
638
+ opacity: 0;
639
+ animation-name: ${jL};
640
+ animation-duration: ${Jm}ms;
641
+ animation-timing-function: ${({theme:e})=>e.transitions.easing.easeInOut};
642
+ }
643
+
644
+ & .${tr.childPulsate} {
645
+ position: absolute;
646
+ /* @noflip */
647
+ left: 0px;
648
+ top: 0;
649
+ animation-name: ${kL};
650
+ animation-duration: 2500ms;
651
+ animation-timing-function: ${({theme:e})=>e.transitions.easing.easeInOut};
652
+ animation-iteration-count: infinite;
653
+ animation-delay: 200ms;
654
+ }
655
+ `,DL=C.forwardRef(function(t,a){const i=Vr({props:t,name:"MuiTouchRipple"}),{center:l=!1,classes:s={},className:u,...f}=i,[d,h]=C.useState([]),m=C.useRef(0),v=C.useRef(null);C.useEffect(()=>{v.current&&(v.current(),v.current=null)},[d]);const S=C.useRef(!1),w=gL(),x=C.useRef(null),b=C.useRef(null),A=C.useCallback(N=>{const{pulsate:T,rippleX:z,rippleY:D,rippleSize:V,cb:Q}=N;h(Z=>[...Z,y.jsx(zL,{classes:{ripple:Xe(s.ripple,tr.ripple),rippleVisible:Xe(s.rippleVisible,tr.rippleVisible),ripplePulsate:Xe(s.ripplePulsate,tr.ripplePulsate),child:Xe(s.child,tr.child),childLeaving:Xe(s.childLeaving,tr.childLeaving),childPulsate:Xe(s.childPulsate,tr.childPulsate)},timeout:Jm,pulsate:T,rippleX:z,rippleY:D,rippleSize:V},m.current)]),m.current+=1,v.current=Q},[s]),j=C.useCallback((N={},T={},z=()=>{})=>{const{pulsate:D=!1,center:V=l||T.pulsate,fakeElement:Q=!1}=T;if(N?.type==="mousedown"&&S.current){S.current=!1;return}N?.type==="touchstart"&&(S.current=!0);const Z=Q?null:b.current,q=Z?Z.getBoundingClientRect():{width:0,height:0,left:0,top:0};let $,H,U;if(V||N===void 0||N.clientX===0&&N.clientY===0||!N.clientX&&!N.touches)$=Math.round(q.width/2),H=Math.round(q.height/2);else{const{clientX:Y,clientY:k}=N.touches&&N.touches.length>0?N.touches[0]:N;$=Math.round(Y-q.left),H=Math.round(k-q.top)}if(V)U=Math.sqrt((2*q.width**2+q.height**2)/3),U%2===0&&(U+=1);else{const Y=Math.max(Math.abs((Z?Z.clientWidth:0)-$),$)*2+2,k=Math.max(Math.abs((Z?Z.clientHeight:0)-H),H)*2+2;U=Math.sqrt(Y**2+k**2)}N?.touches?x.current===null&&(x.current=()=>{A({pulsate:D,rippleX:$,rippleY:H,rippleSize:U,cb:z})},w.start(OL,()=>{x.current&&(x.current(),x.current=null)})):A({pulsate:D,rippleX:$,rippleY:H,rippleSize:U,cb:z})},[l,A,w]),_=C.useCallback(()=>{j({},{pulsate:!0})},[j]),R=C.useCallback((N,T)=>{if(w.clear(),N?.type==="touchend"&&x.current){x.current(),x.current=null,w.start(0,()=>{R(N,T)});return}x.current=null,h(z=>z.length>0?z.slice(1):z),v.current=T},[w]);return C.useImperativeHandle(a,()=>({pulsate:_,start:j,stop:R}),[_,j,R]),y.jsx(NL,{className:Xe(tr.root,s.root,u),ref:b,...f,children:y.jsx(cg,{component:null,exit:!0,children:d})})});function ML(e){return Er("MuiButtonBase",e)}const BL=wr("MuiButtonBase",["root","disabled","focusVisible"]),LL=e=>{const{disabled:t,focusVisible:a,focusVisibleClassName:i,classes:l}=e,u=Fr({root:["root",t&&"disabled",a&&"focusVisible"]},ML,l);return a&&i&&(u.root+=` ${i}`),u},PL=ht("button",{name:"MuiButtonBase",slot:"Root"})({display:"inline-flex",alignItems:"center",justifyContent:"center",position:"relative",boxSizing:"border-box",WebkitTapHighlightColor:"transparent",backgroundColor:"transparent",outline:0,border:0,margin:0,borderRadius:0,padding:0,cursor:"pointer",userSelect:"none",verticalAlign:"middle",MozAppearance:"none",WebkitAppearance:"none",textDecoration:"none",color:"inherit","&::-moz-focus-inner":{borderStyle:"none"},[`&.${BL.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),n4=C.forwardRef(function(t,a){const i=Vr({props:t,name:"MuiButtonBase"}),{action:l,centerRipple:s=!1,children:u,className:f,component:d="button",disabled:h=!1,disableRipple:m=!1,disableTouchRipple:v=!1,focusRipple:S=!1,focusVisibleClassName:w,LinkComponent:x="a",onBlur:b,onClick:A,onContextMenu:j,onDragLeave:_,onFocus:R,onFocusVisible:N,onKeyDown:T,onKeyUp:z,onMouseDown:D,onMouseLeave:V,onMouseUp:Q,onTouchEnd:Z,onTouchMove:q,onTouchStart:$,tabIndex:H=0,TouchRippleProps:U,touchRippleRef:Y,type:k,...P}=i,J=C.useRef(null),ue=RL(),ye=Im(ue.ref,Y),[M,G]=C.useState(!1);h&&M&&G(!1),C.useImperativeHandle(l,()=>({focusVisible:()=>{G(!0),J.current.focus()}}),[]);const le=ue.shouldMount&&!m&&!h;C.useEffect(()=>{M&&S&&!m&&ue.pulsate()},[m,S,M,ue]);const ce=pa(ue,"start",D,v),de=pa(ue,"stop",j,v),me=pa(ue,"stop",_,v),se=pa(ue,"stop",Q,v),ie=pa(ue,"stop",we=>{M&&we.preventDefault(),V&&V(we)},v),pe=pa(ue,"start",$,v),xe=pa(ue,"stop",Z,v),ze=pa(ue,"stop",q,v),mt=pa(ue,"stop",we=>{Lx(we.target)||G(!1),b&&b(we)},!1),Bt=Gu(we=>{J.current||(J.current=we.currentTarget),Lx(we.target)&&(G(!0),N&&N(we)),R&&R(we)}),wt=()=>{const we=J.current;return d&&d!=="button"&&!(we.tagName==="A"&&we.href)},An=Gu(we=>{S&&!we.repeat&&M&&we.key===" "&&ue.stop(we,()=>{ue.start(we)}),we.target===we.currentTarget&&wt()&&we.key===" "&&we.preventDefault(),T&&T(we),we.target===we.currentTarget&&wt()&&we.key==="Enter"&&!h&&(we.preventDefault(),A&&A(we))}),Vn=Gu(we=>{S&&we.key===" "&&M&&!we.defaultPrevented&&ue.stop(we,()=>{ue.pulsate(we)}),z&&z(we),A&&we.target===we.currentTarget&&wt()&&we.key===" "&&!we.defaultPrevented&&A(we)});let nn=d;nn==="button"&&(P.href||P.to)&&(nn=x);const cn={};if(nn==="button"){const we=!!P.formAction;cn.type=k===void 0&&!we?"button":k,cn.disabled=h}else!P.href&&!P.to&&(cn.role="button"),h&&(cn["aria-disabled"]=h);const hr=Im(a,J),Lt={...i,centerRipple:s,component:d,disabled:h,disableRipple:m,disableTouchRipple:v,focusRipple:S,tabIndex:H,focusVisible:M},un=LL(Lt);return y.jsxs(PL,{as:nn,className:Xe(un.root,f),ownerState:Lt,onBlur:mt,onClick:A,onContextMenu:de,onFocus:Bt,onKeyDown:An,onKeyUp:Vn,onMouseDown:ce,onMouseLeave:ie,onMouseUp:se,onDragLeave:me,onTouchEnd:xe,onTouchMove:ze,onTouchStart:pe,ref:hr,tabIndex:h?-1:H,type:k,...cn,...P,children:[u,le?y.jsx(DL,{ref:ye,center:s,...U}):null]})});function pa(e,t,a,i=!1){return Gu(l=>(a&&a(l),i||e[t](l),!0))}function IL(e){return typeof e.main=="string"}function HL(e,t=[]){if(!IL(e))return!1;for(const a of t)if(!e.hasOwnProperty(a)||typeof e[a]!="string")return!1;return!0}function ri(e=[]){return([,t])=>t&&HL(t,e)}function UL(e){return Er("MuiAlert",e)}const Px=wr("MuiAlert",["root","action","icon","message","filled","colorSuccess","colorInfo","colorWarning","colorError","filledSuccess","filledInfo","filledWarning","filledError","outlined","outlinedSuccess","outlinedInfo","outlinedWarning","outlinedError","standard","standardSuccess","standardInfo","standardWarning","standardError"]);function FL(e){return Er("MuiCircularProgress",e)}wr("MuiCircularProgress",["root","determinate","indeterminate","colorPrimary","colorSecondary","svg","track","circle","circleDeterminate","circleIndeterminate","circleDisableShrink"]);const xr=44,Zm=ml`
656
+ 0% {
657
+ transform: rotate(0deg);
658
+ }
659
+
660
+ 100% {
661
+ transform: rotate(360deg);
662
+ }
663
+ `,e0=ml`
664
+ 0% {
665
+ stroke-dasharray: 1px, 200px;
666
+ stroke-dashoffset: 0;
667
+ }
668
+
669
+ 50% {
670
+ stroke-dasharray: 100px, 200px;
671
+ stroke-dashoffset: -15px;
672
+ }
673
+
674
+ 100% {
675
+ stroke-dasharray: 1px, 200px;
676
+ stroke-dashoffset: -126px;
677
+ }
678
+ `,VL=typeof Zm!="string"?zf`
679
+ animation: ${Zm} 1.4s linear infinite;
680
+ `:null,qL=typeof e0!="string"?zf`
681
+ animation: ${e0} 1.4s ease-in-out infinite;
682
+ `:null,YL=e=>{const{classes:t,variant:a,color:i,disableShrink:l}=e,s={root:["root",a,`color${tt(i)}`],svg:["svg"],track:["track"],circle:["circle",`circle${tt(a)}`,l&&"circleDisableShrink"]};return Fr(s,FL,t)},GL=ht("span",{name:"MuiCircularProgress",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:a}=e;return[t.root,t[a.variant],t[`color${tt(a.color)}`]]}})(ln(({theme:e})=>({display:"inline-block",variants:[{props:{variant:"determinate"},style:{transition:e.transitions.create("transform")}},{props:{variant:"indeterminate"},style:VL||{animation:`${Zm} 1.4s linear infinite`}},...Object.entries(e.palette).filter(ri()).map(([t])=>({props:{color:t},style:{color:(e.vars||e).palette[t].main}}))]}))),WL=ht("svg",{name:"MuiCircularProgress",slot:"Svg"})({display:"block"}),KL=ht("circle",{name:"MuiCircularProgress",slot:"Circle",overridesResolver:(e,t)=>{const{ownerState:a}=e;return[t.circle,t[`circle${tt(a.variant)}`],a.disableShrink&&t.circleDisableShrink]}})(ln(({theme:e})=>({stroke:"currentColor",variants:[{props:{variant:"determinate"},style:{transition:e.transitions.create("stroke-dashoffset")}},{props:{variant:"indeterminate"},style:{strokeDasharray:"80px, 200px",strokeDashoffset:0}},{props:({ownerState:t})=>t.variant==="indeterminate"&&!t.disableShrink,style:qL||{animation:`${e0} 1.4s ease-in-out infinite`}}]}))),XL=ht("circle",{name:"MuiCircularProgress",slot:"Track"})(ln(({theme:e})=>({stroke:"currentColor",opacity:(e.vars||e).palette.action.activatedOpacity}))),QL=C.forwardRef(function(t,a){const i=Vr({props:t,name:"MuiCircularProgress"}),{className:l,color:s="primary",disableShrink:u=!1,enableTrackSlot:f=!1,size:d=40,style:h,thickness:m=3.6,value:v=0,variant:S="indeterminate",...w}=i,x={...i,color:s,disableShrink:u,size:d,thickness:m,value:v,variant:S,enableTrackSlot:f},b=YL(x),A={},j={},_={};if(S==="determinate"){const R=2*Math.PI*((xr-m)/2);A.strokeDasharray=R.toFixed(3),_["aria-valuenow"]=Math.round(v),A.strokeDashoffset=`${((100-v)/100*R).toFixed(3)}px`,j.transform="rotate(-90deg)"}return y.jsx(GL,{className:Xe(b.root,l),style:{width:d,height:d,...j,...h},ownerState:x,ref:a,role:"progressbar",..._,...w,children:y.jsxs(WL,{className:b.svg,ownerState:x,viewBox:`${xr/2} ${xr/2} ${xr} ${xr}`,children:[f?y.jsx(XL,{className:b.track,ownerState:x,cx:xr,cy:xr,r:(xr-m)/2,fill:"none",strokeWidth:m,"aria-hidden":"true"}):null,y.jsx(KL,{className:b.circle,style:A,ownerState:x,cx:xr,cy:xr,r:(xr-m)/2,fill:"none",strokeWidth:m})]})})});function JL(e){return Er("MuiIconButton",e)}const Ix=wr("MuiIconButton",["root","disabled","colorInherit","colorPrimary","colorSecondary","colorError","colorInfo","colorSuccess","colorWarning","edgeStart","edgeEnd","sizeSmall","sizeMedium","sizeLarge","loading","loadingIndicator","loadingWrapper"]),ZL=e=>{const{classes:t,disabled:a,color:i,edge:l,size:s,loading:u}=e,f={root:["root",u&&"loading",a&&"disabled",i!=="default"&&`color${tt(i)}`,l&&`edge${tt(l)}`,`size${tt(s)}`],loadingIndicator:["loadingIndicator"],loadingWrapper:["loadingWrapper"]};return Fr(f,JL,t)},eP=ht(n4,{name:"MuiIconButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:a}=e;return[t.root,a.loading&&t.loading,a.color!=="default"&&t[`color${tt(a.color)}`],a.edge&&t[`edge${tt(a.edge)}`],t[`size${tt(a.size)}`]]}})(ln(({theme:e})=>({textAlign:"center",flex:"0 0 auto",fontSize:e.typography.pxToRem(24),padding:8,borderRadius:"50%",color:(e.vars||e).palette.action.active,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shortest}),variants:[{props:t=>!t.disableRipple,style:{"--IconButton-hoverBg":e.alpha((e.vars||e).palette.action.active,(e.vars||e).palette.action.hoverOpacity),"&:hover":{backgroundColor:"var(--IconButton-hoverBg)","@media (hover: none)":{backgroundColor:"transparent"}}}},{props:{edge:"start"},style:{marginLeft:-12}},{props:{edge:"start",size:"small"},style:{marginLeft:-3}},{props:{edge:"end"},style:{marginRight:-12}},{props:{edge:"end",size:"small"},style:{marginRight:-3}}]})),ln(({theme:e})=>({variants:[{props:{color:"inherit"},style:{color:"inherit"}},...Object.entries(e.palette).filter(ri()).map(([t])=>({props:{color:t},style:{color:(e.vars||e).palette[t].main}})),...Object.entries(e.palette).filter(ri()).map(([t])=>({props:{color:t},style:{"--IconButton-hoverBg":e.alpha((e.vars||e).palette[t].main,(e.vars||e).palette.action.hoverOpacity)}})),{props:{size:"small"},style:{padding:5,fontSize:e.typography.pxToRem(18)}},{props:{size:"large"},style:{padding:12,fontSize:e.typography.pxToRem(28)}}],[`&.${Ix.disabled}`]:{backgroundColor:"transparent",color:(e.vars||e).palette.action.disabled},[`&.${Ix.loading}`]:{color:"transparent"}}))),tP=ht("span",{name:"MuiIconButton",slot:"LoadingIndicator"})(({theme:e})=>({display:"none",position:"absolute",visibility:"visible",top:"50%",left:"50%",transform:"translate(-50%, -50%)",color:(e.vars||e).palette.action.disabled,variants:[{props:{loading:!0},style:{display:"flex"}}]})),nP=C.forwardRef(function(t,a){const i=Vr({props:t,name:"MuiIconButton"}),{edge:l=!1,children:s,className:u,color:f="default",disabled:d=!1,disableFocusRipple:h=!1,size:m="medium",id:v,loading:S=null,loadingIndicator:w,...x}=i,b=cM(v),A=w??y.jsx(QL,{"aria-labelledby":b,color:"inherit",size:16}),j={...i,edge:l,color:f,disabled:d,disableFocusRipple:h,loading:S,loadingIndicator:A,size:m},_=ZL(j);return y.jsxs(eP,{id:S?b:v,className:Xe(_.root,u),centerRipple:!0,focusRipple:!h,disabled:d||S,ref:a,...x,ownerState:j,children:[typeof S=="boolean"&&y.jsx("span",{className:_.loadingWrapper,style:{display:"contents"},children:y.jsx(tP,{className:_.loadingIndicator,ownerState:j,children:S&&A})}),s]})}),rP=Qi(y.jsx("path",{d:"M20,12A8,8 0 0,1 12,20A8,8 0 0,1 4,12A8,8 0 0,1 12,4C12.76,4 13.5,4.11 14.2, 4.31L15.77,2.74C14.61,2.26 13.34,2 12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0, 0 22,12M7.91,10.08L6.5,11.5L11,16L21,6L19.59,4.58L11,13.17L7.91,10.08Z"})),aP=Qi(y.jsx("path",{d:"M12 5.99L19.53 19H4.47L12 5.99M12 2L1 21h22L12 2zm1 14h-2v2h2v-2zm0-6h-2v4h2v-4z"})),iP=Qi(y.jsx("path",{d:"M11 15h2v2h-2zm0-8h2v6h-2zm.99-5C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zM12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"})),oP=Qi(y.jsx("path",{d:"M11,9H13V7H11M12,20C7.59,20 4,16.41 4,12C4,7.59 7.59,4 12,4C16.41,4 20,7.59 20, 12C20,16.41 16.41,20 12,20M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10, 10 0 0,0 12,2M11,17H13V11H11V17Z"})),lP=Qi(y.jsx("path",{d:"M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"})),sP=e=>{const{variant:t,color:a,severity:i,classes:l}=e,s={root:["root",`color${tt(a||i)}`,`${t}${tt(a||i)}`,`${t}`],icon:["icon"],message:["message"],action:["action"]};return Fr(s,UL,l)},cP=ht(AL,{name:"MuiAlert",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:a}=e;return[t.root,t[a.variant],t[`${a.variant}${tt(a.color||a.severity)}`]]}})(ln(({theme:e})=>{const t=e.palette.mode==="light"?e.darken:e.lighten,a=e.palette.mode==="light"?e.lighten:e.darken;return{...e.typography.body2,backgroundColor:"transparent",display:"flex",padding:"6px 16px",variants:[...Object.entries(e.palette).filter(ri(["light"])).map(([i])=>({props:{colorSeverity:i,variant:"standard"},style:{color:e.vars?e.vars.palette.Alert[`${i}Color`]:t(e.palette[i].light,.6),backgroundColor:e.vars?e.vars.palette.Alert[`${i}StandardBg`]:a(e.palette[i].light,.9),[`& .${Px.icon}`]:e.vars?{color:e.vars.palette.Alert[`${i}IconColor`]}:{color:e.palette[i].main}}})),...Object.entries(e.palette).filter(ri(["light"])).map(([i])=>({props:{colorSeverity:i,variant:"outlined"},style:{color:e.vars?e.vars.palette.Alert[`${i}Color`]:t(e.palette[i].light,.6),border:`1px solid ${(e.vars||e).palette[i].light}`,[`& .${Px.icon}`]:e.vars?{color:e.vars.palette.Alert[`${i}IconColor`]}:{color:e.palette[i].main}}})),...Object.entries(e.palette).filter(ri(["dark"])).map(([i])=>({props:{colorSeverity:i,variant:"filled"},style:{fontWeight:e.typography.fontWeightMedium,...e.vars?{color:e.vars.palette.Alert[`${i}FilledColor`],backgroundColor:e.vars.palette.Alert[`${i}FilledBg`]}:{backgroundColor:e.palette.mode==="dark"?e.palette[i].dark:e.palette[i].main,color:e.palette.getContrastText(e.palette[i].main)}}}))]}})),uP=ht("div",{name:"MuiAlert",slot:"Icon"})({marginRight:12,padding:"7px 0",display:"flex",fontSize:22,opacity:.9}),fP=ht("div",{name:"MuiAlert",slot:"Message"})({padding:"8px 0",minWidth:0,overflow:"auto"}),dP=ht("div",{name:"MuiAlert",slot:"Action"})({display:"flex",alignItems:"flex-start",padding:"4px 0 0 16px",marginLeft:"auto",marginRight:-8}),Hx={success:y.jsx(rP,{fontSize:"inherit"}),warning:y.jsx(aP,{fontSize:"inherit"}),error:y.jsx(iP,{fontSize:"inherit"}),info:y.jsx(oP,{fontSize:"inherit"})},r4=C.forwardRef(function(t,a){const i=Vr({props:t,name:"MuiAlert"}),{action:l,children:s,className:u,closeText:f="Close",color:d,components:h={},componentsProps:m={},icon:v,iconMapping:S=Hx,onClose:w,role:x="alert",severity:b="success",slotProps:A={},slots:j={},variant:_="standard",...R}=i,N={...i,color:d,severity:b,variant:_,colorSeverity:d||b},T=sP(N),z={slots:{closeButton:h.CloseButton,closeIcon:h.CloseIcon,...j},slotProps:{...m,...A}},[D,V]=ar("root",{ref:a,shouldForwardComponentProp:!0,className:Xe(T.root,u),elementType:cP,externalForwardedProps:{...z,...R},ownerState:N,additionalProps:{role:x,elevation:0}}),[Q,Z]=ar("icon",{className:T.icon,elementType:uP,externalForwardedProps:z,ownerState:N}),[q,$]=ar("message",{className:T.message,elementType:fP,externalForwardedProps:z,ownerState:N}),[H,U]=ar("action",{className:T.action,elementType:dP,externalForwardedProps:z,ownerState:N}),[Y,k]=ar("closeButton",{elementType:nP,externalForwardedProps:z,ownerState:N}),[P,J]=ar("closeIcon",{elementType:lP,externalForwardedProps:z,ownerState:N});return y.jsxs(D,{...V,children:[v!==!1?y.jsx(Q,{...Z,children:v||S[b]||Hx[b]}):null,y.jsx(q,{...$,children:s}),l!=null?y.jsx(H,{...U,children:l}):null,l==null&&w?y.jsx(H,{...U,children:y.jsx(Y,{size:"small","aria-label":f,title:f,color:"inherit",onClick:w,...k,children:y.jsx(P,{fontSize:"small",...J})})}):null]})});function pP(e){return Er("MuiTypography",e)}wr("MuiTypography",["root","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","inherit","button","caption","overline","alignLeft","alignRight","alignCenter","alignJustify","noWrap","gutterBottom","paragraph"]);const hP={primary:!0,secondary:!0,error:!0,info:!0,success:!0,warning:!0,textPrimary:!0,textSecondary:!0,textDisabled:!0},mP=nM(),gP=e=>{const{align:t,gutterBottom:a,noWrap:i,paragraph:l,variant:s,classes:u}=e,f={root:["root",s,e.align!=="inherit"&&`align${tt(t)}`,a&&"gutterBottom",i&&"noWrap",l&&"paragraph"]};return Fr(f,pP,u)},vP=ht("span",{name:"MuiTypography",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:a}=e;return[t.root,a.variant&&t[a.variant],a.align!=="inherit"&&t[`align${tt(a.align)}`],a.noWrap&&t.noWrap,a.gutterBottom&&t.gutterBottom,a.paragraph&&t.paragraph]}})(ln(({theme:e})=>({margin:0,variants:[{props:{variant:"inherit"},style:{font:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}},...Object.entries(e.typography).filter(([t,a])=>t!=="inherit"&&a&&typeof a=="object").map(([t,a])=>({props:{variant:t},style:a})),...Object.entries(e.palette).filter(ri()).map(([t])=>({props:{color:t},style:{color:(e.vars||e).palette[t].main}})),...Object.entries(e.palette?.text||{}).filter(([,t])=>typeof t=="string").map(([t])=>({props:{color:`text${tt(t)}`},style:{color:(e.vars||e).palette.text[t]}})),{props:({ownerState:t})=>t.align!=="inherit",style:{textAlign:"var(--Typography-textAlign)"}},{props:({ownerState:t})=>t.noWrap,style:{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"}},{props:({ownerState:t})=>t.gutterBottom,style:{marginBottom:"0.35em"}},{props:({ownerState:t})=>t.paragraph,style:{marginBottom:16}}]}))),Ux={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},Fx=C.forwardRef(function(t,a){const{color:i,...l}=Vr({props:t,name:"MuiTypography"}),s=!hP[i],u=mP({...l,...s&&{color:i}}),{align:f="inherit",className:d,component:h,gutterBottom:m=!1,noWrap:v=!1,paragraph:S=!1,variant:w="body1",variantMapping:x=Ux,...b}=u,A={...u,align:f,color:i,className:d,component:h,gutterBottom:m,noWrap:v,paragraph:S,variant:w,variantMapping:x},j=h||(S?"p":x[w]||Ux[w])||"span",_=gP(A);return y.jsx(vP,{as:j,ref:a,className:Xe(_.root,d),...b,ownerState:A,style:{...f!=="inherit"&&{"--Typography-textAlign":f},...b.style}})});function yP({props:e,states:t,muiFormControl:a}){return t.reduce((i,l)=>(i[l]=e[l],a&&typeof e[l]>"u"&&(i[l]=a[l]),i),{})}const bP=C.createContext(void 0);function a4(){return C.useContext(bP)}function xP(e){return Er("PrivateSwitchBase",e)}wr("PrivateSwitchBase",["root","checked","disabled","input","edgeStart","edgeEnd"]);const SP=e=>{const{classes:t,checked:a,disabled:i,edge:l}=e,s={root:["root",a&&"checked",i&&"disabled",l&&`edge${tt(l)}`],input:["input"]};return Fr(s,xP,t)},CP=ht(n4,{name:"MuiSwitchBase"})({padding:9,borderRadius:"50%",variants:[{props:{edge:"start",size:"small"},style:{marginLeft:-3}},{props:({edge:e,ownerState:t})=>e==="start"&&t.size!=="small",style:{marginLeft:-12}},{props:{edge:"end",size:"small"},style:{marginRight:-3}},{props:({edge:e,ownerState:t})=>e==="end"&&t.size!=="small",style:{marginRight:-12}}]}),EP=ht("input",{name:"MuiSwitchBase",shouldForwardProp:d3})({cursor:"inherit",position:"absolute",opacity:0,width:"100%",height:"100%",top:0,left:0,margin:0,padding:0,zIndex:1}),wP=C.forwardRef(function(t,a){const{autoFocus:i,checked:l,checkedIcon:s,defaultChecked:u,disabled:f,disableFocusRipple:d=!1,edge:h=!1,icon:m,id:v,inputProps:S,inputRef:w,name:x,onBlur:b,onChange:A,onFocus:j,readOnly:_,required:R=!1,tabIndex:N,type:T,value:z,slots:D={},slotProps:V={},...Q}=t,[Z,q]=uM({controlled:l,default:!!u}),$=a4(),H=de=>{j&&j(de),$&&$.onFocus&&$.onFocus(de)},U=de=>{b&&b(de),$&&$.onBlur&&$.onBlur(de)},Y=de=>{if(de.nativeEvent.defaultPrevented)return;const me=de.target.checked;q(me),A&&A(de,me)};let k=f;$&&typeof k>"u"&&(k=$.disabled);const P=T==="checkbox"||T==="radio",J={...t,checked:Z,disabled:k,disableFocusRipple:d,edge:h},ue=SP(J),ye={slots:D,slotProps:{input:S,...V}},[M,G]=ar("root",{ref:a,elementType:CP,className:ue.root,shouldForwardComponentProp:!0,externalForwardedProps:{...ye,component:"span",...Q},getSlotProps:de=>({...de,onFocus:me=>{de.onFocus?.(me),H(me)},onBlur:me=>{de.onBlur?.(me),U(me)}}),ownerState:J,additionalProps:{centerRipple:!0,focusRipple:!d,disabled:k,role:void 0,tabIndex:null}}),[le,ce]=ar("input",{ref:w,elementType:EP,className:ue.input,externalForwardedProps:ye,getSlotProps:de=>({...de,onChange:me=>{de.onChange?.(me),Y(me)}}),ownerState:J,additionalProps:{autoFocus:i,checked:l,defaultChecked:u,disabled:k,id:P?v:void 0,name:x,readOnly:_,required:R,tabIndex:N,type:T,...T==="checkbox"&&z===void 0?{}:{value:z}}});return y.jsxs(M,{...G,children:[y.jsx(le,{...ce}),Z?s:m]})});function AP(e){return Er("MuiFormControlLabel",e)}const Rs=wr("MuiFormControlLabel",["root","labelPlacementStart","labelPlacementTop","labelPlacementBottom","disabled","label","error","required","asterisk"]),RP=e=>{const{classes:t,disabled:a,labelPlacement:i,error:l,required:s}=e,u={root:["root",a&&"disabled",`labelPlacement${tt(i)}`,l&&"error",s&&"required"],label:["label",a&&"disabled"],asterisk:["asterisk",l&&"error"]};return Fr(u,AP,t)},TP=ht("label",{name:"MuiFormControlLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:a}=e;return[{[`& .${Rs.label}`]:t.label},t.root,t[`labelPlacement${tt(a.labelPlacement)}`]]}})(ln(({theme:e})=>({display:"inline-flex",alignItems:"center",cursor:"pointer",verticalAlign:"middle",WebkitTapHighlightColor:"transparent",marginLeft:-11,marginRight:16,[`&.${Rs.disabled}`]:{cursor:"default"},[`& .${Rs.label}`]:{[`&.${Rs.disabled}`]:{color:(e.vars||e).palette.text.disabled}},variants:[{props:{labelPlacement:"start"},style:{flexDirection:"row-reverse",marginRight:-11}},{props:{labelPlacement:"top"},style:{flexDirection:"column-reverse"}},{props:{labelPlacement:"bottom"},style:{flexDirection:"column"}},{props:({labelPlacement:t})=>t==="start"||t==="top"||t==="bottom",style:{marginLeft:16}}]}))),$P=ht("span",{name:"MuiFormControlLabel",slot:"Asterisk"})(ln(({theme:e})=>({[`&.${Rs.error}`]:{color:(e.vars||e).palette.error.main}}))),OP=C.forwardRef(function(t,a){const i=Vr({props:t,name:"MuiFormControlLabel"}),{checked:l,className:s,componentsProps:u={},control:f,disabled:d,disableTypography:h,inputRef:m,label:v,labelPlacement:S="end",name:w,onChange:x,required:b,slots:A={},slotProps:j={},value:_,...R}=i,N=a4(),T=d??f.props.disabled??N?.disabled,z=b??f.props.required,D={disabled:T,required:z};["checked","name","onChange","value","inputRef"].forEach(Y=>{typeof f.props[Y]>"u"&&typeof i[Y]<"u"&&(D[Y]=i[Y])});const V=yP({props:i,muiFormControl:N,states:["error"]}),Q={...i,disabled:T,labelPlacement:S,required:z,error:V.error},Z=RP(Q),q={slots:A,slotProps:{...u,...j}},[$,H]=ar("typography",{elementType:Fx,externalForwardedProps:q,ownerState:Q});let U=v;return U!=null&&U.type!==Fx&&!h&&(U=y.jsx($,{component:"span",...H,className:Xe(Z.label,H?.className),children:U})),y.jsxs(TP,{className:Xe(Z.root,s),ownerState:Q,ref:a,...R,children:[C.cloneElement(f,D),z?y.jsxs("div",{children:[U,y.jsxs($P,{ownerState:Q,"aria-hidden":!0,className:Z.asterisk,children:[" ","*"]})]}):U]})});function _P(e){return Er("MuiSwitch",e)}const on=wr("MuiSwitch",["root","edgeStart","edgeEnd","switchBase","colorPrimary","colorSecondary","sizeSmall","sizeMedium","checked","disabled","input","thumb","track"]),jP=e=>{const{classes:t,edge:a,size:i,color:l,checked:s,disabled:u}=e,f={root:["root",a&&`edge${tt(a)}`,`size${tt(i)}`],switchBase:["switchBase",`color${tt(l)}`,s&&"checked",u&&"disabled"],thumb:["thumb"],track:["track"],input:["input"]},d=Fr(f,_P,t);return{...t,...d}},kP=ht("span",{name:"MuiSwitch",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:a}=e;return[t.root,a.edge&&t[`edge${tt(a.edge)}`],t[`size${tt(a.size)}`]]}})({display:"inline-flex",width:58,height:38,overflow:"hidden",padding:12,boxSizing:"border-box",position:"relative",flexShrink:0,zIndex:0,verticalAlign:"middle","@media print":{colorAdjust:"exact"},variants:[{props:{edge:"start"},style:{marginLeft:-8}},{props:{edge:"end"},style:{marginRight:-8}},{props:{size:"small"},style:{width:40,height:24,padding:7,[`& .${on.thumb}`]:{width:16,height:16},[`& .${on.switchBase}`]:{padding:4,[`&.${on.checked}`]:{transform:"translateX(16px)"}}}}]}),NP=ht(wP,{name:"MuiSwitch",slot:"SwitchBase",overridesResolver:(e,t)=>{const{ownerState:a}=e;return[t.switchBase,{[`& .${on.input}`]:t.input},a.color!=="default"&&t[`color${tt(a.color)}`]]}})(ln(({theme:e})=>({position:"absolute",top:0,left:0,zIndex:1,color:e.vars?e.vars.palette.Switch.defaultColor:`${e.palette.mode==="light"?e.palette.common.white:e.palette.grey[300]}`,transition:e.transitions.create(["left","transform"],{duration:e.transitions.duration.shortest}),[`&.${on.checked}`]:{transform:"translateX(20px)"},[`&.${on.disabled}`]:{color:e.vars?e.vars.palette.Switch.defaultDisabledColor:`${e.palette.mode==="light"?e.palette.grey[100]:e.palette.grey[600]}`},[`&.${on.checked} + .${on.track}`]:{opacity:.5},[`&.${on.disabled} + .${on.track}`]:{opacity:e.vars?e.vars.opacity.switchTrackDisabled:`${e.palette.mode==="light"?.12:.2}`},[`& .${on.input}`]:{left:"-100%",width:"300%"}})),ln(({theme:e})=>({"&:hover":{backgroundColor:e.alpha((e.vars||e).palette.action.active,(e.vars||e).palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},variants:[...Object.entries(e.palette).filter(ri(["light"])).map(([t])=>({props:{color:t},style:{[`&.${on.checked}`]:{color:(e.vars||e).palette[t].main,"&:hover":{backgroundColor:e.alpha((e.vars||e).palette[t].main,(e.vars||e).palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${on.disabled}`]:{color:e.vars?e.vars.palette.Switch[`${t}DisabledColor`]:`${e.palette.mode==="light"?e.lighten(e.palette[t].main,.62):e.darken(e.palette[t].main,.55)}`}},[`&.${on.checked} + .${on.track}`]:{backgroundColor:(e.vars||e).palette[t].main}}}))]}))),zP=ht("span",{name:"MuiSwitch",slot:"Track"})(ln(({theme:e})=>({height:"100%",width:"100%",borderRadius:14/2,zIndex:-1,transition:e.transitions.create(["opacity","background-color"],{duration:e.transitions.duration.shortest}),backgroundColor:e.vars?e.vars.palette.common.onBackground:`${e.palette.mode==="light"?e.palette.common.black:e.palette.common.white}`,opacity:e.vars?e.vars.opacity.switchTrack:`${e.palette.mode==="light"?.38:.3}`}))),DP=ht("span",{name:"MuiSwitch",slot:"Thumb"})(ln(({theme:e})=>({boxShadow:(e.vars||e).shadows[1],backgroundColor:"currentColor",width:20,height:20,borderRadius:"50%"}))),MP=C.forwardRef(function(t,a){const i=Vr({props:t,name:"MuiSwitch"}),{className:l,color:s="primary",edge:u=!1,size:f="medium",sx:d,slots:h={},slotProps:m={},...v}=i,S={...i,color:s,edge:u,size:f},w=jP(S),x={slots:h,slotProps:m},[b,A]=ar("root",{className:Xe(w.root,l),elementType:kP,externalForwardedProps:x,ownerState:S,additionalProps:{sx:d}}),[j,_]=ar("thumb",{className:w.thumb,elementType:DP,externalForwardedProps:x,ownerState:S}),R=y.jsx(j,{..._}),[N,T]=ar("track",{className:w.track,elementType:zP,externalForwardedProps:x,ownerState:S});return y.jsxs(b,{...A,children:[y.jsx(NP,{type:"checkbox",icon:R,checkedIcon:R,ref:a,ownerState:S,...v,classes:{...w,root:w.switchBase},slots:{...h.switchBase&&{root:h.switchBase},...h.input&&{input:h.input}},slotProps:{...m.switchBase&&{root:typeof m.switchBase=="function"?m.switchBase(S):m.switchBase},input:{role:"switch"},...m.input&&{input:typeof m.input=="function"?m.input(S):m.input}}}),y.jsx(N,{...T})]})}),BP=["B","kB","MB","GB","TB","PB","EB","ZB","YB"],LP=["B","KiB","MiB","GiB","TiB","PiB","EiB","ZiB","YiB"],PP=["b","kbit","Mbit","Gbit","Tbit","Pbit","Ebit","Zbit","Ybit"],IP=["b","kibit","Mibit","Gibit","Tibit","Pibit","Eibit","Zibit","Yibit"],Vx=(e,t,a)=>{let i=e;return typeof t=="string"||Array.isArray(t)?i=e.toLocaleString(t,a):(t===!0||a!==void 0)&&(i=e.toLocaleString(void 0,a)),i},i4=e=>{if(typeof e=="number")return Math.log10(e);const t=e.toString(10);return t.length+Math.log10(`0.${t.slice(0,15)}`)},HP=e=>typeof e=="number"?Math.log(e):i4(e)*Math.log(10),UP=(e,t)=>{if(typeof e=="number")return e/t;const a=e/BigInt(t),i=e%BigInt(t);return Number(a)+Number(i)/t},qx=(e,t)=>{if(t===void 0)return e;if(typeof t!="number"||!Number.isSafeInteger(t)||t<0)throw new TypeError(`Expected fixedWidth to be a non-negative integer, got ${typeof t}: ${t}`);return t===0?e:e.length<t?e.padStart(t," "):e},FP=e=>{const{minimumFractionDigits:t,maximumFractionDigits:a}=e;if(!(t===void 0&&a===void 0))return{...t!==void 0&&{minimumFractionDigits:t},...a!==void 0&&{maximumFractionDigits:a},roundingMode:"trunc"}};function ir(e,t){if(typeof e!="bigint"&&!Number.isFinite(e))throw new TypeError(`Expected a finite number, got ${typeof e}: ${e}`);t={bits:!1,binary:!1,space:!0,nonBreakingSpace:!1,...t};const a=t.bits?t.binary?IP:PP:t.binary?LP:BP,i=t.space?t.nonBreakingSpace?" ":" ":"",l=typeof e=="number"?e===0:e===0n;if(t.signed&&l){const h=` 0${i}${a[0]}`;return qx(h,t.fixedWidth)}const s=e<0,u=s?"-":t.signed?"+":"";s&&(e=-e);const f=FP(t);let d;if(e<1){const h=Vx(e,t.locale,f);d=u+h+i+a[0]}else{const h=Math.min(Math.floor(t.binary?HP(e)/Math.log(1024):i4(e)/3),a.length-1);if(e=UP(e,(t.binary?1024:1e3)**h),!f){const S=Math.max(3,Math.floor(e).toString().length);e=e.toPrecision(S)}const m=Vx(Number(e),t.locale,f),v=a[h];d=u+m+i+v}return qx(d,t.fixedWidth)}const VP="/api/torrents/:hash/download";function qP(){const[e,t]=C.useState(),[a,i]=C.useState(!1),[l,s]=C.useState(),u=async(d,h,m)=>{const v=await Pn(),S=new URL(VP.replace(":hash",d),v["torrent-streamer-api"].external?v["torrent-streamer-api"].origin:location.origin),w=await He.post(S.href,{path:h,files:m});if(w.status===200){const x=w.data;console.log(x),await sB(x)}return w};return{resp:e,isLoading:a,err:l,run:(d,h,m)=>{i(!0),s(""),t(void 0),u(d,h,m).then(v=>{t(v)}).catch(v=>{s(v.message)}).finally(()=>{i(!1)})}}}function yf({classname:e,children:t,onClose:a,blur:i,title:l}){const[s,u]=C.useState(0);C.useEffect(()=>{setTimeout(()=>{u(1)},10)},[]);const f=()=>{u(0),setTimeout(()=>{a()},150)};return y.jsxs(y.Fragment,{children:[y.jsx("div",{style:{opacity:s},className:"duration-200 w-full h-screen top-0 left-0 fixed bg-[#00000069] z-998",onClick:f}),y.jsxs("div",{style:{scale:s},className:"duration-225 fixed top-[50%] bg-black left-[50%] translate-[-50%] min-w-[500px] z-999 ${classname} scale",children:[y.jsxs("div",{className:"flex justify-between p-2",children:[y.jsx("h1",{className:" text-xl font-bold relative",children:l}),y.jsx("div",{className:"cursor-pointer",onClick:f,children:y.jsx(Ne,{icon:ES,className:"h-7 mr-2"})})]}),t]})]})}function Yx({download:e}){return y.jsxs("div",{children:[y.jsxs("div",{children:[ir(e.downloaded||0)," / ",ir(e.size||0)]}),y.jsxs("div",{className:"flex items-center gap-5",children:[y.jsx("div",{className:"w-[200px] relative bg-white h-2 rounded-full",children:y.jsx("div",{style:{width:`${((e.downloaded||0)/(e.size||1)*100).toFixed(2)}%`},className:"h-2 bg-green-600 rounded-full"})}),y.jsxs("p",{children:[((e.downloaded||0)/(e.size||1)*100).toFixed(2),"%"]})]})]})}function o4({files:e,onSet:t,onError:a}){const[i,l]=C.useState([]);C.useEffect(()=>{l([...e])},[]);const s=u=>{u.selected=!u.selected,l([...i])};return y.jsxs("div",{className:"rounded-md p-3 max-h-[80vh] bg-[#161616] min-w-[400px] select-none",children:[y.jsx("h1",{className:"text-xl font-bold mb-3",children:"Files"}),y.jsx("div",{className:"overflow-y-scroll max-h-[60vh]",children:i&&i.map((u,f)=>{const d=u.paused?20:31,h=u.path.split("/").at(-1);let m=u.path.split("/").at(-1)?.slice(0,d);return m+=(m?.length||0)>=d?"..."+h?.slice(h.length-3):"",y.jsxs("div",{onClick:()=>{s(u)},className:"grid cursor-pointer grid-cols-12 items-center justify-center mb-3",children:[y.jsx("h1",{className:`${u.paused?"col-span-7":"col-span-9"} md:text-base text-[12px] wrap-break-word`,title:h,children:m}),y.jsx("p",{className:"col-span-2 md:text-base text-[12px]",children:ir(u.size)||0}),y.jsx("div",{className:"flex items-center",children:y.jsx("input",{checked:u.selected,type:"checkbox",className:"scale-150"})}),u.paused&&y.jsx("div",{className:"col-span-2 flex justify-center",children:y.jsx("p",{className:"rounded-full md:ps-3 md:pr-3 p-1 pb-1 md:pt-2 text-[9px] md:pb-2 md:text-sm text-yellow-600 font-bold border-yellow-600 border-2",children:"paused"})})]},f)})}),y.jsxs("div",{className:"flex items-center justify-between mt-3",children:[y.jsxs("div",{className:"cursor-pointer",onClick:()=>{if(!i.length)return;let u=i.map(f=>({...f,selected:i.filter(d=>d.selected).length!==i.length||!1}));l(u)},children:["select all"," ",y.jsx("input",{type:"checkbox",className:"scale-150 ms-2",checked:i.filter(u=>u.selected).length===i.length})]}),y.jsx(Xi,{onClick:async()=>{try{if(!t)return;await t(i)}catch(u){a&&a(u)}},className:"text-base! ps-8! pr-8! rounded-xl! pt-2! pb-2!",children:"Set"})]})]})}function YP(e){let t=0;return e.map(a=>{a.name.endsWith(".mp4")||a.name.endsWith(".mkv")||t++}),t}function l4({hash:e,resp:t,isLoading:a,err:i,saved:l,onSave:s}){const[u,f]=C.useState(!1),[d,h]=C.useState(!1),{resp:m,isLoading:v,err:S}=e4(),[w,x]=C.useState(!1),{resp:b}=qP(),[A,j]=C.useState(+localStorage.sov),_=sn(),[R,N]=C.useState(),[T,z]=C.useState(),[D,V]=C.useState(),[Q,Z]=C.useState(!1);return C.useEffect(()=>{if(!t)return;let q=0;t?.map($=>{($.name.endsWith(".mp4")||$.name.endsWith(".mkv"))&&(q+=$.size,V(H=>H?[...H,{streamUrl:$.downloadLink,name:$.name}]:[{streamUrl:$.downloadLink,name:$.name}]))}),z(q)},[t]),C.useEffect(()=>{Pn().then(q=>N(q))},[]),C.useEffect(()=>{b?.status===208&&alert(b.data.err)},[b]),y.jsxs(y.Fragment,{children:[Q&&y.jsx(yf,{title:"Select Files",onClose:()=>Z(!1),children:y.jsx(o4,{files:t.map(q=>({selected:!0,paused:!1,downloaded:0,size:q.size,streamed:!1,path:q.path})),infoHash:e,onSet:async q=>{Z(!1);const $=await Pn(),H=new URL(`/api/torrents/${e}/download`,$["torrent-streamer-api"].external?$["torrent-streamer-api"].origin:location.origin),U=await He.post(H.href,{files:q.map(Y=>Y.selected?Y.path:""),path:await window.electron.selectFolder()});if(U.status!==200)throw new Error(U.data)},onError:q=>{alert(q?.message)}})}),y.jsxs("div",{className:"border-2 ms-3 mr-3 bg-[#ffffff0d] border-[#ffffff4f] drop-shadow-md rounded-sm",children:[y.jsxs("div",{className:"p-5",children:[y.jsxs("div",{className:"flex gap-3 items-center mb-3",children:[y.jsx("h1",{className:"md:text-3xl font-bold",children:t&&y.jsx("h1",{children:t[0]?.path.split("/")[0]})}),y.jsx(xl,{onClick:s,saved:l})]}),y.jsxs("p",{className:"mb-3",children:["Info Hash : ",e]}),y.jsxs("div",{className:"flex gap-5 items-center",children:[D&&D?.length>0&&y.jsxs(ga,{onClick:()=>{if(R?.desktopMode)window.electron.openVLC(D.map(q=>q.streamUrl));else{const q=new URL("/api/playlist",location.origin);D.map($=>{q.searchParams.append("streams",$.streamUrl),q.searchParams.append("names",$.name)}),t&&q.searchParams.set("fileName",t[0].path.split("/")[0]),open(q.href)}},children:[y.jsx(Ne,{icon:Zu,className:"mr-3"})," Play"]}),R?.desktopMode&&!a&&y.jsxs("button",{onClick:async()=>{Z(!0)},className:"border-2 cursor-pointer text-[0px] hover:text-[10px] flex-col hover:translate-y-[-2px] hover:scale-150 duration-200 hover:border-[#0000] hover:border-0 border-white rounded-full w-10 h-10 flex items-center justify-center",children:[y.jsx(Ne,{icon:x6,className:"text-base!"}),y.jsx("p",{children:"Download"})]})]})]}),y.jsxs("div",{className:"ps-5 mb-1",children:[y.jsx("h1",{className:"text-xl font-bold",children:"Files"}),y.jsx("p",{className:"text-sm mt-1",children:ir(T||0)})]}),y.jsx(OP,{control:y.jsx(MP,{color:"info",checked:!!A,onChange:(q,$)=>{j($?1:0),localStorage.sov=$?1:0},sx:{"& .MuiSwitch-track":{backgroundColor:"lightgray"},"&.Mui-checked .MuiSwitch-track":{backgroundColor:"green"}}}),label:"Only show video files",labelPlacement:"start"}),!i&&!a&&t&&y.jsxs(y.Fragment,{children:[y.jsx("div",{className:"ps-5",children:y.jsxs("ul",{className:"flex gap-5",style:{listStyleType:"circle"},children:[y.jsxs("li",{className:"list-none",children:[t?.length," files "]}),A?y.jsxs("li",{children:[YP(t)," Hidden files"]}):""]})}),y.jsx(ga,{className:"ms-4! mt-3!",onClick:()=>{x(!0)},children:"Easy View"}),y.jsx("div",{className:"p-5",children:t?.map((q,$)=>{const H=q.name.endsWith(".mp4")||q.name.endsWith(".mkv")||q.name.endsWith(".avi");if(!(A&&!H))return y.jsxs("div",{className:"md:p-5 p-2 md:text-base text-sm! items-center grid-cols-12 rounded-md hover:bg-[#50505059] duration-200 md:grid gap-10 cursor-pointer flex-wrap",children:[y.jsx("div",{className:"col-span-1 inline-block md:mr-0 mr-5",children:q.name.endsWith(".mp4")||q.name.endsWith(".mkv")?y.jsx(Ne,{icon:CS}):y.jsx(Ne,{icon:Ts})}),y.jsx("a",{title:R?.desktopMode&&H?"double click to open":"",onDoubleClick:()=>{R?.desktopMode&&H&&window.electron.openVLC([q.downloadLink])},target:R?.desktopMode?"":"_blank",href:R?.desktopMode?"#":q.downloadLink,className:"col-span-6 hover:underline",children:q.name}),y.jsx("button",{onClick:()=>{H&&window.electron.openVLC([q.downloadLink])},className:"items-center col-span-1 flex cursor-pointer",children:H&&y.jsxs(y.Fragment,{children:[y.jsx(Ne,{icon:Zu,className:"mr-2"}),"play"]})}),y.jsxs("button",{className:"lg:col-span-3 col-span-1 xl:block hidden cursor-pointer",onClick:()=>{navigator.clipboard.writeText(q.downloadLink)},children:[y.jsx(Ne,{icon:k6})," ",y.jsx("span",{className:"lg:inline-block hidden",children:"Copy Stream URL"})]}),y.jsx("p",{className:"xl:col-span-1 col-span-3 xl:block hidden",children:ir(q.size)}),y.jsxs("div",{className:" md:flex hidden xl:hidden gap-3 items-center justify-center col-span-3 bg-[#202020] p-2 rounded-md",children:[y.jsx("h6",{className:"md:block hidden col-span-1 text-[13px]",children:ir(q.size)}),y.jsx("div",{className:" col-span-1 cursor-pointer",onClick:()=>{navigator.clipboard.writeText(q.downloadLink)},children:y.jsx(Ne,{icon:Ts})}),!R?.desktopMode&&y.jsx("div",{className:"w-fit cursor-pointer",onClick:()=>{open(q.downloadLink,"_blank")},children:y.jsx(Ne,{icon:Bs})})]}),y.jsx("div",{className:"md:hidden mt-3 flex items-center gap-5",children:y.jsxs("div",{className:"flex xl:hidden gap-3 items-center justify-center col-span-3 bg-[#202020] p-2 rounded-md",children:[y.jsx("h6",{className:"md:block hidden col-span-1 text-[13px]",children:ir(q.size)}),y.jsx("div",{className:" col-span-1 cursor-pointer",onClick:()=>{navigator.clipboard.writeText(q.downloadLink)},children:y.jsx(Ne,{icon:Ts})}),y.jsx("div",{className:"w-fit cursor-pointer",onClick:()=>{open(q.downloadLink,"_blank")},children:y.jsx(Ne,{icon:Bs})})]})})]},$)})})]}),a&&!i&&y.jsx(y.Fragment,{children:y.jsx("div",{className:"flex justify-center items-center h-[200px]",children:y.jsx("h1",{children:"Loading files..."})})})]}),i&&y.jsx("h1",{className:"text-red-500",children:"An error occurred while getting files"}),t?.length===0&&!a&&y.jsx("h1",{children:"No files found. It could be 0 seeders"}),u&&!a&&y.jsxs(y.Fragment,{children:[y.jsx("div",{className:"fixed w-full h-screen bg-[#0000007b] top-0"}),y.jsxs("div",{className:"w-[700px] fixed flex justify-center items-center p-5 border-2 border-white h-[300px] top-[50%] left-[50%] translate-x-[-50%] translate-y-[-50%] bg-black",children:[(m||S)&&y.jsx("div",{className:"ms-[90%] translate-x-[-90%] absolute top-5 cursor-pointer",onClick:()=>f(!1),children:y.jsx(Ne,{icon:ES})}),v&&y.jsx("h1",{children:"loading..."}),m&&y.jsxs("div",{children:[y.jsxs("h1",{className:"text-center",children:[y.jsxs("span",{className:"font-bold text-xl mb-5 block",children:[" ","Stream URL"," "]})," ",y.jsx("a",{href:m.streamUrl,className:"text-blue-600 hover:underline",children:m.streamUrl})]}),y.jsx("div",{children:y.jsx(ga,{onClick:()=>{_("/home_cinema/streams")},className:"!text-base !ms-[50%] translate-x-[-50%] !mt-10",children:"All Streams"})})]}),S&&y.jsx("h1",{className:"text-red-600",children:S})]})]}),w&&y.jsx(y.Fragment,{children:y.jsx(yf,{title:"Easy View",onClose:()=>x(!1),children:y.jsx(GP,{resp:t,config:R})})})]})}function GP({resp:e,config:t}){let a=e.map((i,l)=>{if(!i.name.endsWith(".mp4")&&!i.name.endsWith(".mkv"))return;let s=i.name.toUpperCase().match(/S(\d+)E(\d+)/);if(s)return y.jsxs("div",{className:"mb-2 p-2 grid grid-cols-12 duration-200 hover:bg-[#b4b4b43e]",children:[y.jsxs("div",{className:"col-span-9",children:[y.jsxs("h1",{className:"font-bold",children:["Season ",parseInt(s[1],10)," Episode ",parseInt(s[2],10)]}),y.jsx("h1",{children:i.name.toLowerCase().includes("h265")||i.name.toLowerCase().includes("x265")?"H256":"H264"})]}),y.jsxs("div",{className:"flex gap-3 items-center justify-center col-span-3 bg-[#202020] p-2 rounded-md",children:[y.jsx("h6",{className:"md:block hidden col-span-1 text-[13px]",children:ir(i.size)}),y.jsx("div",{className:" col-span-1 cursor-pointer",onClick:()=>{navigator.clipboard.writeText(i.downloadLink)},children:y.jsx(Ne,{icon:Ts})}),y.jsx("div",{className:"w-fit cursor-pointer",onClick:()=>{if(t?.desktopMode){window.electron.openVLC([i.downloadLink]);return}open(i.downloadLink,"_blank")},children:y.jsx(Ne,{icon:t?.desktopMode?Zu:Bs})})]})]},l)});return a=a.filter(i=>i!==void 0),y.jsx(y.Fragment,{children:y.jsxs("div",{className:"bg-[#0f0f0f] min-w-[300px] max-w-[500px] relative min-h-[100px] max-h-[300px] overflow-y-auto",children:[e&&a,!a.length&&y.jsx("div",{className:"flex justify-center items-center h-full",children:y.jsxs("h1",{className:"text-center p-5",children:["Easy View only works with torrents that have files with"," ",y.jsx("span",{className:"bg-[#b4b4b43e] p-1 rounded-md",children:"season-episode"})," ","notation"]})})]})})}function WP(){const e=sn();return y.jsx("div",{className:"cursor-pointer bg-white rounded-full h-10 w-10 flex justify-center items-center",onClick:()=>{e(-1)},children:y.jsx(Ne,{className:"h-5! font-bold text-black",icon:m0})})}function KP(){const e=c0(),[t,a]=C.useState(!1),[i]=Ef(),{resp:l,isLoading:s,err:u,fetch:f}=Z3(),{resp:d,isLoading:h,err:m}=e4(),[v,S]=C.useState(),[w,x]=C.useState(!1),[b,A]=C.useState(),j=sn();return C.useEffect(()=>{(async()=>{if(!e.hash)return;let _=await W3(e.hash);x(!!_)})()},[]),C.useEffect(()=>{if(!l)return;let _=0;l?.map(R=>{(R.name.endsWith(".mp4")||R.name.endsWith(".mkv"))&&(_+=R.size,S(N=>N?[...N,{streamUrl:R.downloadLink,name:R.name}]:[{streamUrl:R.downloadLink,name:R.name}]))}),A(_)},[l]),C.useEffect(()=>{f(e.hash)},[]),y.jsxs(y.Fragment,{children:[y.jsx("div",{className:"p-5",children:y.jsx(WP,{})}),y.jsx(l4,{resp:l||[],hash:e.hash,err:u,isLoading:s,saved:w,onSave:async()=>{try{if(!e.hash)return;if(w)await K3(e.hash),x(!1);else{let _=0,R=0;i.get("seeds")&&(_=Number(i.get("seeds"))),i.get("leechers")&&(R=Number(i.get("leechers"))),await G3({name:i.get("name")||"",provider:i.get("provider")||"",seeders:_,leechers:R,infoHash:e.hash,magnetURI:"",url:i.get("about")||""}),x(!0)}}catch(_){console.log(_)}}}),y.jsxs("div",{className:"ps-5 mt-7",children:[i.get("peers")&&i.get("seeds")&&y.jsxs("p",{children:["Seeds : ",i.get("seeds")," leechers : ",i.get("leechers")]}),i.get("about")&&y.jsxs("p",{className:" mb-3",children:["About :"," ",y.jsx("a",{target:"_blank",className:"text-blue-500",href:i.get("about"),children:i.get("about")})]})]}),u&&y.jsx("h1",{className:"text-red-500",children:"An error occurred while getting files"}),l?.length===0&&!s&&y.jsx("h1",{children:"No files found. It could be 0 seeders"}),t&&y.jsxs(y.Fragment,{children:[y.jsx("div",{className:"absolute w-full h-screen bg-[#0000005c] top-0"}),y.jsxs("div",{className:"w-[700px] flex justify-center items-center p-5 border-2 border-white h-[300px] absolute top-[50%] left-[50%] translate-x-[-50%] translate-y-[-50%] bg-black",children:[d&&y.jsx("div",{className:"ms-[90%] translate-x-[-90%] absolute top-5 cursor-pointer",onClick:()=>a(!1),children:y.jsx(Ne,{icon:h0})}),h&&y.jsx("h1",{children:"loading..."}),d&&y.jsxs("div",{children:[y.jsxs("h1",{className:"text-center",children:[y.jsxs("span",{className:"font-bold text-xl mb-5 block",children:[" ","Stream URL"," "]})," ",y.jsx("a",{href:d.streamUrl,className:"text-blue-600 hover:underline",children:d.streamUrl})]}),y.jsx("div",{children:y.jsx(Xi,{onClick:()=>{j("/home_cinema/pre-streams")},className:"!text-base ms-[50%] translate-x-[-50%] mt-10",children:"All Streams"})})]}),m&&y.jsx("h1",{className:"text-red-600",children:m})]})]})]})}const XP="/api/downloads";function QP(){const[e,t]=C.useState(),[a,i]=C.useState(!1),[l,s]=C.useState(),u=async()=>{const d=await Pn(),h=new URL(XP,d["torrent-streamer-api"].external?d["torrent-streamer-api"].origin:location.origin);return(await He.get(h.href)).data};return C.useEffect(()=>{},[]),{resp:e,isLoading:a,err:l,fetch:()=>{i(!0),u().then(d=>{t(d)}).catch(d=>{s(d.message)}).finally(()=>{i(!1)})},setResp:t}}const JP="/api/downloads/:hash";function ZP(){const[e,t]=C.useState(),[a,i]=C.useState(!1),[l,s]=C.useState(),u=async d=>{const h=await Pn(),m=new URL(JP.replace(":hash",d),h["torrent-streamer-api"].external?h["torrent-streamer-api"].origin:location.origin);return await He.delete(m.href)};return C.useEffect(()=>{},[]),{resp:e,isLoading:a,err:l,fetch:async d=>{i(!0);try{const h=await u(d);return t(h),i(!1),h}catch(h){throw s(h.message),new Error(h)}}}}const eI="/api/downloads";function tI(){const[e,t]=C.useState(),[a,i]=C.useState(!1),[l,s]=C.useState(),u=async(d,h)=>{const m=await Pn(),v=new URL(eI,m["torrent-streamer-api"].external?m["torrent-streamer-api"].origin:location.origin);return await He.put(v.href,{hash:d,stop:h})};return{resp:e,isLoading:a,err:l,fetch:async(d,h)=>{i(!0);try{const m=await u(d,h);return t(m),i(!1),m}catch(m){throw s(m.message),i(!1),m}}}}var rm,Gx;function nI(){if(Gx)return rm;Gx=1;function e(l){if(typeof l!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(l))}function t(l,s){for(var u="",f=0,d=-1,h=0,m,v=0;v<=l.length;++v){if(v<l.length)m=l.charCodeAt(v);else{if(m===47)break;m=47}if(m===47){if(!(d===v-1||h===1))if(d!==v-1&&h===2){if(u.length<2||f!==2||u.charCodeAt(u.length-1)!==46||u.charCodeAt(u.length-2)!==46){if(u.length>2){var S=u.lastIndexOf("/");if(S!==u.length-1){S===-1?(u="",f=0):(u=u.slice(0,S),f=u.length-1-u.lastIndexOf("/")),d=v,h=0;continue}}else if(u.length===2||u.length===1){u="",f=0,d=v,h=0;continue}}s&&(u.length>0?u+="/..":u="..",f=2)}else u.length>0?u+="/"+l.slice(d+1,v):u=l.slice(d+1,v),f=v-d-1;d=v,h=0}else m===46&&h!==-1?++h:h=-1}return u}function a(l,s){var u=s.dir||s.root,f=s.base||(s.name||"")+(s.ext||"");return u?u===s.root?u+f:u+l+f:f}var i={resolve:function(){for(var s="",u=!1,f,d=arguments.length-1;d>=-1&&!u;d--){var h;d>=0?h=arguments[d]:(f===void 0&&(f=process.cwd()),h=f),e(h),h.length!==0&&(s=h+"/"+s,u=h.charCodeAt(0)===47)}return s=t(s,!u),u?s.length>0?"/"+s:"/":s.length>0?s:"."},normalize:function(s){if(e(s),s.length===0)return".";var u=s.charCodeAt(0)===47,f=s.charCodeAt(s.length-1)===47;return s=t(s,!u),s.length===0&&!u&&(s="."),s.length>0&&f&&(s+="/"),u?"/"+s:s},isAbsolute:function(s){return e(s),s.length>0&&s.charCodeAt(0)===47},join:function(){if(arguments.length===0)return".";for(var s,u=0;u<arguments.length;++u){var f=arguments[u];e(f),f.length>0&&(s===void 0?s=f:s+="/"+f)}return s===void 0?".":i.normalize(s)},relative:function(s,u){if(e(s),e(u),s===u||(s=i.resolve(s),u=i.resolve(u),s===u))return"";for(var f=1;f<s.length&&s.charCodeAt(f)===47;++f);for(var d=s.length,h=d-f,m=1;m<u.length&&u.charCodeAt(m)===47;++m);for(var v=u.length,S=v-m,w=h<S?h:S,x=-1,b=0;b<=w;++b){if(b===w){if(S>w){if(u.charCodeAt(m+b)===47)return u.slice(m+b+1);if(b===0)return u.slice(m+b)}else h>w&&(s.charCodeAt(f+b)===47?x=b:b===0&&(x=0));break}var A=s.charCodeAt(f+b),j=u.charCodeAt(m+b);if(A!==j)break;A===47&&(x=b)}var _="";for(b=f+x+1;b<=d;++b)(b===d||s.charCodeAt(b)===47)&&(_.length===0?_+="..":_+="/..");return _.length>0?_+u.slice(m+x):(m+=x,u.charCodeAt(m)===47&&++m,u.slice(m))},_makeLong:function(s){return s},dirname:function(s){if(e(s),s.length===0)return".";for(var u=s.charCodeAt(0),f=u===47,d=-1,h=!0,m=s.length-1;m>=1;--m)if(u=s.charCodeAt(m),u===47){if(!h){d=m;break}}else h=!1;return d===-1?f?"/":".":f&&d===1?"//":s.slice(0,d)},basename:function(s,u){if(u!==void 0&&typeof u!="string")throw new TypeError('"ext" argument must be a string');e(s);var f=0,d=-1,h=!0,m;if(u!==void 0&&u.length>0&&u.length<=s.length){if(u.length===s.length&&u===s)return"";var v=u.length-1,S=-1;for(m=s.length-1;m>=0;--m){var w=s.charCodeAt(m);if(w===47){if(!h){f=m+1;break}}else S===-1&&(h=!1,S=m+1),v>=0&&(w===u.charCodeAt(v)?--v===-1&&(d=m):(v=-1,d=S))}return f===d?d=S:d===-1&&(d=s.length),s.slice(f,d)}else{for(m=s.length-1;m>=0;--m)if(s.charCodeAt(m)===47){if(!h){f=m+1;break}}else d===-1&&(h=!1,d=m+1);return d===-1?"":s.slice(f,d)}},extname:function(s){e(s);for(var u=-1,f=0,d=-1,h=!0,m=0,v=s.length-1;v>=0;--v){var S=s.charCodeAt(v);if(S===47){if(!h){f=v+1;break}continue}d===-1&&(h=!1,d=v+1),S===46?u===-1?u=v:m!==1&&(m=1):u!==-1&&(m=-1)}return u===-1||d===-1||m===0||m===1&&u===d-1&&u===f+1?"":s.slice(u,d)},format:function(s){if(s===null||typeof s!="object")throw new TypeError('The "pathObject" argument must be of type Object. Received type '+typeof s);return a("/",s)},parse:function(s){e(s);var u={root:"",dir:"",base:"",ext:"",name:""};if(s.length===0)return u;var f=s.charCodeAt(0),d=f===47,h;d?(u.root="/",h=1):h=0;for(var m=-1,v=0,S=-1,w=!0,x=s.length-1,b=0;x>=h;--x){if(f=s.charCodeAt(x),f===47){if(!w){v=x+1;break}continue}S===-1&&(w=!1,S=x+1),f===46?m===-1?m=x:b!==1&&(b=1):m!==-1&&(b=-1)}return m===-1||S===-1||b===0||b===1&&m===S-1&&m===v+1?S!==-1&&(v===0&&d?u.base=u.name=s.slice(1,S):u.base=u.name=s.slice(v,S)):(v===0&&d?(u.name=s.slice(1,m),u.base=s.slice(1,S)):(u.name=s.slice(v,m),u.base=s.slice(v,S)),u.ext=s.slice(m,S)),v>0?u.dir=s.slice(0,v-1):d&&(u.dir="/"),u},sep:"/",delimiter:":",win32:null,posix:null};return i.posix=i,rm=i,rm}var rI=nI();const aI=Zx(rI);function iI(){const[e,t]=C.useState(""),a=sn(),i=()=>{e.length<40||a(`/home_cinema/torrents/${e.trim()}/files`)};return y.jsxs("div",{className:"p-5 bg-[#161616] flex flex-col gap-3",children:[y.jsx(rf,{onChange:l=>t(l.target.value),placeholder:"info hash",onKeyUp:l=>{l.code==="Enter"&&i()},value:e,type:"text"}),y.jsx(Xi,{className:"text-base! w-fit! ps-8! pr-8!",onClick:i,children:"Add"})]})}function oI(){const{resp:e,err:t,isLoading:a,fetch:i,setResp:l}=QP(),[s,u]=C.useState(new Map),{fetch:f}=tI(),{fetch:d}=ZP(),[h,m]=C.useState(!0),[v,S]=C.useState(""),[w,x]=C.useState(!1),[b,A]=C.useState(!1);C.useEffect(()=>{i(),setInterval(()=>{i()},2e3)},[]),C.useEffect(()=>{let _=!1;e?.forEach(R=>{R.infoHash.toLowerCase()===v.toLowerCase()&&(_=!0),s.set(R.infoHash,R)}),_||S(""),u(s)},[e]),C.useEffect(()=>{a||m(!1)},[a]);const j=()=>s.get(v);return y.jsxs(y.Fragment,{children:[y.jsx(Aa,{}),w&&y.jsx(y.Fragment,{children:y.jsx(yf,{title:"Change Files",onClose:()=>x(!1),children:y.jsx(o4,{files:j()?.files||[],infoHash:v,onSet:async _=>{const R=await Pn(),N=new URL(`/api/downloads/${v}/files`,R["torrent-streamer-api"].external?R["torrent-streamer-api"].origin:location.origin);if((await He.put(N.href,{selectedFiles:_.map(z=>z.selected?z.path:"")})).status===200){const z=j();z&&(z.files=_),l(e),x(!1)}},onError:_=>{alert(_?.message)}})})}),y.jsxs("div",{className:"ms-5 mr-5 mt-20",children:[t&&y.jsxs(r4,{severity:"error",variant:"outlined",className:"!w-fit !mt-5 !text-red-500",color:"error",children:["An error occurred : ",t]}),a&&h&&y.jsx("div",{children:y.jsx("h1",{className:"text-center",children:"loading..."})}),e?.length==0&&y.jsxs("div",{className:"w-full absolute top-0 h-screen gap-2 flex flex-col justify-center items-center z-[-10] left-0",children:[y.jsx("h1",{className:"text-lg",children:"There is no download created"}),y.jsx(ga,{onClick:()=>A(!0),children:"Create"})]}),b&&y.jsx(yf,{title:"Create new download",onClose:()=>A(!1),children:y.jsx(iI,{})}),e&&s.size!==0&&y.jsxs("div",{children:[y.jsxs("div",{className:"flex mb-3 gap-2",children:[y.jsx("div",{onClick:()=>A(!0),className:"border-2 rounded-full cursor-pointer w-7 flex justify-center items-center h-7 border-blue-700",children:y.jsx(Ne,{className:"text-blue-700",icon:j6})}),y.jsx("div",{className:"w-0.5 bg-white"}),y.jsx("div",{onClick:async()=>{if(!v)return;if((await d(v)).status===200){let R=e.filter(N=>N.infoHash!==v);l(R)}},className:`border-2 cursor-pointer ${v?"border-red-600":"border-gray-500"} w-fit ps-[4px] pr-[4px] rounded-md`,children:y.jsx(Ne,{icon:S6,className:v?"text-red-600":"text-gray-500"})}),!s.get(v)?.stopped&&y.jsx("div",{onClick:async()=>{if(!v)return;if((await f(v,!0)).status===200){let R=e.map(N=>N.infoHash!==v?N:{...N,stopped:!0,paused:!0});l(R)}},className:`border-2 cursor-pointer ${v?"border-orange-600":"border-gray-500"} w-fit ps-[4px] pr-[4px] rounded-md`,children:y.jsx(Ne,{icon:SS,className:v?j()?.stopped?"text-green-600":"text-orange-600":"text-gray-500"})}),y.jsxs("div",{title:j()?.idling?"torrent is idling":"",onClick:async()=>{if(!v)return;let _=j();if(_?.idling)return;if((await f(v)).status===200){if(!_)return;_.paused=!_.paused,_.stopped=!1,l(e)}},className:`border-2 relative ${!v||j()?.idling?"border-gray-500":j()?.paused?"border-green-600 cursor-pointer":"border-yellow-600 cursor-pointer"} w-fit ps-[4px] pr-[4px] rounded-md`,children:[y.jsx(Ne,{icon:j()?.paused||j()?.stopped?Zu:wS,className:`${!v||j()?.idling?"text-gray-500":j()?.paused?"text-green-600":"text-yellow-600"}`}),j()?.idling&&y.jsx("div",{className:"absolute top-0",children:y.jsx(Ne,{icon:C6,className:"text-gray-500 font-bold"})})]}),y.jsx("div",{onClick:async()=>{v&&x(!0)},className:`border-2 ${v?"":"border-gray-500"} cursor-pointer w-fit ps-[4px] pr-[4px] rounded-md`,children:y.jsx(Ne,{icon:Ts,className:v?"":"text-gray-500"})})]}),y.jsx("div",{className:"flex gap-2 flex-col",children:e.map((_,R)=>y.jsx(lI,{status:_.status,onClick:()=>{if(v===_.infoHash){S("");return}S(_.infoHash)},selected:_.infoHash===v,download:_},R))})]})]})]})}function lI({download:e,onClick:t,selected:a,status:i}){const l=sn(),s=()=>{for(let f of e.files)if(f.selected)return!1;return!0},u=()=>{for(let f of e.files)if(f.streamed)return!0;return!1};return y.jsxs("div",{onDoubleClick:()=>{l(`/home_cinema/torrents/${e.infoHash}/files`)},onClick:t,className:`hover:bg-[#50505059] cursor-pointer ${i==="setting"?"bg-blue-600":a?"bg-[#005db4bd]! border-[#005db4] border-2":e.stopped?"bg-[#9200006c]":e.idling?"bg-[#430073]":e.isComplete?"bg-[#0f8500bb]":e.paused?"bg-[#98930054]":"bg-[#151515]"} flex duration-150 gap-5 rounded-md `,children:[y.jsx("div",{className:"lg:flex items-center p-5 rounded-md",children:y.jsxs("div",{children:[y.jsxs("div",{className:"flex items-center gap-2",children:[y.jsx(Ne,{icon:e.status==="setting"?g6:e.stopped?SS:e.idling?$6:e.isComplete?T6:e.paused?wS:Bs}),e.status==="setting"?y.jsx("p",{children:"Loading..."}):e.stopped?y.jsx("p",{children:"STOPPED"}):e.idling?y.jsx("p",{children:"IDLING"}):e.isComplete?y.jsx("p",{children:"COMPLETE"}):e.paused?y.jsx("p",{children:"PAUSED"}):y.jsx("p",{children:"DOWNLOADING"})]}),y.jsx("h1",{className:"font-bold md:text-lg",children:e.name}),y.jsx("div",{className:"flex items-center",children:(!e.stopped&&!e.paused&&!e.idling||u())&&y.jsxs(y.Fragment,{children:[" ",y.jsxs("p",{children:[y.jsx(Ne,{icon:_6})," ",ir(+(e.upSpeed||0)),"/s"]}),y.jsxs("p",{children:[y.jsx(Ne,{icon:Bs})," ",ir(+(e.downSpeed||0)),"/s"]})]})}),e.downloadSize!==0&&!s()?y.jsx(Yx,{download:{downloaded:e.downloaded||0,size:e.downloadSize||0}}):y.jsx("p",{children:"No selected files".toUpperCase()}),u()&&y.jsxs("div",{children:[y.jsxs("div",{className:"flex gap-2 items-center",children:[y.jsx(Ne,{icon:CS}),y.jsx("h1",{children:"STREAMING"})]}),e.files.map((f,d)=>{if(f.streamed)return y.jsxs("div",{children:[y.jsx("p",{children:f.path}),y.jsx(Yx,{download:{downloaded:f.downloaded,size:f.size}})]},d)})]})]})}),y.jsxs("div",{className:"p-5",children:[y.jsx("h1",{className:"font-bold",children:"Files"}),y.jsxs("p",{children:["selected files ",e.files.filter(f=>f.selected).length,"/",e.files?.length]}),y.jsxs("p",{children:["streamed files ",e.files.filter(f=>f.streamed).length,"/",e.files?.length]}),y.jsxs("p",{children:["downloading ",ir(e.downloadSize||0),"/",ir(e.totalSize||0)]})]}),y.jsxs("div",{className:"p-5",children:[y.jsx("h1",{className:"font-bold",children:"Location"}),y.jsx("p",{children:e.path}),y.jsx(ga,{onClick:async()=>{!e.path||!(await Pn()).desktopMode||window.electron.openFolder(aI.join(e.path,e.name))},className:"mt-2!",children:"Open"})]})]})}function sI(){const[e,t]=C.useState(),{resp:a,isLoading:i,err:l,fetch:s}=Z3();return y.jsxs(y.Fragment,{children:[y.jsx(Aa,{}),y.jsxs("div",{className:"lg:ms-32 mt-24",children:[y.jsx("h1",{className:"text-2xl font-bold mb-5",children:"Get torrent By Info Hash"}),y.jsx(P5,{onChange:u=>{t(u.target.value)},value:e,sx:{width:"auto",maxWidth:"600px"},color:"neutral",size:"lg",variant:"soft",placeholder:"Info Hash"}),y.jsx("div",{className:"mt-5",children:y.jsx(ga,{color:"neutral",loading:i,onClick:function(){s(e)},variant:"soft",size:"lg",children:"Get"})}),l&&y.jsxs(r4,{severity:"error",variant:"outlined",className:"!w-fit !mt-5 !text-red-500",color:"error",children:["An error occurred : ",l]})]}),y.jsx("div",{className:"mt-5",children:!i&&!l&&a&&y.jsx(l4,{isLoading:i,err:l,resp:a,hash:e||""})})]})}function Ea(e){return Array.isArray?Array.isArray(e):u4(e)==="[object Array]"}function cI(e){if(typeof e=="string")return e;let t=e+"";return t=="0"&&1/e==-1/0?"-0":t}function uI(e){return e==null?"":cI(e)}function Br(e){return typeof e=="string"}function s4(e){return typeof e=="number"}function fI(e){return e===!0||e===!1||dI(e)&&u4(e)=="[object Boolean]"}function c4(e){return typeof e=="object"}function dI(e){return c4(e)&&e!==null}function Nn(e){return e!=null}function am(e){return!e.trim().length}function u4(e){return e==null?e===void 0?"[object Undefined]":"[object Null]":Object.prototype.toString.call(e)}const pI="Incorrect 'index' type",hI=e=>`Invalid value for key ${e}`,mI=e=>`Pattern length exceeds max of ${e}.`,gI=e=>`Missing ${e} property in key`,vI=e=>`Property 'weight' in key '${e}' must be a positive integer`,Wx=Object.prototype.hasOwnProperty;class yI{constructor(t){this._keys=[],this._keyMap={};let a=0;t.forEach(i=>{let l=f4(i);this._keys.push(l),this._keyMap[l.id]=l,a+=l.weight}),this._keys.forEach(i=>{i.weight/=a})}get(t){return this._keyMap[t]}keys(){return this._keys}toJSON(){return JSON.stringify(this._keys)}}function f4(e){let t=null,a=null,i=null,l=1,s=null;if(Br(e)||Ea(e))i=e,t=Kx(e),a=t0(e);else{if(!Wx.call(e,"name"))throw new Error(gI("name"));const u=e.name;if(i=u,Wx.call(e,"weight")&&(l=e.weight,l<=0))throw new Error(vI(u));t=Kx(u),a=t0(u),s=e.getFn}return{path:t,id:a,weight:l,src:i,getFn:s}}function Kx(e){return Ea(e)?e:e.split(".")}function t0(e){return Ea(e)?e.join("."):e}function bI(e,t){let a=[],i=!1;const l=(s,u,f)=>{if(Nn(s))if(!u[f])a.push(s);else{let d=u[f];const h=s[d];if(!Nn(h))return;if(f===u.length-1&&(Br(h)||s4(h)||fI(h)))a.push(uI(h));else if(Ea(h)){i=!0;for(let m=0,v=h.length;m<v;m+=1)l(h[m],u,f+1)}else u.length&&l(h,u,f+1)}};return l(e,Br(t)?t.split("."):t,0),i?a:a[0]}const xI={includeMatches:!1,findAllMatches:!1,minMatchCharLength:1},SI={isCaseSensitive:!1,ignoreDiacritics:!1,includeScore:!1,keys:[],shouldSort:!0,sortFn:(e,t)=>e.score===t.score?e.idx<t.idx?-1:1:e.score<t.score?-1:1},CI={location:0,threshold:.6,distance:100},EI={useExtendedSearch:!1,getFn:bI,ignoreLocation:!1,ignoreFieldNorm:!1,fieldNormWeight:1};var Re={...SI,...xI,...CI,...EI};const wI=/[^ ]+/g;function AI(e=1,t=3){const a=new Map,i=Math.pow(10,t);return{get(l){const s=l.match(wI).length;if(a.has(s))return a.get(s);const u=1/Math.pow(s,.5*e),f=parseFloat(Math.round(u*i)/i);return a.set(s,f),f},clear(){a.clear()}}}class fg{constructor({getFn:t=Re.getFn,fieldNormWeight:a=Re.fieldNormWeight}={}){this.norm=AI(a,3),this.getFn=t,this.isCreated=!1,this.setIndexRecords()}setSources(t=[]){this.docs=t}setIndexRecords(t=[]){this.records=t}setKeys(t=[]){this.keys=t,this._keysMap={},t.forEach((a,i)=>{this._keysMap[a.id]=i})}create(){this.isCreated||!this.docs.length||(this.isCreated=!0,Br(this.docs[0])?this.docs.forEach((t,a)=>{this._addString(t,a)}):this.docs.forEach((t,a)=>{this._addObject(t,a)}),this.norm.clear())}add(t){const a=this.size();Br(t)?this._addString(t,a):this._addObject(t,a)}removeAt(t){this.records.splice(t,1);for(let a=t,i=this.size();a<i;a+=1)this.records[a].i-=1}getValueForItemAtKeyId(t,a){return t[this._keysMap[a]]}size(){return this.records.length}_addString(t,a){if(!Nn(t)||am(t))return;let i={v:t,i:a,n:this.norm.get(t)};this.records.push(i)}_addObject(t,a){let i={i:a,$:{}};this.keys.forEach((l,s)=>{let u=l.getFn?l.getFn(t):this.getFn(t,l.path);if(Nn(u)){if(Ea(u)){let f=[];const d=[{nestedArrIndex:-1,value:u}];for(;d.length;){const{nestedArrIndex:h,value:m}=d.pop();if(Nn(m))if(Br(m)&&!am(m)){let v={v:m,i:h,n:this.norm.get(m)};f.push(v)}else Ea(m)&&m.forEach((v,S)=>{d.push({nestedArrIndex:S,value:v})})}i.$[s]=f}else if(Br(u)&&!am(u)){let f={v:u,n:this.norm.get(u)};i.$[s]=f}}}),this.records.push(i)}toJSON(){return{keys:this.keys,records:this.records}}}function d4(e,t,{getFn:a=Re.getFn,fieldNormWeight:i=Re.fieldNormWeight}={}){const l=new fg({getFn:a,fieldNormWeight:i});return l.setKeys(e.map(f4)),l.setSources(t),l.create(),l}function RI(e,{getFn:t=Re.getFn,fieldNormWeight:a=Re.fieldNormWeight}={}){const{keys:i,records:l}=e,s=new fg({getFn:t,fieldNormWeight:a});return s.setKeys(i),s.setIndexRecords(l),s}function zu(e,{errors:t=0,currentLocation:a=0,expectedLocation:i=0,distance:l=Re.distance,ignoreLocation:s=Re.ignoreLocation}={}){const u=t/e.length;if(s)return u;const f=Math.abs(i-a);return l?u+f/l:f?1:u}function TI(e=[],t=Re.minMatchCharLength){let a=[],i=-1,l=-1,s=0;for(let u=e.length;s<u;s+=1){let f=e[s];f&&i===-1?i=s:!f&&i!==-1&&(l=s-1,l-i+1>=t&&a.push([i,l]),i=-1)}return e[s-1]&&s-i>=t&&a.push([i,s-1]),a}const zi=32;function $I(e,t,a,{location:i=Re.location,distance:l=Re.distance,threshold:s=Re.threshold,findAllMatches:u=Re.findAllMatches,minMatchCharLength:f=Re.minMatchCharLength,includeMatches:d=Re.includeMatches,ignoreLocation:h=Re.ignoreLocation}={}){if(t.length>zi)throw new Error(mI(zi));const m=t.length,v=e.length,S=Math.max(0,Math.min(i,v));let w=s,x=S;const b=f>1||d,A=b?Array(v):[];let j;for(;(j=e.indexOf(t,x))>-1;){let D=zu(t,{currentLocation:j,expectedLocation:S,distance:l,ignoreLocation:h});if(w=Math.min(D,w),x=j+m,b){let V=0;for(;V<m;)A[j+V]=1,V+=1}}x=-1;let _=[],R=1,N=m+v;const T=1<<m-1;for(let D=0;D<m;D+=1){let V=0,Q=N;for(;V<Q;)zu(t,{errors:D,currentLocation:S+Q,expectedLocation:S,distance:l,ignoreLocation:h})<=w?V=Q:N=Q,Q=Math.floor((N-V)/2+V);N=Q;let Z=Math.max(1,S-Q+1),q=u?v:Math.min(S+Q,v)+m,$=Array(q+2);$[q+1]=(1<<D)-1;for(let U=q;U>=Z;U-=1){let Y=U-1,k=a[e.charAt(Y)];if(b&&(A[Y]=+!!k),$[U]=($[U+1]<<1|1)&k,D&&($[U]|=(_[U+1]|_[U])<<1|1|_[U+1]),$[U]&T&&(R=zu(t,{errors:D,currentLocation:Y,expectedLocation:S,distance:l,ignoreLocation:h}),R<=w)){if(w=R,x=Y,x<=S)break;Z=Math.max(1,2*S-x)}}if(zu(t,{errors:D+1,currentLocation:S,expectedLocation:S,distance:l,ignoreLocation:h})>w)break;_=$}const z={isMatch:x>=0,score:Math.max(.001,R)};if(b){const D=TI(A,f);D.length?d&&(z.indices=D):z.isMatch=!1}return z}function OI(e){let t={};for(let a=0,i=e.length;a<i;a+=1){const l=e.charAt(a);t[l]=(t[l]||0)|1<<i-a-1}return t}const bf=String.prototype.normalize?(e=>e.normalize("NFD").replace(/[\u0300-\u036F\u0483-\u0489\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u0610-\u061A\u064B-\u065F\u0670\u06D6-\u06DC\u06DF-\u06E4\u06E7\u06E8\u06EA-\u06ED\u0711\u0730-\u074A\u07A6-\u07B0\u07EB-\u07F3\u07FD\u0816-\u0819\u081B-\u0823\u0825-\u0827\u0829-\u082D\u0859-\u085B\u08D3-\u08E1\u08E3-\u0903\u093A-\u093C\u093E-\u094F\u0951-\u0957\u0962\u0963\u0981-\u0983\u09BC\u09BE-\u09C4\u09C7\u09C8\u09CB-\u09CD\u09D7\u09E2\u09E3\u09FE\u0A01-\u0A03\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A70\u0A71\u0A75\u0A81-\u0A83\u0ABC\u0ABE-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AE2\u0AE3\u0AFA-\u0AFF\u0B01-\u0B03\u0B3C\u0B3E-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B56\u0B57\u0B62\u0B63\u0B82\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD7\u0C00-\u0C04\u0C3E-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C62\u0C63\u0C81-\u0C83\u0CBC\u0CBE-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CE2\u0CE3\u0D00-\u0D03\u0D3B\u0D3C\u0D3E-\u0D44\u0D46-\u0D48\u0D4A-\u0D4D\u0D57\u0D62\u0D63\u0D82\u0D83\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DF2\u0DF3\u0E31\u0E34-\u0E3A\u0E47-\u0E4E\u0EB1\u0EB4-\u0EB9\u0EBB\u0EBC\u0EC8-\u0ECD\u0F18\u0F19\u0F35\u0F37\u0F39\u0F3E\u0F3F\u0F71-\u0F84\u0F86\u0F87\u0F8D-\u0F97\u0F99-\u0FBC\u0FC6\u102B-\u103E\u1056-\u1059\u105E-\u1060\u1062-\u1064\u1067-\u106D\u1071-\u1074\u1082-\u108D\u108F\u109A-\u109D\u135D-\u135F\u1712-\u1714\u1732-\u1734\u1752\u1753\u1772\u1773\u17B4-\u17D3\u17DD\u180B-\u180D\u1885\u1886\u18A9\u1920-\u192B\u1930-\u193B\u1A17-\u1A1B\u1A55-\u1A5E\u1A60-\u1A7C\u1A7F\u1AB0-\u1ABE\u1B00-\u1B04\u1B34-\u1B44\u1B6B-\u1B73\u1B80-\u1B82\u1BA1-\u1BAD\u1BE6-\u1BF3\u1C24-\u1C37\u1CD0-\u1CD2\u1CD4-\u1CE8\u1CED\u1CF2-\u1CF4\u1CF7-\u1CF9\u1DC0-\u1DF9\u1DFB-\u1DFF\u20D0-\u20F0\u2CEF-\u2CF1\u2D7F\u2DE0-\u2DFF\u302A-\u302F\u3099\u309A\uA66F-\uA672\uA674-\uA67D\uA69E\uA69F\uA6F0\uA6F1\uA802\uA806\uA80B\uA823-\uA827\uA880\uA881\uA8B4-\uA8C5\uA8E0-\uA8F1\uA8FF\uA926-\uA92D\uA947-\uA953\uA980-\uA983\uA9B3-\uA9C0\uA9E5\uAA29-\uAA36\uAA43\uAA4C\uAA4D\uAA7B-\uAA7D\uAAB0\uAAB2-\uAAB4\uAAB7\uAAB8\uAABE\uAABF\uAAC1\uAAEB-\uAAEF\uAAF5\uAAF6\uABE3-\uABEA\uABEC\uABED\uFB1E\uFE00-\uFE0F\uFE20-\uFE2F]/g,"")):(e=>e);class p4{constructor(t,{location:a=Re.location,threshold:i=Re.threshold,distance:l=Re.distance,includeMatches:s=Re.includeMatches,findAllMatches:u=Re.findAllMatches,minMatchCharLength:f=Re.minMatchCharLength,isCaseSensitive:d=Re.isCaseSensitive,ignoreDiacritics:h=Re.ignoreDiacritics,ignoreLocation:m=Re.ignoreLocation}={}){if(this.options={location:a,threshold:i,distance:l,includeMatches:s,findAllMatches:u,minMatchCharLength:f,isCaseSensitive:d,ignoreDiacritics:h,ignoreLocation:m},t=d?t:t.toLowerCase(),t=h?bf(t):t,this.pattern=t,this.chunks=[],!this.pattern.length)return;const v=(w,x)=>{this.chunks.push({pattern:w,alphabet:OI(w),startIndex:x})},S=this.pattern.length;if(S>zi){let w=0;const x=S%zi,b=S-x;for(;w<b;)v(this.pattern.substr(w,zi),w),w+=zi;if(x){const A=S-zi;v(this.pattern.substr(A),A)}}else v(this.pattern,0)}searchIn(t){const{isCaseSensitive:a,ignoreDiacritics:i,includeMatches:l}=this.options;if(t=a?t:t.toLowerCase(),t=i?bf(t):t,this.pattern===t){let b={isMatch:!0,score:0};return l&&(b.indices=[[0,t.length-1]]),b}const{location:s,distance:u,threshold:f,findAllMatches:d,minMatchCharLength:h,ignoreLocation:m}=this.options;let v=[],S=0,w=!1;this.chunks.forEach(({pattern:b,alphabet:A,startIndex:j})=>{const{isMatch:_,score:R,indices:N}=$I(t,b,A,{location:s+j,distance:u,threshold:f,findAllMatches:d,minMatchCharLength:h,includeMatches:l,ignoreLocation:m});_&&(w=!0),S+=R,_&&N&&(v=[...v,...N])});let x={isMatch:w,score:w?S/this.chunks.length:1};return w&&l&&(x.indices=v),x}}class ui{constructor(t){this.pattern=t}static isMultiMatch(t){return Xx(t,this.multiRegex)}static isSingleMatch(t){return Xx(t,this.singleRegex)}search(){}}function Xx(e,t){const a=e.match(t);return a?a[1]:null}class _I extends ui{constructor(t){super(t)}static get type(){return"exact"}static get multiRegex(){return/^="(.*)"$/}static get singleRegex(){return/^=(.*)$/}search(t){const a=t===this.pattern;return{isMatch:a,score:a?0:1,indices:[0,this.pattern.length-1]}}}class jI extends ui{constructor(t){super(t)}static get type(){return"inverse-exact"}static get multiRegex(){return/^!"(.*)"$/}static get singleRegex(){return/^!(.*)$/}search(t){const i=t.indexOf(this.pattern)===-1;return{isMatch:i,score:i?0:1,indices:[0,t.length-1]}}}class kI extends ui{constructor(t){super(t)}static get type(){return"prefix-exact"}static get multiRegex(){return/^\^"(.*)"$/}static get singleRegex(){return/^\^(.*)$/}search(t){const a=t.startsWith(this.pattern);return{isMatch:a,score:a?0:1,indices:[0,this.pattern.length-1]}}}class NI extends ui{constructor(t){super(t)}static get type(){return"inverse-prefix-exact"}static get multiRegex(){return/^!\^"(.*)"$/}static get singleRegex(){return/^!\^(.*)$/}search(t){const a=!t.startsWith(this.pattern);return{isMatch:a,score:a?0:1,indices:[0,t.length-1]}}}class zI extends ui{constructor(t){super(t)}static get type(){return"suffix-exact"}static get multiRegex(){return/^"(.*)"\$$/}static get singleRegex(){return/^(.*)\$$/}search(t){const a=t.endsWith(this.pattern);return{isMatch:a,score:a?0:1,indices:[t.length-this.pattern.length,t.length-1]}}}class DI extends ui{constructor(t){super(t)}static get type(){return"inverse-suffix-exact"}static get multiRegex(){return/^!"(.*)"\$$/}static get singleRegex(){return/^!(.*)\$$/}search(t){const a=!t.endsWith(this.pattern);return{isMatch:a,score:a?0:1,indices:[0,t.length-1]}}}class h4 extends ui{constructor(t,{location:a=Re.location,threshold:i=Re.threshold,distance:l=Re.distance,includeMatches:s=Re.includeMatches,findAllMatches:u=Re.findAllMatches,minMatchCharLength:f=Re.minMatchCharLength,isCaseSensitive:d=Re.isCaseSensitive,ignoreDiacritics:h=Re.ignoreDiacritics,ignoreLocation:m=Re.ignoreLocation}={}){super(t),this._bitapSearch=new p4(t,{location:a,threshold:i,distance:l,includeMatches:s,findAllMatches:u,minMatchCharLength:f,isCaseSensitive:d,ignoreDiacritics:h,ignoreLocation:m})}static get type(){return"fuzzy"}static get multiRegex(){return/^"(.*)"$/}static get singleRegex(){return/^(.*)$/}search(t){return this._bitapSearch.searchIn(t)}}class m4 extends ui{constructor(t){super(t)}static get type(){return"include"}static get multiRegex(){return/^'"(.*)"$/}static get singleRegex(){return/^'(.*)$/}search(t){let a=0,i;const l=[],s=this.pattern.length;for(;(i=t.indexOf(this.pattern,a))>-1;)a=i+s,l.push([i,a-1]);const u=!!l.length;return{isMatch:u,score:u?0:1,indices:l}}}const n0=[_I,m4,kI,NI,DI,zI,jI,h4],Qx=n0.length,MI=/ +(?=(?:[^\"]*\"[^\"]*\")*[^\"]*$)/,BI="|";function LI(e,t={}){return e.split(BI).map(a=>{let i=a.trim().split(MI).filter(s=>s&&!!s.trim()),l=[];for(let s=0,u=i.length;s<u;s+=1){const f=i[s];let d=!1,h=-1;for(;!d&&++h<Qx;){const m=n0[h];let v=m.isMultiMatch(f);v&&(l.push(new m(v,t)),d=!0)}if(!d)for(h=-1;++h<Qx;){const m=n0[h];let v=m.isSingleMatch(f);if(v){l.push(new m(v,t));break}}}return l})}const PI=new Set([h4.type,m4.type]);class II{constructor(t,{isCaseSensitive:a=Re.isCaseSensitive,ignoreDiacritics:i=Re.ignoreDiacritics,includeMatches:l=Re.includeMatches,minMatchCharLength:s=Re.minMatchCharLength,ignoreLocation:u=Re.ignoreLocation,findAllMatches:f=Re.findAllMatches,location:d=Re.location,threshold:h=Re.threshold,distance:m=Re.distance}={}){this.query=null,this.options={isCaseSensitive:a,ignoreDiacritics:i,includeMatches:l,minMatchCharLength:s,findAllMatches:f,ignoreLocation:u,location:d,threshold:h,distance:m},t=a?t:t.toLowerCase(),t=i?bf(t):t,this.pattern=t,this.query=LI(this.pattern,this.options)}static condition(t,a){return a.useExtendedSearch}searchIn(t){const a=this.query;if(!a)return{isMatch:!1,score:1};const{includeMatches:i,isCaseSensitive:l,ignoreDiacritics:s}=this.options;t=l?t:t.toLowerCase(),t=s?bf(t):t;let u=0,f=[],d=0;for(let h=0,m=a.length;h<m;h+=1){const v=a[h];f.length=0,u=0;for(let S=0,w=v.length;S<w;S+=1){const x=v[S],{isMatch:b,indices:A,score:j}=x.search(t);if(b){if(u+=1,d+=j,i){const _=x.constructor.type;PI.has(_)?f=[...f,...A]:f.push(A)}}else{d=0,u=0,f.length=0;break}}if(u){let S={isMatch:!0,score:d/u};return i&&(S.indices=f),S}}return{isMatch:!1,score:1}}}const r0=[];function HI(...e){r0.push(...e)}function a0(e,t){for(let a=0,i=r0.length;a<i;a+=1){let l=r0[a];if(l.condition(e,t))return new l(e,t)}return new p4(e,t)}const xf={AND:"$and",OR:"$or"},i0={PATH:"$path",PATTERN:"$val"},o0=e=>!!(e[xf.AND]||e[xf.OR]),UI=e=>!!e[i0.PATH],FI=e=>!Ea(e)&&c4(e)&&!o0(e),Jx=e=>({[xf.AND]:Object.keys(e).map(t=>({[t]:e[t]}))});function g4(e,t,{auto:a=!0}={}){const i=l=>{let s=Object.keys(l);const u=UI(l);if(!u&&s.length>1&&!o0(l))return i(Jx(l));if(FI(l)){const d=u?l[i0.PATH]:s[0],h=u?l[i0.PATTERN]:l[d];if(!Br(h))throw new Error(hI(d));const m={keyId:t0(d),pattern:h};return a&&(m.searcher=a0(h,t)),m}let f={children:[],operator:s[0]};return s.forEach(d=>{const h=l[d];Ea(h)&&h.forEach(m=>{f.children.push(i(m))})}),f};return o0(e)||(e=Jx(e)),i(e)}function VI(e,{ignoreFieldNorm:t=Re.ignoreFieldNorm}){e.forEach(a=>{let i=1;a.matches.forEach(({key:l,norm:s,score:u})=>{const f=l?l.weight:null;i*=Math.pow(u===0&&f?Number.EPSILON:u,(f||1)*(t?1:s))}),a.score=i})}function qI(e,t){const a=e.matches;t.matches=[],Nn(a)&&a.forEach(i=>{if(!Nn(i.indices)||!i.indices.length)return;const{indices:l,value:s}=i;let u={indices:l,value:s};i.key&&(u.key=i.key.src),i.idx>-1&&(u.refIndex=i.idx),t.matches.push(u)})}function YI(e,t){t.score=e.score}function GI(e,t,{includeMatches:a=Re.includeMatches,includeScore:i=Re.includeScore}={}){const l=[];return a&&l.push(qI),i&&l.push(YI),e.map(s=>{const{idx:u}=s,f={item:t[u],refIndex:u};return l.length&&l.forEach(d=>{d(s,f)}),f})}class Sl{constructor(t,a={},i){this.options={...Re,...a},this.options.useExtendedSearch,this._keyStore=new yI(this.options.keys),this.setCollection(t,i)}setCollection(t,a){if(this._docs=t,a&&!(a instanceof fg))throw new Error(pI);this._myIndex=a||d4(this.options.keys,this._docs,{getFn:this.options.getFn,fieldNormWeight:this.options.fieldNormWeight})}add(t){Nn(t)&&(this._docs.push(t),this._myIndex.add(t))}remove(t=()=>!1){const a=[];for(let i=0,l=this._docs.length;i<l;i+=1){const s=this._docs[i];t(s,i)&&(this.removeAt(i),i-=1,l-=1,a.push(s))}return a}removeAt(t){this._docs.splice(t,1),this._myIndex.removeAt(t)}getIndex(){return this._myIndex}search(t,{limit:a=-1}={}){const{includeMatches:i,includeScore:l,shouldSort:s,sortFn:u,ignoreFieldNorm:f}=this.options;let d=Br(t)?Br(this._docs[0])?this._searchStringList(t):this._searchObjectList(t):this._searchLogical(t);return VI(d,{ignoreFieldNorm:f}),s&&d.sort(u),s4(a)&&a>-1&&(d=d.slice(0,a)),GI(d,this._docs,{includeMatches:i,includeScore:l})}_searchStringList(t){const a=a0(t,this.options),{records:i}=this._myIndex,l=[];return i.forEach(({v:s,i:u,n:f})=>{if(!Nn(s))return;const{isMatch:d,score:h,indices:m}=a.searchIn(s);d&&l.push({item:s,idx:u,matches:[{score:h,value:s,norm:f,indices:m}]})}),l}_searchLogical(t){const a=g4(t,this.options),i=(f,d,h)=>{if(!f.children){const{keyId:v,searcher:S}=f,w=this._findMatches({key:this._keyStore.get(v),value:this._myIndex.getValueForItemAtKeyId(d,v),searcher:S});return w&&w.length?[{idx:h,item:d,matches:w}]:[]}const m=[];for(let v=0,S=f.children.length;v<S;v+=1){const w=f.children[v],x=i(w,d,h);if(x.length)m.push(...x);else if(f.operator===xf.AND)return[]}return m},l=this._myIndex.records,s={},u=[];return l.forEach(({$:f,i:d})=>{if(Nn(f)){let h=i(a,f,d);h.length&&(s[d]||(s[d]={idx:d,item:f,matches:[]},u.push(s[d])),h.forEach(({matches:m})=>{s[d].matches.push(...m)}))}}),u}_searchObjectList(t){const a=a0(t,this.options),{keys:i,records:l}=this._myIndex,s=[];return l.forEach(({$:u,i:f})=>{if(!Nn(u))return;let d=[];i.forEach((h,m)=>{d.push(...this._findMatches({key:h,value:u[m],searcher:a}))}),d.length&&s.push({idx:f,item:u,matches:d})}),s}_findMatches({key:t,value:a,searcher:i}){if(!Nn(a))return[];let l=[];if(Ea(a))a.forEach(({v:s,i:u,n:f})=>{if(!Nn(s))return;const{isMatch:d,score:h,indices:m}=i.searchIn(s);d&&l.push({score:h,key:t,value:s,idx:u,norm:f,indices:m})});else{const{v:s,n:u}=a,{isMatch:f,score:d,indices:h}=i.searchIn(s);f&&l.push({score:d,key:t,value:s,norm:u,indices:h})}return l}}Sl.version="7.1.0";Sl.createIndex=d4;Sl.parseIndex=RI;Sl.config=Re;Sl.parseQuery=g4;HI(II);const WI=[{name:"Movie",code:"mv"},{name:"TV Show",code:"tv"},{name:"Torrents",code:"tr"}];function KI(){const[e,t]=C.useState("mv"),a=X3(),[i,l]=C.useState(),[s,u]=C.useState([]),[f,d]=C.useState(""),h=()=>f.trim()?new Sl(s,{keys:["name"],threshold:.5,ignoreLocation:!0,includeScore:!0}).search(f.trim()).sort((v,S)=>(v.score||0)-(S.score||0)).map(v=>v.item):s;return C.useEffect(()=>{e==="tv"?oB().then(m=>{l(m)}):e==="tr"&&lB().then(m=>{console.log(m),u(m)})},[e]),y.jsxs(y.Fragment,{children:[y.jsx(Aa,{}),y.jsxs("div",{className:"p-10",children:[y.jsx("h1",{className:"text-2xl font-bold",children:"Offline Saved Data"}),y.jsx("div",{className:"flex gap-5 text-sm mt-5 mb-5",children:WI.map((m,v)=>y.jsx("div",{onClick:()=>t(m.code),className:"cursor-pointer"+(e===m.code?" underline-offset-2 underline font-bold":""),children:y.jsx("p",{children:m.name})},v))}),e==="mv"?y.jsxs("div",{className:"flex gap-5 flex-wrap",children:[a?.map((m,v)=>y.jsx(bl,{m:{id:m.id,title:m.title,year:m.year,rating:m.rating,medium_cover_image:m.medium_cover_image,runtime:m.runtime?.toString()}},v)),a?.length===0&&y.jsx(im,{msg:"No saved movies"})]}):e==="tv"?y.jsxs("div",{className:"flex gap-5 flex-wrap",children:[i?.map((m,v)=>y.jsx(Xm,{to:`/home_cinema/tv_shows/${m.id}`,show:{id:m.id,name:m.name,first_air_date:m.first_air_date,vote_average:m.vote_average,poster_path:m.poster_path,backdrop_path:m.backdrop_path,origin_country:m.origin_country,genre_ids:[]}},v)),i?.length===0&&y.jsx(im,{msg:"No saved TV shows"})]}):y.jsxs("div",{children:[y.jsx("div",{className:"mt-10 mb-3",children:y.jsx(rf,{placeholder:"search",value:f,onChange:m=>{d(m.target.value)},className:"max-w-[200px]!"})}),h().map(m=>y.jsx(J3,{t:m})),s?.length===0&&y.jsx(im,{msg:"No saved torrents"})]})]})]})}function im({msg:e}){return y.jsx("div",{className:"flex opacity-50 justify-center items-center w-full h-screen absolute top-0 left-0 -z-10",children:y.jsx("h1",{children:e})})}function XI(){const e=sn();return y.jsxs("div",{className:"w-full h-screen flex justify-center items-center flex-col gap-3",children:[y.jsx(Ne,{icon:R6,size:"4x"}),y.jsx("h1",{className:"text-xl font-bold",children:"Page Not Found"}),y.jsx(ga,{onClick:()=>{e("/")},children:"Back To Home"})]})}function QI(){const e=sn();return C.useEffect(()=>{e("/home_cinema")},[]),y.jsx(y.Fragment,{})}function JI(){return y.jsx(y.Fragment,{children:y.jsx(o6,{children:y.jsxs(DA,{children:[y.jsx(yn,{path:"/",element:y.jsx(QI,{})}),y.jsx(yn,{path:"/home_cinema",element:y.jsx(q9,{})}),y.jsx(yn,{path:"/home_cinema/watch",element:y.jsx(fB,{})}),y.jsx(yn,{path:"/home_cinema/search",element:y.jsx(dB,{})}),y.jsx(yn,{path:"/home_cinema/watch/:id",element:y.jsx(mB,{})}),y.jsx(yn,{path:"/home_cinema/watch/:id/play/:hash",element:y.jsx(vB,{})}),y.jsx(yn,{path:"/home_cinema/watch_tv_shows/",element:y.jsx(CB,{})}),y.jsx(yn,{path:"/home_cinema/tv_shows/:id",element:y.jsx(rL,{})}),y.jsx(yn,{path:"/home_cinema/torrents/:hash/files",element:y.jsx(KP,{})}),y.jsx(yn,{path:"/home_cinema/torrents/",element:y.jsx(sI,{})}),y.jsx(yn,{path:"/home_cinema/downloads",element:y.jsx(oI,{})}),y.jsx(yn,{path:"/home_cinema/saved",element:y.jsx(KI,{})}),y.jsx(yn,{path:"*",element:y.jsx(XI,{})})]})})})}Lw.createRoot(document.getElementById("root")).render(y.jsx(C.StrictMode,{children:y.jsx(JI,{})}));