@xpert-ai/chatkit-powerpoint-addin 0.11.2 → 0.12.2
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.
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
var
|
|
1
|
+
var zp=Object.defineProperty;var Qd=f=>{throw TypeError(f)};var xp=(f,u,s)=>u in f?zp(f,u,{enumerable:!0,configurable:!0,writable:!0,value:s}):f[u]=s;var pt=(f,u,s)=>xp(f,typeof u!="symbol"?u+"":u,s),Zd=(f,u,s)=>u.has(f)||Qd("Cannot "+s);var Cu=(f,u,s)=>(Zd(f,u,"read from private field"),s?s.call(f):u.get(f)),df=(f,u,s)=>u.has(f)?Qd("Cannot add the same private member more than once"):u instanceof WeakSet?u.add(f):u.set(f,s),mf=(f,u,s,c)=>(Zd(f,u,"write to private field"),c?c.call(f,s):u.set(f,s),s);(function(){const u=document.createElement("link").relList;if(u&&u.supports&&u.supports("modulepreload"))return;for(const r of document.querySelectorAll('link[rel="modulepreload"]'))c(r);new MutationObserver(r=>{for(const d of r)if(d.type==="childList")for(const y of d.addedNodes)y.tagName==="LINK"&&y.rel==="modulepreload"&&c(y)}).observe(document,{childList:!0,subtree:!0});function s(r){const d={};return r.integrity&&(d.integrity=r.integrity),r.referrerPolicy&&(d.referrerPolicy=r.referrerPolicy),r.crossOrigin==="use-credentials"?d.credentials="include":r.crossOrigin==="anonymous"?d.credentials="omit":d.credentials="same-origin",d}function c(r){if(r.ep)return;r.ep=!0;const d=s(r);fetch(r.href,d)}})();function Cp(f){return f&&f.__esModule&&Object.prototype.hasOwnProperty.call(f,"default")?f.default:f}var yf={exports:{}},li={};/**
|
|
2
2
|
* @license React
|
|
3
3
|
* react-jsx-runtime.production.js
|
|
4
4
|
*
|
|
@@ -6,7 +6,7 @@ var Op=Object.defineProperty;var Qd=f=>{throw TypeError(f)};var zp=(f,u,s)=>u in
|
|
|
6
6
|
*
|
|
7
7
|
* This source code is licensed under the MIT license found in the
|
|
8
8
|
* LICENSE file in the root directory of this source tree.
|
|
9
|
-
*/var Vd;function
|
|
9
|
+
*/var Vd;function Dp(){if(Vd)return li;Vd=1;var f=Symbol.for("react.transitional.element"),u=Symbol.for("react.fragment");function s(c,r,d){var y=null;if(d!==void 0&&(y=""+d),r.key!==void 0&&(y=""+r.key),"key"in r){d={};for(var v in r)v!=="key"&&(d[v]=r[v])}else d=r;return r=d.ref,{$$typeof:f,type:c,key:y,ref:r!==void 0?r:null,props:d}}return li.Fragment=u,li.jsx=s,li.jsxs=s,li}var Kd;function wp(){return Kd||(Kd=1,yf.exports=Dp()),yf.exports}var te=wp(),gf={exports:{}},Z={};/**
|
|
10
10
|
* @license React
|
|
11
11
|
* react.production.js
|
|
12
12
|
*
|
|
@@ -14,7 +14,7 @@ var Op=Object.defineProperty;var Qd=f=>{throw TypeError(f)};var zp=(f,u,s)=>u in
|
|
|
14
14
|
*
|
|
15
15
|
* This source code is licensed under the MIT license found in the
|
|
16
16
|
* LICENSE file in the root directory of this source tree.
|
|
17
|
-
*/var Jd;function
|
|
17
|
+
*/var Jd;function Rp(){if(Jd)return Z;Jd=1;var f=Symbol.for("react.transitional.element"),u=Symbol.for("react.portal"),s=Symbol.for("react.fragment"),c=Symbol.for("react.strict_mode"),r=Symbol.for("react.profiler"),d=Symbol.for("react.consumer"),y=Symbol.for("react.context"),v=Symbol.for("react.forward_ref"),E=Symbol.for("react.suspense"),S=Symbol.for("react.memo"),N=Symbol.for("react.lazy"),B=Symbol.for("react.activity"),et=Symbol.iterator;function gt(p){return p===null||typeof p!="object"?null:(p=et&&p[et]||p["@@iterator"],typeof p=="function"?p:null)}var Et={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},Ct=Object.assign,Gt={};function Mt(p,w,U){this.props=p,this.context=w,this.refs=Gt,this.updater=U||Et}Mt.prototype.isReactComponent={},Mt.prototype.setState=function(p,w){if(typeof p!="object"&&typeof p!="function"&&p!=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,p,w,"setState")},Mt.prototype.forceUpdate=function(p){this.updater.enqueueForceUpdate(this,p,"forceUpdate")};function Wt(){}Wt.prototype=Mt.prototype;function Lt(p,w,U){this.props=p,this.context=w,this.refs=Gt,this.updater=U||Et}var le=Lt.prototype=new Wt;le.constructor=Lt,Ct(le,Mt.prototype),le.isPureReactComponent=!0;var ne=Array.isArray;function Yt(){}var k={H:null,A:null,T:null,S:null},Tt=Object.prototype.hasOwnProperty;function Ge(p,w,U){var L=U.ref;return{$$typeof:f,type:p,key:w,ref:L!==void 0?L:null,props:U}}function pn(p,w){return Ge(p.type,w,p.props)}function Qe(p){return typeof p=="object"&&p!==null&&p.$$typeof===f}function ae(p){var w={"=":"=0",":":"=2"};return"$"+p.replace(/[=:]/g,function(U){return w[U]})}var kl=/\/+/g;function Ie(p,w){return typeof p=="object"&&p!==null&&p.key!=null?ae(""+p.key):w.toString(36)}function Le(p){switch(p.status){case"fulfilled":return p.value;case"rejected":throw p.reason;default:switch(typeof p.status=="string"?p.then(Yt,Yt):(p.status="pending",p.then(function(w){p.status==="pending"&&(p.status="fulfilled",p.value=w)},function(w){p.status==="pending"&&(p.status="rejected",p.reason=w)})),p.status){case"fulfilled":return p.value;case"rejected":throw p.reason}}throw p}function x(p,w,U,L,V){var W=typeof p;(W==="undefined"||W==="boolean")&&(p=null);var ut=!1;if(p===null)ut=!0;else switch(W){case"bigint":case"string":case"number":ut=!0;break;case"object":switch(p.$$typeof){case f:case u:ut=!0;break;case N:return ut=p._init,x(ut(p._payload),w,U,L,V)}}if(ut)return V=V(p),ut=L===""?"."+Ie(p,0):L,ne(V)?(U="",ut!=null&&(U=ut.replace(kl,"$&/")+"/"),x(V,w,U,"",function(fa){return fa})):V!=null&&(Qe(V)&&(V=pn(V,U+(V.key==null||p&&p.key===V.key?"":(""+V.key).replace(kl,"$&/")+"/")+ut)),w.push(V)),1;ut=0;var It=L===""?".":L+":";if(ne(p))for(var Ot=0;Ot<p.length;Ot++)L=p[Ot],W=It+Ie(L,Ot),ut+=x(L,w,U,W,V);else if(Ot=gt(p),typeof Ot=="function")for(p=Ot.call(p),Ot=0;!(L=p.next()).done;)L=L.value,W=It+Ie(L,Ot++),ut+=x(L,w,U,W,V);else if(W==="object"){if(typeof p.then=="function")return x(Le(p),w,U,L,V);throw w=String(p),Error("Objects are not valid as a React child (found: "+(w==="[object Object]"?"object with keys {"+Object.keys(p).join(", ")+"}":w)+"). If you meant to render a collection of children, use an array instead.")}return ut}function R(p,w,U){if(p==null)return p;var L=[],V=0;return x(p,L,"","",function(W){return w.call(U,W,V++)}),L}function Q(p){if(p._status===-1){var w=p._result;w=w(),w.then(function(U){(p._status===0||p._status===-1)&&(p._status=1,p._result=U)},function(U){(p._status===0||p._status===-1)&&(p._status=2,p._result=U)}),p._status===-1&&(p._status=0,p._result=w)}if(p._status===1)return p._result.default;throw p._result}var ot=typeof reportError=="function"?reportError:function(p){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var w=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof p=="object"&&p!==null&&typeof p.message=="string"?String(p.message):String(p),error:p});if(!window.dispatchEvent(w))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",p);return}console.error(p)},mt={map:R,forEach:function(p,w,U){R(p,function(){w.apply(this,arguments)},U)},count:function(p){var w=0;return R(p,function(){w++}),w},toArray:function(p){return R(p,function(w){return w})||[]},only:function(p){if(!Qe(p))throw Error("React.Children.only expected to receive a single React element child.");return p}};return Z.Activity=B,Z.Children=mt,Z.Component=Mt,Z.Fragment=s,Z.Profiler=r,Z.PureComponent=Lt,Z.StrictMode=c,Z.Suspense=E,Z.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=k,Z.__COMPILER_RUNTIME={__proto__:null,c:function(p){return k.H.useMemoCache(p)}},Z.cache=function(p){return function(){return p.apply(null,arguments)}},Z.cacheSignal=function(){return null},Z.cloneElement=function(p,w,U){if(p==null)throw Error("The argument must be a React element, but you passed "+p+".");var L=Ct({},p.props),V=p.key;if(w!=null)for(W in w.key!==void 0&&(V=""+w.key),w)!Tt.call(w,W)||W==="key"||W==="__self"||W==="__source"||W==="ref"&&w.ref===void 0||(L[W]=w[W]);var W=arguments.length-2;if(W===1)L.children=U;else if(1<W){for(var ut=Array(W),It=0;It<W;It++)ut[It]=arguments[It+2];L.children=ut}return Ge(p.type,V,L)},Z.createContext=function(p){return p={$$typeof:y,_currentValue:p,_currentValue2:p,_threadCount:0,Provider:null,Consumer:null},p.Provider=p,p.Consumer={$$typeof:d,_context:p},p},Z.createElement=function(p,w,U){var L,V={},W=null;if(w!=null)for(L in w.key!==void 0&&(W=""+w.key),w)Tt.call(w,L)&&L!=="key"&&L!=="__self"&&L!=="__source"&&(V[L]=w[L]);var ut=arguments.length-2;if(ut===1)V.children=U;else if(1<ut){for(var It=Array(ut),Ot=0;Ot<ut;Ot++)It[Ot]=arguments[Ot+2];V.children=It}if(p&&p.defaultProps)for(L in ut=p.defaultProps,ut)V[L]===void 0&&(V[L]=ut[L]);return Ge(p,W,V)},Z.createRef=function(){return{current:null}},Z.forwardRef=function(p){return{$$typeof:v,render:p}},Z.isValidElement=Qe,Z.lazy=function(p){return{$$typeof:N,_payload:{_status:-1,_result:p},_init:Q}},Z.memo=function(p,w){return{$$typeof:S,type:p,compare:w===void 0?null:w}},Z.startTransition=function(p){var w=k.T,U={};k.T=U;try{var L=p(),V=k.S;V!==null&&V(U,L),typeof L=="object"&&L!==null&&typeof L.then=="function"&&L.then(Yt,ot)}catch(W){ot(W)}finally{w!==null&&U.types!==null&&(w.types=U.types),k.T=w}},Z.unstable_useCacheRefresh=function(){return k.H.useCacheRefresh()},Z.use=function(p){return k.H.use(p)},Z.useActionState=function(p,w,U){return k.H.useActionState(p,w,U)},Z.useCallback=function(p,w){return k.H.useCallback(p,w)},Z.useContext=function(p){return k.H.useContext(p)},Z.useDebugValue=function(){},Z.useDeferredValue=function(p,w){return k.H.useDeferredValue(p,w)},Z.useEffect=function(p,w){return k.H.useEffect(p,w)},Z.useEffectEvent=function(p){return k.H.useEffectEvent(p)},Z.useId=function(){return k.H.useId()},Z.useImperativeHandle=function(p,w,U){return k.H.useImperativeHandle(p,w,U)},Z.useInsertionEffect=function(p,w){return k.H.useInsertionEffect(p,w)},Z.useLayoutEffect=function(p,w){return k.H.useLayoutEffect(p,w)},Z.useMemo=function(p,w){return k.H.useMemo(p,w)},Z.useOptimistic=function(p,w){return k.H.useOptimistic(p,w)},Z.useReducer=function(p,w,U){return k.H.useReducer(p,w,U)},Z.useRef=function(p){return k.H.useRef(p)},Z.useState=function(p){return k.H.useState(p)},Z.useSyncExternalStore=function(p,w,U){return k.H.useSyncExternalStore(p,w,U)},Z.useTransition=function(){return k.H.useTransition()},Z.version="19.2.3",Z}var kd;function Hf(){return kd||(kd=1,gf.exports=Rp()),gf.exports}var Bt=Hf();const Wd=Cp(Bt);var pf={exports:{}},ni={},vf={exports:{}},Sf={};/**
|
|
18
18
|
* @license React
|
|
19
19
|
* scheduler.production.js
|
|
20
20
|
*
|
|
@@ -22,7 +22,7 @@ var Op=Object.defineProperty;var Qd=f=>{throw TypeError(f)};var zp=(f,u,s)=>u in
|
|
|
22
22
|
*
|
|
23
23
|
* This source code is licensed under the MIT license found in the
|
|
24
24
|
* LICENSE file in the root directory of this source tree.
|
|
25
|
-
*/var $d;function
|
|
25
|
+
*/var $d;function Up(){return $d||($d=1,(function(f){function u(x,R){var Q=x.length;x.push(R);t:for(;0<Q;){var ot=Q-1>>>1,mt=x[ot];if(0<r(mt,R))x[ot]=R,x[Q]=mt,Q=ot;else break t}}function s(x){return x.length===0?null:x[0]}function c(x){if(x.length===0)return null;var R=x[0],Q=x.pop();if(Q!==R){x[0]=Q;t:for(var ot=0,mt=x.length,p=mt>>>1;ot<p;){var w=2*(ot+1)-1,U=x[w],L=w+1,V=x[L];if(0>r(U,Q))L<mt&&0>r(V,U)?(x[ot]=V,x[L]=Q,ot=L):(x[ot]=U,x[w]=Q,ot=w);else if(L<mt&&0>r(V,Q))x[ot]=V,x[L]=Q,ot=L;else break t}}return R}function r(x,R){var Q=x.sortIndex-R.sortIndex;return Q!==0?Q:x.id-R.id}if(f.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var d=performance;f.unstable_now=function(){return d.now()}}else{var y=Date,v=y.now();f.unstable_now=function(){return y.now()-v}}var E=[],S=[],N=1,B=null,et=3,gt=!1,Et=!1,Ct=!1,Gt=!1,Mt=typeof setTimeout=="function"?setTimeout:null,Wt=typeof clearTimeout=="function"?clearTimeout:null,Lt=typeof setImmediate<"u"?setImmediate:null;function le(x){for(var R=s(S);R!==null;){if(R.callback===null)c(S);else if(R.startTime<=x)c(S),R.sortIndex=R.expirationTime,u(E,R);else break;R=s(S)}}function ne(x){if(Ct=!1,le(x),!Et)if(s(E)!==null)Et=!0,Yt||(Yt=!0,ae());else{var R=s(S);R!==null&&Le(ne,R.startTime-x)}}var Yt=!1,k=-1,Tt=5,Ge=-1;function pn(){return Gt?!0:!(f.unstable_now()-Ge<Tt)}function Qe(){if(Gt=!1,Yt){var x=f.unstable_now();Ge=x;var R=!0;try{t:{Et=!1,Ct&&(Ct=!1,Wt(k),k=-1),gt=!0;var Q=et;try{e:{for(le(x),B=s(E);B!==null&&!(B.expirationTime>x&&pn());){var ot=B.callback;if(typeof ot=="function"){B.callback=null,et=B.priorityLevel;var mt=ot(B.expirationTime<=x);if(x=f.unstable_now(),typeof mt=="function"){B.callback=mt,le(x),R=!0;break e}B===s(E)&&c(E),le(x)}else c(E);B=s(E)}if(B!==null)R=!0;else{var p=s(S);p!==null&&Le(ne,p.startTime-x),R=!1}}break t}finally{B=null,et=Q,gt=!1}R=void 0}}finally{R?ae():Yt=!1}}}var ae;if(typeof Lt=="function")ae=function(){Lt(Qe)};else if(typeof MessageChannel<"u"){var kl=new MessageChannel,Ie=kl.port2;kl.port1.onmessage=Qe,ae=function(){Ie.postMessage(null)}}else ae=function(){Mt(Qe,0)};function Le(x,R){k=Mt(function(){x(f.unstable_now())},R)}f.unstable_IdlePriority=5,f.unstable_ImmediatePriority=1,f.unstable_LowPriority=4,f.unstable_NormalPriority=3,f.unstable_Profiling=null,f.unstable_UserBlockingPriority=2,f.unstable_cancelCallback=function(x){x.callback=null},f.unstable_forceFrameRate=function(x){0>x||125<x?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):Tt=0<x?Math.floor(1e3/x):5},f.unstable_getCurrentPriorityLevel=function(){return et},f.unstable_next=function(x){switch(et){case 1:case 2:case 3:var R=3;break;default:R=et}var Q=et;et=R;try{return x()}finally{et=Q}},f.unstable_requestPaint=function(){Gt=!0},f.unstable_runWithPriority=function(x,R){switch(x){case 1:case 2:case 3:case 4:case 5:break;default:x=3}var Q=et;et=x;try{return R()}finally{et=Q}},f.unstable_scheduleCallback=function(x,R,Q){var ot=f.unstable_now();switch(typeof Q=="object"&&Q!==null?(Q=Q.delay,Q=typeof Q=="number"&&0<Q?ot+Q:ot):Q=ot,x){case 1:var mt=-1;break;case 2:mt=250;break;case 5:mt=1073741823;break;case 4:mt=1e4;break;default:mt=5e3}return mt=Q+mt,x={id:N++,callback:R,priorityLevel:x,startTime:Q,expirationTime:mt,sortIndex:-1},Q>ot?(x.sortIndex=Q,u(S,x),s(E)===null&&x===s(S)&&(Ct?(Wt(k),k=-1):Ct=!0,Le(ne,Q-ot))):(x.sortIndex=mt,u(E,x),Et||gt||(Et=!0,Yt||(Yt=!0,ae()))),x},f.unstable_shouldYield=pn,f.unstable_wrapCallback=function(x){var R=et;return function(){var Q=et;et=R;try{return x.apply(this,arguments)}finally{et=Q}}}})(Sf)),Sf}var Fd;function Np(){return Fd||(Fd=1,vf.exports=Up()),vf.exports}var bf={exports:{}},$t={};/**
|
|
26
26
|
* @license React
|
|
27
27
|
* react-dom.production.js
|
|
28
28
|
*
|
|
@@ -30,7 +30,7 @@ var Op=Object.defineProperty;var Qd=f=>{throw TypeError(f)};var zp=(f,u,s)=>u in
|
|
|
30
30
|
*
|
|
31
31
|
* This source code is licensed under the MIT license found in the
|
|
32
32
|
* LICENSE file in the root directory of this source tree.
|
|
33
|
-
*/var Id;function
|
|
33
|
+
*/var Id;function Hp(){if(Id)return $t;Id=1;var f=Hf();function u(E){var S="https://react.dev/errors/"+E;if(1<arguments.length){S+="?args[]="+encodeURIComponent(arguments[1]);for(var N=2;N<arguments.length;N++)S+="&args[]="+encodeURIComponent(arguments[N])}return"Minified React error #"+E+"; visit "+S+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function s(){}var c={d:{f:s,r:function(){throw Error(u(522))},D:s,C:s,L:s,m:s,X:s,S:s,M:s},p:0,findDOMNode:null},r=Symbol.for("react.portal");function d(E,S,N){var B=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:r,key:B==null?null:""+B,children:E,containerInfo:S,implementation:N}}var y=f.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function v(E,S){if(E==="font")return"";if(typeof S=="string")return S==="use-credentials"?S:""}return $t.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=c,$t.createPortal=function(E,S){var N=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!S||S.nodeType!==1&&S.nodeType!==9&&S.nodeType!==11)throw Error(u(299));return d(E,S,null,N)},$t.flushSync=function(E){var S=y.T,N=c.p;try{if(y.T=null,c.p=2,E)return E()}finally{y.T=S,c.p=N,c.d.f()}},$t.preconnect=function(E,S){typeof E=="string"&&(S?(S=S.crossOrigin,S=typeof S=="string"?S==="use-credentials"?S:"":void 0):S=null,c.d.C(E,S))},$t.prefetchDNS=function(E){typeof E=="string"&&c.d.D(E)},$t.preinit=function(E,S){if(typeof E=="string"&&S&&typeof S.as=="string"){var N=S.as,B=v(N,S.crossOrigin),et=typeof S.integrity=="string"?S.integrity:void 0,gt=typeof S.fetchPriority=="string"?S.fetchPriority:void 0;N==="style"?c.d.S(E,typeof S.precedence=="string"?S.precedence:void 0,{crossOrigin:B,integrity:et,fetchPriority:gt}):N==="script"&&c.d.X(E,{crossOrigin:B,integrity:et,fetchPriority:gt,nonce:typeof S.nonce=="string"?S.nonce:void 0})}},$t.preinitModule=function(E,S){if(typeof E=="string")if(typeof S=="object"&&S!==null){if(S.as==null||S.as==="script"){var N=v(S.as,S.crossOrigin);c.d.M(E,{crossOrigin:N,integrity:typeof S.integrity=="string"?S.integrity:void 0,nonce:typeof S.nonce=="string"?S.nonce:void 0})}}else S==null&&c.d.M(E)},$t.preload=function(E,S){if(typeof E=="string"&&typeof S=="object"&&S!==null&&typeof S.as=="string"){var N=S.as,B=v(N,S.crossOrigin);c.d.L(E,N,{crossOrigin:B,integrity:typeof S.integrity=="string"?S.integrity:void 0,nonce:typeof S.nonce=="string"?S.nonce:void 0,type:typeof S.type=="string"?S.type:void 0,fetchPriority:typeof S.fetchPriority=="string"?S.fetchPriority:void 0,referrerPolicy:typeof S.referrerPolicy=="string"?S.referrerPolicy:void 0,imageSrcSet:typeof S.imageSrcSet=="string"?S.imageSrcSet:void 0,imageSizes:typeof S.imageSizes=="string"?S.imageSizes:void 0,media:typeof S.media=="string"?S.media:void 0})}},$t.preloadModule=function(E,S){if(typeof E=="string")if(S){var N=v(S.as,S.crossOrigin);c.d.m(E,{as:typeof S.as=="string"&&S.as!=="script"?S.as:void 0,crossOrigin:N,integrity:typeof S.integrity=="string"?S.integrity:void 0})}else c.d.m(E)},$t.requestFormReset=function(E){c.d.r(E)},$t.unstable_batchedUpdates=function(E,S){return E(S)},$t.useFormState=function(E,S,N){return y.H.useFormState(E,S,N)},$t.useFormStatus=function(){return y.H.useHostTransitionStatus()},$t.version="19.2.3",$t}var Pd;function Bp(){if(Pd)return bf.exports;Pd=1;function f(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(f)}catch(u){console.error(u)}}return f(),bf.exports=Hp(),bf.exports}/**
|
|
34
34
|
* @license React
|
|
35
35
|
* react-dom-client.production.js
|
|
36
36
|
*
|
|
@@ -38,20 +38,20 @@ var Op=Object.defineProperty;var Qd=f=>{throw TypeError(f)};var zp=(f,u,s)=>u in
|
|
|
38
38
|
*
|
|
39
39
|
* This source code is licensed under the MIT license found in the
|
|
40
40
|
* LICENSE file in the root directory of this source tree.
|
|
41
|
-
*/var tm;function
|
|
41
|
+
*/var tm;function Lp(){if(tm)return ni;tm=1;var f=Np(),u=Hf(),s=Bp();function c(t){var e="https://react.dev/errors/"+t;if(1<arguments.length){e+="?args[]="+encodeURIComponent(arguments[1]);for(var l=2;l<arguments.length;l++)e+="&args[]="+encodeURIComponent(arguments[l])}return"Minified React error #"+t+"; visit "+e+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function r(t){return!(!t||t.nodeType!==1&&t.nodeType!==9&&t.nodeType!==11)}function d(t){var e=t,l=t;if(t.alternate)for(;e.return;)e=e.return;else{t=e;do e=t,(e.flags&4098)!==0&&(l=e.return),t=e.return;while(t)}return e.tag===3?l:null}function y(t){if(t.tag===13){var e=t.memoizedState;if(e===null&&(t=t.alternate,t!==null&&(e=t.memoizedState)),e!==null)return e.dehydrated}return null}function v(t){if(t.tag===31){var e=t.memoizedState;if(e===null&&(t=t.alternate,t!==null&&(e=t.memoizedState)),e!==null)return e.dehydrated}return null}function E(t){if(d(t)!==t)throw Error(c(188))}function S(t){var e=t.alternate;if(!e){if(e=d(t),e===null)throw Error(c(188));return e!==t?null:t}for(var l=t,n=e;;){var a=l.return;if(a===null)break;var i=a.alternate;if(i===null){if(n=a.return,n!==null){l=n;continue}break}if(a.child===i.child){for(i=a.child;i;){if(i===l)return E(a),t;if(i===n)return E(a),e;i=i.sibling}throw Error(c(188))}if(l.return!==n.return)l=a,n=i;else{for(var o=!1,h=a.child;h;){if(h===l){o=!0,l=a,n=i;break}if(h===n){o=!0,n=a,l=i;break}h=h.sibling}if(!o){for(h=i.child;h;){if(h===l){o=!0,l=i,n=a;break}if(h===n){o=!0,n=i,l=a;break}h=h.sibling}if(!o)throw Error(c(189))}}if(l.alternate!==n)throw Error(c(190))}if(l.tag!==3)throw Error(c(188));return l.stateNode.current===l?t:e}function N(t){var e=t.tag;if(e===5||e===26||e===27||e===6)return t;for(t=t.child;t!==null;){if(e=N(t),e!==null)return e;t=t.sibling}return null}var B=Object.assign,et=Symbol.for("react.element"),gt=Symbol.for("react.transitional.element"),Et=Symbol.for("react.portal"),Ct=Symbol.for("react.fragment"),Gt=Symbol.for("react.strict_mode"),Mt=Symbol.for("react.profiler"),Wt=Symbol.for("react.consumer"),Lt=Symbol.for("react.context"),le=Symbol.for("react.forward_ref"),ne=Symbol.for("react.suspense"),Yt=Symbol.for("react.suspense_list"),k=Symbol.for("react.memo"),Tt=Symbol.for("react.lazy"),Ge=Symbol.for("react.activity"),pn=Symbol.for("react.memo_cache_sentinel"),Qe=Symbol.iterator;function ae(t){return t===null||typeof t!="object"?null:(t=Qe&&t[Qe]||t["@@iterator"],typeof t=="function"?t:null)}var kl=Symbol.for("react.client.reference");function Ie(t){if(t==null)return null;if(typeof t=="function")return t.$$typeof===kl?null:t.displayName||t.name||null;if(typeof t=="string")return t;switch(t){case Ct:return"Fragment";case Mt:return"Profiler";case Gt:return"StrictMode";case ne:return"Suspense";case Yt:return"SuspenseList";case Ge:return"Activity"}if(typeof t=="object")switch(t.$$typeof){case Et:return"Portal";case Lt:return t.displayName||"Context";case Wt:return(t._context.displayName||"Context")+".Consumer";case le:var e=t.render;return t=t.displayName,t||(t=e.displayName||e.name||"",t=t!==""?"ForwardRef("+t+")":"ForwardRef"),t;case k:return e=t.displayName||null,e!==null?e:Ie(t.type)||"Memo";case Tt:e=t._payload,t=t._init;try{return Ie(t(e))}catch{}}return null}var Le=Array.isArray,x=u.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,R=s.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,Q={pending:!1,data:null,method:null,action:null},ot=[],mt=-1;function p(t){return{current:t}}function w(t){0>mt||(t.current=ot[mt],ot[mt]=null,mt--)}function U(t,e){mt++,ot[mt]=t.current,t.current=e}var L=p(null),V=p(null),W=p(null),ut=p(null);function It(t,e){switch(U(W,e),U(V,t),U(L,null),e.nodeType){case 9:case 11:t=(t=e.documentElement)&&(t=t.namespaceURI)?hd(t):0;break;default:if(t=e.tagName,e=e.namespaceURI)e=hd(e),t=dd(e,t);else switch(t){case"svg":t=1;break;case"math":t=2;break;default:t=0}}w(L),U(L,t)}function Ot(){w(L),w(V),w(W)}function fa(t){t.memoizedState!==null&&U(ut,t);var e=L.current,l=dd(e,t.type);e!==l&&(U(V,t),U(L,l))}function ri(t){V.current===t&&(w(L),w(V)),ut.current===t&&(w(ut),Ia._currentValue=Q)}var ku,Xf;function Wl(t){if(ku===void 0)try{throw Error()}catch(l){var e=l.stack.trim().match(/\n( *(at )?)/);ku=e&&e[1]||"",Xf=-1<l.stack.indexOf(`
|
|
42
42
|
at`)?" (<anonymous>)":-1<l.stack.indexOf("@")?"@unknown:0:0":""}return`
|
|
43
43
|
`+ku+t+Xf}var Wu=!1;function $u(t,e){if(!t||Wu)return"";Wu=!0;var l=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var n={DetermineComponentFrameRoot:function(){try{if(e){var D=function(){throw Error()};if(Object.defineProperty(D.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(D,[])}catch(M){var A=M}Reflect.construct(t,[],D)}else{try{D.call()}catch(M){A=M}t.call(D.prototype)}}else{try{throw Error()}catch(M){A=M}(D=t())&&typeof D.catch=="function"&&D.catch(function(){})}}catch(M){if(M&&A&&typeof M.stack=="string")return[M.stack,A.stack]}return[null,null]}};n.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var a=Object.getOwnPropertyDescriptor(n.DetermineComponentFrameRoot,"name");a&&a.configurable&&Object.defineProperty(n.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var i=n.DetermineComponentFrameRoot(),o=i[0],h=i[1];if(o&&h){var m=o.split(`
|
|
44
44
|
`),_=h.split(`
|
|
45
45
|
`);for(a=n=0;n<m.length&&!m[n].includes("DetermineComponentFrameRoot");)n++;for(;a<_.length&&!_[a].includes("DetermineComponentFrameRoot");)a++;if(n===m.length||a===_.length)for(n=m.length-1,a=_.length-1;1<=n&&0<=a&&m[n]!==_[a];)a--;for(;1<=n&&0<=a;n--,a--)if(m[n]!==_[a]){if(n!==1||a!==1)do if(n--,a--,0>a||m[n]!==_[a]){var O=`
|
|
46
|
-
`+m[n].replace(" at new "," at ");return t.displayName&&O.includes("<anonymous>")&&(O=O.replace("<anonymous>",t.displayName)),O}while(1<=n&&0<=a);break}}}finally{Wu=!1,Error.prepareStackTrace=l}return(l=t?t.displayName||t.name:"")?Wl(l):""}function
|
|
46
|
+
`+m[n].replace(" at new "," at ");return t.displayName&&O.includes("<anonymous>")&&(O=O.replace("<anonymous>",t.displayName)),O}while(1<=n&&0<=a);break}}}finally{Wu=!1,Error.prepareStackTrace=l}return(l=t?t.displayName||t.name:"")?Wl(l):""}function ay(t,e){switch(t.tag){case 26:case 27:case 5:return Wl(t.type);case 16:return Wl("Lazy");case 13:return t.child!==e&&e!==null?Wl("Suspense Fallback"):Wl("Suspense");case 19:return Wl("SuspenseList");case 0:case 15:return $u(t.type,!1);case 11:return $u(t.type.render,!1);case 1:return $u(t.type,!0);case 31:return Wl("Activity");default:return""}}function Gf(t){try{var e="",l=null;do e+=ay(t,l),l=t,t=t.return;while(t);return e}catch(n){return`
|
|
47
47
|
Error generating stack: `+n.message+`
|
|
48
|
-
`+n.stack}}var Fu=Object.prototype.hasOwnProperty,Iu=f.unstable_scheduleCallback,Pu=f.unstable_cancelCallback,ay=f.unstable_shouldYield,iy=f.unstable_requestPaint,he=f.unstable_now,uy=f.unstable_getCurrentPriorityLevel,Qf=f.unstable_ImmediatePriority,Zf=f.unstable_UserBlockingPriority,hi=f.unstable_NormalPriority,sy=f.unstable_LowPriority,Vf=f.unstable_IdlePriority,cy=f.log,fy=f.unstable_setDisableYieldValue,oa=null,de=null;function Sl(t){if(typeof cy=="function"&&fy(t),de&&typeof de.setStrictMode=="function")try{de.setStrictMode(oa,t)}catch{}}var me=Math.clz32?Math.clz32:hy,oy=Math.log,ry=Math.LN2;function hy(t){return t>>>=0,t===0?32:31-(oy(t)/ry|0)|0}var di=256,mi=262144,yi=4194304;function $l(t){var e=t&42;if(e!==0)return e;switch(t&-t){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 t&261888;case 262144:case 524288:case 1048576:case 2097152:return t&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return t&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return t}}function gi(t,e,l){var n=t.pendingLanes;if(n===0)return 0;var a=0,i=t.suspendedLanes,o=t.pingedLanes;t=t.warmLanes;var h=n&134217727;return h!==0?(n=h&~i,n!==0?a=$l(n):(o&=h,o!==0?a=$l(o):l||(l=h&~t,l!==0&&(a=$l(l))))):(h=n&~i,h!==0?a=$l(h):o!==0?a=$l(o):l||(l=n&~t,l!==0&&(a=$l(l)))),a===0?0:e!==0&&e!==a&&(e&i)===0&&(i=a&-a,l=e&-e,i>=l||i===32&&(l&4194048)!==0)?e:a}function ra(t,e){return(t.pendingLanes&~(t.suspendedLanes&~t.pingedLanes)&e)===0}function dy(t,e){switch(t){case 1:case 2:case 4:case 8:case 64:return e+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 e+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 Kf(){var t=yi;return yi<<=1,(yi&62914560)===0&&(yi=4194304),t}function ts(t){for(var e=[],l=0;31>l;l++)e.push(t);return e}function ha(t,e){t.pendingLanes|=e,e!==268435456&&(t.suspendedLanes=0,t.pingedLanes=0,t.warmLanes=0)}function my(t,e,l,n,a,i){var o=t.pendingLanes;t.pendingLanes=l,t.suspendedLanes=0,t.pingedLanes=0,t.warmLanes=0,t.expiredLanes&=l,t.entangledLanes&=l,t.errorRecoveryDisabledLanes&=l,t.shellSuspendCounter=0;var h=t.entanglements,m=t.expirationTimes,_=t.hiddenUpdates;for(l=o&~l;0<l;){var O=31-me(l),D=1<<O;h[O]=0,m[O]=-1;var A=_[O];if(A!==null)for(_[O]=null,O=0;O<A.length;O++){var M=A[O];M!==null&&(M.lane&=-536870913)}l&=~D}n!==0&&Jf(t,n,0),i!==0&&a===0&&t.tag!==0&&(t.suspendedLanes|=i&~(o&~e))}function Jf(t,e,l){t.pendingLanes|=e,t.suspendedLanes&=~e;var n=31-me(e);t.entangledLanes|=e,t.entanglements[n]=t.entanglements[n]|1073741824|l&261930}function kf(t,e){var l=t.entangledLanes|=e;for(t=t.entanglements;l;){var n=31-me(l),a=1<<n;a&e|t[n]&e&&(t[n]|=e),l&=~a}}function Wf(t,e){var l=e&-e;return l=(l&42)!==0?1:es(l),(l&(t.suspendedLanes|e))!==0?0:l}function es(t){switch(t){case 2:t=1;break;case 8:t=4;break;case 32:t=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:t=128;break;case 268435456:t=134217728;break;default:t=0}return t}function ls(t){return t&=-t,2<t?8<t?(t&134217727)!==0?32:268435456:8:2}function $f(){var t=R.p;return t!==0?t:(t=window.event,t===void 0?32:Bd(t.type))}function Ff(t,e){var l=R.p;try{return R.p=t,e()}finally{R.p=l}}var bl=Math.random().toString(36).slice(2),Gt="__reactFiber$"+bl,ae="__reactProps$"+bl,vn="__reactContainer$"+bl,ns="__reactEvents$"+bl,yy="__reactListeners$"+bl,gy="__reactHandles$"+bl,If="__reactResources$"+bl,da="__reactMarker$"+bl;function as(t){delete t[Gt],delete t[ae],delete t[ns],delete t[yy],delete t[gy]}function Sn(t){var e=t[Gt];if(e)return e;for(var l=t.parentNode;l;){if(e=l[vn]||l[Gt]){if(l=e.alternate,e.child!==null||l!==null&&l.child!==null)for(t=bd(t);t!==null;){if(l=t[Gt])return l;t=bd(t)}return e}t=l,l=t.parentNode}return null}function bn(t){if(t=t[Gt]||t[vn]){var e=t.tag;if(e===5||e===6||e===13||e===31||e===26||e===27||e===3)return t}return null}function ma(t){var e=t.tag;if(e===5||e===26||e===27||e===6)return t.stateNode;throw Error(c(33))}function En(t){var e=t[If];return e||(e=t[If]={hoistableStyles:new Map,hoistableScripts:new Map}),e}function qt(t){t[da]=!0}var Pf=new Set,to={};function Fl(t,e){Tn(t,e),Tn(t+"Capture",e)}function Tn(t,e){for(to[t]=e,t=0;t<e.length;t++)Pf.add(e[t])}var py=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]*$"),eo={},lo={};function vy(t){return Fu.call(lo,t)?!0:Fu.call(eo,t)?!1:py.test(t)?lo[t]=!0:(eo[t]=!0,!1)}function pi(t,e,l){if(vy(e))if(l===null)t.removeAttribute(e);else{switch(typeof l){case"undefined":case"function":case"symbol":t.removeAttribute(e);return;case"boolean":var n=e.toLowerCase().slice(0,5);if(n!=="data-"&&n!=="aria-"){t.removeAttribute(e);return}}t.setAttribute(e,""+l)}}function vi(t,e,l){if(l===null)t.removeAttribute(e);else{switch(typeof l){case"undefined":case"function":case"symbol":case"boolean":t.removeAttribute(e);return}t.setAttribute(e,""+l)}}function Pe(t,e,l,n){if(n===null)t.removeAttribute(l);else{switch(typeof n){case"undefined":case"function":case"symbol":case"boolean":t.removeAttribute(l);return}t.setAttributeNS(e,l,""+n)}}function _e(t){switch(typeof t){case"bigint":case"boolean":case"number":case"string":case"undefined":return t;case"object":return t;default:return""}}function no(t){var e=t.type;return(t=t.nodeName)&&t.toLowerCase()==="input"&&(e==="checkbox"||e==="radio")}function Sy(t,e,l){var n=Object.getOwnPropertyDescriptor(t.constructor.prototype,e);if(!t.hasOwnProperty(e)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var a=n.get,i=n.set;return Object.defineProperty(t,e,{configurable:!0,get:function(){return a.call(this)},set:function(o){l=""+o,i.call(this,o)}}),Object.defineProperty(t,e,{enumerable:n.enumerable}),{getValue:function(){return l},setValue:function(o){l=""+o},stopTracking:function(){t._valueTracker=null,delete t[e]}}}}function is(t){if(!t._valueTracker){var e=no(t)?"checked":"value";t._valueTracker=Sy(t,e,""+t[e])}}function ao(t){if(!t)return!1;var e=t._valueTracker;if(!e)return!0;var l=e.getValue(),n="";return t&&(n=no(t)?t.checked?"true":"false":t.value),t=n,t!==l?(e.setValue(t),!0):!1}function Si(t){if(t=t||(typeof document<"u"?document:void 0),typeof t>"u")return null;try{return t.activeElement||t.body}catch{return t.body}}var by=/[\n"\\]/g;function Ae(t){return t.replace(by,function(e){return"\\"+e.charCodeAt(0).toString(16)+" "})}function us(t,e,l,n,a,i,o,h){t.name="",o!=null&&typeof o!="function"&&typeof o!="symbol"&&typeof o!="boolean"?t.type=o:t.removeAttribute("type"),e!=null?o==="number"?(e===0&&t.value===""||t.value!=e)&&(t.value=""+_e(e)):t.value!==""+_e(e)&&(t.value=""+_e(e)):o!=="submit"&&o!=="reset"||t.removeAttribute("value"),e!=null?ss(t,o,_e(e)):l!=null?ss(t,o,_e(l)):n!=null&&t.removeAttribute("value"),a==null&&i!=null&&(t.defaultChecked=!!i),a!=null&&(t.checked=a&&typeof a!="function"&&typeof a!="symbol"),h!=null&&typeof h!="function"&&typeof h!="symbol"&&typeof h!="boolean"?t.name=""+_e(h):t.removeAttribute("name")}function io(t,e,l,n,a,i,o,h){if(i!=null&&typeof i!="function"&&typeof i!="symbol"&&typeof i!="boolean"&&(t.type=i),e!=null||l!=null){if(!(i!=="submit"&&i!=="reset"||e!=null)){is(t);return}l=l!=null?""+_e(l):"",e=e!=null?""+_e(e):l,h||e===t.value||(t.value=e),t.defaultValue=e}n=n??a,n=typeof n!="function"&&typeof n!="symbol"&&!!n,t.checked=h?t.checked:!!n,t.defaultChecked=!!n,o!=null&&typeof o!="function"&&typeof o!="symbol"&&typeof o!="boolean"&&(t.name=o),is(t)}function ss(t,e,l){e==="number"&&Si(t.ownerDocument)===t||t.defaultValue===""+l||(t.defaultValue=""+l)}function _n(t,e,l,n){if(t=t.options,e){e={};for(var a=0;a<l.length;a++)e["$"+l[a]]=!0;for(l=0;l<t.length;l++)a=e.hasOwnProperty("$"+t[l].value),t[l].selected!==a&&(t[l].selected=a),a&&n&&(t[l].defaultSelected=!0)}else{for(l=""+_e(l),e=null,a=0;a<t.length;a++){if(t[a].value===l){t[a].selected=!0,n&&(t[a].defaultSelected=!0);return}e!==null||t[a].disabled||(e=t[a])}e!==null&&(e.selected=!0)}}function uo(t,e,l){if(e!=null&&(e=""+_e(e),e!==t.value&&(t.value=e),l==null)){t.defaultValue!==e&&(t.defaultValue=e);return}t.defaultValue=l!=null?""+_e(l):""}function so(t,e,l,n){if(e==null){if(n!=null){if(l!=null)throw Error(c(92));if(He(n)){if(1<n.length)throw Error(c(93));n=n[0]}l=n}l==null&&(l=""),e=l}l=_e(e),t.defaultValue=l,n=t.textContent,n===l&&n!==""&&n!==null&&(t.value=n),is(t)}function An(t,e){if(e){var l=t.firstChild;if(l&&l===t.lastChild&&l.nodeType===3){l.nodeValue=e;return}}t.textContent=e}var Ey=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 co(t,e,l){var n=e.indexOf("--")===0;l==null||typeof l=="boolean"||l===""?n?t.setProperty(e,""):e==="float"?t.cssFloat="":t[e]="":n?t.setProperty(e,l):typeof l!="number"||l===0||Ey.has(e)?e==="float"?t.cssFloat=l:t[e]=(""+l).trim():t[e]=l+"px"}function fo(t,e,l){if(e!=null&&typeof e!="object")throw Error(c(62));if(t=t.style,l!=null){for(var n in l)!l.hasOwnProperty(n)||e!=null&&e.hasOwnProperty(n)||(n.indexOf("--")===0?t.setProperty(n,""):n==="float"?t.cssFloat="":t[n]="");for(var a in e)n=e[a],e.hasOwnProperty(a)&&l[a]!==n&&co(t,a,n)}else for(var i in e)e.hasOwnProperty(i)&&co(t,i,e[i])}function cs(t){if(t.indexOf("-")===-1)return!1;switch(t){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 Ty=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"]]),_y=/^[\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 bi(t){return _y.test(""+t)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":t}function tl(){}var fs=null;function os(t){return t=t.target||t.srcElement||window,t.correspondingUseElement&&(t=t.correspondingUseElement),t.nodeType===3?t.parentNode:t}var Mn=null,On=null;function oo(t){var e=bn(t);if(e&&(t=e.stateNode)){var l=t[ae]||null;t:switch(t=e.stateNode,e.type){case"input":if(us(t,l.value,l.defaultValue,l.defaultValue,l.checked,l.defaultChecked,l.type,l.name),e=l.name,l.type==="radio"&&e!=null){for(l=t;l.parentNode;)l=l.parentNode;for(l=l.querySelectorAll('input[name="'+Ae(""+e)+'"][type="radio"]'),e=0;e<l.length;e++){var n=l[e];if(n!==t&&n.form===t.form){var a=n[ae]||null;if(!a)throw Error(c(90));us(n,a.value,a.defaultValue,a.defaultValue,a.checked,a.defaultChecked,a.type,a.name)}}for(e=0;e<l.length;e++)n=l[e],n.form===t.form&&ao(n)}break t;case"textarea":uo(t,l.value,l.defaultValue);break t;case"select":e=l.value,e!=null&&_n(t,!!l.multiple,e,!1)}}}var rs=!1;function ro(t,e,l){if(rs)return t(e,l);rs=!0;try{var n=t(e);return n}finally{if(rs=!1,(Mn!==null||On!==null)&&(su(),Mn&&(e=Mn,t=On,On=Mn=null,oo(e),t)))for(e=0;e<t.length;e++)oo(t[e])}}function ya(t,e){var l=t.stateNode;if(l===null)return null;var n=l[ae]||null;if(n===null)return null;l=n[e];t:switch(e){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)||(t=t.type,n=!(t==="button"||t==="input"||t==="select"||t==="textarea")),t=!n;break t;default:t=!1}if(t)return null;if(l&&typeof l!="function")throw Error(c(231,e,typeof l));return l}var el=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),hs=!1;if(el)try{var ga={};Object.defineProperty(ga,"passive",{get:function(){hs=!0}}),window.addEventListener("test",ga,ga),window.removeEventListener("test",ga,ga)}catch{hs=!1}var El=null,ds=null,Ei=null;function ho(){if(Ei)return Ei;var t,e=ds,l=e.length,n,a="value"in El?El.value:El.textContent,i=a.length;for(t=0;t<l&&e[t]===a[t];t++);var o=l-t;for(n=1;n<=o&&e[l-n]===a[i-n];n++);return Ei=a.slice(t,1<n?1-n:void 0)}function Ti(t){var e=t.keyCode;return"charCode"in t?(t=t.charCode,t===0&&e===13&&(t=13)):t=e,t===10&&(t=13),32<=t||t===13?t:0}function _i(){return!0}function mo(){return!1}function ie(t){function e(l,n,a,i,o){this._reactName=l,this._targetInst=a,this.type=n,this.nativeEvent=i,this.target=o,this.currentTarget=null;for(var h in t)t.hasOwnProperty(h)&&(l=t[h],this[h]=l?l(i):i[h]);return this.isDefaultPrevented=(i.defaultPrevented!=null?i.defaultPrevented:i.returnValue===!1)?_i:mo,this.isPropagationStopped=mo,this}return B(e.prototype,{preventDefault:function(){this.defaultPrevented=!0;var l=this.nativeEvent;l&&(l.preventDefault?l.preventDefault():typeof l.returnValue!="unknown"&&(l.returnValue=!1),this.isDefaultPrevented=_i)},stopPropagation:function(){var l=this.nativeEvent;l&&(l.stopPropagation?l.stopPropagation():typeof l.cancelBubble!="unknown"&&(l.cancelBubble=!0),this.isPropagationStopped=_i)},persist:function(){},isPersistent:_i}),e}var Il={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(t){return t.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Ai=ie(Il),pa=B({},Il,{view:0,detail:0}),Ay=ie(pa),ms,ys,va,Mi=B({},pa,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:ps,button:0,buttons:0,relatedTarget:function(t){return t.relatedTarget===void 0?t.fromElement===t.srcElement?t.toElement:t.fromElement:t.relatedTarget},movementX:function(t){return"movementX"in t?t.movementX:(t!==va&&(va&&t.type==="mousemove"?(ms=t.screenX-va.screenX,ys=t.screenY-va.screenY):ys=ms=0,va=t),ms)},movementY:function(t){return"movementY"in t?t.movementY:ys}}),yo=ie(Mi),My=B({},Mi,{dataTransfer:0}),Oy=ie(My),zy=B({},pa,{relatedTarget:0}),gs=ie(zy),xy=B({},Il,{animationName:0,elapsedTime:0,pseudoElement:0}),Cy=ie(xy),Dy=B({},Il,{clipboardData:function(t){return"clipboardData"in t?t.clipboardData:window.clipboardData}}),wy=ie(Dy),Ry=B({},Il,{data:0}),go=ie(Ry),Uy={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Ny={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"},Hy={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function By(t){var e=this.nativeEvent;return e.getModifierState?e.getModifierState(t):(t=Hy[t])?!!e[t]:!1}function ps(){return By}var Ly=B({},pa,{key:function(t){if(t.key){var e=Uy[t.key]||t.key;if(e!=="Unidentified")return e}return t.type==="keypress"?(t=Ti(t),t===13?"Enter":String.fromCharCode(t)):t.type==="keydown"||t.type==="keyup"?Ny[t.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:ps,charCode:function(t){return t.type==="keypress"?Ti(t):0},keyCode:function(t){return t.type==="keydown"||t.type==="keyup"?t.keyCode:0},which:function(t){return t.type==="keypress"?Ti(t):t.type==="keydown"||t.type==="keyup"?t.keyCode:0}}),Yy=ie(Ly),qy=B({},Mi,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),po=ie(qy),jy=B({},pa,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:ps}),Xy=ie(jy),Gy=B({},Il,{propertyName:0,elapsedTime:0,pseudoElement:0}),Qy=ie(Gy),Zy=B({},Mi,{deltaX:function(t){return"deltaX"in t?t.deltaX:"wheelDeltaX"in t?-t.wheelDeltaX:0},deltaY:function(t){return"deltaY"in t?t.deltaY:"wheelDeltaY"in t?-t.wheelDeltaY:"wheelDelta"in t?-t.wheelDelta:0},deltaZ:0,deltaMode:0}),Vy=ie(Zy),Ky=B({},Il,{newState:0,oldState:0}),Jy=ie(Ky),ky=[9,13,27,32],vs=el&&"CompositionEvent"in window,Sa=null;el&&"documentMode"in document&&(Sa=document.documentMode);var Wy=el&&"TextEvent"in window&&!Sa,vo=el&&(!vs||Sa&&8<Sa&&11>=Sa),So=" ",bo=!1;function Eo(t,e){switch(t){case"keyup":return ky.indexOf(e.keyCode)!==-1;case"keydown":return e.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function To(t){return t=t.detail,typeof t=="object"&&"data"in t?t.data:null}var zn=!1;function $y(t,e){switch(t){case"compositionend":return To(e);case"keypress":return e.which!==32?null:(bo=!0,So);case"textInput":return t=e.data,t===So&&bo?null:t;default:return null}}function Fy(t,e){if(zn)return t==="compositionend"||!vs&&Eo(t,e)?(t=ho(),Ei=ds=El=null,zn=!1,t):null;switch(t){case"paste":return null;case"keypress":if(!(e.ctrlKey||e.altKey||e.metaKey)||e.ctrlKey&&e.altKey){if(e.char&&1<e.char.length)return e.char;if(e.which)return String.fromCharCode(e.which)}return null;case"compositionend":return vo&&e.locale!=="ko"?null:e.data;default:return null}}var Iy={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 _o(t){var e=t&&t.nodeName&&t.nodeName.toLowerCase();return e==="input"?!!Iy[t.type]:e==="textarea"}function Ao(t,e,l,n){Mn?On?On.push(n):On=[n]:Mn=n,e=mu(e,"onChange"),0<e.length&&(l=new Ai("onChange","change",null,l,n),t.push({event:l,listeners:e}))}var ba=null,Ea=null;function Py(t){ud(t,0)}function Oi(t){var e=ma(t);if(ao(e))return t}function Mo(t,e){if(t==="change")return e}var Oo=!1;if(el){var Ss;if(el){var bs="oninput"in document;if(!bs){var zo=document.createElement("div");zo.setAttribute("oninput","return;"),bs=typeof zo.oninput=="function"}Ss=bs}else Ss=!1;Oo=Ss&&(!document.documentMode||9<document.documentMode)}function xo(){ba&&(ba.detachEvent("onpropertychange",Co),Ea=ba=null)}function Co(t){if(t.propertyName==="value"&&Oi(Ea)){var e=[];Ao(e,Ea,t,os(t)),ro(Py,e)}}function tg(t,e,l){t==="focusin"?(xo(),ba=e,Ea=l,ba.attachEvent("onpropertychange",Co)):t==="focusout"&&xo()}function eg(t){if(t==="selectionchange"||t==="keyup"||t==="keydown")return Oi(Ea)}function lg(t,e){if(t==="click")return Oi(e)}function ng(t,e){if(t==="input"||t==="change")return Oi(e)}function ag(t,e){return t===e&&(t!==0||1/t===1/e)||t!==t&&e!==e}var ye=typeof Object.is=="function"?Object.is:ag;function Ta(t,e){if(ye(t,e))return!0;if(typeof t!="object"||t===null||typeof e!="object"||e===null)return!1;var l=Object.keys(t),n=Object.keys(e);if(l.length!==n.length)return!1;for(n=0;n<l.length;n++){var a=l[n];if(!Fu.call(e,a)||!ye(t[a],e[a]))return!1}return!0}function Do(t){for(;t&&t.firstChild;)t=t.firstChild;return t}function wo(t,e){var l=Do(t);t=0;for(var n;l;){if(l.nodeType===3){if(n=t+l.textContent.length,t<=e&&n>=e)return{node:l,offset:e-t};t=n}t:{for(;l;){if(l.nextSibling){l=l.nextSibling;break t}l=l.parentNode}l=void 0}l=Do(l)}}function Ro(t,e){return t&&e?t===e?!0:t&&t.nodeType===3?!1:e&&e.nodeType===3?Ro(t,e.parentNode):"contains"in t?t.contains(e):t.compareDocumentPosition?!!(t.compareDocumentPosition(e)&16):!1:!1}function Uo(t){t=t!=null&&t.ownerDocument!=null&&t.ownerDocument.defaultView!=null?t.ownerDocument.defaultView:window;for(var e=Si(t.document);e instanceof t.HTMLIFrameElement;){try{var l=typeof e.contentWindow.location.href=="string"}catch{l=!1}if(l)t=e.contentWindow;else break;e=Si(t.document)}return e}function Es(t){var e=t&&t.nodeName&&t.nodeName.toLowerCase();return e&&(e==="input"&&(t.type==="text"||t.type==="search"||t.type==="tel"||t.type==="url"||t.type==="password")||e==="textarea"||t.contentEditable==="true")}var ig=el&&"documentMode"in document&&11>=document.documentMode,xn=null,Ts=null,_a=null,_s=!1;function No(t,e,l){var n=l.window===l?l.document:l.nodeType===9?l:l.ownerDocument;_s||xn==null||xn!==Si(n)||(n=xn,"selectionStart"in n&&Es(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}),_a&&Ta(_a,n)||(_a=n,n=mu(Ts,"onSelect"),0<n.length&&(e=new Ai("onSelect","select",null,e,l),t.push({event:e,listeners:n}),e.target=xn)))}function Pl(t,e){var l={};return l[t.toLowerCase()]=e.toLowerCase(),l["Webkit"+t]="webkit"+e,l["Moz"+t]="moz"+e,l}var Cn={animationend:Pl("Animation","AnimationEnd"),animationiteration:Pl("Animation","AnimationIteration"),animationstart:Pl("Animation","AnimationStart"),transitionrun:Pl("Transition","TransitionRun"),transitionstart:Pl("Transition","TransitionStart"),transitioncancel:Pl("Transition","TransitionCancel"),transitionend:Pl("Transition","TransitionEnd")},As={},Ho={};el&&(Ho=document.createElement("div").style,"AnimationEvent"in window||(delete Cn.animationend.animation,delete Cn.animationiteration.animation,delete Cn.animationstart.animation),"TransitionEvent"in window||delete Cn.transitionend.transition);function tn(t){if(As[t])return As[t];if(!Cn[t])return t;var e=Cn[t],l;for(l in e)if(e.hasOwnProperty(l)&&l in Ho)return As[t]=e[l];return t}var Bo=tn("animationend"),Lo=tn("animationiteration"),Yo=tn("animationstart"),ug=tn("transitionrun"),sg=tn("transitionstart"),cg=tn("transitioncancel"),qo=tn("transitionend"),jo=new Map,Ms="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(" ");Ms.push("scrollEnd");function Be(t,e){jo.set(t,e),Fl(e,[t])}var zi=typeof reportError=="function"?reportError:function(t){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var e=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof t=="object"&&t!==null&&typeof t.message=="string"?String(t.message):String(t),error:t});if(!window.dispatchEvent(e))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",t);return}console.error(t)},Me=[],Dn=0,Os=0;function xi(){for(var t=Dn,e=Os=Dn=0;e<t;){var l=Me[e];Me[e++]=null;var n=Me[e];Me[e++]=null;var a=Me[e];Me[e++]=null;var i=Me[e];if(Me[e++]=null,n!==null&&a!==null){var o=n.pending;o===null?a.next=a:(a.next=o.next,o.next=a),n.pending=a}i!==0&&Xo(l,a,i)}}function Ci(t,e,l,n){Me[Dn++]=t,Me[Dn++]=e,Me[Dn++]=l,Me[Dn++]=n,Os|=n,t.lanes|=n,t=t.alternate,t!==null&&(t.lanes|=n)}function zs(t,e,l,n){return Ci(t,e,l,n),Di(t)}function en(t,e){return Ci(t,null,null,e),Di(t)}function Xo(t,e,l){t.lanes|=l;var n=t.alternate;n!==null&&(n.lanes|=l);for(var a=!1,i=t.return;i!==null;)i.childLanes|=l,n=i.alternate,n!==null&&(n.childLanes|=l),i.tag===22&&(t=i.stateNode,t===null||t._visibility&1||(a=!0)),t=i,i=i.return;return t.tag===3?(i=t.stateNode,a&&e!==null&&(a=31-me(l),t=i.hiddenUpdates,n=t[a],n===null?t[a]=[e]:n.push(e),e.lane=l|536870912),i):null}function Di(t){if(50<Va)throw Va=0,Bc=null,Error(c(185));for(var e=t.return;e!==null;)t=e,e=t.return;return t.tag===3?t.stateNode:null}var wn={};function fg(t,e,l,n){this.tag=t,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=e,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 ge(t,e,l,n){return new fg(t,e,l,n)}function xs(t){return t=t.prototype,!(!t||!t.isReactComponent)}function ll(t,e){var l=t.alternate;return l===null?(l=ge(t.tag,e,t.key,t.mode),l.elementType=t.elementType,l.type=t.type,l.stateNode=t.stateNode,l.alternate=t,t.alternate=l):(l.pendingProps=e,l.type=t.type,l.flags=0,l.subtreeFlags=0,l.deletions=null),l.flags=t.flags&65011712,l.childLanes=t.childLanes,l.lanes=t.lanes,l.child=t.child,l.memoizedProps=t.memoizedProps,l.memoizedState=t.memoizedState,l.updateQueue=t.updateQueue,e=t.dependencies,l.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext},l.sibling=t.sibling,l.index=t.index,l.ref=t.ref,l.refCleanup=t.refCleanup,l}function Go(t,e){t.flags&=65011714;var l=t.alternate;return l===null?(t.childLanes=0,t.lanes=e,t.child=null,t.subtreeFlags=0,t.memoizedProps=null,t.memoizedState=null,t.updateQueue=null,t.dependencies=null,t.stateNode=null):(t.childLanes=l.childLanes,t.lanes=l.lanes,t.child=l.child,t.subtreeFlags=0,t.deletions=null,t.memoizedProps=l.memoizedProps,t.memoizedState=l.memoizedState,t.updateQueue=l.updateQueue,t.type=l.type,e=l.dependencies,t.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext}),t}function wi(t,e,l,n,a,i){var o=0;if(n=t,typeof t=="function")xs(t)&&(o=1);else if(typeof t=="string")o=mp(t,l,L.current)?26:t==="html"||t==="head"||t==="body"?27:5;else t:switch(t){case Ge:return t=ge(31,l,e,a),t.elementType=Ge,t.lanes=i,t;case Ct:return ln(l.children,a,i,e);case Xt:o=8,a|=24;break;case Mt:return t=ge(12,l,e,a|2),t.elementType=Mt,t.lanes=i,t;case le:return t=ge(13,l,e,a),t.elementType=le,t.lanes=i,t;case Yt:return t=ge(19,l,e,a),t.elementType=Yt,t.lanes=i,t;default:if(typeof t=="object"&&t!==null)switch(t.$$typeof){case Lt:o=10;break t;case Wt:o=9;break t;case ee:o=11;break t;case k:o=14;break t;case Tt:o=16,n=null;break t}o=29,l=Error(c(130,t===null?"null":typeof t,"")),n=null}return e=ge(o,l,e,a),e.elementType=t,e.type=n,e.lanes=i,e}function ln(t,e,l,n){return t=ge(7,t,n,e),t.lanes=l,t}function Cs(t,e,l){return t=ge(6,t,null,e),t.lanes=l,t}function Qo(t){var e=ge(18,null,null,0);return e.stateNode=t,e}function Ds(t,e,l){return e=ge(4,t.children!==null?t.children:[],t.key,e),e.lanes=l,e.stateNode={containerInfo:t.containerInfo,pendingChildren:null,implementation:t.implementation},e}var Zo=new WeakMap;function Oe(t,e){if(typeof t=="object"&&t!==null){var l=Zo.get(t);return l!==void 0?l:(e={value:t,source:e,stack:Gf(e)},Zo.set(t,e),e)}return{value:t,source:e,stack:Gf(e)}}var Rn=[],Un=0,Ri=null,Aa=0,ze=[],xe=0,Tl=null,Ze=1,Ve="";function nl(t,e){Rn[Un++]=Aa,Rn[Un++]=Ri,Ri=t,Aa=e}function Vo(t,e,l){ze[xe++]=Ze,ze[xe++]=Ve,ze[xe++]=Tl,Tl=t;var n=Ze;t=Ve;var a=32-me(n)-1;n&=~(1<<a),l+=1;var i=32-me(e)+a;if(30<i){var o=a-a%5;i=(n&(1<<o)-1).toString(32),n>>=o,a-=o,Ze=1<<32-me(e)+a|l<<a|n,Ve=i+t}else Ze=1<<i|l<<a|n,Ve=t}function ws(t){t.return!==null&&(nl(t,1),Vo(t,1,0))}function Rs(t){for(;t===Ri;)Ri=Rn[--Un],Rn[Un]=null,Aa=Rn[--Un],Rn[Un]=null;for(;t===Tl;)Tl=ze[--xe],ze[xe]=null,Ve=ze[--xe],ze[xe]=null,Ze=ze[--xe],ze[xe]=null}function Ko(t,e){ze[xe++]=Ze,ze[xe++]=Ve,ze[xe++]=Tl,Ze=e.id,Ve=e.overflow,Tl=t}var Qt=null,vt=null,tt=!1,_l=null,Ce=!1,Us=Error(c(519));function Al(t){var e=Error(c(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw Ma(Oe(e,t)),Us}function Jo(t){var e=t.stateNode,l=t.type,n=t.memoizedProps;switch(e[Gt]=t,e[ae]=n,l){case"dialog":F("cancel",e),F("close",e);break;case"iframe":case"object":case"embed":F("load",e);break;case"video":case"audio":for(l=0;l<Ja.length;l++)F(Ja[l],e);break;case"source":F("error",e);break;case"img":case"image":case"link":F("error",e),F("load",e);break;case"details":F("toggle",e);break;case"input":F("invalid",e),io(e,n.value,n.defaultValue,n.checked,n.defaultChecked,n.type,n.name,!0);break;case"select":F("invalid",e);break;case"textarea":F("invalid",e),so(e,n.value,n.defaultValue,n.children)}l=n.children,typeof l!="string"&&typeof l!="number"&&typeof l!="bigint"||e.textContent===""+l||n.suppressHydrationWarning===!0||od(e.textContent,l)?(n.popover!=null&&(F("beforetoggle",e),F("toggle",e)),n.onScroll!=null&&F("scroll",e),n.onScrollEnd!=null&&F("scrollend",e),n.onClick!=null&&(e.onclick=tl),e=!0):e=!1,e||Al(t,!0)}function ko(t){for(Qt=t.return;Qt;)switch(Qt.tag){case 5:case 31:case 13:Ce=!1;return;case 27:case 3:Ce=!0;return;default:Qt=Qt.return}}function Nn(t){if(t!==Qt)return!1;if(!tt)return ko(t),tt=!0,!1;var e=t.tag,l;if((l=e!==3&&e!==27)&&((l=e===5)&&(l=t.type,l=!(l!=="form"&&l!=="button")||Fc(t.type,t.memoizedProps)),l=!l),l&&vt&&Al(t),ko(t),e===13){if(t=t.memoizedState,t=t!==null?t.dehydrated:null,!t)throw Error(c(317));vt=Sd(t)}else if(e===31){if(t=t.memoizedState,t=t!==null?t.dehydrated:null,!t)throw Error(c(317));vt=Sd(t)}else e===27?(e=vt,Yl(t.type)?(t=lf,lf=null,vt=t):vt=e):vt=Qt?we(t.stateNode.nextSibling):null;return!0}function nn(){vt=Qt=null,tt=!1}function Ns(){var t=_l;return t!==null&&(fe===null?fe=t:fe.push.apply(fe,t),_l=null),t}function Ma(t){_l===null?_l=[t]:_l.push(t)}var Hs=p(null),an=null,al=null;function Ml(t,e,l){U(Hs,e._currentValue),e._currentValue=l}function il(t){t._currentValue=Hs.current,w(Hs)}function Bs(t,e,l){for(;t!==null;){var n=t.alternate;if((t.childLanes&e)!==e?(t.childLanes|=e,n!==null&&(n.childLanes|=e)):n!==null&&(n.childLanes&e)!==e&&(n.childLanes|=e),t===l)break;t=t.return}}function Ls(t,e,l,n){var a=t.child;for(a!==null&&(a.return=t);a!==null;){var i=a.dependencies;if(i!==null){var o=a.child;i=i.firstContext;t:for(;i!==null;){var h=i;i=a;for(var m=0;m<e.length;m++)if(h.context===e[m]){i.lanes|=l,h=i.alternate,h!==null&&(h.lanes|=l),Bs(i.return,l,t),n||(o=null);break t}i=h.next}}else if(a.tag===18){if(o=a.return,o===null)throw Error(c(341));o.lanes|=l,i=o.alternate,i!==null&&(i.lanes|=l),Bs(o,l,t),o=null}else o=a.child;if(o!==null)o.return=a;else for(o=a;o!==null;){if(o===t){o=null;break}if(a=o.sibling,a!==null){a.return=o.return,o=a;break}o=o.return}a=o}}function Hn(t,e,l,n){t=null;for(var a=e,i=!1;a!==null;){if(!i){if((a.flags&524288)!==0)i=!0;else if((a.flags&262144)!==0)break}if(a.tag===10){var o=a.alternate;if(o===null)throw Error(c(387));if(o=o.memoizedProps,o!==null){var h=a.type;ye(a.pendingProps.value,o.value)||(t!==null?t.push(h):t=[h])}}else if(a===ut.current){if(o=a.alternate,o===null)throw Error(c(387));o.memoizedState.memoizedState!==a.memoizedState.memoizedState&&(t!==null?t.push(Ia):t=[Ia])}a=a.return}t!==null&&Ls(e,t,l,n),e.flags|=262144}function Ui(t){for(t=t.firstContext;t!==null;){if(!ye(t.context._currentValue,t.memoizedValue))return!0;t=t.next}return!1}function un(t){an=t,al=null,t=t.dependencies,t!==null&&(t.firstContext=null)}function Zt(t){return Wo(an,t)}function Ni(t,e){return an===null&&un(t),Wo(t,e)}function Wo(t,e){var l=e._currentValue;if(e={context:e,memoizedValue:l,next:null},al===null){if(t===null)throw Error(c(308));al=e,t.dependencies={lanes:0,firstContext:e},t.flags|=524288}else al=al.next=e;return l}var og=typeof AbortController<"u"?AbortController:function(){var t=[],e=this.signal={aborted:!1,addEventListener:function(l,n){t.push(n)}};this.abort=function(){e.aborted=!0,t.forEach(function(l){return l()})}},rg=f.unstable_scheduleCallback,hg=f.unstable_NormalPriority,Dt={$$typeof:Lt,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function Ys(){return{controller:new og,data:new Map,refCount:0}}function Oa(t){t.refCount--,t.refCount===0&&rg(hg,function(){t.controller.abort()})}var za=null,qs=0,Bn=0,Ln=null;function dg(t,e){if(za===null){var l=za=[];qs=0,Bn=Gc(),Ln={status:"pending",value:void 0,then:function(n){l.push(n)}}}return qs++,e.then($o,$o),e}function $o(){if(--qs===0&&za!==null){Ln!==null&&(Ln.status="fulfilled");var t=za;za=null,Bn=0,Ln=null;for(var e=0;e<t.length;e++)(0,t[e])()}}function mg(t,e){var l=[],n={status:"pending",value:null,reason:null,then:function(a){l.push(a)}};return t.then(function(){n.status="fulfilled",n.value=e;for(var a=0;a<l.length;a++)(0,l[a])(e)},function(a){for(n.status="rejected",n.reason=a,a=0;a<l.length;a++)(0,l[a])(void 0)}),n}var Fo=x.S;x.S=function(t,e){Nh=he(),typeof e=="object"&&e!==null&&typeof e.then=="function"&&dg(t,e),Fo!==null&&Fo(t,e)};var sn=p(null);function js(){var t=sn.current;return t!==null?t:mt.pooledCache}function Hi(t,e){e===null?U(sn,sn.current):U(sn,e.pool)}function Io(){var t=js();return t===null?null:{parent:Dt._currentValue,pool:t}}var Yn=Error(c(460)),Xs=Error(c(474)),Bi=Error(c(542)),Li={then:function(){}};function Po(t){return t=t.status,t==="fulfilled"||t==="rejected"}function tr(t,e,l){switch(l=t[l],l===void 0?t.push(e):l!==e&&(e.then(tl,tl),e=l),e.status){case"fulfilled":return e.value;case"rejected":throw t=e.reason,lr(t),t;default:if(typeof e.status=="string")e.then(tl,tl);else{if(t=mt,t!==null&&100<t.shellSuspendCounter)throw Error(c(482));t=e,t.status="pending",t.then(function(n){if(e.status==="pending"){var a=e;a.status="fulfilled",a.value=n}},function(n){if(e.status==="pending"){var a=e;a.status="rejected",a.reason=n}})}switch(e.status){case"fulfilled":return e.value;case"rejected":throw t=e.reason,lr(t),t}throw fn=e,Yn}}function cn(t){try{var e=t._init;return e(t._payload)}catch(l){throw l!==null&&typeof l=="object"&&typeof l.then=="function"?(fn=l,Yn):l}}var fn=null;function er(){if(fn===null)throw Error(c(459));var t=fn;return fn=null,t}function lr(t){if(t===Yn||t===Bi)throw Error(c(483))}var qn=null,xa=0;function Yi(t){var e=xa;return xa+=1,qn===null&&(qn=[]),tr(qn,t,e)}function Ca(t,e){e=e.props.ref,t.ref=e!==void 0?e:null}function qi(t,e){throw e.$$typeof===et?Error(c(525)):(t=Object.prototype.toString.call(e),Error(c(31,t==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":t)))}function nr(t){function e(b,g){if(t){var T=b.deletions;T===null?(b.deletions=[g],b.flags|=16):T.push(g)}}function l(b,g){if(!t)return null;for(;g!==null;)e(b,g),g=g.sibling;return null}function n(b){for(var g=new Map;b!==null;)b.key!==null?g.set(b.key,b):g.set(b.index,b),b=b.sibling;return g}function a(b,g){return b=ll(b,g),b.index=0,b.sibling=null,b}function i(b,g,T){return b.index=T,t?(T=b.alternate,T!==null?(T=T.index,T<g?(b.flags|=67108866,g):T):(b.flags|=67108866,g)):(b.flags|=1048576,g)}function o(b){return t&&b.alternate===null&&(b.flags|=67108866),b}function h(b,g,T,C){return g===null||g.tag!==6?(g=Cs(T,b.mode,C),g.return=b,g):(g=a(g,T),g.return=b,g)}function m(b,g,T,C){var q=T.type;return q===Ct?O(b,g,T.props.children,C,T.key):g!==null&&(g.elementType===q||typeof q=="object"&&q!==null&&q.$$typeof===Tt&&cn(q)===g.type)?(g=a(g,T.props),Ca(g,T),g.return=b,g):(g=wi(T.type,T.key,T.props,null,b.mode,C),Ca(g,T),g.return=b,g)}function _(b,g,T,C){return g===null||g.tag!==4||g.stateNode.containerInfo!==T.containerInfo||g.stateNode.implementation!==T.implementation?(g=Ds(T,b.mode,C),g.return=b,g):(g=a(g,T.children||[]),g.return=b,g)}function O(b,g,T,C,q){return g===null||g.tag!==7?(g=ln(T,b.mode,C,q),g.return=b,g):(g=a(g,T),g.return=b,g)}function D(b,g,T){if(typeof g=="string"&&g!==""||typeof g=="number"||typeof g=="bigint")return g=Cs(""+g,b.mode,T),g.return=b,g;if(typeof g=="object"&&g!==null){switch(g.$$typeof){case gt:return T=wi(g.type,g.key,g.props,null,b.mode,T),Ca(T,g),T.return=b,T;case Et:return g=Ds(g,b.mode,T),g.return=b,g;case Tt:return g=cn(g),D(b,g,T)}if(He(g)||ne(g))return g=ln(g,b.mode,T,null),g.return=b,g;if(typeof g.then=="function")return D(b,Yi(g),T);if(g.$$typeof===Lt)return D(b,Ni(b,g),T);qi(b,g)}return null}function A(b,g,T,C){var q=g!==null?g.key:null;if(typeof T=="string"&&T!==""||typeof T=="number"||typeof T=="bigint")return q!==null?null:h(b,g,""+T,C);if(typeof T=="object"&&T!==null){switch(T.$$typeof){case gt:return T.key===q?m(b,g,T,C):null;case Et:return T.key===q?_(b,g,T,C):null;case Tt:return T=cn(T),A(b,g,T,C)}if(He(T)||ne(T))return q!==null?null:O(b,g,T,C,null);if(typeof T.then=="function")return A(b,g,Yi(T),C);if(T.$$typeof===Lt)return A(b,g,Ni(b,T),C);qi(b,T)}return null}function M(b,g,T,C,q){if(typeof C=="string"&&C!==""||typeof C=="number"||typeof C=="bigint")return b=b.get(T)||null,h(g,b,""+C,q);if(typeof C=="object"&&C!==null){switch(C.$$typeof){case gt:return b=b.get(C.key===null?T:C.key)||null,m(g,b,C,q);case Et:return b=b.get(C.key===null?T:C.key)||null,_(g,b,C,q);case Tt:return C=cn(C),M(b,g,T,C,q)}if(He(C)||ne(C))return b=b.get(T)||null,O(g,b,C,q,null);if(typeof C.then=="function")return M(b,g,T,Yi(C),q);if(C.$$typeof===Lt)return M(b,g,T,Ni(g,C),q);qi(g,C)}return null}function H(b,g,T,C){for(var q=null,lt=null,Y=g,J=g=0,P=null;Y!==null&&J<T.length;J++){Y.index>J?(P=Y,Y=null):P=Y.sibling;var nt=A(b,Y,T[J],C);if(nt===null){Y===null&&(Y=P);break}t&&Y&&nt.alternate===null&&e(b,Y),g=i(nt,g,J),lt===null?q=nt:lt.sibling=nt,lt=nt,Y=P}if(J===T.length)return l(b,Y),tt&&nl(b,J),q;if(Y===null){for(;J<T.length;J++)Y=D(b,T[J],C),Y!==null&&(g=i(Y,g,J),lt===null?q=Y:lt.sibling=Y,lt=Y);return tt&&nl(b,J),q}for(Y=n(Y);J<T.length;J++)P=M(Y,b,J,T[J],C),P!==null&&(t&&P.alternate!==null&&Y.delete(P.key===null?J:P.key),g=i(P,g,J),lt===null?q=P:lt.sibling=P,lt=P);return t&&Y.forEach(function(Ql){return e(b,Ql)}),tt&&nl(b,J),q}function X(b,g,T,C){if(T==null)throw Error(c(151));for(var q=null,lt=null,Y=g,J=g=0,P=null,nt=T.next();Y!==null&&!nt.done;J++,nt=T.next()){Y.index>J?(P=Y,Y=null):P=Y.sibling;var Ql=A(b,Y,nt.value,C);if(Ql===null){Y===null&&(Y=P);break}t&&Y&&Ql.alternate===null&&e(b,Y),g=i(Ql,g,J),lt===null?q=Ql:lt.sibling=Ql,lt=Ql,Y=P}if(nt.done)return l(b,Y),tt&&nl(b,J),q;if(Y===null){for(;!nt.done;J++,nt=T.next())nt=D(b,nt.value,C),nt!==null&&(g=i(nt,g,J),lt===null?q=nt:lt.sibling=nt,lt=nt);return tt&&nl(b,J),q}for(Y=n(Y);!nt.done;J++,nt=T.next())nt=M(Y,b,J,nt.value,C),nt!==null&&(t&&nt.alternate!==null&&Y.delete(nt.key===null?J:nt.key),g=i(nt,g,J),lt===null?q=nt:lt.sibling=nt,lt=nt);return t&&Y.forEach(function(Mp){return e(b,Mp)}),tt&&nl(b,J),q}function ht(b,g,T,C){if(typeof T=="object"&&T!==null&&T.type===Ct&&T.key===null&&(T=T.props.children),typeof T=="object"&&T!==null){switch(T.$$typeof){case gt:t:{for(var q=T.key;g!==null;){if(g.key===q){if(q=T.type,q===Ct){if(g.tag===7){l(b,g.sibling),C=a(g,T.props.children),C.return=b,b=C;break t}}else if(g.elementType===q||typeof q=="object"&&q!==null&&q.$$typeof===Tt&&cn(q)===g.type){l(b,g.sibling),C=a(g,T.props),Ca(C,T),C.return=b,b=C;break t}l(b,g);break}else e(b,g);g=g.sibling}T.type===Ct?(C=ln(T.props.children,b.mode,C,T.key),C.return=b,b=C):(C=wi(T.type,T.key,T.props,null,b.mode,C),Ca(C,T),C.return=b,b=C)}return o(b);case Et:t:{for(q=T.key;g!==null;){if(g.key===q)if(g.tag===4&&g.stateNode.containerInfo===T.containerInfo&&g.stateNode.implementation===T.implementation){l(b,g.sibling),C=a(g,T.children||[]),C.return=b,b=C;break t}else{l(b,g);break}else e(b,g);g=g.sibling}C=Ds(T,b.mode,C),C.return=b,b=C}return o(b);case Tt:return T=cn(T),ht(b,g,T,C)}if(He(T))return H(b,g,T,C);if(ne(T)){if(q=ne(T),typeof q!="function")throw Error(c(150));return T=q.call(T),X(b,g,T,C)}if(typeof T.then=="function")return ht(b,g,Yi(T),C);if(T.$$typeof===Lt)return ht(b,g,Ni(b,T),C);qi(b,T)}return typeof T=="string"&&T!==""||typeof T=="number"||typeof T=="bigint"?(T=""+T,g!==null&&g.tag===6?(l(b,g.sibling),C=a(g,T),C.return=b,b=C):(l(b,g),C=Cs(T,b.mode,C),C.return=b,b=C),o(b)):l(b,g)}return function(b,g,T,C){try{xa=0;var q=ht(b,g,T,C);return qn=null,q}catch(Y){if(Y===Yn||Y===Bi)throw Y;var lt=ge(29,Y,null,b.mode);return lt.lanes=C,lt.return=b,lt}finally{}}}var on=nr(!0),ar=nr(!1),Ol=!1;function Gs(t){t.updateQueue={baseState:t.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function Qs(t,e){t=t.updateQueue,e.updateQueue===t&&(e.updateQueue={baseState:t.baseState,firstBaseUpdate:t.firstBaseUpdate,lastBaseUpdate:t.lastBaseUpdate,shared:t.shared,callbacks:null})}function zl(t){return{lane:t,tag:0,payload:null,callback:null,next:null}}function xl(t,e,l){var n=t.updateQueue;if(n===null)return null;if(n=n.shared,(it&2)!==0){var a=n.pending;return a===null?e.next=e:(e.next=a.next,a.next=e),n.pending=e,e=Di(t),Xo(t,null,l),e}return Ci(t,n,e,l),Di(t)}function Da(t,e,l){if(e=e.updateQueue,e!==null&&(e=e.shared,(l&4194048)!==0)){var n=e.lanes;n&=t.pendingLanes,l|=n,e.lanes=l,kf(t,l)}}function Zs(t,e){var l=t.updateQueue,n=t.alternate;if(n!==null&&(n=n.updateQueue,l===n)){var a=null,i=null;if(l=l.firstBaseUpdate,l!==null){do{var o={lane:l.lane,tag:l.tag,payload:l.payload,callback:null,next:null};i===null?a=i=o:i=i.next=o,l=l.next}while(l!==null);i===null?a=i=e:i=i.next=e}else a=i=e;l={baseState:n.baseState,firstBaseUpdate:a,lastBaseUpdate:i,shared:n.shared,callbacks:n.callbacks},t.updateQueue=l;return}t=l.lastBaseUpdate,t===null?l.firstBaseUpdate=e:t.next=e,l.lastBaseUpdate=e}var Vs=!1;function wa(){if(Vs){var t=Ln;if(t!==null)throw t}}function Ra(t,e,l,n){Vs=!1;var a=t.updateQueue;Ol=!1;var i=a.firstBaseUpdate,o=a.lastBaseUpdate,h=a.shared.pending;if(h!==null){a.shared.pending=null;var m=h,_=m.next;m.next=null,o===null?i=_:o.next=_,o=m;var O=t.alternate;O!==null&&(O=O.updateQueue,h=O.lastBaseUpdate,h!==o&&(h===null?O.firstBaseUpdate=_:h.next=_,O.lastBaseUpdate=m))}if(i!==null){var D=a.baseState;o=0,O=_=m=null,h=i;do{var A=h.lane&-536870913,M=A!==h.lane;if(M?(I&A)===A:(n&A)===A){A!==0&&A===Bn&&(Vs=!0),O!==null&&(O=O.next={lane:0,tag:h.tag,payload:h.payload,callback:null,next:null});t:{var H=t,X=h;A=e;var ht=l;switch(X.tag){case 1:if(H=X.payload,typeof H=="function"){D=H.call(ht,D,A);break t}D=H;break t;case 3:H.flags=H.flags&-65537|128;case 0:if(H=X.payload,A=typeof H=="function"?H.call(ht,D,A):H,A==null)break t;D=B({},D,A);break t;case 2:Ol=!0}}A=h.callback,A!==null&&(t.flags|=64,M&&(t.flags|=8192),M=a.callbacks,M===null?a.callbacks=[A]:M.push(A))}else M={lane:A,tag:h.tag,payload:h.payload,callback:h.callback,next:null},O===null?(_=O=M,m=D):O=O.next=M,o|=A;if(h=h.next,h===null){if(h=a.shared.pending,h===null)break;M=h,h=M.next,M.next=null,a.lastBaseUpdate=M,a.shared.pending=null}}while(!0);O===null&&(m=D),a.baseState=m,a.firstBaseUpdate=_,a.lastBaseUpdate=O,i===null&&(a.shared.lanes=0),Ul|=o,t.lanes=o,t.memoizedState=D}}function ir(t,e){if(typeof t!="function")throw Error(c(191,t));t.call(e)}function ur(t,e){var l=t.callbacks;if(l!==null)for(t.callbacks=null,t=0;t<l.length;t++)ir(l[t],e)}var jn=p(null),ji=p(0);function sr(t,e){t=ml,U(ji,t),U(jn,e),ml=t|e.baseLanes}function Ks(){U(ji,ml),U(jn,jn.current)}function Js(){ml=ji.current,w(jn),w(ji)}var pe=p(null),De=null;function Cl(t){var e=t.alternate;U(zt,zt.current&1),U(pe,t),De===null&&(e===null||jn.current!==null||e.memoizedState!==null)&&(De=t)}function ks(t){U(zt,zt.current),U(pe,t),De===null&&(De=t)}function cr(t){t.tag===22?(U(zt,zt.current),U(pe,t),De===null&&(De=t)):Dl()}function Dl(){U(zt,zt.current),U(pe,pe.current)}function ve(t){w(pe),De===t&&(De=null),w(zt)}var zt=p(0);function Xi(t){for(var e=t;e!==null;){if(e.tag===13){var l=e.memoizedState;if(l!==null&&(l=l.dehydrated,l===null||tf(l)||ef(l)))return e}else if(e.tag===19&&(e.memoizedProps.revealOrder==="forwards"||e.memoizedProps.revealOrder==="backwards"||e.memoizedProps.revealOrder==="unstable_legacy-backwards"||e.memoizedProps.revealOrder==="together")){if((e.flags&128)!==0)return e}else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break;for(;e.sibling===null;){if(e.return===null||e.return===t)return null;e=e.return}e.sibling.return=e.return,e=e.sibling}return null}var ul=0,K=null,ot=null,wt=null,Gi=!1,Xn=!1,rn=!1,Qi=0,Ua=0,Gn=null,yg=0;function _t(){throw Error(c(321))}function Ws(t,e){if(e===null)return!1;for(var l=0;l<e.length&&l<t.length;l++)if(!ye(t[l],e[l]))return!1;return!0}function $s(t,e,l,n,a,i){return ul=i,K=e,e.memoizedState=null,e.updateQueue=null,e.lanes=0,x.H=t===null||t.memoizedState===null?Vr:rc,rn=!1,i=l(n,a),rn=!1,Xn&&(i=or(e,l,n,a)),fr(t),i}function fr(t){x.H=Ba;var e=ot!==null&&ot.next!==null;if(ul=0,wt=ot=K=null,Gi=!1,Ua=0,Gn=null,e)throw Error(c(300));t===null||Rt||(t=t.dependencies,t!==null&&Ui(t)&&(Rt=!0))}function or(t,e,l,n){K=t;var a=0;do{if(Xn&&(Gn=null),Ua=0,Xn=!1,25<=a)throw Error(c(301));if(a+=1,wt=ot=null,t.updateQueue!=null){var i=t.updateQueue;i.lastEffect=null,i.events=null,i.stores=null,i.memoCache!=null&&(i.memoCache.index=0)}x.H=Kr,i=e(l,n)}while(Xn);return i}function gg(){var t=x.H,e=t.useState()[0];return e=typeof e.then=="function"?Na(e):e,t=t.useState()[0],(ot!==null?ot.memoizedState:null)!==t&&(K.flags|=1024),e}function Fs(){var t=Qi!==0;return Qi=0,t}function Is(t,e,l){e.updateQueue=t.updateQueue,e.flags&=-2053,t.lanes&=~l}function Ps(t){if(Gi){for(t=t.memoizedState;t!==null;){var e=t.queue;e!==null&&(e.pending=null),t=t.next}Gi=!1}ul=0,wt=ot=K=null,Xn=!1,Ua=Qi=0,Gn=null}function Pt(){var t={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return wt===null?K.memoizedState=wt=t:wt=wt.next=t,wt}function xt(){if(ot===null){var t=K.alternate;t=t!==null?t.memoizedState:null}else t=ot.next;var e=wt===null?K.memoizedState:wt.next;if(e!==null)wt=e,ot=t;else{if(t===null)throw K.alternate===null?Error(c(467)):Error(c(310));ot=t,t={memoizedState:ot.memoizedState,baseState:ot.baseState,baseQueue:ot.baseQueue,queue:ot.queue,next:null},wt===null?K.memoizedState=wt=t:wt=wt.next=t}return wt}function Zi(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function Na(t){var e=Ua;return Ua+=1,Gn===null&&(Gn=[]),t=tr(Gn,t,e),e=K,(wt===null?e.memoizedState:wt.next)===null&&(e=e.alternate,x.H=e===null||e.memoizedState===null?Vr:rc),t}function Vi(t){if(t!==null&&typeof t=="object"){if(typeof t.then=="function")return Na(t);if(t.$$typeof===Lt)return Zt(t)}throw Error(c(438,String(t)))}function tc(t){var e=null,l=K.updateQueue;if(l!==null&&(e=l.memoCache),e==null){var n=K.alternate;n!==null&&(n=n.updateQueue,n!==null&&(n=n.memoCache,n!=null&&(e={data:n.data.map(function(a){return a.slice()}),index:0})))}if(e==null&&(e={data:[],index:0}),l===null&&(l=Zi(),K.updateQueue=l),l.memoCache=e,l=e.data[e.index],l===void 0)for(l=e.data[e.index]=Array(t),n=0;n<t;n++)l[n]=pn;return e.index++,l}function sl(t,e){return typeof e=="function"?e(t):e}function Ki(t){var e=xt();return ec(e,ot,t)}function ec(t,e,l){var n=t.queue;if(n===null)throw Error(c(311));n.lastRenderedReducer=l;var a=t.baseQueue,i=n.pending;if(i!==null){if(a!==null){var o=a.next;a.next=i.next,i.next=o}e.baseQueue=a=i,n.pending=null}if(i=t.baseState,a===null)t.memoizedState=i;else{e=a.next;var h=o=null,m=null,_=e,O=!1;do{var D=_.lane&-536870913;if(D!==_.lane?(I&D)===D:(ul&D)===D){var A=_.revertLane;if(A===0)m!==null&&(m=m.next={lane:0,revertLane:0,gesture:null,action:_.action,hasEagerState:_.hasEagerState,eagerState:_.eagerState,next:null}),D===Bn&&(O=!0);else if((ul&A)===A){_=_.next,A===Bn&&(O=!0);continue}else D={lane:0,revertLane:_.revertLane,gesture:null,action:_.action,hasEagerState:_.hasEagerState,eagerState:_.eagerState,next:null},m===null?(h=m=D,o=i):m=m.next=D,K.lanes|=A,Ul|=A;D=_.action,rn&&l(i,D),i=_.hasEagerState?_.eagerState:l(i,D)}else A={lane:D,revertLane:_.revertLane,gesture:_.gesture,action:_.action,hasEagerState:_.hasEagerState,eagerState:_.eagerState,next:null},m===null?(h=m=A,o=i):m=m.next=A,K.lanes|=D,Ul|=D;_=_.next}while(_!==null&&_!==e);if(m===null?o=i:m.next=h,!ye(i,t.memoizedState)&&(Rt=!0,O&&(l=Ln,l!==null)))throw l;t.memoizedState=i,t.baseState=o,t.baseQueue=m,n.lastRenderedState=i}return a===null&&(n.lanes=0),[t.memoizedState,n.dispatch]}function lc(t){var e=xt(),l=e.queue;if(l===null)throw Error(c(311));l.lastRenderedReducer=t;var n=l.dispatch,a=l.pending,i=e.memoizedState;if(a!==null){l.pending=null;var o=a=a.next;do i=t(i,o.action),o=o.next;while(o!==a);ye(i,e.memoizedState)||(Rt=!0),e.memoizedState=i,e.baseQueue===null&&(e.baseState=i),l.lastRenderedState=i}return[i,n]}function rr(t,e,l){var n=K,a=xt(),i=tt;if(i){if(l===void 0)throw Error(c(407));l=l()}else l=e();var o=!ye((ot||a).memoizedState,l);if(o&&(a.memoizedState=l,Rt=!0),a=a.queue,ic(mr.bind(null,n,a,t),[t]),a.getSnapshot!==e||o||wt!==null&&wt.memoizedState.tag&1){if(n.flags|=2048,Qn(9,{destroy:void 0},dr.bind(null,n,a,l,e),null),mt===null)throw Error(c(349));i||(ul&127)!==0||hr(n,e,l)}return l}function hr(t,e,l){t.flags|=16384,t={getSnapshot:e,value:l},e=K.updateQueue,e===null?(e=Zi(),K.updateQueue=e,e.stores=[t]):(l=e.stores,l===null?e.stores=[t]:l.push(t))}function dr(t,e,l,n){e.value=l,e.getSnapshot=n,yr(e)&&gr(t)}function mr(t,e,l){return l(function(){yr(e)&&gr(t)})}function yr(t){var e=t.getSnapshot;t=t.value;try{var l=e();return!ye(t,l)}catch{return!0}}function gr(t){var e=en(t,2);e!==null&&oe(e,t,2)}function nc(t){var e=Pt();if(typeof t=="function"){var l=t;if(t=l(),rn){Sl(!0);try{l()}finally{Sl(!1)}}}return e.memoizedState=e.baseState=t,e.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:sl,lastRenderedState:t},e}function pr(t,e,l,n){return t.baseState=l,ec(t,ot,typeof n=="function"?n:sl)}function pg(t,e,l,n,a){if(Wi(t))throw Error(c(485));if(t=e.action,t!==null){var i={payload:a,action:t,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(o){i.listeners.push(o)}};x.T!==null?l(!0):i.isTransition=!1,n(i),l=e.pending,l===null?(i.next=e.pending=i,vr(e,i)):(i.next=l.next,e.pending=l.next=i)}}function vr(t,e){var l=e.action,n=e.payload,a=t.state;if(e.isTransition){var i=x.T,o={};x.T=o;try{var h=l(a,n),m=x.S;m!==null&&m(o,h),Sr(t,e,h)}catch(_){ac(t,e,_)}finally{i!==null&&o.types!==null&&(i.types=o.types),x.T=i}}else try{i=l(a,n),Sr(t,e,i)}catch(_){ac(t,e,_)}}function Sr(t,e,l){l!==null&&typeof l=="object"&&typeof l.then=="function"?l.then(function(n){br(t,e,n)},function(n){return ac(t,e,n)}):br(t,e,l)}function br(t,e,l){e.status="fulfilled",e.value=l,Er(e),t.state=l,e=t.pending,e!==null&&(l=e.next,l===e?t.pending=null:(l=l.next,e.next=l,vr(t,l)))}function ac(t,e,l){var n=t.pending;if(t.pending=null,n!==null){n=n.next;do e.status="rejected",e.reason=l,Er(e),e=e.next;while(e!==n)}t.action=null}function Er(t){t=t.listeners;for(var e=0;e<t.length;e++)(0,t[e])()}function Tr(t,e){return e}function _r(t,e){if(tt){var l=mt.formState;if(l!==null){t:{var n=K;if(tt){if(vt){e:{for(var a=vt,i=Ce;a.nodeType!==8;){if(!i){a=null;break e}if(a=we(a.nextSibling),a===null){a=null;break e}}i=a.data,a=i==="F!"||i==="F"?a:null}if(a){vt=we(a.nextSibling),n=a.data==="F!";break t}}Al(n)}n=!1}n&&(e=l[0])}}return l=Pt(),l.memoizedState=l.baseState=e,n={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Tr,lastRenderedState:e},l.queue=n,l=Gr.bind(null,K,n),n.dispatch=l,n=nc(!1),i=oc.bind(null,K,!1,n.queue),n=Pt(),a={state:e,dispatch:null,action:t,pending:null},n.queue=a,l=pg.bind(null,K,a,i,l),a.dispatch=l,n.memoizedState=t,[e,l,!1]}function Ar(t){var e=xt();return Mr(e,ot,t)}function Mr(t,e,l){if(e=ec(t,e,Tr)[0],t=Ki(sl)[0],typeof e=="object"&&e!==null&&typeof e.then=="function")try{var n=Na(e)}catch(o){throw o===Yn?Bi:o}else n=e;e=xt();var a=e.queue,i=a.dispatch;return l!==e.memoizedState&&(K.flags|=2048,Qn(9,{destroy:void 0},vg.bind(null,a,l),null)),[n,i,t]}function vg(t,e){t.action=e}function Or(t){var e=xt(),l=ot;if(l!==null)return Mr(e,l,t);xt(),e=e.memoizedState,l=xt();var n=l.queue.dispatch;return l.memoizedState=t,[e,n,!1]}function Qn(t,e,l,n){return t={tag:t,create:l,deps:n,inst:e,next:null},e=K.updateQueue,e===null&&(e=Zi(),K.updateQueue=e),l=e.lastEffect,l===null?e.lastEffect=t.next=t:(n=l.next,l.next=t,t.next=n,e.lastEffect=t),t}function zr(){return xt().memoizedState}function Ji(t,e,l,n){var a=Pt();K.flags|=t,a.memoizedState=Qn(1|e,{destroy:void 0},l,n===void 0?null:n)}function ki(t,e,l,n){var a=xt();n=n===void 0?null:n;var i=a.memoizedState.inst;ot!==null&&n!==null&&Ws(n,ot.memoizedState.deps)?a.memoizedState=Qn(e,i,l,n):(K.flags|=t,a.memoizedState=Qn(1|e,i,l,n))}function xr(t,e){Ji(8390656,8,t,e)}function ic(t,e){ki(2048,8,t,e)}function Sg(t){K.flags|=4;var e=K.updateQueue;if(e===null)e=Zi(),K.updateQueue=e,e.events=[t];else{var l=e.events;l===null?e.events=[t]:l.push(t)}}function Cr(t){var e=xt().memoizedState;return Sg({ref:e,nextImpl:t}),function(){if((it&2)!==0)throw Error(c(440));return e.impl.apply(void 0,arguments)}}function Dr(t,e){return ki(4,2,t,e)}function wr(t,e){return ki(4,4,t,e)}function Rr(t,e){if(typeof e=="function"){t=t();var l=e(t);return function(){typeof l=="function"?l():e(null)}}if(e!=null)return t=t(),e.current=t,function(){e.current=null}}function Ur(t,e,l){l=l!=null?l.concat([t]):null,ki(4,4,Rr.bind(null,e,t),l)}function uc(){}function Nr(t,e){var l=xt();e=e===void 0?null:e;var n=l.memoizedState;return e!==null&&Ws(e,n[1])?n[0]:(l.memoizedState=[t,e],t)}function Hr(t,e){var l=xt();e=e===void 0?null:e;var n=l.memoizedState;if(e!==null&&Ws(e,n[1]))return n[0];if(n=t(),rn){Sl(!0);try{t()}finally{Sl(!1)}}return l.memoizedState=[n,e],n}function sc(t,e,l){return l===void 0||(ul&1073741824)!==0&&(I&261930)===0?t.memoizedState=e:(t.memoizedState=l,t=Bh(),K.lanes|=t,Ul|=t,l)}function Br(t,e,l,n){return ye(l,e)?l:jn.current!==null?(t=sc(t,l,n),ye(t,e)||(Rt=!0),t):(ul&42)===0||(ul&1073741824)!==0&&(I&261930)===0?(Rt=!0,t.memoizedState=l):(t=Bh(),K.lanes|=t,Ul|=t,e)}function Lr(t,e,l,n,a){var i=R.p;R.p=i!==0&&8>i?i:8;var o=x.T,h={};x.T=h,oc(t,!1,e,l);try{var m=a(),_=x.S;if(_!==null&&_(h,m),m!==null&&typeof m=="object"&&typeof m.then=="function"){var O=mg(m,n);Ha(t,e,O,Ee(t))}else Ha(t,e,n,Ee(t))}catch(D){Ha(t,e,{then:function(){},status:"rejected",reason:D},Ee())}finally{R.p=i,o!==null&&h.types!==null&&(o.types=h.types),x.T=o}}function bg(){}function cc(t,e,l,n){if(t.tag!==5)throw Error(c(476));var a=Yr(t).queue;Lr(t,a,e,Q,l===null?bg:function(){return qr(t),l(n)})}function Yr(t){var e=t.memoizedState;if(e!==null)return e;e={memoizedState:Q,baseState:Q,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:sl,lastRenderedState:Q},next:null};var l={};return e.next={memoizedState:l,baseState:l,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:sl,lastRenderedState:l},next:null},t.memoizedState=e,t=t.alternate,t!==null&&(t.memoizedState=e),e}function qr(t){var e=Yr(t);e.next===null&&(e=t.alternate.memoizedState),Ha(t,e.next.queue,{},Ee())}function fc(){return Zt(Ia)}function jr(){return xt().memoizedState}function Xr(){return xt().memoizedState}function Eg(t){for(var e=t.return;e!==null;){switch(e.tag){case 24:case 3:var l=Ee();t=zl(l);var n=xl(e,t,l);n!==null&&(oe(n,e,l),Da(n,e,l)),e={cache:Ys()},t.payload=e;return}e=e.return}}function Tg(t,e,l){var n=Ee();l={lane:n,revertLane:0,gesture:null,action:l,hasEagerState:!1,eagerState:null,next:null},Wi(t)?Qr(e,l):(l=zs(t,e,l,n),l!==null&&(oe(l,t,n),Zr(l,e,n)))}function Gr(t,e,l){var n=Ee();Ha(t,e,l,n)}function Ha(t,e,l,n){var a={lane:n,revertLane:0,gesture:null,action:l,hasEagerState:!1,eagerState:null,next:null};if(Wi(t))Qr(e,a);else{var i=t.alternate;if(t.lanes===0&&(i===null||i.lanes===0)&&(i=e.lastRenderedReducer,i!==null))try{var o=e.lastRenderedState,h=i(o,l);if(a.hasEagerState=!0,a.eagerState=h,ye(h,o))return Ci(t,e,a,0),mt===null&&xi(),!1}catch{}finally{}if(l=zs(t,e,a,n),l!==null)return oe(l,t,n),Zr(l,e,n),!0}return!1}function oc(t,e,l,n){if(n={lane:2,revertLane:Gc(),gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null},Wi(t)){if(e)throw Error(c(479))}else e=zs(t,l,n,2),e!==null&&oe(e,t,2)}function Wi(t){var e=t.alternate;return t===K||e!==null&&e===K}function Qr(t,e){Xn=Gi=!0;var l=t.pending;l===null?e.next=e:(e.next=l.next,l.next=e),t.pending=e}function Zr(t,e,l){if((l&4194048)!==0){var n=e.lanes;n&=t.pendingLanes,l|=n,e.lanes=l,kf(t,l)}}var Ba={readContext:Zt,use:Vi,useCallback:_t,useContext:_t,useEffect:_t,useImperativeHandle:_t,useLayoutEffect:_t,useInsertionEffect:_t,useMemo:_t,useReducer:_t,useRef:_t,useState:_t,useDebugValue:_t,useDeferredValue:_t,useTransition:_t,useSyncExternalStore:_t,useId:_t,useHostTransitionStatus:_t,useFormState:_t,useActionState:_t,useOptimistic:_t,useMemoCache:_t,useCacheRefresh:_t};Ba.useEffectEvent=_t;var Vr={readContext:Zt,use:Vi,useCallback:function(t,e){return Pt().memoizedState=[t,e===void 0?null:e],t},useContext:Zt,useEffect:xr,useImperativeHandle:function(t,e,l){l=l!=null?l.concat([t]):null,Ji(4194308,4,Rr.bind(null,e,t),l)},useLayoutEffect:function(t,e){return Ji(4194308,4,t,e)},useInsertionEffect:function(t,e){Ji(4,2,t,e)},useMemo:function(t,e){var l=Pt();e=e===void 0?null:e;var n=t();if(rn){Sl(!0);try{t()}finally{Sl(!1)}}return l.memoizedState=[n,e],n},useReducer:function(t,e,l){var n=Pt();if(l!==void 0){var a=l(e);if(rn){Sl(!0);try{l(e)}finally{Sl(!1)}}}else a=e;return n.memoizedState=n.baseState=a,t={pending:null,lanes:0,dispatch:null,lastRenderedReducer:t,lastRenderedState:a},n.queue=t,t=t.dispatch=Tg.bind(null,K,t),[n.memoizedState,t]},useRef:function(t){var e=Pt();return t={current:t},e.memoizedState=t},useState:function(t){t=nc(t);var e=t.queue,l=Gr.bind(null,K,e);return e.dispatch=l,[t.memoizedState,l]},useDebugValue:uc,useDeferredValue:function(t,e){var l=Pt();return sc(l,t,e)},useTransition:function(){var t=nc(!1);return t=Lr.bind(null,K,t.queue,!0,!1),Pt().memoizedState=t,[!1,t]},useSyncExternalStore:function(t,e,l){var n=K,a=Pt();if(tt){if(l===void 0)throw Error(c(407));l=l()}else{if(l=e(),mt===null)throw Error(c(349));(I&127)!==0||hr(n,e,l)}a.memoizedState=l;var i={value:l,getSnapshot:e};return a.queue=i,xr(mr.bind(null,n,i,t),[t]),n.flags|=2048,Qn(9,{destroy:void 0},dr.bind(null,n,i,l,e),null),l},useId:function(){var t=Pt(),e=mt.identifierPrefix;if(tt){var l=Ve,n=Ze;l=(n&~(1<<32-me(n)-1)).toString(32)+l,e="_"+e+"R_"+l,l=Qi++,0<l&&(e+="H"+l.toString(32)),e+="_"}else l=yg++,e="_"+e+"r_"+l.toString(32)+"_";return t.memoizedState=e},useHostTransitionStatus:fc,useFormState:_r,useActionState:_r,useOptimistic:function(t){var e=Pt();e.memoizedState=e.baseState=t;var l={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return e.queue=l,e=oc.bind(null,K,!0,l),l.dispatch=e,[t,e]},useMemoCache:tc,useCacheRefresh:function(){return Pt().memoizedState=Eg.bind(null,K)},useEffectEvent:function(t){var e=Pt(),l={impl:t};return e.memoizedState=l,function(){if((it&2)!==0)throw Error(c(440));return l.impl.apply(void 0,arguments)}}},rc={readContext:Zt,use:Vi,useCallback:Nr,useContext:Zt,useEffect:ic,useImperativeHandle:Ur,useInsertionEffect:Dr,useLayoutEffect:wr,useMemo:Hr,useReducer:Ki,useRef:zr,useState:function(){return Ki(sl)},useDebugValue:uc,useDeferredValue:function(t,e){var l=xt();return Br(l,ot.memoizedState,t,e)},useTransition:function(){var t=Ki(sl)[0],e=xt().memoizedState;return[typeof t=="boolean"?t:Na(t),e]},useSyncExternalStore:rr,useId:jr,useHostTransitionStatus:fc,useFormState:Ar,useActionState:Ar,useOptimistic:function(t,e){var l=xt();return pr(l,ot,t,e)},useMemoCache:tc,useCacheRefresh:Xr};rc.useEffectEvent=Cr;var Kr={readContext:Zt,use:Vi,useCallback:Nr,useContext:Zt,useEffect:ic,useImperativeHandle:Ur,useInsertionEffect:Dr,useLayoutEffect:wr,useMemo:Hr,useReducer:lc,useRef:zr,useState:function(){return lc(sl)},useDebugValue:uc,useDeferredValue:function(t,e){var l=xt();return ot===null?sc(l,t,e):Br(l,ot.memoizedState,t,e)},useTransition:function(){var t=lc(sl)[0],e=xt().memoizedState;return[typeof t=="boolean"?t:Na(t),e]},useSyncExternalStore:rr,useId:jr,useHostTransitionStatus:fc,useFormState:Or,useActionState:Or,useOptimistic:function(t,e){var l=xt();return ot!==null?pr(l,ot,t,e):(l.baseState=t,[t,l.queue.dispatch])},useMemoCache:tc,useCacheRefresh:Xr};Kr.useEffectEvent=Cr;function hc(t,e,l,n){e=t.memoizedState,l=l(n,e),l=l==null?e:B({},e,l),t.memoizedState=l,t.lanes===0&&(t.updateQueue.baseState=l)}var dc={enqueueSetState:function(t,e,l){t=t._reactInternals;var n=Ee(),a=zl(n);a.payload=e,l!=null&&(a.callback=l),e=xl(t,a,n),e!==null&&(oe(e,t,n),Da(e,t,n))},enqueueReplaceState:function(t,e,l){t=t._reactInternals;var n=Ee(),a=zl(n);a.tag=1,a.payload=e,l!=null&&(a.callback=l),e=xl(t,a,n),e!==null&&(oe(e,t,n),Da(e,t,n))},enqueueForceUpdate:function(t,e){t=t._reactInternals;var l=Ee(),n=zl(l);n.tag=2,e!=null&&(n.callback=e),e=xl(t,n,l),e!==null&&(oe(e,t,l),Da(e,t,l))}};function Jr(t,e,l,n,a,i,o){return t=t.stateNode,typeof t.shouldComponentUpdate=="function"?t.shouldComponentUpdate(n,i,o):e.prototype&&e.prototype.isPureReactComponent?!Ta(l,n)||!Ta(a,i):!0}function kr(t,e,l,n){t=e.state,typeof e.componentWillReceiveProps=="function"&&e.componentWillReceiveProps(l,n),typeof e.UNSAFE_componentWillReceiveProps=="function"&&e.UNSAFE_componentWillReceiveProps(l,n),e.state!==t&&dc.enqueueReplaceState(e,e.state,null)}function hn(t,e){var l=e;if("ref"in e){l={};for(var n in e)n!=="ref"&&(l[n]=e[n])}if(t=t.defaultProps){l===e&&(l=B({},l));for(var a in t)l[a]===void 0&&(l[a]=t[a])}return l}function Wr(t){zi(t)}function $r(t){console.error(t)}function Fr(t){zi(t)}function $i(t,e){try{var l=t.onUncaughtError;l(e.value,{componentStack:e.stack})}catch(n){setTimeout(function(){throw n})}}function Ir(t,e,l){try{var n=t.onCaughtError;n(l.value,{componentStack:l.stack,errorBoundary:e.tag===1?e.stateNode:null})}catch(a){setTimeout(function(){throw a})}}function mc(t,e,l){return l=zl(l),l.tag=3,l.payload={element:null},l.callback=function(){$i(t,e)},l}function Pr(t){return t=zl(t),t.tag=3,t}function th(t,e,l,n){var a=l.type.getDerivedStateFromError;if(typeof a=="function"){var i=n.value;t.payload=function(){return a(i)},t.callback=function(){Ir(e,l,n)}}var o=l.stateNode;o!==null&&typeof o.componentDidCatch=="function"&&(t.callback=function(){Ir(e,l,n),typeof a!="function"&&(Nl===null?Nl=new Set([this]):Nl.add(this));var h=n.stack;this.componentDidCatch(n.value,{componentStack:h!==null?h:""})})}function _g(t,e,l,n,a){if(l.flags|=32768,n!==null&&typeof n=="object"&&typeof n.then=="function"){if(e=l.alternate,e!==null&&Hn(e,l,a,!0),l=pe.current,l!==null){switch(l.tag){case 31:case 13:return De===null?cu():l.alternate===null&&At===0&&(At=3),l.flags&=-257,l.flags|=65536,l.lanes=a,n===Li?l.flags|=16384:(e=l.updateQueue,e===null?l.updateQueue=new Set([n]):e.add(n),qc(t,n,a)),!1;case 22:return l.flags|=65536,n===Li?l.flags|=16384:(e=l.updateQueue,e===null?(e={transitions:null,markerInstances:null,retryQueue:new Set([n])},l.updateQueue=e):(l=e.retryQueue,l===null?e.retryQueue=new Set([n]):l.add(n)),qc(t,n,a)),!1}throw Error(c(435,l.tag))}return qc(t,n,a),cu(),!1}if(tt)return e=pe.current,e!==null?((e.flags&65536)===0&&(e.flags|=256),e.flags|=65536,e.lanes=a,n!==Us&&(t=Error(c(422),{cause:n}),Ma(Oe(t,l)))):(n!==Us&&(e=Error(c(423),{cause:n}),Ma(Oe(e,l))),t=t.current.alternate,t.flags|=65536,a&=-a,t.lanes|=a,n=Oe(n,l),a=mc(t.stateNode,n,a),Zs(t,a),At!==4&&(At=2)),!1;var i=Error(c(520),{cause:n});if(i=Oe(i,l),Za===null?Za=[i]:Za.push(i),At!==4&&(At=2),e===null)return!0;n=Oe(n,l),l=e;do{switch(l.tag){case 3:return l.flags|=65536,t=a&-a,l.lanes|=t,t=mc(l.stateNode,n,t),Zs(l,t),!1;case 1:if(e=l.type,i=l.stateNode,(l.flags&128)===0&&(typeof e.getDerivedStateFromError=="function"||i!==null&&typeof i.componentDidCatch=="function"&&(Nl===null||!Nl.has(i))))return l.flags|=65536,a&=-a,l.lanes|=a,a=Pr(a),th(a,t,l,n),Zs(l,a),!1}l=l.return}while(l!==null);return!1}var yc=Error(c(461)),Rt=!1;function Vt(t,e,l,n){e.child=t===null?ar(e,null,l,n):on(e,t.child,l,n)}function eh(t,e,l,n,a){l=l.render;var i=e.ref;if("ref"in n){var o={};for(var h in n)h!=="ref"&&(o[h]=n[h])}else o=n;return un(e),n=$s(t,e,l,o,i,a),h=Fs(),t!==null&&!Rt?(Is(t,e,a),cl(t,e,a)):(tt&&h&&ws(e),e.flags|=1,Vt(t,e,n,a),e.child)}function lh(t,e,l,n,a){if(t===null){var i=l.type;return typeof i=="function"&&!xs(i)&&i.defaultProps===void 0&&l.compare===null?(e.tag=15,e.type=i,nh(t,e,i,n,a)):(t=wi(l.type,null,n,e,e.mode,a),t.ref=e.ref,t.return=e,e.child=t)}if(i=t.child,!_c(t,a)){var o=i.memoizedProps;if(l=l.compare,l=l!==null?l:Ta,l(o,n)&&t.ref===e.ref)return cl(t,e,a)}return e.flags|=1,t=ll(i,n),t.ref=e.ref,t.return=e,e.child=t}function nh(t,e,l,n,a){if(t!==null){var i=t.memoizedProps;if(Ta(i,n)&&t.ref===e.ref)if(Rt=!1,e.pendingProps=n=i,_c(t,a))(t.flags&131072)!==0&&(Rt=!0);else return e.lanes=t.lanes,cl(t,e,a)}return gc(t,e,l,n,a)}function ah(t,e,l,n){var a=n.children,i=t!==null?t.memoizedState:null;if(t===null&&e.stateNode===null&&(e.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),n.mode==="hidden"){if((e.flags&128)!==0){if(i=i!==null?i.baseLanes|l:l,t!==null){for(n=e.child=t.child,a=0;n!==null;)a=a|n.lanes|n.childLanes,n=n.sibling;n=a&~i}else n=0,e.child=null;return ih(t,e,i,l,n)}if((l&536870912)!==0)e.memoizedState={baseLanes:0,cachePool:null},t!==null&&Hi(e,i!==null?i.cachePool:null),i!==null?sr(e,i):Ks(),cr(e);else return n=e.lanes=536870912,ih(t,e,i!==null?i.baseLanes|l:l,l,n)}else i!==null?(Hi(e,i.cachePool),sr(e,i),Dl(),e.memoizedState=null):(t!==null&&Hi(e,null),Ks(),Dl());return Vt(t,e,a,l),e.child}function La(t,e){return t!==null&&t.tag===22||e.stateNode!==null||(e.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),e.sibling}function ih(t,e,l,n,a){var i=js();return i=i===null?null:{parent:Dt._currentValue,pool:i},e.memoizedState={baseLanes:l,cachePool:i},t!==null&&Hi(e,null),Ks(),cr(e),t!==null&&Hn(t,e,n,!0),e.childLanes=a,null}function Fi(t,e){return e=Pi({mode:e.mode,children:e.children},t.mode),e.ref=t.ref,t.child=e,e.return=t,e}function uh(t,e,l){return on(e,t.child,null,l),t=Fi(e,e.pendingProps),t.flags|=2,ve(e),e.memoizedState=null,t}function Ag(t,e,l){var n=e.pendingProps,a=(e.flags&128)!==0;if(e.flags&=-129,t===null){if(tt){if(n.mode==="hidden")return t=Fi(e,n),e.lanes=536870912,La(null,t);if(ks(e),(t=vt)?(t=vd(t,Ce),t=t!==null&&t.data==="&"?t:null,t!==null&&(e.memoizedState={dehydrated:t,treeContext:Tl!==null?{id:Ze,overflow:Ve}:null,retryLane:536870912,hydrationErrors:null},l=Qo(t),l.return=e,e.child=l,Qt=e,vt=null)):t=null,t===null)throw Al(e);return e.lanes=536870912,null}return Fi(e,n)}var i=t.memoizedState;if(i!==null){var o=i.dehydrated;if(ks(e),a)if(e.flags&256)e.flags&=-257,e=uh(t,e,l);else if(e.memoizedState!==null)e.child=t.child,e.flags|=128,e=null;else throw Error(c(558));else if(Rt||Hn(t,e,l,!1),a=(l&t.childLanes)!==0,Rt||a){if(n=mt,n!==null&&(o=Wf(n,l),o!==0&&o!==i.retryLane))throw i.retryLane=o,en(t,o),oe(n,t,o),yc;cu(),e=uh(t,e,l)}else t=i.treeContext,vt=we(o.nextSibling),Qt=e,tt=!0,_l=null,Ce=!1,t!==null&&Ko(e,t),e=Fi(e,n),e.flags|=4096;return e}return t=ll(t.child,{mode:n.mode,children:n.children}),t.ref=e.ref,e.child=t,t.return=e,t}function Ii(t,e){var l=e.ref;if(l===null)t!==null&&t.ref!==null&&(e.flags|=4194816);else{if(typeof l!="function"&&typeof l!="object")throw Error(c(284));(t===null||t.ref!==l)&&(e.flags|=4194816)}}function gc(t,e,l,n,a){return un(e),l=$s(t,e,l,n,void 0,a),n=Fs(),t!==null&&!Rt?(Is(t,e,a),cl(t,e,a)):(tt&&n&&ws(e),e.flags|=1,Vt(t,e,l,a),e.child)}function sh(t,e,l,n,a,i){return un(e),e.updateQueue=null,l=or(e,n,l,a),fr(t),n=Fs(),t!==null&&!Rt?(Is(t,e,i),cl(t,e,i)):(tt&&n&&ws(e),e.flags|=1,Vt(t,e,l,i),e.child)}function ch(t,e,l,n,a){if(un(e),e.stateNode===null){var i=wn,o=l.contextType;typeof o=="object"&&o!==null&&(i=Zt(o)),i=new l(n,i),e.memoizedState=i.state!==null&&i.state!==void 0?i.state:null,i.updater=dc,e.stateNode=i,i._reactInternals=e,i=e.stateNode,i.props=n,i.state=e.memoizedState,i.refs={},Gs(e),o=l.contextType,i.context=typeof o=="object"&&o!==null?Zt(o):wn,i.state=e.memoizedState,o=l.getDerivedStateFromProps,typeof o=="function"&&(hc(e,l,o,n),i.state=e.memoizedState),typeof l.getDerivedStateFromProps=="function"||typeof i.getSnapshotBeforeUpdate=="function"||typeof i.UNSAFE_componentWillMount!="function"&&typeof i.componentWillMount!="function"||(o=i.state,typeof i.componentWillMount=="function"&&i.componentWillMount(),typeof i.UNSAFE_componentWillMount=="function"&&i.UNSAFE_componentWillMount(),o!==i.state&&dc.enqueueReplaceState(i,i.state,null),Ra(e,n,i,a),wa(),i.state=e.memoizedState),typeof i.componentDidMount=="function"&&(e.flags|=4194308),n=!0}else if(t===null){i=e.stateNode;var h=e.memoizedProps,m=hn(l,h);i.props=m;var _=i.context,O=l.contextType;o=wn,typeof O=="object"&&O!==null&&(o=Zt(O));var D=l.getDerivedStateFromProps;O=typeof D=="function"||typeof i.getSnapshotBeforeUpdate=="function",h=e.pendingProps!==h,O||typeof i.UNSAFE_componentWillReceiveProps!="function"&&typeof i.componentWillReceiveProps!="function"||(h||_!==o)&&kr(e,i,n,o),Ol=!1;var A=e.memoizedState;i.state=A,Ra(e,n,i,a),wa(),_=e.memoizedState,h||A!==_||Ol?(typeof D=="function"&&(hc(e,l,D,n),_=e.memoizedState),(m=Ol||Jr(e,l,m,n,A,_,o))?(O||typeof i.UNSAFE_componentWillMount!="function"&&typeof i.componentWillMount!="function"||(typeof i.componentWillMount=="function"&&i.componentWillMount(),typeof i.UNSAFE_componentWillMount=="function"&&i.UNSAFE_componentWillMount()),typeof i.componentDidMount=="function"&&(e.flags|=4194308)):(typeof i.componentDidMount=="function"&&(e.flags|=4194308),e.memoizedProps=n,e.memoizedState=_),i.props=n,i.state=_,i.context=o,n=m):(typeof i.componentDidMount=="function"&&(e.flags|=4194308),n=!1)}else{i=e.stateNode,Qs(t,e),o=e.memoizedProps,O=hn(l,o),i.props=O,D=e.pendingProps,A=i.context,_=l.contextType,m=wn,typeof _=="object"&&_!==null&&(m=Zt(_)),h=l.getDerivedStateFromProps,(_=typeof h=="function"||typeof i.getSnapshotBeforeUpdate=="function")||typeof i.UNSAFE_componentWillReceiveProps!="function"&&typeof i.componentWillReceiveProps!="function"||(o!==D||A!==m)&&kr(e,i,n,m),Ol=!1,A=e.memoizedState,i.state=A,Ra(e,n,i,a),wa();var M=e.memoizedState;o!==D||A!==M||Ol||t!==null&&t.dependencies!==null&&Ui(t.dependencies)?(typeof h=="function"&&(hc(e,l,h,n),M=e.memoizedState),(O=Ol||Jr(e,l,O,n,A,M,m)||t!==null&&t.dependencies!==null&&Ui(t.dependencies))?(_||typeof i.UNSAFE_componentWillUpdate!="function"&&typeof i.componentWillUpdate!="function"||(typeof i.componentWillUpdate=="function"&&i.componentWillUpdate(n,M,m),typeof i.UNSAFE_componentWillUpdate=="function"&&i.UNSAFE_componentWillUpdate(n,M,m)),typeof i.componentDidUpdate=="function"&&(e.flags|=4),typeof i.getSnapshotBeforeUpdate=="function"&&(e.flags|=1024)):(typeof i.componentDidUpdate!="function"||o===t.memoizedProps&&A===t.memoizedState||(e.flags|=4),typeof i.getSnapshotBeforeUpdate!="function"||o===t.memoizedProps&&A===t.memoizedState||(e.flags|=1024),e.memoizedProps=n,e.memoizedState=M),i.props=n,i.state=M,i.context=m,n=O):(typeof i.componentDidUpdate!="function"||o===t.memoizedProps&&A===t.memoizedState||(e.flags|=4),typeof i.getSnapshotBeforeUpdate!="function"||o===t.memoizedProps&&A===t.memoizedState||(e.flags|=1024),n=!1)}return i=n,Ii(t,e),n=(e.flags&128)!==0,i||n?(i=e.stateNode,l=n&&typeof l.getDerivedStateFromError!="function"?null:i.render(),e.flags|=1,t!==null&&n?(e.child=on(e,t.child,null,a),e.child=on(e,null,l,a)):Vt(t,e,l,a),e.memoizedState=i.state,t=e.child):t=cl(t,e,a),t}function fh(t,e,l,n){return nn(),e.flags|=256,Vt(t,e,l,n),e.child}var pc={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function vc(t){return{baseLanes:t,cachePool:Io()}}function Sc(t,e,l){return t=t!==null?t.childLanes&~l:0,e&&(t|=be),t}function oh(t,e,l){var n=e.pendingProps,a=!1,i=(e.flags&128)!==0,o;if((o=i)||(o=t!==null&&t.memoizedState===null?!1:(zt.current&2)!==0),o&&(a=!0,e.flags&=-129),o=(e.flags&32)!==0,e.flags&=-33,t===null){if(tt){if(a?Cl(e):Dl(),(t=vt)?(t=vd(t,Ce),t=t!==null&&t.data!=="&"?t:null,t!==null&&(e.memoizedState={dehydrated:t,treeContext:Tl!==null?{id:Ze,overflow:Ve}:null,retryLane:536870912,hydrationErrors:null},l=Qo(t),l.return=e,e.child=l,Qt=e,vt=null)):t=null,t===null)throw Al(e);return ef(t)?e.lanes=32:e.lanes=536870912,null}var h=n.children;return n=n.fallback,a?(Dl(),a=e.mode,h=Pi({mode:"hidden",children:h},a),n=ln(n,a,l,null),h.return=e,n.return=e,h.sibling=n,e.child=h,n=e.child,n.memoizedState=vc(l),n.childLanes=Sc(t,o,l),e.memoizedState=pc,La(null,n)):(Cl(e),bc(e,h))}var m=t.memoizedState;if(m!==null&&(h=m.dehydrated,h!==null)){if(i)e.flags&256?(Cl(e),e.flags&=-257,e=Ec(t,e,l)):e.memoizedState!==null?(Dl(),e.child=t.child,e.flags|=128,e=null):(Dl(),h=n.fallback,a=e.mode,n=Pi({mode:"visible",children:n.children},a),h=ln(h,a,l,null),h.flags|=2,n.return=e,h.return=e,n.sibling=h,e.child=n,on(e,t.child,null,l),n=e.child,n.memoizedState=vc(l),n.childLanes=Sc(t,o,l),e.memoizedState=pc,e=La(null,n));else if(Cl(e),ef(h)){if(o=h.nextSibling&&h.nextSibling.dataset,o)var _=o.dgst;o=_,n=Error(c(419)),n.stack="",n.digest=o,Ma({value:n,source:null,stack:null}),e=Ec(t,e,l)}else if(Rt||Hn(t,e,l,!1),o=(l&t.childLanes)!==0,Rt||o){if(o=mt,o!==null&&(n=Wf(o,l),n!==0&&n!==m.retryLane))throw m.retryLane=n,en(t,n),oe(o,t,n),yc;tf(h)||cu(),e=Ec(t,e,l)}else tf(h)?(e.flags|=192,e.child=t.child,e=null):(t=m.treeContext,vt=we(h.nextSibling),Qt=e,tt=!0,_l=null,Ce=!1,t!==null&&Ko(e,t),e=bc(e,n.children),e.flags|=4096);return e}return a?(Dl(),h=n.fallback,a=e.mode,m=t.child,_=m.sibling,n=ll(m,{mode:"hidden",children:n.children}),n.subtreeFlags=m.subtreeFlags&65011712,_!==null?h=ll(_,h):(h=ln(h,a,l,null),h.flags|=2),h.return=e,n.return=e,n.sibling=h,e.child=n,La(null,n),n=e.child,h=t.child.memoizedState,h===null?h=vc(l):(a=h.cachePool,a!==null?(m=Dt._currentValue,a=a.parent!==m?{parent:m,pool:m}:a):a=Io(),h={baseLanes:h.baseLanes|l,cachePool:a}),n.memoizedState=h,n.childLanes=Sc(t,o,l),e.memoizedState=pc,La(t.child,n)):(Cl(e),l=t.child,t=l.sibling,l=ll(l,{mode:"visible",children:n.children}),l.return=e,l.sibling=null,t!==null&&(o=e.deletions,o===null?(e.deletions=[t],e.flags|=16):o.push(t)),e.child=l,e.memoizedState=null,l)}function bc(t,e){return e=Pi({mode:"visible",children:e},t.mode),e.return=t,t.child=e}function Pi(t,e){return t=ge(22,t,null,e),t.lanes=0,t}function Ec(t,e,l){return on(e,t.child,null,l),t=bc(e,e.pendingProps.children),t.flags|=2,e.memoizedState=null,t}function rh(t,e,l){t.lanes|=e;var n=t.alternate;n!==null&&(n.lanes|=e),Bs(t.return,e,l)}function Tc(t,e,l,n,a,i){var o=t.memoizedState;o===null?t.memoizedState={isBackwards:e,rendering:null,renderingStartTime:0,last:n,tail:l,tailMode:a,treeForkCount:i}:(o.isBackwards=e,o.rendering=null,o.renderingStartTime=0,o.last=n,o.tail=l,o.tailMode=a,o.treeForkCount=i)}function hh(t,e,l){var n=e.pendingProps,a=n.revealOrder,i=n.tail;n=n.children;var o=zt.current,h=(o&2)!==0;if(h?(o=o&1|2,e.flags|=128):o&=1,U(zt,o),Vt(t,e,n,l),n=tt?Aa:0,!h&&t!==null&&(t.flags&128)!==0)t:for(t=e.child;t!==null;){if(t.tag===13)t.memoizedState!==null&&rh(t,l,e);else if(t.tag===19)rh(t,l,e);else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break t;for(;t.sibling===null;){if(t.return===null||t.return===e)break t;t=t.return}t.sibling.return=t.return,t=t.sibling}switch(a){case"forwards":for(l=e.child,a=null;l!==null;)t=l.alternate,t!==null&&Xi(t)===null&&(a=l),l=l.sibling;l=a,l===null?(a=e.child,e.child=null):(a=l.sibling,l.sibling=null),Tc(e,!1,a,l,i,n);break;case"backwards":case"unstable_legacy-backwards":for(l=null,a=e.child,e.child=null;a!==null;){if(t=a.alternate,t!==null&&Xi(t)===null){e.child=a;break}t=a.sibling,a.sibling=l,l=a,a=t}Tc(e,!0,l,null,i,n);break;case"together":Tc(e,!1,null,null,void 0,n);break;default:e.memoizedState=null}return e.child}function cl(t,e,l){if(t!==null&&(e.dependencies=t.dependencies),Ul|=e.lanes,(l&e.childLanes)===0)if(t!==null){if(Hn(t,e,l,!1),(l&e.childLanes)===0)return null}else return null;if(t!==null&&e.child!==t.child)throw Error(c(153));if(e.child!==null){for(t=e.child,l=ll(t,t.pendingProps),e.child=l,l.return=e;t.sibling!==null;)t=t.sibling,l=l.sibling=ll(t,t.pendingProps),l.return=e;l.sibling=null}return e.child}function _c(t,e){return(t.lanes&e)!==0?!0:(t=t.dependencies,!!(t!==null&&Ui(t)))}function Mg(t,e,l){switch(e.tag){case 3:It(e,e.stateNode.containerInfo),Ml(e,Dt,t.memoizedState.cache),nn();break;case 27:case 5:fa(e);break;case 4:It(e,e.stateNode.containerInfo);break;case 10:Ml(e,e.type,e.memoizedProps.value);break;case 31:if(e.memoizedState!==null)return e.flags|=128,ks(e),null;break;case 13:var n=e.memoizedState;if(n!==null)return n.dehydrated!==null?(Cl(e),e.flags|=128,null):(l&e.child.childLanes)!==0?oh(t,e,l):(Cl(e),t=cl(t,e,l),t!==null?t.sibling:null);Cl(e);break;case 19:var a=(t.flags&128)!==0;if(n=(l&e.childLanes)!==0,n||(Hn(t,e,l,!1),n=(l&e.childLanes)!==0),a){if(n)return hh(t,e,l);e.flags|=128}if(a=e.memoizedState,a!==null&&(a.rendering=null,a.tail=null,a.lastEffect=null),U(zt,zt.current),n)break;return null;case 22:return e.lanes=0,ah(t,e,l,e.pendingProps);case 24:Ml(e,Dt,t.memoizedState.cache)}return cl(t,e,l)}function dh(t,e,l){if(t!==null)if(t.memoizedProps!==e.pendingProps)Rt=!0;else{if(!_c(t,l)&&(e.flags&128)===0)return Rt=!1,Mg(t,e,l);Rt=(t.flags&131072)!==0}else Rt=!1,tt&&(e.flags&1048576)!==0&&Vo(e,Aa,e.index);switch(e.lanes=0,e.tag){case 16:t:{var n=e.pendingProps;if(t=cn(e.elementType),e.type=t,typeof t=="function")xs(t)?(n=hn(t,n),e.tag=1,e=ch(null,e,t,n,l)):(e.tag=0,e=gc(null,e,t,n,l));else{if(t!=null){var a=t.$$typeof;if(a===ee){e.tag=11,e=eh(null,e,t,n,l);break t}else if(a===k){e.tag=14,e=lh(null,e,t,n,l);break t}}throw e=Ie(t)||t,Error(c(306,e,""))}}return e;case 0:return gc(t,e,e.type,e.pendingProps,l);case 1:return n=e.type,a=hn(n,e.pendingProps),ch(t,e,n,a,l);case 3:t:{if(It(e,e.stateNode.containerInfo),t===null)throw Error(c(387));n=e.pendingProps;var i=e.memoizedState;a=i.element,Qs(t,e),Ra(e,n,null,l);var o=e.memoizedState;if(n=o.cache,Ml(e,Dt,n),n!==i.cache&&Ls(e,[Dt],l,!0),wa(),n=o.element,i.isDehydrated)if(i={element:n,isDehydrated:!1,cache:o.cache},e.updateQueue.baseState=i,e.memoizedState=i,e.flags&256){e=fh(t,e,n,l);break t}else if(n!==a){a=Oe(Error(c(424)),e),Ma(a),e=fh(t,e,n,l);break t}else{switch(t=e.stateNode.containerInfo,t.nodeType){case 9:t=t.body;break;default:t=t.nodeName==="HTML"?t.ownerDocument.body:t}for(vt=we(t.firstChild),Qt=e,tt=!0,_l=null,Ce=!0,l=ar(e,null,n,l),e.child=l;l;)l.flags=l.flags&-3|4096,l=l.sibling}else{if(nn(),n===a){e=cl(t,e,l);break t}Vt(t,e,n,l)}e=e.child}return e;case 26:return Ii(t,e),t===null?(l=Ad(e.type,null,e.pendingProps,null))?e.memoizedState=l:tt||(l=e.type,t=e.pendingProps,n=yu(W.current).createElement(l),n[Gt]=e,n[ae]=t,Kt(n,l,t),qt(n),e.stateNode=n):e.memoizedState=Ad(e.type,t.memoizedProps,e.pendingProps,t.memoizedState),null;case 27:return fa(e),t===null&&tt&&(n=e.stateNode=Ed(e.type,e.pendingProps,W.current),Qt=e,Ce=!0,a=vt,Yl(e.type)?(lf=a,vt=we(n.firstChild)):vt=a),Vt(t,e,e.pendingProps.children,l),Ii(t,e),t===null&&(e.flags|=4194304),e.child;case 5:return t===null&&tt&&((a=n=vt)&&(n=ep(n,e.type,e.pendingProps,Ce),n!==null?(e.stateNode=n,Qt=e,vt=we(n.firstChild),Ce=!1,a=!0):a=!1),a||Al(e)),fa(e),a=e.type,i=e.pendingProps,o=t!==null?t.memoizedProps:null,n=i.children,Fc(a,i)?n=null:o!==null&&Fc(a,o)&&(e.flags|=32),e.memoizedState!==null&&(a=$s(t,e,gg,null,null,l),Ia._currentValue=a),Ii(t,e),Vt(t,e,n,l),e.child;case 6:return t===null&&tt&&((t=l=vt)&&(l=lp(l,e.pendingProps,Ce),l!==null?(e.stateNode=l,Qt=e,vt=null,t=!0):t=!1),t||Al(e)),null;case 13:return oh(t,e,l);case 4:return It(e,e.stateNode.containerInfo),n=e.pendingProps,t===null?e.child=on(e,null,n,l):Vt(t,e,n,l),e.child;case 11:return eh(t,e,e.type,e.pendingProps,l);case 7:return Vt(t,e,e.pendingProps,l),e.child;case 8:return Vt(t,e,e.pendingProps.children,l),e.child;case 12:return Vt(t,e,e.pendingProps.children,l),e.child;case 10:return n=e.pendingProps,Ml(e,e.type,n.value),Vt(t,e,n.children,l),e.child;case 9:return a=e.type._context,n=e.pendingProps.children,un(e),a=Zt(a),n=n(a),e.flags|=1,Vt(t,e,n,l),e.child;case 14:return lh(t,e,e.type,e.pendingProps,l);case 15:return nh(t,e,e.type,e.pendingProps,l);case 19:return hh(t,e,l);case 31:return Ag(t,e,l);case 22:return ah(t,e,l,e.pendingProps);case 24:return un(e),n=Zt(Dt),t===null?(a=js(),a===null&&(a=mt,i=Ys(),a.pooledCache=i,i.refCount++,i!==null&&(a.pooledCacheLanes|=l),a=i),e.memoizedState={parent:n,cache:a},Gs(e),Ml(e,Dt,a)):((t.lanes&l)!==0&&(Qs(t,e),Ra(e,null,null,l),wa()),a=t.memoizedState,i=e.memoizedState,a.parent!==n?(a={parent:n,cache:n},e.memoizedState=a,e.lanes===0&&(e.memoizedState=e.updateQueue.baseState=a),Ml(e,Dt,n)):(n=i.cache,Ml(e,Dt,n),n!==a.cache&&Ls(e,[Dt],l,!0))),Vt(t,e,e.pendingProps.children,l),e.child;case 29:throw e.pendingProps}throw Error(c(156,e.tag))}function fl(t){t.flags|=4}function Ac(t,e,l,n,a){if((e=(t.mode&32)!==0)&&(e=!1),e){if(t.flags|=16777216,(a&335544128)===a)if(t.stateNode.complete)t.flags|=8192;else if(jh())t.flags|=8192;else throw fn=Li,Xs}else t.flags&=-16777217}function mh(t,e){if(e.type!=="stylesheet"||(e.state.loading&4)!==0)t.flags&=-16777217;else if(t.flags|=16777216,!Cd(e))if(jh())t.flags|=8192;else throw fn=Li,Xs}function tu(t,e){e!==null&&(t.flags|=4),t.flags&16384&&(e=t.tag!==22?Kf():536870912,t.lanes|=e,Jn|=e)}function Ya(t,e){if(!tt)switch(t.tailMode){case"hidden":e=t.tail;for(var l=null;e!==null;)e.alternate!==null&&(l=e),e=e.sibling;l===null?t.tail=null:l.sibling=null;break;case"collapsed":l=t.tail;for(var n=null;l!==null;)l.alternate!==null&&(n=l),l=l.sibling;n===null?e||t.tail===null?t.tail=null:t.tail.sibling=null:n.sibling=null}}function St(t){var e=t.alternate!==null&&t.alternate.child===t.child,l=0,n=0;if(e)for(var a=t.child;a!==null;)l|=a.lanes|a.childLanes,n|=a.subtreeFlags&65011712,n|=a.flags&65011712,a.return=t,a=a.sibling;else for(a=t.child;a!==null;)l|=a.lanes|a.childLanes,n|=a.subtreeFlags,n|=a.flags,a.return=t,a=a.sibling;return t.subtreeFlags|=n,t.childLanes=l,e}function Og(t,e,l){var n=e.pendingProps;switch(Rs(e),e.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return St(e),null;case 1:return St(e),null;case 3:return l=e.stateNode,n=null,t!==null&&(n=t.memoizedState.cache),e.memoizedState.cache!==n&&(e.flags|=2048),il(Dt),Ot(),l.pendingContext&&(l.context=l.pendingContext,l.pendingContext=null),(t===null||t.child===null)&&(Nn(e)?fl(e):t===null||t.memoizedState.isDehydrated&&(e.flags&256)===0||(e.flags|=1024,Ns())),St(e),null;case 26:var a=e.type,i=e.memoizedState;return t===null?(fl(e),i!==null?(St(e),mh(e,i)):(St(e),Ac(e,a,null,n,l))):i?i!==t.memoizedState?(fl(e),St(e),mh(e,i)):(St(e),e.flags&=-16777217):(t=t.memoizedProps,t!==n&&fl(e),St(e),Ac(e,a,t,n,l)),null;case 27:if(ri(e),l=W.current,a=e.type,t!==null&&e.stateNode!=null)t.memoizedProps!==n&&fl(e);else{if(!n){if(e.stateNode===null)throw Error(c(166));return St(e),null}t=L.current,Nn(e)?Jo(e):(t=Ed(a,n,l),e.stateNode=t,fl(e))}return St(e),null;case 5:if(ri(e),a=e.type,t!==null&&e.stateNode!=null)t.memoizedProps!==n&&fl(e);else{if(!n){if(e.stateNode===null)throw Error(c(166));return St(e),null}if(i=L.current,Nn(e))Jo(e);else{var o=yu(W.current);switch(i){case 1:i=o.createElementNS("http://www.w3.org/2000/svg",a);break;case 2:i=o.createElementNS("http://www.w3.org/1998/Math/MathML",a);break;default:switch(a){case"svg":i=o.createElementNS("http://www.w3.org/2000/svg",a);break;case"math":i=o.createElementNS("http://www.w3.org/1998/Math/MathML",a);break;case"script":i=o.createElement("div"),i.innerHTML="<script><\/script>",i=i.removeChild(i.firstChild);break;case"select":i=typeof n.is=="string"?o.createElement("select",{is:n.is}):o.createElement("select"),n.multiple?i.multiple=!0:n.size&&(i.size=n.size);break;default:i=typeof n.is=="string"?o.createElement(a,{is:n.is}):o.createElement(a)}}i[Gt]=e,i[ae]=n;t:for(o=e.child;o!==null;){if(o.tag===5||o.tag===6)i.appendChild(o.stateNode);else if(o.tag!==4&&o.tag!==27&&o.child!==null){o.child.return=o,o=o.child;continue}if(o===e)break t;for(;o.sibling===null;){if(o.return===null||o.return===e)break t;o=o.return}o.sibling.return=o.return,o=o.sibling}e.stateNode=i;t:switch(Kt(i,a,n),a){case"button":case"input":case"select":case"textarea":n=!!n.autoFocus;break t;case"img":n=!0;break t;default:n=!1}n&&fl(e)}}return St(e),Ac(e,e.type,t===null?null:t.memoizedProps,e.pendingProps,l),null;case 6:if(t&&e.stateNode!=null)t.memoizedProps!==n&&fl(e);else{if(typeof n!="string"&&e.stateNode===null)throw Error(c(166));if(t=W.current,Nn(e)){if(t=e.stateNode,l=e.memoizedProps,n=null,a=Qt,a!==null)switch(a.tag){case 27:case 5:n=a.memoizedProps}t[Gt]=e,t=!!(t.nodeValue===l||n!==null&&n.suppressHydrationWarning===!0||od(t.nodeValue,l)),t||Al(e,!0)}else t=yu(t).createTextNode(n),t[Gt]=e,e.stateNode=t}return St(e),null;case 31:if(l=e.memoizedState,t===null||t.memoizedState!==null){if(n=Nn(e),l!==null){if(t===null){if(!n)throw Error(c(318));if(t=e.memoizedState,t=t!==null?t.dehydrated:null,!t)throw Error(c(557));t[Gt]=e}else nn(),(e.flags&128)===0&&(e.memoizedState=null),e.flags|=4;St(e),t=!1}else l=Ns(),t!==null&&t.memoizedState!==null&&(t.memoizedState.hydrationErrors=l),t=!0;if(!t)return e.flags&256?(ve(e),e):(ve(e),null);if((e.flags&128)!==0)throw Error(c(558))}return St(e),null;case 13:if(n=e.memoizedState,t===null||t.memoizedState!==null&&t.memoizedState.dehydrated!==null){if(a=Nn(e),n!==null&&n.dehydrated!==null){if(t===null){if(!a)throw Error(c(318));if(a=e.memoizedState,a=a!==null?a.dehydrated:null,!a)throw Error(c(317));a[Gt]=e}else nn(),(e.flags&128)===0&&(e.memoizedState=null),e.flags|=4;St(e),a=!1}else a=Ns(),t!==null&&t.memoizedState!==null&&(t.memoizedState.hydrationErrors=a),a=!0;if(!a)return e.flags&256?(ve(e),e):(ve(e),null)}return ve(e),(e.flags&128)!==0?(e.lanes=l,e):(l=n!==null,t=t!==null&&t.memoizedState!==null,l&&(n=e.child,a=null,n.alternate!==null&&n.alternate.memoizedState!==null&&n.alternate.memoizedState.cachePool!==null&&(a=n.alternate.memoizedState.cachePool.pool),i=null,n.memoizedState!==null&&n.memoizedState.cachePool!==null&&(i=n.memoizedState.cachePool.pool),i!==a&&(n.flags|=2048)),l!==t&&l&&(e.child.flags|=8192),tu(e,e.updateQueue),St(e),null);case 4:return Ot(),t===null&&Kc(e.stateNode.containerInfo),St(e),null;case 10:return il(e.type),St(e),null;case 19:if(w(zt),n=e.memoizedState,n===null)return St(e),null;if(a=(e.flags&128)!==0,i=n.rendering,i===null)if(a)Ya(n,!1);else{if(At!==0||t!==null&&(t.flags&128)!==0)for(t=e.child;t!==null;){if(i=Xi(t),i!==null){for(e.flags|=128,Ya(n,!1),t=i.updateQueue,e.updateQueue=t,tu(e,t),e.subtreeFlags=0,t=l,l=e.child;l!==null;)Go(l,t),l=l.sibling;return U(zt,zt.current&1|2),tt&&nl(e,n.treeForkCount),e.child}t=t.sibling}n.tail!==null&&he()>iu&&(e.flags|=128,a=!0,Ya(n,!1),e.lanes=4194304)}else{if(!a)if(t=Xi(i),t!==null){if(e.flags|=128,a=!0,t=t.updateQueue,e.updateQueue=t,tu(e,t),Ya(n,!0),n.tail===null&&n.tailMode==="hidden"&&!i.alternate&&!tt)return St(e),null}else 2*he()-n.renderingStartTime>iu&&l!==536870912&&(e.flags|=128,a=!0,Ya(n,!1),e.lanes=4194304);n.isBackwards?(i.sibling=e.child,e.child=i):(t=n.last,t!==null?t.sibling=i:e.child=i,n.last=i)}return n.tail!==null?(t=n.tail,n.rendering=t,n.tail=t.sibling,n.renderingStartTime=he(),t.sibling=null,l=zt.current,U(zt,a?l&1|2:l&1),tt&&nl(e,n.treeForkCount),t):(St(e),null);case 22:case 23:return ve(e),Js(),n=e.memoizedState!==null,t!==null?t.memoizedState!==null!==n&&(e.flags|=8192):n&&(e.flags|=8192),n?(l&536870912)!==0&&(e.flags&128)===0&&(St(e),e.subtreeFlags&6&&(e.flags|=8192)):St(e),l=e.updateQueue,l!==null&&tu(e,l.retryQueue),l=null,t!==null&&t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(l=t.memoizedState.cachePool.pool),n=null,e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(n=e.memoizedState.cachePool.pool),n!==l&&(e.flags|=2048),t!==null&&w(sn),null;case 24:return l=null,t!==null&&(l=t.memoizedState.cache),e.memoizedState.cache!==l&&(e.flags|=2048),il(Dt),St(e),null;case 25:return null;case 30:return null}throw Error(c(156,e.tag))}function zg(t,e){switch(Rs(e),e.tag){case 1:return t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 3:return il(Dt),Ot(),t=e.flags,(t&65536)!==0&&(t&128)===0?(e.flags=t&-65537|128,e):null;case 26:case 27:case 5:return ri(e),null;case 31:if(e.memoizedState!==null){if(ve(e),e.alternate===null)throw Error(c(340));nn()}return t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 13:if(ve(e),t=e.memoizedState,t!==null&&t.dehydrated!==null){if(e.alternate===null)throw Error(c(340));nn()}return t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 19:return w(zt),null;case 4:return Ot(),null;case 10:return il(e.type),null;case 22:case 23:return ve(e),Js(),t!==null&&w(sn),t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 24:return il(Dt),null;case 25:return null;default:return null}}function yh(t,e){switch(Rs(e),e.tag){case 3:il(Dt),Ot();break;case 26:case 27:case 5:ri(e);break;case 4:Ot();break;case 31:e.memoizedState!==null&&ve(e);break;case 13:ve(e);break;case 19:w(zt);break;case 10:il(e.type);break;case 22:case 23:ve(e),Js(),t!==null&&w(sn);break;case 24:il(Dt)}}function qa(t,e){try{var l=e.updateQueue,n=l!==null?l.lastEffect:null;if(n!==null){var a=n.next;l=a;do{if((l.tag&t)===t){n=void 0;var i=l.create,o=l.inst;n=i(),o.destroy=n}l=l.next}while(l!==a)}}catch(h){ct(e,e.return,h)}}function wl(t,e,l){try{var n=e.updateQueue,a=n!==null?n.lastEffect:null;if(a!==null){var i=a.next;n=i;do{if((n.tag&t)===t){var o=n.inst,h=o.destroy;if(h!==void 0){o.destroy=void 0,a=e;var m=l,_=h;try{_()}catch(O){ct(a,m,O)}}}n=n.next}while(n!==i)}}catch(O){ct(e,e.return,O)}}function gh(t){var e=t.updateQueue;if(e!==null){var l=t.stateNode;try{ur(e,l)}catch(n){ct(t,t.return,n)}}}function ph(t,e,l){l.props=hn(t.type,t.memoizedProps),l.state=t.memoizedState;try{l.componentWillUnmount()}catch(n){ct(t,e,n)}}function ja(t,e){try{var l=t.ref;if(l!==null){switch(t.tag){case 26:case 27:case 5:var n=t.stateNode;break;case 30:n=t.stateNode;break;default:n=t.stateNode}typeof l=="function"?t.refCleanup=l(n):l.current=n}}catch(a){ct(t,e,a)}}function Ke(t,e){var l=t.ref,n=t.refCleanup;if(l!==null)if(typeof n=="function")try{n()}catch(a){ct(t,e,a)}finally{t.refCleanup=null,t=t.alternate,t!=null&&(t.refCleanup=null)}else if(typeof l=="function")try{l(null)}catch(a){ct(t,e,a)}else l.current=null}function vh(t){var e=t.type,l=t.memoizedProps,n=t.stateNode;try{t:switch(e){case"button":case"input":case"select":case"textarea":l.autoFocus&&n.focus();break t;case"img":l.src?n.src=l.src:l.srcSet&&(n.srcset=l.srcSet)}}catch(a){ct(t,t.return,a)}}function Mc(t,e,l){try{var n=t.stateNode;Wg(n,t.type,l,e),n[ae]=e}catch(a){ct(t,t.return,a)}}function Sh(t){return t.tag===5||t.tag===3||t.tag===26||t.tag===27&&Yl(t.type)||t.tag===4}function Oc(t){t:for(;;){for(;t.sibling===null;){if(t.return===null||Sh(t.return))return null;t=t.return}for(t.sibling.return=t.return,t=t.sibling;t.tag!==5&&t.tag!==6&&t.tag!==18;){if(t.tag===27&&Yl(t.type)||t.flags&2||t.child===null||t.tag===4)continue t;t.child.return=t,t=t.child}if(!(t.flags&2))return t.stateNode}}function zc(t,e,l){var n=t.tag;if(n===5||n===6)t=t.stateNode,e?(l.nodeType===9?l.body:l.nodeName==="HTML"?l.ownerDocument.body:l).insertBefore(t,e):(e=l.nodeType===9?l.body:l.nodeName==="HTML"?l.ownerDocument.body:l,e.appendChild(t),l=l._reactRootContainer,l!=null||e.onclick!==null||(e.onclick=tl));else if(n!==4&&(n===27&&Yl(t.type)&&(l=t.stateNode,e=null),t=t.child,t!==null))for(zc(t,e,l),t=t.sibling;t!==null;)zc(t,e,l),t=t.sibling}function eu(t,e,l){var n=t.tag;if(n===5||n===6)t=t.stateNode,e?l.insertBefore(t,e):l.appendChild(t);else if(n!==4&&(n===27&&Yl(t.type)&&(l=t.stateNode),t=t.child,t!==null))for(eu(t,e,l),t=t.sibling;t!==null;)eu(t,e,l),t=t.sibling}function bh(t){var e=t.stateNode,l=t.memoizedProps;try{for(var n=t.type,a=e.attributes;a.length;)e.removeAttributeNode(a[0]);Kt(e,n,l),e[Gt]=t,e[ae]=l}catch(i){ct(t,t.return,i)}}var ol=!1,Ut=!1,xc=!1,Eh=typeof WeakSet=="function"?WeakSet:Set,jt=null;function xg(t,e){if(t=t.containerInfo,Wc=Tu,t=Uo(t),Es(t)){if("selectionStart"in t)var l={start:t.selectionStart,end:t.selectionEnd};else t:{l=(l=t.ownerDocument)&&l.defaultView||window;var n=l.getSelection&&l.getSelection();if(n&&n.rangeCount!==0){l=n.anchorNode;var a=n.anchorOffset,i=n.focusNode;n=n.focusOffset;try{l.nodeType,i.nodeType}catch{l=null;break t}var o=0,h=-1,m=-1,_=0,O=0,D=t,A=null;e:for(;;){for(var M;D!==l||a!==0&&D.nodeType!==3||(h=o+a),D!==i||n!==0&&D.nodeType!==3||(m=o+n),D.nodeType===3&&(o+=D.nodeValue.length),(M=D.firstChild)!==null;)A=D,D=M;for(;;){if(D===t)break e;if(A===l&&++_===a&&(h=o),A===i&&++O===n&&(m=o),(M=D.nextSibling)!==null)break;D=A,A=D.parentNode}D=M}l=h===-1||m===-1?null:{start:h,end:m}}else l=null}l=l||{start:0,end:0}}else l=null;for($c={focusedElem:t,selectionRange:l},Tu=!1,jt=e;jt!==null;)if(e=jt,t=e.child,(e.subtreeFlags&1028)!==0&&t!==null)t.return=e,jt=t;else for(;jt!==null;){switch(e=jt,i=e.alternate,t=e.flags,e.tag){case 0:if((t&4)!==0&&(t=e.updateQueue,t=t!==null?t.events:null,t!==null))for(l=0;l<t.length;l++)a=t[l],a.ref.impl=a.nextImpl;break;case 11:case 15:break;case 1:if((t&1024)!==0&&i!==null){t=void 0,l=e,a=i.memoizedProps,i=i.memoizedState,n=l.stateNode;try{var H=hn(l.type,a);t=n.getSnapshotBeforeUpdate(H,i),n.__reactInternalSnapshotBeforeUpdate=t}catch(X){ct(l,l.return,X)}}break;case 3:if((t&1024)!==0){if(t=e.stateNode.containerInfo,l=t.nodeType,l===9)Pc(t);else if(l===1)switch(t.nodeName){case"HEAD":case"HTML":case"BODY":Pc(t);break;default:t.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((t&1024)!==0)throw Error(c(163))}if(t=e.sibling,t!==null){t.return=e.return,jt=t;break}jt=e.return}}function Th(t,e,l){var n=l.flags;switch(l.tag){case 0:case 11:case 15:hl(t,l),n&4&&qa(5,l);break;case 1:if(hl(t,l),n&4)if(t=l.stateNode,e===null)try{t.componentDidMount()}catch(o){ct(l,l.return,o)}else{var a=hn(l.type,e.memoizedProps);e=e.memoizedState;try{t.componentDidUpdate(a,e,t.__reactInternalSnapshotBeforeUpdate)}catch(o){ct(l,l.return,o)}}n&64&&gh(l),n&512&&ja(l,l.return);break;case 3:if(hl(t,l),n&64&&(t=l.updateQueue,t!==null)){if(e=null,l.child!==null)switch(l.child.tag){case 27:case 5:e=l.child.stateNode;break;case 1:e=l.child.stateNode}try{ur(t,e)}catch(o){ct(l,l.return,o)}}break;case 27:e===null&&n&4&&bh(l);case 26:case 5:hl(t,l),e===null&&n&4&&vh(l),n&512&&ja(l,l.return);break;case 12:hl(t,l);break;case 31:hl(t,l),n&4&&Mh(t,l);break;case 13:hl(t,l),n&4&&Oh(t,l),n&64&&(t=l.memoizedState,t!==null&&(t=t.dehydrated,t!==null&&(l=Lg.bind(null,l),np(t,l))));break;case 22:if(n=l.memoizedState!==null||ol,!n){e=e!==null&&e.memoizedState!==null||Ut,a=ol;var i=Ut;ol=n,(Ut=e)&&!i?dl(t,l,(l.subtreeFlags&8772)!==0):hl(t,l),ol=a,Ut=i}break;case 30:break;default:hl(t,l)}}function _h(t){var e=t.alternate;e!==null&&(t.alternate=null,_h(e)),t.child=null,t.deletions=null,t.sibling=null,t.tag===5&&(e=t.stateNode,e!==null&&as(e)),t.stateNode=null,t.return=null,t.dependencies=null,t.memoizedProps=null,t.memoizedState=null,t.pendingProps=null,t.stateNode=null,t.updateQueue=null}var bt=null,ue=!1;function rl(t,e,l){for(l=l.child;l!==null;)Ah(t,e,l),l=l.sibling}function Ah(t,e,l){if(de&&typeof de.onCommitFiberUnmount=="function")try{de.onCommitFiberUnmount(oa,l)}catch{}switch(l.tag){case 26:Ut||Ke(l,e),rl(t,e,l),l.memoizedState?l.memoizedState.count--:l.stateNode&&(l=l.stateNode,l.parentNode.removeChild(l));break;case 27:Ut||Ke(l,e);var n=bt,a=ue;Yl(l.type)&&(bt=l.stateNode,ue=!1),rl(t,e,l),Wa(l.stateNode),bt=n,ue=a;break;case 5:Ut||Ke(l,e);case 6:if(n=bt,a=ue,bt=null,rl(t,e,l),bt=n,ue=a,bt!==null)if(ue)try{(bt.nodeType===9?bt.body:bt.nodeName==="HTML"?bt.ownerDocument.body:bt).removeChild(l.stateNode)}catch(i){ct(l,e,i)}else try{bt.removeChild(l.stateNode)}catch(i){ct(l,e,i)}break;case 18:bt!==null&&(ue?(t=bt,gd(t.nodeType===9?t.body:t.nodeName==="HTML"?t.ownerDocument.body:t,l.stateNode),ea(t)):gd(bt,l.stateNode));break;case 4:n=bt,a=ue,bt=l.stateNode.containerInfo,ue=!0,rl(t,e,l),bt=n,ue=a;break;case 0:case 11:case 14:case 15:wl(2,l,e),Ut||wl(4,l,e),rl(t,e,l);break;case 1:Ut||(Ke(l,e),n=l.stateNode,typeof n.componentWillUnmount=="function"&&ph(l,e,n)),rl(t,e,l);break;case 21:rl(t,e,l);break;case 22:Ut=(n=Ut)||l.memoizedState!==null,rl(t,e,l),Ut=n;break;default:rl(t,e,l)}}function Mh(t,e){if(e.memoizedState===null&&(t=e.alternate,t!==null&&(t=t.memoizedState,t!==null))){t=t.dehydrated;try{ea(t)}catch(l){ct(e,e.return,l)}}}function Oh(t,e){if(e.memoizedState===null&&(t=e.alternate,t!==null&&(t=t.memoizedState,t!==null&&(t=t.dehydrated,t!==null))))try{ea(t)}catch(l){ct(e,e.return,l)}}function Cg(t){switch(t.tag){case 31:case 13:case 19:var e=t.stateNode;return e===null&&(e=t.stateNode=new Eh),e;case 22:return t=t.stateNode,e=t._retryCache,e===null&&(e=t._retryCache=new Eh),e;default:throw Error(c(435,t.tag))}}function lu(t,e){var l=Cg(t);e.forEach(function(n){if(!l.has(n)){l.add(n);var a=Yg.bind(null,t,n);n.then(a,a)}})}function se(t,e){var l=e.deletions;if(l!==null)for(var n=0;n<l.length;n++){var a=l[n],i=t,o=e,h=o;t:for(;h!==null;){switch(h.tag){case 27:if(Yl(h.type)){bt=h.stateNode,ue=!1;break t}break;case 5:bt=h.stateNode,ue=!1;break t;case 3:case 4:bt=h.stateNode.containerInfo,ue=!0;break t}h=h.return}if(bt===null)throw Error(c(160));Ah(i,o,a),bt=null,ue=!1,i=a.alternate,i!==null&&(i.return=null),a.return=null}if(e.subtreeFlags&13886)for(e=e.child;e!==null;)zh(e,t),e=e.sibling}var Le=null;function zh(t,e){var l=t.alternate,n=t.flags;switch(t.tag){case 0:case 11:case 14:case 15:se(e,t),ce(t),n&4&&(wl(3,t,t.return),qa(3,t),wl(5,t,t.return));break;case 1:se(e,t),ce(t),n&512&&(Ut||l===null||Ke(l,l.return)),n&64&&ol&&(t=t.updateQueue,t!==null&&(n=t.callbacks,n!==null&&(l=t.shared.hiddenCallbacks,t.shared.hiddenCallbacks=l===null?n:l.concat(n))));break;case 26:var a=Le;if(se(e,t),ce(t),n&512&&(Ut||l===null||Ke(l,l.return)),n&4){var i=l!==null?l.memoizedState:null;if(n=t.memoizedState,l===null)if(n===null)if(t.stateNode===null){t:{n=t.type,l=t.memoizedProps,a=a.ownerDocument||a;e:switch(n){case"title":i=a.getElementsByTagName("title")[0],(!i||i[da]||i[Gt]||i.namespaceURI==="http://www.w3.org/2000/svg"||i.hasAttribute("itemprop"))&&(i=a.createElement(n),a.head.insertBefore(i,a.querySelector("head > title"))),Kt(i,n,l),i[Gt]=t,qt(i),n=i;break t;case"link":var o=zd("link","href",a).get(n+(l.href||""));if(o){for(var h=0;h<o.length;h++)if(i=o[h],i.getAttribute("href")===(l.href==null||l.href===""?null:l.href)&&i.getAttribute("rel")===(l.rel==null?null:l.rel)&&i.getAttribute("title")===(l.title==null?null:l.title)&&i.getAttribute("crossorigin")===(l.crossOrigin==null?null:l.crossOrigin)){o.splice(h,1);break e}}i=a.createElement(n),Kt(i,n,l),a.head.appendChild(i);break;case"meta":if(o=zd("meta","content",a).get(n+(l.content||""))){for(h=0;h<o.length;h++)if(i=o[h],i.getAttribute("content")===(l.content==null?null:""+l.content)&&i.getAttribute("name")===(l.name==null?null:l.name)&&i.getAttribute("property")===(l.property==null?null:l.property)&&i.getAttribute("http-equiv")===(l.httpEquiv==null?null:l.httpEquiv)&&i.getAttribute("charset")===(l.charSet==null?null:l.charSet)){o.splice(h,1);break e}}i=a.createElement(n),Kt(i,n,l),a.head.appendChild(i);break;default:throw Error(c(468,n))}i[Gt]=t,qt(i),n=i}t.stateNode=n}else xd(a,t.type,t.stateNode);else t.stateNode=Od(a,n,t.memoizedProps);else i!==n?(i===null?l.stateNode!==null&&(l=l.stateNode,l.parentNode.removeChild(l)):i.count--,n===null?xd(a,t.type,t.stateNode):Od(a,n,t.memoizedProps)):n===null&&t.stateNode!==null&&Mc(t,t.memoizedProps,l.memoizedProps)}break;case 27:se(e,t),ce(t),n&512&&(Ut||l===null||Ke(l,l.return)),l!==null&&n&4&&Mc(t,t.memoizedProps,l.memoizedProps);break;case 5:if(se(e,t),ce(t),n&512&&(Ut||l===null||Ke(l,l.return)),t.flags&32){a=t.stateNode;try{An(a,"")}catch(H){ct(t,t.return,H)}}n&4&&t.stateNode!=null&&(a=t.memoizedProps,Mc(t,a,l!==null?l.memoizedProps:a)),n&1024&&(xc=!0);break;case 6:if(se(e,t),ce(t),n&4){if(t.stateNode===null)throw Error(c(162));n=t.memoizedProps,l=t.stateNode;try{l.nodeValue=n}catch(H){ct(t,t.return,H)}}break;case 3:if(vu=null,a=Le,Le=gu(e.containerInfo),se(e,t),Le=a,ce(t),n&4&&l!==null&&l.memoizedState.isDehydrated)try{ea(e.containerInfo)}catch(H){ct(t,t.return,H)}xc&&(xc=!1,xh(t));break;case 4:n=Le,Le=gu(t.stateNode.containerInfo),se(e,t),ce(t),Le=n;break;case 12:se(e,t),ce(t);break;case 31:se(e,t),ce(t),n&4&&(n=t.updateQueue,n!==null&&(t.updateQueue=null,lu(t,n)));break;case 13:se(e,t),ce(t),t.child.flags&8192&&t.memoizedState!==null!=(l!==null&&l.memoizedState!==null)&&(au=he()),n&4&&(n=t.updateQueue,n!==null&&(t.updateQueue=null,lu(t,n)));break;case 22:a=t.memoizedState!==null;var m=l!==null&&l.memoizedState!==null,_=ol,O=Ut;if(ol=_||a,Ut=O||m,se(e,t),Ut=O,ol=_,ce(t),n&8192)t:for(e=t.stateNode,e._visibility=a?e._visibility&-2:e._visibility|1,a&&(l===null||m||ol||Ut||dn(t)),l=null,e=t;;){if(e.tag===5||e.tag===26){if(l===null){m=l=e;try{if(i=m.stateNode,a)o=i.style,typeof o.setProperty=="function"?o.setProperty("display","none","important"):o.display="none";else{h=m.stateNode;var D=m.memoizedProps.style,A=D!=null&&D.hasOwnProperty("display")?D.display:null;h.style.display=A==null||typeof A=="boolean"?"":(""+A).trim()}}catch(H){ct(m,m.return,H)}}}else if(e.tag===6){if(l===null){m=e;try{m.stateNode.nodeValue=a?"":m.memoizedProps}catch(H){ct(m,m.return,H)}}}else if(e.tag===18){if(l===null){m=e;try{var M=m.stateNode;a?pd(M,!0):pd(m.stateNode,!1)}catch(H){ct(m,m.return,H)}}}else if((e.tag!==22&&e.tag!==23||e.memoizedState===null||e===t)&&e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break t;for(;e.sibling===null;){if(e.return===null||e.return===t)break t;l===e&&(l=null),e=e.return}l===e&&(l=null),e.sibling.return=e.return,e=e.sibling}n&4&&(n=t.updateQueue,n!==null&&(l=n.retryQueue,l!==null&&(n.retryQueue=null,lu(t,l))));break;case 19:se(e,t),ce(t),n&4&&(n=t.updateQueue,n!==null&&(t.updateQueue=null,lu(t,n)));break;case 30:break;case 21:break;default:se(e,t),ce(t)}}function ce(t){var e=t.flags;if(e&2){try{for(var l,n=t.return;n!==null;){if(Sh(n)){l=n;break}n=n.return}if(l==null)throw Error(c(160));switch(l.tag){case 27:var a=l.stateNode,i=Oc(t);eu(t,i,a);break;case 5:var o=l.stateNode;l.flags&32&&(An(o,""),l.flags&=-33);var h=Oc(t);eu(t,h,o);break;case 3:case 4:var m=l.stateNode.containerInfo,_=Oc(t);zc(t,_,m);break;default:throw Error(c(161))}}catch(O){ct(t,t.return,O)}t.flags&=-3}e&4096&&(t.flags&=-4097)}function xh(t){if(t.subtreeFlags&1024)for(t=t.child;t!==null;){var e=t;xh(e),e.tag===5&&e.flags&1024&&e.stateNode.reset(),t=t.sibling}}function hl(t,e){if(e.subtreeFlags&8772)for(e=e.child;e!==null;)Th(t,e.alternate,e),e=e.sibling}function dn(t){for(t=t.child;t!==null;){var e=t;switch(e.tag){case 0:case 11:case 14:case 15:wl(4,e,e.return),dn(e);break;case 1:Ke(e,e.return);var l=e.stateNode;typeof l.componentWillUnmount=="function"&&ph(e,e.return,l),dn(e);break;case 27:Wa(e.stateNode);case 26:case 5:Ke(e,e.return),dn(e);break;case 22:e.memoizedState===null&&dn(e);break;case 30:dn(e);break;default:dn(e)}t=t.sibling}}function dl(t,e,l){for(l=l&&(e.subtreeFlags&8772)!==0,e=e.child;e!==null;){var n=e.alternate,a=t,i=e,o=i.flags;switch(i.tag){case 0:case 11:case 15:dl(a,i,l),qa(4,i);break;case 1:if(dl(a,i,l),n=i,a=n.stateNode,typeof a.componentDidMount=="function")try{a.componentDidMount()}catch(_){ct(n,n.return,_)}if(n=i,a=n.updateQueue,a!==null){var h=n.stateNode;try{var m=a.shared.hiddenCallbacks;if(m!==null)for(a.shared.hiddenCallbacks=null,a=0;a<m.length;a++)ir(m[a],h)}catch(_){ct(n,n.return,_)}}l&&o&64&&gh(i),ja(i,i.return);break;case 27:bh(i);case 26:case 5:dl(a,i,l),l&&n===null&&o&4&&vh(i),ja(i,i.return);break;case 12:dl(a,i,l);break;case 31:dl(a,i,l),l&&o&4&&Mh(a,i);break;case 13:dl(a,i,l),l&&o&4&&Oh(a,i);break;case 22:i.memoizedState===null&&dl(a,i,l),ja(i,i.return);break;case 30:break;default:dl(a,i,l)}e=e.sibling}}function Cc(t,e){var l=null;t!==null&&t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(l=t.memoizedState.cachePool.pool),t=null,e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(t=e.memoizedState.cachePool.pool),t!==l&&(t!=null&&t.refCount++,l!=null&&Oa(l))}function Dc(t,e){t=null,e.alternate!==null&&(t=e.alternate.memoizedState.cache),e=e.memoizedState.cache,e!==t&&(e.refCount++,t!=null&&Oa(t))}function Ye(t,e,l,n){if(e.subtreeFlags&10256)for(e=e.child;e!==null;)Ch(t,e,l,n),e=e.sibling}function Ch(t,e,l,n){var a=e.flags;switch(e.tag){case 0:case 11:case 15:Ye(t,e,l,n),a&2048&&qa(9,e);break;case 1:Ye(t,e,l,n);break;case 3:Ye(t,e,l,n),a&2048&&(t=null,e.alternate!==null&&(t=e.alternate.memoizedState.cache),e=e.memoizedState.cache,e!==t&&(e.refCount++,t!=null&&Oa(t)));break;case 12:if(a&2048){Ye(t,e,l,n),t=e.stateNode;try{var i=e.memoizedProps,o=i.id,h=i.onPostCommit;typeof h=="function"&&h(o,e.alternate===null?"mount":"update",t.passiveEffectDuration,-0)}catch(m){ct(e,e.return,m)}}else Ye(t,e,l,n);break;case 31:Ye(t,e,l,n);break;case 13:Ye(t,e,l,n);break;case 23:break;case 22:i=e.stateNode,o=e.alternate,e.memoizedState!==null?i._visibility&2?Ye(t,e,l,n):Xa(t,e):i._visibility&2?Ye(t,e,l,n):(i._visibility|=2,Zn(t,e,l,n,(e.subtreeFlags&10256)!==0||!1)),a&2048&&Cc(o,e);break;case 24:Ye(t,e,l,n),a&2048&&Dc(e.alternate,e);break;default:Ye(t,e,l,n)}}function Zn(t,e,l,n,a){for(a=a&&((e.subtreeFlags&10256)!==0||!1),e=e.child;e!==null;){var i=t,o=e,h=l,m=n,_=o.flags;switch(o.tag){case 0:case 11:case 15:Zn(i,o,h,m,a),qa(8,o);break;case 23:break;case 22:var O=o.stateNode;o.memoizedState!==null?O._visibility&2?Zn(i,o,h,m,a):Xa(i,o):(O._visibility|=2,Zn(i,o,h,m,a)),a&&_&2048&&Cc(o.alternate,o);break;case 24:Zn(i,o,h,m,a),a&&_&2048&&Dc(o.alternate,o);break;default:Zn(i,o,h,m,a)}e=e.sibling}}function Xa(t,e){if(e.subtreeFlags&10256)for(e=e.child;e!==null;){var l=t,n=e,a=n.flags;switch(n.tag){case 22:Xa(l,n),a&2048&&Cc(n.alternate,n);break;case 24:Xa(l,n),a&2048&&Dc(n.alternate,n);break;default:Xa(l,n)}e=e.sibling}}var Ga=8192;function Vn(t,e,l){if(t.subtreeFlags&Ga)for(t=t.child;t!==null;)Dh(t,e,l),t=t.sibling}function Dh(t,e,l){switch(t.tag){case 26:Vn(t,e,l),t.flags&Ga&&t.memoizedState!==null&&yp(l,Le,t.memoizedState,t.memoizedProps);break;case 5:Vn(t,e,l);break;case 3:case 4:var n=Le;Le=gu(t.stateNode.containerInfo),Vn(t,e,l),Le=n;break;case 22:t.memoizedState===null&&(n=t.alternate,n!==null&&n.memoizedState!==null?(n=Ga,Ga=16777216,Vn(t,e,l),Ga=n):Vn(t,e,l));break;default:Vn(t,e,l)}}function wh(t){var e=t.alternate;if(e!==null&&(t=e.child,t!==null)){e.child=null;do e=t.sibling,t.sibling=null,t=e;while(t!==null)}}function Qa(t){var e=t.deletions;if((t.flags&16)!==0){if(e!==null)for(var l=0;l<e.length;l++){var n=e[l];jt=n,Uh(n,t)}wh(t)}if(t.subtreeFlags&10256)for(t=t.child;t!==null;)Rh(t),t=t.sibling}function Rh(t){switch(t.tag){case 0:case 11:case 15:Qa(t),t.flags&2048&&wl(9,t,t.return);break;case 3:Qa(t);break;case 12:Qa(t);break;case 22:var e=t.stateNode;t.memoizedState!==null&&e._visibility&2&&(t.return===null||t.return.tag!==13)?(e._visibility&=-3,nu(t)):Qa(t);break;default:Qa(t)}}function nu(t){var e=t.deletions;if((t.flags&16)!==0){if(e!==null)for(var l=0;l<e.length;l++){var n=e[l];jt=n,Uh(n,t)}wh(t)}for(t=t.child;t!==null;){switch(e=t,e.tag){case 0:case 11:case 15:wl(8,e,e.return),nu(e);break;case 22:l=e.stateNode,l._visibility&2&&(l._visibility&=-3,nu(e));break;default:nu(e)}t=t.sibling}}function Uh(t,e){for(;jt!==null;){var l=jt;switch(l.tag){case 0:case 11:case 15:wl(8,l,e);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:Oa(l.memoizedState.cache)}if(n=l.child,n!==null)n.return=l,jt=n;else t:for(l=t;jt!==null;){n=jt;var a=n.sibling,i=n.return;if(_h(n),n===l){jt=null;break t}if(a!==null){a.return=i,jt=a;break t}jt=i}}}var Dg={getCacheForType:function(t){var e=Zt(Dt),l=e.data.get(t);return l===void 0&&(l=t(),e.data.set(t,l)),l},cacheSignal:function(){return Zt(Dt).controller.signal}},wg=typeof WeakMap=="function"?WeakMap:Map,it=0,mt=null,$=null,I=0,st=0,Se=null,Rl=!1,Kn=!1,wc=!1,ml=0,At=0,Ul=0,mn=0,Rc=0,be=0,Jn=0,Za=null,fe=null,Uc=!1,au=0,Nh=0,iu=1/0,uu=null,Nl=null,Ht=0,Hl=null,kn=null,yl=0,Nc=0,Hc=null,Hh=null,Va=0,Bc=null;function Ee(){return(it&2)!==0&&I!==0?I&-I:x.T!==null?Gc():$f()}function Bh(){if(be===0)if((I&536870912)===0||tt){var t=mi;mi<<=1,(mi&3932160)===0&&(mi=262144),be=t}else be=536870912;return t=pe.current,t!==null&&(t.flags|=32),be}function oe(t,e,l){(t===mt&&(st===2||st===9)||t.cancelPendingCommit!==null)&&(Wn(t,0),Bl(t,I,be,!1)),ha(t,l),((it&2)===0||t!==mt)&&(t===mt&&((it&2)===0&&(mn|=l),At===4&&Bl(t,I,be,!1)),Je(t))}function Lh(t,e,l){if((it&6)!==0)throw Error(c(327));var n=!l&&(e&127)===0&&(e&t.expiredLanes)===0||ra(t,e),a=n?Ng(t,e):Yc(t,e,!0),i=n;do{if(a===0){Kn&&!n&&Bl(t,e,0,!1);break}else{if(l=t.current.alternate,i&&!Rg(l)){a=Yc(t,e,!1),i=!1;continue}if(a===2){if(i=e,t.errorRecoveryDisabledLanes&i)var o=0;else o=t.pendingLanes&-536870913,o=o!==0?o:o&536870912?536870912:0;if(o!==0){e=o;t:{var h=t;a=Za;var m=h.current.memoizedState.isDehydrated;if(m&&(Wn(h,o).flags|=256),o=Yc(h,o,!1),o!==2){if(wc&&!m){h.errorRecoveryDisabledLanes|=i,mn|=i,a=4;break t}i=fe,fe=a,i!==null&&(fe===null?fe=i:fe.push.apply(fe,i))}a=o}if(i=!1,a!==2)continue}}if(a===1){Wn(t,0),Bl(t,e,0,!0);break}t:{switch(n=t,i=a,i){case 0:case 1:throw Error(c(345));case 4:if((e&4194048)!==e)break;case 6:Bl(n,e,be,!Rl);break t;case 2:fe=null;break;case 3:case 5:break;default:throw Error(c(329))}if((e&62914560)===e&&(a=au+300-he(),10<a)){if(Bl(n,e,be,!Rl),gi(n,0,!0)!==0)break t;yl=e,n.timeoutHandle=md(Yh.bind(null,n,l,fe,uu,Uc,e,be,mn,Jn,Rl,i,"Throttled",-0,0),a);break t}Yh(n,l,fe,uu,Uc,e,be,mn,Jn,Rl,i,null,-0,0)}}break}while(!0);Je(t)}function Yh(t,e,l,n,a,i,o,h,m,_,O,D,A,M){if(t.timeoutHandle=-1,D=e.subtreeFlags,D&8192||(D&16785408)===16785408){D={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:tl},Dh(e,i,D);var H=(i&62914560)===i?au-he():(i&4194048)===i?Nh-he():0;if(H=gp(D,H),H!==null){yl=i,t.cancelPendingCommit=H(Kh.bind(null,t,e,i,l,n,a,o,h,m,O,D,null,A,M)),Bl(t,i,o,!_);return}}Kh(t,e,i,l,n,a,o,h,m)}function Rg(t){for(var e=t;;){var l=e.tag;if((l===0||l===11||l===15)&&e.flags&16384&&(l=e.updateQueue,l!==null&&(l=l.stores,l!==null)))for(var n=0;n<l.length;n++){var a=l[n],i=a.getSnapshot;a=a.value;try{if(!ye(i(),a))return!1}catch{return!1}}if(l=e.child,e.subtreeFlags&16384&&l!==null)l.return=e,e=l;else{if(e===t)break;for(;e.sibling===null;){if(e.return===null||e.return===t)return!0;e=e.return}e.sibling.return=e.return,e=e.sibling}}return!0}function Bl(t,e,l,n){e&=~Rc,e&=~mn,t.suspendedLanes|=e,t.pingedLanes&=~e,n&&(t.warmLanes|=e),n=t.expirationTimes;for(var a=e;0<a;){var i=31-me(a),o=1<<i;n[i]=-1,a&=~o}l!==0&&Jf(t,l,e)}function su(){return(it&6)===0?(Ka(0),!1):!0}function Lc(){if($!==null){if(st===0)var t=$.return;else t=$,al=an=null,Ps(t),qn=null,xa=0,t=$;for(;t!==null;)yh(t.alternate,t),t=t.return;$=null}}function Wn(t,e){var l=t.timeoutHandle;l!==-1&&(t.timeoutHandle=-1,Ig(l)),l=t.cancelPendingCommit,l!==null&&(t.cancelPendingCommit=null,l()),yl=0,Lc(),mt=t,$=l=ll(t.current,null),I=e,st=0,Se=null,Rl=!1,Kn=ra(t,e),wc=!1,Jn=be=Rc=mn=Ul=At=0,fe=Za=null,Uc=!1,(e&8)!==0&&(e|=e&32);var n=t.entangledLanes;if(n!==0)for(t=t.entanglements,n&=e;0<n;){var a=31-me(n),i=1<<a;e|=t[a],n&=~i}return ml=e,xi(),l}function qh(t,e){K=null,x.H=Ba,e===Yn||e===Bi?(e=er(),st=3):e===Xs?(e=er(),st=4):st=e===yc?8:e!==null&&typeof e=="object"&&typeof e.then=="function"?6:1,Se=e,$===null&&(At=1,$i(t,Oe(e,t.current)))}function jh(){var t=pe.current;return t===null?!0:(I&4194048)===I?De===null:(I&62914560)===I||(I&536870912)!==0?t===De:!1}function Xh(){var t=x.H;return x.H=Ba,t===null?Ba:t}function Gh(){var t=x.A;return x.A=Dg,t}function cu(){At=4,Rl||(I&4194048)!==I&&pe.current!==null||(Kn=!0),(Ul&134217727)===0&&(mn&134217727)===0||mt===null||Bl(mt,I,be,!1)}function Yc(t,e,l){var n=it;it|=2;var a=Xh(),i=Gh();(mt!==t||I!==e)&&(uu=null,Wn(t,e)),e=!1;var o=At;t:do try{if(st!==0&&$!==null){var h=$,m=Se;switch(st){case 8:Lc(),o=6;break t;case 3:case 2:case 9:case 6:pe.current===null&&(e=!0);var _=st;if(st=0,Se=null,$n(t,h,m,_),l&&Kn){o=0;break t}break;default:_=st,st=0,Se=null,$n(t,h,m,_)}}Ug(),o=At;break}catch(O){qh(t,O)}while(!0);return e&&t.shellSuspendCounter++,al=an=null,it=n,x.H=a,x.A=i,$===null&&(mt=null,I=0,xi()),o}function Ug(){for(;$!==null;)Qh($)}function Ng(t,e){var l=it;it|=2;var n=Xh(),a=Gh();mt!==t||I!==e?(uu=null,iu=he()+500,Wn(t,e)):Kn=ra(t,e);t:do try{if(st!==0&&$!==null){e=$;var i=Se;e:switch(st){case 1:st=0,Se=null,$n(t,e,i,1);break;case 2:case 9:if(Po(i)){st=0,Se=null,Zh(e);break}e=function(){st!==2&&st!==9||mt!==t||(st=7),Je(t)},i.then(e,e);break t;case 3:st=7;break t;case 4:st=5;break t;case 7:Po(i)?(st=0,Se=null,Zh(e)):(st=0,Se=null,$n(t,e,i,7));break;case 5:var o=null;switch($.tag){case 26:o=$.memoizedState;case 5:case 27:var h=$;if(o?Cd(o):h.stateNode.complete){st=0,Se=null;var m=h.sibling;if(m!==null)$=m;else{var _=h.return;_!==null?($=_,fu(_)):$=null}break e}}st=0,Se=null,$n(t,e,i,5);break;case 6:st=0,Se=null,$n(t,e,i,6);break;case 8:Lc(),At=6;break t;default:throw Error(c(462))}}Hg();break}catch(O){qh(t,O)}while(!0);return al=an=null,x.H=n,x.A=a,it=l,$!==null?0:(mt=null,I=0,xi(),At)}function Hg(){for(;$!==null&&!ay();)Qh($)}function Qh(t){var e=dh(t.alternate,t,ml);t.memoizedProps=t.pendingProps,e===null?fu(t):$=e}function Zh(t){var e=t,l=e.alternate;switch(e.tag){case 15:case 0:e=sh(l,e,e.pendingProps,e.type,void 0,I);break;case 11:e=sh(l,e,e.pendingProps,e.type.render,e.ref,I);break;case 5:Ps(e);default:yh(l,e),e=$=Go(e,ml),e=dh(l,e,ml)}t.memoizedProps=t.pendingProps,e===null?fu(t):$=e}function $n(t,e,l,n){al=an=null,Ps(e),qn=null,xa=0;var a=e.return;try{if(_g(t,a,e,l,I)){At=1,$i(t,Oe(l,t.current)),$=null;return}}catch(i){if(a!==null)throw $=a,i;At=1,$i(t,Oe(l,t.current)),$=null;return}e.flags&32768?(tt||n===1?t=!0:Kn||(I&536870912)!==0?t=!1:(Rl=t=!0,(n===2||n===9||n===3||n===6)&&(n=pe.current,n!==null&&n.tag===13&&(n.flags|=16384))),Vh(e,t)):fu(e)}function fu(t){var e=t;do{if((e.flags&32768)!==0){Vh(e,Rl);return}t=e.return;var l=Og(e.alternate,e,ml);if(l!==null){$=l;return}if(e=e.sibling,e!==null){$=e;return}$=e=t}while(e!==null);At===0&&(At=5)}function Vh(t,e){do{var l=zg(t.alternate,t);if(l!==null){l.flags&=32767,$=l;return}if(l=t.return,l!==null&&(l.flags|=32768,l.subtreeFlags=0,l.deletions=null),!e&&(t=t.sibling,t!==null)){$=t;return}$=t=l}while(t!==null);At=6,$=null}function Kh(t,e,l,n,a,i,o,h,m){t.cancelPendingCommit=null;do ou();while(Ht!==0);if((it&6)!==0)throw Error(c(327));if(e!==null){if(e===t.current)throw Error(c(177));if(i=e.lanes|e.childLanes,i|=Os,my(t,l,i,o,h,m),t===mt&&($=mt=null,I=0),kn=e,Hl=t,yl=l,Nc=i,Hc=a,Hh=n,(e.subtreeFlags&10256)!==0||(e.flags&10256)!==0?(t.callbackNode=null,t.callbackPriority=0,qg(hi,function(){return Fh(),null})):(t.callbackNode=null,t.callbackPriority=0),n=(e.flags&13878)!==0,(e.subtreeFlags&13878)!==0||n){n=x.T,x.T=null,a=R.p,R.p=2,o=it,it|=4;try{xg(t,e,l)}finally{it=o,R.p=a,x.T=n}}Ht=1,Jh(),kh(),Wh()}}function Jh(){if(Ht===1){Ht=0;var t=Hl,e=kn,l=(e.flags&13878)!==0;if((e.subtreeFlags&13878)!==0||l){l=x.T,x.T=null;var n=R.p;R.p=2;var a=it;it|=4;try{zh(e,t);var i=$c,o=Uo(t.containerInfo),h=i.focusedElem,m=i.selectionRange;if(o!==h&&h&&h.ownerDocument&&Ro(h.ownerDocument.documentElement,h)){if(m!==null&&Es(h)){var _=m.start,O=m.end;if(O===void 0&&(O=_),"selectionStart"in h)h.selectionStart=_,h.selectionEnd=Math.min(O,h.value.length);else{var D=h.ownerDocument||document,A=D&&D.defaultView||window;if(A.getSelection){var M=A.getSelection(),H=h.textContent.length,X=Math.min(m.start,H),ht=m.end===void 0?X:Math.min(m.end,H);!M.extend&&X>ht&&(o=ht,ht=X,X=o);var b=wo(h,X),g=wo(h,ht);if(b&&g&&(M.rangeCount!==1||M.anchorNode!==b.node||M.anchorOffset!==b.offset||M.focusNode!==g.node||M.focusOffset!==g.offset)){var T=D.createRange();T.setStart(b.node,b.offset),M.removeAllRanges(),X>ht?(M.addRange(T),M.extend(g.node,g.offset)):(T.setEnd(g.node,g.offset),M.addRange(T))}}}}for(D=[],M=h;M=M.parentNode;)M.nodeType===1&&D.push({element:M,left:M.scrollLeft,top:M.scrollTop});for(typeof h.focus=="function"&&h.focus(),h=0;h<D.length;h++){var C=D[h];C.element.scrollLeft=C.left,C.element.scrollTop=C.top}}Tu=!!Wc,$c=Wc=null}finally{it=a,R.p=n,x.T=l}}t.current=e,Ht=2}}function kh(){if(Ht===2){Ht=0;var t=Hl,e=kn,l=(e.flags&8772)!==0;if((e.subtreeFlags&8772)!==0||l){l=x.T,x.T=null;var n=R.p;R.p=2;var a=it;it|=4;try{Th(t,e.alternate,e)}finally{it=a,R.p=n,x.T=l}}Ht=3}}function Wh(){if(Ht===4||Ht===3){Ht=0,iy();var t=Hl,e=kn,l=yl,n=Hh;(e.subtreeFlags&10256)!==0||(e.flags&10256)!==0?Ht=5:(Ht=0,kn=Hl=null,$h(t,t.pendingLanes));var a=t.pendingLanes;if(a===0&&(Nl=null),ls(l),e=e.stateNode,de&&typeof de.onCommitFiberRoot=="function")try{de.onCommitFiberRoot(oa,e,void 0,(e.current.flags&128)===128)}catch{}if(n!==null){e=x.T,a=R.p,R.p=2,x.T=null;try{for(var i=t.onRecoverableError,o=0;o<n.length;o++){var h=n[o];i(h.value,{componentStack:h.stack})}}finally{x.T=e,R.p=a}}(yl&3)!==0&&ou(),Je(t),a=t.pendingLanes,(l&261930)!==0&&(a&42)!==0?t===Bc?Va++:(Va=0,Bc=t):Va=0,Ka(0)}}function $h(t,e){(t.pooledCacheLanes&=e)===0&&(e=t.pooledCache,e!=null&&(t.pooledCache=null,Oa(e)))}function ou(){return Jh(),kh(),Wh(),Fh()}function Fh(){if(Ht!==5)return!1;var t=Hl,e=Nc;Nc=0;var l=ls(yl),n=x.T,a=R.p;try{R.p=32>l?32:l,x.T=null,l=Hc,Hc=null;var i=Hl,o=yl;if(Ht=0,kn=Hl=null,yl=0,(it&6)!==0)throw Error(c(331));var h=it;if(it|=4,Rh(i.current),Ch(i,i.current,o,l),it=h,Ka(0,!1),de&&typeof de.onPostCommitFiberRoot=="function")try{de.onPostCommitFiberRoot(oa,i)}catch{}return!0}finally{R.p=a,x.T=n,$h(t,e)}}function Ih(t,e,l){e=Oe(l,e),e=mc(t.stateNode,e,2),t=xl(t,e,2),t!==null&&(ha(t,2),Je(t))}function ct(t,e,l){if(t.tag===3)Ih(t,t,l);else for(;e!==null;){if(e.tag===3){Ih(e,t,l);break}else if(e.tag===1){var n=e.stateNode;if(typeof e.type.getDerivedStateFromError=="function"||typeof n.componentDidCatch=="function"&&(Nl===null||!Nl.has(n))){t=Oe(l,t),l=Pr(2),n=xl(e,l,2),n!==null&&(th(l,n,e,t),ha(n,2),Je(n));break}}e=e.return}}function qc(t,e,l){var n=t.pingCache;if(n===null){n=t.pingCache=new wg;var a=new Set;n.set(e,a)}else a=n.get(e),a===void 0&&(a=new Set,n.set(e,a));a.has(l)||(wc=!0,a.add(l),t=Bg.bind(null,t,e,l),e.then(t,t))}function Bg(t,e,l){var n=t.pingCache;n!==null&&n.delete(e),t.pingedLanes|=t.suspendedLanes&l,t.warmLanes&=~l,mt===t&&(I&l)===l&&(At===4||At===3&&(I&62914560)===I&&300>he()-au?(it&2)===0&&Wn(t,0):Rc|=l,Jn===I&&(Jn=0)),Je(t)}function Ph(t,e){e===0&&(e=Kf()),t=en(t,e),t!==null&&(ha(t,e),Je(t))}function Lg(t){var e=t.memoizedState,l=0;e!==null&&(l=e.retryLane),Ph(t,l)}function Yg(t,e){var l=0;switch(t.tag){case 31:case 13:var n=t.stateNode,a=t.memoizedState;a!==null&&(l=a.retryLane);break;case 19:n=t.stateNode;break;case 22:n=t.stateNode._retryCache;break;default:throw Error(c(314))}n!==null&&n.delete(e),Ph(t,l)}function qg(t,e){return Iu(t,e)}var ru=null,Fn=null,jc=!1,hu=!1,Xc=!1,Ll=0;function Je(t){t!==Fn&&t.next===null&&(Fn===null?ru=Fn=t:Fn=Fn.next=t),hu=!0,jc||(jc=!0,Xg())}function Ka(t,e){if(!Xc&&hu){Xc=!0;do for(var l=!1,n=ru;n!==null;){if(t!==0){var a=n.pendingLanes;if(a===0)var i=0;else{var o=n.suspendedLanes,h=n.pingedLanes;i=(1<<31-me(42|t)+1)-1,i&=a&~(o&~h),i=i&201326741?i&201326741|1:i?i|2:0}i!==0&&(l=!0,nd(n,i))}else i=I,i=gi(n,n===mt?i:0,n.cancelPendingCommit!==null||n.timeoutHandle!==-1),(i&3)===0||ra(n,i)||(l=!0,nd(n,i));n=n.next}while(l);Xc=!1}}function jg(){td()}function td(){hu=jc=!1;var t=0;Ll!==0&&Fg()&&(t=Ll);for(var e=he(),l=null,n=ru;n!==null;){var a=n.next,i=ed(n,e);i===0?(n.next=null,l===null?ru=a:l.next=a,a===null&&(Fn=l)):(l=n,(t!==0||(i&3)!==0)&&(hu=!0)),n=a}Ht!==0&&Ht!==5||Ka(t),Ll!==0&&(Ll=0)}function ed(t,e){for(var l=t.suspendedLanes,n=t.pingedLanes,a=t.expirationTimes,i=t.pendingLanes&-62914561;0<i;){var o=31-me(i),h=1<<o,m=a[o];m===-1?((h&l)===0||(h&n)!==0)&&(a[o]=dy(h,e)):m<=e&&(t.expiredLanes|=h),i&=~h}if(e=mt,l=I,l=gi(t,t===e?l:0,t.cancelPendingCommit!==null||t.timeoutHandle!==-1),n=t.callbackNode,l===0||t===e&&(st===2||st===9)||t.cancelPendingCommit!==null)return n!==null&&n!==null&&Pu(n),t.callbackNode=null,t.callbackPriority=0;if((l&3)===0||ra(t,l)){if(e=l&-l,e===t.callbackPriority)return e;switch(n!==null&&Pu(n),ls(l)){case 2:case 8:l=Zf;break;case 32:l=hi;break;case 268435456:l=Vf;break;default:l=hi}return n=ld.bind(null,t),l=Iu(l,n),t.callbackPriority=e,t.callbackNode=l,e}return n!==null&&n!==null&&Pu(n),t.callbackPriority=2,t.callbackNode=null,2}function ld(t,e){if(Ht!==0&&Ht!==5)return t.callbackNode=null,t.callbackPriority=0,null;var l=t.callbackNode;if(ou()&&t.callbackNode!==l)return null;var n=I;return n=gi(t,t===mt?n:0,t.cancelPendingCommit!==null||t.timeoutHandle!==-1),n===0?null:(Lh(t,n,e),ed(t,he()),t.callbackNode!=null&&t.callbackNode===l?ld.bind(null,t):null)}function nd(t,e){if(ou())return null;Lh(t,e,!0)}function Xg(){Pg(function(){(it&6)!==0?Iu(Qf,jg):td()})}function Gc(){if(Ll===0){var t=Bn;t===0&&(t=di,di<<=1,(di&261888)===0&&(di=256)),Ll=t}return Ll}function ad(t){return t==null||typeof t=="symbol"||typeof t=="boolean"?null:typeof t=="function"?t:bi(""+t)}function id(t,e){var l=e.ownerDocument.createElement("input");return l.name=e.name,l.value=e.value,t.id&&l.setAttribute("form",t.id),e.parentNode.insertBefore(l,e),t=new FormData(t),l.parentNode.removeChild(l),t}function Gg(t,e,l,n,a){if(e==="submit"&&l&&l.stateNode===a){var i=ad((a[ae]||null).action),o=n.submitter;o&&(e=(e=o[ae]||null)?ad(e.formAction):o.getAttribute("formAction"),e!==null&&(i=e,o=null));var h=new Ai("action","action",null,n,a);t.push({event:h,listeners:[{instance:null,listener:function(){if(n.defaultPrevented){if(Ll!==0){var m=o?id(a,o):new FormData(a);cc(l,{pending:!0,data:m,method:a.method,action:i},null,m)}}else typeof i=="function"&&(h.preventDefault(),m=o?id(a,o):new FormData(a),cc(l,{pending:!0,data:m,method:a.method,action:i},i,m))},currentTarget:a}]})}}for(var Qc=0;Qc<Ms.length;Qc++){var Zc=Ms[Qc],Qg=Zc.toLowerCase(),Zg=Zc[0].toUpperCase()+Zc.slice(1);Be(Qg,"on"+Zg)}Be(Bo,"onAnimationEnd"),Be(Lo,"onAnimationIteration"),Be(Yo,"onAnimationStart"),Be("dblclick","onDoubleClick"),Be("focusin","onFocus"),Be("focusout","onBlur"),Be(ug,"onTransitionRun"),Be(sg,"onTransitionStart"),Be(cg,"onTransitionCancel"),Be(qo,"onTransitionEnd"),Tn("onMouseEnter",["mouseout","mouseover"]),Tn("onMouseLeave",["mouseout","mouseover"]),Tn("onPointerEnter",["pointerout","pointerover"]),Tn("onPointerLeave",["pointerout","pointerover"]),Fl("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),Fl("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),Fl("onBeforeInput",["compositionend","keypress","textInput","paste"]),Fl("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),Fl("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),Fl("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Ja="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(" "),Vg=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(Ja));function ud(t,e){e=(e&4)!==0;for(var l=0;l<t.length;l++){var n=t[l],a=n.event;n=n.listeners;t:{var i=void 0;if(e)for(var o=n.length-1;0<=o;o--){var h=n[o],m=h.instance,_=h.currentTarget;if(h=h.listener,m!==i&&a.isPropagationStopped())break t;i=h,a.currentTarget=_;try{i(a)}catch(O){zi(O)}a.currentTarget=null,i=m}else for(o=0;o<n.length;o++){if(h=n[o],m=h.instance,_=h.currentTarget,h=h.listener,m!==i&&a.isPropagationStopped())break t;i=h,a.currentTarget=_;try{i(a)}catch(O){zi(O)}a.currentTarget=null,i=m}}}}function F(t,e){var l=e[ns];l===void 0&&(l=e[ns]=new Set);var n=t+"__bubble";l.has(n)||(sd(e,t,2,!1),l.add(n))}function Vc(t,e,l){var n=0;e&&(n|=4),sd(l,t,n,e)}var du="_reactListening"+Math.random().toString(36).slice(2);function Kc(t){if(!t[du]){t[du]=!0,Pf.forEach(function(l){l!=="selectionchange"&&(Vg.has(l)||Vc(l,!1,t),Vc(l,!0,t))});var e=t.nodeType===9?t:t.ownerDocument;e===null||e[du]||(e[du]=!0,Vc("selectionchange",!1,e))}}function sd(t,e,l,n){switch(Bd(e)){case 2:var a=Sp;break;case 8:a=bp;break;default:a=cf}l=a.bind(null,e,l,t),a=void 0,!hs||e!=="touchstart"&&e!=="touchmove"&&e!=="wheel"||(a=!0),n?a!==void 0?t.addEventListener(e,l,{capture:!0,passive:a}):t.addEventListener(e,l,!0):a!==void 0?t.addEventListener(e,l,{passive:a}):t.addEventListener(e,l,!1)}function Jc(t,e,l,n,a){var i=n;if((e&1)===0&&(e&2)===0&&n!==null)t:for(;;){if(n===null)return;var o=n.tag;if(o===3||o===4){var h=n.stateNode.containerInfo;if(h===a)break;if(o===4)for(o=n.return;o!==null;){var m=o.tag;if((m===3||m===4)&&o.stateNode.containerInfo===a)return;o=o.return}for(;h!==null;){if(o=Sn(h),o===null)return;if(m=o.tag,m===5||m===6||m===26||m===27){n=i=o;continue t}h=h.parentNode}}n=n.return}ro(function(){var _=i,O=os(l),D=[];t:{var A=jo.get(t);if(A!==void 0){var M=Ai,H=t;switch(t){case"keypress":if(Ti(l)===0)break t;case"keydown":case"keyup":M=Yy;break;case"focusin":H="focus",M=gs;break;case"focusout":H="blur",M=gs;break;case"beforeblur":case"afterblur":M=gs;break;case"click":if(l.button===2)break t;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":M=yo;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":M=Oy;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":M=Xy;break;case Bo:case Lo:case Yo:M=Cy;break;case qo:M=Qy;break;case"scroll":case"scrollend":M=Ay;break;case"wheel":M=Vy;break;case"copy":case"cut":case"paste":M=wy;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":M=po;break;case"toggle":case"beforetoggle":M=Jy}var X=(e&4)!==0,ht=!X&&(t==="scroll"||t==="scrollend"),b=X?A!==null?A+"Capture":null:A;X=[];for(var g=_,T;g!==null;){var C=g;if(T=C.stateNode,C=C.tag,C!==5&&C!==26&&C!==27||T===null||b===null||(C=ya(g,b),C!=null&&X.push(ka(g,C,T))),ht)break;g=g.return}0<X.length&&(A=new M(A,H,null,l,O),D.push({event:A,listeners:X}))}}if((e&7)===0){t:{if(A=t==="mouseover"||t==="pointerover",M=t==="mouseout"||t==="pointerout",A&&l!==fs&&(H=l.relatedTarget||l.fromElement)&&(Sn(H)||H[vn]))break t;if((M||A)&&(A=O.window===O?O:(A=O.ownerDocument)?A.defaultView||A.parentWindow:window,M?(H=l.relatedTarget||l.toElement,M=_,H=H?Sn(H):null,H!==null&&(ht=d(H),X=H.tag,H!==ht||X!==5&&X!==27&&X!==6)&&(H=null)):(M=null,H=_),M!==H)){if(X=yo,C="onMouseLeave",b="onMouseEnter",g="mouse",(t==="pointerout"||t==="pointerover")&&(X=po,C="onPointerLeave",b="onPointerEnter",g="pointer"),ht=M==null?A:ma(M),T=H==null?A:ma(H),A=new X(C,g+"leave",M,l,O),A.target=ht,A.relatedTarget=T,C=null,Sn(O)===_&&(X=new X(b,g+"enter",H,l,O),X.target=T,X.relatedTarget=ht,C=X),ht=C,M&&H)e:{for(X=Kg,b=M,g=H,T=0,C=b;C;C=X(C))T++;C=0;for(var q=g;q;q=X(q))C++;for(;0<T-C;)b=X(b),T--;for(;0<C-T;)g=X(g),C--;for(;T--;){if(b===g||g!==null&&b===g.alternate){X=b;break e}b=X(b),g=X(g)}X=null}else X=null;M!==null&&cd(D,A,M,X,!1),H!==null&&ht!==null&&cd(D,ht,H,X,!0)}}t:{if(A=_?ma(_):window,M=A.nodeName&&A.nodeName.toLowerCase(),M==="select"||M==="input"&&A.type==="file")var lt=Mo;else if(_o(A))if(Oo)lt=ng;else{lt=eg;var Y=tg}else M=A.nodeName,!M||M.toLowerCase()!=="input"||A.type!=="checkbox"&&A.type!=="radio"?_&&cs(_.elementType)&&(lt=Mo):lt=lg;if(lt&&(lt=lt(t,_))){Ao(D,lt,l,O);break t}Y&&Y(t,A,_),t==="focusout"&&_&&A.type==="number"&&_.memoizedProps.value!=null&&ss(A,"number",A.value)}switch(Y=_?ma(_):window,t){case"focusin":(_o(Y)||Y.contentEditable==="true")&&(xn=Y,Ts=_,_a=null);break;case"focusout":_a=Ts=xn=null;break;case"mousedown":_s=!0;break;case"contextmenu":case"mouseup":case"dragend":_s=!1,No(D,l,O);break;case"selectionchange":if(ig)break;case"keydown":case"keyup":No(D,l,O)}var J;if(vs)t:{switch(t){case"compositionstart":var P="onCompositionStart";break t;case"compositionend":P="onCompositionEnd";break t;case"compositionupdate":P="onCompositionUpdate";break t}P=void 0}else zn?Eo(t,l)&&(P="onCompositionEnd"):t==="keydown"&&l.keyCode===229&&(P="onCompositionStart");P&&(vo&&l.locale!=="ko"&&(zn||P!=="onCompositionStart"?P==="onCompositionEnd"&&zn&&(J=ho()):(El=O,ds="value"in El?El.value:El.textContent,zn=!0)),Y=mu(_,P),0<Y.length&&(P=new go(P,t,null,l,O),D.push({event:P,listeners:Y}),J?P.data=J:(J=To(l),J!==null&&(P.data=J)))),(J=Wy?$y(t,l):Fy(t,l))&&(P=mu(_,"onBeforeInput"),0<P.length&&(Y=new go("onBeforeInput","beforeinput",null,l,O),D.push({event:Y,listeners:P}),Y.data=J)),Gg(D,t,_,l,O)}ud(D,e)})}function ka(t,e,l){return{instance:t,listener:e,currentTarget:l}}function mu(t,e){for(var l=e+"Capture",n=[];t!==null;){var a=t,i=a.stateNode;if(a=a.tag,a!==5&&a!==26&&a!==27||i===null||(a=ya(t,l),a!=null&&n.unshift(ka(t,a,i)),a=ya(t,e),a!=null&&n.push(ka(t,a,i))),t.tag===3)return n;t=t.return}return[]}function Kg(t){if(t===null)return null;do t=t.return;while(t&&t.tag!==5&&t.tag!==27);return t||null}function cd(t,e,l,n,a){for(var i=e._reactName,o=[];l!==null&&l!==n;){var h=l,m=h.alternate,_=h.stateNode;if(h=h.tag,m!==null&&m===n)break;h!==5&&h!==26&&h!==27||_===null||(m=_,a?(_=ya(l,i),_!=null&&o.unshift(ka(l,_,m))):a||(_=ya(l,i),_!=null&&o.push(ka(l,_,m)))),l=l.return}o.length!==0&&t.push({event:e,listeners:o})}var Jg=/\r\n?/g,kg=/\u0000|\uFFFD/g;function fd(t){return(typeof t=="string"?t:""+t).replace(Jg,`
|
|
49
|
-
`).replace(kg,"")}function od(t,e){return e=fd(e),fd(t)===e}function rt(t,e,l,n,a,i){switch(l){case"children":typeof n=="string"?e==="body"||e==="textarea"&&n===""||An(t,n):(typeof n=="number"||typeof n=="bigint")&&e!=="body"&&An(t,""+n);break;case"className":vi(t,"class",n);break;case"tabIndex":vi(t,"tabindex",n);break;case"dir":case"role":case"viewBox":case"width":case"height":vi(t,l,n);break;case"style":fo(t,n,i);break;case"data":if(e!=="object"){vi(t,"data",n);break}case"src":case"href":if(n===""&&(e!=="a"||l!=="href")){t.removeAttribute(l);break}if(n==null||typeof n=="function"||typeof n=="symbol"||typeof n=="boolean"){t.removeAttribute(l);break}n=bi(""+n),t.setAttribute(l,n);break;case"action":case"formAction":if(typeof n=="function"){t.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 i=="function"&&(l==="formAction"?(e!=="input"&&rt(t,e,"name",a.name,a,null),rt(t,e,"formEncType",a.formEncType,a,null),rt(t,e,"formMethod",a.formMethod,a,null),rt(t,e,"formTarget",a.formTarget,a,null)):(rt(t,e,"encType",a.encType,a,null),rt(t,e,"method",a.method,a,null),rt(t,e,"target",a.target,a,null)));if(n==null||typeof n=="symbol"||typeof n=="boolean"){t.removeAttribute(l);break}n=bi(""+n),t.setAttribute(l,n);break;case"onClick":n!=null&&(t.onclick=tl);break;case"onScroll":n!=null&&F("scroll",t);break;case"onScrollEnd":n!=null&&F("scrollend",t);break;case"dangerouslySetInnerHTML":if(n!=null){if(typeof n!="object"||!("__html"in n))throw Error(c(61));if(l=n.__html,l!=null){if(a.children!=null)throw Error(c(60));t.innerHTML=l}}break;case"multiple":t.multiple=n&&typeof n!="function"&&typeof n!="symbol";break;case"muted":t.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"){t.removeAttribute("xlink:href");break}l=bi(""+n),t.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"?t.setAttribute(l,""+n):t.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"?t.setAttribute(l,""):t.removeAttribute(l);break;case"capture":case"download":n===!0?t.setAttribute(l,""):n!==!1&&n!=null&&typeof n!="function"&&typeof n!="symbol"?t.setAttribute(l,n):t.removeAttribute(l);break;case"cols":case"rows":case"size":case"span":n!=null&&typeof n!="function"&&typeof n!="symbol"&&!isNaN(n)&&1<=n?t.setAttribute(l,n):t.removeAttribute(l);break;case"rowSpan":case"start":n==null||typeof n=="function"||typeof n=="symbol"||isNaN(n)?t.removeAttribute(l):t.setAttribute(l,n);break;case"popover":F("beforetoggle",t),F("toggle",t),pi(t,"popover",n);break;case"xlinkActuate":Pe(t,"http://www.w3.org/1999/xlink","xlink:actuate",n);break;case"xlinkArcrole":Pe(t,"http://www.w3.org/1999/xlink","xlink:arcrole",n);break;case"xlinkRole":Pe(t,"http://www.w3.org/1999/xlink","xlink:role",n);break;case"xlinkShow":Pe(t,"http://www.w3.org/1999/xlink","xlink:show",n);break;case"xlinkTitle":Pe(t,"http://www.w3.org/1999/xlink","xlink:title",n);break;case"xlinkType":Pe(t,"http://www.w3.org/1999/xlink","xlink:type",n);break;case"xmlBase":Pe(t,"http://www.w3.org/XML/1998/namespace","xml:base",n);break;case"xmlLang":Pe(t,"http://www.w3.org/XML/1998/namespace","xml:lang",n);break;case"xmlSpace":Pe(t,"http://www.w3.org/XML/1998/namespace","xml:space",n);break;case"is":pi(t,"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=Ty.get(l)||l,pi(t,l,n))}}function kc(t,e,l,n,a,i){switch(l){case"style":fo(t,n,i);break;case"dangerouslySetInnerHTML":if(n!=null){if(typeof n!="object"||!("__html"in n))throw Error(c(61));if(l=n.__html,l!=null){if(a.children!=null)throw Error(c(60));t.innerHTML=l}}break;case"children":typeof n=="string"?An(t,n):(typeof n=="number"||typeof n=="bigint")&&An(t,""+n);break;case"onScroll":n!=null&&F("scroll",t);break;case"onScrollEnd":n!=null&&F("scrollend",t);break;case"onClick":n!=null&&(t.onclick=tl);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!to.hasOwnProperty(l))t:{if(l[0]==="o"&&l[1]==="n"&&(a=l.endsWith("Capture"),e=l.slice(2,a?l.length-7:void 0),i=t[ae]||null,i=i!=null?i[l]:null,typeof i=="function"&&t.removeEventListener(e,i,a),typeof n=="function")){typeof i!="function"&&i!==null&&(l in t?t[l]=null:t.hasAttribute(l)&&t.removeAttribute(l)),t.addEventListener(e,n,a);break t}l in t?t[l]=n:n===!0?t.setAttribute(l,""):pi(t,l,n)}}}function Kt(t,e,l){switch(e){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":F("error",t),F("load",t);var n=!1,a=!1,i;for(i in l)if(l.hasOwnProperty(i)){var o=l[i];if(o!=null)switch(i){case"src":n=!0;break;case"srcSet":a=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(c(137,e));default:rt(t,e,i,o,l,null)}}a&&rt(t,e,"srcSet",l.srcSet,l,null),n&&rt(t,e,"src",l.src,l,null);return;case"input":F("invalid",t);var h=i=o=a=null,m=null,_=null;for(n in l)if(l.hasOwnProperty(n)){var O=l[n];if(O!=null)switch(n){case"name":a=O;break;case"type":o=O;break;case"checked":m=O;break;case"defaultChecked":_=O;break;case"value":i=O;break;case"defaultValue":h=O;break;case"children":case"dangerouslySetInnerHTML":if(O!=null)throw Error(c(137,e));break;default:rt(t,e,n,O,l,null)}}io(t,i,h,m,_,o,a,!1);return;case"select":F("invalid",t),n=o=i=null;for(a in l)if(l.hasOwnProperty(a)&&(h=l[a],h!=null))switch(a){case"value":i=h;break;case"defaultValue":o=h;break;case"multiple":n=h;default:rt(t,e,a,h,l,null)}e=i,l=o,t.multiple=!!n,e!=null?_n(t,!!n,e,!1):l!=null&&_n(t,!!n,l,!0);return;case"textarea":F("invalid",t),i=a=n=null;for(o in l)if(l.hasOwnProperty(o)&&(h=l[o],h!=null))switch(o){case"value":n=h;break;case"defaultValue":a=h;break;case"children":i=h;break;case"dangerouslySetInnerHTML":if(h!=null)throw Error(c(91));break;default:rt(t,e,o,h,l,null)}so(t,n,a,i);return;case"option":for(m in l)if(l.hasOwnProperty(m)&&(n=l[m],n!=null))switch(m){case"selected":t.selected=n&&typeof n!="function"&&typeof n!="symbol";break;default:rt(t,e,m,n,l,null)}return;case"dialog":F("beforetoggle",t),F("toggle",t),F("cancel",t),F("close",t);break;case"iframe":case"object":F("load",t);break;case"video":case"audio":for(n=0;n<Ja.length;n++)F(Ja[n],t);break;case"image":F("error",t),F("load",t);break;case"details":F("toggle",t);break;case"embed":case"source":case"link":F("error",t),F("load",t);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(_ in l)if(l.hasOwnProperty(_)&&(n=l[_],n!=null))switch(_){case"children":case"dangerouslySetInnerHTML":throw Error(c(137,e));default:rt(t,e,_,n,l,null)}return;default:if(cs(e)){for(O in l)l.hasOwnProperty(O)&&(n=l[O],n!==void 0&&kc(t,e,O,n,l,void 0));return}}for(h in l)l.hasOwnProperty(h)&&(n=l[h],n!=null&&rt(t,e,h,n,l,null))}function Wg(t,e,l,n){switch(e){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var a=null,i=null,o=null,h=null,m=null,_=null,O=null;for(M in l){var D=l[M];if(l.hasOwnProperty(M)&&D!=null)switch(M){case"checked":break;case"value":break;case"defaultValue":m=D;default:n.hasOwnProperty(M)||rt(t,e,M,null,n,D)}}for(var A in n){var M=n[A];if(D=l[A],n.hasOwnProperty(A)&&(M!=null||D!=null))switch(A){case"type":i=M;break;case"name":a=M;break;case"checked":_=M;break;case"defaultChecked":O=M;break;case"value":o=M;break;case"defaultValue":h=M;break;case"children":case"dangerouslySetInnerHTML":if(M!=null)throw Error(c(137,e));break;default:M!==D&&rt(t,e,A,M,n,D)}}us(t,o,h,m,_,O,i,a);return;case"select":M=o=h=A=null;for(i in l)if(m=l[i],l.hasOwnProperty(i)&&m!=null)switch(i){case"value":break;case"multiple":M=m;default:n.hasOwnProperty(i)||rt(t,e,i,null,n,m)}for(a in n)if(i=n[a],m=l[a],n.hasOwnProperty(a)&&(i!=null||m!=null))switch(a){case"value":A=i;break;case"defaultValue":h=i;break;case"multiple":o=i;default:i!==m&&rt(t,e,a,i,n,m)}e=h,l=o,n=M,A!=null?_n(t,!!l,A,!1):!!n!=!!l&&(e!=null?_n(t,!!l,e,!0):_n(t,!!l,l?[]:"",!1));return;case"textarea":M=A=null;for(h in l)if(a=l[h],l.hasOwnProperty(h)&&a!=null&&!n.hasOwnProperty(h))switch(h){case"value":break;case"children":break;default:rt(t,e,h,null,n,a)}for(o in n)if(a=n[o],i=l[o],n.hasOwnProperty(o)&&(a!=null||i!=null))switch(o){case"value":A=a;break;case"defaultValue":M=a;break;case"children":break;case"dangerouslySetInnerHTML":if(a!=null)throw Error(c(91));break;default:a!==i&&rt(t,e,o,a,n,i)}uo(t,A,M);return;case"option":for(var H in l)if(A=l[H],l.hasOwnProperty(H)&&A!=null&&!n.hasOwnProperty(H))switch(H){case"selected":t.selected=!1;break;default:rt(t,e,H,null,n,A)}for(m in n)if(A=n[m],M=l[m],n.hasOwnProperty(m)&&A!==M&&(A!=null||M!=null))switch(m){case"selected":t.selected=A&&typeof A!="function"&&typeof A!="symbol";break;default:rt(t,e,m,A,n,M)}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 X in l)A=l[X],l.hasOwnProperty(X)&&A!=null&&!n.hasOwnProperty(X)&&rt(t,e,X,null,n,A);for(_ in n)if(A=n[_],M=l[_],n.hasOwnProperty(_)&&A!==M&&(A!=null||M!=null))switch(_){case"children":case"dangerouslySetInnerHTML":if(A!=null)throw Error(c(137,e));break;default:rt(t,e,_,A,n,M)}return;default:if(cs(e)){for(var ht in l)A=l[ht],l.hasOwnProperty(ht)&&A!==void 0&&!n.hasOwnProperty(ht)&&kc(t,e,ht,void 0,n,A);for(O in n)A=n[O],M=l[O],!n.hasOwnProperty(O)||A===M||A===void 0&&M===void 0||kc(t,e,O,A,n,M);return}}for(var b in l)A=l[b],l.hasOwnProperty(b)&&A!=null&&!n.hasOwnProperty(b)&&rt(t,e,b,null,n,A);for(D in n)A=n[D],M=l[D],!n.hasOwnProperty(D)||A===M||A==null&&M==null||rt(t,e,D,A,n,M)}function rd(t){switch(t){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function $g(){if(typeof performance.getEntriesByType=="function"){for(var t=0,e=0,l=performance.getEntriesByType("resource"),n=0;n<l.length;n++){var a=l[n],i=a.transferSize,o=a.initiatorType,h=a.duration;if(i&&h&&rd(o)){for(o=0,h=a.responseEnd,n+=1;n<l.length;n++){var m=l[n],_=m.startTime;if(_>h)break;var O=m.transferSize,D=m.initiatorType;O&&rd(D)&&(m=m.responseEnd,o+=O*(m<h?1:(h-_)/(m-_)))}if(--n,e+=8*(i+o)/(a.duration/1e3),t++,10<t)break}}if(0<t)return e/t/1e6}return navigator.connection&&(t=navigator.connection.downlink,typeof t=="number")?t:5}var Wc=null,$c=null;function yu(t){return t.nodeType===9?t:t.ownerDocument}function hd(t){switch(t){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function dd(t,e){if(t===0)switch(e){case"svg":return 1;case"math":return 2;default:return 0}return t===1&&e==="foreignObject"?0:t}function Fc(t,e){return t==="textarea"||t==="noscript"||typeof e.children=="string"||typeof e.children=="number"||typeof e.children=="bigint"||typeof e.dangerouslySetInnerHTML=="object"&&e.dangerouslySetInnerHTML!==null&&e.dangerouslySetInnerHTML.__html!=null}var Ic=null;function Fg(){var t=window.event;return t&&t.type==="popstate"?t===Ic?!1:(Ic=t,!0):(Ic=null,!1)}var md=typeof setTimeout=="function"?setTimeout:void 0,Ig=typeof clearTimeout=="function"?clearTimeout:void 0,yd=typeof Promise=="function"?Promise:void 0,Pg=typeof queueMicrotask=="function"?queueMicrotask:typeof yd<"u"?function(t){return yd.resolve(null).then(t).catch(tp)}:md;function tp(t){setTimeout(function(){throw t})}function Yl(t){return t==="head"}function gd(t,e){var l=e,n=0;do{var a=l.nextSibling;if(t.removeChild(l),a&&a.nodeType===8)if(l=a.data,l==="/$"||l==="/&"){if(n===0){t.removeChild(a),ea(e);return}n--}else if(l==="$"||l==="$?"||l==="$~"||l==="$!"||l==="&")n++;else if(l==="html")Wa(t.ownerDocument.documentElement);else if(l==="head"){l=t.ownerDocument.head,Wa(l);for(var i=l.firstChild;i;){var o=i.nextSibling,h=i.nodeName;i[da]||h==="SCRIPT"||h==="STYLE"||h==="LINK"&&i.rel.toLowerCase()==="stylesheet"||l.removeChild(i),i=o}}else l==="body"&&Wa(t.ownerDocument.body);l=a}while(l);ea(e)}function pd(t,e){var l=t;t=0;do{var n=l.nextSibling;if(l.nodeType===1?e?(l._stashedDisplay=l.style.display,l.style.display="none"):(l.style.display=l._stashedDisplay||"",l.getAttribute("style")===""&&l.removeAttribute("style")):l.nodeType===3&&(e?(l._stashedText=l.nodeValue,l.nodeValue=""):l.nodeValue=l._stashedText||""),n&&n.nodeType===8)if(l=n.data,l==="/$"){if(t===0)break;t--}else l!=="$"&&l!=="$?"&&l!=="$~"&&l!=="$!"||t++;l=n}while(l)}function Pc(t){var e=t.firstChild;for(e&&e.nodeType===10&&(e=e.nextSibling);e;){var l=e;switch(e=e.nextSibling,l.nodeName){case"HTML":case"HEAD":case"BODY":Pc(l),as(l);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(l.rel.toLowerCase()==="stylesheet")continue}t.removeChild(l)}}function ep(t,e,l,n){for(;t.nodeType===1;){var a=l;if(t.nodeName.toLowerCase()!==e.toLowerCase()){if(!n&&(t.nodeName!=="INPUT"||t.type!=="hidden"))break}else if(n){if(!t[da])switch(e){case"meta":if(!t.hasAttribute("itemprop"))break;return t;case"link":if(i=t.getAttribute("rel"),i==="stylesheet"&&t.hasAttribute("data-precedence"))break;if(i!==a.rel||t.getAttribute("href")!==(a.href==null||a.href===""?null:a.href)||t.getAttribute("crossorigin")!==(a.crossOrigin==null?null:a.crossOrigin)||t.getAttribute("title")!==(a.title==null?null:a.title))break;return t;case"style":if(t.hasAttribute("data-precedence"))break;return t;case"script":if(i=t.getAttribute("src"),(i!==(a.src==null?null:a.src)||t.getAttribute("type")!==(a.type==null?null:a.type)||t.getAttribute("crossorigin")!==(a.crossOrigin==null?null:a.crossOrigin))&&i&&t.hasAttribute("async")&&!t.hasAttribute("itemprop"))break;return t;default:return t}}else if(e==="input"&&t.type==="hidden"){var i=a.name==null?null:""+a.name;if(a.type==="hidden"&&t.getAttribute("name")===i)return t}else return t;if(t=we(t.nextSibling),t===null)break}return null}function lp(t,e,l){if(e==="")return null;for(;t.nodeType!==3;)if((t.nodeType!==1||t.nodeName!=="INPUT"||t.type!=="hidden")&&!l||(t=we(t.nextSibling),t===null))return null;return t}function vd(t,e){for(;t.nodeType!==8;)if((t.nodeType!==1||t.nodeName!=="INPUT"||t.type!=="hidden")&&!e||(t=we(t.nextSibling),t===null))return null;return t}function tf(t){return t.data==="$?"||t.data==="$~"}function ef(t){return t.data==="$!"||t.data==="$?"&&t.ownerDocument.readyState!=="loading"}function np(t,e){var l=t.ownerDocument;if(t.data==="$~")t._reactRetry=e;else if(t.data!=="$?"||l.readyState!=="loading")e();else{var n=function(){e(),l.removeEventListener("DOMContentLoaded",n)};l.addEventListener("DOMContentLoaded",n),t._reactRetry=n}}function we(t){for(;t!=null;t=t.nextSibling){var e=t.nodeType;if(e===1||e===3)break;if(e===8){if(e=t.data,e==="$"||e==="$!"||e==="$?"||e==="$~"||e==="&"||e==="F!"||e==="F")break;if(e==="/$"||e==="/&")return null}}return t}var lf=null;function Sd(t){t=t.nextSibling;for(var e=0;t;){if(t.nodeType===8){var l=t.data;if(l==="/$"||l==="/&"){if(e===0)return we(t.nextSibling);e--}else l!=="$"&&l!=="$!"&&l!=="$?"&&l!=="$~"&&l!=="&"||e++}t=t.nextSibling}return null}function bd(t){t=t.previousSibling;for(var e=0;t;){if(t.nodeType===8){var l=t.data;if(l==="$"||l==="$!"||l==="$?"||l==="$~"||l==="&"){if(e===0)return t;e--}else l!=="/$"&&l!=="/&"||e++}t=t.previousSibling}return null}function Ed(t,e,l){switch(e=yu(l),t){case"html":if(t=e.documentElement,!t)throw Error(c(452));return t;case"head":if(t=e.head,!t)throw Error(c(453));return t;case"body":if(t=e.body,!t)throw Error(c(454));return t;default:throw Error(c(451))}}function Wa(t){for(var e=t.attributes;e.length;)t.removeAttributeNode(e[0]);as(t)}var Re=new Map,Td=new Set;function gu(t){return typeof t.getRootNode=="function"?t.getRootNode():t.nodeType===9?t:t.ownerDocument}var gl=R.d;R.d={f:ap,r:ip,D:up,C:sp,L:cp,m:fp,X:rp,S:op,M:hp};function ap(){var t=gl.f(),e=su();return t||e}function ip(t){var e=bn(t);e!==null&&e.tag===5&&e.type==="form"?qr(e):gl.r(t)}var In=typeof document>"u"?null:document;function _d(t,e,l){var n=In;if(n&&typeof e=="string"&&e){var a=Ae(e);a='link[rel="'+t+'"][href="'+a+'"]',typeof l=="string"&&(a+='[crossorigin="'+l+'"]'),Td.has(a)||(Td.add(a),t={rel:t,crossOrigin:l,href:e},n.querySelector(a)===null&&(e=n.createElement("link"),Kt(e,"link",t),qt(e),n.head.appendChild(e)))}}function up(t){gl.D(t),_d("dns-prefetch",t,null)}function sp(t,e){gl.C(t,e),_d("preconnect",t,e)}function cp(t,e,l){gl.L(t,e,l);var n=In;if(n&&t&&e){var a='link[rel="preload"][as="'+Ae(e)+'"]';e==="image"&&l&&l.imageSrcSet?(a+='[imagesrcset="'+Ae(l.imageSrcSet)+'"]',typeof l.imageSizes=="string"&&(a+='[imagesizes="'+Ae(l.imageSizes)+'"]')):a+='[href="'+Ae(t)+'"]';var i=a;switch(e){case"style":i=Pn(t);break;case"script":i=ta(t)}Re.has(i)||(t=B({rel:"preload",href:e==="image"&&l&&l.imageSrcSet?void 0:t,as:e},l),Re.set(i,t),n.querySelector(a)!==null||e==="style"&&n.querySelector($a(i))||e==="script"&&n.querySelector(Fa(i))||(e=n.createElement("link"),Kt(e,"link",t),qt(e),n.head.appendChild(e)))}}function fp(t,e){gl.m(t,e);var l=In;if(l&&t){var n=e&&typeof e.as=="string"?e.as:"script",a='link[rel="modulepreload"][as="'+Ae(n)+'"][href="'+Ae(t)+'"]',i=a;switch(n){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":i=ta(t)}if(!Re.has(i)&&(t=B({rel:"modulepreload",href:t},e),Re.set(i,t),l.querySelector(a)===null)){switch(n){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(l.querySelector(Fa(i)))return}n=l.createElement("link"),Kt(n,"link",t),qt(n),l.head.appendChild(n)}}}function op(t,e,l){gl.S(t,e,l);var n=In;if(n&&t){var a=En(n).hoistableStyles,i=Pn(t);e=e||"default";var o=a.get(i);if(!o){var h={loading:0,preload:null};if(o=n.querySelector($a(i)))h.loading=5;else{t=B({rel:"stylesheet",href:t,"data-precedence":e},l),(l=Re.get(i))&&nf(t,l);var m=o=n.createElement("link");qt(m),Kt(m,"link",t),m._p=new Promise(function(_,O){m.onload=_,m.onerror=O}),m.addEventListener("load",function(){h.loading|=1}),m.addEventListener("error",function(){h.loading|=2}),h.loading|=4,pu(o,e,n)}o={type:"stylesheet",instance:o,count:1,state:h},a.set(i,o)}}}function rp(t,e){gl.X(t,e);var l=In;if(l&&t){var n=En(l).hoistableScripts,a=ta(t),i=n.get(a);i||(i=l.querySelector(Fa(a)),i||(t=B({src:t,async:!0},e),(e=Re.get(a))&&af(t,e),i=l.createElement("script"),qt(i),Kt(i,"link",t),l.head.appendChild(i)),i={type:"script",instance:i,count:1,state:null},n.set(a,i))}}function hp(t,e){gl.M(t,e);var l=In;if(l&&t){var n=En(l).hoistableScripts,a=ta(t),i=n.get(a);i||(i=l.querySelector(Fa(a)),i||(t=B({src:t,async:!0,type:"module"},e),(e=Re.get(a))&&af(t,e),i=l.createElement("script"),qt(i),Kt(i,"link",t),l.head.appendChild(i)),i={type:"script",instance:i,count:1,state:null},n.set(a,i))}}function Ad(t,e,l,n){var a=(a=W.current)?gu(a):null;if(!a)throw Error(c(446));switch(t){case"meta":case"title":return null;case"style":return typeof l.precedence=="string"&&typeof l.href=="string"?(e=Pn(l.href),l=En(a).hoistableStyles,n=l.get(e),n||(n={type:"style",instance:null,count:0,state:null},l.set(e,n)),n):{type:"void",instance:null,count:0,state:null};case"link":if(l.rel==="stylesheet"&&typeof l.href=="string"&&typeof l.precedence=="string"){t=Pn(l.href);var i=En(a).hoistableStyles,o=i.get(t);if(o||(a=a.ownerDocument||a,o={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},i.set(t,o),(i=a.querySelector($a(t)))&&!i._p&&(o.instance=i,o.state.loading=5),Re.has(t)||(l={rel:"preload",as:"style",href:l.href,crossOrigin:l.crossOrigin,integrity:l.integrity,media:l.media,hrefLang:l.hrefLang,referrerPolicy:l.referrerPolicy},Re.set(t,l),i||dp(a,t,l,o.state))),e&&n===null)throw Error(c(528,""));return o}if(e&&n!==null)throw Error(c(529,""));return null;case"script":return e=l.async,l=l.src,typeof l=="string"&&e&&typeof e!="function"&&typeof e!="symbol"?(e=ta(l),l=En(a).hoistableScripts,n=l.get(e),n||(n={type:"script",instance:null,count:0,state:null},l.set(e,n)),n):{type:"void",instance:null,count:0,state:null};default:throw Error(c(444,t))}}function Pn(t){return'href="'+Ae(t)+'"'}function $a(t){return'link[rel="stylesheet"]['+t+"]"}function Md(t){return B({},t,{"data-precedence":t.precedence,precedence:null})}function dp(t,e,l,n){t.querySelector('link[rel="preload"][as="style"]['+e+"]")?n.loading=1:(e=t.createElement("link"),n.preload=e,e.addEventListener("load",function(){return n.loading|=1}),e.addEventListener("error",function(){return n.loading|=2}),Kt(e,"link",l),qt(e),t.head.appendChild(e))}function ta(t){return'[src="'+Ae(t)+'"]'}function Fa(t){return"script[async]"+t}function Od(t,e,l){if(e.count++,e.instance===null)switch(e.type){case"style":var n=t.querySelector('style[data-href~="'+Ae(l.href)+'"]');if(n)return e.instance=n,qt(n),n;var a=B({},l,{"data-href":l.href,"data-precedence":l.precedence,href:null,precedence:null});return n=(t.ownerDocument||t).createElement("style"),qt(n),Kt(n,"style",a),pu(n,l.precedence,t),e.instance=n;case"stylesheet":a=Pn(l.href);var i=t.querySelector($a(a));if(i)return e.state.loading|=4,e.instance=i,qt(i),i;n=Md(l),(a=Re.get(a))&&nf(n,a),i=(t.ownerDocument||t).createElement("link"),qt(i);var o=i;return o._p=new Promise(function(h,m){o.onload=h,o.onerror=m}),Kt(i,"link",n),e.state.loading|=4,pu(i,l.precedence,t),e.instance=i;case"script":return i=ta(l.src),(a=t.querySelector(Fa(i)))?(e.instance=a,qt(a),a):(n=l,(a=Re.get(i))&&(n=B({},l),af(n,a)),t=t.ownerDocument||t,a=t.createElement("script"),qt(a),Kt(a,"link",n),t.head.appendChild(a),e.instance=a);case"void":return null;default:throw Error(c(443,e.type))}else e.type==="stylesheet"&&(e.state.loading&4)===0&&(n=e.instance,e.state.loading|=4,pu(n,l.precedence,t));return e.instance}function pu(t,e,l){for(var n=l.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),a=n.length?n[n.length-1]:null,i=a,o=0;o<n.length;o++){var h=n[o];if(h.dataset.precedence===e)i=h;else if(i!==a)break}i?i.parentNode.insertBefore(t,i.nextSibling):(e=l.nodeType===9?l.head:l,e.insertBefore(t,e.firstChild))}function nf(t,e){t.crossOrigin==null&&(t.crossOrigin=e.crossOrigin),t.referrerPolicy==null&&(t.referrerPolicy=e.referrerPolicy),t.title==null&&(t.title=e.title)}function af(t,e){t.crossOrigin==null&&(t.crossOrigin=e.crossOrigin),t.referrerPolicy==null&&(t.referrerPolicy=e.referrerPolicy),t.integrity==null&&(t.integrity=e.integrity)}var vu=null;function zd(t,e,l){if(vu===null){var n=new Map,a=vu=new Map;a.set(l,n)}else a=vu,n=a.get(l),n||(n=new Map,a.set(l,n));if(n.has(t))return n;for(n.set(t,null),l=l.getElementsByTagName(t),a=0;a<l.length;a++){var i=l[a];if(!(i[da]||i[Gt]||t==="link"&&i.getAttribute("rel")==="stylesheet")&&i.namespaceURI!=="http://www.w3.org/2000/svg"){var o=i.getAttribute(e)||"";o=t+o;var h=n.get(o);h?h.push(i):n.set(o,[i])}}return n}function xd(t,e,l){t=t.ownerDocument||t,t.head.insertBefore(l,e==="title"?t.querySelector("head > title"):null)}function mp(t,e,l){if(l===1||e.itemProp!=null)return!1;switch(t){case"meta":case"title":return!0;case"style":if(typeof e.precedence!="string"||typeof e.href!="string"||e.href==="")break;return!0;case"link":if(typeof e.rel!="string"||typeof e.href!="string"||e.href===""||e.onLoad||e.onError)break;switch(e.rel){case"stylesheet":return t=e.disabled,typeof e.precedence=="string"&&t==null;default:return!0}case"script":if(e.async&&typeof e.async!="function"&&typeof e.async!="symbol"&&!e.onLoad&&!e.onError&&e.src&&typeof e.src=="string")return!0}return!1}function Cd(t){return!(t.type==="stylesheet"&&(t.state.loading&3)===0)}function yp(t,e,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 a=Pn(n.href),i=e.querySelector($a(a));if(i){e=i._p,e!==null&&typeof e=="object"&&typeof e.then=="function"&&(t.count++,t=Su.bind(t),e.then(t,t)),l.state.loading|=4,l.instance=i,qt(i);return}i=e.ownerDocument||e,n=Md(n),(a=Re.get(a))&&nf(n,a),i=i.createElement("link"),qt(i);var o=i;o._p=new Promise(function(h,m){o.onload=h,o.onerror=m}),Kt(i,"link",n),l.instance=i}t.stylesheets===null&&(t.stylesheets=new Map),t.stylesheets.set(l,e),(e=l.state.preload)&&(l.state.loading&3)===0&&(t.count++,l=Su.bind(t),e.addEventListener("load",l),e.addEventListener("error",l))}}var uf=0;function gp(t,e){return t.stylesheets&&t.count===0&&Eu(t,t.stylesheets),0<t.count||0<t.imgCount?function(l){var n=setTimeout(function(){if(t.stylesheets&&Eu(t,t.stylesheets),t.unsuspend){var i=t.unsuspend;t.unsuspend=null,i()}},6e4+e);0<t.imgBytes&&uf===0&&(uf=62500*$g());var a=setTimeout(function(){if(t.waitingForImages=!1,t.count===0&&(t.stylesheets&&Eu(t,t.stylesheets),t.unsuspend)){var i=t.unsuspend;t.unsuspend=null,i()}},(t.imgBytes>uf?50:800)+e);return t.unsuspend=l,function(){t.unsuspend=null,clearTimeout(n),clearTimeout(a)}}:null}function Su(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)Eu(this,this.stylesheets);else if(this.unsuspend){var t=this.unsuspend;this.unsuspend=null,t()}}}var bu=null;function Eu(t,e){t.stylesheets=null,t.unsuspend!==null&&(t.count++,bu=new Map,e.forEach(pp,t),bu=null,Su.call(t))}function pp(t,e){if(!(e.state.loading&4)){var l=bu.get(t);if(l)var n=l.get(null);else{l=new Map,bu.set(t,l);for(var a=t.querySelectorAll("link[data-precedence],style[data-precedence]"),i=0;i<a.length;i++){var o=a[i];(o.nodeName==="LINK"||o.getAttribute("media")!=="not all")&&(l.set(o.dataset.precedence,o),n=o)}n&&l.set(null,n)}a=e.instance,o=a.getAttribute("data-precedence"),i=l.get(o)||n,i===n&&l.set(null,a),l.set(o,a),this.count++,n=Su.bind(this),a.addEventListener("load",n),a.addEventListener("error",n),i?i.parentNode.insertBefore(a,i.nextSibling):(t=t.nodeType===9?t.head:t,t.insertBefore(a,t.firstChild)),e.state.loading|=4}}var Ia={$$typeof:Lt,Provider:null,Consumer:null,_currentValue:Q,_currentValue2:Q,_threadCount:0};function vp(t,e,l,n,a,i,o,h,m){this.tag=1,this.containerInfo=t,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=ts(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=ts(0),this.hiddenUpdates=ts(null),this.identifierPrefix=n,this.onUncaughtError=a,this.onCaughtError=i,this.onRecoverableError=o,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=m,this.incompleteTransitions=new Map}function Dd(t,e,l,n,a,i,o,h,m,_,O,D){return t=new vp(t,e,l,o,m,_,O,D,h),e=1,i===!0&&(e|=24),i=ge(3,null,null,e),t.current=i,i.stateNode=t,e=Ys(),e.refCount++,t.pooledCache=e,e.refCount++,i.memoizedState={element:n,isDehydrated:l,cache:e},Gs(i),t}function wd(t){return t?(t=wn,t):wn}function Rd(t,e,l,n,a,i){a=wd(a),n.context===null?n.context=a:n.pendingContext=a,n=zl(e),n.payload={element:l},i=i===void 0?null:i,i!==null&&(n.callback=i),l=xl(t,n,e),l!==null&&(oe(l,t,e),Da(l,t,e))}function Ud(t,e){if(t=t.memoizedState,t!==null&&t.dehydrated!==null){var l=t.retryLane;t.retryLane=l!==0&&l<e?l:e}}function sf(t,e){Ud(t,e),(t=t.alternate)&&Ud(t,e)}function Nd(t){if(t.tag===13||t.tag===31){var e=en(t,67108864);e!==null&&oe(e,t,67108864),sf(t,67108864)}}function Hd(t){if(t.tag===13||t.tag===31){var e=Ee();e=es(e);var l=en(t,e);l!==null&&oe(l,t,e),sf(t,e)}}var Tu=!0;function Sp(t,e,l,n){var a=x.T;x.T=null;var i=R.p;try{R.p=2,cf(t,e,l,n)}finally{R.p=i,x.T=a}}function bp(t,e,l,n){var a=x.T;x.T=null;var i=R.p;try{R.p=8,cf(t,e,l,n)}finally{R.p=i,x.T=a}}function cf(t,e,l,n){if(Tu){var a=ff(n);if(a===null)Jc(t,e,n,_u,l),Ld(t,n);else if(Tp(a,t,e,l,n))n.stopPropagation();else if(Ld(t,n),e&4&&-1<Ep.indexOf(t)){for(;a!==null;){var i=bn(a);if(i!==null)switch(i.tag){case 3:if(i=i.stateNode,i.current.memoizedState.isDehydrated){var o=$l(i.pendingLanes);if(o!==0){var h=i;for(h.pendingLanes|=2,h.entangledLanes|=2;o;){var m=1<<31-me(o);h.entanglements[1]|=m,o&=~m}Je(i),(it&6)===0&&(iu=he()+500,Ka(0))}}break;case 31:case 13:h=en(i,2),h!==null&&oe(h,i,2),su(),sf(i,2)}if(i=ff(n),i===null&&Jc(t,e,n,_u,l),i===a)break;a=i}a!==null&&n.stopPropagation()}else Jc(t,e,n,null,l)}}function ff(t){return t=os(t),of(t)}var _u=null;function of(t){if(_u=null,t=Sn(t),t!==null){var e=d(t);if(e===null)t=null;else{var l=e.tag;if(l===13){if(t=y(e),t!==null)return t;t=null}else if(l===31){if(t=v(e),t!==null)return t;t=null}else if(l===3){if(e.stateNode.current.memoizedState.isDehydrated)return e.tag===3?e.stateNode.containerInfo:null;t=null}else e!==t&&(t=null)}}return _u=t,null}function Bd(t){switch(t){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(uy()){case Qf:return 2;case Zf:return 8;case hi:case sy:return 32;case Vf:return 268435456;default:return 32}default:return 32}}var rf=!1,ql=null,jl=null,Xl=null,Pa=new Map,ti=new Map,Gl=[],Ep="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 Ld(t,e){switch(t){case"focusin":case"focusout":ql=null;break;case"dragenter":case"dragleave":jl=null;break;case"mouseover":case"mouseout":Xl=null;break;case"pointerover":case"pointerout":Pa.delete(e.pointerId);break;case"gotpointercapture":case"lostpointercapture":ti.delete(e.pointerId)}}function ei(t,e,l,n,a,i){return t===null||t.nativeEvent!==i?(t={blockedOn:e,domEventName:l,eventSystemFlags:n,nativeEvent:i,targetContainers:[a]},e!==null&&(e=bn(e),e!==null&&Nd(e)),t):(t.eventSystemFlags|=n,e=t.targetContainers,a!==null&&e.indexOf(a)===-1&&e.push(a),t)}function Tp(t,e,l,n,a){switch(e){case"focusin":return ql=ei(ql,t,e,l,n,a),!0;case"dragenter":return jl=ei(jl,t,e,l,n,a),!0;case"mouseover":return Xl=ei(Xl,t,e,l,n,a),!0;case"pointerover":var i=a.pointerId;return Pa.set(i,ei(Pa.get(i)||null,t,e,l,n,a)),!0;case"gotpointercapture":return i=a.pointerId,ti.set(i,ei(ti.get(i)||null,t,e,l,n,a)),!0}return!1}function Yd(t){var e=Sn(t.target);if(e!==null){var l=d(e);if(l!==null){if(e=l.tag,e===13){if(e=y(l),e!==null){t.blockedOn=e,Ff(t.priority,function(){Hd(l)});return}}else if(e===31){if(e=v(l),e!==null){t.blockedOn=e,Ff(t.priority,function(){Hd(l)});return}}else if(e===3&&l.stateNode.current.memoizedState.isDehydrated){t.blockedOn=l.tag===3?l.stateNode.containerInfo:null;return}}}t.blockedOn=null}function Au(t){if(t.blockedOn!==null)return!1;for(var e=t.targetContainers;0<e.length;){var l=ff(t.nativeEvent);if(l===null){l=t.nativeEvent;var n=new l.constructor(l.type,l);fs=n,l.target.dispatchEvent(n),fs=null}else return e=bn(l),e!==null&&Nd(e),t.blockedOn=l,!1;e.shift()}return!0}function qd(t,e,l){Au(t)&&l.delete(e)}function _p(){rf=!1,ql!==null&&Au(ql)&&(ql=null),jl!==null&&Au(jl)&&(jl=null),Xl!==null&&Au(Xl)&&(Xl=null),Pa.forEach(qd),ti.forEach(qd)}function Mu(t,e){t.blockedOn===e&&(t.blockedOn=null,rf||(rf=!0,f.unstable_scheduleCallback(f.unstable_NormalPriority,_p)))}var Ou=null;function jd(t){Ou!==t&&(Ou=t,f.unstable_scheduleCallback(f.unstable_NormalPriority,function(){Ou===t&&(Ou=null);for(var e=0;e<t.length;e+=3){var l=t[e],n=t[e+1],a=t[e+2];if(typeof n!="function"){if(of(n||l)===null)continue;break}var i=bn(l);i!==null&&(t.splice(e,3),e-=3,cc(i,{pending:!0,data:a,method:l.method,action:n},n,a))}}))}function ea(t){function e(m){return Mu(m,t)}ql!==null&&Mu(ql,t),jl!==null&&Mu(jl,t),Xl!==null&&Mu(Xl,t),Pa.forEach(e),ti.forEach(e);for(var l=0;l<Gl.length;l++){var n=Gl[l];n.blockedOn===t&&(n.blockedOn=null)}for(;0<Gl.length&&(l=Gl[0],l.blockedOn===null);)Yd(l),l.blockedOn===null&&Gl.shift();if(l=(t.ownerDocument||t).$$reactFormReplay,l!=null)for(n=0;n<l.length;n+=3){var a=l[n],i=l[n+1],o=a[ae]||null;if(typeof i=="function")o||jd(l);else if(o){var h=null;if(i&&i.hasAttribute("formAction")){if(a=i,o=i[ae]||null)h=o.formAction;else if(of(a)!==null)continue}else h=o.action;typeof h=="function"?l[n+1]=h:(l.splice(n,3),n-=3),jd(l)}}}function Xd(){function t(i){i.canIntercept&&i.info==="react-transition"&&i.intercept({handler:function(){return new Promise(function(o){return a=o})},focusReset:"manual",scroll:"manual"})}function e(){a!==null&&(a(),a=null),n||setTimeout(l,20)}function l(){if(!n&&!navigation.transition){var i=navigation.currentEntry;i&&i.url!=null&&navigation.navigate(i.url,{state:i.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var n=!1,a=null;return navigation.addEventListener("navigate",t),navigation.addEventListener("navigatesuccess",e),navigation.addEventListener("navigateerror",e),setTimeout(l,100),function(){n=!0,navigation.removeEventListener("navigate",t),navigation.removeEventListener("navigatesuccess",e),navigation.removeEventListener("navigateerror",e),a!==null&&(a(),a=null)}}}function hf(t){this._internalRoot=t}zu.prototype.render=hf.prototype.render=function(t){var e=this._internalRoot;if(e===null)throw Error(c(409));var l=e.current,n=Ee();Rd(l,n,t,e,null,null)},zu.prototype.unmount=hf.prototype.unmount=function(){var t=this._internalRoot;if(t!==null){this._internalRoot=null;var e=t.containerInfo;Rd(t.current,2,null,t,null,null),su(),e[vn]=null}};function zu(t){this._internalRoot=t}zu.prototype.unstable_scheduleHydration=function(t){if(t){var e=$f();t={blockedOn:null,target:t,priority:e};for(var l=0;l<Gl.length&&e!==0&&e<Gl[l].priority;l++);Gl.splice(l,0,t),l===0&&Yd(t)}};var Gd=u.version;if(Gd!=="19.2.3")throw Error(c(527,Gd,"19.2.3"));R.findDOMNode=function(t){var e=t._reactInternals;if(e===void 0)throw typeof t.render=="function"?Error(c(188)):(t=Object.keys(t).join(","),Error(c(268,t)));return t=S(e),t=t!==null?N(t):null,t=t===null?null:t.stateNode,t};var Ap={bundleType:0,version:"19.2.3",rendererPackageName:"react-dom",currentDispatcherRef:x,reconcilerVersion:"19.2.3"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var xu=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!xu.isDisabled&&xu.supportsFiber)try{oa=xu.inject(Ap),de=xu}catch{}}return ni.createRoot=function(t,e){if(!r(t))throw Error(c(299));var l=!1,n="",a=Wr,i=$r,o=Fr;return e!=null&&(e.unstable_strictMode===!0&&(l=!0),e.identifierPrefix!==void 0&&(n=e.identifierPrefix),e.onUncaughtError!==void 0&&(a=e.onUncaughtError),e.onCaughtError!==void 0&&(i=e.onCaughtError),e.onRecoverableError!==void 0&&(o=e.onRecoverableError)),e=Dd(t,1,!1,null,null,l,n,null,a,i,o,Xd),t[vn]=e.current,Kc(t),new hf(e)},ni.hydrateRoot=function(t,e,l){if(!r(t))throw Error(c(299));var n=!1,a="",i=Wr,o=$r,h=Fr,m=null;return l!=null&&(l.unstable_strictMode===!0&&(n=!0),l.identifierPrefix!==void 0&&(a=l.identifierPrefix),l.onUncaughtError!==void 0&&(i=l.onUncaughtError),l.onCaughtError!==void 0&&(o=l.onCaughtError),l.onRecoverableError!==void 0&&(h=l.onRecoverableError),l.formState!==void 0&&(m=l.formState)),e=Dd(t,1,!0,e,l??null,n,a,m,i,o,h,Xd),e.context=wd(null),l=e.current,n=Ee(),n=es(n),a=zl(n),a.callback=null,xl(l,a,n),l=n,e.current.lanes=l,ha(e,l),Je(e),t[vn]=e.current,Kc(t),new zu(e)},ni.version="19.2.3",ni}var em;function Lp(){if(em)return pf.exports;em=1;function f(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(f)}catch(u){console.error(u)}}return f(),pf.exports=Bp(),pf.exports}var Yp=Lp();function lm(f){return f!==null&&typeof f=="object"&&[null,Object.prototype].includes(Object.getPrototypeOf(f))||Array.isArray(f)}function zf(f,u,s=new WeakMap){if(Object.is(f,u))return!0;if(typeof f=="function"&&typeof u=="function")return typeof f==typeof u;if(!lm(f)||!lm(u))return!1;const c=s.get(f);if(c&&c===u)return!0;if(s.set(f,u),Array.isArray(f)||Array.isArray(u)){if(!Array.isArray(f)||!Array.isArray(u)||f.length!==u.length)return!1;for(let y=0;y<f.length;y++)if(!zf(f[y],u[y],s))return!1;return!0}const r=Object.keys(f),d=Object.keys(u);if(r.length!==d.length)return!1;for(let y=0;y<r.length;y++){const v=r[y];if(!Object.prototype.hasOwnProperty.call(u,v))return!1;const E=f[v],S=u[v];if(!zf(E,S,s))return!1}return!0}function qp(f){const u=[],s=(d,y)=>y.reduce((v,E)=>v==null?v:v[E],d),c=(d,y)=>(...v)=>{const E=s(f.current,d),S=E==null?void 0:E[y];if(typeof S=="function")return S.apply(E,v)},r=d=>{if(typeof d=="function"){const y=u[u.length-1],v=u.slice(0,-1);return c(v,y)}if(Array.isArray(d)){const y=u.length,v=new Array(d.length);for(let E=0;E<d.length;E++)u[y]=E,v[E]=r(d[E]);return u.length=y,v}if(d&&typeof d=="object"){const y=u.length,v={};for(const E of Object.keys(d))u[y]=E,v[E]=r(d[E]);return u.length=y,v}return d};return r(f.current)}function jp(f){const u=Wd.useRef(f);u.current=f;const s=Wd.useRef(null);return(!s.current||!zf(s.current.snapshot,f))&&(s.current={snapshot:f,shaped:qp(u)}),s.current.shaped}const Xp=Object.freeze(["focusComposer","setThreadId","sendUserMessage","setComposerValue","setRuntimeCapabilities","fetchUpdates","sendCustomAction"]);function Gp(f){const u=Bt.useRef(null),s=jp(f),c=Bt.useMemo(()=>Xp.reduce((y,v)=>(y[v]=(...E)=>{if(!u.current){console.warn("ChatKit element is not mounted");return}return u.current[v](...E)},y),{}),[]),r=Bt.useCallback(y=>{u.current=y},[]),d=Bt.useMemo(()=>{const y={},v={};for(const[E,S]of Object.entries(s))/^on[A-Z]/.test(E)&&E!=="onClientTool"?v[E]=S:y[E]=S;return{setInstance:r,options:y,handlers:v}},[s,r]);return Bt.useMemo(()=>({...c,control:d,ref:u}),[c,d])}class Qp{constructor(){pt(this,"callbacks",new Map)}on(u,s){this.callbacks.has(u)||this.callbacks.set(u,new Set),this.callbacks.get(u).add(s)}emit(u,...s){var r;const c=s[0];(r=this.callbacks.get(u))==null||r.forEach(d=>d(c))}off(u,s){var c;s?(c=this.callbacks.get(u))==null||c.delete(s):this.callbacks.delete(u)}allOff(){this.callbacks.clear()}}async function Zp(f,u){const s=f.getReader();let c;for(;!(c=await s.read()).done;)u(c.value)}function Vp(f){let u,s,c,r=!1;return function(y){u===void 0?(u=y,s=0,c=-1):u=Jp(u,y);const v=u.length;let E=0;for(;s<v;){r&&(u[s]===10&&(E=++s),r=!1);let S=-1;for(;s<v&&S===-1;++s)switch(u[s]){case 58:c===-1&&(c=s-E);break;case 13:r=!0;case 10:S=s;break}if(S===-1)break;f(u.subarray(E,S),c),E=s,c=-1}E===v?u=void 0:E!==0&&(u=u.subarray(E),s-=E)}}function Kp(f,u,s){let c=nm();const r=new TextDecoder;return function(y,v){if(y.length===0)s==null||s(c),c=nm();else if(v>0){const E=r.decode(y.subarray(0,v)),S=v+(y[v+1]===32?2:1),N=r.decode(y.subarray(S));switch(E){case"data":c.data=c.data?c.data+`
|
|
50
|
-
`+N:N;break;case"event":c.event=N;break;case"id":f(c.id=N);break;case"retry":const B=parseInt(N,10);isNaN(B)||u(c.retry=B);break}}}}function Jp(f,u){const s=new Uint8Array(f.length+u.length);return s.set(f),s.set(u,f.length),s}function nm(){return{data:"",event:"",id:"",retry:void 0}}var kp=function(f,u){var s={};for(var c in f)Object.prototype.hasOwnProperty.call(f,c)&&u.indexOf(c)<0&&(s[c]=f[c]);if(f!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,c=Object.getOwnPropertySymbols(f);r<c.length;r++)u.indexOf(c[r])<0&&Object.prototype.propertyIsEnumerable.call(f,c[r])&&(s[c[r]]=f[c[r]]);return s};const xf="text/event-stream",Wp=1e3,am="last-event-id";function $p(f,u){var{signal:s,headers:c,onopen:r,onmessage:d,onclose:y,onerror:v,openWhenHidden:E,fetch:S}=u,N=kp(u,["signal","headers","onopen","onmessage","onclose","onerror","openWhenHidden","fetch"]);return new Promise((B,et)=>{const gt=Object.assign({},c);gt.accept||(gt.accept=xf);let Et;function Ct(){Et.abort(),document.hidden||le()}E||document.addEventListener("visibilitychange",Ct);let Xt=Wp,Mt=0;function Wt(){document.removeEventListener("visibilitychange",Ct),window.clearTimeout(Mt),Et.abort()}s==null||s.addEventListener("abort",()=>{Wt(),B()});const Lt=S??window.fetch,ee=r??Fp;async function le(){var Yt;Et=new AbortController;try{const k=await Lt(f,Object.assign(Object.assign({},N),{headers:gt,signal:Et.signal}));await ee(k),await Zp(k.body,Vp(Kp(Tt=>{Tt?gt[am]=Tt:delete gt[am]},Tt=>{Xt=Tt},d))),y==null||y(),Wt(),B()}catch(k){if(!Et.signal.aborted)try{const Tt=(Yt=v==null?void 0:v(k))!==null&&Yt!==void 0?Yt:Xt;window.clearTimeout(Mt),Mt=window.setTimeout(le,Tt)}catch(Tt){Wt(),et(Tt)}}}le()})}function Fp(f){const u=f.headers.get("content-type");if(!(u!=null&&u.startsWith(xf)))throw new Error(`Expected content-type to be ${xf}, Actual: ${u}`)}const ua="__chatkit_error__";class Xu extends Error{constructor(s,c,r){super(s);pt(this,"status");pt(this,"statusText");pt(this,"metadata");this.name="HttpError",this.statusText=c.statusText,this.status=c.status,this.metadata=r}static fromPossibleFrameSafeError(s){if(s instanceof Xu)return s;if(s&&typeof s=="object"&&ua in s&&s[ua]==="HttpError"){const c=s,r=new Xu(c.message,{status:c.status,statusText:c.statusText},c.metadata);return r.stack=c.stack,r}return null}}var Tm;Tm=ua;const jf=class jf{constructor(u,s,c){pt(this,Tm,"HttpError");pt(this,"message");pt(this,"stack");pt(this,"status");pt(this,"statusText");pt(this,"metadata");this.message=u,this.stack=new Error(u).stack,this.status=s.status,this.statusText=s.statusText,this.metadata=c}static fromHttpError(u){return new jf(u.message,{status:u.status,statusText:u.statusText},u.metadata)}};let Gu=jf;const Ip=1e3,Pp=1e4,t0=5,e0=(f,u=Pp,s=Ip)=>{const c=Math.min(u,s*2**f);return Math.floor(c*(.5+Math.random()*.5))};class im extends Error{constructor(u){super(),this.cause=u}}const l0=async(f,u)=>{let s=0;const{onopen:c,...r}=u;await $p(f,{...r,onopen:async d=>{var v;if(c==null||c(d),d.ok&&((v=d.headers.get("content-type"))!=null&&v.startsWith("text/event-stream"))){s=0;return}const y=new Gu(`Streaming failed: ${d.statusText}`,d);throw d.status>=400&&d.status<500?y:new im(y)},onerror:d=>{if(d instanceof im){if(s>=t0)throw d.cause;return s+=1,e0(s)}throw d}})};function Am(){const f=globalThis.crypto;if(typeof(f==null?void 0:f.randomUUID)=="function")return f.randomUUID();if(typeof(f==null?void 0:f.getRandomValues)=="function"){const u=new Uint8Array(16);return f.getRandomValues(u),u[6]=u[6]&15|64,u[8]=u[8]&63|128,[...u].map(s=>s.toString(16).padStart(2,"0")).join("").replace(/^(.{8})(.{4})(.{4})(.{4})(.{12})$/,"$1-$2-$3-$4-$5")}return null}function Ef(){return Am()??`ck_${Date.now()}_${Math.random().toString(16).slice(2)}`}function n0(f,{channelId:u,expectedOrigin:s,expectedSource:c}){const r=f.data;if(!r||typeof r!="object"||!("__xpaiChatKit"in r)||r.__xpaiChatKit!==!0||s!=="*"&&f.origin!==s)return!1;if(f.source===c)return!0;const d=u==null?void 0:u.trim();return d?"channelId"in r&&r.channelId===d:!1}let a0=class Mm extends Error{constructor(s){super(s);pt(this,"_name");this.name="IntegrationError",this._name=this.name}static fromPossibleFrameSafeError(s){if(s&&typeof s=="object"&&ua in s&&s[ua]==="IntegrationError"){const c=s,r=new Mm(c.message);return r.stack=c.stack,r}return null}};var _m;_m=ua;class i0{constructor(u){pt(this,_m,"IntegrationError");pt(this,"message");pt(this,"stack");this.message=u,this.stack=new Error(u).stack}}class u0{constructor({handlers:u,target:s,targetOrigin:c,channelId:r,fetch:d=window.fetch}){pt(this,"targetOrigin");pt(this,"target");pt(this,"channelId");pt(this,"commandHandlers");pt(this,"_fetch");pt(this,"emitter",new Qp);pt(this,"handlers",new Map);pt(this,"fetchEventSourceHandlers",new Map);pt(this,"abortControllers",new Map);pt(this,"commands",new Proxy({},{get:(u,s)=>(c,r)=>new Promise((d,y)=>{const v=Ef();this.handlers.set(v,{resolve:d,reject:y,stack:new Error().stack||""}),this.sendMessage({type:"command",nonce:v,command:`on${s.charAt(0).toUpperCase()}${s.slice(1)}`,data:c},r)})}));pt(this,"handleMessage",async u=>{var c,r,d,y;if(!n0(u,{channelId:this.channelId,expectedOrigin:this.targetOrigin,expectedSource:this.target()}))return;const s=u.data;switch(s.type){case"event":{this.emitter.emit(s.event,s.data);break}case"fetch":{try{if(s.formData){const N=new FormData;for(const[B,et]of Object.entries(s.formData))N.append(B,et);s.params.body=N}const v=new AbortController;this.abortControllers.set(s.nonce,v),s.params.signal=v.signal;const E=await this._fetch(s.url,s.params);if(!E.ok){const N=await E.json().then(B=>B.message||E.statusText).catch(()=>E.statusText);throw new Gu(N,E)}const S=await E.json().catch(()=>({}));this.sendMessage({type:"response",response:S,nonce:s.nonce})}catch(v){this.sendMessage({type:"response",error:v,nonce:s.nonce})}break}case"fetchEventSource":{try{const v=new AbortController;this.abortControllers.set(s.nonce,v),await l0(s.url,{...s.params,signal:v.signal,fetch:this._fetch,onmessage:E=>{this.sendMessage({type:"fetchEventSourceMessage",message:E,nonce:s.nonce})}}),this.sendMessage({type:"response",response:void 0,nonce:s.nonce})}catch(v){this.sendMessage({type:"response",error:v,nonce:s.nonce})}break}case"command":{if(!this.canReceiveCommand(s.command)){this.sendMessage({type:"response",error:new i0(`Command ${s.command} not supported`),nonce:s.nonce});return}try{const v=await((r=(c=this.commandHandlers)[s.command])==null?void 0:r.call(c,s.data));this.sendMessage({type:"response",response:v,nonce:s.nonce})}catch(v){this.sendMessage({type:"response",error:v,nonce:s.nonce})}break}case"response":{const v=this.handlers.get(s.nonce);if(!v){console.error("No handler found for nonce",s.nonce);return}if(s.error){const E=a0.fromPossibleFrameSafeError(s.error),S=Xu.fromPossibleFrameSafeError(s.error);E?(E.stack=v.stack,v.reject(E)):S?v.reject(S):v.reject(s.error)}else v.resolve(s.response);this.handlers.delete(s.nonce);break}case"fetchEventSourceMessage":{if(!this.fetchEventSourceHandlers.get(s.nonce)){console.error("No handler found for nonce",s.nonce);return}(y=(d=this.fetchEventSourceHandlers.get(s.nonce))==null?void 0:d.onmessage)==null||y.call(d,s.message);break}case"abortSignal":{const v=this.abortControllers.get(s.nonce);v&&(v.abort(s.reason),this.abortControllers.delete(s.nonce));break}}});this.commandHandlers=u,this.target=s,this.targetOrigin=c,this.channelId=(r==null?void 0:r.trim())||void 0,this._fetch=((...y)=>d(...y))}setTargetOrigin(u){this.targetOrigin=u}sendMessage(u,s){var r;const c={__xpaiChatKit:!0,...this.channelId?{channelId:this.channelId}:{},...u};(r=this.target())==null||r.postMessage(c,this.targetOrigin,s)}connect(){window.addEventListener("message",this.handleMessage)}disconnect(){window.removeEventListener("message",this.handleMessage)}fetch(u,s){return new Promise((c,r)=>{const d=Ef();this.handlers.set(d,{resolve:c,reject:r,stack:new Error().stack||""});let y;if(s.body instanceof FormData){y={};for(const[v,E]of s.body.entries())y[v]=E;s.body=void 0}s.signal&&(s.signal.addEventListener("abort",()=>{var v;this.sendMessage({type:"abortSignal",nonce:d,reason:(v=s.signal)==null?void 0:v.reason})}),s.signal=void 0),this.sendMessage({type:"fetch",nonce:d,params:s,formData:y,url:u})})}fetchEventSource(u,s){return new Promise((c,r)=>{const{onmessage:d,signal:y,...v}=s,E=Ef();this.handlers.set(E,{resolve:c,reject:r,stack:new Error().stack||""}),this.fetchEventSourceHandlers.set(E,{onmessage:d}),y&&y.addEventListener("abort",()=>{this.sendMessage({type:"abortSignal",nonce:E,reason:y.reason})}),this.sendMessage({type:"fetchEventSource",nonce:E,params:v,url:u})})}emit(...[u,s,c]){this.sendMessage({type:"event",event:u,data:s},c)}on(...[u,s]){this.emitter.on(u,s)}destroy(){window.removeEventListener("message",this.handleMessage),this.emitter.allOff(),this.handlers.clear()}}const s0=f=>btoa(f).replace(/\+/g,"-").replace(/\//g,"_").replace(/=+$/,""),c0=f=>{if(f===void 0)throw new TypeError("encodeBase64: `undefined` cannot be encoded to valid JSON. Pass null instead.");const u=JSON.stringify(f),s=new TextEncoder().encode(u);let c="";for(const r of s)c+=String.fromCharCode(r);return s0(c)};class Ft extends Error{}function f0(f){return f.message}const o0=["command.setOptions","command.sendUserMessage","command.setComposerValue","command.setRuntimeCapabilities","command.setThreadId","command.focusComposer","command.fetchUpdates","command.sendCustomAction","command.showHistory","command.hideHistory","event.ready","event.error","event.log","event.response.start","event.response.end","event.response.stop","event.thread.change","event.project.change","event.connectors.change","event.tool.change","event.thread.load.start","event.thread.load.end","event.deeplink","event.effect","error.StreamError","error.StreamEventParsingError","error.WidgetItemError","error.InitialThreadLoadError","error.FileAttachmentError","error.HistoryViewError","error.FatalAppError","error.IntegrationError","error.EntitySearchError","error.DomainVerificationRequestError","backend.threads.get_by_id","backend.threads.list","backend.threads.update","backend.threads.delete","backend.threads.create","backend.threads.add_user_message","backend.threads.add_client_tool_output","backend.threads.retry_after_item","backend.threads.custom_action","backend.attachments.create","backend.attachments.get_preview","backend.attachments.delete","backend.items.list","backend.items.feedback","thread.item.generated_image","thread.item.user_message","thread.item.assistant_message","thread.item.client_tool_call","thread.item.widget","thread.item.task","thread.item.workflow","thread.item.end_of_turn","thread.item.image_generation","widget.Basic","widget.Card","widget.ListView","widget.ListViewItem","widget.Badge","widget.Box","widget.Row","widget.Col","widget.Button","widget.Caption","widget.Chart","widget.Checkbox","widget.DatePicker","widget.Divider","widget.Form","widget.Icon","widget.Image","widget.Input","widget.Label","widget.Markdown","widget.RadioGroup","widget.Select","widget.Spacer","widget.Text","widget.Textarea","widget.Title","widget.Transition"],r0=["command.shareThread","command.setTrainingOptOut","event.thread.restore","event.message.share","event.image.download","event.history.open","event.history.close","event.log.chatgpt","error.HttpError","error.NetworkError","error.UnhandledError","error.UnhandledPromiseRejectionError","error.StreamEventHandlingError","error.StreamStopError","error.ThreadRenderingError","error.IntlError","error.AppError","backend.threads.stop","backend.threads.share","backend.threads.create_from_shared","backend.threads.init","backend.attachments.process","widget.CardCarousel","widget.Favicon","widget.CardLinkItem","widget.Map"],h0={chatkit:{allow:[...o0,"thread.item.image_generation"],deny:r0}},um=f=>{const u=h0[f],s=new Set(u.allow);for(const S of u.deny??[])s.delete(S);const c=new Set,r=new Set,d=new Set,y=new Set,v=new Set,E=new Set;for(const S of s){if(S.startsWith("command.")){c.add(S.slice(8));continue}if(S.startsWith("event.")){r.add(S.slice(6));continue}if(S.startsWith("backend.")){d.add(S.slice(8));continue}if(S.startsWith("thread.item.")&&y.add(S.slice(12)),S.startsWith("error.")){v.add(S.slice(6));continue}if(S.startsWith("widget.")){E.add(S.slice(7));continue}}return{commands:c,events:r,backend:d,threadItems:y,errors:v,widgets:E}};function d0(f){if(!f||typeof f!="object"||!("width"in f)||typeof f.width!="number"||!Number.isFinite(f.width)||f.width<=0||!("height"in f)||typeof f.height!="number"||!Number.isFinite(f.height)||f.height<=0||!("regions"in f)||!Array.isArray(f.regions)||f.regions.length>128)return null;const u=[];for(const s of f.regions){if(!s||typeof s!="object"||typeof s.x!="number"||!Number.isFinite(s.x)||s.x<0||typeof s.y!="number"||!Number.isFinite(s.y)||s.y<0||typeof s.width!="number"||!Number.isFinite(s.width)||s.width<=0||typeof s.height!="number"||!Number.isFinite(s.height)||s.height<=0||s.x+s.width>f.width+1||s.y+s.height>Math.min(f.height,96)+1)return null;u.push({x:s.x,y:s.y,width:s.width,height:s.height})}return{width:f.width,height:f.height,regions:u}}class m0{constructor(u,s){this.wrapper=u,this.enabled=s,this.size={width:0,height:0},this.layer=document.createElement("div"),this.layer.setAttribute("aria-hidden","true"),this.layer.dataset.slot="chatkit-window-drag",this.layer.style.cssText="position:absolute;inset:0;pointer-events:none;overflow:hidden;",u.append(this.layer),this.observer=new ResizeObserver(()=>{(this.wrapper.clientWidth!==this.size.width||this.wrapper.clientHeight!==this.size.height)&&this.clear()}),this.observer.observe(u)}update(u){if(this.clear(),!this.enabled())return;const s=d0(u);if(!(!s||Math.abs(s.width-this.wrapper.clientWidth)>1||Math.abs(s.height-this.wrapper.clientHeight)>1)){this.size={width:s.width,height:s.height};for(const c of s.regions){const r=document.createElement("div");r.style.cssText=`position:absolute;left:${c.x}px;top:${c.y}px;width:${c.width}px;height:${c.height}px;pointer-events:auto;user-select:none;-webkit-app-region:drag;`,this.layer.append(r)}}}clear(){this.layer.replaceChildren()}destroy(){this.observer.disconnect(),this.layer.remove()}}class y0 extends u0{canReceiveCommand(u){return!0}}const g0=["idle","running-right","running-left","waving","jumping","failed","waiting","running","review"],ai={columns:8,rows:9,cellWidth:192,cellHeight:208,animations:{idle:{row:0,frames:6,frameDurations:[280,110,110,140,140,320]},"running-right":{row:1,frames:8,frameDurations:[120,120,120,120,120,120,120,220]},"running-left":{row:2,frames:8,frameDurations:[120,120,120,120,120,120,120,220]},waving:{row:3,frames:4,frameDurations:[140,140,140,280]},jumping:{row:4,frames:5,frameDurations:[140,140,140,140,280]},failed:{row:5,frames:8,frameDurations:[140,140,140,140,140,140,140,240]},waiting:{row:6,frames:6,frameDurations:[150,150,150,150,150,260]},running:{row:7,frames:6,frameDurations:[120,120,120,120,120,220]},review:{row:8,frames:6,frameDurations:[150,150,150,150,150,280]}}},Du={top:0,right:0,bottom:0,left:0},sm="chatkit:pet:position:v1",p0="/pets/boba/spritesheet.webp",Cf={type:"sprite-atlas",src:p0},cm={pin:"bottom-right",draggable:!0,scale:.25,persist:!0,zIndex:40};function v0(f,u){return{row:(u==null?void 0:u.row)??f.row,frames:(u==null?void 0:u.frames)??f.frames,frameDurations:u!=null&&u.frameDurations&&u.frameDurations.length>0?u.frameDurations:f.frameDurations}}function S0(f,u=1){var c;const s={};for(const r of g0)s[r]=v0(ai.animations[r],(c=f==null?void 0:f.animations)==null?void 0:c[r]);return{columns:(f==null?void 0:f.columns)??ai.columns,rows:(f==null?void 0:f.rows)??(u===2?11:ai.rows),cellWidth:(f==null?void 0:f.cellWidth)??ai.cellWidth,cellHeight:(f==null?void 0:f.cellHeight)??ai.cellHeight,animations:s}}function b0(f){return f&&f.src?f:Cf}function fi(f){return f?f===!0?{character:Cf,position:cm,behavior:"auto",ariaLabel:"Animated pet",imageRendering:"auto"}:f.enabled===!1?null:{character:b0(f.character),position:{...cm,...f.position},behavior:f.behavior??"auto",ariaLabel:f.ariaLabel??"Animated pet",imageRendering:f.imageRendering??"auto"}:null}function E0(f){return f.src?{kind:"atlas",src:f.src,atlas:S0(f.atlas,f.spriteVersionNumber)}:null}function Tf(f){return typeof f=="number"?{top:f,right:f,bottom:f,left:f}:{top:(f==null?void 0:f.top)??Du.top,right:(f==null?void 0:f.right)??Du.right,bottom:(f==null?void 0:f.bottom)??Du.bottom,left:(f==null?void 0:f.left)??Du.left}}function Ue(f,u,s,c){const r=c.left,d=c.top,y=Math.max(r,s.width-u.width-c.right),v=Math.max(d,s.height-u.height-c.bottom);return{x:Math.min(y,Math.max(r,f.x)),y:Math.min(v,Math.max(d,f.y))}}function T0(f,u,s,c){const r=(s.width-u.width)/2,d=(s.height-u.height)/2,y=s.width-u.width-c.right,v=s.height-u.height-c.bottom;switch(f){case"top-left":return Ue({x:c.left,y:c.top},u,s,c);case"top":return Ue({x:r,y:c.top},u,s,c);case"top-right":return Ue({x:y,y:c.top},u,s,c);case"left":return Ue({x:c.left,y:d},u,s,c);case"center":return Ue({x:r,y:d},u,s,c);case"right":return Ue({x:y,y:d},u,s,c);case"bottom-left":return Ue({x:c.left,y:v},u,s,c);case"bottom":return Ue({x:r,y:v},u,s,c);case"bottom-right":default:return Ue({x:y,y:v},u,s,c)}}const Df=(f,u=new WeakSet)=>{if(typeof f=="function")return"[ChatKitMethod]";if(typeof f!="object"||f===null||u.has(f))return f;if(u.add(f),Array.isArray(f))return f.map(c=>Df(c,u));const s={};for(const[c,r]of Object.entries(f))typeof r!="function"?s[c]=Df(r,u):s[c]="[ChatKitMethod]";return s},wu=2,_0=.5,A0=1.5,M0=3,O0=2e3,fm=12,z0=320,ke=12,la=8,x0='system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif',om={"en-US":{closePetMenuItem:"Close pet",hideMessage:"Hide message",expandMessage:"Expand message",collapseMessage:"Collapse message",restoreMessage:"Show message",replyButton:"Reply",replyPlaceholder:"Reply...",sendButton:"Send",sendingButton:"Sending...",sendFailed:"Failed to send"},"zh-CN":{closePetMenuItem:"关闭宠物",hideMessage:"隐藏消息",expandMessage:"展开消息",collapseMessage:"收起消息",restoreMessage:"显示消息",replyButton:"回复",replyPlaceholder:"输入回复...",sendButton:"发送",sendingButton:"发送中...",sendFailed:"发送失败"}};function Ru(f){f.stopPropagation()}function na(){const f=window.visualViewport;return{width:(f==null?void 0:f.width)||window.innerWidth||320,height:(f==null?void 0:f.height)||window.innerHeight||480}}function C0(f,u){if(!u)return null;try{const s=window.localStorage.getItem(f);if(!s)return null;const c=JSON.parse(s);return!c||typeof c!="object"||typeof c.x!="number"||typeof c.y!="number"?null:{x:c.x,y:c.y}}catch{return null}}function D0(f,u,s){if(u)try{window.localStorage.setItem(f,JSON.stringify(s))}catch{}}function w0(f){return f.replace(/["\\]/g,"\\$&")}function rm(f){return Math.max(.1,f)*_0}function Vl(f,u,s){return Math.min(s,Math.max(u,f))}function R0(){if(typeof window<"u")try{const f=window.localStorage.getItem("chatkit:locale");if(f)return f}catch{}return typeof navigator<"u"?navigator.language:null}function hm(f){const u=(f??R0()??"").trim().toLowerCase();return u==="zh-cn"||u==="zh-hans"||u.startsWith("zh")?"zh-CN":"en-US"}function U0(f){switch(f){case"compact":return{padding:"8px 10px",gap:6,marginTop:3,toggleSize:30,actionSize:22};case"spacious":return{padding:"14px 16px",gap:10,marginTop:6,toggleSize:38,actionSize:28};case"normal":default:return{padding:"12px 14px",gap:8,marginTop:4,toggleSize:34,actionSize:26}}}function N0(f){switch(f){case"pill":return 24;case"round":return 16;case"sharp":return 0;case"soft":default:return 12}}function ii(f){var v,E;const u=typeof f=="string"?null:f,s=((v=u==null?void 0:u.typography)==null?void 0:v.baseSize)??16,c=(u==null?void 0:u.density)??"normal",r=c==="compact"?-1:c==="spacious"?1:0,d=Vl(s-2+r,11,17);return{...U0(c),bodySize:d,titleSize:d+1,iconSize:Vl(d+2,13,19),radius:N0(u==null?void 0:u.radius),fontFamily:((E=u==null?void 0:u.typography)==null?void 0:E.fontFamily)??x0}}function H0(f){return f==="idle"||f==="running-right"||f==="running-left"||f==="waving"||f==="jumping"||f==="failed"||f==="waiting"||f==="running"||f==="review"}function B0(f){if(!f||typeof f!="object"||Array.isArray(f))return null;const u=f;return H0(u.state)?{state:u.state}:null}function L0(f){if(!f||typeof f!="object"||Array.isArray(f))return null;const u=f;return u.pet===null||typeof u.pet=="boolean"?{pet:u.pet}:u.pet&&typeof u.pet=="object"&&!Array.isArray(u.pet)?{pet:u.pet}:null}function Y0(f){return f==="running"||f==="completed"||f==="failed"}function dm(f){return f?[f.threadId,f.messageId||f.updatedAt||f.message].join(":"):null}function mm(f){return f?[f.threadId,f.messageId??""].join(":"):null}function q0(f){if(f===null)return{summary:null};if(!f||typeof f!="object"||Array.isArray(f))return null;const u=f;return typeof u.threadId!="string"||!u.threadId.trim()||typeof u.title!="string"||!u.title.trim()||typeof u.message!="string"||!u.message.trim()||!Y0(u.status)?null:{summary:{threadId:u.threadId,title:u.title,message:u.message,status:u.status,...typeof u.messageId=="string"&&u.messageId.trim()?{messageId:u.messageId}:{},...typeof u.updatedAt=="string"&&u.updatedAt.trim()?{updatedAt:u.updatedAt}:{}}}}function j0(f){if(!f||typeof f!="object"||Array.isArray(f))return null;const u=f;return u.name!=="thread.summary"?null:q0(u.data??null)}class X0{constructor(u,s){this.overlayElement=null,this.petElement=null,this.contextMenuElement=null,this.summaryElement=null,this.summaryToggleElement=null,this.mediaElement=null,this.options=null,this.theme=null,this.resolved=null,this.summary=null,this.summaryRenderKey=null,this.dismissedSummaryKey=null,this.isSummaryCollapsed=!1,this.isSummaryExpanded=!1,this.isSummaryHovering=!1,this.isReplyOpen=!1,this.isReplySubmitting=!1,this.replyError=null,this.replyDraft="",this.replyInputElement=null,this.copyLocale=hm(),this.copy=om[this.copyLocale],this.currentState="waiting",this.lastAutoState="waiting",this.transient=null,this.position=null,this.dragPosition=null,this.dragOffset={x:0,y:0},this.lastDragPosition=null,this.lastDragClientX=null,this.dragAnimation=null,this.activePointerId=null,this.isDragging=!1,this.isHovering=!1,this.movedDuringDrag=!1,this.prefersReducedMotion=!1,this.frame=0,this.completed=!1,this.activeAnimationName=null,this.activeAnimationMode=null,this.frameTimer=null,this.restingDelayTimer=null,this.mediaQuery=null,this.connected=!1,this.handleViewportChange=()=>{this.closeContextMenu(),this.render()},this.handleReducedMotionChange=()=>{var c;this.prefersReducedMotion=!!((c=this.mediaQuery)!=null&&c.matches),this.prefersReducedMotion&&(this.transient=null),this.render()},this.handlePointerEnter=()=>{this.clearRestingDelayTimer(),this.isHovering=!0,this.rescheduleAnimation()},this.handlePointerLeave=()=>{this.isDragging||this.enterRestingAfterDelay()},this.handleContextMenu=c=>{c.preventDefault(),c.stopPropagation(),this.openContextMenu({x:c.clientX,y:c.clientY})},this.handleContextMenuEvent=c=>{c.preventDefault(),c.stopPropagation()},this.handleContextMenuOutsidePointerDown=c=>{const r=this.contextMenuElement;r&&c.composedPath().includes(r)||this.closeContextMenu()},this.handleContextMenuKeyDown=c=>{c.key==="Escape"&&(c.preventDefault(),this.closeContextMenu())},this.handleClosePetMenuItemClick=c=>{var r;c.preventDefault(),c.stopPropagation(),this.closeContextMenu(),(r=this.onClose)==null||r.call(this)},this.handleSummaryPointerEnter=()=>{this.isSummaryHovering=!0,this.render()},this.handleSummaryPointerLeave=()=>{this.isSummaryHovering=!1,this.isReplyOpen||this.render()},this.handleSummaryClick=()=>{var r,d;const c=(r=this.summary)==null?void 0:r.threadId.trim();c&&((d=this.onThreadSummaryActivate)==null||d.call(this,c))},this.handleSummaryDelete=()=>{const c=dm(this.summary);c&&(this.dismissedSummaryKey=c),this.isSummaryCollapsed=!1,this.isReplyOpen=!1,this.replyDraft="",this.replyError=null,this.removeSummaryElements()},this.handleSummaryCollapseToggle=()=>{this.isSummaryCollapsed=!this.isSummaryCollapsed,this.isSummaryExpanded=!1,this.isReplyOpen=!1,this.replyError=null,this.render()},this.handleSummaryExpandToggle=()=>{this.isSummaryExpanded=!this.isSummaryExpanded,this.render()},this.handleReplyOpen=()=>{this.isReplyOpen=!0,this.replyError=null,this.render()},this.handleReplyInput=c=>{const r=c.currentTarget;r instanceof HTMLInputElement&&(this.replyDraft=r.value,this.replyError=null)},this.handleReplySubmit=c=>{c.preventDefault(),this.submitReply()},this.handleReplyKeyDown=c=>{c.key==="Escape"&&(c.preventDefault(),this.isReplyOpen=!1,this.replyError=null,this.render())},this.handlePointerDown=c=>{var y,v;if(c.button!==0||c.ctrlKey||this.isDragging||(this.closeContextMenu(),!((y=this.options)!=null&&y.position.draggable)))return;c.preventDefault();const r=(v=this.petElement)==null?void 0:v.getBoundingClientRect();if(!r)return;const d={x:r.left,y:r.top};this.dragOffset={x:c.clientX-r.left,y:c.clientY-r.top},this.lastDragPosition=d,this.lastDragClientX=c.clientX,this.dragAnimation=null,this.movedDuringDrag=!1,this.dragPosition=d,this.isDragging=!0,this.activePointerId=c.pointerId,this.clearRestingDelayTimer(),this.isHovering=!0,this.captureActivePointer(),this.installDragListeners(),this.rescheduleAnimation()},this.handlePointerMove=c=>{if(!this.isActiveDragPointer(c))return;const r=this.getNextDragPosition(c),d=this.lastDragPosition;if(d&&(Math.abs(d.x-r.x)>wu||Math.abs(d.y-r.y)>wu)&&(this.movedDuringDrag=!0),this.lastDragClientX!==null){const y=c.clientX-this.lastDragClientX;y>wu?this.dragAnimation="running-right":y<-wu&&(this.dragAnimation="running-left")}this.lastDragClientX=c.clientX,this.lastDragPosition=r,this.dragPosition=r,this.render()},this.handlePointerUp=c=>{if(!this.isActiveDragPointer(c))return;const r=this.lastDragPosition??this.getNextDragPosition(c);this.finishDrag(r,c)},this.handleLostPointerCapture=c=>{if(!this.isActiveDragPointer(c))return;const r=this.lastDragPosition??this.getNextDragPosition(c);this.finishDrag(r,c)},this.handleClick=()=>{var c;this.movedDuringDrag||((c=this.onActivate)==null||c.call(this),!this.prefersReducedMotion&&(this.transient={name:"waving"},this.render()))},this.root=u,this.onActivate=s==null?void 0:s.onActivate,this.onClose=s==null?void 0:s.onClose,this.onReply=s==null?void 0:s.onReply,this.onThreadSummaryActivate=s==null?void 0:s.onThreadSummaryActivate,this.connect()}connect(){this.connected||(this.connected=!0,this.installViewportListeners(),this.installReducedMotionListener(),this.render())}setOptions(u,s){this.closeContextMenu();const c=fi(u);if(this.options=c,this.theme=s??null,!c){this.isDragging=!1,this.isHovering=!1,this.position=null,this.dragPosition=null,this.dragAnimation=null,this.lastDragPosition=null,this.lastDragClientX=null,this.transient=null,this.resolved=null,this.clearRestingDelayTimer(),this.removeDragListeners(),this.removeOverlay();return}this.position=C0(sm,c.position.persist),c.behavior==="auto"&&!this.prefersReducedMotion&&(this.transient={name:"waving"}),this.resolveCharacter(),this.render()}setState(u){var c;const s=this.lastAutoState;this.lastAutoState=u,this.currentState=u,((c=this.options)==null?void 0:c.behavior)==="auto"&&!this.prefersReducedMotion&&u==="idle"&&(s==="running"||s==="review")&&!this.transient?this.transient={name:"jumping"}:u!=="idle"&&(this.transient=null),this.render()}setLocale(u){const s=hm(u);s!==this.copyLocale&&(this.copyLocale=s,this.copy=om[s],this.summaryRenderKey=null,this.closeContextMenu(),this.render())}setThreadSummary(u){const s=mm(this.summary),c=mm(u);if(this.summary=u,!u){this.isSummaryCollapsed=!1,this.isSummaryExpanded=!1,this.isSummaryHovering=!1,this.isReplyOpen=!1,this.isReplySubmitting=!1,this.replyError=null,this.replyDraft="",this.summaryRenderKey=null,this.removeSummaryElements();return}s!==c&&(this.isSummaryCollapsed=!1,this.isSummaryExpanded=!1,this.isSummaryHovering=!1,this.isReplyOpen=!1,this.isReplySubmitting=!1,this.replyError=null,this.replyDraft=""),this.render()}setThreadSummaryStatus(u){!this.summary||this.summary.status===u||(this.summary={...this.summary,status:u},this.render())}destroy(){var u,s,c,r;this.connected&&(this.connected=!1,this.clearRestingDelayTimer(),this.clearTimers(),this.removeDragListeners(),this.removeOverlay(),window.removeEventListener("resize",this.handleViewportChange),(u=window.visualViewport)==null||u.removeEventListener("resize",this.handleViewportChange),(s=window.visualViewport)==null||s.removeEventListener("scroll",this.handleViewportChange),(r=(c=this.mediaQuery)==null?void 0:c.removeEventListener)==null||r.call(c,"change",this.handleReducedMotionChange),this.mediaQuery=null)}installViewportListeners(){var u,s;window.addEventListener("resize",this.handleViewportChange),(u=window.visualViewport)==null||u.addEventListener("resize",this.handleViewportChange),(s=window.visualViewport)==null||s.addEventListener("scroll",this.handleViewportChange)}installReducedMotionListener(){var u,s;window.matchMedia&&(this.mediaQuery=window.matchMedia("(prefers-reduced-motion: reduce)"),this.prefersReducedMotion=this.mediaQuery.matches,(s=(u=this.mediaQuery).addEventListener)==null||s.call(u,"change",this.handleReducedMotionChange))}resolveCharacter(){if(!this.options){this.resolved=null;return}const u=this.options.character;this.resolved=E0(u)}ensureOverlay(){if(this.overlayElement&&this.petElement)return;const u=document.createElement("div");u.setAttribute("data-chatkit-host-pet-layer",""),u.style.position="fixed",u.style.inset="0",u.style.pointerEvents="none",u.style.overflow="visible";const s=document.createElement("style");s.textContent=`
|
|
48
|
+
`+n.stack}}var Fu=Object.prototype.hasOwnProperty,Iu=f.unstable_scheduleCallback,Pu=f.unstable_cancelCallback,iy=f.unstable_shouldYield,uy=f.unstable_requestPaint,de=f.unstable_now,sy=f.unstable_getCurrentPriorityLevel,Qf=f.unstable_ImmediatePriority,Zf=f.unstable_UserBlockingPriority,hi=f.unstable_NormalPriority,cy=f.unstable_LowPriority,Vf=f.unstable_IdlePriority,fy=f.log,oy=f.unstable_setDisableYieldValue,oa=null,me=null;function Sl(t){if(typeof fy=="function"&&oy(t),me&&typeof me.setStrictMode=="function")try{me.setStrictMode(oa,t)}catch{}}var ye=Math.clz32?Math.clz32:dy,ry=Math.log,hy=Math.LN2;function dy(t){return t>>>=0,t===0?32:31-(ry(t)/hy|0)|0}var di=256,mi=262144,yi=4194304;function $l(t){var e=t&42;if(e!==0)return e;switch(t&-t){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 t&261888;case 262144:case 524288:case 1048576:case 2097152:return t&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return t&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return t}}function gi(t,e,l){var n=t.pendingLanes;if(n===0)return 0;var a=0,i=t.suspendedLanes,o=t.pingedLanes;t=t.warmLanes;var h=n&134217727;return h!==0?(n=h&~i,n!==0?a=$l(n):(o&=h,o!==0?a=$l(o):l||(l=h&~t,l!==0&&(a=$l(l))))):(h=n&~i,h!==0?a=$l(h):o!==0?a=$l(o):l||(l=n&~t,l!==0&&(a=$l(l)))),a===0?0:e!==0&&e!==a&&(e&i)===0&&(i=a&-a,l=e&-e,i>=l||i===32&&(l&4194048)!==0)?e:a}function ra(t,e){return(t.pendingLanes&~(t.suspendedLanes&~t.pingedLanes)&e)===0}function my(t,e){switch(t){case 1:case 2:case 4:case 8:case 64:return e+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 e+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 Kf(){var t=yi;return yi<<=1,(yi&62914560)===0&&(yi=4194304),t}function ts(t){for(var e=[],l=0;31>l;l++)e.push(t);return e}function ha(t,e){t.pendingLanes|=e,e!==268435456&&(t.suspendedLanes=0,t.pingedLanes=0,t.warmLanes=0)}function yy(t,e,l,n,a,i){var o=t.pendingLanes;t.pendingLanes=l,t.suspendedLanes=0,t.pingedLanes=0,t.warmLanes=0,t.expiredLanes&=l,t.entangledLanes&=l,t.errorRecoveryDisabledLanes&=l,t.shellSuspendCounter=0;var h=t.entanglements,m=t.expirationTimes,_=t.hiddenUpdates;for(l=o&~l;0<l;){var O=31-ye(l),D=1<<O;h[O]=0,m[O]=-1;var A=_[O];if(A!==null)for(_[O]=null,O=0;O<A.length;O++){var M=A[O];M!==null&&(M.lane&=-536870913)}l&=~D}n!==0&&Jf(t,n,0),i!==0&&a===0&&t.tag!==0&&(t.suspendedLanes|=i&~(o&~e))}function Jf(t,e,l){t.pendingLanes|=e,t.suspendedLanes&=~e;var n=31-ye(e);t.entangledLanes|=e,t.entanglements[n]=t.entanglements[n]|1073741824|l&261930}function kf(t,e){var l=t.entangledLanes|=e;for(t=t.entanglements;l;){var n=31-ye(l),a=1<<n;a&e|t[n]&e&&(t[n]|=e),l&=~a}}function Wf(t,e){var l=e&-e;return l=(l&42)!==0?1:es(l),(l&(t.suspendedLanes|e))!==0?0:l}function es(t){switch(t){case 2:t=1;break;case 8:t=4;break;case 32:t=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:t=128;break;case 268435456:t=134217728;break;default:t=0}return t}function ls(t){return t&=-t,2<t?8<t?(t&134217727)!==0?32:268435456:8:2}function $f(){var t=R.p;return t!==0?t:(t=window.event,t===void 0?32:Bd(t.type))}function Ff(t,e){var l=R.p;try{return R.p=t,e()}finally{R.p=l}}var bl=Math.random().toString(36).slice(2),Qt="__reactFiber$"+bl,ie="__reactProps$"+bl,vn="__reactContainer$"+bl,ns="__reactEvents$"+bl,gy="__reactListeners$"+bl,py="__reactHandles$"+bl,If="__reactResources$"+bl,da="__reactMarker$"+bl;function as(t){delete t[Qt],delete t[ie],delete t[ns],delete t[gy],delete t[py]}function Sn(t){var e=t[Qt];if(e)return e;for(var l=t.parentNode;l;){if(e=l[vn]||l[Qt]){if(l=e.alternate,e.child!==null||l!==null&&l.child!==null)for(t=bd(t);t!==null;){if(l=t[Qt])return l;t=bd(t)}return e}t=l,l=t.parentNode}return null}function bn(t){if(t=t[Qt]||t[vn]){var e=t.tag;if(e===5||e===6||e===13||e===31||e===26||e===27||e===3)return t}return null}function ma(t){var e=t.tag;if(e===5||e===26||e===27||e===6)return t.stateNode;throw Error(c(33))}function En(t){var e=t[If];return e||(e=t[If]={hoistableStyles:new Map,hoistableScripts:new Map}),e}function qt(t){t[da]=!0}var Pf=new Set,to={};function Fl(t,e){Tn(t,e),Tn(t+"Capture",e)}function Tn(t,e){for(to[t]=e,t=0;t<e.length;t++)Pf.add(e[t])}var vy=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]*$"),eo={},lo={};function Sy(t){return Fu.call(lo,t)?!0:Fu.call(eo,t)?!1:vy.test(t)?lo[t]=!0:(eo[t]=!0,!1)}function pi(t,e,l){if(Sy(e))if(l===null)t.removeAttribute(e);else{switch(typeof l){case"undefined":case"function":case"symbol":t.removeAttribute(e);return;case"boolean":var n=e.toLowerCase().slice(0,5);if(n!=="data-"&&n!=="aria-"){t.removeAttribute(e);return}}t.setAttribute(e,""+l)}}function vi(t,e,l){if(l===null)t.removeAttribute(e);else{switch(typeof l){case"undefined":case"function":case"symbol":case"boolean":t.removeAttribute(e);return}t.setAttribute(e,""+l)}}function Pe(t,e,l,n){if(n===null)t.removeAttribute(l);else{switch(typeof n){case"undefined":case"function":case"symbol":case"boolean":t.removeAttribute(l);return}t.setAttributeNS(e,l,""+n)}}function _e(t){switch(typeof t){case"bigint":case"boolean":case"number":case"string":case"undefined":return t;case"object":return t;default:return""}}function no(t){var e=t.type;return(t=t.nodeName)&&t.toLowerCase()==="input"&&(e==="checkbox"||e==="radio")}function by(t,e,l){var n=Object.getOwnPropertyDescriptor(t.constructor.prototype,e);if(!t.hasOwnProperty(e)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var a=n.get,i=n.set;return Object.defineProperty(t,e,{configurable:!0,get:function(){return a.call(this)},set:function(o){l=""+o,i.call(this,o)}}),Object.defineProperty(t,e,{enumerable:n.enumerable}),{getValue:function(){return l},setValue:function(o){l=""+o},stopTracking:function(){t._valueTracker=null,delete t[e]}}}}function is(t){if(!t._valueTracker){var e=no(t)?"checked":"value";t._valueTracker=by(t,e,""+t[e])}}function ao(t){if(!t)return!1;var e=t._valueTracker;if(!e)return!0;var l=e.getValue(),n="";return t&&(n=no(t)?t.checked?"true":"false":t.value),t=n,t!==l?(e.setValue(t),!0):!1}function Si(t){if(t=t||(typeof document<"u"?document:void 0),typeof t>"u")return null;try{return t.activeElement||t.body}catch{return t.body}}var Ey=/[\n"\\]/g;function Ae(t){return t.replace(Ey,function(e){return"\\"+e.charCodeAt(0).toString(16)+" "})}function us(t,e,l,n,a,i,o,h){t.name="",o!=null&&typeof o!="function"&&typeof o!="symbol"&&typeof o!="boolean"?t.type=o:t.removeAttribute("type"),e!=null?o==="number"?(e===0&&t.value===""||t.value!=e)&&(t.value=""+_e(e)):t.value!==""+_e(e)&&(t.value=""+_e(e)):o!=="submit"&&o!=="reset"||t.removeAttribute("value"),e!=null?ss(t,o,_e(e)):l!=null?ss(t,o,_e(l)):n!=null&&t.removeAttribute("value"),a==null&&i!=null&&(t.defaultChecked=!!i),a!=null&&(t.checked=a&&typeof a!="function"&&typeof a!="symbol"),h!=null&&typeof h!="function"&&typeof h!="symbol"&&typeof h!="boolean"?t.name=""+_e(h):t.removeAttribute("name")}function io(t,e,l,n,a,i,o,h){if(i!=null&&typeof i!="function"&&typeof i!="symbol"&&typeof i!="boolean"&&(t.type=i),e!=null||l!=null){if(!(i!=="submit"&&i!=="reset"||e!=null)){is(t);return}l=l!=null?""+_e(l):"",e=e!=null?""+_e(e):l,h||e===t.value||(t.value=e),t.defaultValue=e}n=n??a,n=typeof n!="function"&&typeof n!="symbol"&&!!n,t.checked=h?t.checked:!!n,t.defaultChecked=!!n,o!=null&&typeof o!="function"&&typeof o!="symbol"&&typeof o!="boolean"&&(t.name=o),is(t)}function ss(t,e,l){e==="number"&&Si(t.ownerDocument)===t||t.defaultValue===""+l||(t.defaultValue=""+l)}function _n(t,e,l,n){if(t=t.options,e){e={};for(var a=0;a<l.length;a++)e["$"+l[a]]=!0;for(l=0;l<t.length;l++)a=e.hasOwnProperty("$"+t[l].value),t[l].selected!==a&&(t[l].selected=a),a&&n&&(t[l].defaultSelected=!0)}else{for(l=""+_e(l),e=null,a=0;a<t.length;a++){if(t[a].value===l){t[a].selected=!0,n&&(t[a].defaultSelected=!0);return}e!==null||t[a].disabled||(e=t[a])}e!==null&&(e.selected=!0)}}function uo(t,e,l){if(e!=null&&(e=""+_e(e),e!==t.value&&(t.value=e),l==null)){t.defaultValue!==e&&(t.defaultValue=e);return}t.defaultValue=l!=null?""+_e(l):""}function so(t,e,l,n){if(e==null){if(n!=null){if(l!=null)throw Error(c(92));if(Le(n)){if(1<n.length)throw Error(c(93));n=n[0]}l=n}l==null&&(l=""),e=l}l=_e(e),t.defaultValue=l,n=t.textContent,n===l&&n!==""&&n!==null&&(t.value=n),is(t)}function An(t,e){if(e){var l=t.firstChild;if(l&&l===t.lastChild&&l.nodeType===3){l.nodeValue=e;return}}t.textContent=e}var Ty=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 co(t,e,l){var n=e.indexOf("--")===0;l==null||typeof l=="boolean"||l===""?n?t.setProperty(e,""):e==="float"?t.cssFloat="":t[e]="":n?t.setProperty(e,l):typeof l!="number"||l===0||Ty.has(e)?e==="float"?t.cssFloat=l:t[e]=(""+l).trim():t[e]=l+"px"}function fo(t,e,l){if(e!=null&&typeof e!="object")throw Error(c(62));if(t=t.style,l!=null){for(var n in l)!l.hasOwnProperty(n)||e!=null&&e.hasOwnProperty(n)||(n.indexOf("--")===0?t.setProperty(n,""):n==="float"?t.cssFloat="":t[n]="");for(var a in e)n=e[a],e.hasOwnProperty(a)&&l[a]!==n&&co(t,a,n)}else for(var i in e)e.hasOwnProperty(i)&&co(t,i,e[i])}function cs(t){if(t.indexOf("-")===-1)return!1;switch(t){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 _y=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"]]),Ay=/^[\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 bi(t){return Ay.test(""+t)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":t}function tl(){}var fs=null;function os(t){return t=t.target||t.srcElement||window,t.correspondingUseElement&&(t=t.correspondingUseElement),t.nodeType===3?t.parentNode:t}var Mn=null,On=null;function oo(t){var e=bn(t);if(e&&(t=e.stateNode)){var l=t[ie]||null;t:switch(t=e.stateNode,e.type){case"input":if(us(t,l.value,l.defaultValue,l.defaultValue,l.checked,l.defaultChecked,l.type,l.name),e=l.name,l.type==="radio"&&e!=null){for(l=t;l.parentNode;)l=l.parentNode;for(l=l.querySelectorAll('input[name="'+Ae(""+e)+'"][type="radio"]'),e=0;e<l.length;e++){var n=l[e];if(n!==t&&n.form===t.form){var a=n[ie]||null;if(!a)throw Error(c(90));us(n,a.value,a.defaultValue,a.defaultValue,a.checked,a.defaultChecked,a.type,a.name)}}for(e=0;e<l.length;e++)n=l[e],n.form===t.form&&ao(n)}break t;case"textarea":uo(t,l.value,l.defaultValue);break t;case"select":e=l.value,e!=null&&_n(t,!!l.multiple,e,!1)}}}var rs=!1;function ro(t,e,l){if(rs)return t(e,l);rs=!0;try{var n=t(e);return n}finally{if(rs=!1,(Mn!==null||On!==null)&&(su(),Mn&&(e=Mn,t=On,On=Mn=null,oo(e),t)))for(e=0;e<t.length;e++)oo(t[e])}}function ya(t,e){var l=t.stateNode;if(l===null)return null;var n=l[ie]||null;if(n===null)return null;l=n[e];t:switch(e){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)||(t=t.type,n=!(t==="button"||t==="input"||t==="select"||t==="textarea")),t=!n;break t;default:t=!1}if(t)return null;if(l&&typeof l!="function")throw Error(c(231,e,typeof l));return l}var el=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),hs=!1;if(el)try{var ga={};Object.defineProperty(ga,"passive",{get:function(){hs=!0}}),window.addEventListener("test",ga,ga),window.removeEventListener("test",ga,ga)}catch{hs=!1}var El=null,ds=null,Ei=null;function ho(){if(Ei)return Ei;var t,e=ds,l=e.length,n,a="value"in El?El.value:El.textContent,i=a.length;for(t=0;t<l&&e[t]===a[t];t++);var o=l-t;for(n=1;n<=o&&e[l-n]===a[i-n];n++);return Ei=a.slice(t,1<n?1-n:void 0)}function Ti(t){var e=t.keyCode;return"charCode"in t?(t=t.charCode,t===0&&e===13&&(t=13)):t=e,t===10&&(t=13),32<=t||t===13?t:0}function _i(){return!0}function mo(){return!1}function ue(t){function e(l,n,a,i,o){this._reactName=l,this._targetInst=a,this.type=n,this.nativeEvent=i,this.target=o,this.currentTarget=null;for(var h in t)t.hasOwnProperty(h)&&(l=t[h],this[h]=l?l(i):i[h]);return this.isDefaultPrevented=(i.defaultPrevented!=null?i.defaultPrevented:i.returnValue===!1)?_i:mo,this.isPropagationStopped=mo,this}return B(e.prototype,{preventDefault:function(){this.defaultPrevented=!0;var l=this.nativeEvent;l&&(l.preventDefault?l.preventDefault():typeof l.returnValue!="unknown"&&(l.returnValue=!1),this.isDefaultPrevented=_i)},stopPropagation:function(){var l=this.nativeEvent;l&&(l.stopPropagation?l.stopPropagation():typeof l.cancelBubble!="unknown"&&(l.cancelBubble=!0),this.isPropagationStopped=_i)},persist:function(){},isPersistent:_i}),e}var Il={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(t){return t.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Ai=ue(Il),pa=B({},Il,{view:0,detail:0}),My=ue(pa),ms,ys,va,Mi=B({},pa,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:ps,button:0,buttons:0,relatedTarget:function(t){return t.relatedTarget===void 0?t.fromElement===t.srcElement?t.toElement:t.fromElement:t.relatedTarget},movementX:function(t){return"movementX"in t?t.movementX:(t!==va&&(va&&t.type==="mousemove"?(ms=t.screenX-va.screenX,ys=t.screenY-va.screenY):ys=ms=0,va=t),ms)},movementY:function(t){return"movementY"in t?t.movementY:ys}}),yo=ue(Mi),Oy=B({},Mi,{dataTransfer:0}),zy=ue(Oy),xy=B({},pa,{relatedTarget:0}),gs=ue(xy),Cy=B({},Il,{animationName:0,elapsedTime:0,pseudoElement:0}),Dy=ue(Cy),wy=B({},Il,{clipboardData:function(t){return"clipboardData"in t?t.clipboardData:window.clipboardData}}),Ry=ue(wy),Uy=B({},Il,{data:0}),go=ue(Uy),Ny={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Hy={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"},By={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Ly(t){var e=this.nativeEvent;return e.getModifierState?e.getModifierState(t):(t=By[t])?!!e[t]:!1}function ps(){return Ly}var Yy=B({},pa,{key:function(t){if(t.key){var e=Ny[t.key]||t.key;if(e!=="Unidentified")return e}return t.type==="keypress"?(t=Ti(t),t===13?"Enter":String.fromCharCode(t)):t.type==="keydown"||t.type==="keyup"?Hy[t.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:ps,charCode:function(t){return t.type==="keypress"?Ti(t):0},keyCode:function(t){return t.type==="keydown"||t.type==="keyup"?t.keyCode:0},which:function(t){return t.type==="keypress"?Ti(t):t.type==="keydown"||t.type==="keyup"?t.keyCode:0}}),qy=ue(Yy),jy=B({},Mi,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),po=ue(jy),Xy=B({},pa,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:ps}),Gy=ue(Xy),Qy=B({},Il,{propertyName:0,elapsedTime:0,pseudoElement:0}),Zy=ue(Qy),Vy=B({},Mi,{deltaX:function(t){return"deltaX"in t?t.deltaX:"wheelDeltaX"in t?-t.wheelDeltaX:0},deltaY:function(t){return"deltaY"in t?t.deltaY:"wheelDeltaY"in t?-t.wheelDeltaY:"wheelDelta"in t?-t.wheelDelta:0},deltaZ:0,deltaMode:0}),Ky=ue(Vy),Jy=B({},Il,{newState:0,oldState:0}),ky=ue(Jy),Wy=[9,13,27,32],vs=el&&"CompositionEvent"in window,Sa=null;el&&"documentMode"in document&&(Sa=document.documentMode);var $y=el&&"TextEvent"in window&&!Sa,vo=el&&(!vs||Sa&&8<Sa&&11>=Sa),So=" ",bo=!1;function Eo(t,e){switch(t){case"keyup":return Wy.indexOf(e.keyCode)!==-1;case"keydown":return e.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function To(t){return t=t.detail,typeof t=="object"&&"data"in t?t.data:null}var zn=!1;function Fy(t,e){switch(t){case"compositionend":return To(e);case"keypress":return e.which!==32?null:(bo=!0,So);case"textInput":return t=e.data,t===So&&bo?null:t;default:return null}}function Iy(t,e){if(zn)return t==="compositionend"||!vs&&Eo(t,e)?(t=ho(),Ei=ds=El=null,zn=!1,t):null;switch(t){case"paste":return null;case"keypress":if(!(e.ctrlKey||e.altKey||e.metaKey)||e.ctrlKey&&e.altKey){if(e.char&&1<e.char.length)return e.char;if(e.which)return String.fromCharCode(e.which)}return null;case"compositionend":return vo&&e.locale!=="ko"?null:e.data;default:return null}}var Py={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 _o(t){var e=t&&t.nodeName&&t.nodeName.toLowerCase();return e==="input"?!!Py[t.type]:e==="textarea"}function Ao(t,e,l,n){Mn?On?On.push(n):On=[n]:Mn=n,e=mu(e,"onChange"),0<e.length&&(l=new Ai("onChange","change",null,l,n),t.push({event:l,listeners:e}))}var ba=null,Ea=null;function tg(t){ud(t,0)}function Oi(t){var e=ma(t);if(ao(e))return t}function Mo(t,e){if(t==="change")return e}var Oo=!1;if(el){var Ss;if(el){var bs="oninput"in document;if(!bs){var zo=document.createElement("div");zo.setAttribute("oninput","return;"),bs=typeof zo.oninput=="function"}Ss=bs}else Ss=!1;Oo=Ss&&(!document.documentMode||9<document.documentMode)}function xo(){ba&&(ba.detachEvent("onpropertychange",Co),Ea=ba=null)}function Co(t){if(t.propertyName==="value"&&Oi(Ea)){var e=[];Ao(e,Ea,t,os(t)),ro(tg,e)}}function eg(t,e,l){t==="focusin"?(xo(),ba=e,Ea=l,ba.attachEvent("onpropertychange",Co)):t==="focusout"&&xo()}function lg(t){if(t==="selectionchange"||t==="keyup"||t==="keydown")return Oi(Ea)}function ng(t,e){if(t==="click")return Oi(e)}function ag(t,e){if(t==="input"||t==="change")return Oi(e)}function ig(t,e){return t===e&&(t!==0||1/t===1/e)||t!==t&&e!==e}var ge=typeof Object.is=="function"?Object.is:ig;function Ta(t,e){if(ge(t,e))return!0;if(typeof t!="object"||t===null||typeof e!="object"||e===null)return!1;var l=Object.keys(t),n=Object.keys(e);if(l.length!==n.length)return!1;for(n=0;n<l.length;n++){var a=l[n];if(!Fu.call(e,a)||!ge(t[a],e[a]))return!1}return!0}function Do(t){for(;t&&t.firstChild;)t=t.firstChild;return t}function wo(t,e){var l=Do(t);t=0;for(var n;l;){if(l.nodeType===3){if(n=t+l.textContent.length,t<=e&&n>=e)return{node:l,offset:e-t};t=n}t:{for(;l;){if(l.nextSibling){l=l.nextSibling;break t}l=l.parentNode}l=void 0}l=Do(l)}}function Ro(t,e){return t&&e?t===e?!0:t&&t.nodeType===3?!1:e&&e.nodeType===3?Ro(t,e.parentNode):"contains"in t?t.contains(e):t.compareDocumentPosition?!!(t.compareDocumentPosition(e)&16):!1:!1}function Uo(t){t=t!=null&&t.ownerDocument!=null&&t.ownerDocument.defaultView!=null?t.ownerDocument.defaultView:window;for(var e=Si(t.document);e instanceof t.HTMLIFrameElement;){try{var l=typeof e.contentWindow.location.href=="string"}catch{l=!1}if(l)t=e.contentWindow;else break;e=Si(t.document)}return e}function Es(t){var e=t&&t.nodeName&&t.nodeName.toLowerCase();return e&&(e==="input"&&(t.type==="text"||t.type==="search"||t.type==="tel"||t.type==="url"||t.type==="password")||e==="textarea"||t.contentEditable==="true")}var ug=el&&"documentMode"in document&&11>=document.documentMode,xn=null,Ts=null,_a=null,_s=!1;function No(t,e,l){var n=l.window===l?l.document:l.nodeType===9?l:l.ownerDocument;_s||xn==null||xn!==Si(n)||(n=xn,"selectionStart"in n&&Es(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}),_a&&Ta(_a,n)||(_a=n,n=mu(Ts,"onSelect"),0<n.length&&(e=new Ai("onSelect","select",null,e,l),t.push({event:e,listeners:n}),e.target=xn)))}function Pl(t,e){var l={};return l[t.toLowerCase()]=e.toLowerCase(),l["Webkit"+t]="webkit"+e,l["Moz"+t]="moz"+e,l}var Cn={animationend:Pl("Animation","AnimationEnd"),animationiteration:Pl("Animation","AnimationIteration"),animationstart:Pl("Animation","AnimationStart"),transitionrun:Pl("Transition","TransitionRun"),transitionstart:Pl("Transition","TransitionStart"),transitioncancel:Pl("Transition","TransitionCancel"),transitionend:Pl("Transition","TransitionEnd")},As={},Ho={};el&&(Ho=document.createElement("div").style,"AnimationEvent"in window||(delete Cn.animationend.animation,delete Cn.animationiteration.animation,delete Cn.animationstart.animation),"TransitionEvent"in window||delete Cn.transitionend.transition);function tn(t){if(As[t])return As[t];if(!Cn[t])return t;var e=Cn[t],l;for(l in e)if(e.hasOwnProperty(l)&&l in Ho)return As[t]=e[l];return t}var Bo=tn("animationend"),Lo=tn("animationiteration"),Yo=tn("animationstart"),sg=tn("transitionrun"),cg=tn("transitionstart"),fg=tn("transitioncancel"),qo=tn("transitionend"),jo=new Map,Ms="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(" ");Ms.push("scrollEnd");function Ye(t,e){jo.set(t,e),Fl(e,[t])}var zi=typeof reportError=="function"?reportError:function(t){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var e=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof t=="object"&&t!==null&&typeof t.message=="string"?String(t.message):String(t),error:t});if(!window.dispatchEvent(e))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",t);return}console.error(t)},Me=[],Dn=0,Os=0;function xi(){for(var t=Dn,e=Os=Dn=0;e<t;){var l=Me[e];Me[e++]=null;var n=Me[e];Me[e++]=null;var a=Me[e];Me[e++]=null;var i=Me[e];if(Me[e++]=null,n!==null&&a!==null){var o=n.pending;o===null?a.next=a:(a.next=o.next,o.next=a),n.pending=a}i!==0&&Xo(l,a,i)}}function Ci(t,e,l,n){Me[Dn++]=t,Me[Dn++]=e,Me[Dn++]=l,Me[Dn++]=n,Os|=n,t.lanes|=n,t=t.alternate,t!==null&&(t.lanes|=n)}function zs(t,e,l,n){return Ci(t,e,l,n),Di(t)}function en(t,e){return Ci(t,null,null,e),Di(t)}function Xo(t,e,l){t.lanes|=l;var n=t.alternate;n!==null&&(n.lanes|=l);for(var a=!1,i=t.return;i!==null;)i.childLanes|=l,n=i.alternate,n!==null&&(n.childLanes|=l),i.tag===22&&(t=i.stateNode,t===null||t._visibility&1||(a=!0)),t=i,i=i.return;return t.tag===3?(i=t.stateNode,a&&e!==null&&(a=31-ye(l),t=i.hiddenUpdates,n=t[a],n===null?t[a]=[e]:n.push(e),e.lane=l|536870912),i):null}function Di(t){if(50<Va)throw Va=0,Bc=null,Error(c(185));for(var e=t.return;e!==null;)t=e,e=t.return;return t.tag===3?t.stateNode:null}var wn={};function og(t,e,l,n){this.tag=t,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=e,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 pe(t,e,l,n){return new og(t,e,l,n)}function xs(t){return t=t.prototype,!(!t||!t.isReactComponent)}function ll(t,e){var l=t.alternate;return l===null?(l=pe(t.tag,e,t.key,t.mode),l.elementType=t.elementType,l.type=t.type,l.stateNode=t.stateNode,l.alternate=t,t.alternate=l):(l.pendingProps=e,l.type=t.type,l.flags=0,l.subtreeFlags=0,l.deletions=null),l.flags=t.flags&65011712,l.childLanes=t.childLanes,l.lanes=t.lanes,l.child=t.child,l.memoizedProps=t.memoizedProps,l.memoizedState=t.memoizedState,l.updateQueue=t.updateQueue,e=t.dependencies,l.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext},l.sibling=t.sibling,l.index=t.index,l.ref=t.ref,l.refCleanup=t.refCleanup,l}function Go(t,e){t.flags&=65011714;var l=t.alternate;return l===null?(t.childLanes=0,t.lanes=e,t.child=null,t.subtreeFlags=0,t.memoizedProps=null,t.memoizedState=null,t.updateQueue=null,t.dependencies=null,t.stateNode=null):(t.childLanes=l.childLanes,t.lanes=l.lanes,t.child=l.child,t.subtreeFlags=0,t.deletions=null,t.memoizedProps=l.memoizedProps,t.memoizedState=l.memoizedState,t.updateQueue=l.updateQueue,t.type=l.type,e=l.dependencies,t.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext}),t}function wi(t,e,l,n,a,i){var o=0;if(n=t,typeof t=="function")xs(t)&&(o=1);else if(typeof t=="string")o=yp(t,l,L.current)?26:t==="html"||t==="head"||t==="body"?27:5;else t:switch(t){case Ge:return t=pe(31,l,e,a),t.elementType=Ge,t.lanes=i,t;case Ct:return ln(l.children,a,i,e);case Gt:o=8,a|=24;break;case Mt:return t=pe(12,l,e,a|2),t.elementType=Mt,t.lanes=i,t;case ne:return t=pe(13,l,e,a),t.elementType=ne,t.lanes=i,t;case Yt:return t=pe(19,l,e,a),t.elementType=Yt,t.lanes=i,t;default:if(typeof t=="object"&&t!==null)switch(t.$$typeof){case Lt:o=10;break t;case Wt:o=9;break t;case le:o=11;break t;case k:o=14;break t;case Tt:o=16,n=null;break t}o=29,l=Error(c(130,t===null?"null":typeof t,"")),n=null}return e=pe(o,l,e,a),e.elementType=t,e.type=n,e.lanes=i,e}function ln(t,e,l,n){return t=pe(7,t,n,e),t.lanes=l,t}function Cs(t,e,l){return t=pe(6,t,null,e),t.lanes=l,t}function Qo(t){var e=pe(18,null,null,0);return e.stateNode=t,e}function Ds(t,e,l){return e=pe(4,t.children!==null?t.children:[],t.key,e),e.lanes=l,e.stateNode={containerInfo:t.containerInfo,pendingChildren:null,implementation:t.implementation},e}var Zo=new WeakMap;function Oe(t,e){if(typeof t=="object"&&t!==null){var l=Zo.get(t);return l!==void 0?l:(e={value:t,source:e,stack:Gf(e)},Zo.set(t,e),e)}return{value:t,source:e,stack:Gf(e)}}var Rn=[],Un=0,Ri=null,Aa=0,ze=[],xe=0,Tl=null,Ze=1,Ve="";function nl(t,e){Rn[Un++]=Aa,Rn[Un++]=Ri,Ri=t,Aa=e}function Vo(t,e,l){ze[xe++]=Ze,ze[xe++]=Ve,ze[xe++]=Tl,Tl=t;var n=Ze;t=Ve;var a=32-ye(n)-1;n&=~(1<<a),l+=1;var i=32-ye(e)+a;if(30<i){var o=a-a%5;i=(n&(1<<o)-1).toString(32),n>>=o,a-=o,Ze=1<<32-ye(e)+a|l<<a|n,Ve=i+t}else Ze=1<<i|l<<a|n,Ve=t}function ws(t){t.return!==null&&(nl(t,1),Vo(t,1,0))}function Rs(t){for(;t===Ri;)Ri=Rn[--Un],Rn[Un]=null,Aa=Rn[--Un],Rn[Un]=null;for(;t===Tl;)Tl=ze[--xe],ze[xe]=null,Ve=ze[--xe],ze[xe]=null,Ze=ze[--xe],ze[xe]=null}function Ko(t,e){ze[xe++]=Ze,ze[xe++]=Ve,ze[xe++]=Tl,Ze=e.id,Ve=e.overflow,Tl=t}var Zt=null,vt=null,tt=!1,_l=null,Ce=!1,Us=Error(c(519));function Al(t){var e=Error(c(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw Ma(Oe(e,t)),Us}function Jo(t){var e=t.stateNode,l=t.type,n=t.memoizedProps;switch(e[Qt]=t,e[ie]=n,l){case"dialog":F("cancel",e),F("close",e);break;case"iframe":case"object":case"embed":F("load",e);break;case"video":case"audio":for(l=0;l<Ja.length;l++)F(Ja[l],e);break;case"source":F("error",e);break;case"img":case"image":case"link":F("error",e),F("load",e);break;case"details":F("toggle",e);break;case"input":F("invalid",e),io(e,n.value,n.defaultValue,n.checked,n.defaultChecked,n.type,n.name,!0);break;case"select":F("invalid",e);break;case"textarea":F("invalid",e),so(e,n.value,n.defaultValue,n.children)}l=n.children,typeof l!="string"&&typeof l!="number"&&typeof l!="bigint"||e.textContent===""+l||n.suppressHydrationWarning===!0||od(e.textContent,l)?(n.popover!=null&&(F("beforetoggle",e),F("toggle",e)),n.onScroll!=null&&F("scroll",e),n.onScrollEnd!=null&&F("scrollend",e),n.onClick!=null&&(e.onclick=tl),e=!0):e=!1,e||Al(t,!0)}function ko(t){for(Zt=t.return;Zt;)switch(Zt.tag){case 5:case 31:case 13:Ce=!1;return;case 27:case 3:Ce=!0;return;default:Zt=Zt.return}}function Nn(t){if(t!==Zt)return!1;if(!tt)return ko(t),tt=!0,!1;var e=t.tag,l;if((l=e!==3&&e!==27)&&((l=e===5)&&(l=t.type,l=!(l!=="form"&&l!=="button")||Fc(t.type,t.memoizedProps)),l=!l),l&&vt&&Al(t),ko(t),e===13){if(t=t.memoizedState,t=t!==null?t.dehydrated:null,!t)throw Error(c(317));vt=Sd(t)}else if(e===31){if(t=t.memoizedState,t=t!==null?t.dehydrated:null,!t)throw Error(c(317));vt=Sd(t)}else e===27?(e=vt,Yl(t.type)?(t=lf,lf=null,vt=t):vt=e):vt=Zt?we(t.stateNode.nextSibling):null;return!0}function nn(){vt=Zt=null,tt=!1}function Ns(){var t=_l;return t!==null&&(oe===null?oe=t:oe.push.apply(oe,t),_l=null),t}function Ma(t){_l===null?_l=[t]:_l.push(t)}var Hs=p(null),an=null,al=null;function Ml(t,e,l){U(Hs,e._currentValue),e._currentValue=l}function il(t){t._currentValue=Hs.current,w(Hs)}function Bs(t,e,l){for(;t!==null;){var n=t.alternate;if((t.childLanes&e)!==e?(t.childLanes|=e,n!==null&&(n.childLanes|=e)):n!==null&&(n.childLanes&e)!==e&&(n.childLanes|=e),t===l)break;t=t.return}}function Ls(t,e,l,n){var a=t.child;for(a!==null&&(a.return=t);a!==null;){var i=a.dependencies;if(i!==null){var o=a.child;i=i.firstContext;t:for(;i!==null;){var h=i;i=a;for(var m=0;m<e.length;m++)if(h.context===e[m]){i.lanes|=l,h=i.alternate,h!==null&&(h.lanes|=l),Bs(i.return,l,t),n||(o=null);break t}i=h.next}}else if(a.tag===18){if(o=a.return,o===null)throw Error(c(341));o.lanes|=l,i=o.alternate,i!==null&&(i.lanes|=l),Bs(o,l,t),o=null}else o=a.child;if(o!==null)o.return=a;else for(o=a;o!==null;){if(o===t){o=null;break}if(a=o.sibling,a!==null){a.return=o.return,o=a;break}o=o.return}a=o}}function Hn(t,e,l,n){t=null;for(var a=e,i=!1;a!==null;){if(!i){if((a.flags&524288)!==0)i=!0;else if((a.flags&262144)!==0)break}if(a.tag===10){var o=a.alternate;if(o===null)throw Error(c(387));if(o=o.memoizedProps,o!==null){var h=a.type;ge(a.pendingProps.value,o.value)||(t!==null?t.push(h):t=[h])}}else if(a===ut.current){if(o=a.alternate,o===null)throw Error(c(387));o.memoizedState.memoizedState!==a.memoizedState.memoizedState&&(t!==null?t.push(Ia):t=[Ia])}a=a.return}t!==null&&Ls(e,t,l,n),e.flags|=262144}function Ui(t){for(t=t.firstContext;t!==null;){if(!ge(t.context._currentValue,t.memoizedValue))return!0;t=t.next}return!1}function un(t){an=t,al=null,t=t.dependencies,t!==null&&(t.firstContext=null)}function Vt(t){return Wo(an,t)}function Ni(t,e){return an===null&&un(t),Wo(t,e)}function Wo(t,e){var l=e._currentValue;if(e={context:e,memoizedValue:l,next:null},al===null){if(t===null)throw Error(c(308));al=e,t.dependencies={lanes:0,firstContext:e},t.flags|=524288}else al=al.next=e;return l}var rg=typeof AbortController<"u"?AbortController:function(){var t=[],e=this.signal={aborted:!1,addEventListener:function(l,n){t.push(n)}};this.abort=function(){e.aborted=!0,t.forEach(function(l){return l()})}},hg=f.unstable_scheduleCallback,dg=f.unstable_NormalPriority,Dt={$$typeof:Lt,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function Ys(){return{controller:new rg,data:new Map,refCount:0}}function Oa(t){t.refCount--,t.refCount===0&&hg(dg,function(){t.controller.abort()})}var za=null,qs=0,Bn=0,Ln=null;function mg(t,e){if(za===null){var l=za=[];qs=0,Bn=Gc(),Ln={status:"pending",value:void 0,then:function(n){l.push(n)}}}return qs++,e.then($o,$o),e}function $o(){if(--qs===0&&za!==null){Ln!==null&&(Ln.status="fulfilled");var t=za;za=null,Bn=0,Ln=null;for(var e=0;e<t.length;e++)(0,t[e])()}}function yg(t,e){var l=[],n={status:"pending",value:null,reason:null,then:function(a){l.push(a)}};return t.then(function(){n.status="fulfilled",n.value=e;for(var a=0;a<l.length;a++)(0,l[a])(e)},function(a){for(n.status="rejected",n.reason=a,a=0;a<l.length;a++)(0,l[a])(void 0)}),n}var Fo=x.S;x.S=function(t,e){Nh=de(),typeof e=="object"&&e!==null&&typeof e.then=="function"&&mg(t,e),Fo!==null&&Fo(t,e)};var sn=p(null);function js(){var t=sn.current;return t!==null?t:yt.pooledCache}function Hi(t,e){e===null?U(sn,sn.current):U(sn,e.pool)}function Io(){var t=js();return t===null?null:{parent:Dt._currentValue,pool:t}}var Yn=Error(c(460)),Xs=Error(c(474)),Bi=Error(c(542)),Li={then:function(){}};function Po(t){return t=t.status,t==="fulfilled"||t==="rejected"}function tr(t,e,l){switch(l=t[l],l===void 0?t.push(e):l!==e&&(e.then(tl,tl),e=l),e.status){case"fulfilled":return e.value;case"rejected":throw t=e.reason,lr(t),t;default:if(typeof e.status=="string")e.then(tl,tl);else{if(t=yt,t!==null&&100<t.shellSuspendCounter)throw Error(c(482));t=e,t.status="pending",t.then(function(n){if(e.status==="pending"){var a=e;a.status="fulfilled",a.value=n}},function(n){if(e.status==="pending"){var a=e;a.status="rejected",a.reason=n}})}switch(e.status){case"fulfilled":return e.value;case"rejected":throw t=e.reason,lr(t),t}throw fn=e,Yn}}function cn(t){try{var e=t._init;return e(t._payload)}catch(l){throw l!==null&&typeof l=="object"&&typeof l.then=="function"?(fn=l,Yn):l}}var fn=null;function er(){if(fn===null)throw Error(c(459));var t=fn;return fn=null,t}function lr(t){if(t===Yn||t===Bi)throw Error(c(483))}var qn=null,xa=0;function Yi(t){var e=xa;return xa+=1,qn===null&&(qn=[]),tr(qn,t,e)}function Ca(t,e){e=e.props.ref,t.ref=e!==void 0?e:null}function qi(t,e){throw e.$$typeof===et?Error(c(525)):(t=Object.prototype.toString.call(e),Error(c(31,t==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":t)))}function nr(t){function e(b,g){if(t){var T=b.deletions;T===null?(b.deletions=[g],b.flags|=16):T.push(g)}}function l(b,g){if(!t)return null;for(;g!==null;)e(b,g),g=g.sibling;return null}function n(b){for(var g=new Map;b!==null;)b.key!==null?g.set(b.key,b):g.set(b.index,b),b=b.sibling;return g}function a(b,g){return b=ll(b,g),b.index=0,b.sibling=null,b}function i(b,g,T){return b.index=T,t?(T=b.alternate,T!==null?(T=T.index,T<g?(b.flags|=67108866,g):T):(b.flags|=67108866,g)):(b.flags|=1048576,g)}function o(b){return t&&b.alternate===null&&(b.flags|=67108866),b}function h(b,g,T,C){return g===null||g.tag!==6?(g=Cs(T,b.mode,C),g.return=b,g):(g=a(g,T),g.return=b,g)}function m(b,g,T,C){var q=T.type;return q===Ct?O(b,g,T.props.children,C,T.key):g!==null&&(g.elementType===q||typeof q=="object"&&q!==null&&q.$$typeof===Tt&&cn(q)===g.type)?(g=a(g,T.props),Ca(g,T),g.return=b,g):(g=wi(T.type,T.key,T.props,null,b.mode,C),Ca(g,T),g.return=b,g)}function _(b,g,T,C){return g===null||g.tag!==4||g.stateNode.containerInfo!==T.containerInfo||g.stateNode.implementation!==T.implementation?(g=Ds(T,b.mode,C),g.return=b,g):(g=a(g,T.children||[]),g.return=b,g)}function O(b,g,T,C,q){return g===null||g.tag!==7?(g=ln(T,b.mode,C,q),g.return=b,g):(g=a(g,T),g.return=b,g)}function D(b,g,T){if(typeof g=="string"&&g!==""||typeof g=="number"||typeof g=="bigint")return g=Cs(""+g,b.mode,T),g.return=b,g;if(typeof g=="object"&&g!==null){switch(g.$$typeof){case gt:return T=wi(g.type,g.key,g.props,null,b.mode,T),Ca(T,g),T.return=b,T;case Et:return g=Ds(g,b.mode,T),g.return=b,g;case Tt:return g=cn(g),D(b,g,T)}if(Le(g)||ae(g))return g=ln(g,b.mode,T,null),g.return=b,g;if(typeof g.then=="function")return D(b,Yi(g),T);if(g.$$typeof===Lt)return D(b,Ni(b,g),T);qi(b,g)}return null}function A(b,g,T,C){var q=g!==null?g.key:null;if(typeof T=="string"&&T!==""||typeof T=="number"||typeof T=="bigint")return q!==null?null:h(b,g,""+T,C);if(typeof T=="object"&&T!==null){switch(T.$$typeof){case gt:return T.key===q?m(b,g,T,C):null;case Et:return T.key===q?_(b,g,T,C):null;case Tt:return T=cn(T),A(b,g,T,C)}if(Le(T)||ae(T))return q!==null?null:O(b,g,T,C,null);if(typeof T.then=="function")return A(b,g,Yi(T),C);if(T.$$typeof===Lt)return A(b,g,Ni(b,T),C);qi(b,T)}return null}function M(b,g,T,C,q){if(typeof C=="string"&&C!==""||typeof C=="number"||typeof C=="bigint")return b=b.get(T)||null,h(g,b,""+C,q);if(typeof C=="object"&&C!==null){switch(C.$$typeof){case gt:return b=b.get(C.key===null?T:C.key)||null,m(g,b,C,q);case Et:return b=b.get(C.key===null?T:C.key)||null,_(g,b,C,q);case Tt:return C=cn(C),M(b,g,T,C,q)}if(Le(C)||ae(C))return b=b.get(T)||null,O(g,b,C,q,null);if(typeof C.then=="function")return M(b,g,T,Yi(C),q);if(C.$$typeof===Lt)return M(b,g,T,Ni(g,C),q);qi(g,C)}return null}function H(b,g,T,C){for(var q=null,lt=null,Y=g,J=g=0,P=null;Y!==null&&J<T.length;J++){Y.index>J?(P=Y,Y=null):P=Y.sibling;var nt=A(b,Y,T[J],C);if(nt===null){Y===null&&(Y=P);break}t&&Y&&nt.alternate===null&&e(b,Y),g=i(nt,g,J),lt===null?q=nt:lt.sibling=nt,lt=nt,Y=P}if(J===T.length)return l(b,Y),tt&&nl(b,J),q;if(Y===null){for(;J<T.length;J++)Y=D(b,T[J],C),Y!==null&&(g=i(Y,g,J),lt===null?q=Y:lt.sibling=Y,lt=Y);return tt&&nl(b,J),q}for(Y=n(Y);J<T.length;J++)P=M(Y,b,J,T[J],C),P!==null&&(t&&P.alternate!==null&&Y.delete(P.key===null?J:P.key),g=i(P,g,J),lt===null?q=P:lt.sibling=P,lt=P);return t&&Y.forEach(function(Ql){return e(b,Ql)}),tt&&nl(b,J),q}function X(b,g,T,C){if(T==null)throw Error(c(151));for(var q=null,lt=null,Y=g,J=g=0,P=null,nt=T.next();Y!==null&&!nt.done;J++,nt=T.next()){Y.index>J?(P=Y,Y=null):P=Y.sibling;var Ql=A(b,Y,nt.value,C);if(Ql===null){Y===null&&(Y=P);break}t&&Y&&Ql.alternate===null&&e(b,Y),g=i(Ql,g,J),lt===null?q=Ql:lt.sibling=Ql,lt=Ql,Y=P}if(nt.done)return l(b,Y),tt&&nl(b,J),q;if(Y===null){for(;!nt.done;J++,nt=T.next())nt=D(b,nt.value,C),nt!==null&&(g=i(nt,g,J),lt===null?q=nt:lt.sibling=nt,lt=nt);return tt&&nl(b,J),q}for(Y=n(Y);!nt.done;J++,nt=T.next())nt=M(Y,b,J,nt.value,C),nt!==null&&(t&&nt.alternate!==null&&Y.delete(nt.key===null?J:nt.key),g=i(nt,g,J),lt===null?q=nt:lt.sibling=nt,lt=nt);return t&&Y.forEach(function(Op){return e(b,Op)}),tt&&nl(b,J),q}function dt(b,g,T,C){if(typeof T=="object"&&T!==null&&T.type===Ct&&T.key===null&&(T=T.props.children),typeof T=="object"&&T!==null){switch(T.$$typeof){case gt:t:{for(var q=T.key;g!==null;){if(g.key===q){if(q=T.type,q===Ct){if(g.tag===7){l(b,g.sibling),C=a(g,T.props.children),C.return=b,b=C;break t}}else if(g.elementType===q||typeof q=="object"&&q!==null&&q.$$typeof===Tt&&cn(q)===g.type){l(b,g.sibling),C=a(g,T.props),Ca(C,T),C.return=b,b=C;break t}l(b,g);break}else e(b,g);g=g.sibling}T.type===Ct?(C=ln(T.props.children,b.mode,C,T.key),C.return=b,b=C):(C=wi(T.type,T.key,T.props,null,b.mode,C),Ca(C,T),C.return=b,b=C)}return o(b);case Et:t:{for(q=T.key;g!==null;){if(g.key===q)if(g.tag===4&&g.stateNode.containerInfo===T.containerInfo&&g.stateNode.implementation===T.implementation){l(b,g.sibling),C=a(g,T.children||[]),C.return=b,b=C;break t}else{l(b,g);break}else e(b,g);g=g.sibling}C=Ds(T,b.mode,C),C.return=b,b=C}return o(b);case Tt:return T=cn(T),dt(b,g,T,C)}if(Le(T))return H(b,g,T,C);if(ae(T)){if(q=ae(T),typeof q!="function")throw Error(c(150));return T=q.call(T),X(b,g,T,C)}if(typeof T.then=="function")return dt(b,g,Yi(T),C);if(T.$$typeof===Lt)return dt(b,g,Ni(b,T),C);qi(b,T)}return typeof T=="string"&&T!==""||typeof T=="number"||typeof T=="bigint"?(T=""+T,g!==null&&g.tag===6?(l(b,g.sibling),C=a(g,T),C.return=b,b=C):(l(b,g),C=Cs(T,b.mode,C),C.return=b,b=C),o(b)):l(b,g)}return function(b,g,T,C){try{xa=0;var q=dt(b,g,T,C);return qn=null,q}catch(Y){if(Y===Yn||Y===Bi)throw Y;var lt=pe(29,Y,null,b.mode);return lt.lanes=C,lt.return=b,lt}finally{}}}var on=nr(!0),ar=nr(!1),Ol=!1;function Gs(t){t.updateQueue={baseState:t.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function Qs(t,e){t=t.updateQueue,e.updateQueue===t&&(e.updateQueue={baseState:t.baseState,firstBaseUpdate:t.firstBaseUpdate,lastBaseUpdate:t.lastBaseUpdate,shared:t.shared,callbacks:null})}function zl(t){return{lane:t,tag:0,payload:null,callback:null,next:null}}function xl(t,e,l){var n=t.updateQueue;if(n===null)return null;if(n=n.shared,(it&2)!==0){var a=n.pending;return a===null?e.next=e:(e.next=a.next,a.next=e),n.pending=e,e=Di(t),Xo(t,null,l),e}return Ci(t,n,e,l),Di(t)}function Da(t,e,l){if(e=e.updateQueue,e!==null&&(e=e.shared,(l&4194048)!==0)){var n=e.lanes;n&=t.pendingLanes,l|=n,e.lanes=l,kf(t,l)}}function Zs(t,e){var l=t.updateQueue,n=t.alternate;if(n!==null&&(n=n.updateQueue,l===n)){var a=null,i=null;if(l=l.firstBaseUpdate,l!==null){do{var o={lane:l.lane,tag:l.tag,payload:l.payload,callback:null,next:null};i===null?a=i=o:i=i.next=o,l=l.next}while(l!==null);i===null?a=i=e:i=i.next=e}else a=i=e;l={baseState:n.baseState,firstBaseUpdate:a,lastBaseUpdate:i,shared:n.shared,callbacks:n.callbacks},t.updateQueue=l;return}t=l.lastBaseUpdate,t===null?l.firstBaseUpdate=e:t.next=e,l.lastBaseUpdate=e}var Vs=!1;function wa(){if(Vs){var t=Ln;if(t!==null)throw t}}function Ra(t,e,l,n){Vs=!1;var a=t.updateQueue;Ol=!1;var i=a.firstBaseUpdate,o=a.lastBaseUpdate,h=a.shared.pending;if(h!==null){a.shared.pending=null;var m=h,_=m.next;m.next=null,o===null?i=_:o.next=_,o=m;var O=t.alternate;O!==null&&(O=O.updateQueue,h=O.lastBaseUpdate,h!==o&&(h===null?O.firstBaseUpdate=_:h.next=_,O.lastBaseUpdate=m))}if(i!==null){var D=a.baseState;o=0,O=_=m=null,h=i;do{var A=h.lane&-536870913,M=A!==h.lane;if(M?(I&A)===A:(n&A)===A){A!==0&&A===Bn&&(Vs=!0),O!==null&&(O=O.next={lane:0,tag:h.tag,payload:h.payload,callback:null,next:null});t:{var H=t,X=h;A=e;var dt=l;switch(X.tag){case 1:if(H=X.payload,typeof H=="function"){D=H.call(dt,D,A);break t}D=H;break t;case 3:H.flags=H.flags&-65537|128;case 0:if(H=X.payload,A=typeof H=="function"?H.call(dt,D,A):H,A==null)break t;D=B({},D,A);break t;case 2:Ol=!0}}A=h.callback,A!==null&&(t.flags|=64,M&&(t.flags|=8192),M=a.callbacks,M===null?a.callbacks=[A]:M.push(A))}else M={lane:A,tag:h.tag,payload:h.payload,callback:h.callback,next:null},O===null?(_=O=M,m=D):O=O.next=M,o|=A;if(h=h.next,h===null){if(h=a.shared.pending,h===null)break;M=h,h=M.next,M.next=null,a.lastBaseUpdate=M,a.shared.pending=null}}while(!0);O===null&&(m=D),a.baseState=m,a.firstBaseUpdate=_,a.lastBaseUpdate=O,i===null&&(a.shared.lanes=0),Ul|=o,t.lanes=o,t.memoizedState=D}}function ir(t,e){if(typeof t!="function")throw Error(c(191,t));t.call(e)}function ur(t,e){var l=t.callbacks;if(l!==null)for(t.callbacks=null,t=0;t<l.length;t++)ir(l[t],e)}var jn=p(null),ji=p(0);function sr(t,e){t=ml,U(ji,t),U(jn,e),ml=t|e.baseLanes}function Ks(){U(ji,ml),U(jn,jn.current)}function Js(){ml=ji.current,w(jn),w(ji)}var ve=p(null),De=null;function Cl(t){var e=t.alternate;U(zt,zt.current&1),U(ve,t),De===null&&(e===null||jn.current!==null||e.memoizedState!==null)&&(De=t)}function ks(t){U(zt,zt.current),U(ve,t),De===null&&(De=t)}function cr(t){t.tag===22?(U(zt,zt.current),U(ve,t),De===null&&(De=t)):Dl()}function Dl(){U(zt,zt.current),U(ve,ve.current)}function Se(t){w(ve),De===t&&(De=null),w(zt)}var zt=p(0);function Xi(t){for(var e=t;e!==null;){if(e.tag===13){var l=e.memoizedState;if(l!==null&&(l=l.dehydrated,l===null||tf(l)||ef(l)))return e}else if(e.tag===19&&(e.memoizedProps.revealOrder==="forwards"||e.memoizedProps.revealOrder==="backwards"||e.memoizedProps.revealOrder==="unstable_legacy-backwards"||e.memoizedProps.revealOrder==="together")){if((e.flags&128)!==0)return e}else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break;for(;e.sibling===null;){if(e.return===null||e.return===t)return null;e=e.return}e.sibling.return=e.return,e=e.sibling}return null}var ul=0,K=null,rt=null,wt=null,Gi=!1,Xn=!1,rn=!1,Qi=0,Ua=0,Gn=null,gg=0;function _t(){throw Error(c(321))}function Ws(t,e){if(e===null)return!1;for(var l=0;l<e.length&&l<t.length;l++)if(!ge(t[l],e[l]))return!1;return!0}function $s(t,e,l,n,a,i){return ul=i,K=e,e.memoizedState=null,e.updateQueue=null,e.lanes=0,x.H=t===null||t.memoizedState===null?Vr:rc,rn=!1,i=l(n,a),rn=!1,Xn&&(i=or(e,l,n,a)),fr(t),i}function fr(t){x.H=Ba;var e=rt!==null&&rt.next!==null;if(ul=0,wt=rt=K=null,Gi=!1,Ua=0,Gn=null,e)throw Error(c(300));t===null||Rt||(t=t.dependencies,t!==null&&Ui(t)&&(Rt=!0))}function or(t,e,l,n){K=t;var a=0;do{if(Xn&&(Gn=null),Ua=0,Xn=!1,25<=a)throw Error(c(301));if(a+=1,wt=rt=null,t.updateQueue!=null){var i=t.updateQueue;i.lastEffect=null,i.events=null,i.stores=null,i.memoCache!=null&&(i.memoCache.index=0)}x.H=Kr,i=e(l,n)}while(Xn);return i}function pg(){var t=x.H,e=t.useState()[0];return e=typeof e.then=="function"?Na(e):e,t=t.useState()[0],(rt!==null?rt.memoizedState:null)!==t&&(K.flags|=1024),e}function Fs(){var t=Qi!==0;return Qi=0,t}function Is(t,e,l){e.updateQueue=t.updateQueue,e.flags&=-2053,t.lanes&=~l}function Ps(t){if(Gi){for(t=t.memoizedState;t!==null;){var e=t.queue;e!==null&&(e.pending=null),t=t.next}Gi=!1}ul=0,wt=rt=K=null,Xn=!1,Ua=Qi=0,Gn=null}function Pt(){var t={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return wt===null?K.memoizedState=wt=t:wt=wt.next=t,wt}function xt(){if(rt===null){var t=K.alternate;t=t!==null?t.memoizedState:null}else t=rt.next;var e=wt===null?K.memoizedState:wt.next;if(e!==null)wt=e,rt=t;else{if(t===null)throw K.alternate===null?Error(c(467)):Error(c(310));rt=t,t={memoizedState:rt.memoizedState,baseState:rt.baseState,baseQueue:rt.baseQueue,queue:rt.queue,next:null},wt===null?K.memoizedState=wt=t:wt=wt.next=t}return wt}function Zi(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function Na(t){var e=Ua;return Ua+=1,Gn===null&&(Gn=[]),t=tr(Gn,t,e),e=K,(wt===null?e.memoizedState:wt.next)===null&&(e=e.alternate,x.H=e===null||e.memoizedState===null?Vr:rc),t}function Vi(t){if(t!==null&&typeof t=="object"){if(typeof t.then=="function")return Na(t);if(t.$$typeof===Lt)return Vt(t)}throw Error(c(438,String(t)))}function tc(t){var e=null,l=K.updateQueue;if(l!==null&&(e=l.memoCache),e==null){var n=K.alternate;n!==null&&(n=n.updateQueue,n!==null&&(n=n.memoCache,n!=null&&(e={data:n.data.map(function(a){return a.slice()}),index:0})))}if(e==null&&(e={data:[],index:0}),l===null&&(l=Zi(),K.updateQueue=l),l.memoCache=e,l=e.data[e.index],l===void 0)for(l=e.data[e.index]=Array(t),n=0;n<t;n++)l[n]=pn;return e.index++,l}function sl(t,e){return typeof e=="function"?e(t):e}function Ki(t){var e=xt();return ec(e,rt,t)}function ec(t,e,l){var n=t.queue;if(n===null)throw Error(c(311));n.lastRenderedReducer=l;var a=t.baseQueue,i=n.pending;if(i!==null){if(a!==null){var o=a.next;a.next=i.next,i.next=o}e.baseQueue=a=i,n.pending=null}if(i=t.baseState,a===null)t.memoizedState=i;else{e=a.next;var h=o=null,m=null,_=e,O=!1;do{var D=_.lane&-536870913;if(D!==_.lane?(I&D)===D:(ul&D)===D){var A=_.revertLane;if(A===0)m!==null&&(m=m.next={lane:0,revertLane:0,gesture:null,action:_.action,hasEagerState:_.hasEagerState,eagerState:_.eagerState,next:null}),D===Bn&&(O=!0);else if((ul&A)===A){_=_.next,A===Bn&&(O=!0);continue}else D={lane:0,revertLane:_.revertLane,gesture:null,action:_.action,hasEagerState:_.hasEagerState,eagerState:_.eagerState,next:null},m===null?(h=m=D,o=i):m=m.next=D,K.lanes|=A,Ul|=A;D=_.action,rn&&l(i,D),i=_.hasEagerState?_.eagerState:l(i,D)}else A={lane:D,revertLane:_.revertLane,gesture:_.gesture,action:_.action,hasEagerState:_.hasEagerState,eagerState:_.eagerState,next:null},m===null?(h=m=A,o=i):m=m.next=A,K.lanes|=D,Ul|=D;_=_.next}while(_!==null&&_!==e);if(m===null?o=i:m.next=h,!ge(i,t.memoizedState)&&(Rt=!0,O&&(l=Ln,l!==null)))throw l;t.memoizedState=i,t.baseState=o,t.baseQueue=m,n.lastRenderedState=i}return a===null&&(n.lanes=0),[t.memoizedState,n.dispatch]}function lc(t){var e=xt(),l=e.queue;if(l===null)throw Error(c(311));l.lastRenderedReducer=t;var n=l.dispatch,a=l.pending,i=e.memoizedState;if(a!==null){l.pending=null;var o=a=a.next;do i=t(i,o.action),o=o.next;while(o!==a);ge(i,e.memoizedState)||(Rt=!0),e.memoizedState=i,e.baseQueue===null&&(e.baseState=i),l.lastRenderedState=i}return[i,n]}function rr(t,e,l){var n=K,a=xt(),i=tt;if(i){if(l===void 0)throw Error(c(407));l=l()}else l=e();var o=!ge((rt||a).memoizedState,l);if(o&&(a.memoizedState=l,Rt=!0),a=a.queue,ic(mr.bind(null,n,a,t),[t]),a.getSnapshot!==e||o||wt!==null&&wt.memoizedState.tag&1){if(n.flags|=2048,Qn(9,{destroy:void 0},dr.bind(null,n,a,l,e),null),yt===null)throw Error(c(349));i||(ul&127)!==0||hr(n,e,l)}return l}function hr(t,e,l){t.flags|=16384,t={getSnapshot:e,value:l},e=K.updateQueue,e===null?(e=Zi(),K.updateQueue=e,e.stores=[t]):(l=e.stores,l===null?e.stores=[t]:l.push(t))}function dr(t,e,l,n){e.value=l,e.getSnapshot=n,yr(e)&&gr(t)}function mr(t,e,l){return l(function(){yr(e)&&gr(t)})}function yr(t){var e=t.getSnapshot;t=t.value;try{var l=e();return!ge(t,l)}catch{return!0}}function gr(t){var e=en(t,2);e!==null&&re(e,t,2)}function nc(t){var e=Pt();if(typeof t=="function"){var l=t;if(t=l(),rn){Sl(!0);try{l()}finally{Sl(!1)}}}return e.memoizedState=e.baseState=t,e.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:sl,lastRenderedState:t},e}function pr(t,e,l,n){return t.baseState=l,ec(t,rt,typeof n=="function"?n:sl)}function vg(t,e,l,n,a){if(Wi(t))throw Error(c(485));if(t=e.action,t!==null){var i={payload:a,action:t,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(o){i.listeners.push(o)}};x.T!==null?l(!0):i.isTransition=!1,n(i),l=e.pending,l===null?(i.next=e.pending=i,vr(e,i)):(i.next=l.next,e.pending=l.next=i)}}function vr(t,e){var l=e.action,n=e.payload,a=t.state;if(e.isTransition){var i=x.T,o={};x.T=o;try{var h=l(a,n),m=x.S;m!==null&&m(o,h),Sr(t,e,h)}catch(_){ac(t,e,_)}finally{i!==null&&o.types!==null&&(i.types=o.types),x.T=i}}else try{i=l(a,n),Sr(t,e,i)}catch(_){ac(t,e,_)}}function Sr(t,e,l){l!==null&&typeof l=="object"&&typeof l.then=="function"?l.then(function(n){br(t,e,n)},function(n){return ac(t,e,n)}):br(t,e,l)}function br(t,e,l){e.status="fulfilled",e.value=l,Er(e),t.state=l,e=t.pending,e!==null&&(l=e.next,l===e?t.pending=null:(l=l.next,e.next=l,vr(t,l)))}function ac(t,e,l){var n=t.pending;if(t.pending=null,n!==null){n=n.next;do e.status="rejected",e.reason=l,Er(e),e=e.next;while(e!==n)}t.action=null}function Er(t){t=t.listeners;for(var e=0;e<t.length;e++)(0,t[e])()}function Tr(t,e){return e}function _r(t,e){if(tt){var l=yt.formState;if(l!==null){t:{var n=K;if(tt){if(vt){e:{for(var a=vt,i=Ce;a.nodeType!==8;){if(!i){a=null;break e}if(a=we(a.nextSibling),a===null){a=null;break e}}i=a.data,a=i==="F!"||i==="F"?a:null}if(a){vt=we(a.nextSibling),n=a.data==="F!";break t}}Al(n)}n=!1}n&&(e=l[0])}}return l=Pt(),l.memoizedState=l.baseState=e,n={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Tr,lastRenderedState:e},l.queue=n,l=Gr.bind(null,K,n),n.dispatch=l,n=nc(!1),i=oc.bind(null,K,!1,n.queue),n=Pt(),a={state:e,dispatch:null,action:t,pending:null},n.queue=a,l=vg.bind(null,K,a,i,l),a.dispatch=l,n.memoizedState=t,[e,l,!1]}function Ar(t){var e=xt();return Mr(e,rt,t)}function Mr(t,e,l){if(e=ec(t,e,Tr)[0],t=Ki(sl)[0],typeof e=="object"&&e!==null&&typeof e.then=="function")try{var n=Na(e)}catch(o){throw o===Yn?Bi:o}else n=e;e=xt();var a=e.queue,i=a.dispatch;return l!==e.memoizedState&&(K.flags|=2048,Qn(9,{destroy:void 0},Sg.bind(null,a,l),null)),[n,i,t]}function Sg(t,e){t.action=e}function Or(t){var e=xt(),l=rt;if(l!==null)return Mr(e,l,t);xt(),e=e.memoizedState,l=xt();var n=l.queue.dispatch;return l.memoizedState=t,[e,n,!1]}function Qn(t,e,l,n){return t={tag:t,create:l,deps:n,inst:e,next:null},e=K.updateQueue,e===null&&(e=Zi(),K.updateQueue=e),l=e.lastEffect,l===null?e.lastEffect=t.next=t:(n=l.next,l.next=t,t.next=n,e.lastEffect=t),t}function zr(){return xt().memoizedState}function Ji(t,e,l,n){var a=Pt();K.flags|=t,a.memoizedState=Qn(1|e,{destroy:void 0},l,n===void 0?null:n)}function ki(t,e,l,n){var a=xt();n=n===void 0?null:n;var i=a.memoizedState.inst;rt!==null&&n!==null&&Ws(n,rt.memoizedState.deps)?a.memoizedState=Qn(e,i,l,n):(K.flags|=t,a.memoizedState=Qn(1|e,i,l,n))}function xr(t,e){Ji(8390656,8,t,e)}function ic(t,e){ki(2048,8,t,e)}function bg(t){K.flags|=4;var e=K.updateQueue;if(e===null)e=Zi(),K.updateQueue=e,e.events=[t];else{var l=e.events;l===null?e.events=[t]:l.push(t)}}function Cr(t){var e=xt().memoizedState;return bg({ref:e,nextImpl:t}),function(){if((it&2)!==0)throw Error(c(440));return e.impl.apply(void 0,arguments)}}function Dr(t,e){return ki(4,2,t,e)}function wr(t,e){return ki(4,4,t,e)}function Rr(t,e){if(typeof e=="function"){t=t();var l=e(t);return function(){typeof l=="function"?l():e(null)}}if(e!=null)return t=t(),e.current=t,function(){e.current=null}}function Ur(t,e,l){l=l!=null?l.concat([t]):null,ki(4,4,Rr.bind(null,e,t),l)}function uc(){}function Nr(t,e){var l=xt();e=e===void 0?null:e;var n=l.memoizedState;return e!==null&&Ws(e,n[1])?n[0]:(l.memoizedState=[t,e],t)}function Hr(t,e){var l=xt();e=e===void 0?null:e;var n=l.memoizedState;if(e!==null&&Ws(e,n[1]))return n[0];if(n=t(),rn){Sl(!0);try{t()}finally{Sl(!1)}}return l.memoizedState=[n,e],n}function sc(t,e,l){return l===void 0||(ul&1073741824)!==0&&(I&261930)===0?t.memoizedState=e:(t.memoizedState=l,t=Bh(),K.lanes|=t,Ul|=t,l)}function Br(t,e,l,n){return ge(l,e)?l:jn.current!==null?(t=sc(t,l,n),ge(t,e)||(Rt=!0),t):(ul&42)===0||(ul&1073741824)!==0&&(I&261930)===0?(Rt=!0,t.memoizedState=l):(t=Bh(),K.lanes|=t,Ul|=t,e)}function Lr(t,e,l,n,a){var i=R.p;R.p=i!==0&&8>i?i:8;var o=x.T,h={};x.T=h,oc(t,!1,e,l);try{var m=a(),_=x.S;if(_!==null&&_(h,m),m!==null&&typeof m=="object"&&typeof m.then=="function"){var O=yg(m,n);Ha(t,e,O,Te(t))}else Ha(t,e,n,Te(t))}catch(D){Ha(t,e,{then:function(){},status:"rejected",reason:D},Te())}finally{R.p=i,o!==null&&h.types!==null&&(o.types=h.types),x.T=o}}function Eg(){}function cc(t,e,l,n){if(t.tag!==5)throw Error(c(476));var a=Yr(t).queue;Lr(t,a,e,Q,l===null?Eg:function(){return qr(t),l(n)})}function Yr(t){var e=t.memoizedState;if(e!==null)return e;e={memoizedState:Q,baseState:Q,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:sl,lastRenderedState:Q},next:null};var l={};return e.next={memoizedState:l,baseState:l,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:sl,lastRenderedState:l},next:null},t.memoizedState=e,t=t.alternate,t!==null&&(t.memoizedState=e),e}function qr(t){var e=Yr(t);e.next===null&&(e=t.alternate.memoizedState),Ha(t,e.next.queue,{},Te())}function fc(){return Vt(Ia)}function jr(){return xt().memoizedState}function Xr(){return xt().memoizedState}function Tg(t){for(var e=t.return;e!==null;){switch(e.tag){case 24:case 3:var l=Te();t=zl(l);var n=xl(e,t,l);n!==null&&(re(n,e,l),Da(n,e,l)),e={cache:Ys()},t.payload=e;return}e=e.return}}function _g(t,e,l){var n=Te();l={lane:n,revertLane:0,gesture:null,action:l,hasEagerState:!1,eagerState:null,next:null},Wi(t)?Qr(e,l):(l=zs(t,e,l,n),l!==null&&(re(l,t,n),Zr(l,e,n)))}function Gr(t,e,l){var n=Te();Ha(t,e,l,n)}function Ha(t,e,l,n){var a={lane:n,revertLane:0,gesture:null,action:l,hasEagerState:!1,eagerState:null,next:null};if(Wi(t))Qr(e,a);else{var i=t.alternate;if(t.lanes===0&&(i===null||i.lanes===0)&&(i=e.lastRenderedReducer,i!==null))try{var o=e.lastRenderedState,h=i(o,l);if(a.hasEagerState=!0,a.eagerState=h,ge(h,o))return Ci(t,e,a,0),yt===null&&xi(),!1}catch{}finally{}if(l=zs(t,e,a,n),l!==null)return re(l,t,n),Zr(l,e,n),!0}return!1}function oc(t,e,l,n){if(n={lane:2,revertLane:Gc(),gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null},Wi(t)){if(e)throw Error(c(479))}else e=zs(t,l,n,2),e!==null&&re(e,t,2)}function Wi(t){var e=t.alternate;return t===K||e!==null&&e===K}function Qr(t,e){Xn=Gi=!0;var l=t.pending;l===null?e.next=e:(e.next=l.next,l.next=e),t.pending=e}function Zr(t,e,l){if((l&4194048)!==0){var n=e.lanes;n&=t.pendingLanes,l|=n,e.lanes=l,kf(t,l)}}var Ba={readContext:Vt,use:Vi,useCallback:_t,useContext:_t,useEffect:_t,useImperativeHandle:_t,useLayoutEffect:_t,useInsertionEffect:_t,useMemo:_t,useReducer:_t,useRef:_t,useState:_t,useDebugValue:_t,useDeferredValue:_t,useTransition:_t,useSyncExternalStore:_t,useId:_t,useHostTransitionStatus:_t,useFormState:_t,useActionState:_t,useOptimistic:_t,useMemoCache:_t,useCacheRefresh:_t};Ba.useEffectEvent=_t;var Vr={readContext:Vt,use:Vi,useCallback:function(t,e){return Pt().memoizedState=[t,e===void 0?null:e],t},useContext:Vt,useEffect:xr,useImperativeHandle:function(t,e,l){l=l!=null?l.concat([t]):null,Ji(4194308,4,Rr.bind(null,e,t),l)},useLayoutEffect:function(t,e){return Ji(4194308,4,t,e)},useInsertionEffect:function(t,e){Ji(4,2,t,e)},useMemo:function(t,e){var l=Pt();e=e===void 0?null:e;var n=t();if(rn){Sl(!0);try{t()}finally{Sl(!1)}}return l.memoizedState=[n,e],n},useReducer:function(t,e,l){var n=Pt();if(l!==void 0){var a=l(e);if(rn){Sl(!0);try{l(e)}finally{Sl(!1)}}}else a=e;return n.memoizedState=n.baseState=a,t={pending:null,lanes:0,dispatch:null,lastRenderedReducer:t,lastRenderedState:a},n.queue=t,t=t.dispatch=_g.bind(null,K,t),[n.memoizedState,t]},useRef:function(t){var e=Pt();return t={current:t},e.memoizedState=t},useState:function(t){t=nc(t);var e=t.queue,l=Gr.bind(null,K,e);return e.dispatch=l,[t.memoizedState,l]},useDebugValue:uc,useDeferredValue:function(t,e){var l=Pt();return sc(l,t,e)},useTransition:function(){var t=nc(!1);return t=Lr.bind(null,K,t.queue,!0,!1),Pt().memoizedState=t,[!1,t]},useSyncExternalStore:function(t,e,l){var n=K,a=Pt();if(tt){if(l===void 0)throw Error(c(407));l=l()}else{if(l=e(),yt===null)throw Error(c(349));(I&127)!==0||hr(n,e,l)}a.memoizedState=l;var i={value:l,getSnapshot:e};return a.queue=i,xr(mr.bind(null,n,i,t),[t]),n.flags|=2048,Qn(9,{destroy:void 0},dr.bind(null,n,i,l,e),null),l},useId:function(){var t=Pt(),e=yt.identifierPrefix;if(tt){var l=Ve,n=Ze;l=(n&~(1<<32-ye(n)-1)).toString(32)+l,e="_"+e+"R_"+l,l=Qi++,0<l&&(e+="H"+l.toString(32)),e+="_"}else l=gg++,e="_"+e+"r_"+l.toString(32)+"_";return t.memoizedState=e},useHostTransitionStatus:fc,useFormState:_r,useActionState:_r,useOptimistic:function(t){var e=Pt();e.memoizedState=e.baseState=t;var l={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return e.queue=l,e=oc.bind(null,K,!0,l),l.dispatch=e,[t,e]},useMemoCache:tc,useCacheRefresh:function(){return Pt().memoizedState=Tg.bind(null,K)},useEffectEvent:function(t){var e=Pt(),l={impl:t};return e.memoizedState=l,function(){if((it&2)!==0)throw Error(c(440));return l.impl.apply(void 0,arguments)}}},rc={readContext:Vt,use:Vi,useCallback:Nr,useContext:Vt,useEffect:ic,useImperativeHandle:Ur,useInsertionEffect:Dr,useLayoutEffect:wr,useMemo:Hr,useReducer:Ki,useRef:zr,useState:function(){return Ki(sl)},useDebugValue:uc,useDeferredValue:function(t,e){var l=xt();return Br(l,rt.memoizedState,t,e)},useTransition:function(){var t=Ki(sl)[0],e=xt().memoizedState;return[typeof t=="boolean"?t:Na(t),e]},useSyncExternalStore:rr,useId:jr,useHostTransitionStatus:fc,useFormState:Ar,useActionState:Ar,useOptimistic:function(t,e){var l=xt();return pr(l,rt,t,e)},useMemoCache:tc,useCacheRefresh:Xr};rc.useEffectEvent=Cr;var Kr={readContext:Vt,use:Vi,useCallback:Nr,useContext:Vt,useEffect:ic,useImperativeHandle:Ur,useInsertionEffect:Dr,useLayoutEffect:wr,useMemo:Hr,useReducer:lc,useRef:zr,useState:function(){return lc(sl)},useDebugValue:uc,useDeferredValue:function(t,e){var l=xt();return rt===null?sc(l,t,e):Br(l,rt.memoizedState,t,e)},useTransition:function(){var t=lc(sl)[0],e=xt().memoizedState;return[typeof t=="boolean"?t:Na(t),e]},useSyncExternalStore:rr,useId:jr,useHostTransitionStatus:fc,useFormState:Or,useActionState:Or,useOptimistic:function(t,e){var l=xt();return rt!==null?pr(l,rt,t,e):(l.baseState=t,[t,l.queue.dispatch])},useMemoCache:tc,useCacheRefresh:Xr};Kr.useEffectEvent=Cr;function hc(t,e,l,n){e=t.memoizedState,l=l(n,e),l=l==null?e:B({},e,l),t.memoizedState=l,t.lanes===0&&(t.updateQueue.baseState=l)}var dc={enqueueSetState:function(t,e,l){t=t._reactInternals;var n=Te(),a=zl(n);a.payload=e,l!=null&&(a.callback=l),e=xl(t,a,n),e!==null&&(re(e,t,n),Da(e,t,n))},enqueueReplaceState:function(t,e,l){t=t._reactInternals;var n=Te(),a=zl(n);a.tag=1,a.payload=e,l!=null&&(a.callback=l),e=xl(t,a,n),e!==null&&(re(e,t,n),Da(e,t,n))},enqueueForceUpdate:function(t,e){t=t._reactInternals;var l=Te(),n=zl(l);n.tag=2,e!=null&&(n.callback=e),e=xl(t,n,l),e!==null&&(re(e,t,l),Da(e,t,l))}};function Jr(t,e,l,n,a,i,o){return t=t.stateNode,typeof t.shouldComponentUpdate=="function"?t.shouldComponentUpdate(n,i,o):e.prototype&&e.prototype.isPureReactComponent?!Ta(l,n)||!Ta(a,i):!0}function kr(t,e,l,n){t=e.state,typeof e.componentWillReceiveProps=="function"&&e.componentWillReceiveProps(l,n),typeof e.UNSAFE_componentWillReceiveProps=="function"&&e.UNSAFE_componentWillReceiveProps(l,n),e.state!==t&&dc.enqueueReplaceState(e,e.state,null)}function hn(t,e){var l=e;if("ref"in e){l={};for(var n in e)n!=="ref"&&(l[n]=e[n])}if(t=t.defaultProps){l===e&&(l=B({},l));for(var a in t)l[a]===void 0&&(l[a]=t[a])}return l}function Wr(t){zi(t)}function $r(t){console.error(t)}function Fr(t){zi(t)}function $i(t,e){try{var l=t.onUncaughtError;l(e.value,{componentStack:e.stack})}catch(n){setTimeout(function(){throw n})}}function Ir(t,e,l){try{var n=t.onCaughtError;n(l.value,{componentStack:l.stack,errorBoundary:e.tag===1?e.stateNode:null})}catch(a){setTimeout(function(){throw a})}}function mc(t,e,l){return l=zl(l),l.tag=3,l.payload={element:null},l.callback=function(){$i(t,e)},l}function Pr(t){return t=zl(t),t.tag=3,t}function th(t,e,l,n){var a=l.type.getDerivedStateFromError;if(typeof a=="function"){var i=n.value;t.payload=function(){return a(i)},t.callback=function(){Ir(e,l,n)}}var o=l.stateNode;o!==null&&typeof o.componentDidCatch=="function"&&(t.callback=function(){Ir(e,l,n),typeof a!="function"&&(Nl===null?Nl=new Set([this]):Nl.add(this));var h=n.stack;this.componentDidCatch(n.value,{componentStack:h!==null?h:""})})}function Ag(t,e,l,n,a){if(l.flags|=32768,n!==null&&typeof n=="object"&&typeof n.then=="function"){if(e=l.alternate,e!==null&&Hn(e,l,a,!0),l=ve.current,l!==null){switch(l.tag){case 31:case 13:return De===null?cu():l.alternate===null&&At===0&&(At=3),l.flags&=-257,l.flags|=65536,l.lanes=a,n===Li?l.flags|=16384:(e=l.updateQueue,e===null?l.updateQueue=new Set([n]):e.add(n),qc(t,n,a)),!1;case 22:return l.flags|=65536,n===Li?l.flags|=16384:(e=l.updateQueue,e===null?(e={transitions:null,markerInstances:null,retryQueue:new Set([n])},l.updateQueue=e):(l=e.retryQueue,l===null?e.retryQueue=new Set([n]):l.add(n)),qc(t,n,a)),!1}throw Error(c(435,l.tag))}return qc(t,n,a),cu(),!1}if(tt)return e=ve.current,e!==null?((e.flags&65536)===0&&(e.flags|=256),e.flags|=65536,e.lanes=a,n!==Us&&(t=Error(c(422),{cause:n}),Ma(Oe(t,l)))):(n!==Us&&(e=Error(c(423),{cause:n}),Ma(Oe(e,l))),t=t.current.alternate,t.flags|=65536,a&=-a,t.lanes|=a,n=Oe(n,l),a=mc(t.stateNode,n,a),Zs(t,a),At!==4&&(At=2)),!1;var i=Error(c(520),{cause:n});if(i=Oe(i,l),Za===null?Za=[i]:Za.push(i),At!==4&&(At=2),e===null)return!0;n=Oe(n,l),l=e;do{switch(l.tag){case 3:return l.flags|=65536,t=a&-a,l.lanes|=t,t=mc(l.stateNode,n,t),Zs(l,t),!1;case 1:if(e=l.type,i=l.stateNode,(l.flags&128)===0&&(typeof e.getDerivedStateFromError=="function"||i!==null&&typeof i.componentDidCatch=="function"&&(Nl===null||!Nl.has(i))))return l.flags|=65536,a&=-a,l.lanes|=a,a=Pr(a),th(a,t,l,n),Zs(l,a),!1}l=l.return}while(l!==null);return!1}var yc=Error(c(461)),Rt=!1;function Kt(t,e,l,n){e.child=t===null?ar(e,null,l,n):on(e,t.child,l,n)}function eh(t,e,l,n,a){l=l.render;var i=e.ref;if("ref"in n){var o={};for(var h in n)h!=="ref"&&(o[h]=n[h])}else o=n;return un(e),n=$s(t,e,l,o,i,a),h=Fs(),t!==null&&!Rt?(Is(t,e,a),cl(t,e,a)):(tt&&h&&ws(e),e.flags|=1,Kt(t,e,n,a),e.child)}function lh(t,e,l,n,a){if(t===null){var i=l.type;return typeof i=="function"&&!xs(i)&&i.defaultProps===void 0&&l.compare===null?(e.tag=15,e.type=i,nh(t,e,i,n,a)):(t=wi(l.type,null,n,e,e.mode,a),t.ref=e.ref,t.return=e,e.child=t)}if(i=t.child,!_c(t,a)){var o=i.memoizedProps;if(l=l.compare,l=l!==null?l:Ta,l(o,n)&&t.ref===e.ref)return cl(t,e,a)}return e.flags|=1,t=ll(i,n),t.ref=e.ref,t.return=e,e.child=t}function nh(t,e,l,n,a){if(t!==null){var i=t.memoizedProps;if(Ta(i,n)&&t.ref===e.ref)if(Rt=!1,e.pendingProps=n=i,_c(t,a))(t.flags&131072)!==0&&(Rt=!0);else return e.lanes=t.lanes,cl(t,e,a)}return gc(t,e,l,n,a)}function ah(t,e,l,n){var a=n.children,i=t!==null?t.memoizedState:null;if(t===null&&e.stateNode===null&&(e.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),n.mode==="hidden"){if((e.flags&128)!==0){if(i=i!==null?i.baseLanes|l:l,t!==null){for(n=e.child=t.child,a=0;n!==null;)a=a|n.lanes|n.childLanes,n=n.sibling;n=a&~i}else n=0,e.child=null;return ih(t,e,i,l,n)}if((l&536870912)!==0)e.memoizedState={baseLanes:0,cachePool:null},t!==null&&Hi(e,i!==null?i.cachePool:null),i!==null?sr(e,i):Ks(),cr(e);else return n=e.lanes=536870912,ih(t,e,i!==null?i.baseLanes|l:l,l,n)}else i!==null?(Hi(e,i.cachePool),sr(e,i),Dl(),e.memoizedState=null):(t!==null&&Hi(e,null),Ks(),Dl());return Kt(t,e,a,l),e.child}function La(t,e){return t!==null&&t.tag===22||e.stateNode!==null||(e.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),e.sibling}function ih(t,e,l,n,a){var i=js();return i=i===null?null:{parent:Dt._currentValue,pool:i},e.memoizedState={baseLanes:l,cachePool:i},t!==null&&Hi(e,null),Ks(),cr(e),t!==null&&Hn(t,e,n,!0),e.childLanes=a,null}function Fi(t,e){return e=Pi({mode:e.mode,children:e.children},t.mode),e.ref=t.ref,t.child=e,e.return=t,e}function uh(t,e,l){return on(e,t.child,null,l),t=Fi(e,e.pendingProps),t.flags|=2,Se(e),e.memoizedState=null,t}function Mg(t,e,l){var n=e.pendingProps,a=(e.flags&128)!==0;if(e.flags&=-129,t===null){if(tt){if(n.mode==="hidden")return t=Fi(e,n),e.lanes=536870912,La(null,t);if(ks(e),(t=vt)?(t=vd(t,Ce),t=t!==null&&t.data==="&"?t:null,t!==null&&(e.memoizedState={dehydrated:t,treeContext:Tl!==null?{id:Ze,overflow:Ve}:null,retryLane:536870912,hydrationErrors:null},l=Qo(t),l.return=e,e.child=l,Zt=e,vt=null)):t=null,t===null)throw Al(e);return e.lanes=536870912,null}return Fi(e,n)}var i=t.memoizedState;if(i!==null){var o=i.dehydrated;if(ks(e),a)if(e.flags&256)e.flags&=-257,e=uh(t,e,l);else if(e.memoizedState!==null)e.child=t.child,e.flags|=128,e=null;else throw Error(c(558));else if(Rt||Hn(t,e,l,!1),a=(l&t.childLanes)!==0,Rt||a){if(n=yt,n!==null&&(o=Wf(n,l),o!==0&&o!==i.retryLane))throw i.retryLane=o,en(t,o),re(n,t,o),yc;cu(),e=uh(t,e,l)}else t=i.treeContext,vt=we(o.nextSibling),Zt=e,tt=!0,_l=null,Ce=!1,t!==null&&Ko(e,t),e=Fi(e,n),e.flags|=4096;return e}return t=ll(t.child,{mode:n.mode,children:n.children}),t.ref=e.ref,e.child=t,t.return=e,t}function Ii(t,e){var l=e.ref;if(l===null)t!==null&&t.ref!==null&&(e.flags|=4194816);else{if(typeof l!="function"&&typeof l!="object")throw Error(c(284));(t===null||t.ref!==l)&&(e.flags|=4194816)}}function gc(t,e,l,n,a){return un(e),l=$s(t,e,l,n,void 0,a),n=Fs(),t!==null&&!Rt?(Is(t,e,a),cl(t,e,a)):(tt&&n&&ws(e),e.flags|=1,Kt(t,e,l,a),e.child)}function sh(t,e,l,n,a,i){return un(e),e.updateQueue=null,l=or(e,n,l,a),fr(t),n=Fs(),t!==null&&!Rt?(Is(t,e,i),cl(t,e,i)):(tt&&n&&ws(e),e.flags|=1,Kt(t,e,l,i),e.child)}function ch(t,e,l,n,a){if(un(e),e.stateNode===null){var i=wn,o=l.contextType;typeof o=="object"&&o!==null&&(i=Vt(o)),i=new l(n,i),e.memoizedState=i.state!==null&&i.state!==void 0?i.state:null,i.updater=dc,e.stateNode=i,i._reactInternals=e,i=e.stateNode,i.props=n,i.state=e.memoizedState,i.refs={},Gs(e),o=l.contextType,i.context=typeof o=="object"&&o!==null?Vt(o):wn,i.state=e.memoizedState,o=l.getDerivedStateFromProps,typeof o=="function"&&(hc(e,l,o,n),i.state=e.memoizedState),typeof l.getDerivedStateFromProps=="function"||typeof i.getSnapshotBeforeUpdate=="function"||typeof i.UNSAFE_componentWillMount!="function"&&typeof i.componentWillMount!="function"||(o=i.state,typeof i.componentWillMount=="function"&&i.componentWillMount(),typeof i.UNSAFE_componentWillMount=="function"&&i.UNSAFE_componentWillMount(),o!==i.state&&dc.enqueueReplaceState(i,i.state,null),Ra(e,n,i,a),wa(),i.state=e.memoizedState),typeof i.componentDidMount=="function"&&(e.flags|=4194308),n=!0}else if(t===null){i=e.stateNode;var h=e.memoizedProps,m=hn(l,h);i.props=m;var _=i.context,O=l.contextType;o=wn,typeof O=="object"&&O!==null&&(o=Vt(O));var D=l.getDerivedStateFromProps;O=typeof D=="function"||typeof i.getSnapshotBeforeUpdate=="function",h=e.pendingProps!==h,O||typeof i.UNSAFE_componentWillReceiveProps!="function"&&typeof i.componentWillReceiveProps!="function"||(h||_!==o)&&kr(e,i,n,o),Ol=!1;var A=e.memoizedState;i.state=A,Ra(e,n,i,a),wa(),_=e.memoizedState,h||A!==_||Ol?(typeof D=="function"&&(hc(e,l,D,n),_=e.memoizedState),(m=Ol||Jr(e,l,m,n,A,_,o))?(O||typeof i.UNSAFE_componentWillMount!="function"&&typeof i.componentWillMount!="function"||(typeof i.componentWillMount=="function"&&i.componentWillMount(),typeof i.UNSAFE_componentWillMount=="function"&&i.UNSAFE_componentWillMount()),typeof i.componentDidMount=="function"&&(e.flags|=4194308)):(typeof i.componentDidMount=="function"&&(e.flags|=4194308),e.memoizedProps=n,e.memoizedState=_),i.props=n,i.state=_,i.context=o,n=m):(typeof i.componentDidMount=="function"&&(e.flags|=4194308),n=!1)}else{i=e.stateNode,Qs(t,e),o=e.memoizedProps,O=hn(l,o),i.props=O,D=e.pendingProps,A=i.context,_=l.contextType,m=wn,typeof _=="object"&&_!==null&&(m=Vt(_)),h=l.getDerivedStateFromProps,(_=typeof h=="function"||typeof i.getSnapshotBeforeUpdate=="function")||typeof i.UNSAFE_componentWillReceiveProps!="function"&&typeof i.componentWillReceiveProps!="function"||(o!==D||A!==m)&&kr(e,i,n,m),Ol=!1,A=e.memoizedState,i.state=A,Ra(e,n,i,a),wa();var M=e.memoizedState;o!==D||A!==M||Ol||t!==null&&t.dependencies!==null&&Ui(t.dependencies)?(typeof h=="function"&&(hc(e,l,h,n),M=e.memoizedState),(O=Ol||Jr(e,l,O,n,A,M,m)||t!==null&&t.dependencies!==null&&Ui(t.dependencies))?(_||typeof i.UNSAFE_componentWillUpdate!="function"&&typeof i.componentWillUpdate!="function"||(typeof i.componentWillUpdate=="function"&&i.componentWillUpdate(n,M,m),typeof i.UNSAFE_componentWillUpdate=="function"&&i.UNSAFE_componentWillUpdate(n,M,m)),typeof i.componentDidUpdate=="function"&&(e.flags|=4),typeof i.getSnapshotBeforeUpdate=="function"&&(e.flags|=1024)):(typeof i.componentDidUpdate!="function"||o===t.memoizedProps&&A===t.memoizedState||(e.flags|=4),typeof i.getSnapshotBeforeUpdate!="function"||o===t.memoizedProps&&A===t.memoizedState||(e.flags|=1024),e.memoizedProps=n,e.memoizedState=M),i.props=n,i.state=M,i.context=m,n=O):(typeof i.componentDidUpdate!="function"||o===t.memoizedProps&&A===t.memoizedState||(e.flags|=4),typeof i.getSnapshotBeforeUpdate!="function"||o===t.memoizedProps&&A===t.memoizedState||(e.flags|=1024),n=!1)}return i=n,Ii(t,e),n=(e.flags&128)!==0,i||n?(i=e.stateNode,l=n&&typeof l.getDerivedStateFromError!="function"?null:i.render(),e.flags|=1,t!==null&&n?(e.child=on(e,t.child,null,a),e.child=on(e,null,l,a)):Kt(t,e,l,a),e.memoizedState=i.state,t=e.child):t=cl(t,e,a),t}function fh(t,e,l,n){return nn(),e.flags|=256,Kt(t,e,l,n),e.child}var pc={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function vc(t){return{baseLanes:t,cachePool:Io()}}function Sc(t,e,l){return t=t!==null?t.childLanes&~l:0,e&&(t|=Ee),t}function oh(t,e,l){var n=e.pendingProps,a=!1,i=(e.flags&128)!==0,o;if((o=i)||(o=t!==null&&t.memoizedState===null?!1:(zt.current&2)!==0),o&&(a=!0,e.flags&=-129),o=(e.flags&32)!==0,e.flags&=-33,t===null){if(tt){if(a?Cl(e):Dl(),(t=vt)?(t=vd(t,Ce),t=t!==null&&t.data!=="&"?t:null,t!==null&&(e.memoizedState={dehydrated:t,treeContext:Tl!==null?{id:Ze,overflow:Ve}:null,retryLane:536870912,hydrationErrors:null},l=Qo(t),l.return=e,e.child=l,Zt=e,vt=null)):t=null,t===null)throw Al(e);return ef(t)?e.lanes=32:e.lanes=536870912,null}var h=n.children;return n=n.fallback,a?(Dl(),a=e.mode,h=Pi({mode:"hidden",children:h},a),n=ln(n,a,l,null),h.return=e,n.return=e,h.sibling=n,e.child=h,n=e.child,n.memoizedState=vc(l),n.childLanes=Sc(t,o,l),e.memoizedState=pc,La(null,n)):(Cl(e),bc(e,h))}var m=t.memoizedState;if(m!==null&&(h=m.dehydrated,h!==null)){if(i)e.flags&256?(Cl(e),e.flags&=-257,e=Ec(t,e,l)):e.memoizedState!==null?(Dl(),e.child=t.child,e.flags|=128,e=null):(Dl(),h=n.fallback,a=e.mode,n=Pi({mode:"visible",children:n.children},a),h=ln(h,a,l,null),h.flags|=2,n.return=e,h.return=e,n.sibling=h,e.child=n,on(e,t.child,null,l),n=e.child,n.memoizedState=vc(l),n.childLanes=Sc(t,o,l),e.memoizedState=pc,e=La(null,n));else if(Cl(e),ef(h)){if(o=h.nextSibling&&h.nextSibling.dataset,o)var _=o.dgst;o=_,n=Error(c(419)),n.stack="",n.digest=o,Ma({value:n,source:null,stack:null}),e=Ec(t,e,l)}else if(Rt||Hn(t,e,l,!1),o=(l&t.childLanes)!==0,Rt||o){if(o=yt,o!==null&&(n=Wf(o,l),n!==0&&n!==m.retryLane))throw m.retryLane=n,en(t,n),re(o,t,n),yc;tf(h)||cu(),e=Ec(t,e,l)}else tf(h)?(e.flags|=192,e.child=t.child,e=null):(t=m.treeContext,vt=we(h.nextSibling),Zt=e,tt=!0,_l=null,Ce=!1,t!==null&&Ko(e,t),e=bc(e,n.children),e.flags|=4096);return e}return a?(Dl(),h=n.fallback,a=e.mode,m=t.child,_=m.sibling,n=ll(m,{mode:"hidden",children:n.children}),n.subtreeFlags=m.subtreeFlags&65011712,_!==null?h=ll(_,h):(h=ln(h,a,l,null),h.flags|=2),h.return=e,n.return=e,n.sibling=h,e.child=n,La(null,n),n=e.child,h=t.child.memoizedState,h===null?h=vc(l):(a=h.cachePool,a!==null?(m=Dt._currentValue,a=a.parent!==m?{parent:m,pool:m}:a):a=Io(),h={baseLanes:h.baseLanes|l,cachePool:a}),n.memoizedState=h,n.childLanes=Sc(t,o,l),e.memoizedState=pc,La(t.child,n)):(Cl(e),l=t.child,t=l.sibling,l=ll(l,{mode:"visible",children:n.children}),l.return=e,l.sibling=null,t!==null&&(o=e.deletions,o===null?(e.deletions=[t],e.flags|=16):o.push(t)),e.child=l,e.memoizedState=null,l)}function bc(t,e){return e=Pi({mode:"visible",children:e},t.mode),e.return=t,t.child=e}function Pi(t,e){return t=pe(22,t,null,e),t.lanes=0,t}function Ec(t,e,l){return on(e,t.child,null,l),t=bc(e,e.pendingProps.children),t.flags|=2,e.memoizedState=null,t}function rh(t,e,l){t.lanes|=e;var n=t.alternate;n!==null&&(n.lanes|=e),Bs(t.return,e,l)}function Tc(t,e,l,n,a,i){var o=t.memoizedState;o===null?t.memoizedState={isBackwards:e,rendering:null,renderingStartTime:0,last:n,tail:l,tailMode:a,treeForkCount:i}:(o.isBackwards=e,o.rendering=null,o.renderingStartTime=0,o.last=n,o.tail=l,o.tailMode=a,o.treeForkCount=i)}function hh(t,e,l){var n=e.pendingProps,a=n.revealOrder,i=n.tail;n=n.children;var o=zt.current,h=(o&2)!==0;if(h?(o=o&1|2,e.flags|=128):o&=1,U(zt,o),Kt(t,e,n,l),n=tt?Aa:0,!h&&t!==null&&(t.flags&128)!==0)t:for(t=e.child;t!==null;){if(t.tag===13)t.memoizedState!==null&&rh(t,l,e);else if(t.tag===19)rh(t,l,e);else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break t;for(;t.sibling===null;){if(t.return===null||t.return===e)break t;t=t.return}t.sibling.return=t.return,t=t.sibling}switch(a){case"forwards":for(l=e.child,a=null;l!==null;)t=l.alternate,t!==null&&Xi(t)===null&&(a=l),l=l.sibling;l=a,l===null?(a=e.child,e.child=null):(a=l.sibling,l.sibling=null),Tc(e,!1,a,l,i,n);break;case"backwards":case"unstable_legacy-backwards":for(l=null,a=e.child,e.child=null;a!==null;){if(t=a.alternate,t!==null&&Xi(t)===null){e.child=a;break}t=a.sibling,a.sibling=l,l=a,a=t}Tc(e,!0,l,null,i,n);break;case"together":Tc(e,!1,null,null,void 0,n);break;default:e.memoizedState=null}return e.child}function cl(t,e,l){if(t!==null&&(e.dependencies=t.dependencies),Ul|=e.lanes,(l&e.childLanes)===0)if(t!==null){if(Hn(t,e,l,!1),(l&e.childLanes)===0)return null}else return null;if(t!==null&&e.child!==t.child)throw Error(c(153));if(e.child!==null){for(t=e.child,l=ll(t,t.pendingProps),e.child=l,l.return=e;t.sibling!==null;)t=t.sibling,l=l.sibling=ll(t,t.pendingProps),l.return=e;l.sibling=null}return e.child}function _c(t,e){return(t.lanes&e)!==0?!0:(t=t.dependencies,!!(t!==null&&Ui(t)))}function Og(t,e,l){switch(e.tag){case 3:It(e,e.stateNode.containerInfo),Ml(e,Dt,t.memoizedState.cache),nn();break;case 27:case 5:fa(e);break;case 4:It(e,e.stateNode.containerInfo);break;case 10:Ml(e,e.type,e.memoizedProps.value);break;case 31:if(e.memoizedState!==null)return e.flags|=128,ks(e),null;break;case 13:var n=e.memoizedState;if(n!==null)return n.dehydrated!==null?(Cl(e),e.flags|=128,null):(l&e.child.childLanes)!==0?oh(t,e,l):(Cl(e),t=cl(t,e,l),t!==null?t.sibling:null);Cl(e);break;case 19:var a=(t.flags&128)!==0;if(n=(l&e.childLanes)!==0,n||(Hn(t,e,l,!1),n=(l&e.childLanes)!==0),a){if(n)return hh(t,e,l);e.flags|=128}if(a=e.memoizedState,a!==null&&(a.rendering=null,a.tail=null,a.lastEffect=null),U(zt,zt.current),n)break;return null;case 22:return e.lanes=0,ah(t,e,l,e.pendingProps);case 24:Ml(e,Dt,t.memoizedState.cache)}return cl(t,e,l)}function dh(t,e,l){if(t!==null)if(t.memoizedProps!==e.pendingProps)Rt=!0;else{if(!_c(t,l)&&(e.flags&128)===0)return Rt=!1,Og(t,e,l);Rt=(t.flags&131072)!==0}else Rt=!1,tt&&(e.flags&1048576)!==0&&Vo(e,Aa,e.index);switch(e.lanes=0,e.tag){case 16:t:{var n=e.pendingProps;if(t=cn(e.elementType),e.type=t,typeof t=="function")xs(t)?(n=hn(t,n),e.tag=1,e=ch(null,e,t,n,l)):(e.tag=0,e=gc(null,e,t,n,l));else{if(t!=null){var a=t.$$typeof;if(a===le){e.tag=11,e=eh(null,e,t,n,l);break t}else if(a===k){e.tag=14,e=lh(null,e,t,n,l);break t}}throw e=Ie(t)||t,Error(c(306,e,""))}}return e;case 0:return gc(t,e,e.type,e.pendingProps,l);case 1:return n=e.type,a=hn(n,e.pendingProps),ch(t,e,n,a,l);case 3:t:{if(It(e,e.stateNode.containerInfo),t===null)throw Error(c(387));n=e.pendingProps;var i=e.memoizedState;a=i.element,Qs(t,e),Ra(e,n,null,l);var o=e.memoizedState;if(n=o.cache,Ml(e,Dt,n),n!==i.cache&&Ls(e,[Dt],l,!0),wa(),n=o.element,i.isDehydrated)if(i={element:n,isDehydrated:!1,cache:o.cache},e.updateQueue.baseState=i,e.memoizedState=i,e.flags&256){e=fh(t,e,n,l);break t}else if(n!==a){a=Oe(Error(c(424)),e),Ma(a),e=fh(t,e,n,l);break t}else{switch(t=e.stateNode.containerInfo,t.nodeType){case 9:t=t.body;break;default:t=t.nodeName==="HTML"?t.ownerDocument.body:t}for(vt=we(t.firstChild),Zt=e,tt=!0,_l=null,Ce=!0,l=ar(e,null,n,l),e.child=l;l;)l.flags=l.flags&-3|4096,l=l.sibling}else{if(nn(),n===a){e=cl(t,e,l);break t}Kt(t,e,n,l)}e=e.child}return e;case 26:return Ii(t,e),t===null?(l=Ad(e.type,null,e.pendingProps,null))?e.memoizedState=l:tt||(l=e.type,t=e.pendingProps,n=yu(W.current).createElement(l),n[Qt]=e,n[ie]=t,Jt(n,l,t),qt(n),e.stateNode=n):e.memoizedState=Ad(e.type,t.memoizedProps,e.pendingProps,t.memoizedState),null;case 27:return fa(e),t===null&&tt&&(n=e.stateNode=Ed(e.type,e.pendingProps,W.current),Zt=e,Ce=!0,a=vt,Yl(e.type)?(lf=a,vt=we(n.firstChild)):vt=a),Kt(t,e,e.pendingProps.children,l),Ii(t,e),t===null&&(e.flags|=4194304),e.child;case 5:return t===null&&tt&&((a=n=vt)&&(n=lp(n,e.type,e.pendingProps,Ce),n!==null?(e.stateNode=n,Zt=e,vt=we(n.firstChild),Ce=!1,a=!0):a=!1),a||Al(e)),fa(e),a=e.type,i=e.pendingProps,o=t!==null?t.memoizedProps:null,n=i.children,Fc(a,i)?n=null:o!==null&&Fc(a,o)&&(e.flags|=32),e.memoizedState!==null&&(a=$s(t,e,pg,null,null,l),Ia._currentValue=a),Ii(t,e),Kt(t,e,n,l),e.child;case 6:return t===null&&tt&&((t=l=vt)&&(l=np(l,e.pendingProps,Ce),l!==null?(e.stateNode=l,Zt=e,vt=null,t=!0):t=!1),t||Al(e)),null;case 13:return oh(t,e,l);case 4:return It(e,e.stateNode.containerInfo),n=e.pendingProps,t===null?e.child=on(e,null,n,l):Kt(t,e,n,l),e.child;case 11:return eh(t,e,e.type,e.pendingProps,l);case 7:return Kt(t,e,e.pendingProps,l),e.child;case 8:return Kt(t,e,e.pendingProps.children,l),e.child;case 12:return Kt(t,e,e.pendingProps.children,l),e.child;case 10:return n=e.pendingProps,Ml(e,e.type,n.value),Kt(t,e,n.children,l),e.child;case 9:return a=e.type._context,n=e.pendingProps.children,un(e),a=Vt(a),n=n(a),e.flags|=1,Kt(t,e,n,l),e.child;case 14:return lh(t,e,e.type,e.pendingProps,l);case 15:return nh(t,e,e.type,e.pendingProps,l);case 19:return hh(t,e,l);case 31:return Mg(t,e,l);case 22:return ah(t,e,l,e.pendingProps);case 24:return un(e),n=Vt(Dt),t===null?(a=js(),a===null&&(a=yt,i=Ys(),a.pooledCache=i,i.refCount++,i!==null&&(a.pooledCacheLanes|=l),a=i),e.memoizedState={parent:n,cache:a},Gs(e),Ml(e,Dt,a)):((t.lanes&l)!==0&&(Qs(t,e),Ra(e,null,null,l),wa()),a=t.memoizedState,i=e.memoizedState,a.parent!==n?(a={parent:n,cache:n},e.memoizedState=a,e.lanes===0&&(e.memoizedState=e.updateQueue.baseState=a),Ml(e,Dt,n)):(n=i.cache,Ml(e,Dt,n),n!==a.cache&&Ls(e,[Dt],l,!0))),Kt(t,e,e.pendingProps.children,l),e.child;case 29:throw e.pendingProps}throw Error(c(156,e.tag))}function fl(t){t.flags|=4}function Ac(t,e,l,n,a){if((e=(t.mode&32)!==0)&&(e=!1),e){if(t.flags|=16777216,(a&335544128)===a)if(t.stateNode.complete)t.flags|=8192;else if(jh())t.flags|=8192;else throw fn=Li,Xs}else t.flags&=-16777217}function mh(t,e){if(e.type!=="stylesheet"||(e.state.loading&4)!==0)t.flags&=-16777217;else if(t.flags|=16777216,!Cd(e))if(jh())t.flags|=8192;else throw fn=Li,Xs}function tu(t,e){e!==null&&(t.flags|=4),t.flags&16384&&(e=t.tag!==22?Kf():536870912,t.lanes|=e,Jn|=e)}function Ya(t,e){if(!tt)switch(t.tailMode){case"hidden":e=t.tail;for(var l=null;e!==null;)e.alternate!==null&&(l=e),e=e.sibling;l===null?t.tail=null:l.sibling=null;break;case"collapsed":l=t.tail;for(var n=null;l!==null;)l.alternate!==null&&(n=l),l=l.sibling;n===null?e||t.tail===null?t.tail=null:t.tail.sibling=null:n.sibling=null}}function St(t){var e=t.alternate!==null&&t.alternate.child===t.child,l=0,n=0;if(e)for(var a=t.child;a!==null;)l|=a.lanes|a.childLanes,n|=a.subtreeFlags&65011712,n|=a.flags&65011712,a.return=t,a=a.sibling;else for(a=t.child;a!==null;)l|=a.lanes|a.childLanes,n|=a.subtreeFlags,n|=a.flags,a.return=t,a=a.sibling;return t.subtreeFlags|=n,t.childLanes=l,e}function zg(t,e,l){var n=e.pendingProps;switch(Rs(e),e.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return St(e),null;case 1:return St(e),null;case 3:return l=e.stateNode,n=null,t!==null&&(n=t.memoizedState.cache),e.memoizedState.cache!==n&&(e.flags|=2048),il(Dt),Ot(),l.pendingContext&&(l.context=l.pendingContext,l.pendingContext=null),(t===null||t.child===null)&&(Nn(e)?fl(e):t===null||t.memoizedState.isDehydrated&&(e.flags&256)===0||(e.flags|=1024,Ns())),St(e),null;case 26:var a=e.type,i=e.memoizedState;return t===null?(fl(e),i!==null?(St(e),mh(e,i)):(St(e),Ac(e,a,null,n,l))):i?i!==t.memoizedState?(fl(e),St(e),mh(e,i)):(St(e),e.flags&=-16777217):(t=t.memoizedProps,t!==n&&fl(e),St(e),Ac(e,a,t,n,l)),null;case 27:if(ri(e),l=W.current,a=e.type,t!==null&&e.stateNode!=null)t.memoizedProps!==n&&fl(e);else{if(!n){if(e.stateNode===null)throw Error(c(166));return St(e),null}t=L.current,Nn(e)?Jo(e):(t=Ed(a,n,l),e.stateNode=t,fl(e))}return St(e),null;case 5:if(ri(e),a=e.type,t!==null&&e.stateNode!=null)t.memoizedProps!==n&&fl(e);else{if(!n){if(e.stateNode===null)throw Error(c(166));return St(e),null}if(i=L.current,Nn(e))Jo(e);else{var o=yu(W.current);switch(i){case 1:i=o.createElementNS("http://www.w3.org/2000/svg",a);break;case 2:i=o.createElementNS("http://www.w3.org/1998/Math/MathML",a);break;default:switch(a){case"svg":i=o.createElementNS("http://www.w3.org/2000/svg",a);break;case"math":i=o.createElementNS("http://www.w3.org/1998/Math/MathML",a);break;case"script":i=o.createElement("div"),i.innerHTML="<script><\/script>",i=i.removeChild(i.firstChild);break;case"select":i=typeof n.is=="string"?o.createElement("select",{is:n.is}):o.createElement("select"),n.multiple?i.multiple=!0:n.size&&(i.size=n.size);break;default:i=typeof n.is=="string"?o.createElement(a,{is:n.is}):o.createElement(a)}}i[Qt]=e,i[ie]=n;t:for(o=e.child;o!==null;){if(o.tag===5||o.tag===6)i.appendChild(o.stateNode);else if(o.tag!==4&&o.tag!==27&&o.child!==null){o.child.return=o,o=o.child;continue}if(o===e)break t;for(;o.sibling===null;){if(o.return===null||o.return===e)break t;o=o.return}o.sibling.return=o.return,o=o.sibling}e.stateNode=i;t:switch(Jt(i,a,n),a){case"button":case"input":case"select":case"textarea":n=!!n.autoFocus;break t;case"img":n=!0;break t;default:n=!1}n&&fl(e)}}return St(e),Ac(e,e.type,t===null?null:t.memoizedProps,e.pendingProps,l),null;case 6:if(t&&e.stateNode!=null)t.memoizedProps!==n&&fl(e);else{if(typeof n!="string"&&e.stateNode===null)throw Error(c(166));if(t=W.current,Nn(e)){if(t=e.stateNode,l=e.memoizedProps,n=null,a=Zt,a!==null)switch(a.tag){case 27:case 5:n=a.memoizedProps}t[Qt]=e,t=!!(t.nodeValue===l||n!==null&&n.suppressHydrationWarning===!0||od(t.nodeValue,l)),t||Al(e,!0)}else t=yu(t).createTextNode(n),t[Qt]=e,e.stateNode=t}return St(e),null;case 31:if(l=e.memoizedState,t===null||t.memoizedState!==null){if(n=Nn(e),l!==null){if(t===null){if(!n)throw Error(c(318));if(t=e.memoizedState,t=t!==null?t.dehydrated:null,!t)throw Error(c(557));t[Qt]=e}else nn(),(e.flags&128)===0&&(e.memoizedState=null),e.flags|=4;St(e),t=!1}else l=Ns(),t!==null&&t.memoizedState!==null&&(t.memoizedState.hydrationErrors=l),t=!0;if(!t)return e.flags&256?(Se(e),e):(Se(e),null);if((e.flags&128)!==0)throw Error(c(558))}return St(e),null;case 13:if(n=e.memoizedState,t===null||t.memoizedState!==null&&t.memoizedState.dehydrated!==null){if(a=Nn(e),n!==null&&n.dehydrated!==null){if(t===null){if(!a)throw Error(c(318));if(a=e.memoizedState,a=a!==null?a.dehydrated:null,!a)throw Error(c(317));a[Qt]=e}else nn(),(e.flags&128)===0&&(e.memoizedState=null),e.flags|=4;St(e),a=!1}else a=Ns(),t!==null&&t.memoizedState!==null&&(t.memoizedState.hydrationErrors=a),a=!0;if(!a)return e.flags&256?(Se(e),e):(Se(e),null)}return Se(e),(e.flags&128)!==0?(e.lanes=l,e):(l=n!==null,t=t!==null&&t.memoizedState!==null,l&&(n=e.child,a=null,n.alternate!==null&&n.alternate.memoizedState!==null&&n.alternate.memoizedState.cachePool!==null&&(a=n.alternate.memoizedState.cachePool.pool),i=null,n.memoizedState!==null&&n.memoizedState.cachePool!==null&&(i=n.memoizedState.cachePool.pool),i!==a&&(n.flags|=2048)),l!==t&&l&&(e.child.flags|=8192),tu(e,e.updateQueue),St(e),null);case 4:return Ot(),t===null&&Kc(e.stateNode.containerInfo),St(e),null;case 10:return il(e.type),St(e),null;case 19:if(w(zt),n=e.memoizedState,n===null)return St(e),null;if(a=(e.flags&128)!==0,i=n.rendering,i===null)if(a)Ya(n,!1);else{if(At!==0||t!==null&&(t.flags&128)!==0)for(t=e.child;t!==null;){if(i=Xi(t),i!==null){for(e.flags|=128,Ya(n,!1),t=i.updateQueue,e.updateQueue=t,tu(e,t),e.subtreeFlags=0,t=l,l=e.child;l!==null;)Go(l,t),l=l.sibling;return U(zt,zt.current&1|2),tt&&nl(e,n.treeForkCount),e.child}t=t.sibling}n.tail!==null&&de()>iu&&(e.flags|=128,a=!0,Ya(n,!1),e.lanes=4194304)}else{if(!a)if(t=Xi(i),t!==null){if(e.flags|=128,a=!0,t=t.updateQueue,e.updateQueue=t,tu(e,t),Ya(n,!0),n.tail===null&&n.tailMode==="hidden"&&!i.alternate&&!tt)return St(e),null}else 2*de()-n.renderingStartTime>iu&&l!==536870912&&(e.flags|=128,a=!0,Ya(n,!1),e.lanes=4194304);n.isBackwards?(i.sibling=e.child,e.child=i):(t=n.last,t!==null?t.sibling=i:e.child=i,n.last=i)}return n.tail!==null?(t=n.tail,n.rendering=t,n.tail=t.sibling,n.renderingStartTime=de(),t.sibling=null,l=zt.current,U(zt,a?l&1|2:l&1),tt&&nl(e,n.treeForkCount),t):(St(e),null);case 22:case 23:return Se(e),Js(),n=e.memoizedState!==null,t!==null?t.memoizedState!==null!==n&&(e.flags|=8192):n&&(e.flags|=8192),n?(l&536870912)!==0&&(e.flags&128)===0&&(St(e),e.subtreeFlags&6&&(e.flags|=8192)):St(e),l=e.updateQueue,l!==null&&tu(e,l.retryQueue),l=null,t!==null&&t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(l=t.memoizedState.cachePool.pool),n=null,e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(n=e.memoizedState.cachePool.pool),n!==l&&(e.flags|=2048),t!==null&&w(sn),null;case 24:return l=null,t!==null&&(l=t.memoizedState.cache),e.memoizedState.cache!==l&&(e.flags|=2048),il(Dt),St(e),null;case 25:return null;case 30:return null}throw Error(c(156,e.tag))}function xg(t,e){switch(Rs(e),e.tag){case 1:return t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 3:return il(Dt),Ot(),t=e.flags,(t&65536)!==0&&(t&128)===0?(e.flags=t&-65537|128,e):null;case 26:case 27:case 5:return ri(e),null;case 31:if(e.memoizedState!==null){if(Se(e),e.alternate===null)throw Error(c(340));nn()}return t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 13:if(Se(e),t=e.memoizedState,t!==null&&t.dehydrated!==null){if(e.alternate===null)throw Error(c(340));nn()}return t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 19:return w(zt),null;case 4:return Ot(),null;case 10:return il(e.type),null;case 22:case 23:return Se(e),Js(),t!==null&&w(sn),t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 24:return il(Dt),null;case 25:return null;default:return null}}function yh(t,e){switch(Rs(e),e.tag){case 3:il(Dt),Ot();break;case 26:case 27:case 5:ri(e);break;case 4:Ot();break;case 31:e.memoizedState!==null&&Se(e);break;case 13:Se(e);break;case 19:w(zt);break;case 10:il(e.type);break;case 22:case 23:Se(e),Js(),t!==null&&w(sn);break;case 24:il(Dt)}}function qa(t,e){try{var l=e.updateQueue,n=l!==null?l.lastEffect:null;if(n!==null){var a=n.next;l=a;do{if((l.tag&t)===t){n=void 0;var i=l.create,o=l.inst;n=i(),o.destroy=n}l=l.next}while(l!==a)}}catch(h){ct(e,e.return,h)}}function wl(t,e,l){try{var n=e.updateQueue,a=n!==null?n.lastEffect:null;if(a!==null){var i=a.next;n=i;do{if((n.tag&t)===t){var o=n.inst,h=o.destroy;if(h!==void 0){o.destroy=void 0,a=e;var m=l,_=h;try{_()}catch(O){ct(a,m,O)}}}n=n.next}while(n!==i)}}catch(O){ct(e,e.return,O)}}function gh(t){var e=t.updateQueue;if(e!==null){var l=t.stateNode;try{ur(e,l)}catch(n){ct(t,t.return,n)}}}function ph(t,e,l){l.props=hn(t.type,t.memoizedProps),l.state=t.memoizedState;try{l.componentWillUnmount()}catch(n){ct(t,e,n)}}function ja(t,e){try{var l=t.ref;if(l!==null){switch(t.tag){case 26:case 27:case 5:var n=t.stateNode;break;case 30:n=t.stateNode;break;default:n=t.stateNode}typeof l=="function"?t.refCleanup=l(n):l.current=n}}catch(a){ct(t,e,a)}}function Ke(t,e){var l=t.ref,n=t.refCleanup;if(l!==null)if(typeof n=="function")try{n()}catch(a){ct(t,e,a)}finally{t.refCleanup=null,t=t.alternate,t!=null&&(t.refCleanup=null)}else if(typeof l=="function")try{l(null)}catch(a){ct(t,e,a)}else l.current=null}function vh(t){var e=t.type,l=t.memoizedProps,n=t.stateNode;try{t:switch(e){case"button":case"input":case"select":case"textarea":l.autoFocus&&n.focus();break t;case"img":l.src?n.src=l.src:l.srcSet&&(n.srcset=l.srcSet)}}catch(a){ct(t,t.return,a)}}function Mc(t,e,l){try{var n=t.stateNode;$g(n,t.type,l,e),n[ie]=e}catch(a){ct(t,t.return,a)}}function Sh(t){return t.tag===5||t.tag===3||t.tag===26||t.tag===27&&Yl(t.type)||t.tag===4}function Oc(t){t:for(;;){for(;t.sibling===null;){if(t.return===null||Sh(t.return))return null;t=t.return}for(t.sibling.return=t.return,t=t.sibling;t.tag!==5&&t.tag!==6&&t.tag!==18;){if(t.tag===27&&Yl(t.type)||t.flags&2||t.child===null||t.tag===4)continue t;t.child.return=t,t=t.child}if(!(t.flags&2))return t.stateNode}}function zc(t,e,l){var n=t.tag;if(n===5||n===6)t=t.stateNode,e?(l.nodeType===9?l.body:l.nodeName==="HTML"?l.ownerDocument.body:l).insertBefore(t,e):(e=l.nodeType===9?l.body:l.nodeName==="HTML"?l.ownerDocument.body:l,e.appendChild(t),l=l._reactRootContainer,l!=null||e.onclick!==null||(e.onclick=tl));else if(n!==4&&(n===27&&Yl(t.type)&&(l=t.stateNode,e=null),t=t.child,t!==null))for(zc(t,e,l),t=t.sibling;t!==null;)zc(t,e,l),t=t.sibling}function eu(t,e,l){var n=t.tag;if(n===5||n===6)t=t.stateNode,e?l.insertBefore(t,e):l.appendChild(t);else if(n!==4&&(n===27&&Yl(t.type)&&(l=t.stateNode),t=t.child,t!==null))for(eu(t,e,l),t=t.sibling;t!==null;)eu(t,e,l),t=t.sibling}function bh(t){var e=t.stateNode,l=t.memoizedProps;try{for(var n=t.type,a=e.attributes;a.length;)e.removeAttributeNode(a[0]);Jt(e,n,l),e[Qt]=t,e[ie]=l}catch(i){ct(t,t.return,i)}}var ol=!1,Ut=!1,xc=!1,Eh=typeof WeakSet=="function"?WeakSet:Set,jt=null;function Cg(t,e){if(t=t.containerInfo,Wc=Tu,t=Uo(t),Es(t)){if("selectionStart"in t)var l={start:t.selectionStart,end:t.selectionEnd};else t:{l=(l=t.ownerDocument)&&l.defaultView||window;var n=l.getSelection&&l.getSelection();if(n&&n.rangeCount!==0){l=n.anchorNode;var a=n.anchorOffset,i=n.focusNode;n=n.focusOffset;try{l.nodeType,i.nodeType}catch{l=null;break t}var o=0,h=-1,m=-1,_=0,O=0,D=t,A=null;e:for(;;){for(var M;D!==l||a!==0&&D.nodeType!==3||(h=o+a),D!==i||n!==0&&D.nodeType!==3||(m=o+n),D.nodeType===3&&(o+=D.nodeValue.length),(M=D.firstChild)!==null;)A=D,D=M;for(;;){if(D===t)break e;if(A===l&&++_===a&&(h=o),A===i&&++O===n&&(m=o),(M=D.nextSibling)!==null)break;D=A,A=D.parentNode}D=M}l=h===-1||m===-1?null:{start:h,end:m}}else l=null}l=l||{start:0,end:0}}else l=null;for($c={focusedElem:t,selectionRange:l},Tu=!1,jt=e;jt!==null;)if(e=jt,t=e.child,(e.subtreeFlags&1028)!==0&&t!==null)t.return=e,jt=t;else for(;jt!==null;){switch(e=jt,i=e.alternate,t=e.flags,e.tag){case 0:if((t&4)!==0&&(t=e.updateQueue,t=t!==null?t.events:null,t!==null))for(l=0;l<t.length;l++)a=t[l],a.ref.impl=a.nextImpl;break;case 11:case 15:break;case 1:if((t&1024)!==0&&i!==null){t=void 0,l=e,a=i.memoizedProps,i=i.memoizedState,n=l.stateNode;try{var H=hn(l.type,a);t=n.getSnapshotBeforeUpdate(H,i),n.__reactInternalSnapshotBeforeUpdate=t}catch(X){ct(l,l.return,X)}}break;case 3:if((t&1024)!==0){if(t=e.stateNode.containerInfo,l=t.nodeType,l===9)Pc(t);else if(l===1)switch(t.nodeName){case"HEAD":case"HTML":case"BODY":Pc(t);break;default:t.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((t&1024)!==0)throw Error(c(163))}if(t=e.sibling,t!==null){t.return=e.return,jt=t;break}jt=e.return}}function Th(t,e,l){var n=l.flags;switch(l.tag){case 0:case 11:case 15:hl(t,l),n&4&&qa(5,l);break;case 1:if(hl(t,l),n&4)if(t=l.stateNode,e===null)try{t.componentDidMount()}catch(o){ct(l,l.return,o)}else{var a=hn(l.type,e.memoizedProps);e=e.memoizedState;try{t.componentDidUpdate(a,e,t.__reactInternalSnapshotBeforeUpdate)}catch(o){ct(l,l.return,o)}}n&64&&gh(l),n&512&&ja(l,l.return);break;case 3:if(hl(t,l),n&64&&(t=l.updateQueue,t!==null)){if(e=null,l.child!==null)switch(l.child.tag){case 27:case 5:e=l.child.stateNode;break;case 1:e=l.child.stateNode}try{ur(t,e)}catch(o){ct(l,l.return,o)}}break;case 27:e===null&&n&4&&bh(l);case 26:case 5:hl(t,l),e===null&&n&4&&vh(l),n&512&&ja(l,l.return);break;case 12:hl(t,l);break;case 31:hl(t,l),n&4&&Mh(t,l);break;case 13:hl(t,l),n&4&&Oh(t,l),n&64&&(t=l.memoizedState,t!==null&&(t=t.dehydrated,t!==null&&(l=Yg.bind(null,l),ap(t,l))));break;case 22:if(n=l.memoizedState!==null||ol,!n){e=e!==null&&e.memoizedState!==null||Ut,a=ol;var i=Ut;ol=n,(Ut=e)&&!i?dl(t,l,(l.subtreeFlags&8772)!==0):hl(t,l),ol=a,Ut=i}break;case 30:break;default:hl(t,l)}}function _h(t){var e=t.alternate;e!==null&&(t.alternate=null,_h(e)),t.child=null,t.deletions=null,t.sibling=null,t.tag===5&&(e=t.stateNode,e!==null&&as(e)),t.stateNode=null,t.return=null,t.dependencies=null,t.memoizedProps=null,t.memoizedState=null,t.pendingProps=null,t.stateNode=null,t.updateQueue=null}var bt=null,se=!1;function rl(t,e,l){for(l=l.child;l!==null;)Ah(t,e,l),l=l.sibling}function Ah(t,e,l){if(me&&typeof me.onCommitFiberUnmount=="function")try{me.onCommitFiberUnmount(oa,l)}catch{}switch(l.tag){case 26:Ut||Ke(l,e),rl(t,e,l),l.memoizedState?l.memoizedState.count--:l.stateNode&&(l=l.stateNode,l.parentNode.removeChild(l));break;case 27:Ut||Ke(l,e);var n=bt,a=se;Yl(l.type)&&(bt=l.stateNode,se=!1),rl(t,e,l),Wa(l.stateNode),bt=n,se=a;break;case 5:Ut||Ke(l,e);case 6:if(n=bt,a=se,bt=null,rl(t,e,l),bt=n,se=a,bt!==null)if(se)try{(bt.nodeType===9?bt.body:bt.nodeName==="HTML"?bt.ownerDocument.body:bt).removeChild(l.stateNode)}catch(i){ct(l,e,i)}else try{bt.removeChild(l.stateNode)}catch(i){ct(l,e,i)}break;case 18:bt!==null&&(se?(t=bt,gd(t.nodeType===9?t.body:t.nodeName==="HTML"?t.ownerDocument.body:t,l.stateNode),ea(t)):gd(bt,l.stateNode));break;case 4:n=bt,a=se,bt=l.stateNode.containerInfo,se=!0,rl(t,e,l),bt=n,se=a;break;case 0:case 11:case 14:case 15:wl(2,l,e),Ut||wl(4,l,e),rl(t,e,l);break;case 1:Ut||(Ke(l,e),n=l.stateNode,typeof n.componentWillUnmount=="function"&&ph(l,e,n)),rl(t,e,l);break;case 21:rl(t,e,l);break;case 22:Ut=(n=Ut)||l.memoizedState!==null,rl(t,e,l),Ut=n;break;default:rl(t,e,l)}}function Mh(t,e){if(e.memoizedState===null&&(t=e.alternate,t!==null&&(t=t.memoizedState,t!==null))){t=t.dehydrated;try{ea(t)}catch(l){ct(e,e.return,l)}}}function Oh(t,e){if(e.memoizedState===null&&(t=e.alternate,t!==null&&(t=t.memoizedState,t!==null&&(t=t.dehydrated,t!==null))))try{ea(t)}catch(l){ct(e,e.return,l)}}function Dg(t){switch(t.tag){case 31:case 13:case 19:var e=t.stateNode;return e===null&&(e=t.stateNode=new Eh),e;case 22:return t=t.stateNode,e=t._retryCache,e===null&&(e=t._retryCache=new Eh),e;default:throw Error(c(435,t.tag))}}function lu(t,e){var l=Dg(t);e.forEach(function(n){if(!l.has(n)){l.add(n);var a=qg.bind(null,t,n);n.then(a,a)}})}function ce(t,e){var l=e.deletions;if(l!==null)for(var n=0;n<l.length;n++){var a=l[n],i=t,o=e,h=o;t:for(;h!==null;){switch(h.tag){case 27:if(Yl(h.type)){bt=h.stateNode,se=!1;break t}break;case 5:bt=h.stateNode,se=!1;break t;case 3:case 4:bt=h.stateNode.containerInfo,se=!0;break t}h=h.return}if(bt===null)throw Error(c(160));Ah(i,o,a),bt=null,se=!1,i=a.alternate,i!==null&&(i.return=null),a.return=null}if(e.subtreeFlags&13886)for(e=e.child;e!==null;)zh(e,t),e=e.sibling}var qe=null;function zh(t,e){var l=t.alternate,n=t.flags;switch(t.tag){case 0:case 11:case 14:case 15:ce(e,t),fe(t),n&4&&(wl(3,t,t.return),qa(3,t),wl(5,t,t.return));break;case 1:ce(e,t),fe(t),n&512&&(Ut||l===null||Ke(l,l.return)),n&64&&ol&&(t=t.updateQueue,t!==null&&(n=t.callbacks,n!==null&&(l=t.shared.hiddenCallbacks,t.shared.hiddenCallbacks=l===null?n:l.concat(n))));break;case 26:var a=qe;if(ce(e,t),fe(t),n&512&&(Ut||l===null||Ke(l,l.return)),n&4){var i=l!==null?l.memoizedState:null;if(n=t.memoizedState,l===null)if(n===null)if(t.stateNode===null){t:{n=t.type,l=t.memoizedProps,a=a.ownerDocument||a;e:switch(n){case"title":i=a.getElementsByTagName("title")[0],(!i||i[da]||i[Qt]||i.namespaceURI==="http://www.w3.org/2000/svg"||i.hasAttribute("itemprop"))&&(i=a.createElement(n),a.head.insertBefore(i,a.querySelector("head > title"))),Jt(i,n,l),i[Qt]=t,qt(i),n=i;break t;case"link":var o=zd("link","href",a).get(n+(l.href||""));if(o){for(var h=0;h<o.length;h++)if(i=o[h],i.getAttribute("href")===(l.href==null||l.href===""?null:l.href)&&i.getAttribute("rel")===(l.rel==null?null:l.rel)&&i.getAttribute("title")===(l.title==null?null:l.title)&&i.getAttribute("crossorigin")===(l.crossOrigin==null?null:l.crossOrigin)){o.splice(h,1);break e}}i=a.createElement(n),Jt(i,n,l),a.head.appendChild(i);break;case"meta":if(o=zd("meta","content",a).get(n+(l.content||""))){for(h=0;h<o.length;h++)if(i=o[h],i.getAttribute("content")===(l.content==null?null:""+l.content)&&i.getAttribute("name")===(l.name==null?null:l.name)&&i.getAttribute("property")===(l.property==null?null:l.property)&&i.getAttribute("http-equiv")===(l.httpEquiv==null?null:l.httpEquiv)&&i.getAttribute("charset")===(l.charSet==null?null:l.charSet)){o.splice(h,1);break e}}i=a.createElement(n),Jt(i,n,l),a.head.appendChild(i);break;default:throw Error(c(468,n))}i[Qt]=t,qt(i),n=i}t.stateNode=n}else xd(a,t.type,t.stateNode);else t.stateNode=Od(a,n,t.memoizedProps);else i!==n?(i===null?l.stateNode!==null&&(l=l.stateNode,l.parentNode.removeChild(l)):i.count--,n===null?xd(a,t.type,t.stateNode):Od(a,n,t.memoizedProps)):n===null&&t.stateNode!==null&&Mc(t,t.memoizedProps,l.memoizedProps)}break;case 27:ce(e,t),fe(t),n&512&&(Ut||l===null||Ke(l,l.return)),l!==null&&n&4&&Mc(t,t.memoizedProps,l.memoizedProps);break;case 5:if(ce(e,t),fe(t),n&512&&(Ut||l===null||Ke(l,l.return)),t.flags&32){a=t.stateNode;try{An(a,"")}catch(H){ct(t,t.return,H)}}n&4&&t.stateNode!=null&&(a=t.memoizedProps,Mc(t,a,l!==null?l.memoizedProps:a)),n&1024&&(xc=!0);break;case 6:if(ce(e,t),fe(t),n&4){if(t.stateNode===null)throw Error(c(162));n=t.memoizedProps,l=t.stateNode;try{l.nodeValue=n}catch(H){ct(t,t.return,H)}}break;case 3:if(vu=null,a=qe,qe=gu(e.containerInfo),ce(e,t),qe=a,fe(t),n&4&&l!==null&&l.memoizedState.isDehydrated)try{ea(e.containerInfo)}catch(H){ct(t,t.return,H)}xc&&(xc=!1,xh(t));break;case 4:n=qe,qe=gu(t.stateNode.containerInfo),ce(e,t),fe(t),qe=n;break;case 12:ce(e,t),fe(t);break;case 31:ce(e,t),fe(t),n&4&&(n=t.updateQueue,n!==null&&(t.updateQueue=null,lu(t,n)));break;case 13:ce(e,t),fe(t),t.child.flags&8192&&t.memoizedState!==null!=(l!==null&&l.memoizedState!==null)&&(au=de()),n&4&&(n=t.updateQueue,n!==null&&(t.updateQueue=null,lu(t,n)));break;case 22:a=t.memoizedState!==null;var m=l!==null&&l.memoizedState!==null,_=ol,O=Ut;if(ol=_||a,Ut=O||m,ce(e,t),Ut=O,ol=_,fe(t),n&8192)t:for(e=t.stateNode,e._visibility=a?e._visibility&-2:e._visibility|1,a&&(l===null||m||ol||Ut||dn(t)),l=null,e=t;;){if(e.tag===5||e.tag===26){if(l===null){m=l=e;try{if(i=m.stateNode,a)o=i.style,typeof o.setProperty=="function"?o.setProperty("display","none","important"):o.display="none";else{h=m.stateNode;var D=m.memoizedProps.style,A=D!=null&&D.hasOwnProperty("display")?D.display:null;h.style.display=A==null||typeof A=="boolean"?"":(""+A).trim()}}catch(H){ct(m,m.return,H)}}}else if(e.tag===6){if(l===null){m=e;try{m.stateNode.nodeValue=a?"":m.memoizedProps}catch(H){ct(m,m.return,H)}}}else if(e.tag===18){if(l===null){m=e;try{var M=m.stateNode;a?pd(M,!0):pd(m.stateNode,!1)}catch(H){ct(m,m.return,H)}}}else if((e.tag!==22&&e.tag!==23||e.memoizedState===null||e===t)&&e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break t;for(;e.sibling===null;){if(e.return===null||e.return===t)break t;l===e&&(l=null),e=e.return}l===e&&(l=null),e.sibling.return=e.return,e=e.sibling}n&4&&(n=t.updateQueue,n!==null&&(l=n.retryQueue,l!==null&&(n.retryQueue=null,lu(t,l))));break;case 19:ce(e,t),fe(t),n&4&&(n=t.updateQueue,n!==null&&(t.updateQueue=null,lu(t,n)));break;case 30:break;case 21:break;default:ce(e,t),fe(t)}}function fe(t){var e=t.flags;if(e&2){try{for(var l,n=t.return;n!==null;){if(Sh(n)){l=n;break}n=n.return}if(l==null)throw Error(c(160));switch(l.tag){case 27:var a=l.stateNode,i=Oc(t);eu(t,i,a);break;case 5:var o=l.stateNode;l.flags&32&&(An(o,""),l.flags&=-33);var h=Oc(t);eu(t,h,o);break;case 3:case 4:var m=l.stateNode.containerInfo,_=Oc(t);zc(t,_,m);break;default:throw Error(c(161))}}catch(O){ct(t,t.return,O)}t.flags&=-3}e&4096&&(t.flags&=-4097)}function xh(t){if(t.subtreeFlags&1024)for(t=t.child;t!==null;){var e=t;xh(e),e.tag===5&&e.flags&1024&&e.stateNode.reset(),t=t.sibling}}function hl(t,e){if(e.subtreeFlags&8772)for(e=e.child;e!==null;)Th(t,e.alternate,e),e=e.sibling}function dn(t){for(t=t.child;t!==null;){var e=t;switch(e.tag){case 0:case 11:case 14:case 15:wl(4,e,e.return),dn(e);break;case 1:Ke(e,e.return);var l=e.stateNode;typeof l.componentWillUnmount=="function"&&ph(e,e.return,l),dn(e);break;case 27:Wa(e.stateNode);case 26:case 5:Ke(e,e.return),dn(e);break;case 22:e.memoizedState===null&&dn(e);break;case 30:dn(e);break;default:dn(e)}t=t.sibling}}function dl(t,e,l){for(l=l&&(e.subtreeFlags&8772)!==0,e=e.child;e!==null;){var n=e.alternate,a=t,i=e,o=i.flags;switch(i.tag){case 0:case 11:case 15:dl(a,i,l),qa(4,i);break;case 1:if(dl(a,i,l),n=i,a=n.stateNode,typeof a.componentDidMount=="function")try{a.componentDidMount()}catch(_){ct(n,n.return,_)}if(n=i,a=n.updateQueue,a!==null){var h=n.stateNode;try{var m=a.shared.hiddenCallbacks;if(m!==null)for(a.shared.hiddenCallbacks=null,a=0;a<m.length;a++)ir(m[a],h)}catch(_){ct(n,n.return,_)}}l&&o&64&&gh(i),ja(i,i.return);break;case 27:bh(i);case 26:case 5:dl(a,i,l),l&&n===null&&o&4&&vh(i),ja(i,i.return);break;case 12:dl(a,i,l);break;case 31:dl(a,i,l),l&&o&4&&Mh(a,i);break;case 13:dl(a,i,l),l&&o&4&&Oh(a,i);break;case 22:i.memoizedState===null&&dl(a,i,l),ja(i,i.return);break;case 30:break;default:dl(a,i,l)}e=e.sibling}}function Cc(t,e){var l=null;t!==null&&t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(l=t.memoizedState.cachePool.pool),t=null,e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(t=e.memoizedState.cachePool.pool),t!==l&&(t!=null&&t.refCount++,l!=null&&Oa(l))}function Dc(t,e){t=null,e.alternate!==null&&(t=e.alternate.memoizedState.cache),e=e.memoizedState.cache,e!==t&&(e.refCount++,t!=null&&Oa(t))}function je(t,e,l,n){if(e.subtreeFlags&10256)for(e=e.child;e!==null;)Ch(t,e,l,n),e=e.sibling}function Ch(t,e,l,n){var a=e.flags;switch(e.tag){case 0:case 11:case 15:je(t,e,l,n),a&2048&&qa(9,e);break;case 1:je(t,e,l,n);break;case 3:je(t,e,l,n),a&2048&&(t=null,e.alternate!==null&&(t=e.alternate.memoizedState.cache),e=e.memoizedState.cache,e!==t&&(e.refCount++,t!=null&&Oa(t)));break;case 12:if(a&2048){je(t,e,l,n),t=e.stateNode;try{var i=e.memoizedProps,o=i.id,h=i.onPostCommit;typeof h=="function"&&h(o,e.alternate===null?"mount":"update",t.passiveEffectDuration,-0)}catch(m){ct(e,e.return,m)}}else je(t,e,l,n);break;case 31:je(t,e,l,n);break;case 13:je(t,e,l,n);break;case 23:break;case 22:i=e.stateNode,o=e.alternate,e.memoizedState!==null?i._visibility&2?je(t,e,l,n):Xa(t,e):i._visibility&2?je(t,e,l,n):(i._visibility|=2,Zn(t,e,l,n,(e.subtreeFlags&10256)!==0||!1)),a&2048&&Cc(o,e);break;case 24:je(t,e,l,n),a&2048&&Dc(e.alternate,e);break;default:je(t,e,l,n)}}function Zn(t,e,l,n,a){for(a=a&&((e.subtreeFlags&10256)!==0||!1),e=e.child;e!==null;){var i=t,o=e,h=l,m=n,_=o.flags;switch(o.tag){case 0:case 11:case 15:Zn(i,o,h,m,a),qa(8,o);break;case 23:break;case 22:var O=o.stateNode;o.memoizedState!==null?O._visibility&2?Zn(i,o,h,m,a):Xa(i,o):(O._visibility|=2,Zn(i,o,h,m,a)),a&&_&2048&&Cc(o.alternate,o);break;case 24:Zn(i,o,h,m,a),a&&_&2048&&Dc(o.alternate,o);break;default:Zn(i,o,h,m,a)}e=e.sibling}}function Xa(t,e){if(e.subtreeFlags&10256)for(e=e.child;e!==null;){var l=t,n=e,a=n.flags;switch(n.tag){case 22:Xa(l,n),a&2048&&Cc(n.alternate,n);break;case 24:Xa(l,n),a&2048&&Dc(n.alternate,n);break;default:Xa(l,n)}e=e.sibling}}var Ga=8192;function Vn(t,e,l){if(t.subtreeFlags&Ga)for(t=t.child;t!==null;)Dh(t,e,l),t=t.sibling}function Dh(t,e,l){switch(t.tag){case 26:Vn(t,e,l),t.flags&Ga&&t.memoizedState!==null&&gp(l,qe,t.memoizedState,t.memoizedProps);break;case 5:Vn(t,e,l);break;case 3:case 4:var n=qe;qe=gu(t.stateNode.containerInfo),Vn(t,e,l),qe=n;break;case 22:t.memoizedState===null&&(n=t.alternate,n!==null&&n.memoizedState!==null?(n=Ga,Ga=16777216,Vn(t,e,l),Ga=n):Vn(t,e,l));break;default:Vn(t,e,l)}}function wh(t){var e=t.alternate;if(e!==null&&(t=e.child,t!==null)){e.child=null;do e=t.sibling,t.sibling=null,t=e;while(t!==null)}}function Qa(t){var e=t.deletions;if((t.flags&16)!==0){if(e!==null)for(var l=0;l<e.length;l++){var n=e[l];jt=n,Uh(n,t)}wh(t)}if(t.subtreeFlags&10256)for(t=t.child;t!==null;)Rh(t),t=t.sibling}function Rh(t){switch(t.tag){case 0:case 11:case 15:Qa(t),t.flags&2048&&wl(9,t,t.return);break;case 3:Qa(t);break;case 12:Qa(t);break;case 22:var e=t.stateNode;t.memoizedState!==null&&e._visibility&2&&(t.return===null||t.return.tag!==13)?(e._visibility&=-3,nu(t)):Qa(t);break;default:Qa(t)}}function nu(t){var e=t.deletions;if((t.flags&16)!==0){if(e!==null)for(var l=0;l<e.length;l++){var n=e[l];jt=n,Uh(n,t)}wh(t)}for(t=t.child;t!==null;){switch(e=t,e.tag){case 0:case 11:case 15:wl(8,e,e.return),nu(e);break;case 22:l=e.stateNode,l._visibility&2&&(l._visibility&=-3,nu(e));break;default:nu(e)}t=t.sibling}}function Uh(t,e){for(;jt!==null;){var l=jt;switch(l.tag){case 0:case 11:case 15:wl(8,l,e);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:Oa(l.memoizedState.cache)}if(n=l.child,n!==null)n.return=l,jt=n;else t:for(l=t;jt!==null;){n=jt;var a=n.sibling,i=n.return;if(_h(n),n===l){jt=null;break t}if(a!==null){a.return=i,jt=a;break t}jt=i}}}var wg={getCacheForType:function(t){var e=Vt(Dt),l=e.data.get(t);return l===void 0&&(l=t(),e.data.set(t,l)),l},cacheSignal:function(){return Vt(Dt).controller.signal}},Rg=typeof WeakMap=="function"?WeakMap:Map,it=0,yt=null,$=null,I=0,st=0,be=null,Rl=!1,Kn=!1,wc=!1,ml=0,At=0,Ul=0,mn=0,Rc=0,Ee=0,Jn=0,Za=null,oe=null,Uc=!1,au=0,Nh=0,iu=1/0,uu=null,Nl=null,Ht=0,Hl=null,kn=null,yl=0,Nc=0,Hc=null,Hh=null,Va=0,Bc=null;function Te(){return(it&2)!==0&&I!==0?I&-I:x.T!==null?Gc():$f()}function Bh(){if(Ee===0)if((I&536870912)===0||tt){var t=mi;mi<<=1,(mi&3932160)===0&&(mi=262144),Ee=t}else Ee=536870912;return t=ve.current,t!==null&&(t.flags|=32),Ee}function re(t,e,l){(t===yt&&(st===2||st===9)||t.cancelPendingCommit!==null)&&(Wn(t,0),Bl(t,I,Ee,!1)),ha(t,l),((it&2)===0||t!==yt)&&(t===yt&&((it&2)===0&&(mn|=l),At===4&&Bl(t,I,Ee,!1)),Je(t))}function Lh(t,e,l){if((it&6)!==0)throw Error(c(327));var n=!l&&(e&127)===0&&(e&t.expiredLanes)===0||ra(t,e),a=n?Hg(t,e):Yc(t,e,!0),i=n;do{if(a===0){Kn&&!n&&Bl(t,e,0,!1);break}else{if(l=t.current.alternate,i&&!Ug(l)){a=Yc(t,e,!1),i=!1;continue}if(a===2){if(i=e,t.errorRecoveryDisabledLanes&i)var o=0;else o=t.pendingLanes&-536870913,o=o!==0?o:o&536870912?536870912:0;if(o!==0){e=o;t:{var h=t;a=Za;var m=h.current.memoizedState.isDehydrated;if(m&&(Wn(h,o).flags|=256),o=Yc(h,o,!1),o!==2){if(wc&&!m){h.errorRecoveryDisabledLanes|=i,mn|=i,a=4;break t}i=oe,oe=a,i!==null&&(oe===null?oe=i:oe.push.apply(oe,i))}a=o}if(i=!1,a!==2)continue}}if(a===1){Wn(t,0),Bl(t,e,0,!0);break}t:{switch(n=t,i=a,i){case 0:case 1:throw Error(c(345));case 4:if((e&4194048)!==e)break;case 6:Bl(n,e,Ee,!Rl);break t;case 2:oe=null;break;case 3:case 5:break;default:throw Error(c(329))}if((e&62914560)===e&&(a=au+300-de(),10<a)){if(Bl(n,e,Ee,!Rl),gi(n,0,!0)!==0)break t;yl=e,n.timeoutHandle=md(Yh.bind(null,n,l,oe,uu,Uc,e,Ee,mn,Jn,Rl,i,"Throttled",-0,0),a);break t}Yh(n,l,oe,uu,Uc,e,Ee,mn,Jn,Rl,i,null,-0,0)}}break}while(!0);Je(t)}function Yh(t,e,l,n,a,i,o,h,m,_,O,D,A,M){if(t.timeoutHandle=-1,D=e.subtreeFlags,D&8192||(D&16785408)===16785408){D={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:tl},Dh(e,i,D);var H=(i&62914560)===i?au-de():(i&4194048)===i?Nh-de():0;if(H=pp(D,H),H!==null){yl=i,t.cancelPendingCommit=H(Kh.bind(null,t,e,i,l,n,a,o,h,m,O,D,null,A,M)),Bl(t,i,o,!_);return}}Kh(t,e,i,l,n,a,o,h,m)}function Ug(t){for(var e=t;;){var l=e.tag;if((l===0||l===11||l===15)&&e.flags&16384&&(l=e.updateQueue,l!==null&&(l=l.stores,l!==null)))for(var n=0;n<l.length;n++){var a=l[n],i=a.getSnapshot;a=a.value;try{if(!ge(i(),a))return!1}catch{return!1}}if(l=e.child,e.subtreeFlags&16384&&l!==null)l.return=e,e=l;else{if(e===t)break;for(;e.sibling===null;){if(e.return===null||e.return===t)return!0;e=e.return}e.sibling.return=e.return,e=e.sibling}}return!0}function Bl(t,e,l,n){e&=~Rc,e&=~mn,t.suspendedLanes|=e,t.pingedLanes&=~e,n&&(t.warmLanes|=e),n=t.expirationTimes;for(var a=e;0<a;){var i=31-ye(a),o=1<<i;n[i]=-1,a&=~o}l!==0&&Jf(t,l,e)}function su(){return(it&6)===0?(Ka(0),!1):!0}function Lc(){if($!==null){if(st===0)var t=$.return;else t=$,al=an=null,Ps(t),qn=null,xa=0,t=$;for(;t!==null;)yh(t.alternate,t),t=t.return;$=null}}function Wn(t,e){var l=t.timeoutHandle;l!==-1&&(t.timeoutHandle=-1,Pg(l)),l=t.cancelPendingCommit,l!==null&&(t.cancelPendingCommit=null,l()),yl=0,Lc(),yt=t,$=l=ll(t.current,null),I=e,st=0,be=null,Rl=!1,Kn=ra(t,e),wc=!1,Jn=Ee=Rc=mn=Ul=At=0,oe=Za=null,Uc=!1,(e&8)!==0&&(e|=e&32);var n=t.entangledLanes;if(n!==0)for(t=t.entanglements,n&=e;0<n;){var a=31-ye(n),i=1<<a;e|=t[a],n&=~i}return ml=e,xi(),l}function qh(t,e){K=null,x.H=Ba,e===Yn||e===Bi?(e=er(),st=3):e===Xs?(e=er(),st=4):st=e===yc?8:e!==null&&typeof e=="object"&&typeof e.then=="function"?6:1,be=e,$===null&&(At=1,$i(t,Oe(e,t.current)))}function jh(){var t=ve.current;return t===null?!0:(I&4194048)===I?De===null:(I&62914560)===I||(I&536870912)!==0?t===De:!1}function Xh(){var t=x.H;return x.H=Ba,t===null?Ba:t}function Gh(){var t=x.A;return x.A=wg,t}function cu(){At=4,Rl||(I&4194048)!==I&&ve.current!==null||(Kn=!0),(Ul&134217727)===0&&(mn&134217727)===0||yt===null||Bl(yt,I,Ee,!1)}function Yc(t,e,l){var n=it;it|=2;var a=Xh(),i=Gh();(yt!==t||I!==e)&&(uu=null,Wn(t,e)),e=!1;var o=At;t:do try{if(st!==0&&$!==null){var h=$,m=be;switch(st){case 8:Lc(),o=6;break t;case 3:case 2:case 9:case 6:ve.current===null&&(e=!0);var _=st;if(st=0,be=null,$n(t,h,m,_),l&&Kn){o=0;break t}break;default:_=st,st=0,be=null,$n(t,h,m,_)}}Ng(),o=At;break}catch(O){qh(t,O)}while(!0);return e&&t.shellSuspendCounter++,al=an=null,it=n,x.H=a,x.A=i,$===null&&(yt=null,I=0,xi()),o}function Ng(){for(;$!==null;)Qh($)}function Hg(t,e){var l=it;it|=2;var n=Xh(),a=Gh();yt!==t||I!==e?(uu=null,iu=de()+500,Wn(t,e)):Kn=ra(t,e);t:do try{if(st!==0&&$!==null){e=$;var i=be;e:switch(st){case 1:st=0,be=null,$n(t,e,i,1);break;case 2:case 9:if(Po(i)){st=0,be=null,Zh(e);break}e=function(){st!==2&&st!==9||yt!==t||(st=7),Je(t)},i.then(e,e);break t;case 3:st=7;break t;case 4:st=5;break t;case 7:Po(i)?(st=0,be=null,Zh(e)):(st=0,be=null,$n(t,e,i,7));break;case 5:var o=null;switch($.tag){case 26:o=$.memoizedState;case 5:case 27:var h=$;if(o?Cd(o):h.stateNode.complete){st=0,be=null;var m=h.sibling;if(m!==null)$=m;else{var _=h.return;_!==null?($=_,fu(_)):$=null}break e}}st=0,be=null,$n(t,e,i,5);break;case 6:st=0,be=null,$n(t,e,i,6);break;case 8:Lc(),At=6;break t;default:throw Error(c(462))}}Bg();break}catch(O){qh(t,O)}while(!0);return al=an=null,x.H=n,x.A=a,it=l,$!==null?0:(yt=null,I=0,xi(),At)}function Bg(){for(;$!==null&&!iy();)Qh($)}function Qh(t){var e=dh(t.alternate,t,ml);t.memoizedProps=t.pendingProps,e===null?fu(t):$=e}function Zh(t){var e=t,l=e.alternate;switch(e.tag){case 15:case 0:e=sh(l,e,e.pendingProps,e.type,void 0,I);break;case 11:e=sh(l,e,e.pendingProps,e.type.render,e.ref,I);break;case 5:Ps(e);default:yh(l,e),e=$=Go(e,ml),e=dh(l,e,ml)}t.memoizedProps=t.pendingProps,e===null?fu(t):$=e}function $n(t,e,l,n){al=an=null,Ps(e),qn=null,xa=0;var a=e.return;try{if(Ag(t,a,e,l,I)){At=1,$i(t,Oe(l,t.current)),$=null;return}}catch(i){if(a!==null)throw $=a,i;At=1,$i(t,Oe(l,t.current)),$=null;return}e.flags&32768?(tt||n===1?t=!0:Kn||(I&536870912)!==0?t=!1:(Rl=t=!0,(n===2||n===9||n===3||n===6)&&(n=ve.current,n!==null&&n.tag===13&&(n.flags|=16384))),Vh(e,t)):fu(e)}function fu(t){var e=t;do{if((e.flags&32768)!==0){Vh(e,Rl);return}t=e.return;var l=zg(e.alternate,e,ml);if(l!==null){$=l;return}if(e=e.sibling,e!==null){$=e;return}$=e=t}while(e!==null);At===0&&(At=5)}function Vh(t,e){do{var l=xg(t.alternate,t);if(l!==null){l.flags&=32767,$=l;return}if(l=t.return,l!==null&&(l.flags|=32768,l.subtreeFlags=0,l.deletions=null),!e&&(t=t.sibling,t!==null)){$=t;return}$=t=l}while(t!==null);At=6,$=null}function Kh(t,e,l,n,a,i,o,h,m){t.cancelPendingCommit=null;do ou();while(Ht!==0);if((it&6)!==0)throw Error(c(327));if(e!==null){if(e===t.current)throw Error(c(177));if(i=e.lanes|e.childLanes,i|=Os,yy(t,l,i,o,h,m),t===yt&&($=yt=null,I=0),kn=e,Hl=t,yl=l,Nc=i,Hc=a,Hh=n,(e.subtreeFlags&10256)!==0||(e.flags&10256)!==0?(t.callbackNode=null,t.callbackPriority=0,jg(hi,function(){return Fh(),null})):(t.callbackNode=null,t.callbackPriority=0),n=(e.flags&13878)!==0,(e.subtreeFlags&13878)!==0||n){n=x.T,x.T=null,a=R.p,R.p=2,o=it,it|=4;try{Cg(t,e,l)}finally{it=o,R.p=a,x.T=n}}Ht=1,Jh(),kh(),Wh()}}function Jh(){if(Ht===1){Ht=0;var t=Hl,e=kn,l=(e.flags&13878)!==0;if((e.subtreeFlags&13878)!==0||l){l=x.T,x.T=null;var n=R.p;R.p=2;var a=it;it|=4;try{zh(e,t);var i=$c,o=Uo(t.containerInfo),h=i.focusedElem,m=i.selectionRange;if(o!==h&&h&&h.ownerDocument&&Ro(h.ownerDocument.documentElement,h)){if(m!==null&&Es(h)){var _=m.start,O=m.end;if(O===void 0&&(O=_),"selectionStart"in h)h.selectionStart=_,h.selectionEnd=Math.min(O,h.value.length);else{var D=h.ownerDocument||document,A=D&&D.defaultView||window;if(A.getSelection){var M=A.getSelection(),H=h.textContent.length,X=Math.min(m.start,H),dt=m.end===void 0?X:Math.min(m.end,H);!M.extend&&X>dt&&(o=dt,dt=X,X=o);var b=wo(h,X),g=wo(h,dt);if(b&&g&&(M.rangeCount!==1||M.anchorNode!==b.node||M.anchorOffset!==b.offset||M.focusNode!==g.node||M.focusOffset!==g.offset)){var T=D.createRange();T.setStart(b.node,b.offset),M.removeAllRanges(),X>dt?(M.addRange(T),M.extend(g.node,g.offset)):(T.setEnd(g.node,g.offset),M.addRange(T))}}}}for(D=[],M=h;M=M.parentNode;)M.nodeType===1&&D.push({element:M,left:M.scrollLeft,top:M.scrollTop});for(typeof h.focus=="function"&&h.focus(),h=0;h<D.length;h++){var C=D[h];C.element.scrollLeft=C.left,C.element.scrollTop=C.top}}Tu=!!Wc,$c=Wc=null}finally{it=a,R.p=n,x.T=l}}t.current=e,Ht=2}}function kh(){if(Ht===2){Ht=0;var t=Hl,e=kn,l=(e.flags&8772)!==0;if((e.subtreeFlags&8772)!==0||l){l=x.T,x.T=null;var n=R.p;R.p=2;var a=it;it|=4;try{Th(t,e.alternate,e)}finally{it=a,R.p=n,x.T=l}}Ht=3}}function Wh(){if(Ht===4||Ht===3){Ht=0,uy();var t=Hl,e=kn,l=yl,n=Hh;(e.subtreeFlags&10256)!==0||(e.flags&10256)!==0?Ht=5:(Ht=0,kn=Hl=null,$h(t,t.pendingLanes));var a=t.pendingLanes;if(a===0&&(Nl=null),ls(l),e=e.stateNode,me&&typeof me.onCommitFiberRoot=="function")try{me.onCommitFiberRoot(oa,e,void 0,(e.current.flags&128)===128)}catch{}if(n!==null){e=x.T,a=R.p,R.p=2,x.T=null;try{for(var i=t.onRecoverableError,o=0;o<n.length;o++){var h=n[o];i(h.value,{componentStack:h.stack})}}finally{x.T=e,R.p=a}}(yl&3)!==0&&ou(),Je(t),a=t.pendingLanes,(l&261930)!==0&&(a&42)!==0?t===Bc?Va++:(Va=0,Bc=t):Va=0,Ka(0)}}function $h(t,e){(t.pooledCacheLanes&=e)===0&&(e=t.pooledCache,e!=null&&(t.pooledCache=null,Oa(e)))}function ou(){return Jh(),kh(),Wh(),Fh()}function Fh(){if(Ht!==5)return!1;var t=Hl,e=Nc;Nc=0;var l=ls(yl),n=x.T,a=R.p;try{R.p=32>l?32:l,x.T=null,l=Hc,Hc=null;var i=Hl,o=yl;if(Ht=0,kn=Hl=null,yl=0,(it&6)!==0)throw Error(c(331));var h=it;if(it|=4,Rh(i.current),Ch(i,i.current,o,l),it=h,Ka(0,!1),me&&typeof me.onPostCommitFiberRoot=="function")try{me.onPostCommitFiberRoot(oa,i)}catch{}return!0}finally{R.p=a,x.T=n,$h(t,e)}}function Ih(t,e,l){e=Oe(l,e),e=mc(t.stateNode,e,2),t=xl(t,e,2),t!==null&&(ha(t,2),Je(t))}function ct(t,e,l){if(t.tag===3)Ih(t,t,l);else for(;e!==null;){if(e.tag===3){Ih(e,t,l);break}else if(e.tag===1){var n=e.stateNode;if(typeof e.type.getDerivedStateFromError=="function"||typeof n.componentDidCatch=="function"&&(Nl===null||!Nl.has(n))){t=Oe(l,t),l=Pr(2),n=xl(e,l,2),n!==null&&(th(l,n,e,t),ha(n,2),Je(n));break}}e=e.return}}function qc(t,e,l){var n=t.pingCache;if(n===null){n=t.pingCache=new Rg;var a=new Set;n.set(e,a)}else a=n.get(e),a===void 0&&(a=new Set,n.set(e,a));a.has(l)||(wc=!0,a.add(l),t=Lg.bind(null,t,e,l),e.then(t,t))}function Lg(t,e,l){var n=t.pingCache;n!==null&&n.delete(e),t.pingedLanes|=t.suspendedLanes&l,t.warmLanes&=~l,yt===t&&(I&l)===l&&(At===4||At===3&&(I&62914560)===I&&300>de()-au?(it&2)===0&&Wn(t,0):Rc|=l,Jn===I&&(Jn=0)),Je(t)}function Ph(t,e){e===0&&(e=Kf()),t=en(t,e),t!==null&&(ha(t,e),Je(t))}function Yg(t){var e=t.memoizedState,l=0;e!==null&&(l=e.retryLane),Ph(t,l)}function qg(t,e){var l=0;switch(t.tag){case 31:case 13:var n=t.stateNode,a=t.memoizedState;a!==null&&(l=a.retryLane);break;case 19:n=t.stateNode;break;case 22:n=t.stateNode._retryCache;break;default:throw Error(c(314))}n!==null&&n.delete(e),Ph(t,l)}function jg(t,e){return Iu(t,e)}var ru=null,Fn=null,jc=!1,hu=!1,Xc=!1,Ll=0;function Je(t){t!==Fn&&t.next===null&&(Fn===null?ru=Fn=t:Fn=Fn.next=t),hu=!0,jc||(jc=!0,Gg())}function Ka(t,e){if(!Xc&&hu){Xc=!0;do for(var l=!1,n=ru;n!==null;){if(t!==0){var a=n.pendingLanes;if(a===0)var i=0;else{var o=n.suspendedLanes,h=n.pingedLanes;i=(1<<31-ye(42|t)+1)-1,i&=a&~(o&~h),i=i&201326741?i&201326741|1:i?i|2:0}i!==0&&(l=!0,nd(n,i))}else i=I,i=gi(n,n===yt?i:0,n.cancelPendingCommit!==null||n.timeoutHandle!==-1),(i&3)===0||ra(n,i)||(l=!0,nd(n,i));n=n.next}while(l);Xc=!1}}function Xg(){td()}function td(){hu=jc=!1;var t=0;Ll!==0&&Ig()&&(t=Ll);for(var e=de(),l=null,n=ru;n!==null;){var a=n.next,i=ed(n,e);i===0?(n.next=null,l===null?ru=a:l.next=a,a===null&&(Fn=l)):(l=n,(t!==0||(i&3)!==0)&&(hu=!0)),n=a}Ht!==0&&Ht!==5||Ka(t),Ll!==0&&(Ll=0)}function ed(t,e){for(var l=t.suspendedLanes,n=t.pingedLanes,a=t.expirationTimes,i=t.pendingLanes&-62914561;0<i;){var o=31-ye(i),h=1<<o,m=a[o];m===-1?((h&l)===0||(h&n)!==0)&&(a[o]=my(h,e)):m<=e&&(t.expiredLanes|=h),i&=~h}if(e=yt,l=I,l=gi(t,t===e?l:0,t.cancelPendingCommit!==null||t.timeoutHandle!==-1),n=t.callbackNode,l===0||t===e&&(st===2||st===9)||t.cancelPendingCommit!==null)return n!==null&&n!==null&&Pu(n),t.callbackNode=null,t.callbackPriority=0;if((l&3)===0||ra(t,l)){if(e=l&-l,e===t.callbackPriority)return e;switch(n!==null&&Pu(n),ls(l)){case 2:case 8:l=Zf;break;case 32:l=hi;break;case 268435456:l=Vf;break;default:l=hi}return n=ld.bind(null,t),l=Iu(l,n),t.callbackPriority=e,t.callbackNode=l,e}return n!==null&&n!==null&&Pu(n),t.callbackPriority=2,t.callbackNode=null,2}function ld(t,e){if(Ht!==0&&Ht!==5)return t.callbackNode=null,t.callbackPriority=0,null;var l=t.callbackNode;if(ou()&&t.callbackNode!==l)return null;var n=I;return n=gi(t,t===yt?n:0,t.cancelPendingCommit!==null||t.timeoutHandle!==-1),n===0?null:(Lh(t,n,e),ed(t,de()),t.callbackNode!=null&&t.callbackNode===l?ld.bind(null,t):null)}function nd(t,e){if(ou())return null;Lh(t,e,!0)}function Gg(){tp(function(){(it&6)!==0?Iu(Qf,Xg):td()})}function Gc(){if(Ll===0){var t=Bn;t===0&&(t=di,di<<=1,(di&261888)===0&&(di=256)),Ll=t}return Ll}function ad(t){return t==null||typeof t=="symbol"||typeof t=="boolean"?null:typeof t=="function"?t:bi(""+t)}function id(t,e){var l=e.ownerDocument.createElement("input");return l.name=e.name,l.value=e.value,t.id&&l.setAttribute("form",t.id),e.parentNode.insertBefore(l,e),t=new FormData(t),l.parentNode.removeChild(l),t}function Qg(t,e,l,n,a){if(e==="submit"&&l&&l.stateNode===a){var i=ad((a[ie]||null).action),o=n.submitter;o&&(e=(e=o[ie]||null)?ad(e.formAction):o.getAttribute("formAction"),e!==null&&(i=e,o=null));var h=new Ai("action","action",null,n,a);t.push({event:h,listeners:[{instance:null,listener:function(){if(n.defaultPrevented){if(Ll!==0){var m=o?id(a,o):new FormData(a);cc(l,{pending:!0,data:m,method:a.method,action:i},null,m)}}else typeof i=="function"&&(h.preventDefault(),m=o?id(a,o):new FormData(a),cc(l,{pending:!0,data:m,method:a.method,action:i},i,m))},currentTarget:a}]})}}for(var Qc=0;Qc<Ms.length;Qc++){var Zc=Ms[Qc],Zg=Zc.toLowerCase(),Vg=Zc[0].toUpperCase()+Zc.slice(1);Ye(Zg,"on"+Vg)}Ye(Bo,"onAnimationEnd"),Ye(Lo,"onAnimationIteration"),Ye(Yo,"onAnimationStart"),Ye("dblclick","onDoubleClick"),Ye("focusin","onFocus"),Ye("focusout","onBlur"),Ye(sg,"onTransitionRun"),Ye(cg,"onTransitionStart"),Ye(fg,"onTransitionCancel"),Ye(qo,"onTransitionEnd"),Tn("onMouseEnter",["mouseout","mouseover"]),Tn("onMouseLeave",["mouseout","mouseover"]),Tn("onPointerEnter",["pointerout","pointerover"]),Tn("onPointerLeave",["pointerout","pointerover"]),Fl("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),Fl("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),Fl("onBeforeInput",["compositionend","keypress","textInput","paste"]),Fl("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),Fl("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),Fl("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Ja="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(" "),Kg=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(Ja));function ud(t,e){e=(e&4)!==0;for(var l=0;l<t.length;l++){var n=t[l],a=n.event;n=n.listeners;t:{var i=void 0;if(e)for(var o=n.length-1;0<=o;o--){var h=n[o],m=h.instance,_=h.currentTarget;if(h=h.listener,m!==i&&a.isPropagationStopped())break t;i=h,a.currentTarget=_;try{i(a)}catch(O){zi(O)}a.currentTarget=null,i=m}else for(o=0;o<n.length;o++){if(h=n[o],m=h.instance,_=h.currentTarget,h=h.listener,m!==i&&a.isPropagationStopped())break t;i=h,a.currentTarget=_;try{i(a)}catch(O){zi(O)}a.currentTarget=null,i=m}}}}function F(t,e){var l=e[ns];l===void 0&&(l=e[ns]=new Set);var n=t+"__bubble";l.has(n)||(sd(e,t,2,!1),l.add(n))}function Vc(t,e,l){var n=0;e&&(n|=4),sd(l,t,n,e)}var du="_reactListening"+Math.random().toString(36).slice(2);function Kc(t){if(!t[du]){t[du]=!0,Pf.forEach(function(l){l!=="selectionchange"&&(Kg.has(l)||Vc(l,!1,t),Vc(l,!0,t))});var e=t.nodeType===9?t:t.ownerDocument;e===null||e[du]||(e[du]=!0,Vc("selectionchange",!1,e))}}function sd(t,e,l,n){switch(Bd(e)){case 2:var a=bp;break;case 8:a=Ep;break;default:a=cf}l=a.bind(null,e,l,t),a=void 0,!hs||e!=="touchstart"&&e!=="touchmove"&&e!=="wheel"||(a=!0),n?a!==void 0?t.addEventListener(e,l,{capture:!0,passive:a}):t.addEventListener(e,l,!0):a!==void 0?t.addEventListener(e,l,{passive:a}):t.addEventListener(e,l,!1)}function Jc(t,e,l,n,a){var i=n;if((e&1)===0&&(e&2)===0&&n!==null)t:for(;;){if(n===null)return;var o=n.tag;if(o===3||o===4){var h=n.stateNode.containerInfo;if(h===a)break;if(o===4)for(o=n.return;o!==null;){var m=o.tag;if((m===3||m===4)&&o.stateNode.containerInfo===a)return;o=o.return}for(;h!==null;){if(o=Sn(h),o===null)return;if(m=o.tag,m===5||m===6||m===26||m===27){n=i=o;continue t}h=h.parentNode}}n=n.return}ro(function(){var _=i,O=os(l),D=[];t:{var A=jo.get(t);if(A!==void 0){var M=Ai,H=t;switch(t){case"keypress":if(Ti(l)===0)break t;case"keydown":case"keyup":M=qy;break;case"focusin":H="focus",M=gs;break;case"focusout":H="blur",M=gs;break;case"beforeblur":case"afterblur":M=gs;break;case"click":if(l.button===2)break t;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":M=yo;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":M=zy;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":M=Gy;break;case Bo:case Lo:case Yo:M=Dy;break;case qo:M=Zy;break;case"scroll":case"scrollend":M=My;break;case"wheel":M=Ky;break;case"copy":case"cut":case"paste":M=Ry;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":M=po;break;case"toggle":case"beforetoggle":M=ky}var X=(e&4)!==0,dt=!X&&(t==="scroll"||t==="scrollend"),b=X?A!==null?A+"Capture":null:A;X=[];for(var g=_,T;g!==null;){var C=g;if(T=C.stateNode,C=C.tag,C!==5&&C!==26&&C!==27||T===null||b===null||(C=ya(g,b),C!=null&&X.push(ka(g,C,T))),dt)break;g=g.return}0<X.length&&(A=new M(A,H,null,l,O),D.push({event:A,listeners:X}))}}if((e&7)===0){t:{if(A=t==="mouseover"||t==="pointerover",M=t==="mouseout"||t==="pointerout",A&&l!==fs&&(H=l.relatedTarget||l.fromElement)&&(Sn(H)||H[vn]))break t;if((M||A)&&(A=O.window===O?O:(A=O.ownerDocument)?A.defaultView||A.parentWindow:window,M?(H=l.relatedTarget||l.toElement,M=_,H=H?Sn(H):null,H!==null&&(dt=d(H),X=H.tag,H!==dt||X!==5&&X!==27&&X!==6)&&(H=null)):(M=null,H=_),M!==H)){if(X=yo,C="onMouseLeave",b="onMouseEnter",g="mouse",(t==="pointerout"||t==="pointerover")&&(X=po,C="onPointerLeave",b="onPointerEnter",g="pointer"),dt=M==null?A:ma(M),T=H==null?A:ma(H),A=new X(C,g+"leave",M,l,O),A.target=dt,A.relatedTarget=T,C=null,Sn(O)===_&&(X=new X(b,g+"enter",H,l,O),X.target=T,X.relatedTarget=dt,C=X),dt=C,M&&H)e:{for(X=Jg,b=M,g=H,T=0,C=b;C;C=X(C))T++;C=0;for(var q=g;q;q=X(q))C++;for(;0<T-C;)b=X(b),T--;for(;0<C-T;)g=X(g),C--;for(;T--;){if(b===g||g!==null&&b===g.alternate){X=b;break e}b=X(b),g=X(g)}X=null}else X=null;M!==null&&cd(D,A,M,X,!1),H!==null&&dt!==null&&cd(D,dt,H,X,!0)}}t:{if(A=_?ma(_):window,M=A.nodeName&&A.nodeName.toLowerCase(),M==="select"||M==="input"&&A.type==="file")var lt=Mo;else if(_o(A))if(Oo)lt=ag;else{lt=lg;var Y=eg}else M=A.nodeName,!M||M.toLowerCase()!=="input"||A.type!=="checkbox"&&A.type!=="radio"?_&&cs(_.elementType)&&(lt=Mo):lt=ng;if(lt&&(lt=lt(t,_))){Ao(D,lt,l,O);break t}Y&&Y(t,A,_),t==="focusout"&&_&&A.type==="number"&&_.memoizedProps.value!=null&&ss(A,"number",A.value)}switch(Y=_?ma(_):window,t){case"focusin":(_o(Y)||Y.contentEditable==="true")&&(xn=Y,Ts=_,_a=null);break;case"focusout":_a=Ts=xn=null;break;case"mousedown":_s=!0;break;case"contextmenu":case"mouseup":case"dragend":_s=!1,No(D,l,O);break;case"selectionchange":if(ug)break;case"keydown":case"keyup":No(D,l,O)}var J;if(vs)t:{switch(t){case"compositionstart":var P="onCompositionStart";break t;case"compositionend":P="onCompositionEnd";break t;case"compositionupdate":P="onCompositionUpdate";break t}P=void 0}else zn?Eo(t,l)&&(P="onCompositionEnd"):t==="keydown"&&l.keyCode===229&&(P="onCompositionStart");P&&(vo&&l.locale!=="ko"&&(zn||P!=="onCompositionStart"?P==="onCompositionEnd"&&zn&&(J=ho()):(El=O,ds="value"in El?El.value:El.textContent,zn=!0)),Y=mu(_,P),0<Y.length&&(P=new go(P,t,null,l,O),D.push({event:P,listeners:Y}),J?P.data=J:(J=To(l),J!==null&&(P.data=J)))),(J=$y?Fy(t,l):Iy(t,l))&&(P=mu(_,"onBeforeInput"),0<P.length&&(Y=new go("onBeforeInput","beforeinput",null,l,O),D.push({event:Y,listeners:P}),Y.data=J)),Qg(D,t,_,l,O)}ud(D,e)})}function ka(t,e,l){return{instance:t,listener:e,currentTarget:l}}function mu(t,e){for(var l=e+"Capture",n=[];t!==null;){var a=t,i=a.stateNode;if(a=a.tag,a!==5&&a!==26&&a!==27||i===null||(a=ya(t,l),a!=null&&n.unshift(ka(t,a,i)),a=ya(t,e),a!=null&&n.push(ka(t,a,i))),t.tag===3)return n;t=t.return}return[]}function Jg(t){if(t===null)return null;do t=t.return;while(t&&t.tag!==5&&t.tag!==27);return t||null}function cd(t,e,l,n,a){for(var i=e._reactName,o=[];l!==null&&l!==n;){var h=l,m=h.alternate,_=h.stateNode;if(h=h.tag,m!==null&&m===n)break;h!==5&&h!==26&&h!==27||_===null||(m=_,a?(_=ya(l,i),_!=null&&o.unshift(ka(l,_,m))):a||(_=ya(l,i),_!=null&&o.push(ka(l,_,m)))),l=l.return}o.length!==0&&t.push({event:e,listeners:o})}var kg=/\r\n?/g,Wg=/\u0000|\uFFFD/g;function fd(t){return(typeof t=="string"?t:""+t).replace(kg,`
|
|
49
|
+
`).replace(Wg,"")}function od(t,e){return e=fd(e),fd(t)===e}function ht(t,e,l,n,a,i){switch(l){case"children":typeof n=="string"?e==="body"||e==="textarea"&&n===""||An(t,n):(typeof n=="number"||typeof n=="bigint")&&e!=="body"&&An(t,""+n);break;case"className":vi(t,"class",n);break;case"tabIndex":vi(t,"tabindex",n);break;case"dir":case"role":case"viewBox":case"width":case"height":vi(t,l,n);break;case"style":fo(t,n,i);break;case"data":if(e!=="object"){vi(t,"data",n);break}case"src":case"href":if(n===""&&(e!=="a"||l!=="href")){t.removeAttribute(l);break}if(n==null||typeof n=="function"||typeof n=="symbol"||typeof n=="boolean"){t.removeAttribute(l);break}n=bi(""+n),t.setAttribute(l,n);break;case"action":case"formAction":if(typeof n=="function"){t.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 i=="function"&&(l==="formAction"?(e!=="input"&&ht(t,e,"name",a.name,a,null),ht(t,e,"formEncType",a.formEncType,a,null),ht(t,e,"formMethod",a.formMethod,a,null),ht(t,e,"formTarget",a.formTarget,a,null)):(ht(t,e,"encType",a.encType,a,null),ht(t,e,"method",a.method,a,null),ht(t,e,"target",a.target,a,null)));if(n==null||typeof n=="symbol"||typeof n=="boolean"){t.removeAttribute(l);break}n=bi(""+n),t.setAttribute(l,n);break;case"onClick":n!=null&&(t.onclick=tl);break;case"onScroll":n!=null&&F("scroll",t);break;case"onScrollEnd":n!=null&&F("scrollend",t);break;case"dangerouslySetInnerHTML":if(n!=null){if(typeof n!="object"||!("__html"in n))throw Error(c(61));if(l=n.__html,l!=null){if(a.children!=null)throw Error(c(60));t.innerHTML=l}}break;case"multiple":t.multiple=n&&typeof n!="function"&&typeof n!="symbol";break;case"muted":t.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"){t.removeAttribute("xlink:href");break}l=bi(""+n),t.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"?t.setAttribute(l,""+n):t.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"?t.setAttribute(l,""):t.removeAttribute(l);break;case"capture":case"download":n===!0?t.setAttribute(l,""):n!==!1&&n!=null&&typeof n!="function"&&typeof n!="symbol"?t.setAttribute(l,n):t.removeAttribute(l);break;case"cols":case"rows":case"size":case"span":n!=null&&typeof n!="function"&&typeof n!="symbol"&&!isNaN(n)&&1<=n?t.setAttribute(l,n):t.removeAttribute(l);break;case"rowSpan":case"start":n==null||typeof n=="function"||typeof n=="symbol"||isNaN(n)?t.removeAttribute(l):t.setAttribute(l,n);break;case"popover":F("beforetoggle",t),F("toggle",t),pi(t,"popover",n);break;case"xlinkActuate":Pe(t,"http://www.w3.org/1999/xlink","xlink:actuate",n);break;case"xlinkArcrole":Pe(t,"http://www.w3.org/1999/xlink","xlink:arcrole",n);break;case"xlinkRole":Pe(t,"http://www.w3.org/1999/xlink","xlink:role",n);break;case"xlinkShow":Pe(t,"http://www.w3.org/1999/xlink","xlink:show",n);break;case"xlinkTitle":Pe(t,"http://www.w3.org/1999/xlink","xlink:title",n);break;case"xlinkType":Pe(t,"http://www.w3.org/1999/xlink","xlink:type",n);break;case"xmlBase":Pe(t,"http://www.w3.org/XML/1998/namespace","xml:base",n);break;case"xmlLang":Pe(t,"http://www.w3.org/XML/1998/namespace","xml:lang",n);break;case"xmlSpace":Pe(t,"http://www.w3.org/XML/1998/namespace","xml:space",n);break;case"is":pi(t,"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=_y.get(l)||l,pi(t,l,n))}}function kc(t,e,l,n,a,i){switch(l){case"style":fo(t,n,i);break;case"dangerouslySetInnerHTML":if(n!=null){if(typeof n!="object"||!("__html"in n))throw Error(c(61));if(l=n.__html,l!=null){if(a.children!=null)throw Error(c(60));t.innerHTML=l}}break;case"children":typeof n=="string"?An(t,n):(typeof n=="number"||typeof n=="bigint")&&An(t,""+n);break;case"onScroll":n!=null&&F("scroll",t);break;case"onScrollEnd":n!=null&&F("scrollend",t);break;case"onClick":n!=null&&(t.onclick=tl);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!to.hasOwnProperty(l))t:{if(l[0]==="o"&&l[1]==="n"&&(a=l.endsWith("Capture"),e=l.slice(2,a?l.length-7:void 0),i=t[ie]||null,i=i!=null?i[l]:null,typeof i=="function"&&t.removeEventListener(e,i,a),typeof n=="function")){typeof i!="function"&&i!==null&&(l in t?t[l]=null:t.hasAttribute(l)&&t.removeAttribute(l)),t.addEventListener(e,n,a);break t}l in t?t[l]=n:n===!0?t.setAttribute(l,""):pi(t,l,n)}}}function Jt(t,e,l){switch(e){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":F("error",t),F("load",t);var n=!1,a=!1,i;for(i in l)if(l.hasOwnProperty(i)){var o=l[i];if(o!=null)switch(i){case"src":n=!0;break;case"srcSet":a=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(c(137,e));default:ht(t,e,i,o,l,null)}}a&&ht(t,e,"srcSet",l.srcSet,l,null),n&&ht(t,e,"src",l.src,l,null);return;case"input":F("invalid",t);var h=i=o=a=null,m=null,_=null;for(n in l)if(l.hasOwnProperty(n)){var O=l[n];if(O!=null)switch(n){case"name":a=O;break;case"type":o=O;break;case"checked":m=O;break;case"defaultChecked":_=O;break;case"value":i=O;break;case"defaultValue":h=O;break;case"children":case"dangerouslySetInnerHTML":if(O!=null)throw Error(c(137,e));break;default:ht(t,e,n,O,l,null)}}io(t,i,h,m,_,o,a,!1);return;case"select":F("invalid",t),n=o=i=null;for(a in l)if(l.hasOwnProperty(a)&&(h=l[a],h!=null))switch(a){case"value":i=h;break;case"defaultValue":o=h;break;case"multiple":n=h;default:ht(t,e,a,h,l,null)}e=i,l=o,t.multiple=!!n,e!=null?_n(t,!!n,e,!1):l!=null&&_n(t,!!n,l,!0);return;case"textarea":F("invalid",t),i=a=n=null;for(o in l)if(l.hasOwnProperty(o)&&(h=l[o],h!=null))switch(o){case"value":n=h;break;case"defaultValue":a=h;break;case"children":i=h;break;case"dangerouslySetInnerHTML":if(h!=null)throw Error(c(91));break;default:ht(t,e,o,h,l,null)}so(t,n,a,i);return;case"option":for(m in l)if(l.hasOwnProperty(m)&&(n=l[m],n!=null))switch(m){case"selected":t.selected=n&&typeof n!="function"&&typeof n!="symbol";break;default:ht(t,e,m,n,l,null)}return;case"dialog":F("beforetoggle",t),F("toggle",t),F("cancel",t),F("close",t);break;case"iframe":case"object":F("load",t);break;case"video":case"audio":for(n=0;n<Ja.length;n++)F(Ja[n],t);break;case"image":F("error",t),F("load",t);break;case"details":F("toggle",t);break;case"embed":case"source":case"link":F("error",t),F("load",t);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(_ in l)if(l.hasOwnProperty(_)&&(n=l[_],n!=null))switch(_){case"children":case"dangerouslySetInnerHTML":throw Error(c(137,e));default:ht(t,e,_,n,l,null)}return;default:if(cs(e)){for(O in l)l.hasOwnProperty(O)&&(n=l[O],n!==void 0&&kc(t,e,O,n,l,void 0));return}}for(h in l)l.hasOwnProperty(h)&&(n=l[h],n!=null&&ht(t,e,h,n,l,null))}function $g(t,e,l,n){switch(e){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var a=null,i=null,o=null,h=null,m=null,_=null,O=null;for(M in l){var D=l[M];if(l.hasOwnProperty(M)&&D!=null)switch(M){case"checked":break;case"value":break;case"defaultValue":m=D;default:n.hasOwnProperty(M)||ht(t,e,M,null,n,D)}}for(var A in n){var M=n[A];if(D=l[A],n.hasOwnProperty(A)&&(M!=null||D!=null))switch(A){case"type":i=M;break;case"name":a=M;break;case"checked":_=M;break;case"defaultChecked":O=M;break;case"value":o=M;break;case"defaultValue":h=M;break;case"children":case"dangerouslySetInnerHTML":if(M!=null)throw Error(c(137,e));break;default:M!==D&&ht(t,e,A,M,n,D)}}us(t,o,h,m,_,O,i,a);return;case"select":M=o=h=A=null;for(i in l)if(m=l[i],l.hasOwnProperty(i)&&m!=null)switch(i){case"value":break;case"multiple":M=m;default:n.hasOwnProperty(i)||ht(t,e,i,null,n,m)}for(a in n)if(i=n[a],m=l[a],n.hasOwnProperty(a)&&(i!=null||m!=null))switch(a){case"value":A=i;break;case"defaultValue":h=i;break;case"multiple":o=i;default:i!==m&&ht(t,e,a,i,n,m)}e=h,l=o,n=M,A!=null?_n(t,!!l,A,!1):!!n!=!!l&&(e!=null?_n(t,!!l,e,!0):_n(t,!!l,l?[]:"",!1));return;case"textarea":M=A=null;for(h in l)if(a=l[h],l.hasOwnProperty(h)&&a!=null&&!n.hasOwnProperty(h))switch(h){case"value":break;case"children":break;default:ht(t,e,h,null,n,a)}for(o in n)if(a=n[o],i=l[o],n.hasOwnProperty(o)&&(a!=null||i!=null))switch(o){case"value":A=a;break;case"defaultValue":M=a;break;case"children":break;case"dangerouslySetInnerHTML":if(a!=null)throw Error(c(91));break;default:a!==i&&ht(t,e,o,a,n,i)}uo(t,A,M);return;case"option":for(var H in l)if(A=l[H],l.hasOwnProperty(H)&&A!=null&&!n.hasOwnProperty(H))switch(H){case"selected":t.selected=!1;break;default:ht(t,e,H,null,n,A)}for(m in n)if(A=n[m],M=l[m],n.hasOwnProperty(m)&&A!==M&&(A!=null||M!=null))switch(m){case"selected":t.selected=A&&typeof A!="function"&&typeof A!="symbol";break;default:ht(t,e,m,A,n,M)}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 X in l)A=l[X],l.hasOwnProperty(X)&&A!=null&&!n.hasOwnProperty(X)&&ht(t,e,X,null,n,A);for(_ in n)if(A=n[_],M=l[_],n.hasOwnProperty(_)&&A!==M&&(A!=null||M!=null))switch(_){case"children":case"dangerouslySetInnerHTML":if(A!=null)throw Error(c(137,e));break;default:ht(t,e,_,A,n,M)}return;default:if(cs(e)){for(var dt in l)A=l[dt],l.hasOwnProperty(dt)&&A!==void 0&&!n.hasOwnProperty(dt)&&kc(t,e,dt,void 0,n,A);for(O in n)A=n[O],M=l[O],!n.hasOwnProperty(O)||A===M||A===void 0&&M===void 0||kc(t,e,O,A,n,M);return}}for(var b in l)A=l[b],l.hasOwnProperty(b)&&A!=null&&!n.hasOwnProperty(b)&&ht(t,e,b,null,n,A);for(D in n)A=n[D],M=l[D],!n.hasOwnProperty(D)||A===M||A==null&&M==null||ht(t,e,D,A,n,M)}function rd(t){switch(t){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function Fg(){if(typeof performance.getEntriesByType=="function"){for(var t=0,e=0,l=performance.getEntriesByType("resource"),n=0;n<l.length;n++){var a=l[n],i=a.transferSize,o=a.initiatorType,h=a.duration;if(i&&h&&rd(o)){for(o=0,h=a.responseEnd,n+=1;n<l.length;n++){var m=l[n],_=m.startTime;if(_>h)break;var O=m.transferSize,D=m.initiatorType;O&&rd(D)&&(m=m.responseEnd,o+=O*(m<h?1:(h-_)/(m-_)))}if(--n,e+=8*(i+o)/(a.duration/1e3),t++,10<t)break}}if(0<t)return e/t/1e6}return navigator.connection&&(t=navigator.connection.downlink,typeof t=="number")?t:5}var Wc=null,$c=null;function yu(t){return t.nodeType===9?t:t.ownerDocument}function hd(t){switch(t){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function dd(t,e){if(t===0)switch(e){case"svg":return 1;case"math":return 2;default:return 0}return t===1&&e==="foreignObject"?0:t}function Fc(t,e){return t==="textarea"||t==="noscript"||typeof e.children=="string"||typeof e.children=="number"||typeof e.children=="bigint"||typeof e.dangerouslySetInnerHTML=="object"&&e.dangerouslySetInnerHTML!==null&&e.dangerouslySetInnerHTML.__html!=null}var Ic=null;function Ig(){var t=window.event;return t&&t.type==="popstate"?t===Ic?!1:(Ic=t,!0):(Ic=null,!1)}var md=typeof setTimeout=="function"?setTimeout:void 0,Pg=typeof clearTimeout=="function"?clearTimeout:void 0,yd=typeof Promise=="function"?Promise:void 0,tp=typeof queueMicrotask=="function"?queueMicrotask:typeof yd<"u"?function(t){return yd.resolve(null).then(t).catch(ep)}:md;function ep(t){setTimeout(function(){throw t})}function Yl(t){return t==="head"}function gd(t,e){var l=e,n=0;do{var a=l.nextSibling;if(t.removeChild(l),a&&a.nodeType===8)if(l=a.data,l==="/$"||l==="/&"){if(n===0){t.removeChild(a),ea(e);return}n--}else if(l==="$"||l==="$?"||l==="$~"||l==="$!"||l==="&")n++;else if(l==="html")Wa(t.ownerDocument.documentElement);else if(l==="head"){l=t.ownerDocument.head,Wa(l);for(var i=l.firstChild;i;){var o=i.nextSibling,h=i.nodeName;i[da]||h==="SCRIPT"||h==="STYLE"||h==="LINK"&&i.rel.toLowerCase()==="stylesheet"||l.removeChild(i),i=o}}else l==="body"&&Wa(t.ownerDocument.body);l=a}while(l);ea(e)}function pd(t,e){var l=t;t=0;do{var n=l.nextSibling;if(l.nodeType===1?e?(l._stashedDisplay=l.style.display,l.style.display="none"):(l.style.display=l._stashedDisplay||"",l.getAttribute("style")===""&&l.removeAttribute("style")):l.nodeType===3&&(e?(l._stashedText=l.nodeValue,l.nodeValue=""):l.nodeValue=l._stashedText||""),n&&n.nodeType===8)if(l=n.data,l==="/$"){if(t===0)break;t--}else l!=="$"&&l!=="$?"&&l!=="$~"&&l!=="$!"||t++;l=n}while(l)}function Pc(t){var e=t.firstChild;for(e&&e.nodeType===10&&(e=e.nextSibling);e;){var l=e;switch(e=e.nextSibling,l.nodeName){case"HTML":case"HEAD":case"BODY":Pc(l),as(l);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(l.rel.toLowerCase()==="stylesheet")continue}t.removeChild(l)}}function lp(t,e,l,n){for(;t.nodeType===1;){var a=l;if(t.nodeName.toLowerCase()!==e.toLowerCase()){if(!n&&(t.nodeName!=="INPUT"||t.type!=="hidden"))break}else if(n){if(!t[da])switch(e){case"meta":if(!t.hasAttribute("itemprop"))break;return t;case"link":if(i=t.getAttribute("rel"),i==="stylesheet"&&t.hasAttribute("data-precedence"))break;if(i!==a.rel||t.getAttribute("href")!==(a.href==null||a.href===""?null:a.href)||t.getAttribute("crossorigin")!==(a.crossOrigin==null?null:a.crossOrigin)||t.getAttribute("title")!==(a.title==null?null:a.title))break;return t;case"style":if(t.hasAttribute("data-precedence"))break;return t;case"script":if(i=t.getAttribute("src"),(i!==(a.src==null?null:a.src)||t.getAttribute("type")!==(a.type==null?null:a.type)||t.getAttribute("crossorigin")!==(a.crossOrigin==null?null:a.crossOrigin))&&i&&t.hasAttribute("async")&&!t.hasAttribute("itemprop"))break;return t;default:return t}}else if(e==="input"&&t.type==="hidden"){var i=a.name==null?null:""+a.name;if(a.type==="hidden"&&t.getAttribute("name")===i)return t}else return t;if(t=we(t.nextSibling),t===null)break}return null}function np(t,e,l){if(e==="")return null;for(;t.nodeType!==3;)if((t.nodeType!==1||t.nodeName!=="INPUT"||t.type!=="hidden")&&!l||(t=we(t.nextSibling),t===null))return null;return t}function vd(t,e){for(;t.nodeType!==8;)if((t.nodeType!==1||t.nodeName!=="INPUT"||t.type!=="hidden")&&!e||(t=we(t.nextSibling),t===null))return null;return t}function tf(t){return t.data==="$?"||t.data==="$~"}function ef(t){return t.data==="$!"||t.data==="$?"&&t.ownerDocument.readyState!=="loading"}function ap(t,e){var l=t.ownerDocument;if(t.data==="$~")t._reactRetry=e;else if(t.data!=="$?"||l.readyState!=="loading")e();else{var n=function(){e(),l.removeEventListener("DOMContentLoaded",n)};l.addEventListener("DOMContentLoaded",n),t._reactRetry=n}}function we(t){for(;t!=null;t=t.nextSibling){var e=t.nodeType;if(e===1||e===3)break;if(e===8){if(e=t.data,e==="$"||e==="$!"||e==="$?"||e==="$~"||e==="&"||e==="F!"||e==="F")break;if(e==="/$"||e==="/&")return null}}return t}var lf=null;function Sd(t){t=t.nextSibling;for(var e=0;t;){if(t.nodeType===8){var l=t.data;if(l==="/$"||l==="/&"){if(e===0)return we(t.nextSibling);e--}else l!=="$"&&l!=="$!"&&l!=="$?"&&l!=="$~"&&l!=="&"||e++}t=t.nextSibling}return null}function bd(t){t=t.previousSibling;for(var e=0;t;){if(t.nodeType===8){var l=t.data;if(l==="$"||l==="$!"||l==="$?"||l==="$~"||l==="&"){if(e===0)return t;e--}else l!=="/$"&&l!=="/&"||e++}t=t.previousSibling}return null}function Ed(t,e,l){switch(e=yu(l),t){case"html":if(t=e.documentElement,!t)throw Error(c(452));return t;case"head":if(t=e.head,!t)throw Error(c(453));return t;case"body":if(t=e.body,!t)throw Error(c(454));return t;default:throw Error(c(451))}}function Wa(t){for(var e=t.attributes;e.length;)t.removeAttributeNode(e[0]);as(t)}var Re=new Map,Td=new Set;function gu(t){return typeof t.getRootNode=="function"?t.getRootNode():t.nodeType===9?t:t.ownerDocument}var gl=R.d;R.d={f:ip,r:up,D:sp,C:cp,L:fp,m:op,X:hp,S:rp,M:dp};function ip(){var t=gl.f(),e=su();return t||e}function up(t){var e=bn(t);e!==null&&e.tag===5&&e.type==="form"?qr(e):gl.r(t)}var In=typeof document>"u"?null:document;function _d(t,e,l){var n=In;if(n&&typeof e=="string"&&e){var a=Ae(e);a='link[rel="'+t+'"][href="'+a+'"]',typeof l=="string"&&(a+='[crossorigin="'+l+'"]'),Td.has(a)||(Td.add(a),t={rel:t,crossOrigin:l,href:e},n.querySelector(a)===null&&(e=n.createElement("link"),Jt(e,"link",t),qt(e),n.head.appendChild(e)))}}function sp(t){gl.D(t),_d("dns-prefetch",t,null)}function cp(t,e){gl.C(t,e),_d("preconnect",t,e)}function fp(t,e,l){gl.L(t,e,l);var n=In;if(n&&t&&e){var a='link[rel="preload"][as="'+Ae(e)+'"]';e==="image"&&l&&l.imageSrcSet?(a+='[imagesrcset="'+Ae(l.imageSrcSet)+'"]',typeof l.imageSizes=="string"&&(a+='[imagesizes="'+Ae(l.imageSizes)+'"]')):a+='[href="'+Ae(t)+'"]';var i=a;switch(e){case"style":i=Pn(t);break;case"script":i=ta(t)}Re.has(i)||(t=B({rel:"preload",href:e==="image"&&l&&l.imageSrcSet?void 0:t,as:e},l),Re.set(i,t),n.querySelector(a)!==null||e==="style"&&n.querySelector($a(i))||e==="script"&&n.querySelector(Fa(i))||(e=n.createElement("link"),Jt(e,"link",t),qt(e),n.head.appendChild(e)))}}function op(t,e){gl.m(t,e);var l=In;if(l&&t){var n=e&&typeof e.as=="string"?e.as:"script",a='link[rel="modulepreload"][as="'+Ae(n)+'"][href="'+Ae(t)+'"]',i=a;switch(n){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":i=ta(t)}if(!Re.has(i)&&(t=B({rel:"modulepreload",href:t},e),Re.set(i,t),l.querySelector(a)===null)){switch(n){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(l.querySelector(Fa(i)))return}n=l.createElement("link"),Jt(n,"link",t),qt(n),l.head.appendChild(n)}}}function rp(t,e,l){gl.S(t,e,l);var n=In;if(n&&t){var a=En(n).hoistableStyles,i=Pn(t);e=e||"default";var o=a.get(i);if(!o){var h={loading:0,preload:null};if(o=n.querySelector($a(i)))h.loading=5;else{t=B({rel:"stylesheet",href:t,"data-precedence":e},l),(l=Re.get(i))&&nf(t,l);var m=o=n.createElement("link");qt(m),Jt(m,"link",t),m._p=new Promise(function(_,O){m.onload=_,m.onerror=O}),m.addEventListener("load",function(){h.loading|=1}),m.addEventListener("error",function(){h.loading|=2}),h.loading|=4,pu(o,e,n)}o={type:"stylesheet",instance:o,count:1,state:h},a.set(i,o)}}}function hp(t,e){gl.X(t,e);var l=In;if(l&&t){var n=En(l).hoistableScripts,a=ta(t),i=n.get(a);i||(i=l.querySelector(Fa(a)),i||(t=B({src:t,async:!0},e),(e=Re.get(a))&&af(t,e),i=l.createElement("script"),qt(i),Jt(i,"link",t),l.head.appendChild(i)),i={type:"script",instance:i,count:1,state:null},n.set(a,i))}}function dp(t,e){gl.M(t,e);var l=In;if(l&&t){var n=En(l).hoistableScripts,a=ta(t),i=n.get(a);i||(i=l.querySelector(Fa(a)),i||(t=B({src:t,async:!0,type:"module"},e),(e=Re.get(a))&&af(t,e),i=l.createElement("script"),qt(i),Jt(i,"link",t),l.head.appendChild(i)),i={type:"script",instance:i,count:1,state:null},n.set(a,i))}}function Ad(t,e,l,n){var a=(a=W.current)?gu(a):null;if(!a)throw Error(c(446));switch(t){case"meta":case"title":return null;case"style":return typeof l.precedence=="string"&&typeof l.href=="string"?(e=Pn(l.href),l=En(a).hoistableStyles,n=l.get(e),n||(n={type:"style",instance:null,count:0,state:null},l.set(e,n)),n):{type:"void",instance:null,count:0,state:null};case"link":if(l.rel==="stylesheet"&&typeof l.href=="string"&&typeof l.precedence=="string"){t=Pn(l.href);var i=En(a).hoistableStyles,o=i.get(t);if(o||(a=a.ownerDocument||a,o={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},i.set(t,o),(i=a.querySelector($a(t)))&&!i._p&&(o.instance=i,o.state.loading=5),Re.has(t)||(l={rel:"preload",as:"style",href:l.href,crossOrigin:l.crossOrigin,integrity:l.integrity,media:l.media,hrefLang:l.hrefLang,referrerPolicy:l.referrerPolicy},Re.set(t,l),i||mp(a,t,l,o.state))),e&&n===null)throw Error(c(528,""));return o}if(e&&n!==null)throw Error(c(529,""));return null;case"script":return e=l.async,l=l.src,typeof l=="string"&&e&&typeof e!="function"&&typeof e!="symbol"?(e=ta(l),l=En(a).hoistableScripts,n=l.get(e),n||(n={type:"script",instance:null,count:0,state:null},l.set(e,n)),n):{type:"void",instance:null,count:0,state:null};default:throw Error(c(444,t))}}function Pn(t){return'href="'+Ae(t)+'"'}function $a(t){return'link[rel="stylesheet"]['+t+"]"}function Md(t){return B({},t,{"data-precedence":t.precedence,precedence:null})}function mp(t,e,l,n){t.querySelector('link[rel="preload"][as="style"]['+e+"]")?n.loading=1:(e=t.createElement("link"),n.preload=e,e.addEventListener("load",function(){return n.loading|=1}),e.addEventListener("error",function(){return n.loading|=2}),Jt(e,"link",l),qt(e),t.head.appendChild(e))}function ta(t){return'[src="'+Ae(t)+'"]'}function Fa(t){return"script[async]"+t}function Od(t,e,l){if(e.count++,e.instance===null)switch(e.type){case"style":var n=t.querySelector('style[data-href~="'+Ae(l.href)+'"]');if(n)return e.instance=n,qt(n),n;var a=B({},l,{"data-href":l.href,"data-precedence":l.precedence,href:null,precedence:null});return n=(t.ownerDocument||t).createElement("style"),qt(n),Jt(n,"style",a),pu(n,l.precedence,t),e.instance=n;case"stylesheet":a=Pn(l.href);var i=t.querySelector($a(a));if(i)return e.state.loading|=4,e.instance=i,qt(i),i;n=Md(l),(a=Re.get(a))&&nf(n,a),i=(t.ownerDocument||t).createElement("link"),qt(i);var o=i;return o._p=new Promise(function(h,m){o.onload=h,o.onerror=m}),Jt(i,"link",n),e.state.loading|=4,pu(i,l.precedence,t),e.instance=i;case"script":return i=ta(l.src),(a=t.querySelector(Fa(i)))?(e.instance=a,qt(a),a):(n=l,(a=Re.get(i))&&(n=B({},l),af(n,a)),t=t.ownerDocument||t,a=t.createElement("script"),qt(a),Jt(a,"link",n),t.head.appendChild(a),e.instance=a);case"void":return null;default:throw Error(c(443,e.type))}else e.type==="stylesheet"&&(e.state.loading&4)===0&&(n=e.instance,e.state.loading|=4,pu(n,l.precedence,t));return e.instance}function pu(t,e,l){for(var n=l.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),a=n.length?n[n.length-1]:null,i=a,o=0;o<n.length;o++){var h=n[o];if(h.dataset.precedence===e)i=h;else if(i!==a)break}i?i.parentNode.insertBefore(t,i.nextSibling):(e=l.nodeType===9?l.head:l,e.insertBefore(t,e.firstChild))}function nf(t,e){t.crossOrigin==null&&(t.crossOrigin=e.crossOrigin),t.referrerPolicy==null&&(t.referrerPolicy=e.referrerPolicy),t.title==null&&(t.title=e.title)}function af(t,e){t.crossOrigin==null&&(t.crossOrigin=e.crossOrigin),t.referrerPolicy==null&&(t.referrerPolicy=e.referrerPolicy),t.integrity==null&&(t.integrity=e.integrity)}var vu=null;function zd(t,e,l){if(vu===null){var n=new Map,a=vu=new Map;a.set(l,n)}else a=vu,n=a.get(l),n||(n=new Map,a.set(l,n));if(n.has(t))return n;for(n.set(t,null),l=l.getElementsByTagName(t),a=0;a<l.length;a++){var i=l[a];if(!(i[da]||i[Qt]||t==="link"&&i.getAttribute("rel")==="stylesheet")&&i.namespaceURI!=="http://www.w3.org/2000/svg"){var o=i.getAttribute(e)||"";o=t+o;var h=n.get(o);h?h.push(i):n.set(o,[i])}}return n}function xd(t,e,l){t=t.ownerDocument||t,t.head.insertBefore(l,e==="title"?t.querySelector("head > title"):null)}function yp(t,e,l){if(l===1||e.itemProp!=null)return!1;switch(t){case"meta":case"title":return!0;case"style":if(typeof e.precedence!="string"||typeof e.href!="string"||e.href==="")break;return!0;case"link":if(typeof e.rel!="string"||typeof e.href!="string"||e.href===""||e.onLoad||e.onError)break;switch(e.rel){case"stylesheet":return t=e.disabled,typeof e.precedence=="string"&&t==null;default:return!0}case"script":if(e.async&&typeof e.async!="function"&&typeof e.async!="symbol"&&!e.onLoad&&!e.onError&&e.src&&typeof e.src=="string")return!0}return!1}function Cd(t){return!(t.type==="stylesheet"&&(t.state.loading&3)===0)}function gp(t,e,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 a=Pn(n.href),i=e.querySelector($a(a));if(i){e=i._p,e!==null&&typeof e=="object"&&typeof e.then=="function"&&(t.count++,t=Su.bind(t),e.then(t,t)),l.state.loading|=4,l.instance=i,qt(i);return}i=e.ownerDocument||e,n=Md(n),(a=Re.get(a))&&nf(n,a),i=i.createElement("link"),qt(i);var o=i;o._p=new Promise(function(h,m){o.onload=h,o.onerror=m}),Jt(i,"link",n),l.instance=i}t.stylesheets===null&&(t.stylesheets=new Map),t.stylesheets.set(l,e),(e=l.state.preload)&&(l.state.loading&3)===0&&(t.count++,l=Su.bind(t),e.addEventListener("load",l),e.addEventListener("error",l))}}var uf=0;function pp(t,e){return t.stylesheets&&t.count===0&&Eu(t,t.stylesheets),0<t.count||0<t.imgCount?function(l){var n=setTimeout(function(){if(t.stylesheets&&Eu(t,t.stylesheets),t.unsuspend){var i=t.unsuspend;t.unsuspend=null,i()}},6e4+e);0<t.imgBytes&&uf===0&&(uf=62500*Fg());var a=setTimeout(function(){if(t.waitingForImages=!1,t.count===0&&(t.stylesheets&&Eu(t,t.stylesheets),t.unsuspend)){var i=t.unsuspend;t.unsuspend=null,i()}},(t.imgBytes>uf?50:800)+e);return t.unsuspend=l,function(){t.unsuspend=null,clearTimeout(n),clearTimeout(a)}}:null}function Su(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)Eu(this,this.stylesheets);else if(this.unsuspend){var t=this.unsuspend;this.unsuspend=null,t()}}}var bu=null;function Eu(t,e){t.stylesheets=null,t.unsuspend!==null&&(t.count++,bu=new Map,e.forEach(vp,t),bu=null,Su.call(t))}function vp(t,e){if(!(e.state.loading&4)){var l=bu.get(t);if(l)var n=l.get(null);else{l=new Map,bu.set(t,l);for(var a=t.querySelectorAll("link[data-precedence],style[data-precedence]"),i=0;i<a.length;i++){var o=a[i];(o.nodeName==="LINK"||o.getAttribute("media")!=="not all")&&(l.set(o.dataset.precedence,o),n=o)}n&&l.set(null,n)}a=e.instance,o=a.getAttribute("data-precedence"),i=l.get(o)||n,i===n&&l.set(null,a),l.set(o,a),this.count++,n=Su.bind(this),a.addEventListener("load",n),a.addEventListener("error",n),i?i.parentNode.insertBefore(a,i.nextSibling):(t=t.nodeType===9?t.head:t,t.insertBefore(a,t.firstChild)),e.state.loading|=4}}var Ia={$$typeof:Lt,Provider:null,Consumer:null,_currentValue:Q,_currentValue2:Q,_threadCount:0};function Sp(t,e,l,n,a,i,o,h,m){this.tag=1,this.containerInfo=t,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=ts(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=ts(0),this.hiddenUpdates=ts(null),this.identifierPrefix=n,this.onUncaughtError=a,this.onCaughtError=i,this.onRecoverableError=o,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=m,this.incompleteTransitions=new Map}function Dd(t,e,l,n,a,i,o,h,m,_,O,D){return t=new Sp(t,e,l,o,m,_,O,D,h),e=1,i===!0&&(e|=24),i=pe(3,null,null,e),t.current=i,i.stateNode=t,e=Ys(),e.refCount++,t.pooledCache=e,e.refCount++,i.memoizedState={element:n,isDehydrated:l,cache:e},Gs(i),t}function wd(t){return t?(t=wn,t):wn}function Rd(t,e,l,n,a,i){a=wd(a),n.context===null?n.context=a:n.pendingContext=a,n=zl(e),n.payload={element:l},i=i===void 0?null:i,i!==null&&(n.callback=i),l=xl(t,n,e),l!==null&&(re(l,t,e),Da(l,t,e))}function Ud(t,e){if(t=t.memoizedState,t!==null&&t.dehydrated!==null){var l=t.retryLane;t.retryLane=l!==0&&l<e?l:e}}function sf(t,e){Ud(t,e),(t=t.alternate)&&Ud(t,e)}function Nd(t){if(t.tag===13||t.tag===31){var e=en(t,67108864);e!==null&&re(e,t,67108864),sf(t,67108864)}}function Hd(t){if(t.tag===13||t.tag===31){var e=Te();e=es(e);var l=en(t,e);l!==null&&re(l,t,e),sf(t,e)}}var Tu=!0;function bp(t,e,l,n){var a=x.T;x.T=null;var i=R.p;try{R.p=2,cf(t,e,l,n)}finally{R.p=i,x.T=a}}function Ep(t,e,l,n){var a=x.T;x.T=null;var i=R.p;try{R.p=8,cf(t,e,l,n)}finally{R.p=i,x.T=a}}function cf(t,e,l,n){if(Tu){var a=ff(n);if(a===null)Jc(t,e,n,_u,l),Ld(t,n);else if(_p(a,t,e,l,n))n.stopPropagation();else if(Ld(t,n),e&4&&-1<Tp.indexOf(t)){for(;a!==null;){var i=bn(a);if(i!==null)switch(i.tag){case 3:if(i=i.stateNode,i.current.memoizedState.isDehydrated){var o=$l(i.pendingLanes);if(o!==0){var h=i;for(h.pendingLanes|=2,h.entangledLanes|=2;o;){var m=1<<31-ye(o);h.entanglements[1]|=m,o&=~m}Je(i),(it&6)===0&&(iu=de()+500,Ka(0))}}break;case 31:case 13:h=en(i,2),h!==null&&re(h,i,2),su(),sf(i,2)}if(i=ff(n),i===null&&Jc(t,e,n,_u,l),i===a)break;a=i}a!==null&&n.stopPropagation()}else Jc(t,e,n,null,l)}}function ff(t){return t=os(t),of(t)}var _u=null;function of(t){if(_u=null,t=Sn(t),t!==null){var e=d(t);if(e===null)t=null;else{var l=e.tag;if(l===13){if(t=y(e),t!==null)return t;t=null}else if(l===31){if(t=v(e),t!==null)return t;t=null}else if(l===3){if(e.stateNode.current.memoizedState.isDehydrated)return e.tag===3?e.stateNode.containerInfo:null;t=null}else e!==t&&(t=null)}}return _u=t,null}function Bd(t){switch(t){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(sy()){case Qf:return 2;case Zf:return 8;case hi:case cy:return 32;case Vf:return 268435456;default:return 32}default:return 32}}var rf=!1,ql=null,jl=null,Xl=null,Pa=new Map,ti=new Map,Gl=[],Tp="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 Ld(t,e){switch(t){case"focusin":case"focusout":ql=null;break;case"dragenter":case"dragleave":jl=null;break;case"mouseover":case"mouseout":Xl=null;break;case"pointerover":case"pointerout":Pa.delete(e.pointerId);break;case"gotpointercapture":case"lostpointercapture":ti.delete(e.pointerId)}}function ei(t,e,l,n,a,i){return t===null||t.nativeEvent!==i?(t={blockedOn:e,domEventName:l,eventSystemFlags:n,nativeEvent:i,targetContainers:[a]},e!==null&&(e=bn(e),e!==null&&Nd(e)),t):(t.eventSystemFlags|=n,e=t.targetContainers,a!==null&&e.indexOf(a)===-1&&e.push(a),t)}function _p(t,e,l,n,a){switch(e){case"focusin":return ql=ei(ql,t,e,l,n,a),!0;case"dragenter":return jl=ei(jl,t,e,l,n,a),!0;case"mouseover":return Xl=ei(Xl,t,e,l,n,a),!0;case"pointerover":var i=a.pointerId;return Pa.set(i,ei(Pa.get(i)||null,t,e,l,n,a)),!0;case"gotpointercapture":return i=a.pointerId,ti.set(i,ei(ti.get(i)||null,t,e,l,n,a)),!0}return!1}function Yd(t){var e=Sn(t.target);if(e!==null){var l=d(e);if(l!==null){if(e=l.tag,e===13){if(e=y(l),e!==null){t.blockedOn=e,Ff(t.priority,function(){Hd(l)});return}}else if(e===31){if(e=v(l),e!==null){t.blockedOn=e,Ff(t.priority,function(){Hd(l)});return}}else if(e===3&&l.stateNode.current.memoizedState.isDehydrated){t.blockedOn=l.tag===3?l.stateNode.containerInfo:null;return}}}t.blockedOn=null}function Au(t){if(t.blockedOn!==null)return!1;for(var e=t.targetContainers;0<e.length;){var l=ff(t.nativeEvent);if(l===null){l=t.nativeEvent;var n=new l.constructor(l.type,l);fs=n,l.target.dispatchEvent(n),fs=null}else return e=bn(l),e!==null&&Nd(e),t.blockedOn=l,!1;e.shift()}return!0}function qd(t,e,l){Au(t)&&l.delete(e)}function Ap(){rf=!1,ql!==null&&Au(ql)&&(ql=null),jl!==null&&Au(jl)&&(jl=null),Xl!==null&&Au(Xl)&&(Xl=null),Pa.forEach(qd),ti.forEach(qd)}function Mu(t,e){t.blockedOn===e&&(t.blockedOn=null,rf||(rf=!0,f.unstable_scheduleCallback(f.unstable_NormalPriority,Ap)))}var Ou=null;function jd(t){Ou!==t&&(Ou=t,f.unstable_scheduleCallback(f.unstable_NormalPriority,function(){Ou===t&&(Ou=null);for(var e=0;e<t.length;e+=3){var l=t[e],n=t[e+1],a=t[e+2];if(typeof n!="function"){if(of(n||l)===null)continue;break}var i=bn(l);i!==null&&(t.splice(e,3),e-=3,cc(i,{pending:!0,data:a,method:l.method,action:n},n,a))}}))}function ea(t){function e(m){return Mu(m,t)}ql!==null&&Mu(ql,t),jl!==null&&Mu(jl,t),Xl!==null&&Mu(Xl,t),Pa.forEach(e),ti.forEach(e);for(var l=0;l<Gl.length;l++){var n=Gl[l];n.blockedOn===t&&(n.blockedOn=null)}for(;0<Gl.length&&(l=Gl[0],l.blockedOn===null);)Yd(l),l.blockedOn===null&&Gl.shift();if(l=(t.ownerDocument||t).$$reactFormReplay,l!=null)for(n=0;n<l.length;n+=3){var a=l[n],i=l[n+1],o=a[ie]||null;if(typeof i=="function")o||jd(l);else if(o){var h=null;if(i&&i.hasAttribute("formAction")){if(a=i,o=i[ie]||null)h=o.formAction;else if(of(a)!==null)continue}else h=o.action;typeof h=="function"?l[n+1]=h:(l.splice(n,3),n-=3),jd(l)}}}function Xd(){function t(i){i.canIntercept&&i.info==="react-transition"&&i.intercept({handler:function(){return new Promise(function(o){return a=o})},focusReset:"manual",scroll:"manual"})}function e(){a!==null&&(a(),a=null),n||setTimeout(l,20)}function l(){if(!n&&!navigation.transition){var i=navigation.currentEntry;i&&i.url!=null&&navigation.navigate(i.url,{state:i.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var n=!1,a=null;return navigation.addEventListener("navigate",t),navigation.addEventListener("navigatesuccess",e),navigation.addEventListener("navigateerror",e),setTimeout(l,100),function(){n=!0,navigation.removeEventListener("navigate",t),navigation.removeEventListener("navigatesuccess",e),navigation.removeEventListener("navigateerror",e),a!==null&&(a(),a=null)}}}function hf(t){this._internalRoot=t}zu.prototype.render=hf.prototype.render=function(t){var e=this._internalRoot;if(e===null)throw Error(c(409));var l=e.current,n=Te();Rd(l,n,t,e,null,null)},zu.prototype.unmount=hf.prototype.unmount=function(){var t=this._internalRoot;if(t!==null){this._internalRoot=null;var e=t.containerInfo;Rd(t.current,2,null,t,null,null),su(),e[vn]=null}};function zu(t){this._internalRoot=t}zu.prototype.unstable_scheduleHydration=function(t){if(t){var e=$f();t={blockedOn:null,target:t,priority:e};for(var l=0;l<Gl.length&&e!==0&&e<Gl[l].priority;l++);Gl.splice(l,0,t),l===0&&Yd(t)}};var Gd=u.version;if(Gd!=="19.2.3")throw Error(c(527,Gd,"19.2.3"));R.findDOMNode=function(t){var e=t._reactInternals;if(e===void 0)throw typeof t.render=="function"?Error(c(188)):(t=Object.keys(t).join(","),Error(c(268,t)));return t=S(e),t=t!==null?N(t):null,t=t===null?null:t.stateNode,t};var Mp={bundleType:0,version:"19.2.3",rendererPackageName:"react-dom",currentDispatcherRef:x,reconcilerVersion:"19.2.3"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var xu=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!xu.isDisabled&&xu.supportsFiber)try{oa=xu.inject(Mp),me=xu}catch{}}return ni.createRoot=function(t,e){if(!r(t))throw Error(c(299));var l=!1,n="",a=Wr,i=$r,o=Fr;return e!=null&&(e.unstable_strictMode===!0&&(l=!0),e.identifierPrefix!==void 0&&(n=e.identifierPrefix),e.onUncaughtError!==void 0&&(a=e.onUncaughtError),e.onCaughtError!==void 0&&(i=e.onCaughtError),e.onRecoverableError!==void 0&&(o=e.onRecoverableError)),e=Dd(t,1,!1,null,null,l,n,null,a,i,o,Xd),t[vn]=e.current,Kc(t),new hf(e)},ni.hydrateRoot=function(t,e,l){if(!r(t))throw Error(c(299));var n=!1,a="",i=Wr,o=$r,h=Fr,m=null;return l!=null&&(l.unstable_strictMode===!0&&(n=!0),l.identifierPrefix!==void 0&&(a=l.identifierPrefix),l.onUncaughtError!==void 0&&(i=l.onUncaughtError),l.onCaughtError!==void 0&&(o=l.onCaughtError),l.onRecoverableError!==void 0&&(h=l.onRecoverableError),l.formState!==void 0&&(m=l.formState)),e=Dd(t,1,!0,e,l??null,n,a,m,i,o,h,Xd),e.context=wd(null),l=e.current,n=Te(),n=es(n),a=zl(n),a.callback=null,xl(l,a,n),l=n,e.current.lanes=l,ha(e,l),Je(e),t[vn]=e.current,Kc(t),new zu(e)},ni.version="19.2.3",ni}var em;function Yp(){if(em)return pf.exports;em=1;function f(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(f)}catch(u){console.error(u)}}return f(),pf.exports=Lp(),pf.exports}var qp=Yp();function lm(f){return f!==null&&typeof f=="object"&&[null,Object.prototype].includes(Object.getPrototypeOf(f))||Array.isArray(f)}function zf(f,u,s=new WeakMap){if(Object.is(f,u))return!0;if(typeof f=="function"&&typeof u=="function")return typeof f==typeof u;if(!lm(f)||!lm(u))return!1;const c=s.get(f);if(c&&c===u)return!0;if(s.set(f,u),Array.isArray(f)||Array.isArray(u)){if(!Array.isArray(f)||!Array.isArray(u)||f.length!==u.length)return!1;for(let y=0;y<f.length;y++)if(!zf(f[y],u[y],s))return!1;return!0}const r=Object.keys(f),d=Object.keys(u);if(r.length!==d.length)return!1;for(let y=0;y<r.length;y++){const v=r[y];if(!Object.prototype.hasOwnProperty.call(u,v))return!1;const E=f[v],S=u[v];if(!zf(E,S,s))return!1}return!0}function jp(f){const u=[],s=(d,y)=>y.reduce((v,E)=>v==null?v:v[E],d),c=(d,y)=>(...v)=>{const E=s(f.current,d),S=E==null?void 0:E[y];if(typeof S=="function")return S.apply(E,v)},r=d=>{if(typeof d=="function"){const y=u[u.length-1],v=u.slice(0,-1);return c(v,y)}if(Array.isArray(d)){const y=u.length,v=new Array(d.length);for(let E=0;E<d.length;E++)u[y]=E,v[E]=r(d[E]);return u.length=y,v}if(d&&typeof d=="object"){const y=u.length,v={};for(const E of Object.keys(d))u[y]=E,v[E]=r(d[E]);return u.length=y,v}return d};return r(f.current)}function Xp(f){const u=Wd.useRef(f);u.current=f;const s=Wd.useRef(null);return(!s.current||!zf(s.current.snapshot,f))&&(s.current={snapshot:f,shaped:jp(u)}),s.current.shaped}const Gp=Object.freeze(["focusComposer","setThreadId","focusMessage","sendUserMessage","setComposerValue","setRuntimeCapabilities","fetchUpdates","sendCustomAction"]);function Qp(f){const u=Bt.useRef(null),s=Xp(f),c=Bt.useMemo(()=>Gp.reduce((y,v)=>(y[v]=(...E)=>{if(!u.current){console.warn("ChatKit element is not mounted");return}return u.current[v](...E)},y),{}),[]),r=Bt.useCallback(y=>{u.current=y},[]),d=Bt.useMemo(()=>{const y={},v={};for(const[E,S]of Object.entries(s))/^on[A-Z]/.test(E)&&E!=="onClientTool"?v[E]=S:y[E]=S;return{setInstance:r,options:y,handlers:v}},[s,r]);return Bt.useMemo(()=>({...c,control:d,ref:u}),[c,d])}class Zp{constructor(){pt(this,"callbacks",new Map)}on(u,s){this.callbacks.has(u)||this.callbacks.set(u,new Set),this.callbacks.get(u).add(s)}emit(u,...s){var r;const c=s[0];(r=this.callbacks.get(u))==null||r.forEach(d=>d(c))}off(u,s){var c;s?(c=this.callbacks.get(u))==null||c.delete(s):this.callbacks.delete(u)}allOff(){this.callbacks.clear()}}async function Vp(f,u){const s=f.getReader();let c;for(;!(c=await s.read()).done;)u(c.value)}function Kp(f){let u,s,c,r=!1;return function(y){u===void 0?(u=y,s=0,c=-1):u=kp(u,y);const v=u.length;let E=0;for(;s<v;){r&&(u[s]===10&&(E=++s),r=!1);let S=-1;for(;s<v&&S===-1;++s)switch(u[s]){case 58:c===-1&&(c=s-E);break;case 13:r=!0;case 10:S=s;break}if(S===-1)break;f(u.subarray(E,S),c),E=s,c=-1}E===v?u=void 0:E!==0&&(u=u.subarray(E),s-=E)}}function Jp(f,u,s){let c=nm();const r=new TextDecoder;return function(y,v){if(y.length===0)s==null||s(c),c=nm();else if(v>0){const E=r.decode(y.subarray(0,v)),S=v+(y[v+1]===32?2:1),N=r.decode(y.subarray(S));switch(E){case"data":c.data=c.data?c.data+`
|
|
50
|
+
`+N:N;break;case"event":c.event=N;break;case"id":f(c.id=N);break;case"retry":const B=parseInt(N,10);isNaN(B)||u(c.retry=B);break}}}}function kp(f,u){const s=new Uint8Array(f.length+u.length);return s.set(f),s.set(u,f.length),s}function nm(){return{data:"",event:"",id:"",retry:void 0}}var Wp=function(f,u){var s={};for(var c in f)Object.prototype.hasOwnProperty.call(f,c)&&u.indexOf(c)<0&&(s[c]=f[c]);if(f!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,c=Object.getOwnPropertySymbols(f);r<c.length;r++)u.indexOf(c[r])<0&&Object.prototype.propertyIsEnumerable.call(f,c[r])&&(s[c[r]]=f[c[r]]);return s};const xf="text/event-stream",$p=1e3,am="last-event-id";function Fp(f,u){var{signal:s,headers:c,onopen:r,onmessage:d,onclose:y,onerror:v,openWhenHidden:E,fetch:S}=u,N=Wp(u,["signal","headers","onopen","onmessage","onclose","onerror","openWhenHidden","fetch"]);return new Promise((B,et)=>{const gt=Object.assign({},c);gt.accept||(gt.accept=xf);let Et;function Ct(){Et.abort(),document.hidden||ne()}E||document.addEventListener("visibilitychange",Ct);let Gt=$p,Mt=0;function Wt(){document.removeEventListener("visibilitychange",Ct),window.clearTimeout(Mt),Et.abort()}s==null||s.addEventListener("abort",()=>{Wt(),B()});const Lt=S??window.fetch,le=r??Ip;async function ne(){var Yt;Et=new AbortController;try{const k=await Lt(f,Object.assign(Object.assign({},N),{headers:gt,signal:Et.signal}));await le(k),await Vp(k.body,Kp(Jp(Tt=>{Tt?gt[am]=Tt:delete gt[am]},Tt=>{Gt=Tt},d))),y==null||y(),Wt(),B()}catch(k){if(!Et.signal.aborted)try{const Tt=(Yt=v==null?void 0:v(k))!==null&&Yt!==void 0?Yt:Gt;window.clearTimeout(Mt),Mt=window.setTimeout(ne,Tt)}catch(Tt){Wt(),et(Tt)}}}ne()})}function Ip(f){const u=f.headers.get("content-type");if(!(u!=null&&u.startsWith(xf)))throw new Error(`Expected content-type to be ${xf}, Actual: ${u}`)}const ua="__chatkit_error__";class Xu extends Error{constructor(s,c,r){super(s);pt(this,"status");pt(this,"statusText");pt(this,"metadata");this.name="HttpError",this.statusText=c.statusText,this.status=c.status,this.metadata=r}static fromPossibleFrameSafeError(s){if(s instanceof Xu)return s;if(s&&typeof s=="object"&&ua in s&&s[ua]==="HttpError"){const c=s,r=new Xu(c.message,{status:c.status,statusText:c.statusText},c.metadata);return r.stack=c.stack,r}return null}}var Tm;Tm=ua;const jf=class jf{constructor(u,s,c){pt(this,Tm,"HttpError");pt(this,"message");pt(this,"stack");pt(this,"status");pt(this,"statusText");pt(this,"metadata");this.message=u,this.stack=new Error(u).stack,this.status=s.status,this.statusText=s.statusText,this.metadata=c}static fromHttpError(u){return new jf(u.message,{status:u.status,statusText:u.statusText},u.metadata)}};let Gu=jf;const Pp=1e3,t0=1e4,e0=5,l0=(f,u=t0,s=Pp)=>{const c=Math.min(u,s*2**f);return Math.floor(c*(.5+Math.random()*.5))};class im extends Error{constructor(u){super(),this.cause=u}}const n0=async(f,u)=>{let s=0;const{onopen:c,...r}=u;await Fp(f,{...r,onopen:async d=>{var v;if(c==null||c(d),d.ok&&((v=d.headers.get("content-type"))!=null&&v.startsWith("text/event-stream"))){s=0;return}const y=new Gu(`Streaming failed: ${d.statusText}`,d);throw d.status>=400&&d.status<500?y:new im(y)},onerror:d=>{if(d instanceof im){if(s>=e0)throw d.cause;return s+=1,l0(s)}throw d}})};function Am(){const f=globalThis.crypto;if(typeof(f==null?void 0:f.randomUUID)=="function")return f.randomUUID();if(typeof(f==null?void 0:f.getRandomValues)=="function"){const u=new Uint8Array(16);return f.getRandomValues(u),u[6]=u[6]&15|64,u[8]=u[8]&63|128,[...u].map(s=>s.toString(16).padStart(2,"0")).join("").replace(/^(.{8})(.{4})(.{4})(.{4})(.{12})$/,"$1-$2-$3-$4-$5")}return null}function Ef(){return Am()??`ck_${Date.now()}_${Math.random().toString(16).slice(2)}`}function a0(f,{channelId:u,expectedOrigin:s,expectedSource:c}){const r=f.data;if(!r||typeof r!="object"||!("__xpaiChatKit"in r)||r.__xpaiChatKit!==!0||s!=="*"&&f.origin!==s)return!1;if(f.source===c)return!0;const d=u==null?void 0:u.trim();return d?"channelId"in r&&r.channelId===d:!1}let i0=class Mm extends Error{constructor(s){super(s);pt(this,"_name");this.name="IntegrationError",this._name=this.name}static fromPossibleFrameSafeError(s){if(s&&typeof s=="object"&&ua in s&&s[ua]==="IntegrationError"){const c=s,r=new Mm(c.message);return r.stack=c.stack,r}return null}};var _m;_m=ua;class u0{constructor(u){pt(this,_m,"IntegrationError");pt(this,"message");pt(this,"stack");this.message=u,this.stack=new Error(u).stack}}class s0{constructor({handlers:u,target:s,targetOrigin:c,channelId:r,fetch:d=window.fetch}){pt(this,"targetOrigin");pt(this,"target");pt(this,"channelId");pt(this,"commandHandlers");pt(this,"_fetch");pt(this,"emitter",new Zp);pt(this,"handlers",new Map);pt(this,"fetchEventSourceHandlers",new Map);pt(this,"abortControllers",new Map);pt(this,"commands",new Proxy({},{get:(u,s)=>(c,r)=>new Promise((d,y)=>{const v=Ef();this.handlers.set(v,{resolve:d,reject:y,stack:new Error().stack||""}),this.sendMessage({type:"command",nonce:v,command:`on${s.charAt(0).toUpperCase()}${s.slice(1)}`,data:c},r)})}));pt(this,"handleMessage",async u=>{var c,r,d,y;if(!a0(u,{channelId:this.channelId,expectedOrigin:this.targetOrigin,expectedSource:this.target()}))return;const s=u.data;switch(s.type){case"event":{this.emitter.emit(s.event,s.data);break}case"fetch":{try{if(s.formData){const N=new FormData;for(const[B,et]of Object.entries(s.formData))N.append(B,et);s.params.body=N}const v=new AbortController;this.abortControllers.set(s.nonce,v),s.params.signal=v.signal;const E=await this._fetch(s.url,s.params);if(!E.ok){const N=await E.json().then(B=>B.message||E.statusText).catch(()=>E.statusText);throw new Gu(N,E)}const S=await E.json().catch(()=>({}));this.sendMessage({type:"response",response:S,nonce:s.nonce})}catch(v){this.sendMessage({type:"response",error:v,nonce:s.nonce})}break}case"fetchEventSource":{try{const v=new AbortController;this.abortControllers.set(s.nonce,v),await n0(s.url,{...s.params,signal:v.signal,fetch:this._fetch,onmessage:E=>{this.sendMessage({type:"fetchEventSourceMessage",message:E,nonce:s.nonce})}}),this.sendMessage({type:"response",response:void 0,nonce:s.nonce})}catch(v){this.sendMessage({type:"response",error:v,nonce:s.nonce})}break}case"command":{if(!this.canReceiveCommand(s.command)){this.sendMessage({type:"response",error:new u0(`Command ${s.command} not supported`),nonce:s.nonce});return}try{const v=await((r=(c=this.commandHandlers)[s.command])==null?void 0:r.call(c,s.data));this.sendMessage({type:"response",response:v,nonce:s.nonce})}catch(v){this.sendMessage({type:"response",error:v,nonce:s.nonce})}break}case"response":{const v=this.handlers.get(s.nonce);if(!v){console.error("No handler found for nonce",s.nonce);return}if(s.error){const E=i0.fromPossibleFrameSafeError(s.error),S=Xu.fromPossibleFrameSafeError(s.error);E?(E.stack=v.stack,v.reject(E)):S?v.reject(S):v.reject(s.error)}else v.resolve(s.response);this.handlers.delete(s.nonce);break}case"fetchEventSourceMessage":{if(!this.fetchEventSourceHandlers.get(s.nonce)){console.error("No handler found for nonce",s.nonce);return}(y=(d=this.fetchEventSourceHandlers.get(s.nonce))==null?void 0:d.onmessage)==null||y.call(d,s.message);break}case"abortSignal":{const v=this.abortControllers.get(s.nonce);v&&(v.abort(s.reason),this.abortControllers.delete(s.nonce));break}}});this.commandHandlers=u,this.target=s,this.targetOrigin=c,this.channelId=(r==null?void 0:r.trim())||void 0,this._fetch=((...y)=>d(...y))}setTargetOrigin(u){this.targetOrigin=u}sendMessage(u,s){var r;const c={__xpaiChatKit:!0,...this.channelId?{channelId:this.channelId}:{},...u};(r=this.target())==null||r.postMessage(c,this.targetOrigin,s)}connect(){window.addEventListener("message",this.handleMessage)}disconnect(){window.removeEventListener("message",this.handleMessage)}fetch(u,s){return new Promise((c,r)=>{const d=Ef();this.handlers.set(d,{resolve:c,reject:r,stack:new Error().stack||""});let y;if(s.body instanceof FormData){y={};for(const[v,E]of s.body.entries())y[v]=E;s.body=void 0}s.signal&&(s.signal.addEventListener("abort",()=>{var v;this.sendMessage({type:"abortSignal",nonce:d,reason:(v=s.signal)==null?void 0:v.reason})}),s.signal=void 0),this.sendMessage({type:"fetch",nonce:d,params:s,formData:y,url:u})})}fetchEventSource(u,s){return new Promise((c,r)=>{const{onmessage:d,signal:y,...v}=s,E=Ef();this.handlers.set(E,{resolve:c,reject:r,stack:new Error().stack||""}),this.fetchEventSourceHandlers.set(E,{onmessage:d}),y&&y.addEventListener("abort",()=>{this.sendMessage({type:"abortSignal",nonce:E,reason:y.reason})}),this.sendMessage({type:"fetchEventSource",nonce:E,params:v,url:u})})}emit(...[u,s,c]){this.sendMessage({type:"event",event:u,data:s},c)}on(...[u,s]){this.emitter.on(u,s)}destroy(){window.removeEventListener("message",this.handleMessage),this.emitter.allOff(),this.handlers.clear()}}const c0=f=>btoa(f).replace(/\+/g,"-").replace(/\//g,"_").replace(/=+$/,""),f0=f=>{if(f===void 0)throw new TypeError("encodeBase64: `undefined` cannot be encoded to valid JSON. Pass null instead.");const u=JSON.stringify(f),s=new TextEncoder().encode(u);let c="";for(const r of s)c+=String.fromCharCode(r);return c0(c)};class Ft extends Error{}function o0(f){return f.message}const r0=["command.setOptions","command.sendUserMessage","command.setComposerValue","command.setRuntimeCapabilities","command.setThreadId","command.focusComposer","command.focusMessage","command.fetchUpdates","command.sendCustomAction","command.showHistory","command.hideHistory","event.ready","event.error","event.log","event.response.start","event.response.end","event.response.stop","event.thread.change","event.project.change","event.connectors.change","event.tool.change","event.thread.load.start","event.thread.load.end","event.deeplink","event.effect","error.StreamError","error.StreamEventParsingError","error.WidgetItemError","error.InitialThreadLoadError","error.FileAttachmentError","error.HistoryViewError","error.FatalAppError","error.IntegrationError","error.EntitySearchError","error.DomainVerificationRequestError","backend.threads.get_by_id","backend.threads.list","backend.threads.update","backend.threads.delete","backend.threads.create","backend.threads.add_user_message","backend.threads.add_client_tool_output","backend.threads.retry_after_item","backend.threads.custom_action","backend.attachments.create","backend.attachments.get_preview","backend.attachments.delete","backend.items.list","backend.items.feedback","thread.item.generated_image","thread.item.user_message","thread.item.assistant_message","thread.item.client_tool_call","thread.item.widget","thread.item.task","thread.item.workflow","thread.item.end_of_turn","thread.item.image_generation","widget.Basic","widget.Card","widget.ListView","widget.ListViewItem","widget.Badge","widget.Box","widget.Row","widget.Col","widget.Button","widget.Caption","widget.Chart","widget.Checkbox","widget.DatePicker","widget.Divider","widget.Form","widget.Icon","widget.Image","widget.Input","widget.Label","widget.Markdown","widget.RadioGroup","widget.Select","widget.Spacer","widget.Text","widget.Textarea","widget.Title","widget.Transition"],h0=["command.shareThread","command.setTrainingOptOut","event.thread.restore","event.message.share","event.image.download","event.history.open","event.history.close","event.log.chatgpt","error.HttpError","error.NetworkError","error.UnhandledError","error.UnhandledPromiseRejectionError","error.StreamEventHandlingError","error.StreamStopError","error.ThreadRenderingError","error.IntlError","error.AppError","backend.threads.stop","backend.threads.share","backend.threads.create_from_shared","backend.threads.init","backend.attachments.process","widget.CardCarousel","widget.Favicon","widget.CardLinkItem","widget.Map"],d0={chatkit:{allow:[...r0,"thread.item.image_generation"],deny:h0}},um=f=>{const u=d0[f],s=new Set(u.allow);for(const S of u.deny??[])s.delete(S);const c=new Set,r=new Set,d=new Set,y=new Set,v=new Set,E=new Set;for(const S of s){if(S.startsWith("command.")){c.add(S.slice(8));continue}if(S.startsWith("event.")){r.add(S.slice(6));continue}if(S.startsWith("backend.")){d.add(S.slice(8));continue}if(S.startsWith("thread.item.")&&y.add(S.slice(12)),S.startsWith("error.")){v.add(S.slice(6));continue}if(S.startsWith("widget.")){E.add(S.slice(7));continue}}return{commands:c,events:r,backend:d,threadItems:y,errors:v,widgets:E}};function m0(f){if(!f||typeof f!="object"||!("width"in f)||typeof f.width!="number"||!Number.isFinite(f.width)||f.width<=0||!("height"in f)||typeof f.height!="number"||!Number.isFinite(f.height)||f.height<=0||!("regions"in f)||!Array.isArray(f.regions)||f.regions.length>128)return null;const u=[];for(const s of f.regions){if(!s||typeof s!="object"||typeof s.x!="number"||!Number.isFinite(s.x)||s.x<0||typeof s.y!="number"||!Number.isFinite(s.y)||s.y<0||typeof s.width!="number"||!Number.isFinite(s.width)||s.width<=0||typeof s.height!="number"||!Number.isFinite(s.height)||s.height<=0||s.x+s.width>f.width+1||s.y+s.height>Math.min(f.height,96)+1)return null;u.push({x:s.x,y:s.y,width:s.width,height:s.height})}return{width:f.width,height:f.height,regions:u}}class y0{constructor(u,s){this.wrapper=u,this.enabled=s,this.size={width:0,height:0},this.layer=document.createElement("div"),this.layer.setAttribute("aria-hidden","true"),this.layer.dataset.slot="chatkit-window-drag",this.layer.style.cssText="position:absolute;inset:0;pointer-events:none;overflow:hidden;",u.append(this.layer),this.observer=new ResizeObserver(()=>{(this.wrapper.clientWidth!==this.size.width||this.wrapper.clientHeight!==this.size.height)&&this.clear()}),this.observer.observe(u)}update(u){if(this.clear(),!this.enabled())return;const s=m0(u);if(!(!s||Math.abs(s.width-this.wrapper.clientWidth)>1||Math.abs(s.height-this.wrapper.clientHeight)>1)){this.size={width:s.width,height:s.height};for(const c of s.regions){const r=document.createElement("div");r.style.cssText=`position:absolute;left:${c.x}px;top:${c.y}px;width:${c.width}px;height:${c.height}px;pointer-events:auto;user-select:none;-webkit-app-region:drag;`,this.layer.append(r)}}}clear(){this.layer.replaceChildren()}destroy(){this.observer.disconnect(),this.layer.remove()}}class g0 extends s0{canReceiveCommand(u){return!0}}const p0=["idle","running-right","running-left","waving","jumping","failed","waiting","running","review"],ai={columns:8,rows:9,cellWidth:192,cellHeight:208,animations:{idle:{row:0,frames:6,frameDurations:[280,110,110,140,140,320]},"running-right":{row:1,frames:8,frameDurations:[120,120,120,120,120,120,120,220]},"running-left":{row:2,frames:8,frameDurations:[120,120,120,120,120,120,120,220]},waving:{row:3,frames:4,frameDurations:[140,140,140,280]},jumping:{row:4,frames:5,frameDurations:[140,140,140,140,280]},failed:{row:5,frames:8,frameDurations:[140,140,140,140,140,140,140,240]},waiting:{row:6,frames:6,frameDurations:[150,150,150,150,150,260]},running:{row:7,frames:6,frameDurations:[120,120,120,120,120,220]},review:{row:8,frames:6,frameDurations:[150,150,150,150,150,280]}}},Du={top:0,right:0,bottom:0,left:0},sm="chatkit:pet:position:v1",v0="/pets/boba/spritesheet.webp",Cf={type:"sprite-atlas",src:v0},cm={pin:"bottom-right",draggable:!0,scale:.25,persist:!0,zIndex:40};function S0(f,u){return{row:(u==null?void 0:u.row)??f.row,frames:(u==null?void 0:u.frames)??f.frames,frameDurations:u!=null&&u.frameDurations&&u.frameDurations.length>0?u.frameDurations:f.frameDurations}}function b0(f,u=1){var c;const s={};for(const r of p0)s[r]=S0(ai.animations[r],(c=f==null?void 0:f.animations)==null?void 0:c[r]);return{columns:(f==null?void 0:f.columns)??ai.columns,rows:(f==null?void 0:f.rows)??(u===2?11:ai.rows),cellWidth:(f==null?void 0:f.cellWidth)??ai.cellWidth,cellHeight:(f==null?void 0:f.cellHeight)??ai.cellHeight,animations:s}}function E0(f){return f&&f.src?f:Cf}function fi(f){return f?f===!0?{character:Cf,position:cm,behavior:"auto",ariaLabel:"Animated pet",imageRendering:"auto"}:f.enabled===!1?null:{character:E0(f.character),position:{...cm,...f.position},behavior:f.behavior??"auto",ariaLabel:f.ariaLabel??"Animated pet",imageRendering:f.imageRendering??"auto"}:null}function T0(f){return f.src?{kind:"atlas",src:f.src,atlas:b0(f.atlas,f.spriteVersionNumber)}:null}function Tf(f){return typeof f=="number"?{top:f,right:f,bottom:f,left:f}:{top:(f==null?void 0:f.top)??Du.top,right:(f==null?void 0:f.right)??Du.right,bottom:(f==null?void 0:f.bottom)??Du.bottom,left:(f==null?void 0:f.left)??Du.left}}function Ne(f,u,s,c){const r=c.left,d=c.top,y=Math.max(r,s.width-u.width-c.right),v=Math.max(d,s.height-u.height-c.bottom);return{x:Math.min(y,Math.max(r,f.x)),y:Math.min(v,Math.max(d,f.y))}}function _0(f,u,s,c){const r=(s.width-u.width)/2,d=(s.height-u.height)/2,y=s.width-u.width-c.right,v=s.height-u.height-c.bottom;switch(f){case"top-left":return Ne({x:c.left,y:c.top},u,s,c);case"top":return Ne({x:r,y:c.top},u,s,c);case"top-right":return Ne({x:y,y:c.top},u,s,c);case"left":return Ne({x:c.left,y:d},u,s,c);case"center":return Ne({x:r,y:d},u,s,c);case"right":return Ne({x:y,y:d},u,s,c);case"bottom-left":return Ne({x:c.left,y:v},u,s,c);case"bottom":return Ne({x:r,y:v},u,s,c);case"bottom-right":default:return Ne({x:y,y:v},u,s,c)}}const Df=(f,u=new WeakSet)=>{if(typeof f=="function")return"[ChatKitMethod]";if(typeof f!="object"||f===null||u.has(f))return f;if(u.add(f),Array.isArray(f))return f.map(c=>Df(c,u));const s={};for(const[c,r]of Object.entries(f))typeof r!="function"?s[c]=Df(r,u):s[c]="[ChatKitMethod]";return s},wu=2,A0=.5,M0=1.5,O0=3,z0=2e3,fm=12,x0=320,ke=12,la=8,C0='system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif',om={"en-US":{closePetMenuItem:"Close pet",hideMessage:"Hide message",expandMessage:"Expand message",collapseMessage:"Collapse message",restoreMessage:"Show message",replyButton:"Reply",replyPlaceholder:"Reply...",sendButton:"Send",sendingButton:"Sending...",sendFailed:"Failed to send"},"zh-CN":{closePetMenuItem:"关闭宠物",hideMessage:"隐藏消息",expandMessage:"展开消息",collapseMessage:"收起消息",restoreMessage:"显示消息",replyButton:"回复",replyPlaceholder:"输入回复...",sendButton:"发送",sendingButton:"发送中...",sendFailed:"发送失败"}};function Ru(f){f.stopPropagation()}function na(){const f=window.visualViewport;return{width:(f==null?void 0:f.width)||window.innerWidth||320,height:(f==null?void 0:f.height)||window.innerHeight||480}}function D0(f,u){if(!u)return null;try{const s=window.localStorage.getItem(f);if(!s)return null;const c=JSON.parse(s);return!c||typeof c!="object"||typeof c.x!="number"||typeof c.y!="number"?null:{x:c.x,y:c.y}}catch{return null}}function w0(f,u,s){if(u)try{window.localStorage.setItem(f,JSON.stringify(s))}catch{}}function R0(f){return f.replace(/["\\]/g,"\\$&")}function rm(f){return Math.max(.1,f)*A0}function Vl(f,u,s){return Math.min(s,Math.max(u,f))}function U0(){if(typeof window<"u")try{const f=window.localStorage.getItem("chatkit:locale");if(f)return f}catch{}return typeof navigator<"u"?navigator.language:null}function hm(f){const u=(f??U0()??"").trim().toLowerCase();return u==="zh-cn"||u==="zh-hans"||u.startsWith("zh")?"zh-CN":"en-US"}function N0(f){switch(f){case"compact":return{padding:"8px 10px",gap:6,marginTop:3,toggleSize:30,actionSize:22};case"spacious":return{padding:"14px 16px",gap:10,marginTop:6,toggleSize:38,actionSize:28};case"normal":default:return{padding:"12px 14px",gap:8,marginTop:4,toggleSize:34,actionSize:26}}}function H0(f){switch(f){case"pill":return 24;case"round":return 16;case"sharp":return 0;case"soft":default:return 12}}function ii(f){var v,E;const u=typeof f=="string"?null:f,s=((v=u==null?void 0:u.typography)==null?void 0:v.baseSize)??16,c=(u==null?void 0:u.density)??"normal",r=c==="compact"?-1:c==="spacious"?1:0,d=Vl(s-2+r,11,17);return{...N0(c),bodySize:d,titleSize:d+1,iconSize:Vl(d+2,13,19),radius:H0(u==null?void 0:u.radius),fontFamily:((E=u==null?void 0:u.typography)==null?void 0:E.fontFamily)??C0}}function B0(f){return f==="idle"||f==="running-right"||f==="running-left"||f==="waving"||f==="jumping"||f==="failed"||f==="waiting"||f==="running"||f==="review"}function L0(f){if(!f||typeof f!="object"||Array.isArray(f))return null;const u=f;return B0(u.state)?{state:u.state}:null}function Y0(f){if(!f||typeof f!="object"||Array.isArray(f))return null;const u=f;return u.pet===null||typeof u.pet=="boolean"?{pet:u.pet}:u.pet&&typeof u.pet=="object"&&!Array.isArray(u.pet)?{pet:u.pet}:null}function q0(f){return f==="running"||f==="completed"||f==="failed"}function dm(f){return f?[f.threadId,f.messageId||f.updatedAt||f.message].join(":"):null}function mm(f){return f?[f.threadId,f.messageId??""].join(":"):null}function j0(f){if(f===null)return{summary:null};if(!f||typeof f!="object"||Array.isArray(f))return null;const u=f;return typeof u.threadId!="string"||!u.threadId.trim()||typeof u.title!="string"||!u.title.trim()||typeof u.message!="string"||!u.message.trim()||!q0(u.status)?null:{summary:{threadId:u.threadId,title:u.title,message:u.message,status:u.status,...typeof u.messageId=="string"&&u.messageId.trim()?{messageId:u.messageId}:{},...typeof u.updatedAt=="string"&&u.updatedAt.trim()?{updatedAt:u.updatedAt}:{}}}}function X0(f){if(!f||typeof f!="object"||Array.isArray(f))return null;const u=f;return u.name!=="thread.summary"?null:j0(u.data??null)}class G0{constructor(u,s){this.overlayElement=null,this.petElement=null,this.contextMenuElement=null,this.summaryElement=null,this.summaryToggleElement=null,this.mediaElement=null,this.options=null,this.theme=null,this.resolved=null,this.summary=null,this.summaryRenderKey=null,this.dismissedSummaryKey=null,this.isSummaryCollapsed=!1,this.isSummaryExpanded=!1,this.isSummaryHovering=!1,this.isReplyOpen=!1,this.isReplySubmitting=!1,this.replyError=null,this.replyDraft="",this.replyInputElement=null,this.copyLocale=hm(),this.copy=om[this.copyLocale],this.currentState="waiting",this.lastAutoState="waiting",this.transient=null,this.position=null,this.dragPosition=null,this.dragOffset={x:0,y:0},this.lastDragPosition=null,this.lastDragClientX=null,this.dragAnimation=null,this.activePointerId=null,this.isDragging=!1,this.isHovering=!1,this.movedDuringDrag=!1,this.prefersReducedMotion=!1,this.frame=0,this.completed=!1,this.activeAnimationName=null,this.activeAnimationMode=null,this.frameTimer=null,this.restingDelayTimer=null,this.mediaQuery=null,this.connected=!1,this.handleViewportChange=()=>{this.closeContextMenu(),this.render()},this.handleReducedMotionChange=()=>{var c;this.prefersReducedMotion=!!((c=this.mediaQuery)!=null&&c.matches),this.prefersReducedMotion&&(this.transient=null),this.render()},this.handlePointerEnter=()=>{this.clearRestingDelayTimer(),this.isHovering=!0,this.rescheduleAnimation()},this.handlePointerLeave=()=>{this.isDragging||this.enterRestingAfterDelay()},this.handleContextMenu=c=>{c.preventDefault(),c.stopPropagation(),this.openContextMenu({x:c.clientX,y:c.clientY})},this.handleContextMenuEvent=c=>{c.preventDefault(),c.stopPropagation()},this.handleContextMenuOutsidePointerDown=c=>{const r=this.contextMenuElement;r&&c.composedPath().includes(r)||this.closeContextMenu()},this.handleContextMenuKeyDown=c=>{c.key==="Escape"&&(c.preventDefault(),this.closeContextMenu())},this.handleClosePetMenuItemClick=c=>{var r;c.preventDefault(),c.stopPropagation(),this.closeContextMenu(),(r=this.onClose)==null||r.call(this)},this.handleSummaryPointerEnter=()=>{this.isSummaryHovering=!0,this.render()},this.handleSummaryPointerLeave=()=>{this.isSummaryHovering=!1,this.isReplyOpen||this.render()},this.handleSummaryClick=()=>{var r,d;const c=(r=this.summary)==null?void 0:r.threadId.trim();c&&((d=this.onThreadSummaryActivate)==null||d.call(this,c))},this.handleSummaryDelete=()=>{const c=dm(this.summary);c&&(this.dismissedSummaryKey=c),this.isSummaryCollapsed=!1,this.isReplyOpen=!1,this.replyDraft="",this.replyError=null,this.removeSummaryElements()},this.handleSummaryCollapseToggle=()=>{this.isSummaryCollapsed=!this.isSummaryCollapsed,this.isSummaryExpanded=!1,this.isReplyOpen=!1,this.replyError=null,this.render()},this.handleSummaryExpandToggle=()=>{this.isSummaryExpanded=!this.isSummaryExpanded,this.render()},this.handleReplyOpen=()=>{this.isReplyOpen=!0,this.replyError=null,this.render()},this.handleReplyInput=c=>{const r=c.currentTarget;r instanceof HTMLInputElement&&(this.replyDraft=r.value,this.replyError=null)},this.handleReplySubmit=c=>{c.preventDefault(),this.submitReply()},this.handleReplyKeyDown=c=>{c.key==="Escape"&&(c.preventDefault(),this.isReplyOpen=!1,this.replyError=null,this.render())},this.handlePointerDown=c=>{var y,v;if(c.button!==0||c.ctrlKey||this.isDragging||(this.closeContextMenu(),!((y=this.options)!=null&&y.position.draggable)))return;c.preventDefault();const r=(v=this.petElement)==null?void 0:v.getBoundingClientRect();if(!r)return;const d={x:r.left,y:r.top};this.dragOffset={x:c.clientX-r.left,y:c.clientY-r.top},this.lastDragPosition=d,this.lastDragClientX=c.clientX,this.dragAnimation=null,this.movedDuringDrag=!1,this.dragPosition=d,this.isDragging=!0,this.activePointerId=c.pointerId,this.clearRestingDelayTimer(),this.isHovering=!0,this.captureActivePointer(),this.installDragListeners(),this.rescheduleAnimation()},this.handlePointerMove=c=>{if(!this.isActiveDragPointer(c))return;const r=this.getNextDragPosition(c),d=this.lastDragPosition;if(d&&(Math.abs(d.x-r.x)>wu||Math.abs(d.y-r.y)>wu)&&(this.movedDuringDrag=!0),this.lastDragClientX!==null){const y=c.clientX-this.lastDragClientX;y>wu?this.dragAnimation="running-right":y<-wu&&(this.dragAnimation="running-left")}this.lastDragClientX=c.clientX,this.lastDragPosition=r,this.dragPosition=r,this.render()},this.handlePointerUp=c=>{if(!this.isActiveDragPointer(c))return;const r=this.lastDragPosition??this.getNextDragPosition(c);this.finishDrag(r,c)},this.handleLostPointerCapture=c=>{if(!this.isActiveDragPointer(c))return;const r=this.lastDragPosition??this.getNextDragPosition(c);this.finishDrag(r,c)},this.handleClick=()=>{var c;this.movedDuringDrag||((c=this.onActivate)==null||c.call(this),!this.prefersReducedMotion&&(this.transient={name:"waving"},this.render()))},this.root=u,this.onActivate=s==null?void 0:s.onActivate,this.onClose=s==null?void 0:s.onClose,this.onReply=s==null?void 0:s.onReply,this.onThreadSummaryActivate=s==null?void 0:s.onThreadSummaryActivate,this.connect()}connect(){this.connected||(this.connected=!0,this.installViewportListeners(),this.installReducedMotionListener(),this.render())}setOptions(u,s){this.closeContextMenu();const c=fi(u);if(this.options=c,this.theme=s??null,!c){this.isDragging=!1,this.isHovering=!1,this.position=null,this.dragPosition=null,this.dragAnimation=null,this.lastDragPosition=null,this.lastDragClientX=null,this.transient=null,this.resolved=null,this.clearRestingDelayTimer(),this.removeDragListeners(),this.removeOverlay();return}this.position=D0(sm,c.position.persist),c.behavior==="auto"&&!this.prefersReducedMotion&&(this.transient={name:"waving"}),this.resolveCharacter(),this.render()}setState(u){var c;const s=this.lastAutoState;this.lastAutoState=u,this.currentState=u,((c=this.options)==null?void 0:c.behavior)==="auto"&&!this.prefersReducedMotion&&u==="idle"&&(s==="running"||s==="review")&&!this.transient?this.transient={name:"jumping"}:u!=="idle"&&(this.transient=null),this.render()}setLocale(u){const s=hm(u);s!==this.copyLocale&&(this.copyLocale=s,this.copy=om[s],this.summaryRenderKey=null,this.closeContextMenu(),this.render())}setThreadSummary(u){const s=mm(this.summary),c=mm(u);if(this.summary=u,!u){this.isSummaryCollapsed=!1,this.isSummaryExpanded=!1,this.isSummaryHovering=!1,this.isReplyOpen=!1,this.isReplySubmitting=!1,this.replyError=null,this.replyDraft="",this.summaryRenderKey=null,this.removeSummaryElements();return}s!==c&&(this.isSummaryCollapsed=!1,this.isSummaryExpanded=!1,this.isSummaryHovering=!1,this.isReplyOpen=!1,this.isReplySubmitting=!1,this.replyError=null,this.replyDraft=""),this.render()}setThreadSummaryStatus(u){!this.summary||this.summary.status===u||(this.summary={...this.summary,status:u},this.render())}destroy(){var u,s,c,r;this.connected&&(this.connected=!1,this.clearRestingDelayTimer(),this.clearTimers(),this.removeDragListeners(),this.removeOverlay(),window.removeEventListener("resize",this.handleViewportChange),(u=window.visualViewport)==null||u.removeEventListener("resize",this.handleViewportChange),(s=window.visualViewport)==null||s.removeEventListener("scroll",this.handleViewportChange),(r=(c=this.mediaQuery)==null?void 0:c.removeEventListener)==null||r.call(c,"change",this.handleReducedMotionChange),this.mediaQuery=null)}installViewportListeners(){var u,s;window.addEventListener("resize",this.handleViewportChange),(u=window.visualViewport)==null||u.addEventListener("resize",this.handleViewportChange),(s=window.visualViewport)==null||s.addEventListener("scroll",this.handleViewportChange)}installReducedMotionListener(){var u,s;window.matchMedia&&(this.mediaQuery=window.matchMedia("(prefers-reduced-motion: reduce)"),this.prefersReducedMotion=this.mediaQuery.matches,(s=(u=this.mediaQuery).addEventListener)==null||s.call(u,"change",this.handleReducedMotionChange))}resolveCharacter(){if(!this.options){this.resolved=null;return}const u=this.options.character;this.resolved=T0(u)}ensureOverlay(){if(this.overlayElement&&this.petElement)return;const u=document.createElement("div");u.setAttribute("data-chatkit-host-pet-layer",""),u.style.position="fixed",u.style.inset="0",u.style.pointerEvents="none",u.style.overflow="visible";const s=document.createElement("style");s.textContent=`
|
|
51
51
|
@keyframes chatkit-pet-summary-spin {
|
|
52
52
|
to { transform: rotate(360deg); }
|
|
53
53
|
}
|
|
54
|
-
`;const c=document.createElement("div");c.setAttribute("data-chatkit-host-pet",""),c.style.position="absolute",c.style.top="0",c.style.left="0",c.style.pointerEvents="auto",c.style.touchAction="none",c.style.userSelect="none",c.style.willChange="transform",c.addEventListener("pointerenter",this.handlePointerEnter),c.addEventListener("pointerleave",this.handlePointerLeave),c.addEventListener("pointerdown",this.handlePointerDown),c.addEventListener("lostpointercapture",this.handleLostPointerCapture),c.addEventListener("contextmenu",this.handleContextMenu),c.addEventListener("click",this.handleClick),u.append(s,c),this.root.append(u),this.overlayElement=u,this.petElement=c}removeOverlay(){var u;this.cancelActiveDrag(),this.clearRestingDelayTimer(),this.clearTimers(),this.closeContextMenu(),this.petElement&&(this.petElement.removeEventListener("pointerenter",this.handlePointerEnter),this.petElement.removeEventListener("pointerleave",this.handlePointerLeave),this.petElement.removeEventListener("pointerdown",this.handlePointerDown),this.petElement.removeEventListener("lostpointercapture",this.handleLostPointerCapture),this.petElement.removeEventListener("contextmenu",this.handleContextMenu),this.petElement.removeEventListener("click",this.handleClick)),this.isHovering=!1,this.removeSummaryElements(),(u=this.overlayElement)==null||u.remove(),this.overlayElement=null,this.petElement=null,this.mediaElement=null}removeSummaryElements(){var u,s;(u=this.summaryElement)==null||u.remove(),(s=this.summaryToggleElement)==null||s.remove(),this.summaryElement=null,this.summaryToggleElement=null,this.replyInputElement=null,this.summaryRenderKey=null}getSize(){if(!this.options||!this.resolved)return{width:0,height:0};const u=rm(this.options.position.scale),s={width:this.resolved.atlas.cellWidth,height:this.resolved.atlas.cellHeight};return{width:s.width*u,height:s.height*u}}getCurrentPosition(u){const s=this.options;if(!s)return{x:0,y:0};const c=na(),r=Tf(s.position.boundsPadding),d=s.position.pin===void 0?"bottom-right":s.position.pin,y=d?T0(d,u,c,r):null;return Ue(this.dragPosition??this.position??y??{x:r.left,y:r.top},u,c,r)}persistPosition(u){if(!this.options)return;const s=this.getSize(),c=Ue(u,s,na(),Tf(this.options.position.boundsPadding));this.position=c,D0(sm,this.options.position.persist,c)}getActiveAnimationName(){return this.options?this.isDragging?this.dragAnimation??"running":this.transient?this.transient.name:this.options.behavior==="manual"?"idle":this.currentState:"idle"}getActiveAnimationMode(){return this.isDragging?"loop":this.transient?"once":"loop"}resetAnimationIfNeeded(u,s){this.activeAnimationName===u&&this.activeAnimationMode===s||(this.clearTimers(),this.activeAnimationName=u,this.activeAnimationMode=s,this.frame=0,this.completed=!1)}render(){if(!this.options||!this.resolved){this.clearTimers(),this.petElement&&this.petElement.replaceChildren(),this.removeSummaryElements(),this.mediaElement=null,this.activeAnimationName=null,this.activeAnimationMode=null,this.frame=0,this.completed=!1;return}this.ensureOverlay();const u=this.overlayElement,s=this.petElement;if(!u||!s)return;const c=this.getSize(),r=this.getCurrentPosition(c),d=this.getActiveAnimationName(),y=this.getActiveAnimationMode();this.resetAnimationIfNeeded(d,y),u.style.zIndex=String(this.options.position.zIndex),s.style.width=`${c.width}px`,s.style.height=`${c.height}px`,s.style.transform=`translate3d(${r.x}px, ${r.y}px, 0)`,s.style.cursor=this.options.position.draggable?this.isDragging?"grabbing":"grab":"default",s.dataset.petAnimation=d,s.setAttribute("aria-label",this.options.ariaLabel),s.setAttribute("role","img"),this.renderAtlas(d,y),this.renderThreadSummary(r,c),this.scheduleNextFrame(d,y)}renderThreadSummary(u,s){var y,v,E;const c=this.summary,r=dm(c);if(!c||!r||this.dismissedSummaryKey===r){this.removeSummaryElements();return}if(this.isSummaryCollapsed){this.renderCollapsedSummary(u,s);return}const d=[this.copyLocale,this.isSummaryExpanded?"expanded":"compact",this.isSummaryHovering?"hover":"rest",this.isReplyOpen?"reply":"closed",this.isReplySubmitting?"submitting":"ready",this.replyError??""].join("|");(!this.summaryElement||this.summaryRenderKey!==d)&&((y=this.summaryElement)==null||y.remove(),(v=this.summaryToggleElement)==null||v.remove(),this.summaryElement=this.createSummaryBubble(c),this.summaryToggleElement=this.createSummaryToggleButton("v"),(E=this.overlayElement)==null||E.append(this.summaryElement,this.summaryToggleElement),this.summaryRenderKey=d,this.isReplyOpen&&!this.isReplySubmitting&&window.setTimeout(()=>{var S;return(S=this.replyInputElement)==null?void 0:S.focus()},0)),this.updateSummaryBubbleContent(c),this.positionSummaryBubble(u,s)}renderCollapsedSummary(u,s){var c,r;(c=this.summaryElement)==null||c.remove(),this.summaryElement=null,this.summaryRenderKey=null,this.summaryToggleElement||(this.summaryToggleElement=this.createSummaryToggleButton("1"),(r=this.overlayElement)==null||r.append(this.summaryToggleElement)),this.summaryToggleElement.textContent="1",this.positionSummaryToggleBadge(u,s)}positionSummaryToggleBadge(u,s){const c=this.summaryToggleElement;if(!c)return;const r=na(),d=ii(this.theme).toggleSize,y=Vl(u.x+s.width-d*.35,ke,r.width-d-ke),v=Vl(u.y-d*.35,ke,r.height-d-ke);c.style.width=`${d}px`,c.style.height=`${d}px`,c.style.transform=`translate3d(${y}px, ${v}px, 0)`,c.style.borderRadius="999px"}positionSummaryBubble(u,s){const c=this.summaryElement,r=this.summaryToggleElement;if(!c||!r)return;const d=na(),y=Math.min(z0,d.width-ke*2);c.style.width=`${y}px`;const v=c.offsetHeight||96,E=u.y-v-fm,N=E>=ke?E:Vl(u.y+s.height+fm,ke,d.height-v-ke),B=Vl(u.x+s.width/2-y/2,ke,d.width-y-ke);c.style.transform=`translate3d(${B}px, ${N}px, 0)`,this.positionSummaryToggleBadge(u,s)}createSummaryBubble(u){const s=this.isSummaryHovering&&!this.isReplyOpen,c=ii(this.theme),r=document.createElement("div");r.setAttribute("data-chatkit-pet-summary",""),r.addEventListener("pointerenter",this.handleSummaryPointerEnter),r.addEventListener("pointerleave",this.handleSummaryPointerLeave),r.addEventListener("click",this.handleSummaryClick),r.style.position="absolute",r.style.top="0",r.style.left="0",r.style.boxSizing="border-box",r.style.pointerEvents="auto",r.style.padding=c.padding,r.style.border="1px solid rgba(148, 163, 184, 0.22)",r.style.borderRadius=`${c.radius}px`,r.style.background="rgba(255, 255, 255, 0.94)",r.style.color="#1f2937",r.style.boxShadow="0 8px 24px rgba(15, 23, 42, 0.1)",r.style.font=`500 ${c.bodySize}px/1.35 ${c.fontFamily}`,r.style.backdropFilter="blur(10px)";const d=document.createElement("div");d.style.display="flex",d.style.alignItems="center",d.style.gap=`${c.gap}px`,(this.isSummaryHovering||this.isReplyOpen)&&d.append(this.createSummaryActionButton("x",this.copy.hideMessage,this.handleSummaryDelete));const y=document.createElement("div");y.textContent=u.title,y.style.minWidth="0",y.style.flex="1",y.style.overflow="hidden",y.style.textOverflow="ellipsis",y.style.whiteSpace="nowrap",y.style.fontWeight="700",y.style.fontSize=`${c.titleSize}px`,y.dataset.chatkitPetSummaryTitle="",d.append(y),this.isSummaryHovering||this.isReplyOpen?d.append(this.createSummaryActionButton(this.isSummaryExpanded?"-":">",this.isSummaryExpanded?this.copy.collapseMessage:this.copy.expandMessage,this.handleSummaryExpandToggle)):d.append(this.createStatusIcon(u.status));const v=document.createElement("div");if(v.textContent=u.message,v.style.marginTop=`${c.marginTop}px`,v.style.fontWeight="400",v.style.color="#374151",v.style.overflow="hidden",this.isSummaryExpanded?(v.style.maxHeight="7em",v.style.overflowY="auto"):(v.style.display="-webkit-box",v.style.setProperty("-webkit-line-clamp","2"),v.style.setProperty("-webkit-box-orient","vertical")),v.dataset.chatkitPetSummaryMessage="",r.append(d,v),s){const E=this.createTextButton(this.copy.replyButton,this.handleReplyOpen);E.style.position="absolute",E.style.right="14px",E.style.bottom="10px",r.append(E)}return this.isReplyOpen&&r.append(this.createReplyForm()),r}updateSummaryBubbleContent(u){var d,y,v;const s=(d=this.summaryElement)==null?void 0:d.querySelector("[data-chatkit-pet-summary-title]");s&&s.textContent!==u.title&&(s.textContent=u.title);const c=(y=this.summaryElement)==null?void 0:y.querySelector("[data-chatkit-pet-summary-message]");c&&c.textContent!==u.message&&(c.textContent=u.message);const r=(v=this.summaryElement)==null?void 0:v.querySelector("[data-chatkit-pet-summary-status]");if(r&&r.dataset.chatkitPetSummaryStatus!==u.status){const E=this.createStatusIcon(u.status);r.replaceWith(E)}}createSummaryToggleButton(u){const s=ii(this.theme),c=document.createElement("button");return c.type="button",c.textContent=u,c.title=u==="1"?this.copy.restoreMessage:this.copy.collapseMessage,c.addEventListener("click",Ru),c.addEventListener("click",this.handleSummaryCollapseToggle),c.style.position="absolute",c.style.top="0",c.style.left="0",c.style.pointerEvents="auto",c.style.border="1px solid rgba(148, 163, 184, 0.28)",c.style.background="rgba(248, 250, 252, 0.94)",c.style.color="#475569",c.style.boxShadow="0 6px 18px rgba(15, 23, 42, 0.1)",c.style.cursor="pointer",c.style.font=`600 ${s.titleSize}px/1 ${s.fontFamily}`,c.style.display="flex",c.style.alignItems="center",c.style.justifyContent="center",c}createStatusIcon(u){const c=ii(this.theme).iconSize,r=document.createElement("span");if(r.setAttribute("aria-hidden","true"),r.dataset.chatkitPetSummaryStatus=u,r.style.display="inline-flex",r.style.width=`${c}px`,r.style.height=`${c}px`,r.style.alignItems="center",r.style.justifyContent="center",r.style.flex="0 0 auto",u==="running")return r.style.border="2px solid rgba(71, 85, 105, 0.32)",r.style.borderTopColor="#64748b",r.style.borderRadius="999px",r.style.animation="chatkit-pet-summary-spin 900ms linear infinite",r;if(r.style.borderRadius="999px",r.style.fontSize=`${Math.max(10,c-4)}px`,r.style.fontWeight="700",u==="failed")return r.textContent="!",r.style.background="#fee2e2",r.style.color="#b91c1c",r;r.textContent="",r.style.border="2px solid #22c55e",r.style.position="relative";const d=document.createElement("span");return d.style.width=`${Math.round(c*.44)}px`,d.style.height=`${Math.round(c*.25)}px`,d.style.borderLeft="2px solid #22c55e",d.style.borderBottom="2px solid #22c55e",d.style.transform="rotate(-45deg) translate(1px, -1px)",r.append(d),r}createSummaryActionButton(u,s,c){const r=ii(this.theme),d=document.createElement("button");return d.type="button",d.textContent=u,d.title=s,d.addEventListener("click",y=>{y.preventDefault(),y.stopPropagation(),c()}),d.style.width=`${r.actionSize}px`,d.style.height=`${r.actionSize}px`,d.style.border="0",d.style.borderRadius="999px",d.style.background="rgba(241, 245, 249, 0.96)",d.style.color="#475569",d.style.cursor="pointer",d.style.font=`600 ${r.titleSize}px/1 ${r.fontFamily}`,d}createTextButton(u,s){const c=document.createElement("button");return c.type="button",c.textContent=u,c.addEventListener("click",r=>{r.preventDefault(),r.stopPropagation(),s()}),c.style.border="1px solid rgba(148, 163, 184, 0.28)",c.style.borderRadius="999px",c.style.background="rgba(248, 250, 252, 0.95)",c.style.color="#334155",c.style.cursor="pointer",c.style.padding="3px 10px",c.style.font='600 12px/1.4 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif',c}createReplyForm(){const u=document.createElement("form");u.addEventListener("click",Ru),u.addEventListener("submit",this.handleReplySubmit),u.addEventListener("keydown",this.handleReplyKeyDown),u.style.display="flex",u.style.gap="6px",u.style.alignItems="center",u.style.marginTop="8px";const s=document.createElement("input");s.type="text",s.value=this.replyDraft,s.disabled=this.isReplySubmitting,s.placeholder=this.copy.replyPlaceholder,s.addEventListener("input",this.handleReplyInput),s.style.minWidth="0",s.style.flex="1",s.style.border="1px solid rgba(148, 163, 184, 0.35)",s.style.borderRadius="999px",s.style.padding="6px 10px",s.style.font='400 13px/1.2 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif',this.replyInputElement=s;const c=document.createElement("button");if(c.type="submit",c.textContent=this.isReplySubmitting?this.copy.sendingButton:this.copy.sendButton,c.disabled=this.isReplySubmitting,c.style.border="0",c.style.borderRadius="999px",c.style.background="#22c55e",c.style.color="#052e16",c.style.cursor=this.isReplySubmitting?"default":"pointer",c.style.padding="6px 10px",c.style.font='700 12px/1.2 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif',u.append(s,c),this.replyError){const r=document.createElement("div");r.textContent=this.copy.sendFailed,r.style.flexBasis="100%",r.style.color="#b91c1c",r.style.fontSize="12px",u.style.flexWrap="wrap",u.append(r)}return u}createContextMenu(){const u=document.createElement("div");u.setAttribute("data-chatkit-pet-context-menu",""),u.setAttribute("role","menu"),u.addEventListener("contextmenu",this.handleContextMenuEvent),u.addEventListener("pointerdown",Ru),u.addEventListener("click",Ru),u.style.position="absolute",u.style.top="0",u.style.left="0",u.style.boxSizing="border-box",u.style.minWidth="132px",u.style.padding="4px",u.style.pointerEvents="auto",u.style.border="1px solid rgba(148, 163, 184, 0.28)",u.style.borderRadius="10px",u.style.background="rgba(255, 255, 255, 0.96)",u.style.color="#1f2937",u.style.boxShadow="0 12px 28px rgba(15, 23, 42, 0.16)",u.style.font='500 13px/1.3 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif',u.style.backdropFilter="blur(10px)";const s=document.createElement("button");return s.type="button",s.textContent=this.copy.closePetMenuItem,s.setAttribute("role","menuitem"),s.addEventListener("click",this.handleClosePetMenuItemClick),s.style.display="block",s.style.width="100%",s.style.border="0",s.style.borderRadius="7px",s.style.background="transparent",s.style.color="inherit",s.style.cursor="pointer",s.style.padding="7px 10px",s.style.textAlign="left",s.style.font="inherit",u.append(s),u}openContextMenu(u){var r;const s=this.overlayElement;if(!s)return;this.closeContextMenu();const c=this.createContextMenu();s.append(c),this.contextMenuElement=c,this.positionContextMenu(u),(r=c.querySelector("button"))==null||r.focus({preventScroll:!0}),window.addEventListener("pointerdown",this.handleContextMenuOutsidePointerDown,!0),window.addEventListener("keydown",this.handleContextMenuKeyDown)}closeContextMenu(){var u;(u=this.contextMenuElement)==null||u.remove(),this.contextMenuElement=null,window.removeEventListener("pointerdown",this.handleContextMenuOutsidePointerDown,!0),window.removeEventListener("keydown",this.handleContextMenuKeyDown)}positionContextMenu(u){const s=this.contextMenuElement;if(!s)return;const c=na(),r=s.offsetWidth||132,d=s.offsetHeight||40,y=Math.max(la,c.width-r-la),v=Math.max(la,c.height-d-la),E=Vl(u.x,la,y),S=Vl(u.y,la,v);s.style.transform=`translate3d(${E}px, ${S}px, 0)`}renderAtlas(u,s){var et;if(!this.petElement||((et=this.resolved)==null?void 0:et.kind)!=="atlas"||!this.options)return;if(!(this.mediaElement instanceof HTMLDivElement)){const gt=document.createElement("div");gt.setAttribute("aria-hidden","true"),this.petElement.replaceChildren(gt),this.mediaElement=gt}const c=this.mediaElement,r=this.resolved.atlas,d=r.animations[u]??r.animations.idle,y=s==="once"&&this.completed?Math.max(0,d.frames-1):Math.min(this.frame,Math.max(0,d.frames-1)),v=rm(this.options.position.scale),E=r.cellWidth,S=r.cellHeight,N=r.columns*E,B=r.rows*S;c.style.width=`${E}px`,c.style.height=`${S}px`,c.style.overflow="hidden",c.style.transform=`scale(${v})`,c.style.transformOrigin="top left",c.style.pointerEvents="none",c.style.backgroundImage=`url("${w0(this.resolved.src)}")`,c.style.backgroundRepeat="no-repeat",c.style.backgroundSize=`${N}px ${B}px`,c.style.backgroundPosition=`${-y*E}px ${-d.row*S}px`,c.style.imageRendering=this.options.imageRendering,c.dataset.petFrame=String(y)}scheduleNextFrame(u,s){if(this.prefersReducedMotion||this.completed||!this.resolved){this.clearTimers();return}if(this.frameTimer!==null)return;const c=this.resolved.atlas,r=c.animations[u]??c.animations.idle,y=(r.frameDurations[this.frame]??r.frameDurations[r.frameDurations.length-1]??150)*A0,v=this.isHovering||this.isDragging?y:y*M0;this.frameTimer=window.setTimeout(()=>{this.frameTimer=null;const E=this.frame+1;if(E>=r.frames){if(s==="once"){this.completed=!0,this.frame=Math.max(0,r.frames-1),this.finishTransient();return}this.frame=0,this.render();return}this.frame=E,this.render()},v)}clearTimers(){this.frameTimer!==null&&(window.clearTimeout(this.frameTimer),this.frameTimer=null)}clearRestingDelayTimer(){this.restingDelayTimer!==null&&(window.clearTimeout(this.restingDelayTimer),this.restingDelayTimer=null)}finishTransient(){this.transient=null,this.activeAnimationName=null,this.activeAnimationMode=null,this.render()}rescheduleAnimation(){this.clearTimers(),this.render()}enterRestingAfterDelay(){this.clearRestingDelayTimer(),this.isHovering=!0,this.restingDelayTimer=window.setTimeout(()=>{this.restingDelayTimer=null,!this.isDragging&&(this.isHovering=!1,this.rescheduleAnimation())},O0)}isPointOverPet(u,s){var r;const c=(r=this.petElement)==null?void 0:r.getBoundingClientRect();return c?u>=c.left&&u<=c.right&&s>=c.top&&s<=c.bottom:!1}isPointerOverPet(u){return this.isPointOverPet(u.clientX,u.clientY)}async submitReply(){var s;const u=this.replyDraft.trim();if(!(!u||this.isReplySubmitting)){this.isReplySubmitting=!0,this.replyError=null,this.render();try{await((s=this.onReply)==null?void 0:s.call(this,u)),this.replyDraft="",this.isReplyOpen=!1,this.isSummaryHovering=!1}catch{this.replyError="Failed to send"}finally{this.isReplySubmitting=!1,this.render()}}}captureActivePointer(){const u=this.activePointerId,s=this.petElement;if(!(u===null||typeof(s==null?void 0:s.setPointerCapture)!="function"))try{s.setPointerCapture(u)}catch{}}releaseActivePointer(){const u=this.activePointerId,s=this.petElement;if(this.activePointerId=null,!(u===null||typeof(s==null?void 0:s.hasPointerCapture)!="function"||typeof s.releasePointerCapture!="function"))try{s.hasPointerCapture(u)&&s.releasePointerCapture(u)}catch{}}isActiveDragPointer(u){return this.isDragging&&u.pointerId===this.activePointerId}getNextDragPosition(u){return this.options?Ue({x:u.clientX-this.dragOffset.x,y:u.clientY-this.dragOffset.y},this.getSize(),na(),Tf(this.options.position.boundsPadding)):{x:0,y:0}}finishDrag(u,s){this.isDragging=!1,this.dragPosition=null,this.dragAnimation=null,this.lastDragClientX=null,this.removeDragListeners(),this.releaseActivePointer(),this.persistPosition(u),s.pointerType==="mouse"&&this.isPointerOverPet(s)?(this.isHovering=!0,this.rescheduleAnimation()):(this.enterRestingAfterDelay(),this.rescheduleAnimation())}cancelActiveDrag(){this.isDragging=!1,this.dragPosition=null,this.dragAnimation=null,this.lastDragPosition=null,this.lastDragClientX=null,this.removeDragListeners(),this.releaseActivePointer()}installDragListeners(){window.addEventListener("pointermove",this.handlePointerMove),window.addEventListener("pointerup",this.handlePointerUp),window.addEventListener("pointercancel",this.handlePointerUp)}removeDragListeners(){window.removeEventListener("pointermove",this.handlePointerMove),window.removeEventListener("pointerup",this.handlePointerUp),window.removeEventListener("pointercancel",this.handlePointerUp)}}var G0=Object.create,Om=Object.defineProperty,Q0=Object.getOwnPropertyDescriptor,zm=(f,u)=>(u=Symbol[f])?u:Symbol.for("Symbol."+f),Qu=f=>{throw TypeError(f)},Z0=(f,u,s)=>u in f?Om(f,u,{enumerable:!0,configurable:!0,writable:!0,value:s}):f[u]=s,V0=f=>[,,,G0((f==null?void 0:f[zm("metadata")])??null)],xm=["class","method","getter","setter","accessor","field","value","get","set"],Cm=f=>f!==void 0&&typeof f!="function"?Qu("Function expected"):f,K0=(f,u,s,c,r)=>({kind:xm[f],name:u,metadata:c,addInitializer:d=>s._?Qu("Already initialized"):r.push(Cm(d||null))}),J0=(f,u)=>Z0(u,zm("metadata"),f[3]),k0=(f,u,s,c)=>{for(var r=0,d=f[u>>1],y=d&&d.length;r<y;r++)d[r].call(s);return c},Xe=(f,u,s,c,r,d)=>{for(var y,v,E,S,N=u&7,B=!1,et=!1,gt=2,Et=xm[N+5],Ct=f[gt]||(f[gt]=[]),Xt=(r=r.prototype,Q0(r,s)),Mt=c.length-1;Mt>=0;Mt--)E=K0(N,s,v={},f[3],Ct),E.static=B,E.private=et,S=E.access={has:Wt=>s in Wt},S.get=Wt=>Wt[s],y=(0,c[Mt])(Xt[Et],E),v._=1,Cm(y)&&(Xt[Et]=y);return Xt&&Om(r,s,Xt),r},Bf=(f,u,s)=>u.has(f)||Qu("Cannot "+s),z=(f,u,s)=>(Bf(f,u,"read from private field"),s?s.call(f):u.get(f)),Nt=(f,u,s)=>u.has(f)?Qu("Cannot add the same private member more than once"):u instanceof WeakSet?u.add(f):u.set(f,s),kt=(f,u,s,c)=>(Bf(f,u,"write to private field"),u.set(f,s),s),G=(f,u,s)=>(Bf(f,u,"access private method"),s),Dm,wm,Rm,Um,Nm,Hm,Bm,Lm,Ym,qm,jm,wf,at,Kl,pl,vl,yn,Lu,Lf,Zu,sa,gn,We,Ne,Yu,Jt,si,yt,j,Zl,Yf,Fe,Vu,Xm,Ku,Gm,Qm,qf,Jl,oi,Rf,Zm,Vm,Km,Jm,qu,km,Wm,$m,ju,ca,Uf,re;function Fm(f){return Df(f)}function qe(f,u){const s=String(u.name);return function(...c){if(!this.capabilities.commands.has(s))throw new Ft(`ChatKit command "${String(s)}" is not available for the "${this.profile}" profile.`);return f.apply(this,c)}}class Te extends(wf=HTMLElement,jm=[qe],qm=[qe],Ym=[qe],Lm=[qe],Bm=[qe],Hm=[qe],Nm=[qe],Um=[qe],Rm=[qe],wm=[qe],Dm=[qe],wf){constructor({profile:u}){super(),k0(re,5,this),Nt(this,j),this.profile=void 0,this.capabilities=void 0,Nt(this,at),Nt(this,Kl),Nt(this,pl),Nt(this,vl),Nt(this,yn),Nt(this,Lu),Nt(this,Lf,!1),Nt(this,Zu,!1),Nt(this,sa),Nt(this,gn,!1),Nt(this,We,this.attachShadow({mode:"open"})),Nt(this,Ne,new X0(z(this,We),{onActivate:()=>G(this,j,Zm).call(this),onClose:()=>G(this,j,Vm).call(this),onReply:s=>G(this,j,Km).call(this,s),onThreadSummaryActivate:s=>void G(this,j,Jm).call(this,s)})),Nt(this,Yu),Nt(this,Jt,new Promise(s=>{kt(this,Yu,s)})),Nt(this,si,Am()),Nt(this,yt,new y0({channelId:z(this,si)??void 0,fetch:((...s)=>{var r;const c=((r=z(this,at))==null?void 0:r.api)&&"fetch"in z(this,at).api&&z(this,at).api.fetch;return c?c(...s):fetch(...s)}),target:()=>{var s;return((s=z(this,pl))==null?void 0:s.contentWindow)??null},targetOrigin:window.location.origin,handlers:{onRealtimeVoiceCommand:s=>{var r;const c=(r=z(this,at))==null?void 0:r.realtimeVoice;if(!c||s.type==="start"&&!c.enabled)throw new Ft("Realtime voice is unavailable.");return c.onCommand(s)},onFileInputClick:({inputAttributes:s})=>new Promise(c=>{const r=document.createElement("input");for(const[y,v]of Object.entries(s))r.setAttribute(y,String(v));const d=()=>{c(Array.from(r.files||[])),z(this,We).contains(r)&&z(this,We).removeChild(r)};r.addEventListener("cancel",d),r.addEventListener("change",d),z(this,We).appendChild(r),r.click()}),onApprovalDecision:async s=>{var r,d;const c=(d=(r=z(this,at))==null?void 0:r.approvals)==null?void 0:d.onDecision;if(!c)throw new Ft("Add approvals.onDecision to handle host approvals.");return c(s)},onApprovalAction:async s=>{var r,d;const c=(d=(r=z(this,at))==null?void 0:r.approvals)==null?void 0:d.onAction;if(!c)throw new Ft("Add approvals.onAction to handle approval actions.");return c(s)},onClientToolCall:async({name:s,params:c,id:r,tool_call_id:d})=>{var v;const y=(v=z(this,at))==null?void 0:v.onClientTool;return y||G(this,j,Zl).call(this,new Ft("No handler for client tool calls. You'll need to add onClientTool to your ChatKit options.")),y({name:s,params:c,id:r,tool_call_id:d})},onToolOutputAttachmentPreview:async s=>{var r,d;const c=(d=(r=z(this,at))==null?void 0:r.toolOutputAttachments)==null?void 0:d.onRequestPreview;return c||G(this,j,Zl).call(this,new Ft("No handler for tool-output attachment previews. Add toolOutputAttachments.onRequestPreview to your ChatKit options.")),c(s)},onConnectWorkspaceConnector:async s=>{var r,d,y;const c=(y=(d=(r=z(this,at))==null?void 0:r.composer)==null?void 0:d.resources)==null?void 0:y.onConnect;return c||G(this,j,Zl).call(this,new Ft("Add composer.resources.onConnect to handle workspace Connector connections.")),c(s)},onWorkbenchClientCommand:async({commandKey:s,payload:c,hostType:r,hostId:d,viewKey:y})=>{var E,S;const v=(S=(E=z(this,at))==null?void 0:E.workbench)==null?void 0:S.onClientCommand;return v?v({commandKey:s,payload:c,hostType:r,hostId:d,viewKey:y}):{success:!1,code:"unsupported",commandKey:s}},onWidgetAction:async({action:s,widgetItem:c})=>{var d,y;const r=(y=(d=z(this,at))==null?void 0:d.widgets)==null?void 0:y.onAction;return r||G(this,j,Zl).call(this,new Ft("No handler for widget actions. You'll need to add widgets.onAction to your ChatKit options.")),r(s,c)},onEntitySearch:async({query:s})=>{var c,r,d;return((d=(r=(c=z(this,at))==null?void 0:c.entities)==null?void 0:r.onTagSearch)==null?void 0:d.call(r,s))??[]},onEntityClick:async({entity:s})=>{var c,r,d;return(d=(r=(c=z(this,at))==null?void 0:c.entities)==null?void 0:r.onClick)==null?void 0:d.call(r,s)},onEntityPreview:async({entity:s})=>{var c,r,d;return((d=(r=(c=z(this,at))==null?void 0:c.entities)==null?void 0:r.onRequestPreview)==null?void 0:d.call(r,s))??{preview:null}},onGetClientSecret:async s=>((!z(this,at)||!("getClientSecret"in z(this,at).api)||!z(this,at).api.getClientSecret)&&G(this,j,Zl).call(this,new Ft("Could not refresh the session because ChatKitOptions.api.getClientSecret is not configured.")),z(this,at).api.getClientSecret(s??null)),onAddMetadataToRequest:({op:s,params:c})=>{throw new Ft("ChatKit: onAddMetadataToRequest is unimplemented.")}}})),Nt(this,qu,()=>{G(this,j,Jl).call(this,!1)}),Nt(this,ju,()=>{var s;this.dataset.loaded="true",this.dispatchEvent(new CustomEvent("chatkit.ready",{bubbles:!0,composed:!0})),(s=z(this,Yu))==null||s.call(this)}),Nt(this,ca,!1),this.profile=u,this.capabilities=um(u)}setProfile(u){this.profile=u,this.capabilities=um(u)}connectedCallback(){z(this,Ne).connect();const u=document.createElement("style");u.textContent=`
|
|
54
|
+
`;const c=document.createElement("div");c.setAttribute("data-chatkit-host-pet",""),c.style.position="absolute",c.style.top="0",c.style.left="0",c.style.pointerEvents="auto",c.style.touchAction="none",c.style.userSelect="none",c.style.willChange="transform",c.addEventListener("pointerenter",this.handlePointerEnter),c.addEventListener("pointerleave",this.handlePointerLeave),c.addEventListener("pointerdown",this.handlePointerDown),c.addEventListener("lostpointercapture",this.handleLostPointerCapture),c.addEventListener("contextmenu",this.handleContextMenu),c.addEventListener("click",this.handleClick),u.append(s,c),this.root.append(u),this.overlayElement=u,this.petElement=c}removeOverlay(){var u;this.cancelActiveDrag(),this.clearRestingDelayTimer(),this.clearTimers(),this.closeContextMenu(),this.petElement&&(this.petElement.removeEventListener("pointerenter",this.handlePointerEnter),this.petElement.removeEventListener("pointerleave",this.handlePointerLeave),this.petElement.removeEventListener("pointerdown",this.handlePointerDown),this.petElement.removeEventListener("lostpointercapture",this.handleLostPointerCapture),this.petElement.removeEventListener("contextmenu",this.handleContextMenu),this.petElement.removeEventListener("click",this.handleClick)),this.isHovering=!1,this.removeSummaryElements(),(u=this.overlayElement)==null||u.remove(),this.overlayElement=null,this.petElement=null,this.mediaElement=null}removeSummaryElements(){var u,s;(u=this.summaryElement)==null||u.remove(),(s=this.summaryToggleElement)==null||s.remove(),this.summaryElement=null,this.summaryToggleElement=null,this.replyInputElement=null,this.summaryRenderKey=null}getSize(){if(!this.options||!this.resolved)return{width:0,height:0};const u=rm(this.options.position.scale),s={width:this.resolved.atlas.cellWidth,height:this.resolved.atlas.cellHeight};return{width:s.width*u,height:s.height*u}}getCurrentPosition(u){const s=this.options;if(!s)return{x:0,y:0};const c=na(),r=Tf(s.position.boundsPadding),d=s.position.pin===void 0?"bottom-right":s.position.pin,y=d?_0(d,u,c,r):null;return Ne(this.dragPosition??this.position??y??{x:r.left,y:r.top},u,c,r)}persistPosition(u){if(!this.options)return;const s=this.getSize(),c=Ne(u,s,na(),Tf(this.options.position.boundsPadding));this.position=c,w0(sm,this.options.position.persist,c)}getActiveAnimationName(){return this.options?this.isDragging?this.dragAnimation??"running":this.transient?this.transient.name:this.options.behavior==="manual"?"idle":this.currentState:"idle"}getActiveAnimationMode(){return this.isDragging?"loop":this.transient?"once":"loop"}resetAnimationIfNeeded(u,s){this.activeAnimationName===u&&this.activeAnimationMode===s||(this.clearTimers(),this.activeAnimationName=u,this.activeAnimationMode=s,this.frame=0,this.completed=!1)}render(){if(!this.options||!this.resolved){this.clearTimers(),this.petElement&&this.petElement.replaceChildren(),this.removeSummaryElements(),this.mediaElement=null,this.activeAnimationName=null,this.activeAnimationMode=null,this.frame=0,this.completed=!1;return}this.ensureOverlay();const u=this.overlayElement,s=this.petElement;if(!u||!s)return;const c=this.getSize(),r=this.getCurrentPosition(c),d=this.getActiveAnimationName(),y=this.getActiveAnimationMode();this.resetAnimationIfNeeded(d,y),u.style.zIndex=String(this.options.position.zIndex),s.style.width=`${c.width}px`,s.style.height=`${c.height}px`,s.style.transform=`translate3d(${r.x}px, ${r.y}px, 0)`,s.style.cursor=this.options.position.draggable?this.isDragging?"grabbing":"grab":"default",s.dataset.petAnimation=d,s.setAttribute("aria-label",this.options.ariaLabel),s.setAttribute("role","img"),this.renderAtlas(d,y),this.renderThreadSummary(r,c),this.scheduleNextFrame(d,y)}renderThreadSummary(u,s){var y,v,E;const c=this.summary,r=dm(c);if(!c||!r||this.dismissedSummaryKey===r){this.removeSummaryElements();return}if(this.isSummaryCollapsed){this.renderCollapsedSummary(u,s);return}const d=[this.copyLocale,this.isSummaryExpanded?"expanded":"compact",this.isSummaryHovering?"hover":"rest",this.isReplyOpen?"reply":"closed",this.isReplySubmitting?"submitting":"ready",this.replyError??""].join("|");(!this.summaryElement||this.summaryRenderKey!==d)&&((y=this.summaryElement)==null||y.remove(),(v=this.summaryToggleElement)==null||v.remove(),this.summaryElement=this.createSummaryBubble(c),this.summaryToggleElement=this.createSummaryToggleButton("v"),(E=this.overlayElement)==null||E.append(this.summaryElement,this.summaryToggleElement),this.summaryRenderKey=d,this.isReplyOpen&&!this.isReplySubmitting&&window.setTimeout(()=>{var S;return(S=this.replyInputElement)==null?void 0:S.focus()},0)),this.updateSummaryBubbleContent(c),this.positionSummaryBubble(u,s)}renderCollapsedSummary(u,s){var c,r;(c=this.summaryElement)==null||c.remove(),this.summaryElement=null,this.summaryRenderKey=null,this.summaryToggleElement||(this.summaryToggleElement=this.createSummaryToggleButton("1"),(r=this.overlayElement)==null||r.append(this.summaryToggleElement)),this.summaryToggleElement.textContent="1",this.positionSummaryToggleBadge(u,s)}positionSummaryToggleBadge(u,s){const c=this.summaryToggleElement;if(!c)return;const r=na(),d=ii(this.theme).toggleSize,y=Vl(u.x+s.width-d*.35,ke,r.width-d-ke),v=Vl(u.y-d*.35,ke,r.height-d-ke);c.style.width=`${d}px`,c.style.height=`${d}px`,c.style.transform=`translate3d(${y}px, ${v}px, 0)`,c.style.borderRadius="999px"}positionSummaryBubble(u,s){const c=this.summaryElement,r=this.summaryToggleElement;if(!c||!r)return;const d=na(),y=Math.min(x0,d.width-ke*2);c.style.width=`${y}px`;const v=c.offsetHeight||96,E=u.y-v-fm,N=E>=ke?E:Vl(u.y+s.height+fm,ke,d.height-v-ke),B=Vl(u.x+s.width/2-y/2,ke,d.width-y-ke);c.style.transform=`translate3d(${B}px, ${N}px, 0)`,this.positionSummaryToggleBadge(u,s)}createSummaryBubble(u){const s=this.isSummaryHovering&&!this.isReplyOpen,c=ii(this.theme),r=document.createElement("div");r.setAttribute("data-chatkit-pet-summary",""),r.addEventListener("pointerenter",this.handleSummaryPointerEnter),r.addEventListener("pointerleave",this.handleSummaryPointerLeave),r.addEventListener("click",this.handleSummaryClick),r.style.position="absolute",r.style.top="0",r.style.left="0",r.style.boxSizing="border-box",r.style.pointerEvents="auto",r.style.padding=c.padding,r.style.border="1px solid rgba(148, 163, 184, 0.22)",r.style.borderRadius=`${c.radius}px`,r.style.background="rgba(255, 255, 255, 0.94)",r.style.color="#1f2937",r.style.boxShadow="0 8px 24px rgba(15, 23, 42, 0.1)",r.style.font=`500 ${c.bodySize}px/1.35 ${c.fontFamily}`,r.style.backdropFilter="blur(10px)";const d=document.createElement("div");d.style.display="flex",d.style.alignItems="center",d.style.gap=`${c.gap}px`,(this.isSummaryHovering||this.isReplyOpen)&&d.append(this.createSummaryActionButton("x",this.copy.hideMessage,this.handleSummaryDelete));const y=document.createElement("div");y.textContent=u.title,y.style.minWidth="0",y.style.flex="1",y.style.overflow="hidden",y.style.textOverflow="ellipsis",y.style.whiteSpace="nowrap",y.style.fontWeight="700",y.style.fontSize=`${c.titleSize}px`,y.dataset.chatkitPetSummaryTitle="",d.append(y),this.isSummaryHovering||this.isReplyOpen?d.append(this.createSummaryActionButton(this.isSummaryExpanded?"-":">",this.isSummaryExpanded?this.copy.collapseMessage:this.copy.expandMessage,this.handleSummaryExpandToggle)):d.append(this.createStatusIcon(u.status));const v=document.createElement("div");if(v.textContent=u.message,v.style.marginTop=`${c.marginTop}px`,v.style.fontWeight="400",v.style.color="#374151",v.style.overflow="hidden",this.isSummaryExpanded?(v.style.maxHeight="7em",v.style.overflowY="auto"):(v.style.display="-webkit-box",v.style.setProperty("-webkit-line-clamp","2"),v.style.setProperty("-webkit-box-orient","vertical")),v.dataset.chatkitPetSummaryMessage="",r.append(d,v),s){const E=this.createTextButton(this.copy.replyButton,this.handleReplyOpen);E.style.position="absolute",E.style.right="14px",E.style.bottom="10px",r.append(E)}return this.isReplyOpen&&r.append(this.createReplyForm()),r}updateSummaryBubbleContent(u){var d,y,v;const s=(d=this.summaryElement)==null?void 0:d.querySelector("[data-chatkit-pet-summary-title]");s&&s.textContent!==u.title&&(s.textContent=u.title);const c=(y=this.summaryElement)==null?void 0:y.querySelector("[data-chatkit-pet-summary-message]");c&&c.textContent!==u.message&&(c.textContent=u.message);const r=(v=this.summaryElement)==null?void 0:v.querySelector("[data-chatkit-pet-summary-status]");if(r&&r.dataset.chatkitPetSummaryStatus!==u.status){const E=this.createStatusIcon(u.status);r.replaceWith(E)}}createSummaryToggleButton(u){const s=ii(this.theme),c=document.createElement("button");return c.type="button",c.textContent=u,c.title=u==="1"?this.copy.restoreMessage:this.copy.collapseMessage,c.addEventListener("click",Ru),c.addEventListener("click",this.handleSummaryCollapseToggle),c.style.position="absolute",c.style.top="0",c.style.left="0",c.style.pointerEvents="auto",c.style.border="1px solid rgba(148, 163, 184, 0.28)",c.style.background="rgba(248, 250, 252, 0.94)",c.style.color="#475569",c.style.boxShadow="0 6px 18px rgba(15, 23, 42, 0.1)",c.style.cursor="pointer",c.style.font=`600 ${s.titleSize}px/1 ${s.fontFamily}`,c.style.display="flex",c.style.alignItems="center",c.style.justifyContent="center",c}createStatusIcon(u){const c=ii(this.theme).iconSize,r=document.createElement("span");if(r.setAttribute("aria-hidden","true"),r.dataset.chatkitPetSummaryStatus=u,r.style.display="inline-flex",r.style.width=`${c}px`,r.style.height=`${c}px`,r.style.alignItems="center",r.style.justifyContent="center",r.style.flex="0 0 auto",u==="running")return r.style.border="2px solid rgba(71, 85, 105, 0.32)",r.style.borderTopColor="#64748b",r.style.borderRadius="999px",r.style.animation="chatkit-pet-summary-spin 900ms linear infinite",r;if(r.style.borderRadius="999px",r.style.fontSize=`${Math.max(10,c-4)}px`,r.style.fontWeight="700",u==="failed")return r.textContent="!",r.style.background="#fee2e2",r.style.color="#b91c1c",r;r.textContent="",r.style.border="2px solid #22c55e",r.style.position="relative";const d=document.createElement("span");return d.style.width=`${Math.round(c*.44)}px`,d.style.height=`${Math.round(c*.25)}px`,d.style.borderLeft="2px solid #22c55e",d.style.borderBottom="2px solid #22c55e",d.style.transform="rotate(-45deg) translate(1px, -1px)",r.append(d),r}createSummaryActionButton(u,s,c){const r=ii(this.theme),d=document.createElement("button");return d.type="button",d.textContent=u,d.title=s,d.addEventListener("click",y=>{y.preventDefault(),y.stopPropagation(),c()}),d.style.width=`${r.actionSize}px`,d.style.height=`${r.actionSize}px`,d.style.border="0",d.style.borderRadius="999px",d.style.background="rgba(241, 245, 249, 0.96)",d.style.color="#475569",d.style.cursor="pointer",d.style.font=`600 ${r.titleSize}px/1 ${r.fontFamily}`,d}createTextButton(u,s){const c=document.createElement("button");return c.type="button",c.textContent=u,c.addEventListener("click",r=>{r.preventDefault(),r.stopPropagation(),s()}),c.style.border="1px solid rgba(148, 163, 184, 0.28)",c.style.borderRadius="999px",c.style.background="rgba(248, 250, 252, 0.95)",c.style.color="#334155",c.style.cursor="pointer",c.style.padding="3px 10px",c.style.font='600 12px/1.4 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif',c}createReplyForm(){const u=document.createElement("form");u.addEventListener("click",Ru),u.addEventListener("submit",this.handleReplySubmit),u.addEventListener("keydown",this.handleReplyKeyDown),u.style.display="flex",u.style.gap="6px",u.style.alignItems="center",u.style.marginTop="8px";const s=document.createElement("input");s.type="text",s.value=this.replyDraft,s.disabled=this.isReplySubmitting,s.placeholder=this.copy.replyPlaceholder,s.addEventListener("input",this.handleReplyInput),s.style.minWidth="0",s.style.flex="1",s.style.border="1px solid rgba(148, 163, 184, 0.35)",s.style.borderRadius="999px",s.style.padding="6px 10px",s.style.font='400 13px/1.2 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif',this.replyInputElement=s;const c=document.createElement("button");if(c.type="submit",c.textContent=this.isReplySubmitting?this.copy.sendingButton:this.copy.sendButton,c.disabled=this.isReplySubmitting,c.style.border="0",c.style.borderRadius="999px",c.style.background="#22c55e",c.style.color="#052e16",c.style.cursor=this.isReplySubmitting?"default":"pointer",c.style.padding="6px 10px",c.style.font='700 12px/1.2 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif',u.append(s,c),this.replyError){const r=document.createElement("div");r.textContent=this.copy.sendFailed,r.style.flexBasis="100%",r.style.color="#b91c1c",r.style.fontSize="12px",u.style.flexWrap="wrap",u.append(r)}return u}createContextMenu(){const u=document.createElement("div");u.setAttribute("data-chatkit-pet-context-menu",""),u.setAttribute("role","menu"),u.addEventListener("contextmenu",this.handleContextMenuEvent),u.addEventListener("pointerdown",Ru),u.addEventListener("click",Ru),u.style.position="absolute",u.style.top="0",u.style.left="0",u.style.boxSizing="border-box",u.style.minWidth="132px",u.style.padding="4px",u.style.pointerEvents="auto",u.style.border="1px solid rgba(148, 163, 184, 0.28)",u.style.borderRadius="10px",u.style.background="rgba(255, 255, 255, 0.96)",u.style.color="#1f2937",u.style.boxShadow="0 12px 28px rgba(15, 23, 42, 0.16)",u.style.font='500 13px/1.3 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif',u.style.backdropFilter="blur(10px)";const s=document.createElement("button");return s.type="button",s.textContent=this.copy.closePetMenuItem,s.setAttribute("role","menuitem"),s.addEventListener("click",this.handleClosePetMenuItemClick),s.style.display="block",s.style.width="100%",s.style.border="0",s.style.borderRadius="7px",s.style.background="transparent",s.style.color="inherit",s.style.cursor="pointer",s.style.padding="7px 10px",s.style.textAlign="left",s.style.font="inherit",u.append(s),u}openContextMenu(u){var r;const s=this.overlayElement;if(!s)return;this.closeContextMenu();const c=this.createContextMenu();s.append(c),this.contextMenuElement=c,this.positionContextMenu(u),(r=c.querySelector("button"))==null||r.focus({preventScroll:!0}),window.addEventListener("pointerdown",this.handleContextMenuOutsidePointerDown,!0),window.addEventListener("keydown",this.handleContextMenuKeyDown)}closeContextMenu(){var u;(u=this.contextMenuElement)==null||u.remove(),this.contextMenuElement=null,window.removeEventListener("pointerdown",this.handleContextMenuOutsidePointerDown,!0),window.removeEventListener("keydown",this.handleContextMenuKeyDown)}positionContextMenu(u){const s=this.contextMenuElement;if(!s)return;const c=na(),r=s.offsetWidth||132,d=s.offsetHeight||40,y=Math.max(la,c.width-r-la),v=Math.max(la,c.height-d-la),E=Vl(u.x,la,y),S=Vl(u.y,la,v);s.style.transform=`translate3d(${E}px, ${S}px, 0)`}renderAtlas(u,s){var et;if(!this.petElement||((et=this.resolved)==null?void 0:et.kind)!=="atlas"||!this.options)return;if(!(this.mediaElement instanceof HTMLDivElement)){const gt=document.createElement("div");gt.setAttribute("aria-hidden","true"),this.petElement.replaceChildren(gt),this.mediaElement=gt}const c=this.mediaElement,r=this.resolved.atlas,d=r.animations[u]??r.animations.idle,y=s==="once"&&this.completed?Math.max(0,d.frames-1):Math.min(this.frame,Math.max(0,d.frames-1)),v=rm(this.options.position.scale),E=r.cellWidth,S=r.cellHeight,N=r.columns*E,B=r.rows*S;c.style.width=`${E}px`,c.style.height=`${S}px`,c.style.overflow="hidden",c.style.transform=`scale(${v})`,c.style.transformOrigin="top left",c.style.pointerEvents="none",c.style.backgroundImage=`url("${R0(this.resolved.src)}")`,c.style.backgroundRepeat="no-repeat",c.style.backgroundSize=`${N}px ${B}px`,c.style.backgroundPosition=`${-y*E}px ${-d.row*S}px`,c.style.imageRendering=this.options.imageRendering,c.dataset.petFrame=String(y)}scheduleNextFrame(u,s){if(this.prefersReducedMotion||this.completed||!this.resolved){this.clearTimers();return}if(this.frameTimer!==null)return;const c=this.resolved.atlas,r=c.animations[u]??c.animations.idle,y=(r.frameDurations[this.frame]??r.frameDurations[r.frameDurations.length-1]??150)*M0,v=this.isHovering||this.isDragging?y:y*O0;this.frameTimer=window.setTimeout(()=>{this.frameTimer=null;const E=this.frame+1;if(E>=r.frames){if(s==="once"){this.completed=!0,this.frame=Math.max(0,r.frames-1),this.finishTransient();return}this.frame=0,this.render();return}this.frame=E,this.render()},v)}clearTimers(){this.frameTimer!==null&&(window.clearTimeout(this.frameTimer),this.frameTimer=null)}clearRestingDelayTimer(){this.restingDelayTimer!==null&&(window.clearTimeout(this.restingDelayTimer),this.restingDelayTimer=null)}finishTransient(){this.transient=null,this.activeAnimationName=null,this.activeAnimationMode=null,this.render()}rescheduleAnimation(){this.clearTimers(),this.render()}enterRestingAfterDelay(){this.clearRestingDelayTimer(),this.isHovering=!0,this.restingDelayTimer=window.setTimeout(()=>{this.restingDelayTimer=null,!this.isDragging&&(this.isHovering=!1,this.rescheduleAnimation())},z0)}isPointOverPet(u,s){var r;const c=(r=this.petElement)==null?void 0:r.getBoundingClientRect();return c?u>=c.left&&u<=c.right&&s>=c.top&&s<=c.bottom:!1}isPointerOverPet(u){return this.isPointOverPet(u.clientX,u.clientY)}async submitReply(){var s;const u=this.replyDraft.trim();if(!(!u||this.isReplySubmitting)){this.isReplySubmitting=!0,this.replyError=null,this.render();try{await((s=this.onReply)==null?void 0:s.call(this,u)),this.replyDraft="",this.isReplyOpen=!1,this.isSummaryHovering=!1}catch{this.replyError="Failed to send"}finally{this.isReplySubmitting=!1,this.render()}}}captureActivePointer(){const u=this.activePointerId,s=this.petElement;if(!(u===null||typeof(s==null?void 0:s.setPointerCapture)!="function"))try{s.setPointerCapture(u)}catch{}}releaseActivePointer(){const u=this.activePointerId,s=this.petElement;if(this.activePointerId=null,!(u===null||typeof(s==null?void 0:s.hasPointerCapture)!="function"||typeof s.releasePointerCapture!="function"))try{s.hasPointerCapture(u)&&s.releasePointerCapture(u)}catch{}}isActiveDragPointer(u){return this.isDragging&&u.pointerId===this.activePointerId}getNextDragPosition(u){return this.options?Ne({x:u.clientX-this.dragOffset.x,y:u.clientY-this.dragOffset.y},this.getSize(),na(),Tf(this.options.position.boundsPadding)):{x:0,y:0}}finishDrag(u,s){this.isDragging=!1,this.dragPosition=null,this.dragAnimation=null,this.lastDragClientX=null,this.removeDragListeners(),this.releaseActivePointer(),this.persistPosition(u),s.pointerType==="mouse"&&this.isPointerOverPet(s)?(this.isHovering=!0,this.rescheduleAnimation()):(this.enterRestingAfterDelay(),this.rescheduleAnimation())}cancelActiveDrag(){this.isDragging=!1,this.dragPosition=null,this.dragAnimation=null,this.lastDragPosition=null,this.lastDragClientX=null,this.removeDragListeners(),this.releaseActivePointer()}installDragListeners(){window.addEventListener("pointermove",this.handlePointerMove),window.addEventListener("pointerup",this.handlePointerUp),window.addEventListener("pointercancel",this.handlePointerUp)}removeDragListeners(){window.removeEventListener("pointermove",this.handlePointerMove),window.removeEventListener("pointerup",this.handlePointerUp),window.removeEventListener("pointercancel",this.handlePointerUp)}}var Q0=Object.create,Om=Object.defineProperty,Z0=Object.getOwnPropertyDescriptor,zm=(f,u)=>(u=Symbol[f])?u:Symbol.for("Symbol."+f),Qu=f=>{throw TypeError(f)},V0=(f,u,s)=>u in f?Om(f,u,{enumerable:!0,configurable:!0,writable:!0,value:s}):f[u]=s,K0=f=>[,,,Q0((f==null?void 0:f[zm("metadata")])??null)],xm=["class","method","getter","setter","accessor","field","value","get","set"],Cm=f=>f!==void 0&&typeof f!="function"?Qu("Function expected"):f,J0=(f,u,s,c,r)=>({kind:xm[f],name:u,metadata:c,addInitializer:d=>s._?Qu("Already initialized"):r.push(Cm(d||null))}),k0=(f,u)=>V0(u,zm("metadata"),f[3]),W0=(f,u,s,c)=>{for(var r=0,d=f[u>>1],y=d&&d.length;r<y;r++)d[r].call(s);return c},Be=(f,u,s,c,r,d)=>{for(var y,v,E,S,N=u&7,B=!1,et=!1,gt=2,Et=xm[N+5],Ct=f[gt]||(f[gt]=[]),Gt=(r=r.prototype,Z0(r,s)),Mt=c.length-1;Mt>=0;Mt--)E=J0(N,s,v={},f[3],Ct),E.static=B,E.private=et,S=E.access={has:Wt=>s in Wt},S.get=Wt=>Wt[s],y=(0,c[Mt])(Gt[Et],E),v._=1,Cm(y)&&(Gt[Et]=y);return Gt&&Om(r,s,Gt),r},Bf=(f,u,s)=>u.has(f)||Qu("Cannot "+s),z=(f,u,s)=>(Bf(f,u,"read from private field"),s?s.call(f):u.get(f)),Nt=(f,u,s)=>u.has(f)?Qu("Cannot add the same private member more than once"):u instanceof WeakSet?u.add(f):u.set(f,s),kt=(f,u,s,c)=>(Bf(f,u,"write to private field"),u.set(f,s),s),G=(f,u,s)=>(Bf(f,u,"access private method"),s),Dm,wm,Rm,Um,Nm,Hm,Bm,Lm,Ym,qm,jm,Xm,wf,at,Kl,pl,vl,yn,Lu,Lf,Zu,sa,gn,We,He,Yu,Xt,si,ft,j,Zl,Yf,Fe,Vu,Gm,Ku,Qm,Zm,qf,Jl,oi,Rf,Vm,Km,Jm,km,qu,Wm,$m,Fm,ju,ca,Uf,ee;function Im(f){return Df(f)}function Ue(f,u){const s=String(u.name);return function(...c){if(!this.capabilities.commands.has(s))throw new Ft(`ChatKit command "${String(s)}" is not available for the "${this.profile}" profile.`);return f.apply(this,c)}}class he extends(wf=HTMLElement,Xm=[Ue],jm=[Ue],qm=[Ue],Ym=[Ue],Lm=[Ue],Bm=[Ue],Hm=[Ue],Nm=[Ue],Um=[Ue],Rm=[Ue],wm=[Ue],Dm=[Ue],wf){constructor({profile:u}){super(),W0(ee,5,this),Nt(this,j),this.profile=void 0,this.capabilities=void 0,Nt(this,at),Nt(this,Kl),Nt(this,pl),Nt(this,vl),Nt(this,yn),Nt(this,Lu),Nt(this,Lf,!1),Nt(this,Zu,!1),Nt(this,sa),Nt(this,gn,!1),Nt(this,We,this.attachShadow({mode:"open"})),Nt(this,He,new G0(z(this,We),{onActivate:()=>G(this,j,Vm).call(this),onClose:()=>G(this,j,Km).call(this),onReply:s=>G(this,j,Jm).call(this,s),onThreadSummaryActivate:s=>void G(this,j,km).call(this,s)})),Nt(this,Yu),Nt(this,Xt,new Promise(s=>{kt(this,Yu,s)})),Nt(this,si,Am()),Nt(this,ft,new g0({channelId:z(this,si)??void 0,fetch:((...s)=>{var r;const c=((r=z(this,at))==null?void 0:r.api)&&"fetch"in z(this,at).api&&z(this,at).api.fetch;return c?c(...s):fetch(...s)}),target:()=>{var s;return((s=z(this,pl))==null?void 0:s.contentWindow)??null},targetOrigin:window.location.origin,handlers:{onRealtimeVoiceCommand:s=>{var r;const c=(r=z(this,at))==null?void 0:r.realtimeVoice;if(!c||s.type==="start"&&!c.enabled)throw new Ft("Realtime voice is unavailable.");return c.onCommand(s)},onFileInputClick:({inputAttributes:s})=>new Promise(c=>{const r=document.createElement("input");for(const[y,v]of Object.entries(s))r.setAttribute(y,String(v));const d=()=>{c(Array.from(r.files||[])),z(this,We).contains(r)&&z(this,We).removeChild(r)};r.addEventListener("cancel",d),r.addEventListener("change",d),z(this,We).appendChild(r),r.click()}),onApprovalDecision:async s=>{var r,d;const c=(d=(r=z(this,at))==null?void 0:r.approvals)==null?void 0:d.onDecision;if(!c)throw new Ft("Add approvals.onDecision to handle host approvals.");return c(s)},onApprovalAction:async s=>{var r,d;const c=(d=(r=z(this,at))==null?void 0:r.approvals)==null?void 0:d.onAction;if(!c)throw new Ft("Add approvals.onAction to handle approval actions.");return c(s)},onClientToolCall:async({name:s,params:c,id:r,tool_call_id:d})=>{var v;const y=(v=z(this,at))==null?void 0:v.onClientTool;return y||G(this,j,Zl).call(this,new Ft("No handler for client tool calls. You'll need to add onClientTool to your ChatKit options.")),y({name:s,params:c,id:r,tool_call_id:d})},onToolOutputAttachmentPreview:async s=>{var r,d;const c=(d=(r=z(this,at))==null?void 0:r.toolOutputAttachments)==null?void 0:d.onRequestPreview;return c||G(this,j,Zl).call(this,new Ft("No handler for tool-output attachment previews. Add toolOutputAttachments.onRequestPreview to your ChatKit options.")),c(s)},onConnectWorkspaceConnector:async s=>{var r,d,y;const c=(y=(d=(r=z(this,at))==null?void 0:r.composer)==null?void 0:d.resources)==null?void 0:y.onConnect;return c||G(this,j,Zl).call(this,new Ft("Add composer.resources.onConnect to handle workspace Connector connections.")),c(s)},onWorkbenchClientCommand:async({commandKey:s,payload:c,hostType:r,hostId:d,viewKey:y,userActivated:v})=>{var S,N;const E=(N=(S=z(this,at))==null?void 0:S.workbench)==null?void 0:N.onClientCommand;return E?E({commandKey:s,payload:c,hostType:r,hostId:d,viewKey:y,...v!==void 0?{userActivated:v}:{}}):{success:!1,code:"unsupported",commandKey:s}},onWidgetAction:async({action:s,widgetItem:c})=>{var d,y;const r=(y=(d=z(this,at))==null?void 0:d.widgets)==null?void 0:y.onAction;return r||G(this,j,Zl).call(this,new Ft("No handler for widget actions. You'll need to add widgets.onAction to your ChatKit options.")),r(s,c)},onEntitySearch:async({query:s})=>{var c,r,d;return((d=(r=(c=z(this,at))==null?void 0:c.entities)==null?void 0:r.onTagSearch)==null?void 0:d.call(r,s))??[]},onEntityClick:async({entity:s})=>{var c,r,d;return(d=(r=(c=z(this,at))==null?void 0:c.entities)==null?void 0:r.onClick)==null?void 0:d.call(r,s)},onEntityPreview:async({entity:s})=>{var c,r,d;return((d=(r=(c=z(this,at))==null?void 0:c.entities)==null?void 0:r.onRequestPreview)==null?void 0:d.call(r,s))??{preview:null}},onGetClientSecret:async s=>((!z(this,at)||!("getClientSecret"in z(this,at).api)||!z(this,at).api.getClientSecret)&&G(this,j,Zl).call(this,new Ft("Could not refresh the session because ChatKitOptions.api.getClientSecret is not configured.")),z(this,at).api.getClientSecret(s??null)),onAddMetadataToRequest:({op:s,params:c})=>{throw new Ft("ChatKit: onAddMetadataToRequest is unimplemented.")}}})),Nt(this,qu,()=>{G(this,j,Jl).call(this,!1)}),Nt(this,ju,()=>{var s;this.dataset.loaded="true",this.dispatchEvent(new CustomEvent("chatkit.ready",{bubbles:!0,composed:!0})),(s=z(this,Yu))==null||s.call(this)}),Nt(this,ca,!1),this.profile=u,this.capabilities=um(u)}setProfile(u){this.profile=u,this.capabilities=um(u)}connectedCallback(){z(this,He).connect();const u=document.createElement("style");u.textContent=`
|
|
55
55
|
:host {
|
|
56
56
|
display: block;
|
|
57
57
|
position: relative;
|
|
@@ -196,4 +196,4 @@ Error generating stack: `+n.message+`
|
|
|
196
196
|
right: 8px;
|
|
197
197
|
}
|
|
198
198
|
}
|
|
199
|
-
`;const s=document.createElement("iframe");s.className="ck-iframe",s.name="chatkit",s.role="presentation",s.tabIndex=0,s.setAttribute("allowtransparency","true"),s.setAttribute("frameborder","0"),s.setAttribute("scrolling","no"),s.setAttribute("allow","clipboard-read; clipboard-write"),kt(this,pl,s);const c=document.createElement("div");c.className="ck-wrapper",c.appendChild(s),kt(this,vl,c);const r=document.createElement("button");r.className="ck-launcher-close",r.type="button",r.setAttribute("aria-label","Close chat"),r.addEventListener("click",z(this,qu)),c.appendChild(r),kt(this,Lu,r),kt(this,yn,new m0(c,()=>{var d,y;return((y=(d=z(this,at))==null?void 0:d.header)==null?void 0:y.windowDrag)===!0})),z(this,yt).on("window_drag_regions",d=>{var y;return(y=z(this,yn))==null?void 0:y.update(d)}),z(this,We).append(u),z(this,yt).on("left_header_icon_click",()=>{var d,y,v;(v=(y=(d=z(this,at))==null?void 0:d.header)==null?void 0:y.leftAction)==null||v.onClick()}),z(this,yt).on("right_header_icon_click",()=>{var d,y,v;(v=(y=(d=z(this,at))==null?void 0:d.header)==null?void 0:y.rightAction)==null||v.onClick()}),z(this,yt).on("public_event",([d,y])=>{if(d==="log"){const v=j0(y);v&&z(this,Ne).setThreadSummary(v.summary)}else d==="response.start"?z(this,Ne).setThreadSummaryStatus("running"):d==="response.end"?z(this,Ne).setThreadSummaryStatus("completed"):d==="response.stop"&&z(this,Ne).setThreadSummaryStatus("completed");if(this.capabilities.events.has(d)){if(d==="error"&&"error"in y){const v=f0(y.error);if(this.dispatchEvent(new CustomEvent("chatkit.error",{detail:{error:v}})),v instanceof Ft)throw v;return}this.dispatchEvent(new CustomEvent(`chatkit.${d}`,{detail:y}))}}),z(this,yt).on("pet_state_change",d=>{const y=B0(d);y&&z(this,Ne).setState(y.state)}),z(this,yt).on("pet_options_change",d=>{const y=L0(d);y&&((!z(this,gn)||y.pet===null)&&kt(this,gn,!1),kt(this,sa,y.pet),G(this,j,Rf).call(this))}),z(this,yt).on("chat_minimize_change",d=>{const y=typeof d=="object"&&d!==null&&"minimized"in d&&d.minimized===!0;y&&!G(this,j,Ku).call(this)||(G(this,j,oi).call(this,y),y&&G(this,j,Jl).call(this,!1))}),z(this,yt).on("unmount",()=>{var d;(d=z(this,yn))==null||d.destroy(),z(this,vl)&&z(this,We).contains(z(this,vl))&&(z(this,We).removeChild(z(this,vl)),kt(this,vl,void 0),kt(this,pl,void 0))}),z(this,yt).on("capabilities_profile_change",({profile:d})=>{this.setProfile(d)}),s.addEventListener("load",z(this,ju),{once:!0});try{G(this,j,Uf).call(this)}catch(d){console.error(d),G(this,j,Zl).call(this,d instanceof Error?d:new Ft("Failed to initialize ChatKit"))}}disconnectedCallback(){var u,s,c;(u=z(this,yn))==null||u.destroy(),(s=z(this,pl))==null||s.removeEventListener("load",z(this,ju)),(c=z(this,Lu))==null||c.removeEventListener("click",z(this,qu)),z(this,yt).disconnect(),z(this,Ne).destroy()}applySanitizedOptions(u){var s,c;kt(this,at,u),(s=u.header)!=null&&s.windowDrag||(c=z(this,yn))==null||c.clear(),kt(this,gn,!1),z(this,Ne).setLocale(u.locale),G(this,j,Rf).call(this),z(this,ca)?(G(this,j,Yf).call(this,z(this,at)),z(this,Jt).then(()=>{z(this,yt).commands.setOptions(Fm(G(this,j,qf).call(this,u)))})):G(this,j,Uf).call(this)}setOptions(u){try{const s=this.sanitizeOptions(u);G(this,j,$m).call(this,s),this.applySanitizedOptions(s)}catch(s){G(this,j,Zl).call(this,s instanceof Error?s:new Ft("Failed to parse options"))}}async focusComposer(){var u,s;await z(this,Jt),(u=z(this,pl))==null||u.focus(),await((s=z(this,yt))==null?void 0:s.commands.focusComposer())}async fetchUpdates(){var u;await z(this,Jt),await((u=z(this,yt))==null?void 0:u.commands.fetchUpdates())}async sendUserMessage(u){var s;await z(this,Jt),await((s=z(this,yt))==null?void 0:s.commands.sendUserMessage(u))}async setComposerValue(u){var s;await z(this,Jt),await((s=z(this,yt))==null?void 0:s.commands.setComposerValue(u))}async setRuntimeCapabilities(u){var s;await z(this,Jt),await((s=z(this,yt))==null?void 0:s.commands.setRuntimeCapabilities(u))}async setThreadId(u){var s;await z(this,Jt),await((s=z(this,yt))==null?void 0:s.commands.setThreadId({threadId:u}))}async shareThread(){var u;return await z(this,Jt),(u=z(this,yt))==null?void 0:u.commands.shareThread()}async sendCustomAction(u,s){var c;return await z(this,Jt),(c=z(this,yt))==null?void 0:c.commands.sendCustomAction({action:u,itemId:s})}async showHistory(){var u;return await z(this,Jt),(u=z(this,yt))==null?void 0:u.commands.showHistory()}async hideHistory(){var u;return await z(this,Jt),(u=z(this,yt))==null?void 0:u.commands.hideHistory()}async setTrainingOptOut(u){var s;return await z(this,Jt),(s=z(this,yt))==null?void 0:s.commands.setTrainingOptOut({value:u})}}re=V0(wf);at=new WeakMap;Kl=new WeakMap;pl=new WeakMap;vl=new WeakMap;yn=new WeakMap;Lu=new WeakMap;Lf=new WeakMap;Zu=new WeakMap;sa=new WeakMap;gn=new WeakMap;We=new WeakMap;Ne=new WeakMap;Yu=new WeakMap;Jt=new WeakMap;si=new WeakMap;yt=new WeakMap;j=new WeakSet;Zl=function(f){throw this.dispatchEvent(new CustomEvent("chatkit.error",{detail:{error:f}})),f};Yf=function(f){var u;this.dataset.colorScheme=typeof f.theme=="string"?f.theme:((u=f.theme)==null?void 0:u.colorScheme)??"light",this.dataset.displayMode=G(this,j,Fe).call(this,f),G(this,j,Fe).call(this,f)!=="pet"&&G(this,j,Jl).call(this,!1)};Fe=function(f=z(this,at)){return(f==null?void 0:f.displayMode)==="pet"?"pet":"chat"};Vu=function(f=z(this,at)){return f?G(this,j,Fe).call(this,f)==="pet"&&!fi(f.pet??null)?!0:f.pet??null:null};Xm=function(f){if(!f)return f;const u=fi(G(this,j,Vu).call(this)??null);return u?f===!0?{position:u.position}:f.position?{...f,position:{...u.position,...f.position,boundsPadding:f.position.boundsPadding??u.position.boundsPadding,pin:"pin"in f.position?f.position.pin:u.position.pin}}:{...f,position:u.position}:f};Ku=function(){var u;if(z(this,gn)||((u=z(this,at))==null?void 0:u.pet)===!1&&G(this,j,Fe).call(this)!=="pet")return null;let f;return z(this,sa)!==void 0?f=G(this,j,Xm).call(this,z(this,sa)):f=G(this,j,Vu).call(this),G(this,j,Fe).call(this)==="pet"&&!fi(f??null)&&(f=!0),G(this,j,Qm).call(this,f)};Gm=function(f){try{const u=new URL(z(this,Kl)??window.location.href,window.location.origin);return new URL(f,u).toString()}catch{return f}};Qm=function(f){const u=fi(f??null);return u?{character:{...u.character,src:G(this,j,Gm).call(this,u.character.src)},position:u.position,behavior:u.behavior,ariaLabel:u.ariaLabel,imageRendering:u.imageRendering}:null};qf=function(f){const u=G(this,j,Vu).call(this,f);if(u===(f.pet??null))return f;const s={...f};return u===null?delete s.pet:s.pet=u,s};Jl=function(f){kt(this,Lf,f),f?this.dataset.chatOpen="true":delete this.dataset.chatOpen};oi=function(f){const u=f&&!!G(this,j,Ku).call(this);kt(this,Zu,u),u?this.dataset.chatMinimizedToPet="true":delete this.dataset.chatMinimizedToPet};Rf=function(){var u;const f=G(this,j,Ku).call(this);z(this,Ne).setOptions(f,(u=z(this,at))==null?void 0:u.theme),f||G(this,j,oi).call(this,!1)};Zm=function(){if(z(this,Zu)){G(this,j,oi).call(this,!1),G(this,j,Fe).call(this)==="pet"&&G(this,j,Jl).call(this,!0),z(this,Jt).then(()=>this.focusComposer()).catch(()=>{});return}G(this,j,Fe).call(this)==="pet"&&(G(this,j,Jl).call(this,!0),z(this,Jt).then(()=>this.focusComposer()).catch(()=>{}))};Vm=function(){kt(this,gn,!0),kt(this,sa,null),G(this,j,oi).call(this,!1),G(this,j,Jl).call(this,!1),z(this,Ne).setOptions(null),G(this,j,Fe).call(this)!=="pet"&&z(this,Jt).then(()=>z(this,yt).commands.setPetEnabled({enabled:!1})).catch(()=>{})};Km=async function(f){await this.sendUserMessage({text:f})};Jm=async function(f){G(this,j,Fe).call(this)==="pet"&&G(this,j,Jl).call(this,!0),await this.setThreadId(f),await this.focusComposer()};qu=new WeakMap;km=function(){if(!z(this,Kl))throw new Ft("ChatKit frameUrl is not configured. Provide it via setOptions({ frameUrl }) before mounting.");return z(this,Kl)};Wm=function(f){if(z(this,ca)&&z(this,Kl)&&z(this,Kl)!==f)throw new Ft("ChatKit frameUrl cannot be changed after initialization. Create a new element to use a different URL.");kt(this,Kl,f)};$m=function(f){if(!("frameUrl"in f))return;const u=f.frameUrl;if(delete f.frameUrl,u!=null){if(typeof u!="string"||u.trim()==="")throw new Ft("ChatKit frameUrl must be a non-empty string.");G(this,j,Wm).call(this,u)}};ju=new WeakMap;ca=new WeakMap;Uf=function(){if(z(this,ca)||!z(this,pl)||!z(this,at))return;kt(this,ca,!0),G(this,j,Yf).call(this,z(this,at));const f=new URL(G(this,j,km).call(this),window.location.origin);z(this,yt).setTargetOrigin(f.origin),f.hash=c0({options:Fm(G(this,j,qf).call(this,z(this,at))),referrer:window.location.origin,profile:this.profile,...z(this,si)?{channelId:z(this,si)}:{}}),z(this,yt).connect(),z(this,pl).src=f.toString(),z(this,vl)&&z(this,We).append(z(this,vl))};Xe(re,1,"focusComposer",jm,Te);Xe(re,1,"fetchUpdates",qm,Te);Xe(re,1,"sendUserMessage",Ym,Te);Xe(re,1,"setComposerValue",Lm,Te);Xe(re,1,"setRuntimeCapabilities",Bm,Te);Xe(re,1,"setThreadId",Hm,Te);Xe(re,1,"shareThread",Nm,Te);Xe(re,1,"sendCustomAction",Um,Te);Xe(re,1,"showHistory",Rm,Te);Xe(re,1,"hideHistory",wm,Te);Xe(re,1,"setTrainingOptOut",Dm,Te);J0(re,Te);class W0 extends Te{constructor(){super({profile:"chatkit"})}sanitizeOptions(u){var s;return(s=u.threadItemActions)==null||delete s.share,u}}function $0(f="xpertai-chatkit"){"customElements"in globalThis&&(customElements.get(f)||customElements.define(f,W0))}$0();const Im={"chatkit.error":"onError","chatkit.response.end":"onResponseEnd","chatkit.response.start":"onResponseStart","chatkit.log":"onLog","chatkit.thread.change":"onThreadChange","chatkit.project.change":"onProjectChange","chatkit.connectors.change":"onConnectorsChange","chatkit.thread.load.start":"onThreadLoadStart","chatkit.thread.load.end":"onThreadLoadEnd","chatkit.ready":"onReady","chatkit.effect":"onEffect"},F0=Object.keys(Im),I0=Bt.forwardRef(function({control:u,...s},c){const r=Bt.useRef(null);return Bt.useLayoutEffect(()=>{const d=r.current;if(!d)return;if(customElements.get("xpertai-chatkit")){d.setOptions(u.options);return}let y=!0;return customElements.whenDefined("xpertai-chatkit").then(()=>{y&&d.setOptions(u.options)}),()=>{y=!1}},[u.options]),Bt.useEffect(()=>{const d=r.current;if(!d)return;const y=new AbortController;for(const v of F0)d.addEventListener(v,E=>{const S=Im[v],N=u.handlers[S];typeof N=="function"&&N(E.detail)},{signal:y.signal});return()=>{y.abort()}},[u.handlers]),te.jsx("xpertai-chatkit",{ref:d=>{r.current=d,u.setInstance(d),typeof c=="function"?c(d):c&&(c.current=d),r.current},...s})}),P0=["office_powerpoint_snapshot","office_powerpoint_select_slide","office_powerpoint_add_slide","office_powerpoint_delete_slide","office_powerpoint_add_text_box","office_powerpoint_add_shape","office_powerpoint_update_shape","office_powerpoint_delete_shape","office_powerpoint_insert_image"],tv=new Set(P0);function ev(f){return tv.has(f)}const lv=80;function $e(f){return typeof f=="string"&&f.trim()?f.trim():void 0}function ym(f,u){const s=$e(f);if(!s)throw new Error(`${u} must be a non-empty string.`);return s}function je(f){return typeof f=="number"&&Number.isFinite(f)?f:void 0}function Uu(f,u){const s=je(f);if(s===void 0)throw new Error(`${u} must be a finite number.`);return s}function Ju(f){if(!(typeof f!="number"||!Number.isInteger(f)||f<=0))return f}function gm(f,u){const s=Ju(f);if(s===void 0)throw new Error(`${u} must be a positive integer.`);return s}function pm(f,u){if(f!==!0)throw new Error(`${u} requires confirm: true.`)}function nv(f){return f-1}function Nu(f,u){return Ju(f.slideIndex)??u??1}function _f(f){return{left:je(f.left),top:je(f.top),width:je(f.width),height:je(f.height)}}function Af(f){return{fillColor:$e(f.fillColor),lineColor:$e(f.lineColor),text:$e(f.text),name:$e(f.name)}}function vm(f){return{slideIndex:Ju(f.slideIndex),shapeId:$e(f.shapeId),shapeName:$e(f.shapeName)}}function Sm(f){return Object.fromEntries(Object.entries(f).filter(u=>u[1]!==void 0))}function av(f,u){u.left!==void 0&&(f.left=u.left),u.top!==void 0&&(f.top=u.top),u.width!==void 0&&(f.width=u.width),u.height!==void 0&&(f.height=u.height)}function Mf(f,u){var c,r;const s=f;u.name&&(f.name=u.name),u.fillColor&&((r=(c=s.fill)==null?void 0:c.setSolidColor)==null||r.call(c,u.fillColor)),u.lineColor&&s.lineFormat&&(s.lineFormat.color=u.lineColor),u.text!==void 0&&(f.textFrame.textRange.text=u.text)}function Hu(f){return{id:f.id,name:f.name,type:f.type,left:f.left,top:f.top,width:f.width,height:f.height}}function Bu(f){f.load("id,name,type,left,top,width,height")}async function aa(){var f,u;return(u=(f=globalThis.Office)==null?void 0:f.context)!=null&&u.document?new Promise(s=>{Office.context.document.getSelectedDataAsync(Office.CoercionType.SlideRange,c=>{if(c.status!==Office.AsyncResultStatus.Succeeded){s([]);return}const r=c.value;s(Array.isArray(r.slides)?r.slides:[])})}):[]}async function bm(f){var u,s;if(!((s=(u=globalThis.Office)==null?void 0:u.context)!=null&&s.document))throw new Error("Office.context.document is unavailable.");await new Promise((c,r)=>{Office.context.document.goToByIdAsync(f,Office.GoToType.Index,{selectionMode:Office.SelectionMode.None},d=>{var y;d.status===Office.AsyncResultStatus.Succeeded?c():r(new Error(((y=d.error)==null?void 0:y.message)||"Failed to select slide."))})})}async function iv(f,u){var s,c;if(!((c=(s=globalThis.Office)==null?void 0:s.context)!=null&&c.document))throw new Error("Office.context.document is unavailable.");await new Promise((r,d)=>{Office.context.document.setSelectedDataAsync(f,u,y=>{var v;y.status===Office.AsyncResultStatus.Succeeded?r():d(new Error(((v=y.error)==null?void 0:v.message)||"Failed to insert image."))})})}function uv(f){const u=";base64,",s=f.indexOf(u);return s===-1?f:f.slice(s+u.length)}function sv(){var f,u,s,c;return{host:(u=(f=globalThis.Office)==null?void 0:f.context)==null?void 0:u.host,platform:(c=(s=globalThis.Office)==null?void 0:s.context)==null?void 0:c.platform}}function cv(){var u,s;const f=(s=(u=globalThis.Office)==null?void 0:u.context)==null?void 0:s.requirements;return{powerpointApi:{"1.1":!!(f!=null&&f.isSetSupported("PowerPointApi","1.1")),"1.3":!!(f!=null&&f.isSetSupported("PowerPointApi","1.3")),"1.4":!!(f!=null&&f.isSetSupported("PowerPointApi","1.4")),"1.6":!!(f!=null&&f.isSetSupported("PowerPointApi","1.6"))},imageCoercion:{"1.1":!!(f!=null&&f.isSetSupported("ImageCoercion","1.1"))}}}function Nf(f){return f.presentation.slides}async function ui(f,u){return Nf(f).getItemAt(nv(u))}async function Em(f,u){const s=await ui(f,u.slideIndex??1);if(u.shapeId)return s.shapes.getItem(u.shapeId);const c=u.shapeName;if(!c)throw new Error("shapeId or shapeName is required.");const r=s.shapes;r.load("items/id,items/name"),await f.sync();const d=r.items.find(y=>y.name===c);if(!d)throw new Error(`Shape not found: ${c}`);return r.getItem(d.id)}var ci;class fv{constructor(u={}){df(this,ci);this.host="PowerPoint",mf(this,ci,u.maxSnapshotShapes??lv)}supports(u){return ev(u)}async execute(u,s){switch(u){case"office_powerpoint_snapshot":return this.snapshot(s);case"office_powerpoint_select_slide":return this.selectSlide(s);case"office_powerpoint_add_slide":return this.addSlide(s);case"office_powerpoint_delete_slide":return this.deleteSlide(s);case"office_powerpoint_add_text_box":return this.addTextBox(s);case"office_powerpoint_add_shape":return this.addShape(s);case"office_powerpoint_update_shape":return this.updateShape(s);case"office_powerpoint_delete_shape":return this.deleteShape(s);case"office_powerpoint_insert_image":return this.insertImage(s)}}async snapshot(u){var y;const s=await aa(),c=(y=s[0])==null?void 0:y.index,r=Nu(u,c),d=Ju(u.maxShapes)??Cu(this,ci);return PowerPoint.run(async v=>{const E=Nf(v);E.load("items/id");const S=await ui(v,r);S.load("id"),S.shapes.load("items"),await v.sync();const N=S.shapes.items.slice(0,d);return N.forEach(Bu),await v.sync(),{host:sv(),requirements:cv(),slideCount:E.items.length,selectedSlides:s,slide:{index:r,id:S.id,shapeCount:S.shapes.items.length,shapes:N.map(Hu),truncated:S.shapes.items.length>N.length}}})}async selectSlide(u){const s=gm(u.slideIndex,"slideIndex");return await bm(s),{slideIndex:s}}async addSlide(u){const s=$e(u.slideMasterId),c=$e(u.layoutId),r={...s?{slideMasterId:s}:{},...c?{layoutId:c}:{}};return PowerPoint.run(async d=>{const y=Nf(d);return Object.keys(r).length?y.add(r):y.add(),y.load("items/id"),await d.sync(),{slideIndex:y.items.length,slideCount:y.items.length}})}async deleteSlide(u){pm(u.confirm,"Deleting a slide");const s=gm(u.slideIndex,"slideIndex");return PowerPoint.run(async c=>((await ui(c,s)).delete(),await c.sync(),{slideIndex:s,deleted:!0}))}async addTextBox(u){var v;const s=await aa(),c=Nu(u,(v=s[0])==null?void 0:v.index),r=ym(u.text,"text"),d=_f(u),y=Af(u);return PowerPoint.run(async E=>{const N=(await ui(E,c)).shapes.addTextBox(r,Sm(d));return Mf(N,y),Bu(N),await E.sync(),{slideIndex:c,shape:Hu(N)}})}async addShape(u){var v;const s=await aa(),c=Nu(u,(v=s[0])==null?void 0:v.index),r=$e(u.shapeType)??"Rectangle",d=_f(u),y=Af(u);return PowerPoint.run(async E=>{const N=(await ui(E,c)).shapes.addGeometricShape(r,Sm(d));return Mf(N,y),Bu(N),await E.sync(),{slideIndex:c,shape:Hu(N)}})}async updateShape(u){var y;const s=vm(u),c=await aa();s.slideIndex=s.slideIndex??((y=c[0])==null?void 0:y.index)??1;const r=_f(u),d=Af(u);return PowerPoint.run(async v=>{const E=await Em(v,s);return av(E,r),Mf(E,d),Bu(E),await v.sync(),{slideIndex:s.slideIndex,shape:Hu(E)}})}async deleteShape(u){var r;pm(u.confirm,"Deleting a shape");const s=vm(u),c=await aa();return s.slideIndex=s.slideIndex??((r=c[0])==null?void 0:r.index)??1,PowerPoint.run(async d=>((await Em(d,s)).delete(),await d.sync(),{slideIndex:s.slideIndex,shapeId:s.shapeId,shapeName:s.shapeName,deleted:!0}))}async insertImage(u){var y;const s=await aa(),c=Nu(u,(y=s[0])==null?void 0:y.index),r=uv(ym(u.base64??u.dataUrl,"base64"));await bm(c);const d={coercionType:Office.CoercionType.Image,...je(u.left)!==void 0?{imageLeft:Uu(u.left,"left")}:{},...je(u.top)!==void 0?{imageTop:Uu(u.top,"top")}:{},...je(u.width)!==void 0?{imageWidth:Uu(u.width,"width")}:{},...je(u.height)!==void 0?{imageHeight:Uu(u.height,"height")}:{}};return await iv(r,d),{slideIndex:c,inserted:!0,width:je(u.width),height:je(u.height)}}}ci=new WeakMap;function Pm(f={}){return new fv(f)}var ia;class ov{constructor(u){df(this,ia);mf(this,ia,u)}supports(u){return Cu(this,ia).some(s=>s.supports(u))}async execute(u,s){const c=Cu(this,ia).find(r=>r.supports(u));if(!c)throw new Error(`Unknown Office tool: ${u}`);return c.execute(u,s)}}ia=new WeakMap;function rv(f){return new ov(f)}function hv(f){return typeof f=="object"&&f!==null&&!Array.isArray(f)?f:{}}function Of(f,u,s){return{tool_call_id:f.tool_call_id??f.id,name:f.name,status:u,content:JSON.stringify(s)}}function dv(f){return f instanceof Error?f.message:String(f)}function mv(f={}){const u=f.registry??rv([f.adapter??Pm()]);return async s=>{if(!u.supports(s.name))return Of(s,"error",{ok:!1,error:`Unknown Office tool: ${s.name}`});try{const c=await u.execute(s.name,hv(s.params));return Of(s,"success",{ok:!0,result:c})}catch(c){return Of(s,"error",{ok:!1,error:dv(c)})}}}const yv="/api/create-session";async function ty(f){const u=await fetch(yv,{method:"POST",headers:{"Content-Type":"application/json"},credentials:"include",body:JSON.stringify(f?{currentClientSecret:f}:{})}),s=await u.json().catch(()=>({}));if(!u.ok)throw new Error(s.error||`HTTP ${u.status}`);if(!s.client_secret||!s.apiUrl||!s.frameUrl||!s.xpertId)throw new Error("ChatKit session response is missing required fields.");return s}async function gv(){var u;if(!((u=globalThis.Office)!=null&&u.onReady))return{isOfficeHost:!1};const f=await Office.onReady();return{host:f.host,platform:f.platform,isOfficeHost:!0}}function ey(f){return f instanceof Error?f.message:String(f)}function pv(){return navigator.language.toLowerCase().startsWith("zh")?"zh-Hans":"en"}function vv({initialSession:f}){const[u,s]=Bt.useState(f),[c,r]=Bt.useState(null),d=Bt.useMemo(()=>mv({adapter:Pm()}),[]),y=Bt.useMemo(()=>({frameUrl:u.frameUrl,locale:pv(),api:{apiUrl:u.apiUrl,xpertId:u.xpertId,getClientSecret:async E=>{const S=E?await ty(E):u;return s(S),S.organizationId?{secret:S.client_secret,organizationId:S.organizationId}:S.client_secret}},theme:{colorScheme:"light",radius:"round",density:"compact",typography:{baseSize:14,fontFamily:'system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif'},color:{accent:{primary:"#0f766e",level:1}}},composer:{placeholder:"Ask XpertAI to edit this presentation...",attachments:{enabled:!0}},startScreen:{greeting:"PowerPoint Copilot is ready.",prompts:[{icon:"sparkle",label:"Draft an outline",prompt:"Create a 5-slide outline for this presentation."},{icon:"square-text",label:"Add a slide",prompt:"Add a concise summary slide after the current slide."}]},header:{enabled:!0,title:{enabled:!0,text:"XpertAI PowerPoint Copilot"}},onClientTool:async E=>{r(null);const S=await d(E);return S.status==="error"&&r(typeof S.content=="string"?S.content:"Office tool failed."),S},onError:E=>{r(ey(E))}}),[d,u]),v=Gp(y);return te.jsxs("main",{className:"taskpane",children:[c?te.jsx("div",{className:"status-banner error",children:c}):null,te.jsx(I0,{control:v.control,className:"chatkit-shell"})]})}function Sv(){const[f,u]=Bt.useState(null),[s,c]=Bt.useState(null),[r,d]=Bt.useState(null);return Bt.useEffect(()=>{let y=!1;async function v(){try{const[E,S]=await Promise.all([gv(),ty()]);y||(u(E),c(S))}catch(E){y||d(ey(E))}}return v(),()=>{y=!0}},[]),r?te.jsx("main",{className:"taskpane centered",children:te.jsxs("div",{className:"status-card",children:[te.jsx("h1",{children:"XpertAI PowerPoint Copilot"}),te.jsx("p",{children:r})]})}):!f||!s?te.jsx("main",{className:"taskpane centered",children:te.jsxs("div",{className:"status-card",children:[te.jsx("h1",{children:"XpertAI PowerPoint Copilot"}),te.jsx("p",{children:"Connecting..."})]})}):te.jsx(vv,{initialSession:s})}const ly=document.getElementById("root");if(!ly)throw new Error("Missing #root element.");Yp.createRoot(ly).render(te.jsx(Bt.StrictMode,{children:te.jsx(Sv,{})}));
|
|
199
|
+
`;const s=document.createElement("iframe");s.className="ck-iframe",s.name="chatkit",s.role="presentation",s.tabIndex=0,s.setAttribute("allowtransparency","true"),s.setAttribute("frameborder","0"),s.setAttribute("scrolling","no"),s.setAttribute("allow","clipboard-read; clipboard-write"),kt(this,pl,s);const c=document.createElement("div");c.className="ck-wrapper",c.appendChild(s),kt(this,vl,c);const r=document.createElement("button");r.className="ck-launcher-close",r.type="button",r.setAttribute("aria-label","Close chat"),r.addEventListener("click",z(this,qu)),c.appendChild(r),kt(this,Lu,r),kt(this,yn,new y0(c,()=>{var d,y;return((y=(d=z(this,at))==null?void 0:d.header)==null?void 0:y.windowDrag)===!0})),z(this,ft).on("window_drag_regions",d=>{var y;return(y=z(this,yn))==null?void 0:y.update(d)}),z(this,We).append(u),z(this,ft).on("left_header_icon_click",()=>{var d,y,v;(v=(y=(d=z(this,at))==null?void 0:d.header)==null?void 0:y.leftAction)==null||v.onClick()}),z(this,ft).on("right_header_icon_click",()=>{var d,y,v;(v=(y=(d=z(this,at))==null?void 0:d.header)==null?void 0:y.rightAction)==null||v.onClick()}),z(this,ft).on("public_event",([d,y])=>{if(d==="log"){const v=X0(y);v&&z(this,He).setThreadSummary(v.summary)}else d==="response.start"?z(this,He).setThreadSummaryStatus("running"):d==="response.end"?z(this,He).setThreadSummaryStatus("completed"):d==="response.stop"&&z(this,He).setThreadSummaryStatus("completed");if(this.capabilities.events.has(d)){if(d==="error"&&"error"in y){const v=o0(y.error);if(this.dispatchEvent(new CustomEvent("chatkit.error",{detail:{error:v}})),v instanceof Ft)throw v;return}this.dispatchEvent(new CustomEvent(`chatkit.${d}`,{detail:y}))}}),z(this,ft).on("pet_state_change",d=>{const y=L0(d);y&&z(this,He).setState(y.state)}),z(this,ft).on("pet_options_change",d=>{const y=Y0(d);y&&((!z(this,gn)||y.pet===null)&&kt(this,gn,!1),kt(this,sa,y.pet),G(this,j,Rf).call(this))}),z(this,ft).on("chat_minimize_change",d=>{const y=typeof d=="object"&&d!==null&&"minimized"in d&&d.minimized===!0;y&&!G(this,j,Ku).call(this)||(G(this,j,oi).call(this,y),y&&G(this,j,Jl).call(this,!1))}),z(this,ft).on("unmount",()=>{var d;(d=z(this,yn))==null||d.destroy(),z(this,vl)&&z(this,We).contains(z(this,vl))&&(z(this,We).removeChild(z(this,vl)),kt(this,vl,void 0),kt(this,pl,void 0))}),z(this,ft).on("capabilities_profile_change",({profile:d})=>{this.setProfile(d)}),s.addEventListener("load",z(this,ju),{once:!0});try{G(this,j,Uf).call(this)}catch(d){console.error(d),G(this,j,Zl).call(this,d instanceof Error?d:new Ft("Failed to initialize ChatKit"))}}disconnectedCallback(){var u,s,c;(u=z(this,yn))==null||u.destroy(),(s=z(this,pl))==null||s.removeEventListener("load",z(this,ju)),(c=z(this,Lu))==null||c.removeEventListener("click",z(this,qu)),z(this,ft).disconnect(),z(this,He).destroy()}applySanitizedOptions(u){var s,c;kt(this,at,u),(s=u.header)!=null&&s.windowDrag||(c=z(this,yn))==null||c.clear(),kt(this,gn,!1),z(this,He).setLocale(u.locale),G(this,j,Rf).call(this),z(this,ca)?(G(this,j,Yf).call(this,z(this,at)),z(this,Xt).then(()=>{z(this,ft).commands.setOptions(Im(G(this,j,qf).call(this,u)))})):G(this,j,Uf).call(this)}setOptions(u){try{const s=this.sanitizeOptions(u);G(this,j,Fm).call(this,s),this.applySanitizedOptions(s)}catch(s){G(this,j,Zl).call(this,s instanceof Error?s:new Ft("Failed to parse options"))}}async focusComposer(){var u,s;await z(this,Xt),(u=z(this,pl))==null||u.focus(),await((s=z(this,ft))==null?void 0:s.commands.focusComposer())}async fetchUpdates(){var u;await z(this,Xt),await((u=z(this,ft))==null?void 0:u.commands.fetchUpdates())}async sendUserMessage(u){var s;await z(this,Xt),await((s=z(this,ft))==null?void 0:s.commands.sendUserMessage(u))}async setComposerValue(u){var s;await z(this,Xt),await((s=z(this,ft))==null?void 0:s.commands.setComposerValue(u))}async setRuntimeCapabilities(u){var s;await z(this,Xt),await((s=z(this,ft))==null?void 0:s.commands.setRuntimeCapabilities(u))}async setThreadId(u){var s;await z(this,Xt),await((s=z(this,ft))==null?void 0:s.commands.setThreadId({threadId:u}))}async focusMessage(u){return await z(this,Xt),z(this,ft)?z(this,ft).commands.focusMessage(u):{success:!1,code:"not_ready"}}async shareThread(){var u;return await z(this,Xt),(u=z(this,ft))==null?void 0:u.commands.shareThread()}async sendCustomAction(u,s){var c;return await z(this,Xt),(c=z(this,ft))==null?void 0:c.commands.sendCustomAction({action:u,itemId:s})}async showHistory(){var u;return await z(this,Xt),(u=z(this,ft))==null?void 0:u.commands.showHistory()}async hideHistory(){var u;return await z(this,Xt),(u=z(this,ft))==null?void 0:u.commands.hideHistory()}async setTrainingOptOut(u){var s;return await z(this,Xt),(s=z(this,ft))==null?void 0:s.commands.setTrainingOptOut({value:u})}}ee=K0(wf);at=new WeakMap;Kl=new WeakMap;pl=new WeakMap;vl=new WeakMap;yn=new WeakMap;Lu=new WeakMap;Lf=new WeakMap;Zu=new WeakMap;sa=new WeakMap;gn=new WeakMap;We=new WeakMap;He=new WeakMap;Yu=new WeakMap;Xt=new WeakMap;si=new WeakMap;ft=new WeakMap;j=new WeakSet;Zl=function(f){throw this.dispatchEvent(new CustomEvent("chatkit.error",{detail:{error:f}})),f};Yf=function(f){var u;this.dataset.colorScheme=typeof f.theme=="string"?f.theme:((u=f.theme)==null?void 0:u.colorScheme)??"light",this.dataset.displayMode=G(this,j,Fe).call(this,f),G(this,j,Fe).call(this,f)!=="pet"&&G(this,j,Jl).call(this,!1)};Fe=function(f=z(this,at)){return(f==null?void 0:f.displayMode)==="pet"?"pet":"chat"};Vu=function(f=z(this,at)){return f?G(this,j,Fe).call(this,f)==="pet"&&!fi(f.pet??null)?!0:f.pet??null:null};Gm=function(f){if(!f)return f;const u=fi(G(this,j,Vu).call(this)??null);return u?f===!0?{position:u.position}:f.position?{...f,position:{...u.position,...f.position,boundsPadding:f.position.boundsPadding??u.position.boundsPadding,pin:"pin"in f.position?f.position.pin:u.position.pin}}:{...f,position:u.position}:f};Ku=function(){var u;if(z(this,gn)||((u=z(this,at))==null?void 0:u.pet)===!1&&G(this,j,Fe).call(this)!=="pet")return null;let f;return z(this,sa)!==void 0?f=G(this,j,Gm).call(this,z(this,sa)):f=G(this,j,Vu).call(this),G(this,j,Fe).call(this)==="pet"&&!fi(f??null)&&(f=!0),G(this,j,Zm).call(this,f)};Qm=function(f){try{const u=new URL(z(this,Kl)??window.location.href,window.location.origin);return new URL(f,u).toString()}catch{return f}};Zm=function(f){const u=fi(f??null);return u?{character:{...u.character,src:G(this,j,Qm).call(this,u.character.src)},position:u.position,behavior:u.behavior,ariaLabel:u.ariaLabel,imageRendering:u.imageRendering}:null};qf=function(f){const u=G(this,j,Vu).call(this,f);if(u===(f.pet??null))return f;const s={...f};return u===null?delete s.pet:s.pet=u,s};Jl=function(f){kt(this,Lf,f),f?this.dataset.chatOpen="true":delete this.dataset.chatOpen};oi=function(f){const u=f&&!!G(this,j,Ku).call(this);kt(this,Zu,u),u?this.dataset.chatMinimizedToPet="true":delete this.dataset.chatMinimizedToPet};Rf=function(){var u;const f=G(this,j,Ku).call(this);z(this,He).setOptions(f,(u=z(this,at))==null?void 0:u.theme),f||G(this,j,oi).call(this,!1)};Vm=function(){if(z(this,Zu)){G(this,j,oi).call(this,!1),G(this,j,Fe).call(this)==="pet"&&G(this,j,Jl).call(this,!0),z(this,Xt).then(()=>this.focusComposer()).catch(()=>{});return}G(this,j,Fe).call(this)==="pet"&&(G(this,j,Jl).call(this,!0),z(this,Xt).then(()=>this.focusComposer()).catch(()=>{}))};Km=function(){kt(this,gn,!0),kt(this,sa,null),G(this,j,oi).call(this,!1),G(this,j,Jl).call(this,!1),z(this,He).setOptions(null),G(this,j,Fe).call(this)!=="pet"&&z(this,Xt).then(()=>z(this,ft).commands.setPetEnabled({enabled:!1})).catch(()=>{})};Jm=async function(f){await this.sendUserMessage({text:f})};km=async function(f){G(this,j,Fe).call(this)==="pet"&&G(this,j,Jl).call(this,!0),await this.setThreadId(f),await this.focusComposer()};qu=new WeakMap;Wm=function(){if(!z(this,Kl))throw new Ft("ChatKit frameUrl is not configured. Provide it via setOptions({ frameUrl }) before mounting.");return z(this,Kl)};$m=function(f){if(z(this,ca)&&z(this,Kl)&&z(this,Kl)!==f)throw new Ft("ChatKit frameUrl cannot be changed after initialization. Create a new element to use a different URL.");kt(this,Kl,f)};Fm=function(f){if(!("frameUrl"in f))return;const u=f.frameUrl;if(delete f.frameUrl,u!=null){if(typeof u!="string"||u.trim()==="")throw new Ft("ChatKit frameUrl must be a non-empty string.");G(this,j,$m).call(this,u)}};ju=new WeakMap;ca=new WeakMap;Uf=function(){if(z(this,ca)||!z(this,pl)||!z(this,at))return;kt(this,ca,!0),G(this,j,Yf).call(this,z(this,at));const f=new URL(G(this,j,Wm).call(this),window.location.origin);z(this,ft).setTargetOrigin(f.origin),f.hash=f0({options:Im(G(this,j,qf).call(this,z(this,at))),referrer:window.location.origin,profile:this.profile,...z(this,si)?{channelId:z(this,si)}:{}}),z(this,ft).connect(),z(this,pl).src=f.toString(),z(this,vl)&&z(this,We).append(z(this,vl))};Be(ee,1,"focusComposer",Xm,he);Be(ee,1,"fetchUpdates",jm,he);Be(ee,1,"sendUserMessage",qm,he);Be(ee,1,"setComposerValue",Ym,he);Be(ee,1,"setRuntimeCapabilities",Lm,he);Be(ee,1,"setThreadId",Bm,he);Be(ee,1,"focusMessage",Hm,he);Be(ee,1,"shareThread",Nm,he);Be(ee,1,"sendCustomAction",Um,he);Be(ee,1,"showHistory",Rm,he);Be(ee,1,"hideHistory",wm,he);Be(ee,1,"setTrainingOptOut",Dm,he);k0(ee,he);class $0 extends he{constructor(){super({profile:"chatkit"})}sanitizeOptions(u){var s;return(s=u.threadItemActions)==null||delete s.share,u}}function F0(f="xpertai-chatkit"){"customElements"in globalThis&&(customElements.get(f)||customElements.define(f,$0))}F0();const Pm={"chatkit.error":"onError","chatkit.response.end":"onResponseEnd","chatkit.response.start":"onResponseStart","chatkit.log":"onLog","chatkit.thread.change":"onThreadChange","chatkit.project.change":"onProjectChange","chatkit.connectors.change":"onConnectorsChange","chatkit.thread.load.start":"onThreadLoadStart","chatkit.thread.load.end":"onThreadLoadEnd","chatkit.ready":"onReady","chatkit.effect":"onEffect"},I0=Object.keys(Pm),P0=Bt.forwardRef(function({control:u,...s},c){const r=Bt.useRef(null);return Bt.useLayoutEffect(()=>{const d=r.current;if(!d)return;if(customElements.get("xpertai-chatkit")){d.setOptions(u.options);return}let y=!0;return customElements.whenDefined("xpertai-chatkit").then(()=>{y&&d.setOptions(u.options)}),()=>{y=!1}},[u.options]),Bt.useEffect(()=>{const d=r.current;if(!d)return;const y=new AbortController;for(const v of I0)d.addEventListener(v,E=>{const S=Pm[v],N=u.handlers[S];typeof N=="function"&&N(E.detail)},{signal:y.signal});return()=>{y.abort()}},[u.handlers]),te.jsx("xpertai-chatkit",{ref:d=>{r.current=d,u.setInstance(d),typeof c=="function"?c(d):c&&(c.current=d),r.current},...s})}),tv=["office_powerpoint_snapshot","office_powerpoint_select_slide","office_powerpoint_add_slide","office_powerpoint_delete_slide","office_powerpoint_add_text_box","office_powerpoint_add_shape","office_powerpoint_update_shape","office_powerpoint_delete_shape","office_powerpoint_insert_image"],ev=new Set(tv);function lv(f){return ev.has(f)}const nv=80;function $e(f){return typeof f=="string"&&f.trim()?f.trim():void 0}function ym(f,u){const s=$e(f);if(!s)throw new Error(`${u} must be a non-empty string.`);return s}function Xe(f){return typeof f=="number"&&Number.isFinite(f)?f:void 0}function Uu(f,u){const s=Xe(f);if(s===void 0)throw new Error(`${u} must be a finite number.`);return s}function Ju(f){if(!(typeof f!="number"||!Number.isInteger(f)||f<=0))return f}function gm(f,u){const s=Ju(f);if(s===void 0)throw new Error(`${u} must be a positive integer.`);return s}function pm(f,u){if(f!==!0)throw new Error(`${u} requires confirm: true.`)}function av(f){return f-1}function Nu(f,u){return Ju(f.slideIndex)??u??1}function _f(f){return{left:Xe(f.left),top:Xe(f.top),width:Xe(f.width),height:Xe(f.height)}}function Af(f){return{fillColor:$e(f.fillColor),lineColor:$e(f.lineColor),text:$e(f.text),name:$e(f.name)}}function vm(f){return{slideIndex:Ju(f.slideIndex),shapeId:$e(f.shapeId),shapeName:$e(f.shapeName)}}function Sm(f){return Object.fromEntries(Object.entries(f).filter(u=>u[1]!==void 0))}function iv(f,u){u.left!==void 0&&(f.left=u.left),u.top!==void 0&&(f.top=u.top),u.width!==void 0&&(f.width=u.width),u.height!==void 0&&(f.height=u.height)}function Mf(f,u){var c,r;const s=f;u.name&&(f.name=u.name),u.fillColor&&((r=(c=s.fill)==null?void 0:c.setSolidColor)==null||r.call(c,u.fillColor)),u.lineColor&&s.lineFormat&&(s.lineFormat.color=u.lineColor),u.text!==void 0&&(f.textFrame.textRange.text=u.text)}function Hu(f){return{id:f.id,name:f.name,type:f.type,left:f.left,top:f.top,width:f.width,height:f.height}}function Bu(f){f.load("id,name,type,left,top,width,height")}async function aa(){var f,u;return(u=(f=globalThis.Office)==null?void 0:f.context)!=null&&u.document?new Promise(s=>{Office.context.document.getSelectedDataAsync(Office.CoercionType.SlideRange,c=>{if(c.status!==Office.AsyncResultStatus.Succeeded){s([]);return}const r=c.value;s(Array.isArray(r.slides)?r.slides:[])})}):[]}async function bm(f){var u,s;if(!((s=(u=globalThis.Office)==null?void 0:u.context)!=null&&s.document))throw new Error("Office.context.document is unavailable.");await new Promise((c,r)=>{Office.context.document.goToByIdAsync(f,Office.GoToType.Index,{selectionMode:Office.SelectionMode.None},d=>{var y;d.status===Office.AsyncResultStatus.Succeeded?c():r(new Error(((y=d.error)==null?void 0:y.message)||"Failed to select slide."))})})}async function uv(f,u){var s,c;if(!((c=(s=globalThis.Office)==null?void 0:s.context)!=null&&c.document))throw new Error("Office.context.document is unavailable.");await new Promise((r,d)=>{Office.context.document.setSelectedDataAsync(f,u,y=>{var v;y.status===Office.AsyncResultStatus.Succeeded?r():d(new Error(((v=y.error)==null?void 0:v.message)||"Failed to insert image."))})})}function sv(f){const u=";base64,",s=f.indexOf(u);return s===-1?f:f.slice(s+u.length)}function cv(){var f,u,s,c;return{host:(u=(f=globalThis.Office)==null?void 0:f.context)==null?void 0:u.host,platform:(c=(s=globalThis.Office)==null?void 0:s.context)==null?void 0:c.platform}}function fv(){var u,s;const f=(s=(u=globalThis.Office)==null?void 0:u.context)==null?void 0:s.requirements;return{powerpointApi:{"1.1":!!(f!=null&&f.isSetSupported("PowerPointApi","1.1")),"1.3":!!(f!=null&&f.isSetSupported("PowerPointApi","1.3")),"1.4":!!(f!=null&&f.isSetSupported("PowerPointApi","1.4")),"1.6":!!(f!=null&&f.isSetSupported("PowerPointApi","1.6"))},imageCoercion:{"1.1":!!(f!=null&&f.isSetSupported("ImageCoercion","1.1"))}}}function Nf(f){return f.presentation.slides}async function ui(f,u){return Nf(f).getItemAt(av(u))}async function Em(f,u){const s=await ui(f,u.slideIndex??1);if(u.shapeId)return s.shapes.getItem(u.shapeId);const c=u.shapeName;if(!c)throw new Error("shapeId or shapeName is required.");const r=s.shapes;r.load("items/id,items/name"),await f.sync();const d=r.items.find(y=>y.name===c);if(!d)throw new Error(`Shape not found: ${c}`);return r.getItem(d.id)}var ci;class ov{constructor(u={}){df(this,ci);this.host="PowerPoint",mf(this,ci,u.maxSnapshotShapes??nv)}supports(u){return lv(u)}async execute(u,s){switch(u){case"office_powerpoint_snapshot":return this.snapshot(s);case"office_powerpoint_select_slide":return this.selectSlide(s);case"office_powerpoint_add_slide":return this.addSlide(s);case"office_powerpoint_delete_slide":return this.deleteSlide(s);case"office_powerpoint_add_text_box":return this.addTextBox(s);case"office_powerpoint_add_shape":return this.addShape(s);case"office_powerpoint_update_shape":return this.updateShape(s);case"office_powerpoint_delete_shape":return this.deleteShape(s);case"office_powerpoint_insert_image":return this.insertImage(s)}}async snapshot(u){var y;const s=await aa(),c=(y=s[0])==null?void 0:y.index,r=Nu(u,c),d=Ju(u.maxShapes)??Cu(this,ci);return PowerPoint.run(async v=>{const E=Nf(v);E.load("items/id");const S=await ui(v,r);S.load("id"),S.shapes.load("items"),await v.sync();const N=S.shapes.items.slice(0,d);return N.forEach(Bu),await v.sync(),{host:cv(),requirements:fv(),slideCount:E.items.length,selectedSlides:s,slide:{index:r,id:S.id,shapeCount:S.shapes.items.length,shapes:N.map(Hu),truncated:S.shapes.items.length>N.length}}})}async selectSlide(u){const s=gm(u.slideIndex,"slideIndex");return await bm(s),{slideIndex:s}}async addSlide(u){const s=$e(u.slideMasterId),c=$e(u.layoutId),r={...s?{slideMasterId:s}:{},...c?{layoutId:c}:{}};return PowerPoint.run(async d=>{const y=Nf(d);return Object.keys(r).length?y.add(r):y.add(),y.load("items/id"),await d.sync(),{slideIndex:y.items.length,slideCount:y.items.length}})}async deleteSlide(u){pm(u.confirm,"Deleting a slide");const s=gm(u.slideIndex,"slideIndex");return PowerPoint.run(async c=>((await ui(c,s)).delete(),await c.sync(),{slideIndex:s,deleted:!0}))}async addTextBox(u){var v;const s=await aa(),c=Nu(u,(v=s[0])==null?void 0:v.index),r=ym(u.text,"text"),d=_f(u),y=Af(u);return PowerPoint.run(async E=>{const N=(await ui(E,c)).shapes.addTextBox(r,Sm(d));return Mf(N,y),Bu(N),await E.sync(),{slideIndex:c,shape:Hu(N)}})}async addShape(u){var v;const s=await aa(),c=Nu(u,(v=s[0])==null?void 0:v.index),r=$e(u.shapeType)??"Rectangle",d=_f(u),y=Af(u);return PowerPoint.run(async E=>{const N=(await ui(E,c)).shapes.addGeometricShape(r,Sm(d));return Mf(N,y),Bu(N),await E.sync(),{slideIndex:c,shape:Hu(N)}})}async updateShape(u){var y;const s=vm(u),c=await aa();s.slideIndex=s.slideIndex??((y=c[0])==null?void 0:y.index)??1;const r=_f(u),d=Af(u);return PowerPoint.run(async v=>{const E=await Em(v,s);return iv(E,r),Mf(E,d),Bu(E),await v.sync(),{slideIndex:s.slideIndex,shape:Hu(E)}})}async deleteShape(u){var r;pm(u.confirm,"Deleting a shape");const s=vm(u),c=await aa();return s.slideIndex=s.slideIndex??((r=c[0])==null?void 0:r.index)??1,PowerPoint.run(async d=>((await Em(d,s)).delete(),await d.sync(),{slideIndex:s.slideIndex,shapeId:s.shapeId,shapeName:s.shapeName,deleted:!0}))}async insertImage(u){var y;const s=await aa(),c=Nu(u,(y=s[0])==null?void 0:y.index),r=sv(ym(u.base64??u.dataUrl,"base64"));await bm(c);const d={coercionType:Office.CoercionType.Image,...Xe(u.left)!==void 0?{imageLeft:Uu(u.left,"left")}:{},...Xe(u.top)!==void 0?{imageTop:Uu(u.top,"top")}:{},...Xe(u.width)!==void 0?{imageWidth:Uu(u.width,"width")}:{},...Xe(u.height)!==void 0?{imageHeight:Uu(u.height,"height")}:{}};return await uv(r,d),{slideIndex:c,inserted:!0,width:Xe(u.width),height:Xe(u.height)}}}ci=new WeakMap;function ty(f={}){return new ov(f)}var ia;class rv{constructor(u){df(this,ia);mf(this,ia,u)}supports(u){return Cu(this,ia).some(s=>s.supports(u))}async execute(u,s){const c=Cu(this,ia).find(r=>r.supports(u));if(!c)throw new Error(`Unknown Office tool: ${u}`);return c.execute(u,s)}}ia=new WeakMap;function hv(f){return new rv(f)}function dv(f){return typeof f=="object"&&f!==null&&!Array.isArray(f)?f:{}}function Of(f,u,s){return{tool_call_id:f.tool_call_id??f.id,name:f.name,status:u,content:JSON.stringify(s)}}function mv(f){return f instanceof Error?f.message:String(f)}function yv(f={}){const u=f.registry??hv([f.adapter??ty()]);return async s=>{if(!u.supports(s.name))return Of(s,"error",{ok:!1,error:`Unknown Office tool: ${s.name}`});try{const c=await u.execute(s.name,dv(s.params));return Of(s,"success",{ok:!0,result:c})}catch(c){return Of(s,"error",{ok:!1,error:mv(c)})}}}const gv="/api/create-session";async function ey(f){const u=await fetch(gv,{method:"POST",headers:{"Content-Type":"application/json"},credentials:"include",body:JSON.stringify(f?{currentClientSecret:f}:{})}),s=await u.json().catch(()=>({}));if(!u.ok)throw new Error(s.error||`HTTP ${u.status}`);if(!s.client_secret||!s.apiUrl||!s.frameUrl||!s.xpertId)throw new Error("ChatKit session response is missing required fields.");return s}async function pv(){var u;if(!((u=globalThis.Office)!=null&&u.onReady))return{isOfficeHost:!1};const f=await Office.onReady();return{host:f.host,platform:f.platform,isOfficeHost:!0}}function ly(f){return f instanceof Error?f.message:String(f)}function vv(){return navigator.language.toLowerCase().startsWith("zh")?"zh-Hans":"en"}function Sv({initialSession:f}){const[u,s]=Bt.useState(f),[c,r]=Bt.useState(null),d=Bt.useMemo(()=>yv({adapter:ty()}),[]),y=Bt.useMemo(()=>({frameUrl:u.frameUrl,locale:vv(),api:{apiUrl:u.apiUrl,xpertId:u.xpertId,getClientSecret:async E=>{const S=E?await ey(E):u;return s(S),S.organizationId?{secret:S.client_secret,organizationId:S.organizationId}:S.client_secret}},theme:{colorScheme:"light",radius:"round",density:"compact",typography:{baseSize:14,fontFamily:'system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif'},color:{accent:{primary:"#0f766e",level:1}}},composer:{placeholder:"Ask XpertAI to edit this presentation...",attachments:{enabled:!0}},startScreen:{greeting:"PowerPoint Copilot is ready.",prompts:[{icon:"sparkle",label:"Draft an outline",prompt:"Create a 5-slide outline for this presentation."},{icon:"square-text",label:"Add a slide",prompt:"Add a concise summary slide after the current slide."}]},header:{enabled:!0,title:{enabled:!0,text:"XpertAI PowerPoint Copilot"}},onClientTool:async E=>{r(null);const S=await d(E);return S.status==="error"&&r(typeof S.content=="string"?S.content:"Office tool failed."),S},onError:E=>{r(ly(E))}}),[d,u]),v=Qp(y);return te.jsxs("main",{className:"taskpane",children:[c?te.jsx("div",{className:"status-banner error",children:c}):null,te.jsx(P0,{control:v.control,className:"chatkit-shell"})]})}function bv(){const[f,u]=Bt.useState(null),[s,c]=Bt.useState(null),[r,d]=Bt.useState(null);return Bt.useEffect(()=>{let y=!1;async function v(){try{const[E,S]=await Promise.all([pv(),ey()]);y||(u(E),c(S))}catch(E){y||d(ly(E))}}return v(),()=>{y=!0}},[]),r?te.jsx("main",{className:"taskpane centered",children:te.jsxs("div",{className:"status-card",children:[te.jsx("h1",{children:"XpertAI PowerPoint Copilot"}),te.jsx("p",{children:r})]})}):!f||!s?te.jsx("main",{className:"taskpane centered",children:te.jsxs("div",{className:"status-card",children:[te.jsx("h1",{children:"XpertAI PowerPoint Copilot"}),te.jsx("p",{children:"Connecting..."})]})}):te.jsx(Sv,{initialSession:s})}const ny=document.getElementById("root");if(!ny)throw new Error("Missing #root element.");qp.createRoot(ny).render(te.jsx(Bt.StrictMode,{children:te.jsx(bv,{})}));
|