function s0(n,r){for(var s=0;s<r.length;s++){const o=r[s];if(typeof o!="string"&&!Array.isArray(o)){for(const c in o)if(c!=="default"&&!(c in n)){const h=Object.getOwnPropertyDescriptor(o,c);h&&Object.defineProperty(n,c,h.get?h:{enumerable:!0,get:()=>o[c]})}}}return Object.freeze(Object.defineProperty(n,Symbol.toStringTag,{value:"Module"}))}(function(){const r=document.createElement("link").relList;if(r&&r.supports&&r.supports("modulepreload"))return;for(const c of document.querySelectorAll('link[rel="modulepreload"]'))o(c);new MutationObserver(c=>{for(const h of c)if(h.type==="childList")for(const m of h.addedNodes)m.tagName==="LINK"&&m.rel==="modulepreload"&&o(m)}).observe(document,{childList:!0,subtree:!0});function s(c){const h={};return c.integrity&&(h.integrity=c.integrity),c.referrerPolicy&&(h.referrerPolicy=c.referrerPolicy),c.crossOrigin==="use-credentials"?h.credentials="include":c.crossOrigin==="anonymous"?h.credentials="omit":h.credentials="same-origin",h}function o(c){if(c.ep)return;c.ep=!0;const h=s(c);fetch(c.href,h)}})();var p2=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function o0(n){return n&&n.__esModule&&Object.prototype.hasOwnProperty.call(n,"default")?n.default:n}var jo={exports:{}},fu={};/**
 * @license React
 * react-jsx-runtime.production.js
 *
 * Copyright (c) Meta Platforms, Inc. and affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */var um;function c0(){if(um)return fu;um=1;var n=Symbol.for("react.transitional.element"),r=Symbol.for("react.fragment");function s(o,c,h){var m=null;if(h!==void 0&&(m=""+h),c.key!==void 0&&(m=""+c.key),"key"in c){h={};for(var v in c)v!=="key"&&(h[v]=c[v])}else h=c;return c=h.ref,{$$typeof:n,type:o,key:m,ref:c!==void 0?c:null,props:h}}return fu.Fragment=r,fu.jsx=s,fu.jsxs=s,fu}var rm;function f0(){return rm||(rm=1,jo.exports=c0()),jo.exports}var f=f0(),Oo={exports:{}},de={};/**
 * @license React
 * react.production.js
 *
 * Copyright (c) Meta Platforms, Inc. and affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */var im;function d0(){if(im)return de;im=1;var n=Symbol.for("react.transitional.element"),r=Symbol.for("react.portal"),s=Symbol.for("react.fragment"),o=Symbol.for("react.strict_mode"),c=Symbol.for("react.profiler"),h=Symbol.for("react.consumer"),m=Symbol.for("react.context"),v=Symbol.for("react.forward_ref"),y=Symbol.for("react.suspense"),p=Symbol.for("react.memo"),O=Symbol.for("react.lazy"),S=Symbol.for("react.activity"),C=Symbol.iterator;function w(x){return x===null||typeof x!="object"?null:(x=C&&x[C]||x["@@iterator"],typeof x=="function"?x:null)}var G={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},_=Object.assign,F={};function ne(x,U,B){this.props=x,this.context=U,this.refs=F,this.updater=B||G}ne.prototype.isReactComponent={},ne.prototype.setState=function(x,U){if(typeof x!="object"&&typeof x!="function"&&x!=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,x,U,"setState")},ne.prototype.forceUpdate=function(x){this.updater.enqueueForceUpdate(this,x,"forceUpdate")};function ce(){}ce.prototype=ne.prototype;function oe(x,U,B){this.props=x,this.context=U,this.refs=F,this.updater=B||G}var Ce=oe.prototype=new ce;Ce.constructor=oe,_(Ce,ne.prototype),Ce.isPureReactComponent=!0;var X=Array.isArray;function V(){}var D={H:null,A:null,T:null,S:null},J=Object.prototype.hasOwnProperty;function ee(x,U,B){var Y=B.ref;return{$$typeof:n,type:x,key:U,ref:Y!==void 0?Y:null,props:B}}function I(x,U){return ee(x.type,U,x.props)}function le(x){return typeof x=="object"&&x!==null&&x.$$typeof===n}function te(x){var U={"=":"=0",":":"=2"};return"$"+x.replace(/[=:]/g,function(B){return U[B]})}var ge=/\/+/g;function fe(x,U){return typeof x=="object"&&x!==null&&x.key!=null?te(""+x.key):U.toString(36)}function me(x){switch(x.status){case"fulfilled":return x.value;case"rejected":throw x.reason;default:switch(typeof x.status=="string"?x.then(V,V):(x.status="pending",x.then(function(U){x.status==="pending"&&(x.status="fulfilled",x.value=U)},function(U){x.status==="pending"&&(x.status="rejected",x.reason=U)})),x.status){case"fulfilled":return x.value;case"rejected":throw x.reason}}throw x}function M(x,U,B,Y,W){var se=typeof x;(se==="undefined"||se==="boolean")&&(x=null);var xe=!1;if(x===null)xe=!0;else switch(se){case"bigint":case"string":case"number":xe=!0;break;case"object":switch(x.$$typeof){case n:case r:xe=!0;break;case O:return xe=x._init,M(xe(x._payload),U,B,Y,W)}}if(xe)return W=W(x),xe=Y===""?"."+fe(x,0):Y,X(W)?(B="",xe!=null&&(B=xe.replace(ge,"$&/")+"/"),M(W,U,B,"",function(ja){return ja})):W!=null&&(le(W)&&(W=I(W,B+(W.key==null||x&&x.key===W.key?"":(""+W.key).replace(ge,"$&/")+"/")+xe)),U.push(W)),1;xe=0;var Je=Y===""?".":Y+":";if(X(x))for(var Be=0;Be<x.length;Be++)Y=x[Be],se=Je+fe(Y,Be),xe+=M(Y,U,B,se,W);else if(Be=w(x),typeof Be=="function")for(x=Be.call(x),Be=0;!(Y=x.next()).done;)Y=Y.value,se=Je+fe(Y,Be++),xe+=M(Y,U,B,se,W);else if(se==="object"){if(typeof x.then=="function")return M(me(x),U,B,Y,W);throw U=String(x),Error("Objects are not valid as a React child (found: "+(U==="[object Object]"?"object with keys {"+Object.keys(x).join(", ")+"}":U)+"). If you meant to render a collection of children, use an array instead.")}return xe}function H(x,U,B){if(x==null)return x;var Y=[],W=0;return M(x,Y,"","",function(se){return U.call(B,se,W++)}),Y}function K(x){if(x._status===-1){var U=x._result;U=U(),U.then(function(B){(x._status===0||x._status===-1)&&(x._status=1,x._result=B)},function(B){(x._status===0||x._status===-1)&&(x._status=2,x._result=B)}),x._status===-1&&(x._status=0,x._result=U)}if(x._status===1)return x._result.default;throw x._result}var re=typeof reportError=="function"?reportError:function(x){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var U=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof x=="object"&&x!==null&&typeof x.message=="string"?String(x.message):String(x),error:x});if(!window.dispatchEvent(U))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",x);return}console.error(x)},ye={map:H,forEach:function(x,U,B){H(x,function(){U.apply(this,arguments)},B)},count:function(x){var U=0;return H(x,function(){U++}),U},toArray:function(x){return H(x,function(U){return U})||[]},only:function(x){if(!le(x))throw Error("React.Children.only expected to receive a single React element child.");return x}};return de.Activity=S,de.Children=ye,de.Component=ne,de.Fragment=s,de.Profiler=c,de.PureComponent=oe,de.StrictMode=o,de.Suspense=y,de.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=D,de.__COMPILER_RUNTIME={__proto__:null,c:function(x){return D.H.useMemoCache(x)}},de.cache=function(x){return function(){return x.apply(null,arguments)}},de.cacheSignal=function(){return null},de.cloneElement=function(x,U,B){if(x==null)throw Error("The argument must be a React element, but you passed "+x+".");var Y=_({},x.props),W=x.key;if(U!=null)for(se in U.key!==void 0&&(W=""+U.key),U)!J.call(U,se)||se==="key"||se==="__self"||se==="__source"||se==="ref"&&U.ref===void 0||(Y[se]=U[se]);var se=arguments.length-2;if(se===1)Y.children=B;else if(1<se){for(var xe=Array(se),Je=0;Je<se;Je++)xe[Je]=arguments[Je+2];Y.children=xe}return ee(x.type,W,Y)},de.createContext=function(x){return x={$$typeof:m,_currentValue:x,_currentValue2:x,_threadCount:0,Provider:null,Consumer:null},x.Provider=x,x.Consumer={$$typeof:h,_context:x},x},de.createElement=function(x,U,B){var Y,W={},se=null;if(U!=null)for(Y in U.key!==void 0&&(se=""+U.key),U)J.call(U,Y)&&Y!=="key"&&Y!=="__self"&&Y!=="__source"&&(W[Y]=U[Y]);var xe=arguments.length-2;if(xe===1)W.children=B;else if(1<xe){for(var Je=Array(xe),Be=0;Be<xe;Be++)Je[Be]=arguments[Be+2];W.children=Je}if(x&&x.defaultProps)for(Y in xe=x.defaultProps,xe)W[Y]===void 0&&(W[Y]=xe[Y]);return ee(x,se,W)},de.createRef=function(){return{current:null}},de.forwardRef=function(x){return{$$typeof:v,render:x}},de.isValidElement=le,de.lazy=function(x){return{$$typeof:O,_payload:{_status:-1,_result:x},_init:K}},de.memo=function(x,U){return{$$typeof:p,type:x,compare:U===void 0?null:U}},de.startTransition=function(x){var U=D.T,B={};D.T=B;try{var Y=x(),W=D.S;W!==null&&W(B,Y),typeof Y=="object"&&Y!==null&&typeof Y.then=="function"&&Y.then(V,re)}catch(se){re(se)}finally{U!==null&&B.types!==null&&(U.types=B.types),D.T=U}},de.unstable_useCacheRefresh=function(){return D.H.useCacheRefresh()},de.use=function(x){return D.H.use(x)},de.useActionState=function(x,U,B){return D.H.useActionState(x,U,B)},de.useCallback=function(x,U){return D.H.useCallback(x,U)},de.useContext=function(x){return D.H.useContext(x)},de.useDebugValue=function(){},de.useDeferredValue=function(x,U){return D.H.useDeferredValue(x,U)},de.useEffect=function(x,U){return D.H.useEffect(x,U)},de.useEffectEvent=function(x){return D.H.useEffectEvent(x)},de.useId=function(){return D.H.useId()},de.useImperativeHandle=function(x,U,B){return D.H.useImperativeHandle(x,U,B)},de.useInsertionEffect=function(x,U){return D.H.useInsertionEffect(x,U)},de.useLayoutEffect=function(x,U){return D.H.useLayoutEffect(x,U)},de.useMemo=function(x,U){return D.H.useMemo(x,U)},de.useOptimistic=function(x,U){return D.H.useOptimistic(x,U)},de.useReducer=function(x,U,B){return D.H.useReducer(x,U,B)},de.useRef=function(x){return D.H.useRef(x)},de.useState=function(x){return D.H.useState(x)},de.useSyncExternalStore=function(x,U,B){return D.H.useSyncExternalStore(x,U,B)},de.useTransition=function(){return D.H.useTransition()},de.version="19.2.1",de}var sm;function ti(){return sm||(sm=1,Oo.exports=d0()),Oo.exports}var R=ti();const h0=o0(R),Xm=s0({__proto__:null,default:h0},[R]);var _o={exports:{}},du={},No={exports:{}},Co={};/**
 * @license React
 * scheduler.production.js
 *
 * Copyright (c) Meta Platforms, Inc. and affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */var om;function m0(){return om||(om=1,(function(n){function r(M,H){var K=M.length;M.push(H);e:for(;0<K;){var re=K-1>>>1,ye=M[re];if(0<c(ye,H))M[re]=H,M[K]=ye,K=re;else break e}}function s(M){return M.length===0?null:M[0]}function o(M){if(M.length===0)return null;var H=M[0],K=M.pop();if(K!==H){M[0]=K;e:for(var re=0,ye=M.length,x=ye>>>1;re<x;){var U=2*(re+1)-1,B=M[U],Y=U+1,W=M[Y];if(0>c(B,K))Y<ye&&0>c(W,B)?(M[re]=W,M[Y]=K,re=Y):(M[re]=B,M[U]=K,re=U);else if(Y<ye&&0>c(W,K))M[re]=W,M[Y]=K,re=Y;else break e}}return H}function c(M,H){var K=M.sortIndex-H.sortIndex;return K!==0?K:M.id-H.id}if(n.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var h=performance;n.unstable_now=function(){return h.now()}}else{var m=Date,v=m.now();n.unstable_now=function(){return m.now()-v}}var y=[],p=[],O=1,S=null,C=3,w=!1,G=!1,_=!1,F=!1,ne=typeof setTimeout=="function"?setTimeout:null,ce=typeof clearTimeout=="function"?clearTimeout:null,oe=typeof setImmediate<"u"?setImmediate:null;function Ce(M){for(var H=s(p);H!==null;){if(H.callback===null)o(p);else if(H.startTime<=M)o(p),H.sortIndex=H.expirationTime,r(y,H);else break;H=s(p)}}function X(M){if(_=!1,Ce(M),!G)if(s(y)!==null)G=!0,V||(V=!0,te());else{var H=s(p);H!==null&&me(X,H.startTime-M)}}var V=!1,D=-1,J=5,ee=-1;function I(){return F?!0:!(n.unstable_now()-ee<J)}function le(){if(F=!1,V){var M=n.unstable_now();ee=M;var H=!0;try{e:{G=!1,_&&(_=!1,ce(D),D=-1),w=!0;var K=C;try{t:{for(Ce(M),S=s(y);S!==null&&!(S.expirationTime>M&&I());){var re=S.callback;if(typeof re=="function"){S.callback=null,C=S.priorityLevel;var ye=re(S.expirationTime<=M);if(M=n.unstable_now(),typeof ye=="function"){S.callback=ye,Ce(M),H=!0;break t}S===s(y)&&o(y),Ce(M)}else o(y);S=s(y)}if(S!==null)H=!0;else{var x=s(p);x!==null&&me(X,x.startTime-M),H=!1}}break e}finally{S=null,C=K,w=!1}H=void 0}}finally{H?te():V=!1}}}var te;if(typeof oe=="function")te=function(){oe(le)};else if(typeof MessageChannel<"u"){var ge=new MessageChannel,fe=ge.port2;ge.port1.onmessage=le,te=function(){fe.postMessage(null)}}else te=function(){ne(le,0)};function me(M,H){D=ne(function(){M(n.unstable_now())},H)}n.unstable_IdlePriority=5,n.unstable_ImmediatePriority=1,n.unstable_LowPriority=4,n.unstable_NormalPriority=3,n.unstable_Profiling=null,n.unstable_UserBlockingPriority=2,n.unstable_cancelCallback=function(M){M.callback=null},n.unstable_forceFrameRate=function(M){0>M||125<M?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):J=0<M?Math.floor(1e3/M):5},n.unstable_getCurrentPriorityLevel=function(){return C},n.unstable_next=function(M){switch(C){case 1:case 2:case 3:var H=3;break;default:H=C}var K=C;C=H;try{return M()}finally{C=K}},n.unstable_requestPaint=function(){F=!0},n.unstable_runWithPriority=function(M,H){switch(M){case 1:case 2:case 3:case 4:case 5:break;default:M=3}var K=C;C=M;try{return H()}finally{C=K}},n.unstable_scheduleCallback=function(M,H,K){var re=n.unstable_now();switch(typeof K=="object"&&K!==null?(K=K.delay,K=typeof K=="number"&&0<K?re+K:re):K=re,M){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=K+ye,M={id:O++,callback:H,priorityLevel:M,startTime:K,expirationTime:ye,sortIndex:-1},K>re?(M.sortIndex=K,r(p,M),s(y)===null&&M===s(p)&&(_?(ce(D),D=-1):_=!0,me(X,K-re))):(M.sortIndex=ye,r(y,M),G||w||(G=!0,V||(V=!0,te()))),M},n.unstable_shouldYield=I,n.unstable_wrapCallback=function(M){var H=C;return function(){var K=C;C=H;try{return M.apply(this,arguments)}finally{C=K}}}})(Co)),Co}var cm;function v0(){return cm||(cm=1,No.exports=m0()),No.exports}var Eo={exports:{}},it={};/**
 * @license React
 * react-dom.production.js
 *
 * Copyright (c) Meta Platforms, Inc. and affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */var fm;function y0(){if(fm)return it;fm=1;var n=ti();function r(y){var p="https://react.dev/errors/"+y;if(1<arguments.length){p+="?args[]="+encodeURIComponent(arguments[1]);for(var O=2;O<arguments.length;O++)p+="&args[]="+encodeURIComponent(arguments[O])}return"Minified React error #"+y+"; visit "+p+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function s(){}var o={d:{f:s,r:function(){throw Error(r(522))},D:s,C:s,L:s,m:s,X:s,S:s,M:s},p:0,findDOMNode:null},c=Symbol.for("react.portal");function h(y,p,O){var S=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:c,key:S==null?null:""+S,children:y,containerInfo:p,implementation:O}}var m=n.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function v(y,p){if(y==="font")return"";if(typeof p=="string")return p==="use-credentials"?p:""}return it.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=o,it.createPortal=function(y,p){var O=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!p||p.nodeType!==1&&p.nodeType!==9&&p.nodeType!==11)throw Error(r(299));return h(y,p,null,O)},it.flushSync=function(y){var p=m.T,O=o.p;try{if(m.T=null,o.p=2,y)return y()}finally{m.T=p,o.p=O,o.d.f()}},it.preconnect=function(y,p){typeof y=="string"&&(p?(p=p.crossOrigin,p=typeof p=="string"?p==="use-credentials"?p:"":void 0):p=null,o.d.C(y,p))},it.prefetchDNS=function(y){typeof y=="string"&&o.d.D(y)},it.preinit=function(y,p){if(typeof y=="string"&&p&&typeof p.as=="string"){var O=p.as,S=v(O,p.crossOrigin),C=typeof p.integrity=="string"?p.integrity:void 0,w=typeof p.fetchPriority=="string"?p.fetchPriority:void 0;O==="style"?o.d.S(y,typeof p.precedence=="string"?p.precedence:void 0,{crossOrigin:S,integrity:C,fetchPriority:w}):O==="script"&&o.d.X(y,{crossOrigin:S,integrity:C,fetchPriority:w,nonce:typeof p.nonce=="string"?p.nonce:void 0})}},it.preinitModule=function(y,p){if(typeof y=="string")if(typeof p=="object"&&p!==null){if(p.as==null||p.as==="script"){var O=v(p.as,p.crossOrigin);o.d.M(y,{crossOrigin:O,integrity:typeof p.integrity=="string"?p.integrity:void 0,nonce:typeof p.nonce=="string"?p.nonce:void 0})}}else p==null&&o.d.M(y)},it.preload=function(y,p){if(typeof y=="string"&&typeof p=="object"&&p!==null&&typeof p.as=="string"){var O=p.as,S=v(O,p.crossOrigin);o.d.L(y,O,{crossOrigin:S,integrity:typeof p.integrity=="string"?p.integrity:void 0,nonce:typeof p.nonce=="string"?p.nonce:void 0,type:typeof p.type=="string"?p.type:void 0,fetchPriority:typeof p.fetchPriority=="string"?p.fetchPriority:void 0,referrerPolicy:typeof p.referrerPolicy=="string"?p.referrerPolicy:void 0,imageSrcSet:typeof p.imageSrcSet=="string"?p.imageSrcSet:void 0,imageSizes:typeof p.imageSizes=="string"?p.imageSizes:void 0,media:typeof p.media=="string"?p.media:void 0})}},it.preloadModule=function(y,p){if(typeof y=="string")if(p){var O=v(p.as,p.crossOrigin);o.d.m(y,{as:typeof p.as=="string"&&p.as!=="script"?p.as:void 0,crossOrigin:O,integrity:typeof p.integrity=="string"?p.integrity:void 0})}else o.d.m(y)},it.requestFormReset=function(y){o.d.r(y)},it.unstable_batchedUpdates=function(y,p){return y(p)},it.useFormState=function(y,p,O){return m.H.useFormState(y,p,O)},it.useFormStatus=function(){return m.H.useHostTransitionStatus()},it.version="19.2.1",it}var dm;function p0(){if(dm)return Eo.exports;dm=1;function n(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(n)}catch(r){console.error(r)}}return n(),Eo.exports=y0(),Eo.exports}/**
 * @license React
 * react-dom-client.production.js
 *
 * Copyright (c) Meta Platforms, Inc. and affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */var hm;function g0(){if(hm)return du;hm=1;var n=v0(),r=ti(),s=p0();function o(e){var t="https://react.dev/errors/"+e;if(1<arguments.length){t+="?args[]="+encodeURIComponent(arguments[1]);for(var a=2;a<arguments.length;a++)t+="&args[]="+encodeURIComponent(arguments[a])}return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function c(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function h(e){var t=e,a=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,(t.flags&4098)!==0&&(a=t.return),e=t.return;while(e)}return t.tag===3?a:null}function m(e){if(e.tag===13){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function v(e){if(e.tag===31){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function y(e){if(h(e)!==e)throw Error(o(188))}function p(e){var t=e.alternate;if(!t){if(t=h(e),t===null)throw Error(o(188));return t!==e?null:e}for(var a=e,l=t;;){var u=a.return;if(u===null)break;var i=u.alternate;if(i===null){if(l=u.return,l!==null){a=l;continue}break}if(u.child===i.child){for(i=u.child;i;){if(i===a)return y(u),e;if(i===l)return y(u),t;i=i.sibling}throw Error(o(188))}if(a.return!==l.return)a=u,l=i;else{for(var d=!1,g=u.child;g;){if(g===a){d=!0,a=u,l=i;break}if(g===l){d=!0,l=u,a=i;break}g=g.sibling}if(!d){for(g=i.child;g;){if(g===a){d=!0,a=i,l=u;break}if(g===l){d=!0,l=i,a=u;break}g=g.sibling}if(!d)throw Error(o(189))}}if(a.alternate!==l)throw Error(o(190))}if(a.tag!==3)throw Error(o(188));return a.stateNode.current===a?e:t}function O(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e;for(e=e.child;e!==null;){if(t=O(e),t!==null)return t;e=e.sibling}return null}var S=Object.assign,C=Symbol.for("react.element"),w=Symbol.for("react.transitional.element"),G=Symbol.for("react.portal"),_=Symbol.for("react.fragment"),F=Symbol.for("react.strict_mode"),ne=Symbol.for("react.profiler"),ce=Symbol.for("react.consumer"),oe=Symbol.for("react.context"),Ce=Symbol.for("react.forward_ref"),X=Symbol.for("react.suspense"),V=Symbol.for("react.suspense_list"),D=Symbol.for("react.memo"),J=Symbol.for("react.lazy"),ee=Symbol.for("react.activity"),I=Symbol.for("react.memo_cache_sentinel"),le=Symbol.iterator;function te(e){return e===null||typeof e!="object"?null:(e=le&&e[le]||e["@@iterator"],typeof e=="function"?e:null)}var ge=Symbol.for("react.client.reference");function fe(e){if(e==null)return null;if(typeof e=="function")return e.$$typeof===ge?null:e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case _:return"Fragment";case ne:return"Profiler";case F:return"StrictMode";case X:return"Suspense";case V:return"SuspenseList";case ee:return"Activity"}if(typeof e=="object")switch(e.$$typeof){case G:return"Portal";case oe:return e.displayName||"Context";case ce:return(e._context.displayName||"Context")+".Consumer";case Ce:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case D:return t=e.displayName||null,t!==null?t:fe(e.type)||"Memo";case J:t=e._payload,e=e._init;try{return fe(e(t))}catch{}}return null}var me=Array.isArray,M=r.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,H=s.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,K={pending:!1,data:null,method:null,action:null},re=[],ye=-1;function x(e){return{current:e}}function U(e){0>ye||(e.current=re[ye],re[ye]=null,ye--)}function B(e,t){ye++,re[ye]=e.current,e.current=t}var Y=x(null),W=x(null),se=x(null),xe=x(null);function Je(e,t){switch(B(se,t),B(W,e),B(Y,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?Th(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=Th(t),e=Mh(t,e);else switch(e){case"svg":e=1;break;case"math":e=2;break;default:e=0}}U(Y),B(Y,e)}function Be(){U(Y),U(W),U(se)}function ja(e){e.memoizedState!==null&&B(xe,e);var t=Y.current,a=Mh(t,e.type);t!==a&&(B(W,e),B(Y,a))}function Wa(e){W.current===e&&(U(Y),U(W)),xe.current===e&&(U(xe),iu._currentValue=K)}var _l,Ia;function $t(e){if(_l===void 0)try{throw Error()}catch(a){var t=a.stack.trim().match(/\n( *(at )?)/);_l=t&&t[1]||"",Ia=-1<a.stack.indexOf(`
    at`)?" (<anonymous>)":-1<a.stack.indexOf("@")?"@unknown:0:0":""}return`
`+_l+e+Ia}var Oa=!1;function dt(e,t){if(!e||Oa)return"";Oa=!0;var a=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var l={DetermineComponentFrameRoot:function(){try{if(t){var k=function(){throw Error()};if(Object.defineProperty(k.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(k,[])}catch(z){var A=z}Reflect.construct(e,[],k)}else{try{k.call()}catch(z){A=z}e.call(k.prototype)}}else{try{throw Error()}catch(z){A=z}(k=e())&&typeof k.catch=="function"&&k.catch(function(){})}}catch(z){if(z&&A&&typeof z.stack=="string")return[z.stack,A.stack]}return[null,null]}};l.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var u=Object.getOwnPropertyDescriptor(l.DetermineComponentFrameRoot,"name");u&&u.configurable&&Object.defineProperty(l.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var i=l.DetermineComponentFrameRoot(),d=i[0],g=i[1];if(d&&g){var b=d.split(`
`),T=g.split(`
`);for(u=l=0;l<b.length&&!b[l].includes("DetermineComponentFrameRoot");)l++;for(;u<T.length&&!T[u].includes("DetermineComponentFrameRoot");)u++;if(l===b.length||u===T.length)for(l=b.length-1,u=T.length-1;1<=l&&0<=u&&b[l]!==T[u];)u--;for(;1<=l&&0<=u;l--,u--)if(b[l]!==T[u]){if(l!==1||u!==1)do if(l--,u--,0>u||b[l]!==T[u]){var q=`
`+b[l].replace(" at new "," at ");return e.displayName&&q.includes("<anonymous>")&&(q=q.replace("<anonymous>",e.displayName)),q}while(1<=l&&0<=u);break}}}finally{Oa=!1,Error.prepareStackTrace=a}return(a=e?e.displayName||e.name:"")?$t(a):""}function Ou(e,t){switch(e.tag){case 26:case 27:case 5:return $t(e.type);case 16:return $t("Lazy");case 13:return e.child!==t&&t!==null?$t("Suspense Fallback"):$t("Suspense");case 19:return $t("SuspenseList");case 0:case 15:return dt(e.type,!1);case 11:return dt(e.type.render,!1);case 1:return dt(e.type,!0);case 31:return $t("Activity");default:return""}}function mn(e){try{var t="",a=null;do t+=Ou(e,a),a=e,e=e.return;while(e);return t}catch(l){return`
Error generating stack: `+l.message+`
`+l.stack}}var vn=Object.prototype.hasOwnProperty,yn=n.unstable_scheduleCallback,pn=n.unstable_cancelCallback,_u=n.unstable_shouldYield,Z=n.unstable_requestPaint,ze=n.unstable_now,xt=n.unstable_getCurrentPriorityLevel,St=n.unstable_ImmediatePriority,Pt=n.unstable_UserBlockingPriority,ot=n.unstable_NormalPriority,gn=n.unstable_LowPriority,Nu=n.unstable_IdlePriority,Xv=n.log,Vv=n.unstable_setDisableYieldValue,bn=null,jt=null;function _a(e){if(typeof Xv=="function"&&Vv(e),jt&&typeof jt.setStrictMode=="function")try{jt.setStrictMode(bn,e)}catch{}}var Ot=Math.clz32?Math.clz32:Jv,Kv=Math.log,Zv=Math.LN2;function Jv(e){return e>>>=0,e===0?32:31-(Kv(e)/Zv|0)|0}var Cu=256,Eu=262144,Tu=4194304;function el(e){var t=e&42;if(t!==0)return t;switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64: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 e&261888;case 262144:case 524288:case 1048576:case 2097152:return e&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return e&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return e}}function Mu(e,t,a){var l=e.pendingLanes;if(l===0)return 0;var u=0,i=e.suspendedLanes,d=e.pingedLanes;e=e.warmLanes;var g=l&134217727;return g!==0?(l=g&~i,l!==0?u=el(l):(d&=g,d!==0?u=el(d):a||(a=g&~e,a!==0&&(u=el(a))))):(g=l&~i,g!==0?u=el(g):d!==0?u=el(d):a||(a=l&~e,a!==0&&(u=el(a)))),u===0?0:t!==0&&t!==u&&(t&i)===0&&(i=u&-u,a=t&-t,i>=a||i===32&&(a&4194048)!==0)?t:u}function xn(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function Fv(e,t){switch(e){case 1:case 2:case 4:case 8:case 64:return t+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 t+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 sc(){var e=Tu;return Tu<<=1,(Tu&62914560)===0&&(Tu=4194304),e}function oi(e){for(var t=[],a=0;31>a;a++)t.push(e);return t}function Sn(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function $v(e,t,a,l,u,i){var d=e.pendingLanes;e.pendingLanes=a,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=a,e.entangledLanes&=a,e.errorRecoveryDisabledLanes&=a,e.shellSuspendCounter=0;var g=e.entanglements,b=e.expirationTimes,T=e.hiddenUpdates;for(a=d&~a;0<a;){var q=31-Ot(a),k=1<<q;g[q]=0,b[q]=-1;var A=T[q];if(A!==null)for(T[q]=null,q=0;q<A.length;q++){var z=A[q];z!==null&&(z.lane&=-536870913)}a&=~k}l!==0&&oc(e,l,0),i!==0&&u===0&&e.tag!==0&&(e.suspendedLanes|=i&~(d&~t))}function oc(e,t,a){e.pendingLanes|=t,e.suspendedLanes&=~t;var l=31-Ot(t);e.entangledLanes|=t,e.entanglements[l]=e.entanglements[l]|1073741824|a&261930}function cc(e,t){var a=e.entangledLanes|=t;for(e=e.entanglements;a;){var l=31-Ot(a),u=1<<l;u&t|e[l]&t&&(e[l]|=t),a&=~u}}function fc(e,t){var a=t&-t;return a=(a&42)!==0?1:ci(a),(a&(e.suspendedLanes|t))!==0?0:a}function ci(e){switch(e){case 2:e=1;break;case 8:e=4;break;case 32:e=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:e=128;break;case 268435456:e=134217728;break;default:e=0}return e}function fi(e){return e&=-e,2<e?8<e?(e&134217727)!==0?32:268435456:8:2}function dc(){var e=H.p;return e!==0?e:(e=window.event,e===void 0?32:Wh(e.type))}function hc(e,t){var a=H.p;try{return H.p=e,t()}finally{H.p=a}}var Na=Math.random().toString(36).slice(2),at="__reactFiber$"+Na,ht="__reactProps$"+Na,Nl="__reactContainer$"+Na,di="__reactEvents$"+Na,Pv="__reactListeners$"+Na,Wv="__reactHandles$"+Na,mc="__reactResources$"+Na,jn="__reactMarker$"+Na;function hi(e){delete e[at],delete e[ht],delete e[di],delete e[Pv],delete e[Wv]}function Cl(e){var t=e[at];if(t)return t;for(var a=e.parentNode;a;){if(t=a[Nl]||a[at]){if(a=t.alternate,t.child!==null||a!==null&&a.child!==null)for(e=wh(e);e!==null;){if(a=e[at])return a;e=wh(e)}return t}e=a,a=e.parentNode}return null}function El(e){if(e=e[at]||e[Nl]){var t=e.tag;if(t===5||t===6||t===13||t===31||t===26||t===27||t===3)return e}return null}function On(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e.stateNode;throw Error(o(33))}function Tl(e){var t=e[mc];return t||(t=e[mc]={hoistableStyles:new Map,hoistableScripts:new Map}),t}function et(e){e[jn]=!0}var vc=new Set,yc={};function tl(e,t){Ml(e,t),Ml(e+"Capture",t)}function Ml(e,t){for(yc[e]=t,e=0;e<t.length;e++)vc.add(t[e])}var Iv=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]*$"),pc={},gc={};function ey(e){return vn.call(gc,e)?!0:vn.call(pc,e)?!1:Iv.test(e)?gc[e]=!0:(pc[e]=!0,!1)}function Au(e,t,a){if(ey(t))if(a===null)e.removeAttribute(t);else{switch(typeof a){case"undefined":case"function":case"symbol":e.removeAttribute(t);return;case"boolean":var l=t.toLowerCase().slice(0,5);if(l!=="data-"&&l!=="aria-"){e.removeAttribute(t);return}}e.setAttribute(t,""+a)}}function zu(e,t,a){if(a===null)e.removeAttribute(t);else{switch(typeof a){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(t);return}e.setAttribute(t,""+a)}}function na(e,t,a,l){if(l===null)e.removeAttribute(a);else{switch(typeof l){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(a);return}e.setAttributeNS(t,a,""+l)}}function Dt(e){switch(typeof e){case"bigint":case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function bc(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function ty(e,t,a){var l=Object.getOwnPropertyDescriptor(e.constructor.prototype,t);if(!e.hasOwnProperty(t)&&typeof l<"u"&&typeof l.get=="function"&&typeof l.set=="function"){var u=l.get,i=l.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return u.call(this)},set:function(d){a=""+d,i.call(this,d)}}),Object.defineProperty(e,t,{enumerable:l.enumerable}),{getValue:function(){return a},setValue:function(d){a=""+d},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function mi(e){if(!e._valueTracker){var t=bc(e)?"checked":"value";e._valueTracker=ty(e,t,""+e[t])}}function xc(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var a=t.getValue(),l="";return e&&(l=bc(e)?e.checked?"true":"false":e.value),e=l,e!==a?(t.setValue(e),!0):!1}function Du(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}var ay=/[\n"\\]/g;function Ut(e){return e.replace(ay,function(t){return"\\"+t.charCodeAt(0).toString(16)+" "})}function vi(e,t,a,l,u,i,d,g){e.name="",d!=null&&typeof d!="function"&&typeof d!="symbol"&&typeof d!="boolean"?e.type=d:e.removeAttribute("type"),t!=null?d==="number"?(t===0&&e.value===""||e.value!=t)&&(e.value=""+Dt(t)):e.value!==""+Dt(t)&&(e.value=""+Dt(t)):d!=="submit"&&d!=="reset"||e.removeAttribute("value"),t!=null?yi(e,d,Dt(t)):a!=null?yi(e,d,Dt(a)):l!=null&&e.removeAttribute("value"),u==null&&i!=null&&(e.defaultChecked=!!i),u!=null&&(e.checked=u&&typeof u!="function"&&typeof u!="symbol"),g!=null&&typeof g!="function"&&typeof g!="symbol"&&typeof g!="boolean"?e.name=""+Dt(g):e.removeAttribute("name")}function Sc(e,t,a,l,u,i,d,g){if(i!=null&&typeof i!="function"&&typeof i!="symbol"&&typeof i!="boolean"&&(e.type=i),t!=null||a!=null){if(!(i!=="submit"&&i!=="reset"||t!=null)){mi(e);return}a=a!=null?""+Dt(a):"",t=t!=null?""+Dt(t):a,g||t===e.value||(e.value=t),e.defaultValue=t}l=l??u,l=typeof l!="function"&&typeof l!="symbol"&&!!l,e.checked=g?e.checked:!!l,e.defaultChecked=!!l,d!=null&&typeof d!="function"&&typeof d!="symbol"&&typeof d!="boolean"&&(e.name=d),mi(e)}function yi(e,t,a){t==="number"&&Du(e.ownerDocument)===e||e.defaultValue===""+a||(e.defaultValue=""+a)}function Al(e,t,a,l){if(e=e.options,t){t={};for(var u=0;u<a.length;u++)t["$"+a[u]]=!0;for(a=0;a<e.length;a++)u=t.hasOwnProperty("$"+e[a].value),e[a].selected!==u&&(e[a].selected=u),u&&l&&(e[a].defaultSelected=!0)}else{for(a=""+Dt(a),t=null,u=0;u<e.length;u++){if(e[u].value===a){e[u].selected=!0,l&&(e[u].defaultSelected=!0);return}t!==null||e[u].disabled||(t=e[u])}t!==null&&(t.selected=!0)}}function jc(e,t,a){if(t!=null&&(t=""+Dt(t),t!==e.value&&(e.value=t),a==null)){e.defaultValue!==t&&(e.defaultValue=t);return}e.defaultValue=a!=null?""+Dt(a):""}function Oc(e,t,a,l){if(t==null){if(l!=null){if(a!=null)throw Error(o(92));if(me(l)){if(1<l.length)throw Error(o(93));l=l[0]}a=l}a==null&&(a=""),t=a}a=Dt(t),e.defaultValue=a,l=e.textContent,l===a&&l!==""&&l!==null&&(e.value=l),mi(e)}function zl(e,t){if(t){var a=e.firstChild;if(a&&a===e.lastChild&&a.nodeType===3){a.nodeValue=t;return}}e.textContent=t}var ly=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 _c(e,t,a){var l=t.indexOf("--")===0;a==null||typeof a=="boolean"||a===""?l?e.setProperty(t,""):t==="float"?e.cssFloat="":e[t]="":l?e.setProperty(t,a):typeof a!="number"||a===0||ly.has(t)?t==="float"?e.cssFloat=a:e[t]=(""+a).trim():e[t]=a+"px"}function Nc(e,t,a){if(t!=null&&typeof t!="object")throw Error(o(62));if(e=e.style,a!=null){for(var l in a)!a.hasOwnProperty(l)||t!=null&&t.hasOwnProperty(l)||(l.indexOf("--")===0?e.setProperty(l,""):l==="float"?e.cssFloat="":e[l]="");for(var u in t)l=t[u],t.hasOwnProperty(u)&&a[u]!==l&&_c(e,u,l)}else for(var i in t)t.hasOwnProperty(i)&&_c(e,i,t[i])}function pi(e){if(e.indexOf("-")===-1)return!1;switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var ny=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"]]),uy=/^[\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 Uu(e){return uy.test(""+e)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":e}function ua(){}var gi=null;function bi(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Dl=null,Ul=null;function Cc(e){var t=El(e);if(t&&(e=t.stateNode)){var a=e[ht]||null;e:switch(e=t.stateNode,t.type){case"input":if(vi(e,a.value,a.defaultValue,a.defaultValue,a.checked,a.defaultChecked,a.type,a.name),t=a.name,a.type==="radio"&&t!=null){for(a=e;a.parentNode;)a=a.parentNode;for(a=a.querySelectorAll('input[name="'+Ut(""+t)+'"][type="radio"]'),t=0;t<a.length;t++){var l=a[t];if(l!==e&&l.form===e.form){var u=l[ht]||null;if(!u)throw Error(o(90));vi(l,u.value,u.defaultValue,u.defaultValue,u.checked,u.defaultChecked,u.type,u.name)}}for(t=0;t<a.length;t++)l=a[t],l.form===e.form&&xc(l)}break e;case"textarea":jc(e,a.value,a.defaultValue);break e;case"select":t=a.value,t!=null&&Al(e,!!a.multiple,t,!1)}}}var xi=!1;function Ec(e,t,a){if(xi)return e(t,a);xi=!0;try{var l=e(t);return l}finally{if(xi=!1,(Dl!==null||Ul!==null)&&(xr(),Dl&&(t=Dl,e=Ul,Ul=Dl=null,Cc(t),e)))for(t=0;t<e.length;t++)Cc(e[t])}}function _n(e,t){var a=e.stateNode;if(a===null)return null;var l=a[ht]||null;if(l===null)return null;a=l[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(l=!l.disabled)||(e=e.type,l=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!l;break e;default:e=!1}if(e)return null;if(a&&typeof a!="function")throw Error(o(231,t,typeof a));return a}var ra=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Si=!1;if(ra)try{var Nn={};Object.defineProperty(Nn,"passive",{get:function(){Si=!0}}),window.addEventListener("test",Nn,Nn),window.removeEventListener("test",Nn,Nn)}catch{Si=!1}var Ca=null,ji=null,Ru=null;function Tc(){if(Ru)return Ru;var e,t=ji,a=t.length,l,u="value"in Ca?Ca.value:Ca.textContent,i=u.length;for(e=0;e<a&&t[e]===u[e];e++);var d=a-e;for(l=1;l<=d&&t[a-l]===u[i-l];l++);return Ru=u.slice(e,1<l?1-l:void 0)}function qu(e){var t=e.keyCode;return"charCode"in e?(e=e.charCode,e===0&&t===13&&(e=13)):e=t,e===10&&(e=13),32<=e||e===13?e:0}function wu(){return!0}function Mc(){return!1}function mt(e){function t(a,l,u,i,d){this._reactName=a,this._targetInst=u,this.type=l,this.nativeEvent=i,this.target=d,this.currentTarget=null;for(var g in e)e.hasOwnProperty(g)&&(a=e[g],this[g]=a?a(i):i[g]);return this.isDefaultPrevented=(i.defaultPrevented!=null?i.defaultPrevented:i.returnValue===!1)?wu:Mc,this.isPropagationStopped=Mc,this}return S(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var a=this.nativeEvent;a&&(a.preventDefault?a.preventDefault():typeof a.returnValue!="unknown"&&(a.returnValue=!1),this.isDefaultPrevented=wu)},stopPropagation:function(){var a=this.nativeEvent;a&&(a.stopPropagation?a.stopPropagation():typeof a.cancelBubble!="unknown"&&(a.cancelBubble=!0),this.isPropagationStopped=wu)},persist:function(){},isPersistent:wu}),t}var al={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Qu=mt(al),Cn=S({},al,{view:0,detail:0}),ry=mt(Cn),Oi,_i,En,ku=S({},Cn,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Ci,button:0,buttons:0,relatedTarget:function(e){return e.relatedTarget===void 0?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==En&&(En&&e.type==="mousemove"?(Oi=e.screenX-En.screenX,_i=e.screenY-En.screenY):_i=Oi=0,En=e),Oi)},movementY:function(e){return"movementY"in e?e.movementY:_i}}),Ac=mt(ku),iy=S({},ku,{dataTransfer:0}),sy=mt(iy),oy=S({},Cn,{relatedTarget:0}),Ni=mt(oy),cy=S({},al,{animationName:0,elapsedTime:0,pseudoElement:0}),fy=mt(cy),dy=S({},al,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),hy=mt(dy),my=S({},al,{data:0}),zc=mt(my),vy={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},yy={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"},py={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function gy(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=py[e])?!!t[e]:!1}function Ci(){return gy}var by=S({},Cn,{key:function(e){if(e.key){var t=vy[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=qu(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?yy[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Ci,charCode:function(e){return e.type==="keypress"?qu(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?qu(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),xy=mt(by),Sy=S({},ku,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Dc=mt(Sy),jy=S({},Cn,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Ci}),Oy=mt(jy),_y=S({},al,{propertyName:0,elapsedTime:0,pseudoElement:0}),Ny=mt(_y),Cy=S({},ku,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0}),Ey=mt(Cy),Ty=S({},al,{newState:0,oldState:0}),My=mt(Ty),Ay=[9,13,27,32],Ei=ra&&"CompositionEvent"in window,Tn=null;ra&&"documentMode"in document&&(Tn=document.documentMode);var zy=ra&&"TextEvent"in window&&!Tn,Uc=ra&&(!Ei||Tn&&8<Tn&&11>=Tn),Rc=" ",qc=!1;function wc(e,t){switch(e){case"keyup":return Ay.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Qc(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Rl=!1;function Dy(e,t){switch(e){case"compositionend":return Qc(t);case"keypress":return t.which!==32?null:(qc=!0,Rc);case"textInput":return e=t.data,e===Rc&&qc?null:e;default:return null}}function Uy(e,t){if(Rl)return e==="compositionend"||!Ei&&wc(e,t)?(e=Tc(),Ru=ji=Ca=null,Rl=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return Uc&&t.locale!=="ko"?null:t.data;default:return null}}var Ry={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 kc(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!Ry[e.type]:t==="textarea"}function Hc(e,t,a,l){Dl?Ul?Ul.push(l):Ul=[l]:Dl=l,t=Er(t,"onChange"),0<t.length&&(a=new Qu("onChange","change",null,a,l),e.push({event:a,listeners:t}))}var Mn=null,An=null;function qy(e){jh(e,0)}function Hu(e){var t=On(e);if(xc(t))return e}function Bc(e,t){if(e==="change")return t}var Lc=!1;if(ra){var Ti;if(ra){var Mi="oninput"in document;if(!Mi){var Gc=document.createElement("div");Gc.setAttribute("oninput","return;"),Mi=typeof Gc.oninput=="function"}Ti=Mi}else Ti=!1;Lc=Ti&&(!document.documentMode||9<document.documentMode)}function Yc(){Mn&&(Mn.detachEvent("onpropertychange",Xc),An=Mn=null)}function Xc(e){if(e.propertyName==="value"&&Hu(An)){var t=[];Hc(t,An,e,bi(e)),Ec(qy,t)}}function wy(e,t,a){e==="focusin"?(Yc(),Mn=t,An=a,Mn.attachEvent("onpropertychange",Xc)):e==="focusout"&&Yc()}function Qy(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return Hu(An)}function ky(e,t){if(e==="click")return Hu(t)}function Hy(e,t){if(e==="input"||e==="change")return Hu(t)}function By(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var _t=typeof Object.is=="function"?Object.is:By;function zn(e,t){if(_t(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var a=Object.keys(e),l=Object.keys(t);if(a.length!==l.length)return!1;for(l=0;l<a.length;l++){var u=a[l];if(!vn.call(t,u)||!_t(e[u],t[u]))return!1}return!0}function Vc(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function Kc(e,t){var a=Vc(e);e=0;for(var l;a;){if(a.nodeType===3){if(l=e+a.textContent.length,e<=t&&l>=t)return{node:a,offset:t-e};e=l}e:{for(;a;){if(a.nextSibling){a=a.nextSibling;break e}a=a.parentNode}a=void 0}a=Vc(a)}}function Zc(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Zc(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Jc(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=Du(e.document);t instanceof e.HTMLIFrameElement;){try{var a=typeof t.contentWindow.location.href=="string"}catch{a=!1}if(a)e=t.contentWindow;else break;t=Du(e.document)}return t}function Ai(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}var Ly=ra&&"documentMode"in document&&11>=document.documentMode,ql=null,zi=null,Dn=null,Di=!1;function Fc(e,t,a){var l=a.window===a?a.document:a.nodeType===9?a:a.ownerDocument;Di||ql==null||ql!==Du(l)||(l=ql,"selectionStart"in l&&Ai(l)?l={start:l.selectionStart,end:l.selectionEnd}:(l=(l.ownerDocument&&l.ownerDocument.defaultView||window).getSelection(),l={anchorNode:l.anchorNode,anchorOffset:l.anchorOffset,focusNode:l.focusNode,focusOffset:l.focusOffset}),Dn&&zn(Dn,l)||(Dn=l,l=Er(zi,"onSelect"),0<l.length&&(t=new Qu("onSelect","select",null,t,a),e.push({event:t,listeners:l}),t.target=ql)))}function ll(e,t){var a={};return a[e.toLowerCase()]=t.toLowerCase(),a["Webkit"+e]="webkit"+t,a["Moz"+e]="moz"+t,a}var wl={animationend:ll("Animation","AnimationEnd"),animationiteration:ll("Animation","AnimationIteration"),animationstart:ll("Animation","AnimationStart"),transitionrun:ll("Transition","TransitionRun"),transitionstart:ll("Transition","TransitionStart"),transitioncancel:ll("Transition","TransitionCancel"),transitionend:ll("Transition","TransitionEnd")},Ui={},$c={};ra&&($c=document.createElement("div").style,"AnimationEvent"in window||(delete wl.animationend.animation,delete wl.animationiteration.animation,delete wl.animationstart.animation),"TransitionEvent"in window||delete wl.transitionend.transition);function nl(e){if(Ui[e])return Ui[e];if(!wl[e])return e;var t=wl[e],a;for(a in t)if(t.hasOwnProperty(a)&&a in $c)return Ui[e]=t[a];return e}var Pc=nl("animationend"),Wc=nl("animationiteration"),Ic=nl("animationstart"),Gy=nl("transitionrun"),Yy=nl("transitionstart"),Xy=nl("transitioncancel"),ef=nl("transitionend"),tf=new Map,Ri="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(" ");Ri.push("scrollEnd");function Yt(e,t){tf.set(e,t),tl(t,[e])}var Bu=typeof reportError=="function"?reportError:function(e){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var t=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof e=="object"&&e!==null&&typeof e.message=="string"?String(e.message):String(e),error:e});if(!window.dispatchEvent(t))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",e);return}console.error(e)},Rt=[],Ql=0,qi=0;function Lu(){for(var e=Ql,t=qi=Ql=0;t<e;){var a=Rt[t];Rt[t++]=null;var l=Rt[t];Rt[t++]=null;var u=Rt[t];Rt[t++]=null;var i=Rt[t];if(Rt[t++]=null,l!==null&&u!==null){var d=l.pending;d===null?u.next=u:(u.next=d.next,d.next=u),l.pending=u}i!==0&&af(a,u,i)}}function Gu(e,t,a,l){Rt[Ql++]=e,Rt[Ql++]=t,Rt[Ql++]=a,Rt[Ql++]=l,qi|=l,e.lanes|=l,e=e.alternate,e!==null&&(e.lanes|=l)}function wi(e,t,a,l){return Gu(e,t,a,l),Yu(e)}function ul(e,t){return Gu(e,null,null,t),Yu(e)}function af(e,t,a){e.lanes|=a;var l=e.alternate;l!==null&&(l.lanes|=a);for(var u=!1,i=e.return;i!==null;)i.childLanes|=a,l=i.alternate,l!==null&&(l.childLanes|=a),i.tag===22&&(e=i.stateNode,e===null||e._visibility&1||(u=!0)),e=i,i=i.return;return e.tag===3?(i=e.stateNode,u&&t!==null&&(u=31-Ot(a),e=i.hiddenUpdates,l=e[u],l===null?e[u]=[t]:l.push(t),t.lane=a|536870912),i):null}function Yu(e){if(50<eu)throw eu=0,Vs=null,Error(o(185));for(var t=e.return;t!==null;)e=t,t=e.return;return e.tag===3?e.stateNode:null}var kl={};function Vy(e,t,a,l){this.tag=e,this.key=a,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=l,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Nt(e,t,a,l){return new Vy(e,t,a,l)}function Qi(e){return e=e.prototype,!(!e||!e.isReactComponent)}function ia(e,t){var a=e.alternate;return a===null?(a=Nt(e.tag,t,e.key,e.mode),a.elementType=e.elementType,a.type=e.type,a.stateNode=e.stateNode,a.alternate=e,e.alternate=a):(a.pendingProps=t,a.type=e.type,a.flags=0,a.subtreeFlags=0,a.deletions=null),a.flags=e.flags&65011712,a.childLanes=e.childLanes,a.lanes=e.lanes,a.child=e.child,a.memoizedProps=e.memoizedProps,a.memoizedState=e.memoizedState,a.updateQueue=e.updateQueue,t=e.dependencies,a.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},a.sibling=e.sibling,a.index=e.index,a.ref=e.ref,a.refCleanup=e.refCleanup,a}function lf(e,t){e.flags&=65011714;var a=e.alternate;return a===null?(e.childLanes=0,e.lanes=t,e.child=null,e.subtreeFlags=0,e.memoizedProps=null,e.memoizedState=null,e.updateQueue=null,e.dependencies=null,e.stateNode=null):(e.childLanes=a.childLanes,e.lanes=a.lanes,e.child=a.child,e.subtreeFlags=0,e.deletions=null,e.memoizedProps=a.memoizedProps,e.memoizedState=a.memoizedState,e.updateQueue=a.updateQueue,e.type=a.type,t=a.dependencies,e.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext}),e}function Xu(e,t,a,l,u,i){var d=0;if(l=e,typeof e=="function")Qi(e)&&(d=1);else if(typeof e=="string")d=$p(e,a,Y.current)?26:e==="html"||e==="head"||e==="body"?27:5;else e:switch(e){case ee:return e=Nt(31,a,t,u),e.elementType=ee,e.lanes=i,e;case _:return rl(a.children,u,i,t);case F:d=8,u|=24;break;case ne:return e=Nt(12,a,t,u|2),e.elementType=ne,e.lanes=i,e;case X:return e=Nt(13,a,t,u),e.elementType=X,e.lanes=i,e;case V:return e=Nt(19,a,t,u),e.elementType=V,e.lanes=i,e;default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case oe:d=10;break e;case ce:d=9;break e;case Ce:d=11;break e;case D:d=14;break e;case J:d=16,l=null;break e}d=29,a=Error(o(130,e===null?"null":typeof e,"")),l=null}return t=Nt(d,a,t,u),t.elementType=e,t.type=l,t.lanes=i,t}function rl(e,t,a,l){return e=Nt(7,e,l,t),e.lanes=a,e}function ki(e,t,a){return e=Nt(6,e,null,t),e.lanes=a,e}function nf(e){var t=Nt(18,null,null,0);return t.stateNode=e,t}function Hi(e,t,a){return t=Nt(4,e.children!==null?e.children:[],e.key,t),t.lanes=a,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}var uf=new WeakMap;function qt(e,t){if(typeof e=="object"&&e!==null){var a=uf.get(e);return a!==void 0?a:(t={value:e,source:t,stack:mn(t)},uf.set(e,t),t)}return{value:e,source:t,stack:mn(t)}}var Hl=[],Bl=0,Vu=null,Un=0,wt=[],Qt=0,Ea=null,Wt=1,It="";function sa(e,t){Hl[Bl++]=Un,Hl[Bl++]=Vu,Vu=e,Un=t}function rf(e,t,a){wt[Qt++]=Wt,wt[Qt++]=It,wt[Qt++]=Ea,Ea=e;var l=Wt;e=It;var u=32-Ot(l)-1;l&=~(1<<u),a+=1;var i=32-Ot(t)+u;if(30<i){var d=u-u%5;i=(l&(1<<d)-1).toString(32),l>>=d,u-=d,Wt=1<<32-Ot(t)+u|a<<u|l,It=i+e}else Wt=1<<i|a<<u|l,It=e}function Bi(e){e.return!==null&&(sa(e,1),rf(e,1,0))}function Li(e){for(;e===Vu;)Vu=Hl[--Bl],Hl[Bl]=null,Un=Hl[--Bl],Hl[Bl]=null;for(;e===Ea;)Ea=wt[--Qt],wt[Qt]=null,It=wt[--Qt],wt[Qt]=null,Wt=wt[--Qt],wt[Qt]=null}function sf(e,t){wt[Qt++]=Wt,wt[Qt++]=It,wt[Qt++]=Ea,Wt=t.id,It=t.overflow,Ea=e}var lt=null,ke=null,Ne=!1,Ta=null,kt=!1,Gi=Error(o(519));function Ma(e){var t=Error(o(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw Rn(qt(t,e)),Gi}function of(e){var t=e.stateNode,a=e.type,l=e.memoizedProps;switch(t[at]=e,t[ht]=l,a){case"dialog":je("cancel",t),je("close",t);break;case"iframe":case"object":case"embed":je("load",t);break;case"video":case"audio":for(a=0;a<au.length;a++)je(au[a],t);break;case"source":je("error",t);break;case"img":case"image":case"link":je("error",t),je("load",t);break;case"details":je("toggle",t);break;case"input":je("invalid",t),Sc(t,l.value,l.defaultValue,l.checked,l.defaultChecked,l.type,l.name,!0);break;case"select":je("invalid",t);break;case"textarea":je("invalid",t),Oc(t,l.value,l.defaultValue,l.children)}a=l.children,typeof a!="string"&&typeof a!="number"&&typeof a!="bigint"||t.textContent===""+a||l.suppressHydrationWarning===!0||Ch(t.textContent,a)?(l.popover!=null&&(je("beforetoggle",t),je("toggle",t)),l.onScroll!=null&&je("scroll",t),l.onScrollEnd!=null&&je("scrollend",t),l.onClick!=null&&(t.onclick=ua),t=!0):t=!1,t||Ma(e,!0)}function cf(e){for(lt=e.return;lt;)switch(lt.tag){case 5:case 31:case 13:kt=!1;return;case 27:case 3:kt=!0;return;default:lt=lt.return}}function Ll(e){if(e!==lt)return!1;if(!Ne)return cf(e),Ne=!0,!1;var t=e.tag,a;if((a=t!==3&&t!==27)&&((a=t===5)&&(a=e.type,a=!(a!=="form"&&a!=="button")||ro(e.type,e.memoizedProps)),a=!a),a&&ke&&Ma(e),cf(e),t===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(o(317));ke=qh(e)}else if(t===31){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(o(317));ke=qh(e)}else t===27?(t=ke,Ya(e.type)?(e=fo,fo=null,ke=e):ke=t):ke=lt?Bt(e.stateNode.nextSibling):null;return!0}function il(){ke=lt=null,Ne=!1}function Yi(){var e=Ta;return e!==null&&(gt===null?gt=e:gt.push.apply(gt,e),Ta=null),e}function Rn(e){Ta===null?Ta=[e]:Ta.push(e)}var Xi=x(null),sl=null,oa=null;function Aa(e,t,a){B(Xi,t._currentValue),t._currentValue=a}function ca(e){e._currentValue=Xi.current,U(Xi)}function Vi(e,t,a){for(;e!==null;){var l=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,l!==null&&(l.childLanes|=t)):l!==null&&(l.childLanes&t)!==t&&(l.childLanes|=t),e===a)break;e=e.return}}function Ki(e,t,a,l){var u=e.child;for(u!==null&&(u.return=e);u!==null;){var i=u.dependencies;if(i!==null){var d=u.child;i=i.firstContext;e:for(;i!==null;){var g=i;i=u;for(var b=0;b<t.length;b++)if(g.context===t[b]){i.lanes|=a,g=i.alternate,g!==null&&(g.lanes|=a),Vi(i.return,a,e),l||(d=null);break e}i=g.next}}else if(u.tag===18){if(d=u.return,d===null)throw Error(o(341));d.lanes|=a,i=d.alternate,i!==null&&(i.lanes|=a),Vi(d,a,e),d=null}else d=u.child;if(d!==null)d.return=u;else for(d=u;d!==null;){if(d===e){d=null;break}if(u=d.sibling,u!==null){u.return=d.return,d=u;break}d=d.return}u=d}}function Gl(e,t,a,l){e=null;for(var u=t,i=!1;u!==null;){if(!i){if((u.flags&524288)!==0)i=!0;else if((u.flags&262144)!==0)break}if(u.tag===10){var d=u.alternate;if(d===null)throw Error(o(387));if(d=d.memoizedProps,d!==null){var g=u.type;_t(u.pendingProps.value,d.value)||(e!==null?e.push(g):e=[g])}}else if(u===xe.current){if(d=u.alternate,d===null)throw Error(o(387));d.memoizedState.memoizedState!==u.memoizedState.memoizedState&&(e!==null?e.push(iu):e=[iu])}u=u.return}e!==null&&Ki(t,e,a,l),t.flags|=262144}function Ku(e){for(e=e.firstContext;e!==null;){if(!_t(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function ol(e){sl=e,oa=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function nt(e){return ff(sl,e)}function Zu(e,t){return sl===null&&ol(e),ff(e,t)}function ff(e,t){var a=t._currentValue;if(t={context:t,memoizedValue:a,next:null},oa===null){if(e===null)throw Error(o(308));oa=t,e.dependencies={lanes:0,firstContext:t},e.flags|=524288}else oa=oa.next=t;return a}var Ky=typeof AbortController<"u"?AbortController:function(){var e=[],t=this.signal={aborted:!1,addEventListener:function(a,l){e.push(l)}};this.abort=function(){t.aborted=!0,e.forEach(function(a){return a()})}},Zy=n.unstable_scheduleCallback,Jy=n.unstable_NormalPriority,Fe={$$typeof:oe,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function Zi(){return{controller:new Ky,data:new Map,refCount:0}}function qn(e){e.refCount--,e.refCount===0&&Zy(Jy,function(){e.controller.abort()})}var wn=null,Ji=0,Yl=0,Xl=null;function Fy(e,t){if(wn===null){var a=wn=[];Ji=0,Yl=Ps(),Xl={status:"pending",value:void 0,then:function(l){a.push(l)}}}return Ji++,t.then(df,df),t}function df(){if(--Ji===0&&wn!==null){Xl!==null&&(Xl.status="fulfilled");var e=wn;wn=null,Yl=0,Xl=null;for(var t=0;t<e.length;t++)(0,e[t])()}}function $y(e,t){var a=[],l={status:"pending",value:null,reason:null,then:function(u){a.push(u)}};return e.then(function(){l.status="fulfilled",l.value=t;for(var u=0;u<a.length;u++)(0,a[u])(t)},function(u){for(l.status="rejected",l.reason=u,u=0;u<a.length;u++)(0,a[u])(void 0)}),l}var hf=M.S;M.S=function(e,t){$d=ze(),typeof t=="object"&&t!==null&&typeof t.then=="function"&&Fy(e,t),hf!==null&&hf(e,t)};var cl=x(null);function Fi(){var e=cl.current;return e!==null?e:Qe.pooledCache}function Ju(e,t){t===null?B(cl,cl.current):B(cl,t.pool)}function mf(){var e=Fi();return e===null?null:{parent:Fe._currentValue,pool:e}}var Vl=Error(o(460)),$i=Error(o(474)),Fu=Error(o(542)),$u={then:function(){}};function vf(e){return e=e.status,e==="fulfilled"||e==="rejected"}function yf(e,t,a){switch(a=e[a],a===void 0?e.push(t):a!==t&&(t.then(ua,ua),t=a),t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,gf(e),e;default:if(typeof t.status=="string")t.then(ua,ua);else{if(e=Qe,e!==null&&100<e.shellSuspendCounter)throw Error(o(482));e=t,e.status="pending",e.then(function(l){if(t.status==="pending"){var u=t;u.status="fulfilled",u.value=l}},function(l){if(t.status==="pending"){var u=t;u.status="rejected",u.reason=l}})}switch(t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,gf(e),e}throw dl=t,Vl}}function fl(e){try{var t=e._init;return t(e._payload)}catch(a){throw a!==null&&typeof a=="object"&&typeof a.then=="function"?(dl=a,Vl):a}}var dl=null;function pf(){if(dl===null)throw Error(o(459));var e=dl;return dl=null,e}function gf(e){if(e===Vl||e===Fu)throw Error(o(483))}var Kl=null,Qn=0;function Pu(e){var t=Qn;return Qn+=1,Kl===null&&(Kl=[]),yf(Kl,e,t)}function kn(e,t){t=t.props.ref,e.ref=t!==void 0?t:null}function Wu(e,t){throw t.$$typeof===C?Error(o(525)):(e=Object.prototype.toString.call(t),Error(o(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e)))}function bf(e){function t(N,j){if(e){var E=N.deletions;E===null?(N.deletions=[j],N.flags|=16):E.push(j)}}function a(N,j){if(!e)return null;for(;j!==null;)t(N,j),j=j.sibling;return null}function l(N){for(var j=new Map;N!==null;)N.key!==null?j.set(N.key,N):j.set(N.index,N),N=N.sibling;return j}function u(N,j){return N=ia(N,j),N.index=0,N.sibling=null,N}function i(N,j,E){return N.index=E,e?(E=N.alternate,E!==null?(E=E.index,E<j?(N.flags|=67108866,j):E):(N.flags|=67108866,j)):(N.flags|=1048576,j)}function d(N){return e&&N.alternate===null&&(N.flags|=67108866),N}function g(N,j,E,Q){return j===null||j.tag!==6?(j=ki(E,N.mode,Q),j.return=N,j):(j=u(j,E),j.return=N,j)}function b(N,j,E,Q){var ue=E.type;return ue===_?q(N,j,E.props.children,Q,E.key):j!==null&&(j.elementType===ue||typeof ue=="object"&&ue!==null&&ue.$$typeof===J&&fl(ue)===j.type)?(j=u(j,E.props),kn(j,E),j.return=N,j):(j=Xu(E.type,E.key,E.props,null,N.mode,Q),kn(j,E),j.return=N,j)}function T(N,j,E,Q){return j===null||j.tag!==4||j.stateNode.containerInfo!==E.containerInfo||j.stateNode.implementation!==E.implementation?(j=Hi(E,N.mode,Q),j.return=N,j):(j=u(j,E.children||[]),j.return=N,j)}function q(N,j,E,Q,ue){return j===null||j.tag!==7?(j=rl(E,N.mode,Q,ue),j.return=N,j):(j=u(j,E),j.return=N,j)}function k(N,j,E){if(typeof j=="string"&&j!==""||typeof j=="number"||typeof j=="bigint")return j=ki(""+j,N.mode,E),j.return=N,j;if(typeof j=="object"&&j!==null){switch(j.$$typeof){case w:return E=Xu(j.type,j.key,j.props,null,N.mode,E),kn(E,j),E.return=N,E;case G:return j=Hi(j,N.mode,E),j.return=N,j;case J:return j=fl(j),k(N,j,E)}if(me(j)||te(j))return j=rl(j,N.mode,E,null),j.return=N,j;if(typeof j.then=="function")return k(N,Pu(j),E);if(j.$$typeof===oe)return k(N,Zu(N,j),E);Wu(N,j)}return null}function A(N,j,E,Q){var ue=j!==null?j.key:null;if(typeof E=="string"&&E!==""||typeof E=="number"||typeof E=="bigint")return ue!==null?null:g(N,j,""+E,Q);if(typeof E=="object"&&E!==null){switch(E.$$typeof){case w:return E.key===ue?b(N,j,E,Q):null;case G:return E.key===ue?T(N,j,E,Q):null;case J:return E=fl(E),A(N,j,E,Q)}if(me(E)||te(E))return ue!==null?null:q(N,j,E,Q,null);if(typeof E.then=="function")return A(N,j,Pu(E),Q);if(E.$$typeof===oe)return A(N,j,Zu(N,E),Q);Wu(N,E)}return null}function z(N,j,E,Q,ue){if(typeof Q=="string"&&Q!==""||typeof Q=="number"||typeof Q=="bigint")return N=N.get(E)||null,g(j,N,""+Q,ue);if(typeof Q=="object"&&Q!==null){switch(Q.$$typeof){case w:return N=N.get(Q.key===null?E:Q.key)||null,b(j,N,Q,ue);case G:return N=N.get(Q.key===null?E:Q.key)||null,T(j,N,Q,ue);case J:return Q=fl(Q),z(N,j,E,Q,ue)}if(me(Q)||te(Q))return N=N.get(E)||null,q(j,N,Q,ue,null);if(typeof Q.then=="function")return z(N,j,E,Pu(Q),ue);if(Q.$$typeof===oe)return z(N,j,E,Zu(j,Q),ue);Wu(j,Q)}return null}function P(N,j,E,Q){for(var ue=null,Ee=null,ae=j,pe=j=0,_e=null;ae!==null&&pe<E.length;pe++){ae.index>pe?(_e=ae,ae=null):_e=ae.sibling;var Te=A(N,ae,E[pe],Q);if(Te===null){ae===null&&(ae=_e);break}e&&ae&&Te.alternate===null&&t(N,ae),j=i(Te,j,pe),Ee===null?ue=Te:Ee.sibling=Te,Ee=Te,ae=_e}if(pe===E.length)return a(N,ae),Ne&&sa(N,pe),ue;if(ae===null){for(;pe<E.length;pe++)ae=k(N,E[pe],Q),ae!==null&&(j=i(ae,j,pe),Ee===null?ue=ae:Ee.sibling=ae,Ee=ae);return Ne&&sa(N,pe),ue}for(ae=l(ae);pe<E.length;pe++)_e=z(ae,N,pe,E[pe],Q),_e!==null&&(e&&_e.alternate!==null&&ae.delete(_e.key===null?pe:_e.key),j=i(_e,j,pe),Ee===null?ue=_e:Ee.sibling=_e,Ee=_e);return e&&ae.forEach(function(Ja){return t(N,Ja)}),Ne&&sa(N,pe),ue}function ie(N,j,E,Q){if(E==null)throw Error(o(151));for(var ue=null,Ee=null,ae=j,pe=j=0,_e=null,Te=E.next();ae!==null&&!Te.done;pe++,Te=E.next()){ae.index>pe?(_e=ae,ae=null):_e=ae.sibling;var Ja=A(N,ae,Te.value,Q);if(Ja===null){ae===null&&(ae=_e);break}e&&ae&&Ja.alternate===null&&t(N,ae),j=i(Ja,j,pe),Ee===null?ue=Ja:Ee.sibling=Ja,Ee=Ja,ae=_e}if(Te.done)return a(N,ae),Ne&&sa(N,pe),ue;if(ae===null){for(;!Te.done;pe++,Te=E.next())Te=k(N,Te.value,Q),Te!==null&&(j=i(Te,j,pe),Ee===null?ue=Te:Ee.sibling=Te,Ee=Te);return Ne&&sa(N,pe),ue}for(ae=l(ae);!Te.done;pe++,Te=E.next())Te=z(ae,N,pe,Te.value,Q),Te!==null&&(e&&Te.alternate!==null&&ae.delete(Te.key===null?pe:Te.key),j=i(Te,j,pe),Ee===null?ue=Te:Ee.sibling=Te,Ee=Te);return e&&ae.forEach(function(i0){return t(N,i0)}),Ne&&sa(N,pe),ue}function we(N,j,E,Q){if(typeof E=="object"&&E!==null&&E.type===_&&E.key===null&&(E=E.props.children),typeof E=="object"&&E!==null){switch(E.$$typeof){case w:e:{for(var ue=E.key;j!==null;){if(j.key===ue){if(ue=E.type,ue===_){if(j.tag===7){a(N,j.sibling),Q=u(j,E.props.children),Q.return=N,N=Q;break e}}else if(j.elementType===ue||typeof ue=="object"&&ue!==null&&ue.$$typeof===J&&fl(ue)===j.type){a(N,j.sibling),Q=u(j,E.props),kn(Q,E),Q.return=N,N=Q;break e}a(N,j);break}else t(N,j);j=j.sibling}E.type===_?(Q=rl(E.props.children,N.mode,Q,E.key),Q.return=N,N=Q):(Q=Xu(E.type,E.key,E.props,null,N.mode,Q),kn(Q,E),Q.return=N,N=Q)}return d(N);case G:e:{for(ue=E.key;j!==null;){if(j.key===ue)if(j.tag===4&&j.stateNode.containerInfo===E.containerInfo&&j.stateNode.implementation===E.implementation){a(N,j.sibling),Q=u(j,E.children||[]),Q.return=N,N=Q;break e}else{a(N,j);break}else t(N,j);j=j.sibling}Q=Hi(E,N.mode,Q),Q.return=N,N=Q}return d(N);case J:return E=fl(E),we(N,j,E,Q)}if(me(E))return P(N,j,E,Q);if(te(E)){if(ue=te(E),typeof ue!="function")throw Error(o(150));return E=ue.call(E),ie(N,j,E,Q)}if(typeof E.then=="function")return we(N,j,Pu(E),Q);if(E.$$typeof===oe)return we(N,j,Zu(N,E),Q);Wu(N,E)}return typeof E=="string"&&E!==""||typeof E=="number"||typeof E=="bigint"?(E=""+E,j!==null&&j.tag===6?(a(N,j.sibling),Q=u(j,E),Q.return=N,N=Q):(a(N,j),Q=ki(E,N.mode,Q),Q.return=N,N=Q),d(N)):a(N,j)}return function(N,j,E,Q){try{Qn=0;var ue=we(N,j,E,Q);return Kl=null,ue}catch(ae){if(ae===Vl||ae===Fu)throw ae;var Ee=Nt(29,ae,null,N.mode);return Ee.lanes=Q,Ee.return=N,Ee}finally{}}}var hl=bf(!0),xf=bf(!1),za=!1;function Pi(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function Wi(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,callbacks:null})}function Da(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function Ua(e,t,a){var l=e.updateQueue;if(l===null)return null;if(l=l.shared,(Ae&2)!==0){var u=l.pending;return u===null?t.next=t:(t.next=u.next,u.next=t),l.pending=t,t=Yu(e),af(e,null,a),t}return Gu(e,l,t,a),Yu(e)}function Hn(e,t,a){if(t=t.updateQueue,t!==null&&(t=t.shared,(a&4194048)!==0)){var l=t.lanes;l&=e.pendingLanes,a|=l,t.lanes=a,cc(e,a)}}function Ii(e,t){var a=e.updateQueue,l=e.alternate;if(l!==null&&(l=l.updateQueue,a===l)){var u=null,i=null;if(a=a.firstBaseUpdate,a!==null){do{var d={lane:a.lane,tag:a.tag,payload:a.payload,callback:null,next:null};i===null?u=i=d:i=i.next=d,a=a.next}while(a!==null);i===null?u=i=t:i=i.next=t}else u=i=t;a={baseState:l.baseState,firstBaseUpdate:u,lastBaseUpdate:i,shared:l.shared,callbacks:l.callbacks},e.updateQueue=a;return}e=a.lastBaseUpdate,e===null?a.firstBaseUpdate=t:e.next=t,a.lastBaseUpdate=t}var es=!1;function Bn(){if(es){var e=Xl;if(e!==null)throw e}}function Ln(e,t,a,l){es=!1;var u=e.updateQueue;za=!1;var i=u.firstBaseUpdate,d=u.lastBaseUpdate,g=u.shared.pending;if(g!==null){u.shared.pending=null;var b=g,T=b.next;b.next=null,d===null?i=T:d.next=T,d=b;var q=e.alternate;q!==null&&(q=q.updateQueue,g=q.lastBaseUpdate,g!==d&&(g===null?q.firstBaseUpdate=T:g.next=T,q.lastBaseUpdate=b))}if(i!==null){var k=u.baseState;d=0,q=T=b=null,g=i;do{var A=g.lane&-536870913,z=A!==g.lane;if(z?(Oe&A)===A:(l&A)===A){A!==0&&A===Yl&&(es=!0),q!==null&&(q=q.next={lane:0,tag:g.tag,payload:g.payload,callback:null,next:null});e:{var P=e,ie=g;A=t;var we=a;switch(ie.tag){case 1:if(P=ie.payload,typeof P=="function"){k=P.call(we,k,A);break e}k=P;break e;case 3:P.flags=P.flags&-65537|128;case 0:if(P=ie.payload,A=typeof P=="function"?P.call(we,k,A):P,A==null)break e;k=S({},k,A);break e;case 2:za=!0}}A=g.callback,A!==null&&(e.flags|=64,z&&(e.flags|=8192),z=u.callbacks,z===null?u.callbacks=[A]:z.push(A))}else z={lane:A,tag:g.tag,payload:g.payload,callback:g.callback,next:null},q===null?(T=q=z,b=k):q=q.next=z,d|=A;if(g=g.next,g===null){if(g=u.shared.pending,g===null)break;z=g,g=z.next,z.next=null,u.lastBaseUpdate=z,u.shared.pending=null}}while(!0);q===null&&(b=k),u.baseState=b,u.firstBaseUpdate=T,u.lastBaseUpdate=q,i===null&&(u.shared.lanes=0),ka|=d,e.lanes=d,e.memoizedState=k}}function Sf(e,t){if(typeof e!="function")throw Error(o(191,e));e.call(t)}function jf(e,t){var a=e.callbacks;if(a!==null)for(e.callbacks=null,e=0;e<a.length;e++)Sf(a[e],t)}var Zl=x(null),Iu=x(0);function Of(e,t){e=ba,B(Iu,e),B(Zl,t),ba=e|t.baseLanes}function ts(){B(Iu,ba),B(Zl,Zl.current)}function as(){ba=Iu.current,U(Zl),U(Iu)}var Ct=x(null),Ht=null;function Ra(e){var t=e.alternate;B(Ve,Ve.current&1),B(Ct,e),Ht===null&&(t===null||Zl.current!==null||t.memoizedState!==null)&&(Ht=e)}function ls(e){B(Ve,Ve.current),B(Ct,e),Ht===null&&(Ht=e)}function _f(e){e.tag===22?(B(Ve,Ve.current),B(Ct,e),Ht===null&&(Ht=e)):qa()}function qa(){B(Ve,Ve.current),B(Ct,Ct.current)}function Et(e){U(Ct),Ht===e&&(Ht=null),U(Ve)}var Ve=x(0);function er(e){for(var t=e;t!==null;){if(t.tag===13){var a=t.memoizedState;if(a!==null&&(a=a.dehydrated,a===null||oo(a)||co(a)))return t}else if(t.tag===19&&(t.memoizedProps.revealOrder==="forwards"||t.memoizedProps.revealOrder==="backwards"||t.memoizedProps.revealOrder==="unstable_legacy-backwards"||t.memoizedProps.revealOrder==="together")){if((t.flags&128)!==0)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var fa=0,ve=null,Re=null,$e=null,tr=!1,Jl=!1,ml=!1,ar=0,Gn=0,Fl=null,Py=0;function Ge(){throw Error(o(321))}function ns(e,t){if(t===null)return!1;for(var a=0;a<t.length&&a<e.length;a++)if(!_t(e[a],t[a]))return!1;return!0}function us(e,t,a,l,u,i){return fa=i,ve=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,M.H=e===null||e.memoizedState===null?id:xs,ml=!1,i=a(l,u),ml=!1,Jl&&(i=Cf(t,a,l,u)),Nf(e),i}function Nf(e){M.H=Vn;var t=Re!==null&&Re.next!==null;if(fa=0,$e=Re=ve=null,tr=!1,Gn=0,Fl=null,t)throw Error(o(300));e===null||Pe||(e=e.dependencies,e!==null&&Ku(e)&&(Pe=!0))}function Cf(e,t,a,l){ve=e;var u=0;do{if(Jl&&(Fl=null),Gn=0,Jl=!1,25<=u)throw Error(o(301));if(u+=1,$e=Re=null,e.updateQueue!=null){var i=e.updateQueue;i.lastEffect=null,i.events=null,i.stores=null,i.memoCache!=null&&(i.memoCache.index=0)}M.H=sd,i=t(a,l)}while(Jl);return i}function Wy(){var e=M.H,t=e.useState()[0];return t=typeof t.then=="function"?Yn(t):t,e=e.useState()[0],(Re!==null?Re.memoizedState:null)!==e&&(ve.flags|=1024),t}function rs(){var e=ar!==0;return ar=0,e}function is(e,t,a){t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~a}function ss(e){if(tr){for(e=e.memoizedState;e!==null;){var t=e.queue;t!==null&&(t.pending=null),e=e.next}tr=!1}fa=0,$e=Re=ve=null,Jl=!1,Gn=ar=0,Fl=null}function ct(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return $e===null?ve.memoizedState=$e=e:$e=$e.next=e,$e}function Ke(){if(Re===null){var e=ve.alternate;e=e!==null?e.memoizedState:null}else e=Re.next;var t=$e===null?ve.memoizedState:$e.next;if(t!==null)$e=t,Re=e;else{if(e===null)throw ve.alternate===null?Error(o(467)):Error(o(310));Re=e,e={memoizedState:Re.memoizedState,baseState:Re.baseState,baseQueue:Re.baseQueue,queue:Re.queue,next:null},$e===null?ve.memoizedState=$e=e:$e=$e.next=e}return $e}function lr(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function Yn(e){var t=Gn;return Gn+=1,Fl===null&&(Fl=[]),e=yf(Fl,e,t),t=ve,($e===null?t.memoizedState:$e.next)===null&&(t=t.alternate,M.H=t===null||t.memoizedState===null?id:xs),e}function nr(e){if(e!==null&&typeof e=="object"){if(typeof e.then=="function")return Yn(e);if(e.$$typeof===oe)return nt(e)}throw Error(o(438,String(e)))}function os(e){var t=null,a=ve.updateQueue;if(a!==null&&(t=a.memoCache),t==null){var l=ve.alternate;l!==null&&(l=l.updateQueue,l!==null&&(l=l.memoCache,l!=null&&(t={data:l.data.map(function(u){return u.slice()}),index:0})))}if(t==null&&(t={data:[],index:0}),a===null&&(a=lr(),ve.updateQueue=a),a.memoCache=t,a=t.data[t.index],a===void 0)for(a=t.data[t.index]=Array(e),l=0;l<e;l++)a[l]=I;return t.index++,a}function da(e,t){return typeof t=="function"?t(e):t}function ur(e){var t=Ke();return cs(t,Re,e)}function cs(e,t,a){var l=e.queue;if(l===null)throw Error(o(311));l.lastRenderedReducer=a;var u=e.baseQueue,i=l.pending;if(i!==null){if(u!==null){var d=u.next;u.next=i.next,i.next=d}t.baseQueue=u=i,l.pending=null}if(i=e.baseState,u===null)e.memoizedState=i;else{t=u.next;var g=d=null,b=null,T=t,q=!1;do{var k=T.lane&-536870913;if(k!==T.lane?(Oe&k)===k:(fa&k)===k){var A=T.revertLane;if(A===0)b!==null&&(b=b.next={lane:0,revertLane:0,gesture:null,action:T.action,hasEagerState:T.hasEagerState,eagerState:T.eagerState,next:null}),k===Yl&&(q=!0);else if((fa&A)===A){T=T.next,A===Yl&&(q=!0);continue}else k={lane:0,revertLane:T.revertLane,gesture:null,action:T.action,hasEagerState:T.hasEagerState,eagerState:T.eagerState,next:null},b===null?(g=b=k,d=i):b=b.next=k,ve.lanes|=A,ka|=A;k=T.action,ml&&a(i,k),i=T.hasEagerState?T.eagerState:a(i,k)}else A={lane:k,revertLane:T.revertLane,gesture:T.gesture,action:T.action,hasEagerState:T.hasEagerState,eagerState:T.eagerState,next:null},b===null?(g=b=A,d=i):b=b.next=A,ve.lanes|=k,ka|=k;T=T.next}while(T!==null&&T!==t);if(b===null?d=i:b.next=g,!_t(i,e.memoizedState)&&(Pe=!0,q&&(a=Xl,a!==null)))throw a;e.memoizedState=i,e.baseState=d,e.baseQueue=b,l.lastRenderedState=i}return u===null&&(l.lanes=0),[e.memoizedState,l.dispatch]}function fs(e){var t=Ke(),a=t.queue;if(a===null)throw Error(o(311));a.lastRenderedReducer=e;var l=a.dispatch,u=a.pending,i=t.memoizedState;if(u!==null){a.pending=null;var d=u=u.next;do i=e(i,d.action),d=d.next;while(d!==u);_t(i,t.memoizedState)||(Pe=!0),t.memoizedState=i,t.baseQueue===null&&(t.baseState=i),a.lastRenderedState=i}return[i,l]}function Ef(e,t,a){var l=ve,u=Ke(),i=Ne;if(i){if(a===void 0)throw Error(o(407));a=a()}else a=t();var d=!_t((Re||u).memoizedState,a);if(d&&(u.memoizedState=a,Pe=!0),u=u.queue,ms(Af.bind(null,l,u,e),[e]),u.getSnapshot!==t||d||$e!==null&&$e.memoizedState.tag&1){if(l.flags|=2048,$l(9,{destroy:void 0},Mf.bind(null,l,u,a,t),null),Qe===null)throw Error(o(349));i||(fa&127)!==0||Tf(l,t,a)}return a}function Tf(e,t,a){e.flags|=16384,e={getSnapshot:t,value:a},t=ve.updateQueue,t===null?(t=lr(),ve.updateQueue=t,t.stores=[e]):(a=t.stores,a===null?t.stores=[e]:a.push(e))}function Mf(e,t,a,l){t.value=a,t.getSnapshot=l,zf(t)&&Df(e)}function Af(e,t,a){return a(function(){zf(t)&&Df(e)})}function zf(e){var t=e.getSnapshot;e=e.value;try{var a=t();return!_t(e,a)}catch{return!0}}function Df(e){var t=ul(e,2);t!==null&&bt(t,e,2)}function ds(e){var t=ct();if(typeof e=="function"){var a=e;if(e=a(),ml){_a(!0);try{a()}finally{_a(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:da,lastRenderedState:e},t}function Uf(e,t,a,l){return e.baseState=a,cs(e,Re,typeof l=="function"?l:da)}function Iy(e,t,a,l,u){if(sr(e))throw Error(o(485));if(e=t.action,e!==null){var i={payload:u,action:e,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(d){i.listeners.push(d)}};M.T!==null?a(!0):i.isTransition=!1,l(i),a=t.pending,a===null?(i.next=t.pending=i,Rf(t,i)):(i.next=a.next,t.pending=a.next=i)}}function Rf(e,t){var a=t.action,l=t.payload,u=e.state;if(t.isTransition){var i=M.T,d={};M.T=d;try{var g=a(u,l),b=M.S;b!==null&&b(d,g),qf(e,t,g)}catch(T){hs(e,t,T)}finally{i!==null&&d.types!==null&&(i.types=d.types),M.T=i}}else try{i=a(u,l),qf(e,t,i)}catch(T){hs(e,t,T)}}function qf(e,t,a){a!==null&&typeof a=="object"&&typeof a.then=="function"?a.then(function(l){wf(e,t,l)},function(l){return hs(e,t,l)}):wf(e,t,a)}function wf(e,t,a){t.status="fulfilled",t.value=a,Qf(t),e.state=a,t=e.pending,t!==null&&(a=t.next,a===t?e.pending=null:(a=a.next,t.next=a,Rf(e,a)))}function hs(e,t,a){var l=e.pending;if(e.pending=null,l!==null){l=l.next;do t.status="rejected",t.reason=a,Qf(t),t=t.next;while(t!==l)}e.action=null}function Qf(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function kf(e,t){return t}function Hf(e,t){if(Ne){var a=Qe.formState;if(a!==null){e:{var l=ve;if(Ne){if(ke){t:{for(var u=ke,i=kt;u.nodeType!==8;){if(!i){u=null;break t}if(u=Bt(u.nextSibling),u===null){u=null;break t}}i=u.data,u=i==="F!"||i==="F"?u:null}if(u){ke=Bt(u.nextSibling),l=u.data==="F!";break e}}Ma(l)}l=!1}l&&(t=a[0])}}return a=ct(),a.memoizedState=a.baseState=t,l={pending:null,lanes:0,dispatch:null,lastRenderedReducer:kf,lastRenderedState:t},a.queue=l,a=nd.bind(null,ve,l),l.dispatch=a,l=ds(!1),i=bs.bind(null,ve,!1,l.queue),l=ct(),u={state:t,dispatch:null,action:e,pending:null},l.queue=u,a=Iy.bind(null,ve,u,i,a),u.dispatch=a,l.memoizedState=e,[t,a,!1]}function Bf(e){var t=Ke();return Lf(t,Re,e)}function Lf(e,t,a){if(t=cs(e,t,kf)[0],e=ur(da)[0],typeof t=="object"&&t!==null&&typeof t.then=="function")try{var l=Yn(t)}catch(d){throw d===Vl?Fu:d}else l=t;t=Ke();var u=t.queue,i=u.dispatch;return a!==t.memoizedState&&(ve.flags|=2048,$l(9,{destroy:void 0},ep.bind(null,u,a),null)),[l,i,e]}function ep(e,t){e.action=t}function Gf(e){var t=Ke(),a=Re;if(a!==null)return Lf(t,a,e);Ke(),t=t.memoizedState,a=Ke();var l=a.queue.dispatch;return a.memoizedState=e,[t,l,!1]}function $l(e,t,a,l){return e={tag:e,create:a,deps:l,inst:t,next:null},t=ve.updateQueue,t===null&&(t=lr(),ve.updateQueue=t),a=t.lastEffect,a===null?t.lastEffect=e.next=e:(l=a.next,a.next=e,e.next=l,t.lastEffect=e),e}function Yf(){return Ke().memoizedState}function rr(e,t,a,l){var u=ct();ve.flags|=e,u.memoizedState=$l(1|t,{destroy:void 0},a,l===void 0?null:l)}function ir(e,t,a,l){var u=Ke();l=l===void 0?null:l;var i=u.memoizedState.inst;Re!==null&&l!==null&&ns(l,Re.memoizedState.deps)?u.memoizedState=$l(t,i,a,l):(ve.flags|=e,u.memoizedState=$l(1|t,i,a,l))}function Xf(e,t){rr(8390656,8,e,t)}function ms(e,t){ir(2048,8,e,t)}function tp(e){ve.flags|=4;var t=ve.updateQueue;if(t===null)t=lr(),ve.updateQueue=t,t.events=[e];else{var a=t.events;a===null?t.events=[e]:a.push(e)}}function Vf(e){var t=Ke().memoizedState;return tp({ref:t,nextImpl:e}),function(){if((Ae&2)!==0)throw Error(o(440));return t.impl.apply(void 0,arguments)}}function Kf(e,t){return ir(4,2,e,t)}function Zf(e,t){return ir(4,4,e,t)}function Jf(e,t){if(typeof t=="function"){e=e();var a=t(e);return function(){typeof a=="function"?a():t(null)}}if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function Ff(e,t,a){a=a!=null?a.concat([e]):null,ir(4,4,Jf.bind(null,t,e),a)}function vs(){}function $f(e,t){var a=Ke();t=t===void 0?null:t;var l=a.memoizedState;return t!==null&&ns(t,l[1])?l[0]:(a.memoizedState=[e,t],e)}function Pf(e,t){var a=Ke();t=t===void 0?null:t;var l=a.memoizedState;if(t!==null&&ns(t,l[1]))return l[0];if(l=e(),ml){_a(!0);try{e()}finally{_a(!1)}}return a.memoizedState=[l,t],l}function ys(e,t,a){return a===void 0||(fa&1073741824)!==0&&(Oe&261930)===0?e.memoizedState=t:(e.memoizedState=a,e=Wd(),ve.lanes|=e,ka|=e,a)}function Wf(e,t,a,l){return _t(a,t)?a:Zl.current!==null?(e=ys(e,a,l),_t(e,t)||(Pe=!0),e):(fa&42)===0||(fa&1073741824)!==0&&(Oe&261930)===0?(Pe=!0,e.memoizedState=a):(e=Wd(),ve.lanes|=e,ka|=e,t)}function If(e,t,a,l,u){var i=H.p;H.p=i!==0&&8>i?i:8;var d=M.T,g={};M.T=g,bs(e,!1,t,a);try{var b=u(),T=M.S;if(T!==null&&T(g,b),b!==null&&typeof b=="object"&&typeof b.then=="function"){var q=$y(b,l);Xn(e,t,q,At(e))}else Xn(e,t,l,At(e))}catch(k){Xn(e,t,{then:function(){},status:"rejected",reason:k},At())}finally{H.p=i,d!==null&&g.types!==null&&(d.types=g.types),M.T=d}}function ap(){}function ps(e,t,a,l){if(e.tag!==5)throw Error(o(476));var u=ed(e).queue;If(e,u,t,K,a===null?ap:function(){return td(e),a(l)})}function ed(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:K,baseState:K,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:da,lastRenderedState:K},next:null};var a={};return t.next={memoizedState:a,baseState:a,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:da,lastRenderedState:a},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function td(e){var t=ed(e);t.next===null&&(t=e.alternate.memoizedState),Xn(e,t.next.queue,{},At())}function gs(){return nt(iu)}function ad(){return Ke().memoizedState}function ld(){return Ke().memoizedState}function lp(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var a=At();e=Da(a);var l=Ua(t,e,a);l!==null&&(bt(l,t,a),Hn(l,t,a)),t={cache:Zi()},e.payload=t;return}t=t.return}}function np(e,t,a){var l=At();a={lane:l,revertLane:0,gesture:null,action:a,hasEagerState:!1,eagerState:null,next:null},sr(e)?ud(t,a):(a=wi(e,t,a,l),a!==null&&(bt(a,e,l),rd(a,t,l)))}function nd(e,t,a){var l=At();Xn(e,t,a,l)}function Xn(e,t,a,l){var u={lane:l,revertLane:0,gesture:null,action:a,hasEagerState:!1,eagerState:null,next:null};if(sr(e))ud(t,u);else{var i=e.alternate;if(e.lanes===0&&(i===null||i.lanes===0)&&(i=t.lastRenderedReducer,i!==null))try{var d=t.lastRenderedState,g=i(d,a);if(u.hasEagerState=!0,u.eagerState=g,_t(g,d))return Gu(e,t,u,0),Qe===null&&Lu(),!1}catch{}finally{}if(a=wi(e,t,u,l),a!==null)return bt(a,e,l),rd(a,t,l),!0}return!1}function bs(e,t,a,l){if(l={lane:2,revertLane:Ps(),gesture:null,action:l,hasEagerState:!1,eagerState:null,next:null},sr(e)){if(t)throw Error(o(479))}else t=wi(e,a,l,2),t!==null&&bt(t,e,2)}function sr(e){var t=e.alternate;return e===ve||t!==null&&t===ve}function ud(e,t){Jl=tr=!0;var a=e.pending;a===null?t.next=t:(t.next=a.next,a.next=t),e.pending=t}function rd(e,t,a){if((a&4194048)!==0){var l=t.lanes;l&=e.pendingLanes,a|=l,t.lanes=a,cc(e,a)}}var Vn={readContext:nt,use:nr,useCallback:Ge,useContext:Ge,useEffect:Ge,useImperativeHandle:Ge,useLayoutEffect:Ge,useInsertionEffect:Ge,useMemo:Ge,useReducer:Ge,useRef:Ge,useState:Ge,useDebugValue:Ge,useDeferredValue:Ge,useTransition:Ge,useSyncExternalStore:Ge,useId:Ge,useHostTransitionStatus:Ge,useFormState:Ge,useActionState:Ge,useOptimistic:Ge,useMemoCache:Ge,useCacheRefresh:Ge};Vn.useEffectEvent=Ge;var id={readContext:nt,use:nr,useCallback:function(e,t){return ct().memoizedState=[e,t===void 0?null:t],e},useContext:nt,useEffect:Xf,useImperativeHandle:function(e,t,a){a=a!=null?a.concat([e]):null,rr(4194308,4,Jf.bind(null,t,e),a)},useLayoutEffect:function(e,t){return rr(4194308,4,e,t)},useInsertionEffect:function(e,t){rr(4,2,e,t)},useMemo:function(e,t){var a=ct();t=t===void 0?null:t;var l=e();if(ml){_a(!0);try{e()}finally{_a(!1)}}return a.memoizedState=[l,t],l},useReducer:function(e,t,a){var l=ct();if(a!==void 0){var u=a(t);if(ml){_a(!0);try{a(t)}finally{_a(!1)}}}else u=t;return l.memoizedState=l.baseState=u,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:u},l.queue=e,e=e.dispatch=np.bind(null,ve,e),[l.memoizedState,e]},useRef:function(e){var t=ct();return e={current:e},t.memoizedState=e},useState:function(e){e=ds(e);var t=e.queue,a=nd.bind(null,ve,t);return t.dispatch=a,[e.memoizedState,a]},useDebugValue:vs,useDeferredValue:function(e,t){var a=ct();return ys(a,e,t)},useTransition:function(){var e=ds(!1);return e=If.bind(null,ve,e.queue,!0,!1),ct().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,a){var l=ve,u=ct();if(Ne){if(a===void 0)throw Error(o(407));a=a()}else{if(a=t(),Qe===null)throw Error(o(349));(Oe&127)!==0||Tf(l,t,a)}u.memoizedState=a;var i={value:a,getSnapshot:t};return u.queue=i,Xf(Af.bind(null,l,i,e),[e]),l.flags|=2048,$l(9,{destroy:void 0},Mf.bind(null,l,i,a,t),null),a},useId:function(){var e=ct(),t=Qe.identifierPrefix;if(Ne){var a=It,l=Wt;a=(l&~(1<<32-Ot(l)-1)).toString(32)+a,t="_"+t+"R_"+a,a=ar++,0<a&&(t+="H"+a.toString(32)),t+="_"}else a=Py++,t="_"+t+"r_"+a.toString(32)+"_";return e.memoizedState=t},useHostTransitionStatus:gs,useFormState:Hf,useActionState:Hf,useOptimistic:function(e){var t=ct();t.memoizedState=t.baseState=e;var a={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=a,t=bs.bind(null,ve,!0,a),a.dispatch=t,[e,t]},useMemoCache:os,useCacheRefresh:function(){return ct().memoizedState=lp.bind(null,ve)},useEffectEvent:function(e){var t=ct(),a={impl:e};return t.memoizedState=a,function(){if((Ae&2)!==0)throw Error(o(440));return a.impl.apply(void 0,arguments)}}},xs={readContext:nt,use:nr,useCallback:$f,useContext:nt,useEffect:ms,useImperativeHandle:Ff,useInsertionEffect:Kf,useLayoutEffect:Zf,useMemo:Pf,useReducer:ur,useRef:Yf,useState:function(){return ur(da)},useDebugValue:vs,useDeferredValue:function(e,t){var a=Ke();return Wf(a,Re.memoizedState,e,t)},useTransition:function(){var e=ur(da)[0],t=Ke().memoizedState;return[typeof e=="boolean"?e:Yn(e),t]},useSyncExternalStore:Ef,useId:ad,useHostTransitionStatus:gs,useFormState:Bf,useActionState:Bf,useOptimistic:function(e,t){var a=Ke();return Uf(a,Re,e,t)},useMemoCache:os,useCacheRefresh:ld};xs.useEffectEvent=Vf;var sd={readContext:nt,use:nr,useCallback:$f,useContext:nt,useEffect:ms,useImperativeHandle:Ff,useInsertionEffect:Kf,useLayoutEffect:Zf,useMemo:Pf,useReducer:fs,useRef:Yf,useState:function(){return fs(da)},useDebugValue:vs,useDeferredValue:function(e,t){var a=Ke();return Re===null?ys(a,e,t):Wf(a,Re.memoizedState,e,t)},useTransition:function(){var e=fs(da)[0],t=Ke().memoizedState;return[typeof e=="boolean"?e:Yn(e),t]},useSyncExternalStore:Ef,useId:ad,useHostTransitionStatus:gs,useFormState:Gf,useActionState:Gf,useOptimistic:function(e,t){var a=Ke();return Re!==null?Uf(a,Re,e,t):(a.baseState=e,[e,a.queue.dispatch])},useMemoCache:os,useCacheRefresh:ld};sd.useEffectEvent=Vf;function Ss(e,t,a,l){t=e.memoizedState,a=a(l,t),a=a==null?t:S({},t,a),e.memoizedState=a,e.lanes===0&&(e.updateQueue.baseState=a)}var js={enqueueSetState:function(e,t,a){e=e._reactInternals;var l=At(),u=Da(l);u.payload=t,a!=null&&(u.callback=a),t=Ua(e,u,l),t!==null&&(bt(t,e,l),Hn(t,e,l))},enqueueReplaceState:function(e,t,a){e=e._reactInternals;var l=At(),u=Da(l);u.tag=1,u.payload=t,a!=null&&(u.callback=a),t=Ua(e,u,l),t!==null&&(bt(t,e,l),Hn(t,e,l))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var a=At(),l=Da(a);l.tag=2,t!=null&&(l.callback=t),t=Ua(e,l,a),t!==null&&(bt(t,e,a),Hn(t,e,a))}};function od(e,t,a,l,u,i,d){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(l,i,d):t.prototype&&t.prototype.isPureReactComponent?!zn(a,l)||!zn(u,i):!0}function cd(e,t,a,l){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(a,l),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(a,l),t.state!==e&&js.enqueueReplaceState(t,t.state,null)}function vl(e,t){var a=t;if("ref"in t){a={};for(var l in t)l!=="ref"&&(a[l]=t[l])}if(e=e.defaultProps){a===t&&(a=S({},a));for(var u in e)a[u]===void 0&&(a[u]=e[u])}return a}function fd(e){Bu(e)}function dd(e){console.error(e)}function hd(e){Bu(e)}function or(e,t){try{var a=e.onUncaughtError;a(t.value,{componentStack:t.stack})}catch(l){setTimeout(function(){throw l})}}function md(e,t,a){try{var l=e.onCaughtError;l(a.value,{componentStack:a.stack,errorBoundary:t.tag===1?t.stateNode:null})}catch(u){setTimeout(function(){throw u})}}function Os(e,t,a){return a=Da(a),a.tag=3,a.payload={element:null},a.callback=function(){or(e,t)},a}function vd(e){return e=Da(e),e.tag=3,e}function yd(e,t,a,l){var u=a.type.getDerivedStateFromError;if(typeof u=="function"){var i=l.value;e.payload=function(){return u(i)},e.callback=function(){md(t,a,l)}}var d=a.stateNode;d!==null&&typeof d.componentDidCatch=="function"&&(e.callback=function(){md(t,a,l),typeof u!="function"&&(Ha===null?Ha=new Set([this]):Ha.add(this));var g=l.stack;this.componentDidCatch(l.value,{componentStack:g!==null?g:""})})}function up(e,t,a,l,u){if(a.flags|=32768,l!==null&&typeof l=="object"&&typeof l.then=="function"){if(t=a.alternate,t!==null&&Gl(t,a,u,!0),a=Ct.current,a!==null){switch(a.tag){case 31:case 13:return Ht===null?Sr():a.alternate===null&&Ye===0&&(Ye=3),a.flags&=-257,a.flags|=65536,a.lanes=u,l===$u?a.flags|=16384:(t=a.updateQueue,t===null?a.updateQueue=new Set([l]):t.add(l),Js(e,l,u)),!1;case 22:return a.flags|=65536,l===$u?a.flags|=16384:(t=a.updateQueue,t===null?(t={transitions:null,markerInstances:null,retryQueue:new Set([l])},a.updateQueue=t):(a=t.retryQueue,a===null?t.retryQueue=new Set([l]):a.add(l)),Js(e,l,u)),!1}throw Error(o(435,a.tag))}return Js(e,l,u),Sr(),!1}if(Ne)return t=Ct.current,t!==null?((t.flags&65536)===0&&(t.flags|=256),t.flags|=65536,t.lanes=u,l!==Gi&&(e=Error(o(422),{cause:l}),Rn(qt(e,a)))):(l!==Gi&&(t=Error(o(423),{cause:l}),Rn(qt(t,a))),e=e.current.alternate,e.flags|=65536,u&=-u,e.lanes|=u,l=qt(l,a),u=Os(e.stateNode,l,u),Ii(e,u),Ye!==4&&(Ye=2)),!1;var i=Error(o(520),{cause:l});if(i=qt(i,a),In===null?In=[i]:In.push(i),Ye!==4&&(Ye=2),t===null)return!0;l=qt(l,a),a=t;do{switch(a.tag){case 3:return a.flags|=65536,e=u&-u,a.lanes|=e,e=Os(a.stateNode,l,e),Ii(a,e),!1;case 1:if(t=a.type,i=a.stateNode,(a.flags&128)===0&&(typeof t.getDerivedStateFromError=="function"||i!==null&&typeof i.componentDidCatch=="function"&&(Ha===null||!Ha.has(i))))return a.flags|=65536,u&=-u,a.lanes|=u,u=vd(u),yd(u,e,a,l),Ii(a,u),!1}a=a.return}while(a!==null);return!1}var _s=Error(o(461)),Pe=!1;function ut(e,t,a,l){t.child=e===null?xf(t,null,a,l):hl(t,e.child,a,l)}function pd(e,t,a,l,u){a=a.render;var i=t.ref;if("ref"in l){var d={};for(var g in l)g!=="ref"&&(d[g]=l[g])}else d=l;return ol(t),l=us(e,t,a,d,i,u),g=rs(),e!==null&&!Pe?(is(e,t,u),ha(e,t,u)):(Ne&&g&&Bi(t),t.flags|=1,ut(e,t,l,u),t.child)}function gd(e,t,a,l,u){if(e===null){var i=a.type;return typeof i=="function"&&!Qi(i)&&i.defaultProps===void 0&&a.compare===null?(t.tag=15,t.type=i,bd(e,t,i,l,u)):(e=Xu(a.type,null,l,t,t.mode,u),e.ref=t.ref,e.return=t,t.child=e)}if(i=e.child,!Ds(e,u)){var d=i.memoizedProps;if(a=a.compare,a=a!==null?a:zn,a(d,l)&&e.ref===t.ref)return ha(e,t,u)}return t.flags|=1,e=ia(i,l),e.ref=t.ref,e.return=t,t.child=e}function bd(e,t,a,l,u){if(e!==null){var i=e.memoizedProps;if(zn(i,l)&&e.ref===t.ref)if(Pe=!1,t.pendingProps=l=i,Ds(e,u))(e.flags&131072)!==0&&(Pe=!0);else return t.lanes=e.lanes,ha(e,t,u)}return Ns(e,t,a,l,u)}function xd(e,t,a,l){var u=l.children,i=e!==null?e.memoizedState:null;if(e===null&&t.stateNode===null&&(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),l.mode==="hidden"){if((t.flags&128)!==0){if(i=i!==null?i.baseLanes|a:a,e!==null){for(l=t.child=e.child,u=0;l!==null;)u=u|l.lanes|l.childLanes,l=l.sibling;l=u&~i}else l=0,t.child=null;return Sd(e,t,i,a,l)}if((a&536870912)!==0)t.memoizedState={baseLanes:0,cachePool:null},e!==null&&Ju(t,i!==null?i.cachePool:null),i!==null?Of(t,i):ts(),_f(t);else return l=t.lanes=536870912,Sd(e,t,i!==null?i.baseLanes|a:a,a,l)}else i!==null?(Ju(t,i.cachePool),Of(t,i),qa(),t.memoizedState=null):(e!==null&&Ju(t,null),ts(),qa());return ut(e,t,u,a),t.child}function Kn(e,t){return e!==null&&e.tag===22||t.stateNode!==null||(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),t.sibling}function Sd(e,t,a,l,u){var i=Fi();return i=i===null?null:{parent:Fe._currentValue,pool:i},t.memoizedState={baseLanes:a,cachePool:i},e!==null&&Ju(t,null),ts(),_f(t),e!==null&&Gl(e,t,l,!0),t.childLanes=u,null}function cr(e,t){return t=dr({mode:t.mode,children:t.children},e.mode),t.ref=e.ref,e.child=t,t.return=e,t}function jd(e,t,a){return hl(t,e.child,null,a),e=cr(t,t.pendingProps),e.flags|=2,Et(t),t.memoizedState=null,e}function rp(e,t,a){var l=t.pendingProps,u=(t.flags&128)!==0;if(t.flags&=-129,e===null){if(Ne){if(l.mode==="hidden")return e=cr(t,l),t.lanes=536870912,Kn(null,e);if(ls(t),(e=ke)?(e=Rh(e,kt),e=e!==null&&e.data==="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:Ea!==null?{id:Wt,overflow:It}:null,retryLane:536870912,hydrationErrors:null},a=nf(e),a.return=t,t.child=a,lt=t,ke=null)):e=null,e===null)throw Ma(t);return t.lanes=536870912,null}return cr(t,l)}var i=e.memoizedState;if(i!==null){var d=i.dehydrated;if(ls(t),u)if(t.flags&256)t.flags&=-257,t=jd(e,t,a);else if(t.memoizedState!==null)t.child=e.child,t.flags|=128,t=null;else throw Error(o(558));else if(Pe||Gl(e,t,a,!1),u=(a&e.childLanes)!==0,Pe||u){if(l=Qe,l!==null&&(d=fc(l,a),d!==0&&d!==i.retryLane))throw i.retryLane=d,ul(e,d),bt(l,e,d),_s;Sr(),t=jd(e,t,a)}else e=i.treeContext,ke=Bt(d.nextSibling),lt=t,Ne=!0,Ta=null,kt=!1,e!==null&&sf(t,e),t=cr(t,l),t.flags|=4096;return t}return e=ia(e.child,{mode:l.mode,children:l.children}),e.ref=t.ref,t.child=e,e.return=t,e}function fr(e,t){var a=t.ref;if(a===null)e!==null&&e.ref!==null&&(t.flags|=4194816);else{if(typeof a!="function"&&typeof a!="object")throw Error(o(284));(e===null||e.ref!==a)&&(t.flags|=4194816)}}function Ns(e,t,a,l,u){return ol(t),a=us(e,t,a,l,void 0,u),l=rs(),e!==null&&!Pe?(is(e,t,u),ha(e,t,u)):(Ne&&l&&Bi(t),t.flags|=1,ut(e,t,a,u),t.child)}function Od(e,t,a,l,u,i){return ol(t),t.updateQueue=null,a=Cf(t,l,a,u),Nf(e),l=rs(),e!==null&&!Pe?(is(e,t,i),ha(e,t,i)):(Ne&&l&&Bi(t),t.flags|=1,ut(e,t,a,i),t.child)}function _d(e,t,a,l,u){if(ol(t),t.stateNode===null){var i=kl,d=a.contextType;typeof d=="object"&&d!==null&&(i=nt(d)),i=new a(l,i),t.memoizedState=i.state!==null&&i.state!==void 0?i.state:null,i.updater=js,t.stateNode=i,i._reactInternals=t,i=t.stateNode,i.props=l,i.state=t.memoizedState,i.refs={},Pi(t),d=a.contextType,i.context=typeof d=="object"&&d!==null?nt(d):kl,i.state=t.memoizedState,d=a.getDerivedStateFromProps,typeof d=="function"&&(Ss(t,a,d,l),i.state=t.memoizedState),typeof a.getDerivedStateFromProps=="function"||typeof i.getSnapshotBeforeUpdate=="function"||typeof i.UNSAFE_componentWillMount!="function"&&typeof i.componentWillMount!="function"||(d=i.state,typeof i.componentWillMount=="function"&&i.componentWillMount(),typeof i.UNSAFE_componentWillMount=="function"&&i.UNSAFE_componentWillMount(),d!==i.state&&js.enqueueReplaceState(i,i.state,null),Ln(t,l,i,u),Bn(),i.state=t.memoizedState),typeof i.componentDidMount=="function"&&(t.flags|=4194308),l=!0}else if(e===null){i=t.stateNode;var g=t.memoizedProps,b=vl(a,g);i.props=b;var T=i.context,q=a.contextType;d=kl,typeof q=="object"&&q!==null&&(d=nt(q));var k=a.getDerivedStateFromProps;q=typeof k=="function"||typeof i.getSnapshotBeforeUpdate=="function",g=t.pendingProps!==g,q||typeof i.UNSAFE_componentWillReceiveProps!="function"&&typeof i.componentWillReceiveProps!="function"||(g||T!==d)&&cd(t,i,l,d),za=!1;var A=t.memoizedState;i.state=A,Ln(t,l,i,u),Bn(),T=t.memoizedState,g||A!==T||za?(typeof k=="function"&&(Ss(t,a,k,l),T=t.memoizedState),(b=za||od(t,a,b,l,A,T,d))?(q||typeof i.UNSAFE_componentWillMount!="function"&&typeof i.componentWillMount!="function"||(typeof i.componentWillMount=="function"&&i.componentWillMount(),typeof i.UNSAFE_componentWillMount=="function"&&i.UNSAFE_componentWillMount()),typeof i.componentDidMount=="function"&&(t.flags|=4194308)):(typeof i.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=l,t.memoizedState=T),i.props=l,i.state=T,i.context=d,l=b):(typeof i.componentDidMount=="function"&&(t.flags|=4194308),l=!1)}else{i=t.stateNode,Wi(e,t),d=t.memoizedProps,q=vl(a,d),i.props=q,k=t.pendingProps,A=i.context,T=a.contextType,b=kl,typeof T=="object"&&T!==null&&(b=nt(T)),g=a.getDerivedStateFromProps,(T=typeof g=="function"||typeof i.getSnapshotBeforeUpdate=="function")||typeof i.UNSAFE_componentWillReceiveProps!="function"&&typeof i.componentWillReceiveProps!="function"||(d!==k||A!==b)&&cd(t,i,l,b),za=!1,A=t.memoizedState,i.state=A,Ln(t,l,i,u),Bn();var z=t.memoizedState;d!==k||A!==z||za||e!==null&&e.dependencies!==null&&Ku(e.dependencies)?(typeof g=="function"&&(Ss(t,a,g,l),z=t.memoizedState),(q=za||od(t,a,q,l,A,z,b)||e!==null&&e.dependencies!==null&&Ku(e.dependencies))?(T||typeof i.UNSAFE_componentWillUpdate!="function"&&typeof i.componentWillUpdate!="function"||(typeof i.componentWillUpdate=="function"&&i.componentWillUpdate(l,z,b),typeof i.UNSAFE_componentWillUpdate=="function"&&i.UNSAFE_componentWillUpdate(l,z,b)),typeof i.componentDidUpdate=="function"&&(t.flags|=4),typeof i.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof i.componentDidUpdate!="function"||d===e.memoizedProps&&A===e.memoizedState||(t.flags|=4),typeof i.getSnapshotBeforeUpdate!="function"||d===e.memoizedProps&&A===e.memoizedState||(t.flags|=1024),t.memoizedProps=l,t.memoizedState=z),i.props=l,i.state=z,i.context=b,l=q):(typeof i.componentDidUpdate!="function"||d===e.memoizedProps&&A===e.memoizedState||(t.flags|=4),typeof i.getSnapshotBeforeUpdate!="function"||d===e.memoizedProps&&A===e.memoizedState||(t.flags|=1024),l=!1)}return i=l,fr(e,t),l=(t.flags&128)!==0,i||l?(i=t.stateNode,a=l&&typeof a.getDerivedStateFromError!="function"?null:i.render(),t.flags|=1,e!==null&&l?(t.child=hl(t,e.child,null,u),t.child=hl(t,null,a,u)):ut(e,t,a,u),t.memoizedState=i.state,e=t.child):e=ha(e,t,u),e}function Nd(e,t,a,l){return il(),t.flags|=256,ut(e,t,a,l),t.child}var Cs={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function Es(e){return{baseLanes:e,cachePool:mf()}}function Ts(e,t,a){return e=e!==null?e.childLanes&~a:0,t&&(e|=Mt),e}function Cd(e,t,a){var l=t.pendingProps,u=!1,i=(t.flags&128)!==0,d;if((d=i)||(d=e!==null&&e.memoizedState===null?!1:(Ve.current&2)!==0),d&&(u=!0,t.flags&=-129),d=(t.flags&32)!==0,t.flags&=-33,e===null){if(Ne){if(u?Ra(t):qa(),(e=ke)?(e=Rh(e,kt),e=e!==null&&e.data!=="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:Ea!==null?{id:Wt,overflow:It}:null,retryLane:536870912,hydrationErrors:null},a=nf(e),a.return=t,t.child=a,lt=t,ke=null)):e=null,e===null)throw Ma(t);return co(e)?t.lanes=32:t.lanes=536870912,null}var g=l.children;return l=l.fallback,u?(qa(),u=t.mode,g=dr({mode:"hidden",children:g},u),l=rl(l,u,a,null),g.return=t,l.return=t,g.sibling=l,t.child=g,l=t.child,l.memoizedState=Es(a),l.childLanes=Ts(e,d,a),t.memoizedState=Cs,Kn(null,l)):(Ra(t),Ms(t,g))}var b=e.memoizedState;if(b!==null&&(g=b.dehydrated,g!==null)){if(i)t.flags&256?(Ra(t),t.flags&=-257,t=As(e,t,a)):t.memoizedState!==null?(qa(),t.child=e.child,t.flags|=128,t=null):(qa(),g=l.fallback,u=t.mode,l=dr({mode:"visible",children:l.children},u),g=rl(g,u,a,null),g.flags|=2,l.return=t,g.return=t,l.sibling=g,t.child=l,hl(t,e.child,null,a),l=t.child,l.memoizedState=Es(a),l.childLanes=Ts(e,d,a),t.memoizedState=Cs,t=Kn(null,l));else if(Ra(t),co(g)){if(d=g.nextSibling&&g.nextSibling.dataset,d)var T=d.dgst;d=T,l=Error(o(419)),l.stack="",l.digest=d,Rn({value:l,source:null,stack:null}),t=As(e,t,a)}else if(Pe||Gl(e,t,a,!1),d=(a&e.childLanes)!==0,Pe||d){if(d=Qe,d!==null&&(l=fc(d,a),l!==0&&l!==b.retryLane))throw b.retryLane=l,ul(e,l),bt(d,e,l),_s;oo(g)||Sr(),t=As(e,t,a)}else oo(g)?(t.flags|=192,t.child=e.child,t=null):(e=b.treeContext,ke=Bt(g.nextSibling),lt=t,Ne=!0,Ta=null,kt=!1,e!==null&&sf(t,e),t=Ms(t,l.children),t.flags|=4096);return t}return u?(qa(),g=l.fallback,u=t.mode,b=e.child,T=b.sibling,l=ia(b,{mode:"hidden",children:l.children}),l.subtreeFlags=b.subtreeFlags&65011712,T!==null?g=ia(T,g):(g=rl(g,u,a,null),g.flags|=2),g.return=t,l.return=t,l.sibling=g,t.child=l,Kn(null,l),l=t.child,g=e.child.memoizedState,g===null?g=Es(a):(u=g.cachePool,u!==null?(b=Fe._currentValue,u=u.parent!==b?{parent:b,pool:b}:u):u=mf(),g={baseLanes:g.baseLanes|a,cachePool:u}),l.memoizedState=g,l.childLanes=Ts(e,d,a),t.memoizedState=Cs,Kn(e.child,l)):(Ra(t),a=e.child,e=a.sibling,a=ia(a,{mode:"visible",children:l.children}),a.return=t,a.sibling=null,e!==null&&(d=t.deletions,d===null?(t.deletions=[e],t.flags|=16):d.push(e)),t.child=a,t.memoizedState=null,a)}function Ms(e,t){return t=dr({mode:"visible",children:t},e.mode),t.return=e,e.child=t}function dr(e,t){return e=Nt(22,e,null,t),e.lanes=0,e}function As(e,t,a){return hl(t,e.child,null,a),e=Ms(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function Ed(e,t,a){e.lanes|=t;var l=e.alternate;l!==null&&(l.lanes|=t),Vi(e.return,t,a)}function zs(e,t,a,l,u,i){var d=e.memoizedState;d===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:l,tail:a,tailMode:u,treeForkCount:i}:(d.isBackwards=t,d.rendering=null,d.renderingStartTime=0,d.last=l,d.tail=a,d.tailMode=u,d.treeForkCount=i)}function Td(e,t,a){var l=t.pendingProps,u=l.revealOrder,i=l.tail;l=l.children;var d=Ve.current,g=(d&2)!==0;if(g?(d=d&1|2,t.flags|=128):d&=1,B(Ve,d),ut(e,t,l,a),l=Ne?Un:0,!g&&e!==null&&(e.flags&128)!==0)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&Ed(e,a,t);else if(e.tag===19)Ed(e,a,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}switch(u){case"forwards":for(a=t.child,u=null;a!==null;)e=a.alternate,e!==null&&er(e)===null&&(u=a),a=a.sibling;a=u,a===null?(u=t.child,t.child=null):(u=a.sibling,a.sibling=null),zs(t,!1,u,a,i,l);break;case"backwards":case"unstable_legacy-backwards":for(a=null,u=t.child,t.child=null;u!==null;){if(e=u.alternate,e!==null&&er(e)===null){t.child=u;break}e=u.sibling,u.sibling=a,a=u,u=e}zs(t,!0,a,null,i,l);break;case"together":zs(t,!1,null,null,void 0,l);break;default:t.memoizedState=null}return t.child}function ha(e,t,a){if(e!==null&&(t.dependencies=e.dependencies),ka|=t.lanes,(a&t.childLanes)===0)if(e!==null){if(Gl(e,t,a,!1),(a&t.childLanes)===0)return null}else return null;if(e!==null&&t.child!==e.child)throw Error(o(153));if(t.child!==null){for(e=t.child,a=ia(e,e.pendingProps),t.child=a,a.return=t;e.sibling!==null;)e=e.sibling,a=a.sibling=ia(e,e.pendingProps),a.return=t;a.sibling=null}return t.child}function Ds(e,t){return(e.lanes&t)!==0?!0:(e=e.dependencies,!!(e!==null&&Ku(e)))}function ip(e,t,a){switch(t.tag){case 3:Je(t,t.stateNode.containerInfo),Aa(t,Fe,e.memoizedState.cache),il();break;case 27:case 5:ja(t);break;case 4:Je(t,t.stateNode.containerInfo);break;case 10:Aa(t,t.type,t.memoizedProps.value);break;case 31:if(t.memoizedState!==null)return t.flags|=128,ls(t),null;break;case 13:var l=t.memoizedState;if(l!==null)return l.dehydrated!==null?(Ra(t),t.flags|=128,null):(a&t.child.childLanes)!==0?Cd(e,t,a):(Ra(t),e=ha(e,t,a),e!==null?e.sibling:null);Ra(t);break;case 19:var u=(e.flags&128)!==0;if(l=(a&t.childLanes)!==0,l||(Gl(e,t,a,!1),l=(a&t.childLanes)!==0),u){if(l)return Td(e,t,a);t.flags|=128}if(u=t.memoizedState,u!==null&&(u.rendering=null,u.tail=null,u.lastEffect=null),B(Ve,Ve.current),l)break;return null;case 22:return t.lanes=0,xd(e,t,a,t.pendingProps);case 24:Aa(t,Fe,e.memoizedState.cache)}return ha(e,t,a)}function Md(e,t,a){if(e!==null)if(e.memoizedProps!==t.pendingProps)Pe=!0;else{if(!Ds(e,a)&&(t.flags&128)===0)return Pe=!1,ip(e,t,a);Pe=(e.flags&131072)!==0}else Pe=!1,Ne&&(t.flags&1048576)!==0&&rf(t,Un,t.index);switch(t.lanes=0,t.tag){case 16:e:{var l=t.pendingProps;if(e=fl(t.elementType),t.type=e,typeof e=="function")Qi(e)?(l=vl(e,l),t.tag=1,t=_d(null,t,e,l,a)):(t.tag=0,t=Ns(null,t,e,l,a));else{if(e!=null){var u=e.$$typeof;if(u===Ce){t.tag=11,t=pd(null,t,e,l,a);break e}else if(u===D){t.tag=14,t=gd(null,t,e,l,a);break e}}throw t=fe(e)||e,Error(o(306,t,""))}}return t;case 0:return Ns(e,t,t.type,t.pendingProps,a);case 1:return l=t.type,u=vl(l,t.pendingProps),_d(e,t,l,u,a);case 3:e:{if(Je(t,t.stateNode.containerInfo),e===null)throw Error(o(387));l=t.pendingProps;var i=t.memoizedState;u=i.element,Wi(e,t),Ln(t,l,null,a);var d=t.memoizedState;if(l=d.cache,Aa(t,Fe,l),l!==i.cache&&Ki(t,[Fe],a,!0),Bn(),l=d.element,i.isDehydrated)if(i={element:l,isDehydrated:!1,cache:d.cache},t.updateQueue.baseState=i,t.memoizedState=i,t.flags&256){t=Nd(e,t,l,a);break e}else if(l!==u){u=qt(Error(o(424)),t),Rn(u),t=Nd(e,t,l,a);break e}else{switch(e=t.stateNode.containerInfo,e.nodeType){case 9:e=e.body;break;default:e=e.nodeName==="HTML"?e.ownerDocument.body:e}for(ke=Bt(e.firstChild),lt=t,Ne=!0,Ta=null,kt=!0,a=xf(t,null,l,a),t.child=a;a;)a.flags=a.flags&-3|4096,a=a.sibling}else{if(il(),l===u){t=ha(e,t,a);break e}ut(e,t,l,a)}t=t.child}return t;case 26:return fr(e,t),e===null?(a=Bh(t.type,null,t.pendingProps,null))?t.memoizedState=a:Ne||(a=t.type,e=t.pendingProps,l=Tr(se.current).createElement(a),l[at]=t,l[ht]=e,rt(l,a,e),et(l),t.stateNode=l):t.memoizedState=Bh(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return ja(t),e===null&&Ne&&(l=t.stateNode=Qh(t.type,t.pendingProps,se.current),lt=t,kt=!0,u=ke,Ya(t.type)?(fo=u,ke=Bt(l.firstChild)):ke=u),ut(e,t,t.pendingProps.children,a),fr(e,t),e===null&&(t.flags|=4194304),t.child;case 5:return e===null&&Ne&&((u=l=ke)&&(l=Qp(l,t.type,t.pendingProps,kt),l!==null?(t.stateNode=l,lt=t,ke=Bt(l.firstChild),kt=!1,u=!0):u=!1),u||Ma(t)),ja(t),u=t.type,i=t.pendingProps,d=e!==null?e.memoizedProps:null,l=i.children,ro(u,i)?l=null:d!==null&&ro(u,d)&&(t.flags|=32),t.memoizedState!==null&&(u=us(e,t,Wy,null,null,a),iu._currentValue=u),fr(e,t),ut(e,t,l,a),t.child;case 6:return e===null&&Ne&&((e=a=ke)&&(a=kp(a,t.pendingProps,kt),a!==null?(t.stateNode=a,lt=t,ke=null,e=!0):e=!1),e||Ma(t)),null;case 13:return Cd(e,t,a);case 4:return Je(t,t.stateNode.containerInfo),l=t.pendingProps,e===null?t.child=hl(t,null,l,a):ut(e,t,l,a),t.child;case 11:return pd(e,t,t.type,t.pendingProps,a);case 7:return ut(e,t,t.pendingProps,a),t.child;case 8:return ut(e,t,t.pendingProps.children,a),t.child;case 12:return ut(e,t,t.pendingProps.children,a),t.child;case 10:return l=t.pendingProps,Aa(t,t.type,l.value),ut(e,t,l.children,a),t.child;case 9:return u=t.type._context,l=t.pendingProps.children,ol(t),u=nt(u),l=l(u),t.flags|=1,ut(e,t,l,a),t.child;case 14:return gd(e,t,t.type,t.pendingProps,a);case 15:return bd(e,t,t.type,t.pendingProps,a);case 19:return Td(e,t,a);case 31:return rp(e,t,a);case 22:return xd(e,t,a,t.pendingProps);case 24:return ol(t),l=nt(Fe),e===null?(u=Fi(),u===null&&(u=Qe,i=Zi(),u.pooledCache=i,i.refCount++,i!==null&&(u.pooledCacheLanes|=a),u=i),t.memoizedState={parent:l,cache:u},Pi(t),Aa(t,Fe,u)):((e.lanes&a)!==0&&(Wi(e,t),Ln(t,null,null,a),Bn()),u=e.memoizedState,i=t.memoizedState,u.parent!==l?(u={parent:l,cache:l},t.memoizedState=u,t.lanes===0&&(t.memoizedState=t.updateQueue.baseState=u),Aa(t,Fe,l)):(l=i.cache,Aa(t,Fe,l),l!==u.cache&&Ki(t,[Fe],a,!0))),ut(e,t,t.pendingProps.children,a),t.child;case 29:throw t.pendingProps}throw Error(o(156,t.tag))}function ma(e){e.flags|=4}function Us(e,t,a,l,u){if((t=(e.mode&32)!==0)&&(t=!1),t){if(e.flags|=16777216,(u&335544128)===u)if(e.stateNode.complete)e.flags|=8192;else if(ah())e.flags|=8192;else throw dl=$u,$i}else e.flags&=-16777217}function Ad(e,t){if(t.type!=="stylesheet"||(t.state.loading&4)!==0)e.flags&=-16777217;else if(e.flags|=16777216,!Vh(t))if(ah())e.flags|=8192;else throw dl=$u,$i}function hr(e,t){t!==null&&(e.flags|=4),e.flags&16384&&(t=e.tag!==22?sc():536870912,e.lanes|=t,en|=t)}function Zn(e,t){if(!Ne)switch(e.tailMode){case"hidden":t=e.tail;for(var a=null;t!==null;)t.alternate!==null&&(a=t),t=t.sibling;a===null?e.tail=null:a.sibling=null;break;case"collapsed":a=e.tail;for(var l=null;a!==null;)a.alternate!==null&&(l=a),a=a.sibling;l===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:l.sibling=null}}function He(e){var t=e.alternate!==null&&e.alternate.child===e.child,a=0,l=0;if(t)for(var u=e.child;u!==null;)a|=u.lanes|u.childLanes,l|=u.subtreeFlags&65011712,l|=u.flags&65011712,u.return=e,u=u.sibling;else for(u=e.child;u!==null;)a|=u.lanes|u.childLanes,l|=u.subtreeFlags,l|=u.flags,u.return=e,u=u.sibling;return e.subtreeFlags|=l,e.childLanes=a,t}function sp(e,t,a){var l=t.pendingProps;switch(Li(t),t.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return He(t),null;case 1:return He(t),null;case 3:return a=t.stateNode,l=null,e!==null&&(l=e.memoizedState.cache),t.memoizedState.cache!==l&&(t.flags|=2048),ca(Fe),Be(),a.pendingContext&&(a.context=a.pendingContext,a.pendingContext=null),(e===null||e.child===null)&&(Ll(t)?ma(t):e===null||e.memoizedState.isDehydrated&&(t.flags&256)===0||(t.flags|=1024,Yi())),He(t),null;case 26:var u=t.type,i=t.memoizedState;return e===null?(ma(t),i!==null?(He(t),Ad(t,i)):(He(t),Us(t,u,null,l,a))):i?i!==e.memoizedState?(ma(t),He(t),Ad(t,i)):(He(t),t.flags&=-16777217):(e=e.memoizedProps,e!==l&&ma(t),He(t),Us(t,u,e,l,a)),null;case 27:if(Wa(t),a=se.current,u=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==l&&ma(t);else{if(!l){if(t.stateNode===null)throw Error(o(166));return He(t),null}e=Y.current,Ll(t)?of(t):(e=Qh(u,l,a),t.stateNode=e,ma(t))}return He(t),null;case 5:if(Wa(t),u=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==l&&ma(t);else{if(!l){if(t.stateNode===null)throw Error(o(166));return He(t),null}if(i=Y.current,Ll(t))of(t);else{var d=Tr(se.current);switch(i){case 1:i=d.createElementNS("http://www.w3.org/2000/svg",u);break;case 2:i=d.createElementNS("http://www.w3.org/1998/Math/MathML",u);break;default:switch(u){case"svg":i=d.createElementNS("http://www.w3.org/2000/svg",u);break;case"math":i=d.createElementNS("http://www.w3.org/1998/Math/MathML",u);break;case"script":i=d.createElement("div"),i.innerHTML="<script><\/script>",i=i.removeChild(i.firstChild);break;case"select":i=typeof l.is=="string"?d.createElement("select",{is:l.is}):d.createElement("select"),l.multiple?i.multiple=!0:l.size&&(i.size=l.size);break;default:i=typeof l.is=="string"?d.createElement(u,{is:l.is}):d.createElement(u)}}i[at]=t,i[ht]=l;e:for(d=t.child;d!==null;){if(d.tag===5||d.tag===6)i.appendChild(d.stateNode);else if(d.tag!==4&&d.tag!==27&&d.child!==null){d.child.return=d,d=d.child;continue}if(d===t)break e;for(;d.sibling===null;){if(d.return===null||d.return===t)break e;d=d.return}d.sibling.return=d.return,d=d.sibling}t.stateNode=i;e:switch(rt(i,u,l),u){case"button":case"input":case"select":case"textarea":l=!!l.autoFocus;break e;case"img":l=!0;break e;default:l=!1}l&&ma(t)}}return He(t),Us(t,t.type,e===null?null:e.memoizedProps,t.pendingProps,a),null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==l&&ma(t);else{if(typeof l!="string"&&t.stateNode===null)throw Error(o(166));if(e=se.current,Ll(t)){if(e=t.stateNode,a=t.memoizedProps,l=null,u=lt,u!==null)switch(u.tag){case 27:case 5:l=u.memoizedProps}e[at]=t,e=!!(e.nodeValue===a||l!==null&&l.suppressHydrationWarning===!0||Ch(e.nodeValue,a)),e||Ma(t,!0)}else e=Tr(e).createTextNode(l),e[at]=t,t.stateNode=e}return He(t),null;case 31:if(a=t.memoizedState,e===null||e.memoizedState!==null){if(l=Ll(t),a!==null){if(e===null){if(!l)throw Error(o(318));if(e=t.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(o(557));e[at]=t}else il(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;He(t),e=!1}else a=Yi(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=a),e=!0;if(!e)return t.flags&256?(Et(t),t):(Et(t),null);if((t.flags&128)!==0)throw Error(o(558))}return He(t),null;case 13:if(l=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(u=Ll(t),l!==null&&l.dehydrated!==null){if(e===null){if(!u)throw Error(o(318));if(u=t.memoizedState,u=u!==null?u.dehydrated:null,!u)throw Error(o(317));u[at]=t}else il(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;He(t),u=!1}else u=Yi(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=u),u=!0;if(!u)return t.flags&256?(Et(t),t):(Et(t),null)}return Et(t),(t.flags&128)!==0?(t.lanes=a,t):(a=l!==null,e=e!==null&&e.memoizedState!==null,a&&(l=t.child,u=null,l.alternate!==null&&l.alternate.memoizedState!==null&&l.alternate.memoizedState.cachePool!==null&&(u=l.alternate.memoizedState.cachePool.pool),i=null,l.memoizedState!==null&&l.memoizedState.cachePool!==null&&(i=l.memoizedState.cachePool.pool),i!==u&&(l.flags|=2048)),a!==e&&a&&(t.child.flags|=8192),hr(t,t.updateQueue),He(t),null);case 4:return Be(),e===null&&to(t.stateNode.containerInfo),He(t),null;case 10:return ca(t.type),He(t),null;case 19:if(U(Ve),l=t.memoizedState,l===null)return He(t),null;if(u=(t.flags&128)!==0,i=l.rendering,i===null)if(u)Zn(l,!1);else{if(Ye!==0||e!==null&&(e.flags&128)!==0)for(e=t.child;e!==null;){if(i=er(e),i!==null){for(t.flags|=128,Zn(l,!1),e=i.updateQueue,t.updateQueue=e,hr(t,e),t.subtreeFlags=0,e=a,a=t.child;a!==null;)lf(a,e),a=a.sibling;return B(Ve,Ve.current&1|2),Ne&&sa(t,l.treeForkCount),t.child}e=e.sibling}l.tail!==null&&ze()>gr&&(t.flags|=128,u=!0,Zn(l,!1),t.lanes=4194304)}else{if(!u)if(e=er(i),e!==null){if(t.flags|=128,u=!0,e=e.updateQueue,t.updateQueue=e,hr(t,e),Zn(l,!0),l.tail===null&&l.tailMode==="hidden"&&!i.alternate&&!Ne)return He(t),null}else 2*ze()-l.renderingStartTime>gr&&a!==536870912&&(t.flags|=128,u=!0,Zn(l,!1),t.lanes=4194304);l.isBackwards?(i.sibling=t.child,t.child=i):(e=l.last,e!==null?e.sibling=i:t.child=i,l.last=i)}return l.tail!==null?(e=l.tail,l.rendering=e,l.tail=e.sibling,l.renderingStartTime=ze(),e.sibling=null,a=Ve.current,B(Ve,u?a&1|2:a&1),Ne&&sa(t,l.treeForkCount),e):(He(t),null);case 22:case 23:return Et(t),as(),l=t.memoizedState!==null,e!==null?e.memoizedState!==null!==l&&(t.flags|=8192):l&&(t.flags|=8192),l?(a&536870912)!==0&&(t.flags&128)===0&&(He(t),t.subtreeFlags&6&&(t.flags|=8192)):He(t),a=t.updateQueue,a!==null&&hr(t,a.retryQueue),a=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(a=e.memoizedState.cachePool.pool),l=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(l=t.memoizedState.cachePool.pool),l!==a&&(t.flags|=2048),e!==null&&U(cl),null;case 24:return a=null,e!==null&&(a=e.memoizedState.cache),t.memoizedState.cache!==a&&(t.flags|=2048),ca(Fe),He(t),null;case 25:return null;case 30:return null}throw Error(o(156,t.tag))}function op(e,t){switch(Li(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return ca(Fe),Be(),e=t.flags,(e&65536)!==0&&(e&128)===0?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return Wa(t),null;case 31:if(t.memoizedState!==null){if(Et(t),t.alternate===null)throw Error(o(340));il()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 13:if(Et(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(o(340));il()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return U(Ve),null;case 4:return Be(),null;case 10:return ca(t.type),null;case 22:case 23:return Et(t),as(),e!==null&&U(cl),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return ca(Fe),null;case 25:return null;default:return null}}function zd(e,t){switch(Li(t),t.tag){case 3:ca(Fe),Be();break;case 26:case 27:case 5:Wa(t);break;case 4:Be();break;case 31:t.memoizedState!==null&&Et(t);break;case 13:Et(t);break;case 19:U(Ve);break;case 10:ca(t.type);break;case 22:case 23:Et(t),as(),e!==null&&U(cl);break;case 24:ca(Fe)}}function Jn(e,t){try{var a=t.updateQueue,l=a!==null?a.lastEffect:null;if(l!==null){var u=l.next;a=u;do{if((a.tag&e)===e){l=void 0;var i=a.create,d=a.inst;l=i(),d.destroy=l}a=a.next}while(a!==u)}}catch(g){Ue(t,t.return,g)}}function wa(e,t,a){try{var l=t.updateQueue,u=l!==null?l.lastEffect:null;if(u!==null){var i=u.next;l=i;do{if((l.tag&e)===e){var d=l.inst,g=d.destroy;if(g!==void 0){d.destroy=void 0,u=t;var b=a,T=g;try{T()}catch(q){Ue(u,b,q)}}}l=l.next}while(l!==i)}}catch(q){Ue(t,t.return,q)}}function Dd(e){var t=e.updateQueue;if(t!==null){var a=e.stateNode;try{jf(t,a)}catch(l){Ue(e,e.return,l)}}}function Ud(e,t,a){a.props=vl(e.type,e.memoizedProps),a.state=e.memoizedState;try{a.componentWillUnmount()}catch(l){Ue(e,t,l)}}function Fn(e,t){try{var a=e.ref;if(a!==null){switch(e.tag){case 26:case 27:case 5:var l=e.stateNode;break;case 30:l=e.stateNode;break;default:l=e.stateNode}typeof a=="function"?e.refCleanup=a(l):a.current=l}}catch(u){Ue(e,t,u)}}function ea(e,t){var a=e.ref,l=e.refCleanup;if(a!==null)if(typeof l=="function")try{l()}catch(u){Ue(e,t,u)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof a=="function")try{a(null)}catch(u){Ue(e,t,u)}else a.current=null}function Rd(e){var t=e.type,a=e.memoizedProps,l=e.stateNode;try{e:switch(t){case"button":case"input":case"select":case"textarea":a.autoFocus&&l.focus();break e;case"img":a.src?l.src=a.src:a.srcSet&&(l.srcset=a.srcSet)}}catch(u){Ue(e,e.return,u)}}function Rs(e,t,a){try{var l=e.stateNode;zp(l,e.type,a,t),l[ht]=t}catch(u){Ue(e,e.return,u)}}function qd(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&Ya(e.type)||e.tag===4}function qs(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||qd(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.tag===27&&Ya(e.type)||e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function ws(e,t,a){var l=e.tag;if(l===5||l===6)e=e.stateNode,t?(a.nodeType===9?a.body:a.nodeName==="HTML"?a.ownerDocument.body:a).insertBefore(e,t):(t=a.nodeType===9?a.body:a.nodeName==="HTML"?a.ownerDocument.body:a,t.appendChild(e),a=a._reactRootContainer,a!=null||t.onclick!==null||(t.onclick=ua));else if(l!==4&&(l===27&&Ya(e.type)&&(a=e.stateNode,t=null),e=e.child,e!==null))for(ws(e,t,a),e=e.sibling;e!==null;)ws(e,t,a),e=e.sibling}function mr(e,t,a){var l=e.tag;if(l===5||l===6)e=e.stateNode,t?a.insertBefore(e,t):a.appendChild(e);else if(l!==4&&(l===27&&Ya(e.type)&&(a=e.stateNode),e=e.child,e!==null))for(mr(e,t,a),e=e.sibling;e!==null;)mr(e,t,a),e=e.sibling}function wd(e){var t=e.stateNode,a=e.memoizedProps;try{for(var l=e.type,u=t.attributes;u.length;)t.removeAttributeNode(u[0]);rt(t,l,a),t[at]=e,t[ht]=a}catch(i){Ue(e,e.return,i)}}var va=!1,We=!1,Qs=!1,Qd=typeof WeakSet=="function"?WeakSet:Set,tt=null;function cp(e,t){if(e=e.containerInfo,no=qr,e=Jc(e),Ai(e)){if("selectionStart"in e)var a={start:e.selectionStart,end:e.selectionEnd};else e:{a=(a=e.ownerDocument)&&a.defaultView||window;var l=a.getSelection&&a.getSelection();if(l&&l.rangeCount!==0){a=l.anchorNode;var u=l.anchorOffset,i=l.focusNode;l=l.focusOffset;try{a.nodeType,i.nodeType}catch{a=null;break e}var d=0,g=-1,b=-1,T=0,q=0,k=e,A=null;t:for(;;){for(var z;k!==a||u!==0&&k.nodeType!==3||(g=d+u),k!==i||l!==0&&k.nodeType!==3||(b=d+l),k.nodeType===3&&(d+=k.nodeValue.length),(z=k.firstChild)!==null;)A=k,k=z;for(;;){if(k===e)break t;if(A===a&&++T===u&&(g=d),A===i&&++q===l&&(b=d),(z=k.nextSibling)!==null)break;k=A,A=k.parentNode}k=z}a=g===-1||b===-1?null:{start:g,end:b}}else a=null}a=a||{start:0,end:0}}else a=null;for(uo={focusedElem:e,selectionRange:a},qr=!1,tt=t;tt!==null;)if(t=tt,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,tt=e;else for(;tt!==null;){switch(t=tt,i=t.alternate,e=t.flags,t.tag){case 0:if((e&4)!==0&&(e=t.updateQueue,e=e!==null?e.events:null,e!==null))for(a=0;a<e.length;a++)u=e[a],u.ref.impl=u.nextImpl;break;case 11:case 15:break;case 1:if((e&1024)!==0&&i!==null){e=void 0,a=t,u=i.memoizedProps,i=i.memoizedState,l=a.stateNode;try{var P=vl(a.type,u);e=l.getSnapshotBeforeUpdate(P,i),l.__reactInternalSnapshotBeforeUpdate=e}catch(ie){Ue(a,a.return,ie)}}break;case 3:if((e&1024)!==0){if(e=t.stateNode.containerInfo,a=e.nodeType,a===9)so(e);else if(a===1)switch(e.nodeName){case"HEAD":case"HTML":case"BODY":so(e);break;default:e.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((e&1024)!==0)throw Error(o(163))}if(e=t.sibling,e!==null){e.return=t.return,tt=e;break}tt=t.return}}function kd(e,t,a){var l=a.flags;switch(a.tag){case 0:case 11:case 15:pa(e,a),l&4&&Jn(5,a);break;case 1:if(pa(e,a),l&4)if(e=a.stateNode,t===null)try{e.componentDidMount()}catch(d){Ue(a,a.return,d)}else{var u=vl(a.type,t.memoizedProps);t=t.memoizedState;try{e.componentDidUpdate(u,t,e.__reactInternalSnapshotBeforeUpdate)}catch(d){Ue(a,a.return,d)}}l&64&&Dd(a),l&512&&Fn(a,a.return);break;case 3:if(pa(e,a),l&64&&(e=a.updateQueue,e!==null)){if(t=null,a.child!==null)switch(a.child.tag){case 27:case 5:t=a.child.stateNode;break;case 1:t=a.child.stateNode}try{jf(e,t)}catch(d){Ue(a,a.return,d)}}break;case 27:t===null&&l&4&&wd(a);case 26:case 5:pa(e,a),t===null&&l&4&&Rd(a),l&512&&Fn(a,a.return);break;case 12:pa(e,a);break;case 31:pa(e,a),l&4&&Ld(e,a);break;case 13:pa(e,a),l&4&&Gd(e,a),l&64&&(e=a.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(a=bp.bind(null,a),Hp(e,a))));break;case 22:if(l=a.memoizedState!==null||va,!l){t=t!==null&&t.memoizedState!==null||We,u=va;var i=We;va=l,(We=t)&&!i?ga(e,a,(a.subtreeFlags&8772)!==0):pa(e,a),va=u,We=i}break;case 30:break;default:pa(e,a)}}function Hd(e){var t=e.alternate;t!==null&&(e.alternate=null,Hd(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&hi(t)),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}var Le=null,vt=!1;function ya(e,t,a){for(a=a.child;a!==null;)Bd(e,t,a),a=a.sibling}function Bd(e,t,a){if(jt&&typeof jt.onCommitFiberUnmount=="function")try{jt.onCommitFiberUnmount(bn,a)}catch{}switch(a.tag){case 26:We||ea(a,t),ya(e,t,a),a.memoizedState?a.memoizedState.count--:a.stateNode&&(a=a.stateNode,a.parentNode.removeChild(a));break;case 27:We||ea(a,t);var l=Le,u=vt;Ya(a.type)&&(Le=a.stateNode,vt=!1),ya(e,t,a),nu(a.stateNode),Le=l,vt=u;break;case 5:We||ea(a,t);case 6:if(l=Le,u=vt,Le=null,ya(e,t,a),Le=l,vt=u,Le!==null)if(vt)try{(Le.nodeType===9?Le.body:Le.nodeName==="HTML"?Le.ownerDocument.body:Le).removeChild(a.stateNode)}catch(i){Ue(a,t,i)}else try{Le.removeChild(a.stateNode)}catch(i){Ue(a,t,i)}break;case 18:Le!==null&&(vt?(e=Le,Dh(e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e,a.stateNode),on(e)):Dh(Le,a.stateNode));break;case 4:l=Le,u=vt,Le=a.stateNode.containerInfo,vt=!0,ya(e,t,a),Le=l,vt=u;break;case 0:case 11:case 14:case 15:wa(2,a,t),We||wa(4,a,t),ya(e,t,a);break;case 1:We||(ea(a,t),l=a.stateNode,typeof l.componentWillUnmount=="function"&&Ud(a,t,l)),ya(e,t,a);break;case 21:ya(e,t,a);break;case 22:We=(l=We)||a.memoizedState!==null,ya(e,t,a),We=l;break;default:ya(e,t,a)}}function Ld(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null))){e=e.dehydrated;try{on(e)}catch(a){Ue(t,t.return,a)}}}function Gd(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{on(e)}catch(a){Ue(t,t.return,a)}}function fp(e){switch(e.tag){case 31:case 13:case 19:var t=e.stateNode;return t===null&&(t=e.stateNode=new Qd),t;case 22:return e=e.stateNode,t=e._retryCache,t===null&&(t=e._retryCache=new Qd),t;default:throw Error(o(435,e.tag))}}function vr(e,t){var a=fp(e);t.forEach(function(l){if(!a.has(l)){a.add(l);var u=xp.bind(null,e,l);l.then(u,u)}})}function yt(e,t){var a=t.deletions;if(a!==null)for(var l=0;l<a.length;l++){var u=a[l],i=e,d=t,g=d;e:for(;g!==null;){switch(g.tag){case 27:if(Ya(g.type)){Le=g.stateNode,vt=!1;break e}break;case 5:Le=g.stateNode,vt=!1;break e;case 3:case 4:Le=g.stateNode.containerInfo,vt=!0;break e}g=g.return}if(Le===null)throw Error(o(160));Bd(i,d,u),Le=null,vt=!1,i=u.alternate,i!==null&&(i.return=null),u.return=null}if(t.subtreeFlags&13886)for(t=t.child;t!==null;)Yd(t,e),t=t.sibling}var Xt=null;function Yd(e,t){var a=e.alternate,l=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:yt(t,e),pt(e),l&4&&(wa(3,e,e.return),Jn(3,e),wa(5,e,e.return));break;case 1:yt(t,e),pt(e),l&512&&(We||a===null||ea(a,a.return)),l&64&&va&&(e=e.updateQueue,e!==null&&(l=e.callbacks,l!==null&&(a=e.shared.hiddenCallbacks,e.shared.hiddenCallbacks=a===null?l:a.concat(l))));break;case 26:var u=Xt;if(yt(t,e),pt(e),l&512&&(We||a===null||ea(a,a.return)),l&4){var i=a!==null?a.memoizedState:null;if(l=e.memoizedState,a===null)if(l===null)if(e.stateNode===null){e:{l=e.type,a=e.memoizedProps,u=u.ownerDocument||u;t:switch(l){case"title":i=u.getElementsByTagName("title")[0],(!i||i[jn]||i[at]||i.namespaceURI==="http://www.w3.org/2000/svg"||i.hasAttribute("itemprop"))&&(i=u.createElement(l),u.head.insertBefore(i,u.querySelector("head > title"))),rt(i,l,a),i[at]=e,et(i),l=i;break e;case"link":var d=Yh("link","href",u).get(l+(a.href||""));if(d){for(var g=0;g<d.length;g++)if(i=d[g],i.getAttribute("href")===(a.href==null||a.href===""?null:a.href)&&i.getAttribute("rel")===(a.rel==null?null:a.rel)&&i.getAttribute("title")===(a.title==null?null:a.title)&&i.getAttribute("crossorigin")===(a.crossOrigin==null?null:a.crossOrigin)){d.splice(g,1);break t}}i=u.createElement(l),rt(i,l,a),u.head.appendChild(i);break;case"meta":if(d=Yh("meta","content",u).get(l+(a.content||""))){for(g=0;g<d.length;g++)if(i=d[g],i.getAttribute("content")===(a.content==null?null:""+a.content)&&i.getAttribute("name")===(a.name==null?null:a.name)&&i.getAttribute("property")===(a.property==null?null:a.property)&&i.getAttribute("http-equiv")===(a.httpEquiv==null?null:a.httpEquiv)&&i.getAttribute("charset")===(a.charSet==null?null:a.charSet)){d.splice(g,1);break t}}i=u.createElement(l),rt(i,l,a),u.head.appendChild(i);break;default:throw Error(o(468,l))}i[at]=e,et(i),l=i}e.stateNode=l}else Xh(u,e.type,e.stateNode);else e.stateNode=Gh(u,l,e.memoizedProps);else i!==l?(i===null?a.stateNode!==null&&(a=a.stateNode,a.parentNode.removeChild(a)):i.count--,l===null?Xh(u,e.type,e.stateNode):Gh(u,l,e.memoizedProps)):l===null&&e.stateNode!==null&&Rs(e,e.memoizedProps,a.memoizedProps)}break;case 27:yt(t,e),pt(e),l&512&&(We||a===null||ea(a,a.return)),a!==null&&l&4&&Rs(e,e.memoizedProps,a.memoizedProps);break;case 5:if(yt(t,e),pt(e),l&512&&(We||a===null||ea(a,a.return)),e.flags&32){u=e.stateNode;try{zl(u,"")}catch(P){Ue(e,e.return,P)}}l&4&&e.stateNode!=null&&(u=e.memoizedProps,Rs(e,u,a!==null?a.memoizedProps:u)),l&1024&&(Qs=!0);break;case 6:if(yt(t,e),pt(e),l&4){if(e.stateNode===null)throw Error(o(162));l=e.memoizedProps,a=e.stateNode;try{a.nodeValue=l}catch(P){Ue(e,e.return,P)}}break;case 3:if(zr=null,u=Xt,Xt=Mr(t.containerInfo),yt(t,e),Xt=u,pt(e),l&4&&a!==null&&a.memoizedState.isDehydrated)try{on(t.containerInfo)}catch(P){Ue(e,e.return,P)}Qs&&(Qs=!1,Xd(e));break;case 4:l=Xt,Xt=Mr(e.stateNode.containerInfo),yt(t,e),pt(e),Xt=l;break;case 12:yt(t,e),pt(e);break;case 31:yt(t,e),pt(e),l&4&&(l=e.updateQueue,l!==null&&(e.updateQueue=null,vr(e,l)));break;case 13:yt(t,e),pt(e),e.child.flags&8192&&e.memoizedState!==null!=(a!==null&&a.memoizedState!==null)&&(pr=ze()),l&4&&(l=e.updateQueue,l!==null&&(e.updateQueue=null,vr(e,l)));break;case 22:u=e.memoizedState!==null;var b=a!==null&&a.memoizedState!==null,T=va,q=We;if(va=T||u,We=q||b,yt(t,e),We=q,va=T,pt(e),l&8192)e:for(t=e.stateNode,t._visibility=u?t._visibility&-2:t._visibility|1,u&&(a===null||b||va||We||yl(e)),a=null,t=e;;){if(t.tag===5||t.tag===26){if(a===null){b=a=t;try{if(i=b.stateNode,u)d=i.style,typeof d.setProperty=="function"?d.setProperty("display","none","important"):d.display="none";else{g=b.stateNode;var k=b.memoizedProps.style,A=k!=null&&k.hasOwnProperty("display")?k.display:null;g.style.display=A==null||typeof A=="boolean"?"":(""+A).trim()}}catch(P){Ue(b,b.return,P)}}}else if(t.tag===6){if(a===null){b=t;try{b.stateNode.nodeValue=u?"":b.memoizedProps}catch(P){Ue(b,b.return,P)}}}else if(t.tag===18){if(a===null){b=t;try{var z=b.stateNode;u?Uh(z,!0):Uh(b.stateNode,!1)}catch(P){Ue(b,b.return,P)}}}else if((t.tag!==22&&t.tag!==23||t.memoizedState===null||t===e)&&t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break e;for(;t.sibling===null;){if(t.return===null||t.return===e)break e;a===t&&(a=null),t=t.return}a===t&&(a=null),t.sibling.return=t.return,t=t.sibling}l&4&&(l=e.updateQueue,l!==null&&(a=l.retryQueue,a!==null&&(l.retryQueue=null,vr(e,a))));break;case 19:yt(t,e),pt(e),l&4&&(l=e.updateQueue,l!==null&&(e.updateQueue=null,vr(e,l)));break;case 30:break;case 21:break;default:yt(t,e),pt(e)}}function pt(e){var t=e.flags;if(t&2){try{for(var a,l=e.return;l!==null;){if(qd(l)){a=l;break}l=l.return}if(a==null)throw Error(o(160));switch(a.tag){case 27:var u=a.stateNode,i=qs(e);mr(e,i,u);break;case 5:var d=a.stateNode;a.flags&32&&(zl(d,""),a.flags&=-33);var g=qs(e);mr(e,g,d);break;case 3:case 4:var b=a.stateNode.containerInfo,T=qs(e);ws(e,T,b);break;default:throw Error(o(161))}}catch(q){Ue(e,e.return,q)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function Xd(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var t=e;Xd(t),t.tag===5&&t.flags&1024&&t.stateNode.reset(),e=e.sibling}}function pa(e,t){if(t.subtreeFlags&8772)for(t=t.child;t!==null;)kd(e,t.alternate,t),t=t.sibling}function yl(e){for(e=e.child;e!==null;){var t=e;switch(t.tag){case 0:case 11:case 14:case 15:wa(4,t,t.return),yl(t);break;case 1:ea(t,t.return);var a=t.stateNode;typeof a.componentWillUnmount=="function"&&Ud(t,t.return,a),yl(t);break;case 27:nu(t.stateNode);case 26:case 5:ea(t,t.return),yl(t);break;case 22:t.memoizedState===null&&yl(t);break;case 30:yl(t);break;default:yl(t)}e=e.sibling}}function ga(e,t,a){for(a=a&&(t.subtreeFlags&8772)!==0,t=t.child;t!==null;){var l=t.alternate,u=e,i=t,d=i.flags;switch(i.tag){case 0:case 11:case 15:ga(u,i,a),Jn(4,i);break;case 1:if(ga(u,i,a),l=i,u=l.stateNode,typeof u.componentDidMount=="function")try{u.componentDidMount()}catch(T){Ue(l,l.return,T)}if(l=i,u=l.updateQueue,u!==null){var g=l.stateNode;try{var b=u.shared.hiddenCallbacks;if(b!==null)for(u.shared.hiddenCallbacks=null,u=0;u<b.length;u++)Sf(b[u],g)}catch(T){Ue(l,l.return,T)}}a&&d&64&&Dd(i),Fn(i,i.return);break;case 27:wd(i);case 26:case 5:ga(u,i,a),a&&l===null&&d&4&&Rd(i),Fn(i,i.return);break;case 12:ga(u,i,a);break;case 31:ga(u,i,a),a&&d&4&&Ld(u,i);break;case 13:ga(u,i,a),a&&d&4&&Gd(u,i);break;case 22:i.memoizedState===null&&ga(u,i,a),Fn(i,i.return);break;case 30:break;default:ga(u,i,a)}t=t.sibling}}function ks(e,t){var a=null;e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(a=e.memoizedState.cachePool.pool),e=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(e=t.memoizedState.cachePool.pool),e!==a&&(e!=null&&e.refCount++,a!=null&&qn(a))}function Hs(e,t){e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&qn(e))}function Vt(e,t,a,l){if(t.subtreeFlags&10256)for(t=t.child;t!==null;)Vd(e,t,a,l),t=t.sibling}function Vd(e,t,a,l){var u=t.flags;switch(t.tag){case 0:case 11:case 15:Vt(e,t,a,l),u&2048&&Jn(9,t);break;case 1:Vt(e,t,a,l);break;case 3:Vt(e,t,a,l),u&2048&&(e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&qn(e)));break;case 12:if(u&2048){Vt(e,t,a,l),e=t.stateNode;try{var i=t.memoizedProps,d=i.id,g=i.onPostCommit;typeof g=="function"&&g(d,t.alternate===null?"mount":"update",e.passiveEffectDuration,-0)}catch(b){Ue(t,t.return,b)}}else Vt(e,t,a,l);break;case 31:Vt(e,t,a,l);break;case 13:Vt(e,t,a,l);break;case 23:break;case 22:i=t.stateNode,d=t.alternate,t.memoizedState!==null?i._visibility&2?Vt(e,t,a,l):$n(e,t):i._visibility&2?Vt(e,t,a,l):(i._visibility|=2,Pl(e,t,a,l,(t.subtreeFlags&10256)!==0||!1)),u&2048&&ks(d,t);break;case 24:Vt(e,t,a,l),u&2048&&Hs(t.alternate,t);break;default:Vt(e,t,a,l)}}function Pl(e,t,a,l,u){for(u=u&&((t.subtreeFlags&10256)!==0||!1),t=t.child;t!==null;){var i=e,d=t,g=a,b=l,T=d.flags;switch(d.tag){case 0:case 11:case 15:Pl(i,d,g,b,u),Jn(8,d);break;case 23:break;case 22:var q=d.stateNode;d.memoizedState!==null?q._visibility&2?Pl(i,d,g,b,u):$n(i,d):(q._visibility|=2,Pl(i,d,g,b,u)),u&&T&2048&&ks(d.alternate,d);break;case 24:Pl(i,d,g,b,u),u&&T&2048&&Hs(d.alternate,d);break;default:Pl(i,d,g,b,u)}t=t.sibling}}function $n(e,t){if(t.subtreeFlags&10256)for(t=t.child;t!==null;){var a=e,l=t,u=l.flags;switch(l.tag){case 22:$n(a,l),u&2048&&ks(l.alternate,l);break;case 24:$n(a,l),u&2048&&Hs(l.alternate,l);break;default:$n(a,l)}t=t.sibling}}var Pn=8192;function Wl(e,t,a){if(e.subtreeFlags&Pn)for(e=e.child;e!==null;)Kd(e,t,a),e=e.sibling}function Kd(e,t,a){switch(e.tag){case 26:Wl(e,t,a),e.flags&Pn&&e.memoizedState!==null&&Pp(a,Xt,e.memoizedState,e.memoizedProps);break;case 5:Wl(e,t,a);break;case 3:case 4:var l=Xt;Xt=Mr(e.stateNode.containerInfo),Wl(e,t,a),Xt=l;break;case 22:e.memoizedState===null&&(l=e.alternate,l!==null&&l.memoizedState!==null?(l=Pn,Pn=16777216,Wl(e,t,a),Pn=l):Wl(e,t,a));break;default:Wl(e,t,a)}}function Zd(e){var t=e.alternate;if(t!==null&&(e=t.child,e!==null)){t.child=null;do t=e.sibling,e.sibling=null,e=t;while(e!==null)}}function Wn(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var a=0;a<t.length;a++){var l=t[a];tt=l,Fd(l,e)}Zd(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)Jd(e),e=e.sibling}function Jd(e){switch(e.tag){case 0:case 11:case 15:Wn(e),e.flags&2048&&wa(9,e,e.return);break;case 3:Wn(e);break;case 12:Wn(e);break;case 22:var t=e.stateNode;e.memoizedState!==null&&t._visibility&2&&(e.return===null||e.return.tag!==13)?(t._visibility&=-3,yr(e)):Wn(e);break;default:Wn(e)}}function yr(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var a=0;a<t.length;a++){var l=t[a];tt=l,Fd(l,e)}Zd(e)}for(e=e.child;e!==null;){switch(t=e,t.tag){case 0:case 11:case 15:wa(8,t,t.return),yr(t);break;case 22:a=t.stateNode,a._visibility&2&&(a._visibility&=-3,yr(t));break;default:yr(t)}e=e.sibling}}function Fd(e,t){for(;tt!==null;){var a=tt;switch(a.tag){case 0:case 11:case 15:wa(8,a,t);break;case 23:case 22:if(a.memoizedState!==null&&a.memoizedState.cachePool!==null){var l=a.memoizedState.cachePool.pool;l!=null&&l.refCount++}break;case 24:qn(a.memoizedState.cache)}if(l=a.child,l!==null)l.return=a,tt=l;else e:for(a=e;tt!==null;){l=tt;var u=l.sibling,i=l.return;if(Hd(l),l===a){tt=null;break e}if(u!==null){u.return=i,tt=u;break e}tt=i}}}var dp={getCacheForType:function(e){var t=nt(Fe),a=t.data.get(e);return a===void 0&&(a=e(),t.data.set(e,a)),a},cacheSignal:function(){return nt(Fe).controller.signal}},hp=typeof WeakMap=="function"?WeakMap:Map,Ae=0,Qe=null,Se=null,Oe=0,De=0,Tt=null,Qa=!1,Il=!1,Bs=!1,ba=0,Ye=0,ka=0,pl=0,Ls=0,Mt=0,en=0,In=null,gt=null,Gs=!1,pr=0,$d=0,gr=1/0,br=null,Ha=null,Ie=0,Ba=null,tn=null,xa=0,Ys=0,Xs=null,Pd=null,eu=0,Vs=null;function At(){return(Ae&2)!==0&&Oe!==0?Oe&-Oe:M.T!==null?Ps():dc()}function Wd(){if(Mt===0)if((Oe&536870912)===0||Ne){var e=Eu;Eu<<=1,(Eu&3932160)===0&&(Eu=262144),Mt=e}else Mt=536870912;return e=Ct.current,e!==null&&(e.flags|=32),Mt}function bt(e,t,a){(e===Qe&&(De===2||De===9)||e.cancelPendingCommit!==null)&&(an(e,0),La(e,Oe,Mt,!1)),Sn(e,a),((Ae&2)===0||e!==Qe)&&(e===Qe&&((Ae&2)===0&&(pl|=a),Ye===4&&La(e,Oe,Mt,!1)),ta(e))}function Id(e,t,a){if((Ae&6)!==0)throw Error(o(327));var l=!a&&(t&127)===0&&(t&e.expiredLanes)===0||xn(e,t),u=l?yp(e,t):Zs(e,t,!0),i=l;do{if(u===0){Il&&!l&&La(e,t,0,!1);break}else{if(a=e.current.alternate,i&&!mp(a)){u=Zs(e,t,!1),i=!1;continue}if(u===2){if(i=t,e.errorRecoveryDisabledLanes&i)var d=0;else d=e.pendingLanes&-536870913,d=d!==0?d:d&536870912?536870912:0;if(d!==0){t=d;e:{var g=e;u=In;var b=g.current.memoizedState.isDehydrated;if(b&&(an(g,d).flags|=256),d=Zs(g,d,!1),d!==2){if(Bs&&!b){g.errorRecoveryDisabledLanes|=i,pl|=i,u=4;break e}i=gt,gt=u,i!==null&&(gt===null?gt=i:gt.push.apply(gt,i))}u=d}if(i=!1,u!==2)continue}}if(u===1){an(e,0),La(e,t,0,!0);break}e:{switch(l=e,i=u,i){case 0:case 1:throw Error(o(345));case 4:if((t&4194048)!==t)break;case 6:La(l,t,Mt,!Qa);break e;case 2:gt=null;break;case 3:case 5:break;default:throw Error(o(329))}if((t&62914560)===t&&(u=pr+300-ze(),10<u)){if(La(l,t,Mt,!Qa),Mu(l,0,!0)!==0)break e;xa=t,l.timeoutHandle=Ah(eh.bind(null,l,a,gt,br,Gs,t,Mt,pl,en,Qa,i,"Throttled",-0,0),u);break e}eh(l,a,gt,br,Gs,t,Mt,pl,en,Qa,i,null,-0,0)}}break}while(!0);ta(e)}function eh(e,t,a,l,u,i,d,g,b,T,q,k,A,z){if(e.timeoutHandle=-1,k=t.subtreeFlags,k&8192||(k&16785408)===16785408){k={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:ua},Kd(t,i,k);var P=(i&62914560)===i?pr-ze():(i&4194048)===i?$d-ze():0;if(P=Wp(k,P),P!==null){xa=i,e.cancelPendingCommit=P(sh.bind(null,e,t,i,a,l,u,d,g,b,q,k,null,A,z)),La(e,i,d,!T);return}}sh(e,t,i,a,l,u,d,g,b)}function mp(e){for(var t=e;;){var a=t.tag;if((a===0||a===11||a===15)&&t.flags&16384&&(a=t.updateQueue,a!==null&&(a=a.stores,a!==null)))for(var l=0;l<a.length;l++){var u=a[l],i=u.getSnapshot;u=u.value;try{if(!_t(i(),u))return!1}catch{return!1}}if(a=t.child,t.subtreeFlags&16384&&a!==null)a.return=t,t=a;else{if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function La(e,t,a,l){t&=~Ls,t&=~pl,e.suspendedLanes|=t,e.pingedLanes&=~t,l&&(e.warmLanes|=t),l=e.expirationTimes;for(var u=t;0<u;){var i=31-Ot(u),d=1<<i;l[i]=-1,u&=~d}a!==0&&oc(e,a,t)}function xr(){return(Ae&6)===0?(tu(0),!1):!0}function Ks(){if(Se!==null){if(De===0)var e=Se.return;else e=Se,oa=sl=null,ss(e),Kl=null,Qn=0,e=Se;for(;e!==null;)zd(e.alternate,e),e=e.return;Se=null}}function an(e,t){var a=e.timeoutHandle;a!==-1&&(e.timeoutHandle=-1,Rp(a)),a=e.cancelPendingCommit,a!==null&&(e.cancelPendingCommit=null,a()),xa=0,Ks(),Qe=e,Se=a=ia(e.current,null),Oe=t,De=0,Tt=null,Qa=!1,Il=xn(e,t),Bs=!1,en=Mt=Ls=pl=ka=Ye=0,gt=In=null,Gs=!1,(t&8)!==0&&(t|=t&32);var l=e.entangledLanes;if(l!==0)for(e=e.entanglements,l&=t;0<l;){var u=31-Ot(l),i=1<<u;t|=e[u],l&=~i}return ba=t,Lu(),a}function th(e,t){ve=null,M.H=Vn,t===Vl||t===Fu?(t=pf(),De=3):t===$i?(t=pf(),De=4):De=t===_s?8:t!==null&&typeof t=="object"&&typeof t.then=="function"?6:1,Tt=t,Se===null&&(Ye=1,or(e,qt(t,e.current)))}function ah(){var e=Ct.current;return e===null?!0:(Oe&4194048)===Oe?Ht===null:(Oe&62914560)===Oe||(Oe&536870912)!==0?e===Ht:!1}function lh(){var e=M.H;return M.H=Vn,e===null?Vn:e}function nh(){var e=M.A;return M.A=dp,e}function Sr(){Ye=4,Qa||(Oe&4194048)!==Oe&&Ct.current!==null||(Il=!0),(ka&134217727)===0&&(pl&134217727)===0||Qe===null||La(Qe,Oe,Mt,!1)}function Zs(e,t,a){var l=Ae;Ae|=2;var u=lh(),i=nh();(Qe!==e||Oe!==t)&&(br=null,an(e,t)),t=!1;var d=Ye;e:do try{if(De!==0&&Se!==null){var g=Se,b=Tt;switch(De){case 8:Ks(),d=6;break e;case 3:case 2:case 9:case 6:Ct.current===null&&(t=!0);var T=De;if(De=0,Tt=null,ln(e,g,b,T),a&&Il){d=0;break e}break;default:T=De,De=0,Tt=null,ln(e,g,b,T)}}vp(),d=Ye;break}catch(q){th(e,q)}while(!0);return t&&e.shellSuspendCounter++,oa=sl=null,Ae=l,M.H=u,M.A=i,Se===null&&(Qe=null,Oe=0,Lu()),d}function vp(){for(;Se!==null;)uh(Se)}function yp(e,t){var a=Ae;Ae|=2;var l=lh(),u=nh();Qe!==e||Oe!==t?(br=null,gr=ze()+500,an(e,t)):Il=xn(e,t);e:do try{if(De!==0&&Se!==null){t=Se;var i=Tt;t:switch(De){case 1:De=0,Tt=null,ln(e,t,i,1);break;case 2:case 9:if(vf(i)){De=0,Tt=null,rh(t);break}t=function(){De!==2&&De!==9||Qe!==e||(De=7),ta(e)},i.then(t,t);break e;case 3:De=7;break e;case 4:De=5;break e;case 7:vf(i)?(De=0,Tt=null,rh(t)):(De=0,Tt=null,ln(e,t,i,7));break;case 5:var d=null;switch(Se.tag){case 26:d=Se.memoizedState;case 5:case 27:var g=Se;if(d?Vh(d):g.stateNode.complete){De=0,Tt=null;var b=g.sibling;if(b!==null)Se=b;else{var T=g.return;T!==null?(Se=T,jr(T)):Se=null}break t}}De=0,Tt=null,ln(e,t,i,5);break;case 6:De=0,Tt=null,ln(e,t,i,6);break;case 8:Ks(),Ye=6;break e;default:throw Error(o(462))}}pp();break}catch(q){th(e,q)}while(!0);return oa=sl=null,M.H=l,M.A=u,Ae=a,Se!==null?0:(Qe=null,Oe=0,Lu(),Ye)}function pp(){for(;Se!==null&&!_u();)uh(Se)}function uh(e){var t=Md(e.alternate,e,ba);e.memoizedProps=e.pendingProps,t===null?jr(e):Se=t}function rh(e){var t=e,a=t.alternate;switch(t.tag){case 15:case 0:t=Od(a,t,t.pendingProps,t.type,void 0,Oe);break;case 11:t=Od(a,t,t.pendingProps,t.type.render,t.ref,Oe);break;case 5:ss(t);default:zd(a,t),t=Se=lf(t,ba),t=Md(a,t,ba)}e.memoizedProps=e.pendingProps,t===null?jr(e):Se=t}function ln(e,t,a,l){oa=sl=null,ss(t),Kl=null,Qn=0;var u=t.return;try{if(up(e,u,t,a,Oe)){Ye=1,or(e,qt(a,e.current)),Se=null;return}}catch(i){if(u!==null)throw Se=u,i;Ye=1,or(e,qt(a,e.current)),Se=null;return}t.flags&32768?(Ne||l===1?e=!0:Il||(Oe&536870912)!==0?e=!1:(Qa=e=!0,(l===2||l===9||l===3||l===6)&&(l=Ct.current,l!==null&&l.tag===13&&(l.flags|=16384))),ih(t,e)):jr(t)}function jr(e){var t=e;do{if((t.flags&32768)!==0){ih(t,Qa);return}e=t.return;var a=sp(t.alternate,t,ba);if(a!==null){Se=a;return}if(t=t.sibling,t!==null){Se=t;return}Se=t=e}while(t!==null);Ye===0&&(Ye=5)}function ih(e,t){do{var a=op(e.alternate,e);if(a!==null){a.flags&=32767,Se=a;return}if(a=e.return,a!==null&&(a.flags|=32768,a.subtreeFlags=0,a.deletions=null),!t&&(e=e.sibling,e!==null)){Se=e;return}Se=e=a}while(e!==null);Ye=6,Se=null}function sh(e,t,a,l,u,i,d,g,b){e.cancelPendingCommit=null;do Or();while(Ie!==0);if((Ae&6)!==0)throw Error(o(327));if(t!==null){if(t===e.current)throw Error(o(177));if(i=t.lanes|t.childLanes,i|=qi,$v(e,a,i,d,g,b),e===Qe&&(Se=Qe=null,Oe=0),tn=t,Ba=e,xa=a,Ys=i,Xs=u,Pd=l,(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?(e.callbackNode=null,e.callbackPriority=0,Sp(ot,function(){return hh(),null})):(e.callbackNode=null,e.callbackPriority=0),l=(t.flags&13878)!==0,(t.subtreeFlags&13878)!==0||l){l=M.T,M.T=null,u=H.p,H.p=2,d=Ae,Ae|=4;try{cp(e,t,a)}finally{Ae=d,H.p=u,M.T=l}}Ie=1,oh(),ch(),fh()}}function oh(){if(Ie===1){Ie=0;var e=Ba,t=tn,a=(t.flags&13878)!==0;if((t.subtreeFlags&13878)!==0||a){a=M.T,M.T=null;var l=H.p;H.p=2;var u=Ae;Ae|=4;try{Yd(t,e);var i=uo,d=Jc(e.containerInfo),g=i.focusedElem,b=i.selectionRange;if(d!==g&&g&&g.ownerDocument&&Zc(g.ownerDocument.documentElement,g)){if(b!==null&&Ai(g)){var T=b.start,q=b.end;if(q===void 0&&(q=T),"selectionStart"in g)g.selectionStart=T,g.selectionEnd=Math.min(q,g.value.length);else{var k=g.ownerDocument||document,A=k&&k.defaultView||window;if(A.getSelection){var z=A.getSelection(),P=g.textContent.length,ie=Math.min(b.start,P),we=b.end===void 0?ie:Math.min(b.end,P);!z.extend&&ie>we&&(d=we,we=ie,ie=d);var N=Kc(g,ie),j=Kc(g,we);if(N&&j&&(z.rangeCount!==1||z.anchorNode!==N.node||z.anchorOffset!==N.offset||z.focusNode!==j.node||z.focusOffset!==j.offset)){var E=k.createRange();E.setStart(N.node,N.offset),z.removeAllRanges(),ie>we?(z.addRange(E),z.extend(j.node,j.offset)):(E.setEnd(j.node,j.offset),z.addRange(E))}}}}for(k=[],z=g;z=z.parentNode;)z.nodeType===1&&k.push({element:z,left:z.scrollLeft,top:z.scrollTop});for(typeof g.focus=="function"&&g.focus(),g=0;g<k.length;g++){var Q=k[g];Q.element.scrollLeft=Q.left,Q.element.scrollTop=Q.top}}qr=!!no,uo=no=null}finally{Ae=u,H.p=l,M.T=a}}e.current=t,Ie=2}}function ch(){if(Ie===2){Ie=0;var e=Ba,t=tn,a=(t.flags&8772)!==0;if((t.subtreeFlags&8772)!==0||a){a=M.T,M.T=null;var l=H.p;H.p=2;var u=Ae;Ae|=4;try{kd(e,t.alternate,t)}finally{Ae=u,H.p=l,M.T=a}}Ie=3}}function fh(){if(Ie===4||Ie===3){Ie=0,Z();var e=Ba,t=tn,a=xa,l=Pd;(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?Ie=5:(Ie=0,tn=Ba=null,dh(e,e.pendingLanes));var u=e.pendingLanes;if(u===0&&(Ha=null),fi(a),t=t.stateNode,jt&&typeof jt.onCommitFiberRoot=="function")try{jt.onCommitFiberRoot(bn,t,void 0,(t.current.flags&128)===128)}catch{}if(l!==null){t=M.T,u=H.p,H.p=2,M.T=null;try{for(var i=e.onRecoverableError,d=0;d<l.length;d++){var g=l[d];i(g.value,{componentStack:g.stack})}}finally{M.T=t,H.p=u}}(xa&3)!==0&&Or(),ta(e),u=e.pendingLanes,(a&261930)!==0&&(u&42)!==0?e===Vs?eu++:(eu=0,Vs=e):eu=0,tu(0)}}function dh(e,t){(e.pooledCacheLanes&=t)===0&&(t=e.pooledCache,t!=null&&(e.pooledCache=null,qn(t)))}function Or(){return oh(),ch(),fh(),hh()}function hh(){if(Ie!==5)return!1;var e=Ba,t=Ys;Ys=0;var a=fi(xa),l=M.T,u=H.p;try{H.p=32>a?32:a,M.T=null,a=Xs,Xs=null;var i=Ba,d=xa;if(Ie=0,tn=Ba=null,xa=0,(Ae&6)!==0)throw Error(o(331));var g=Ae;if(Ae|=4,Jd(i.current),Vd(i,i.current,d,a),Ae=g,tu(0,!1),jt&&typeof jt.onPostCommitFiberRoot=="function")try{jt.onPostCommitFiberRoot(bn,i)}catch{}return!0}finally{H.p=u,M.T=l,dh(e,t)}}function mh(e,t,a){t=qt(a,t),t=Os(e.stateNode,t,2),e=Ua(e,t,2),e!==null&&(Sn(e,2),ta(e))}function Ue(e,t,a){if(e.tag===3)mh(e,e,a);else for(;t!==null;){if(t.tag===3){mh(t,e,a);break}else if(t.tag===1){var l=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof l.componentDidCatch=="function"&&(Ha===null||!Ha.has(l))){e=qt(a,e),a=vd(2),l=Ua(t,a,2),l!==null&&(yd(a,l,t,e),Sn(l,2),ta(l));break}}t=t.return}}function Js(e,t,a){var l=e.pingCache;if(l===null){l=e.pingCache=new hp;var u=new Set;l.set(t,u)}else u=l.get(t),u===void 0&&(u=new Set,l.set(t,u));u.has(a)||(Bs=!0,u.add(a),e=gp.bind(null,e,t,a),t.then(e,e))}function gp(e,t,a){var l=e.pingCache;l!==null&&l.delete(t),e.pingedLanes|=e.suspendedLanes&a,e.warmLanes&=~a,Qe===e&&(Oe&a)===a&&(Ye===4||Ye===3&&(Oe&62914560)===Oe&&300>ze()-pr?(Ae&2)===0&&an(e,0):Ls|=a,en===Oe&&(en=0)),ta(e)}function vh(e,t){t===0&&(t=sc()),e=ul(e,t),e!==null&&(Sn(e,t),ta(e))}function bp(e){var t=e.memoizedState,a=0;t!==null&&(a=t.retryLane),vh(e,a)}function xp(e,t){var a=0;switch(e.tag){case 31:case 13:var l=e.stateNode,u=e.memoizedState;u!==null&&(a=u.retryLane);break;case 19:l=e.stateNode;break;case 22:l=e.stateNode._retryCache;break;default:throw Error(o(314))}l!==null&&l.delete(t),vh(e,a)}function Sp(e,t){return yn(e,t)}var _r=null,nn=null,Fs=!1,Nr=!1,$s=!1,Ga=0;function ta(e){e!==nn&&e.next===null&&(nn===null?_r=nn=e:nn=nn.next=e),Nr=!0,Fs||(Fs=!0,Op())}function tu(e,t){if(!$s&&Nr){$s=!0;do for(var a=!1,l=_r;l!==null;){if(e!==0){var u=l.pendingLanes;if(u===0)var i=0;else{var d=l.suspendedLanes,g=l.pingedLanes;i=(1<<31-Ot(42|e)+1)-1,i&=u&~(d&~g),i=i&201326741?i&201326741|1:i?i|2:0}i!==0&&(a=!0,bh(l,i))}else i=Oe,i=Mu(l,l===Qe?i:0,l.cancelPendingCommit!==null||l.timeoutHandle!==-1),(i&3)===0||xn(l,i)||(a=!0,bh(l,i));l=l.next}while(a);$s=!1}}function jp(){yh()}function yh(){Nr=Fs=!1;var e=0;Ga!==0&&Up()&&(e=Ga);for(var t=ze(),a=null,l=_r;l!==null;){var u=l.next,i=ph(l,t);i===0?(l.next=null,a===null?_r=u:a.next=u,u===null&&(nn=a)):(a=l,(e!==0||(i&3)!==0)&&(Nr=!0)),l=u}Ie!==0&&Ie!==5||tu(e),Ga!==0&&(Ga=0)}function ph(e,t){for(var a=e.suspendedLanes,l=e.pingedLanes,u=e.expirationTimes,i=e.pendingLanes&-62914561;0<i;){var d=31-Ot(i),g=1<<d,b=u[d];b===-1?((g&a)===0||(g&l)!==0)&&(u[d]=Fv(g,t)):b<=t&&(e.expiredLanes|=g),i&=~g}if(t=Qe,a=Oe,a=Mu(e,e===t?a:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),l=e.callbackNode,a===0||e===t&&(De===2||De===9)||e.cancelPendingCommit!==null)return l!==null&&l!==null&&pn(l),e.callbackNode=null,e.callbackPriority=0;if((a&3)===0||xn(e,a)){if(t=a&-a,t===e.callbackPriority)return t;switch(l!==null&&pn(l),fi(a)){case 2:case 8:a=Pt;break;case 32:a=ot;break;case 268435456:a=Nu;break;default:a=ot}return l=gh.bind(null,e),a=yn(a,l),e.callbackPriority=t,e.callbackNode=a,t}return l!==null&&l!==null&&pn(l),e.callbackPriority=2,e.callbackNode=null,2}function gh(e,t){if(Ie!==0&&Ie!==5)return e.callbackNode=null,e.callbackPriority=0,null;var a=e.callbackNode;if(Or()&&e.callbackNode!==a)return null;var l=Oe;return l=Mu(e,e===Qe?l:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),l===0?null:(Id(e,l,t),ph(e,ze()),e.callbackNode!=null&&e.callbackNode===a?gh.bind(null,e):null)}function bh(e,t){if(Or())return null;Id(e,t,!0)}function Op(){qp(function(){(Ae&6)!==0?yn(St,jp):yh()})}function Ps(){if(Ga===0){var e=Yl;e===0&&(e=Cu,Cu<<=1,(Cu&261888)===0&&(Cu=256)),Ga=e}return Ga}function xh(e){return e==null||typeof e=="symbol"||typeof e=="boolean"?null:typeof e=="function"?e:Uu(""+e)}function Sh(e,t){var a=t.ownerDocument.createElement("input");return a.name=t.name,a.value=t.value,e.id&&a.setAttribute("form",e.id),t.parentNode.insertBefore(a,t),e=new FormData(e),a.parentNode.removeChild(a),e}function _p(e,t,a,l,u){if(t==="submit"&&a&&a.stateNode===u){var i=xh((u[ht]||null).action),d=l.submitter;d&&(t=(t=d[ht]||null)?xh(t.formAction):d.getAttribute("formAction"),t!==null&&(i=t,d=null));var g=new Qu("action","action",null,l,u);e.push({event:g,listeners:[{instance:null,listener:function(){if(l.defaultPrevented){if(Ga!==0){var b=d?Sh(u,d):new FormData(u);ps(a,{pending:!0,data:b,method:u.method,action:i},null,b)}}else typeof i=="function"&&(g.preventDefault(),b=d?Sh(u,d):new FormData(u),ps(a,{pending:!0,data:b,method:u.method,action:i},i,b))},currentTarget:u}]})}}for(var Ws=0;Ws<Ri.length;Ws++){var Is=Ri[Ws],Np=Is.toLowerCase(),Cp=Is[0].toUpperCase()+Is.slice(1);Yt(Np,"on"+Cp)}Yt(Pc,"onAnimationEnd"),Yt(Wc,"onAnimationIteration"),Yt(Ic,"onAnimationStart"),Yt("dblclick","onDoubleClick"),Yt("focusin","onFocus"),Yt("focusout","onBlur"),Yt(Gy,"onTransitionRun"),Yt(Yy,"onTransitionStart"),Yt(Xy,"onTransitionCancel"),Yt(ef,"onTransitionEnd"),Ml("onMouseEnter",["mouseout","mouseover"]),Ml("onMouseLeave",["mouseout","mouseover"]),Ml("onPointerEnter",["pointerout","pointerover"]),Ml("onPointerLeave",["pointerout","pointerover"]),tl("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),tl("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),tl("onBeforeInput",["compositionend","keypress","textInput","paste"]),tl("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),tl("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),tl("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var au="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(" "),Ep=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(au));function jh(e,t){t=(t&4)!==0;for(var a=0;a<e.length;a++){var l=e[a],u=l.event;l=l.listeners;e:{var i=void 0;if(t)for(var d=l.length-1;0<=d;d--){var g=l[d],b=g.instance,T=g.currentTarget;if(g=g.listener,b!==i&&u.isPropagationStopped())break e;i=g,u.currentTarget=T;try{i(u)}catch(q){Bu(q)}u.currentTarget=null,i=b}else for(d=0;d<l.length;d++){if(g=l[d],b=g.instance,T=g.currentTarget,g=g.listener,b!==i&&u.isPropagationStopped())break e;i=g,u.currentTarget=T;try{i(u)}catch(q){Bu(q)}u.currentTarget=null,i=b}}}}function je(e,t){var a=t[di];a===void 0&&(a=t[di]=new Set);var l=e+"__bubble";a.has(l)||(Oh(t,e,2,!1),a.add(l))}function eo(e,t,a){var l=0;t&&(l|=4),Oh(a,e,l,t)}var Cr="_reactListening"+Math.random().toString(36).slice(2);function to(e){if(!e[Cr]){e[Cr]=!0,vc.forEach(function(a){a!=="selectionchange"&&(Ep.has(a)||eo(a,!1,e),eo(a,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[Cr]||(t[Cr]=!0,eo("selectionchange",!1,t))}}function Oh(e,t,a,l){switch(Wh(t)){case 2:var u=t0;break;case 8:u=a0;break;default:u=po}a=u.bind(null,t,a,e),u=void 0,!Si||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(u=!0),l?u!==void 0?e.addEventListener(t,a,{capture:!0,passive:u}):e.addEventListener(t,a,!0):u!==void 0?e.addEventListener(t,a,{passive:u}):e.addEventListener(t,a,!1)}function ao(e,t,a,l,u){var i=l;if((t&1)===0&&(t&2)===0&&l!==null)e:for(;;){if(l===null)return;var d=l.tag;if(d===3||d===4){var g=l.stateNode.containerInfo;if(g===u)break;if(d===4)for(d=l.return;d!==null;){var b=d.tag;if((b===3||b===4)&&d.stateNode.containerInfo===u)return;d=d.return}for(;g!==null;){if(d=Cl(g),d===null)return;if(b=d.tag,b===5||b===6||b===26||b===27){l=i=d;continue e}g=g.parentNode}}l=l.return}Ec(function(){var T=i,q=bi(a),k=[];e:{var A=tf.get(e);if(A!==void 0){var z=Qu,P=e;switch(e){case"keypress":if(qu(a)===0)break e;case"keydown":case"keyup":z=xy;break;case"focusin":P="focus",z=Ni;break;case"focusout":P="blur",z=Ni;break;case"beforeblur":case"afterblur":z=Ni;break;case"click":if(a.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":z=Ac;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":z=sy;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":z=Oy;break;case Pc:case Wc:case Ic:z=fy;break;case ef:z=Ny;break;case"scroll":case"scrollend":z=ry;break;case"wheel":z=Ey;break;case"copy":case"cut":case"paste":z=hy;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":z=Dc;break;case"toggle":case"beforetoggle":z=My}var ie=(t&4)!==0,we=!ie&&(e==="scroll"||e==="scrollend"),N=ie?A!==null?A+"Capture":null:A;ie=[];for(var j=T,E;j!==null;){var Q=j;if(E=Q.stateNode,Q=Q.tag,Q!==5&&Q!==26&&Q!==27||E===null||N===null||(Q=_n(j,N),Q!=null&&ie.push(lu(j,Q,E))),we)break;j=j.return}0<ie.length&&(A=new z(A,P,null,a,q),k.push({event:A,listeners:ie}))}}if((t&7)===0){e:{if(A=e==="mouseover"||e==="pointerover",z=e==="mouseout"||e==="pointerout",A&&a!==gi&&(P=a.relatedTarget||a.fromElement)&&(Cl(P)||P[Nl]))break e;if((z||A)&&(A=q.window===q?q:(A=q.ownerDocument)?A.defaultView||A.parentWindow:window,z?(P=a.relatedTarget||a.toElement,z=T,P=P?Cl(P):null,P!==null&&(we=h(P),ie=P.tag,P!==we||ie!==5&&ie!==27&&ie!==6)&&(P=null)):(z=null,P=T),z!==P)){if(ie=Ac,Q="onMouseLeave",N="onMouseEnter",j="mouse",(e==="pointerout"||e==="pointerover")&&(ie=Dc,Q="onPointerLeave",N="onPointerEnter",j="pointer"),we=z==null?A:On(z),E=P==null?A:On(P),A=new ie(Q,j+"leave",z,a,q),A.target=we,A.relatedTarget=E,Q=null,Cl(q)===T&&(ie=new ie(N,j+"enter",P,a,q),ie.target=E,ie.relatedTarget=we,Q=ie),we=Q,z&&P)t:{for(ie=Tp,N=z,j=P,E=0,Q=N;Q;Q=ie(Q))E++;Q=0;for(var ue=j;ue;ue=ie(ue))Q++;for(;0<E-Q;)N=ie(N),E--;for(;0<Q-E;)j=ie(j),Q--;for(;E--;){if(N===j||j!==null&&N===j.alternate){ie=N;break t}N=ie(N),j=ie(j)}ie=null}else ie=null;z!==null&&_h(k,A,z,ie,!1),P!==null&&we!==null&&_h(k,we,P,ie,!0)}}e:{if(A=T?On(T):window,z=A.nodeName&&A.nodeName.toLowerCase(),z==="select"||z==="input"&&A.type==="file")var Ee=Bc;else if(kc(A))if(Lc)Ee=Hy;else{Ee=Qy;var ae=wy}else z=A.nodeName,!z||z.toLowerCase()!=="input"||A.type!=="checkbox"&&A.type!=="radio"?T&&pi(T.elementType)&&(Ee=Bc):Ee=ky;if(Ee&&(Ee=Ee(e,T))){Hc(k,Ee,a,q);break e}ae&&ae(e,A,T),e==="focusout"&&T&&A.type==="number"&&T.memoizedProps.value!=null&&yi(A,"number",A.value)}switch(ae=T?On(T):window,e){case"focusin":(kc(ae)||ae.contentEditable==="true")&&(ql=ae,zi=T,Dn=null);break;case"focusout":Dn=zi=ql=null;break;case"mousedown":Di=!0;break;case"contextmenu":case"mouseup":case"dragend":Di=!1,Fc(k,a,q);break;case"selectionchange":if(Ly)break;case"keydown":case"keyup":Fc(k,a,q)}var pe;if(Ei)e:{switch(e){case"compositionstart":var _e="onCompositionStart";break e;case"compositionend":_e="onCompositionEnd";break e;case"compositionupdate":_e="onCompositionUpdate";break e}_e=void 0}else Rl?wc(e,a)&&(_e="onCompositionEnd"):e==="keydown"&&a.keyCode===229&&(_e="onCompositionStart");_e&&(Uc&&a.locale!=="ko"&&(Rl||_e!=="onCompositionStart"?_e==="onCompositionEnd"&&Rl&&(pe=Tc()):(Ca=q,ji="value"in Ca?Ca.value:Ca.textContent,Rl=!0)),ae=Er(T,_e),0<ae.length&&(_e=new zc(_e,e,null,a,q),k.push({event:_e,listeners:ae}),pe?_e.data=pe:(pe=Qc(a),pe!==null&&(_e.data=pe)))),(pe=zy?Dy(e,a):Uy(e,a))&&(_e=Er(T,"onBeforeInput"),0<_e.length&&(ae=new zc("onBeforeInput","beforeinput",null,a,q),k.push({event:ae,listeners:_e}),ae.data=pe)),_p(k,e,T,a,q)}jh(k,t)})}function lu(e,t,a){return{instance:e,listener:t,currentTarget:a}}function Er(e,t){for(var a=t+"Capture",l=[];e!==null;){var u=e,i=u.stateNode;if(u=u.tag,u!==5&&u!==26&&u!==27||i===null||(u=_n(e,a),u!=null&&l.unshift(lu(e,u,i)),u=_n(e,t),u!=null&&l.push(lu(e,u,i))),e.tag===3)return l;e=e.return}return[]}function Tp(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function _h(e,t,a,l,u){for(var i=t._reactName,d=[];a!==null&&a!==l;){var g=a,b=g.alternate,T=g.stateNode;if(g=g.tag,b!==null&&b===l)break;g!==5&&g!==26&&g!==27||T===null||(b=T,u?(T=_n(a,i),T!=null&&d.unshift(lu(a,T,b))):u||(T=_n(a,i),T!=null&&d.push(lu(a,T,b)))),a=a.return}d.length!==0&&e.push({event:t,listeners:d})}var Mp=/\r\n?/g,Ap=/\u0000|\uFFFD/g;function Nh(e){return(typeof e=="string"?e:""+e).replace(Mp,`
`).replace(Ap,"")}function Ch(e,t){return t=Nh(t),Nh(e)===t}function qe(e,t,a,l,u,i){switch(a){case"children":typeof l=="string"?t==="body"||t==="textarea"&&l===""||zl(e,l):(typeof l=="number"||typeof l=="bigint")&&t!=="body"&&zl(e,""+l);break;case"className":zu(e,"class",l);break;case"tabIndex":zu(e,"tabindex",l);break;case"dir":case"role":case"viewBox":case"width":case"height":zu(e,a,l);break;case"style":Nc(e,l,i);break;case"data":if(t!=="object"){zu(e,"data",l);break}case"src":case"href":if(l===""&&(t!=="a"||a!=="href")){e.removeAttribute(a);break}if(l==null||typeof l=="function"||typeof l=="symbol"||typeof l=="boolean"){e.removeAttribute(a);break}l=Uu(""+l),e.setAttribute(a,l);break;case"action":case"formAction":if(typeof l=="function"){e.setAttribute(a,"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 i=="function"&&(a==="formAction"?(t!=="input"&&qe(e,t,"name",u.name,u,null),qe(e,t,"formEncType",u.formEncType,u,null),qe(e,t,"formMethod",u.formMethod,u,null),qe(e,t,"formTarget",u.formTarget,u,null)):(qe(e,t,"encType",u.encType,u,null),qe(e,t,"method",u.method,u,null),qe(e,t,"target",u.target,u,null)));if(l==null||typeof l=="symbol"||typeof l=="boolean"){e.removeAttribute(a);break}l=Uu(""+l),e.setAttribute(a,l);break;case"onClick":l!=null&&(e.onclick=ua);break;case"onScroll":l!=null&&je("scroll",e);break;case"onScrollEnd":l!=null&&je("scrollend",e);break;case"dangerouslySetInnerHTML":if(l!=null){if(typeof l!="object"||!("__html"in l))throw Error(o(61));if(a=l.__html,a!=null){if(u.children!=null)throw Error(o(60));e.innerHTML=a}}break;case"multiple":e.multiple=l&&typeof l!="function"&&typeof l!="symbol";break;case"muted":e.muted=l&&typeof l!="function"&&typeof l!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(l==null||typeof l=="function"||typeof l=="boolean"||typeof l=="symbol"){e.removeAttribute("xlink:href");break}a=Uu(""+l),e.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",a);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":l!=null&&typeof l!="function"&&typeof l!="symbol"?e.setAttribute(a,""+l):e.removeAttribute(a);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":l&&typeof l!="function"&&typeof l!="symbol"?e.setAttribute(a,""):e.removeAttribute(a);break;case"capture":case"download":l===!0?e.setAttribute(a,""):l!==!1&&l!=null&&typeof l!="function"&&typeof l!="symbol"?e.setAttribute(a,l):e.removeAttribute(a);break;case"cols":case"rows":case"size":case"span":l!=null&&typeof l!="function"&&typeof l!="symbol"&&!isNaN(l)&&1<=l?e.setAttribute(a,l):e.removeAttribute(a);break;case"rowSpan":case"start":l==null||typeof l=="function"||typeof l=="symbol"||isNaN(l)?e.removeAttribute(a):e.setAttribute(a,l);break;case"popover":je("beforetoggle",e),je("toggle",e),Au(e,"popover",l);break;case"xlinkActuate":na(e,"http://www.w3.org/1999/xlink","xlink:actuate",l);break;case"xlinkArcrole":na(e,"http://www.w3.org/1999/xlink","xlink:arcrole",l);break;case"xlinkRole":na(e,"http://www.w3.org/1999/xlink","xlink:role",l);break;case"xlinkShow":na(e,"http://www.w3.org/1999/xlink","xlink:show",l);break;case"xlinkTitle":na(e,"http://www.w3.org/1999/xlink","xlink:title",l);break;case"xlinkType":na(e,"http://www.w3.org/1999/xlink","xlink:type",l);break;case"xmlBase":na(e,"http://www.w3.org/XML/1998/namespace","xml:base",l);break;case"xmlLang":na(e,"http://www.w3.org/XML/1998/namespace","xml:lang",l);break;case"xmlSpace":na(e,"http://www.w3.org/XML/1998/namespace","xml:space",l);break;case"is":Au(e,"is",l);break;case"innerText":case"textContent":break;default:(!(2<a.length)||a[0]!=="o"&&a[0]!=="O"||a[1]!=="n"&&a[1]!=="N")&&(a=ny.get(a)||a,Au(e,a,l))}}function lo(e,t,a,l,u,i){switch(a){case"style":Nc(e,l,i);break;case"dangerouslySetInnerHTML":if(l!=null){if(typeof l!="object"||!("__html"in l))throw Error(o(61));if(a=l.__html,a!=null){if(u.children!=null)throw Error(o(60));e.innerHTML=a}}break;case"children":typeof l=="string"?zl(e,l):(typeof l=="number"||typeof l=="bigint")&&zl(e,""+l);break;case"onScroll":l!=null&&je("scroll",e);break;case"onScrollEnd":l!=null&&je("scrollend",e);break;case"onClick":l!=null&&(e.onclick=ua);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!yc.hasOwnProperty(a))e:{if(a[0]==="o"&&a[1]==="n"&&(u=a.endsWith("Capture"),t=a.slice(2,u?a.length-7:void 0),i=e[ht]||null,i=i!=null?i[a]:null,typeof i=="function"&&e.removeEventListener(t,i,u),typeof l=="function")){typeof i!="function"&&i!==null&&(a in e?e[a]=null:e.hasAttribute(a)&&e.removeAttribute(a)),e.addEventListener(t,l,u);break e}a in e?e[a]=l:l===!0?e.setAttribute(a,""):Au(e,a,l)}}}function rt(e,t,a){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":je("error",e),je("load",e);var l=!1,u=!1,i;for(i in a)if(a.hasOwnProperty(i)){var d=a[i];if(d!=null)switch(i){case"src":l=!0;break;case"srcSet":u=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(o(137,t));default:qe(e,t,i,d,a,null)}}u&&qe(e,t,"srcSet",a.srcSet,a,null),l&&qe(e,t,"src",a.src,a,null);return;case"input":je("invalid",e);var g=i=d=u=null,b=null,T=null;for(l in a)if(a.hasOwnProperty(l)){var q=a[l];if(q!=null)switch(l){case"name":u=q;break;case"type":d=q;break;case"checked":b=q;break;case"defaultChecked":T=q;break;case"value":i=q;break;case"defaultValue":g=q;break;case"children":case"dangerouslySetInnerHTML":if(q!=null)throw Error(o(137,t));break;default:qe(e,t,l,q,a,null)}}Sc(e,i,g,b,T,d,u,!1);return;case"select":je("invalid",e),l=d=i=null;for(u in a)if(a.hasOwnProperty(u)&&(g=a[u],g!=null))switch(u){case"value":i=g;break;case"defaultValue":d=g;break;case"multiple":l=g;default:qe(e,t,u,g,a,null)}t=i,a=d,e.multiple=!!l,t!=null?Al(e,!!l,t,!1):a!=null&&Al(e,!!l,a,!0);return;case"textarea":je("invalid",e),i=u=l=null;for(d in a)if(a.hasOwnProperty(d)&&(g=a[d],g!=null))switch(d){case"value":l=g;break;case"defaultValue":u=g;break;case"children":i=g;break;case"dangerouslySetInnerHTML":if(g!=null)throw Error(o(91));break;default:qe(e,t,d,g,a,null)}Oc(e,l,u,i);return;case"option":for(b in a)if(a.hasOwnProperty(b)&&(l=a[b],l!=null))switch(b){case"selected":e.selected=l&&typeof l!="function"&&typeof l!="symbol";break;default:qe(e,t,b,l,a,null)}return;case"dialog":je("beforetoggle",e),je("toggle",e),je("cancel",e),je("close",e);break;case"iframe":case"object":je("load",e);break;case"video":case"audio":for(l=0;l<au.length;l++)je(au[l],e);break;case"image":je("error",e),je("load",e);break;case"details":je("toggle",e);break;case"embed":case"source":case"link":je("error",e),je("load",e);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(T in a)if(a.hasOwnProperty(T)&&(l=a[T],l!=null))switch(T){case"children":case"dangerouslySetInnerHTML":throw Error(o(137,t));default:qe(e,t,T,l,a,null)}return;default:if(pi(t)){for(q in a)a.hasOwnProperty(q)&&(l=a[q],l!==void 0&&lo(e,t,q,l,a,void 0));return}}for(g in a)a.hasOwnProperty(g)&&(l=a[g],l!=null&&qe(e,t,g,l,a,null))}function zp(e,t,a,l){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var u=null,i=null,d=null,g=null,b=null,T=null,q=null;for(z in a){var k=a[z];if(a.hasOwnProperty(z)&&k!=null)switch(z){case"checked":break;case"value":break;case"defaultValue":b=k;default:l.hasOwnProperty(z)||qe(e,t,z,null,l,k)}}for(var A in l){var z=l[A];if(k=a[A],l.hasOwnProperty(A)&&(z!=null||k!=null))switch(A){case"type":i=z;break;case"name":u=z;break;case"checked":T=z;break;case"defaultChecked":q=z;break;case"value":d=z;break;case"defaultValue":g=z;break;case"children":case"dangerouslySetInnerHTML":if(z!=null)throw Error(o(137,t));break;default:z!==k&&qe(e,t,A,z,l,k)}}vi(e,d,g,b,T,q,i,u);return;case"select":z=d=g=A=null;for(i in a)if(b=a[i],a.hasOwnProperty(i)&&b!=null)switch(i){case"value":break;case"multiple":z=b;default:l.hasOwnProperty(i)||qe(e,t,i,null,l,b)}for(u in l)if(i=l[u],b=a[u],l.hasOwnProperty(u)&&(i!=null||b!=null))switch(u){case"value":A=i;break;case"defaultValue":g=i;break;case"multiple":d=i;default:i!==b&&qe(e,t,u,i,l,b)}t=g,a=d,l=z,A!=null?Al(e,!!a,A,!1):!!l!=!!a&&(t!=null?Al(e,!!a,t,!0):Al(e,!!a,a?[]:"",!1));return;case"textarea":z=A=null;for(g in a)if(u=a[g],a.hasOwnProperty(g)&&u!=null&&!l.hasOwnProperty(g))switch(g){case"value":break;case"children":break;default:qe(e,t,g,null,l,u)}for(d in l)if(u=l[d],i=a[d],l.hasOwnProperty(d)&&(u!=null||i!=null))switch(d){case"value":A=u;break;case"defaultValue":z=u;break;case"children":break;case"dangerouslySetInnerHTML":if(u!=null)throw Error(o(91));break;default:u!==i&&qe(e,t,d,u,l,i)}jc(e,A,z);return;case"option":for(var P in a)if(A=a[P],a.hasOwnProperty(P)&&A!=null&&!l.hasOwnProperty(P))switch(P){case"selected":e.selected=!1;break;default:qe(e,t,P,null,l,A)}for(b in l)if(A=l[b],z=a[b],l.hasOwnProperty(b)&&A!==z&&(A!=null||z!=null))switch(b){case"selected":e.selected=A&&typeof A!="function"&&typeof A!="symbol";break;default:qe(e,t,b,A,l,z)}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 ie in a)A=a[ie],a.hasOwnProperty(ie)&&A!=null&&!l.hasOwnProperty(ie)&&qe(e,t,ie,null,l,A);for(T in l)if(A=l[T],z=a[T],l.hasOwnProperty(T)&&A!==z&&(A!=null||z!=null))switch(T){case"children":case"dangerouslySetInnerHTML":if(A!=null)throw Error(o(137,t));break;default:qe(e,t,T,A,l,z)}return;default:if(pi(t)){for(var we in a)A=a[we],a.hasOwnProperty(we)&&A!==void 0&&!l.hasOwnProperty(we)&&lo(e,t,we,void 0,l,A);for(q in l)A=l[q],z=a[q],!l.hasOwnProperty(q)||A===z||A===void 0&&z===void 0||lo(e,t,q,A,l,z);return}}for(var N in a)A=a[N],a.hasOwnProperty(N)&&A!=null&&!l.hasOwnProperty(N)&&qe(e,t,N,null,l,A);for(k in l)A=l[k],z=a[k],!l.hasOwnProperty(k)||A===z||A==null&&z==null||qe(e,t,k,A,l,z)}function Eh(e){switch(e){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function Dp(){if(typeof performance.getEntriesByType=="function"){for(var e=0,t=0,a=performance.getEntriesByType("resource"),l=0;l<a.length;l++){var u=a[l],i=u.transferSize,d=u.initiatorType,g=u.duration;if(i&&g&&Eh(d)){for(d=0,g=u.responseEnd,l+=1;l<a.length;l++){var b=a[l],T=b.startTime;if(T>g)break;var q=b.transferSize,k=b.initiatorType;q&&Eh(k)&&(b=b.responseEnd,d+=q*(b<g?1:(g-T)/(b-T)))}if(--l,t+=8*(i+d)/(u.duration/1e3),e++,10<e)break}}if(0<e)return t/e/1e6}return navigator.connection&&(e=navigator.connection.downlink,typeof e=="number")?e:5}var no=null,uo=null;function Tr(e){return e.nodeType===9?e:e.ownerDocument}function Th(e){switch(e){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function Mh(e,t){if(e===0)switch(t){case"svg":return 1;case"math":return 2;default:return 0}return e===1&&t==="foreignObject"?0:e}function ro(e,t){return e==="textarea"||e==="noscript"||typeof t.children=="string"||typeof t.children=="number"||typeof t.children=="bigint"||typeof t.dangerouslySetInnerHTML=="object"&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var io=null;function Up(){var e=window.event;return e&&e.type==="popstate"?e===io?!1:(io=e,!0):(io=null,!1)}var Ah=typeof setTimeout=="function"?setTimeout:void 0,Rp=typeof clearTimeout=="function"?clearTimeout:void 0,zh=typeof Promise=="function"?Promise:void 0,qp=typeof queueMicrotask=="function"?queueMicrotask:typeof zh<"u"?function(e){return zh.resolve(null).then(e).catch(wp)}:Ah;function wp(e){setTimeout(function(){throw e})}function Ya(e){return e==="head"}function Dh(e,t){var a=t,l=0;do{var u=a.nextSibling;if(e.removeChild(a),u&&u.nodeType===8)if(a=u.data,a==="/$"||a==="/&"){if(l===0){e.removeChild(u),on(t);return}l--}else if(a==="$"||a==="$?"||a==="$~"||a==="$!"||a==="&")l++;else if(a==="html")nu(e.ownerDocument.documentElement);else if(a==="head"){a=e.ownerDocument.head,nu(a);for(var i=a.firstChild;i;){var d=i.nextSibling,g=i.nodeName;i[jn]||g==="SCRIPT"||g==="STYLE"||g==="LINK"&&i.rel.toLowerCase()==="stylesheet"||a.removeChild(i),i=d}}else a==="body"&&nu(e.ownerDocument.body);a=u}while(a);on(t)}function Uh(e,t){var a=e;e=0;do{var l=a.nextSibling;if(a.nodeType===1?t?(a._stashedDisplay=a.style.display,a.style.display="none"):(a.style.display=a._stashedDisplay||"",a.getAttribute("style")===""&&a.removeAttribute("style")):a.nodeType===3&&(t?(a._stashedText=a.nodeValue,a.nodeValue=""):a.nodeValue=a._stashedText||""),l&&l.nodeType===8)if(a=l.data,a==="/$"){if(e===0)break;e--}else a!=="$"&&a!=="$?"&&a!=="$~"&&a!=="$!"||e++;a=l}while(a)}function so(e){var t=e.firstChild;for(t&&t.nodeType===10&&(t=t.nextSibling);t;){var a=t;switch(t=t.nextSibling,a.nodeName){case"HTML":case"HEAD":case"BODY":so(a),hi(a);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(a.rel.toLowerCase()==="stylesheet")continue}e.removeChild(a)}}function Qp(e,t,a,l){for(;e.nodeType===1;){var u=a;if(e.nodeName.toLowerCase()!==t.toLowerCase()){if(!l&&(e.nodeName!=="INPUT"||e.type!=="hidden"))break}else if(l){if(!e[jn])switch(t){case"meta":if(!e.hasAttribute("itemprop"))break;return e;case"link":if(i=e.getAttribute("rel"),i==="stylesheet"&&e.hasAttribute("data-precedence"))break;if(i!==u.rel||e.getAttribute("href")!==(u.href==null||u.href===""?null:u.href)||e.getAttribute("crossorigin")!==(u.crossOrigin==null?null:u.crossOrigin)||e.getAttribute("title")!==(u.title==null?null:u.title))break;return e;case"style":if(e.hasAttribute("data-precedence"))break;return e;case"script":if(i=e.getAttribute("src"),(i!==(u.src==null?null:u.src)||e.getAttribute("type")!==(u.type==null?null:u.type)||e.getAttribute("crossorigin")!==(u.crossOrigin==null?null:u.crossOrigin))&&i&&e.hasAttribute("async")&&!e.hasAttribute("itemprop"))break;return e;default:return e}}else if(t==="input"&&e.type==="hidden"){var i=u.name==null?null:""+u.name;if(u.type==="hidden"&&e.getAttribute("name")===i)return e}else return e;if(e=Bt(e.nextSibling),e===null)break}return null}function kp(e,t,a){if(t==="")return null;for(;e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!a||(e=Bt(e.nextSibling),e===null))return null;return e}function Rh(e,t){for(;e.nodeType!==8;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!t||(e=Bt(e.nextSibling),e===null))return null;return e}function oo(e){return e.data==="$?"||e.data==="$~"}function co(e){return e.data==="$!"||e.data==="$?"&&e.ownerDocument.readyState!=="loading"}function Hp(e,t){var a=e.ownerDocument;if(e.data==="$~")e._reactRetry=t;else if(e.data!=="$?"||a.readyState!=="loading")t();else{var l=function(){t(),a.removeEventListener("DOMContentLoaded",l)};a.addEventListener("DOMContentLoaded",l),e._reactRetry=l}}function Bt(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break;if(t===8){if(t=e.data,t==="$"||t==="$!"||t==="$?"||t==="$~"||t==="&"||t==="F!"||t==="F")break;if(t==="/$"||t==="/&")return null}}return e}var fo=null;function qh(e){e=e.nextSibling;for(var t=0;e;){if(e.nodeType===8){var a=e.data;if(a==="/$"||a==="/&"){if(t===0)return Bt(e.nextSibling);t--}else a!=="$"&&a!=="$!"&&a!=="$?"&&a!=="$~"&&a!=="&"||t++}e=e.nextSibling}return null}function wh(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var a=e.data;if(a==="$"||a==="$!"||a==="$?"||a==="$~"||a==="&"){if(t===0)return e;t--}else a!=="/$"&&a!=="/&"||t++}e=e.previousSibling}return null}function Qh(e,t,a){switch(t=Tr(a),e){case"html":if(e=t.documentElement,!e)throw Error(o(452));return e;case"head":if(e=t.head,!e)throw Error(o(453));return e;case"body":if(e=t.body,!e)throw Error(o(454));return e;default:throw Error(o(451))}}function nu(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);hi(e)}var Lt=new Map,kh=new Set;function Mr(e){return typeof e.getRootNode=="function"?e.getRootNode():e.nodeType===9?e:e.ownerDocument}var Sa=H.d;H.d={f:Bp,r:Lp,D:Gp,C:Yp,L:Xp,m:Vp,X:Zp,S:Kp,M:Jp};function Bp(){var e=Sa.f(),t=xr();return e||t}function Lp(e){var t=El(e);t!==null&&t.tag===5&&t.type==="form"?td(t):Sa.r(e)}var un=typeof document>"u"?null:document;function Hh(e,t,a){var l=un;if(l&&typeof t=="string"&&t){var u=Ut(t);u='link[rel="'+e+'"][href="'+u+'"]',typeof a=="string"&&(u+='[crossorigin="'+a+'"]'),kh.has(u)||(kh.add(u),e={rel:e,crossOrigin:a,href:t},l.querySelector(u)===null&&(t=l.createElement("link"),rt(t,"link",e),et(t),l.head.appendChild(t)))}}function Gp(e){Sa.D(e),Hh("dns-prefetch",e,null)}function Yp(e,t){Sa.C(e,t),Hh("preconnect",e,t)}function Xp(e,t,a){Sa.L(e,t,a);var l=un;if(l&&e&&t){var u='link[rel="preload"][as="'+Ut(t)+'"]';t==="image"&&a&&a.imageSrcSet?(u+='[imagesrcset="'+Ut(a.imageSrcSet)+'"]',typeof a.imageSizes=="string"&&(u+='[imagesizes="'+Ut(a.imageSizes)+'"]')):u+='[href="'+Ut(e)+'"]';var i=u;switch(t){case"style":i=rn(e);break;case"script":i=sn(e)}Lt.has(i)||(e=S({rel:"preload",href:t==="image"&&a&&a.imageSrcSet?void 0:e,as:t},a),Lt.set(i,e),l.querySelector(u)!==null||t==="style"&&l.querySelector(uu(i))||t==="script"&&l.querySelector(ru(i))||(t=l.createElement("link"),rt(t,"link",e),et(t),l.head.appendChild(t)))}}function Vp(e,t){Sa.m(e,t);var a=un;if(a&&e){var l=t&&typeof t.as=="string"?t.as:"script",u='link[rel="modulepreload"][as="'+Ut(l)+'"][href="'+Ut(e)+'"]',i=u;switch(l){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":i=sn(e)}if(!Lt.has(i)&&(e=S({rel:"modulepreload",href:e},t),Lt.set(i,e),a.querySelector(u)===null)){switch(l){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(a.querySelector(ru(i)))return}l=a.createElement("link"),rt(l,"link",e),et(l),a.head.appendChild(l)}}}function Kp(e,t,a){Sa.S(e,t,a);var l=un;if(l&&e){var u=Tl(l).hoistableStyles,i=rn(e);t=t||"default";var d=u.get(i);if(!d){var g={loading:0,preload:null};if(d=l.querySelector(uu(i)))g.loading=5;else{e=S({rel:"stylesheet",href:e,"data-precedence":t},a),(a=Lt.get(i))&&ho(e,a);var b=d=l.createElement("link");et(b),rt(b,"link",e),b._p=new Promise(function(T,q){b.onload=T,b.onerror=q}),b.addEventListener("load",function(){g.loading|=1}),b.addEventListener("error",function(){g.loading|=2}),g.loading|=4,Ar(d,t,l)}d={type:"stylesheet",instance:d,count:1,state:g},u.set(i,d)}}}function Zp(e,t){Sa.X(e,t);var a=un;if(a&&e){var l=Tl(a).hoistableScripts,u=sn(e),i=l.get(u);i||(i=a.querySelector(ru(u)),i||(e=S({src:e,async:!0},t),(t=Lt.get(u))&&mo(e,t),i=a.createElement("script"),et(i),rt(i,"link",e),a.head.appendChild(i)),i={type:"script",instance:i,count:1,state:null},l.set(u,i))}}function Jp(e,t){Sa.M(e,t);var a=un;if(a&&e){var l=Tl(a).hoistableScripts,u=sn(e),i=l.get(u);i||(i=a.querySelector(ru(u)),i||(e=S({src:e,async:!0,type:"module"},t),(t=Lt.get(u))&&mo(e,t),i=a.createElement("script"),et(i),rt(i,"link",e),a.head.appendChild(i)),i={type:"script",instance:i,count:1,state:null},l.set(u,i))}}function Bh(e,t,a,l){var u=(u=se.current)?Mr(u):null;if(!u)throw Error(o(446));switch(e){case"meta":case"title":return null;case"style":return typeof a.precedence=="string"&&typeof a.href=="string"?(t=rn(a.href),a=Tl(u).hoistableStyles,l=a.get(t),l||(l={type:"style",instance:null,count:0,state:null},a.set(t,l)),l):{type:"void",instance:null,count:0,state:null};case"link":if(a.rel==="stylesheet"&&typeof a.href=="string"&&typeof a.precedence=="string"){e=rn(a.href);var i=Tl(u).hoistableStyles,d=i.get(e);if(d||(u=u.ownerDocument||u,d={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},i.set(e,d),(i=u.querySelector(uu(e)))&&!i._p&&(d.instance=i,d.state.loading=5),Lt.has(e)||(a={rel:"preload",as:"style",href:a.href,crossOrigin:a.crossOrigin,integrity:a.integrity,media:a.media,hrefLang:a.hrefLang,referrerPolicy:a.referrerPolicy},Lt.set(e,a),i||Fp(u,e,a,d.state))),t&&l===null)throw Error(o(528,""));return d}if(t&&l!==null)throw Error(o(529,""));return null;case"script":return t=a.async,a=a.src,typeof a=="string"&&t&&typeof t!="function"&&typeof t!="symbol"?(t=sn(a),a=Tl(u).hoistableScripts,l=a.get(t),l||(l={type:"script",instance:null,count:0,state:null},a.set(t,l)),l):{type:"void",instance:null,count:0,state:null};default:throw Error(o(444,e))}}function rn(e){return'href="'+Ut(e)+'"'}function uu(e){return'link[rel="stylesheet"]['+e+"]"}function Lh(e){return S({},e,{"data-precedence":e.precedence,precedence:null})}function Fp(e,t,a,l){e.querySelector('link[rel="preload"][as="style"]['+t+"]")?l.loading=1:(t=e.createElement("link"),l.preload=t,t.addEventListener("load",function(){return l.loading|=1}),t.addEventListener("error",function(){return l.loading|=2}),rt(t,"link",a),et(t),e.head.appendChild(t))}function sn(e){return'[src="'+Ut(e)+'"]'}function ru(e){return"script[async]"+e}function Gh(e,t,a){if(t.count++,t.instance===null)switch(t.type){case"style":var l=e.querySelector('style[data-href~="'+Ut(a.href)+'"]');if(l)return t.instance=l,et(l),l;var u=S({},a,{"data-href":a.href,"data-precedence":a.precedence,href:null,precedence:null});return l=(e.ownerDocument||e).createElement("style"),et(l),rt(l,"style",u),Ar(l,a.precedence,e),t.instance=l;case"stylesheet":u=rn(a.href);var i=e.querySelector(uu(u));if(i)return t.state.loading|=4,t.instance=i,et(i),i;l=Lh(a),(u=Lt.get(u))&&ho(l,u),i=(e.ownerDocument||e).createElement("link"),et(i);var d=i;return d._p=new Promise(function(g,b){d.onload=g,d.onerror=b}),rt(i,"link",l),t.state.loading|=4,Ar(i,a.precedence,e),t.instance=i;case"script":return i=sn(a.src),(u=e.querySelector(ru(i)))?(t.instance=u,et(u),u):(l=a,(u=Lt.get(i))&&(l=S({},a),mo(l,u)),e=e.ownerDocument||e,u=e.createElement("script"),et(u),rt(u,"link",l),e.head.appendChild(u),t.instance=u);case"void":return null;default:throw Error(o(443,t.type))}else t.type==="stylesheet"&&(t.state.loading&4)===0&&(l=t.instance,t.state.loading|=4,Ar(l,a.precedence,e));return t.instance}function Ar(e,t,a){for(var l=a.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),u=l.length?l[l.length-1]:null,i=u,d=0;d<l.length;d++){var g=l[d];if(g.dataset.precedence===t)i=g;else if(i!==u)break}i?i.parentNode.insertBefore(e,i.nextSibling):(t=a.nodeType===9?a.head:a,t.insertBefore(e,t.firstChild))}function ho(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.title==null&&(e.title=t.title)}function mo(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.integrity==null&&(e.integrity=t.integrity)}var zr=null;function Yh(e,t,a){if(zr===null){var l=new Map,u=zr=new Map;u.set(a,l)}else u=zr,l=u.get(a),l||(l=new Map,u.set(a,l));if(l.has(e))return l;for(l.set(e,null),a=a.getElementsByTagName(e),u=0;u<a.length;u++){var i=a[u];if(!(i[jn]||i[at]||e==="link"&&i.getAttribute("rel")==="stylesheet")&&i.namespaceURI!=="http://www.w3.org/2000/svg"){var d=i.getAttribute(t)||"";d=e+d;var g=l.get(d);g?g.push(i):l.set(d,[i])}}return l}function Xh(e,t,a){e=e.ownerDocument||e,e.head.insertBefore(a,t==="title"?e.querySelector("head > title"):null)}function $p(e,t,a){if(a===1||t.itemProp!=null)return!1;switch(e){case"meta":case"title":return!0;case"style":if(typeof t.precedence!="string"||typeof t.href!="string"||t.href==="")break;return!0;case"link":if(typeof t.rel!="string"||typeof t.href!="string"||t.href===""||t.onLoad||t.onError)break;switch(t.rel){case"stylesheet":return e=t.disabled,typeof t.precedence=="string"&&e==null;default:return!0}case"script":if(t.async&&typeof t.async!="function"&&typeof t.async!="symbol"&&!t.onLoad&&!t.onError&&t.src&&typeof t.src=="string")return!0}return!1}function Vh(e){return!(e.type==="stylesheet"&&(e.state.loading&3)===0)}function Pp(e,t,a,l){if(a.type==="stylesheet"&&(typeof l.media!="string"||matchMedia(l.media).matches!==!1)&&(a.state.loading&4)===0){if(a.instance===null){var u=rn(l.href),i=t.querySelector(uu(u));if(i){t=i._p,t!==null&&typeof t=="object"&&typeof t.then=="function"&&(e.count++,e=Dr.bind(e),t.then(e,e)),a.state.loading|=4,a.instance=i,et(i);return}i=t.ownerDocument||t,l=Lh(l),(u=Lt.get(u))&&ho(l,u),i=i.createElement("link"),et(i);var d=i;d._p=new Promise(function(g,b){d.onload=g,d.onerror=b}),rt(i,"link",l),a.instance=i}e.stylesheets===null&&(e.stylesheets=new Map),e.stylesheets.set(a,t),(t=a.state.preload)&&(a.state.loading&3)===0&&(e.count++,a=Dr.bind(e),t.addEventListener("load",a),t.addEventListener("error",a))}}var vo=0;function Wp(e,t){return e.stylesheets&&e.count===0&&Rr(e,e.stylesheets),0<e.count||0<e.imgCount?function(a){var l=setTimeout(function(){if(e.stylesheets&&Rr(e,e.stylesheets),e.unsuspend){var i=e.unsuspend;e.unsuspend=null,i()}},6e4+t);0<e.imgBytes&&vo===0&&(vo=62500*Dp());var u=setTimeout(function(){if(e.waitingForImages=!1,e.count===0&&(e.stylesheets&&Rr(e,e.stylesheets),e.unsuspend)){var i=e.unsuspend;e.unsuspend=null,i()}},(e.imgBytes>vo?50:800)+t);return e.unsuspend=a,function(){e.unsuspend=null,clearTimeout(l),clearTimeout(u)}}:null}function Dr(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)Rr(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var Ur=null;function Rr(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,Ur=new Map,t.forEach(Ip,e),Ur=null,Dr.call(e))}function Ip(e,t){if(!(t.state.loading&4)){var a=Ur.get(e);if(a)var l=a.get(null);else{a=new Map,Ur.set(e,a);for(var u=e.querySelectorAll("link[data-precedence],style[data-precedence]"),i=0;i<u.length;i++){var d=u[i];(d.nodeName==="LINK"||d.getAttribute("media")!=="not all")&&(a.set(d.dataset.precedence,d),l=d)}l&&a.set(null,l)}u=t.instance,d=u.getAttribute("data-precedence"),i=a.get(d)||l,i===l&&a.set(null,u),a.set(d,u),this.count++,l=Dr.bind(this),u.addEventListener("load",l),u.addEventListener("error",l),i?i.parentNode.insertBefore(u,i.nextSibling):(e=e.nodeType===9?e.head:e,e.insertBefore(u,e.firstChild)),t.state.loading|=4}}var iu={$$typeof:oe,Provider:null,Consumer:null,_currentValue:K,_currentValue2:K,_threadCount:0};function e0(e,t,a,l,u,i,d,g,b){this.tag=1,this.containerInfo=e,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=oi(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=oi(0),this.hiddenUpdates=oi(null),this.identifierPrefix=l,this.onUncaughtError=u,this.onCaughtError=i,this.onRecoverableError=d,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=b,this.incompleteTransitions=new Map}function Kh(e,t,a,l,u,i,d,g,b,T,q,k){return e=new e0(e,t,a,d,b,T,q,k,g),t=1,i===!0&&(t|=24),i=Nt(3,null,null,t),e.current=i,i.stateNode=e,t=Zi(),t.refCount++,e.pooledCache=t,t.refCount++,i.memoizedState={element:l,isDehydrated:a,cache:t},Pi(i),e}function Zh(e){return e?(e=kl,e):kl}function Jh(e,t,a,l,u,i){u=Zh(u),l.context===null?l.context=u:l.pendingContext=u,l=Da(t),l.payload={element:a},i=i===void 0?null:i,i!==null&&(l.callback=i),a=Ua(e,l,t),a!==null&&(bt(a,e,t),Hn(a,e,t))}function Fh(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var a=e.retryLane;e.retryLane=a!==0&&a<t?a:t}}function yo(e,t){Fh(e,t),(e=e.alternate)&&Fh(e,t)}function $h(e){if(e.tag===13||e.tag===31){var t=ul(e,67108864);t!==null&&bt(t,e,67108864),yo(e,67108864)}}function Ph(e){if(e.tag===13||e.tag===31){var t=At();t=ci(t);var a=ul(e,t);a!==null&&bt(a,e,t),yo(e,t)}}var qr=!0;function t0(e,t,a,l){var u=M.T;M.T=null;var i=H.p;try{H.p=2,po(e,t,a,l)}finally{H.p=i,M.T=u}}function a0(e,t,a,l){var u=M.T;M.T=null;var i=H.p;try{H.p=8,po(e,t,a,l)}finally{H.p=i,M.T=u}}function po(e,t,a,l){if(qr){var u=go(l);if(u===null)ao(e,t,l,wr,a),Ih(e,l);else if(n0(u,e,t,a,l))l.stopPropagation();else if(Ih(e,l),t&4&&-1<l0.indexOf(e)){for(;u!==null;){var i=El(u);if(i!==null)switch(i.tag){case 3:if(i=i.stateNode,i.current.memoizedState.isDehydrated){var d=el(i.pendingLanes);if(d!==0){var g=i;for(g.pendingLanes|=2,g.entangledLanes|=2;d;){var b=1<<31-Ot(d);g.entanglements[1]|=b,d&=~b}ta(i),(Ae&6)===0&&(gr=ze()+500,tu(0))}}break;case 31:case 13:g=ul(i,2),g!==null&&bt(g,i,2),xr(),yo(i,2)}if(i=go(l),i===null&&ao(e,t,l,wr,a),i===u)break;u=i}u!==null&&l.stopPropagation()}else ao(e,t,l,null,a)}}function go(e){return e=bi(e),bo(e)}var wr=null;function bo(e){if(wr=null,e=Cl(e),e!==null){var t=h(e);if(t===null)e=null;else{var a=t.tag;if(a===13){if(e=m(t),e!==null)return e;e=null}else if(a===31){if(e=v(t),e!==null)return e;e=null}else if(a===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null)}}return wr=e,null}function Wh(e){switch(e){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(xt()){case St:return 2;case Pt:return 8;case ot:case gn:return 32;case Nu:return 268435456;default:return 32}default:return 32}}var xo=!1,Xa=null,Va=null,Ka=null,su=new Map,ou=new Map,Za=[],l0="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 Ih(e,t){switch(e){case"focusin":case"focusout":Xa=null;break;case"dragenter":case"dragleave":Va=null;break;case"mouseover":case"mouseout":Ka=null;break;case"pointerover":case"pointerout":su.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":ou.delete(t.pointerId)}}function cu(e,t,a,l,u,i){return e===null||e.nativeEvent!==i?(e={blockedOn:t,domEventName:a,eventSystemFlags:l,nativeEvent:i,targetContainers:[u]},t!==null&&(t=El(t),t!==null&&$h(t)),e):(e.eventSystemFlags|=l,t=e.targetContainers,u!==null&&t.indexOf(u)===-1&&t.push(u),e)}function n0(e,t,a,l,u){switch(t){case"focusin":return Xa=cu(Xa,e,t,a,l,u),!0;case"dragenter":return Va=cu(Va,e,t,a,l,u),!0;case"mouseover":return Ka=cu(Ka,e,t,a,l,u),!0;case"pointerover":var i=u.pointerId;return su.set(i,cu(su.get(i)||null,e,t,a,l,u)),!0;case"gotpointercapture":return i=u.pointerId,ou.set(i,cu(ou.get(i)||null,e,t,a,l,u)),!0}return!1}function em(e){var t=Cl(e.target);if(t!==null){var a=h(t);if(a!==null){if(t=a.tag,t===13){if(t=m(a),t!==null){e.blockedOn=t,hc(e.priority,function(){Ph(a)});return}}else if(t===31){if(t=v(a),t!==null){e.blockedOn=t,hc(e.priority,function(){Ph(a)});return}}else if(t===3&&a.stateNode.current.memoizedState.isDehydrated){e.blockedOn=a.tag===3?a.stateNode.containerInfo:null;return}}}e.blockedOn=null}function Qr(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var a=go(e.nativeEvent);if(a===null){a=e.nativeEvent;var l=new a.constructor(a.type,a);gi=l,a.target.dispatchEvent(l),gi=null}else return t=El(a),t!==null&&$h(t),e.blockedOn=a,!1;t.shift()}return!0}function tm(e,t,a){Qr(e)&&a.delete(t)}function u0(){xo=!1,Xa!==null&&Qr(Xa)&&(Xa=null),Va!==null&&Qr(Va)&&(Va=null),Ka!==null&&Qr(Ka)&&(Ka=null),su.forEach(tm),ou.forEach(tm)}function kr(e,t){e.blockedOn===t&&(e.blockedOn=null,xo||(xo=!0,n.unstable_scheduleCallback(n.unstable_NormalPriority,u0)))}var Hr=null;function am(e){Hr!==e&&(Hr=e,n.unstable_scheduleCallback(n.unstable_NormalPriority,function(){Hr===e&&(Hr=null);for(var t=0;t<e.length;t+=3){var a=e[t],l=e[t+1],u=e[t+2];if(typeof l!="function"){if(bo(l||a)===null)continue;break}var i=El(a);i!==null&&(e.splice(t,3),t-=3,ps(i,{pending:!0,data:u,method:a.method,action:l},l,u))}}))}function on(e){function t(b){return kr(b,e)}Xa!==null&&kr(Xa,e),Va!==null&&kr(Va,e),Ka!==null&&kr(Ka,e),su.forEach(t),ou.forEach(t);for(var a=0;a<Za.length;a++){var l=Za[a];l.blockedOn===e&&(l.blockedOn=null)}for(;0<Za.length&&(a=Za[0],a.blockedOn===null);)em(a),a.blockedOn===null&&Za.shift();if(a=(e.ownerDocument||e).$$reactFormReplay,a!=null)for(l=0;l<a.length;l+=3){var u=a[l],i=a[l+1],d=u[ht]||null;if(typeof i=="function")d||am(a);else if(d){var g=null;if(i&&i.hasAttribute("formAction")){if(u=i,d=i[ht]||null)g=d.formAction;else if(bo(u)!==null)continue}else g=d.action;typeof g=="function"?a[l+1]=g:(a.splice(l,3),l-=3),am(a)}}}function lm(){function e(i){i.canIntercept&&i.info==="react-transition"&&i.intercept({handler:function(){return new Promise(function(d){return u=d})},focusReset:"manual",scroll:"manual"})}function t(){u!==null&&(u(),u=null),l||setTimeout(a,20)}function a(){if(!l&&!navigation.transition){var i=navigation.currentEntry;i&&i.url!=null&&navigation.navigate(i.url,{state:i.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var l=!1,u=null;return navigation.addEventListener("navigate",e),navigation.addEventListener("navigatesuccess",t),navigation.addEventListener("navigateerror",t),setTimeout(a,100),function(){l=!0,navigation.removeEventListener("navigate",e),navigation.removeEventListener("navigatesuccess",t),navigation.removeEventListener("navigateerror",t),u!==null&&(u(),u=null)}}}function So(e){this._internalRoot=e}Br.prototype.render=So.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(o(409));var a=t.current,l=At();Jh(a,l,e,t,null,null)},Br.prototype.unmount=So.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;Jh(e.current,2,null,e,null,null),xr(),t[Nl]=null}};function Br(e){this._internalRoot=e}Br.prototype.unstable_scheduleHydration=function(e){if(e){var t=dc();e={blockedOn:null,target:e,priority:t};for(var a=0;a<Za.length&&t!==0&&t<Za[a].priority;a++);Za.splice(a,0,e),a===0&&em(e)}};var nm=r.version;if(nm!=="19.2.1")throw Error(o(527,nm,"19.2.1"));H.findDOMNode=function(e){var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(o(188)):(e=Object.keys(e).join(","),Error(o(268,e)));return e=p(t),e=e!==null?O(e):null,e=e===null?null:e.stateNode,e};var r0={bundleType:0,version:"19.2.1",rendererPackageName:"react-dom",currentDispatcherRef:M,reconcilerVersion:"19.2.1"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var Lr=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Lr.isDisabled&&Lr.supportsFiber)try{bn=Lr.inject(r0),jt=Lr}catch{}}return du.createRoot=function(e,t){if(!c(e))throw Error(o(299));var a=!1,l="",u=fd,i=dd,d=hd;return t!=null&&(t.unstable_strictMode===!0&&(a=!0),t.identifierPrefix!==void 0&&(l=t.identifierPrefix),t.onUncaughtError!==void 0&&(u=t.onUncaughtError),t.onCaughtError!==void 0&&(i=t.onCaughtError),t.onRecoverableError!==void 0&&(d=t.onRecoverableError)),t=Kh(e,1,!1,null,null,a,l,null,u,i,d,lm),e[Nl]=t.current,to(e),new So(t)},du.hydrateRoot=function(e,t,a){if(!c(e))throw Error(o(299));var l=!1,u="",i=fd,d=dd,g=hd,b=null;return a!=null&&(a.unstable_strictMode===!0&&(l=!0),a.identifierPrefix!==void 0&&(u=a.identifierPrefix),a.onUncaughtError!==void 0&&(i=a.onUncaughtError),a.onCaughtError!==void 0&&(d=a.onCaughtError),a.onRecoverableError!==void 0&&(g=a.onRecoverableError),a.formState!==void 0&&(b=a.formState)),t=Kh(e,1,!0,t,a??null,l,u,b,i,d,g,lm),t.context=Zh(null),a=t.current,l=At(),l=ci(l),u=Da(l),u.callback=null,Ua(a,u,l),a=l,t.current.lanes=a,Sn(t,a),ta(t),e[Nl]=t.current,to(e),new Br(t)},du.version="19.2.1",du}var mm;function b0(){if(mm)return _o.exports;mm=1;function n(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(n)}catch(r){console.error(r)}}return n(),_o.exports=g0(),_o.exports}var x0=b0();const S0="modulepreload",j0=function(n){return"/"+n},vm={},O0=function(r,s,o){let c=Promise.resolve();if(s&&s.length>0){let y=function(p){return Promise.all(p.map(O=>Promise.resolve(O).then(S=>({status:"fulfilled",value:S}),S=>({status:"rejected",reason:S}))))};document.getElementsByTagName("link");const m=document.querySelector("meta[property=csp-nonce]"),v=m?.nonce||m?.getAttribute("nonce");c=y(s.map(p=>{if(p=j0(p),p in vm)return;vm[p]=!0;const O=p.endsWith(".css"),S=O?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${p}"]${S}`))return;const C=document.createElement("link");if(C.rel=O?"stylesheet":S0,O||(C.as="script"),C.crossOrigin="",C.href=p,v&&C.setAttribute("nonce",v),document.head.appendChild(C),O)return new Promise((w,G)=>{C.addEventListener("load",w),C.addEventListener("error",()=>G(new Error(`Unable to preload CSS for ${p}`)))})}))}function h(m){const v=new Event("vite:preloadError",{cancelable:!0});if(v.payload=m,window.dispatchEvent(v),!v.defaultPrevented)throw m}return c.then(m=>{for(const v of m||[])v.status==="rejected"&&h(v.reason);return r().catch(h)})};var Sl=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(n){return this.listeners.add(n),this.onSubscribe(),()=>{this.listeners.delete(n),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},bl=typeof window>"u"||"Deno"in globalThis;function st(){}function _0(n,r){return typeof n=="function"?n(r):n}function Ho(n){return typeof n=="number"&&n>=0&&n!==1/0}function Vm(n,r){return Math.max(n+(r||0)-Date.now(),0)}function Fa(n,r){return typeof n=="function"?n(r):n}function Kt(n,r){return typeof n=="function"?n(r):n}function ym(n,r){const{type:s="all",exact:o,fetchStatus:c,predicate:h,queryKey:m,stale:v}=n;if(m){if(o){if(r.queryHash!==Fo(m,r.options))return!1}else if(!gu(r.queryKey,m))return!1}if(s!=="all"){const y=r.isActive();if(s==="active"&&!y||s==="inactive"&&y)return!1}return!(typeof v=="boolean"&&r.isStale()!==v||c&&c!==r.state.fetchStatus||h&&!h(r))}function pm(n,r){const{exact:s,status:o,predicate:c,mutationKey:h}=n;if(h){if(!r.options.mutationKey)return!1;if(s){if($a(r.options.mutationKey)!==$a(h))return!1}else if(!gu(r.options.mutationKey,h))return!1}return!(o&&r.state.status!==o||c&&!c(r))}function Fo(n,r){return(r?.queryKeyHashFn||$a)(n)}function $a(n){return JSON.stringify(n,(r,s)=>Bo(s)?Object.keys(s).sort().reduce((o,c)=>(o[c]=s[c],o),{}):s)}function gu(n,r){return n===r?!0:typeof n!=typeof r?!1:n&&r&&typeof n=="object"&&typeof r=="object"?Object.keys(r).every(s=>gu(n[s],r[s])):!1}function $o(n,r){if(n===r)return n;const s=gm(n)&&gm(r);if(s||Bo(n)&&Bo(r)){const o=s?n:Object.keys(n),c=o.length,h=s?r:Object.keys(r),m=h.length,v=s?[]:{},y=new Set(o);let p=0;for(let O=0;O<m;O++){const S=s?O:h[O];(!s&&y.has(S)||s)&&n[S]===void 0&&r[S]===void 0?(v[S]=void 0,p++):(v[S]=$o(n[S],r[S]),v[S]===n[S]&&n[S]!==void 0&&p++)}return c===m&&p===c?n:v}return r}function $r(n,r){if(!r||Object.keys(n).length!==Object.keys(r).length)return!1;for(const s in n)if(n[s]!==r[s])return!1;return!0}function gm(n){return Array.isArray(n)&&n.length===Object.keys(n).length}function Bo(n){if(!bm(n))return!1;const r=n.constructor;if(r===void 0)return!0;const s=r.prototype;return!(!bm(s)||!s.hasOwnProperty("isPrototypeOf")||Object.getPrototypeOf(n)!==Object.prototype)}function bm(n){return Object.prototype.toString.call(n)==="[object Object]"}function N0(n){return new Promise(r=>{setTimeout(r,n)})}function Lo(n,r,s){return typeof s.structuralSharing=="function"?s.structuralSharing(n,r):s.structuralSharing!==!1?$o(n,r):r}function C0(n,r,s=0){const o=[...n,r];return s&&o.length>s?o.slice(1):o}function E0(n,r,s=0){const o=[r,...n];return s&&o.length>s?o.slice(0,-1):o}var zt=Symbol();function Km(n,r){return!n.queryFn&&r?.initialPromise?()=>r.initialPromise:!n.queryFn||n.queryFn===zt?()=>Promise.reject(new Error(`Missing queryFn: '${n.queryHash}'`)):n.queryFn}function Zm(n,r){return typeof n=="function"?n(...r):!!n}var T0=class extends Sl{#t;#e;#a;constructor(){super(),this.#a=n=>{if(!bl&&window.addEventListener){const r=()=>n();return window.addEventListener("visibilitychange",r,!1),()=>{window.removeEventListener("visibilitychange",r)}}}}onSubscribe(){this.#e||this.setEventListener(this.#a)}onUnsubscribe(){this.hasListeners()||(this.#e?.(),this.#e=void 0)}setEventListener(n){this.#a=n,this.#e?.(),this.#e=n(r=>{typeof r=="boolean"?this.setFocused(r):this.onFocus()})}setFocused(n){this.#t!==n&&(this.#t=n,this.onFocus())}onFocus(){const n=this.isFocused();this.listeners.forEach(r=>{r(n)})}isFocused(){return typeof this.#t=="boolean"?this.#t:globalThis.document?.visibilityState!=="hidden"}},Po=new T0,M0=class extends Sl{#t=!0;#e;#a;constructor(){super(),this.#a=n=>{if(!bl&&window.addEventListener){const r=()=>n(!0),s=()=>n(!1);return window.addEventListener("online",r,!1),window.addEventListener("offline",s,!1),()=>{window.removeEventListener("online",r),window.removeEventListener("offline",s)}}}}onSubscribe(){this.#e||this.setEventListener(this.#a)}onUnsubscribe(){this.hasListeners()||(this.#e?.(),this.#e=void 0)}setEventListener(n){this.#a=n,this.#e?.(),this.#e=n(this.setOnline.bind(this))}setOnline(n){this.#t!==n&&(this.#t=n,this.listeners.forEach(s=>{s(n)}))}isOnline(){return this.#t}},Pr=new M0;function Go(){let n,r;const s=new Promise((c,h)=>{n=c,r=h});s.status="pending",s.catch(()=>{});function o(c){Object.assign(s,c),delete s.resolve,delete s.reject}return s.resolve=c=>{o({status:"fulfilled",value:c}),n(c)},s.reject=c=>{o({status:"rejected",reason:c}),r(c)},s}function A0(n){return Math.min(1e3*2**n,3e4)}function Jm(n){return(n??"online")==="online"?Pr.isOnline():!0}var Fm=class extends Error{constructor(n){super("CancelledError"),this.revert=n?.revert,this.silent=n?.silent}};function To(n){return n instanceof Fm}function $m(n){let r=!1,s=0,o=!1,c;const h=Go(),m=_=>{o||(C(new Fm(_)),n.abort?.())},v=()=>{r=!0},y=()=>{r=!1},p=()=>Po.isFocused()&&(n.networkMode==="always"||Pr.isOnline())&&n.canRun(),O=()=>Jm(n.networkMode)&&n.canRun(),S=_=>{o||(o=!0,n.onSuccess?.(_),c?.(),h.resolve(_))},C=_=>{o||(o=!0,n.onError?.(_),c?.(),h.reject(_))},w=()=>new Promise(_=>{c=F=>{(o||p())&&_(F)},n.onPause?.()}).then(()=>{c=void 0,o||n.onContinue?.()}),G=()=>{if(o)return;let _;const F=s===0?n.initialPromise:void 0;try{_=F??n.fn()}catch(ne){_=Promise.reject(ne)}Promise.resolve(_).then(S).catch(ne=>{if(o)return;const ce=n.retry??(bl?0:3),oe=n.retryDelay??A0,Ce=typeof oe=="function"?oe(s,ne):oe,X=ce===!0||typeof ce=="number"&&s<ce||typeof ce=="function"&&ce(s,ne);if(r||!X){C(ne);return}s++,n.onFail?.(s,ne),N0(Ce).then(()=>p()?void 0:w()).then(()=>{r?C(ne):G()})})};return{promise:h,cancel:m,continue:()=>(c?.(),h),cancelRetry:v,continueRetry:y,canStart:O,start:()=>(O()?G():w().then(G),h)}}var z0=n=>setTimeout(n,0);function D0(){let n=[],r=0,s=v=>{v()},o=v=>{v()},c=z0;const h=v=>{r?n.push(v):c(()=>{s(v)})},m=()=>{const v=n;n=[],v.length&&c(()=>{o(()=>{v.forEach(y=>{s(y)})})})};return{batch:v=>{let y;r++;try{y=v()}finally{r--,r||m()}return y},batchCalls:v=>(...y)=>{h(()=>{v(...y)})},schedule:h,setNotifyFunction:v=>{s=v},setBatchNotifyFunction:v=>{o=v},setScheduler:v=>{c=v}}}var Xe=D0(),Pm=class{#t;destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),Ho(this.gcTime)&&(this.#t=setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(n){this.gcTime=Math.max(this.gcTime||0,n??(bl?1/0:300*1e3))}clearGcTimeout(){this.#t&&(clearTimeout(this.#t),this.#t=void 0)}},U0=class extends Pm{#t;#e;#a;#l;#n;#u;#i;constructor(n){super(),this.#i=!1,this.#u=n.defaultOptions,this.setOptions(n.options),this.observers=[],this.#l=n.client,this.#a=this.#l.getQueryCache(),this.queryKey=n.queryKey,this.queryHash=n.queryHash,this.#t=R0(this.options),this.state=n.state??this.#t,this.scheduleGc()}get meta(){return this.options.meta}get promise(){return this.#n?.promise}setOptions(n){this.options={...this.#u,...n},this.updateGcTime(this.options.gcTime)}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&this.#a.remove(this)}setData(n,r){const s=Lo(this.state.data,n,this.options);return this.#r({data:s,type:"success",dataUpdatedAt:r?.updatedAt,manual:r?.manual}),s}setState(n,r){this.#r({type:"setState",state:n,setStateOptions:r})}cancel(n){const r=this.#n?.promise;return this.#n?.cancel(n),r?r.then(st).catch(st):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(this.#t)}isActive(){return this.observers.some(n=>Kt(n.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===zt||this.state.dataUpdateCount+this.state.errorUpdateCount===0}isStatic(){return this.getObserversCount()>0?this.observers.some(n=>Fa(n.options.staleTime,this)==="static"):!1}isStale(){return this.getObserversCount()>0?this.observers.some(n=>n.getCurrentResult().isStale):this.state.data===void 0||this.state.isInvalidated}isStaleByTime(n=0){return this.state.data===void 0?!0:n==="static"?!1:this.state.isInvalidated?!0:!Vm(this.state.dataUpdatedAt,n)}onFocus(){this.observers.find(r=>r.shouldFetchOnWindowFocus())?.refetch({cancelRefetch:!1}),this.#n?.continue()}onOnline(){this.observers.find(r=>r.shouldFetchOnReconnect())?.refetch({cancelRefetch:!1}),this.#n?.continue()}addObserver(n){this.observers.includes(n)||(this.observers.push(n),this.clearGcTimeout(),this.#a.notify({type:"observerAdded",query:this,observer:n}))}removeObserver(n){this.observers.includes(n)&&(this.observers=this.observers.filter(r=>r!==n),this.observers.length||(this.#n&&(this.#i?this.#n.cancel({revert:!0}):this.#n.cancelRetry()),this.scheduleGc()),this.#a.notify({type:"observerRemoved",query:this,observer:n}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||this.#r({type:"invalidate"})}fetch(n,r){if(this.state.fetchStatus!=="idle"){if(this.state.data!==void 0&&r?.cancelRefetch)this.cancel({silent:!0});else if(this.#n)return this.#n.continueRetry(),this.#n.promise}if(n&&this.setOptions(n),!this.options.queryFn){const y=this.observers.find(p=>p.options.queryFn);y&&this.setOptions(y.options)}const s=new AbortController,o=y=>{Object.defineProperty(y,"signal",{enumerable:!0,get:()=>(this.#i=!0,s.signal)})},c=()=>{const y=Km(this.options,r),O=(()=>{const S={client:this.#l,queryKey:this.queryKey,meta:this.meta};return o(S),S})();return this.#i=!1,this.options.persister?this.options.persister(y,O,this):y(O)},m=(()=>{const y={fetchOptions:r,options:this.options,queryKey:this.queryKey,client:this.#l,state:this.state,fetchFn:c};return o(y),y})();this.options.behavior?.onFetch(m,this),this.#e=this.state,(this.state.fetchStatus==="idle"||this.state.fetchMeta!==m.fetchOptions?.meta)&&this.#r({type:"fetch",meta:m.fetchOptions?.meta});const v=y=>{To(y)&&y.silent||this.#r({type:"error",error:y}),To(y)||(this.#a.config.onError?.(y,this),this.#a.config.onSettled?.(this.state.data,y,this)),this.scheduleGc()};return this.#n=$m({initialPromise:r?.initialPromise,fn:m.fetchFn,abort:s.abort.bind(s),onSuccess:y=>{if(y===void 0){v(new Error(`${this.queryHash} data is undefined`));return}try{this.setData(y)}catch(p){v(p);return}this.#a.config.onSuccess?.(y,this),this.#a.config.onSettled?.(y,this.state.error,this),this.scheduleGc()},onError:v,onFail:(y,p)=>{this.#r({type:"failed",failureCount:y,error:p})},onPause:()=>{this.#r({type:"pause"})},onContinue:()=>{this.#r({type:"continue"})},retry:m.options.retry,retryDelay:m.options.retryDelay,networkMode:m.options.networkMode,canRun:()=>!0}),this.#n.start()}#r(n){const r=s=>{switch(n.type){case"failed":return{...s,fetchFailureCount:n.failureCount,fetchFailureReason:n.error};case"pause":return{...s,fetchStatus:"paused"};case"continue":return{...s,fetchStatus:"fetching"};case"fetch":return{...s,...Wm(s.data,this.options),fetchMeta:n.meta??null};case"success":return this.#e=void 0,{...s,data:n.data,dataUpdateCount:s.dataUpdateCount+1,dataUpdatedAt:n.dataUpdatedAt??Date.now(),error:null,isInvalidated:!1,status:"success",...!n.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};case"error":const o=n.error;return To(o)&&o.revert&&this.#e?{...this.#e,fetchStatus:"idle"}:{...s,error:o,errorUpdateCount:s.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:s.fetchFailureCount+1,fetchFailureReason:o,fetchStatus:"idle",status:"error"};case"invalidate":return{...s,isInvalidated:!0};case"setState":return{...s,...n.state}}};this.state=r(this.state),Xe.batch(()=>{this.observers.forEach(s=>{s.onQueryUpdate()}),this.#a.notify({query:this,type:"updated",action:n})})}};function Wm(n,r){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:Jm(r.networkMode)?"fetching":"paused",...n===void 0&&{error:null,status:"pending"}}}function R0(n){const r=typeof n.initialData=="function"?n.initialData():n.initialData,s=r!==void 0,o=s?typeof n.initialDataUpdatedAt=="function"?n.initialDataUpdatedAt():n.initialDataUpdatedAt:0;return{data:r,dataUpdateCount:0,dataUpdatedAt:s?o??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:s?"success":"pending",fetchStatus:"idle"}}var q0=class extends Sl{constructor(n={}){super(),this.config=n,this.#t=new Map}#t;build(n,r,s){const o=r.queryKey,c=r.queryHash??Fo(o,r);let h=this.get(c);return h||(h=new U0({client:n,queryKey:o,queryHash:c,options:n.defaultQueryOptions(r),state:s,defaultOptions:n.getQueryDefaults(o)}),this.add(h)),h}add(n){this.#t.has(n.queryHash)||(this.#t.set(n.queryHash,n),this.notify({type:"added",query:n}))}remove(n){const r=this.#t.get(n.queryHash);r&&(n.destroy(),r===n&&this.#t.delete(n.queryHash),this.notify({type:"removed",query:n}))}clear(){Xe.batch(()=>{this.getAll().forEach(n=>{this.remove(n)})})}get(n){return this.#t.get(n)}getAll(){return[...this.#t.values()]}find(n){const r={exact:!0,...n};return this.getAll().find(s=>ym(r,s))}findAll(n={}){const r=this.getAll();return Object.keys(n).length>0?r.filter(s=>ym(n,s)):r}notify(n){Xe.batch(()=>{this.listeners.forEach(r=>{r(n)})})}onFocus(){Xe.batch(()=>{this.getAll().forEach(n=>{n.onFocus()})})}onOnline(){Xe.batch(()=>{this.getAll().forEach(n=>{n.onOnline()})})}},w0=class extends Pm{#t;#e;#a;constructor(n){super(),this.mutationId=n.mutationId,this.#e=n.mutationCache,this.#t=[],this.state=n.state||Im(),this.setOptions(n.options),this.scheduleGc()}setOptions(n){this.options=n,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(n){this.#t.includes(n)||(this.#t.push(n),this.clearGcTimeout(),this.#e.notify({type:"observerAdded",mutation:this,observer:n}))}removeObserver(n){this.#t=this.#t.filter(r=>r!==n),this.scheduleGc(),this.#e.notify({type:"observerRemoved",mutation:this,observer:n})}optionalRemove(){this.#t.length||(this.state.status==="pending"?this.scheduleGc():this.#e.remove(this))}continue(){return this.#a?.continue()??this.execute(this.state.variables)}async execute(n){const r=()=>{this.#l({type:"continue"})};this.#a=$m({fn:()=>this.options.mutationFn?this.options.mutationFn(n):Promise.reject(new Error("No mutationFn found")),onFail:(c,h)=>{this.#l({type:"failed",failureCount:c,error:h})},onPause:()=>{this.#l({type:"pause"})},onContinue:r,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>this.#e.canRun(this)});const s=this.state.status==="pending",o=!this.#a.canStart();try{if(s)r();else{this.#l({type:"pending",variables:n,isPaused:o}),await this.#e.config.onMutate?.(n,this);const h=await this.options.onMutate?.(n);h!==this.state.context&&this.#l({type:"pending",context:h,variables:n,isPaused:o})}const c=await this.#a.start();return await this.#e.config.onSuccess?.(c,n,this.state.context,this),await this.options.onSuccess?.(c,n,this.state.context),await this.#e.config.onSettled?.(c,null,this.state.variables,this.state.context,this),await this.options.onSettled?.(c,null,n,this.state.context),this.#l({type:"success",data:c}),c}catch(c){try{throw await this.#e.config.onError?.(c,n,this.state.context,this),await this.options.onError?.(c,n,this.state.context),await this.#e.config.onSettled?.(void 0,c,this.state.variables,this.state.context,this),await this.options.onSettled?.(void 0,c,n,this.state.context),c}finally{this.#l({type:"error",error:c})}}finally{this.#e.runNext(this)}}#l(n){const r=s=>{switch(n.type){case"failed":return{...s,failureCount:n.failureCount,failureReason:n.error};case"pause":return{...s,isPaused:!0};case"continue":return{...s,isPaused:!1};case"pending":return{...s,context:n.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:n.isPaused,status:"pending",variables:n.variables,submittedAt:Date.now()};case"success":return{...s,data:n.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...s,data:void 0,error:n.error,failureCount:s.failureCount+1,failureReason:n.error,isPaused:!1,status:"error"}}};this.state=r(this.state),Xe.batch(()=>{this.#t.forEach(s=>{s.onMutationUpdate(n)}),this.#e.notify({mutation:this,type:"updated",action:n})})}};function Im(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var Q0=class extends Sl{constructor(n={}){super(),this.config=n,this.#t=new Set,this.#e=new Map,this.#a=0}#t;#e;#a;build(n,r,s){const o=new w0({mutationCache:this,mutationId:++this.#a,options:n.defaultMutationOptions(r),state:s});return this.add(o),o}add(n){this.#t.add(n);const r=Gr(n);if(typeof r=="string"){const s=this.#e.get(r);s?s.push(n):this.#e.set(r,[n])}this.notify({type:"added",mutation:n})}remove(n){if(this.#t.delete(n)){const r=Gr(n);if(typeof r=="string"){const s=this.#e.get(r);if(s)if(s.length>1){const o=s.indexOf(n);o!==-1&&s.splice(o,1)}else s[0]===n&&this.#e.delete(r)}}this.notify({type:"removed",mutation:n})}canRun(n){const r=Gr(n);if(typeof r=="string"){const o=this.#e.get(r)?.find(c=>c.state.status==="pending");return!o||o===n}else return!0}runNext(n){const r=Gr(n);return typeof r=="string"?this.#e.get(r)?.find(o=>o!==n&&o.state.isPaused)?.continue()??Promise.resolve():Promise.resolve()}clear(){Xe.batch(()=>{this.#t.forEach(n=>{this.notify({type:"removed",mutation:n})}),this.#t.clear(),this.#e.clear()})}getAll(){return Array.from(this.#t)}find(n){const r={exact:!0,...n};return this.getAll().find(s=>pm(r,s))}findAll(n={}){return this.getAll().filter(r=>pm(n,r))}notify(n){Xe.batch(()=>{this.listeners.forEach(r=>{r(n)})})}resumePausedMutations(){const n=this.getAll().filter(r=>r.state.isPaused);return Xe.batch(()=>Promise.all(n.map(r=>r.continue().catch(st))))}};function Gr(n){return n.options.scope?.id}function Wr(n){return{onFetch:(r,s)=>{const o=r.options,c=r.fetchOptions?.meta?.fetchMore?.direction,h=r.state.data?.pages||[],m=r.state.data?.pageParams||[];let v={pages:[],pageParams:[]},y=0;const p=async()=>{let O=!1;const S=G=>{Object.defineProperty(G,"signal",{enumerable:!0,get:()=>(r.signal.aborted?O=!0:r.signal.addEventListener("abort",()=>{O=!0}),r.signal)})},C=Km(r.options,r.fetchOptions),w=async(G,_,F)=>{if(O)return Promise.reject();if(_==null&&G.pages.length)return Promise.resolve(G);const ce=(()=>{const V={client:r.client,queryKey:r.queryKey,pageParam:_,direction:F?"backward":"forward",meta:r.options.meta};return S(V),V})(),oe=await C(ce),{maxPages:Ce}=r.options,X=F?E0:C0;return{pages:X(G.pages,oe,Ce),pageParams:X(G.pageParams,_,Ce)}};if(c&&h.length){const G=c==="backward",_=G?ev:Yo,F={pages:h,pageParams:m},ne=_(o,F);v=await w(F,ne,G)}else{const G=n??h.length;do{const _=y===0?m[0]??o.initialPageParam:Yo(o,v);if(y>0&&_==null)break;v=await w(v,_),y++}while(y<G)}return v};r.options.persister?r.fetchFn=()=>r.options.persister?.(p,{client:r.client,queryKey:r.queryKey,meta:r.options.meta,signal:r.signal},s):r.fetchFn=p}}}function Yo(n,{pages:r,pageParams:s}){const o=r.length-1;return r.length>0?n.getNextPageParam(r[o],r,s[o],s):void 0}function ev(n,{pages:r,pageParams:s}){return r.length>0?n.getPreviousPageParam?.(r[0],r,s[0],s):void 0}function k0(n,r){return r?Yo(n,r)!=null:!1}function H0(n,r){return!r||!n.getPreviousPageParam?!1:ev(n,r)!=null}var B0=class{#t;#e;#a;#l;#n;#u;#i;#r;constructor(n={}){this.#t=n.queryCache||new q0,this.#e=n.mutationCache||new Q0,this.#a=n.defaultOptions||{},this.#l=new Map,this.#n=new Map,this.#u=0}mount(){this.#u++,this.#u===1&&(this.#i=Po.subscribe(async n=>{n&&(await this.resumePausedMutations(),this.#t.onFocus())}),this.#r=Pr.subscribe(async n=>{n&&(await this.resumePausedMutations(),this.#t.onOnline())}))}unmount(){this.#u--,this.#u===0&&(this.#i?.(),this.#i=void 0,this.#r?.(),this.#r=void 0)}isFetching(n){return this.#t.findAll({...n,fetchStatus:"fetching"}).length}isMutating(n){return this.#e.findAll({...n,status:"pending"}).length}getQueryData(n){const r=this.defaultQueryOptions({queryKey:n});return this.#t.get(r.queryHash)?.state.data}ensureQueryData(n){const r=this.defaultQueryOptions(n),s=this.#t.build(this,r),o=s.state.data;return o===void 0?this.fetchQuery(n):(n.revalidateIfStale&&s.isStaleByTime(Fa(r.staleTime,s))&&this.prefetchQuery(r),Promise.resolve(o))}getQueriesData(n){return this.#t.findAll(n).map(({queryKey:r,state:s})=>{const o=s.data;return[r,o]})}setQueryData(n,r,s){const o=this.defaultQueryOptions({queryKey:n}),h=this.#t.get(o.queryHash)?.state.data,m=_0(r,h);if(m!==void 0)return this.#t.build(this,o).setData(m,{...s,manual:!0})}setQueriesData(n,r,s){return Xe.batch(()=>this.#t.findAll(n).map(({queryKey:o})=>[o,this.setQueryData(o,r,s)]))}getQueryState(n){const r=this.defaultQueryOptions({queryKey:n});return this.#t.get(r.queryHash)?.state}removeQueries(n){const r=this.#t;Xe.batch(()=>{r.findAll(n).forEach(s=>{r.remove(s)})})}resetQueries(n,r){const s=this.#t;return Xe.batch(()=>(s.findAll(n).forEach(o=>{o.reset()}),this.refetchQueries({type:"active",...n},r)))}cancelQueries(n,r={}){const s={revert:!0,...r},o=Xe.batch(()=>this.#t.findAll(n).map(c=>c.cancel(s)));return Promise.all(o).then(st).catch(st)}invalidateQueries(n,r={}){return Xe.batch(()=>(this.#t.findAll(n).forEach(s=>{s.invalidate()}),n?.refetchType==="none"?Promise.resolve():this.refetchQueries({...n,type:n?.refetchType??n?.type??"active"},r)))}refetchQueries(n,r={}){const s={...r,cancelRefetch:r.cancelRefetch??!0},o=Xe.batch(()=>this.#t.findAll(n).filter(c=>!c.isDisabled()&&!c.isStatic()).map(c=>{let h=c.fetch(void 0,s);return s.throwOnError||(h=h.catch(st)),c.state.fetchStatus==="paused"?Promise.resolve():h}));return Promise.all(o).then(st)}fetchQuery(n){const r=this.defaultQueryOptions(n);r.retry===void 0&&(r.retry=!1);const s=this.#t.build(this,r);return s.isStaleByTime(Fa(r.staleTime,s))?s.fetch(r):Promise.resolve(s.state.data)}prefetchQuery(n){return this.fetchQuery(n).then(st).catch(st)}fetchInfiniteQuery(n){return n.behavior=Wr(n.pages),this.fetchQuery(n)}prefetchInfiniteQuery(n){return this.fetchInfiniteQuery(n).then(st).catch(st)}ensureInfiniteQueryData(n){return n.behavior=Wr(n.pages),this.ensureQueryData(n)}resumePausedMutations(){return Pr.isOnline()?this.#e.resumePausedMutations():Promise.resolve()}getQueryCache(){return this.#t}getMutationCache(){return this.#e}getDefaultOptions(){return this.#a}setDefaultOptions(n){this.#a=n}setQueryDefaults(n,r){this.#l.set($a(n),{queryKey:n,defaultOptions:r})}getQueryDefaults(n){const r=[...this.#l.values()],s={};return r.forEach(o=>{gu(n,o.queryKey)&&Object.assign(s,o.defaultOptions)}),s}setMutationDefaults(n,r){this.#n.set($a(n),{mutationKey:n,defaultOptions:r})}getMutationDefaults(n){const r=[...this.#n.values()],s={};return r.forEach(o=>{gu(n,o.mutationKey)&&Object.assign(s,o.defaultOptions)}),s}defaultQueryOptions(n){if(n._defaulted)return n;const r={...this.#a.queries,...this.getQueryDefaults(n.queryKey),...n,_defaulted:!0};return r.queryHash||(r.queryHash=Fo(r.queryKey,r)),r.refetchOnReconnect===void 0&&(r.refetchOnReconnect=r.networkMode!=="always"),r.throwOnError===void 0&&(r.throwOnError=!!r.suspense),!r.networkMode&&r.persister&&(r.networkMode="offlineFirst"),r.queryFn===zt&&(r.enabled=!1),r}defaultMutationOptions(n){return n?._defaulted?n:{...this.#a.mutations,...n?.mutationKey&&this.getMutationDefaults(n.mutationKey),...n,_defaulted:!0}}clear(){this.#t.clear(),this.#e.clear()}},bu=class extends Sl{constructor(n,r){super(),this.options=r,this.#t=n,this.#r=null,this.#i=Go(),this.options.experimental_prefetchInRender||this.#i.reject(new Error("experimental_prefetchInRender feature flag is not enabled")),this.bindMethods(),this.setOptions(r)}#t;#e=void 0;#a=void 0;#l=void 0;#n;#u;#i;#r;#h;#f;#d;#o;#c;#s;#v=new Set;bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(this.#e.addObserver(this),xm(this.#e,this.options)?this.#m():this.updateResult(),this.#b())}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return Xo(this.#e,this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return Xo(this.#e,this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,this.#x(),this.#S(),this.#e.removeObserver(this)}setOptions(n){const r=this.options,s=this.#e;if(this.options=this.#t.defaultQueryOptions(n),this.options.enabled!==void 0&&typeof this.options.enabled!="boolean"&&typeof this.options.enabled!="function"&&typeof Kt(this.options.enabled,this.#e)!="boolean")throw new Error("Expected enabled to be a boolean or a callback that returns a boolean");this.#j(),this.#e.setOptions(this.options),r._defaulted&&!$r(this.options,r)&&this.#t.getQueryCache().notify({type:"observerOptionsUpdated",query:this.#e,observer:this});const o=this.hasListeners();o&&Sm(this.#e,s,this.options,r)&&this.#m(),this.updateResult(),o&&(this.#e!==s||Kt(this.options.enabled,this.#e)!==Kt(r.enabled,this.#e)||Fa(this.options.staleTime,this.#e)!==Fa(r.staleTime,this.#e))&&this.#y();const c=this.#p();o&&(this.#e!==s||Kt(this.options.enabled,this.#e)!==Kt(r.enabled,this.#e)||c!==this.#s)&&this.#g(c)}getOptimisticResult(n){const r=this.#t.getQueryCache().build(this.#t,n),s=this.createResult(r,n);return G0(this,s)&&(this.#l=s,this.#u=this.options,this.#n=this.#e.state),s}getCurrentResult(){return this.#l}trackResult(n,r){return new Proxy(n,{get:(s,o)=>(this.trackProp(o),r?.(o),Reflect.get(s,o))})}trackProp(n){this.#v.add(n)}getCurrentQuery(){return this.#e}refetch({...n}={}){return this.fetch({...n})}fetchOptimistic(n){const r=this.#t.defaultQueryOptions(n),s=this.#t.getQueryCache().build(this.#t,r);return s.fetch().then(()=>this.createResult(s,r))}fetch(n){return this.#m({...n,cancelRefetch:n.cancelRefetch??!0}).then(()=>(this.updateResult(),this.#l))}#m(n){this.#j();let r=this.#e.fetch(this.options,n);return n?.throwOnError||(r=r.catch(st)),r}#y(){this.#x();const n=Fa(this.options.staleTime,this.#e);if(bl||this.#l.isStale||!Ho(n))return;const s=Vm(this.#l.dataUpdatedAt,n)+1;this.#o=setTimeout(()=>{this.#l.isStale||this.updateResult()},s)}#p(){return(typeof this.options.refetchInterval=="function"?this.options.refetchInterval(this.#e):this.options.refetchInterval)??!1}#g(n){this.#S(),this.#s=n,!(bl||Kt(this.options.enabled,this.#e)===!1||!Ho(this.#s)||this.#s===0)&&(this.#c=setInterval(()=>{(this.options.refetchIntervalInBackground||Po.isFocused())&&this.#m()},this.#s))}#b(){this.#y(),this.#g(this.#p())}#x(){this.#o&&(clearTimeout(this.#o),this.#o=void 0)}#S(){this.#c&&(clearInterval(this.#c),this.#c=void 0)}createResult(n,r){const s=this.#e,o=this.options,c=this.#l,h=this.#n,m=this.#u,y=n!==s?n.state:this.#a,{state:p}=n;let O={...p},S=!1,C;if(r._optimisticResults){const J=this.hasListeners(),ee=!J&&xm(n,r),I=J&&Sm(n,s,r,o);(ee||I)&&(O={...O,...Wm(p.data,n.options)}),r._optimisticResults==="isRestoring"&&(O.fetchStatus="idle")}let{error:w,errorUpdatedAt:G,status:_}=O;C=O.data;let F=!1;if(r.placeholderData!==void 0&&C===void 0&&_==="pending"){let J;c?.isPlaceholderData&&r.placeholderData===m?.placeholderData?(J=c.data,F=!0):J=typeof r.placeholderData=="function"?r.placeholderData(this.#d?.state.data,this.#d):r.placeholderData,J!==void 0&&(_="success",C=Lo(c?.data,J,r),S=!0)}if(r.select&&C!==void 0&&!F)if(c&&C===h?.data&&r.select===this.#h)C=this.#f;else try{this.#h=r.select,C=r.select(C),C=Lo(c?.data,C,r),this.#f=C,this.#r=null}catch(J){this.#r=J}this.#r&&(w=this.#r,C=this.#f,G=Date.now(),_="error");const ne=O.fetchStatus==="fetching",ce=_==="pending",oe=_==="error",Ce=ce&&ne,X=C!==void 0,D={status:_,fetchStatus:O.fetchStatus,isPending:ce,isSuccess:_==="success",isError:oe,isInitialLoading:Ce,isLoading:Ce,data:C,dataUpdatedAt:O.dataUpdatedAt,error:w,errorUpdatedAt:G,failureCount:O.fetchFailureCount,failureReason:O.fetchFailureReason,errorUpdateCount:O.errorUpdateCount,isFetched:O.dataUpdateCount>0||O.errorUpdateCount>0,isFetchedAfterMount:O.dataUpdateCount>y.dataUpdateCount||O.errorUpdateCount>y.errorUpdateCount,isFetching:ne,isRefetching:ne&&!ce,isLoadingError:oe&&!X,isPaused:O.fetchStatus==="paused",isPlaceholderData:S,isRefetchError:oe&&X,isStale:Wo(n,r),refetch:this.refetch,promise:this.#i};if(this.options.experimental_prefetchInRender){const J=le=>{D.status==="error"?le.reject(D.error):D.data!==void 0&&le.resolve(D.data)},ee=()=>{const le=this.#i=D.promise=Go();J(le)},I=this.#i;switch(I.status){case"pending":n.queryHash===s.queryHash&&J(I);break;case"fulfilled":(D.status==="error"||D.data!==I.value)&&ee();break;case"rejected":(D.status!=="error"||D.error!==I.reason)&&ee();break}}return D}updateResult(){const n=this.#l,r=this.createResult(this.#e,this.options);if(this.#n=this.#e.state,this.#u=this.options,this.#n.data!==void 0&&(this.#d=this.#e),$r(r,n))return;this.#l=r;const s=()=>{if(!n)return!0;const{notifyOnChangeProps:o}=this.options,c=typeof o=="function"?o():o;if(c==="all"||!c&&!this.#v.size)return!0;const h=new Set(c??this.#v);return this.options.throwOnError&&h.add("error"),Object.keys(this.#l).some(m=>{const v=m;return this.#l[v]!==n[v]&&h.has(v)})};this.#O({listeners:s()})}#j(){const n=this.#t.getQueryCache().build(this.#t,this.options);if(n===this.#e)return;const r=this.#e;this.#e=n,this.#a=n.state,this.hasListeners()&&(r?.removeObserver(this),n.addObserver(this))}onQueryUpdate(){this.updateResult(),this.hasListeners()&&this.#b()}#O(n){Xe.batch(()=>{n.listeners&&this.listeners.forEach(r=>{r(this.#l)}),this.#t.getQueryCache().notify({query:this.#e,type:"observerResultsUpdated"})})}};function L0(n,r){return Kt(r.enabled,n)!==!1&&n.state.data===void 0&&!(n.state.status==="error"&&r.retryOnMount===!1)}function xm(n,r){return L0(n,r)||n.state.data!==void 0&&Xo(n,r,r.refetchOnMount)}function Xo(n,r,s){if(Kt(r.enabled,n)!==!1&&Fa(r.staleTime,n)!=="static"){const o=typeof s=="function"?s(n):s;return o==="always"||o!==!1&&Wo(n,r)}return!1}function Sm(n,r,s,o){return(n!==r||Kt(o.enabled,n)===!1)&&(!s.suspense||n.state.status!=="error")&&Wo(n,s)}function Wo(n,r){return Kt(r.enabled,n)!==!1&&n.isStaleByTime(Fa(r.staleTime,n))}function G0(n,r){return!$r(n.getCurrentResult(),r)}function jm(n,r){const s=new Set(r);return n.filter(o=>!s.has(o))}function Y0(n,r,s){const o=n.slice(0);return o[r]=s,o}var X0=class extends Sl{#t;#e;#a;#l;#n;#u;#i;#r;#h=[];constructor(n,r,s){super(),this.#t=n,this.#l=s,this.#a=[],this.#n=[],this.#e=[],this.setQueries(r)}onSubscribe(){this.listeners.size===1&&this.#n.forEach(n=>{n.subscribe(r=>{this.#c(n,r)})})}onUnsubscribe(){this.listeners.size||this.destroy()}destroy(){this.listeners=new Set,this.#n.forEach(n=>{n.destroy()})}setQueries(n,r){this.#a=n,this.#l=r,Xe.batch(()=>{const s=this.#n,o=this.#o(this.#a);this.#h=o,o.forEach(v=>v.observer.setOptions(v.defaultedQueryOptions));const c=o.map(v=>v.observer),h=c.map(v=>v.getCurrentResult()),m=c.some((v,y)=>v!==s[y]);s.length===c.length&&!m||(this.#n=c,this.#e=h,this.hasListeners()&&(jm(s,c).forEach(v=>{v.destroy()}),jm(c,s).forEach(v=>{v.subscribe(y=>{this.#c(v,y)})}),this.#s()))})}getCurrentResult(){return this.#e}getQueries(){return this.#n.map(n=>n.getCurrentQuery())}getObservers(){return this.#n}getOptimisticResult(n,r){const s=this.#o(n),o=s.map(c=>c.observer.getOptimisticResult(c.defaultedQueryOptions));return[o,c=>this.#d(c??o,r),()=>this.#f(o,s)]}#f(n,r){return r.map((s,o)=>{const c=n[o];return s.defaultedQueryOptions.notifyOnChangeProps?c:s.observer.trackResult(c,h=>{r.forEach(m=>{m.observer.trackProp(h)})})})}#d(n,r){return r?((!this.#u||this.#e!==this.#r||r!==this.#i)&&(this.#i=r,this.#r=this.#e,this.#u=$o(this.#u,r(n))),this.#u):n}#o(n){const r=new Map(this.#n.map(o=>[o.options.queryHash,o])),s=[];return n.forEach(o=>{const c=this.#t.defaultQueryOptions(o),h=r.get(c.queryHash);h?s.push({defaultedQueryOptions:c,observer:h}):s.push({defaultedQueryOptions:c,observer:new bu(this.#t,c)})}),s}#c(n,r){const s=this.#n.indexOf(n);s!==-1&&(this.#e=Y0(this.#e,s,r),this.#s())}#s(){if(this.hasListeners()){const n=this.#u,r=this.#f(this.#e,this.#h),s=this.#d(r,this.#l?.combine);n!==s&&Xe.batch(()=>{this.listeners.forEach(o=>{o(this.#e)})})}}},tv=class extends bu{constructor(n,r){super(n,r)}bindMethods(){super.bindMethods(),this.fetchNextPage=this.fetchNextPage.bind(this),this.fetchPreviousPage=this.fetchPreviousPage.bind(this)}setOptions(n){super.setOptions({...n,behavior:Wr()})}getOptimisticResult(n){return n.behavior=Wr(),super.getOptimisticResult(n)}fetchNextPage(n){return this.fetch({...n,meta:{fetchMore:{direction:"forward"}}})}fetchPreviousPage(n){return this.fetch({...n,meta:{fetchMore:{direction:"backward"}}})}createResult(n,r){const{state:s}=n,o=super.createResult(n,r),{isFetching:c,isRefetching:h,isError:m,isRefetchError:v}=o,y=s.fetchMeta?.fetchMore?.direction,p=m&&y==="forward",O=c&&y==="forward",S=m&&y==="backward",C=c&&y==="backward";return{...o,fetchNextPage:this.fetchNextPage,fetchPreviousPage:this.fetchPreviousPage,hasNextPage:k0(r,s.data),hasPreviousPage:H0(r,s.data),isFetchNextPageError:p,isFetchingNextPage:O,isFetchPreviousPageError:S,isFetchingPreviousPage:C,isRefetchError:v&&!p&&!S,isRefetching:h&&!O&&!C}}},V0=class extends Sl{#t;#e=void 0;#a;#l;constructor(r,s){super(),this.#t=r,this.setOptions(s),this.bindMethods(),this.#n()}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(r){const s=this.options;this.options=this.#t.defaultMutationOptions(r),$r(this.options,s)||this.#t.getMutationCache().notify({type:"observerOptionsUpdated",mutation:this.#a,observer:this}),s?.mutationKey&&this.options.mutationKey&&$a(s.mutationKey)!==$a(this.options.mutationKey)?this.reset():this.#a?.state.status==="pending"&&this.#a.setOptions(this.options)}onUnsubscribe(){this.hasListeners()||this.#a?.removeObserver(this)}onMutationUpdate(r){this.#n(),this.#u(r)}getCurrentResult(){return this.#e}reset(){this.#a?.removeObserver(this),this.#a=void 0,this.#n(),this.#u()}mutate(r,s){return this.#l=s,this.#a?.removeObserver(this),this.#a=this.#t.getMutationCache().build(this.#t,this.options),this.#a.addObserver(this),this.#a.execute(r)}#n(){const r=this.#a?.state??Im();this.#e={...r,isPending:r.status==="pending",isSuccess:r.status==="success",isError:r.status==="error",isIdle:r.status==="idle",mutate:this.mutate,reset:this.reset}}#u(r){Xe.batch(()=>{if(this.#l&&this.hasListeners()){const s=this.#e.variables,o=this.#e.context;r?.type==="success"?(this.#l.onSuccess?.(r.data,s,o),this.#l.onSettled?.(r.data,null,s,o)):r?.type==="error"&&(this.#l.onError?.(r.error,s,o),this.#l.onSettled?.(void 0,r.error,s,o))}this.listeners.forEach(s=>{s(this.#e)})})}},av=R.createContext(void 0),xu=n=>{const r=R.useContext(av);if(n)return n;if(!r)throw new Error("No QueryClient set, use QueryClientProvider to set one");return r},K0=({client:n,children:r})=>(R.useEffect(()=>(n.mount(),()=>{n.unmount()}),[n]),f.jsx(av.Provider,{value:n,children:r})),lv=R.createContext(!1),nv=()=>R.useContext(lv);lv.Provider;function Z0(){let n=!1;return{clearReset:()=>{n=!1},reset:()=>{n=!0},isReset:()=>n}}var J0=R.createContext(Z0()),uv=()=>R.useContext(J0),rv=(n,r)=>{(n.suspense||n.throwOnError||n.experimental_prefetchInRender)&&(r.isReset()||(n.retryOnMount=!1))},iv=n=>{R.useEffect(()=>{n.clearReset()},[n])},sv=({result:n,errorResetBoundary:r,throwOnError:s,query:o,suspense:c})=>n.isError&&!r.isReset()&&!n.isFetching&&o&&(c&&n.data===void 0||Zm(s,[n.error,o])),Io=(n,r)=>r.state.data===void 0,ov=n=>{if(n.suspense){const r=o=>o==="static"?o:Math.max(o??1e3,1e3),s=n.staleTime;n.staleTime=typeof s=="function"?(...o)=>r(s(...o)):r(s),typeof n.gcTime=="number"&&(n.gcTime=Math.max(n.gcTime,1e3))}},cv=(n,r)=>n.isLoading&&n.isFetching&&!r,Vo=(n,r)=>n?.suspense&&r.isPending,Ir=(n,r,s)=>r.fetchOptimistic(n).catch(()=>{s.clearReset()});function fv({queries:n,...r},s){const o=xu(s),c=nv(),h=uv(),m=R.useMemo(()=>n.map(_=>{const F=o.defaultQueryOptions(_);return F._optimisticResults=c?"isRestoring":"optimistic",F}),[n,o,c]);m.forEach(_=>{ov(_),rv(_,h)}),iv(h);const[v]=R.useState(()=>new X0(o,m,r)),[y,p,O]=v.getOptimisticResult(m,r.combine),S=!c&&r.subscribed!==!1;R.useSyncExternalStore(R.useCallback(_=>S?v.subscribe(Xe.batchCalls(_)):st,[v,S]),()=>v.getCurrentResult(),()=>v.getCurrentResult()),R.useEffect(()=>{v.setQueries(m,r)},[m,r,v]);const w=y.some((_,F)=>Vo(m[F],_))?y.flatMap((_,F)=>{const ne=m[F];if(ne){const ce=new bu(o,ne);if(Vo(ne,_))return Ir(ne,ce,h);cv(_,c)&&Ir(ne,ce,h)}return[]}):[];if(w.length>0)throw Promise.all(w);const G=y.find((_,F)=>{const ne=m[F];return ne&&sv({result:_,errorResetBoundary:h,throwOnError:ne.throwOnError,query:o.getQueryCache().get(ne.queryHash),suspense:ne.suspense})});if(G?.error)throw G.error;return p(O())}function ai(n,r,s){const o=nv(),c=uv(),h=xu(s),m=h.defaultQueryOptions(n);h.getDefaultOptions().queries?._experimental_beforeQuery?.(m),m._optimisticResults=o?"isRestoring":"optimistic",ov(m),rv(m,c),iv(c);const v=!h.getQueryCache().get(m.queryHash),[y]=R.useState(()=>new r(h,m)),p=y.getOptimisticResult(m),O=!o&&n.subscribed!==!1;if(R.useSyncExternalStore(R.useCallback(S=>{const C=O?y.subscribe(Xe.batchCalls(S)):st;return y.updateResult(),C},[y,O]),()=>y.getCurrentResult(),()=>y.getCurrentResult()),R.useEffect(()=>{y.setOptions(m)},[m,y]),Vo(m,p))throw Ir(m,y,c);if(sv({result:p,errorResetBoundary:c,throwOnError:m.throwOnError,query:h.getQueryCache().get(m.queryHash),suspense:m.suspense}))throw p.error;return h.getDefaultOptions().queries?._experimental_afterQuery?.(m,p),m.experimental_prefetchInRender&&!bl&&cv(p,o)&&(v?Ir(m,y,c):h.getQueryCache().get(m.queryHash)?.promise)?.catch(st).finally(()=>{y.updateResult()}),m.notifyOnChangeProps?p:y.trackResult(p)}function F0(n,r){return ai(n,bu,r)}function $0(n,r){return ai({...n,enabled:!0,suspense:!0,throwOnError:Io,placeholderData:void 0},bu,r)}function P0(n,r){return ai({...n,enabled:!0,suspense:!0,throwOnError:Io},tv,r)}function W0(n,r){return fv({...n,queries:n.queries.map(s=>({...s,suspense:!0,throwOnError:Io,enabled:!0,placeholderData:void 0}))},r)}function I0(n,r){const s=xu(r);s.getQueryState(n.queryKey)||s.prefetchQuery(n)}function eg(n,r){const s=xu(r);s.getQueryState(n.queryKey)||s.prefetchInfiniteQuery(n)}function tg(n,r){const s=xu(r),[o]=R.useState(()=>new V0(s,n));R.useEffect(()=>{o.setOptions(n)},[o,n]);const c=R.useSyncExternalStore(R.useCallback(m=>o.subscribe(Xe.batchCalls(m)),[o]),()=>o.getCurrentResult(),()=>o.getCurrentResult()),h=R.useCallback((m,v)=>{o.mutate(m,v).catch(st)},[o]);if(c.error&&Zm(o.options.throwOnError,[c.error]))throw c.error;return{...c,mutate:h,mutateAsync:c.mutate}}function ag(n,r){return ai(n,tv,r)}function lg(n,r){if(n instanceof RegExp)return{keys:!1,pattern:n};var s,o,c,h,m=[],v="",y=n.split("/");for(y[0]||y.shift();c=y.shift();)s=c[0],s==="*"?(m.push(s),v+=c[1]==="?"?"(?:/(.*))?":"/(.*)"):s===":"?(o=c.indexOf("?",1),h=c.indexOf(".",1),m.push(c.substring(1,~o?o:~h?h:c.length)),v+=~o&&!~h?"(?:/([^/]+?))?":"/([^/]+?)",~h&&(v+=(~o?"?":"")+"\\"+c.substring(h))):v+="/"+c;return{keys:m,pattern:new RegExp("^"+v+(r?"(?=$|/)":"/?$"),"i")}}var Mo={exports:{}},Ao={};/**
 * @license React
 * use-sync-external-store-shim.production.js
 *
 * Copyright (c) Meta Platforms, Inc. and affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */var Om;function ng(){if(Om)return Ao;Om=1;var n=ti();function r(S,C){return S===C&&(S!==0||1/S===1/C)||S!==S&&C!==C}var s=typeof Object.is=="function"?Object.is:r,o=n.useState,c=n.useEffect,h=n.useLayoutEffect,m=n.useDebugValue;function v(S,C){var w=C(),G=o({inst:{value:w,getSnapshot:C}}),_=G[0].inst,F=G[1];return h(function(){_.value=w,_.getSnapshot=C,y(_)&&F({inst:_})},[S,w,C]),c(function(){return y(_)&&F({inst:_}),S(function(){y(_)&&F({inst:_})})},[S]),m(w),w}function y(S){var C=S.getSnapshot;S=S.value;try{var w=C();return!s(S,w)}catch{return!0}}function p(S,C){return C()}var O=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?p:v;return Ao.useSyncExternalStore=n.useSyncExternalStore!==void 0?n.useSyncExternalStore:O,Ao}var _m;function ug(){return _m||(_m=1,Mo.exports=ng()),Mo.exports}var rg=ug();const ig=Xm.useInsertionEffect,sg=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",og=sg?R.useLayoutEffect:R.useEffect,cg=ig||og,dv=n=>{const r=R.useRef([n,(...s)=>r[0](...s)]).current;return cg(()=>{r[0]=n}),r[1]},fg="popstate",ec="pushState",tc="replaceState",dg="hashchange",Nm=[fg,ec,tc,dg],hg=n=>{for(const r of Nm)addEventListener(r,n);return()=>{for(const r of Nm)removeEventListener(r,n)}},hv=(n,r)=>rg.useSyncExternalStore(hg,n,r),mg=()=>location.search,vg=({ssrSearch:n=""}={})=>hv(mg,()=>n),Cm=()=>location.pathname,yg=({ssrPath:n}={})=>hv(Cm,n?()=>n:Cm),pg=(n,{replace:r=!1,state:s=null}={})=>history[r?tc:ec](s,"",n),gg=(n={})=>[yg(n),pg],Em=Symbol.for("wouter_v3");if(typeof history<"u"&&typeof window[Em]>"u"){for(const n of[ec,tc]){const r=history[n];history[n]=function(){const s=r.apply(this,arguments),o=new Event(n);return o.arguments=arguments,dispatchEvent(o),s}}Object.defineProperty(window,Em,{value:!0})}const bg=(n,r)=>r.toLowerCase().indexOf(n.toLowerCase())?"~"+r:r.slice(n.length)||"/",mv=(n="")=>n==="/"?"":n,xg=(n,r)=>n[0]==="~"?n.slice(1):mv(r)+n,Sg=(n="",r)=>bg(Ko(mv(n)),Ko(r)),jg=n=>n[0]==="?"?n.slice(1):n,Ko=n=>{try{return decodeURI(n)}catch{return n}},Og=n=>Ko(jg(n)),vv={hook:gg,searchHook:vg,parser:lg,base:"",ssrPath:void 0,ssrSearch:void 0,hrefs:n=>n},yv=R.createContext(vv),fn=()=>R.useContext(yv),pv={},gv=R.createContext(pv),li=()=>R.useContext(gv),ni=n=>{const[r,s]=n.hook(n);return[Sg(n.base,r),dv((o,c)=>s(xg(o,n.base),c))]},bv=()=>ni(fn()),xv=()=>{const n=fn();return Og(n.searchHook(n))},Sv=(n,r,s,o)=>{const{pattern:c,keys:h}=r instanceof RegExp?{keys:!1,pattern:r}:n(r||"*",o),m=c.exec(s)||[],[v,...y]=m;return v!==void 0?[!0,(()=>{const p=h!==!1?Object.fromEntries(h.map((S,C)=>[S,y[C]])):m.groups;let O={...y};return p&&Object.assign(O,p),O})(),...o?[v]:[]]:[!1,null]},_g=({children:n,...r})=>{const s=fn(),o=r.hook?vv:s;let c=o;const[h,m]=r.ssrPath?.split("?")??[];m&&(r.ssrSearch=m,r.ssrPath=h),r.hrefs=r.hrefs??r.hook?.hrefs;let v=R.useRef({}),y=v.current,p=y;for(let O in o){const S=O==="base"?o[O]+(r[O]||""):r[O]||o[O];y===p&&S!==p[O]&&(v.current=p={...p}),p[O]=S,S!==o[O]&&(c=p)}return R.createElement(yv.Provider,{value:c,children:n})},Tm=({children:n,component:r},s)=>r?R.createElement(r,{params:s}):typeof n=="function"?n(s):n,Ng=n=>{let r=R.useRef(pv),s=r.current;for(const o in n)n[o]!==s[o]&&(s=n);return Object.keys(n).length===0&&(s=n),r.current=s},Gt=({path:n,nest:r,match:s,...o})=>{const c=fn(),[h]=ni(c),[m,v,y]=s??Sv(c.parser,n,h,r),p=Ng({...li(),...v});if(!m)return null;const O=y?R.createElement(_g,{base:y},Tm(o,p)):Tm(o,p);return R.createElement(gv.Provider,{value:p,children:O})};R.forwardRef((n,r)=>{const s=fn(),[o,c]=ni(s),{to:h="",href:m=h,onClick:v,asChild:y,children:p,className:O,replace:S,state:C,...w}=n,G=dv(F=>{F.ctrlKey||F.metaKey||F.altKey||F.shiftKey||F.button!==0||(v?.(F),F.defaultPrevented||(F.preventDefault(),c(m,n)))}),_=s.hrefs(m[0]==="~"?m.slice(1):s.base+m,s);return y&&R.isValidElement(p)?R.cloneElement(p,{onClick:G,href:_}):R.createElement("a",{...w,onClick:G,href:_,className:O?.call?O(o===m):O,children:p,ref:r})});const jv=n=>Array.isArray(n)?n.flatMap(r=>jv(r&&r.type===R.Fragment?r.props.children:r)):[n],Cg=({children:n,location:r})=>{const s=fn(),[o]=ni(s);for(const c of jv(n)){let h=0;if(R.isValidElement(c)&&(h=Sv(s.parser,c.props.path,r||o,c.props.nest))[0])return R.cloneElement(c,{match:h})}return null};function xl(n){return!!n&&!Array.isArray(n)&&typeof n=="object"}const Eg=typeof Symbol=="function"&&!!Symbol.asyncIterator;function Ov(n){return Eg&&xl(n)&&Symbol.asyncIterator in n}var Tg=Object.create,_v=Object.defineProperty,Mg=Object.getOwnPropertyDescriptor,Nv=Object.getOwnPropertyNames,Ag=Object.getPrototypeOf,zg=Object.prototype.hasOwnProperty,Su=(n,r)=>function(){return r||(0,n[Nv(n)[0]])((r={exports:{}}).exports,r),r.exports},Dg=(n,r,s,o)=>{if(r&&typeof r=="object"||typeof r=="function")for(var c=Nv(r),h=0,m=c.length,v;h<m;h++)v=c[h],!zg.call(n,v)&&v!==s&&_v(n,v,{get:(y=>r[y]).bind(null,v),enumerable:!(o=Mg(r,v))||o.enumerable});return n},ui=(n,r,s)=>(s=n!=null?Tg(Ag(n)):{},Dg(_v(s,"default",{value:n,enumerable:!0}),n));const Cv=()=>{},Mm=n=>{Object.freeze&&Object.freeze(n)};function Ev(n,r,s){var o;const c=r.join(".");return(o=s[c])!==null&&o!==void 0||(s[c]=new Proxy(Cv,{get(h,m){if(!(typeof m!="string"||m==="then"))return Ev(n,[...r,m],s)},apply(h,m,v){const y=r[r.length-1];let p={args:v,path:r};return y==="call"?p={args:v.length>=2?[v[1]]:[],path:r.slice(0,-1)}:y==="apply"&&(p={args:v.length>=2?v[1]:[],path:r.slice(0,-1)}),Mm(p.args),Mm(p.path),n(p)}})),s[c]}const ri=n=>Ev(n,[],Object.create(null)),ac=n=>new Proxy(Cv,{get(r,s){if(s!=="then")return n(s)}});var Tv=Su({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/typeof.js"(n,r){function s(o){"@babel/helpers - typeof";return r.exports=s=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(c){return typeof c}:function(c){return c&&typeof Symbol=="function"&&c.constructor===Symbol&&c!==Symbol.prototype?"symbol":typeof c},r.exports.__esModule=!0,r.exports.default=r.exports,s(o)}r.exports=s,r.exports.__esModule=!0,r.exports.default=r.exports}}),Ug=Su({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/toPrimitive.js"(n,r){var s=Tv().default;function o(c,h){if(s(c)!="object"||!c)return c;var m=c[Symbol.toPrimitive];if(m!==void 0){var v=m.call(c,h||"default");if(s(v)!="object")return v;throw new TypeError("@@toPrimitive must return a primitive value.")}return(h==="string"?String:Number)(c)}r.exports=o,r.exports.__esModule=!0,r.exports.default=r.exports}}),Rg=Su({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/toPropertyKey.js"(n,r){var s=Tv().default,o=Ug();function c(h){var m=o(h,"string");return s(m)=="symbol"?m:m+""}r.exports=c,r.exports.__esModule=!0,r.exports.default=r.exports}}),Mv=Su({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/defineProperty.js"(n,r){var s=Rg();function o(c,h,m){return(h=s(h))in c?Object.defineProperty(c,h,{value:m,enumerable:!0,configurable:!0,writable:!0}):c[h]=m,c}r.exports=o,r.exports.__esModule=!0,r.exports.default=r.exports}}),lc=Su({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/objectSpread2.js"(n,r){var s=Mv();function o(h,m){var v=Object.keys(h);if(Object.getOwnPropertySymbols){var y=Object.getOwnPropertySymbols(h);m&&(y=y.filter(function(p){return Object.getOwnPropertyDescriptor(h,p).enumerable})),v.push.apply(v,y)}return v}function c(h){for(var m=1;m<arguments.length;m++){var v=arguments[m]!=null?arguments[m]:{};m%2?o(Object(v),!0).forEach(function(y){s(h,y,v[y])}):Object.getOwnPropertyDescriptors?Object.defineProperties(h,Object.getOwnPropertyDescriptors(v)):o(Object(v)).forEach(function(y){Object.defineProperty(h,y,Object.getOwnPropertyDescriptor(v,y))})}return h}r.exports=c,r.exports.__esModule=!0,r.exports.default=r.exports}});ui(lc());ui(Mv());var Yr=ui(lc());function qg(n,r){if("error"in n){const o=r.deserialize(n.error);return{ok:!1,error:(0,Yr.default)((0,Yr.default)({},n),{},{error:o})}}return{ok:!0,result:(0,Yr.default)((0,Yr.default)({},n.result),(!n.result.type||n.result.type==="data")&&{type:"data",data:r.deserialize(n.result.data)})}}var zo=class extends Error{constructor(){super("Unable to transform response from server")}};function wg(n,r){let s;try{s=qg(n,r)}catch{throw new zo}if(!s.ok&&(!xl(s.error.error)||typeof s.error.error.code!="number"))throw new zo;if(s.ok&&!xl(s.result))throw new zo;return s}ui(lc());function ii(n){const r={subscribe(s){let o=null,c=!1,h=!1,m=!1;function v(){if(o===null){m=!0;return}h||(h=!0,typeof o=="function"?o():o&&o.unsubscribe())}return o=n({next(y){var p;c||(p=s.next)===null||p===void 0||p.call(s,y)},error(y){var p;c||(c=!0,(p=s.error)===null||p===void 0||p.call(s,y),v())},complete(){var y;c||(c=!0,(y=s.complete)===null||y===void 0||y.call(s),v())}}),m&&v(),{unsubscribe:v}},pipe(...s){return s.reduce(Qg,r)}};return r}function Qg(n,r){return r(n)}function kg(n){const r=new AbortController;return new Promise((o,c)=>{let h=!1;function m(){h||(h=!0,v.unsubscribe())}r.signal.addEventListener("abort",()=>{c(r.signal.reason)});const v=n.subscribe({next(y){h=!0,o(y),m()},error(y){c(y)},complete(){r.abort(),m()}})})}var Hg=Object.create,Av=Object.defineProperty,Bg=Object.getOwnPropertyDescriptor,zv=Object.getOwnPropertyNames,Lg=Object.getPrototypeOf,Gg=Object.prototype.hasOwnProperty,Pa=(n,r)=>function(){return r||(0,n[zv(n)[0]])((r={exports:{}}).exports,r),r.exports},Yg=(n,r,s,o)=>{if(r&&typeof r=="object"||typeof r=="function")for(var c=zv(r),h=0,m=c.length,v;h<m;h++)v=c[h],!Gg.call(n,v)&&v!==s&&Av(n,v,{get:(y=>r[y]).bind(null,v),enumerable:!(o=Bg(r,v))||o.enumerable});return n},jl=(n,r,s)=>(s=n!=null?Hg(Lg(n)):{},Yg(r||!n||!n.__esModule?Av(s,"default",{value:n,enumerable:!0}):s,n)),Xg=Pa({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/objectWithoutPropertiesLoose.js"(n,r){function s(o,c){if(o==null)return{};var h={};for(var m in o)if({}.hasOwnProperty.call(o,m)){if(c.includes(m))continue;h[m]=o[m]}return h}r.exports=s,r.exports.__esModule=!0,r.exports.default=r.exports}}),Vg=Pa({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/objectWithoutProperties.js"(n,r){var s=Xg();function o(c,h){if(c==null)return{};var m,v,y=s(c,h);if(Object.getOwnPropertySymbols){var p=Object.getOwnPropertySymbols(c);for(v=0;v<p.length;v++)m=p[v],h.includes(m)||{}.propertyIsEnumerable.call(c,m)&&(y[m]=c[m])}return y}r.exports=o,r.exports.__esModule=!0,r.exports.default=r.exports}}),Dv=Pa({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/typeof.js"(n,r){function s(o){"@babel/helpers - typeof";return r.exports=s=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(c){return typeof c}:function(c){return c&&typeof Symbol=="function"&&c.constructor===Symbol&&c!==Symbol.prototype?"symbol":typeof c},r.exports.__esModule=!0,r.exports.default=r.exports,s(o)}r.exports=s,r.exports.__esModule=!0,r.exports.default=r.exports}}),Kg=Pa({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/toPrimitive.js"(n,r){var s=Dv().default;function o(c,h){if(s(c)!="object"||!c)return c;var m=c[Symbol.toPrimitive];if(m!==void 0){var v=m.call(c,h||"default");if(s(v)!="object")return v;throw new TypeError("@@toPrimitive must return a primitive value.")}return(h==="string"?String:Number)(c)}r.exports=o,r.exports.__esModule=!0,r.exports.default=r.exports}}),Zg=Pa({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/toPropertyKey.js"(n,r){var s=Dv().default,o=Kg();function c(h){var m=o(h,"string");return s(m)=="symbol"?m:m+""}r.exports=c,r.exports.__esModule=!0,r.exports.default=r.exports}}),Jg=Pa({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/defineProperty.js"(n,r){var s=Zg();function o(c,h,m){return(h=s(h))in c?Object.defineProperty(c,h,{value:m,enumerable:!0,configurable:!0,writable:!0}):c[h]=m,c}r.exports=o,r.exports.__esModule=!0,r.exports.default=r.exports}}),ju=Pa({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/objectSpread2.js"(n,r){var s=Jg();function o(h,m){var v=Object.keys(h);if(Object.getOwnPropertySymbols){var y=Object.getOwnPropertySymbols(h);m&&(y=y.filter(function(p){return Object.getOwnPropertyDescriptor(h,p).enumerable})),v.push.apply(v,y)}return v}function c(h){for(var m=1;m<arguments.length;m++){var v=arguments[m]!=null?arguments[m]:{};m%2?o(Object(v),!0).forEach(function(y){s(h,y,v[y])}):Object.getOwnPropertyDescriptors?Object.defineProperties(h,Object.getOwnPropertyDescriptors(v)):o(Object(v)).forEach(function(y){Object.defineProperty(h,y,Object.getOwnPropertyDescriptor(v,y))})}return h}r.exports=c,r.exports.__esModule=!0,r.exports.default=r.exports}}),Fg=jl(Vg(),1),Am=jl(ju(),1);const $g=["cursor","direction"];function aa(n,r,s){const o=n.flatMap(c=>c.split("."));if(!r&&(!s||s==="any"))return o.length?[o]:[];if(s==="infinite"&&xl(r)&&("direction"in r||"cursor"in r)){const{cursor:c,direction:h}=r,m=(0,Fg.default)(r,$g);return[o,{input:m,type:"infinite"}]}return[o,(0,Am.default)((0,Am.default)({},typeof r<"u"&&r!==zt&&{input:r}),s&&s!=="any"&&{type:s})]}function Jr(n){return aa(n,void 0,"any")}var Pg=Object.create,Uv=Object.defineProperty,Wg=Object.getOwnPropertyDescriptor,Rv=Object.getOwnPropertyNames,Ig=Object.getPrototypeOf,e1=Object.prototype.hasOwnProperty,la=(n,r)=>function(){return r||(0,n[Rv(n)[0]])((r={exports:{}}).exports,r),r.exports},t1=(n,r,s,o)=>{if(r&&typeof r=="object"||typeof r=="function")for(var c=Rv(r),h=0,m=c.length,v;h<m;h++)v=c[h],!e1.call(n,v)&&v!==s&&Uv(n,v,{get:(y=>r[y]).bind(null,v),enumerable:!(o=Wg(r,v))||o.enumerable});return n},Ze=(n,r,s)=>(s=n!=null?Pg(Ig(n)):{},t1(r||!n||!n.__esModule?Uv(s,"default",{value:n,enumerable:!0}):s,n)),qv=la({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/typeof.js"(n,r){function s(o){"@babel/helpers - typeof";return r.exports=s=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(c){return typeof c}:function(c){return c&&typeof Symbol=="function"&&c.constructor===Symbol&&c!==Symbol.prototype?"symbol":typeof c},r.exports.__esModule=!0,r.exports.default=r.exports,s(o)}r.exports=s,r.exports.__esModule=!0,r.exports.default=r.exports}}),a1=la({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/toPrimitive.js"(n,r){var s=qv().default;function o(c,h){if(s(c)!="object"||!c)return c;var m=c[Symbol.toPrimitive];if(m!==void 0){var v=m.call(c,h||"default");if(s(v)!="object")return v;throw new TypeError("@@toPrimitive must return a primitive value.")}return(h==="string"?String:Number)(c)}r.exports=o,r.exports.__esModule=!0,r.exports.default=r.exports}}),l1=la({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/toPropertyKey.js"(n,r){var s=qv().default,o=a1();function c(h){var m=o(h,"string");return s(m)=="symbol"?m:m+""}r.exports=c,r.exports.__esModule=!0,r.exports.default=r.exports}}),Ol=la({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/defineProperty.js"(n,r){var s=l1();function o(c,h,m){return(h=s(h))in c?Object.defineProperty(c,h,{value:m,enumerable:!0,configurable:!0,writable:!0}):c[h]=m,c}r.exports=o,r.exports.__esModule=!0,r.exports.default=r.exports}}),Ft=la({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/objectSpread2.js"(n,r){var s=Ol();function o(h,m){var v=Object.keys(h);if(Object.getOwnPropertySymbols){var y=Object.getOwnPropertySymbols(h);m&&(y=y.filter(function(p){return Object.getOwnPropertyDescriptor(h,p).enumerable})),v.push.apply(v,y)}return v}function c(h){for(var m=1;m<arguments.length;m++){var v=arguments[m]!=null?arguments[m]:{};m%2?o(Object(v),!0).forEach(function(y){s(h,y,v[y])}):Object.getOwnPropertyDescriptors?Object.defineProperties(h,Object.getOwnPropertyDescriptors(v)):o(Object(v)).forEach(function(y){Object.defineProperty(h,y,Object.getOwnPropertyDescriptor(v,y))})}return h}r.exports=c,r.exports.__esModule=!0,r.exports.default=r.exports}});function n1(n){return r=>{let s=0,o=null;const c=[];function h(){o||(o=r.subscribe({next(v){for(const p of c){var y;(y=p.next)===null||y===void 0||y.call(p,v)}},error(v){for(const p of c){var y;(y=p.error)===null||y===void 0||y.call(p,v)}},complete(){for(const y of c){var v;(v=y.complete)===null||v===void 0||v.call(y)}}}))}function m(){if(s===0&&o){const v=o;o=null,v.unsubscribe()}}return ii(v=>(s++,c.push(v),h(),{unsubscribe(){s--,m();const y=c.findIndex(p=>p===v);y>-1&&c.splice(y,1)}}))}}function u1(n){let r=n;const s=[],o=m=>{r!==void 0&&m.next(r),s.push(m)},c=m=>{s.splice(s.indexOf(m),1)},h=ii(m=>(o(m),()=>{c(m)}));return h.next=m=>{if(r!==m){r=m;for(const v of s)v.next(m)}},h.get=()=>r,h}function r1(n){return ii(r=>{function s(c=0,h=n.op){const m=n.links[c];if(!m)throw new Error("No more links to execute - did you forget to add an ending link?");return m({op:h,next(y){return s(c+1,y)}})}return s().subscribe(r)})}var Xr=Ze(Ol(),1),cn=Ze(Ft(),1);function i1(n){return n instanceof ei}function s1(n){return xl(n)&&xl(n.error)&&typeof n.error.code=="number"&&typeof n.error.message=="string"}function o1(n,r){return typeof n=="string"?n:xl(n)&&typeof n.message=="string"?n.message:r}var ei=class Fr extends Error{constructor(r,s){var o,c;const h=s?.cause;super(r,{cause:h}),(0,Xr.default)(this,"cause",void 0),(0,Xr.default)(this,"shape",void 0),(0,Xr.default)(this,"data",void 0),(0,Xr.default)(this,"meta",void 0),this.meta=s?.meta,this.cause=h,this.shape=s==null||(o=s.result)===null||o===void 0?void 0:o.error,this.data=s==null||(c=s.result)===null||c===void 0?void 0:c.error.data,this.name="TRPCClientError",Object.setPrototypeOf(this,Fr.prototype)}static from(r,s={}){const o=r;return i1(o)?(s.meta&&(o.meta=(0,cn.default)((0,cn.default)({},o.meta),s.meta)),o):s1(o)?new Fr(o.error.message,(0,cn.default)((0,cn.default)({},s),{},{result:o})):new Fr(o1(o,"Unknown error"),(0,cn.default)((0,cn.default)({},s),{},{cause:o}))}};function c1(n){const r=n;return r?"input"in r?r:{input:r,output:r}:{input:{serialize:s=>s,deserialize:s=>s},output:{serialize:s=>s,deserialize:s=>s}}}const zm=n=>typeof n=="function";function f1(n){if(n)return n;if(typeof window<"u"&&zm(window.fetch))return window.fetch;if(typeof globalThis<"u"&&zm(globalThis.fetch))return globalThis.fetch;throw new Error("No fetch implementation found")}var pu=Ze(Ft());function d1(n){return{url:n.url.toString(),fetch:n.fetch,transformer:c1(n.transformer),methodOverride:n.methodOverride}}function h1(n){const r={};for(let s=0;s<n.length;s++){const o=n[s];r[s]=o}return r}const m1={query:"GET",mutation:"POST",subscription:"PATCH"};function wv(n){return"input"in n?n.transformer.input.serialize(n.input):h1(n.inputs.map(r=>n.transformer.input.serialize(r)))}const Qv=n=>{const r=n.url.split("?");let o=r[0].replace(/\/$/,"")+"/"+n.path;const c=[];if(r[1]&&c.push(r[1]),"inputs"in n&&c.push("batch=1"),n.type==="query"||n.type==="subscription"){const h=wv(n);h!==void 0&&n.methodOverride!=="POST"&&c.push(`input=${encodeURIComponent(JSON.stringify(h))}`)}return c.length&&(o+="?"+c.join("&")),o},v1=n=>{if(n.type==="query"&&n.methodOverride!=="POST")return;const r=wv(n);return r!==void 0?JSON.stringify(r):void 0},y1=n=>x1((0,pu.default)((0,pu.default)({},n),{},{contentTypeHeader:"application/json",getUrl:Qv,getBody:v1}));var p1=class extends Error{constructor(){const n="AbortError";super(n),this.name=n,this.message=n}};const g1=n=>{var r;if(n?.aborted)throw(r=n.throwIfAborted)===null||r===void 0||r.call(n),typeof DOMException<"u"?new DOMException("AbortError","AbortError"):new p1};async function b1(n){var r;g1(n.signal);const s=n.getUrl(n),o=n.getBody(n),c=(r=n.methodOverride)!==null&&r!==void 0?r:m1[n.type],h=await(async()=>{const v=await n.headers();return Symbol.iterator in v?Object.fromEntries(v):v})(),m=(0,pu.default)((0,pu.default)((0,pu.default)({},n.contentTypeHeader&&c!=="GET"?{"content-type":n.contentTypeHeader}:{}),n.trpcAcceptHeader?{"trpc-accept":n.trpcAcceptHeader}:void 0),h);return f1(n.fetch)(s,{method:c,signal:n.signal,body:o,headers:m})}async function x1(n){const r={},s=await b1(n);r.response=s;const o=await s.json();return r.responseJSON=o,{json:o,meta:r}}Ze(Ft(),1);const Dm=()=>{throw new Error("Something went wrong. Please submit an issue at https://github.com/trpc/trpc/issues/new")};function Um(n){let r=null,s=null;const o=()=>{clearTimeout(s),s=null,r=null};function c(v){const y=[[]];let p=0;for(;;){const C=v[p];if(!C)break;const w=y[y.length-1];if(C.aborted){var O;(O=C.reject)===null||O===void 0||O.call(C,new Error("Aborted")),p++;continue}if(n.validate(w.concat(C).map(_=>_.key))){w.push(C),p++;continue}if(w.length===0){var S;(S=C.reject)===null||S===void 0||S.call(C,new Error("Input is too big for a single dispatch")),p++;continue}y.push([])}return y}function h(){const v=c(r);o();for(const y of v){if(!y.length)continue;const p={items:y};for(const S of y)S.batch=p;n.fetch(p.items.map(S=>S.key)).then(async S=>{await Promise.all(S.map(async(w,G)=>{const _=p.items[G];try{var F;const ce=await Promise.resolve(w);(F=_.resolve)===null||F===void 0||F.call(_,ce)}catch(ce){var ne;(ne=_.reject)===null||ne===void 0||ne.call(_,ce)}_.batch=null,_.reject=null,_.resolve=null}));for(const w of p.items){var C;(C=w.reject)===null||C===void 0||C.call(w,new Error("Missing result")),w.batch=null}}).catch(S=>{for(const w of p.items){var C;(C=w.reject)===null||C===void 0||C.call(w,S),w.batch=null}})}}function m(v){var y;const p={aborted:!1,key:v,batch:null,resolve:Dm,reject:Dm},O=new Promise((S,C)=>{var w;p.reject=C,p.resolve=S,(w=r)!==null&&w!==void 0||(r=[]),r.push(p)});return(y=s)!==null&&y!==void 0||(s=setTimeout(h)),O}return{load:m}}function S1(...n){const r=new AbortController,s=n.length;let o=0;const c=()=>{++o===s&&r.abort()};for(const h of n)h?.aborted?c():h?.addEventListener("abort",c,{once:!0});return r.signal}var Vr=Ze(Ft(),1);function j1(n){var r,s;const o=d1(n),c=(r=n.maxURLLength)!==null&&r!==void 0?r:1/0,h=(s=n.maxItems)!==null&&s!==void 0?s:1/0;return()=>{const m=O=>({validate(S){if(c===1/0&&h===1/0)return!0;if(S.length>h)return!1;const C=S.map(_=>_.path).join(","),w=S.map(_=>_.input);return Qv((0,Vr.default)((0,Vr.default)({},o),{},{type:O,path:C,inputs:w,signal:null})).length<=c},async fetch(S){const C=S.map(ce=>ce.path).join(","),w=S.map(ce=>ce.input),G=S1(...S.map(ce=>ce.signal)),_=await y1((0,Vr.default)((0,Vr.default)({},o),{},{path:C,inputs:w,type:O,headers(){return n.headers?typeof n.headers=="function"?n.headers({opList:S}):n.headers:{}},signal:G}));return(Array.isArray(_.json)?_.json:S.map(()=>_.json)).map(ce=>({meta:_.meta,json:ce}))}}),v=Um(m("query")),y=Um(m("mutation")),p={query:v,mutation:y};return({op:O})=>ii(S=>{/* istanbul ignore if -- @preserve */if(O.type==="subscription")throw new Error("Subscriptions are unsupported by `httpLink` - use `httpSubscriptionLink` or `wsLink`");const w=p[O.type].load(O);let G;return w.then(_=>{G=_;const F=wg(_.json,o.transformer.output);if(!F.ok){S.error(ei.from(F.error,{meta:_.meta}));return}S.next({context:_.meta,result:F.result}),S.complete()}).catch(_=>{S.error(ei.from(_,{meta:G?.meta}))}),()=>{}})}}Ze(Ft(),1);const kv=(n,...r)=>typeof n=="function"?n(...r):n;Ze(Ol(),1);function O1(){let n,r;return{promise:new Promise((o,c)=>{n=o,r=c}),resolve:n,reject:r}}async function _1(n){const r=await kv(n.url);if(!n.connectionParams)return r;const o=`${r.includes("?")?"&":"?"}connectionParams=1`;return r+o}async function N1(n){const r={method:"connectionParams",data:await kv(n)};return JSON.stringify(r)}Ze(Ol(),1);var gl=Ze(Ol(),1);function C1(n){const{promise:r,resolve:s,reject:o}=O1();return n.addEventListener("open",()=>{n.removeEventListener("error",o),s()}),n.addEventListener("error",o),r}function E1(n,{intervalMs:r,pongTimeoutMs:s}){let o,c;function h(){o=setTimeout(()=>{n.send("PING"),c=setTimeout(()=>{n.close()},s)},r)}function m(){clearTimeout(o),h()}function v(){clearTimeout(c),m()}n.addEventListener("open",h),n.addEventListener("message",({data:y})=>{clearTimeout(o),h(),y==="PONG"&&v()}),n.addEventListener("close",()=>{clearTimeout(o),clearTimeout(c)})}var T1=class Zo{constructor(r){var s;if((0,gl.default)(this,"id",++Zo.connectCount),(0,gl.default)(this,"WebSocketPonyfill",void 0),(0,gl.default)(this,"urlOptions",void 0),(0,gl.default)(this,"keepAliveOpts",void 0),(0,gl.default)(this,"wsObservable",u1(null)),(0,gl.default)(this,"openPromise",null),this.WebSocketPonyfill=(s=r.WebSocketPonyfill)!==null&&s!==void 0?s:WebSocket,!this.WebSocketPonyfill)throw new Error("No WebSocket implementation found - you probably don't want to use this on the server, but if you do you need to pass a `WebSocket`-ponyfill");this.urlOptions=r.urlOptions,this.keepAliveOpts=r.keepAlive}get ws(){return this.wsObservable.get()}set ws(r){this.wsObservable.next(r)}isOpen(){return!!this.ws&&this.ws.readyState===this.WebSocketPonyfill.OPEN&&!this.openPromise}isClosed(){return!!this.ws&&(this.ws.readyState===this.WebSocketPonyfill.CLOSING||this.ws.readyState===this.WebSocketPonyfill.CLOSED)}async open(){var r=this;if(r.openPromise)return r.openPromise;r.id=++Zo.connectCount;const s=_1(r.urlOptions).then(o=>new r.WebSocketPonyfill(o));r.openPromise=s.then(async o=>{r.ws=o,o.addEventListener("message",function({data:c}){c==="PING"&&this.send("PONG")}),r.keepAliveOpts.enabled&&E1(o,r.keepAliveOpts),o.addEventListener("close",()=>{r.ws===o&&(r.ws=null)}),await C1(o),r.urlOptions.connectionParams&&o.send(await N1(r.urlOptions.connectionParams))});try{await r.openPromise}finally{r.openPromise=null}}async close(){var r=this;try{await r.openPromise}finally{var s;(s=r.ws)===null||s===void 0||s.close()}}};(0,gl.default)(T1,"connectCount",0);Ze(Ol(),1);Ze(Ft(),1);var Do=Ze(Ol(),1),Rm=Ze(Ft(),1),si=class{constructor(n){(0,Do.default)(this,"links",void 0),(0,Do.default)(this,"runtime",void 0),(0,Do.default)(this,"requestId",void 0),this.requestId=0,this.runtime={},this.links=n.links.map(r=>r(this.runtime))}$request(n){var r;return r1({links:this.links,op:(0,Rm.default)((0,Rm.default)({},n),{},{context:(r=n.context)!==null&&r!==void 0?r:{},id:++this.requestId})}).pipe(n1())}async requestAsPromise(n){var r=this;try{const s=r.$request(n);return(await kg(s)).result.data}catch(s){throw ei.from(s)}}query(n,r,s){return this.requestAsPromise({type:"query",path:n,input:r,context:s?.context,signal:s?.signal})}mutation(n,r,s){return this.requestAsPromise({type:"mutation",path:n,input:r,context:s?.context,signal:s?.signal})}subscription(n,r,s){return this.$request({type:"subscription",path:n,input:r,context:s.context,signal:s.signal}).subscribe({next(c){switch(c.result.type){case"state":{var h;(h=s.onConnectionStateChange)===null||h===void 0||h.call(s,c.result);break}case"started":{var m;(m=s.onStarted)===null||m===void 0||m.call(s,{context:c.context});break}case"stopped":{var v;(v=s.onStopped)===null||v===void 0||v.call(s);break}case"data":case void 0:{var y;(y=s.onData)===null||y===void 0||y.call(s,c.result.data);break}}},error(c){var h;(h=s.onError)===null||h===void 0||h.call(s,c)},complete(){var c;(c=s.onComplete)===null||c===void 0||c.call(s)}})}};const Hv=Symbol.for("trpc_untypedClient"),M1={query:"query",mutate:"mutation",subscribe:"subscription"},A1=n=>M1[n];function Bv(n){const r=ri(({path:s,args:o})=>{const c=[...s],h=A1(c.pop()),m=c.join(".");return n[h](m,...o)});return ac(s=>s===Hv?n:r[s])}function z1(n){const r=new si(n);return Bv(r)}function nc(n){return n[Hv]}Ze(Ft(),1);Ze(Ft(),1);var D1=la({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/asyncIterator.js"(n,r){function s(c){var h,m,v,y=2;for(typeof Symbol<"u"&&(m=Symbol.asyncIterator,v=Symbol.iterator);y--;){if(m&&(h=c[m])!=null)return h.call(c);if(v&&(h=c[v])!=null)return new o(h.call(c));m="@@asyncIterator",v="@@iterator"}throw new TypeError("Object is not async iterable")}function o(c){function h(m){if(Object(m)!==m)return Promise.reject(new TypeError(m+" is not an object."));var v=m.done;return Promise.resolve(m.value).then(function(y){return{value:y,done:v}})}return o=function(v){this.s=v,this.n=v.next},o.prototype={s:null,n:null,next:function(){return h(this.n.apply(this.s,arguments))},return:function(v){var y=this.s.return;return y===void 0?Promise.resolve({value:v,done:!0}):h(y.apply(this.s,arguments))},throw:function(v){var y=this.s.return;return y===void 0?Promise.reject(v):h(y.apply(this.s,arguments))}},new o(c)}r.exports=s,r.exports.__esModule=!0,r.exports.default=r.exports}});Ze(D1(),1);Ze(Ft(),1);var U1=la({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/usingCtx.js"(n,r){function s(){var o=typeof SuppressedError=="function"?SuppressedError:function(v,y){var p=Error();return p.name="SuppressedError",p.error=v,p.suppressed=y,p},c={},h=[];function m(v,y){if(y!=null){if(Object(y)!==y)throw new TypeError("using declarations can only be used with objects, functions, null, or undefined.");if(v)var p=y[Symbol.asyncDispose||Symbol.for("Symbol.asyncDispose")];if(p===void 0&&(p=y[Symbol.dispose||Symbol.for("Symbol.dispose")],v))var O=p;if(typeof p!="function")throw new TypeError("Object is not disposable.");O&&(p=function(){try{O.call(y)}catch(C){return Promise.reject(C)}}),h.push({v:y,d:p,a:v})}else v&&h.push({d:y,a:v});return y}return{e:c,u:m.bind(null,!1),a:m.bind(null,!0),d:function(){var y,p=this.e,O=0;function S(){for(;y=h.pop();)try{if(!y.a&&O===1)return O=0,h.push(y),Promise.resolve().then(S);if(y.d){var w=y.d.call(y.v);if(y.a)return O|=2,Promise.resolve(w).then(S,C)}else O|=1}catch(G){return C(G)}if(O===1)return p!==c?Promise.reject(p):Promise.resolve();if(p!==c)throw p}function C(w){return p=p!==c?new o(w,p):w,S()}return S()}}}r.exports=s,r.exports.__esModule=!0,r.exports.default=r.exports}}),Lv=la({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/OverloadYield.js"(n,r){function s(o,c){this.v=o,this.k=c}r.exports=s,r.exports.__esModule=!0,r.exports.default=r.exports}}),R1=la({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/awaitAsyncGenerator.js"(n,r){var s=Lv();function o(c){return new s(c,0)}r.exports=o,r.exports.__esModule=!0,r.exports.default=r.exports}}),q1=la({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/wrapAsyncGenerator.js"(n,r){var s=Lv();function o(h){return function(){return new c(h.apply(this,arguments))}}function c(h){var m,v;function y(O,S){try{var C=h[O](S),w=C.value,G=w instanceof s;Promise.resolve(G?w.v:w).then(function(_){if(G){var F=O==="return"?"return":"next";if(!w.k||_.done)return y(F,_);_=h[F](_).value}p(C.done?"return":"normal",_)},function(_){y("throw",_)})}catch(_){p("throw",_)}}function p(O,S){switch(O){case"return":m.resolve({value:S,done:!0});break;case"throw":m.reject(S);break;default:m.resolve({value:S,done:!1})}(m=m.next)?y(m.key,m.arg):v=null}this._invoke=function(O,S){return new Promise(function(C,w){var G={key:O,arg:S,resolve:C,reject:w,next:null};v?v=v.next=G:(m=v=G,y(O,S))})},typeof h.return!="function"&&(this.return=void 0)}c.prototype[typeof Symbol=="function"&&Symbol.asyncIterator||"@@asyncIterator"]=function(){return this},c.prototype.next=function(h){return this._invoke("next",h)},c.prototype.throw=function(h){return this._invoke("throw",h)},c.prototype.return=function(h){return this._invoke("return",h)},r.exports=o,r.exports.__esModule=!0,r.exports.default=r.exports}});Ze(U1(),1);Ze(R1(),1);Ze(q1(),1);Ze(Ft(),1);function w1(n){return ri(({path:r,args:s})=>{var o;const c=[...r],h=c.pop();if(h==="useMutation")return n[h](c,...s);if(h==="_def")return{path:c};const[m,...v]=s,y=(o=v[0])!==null&&o!==void 0?o:{};return n[h](c,m,y)})}var Uo;const Q1=["client","ssrContext","ssrState","abortOnUnmount"],k1=(Uo=R.createContext)===null||Uo===void 0?void 0:Uo.call(Xm,null),H1=n=>{switch(n){case"queryOptions":case"fetch":case"ensureData":case"prefetch":case"getData":case"setData":case"setQueriesData":return"query";case"infiniteQueryOptions":case"fetchInfinite":case"prefetchInfinite":case"getInfiniteData":case"setInfiniteData":return"infinite";case"setMutationDefaults":case"getMutationDefaults":case"isMutating":case"cancel":case"invalidate":case"refetch":case"reset":return"any"}};function B1(n){return ri(r=>{const s=[...r.path],o=s.pop(),c=[...r.args],h=c.shift(),m=H1(o),v=aa(s,h,m);return{infiniteQueryOptions:()=>n.infiniteQueryOptions(s,v,c[0]),queryOptions:()=>n.queryOptions(s,v,...c),fetch:()=>n.fetchQuery(v,...c),fetchInfinite:()=>n.fetchInfiniteQuery(v,c[0]),prefetch:()=>n.prefetchQuery(v,...c),prefetchInfinite:()=>n.prefetchInfiniteQuery(v,c[0]),ensureData:()=>n.ensureQueryData(v,...c),invalidate:()=>n.invalidateQueries(v,...c),reset:()=>n.resetQueries(v,...c),refetch:()=>n.refetchQueries(v,...c),cancel:()=>n.cancelQuery(v,...c),setData:()=>{n.setQueryData(v,c[0],c[1])},setQueriesData:()=>n.setQueriesData(v,c[0],c[1],c[2]),setInfiniteData:()=>{n.setInfiniteQueryData(v,c[0],c[1])},getData:()=>n.getQueryData(v),getInfiniteData:()=>n.getInfiniteQueryData(v),setMutationDefaults:()=>n.setMutationDefaults(Jr(s),h),getMutationDefaults:()=>n.getMutationDefaults(Jr(s)),isMutating:()=>n.isMutating({mutationKey:Jr(s)})}[o]()})}function L1(n){const r=Bv(n.client),s=B1(n);return ac(o=>{const c=o;return c==="client"?r:Q1.includes(c)?n[c]:s[o]})}var G1=jl(ju(),1);function qm(n){const r=n instanceof si?n:nc(n);return ri(s=>{const o=s.path,c=o.join("."),[h,m]=s.args;return(0,G1.default)({queryKey:aa(o,h,"query"),queryFn:()=>r.query(c,h,m?.trpc)},m)})}var Ro=jl(ju(),1);function ft(n,r,s){var o;const c=n[0];let h=(o=n[1])===null||o===void 0?void 0:o.input;if(s){var m;h=(0,Ro.default)((0,Ro.default)((0,Ro.default)({},(m=h)!==null&&m!==void 0?m:{}),s.pageParam?{cursor:s.pageParam}:{}),{},{direction:s.direction})}return[c.join("."),h,r?.trpc]}var Y1=Pa({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/asyncIterator.js"(n,r){function s(c){var h,m,v,y=2;for(typeof Symbol<"u"&&(m=Symbol.asyncIterator,v=Symbol.iterator);y--;){if(m&&(h=c[m])!=null)return h.call(c);if(v&&(h=c[v])!=null)return new o(h.call(c));m="@@asyncIterator",v="@@iterator"}throw new TypeError("Object is not async iterable")}function o(c){function h(m){if(Object(m)!==m)return Promise.reject(new TypeError(m+" is not an object."));var v=m.done;return Promise.resolve(m.value).then(function(y){return{value:y,done:v}})}return o=function(v){this.s=v,this.n=v.next},o.prototype={s:null,n:null,next:function(){return h(this.n.apply(this.s,arguments))},return:function(v){var y=this.s.return;return y===void 0?Promise.resolve({value:v,done:!0}):h(y.apply(this.s,arguments))},throw:function(v){var y=this.s.return;return y===void 0?Promise.reject(v):h(y.apply(this.s,arguments))}},new o(c)}r.exports=s,r.exports.__esModule=!0,r.exports.default=r.exports}}),X1=jl(Y1(),1);function Jo(n){return{path:n.path.join(".")}}function hu(n){const r=Jo(n);return R.useMemo(()=>r,[r])}async function Gv(n,r,s){const c=r.getQueryCache().build(r,{queryKey:s});c.setState({data:[],status:"success"});const h=[];var m=!1,v=!1,y;try{for(var p=(0,X1.default)(n),O;m=!(O=await p.next()).done;m=!1){const S=O.value;h.push(S),c.setState({data:[...h]})}}catch(S){v=!0,y=S}finally{try{m&&p.return!=null&&await p.return()}finally{if(v)throw y}}return h}var Me=jl(ju(),1);function V1(n){const{client:r,queryClient:s}=n,o=r instanceof si?r:nc(r);return{infiniteQueryOptions:(c,h,m)=>{var v,y;const p=((v=h[1])===null||v===void 0?void 0:v.input)===zt,O=async S=>{var C;const w=(0,Me.default)((0,Me.default)({},m),{},{trpc:(0,Me.default)((0,Me.default)({},m?.trpc),!(m==null||(C=m.trpc)===null||C===void 0)&&C.abortOnUnmount?{signal:S.signal}:{signal:null})});return await o.query(...ft(h,w,{direction:S.direction,pageParam:S.pageParam}))};return Object.assign((0,Me.default)((0,Me.default)({},m),{},{initialData:m?.initialData,queryKey:h,queryFn:p?zt:O,initialPageParam:(y=m?.initialCursor)!==null&&y!==void 0?y:null}),{trpc:Jo({path:c})})},queryOptions:(c,h,m)=>{var v;const y=((v=h[1])===null||v===void 0?void 0:v.input)===zt,p=async O=>{var S;const C=(0,Me.default)((0,Me.default)({},m),{},{trpc:(0,Me.default)((0,Me.default)({},m?.trpc),!(m==null||(S=m.trpc)===null||S===void 0)&&S.abortOnUnmount?{signal:O.signal}:{signal:null})}),w=await o.query(...ft(h,C));return Ov(w)?Gv(w,s,h):w};return Object.assign((0,Me.default)((0,Me.default)({},m),{},{initialData:m?.initialData,queryKey:h,queryFn:y?zt:p}),{trpc:Jo({path:c})})},fetchQuery:(c,h)=>s.fetchQuery((0,Me.default)((0,Me.default)({},h),{},{queryKey:c,queryFn:()=>o.query(...ft(c,h))})),fetchInfiniteQuery:(c,h)=>{var m;return s.fetchInfiniteQuery((0,Me.default)((0,Me.default)({},h),{},{queryKey:c,queryFn:({pageParam:v,direction:y})=>o.query(...ft(c,h,{pageParam:v,direction:y})),initialPageParam:(m=h?.initialCursor)!==null&&m!==void 0?m:null}))},prefetchQuery:(c,h)=>s.prefetchQuery((0,Me.default)((0,Me.default)({},h),{},{queryKey:c,queryFn:()=>o.query(...ft(c,h))})),prefetchInfiniteQuery:(c,h)=>{var m;return s.prefetchInfiniteQuery((0,Me.default)((0,Me.default)({},h),{},{queryKey:c,queryFn:({pageParam:v,direction:y})=>o.query(...ft(c,h,{pageParam:v,direction:y})),initialPageParam:(m=h?.initialCursor)!==null&&m!==void 0?m:null}))},ensureQueryData:(c,h)=>s.ensureQueryData((0,Me.default)((0,Me.default)({},h),{},{queryKey:c,queryFn:()=>o.query(...ft(c,h))})),invalidateQueries:(c,h,m)=>s.invalidateQueries((0,Me.default)((0,Me.default)({},h),{},{queryKey:c}),m),resetQueries:(c,h,m)=>s.resetQueries((0,Me.default)((0,Me.default)({},h),{},{queryKey:c}),m),refetchQueries:(c,h,m)=>s.refetchQueries((0,Me.default)((0,Me.default)({},h),{},{queryKey:c}),m),cancelQuery:(c,h)=>s.cancelQueries({queryKey:c},h),setQueryData:(c,h,m)=>s.setQueryData(c,h,m),setQueriesData:(c,h,m,v)=>s.setQueriesData((0,Me.default)((0,Me.default)({},h),{},{queryKey:c}),m,v),getQueryData:c=>s.getQueryData(c),setInfiniteQueryData:(c,h,m)=>s.setQueryData(c,h,m),getInfiniteQueryData:c=>s.getQueryData(c),setMutationDefaults:(c,h)=>{const m=c[0],v=y=>o.mutation(...ft([m,{input:y}],n));return s.setMutationDefaults(c,typeof h=="function"?h({canonicalMutationFn:v}):h)},getMutationDefaults:c=>s.getMutationDefaults(c),isMutating:c=>s.isMutating((0,Me.default)((0,Me.default)({},c),{},{exact:!0}))}}var $=jl(ju());const wm=(n,r)=>new Proxy(n,{get(o,c){return r(c),o[c]}});function K1(n){var r,s;const o=(r=void 0)!==null&&r!==void 0?r:X=>X.originalFn(),c=(s=void 0)!==null&&s!==void 0?s:k1,h=z1,m=X=>{var V;const{abortOnUnmount:D=!1,queryClient:J,ssrContext:ee}=X,[I,le]=R.useState((V=X.ssrState)!==null&&V!==void 0?V:!1),te=X.client instanceof si?X.client:nc(X.client),ge=R.useMemo(()=>V1({client:te,queryClient:J}),[te,J]),fe=R.useMemo(()=>(0,$.default)({abortOnUnmount:D,queryClient:J,client:te,ssrContext:ee??null,ssrState:I},ge),[D,te,ge,J,ee,I]);return R.useEffect(()=>{le(me=>me?"mounted":!1)},[]),f.jsx(c.Provider,{value:fe,children:X.children})};function v(){const X=R.useContext(c);if(!X)throw new Error("Unable to find tRPC Context. Did you forget to wrap your App inside `withTRPC` HoC?");return X}function y(X,V){var D;const{queryClient:J,ssrState:ee}=v();return ee&&ee!=="mounted"&&((D=J.getQueryCache().find({queryKey:X}))===null||D===void 0?void 0:D.state.status)==="error"?(0,$.default)({retryOnMount:!1},V):V}function p(X,V,D){var J,ee,I,le,te;const ge=v(),{abortOnUnmount:fe,client:me,ssrState:M,queryClient:H,prefetchQuery:K}=ge,re=aa(X,V,"query"),ye=H.getQueryDefaults(re),x=V===zt;typeof window>"u"&&M==="prepass"&&(D==null||(J=D.trpc)===null||J===void 0?void 0:J.ssr)!==!1&&((ee=D?.enabled)!==null&&ee!==void 0?ee:ye?.enabled)!==!1&&!x&&!H.getQueryCache().find({queryKey:re})&&K(re,D);const U=y(re,(0,$.default)((0,$.default)({},ye),D)),B=(I=(le=D==null||(te=D.trpc)===null||te===void 0?void 0:te.abortOnUnmount)!==null&&le!==void 0?le:void 0)!==null&&I!==void 0?I:fe,Y=F0((0,$.default)((0,$.default)({},U),{},{queryKey:re,queryFn:x?V:async W=>{const se=(0,$.default)((0,$.default)({},U),{},{trpc:(0,$.default)((0,$.default)({},U?.trpc),B?{signal:W.signal}:{signal:null})}),xe=await me.query(...ft(re,se));return Ov(xe)?Gv(xe,H,re):xe}}),H);return Y.trpc=hu({path:X}),Y}function O(X,V,D){var J,ee,I;const le=v(),te=aa(X,V,"query"),ge=V===zt,fe=(J=(ee=D==null||(I=D.trpc)===null||I===void 0?void 0:I.abortOnUnmount)!==null&&ee!==void 0?ee:void 0)!==null&&J!==void 0?J:le.abortOnUnmount;I0((0,$.default)((0,$.default)({},D),{},{queryKey:te,queryFn:ge?V:me=>{const M={trpc:(0,$.default)((0,$.default)({},D?.trpc),fe?{signal:me.signal}:{})};return le.client.query(...ft(te,M))}}))}function S(X,V,D){var J,ee,I;const le=v(),te=aa(X,V,"query"),ge=(J=(ee=D==null||(I=D.trpc)===null||I===void 0?void 0:I.abortOnUnmount)!==null&&ee!==void 0?ee:void 0)!==null&&J!==void 0?J:le.abortOnUnmount,fe=$0((0,$.default)((0,$.default)({},D),{},{queryKey:te,queryFn:me=>{const M=(0,$.default)((0,$.default)({},D),{},{trpc:(0,$.default)((0,$.default)({},D?.trpc),ge?{signal:me.signal}:{signal:null})});return le.client.query(...ft(te,M))}}),le.queryClient);return fe.trpc=hu({path:X}),[fe.data,fe]}function C(X,V){const{client:D,queryClient:J}=v(),ee=Jr(X),I=J.defaultMutationOptions(J.getMutationDefaults(ee)),le=tg((0,$.default)((0,$.default)({},V),{},{mutationKey:ee,mutationFn:te=>D.mutation(...ft([X,{input:te}],V)),onSuccess(...te){var ge,fe;return o({originalFn:()=>{var M,H,K;return(M=V==null||(H=V.onSuccess)===null||H===void 0?void 0:H.call(V,...te))!==null&&M!==void 0?M:I==null||(K=I.onSuccess)===null||K===void 0?void 0:K.call(I,...te)},queryClient:J,meta:(ge=(fe=V?.meta)!==null&&fe!==void 0?fe:I?.meta)!==null&&ge!==void 0?ge:{}})}}),J);return le.trpc=hu({path:X}),le}const w={data:void 0,error:null,status:"idle"},G={data:void 0,error:null,status:"connecting"};/* istanbul ignore next -- @preserve */function _(X,V,D){var J;const ee=(J=D?.enabled)!==null&&J!==void 0?J:V!==zt,I=$a(aa(X,V,"any")),{client:le}=v(),te=R.useRef(D);R.useEffect(()=>{te.current=D});const[ge]=R.useState(new Set([])),fe=R.useCallback(x=>{ge.add(x)},[ge]),me=R.useRef(null),M=R.useCallback(x=>{const U=K.current,B=K.current=x(U);let Y=!1;for(const W of ge)if(U[W]!==B[W]){Y=!0;break}Y&&ye(wm(B,fe))},[fe,ge]),H=R.useCallback(()=>{var x;if((x=me.current)===null||x===void 0||x.unsubscribe(),!ee){M(()=>(0,$.default)((0,$.default)({},w),{},{reset:H}));return}M(()=>(0,$.default)((0,$.default)({},G),{},{reset:H}));const U=le.subscription(X.join("."),V??void 0,{onStarted:()=>{var B,Y;(B=(Y=te.current).onStarted)===null||B===void 0||B.call(Y),M(W=>(0,$.default)((0,$.default)({},W),{},{status:"pending",error:null}))},onData:B=>{var Y,W;(Y=(W=te.current).onData)===null||Y===void 0||Y.call(W,B),M(se=>(0,$.default)((0,$.default)({},se),{},{status:"pending",data:B,error:null}))},onError:B=>{var Y,W;(Y=(W=te.current).onError)===null||Y===void 0||Y.call(W,B),M(se=>(0,$.default)((0,$.default)({},se),{},{status:"error",error:B}))},onConnectionStateChange:B=>{M(Y=>{switch(B.state){case"idle":return(0,$.default)((0,$.default)({},Y),{},{status:B.state,error:null,data:void 0});case"connecting":return(0,$.default)((0,$.default)({},Y),{},{error:B.error,status:B.state});case"pending":return Y}})},onComplete:()=>{var B,Y;(B=(Y=te.current).onComplete)===null||B===void 0||B.call(Y),M(W=>(0,$.default)((0,$.default)({},W),{},{status:"idle",error:null,data:void 0}))}});me.current=U},[le,I,ee,M]);R.useEffect(()=>(H(),()=>{var x;(x=me.current)===null||x===void 0||x.unsubscribe()}),[H]);const K=R.useRef(ee?(0,$.default)((0,$.default)({},G),{},{reset:H}):(0,$.default)((0,$.default)({},w),{},{reset:H})),[re,ye]=R.useState(wm(K.current,fe));return re}function F(X,V,D){var J,ee,I,le,te;const{client:ge,ssrState:fe,prefetchInfiniteQuery:me,queryClient:M,abortOnUnmount:H}=v(),K=aa(X,V,"infinite"),re=M.getQueryDefaults(K),ye=V===zt;typeof window>"u"&&fe==="prepass"&&(D==null||(J=D.trpc)===null||J===void 0?void 0:J.ssr)!==!1&&((ee=D?.enabled)!==null&&ee!==void 0?ee:re?.enabled)!==!1&&!ye&&!M.getQueryCache().find({queryKey:K})&&me(K,(0,$.default)((0,$.default)({},re),D));const x=y(K,(0,$.default)((0,$.default)({},re),D)),U=(I=D==null||(le=D.trpc)===null||le===void 0?void 0:le.abortOnUnmount)!==null&&I!==void 0?I:H,B=ag((0,$.default)((0,$.default)({},x),{},{initialPageParam:(te=D.initialCursor)!==null&&te!==void 0?te:null,persister:D.persister,queryKey:K,queryFn:ye?V:Y=>{var W;const se=(0,$.default)((0,$.default)({},x),{},{trpc:(0,$.default)((0,$.default)({},x?.trpc),U?{signal:Y.signal}:{signal:null})});return ge.query(...ft(K,se,{pageParam:(W=Y.pageParam)!==null&&W!==void 0?W:D.initialCursor,direction:Y.direction}))}}),M);return B.trpc=hu({path:X}),B}function ne(X,V,D){var J,ee,I;const le=v(),te=aa(X,V,"infinite"),ge=le.queryClient.getQueryDefaults(te),fe=V===zt,me=y(te,(0,$.default)((0,$.default)({},ge),D)),M=(J=D==null||(ee=D.trpc)===null||ee===void 0?void 0:ee.abortOnUnmount)!==null&&J!==void 0?J:le.abortOnUnmount;eg((0,$.default)((0,$.default)({},D),{},{initialPageParam:(I=D.initialCursor)!==null&&I!==void 0?I:null,queryKey:te,queryFn:fe?V:H=>{var K;const re=(0,$.default)((0,$.default)({},me),{},{trpc:(0,$.default)((0,$.default)({},me?.trpc),M?{signal:H.signal}:{})});return le.client.query(...ft(te,re,{pageParam:(K=H.pageParam)!==null&&K!==void 0?K:D.initialCursor,direction:H.direction}))}}))}function ce(X,V,D){var J,ee,I;const le=v(),te=aa(X,V,"infinite"),ge=le.queryClient.getQueryDefaults(te),fe=y(te,(0,$.default)((0,$.default)({},ge),D)),me=(J=D==null||(ee=D.trpc)===null||ee===void 0?void 0:ee.abortOnUnmount)!==null&&J!==void 0?J:le.abortOnUnmount,M=P0((0,$.default)((0,$.default)({},D),{},{initialPageParam:(I=D.initialCursor)!==null&&I!==void 0?I:null,queryKey:te,queryFn:H=>{var K;const re=(0,$.default)((0,$.default)({},fe),{},{trpc:(0,$.default)((0,$.default)({},fe?.trpc),me?{signal:H.signal}:{})});return le.client.query(...ft(te,re,{pageParam:(K=H.pageParam)!==null&&K!==void 0?K:D.initialCursor,direction:H.direction}))}}),le.queryClient);return M.trpc=hu({path:X}),[M.data,M]}return{Provider:m,createClient:h,useContext:v,useUtils:v,useQuery:p,usePrefetchQuery:O,useSuspenseQuery:S,useQueries:(X,V)=>{const{ssrState:D,queryClient:J,prefetchQuery:ee,client:I}=v(),le=qm(I),te=X(le);if(typeof window>"u"&&D==="prepass")for(const fe of te){var ge;const me=fe;((ge=me.trpc)===null||ge===void 0?void 0:ge.ssr)!==!1&&!J.getQueryCache().find({queryKey:me.queryKey})&&ee(me.queryKey,me)}return fv({queries:te.map(fe=>(0,$.default)((0,$.default)({},fe),{},{queryKey:fe.queryKey})),combine:V?.combine},J)},useSuspenseQueries:X=>{const{queryClient:V,client:D}=v(),J=qm(D),ee=X(J),I=W0({queries:ee.map(le=>(0,$.default)((0,$.default)({},le),{},{queryFn:le.queryFn,queryKey:le.queryKey}))},V);return[I.map(le=>le.data),I]},useMutation:C,useSubscription:_,useInfiniteQuery:F,usePrefetchInfiniteQuery:ne,useSuspenseInfiniteQuery:ce}}function Z1(n){const r=w1(n);return ac(s=>s==="useContext"||s==="useUtils"?()=>{const o=n.useUtils();return R.useMemo(()=>L1(o),[o])}:n.hasOwnProperty(s)?n[s]:r[s])}function J1(n){const r=K1();return Z1(r)}const L=J1(),F1=L.createClient({links:[j1({url:"/api/trpc"})]});/**
 * @license lucide-react v1.27.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const Yv=(...n)=>n.filter((r,s,o)=>!!r&&r.trim()!==""&&o.indexOf(r)===s).join(" ").trim();/**
 * @license lucide-react v1.27.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const $1=n=>n.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase();/**
 * @license lucide-react v1.27.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const P1=n=>n.replace(/^([A-Z])|[\s-_]+(\w)/g,(r,s,o)=>o?o.toUpperCase():s.toLowerCase());/**
 * @license lucide-react v1.27.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const Qm=n=>{const r=P1(n);return r.charAt(0).toUpperCase()+r.slice(1)};/**
 * @license lucide-react v1.27.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */var qo={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};/**
 * @license lucide-react v1.27.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const W1=n=>{for(const r in n)if(r.startsWith("aria-")||r==="role"||r==="title")return!0;return!1},I1=R.createContext({}),eb=()=>R.useContext(I1),tb=R.forwardRef(({color:n,size:r,strokeWidth:s,absoluteStrokeWidth:o,className:c="",children:h,iconNode:m,...v},y)=>{const{size:p=24,strokeWidth:O=2,absoluteStrokeWidth:S=!1,color:C="currentColor",className:w=""}=eb()??{},G=o??S?Number(s??O)*24/Number(r??p):s??O;return R.createElement("svg",{ref:y,...qo,width:r??p??qo.width,height:r??p??qo.height,stroke:n??C,strokeWidth:G,className:Yv("lucide",w,c),...!h&&!W1(v)&&{"aria-hidden":"true"},...v},[...m.map(([_,F])=>R.createElement(_,F)),...Array.isArray(h)?h:[h]])});/**
 * @license lucide-react v1.27.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const he=(n,r)=>{const s=R.forwardRef(({className:o,...c},h)=>R.createElement(tb,{ref:h,iconNode:r,className:Yv(`lucide-${$1(Qm(n))}`,`lucide-${n}`,o),...c}));return s.displayName=Qm(n),s};/**
 * @license lucide-react v1.27.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const ab=[["path",{d:"M10 16c.5.3 1.2.5 2 .5s1.5-.2 2-.5",key:"1u7htd"}],["path",{d:"M15 12h.01",key:"1k8ypt"}],["path",{d:"M19.38 6.813A9 9 0 0 1 20.8 10.2a2 2 0 0 1 0 3.6 9 9 0 0 1-17.6 0 2 2 0 0 1 0-3.6A9 9 0 0 1 12 3c2 0 3.5 1.1 3.5 2.5s-.9 2.5-2 2.5c-.8 0-1.5-.4-1.5-1",key:"11xh7x"}],["path",{d:"M9 12h.01",key:"157uk2"}]],lb=he("baby",ab);/**
 * @license lucide-react v1.27.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const nb=[["path",{d:"M4 10a4 4 0 0 1 4-4h8a4 4 0 0 1 4 4v10a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2z",key:"1ol0lm"}],["path",{d:"M8 10h8",key:"c7uz4u"}],["path",{d:"M8 18h8",key:"1no2b1"}],["path",{d:"M8 22v-6a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v6",key:"1fr6do"}],["path",{d:"M9 6V4a2 2 0 0 1 2-2h2a2 2 0 0 1 2 2v2",key:"donm21"}]],ub=he("backpack",nb);/**
 * @license lucide-react v1.27.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const rb=[["path",{d:"M12 5v16",key:"1f6ucr"}],["path",{d:"m16 12 2 2 4-4",key:"mdajum"}],["path",{d:"M22 6V5a2 2 0 00-1.999-2L16 3.002A5 5 0 0012 5a5 5 0 00-4-2H4a2 2 0 00-2 2v12a2 2 0 001.999 2H8a5 5 0 014 2 5 5 0 014-2h4.001A2 2 0 0022 17v-1.344",key:"144kbk"}]],ib=he("book-open-check",rb);/**
 * @license lucide-react v1.27.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const sb=[["path",{d:"M12 5v16",key:"1f6ucr"}],["path",{d:"M20.001 19A2 2 0 0022 17V5a2 2 0 00-1.999-2L16 3.002A5 5 0 0012 5a5 5 0 00-4-2H4a2 2 0 00-2 2v12a2 2 0 001.999 2H8a5 5 0 014 2 5 5 0 014-2z",key:"1fyvmf"}]],ob=he("book-open",sb);/**
 * @license lucide-react v1.27.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const cb=[["path",{d:"M4 19.5v-15A2.5 2.5 0 0 1 6.5 2H19a1 1 0 0 1 1 1v18a1 1 0 0 1-1 1H6.5a1 1 0 0 1 0-5H20",key:"k3hazp"}]],fb=he("book",cb);/**
 * @license lucide-react v1.27.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const db=[["path",{d:"M17 3a2 2 0 0 1 2 2v15a1 1 0 0 1-1.496.868l-4.512-2.578a2 2 0 0 0-1.984 0l-4.512 2.578A1 1 0 0 1 5 20V5a2 2 0 0 1 2-2z",key:"oz39mx"}]],hb=he("bookmark",db);/**
 * @license lucide-react v1.27.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const mb=[["path",{d:"M8 2v4",key:"1cmpym"}],["path",{d:"M16 2v4",key:"4m81vk"}],["rect",{width:"18",height:"18",x:"3",y:"4",rx:"2",key:"1hopcy"}],["path",{d:"M3 10h18",key:"8toen8"}]],vb=he("calendar",mb);/**
 * @license lucide-react v1.27.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const yb=[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]],pb=he("check",yb);/**
 * @license lucide-react v1.27.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const gb=[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]],uc=he("chevron-left",gb);/**
 * @license lucide-react v1.27.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const bb=[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]],rc=he("chevron-right",bb);/**
 * @license lucide-react v1.27.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const xb=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 6v6l4 2",key:"mmk7yg"}]],Sb=he("clock",xb);/**
 * @license lucide-react v1.27.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const jb=[["path",{d:"M12 15V3",key:"m9g1x1"}],["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}],["path",{d:"m7 10 5 5 5-5",key:"brsn70"}]],Ob=he("download",jb);/**
 * @license lucide-react v1.27.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const _b=[["path",{d:"M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z",key:"1oefj6"}],["path",{d:"M14 2v5a1 1 0 0 0 1 1h5",key:"wfsgrz"}],["path",{d:"M10 9H8",key:"b1mrlr"}],["path",{d:"M16 13H8",key:"t4e002"}],["path",{d:"M16 17H8",key:"z1uh3a"}]],Nb=he("file-text",_b);/**
 * @license lucide-react v1.27.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const Cb=[["path",{d:"M12 7v14",key:"1akyts"}],["path",{d:"M20 11v8a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2v-8",key:"1sqzm4"}],["path",{d:"M7.5 7a1 1 0 0 1 0-5A4.8 8 0 0 1 12 7a4.8 8 0 0 1 4.5-5 1 1 0 0 1 0 5",key:"kc0143"}],["rect",{x:"3",y:"7",width:"18",height:"4",rx:"1",key:"1hberx"}]],Eb=he("gift",Cb);/**
 * @license lucide-react v1.27.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const Tb=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 2a14.5 14.5 0 0 0 0 20 14.5 14.5 0 0 0 0-20",key:"13o1zl"}],["path",{d:"M2 12h20",key:"9i4pu4"}]],Mb=he("globe",Tb);/**
 * @license lucide-react v1.27.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const Ab=[["path",{d:"M21.42 10.922a1 1 0 0 0-.019-1.838L12.83 5.18a2 2 0 0 0-1.66 0L2.6 9.08a1 1 0 0 0 0 1.832l8.57 3.908a2 2 0 0 0 1.66 0z",key:"j76jl0"}],["path",{d:"M22 10v6",key:"1lu8f3"}],["path",{d:"M6 12.5V16a6 3 0 0 0 12 0v-3.5",key:"1r8lef"}]],zb=he("graduation-cap",Ab);/**
 * @license lucide-react v1.27.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const Db=[["path",{d:"M3 14h3a2 2 0 0 1 2 2v3a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-7a9 9 0 0 1 18 0v7a2 2 0 0 1-2 2h-1a2 2 0 0 1-2-2v-3a2 2 0 0 1 2-2h3",key:"1xhozi"}]],Ub=he("headphones",Db);/**
 * @license lucide-react v1.27.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const Rb=[["path",{d:"M2 9.5a5.5 5.5 0 0 1 9.591-3.676.56.56 0 0 0 .818 0A5.49 5.49 0 0 1 22 9.5c0 2.29-1.5 4-3 5.5l-5.492 5.313a2 2 0 0 1-3 .019L5 15c-1.5-1.5-3-3.2-3-5.5",key:"mvr1a0"}]],qb=he("heart",Rb);/**
 * @license lucide-react v1.27.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const wb=[["path",{d:"M15 21v-8a1 1 0 0 0-1-1h-4a1 1 0 0 0-1 1v8",key:"5wwlr5"}],["path",{d:"M3 10a2 2 0 0 1 .709-1.528l7-6a2 2 0 0 1 2.582 0l7 6A2 2 0 0 1 21 10v9a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z",key:"r6nss1"}]],Qb=he("house",wb);/**
 * @license lucide-react v1.27.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const kb=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",ry:"2",key:"1m3agn"}],["circle",{cx:"9",cy:"9",r:"2",key:"af1f0g"}],["path",{d:"m21 15-3.086-3.086a2 2 0 0 0-2.828 0L6 21",key:"1xmnt7"}]],Hb=he("image",kb);/**
 * @license lucide-react v1.27.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const Bb=[["path",{d:"M12.83 2.18a2 2 0 0 0-1.66 0L2.6 6.08a1 1 0 0 0 0 1.83l8.58 3.91a2 2 0 0 0 1.66 0l8.58-3.9a1 1 0 0 0 0-1.83z",key:"zw3jo"}],["path",{d:"M2 12a1 1 0 0 0 .58.91l8.6 3.91a2 2 0 0 0 1.65 0l8.58-3.9A1 1 0 0 0 22 12",key:"1wduqc"}],["path",{d:"M2 17a1 1 0 0 0 .58.91l8.6 3.91a2 2 0 0 0 1.65 0l8.58-3.9A1 1 0 0 0 22 17",key:"kqbvx6"}]],Lb=he("layers",Bb);/**
 * @license lucide-react v1.27.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const Gb=[["path",{d:"m16 6 4 14",key:"ji33uf"}],["path",{d:"M12 6v14",key:"1n7gus"}],["path",{d:"M8 8v12",key:"1gg7y9"}],["path",{d:"M4 4v16",key:"6qkkli"}]],Yb=he("library",Gb);/**
 * @license lucide-react v1.27.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const Xb=[["path",{d:"m22 7-8.991 5.727a2 2 0 0 1-2.009 0L2 7",key:"132q7q"}],["rect",{x:"2",y:"4",width:"20",height:"16",rx:"2",key:"izxlao"}]],Vb=he("mail",Xb);/**
 * @license lucide-react v1.27.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const Kb=[["path",{d:"M20 10c0 4.993-5.539 10.193-7.399 11.799a1 1 0 0 1-1.202 0C9.539 20.193 4 14.993 4 10a8 8 0 0 1 16 0",key:"1r0f0z"}],["circle",{cx:"12",cy:"10",r:"3",key:"ilqhr7"}]],Zb=he("map-pin",Kb);/**
 * @license lucide-react v1.27.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const Jb=[["path",{d:"M16 10a2 2 0 0 1-2 2H6.828a2 2 0 0 0-1.414.586l-2.202 2.202A.71.71 0 0 1 2 14.286V4a2 2 0 0 1 2-2h10a2 2 0 0 1 2 2z",key:"1n2ejm"}],["path",{d:"M20 9a2 2 0 0 1 2 2v10.286a.71.71 0 0 1-1.212.502l-2.202-2.202A2 2 0 0 0 17.172 19H10a2 2 0 0 1-2-2v-1",key:"1qfcsi"}]],Fb=he("messages-square",Jb);/**
 * @license lucide-react v1.27.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const $b=[["path",{d:"M9 18V5l12-2v13",key:"1jmyc2"}],["circle",{cx:"6",cy:"18",r:"3",key:"fqmcym"}],["circle",{cx:"18",cy:"16",r:"3",key:"1hluhg"}]],Pb=he("music",$b);/**
 * @license lucide-react v1.27.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const Wb=[["path",{d:"M15 18h-5",key:"95g1m2"}],["path",{d:"M18 14h-8",key:"sponae"}],["path",{d:"M4 22h16a2 2 0 0 0 2-2V4a2 2 0 0 0-2-2H8a2 2 0 0 0-2 2v16a2 2 0 0 1-4 0v-9a2 2 0 0 1 2-2h2",key:"39pd36"}],["rect",{width:"8",height:"4",x:"10",y:"6",rx:"1",key:"aywv1n"}]],Ib=he("newspaper",Wb);/**
 * @license lucide-react v1.27.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const ex=[["path",{d:"M12 22a1 1 0 0 1 0-20 10 9 0 0 1 10 9 5 5 0 0 1-5 5h-2.25a1.75 1.75 0 0 0-1.4 2.8l.3.4a1.75 1.75 0 0 1-1.4 2.8z",key:"e79jfc"}],["circle",{cx:"13.5",cy:"6.5",r:".5",fill:"currentColor",key:"1okk4w"}],["circle",{cx:"17.5",cy:"10.5",r:".5",fill:"currentColor",key:"f64h9f"}],["circle",{cx:"6.5",cy:"12.5",r:".5",fill:"currentColor",key:"qy21gx"}],["circle",{cx:"8.5",cy:"7.5",r:".5",fill:"currentColor",key:"fotxhn"}]],tx=he("palette",ex);/**
 * @license lucide-react v1.27.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const ax=[["path",{d:"M13 21h8",key:"1jsn5i"}],["path",{d:"M21.174 6.812a1 1 0 0 0-3.986-3.987L3.842 16.174a2 2 0 0 0-.5.83l-1.321 4.352a.5.5 0 0 0 .623.622l4.353-1.32a2 2 0 0 0 .83-.497z",key:"1a8usu"}]],lx=he("pen-line",ax);/**
 * @license lucide-react v1.27.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const nx=[["path",{d:"M13.832 16.568a1 1 0 0 0 1.213-.303l.355-.465A2 2 0 0 1 17 15h3a2 2 0 0 1 2 2v3a2 2 0 0 1-2 2A18 18 0 0 1 2 4a2 2 0 0 1 2-2h3a2 2 0 0 1 2 2v3a2 2 0 0 1-.8 1.6l-.468.351a1 1 0 0 0-.292 1.233 14 14 0 0 0 6.392 6.384",key:"9njp5v"}]],ux=he("phone",nx);/**
 * @license lucide-react v1.27.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const rx=[["path",{d:"m21 21-4.34-4.34",key:"14j7rj"}],["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}]],ic=he("search",rx);/**
 * @license lucide-react v1.27.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const ix=[["path",{d:"M9.671 4.136a2.34 2.34 0 0 1 4.659 0 2.34 2.34 0 0 0 3.319 1.915 2.34 2.34 0 0 1 2.33 4.033 2.34 2.34 0 0 0 0 3.831 2.34 2.34 0 0 1-2.33 4.033 2.34 2.34 0 0 0-3.319 1.915 2.34 2.34 0 0 1-4.659 0 2.34 2.34 0 0 0-3.32-1.915 2.34 2.34 0 0 1-2.33-4.033 2.34 2.34 0 0 0 0-3.831A2.34 2.34 0 0 1 6.35 6.051a2.34 2.34 0 0 0 3.319-1.915",key:"1i5ecw"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]],sx=he("settings",ix);/**
 * @license lucide-react v1.27.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const ox=[["circle",{cx:"18",cy:"5",r:"3",key:"gq8acd"}],["circle",{cx:"6",cy:"12",r:"3",key:"w7nqdw"}],["circle",{cx:"18",cy:"19",r:"3",key:"1xt0gg"}],["line",{x1:"8.59",x2:"15.42",y1:"13.51",y2:"17.49",key:"47mynk"}],["line",{x1:"15.41",x2:"8.59",y1:"6.51",y2:"10.49",key:"1n3mei"}]],cx=he("share-2",ox);/**
 * @license lucide-react v1.27.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const fx=[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",key:"oel41y"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]],dx=he("shield-check",fx);/**
 * @license lucide-react v1.27.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const hx=[["rect",{width:"14",height:"20",x:"5",y:"2",rx:"2",ry:"2",key:"1yt0o3"}],["path",{d:"M12 18h.01",key:"mhygvu"}]],mx=he("smartphone",hx);/**
 * @license lucide-react v1.27.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const vx=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M8 14s1.5 2 4 2 4-2 4-2",key:"1y1vjs"}],["line",{x1:"9",x2:"9.01",y1:"9",y2:"9",key:"yxxnd0"}],["line",{x1:"15",x2:"15.01",y1:"9",y2:"9",key:"1p4y9e"}]],yx=he("smile",vx);/**
 * @license lucide-react v1.27.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const px=[["path",{d:"M11.017 2.814a1 1 0 0 1 1.966 0l1.051 5.558a2 2 0 0 0 1.594 1.594l5.558 1.051a1 1 0 0 1 0 1.966l-5.558 1.051a2 2 0 0 0-1.594 1.594l-1.051 5.558a1 1 0 0 1-1.966 0l-1.051-5.558a2 2 0 0 0-1.594-1.594l-5.558-1.051a1 1 0 0 1 0-1.966l5.558-1.051a2 2 0 0 0 1.594-1.594z",key:"1s2grr"}],["path",{d:"M20 2v4",key:"1rf3ol"}],["path",{d:"M22 4h-4",key:"gwowj6"}],["circle",{cx:"4",cy:"20",r:"2",key:"6kqj1y"}]],gx=he("sparkles",px);/**
 * @license lucide-react v1.27.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const bx=[["path",{d:"M11.525 2.295a.53.53 0 0 1 .95 0l2.31 4.679a2.123 2.123 0 0 0 1.595 1.16l5.166.756a.53.53 0 0 1 .294.904l-3.736 3.638a2.123 2.123 0 0 0-.611 1.878l.882 5.14a.53.53 0 0 1-.771.56l-4.618-2.428a2.122 2.122 0 0 0-1.973 0L6.396 21.01a.53.53 0 0 1-.77-.56l.881-5.139a2.122 2.122 0 0 0-.611-1.879L2.16 9.795a.53.53 0 0 1 .294-.906l5.165-.755a2.122 2.122 0 0 0 1.597-1.16z",key:"r04s7s"}]],xx=he("star",bx);/**
 * @license lucide-react v1.27.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const Sx=[["path",{d:"M12 3v12",key:"1x0j5s"}],["path",{d:"m17 8-5-5-5 5",key:"7q97r8"}],["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}]],jx=he("upload",Sx);/**
 * @license lucide-react v1.27.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const Ox=[["circle",{cx:"12",cy:"8",r:"5",key:"1hypcn"}],["path",{d:"M20 21a8 8 0 0 0-16 0",key:"rfgkzh"}]],_x=he("user-round",Ox);/**
 * @license lucide-react v1.27.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const Nx=[["path",{d:"M19 21v-2a4 4 0 0 0-4-4H9a4 4 0 0 0-4 4v2",key:"975kel"}],["circle",{cx:"12",cy:"7",r:"4",key:"17ys0d"}]],Cx=he("user",Nx);/**
 * @license lucide-react v1.27.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const Ex=[["path",{d:"M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2",key:"1yyitq"}],["path",{d:"M16 3.128a4 4 0 0 1 0 7.744",key:"16gr8j"}],["path",{d:"M22 21v-2a4 4 0 0 0-3-3.87",key:"kshegd"}],["circle",{cx:"9",cy:"7",r:"4",key:"nufk8"}]],Tx=he("users",Ex);/**
 * @license lucide-react v1.27.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const Mx=[["path",{d:"m16 13 5.223 3.482a.5.5 0 0 0 .777-.416V7.87a.5.5 0 0 0-.752-.432L16 10.5",key:"ftymec"}],["rect",{x:"2",y:"6",width:"14",height:"12",rx:"2",key:"158x01"}]],Ax=he("video",Mx),km={Search:ic,BookOpen:ob,Bookmark:hb,MessagesSquare:Fb,Layers:Lb,Palette:tx,Newspaper:Ib,GraduationCap:zb,Baby:lb,Smile:yx,Backpack:ub,Headphones:Ub,UserRound:_x,BookOpenCheck:ib,Check:pb,Heart:qb,Star:xx,Home:Qb,Users:Tx,Book:fb,Library:Yb,PenLine:lx,Sparkles:gx,ShieldCheck:dx,Clock:Sb,Smartphone:mx,Globe:Mb,Mail:Vb,Phone:ux,MapPin:Zb,Calendar:vb,Gift:Eb,Music:Pb,Video:Ax,Image:Hb,FileText:Nb,Download:Ob,Upload:jx,Share2:cx,Settings:sx,ChevronLeft:uc,ChevronRight:rc,User:Cx},Hm="/media/images/capas/capa-placeholder.svg",wo="biblioteca_modo_exibicao";function Bm(){if(typeof window>"u")return"desktop";const n=window.innerWidth;return n<768?"mobile":n<1024?"tablet":"desktop"}function zx(){const[n,r]=R.useState(Bm);return R.useEffect(()=>{function s(){r(Bm())}return window.addEventListener("resize",s),()=>window.removeEventListener("resize",s)},[]),n}function dn({livros:n,titulo:r}){const{data:s}=L.config.obter.useQuery(),o=zx(),[c,h]=R.useState(()=>typeof window>"u"?"grade":localStorage.getItem(wo)||"grade");R.useEffect(()=>{s&&!localStorage.getItem(wo)&&h(s.modoPadrao)},[s]);function m(y){h(y),localStorage.setItem(wo,y)}const v=o==="desktop"?s?.colunasDesktop??4:o==="tablet"?s?.colunasTablet??2:null;return f.jsxs("section",{children:[f.jsxs("div",{className:"flex items-center justify-between mb-4",children:[f.jsx("h2",{className:"font-medium uppercase text-xs",style:{fontFamily:"var(--font-ui)",letterSpacing:"var(--tracking-wider)",color:"var(--color-text-on-dark-subtle)"},children:r}),f.jsxs("div",{className:"flex gap-1",children:[f.jsx("button",{"aria-label":"ver em grade","aria-pressed":c==="grade",onClick:()=>m("grade"),className:"w-8 h-8 flex items-center justify-center rounded transition-colors",style:Lm(c==="grade"),children:f.jsx(Dx,{})}),f.jsx("button",{"aria-label":"ver em lista","aria-pressed":c==="lista",onClick:()=>m("lista"),className:"w-8 h-8 flex items-center justify-center rounded transition-colors",style:Lm(c==="lista"),children:f.jsx(Ux,{})})]})]}),c==="grade"?f.jsx("div",{className:"grid gap-x-5 gap-y-8",style:{gridTemplateColumns:v?`repeat(${v}, 1fr)`:"repeat(auto-fill, minmax(120px, 1fr))"},children:n.map(y=>f.jsxs("a",{href:`/livro/${y.id}`,className:"group block",children:[f.jsx("div",{className:"overflow-hidden rounded-md shadow-md transition-all duration-200 ease-out group-hover:-translate-y-1 group-hover:shadow-2xl",children:f.jsx("img",{src:y.capaUrl||Hm,alt:y.titulo,className:"w-full aspect-[2/3] object-cover transition-transform duration-300 group-hover:scale-105"})}),f.jsx("p",{className:"text-sm mt-2 leading-snug line-clamp-2 transition-colors group-hover:text-[var(--clr-dourado-400)]",style:{color:"var(--clr-branco)"},children:y.titulo}),f.jsx("p",{className:"text-xs mt-0.5",style:{color:"var(--color-text-on-dark-muted)"},children:y.autor})]},y.id))}):f.jsx("div",{className:"flex flex-col gap-2",children:n.map(y=>f.jsxs("a",{href:`/livro/${y.id}`,className:"flex gap-4 items-center p-2 rounded-md transition-colors hover:bg-white/[0.06]",style:{background:"var(--color-bg-card-dark)"},children:[f.jsx("img",{src:y.capaUrl||Hm,alt:y.titulo,className:"w-12 aspect-[2/3] object-cover rounded flex-shrink-0 shadow"}),f.jsxs("div",{className:"min-w-0",children:[f.jsx("p",{className:"text-sm truncate",style:{color:"var(--clr-branco)"},children:y.titulo}),f.jsxs("p",{className:"text-xs truncate",style:{color:"var(--color-text-on-dark-muted)"},children:[y.autor,y.serie?` · ${y.serie}`:""]})]})]},y.id))})]})}function Lm(n){return{background:n?"var(--clr-dourado-alpha12)":"transparent",color:n?"var(--clr-dourado-400)":"var(--color-text-on-dark-subtle)"}}function Dx(){return f.jsxs("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none","aria-hidden":"true",children:[f.jsx("rect",{x:"1",y:"1",width:"6",height:"6",rx:"1",fill:"currentColor"}),f.jsx("rect",{x:"9",y:"1",width:"6",height:"6",rx:"1",fill:"currentColor"}),f.jsx("rect",{x:"1",y:"9",width:"6",height:"6",rx:"1",fill:"currentColor"}),f.jsx("rect",{x:"9",y:"9",width:"6",height:"6",rx:"1",fill:"currentColor"})]})}function Ux(){return f.jsxs("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none","aria-hidden":"true",children:[f.jsx("rect",{x:"1",y:"2",width:"14",height:"2.5",rx:"1",fill:"currentColor"}),f.jsx("rect",{x:"1",y:"6.75",width:"14",height:"2.5",rx:"1",fill:"currentColor"}),f.jsx("rect",{x:"1",y:"11.5",width:"14",height:"2.5",rx:"1",fill:"currentColor"})]})}const Rx="/media/images/capas/capa-placeholder.svg",qx="/media/images/hero-fundo.jpg";function wx({cards:n,titulo:r="Descubra uma nova maneira de",tituloDestaque:s="conhecer a Palavra de Deus",subtitulo:o="Livros, mangás, HQs, estudos bíblicos e conteúdos ilustrados para crianças, adolescentes, jovens e adultos.",fundoUrl:c,overlayIntensidade:h=80,buscaAtiva:m=!0,buscaPlaceholder:v="qual leitura você procura?"}){const[,y]=bv(),[p,O]=R.useState(""),[S,C]=R.useState(0),w=R.useRef(null),G=3,_=Math.min(100,Math.max(0,h))/100;R.useEffect(()=>{if(!(n.length<=G))return w.current=setInterval(()=>C(oe=>(oe+1)%n.length),5e3),()=>{w.current&&clearInterval(w.current)}},[n.length]);function F(oe){C((oe+n.length)%n.length),w.current&&clearInterval(w.current),n.length>G&&(w.current=setInterval(()=>C(Ce=>(Ce+1)%n.length),5e3))}function ne(oe){oe.preventDefault(),p.trim()&&y(`/buscar?q=${encodeURIComponent(p.trim())}`)}const ce=Array.from({length:Math.min(G,n.length)},(oe,Ce)=>n[(S+Ce)%n.length]);return f.jsxs("section",{className:"relative w-screen left-1/2 right-1/2 -mx-[50vw]",style:{backgroundImage:`linear-gradient(90deg, rgba(18,11,5,${_}) 0%, rgba(18,11,5,${_*.8}) 45%, rgba(18,11,5,${_*.4}) 100%), url(${c||qx})`,backgroundSize:"cover",backgroundPosition:"center"},children:[f.jsx("div",{className:"max-w-6xl mx-auto px-5 pt-14 pb-10",children:f.jsxs("div",{className:"max-w-xl",children:[f.jsxs("h1",{className:"text-3xl sm:text-4xl font-semibold leading-tight mb-3",style:{fontFamily:"var(--font-display)",color:"var(--clr-off-white)"},children:[r,f.jsx("br",{}),f.jsx("span",{style:{color:"var(--clr-dourado-400)"},children:s})]}),f.jsxs("div",{className:"flex items-center gap-3 my-4",style:{color:"var(--clr-dourado-500)"},"aria-hidden":"true",children:[f.jsx("span",{style:{height:1,width:40,background:"var(--clr-dourado-500)"}}),f.jsx("span",{style:{fontSize:"0.7rem"},children:"✦"}),f.jsx("span",{style:{height:1,width:40,background:"var(--clr-dourado-500)"}})]}),o&&f.jsx("p",{className:"text-sm sm:text-base mb-6",style:{color:"rgba(245,230,200,0.8)"},children:o}),m&&f.jsxs("form",{onSubmit:ne,className:"flex gap-2 max-w-md",children:[f.jsxs("div",{className:"relative flex-1",children:[f.jsx(ic,{size:16,className:"absolute left-4 top-1/2 -translate-y-1/2",style:{color:"var(--clr-marrom-700)"}}),f.jsx("input",{value:p,onChange:oe=>O(oe.target.value),placeholder:v,className:"w-full text-sm pl-10 pr-4 py-3 rounded-full focus:outline-none",style:{background:"var(--clr-off-white)",color:"var(--clr-marrom-950)"}})]}),f.jsx("button",{type:"submit",className:"flex-shrink-0 text-sm font-medium rounded-full px-6 transition-transform hover:scale-[1.03]",style:{background:"var(--clr-dourado-400)",color:"var(--clr-marrom-950)"},children:"buscar"})]})]})}),ce.length>0&&f.jsx("div",{className:"max-w-6xl mx-auto px-5 pb-10 relative",children:f.jsxs("div",{className:"flex gap-4 items-stretch",children:[n.length>G&&f.jsx("button",{"aria-label":"anterior",onClick:()=>F(S-1),className:"flex-shrink-0 w-8 rounded-full flex items-center justify-center transition-colors hover:bg-[var(--clr-dourado-alpha12)]",style:{border:"1px solid var(--clr-dourado-alpha25)",color:"var(--clr-dourado-400)"},children:f.jsx(uc,{size:16})}),ce.map((oe,Ce)=>f.jsxs("a",{href:oe.href,className:"relative flex-1 rounded-lg overflow-hidden group min-h-[110px] transition-transform duration-300 hover:scale-[1.02]",style:{boxShadow:"var(--shadow-dourado-md)"},children:[f.jsx("img",{src:oe.capaUrl||Rx,alt:"",className:"absolute inset-0 w-full h-full object-cover"}),f.jsx("div",{className:"absolute inset-0",style:{background:"linear-gradient(to top, rgba(18,11,5,0.9) 0%, rgba(18,11,5,0.2) 60%)"}}),f.jsx("div",{className:"relative p-4 h-full flex items-end",children:f.jsx("p",{className:"text-sm font-medium",style:{color:"var(--clr-off-white)",fontFamily:"var(--font-display)"},children:oe.titulo})})]},`${oe.id}-${S}-${Ce}`)),n.length>G&&f.jsx("button",{"aria-label":"próximo",onClick:()=>F(S+1),className:"flex-shrink-0 w-8 rounded-full flex items-center justify-center transition-colors hover:bg-[var(--clr-dourado-alpha12)]",style:{border:"1px solid var(--clr-dourado-alpha25)",color:"var(--clr-dourado-400)"},children:f.jsx(rc,{size:16})})]})})]})}function hn(){const n=L.useUtils(),{data:r,isLoading:s}=L.auth.me.useQuery(),o=L.auth.login.useMutation({onSuccess:()=>n.auth.me.invalidate()}),c=L.auth.register.useMutation({onSuccess:()=>n.auth.me.invalidate()}),h=L.auth.logout.useMutation({onSuccess:()=>n.auth.me.invalidate()}),m=r?.papel==="editor"||r?.papel==="admin";return{usuario:r,isLoading:s,login:o,registrar:c,logout:h,podePublicar:m}}const Qx=[{valor:"texto",rotulo:"Livros"},{valor:"manga",rotulo:"Mangás"},{valor:"hq",rotulo:"HQs"},{valor:"ilustrado",rotulo:"Ilustrados"},{valor:"revista",rotulo:"Revistas"},{valor:"apostila",rotulo:"Apostilas"}],kx=[{valor:"primeiros_leitores",rotulo:"Primeiros leitores"},{valor:"infantil",rotulo:"Infantil"},{valor:"pre_adolescente",rotulo:"Pré-adolescentes"},{valor:"adolescente",rotulo:"Adolescentes"},{valor:"jovem",rotulo:"Jovens"},{valor:"adulto",rotulo:"Adultos"}];function Gm({rotulo:n,children:r}){return f.jsxs("div",{className:"relative group",children:[f.jsxs("button",{className:"text-sm py-2 transition-colors hover:text-[var(--clr-dourado-400)] flex items-center gap-1",style:{color:"var(--clr-dourado-300)",fontFamily:"var(--font-ui)"},children:[n,f.jsx("span",{className:"text-[10px] opacity-70",children:"▾"})]}),f.jsx("div",{className:"absolute left-0 top-full pt-2 opacity-0 invisible translate-y-1 transition-all duration-150 group-hover:opacity-100 group-hover:visible group-hover:translate-y-0 z-20",children:f.jsx("div",{className:"rounded-lg p-4 shadow-2xl min-w-[220px]",style:{background:"var(--clr-marrom-900)",border:"1px solid var(--clr-dourado-alpha25)"},children:r})})]})}function mu({href:n,children:r}){return f.jsx("a",{href:n,className:"block text-sm py-1.5 px-2 rounded transition-colors hover:bg-[var(--clr-dourado-alpha12)] whitespace-nowrap",style:{color:"var(--clr-off-white)"},children:r})}function Zt({buscaInicial:n=""}){const[,r]=bv(),[s,o]=R.useState(n),{usuario:c,podePublicar:h}=hn(),{data:m}=L.menu.listar.useQuery(),{data:v}=L.colecoes.listar.useQuery();function y(p){p.preventDefault(),s.trim()&&r(`/buscar?q=${encodeURIComponent(s.trim())}`)}return f.jsx("header",{className:"sticky top-0 z-30 backdrop-blur-sm",style:{borderBottom:"1px solid var(--clr-dourado-alpha25)",background:"rgba(18,11,5,0.85)"},children:f.jsxs("div",{className:"flex items-center justify-between gap-4 px-5 py-2.5 max-w-6xl mx-auto",children:[f.jsx("a",{href:"/",className:"flex-shrink-0",children:f.jsx("img",{src:"/media/images/logo-biblioteca-onfide.png",alt:"Biblioteca OnFide",className:"h-11"})}),f.jsxs("nav",{className:"hidden md:flex items-center gap-6 flex-shrink-0",children:[f.jsx(Gm,{rotulo:"Explorar",children:f.jsxs("div",{className:"flex gap-6",children:[f.jsxs("div",{children:[f.jsx("p",{className:"text-[10px] uppercase mb-1",style:{color:"var(--clr-dourado-500)",letterSpacing:"var(--tracking-wider)"},children:"formato"}),Qx.map(p=>f.jsx(mu,{href:`/explorar?formato=${p.valor}`,children:p.rotulo},p.valor))]}),f.jsxs("div",{children:[f.jsx("p",{className:"text-[10px] uppercase mb-1",style:{color:"var(--clr-dourado-500)",letterSpacing:"var(--tracking-wider)"},children:"público"}),kx.map(p=>f.jsx(mu,{href:`/explorar?publico=${p.valor}`,children:p.rotulo},p.valor))]}),v&&v.length>0&&f.jsxs("div",{children:[f.jsx("p",{className:"text-[10px] uppercase mb-1",style:{color:"var(--clr-dourado-500)",letterSpacing:"var(--tracking-wider)"},children:"coleções"}),v.map(p=>f.jsx(mu,{href:`/colecao/${p.id}`,children:p.nome},p.id))]})]})}),f.jsxs(Gm,{rotulo:"Ecossistema ONFIDE",children:[f.jsx(mu,{href:"https://spot.onfide.com.br",children:"SpotOnFide — podcast e música"}),f.jsx(mu,{href:"https://onfide.com.br",children:"ONFIDE"})]}),m?.map(p=>f.jsx("a",{href:p.url,className:"text-sm py-2 transition-colors hover:text-[var(--clr-dourado-400)]",style:{color:"var(--clr-dourado-300)",fontFamily:"var(--font-ui)"},children:p.rotulo},p.id))]}),f.jsxs("form",{onSubmit:y,className:"flex-1 max-w-xs relative hidden lg:block",children:[f.jsx(ic,{size:15,className:"absolute left-3 top-1/2 -translate-y-1/2",style:{color:"var(--clr-marrom-700)"}}),f.jsx("input",{value:s,onChange:p=>o(p.target.value),placeholder:"buscar título, autor, série...",className:"w-full text-sm pl-9 pr-3 py-2 rounded-full transition-colors focus:outline-none",style:{border:"1px solid var(--clr-dourado-alpha25)",background:"var(--clr-off-white)",color:"var(--clr-marrom-950)"}})]}),f.jsx("div",{className:"flex items-center gap-2 flex-shrink-0",children:c?f.jsxs(f.Fragment,{children:[f.jsx("a",{href:"/minha-biblioteca",className:"text-xs rounded-full px-4 py-2 transition-colors hover:bg-[var(--clr-dourado-alpha12)]",style:{border:"1px solid var(--clr-dourado-500)",color:"var(--clr-dourado-400)"},children:"minha biblioteca"}),h&&f.jsx("a",{href:"/admin",className:"text-xs rounded-full px-4 py-2 transition-colors hover:bg-[var(--clr-dourado-alpha12)]",style:{border:"1px solid var(--clr-dourado-500)",color:"var(--clr-dourado-400)"},children:"área do editor"})]}):f.jsx("a",{href:"/entrar",className:"text-xs rounded-full px-5 py-2 transition-colors hover:bg-[var(--clr-dourado-alpha12)]",style:{border:"1px solid var(--clr-dourado-500)",color:"var(--clr-dourado-400)"},children:"entrar"})})]})})}function Jt(){const{data:n}=L.homeCms.config.obter.useQuery(),r=new Date().getFullYear();return f.jsx("footer",{className:"mt-16",style:{background:"var(--clr-marrom-950)",borderTop:"1px solid var(--clr-dourado-alpha25)"},children:f.jsxs("div",{className:"max-w-5xl mx-auto px-5 py-10",children:[f.jsxs("div",{className:"flex flex-col sm:flex-row sm:justify-between gap-8",children:[f.jsxs("div",{className:"flex items-center gap-3",children:[f.jsx("img",{src:"/media/images/logo-biblioteca-onfide.png",alt:"Biblioteca OnFide",className:"h-10"}),f.jsx("p",{className:"text-sm max-w-xs",style:{color:"rgba(245,230,200,0.6)"},children:n?.footerDescricao||"Parte do ecossistema ONFIDE — literatura cristã pensada com o mesmo cuidado hermenêutico de tudo que produzimos."})]}),f.jsxs("div",{className:"flex flex-col gap-2",children:[f.jsx("span",{className:"text-xs uppercase mb-1",style:{fontFamily:"var(--font-ui)",letterSpacing:"var(--tracking-wider)",color:"var(--clr-dourado-500)"},children:"ecossistema"}),f.jsx("a",{href:"https://spot.onfide.com.br",className:"text-sm transition-colors hover:text-[var(--clr-dourado-400)]",style:{color:"rgba(245,230,200,0.75)"},children:"SpotOnFide ›"}),f.jsx("a",{href:"https://onfide.com.br",className:"text-sm transition-colors hover:text-[var(--clr-dourado-400)]",style:{color:"rgba(245,230,200,0.75)"},children:"ONFIDE ›"})]})]}),f.jsx("div",{className:"mt-10 pt-6 text-xs",style:{borderTop:"1px solid var(--clr-dourado-alpha25)",color:"rgba(245,230,200,0.4)"},children:n?.footerCopyright||`© ${r} Biblioteca OnFide. Todos os direitos reservados.`})]})})}const Hx="/media/images/capas/capa-placeholder.svg";function Kr({nome:n,...r}){const s=km[n]||km.BookOpen;return f.jsx(s,{...r})}function vu({eyebrow:n,titulo:r}){return f.jsxs("div",{className:"mb-6",children:[f.jsx("span",{className:"text-xs font-bold uppercase block mb-2",style:{fontFamily:"var(--font-ui)",letterSpacing:"var(--tracking-caps)",color:"var(--clr-dourado-500)"},children:n}),f.jsx("h2",{className:"text-xl sm:text-2xl font-semibold",style:{fontFamily:"var(--font-display)",color:"var(--clr-off-white)"},children:r})]})}function Bx({pergunta:n,resposta:r}){const[s,o]=R.useState(!1);return f.jsxs("div",{style:{borderBottom:"1px solid var(--clr-dourado-alpha25)"},className:"py-3",children:[f.jsxs("button",{className:"w-full flex items-center justify-between text-left",onClick:()=>o(c=>!c),children:[f.jsx("span",{className:"text-sm font-medium",style:{color:"var(--clr-off-white)"},children:n}),f.jsx("span",{style:{color:"var(--clr-dourado-400)"},className:"text-lg leading-none",children:s?"−":"+"})]}),s&&f.jsx("p",{className:"text-sm mt-2",style:{color:"rgba(245,230,200,0.7)"},children:r})]})}function Lx({livros:n}){const[r,s]=R.useState(0),o=6,c=Math.max(0,n.length-o);return f.jsxs("section",{className:"mb-14",children:[f.jsxs("div",{className:"flex items-center justify-between mb-4",children:[f.jsx("span",{className:"text-xs font-bold uppercase",style:{fontFamily:"var(--font-ui)",letterSpacing:"var(--tracking-caps)",color:"var(--clr-dourado-500)"},children:"novidades"}),f.jsx("a",{href:"/explorar",className:"text-xs rounded-full px-4 py-1.5 transition-colors hover:bg-[var(--clr-dourado-alpha12)]",style:{border:"1px solid var(--clr-dourado-500)",color:"var(--clr-dourado-400)"},children:"ver todos os livros"})]}),f.jsxs("div",{className:"flex items-center gap-2",children:[f.jsx("button",{"aria-label":"anterior",disabled:r===0,onClick:()=>s(h=>Math.max(0,h-o)),className:"flex-shrink-0 w-8 h-8 rounded-full flex items-center justify-center transition-colors disabled:opacity-30 hover:bg-[var(--clr-dourado-alpha12)]",style:{border:"1px solid var(--clr-dourado-alpha25)",color:"var(--clr-dourado-400)"},children:f.jsx(uc,{size:16})}),f.jsx("div",{className:"flex-1 grid grid-cols-3 sm:grid-cols-6 gap-3 overflow-hidden",children:n.slice(r,r+o).map(h=>f.jsxs("a",{href:`/livro/${h.id}`,className:"group block",children:[f.jsx("div",{className:"overflow-hidden rounded-md shadow-md transition-transform duration-200 group-hover:-translate-y-1",children:f.jsx("img",{src:h.capaUrl||Hx,alt:h.titulo,className:"w-full aspect-[2/3] object-cover"})}),f.jsx("p",{className:"text-xs mt-2 leading-snug line-clamp-2",style:{color:"var(--clr-off-white)"},children:h.titulo}),f.jsx("p",{className:"text-[11px]",style:{color:"rgba(245,230,200,0.5)"},children:h.autor})]},h.id))}),f.jsx("button",{"aria-label":"próximo",disabled:r>=c,onClick:()=>s(h=>Math.min(c,h+o)),className:"flex-shrink-0 w-8 h-8 rounded-full flex items-center justify-center transition-colors disabled:opacity-30 hover:bg-[var(--clr-dourado-alpha12)]",style:{border:"1px solid var(--clr-dourado-alpha25)",color:"var(--clr-dourado-400)"},children:f.jsx(rc,{size:16})})]})]})}function Gx(){const{data:n,isLoading:r}=L.biblioteca.getCatalogo.useQuery(),{data:s}=L.biblioteca.getDestaques.useQuery(),{data:o}=L.homeCms.heroCards.listar.useQuery(),{data:c}=L.homeCms.config.obter.useQuery(),{data:h}=L.biblioteca.getNovidades.useQuery(),{data:m}=L.homeCms.comoFunciona.listar.useQuery(),{data:v}=L.homeCms.acervoItens.listar.useQuery(),{data:y}=L.homeCms.publicoItens.listar.useQuery(),{data:p}=L.homeCms.beneficios.listar.useQuery(),{data:O}=L.homeCms.faqItens.listar.useQuery(),{data:S}=L.homeCms.banners.listarAtivos.useQuery(),C=new Set((s??[]).map(_=>_.id)),w=(n??[]).filter(_=>!C.has(_.id)),G=o&&o.length>0?o.map(_=>{const F=_.livroId?n?.find(ne=>ne.id===_.livroId):null;return{id:_.id,titulo:_.titulo,autor:"",capaUrl:F?.capaUrl??_.imagemUrl,href:_.livroId?`/livro/${_.livroId}`:_.linkUrl||"#"}}):(s??[]).map(_=>({id:_.id,titulo:_.titulo,autor:_.autor,capaUrl:_.capaUrl,href:`/livro/${_.id}`}));return f.jsxs("main",{className:"min-h-dvh flex flex-col",style:{background:"var(--gradient-hero-dourado)",fontFamily:"var(--font-corpo)"},children:[f.jsx(Zt,{}),G.length>0&&f.jsx(wx,{cards:G,titulo:c?.heroTitulo,tituloDestaque:c?.heroTituloDestaque,subtitulo:c?.heroSubtitulo,fundoUrl:c?.heroFundoUrl,overlayIntensidade:c?.heroOverlayIntensidade,buscaAtiva:c?.heroBuscaAtiva,buscaPlaceholder:c?.heroBuscaPlaceholder}),f.jsxs("div",{className:"max-w-5xl mx-auto px-5 pt-12 pb-16 flex-1 w-full",children:[S&&S.length>0&&f.jsx("div",{className:"mb-14 space-y-3",children:S.map(_=>f.jsxs("a",{href:_.linkUrl,className:"flex items-center gap-4 rounded-lg overflow-hidden transition-transform hover:scale-[1.005]",style:{background:"var(--clr-marrom-900)",border:"1px solid var(--clr-dourado-alpha25)"},children:[_.imagemUrl&&f.jsx("img",{src:_.imagemUrl,alt:"",className:"w-28 h-20 object-cover flex-shrink-0"}),f.jsxs("div",{className:"py-3 flex-1",children:[f.jsx("p",{className:"font-medium text-sm",style:{color:"var(--clr-dourado-400)",fontFamily:"var(--font-display)"},children:_.titulo}),_.texto&&f.jsx("p",{className:"text-xs mt-0.5",style:{color:"rgba(245,230,200,0.65)"},children:_.texto})]}),_.botaoTexto&&f.jsx("span",{className:"text-xs rounded-full px-4 py-1.5 mr-4 flex-shrink-0",style:{border:"1px solid var(--clr-dourado-500)",color:"var(--clr-dourado-400)"},children:_.botaoTexto})]},_.id))}),r&&f.jsx("p",{className:"text-sm",style:{color:"rgba(245,230,200,0.6)"},children:"carregando..."}),!r&&(!n||n.length===0)&&f.jsxs("div",{className:"rounded-lg p-10 text-center mb-14",style:{background:"var(--clr-marrom-900)",border:"1px solid var(--clr-dourado-alpha25)",color:"rgba(245,230,200,0.7)"},children:[f.jsx("p",{className:"text-xl mb-2",style:{fontFamily:"var(--font-display)",color:"var(--clr-off-white)"},children:"A estante ainda está sendo montada"}),f.jsx("p",{className:"text-sm",children:"Em breve os primeiros livros aparecem aqui."})]}),m&&m.length>0&&f.jsxs("section",{className:"mb-14",children:[f.jsx(vu,{eyebrow:"como funciona",titulo:"Ler nunca foi tão simples"}),f.jsx("div",{className:"grid grid-cols-1 sm:grid-cols-3 gap-4",children:m.map(_=>f.jsxs("div",{className:"rounded-lg p-5",style:{background:"var(--clr-marrom-900)",border:"1px solid var(--clr-dourado-alpha25)"},children:[f.jsx("div",{className:"w-11 h-11 rounded-full flex items-center justify-center mb-3",style:{background:"var(--clr-dourado-alpha12)",color:"var(--clr-dourado-400)"},children:f.jsx(Kr,{nome:_.icone,size:18})}),f.jsx("span",{style:{fontFamily:"var(--font-display)",fontSize:"0.85rem",color:"var(--clr-dourado-500)"},children:_.numero}),f.jsx("p",{className:"font-medium mt-1",style:{color:"var(--clr-off-white)"},children:_.titulo}),f.jsx("p",{className:"text-sm mt-1",style:{color:"rgba(245,230,200,0.65)"},children:_.descricao})]},_.id))})]}),v&&v.length>0&&f.jsxs("section",{className:"mb-14",children:[f.jsx(vu,{eyebrow:"o acervo",titulo:"Um universo inteiro de conteúdo cristão"}),f.jsx("div",{className:"grid grid-cols-1 sm:grid-cols-3 gap-3",children:v.map(_=>f.jsxs("a",{href:_.linkUrl,className:"rounded-lg p-4 transition-colors hover:bg-[var(--clr-dourado-alpha12)] flex items-start gap-3",style:{background:"var(--clr-marrom-900)",border:"1px solid var(--clr-dourado-alpha25)"},children:[f.jsx(Kr,{nome:_.icone,size:20,style:{color:"var(--clr-dourado-400)",flexShrink:0,marginTop:2}}),f.jsxs("div",{children:[f.jsx("p",{className:"font-medium text-sm",style:{color:"var(--clr-off-white)"},children:_.nome}),f.jsx("p",{className:"text-xs mt-1",style:{color:"rgba(245,230,200,0.6)"},children:_.descricao})]})]},_.id))})]}),y&&y.length>0&&f.jsxs("section",{className:"mb-14",children:[f.jsx(vu,{eyebrow:"para toda a família",titulo:"Leitura pensada pra cada idade"}),f.jsx("div",{className:"grid grid-cols-3 sm:grid-cols-6 gap-3",children:y.map(_=>f.jsxs("a",{href:_.linkUrl,className:"rounded-lg p-3 text-center transition-colors hover:bg-[var(--clr-dourado-alpha12)]",style:{background:"var(--clr-marrom-900)",border:"1px solid var(--clr-dourado-alpha25)"},children:[f.jsx(Kr,{nome:_.icone,size:20,className:"mx-auto mb-2",style:{color:"var(--clr-dourado-400)"}}),f.jsx("p",{className:"font-medium text-xs",style:{color:"var(--clr-off-white)"},children:_.nome}),f.jsx("p",{className:"text-[11px] mt-0.5",style:{color:"rgba(245,230,200,0.55)"},children:_.faixaEtaria})]},_.id))})]}),h&&h.length>0&&f.jsx(Lx,{livros:h}),w.length>0&&f.jsx(dn,{livros:w,titulo:"todos os livros"}),(p&&p.length>0||O&&O.length>0)&&f.jsxs("section",{className:"grid grid-cols-1 sm:grid-cols-2 gap-10 mt-4",children:[p&&p.length>0&&f.jsxs("div",{children:[f.jsx(vu,{eyebrow:"a experiência",titulo:"Por que ler na Biblioteca OnFide"}),f.jsx("div",{className:"space-y-2",children:p.map(_=>f.jsxs("div",{className:"flex items-start gap-2 text-sm",style:{color:"rgba(245,230,200,0.75)"},children:[f.jsx(Kr,{nome:_.icone,size:16,style:{color:"var(--clr-dourado-400)",flexShrink:0,marginTop:2}}),_.texto]},_.id))})]}),O&&O.length>0&&f.jsxs("div",{children:[f.jsx(vu,{eyebrow:"dúvidas",titulo:"Perguntas frequentes"}),f.jsx("div",{children:O.map(_=>f.jsx(Bx,{pergunta:_.pergunta,resposta:_.resposta},_.id))})]})]})]}),f.jsx(Jt,{})]})}const Qo={background:"rgba(255,255,255,0.06)",border:"var(--border-medium)",color:"var(--clr-branco)"};function yu({titulo:n,descricao:r,campos:s,itens:o,temAtivo:c=!0,aoCriar:h,aoAtualizar:m,aoExcluir:v}){const y=Object.fromEntries(s.map(C=>[C.chave,""])),[p,O]=R.useState(y);function S(C,w,G,_){return _==="textarea"?f.jsx("textarea",{className:"w-full rounded px-2 py-1.5 text-sm",style:Qo,value:w,onChange:F=>G(F.target.value),rows:2}):f.jsx("input",{type:_==="numero"?"number":"text",className:"w-full rounded px-2 py-1.5 text-sm",style:Qo,value:w,onChange:F=>G(F.target.value)})}return f.jsxs("div",{className:"mt-8 space-y-3 rounded-lg p-4",style:{background:"var(--color-bg-card-dark)",border:"var(--border-thin)"},children:[f.jsx("h2",{className:"font-medium",style:{fontFamily:"var(--font-display)"},children:n}),r&&f.jsx("p",{className:"text-xs",style:{color:"var(--color-text-on-dark-muted)"},children:r}),f.jsxs("div",{className:"space-y-3",children:[o?.map(C=>f.jsxs("div",{className:"rounded p-3",style:{border:"var(--border-thin)"},children:[f.jsx("div",{className:"grid gap-2",style:{gridTemplateColumns:`repeat(${s.length}, 1fr)`},children:s.map(w=>f.jsxs("label",{className:"text-xs",style:{color:"var(--color-text-on-dark-muted)"},children:[w.rotulo,S(w.chave,String(C[w.chave]??""),G=>m(C.id,{[w.chave]:w.tipo==="numero"?Number(G):G}),w.tipo)]},w.chave))}),f.jsxs("div",{className:"flex items-center justify-between mt-2",children:[f.jsxs("label",{className:"flex items-center gap-1.5 text-xs",style:{color:"var(--color-text-on-dark-muted)"},children:[f.jsx("input",{type:"number",className:"w-14 rounded px-1.5 py-1 text-xs",style:Qo,value:C.ordem,onChange:w=>m(C.id,{ordem:Number(w.target.value)})}),"ordem"]}),c&&f.jsxs("label",{className:"flex items-center gap-1.5 text-xs",style:{color:"var(--color-text-on-dark-muted)"},children:[f.jsx("input",{type:"checkbox",checked:!!C.ativo,onChange:w=>m(C.id,{ativo:w.target.checked})}),"ativo"]}),f.jsx("button",{className:"text-xs",style:{color:"#ff8080"},onClick:()=>v(C.id),children:"remover"})]})]},C.id)),o?.length===0&&f.jsx("p",{className:"text-xs",style:{color:"var(--color-text-on-dark-subtle)"},children:"nenhum item ainda."})]}),f.jsxs("div",{className:"rounded p-3 space-y-2",style:{border:"1px dashed var(--color-border-medium)"},children:[f.jsx("p",{className:"text-xs",style:{color:"var(--color-text-on-dark-muted)"},children:"+ adicionar novo item"}),f.jsx("div",{className:"grid gap-2",style:{gridTemplateColumns:`repeat(${s.length}, 1fr)`},children:s.map(C=>f.jsxs("label",{className:"text-xs",style:{color:"var(--color-text-on-dark-muted)"},children:[C.rotulo,S(C.chave,p[C.chave]??"",w=>O(G=>({...G,[C.chave]:w})),C.tipo)]},C.chave))}),f.jsx("button",{className:"btn btn-ghost text-xs",style:{padding:"0.4rem 0.8rem"},onClick:()=>{const C={};for(const w of s)C[w.chave]=w.tipo==="numero"?Number(p[w.chave]||0):p[w.chave]||"";h(C),O(y)},children:"adicionar"})]})]})}const Yx="/media/images/capas/capa-placeholder.svg",be={background:"rgba(255,255,255,0.06)",border:"var(--border-medium)",color:"var(--clr-branco)"},Xx=[{valor:"texto",rotulo:"Texto (DOCX → EPUB)"},{valor:"ilustrado",rotulo:"Livro ilustrado (páginas de imagem)"},{valor:"manga",rotulo:"Mangá (páginas de imagem)"},{valor:"hq",rotulo:"HQ / Graphic novel (páginas de imagem)"},{valor:"revista",rotulo:"Revista (páginas de imagem)"},{valor:"apostila",rotulo:"Apostila (DOCX → EPUB)"}],Vx=["ilustrado","manga","hq","revista"],Kx=[{valor:"",rotulo:"toda a família"},{valor:"primeiros_leitores",rotulo:"primeiros leitores (0–5)"},{valor:"infantil",rotulo:"infantil (6–9)"},{valor:"pre_adolescente",rotulo:"pré-adolescente (10–12)"},{valor:"adolescente",rotulo:"adolescente (13–17)"},{valor:"jovem",rotulo:"jovem (18–29)"},{valor:"adulto",rotulo:"adulto (30+)"}];function Zx({livroExistente:n,aoTerminar:r}){const s=L.useUtils(),o=L.biblioteca.admin.criar.useMutation({onSuccess:()=>s.biblioteca.admin.listar.invalidate()}),c=L.biblioteca.admin.atualizar.useMutation({onSuccess:()=>s.biblioteca.admin.listar.invalidate()}),h=L.paginas.salvar.useMutation(),{data:m}=L.biblioteca.getLivro.useQuery({id:n?.id??0},{enabled:!!n}),{data:v}=L.autores.listar.useQuery(),{data:y}=L.temas.listar.useQuery(),{data:p}=L.colecoes.listar.useQuery(),O=L.autores.criar.useMutation({onSuccess:()=>s.autores.listar.invalidate()}),S=L.temas.criar.useMutation({onSuccess:()=>s.temas.listar.invalidate()}),[C,w]=R.useState(n?.titulo??""),[G,_]=R.useState(n?.destaque??!1),[F,ne]=R.useState(n?.subtitulo??""),[ce,oe]=R.useState(n?.serie??""),[Ce,X]=R.useState(n?.volumeNumero?.toString()??""),[V,D]=R.useState(n?.autor??""),[J,ee]=R.useState(n?.resumo??""),[I,le]=R.useState(n?.formato??"texto"),[te,ge]=R.useState(""),[fe,me]=R.useState(""),[M,H]=R.useState([]),[K,re]=R.useState([]),[ye,x]=R.useState(""),[U,B]=R.useState(""),[Y,W]=R.useState(null),[se,xe]=R.useState(null),[Je,Be]=R.useState(null),[ja,Wa]=R.useState(!1),[_l,Ia]=R.useState(null),[$t,Oa]=R.useState(null);R.useEffect(()=>{m&&(ge(m.publicoAlvo??""),me(m.colecaoId?.toString()??""),H(m.autores?.map(Z=>Z.id)??[]),re(m.temas?.map(Z=>Z.id)??[]))},[m]);const dt=!!n,Ou=Vx.includes(I);async function mn(Z,ze,xt,St={}){const Pt=new FormData;Pt.append(ze,xt);for(const[gn,Nu]of Object.entries(St))Pt.append(gn,Nu);const ot=await fetch(Z,{method:"POST",body:Pt});if(!ot.ok){const gn=await ot.json().catch(()=>({}));throw new Error(gn.erro||"Falha no upload.")}return ot.json()}async function vn(Z){const ze=new FormData;for(const St of Array.from(Z))ze.append("paginas",St);const xt=await fetch("/api/admin/upload-paginas",{method:"POST",body:ze});if(!xt.ok){const St=await xt.json().catch(()=>({}));throw new Error(St.erro||"Falha no upload das páginas.")}return(await xt.json()).urls}function yn(){w(""),ne(""),oe(""),X(""),D(""),ee(""),le("texto"),ge(""),me(""),H([]),re([]),W(null),xe(null),Be(null)}async function pn(){if(!dt&&I==="texto"&&!Y){Oa("Selecione o arquivo DOCX.");return}if(!dt&&Ou&&!Je){Oa("Selecione as páginas (imagens).");return}Oa(null),Wa(!0);try{let Z,ze,xt;if(Y){Ia("convertendo DOCX...");const ot=await mn("/api/admin/upload-docx","arquivo",Y,{titulo:C,autor:V});Z=ot.docxOriginalUrl,ze=ot.epubUrl}se&&(Ia("enviando capa..."),xt=(await mn("/api/admin/upload-capa","imagem",se)).url);const St={titulo:C,subtitulo:F||void 0,serie:ce||void 0,volumeNumero:Ce?Number(Ce):void 0,autor:V,resumo:J||void 0,destaque:G,formato:I,publicoAlvo:te||void 0,colecaoId:fe?Number(fe):void 0,autorIds:M,temaIds:K,...xt&&{capaUrl:xt},...ze&&{epubUrl:ze},...Z&&{docxOriginalUrl:Z}};let Pt;if(dt?(await c.mutateAsync({id:n.id,...St}),Pt=n.id):Pt=(await o.mutateAsync(St)).id,Ou&&Je){Ia(`enviando ${Je.length} páginas...`);const ot=await vn(Je);await h.mutateAsync({livroId:Pt,imagensUrl:ot})}dt||yn(),r()}catch(Z){Oa(Z instanceof Error?Z.message:"Erro ao salvar.")}finally{Wa(!1),Ia(null)}}function _u(Z,ze,xt){xt(Z.includes(ze)?Z.filter(St=>St!==ze):[...Z,ze])}return f.jsxs("div",{className:"space-y-3 rounded-lg p-4",style:{background:"var(--color-bg-card-dark)",border:"var(--border-thin)"},children:[f.jsxs("div",{className:"flex items-center justify-between",children:[f.jsx("h2",{className:"font-medium",style:{fontFamily:"var(--font-display)"},children:dt?`Editando: ${n.titulo}`:"Novo livro"}),dt&&f.jsx("button",{className:"text-xs",style:{color:"var(--color-text-on-dark-muted)"},onClick:r,children:"cancelar edição"})]}),f.jsx("input",{className:"w-full rounded px-3 py-2",style:be,placeholder:"título",value:C,onChange:Z=>w(Z.target.value)}),f.jsx("input",{className:"w-full rounded px-3 py-2",style:be,placeholder:"subtítulo (opcional)",value:F,onChange:Z=>ne(Z.target.value)}),f.jsxs("div",{className:"flex gap-3",children:[f.jsx("input",{className:"flex-1 rounded px-3 py-2",style:be,placeholder:"série (opcional)",value:ce,onChange:Z=>oe(Z.target.value)}),f.jsx("input",{className:"w-28 rounded px-3 py-2",style:be,placeholder:"volume nº",value:Ce,onChange:Z=>X(Z.target.value)})]}),f.jsx("input",{className:"w-full rounded px-3 py-2",style:be,placeholder:"autor (texto de exibição)",value:V,onChange:Z=>D(Z.target.value)}),f.jsx("textarea",{className:"w-full rounded px-3 py-2",style:be,placeholder:"resumo (opcional)",value:J,onChange:Z=>ee(Z.target.value)}),f.jsxs("div",{className:"grid grid-cols-2 gap-3",children:[f.jsxs("label",{className:"text-sm",style:{color:"var(--color-text-on-dark-muted)"},children:["formato",f.jsx("select",{className:"w-full rounded px-3 py-2 mt-1",style:be,value:I,onChange:Z=>le(Z.target.value),children:Xx.map(Z=>f.jsx("option",{value:Z.valor,style:{color:"#000"},children:Z.rotulo},Z.valor))})]}),f.jsxs("label",{className:"text-sm",style:{color:"var(--color-text-on-dark-muted)"},children:["público-alvo",f.jsx("select",{className:"w-full rounded px-3 py-2 mt-1",style:be,value:te,onChange:Z=>ge(Z.target.value),children:Kx.map(Z=>f.jsx("option",{value:Z.valor,style:{color:"#000"},children:Z.rotulo},Z.valor))})]})]}),f.jsxs("label",{className:"block text-sm",style:{color:"var(--color-text-on-dark-muted)"},children:["coleção (opcional)",f.jsxs("select",{className:"w-full rounded px-3 py-2 mt-1",style:be,value:fe,onChange:Z=>me(Z.target.value),children:[f.jsx("option",{value:"",style:{color:"#000"},children:"nenhuma"}),p?.map(Z=>f.jsx("option",{value:Z.id,style:{color:"#000"},children:Z.nome},Z.id))]})]}),f.jsxs("div",{children:[f.jsx("p",{className:"text-sm mb-1",style:{color:"var(--color-text-on-dark-muted)"},children:"colaboradores (autor/ilustrador)"}),f.jsx("div",{className:"flex flex-wrap gap-2 mb-2",children:v?.map(Z=>f.jsx("button",{type:"button",onClick:()=>_u(M,Z.id,H),className:"text-xs px-3 py-1 rounded-full transition-colors",style:{border:"var(--border-medium)",background:M.includes(Z.id)?"var(--clr-acento-alpha12)":"transparent",color:M.includes(Z.id)?"var(--clr-acento-400)":"var(--color-text-on-dark-muted)"},children:Z.nome},Z.id))}),f.jsxs("div",{className:"flex gap-2",children:[f.jsx("input",{className:"flex-1 rounded px-3 py-1.5 text-sm",style:be,placeholder:"novo colaborador...",value:ye,onChange:Z=>x(Z.target.value)}),f.jsx("button",{className:"btn btn-ghost text-xs flex-shrink-0",style:{padding:"0.4rem 0.8rem"},onClick:async()=>{if(!ye)return;const Z=await O.mutateAsync({nome:ye});H(ze=>[...ze,Z.id]),x("")},children:"+ adicionar"})]})]}),f.jsxs("div",{children:[f.jsx("p",{className:"text-sm mb-1",style:{color:"var(--color-text-on-dark-muted)"},children:"temas"}),f.jsx("div",{className:"flex flex-wrap gap-2 mb-2",children:y?.map(Z=>f.jsx("button",{type:"button",onClick:()=>_u(K,Z.id,re),className:"text-xs px-3 py-1 rounded-full transition-colors",style:{border:"var(--border-medium)",background:K.includes(Z.id)?"var(--clr-acento-alpha12)":"transparent",color:K.includes(Z.id)?"var(--clr-acento-400)":"var(--color-text-on-dark-muted)"},children:Z.nome},Z.id))}),f.jsxs("div",{className:"flex gap-2",children:[f.jsx("input",{className:"flex-1 rounded px-3 py-1.5 text-sm",style:be,placeholder:"novo tema...",value:U,onChange:Z=>B(Z.target.value)}),f.jsx("button",{className:"btn btn-ghost text-xs flex-shrink-0",style:{padding:"0.4rem 0.8rem"},onClick:async()=>{if(!U)return;const Z=await S.mutateAsync({nome:U});re(ze=>[...ze,Z.id]),B("")},children:"+ adicionar"})]})]}),f.jsxs("label",{className:"flex items-center gap-2 text-sm",style:{color:"var(--color-text-on-dark-muted)"},children:[f.jsx("input",{type:"checkbox",checked:G,onChange:Z=>_(Z.target.checked)}),"exibir no carrossel de destaque da Home"]}),I==="texto"||I==="apostila"?f.jsxs(f.Fragment,{children:[f.jsxs("label",{className:"block text-sm",style:{color:"var(--color-text-on-dark-muted)"},children:["arquivo DOCX ",dt&&"(deixe em branco pra manter o atual)"]}),f.jsx("input",{type:"file",accept:".docx",onChange:Z=>W(Z.target.files?.[0]??null)})]}):f.jsxs(f.Fragment,{children:[f.jsxs("label",{className:"block text-sm",style:{color:"var(--color-text-on-dark-muted)"},children:["páginas (imagens, na ordem — selecione todas de uma vez) ",dt&&"(deixe em branco pra manter as atuais)"]}),f.jsx("input",{type:"file",accept:"image/*",multiple:!0,onChange:Z=>Be(Z.target.files)})]}),f.jsxs("label",{className:"block text-sm",style:{color:"var(--color-text-on-dark-muted)"},children:["capa ",dt&&"(deixe em branco pra manter a atual)"]}),f.jsx("input",{type:"file",accept:"image/*",onChange:Z=>xe(Z.target.files?.[0]??null)}),_l&&f.jsx("p",{className:"text-sm",style:{color:"var(--clr-acento-400)"},children:_l}),$t&&f.jsx("p",{className:"text-sm",style:{color:"#ff8080"},children:$t}),f.jsx("button",{className:"btn btn-primary",onClick:pn,disabled:ja||!C||!V,children:ja?"processando...":dt?"salvar alterações":"salvar como rascunho"})]})}function Jx({aoEditar:n}){const r=L.useUtils(),{data:s}=L.biblioteca.admin.listar.useQuery(),[o,c]=R.useState(""),h=L.biblioteca.admin.atualizar.useMutation({onSuccess:()=>r.biblioteca.admin.listar.invalidate()}),m=L.biblioteca.admin.excluir.useMutation({onSuccess:()=>r.biblioteca.admin.listar.invalidate()}),v=s?.filter(p=>p.titulo.toLowerCase().includes(o.toLowerCase())||p.autor.toLowerCase().includes(o.toLowerCase()));function y(p,O){window.confirm(`Excluir "${O}" permanentemente? Essa ação não pode ser desfeita.`)&&m.mutate({id:p})}return f.jsxs("div",{className:"mt-8 space-y-3",children:[f.jsxs("div",{className:"flex items-center justify-between gap-3",children:[f.jsxs("h2",{className:"font-medium",style:{fontFamily:"var(--font-display)"},children:["Livros ",s?`(${s.length})`:""]}),f.jsx("input",{value:o,onChange:p=>c(p.target.value),placeholder:"filtrar por título ou autor...",className:"rounded px-3 py-1.5 text-sm",style:{...be,maxWidth:240}})]}),f.jsxs("div",{className:"space-y-2",children:[v?.map(p=>f.jsxs("div",{className:"flex items-center gap-3 rounded-md p-2",style:{border:"var(--border-thin)"},children:[f.jsx("img",{src:p.capaUrl||Yx,alt:"",className:"w-10 aspect-[2/3] object-cover rounded flex-shrink-0"}),f.jsxs("div",{className:"flex-1 min-w-0",children:[f.jsx("p",{className:"text-sm truncate",children:p.titulo}),f.jsxs("p",{className:"text-xs flex items-center gap-2",style:{color:"var(--color-text-on-dark-muted)"},children:[f.jsx("span",{className:"px-1.5 py-0.5 rounded",style:{background:p.status==="publicado"?"var(--clr-acento-alpha12)":"rgba(255,255,255,0.06)",color:p.status==="publicado"?"var(--clr-acento-400)":"var(--color-text-on-dark-subtle)"},children:p.status}),p.epubUrl?"epub ok":"sem epub",p.serie?` · ${p.serie}`:""]})]}),f.jsxs("div",{className:"flex gap-1 flex-shrink-0",children:[f.jsx("button",{className:"btn btn-ghost text-xs",style:{padding:"0.35rem 0.7rem"},onClick:()=>n(p),children:"editar"}),f.jsx("button",{className:"btn btn-ghost text-xs",style:{padding:"0.35rem 0.7rem"},onClick:()=>h.mutate({id:p.id,status:p.status==="publicado"?"rascunho":"publicado"}),children:p.status==="publicado"?"despublicar":"publicar"}),f.jsx("button",{className:"btn btn-ghost text-xs",style:{padding:"0.35rem 0.7rem",color:"#ff8080"},onClick:()=>y(p.id,p.titulo),children:"excluir"})]})]},p.id)),v?.length===0&&f.jsx("p",{className:"text-sm",style:{color:"var(--color-text-on-dark-subtle)"},children:"nenhum livro encontrado."})]})]})}function Fx(){const{data:n}=L.config.obter.useQuery(),r=L.useUtils(),s=L.config.atualizar.useMutation({onSuccess:()=>r.config.obter.invalidate()});return n?f.jsxs("div",{className:"mt-8 space-y-3 rounded-lg p-4",style:{background:"var(--color-bg-card-dark)",border:"var(--border-thin)"},children:[f.jsx("h2",{className:"font-medium",style:{fontFamily:"var(--font-display)"},children:"Configurações de exibição"}),f.jsx("p",{className:"text-xs",style:{color:"var(--color-text-on-dark-muted)"},children:"Controla como os livros aparecem na Home. O celular sempre se ajusta sozinho — só desktop e tablet usam esse número fixo."}),f.jsxs("div",{className:"flex gap-4 items-center",children:[f.jsxs("label",{className:"text-sm flex-1",style:{color:"var(--color-text-on-dark-muted)"},children:["colunas no desktop",f.jsx("input",{type:"number",min:1,max:6,defaultValue:n.colunasDesktop,className:"w-full rounded px-3 py-2 mt-1",style:be,onBlur:o=>s.mutate({colunasDesktop:Number(o.target.value)})})]}),f.jsxs("label",{className:"text-sm flex-1",style:{color:"var(--color-text-on-dark-muted)"},children:["colunas no tablet",f.jsx("input",{type:"number",min:1,max:6,defaultValue:n.colunasTablet,className:"w-full rounded px-3 py-2 mt-1",style:be,onBlur:o=>s.mutate({colunasTablet:Number(o.target.value)})})]})]}),f.jsxs("label",{className:"text-sm block",style:{color:"var(--color-text-on-dark-muted)"},children:["modo padrão pra quem visita pela primeira vez",f.jsxs("select",{defaultValue:n.modoPadrao,className:"w-full rounded px-3 py-2 mt-1",style:be,onChange:o=>s.mutate({modoPadrao:o.target.value}),children:[f.jsx("option",{value:"grade",style:{color:"#000"},children:"grade"}),f.jsx("option",{value:"lista",style:{color:"#000"},children:"lista"})]})]}),f.jsxs("label",{className:"text-sm block",style:{color:"var(--color-text-on-dark-muted)"},children:["quantidade de slides no carrossel de destaque",f.jsx("input",{type:"number",min:1,max:10,defaultValue:n.qtdSlidesHero,className:"w-full rounded px-3 py-2 mt-1",style:be,onBlur:o=>s.mutate({qtdSlidesHero:Number(o.target.value)})}),f.jsx("span",{className:"block text-xs mt-1",style:{color:"var(--color-text-on-dark-subtle)"},children:'se faltar livro marcado como "destaque", completa com os mais recentes.'})]})]}):null}function $x(){const{data:n}=L.menu.listar.useQuery(),r=L.useUtils(),s=L.menu.criar.useMutation({onSuccess:()=>r.menu.listar.invalidate()}),o=L.menu.atualizar.useMutation({onSuccess:()=>r.menu.listar.invalidate()}),c=L.menu.excluir.useMutation({onSuccess:()=>r.menu.listar.invalidate()}),[h,m]=R.useState(""),[v,y]=R.useState("");function p(){!h||!v||(s.mutate({rotulo:h,url:v,ordem:(n?.length??0)+1}),m(""),y(""))}return f.jsxs("div",{className:"mt-8 space-y-3 rounded-lg p-4",style:{background:"var(--color-bg-card-dark)",border:"var(--border-thin)"},children:[f.jsx("h2",{className:"font-medium",style:{fontFamily:"var(--font-display)"},children:"Menu de navegação"}),f.jsx("p",{className:"text-xs",style:{color:"var(--color-text-on-dark-muted)"},children:"Aparece no topo e no rodapé do site. Deixe vazio pra não mostrar menu nenhum."}),f.jsxs("div",{className:"space-y-2",children:[n?.map(O=>f.jsxs("div",{className:"flex items-center gap-2",children:[f.jsx("input",{defaultValue:O.rotulo,className:"flex-1 rounded px-3 py-1.5 text-sm",style:be,onBlur:S=>o.mutate({id:O.id,rotulo:S.target.value})}),f.jsx("input",{defaultValue:O.url,className:"flex-1 rounded px-3 py-1.5 text-sm",style:be,onBlur:S=>o.mutate({id:O.id,url:S.target.value})}),f.jsx("button",{className:"text-xs flex-shrink-0",style:{color:"#ff8080"},onClick:()=>c.mutate({id:O.id}),children:"remover"})]},O.id)),n?.length===0&&f.jsx("p",{className:"text-xs",style:{color:"var(--color-text-on-dark-subtle)"},children:"nenhum item ainda."})]}),f.jsxs("div",{className:"flex items-center gap-2 pt-2",style:{borderTop:"var(--border-thin)"},children:[f.jsx("input",{placeholder:"rótulo (ex: Sobre)",value:h,onChange:O=>m(O.target.value),className:"flex-1 rounded px-3 py-1.5 text-sm",style:be}),f.jsx("input",{placeholder:"url (ex: /serie/Quatro Cavalos)",value:v,onChange:O=>y(O.target.value),className:"flex-1 rounded px-3 py-1.5 text-sm",style:be}),f.jsx("button",{className:"btn btn-ghost text-xs flex-shrink-0",style:{padding:"0.4rem 0.8rem"},onClick:p,children:"+ adicionar"})]})]})}function Px(){const{data:n}=L.colecoes.listar.useQuery(),r=L.useUtils(),s=L.colecoes.criar.useMutation({onSuccess:()=>r.colecoes.listar.invalidate()}),o=L.colecoes.atualizar.useMutation({onSuccess:()=>r.colecoes.listar.invalidate()}),c=L.colecoes.excluir.useMutation({onSuccess:()=>r.colecoes.listar.invalidate()}),[h,m]=R.useState(""),[v,y]=R.useState("");return f.jsxs("div",{className:"mt-8 space-y-3 rounded-lg p-4",style:{background:"var(--color-bg-card-dark)",border:"var(--border-thin)"},children:[f.jsx("h2",{className:"font-medium",style:{fontFamily:"var(--font-display)"},children:"Coleções"}),f.jsx("p",{className:"text-xs",style:{color:"var(--color-text-on-dark-muted)"},children:'Prateleiras temáticas (ex: "Heróis da Fé") que podem reunir várias séries ou obras avulsas — diferente de série, que é sequencial dentro de uma coleção.'}),f.jsx("div",{className:"space-y-2",children:n?.map(p=>f.jsxs("div",{className:"flex items-center gap-2",children:[f.jsx("input",{defaultValue:p.nome,className:"flex-1 rounded px-3 py-1.5 text-sm",style:be,onBlur:O=>o.mutate({id:p.id,nome:O.target.value})}),f.jsx("button",{className:"text-xs flex-shrink-0",style:{color:"#ff8080"},onClick:()=>c.mutate({id:p.id}),children:"remover"})]},p.id))}),f.jsxs("div",{className:"flex items-center gap-2 pt-2",style:{borderTop:"var(--border-thin)"},children:[f.jsx("input",{placeholder:"nova coleção (ex: Heróis da Fé)",value:h,onChange:p=>m(p.target.value),className:"flex-1 rounded px-3 py-1.5 text-sm",style:be}),f.jsx("input",{placeholder:"descrição curta (opcional)",value:v,onChange:p=>y(p.target.value),className:"flex-1 rounded px-3 py-1.5 text-sm",style:be}),f.jsx("button",{className:"btn btn-ghost text-xs flex-shrink-0",style:{padding:"0.4rem 0.8rem"},onClick:()=>{h&&(s.mutate({nome:h,descricao:v||void 0}),m(""),y(""))},children:"+ adicionar"})]})]})}function Wx(){const{data:n}=L.homeCms.config.obter.useQuery(),r=L.useUtils(),s=L.homeCms.config.atualizar.useMutation({onSuccess:()=>r.homeCms.config.obter.invalidate()});if(!n)return null;function o(c,h,m="texto"){const v=m==="textarea"?"textarea":"input";return f.jsxs("label",{className:"block text-sm",style:{color:"var(--color-text-on-dark-muted)"},children:[h,f.jsx(v,{className:"w-full rounded px-3 py-2 mt-1",style:be,defaultValue:n[c]??"",onBlur:y=>s.mutate({[c]:y.target.value})})]})}return f.jsxs("div",{className:"mt-8 space-y-6",children:[f.jsxs("div",{className:"space-y-3 rounded-lg p-4",style:{background:"var(--color-bg-card-dark)",border:"var(--border-thin)"},children:[f.jsx("h2",{className:"font-medium",style:{fontFamily:"var(--font-display)"},children:"Hero"}),o("heroTitulo","título (linha 1)"),o("heroTituloDestaque","título em destaque (linha 2, dourada)"),o("heroSubtitulo","subtítulo","textarea"),o("heroFundoUrl","URL da imagem de fundo"),f.jsxs("label",{className:"block text-sm",style:{color:"var(--color-text-on-dark-muted)"},children:["intensidade do overlay escuro (0-100)",f.jsx("input",{type:"number",min:0,max:100,className:"w-full rounded px-3 py-2 mt-1",style:be,defaultValue:n.heroOverlayIntensidade,onBlur:c=>s.mutate({heroOverlayIntensidade:Number(c.target.value)})})]}),f.jsxs("label",{className:"flex items-center gap-2 text-sm",style:{color:"var(--color-text-on-dark-muted)"},children:[f.jsx("input",{type:"checkbox",defaultChecked:n.heroBuscaAtiva,onChange:c=>s.mutate({heroBuscaAtiva:c.target.checked})}),"mostrar busca no hero"]}),o("heroBuscaPlaceholder","texto de exemplo da busca"),f.jsxs("label",{className:"block text-sm",style:{color:"var(--color-text-on-dark-muted)"},children:["critério dos destaques do hero",f.jsxs("select",{className:"w-full rounded px-3 py-2 mt-1",style:be,defaultValue:n.destaquesCriterio,onChange:c=>s.mutate({destaquesCriterio:c.target.value}),children:[f.jsx("option",{value:"manual",style:{color:"#000"},children:"manual (livros marcados como destaque)"}),f.jsx("option",{value:"recentes",style:{color:"#000"},children:"sempre os mais recentes"}),f.jsx("option",{value:"aleatorio",style:{color:"#000"},children:"aleatório"})]})]})]}),f.jsxs("div",{className:"space-y-3 rounded-lg p-4",style:{background:"var(--color-bg-card-dark)",border:"var(--border-thin)"},children:[f.jsx("h2",{className:"font-medium",style:{fontFamily:"var(--font-display)"},children:"Todos os livros"}),f.jsxs("label",{className:"block text-sm",style:{color:"var(--color-text-on-dark-muted)"},children:["ordenação",f.jsxs("select",{className:"w-full rounded px-3 py-2 mt-1",style:be,defaultValue:n.todosLivrosOrdenacao,onChange:c=>s.mutate({todosLivrosOrdenacao:c.target.value}),children:[f.jsx("option",{value:"recentes",style:{color:"#000"},children:"mais recentes primeiro"}),f.jsx("option",{value:"aleatorio",style:{color:"#000"},children:"aleatório"}),f.jsx("option",{value:"titulo",style:{color:"#000"},children:"ordem alfabética"})]})]})]}),f.jsxs("div",{className:"space-y-3 rounded-lg p-4",style:{background:"var(--color-bg-card-dark)",border:"var(--border-thin)"},children:[f.jsx("h2",{className:"font-medium",style:{fontFamily:"var(--font-display)"},children:"Rodapé"}),o("footerDescricao","descrição","textarea"),o("footerCopyright","linha de copyright (deixe em branco pro padrão)")]}),f.jsxs("div",{className:"space-y-3 rounded-lg p-4",style:{background:"var(--color-bg-card-dark)",border:"var(--border-thin)"},children:[f.jsx("h2",{className:"font-medium",style:{fontFamily:"var(--font-display)"},children:"SEO"}),o("seoTitulo","título da página"),o("seoDescricao","meta descrição","textarea"),o("seoOgImagemUrl","imagem de compartilhamento (og:image)"),o("seoKeywords","palavras-chave"),o("seoCanonical","URL canônica")]}),f.jsxs("div",{className:"space-y-3 rounded-lg p-4",style:{background:"var(--color-bg-card-dark)",border:"var(--border-thin)"},children:[f.jsx("h2",{className:"font-medium",style:{fontFamily:"var(--font-display)"},children:"Aparência"}),f.jsx("p",{className:"text-xs",style:{color:"var(--color-text-on-dark-muted)"},children:"conjunto curado de cores — não é cor-por-elemento, de propósito, pra manter consistência visual."}),f.jsxs("div",{className:"flex gap-3",children:[f.jsxs("label",{className:"text-sm flex-1",style:{color:"var(--color-text-on-dark-muted)"},children:["cor primária (dourado)",f.jsx("input",{type:"color",className:"w-full h-10 rounded mt-1",defaultValue:n.corPrimaria,onBlur:c=>s.mutate({corPrimaria:c.target.value})})]}),f.jsxs("label",{className:"text-sm flex-1",style:{color:"var(--color-text-on-dark-muted)"},children:["cor de fundo",f.jsx("input",{type:"color",className:"w-full h-10 rounded mt-1",defaultValue:n.corFundo,onBlur:c=>s.mutate({corFundo:c.target.value})})]})]})]})]})}function Ix(){const{data:n}=L.homeCms.heroCards.listarTodos.useQuery(),r=L.useUtils(),s=L.homeCms.heroCards.criar.useMutation({onSuccess:()=>r.homeCms.heroCards.listarTodos.invalidate()}),o=L.homeCms.heroCards.atualizar.useMutation({onSuccess:()=>r.homeCms.heroCards.listarTodos.invalidate()}),c=L.homeCms.heroCards.excluir.useMutation({onSuccess:()=>r.homeCms.heroCards.listarTodos.invalidate()}),[h,m]=R.useState(""),[v,y]=R.useState(""),[p,O]=R.useState("");return f.jsxs("div",{className:"mt-8 space-y-3 rounded-lg p-4",style:{background:"var(--color-bg-card-dark)",border:"var(--border-thin)"},children:[f.jsx("h2",{className:"font-medium",style:{fontFamily:"var(--font-display)"},children:"Cards do Hero"}),f.jsx("p",{className:"text-xs",style:{color:"var(--color-text-on-dark-muted)"},children:"Se nenhum card estiver cadastrado aqui, o hero mostra os destaques automáticos. Cadastrando aqui, estes têm prioridade."}),f.jsx("div",{className:"space-y-2",children:n?.map(S=>f.jsxs("div",{className:"flex items-center gap-2",children:[f.jsx("input",{defaultValue:S.titulo,className:"flex-1 rounded px-2 py-1.5 text-sm",style:be,onBlur:C=>o.mutate({id:S.id,titulo:C.target.value})}),f.jsx("input",{defaultValue:S.imagemUrl??"",placeholder:"imagem",className:"flex-1 rounded px-2 py-1.5 text-sm",style:be,onBlur:C=>o.mutate({id:S.id,imagemUrl:C.target.value})}),f.jsx("input",{defaultValue:S.linkUrl??"",placeholder:"link",className:"flex-1 rounded px-2 py-1.5 text-sm",style:be,onBlur:C=>o.mutate({id:S.id,linkUrl:C.target.value})}),f.jsxs("label",{className:"flex items-center gap-1 text-xs flex-shrink-0",style:{color:"var(--color-text-on-dark-muted)"},children:[f.jsx("input",{type:"checkbox",defaultChecked:S.ativo,onChange:C=>o.mutate({id:S.id,ativo:C.target.checked})})," ativo"]}),f.jsx("button",{className:"text-xs flex-shrink-0",style:{color:"#ff8080"},onClick:()=>c.mutate({id:S.id}),children:"remover"})]},S.id))}),f.jsxs("div",{className:"flex items-center gap-2 pt-2",style:{borderTop:"var(--border-thin)"},children:[f.jsx("input",{placeholder:"título",value:h,onChange:S=>m(S.target.value),className:"flex-1 rounded px-2 py-1.5 text-sm",style:be}),f.jsx("input",{placeholder:"imagem (opcional)",value:v,onChange:S=>y(S.target.value),className:"flex-1 rounded px-2 py-1.5 text-sm",style:be}),f.jsx("input",{placeholder:"link",value:p,onChange:S=>O(S.target.value),className:"flex-1 rounded px-2 py-1.5 text-sm",style:be}),f.jsx("button",{className:"btn btn-ghost text-xs flex-shrink-0",style:{padding:"0.4rem 0.8rem"},onClick:()=>{h&&(s.mutate({titulo:h,imagemUrl:v||void 0,linkUrl:p||void 0}),m(""),y(""),O(""))},children:"+ adicionar"})]})]})}function e2(){const{data:n}=L.homeCms.banners.listarTodos.useQuery(),r=L.useUtils(),s=L.homeCms.banners.criar.useMutation({onSuccess:()=>r.homeCms.banners.listarTodos.invalidate()}),o=L.homeCms.banners.atualizar.useMutation({onSuccess:()=>r.homeCms.banners.listarTodos.invalidate()}),c=L.homeCms.banners.excluir.useMutation({onSuccess:()=>r.homeCms.banners.listarTodos.invalidate()}),[h,m]=R.useState(""),[v,y]=R.useState("");return f.jsxs("div",{className:"mt-8 space-y-3 rounded-lg p-4",style:{background:"var(--color-bg-card-dark)",border:"var(--border-thin)"},children:[f.jsx("h2",{className:"font-medium",style:{fontFamily:"var(--font-display)"},children:"Banners (cross-divulgação do ecossistema)"}),f.jsx("p",{className:"text-xs",style:{color:"var(--color-text-on-dark-muted)"},children:"Independente do hero — pode ter período de exibição (ex: só durante um congresso). Deixe as datas em branco pra sempre visível."}),f.jsx("div",{className:"space-y-2",children:n?.map(p=>f.jsxs("div",{className:"rounded p-3 space-y-2",style:{border:"var(--border-thin)"},children:[f.jsxs("div",{className:"flex gap-2",children:[f.jsx("input",{defaultValue:p.titulo,className:"flex-1 rounded px-2 py-1.5 text-sm",style:be,onBlur:O=>o.mutate({id:p.id,titulo:O.target.value})}),f.jsx("input",{defaultValue:p.linkUrl,placeholder:"link",className:"flex-1 rounded px-2 py-1.5 text-sm",style:be,onBlur:O=>o.mutate({id:p.id,linkUrl:O.target.value})})]}),f.jsxs("div",{className:"flex gap-2 items-center",children:[f.jsxs("label",{className:"text-xs flex-1",style:{color:"var(--color-text-on-dark-muted)"},children:["início",f.jsx("input",{type:"date",defaultValue:p.dataInicio?.toString().slice(0,10)??"",className:"w-full rounded px-2 py-1 text-sm mt-0.5",style:be,onChange:O=>o.mutate({id:p.id,dataInicio:O.target.value})})]}),f.jsxs("label",{className:"text-xs flex-1",style:{color:"var(--color-text-on-dark-muted)"},children:["fim",f.jsx("input",{type:"date",defaultValue:p.dataFim?.toString().slice(0,10)??"",className:"w-full rounded px-2 py-1 text-sm mt-0.5",style:be,onChange:O=>o.mutate({id:p.id,dataFim:O.target.value})})]}),f.jsxs("label",{className:"flex items-center gap-1 text-xs flex-shrink-0 mt-3",style:{color:"var(--color-text-on-dark-muted)"},children:[f.jsx("input",{type:"checkbox",defaultChecked:p.ativo,onChange:O=>o.mutate({id:p.id,ativo:O.target.checked})})," ativo"]}),f.jsx("button",{className:"text-xs flex-shrink-0 mt-3",style:{color:"#ff8080"},onClick:()=>c.mutate({id:p.id}),children:"remover"})]})]},p.id))}),f.jsxs("div",{className:"flex items-center gap-2 pt-2",style:{borderTop:"var(--border-thin)"},children:[f.jsx("input",{placeholder:"título (ex: Ouça no SpotOnFide)",value:h,onChange:p=>m(p.target.value),className:"flex-1 rounded px-2 py-1.5 text-sm",style:be}),f.jsx("input",{placeholder:"link (ex: https://spot.onfide.com.br)",value:v,onChange:p=>y(p.target.value),className:"flex-1 rounded px-2 py-1.5 text-sm",style:be}),f.jsx("button",{className:"btn btn-ghost text-xs flex-shrink-0",style:{padding:"0.4rem 0.8rem"},onClick:()=>{!h||!v||(s.mutate({titulo:h,linkUrl:v}),m(""),y(""))},children:"+ adicionar"})]})]})}function t2(){const n=L.useUtils(),{data:r}=L.homeCms.comoFunciona.listar.useQuery(),s=L.homeCms.comoFunciona.criar.useMutation({onSuccess:()=>n.homeCms.comoFunciona.listar.invalidate()}),o=L.homeCms.comoFunciona.atualizar.useMutation({onSuccess:()=>n.homeCms.comoFunciona.listar.invalidate()}),c=L.homeCms.comoFunciona.excluir.useMutation({onSuccess:()=>n.homeCms.comoFunciona.listar.invalidate()}),{data:h}=L.homeCms.acervoItens.listarTodos.useQuery(),m=L.homeCms.acervoItens.criar.useMutation({onSuccess:()=>n.homeCms.acervoItens.listarTodos.invalidate()}),v=L.homeCms.acervoItens.atualizar.useMutation({onSuccess:()=>n.homeCms.acervoItens.listarTodos.invalidate()}),y=L.homeCms.acervoItens.excluir.useMutation({onSuccess:()=>n.homeCms.acervoItens.listarTodos.invalidate()}),{data:p}=L.homeCms.publicoItens.listarTodos.useQuery(),O=L.homeCms.publicoItens.criar.useMutation({onSuccess:()=>n.homeCms.publicoItens.listarTodos.invalidate()}),S=L.homeCms.publicoItens.atualizar.useMutation({onSuccess:()=>n.homeCms.publicoItens.listarTodos.invalidate()}),C=L.homeCms.publicoItens.excluir.useMutation({onSuccess:()=>n.homeCms.publicoItens.listarTodos.invalidate()}),{data:w}=L.homeCms.beneficios.listarTodos.useQuery(),G=L.homeCms.beneficios.criar.useMutation({onSuccess:()=>n.homeCms.beneficios.listarTodos.invalidate()}),_=L.homeCms.beneficios.atualizar.useMutation({onSuccess:()=>n.homeCms.beneficios.listarTodos.invalidate()}),F=L.homeCms.beneficios.excluir.useMutation({onSuccess:()=>n.homeCms.beneficios.listarTodos.invalidate()}),{data:ne}=L.homeCms.faqItens.listarTodos.useQuery(),ce=L.homeCms.faqItens.criar.useMutation({onSuccess:()=>n.homeCms.faqItens.listarTodos.invalidate()}),oe=L.homeCms.faqItens.atualizar.useMutation({onSuccess:()=>n.homeCms.faqItens.listarTodos.invalidate()}),Ce=L.homeCms.faqItens.excluir.useMutation({onSuccess:()=>n.homeCms.faqItens.listarTodos.invalidate()});return f.jsxs(f.Fragment,{children:[f.jsx(yu,{titulo:"Como Funciona",descricao:"ícone = nome de um ícone do lucide-react (ex: Search, BookOpen, Bookmark)",temAtivo:!1,campos:[{chave:"icone",rotulo:"ícone"},{chave:"numero",rotulo:"número"},{chave:"titulo",rotulo:"título"},{chave:"descricao",rotulo:"descrição",tipo:"textarea"}],itens:r,aoCriar:X=>s.mutate(X),aoAtualizar:(X,V)=>o.mutate({id:X,...V}),aoExcluir:X=>c.mutate({id:X})}),f.jsx(yu,{titulo:"O Acervo (formatos)",campos:[{chave:"icone",rotulo:"ícone"},{chave:"nome",rotulo:"nome"},{chave:"descricao",rotulo:"descrição",tipo:"textarea"},{chave:"linkUrl",rotulo:"link"}],itens:h,aoCriar:X=>m.mutate(X),aoAtualizar:(X,V)=>v.mutate({id:X,...V}),aoExcluir:X=>y.mutate({id:X})}),f.jsx(yu,{titulo:"Leitura pra Toda a Família (público)",campos:[{chave:"icone",rotulo:"ícone"},{chave:"nome",rotulo:"nome"},{chave:"faixaEtaria",rotulo:"faixa etária"},{chave:"linkUrl",rotulo:"link"}],itens:p,aoCriar:X=>O.mutate(X),aoAtualizar:(X,V)=>S.mutate({id:X,...V}),aoExcluir:X=>C.mutate({id:X})}),f.jsx(yu,{titulo:"Por Que Ler (experiência)",campos:[{chave:"icone",rotulo:"ícone"},{chave:"texto",rotulo:"texto"}],itens:w,aoCriar:X=>G.mutate(X),aoAtualizar:(X,V)=>_.mutate({id:X,...V}),aoExcluir:X=>F.mutate({id:X})}),f.jsx(yu,{titulo:"Perguntas Frequentes",campos:[{chave:"pergunta",rotulo:"pergunta"},{chave:"resposta",rotulo:"resposta",tipo:"textarea"}],itens:ne,aoCriar:X=>ce.mutate(X),aoAtualizar:(X,V)=>oe.mutate({id:X,...V}),aoExcluir:X=>Ce.mutate({id:X})})]})}function a2(){const{usuario:n,isLoading:r,podePublicar:s,logout:o}=hn(),[c,h]=R.useState(null);return r?null:n?s?f.jsx("div",{className:"min-h-dvh",style:{background:"var(--gradient-hero)",color:"var(--color-text-on-dark)"},children:f.jsxs("div",{className:"max-w-2xl mx-auto p-6",children:[f.jsxs("div",{className:"flex justify-between items-center mb-6",children:[f.jsx("img",{src:"/media/images/logo-biblioteca-onfide.svg",alt:"Biblioteca OnFide",className:"h-7"}),f.jsx("button",{style:{color:"var(--color-text-on-dark-muted)"},className:"text-sm",onClick:()=>o.mutate(),children:"sair"})]}),f.jsx(Zx,{livroExistente:c,aoTerminar:()=>h(null)},c?.id??"novo"),f.jsx(Jx,{aoEditar:h}),f.jsx(Fx,{}),f.jsx(Px,{}),f.jsx($x,{}),f.jsx("h2",{className:"mt-10 mb-2 text-lg",style:{fontFamily:"var(--font-display)"},children:"CMS da Home"}),f.jsx(Wx,{}),f.jsx(Ix,{}),f.jsx(e2,{}),f.jsx(t2,{})]})}):f.jsx("div",{className:"min-h-dvh p-6",style:{background:"var(--gradient-hero)",color:"var(--color-text-on-dark)"},children:"Sua conta não tem permissão de editor."}):(window.location.href="/entrar",null)}const l2="/media/images/capas/capa-placeholder.svg";function n2(){const{id:n}=li(),r=Number(n),{data:s,isLoading:o}=L.biblioteca.getLivro.useQuery({id:r}),{data:c}=L.auth.me.useQuery(),{data:h}=L.biblioteca.favoritos.status.useQuery({livroId:r},{enabled:!!c&&!Number.isNaN(r)}),m=L.useUtils(),v=L.biblioteca.favoritos.alternar.useMutation({onSuccess:()=>m.biblioteca.favoritos.status.invalidate({livroId:r})});return o?f.jsx("main",{style:{minHeight:"100dvh",background:"var(--gradient-hero-dourado)",color:"var(--color-text-on-dark)",display:"flex",alignItems:"center",justifyContent:"center"},children:f.jsx("p",{style:{fontSize:"0.875rem",color:"var(--color-text-on-dark-muted)"},children:"carregando..."})}):s?f.jsxs("main",{className:"min-h-dvh flex flex-col",style:{background:"var(--gradient-hero-dourado)",color:"var(--color-text-on-dark)"},children:[f.jsx(Zt,{}),f.jsxs("div",{className:"max-w-xl mx-auto px-5 pt-10 pb-16 flex-1 w-full flex flex-col items-center text-center",children:[f.jsxs("div",{className:"relative",children:[f.jsx("img",{src:s.capaUrl||l2,alt:s.titulo,style:{width:180,aspectRatio:"2 / 3",objectFit:"cover",borderRadius:"var(--radius-lg)",boxShadow:"var(--shadow-borgonha-md)"}}),c&&f.jsx("button",{"aria-label":"favoritar",onClick:()=>v.mutate({livroId:r}),className:"absolute -top-2 -right-2 w-9 h-9 rounded-full flex items-center justify-center",style:{background:"var(--clr-borgonha-900)",border:"var(--border-medium)",color:h?.favorito?"var(--clr-dourado-400)":"var(--color-text-on-dark-subtle)"},children:h?.favorito?"★":"☆"})]}),f.jsx("h1",{style:{fontFamily:"var(--font-display)",fontSize:"1.5rem",fontWeight:600,color:"var(--clr-branco)",marginTop:"1.5rem",marginBottom:"0.4rem"},children:s.titulo}),s.subtitulo&&f.jsx("p",{style:{fontSize:"0.95rem",color:"var(--color-text-on-dark-muted)",marginBottom:"0.6rem"},children:s.subtitulo}),f.jsx("p",{style:{fontSize:"0.85rem",color:"var(--color-text-on-dark-muted)",marginBottom:"0.3rem"},children:s.autor}),s.serie&&f.jsxs("a",{href:`/serie/${encodeURIComponent(s.serie)}`,className:"inline-block transition-opacity hover:opacity-80",style:{marginTop:"0.4rem",marginBottom:"1.5rem",fontSize:"0.75rem",padding:"0.35rem 0.9rem",borderRadius:"var(--radius-full)",border:"var(--border-medium)",color:"var(--clr-dourado-400)"},children:[s.serie,s.volumeNumero?` · volume ${s.volumeNumero}`:""]}),s.resumo&&f.jsx("p",{style:{fontSize:"0.9rem",lineHeight:"var(--leading-relaxed)",color:"var(--color-text-on-dark-muted)",marginBottom:"2rem",maxWidth:"50ch"},children:s.resumo}),s.epubUrl?f.jsx("a",{href:`/leitor/${s.id}`,className:"btn btn-primary",style:{padding:"0.75rem 2.5rem"},children:"ler agora"}):f.jsx("p",{style:{fontSize:"0.8rem",color:"var(--color-text-on-dark-subtle)"},children:"este livro ainda não tem um arquivo de leitura disponível."})]}),f.jsx(Jt,{})]}):f.jsxs("main",{className:"min-h-dvh flex flex-col",style:{background:"var(--gradient-hero-dourado)",color:"var(--color-text-on-dark)"},children:[f.jsx(Zt,{}),f.jsxs("div",{className:"flex-1 flex flex-col items-center justify-center gap-4",children:[f.jsx("p",{style:{fontSize:"0.9rem",color:"var(--color-text-on-dark-muted)"},children:"livro não encontrado."}),f.jsx("a",{href:"/",className:"btn btn-ghost",style:{padding:"0.5rem 1.25rem"},children:"voltar pra Home"})]}),f.jsx(Jt,{})]})}function u2(){const r=new URLSearchParams(xv()).get("q")||"",[s]=R.useState(r),{data:o,isLoading:c}=L.biblioteca.buscar.useQuery({q:s},{enabled:s.length>0});return f.jsxs("main",{className:"min-h-dvh flex flex-col",style:{background:"var(--gradient-hero-dourado)",color:"var(--color-text-on-dark)"},children:[f.jsx(Zt,{buscaInicial:s}),f.jsxs("div",{className:"max-w-5xl mx-auto px-5 pt-8 pb-16 flex-1 w-full",children:[s.length===0&&f.jsx("p",{style:{fontSize:"0.875rem",color:"var(--color-text-on-dark-muted)"},children:"digite algo pra buscar."}),c&&f.jsx("p",{style:{fontSize:"0.875rem",color:"var(--color-text-on-dark-muted)"},children:"buscando..."}),s.length>0&&!c&&o&&o.length===0&&f.jsxs("p",{style:{fontSize:"0.875rem",color:"var(--color-text-on-dark-muted)"},children:['nada encontrado pra "',s,'".']}),o&&o.length>0&&f.jsx(dn,{livros:o,titulo:`resultados pra "${s}"`})]}),f.jsx(Jt,{})]})}function r2(){const{nome:n}=li(),r=decodeURIComponent(n),{data:s,isLoading:o}=L.biblioteca.getSerie.useQuery({nome:r});return f.jsxs("main",{className:"min-h-dvh flex flex-col",style:{background:"var(--gradient-hero-dourado)",color:"var(--color-text-on-dark)"},children:[f.jsx(Zt,{}),f.jsxs("div",{className:"max-w-5xl mx-auto px-5 pt-8 pb-16 flex-1 w-full",children:[f.jsx("h1",{style:{fontFamily:"var(--font-display)",fontSize:"1.5rem",color:"var(--clr-branco)",marginBottom:"1.5rem"},children:r}),o&&f.jsx("p",{style:{fontSize:"0.875rem",color:"var(--color-text-on-dark-muted)"},children:"carregando..."}),s&&s.length>0?f.jsx(dn,{livros:s,titulo:`${s.length} livro${s.length>1?"s":""} nesta série`}):!o&&f.jsx("p",{style:{fontSize:"0.875rem",color:"var(--color-text-on-dark-muted)"},children:"nenhum livro publicado nesta série ainda."})]}),f.jsx(Jt,{})]})}const Ym={background:"rgba(255,255,255,0.06)",border:"var(--border-medium)",color:"var(--clr-branco)"};function i2(){const{usuario:n,isLoading:r,login:s}=hn(),[o,c]=R.useState(""),[h,m]=R.useState("");return r?null:n?(window.location.href="/minha-biblioteca",null):f.jsxs("main",{className:"min-h-dvh flex flex-col",style:{background:"var(--gradient-hero-dourado)",color:"var(--color-text-on-dark)"},children:[f.jsx(Zt,{}),f.jsx("div",{className:"flex-1 flex items-center justify-center px-6",children:f.jsxs("div",{className:"max-w-sm w-full space-y-3",children:[f.jsx("h1",{className:"text-lg font-medium",style:{fontFamily:"var(--font-display)"},children:"Entrar"}),f.jsx("input",{className:"w-full rounded px-3 py-2",style:Ym,placeholder:"e-mail",value:o,onChange:v=>c(v.target.value)}),f.jsx("input",{className:"w-full rounded px-3 py-2",style:Ym,placeholder:"senha",type:"password",value:h,onChange:v=>m(v.target.value)}),f.jsx("button",{className:"btn btn-primary w-full",onClick:()=>s.mutate({email:o,senha:h}),disabled:s.isPending,children:s.isPending?"entrando...":"entrar"}),s.isError&&f.jsx("p",{className:"text-sm",style:{color:"#ff8080"},children:s.error.message}),f.jsxs("p",{className:"text-sm text-center pt-2",style:{color:"var(--color-text-on-dark-muted)"},children:["ainda não tem conta? ",f.jsx("a",{href:"/cadastro",style:{color:"var(--clr-dourado-400)"},children:"criar conta"})]})]})}),f.jsx(Jt,{})]})}const ko={background:"rgba(255,255,255,0.06)",border:"var(--border-medium)",color:"var(--clr-branco)"};function s2(){const{usuario:n,isLoading:r,registrar:s}=hn(),[o,c]=R.useState(""),[h,m]=R.useState(""),[v,y]=R.useState("");return r?null:n?(window.location.href="/minha-biblioteca",null):f.jsxs("main",{className:"min-h-dvh flex flex-col",style:{background:"var(--gradient-hero-dourado)",color:"var(--color-text-on-dark)"},children:[f.jsx(Zt,{}),f.jsx("div",{className:"flex-1 flex items-center justify-center px-6",children:f.jsxs("div",{className:"max-w-sm w-full space-y-3",children:[f.jsx("h1",{className:"text-lg font-medium",style:{fontFamily:"var(--font-display)"},children:"Criar conta"}),f.jsx("input",{className:"w-full rounded px-3 py-2",style:ko,placeholder:"nome",value:o,onChange:p=>c(p.target.value)}),f.jsx("input",{className:"w-full rounded px-3 py-2",style:ko,placeholder:"e-mail",value:h,onChange:p=>m(p.target.value)}),f.jsx("input",{className:"w-full rounded px-3 py-2",style:ko,placeholder:"senha (mínimo 8 caracteres)",type:"password",value:v,onChange:p=>y(p.target.value)}),f.jsx("button",{className:"btn btn-primary w-full",onClick:()=>s.mutate({nome:o,email:h,senha:v}),disabled:s.isPending||!o||!h||v.length<8,children:s.isPending?"criando...":"criar conta"}),s.isError&&f.jsx("p",{className:"text-sm",style:{color:"#ff8080"},children:s.error.message}),f.jsxs("p",{className:"text-sm text-center pt-2",style:{color:"var(--color-text-on-dark-muted)"},children:["já tem conta? ",f.jsx("a",{href:"/entrar",style:{color:"var(--clr-dourado-400)"},children:"entrar"})]})]})}),f.jsx(Jt,{})]})}const Zr={background:"rgba(255,255,255,0.06)",border:"var(--border-medium)",color:"var(--clr-branco)"};function o2(){const{usuario:n,isLoading:r,logout:s}=hn(),o=L.useUtils(),c=L.auth.atualizarPerfil.useMutation({onSuccess:()=>o.auth.me.invalidate()}),h=L.auth.trocarSenha.useMutation(),[m,v]=R.useState(n?.nome??""),[y,p]=R.useState(""),[O,S]=R.useState(""),[C,w]=R.useState(null);if(r)return null;if(!n)return window.location.href="/entrar",null;function G(){w(null),h.mutate({senhaAtual:y,senhaNova:O},{onSuccess:()=>{w("Senha atualizada."),p(""),S("")},onError:_=>w(_.message)})}return f.jsxs("main",{className:"min-h-dvh flex flex-col",style:{background:"var(--gradient-hero-dourado)",color:"var(--color-text-on-dark)"},children:[f.jsx(Zt,{}),f.jsxs("div",{className:"max-w-md mx-auto px-5 pt-10 pb-16 flex-1 w-full space-y-8",children:[f.jsxs("div",{children:[f.jsx("h1",{className:"text-lg font-medium mb-4",style:{fontFamily:"var(--font-display)"},children:"Meu perfil"}),f.jsxs("div",{className:"space-y-3 rounded-lg p-4",style:{background:"var(--color-bg-card-dark)",border:"var(--border-thin)"},children:[f.jsxs("label",{className:"block text-sm",style:{color:"var(--color-text-on-dark-muted)"},children:["nome",f.jsx("input",{className:"w-full rounded px-3 py-2 mt-1",style:Zr,value:m,onChange:_=>v(_.target.value)})]}),f.jsxs("label",{className:"block text-sm",style:{color:"var(--color-text-on-dark-muted)"},children:["e-mail",f.jsx("input",{className:"w-full rounded px-3 py-2 mt-1",style:{...Zr,opacity:.6},value:n.email,disabled:!0})]}),f.jsx("button",{className:"btn btn-primary",onClick:()=>c.mutate({nome:m}),disabled:c.isPending||!m,children:c.isPending?"salvando...":"salvar nome"}),c.isSuccess&&f.jsx("p",{className:"text-sm",style:{color:"var(--clr-dourado-400)"},children:"Nome atualizado."})]})]}),f.jsxs("div",{children:[f.jsx("h2",{className:"text-lg font-medium mb-4",style:{fontFamily:"var(--font-display)"},children:"Trocar senha"}),f.jsxs("div",{className:"space-y-3 rounded-lg p-4",style:{background:"var(--color-bg-card-dark)",border:"var(--border-thin)"},children:[f.jsx("input",{className:"w-full rounded px-3 py-2",style:Zr,placeholder:"senha atual",type:"password",value:y,onChange:_=>p(_.target.value)}),f.jsx("input",{className:"w-full rounded px-3 py-2",style:Zr,placeholder:"nova senha (mínimo 8 caracteres)",type:"password",value:O,onChange:_=>S(_.target.value)}),f.jsx("button",{className:"btn btn-primary",onClick:G,disabled:h.isPending||!y||O.length<8,children:h.isPending?"salvando...":"trocar senha"}),C&&f.jsx("p",{className:"text-sm",style:{color:C==="Senha atualizada."?"var(--clr-dourado-400)":"#ff8080"},children:C})]})]}),f.jsx("button",{className:"text-sm",style:{color:"var(--color-text-on-dark-muted)"},onClick:()=>s.mutate(),children:"sair da conta"})]}),f.jsx(Jt,{})]})}function c2(){const{usuario:n,isLoading:r}=hn(),{data:s}=L.biblioteca.historico.meuHistorico.useQuery(void 0,{enabled:!!n}),{data:o}=L.biblioteca.favoritos.meus.useQuery(void 0,{enabled:!!n});return r?null:n?f.jsxs("main",{className:"min-h-dvh flex flex-col",style:{background:"var(--gradient-hero-dourado)",color:"var(--color-text-on-dark)"},children:[f.jsx(Zt,{}),f.jsxs("div",{className:"max-w-5xl mx-auto px-5 pt-10 pb-16 flex-1 w-full",children:[f.jsxs("div",{className:"flex items-center justify-between mb-8",children:[f.jsxs("h1",{style:{fontFamily:"var(--font-display)"},className:"text-2xl",children:["Olá, ",n.nome.split(" ")[0]]}),f.jsx("a",{href:"/perfil",className:"btn btn-ghost text-sm",style:{padding:"0.5rem 1rem"},children:"meu perfil"})]}),s&&s.length>0&&f.jsxs("section",{className:"mb-14",children:[f.jsx("h2",{className:"text-xs uppercase mb-4",style:{fontFamily:"var(--font-ui)",letterSpacing:"var(--tracking-wider)",color:"var(--color-text-on-dark-subtle)"},children:"continuar lendo"}),f.jsx("div",{className:"flex gap-4 overflow-x-auto pb-2",children:s.map(c=>f.jsxs("a",{href:`/leitor/${c.livroId}`,className:"group block flex-shrink-0 w-28",children:[f.jsx("div",{className:"overflow-hidden rounded-md shadow-md transition-all duration-200 group-hover:-translate-y-1 group-hover:shadow-2xl",children:f.jsx("img",{src:c.capaUrl||"/media/images/capas/capa-placeholder.svg",alt:c.titulo,className:"w-full aspect-[2/3] object-cover transition-transform duration-300 group-hover:scale-105"})}),f.jsx("p",{className:"text-xs mt-2 line-clamp-2",style:{color:"var(--clr-branco)"},children:c.titulo})]},c.livroId))})]}),o&&o.length>0?f.jsx(dn,{livros:o.map(c=>({id:c.livroId,titulo:c.titulo,autor:c.autor,capaUrl:c.capaUrl})),titulo:"meus favoritos"}):!s?.length&&f.jsxs("div",{className:"rounded-lg p-10 text-center",style:{background:"var(--color-bg-card-dark)",border:"var(--border-thin)",color:"var(--color-text-on-dark-muted)"},children:[f.jsx("p",{className:"text-lg mb-2",style:{fontFamily:"var(--font-display)",color:"var(--clr-branco)"},children:"Sua estante está vazia por enquanto"}),f.jsx("p",{className:"text-sm mb-4",children:"Favorite um livro ou comece a ler algo pra ele aparecer aqui."}),f.jsx("a",{href:"/",className:"btn btn-primary",style:{padding:"0.6rem 1.5rem"},children:"explorar o catálogo"})]})]}),f.jsx(Jt,{})]}):(window.location.href="/entrar",null)}const f2={texto:"Livros",ilustrado:"Livros ilustrados",manga:"Mangás",hq:"HQs e graphic novels",revista:"Revistas",apostila:"Apostilas",audiolivro:"Áudiolivros"},d2={primeiros_leitores:"Primeiros leitores",infantil:"Infantil",pre_adolescente:"Pré-adolescentes",adolescente:"Adolescentes",jovem:"Jovens",adulto:"Adultos"};function h2(){const n=new URLSearchParams(xv()),r=n.get("formato")??void 0,s=n.get("publico")??void 0,{data:o,isLoading:c}=L.biblioteca.filtrar.useQuery({formato:r,publicoAlvo:s,limite:40}),h=r?f2[r]??r:s?d2[s]??s:"Explorar";return f.jsxs("main",{className:"min-h-dvh flex flex-col",style:{background:"var(--gradient-hero-dourado)",color:"var(--color-text-on-dark)"},children:[f.jsx(Zt,{}),f.jsxs("div",{className:"max-w-5xl mx-auto px-5 pt-8 pb-16 flex-1 w-full",children:[f.jsx("h1",{style:{fontFamily:"var(--font-display)"},className:"text-2xl mb-6",children:h}),c&&f.jsx("p",{style:{fontSize:"0.875rem",color:"var(--color-text-on-dark-muted)"},children:"carregando..."}),o&&o.length>0?f.jsx(dn,{livros:o,titulo:`${o.length} título${o.length>1?"s":""}`}):!c&&f.jsx("p",{style:{fontSize:"0.875rem",color:"var(--color-text-on-dark-muted)"},children:"nada por aqui ainda."})]}),f.jsx(Jt,{})]})}function m2(){const{id:n}=li(),{data:r,isLoading:s}=L.colecoes.obter.useQuery({id:Number(n)});return f.jsxs("main",{className:"min-h-dvh flex flex-col",style:{background:"var(--gradient-hero-dourado)",color:"var(--color-text-on-dark)"},children:[f.jsx(Zt,{}),f.jsxs("div",{className:"max-w-5xl mx-auto px-5 pt-8 pb-16 flex-1 w-full",children:[s&&f.jsx("p",{style:{fontSize:"0.875rem",color:"var(--color-text-on-dark-muted)"},children:"carregando..."}),r&&f.jsxs(f.Fragment,{children:[f.jsx("h1",{style:{fontFamily:"var(--font-display)"},className:"text-2xl mb-2",children:r.nome}),r.descricao&&f.jsx("p",{className:"mb-6 max-w-2xl",style:{color:"var(--color-text-on-dark-muted)",lineHeight:"var(--leading-relaxed)"},children:r.descricao}),r.livros.length>0?f.jsx(dn,{livros:r.livros,titulo:`${r.livros.length} título${r.livros.length>1?"s":""} nesta coleção`}):f.jsx("p",{style:{fontSize:"0.875rem",color:"var(--color-text-on-dark-muted)"},children:"Comece por qualquer volume e continue descobrindo — em breve os primeiros títulos chegam aqui."})]}),!s&&!r&&f.jsx("p",{style:{fontSize:"0.875rem",color:"var(--color-text-on-dark-muted)"},children:"coleção não encontrada."})]}),f.jsx(Jt,{})]})}const v2=R.lazy(()=>O0(()=>import("./Leitor-qnS6Uw4u.js"),[]).then(n=>({default:n.Leitor})));function y2(){const[n]=R.useState(()=>new B0);return f.jsx(L.Provider,{client:F1,queryClient:n,children:f.jsx(K0,{client:n,children:f.jsx(R.Suspense,{fallback:null,children:f.jsxs(Cg,{children:[f.jsx(Gt,{path:"/admin",component:a2}),f.jsx(Gt,{path:"/leitor/:id",component:v2}),f.jsx(Gt,{path:"/livro/:id",component:n2}),f.jsx(Gt,{path:"/serie/:nome",component:r2}),f.jsx(Gt,{path:"/buscar",component:u2}),f.jsx(Gt,{path:"/entrar",component:i2}),f.jsx(Gt,{path:"/cadastro",component:s2}),f.jsx(Gt,{path:"/perfil",component:o2}),f.jsx(Gt,{path:"/minha-biblioteca",component:c2}),f.jsx(Gt,{path:"/explorar",component:h2}),f.jsx(Gt,{path:"/colecao/:id",component:m2}),f.jsx(Gt,{path:"/",component:Gx})]})})})})}x0.createRoot(document.getElementById("root")).render(f.jsx(R.StrictMode,{children:f.jsx(y2,{})}));export{xv as a,p2 as c,o0 as g,f as j,R as r,L as t,li as u};
