local-ai-chat-frontend 1.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,71 @@
1
+ (function(){const a=document.createElement("link").relList;if(a&&a.supports&&a.supports("modulepreload"))return;for(const o of document.querySelectorAll('link[rel="modulepreload"]'))r(o);new MutationObserver(o=>{for(const d of o)if(d.type==="childList")for(const h of d.addedNodes)h.tagName==="LINK"&&h.rel==="modulepreload"&&r(h)}).observe(document,{childList:!0,subtree:!0});function u(o){const d={};return o.integrity&&(d.integrity=o.integrity),o.referrerPolicy&&(d.referrerPolicy=o.referrerPolicy),o.crossOrigin==="use-credentials"?d.credentials="include":o.crossOrigin==="anonymous"?d.credentials="omit":d.credentials="same-origin",d}function r(o){if(o.ep)return;o.ep=!0;const d=u(o);fetch(o.href,d)}})();var ec={exports:{}},is={};var mp;function U0(){if(mp)return is;mp=1;var c=Symbol.for("react.transitional.element"),a=Symbol.for("react.fragment");function u(r,o,d){var h=null;if(d!==void 0&&(h=""+d),o.key!==void 0&&(h=""+o.key),"key"in o){d={};for(var m in o)m!=="key"&&(d[m]=o[m])}else d=o;return o=d.ref,{$$typeof:c,type:r,key:h,ref:o!==void 0?o:null,props:d}}return is.Fragment=a,is.jsx=u,is.jsxs=u,is}var yp;function j0(){return yp||(yp=1,ec.exports=U0()),ec.exports}var j=j0(),tc={exports:{}},me={};var bp;function H0(){if(bp)return me;bp=1;var c=Symbol.for("react.transitional.element"),a=Symbol.for("react.portal"),u=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),d=Symbol.for("react.consumer"),h=Symbol.for("react.context"),m=Symbol.for("react.forward_ref"),g=Symbol.for("react.suspense"),y=Symbol.for("react.memo"),E=Symbol.for("react.lazy"),x=Symbol.for("react.activity"),M=Symbol.iterator;function H(S){return S===null||typeof S!="object"?null:(S=M&&S[M]||S["@@iterator"],typeof S=="function"?S:null)}var w={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},Z=Object.assign,ne={};function re(S,D,G){this.props=S,this.context=D,this.refs=ne,this.updater=G||w}re.prototype.isReactComponent={},re.prototype.setState=function(S,D){if(typeof S!="object"&&typeof S!="function"&&S!=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,S,D,"setState")},re.prototype.forceUpdate=function(S){this.updater.enqueueForceUpdate(this,S,"forceUpdate")};function te(){}te.prototype=re.prototype;function P(S,D,G){this.props=S,this.context=D,this.refs=ne,this.updater=G||w}var W=P.prototype=new te;W.constructor=P,Z(W,re.prototype),W.isPureReactComponent=!0;var ae=Array.isArray;function ie(){}var V={H:null,A:null,T:null,S:null},De=Object.prototype.hasOwnProperty;function oe(S,D,G){var Q=G.ref;return{$$typeof:c,type:S,key:D,ref:Q!==void 0?Q:null,props:G}}function ce(S,D){return oe(S.type,D,S.props)}function ye(S){return typeof S=="object"&&S!==null&&S.$$typeof===c}function X(S){var D={"=":"=0",":":"=2"};return"$"+S.replace(/[=:]/g,function(G){return D[G]})}var F=/\/+/g;function se(S,D){return typeof S=="object"&&S!==null&&S.key!=null?X(""+S.key):D.toString(36)}function Qe(S){switch(S.status){case"fulfilled":return S.value;case"rejected":throw S.reason;default:switch(typeof S.status=="string"?S.then(ie,ie):(S.status="pending",S.then(function(D){S.status==="pending"&&(S.status="fulfilled",S.value=D)},function(D){S.status==="pending"&&(S.status="rejected",S.reason=D)})),S.status){case"fulfilled":return S.value;case"rejected":throw S.reason}}throw S}function N(S,D,G,Q,fe){var de=typeof S;(de==="undefined"||de==="boolean")&&(S=null);var Ce=!1;if(S===null)Ce=!0;else switch(de){case"bigint":case"string":case"number":Ce=!0;break;case"object":switch(S.$$typeof){case c:case a:Ce=!0;break;case E:return Ce=S._init,N(Ce(S._payload),D,G,Q,fe)}}if(Ce)return fe=fe(S),Ce=Q===""?"."+se(S,0):Q,ae(fe)?(G="",Ce!=null&&(G=Ce.replace(F,"$&/")+"/"),N(fe,D,G,"",function(wn){return wn})):fe!=null&&(ye(fe)&&(fe=ce(fe,G+(fe.key==null||S&&S.key===fe.key?"":(""+fe.key).replace(F,"$&/")+"/")+Ce)),D.push(fe)),1;Ce=0;var bt=Q===""?".":Q+":";if(ae(S))for(var Ie=0;Ie<S.length;Ie++)Q=S[Ie],de=bt+se(Q,Ie),Ce+=N(Q,D,G,de,fe);else if(Ie=H(S),typeof Ie=="function")for(S=Ie.call(S),Ie=0;!(Q=S.next()).done;)Q=Q.value,de=bt+se(Q,Ie++),Ce+=N(Q,D,G,de,fe);else if(de==="object"){if(typeof S.then=="function")return N(Qe(S),D,G,Q,fe);throw D=String(S),Error("Objects are not valid as a React child (found: "+(D==="[object Object]"?"object with keys {"+Object.keys(S).join(", ")+"}":D)+"). If you meant to render a collection of children, use an array instead.")}return Ce}function q(S,D,G){if(S==null)return S;var Q=[],fe=0;return N(S,Q,"","",function(de){return D.call(G,de,fe++)}),Q}function $(S){if(S._status===-1){var D=S._result;D=D(),D.then(function(G){(S._status===0||S._status===-1)&&(S._status=1,S._result=G)},function(G){(S._status===0||S._status===-1)&&(S._status=2,S._result=G)}),S._status===-1&&(S._status=0,S._result=D)}if(S._status===1)return S._result.default;throw S._result}var Se=typeof reportError=="function"?reportError:function(S){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var D=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof S=="object"&&S!==null&&typeof S.message=="string"?String(S.message):String(S),error:S});if(!window.dispatchEvent(D))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",S);return}console.error(S)},_e={map:q,forEach:function(S,D,G){q(S,function(){D.apply(this,arguments)},G)},count:function(S){var D=0;return q(S,function(){D++}),D},toArray:function(S){return q(S,function(D){return D})||[]},only:function(S){if(!ye(S))throw Error("React.Children.only expected to receive a single React element child.");return S}};return me.Activity=x,me.Children=_e,me.Component=re,me.Fragment=u,me.Profiler=o,me.PureComponent=P,me.StrictMode=r,me.Suspense=g,me.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=V,me.__COMPILER_RUNTIME={__proto__:null,c:function(S){return V.H.useMemoCache(S)}},me.cache=function(S){return function(){return S.apply(null,arguments)}},me.cacheSignal=function(){return null},me.cloneElement=function(S,D,G){if(S==null)throw Error("The argument must be a React element, but you passed "+S+".");var Q=Z({},S.props),fe=S.key;if(D!=null)for(de in D.key!==void 0&&(fe=""+D.key),D)!De.call(D,de)||de==="key"||de==="__self"||de==="__source"||de==="ref"&&D.ref===void 0||(Q[de]=D[de]);var de=arguments.length-2;if(de===1)Q.children=G;else if(1<de){for(var Ce=Array(de),bt=0;bt<de;bt++)Ce[bt]=arguments[bt+2];Q.children=Ce}return oe(S.type,fe,Q)},me.createContext=function(S){return S={$$typeof:h,_currentValue:S,_currentValue2:S,_threadCount:0,Provider:null,Consumer:null},S.Provider=S,S.Consumer={$$typeof:d,_context:S},S},me.createElement=function(S,D,G){var Q,fe={},de=null;if(D!=null)for(Q in D.key!==void 0&&(de=""+D.key),D)De.call(D,Q)&&Q!=="key"&&Q!=="__self"&&Q!=="__source"&&(fe[Q]=D[Q]);var Ce=arguments.length-2;if(Ce===1)fe.children=G;else if(1<Ce){for(var bt=Array(Ce),Ie=0;Ie<Ce;Ie++)bt[Ie]=arguments[Ie+2];fe.children=bt}if(S&&S.defaultProps)for(Q in Ce=S.defaultProps,Ce)fe[Q]===void 0&&(fe[Q]=Ce[Q]);return oe(S,de,fe)},me.createRef=function(){return{current:null}},me.forwardRef=function(S){return{$$typeof:m,render:S}},me.isValidElement=ye,me.lazy=function(S){return{$$typeof:E,_payload:{_status:-1,_result:S},_init:$}},me.memo=function(S,D){return{$$typeof:y,type:S,compare:D===void 0?null:D}},me.startTransition=function(S){var D=V.T,G={};V.T=G;try{var Q=S(),fe=V.S;fe!==null&&fe(G,Q),typeof Q=="object"&&Q!==null&&typeof Q.then=="function"&&Q.then(ie,Se)}catch(de){Se(de)}finally{D!==null&&G.types!==null&&(D.types=G.types),V.T=D}},me.unstable_useCacheRefresh=function(){return V.H.useCacheRefresh()},me.use=function(S){return V.H.use(S)},me.useActionState=function(S,D,G){return V.H.useActionState(S,D,G)},me.useCallback=function(S,D){return V.H.useCallback(S,D)},me.useContext=function(S){return V.H.useContext(S)},me.useDebugValue=function(){},me.useDeferredValue=function(S,D){return V.H.useDeferredValue(S,D)},me.useEffect=function(S,D){return V.H.useEffect(S,D)},me.useEffectEvent=function(S){return V.H.useEffectEvent(S)},me.useId=function(){return V.H.useId()},me.useImperativeHandle=function(S,D,G){return V.H.useImperativeHandle(S,D,G)},me.useInsertionEffect=function(S,D){return V.H.useInsertionEffect(S,D)},me.useLayoutEffect=function(S,D){return V.H.useLayoutEffect(S,D)},me.useMemo=function(S,D){return V.H.useMemo(S,D)},me.useOptimistic=function(S,D){return V.H.useOptimistic(S,D)},me.useReducer=function(S,D,G){return V.H.useReducer(S,D,G)},me.useRef=function(S){return V.H.useRef(S)},me.useState=function(S){return V.H.useState(S)},me.useSyncExternalStore=function(S,D,G){return V.H.useSyncExternalStore(S,D,G)},me.useTransition=function(){return V.H.useTransition()},me.version="19.2.8",me}var vp;function Vu(){return vp||(vp=1,tc.exports=H0()),tc.exports}var pe=Vu(),lc={exports:{}},ss={},nc={exports:{}},ac={};var Sp;function B0(){return Sp||(Sp=1,(function(c){function a(N,q){var $=N.length;N.push(q);e:for(;0<$;){var Se=$-1>>>1,_e=N[Se];if(0<o(_e,q))N[Se]=q,N[$]=_e,$=Se;else break e}}function u(N){return N.length===0?null:N[0]}function r(N){if(N.length===0)return null;var q=N[0],$=N.pop();if($!==q){N[0]=$;e:for(var Se=0,_e=N.length,S=_e>>>1;Se<S;){var D=2*(Se+1)-1,G=N[D],Q=D+1,fe=N[Q];if(0>o(G,$))Q<_e&&0>o(fe,G)?(N[Se]=fe,N[Q]=$,Se=Q):(N[Se]=G,N[D]=$,Se=D);else if(Q<_e&&0>o(fe,$))N[Se]=fe,N[Q]=$,Se=Q;else break e}}return q}function o(N,q){var $=N.sortIndex-q.sortIndex;return $!==0?$:N.id-q.id}if(c.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var d=performance;c.unstable_now=function(){return d.now()}}else{var h=Date,m=h.now();c.unstable_now=function(){return h.now()-m}}var g=[],y=[],E=1,x=null,M=3,H=!1,w=!1,Z=!1,ne=!1,re=typeof setTimeout=="function"?setTimeout:null,te=typeof clearTimeout=="function"?clearTimeout:null,P=typeof setImmediate<"u"?setImmediate:null;function W(N){for(var q=u(y);q!==null;){if(q.callback===null)r(y);else if(q.startTime<=N)r(y),q.sortIndex=q.expirationTime,a(g,q);else break;q=u(y)}}function ae(N){if(Z=!1,W(N),!w)if(u(g)!==null)w=!0,ie||(ie=!0,X());else{var q=u(y);q!==null&&Qe(ae,q.startTime-N)}}var ie=!1,V=-1,De=5,oe=-1;function ce(){return ne?!0:!(c.unstable_now()-oe<De)}function ye(){if(ne=!1,ie){var N=c.unstable_now();oe=N;var q=!0;try{e:{w=!1,Z&&(Z=!1,te(V),V=-1),H=!0;var $=M;try{t:{for(W(N),x=u(g);x!==null&&!(x.expirationTime>N&&ce());){var Se=x.callback;if(typeof Se=="function"){x.callback=null,M=x.priorityLevel;var _e=Se(x.expirationTime<=N);if(N=c.unstable_now(),typeof _e=="function"){x.callback=_e,W(N),q=!0;break t}x===u(g)&&r(g),W(N)}else r(g);x=u(g)}if(x!==null)q=!0;else{var S=u(y);S!==null&&Qe(ae,S.startTime-N),q=!1}}break e}finally{x=null,M=$,H=!1}q=void 0}}finally{q?X():ie=!1}}}var X;if(typeof P=="function")X=function(){P(ye)};else if(typeof MessageChannel<"u"){var F=new MessageChannel,se=F.port2;F.port1.onmessage=ye,X=function(){se.postMessage(null)}}else X=function(){re(ye,0)};function Qe(N,q){V=re(function(){N(c.unstable_now())},q)}c.unstable_IdlePriority=5,c.unstable_ImmediatePriority=1,c.unstable_LowPriority=4,c.unstable_NormalPriority=3,c.unstable_Profiling=null,c.unstable_UserBlockingPriority=2,c.unstable_cancelCallback=function(N){N.callback=null},c.unstable_forceFrameRate=function(N){0>N||125<N?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):De=0<N?Math.floor(1e3/N):5},c.unstable_getCurrentPriorityLevel=function(){return M},c.unstable_next=function(N){switch(M){case 1:case 2:case 3:var q=3;break;default:q=M}var $=M;M=q;try{return N()}finally{M=$}},c.unstable_requestPaint=function(){ne=!0},c.unstable_runWithPriority=function(N,q){switch(N){case 1:case 2:case 3:case 4:case 5:break;default:N=3}var $=M;M=N;try{return q()}finally{M=$}},c.unstable_scheduleCallback=function(N,q,$){var Se=c.unstable_now();switch(typeof $=="object"&&$!==null?($=$.delay,$=typeof $=="number"&&0<$?Se+$:Se):$=Se,N){case 1:var _e=-1;break;case 2:_e=250;break;case 5:_e=1073741823;break;case 4:_e=1e4;break;default:_e=5e3}return _e=$+_e,N={id:E++,callback:q,priorityLevel:N,startTime:$,expirationTime:_e,sortIndex:-1},$>Se?(N.sortIndex=$,a(y,N),u(g)===null&&N===u(y)&&(Z?(te(V),V=-1):Z=!0,Qe(ae,$-Se))):(N.sortIndex=_e,a(g,N),w||H||(w=!0,ie||(ie=!0,X()))),N},c.unstable_shouldYield=ce,c.unstable_wrapCallback=function(N){var q=M;return function(){var $=M;M=q;try{return N.apply(this,arguments)}finally{M=$}}}})(ac)),ac}var xp;function q0(){return xp||(xp=1,nc.exports=B0()),nc.exports}var ic={exports:{}},Nt={};var Tp;function Y0(){if(Tp)return Nt;Tp=1;var c=Vu();function a(g){var y="https://react.dev/errors/"+g;if(1<arguments.length){y+="?args[]="+encodeURIComponent(arguments[1]);for(var E=2;E<arguments.length;E++)y+="&args[]="+encodeURIComponent(arguments[E])}return"Minified React error #"+g+"; visit "+y+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function u(){}var r={d:{f:u,r:function(){throw Error(a(522))},D:u,C:u,L:u,m:u,X:u,S:u,M:u},p:0,findDOMNode:null},o=Symbol.for("react.portal");function d(g,y,E){var x=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:o,key:x==null?null:""+x,children:g,containerInfo:y,implementation:E}}var h=c.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function m(g,y){if(g==="font")return"";if(typeof y=="string")return y==="use-credentials"?y:""}return Nt.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=r,Nt.createPortal=function(g,y){var E=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!y||y.nodeType!==1&&y.nodeType!==9&&y.nodeType!==11)throw Error(a(299));return d(g,y,null,E)},Nt.flushSync=function(g){var y=h.T,E=r.p;try{if(h.T=null,r.p=2,g)return g()}finally{h.T=y,r.p=E,r.d.f()}},Nt.preconnect=function(g,y){typeof g=="string"&&(y?(y=y.crossOrigin,y=typeof y=="string"?y==="use-credentials"?y:"":void 0):y=null,r.d.C(g,y))},Nt.prefetchDNS=function(g){typeof g=="string"&&r.d.D(g)},Nt.preinit=function(g,y){if(typeof g=="string"&&y&&typeof y.as=="string"){var E=y.as,x=m(E,y.crossOrigin),M=typeof y.integrity=="string"?y.integrity:void 0,H=typeof y.fetchPriority=="string"?y.fetchPriority:void 0;E==="style"?r.d.S(g,typeof y.precedence=="string"?y.precedence:void 0,{crossOrigin:x,integrity:M,fetchPriority:H}):E==="script"&&r.d.X(g,{crossOrigin:x,integrity:M,fetchPriority:H,nonce:typeof y.nonce=="string"?y.nonce:void 0})}},Nt.preinitModule=function(g,y){if(typeof g=="string")if(typeof y=="object"&&y!==null){if(y.as==null||y.as==="script"){var E=m(y.as,y.crossOrigin);r.d.M(g,{crossOrigin:E,integrity:typeof y.integrity=="string"?y.integrity:void 0,nonce:typeof y.nonce=="string"?y.nonce:void 0})}}else y==null&&r.d.M(g)},Nt.preload=function(g,y){if(typeof g=="string"&&typeof y=="object"&&y!==null&&typeof y.as=="string"){var E=y.as,x=m(E,y.crossOrigin);r.d.L(g,E,{crossOrigin:x,integrity:typeof y.integrity=="string"?y.integrity:void 0,nonce:typeof y.nonce=="string"?y.nonce:void 0,type:typeof y.type=="string"?y.type:void 0,fetchPriority:typeof y.fetchPriority=="string"?y.fetchPriority:void 0,referrerPolicy:typeof y.referrerPolicy=="string"?y.referrerPolicy:void 0,imageSrcSet:typeof y.imageSrcSet=="string"?y.imageSrcSet:void 0,imageSizes:typeof y.imageSizes=="string"?y.imageSizes:void 0,media:typeof y.media=="string"?y.media:void 0})}},Nt.preloadModule=function(g,y){if(typeof g=="string")if(y){var E=m(y.as,y.crossOrigin);r.d.m(g,{as:typeof y.as=="string"&&y.as!=="script"?y.as:void 0,crossOrigin:E,integrity:typeof y.integrity=="string"?y.integrity:void 0})}else r.d.m(g)},Nt.requestFormReset=function(g){r.d.r(g)},Nt.unstable_batchedUpdates=function(g,y){return g(y)},Nt.useFormState=function(g,y,E){return h.H.useFormState(g,y,E)},Nt.useFormStatus=function(){return h.H.useHostTransitionStatus()},Nt.version="19.2.8",Nt}var Ep;function cg(){if(Ep)return ic.exports;Ep=1;function c(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(c)}catch(a){console.error(a)}}return c(),ic.exports=Y0(),ic.exports}var Ap;function G0(){if(Ap)return ss;Ap=1;var c=q0(),a=Vu(),u=cg();function r(e){var t="https://react.dev/errors/"+e;if(1<arguments.length){t+="?args[]="+encodeURIComponent(arguments[1]);for(var l=2;l<arguments.length;l++)t+="&args[]="+encodeURIComponent(arguments[l])}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 o(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function d(e){var t=e,l=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,(t.flags&4098)!==0&&(l=t.return),e=t.return;while(e)}return t.tag===3?l:null}function h(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 m(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 g(e){if(d(e)!==e)throw Error(r(188))}function y(e){var t=e.alternate;if(!t){if(t=d(e),t===null)throw Error(r(188));return t!==e?null:e}for(var l=e,n=t;;){var i=l.return;if(i===null)break;var s=i.alternate;if(s===null){if(n=i.return,n!==null){l=n;continue}break}if(i.child===s.child){for(s=i.child;s;){if(s===l)return g(i),e;if(s===n)return g(i),t;s=s.sibling}throw Error(r(188))}if(l.return!==n.return)l=i,n=s;else{for(var f=!1,p=i.child;p;){if(p===l){f=!0,l=i,n=s;break}if(p===n){f=!0,n=i,l=s;break}p=p.sibling}if(!f){for(p=s.child;p;){if(p===l){f=!0,l=s,n=i;break}if(p===n){f=!0,n=s,l=i;break}p=p.sibling}if(!f)throw Error(r(189))}}if(l.alternate!==n)throw Error(r(190))}if(l.tag!==3)throw Error(r(188));return l.stateNode.current===l?e:t}function E(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e;for(e=e.child;e!==null;){if(t=E(e),t!==null)return t;e=e.sibling}return null}var x=Object.assign,M=Symbol.for("react.element"),H=Symbol.for("react.transitional.element"),w=Symbol.for("react.portal"),Z=Symbol.for("react.fragment"),ne=Symbol.for("react.strict_mode"),re=Symbol.for("react.profiler"),te=Symbol.for("react.consumer"),P=Symbol.for("react.context"),W=Symbol.for("react.forward_ref"),ae=Symbol.for("react.suspense"),ie=Symbol.for("react.suspense_list"),V=Symbol.for("react.memo"),De=Symbol.for("react.lazy"),oe=Symbol.for("react.activity"),ce=Symbol.for("react.memo_cache_sentinel"),ye=Symbol.iterator;function X(e){return e===null||typeof e!="object"?null:(e=ye&&e[ye]||e["@@iterator"],typeof e=="function"?e:null)}var F=Symbol.for("react.client.reference");function se(e){if(e==null)return null;if(typeof e=="function")return e.$$typeof===F?null:e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case Z:return"Fragment";case re:return"Profiler";case ne:return"StrictMode";case ae:return"Suspense";case ie:return"SuspenseList";case oe:return"Activity"}if(typeof e=="object")switch(e.$$typeof){case w:return"Portal";case P:return e.displayName||"Context";case te:return(e._context.displayName||"Context")+".Consumer";case W:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case V:return t=e.displayName||null,t!==null?t:se(e.type)||"Memo";case De:t=e._payload,e=e._init;try{return se(e(t))}catch{}}return null}var Qe=Array.isArray,N=a.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,q=u.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,$={pending:!1,data:null,method:null,action:null},Se=[],_e=-1;function S(e){return{current:e}}function D(e){0>_e||(e.current=Se[_e],Se[_e]=null,_e--)}function G(e,t){_e++,Se[_e]=e.current,e.current=t}var Q=S(null),fe=S(null),de=S(null),Ce=S(null);function bt(e,t){switch(G(de,t),G(fe,e),G(Q,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?Bh(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=Bh(t),e=qh(t,e);else switch(e){case"svg":e=1;break;case"math":e=2;break;default:e=0}}D(Q),G(Q,e)}function Ie(){D(Q),D(fe),D(de)}function wn(e){e.memoizedState!==null&&G(Ce,e);var t=Q.current,l=qh(t,e.type);t!==l&&(G(fe,e),G(Q,l))}function kn(e){fe.current===e&&(D(Q),D(fe)),Ce.current===e&&(D(Ce),ts._currentValue=$)}var Ye,da;function Me(e){if(Ye===void 0)try{throw Error()}catch(l){var t=l.stack.trim().match(/\n( *(at )?)/);Ye=t&&t[1]||"",da=-1<l.stack.indexOf(`
2
+ at`)?" (<anonymous>)":-1<l.stack.indexOf("@")?"@unknown:0:0":""}return`
3
+ `+Ye+e+da}var Ln=!1;function $e(e,t){if(!e||Ln)return"";Ln=!0;var l=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var n={DetermineComponentFrameRoot:function(){try{if(t){var U=function(){throw Error()};if(Object.defineProperty(U.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(U,[])}catch(C){var z=C}Reflect.construct(e,[],U)}else{try{U.call()}catch(C){z=C}e.call(U.prototype)}}else{try{throw Error()}catch(C){z=C}(U=e())&&typeof U.catch=="function"&&U.catch(function(){})}}catch(C){if(C&&z&&typeof C.stack=="string")return[C.stack,z.stack]}return[null,null]}};n.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var i=Object.getOwnPropertyDescriptor(n.DetermineComponentFrameRoot,"name");i&&i.configurable&&Object.defineProperty(n.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var s=n.DetermineComponentFrameRoot(),f=s[0],p=s[1];if(f&&p){var v=f.split(`
4
+ `),R=p.split(`
5
+ `);for(i=n=0;n<v.length&&!v[n].includes("DetermineComponentFrameRoot");)n++;for(;i<R.length&&!R[i].includes("DetermineComponentFrameRoot");)i++;if(n===v.length||i===R.length)for(n=v.length-1,i=R.length-1;1<=n&&0<=i&&v[n]!==R[i];)i--;for(;1<=n&&0<=i;n--,i--)if(v[n]!==R[i]){if(n!==1||i!==1)do if(n--,i--,0>i||v[n]!==R[i]){var k=`
6
+ `+v[n].replace(" at new "," at ");return e.displayName&&k.includes("<anonymous>")&&(k=k.replace("<anonymous>",e.displayName)),k}while(1<=n&&0<=i);break}}}finally{Ln=!1,Error.prepareStackTrace=l}return(l=e?e.displayName||e.name:"")?Me(l):""}function Un(e,t){switch(e.tag){case 26:case 27:case 5:return Me(e.type);case 16:return Me("Lazy");case 13:return e.child!==t&&t!==null?Me("Suspense Fallback"):Me("Suspense");case 19:return Me("SuspenseList");case 0:case 15:return $e(e.type,!1);case 11:return $e(e.type.render,!1);case 1:return $e(e.type,!0);case 31:return Me("Activity");default:return""}}function oi(e){try{var t="",l=null;do t+=Un(e,l),l=e,e=e.return;while(e);return t}catch(n){return`
7
+ Error generating stack: `+n.message+`
8
+ `+n.stack}}var Pt=Object.prototype.hasOwnProperty,ha=c.unstable_scheduleCallback,jn=c.unstable_cancelCallback,vs=c.unstable_shouldYield,Ss=c.unstable_requestPaint,Pe=c.unstable_now,yl=c.unstable_getCurrentPriorityLevel,bl=c.unstable_ImmediatePriority,pa=c.unstable_UserBlockingPriority,Cl=c.unstable_NormalPriority,ga=c.unstable_LowPriority,ma=c.unstable_IdlePriority,Il=c.log,ya=c.unstable_setDisableYieldValue,vl=null,_t=null;function cl(e){if(typeof Il=="function"&&ya(e),_t&&typeof _t.setStrictMode=="function")try{_t.setStrictMode(vl,e)}catch{}}var Ot=Math.clz32?Math.clz32:Wl,ci=Math.log,ba=Math.LN2;function Wl(e){return e>>>=0,e===0?32:31-(ci(e)/ba|0)|0}var Ct=256,Pl=262144,Hn=4194304;function Sl(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 en(e,t,l){var n=e.pendingLanes;if(n===0)return 0;var i=0,s=e.suspendedLanes,f=e.pingedLanes;e=e.warmLanes;var p=n&134217727;return p!==0?(n=p&~s,n!==0?i=Sl(n):(f&=p,f!==0?i=Sl(f):l||(l=p&~e,l!==0&&(i=Sl(l))))):(p=n&~s,p!==0?i=Sl(p):f!==0?i=Sl(f):l||(l=n&~e,l!==0&&(i=Sl(l)))),i===0?0:t!==0&&t!==i&&(t&s)===0&&(s=i&-i,l=t&-t,s>=l||s===32&&(l&4194048)!==0)?t:i}function tn(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function va(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 Bn(){var e=Hn;return Hn<<=1,(Hn&62914560)===0&&(Hn=4194304),e}function Lt(e){for(var t=[],l=0;31>l;l++)t.push(e);return t}function el(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function fi(e,t,l,n,i,s){var f=e.pendingLanes;e.pendingLanes=l,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=l,e.entangledLanes&=l,e.errorRecoveryDisabledLanes&=l,e.shellSuspendCounter=0;var p=e.entanglements,v=e.expirationTimes,R=e.hiddenUpdates;for(l=f&~l;0<l;){var k=31-Ot(l),U=1<<k;p[k]=0,v[k]=-1;var z=R[k];if(z!==null)for(R[k]=null,k=0;k<z.length;k++){var C=z[k];C!==null&&(C.lane&=-536870913)}l&=~U}n!==0&&Sa(e,n,0),s!==0&&i===0&&e.tag!==0&&(e.suspendedLanes|=s&~(f&~t))}function Sa(e,t,l){e.pendingLanes|=t,e.suspendedLanes&=~t;var n=31-Ot(t);e.entangledLanes|=t,e.entanglements[n]=e.entanglements[n]|1073741824|l&261930}function xs(e,t){var l=e.entangledLanes|=t;for(e=e.entanglements;l;){var n=31-Ot(l),i=1<<n;i&t|e[n]&t&&(e[n]|=t),l&=~i}}function di(e,t){var l=t&-t;return l=(l&42)!==0?1:qn(l),(l&(e.suspendedLanes|t))!==0?0:l}function qn(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 xa(e){return e&=-e,2<e?8<e?(e&134217727)!==0?32:268435456:8:2}function Ta(){var e=q.p;return e!==0?e:(e=window.event,e===void 0?32:op(e.type))}function Ts(e,t){var l=q.p;try{return q.p=e,t()}finally{q.p=l}}var Ut=Math.random().toString(36).slice(2),ct="__reactFiber$"+Ut,Rt="__reactProps$"+Ut,je="__reactContainer$"+Ut,xl="__reactEvents$"+Ut,Ju="__reactListeners$"+Ut,Es="__reactHandles$"+Ut,Ea="__reactResources$"+Ut,ln="__reactMarker$"+Ut;function Aa(e){delete e[ct],delete e[Rt],delete e[xl],delete e[Ju],delete e[Es]}function nn(e){var t=e[ct];if(t)return t;for(var l=e.parentNode;l;){if(t=l[je]||l[ct]){if(l=t.alternate,t.child!==null||l!==null&&l.child!==null)for(e=Kh(e);e!==null;){if(l=e[ct])return l;e=Kh(e)}return t}e=l,l=e.parentNode}return null}function an(e){if(e=e[ct]||e[je]){var t=e.tag;if(t===5||t===6||t===13||t===31||t===26||t===27||t===3)return e}return null}function Yn(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e.stateNode;throw Error(r(33))}function sn(e){var t=e[Ea];return t||(t=e[Ea]={hoistableStyles:new Map,hoistableScripts:new Map}),t}function Ze(e){e[ln]=!0}var Gn=new Set,Tl={};function Ml(e,t){tl(e,t),tl(e+"Capture",t)}function tl(e,t){for(Tl[e]=t,e=0;e<t.length;e++)Gn.add(t[e])}var Fu=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]*$"),hi={},pi={};function _a(e){return Pt.call(pi,e)?!0:Pt.call(hi,e)?!1:Fu.test(e)?pi[e]=!0:(hi[e]=!0,!1)}function un(e,t,l){if(_a(t))if(l===null)e.removeAttribute(t);else{switch(typeof l){case"undefined":case"function":case"symbol":e.removeAttribute(t);return;case"boolean":var n=t.toLowerCase().slice(0,5);if(n!=="data-"&&n!=="aria-"){e.removeAttribute(t);return}}e.setAttribute(t,""+l)}}function wl(e,t,l){if(l===null)e.removeAttribute(t);else{switch(typeof l){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(t);return}e.setAttribute(t,""+l)}}function zt(e,t,l,n){if(n===null)e.removeAttribute(l);else{switch(typeof n){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(l);return}e.setAttributeNS(t,l,""+n)}}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 Vt(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function Iu(e,t,l){var n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t);if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var i=n.get,s=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return i.call(this)},set:function(f){l=""+f,s.call(this,f)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return l},setValue:function(f){l=""+f},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function gi(e){if(!e._valueTracker){var t=Vt(e)?"checked":"value";e._valueTracker=Iu(e,t,""+e[t])}}function mi(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var l=t.getValue(),n="";return e&&(n=Vt(e)?e.checked?"true":"false":e.value),e=n,e!==l?(t.setValue(e),!0):!1}function Xn(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 As=/[\n"\\]/g;function jt(e){return e.replace(As,function(t){return"\\"+t.charCodeAt(0).toString(16)+" "})}function Oa(e,t,l,n,i,s,f,p){e.name="",f!=null&&typeof f!="function"&&typeof f!="symbol"&&typeof f!="boolean"?e.type=f:e.removeAttribute("type"),t!=null?f==="number"?(t===0&&e.value===""||e.value!=t)&&(e.value=""+dt(t)):e.value!==""+dt(t)&&(e.value=""+dt(t)):f!=="submit"&&f!=="reset"||e.removeAttribute("value"),t!=null?yi(e,f,dt(t)):l!=null?yi(e,f,dt(l)):n!=null&&e.removeAttribute("value"),i==null&&s!=null&&(e.defaultChecked=!!s),i!=null&&(e.checked=i&&typeof i!="function"&&typeof i!="symbol"),p!=null&&typeof p!="function"&&typeof p!="symbol"&&typeof p!="boolean"?e.name=""+dt(p):e.removeAttribute("name")}function _s(e,t,l,n,i,s,f,p){if(s!=null&&typeof s!="function"&&typeof s!="symbol"&&typeof s!="boolean"&&(e.type=s),t!=null||l!=null){if(!(s!=="submit"&&s!=="reset"||t!=null)){gi(e);return}l=l!=null?""+dt(l):"",t=t!=null?""+dt(t):l,p||t===e.value||(e.value=t),e.defaultValue=t}n=n??i,n=typeof n!="function"&&typeof n!="symbol"&&!!n,e.checked=p?e.checked:!!n,e.defaultChecked=!!n,f!=null&&typeof f!="function"&&typeof f!="symbol"&&typeof f!="boolean"&&(e.name=f),gi(e)}function yi(e,t,l){t==="number"&&Xn(e.ownerDocument)===e||e.defaultValue===""+l||(e.defaultValue=""+l)}function kl(e,t,l,n){if(e=e.options,t){t={};for(var i=0;i<l.length;i++)t["$"+l[i]]=!0;for(l=0;l<e.length;l++)i=t.hasOwnProperty("$"+e[l].value),e[l].selected!==i&&(e[l].selected=i),i&&n&&(e[l].defaultSelected=!0)}else{for(l=""+dt(l),t=null,i=0;i<e.length;i++){if(e[i].value===l){e[i].selected=!0,n&&(e[i].defaultSelected=!0);return}t!==null||e[i].disabled||(t=e[i])}t!==null&&(t.selected=!0)}}function Vn(e,t,l){if(t!=null&&(t=""+dt(t),t!==e.value&&(e.value=t),l==null)){e.defaultValue!==t&&(e.defaultValue=t);return}e.defaultValue=l!=null?""+dt(l):""}function Ra(e,t,l,n){if(t==null){if(n!=null){if(l!=null)throw Error(r(92));if(Qe(n)){if(1<n.length)throw Error(r(93));n=n[0]}l=n}l==null&&(l=""),t=l}l=dt(t),e.defaultValue=l,n=e.textContent,n===l&&n!==""&&n!==null&&(e.value=n),gi(e)}function Y(e,t){if(t){var l=e.firstChild;if(l&&l===e.lastChild&&l.nodeType===3){l.nodeValue=t;return}}e.textContent=t}var b=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 _(e,t,l){var n=t.indexOf("--")===0;l==null||typeof l=="boolean"||l===""?n?e.setProperty(t,""):t==="float"?e.cssFloat="":e[t]="":n?e.setProperty(t,l):typeof l!="number"||l===0||b.has(t)?t==="float"?e.cssFloat=l:e[t]=(""+l).trim():e[t]=l+"px"}function B(e,t,l){if(t!=null&&typeof t!="object")throw Error(r(62));if(e=e.style,l!=null){for(var n in l)!l.hasOwnProperty(n)||t!=null&&t.hasOwnProperty(n)||(n.indexOf("--")===0?e.setProperty(n,""):n==="float"?e.cssFloat="":e[n]="");for(var i in t)n=t[i],t.hasOwnProperty(i)&&l[i]!==n&&_(e,i,n)}else for(var s in t)t.hasOwnProperty(s)&&_(e,s,t[s])}function J(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 ee=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"]]),ge=/^[\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 ze(e){return ge.test(""+e)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":e}function Ne(){}var ht=null;function pt(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var El=null,et=null;function jc(e){var t=an(e);if(t&&(e=t.stateNode)){var l=e[Rt]||null;e:switch(e=t.stateNode,t.type){case"input":if(Oa(e,l.value,l.defaultValue,l.defaultValue,l.checked,l.defaultChecked,l.type,l.name),t=l.name,l.type==="radio"&&t!=null){for(l=e;l.parentNode;)l=l.parentNode;for(l=l.querySelectorAll('input[name="'+jt(""+t)+'"][type="radio"]'),t=0;t<l.length;t++){var n=l[t];if(n!==e&&n.form===e.form){var i=n[Rt]||null;if(!i)throw Error(r(90));Oa(n,i.value,i.defaultValue,i.defaultValue,i.checked,i.defaultChecked,i.type,i.name)}}for(t=0;t<l.length;t++)n=l[t],n.form===e.form&&mi(n)}break e;case"textarea":Vn(e,l.value,l.defaultValue);break e;case"select":t=l.value,t!=null&&kl(e,!!l.multiple,t,!1)}}}var Wu=!1;function Hc(e,t,l){if(Wu)return e(t,l);Wu=!0;try{var n=e(t);return n}finally{if(Wu=!1,(El!==null||et!==null)&&(du(),El&&(t=El,e=et,et=El=null,jc(t),e)))for(t=0;t<e.length;t++)jc(e[t])}}function bi(e,t){var l=e.stateNode;if(l===null)return null;var n=l[Rt]||null;if(n===null)return null;l=n[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(n=!n.disabled)||(e=e.type,n=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!n;break e;default:e=!1}if(e)return null;if(l&&typeof l!="function")throw Error(r(231,t,typeof l));return l}var Ll=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Pu=!1;if(Ll)try{var vi={};Object.defineProperty(vi,"passive",{get:function(){Pu=!0}}),window.addEventListener("test",vi,vi),window.removeEventListener("test",vi,vi)}catch{Pu=!1}var rn=null,er=null,Os=null;function Bc(){if(Os)return Os;var e,t=er,l=t.length,n,i="value"in rn?rn.value:rn.textContent,s=i.length;for(e=0;e<l&&t[e]===i[e];e++);var f=l-e;for(n=1;n<=f&&t[l-n]===i[s-n];n++);return Os=i.slice(e,1<n?1-n:void 0)}function Rs(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 zs(){return!0}function qc(){return!1}function Ht(e){function t(l,n,i,s,f){this._reactName=l,this._targetInst=i,this.type=n,this.nativeEvent=s,this.target=f,this.currentTarget=null;for(var p in e)e.hasOwnProperty(p)&&(l=e[p],this[p]=l?l(s):s[p]);return this.isDefaultPrevented=(s.defaultPrevented!=null?s.defaultPrevented:s.returnValue===!1)?zs:qc,this.isPropagationStopped=qc,this}return x(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var l=this.nativeEvent;l&&(l.preventDefault?l.preventDefault():typeof l.returnValue!="unknown"&&(l.returnValue=!1),this.isDefaultPrevented=zs)},stopPropagation:function(){var l=this.nativeEvent;l&&(l.stopPropagation?l.stopPropagation():typeof l.cancelBubble!="unknown"&&(l.cancelBubble=!0),this.isPropagationStopped=zs)},persist:function(){},isPersistent:zs}),t}var Qn={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Ns=Ht(Qn),Si=x({},Qn,{view:0,detail:0}),kg=Ht(Si),tr,lr,xi,Ds=x({},Si,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:ar,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!==xi&&(xi&&e.type==="mousemove"?(tr=e.screenX-xi.screenX,lr=e.screenY-xi.screenY):lr=tr=0,xi=e),tr)},movementY:function(e){return"movementY"in e?e.movementY:lr}}),Yc=Ht(Ds),Lg=x({},Ds,{dataTransfer:0}),Ug=Ht(Lg),jg=x({},Si,{relatedTarget:0}),nr=Ht(jg),Hg=x({},Qn,{animationName:0,elapsedTime:0,pseudoElement:0}),Bg=Ht(Hg),qg=x({},Qn,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),Yg=Ht(qg),Gg=x({},Qn,{data:0}),Gc=Ht(Gg),Xg={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Vg={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"},Qg={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Zg(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=Qg[e])?!!t[e]:!1}function ar(){return Zg}var Kg=x({},Si,{key:function(e){if(e.key){var t=Xg[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=Rs(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?Vg[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:ar,charCode:function(e){return e.type==="keypress"?Rs(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?Rs(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),$g=Ht(Kg),Jg=x({},Ds,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Xc=Ht(Jg),Fg=x({},Si,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:ar}),Ig=Ht(Fg),Wg=x({},Qn,{propertyName:0,elapsedTime:0,pseudoElement:0}),Pg=Ht(Wg),em=x({},Ds,{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}),tm=Ht(em),lm=x({},Qn,{newState:0,oldState:0}),nm=Ht(lm),am=[9,13,27,32],ir=Ll&&"CompositionEvent"in window,Ti=null;Ll&&"documentMode"in document&&(Ti=document.documentMode);var im=Ll&&"TextEvent"in window&&!Ti,Vc=Ll&&(!ir||Ti&&8<Ti&&11>=Ti),Qc=" ",Zc=!1;function Kc(e,t){switch(e){case"keyup":return am.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function $c(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var za=!1;function sm(e,t){switch(e){case"compositionend":return $c(t);case"keypress":return t.which!==32?null:(Zc=!0,Qc);case"textInput":return e=t.data,e===Qc&&Zc?null:e;default:return null}}function um(e,t){if(za)return e==="compositionend"||!ir&&Kc(e,t)?(e=Bc(),Os=er=rn=null,za=!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 Vc&&t.locale!=="ko"?null:t.data;default:return null}}var rm={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 Jc(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!rm[e.type]:t==="textarea"}function Fc(e,t,l,n){El?et?et.push(n):et=[n]:El=n,t=vu(t,"onChange"),0<t.length&&(l=new Ns("onChange","change",null,l,n),e.push({event:l,listeners:t}))}var Ei=null,Ai=null;function om(e){wh(e,0)}function Cs(e){var t=Yn(e);if(mi(t))return e}function Ic(e,t){if(e==="change")return t}var Wc=!1;if(Ll){var sr;if(Ll){var ur="oninput"in document;if(!ur){var Pc=document.createElement("div");Pc.setAttribute("oninput","return;"),ur=typeof Pc.oninput=="function"}sr=ur}else sr=!1;Wc=sr&&(!document.documentMode||9<document.documentMode)}function ef(){Ei&&(Ei.detachEvent("onpropertychange",tf),Ai=Ei=null)}function tf(e){if(e.propertyName==="value"&&Cs(Ai)){var t=[];Fc(t,Ai,e,pt(e)),Hc(om,t)}}function cm(e,t,l){e==="focusin"?(ef(),Ei=t,Ai=l,Ei.attachEvent("onpropertychange",tf)):e==="focusout"&&ef()}function fm(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return Cs(Ai)}function dm(e,t){if(e==="click")return Cs(t)}function hm(e,t){if(e==="input"||e==="change")return Cs(t)}function pm(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Qt=typeof Object.is=="function"?Object.is:pm;function _i(e,t){if(Qt(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var l=Object.keys(e),n=Object.keys(t);if(l.length!==n.length)return!1;for(n=0;n<l.length;n++){var i=l[n];if(!Pt.call(t,i)||!Qt(e[i],t[i]))return!1}return!0}function lf(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function nf(e,t){var l=lf(e);e=0;for(var n;l;){if(l.nodeType===3){if(n=e+l.textContent.length,e<=t&&n>=t)return{node:l,offset:t-e};e=n}e:{for(;l;){if(l.nextSibling){l=l.nextSibling;break e}l=l.parentNode}l=void 0}l=lf(l)}}function af(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?af(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function sf(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=Xn(e.document);t instanceof e.HTMLIFrameElement;){try{var l=typeof t.contentWindow.location.href=="string"}catch{l=!1}if(l)e=t.contentWindow;else break;t=Xn(e.document)}return t}function rr(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 gm=Ll&&"documentMode"in document&&11>=document.documentMode,Na=null,or=null,Oi=null,cr=!1;function uf(e,t,l){var n=l.window===l?l.document:l.nodeType===9?l:l.ownerDocument;cr||Na==null||Na!==Xn(n)||(n=Na,"selectionStart"in n&&rr(n)?n={start:n.selectionStart,end:n.selectionEnd}:(n=(n.ownerDocument&&n.ownerDocument.defaultView||window).getSelection(),n={anchorNode:n.anchorNode,anchorOffset:n.anchorOffset,focusNode:n.focusNode,focusOffset:n.focusOffset}),Oi&&_i(Oi,n)||(Oi=n,n=vu(or,"onSelect"),0<n.length&&(t=new Ns("onSelect","select",null,t,l),e.push({event:t,listeners:n}),t.target=Na)))}function Zn(e,t){var l={};return l[e.toLowerCase()]=t.toLowerCase(),l["Webkit"+e]="webkit"+t,l["Moz"+e]="moz"+t,l}var Da={animationend:Zn("Animation","AnimationEnd"),animationiteration:Zn("Animation","AnimationIteration"),animationstart:Zn("Animation","AnimationStart"),transitionrun:Zn("Transition","TransitionRun"),transitionstart:Zn("Transition","TransitionStart"),transitioncancel:Zn("Transition","TransitionCancel"),transitionend:Zn("Transition","TransitionEnd")},fr={},rf={};Ll&&(rf=document.createElement("div").style,"AnimationEvent"in window||(delete Da.animationend.animation,delete Da.animationiteration.animation,delete Da.animationstart.animation),"TransitionEvent"in window||delete Da.transitionend.transition);function Kn(e){if(fr[e])return fr[e];if(!Da[e])return e;var t=Da[e],l;for(l in t)if(t.hasOwnProperty(l)&&l in rf)return fr[e]=t[l];return e}var of=Kn("animationend"),cf=Kn("animationiteration"),ff=Kn("animationstart"),mm=Kn("transitionrun"),ym=Kn("transitionstart"),bm=Kn("transitioncancel"),df=Kn("transitionend"),hf=new Map,dr="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(" ");dr.push("scrollEnd");function fl(e,t){hf.set(e,t),Ml(t,[e])}var Ms=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)},ll=[],Ca=0,hr=0;function ws(){for(var e=Ca,t=hr=Ca=0;t<e;){var l=ll[t];ll[t++]=null;var n=ll[t];ll[t++]=null;var i=ll[t];ll[t++]=null;var s=ll[t];if(ll[t++]=null,n!==null&&i!==null){var f=n.pending;f===null?i.next=i:(i.next=f.next,f.next=i),n.pending=i}s!==0&&pf(l,i,s)}}function ks(e,t,l,n){ll[Ca++]=e,ll[Ca++]=t,ll[Ca++]=l,ll[Ca++]=n,hr|=n,e.lanes|=n,e=e.alternate,e!==null&&(e.lanes|=n)}function pr(e,t,l,n){return ks(e,t,l,n),Ls(e)}function $n(e,t){return ks(e,null,null,t),Ls(e)}function pf(e,t,l){e.lanes|=l;var n=e.alternate;n!==null&&(n.lanes|=l);for(var i=!1,s=e.return;s!==null;)s.childLanes|=l,n=s.alternate,n!==null&&(n.childLanes|=l),s.tag===22&&(e=s.stateNode,e===null||e._visibility&1||(i=!0)),e=s,s=s.return;return e.tag===3?(s=e.stateNode,i&&t!==null&&(i=31-Ot(l),e=s.hiddenUpdates,n=e[i],n===null?e[i]=[t]:n.push(t),t.lane=l|536870912),s):null}function Ls(e){if(50<$i)throw $i=0,Ao=null,Error(r(185));for(var t=e.return;t!==null;)e=t,t=e.return;return e.tag===3?e.stateNode:null}var Ma={};function vm(e,t,l,n){this.tag=e,this.key=l,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=n,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Zt(e,t,l,n){return new vm(e,t,l,n)}function gr(e){return e=e.prototype,!(!e||!e.isReactComponent)}function Ul(e,t){var l=e.alternate;return l===null?(l=Zt(e.tag,t,e.key,e.mode),l.elementType=e.elementType,l.type=e.type,l.stateNode=e.stateNode,l.alternate=e,e.alternate=l):(l.pendingProps=t,l.type=e.type,l.flags=0,l.subtreeFlags=0,l.deletions=null),l.flags=e.flags&65011712,l.childLanes=e.childLanes,l.lanes=e.lanes,l.child=e.child,l.memoizedProps=e.memoizedProps,l.memoizedState=e.memoizedState,l.updateQueue=e.updateQueue,t=e.dependencies,l.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},l.sibling=e.sibling,l.index=e.index,l.ref=e.ref,l.refCleanup=e.refCleanup,l}function gf(e,t){e.flags&=65011714;var l=e.alternate;return l===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=l.childLanes,e.lanes=l.lanes,e.child=l.child,e.subtreeFlags=0,e.deletions=null,e.memoizedProps=l.memoizedProps,e.memoizedState=l.memoizedState,e.updateQueue=l.updateQueue,e.type=l.type,t=l.dependencies,e.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext}),e}function Us(e,t,l,n,i,s){var f=0;if(n=e,typeof e=="function")gr(e)&&(f=1);else if(typeof e=="string")f=A0(e,l,Q.current)?26:e==="html"||e==="head"||e==="body"?27:5;else e:switch(e){case oe:return e=Zt(31,l,t,i),e.elementType=oe,e.lanes=s,e;case Z:return Jn(l.children,i,s,t);case ne:f=8,i|=24;break;case re:return e=Zt(12,l,t,i|2),e.elementType=re,e.lanes=s,e;case ae:return e=Zt(13,l,t,i),e.elementType=ae,e.lanes=s,e;case ie:return e=Zt(19,l,t,i),e.elementType=ie,e.lanes=s,e;default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case P:f=10;break e;case te:f=9;break e;case W:f=11;break e;case V:f=14;break e;case De:f=16,n=null;break e}f=29,l=Error(r(130,e===null?"null":typeof e,"")),n=null}return t=Zt(f,l,t,i),t.elementType=e,t.type=n,t.lanes=s,t}function Jn(e,t,l,n){return e=Zt(7,e,n,t),e.lanes=l,e}function mr(e,t,l){return e=Zt(6,e,null,t),e.lanes=l,e}function mf(e){var t=Zt(18,null,null,0);return t.stateNode=e,t}function yr(e,t,l){return t=Zt(4,e.children!==null?e.children:[],e.key,t),t.lanes=l,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}var yf=new WeakMap;function nl(e,t){if(typeof e=="object"&&e!==null){var l=yf.get(e);return l!==void 0?l:(t={value:e,source:t,stack:oi(t)},yf.set(e,t),t)}return{value:e,source:t,stack:oi(t)}}var wa=[],ka=0,js=null,Ri=0,al=[],il=0,on=null,Al=1,_l="";function jl(e,t){wa[ka++]=Ri,wa[ka++]=js,js=e,Ri=t}function bf(e,t,l){al[il++]=Al,al[il++]=_l,al[il++]=on,on=e;var n=Al;e=_l;var i=32-Ot(n)-1;n&=~(1<<i),l+=1;var s=32-Ot(t)+i;if(30<s){var f=i-i%5;s=(n&(1<<f)-1).toString(32),n>>=f,i-=f,Al=1<<32-Ot(t)+i|l<<i|n,_l=s+e}else Al=1<<s|l<<i|n,_l=e}function br(e){e.return!==null&&(jl(e,1),bf(e,1,0))}function vr(e){for(;e===js;)js=wa[--ka],wa[ka]=null,Ri=wa[--ka],wa[ka]=null;for(;e===on;)on=al[--il],al[il]=null,_l=al[--il],al[il]=null,Al=al[--il],al[il]=null}function vf(e,t){al[il++]=Al,al[il++]=_l,al[il++]=on,Al=t.id,_l=t.overflow,on=e}var vt=null,Je=null,Oe=!1,cn=null,sl=!1,Sr=Error(r(519));function fn(e){var t=Error(r(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw zi(nl(t,e)),Sr}function Sf(e){var t=e.stateNode,l=e.type,n=e.memoizedProps;switch(t[ct]=e,t[Rt]=n,l){case"dialog":Te("cancel",t),Te("close",t);break;case"iframe":case"object":case"embed":Te("load",t);break;case"video":case"audio":for(l=0;l<Fi.length;l++)Te(Fi[l],t);break;case"source":Te("error",t);break;case"img":case"image":case"link":Te("error",t),Te("load",t);break;case"details":Te("toggle",t);break;case"input":Te("invalid",t),_s(t,n.value,n.defaultValue,n.checked,n.defaultChecked,n.type,n.name,!0);break;case"select":Te("invalid",t);break;case"textarea":Te("invalid",t),Ra(t,n.value,n.defaultValue,n.children)}l=n.children,typeof l!="string"&&typeof l!="number"&&typeof l!="bigint"||t.textContent===""+l||n.suppressHydrationWarning===!0||jh(t.textContent,l)?(n.popover!=null&&(Te("beforetoggle",t),Te("toggle",t)),n.onScroll!=null&&Te("scroll",t),n.onScrollEnd!=null&&Te("scrollend",t),n.onClick!=null&&(t.onclick=Ne),t=!0):t=!1,t||fn(e,!0)}function xf(e){for(vt=e.return;vt;)switch(vt.tag){case 5:case 31:case 13:sl=!1;return;case 27:case 3:sl=!0;return;default:vt=vt.return}}function La(e){if(e!==vt)return!1;if(!Oe)return xf(e),Oe=!0,!1;var t=e.tag,l;if((l=t!==3&&t!==27)&&((l=t===5)&&(l=e.type,l=!(l!=="form"&&l!=="button")||Bo(e.type,e.memoizedProps)),l=!l),l&&Je&&fn(e),xf(e),t===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(r(317));Je=Zh(e)}else if(t===31){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(r(317));Je=Zh(e)}else t===27?(t=Je,_n(e.type)?(e=Vo,Vo=null,Je=e):Je=t):Je=vt?rl(e.stateNode.nextSibling):null;return!0}function Fn(){Je=vt=null,Oe=!1}function xr(){var e=cn;return e!==null&&(Gt===null?Gt=e:Gt.push.apply(Gt,e),cn=null),e}function zi(e){cn===null?cn=[e]:cn.push(e)}var Tr=S(null),In=null,Hl=null;function dn(e,t,l){G(Tr,t._currentValue),t._currentValue=l}function Bl(e){e._currentValue=Tr.current,D(Tr)}function Er(e,t,l){for(;e!==null;){var n=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,n!==null&&(n.childLanes|=t)):n!==null&&(n.childLanes&t)!==t&&(n.childLanes|=t),e===l)break;e=e.return}}function Ar(e,t,l,n){var i=e.child;for(i!==null&&(i.return=e);i!==null;){var s=i.dependencies;if(s!==null){var f=i.child;s=s.firstContext;e:for(;s!==null;){var p=s;s=i;for(var v=0;v<t.length;v++)if(p.context===t[v]){s.lanes|=l,p=s.alternate,p!==null&&(p.lanes|=l),Er(s.return,l,e),n||(f=null);break e}s=p.next}}else if(i.tag===18){if(f=i.return,f===null)throw Error(r(341));f.lanes|=l,s=f.alternate,s!==null&&(s.lanes|=l),Er(f,l,e),f=null}else f=i.child;if(f!==null)f.return=i;else for(f=i;f!==null;){if(f===e){f=null;break}if(i=f.sibling,i!==null){i.return=f.return,f=i;break}f=f.return}i=f}}function Ua(e,t,l,n){e=null;for(var i=t,s=!1;i!==null;){if(!s){if((i.flags&524288)!==0)s=!0;else if((i.flags&262144)!==0)break}if(i.tag===10){var f=i.alternate;if(f===null)throw Error(r(387));if(f=f.memoizedProps,f!==null){var p=i.type;Qt(i.pendingProps.value,f.value)||(e!==null?e.push(p):e=[p])}}else if(i===Ce.current){if(f=i.alternate,f===null)throw Error(r(387));f.memoizedState.memoizedState!==i.memoizedState.memoizedState&&(e!==null?e.push(ts):e=[ts])}i=i.return}e!==null&&Ar(t,e,l,n),t.flags|=262144}function Hs(e){for(e=e.firstContext;e!==null;){if(!Qt(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function Wn(e){In=e,Hl=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function St(e){return Tf(In,e)}function Bs(e,t){return In===null&&Wn(e),Tf(e,t)}function Tf(e,t){var l=t._currentValue;if(t={context:t,memoizedValue:l,next:null},Hl===null){if(e===null)throw Error(r(308));Hl=t,e.dependencies={lanes:0,firstContext:t},e.flags|=524288}else Hl=Hl.next=t;return l}var Sm=typeof AbortController<"u"?AbortController:function(){var e=[],t=this.signal={aborted:!1,addEventListener:function(l,n){e.push(n)}};this.abort=function(){t.aborted=!0,e.forEach(function(l){return l()})}},xm=c.unstable_scheduleCallback,Tm=c.unstable_NormalPriority,it={$$typeof:P,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function _r(){return{controller:new Sm,data:new Map,refCount:0}}function Ni(e){e.refCount--,e.refCount===0&&xm(Tm,function(){e.controller.abort()})}var Di=null,Or=0,ja=0,Ha=null;function Em(e,t){if(Di===null){var l=Di=[];Or=0,ja=Do(),Ha={status:"pending",value:void 0,then:function(n){l.push(n)}}}return Or++,t.then(Ef,Ef),t}function Ef(){if(--Or===0&&Di!==null){Ha!==null&&(Ha.status="fulfilled");var e=Di;Di=null,ja=0,Ha=null;for(var t=0;t<e.length;t++)(0,e[t])()}}function Am(e,t){var l=[],n={status:"pending",value:null,reason:null,then:function(i){l.push(i)}};return e.then(function(){n.status="fulfilled",n.value=t;for(var i=0;i<l.length;i++)(0,l[i])(t)},function(i){for(n.status="rejected",n.reason=i,i=0;i<l.length;i++)(0,l[i])(void 0)}),n}var Af=N.S;N.S=function(e,t){uh=Pe(),typeof t=="object"&&t!==null&&typeof t.then=="function"&&Em(e,t),Af!==null&&Af(e,t)};var Pn=S(null);function Rr(){var e=Pn.current;return e!==null?e:Ke.pooledCache}function qs(e,t){t===null?G(Pn,Pn.current):G(Pn,t.pool)}function _f(){var e=Rr();return e===null?null:{parent:it._currentValue,pool:e}}var Ba=Error(r(460)),zr=Error(r(474)),Ys=Error(r(542)),Gs={then:function(){}};function Of(e){return e=e.status,e==="fulfilled"||e==="rejected"}function Rf(e,t,l){switch(l=e[l],l===void 0?e.push(t):l!==t&&(t.then(Ne,Ne),t=l),t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,Nf(e),e;default:if(typeof t.status=="string")t.then(Ne,Ne);else{if(e=Ke,e!==null&&100<e.shellSuspendCounter)throw Error(r(482));e=t,e.status="pending",e.then(function(n){if(t.status==="pending"){var i=t;i.status="fulfilled",i.value=n}},function(n){if(t.status==="pending"){var i=t;i.status="rejected",i.reason=n}})}switch(t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,Nf(e),e}throw ta=t,Ba}}function ea(e){try{var t=e._init;return t(e._payload)}catch(l){throw l!==null&&typeof l=="object"&&typeof l.then=="function"?(ta=l,Ba):l}}var ta=null;function zf(){if(ta===null)throw Error(r(459));var e=ta;return ta=null,e}function Nf(e){if(e===Ba||e===Ys)throw Error(r(483))}var qa=null,Ci=0;function Xs(e){var t=Ci;return Ci+=1,qa===null&&(qa=[]),Rf(qa,e,t)}function Mi(e,t){t=t.props.ref,e.ref=t!==void 0?t:null}function Vs(e,t){throw t.$$typeof===M?Error(r(525)):(e=Object.prototype.toString.call(t),Error(r(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e)))}function Df(e){function t(A,T){if(e){var O=A.deletions;O===null?(A.deletions=[T],A.flags|=16):O.push(T)}}function l(A,T){if(!e)return null;for(;T!==null;)t(A,T),T=T.sibling;return null}function n(A){for(var T=new Map;A!==null;)A.key!==null?T.set(A.key,A):T.set(A.index,A),A=A.sibling;return T}function i(A,T){return A=Ul(A,T),A.index=0,A.sibling=null,A}function s(A,T,O){return A.index=O,e?(O=A.alternate,O!==null?(O=O.index,O<T?(A.flags|=67108866,T):O):(A.flags|=67108866,T)):(A.flags|=1048576,T)}function f(A){return e&&A.alternate===null&&(A.flags|=67108866),A}function p(A,T,O,L){return T===null||T.tag!==6?(T=mr(O,A.mode,L),T.return=A,T):(T=i(T,O),T.return=A,T)}function v(A,T,O,L){var le=O.type;return le===Z?k(A,T,O.props.children,L,O.key):T!==null&&(T.elementType===le||typeof le=="object"&&le!==null&&le.$$typeof===De&&ea(le)===T.type)?(T=i(T,O.props),Mi(T,O),T.return=A,T):(T=Us(O.type,O.key,O.props,null,A.mode,L),Mi(T,O),T.return=A,T)}function R(A,T,O,L){return T===null||T.tag!==4||T.stateNode.containerInfo!==O.containerInfo||T.stateNode.implementation!==O.implementation?(T=yr(O,A.mode,L),T.return=A,T):(T=i(T,O.children||[]),T.return=A,T)}function k(A,T,O,L,le){return T===null||T.tag!==7?(T=Jn(O,A.mode,L,le),T.return=A,T):(T=i(T,O),T.return=A,T)}function U(A,T,O){if(typeof T=="string"&&T!==""||typeof T=="number"||typeof T=="bigint")return T=mr(""+T,A.mode,O),T.return=A,T;if(typeof T=="object"&&T!==null){switch(T.$$typeof){case H:return O=Us(T.type,T.key,T.props,null,A.mode,O),Mi(O,T),O.return=A,O;case w:return T=yr(T,A.mode,O),T.return=A,T;case De:return T=ea(T),U(A,T,O)}if(Qe(T)||X(T))return T=Jn(T,A.mode,O,null),T.return=A,T;if(typeof T.then=="function")return U(A,Xs(T),O);if(T.$$typeof===P)return U(A,Bs(A,T),O);Vs(A,T)}return null}function z(A,T,O,L){var le=T!==null?T.key:null;if(typeof O=="string"&&O!==""||typeof O=="number"||typeof O=="bigint")return le!==null?null:p(A,T,""+O,L);if(typeof O=="object"&&O!==null){switch(O.$$typeof){case H:return O.key===le?v(A,T,O,L):null;case w:return O.key===le?R(A,T,O,L):null;case De:return O=ea(O),z(A,T,O,L)}if(Qe(O)||X(O))return le!==null?null:k(A,T,O,L,null);if(typeof O.then=="function")return z(A,T,Xs(O),L);if(O.$$typeof===P)return z(A,T,Bs(A,O),L);Vs(A,O)}return null}function C(A,T,O,L,le){if(typeof L=="string"&&L!==""||typeof L=="number"||typeof L=="bigint")return A=A.get(O)||null,p(T,A,""+L,le);if(typeof L=="object"&&L!==null){switch(L.$$typeof){case H:return A=A.get(L.key===null?O:L.key)||null,v(T,A,L,le);case w:return A=A.get(L.key===null?O:L.key)||null,R(T,A,L,le);case De:return L=ea(L),C(A,T,O,L,le)}if(Qe(L)||X(L))return A=A.get(O)||null,k(T,A,L,le,null);if(typeof L.then=="function")return C(A,T,O,Xs(L),le);if(L.$$typeof===P)return C(A,T,O,Bs(T,L),le);Vs(T,L)}return null}function K(A,T,O,L){for(var le=null,we=null,I=T,ve=T=0,Ae=null;I!==null&&ve<O.length;ve++){I.index>ve?(Ae=I,I=null):Ae=I.sibling;var ke=z(A,I,O[ve],L);if(ke===null){I===null&&(I=Ae);break}e&&I&&ke.alternate===null&&t(A,I),T=s(ke,T,ve),we===null?le=ke:we.sibling=ke,we=ke,I=Ae}if(ve===O.length)return l(A,I),Oe&&jl(A,ve),le;if(I===null){for(;ve<O.length;ve++)I=U(A,O[ve],L),I!==null&&(T=s(I,T,ve),we===null?le=I:we.sibling=I,we=I);return Oe&&jl(A,ve),le}for(I=n(I);ve<O.length;ve++)Ae=C(I,A,ve,O[ve],L),Ae!==null&&(e&&Ae.alternate!==null&&I.delete(Ae.key===null?ve:Ae.key),T=s(Ae,T,ve),we===null?le=Ae:we.sibling=Ae,we=Ae);return e&&I.forEach(function(Dn){return t(A,Dn)}),Oe&&jl(A,ve),le}function ue(A,T,O,L){if(O==null)throw Error(r(151));for(var le=null,we=null,I=T,ve=T=0,Ae=null,ke=O.next();I!==null&&!ke.done;ve++,ke=O.next()){I.index>ve?(Ae=I,I=null):Ae=I.sibling;var Dn=z(A,I,ke.value,L);if(Dn===null){I===null&&(I=Ae);break}e&&I&&Dn.alternate===null&&t(A,I),T=s(Dn,T,ve),we===null?le=Dn:we.sibling=Dn,we=Dn,I=Ae}if(ke.done)return l(A,I),Oe&&jl(A,ve),le;if(I===null){for(;!ke.done;ve++,ke=O.next())ke=U(A,ke.value,L),ke!==null&&(T=s(ke,T,ve),we===null?le=ke:we.sibling=ke,we=ke);return Oe&&jl(A,ve),le}for(I=n(I);!ke.done;ve++,ke=O.next())ke=C(I,A,ve,ke.value,L),ke!==null&&(e&&ke.alternate!==null&&I.delete(ke.key===null?ve:ke.key),T=s(ke,T,ve),we===null?le=ke:we.sibling=ke,we=ke);return e&&I.forEach(function(L0){return t(A,L0)}),Oe&&jl(A,ve),le}function Ve(A,T,O,L){if(typeof O=="object"&&O!==null&&O.type===Z&&O.key===null&&(O=O.props.children),typeof O=="object"&&O!==null){switch(O.$$typeof){case H:e:{for(var le=O.key;T!==null;){if(T.key===le){if(le=O.type,le===Z){if(T.tag===7){l(A,T.sibling),L=i(T,O.props.children),L.return=A,A=L;break e}}else if(T.elementType===le||typeof le=="object"&&le!==null&&le.$$typeof===De&&ea(le)===T.type){l(A,T.sibling),L=i(T,O.props),Mi(L,O),L.return=A,A=L;break e}l(A,T);break}else t(A,T);T=T.sibling}O.type===Z?(L=Jn(O.props.children,A.mode,L,O.key),L.return=A,A=L):(L=Us(O.type,O.key,O.props,null,A.mode,L),Mi(L,O),L.return=A,A=L)}return f(A);case w:e:{for(le=O.key;T!==null;){if(T.key===le)if(T.tag===4&&T.stateNode.containerInfo===O.containerInfo&&T.stateNode.implementation===O.implementation){l(A,T.sibling),L=i(T,O.children||[]),L.return=A,A=L;break e}else{l(A,T);break}else t(A,T);T=T.sibling}L=yr(O,A.mode,L),L.return=A,A=L}return f(A);case De:return O=ea(O),Ve(A,T,O,L)}if(Qe(O))return K(A,T,O,L);if(X(O)){if(le=X(O),typeof le!="function")throw Error(r(150));return O=le.call(O),ue(A,T,O,L)}if(typeof O.then=="function")return Ve(A,T,Xs(O),L);if(O.$$typeof===P)return Ve(A,T,Bs(A,O),L);Vs(A,O)}return typeof O=="string"&&O!==""||typeof O=="number"||typeof O=="bigint"?(O=""+O,T!==null&&T.tag===6?(l(A,T.sibling),L=i(T,O),L.return=A,A=L):(l(A,T),L=mr(O,A.mode,L),L.return=A,A=L),f(A)):l(A,T)}return function(A,T,O,L){try{Ci=0;var le=Ve(A,T,O,L);return qa=null,le}catch(I){if(I===Ba||I===Ys)throw I;var we=Zt(29,I,null,A.mode);return we.lanes=L,we.return=A,we}}}var la=Df(!0),Cf=Df(!1),hn=!1;function Nr(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function Dr(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 pn(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function gn(e,t,l){var n=e.updateQueue;if(n===null)return null;if(n=n.shared,(Ue&2)!==0){var i=n.pending;return i===null?t.next=t:(t.next=i.next,i.next=t),n.pending=t,t=Ls(e),pf(e,null,l),t}return ks(e,n,t,l),Ls(e)}function wi(e,t,l){if(t=t.updateQueue,t!==null&&(t=t.shared,(l&4194048)!==0)){var n=t.lanes;n&=e.pendingLanes,l|=n,t.lanes=l,xs(e,l)}}function Cr(e,t){var l=e.updateQueue,n=e.alternate;if(n!==null&&(n=n.updateQueue,l===n)){var i=null,s=null;if(l=l.firstBaseUpdate,l!==null){do{var f={lane:l.lane,tag:l.tag,payload:l.payload,callback:null,next:null};s===null?i=s=f:s=s.next=f,l=l.next}while(l!==null);s===null?i=s=t:s=s.next=t}else i=s=t;l={baseState:n.baseState,firstBaseUpdate:i,lastBaseUpdate:s,shared:n.shared,callbacks:n.callbacks},e.updateQueue=l;return}e=l.lastBaseUpdate,e===null?l.firstBaseUpdate=t:e.next=t,l.lastBaseUpdate=t}var Mr=!1;function ki(){if(Mr){var e=Ha;if(e!==null)throw e}}function Li(e,t,l,n){Mr=!1;var i=e.updateQueue;hn=!1;var s=i.firstBaseUpdate,f=i.lastBaseUpdate,p=i.shared.pending;if(p!==null){i.shared.pending=null;var v=p,R=v.next;v.next=null,f===null?s=R:f.next=R,f=v;var k=e.alternate;k!==null&&(k=k.updateQueue,p=k.lastBaseUpdate,p!==f&&(p===null?k.firstBaseUpdate=R:p.next=R,k.lastBaseUpdate=v))}if(s!==null){var U=i.baseState;f=0,k=R=v=null,p=s;do{var z=p.lane&-536870913,C=z!==p.lane;if(C?(Ee&z)===z:(n&z)===z){z!==0&&z===ja&&(Mr=!0),k!==null&&(k=k.next={lane:0,tag:p.tag,payload:p.payload,callback:null,next:null});e:{var K=e,ue=p;z=t;var Ve=l;switch(ue.tag){case 1:if(K=ue.payload,typeof K=="function"){U=K.call(Ve,U,z);break e}U=K;break e;case 3:K.flags=K.flags&-65537|128;case 0:if(K=ue.payload,z=typeof K=="function"?K.call(Ve,U,z):K,z==null)break e;U=x({},U,z);break e;case 2:hn=!0}}z=p.callback,z!==null&&(e.flags|=64,C&&(e.flags|=8192),C=i.callbacks,C===null?i.callbacks=[z]:C.push(z))}else C={lane:z,tag:p.tag,payload:p.payload,callback:p.callback,next:null},k===null?(R=k=C,v=U):k=k.next=C,f|=z;if(p=p.next,p===null){if(p=i.shared.pending,p===null)break;C=p,p=C.next,C.next=null,i.lastBaseUpdate=C,i.shared.pending=null}}while(!0);k===null&&(v=U),i.baseState=v,i.firstBaseUpdate=R,i.lastBaseUpdate=k,s===null&&(i.shared.lanes=0),Sn|=f,e.lanes=f,e.memoizedState=U}}function Mf(e,t){if(typeof e!="function")throw Error(r(191,e));e.call(t)}function wf(e,t){var l=e.callbacks;if(l!==null)for(e.callbacks=null,e=0;e<l.length;e++)Mf(l[e],t)}var Ya=S(null),Qs=S(0);function kf(e,t){e=$l,G(Qs,e),G(Ya,t),$l=e|t.baseLanes}function wr(){G(Qs,$l),G(Ya,Ya.current)}function kr(){$l=Qs.current,D(Ya),D(Qs)}var Kt=S(null),ul=null;function mn(e){var t=e.alternate;G(nt,nt.current&1),G(Kt,e),ul===null&&(t===null||Ya.current!==null||t.memoizedState!==null)&&(ul=e)}function Lr(e){G(nt,nt.current),G(Kt,e),ul===null&&(ul=e)}function Lf(e){e.tag===22?(G(nt,nt.current),G(Kt,e),ul===null&&(ul=e)):yn()}function yn(){G(nt,nt.current),G(Kt,Kt.current)}function $t(e){D(Kt),ul===e&&(ul=null),D(nt)}var nt=S(0);function Zs(e){for(var t=e;t!==null;){if(t.tag===13){var l=t.memoizedState;if(l!==null&&(l=l.dehydrated,l===null||Go(l)||Xo(l)))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 ql=0,be=null,Ge=null,st=null,Ks=!1,Ga=!1,na=!1,$s=0,Ui=0,Xa=null,_m=0;function tt(){throw Error(r(321))}function Ur(e,t){if(t===null)return!1;for(var l=0;l<t.length&&l<e.length;l++)if(!Qt(e[l],t[l]))return!1;return!0}function jr(e,t,l,n,i,s){return ql=s,be=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,N.H=e===null||e.memoizedState===null?bd:Wr,na=!1,s=l(n,i),na=!1,Ga&&(s=jf(t,l,n,i)),Uf(e),s}function Uf(e){N.H=Bi;var t=Ge!==null&&Ge.next!==null;if(ql=0,st=Ge=be=null,Ks=!1,Ui=0,Xa=null,t)throw Error(r(300));e===null||ut||(e=e.dependencies,e!==null&&Hs(e)&&(ut=!0))}function jf(e,t,l,n){be=e;var i=0;do{if(Ga&&(Xa=null),Ui=0,Ga=!1,25<=i)throw Error(r(301));if(i+=1,st=Ge=null,e.updateQueue!=null){var s=e.updateQueue;s.lastEffect=null,s.events=null,s.stores=null,s.memoCache!=null&&(s.memoCache.index=0)}N.H=vd,s=t(l,n)}while(Ga);return s}function Om(){var e=N.H,t=e.useState()[0];return t=typeof t.then=="function"?ji(t):t,e=e.useState()[0],(Ge!==null?Ge.memoizedState:null)!==e&&(be.flags|=1024),t}function Hr(){var e=$s!==0;return $s=0,e}function Br(e,t,l){t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~l}function qr(e){if(Ks){for(e=e.memoizedState;e!==null;){var t=e.queue;t!==null&&(t.pending=null),e=e.next}Ks=!1}ql=0,st=Ge=be=null,Ga=!1,Ui=$s=0,Xa=null}function Mt(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return st===null?be.memoizedState=st=e:st=st.next=e,st}function at(){if(Ge===null){var e=be.alternate;e=e!==null?e.memoizedState:null}else e=Ge.next;var t=st===null?be.memoizedState:st.next;if(t!==null)st=t,Ge=e;else{if(e===null)throw be.alternate===null?Error(r(467)):Error(r(310));Ge=e,e={memoizedState:Ge.memoizedState,baseState:Ge.baseState,baseQueue:Ge.baseQueue,queue:Ge.queue,next:null},st===null?be.memoizedState=st=e:st=st.next=e}return st}function Js(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function ji(e){var t=Ui;return Ui+=1,Xa===null&&(Xa=[]),e=Rf(Xa,e,t),t=be,(st===null?t.memoizedState:st.next)===null&&(t=t.alternate,N.H=t===null||t.memoizedState===null?bd:Wr),e}function Fs(e){if(e!==null&&typeof e=="object"){if(typeof e.then=="function")return ji(e);if(e.$$typeof===P)return St(e)}throw Error(r(438,String(e)))}function Yr(e){var t=null,l=be.updateQueue;if(l!==null&&(t=l.memoCache),t==null){var n=be.alternate;n!==null&&(n=n.updateQueue,n!==null&&(n=n.memoCache,n!=null&&(t={data:n.data.map(function(i){return i.slice()}),index:0})))}if(t==null&&(t={data:[],index:0}),l===null&&(l=Js(),be.updateQueue=l),l.memoCache=t,l=t.data[t.index],l===void 0)for(l=t.data[t.index]=Array(e),n=0;n<e;n++)l[n]=ce;return t.index++,l}function Yl(e,t){return typeof t=="function"?t(e):t}function Is(e){var t=at();return Gr(t,Ge,e)}function Gr(e,t,l){var n=e.queue;if(n===null)throw Error(r(311));n.lastRenderedReducer=l;var i=e.baseQueue,s=n.pending;if(s!==null){if(i!==null){var f=i.next;i.next=s.next,s.next=f}t.baseQueue=i=s,n.pending=null}if(s=e.baseState,i===null)e.memoizedState=s;else{t=i.next;var p=f=null,v=null,R=t,k=!1;do{var U=R.lane&-536870913;if(U!==R.lane?(Ee&U)===U:(ql&U)===U){var z=R.revertLane;if(z===0)v!==null&&(v=v.next={lane:0,revertLane:0,gesture:null,action:R.action,hasEagerState:R.hasEagerState,eagerState:R.eagerState,next:null}),U===ja&&(k=!0);else if((ql&z)===z){R=R.next,z===ja&&(k=!0);continue}else U={lane:0,revertLane:R.revertLane,gesture:null,action:R.action,hasEagerState:R.hasEagerState,eagerState:R.eagerState,next:null},v===null?(p=v=U,f=s):v=v.next=U,be.lanes|=z,Sn|=z;U=R.action,na&&l(s,U),s=R.hasEagerState?R.eagerState:l(s,U)}else z={lane:U,revertLane:R.revertLane,gesture:R.gesture,action:R.action,hasEagerState:R.hasEagerState,eagerState:R.eagerState,next:null},v===null?(p=v=z,f=s):v=v.next=z,be.lanes|=U,Sn|=U;R=R.next}while(R!==null&&R!==t);if(v===null?f=s:v.next=p,!Qt(s,e.memoizedState)&&(ut=!0,k&&(l=Ha,l!==null)))throw l;e.memoizedState=s,e.baseState=f,e.baseQueue=v,n.lastRenderedState=s}return i===null&&(n.lanes=0),[e.memoizedState,n.dispatch]}function Xr(e){var t=at(),l=t.queue;if(l===null)throw Error(r(311));l.lastRenderedReducer=e;var n=l.dispatch,i=l.pending,s=t.memoizedState;if(i!==null){l.pending=null;var f=i=i.next;do s=e(s,f.action),f=f.next;while(f!==i);Qt(s,t.memoizedState)||(ut=!0),t.memoizedState=s,t.baseQueue===null&&(t.baseState=s),l.lastRenderedState=s}return[s,n]}function Hf(e,t,l){var n=be,i=at(),s=Oe;if(s){if(l===void 0)throw Error(r(407));l=l()}else l=t();var f=!Qt((Ge||i).memoizedState,l);if(f&&(i.memoizedState=l,ut=!0),i=i.queue,Zr(Yf.bind(null,n,i,e),[e]),i.getSnapshot!==t||f||st!==null&&st.memoizedState.tag&1){if(n.flags|=2048,Va(9,{destroy:void 0},qf.bind(null,n,i,l,t),null),Ke===null)throw Error(r(349));s||(ql&127)!==0||Bf(n,t,l)}return l}function Bf(e,t,l){e.flags|=16384,e={getSnapshot:t,value:l},t=be.updateQueue,t===null?(t=Js(),be.updateQueue=t,t.stores=[e]):(l=t.stores,l===null?t.stores=[e]:l.push(e))}function qf(e,t,l,n){t.value=l,t.getSnapshot=n,Gf(t)&&Xf(e)}function Yf(e,t,l){return l(function(){Gf(t)&&Xf(e)})}function Gf(e){var t=e.getSnapshot;e=e.value;try{var l=t();return!Qt(e,l)}catch{return!0}}function Xf(e){var t=$n(e,2);t!==null&&Xt(t,e,2)}function Vr(e){var t=Mt();if(typeof e=="function"){var l=e;if(e=l(),na){cl(!0);try{l()}finally{cl(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Yl,lastRenderedState:e},t}function Vf(e,t,l,n){return e.baseState=l,Gr(e,Ge,typeof n=="function"?n:Yl)}function Rm(e,t,l,n,i){if(eu(e))throw Error(r(485));if(e=t.action,e!==null){var s={payload:i,action:e,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(f){s.listeners.push(f)}};N.T!==null?l(!0):s.isTransition=!1,n(s),l=t.pending,l===null?(s.next=t.pending=s,Qf(t,s)):(s.next=l.next,t.pending=l.next=s)}}function Qf(e,t){var l=t.action,n=t.payload,i=e.state;if(t.isTransition){var s=N.T,f={};N.T=f;try{var p=l(i,n),v=N.S;v!==null&&v(f,p),Zf(e,t,p)}catch(R){Qr(e,t,R)}finally{s!==null&&f.types!==null&&(s.types=f.types),N.T=s}}else try{s=l(i,n),Zf(e,t,s)}catch(R){Qr(e,t,R)}}function Zf(e,t,l){l!==null&&typeof l=="object"&&typeof l.then=="function"?l.then(function(n){Kf(e,t,n)},function(n){return Qr(e,t,n)}):Kf(e,t,l)}function Kf(e,t,l){t.status="fulfilled",t.value=l,$f(t),e.state=l,t=e.pending,t!==null&&(l=t.next,l===t?e.pending=null:(l=l.next,t.next=l,Qf(e,l)))}function Qr(e,t,l){var n=e.pending;if(e.pending=null,n!==null){n=n.next;do t.status="rejected",t.reason=l,$f(t),t=t.next;while(t!==n)}e.action=null}function $f(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function Jf(e,t){return t}function Ff(e,t){if(Oe){var l=Ke.formState;if(l!==null){e:{var n=be;if(Oe){if(Je){t:{for(var i=Je,s=sl;i.nodeType!==8;){if(!s){i=null;break t}if(i=rl(i.nextSibling),i===null){i=null;break t}}s=i.data,i=s==="F!"||s==="F"?i:null}if(i){Je=rl(i.nextSibling),n=i.data==="F!";break e}}fn(n)}n=!1}n&&(t=l[0])}}return l=Mt(),l.memoizedState=l.baseState=t,n={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Jf,lastRenderedState:t},l.queue=n,l=gd.bind(null,be,n),n.dispatch=l,n=Vr(!1),s=Ir.bind(null,be,!1,n.queue),n=Mt(),i={state:t,dispatch:null,action:e,pending:null},n.queue=i,l=Rm.bind(null,be,i,s,l),i.dispatch=l,n.memoizedState=e,[t,l,!1]}function If(e){var t=at();return Wf(t,Ge,e)}function Wf(e,t,l){if(t=Gr(e,t,Jf)[0],e=Is(Yl)[0],typeof t=="object"&&t!==null&&typeof t.then=="function")try{var n=ji(t)}catch(f){throw f===Ba?Ys:f}else n=t;t=at();var i=t.queue,s=i.dispatch;return l!==t.memoizedState&&(be.flags|=2048,Va(9,{destroy:void 0},zm.bind(null,i,l),null)),[n,s,e]}function zm(e,t){e.action=t}function Pf(e){var t=at(),l=Ge;if(l!==null)return Wf(t,l,e);at(),t=t.memoizedState,l=at();var n=l.queue.dispatch;return l.memoizedState=e,[t,n,!1]}function Va(e,t,l,n){return e={tag:e,create:l,deps:n,inst:t,next:null},t=be.updateQueue,t===null&&(t=Js(),be.updateQueue=t),l=t.lastEffect,l===null?t.lastEffect=e.next=e:(n=l.next,l.next=e,e.next=n,t.lastEffect=e),e}function ed(){return at().memoizedState}function Ws(e,t,l,n){var i=Mt();be.flags|=e,i.memoizedState=Va(1|t,{destroy:void 0},l,n===void 0?null:n)}function Ps(e,t,l,n){var i=at();n=n===void 0?null:n;var s=i.memoizedState.inst;Ge!==null&&n!==null&&Ur(n,Ge.memoizedState.deps)?i.memoizedState=Va(t,s,l,n):(be.flags|=e,i.memoizedState=Va(1|t,s,l,n))}function td(e,t){Ws(8390656,8,e,t)}function Zr(e,t){Ps(2048,8,e,t)}function Nm(e){be.flags|=4;var t=be.updateQueue;if(t===null)t=Js(),be.updateQueue=t,t.events=[e];else{var l=t.events;l===null?t.events=[e]:l.push(e)}}function ld(e){var t=at().memoizedState;return Nm({ref:t,nextImpl:e}),function(){if((Ue&2)!==0)throw Error(r(440));return t.impl.apply(void 0,arguments)}}function nd(e,t){return Ps(4,2,e,t)}function ad(e,t){return Ps(4,4,e,t)}function id(e,t){if(typeof t=="function"){e=e();var l=t(e);return function(){typeof l=="function"?l():t(null)}}if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function sd(e,t,l){l=l!=null?l.concat([e]):null,Ps(4,4,id.bind(null,t,e),l)}function Kr(){}function ud(e,t){var l=at();t=t===void 0?null:t;var n=l.memoizedState;return t!==null&&Ur(t,n[1])?n[0]:(l.memoizedState=[e,t],e)}function rd(e,t){var l=at();t=t===void 0?null:t;var n=l.memoizedState;if(t!==null&&Ur(t,n[1]))return n[0];if(n=e(),na){cl(!0);try{e()}finally{cl(!1)}}return l.memoizedState=[n,t],n}function $r(e,t,l){return l===void 0||(ql&1073741824)!==0&&(Ee&261930)===0?e.memoizedState=t:(e.memoizedState=l,e=oh(),be.lanes|=e,Sn|=e,l)}function od(e,t,l,n){return Qt(l,t)?l:Ya.current!==null?(e=$r(e,l,n),Qt(e,t)||(ut=!0),e):(ql&42)===0||(ql&1073741824)!==0&&(Ee&261930)===0?(ut=!0,e.memoizedState=l):(e=oh(),be.lanes|=e,Sn|=e,t)}function cd(e,t,l,n,i){var s=q.p;q.p=s!==0&&8>s?s:8;var f=N.T,p={};N.T=p,Ir(e,!1,t,l);try{var v=i(),R=N.S;if(R!==null&&R(p,v),v!==null&&typeof v=="object"&&typeof v.then=="function"){var k=Am(v,n);Hi(e,t,k,It(e))}else Hi(e,t,n,It(e))}catch(U){Hi(e,t,{then:function(){},status:"rejected",reason:U},It())}finally{q.p=s,f!==null&&p.types!==null&&(f.types=p.types),N.T=f}}function Dm(){}function Jr(e,t,l,n){if(e.tag!==5)throw Error(r(476));var i=fd(e).queue;cd(e,i,t,$,l===null?Dm:function(){return dd(e),l(n)})}function fd(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:$,baseState:$,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Yl,lastRenderedState:$},next:null};var l={};return t.next={memoizedState:l,baseState:l,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Yl,lastRenderedState:l},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function dd(e){var t=fd(e);t.next===null&&(t=e.alternate.memoizedState),Hi(e,t.next.queue,{},It())}function Fr(){return St(ts)}function hd(){return at().memoizedState}function pd(){return at().memoizedState}function Cm(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var l=It();e=pn(l);var n=gn(t,e,l);n!==null&&(Xt(n,t,l),wi(n,t,l)),t={cache:_r()},e.payload=t;return}t=t.return}}function Mm(e,t,l){var n=It();l={lane:n,revertLane:0,gesture:null,action:l,hasEagerState:!1,eagerState:null,next:null},eu(e)?md(t,l):(l=pr(e,t,l,n),l!==null&&(Xt(l,e,n),yd(l,t,n)))}function gd(e,t,l){var n=It();Hi(e,t,l,n)}function Hi(e,t,l,n){var i={lane:n,revertLane:0,gesture:null,action:l,hasEagerState:!1,eagerState:null,next:null};if(eu(e))md(t,i);else{var s=e.alternate;if(e.lanes===0&&(s===null||s.lanes===0)&&(s=t.lastRenderedReducer,s!==null))try{var f=t.lastRenderedState,p=s(f,l);if(i.hasEagerState=!0,i.eagerState=p,Qt(p,f))return ks(e,t,i,0),Ke===null&&ws(),!1}catch{}if(l=pr(e,t,i,n),l!==null)return Xt(l,e,n),yd(l,t,n),!0}return!1}function Ir(e,t,l,n){if(n={lane:2,revertLane:Do(),gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null},eu(e)){if(t)throw Error(r(479))}else t=pr(e,l,n,2),t!==null&&Xt(t,e,2)}function eu(e){var t=e.alternate;return e===be||t!==null&&t===be}function md(e,t){Ga=Ks=!0;var l=e.pending;l===null?t.next=t:(t.next=l.next,l.next=t),e.pending=t}function yd(e,t,l){if((l&4194048)!==0){var n=t.lanes;n&=e.pendingLanes,l|=n,t.lanes=l,xs(e,l)}}var Bi={readContext:St,use:Fs,useCallback:tt,useContext:tt,useEffect:tt,useImperativeHandle:tt,useLayoutEffect:tt,useInsertionEffect:tt,useMemo:tt,useReducer:tt,useRef:tt,useState:tt,useDebugValue:tt,useDeferredValue:tt,useTransition:tt,useSyncExternalStore:tt,useId:tt,useHostTransitionStatus:tt,useFormState:tt,useActionState:tt,useOptimistic:tt,useMemoCache:tt,useCacheRefresh:tt};Bi.useEffectEvent=tt;var bd={readContext:St,use:Fs,useCallback:function(e,t){return Mt().memoizedState=[e,t===void 0?null:t],e},useContext:St,useEffect:td,useImperativeHandle:function(e,t,l){l=l!=null?l.concat([e]):null,Ws(4194308,4,id.bind(null,t,e),l)},useLayoutEffect:function(e,t){return Ws(4194308,4,e,t)},useInsertionEffect:function(e,t){Ws(4,2,e,t)},useMemo:function(e,t){var l=Mt();t=t===void 0?null:t;var n=e();if(na){cl(!0);try{e()}finally{cl(!1)}}return l.memoizedState=[n,t],n},useReducer:function(e,t,l){var n=Mt();if(l!==void 0){var i=l(t);if(na){cl(!0);try{l(t)}finally{cl(!1)}}}else i=t;return n.memoizedState=n.baseState=i,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:i},n.queue=e,e=e.dispatch=Mm.bind(null,be,e),[n.memoizedState,e]},useRef:function(e){var t=Mt();return e={current:e},t.memoizedState=e},useState:function(e){e=Vr(e);var t=e.queue,l=gd.bind(null,be,t);return t.dispatch=l,[e.memoizedState,l]},useDebugValue:Kr,useDeferredValue:function(e,t){var l=Mt();return $r(l,e,t)},useTransition:function(){var e=Vr(!1);return e=cd.bind(null,be,e.queue,!0,!1),Mt().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,l){var n=be,i=Mt();if(Oe){if(l===void 0)throw Error(r(407));l=l()}else{if(l=t(),Ke===null)throw Error(r(349));(Ee&127)!==0||Bf(n,t,l)}i.memoizedState=l;var s={value:l,getSnapshot:t};return i.queue=s,td(Yf.bind(null,n,s,e),[e]),n.flags|=2048,Va(9,{destroy:void 0},qf.bind(null,n,s,l,t),null),l},useId:function(){var e=Mt(),t=Ke.identifierPrefix;if(Oe){var l=_l,n=Al;l=(n&~(1<<32-Ot(n)-1)).toString(32)+l,t="_"+t+"R_"+l,l=$s++,0<l&&(t+="H"+l.toString(32)),t+="_"}else l=_m++,t="_"+t+"r_"+l.toString(32)+"_";return e.memoizedState=t},useHostTransitionStatus:Fr,useFormState:Ff,useActionState:Ff,useOptimistic:function(e){var t=Mt();t.memoizedState=t.baseState=e;var l={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=l,t=Ir.bind(null,be,!0,l),l.dispatch=t,[e,t]},useMemoCache:Yr,useCacheRefresh:function(){return Mt().memoizedState=Cm.bind(null,be)},useEffectEvent:function(e){var t=Mt(),l={impl:e};return t.memoizedState=l,function(){if((Ue&2)!==0)throw Error(r(440));return l.impl.apply(void 0,arguments)}}},Wr={readContext:St,use:Fs,useCallback:ud,useContext:St,useEffect:Zr,useImperativeHandle:sd,useInsertionEffect:nd,useLayoutEffect:ad,useMemo:rd,useReducer:Is,useRef:ed,useState:function(){return Is(Yl)},useDebugValue:Kr,useDeferredValue:function(e,t){var l=at();return od(l,Ge.memoizedState,e,t)},useTransition:function(){var e=Is(Yl)[0],t=at().memoizedState;return[typeof e=="boolean"?e:ji(e),t]},useSyncExternalStore:Hf,useId:hd,useHostTransitionStatus:Fr,useFormState:If,useActionState:If,useOptimistic:function(e,t){var l=at();return Vf(l,Ge,e,t)},useMemoCache:Yr,useCacheRefresh:pd};Wr.useEffectEvent=ld;var vd={readContext:St,use:Fs,useCallback:ud,useContext:St,useEffect:Zr,useImperativeHandle:sd,useInsertionEffect:nd,useLayoutEffect:ad,useMemo:rd,useReducer:Xr,useRef:ed,useState:function(){return Xr(Yl)},useDebugValue:Kr,useDeferredValue:function(e,t){var l=at();return Ge===null?$r(l,e,t):od(l,Ge.memoizedState,e,t)},useTransition:function(){var e=Xr(Yl)[0],t=at().memoizedState;return[typeof e=="boolean"?e:ji(e),t]},useSyncExternalStore:Hf,useId:hd,useHostTransitionStatus:Fr,useFormState:Pf,useActionState:Pf,useOptimistic:function(e,t){var l=at();return Ge!==null?Vf(l,Ge,e,t):(l.baseState=e,[e,l.queue.dispatch])},useMemoCache:Yr,useCacheRefresh:pd};vd.useEffectEvent=ld;function Pr(e,t,l,n){t=e.memoizedState,l=l(n,t),l=l==null?t:x({},t,l),e.memoizedState=l,e.lanes===0&&(e.updateQueue.baseState=l)}var eo={enqueueSetState:function(e,t,l){e=e._reactInternals;var n=It(),i=pn(n);i.payload=t,l!=null&&(i.callback=l),t=gn(e,i,n),t!==null&&(Xt(t,e,n),wi(t,e,n))},enqueueReplaceState:function(e,t,l){e=e._reactInternals;var n=It(),i=pn(n);i.tag=1,i.payload=t,l!=null&&(i.callback=l),t=gn(e,i,n),t!==null&&(Xt(t,e,n),wi(t,e,n))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var l=It(),n=pn(l);n.tag=2,t!=null&&(n.callback=t),t=gn(e,n,l),t!==null&&(Xt(t,e,l),wi(t,e,l))}};function Sd(e,t,l,n,i,s,f){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(n,s,f):t.prototype&&t.prototype.isPureReactComponent?!_i(l,n)||!_i(i,s):!0}function xd(e,t,l,n){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(l,n),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(l,n),t.state!==e&&eo.enqueueReplaceState(t,t.state,null)}function aa(e,t){var l=t;if("ref"in t){l={};for(var n in t)n!=="ref"&&(l[n]=t[n])}if(e=e.defaultProps){l===t&&(l=x({},l));for(var i in e)l[i]===void 0&&(l[i]=e[i])}return l}function Td(e){Ms(e)}function Ed(e){console.error(e)}function Ad(e){Ms(e)}function tu(e,t){try{var l=e.onUncaughtError;l(t.value,{componentStack:t.stack})}catch(n){setTimeout(function(){throw n})}}function _d(e,t,l){try{var n=e.onCaughtError;n(l.value,{componentStack:l.stack,errorBoundary:t.tag===1?t.stateNode:null})}catch(i){setTimeout(function(){throw i})}}function to(e,t,l){return l=pn(l),l.tag=3,l.payload={element:null},l.callback=function(){tu(e,t)},l}function Od(e){return e=pn(e),e.tag=3,e}function Rd(e,t,l,n){var i=l.type.getDerivedStateFromError;if(typeof i=="function"){var s=n.value;e.payload=function(){return i(s)},e.callback=function(){_d(t,l,n)}}var f=l.stateNode;f!==null&&typeof f.componentDidCatch=="function"&&(e.callback=function(){_d(t,l,n),typeof i!="function"&&(xn===null?xn=new Set([this]):xn.add(this));var p=n.stack;this.componentDidCatch(n.value,{componentStack:p!==null?p:""})})}function wm(e,t,l,n,i){if(l.flags|=32768,n!==null&&typeof n=="object"&&typeof n.then=="function"){if(t=l.alternate,t!==null&&Ua(t,l,i,!0),l=Kt.current,l!==null){switch(l.tag){case 31:case 13:return ul===null?hu():l.alternate===null&&lt===0&&(lt=3),l.flags&=-257,l.flags|=65536,l.lanes=i,n===Gs?l.flags|=16384:(t=l.updateQueue,t===null?l.updateQueue=new Set([n]):t.add(n),Ro(e,n,i)),!1;case 22:return l.flags|=65536,n===Gs?l.flags|=16384:(t=l.updateQueue,t===null?(t={transitions:null,markerInstances:null,retryQueue:new Set([n])},l.updateQueue=t):(l=t.retryQueue,l===null?t.retryQueue=new Set([n]):l.add(n)),Ro(e,n,i)),!1}throw Error(r(435,l.tag))}return Ro(e,n,i),hu(),!1}if(Oe)return t=Kt.current,t!==null?((t.flags&65536)===0&&(t.flags|=256),t.flags|=65536,t.lanes=i,n!==Sr&&(e=Error(r(422),{cause:n}),zi(nl(e,l)))):(n!==Sr&&(t=Error(r(423),{cause:n}),zi(nl(t,l))),e=e.current.alternate,e.flags|=65536,i&=-i,e.lanes|=i,n=nl(n,l),i=to(e.stateNode,n,i),Cr(e,i),lt!==4&&(lt=2)),!1;var s=Error(r(520),{cause:n});if(s=nl(s,l),Ki===null?Ki=[s]:Ki.push(s),lt!==4&&(lt=2),t===null)return!0;n=nl(n,l),l=t;do{switch(l.tag){case 3:return l.flags|=65536,e=i&-i,l.lanes|=e,e=to(l.stateNode,n,e),Cr(l,e),!1;case 1:if(t=l.type,s=l.stateNode,(l.flags&128)===0&&(typeof t.getDerivedStateFromError=="function"||s!==null&&typeof s.componentDidCatch=="function"&&(xn===null||!xn.has(s))))return l.flags|=65536,i&=-i,l.lanes|=i,i=Od(i),Rd(i,e,l,n),Cr(l,i),!1}l=l.return}while(l!==null);return!1}var lo=Error(r(461)),ut=!1;function xt(e,t,l,n){t.child=e===null?Cf(t,null,l,n):la(t,e.child,l,n)}function zd(e,t,l,n,i){l=l.render;var s=t.ref;if("ref"in n){var f={};for(var p in n)p!=="ref"&&(f[p]=n[p])}else f=n;return Wn(t),n=jr(e,t,l,f,s,i),p=Hr(),e!==null&&!ut?(Br(e,t,i),Gl(e,t,i)):(Oe&&p&&br(t),t.flags|=1,xt(e,t,n,i),t.child)}function Nd(e,t,l,n,i){if(e===null){var s=l.type;return typeof s=="function"&&!gr(s)&&s.defaultProps===void 0&&l.compare===null?(t.tag=15,t.type=s,Dd(e,t,s,n,i)):(e=Us(l.type,null,n,t,t.mode,i),e.ref=t.ref,e.return=t,t.child=e)}if(s=e.child,!co(e,i)){var f=s.memoizedProps;if(l=l.compare,l=l!==null?l:_i,l(f,n)&&e.ref===t.ref)return Gl(e,t,i)}return t.flags|=1,e=Ul(s,n),e.ref=t.ref,e.return=t,t.child=e}function Dd(e,t,l,n,i){if(e!==null){var s=e.memoizedProps;if(_i(s,n)&&e.ref===t.ref)if(ut=!1,t.pendingProps=n=s,co(e,i))(e.flags&131072)!==0&&(ut=!0);else return t.lanes=e.lanes,Gl(e,t,i)}return no(e,t,l,n,i)}function Cd(e,t,l,n){var i=n.children,s=e!==null?e.memoizedState:null;if(e===null&&t.stateNode===null&&(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),n.mode==="hidden"){if((t.flags&128)!==0){if(s=s!==null?s.baseLanes|l:l,e!==null){for(n=t.child=e.child,i=0;n!==null;)i=i|n.lanes|n.childLanes,n=n.sibling;n=i&~s}else n=0,t.child=null;return Md(e,t,s,l,n)}if((l&536870912)!==0)t.memoizedState={baseLanes:0,cachePool:null},e!==null&&qs(t,s!==null?s.cachePool:null),s!==null?kf(t,s):wr(),Lf(t);else return n=t.lanes=536870912,Md(e,t,s!==null?s.baseLanes|l:l,l,n)}else s!==null?(qs(t,s.cachePool),kf(t,s),yn(),t.memoizedState=null):(e!==null&&qs(t,null),wr(),yn());return xt(e,t,i,l),t.child}function qi(e,t){return e!==null&&e.tag===22||t.stateNode!==null||(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),t.sibling}function Md(e,t,l,n,i){var s=Rr();return s=s===null?null:{parent:it._currentValue,pool:s},t.memoizedState={baseLanes:l,cachePool:s},e!==null&&qs(t,null),wr(),Lf(t),e!==null&&Ua(e,t,n,!0),t.childLanes=i,null}function lu(e,t){return t=au({mode:t.mode,children:t.children},e.mode),t.ref=e.ref,e.child=t,t.return=e,t}function wd(e,t,l){return la(t,e.child,null,l),e=lu(t,t.pendingProps),e.flags|=2,$t(t),t.memoizedState=null,e}function km(e,t,l){var n=t.pendingProps,i=(t.flags&128)!==0;if(t.flags&=-129,e===null){if(Oe){if(n.mode==="hidden")return e=lu(t,n),t.lanes=536870912,qi(null,e);if(Lr(t),(e=Je)?(e=Qh(e,sl),e=e!==null&&e.data==="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:on!==null?{id:Al,overflow:_l}:null,retryLane:536870912,hydrationErrors:null},l=mf(e),l.return=t,t.child=l,vt=t,Je=null)):e=null,e===null)throw fn(t);return t.lanes=536870912,null}return lu(t,n)}var s=e.memoizedState;if(s!==null){var f=s.dehydrated;if(Lr(t),i)if(t.flags&256)t.flags&=-257,t=wd(e,t,l);else if(t.memoizedState!==null)t.child=e.child,t.flags|=128,t=null;else throw Error(r(558));else if(ut||Ua(e,t,l,!1),i=(l&e.childLanes)!==0,ut||i){if(n=Ke,n!==null&&(f=di(n,l),f!==0&&f!==s.retryLane))throw s.retryLane=f,$n(e,f),Xt(n,e,f),lo;hu(),t=wd(e,t,l)}else e=s.treeContext,Je=rl(f.nextSibling),vt=t,Oe=!0,cn=null,sl=!1,e!==null&&vf(t,e),t=lu(t,n),t.flags|=4096;return t}return e=Ul(e.child,{mode:n.mode,children:n.children}),e.ref=t.ref,t.child=e,e.return=t,e}function nu(e,t){var l=t.ref;if(l===null)e!==null&&e.ref!==null&&(t.flags|=4194816);else{if(typeof l!="function"&&typeof l!="object")throw Error(r(284));(e===null||e.ref!==l)&&(t.flags|=4194816)}}function no(e,t,l,n,i){return Wn(t),l=jr(e,t,l,n,void 0,i),n=Hr(),e!==null&&!ut?(Br(e,t,i),Gl(e,t,i)):(Oe&&n&&br(t),t.flags|=1,xt(e,t,l,i),t.child)}function kd(e,t,l,n,i,s){return Wn(t),t.updateQueue=null,l=jf(t,n,l,i),Uf(e),n=Hr(),e!==null&&!ut?(Br(e,t,s),Gl(e,t,s)):(Oe&&n&&br(t),t.flags|=1,xt(e,t,l,s),t.child)}function Ld(e,t,l,n,i){if(Wn(t),t.stateNode===null){var s=Ma,f=l.contextType;typeof f=="object"&&f!==null&&(s=St(f)),s=new l(n,s),t.memoizedState=s.state!==null&&s.state!==void 0?s.state:null,s.updater=eo,t.stateNode=s,s._reactInternals=t,s=t.stateNode,s.props=n,s.state=t.memoizedState,s.refs={},Nr(t),f=l.contextType,s.context=typeof f=="object"&&f!==null?St(f):Ma,s.state=t.memoizedState,f=l.getDerivedStateFromProps,typeof f=="function"&&(Pr(t,l,f,n),s.state=t.memoizedState),typeof l.getDerivedStateFromProps=="function"||typeof s.getSnapshotBeforeUpdate=="function"||typeof s.UNSAFE_componentWillMount!="function"&&typeof s.componentWillMount!="function"||(f=s.state,typeof s.componentWillMount=="function"&&s.componentWillMount(),typeof s.UNSAFE_componentWillMount=="function"&&s.UNSAFE_componentWillMount(),f!==s.state&&eo.enqueueReplaceState(s,s.state,null),Li(t,n,s,i),ki(),s.state=t.memoizedState),typeof s.componentDidMount=="function"&&(t.flags|=4194308),n=!0}else if(e===null){s=t.stateNode;var p=t.memoizedProps,v=aa(l,p);s.props=v;var R=s.context,k=l.contextType;f=Ma,typeof k=="object"&&k!==null&&(f=St(k));var U=l.getDerivedStateFromProps;k=typeof U=="function"||typeof s.getSnapshotBeforeUpdate=="function",p=t.pendingProps!==p,k||typeof s.UNSAFE_componentWillReceiveProps!="function"&&typeof s.componentWillReceiveProps!="function"||(p||R!==f)&&xd(t,s,n,f),hn=!1;var z=t.memoizedState;s.state=z,Li(t,n,s,i),ki(),R=t.memoizedState,p||z!==R||hn?(typeof U=="function"&&(Pr(t,l,U,n),R=t.memoizedState),(v=hn||Sd(t,l,v,n,z,R,f))?(k||typeof s.UNSAFE_componentWillMount!="function"&&typeof s.componentWillMount!="function"||(typeof s.componentWillMount=="function"&&s.componentWillMount(),typeof s.UNSAFE_componentWillMount=="function"&&s.UNSAFE_componentWillMount()),typeof s.componentDidMount=="function"&&(t.flags|=4194308)):(typeof s.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=n,t.memoizedState=R),s.props=n,s.state=R,s.context=f,n=v):(typeof s.componentDidMount=="function"&&(t.flags|=4194308),n=!1)}else{s=t.stateNode,Dr(e,t),f=t.memoizedProps,k=aa(l,f),s.props=k,U=t.pendingProps,z=s.context,R=l.contextType,v=Ma,typeof R=="object"&&R!==null&&(v=St(R)),p=l.getDerivedStateFromProps,(R=typeof p=="function"||typeof s.getSnapshotBeforeUpdate=="function")||typeof s.UNSAFE_componentWillReceiveProps!="function"&&typeof s.componentWillReceiveProps!="function"||(f!==U||z!==v)&&xd(t,s,n,v),hn=!1,z=t.memoizedState,s.state=z,Li(t,n,s,i),ki();var C=t.memoizedState;f!==U||z!==C||hn||e!==null&&e.dependencies!==null&&Hs(e.dependencies)?(typeof p=="function"&&(Pr(t,l,p,n),C=t.memoizedState),(k=hn||Sd(t,l,k,n,z,C,v)||e!==null&&e.dependencies!==null&&Hs(e.dependencies))?(R||typeof s.UNSAFE_componentWillUpdate!="function"&&typeof s.componentWillUpdate!="function"||(typeof s.componentWillUpdate=="function"&&s.componentWillUpdate(n,C,v),typeof s.UNSAFE_componentWillUpdate=="function"&&s.UNSAFE_componentWillUpdate(n,C,v)),typeof s.componentDidUpdate=="function"&&(t.flags|=4),typeof s.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof s.componentDidUpdate!="function"||f===e.memoizedProps&&z===e.memoizedState||(t.flags|=4),typeof s.getSnapshotBeforeUpdate!="function"||f===e.memoizedProps&&z===e.memoizedState||(t.flags|=1024),t.memoizedProps=n,t.memoizedState=C),s.props=n,s.state=C,s.context=v,n=k):(typeof s.componentDidUpdate!="function"||f===e.memoizedProps&&z===e.memoizedState||(t.flags|=4),typeof s.getSnapshotBeforeUpdate!="function"||f===e.memoizedProps&&z===e.memoizedState||(t.flags|=1024),n=!1)}return s=n,nu(e,t),n=(t.flags&128)!==0,s||n?(s=t.stateNode,l=n&&typeof l.getDerivedStateFromError!="function"?null:s.render(),t.flags|=1,e!==null&&n?(t.child=la(t,e.child,null,i),t.child=la(t,null,l,i)):xt(e,t,l,i),t.memoizedState=s.state,e=t.child):e=Gl(e,t,i),e}function Ud(e,t,l,n){return Fn(),t.flags|=256,xt(e,t,l,n),t.child}var ao={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function io(e){return{baseLanes:e,cachePool:_f()}}function so(e,t,l){return e=e!==null?e.childLanes&~l:0,t&&(e|=Ft),e}function jd(e,t,l){var n=t.pendingProps,i=!1,s=(t.flags&128)!==0,f;if((f=s)||(f=e!==null&&e.memoizedState===null?!1:(nt.current&2)!==0),f&&(i=!0,t.flags&=-129),f=(t.flags&32)!==0,t.flags&=-33,e===null){if(Oe){if(i?mn(t):yn(),(e=Je)?(e=Qh(e,sl),e=e!==null&&e.data!=="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:on!==null?{id:Al,overflow:_l}:null,retryLane:536870912,hydrationErrors:null},l=mf(e),l.return=t,t.child=l,vt=t,Je=null)):e=null,e===null)throw fn(t);return Xo(e)?t.lanes=32:t.lanes=536870912,null}var p=n.children;return n=n.fallback,i?(yn(),i=t.mode,p=au({mode:"hidden",children:p},i),n=Jn(n,i,l,null),p.return=t,n.return=t,p.sibling=n,t.child=p,n=t.child,n.memoizedState=io(l),n.childLanes=so(e,f,l),t.memoizedState=ao,qi(null,n)):(mn(t),uo(t,p))}var v=e.memoizedState;if(v!==null&&(p=v.dehydrated,p!==null)){if(s)t.flags&256?(mn(t),t.flags&=-257,t=ro(e,t,l)):t.memoizedState!==null?(yn(),t.child=e.child,t.flags|=128,t=null):(yn(),p=n.fallback,i=t.mode,n=au({mode:"visible",children:n.children},i),p=Jn(p,i,l,null),p.flags|=2,n.return=t,p.return=t,n.sibling=p,t.child=n,la(t,e.child,null,l),n=t.child,n.memoizedState=io(l),n.childLanes=so(e,f,l),t.memoizedState=ao,t=qi(null,n));else if(mn(t),Xo(p)){if(f=p.nextSibling&&p.nextSibling.dataset,f)var R=f.dgst;f=R,n=Error(r(419)),n.stack="",n.digest=f,zi({value:n,source:null,stack:null}),t=ro(e,t,l)}else if(ut||Ua(e,t,l,!1),f=(l&e.childLanes)!==0,ut||f){if(f=Ke,f!==null&&(n=di(f,l),n!==0&&n!==v.retryLane))throw v.retryLane=n,$n(e,n),Xt(f,e,n),lo;Go(p)||hu(),t=ro(e,t,l)}else Go(p)?(t.flags|=192,t.child=e.child,t=null):(e=v.treeContext,Je=rl(p.nextSibling),vt=t,Oe=!0,cn=null,sl=!1,e!==null&&vf(t,e),t=uo(t,n.children),t.flags|=4096);return t}return i?(yn(),p=n.fallback,i=t.mode,v=e.child,R=v.sibling,n=Ul(v,{mode:"hidden",children:n.children}),n.subtreeFlags=v.subtreeFlags&65011712,R!==null?p=Ul(R,p):(p=Jn(p,i,l,null),p.flags|=2),p.return=t,n.return=t,n.sibling=p,t.child=n,qi(null,n),n=t.child,p=e.child.memoizedState,p===null?p=io(l):(i=p.cachePool,i!==null?(v=it._currentValue,i=i.parent!==v?{parent:v,pool:v}:i):i=_f(),p={baseLanes:p.baseLanes|l,cachePool:i}),n.memoizedState=p,n.childLanes=so(e,f,l),t.memoizedState=ao,qi(e.child,n)):(mn(t),l=e.child,e=l.sibling,l=Ul(l,{mode:"visible",children:n.children}),l.return=t,l.sibling=null,e!==null&&(f=t.deletions,f===null?(t.deletions=[e],t.flags|=16):f.push(e)),t.child=l,t.memoizedState=null,l)}function uo(e,t){return t=au({mode:"visible",children:t},e.mode),t.return=e,e.child=t}function au(e,t){return e=Zt(22,e,null,t),e.lanes=0,e}function ro(e,t,l){return la(t,e.child,null,l),e=uo(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function Hd(e,t,l){e.lanes|=t;var n=e.alternate;n!==null&&(n.lanes|=t),Er(e.return,t,l)}function oo(e,t,l,n,i,s){var f=e.memoizedState;f===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:n,tail:l,tailMode:i,treeForkCount:s}:(f.isBackwards=t,f.rendering=null,f.renderingStartTime=0,f.last=n,f.tail=l,f.tailMode=i,f.treeForkCount=s)}function Bd(e,t,l){var n=t.pendingProps,i=n.revealOrder,s=n.tail;n=n.children;var f=nt.current,p=(f&2)!==0;if(p?(f=f&1|2,t.flags|=128):f&=1,G(nt,f),xt(e,t,n,l),n=Oe?Ri:0,!p&&e!==null&&(e.flags&128)!==0)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&Hd(e,l,t);else if(e.tag===19)Hd(e,l,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(i){case"forwards":for(l=t.child,i=null;l!==null;)e=l.alternate,e!==null&&Zs(e)===null&&(i=l),l=l.sibling;l=i,l===null?(i=t.child,t.child=null):(i=l.sibling,l.sibling=null),oo(t,!1,i,l,s,n);break;case"backwards":case"unstable_legacy-backwards":for(l=null,i=t.child,t.child=null;i!==null;){if(e=i.alternate,e!==null&&Zs(e)===null){t.child=i;break}e=i.sibling,i.sibling=l,l=i,i=e}oo(t,!0,l,null,s,n);break;case"together":oo(t,!1,null,null,void 0,n);break;default:t.memoizedState=null}return t.child}function Gl(e,t,l){if(e!==null&&(t.dependencies=e.dependencies),Sn|=t.lanes,(l&t.childLanes)===0)if(e!==null){if(Ua(e,t,l,!1),(l&t.childLanes)===0)return null}else return null;if(e!==null&&t.child!==e.child)throw Error(r(153));if(t.child!==null){for(e=t.child,l=Ul(e,e.pendingProps),t.child=l,l.return=t;e.sibling!==null;)e=e.sibling,l=l.sibling=Ul(e,e.pendingProps),l.return=t;l.sibling=null}return t.child}function co(e,t){return(e.lanes&t)!==0?!0:(e=e.dependencies,!!(e!==null&&Hs(e)))}function Lm(e,t,l){switch(t.tag){case 3:bt(t,t.stateNode.containerInfo),dn(t,it,e.memoizedState.cache),Fn();break;case 27:case 5:wn(t);break;case 4:bt(t,t.stateNode.containerInfo);break;case 10:dn(t,t.type,t.memoizedProps.value);break;case 31:if(t.memoizedState!==null)return t.flags|=128,Lr(t),null;break;case 13:var n=t.memoizedState;if(n!==null)return n.dehydrated!==null?(mn(t),t.flags|=128,null):(l&t.child.childLanes)!==0?jd(e,t,l):(mn(t),e=Gl(e,t,l),e!==null?e.sibling:null);mn(t);break;case 19:var i=(e.flags&128)!==0;if(n=(l&t.childLanes)!==0,n||(Ua(e,t,l,!1),n=(l&t.childLanes)!==0),i){if(n)return Bd(e,t,l);t.flags|=128}if(i=t.memoizedState,i!==null&&(i.rendering=null,i.tail=null,i.lastEffect=null),G(nt,nt.current),n)break;return null;case 22:return t.lanes=0,Cd(e,t,l,t.pendingProps);case 24:dn(t,it,e.memoizedState.cache)}return Gl(e,t,l)}function qd(e,t,l){if(e!==null)if(e.memoizedProps!==t.pendingProps)ut=!0;else{if(!co(e,l)&&(t.flags&128)===0)return ut=!1,Lm(e,t,l);ut=(e.flags&131072)!==0}else ut=!1,Oe&&(t.flags&1048576)!==0&&bf(t,Ri,t.index);switch(t.lanes=0,t.tag){case 16:e:{var n=t.pendingProps;if(e=ea(t.elementType),t.type=e,typeof e=="function")gr(e)?(n=aa(e,n),t.tag=1,t=Ld(null,t,e,n,l)):(t.tag=0,t=no(null,t,e,n,l));else{if(e!=null){var i=e.$$typeof;if(i===W){t.tag=11,t=zd(null,t,e,n,l);break e}else if(i===V){t.tag=14,t=Nd(null,t,e,n,l);break e}}throw t=se(e)||e,Error(r(306,t,""))}}return t;case 0:return no(e,t,t.type,t.pendingProps,l);case 1:return n=t.type,i=aa(n,t.pendingProps),Ld(e,t,n,i,l);case 3:e:{if(bt(t,t.stateNode.containerInfo),e===null)throw Error(r(387));n=t.pendingProps;var s=t.memoizedState;i=s.element,Dr(e,t),Li(t,n,null,l);var f=t.memoizedState;if(n=f.cache,dn(t,it,n),n!==s.cache&&Ar(t,[it],l,!0),ki(),n=f.element,s.isDehydrated)if(s={element:n,isDehydrated:!1,cache:f.cache},t.updateQueue.baseState=s,t.memoizedState=s,t.flags&256){t=Ud(e,t,n,l);break e}else if(n!==i){i=nl(Error(r(424)),t),zi(i),t=Ud(e,t,n,l);break e}else for(e=t.stateNode.containerInfo,e.nodeType===9?e=e.body:e=e.nodeName==="HTML"?e.ownerDocument.body:e,Je=rl(e.firstChild),vt=t,Oe=!0,cn=null,sl=!0,l=Cf(t,null,n,l),t.child=l;l;)l.flags=l.flags&-3|4096,l=l.sibling;else{if(Fn(),n===i){t=Gl(e,t,l);break e}xt(e,t,n,l)}t=t.child}return t;case 26:return nu(e,t),e===null?(l=Ih(t.type,null,t.pendingProps,null))?t.memoizedState=l:Oe||(l=t.type,e=t.pendingProps,n=Su(de.current).createElement(l),n[ct]=t,n[Rt]=e,Tt(n,l,e),Ze(n),t.stateNode=n):t.memoizedState=Ih(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return wn(t),e===null&&Oe&&(n=t.stateNode=$h(t.type,t.pendingProps,de.current),vt=t,sl=!0,i=Je,_n(t.type)?(Vo=i,Je=rl(n.firstChild)):Je=i),xt(e,t,t.pendingProps.children,l),nu(e,t),e===null&&(t.flags|=4194304),t.child;case 5:return e===null&&Oe&&((i=n=Je)&&(n=f0(n,t.type,t.pendingProps,sl),n!==null?(t.stateNode=n,vt=t,Je=rl(n.firstChild),sl=!1,i=!0):i=!1),i||fn(t)),wn(t),i=t.type,s=t.pendingProps,f=e!==null?e.memoizedProps:null,n=s.children,Bo(i,s)?n=null:f!==null&&Bo(i,f)&&(t.flags|=32),t.memoizedState!==null&&(i=jr(e,t,Om,null,null,l),ts._currentValue=i),nu(e,t),xt(e,t,n,l),t.child;case 6:return e===null&&Oe&&((e=l=Je)&&(l=d0(l,t.pendingProps,sl),l!==null?(t.stateNode=l,vt=t,Je=null,e=!0):e=!1),e||fn(t)),null;case 13:return jd(e,t,l);case 4:return bt(t,t.stateNode.containerInfo),n=t.pendingProps,e===null?t.child=la(t,null,n,l):xt(e,t,n,l),t.child;case 11:return zd(e,t,t.type,t.pendingProps,l);case 7:return xt(e,t,t.pendingProps,l),t.child;case 8:return xt(e,t,t.pendingProps.children,l),t.child;case 12:return xt(e,t,t.pendingProps.children,l),t.child;case 10:return n=t.pendingProps,dn(t,t.type,n.value),xt(e,t,n.children,l),t.child;case 9:return i=t.type._context,n=t.pendingProps.children,Wn(t),i=St(i),n=n(i),t.flags|=1,xt(e,t,n,l),t.child;case 14:return Nd(e,t,t.type,t.pendingProps,l);case 15:return Dd(e,t,t.type,t.pendingProps,l);case 19:return Bd(e,t,l);case 31:return km(e,t,l);case 22:return Cd(e,t,l,t.pendingProps);case 24:return Wn(t),n=St(it),e===null?(i=Rr(),i===null&&(i=Ke,s=_r(),i.pooledCache=s,s.refCount++,s!==null&&(i.pooledCacheLanes|=l),i=s),t.memoizedState={parent:n,cache:i},Nr(t),dn(t,it,i)):((e.lanes&l)!==0&&(Dr(e,t),Li(t,null,null,l),ki()),i=e.memoizedState,s=t.memoizedState,i.parent!==n?(i={parent:n,cache:n},t.memoizedState=i,t.lanes===0&&(t.memoizedState=t.updateQueue.baseState=i),dn(t,it,n)):(n=s.cache,dn(t,it,n),n!==i.cache&&Ar(t,[it],l,!0))),xt(e,t,t.pendingProps.children,l),t.child;case 29:throw t.pendingProps}throw Error(r(156,t.tag))}function Xl(e){e.flags|=4}function fo(e,t,l,n,i){if((t=(e.mode&32)!==0)&&(t=!1),t){if(e.flags|=16777216,(i&335544128)===i)if(e.stateNode.complete)e.flags|=8192;else if(hh())e.flags|=8192;else throw ta=Gs,zr}else e.flags&=-16777217}function Yd(e,t){if(t.type!=="stylesheet"||(t.state.loading&4)!==0)e.flags&=-16777217;else if(e.flags|=16777216,!lp(t))if(hh())e.flags|=8192;else throw ta=Gs,zr}function iu(e,t){t!==null&&(e.flags|=4),e.flags&16384&&(t=e.tag!==22?Bn():536870912,e.lanes|=t,$a|=t)}function Yi(e,t){if(!Oe)switch(e.tailMode){case"hidden":t=e.tail;for(var l=null;t!==null;)t.alternate!==null&&(l=t),t=t.sibling;l===null?e.tail=null:l.sibling=null;break;case"collapsed":l=e.tail;for(var n=null;l!==null;)l.alternate!==null&&(n=l),l=l.sibling;n===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:n.sibling=null}}function Fe(e){var t=e.alternate!==null&&e.alternate.child===e.child,l=0,n=0;if(t)for(var i=e.child;i!==null;)l|=i.lanes|i.childLanes,n|=i.subtreeFlags&65011712,n|=i.flags&65011712,i.return=e,i=i.sibling;else for(i=e.child;i!==null;)l|=i.lanes|i.childLanes,n|=i.subtreeFlags,n|=i.flags,i.return=e,i=i.sibling;return e.subtreeFlags|=n,e.childLanes=l,t}function Um(e,t,l){var n=t.pendingProps;switch(vr(t),t.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Fe(t),null;case 1:return Fe(t),null;case 3:return l=t.stateNode,n=null,e!==null&&(n=e.memoizedState.cache),t.memoizedState.cache!==n&&(t.flags|=2048),Bl(it),Ie(),l.pendingContext&&(l.context=l.pendingContext,l.pendingContext=null),(e===null||e.child===null)&&(La(t)?Xl(t):e===null||e.memoizedState.isDehydrated&&(t.flags&256)===0||(t.flags|=1024,xr())),Fe(t),null;case 26:var i=t.type,s=t.memoizedState;return e===null?(Xl(t),s!==null?(Fe(t),Yd(t,s)):(Fe(t),fo(t,i,null,n,l))):s?s!==e.memoizedState?(Xl(t),Fe(t),Yd(t,s)):(Fe(t),t.flags&=-16777217):(e=e.memoizedProps,e!==n&&Xl(t),Fe(t),fo(t,i,e,n,l)),null;case 27:if(kn(t),l=de.current,i=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==n&&Xl(t);else{if(!n){if(t.stateNode===null)throw Error(r(166));return Fe(t),null}e=Q.current,La(t)?Sf(t):(e=$h(i,n,l),t.stateNode=e,Xl(t))}return Fe(t),null;case 5:if(kn(t),i=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==n&&Xl(t);else{if(!n){if(t.stateNode===null)throw Error(r(166));return Fe(t),null}if(s=Q.current,La(t))Sf(t);else{var f=Su(de.current);switch(s){case 1:s=f.createElementNS("http://www.w3.org/2000/svg",i);break;case 2:s=f.createElementNS("http://www.w3.org/1998/Math/MathML",i);break;default:switch(i){case"svg":s=f.createElementNS("http://www.w3.org/2000/svg",i);break;case"math":s=f.createElementNS("http://www.w3.org/1998/Math/MathML",i);break;case"script":s=f.createElement("div"),s.innerHTML="<script><\/script>",s=s.removeChild(s.firstChild);break;case"select":s=typeof n.is=="string"?f.createElement("select",{is:n.is}):f.createElement("select"),n.multiple?s.multiple=!0:n.size&&(s.size=n.size);break;default:s=typeof n.is=="string"?f.createElement(i,{is:n.is}):f.createElement(i)}}s[ct]=t,s[Rt]=n;e:for(f=t.child;f!==null;){if(f.tag===5||f.tag===6)s.appendChild(f.stateNode);else if(f.tag!==4&&f.tag!==27&&f.child!==null){f.child.return=f,f=f.child;continue}if(f===t)break e;for(;f.sibling===null;){if(f.return===null||f.return===t)break e;f=f.return}f.sibling.return=f.return,f=f.sibling}t.stateNode=s;e:switch(Tt(s,i,n),i){case"button":case"input":case"select":case"textarea":n=!!n.autoFocus;break e;case"img":n=!0;break e;default:n=!1}n&&Xl(t)}}return Fe(t),fo(t,t.type,e===null?null:e.memoizedProps,t.pendingProps,l),null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==n&&Xl(t);else{if(typeof n!="string"&&t.stateNode===null)throw Error(r(166));if(e=de.current,La(t)){if(e=t.stateNode,l=t.memoizedProps,n=null,i=vt,i!==null)switch(i.tag){case 27:case 5:n=i.memoizedProps}e[ct]=t,e=!!(e.nodeValue===l||n!==null&&n.suppressHydrationWarning===!0||jh(e.nodeValue,l)),e||fn(t,!0)}else e=Su(e).createTextNode(n),e[ct]=t,t.stateNode=e}return Fe(t),null;case 31:if(l=t.memoizedState,e===null||e.memoizedState!==null){if(n=La(t),l!==null){if(e===null){if(!n)throw Error(r(318));if(e=t.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(r(557));e[ct]=t}else Fn(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;Fe(t),e=!1}else l=xr(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=l),e=!0;if(!e)return t.flags&256?($t(t),t):($t(t),null);if((t.flags&128)!==0)throw Error(r(558))}return Fe(t),null;case 13:if(n=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(i=La(t),n!==null&&n.dehydrated!==null){if(e===null){if(!i)throw Error(r(318));if(i=t.memoizedState,i=i!==null?i.dehydrated:null,!i)throw Error(r(317));i[ct]=t}else Fn(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;Fe(t),i=!1}else i=xr(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=i),i=!0;if(!i)return t.flags&256?($t(t),t):($t(t),null)}return $t(t),(t.flags&128)!==0?(t.lanes=l,t):(l=n!==null,e=e!==null&&e.memoizedState!==null,l&&(n=t.child,i=null,n.alternate!==null&&n.alternate.memoizedState!==null&&n.alternate.memoizedState.cachePool!==null&&(i=n.alternate.memoizedState.cachePool.pool),s=null,n.memoizedState!==null&&n.memoizedState.cachePool!==null&&(s=n.memoizedState.cachePool.pool),s!==i&&(n.flags|=2048)),l!==e&&l&&(t.child.flags|=8192),iu(t,t.updateQueue),Fe(t),null);case 4:return Ie(),e===null&&ko(t.stateNode.containerInfo),Fe(t),null;case 10:return Bl(t.type),Fe(t),null;case 19:if(D(nt),n=t.memoizedState,n===null)return Fe(t),null;if(i=(t.flags&128)!==0,s=n.rendering,s===null)if(i)Yi(n,!1);else{if(lt!==0||e!==null&&(e.flags&128)!==0)for(e=t.child;e!==null;){if(s=Zs(e),s!==null){for(t.flags|=128,Yi(n,!1),e=s.updateQueue,t.updateQueue=e,iu(t,e),t.subtreeFlags=0,e=l,l=t.child;l!==null;)gf(l,e),l=l.sibling;return G(nt,nt.current&1|2),Oe&&jl(t,n.treeForkCount),t.child}e=e.sibling}n.tail!==null&&Pe()>cu&&(t.flags|=128,i=!0,Yi(n,!1),t.lanes=4194304)}else{if(!i)if(e=Zs(s),e!==null){if(t.flags|=128,i=!0,e=e.updateQueue,t.updateQueue=e,iu(t,e),Yi(n,!0),n.tail===null&&n.tailMode==="hidden"&&!s.alternate&&!Oe)return Fe(t),null}else 2*Pe()-n.renderingStartTime>cu&&l!==536870912&&(t.flags|=128,i=!0,Yi(n,!1),t.lanes=4194304);n.isBackwards?(s.sibling=t.child,t.child=s):(e=n.last,e!==null?e.sibling=s:t.child=s,n.last=s)}return n.tail!==null?(e=n.tail,n.rendering=e,n.tail=e.sibling,n.renderingStartTime=Pe(),e.sibling=null,l=nt.current,G(nt,i?l&1|2:l&1),Oe&&jl(t,n.treeForkCount),e):(Fe(t),null);case 22:case 23:return $t(t),kr(),n=t.memoizedState!==null,e!==null?e.memoizedState!==null!==n&&(t.flags|=8192):n&&(t.flags|=8192),n?(l&536870912)!==0&&(t.flags&128)===0&&(Fe(t),t.subtreeFlags&6&&(t.flags|=8192)):Fe(t),l=t.updateQueue,l!==null&&iu(t,l.retryQueue),l=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(l=e.memoizedState.cachePool.pool),n=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(n=t.memoizedState.cachePool.pool),n!==l&&(t.flags|=2048),e!==null&&D(Pn),null;case 24:return l=null,e!==null&&(l=e.memoizedState.cache),t.memoizedState.cache!==l&&(t.flags|=2048),Bl(it),Fe(t),null;case 25:return null;case 30:return null}throw Error(r(156,t.tag))}function jm(e,t){switch(vr(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Bl(it),Ie(),e=t.flags,(e&65536)!==0&&(e&128)===0?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return kn(t),null;case 31:if(t.memoizedState!==null){if($t(t),t.alternate===null)throw Error(r(340));Fn()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 13:if($t(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(r(340));Fn()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return D(nt),null;case 4:return Ie(),null;case 10:return Bl(t.type),null;case 22:case 23:return $t(t),kr(),e!==null&&D(Pn),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return Bl(it),null;case 25:return null;default:return null}}function Gd(e,t){switch(vr(t),t.tag){case 3:Bl(it),Ie();break;case 26:case 27:case 5:kn(t);break;case 4:Ie();break;case 31:t.memoizedState!==null&&$t(t);break;case 13:$t(t);break;case 19:D(nt);break;case 10:Bl(t.type);break;case 22:case 23:$t(t),kr(),e!==null&&D(Pn);break;case 24:Bl(it)}}function Gi(e,t){try{var l=t.updateQueue,n=l!==null?l.lastEffect:null;if(n!==null){var i=n.next;l=i;do{if((l.tag&e)===e){n=void 0;var s=l.create,f=l.inst;n=s(),f.destroy=n}l=l.next}while(l!==i)}}catch(p){Be(t,t.return,p)}}function bn(e,t,l){try{var n=t.updateQueue,i=n!==null?n.lastEffect:null;if(i!==null){var s=i.next;n=s;do{if((n.tag&e)===e){var f=n.inst,p=f.destroy;if(p!==void 0){f.destroy=void 0,i=t;var v=l,R=p;try{R()}catch(k){Be(i,v,k)}}}n=n.next}while(n!==s)}}catch(k){Be(t,t.return,k)}}function Xd(e){var t=e.updateQueue;if(t!==null){var l=e.stateNode;try{wf(t,l)}catch(n){Be(e,e.return,n)}}}function Vd(e,t,l){l.props=aa(e.type,e.memoizedProps),l.state=e.memoizedState;try{l.componentWillUnmount()}catch(n){Be(e,t,n)}}function Xi(e,t){try{var l=e.ref;if(l!==null){switch(e.tag){case 26:case 27:case 5:var n=e.stateNode;break;case 30:n=e.stateNode;break;default:n=e.stateNode}typeof l=="function"?e.refCleanup=l(n):l.current=n}}catch(i){Be(e,t,i)}}function Ol(e,t){var l=e.ref,n=e.refCleanup;if(l!==null)if(typeof n=="function")try{n()}catch(i){Be(e,t,i)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof l=="function")try{l(null)}catch(i){Be(e,t,i)}else l.current=null}function Qd(e){var t=e.type,l=e.memoizedProps,n=e.stateNode;try{e:switch(t){case"button":case"input":case"select":case"textarea":l.autoFocus&&n.focus();break e;case"img":l.src?n.src=l.src:l.srcSet&&(n.srcset=l.srcSet)}}catch(i){Be(e,e.return,i)}}function ho(e,t,l){try{var n=e.stateNode;i0(n,e.type,l,t),n[Rt]=t}catch(i){Be(e,e.return,i)}}function Zd(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&_n(e.type)||e.tag===4}function po(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||Zd(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&&_n(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 go(e,t,l){var n=e.tag;if(n===5||n===6)e=e.stateNode,t?(l.nodeType===9?l.body:l.nodeName==="HTML"?l.ownerDocument.body:l).insertBefore(e,t):(t=l.nodeType===9?l.body:l.nodeName==="HTML"?l.ownerDocument.body:l,t.appendChild(e),l=l._reactRootContainer,l!=null||t.onclick!==null||(t.onclick=Ne));else if(n!==4&&(n===27&&_n(e.type)&&(l=e.stateNode,t=null),e=e.child,e!==null))for(go(e,t,l),e=e.sibling;e!==null;)go(e,t,l),e=e.sibling}function su(e,t,l){var n=e.tag;if(n===5||n===6)e=e.stateNode,t?l.insertBefore(e,t):l.appendChild(e);else if(n!==4&&(n===27&&_n(e.type)&&(l=e.stateNode),e=e.child,e!==null))for(su(e,t,l),e=e.sibling;e!==null;)su(e,t,l),e=e.sibling}function Kd(e){var t=e.stateNode,l=e.memoizedProps;try{for(var n=e.type,i=t.attributes;i.length;)t.removeAttributeNode(i[0]);Tt(t,n,l),t[ct]=e,t[Rt]=l}catch(s){Be(e,e.return,s)}}var Vl=!1,rt=!1,mo=!1,$d=typeof WeakSet=="function"?WeakSet:Set,gt=null;function Hm(e,t){if(e=e.containerInfo,jo=Ru,e=sf(e),rr(e)){if("selectionStart"in e)var l={start:e.selectionStart,end:e.selectionEnd};else e:{l=(l=e.ownerDocument)&&l.defaultView||window;var n=l.getSelection&&l.getSelection();if(n&&n.rangeCount!==0){l=n.anchorNode;var i=n.anchorOffset,s=n.focusNode;n=n.focusOffset;try{l.nodeType,s.nodeType}catch{l=null;break e}var f=0,p=-1,v=-1,R=0,k=0,U=e,z=null;t:for(;;){for(var C;U!==l||i!==0&&U.nodeType!==3||(p=f+i),U!==s||n!==0&&U.nodeType!==3||(v=f+n),U.nodeType===3&&(f+=U.nodeValue.length),(C=U.firstChild)!==null;)z=U,U=C;for(;;){if(U===e)break t;if(z===l&&++R===i&&(p=f),z===s&&++k===n&&(v=f),(C=U.nextSibling)!==null)break;U=z,z=U.parentNode}U=C}l=p===-1||v===-1?null:{start:p,end:v}}else l=null}l=l||{start:0,end:0}}else l=null;for(Ho={focusedElem:e,selectionRange:l},Ru=!1,gt=t;gt!==null;)if(t=gt,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,gt=e;else for(;gt!==null;){switch(t=gt,s=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(l=0;l<e.length;l++)i=e[l],i.ref.impl=i.nextImpl;break;case 11:case 15:break;case 1:if((e&1024)!==0&&s!==null){e=void 0,l=t,i=s.memoizedProps,s=s.memoizedState,n=l.stateNode;try{var K=aa(l.type,i);e=n.getSnapshotBeforeUpdate(K,s),n.__reactInternalSnapshotBeforeUpdate=e}catch(ue){Be(l,l.return,ue)}}break;case 3:if((e&1024)!==0){if(e=t.stateNode.containerInfo,l=e.nodeType,l===9)Yo(e);else if(l===1)switch(e.nodeName){case"HEAD":case"HTML":case"BODY":Yo(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(r(163))}if(e=t.sibling,e!==null){e.return=t.return,gt=e;break}gt=t.return}}function Jd(e,t,l){var n=l.flags;switch(l.tag){case 0:case 11:case 15:Zl(e,l),n&4&&Gi(5,l);break;case 1:if(Zl(e,l),n&4)if(e=l.stateNode,t===null)try{e.componentDidMount()}catch(f){Be(l,l.return,f)}else{var i=aa(l.type,t.memoizedProps);t=t.memoizedState;try{e.componentDidUpdate(i,t,e.__reactInternalSnapshotBeforeUpdate)}catch(f){Be(l,l.return,f)}}n&64&&Xd(l),n&512&&Xi(l,l.return);break;case 3:if(Zl(e,l),n&64&&(e=l.updateQueue,e!==null)){if(t=null,l.child!==null)switch(l.child.tag){case 27:case 5:t=l.child.stateNode;break;case 1:t=l.child.stateNode}try{wf(e,t)}catch(f){Be(l,l.return,f)}}break;case 27:t===null&&n&4&&Kd(l);case 26:case 5:Zl(e,l),t===null&&n&4&&Qd(l),n&512&&Xi(l,l.return);break;case 12:Zl(e,l);break;case 31:Zl(e,l),n&4&&Wd(e,l);break;case 13:Zl(e,l),n&4&&Pd(e,l),n&64&&(e=l.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(l=Km.bind(null,l),h0(e,l))));break;case 22:if(n=l.memoizedState!==null||Vl,!n){t=t!==null&&t.memoizedState!==null||rt,i=Vl;var s=rt;Vl=n,(rt=t)&&!s?Kl(e,l,(l.subtreeFlags&8772)!==0):Zl(e,l),Vl=i,rt=s}break;case 30:break;default:Zl(e,l)}}function Fd(e){var t=e.alternate;t!==null&&(e.alternate=null,Fd(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&Aa(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 We=null,Bt=!1;function Ql(e,t,l){for(l=l.child;l!==null;)Id(e,t,l),l=l.sibling}function Id(e,t,l){if(_t&&typeof _t.onCommitFiberUnmount=="function")try{_t.onCommitFiberUnmount(vl,l)}catch{}switch(l.tag){case 26:rt||Ol(l,t),Ql(e,t,l),l.memoizedState?l.memoizedState.count--:l.stateNode&&(l=l.stateNode,l.parentNode.removeChild(l));break;case 27:rt||Ol(l,t);var n=We,i=Bt;_n(l.type)&&(We=l.stateNode,Bt=!1),Ql(e,t,l),Wi(l.stateNode),We=n,Bt=i;break;case 5:rt||Ol(l,t);case 6:if(n=We,i=Bt,We=null,Ql(e,t,l),We=n,Bt=i,We!==null)if(Bt)try{(We.nodeType===9?We.body:We.nodeName==="HTML"?We.ownerDocument.body:We).removeChild(l.stateNode)}catch(s){Be(l,t,s)}else try{We.removeChild(l.stateNode)}catch(s){Be(l,t,s)}break;case 18:We!==null&&(Bt?(e=We,Xh(e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e,l.stateNode),li(e)):Xh(We,l.stateNode));break;case 4:n=We,i=Bt,We=l.stateNode.containerInfo,Bt=!0,Ql(e,t,l),We=n,Bt=i;break;case 0:case 11:case 14:case 15:bn(2,l,t),rt||bn(4,l,t),Ql(e,t,l);break;case 1:rt||(Ol(l,t),n=l.stateNode,typeof n.componentWillUnmount=="function"&&Vd(l,t,n)),Ql(e,t,l);break;case 21:Ql(e,t,l);break;case 22:rt=(n=rt)||l.memoizedState!==null,Ql(e,t,l),rt=n;break;default:Ql(e,t,l)}}function Wd(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null))){e=e.dehydrated;try{li(e)}catch(l){Be(t,t.return,l)}}}function Pd(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{li(e)}catch(l){Be(t,t.return,l)}}function Bm(e){switch(e.tag){case 31:case 13:case 19:var t=e.stateNode;return t===null&&(t=e.stateNode=new $d),t;case 22:return e=e.stateNode,t=e._retryCache,t===null&&(t=e._retryCache=new $d),t;default:throw Error(r(435,e.tag))}}function uu(e,t){var l=Bm(e);t.forEach(function(n){if(!l.has(n)){l.add(n);var i=$m.bind(null,e,n);n.then(i,i)}})}function qt(e,t){var l=t.deletions;if(l!==null)for(var n=0;n<l.length;n++){var i=l[n],s=e,f=t,p=f;e:for(;p!==null;){switch(p.tag){case 27:if(_n(p.type)){We=p.stateNode,Bt=!1;break e}break;case 5:We=p.stateNode,Bt=!1;break e;case 3:case 4:We=p.stateNode.containerInfo,Bt=!0;break e}p=p.return}if(We===null)throw Error(r(160));Id(s,f,i),We=null,Bt=!1,s=i.alternate,s!==null&&(s.return=null),i.return=null}if(t.subtreeFlags&13886)for(t=t.child;t!==null;)eh(t,e),t=t.sibling}var dl=null;function eh(e,t){var l=e.alternate,n=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:qt(t,e),Yt(e),n&4&&(bn(3,e,e.return),Gi(3,e),bn(5,e,e.return));break;case 1:qt(t,e),Yt(e),n&512&&(rt||l===null||Ol(l,l.return)),n&64&&Vl&&(e=e.updateQueue,e!==null&&(n=e.callbacks,n!==null&&(l=e.shared.hiddenCallbacks,e.shared.hiddenCallbacks=l===null?n:l.concat(n))));break;case 26:var i=dl;if(qt(t,e),Yt(e),n&512&&(rt||l===null||Ol(l,l.return)),n&4){var s=l!==null?l.memoizedState:null;if(n=e.memoizedState,l===null)if(n===null)if(e.stateNode===null){e:{n=e.type,l=e.memoizedProps,i=i.ownerDocument||i;t:switch(n){case"title":s=i.getElementsByTagName("title")[0],(!s||s[ln]||s[ct]||s.namespaceURI==="http://www.w3.org/2000/svg"||s.hasAttribute("itemprop"))&&(s=i.createElement(n),i.head.insertBefore(s,i.querySelector("head > title"))),Tt(s,n,l),s[ct]=e,Ze(s),n=s;break e;case"link":var f=ep("link","href",i).get(n+(l.href||""));if(f){for(var p=0;p<f.length;p++)if(s=f[p],s.getAttribute("href")===(l.href==null||l.href===""?null:l.href)&&s.getAttribute("rel")===(l.rel==null?null:l.rel)&&s.getAttribute("title")===(l.title==null?null:l.title)&&s.getAttribute("crossorigin")===(l.crossOrigin==null?null:l.crossOrigin)){f.splice(p,1);break t}}s=i.createElement(n),Tt(s,n,l),i.head.appendChild(s);break;case"meta":if(f=ep("meta","content",i).get(n+(l.content||""))){for(p=0;p<f.length;p++)if(s=f[p],s.getAttribute("content")===(l.content==null?null:""+l.content)&&s.getAttribute("name")===(l.name==null?null:l.name)&&s.getAttribute("property")===(l.property==null?null:l.property)&&s.getAttribute("http-equiv")===(l.httpEquiv==null?null:l.httpEquiv)&&s.getAttribute("charset")===(l.charSet==null?null:l.charSet)){f.splice(p,1);break t}}s=i.createElement(n),Tt(s,n,l),i.head.appendChild(s);break;default:throw Error(r(468,n))}s[ct]=e,Ze(s),n=s}e.stateNode=n}else tp(i,e.type,e.stateNode);else e.stateNode=Ph(i,n,e.memoizedProps);else s!==n?(s===null?l.stateNode!==null&&(l=l.stateNode,l.parentNode.removeChild(l)):s.count--,n===null?tp(i,e.type,e.stateNode):Ph(i,n,e.memoizedProps)):n===null&&e.stateNode!==null&&ho(e,e.memoizedProps,l.memoizedProps)}break;case 27:qt(t,e),Yt(e),n&512&&(rt||l===null||Ol(l,l.return)),l!==null&&n&4&&ho(e,e.memoizedProps,l.memoizedProps);break;case 5:if(qt(t,e),Yt(e),n&512&&(rt||l===null||Ol(l,l.return)),e.flags&32){i=e.stateNode;try{Y(i,"")}catch(K){Be(e,e.return,K)}}n&4&&e.stateNode!=null&&(i=e.memoizedProps,ho(e,i,l!==null?l.memoizedProps:i)),n&1024&&(mo=!0);break;case 6:if(qt(t,e),Yt(e),n&4){if(e.stateNode===null)throw Error(r(162));n=e.memoizedProps,l=e.stateNode;try{l.nodeValue=n}catch(K){Be(e,e.return,K)}}break;case 3:if(Eu=null,i=dl,dl=xu(t.containerInfo),qt(t,e),dl=i,Yt(e),n&4&&l!==null&&l.memoizedState.isDehydrated)try{li(t.containerInfo)}catch(K){Be(e,e.return,K)}mo&&(mo=!1,th(e));break;case 4:n=dl,dl=xu(e.stateNode.containerInfo),qt(t,e),Yt(e),dl=n;break;case 12:qt(t,e),Yt(e);break;case 31:qt(t,e),Yt(e),n&4&&(n=e.updateQueue,n!==null&&(e.updateQueue=null,uu(e,n)));break;case 13:qt(t,e),Yt(e),e.child.flags&8192&&e.memoizedState!==null!=(l!==null&&l.memoizedState!==null)&&(ou=Pe()),n&4&&(n=e.updateQueue,n!==null&&(e.updateQueue=null,uu(e,n)));break;case 22:i=e.memoizedState!==null;var v=l!==null&&l.memoizedState!==null,R=Vl,k=rt;if(Vl=R||i,rt=k||v,qt(t,e),rt=k,Vl=R,Yt(e),n&8192)e:for(t=e.stateNode,t._visibility=i?t._visibility&-2:t._visibility|1,i&&(l===null||v||Vl||rt||ia(e)),l=null,t=e;;){if(t.tag===5||t.tag===26){if(l===null){v=l=t;try{if(s=v.stateNode,i)f=s.style,typeof f.setProperty=="function"?f.setProperty("display","none","important"):f.display="none";else{p=v.stateNode;var U=v.memoizedProps.style,z=U!=null&&U.hasOwnProperty("display")?U.display:null;p.style.display=z==null||typeof z=="boolean"?"":(""+z).trim()}}catch(K){Be(v,v.return,K)}}}else if(t.tag===6){if(l===null){v=t;try{v.stateNode.nodeValue=i?"":v.memoizedProps}catch(K){Be(v,v.return,K)}}}else if(t.tag===18){if(l===null){v=t;try{var C=v.stateNode;i?Vh(C,!0):Vh(v.stateNode,!1)}catch(K){Be(v,v.return,K)}}}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;l===t&&(l=null),t=t.return}l===t&&(l=null),t.sibling.return=t.return,t=t.sibling}n&4&&(n=e.updateQueue,n!==null&&(l=n.retryQueue,l!==null&&(n.retryQueue=null,uu(e,l))));break;case 19:qt(t,e),Yt(e),n&4&&(n=e.updateQueue,n!==null&&(e.updateQueue=null,uu(e,n)));break;case 30:break;case 21:break;default:qt(t,e),Yt(e)}}function Yt(e){var t=e.flags;if(t&2){try{for(var l,n=e.return;n!==null;){if(Zd(n)){l=n;break}n=n.return}if(l==null)throw Error(r(160));switch(l.tag){case 27:var i=l.stateNode,s=po(e);su(e,s,i);break;case 5:var f=l.stateNode;l.flags&32&&(Y(f,""),l.flags&=-33);var p=po(e);su(e,p,f);break;case 3:case 4:var v=l.stateNode.containerInfo,R=po(e);go(e,R,v);break;default:throw Error(r(161))}}catch(k){Be(e,e.return,k)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function th(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var t=e;th(t),t.tag===5&&t.flags&1024&&t.stateNode.reset(),e=e.sibling}}function Zl(e,t){if(t.subtreeFlags&8772)for(t=t.child;t!==null;)Jd(e,t.alternate,t),t=t.sibling}function ia(e){for(e=e.child;e!==null;){var t=e;switch(t.tag){case 0:case 11:case 14:case 15:bn(4,t,t.return),ia(t);break;case 1:Ol(t,t.return);var l=t.stateNode;typeof l.componentWillUnmount=="function"&&Vd(t,t.return,l),ia(t);break;case 27:Wi(t.stateNode);case 26:case 5:Ol(t,t.return),ia(t);break;case 22:t.memoizedState===null&&ia(t);break;case 30:ia(t);break;default:ia(t)}e=e.sibling}}function Kl(e,t,l){for(l=l&&(t.subtreeFlags&8772)!==0,t=t.child;t!==null;){var n=t.alternate,i=e,s=t,f=s.flags;switch(s.tag){case 0:case 11:case 15:Kl(i,s,l),Gi(4,s);break;case 1:if(Kl(i,s,l),n=s,i=n.stateNode,typeof i.componentDidMount=="function")try{i.componentDidMount()}catch(R){Be(n,n.return,R)}if(n=s,i=n.updateQueue,i!==null){var p=n.stateNode;try{var v=i.shared.hiddenCallbacks;if(v!==null)for(i.shared.hiddenCallbacks=null,i=0;i<v.length;i++)Mf(v[i],p)}catch(R){Be(n,n.return,R)}}l&&f&64&&Xd(s),Xi(s,s.return);break;case 27:Kd(s);case 26:case 5:Kl(i,s,l),l&&n===null&&f&4&&Qd(s),Xi(s,s.return);break;case 12:Kl(i,s,l);break;case 31:Kl(i,s,l),l&&f&4&&Wd(i,s);break;case 13:Kl(i,s,l),l&&f&4&&Pd(i,s);break;case 22:s.memoizedState===null&&Kl(i,s,l),Xi(s,s.return);break;case 30:break;default:Kl(i,s,l)}t=t.sibling}}function yo(e,t){var l=null;e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(l=e.memoizedState.cachePool.pool),e=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(e=t.memoizedState.cachePool.pool),e!==l&&(e!=null&&e.refCount++,l!=null&&Ni(l))}function bo(e,t){e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&Ni(e))}function hl(e,t,l,n){if(t.subtreeFlags&10256)for(t=t.child;t!==null;)lh(e,t,l,n),t=t.sibling}function lh(e,t,l,n){var i=t.flags;switch(t.tag){case 0:case 11:case 15:hl(e,t,l,n),i&2048&&Gi(9,t);break;case 1:hl(e,t,l,n);break;case 3:hl(e,t,l,n),i&2048&&(e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&Ni(e)));break;case 12:if(i&2048){hl(e,t,l,n),e=t.stateNode;try{var s=t.memoizedProps,f=s.id,p=s.onPostCommit;typeof p=="function"&&p(f,t.alternate===null?"mount":"update",e.passiveEffectDuration,-0)}catch(v){Be(t,t.return,v)}}else hl(e,t,l,n);break;case 31:hl(e,t,l,n);break;case 13:hl(e,t,l,n);break;case 23:break;case 22:s=t.stateNode,f=t.alternate,t.memoizedState!==null?s._visibility&2?hl(e,t,l,n):Vi(e,t):s._visibility&2?hl(e,t,l,n):(s._visibility|=2,Qa(e,t,l,n,(t.subtreeFlags&10256)!==0||!1)),i&2048&&yo(f,t);break;case 24:hl(e,t,l,n),i&2048&&bo(t.alternate,t);break;default:hl(e,t,l,n)}}function Qa(e,t,l,n,i){for(i=i&&((t.subtreeFlags&10256)!==0||!1),t=t.child;t!==null;){var s=e,f=t,p=l,v=n,R=f.flags;switch(f.tag){case 0:case 11:case 15:Qa(s,f,p,v,i),Gi(8,f);break;case 23:break;case 22:var k=f.stateNode;f.memoizedState!==null?k._visibility&2?Qa(s,f,p,v,i):Vi(s,f):(k._visibility|=2,Qa(s,f,p,v,i)),i&&R&2048&&yo(f.alternate,f);break;case 24:Qa(s,f,p,v,i),i&&R&2048&&bo(f.alternate,f);break;default:Qa(s,f,p,v,i)}t=t.sibling}}function Vi(e,t){if(t.subtreeFlags&10256)for(t=t.child;t!==null;){var l=e,n=t,i=n.flags;switch(n.tag){case 22:Vi(l,n),i&2048&&yo(n.alternate,n);break;case 24:Vi(l,n),i&2048&&bo(n.alternate,n);break;default:Vi(l,n)}t=t.sibling}}var Qi=8192;function Za(e,t,l){if(e.subtreeFlags&Qi)for(e=e.child;e!==null;)nh(e,t,l),e=e.sibling}function nh(e,t,l){switch(e.tag){case 26:Za(e,t,l),e.flags&Qi&&e.memoizedState!==null&&_0(l,dl,e.memoizedState,e.memoizedProps);break;case 5:Za(e,t,l);break;case 3:case 4:var n=dl;dl=xu(e.stateNode.containerInfo),Za(e,t,l),dl=n;break;case 22:e.memoizedState===null&&(n=e.alternate,n!==null&&n.memoizedState!==null?(n=Qi,Qi=16777216,Za(e,t,l),Qi=n):Za(e,t,l));break;default:Za(e,t,l)}}function ah(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 Zi(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var l=0;l<t.length;l++){var n=t[l];gt=n,sh(n,e)}ah(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)ih(e),e=e.sibling}function ih(e){switch(e.tag){case 0:case 11:case 15:Zi(e),e.flags&2048&&bn(9,e,e.return);break;case 3:Zi(e);break;case 12:Zi(e);break;case 22:var t=e.stateNode;e.memoizedState!==null&&t._visibility&2&&(e.return===null||e.return.tag!==13)?(t._visibility&=-3,ru(e)):Zi(e);break;default:Zi(e)}}function ru(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var l=0;l<t.length;l++){var n=t[l];gt=n,sh(n,e)}ah(e)}for(e=e.child;e!==null;){switch(t=e,t.tag){case 0:case 11:case 15:bn(8,t,t.return),ru(t);break;case 22:l=t.stateNode,l._visibility&2&&(l._visibility&=-3,ru(t));break;default:ru(t)}e=e.sibling}}function sh(e,t){for(;gt!==null;){var l=gt;switch(l.tag){case 0:case 11:case 15:bn(8,l,t);break;case 23:case 22:if(l.memoizedState!==null&&l.memoizedState.cachePool!==null){var n=l.memoizedState.cachePool.pool;n!=null&&n.refCount++}break;case 24:Ni(l.memoizedState.cache)}if(n=l.child,n!==null)n.return=l,gt=n;else e:for(l=e;gt!==null;){n=gt;var i=n.sibling,s=n.return;if(Fd(n),n===l){gt=null;break e}if(i!==null){i.return=s,gt=i;break e}gt=s}}}var qm={getCacheForType:function(e){var t=St(it),l=t.data.get(e);return l===void 0&&(l=e(),t.data.set(e,l)),l},cacheSignal:function(){return St(it).controller.signal}},Ym=typeof WeakMap=="function"?WeakMap:Map,Ue=0,Ke=null,xe=null,Ee=0,He=0,Jt=null,vn=!1,Ka=!1,vo=!1,$l=0,lt=0,Sn=0,sa=0,So=0,Ft=0,$a=0,Ki=null,Gt=null,xo=!1,ou=0,uh=0,cu=1/0,fu=null,xn=null,ft=0,Tn=null,Ja=null,Jl=0,To=0,Eo=null,rh=null,$i=0,Ao=null;function It(){return(Ue&2)!==0&&Ee!==0?Ee&-Ee:N.T!==null?Do():Ta()}function oh(){if(Ft===0)if((Ee&536870912)===0||Oe){var e=Pl;Pl<<=1,(Pl&3932160)===0&&(Pl=262144),Ft=e}else Ft=536870912;return e=Kt.current,e!==null&&(e.flags|=32),Ft}function Xt(e,t,l){(e===Ke&&(He===2||He===9)||e.cancelPendingCommit!==null)&&(Fa(e,0),En(e,Ee,Ft,!1)),el(e,l),((Ue&2)===0||e!==Ke)&&(e===Ke&&((Ue&2)===0&&(sa|=l),lt===4&&En(e,Ee,Ft,!1)),Rl(e))}function ch(e,t,l){if((Ue&6)!==0)throw Error(r(327));var n=!l&&(t&127)===0&&(t&e.expiredLanes)===0||tn(e,t),i=n?Vm(e,t):Oo(e,t,!0),s=n;do{if(i===0){Ka&&!n&&En(e,t,0,!1);break}else{if(l=e.current.alternate,s&&!Gm(l)){i=Oo(e,t,!1),s=!1;continue}if(i===2){if(s=t,e.errorRecoveryDisabledLanes&s)var f=0;else f=e.pendingLanes&-536870913,f=f!==0?f:f&536870912?536870912:0;if(f!==0){t=f;e:{var p=e;i=Ki;var v=p.current.memoizedState.isDehydrated;if(v&&(Fa(p,f).flags|=256),f=Oo(p,f,!1),f!==2){if(vo&&!v){p.errorRecoveryDisabledLanes|=s,sa|=s,i=4;break e}s=Gt,Gt=i,s!==null&&(Gt===null?Gt=s:Gt.push.apply(Gt,s))}i=f}if(s=!1,i!==2)continue}}if(i===1){Fa(e,0),En(e,t,0,!0);break}e:{switch(n=e,s=i,s){case 0:case 1:throw Error(r(345));case 4:if((t&4194048)!==t)break;case 6:En(n,t,Ft,!vn);break e;case 2:Gt=null;break;case 3:case 5:break;default:throw Error(r(329))}if((t&62914560)===t&&(i=ou+300-Pe(),10<i)){if(En(n,t,Ft,!vn),en(n,0,!0)!==0)break e;Jl=t,n.timeoutHandle=Yh(fh.bind(null,n,l,Gt,fu,xo,t,Ft,sa,$a,vn,s,"Throttled",-0,0),i);break e}fh(n,l,Gt,fu,xo,t,Ft,sa,$a,vn,s,null,-0,0)}}break}while(!0);Rl(e)}function fh(e,t,l,n,i,s,f,p,v,R,k,U,z,C){if(e.timeoutHandle=-1,U=t.subtreeFlags,U&8192||(U&16785408)===16785408){U={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:Ne},nh(t,s,U);var K=(s&62914560)===s?ou-Pe():(s&4194048)===s?uh-Pe():0;if(K=O0(U,K),K!==null){Jl=s,e.cancelPendingCommit=K(vh.bind(null,e,t,s,l,n,i,f,p,v,k,U,null,z,C)),En(e,s,f,!R);return}}vh(e,t,s,l,n,i,f,p,v)}function Gm(e){for(var t=e;;){var l=t.tag;if((l===0||l===11||l===15)&&t.flags&16384&&(l=t.updateQueue,l!==null&&(l=l.stores,l!==null)))for(var n=0;n<l.length;n++){var i=l[n],s=i.getSnapshot;i=i.value;try{if(!Qt(s(),i))return!1}catch{return!1}}if(l=t.child,t.subtreeFlags&16384&&l!==null)l.return=t,t=l;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 En(e,t,l,n){t&=~So,t&=~sa,e.suspendedLanes|=t,e.pingedLanes&=~t,n&&(e.warmLanes|=t),n=e.expirationTimes;for(var i=t;0<i;){var s=31-Ot(i),f=1<<s;n[s]=-1,i&=~f}l!==0&&Sa(e,l,t)}function du(){return(Ue&6)===0?(Ji(0),!1):!0}function _o(){if(xe!==null){if(He===0)var e=xe.return;else e=xe,Hl=In=null,qr(e),qa=null,Ci=0,e=xe;for(;e!==null;)Gd(e.alternate,e),e=e.return;xe=null}}function Fa(e,t){var l=e.timeoutHandle;l!==-1&&(e.timeoutHandle=-1,r0(l)),l=e.cancelPendingCommit,l!==null&&(e.cancelPendingCommit=null,l()),Jl=0,_o(),Ke=e,xe=l=Ul(e.current,null),Ee=t,He=0,Jt=null,vn=!1,Ka=tn(e,t),vo=!1,$a=Ft=So=sa=Sn=lt=0,Gt=Ki=null,xo=!1,(t&8)!==0&&(t|=t&32);var n=e.entangledLanes;if(n!==0)for(e=e.entanglements,n&=t;0<n;){var i=31-Ot(n),s=1<<i;t|=e[i],n&=~s}return $l=t,ws(),l}function dh(e,t){be=null,N.H=Bi,t===Ba||t===Ys?(t=zf(),He=3):t===zr?(t=zf(),He=4):He=t===lo?8:t!==null&&typeof t=="object"&&typeof t.then=="function"?6:1,Jt=t,xe===null&&(lt=1,tu(e,nl(t,e.current)))}function hh(){var e=Kt.current;return e===null?!0:(Ee&4194048)===Ee?ul===null:(Ee&62914560)===Ee||(Ee&536870912)!==0?e===ul:!1}function ph(){var e=N.H;return N.H=Bi,e===null?Bi:e}function gh(){var e=N.A;return N.A=qm,e}function hu(){lt=4,vn||(Ee&4194048)!==Ee&&Kt.current!==null||(Ka=!0),(Sn&134217727)===0&&(sa&134217727)===0||Ke===null||En(Ke,Ee,Ft,!1)}function Oo(e,t,l){var n=Ue;Ue|=2;var i=ph(),s=gh();(Ke!==e||Ee!==t)&&(fu=null,Fa(e,t)),t=!1;var f=lt;e:do try{if(He!==0&&xe!==null){var p=xe,v=Jt;switch(He){case 8:_o(),f=6;break e;case 3:case 2:case 9:case 6:Kt.current===null&&(t=!0);var R=He;if(He=0,Jt=null,Ia(e,p,v,R),l&&Ka){f=0;break e}break;default:R=He,He=0,Jt=null,Ia(e,p,v,R)}}Xm(),f=lt;break}catch(k){dh(e,k)}while(!0);return t&&e.shellSuspendCounter++,Hl=In=null,Ue=n,N.H=i,N.A=s,xe===null&&(Ke=null,Ee=0,ws()),f}function Xm(){for(;xe!==null;)mh(xe)}function Vm(e,t){var l=Ue;Ue|=2;var n=ph(),i=gh();Ke!==e||Ee!==t?(fu=null,cu=Pe()+500,Fa(e,t)):Ka=tn(e,t);e:do try{if(He!==0&&xe!==null){t=xe;var s=Jt;t:switch(He){case 1:He=0,Jt=null,Ia(e,t,s,1);break;case 2:case 9:if(Of(s)){He=0,Jt=null,yh(t);break}t=function(){He!==2&&He!==9||Ke!==e||(He=7),Rl(e)},s.then(t,t);break e;case 3:He=7;break e;case 4:He=5;break e;case 7:Of(s)?(He=0,Jt=null,yh(t)):(He=0,Jt=null,Ia(e,t,s,7));break;case 5:var f=null;switch(xe.tag){case 26:f=xe.memoizedState;case 5:case 27:var p=xe;if(f?lp(f):p.stateNode.complete){He=0,Jt=null;var v=p.sibling;if(v!==null)xe=v;else{var R=p.return;R!==null?(xe=R,pu(R)):xe=null}break t}}He=0,Jt=null,Ia(e,t,s,5);break;case 6:He=0,Jt=null,Ia(e,t,s,6);break;case 8:_o(),lt=6;break e;default:throw Error(r(462))}}Qm();break}catch(k){dh(e,k)}while(!0);return Hl=In=null,N.H=n,N.A=i,Ue=l,xe!==null?0:(Ke=null,Ee=0,ws(),lt)}function Qm(){for(;xe!==null&&!vs();)mh(xe)}function mh(e){var t=qd(e.alternate,e,$l);e.memoizedProps=e.pendingProps,t===null?pu(e):xe=t}function yh(e){var t=e,l=t.alternate;switch(t.tag){case 15:case 0:t=kd(l,t,t.pendingProps,t.type,void 0,Ee);break;case 11:t=kd(l,t,t.pendingProps,t.type.render,t.ref,Ee);break;case 5:qr(t);default:Gd(l,t),t=xe=gf(t,$l),t=qd(l,t,$l)}e.memoizedProps=e.pendingProps,t===null?pu(e):xe=t}function Ia(e,t,l,n){Hl=In=null,qr(t),qa=null,Ci=0;var i=t.return;try{if(wm(e,i,t,l,Ee)){lt=1,tu(e,nl(l,e.current)),xe=null;return}}catch(s){if(i!==null)throw xe=i,s;lt=1,tu(e,nl(l,e.current)),xe=null;return}t.flags&32768?(Oe||n===1?e=!0:Ka||(Ee&536870912)!==0?e=!1:(vn=e=!0,(n===2||n===9||n===3||n===6)&&(n=Kt.current,n!==null&&n.tag===13&&(n.flags|=16384))),bh(t,e)):pu(t)}function pu(e){var t=e;do{if((t.flags&32768)!==0){bh(t,vn);return}e=t.return;var l=Um(t.alternate,t,$l);if(l!==null){xe=l;return}if(t=t.sibling,t!==null){xe=t;return}xe=t=e}while(t!==null);lt===0&&(lt=5)}function bh(e,t){do{var l=jm(e.alternate,e);if(l!==null){l.flags&=32767,xe=l;return}if(l=e.return,l!==null&&(l.flags|=32768,l.subtreeFlags=0,l.deletions=null),!t&&(e=e.sibling,e!==null)){xe=e;return}xe=e=l}while(e!==null);lt=6,xe=null}function vh(e,t,l,n,i,s,f,p,v){e.cancelPendingCommit=null;do gu();while(ft!==0);if((Ue&6)!==0)throw Error(r(327));if(t!==null){if(t===e.current)throw Error(r(177));if(s=t.lanes|t.childLanes,s|=hr,fi(e,l,s,f,p,v),e===Ke&&(xe=Ke=null,Ee=0),Ja=t,Tn=e,Jl=l,To=s,Eo=i,rh=n,(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?(e.callbackNode=null,e.callbackPriority=0,Jm(Cl,function(){return Ah(),null})):(e.callbackNode=null,e.callbackPriority=0),n=(t.flags&13878)!==0,(t.subtreeFlags&13878)!==0||n){n=N.T,N.T=null,i=q.p,q.p=2,f=Ue,Ue|=4;try{Hm(e,t,l)}finally{Ue=f,q.p=i,N.T=n}}ft=1,Sh(),xh(),Th()}}function Sh(){if(ft===1){ft=0;var e=Tn,t=Ja,l=(t.flags&13878)!==0;if((t.subtreeFlags&13878)!==0||l){l=N.T,N.T=null;var n=q.p;q.p=2;var i=Ue;Ue|=4;try{eh(t,e);var s=Ho,f=sf(e.containerInfo),p=s.focusedElem,v=s.selectionRange;if(f!==p&&p&&p.ownerDocument&&af(p.ownerDocument.documentElement,p)){if(v!==null&&rr(p)){var R=v.start,k=v.end;if(k===void 0&&(k=R),"selectionStart"in p)p.selectionStart=R,p.selectionEnd=Math.min(k,p.value.length);else{var U=p.ownerDocument||document,z=U&&U.defaultView||window;if(z.getSelection){var C=z.getSelection(),K=p.textContent.length,ue=Math.min(v.start,K),Ve=v.end===void 0?ue:Math.min(v.end,K);!C.extend&&ue>Ve&&(f=Ve,Ve=ue,ue=f);var A=nf(p,ue),T=nf(p,Ve);if(A&&T&&(C.rangeCount!==1||C.anchorNode!==A.node||C.anchorOffset!==A.offset||C.focusNode!==T.node||C.focusOffset!==T.offset)){var O=U.createRange();O.setStart(A.node,A.offset),C.removeAllRanges(),ue>Ve?(C.addRange(O),C.extend(T.node,T.offset)):(O.setEnd(T.node,T.offset),C.addRange(O))}}}}for(U=[],C=p;C=C.parentNode;)C.nodeType===1&&U.push({element:C,left:C.scrollLeft,top:C.scrollTop});for(typeof p.focus=="function"&&p.focus(),p=0;p<U.length;p++){var L=U[p];L.element.scrollLeft=L.left,L.element.scrollTop=L.top}}Ru=!!jo,Ho=jo=null}finally{Ue=i,q.p=n,N.T=l}}e.current=t,ft=2}}function xh(){if(ft===2){ft=0;var e=Tn,t=Ja,l=(t.flags&8772)!==0;if((t.subtreeFlags&8772)!==0||l){l=N.T,N.T=null;var n=q.p;q.p=2;var i=Ue;Ue|=4;try{Jd(e,t.alternate,t)}finally{Ue=i,q.p=n,N.T=l}}ft=3}}function Th(){if(ft===4||ft===3){ft=0,Ss();var e=Tn,t=Ja,l=Jl,n=rh;(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?ft=5:(ft=0,Ja=Tn=null,Eh(e,e.pendingLanes));var i=e.pendingLanes;if(i===0&&(xn=null),xa(l),t=t.stateNode,_t&&typeof _t.onCommitFiberRoot=="function")try{_t.onCommitFiberRoot(vl,t,void 0,(t.current.flags&128)===128)}catch{}if(n!==null){t=N.T,i=q.p,q.p=2,N.T=null;try{for(var s=e.onRecoverableError,f=0;f<n.length;f++){var p=n[f];s(p.value,{componentStack:p.stack})}}finally{N.T=t,q.p=i}}(Jl&3)!==0&&gu(),Rl(e),i=e.pendingLanes,(l&261930)!==0&&(i&42)!==0?e===Ao?$i++:($i=0,Ao=e):$i=0,Ji(0)}}function Eh(e,t){(e.pooledCacheLanes&=t)===0&&(t=e.pooledCache,t!=null&&(e.pooledCache=null,Ni(t)))}function gu(){return Sh(),xh(),Th(),Ah()}function Ah(){if(ft!==5)return!1;var e=Tn,t=To;To=0;var l=xa(Jl),n=N.T,i=q.p;try{q.p=32>l?32:l,N.T=null,l=Eo,Eo=null;var s=Tn,f=Jl;if(ft=0,Ja=Tn=null,Jl=0,(Ue&6)!==0)throw Error(r(331));var p=Ue;if(Ue|=4,ih(s.current),lh(s,s.current,f,l),Ue=p,Ji(0,!1),_t&&typeof _t.onPostCommitFiberRoot=="function")try{_t.onPostCommitFiberRoot(vl,s)}catch{}return!0}finally{q.p=i,N.T=n,Eh(e,t)}}function _h(e,t,l){t=nl(l,t),t=to(e.stateNode,t,2),e=gn(e,t,2),e!==null&&(el(e,2),Rl(e))}function Be(e,t,l){if(e.tag===3)_h(e,e,l);else for(;t!==null;){if(t.tag===3){_h(t,e,l);break}else if(t.tag===1){var n=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof n.componentDidCatch=="function"&&(xn===null||!xn.has(n))){e=nl(l,e),l=Od(2),n=gn(t,l,2),n!==null&&(Rd(l,n,t,e),el(n,2),Rl(n));break}}t=t.return}}function Ro(e,t,l){var n=e.pingCache;if(n===null){n=e.pingCache=new Ym;var i=new Set;n.set(t,i)}else i=n.get(t),i===void 0&&(i=new Set,n.set(t,i));i.has(l)||(vo=!0,i.add(l),e=Zm.bind(null,e,t,l),t.then(e,e))}function Zm(e,t,l){var n=e.pingCache;n!==null&&n.delete(t),e.pingedLanes|=e.suspendedLanes&l,e.warmLanes&=~l,Ke===e&&(Ee&l)===l&&(lt===4||lt===3&&(Ee&62914560)===Ee&&300>Pe()-ou?(Ue&2)===0&&Fa(e,0):So|=l,$a===Ee&&($a=0)),Rl(e)}function Oh(e,t){t===0&&(t=Bn()),e=$n(e,t),e!==null&&(el(e,t),Rl(e))}function Km(e){var t=e.memoizedState,l=0;t!==null&&(l=t.retryLane),Oh(e,l)}function $m(e,t){var l=0;switch(e.tag){case 31:case 13:var n=e.stateNode,i=e.memoizedState;i!==null&&(l=i.retryLane);break;case 19:n=e.stateNode;break;case 22:n=e.stateNode._retryCache;break;default:throw Error(r(314))}n!==null&&n.delete(t),Oh(e,l)}function Jm(e,t){return ha(e,t)}var mu=null,Wa=null,zo=!1,yu=!1,No=!1,An=0;function Rl(e){e!==Wa&&e.next===null&&(Wa===null?mu=Wa=e:Wa=Wa.next=e),yu=!0,zo||(zo=!0,Im())}function Ji(e,t){if(!No&&yu){No=!0;do for(var l=!1,n=mu;n!==null;){if(e!==0){var i=n.pendingLanes;if(i===0)var s=0;else{var f=n.suspendedLanes,p=n.pingedLanes;s=(1<<31-Ot(42|e)+1)-1,s&=i&~(f&~p),s=s&201326741?s&201326741|1:s?s|2:0}s!==0&&(l=!0,Dh(n,s))}else s=Ee,s=en(n,n===Ke?s:0,n.cancelPendingCommit!==null||n.timeoutHandle!==-1),(s&3)===0||tn(n,s)||(l=!0,Dh(n,s));n=n.next}while(l);No=!1}}function Fm(){Rh()}function Rh(){yu=zo=!1;var e=0;An!==0&&u0()&&(e=An);for(var t=Pe(),l=null,n=mu;n!==null;){var i=n.next,s=zh(n,t);s===0?(n.next=null,l===null?mu=i:l.next=i,i===null&&(Wa=l)):(l=n,(e!==0||(s&3)!==0)&&(yu=!0)),n=i}ft!==0&&ft!==5||Ji(e),An!==0&&(An=0)}function zh(e,t){for(var l=e.suspendedLanes,n=e.pingedLanes,i=e.expirationTimes,s=e.pendingLanes&-62914561;0<s;){var f=31-Ot(s),p=1<<f,v=i[f];v===-1?((p&l)===0||(p&n)!==0)&&(i[f]=va(p,t)):v<=t&&(e.expiredLanes|=p),s&=~p}if(t=Ke,l=Ee,l=en(e,e===t?l:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),n=e.callbackNode,l===0||e===t&&(He===2||He===9)||e.cancelPendingCommit!==null)return n!==null&&n!==null&&jn(n),e.callbackNode=null,e.callbackPriority=0;if((l&3)===0||tn(e,l)){if(t=l&-l,t===e.callbackPriority)return t;switch(n!==null&&jn(n),xa(l)){case 2:case 8:l=pa;break;case 32:l=Cl;break;case 268435456:l=ma;break;default:l=Cl}return n=Nh.bind(null,e),l=ha(l,n),e.callbackPriority=t,e.callbackNode=l,t}return n!==null&&n!==null&&jn(n),e.callbackPriority=2,e.callbackNode=null,2}function Nh(e,t){if(ft!==0&&ft!==5)return e.callbackNode=null,e.callbackPriority=0,null;var l=e.callbackNode;if(gu()&&e.callbackNode!==l)return null;var n=Ee;return n=en(e,e===Ke?n:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),n===0?null:(ch(e,n,t),zh(e,Pe()),e.callbackNode!=null&&e.callbackNode===l?Nh.bind(null,e):null)}function Dh(e,t){if(gu())return null;ch(e,t,!0)}function Im(){o0(function(){(Ue&6)!==0?ha(bl,Fm):Rh()})}function Do(){if(An===0){var e=ja;e===0&&(e=Ct,Ct<<=1,(Ct&261888)===0&&(Ct=256)),An=e}return An}function Ch(e){return e==null||typeof e=="symbol"||typeof e=="boolean"?null:typeof e=="function"?e:ze(""+e)}function Mh(e,t){var l=t.ownerDocument.createElement("input");return l.name=t.name,l.value=t.value,e.id&&l.setAttribute("form",e.id),t.parentNode.insertBefore(l,t),e=new FormData(e),l.parentNode.removeChild(l),e}function Wm(e,t,l,n,i){if(t==="submit"&&l&&l.stateNode===i){var s=Ch((i[Rt]||null).action),f=n.submitter;f&&(t=(t=f[Rt]||null)?Ch(t.formAction):f.getAttribute("formAction"),t!==null&&(s=t,f=null));var p=new Ns("action","action",null,n,i);e.push({event:p,listeners:[{instance:null,listener:function(){if(n.defaultPrevented){if(An!==0){var v=f?Mh(i,f):new FormData(i);Jr(l,{pending:!0,data:v,method:i.method,action:s},null,v)}}else typeof s=="function"&&(p.preventDefault(),v=f?Mh(i,f):new FormData(i),Jr(l,{pending:!0,data:v,method:i.method,action:s},s,v))},currentTarget:i}]})}}for(var Co=0;Co<dr.length;Co++){var Mo=dr[Co],Pm=Mo.toLowerCase(),e0=Mo[0].toUpperCase()+Mo.slice(1);fl(Pm,"on"+e0)}fl(of,"onAnimationEnd"),fl(cf,"onAnimationIteration"),fl(ff,"onAnimationStart"),fl("dblclick","onDoubleClick"),fl("focusin","onFocus"),fl("focusout","onBlur"),fl(mm,"onTransitionRun"),fl(ym,"onTransitionStart"),fl(bm,"onTransitionCancel"),fl(df,"onTransitionEnd"),tl("onMouseEnter",["mouseout","mouseover"]),tl("onMouseLeave",["mouseout","mouseover"]),tl("onPointerEnter",["pointerout","pointerover"]),tl("onPointerLeave",["pointerout","pointerover"]),Ml("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),Ml("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),Ml("onBeforeInput",["compositionend","keypress","textInput","paste"]),Ml("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),Ml("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),Ml("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Fi="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(" "),t0=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(Fi));function wh(e,t){t=(t&4)!==0;for(var l=0;l<e.length;l++){var n=e[l],i=n.event;n=n.listeners;e:{var s=void 0;if(t)for(var f=n.length-1;0<=f;f--){var p=n[f],v=p.instance,R=p.currentTarget;if(p=p.listener,v!==s&&i.isPropagationStopped())break e;s=p,i.currentTarget=R;try{s(i)}catch(k){Ms(k)}i.currentTarget=null,s=v}else for(f=0;f<n.length;f++){if(p=n[f],v=p.instance,R=p.currentTarget,p=p.listener,v!==s&&i.isPropagationStopped())break e;s=p,i.currentTarget=R;try{s(i)}catch(k){Ms(k)}i.currentTarget=null,s=v}}}}function Te(e,t){var l=t[xl];l===void 0&&(l=t[xl]=new Set);var n=e+"__bubble";l.has(n)||(kh(t,e,2,!1),l.add(n))}function wo(e,t,l){var n=0;t&&(n|=4),kh(l,e,n,t)}var bu="_reactListening"+Math.random().toString(36).slice(2);function ko(e){if(!e[bu]){e[bu]=!0,Gn.forEach(function(l){l!=="selectionchange"&&(t0.has(l)||wo(l,!1,e),wo(l,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[bu]||(t[bu]=!0,wo("selectionchange",!1,t))}}function kh(e,t,l,n){switch(op(t)){case 2:var i=N0;break;case 8:i=D0;break;default:i=Jo}l=i.bind(null,t,l,e),i=void 0,!Pu||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(i=!0),n?i!==void 0?e.addEventListener(t,l,{capture:!0,passive:i}):e.addEventListener(t,l,!0):i!==void 0?e.addEventListener(t,l,{passive:i}):e.addEventListener(t,l,!1)}function Lo(e,t,l,n,i){var s=n;if((t&1)===0&&(t&2)===0&&n!==null)e:for(;;){if(n===null)return;var f=n.tag;if(f===3||f===4){var p=n.stateNode.containerInfo;if(p===i)break;if(f===4)for(f=n.return;f!==null;){var v=f.tag;if((v===3||v===4)&&f.stateNode.containerInfo===i)return;f=f.return}for(;p!==null;){if(f=nn(p),f===null)return;if(v=f.tag,v===5||v===6||v===26||v===27){n=s=f;continue e}p=p.parentNode}}n=n.return}Hc(function(){var R=s,k=pt(l),U=[];e:{var z=hf.get(e);if(z!==void 0){var C=Ns,K=e;switch(e){case"keypress":if(Rs(l)===0)break e;case"keydown":case"keyup":C=$g;break;case"focusin":K="focus",C=nr;break;case"focusout":K="blur",C=nr;break;case"beforeblur":case"afterblur":C=nr;break;case"click":if(l.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":C=Yc;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":C=Ug;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":C=Ig;break;case of:case cf:case ff:C=Bg;break;case df:C=Pg;break;case"scroll":case"scrollend":C=kg;break;case"wheel":C=tm;break;case"copy":case"cut":case"paste":C=Yg;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":C=Xc;break;case"toggle":case"beforetoggle":C=nm}var ue=(t&4)!==0,Ve=!ue&&(e==="scroll"||e==="scrollend"),A=ue?z!==null?z+"Capture":null:z;ue=[];for(var T=R,O;T!==null;){var L=T;if(O=L.stateNode,L=L.tag,L!==5&&L!==26&&L!==27||O===null||A===null||(L=bi(T,A),L!=null&&ue.push(Ii(T,L,O))),Ve)break;T=T.return}0<ue.length&&(z=new C(z,K,null,l,k),U.push({event:z,listeners:ue}))}}if((t&7)===0){e:{if(z=e==="mouseover"||e==="pointerover",C=e==="mouseout"||e==="pointerout",z&&l!==ht&&(K=l.relatedTarget||l.fromElement)&&(nn(K)||K[je]))break e;if((C||z)&&(z=k.window===k?k:(z=k.ownerDocument)?z.defaultView||z.parentWindow:window,C?(K=l.relatedTarget||l.toElement,C=R,K=K?nn(K):null,K!==null&&(Ve=d(K),ue=K.tag,K!==Ve||ue!==5&&ue!==27&&ue!==6)&&(K=null)):(C=null,K=R),C!==K)){if(ue=Yc,L="onMouseLeave",A="onMouseEnter",T="mouse",(e==="pointerout"||e==="pointerover")&&(ue=Xc,L="onPointerLeave",A="onPointerEnter",T="pointer"),Ve=C==null?z:Yn(C),O=K==null?z:Yn(K),z=new ue(L,T+"leave",C,l,k),z.target=Ve,z.relatedTarget=O,L=null,nn(k)===R&&(ue=new ue(A,T+"enter",K,l,k),ue.target=O,ue.relatedTarget=Ve,L=ue),Ve=L,C&&K)t:{for(ue=l0,A=C,T=K,O=0,L=A;L;L=ue(L))O++;L=0;for(var le=T;le;le=ue(le))L++;for(;0<O-L;)A=ue(A),O--;for(;0<L-O;)T=ue(T),L--;for(;O--;){if(A===T||T!==null&&A===T.alternate){ue=A;break t}A=ue(A),T=ue(T)}ue=null}else ue=null;C!==null&&Lh(U,z,C,ue,!1),K!==null&&Ve!==null&&Lh(U,Ve,K,ue,!0)}}e:{if(z=R?Yn(R):window,C=z.nodeName&&z.nodeName.toLowerCase(),C==="select"||C==="input"&&z.type==="file")var we=Ic;else if(Jc(z))if(Wc)we=hm;else{we=fm;var I=cm}else C=z.nodeName,!C||C.toLowerCase()!=="input"||z.type!=="checkbox"&&z.type!=="radio"?R&&J(R.elementType)&&(we=Ic):we=dm;if(we&&(we=we(e,R))){Fc(U,we,l,k);break e}I&&I(e,z,R),e==="focusout"&&R&&z.type==="number"&&R.memoizedProps.value!=null&&yi(z,"number",z.value)}switch(I=R?Yn(R):window,e){case"focusin":(Jc(I)||I.contentEditable==="true")&&(Na=I,or=R,Oi=null);break;case"focusout":Oi=or=Na=null;break;case"mousedown":cr=!0;break;case"contextmenu":case"mouseup":case"dragend":cr=!1,uf(U,l,k);break;case"selectionchange":if(gm)break;case"keydown":case"keyup":uf(U,l,k)}var ve;if(ir)e:{switch(e){case"compositionstart":var Ae="onCompositionStart";break e;case"compositionend":Ae="onCompositionEnd";break e;case"compositionupdate":Ae="onCompositionUpdate";break e}Ae=void 0}else za?Kc(e,l)&&(Ae="onCompositionEnd"):e==="keydown"&&l.keyCode===229&&(Ae="onCompositionStart");Ae&&(Vc&&l.locale!=="ko"&&(za||Ae!=="onCompositionStart"?Ae==="onCompositionEnd"&&za&&(ve=Bc()):(rn=k,er="value"in rn?rn.value:rn.textContent,za=!0)),I=vu(R,Ae),0<I.length&&(Ae=new Gc(Ae,e,null,l,k),U.push({event:Ae,listeners:I}),ve?Ae.data=ve:(ve=$c(l),ve!==null&&(Ae.data=ve)))),(ve=im?sm(e,l):um(e,l))&&(Ae=vu(R,"onBeforeInput"),0<Ae.length&&(I=new Gc("onBeforeInput","beforeinput",null,l,k),U.push({event:I,listeners:Ae}),I.data=ve)),Wm(U,e,R,l,k)}wh(U,t)})}function Ii(e,t,l){return{instance:e,listener:t,currentTarget:l}}function vu(e,t){for(var l=t+"Capture",n=[];e!==null;){var i=e,s=i.stateNode;if(i=i.tag,i!==5&&i!==26&&i!==27||s===null||(i=bi(e,l),i!=null&&n.unshift(Ii(e,i,s)),i=bi(e,t),i!=null&&n.push(Ii(e,i,s))),e.tag===3)return n;e=e.return}return[]}function l0(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function Lh(e,t,l,n,i){for(var s=t._reactName,f=[];l!==null&&l!==n;){var p=l,v=p.alternate,R=p.stateNode;if(p=p.tag,v!==null&&v===n)break;p!==5&&p!==26&&p!==27||R===null||(v=R,i?(R=bi(l,s),R!=null&&f.unshift(Ii(l,R,v))):i||(R=bi(l,s),R!=null&&f.push(Ii(l,R,v)))),l=l.return}f.length!==0&&e.push({event:t,listeners:f})}var n0=/\r\n?/g,a0=/\u0000|\uFFFD/g;function Uh(e){return(typeof e=="string"?e:""+e).replace(n0,`
9
+ `).replace(a0,"")}function jh(e,t){return t=Uh(t),Uh(e)===t}function Xe(e,t,l,n,i,s){switch(l){case"children":typeof n=="string"?t==="body"||t==="textarea"&&n===""||Y(e,n):(typeof n=="number"||typeof n=="bigint")&&t!=="body"&&Y(e,""+n);break;case"className":wl(e,"class",n);break;case"tabIndex":wl(e,"tabindex",n);break;case"dir":case"role":case"viewBox":case"width":case"height":wl(e,l,n);break;case"style":B(e,n,s);break;case"data":if(t!=="object"){wl(e,"data",n);break}case"src":case"href":if(n===""&&(t!=="a"||l!=="href")){e.removeAttribute(l);break}if(n==null||typeof n=="function"||typeof n=="symbol"||typeof n=="boolean"){e.removeAttribute(l);break}n=ze(""+n),e.setAttribute(l,n);break;case"action":case"formAction":if(typeof n=="function"){e.setAttribute(l,"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 s=="function"&&(l==="formAction"?(t!=="input"&&Xe(e,t,"name",i.name,i,null),Xe(e,t,"formEncType",i.formEncType,i,null),Xe(e,t,"formMethod",i.formMethod,i,null),Xe(e,t,"formTarget",i.formTarget,i,null)):(Xe(e,t,"encType",i.encType,i,null),Xe(e,t,"method",i.method,i,null),Xe(e,t,"target",i.target,i,null)));if(n==null||typeof n=="symbol"||typeof n=="boolean"){e.removeAttribute(l);break}n=ze(""+n),e.setAttribute(l,n);break;case"onClick":n!=null&&(e.onclick=Ne);break;case"onScroll":n!=null&&Te("scroll",e);break;case"onScrollEnd":n!=null&&Te("scrollend",e);break;case"dangerouslySetInnerHTML":if(n!=null){if(typeof n!="object"||!("__html"in n))throw Error(r(61));if(l=n.__html,l!=null){if(i.children!=null)throw Error(r(60));e.innerHTML=l}}break;case"multiple":e.multiple=n&&typeof n!="function"&&typeof n!="symbol";break;case"muted":e.muted=n&&typeof n!="function"&&typeof n!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(n==null||typeof n=="function"||typeof n=="boolean"||typeof n=="symbol"){e.removeAttribute("xlink:href");break}l=ze(""+n),e.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",l);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":n!=null&&typeof n!="function"&&typeof n!="symbol"?e.setAttribute(l,""+n):e.removeAttribute(l);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":n&&typeof n!="function"&&typeof n!="symbol"?e.setAttribute(l,""):e.removeAttribute(l);break;case"capture":case"download":n===!0?e.setAttribute(l,""):n!==!1&&n!=null&&typeof n!="function"&&typeof n!="symbol"?e.setAttribute(l,n):e.removeAttribute(l);break;case"cols":case"rows":case"size":case"span":n!=null&&typeof n!="function"&&typeof n!="symbol"&&!isNaN(n)&&1<=n?e.setAttribute(l,n):e.removeAttribute(l);break;case"rowSpan":case"start":n==null||typeof n=="function"||typeof n=="symbol"||isNaN(n)?e.removeAttribute(l):e.setAttribute(l,n);break;case"popover":Te("beforetoggle",e),Te("toggle",e),un(e,"popover",n);break;case"xlinkActuate":zt(e,"http://www.w3.org/1999/xlink","xlink:actuate",n);break;case"xlinkArcrole":zt(e,"http://www.w3.org/1999/xlink","xlink:arcrole",n);break;case"xlinkRole":zt(e,"http://www.w3.org/1999/xlink","xlink:role",n);break;case"xlinkShow":zt(e,"http://www.w3.org/1999/xlink","xlink:show",n);break;case"xlinkTitle":zt(e,"http://www.w3.org/1999/xlink","xlink:title",n);break;case"xlinkType":zt(e,"http://www.w3.org/1999/xlink","xlink:type",n);break;case"xmlBase":zt(e,"http://www.w3.org/XML/1998/namespace","xml:base",n);break;case"xmlLang":zt(e,"http://www.w3.org/XML/1998/namespace","xml:lang",n);break;case"xmlSpace":zt(e,"http://www.w3.org/XML/1998/namespace","xml:space",n);break;case"is":un(e,"is",n);break;case"innerText":case"textContent":break;default:(!(2<l.length)||l[0]!=="o"&&l[0]!=="O"||l[1]!=="n"&&l[1]!=="N")&&(l=ee.get(l)||l,un(e,l,n))}}function Uo(e,t,l,n,i,s){switch(l){case"style":B(e,n,s);break;case"dangerouslySetInnerHTML":if(n!=null){if(typeof n!="object"||!("__html"in n))throw Error(r(61));if(l=n.__html,l!=null){if(i.children!=null)throw Error(r(60));e.innerHTML=l}}break;case"children":typeof n=="string"?Y(e,n):(typeof n=="number"||typeof n=="bigint")&&Y(e,""+n);break;case"onScroll":n!=null&&Te("scroll",e);break;case"onScrollEnd":n!=null&&Te("scrollend",e);break;case"onClick":n!=null&&(e.onclick=Ne);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!Tl.hasOwnProperty(l))e:{if(l[0]==="o"&&l[1]==="n"&&(i=l.endsWith("Capture"),t=l.slice(2,i?l.length-7:void 0),s=e[Rt]||null,s=s!=null?s[l]:null,typeof s=="function"&&e.removeEventListener(t,s,i),typeof n=="function")){typeof s!="function"&&s!==null&&(l in e?e[l]=null:e.hasAttribute(l)&&e.removeAttribute(l)),e.addEventListener(t,n,i);break e}l in e?e[l]=n:n===!0?e.setAttribute(l,""):un(e,l,n)}}}function Tt(e,t,l){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":Te("error",e),Te("load",e);var n=!1,i=!1,s;for(s in l)if(l.hasOwnProperty(s)){var f=l[s];if(f!=null)switch(s){case"src":n=!0;break;case"srcSet":i=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(r(137,t));default:Xe(e,t,s,f,l,null)}}i&&Xe(e,t,"srcSet",l.srcSet,l,null),n&&Xe(e,t,"src",l.src,l,null);return;case"input":Te("invalid",e);var p=s=f=i=null,v=null,R=null;for(n in l)if(l.hasOwnProperty(n)){var k=l[n];if(k!=null)switch(n){case"name":i=k;break;case"type":f=k;break;case"checked":v=k;break;case"defaultChecked":R=k;break;case"value":s=k;break;case"defaultValue":p=k;break;case"children":case"dangerouslySetInnerHTML":if(k!=null)throw Error(r(137,t));break;default:Xe(e,t,n,k,l,null)}}_s(e,s,p,v,R,f,i,!1);return;case"select":Te("invalid",e),n=f=s=null;for(i in l)if(l.hasOwnProperty(i)&&(p=l[i],p!=null))switch(i){case"value":s=p;break;case"defaultValue":f=p;break;case"multiple":n=p;default:Xe(e,t,i,p,l,null)}t=s,l=f,e.multiple=!!n,t!=null?kl(e,!!n,t,!1):l!=null&&kl(e,!!n,l,!0);return;case"textarea":Te("invalid",e),s=i=n=null;for(f in l)if(l.hasOwnProperty(f)&&(p=l[f],p!=null))switch(f){case"value":n=p;break;case"defaultValue":i=p;break;case"children":s=p;break;case"dangerouslySetInnerHTML":if(p!=null)throw Error(r(91));break;default:Xe(e,t,f,p,l,null)}Ra(e,n,i,s);return;case"option":for(v in l)l.hasOwnProperty(v)&&(n=l[v],n!=null)&&(v==="selected"?e.selected=n&&typeof n!="function"&&typeof n!="symbol":Xe(e,t,v,n,l,null));return;case"dialog":Te("beforetoggle",e),Te("toggle",e),Te("cancel",e),Te("close",e);break;case"iframe":case"object":Te("load",e);break;case"video":case"audio":for(n=0;n<Fi.length;n++)Te(Fi[n],e);break;case"image":Te("error",e),Te("load",e);break;case"details":Te("toggle",e);break;case"embed":case"source":case"link":Te("error",e),Te("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(R in l)if(l.hasOwnProperty(R)&&(n=l[R],n!=null))switch(R){case"children":case"dangerouslySetInnerHTML":throw Error(r(137,t));default:Xe(e,t,R,n,l,null)}return;default:if(J(t)){for(k in l)l.hasOwnProperty(k)&&(n=l[k],n!==void 0&&Uo(e,t,k,n,l,void 0));return}}for(p in l)l.hasOwnProperty(p)&&(n=l[p],n!=null&&Xe(e,t,p,n,l,null))}function i0(e,t,l,n){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var i=null,s=null,f=null,p=null,v=null,R=null,k=null;for(C in l){var U=l[C];if(l.hasOwnProperty(C)&&U!=null)switch(C){case"checked":break;case"value":break;case"defaultValue":v=U;default:n.hasOwnProperty(C)||Xe(e,t,C,null,n,U)}}for(var z in n){var C=n[z];if(U=l[z],n.hasOwnProperty(z)&&(C!=null||U!=null))switch(z){case"type":s=C;break;case"name":i=C;break;case"checked":R=C;break;case"defaultChecked":k=C;break;case"value":f=C;break;case"defaultValue":p=C;break;case"children":case"dangerouslySetInnerHTML":if(C!=null)throw Error(r(137,t));break;default:C!==U&&Xe(e,t,z,C,n,U)}}Oa(e,f,p,v,R,k,s,i);return;case"select":C=f=p=z=null;for(s in l)if(v=l[s],l.hasOwnProperty(s)&&v!=null)switch(s){case"value":break;case"multiple":C=v;default:n.hasOwnProperty(s)||Xe(e,t,s,null,n,v)}for(i in n)if(s=n[i],v=l[i],n.hasOwnProperty(i)&&(s!=null||v!=null))switch(i){case"value":z=s;break;case"defaultValue":p=s;break;case"multiple":f=s;default:s!==v&&Xe(e,t,i,s,n,v)}t=p,l=f,n=C,z!=null?kl(e,!!l,z,!1):!!n!=!!l&&(t!=null?kl(e,!!l,t,!0):kl(e,!!l,l?[]:"",!1));return;case"textarea":C=z=null;for(p in l)if(i=l[p],l.hasOwnProperty(p)&&i!=null&&!n.hasOwnProperty(p))switch(p){case"value":break;case"children":break;default:Xe(e,t,p,null,n,i)}for(f in n)if(i=n[f],s=l[f],n.hasOwnProperty(f)&&(i!=null||s!=null))switch(f){case"value":z=i;break;case"defaultValue":C=i;break;case"children":break;case"dangerouslySetInnerHTML":if(i!=null)throw Error(r(91));break;default:i!==s&&Xe(e,t,f,i,n,s)}Vn(e,z,C);return;case"option":for(var K in l)z=l[K],l.hasOwnProperty(K)&&z!=null&&!n.hasOwnProperty(K)&&(K==="selected"?e.selected=!1:Xe(e,t,K,null,n,z));for(v in n)z=n[v],C=l[v],n.hasOwnProperty(v)&&z!==C&&(z!=null||C!=null)&&(v==="selected"?e.selected=z&&typeof z!="function"&&typeof z!="symbol":Xe(e,t,v,z,n,C));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 ue in l)z=l[ue],l.hasOwnProperty(ue)&&z!=null&&!n.hasOwnProperty(ue)&&Xe(e,t,ue,null,n,z);for(R in n)if(z=n[R],C=l[R],n.hasOwnProperty(R)&&z!==C&&(z!=null||C!=null))switch(R){case"children":case"dangerouslySetInnerHTML":if(z!=null)throw Error(r(137,t));break;default:Xe(e,t,R,z,n,C)}return;default:if(J(t)){for(var Ve in l)z=l[Ve],l.hasOwnProperty(Ve)&&z!==void 0&&!n.hasOwnProperty(Ve)&&Uo(e,t,Ve,void 0,n,z);for(k in n)z=n[k],C=l[k],!n.hasOwnProperty(k)||z===C||z===void 0&&C===void 0||Uo(e,t,k,z,n,C);return}}for(var A in l)z=l[A],l.hasOwnProperty(A)&&z!=null&&!n.hasOwnProperty(A)&&Xe(e,t,A,null,n,z);for(U in n)z=n[U],C=l[U],!n.hasOwnProperty(U)||z===C||z==null&&C==null||Xe(e,t,U,z,n,C)}function Hh(e){switch(e){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function s0(){if(typeof performance.getEntriesByType=="function"){for(var e=0,t=0,l=performance.getEntriesByType("resource"),n=0;n<l.length;n++){var i=l[n],s=i.transferSize,f=i.initiatorType,p=i.duration;if(s&&p&&Hh(f)){for(f=0,p=i.responseEnd,n+=1;n<l.length;n++){var v=l[n],R=v.startTime;if(R>p)break;var k=v.transferSize,U=v.initiatorType;k&&Hh(U)&&(v=v.responseEnd,f+=k*(v<p?1:(p-R)/(v-R)))}if(--n,t+=8*(s+f)/(i.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 jo=null,Ho=null;function Su(e){return e.nodeType===9?e:e.ownerDocument}function Bh(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 qh(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 Bo(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 qo=null;function u0(){var e=window.event;return e&&e.type==="popstate"?e===qo?!1:(qo=e,!0):(qo=null,!1)}var Yh=typeof setTimeout=="function"?setTimeout:void 0,r0=typeof clearTimeout=="function"?clearTimeout:void 0,Gh=typeof Promise=="function"?Promise:void 0,o0=typeof queueMicrotask=="function"?queueMicrotask:typeof Gh<"u"?function(e){return Gh.resolve(null).then(e).catch(c0)}:Yh;function c0(e){setTimeout(function(){throw e})}function _n(e){return e==="head"}function Xh(e,t){var l=t,n=0;do{var i=l.nextSibling;if(e.removeChild(l),i&&i.nodeType===8)if(l=i.data,l==="/$"||l==="/&"){if(n===0){e.removeChild(i),li(t);return}n--}else if(l==="$"||l==="$?"||l==="$~"||l==="$!"||l==="&")n++;else if(l==="html")Wi(e.ownerDocument.documentElement);else if(l==="head"){l=e.ownerDocument.head,Wi(l);for(var s=l.firstChild;s;){var f=s.nextSibling,p=s.nodeName;s[ln]||p==="SCRIPT"||p==="STYLE"||p==="LINK"&&s.rel.toLowerCase()==="stylesheet"||l.removeChild(s),s=f}}else l==="body"&&Wi(e.ownerDocument.body);l=i}while(l);li(t)}function Vh(e,t){var l=e;e=0;do{var n=l.nextSibling;if(l.nodeType===1?t?(l._stashedDisplay=l.style.display,l.style.display="none"):(l.style.display=l._stashedDisplay||"",l.getAttribute("style")===""&&l.removeAttribute("style")):l.nodeType===3&&(t?(l._stashedText=l.nodeValue,l.nodeValue=""):l.nodeValue=l._stashedText||""),n&&n.nodeType===8)if(l=n.data,l==="/$"){if(e===0)break;e--}else l!=="$"&&l!=="$?"&&l!=="$~"&&l!=="$!"||e++;l=n}while(l)}function Yo(e){var t=e.firstChild;for(t&&t.nodeType===10&&(t=t.nextSibling);t;){var l=t;switch(t=t.nextSibling,l.nodeName){case"HTML":case"HEAD":case"BODY":Yo(l),Aa(l);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(l.rel.toLowerCase()==="stylesheet")continue}e.removeChild(l)}}function f0(e,t,l,n){for(;e.nodeType===1;){var i=l;if(e.nodeName.toLowerCase()!==t.toLowerCase()){if(!n&&(e.nodeName!=="INPUT"||e.type!=="hidden"))break}else if(n){if(!e[ln])switch(t){case"meta":if(!e.hasAttribute("itemprop"))break;return e;case"link":if(s=e.getAttribute("rel"),s==="stylesheet"&&e.hasAttribute("data-precedence"))break;if(s!==i.rel||e.getAttribute("href")!==(i.href==null||i.href===""?null:i.href)||e.getAttribute("crossorigin")!==(i.crossOrigin==null?null:i.crossOrigin)||e.getAttribute("title")!==(i.title==null?null:i.title))break;return e;case"style":if(e.hasAttribute("data-precedence"))break;return e;case"script":if(s=e.getAttribute("src"),(s!==(i.src==null?null:i.src)||e.getAttribute("type")!==(i.type==null?null:i.type)||e.getAttribute("crossorigin")!==(i.crossOrigin==null?null:i.crossOrigin))&&s&&e.hasAttribute("async")&&!e.hasAttribute("itemprop"))break;return e;default:return e}}else if(t==="input"&&e.type==="hidden"){var s=i.name==null?null:""+i.name;if(i.type==="hidden"&&e.getAttribute("name")===s)return e}else return e;if(e=rl(e.nextSibling),e===null)break}return null}function d0(e,t,l){if(t==="")return null;for(;e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!l||(e=rl(e.nextSibling),e===null))return null;return e}function Qh(e,t){for(;e.nodeType!==8;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!t||(e=rl(e.nextSibling),e===null))return null;return e}function Go(e){return e.data==="$?"||e.data==="$~"}function Xo(e){return e.data==="$!"||e.data==="$?"&&e.ownerDocument.readyState!=="loading"}function h0(e,t){var l=e.ownerDocument;if(e.data==="$~")e._reactRetry=t;else if(e.data!=="$?"||l.readyState!=="loading")t();else{var n=function(){t(),l.removeEventListener("DOMContentLoaded",n)};l.addEventListener("DOMContentLoaded",n),e._reactRetry=n}}function rl(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 Vo=null;function Zh(e){e=e.nextSibling;for(var t=0;e;){if(e.nodeType===8){var l=e.data;if(l==="/$"||l==="/&"){if(t===0)return rl(e.nextSibling);t--}else l!=="$"&&l!=="$!"&&l!=="$?"&&l!=="$~"&&l!=="&"||t++}e=e.nextSibling}return null}function Kh(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var l=e.data;if(l==="$"||l==="$!"||l==="$?"||l==="$~"||l==="&"){if(t===0)return e;t--}else l!=="/$"&&l!=="/&"||t++}e=e.previousSibling}return null}function $h(e,t,l){switch(t=Su(l),e){case"html":if(e=t.documentElement,!e)throw Error(r(452));return e;case"head":if(e=t.head,!e)throw Error(r(453));return e;case"body":if(e=t.body,!e)throw Error(r(454));return e;default:throw Error(r(451))}}function Wi(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);Aa(e)}var ol=new Map,Jh=new Set;function xu(e){return typeof e.getRootNode=="function"?e.getRootNode():e.nodeType===9?e:e.ownerDocument}var Fl=q.d;q.d={f:p0,r:g0,D:m0,C:y0,L:b0,m:v0,X:x0,S:S0,M:T0};function p0(){var e=Fl.f(),t=du();return e||t}function g0(e){var t=an(e);t!==null&&t.tag===5&&t.type==="form"?dd(t):Fl.r(e)}var Pa=typeof document>"u"?null:document;function Fh(e,t,l){var n=Pa;if(n&&typeof t=="string"&&t){var i=jt(t);i='link[rel="'+e+'"][href="'+i+'"]',typeof l=="string"&&(i+='[crossorigin="'+l+'"]'),Jh.has(i)||(Jh.add(i),e={rel:e,crossOrigin:l,href:t},n.querySelector(i)===null&&(t=n.createElement("link"),Tt(t,"link",e),Ze(t),n.head.appendChild(t)))}}function m0(e){Fl.D(e),Fh("dns-prefetch",e,null)}function y0(e,t){Fl.C(e,t),Fh("preconnect",e,t)}function b0(e,t,l){Fl.L(e,t,l);var n=Pa;if(n&&e&&t){var i='link[rel="preload"][as="'+jt(t)+'"]';t==="image"&&l&&l.imageSrcSet?(i+='[imagesrcset="'+jt(l.imageSrcSet)+'"]',typeof l.imageSizes=="string"&&(i+='[imagesizes="'+jt(l.imageSizes)+'"]')):i+='[href="'+jt(e)+'"]';var s=i;switch(t){case"style":s=ei(e);break;case"script":s=ti(e)}ol.has(s)||(e=x({rel:"preload",href:t==="image"&&l&&l.imageSrcSet?void 0:e,as:t},l),ol.set(s,e),n.querySelector(i)!==null||t==="style"&&n.querySelector(Pi(s))||t==="script"&&n.querySelector(es(s))||(t=n.createElement("link"),Tt(t,"link",e),Ze(t),n.head.appendChild(t)))}}function v0(e,t){Fl.m(e,t);var l=Pa;if(l&&e){var n=t&&typeof t.as=="string"?t.as:"script",i='link[rel="modulepreload"][as="'+jt(n)+'"][href="'+jt(e)+'"]',s=i;switch(n){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":s=ti(e)}if(!ol.has(s)&&(e=x({rel:"modulepreload",href:e},t),ol.set(s,e),l.querySelector(i)===null)){switch(n){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(l.querySelector(es(s)))return}n=l.createElement("link"),Tt(n,"link",e),Ze(n),l.head.appendChild(n)}}}function S0(e,t,l){Fl.S(e,t,l);var n=Pa;if(n&&e){var i=sn(n).hoistableStyles,s=ei(e);t=t||"default";var f=i.get(s);if(!f){var p={loading:0,preload:null};if(f=n.querySelector(Pi(s)))p.loading=5;else{e=x({rel:"stylesheet",href:e,"data-precedence":t},l),(l=ol.get(s))&&Qo(e,l);var v=f=n.createElement("link");Ze(v),Tt(v,"link",e),v._p=new Promise(function(R,k){v.onload=R,v.onerror=k}),v.addEventListener("load",function(){p.loading|=1}),v.addEventListener("error",function(){p.loading|=2}),p.loading|=4,Tu(f,t,n)}f={type:"stylesheet",instance:f,count:1,state:p},i.set(s,f)}}}function x0(e,t){Fl.X(e,t);var l=Pa;if(l&&e){var n=sn(l).hoistableScripts,i=ti(e),s=n.get(i);s||(s=l.querySelector(es(i)),s||(e=x({src:e,async:!0},t),(t=ol.get(i))&&Zo(e,t),s=l.createElement("script"),Ze(s),Tt(s,"link",e),l.head.appendChild(s)),s={type:"script",instance:s,count:1,state:null},n.set(i,s))}}function T0(e,t){Fl.M(e,t);var l=Pa;if(l&&e){var n=sn(l).hoistableScripts,i=ti(e),s=n.get(i);s||(s=l.querySelector(es(i)),s||(e=x({src:e,async:!0,type:"module"},t),(t=ol.get(i))&&Zo(e,t),s=l.createElement("script"),Ze(s),Tt(s,"link",e),l.head.appendChild(s)),s={type:"script",instance:s,count:1,state:null},n.set(i,s))}}function Ih(e,t,l,n){var i=(i=de.current)?xu(i):null;if(!i)throw Error(r(446));switch(e){case"meta":case"title":return null;case"style":return typeof l.precedence=="string"&&typeof l.href=="string"?(t=ei(l.href),l=sn(i).hoistableStyles,n=l.get(t),n||(n={type:"style",instance:null,count:0,state:null},l.set(t,n)),n):{type:"void",instance:null,count:0,state:null};case"link":if(l.rel==="stylesheet"&&typeof l.href=="string"&&typeof l.precedence=="string"){e=ei(l.href);var s=sn(i).hoistableStyles,f=s.get(e);if(f||(i=i.ownerDocument||i,f={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},s.set(e,f),(s=i.querySelector(Pi(e)))&&!s._p&&(f.instance=s,f.state.loading=5),ol.has(e)||(l={rel:"preload",as:"style",href:l.href,crossOrigin:l.crossOrigin,integrity:l.integrity,media:l.media,hrefLang:l.hrefLang,referrerPolicy:l.referrerPolicy},ol.set(e,l),s||E0(i,e,l,f.state))),t&&n===null)throw Error(r(528,""));return f}if(t&&n!==null)throw Error(r(529,""));return null;case"script":return t=l.async,l=l.src,typeof l=="string"&&t&&typeof t!="function"&&typeof t!="symbol"?(t=ti(l),l=sn(i).hoistableScripts,n=l.get(t),n||(n={type:"script",instance:null,count:0,state:null},l.set(t,n)),n):{type:"void",instance:null,count:0,state:null};default:throw Error(r(444,e))}}function ei(e){return'href="'+jt(e)+'"'}function Pi(e){return'link[rel="stylesheet"]['+e+"]"}function Wh(e){return x({},e,{"data-precedence":e.precedence,precedence:null})}function E0(e,t,l,n){e.querySelector('link[rel="preload"][as="style"]['+t+"]")?n.loading=1:(t=e.createElement("link"),n.preload=t,t.addEventListener("load",function(){return n.loading|=1}),t.addEventListener("error",function(){return n.loading|=2}),Tt(t,"link",l),Ze(t),e.head.appendChild(t))}function ti(e){return'[src="'+jt(e)+'"]'}function es(e){return"script[async]"+e}function Ph(e,t,l){if(t.count++,t.instance===null)switch(t.type){case"style":var n=e.querySelector('style[data-href~="'+jt(l.href)+'"]');if(n)return t.instance=n,Ze(n),n;var i=x({},l,{"data-href":l.href,"data-precedence":l.precedence,href:null,precedence:null});return n=(e.ownerDocument||e).createElement("style"),Ze(n),Tt(n,"style",i),Tu(n,l.precedence,e),t.instance=n;case"stylesheet":i=ei(l.href);var s=e.querySelector(Pi(i));if(s)return t.state.loading|=4,t.instance=s,Ze(s),s;n=Wh(l),(i=ol.get(i))&&Qo(n,i),s=(e.ownerDocument||e).createElement("link"),Ze(s);var f=s;return f._p=new Promise(function(p,v){f.onload=p,f.onerror=v}),Tt(s,"link",n),t.state.loading|=4,Tu(s,l.precedence,e),t.instance=s;case"script":return s=ti(l.src),(i=e.querySelector(es(s)))?(t.instance=i,Ze(i),i):(n=l,(i=ol.get(s))&&(n=x({},l),Zo(n,i)),e=e.ownerDocument||e,i=e.createElement("script"),Ze(i),Tt(i,"link",n),e.head.appendChild(i),t.instance=i);case"void":return null;default:throw Error(r(443,t.type))}else t.type==="stylesheet"&&(t.state.loading&4)===0&&(n=t.instance,t.state.loading|=4,Tu(n,l.precedence,e));return t.instance}function Tu(e,t,l){for(var n=l.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),i=n.length?n[n.length-1]:null,s=i,f=0;f<n.length;f++){var p=n[f];if(p.dataset.precedence===t)s=p;else if(s!==i)break}s?s.parentNode.insertBefore(e,s.nextSibling):(t=l.nodeType===9?l.head:l,t.insertBefore(e,t.firstChild))}function Qo(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.title==null&&(e.title=t.title)}function Zo(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.integrity==null&&(e.integrity=t.integrity)}var Eu=null;function ep(e,t,l){if(Eu===null){var n=new Map,i=Eu=new Map;i.set(l,n)}else i=Eu,n=i.get(l),n||(n=new Map,i.set(l,n));if(n.has(e))return n;for(n.set(e,null),l=l.getElementsByTagName(e),i=0;i<l.length;i++){var s=l[i];if(!(s[ln]||s[ct]||e==="link"&&s.getAttribute("rel")==="stylesheet")&&s.namespaceURI!=="http://www.w3.org/2000/svg"){var f=s.getAttribute(t)||"";f=e+f;var p=n.get(f);p?p.push(s):n.set(f,[s])}}return n}function tp(e,t,l){e=e.ownerDocument||e,e.head.insertBefore(l,t==="title"?e.querySelector("head > title"):null)}function A0(e,t,l){if(l===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;return t.rel==="stylesheet"?(e=t.disabled,typeof t.precedence=="string"&&e==null):!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 lp(e){return!(e.type==="stylesheet"&&(e.state.loading&3)===0)}function _0(e,t,l,n){if(l.type==="stylesheet"&&(typeof n.media!="string"||matchMedia(n.media).matches!==!1)&&(l.state.loading&4)===0){if(l.instance===null){var i=ei(n.href),s=t.querySelector(Pi(i));if(s){t=s._p,t!==null&&typeof t=="object"&&typeof t.then=="function"&&(e.count++,e=Au.bind(e),t.then(e,e)),l.state.loading|=4,l.instance=s,Ze(s);return}s=t.ownerDocument||t,n=Wh(n),(i=ol.get(i))&&Qo(n,i),s=s.createElement("link"),Ze(s);var f=s;f._p=new Promise(function(p,v){f.onload=p,f.onerror=v}),Tt(s,"link",n),l.instance=s}e.stylesheets===null&&(e.stylesheets=new Map),e.stylesheets.set(l,t),(t=l.state.preload)&&(l.state.loading&3)===0&&(e.count++,l=Au.bind(e),t.addEventListener("load",l),t.addEventListener("error",l))}}var Ko=0;function O0(e,t){return e.stylesheets&&e.count===0&&Ou(e,e.stylesheets),0<e.count||0<e.imgCount?function(l){var n=setTimeout(function(){if(e.stylesheets&&Ou(e,e.stylesheets),e.unsuspend){var s=e.unsuspend;e.unsuspend=null,s()}},6e4+t);0<e.imgBytes&&Ko===0&&(Ko=62500*s0());var i=setTimeout(function(){if(e.waitingForImages=!1,e.count===0&&(e.stylesheets&&Ou(e,e.stylesheets),e.unsuspend)){var s=e.unsuspend;e.unsuspend=null,s()}},(e.imgBytes>Ko?50:800)+t);return e.unsuspend=l,function(){e.unsuspend=null,clearTimeout(n),clearTimeout(i)}}:null}function Au(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)Ou(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var _u=null;function Ou(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,_u=new Map,t.forEach(R0,e),_u=null,Au.call(e))}function R0(e,t){if(!(t.state.loading&4)){var l=_u.get(e);if(l)var n=l.get(null);else{l=new Map,_u.set(e,l);for(var i=e.querySelectorAll("link[data-precedence],style[data-precedence]"),s=0;s<i.length;s++){var f=i[s];(f.nodeName==="LINK"||f.getAttribute("media")!=="not all")&&(l.set(f.dataset.precedence,f),n=f)}n&&l.set(null,n)}i=t.instance,f=i.getAttribute("data-precedence"),s=l.get(f)||n,s===n&&l.set(null,i),l.set(f,i),this.count++,n=Au.bind(this),i.addEventListener("load",n),i.addEventListener("error",n),s?s.parentNode.insertBefore(i,s.nextSibling):(e=e.nodeType===9?e.head:e,e.insertBefore(i,e.firstChild)),t.state.loading|=4}}var ts={$$typeof:P,Provider:null,Consumer:null,_currentValue:$,_currentValue2:$,_threadCount:0};function z0(e,t,l,n,i,s,f,p,v){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=Lt(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Lt(0),this.hiddenUpdates=Lt(null),this.identifierPrefix=n,this.onUncaughtError=i,this.onCaughtError=s,this.onRecoverableError=f,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=v,this.incompleteTransitions=new Map}function np(e,t,l,n,i,s,f,p,v,R,k,U){return e=new z0(e,t,l,f,v,R,k,U,p),t=1,s===!0&&(t|=24),s=Zt(3,null,null,t),e.current=s,s.stateNode=e,t=_r(),t.refCount++,e.pooledCache=t,t.refCount++,s.memoizedState={element:n,isDehydrated:l,cache:t},Nr(s),e}function ap(e){return e?(e=Ma,e):Ma}function ip(e,t,l,n,i,s){i=ap(i),n.context===null?n.context=i:n.pendingContext=i,n=pn(t),n.payload={element:l},s=s===void 0?null:s,s!==null&&(n.callback=s),l=gn(e,n,t),l!==null&&(Xt(l,e,t),wi(l,e,t))}function sp(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var l=e.retryLane;e.retryLane=l!==0&&l<t?l:t}}function $o(e,t){sp(e,t),(e=e.alternate)&&sp(e,t)}function up(e){if(e.tag===13||e.tag===31){var t=$n(e,67108864);t!==null&&Xt(t,e,67108864),$o(e,67108864)}}function rp(e){if(e.tag===13||e.tag===31){var t=It();t=qn(t);var l=$n(e,t);l!==null&&Xt(l,e,t),$o(e,t)}}var Ru=!0;function N0(e,t,l,n){var i=N.T;N.T=null;var s=q.p;try{q.p=2,Jo(e,t,l,n)}finally{q.p=s,N.T=i}}function D0(e,t,l,n){var i=N.T;N.T=null;var s=q.p;try{q.p=8,Jo(e,t,l,n)}finally{q.p=s,N.T=i}}function Jo(e,t,l,n){if(Ru){var i=Fo(n);if(i===null)Lo(e,t,n,zu,l),cp(e,n);else if(M0(i,e,t,l,n))n.stopPropagation();else if(cp(e,n),t&4&&-1<C0.indexOf(e)){for(;i!==null;){var s=an(i);if(s!==null)switch(s.tag){case 3:if(s=s.stateNode,s.current.memoizedState.isDehydrated){var f=Sl(s.pendingLanes);if(f!==0){var p=s;for(p.pendingLanes|=2,p.entangledLanes|=2;f;){var v=1<<31-Ot(f);p.entanglements[1]|=v,f&=~v}Rl(s),(Ue&6)===0&&(cu=Pe()+500,Ji(0))}}break;case 31:case 13:p=$n(s,2),p!==null&&Xt(p,s,2),du(),$o(s,2)}if(s=Fo(n),s===null&&Lo(e,t,n,zu,l),s===i)break;i=s}i!==null&&n.stopPropagation()}else Lo(e,t,n,null,l)}}function Fo(e){return e=pt(e),Io(e)}var zu=null;function Io(e){if(zu=null,e=nn(e),e!==null){var t=d(e);if(t===null)e=null;else{var l=t.tag;if(l===13){if(e=h(t),e!==null)return e;e=null}else if(l===31){if(e=m(t),e!==null)return e;e=null}else if(l===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null)}}return zu=e,null}function op(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(yl()){case bl:return 2;case pa:return 8;case Cl:case ga:return 32;case ma:return 268435456;default:return 32}default:return 32}}var Wo=!1,On=null,Rn=null,zn=null,ls=new Map,ns=new Map,Nn=[],C0="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 cp(e,t){switch(e){case"focusin":case"focusout":On=null;break;case"dragenter":case"dragleave":Rn=null;break;case"mouseover":case"mouseout":zn=null;break;case"pointerover":case"pointerout":ls.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":ns.delete(t.pointerId)}}function as(e,t,l,n,i,s){return e===null||e.nativeEvent!==s?(e={blockedOn:t,domEventName:l,eventSystemFlags:n,nativeEvent:s,targetContainers:[i]},t!==null&&(t=an(t),t!==null&&up(t)),e):(e.eventSystemFlags|=n,t=e.targetContainers,i!==null&&t.indexOf(i)===-1&&t.push(i),e)}function M0(e,t,l,n,i){switch(t){case"focusin":return On=as(On,e,t,l,n,i),!0;case"dragenter":return Rn=as(Rn,e,t,l,n,i),!0;case"mouseover":return zn=as(zn,e,t,l,n,i),!0;case"pointerover":var s=i.pointerId;return ls.set(s,as(ls.get(s)||null,e,t,l,n,i)),!0;case"gotpointercapture":return s=i.pointerId,ns.set(s,as(ns.get(s)||null,e,t,l,n,i)),!0}return!1}function fp(e){var t=nn(e.target);if(t!==null){var l=d(t);if(l!==null){if(t=l.tag,t===13){if(t=h(l),t!==null){e.blockedOn=t,Ts(e.priority,function(){rp(l)});return}}else if(t===31){if(t=m(l),t!==null){e.blockedOn=t,Ts(e.priority,function(){rp(l)});return}}else if(t===3&&l.stateNode.current.memoizedState.isDehydrated){e.blockedOn=l.tag===3?l.stateNode.containerInfo:null;return}}}e.blockedOn=null}function Nu(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var l=Fo(e.nativeEvent);if(l===null){l=e.nativeEvent;var n=new l.constructor(l.type,l);ht=n,l.target.dispatchEvent(n),ht=null}else return t=an(l),t!==null&&up(t),e.blockedOn=l,!1;t.shift()}return!0}function dp(e,t,l){Nu(e)&&l.delete(t)}function w0(){Wo=!1,On!==null&&Nu(On)&&(On=null),Rn!==null&&Nu(Rn)&&(Rn=null),zn!==null&&Nu(zn)&&(zn=null),ls.forEach(dp),ns.forEach(dp)}function Du(e,t){e.blockedOn===t&&(e.blockedOn=null,Wo||(Wo=!0,c.unstable_scheduleCallback(c.unstable_NormalPriority,w0)))}var Cu=null;function hp(e){Cu!==e&&(Cu=e,c.unstable_scheduleCallback(c.unstable_NormalPriority,function(){Cu===e&&(Cu=null);for(var t=0;t<e.length;t+=3){var l=e[t],n=e[t+1],i=e[t+2];if(typeof n!="function"){if(Io(n||l)===null)continue;break}var s=an(l);s!==null&&(e.splice(t,3),t-=3,Jr(s,{pending:!0,data:i,method:l.method,action:n},n,i))}}))}function li(e){function t(v){return Du(v,e)}On!==null&&Du(On,e),Rn!==null&&Du(Rn,e),zn!==null&&Du(zn,e),ls.forEach(t),ns.forEach(t);for(var l=0;l<Nn.length;l++){var n=Nn[l];n.blockedOn===e&&(n.blockedOn=null)}for(;0<Nn.length&&(l=Nn[0],l.blockedOn===null);)fp(l),l.blockedOn===null&&Nn.shift();if(l=(e.ownerDocument||e).$$reactFormReplay,l!=null)for(n=0;n<l.length;n+=3){var i=l[n],s=l[n+1],f=i[Rt]||null;if(typeof s=="function")f||hp(l);else if(f){var p=null;if(s&&s.hasAttribute("formAction")){if(i=s,f=s[Rt]||null)p=f.formAction;else if(Io(i)!==null)continue}else p=f.action;typeof p=="function"?l[n+1]=p:(l.splice(n,3),n-=3),hp(l)}}}function pp(){function e(s){s.canIntercept&&s.info==="react-transition"&&s.intercept({handler:function(){return new Promise(function(f){return i=f})},focusReset:"manual",scroll:"manual"})}function t(){i!==null&&(i(),i=null),n||setTimeout(l,20)}function l(){if(!n&&!navigation.transition){var s=navigation.currentEntry;s&&s.url!=null&&navigation.navigate(s.url,{state:s.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var n=!1,i=null;return navigation.addEventListener("navigate",e),navigation.addEventListener("navigatesuccess",t),navigation.addEventListener("navigateerror",t),setTimeout(l,100),function(){n=!0,navigation.removeEventListener("navigate",e),navigation.removeEventListener("navigatesuccess",t),navigation.removeEventListener("navigateerror",t),i!==null&&(i(),i=null)}}}function Po(e){this._internalRoot=e}Mu.prototype.render=Po.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(r(409));var l=t.current,n=It();ip(l,n,e,t,null,null)},Mu.prototype.unmount=Po.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;ip(e.current,2,null,e,null,null),du(),t[je]=null}};function Mu(e){this._internalRoot=e}Mu.prototype.unstable_scheduleHydration=function(e){if(e){var t=Ta();e={blockedOn:null,target:e,priority:t};for(var l=0;l<Nn.length&&t!==0&&t<Nn[l].priority;l++);Nn.splice(l,0,e),l===0&&fp(e)}};var gp=a.version;if(gp!=="19.2.8")throw Error(r(527,gp,"19.2.8"));q.findDOMNode=function(e){var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(r(188)):(e=Object.keys(e).join(","),Error(r(268,e)));return e=y(t),e=e!==null?E(e):null,e=e===null?null:e.stateNode,e};var k0={bundleType:0,version:"19.2.8",rendererPackageName:"react-dom",currentDispatcherRef:N,reconcilerVersion:"19.2.8"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var wu=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!wu.isDisabled&&wu.supportsFiber)try{vl=wu.inject(k0),_t=wu}catch{}}return ss.createRoot=function(e,t){if(!o(e))throw Error(r(299));var l=!1,n="",i=Td,s=Ed,f=Ad;return t!=null&&(t.unstable_strictMode===!0&&(l=!0),t.identifierPrefix!==void 0&&(n=t.identifierPrefix),t.onUncaughtError!==void 0&&(i=t.onUncaughtError),t.onCaughtError!==void 0&&(s=t.onCaughtError),t.onRecoverableError!==void 0&&(f=t.onRecoverableError)),t=np(e,1,!1,null,null,l,n,null,i,s,f,pp),e[je]=t.current,ko(e),new Po(t)},ss.hydrateRoot=function(e,t,l){if(!o(e))throw Error(r(299));var n=!1,i="",s=Td,f=Ed,p=Ad,v=null;return l!=null&&(l.unstable_strictMode===!0&&(n=!0),l.identifierPrefix!==void 0&&(i=l.identifierPrefix),l.onUncaughtError!==void 0&&(s=l.onUncaughtError),l.onCaughtError!==void 0&&(f=l.onCaughtError),l.onRecoverableError!==void 0&&(p=l.onRecoverableError),l.formState!==void 0&&(v=l.formState)),t=np(e,1,!0,t,l??null,n,i,v,s,f,p,pp),t.context=ap(null),l=t.current,n=It(),n=qn(n),i=pn(n),i.callback=null,gn(l,i,n),l=n,t.current.lanes=l,el(t,l),Rl(t),e[je]=t.current,ko(e),new Mu(t)},ss.version="19.2.8",ss}var _p;function X0(){if(_p)return lc.exports;_p=1;function c(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(c)}catch(a){console.error(a)}}return c(),lc.exports=G0(),lc.exports}var V0=X0(),sc={};const he=c=>typeof c=="string",us=()=>{let c,a;const u=new Promise((r,o)=>{c=r,a=o});return u.resolve=c,u.reject=a,u},Op=c=>c==null?"":""+c,Q0=(c,a,u)=>{c.forEach(r=>{a[r]&&(u[r]=a[r])})},Z0=/###/g,Rp=c=>c&&c.indexOf("###")>-1?c.replace(Z0,"."):c,zp=c=>!c||he(c),ps=(c,a,u)=>{const r=he(a)?a.split("."):a;let o=0;for(;o<r.length-1;){if(zp(c))return{};const d=Rp(r[o]);!c[d]&&u&&(c[d]=new u),Object.prototype.hasOwnProperty.call(c,d)?c=c[d]:c={},++o}return zp(c)?{}:{obj:c,k:Rp(r[o])}},Np=(c,a,u)=>{const{obj:r,k:o}=ps(c,a,Object);if(r!==void 0||a.length===1){r[o]=u;return}let d=a[a.length-1],h=a.slice(0,a.length-1),m=ps(c,h,Object);for(;m.obj===void 0&&h.length;)d=`${h[h.length-1]}.${d}`,h=h.slice(0,h.length-1),m=ps(c,h,Object),m?.obj&&typeof m.obj[`${m.k}.${d}`]<"u"&&(m.obj=void 0);m.obj[`${m.k}.${d}`]=u},K0=(c,a,u,r)=>{const{obj:o,k:d}=ps(c,a,Object);o[d]=o[d]||[],o[d].push(u)},Hu=(c,a)=>{const{obj:u,k:r}=ps(c,a);if(u&&Object.prototype.hasOwnProperty.call(u,r))return u[r]},$0=(c,a,u)=>{const r=Hu(c,u);return r!==void 0?r:Hu(a,u)},fg=(c,a,u)=>{for(const r in a)r!=="__proto__"&&r!=="constructor"&&(r in c?he(c[r])||c[r]instanceof String||he(a[r])||a[r]instanceof String?u&&(c[r]=a[r]):fg(c[r],a[r],u):c[r]=a[r]);return c},ua=c=>c.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&");var J0={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;","/":"&#x2F;"};const F0=c=>he(c)?c.replace(/[&<>"'\/]/g,a=>J0[a]):c;class I0{constructor(a){this.capacity=a,this.regExpMap=new Map,this.regExpQueue=[]}getRegExp(a){const u=this.regExpMap.get(a);if(u!==void 0)return u;const r=new RegExp(a);return this.regExpQueue.length===this.capacity&&this.regExpMap.delete(this.regExpQueue.shift()),this.regExpMap.set(a,r),this.regExpQueue.push(a),r}}const W0=[" ",",","?","!",";"],P0=new I0(20),ey=(c,a,u)=>{a=a||"",u=u||"";const r=W0.filter(h=>a.indexOf(h)<0&&u.indexOf(h)<0);if(r.length===0)return!0;const o=P0.getRegExp(`(${r.map(h=>h==="?"?"\\?":h).join("|")})`);let d=!o.test(c);if(!d){const h=c.indexOf(u);h>0&&!o.test(c.substring(0,h))&&(d=!0)}return d},vc=(c,a,u=".")=>{if(!c)return;if(c[a])return Object.prototype.hasOwnProperty.call(c,a)?c[a]:void 0;const r=a.split(u);let o=c;for(let d=0;d<r.length;){if(!o||typeof o!="object")return;let h,m="";for(let g=d;g<r.length;++g)if(g!==d&&(m+=u),m+=r[g],h=o[m],h!==void 0){if(["string","number","boolean"].indexOf(typeof h)>-1&&g<r.length-1)continue;d+=g-d+1;break}o=h}return o},ys=c=>c?.replace(/_/g,"-"),ty={type:"logger",log(c){this.output("log",c)},warn(c){this.output("warn",c)},error(c){this.output("error",c)},output(c,a){console?.[c]?.apply?.(console,a)}};class Bu{constructor(a,u={}){this.init(a,u)}init(a,u={}){this.prefix=u.prefix||"i18next:",this.logger=a||ty,this.options=u,this.debug=u.debug}log(...a){return this.forward(a,"log","",!0)}warn(...a){return this.forward(a,"warn","",!0)}error(...a){return this.forward(a,"error","")}deprecate(...a){return this.forward(a,"warn","WARNING DEPRECATED: ",!0)}forward(a,u,r,o){return o&&!this.debug?null:(he(a[0])&&(a[0]=`${r}${this.prefix} ${a[0]}`),this.logger[u](a))}create(a){return new Bu(this.logger,{prefix:`${this.prefix}:${a}:`,...this.options})}clone(a){return a=a||this.options,a.prefix=a.prefix||this.prefix,new Bu(this.logger,a)}}var Nl=new Bu;class Qu{constructor(){this.observers={}}on(a,u){return a.split(" ").forEach(r=>{this.observers[r]||(this.observers[r]=new Map);const o=this.observers[r].get(u)||0;this.observers[r].set(u,o+1)}),this}off(a,u){if(this.observers[a]){if(!u){delete this.observers[a];return}this.observers[a].delete(u)}}emit(a,...u){this.observers[a]&&Array.from(this.observers[a].entries()).forEach(([o,d])=>{for(let h=0;h<d;h++)o(...u)}),this.observers["*"]&&Array.from(this.observers["*"].entries()).forEach(([o,d])=>{for(let h=0;h<d;h++)o.apply(o,[a,...u])})}}class Dp extends Qu{constructor(a,u={ns:["translation"],defaultNS:"translation"}){super(),this.data=a||{},this.options=u,this.options.keySeparator===void 0&&(this.options.keySeparator="."),this.options.ignoreJSONStructure===void 0&&(this.options.ignoreJSONStructure=!0)}addNamespaces(a){this.options.ns.indexOf(a)<0&&this.options.ns.push(a)}removeNamespaces(a){const u=this.options.ns.indexOf(a);u>-1&&this.options.ns.splice(u,1)}getResource(a,u,r,o={}){const d=o.keySeparator!==void 0?o.keySeparator:this.options.keySeparator,h=o.ignoreJSONStructure!==void 0?o.ignoreJSONStructure:this.options.ignoreJSONStructure;let m;a.indexOf(".")>-1?m=a.split("."):(m=[a,u],r&&(Array.isArray(r)?m.push(...r):he(r)&&d?m.push(...r.split(d)):m.push(r)));const g=Hu(this.data,m);return!g&&!u&&!r&&a.indexOf(".")>-1&&(a=m[0],u=m[1],r=m.slice(2).join(".")),g||!h||!he(r)?g:vc(this.data?.[a]?.[u],r,d)}addResource(a,u,r,o,d={silent:!1}){const h=d.keySeparator!==void 0?d.keySeparator:this.options.keySeparator;let m=[a,u];r&&(m=m.concat(h?r.split(h):r)),a.indexOf(".")>-1&&(m=a.split("."),o=u,u=m[1]),this.addNamespaces(u),Np(this.data,m,o),d.silent||this.emit("added",a,u,r,o)}addResources(a,u,r,o={silent:!1}){for(const d in r)(he(r[d])||Array.isArray(r[d]))&&this.addResource(a,u,d,r[d],{silent:!0});o.silent||this.emit("added",a,u,r)}addResourceBundle(a,u,r,o,d,h={silent:!1,skipCopy:!1}){let m=[a,u];a.indexOf(".")>-1&&(m=a.split("."),o=r,r=u,u=m[1]),this.addNamespaces(u);let g=Hu(this.data,m)||{};h.skipCopy||(r=JSON.parse(JSON.stringify(r))),o?fg(g,r,d):g={...g,...r},Np(this.data,m,g),h.silent||this.emit("added",a,u,r)}removeResourceBundle(a,u){this.hasResourceBundle(a,u)&&delete this.data[a][u],this.removeNamespaces(u),this.emit("removed",a,u)}hasResourceBundle(a,u){return this.getResource(a,u)!==void 0}getResourceBundle(a,u){return u||(u=this.options.defaultNS),this.getResource(a,u)}getDataByLanguage(a){return this.data[a]}hasLanguageSomeTranslations(a){const u=this.getDataByLanguage(a);return!!(u&&Object.keys(u)||[]).find(o=>u[o]&&Object.keys(u[o]).length>0)}toJSON(){return this.data}}var dg={processors:{},addPostProcessor(c){this.processors[c.name]=c},handle(c,a,u,r,o){return c.forEach(d=>{a=this.processors[d]?.process(a,u,r,o)??a}),a}};const hg=Symbol("i18next/PATH_KEY");function ly(){const c=[],a=Object.create(null);let u;return a.get=(r,o)=>(u?.revoke?.(),o===hg?c:(c.push(o),u=Proxy.revocable(r,a),u.proxy)),Proxy.revocable(Object.create(null),a).proxy}function si(c,a){const{[hg]:u}=c(ly()),r=a?.keySeparator??".",o=a?.nsSeparator??":";if(u.length>1&&o){const d=a?.ns,h=Array.isArray(d)?d:null;if(h&&h.length>1&&h.slice(1).includes(u[0]))return`${u[0]}${o}${u.slice(1).join(r)}`}return u.join(r)}const Cp={},uc=c=>!he(c)&&typeof c!="boolean"&&typeof c!="number";class qu extends Qu{constructor(a,u={}){super(),Q0(["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"],a,this),this.options=u,this.options.keySeparator===void 0&&(this.options.keySeparator="."),this.logger=Nl.create("translator")}changeLanguage(a){a&&(this.language=a)}exists(a,u={interpolation:{}}){const r={...u};if(a==null)return!1;const o=this.resolve(a,r);if(o?.res===void 0)return!1;const d=uc(o.res);return!(r.returnObjects===!1&&d)}extractFromKey(a,u){let r=u.nsSeparator!==void 0?u.nsSeparator:this.options.nsSeparator;r===void 0&&(r=":");const o=u.keySeparator!==void 0?u.keySeparator:this.options.keySeparator;let d=u.ns||this.options.defaultNS||[];const h=r&&a.indexOf(r)>-1,m=!this.options.userDefinedKeySeparator&&!u.keySeparator&&!this.options.userDefinedNsSeparator&&!u.nsSeparator&&!ey(a,r,o);if(h&&!m){const g=a.match(this.interpolator.nestingRegexp);if(g&&g.length>0)return{key:a,namespaces:he(d)?[d]:d};const y=a.split(r);(r!==o||r===o&&this.options.ns.indexOf(y[0])>-1)&&(d=y.shift()),a=y.join(o)}return{key:a,namespaces:he(d)?[d]:d}}translate(a,u,r){let o=typeof u=="object"?{...u}:u;if(typeof o!="object"&&this.options.overloadTranslationOptionHandler&&(o=this.options.overloadTranslationOptionHandler(arguments)),typeof o=="object"&&(o={...o}),o||(o={}),a==null)return"";typeof a=="function"&&(a=si(a,{...this.options,...o})),Array.isArray(a)||(a=[String(a)]),a=a.map(F=>typeof F=="function"?si(F,{...this.options,...o}):String(F));const d=o.returnDetails!==void 0?o.returnDetails:this.options.returnDetails,h=o.keySeparator!==void 0?o.keySeparator:this.options.keySeparator,{key:m,namespaces:g}=this.extractFromKey(a[a.length-1],o),y=g[g.length-1];let E=o.nsSeparator!==void 0?o.nsSeparator:this.options.nsSeparator;E===void 0&&(E=":");const x=o.lng||this.language,M=o.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(x?.toLowerCase()==="cimode")return M?d?{res:`${y}${E}${m}`,usedKey:m,exactUsedKey:m,usedLng:x,usedNS:y,usedParams:this.getUsedParamsDetails(o)}:`${y}${E}${m}`:d?{res:m,usedKey:m,exactUsedKey:m,usedLng:x,usedNS:y,usedParams:this.getUsedParamsDetails(o)}:m;const H=this.resolve(a,o);let w=H?.res;const Z=H?.usedKey||m,ne=H?.exactUsedKey||m,re=["[object Number]","[object Function]","[object RegExp]"],te=o.joinArrays!==void 0?o.joinArrays:this.options.joinArrays,P=!this.i18nFormat||this.i18nFormat.handleAsObject,W=o.count!==void 0&&!he(o.count),ae=qu.hasDefaultValue(o),ie=W?this.pluralResolver.getSuffix(x,o.count,o):"",V=o.ordinal&&W?this.pluralResolver.getSuffix(x,o.count,{ordinal:!1}):"",De=W&&!o.ordinal&&o.count===0,oe=De&&o[`defaultValue${this.options.pluralSeparator}zero`]||o[`defaultValue${ie}`]||o[`defaultValue${V}`]||o.defaultValue;let ce=w;P&&!w&&ae&&(ce=oe);const ye=uc(ce),X=Object.prototype.toString.apply(ce);if(P&&ce&&ye&&re.indexOf(X)<0&&!(he(te)&&Array.isArray(ce))){if(!o.returnObjects&&!this.options.returnObjects){this.options.returnedObjectHandler||this.logger.warn("accessing an object - but returnObjects options is not enabled!");const F=this.options.returnedObjectHandler?this.options.returnedObjectHandler(Z,ce,{...o,ns:g}):`key '${m} (${this.language})' returned an object instead of string.`;return d?(H.res=F,H.usedParams=this.getUsedParamsDetails(o),H):F}if(h){const F=Array.isArray(ce),se=F?[]:{},Qe=F?ne:Z;for(const N in ce)if(Object.prototype.hasOwnProperty.call(ce,N)){const q=`${Qe}${h}${N}`;ae&&!w?se[N]=this.translate(q,{...o,defaultValue:uc(oe)?oe[N]:void 0,joinArrays:!1,ns:g}):se[N]=this.translate(q,{...o,joinArrays:!1,ns:g}),se[N]===q&&(se[N]=ce[N])}w=se}}else if(P&&he(te)&&Array.isArray(w))w=w.join(te),w&&(w=this.extendTranslation(w,a,o,r));else{let F=!1,se=!1;!this.isValidLookup(w)&&ae&&(F=!0,w=oe),this.isValidLookup(w)||(se=!0,w=m);const N=(o.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey)&&se?void 0:w,q=ae&&oe!==w&&this.options.updateMissing;if(se||F||q){if(this.logger.log(q?"updateKey":"missingKey",x,y,m,q?oe:w),h){const S=this.resolve(m,{...o,keySeparator:!1});S&&S.res&&this.logger.warn("Seems the loaded translations were in flat JSON format instead of nested. Either set keySeparator: false on init or make sure your translations are published in nested format.")}let $=[];const Se=this.languageUtils.getFallbackCodes(this.options.fallbackLng,o.lng||this.language);if(this.options.saveMissingTo==="fallback"&&Se&&Se[0])for(let S=0;S<Se.length;S++)$.push(Se[S]);else this.options.saveMissingTo==="all"?$=this.languageUtils.toResolveHierarchy(o.lng||this.language):$.push(o.lng||this.language);const _e=(S,D,G)=>{const Q=ae&&G!==w?G:N;this.options.missingKeyHandler?this.options.missingKeyHandler(S,y,D,Q,q,o):this.backendConnector?.saveMissing&&this.backendConnector.saveMissing(S,y,D,Q,q,o),this.emit("missingKey",S,y,D,w)};this.options.saveMissing&&(this.options.saveMissingPlurals&&W?$.forEach(S=>{const D=this.pluralResolver.getSuffixes(S,o);De&&o[`defaultValue${this.options.pluralSeparator}zero`]&&D.indexOf(`${this.options.pluralSeparator}zero`)<0&&D.push(`${this.options.pluralSeparator}zero`),D.forEach(G=>{_e([S],m+G,o[`defaultValue${G}`]||oe)})}):_e($,m,oe))}w=this.extendTranslation(w,a,o,H,r),se&&w===m&&this.options.appendNamespaceToMissingKey&&(w=`${y}${E}${m}`),(se||F)&&this.options.parseMissingKeyHandler&&(w=this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey?`${y}${E}${m}`:m,F?w:void 0,o))}return d?(H.res=w,H.usedParams=this.getUsedParamsDetails(o),H):w}extendTranslation(a,u,r,o,d){if(this.i18nFormat?.parse)a=this.i18nFormat.parse(a,{...this.options.interpolation.defaultVariables,...r},r.lng||this.language||o.usedLng,o.usedNS,o.usedKey,{resolved:o});else if(!r.skipInterpolation){r.interpolation&&this.interpolator.init({...r,interpolation:{...this.options.interpolation,...r.interpolation}});const g=he(a)&&(r?.interpolation?.skipOnVariables!==void 0?r.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables);let y;if(g){const x=a.match(this.interpolator.nestingRegexp);y=x&&x.length}let E=r.replace&&!he(r.replace)?r.replace:r;if(this.options.interpolation.defaultVariables&&(E={...this.options.interpolation.defaultVariables,...E}),a=this.interpolator.interpolate(a,E,r.lng||this.language||o.usedLng,r),g){const x=a.match(this.interpolator.nestingRegexp),M=x&&x.length;y<M&&(r.nest=!1)}!r.lng&&o&&o.res&&(r.lng=this.language||o.usedLng),r.nest!==!1&&(a=this.interpolator.nest(a,(...x)=>d?.[0]===x[0]&&!r.context?(this.logger.warn(`It seems you are nesting recursively key: ${x[0]} in key: ${u[0]}`),null):this.translate(...x,u),r)),r.interpolation&&this.interpolator.reset()}const h=r.postProcess||this.options.postProcess,m=he(h)?[h]:h;return a!=null&&m?.length&&r.applyPostProcessor!==!1&&(a=dg.handle(m,a,u,this.options&&this.options.postProcessPassResolved?{i18nResolved:{...o,usedParams:this.getUsedParamsDetails(r)},...r}:r,this)),a}resolve(a,u={}){let r,o,d,h,m;return he(a)&&(a=[a]),Array.isArray(a)&&(a=a.map(g=>typeof g=="function"?si(g,{...this.options,...u}):g)),a.forEach(g=>{if(this.isValidLookup(r))return;const y=this.extractFromKey(g,u),E=y.key;o=E;let x=y.namespaces;this.options.fallbackNS&&(x=x.concat(this.options.fallbackNS));const M=u.count!==void 0&&!he(u.count),H=M&&!u.ordinal&&u.count===0,w=u.context!==void 0&&(he(u.context)||typeof u.context=="number")&&u.context!=="",Z=u.lngs?u.lngs:this.languageUtils.toResolveHierarchy(u.lng||this.language,u.fallbackLng);x.forEach(ne=>{this.isValidLookup(r)||(m=ne,!Cp[`${Z[0]}-${ne}`]&&this.utils?.hasLoadedNamespace&&!this.utils?.hasLoadedNamespace(m)&&(Cp[`${Z[0]}-${ne}`]=!0,this.logger.warn(`key "${o}" for languages "${Z.join(", ")}" won't get resolved as namespace "${m}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!")),Z.forEach(re=>{if(this.isValidLookup(r))return;h=re;const te=[E];if(this.i18nFormat?.addLookupKeys)this.i18nFormat.addLookupKeys(te,E,re,ne,u);else{let W;M&&(W=this.pluralResolver.getSuffix(re,u.count,u));const ae=`${this.options.pluralSeparator}zero`,ie=`${this.options.pluralSeparator}ordinal${this.options.pluralSeparator}`;if(M&&(u.ordinal&&W.indexOf(ie)===0&&te.push(E+W.replace(ie,this.options.pluralSeparator)),te.push(E+W),H&&te.push(E+ae)),w){const V=`${E}${this.options.contextSeparator||"_"}${u.context}`;te.push(V),M&&(u.ordinal&&W.indexOf(ie)===0&&te.push(V+W.replace(ie,this.options.pluralSeparator)),te.push(V+W),H&&te.push(V+ae))}}let P;for(;P=te.pop();)this.isValidLookup(r)||(d=P,r=this.getResource(re,ne,P,u))}))})}),{res:r,usedKey:o,exactUsedKey:d,usedLng:h,usedNS:m}}isValidLookup(a){return a!==void 0&&!(!this.options.returnNull&&a===null)&&!(!this.options.returnEmptyString&&a==="")}getResource(a,u,r,o={}){return this.i18nFormat?.getResource?this.i18nFormat.getResource(a,u,r,o):this.resourceStore.getResource(a,u,r,o)}getUsedParamsDetails(a={}){const u=["defaultValue","ordinal","context","replace","lng","lngs","fallbackLng","ns","keySeparator","nsSeparator","returnObjects","returnDetails","joinArrays","postProcess","interpolation"],r=a.replace&&!he(a.replace);let o=r?a.replace:a;if(r&&typeof a.count<"u"&&(o.count=a.count),this.options.interpolation.defaultVariables&&(o={...this.options.interpolation.defaultVariables,...o}),!r){o={...o};for(const d of u)delete o[d]}return o}static hasDefaultValue(a){const u="defaultValue";for(const r in a)if(Object.prototype.hasOwnProperty.call(a,r)&&u===r.substring(0,u.length)&&a[r]!==void 0)return!0;return!1}}class Mp{constructor(a){this.options=a,this.supportedLngs=this.options.supportedLngs||!1,this.logger=Nl.create("languageUtils")}getScriptPartFromCode(a){if(a=ys(a),!a||a.indexOf("-")<0)return null;const u=a.split("-");return u.length===2||(u.pop(),u[u.length-1].toLowerCase()==="x")?null:this.formatLanguageCode(u.join("-"))}getLanguagePartFromCode(a){if(a=ys(a),!a||a.indexOf("-")<0)return a;const u=a.split("-");return this.formatLanguageCode(u[0])}formatLanguageCode(a){if(he(a)&&a.indexOf("-")>-1){let u;try{u=Intl.getCanonicalLocales(a)[0]}catch{}return u&&this.options.lowerCaseLng&&(u=u.toLowerCase()),u||(this.options.lowerCaseLng?a.toLowerCase():a)}return this.options.cleanCode||this.options.lowerCaseLng?a.toLowerCase():a}isSupportedCode(a){return(this.options.load==="languageOnly"||this.options.nonExplicitSupportedLngs)&&(a=this.getLanguagePartFromCode(a)),!this.supportedLngs||!this.supportedLngs.length||this.supportedLngs.indexOf(a)>-1}getBestMatchFromCodes(a){if(!a)return null;let u;return a.forEach(r=>{if(u)return;const o=this.formatLanguageCode(r);(!this.options.supportedLngs||this.isSupportedCode(o))&&(u=o)}),!u&&this.options.supportedLngs&&a.forEach(r=>{if(u)return;const o=this.getScriptPartFromCode(r);if(this.isSupportedCode(o))return u=o;const d=this.getLanguagePartFromCode(r);if(this.isSupportedCode(d))return u=d;u=this.options.supportedLngs.find(h=>{if(h===d)return h;if(!(h.indexOf("-")<0&&d.indexOf("-")<0)&&(h.indexOf("-")>0&&d.indexOf("-")<0&&h.substring(0,h.indexOf("-"))===d||h.indexOf(d)===0&&d.length>1))return h})}),u||(u=this.getFallbackCodes(this.options.fallbackLng)[0]),u}getFallbackCodes(a,u){if(!a)return[];if(typeof a=="function"&&(a=a(u)),he(a)&&(a=[a]),Array.isArray(a))return a;if(!u)return a.default||[];let r=a[u];return r||(r=a[this.getScriptPartFromCode(u)]),r||(r=a[this.formatLanguageCode(u)]),r||(r=a[this.getLanguagePartFromCode(u)]),r||(r=a.default),r||[]}toResolveHierarchy(a,u){const r=this.getFallbackCodes((u===!1?[]:u)||this.options.fallbackLng||[],a),o=[],d=h=>{h&&(this.isSupportedCode(h)?o.push(h):this.logger.warn(`rejecting language code not found in supportedLngs: ${h}`))};return he(a)&&(a.indexOf("-")>-1||a.indexOf("_")>-1)?(this.options.load!=="languageOnly"&&d(this.formatLanguageCode(a)),this.options.load!=="languageOnly"&&this.options.load!=="currentOnly"&&d(this.getScriptPartFromCode(a)),this.options.load!=="currentOnly"&&d(this.getLanguagePartFromCode(a))):he(a)&&d(this.formatLanguageCode(a)),r.forEach(h=>{o.indexOf(h)<0&&d(this.formatLanguageCode(h))}),o}}const wp={zero:0,one:1,two:2,few:3,many:4,other:5},kp={select:c=>c===1?"one":"other",resolvedOptions:()=>({pluralCategories:["one","other"]})};class ny{constructor(a,u={}){this.languageUtils=a,this.options=u,this.logger=Nl.create("pluralResolver"),this.pluralRulesCache={}}clearCache(){this.pluralRulesCache={}}getRule(a,u={}){const r=ys(a==="dev"?"en":a),o=u.ordinal?"ordinal":"cardinal",d=JSON.stringify({cleanedCode:r,type:o});if(d in this.pluralRulesCache)return this.pluralRulesCache[d];let h;try{h=new Intl.PluralRules(r,{type:o})}catch{if(typeof Intl>"u")return this.logger.error("No Intl support, please use an Intl polyfill!"),kp;if(!a.match(/-|_/))return kp;const g=this.languageUtils.getLanguagePartFromCode(a);h=this.getRule(g,u)}return this.pluralRulesCache[d]=h,h}needsPlural(a,u={}){let r=this.getRule(a,u);return r||(r=this.getRule("dev",u)),r?.resolvedOptions().pluralCategories.length>1}getPluralFormsOfKey(a,u,r={}){return this.getSuffixes(a,r).map(o=>`${u}${o}`)}getSuffixes(a,u={}){let r=this.getRule(a,u);return r||(r=this.getRule("dev",u)),r?r.resolvedOptions().pluralCategories.sort((o,d)=>wp[o]-wp[d]).map(o=>`${this.options.prepend}${u.ordinal?`ordinal${this.options.prepend}`:""}${o}`):[]}getSuffix(a,u,r={}){const o=this.getRule(a,r);return o?`${this.options.prepend}${r.ordinal?`ordinal${this.options.prepend}`:""}${o.select(u)}`:(this.logger.warn(`no plural rule found for: ${a}`),this.getSuffix("dev",u,r))}}const Lp=(c,a,u,r=".",o=!0)=>{let d=$0(c,a,u);return!d&&o&&he(u)&&(d=vc(c,u,r),d===void 0&&(d=vc(a,u,r))),d},rc=c=>c.replace(/\$/g,"$$$$");class Up{constructor(a={}){this.logger=Nl.create("interpolator"),this.options=a,this.format=a?.interpolation?.format||(u=>u),this.init(a)}init(a={}){a.interpolation||(a.interpolation={escapeValue:!0});const{escape:u,escapeValue:r,useRawValueToEscape:o,prefix:d,prefixEscaped:h,suffix:m,suffixEscaped:g,formatSeparator:y,unescapeSuffix:E,unescapePrefix:x,nestingPrefix:M,nestingPrefixEscaped:H,nestingSuffix:w,nestingSuffixEscaped:Z,nestingOptionsSeparator:ne,maxReplaces:re,alwaysFormat:te}=a.interpolation;this.escape=u!==void 0?u:F0,this.escapeValue=r!==void 0?r:!0,this.useRawValueToEscape=o!==void 0?o:!1,this.prefix=d?ua(d):h||"{{",this.suffix=m?ua(m):g||"}}",this.formatSeparator=y||",",this.unescapePrefix=E?"":x||"-",this.unescapeSuffix=this.unescapePrefix?"":E||"",this.nestingPrefix=M?ua(M):H||ua("$t("),this.nestingSuffix=w?ua(w):Z||ua(")"),this.nestingOptionsSeparator=ne||",",this.maxReplaces=re||1e3,this.alwaysFormat=te!==void 0?te:!1,this.resetRegExp()}reset(){this.options&&this.init(this.options)}resetRegExp(){const a=(u,r)=>u?.source===r?(u.lastIndex=0,u):new RegExp(r,"g");this.regexp=a(this.regexp,`${this.prefix}(.+?)${this.suffix}`),this.regexpUnescape=a(this.regexpUnescape,`${this.prefix}${this.unescapePrefix}(.+?)${this.unescapeSuffix}${this.suffix}`),this.nestingRegexp=a(this.nestingRegexp,`${this.nestingPrefix}((?:[^()"']+|"[^"]*"|'[^']*'|\\((?:[^()]|"[^"]*"|'[^']*')*\\))*?)${this.nestingSuffix}`)}interpolate(a,u,r,o){let d,h,m;const g=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{},y=H=>{if(H.indexOf(this.formatSeparator)<0){const re=Lp(u,g,H,this.options.keySeparator,this.options.ignoreJSONStructure);return this.alwaysFormat?this.format(re,void 0,r,{...o,...u,interpolationkey:H}):re}const w=H.split(this.formatSeparator),Z=w.shift().trim(),ne=w.join(this.formatSeparator).trim();return this.format(Lp(u,g,Z,this.options.keySeparator,this.options.ignoreJSONStructure),ne,r,{...o,...u,interpolationkey:Z})};this.resetRegExp();const E=o?.missingInterpolationHandler||this.options.missingInterpolationHandler,x=o?.interpolation?.skipOnVariables!==void 0?o.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables;return[{regex:this.regexpUnescape,safeValue:H=>rc(H)},{regex:this.regexp,safeValue:H=>this.escapeValue?rc(this.escape(H)):rc(H)}].forEach(H=>{for(m=0;d=H.regex.exec(a);){const w=d[1].trim();if(h=y(w),h===void 0)if(typeof E=="function"){const ne=E(a,d,o);h=he(ne)?ne:""}else if(o&&Object.prototype.hasOwnProperty.call(o,w))h="";else if(x){h=d[0];continue}else this.logger.warn(`missed to pass in variable ${w} for interpolating ${a}`),h="";else!he(h)&&!this.useRawValueToEscape&&(h=Op(h));const Z=H.safeValue(h);if(a=a.replace(d[0],Z),x?(H.regex.lastIndex+=h.length,H.regex.lastIndex-=d[0].length):H.regex.lastIndex=0,m++,m>=this.maxReplaces)break}}),a}nest(a,u,r={}){let o,d,h;const m=(g,y)=>{const E=this.nestingOptionsSeparator;if(g.indexOf(E)<0)return g;const x=g.split(new RegExp(`${ua(E)}[ ]*{`));let M=`{${x[1]}`;g=x[0],M=this.interpolate(M,h);const H=M.match(/'/g),w=M.match(/"/g);((H?.length??0)%2===0&&!w||(w?.length??0)%2!==0)&&(M=M.replace(/'/g,'"'));try{h=JSON.parse(M),y&&(h={...y,...h})}catch(Z){return this.logger.warn(`failed parsing options string in nesting for key ${g}`,Z),`${g}${E}${M}`}return h.defaultValue&&h.defaultValue.indexOf(this.prefix)>-1&&delete h.defaultValue,g};for(;o=this.nestingRegexp.exec(a);){let g=[];h={...r},h=h.replace&&!he(h.replace)?h.replace:h,h.applyPostProcessor=!1,delete h.defaultValue;const y=/{.*}/.test(o[1])?o[1].lastIndexOf("}")+1:o[1].indexOf(this.formatSeparator);if(y!==-1&&(g=o[1].slice(y).split(this.formatSeparator).map(E=>E.trim()).filter(Boolean),o[1]=o[1].slice(0,y)),d=u(m.call(this,o[1].trim(),h),h),d&&o[0]===a&&!he(d))return d;he(d)||(d=Op(d)),d||(this.logger.warn(`missed to resolve ${o[1]} for nesting ${a}`),d=""),g.length&&(d=g.reduce((E,x)=>this.format(E,x,r.lng,{...r,interpolationkey:o[1].trim()}),d.trim())),a=a.replace(o[0],d),this.regexp.lastIndex=0}return a}}const ay=c=>{let a=c.toLowerCase().trim();const u={};if(c.indexOf("(")>-1){const r=c.split("(");a=r[0].toLowerCase().trim();const o=r[1].substring(0,r[1].length-1);a==="currency"&&o.indexOf(":")<0?u.currency||(u.currency=o.trim()):a==="relativetime"&&o.indexOf(":")<0?u.range||(u.range=o.trim()):o.split(";").forEach(h=>{if(h){const[m,...g]=h.split(":"),y=g.join(":").trim().replace(/^'+|'+$/g,""),E=m.trim();u[E]||(u[E]=y),y==="false"&&(u[E]=!1),y==="true"&&(u[E]=!0),isNaN(y)||(u[E]=parseInt(y,10))}})}return{formatName:a,formatOptions:u}},jp=c=>{const a={};return(u,r,o)=>{let d=o;o&&o.interpolationkey&&o.formatParams&&o.formatParams[o.interpolationkey]&&o[o.interpolationkey]&&(d={...d,[o.interpolationkey]:void 0});const h=r+JSON.stringify(d);let m=a[h];return m||(m=c(ys(r),o),a[h]=m),m(u)}},iy=c=>(a,u,r)=>c(ys(u),r)(a);class sy{constructor(a={}){this.logger=Nl.create("formatter"),this.options=a,this.init(a)}init(a,u={interpolation:{}}){this.formatSeparator=u.interpolation.formatSeparator||",";const r=u.cacheInBuiltFormats?jp:iy;this.formats={number:r((o,d)=>{const h=new Intl.NumberFormat(o,{...d});return m=>h.format(m)}),currency:r((o,d)=>{const h=new Intl.NumberFormat(o,{...d,style:"currency"});return m=>h.format(m)}),datetime:r((o,d)=>{const h=new Intl.DateTimeFormat(o,{...d});return m=>h.format(m)}),relativetime:r((o,d)=>{const h=new Intl.RelativeTimeFormat(o,{...d});return m=>h.format(m,d.range||"day")}),list:r((o,d)=>{const h=new Intl.ListFormat(o,{...d});return m=>h.format(m)})}}add(a,u){this.formats[a.toLowerCase().trim()]=u}addCached(a,u){this.formats[a.toLowerCase().trim()]=jp(u)}format(a,u,r,o={}){const d=u.split(this.formatSeparator);if(d.length>1&&d[0].indexOf("(")>1&&d[0].indexOf(")")<0&&d.find(m=>m.indexOf(")")>-1)){const m=d.findIndex(g=>g.indexOf(")")>-1);d[0]=[d[0],...d.splice(1,m)].join(this.formatSeparator)}return d.reduce((m,g)=>{const{formatName:y,formatOptions:E}=ay(g);if(this.formats[y]){let x=m;try{const M=o?.formatParams?.[o.interpolationkey]||{},H=M.locale||M.lng||o.locale||o.lng||r;x=this.formats[y](m,H,{...E,...o,...M})}catch(M){this.logger.warn(M)}return x}else this.logger.warn(`there was no format function for ${y}`);return m},a)}}const uy=(c,a)=>{c.pending[a]!==void 0&&(delete c.pending[a],c.pendingCount--)};class ry extends Qu{constructor(a,u,r,o={}){super(),this.backend=a,this.store=u,this.services=r,this.languageUtils=r.languageUtils,this.options=o,this.logger=Nl.create("backendConnector"),this.waitingReads=[],this.maxParallelReads=o.maxParallelReads||10,this.readingCalls=0,this.maxRetries=o.maxRetries>=0?o.maxRetries:5,this.retryTimeout=o.retryTimeout>=1?o.retryTimeout:350,this.state={},this.queue=[],this.backend?.init?.(r,o.backend,o)}queueLoad(a,u,r,o){const d={},h={},m={},g={};return a.forEach(y=>{let E=!0;u.forEach(x=>{const M=`${y}|${x}`;!r.reload&&this.store.hasResourceBundle(y,x)?this.state[M]=2:this.state[M]<0||(this.state[M]===1?h[M]===void 0&&(h[M]=!0):(this.state[M]=1,E=!1,h[M]===void 0&&(h[M]=!0),d[M]===void 0&&(d[M]=!0),g[x]===void 0&&(g[x]=!0)))}),E||(m[y]=!0)}),(Object.keys(d).length||Object.keys(h).length)&&this.queue.push({pending:h,pendingCount:Object.keys(h).length,loaded:{},errors:[],callback:o}),{toLoad:Object.keys(d),pending:Object.keys(h),toLoadLanguages:Object.keys(m),toLoadNamespaces:Object.keys(g)}}loaded(a,u,r){const o=a.split("|"),d=o[0],h=o[1];u&&this.emit("failedLoading",d,h,u),!u&&r&&this.store.addResourceBundle(d,h,r,void 0,void 0,{skipCopy:!0}),this.state[a]=u?-1:2,u&&r&&(this.state[a]=0);const m={};this.queue.forEach(g=>{K0(g.loaded,[d],h),uy(g,a),u&&g.errors.push(u),g.pendingCount===0&&!g.done&&(Object.keys(g.loaded).forEach(y=>{m[y]||(m[y]={});const E=g.loaded[y];E.length&&E.forEach(x=>{m[y][x]===void 0&&(m[y][x]=!0)})}),g.done=!0,g.errors.length?g.callback(g.errors):g.callback())}),this.emit("loaded",m),this.queue=this.queue.filter(g=>!g.done)}read(a,u,r,o=0,d=this.retryTimeout,h){if(!a.length)return h(null,{});if(this.readingCalls>=this.maxParallelReads){this.waitingReads.push({lng:a,ns:u,fcName:r,tried:o,wait:d,callback:h});return}this.readingCalls++;const m=(y,E)=>{if(this.readingCalls--,this.waitingReads.length>0){const x=this.waitingReads.shift();this.read(x.lng,x.ns,x.fcName,x.tried,x.wait,x.callback)}if(y&&E&&o<this.maxRetries){setTimeout(()=>{this.read.call(this,a,u,r,o+1,d*2,h)},d);return}h(y,E)},g=this.backend[r].bind(this.backend);if(g.length===2){try{const y=g(a,u);y&&typeof y.then=="function"?y.then(E=>m(null,E)).catch(m):m(null,y)}catch(y){m(y)}return}return g(a,u,m)}prepareLoading(a,u,r={},o){if(!this.backend)return this.logger.warn("No backend was added via i18next.use. Will not load resources."),o&&o();he(a)&&(a=this.languageUtils.toResolveHierarchy(a)),he(u)&&(u=[u]);const d=this.queueLoad(a,u,r,o);if(!d.toLoad.length)return d.pending.length||o(),null;d.toLoad.forEach(h=>{this.loadOne(h)})}load(a,u,r){this.prepareLoading(a,u,{},r)}reload(a,u,r){this.prepareLoading(a,u,{reload:!0},r)}loadOne(a,u=""){const r=a.split("|"),o=r[0],d=r[1];this.read(o,d,"read",void 0,void 0,(h,m)=>{h&&this.logger.warn(`${u}loading namespace ${d} for language ${o} failed`,h),!h&&m&&this.logger.log(`${u}loaded namespace ${d} for language ${o}`,m),this.loaded(a,h,m)})}saveMissing(a,u,r,o,d,h={},m=()=>{}){if(this.services?.utils?.hasLoadedNamespace&&!this.services?.utils?.hasLoadedNamespace(u)){this.logger.warn(`did not save key "${r}" as the namespace "${u}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!");return}if(!(r==null||r==="")){if(this.backend?.create){const g={...h,isUpdate:d},y=this.backend.create.bind(this.backend);if(y.length<6)try{let E;y.length===5?E=y(a,u,r,o,g):E=y(a,u,r,o),E&&typeof E.then=="function"?E.then(x=>m(null,x)).catch(m):m(null,E)}catch(E){m(E)}else y(a,u,r,o,m,g)}!a||!a[0]||this.store.addResource(a[0],u,r,o)}}}const oc=()=>({debug:!1,initAsync:!0,ns:["translation"],defaultNS:["translation"],fallbackLng:["dev"],fallbackNS:!1,supportedLngs:!1,nonExplicitSupportedLngs:!1,load:"all",preload:!1,simplifyPluralSuffix:!0,keySeparator:".",nsSeparator:":",pluralSeparator:"_",contextSeparator:"_",partialBundledLanguages:!1,saveMissing:!1,updateMissing:!1,saveMissingTo:"fallback",saveMissingPlurals:!0,missingKeyHandler:!1,missingInterpolationHandler:!1,postProcess:!1,postProcessPassResolved:!1,returnNull:!1,returnEmptyString:!0,returnObjects:!1,joinArrays:!1,returnedObjectHandler:!1,parseMissingKeyHandler:!1,appendNamespaceToMissingKey:!1,appendNamespaceToCIMode:!1,overloadTranslationOptionHandler:c=>{let a={};if(typeof c[1]=="object"&&(a=c[1]),he(c[1])&&(a.defaultValue=c[1]),he(c[2])&&(a.tDescription=c[2]),typeof c[2]=="object"||typeof c[3]=="object"){const u=c[3]||c[2];Object.keys(u).forEach(r=>{a[r]=u[r]})}return a},interpolation:{escapeValue:!0,format:c=>c,prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!0},cacheInBuiltFormats:!0}),Hp=c=>(he(c.ns)&&(c.ns=[c.ns]),he(c.fallbackLng)&&(c.fallbackLng=[c.fallbackLng]),he(c.fallbackNS)&&(c.fallbackNS=[c.fallbackNS]),c.supportedLngs?.indexOf?.("cimode")<0&&(c.supportedLngs=c.supportedLngs.concat(["cimode"])),typeof c.initImmediate=="boolean"&&(c.initAsync=c.initImmediate),c),ku=()=>{},oy=c=>{Object.getOwnPropertyNames(Object.getPrototypeOf(c)).forEach(u=>{typeof c[u]=="function"&&(c[u]=c[u].bind(c))})},pg="__i18next_supportNoticeShown",cy=()=>!!(typeof globalThis<"u"&&globalThis[pg]||typeof process<"u"&&sc&&sc.I18NEXT_NO_SUPPORT_NOTICE||typeof process<"u"&&sc),fy=()=>{typeof globalThis<"u"&&(globalThis[pg]=!0)},dy=c=>!!(c?.modules?.backend?.name?.indexOf("Locize")>0||c?.modules?.backend?.constructor?.name?.indexOf("Locize")>0||c?.options?.backend?.backends&&c.options.backend.backends.some(a=>a?.name?.indexOf("Locize")>0||a?.constructor?.name?.indexOf("Locize")>0)||c?.options?.backend?.projectId||c?.options?.backend?.backendOptions&&c.options.backend.backendOptions.some(a=>a?.projectId));class gs extends Qu{constructor(a={},u){if(super(),this.options=Hp(a),this.services={},this.logger=Nl,this.modules={external:[]},oy(this),u&&!this.isInitialized&&!a.isClone){if(!this.options.initAsync)return this.init(a,u),this;setTimeout(()=>{this.init(a,u)},0)}}init(a={},u){this.isInitializing=!0,typeof a=="function"&&(u=a,a={}),a.defaultNS==null&&a.ns&&(he(a.ns)?a.defaultNS=a.ns:a.ns.indexOf("translation")<0&&(a.defaultNS=a.ns[0]));const r=oc();this.options={...r,...this.options,...Hp(a)},this.options.interpolation={...r.interpolation,...this.options.interpolation},a.keySeparator!==void 0&&(this.options.userDefinedKeySeparator=a.keySeparator),a.nsSeparator!==void 0&&(this.options.userDefinedNsSeparator=a.nsSeparator),typeof this.options.overloadTranslationOptionHandler!="function"&&(this.options.overloadTranslationOptionHandler=r.overloadTranslationOptionHandler),this.options.showSupportNotice!==!1&&!dy(this)&&!cy()&&(typeof console<"u"&&typeof console.info<"u"&&console.info("🌐 i18next is made possible by our own product, Locize — consider powering your project with managed localization (AI, CDN, integrations): https://locize.com 💙"),fy());const o=y=>y?typeof y=="function"?new y:y:null;if(!this.options.isClone){this.modules.logger?Nl.init(o(this.modules.logger),this.options):Nl.init(null,this.options);let y;this.modules.formatter?y=this.modules.formatter:y=sy;const E=new Mp(this.options);this.store=new Dp(this.options.resources,this.options);const x=this.services;x.logger=Nl,x.resourceStore=this.store,x.languageUtils=E,x.pluralResolver=new ny(E,{prepend:this.options.pluralSeparator,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),this.options.interpolation.format&&this.options.interpolation.format!==r.interpolation.format&&this.logger.deprecate("init: you are still using the legacy format function, please use the new approach: https://www.i18next.com/translation-function/formatting"),y&&(!this.options.interpolation.format||this.options.interpolation.format===r.interpolation.format)&&(x.formatter=o(y),x.formatter.init&&x.formatter.init(x,this.options),this.options.interpolation.format=x.formatter.format.bind(x.formatter)),x.interpolator=new Up(this.options),x.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},x.backendConnector=new ry(o(this.modules.backend),x.resourceStore,x,this.options),x.backendConnector.on("*",(H,...w)=>{this.emit(H,...w)}),this.modules.languageDetector&&(x.languageDetector=o(this.modules.languageDetector),x.languageDetector.init&&x.languageDetector.init(x,this.options.detection,this.options)),this.modules.i18nFormat&&(x.i18nFormat=o(this.modules.i18nFormat),x.i18nFormat.init&&x.i18nFormat.init(this)),this.translator=new qu(this.services,this.options),this.translator.on("*",(H,...w)=>{this.emit(H,...w)}),this.modules.external.forEach(H=>{H.init&&H.init(this)})}if(this.format=this.options.interpolation.format,u||(u=ku),this.options.fallbackLng&&!this.services.languageDetector&&!this.options.lng){const y=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);y.length>0&&y[0]!=="dev"&&(this.options.lng=y[0])}!this.services.languageDetector&&!this.options.lng&&this.logger.warn("init: no languageDetector is used and no lng is defined"),["getResource","hasResourceBundle","getResourceBundle","getDataByLanguage"].forEach(y=>{this[y]=(...E)=>this.store[y](...E)}),["addResource","addResources","addResourceBundle","removeResourceBundle"].forEach(y=>{this[y]=(...E)=>(this.store[y](...E),this)});const m=us(),g=()=>{const y=(E,x)=>{this.isInitializing=!1,this.isInitialized&&!this.initializedStoreOnce&&this.logger.warn("init: i18next is already initialized. You should call init just once!"),this.isInitialized=!0,this.options.isClone||this.logger.log("initialized",this.options),this.emit("initialized",this.options),m.resolve(x),u(E,x)};if(this.languages&&!this.isInitialized)return y(null,this.t.bind(this));this.changeLanguage(this.options.lng,y)};return this.options.resources||!this.options.initAsync?g():setTimeout(g,0),m}loadResources(a,u=ku){let r=u;const o=he(a)?a:this.language;if(typeof a=="function"&&(r=a),!this.options.resources||this.options.partialBundledLanguages){if(o?.toLowerCase()==="cimode"&&(!this.options.preload||this.options.preload.length===0))return r();const d=[],h=m=>{if(!m||m==="cimode")return;this.services.languageUtils.toResolveHierarchy(m).forEach(y=>{y!=="cimode"&&d.indexOf(y)<0&&d.push(y)})};o?h(o):this.services.languageUtils.getFallbackCodes(this.options.fallbackLng).forEach(g=>h(g)),this.options.preload?.forEach?.(m=>h(m)),this.services.backendConnector.load(d,this.options.ns,m=>{!m&&!this.resolvedLanguage&&this.language&&this.setResolvedLanguage(this.language),r(m)})}else r(null)}reloadResources(a,u,r){const o=us();return typeof a=="function"&&(r=a,a=void 0),typeof u=="function"&&(r=u,u=void 0),a||(a=this.languages),u||(u=this.options.ns),r||(r=ku),this.services.backendConnector.reload(a,u,d=>{o.resolve(),r(d)}),o}use(a){if(!a)throw new Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");if(!a.type)throw new Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");return a.type==="backend"&&(this.modules.backend=a),(a.type==="logger"||a.log&&a.warn&&a.error)&&(this.modules.logger=a),a.type==="languageDetector"&&(this.modules.languageDetector=a),a.type==="i18nFormat"&&(this.modules.i18nFormat=a),a.type==="postProcessor"&&dg.addPostProcessor(a),a.type==="formatter"&&(this.modules.formatter=a),a.type==="3rdParty"&&this.modules.external.push(a),this}setResolvedLanguage(a){if(!(!a||!this.languages)&&!(["cimode","dev"].indexOf(a)>-1)){for(let u=0;u<this.languages.length;u++){const r=this.languages[u];if(!(["cimode","dev"].indexOf(r)>-1)&&this.store.hasLanguageSomeTranslations(r)){this.resolvedLanguage=r;break}}!this.resolvedLanguage&&this.languages.indexOf(a)<0&&this.store.hasLanguageSomeTranslations(a)&&(this.resolvedLanguage=a,this.languages.unshift(a))}}changeLanguage(a,u){this.isLanguageChangingTo=a;const r=us();this.emit("languageChanging",a);const o=m=>{this.language=m,this.languages=this.services.languageUtils.toResolveHierarchy(m),this.resolvedLanguage=void 0,this.setResolvedLanguage(m)},d=(m,g)=>{g?this.isLanguageChangingTo===a&&(o(g),this.translator.changeLanguage(g),this.isLanguageChangingTo=void 0,this.emit("languageChanged",g),this.logger.log("languageChanged",g)):this.isLanguageChangingTo=void 0,r.resolve((...y)=>this.t(...y)),u&&u(m,(...y)=>this.t(...y))},h=m=>{!a&&!m&&this.services.languageDetector&&(m=[]);const g=he(m)?m:m&&m[0],y=this.store.hasLanguageSomeTranslations(g)?g:this.services.languageUtils.getBestMatchFromCodes(he(m)?[m]:m);y&&(this.language||o(y),this.translator.language||this.translator.changeLanguage(y),this.services.languageDetector?.cacheUserLanguage?.(y)),this.loadResources(y,E=>{d(E,y)})};return!a&&this.services.languageDetector&&!this.services.languageDetector.async?h(this.services.languageDetector.detect()):!a&&this.services.languageDetector&&this.services.languageDetector.async?this.services.languageDetector.detect.length===0?this.services.languageDetector.detect().then(h):this.services.languageDetector.detect(h):h(a),r}getFixedT(a,u,r){const o=(d,h,...m)=>{let g;typeof h!="object"?g=this.options.overloadTranslationOptionHandler([d,h].concat(m)):g={...h},g.lng=g.lng||o.lng,g.lngs=g.lngs||o.lngs,g.ns=g.ns||o.ns,g.keyPrefix!==""&&(g.keyPrefix=g.keyPrefix||r||o.keyPrefix);const y={...this.options,...g};typeof g.keyPrefix=="function"&&(g.keyPrefix=si(g.keyPrefix,y));const E=this.options.keySeparator||".";let x;return g.keyPrefix&&Array.isArray(d)?x=d.map(M=>(typeof M=="function"&&(M=si(M,y)),`${g.keyPrefix}${E}${M}`)):(typeof d=="function"&&(d=si(d,y)),x=g.keyPrefix?`${g.keyPrefix}${E}${d}`:d),this.t(x,g)};return he(a)?o.lng=a:o.lngs=a,o.ns=u,o.keyPrefix=r,o}t(...a){return this.translator?.translate(...a)}exists(...a){return this.translator?.exists(...a)}setDefaultNamespace(a){this.options.defaultNS=a}hasLoadedNamespace(a,u={}){if(!this.isInitialized)return this.logger.warn("hasLoadedNamespace: i18next was not initialized",this.languages),!1;if(!this.languages||!this.languages.length)return this.logger.warn("hasLoadedNamespace: i18n.languages were undefined or empty",this.languages),!1;const r=u.lng||this.resolvedLanguage||this.languages[0],o=this.options?this.options.fallbackLng:!1,d=this.languages[this.languages.length-1];if(r.toLowerCase()==="cimode")return!0;const h=(m,g)=>{const y=this.services.backendConnector.state[`${m}|${g}`];return y===-1||y===0||y===2};if(u.precheck){const m=u.precheck(this,h);if(m!==void 0)return m}return!!(this.hasResourceBundle(r,a)||!this.services.backendConnector.backend||this.options.resources&&!this.options.partialBundledLanguages||h(r,a)&&(!o||h(d,a)))}loadNamespaces(a,u){const r=us();return this.options.ns?(he(a)&&(a=[a]),a.forEach(o=>{this.options.ns.indexOf(o)<0&&this.options.ns.push(o)}),this.loadResources(o=>{r.resolve(),u&&u(o)}),r):(u&&u(),Promise.resolve())}loadLanguages(a,u){const r=us();he(a)&&(a=[a]);const o=this.options.preload||[],d=a.filter(h=>o.indexOf(h)<0&&this.services.languageUtils.isSupportedCode(h));return d.length?(this.options.preload=o.concat(d),this.loadResources(h=>{r.resolve(),u&&u(h)}),r):(u&&u(),Promise.resolve())}dir(a){if(a||(a=this.resolvedLanguage||(this.languages?.length>0?this.languages[0]:this.language)),!a)return"rtl";try{const o=new Intl.Locale(a);if(o&&o.getTextInfo){const d=o.getTextInfo();if(d&&d.direction)return d.direction}}catch{}const u=["ar","shu","sqr","ssh","xaa","yhd","yud","aao","abh","abv","acm","acq","acw","acx","acy","adf","ads","aeb","aec","afb","ajp","apc","apd","arb","arq","ars","ary","arz","auz","avl","ayh","ayl","ayn","ayp","bbz","pga","he","iw","ps","pbt","pbu","pst","prp","prd","ug","ur","ydd","yds","yih","ji","yi","hbo","men","xmn","fa","jpr","peo","pes","prs","dv","sam","ckb"],r=this.services?.languageUtils||new Mp(oc());return a.toLowerCase().indexOf("-latn")>1?"ltr":u.indexOf(r.getLanguagePartFromCode(a))>-1||a.toLowerCase().indexOf("-arab")>1?"rtl":"ltr"}static createInstance(a={},u){const r=new gs(a,u);return r.createInstance=gs.createInstance,r}cloneInstance(a={},u=ku){const r=a.forkResourceStore;r&&delete a.forkResourceStore;const o={...this.options,...a,isClone:!0},d=new gs(o);if((a.debug!==void 0||a.prefix!==void 0)&&(d.logger=d.logger.clone(a)),["store","services","language"].forEach(m=>{d[m]=this[m]}),d.services={...this.services},d.services.utils={hasLoadedNamespace:d.hasLoadedNamespace.bind(d)},r){const m=Object.keys(this.store.data).reduce((g,y)=>(g[y]={...this.store.data[y]},g[y]=Object.keys(g[y]).reduce((E,x)=>(E[x]={...g[y][x]},E),g[y]),g),{});d.store=new Dp(m,o),d.services.resourceStore=d.store}if(a.interpolation){const g={...oc().interpolation,...this.options.interpolation,...a.interpolation},y={...o,interpolation:g};d.services.interpolator=new Up(y)}return d.translator=new qu(d.services,o),d.translator.on("*",(m,...g)=>{d.emit(m,...g)}),d.init(o,u),d.translator.options=o,d.translator.backendConnector.services.utils={hasLoadedNamespace:d.hasLoadedNamespace.bind(d)},d}toJSON(){return{options:this.options,store:this.store,language:this.language,languages:this.languages,resolvedLanguage:this.resolvedLanguage}}}const kt=gs.createInstance();kt.createInstance;kt.dir;kt.init;kt.loadResources;kt.reloadResources;kt.use;kt.changeLanguage;kt.getFixedT;kt.t;kt.exists;kt.setDefaultNamespace;kt.hasLoadedNamespace;kt.loadNamespaces;kt.loadLanguages;const hy=(c,a,u,r)=>{const o=[u,{code:a,...r||{}}];if(c?.services?.logger?.forward)return c.services.logger.forward(o,"warn","react-i18next::",!0);oa(o[0])&&(o[0]=`react-i18next:: ${o[0]}`),c?.services?.logger?.warn?c.services.logger.warn(...o):console?.warn&&console.warn(...o)},Bp={},Sc=(c,a,u,r)=>{oa(u)&&Bp[u]||(oa(u)&&(Bp[u]=new Date),hy(c,a,u,r))},gg=(c,a)=>()=>{if(c.isInitialized)a();else{const u=()=>{setTimeout(()=>{c.off("initialized",u)},0),a()};c.on("initialized",u)}},xc=(c,a,u)=>{c.loadNamespaces(a,gg(c,u))},qp=(c,a,u,r)=>{if(oa(u)&&(u=[u]),c.options.preload&&c.options.preload.indexOf(a)>-1)return xc(c,u,r);u.forEach(o=>{c.options.ns.indexOf(o)<0&&c.options.ns.push(o)}),c.loadLanguages(a,gg(c,r))},py=(c,a,u={})=>!a.languages||!a.languages.length?(Sc(a,"NO_LANGUAGES","i18n.languages were undefined or empty",{languages:a.languages}),!0):a.hasLoadedNamespace(c,{lng:u.lng,precheck:(r,o)=>{if(u.bindI18n&&u.bindI18n.indexOf("languageChanging")>-1&&r.services.backendConnector.backend&&r.isLanguageChangingTo&&!o(r.isLanguageChangingTo,c))return!1}}),oa=c=>typeof c=="string",gy=c=>typeof c=="object"&&c!==null,my=/&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34|nbsp|#160|copy|#169|reg|#174|hellip|#8230|#x2F|#47);/g,yy={"&amp;":"&","&#38;":"&","&lt;":"<","&#60;":"<","&gt;":">","&#62;":">","&apos;":"'","&#39;":"'","&quot;":'"',"&#34;":'"',"&nbsp;":" ","&#160;":" ","&copy;":"©","&#169;":"©","&reg;":"®","&#174;":"®","&hellip;":"…","&#8230;":"…","&#x2F;":"/","&#47;":"/"},by=c=>yy[c],vy=c=>c.replace(my,by);let Tc={bindI18n:"languageChanged",bindI18nStore:"",transEmptyNodeValue:"",transSupportBasicHtmlNodes:!0,transWrapTextNodes:"",transKeepBasicHtmlNodesFor:["br","strong","i","p"],useSuspense:!0,unescape:vy,transDefaultProps:void 0};const Sy=(c={})=>{Tc={...Tc,...c}},xy=()=>Tc;let mg;const Ty=c=>{mg=c},Ey=()=>mg,Ay={type:"3rdParty",init(c){Sy(c.options.react),Ty(c)}},_y=pe.createContext();class Oy{constructor(){this.usedNamespaces={}}addUsedNamespaces(a){a.forEach(u=>{this.usedNamespaces[u]||(this.usedNamespaces[u]=!0)})}getUsedNamespaces(){return Object.keys(this.usedNamespaces)}}var cc={exports:{}},fc={};var Yp;function Ry(){if(Yp)return fc;Yp=1;var c=Vu();function a(x,M){return x===M&&(x!==0||1/x===1/M)||x!==x&&M!==M}var u=typeof Object.is=="function"?Object.is:a,r=c.useState,o=c.useEffect,d=c.useLayoutEffect,h=c.useDebugValue;function m(x,M){var H=M(),w=r({inst:{value:H,getSnapshot:M}}),Z=w[0].inst,ne=w[1];return d(function(){Z.value=H,Z.getSnapshot=M,g(Z)&&ne({inst:Z})},[x,H,M]),o(function(){return g(Z)&&ne({inst:Z}),x(function(){g(Z)&&ne({inst:Z})})},[x]),h(H),H}function g(x){var M=x.getSnapshot;x=x.value;try{var H=M();return!u(x,H)}catch{return!0}}function y(x,M){return M()}var E=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?y:m;return fc.useSyncExternalStore=c.useSyncExternalStore!==void 0?c.useSyncExternalStore:E,fc}var Gp;function zy(){return Gp||(Gp=1,cc.exports=Ry()),cc.exports}var Ny=zy();const Dy=(c,a)=>{if(oa(a))return a;if(gy(a)&&oa(a.defaultValue))return a.defaultValue;if(typeof c=="function")return"";if(Array.isArray(c)){const u=c[c.length-1];return typeof u=="function"?"":u}return c},Cy={t:Dy,ready:!1},My=()=>()=>{},ri=(c,a={})=>{const{i18n:u}=a,{i18n:r,defaultNS:o}=pe.useContext(_y)||{},d=u||r||Ey();d&&!d.reportNamespaces&&(d.reportNamespaces=new Oy),d||Sc(d,"NO_I18NEXT_INSTANCE","useTranslation: You will need to pass in an i18next instance by using initReactI18next");const h=pe.useMemo(()=>({...xy(),...d?.options?.react,...a}),[d,a]),{useSuspense:m,keyPrefix:g}=h,y=o||d?.options?.defaultNS,E=oa(y)?[y]:y||["translation"],x=pe.useMemo(()=>E,E);d?.reportNamespaces?.addUsedNamespaces?.(x);const M=pe.useRef(0),H=pe.useCallback(oe=>{if(!d)return My;const{bindI18n:ce,bindI18nStore:ye}=h,X=()=>{M.current+=1,oe()};return ce&&d.on(ce,X),ye&&d.store.on(ye,X),()=>{ce&&ce.split(" ").forEach(F=>d.off(F,X)),ye&&ye.split(" ").forEach(F=>d.store.off(F,X))}},[d,h]),w=pe.useRef(),Z=pe.useCallback(()=>{if(!d)return Cy;const oe=!!(d.isInitialized||d.initializedStoreOnce)&&x.every(Qe=>py(Qe,d,h)),ce=a.lng||d.language,ye=M.current,X=w.current;if(X&&X.ready===oe&&X.lng===ce&&X.keyPrefix===g&&X.revision===ye)return X;const se={t:d.getFixedT(ce,h.nsMode==="fallback"?x:x[0],g),ready:oe,lng:ce,keyPrefix:g,revision:ye};return w.current=se,se},[d,x,g,h,a.lng]),[ne,re]=pe.useState(0),{t:te,ready:P}=Ny.useSyncExternalStore(H,Z,Z);pe.useEffect(()=>{if(d&&!P&&!m){const oe=()=>re(ce=>ce+1);a.lng?qp(d,a.lng,x,oe):xc(d,x,oe)}},[d,a.lng,x,P,m,ne]);const W=d||{},ae=pe.useRef(null),ie=pe.useRef(),V=oe=>{const ce=Object.getOwnPropertyDescriptors(oe);ce.__original&&delete ce.__original;const ye=Object.create(Object.getPrototypeOf(oe),ce);if(!Object.prototype.hasOwnProperty.call(ye,"__original"))try{Object.defineProperty(ye,"__original",{value:oe,writable:!1,enumerable:!1,configurable:!1})}catch{}return ye},De=pe.useMemo(()=>{const oe=W,ce=oe?.language;let ye=oe;oe&&(ae.current&&ae.current.__original===oe?ie.current!==ce?(ye=V(oe),ae.current=ye,ie.current=ce):ye=ae.current:(ye=V(oe),ae.current=ye,ie.current=ce));const X=!P&&!m?(...se)=>(Sc(d,"USE_T_BEFORE_READY","useTranslation: t was called before ready. When using useSuspense: false, make sure to check the ready flag before using t."),te(...se)):te,F=[X,ye,P];return F.t=X,F.i18n=ye,F.ready=P,F},[te,W,P,W.resolvedLanguage,W.language,W.languages]);if(d&&m&&!P)throw new Promise(oe=>{const ce=()=>oe();a.lng?qp(d,a.lng,x,ce):xc(d,x,ce)});return De},wy="To Chat →",ky="Settings",Ly="Settings",Uy="Your connection and API key are saved securely (local only).",jy="Provider",Hy="Endpoint",By="API Key",qy="You",Yy="AI",Gy="Error: ",Xy="Type a message and send it.",Vy="No messages yet",Qy="Type a message...",Zy="System Prompt",Ky="Define AI behavior and response style...",$y="Latest",Jy="Model",Fy="Loading models...",Iy="Error loading models",Wy="No models found",Py="Reasoning Effort",eb="Low",tb="Medium",lb="High",nb="Chat History",ab="New Chat",ib="No history",sb="Delete chat?",ub="This action cannot be undone",rb="Cancel",ob="Copy System Prompt",cb={toChat:wy,toSettings:ky,settingsTitle:Ly,settingsDesc:Uy,provider:jy,endpoint:Hy,apiKey:By,you:qy,ai:Yy,error:Gy,hint:Xy,empty:Vy,placeholder:Qy,systemPrompt:Zy,systemPromptPlaceholder:Ky,scrollToLatest:$y,model:Jy,loadingModels:Fy,modelsError:Iy,noModels:Wy,reasoningEffort:Py,reasoningLow:eb,reasoningMedium:tb,reasoningHigh:lb,chatHistory:nb,newChat:ab,noHistory:ib,deleteConfirmTitle:sb,deleteConfirmMessage:ub,delete:"Delete",cancel:rb,copySystemPrompt:ob},fb="チャット画面へ →",db="設定",hb="設定",pb="接続先やAPIキーを安全に保存します(端末内のみ)。",gb="Provider",mb="エントリポイント",yb="APIキー",bb="あなた",vb="AI",Sb="エラー: ",xb="メッセージを入力して送信してください。",Tb="まだメッセージがありません",Eb="メッセージを入力...",Ab="システムプロンプト",_b="AIの動作や返答スタイルを指定...",Ob="最新へ",Rb="モデル",zb="モデルを読み込んでいます...",Nb="モデル取得エラー",Db="モデルが見つかりません",Cb="推論の深さ",Mb="低",wb="中",kb="高",Lb="チャット履歴",Ub="新規チャット",jb="履歴がありません",Hb="チャットを削除しますか?",Bb="この操作は取り消せません",qb="キャンセル",Yb="システムプロンプトをコピー",Gb={toChat:fb,toSettings:db,settingsTitle:hb,settingsDesc:pb,provider:gb,endpoint:mb,apiKey:yb,you:bb,ai:vb,error:Sb,hint:xb,empty:Tb,placeholder:Eb,systemPrompt:Ab,systemPromptPlaceholder:_b,scrollToLatest:Ob,model:Rb,loadingModels:zb,modelsError:Nb,noModels:Db,reasoningEffort:Cb,reasoningLow:Mb,reasoningMedium:wb,reasoningHigh:kb,chatHistory:Lb,newChat:Ub,noHistory:jb,deleteConfirmTitle:Hb,deleteConfirmMessage:Bb,delete:"削除",cancel:qb,copySystemPrompt:Yb};kt.use(Ay).init({resources:{ja:{translation:Gb},en:{translation:cb}},lng:navigator.language.startsWith("ja")?"ja":"en",fallbackLng:"en",interpolation:{escapeValue:!1}});function Xp(c,a){(a==null||a>c.length)&&(a=c.length);for(var u=0,r=Array(a);u<a;u++)r[u]=c[u];return r}function Xb(c){if(Array.isArray(c))return c}function Vb(c,a){var u=c==null?null:typeof Symbol<"u"&&c[Symbol.iterator]||c["@@iterator"];if(u!=null){var r,o,d,h,m=[],g=!0,y=!1;try{if(d=(u=u.call(c)).next,a!==0)for(;!(g=(r=d.call(u)).done)&&(m.push(r.value),m.length!==a);g=!0);}catch(E){y=!0,o=E}finally{try{if(!g&&u.return!=null&&(h=u.return(),Object(h)!==h))return}finally{if(y)throw o}}return m}}function Qb(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
10
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Zb(c,a){return Xb(c)||Vb(c,a)||Kb(c,a)||Qb()}function Kb(c,a){if(c){if(typeof c=="string")return Xp(c,a);var u={}.toString.call(c).slice(8,-1);return u==="Object"&&c.constructor&&(u=c.constructor.name),u==="Map"||u==="Set"?Array.from(c):u==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(u)?Xp(c,a):void 0}}const yg=Object.entries,Vp=Object.setPrototypeOf,$b=Object.isFrozen,Jb=Object.getPrototypeOf,Fb=Object.getOwnPropertyDescriptor;let Et=Object.freeze,At=Object.seal,ii=Object.create,bg=typeof Reflect<"u"&&Reflect,Ec=bg.apply,Ac=bg.construct;Et||(Et=function(a){return a});At||(At=function(a){return a});Ec||(Ec=function(a,u){for(var r=arguments.length,o=new Array(r>2?r-2:0),d=2;d<r;d++)o[d-2]=arguments[d];return a.apply(u,o)});Ac||(Ac=function(a){for(var u=arguments.length,r=new Array(u>1?u-1:0),o=1;o<u;o++)r[o-1]=arguments[o];return new a(...r)});const ni=ot(Array.prototype.forEach),Ib=ot(Array.prototype.lastIndexOf),Qp=ot(Array.prototype.pop),ai=ot(Array.prototype.push),Wb=ot(Array.prototype.splice),Mn=Array.isArray,ds=ot(String.prototype.toLowerCase),dc=ot(String.prototype.toString),Zp=ot(String.prototype.match),rs=ot(String.prototype.replace),Kp=ot(String.prototype.indexOf),Pb=ot(String.prototype.trim),ev=ot(Number.prototype.toString),tv=ot(Boolean.prototype.toString),$p=typeof BigInt>"u"?null:ot(BigInt.prototype.toString),Jp=typeof Symbol>"u"?null:ot(Symbol.prototype.toString),yt=ot(Object.prototype.hasOwnProperty),os=ot(Object.prototype.toString),mt=ot(RegExp.prototype.test),ra=lv(TypeError);function ot(c){return function(a){a instanceof RegExp&&(a.lastIndex=0);for(var u=arguments.length,r=new Array(u>1?u-1:0),o=1;o<u;o++)r[o-1]=arguments[o];return Ec(c,a,r)}}function lv(c){return function(){for(var a=arguments.length,u=new Array(a),r=0;r<a;r++)u[r]=arguments[r];return Ac(c,u)}}function Re(c,a){let u=arguments.length>2&&arguments[2]!==void 0?arguments[2]:ds;if(Vp&&Vp(c,null),!Mn(a))return c;let r=a.length;for(;r--;){let o=a[r];if(typeof o=="string"){const d=u(o);d!==o&&($b(a)||(a[r]=d),o=d)}c[o]=!0}return c}function nv(c){for(let a=0;a<c.length;a++)yt(c,a)||(c[a]=null);return c}function Dt(c){const a=ii(null);for(const r of yg(c)){var u=Zb(r,2);const o=u[0],d=u[1];yt(c,o)&&(Mn(d)?a[o]=nv(d):d&&typeof d=="object"&&d.constructor===Object?a[o]=Dt(d):a[o]=d)}return a}function av(c){switch(typeof c){case"string":return c;case"number":return ev(c);case"boolean":return tv(c);case"bigint":return $p?$p(c):"0";case"symbol":return Jp?Jp(c):"Symbol()";case"undefined":return os(c);case"function":case"object":{if(c===null)return os(c);const a=c,u=pl(a,"toString");if(typeof u=="function"){const r=u(a);return typeof r=="string"?r:os(r)}return os(c)}default:return os(c)}}function pl(c,a){for(;c!==null;){const r=Fb(c,a);if(r){if(r.get)return ot(r.get);if(typeof r.value=="function")return ot(r.value)}c=Jb(c)}function u(){return null}return u}function iv(c){try{return mt(c,""),!0}catch{return!1}}const Fp=Et(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","search","section","select","shadow","slot","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),hc=Et(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","enterkeyhint","exportparts","filter","font","g","glyph","glyphref","hkern","image","inputmode","line","lineargradient","marker","mask","metadata","mpath","part","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),pc=Et(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),sv=Et(["animate","color-profile","cursor","discard","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),gc=Et(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover","mprescripts"]),uv=Et(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),Ip=Et(["#text"]),Wp=Et(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","command","commandfor","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","exportparts","face","for","headers","height","hidden","high","href","hreflang","id","inert","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","part","pattern","placeholder","playsinline","popover","popovertarget","popovertargetaction","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","slot","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","wrap","xmlns"]),mc=Et(["accent-height","accumulate","additive","alignment-baseline","amplitude","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dominant-baseline","dur","edgemode","elevation","end","exponent","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","intercept","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","mask-type","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","slope","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","tablevalues","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-orientation","text-rendering","textlength","type","u1","u2","unicode","values","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),Pp=Et(["accent","accentunder","align","bevelled","close","columnalign","columnlines","columnspacing","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lquote","lspace","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),Lu=Et(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),rv=At(/{{[\w\W]*|^[\w\W]*}}/g),ov=At(/<%[\w\W]*|^[\w\W]*%>/g),cv=At(/\${[\w\W]*/g),fv=At(/^data-[\-\w.\u00B7-\uFFFF]+$/),dv=At(/^aria-[\-\w]+$/),eg=At(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),hv=At(/^(?:\w+script|data):/i),pv=At(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),gv=At(/^html$/i),mv=At(/^[a-z][.\w]*(-[.\w]+)+$/i),tg=At(/<[/\w!]/g),lg=At(/<[/\w]/g),yv=At(/<\/no(script|embed|frames)/i),bv=At(/\/>/i),Wt={element:1,attribute:2,text:3,cdataSection:4,entityReference:5,entityNode:6,processingInstruction:7,comment:8,document:9,documentType:10,documentFragment:11,notation:12},vv=function(){return typeof window>"u"?null:window},Sv=function(a,u){if(typeof a!="object"||typeof a.createPolicy!="function")return null;let r=null;const o="data-tt-policy-suffix";u&&u.hasAttribute(o)&&(r=u.getAttribute(o));const d="dompurify"+(r?"#"+r:"");try{return a.createPolicy(d,{createHTML(h){return h},createScriptURL(h){return h}})}catch{return console.warn("TrustedTypes policy "+d+" could not be created."),null}},ng=function(){return{afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}},Cn=function(a,u,r,o){return yt(a,u)&&Mn(a[u])?Re(o.base?Dt(o.base):{},a[u],o.transform):r};function vg(){let c=arguments.length>0&&arguments[0]!==void 0?arguments[0]:vv();const a=Y=>vg(Y);if(a.version="3.4.13",a.removed=[],!c||!c.document||c.document.nodeType!==Wt.document||!c.Element)return a.isSupported=!1,a;let u=c.document;const r=u,o=r.currentScript;c.DocumentFragment;const d=c.HTMLTemplateElement,h=c.Node,m=c.Element,g=c.NodeFilter,y=c.NamedNodeMap;y===void 0&&(c.NamedNodeMap||c.MozNamedAttrMap),c.HTMLFormElement;const E=c.DOMParser,x=c.trustedTypes,M=m.prototype,H=pl(M,"cloneNode"),w=pl(M,"remove"),Z=pl(M,"nextSibling"),ne=pl(M,"childNodes"),re=pl(M,"parentNode"),te=pl(M,"shadowRoot"),P=pl(M,"attributes"),W=h&&h.prototype?pl(h.prototype,"nodeType"):null,ae=h&&h.prototype?pl(h.prototype,"nodeName"):null,ie=h&&h.prototype?pl(h.prototype,"ownerDocument"):null;if(typeof d=="function"){const Y=u.createElement("template");Y.content&&Y.content.ownerDocument&&(u=Y.content.ownerDocument)}let V,De="",oe,ce=!1,ye=0;const X=function(){if(ye>0)throw ra('A configured TRUSTED_TYPES_POLICY callback (createHTML or createScriptURL) must not call DOMPurify.sanitize, as that causes infinite recursion. Do not pass a policy whose callbacks wrap DOMPurify as TRUSTED_TYPES_POLICY; see the "DOMPurify and Trusted Types" section of the README.')},F=function(b){X(),ye++;try{return V.createHTML(b)}finally{ye--}},se=function(b){X(),ye++;try{return V.createScriptURL(b)}finally{ye--}},Qe=function(){return ce||(oe=Sv(x,o),ce=!0),oe},N=u,q=N.implementation,$=N.createNodeIterator,Se=N.createDocumentFragment,_e=N.getElementsByTagName,S=r.importNode;let D=ng();a.isSupported=typeof yg=="function"&&typeof re=="function"&&q&&q.createHTMLDocument!==void 0;const G=rv,Q=ov,fe=cv,de=fv,Ce=dv,bt=hv,Ie=pv,wn=mv;let kn=eg,Ye=null;const da=Re({},[...Fp,...hc,...pc,...gc,...Ip]);let Me=null;const Ln=Re({},[...Wp,...mc,...Pp,...Lu]);let $e=Object.seal(ii(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),Un=null,oi=null;const Pt=Object.seal(ii(null,{tagCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeCheck:{writable:!0,configurable:!1,enumerable:!0,value:null}}));let ha=!0,jn=!0,vs=!1,Ss=!0,Pe=!1,yl=!0,bl=!1,pa=!1,Cl=null,ga=null,ma=!1,Il=!1,ya=!1,vl=!1,_t=!0,cl=!1;const Ot="user-content-";let ci=!0,ba=!1,Wl={},Ct=null;const Pl=Re({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","selectedcontent","style","svg","template","thead","title","video","xmp"]);let Hn=null;const Sl=Re({},["audio","video","img","source","image","track"]);let en=null;const tn=Re({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),va="http://www.w3.org/1998/Math/MathML",Bn="http://www.w3.org/2000/svg",Lt="http://www.w3.org/1999/xhtml";let el=Lt,fi=!1,Sa=null;const xs=Re({},[va,Bn,Lt],dc),di=Et(["mi","mo","mn","ms","mtext"]);let qn=Re({},di);const xa=Et(["annotation-xml"]);let Ta=Re({},xa);const Ts=Re({},["title","style","font","a","script"]);let Ut=null;const ct=["application/xhtml+xml","text/html"],Rt="text/html";let je=null,xl=null;const Ju=u.createElement("form"),Es=function(b){return b instanceof RegExp||b instanceof Function},Ea=function(){let b=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(xl&&xl===b)return;(!b||typeof b!="object")&&(b={}),b=Dt(b),Ut=ct.indexOf(b.PARSER_MEDIA_TYPE)===-1?Rt:b.PARSER_MEDIA_TYPE,je=Ut==="application/xhtml+xml"?dc:ds,Ye=Cn(b,"ALLOWED_TAGS",da,{transform:je}),Me=Cn(b,"ALLOWED_ATTR",Ln,{transform:je}),Sa=Cn(b,"ALLOWED_NAMESPACES",xs,{transform:dc}),en=Cn(b,"ADD_URI_SAFE_ATTR",tn,{transform:je,base:tn}),Hn=Cn(b,"ADD_DATA_URI_TAGS",Sl,{transform:je,base:Sl}),Ct=Cn(b,"FORBID_CONTENTS",Pl,{transform:je}),Un=Cn(b,"FORBID_TAGS",Dt({}),{transform:je}),oi=Cn(b,"FORBID_ATTR",Dt({}),{transform:je}),Wl=yt(b,"USE_PROFILES")?b.USE_PROFILES&&typeof b.USE_PROFILES=="object"?Dt(b.USE_PROFILES):b.USE_PROFILES:!1,ha=b.ALLOW_ARIA_ATTR!==!1,jn=b.ALLOW_DATA_ATTR!==!1,vs=b.ALLOW_UNKNOWN_PROTOCOLS||!1,Ss=b.ALLOW_SELF_CLOSE_IN_ATTR!==!1,Pe=b.SAFE_FOR_TEMPLATES||!1,yl=b.SAFE_FOR_XML!==!1,bl=b.WHOLE_DOCUMENT||!1,Il=b.RETURN_DOM||!1,ya=b.RETURN_DOM_FRAGMENT||!1,vl=b.RETURN_TRUSTED_TYPE||!1,ma=b.FORCE_BODY||!1,_t=b.SANITIZE_DOM!==!1,cl=b.SANITIZE_NAMED_PROPS||!1,ci=b.KEEP_CONTENT!==!1,ba=b.IN_PLACE||!1,kn=iv(b.ALLOWED_URI_REGEXP)?b.ALLOWED_URI_REGEXP:eg,el=typeof b.NAMESPACE=="string"?b.NAMESPACE:Lt,qn=yt(b,"MATHML_TEXT_INTEGRATION_POINTS")&&b.MATHML_TEXT_INTEGRATION_POINTS&&typeof b.MATHML_TEXT_INTEGRATION_POINTS=="object"?Dt(b.MATHML_TEXT_INTEGRATION_POINTS):Re({},di),Ta=yt(b,"HTML_INTEGRATION_POINTS")&&b.HTML_INTEGRATION_POINTS&&typeof b.HTML_INTEGRATION_POINTS=="object"?Dt(b.HTML_INTEGRATION_POINTS):Re({},xa);const _=yt(b,"CUSTOM_ELEMENT_HANDLING")&&b.CUSTOM_ELEMENT_HANDLING&&typeof b.CUSTOM_ELEMENT_HANDLING=="object"?Dt(b.CUSTOM_ELEMENT_HANDLING):ii(null);if($e=ii(null),yt(_,"tagNameCheck")&&Es(_.tagNameCheck)&&($e.tagNameCheck=_.tagNameCheck),yt(_,"attributeNameCheck")&&Es(_.attributeNameCheck)&&($e.attributeNameCheck=_.attributeNameCheck),yt(_,"allowCustomizedBuiltInElements")&&typeof _.allowCustomizedBuiltInElements=="boolean"&&($e.allowCustomizedBuiltInElements=_.allowCustomizedBuiltInElements),At($e),Pe&&(jn=!1),ya&&(Il=!0),Wl&&(Ye=Re({},Ip),Me=ii(null),Wl.html===!0&&(Re(Ye,Fp),Re(Me,Wp)),Wl.svg===!0&&(Re(Ye,hc),Re(Me,mc),Re(Me,Lu)),Wl.svgFilters===!0&&(Re(Ye,pc),Re(Me,mc),Re(Me,Lu)),Wl.mathMl===!0&&(Re(Ye,gc),Re(Me,Pp),Re(Me,Lu))),Pt.tagCheck=null,Pt.attributeCheck=null,yt(b,"ADD_TAGS")&&(typeof b.ADD_TAGS=="function"?Pt.tagCheck=b.ADD_TAGS:Mn(b.ADD_TAGS)&&(Ye===da&&(Ye=Dt(Ye)),Re(Ye,b.ADD_TAGS,je))),yt(b,"ADD_ATTR")&&(typeof b.ADD_ATTR=="function"?Pt.attributeCheck=b.ADD_ATTR:Mn(b.ADD_ATTR)&&(Me===Ln&&(Me=Dt(Me)),Re(Me,b.ADD_ATTR,je))),yt(b,"ADD_URI_SAFE_ATTR")&&Mn(b.ADD_URI_SAFE_ATTR)&&Re(en,b.ADD_URI_SAFE_ATTR,je),yt(b,"FORBID_CONTENTS")&&Mn(b.FORBID_CONTENTS)&&(Ct===Pl&&(Ct=Dt(Ct)),Re(Ct,b.FORBID_CONTENTS,je)),yt(b,"ADD_FORBID_CONTENTS")&&Mn(b.ADD_FORBID_CONTENTS)&&(Ct===Pl&&(Ct=Dt(Ct)),Re(Ct,b.ADD_FORBID_CONTENTS,je)),ci&&(Ye["#text"]=!0),bl&&Re(Ye,["html","head","body"]),Ye.table&&(Re(Ye,["tbody"]),delete Un.tbody),b.TRUSTED_TYPES_POLICY){if(typeof b.TRUSTED_TYPES_POLICY.createHTML!="function")throw ra('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof b.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw ra('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');const B=V;V=b.TRUSTED_TYPES_POLICY;try{De=F("")}catch(J){throw V=B,J}}else b.TRUSTED_TYPES_POLICY===null?(V=void 0,De=""):(V===void 0&&(V=Qe()),V&&typeof De=="string"&&(De=F("")));Et&&Et(b),xl=b},ln=Re({},[...hc,...pc,...sv]),Aa=Re({},[...gc,...uv]),nn=function(b,_,B){return _.namespaceURI===Lt?b==="svg":_.namespaceURI===va?b==="svg"&&(B==="annotation-xml"||qn[B]):!!ln[b]},an=function(b,_,B){return _.namespaceURI===Lt?b==="math":_.namespaceURI===Bn?b==="math"&&Ta[B]:!!Aa[b]},Yn=function(b,_,B){return _.namespaceURI===Bn&&!Ta[B]||_.namespaceURI===va&&!qn[B]?!1:!Aa[b]&&(Ts[b]||!ln[b])},sn=function(b){let _=re(b);(!_||!_.tagName)&&(_={namespaceURI:el,tagName:"template"});const B=ds(b.tagName),J=ds(_.tagName);return Sa[b.namespaceURI]?b.namespaceURI===Bn?nn(B,_,J):b.namespaceURI===va?an(B,_,J):b.namespaceURI===Lt?Yn(B,_,J):!!(Ut==="application/xhtml+xml"&&Sa[b.namespaceURI]):!1},Ze=function(b){ai(a.removed,{element:b});try{re(b).removeChild(b)}catch{if(w(b),!re(b))throw ra("a node selected for removal could not be detached from its tree and cannot be safely returned; refusing to sanitize in place")}},Gn=function(b){tl(b);const _=ne(b);if(_){const J=[];ni(_,ee=>{ai(J,ee)}),ni(J,ee=>{try{w(ee)}catch{}})}const B=P(b);if(B)for(let J=B.length-1;J>=0;--J){const ee=B[J],ge=ee&&ee.name;if(typeof ge=="string")try{b.removeAttribute(ge)}catch{}}},Tl=function(b,_){try{ai(a.removed,{attribute:_.getAttributeNode(b),from:_})}catch{ai(a.removed,{attribute:null,from:_})}if(_.removeAttribute(b),b==="is")if(Il||ya)try{Ze(_)}catch{}else try{_.setAttribute(b,"")}catch{}},Ml=function(b){const _=P(b);if(_)for(let B=_.length-1;B>=0;--B){const J=_[B],ee=J&&J.name;if(!(typeof ee!="string"||Me[je(ee)]))try{b.removeAttribute(ee)}catch{}}},tl=function(b){const _=[b];for(;_.length>0;){const B=_.pop();(W?W(B):B.nodeType)===Wt.element&&Ml(B);const ee=ne(B);if(ee)for(let ge=ee.length-1;ge>=0;--ge)_.push(ee[ge])}},Fu=function(b){if(!yl)return;const _=[b];for(;_.length>0;){const B=_.pop(),J=W?W(B):B.nodeType;if(J===Wt.processingInstruction||J===Wt.comment&&mt(lg,B.data)){try{w(B)}catch{}continue}if(J===Wt.element){const ge=B,ze=je(ae?ae(B):B.nodeName);try{ge.hasAttribute&&ge.hasAttribute("patchsrc")&&ge.removeAttribute("patchsrc"),ge.hasAttribute&&ge.hasAttribute("for")&&ze!=="label"&&ze!=="output"&&ge.removeAttribute("for")}catch{}}const ee=ne(B);if(ee)for(let ge=ee.length-1;ge>=0;--ge)_.push(ee[ge])}},hi=function(b){let _=null,B=null;if(ma)b="<remove></remove>"+b;else{const ge=Zp(b,/^[\r\n\t ]+/);B=ge&&ge[0]}Ut==="application/xhtml+xml"&&el===Lt&&(b='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+b+"</body></html>");const J=V?F(b):b;if(el===Lt)try{_=new E().parseFromString(J,Ut)}catch{}if(!_||!_.documentElement){_=q.createDocument(el,"template",null);try{_.documentElement.innerHTML=fi?De:J}catch{}}const ee=_.body||_.documentElement;return b&&B&&ee.insertBefore(u.createTextNode(B),ee.childNodes[0]||null),el===Lt?_e.call(_,bl?"html":"body")[0]:bl?_.documentElement:ee},pi=function(b){const _=ie?ie(b):b.ownerDocument;return $.call(_||b,b,g.SHOW_ELEMENT|g.SHOW_COMMENT|g.SHOW_TEXT|g.SHOW_PROCESSING_INSTRUCTION|g.SHOW_CDATA_SECTION,null)},_a=function(b){return b=rs(b,G," "),b=rs(b,Q," "),b=rs(b,fe," "),b},un=function(b){var _;b.normalize();const B=ie?ie(b):b.ownerDocument,J=$.call(B||b,b,g.SHOW_TEXT|g.SHOW_COMMENT|g.SHOW_CDATA_SECTION|g.SHOW_PROCESSING_INSTRUCTION,null);let ee=J.nextNode();for(;ee;)ee.data=_a(ee.data),ee=J.nextNode();const ge=(_=b.querySelectorAll)===null||_===void 0?void 0:_.call(b,"template");ge&&ni(ge,ze=>{zt(ze.content)&&un(ze.content)})},wl=function(b){const _=ae?ae(b):null;return typeof _!="string"||je(_)!=="form"?!1:typeof b.nodeName!="string"||typeof b.textContent!="string"||typeof b.removeChild!="function"||b.attributes!==P(b)||typeof b.removeAttribute!="function"||typeof b.setAttribute!="function"||typeof b.namespaceURI!="string"||typeof b.insertBefore!="function"||typeof b.hasChildNodes!="function"||b.nodeType!==W(b)||b.childNodes!==ne(b)},zt=function(b){if(!W||typeof b!="object"||b===null)return!1;try{return W(b)===Wt.documentFragment}catch{return!1}},dt=function(b){if(!W||typeof b!="object"||b===null)return!1;try{return typeof W(b)=="number"}catch{return!1}};function Vt(Y,b,_){Y.length!==0&&ni(Y,B=>{B.call(a,b,_,xl)})}const Iu=function(b,_){return!!(yl&&b.hasChildNodes()&&!dt(b.firstElementChild)&&mt(tg,b.textContent)&&mt(tg,b.innerHTML)||yl&&b.namespaceURI===Lt&&_==="style"&&dt(b.firstElementChild)||b.nodeType===Wt.processingInstruction||yl&&b.nodeType===Wt.comment&&mt(lg,b.data))},gi=function(b,_,B){if(!Un[_]&&Oa(_)&&($e.tagNameCheck instanceof RegExp&&mt($e.tagNameCheck,_)||$e.tagNameCheck instanceof Function&&$e.tagNameCheck(_)))return!1;if(ci&&!Ct[_]){const J=re(b),ee=ne(b);if(ee&&J){const ge=ee.length;for(let ze=ge-1;ze>=0;--ze){const Ne=b===B?H(ee[ze],!0):ee[ze];J.insertBefore(Ne,Z(b))}}}return Ze(b),!0},mi=function(b,_,B,J){return b.length===0?_:_===B||_===J?Dt(_):_},Xn=function(b,_){if(Vt(D.beforeSanitizeElements,b,null),b!==_&&re(b)===null)return ba&&tl(b),!0;if(wl(b))return Ze(b),!0;const B=je(ae?ae(b):b.nodeName);if(Ye=mi(D.uponSanitizeElement,Ye,da,Cl),Vt(D.uponSanitizeElement,b,{tagName:B,allowedTags:Ye}),b!==_&&re(b)===null)return ba&&tl(b),!0;if(Iu(b,B))return Ze(b),!0;if(Un[B]||!(Pt.tagCheck instanceof Function&&Pt.tagCheck(B))&&!Ye[B]){const ee=gi(b,B,_);return ee===!1&&Vt(D.afterSanitizeElements,b,null),ee}if((W?W(b):b.nodeType)===Wt.element&&!sn(b)||(B==="noscript"||B==="noembed"||B==="noframes")&&mt(yv,b.innerHTML))return Ze(b),!0;if(Pe&&b.nodeType===Wt.text){const ee=_a(b.textContent);b.textContent!==ee&&(ai(a.removed,{element:b.cloneNode()}),b.textContent=ee)}return Vt(D.afterSanitizeElements,b,null),!1},As=function(b,_,B){if(oi[_]||yl&&_==="patchsrc"||yl&&_==="for"&&b!=="label"&&b!=="output"||_t&&(_==="id"||_==="name")&&(B in u||B in Ju))return!1;const J=Me[_]||Pt.attributeCheck instanceof Function&&Pt.attributeCheck(_,b);if(!(jn&&mt(de,_))){if(!(ha&&mt(Ce,_))){if(J){if(!en[_]){if(!mt(kn,rs(B,Ie,""))){if(!((_==="src"||_==="xlink:href"||_==="href")&&b!=="script"&&Kp(B,"data:")===0&&Hn[b])){if(!(vs&&!mt(bt,rs(B,Ie,"")))){if(B)return!1}}}}}else if(!(Oa(b)&&($e.tagNameCheck instanceof RegExp&&mt($e.tagNameCheck,b)||$e.tagNameCheck instanceof Function&&$e.tagNameCheck(b))&&($e.attributeNameCheck instanceof RegExp&&mt($e.attributeNameCheck,_)||$e.attributeNameCheck instanceof Function&&$e.attributeNameCheck(_,b))||_==="is"&&$e.allowCustomizedBuiltInElements&&($e.tagNameCheck instanceof RegExp&&mt($e.tagNameCheck,B)||$e.tagNameCheck instanceof Function&&$e.tagNameCheck(B))))return!1}}return!0},jt=Re({},["annotation-xml","color-profile","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","missing-glyph"]),Oa=function(b){return!jt[ds(b)]&&mt(wn,b)},_s=function(b,_,B,J){if(V&&typeof x=="object"&&typeof x.getAttributeType=="function"&&!B)switch(x.getAttributeType(b,_)){case"TrustedHTML":return F(J);case"TrustedScriptURL":return se(J)}return J},yi=function(b,_,B,J){try{B?b.setAttributeNS(B,_,J):b.setAttribute(_,J),wl(b)?Ze(b):Qp(a.removed)}catch{Tl(_,b)}},kl=function(b){Vt(D.beforeSanitizeAttributes,b,null);const _=b.attributes;if(!_||wl(b))return;Me=mi(D.uponSanitizeAttribute,Me,Ln,ga);const B={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:Me,forceKeepAttr:void 0};let J=_.length;const ee=je(b.nodeName);for(;J--;){const ge=_[J],ze=ge.name,Ne=ge.namespaceURI,ht=ge.value,pt=je(ze),El=ht;let et=ze==="value"?El:Pb(El);if(B.attrName=pt,B.attrValue=et,B.keepAttr=!0,B.forceKeepAttr=void 0,Vt(D.uponSanitizeAttribute,b,B),et=B.attrValue,cl&&(pt==="id"||pt==="name")&&Kp(et,Ot)!==0&&(Tl(ze,b),et=Ot+et),yl&&mt(/((--!?|])>)|<\/(style|script|title|xmp|textarea|noscript|iframe|noembed|noframes)/i,et)){Tl(ze,b);continue}if(pt==="attributename"&&Zp(et,"href")){Tl(ze,b);continue}if(!B.forceKeepAttr){if(!B.keepAttr){Tl(ze,b);continue}if(!Ss&&mt(bv,et)){Tl(ze,b);continue}if(Pe&&(et=_a(et)),!As(ee,pt,et)){Tl(ze,b);continue}et=_s(ee,pt,Ne,et),et!==El&&yi(b,ze,Ne,et)}}Vt(D.afterSanitizeAttributes,b,null)},Vn=function(b){let _=null;const B=pi(b);for(Vt(D.beforeSanitizeShadowDOM,b,null);_=B.nextNode();)if(Vt(D.uponSanitizeShadowNode,_,null),Xn(_,b),kl(_),zt(_.content)&&Vn(_.content),(W?W(_):_.nodeType)===Wt.element){const ee=te(_);zt(ee)&&(Ra(ee),Vn(ee))}Vt(D.afterSanitizeShadowDOM,b,null)},Ra=function(b){const _=[{node:b,shadow:null}];for(;_.length>0;){const B=_.pop();if(B.shadow){Vn(B.shadow);continue}const J=B.node,ge=(W?W(J):J.nodeType)===Wt.element,ze=ne(J);if(ze)for(let Ne=ze.length-1;Ne>=0;--Ne)_.push({node:ze[Ne],shadow:null});if(ge){const Ne=ae?ae(J):null;if(typeof Ne=="string"&&je(Ne)==="template"){const ht=J.content;zt(ht)&&_.push({node:ht,shadow:null})}}if(ge){const Ne=te(J);zt(Ne)&&_.push({node:null,shadow:Ne},{node:Ne,shadow:null})}}};return a.sanitize=function(Y){let b=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},_=null,B=null,J=null,ee=null;if(fi=!Y,fi&&(Y="<!-->"),typeof Y!="string"&&!dt(Y)&&(Y=av(Y),typeof Y!="string"))throw ra("dirty is not a string, aborting");if(!a.isSupported)return Y;pa?(Ye=Cl,Me=ga):Ea(b),(D.uponSanitizeElement.length>0||D.uponSanitizeAttribute.length>0)&&(Ye=Dt(Ye)),D.uponSanitizeAttribute.length>0&&(Me=Dt(Me)),a.removed=[];const ge=ba&&typeof Y!="string"&&dt(Y);if(ge){Fu(Y);const ht=ae?ae(Y):Y.nodeName;if(typeof ht=="string"){const pt=je(ht);if(!Ye[pt]||Un[pt])throw Gn(Y),ra("root node is forbidden and cannot be sanitized in-place")}if(wl(Y))throw Gn(Y),ra("root node is clobbered and cannot be sanitized in-place");try{Ra(Y)}catch(pt){throw Gn(Y),pt}}else if(dt(Y))_=hi("<!---->"),B=_.ownerDocument.importNode(Y,!0),B.nodeType===Wt.element&&B.nodeName==="BODY"||B.nodeName==="HTML"?_=B:_.appendChild(B),Ra(B);else{if(!Il&&!Pe&&!bl&&Y.indexOf("<")===-1)return V&&vl?F(Y):Y;if(_=hi(Y),!_)return Il?null:vl?De:""}_&&ma&&Ze(_.firstChild);const ze=ge?Y:_;try{const ht=pi(ze);for(;J=ht.nextNode();)Xn(J,ze),kl(J),zt(J.content)&&Vn(J.content)}catch(ht){throw ge&&(Gn(Y),ni(a.removed,pt=>{pt.element&&tl(pt.element)})),ht}if(ge)return ni(a.removed,ht=>{ht.element&&tl(ht.element)}),Pe&&un(Y),Y;if(Il){if(Pe&&un(_),ya)for(ee=Se.call(_.ownerDocument);_.firstChild;)ee.appendChild(_.firstChild);else ee=_;return(Me.shadowroot||Me.shadowrootmode)&&(ee=S.call(r,ee,!0)),ee}let Ne=bl?_.outerHTML:_.innerHTML;return bl&&Ye["!doctype"]&&_.ownerDocument&&_.ownerDocument.doctype&&_.ownerDocument.doctype.name&&mt(gv,_.ownerDocument.doctype.name)&&(Ne="<!DOCTYPE "+_.ownerDocument.doctype.name+`>
11
+ `+Ne),Pe&&(Ne=_a(Ne)),V&&vl?F(Ne):Ne},a.setConfig=function(){let Y=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};Ea(Y),pa=!0,Cl=Ye,ga=Me},a.clearConfig=function(){xl=null,pa=!1,Cl=null,ga=null,V=oe,De=""},a.isValidAttribute=function(Y,b,_){xl||Ea({});const B=je(Y),J=je(b);return As(B,J,_)},a.addHook=function(Y,b){typeof b=="function"&&yt(D,Y)&&ai(D[Y],b)},a.removeHook=function(Y,b){if(yt(D,Y)){if(b!==void 0){const _=Ib(D[Y],b);return _===-1?void 0:Wb(D[Y],_,1)[0]}return Qp(D[Y])}},a.removeHooks=function(Y){yt(D,Y)&&(D[Y]=[])},a.removeAllHooks=function(){D=ng()},a}var xv=vg();function zc(){return{async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null}}var fa=zc();function Sg(c){fa=c}var ms={exec:()=>null};function Le(c,a=""){let u=typeof c=="string"?c:c.source,r={replace:(o,d)=>{let h=typeof d=="string"?d:d.source;return h=h.replace(wt.caret,"$1"),u=u.replace(o,h),r},getRegex:()=>new RegExp(u,a)};return r}var Tv=(()=>{try{return!!new RegExp("(?<=1)(?<!1)")}catch{return!1}})(),wt={codeRemoveIndent:/^(?: {1,4}| {0,3}\t)/gm,outputLinkReplace:/\\([\[\]])/g,indentCodeCompensation:/^(\s+)(?:```)/,beginningSpace:/^\s+/,endingHash:/#$/,startingSpaceChar:/^ /,endingSpaceChar:/ $/,nonSpaceChar:/[^ ]/,newLineCharGlobal:/\n/g,tabCharGlobal:/\t/g,multipleSpaceGlobal:/\s+/g,blankLine:/^[ \t]*$/,doubleBlankLine:/\n[ \t]*\n[ \t]*$/,blockquoteStart:/^ {0,3}>/,blockquoteSetextReplace:/\n {0,3}((?:=+|-+) *)(?=\n|$)/g,blockquoteSetextReplace2:/^ {0,3}>[ \t]?/gm,listReplaceTabs:/^\t+/,listReplaceNesting:/^ {1,4}(?=( {4})*[^ ])/g,listIsTask:/^\[[ xX]\] /,listReplaceTask:/^\[[ xX]\] +/,anyLine:/\n.*\n/,hrefBrackets:/^<(.*)>$/,tableDelimiter:/[:|]/,tableAlignChars:/^\||\| *$/g,tableRowBlankLine:/\n[ \t]*$/,tableAlignRight:/^ *-+: *$/,tableAlignCenter:/^ *:-+: *$/,tableAlignLeft:/^ *:-+ *$/,startATag:/^<a /i,endATag:/^<\/a>/i,startPreScriptTag:/^<(pre|code|kbd|script)(\s|>)/i,endPreScriptTag:/^<\/(pre|code|kbd|script)(\s|>)/i,startAngleBracket:/^</,endAngleBracket:/>$/,pedanticHrefTitle:/^([^'"]*[^\s])\s+(['"])(.*)\2/,unicodeAlphaNumeric:/[\p{L}\p{N}]/u,escapeTest:/[&<>"']/,escapeReplace:/[&<>"']/g,escapeTestNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/,escapeReplaceNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/g,unescapeTest:/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/ig,caret:/(^|[^\[])\^/g,percentDecode:/%25/g,findPipe:/\|/g,splitPipe:/ \|/,slashPipe:/\\\|/g,carriageReturn:/\r\n|\r/g,spaceLine:/^ +$/gm,notSpaceStart:/^\S*/,endingNewline:/\n$/,listItemRegex:c=>new RegExp(`^( {0,3}${c})((?:[ ][^\\n]*)?(?:\\n|$))`),nextBulletRegex:c=>new RegExp(`^ {0,${Math.min(3,c-1)}}(?:[*+-]|\\d{1,9}[.)])((?:[ ][^\\n]*)?(?:\\n|$))`),hrRegex:c=>new RegExp(`^ {0,${Math.min(3,c-1)}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`),fencesBeginRegex:c=>new RegExp(`^ {0,${Math.min(3,c-1)}}(?:\`\`\`|~~~)`),headingBeginRegex:c=>new RegExp(`^ {0,${Math.min(3,c-1)}}#`),htmlBeginRegex:c=>new RegExp(`^ {0,${Math.min(3,c-1)}}<(?:[a-z].*>|!--)`,"i")},Ev=/^(?:[ \t]*(?:\n|$))+/,Av=/^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/,_v=/^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,bs=/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,Ov=/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,Nc=/(?:[*+-]|\d{1,9}[.)])/,xg=/^(?!bull |blockCode|fences|blockquote|heading|html|table)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html|table))+?)\n {0,3}(=+|-+) *(?:\n+|$)/,Tg=Le(xg).replace(/bull/g,Nc).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/\|table/g,"").getRegex(),Rv=Le(xg).replace(/bull/g,Nc).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/table/g,/ {0,3}\|?(?:[:\- ]*\|)+[\:\- ]*\n/).getRegex(),Dc=/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,zv=/^[^\n]+/,Cc=/(?!\s*\])(?:\\[\s\S]|[^\[\]\\])+/,Nv=Le(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label",Cc).replace("title",/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(),Dv=Le(/^( {0,3}bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g,Nc).getRegex(),Zu="address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|search|section|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul",Mc=/<!--(?:-?>|[\s\S]*?(?:-->|$))/,Cv=Le("^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|<![A-Z][\\s\\S]*?(?:>\\n*|$)|<!\\[CDATA\\[[\\s\\S]*?(?:\\]\\]>\\n*|$)|</?(tag)(?: +|\\n|/?>)[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|</(?!script|pre|style|textarea)[a-z][\\w-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$))","i").replace("comment",Mc).replace("tag",Zu).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),Eg=Le(Dc).replace("hr",bs).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("|table","").replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",Zu).getRegex(),Mv=Le(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph",Eg).getRegex(),wc={blockquote:Mv,code:Av,def:Nv,fences:_v,heading:Ov,hr:bs,html:Cv,lheading:Tg,list:Dv,newline:Ev,paragraph:Eg,table:ms,text:zv},ag=Le("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr",bs).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("blockquote"," {0,3}>").replace("code","(?: {4}| {0,3} )[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",Zu).getRegex(),wv={...wc,lheading:Rv,table:ag,paragraph:Le(Dc).replace("hr",bs).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("table",ag).replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",Zu).getRegex()},kv={...wc,html:Le(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\s[^'"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment",Mc).replace(/tag/g,"(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),def:/^ *\[([^\]]+)\]: *<?([^\s>]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,heading:/^(#{1,6})(.*)(?:\n+|$)/,fences:ms,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:Le(Dc).replace("hr",bs).replace("heading",` *#{1,6} *[^
12
+ ]`).replace("lheading",Tg).replace("|table","").replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").replace("|tag","").getRegex()},Lv=/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,Uv=/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,Ag=/^( {2,}|\\)\n(?!\s*$)/,jv=/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/,Ku=/[\p{P}\p{S}]/u,kc=/[\s\p{P}\p{S}]/u,_g=/[^\s\p{P}\p{S}]/u,Hv=Le(/^((?![*_])punctSpace)/,"u").replace(/punctSpace/g,kc).getRegex(),Og=/(?!~)[\p{P}\p{S}]/u,Bv=/(?!~)[\s\p{P}\p{S}]/u,qv=/(?:[^\s\p{P}\p{S}]|~)/u,Yv=Le(/link|precode-code|html/,"g").replace("link",/\[(?:[^\[\]`]|(?<a>`+)[^`]+\k<a>(?!`))*?\]\((?:\\[\s\S]|[^\\\(\)]|\((?:\\[\s\S]|[^\\\(\)])*\))*\)/).replace("precode-",Tv?"(?<!`)()":"(^^|[^`])").replace("code",/(?<b>`+)[^`]+\k<b>(?!`)/).replace("html",/<(?! )[^<>]*?>/).getRegex(),Rg=/^(?:\*+(?:((?!\*)punct)|[^\s*]))|^_+(?:((?!_)punct)|([^\s_]))/,Gv=Le(Rg,"u").replace(/punct/g,Ku).getRegex(),Xv=Le(Rg,"u").replace(/punct/g,Og).getRegex(),zg="^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)punctSpace(\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|notPunctSpace(\\*+)(?=notPunctSpace)",Vv=Le(zg,"gu").replace(/notPunctSpace/g,_g).replace(/punctSpace/g,kc).replace(/punct/g,Ku).getRegex(),Qv=Le(zg,"gu").replace(/notPunctSpace/g,qv).replace(/punctSpace/g,Bv).replace(/punct/g,Og).getRegex(),Zv=Le("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)punctSpace(_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)","gu").replace(/notPunctSpace/g,_g).replace(/punctSpace/g,kc).replace(/punct/g,Ku).getRegex(),Kv=Le(/\\(punct)/,"gu").replace(/punct/g,Ku).getRegex(),$v=Le(/^<(scheme:[^\s\x00-\x1f<>]*|email)>/).replace("scheme",/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/).replace("email",/[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/).getRegex(),Jv=Le(Mc).replace("(?:-->|$)","-->").getRegex(),Fv=Le("^comment|^</[a-zA-Z][\\w:-]*\\s*>|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^<![a-zA-Z]+\\s[\\s\\S]*?>|^<!\\[CDATA\\[[\\s\\S]*?\\]\\]>").replace("comment",Jv).replace("attribute",/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(),Yu=/(?:\[(?:\\[\s\S]|[^\[\]\\])*\]|\\[\s\S]|`+[^`]*?`+(?!`)|[^\[\]\\`])*?/,Iv=Le(/^!?\[(label)\]\(\s*(href)(?:(?:[ \t]*(?:\n[ \t]*)?)(title))?\s*\)/).replace("label",Yu).replace("href",/<(?:\\.|[^\n<>\\])+>|[^ \t\n\x00-\x1f]*/).replace("title",/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(),Ng=Le(/^!?\[(label)\]\[(ref)\]/).replace("label",Yu).replace("ref",Cc).getRegex(),Dg=Le(/^!?\[(ref)\](?:\[\])?/).replace("ref",Cc).getRegex(),Wv=Le("reflink|nolink(?!\\()","g").replace("reflink",Ng).replace("nolink",Dg).getRegex(),ig=/[hH][tT][tT][pP][sS]?|[fF][tT][pP]/,Lc={_backpedal:ms,anyPunctuation:Kv,autolink:$v,blockSkip:Yv,br:Ag,code:Uv,del:ms,emStrongLDelim:Gv,emStrongRDelimAst:Vv,emStrongRDelimUnd:Zv,escape:Lv,link:Iv,nolink:Dg,punctuation:Hv,reflink:Ng,reflinkSearch:Wv,tag:Fv,text:jv,url:ms},Pv={...Lc,link:Le(/^!?\[(label)\]\((.*?)\)/).replace("label",Yu).getRegex(),reflink:Le(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",Yu).getRegex()},_c={...Lc,emStrongRDelimAst:Qv,emStrongLDelim:Xv,url:Le(/^((?:protocol):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/).replace("protocol",ig).replace("email",/[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/).getRegex(),_backpedal:/(?:[^?!.,:;*_'"~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_'"~)]+(?!$))+/,del:/^(~~?)(?=[^\s~])((?:\\[\s\S]|[^\\])*?(?:\\[\s\S]|[^\s~\\]))\1(?=[^~]|$)/,text:Le(/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|protocol:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/).replace("protocol",ig).getRegex()},eS={..._c,br:Le(Ag).replace("{2,}","*").getRegex(),text:Le(_c.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()},Uu={normal:wc,gfm:wv,pedantic:kv},cs={normal:Lc,gfm:_c,breaks:eS,pedantic:Pv},tS={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},sg=c=>tS[c];function zl(c,a){if(a){if(wt.escapeTest.test(c))return c.replace(wt.escapeReplace,sg)}else if(wt.escapeTestNoEncode.test(c))return c.replace(wt.escapeReplaceNoEncode,sg);return c}function ug(c){try{c=encodeURI(c).replace(wt.percentDecode,"%")}catch{return null}return c}function rg(c,a){let u=c.replace(wt.findPipe,(d,h,m)=>{let g=!1,y=h;for(;--y>=0&&m[y]==="\\";)g=!g;return g?"|":" |"}),r=u.split(wt.splitPipe),o=0;if(r[0].trim()||r.shift(),r.length>0&&!r.at(-1)?.trim()&&r.pop(),a)if(r.length>a)r.splice(a);else for(;r.length<a;)r.push("");for(;o<r.length;o++)r[o]=r[o].trim().replace(wt.slashPipe,"|");return r}function fs(c,a,u){let r=c.length;if(r===0)return"";let o=0;for(;o<r&&c.charAt(r-o-1)===a;)o++;return c.slice(0,r-o)}function lS(c,a){if(c.indexOf(a[1])===-1)return-1;let u=0;for(let r=0;r<c.length;r++)if(c[r]==="\\")r++;else if(c[r]===a[0])u++;else if(c[r]===a[1]&&(u--,u<0))return r;return u>0?-2:-1}function og(c,a,u,r,o){let d=a.href,h=a.title||null,m=c[1].replace(o.other.outputLinkReplace,"$1");r.state.inLink=!0;let g={type:c[0].charAt(0)==="!"?"image":"link",raw:u,href:d,title:h,text:m,tokens:r.inlineTokens(m)};return r.state.inLink=!1,g}function nS(c,a,u){let r=c.match(u.other.indentCodeCompensation);if(r===null)return a;let o=r[1];return a.split(`
13
+ `).map(d=>{let h=d.match(u.other.beginningSpace);if(h===null)return d;let[m]=h;return m.length>=o.length?d.slice(o.length):d}).join(`
14
+ `)}var Gu=class{options;rules;lexer;constructor(c){this.options=c||fa}space(c){let a=this.rules.block.newline.exec(c);if(a&&a[0].length>0)return{type:"space",raw:a[0]}}code(c){let a=this.rules.block.code.exec(c);if(a){let u=a[0].replace(this.rules.other.codeRemoveIndent,"");return{type:"code",raw:a[0],codeBlockStyle:"indented",text:this.options.pedantic?u:fs(u,`
15
+ `)}}}fences(c){let a=this.rules.block.fences.exec(c);if(a){let u=a[0],r=nS(u,a[3]||"",this.rules);return{type:"code",raw:u,lang:a[2]?a[2].trim().replace(this.rules.inline.anyPunctuation,"$1"):a[2],text:r}}}heading(c){let a=this.rules.block.heading.exec(c);if(a){let u=a[2].trim();if(this.rules.other.endingHash.test(u)){let r=fs(u,"#");(this.options.pedantic||!r||this.rules.other.endingSpaceChar.test(r))&&(u=r.trim())}return{type:"heading",raw:a[0],depth:a[1].length,text:u,tokens:this.lexer.inline(u)}}}hr(c){let a=this.rules.block.hr.exec(c);if(a)return{type:"hr",raw:fs(a[0],`
16
+ `)}}blockquote(c){let a=this.rules.block.blockquote.exec(c);if(a){let u=fs(a[0],`
17
+ `).split(`
18
+ `),r="",o="",d=[];for(;u.length>0;){let h=!1,m=[],g;for(g=0;g<u.length;g++)if(this.rules.other.blockquoteStart.test(u[g]))m.push(u[g]),h=!0;else if(!h)m.push(u[g]);else break;u=u.slice(g);let y=m.join(`
19
+ `),E=y.replace(this.rules.other.blockquoteSetextReplace,`
20
+ $1`).replace(this.rules.other.blockquoteSetextReplace2,"");r=r?`${r}
21
+ ${y}`:y,o=o?`${o}
22
+ ${E}`:E;let x=this.lexer.state.top;if(this.lexer.state.top=!0,this.lexer.blockTokens(E,d,!0),this.lexer.state.top=x,u.length===0)break;let M=d.at(-1);if(M?.type==="code")break;if(M?.type==="blockquote"){let H=M,w=H.raw+`
23
+ `+u.join(`
24
+ `),Z=this.blockquote(w);d[d.length-1]=Z,r=r.substring(0,r.length-H.raw.length)+Z.raw,o=o.substring(0,o.length-H.text.length)+Z.text;break}else if(M?.type==="list"){let H=M,w=H.raw+`
25
+ `+u.join(`
26
+ `),Z=this.list(w);d[d.length-1]=Z,r=r.substring(0,r.length-M.raw.length)+Z.raw,o=o.substring(0,o.length-H.raw.length)+Z.raw,u=w.substring(d.at(-1).raw.length).split(`
27
+ `);continue}}return{type:"blockquote",raw:r,tokens:d,text:o}}}list(c){let a=this.rules.block.list.exec(c);if(a){let u=a[1].trim(),r=u.length>1,o={type:"list",raw:"",ordered:r,start:r?+u.slice(0,-1):"",loose:!1,items:[]};u=r?`\\d{1,9}\\${u.slice(-1)}`:`\\${u}`,this.options.pedantic&&(u=r?u:"[*+-]");let d=this.rules.other.listItemRegex(u),h=!1;for(;c;){let g=!1,y="",E="";if(!(a=d.exec(c))||this.rules.block.hr.test(c))break;y=a[0],c=c.substring(y.length);let x=a[2].split(`
28
+ `,1)[0].replace(this.rules.other.listReplaceTabs,re=>" ".repeat(3*re.length)),M=c.split(`
29
+ `,1)[0],H=!x.trim(),w=0;if(this.options.pedantic?(w=2,E=x.trimStart()):H?w=a[1].length+1:(w=a[2].search(this.rules.other.nonSpaceChar),w=w>4?1:w,E=x.slice(w),w+=a[1].length),H&&this.rules.other.blankLine.test(M)&&(y+=M+`
30
+ `,c=c.substring(M.length+1),g=!0),!g){let re=this.rules.other.nextBulletRegex(w),te=this.rules.other.hrRegex(w),P=this.rules.other.fencesBeginRegex(w),W=this.rules.other.headingBeginRegex(w),ae=this.rules.other.htmlBeginRegex(w);for(;c;){let ie=c.split(`
31
+ `,1)[0],V;if(M=ie,this.options.pedantic?(M=M.replace(this.rules.other.listReplaceNesting," "),V=M):V=M.replace(this.rules.other.tabCharGlobal," "),P.test(M)||W.test(M)||ae.test(M)||re.test(M)||te.test(M))break;if(V.search(this.rules.other.nonSpaceChar)>=w||!M.trim())E+=`
32
+ `+V.slice(w);else{if(H||x.replace(this.rules.other.tabCharGlobal," ").search(this.rules.other.nonSpaceChar)>=4||P.test(x)||W.test(x)||te.test(x))break;E+=`
33
+ `+M}!H&&!M.trim()&&(H=!0),y+=ie+`
34
+ `,c=c.substring(ie.length+1),x=V.slice(w)}}o.loose||(h?o.loose=!0:this.rules.other.doubleBlankLine.test(y)&&(h=!0));let Z=null,ne;this.options.gfm&&(Z=this.rules.other.listIsTask.exec(E),Z&&(ne=Z[0]!=="[ ] ",E=E.replace(this.rules.other.listReplaceTask,""))),o.items.push({type:"list_item",raw:y,task:!!Z,checked:ne,loose:!1,text:E,tokens:[]}),o.raw+=y}let m=o.items.at(-1);if(m)m.raw=m.raw.trimEnd(),m.text=m.text.trimEnd();else return;o.raw=o.raw.trimEnd();for(let g=0;g<o.items.length;g++)if(this.lexer.state.top=!1,o.items[g].tokens=this.lexer.blockTokens(o.items[g].text,[]),!o.loose){let y=o.items[g].tokens.filter(x=>x.type==="space"),E=y.length>0&&y.some(x=>this.rules.other.anyLine.test(x.raw));o.loose=E}if(o.loose)for(let g=0;g<o.items.length;g++)o.items[g].loose=!0;return o}}html(c){let a=this.rules.block.html.exec(c);if(a)return{type:"html",block:!0,raw:a[0],pre:a[1]==="pre"||a[1]==="script"||a[1]==="style",text:a[0]}}def(c){let a=this.rules.block.def.exec(c);if(a){let u=a[1].toLowerCase().replace(this.rules.other.multipleSpaceGlobal," "),r=a[2]?a[2].replace(this.rules.other.hrefBrackets,"$1").replace(this.rules.inline.anyPunctuation,"$1"):"",o=a[3]?a[3].substring(1,a[3].length-1).replace(this.rules.inline.anyPunctuation,"$1"):a[3];return{type:"def",tag:u,raw:a[0],href:r,title:o}}}table(c){let a=this.rules.block.table.exec(c);if(!a||!this.rules.other.tableDelimiter.test(a[2]))return;let u=rg(a[1]),r=a[2].replace(this.rules.other.tableAlignChars,"").split("|"),o=a[3]?.trim()?a[3].replace(this.rules.other.tableRowBlankLine,"").split(`
35
+ `):[],d={type:"table",raw:a[0],header:[],align:[],rows:[]};if(u.length===r.length){for(let h of r)this.rules.other.tableAlignRight.test(h)?d.align.push("right"):this.rules.other.tableAlignCenter.test(h)?d.align.push("center"):this.rules.other.tableAlignLeft.test(h)?d.align.push("left"):d.align.push(null);for(let h=0;h<u.length;h++)d.header.push({text:u[h],tokens:this.lexer.inline(u[h]),header:!0,align:d.align[h]});for(let h of o)d.rows.push(rg(h,d.header.length).map((m,g)=>({text:m,tokens:this.lexer.inline(m),header:!1,align:d.align[g]})));return d}}lheading(c){let a=this.rules.block.lheading.exec(c);if(a)return{type:"heading",raw:a[0],depth:a[2].charAt(0)==="="?1:2,text:a[1],tokens:this.lexer.inline(a[1])}}paragraph(c){let a=this.rules.block.paragraph.exec(c);if(a){let u=a[1].charAt(a[1].length-1)===`
36
+ `?a[1].slice(0,-1):a[1];return{type:"paragraph",raw:a[0],text:u,tokens:this.lexer.inline(u)}}}text(c){let a=this.rules.block.text.exec(c);if(a)return{type:"text",raw:a[0],text:a[0],tokens:this.lexer.inline(a[0])}}escape(c){let a=this.rules.inline.escape.exec(c);if(a)return{type:"escape",raw:a[0],text:a[1]}}tag(c){let a=this.rules.inline.tag.exec(c);if(a)return!this.lexer.state.inLink&&this.rules.other.startATag.test(a[0])?this.lexer.state.inLink=!0:this.lexer.state.inLink&&this.rules.other.endATag.test(a[0])&&(this.lexer.state.inLink=!1),!this.lexer.state.inRawBlock&&this.rules.other.startPreScriptTag.test(a[0])?this.lexer.state.inRawBlock=!0:this.lexer.state.inRawBlock&&this.rules.other.endPreScriptTag.test(a[0])&&(this.lexer.state.inRawBlock=!1),{type:"html",raw:a[0],inLink:this.lexer.state.inLink,inRawBlock:this.lexer.state.inRawBlock,block:!1,text:a[0]}}link(c){let a=this.rules.inline.link.exec(c);if(a){let u=a[2].trim();if(!this.options.pedantic&&this.rules.other.startAngleBracket.test(u)){if(!this.rules.other.endAngleBracket.test(u))return;let d=fs(u.slice(0,-1),"\\");if((u.length-d.length)%2===0)return}else{let d=lS(a[2],"()");if(d===-2)return;if(d>-1){let h=(a[0].indexOf("!")===0?5:4)+a[1].length+d;a[2]=a[2].substring(0,d),a[0]=a[0].substring(0,h).trim(),a[3]=""}}let r=a[2],o="";if(this.options.pedantic){let d=this.rules.other.pedanticHrefTitle.exec(r);d&&(r=d[1],o=d[3])}else o=a[3]?a[3].slice(1,-1):"";return r=r.trim(),this.rules.other.startAngleBracket.test(r)&&(this.options.pedantic&&!this.rules.other.endAngleBracket.test(u)?r=r.slice(1):r=r.slice(1,-1)),og(a,{href:r&&r.replace(this.rules.inline.anyPunctuation,"$1"),title:o&&o.replace(this.rules.inline.anyPunctuation,"$1")},a[0],this.lexer,this.rules)}}reflink(c,a){let u;if((u=this.rules.inline.reflink.exec(c))||(u=this.rules.inline.nolink.exec(c))){let r=(u[2]||u[1]).replace(this.rules.other.multipleSpaceGlobal," "),o=a[r.toLowerCase()];if(!o){let d=u[0].charAt(0);return{type:"text",raw:d,text:d}}return og(u,o,u[0],this.lexer,this.rules)}}emStrong(c,a,u=""){let r=this.rules.inline.emStrongLDelim.exec(c);if(!(!r||r[3]&&u.match(this.rules.other.unicodeAlphaNumeric))&&(!(r[1]||r[2])||!u||this.rules.inline.punctuation.exec(u))){let o=[...r[0]].length-1,d,h,m=o,g=0,y=r[0][0]==="*"?this.rules.inline.emStrongRDelimAst:this.rules.inline.emStrongRDelimUnd;for(y.lastIndex=0,a=a.slice(-1*c.length+o);(r=y.exec(a))!=null;){if(d=r[1]||r[2]||r[3]||r[4]||r[5]||r[6],!d)continue;if(h=[...d].length,r[3]||r[4]){m+=h;continue}else if((r[5]||r[6])&&o%3&&!((o+h)%3)){g+=h;continue}if(m-=h,m>0)continue;h=Math.min(h,h+m+g);let E=[...r[0]][0].length,x=c.slice(0,o+r.index+E+h);if(Math.min(o,h)%2){let H=x.slice(1,-1);return{type:"em",raw:x,text:H,tokens:this.lexer.inlineTokens(H)}}let M=x.slice(2,-2);return{type:"strong",raw:x,text:M,tokens:this.lexer.inlineTokens(M)}}}}codespan(c){let a=this.rules.inline.code.exec(c);if(a){let u=a[2].replace(this.rules.other.newLineCharGlobal," "),r=this.rules.other.nonSpaceChar.test(u),o=this.rules.other.startingSpaceChar.test(u)&&this.rules.other.endingSpaceChar.test(u);return r&&o&&(u=u.substring(1,u.length-1)),{type:"codespan",raw:a[0],text:u}}}br(c){let a=this.rules.inline.br.exec(c);if(a)return{type:"br",raw:a[0]}}del(c){let a=this.rules.inline.del.exec(c);if(a)return{type:"del",raw:a[0],text:a[2],tokens:this.lexer.inlineTokens(a[2])}}autolink(c){let a=this.rules.inline.autolink.exec(c);if(a){let u,r;return a[2]==="@"?(u=a[1],r="mailto:"+u):(u=a[1],r=u),{type:"link",raw:a[0],text:u,href:r,tokens:[{type:"text",raw:u,text:u}]}}}url(c){let a;if(a=this.rules.inline.url.exec(c)){let u,r;if(a[2]==="@")u=a[0],r="mailto:"+u;else{let o;do o=a[0],a[0]=this.rules.inline._backpedal.exec(a[0])?.[0]??"";while(o!==a[0]);u=a[0],a[1]==="www."?r="http://"+a[0]:r=a[0]}return{type:"link",raw:a[0],text:u,href:r,tokens:[{type:"text",raw:u,text:u}]}}}inlineText(c){let a=this.rules.inline.text.exec(c);if(a){let u=this.lexer.state.inRawBlock;return{type:"text",raw:a[0],text:a[0],escaped:u}}}},gl=class Oc{tokens;options;state;tokenizer;inlineQueue;constructor(a){this.tokens=[],this.tokens.links=Object.create(null),this.options=a||fa,this.options.tokenizer=this.options.tokenizer||new Gu,this.tokenizer=this.options.tokenizer,this.tokenizer.options=this.options,this.tokenizer.lexer=this,this.inlineQueue=[],this.state={inLink:!1,inRawBlock:!1,top:!0};let u={other:wt,block:Uu.normal,inline:cs.normal};this.options.pedantic?(u.block=Uu.pedantic,u.inline=cs.pedantic):this.options.gfm&&(u.block=Uu.gfm,this.options.breaks?u.inline=cs.breaks:u.inline=cs.gfm),this.tokenizer.rules=u}static get rules(){return{block:Uu,inline:cs}}static lex(a,u){return new Oc(u).lex(a)}static lexInline(a,u){return new Oc(u).inlineTokens(a)}lex(a){a=a.replace(wt.carriageReturn,`
37
+ `),this.blockTokens(a,this.tokens);for(let u=0;u<this.inlineQueue.length;u++){let r=this.inlineQueue[u];this.inlineTokens(r.src,r.tokens)}return this.inlineQueue=[],this.tokens}blockTokens(a,u=[],r=!1){for(this.options.pedantic&&(a=a.replace(wt.tabCharGlobal," ").replace(wt.spaceLine,""));a;){let o;if(this.options.extensions?.block?.some(h=>(o=h.call({lexer:this},a,u))?(a=a.substring(o.raw.length),u.push(o),!0):!1))continue;if(o=this.tokenizer.space(a)){a=a.substring(o.raw.length);let h=u.at(-1);o.raw.length===1&&h!==void 0?h.raw+=`
38
+ `:u.push(o);continue}if(o=this.tokenizer.code(a)){a=a.substring(o.raw.length);let h=u.at(-1);h?.type==="paragraph"||h?.type==="text"?(h.raw+=(h.raw.endsWith(`
39
+ `)?"":`
40
+ `)+o.raw,h.text+=`
41
+ `+o.text,this.inlineQueue.at(-1).src=h.text):u.push(o);continue}if(o=this.tokenizer.fences(a)){a=a.substring(o.raw.length),u.push(o);continue}if(o=this.tokenizer.heading(a)){a=a.substring(o.raw.length),u.push(o);continue}if(o=this.tokenizer.hr(a)){a=a.substring(o.raw.length),u.push(o);continue}if(o=this.tokenizer.blockquote(a)){a=a.substring(o.raw.length),u.push(o);continue}if(o=this.tokenizer.list(a)){a=a.substring(o.raw.length),u.push(o);continue}if(o=this.tokenizer.html(a)){a=a.substring(o.raw.length),u.push(o);continue}if(o=this.tokenizer.def(a)){a=a.substring(o.raw.length);let h=u.at(-1);h?.type==="paragraph"||h?.type==="text"?(h.raw+=(h.raw.endsWith(`
42
+ `)?"":`
43
+ `)+o.raw,h.text+=`
44
+ `+o.raw,this.inlineQueue.at(-1).src=h.text):this.tokens.links[o.tag]||(this.tokens.links[o.tag]={href:o.href,title:o.title},u.push(o));continue}if(o=this.tokenizer.table(a)){a=a.substring(o.raw.length),u.push(o);continue}if(o=this.tokenizer.lheading(a)){a=a.substring(o.raw.length),u.push(o);continue}let d=a;if(this.options.extensions?.startBlock){let h=1/0,m=a.slice(1),g;this.options.extensions.startBlock.forEach(y=>{g=y.call({lexer:this},m),typeof g=="number"&&g>=0&&(h=Math.min(h,g))}),h<1/0&&h>=0&&(d=a.substring(0,h+1))}if(this.state.top&&(o=this.tokenizer.paragraph(d))){let h=u.at(-1);r&&h?.type==="paragraph"?(h.raw+=(h.raw.endsWith(`
45
+ `)?"":`
46
+ `)+o.raw,h.text+=`
47
+ `+o.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=h.text):u.push(o),r=d.length!==a.length,a=a.substring(o.raw.length);continue}if(o=this.tokenizer.text(a)){a=a.substring(o.raw.length);let h=u.at(-1);h?.type==="text"?(h.raw+=(h.raw.endsWith(`
48
+ `)?"":`
49
+ `)+o.raw,h.text+=`
50
+ `+o.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=h.text):u.push(o);continue}if(a){let h="Infinite loop on byte: "+a.charCodeAt(0);if(this.options.silent){console.error(h);break}else throw new Error(h)}}return this.state.top=!0,u}inline(a,u=[]){return this.inlineQueue.push({src:a,tokens:u}),u}inlineTokens(a,u=[]){let r=a,o=null;if(this.tokens.links){let g=Object.keys(this.tokens.links);if(g.length>0)for(;(o=this.tokenizer.rules.inline.reflinkSearch.exec(r))!=null;)g.includes(o[0].slice(o[0].lastIndexOf("[")+1,-1))&&(r=r.slice(0,o.index)+"["+"a".repeat(o[0].length-2)+"]"+r.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;(o=this.tokenizer.rules.inline.anyPunctuation.exec(r))!=null;)r=r.slice(0,o.index)+"++"+r.slice(this.tokenizer.rules.inline.anyPunctuation.lastIndex);let d;for(;(o=this.tokenizer.rules.inline.blockSkip.exec(r))!=null;)d=o[2]?o[2].length:0,r=r.slice(0,o.index+d)+"["+"a".repeat(o[0].length-d-2)+"]"+r.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);r=this.options.hooks?.emStrongMask?.call({lexer:this},r)??r;let h=!1,m="";for(;a;){h||(m=""),h=!1;let g;if(this.options.extensions?.inline?.some(E=>(g=E.call({lexer:this},a,u))?(a=a.substring(g.raw.length),u.push(g),!0):!1))continue;if(g=this.tokenizer.escape(a)){a=a.substring(g.raw.length),u.push(g);continue}if(g=this.tokenizer.tag(a)){a=a.substring(g.raw.length),u.push(g);continue}if(g=this.tokenizer.link(a)){a=a.substring(g.raw.length),u.push(g);continue}if(g=this.tokenizer.reflink(a,this.tokens.links)){a=a.substring(g.raw.length);let E=u.at(-1);g.type==="text"&&E?.type==="text"?(E.raw+=g.raw,E.text+=g.text):u.push(g);continue}if(g=this.tokenizer.emStrong(a,r,m)){a=a.substring(g.raw.length),u.push(g);continue}if(g=this.tokenizer.codespan(a)){a=a.substring(g.raw.length),u.push(g);continue}if(g=this.tokenizer.br(a)){a=a.substring(g.raw.length),u.push(g);continue}if(g=this.tokenizer.del(a)){a=a.substring(g.raw.length),u.push(g);continue}if(g=this.tokenizer.autolink(a)){a=a.substring(g.raw.length),u.push(g);continue}if(!this.state.inLink&&(g=this.tokenizer.url(a))){a=a.substring(g.raw.length),u.push(g);continue}let y=a;if(this.options.extensions?.startInline){let E=1/0,x=a.slice(1),M;this.options.extensions.startInline.forEach(H=>{M=H.call({lexer:this},x),typeof M=="number"&&M>=0&&(E=Math.min(E,M))}),E<1/0&&E>=0&&(y=a.substring(0,E+1))}if(g=this.tokenizer.inlineText(y)){a=a.substring(g.raw.length),g.raw.slice(-1)!=="_"&&(m=g.raw.slice(-1)),h=!0;let E=u.at(-1);E?.type==="text"?(E.raw+=g.raw,E.text+=g.text):u.push(g);continue}if(a){let E="Infinite loop on byte: "+a.charCodeAt(0);if(this.options.silent){console.error(E);break}else throw new Error(E)}}return u}},Xu=class{options;parser;constructor(c){this.options=c||fa}space(c){return""}code({text:c,lang:a,escaped:u}){let r=(a||"").match(wt.notSpaceStart)?.[0],o=c.replace(wt.endingNewline,"")+`
51
+ `;return r?'<pre><code class="language-'+zl(r)+'">'+(u?o:zl(o,!0))+`</code></pre>
52
+ `:"<pre><code>"+(u?o:zl(o,!0))+`</code></pre>
53
+ `}blockquote({tokens:c}){return`<blockquote>
54
+ ${this.parser.parse(c)}</blockquote>
55
+ `}html({text:c}){return c}def(c){return""}heading({tokens:c,depth:a}){return`<h${a}>${this.parser.parseInline(c)}</h${a}>
56
+ `}hr(c){return`<hr>
57
+ `}list(c){let a=c.ordered,u=c.start,r="";for(let h=0;h<c.items.length;h++){let m=c.items[h];r+=this.listitem(m)}let o=a?"ol":"ul",d=a&&u!==1?' start="'+u+'"':"";return"<"+o+d+`>
58
+ `+r+"</"+o+`>
59
+ `}listitem(c){let a="";if(c.task){let u=this.checkbox({checked:!!c.checked});c.loose?c.tokens[0]?.type==="paragraph"?(c.tokens[0].text=u+" "+c.tokens[0].text,c.tokens[0].tokens&&c.tokens[0].tokens.length>0&&c.tokens[0].tokens[0].type==="text"&&(c.tokens[0].tokens[0].text=u+" "+zl(c.tokens[0].tokens[0].text),c.tokens[0].tokens[0].escaped=!0)):c.tokens.unshift({type:"text",raw:u+" ",text:u+" ",escaped:!0}):a+=u+" "}return a+=this.parser.parse(c.tokens,!!c.loose),`<li>${a}</li>
60
+ `}checkbox({checked:c}){return"<input "+(c?'checked="" ':"")+'disabled="" type="checkbox">'}paragraph({tokens:c}){return`<p>${this.parser.parseInline(c)}</p>
61
+ `}table(c){let a="",u="";for(let o=0;o<c.header.length;o++)u+=this.tablecell(c.header[o]);a+=this.tablerow({text:u});let r="";for(let o=0;o<c.rows.length;o++){let d=c.rows[o];u="";for(let h=0;h<d.length;h++)u+=this.tablecell(d[h]);r+=this.tablerow({text:u})}return r&&(r=`<tbody>${r}</tbody>`),`<table>
62
+ <thead>
63
+ `+a+`</thead>
64
+ `+r+`</table>
65
+ `}tablerow({text:c}){return`<tr>
66
+ ${c}</tr>
67
+ `}tablecell(c){let a=this.parser.parseInline(c.tokens),u=c.header?"th":"td";return(c.align?`<${u} align="${c.align}">`:`<${u}>`)+a+`</${u}>
68
+ `}strong({tokens:c}){return`<strong>${this.parser.parseInline(c)}</strong>`}em({tokens:c}){return`<em>${this.parser.parseInline(c)}</em>`}codespan({text:c}){return`<code>${zl(c,!0)}</code>`}br(c){return"<br>"}del({tokens:c}){return`<del>${this.parser.parseInline(c)}</del>`}link({href:c,title:a,tokens:u}){let r=this.parser.parseInline(u),o=ug(c);if(o===null)return r;c=o;let d='<a href="'+c+'"';return a&&(d+=' title="'+zl(a)+'"'),d+=">"+r+"</a>",d}image({href:c,title:a,text:u,tokens:r}){r&&(u=this.parser.parseInline(r,this.parser.textRenderer));let o=ug(c);if(o===null)return zl(u);c=o;let d=`<img src="${c}" alt="${u}"`;return a&&(d+=` title="${zl(a)}"`),d+=">",d}text(c){return"tokens"in c&&c.tokens?this.parser.parseInline(c.tokens):"escaped"in c&&c.escaped?c.text:zl(c.text)}},Uc=class{strong({text:c}){return c}em({text:c}){return c}codespan({text:c}){return c}del({text:c}){return c}html({text:c}){return c}text({text:c}){return c}link({text:c}){return""+c}image({text:c}){return""+c}br(){return""}},ml=class Rc{options;renderer;textRenderer;constructor(a){this.options=a||fa,this.options.renderer=this.options.renderer||new Xu,this.renderer=this.options.renderer,this.renderer.options=this.options,this.renderer.parser=this,this.textRenderer=new Uc}static parse(a,u){return new Rc(u).parse(a)}static parseInline(a,u){return new Rc(u).parseInline(a)}parse(a,u=!0){let r="";for(let o=0;o<a.length;o++){let d=a[o];if(this.options.extensions?.renderers?.[d.type]){let m=d,g=this.options.extensions.renderers[m.type].call({parser:this},m);if(g!==!1||!["space","hr","heading","code","table","blockquote","list","html","def","paragraph","text"].includes(m.type)){r+=g||"";continue}}let h=d;switch(h.type){case"space":{r+=this.renderer.space(h);continue}case"hr":{r+=this.renderer.hr(h);continue}case"heading":{r+=this.renderer.heading(h);continue}case"code":{r+=this.renderer.code(h);continue}case"table":{r+=this.renderer.table(h);continue}case"blockquote":{r+=this.renderer.blockquote(h);continue}case"list":{r+=this.renderer.list(h);continue}case"html":{r+=this.renderer.html(h);continue}case"def":{r+=this.renderer.def(h);continue}case"paragraph":{r+=this.renderer.paragraph(h);continue}case"text":{let m=h,g=this.renderer.text(m);for(;o+1<a.length&&a[o+1].type==="text";)m=a[++o],g+=`
69
+ `+this.renderer.text(m);u?r+=this.renderer.paragraph({type:"paragraph",raw:g,text:g,tokens:[{type:"text",raw:g,text:g,escaped:!0}]}):r+=g;continue}default:{let m='Token with "'+h.type+'" type was not found.';if(this.options.silent)return console.error(m),"";throw new Error(m)}}}return r}parseInline(a,u=this.renderer){let r="";for(let o=0;o<a.length;o++){let d=a[o];if(this.options.extensions?.renderers?.[d.type]){let m=this.options.extensions.renderers[d.type].call({parser:this},d);if(m!==!1||!["escape","html","link","image","strong","em","codespan","br","del","text"].includes(d.type)){r+=m||"";continue}}let h=d;switch(h.type){case"escape":{r+=u.text(h);break}case"html":{r+=u.html(h);break}case"link":{r+=u.link(h);break}case"image":{r+=u.image(h);break}case"strong":{r+=u.strong(h);break}case"em":{r+=u.em(h);break}case"codespan":{r+=u.codespan(h);break}case"br":{r+=u.br(h);break}case"del":{r+=u.del(h);break}case"text":{r+=u.text(h);break}default:{let m='Token with "'+h.type+'" type was not found.';if(this.options.silent)return console.error(m),"";throw new Error(m)}}}return r}},hs=class{options;block;constructor(c){this.options=c||fa}static passThroughHooks=new Set(["preprocess","postprocess","processAllTokens","emStrongMask"]);static passThroughHooksRespectAsync=new Set(["preprocess","postprocess","processAllTokens"]);preprocess(c){return c}postprocess(c){return c}processAllTokens(c){return c}emStrongMask(c){return c}provideLexer(){return this.block?gl.lex:gl.lexInline}provideParser(){return this.block?ml.parse:ml.parseInline}},aS=class{defaults=zc();options=this.setOptions;parse=this.parseMarkdown(!0);parseInline=this.parseMarkdown(!1);Parser=ml;Renderer=Xu;TextRenderer=Uc;Lexer=gl;Tokenizer=Gu;Hooks=hs;constructor(...c){this.use(...c)}walkTokens(c,a){let u=[];for(let r of c)switch(u=u.concat(a.call(this,r)),r.type){case"table":{let o=r;for(let d of o.header)u=u.concat(this.walkTokens(d.tokens,a));for(let d of o.rows)for(let h of d)u=u.concat(this.walkTokens(h.tokens,a));break}case"list":{let o=r;u=u.concat(this.walkTokens(o.items,a));break}default:{let o=r;this.defaults.extensions?.childTokens?.[o.type]?this.defaults.extensions.childTokens[o.type].forEach(d=>{let h=o[d].flat(1/0);u=u.concat(this.walkTokens(h,a))}):o.tokens&&(u=u.concat(this.walkTokens(o.tokens,a)))}}return u}use(...c){let a=this.defaults.extensions||{renderers:{},childTokens:{}};return c.forEach(u=>{let r={...u};if(r.async=this.defaults.async||r.async||!1,u.extensions&&(u.extensions.forEach(o=>{if(!o.name)throw new Error("extension name required");if("renderer"in o){let d=a.renderers[o.name];d?a.renderers[o.name]=function(...h){let m=o.renderer.apply(this,h);return m===!1&&(m=d.apply(this,h)),m}:a.renderers[o.name]=o.renderer}if("tokenizer"in o){if(!o.level||o.level!=="block"&&o.level!=="inline")throw new Error("extension level must be 'block' or 'inline'");let d=a[o.level];d?d.unshift(o.tokenizer):a[o.level]=[o.tokenizer],o.start&&(o.level==="block"?a.startBlock?a.startBlock.push(o.start):a.startBlock=[o.start]:o.level==="inline"&&(a.startInline?a.startInline.push(o.start):a.startInline=[o.start]))}"childTokens"in o&&o.childTokens&&(a.childTokens[o.name]=o.childTokens)}),r.extensions=a),u.renderer){let o=this.defaults.renderer||new Xu(this.defaults);for(let d in u.renderer){if(!(d in o))throw new Error(`renderer '${d}' does not exist`);if(["options","parser"].includes(d))continue;let h=d,m=u.renderer[h],g=o[h];o[h]=(...y)=>{let E=m.apply(o,y);return E===!1&&(E=g.apply(o,y)),E||""}}r.renderer=o}if(u.tokenizer){let o=this.defaults.tokenizer||new Gu(this.defaults);for(let d in u.tokenizer){if(!(d in o))throw new Error(`tokenizer '${d}' does not exist`);if(["options","rules","lexer"].includes(d))continue;let h=d,m=u.tokenizer[h],g=o[h];o[h]=(...y)=>{let E=m.apply(o,y);return E===!1&&(E=g.apply(o,y)),E}}r.tokenizer=o}if(u.hooks){let o=this.defaults.hooks||new hs;for(let d in u.hooks){if(!(d in o))throw new Error(`hook '${d}' does not exist`);if(["options","block"].includes(d))continue;let h=d,m=u.hooks[h],g=o[h];hs.passThroughHooks.has(d)?o[h]=y=>{if(this.defaults.async&&hs.passThroughHooksRespectAsync.has(d))return(async()=>{let x=await m.call(o,y);return g.call(o,x)})();let E=m.call(o,y);return g.call(o,E)}:o[h]=(...y)=>{if(this.defaults.async)return(async()=>{let x=await m.apply(o,y);return x===!1&&(x=await g.apply(o,y)),x})();let E=m.apply(o,y);return E===!1&&(E=g.apply(o,y)),E}}r.hooks=o}if(u.walkTokens){let o=this.defaults.walkTokens,d=u.walkTokens;r.walkTokens=function(h){let m=[];return m.push(d.call(this,h)),o&&(m=m.concat(o.call(this,h))),m}}this.defaults={...this.defaults,...r}}),this}setOptions(c){return this.defaults={...this.defaults,...c},this}lexer(c,a){return gl.lex(c,a??this.defaults)}parser(c,a){return ml.parse(c,a??this.defaults)}parseMarkdown(c){return(a,u)=>{let r={...u},o={...this.defaults,...r},d=this.onError(!!o.silent,!!o.async);if(this.defaults.async===!0&&r.async===!1)return d(new Error("marked(): The async option was set to true by an extension. Remove async: false from the parse options object to return a Promise."));if(typeof a>"u"||a===null)return d(new Error("marked(): input parameter is undefined or null"));if(typeof a!="string")return d(new Error("marked(): input parameter is of type "+Object.prototype.toString.call(a)+", string expected"));if(o.hooks&&(o.hooks.options=o,o.hooks.block=c),o.async)return(async()=>{let h=o.hooks?await o.hooks.preprocess(a):a,m=await(o.hooks?await o.hooks.provideLexer():c?gl.lex:gl.lexInline)(h,o),g=o.hooks?await o.hooks.processAllTokens(m):m;o.walkTokens&&await Promise.all(this.walkTokens(g,o.walkTokens));let y=await(o.hooks?await o.hooks.provideParser():c?ml.parse:ml.parseInline)(g,o);return o.hooks?await o.hooks.postprocess(y):y})().catch(d);try{o.hooks&&(a=o.hooks.preprocess(a));let h=(o.hooks?o.hooks.provideLexer():c?gl.lex:gl.lexInline)(a,o);o.hooks&&(h=o.hooks.processAllTokens(h)),o.walkTokens&&this.walkTokens(h,o.walkTokens);let m=(o.hooks?o.hooks.provideParser():c?ml.parse:ml.parseInline)(h,o);return o.hooks&&(m=o.hooks.postprocess(m)),m}catch(h){return d(h)}}}onError(c,a){return u=>{if(u.message+=`
70
+ Please report this to https://github.com/markedjs/marked.`,c){let r="<p>An error occurred:</p><pre>"+zl(u.message+"",!0)+"</pre>";return a?Promise.resolve(r):r}if(a)return Promise.reject(u);throw u}}},ca=new aS;function qe(c,a){return ca.parse(c,a)}qe.options=qe.setOptions=function(c){return ca.setOptions(c),qe.defaults=ca.defaults,Sg(qe.defaults),qe};qe.getDefaults=zc;qe.defaults=fa;qe.use=function(...c){return ca.use(...c),qe.defaults=ca.defaults,Sg(qe.defaults),qe};qe.walkTokens=function(c,a){return ca.walkTokens(c,a)};qe.parseInline=ca.parseInline;qe.Parser=ml;qe.parser=ml.parse;qe.Renderer=Xu;qe.TextRenderer=Uc;qe.Lexer=gl;qe.lexer=gl.lex;qe.Tokenizer=Gu;qe.Hooks=hs;qe.parse=qe;qe.options;qe.setOptions;qe.use;qe.walkTokens;qe.parseInline;ml.parse;gl.lex;var Cg=cg();function ju(c){if(!c)return!1;const a=c.toLowerCase();return a.includes("o1")||a.includes("reasoning")||a.includes("gpt-oss")||a.includes("deepseek-r1")}function iS({config:c,setConfig:a,systemPrompt:u,setSystemPrompt:r}){const{t:o}=ri(),[d,h]=pe.useState([]),[m,g]=pe.useState(!1),[y,E]=pe.useState(""),[x,M]=pe.useState(!1),H=async()=>{try{await navigator.clipboard.writeText(u),M(!0),setTimeout(()=>M(!1),2e3)}catch(w){console.error("Failed to copy:",w)}};return pe.useEffect(()=>{if(!c.endpoint)return;if(c.provider==="openai"&&!c.apiKey){h([]);return}async function Z(){g(!0),E("");try{let ne;c.provider==="ollama"?ne=`${c.endpoint}/api/tags`:c.provider==="gpt4all"?ne="/api/gpt4all/v1/models":ne=`${c.endpoint}/v1/models`;const re=await fetch(ne,{headers:{...c.apiKey?{Authorization:`Bearer ${c.apiKey}`}:{}}});if(!re.ok){const ae=await re.text();throw new Error(`HTTP ${re.status}: ${ae||re.statusText}`)}const te=await re.json();let P;if(c.provider==="ollama"){const ae=te.models?.map(ie=>ie.name)||[];P=await Promise.all(ae.map(async ie=>{try{const V=await fetch(`${c.endpoint}/api/show`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({name:ie})});if(V.ok){const De=await V.json(),oe=De.modelfile?.toLowerCase()||"",ce=JSON.stringify(De.parameters||{}).toLowerCase(),ye=oe.includes("reasoning")||ce.includes("reasoning")||ju(ie);return{id:ie,supportsReasoning:ye}}}catch{}return{id:ie,supportsReasoning:ju(ie)}}))}else P=(te.data?.map(ie=>ie.id)||[]).map(ie=>({id:ie,supportsReasoning:ju(ie)}));h(P);const W=P.map(ae=>ae.id);P.length>0&&(!c.model||!W.includes(c.model))&&a({...c,model:P[0].id})}catch(ne){E(String(ne)),h([])}finally{g(!1)}}Z()},[c.provider,c.endpoint,c.apiKey,c.model,c,a]),j.jsx("div",{className:"flex-1 flex flex-col items-center justify-center p-8",children:j.jsxs("div",{className:"w-full max-w-md",children:[j.jsxs("div",{className:"text-center mb-6",children:[j.jsx("h2",{className:"text-xl font-bold text-slate-800 dark:text-slate-100",children:o("settingsTitle")}),j.jsx("p",{className:"mt-1.5 text-sm text-slate-500 dark:text-slate-400",children:o("settingsDesc")})]}),j.jsxs("form",{onSubmit:w=>w.preventDefault(),className:"bg-slate-50 rounded-2xl border border-slate-200 p-5 space-y-4 dark:bg-slate-800 dark:border-slate-700",children:[j.jsxs("div",{children:[j.jsx("label",{className:"block text-sm font-medium text-slate-700 mb-1.5 dark:text-slate-300",htmlFor:"provider",children:o("provider")}),j.jsxs("select",{id:"provider",className:"w-full rounded-xl border border-slate-300 bg-white px-3 py-2.5 text-slate-800 shadow-sm focus:border-blue-500 focus:ring-2 focus:ring-blue-100 outline-none transition dark:border-slate-600 dark:bg-slate-700 dark:text-slate-100 dark:focus:ring-blue-900",value:c.provider,onChange:w=>{const Z=w.target.value;a({...c,provider:Z,endpoint:{openai:"https://api.openai.com",lmstudio:"http://localhost:1234",gpt4all:"http://localhost:4891",ollama:"http://localhost:11434",llamacpp:"http://localhost:8080"}[Z],model:void 0})},children:[j.jsx("option",{value:"openai",children:"OpenAI"}),j.jsx("option",{value:"lmstudio",children:"LM Studio"}),j.jsx("option",{value:"gpt4all",children:"GPT4ALL"}),j.jsx("option",{value:"ollama",children:"Ollama"}),j.jsx("option",{value:"llamacpp",children:"llama.cpp"})]})]}),j.jsxs("div",{children:[j.jsx("label",{className:"block text-sm font-medium text-slate-700 mb-1.5 dark:text-slate-300",htmlFor:"endpoint",children:o("endpoint")}),j.jsx("input",{id:"endpoint",type:"text",className:"w-full rounded-xl border border-slate-300 bg-white px-3 py-2.5 text-slate-800 shadow-sm focus:border-blue-500 focus:ring-2 focus:ring-blue-100 outline-none transition placeholder-slate-400 dark:border-slate-600 dark:bg-slate-700 dark:text-slate-100 dark:placeholder-slate-500 dark:focus:ring-blue-900",value:c.endpoint,onChange:w=>a({...c,endpoint:w.target.value}),placeholder:"https://api.openai.com"})]}),j.jsxs("div",{children:[j.jsx("label",{className:"block text-sm font-medium text-slate-700 mb-1.5 dark:text-slate-300",htmlFor:"apikey",children:o("apiKey")}),j.jsx("input",{id:"apikey",type:"password",className:"w-full rounded-xl border border-slate-300 bg-white px-3 py-2.5 text-slate-800 shadow-sm focus:border-blue-500 focus:ring-2 focus:ring-blue-100 outline-none transition placeholder-slate-400 dark:border-slate-600 dark:bg-slate-700 dark:text-slate-100 dark:placeholder-slate-500 dark:focus:ring-blue-900",value:c.apiKey,onChange:w=>a({...c,apiKey:w.target.value}),placeholder:"sk-..."})]}),j.jsxs("div",{children:[j.jsx("label",{className:"block text-sm font-medium text-slate-700 mb-1.5 dark:text-slate-300",htmlFor:"model",children:o("model")||"Model"}),m?j.jsx("div",{className:"w-full rounded-xl border border-slate-300 bg-white px-3 py-2.5 text-slate-500 dark:border-slate-600 dark:bg-slate-700 dark:text-slate-400",children:o("loadingModels")||"モデルを読み込んでいます..."}):y?j.jsxs("div",{className:"w-full rounded-xl border border-red-300 bg-red-50 px-3 py-2.5 text-red-600 text-sm dark:border-red-700 dark:bg-red-900/20 dark:text-red-400",children:[o("modelsError")||"モデル取得エラー",": ",y]}):d.length>0?j.jsx("select",{id:"model",className:"w-full rounded-xl border border-slate-300 bg-white px-3 py-2.5 text-slate-800 shadow-sm focus:border-blue-500 focus:ring-2 focus:ring-blue-100 outline-none transition dark:border-slate-600 dark:bg-slate-700 dark:text-slate-100 dark:focus:ring-blue-900",value:c.model||"",onChange:w=>a({...c,model:w.target.value}),children:d.map(w=>j.jsxs("option",{value:w.id,children:[w.id,w.supportsReasoning?" 🧠":""]},w.id))}):j.jsx("div",{className:"w-full rounded-xl border border-slate-300 bg-white px-3 py-2.5 text-slate-500 dark:border-slate-600 dark:bg-slate-700 dark:text-slate-400",children:o("noModels")||"モデルが見つかりません"})]}),d.find(w=>w.id===c.model&&c.provider!=="gpt4all")?.supportsReasoning&&j.jsxs("div",{children:[j.jsx("label",{className:"block text-sm font-medium text-slate-700 mb-1.5 dark:text-slate-300",htmlFor:"reasoningEffort",children:o("reasoningEffort")}),j.jsxs("select",{id:"reasoningEffort",className:"w-full rounded-xl border border-slate-300 bg-white px-3 py-2.5 text-slate-800 shadow-sm focus:border-blue-500 focus:ring-2 focus:ring-blue-100 outline-none transition dark:border-slate-600 dark:bg-slate-700 dark:text-slate-100 dark:focus:ring-blue-900",value:c.reasoningEffort||"medium",onChange:w=>a({...c,reasoningEffort:w.target.value}),children:[j.jsx("option",{value:"low",children:o("reasoningLow")}),j.jsx("option",{value:"medium",children:o("reasoningMedium")}),j.jsx("option",{value:"high",children:o("reasoningHigh")})]})]}),j.jsxs("div",{children:[j.jsxs("div",{className:"flex items-center justify-between mb-1.5",children:[j.jsx("label",{className:"text-sm font-medium text-slate-700 dark:text-slate-300",htmlFor:"systemprompt",children:o("systemPrompt")}),j.jsxs("button",{type:"button",onClick:H,className:"text-xs px-2.5 py-1 rounded-lg bg-slate-200 hover:bg-slate-300 dark:bg-slate-700 dark:hover:bg-slate-600 text-slate-700 dark:text-slate-200 transition-all duration-200 flex items-center gap-1.5",title:o("copySystemPrompt"),disabled:!u,children:[x?"✓":"📋"," ",x?"Copied!":o("copySystemPrompt")]})]}),j.jsx("textarea",{id:"systemprompt",className:"w-full rounded-xl border border-slate-300 bg-white px-3 py-2.5 text-slate-800 shadow-sm focus:border-blue-500 focus:ring-2 focus:ring-blue-100 outline-none transition placeholder-slate-400 dark:border-slate-600 dark:bg-slate-700 dark:text-slate-100 dark:placeholder-slate-500 dark:focus:ring-blue-900 resize-none",value:u,onChange:w=>r(w.target.value),placeholder:o("systemPromptPlaceholder"),rows:3})]})]})]})})}function sS({isOpen:c,title:a,message:u,onConfirm:r,onCancel:o}){const{t:d}=ri();return c?Cg.createPortal(j.jsxs("div",{className:"fixed inset-0 z-[9999] flex items-center justify-center",children:[j.jsx("button",{type:"button","aria-label":d("cancel")||"キャンセル",className:"absolute inset-0 bg-black/50 border-0 p-0 cursor-default",onClick:o}),j.jsxs("div",{className:"relative bg-white dark:bg-slate-800 rounded-2xl p-6 max-w-sm w-full mx-4 shadow-xl",children:[j.jsx("h3",{className:"text-lg font-bold text-slate-800 dark:text-slate-100 mb-2",children:a}),j.jsx("p",{className:"text-sm text-slate-600 dark:text-slate-400 mb-6",children:u}),j.jsxs("div",{className:"flex gap-3 justify-end",children:[j.jsx("button",{type:"button",onClick:o,className:"px-4 py-2 rounded-xl border border-slate-300 dark:border-slate-600 text-slate-700 dark:text-slate-300 hover:bg-slate-100 dark:hover:bg-slate-700 transition",children:d("cancel")||"キャンセル"}),j.jsx("button",{type:"button",onClick:r,className:"px-4 py-2 rounded-xl bg-red-600 hover:bg-red-700 text-white transition",children:d("delete")||"削除"})]})]})]}),document.body):null}function uS({sessions:c,currentSessionId:a,onLoadSession:u,onNewChat:r,onDeleteSession:o,isOpen:d,onClose:h}){const{t:m}=ri(),[g,y]=pe.useState(null),E=H=>{y(H)},x=()=>{g&&(o(g),y(null))},M=()=>{y(null)};return j.jsxs(j.Fragment,{children:[j.jsx(sS,{isOpen:g!==null,title:m("deleteConfirmTitle")||"チャットを削除しますか?",message:m("deleteConfirmMessage")||"この操作は取り消せません",onConfirm:x,onCancel:M}),d&&j.jsx("button",{type:"button","aria-label":m("chatHistory")||"チャット履歴",className:"fixed inset-0 bg-black/50 z-40 lg:hidden border-0 p-0 cursor-default",onClick:h}),j.jsxs("div",{className:`fixed lg:static top-0 left-0 h-full w-64 bg-slate-50 border-r border-slate-200 dark:bg-slate-900 dark:border-slate-700 flex flex-col z-50 transition-transform duration-300 ${d?"translate-x-0":"-translate-x-full lg:translate-x-0"}`,children:[j.jsxs("div",{className:"p-4 border-b border-slate-200 dark:border-slate-700 flex items-center justify-between",children:[j.jsx("h2",{className:"font-bold text-slate-800 dark:text-slate-100",children:m("chatHistory")||"チャット履歴"}),j.jsx("button",{type:"button",onClick:h,className:"lg:hidden text-slate-600 dark:text-slate-400 hover:text-slate-800 dark:hover:text-slate-200",children:"✕"})]}),j.jsx("div",{className:"p-4",children:j.jsxs("button",{type:"button",onClick:r,className:"w-full px-4 py-2 bg-blue-600 hover:bg-blue-700 text-white rounded-xl font-medium transition",children:["+ ",m("newChat")||"新規チャット"]})}),j.jsxs("div",{className:"flex-1 overflow-y-auto px-2",children:[c.map(H=>j.jsx("div",{className:`group relative mb-2 rounded-xl p-3 cursor-pointer transition ${H.id===a?"bg-blue-100 dark:bg-blue-900/30":"hover:bg-slate-100 dark:hover:bg-slate-800"}`,role:"button",tabIndex:0,onClick:()=>u(H.id),onKeyDown:w=>{(w.key==="Enter"||w.key===" ")&&u(H.id)},children:j.jsxs("div",{className:"flex items-start justify-between gap-2",children:[j.jsxs("div",{className:"flex-1 min-w-0",children:[j.jsx("p",{className:"text-sm font-medium text-slate-800 dark:text-slate-200 truncate",children:H.title}),j.jsx("p",{className:"text-xs text-slate-500 dark:text-slate-400 mt-1",children:new Date(H.updatedAt).toLocaleDateString()})]}),j.jsx("button",{type:"button",onClick:w=>{w.stopPropagation(),E(H.id)},className:"flex-shrink-0 opacity-40 group-hover:opacity-100 hover:scale-110 text-red-600 dark:text-red-400 hover:text-red-700 dark:hover:text-red-300 transition-all duration-200 text-lg",children:"🗑"})]})},H.id)),c.length===0&&j.jsx("p",{className:"text-center text-sm text-slate-400 dark:text-slate-500 mt-8",children:m("noHistory")||"履歴がありません"})]})]})]})}function rS({messages:c,scrollContainerRef:a,messageRefs:u}){const{t:r}=ri(),[o,d]=pe.useState({ratio:0,viewSize:1});pe.useEffect(()=>{const m=a.current;if(!m)return;const g=()=>{const E=m.scrollHeight-m.clientHeight;d({ratio:E>0?m.scrollTop/E:0,viewSize:m.scrollHeight>0?m.clientHeight/m.scrollHeight:1})};g(),m.addEventListener("scroll",g,{passive:!0});const y=new ResizeObserver(g);return y.observe(m),()=>{m.removeEventListener("scroll",g),y.disconnect()}},[a]);const h=m=>{u.current[m]?.scrollIntoView({behavior:"smooth",block:"center"})};return j.jsxs("div",{className:"relative w-5 bg-slate-50 border-l border-slate-200 overflow-hidden h-full dark:bg-slate-800 dark:border-slate-700",children:[j.jsx("div",{className:"absolute inset-0 flex flex-col gap-[2px]",children:c.map((m,g)=>j.jsx("button",{type:"button",onClick:()=>h(g),title:`${m.role==="user"?r("you"):r("ai")}: ${m.content.slice(0,40)}`,className:`flex-1 cursor-pointer transition-opacity hover:opacity-100 opacity-60 border-none outline-none
71
+ ${m.role==="user"?"bg-blue-400":"bg-slate-300 dark:bg-slate-600"}`,style:{minHeight:"2px"}},g))}),o.viewSize<1&&j.jsx("div",{className:"absolute left-0 right-0 border-2 border-blue-500 rounded pointer-events-none",style:{top:`${o.ratio*(1-o.viewSize)*100}%`,height:`${o.viewSize*100}%`}})]})}const oS="chat-history",Dl="sessions",cS=1;function $u(){return new Promise((c,a)=>{const u=indexedDB.open(oS,cS);u.onupgradeneeded=()=>{const r=u.result;r.objectStoreNames.contains(Dl)||r.createObjectStore(Dl,{keyPath:"id"})},u.onsuccess=()=>c(u.result),u.onerror=()=>a(u.error)})}async function fS(c){const a=await $u();return new Promise((u,r)=>{const o=a.transaction(Dl,"readwrite");o.objectStore(Dl).put(c),o.oncomplete=()=>{a.close(),u()},o.onerror=()=>r(o.error)})}async function dS(c){const a=await $u();return new Promise((u,r)=>{const d=a.transaction(Dl,"readonly").objectStore(Dl).get(c);d.onsuccess=()=>{a.close(),u(d.result||null)},d.onerror=()=>r(d.error)})}async function yc(){const c=await $u();return new Promise((a,u)=>{const o=c.transaction(Dl,"readonly").objectStore(Dl).getAll();o.onsuccess=()=>{c.close();const d=o.result;d.sort((h,m)=>m.updatedAt-h.updatedAt),a(d)},o.onerror=()=>u(o.error)})}async function hS(c){const a=await $u();return new Promise((u,r)=>{const o=a.transaction(Dl,"readwrite");o.objectStore(Dl).delete(c),o.oncomplete=()=>{a.close(),u()},o.onerror=()=>r(o.error)})}function pS({config:c,systemPrompt:a}){const{t:u}=ri(),[r,o]=pe.useState([]),[d,h]=pe.useState(""),[m,g]=pe.useState(!1),[y,E]=pe.useState(!0),[x,M]=pe.useState(()=>`session-${Date.now()}`),[H,w]=pe.useState([]),[Z,ne]=pe.useState(!0),[re,te]=pe.useState(null),P=pe.useRef(null),W=pe.useRef(null),ae=pe.useRef([]);pe.useEffect(()=>{yc().then(w).catch(console.error)},[]),pe.useEffect(()=>{if(r.length===0)return;const X=r.find(se=>se.role==="user")?.content.slice(0,50)||"New Chat",F={id:x,title:X,messages:r,createdAt:Date.now(),updatedAt:Date.now()};fS(F).then(()=>{yc().then(w).catch(console.error)}).catch(console.error)},[r,x]),pe.useEffect(()=>{P.current?.scrollIntoView({behavior:"smooth"})},[]),pe.useEffect(()=>{const X=W.current;if(!X)return;const F=()=>{E(X.scrollHeight-X.clientHeight-X.scrollTop<40)};F(),X.addEventListener("scroll",F,{passive:!0});const se=new ResizeObserver(F);return se.observe(X),()=>{X.removeEventListener("scroll",F),se.disconnect()}},[]);const ie=async X=>{const F=await dS(X);F&&(M(F.id),o(F.messages))},V=()=>{const X=`session-${Date.now()}`;M(X),o([])},De=async X=>{await hS(X);const F=await yc();w(F),X===x&&V()},oe=async(X,F)=>{try{await navigator.clipboard.writeText(X),te(F),setTimeout(()=>te(null),2e3)}catch(se){console.error("Failed to copy:",se)}};async function ce(){if(!d||m)return;const X=d;h(""),g(!0),o(se=>[...se,{role:"user",content:X,timestamp:Date.now()}]);const F=Date.now();try{let se;c.provider==="ollama"?se=`${c.endpoint}/api/chat`:c.provider==="gpt4all"?se="/api/gpt4all/v1/chat/completions":se=`${c.endpoint}/v1/chat/completions`;const Qe=[...a?[{role:"system",content:a}]:[],...r.map(de=>({role:de.role,content:de.content})),{role:"user",content:X}],N=ju(c.model);let q;c.provider==="ollama"?q={model:c.model||"llama2",messages:Qe,stream:!1,...N&&c.reasoningEffort?{think:c.reasoningEffort}:{}}:c.provider==="gpt4all"?q={model:c.model||"gpt-3.5-turbo",messages:Qe}:q={model:c.model||"gpt-3.5-turbo",messages:Qe,...N&&c.reasoningEffort?{reasoning_effort:c.reasoningEffort}:{}};const $=await fetch(se,{method:"POST",headers:{"Content-Type":"application/json",...c.apiKey?{Authorization:`Bearer ${c.apiKey}`}:{}},body:JSON.stringify(q)}),Se=Date.now(),_e=(Se-F)/1e3;if(!$.ok){const de=await $.text();throw new Error(`HTTP ${$.status}: ${de}`)}const S=await $.json(),D=c.provider==="ollama"?S.message?.content||"(no response)":S.choices?.[0]?.message?.content||"(no response)";let G;c.provider==="ollama"?G=S.eval_count:G=S.usage?.total_tokens;const Q=G&&_e>0?G/_e:void 0,fe=c.model||(c.provider==="ollama"?"llama2":"gpt-3.5-turbo");o(de=>[...de,{role:"assistant",content:D,model:fe,provider:c.provider,reasoningEffort:N&&c.reasoningEffort?c.reasoningEffort:void 0,tokensPerSecond:Q,timestamp:Se}])}catch(se){const Qe=c.model||(c.provider==="ollama"?"llama2":"gpt-3.5-turbo");o(N=>[...N,{role:"assistant",content:u("error")+String(se),model:Qe,provider:c.provider,timestamp:Date.now()}])}g(!1)}const ye=document.getElementById("minimap-portal");return j.jsxs("div",{className:"flex flex-1 relative overflow-hidden",children:[j.jsx(uS,{sessions:H,currentSessionId:x,onLoadSession:ie,onNewChat:V,onDeleteSession:De,isOpen:Z,onClose:()=>ne(!1)}),j.jsxs("div",{className:"flex flex-col flex-1 relative",children:[j.jsxs("div",{className:"border-b border-slate-100 px-4 py-3 flex items-center gap-3 dark:border-slate-700",children:[j.jsx("button",{type:"button",onClick:()=>ne(!0),className:"lg:hidden text-slate-600 dark:text-slate-400 hover:text-slate-800 dark:hover:text-slate-200",children:"☰"}),j.jsx("p",{className:"text-sm text-slate-500 dark:text-slate-400 flex-1 text-center lg:text-left",children:u("hint")})]}),j.jsxs("div",{ref:W,className:"flex-1 overflow-y-auto px-4 py-4 space-y-3 min-h-0",children:[r.length===0&&!m&&j.jsx("div",{className:"flex items-center justify-center pt-16",children:j.jsx("p",{className:"text-slate-400 text-sm",children:u("empty")})}),r.map((X,F)=>{const se=X.role==="user",Qe=re===F,N={openai:"OpenAI",lmstudio:"LM Studio",gpt4all:"GPT4ALL",ollama:"Ollama",llamacpp:"llama.cpp"},q=(X.provider?N[X.provider]:null)??N[c.provider]??c.provider;return j.jsx("div",{ref:$=>{ae.current[F]=$},className:`flex ${se?"justify-end":"justify-start"}`,children:j.jsxs("div",{className:`group relative max-w-[80%] px-4 py-2.5 rounded-2xl shadow-sm ${se?"bg-blue-600 text-white rounded-br-sm":"bg-slate-100 text-slate-800 rounded-bl-sm dark:bg-slate-700 dark:text-slate-100"}`,children:[j.jsx("button",{type:"button",onClick:()=>oe(X.content,F),className:`absolute -top-2 -right-2 w-7 h-7 rounded-lg flex items-center justify-center text-sm shadow-md transition-all duration-200 ${se?"bg-blue-500 hover:bg-blue-600 text-white":"bg-white hover:bg-slate-50 text-slate-600 dark:bg-slate-600 dark:hover:bg-slate-500 dark:text-slate-200"} opacity-0 group-hover:opacity-100 active:scale-95`,title:Qe?"Copied!":"Copy message",children:Qe?"✓":"📋"}),j.jsx("div",{className:`text-xs font-semibold mb-0.5 ${se?"text-blue-200":"text-slate-500 dark:text-slate-400"}`,children:se?u("you"):`${u("ai")}${X.model?` (${q}: ${X.model}${X.reasoningEffort?`/${X.reasoningEffort}`:""})`:""}`}),j.jsx("div",{className:"whitespace-pre-wrap break-words leading-relaxed",children:j.jsx("span",{dangerouslySetInnerHTML:{__html:xv.sanitize(qe.parse(X.content))}})}),!se&&(X.tokensPerSecond||X.timestamp)&&j.jsxs("div",{className:"text-xs text-slate-400 dark:text-slate-500 mt-2 pt-2 border-t border-slate-200 dark:border-slate-600 flex gap-3",children:[X.tokensPerSecond&&j.jsxs("span",{children:[X.tokensPerSecond.toFixed(1)," token/s"]}),X.timestamp&&j.jsx("span",{children:new Date(X.timestamp).toLocaleString()})]})]})},F)}),m&&j.jsx("div",{className:"flex justify-start",children:j.jsxs("div",{className:"bg-slate-100 px-4 py-3 rounded-2xl rounded-bl-sm shadow-sm inline-flex gap-1 dark:bg-slate-700",children:[j.jsx("span",{className:"w-2 h-2 bg-slate-400 rounded-full animate-bounce",style:{animationDelay:"0ms"}}),j.jsx("span",{className:"w-2 h-2 bg-slate-400 rounded-full animate-bounce",style:{animationDelay:"150ms"}}),j.jsx("span",{className:"w-2 h-2 bg-slate-400 rounded-full animate-bounce",style:{animationDelay:"300ms"}})]})}),j.jsx("div",{ref:P})]}),!y&&j.jsx("button",{type:"button",onClick:()=>P.current?.scrollIntoView({behavior:"smooth"}),title:u("scrollToLatest"),className:"absolute bottom-40 right-40 z-10 w-10 h-10 rounded-full bg-blue-600 hover:bg-blue-700 active:bg-blue-800 text-white flex items-center justify-center shadow-lg transition",children:"↓"}),j.jsx("div",{className:"border-t border-slate-100 bg-slate-50 px-4 py-3 dark:border-slate-700 dark:bg-slate-800",children:j.jsxs("div",{className:"flex items-center gap-2 bg-white border border-slate-200 rounded-full px-5 py-1.5 shadow-sm focus-within:border-blue-400 focus-within:ring-2 focus-within:ring-blue-100 transition dark:bg-slate-700 dark:border-slate-600 dark:focus-within:ring-blue-900",children:[j.jsx("input",{type:"text",className:"flex-1 min-w-0 bg-transparent outline-none text-slate-800 placeholder-slate-400 text-sm py-1.5 dark:text-slate-100 dark:placeholder-slate-500",value:d,onChange:X=>h(X.target.value),disabled:m,onKeyDown:X=>{X.key==="Enter"&&ce()},placeholder:u("placeholder")}),j.jsx("button",{type:"button",onClick:ce,disabled:m||!d,className:"shrink-0 w-9 h-9 rounded-full bg-blue-600 hover:bg-blue-700 active:bg-blue-800 text-white flex items-center justify-center shadow-sm transition disabled:opacity-40 disabled:cursor-not-allowed",children:"⇧"})]})}),r.length>0&&ye&&Cg.createPortal(j.jsx(rS,{messages:r,scrollContainerRef:W,messageRefs:ae}),ye)]})]})}const Mg="ai-chat-config",ui="config";function bc(c){const a=window.indexedDB.open(Mg,1);a.onupgradeneeded=()=>{a.result.createObjectStore(ui)},a.onsuccess=()=>{const u=a.result,r=u.transaction(ui,"readwrite");r.objectStore(ui).put(c,"main"),r.oncomplete=()=>u.close()}}function gS(c){const a=window.indexedDB.open(Mg,1);a.onupgradeneeded=()=>{a.result.createObjectStore(ui)},a.onsuccess=()=>{const u=a.result,o=u.transaction(ui,"readonly").objectStore(ui).get("main");o.onsuccess=()=>{o.result&&c(o.result),u.close()}}}function mS(){const{t:c,i18n:a}=ri(),[u,r]=pe.useState({endpoint:"https://api.openai.com",apiKey:"",provider:"openai",model:void 0,reasoningEffort:"medium"}),[o,d]=pe.useState(!0),[h,m]=pe.useState({}),[g,y]=pe.useState(!1),E=pe.useRef(null),M=((te,P)=>`${te}-${P||"default"}`)(u.provider,u.model),H=h[M]||"",w=te=>{m(P=>({...P,[M]:te}))};pe.useLayoutEffect(()=>{E.current&&document.documentElement.style.setProperty("--nav-h",`${E.current.offsetHeight}px`)},[]),pe.useEffect(()=>{document.documentElement.classList.toggle("dark",g)},[g]);function Z(){const te=a.language==="ja"?"en":"ja";a.changeLanguage(te),bc({...u,systemPrompts:h,lang:te,dark:g})}pe.useEffect(()=>{gS(te=>{const{systemPrompts:P,lang:W,dark:ae,...ie}=te;r(V=>({...V,...ie})),P!==void 0&&m(P),W&&a.changeLanguage(W),ae!==void 0&&y(ae)})},[a]);function ne(){const te=!g;y(te),bc({...u,systemPrompts:h,lang:a.language,dark:te})}function re(){o&&bc({...u,systemPrompts:h,lang:a.language,dark:g}),d(te=>!te)}return j.jsxs("div",{className:"min-h-screen text-slate-50 via-blue-50 dark:bg-slate-950",children:[j.jsxs("nav",{ref:E,className:"sticky top-0 z-10 bg-white/80 backdrop-blur-md border-b border-white/30 shadow-sm px-6 py-3 flex items-center justify-between dark:bg-slate-900/80 dark:border-slate-800",children:[j.jsx("span",{className:"text-lg font-bold text-blue-600",children:"llm Chat-FE"}),j.jsxs("div",{className:"flex items-center gap-2",children:[j.jsx("button",{type:"button",onClick:Z,className:"text-xs font-semibold px-2.5 py-1 rounded-full border border-slate-300 bg-white text-slate-600 hover:bg-slate-50 transition-colors dark:border-slate-600 dark:bg-slate-800 dark:text-slate-300 dark:hover:bg-slate-700",children:a.language==="ja"?"EN":"JA"}),j.jsx("button",{type:"button",onClick:ne,className:"text-xs font-semibold px-2.5 py-1 rounded-full border border-slate-300 bg-white text-slate-600 hover:bg-slate-50 transition-colors dark:border-slate-600 dark:bg-slate-800 dark:text-slate-300 dark:hover:bg-slate-700",children:g?"☀":"☽"}),j.jsx("button",{type:"button",onClick:re,className:`text-sm font-medium px-4 py-1.5 rounded-full border transition-colors ${o?"bg-blue-600 text-white border-blue-600 hover:bg-blue-700":"bg-white text-slate-600 border-slate-300 hover:bg-slate-50 dark:bg-slate-800 dark:text-slate-300 dark:border-slate-600 dark:hover:bg-slate-700"}`,children:o?c("toChat"):`⚙ ${c("toSettings")}`})]})]}),j.jsxs("main",{className:"flex justify-center px-4 py-6 md:py-8",children:[j.jsx("div",{id:"minimap-portal",className:"fixed right-4 w-5",style:{top:"var(--nav-h)",height:"calc(100dvh - var(--nav-h))"}}),j.jsx("div",{className:`w-full ${o?"max-w-2xl":"max-w-6xl"} pr-8`,children:j.jsx("div",{className:"bg-white/85 backdrop-blur-md rounded-2xl border border-white/40 shadow-xl overflow-hidden flex flex-col dark:bg-slate-900/85 dark:border-slate-800/40",style:{minHeight:"70vh"},children:o?j.jsx(iS,{config:u,setConfig:r,systemPrompt:H,setSystemPrompt:w}):j.jsx(pS,{config:u,systemPrompt:H})})})]})]})}const wg=document.getElementById("root");if(!wg)throw new Error("Root element not found");V0.createRoot(wg).render(j.jsx(pe.StrictMode,{children:j.jsx(mS,{})}));