import{C as ir,j as H,_ as Hu,r as Mr,a as cr,b as fr,c as sr,d as or,e as dr,P as nl,f as sf,I as vt,w as ch,L as fh}from"./v_7_4_2_9_8cb79d4f-81e0-49c1-b597-7f2344477fbf10.js";import{g as sh}from"./v_7_4_2_9_8cb79d4f-81e0-49c1-b597-7f2344477fbf.js";import{r as oh,a as I}from"./v_7_4_2_9_8cb79d4f-81e0-49c1-b597-7f2344477fbf4.js";import{a as dh}from"./v_7_4_2_9_8cb79d4f-81e0-49c1-b597-7f2344477fbf5.js";import{u as rh,F as mh,o as hh,a as vh}from"./v_7_4_2_9_8cb79d4f-81e0-49c1-b597-7f2344477fbf9.js";import{x as bf,y as Tr,z as jl,A as yh,B as of,C as Dr,D as _r,E as gh,F as rr,G as bh,L as Sh,R as ph,H as Eh,T as Ah,M as zh,J as mr,K as hr,N as vr,O as Mh,P as Th,Q as yr,U as gr,V as Dh,W as _h,X as Oh,Y as xh,Z as Uh,_ as Hh,$ as Nh,a0 as Rh,a1 as Ch,a2 as qh,a3 as Bh,a4 as jh,q as Yh,n as Gh,a5 as Xh,a6 as Qh,a7 as Zh,a8 as Lh,a9 as Vh,aa as wh}from"./v_7_4_2_9_8cb79d4f-81e0-49c1-b597-7f2344477fbf23.js";import{M as Kh}from"./v_7_4_2_9_8cb79d4f-81e0-49c1-b597-7f2344477fbf47.js";import{u as La}from"./v_7_4_2_9_8cb79d4f-81e0-49c1-b597-7f2344477fbf19.js";import{c as Ue}from"./v_7_4_2_9_8cb79d4f-81e0-49c1-b597-7f2344477fbf7.js";import{W as Uu,V as gf}from"./v_7_4_2_9_8cb79d4f-81e0-49c1-b597-7f2344477fbf18.js";import{X as Or}from"./v_7_4_2_9_8cb79d4f-81e0-49c1-b597-7f2344477fbf8.js";import{a as Jh}from"./v_7_4_2_9_8cb79d4f-81e0-49c1-b597-7f2344477fbf6.js";var df={exports:{}},Ou={},rf={exports:{}},mf={};/**
 * @license React
 * scheduler.production.js
 *
 * Copyright (c) Meta Platforms, Inc. and affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */var br;function kh(){return br||(br=1,(function(f){function y(_,G){var B=_.length;_.push(G);l:for(;0<B;){var el=B-1>>>1,rl=_[el];if(0<b(rl,G))_[el]=G,_[B]=rl,B=el;else break l}}function d(_){return _.length===0?null:_[0]}function o(_){if(_.length===0)return null;var G=_[0],B=_.pop();if(B!==G){_[0]=B;l:for(var el=0,rl=_.length,Ka=rl>>>1;el<Ka;){var pa=2*(el+1)-1,Dt=_[pa],w=pa+1,kl=_[w];if(0>b(Dt,B))w<rl&&0>b(kl,Dt)?(_[el]=kl,_[w]=B,el=w):(_[el]=Dt,_[pa]=B,el=pa);else if(w<rl&&0>b(kl,B))_[el]=kl,_[w]=B,el=w;else break l}}return G}function b(_,G){var B=_.sortIndex-G.sortIndex;return B!==0?B:_.id-G.id}if(f.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var S=performance;f.unstable_now=function(){return S.now()}}else{var M=Date,T=M.now();f.unstable_now=function(){return M.now()-T}}var Y=[],D=[],C=1,$=null,K=3,R=!1,Yl=!1,ct=!1,ft=typeof setTimeout=="function"?setTimeout:null,Ul=typeof clearTimeout=="function"?clearTimeout:null,dl=typeof setImmediate<"u"?setImmediate:null;function Gl(_){for(var G=d(D);G!==null;){if(G.callback===null)o(D);else if(G.startTime<=_)o(D),G.sortIndex=G.expirationTime,y(Y,G);else break;G=d(D)}}function st(_){if(ct=!1,Gl(_),!Yl)if(d(Y)!==null)Yl=!0,ba();else{var G=d(D);G!==null&&Sa(st,G.startTime-_)}}var Tt=!1,Rl=-1,_l=5,ot=-1;function q(){return!(f.unstable_now()-ot<_l)}function W(){if(Tt){var _=f.unstable_now();ot=_;var G=!0;try{l:{Yl=!1,ct&&(ct=!1,Ul(Rl),Rl=-1),R=!0;var B=K;try{t:{for(Gl(_),$=d(Y);$!==null&&!($.expirationTime>_&&q());){var el=$.callback;if(typeof el=="function"){$.callback=null,K=$.priorityLevel;var rl=el($.expirationTime<=_);if(_=f.unstable_now(),typeof rl=="function"){$.callback=rl,Gl(_),G=!0;break t}$===d(Y)&&o(Y),Gl(_)}else o(Y);$=d(Y)}if($!==null)G=!0;else{var Ka=d(D);Ka!==null&&Sa(st,Ka.startTime-_),G=!1}}break l}finally{$=null,K=B,R=!1}G=void 0}}finally{G?Jl():Tt=!1}}}var Jl;if(typeof dl=="function")Jl=function(){dl(W)};else if(typeof MessageChannel<"u"){var ya=new MessageChannel,ga=ya.port2;ya.port1.onmessage=W,Jl=function(){ga.postMessage(null)}}else Jl=function(){ft(W,0)};function ba(){Tt||(Tt=!0,Jl())}function Sa(_,G){Rl=ft(function(){_(f.unstable_now())},G)}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(_){_.callback=null},f.unstable_continueExecution=function(){Yl||R||(Yl=!0,ba())},f.unstable_forceFrameRate=function(_){0>_||125<_?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):_l=0<_?Math.floor(1e3/_):5},f.unstable_getCurrentPriorityLevel=function(){return K},f.unstable_getFirstCallbackNode=function(){return d(Y)},f.unstable_next=function(_){switch(K){case 1:case 2:case 3:var G=3;break;default:G=K}var B=K;K=G;try{return _()}finally{K=B}},f.unstable_pauseExecution=function(){},f.unstable_requestPaint=function(){},f.unstable_runWithPriority=function(_,G){switch(_){case 1:case 2:case 3:case 4:case 5:break;default:_=3}var B=K;K=_;try{return G()}finally{K=B}},f.unstable_scheduleCallback=function(_,G,B){var el=f.unstable_now();switch(typeof B=="object"&&B!==null?(B=B.delay,B=typeof B=="number"&&0<B?el+B:el):B=el,_){case 1:var rl=-1;break;case 2:rl=250;break;case 5:rl=1073741823;break;case 4:rl=1e4;break;default:rl=5e3}return rl=B+rl,_={id:C++,callback:G,priorityLevel:_,startTime:B,expirationTime:rl,sortIndex:-1},B>el?(_.sortIndex=B,y(D,_),d(Y)===null&&_===d(D)&&(ct?(Ul(Rl),Rl=-1):ct=!0,Sa(st,B-el))):(_.sortIndex=rl,y(Y,_),Yl||R||(Yl=!0,ba())),_},f.unstable_shouldYield=q,f.unstable_wrapCallback=function(_){var G=K;return function(){var B=K;K=G;try{return _.apply(this,arguments)}finally{K=B}}}})(mf)),mf}var Sr;function Wh(){return Sr||(Sr=1,rf.exports=kh()),rf.exports}/**
 * @license React
 * react-dom-client.production.js
 *
 * Copyright (c) Meta Platforms, Inc. and affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */var pr;function $h(){if(pr)return Ou;pr=1;var f=Wh(),y=oh(),d=dh();function o(l){var t="https://react.dev/errors/"+l;if(1<arguments.length){t+="?args[]="+encodeURIComponent(arguments[1]);for(var a=2;a<arguments.length;a++)t+="&args[]="+encodeURIComponent(arguments[a])}return"Minified React error #"+l+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function b(l){return!(!l||l.nodeType!==1&&l.nodeType!==9&&l.nodeType!==11)}var S=Symbol.for("react.element"),M=Symbol.for("react.transitional.element"),T=Symbol.for("react.portal"),Y=Symbol.for("react.fragment"),D=Symbol.for("react.strict_mode"),C=Symbol.for("react.profiler"),$=Symbol.for("react.provider"),K=Symbol.for("react.consumer"),R=Symbol.for("react.context"),Yl=Symbol.for("react.forward_ref"),ct=Symbol.for("react.suspense"),ft=Symbol.for("react.suspense_list"),Ul=Symbol.for("react.memo"),dl=Symbol.for("react.lazy"),Gl=Symbol.for("react.offscreen"),st=Symbol.for("react.memo_cache_sentinel"),Tt=Symbol.iterator;function Rl(l){return l===null||typeof l!="object"?null:(l=Tt&&l[Tt]||l["@@iterator"],typeof l=="function"?l:null)}var _l=Symbol.for("react.client.reference");function ot(l){if(l==null)return null;if(typeof l=="function")return l.$$typeof===_l?null:l.displayName||l.name||null;if(typeof l=="string")return l;switch(l){case Y:return"Fragment";case T:return"Portal";case C:return"Profiler";case D:return"StrictMode";case ct:return"Suspense";case ft:return"SuspenseList"}if(typeof l=="object")switch(l.$$typeof){case R:return(l.displayName||"Context")+".Provider";case K:return(l._context.displayName||"Context")+".Consumer";case Yl:var t=l.render;return l=l.displayName,l||(l=t.displayName||t.name||"",l=l!==""?"ForwardRef("+l+")":"ForwardRef"),l;case Ul:return t=l.displayName||null,t!==null?t:ot(l.type)||"Memo";case dl:t=l._payload,l=l._init;try{return ot(l(t))}catch{}}return null}var q=y.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,W=Object.assign,Jl,ya;function ga(l){if(Jl===void 0)try{throw Error()}catch(a){var t=a.stack.trim().match(/\n( *(at )?)/);Jl=t&&t[1]||"",ya=-1<a.stack.indexOf(`
    at`)?" (<anonymous>)":-1<a.stack.indexOf("@")?"@unknown:0:0":""}return`
`+Jl+l+ya}var ba=!1;function Sa(l,t){if(!l||ba)return"";ba=!0;var a=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var e={DetermineComponentFrameRoot:function(){try{if(t){var z=function(){throw Error()};if(Object.defineProperty(z.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(z,[])}catch(p){var g=p}Reflect.construct(l,[],z)}else{try{z.call()}catch(p){g=p}l.call(z.prototype)}}else{try{throw Error()}catch(p){g=p}(z=l())&&typeof z.catch=="function"&&z.catch(function(){})}}catch(p){if(p&&g&&typeof p.stack=="string")return[p.stack,g.stack]}return[null,null]}};e.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var u=Object.getOwnPropertyDescriptor(e.DetermineComponentFrameRoot,"name");u&&u.configurable&&Object.defineProperty(e.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var n=e.DetermineComponentFrameRoot(),i=n[0],c=n[1];if(i&&c){var s=i.split(`
`),m=c.split(`
`);for(u=e=0;e<s.length&&!s[e].includes("DetermineComponentFrameRoot");)e++;for(;u<m.length&&!m[u].includes("DetermineComponentFrameRoot");)u++;if(e===s.length||u===m.length)for(e=s.length-1,u=m.length-1;1<=e&&0<=u&&s[e]!==m[u];)u--;for(;1<=e&&0<=u;e--,u--)if(s[e]!==m[u]){if(e!==1||u!==1)do if(e--,u--,0>u||s[e]!==m[u]){var E=`
`+s[e].replace(" at new "," at ");return l.displayName&&E.includes("<anonymous>")&&(E=E.replace("<anonymous>",l.displayName)),E}while(1<=e&&0<=u);break}}}finally{ba=!1,Error.prepareStackTrace=a}return(a=l?l.displayName||l.name:"")?ga(a):""}function _(l){switch(l.tag){case 26:case 27:case 5:return ga(l.type);case 16:return ga("Lazy");case 13:return ga("Suspense");case 19:return ga("SuspenseList");case 0:case 15:return l=Sa(l.type,!1),l;case 11:return l=Sa(l.type.render,!1),l;case 1:return l=Sa(l.type,!0),l;default:return""}}function G(l){try{var t="";do t+=_(l),l=l.return;while(l);return t}catch(a){return`
Error generating stack: `+a.message+`
`+a.stack}}function B(l){var t=l,a=l;if(l.alternate)for(;t.return;)t=t.return;else{l=t;do t=l,(t.flags&4098)!==0&&(a=t.return),l=t.return;while(l)}return t.tag===3?a:null}function el(l){if(l.tag===13){var t=l.memoizedState;if(t===null&&(l=l.alternate,l!==null&&(t=l.memoizedState)),t!==null)return t.dehydrated}return null}function rl(l){if(B(l)!==l)throw Error(o(188))}function Ka(l){var t=l.alternate;if(!t){if(t=B(l),t===null)throw Error(o(188));return t!==l?null:l}for(var a=l,e=t;;){var u=a.return;if(u===null)break;var n=u.alternate;if(n===null){if(e=u.return,e!==null){a=e;continue}break}if(u.child===n.child){for(n=u.child;n;){if(n===a)return rl(u),l;if(n===e)return rl(u),t;n=n.sibling}throw Error(o(188))}if(a.return!==e.return)a=u,e=n;else{for(var i=!1,c=u.child;c;){if(c===a){i=!0,a=u,e=n;break}if(c===e){i=!0,e=u,a=n;break}c=c.sibling}if(!i){for(c=n.child;c;){if(c===a){i=!0,a=n,e=u;break}if(c===e){i=!0,e=n,a=u;break}c=c.sibling}if(!i)throw Error(o(189))}}if(a.alternate!==e)throw Error(o(190))}if(a.tag!==3)throw Error(o(188));return a.stateNode.current===a?l:t}function pa(l){var t=l.tag;if(t===5||t===26||t===27||t===6)return l;for(l=l.child;l!==null;){if(t=pa(l),t!==null)return t;l=l.sibling}return null}var Dt=Array.isArray,w=d.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,kl={pending:!1,data:null,method:null,action:null},Pn=[],Ja=-1;function gt(l){return{current:l}}function Sl(l){0>Ja||(l.current=Pn[Ja],Pn[Ja]=null,Ja--)}function ul(l,t){Ja++,Pn[Ja]=l.current,l.current=t}var bt=gt(null),He=gt(null),Kt=gt(null),Nu=gt(null);function Ru(l,t){switch(ul(Kt,t),ul(He,l),ul(bt,null),l=t.nodeType,l){case 9:case 11:t=(t=t.documentElement)&&(t=t.namespaceURI)?qd(t):0;break;default:if(l=l===8?t.parentNode:t,t=l.tagName,l=l.namespaceURI)l=qd(l),t=Bd(l,t);else switch(t){case"svg":t=1;break;case"math":t=2;break;default:t=0}}Sl(bt),ul(bt,t)}function ka(){Sl(bt),Sl(He),Sl(Kt)}function In(l){l.memoizedState!==null&&ul(Nu,l);var t=bt.current,a=Bd(t,l.type);t!==a&&(ul(He,l),ul(bt,a))}function Cu(l){He.current===l&&(Sl(bt),Sl(He)),Nu.current===l&&(Sl(Nu),zu._currentValue=kl)}var li=Object.prototype.hasOwnProperty,ti=f.unstable_scheduleCallback,ai=f.unstable_cancelCallback,Gr=f.unstable_shouldYield,Xr=f.unstable_requestPaint,St=f.unstable_now,Qr=f.unstable_getCurrentPriorityLevel,zf=f.unstable_ImmediatePriority,Mf=f.unstable_UserBlockingPriority,qu=f.unstable_NormalPriority,Zr=f.unstable_LowPriority,Tf=f.unstable_IdlePriority,Lr=f.log,Vr=f.unstable_setDisableYieldValue,Ne=null,Xl=null;function wr(l){if(Xl&&typeof Xl.onCommitFiberRoot=="function")try{Xl.onCommitFiberRoot(Ne,l,void 0,(l.current.flags&128)===128)}catch{}}function Jt(l){if(typeof Lr=="function"&&Vr(l),Xl&&typeof Xl.setStrictMode=="function")try{Xl.setStrictMode(Ne,l)}catch{}}var Ql=Math.clz32?Math.clz32:kr,Kr=Math.log,Jr=Math.LN2;function kr(l){return l>>>=0,l===0?32:31-(Kr(l)/Jr|0)|0}var Bu=128,ju=4194304;function Ea(l){var t=l&42;if(t!==0)return t;switch(l&-l){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: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 l&4194176;case 4194304:case 8388608:case 16777216:case 33554432:return l&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return l}}function Yu(l,t){var a=l.pendingLanes;if(a===0)return 0;var e=0,u=l.suspendedLanes,n=l.pingedLanes,i=l.warmLanes;l=l.finishedLanes!==0;var c=a&134217727;return c!==0?(a=c&~u,a!==0?e=Ea(a):(n&=c,n!==0?e=Ea(n):l||(i=c&~i,i!==0&&(e=Ea(i))))):(c=a&~u,c!==0?e=Ea(c):n!==0?e=Ea(n):l||(i=a&~i,i!==0&&(e=Ea(i)))),e===0?0:t!==0&&t!==e&&(t&u)===0&&(u=e&-e,i=t&-t,u>=i||u===32&&(i&4194176)!==0)?t:e}function Re(l,t){return(l.pendingLanes&~(l.suspendedLanes&~l.pingedLanes)&t)===0}function Wr(l,t){switch(l){case 1:case 2:case 4:case 8:return t+250;case 16:case 32:case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function Df(){var l=Bu;return Bu<<=1,(Bu&4194176)===0&&(Bu=128),l}function _f(){var l=ju;return ju<<=1,(ju&62914560)===0&&(ju=4194304),l}function ei(l){for(var t=[],a=0;31>a;a++)t.push(l);return t}function Ce(l,t){l.pendingLanes|=t,t!==268435456&&(l.suspendedLanes=0,l.pingedLanes=0,l.warmLanes=0)}function $r(l,t,a,e,u,n){var i=l.pendingLanes;l.pendingLanes=a,l.suspendedLanes=0,l.pingedLanes=0,l.warmLanes=0,l.expiredLanes&=a,l.entangledLanes&=a,l.errorRecoveryDisabledLanes&=a,l.shellSuspendCounter=0;var c=l.entanglements,s=l.expirationTimes,m=l.hiddenUpdates;for(a=i&~a;0<a;){var E=31-Ql(a),z=1<<E;c[E]=0,s[E]=-1;var g=m[E];if(g!==null)for(m[E]=null,E=0;E<g.length;E++){var p=g[E];p!==null&&(p.lane&=-536870913)}a&=~z}e!==0&&Of(l,e,0),n!==0&&u===0&&l.tag!==0&&(l.suspendedLanes|=n&~(i&~t))}function Of(l,t,a){l.pendingLanes|=t,l.suspendedLanes&=~t;var e=31-Ql(t);l.entangledLanes|=t,l.entanglements[e]=l.entanglements[e]|1073741824|a&4194218}function xf(l,t){var a=l.entangledLanes|=t;for(l=l.entanglements;a;){var e=31-Ql(a),u=1<<e;u&t|l[e]&t&&(l[e]|=t),a&=~u}}function Uf(l){return l&=-l,2<l?8<l?(l&134217727)!==0?32:268435456:8:2}function Hf(){var l=w.p;return l!==0?l:(l=window.event,l===void 0?32:lr(l.type))}function Fr(l,t){var a=w.p;try{return w.p=l,t()}finally{w.p=a}}var kt=Math.random().toString(36).slice(2),Ol="__reactFiber$"+kt,Cl="__reactProps$"+kt,Wa="__reactContainer$"+kt,ui="__reactEvents$"+kt,Pr="__reactListeners$"+kt,Ir="__reactHandles$"+kt,Nf="__reactResources$"+kt,qe="__reactMarker$"+kt;function ni(l){delete l[Ol],delete l[Cl],delete l[ui],delete l[Pr],delete l[Ir]}function Aa(l){var t=l[Ol];if(t)return t;for(var a=l.parentNode;a;){if(t=a[Wa]||a[Ol]){if(a=t.alternate,t.child!==null||a!==null&&a.child!==null)for(l=Gd(l);l!==null;){if(a=l[Ol])return a;l=Gd(l)}return t}l=a,a=l.parentNode}return null}function $a(l){if(l=l[Ol]||l[Wa]){var t=l.tag;if(t===5||t===6||t===13||t===26||t===27||t===3)return l}return null}function Be(l){var t=l.tag;if(t===5||t===26||t===27||t===6)return l.stateNode;throw Error(o(33))}function Fa(l){var t=l[Nf];return t||(t=l[Nf]={hoistableStyles:new Map,hoistableScripts:new Map}),t}function pl(l){l[qe]=!0}var Rf=new Set,Cf={};function za(l,t){Pa(l,t),Pa(l+"Capture",t)}function Pa(l,t){for(Cf[l]=t,l=0;l<t.length;l++)Rf.add(t[l])}var _t=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),l0=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]*$"),qf={},Bf={};function t0(l){return li.call(Bf,l)?!0:li.call(qf,l)?!1:l0.test(l)?Bf[l]=!0:(qf[l]=!0,!1)}function Gu(l,t,a){if(t0(t))if(a===null)l.removeAttribute(t);else{switch(typeof a){case"undefined":case"function":case"symbol":l.removeAttribute(t);return;case"boolean":var e=t.toLowerCase().slice(0,5);if(e!=="data-"&&e!=="aria-"){l.removeAttribute(t);return}}l.setAttribute(t,""+a)}}function Xu(l,t,a){if(a===null)l.removeAttribute(t);else{switch(typeof a){case"undefined":case"function":case"symbol":case"boolean":l.removeAttribute(t);return}l.setAttribute(t,""+a)}}function Ot(l,t,a,e){if(e===null)l.removeAttribute(a);else{switch(typeof e){case"undefined":case"function":case"symbol":case"boolean":l.removeAttribute(a);return}l.setAttributeNS(t,a,""+e)}}function Wl(l){switch(typeof l){case"bigint":case"boolean":case"number":case"string":case"undefined":return l;case"object":return l;default:return""}}function jf(l){var t=l.type;return(l=l.nodeName)&&l.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function a0(l){var t=jf(l)?"checked":"value",a=Object.getOwnPropertyDescriptor(l.constructor.prototype,t),e=""+l[t];if(!l.hasOwnProperty(t)&&typeof a<"u"&&typeof a.get=="function"&&typeof a.set=="function"){var u=a.get,n=a.set;return Object.defineProperty(l,t,{configurable:!0,get:function(){return u.call(this)},set:function(i){e=""+i,n.call(this,i)}}),Object.defineProperty(l,t,{enumerable:a.enumerable}),{getValue:function(){return e},setValue:function(i){e=""+i},stopTracking:function(){l._valueTracker=null,delete l[t]}}}}function Qu(l){l._valueTracker||(l._valueTracker=a0(l))}function Yf(l){if(!l)return!1;var t=l._valueTracker;if(!t)return!0;var a=t.getValue(),e="";return l&&(e=jf(l)?l.checked?"true":"false":l.value),l=e,l!==a?(t.setValue(l),!0):!1}function Zu(l){if(l=l||(typeof document<"u"?document:void 0),typeof l>"u")return null;try{return l.activeElement||l.body}catch{return l.body}}var e0=/[\n"\\]/g;function $l(l){return l.replace(e0,function(t){return"\\"+t.charCodeAt(0).toString(16)+" "})}function ii(l,t,a,e,u,n,i,c){l.name="",i!=null&&typeof i!="function"&&typeof i!="symbol"&&typeof i!="boolean"?l.type=i:l.removeAttribute("type"),t!=null?i==="number"?(t===0&&l.value===""||l.value!=t)&&(l.value=""+Wl(t)):l.value!==""+Wl(t)&&(l.value=""+Wl(t)):i!=="submit"&&i!=="reset"||l.removeAttribute("value"),t!=null?ci(l,i,Wl(t)):a!=null?ci(l,i,Wl(a)):e!=null&&l.removeAttribute("value"),u==null&&n!=null&&(l.defaultChecked=!!n),u!=null&&(l.checked=u&&typeof u!="function"&&typeof u!="symbol"),c!=null&&typeof c!="function"&&typeof c!="symbol"&&typeof c!="boolean"?l.name=""+Wl(c):l.removeAttribute("name")}function Gf(l,t,a,e,u,n,i,c){if(n!=null&&typeof n!="function"&&typeof n!="symbol"&&typeof n!="boolean"&&(l.type=n),t!=null||a!=null){if(!(n!=="submit"&&n!=="reset"||t!=null))return;a=a!=null?""+Wl(a):"",t=t!=null?""+Wl(t):a,c||t===l.value||(l.value=t),l.defaultValue=t}e=e??u,e=typeof e!="function"&&typeof e!="symbol"&&!!e,l.checked=c?l.checked:!!e,l.defaultChecked=!!e,i!=null&&typeof i!="function"&&typeof i!="symbol"&&typeof i!="boolean"&&(l.name=i)}function ci(l,t,a){t==="number"&&Zu(l.ownerDocument)===l||l.defaultValue===""+a||(l.defaultValue=""+a)}function Ia(l,t,a,e){if(l=l.options,t){t={};for(var u=0;u<a.length;u++)t["$"+a[u]]=!0;for(a=0;a<l.length;a++)u=t.hasOwnProperty("$"+l[a].value),l[a].selected!==u&&(l[a].selected=u),u&&e&&(l[a].defaultSelected=!0)}else{for(a=""+Wl(a),t=null,u=0;u<l.length;u++){if(l[u].value===a){l[u].selected=!0,e&&(l[u].defaultSelected=!0);return}t!==null||l[u].disabled||(t=l[u])}t!==null&&(t.selected=!0)}}function Xf(l,t,a){if(t!=null&&(t=""+Wl(t),t!==l.value&&(l.value=t),a==null)){l.defaultValue!==t&&(l.defaultValue=t);return}l.defaultValue=a!=null?""+Wl(a):""}function Qf(l,t,a,e){if(t==null){if(e!=null){if(a!=null)throw Error(o(92));if(Dt(e)){if(1<e.length)throw Error(o(93));e=e[0]}a=e}a==null&&(a=""),t=a}a=Wl(t),l.defaultValue=a,e=l.textContent,e===a&&e!==""&&e!==null&&(l.value=e)}function le(l,t){if(t){var a=l.firstChild;if(a&&a===l.lastChild&&a.nodeType===3){a.nodeValue=t;return}}l.textContent=t}var u0=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 Zf(l,t,a){var e=t.indexOf("--")===0;a==null||typeof a=="boolean"||a===""?e?l.setProperty(t,""):t==="float"?l.cssFloat="":l[t]="":e?l.setProperty(t,a):typeof a!="number"||a===0||u0.has(t)?t==="float"?l.cssFloat=a:l[t]=(""+a).trim():l[t]=a+"px"}function Lf(l,t,a){if(t!=null&&typeof t!="object")throw Error(o(62));if(l=l.style,a!=null){for(var e in a)!a.hasOwnProperty(e)||t!=null&&t.hasOwnProperty(e)||(e.indexOf("--")===0?l.setProperty(e,""):e==="float"?l.cssFloat="":l[e]="");for(var u in t)e=t[u],t.hasOwnProperty(u)&&a[u]!==e&&Zf(l,u,e)}else for(var n in t)t.hasOwnProperty(n)&&Zf(l,n,t[n])}function fi(l){if(l.indexOf("-")===-1)return!1;switch(l){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 n0=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"]]),i0=/^[\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 Lu(l){return i0.test(""+l)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":l}var si=null;function oi(l){return l=l.target||l.srcElement||window,l.correspondingUseElement&&(l=l.correspondingUseElement),l.nodeType===3?l.parentNode:l}var te=null,ae=null;function Vf(l){var t=$a(l);if(t&&(l=t.stateNode)){var a=l[Cl]||null;l:switch(l=t.stateNode,t.type){case"input":if(ii(l,a.value,a.defaultValue,a.defaultValue,a.checked,a.defaultChecked,a.type,a.name),t=a.name,a.type==="radio"&&t!=null){for(a=l;a.parentNode;)a=a.parentNode;for(a=a.querySelectorAll('input[name="'+$l(""+t)+'"][type="radio"]'),t=0;t<a.length;t++){var e=a[t];if(e!==l&&e.form===l.form){var u=e[Cl]||null;if(!u)throw Error(o(90));ii(e,u.value,u.defaultValue,u.defaultValue,u.checked,u.defaultChecked,u.type,u.name)}}for(t=0;t<a.length;t++)e=a[t],e.form===l.form&&Yf(e)}break l;case"textarea":Xf(l,a.value,a.defaultValue);break l;case"select":t=a.value,t!=null&&Ia(l,!!a.multiple,t,!1)}}}var di=!1;function wf(l,t,a){if(di)return l(t,a);di=!0;try{var e=l(t);return e}finally{if(di=!1,(te!==null||ae!==null)&&(_n(),te&&(t=te,l=ae,ae=te=null,Vf(t),l)))for(t=0;t<l.length;t++)Vf(l[t])}}function je(l,t){var a=l.stateNode;if(a===null)return null;var e=a[Cl]||null;if(e===null)return null;a=e[t];l:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(e=!e.disabled)||(l=l.type,e=!(l==="button"||l==="input"||l==="select"||l==="textarea")),l=!e;break l;default:l=!1}if(l)return null;if(a&&typeof a!="function")throw Error(o(231,t,typeof a));return a}var ri=!1;if(_t)try{var Ye={};Object.defineProperty(Ye,"passive",{get:function(){ri=!0}}),window.addEventListener("test",Ye,Ye),window.removeEventListener("test",Ye,Ye)}catch{ri=!1}var Wt=null,mi=null,Vu=null;function Kf(){if(Vu)return Vu;var l,t=mi,a=t.length,e,u="value"in Wt?Wt.value:Wt.textContent,n=u.length;for(l=0;l<a&&t[l]===u[l];l++);var i=a-l;for(e=1;e<=i&&t[a-e]===u[n-e];e++);return Vu=u.slice(l,1<e?1-e:void 0)}function wu(l){var t=l.keyCode;return"charCode"in l?(l=l.charCode,l===0&&t===13&&(l=13)):l=t,l===10&&(l=13),32<=l||l===13?l:0}function Ku(){return!0}function Jf(){return!1}function ql(l){function t(a,e,u,n,i){this._reactName=a,this._targetInst=u,this.type=e,this.nativeEvent=n,this.target=i,this.currentTarget=null;for(var c in l)l.hasOwnProperty(c)&&(a=l[c],this[c]=a?a(n):n[c]);return this.isDefaultPrevented=(n.defaultPrevented!=null?n.defaultPrevented:n.returnValue===!1)?Ku:Jf,this.isPropagationStopped=Jf,this}return W(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var a=this.nativeEvent;a&&(a.preventDefault?a.preventDefault():typeof a.returnValue!="unknown"&&(a.returnValue=!1),this.isDefaultPrevented=Ku)},stopPropagation:function(){var a=this.nativeEvent;a&&(a.stopPropagation?a.stopPropagation():typeof a.cancelBubble!="unknown"&&(a.cancelBubble=!0),this.isPropagationStopped=Ku)},persist:function(){},isPersistent:Ku}),t}var Ma={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(l){return l.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Ju=ql(Ma),Ge=W({},Ma,{view:0,detail:0}),c0=ql(Ge),hi,vi,Xe,ku=W({},Ge,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:gi,button:0,buttons:0,relatedTarget:function(l){return l.relatedTarget===void 0?l.fromElement===l.srcElement?l.toElement:l.fromElement:l.relatedTarget},movementX:function(l){return"movementX"in l?l.movementX:(l!==Xe&&(Xe&&l.type==="mousemove"?(hi=l.screenX-Xe.screenX,vi=l.screenY-Xe.screenY):vi=hi=0,Xe=l),hi)},movementY:function(l){return"movementY"in l?l.movementY:vi}}),kf=ql(ku),f0=W({},ku,{dataTransfer:0}),s0=ql(f0),o0=W({},Ge,{relatedTarget:0}),yi=ql(o0),d0=W({},Ma,{animationName:0,elapsedTime:0,pseudoElement:0}),r0=ql(d0),m0=W({},Ma,{clipboardData:function(l){return"clipboardData"in l?l.clipboardData:window.clipboardData}}),h0=ql(m0),v0=W({},Ma,{data:0}),Wf=ql(v0),y0={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},g0={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"},b0={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function S0(l){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(l):(l=b0[l])?!!t[l]:!1}function gi(){return S0}var p0=W({},Ge,{key:function(l){if(l.key){var t=y0[l.key]||l.key;if(t!=="Unidentified")return t}return l.type==="keypress"?(l=wu(l),l===13?"Enter":String.fromCharCode(l)):l.type==="keydown"||l.type==="keyup"?g0[l.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:gi,charCode:function(l){return l.type==="keypress"?wu(l):0},keyCode:function(l){return l.type==="keydown"||l.type==="keyup"?l.keyCode:0},which:function(l){return l.type==="keypress"?wu(l):l.type==="keydown"||l.type==="keyup"?l.keyCode:0}}),E0=ql(p0),A0=W({},ku,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),$f=ql(A0),z0=W({},Ge,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:gi}),M0=ql(z0),T0=W({},Ma,{propertyName:0,elapsedTime:0,pseudoElement:0}),D0=ql(T0),_0=W({},ku,{deltaX:function(l){return"deltaX"in l?l.deltaX:"wheelDeltaX"in l?-l.wheelDeltaX:0},deltaY:function(l){return"deltaY"in l?l.deltaY:"wheelDeltaY"in l?-l.wheelDeltaY:"wheelDelta"in l?-l.wheelDelta:0},deltaZ:0,deltaMode:0}),O0=ql(_0),x0=W({},Ma,{newState:0,oldState:0}),U0=ql(x0),H0=[9,13,27,32],bi=_t&&"CompositionEvent"in window,Qe=null;_t&&"documentMode"in document&&(Qe=document.documentMode);var N0=_t&&"TextEvent"in window&&!Qe,Ff=_t&&(!bi||Qe&&8<Qe&&11>=Qe),Pf=" ",If=!1;function ls(l,t){switch(l){case"keyup":return H0.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function ts(l){return l=l.detail,typeof l=="object"&&"data"in l?l.data:null}var ee=!1;function R0(l,t){switch(l){case"compositionend":return ts(t);case"keypress":return t.which!==32?null:(If=!0,Pf);case"textInput":return l=t.data,l===Pf&&If?null:l;default:return null}}function C0(l,t){if(ee)return l==="compositionend"||!bi&&ls(l,t)?(l=Kf(),Vu=mi=Wt=null,ee=!1,l):null;switch(l){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return Ff&&t.locale!=="ko"?null:t.data;default:return null}}var q0={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 as(l){var t=l&&l.nodeName&&l.nodeName.toLowerCase();return t==="input"?!!q0[l.type]:t==="textarea"}function es(l,t,a,e){te?ae?ae.push(e):ae=[e]:te=e,t=Nn(t,"onChange"),0<t.length&&(a=new Ju("onChange","change",null,a,e),l.push({event:a,listeners:t}))}var Ze=null,Le=null;function B0(l){Ud(l,0)}function Wu(l){var t=Be(l);if(Yf(t))return l}function us(l,t){if(l==="change")return t}var ns=!1;if(_t){var Si;if(_t){var pi="oninput"in document;if(!pi){var is=document.createElement("div");is.setAttribute("oninput","return;"),pi=typeof is.oninput=="function"}Si=pi}else Si=!1;ns=Si&&(!document.documentMode||9<document.documentMode)}function cs(){Ze&&(Ze.detachEvent("onpropertychange",fs),Le=Ze=null)}function fs(l){if(l.propertyName==="value"&&Wu(Le)){var t=[];es(t,Le,l,oi(l)),wf(B0,t)}}function j0(l,t,a){l==="focusin"?(cs(),Ze=t,Le=a,Ze.attachEvent("onpropertychange",fs)):l==="focusout"&&cs()}function Y0(l){if(l==="selectionchange"||l==="keyup"||l==="keydown")return Wu(Le)}function G0(l,t){if(l==="click")return Wu(t)}function X0(l,t){if(l==="input"||l==="change")return Wu(t)}function Q0(l,t){return l===t&&(l!==0||1/l===1/t)||l!==l&&t!==t}var Zl=typeof Object.is=="function"?Object.is:Q0;function Ve(l,t){if(Zl(l,t))return!0;if(typeof l!="object"||l===null||typeof t!="object"||t===null)return!1;var a=Object.keys(l),e=Object.keys(t);if(a.length!==e.length)return!1;for(e=0;e<a.length;e++){var u=a[e];if(!li.call(t,u)||!Zl(l[u],t[u]))return!1}return!0}function ss(l){for(;l&&l.firstChild;)l=l.firstChild;return l}function os(l,t){var a=ss(l);l=0;for(var e;a;){if(a.nodeType===3){if(e=l+a.textContent.length,l<=t&&e>=t)return{node:a,offset:t-l};l=e}l:{for(;a;){if(a.nextSibling){a=a.nextSibling;break l}a=a.parentNode}a=void 0}a=ss(a)}}function ds(l,t){return l&&t?l===t?!0:l&&l.nodeType===3?!1:t&&t.nodeType===3?ds(l,t.parentNode):"contains"in l?l.contains(t):l.compareDocumentPosition?!!(l.compareDocumentPosition(t)&16):!1:!1}function rs(l){l=l!=null&&l.ownerDocument!=null&&l.ownerDocument.defaultView!=null?l.ownerDocument.defaultView:window;for(var t=Zu(l.document);t instanceof l.HTMLIFrameElement;){try{var a=typeof t.contentWindow.location.href=="string"}catch{a=!1}if(a)l=t.contentWindow;else break;t=Zu(l.document)}return t}function Ei(l){var t=l&&l.nodeName&&l.nodeName.toLowerCase();return t&&(t==="input"&&(l.type==="text"||l.type==="search"||l.type==="tel"||l.type==="url"||l.type==="password")||t==="textarea"||l.contentEditable==="true")}function Z0(l,t){var a=rs(t);t=l.focusedElem;var e=l.selectionRange;if(a!==t&&t&&t.ownerDocument&&ds(t.ownerDocument.documentElement,t)){if(e!==null&&Ei(t)){if(l=e.start,a=e.end,a===void 0&&(a=l),"selectionStart"in t)t.selectionStart=l,t.selectionEnd=Math.min(a,t.value.length);else if(a=(l=t.ownerDocument||document)&&l.defaultView||window,a.getSelection){a=a.getSelection();var u=t.textContent.length,n=Math.min(e.start,u);e=e.end===void 0?n:Math.min(e.end,u),!a.extend&&n>e&&(u=e,e=n,n=u),u=os(t,n);var i=os(t,e);u&&i&&(a.rangeCount!==1||a.anchorNode!==u.node||a.anchorOffset!==u.offset||a.focusNode!==i.node||a.focusOffset!==i.offset)&&(l=l.createRange(),l.setStart(u.node,u.offset),a.removeAllRanges(),n>e?(a.addRange(l),a.extend(i.node,i.offset)):(l.setEnd(i.node,i.offset),a.addRange(l)))}}for(l=[],a=t;a=a.parentNode;)a.nodeType===1&&l.push({element:a,left:a.scrollLeft,top:a.scrollTop});for(typeof t.focus=="function"&&t.focus(),t=0;t<l.length;t++)a=l[t],a.element.scrollLeft=a.left,a.element.scrollTop=a.top}}var L0=_t&&"documentMode"in document&&11>=document.documentMode,ue=null,Ai=null,we=null,zi=!1;function ms(l,t,a){var e=a.window===a?a.document:a.nodeType===9?a:a.ownerDocument;zi||ue==null||ue!==Zu(e)||(e=ue,"selectionStart"in e&&Ei(e)?e={start:e.selectionStart,end:e.selectionEnd}:(e=(e.ownerDocument&&e.ownerDocument.defaultView||window).getSelection(),e={anchorNode:e.anchorNode,anchorOffset:e.anchorOffset,focusNode:e.focusNode,focusOffset:e.focusOffset}),we&&Ve(we,e)||(we=e,e=Nn(Ai,"onSelect"),0<e.length&&(t=new Ju("onSelect","select",null,t,a),l.push({event:t,listeners:e}),t.target=ue)))}function Ta(l,t){var a={};return a[l.toLowerCase()]=t.toLowerCase(),a["Webkit"+l]="webkit"+t,a["Moz"+l]="moz"+t,a}var ne={animationend:Ta("Animation","AnimationEnd"),animationiteration:Ta("Animation","AnimationIteration"),animationstart:Ta("Animation","AnimationStart"),transitionrun:Ta("Transition","TransitionRun"),transitionstart:Ta("Transition","TransitionStart"),transitioncancel:Ta("Transition","TransitionCancel"),transitionend:Ta("Transition","TransitionEnd")},Mi={},hs={};_t&&(hs=document.createElement("div").style,"AnimationEvent"in window||(delete ne.animationend.animation,delete ne.animationiteration.animation,delete ne.animationstart.animation),"TransitionEvent"in window||delete ne.transitionend.transition);function Da(l){if(Mi[l])return Mi[l];if(!ne[l])return l;var t=ne[l],a;for(a in t)if(t.hasOwnProperty(a)&&a in hs)return Mi[l]=t[a];return l}var vs=Da("animationend"),ys=Da("animationiteration"),gs=Da("animationstart"),V0=Da("transitionrun"),w0=Da("transitionstart"),K0=Da("transitioncancel"),bs=Da("transitionend"),Ss=new Map,ps="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 scrollEnd toggle touchMove waiting wheel".split(" ");function dt(l,t){Ss.set(l,t),za(t,[l])}var Fl=[],ie=0,Ti=0;function $u(){for(var l=ie,t=Ti=ie=0;t<l;){var a=Fl[t];Fl[t++]=null;var e=Fl[t];Fl[t++]=null;var u=Fl[t];Fl[t++]=null;var n=Fl[t];if(Fl[t++]=null,e!==null&&u!==null){var i=e.pending;i===null?u.next=u:(u.next=i.next,i.next=u),e.pending=u}n!==0&&Es(a,u,n)}}function Fu(l,t,a,e){Fl[ie++]=l,Fl[ie++]=t,Fl[ie++]=a,Fl[ie++]=e,Ti|=e,l.lanes|=e,l=l.alternate,l!==null&&(l.lanes|=e)}function Di(l,t,a,e){return Fu(l,t,a,e),Pu(l)}function $t(l,t){return Fu(l,null,null,t),Pu(l)}function Es(l,t,a){l.lanes|=a;var e=l.alternate;e!==null&&(e.lanes|=a);for(var u=!1,n=l.return;n!==null;)n.childLanes|=a,e=n.alternate,e!==null&&(e.childLanes|=a),n.tag===22&&(l=n.stateNode,l===null||l._visibility&1||(u=!0)),l=n,n=n.return;u&&t!==null&&l.tag===3&&(n=l.stateNode,u=31-Ql(a),n=n.hiddenUpdates,l=n[u],l===null?n[u]=[t]:l.push(t),t.lane=a|536870912)}function Pu(l){if(50<yu)throw yu=0,Nc=null,Error(o(185));for(var t=l.return;t!==null;)l=t,t=l.return;return l.tag===3?l.stateNode:null}var ce={},As=new WeakMap;function Pl(l,t){if(typeof l=="object"&&l!==null){var a=As.get(l);return a!==void 0?a:(t={value:l,source:t,stack:G(t)},As.set(l,t),t)}return{value:l,source:t,stack:G(t)}}var fe=[],se=0,Iu=null,ln=0,Il=[],lt=0,_a=null,xt=1,Ut="";function Oa(l,t){fe[se++]=ln,fe[se++]=Iu,Iu=l,ln=t}function zs(l,t,a){Il[lt++]=xt,Il[lt++]=Ut,Il[lt++]=_a,_a=l;var e=xt;l=Ut;var u=32-Ql(e)-1;e&=~(1<<u),a+=1;var n=32-Ql(t)+u;if(30<n){var i=u-u%5;n=(e&(1<<i)-1).toString(32),e>>=i,u-=i,xt=1<<32-Ql(t)+u|a<<u|e,Ut=n+l}else xt=1<<n|a<<u|e,Ut=l}function _i(l){l.return!==null&&(Oa(l,1),zs(l,1,0))}function Oi(l){for(;l===Iu;)Iu=fe[--se],fe[se]=null,ln=fe[--se],fe[se]=null;for(;l===_a;)_a=Il[--lt],Il[lt]=null,Ut=Il[--lt],Il[lt]=null,xt=Il[--lt],Il[lt]=null}var Hl=null,Ml=null,J=!1,rt=null,pt=!1,xi=Error(o(519));function xa(l){var t=Error(o(418,""));throw ke(Pl(t,l)),xi}function Ms(l){var t=l.stateNode,a=l.type,e=l.memoizedProps;switch(t[Ol]=l,t[Cl]=e,a){case"dialog":L("cancel",t),L("close",t);break;case"iframe":case"object":case"embed":L("load",t);break;case"video":case"audio":for(a=0;a<bu.length;a++)L(bu[a],t);break;case"source":L("error",t);break;case"img":case"image":case"link":L("error",t),L("load",t);break;case"details":L("toggle",t);break;case"input":L("invalid",t),Gf(t,e.value,e.defaultValue,e.checked,e.defaultChecked,e.type,e.name,!0),Qu(t);break;case"select":L("invalid",t);break;case"textarea":L("invalid",t),Qf(t,e.value,e.defaultValue,e.children),Qu(t)}a=e.children,typeof a!="string"&&typeof a!="number"&&typeof a!="bigint"||t.textContent===""+a||e.suppressHydrationWarning===!0||Cd(t.textContent,a)?(e.popover!=null&&(L("beforetoggle",t),L("toggle",t)),e.onScroll!=null&&L("scroll",t),e.onScrollEnd!=null&&L("scrollend",t),e.onClick!=null&&(t.onclick=Rn),t=!0):t=!1,t||xa(l)}function Ts(l){for(Hl=l.return;Hl;)switch(Hl.tag){case 3:case 27:pt=!0;return;case 5:case 13:pt=!1;return;default:Hl=Hl.return}}function Ke(l){if(l!==Hl)return!1;if(!J)return Ts(l),J=!0,!1;var t=!1,a;if((a=l.tag!==3&&l.tag!==27)&&((a=l.tag===5)&&(a=l.type,a=!(a!=="form"&&a!=="button")||Wc(l.type,l.memoizedProps)),a=!a),a&&(t=!0),t&&Ml&&xa(l),Ts(l),l.tag===13){if(l=l.memoizedState,l=l!==null?l.dehydrated:null,!l)throw Error(o(317));l:{for(l=l.nextSibling,t=0;l;){if(l.nodeType===8)if(a=l.data,a==="/$"){if(t===0){Ml=ht(l.nextSibling);break l}t--}else a!=="$"&&a!=="$!"&&a!=="$?"||t++;l=l.nextSibling}Ml=null}}else Ml=Hl?ht(l.stateNode.nextSibling):null;return!0}function Je(){Ml=Hl=null,J=!1}function ke(l){rt===null?rt=[l]:rt.push(l)}var We=Error(o(460)),Ds=Error(o(474)),Ui={then:function(){}};function _s(l){return l=l.status,l==="fulfilled"||l==="rejected"}function tn(){}function Os(l,t,a){switch(a=l[a],a===void 0?l.push(t):a!==t&&(t.then(tn,tn),t=a),t.status){case"fulfilled":return t.value;case"rejected":throw l=t.reason,l===We?Error(o(483)):l;default:if(typeof t.status=="string")t.then(tn,tn);else{if(l=tl,l!==null&&100<l.shellSuspendCounter)throw Error(o(482));l=t,l.status="pending",l.then(function(e){if(t.status==="pending"){var u=t;u.status="fulfilled",u.value=e}},function(e){if(t.status==="pending"){var u=t;u.status="rejected",u.reason=e}})}switch(t.status){case"fulfilled":return t.value;case"rejected":throw l=t.reason,l===We?Error(o(483)):l}throw $e=t,We}}var $e=null;function xs(){if($e===null)throw Error(o(459));var l=$e;return $e=null,l}var oe=null,Fe=0;function an(l){var t=Fe;return Fe+=1,oe===null&&(oe=[]),Os(oe,l,t)}function Pe(l,t){t=t.props.ref,l.ref=t!==void 0?t:null}function en(l,t){throw t.$$typeof===S?Error(o(525)):(l=Object.prototype.toString.call(t),Error(o(31,l==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":l)))}function Us(l){var t=l._init;return t(l._payload)}function Hs(l){function t(h,r){if(l){var v=h.deletions;v===null?(h.deletions=[r],h.flags|=16):v.push(r)}}function a(h,r){if(!l)return null;for(;r!==null;)t(h,r),r=r.sibling;return null}function e(h){for(var r=new Map;h!==null;)h.key!==null?r.set(h.key,h):r.set(h.index,h),h=h.sibling;return r}function u(h,r){return h=fa(h,r),h.index=0,h.sibling=null,h}function n(h,r,v){return h.index=v,l?(v=h.alternate,v!==null?(v=v.index,v<r?(h.flags|=33554434,r):v):(h.flags|=33554434,r)):(h.flags|=1048576,r)}function i(h){return l&&h.alternate===null&&(h.flags|=33554434),h}function c(h,r,v,A){return r===null||r.tag!==6?(r=Mc(v,h.mode,A),r.return=h,r):(r=u(r,v),r.return=h,r)}function s(h,r,v,A){var O=v.type;return O===Y?E(h,r,v.props.children,A,v.key):r!==null&&(r.elementType===O||typeof O=="object"&&O!==null&&O.$$typeof===dl&&Us(O)===r.type)?(r=u(r,v.props),Pe(r,v),r.return=h,r):(r=An(v.type,v.key,v.props,null,h.mode,A),Pe(r,v),r.return=h,r)}function m(h,r,v,A){return r===null||r.tag!==4||r.stateNode.containerInfo!==v.containerInfo||r.stateNode.implementation!==v.implementation?(r=Tc(v,h.mode,A),r.return=h,r):(r=u(r,v.children||[]),r.return=h,r)}function E(h,r,v,A,O){return r===null||r.tag!==7?(r=Ga(v,h.mode,A,O),r.return=h,r):(r=u(r,v),r.return=h,r)}function z(h,r,v){if(typeof r=="string"&&r!==""||typeof r=="number"||typeof r=="bigint")return r=Mc(""+r,h.mode,v),r.return=h,r;if(typeof r=="object"&&r!==null){switch(r.$$typeof){case M:return v=An(r.type,r.key,r.props,null,h.mode,v),Pe(v,r),v.return=h,v;case T:return r=Tc(r,h.mode,v),r.return=h,r;case dl:var A=r._init;return r=A(r._payload),z(h,r,v)}if(Dt(r)||Rl(r))return r=Ga(r,h.mode,v,null),r.return=h,r;if(typeof r.then=="function")return z(h,an(r),v);if(r.$$typeof===R)return z(h,Sn(h,r),v);en(h,r)}return null}function g(h,r,v,A){var O=r!==null?r.key:null;if(typeof v=="string"&&v!==""||typeof v=="number"||typeof v=="bigint")return O!==null?null:c(h,r,""+v,A);if(typeof v=="object"&&v!==null){switch(v.$$typeof){case M:return v.key===O?s(h,r,v,A):null;case T:return v.key===O?m(h,r,v,A):null;case dl:return O=v._init,v=O(v._payload),g(h,r,v,A)}if(Dt(v)||Rl(v))return O!==null?null:E(h,r,v,A,null);if(typeof v.then=="function")return g(h,r,an(v),A);if(v.$$typeof===R)return g(h,r,Sn(h,v),A);en(h,v)}return null}function p(h,r,v,A,O){if(typeof A=="string"&&A!==""||typeof A=="number"||typeof A=="bigint")return h=h.get(v)||null,c(r,h,""+A,O);if(typeof A=="object"&&A!==null){switch(A.$$typeof){case M:return h=h.get(A.key===null?v:A.key)||null,s(r,h,A,O);case T:return h=h.get(A.key===null?v:A.key)||null,m(r,h,A,O);case dl:var Q=A._init;return A=Q(A._payload),p(h,r,v,A,O)}if(Dt(A)||Rl(A))return h=h.get(v)||null,E(r,h,A,O,null);if(typeof A.then=="function")return p(h,r,v,an(A),O);if(A.$$typeof===R)return p(h,r,v,Sn(r,A),O);en(r,A)}return null}function x(h,r,v,A){for(var O=null,Q=null,U=r,N=r=0,zl=null;U!==null&&N<v.length;N++){U.index>N?(zl=U,U=null):zl=U.sibling;var k=g(h,U,v[N],A);if(k===null){U===null&&(U=zl);break}l&&U&&k.alternate===null&&t(h,U),r=n(k,r,N),Q===null?O=k:Q.sibling=k,Q=k,U=zl}if(N===v.length)return a(h,U),J&&Oa(h,N),O;if(U===null){for(;N<v.length;N++)U=z(h,v[N],A),U!==null&&(r=n(U,r,N),Q===null?O=U:Q.sibling=U,Q=U);return J&&Oa(h,N),O}for(U=e(U);N<v.length;N++)zl=p(U,h,N,v[N],A),zl!==null&&(l&&zl.alternate!==null&&U.delete(zl.key===null?N:zl.key),r=n(zl,r,N),Q===null?O=zl:Q.sibling=zl,Q=zl);return l&&U.forEach(function(va){return t(h,va)}),J&&Oa(h,N),O}function j(h,r,v,A){if(v==null)throw Error(o(151));for(var O=null,Q=null,U=r,N=r=0,zl=null,k=v.next();U!==null&&!k.done;N++,k=v.next()){U.index>N?(zl=U,U=null):zl=U.sibling;var va=g(h,U,k.value,A);if(va===null){U===null&&(U=zl);break}l&&U&&va.alternate===null&&t(h,U),r=n(va,r,N),Q===null?O=va:Q.sibling=va,Q=va,U=zl}if(k.done)return a(h,U),J&&Oa(h,N),O;if(U===null){for(;!k.done;N++,k=v.next())k=z(h,k.value,A),k!==null&&(r=n(k,r,N),Q===null?O=k:Q.sibling=k,Q=k);return J&&Oa(h,N),O}for(U=e(U);!k.done;N++,k=v.next())k=p(U,h,N,k.value,A),k!==null&&(l&&k.alternate!==null&&U.delete(k.key===null?N:k.key),r=n(k,r,N),Q===null?O=k:Q.sibling=k,Q=k);return l&&U.forEach(function(ih){return t(h,ih)}),J&&Oa(h,N),O}function ol(h,r,v,A){if(typeof v=="object"&&v!==null&&v.type===Y&&v.key===null&&(v=v.props.children),typeof v=="object"&&v!==null){switch(v.$$typeof){case M:l:{for(var O=v.key;r!==null;){if(r.key===O){if(O=v.type,O===Y){if(r.tag===7){a(h,r.sibling),A=u(r,v.props.children),A.return=h,h=A;break l}}else if(r.elementType===O||typeof O=="object"&&O!==null&&O.$$typeof===dl&&Us(O)===r.type){a(h,r.sibling),A=u(r,v.props),Pe(A,v),A.return=h,h=A;break l}a(h,r);break}else t(h,r);r=r.sibling}v.type===Y?(A=Ga(v.props.children,h.mode,A,v.key),A.return=h,h=A):(A=An(v.type,v.key,v.props,null,h.mode,A),Pe(A,v),A.return=h,h=A)}return i(h);case T:l:{for(O=v.key;r!==null;){if(r.key===O)if(r.tag===4&&r.stateNode.containerInfo===v.containerInfo&&r.stateNode.implementation===v.implementation){a(h,r.sibling),A=u(r,v.children||[]),A.return=h,h=A;break l}else{a(h,r);break}else t(h,r);r=r.sibling}A=Tc(v,h.mode,A),A.return=h,h=A}return i(h);case dl:return O=v._init,v=O(v._payload),ol(h,r,v,A)}if(Dt(v))return x(h,r,v,A);if(Rl(v)){if(O=Rl(v),typeof O!="function")throw Error(o(150));return v=O.call(v),j(h,r,v,A)}if(typeof v.then=="function")return ol(h,r,an(v),A);if(v.$$typeof===R)return ol(h,r,Sn(h,v),A);en(h,v)}return typeof v=="string"&&v!==""||typeof v=="number"||typeof v=="bigint"?(v=""+v,r!==null&&r.tag===6?(a(h,r.sibling),A=u(r,v),A.return=h,h=A):(a(h,r),A=Mc(v,h.mode,A),A.return=h,h=A),i(h)):a(h,r)}return function(h,r,v,A){try{Fe=0;var O=ol(h,r,v,A);return oe=null,O}catch(U){if(U===We)throw U;var Q=ut(29,U,null,h.mode);return Q.lanes=A,Q.return=h,Q}finally{}}}var Ua=Hs(!0),Ns=Hs(!1),de=gt(null),un=gt(0);function Rs(l,t){l=Qt,ul(un,l),ul(de,t),Qt=l|t.baseLanes}function Hi(){ul(un,Qt),ul(de,de.current)}function Ni(){Qt=un.current,Sl(de),Sl(un)}var tt=gt(null),Et=null;function Ft(l){var t=l.alternate;ul(gl,gl.current&1),ul(tt,l),Et===null&&(t===null||de.current!==null||t.memoizedState!==null)&&(Et=l)}function Cs(l){if(l.tag===22){if(ul(gl,gl.current),ul(tt,l),Et===null){var t=l.alternate;t!==null&&t.memoizedState!==null&&(Et=l)}}else Pt()}function Pt(){ul(gl,gl.current),ul(tt,tt.current)}function Ht(l){Sl(tt),Et===l&&(Et=null),Sl(gl)}var gl=gt(0);function nn(l){for(var t=l;t!==null;){if(t.tag===13){var a=t.memoizedState;if(a!==null&&(a=a.dehydrated,a===null||a.data==="$?"||a.data==="$!"))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==void 0){if((t.flags&128)!==0)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===l)break;for(;t.sibling===null;){if(t.return===null||t.return===l)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var J0=typeof AbortController<"u"?AbortController:function(){var l=[],t=this.signal={aborted:!1,addEventListener:function(a,e){l.push(e)}};this.abort=function(){t.aborted=!0,l.forEach(function(a){return a()})}},k0=f.unstable_scheduleCallback,W0=f.unstable_NormalPriority,bl={$$typeof:R,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function Ri(){return{controller:new J0,data:new Map,refCount:0}}function Ie(l){l.refCount--,l.refCount===0&&k0(W0,function(){l.controller.abort()})}var lu=null,Ci=0,re=0,me=null;function $0(l,t){if(lu===null){var a=lu=[];Ci=0,re=Xc(),me={status:"pending",value:void 0,then:function(e){a.push(e)}}}return Ci++,t.then(qs,qs),t}function qs(){if(--Ci===0&&lu!==null){me!==null&&(me.status="fulfilled");var l=lu;lu=null,re=0,me=null;for(var t=0;t<l.length;t++)(0,l[t])()}}function F0(l,t){var a=[],e={status:"pending",value:null,reason:null,then:function(u){a.push(u)}};return l.then(function(){e.status="fulfilled",e.value=t;for(var u=0;u<a.length;u++)(0,a[u])(t)},function(u){for(e.status="rejected",e.reason=u,u=0;u<a.length;u++)(0,a[u])(void 0)}),e}var Bs=q.S;q.S=function(l,t){typeof t=="object"&&t!==null&&typeof t.then=="function"&&$0(l,t),Bs!==null&&Bs(l,t)};var Ha=gt(null);function qi(){var l=Ha.current;return l!==null?l:tl.pooledCache}function cn(l,t){t===null?ul(Ha,Ha.current):ul(Ha,t.pool)}function js(){var l=qi();return l===null?null:{parent:bl._currentValue,pool:l}}var It=0,X=null,F=null,hl=null,fn=!1,he=!1,Na=!1,sn=0,tu=0,ve=null,P0=0;function ml(){throw Error(o(321))}function Bi(l,t){if(t===null)return!1;for(var a=0;a<t.length&&a<l.length;a++)if(!Zl(l[a],t[a]))return!1;return!0}function ji(l,t,a,e,u,n){return It=n,X=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,q.H=l===null||l.memoizedState===null?Ra:la,Na=!1,n=a(e,u),Na=!1,he&&(n=Gs(t,a,e,u)),Ys(l),n}function Ys(l){q.H=At;var t=F!==null&&F.next!==null;if(It=0,hl=F=X=null,fn=!1,tu=0,ve=null,t)throw Error(o(300));l===null||El||(l=l.dependencies,l!==null&&bn(l)&&(El=!0))}function Gs(l,t,a,e){X=l;var u=0;do{if(he&&(ve=null),tu=0,he=!1,25<=u)throw Error(o(301));if(u+=1,hl=F=null,l.updateQueue!=null){var n=l.updateQueue;n.lastEffect=null,n.events=null,n.stores=null,n.memoCache!=null&&(n.memoCache.index=0)}q.H=Ca,n=t(a,e)}while(he);return n}function I0(){var l=q.H,t=l.useState()[0];return t=typeof t.then=="function"?au(t):t,l=l.useState()[0],(F!==null?F.memoizedState:null)!==l&&(X.flags|=1024),t}function Yi(){var l=sn!==0;return sn=0,l}function Gi(l,t,a){t.updateQueue=l.updateQueue,t.flags&=-2053,l.lanes&=~a}function Xi(l){if(fn){for(l=l.memoizedState;l!==null;){var t=l.queue;t!==null&&(t.pending=null),l=l.next}fn=!1}It=0,hl=F=X=null,he=!1,tu=sn=0,ve=null}function Bl(){var l={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return hl===null?X.memoizedState=hl=l:hl=hl.next=l,hl}function vl(){if(F===null){var l=X.alternate;l=l!==null?l.memoizedState:null}else l=F.next;var t=hl===null?X.memoizedState:hl.next;if(t!==null)hl=t,F=l;else{if(l===null)throw X.alternate===null?Error(o(467)):Error(o(310));F=l,l={memoizedState:F.memoizedState,baseState:F.baseState,baseQueue:F.baseQueue,queue:F.queue,next:null},hl===null?X.memoizedState=hl=l:hl=hl.next=l}return hl}var on;on=function(){return{lastEffect:null,events:null,stores:null,memoCache:null}};function au(l){var t=tu;return tu+=1,ve===null&&(ve=[]),l=Os(ve,l,t),t=X,(hl===null?t.memoizedState:hl.next)===null&&(t=t.alternate,q.H=t===null||t.memoizedState===null?Ra:la),l}function dn(l){if(l!==null&&typeof l=="object"){if(typeof l.then=="function")return au(l);if(l.$$typeof===R)return xl(l)}throw Error(o(438,String(l)))}function Qi(l){var t=null,a=X.updateQueue;if(a!==null&&(t=a.memoCache),t==null){var e=X.alternate;e!==null&&(e=e.updateQueue,e!==null&&(e=e.memoCache,e!=null&&(t={data:e.data.map(function(u){return u.slice()}),index:0})))}if(t==null&&(t={data:[],index:0}),a===null&&(a=on(),X.updateQueue=a),a.memoCache=t,a=t.data[t.index],a===void 0)for(a=t.data[t.index]=Array(l),e=0;e<l;e++)a[e]=st;return t.index++,a}function Nt(l,t){return typeof t=="function"?t(l):t}function rn(l){var t=vl();return Zi(t,F,l)}function Zi(l,t,a){var e=l.queue;if(e===null)throw Error(o(311));e.lastRenderedReducer=a;var u=l.baseQueue,n=e.pending;if(n!==null){if(u!==null){var i=u.next;u.next=n.next,n.next=i}t.baseQueue=u=n,e.pending=null}if(n=l.baseState,u===null)l.memoizedState=n;else{t=u.next;var c=i=null,s=null,m=t,E=!1;do{var z=m.lane&-536870913;if(z!==m.lane?(V&z)===z:(It&z)===z){var g=m.revertLane;if(g===0)s!==null&&(s=s.next={lane:0,revertLane:0,action:m.action,hasEagerState:m.hasEagerState,eagerState:m.eagerState,next:null}),z===re&&(E=!0);else if((It&g)===g){m=m.next,g===re&&(E=!0);continue}else z={lane:0,revertLane:m.revertLane,action:m.action,hasEagerState:m.hasEagerState,eagerState:m.eagerState,next:null},s===null?(c=s=z,i=n):s=s.next=z,X.lanes|=g,sa|=g;z=m.action,Na&&a(n,z),n=m.hasEagerState?m.eagerState:a(n,z)}else g={lane:z,revertLane:m.revertLane,action:m.action,hasEagerState:m.hasEagerState,eagerState:m.eagerState,next:null},s===null?(c=s=g,i=n):s=s.next=g,X.lanes|=z,sa|=z;m=m.next}while(m!==null&&m!==t);if(s===null?i=n:s.next=c,!Zl(n,l.memoizedState)&&(El=!0,E&&(a=me,a!==null)))throw a;l.memoizedState=n,l.baseState=i,l.baseQueue=s,e.lastRenderedState=n}return u===null&&(e.lanes=0),[l.memoizedState,e.dispatch]}function Li(l){var t=vl(),a=t.queue;if(a===null)throw Error(o(311));a.lastRenderedReducer=l;var e=a.dispatch,u=a.pending,n=t.memoizedState;if(u!==null){a.pending=null;var i=u=u.next;do n=l(n,i.action),i=i.next;while(i!==u);Zl(n,t.memoizedState)||(El=!0),t.memoizedState=n,t.baseQueue===null&&(t.baseState=n),a.lastRenderedState=n}return[n,e]}function Xs(l,t,a){var e=X,u=vl(),n=J;if(n){if(a===void 0)throw Error(o(407));a=a()}else a=t();var i=!Zl((F||u).memoizedState,a);if(i&&(u.memoizedState=a,El=!0),u=u.queue,Ki(Ls.bind(null,e,u,l),[l]),u.getSnapshot!==t||i||hl!==null&&hl.memoizedState.tag&1){if(e.flags|=2048,ye(9,Zs.bind(null,e,u,a,t),{destroy:void 0},null),tl===null)throw Error(o(349));n||(It&60)!==0||Qs(e,t,a)}return a}function Qs(l,t,a){l.flags|=16384,l={getSnapshot:t,value:a},t=X.updateQueue,t===null?(t=on(),X.updateQueue=t,t.stores=[l]):(a=t.stores,a===null?t.stores=[l]:a.push(l))}function Zs(l,t,a,e){t.value=a,t.getSnapshot=e,Vs(t)&&ws(l)}function Ls(l,t,a){return a(function(){Vs(t)&&ws(l)})}function Vs(l){var t=l.getSnapshot;l=l.value;try{var a=t();return!Zl(l,a)}catch{return!0}}function ws(l){var t=$t(l,2);t!==null&&Nl(t,l,2)}function Vi(l){var t=Bl();if(typeof l=="function"){var a=l;if(l=a(),Na){Jt(!0);try{a()}finally{Jt(!1)}}}return t.memoizedState=t.baseState=l,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Nt,lastRenderedState:l},t}function Ks(l,t,a,e){return l.baseState=a,Zi(l,F,typeof e=="function"?e:Nt)}function lm(l,t,a,e,u){if(vn(l))throw Error(o(485));if(l=t.action,l!==null){var n={payload:u,action:l,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(i){n.listeners.push(i)}};q.T!==null?a(!0):n.isTransition=!1,e(n),a=t.pending,a===null?(n.next=t.pending=n,Js(t,n)):(n.next=a.next,t.pending=a.next=n)}}function Js(l,t){var a=t.action,e=t.payload,u=l.state;if(t.isTransition){var n=q.T,i={};q.T=i;try{var c=a(u,e),s=q.S;s!==null&&s(i,c),ks(l,t,c)}catch(m){wi(l,t,m)}finally{q.T=n}}else try{n=a(u,e),ks(l,t,n)}catch(m){wi(l,t,m)}}function ks(l,t,a){a!==null&&typeof a=="object"&&typeof a.then=="function"?a.then(function(e){Ws(l,t,e)},function(e){return wi(l,t,e)}):Ws(l,t,a)}function Ws(l,t,a){t.status="fulfilled",t.value=a,$s(t),l.state=a,t=l.pending,t!==null&&(a=t.next,a===t?l.pending=null:(a=a.next,t.next=a,Js(l,a)))}function wi(l,t,a){var e=l.pending;if(l.pending=null,e!==null){e=e.next;do t.status="rejected",t.reason=a,$s(t),t=t.next;while(t!==e)}l.action=null}function $s(l){l=l.listeners;for(var t=0;t<l.length;t++)(0,l[t])()}function Fs(l,t){return t}function Ps(l,t){if(J){var a=tl.formState;if(a!==null){l:{var e=X;if(J){if(Ml){t:{for(var u=Ml,n=pt;u.nodeType!==8;){if(!n){u=null;break t}if(u=ht(u.nextSibling),u===null){u=null;break t}}n=u.data,u=n==="F!"||n==="F"?u:null}if(u){Ml=ht(u.nextSibling),e=u.data==="F!";break l}}xa(e)}e=!1}e&&(t=a[0])}}return a=Bl(),a.memoizedState=a.baseState=t,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Fs,lastRenderedState:t},a.queue=e,a=go.bind(null,X,e),e.dispatch=a,e=Vi(!1),n=Fi.bind(null,X,!1,e.queue),e=Bl(),u={state:t,dispatch:null,action:l,pending:null},e.queue=u,a=lm.bind(null,X,u,n,a),u.dispatch=a,e.memoizedState=l,[t,a,!1]}function Is(l){var t=vl();return lo(t,F,l)}function lo(l,t,a){t=Zi(l,t,Fs)[0],l=rn(Nt)[0],t=typeof t=="object"&&t!==null&&typeof t.then=="function"?au(t):t;var e=vl(),u=e.queue,n=u.dispatch;return a!==e.memoizedState&&(X.flags|=2048,ye(9,tm.bind(null,u,a),{destroy:void 0},null)),[t,n,l]}function tm(l,t){l.action=t}function to(l){var t=vl(),a=F;if(a!==null)return lo(t,a,l);vl(),t=t.memoizedState,a=vl();var e=a.queue.dispatch;return a.memoizedState=l,[t,e,!1]}function ye(l,t,a,e){return l={tag:l,create:t,inst:a,deps:e,next:null},t=X.updateQueue,t===null&&(t=on(),X.updateQueue=t),a=t.lastEffect,a===null?t.lastEffect=l.next=l:(e=a.next,a.next=l,l.next=e,t.lastEffect=l),l}function ao(){return vl().memoizedState}function mn(l,t,a,e){var u=Bl();X.flags|=l,u.memoizedState=ye(1|t,a,{destroy:void 0},e===void 0?null:e)}function hn(l,t,a,e){var u=vl();e=e===void 0?null:e;var n=u.memoizedState.inst;F!==null&&e!==null&&Bi(e,F.memoizedState.deps)?u.memoizedState=ye(t,a,n,e):(X.flags|=l,u.memoizedState=ye(1|t,a,n,e))}function eo(l,t){mn(8390656,8,l,t)}function Ki(l,t){hn(2048,8,l,t)}function uo(l,t){return hn(4,2,l,t)}function no(l,t){return hn(4,4,l,t)}function io(l,t){if(typeof t=="function"){l=l();var a=t(l);return function(){typeof a=="function"?a():t(null)}}if(t!=null)return l=l(),t.current=l,function(){t.current=null}}function co(l,t,a){a=a!=null?a.concat([l]):null,hn(4,4,io.bind(null,t,l),a)}function Ji(){}function fo(l,t){var a=vl();t=t===void 0?null:t;var e=a.memoizedState;return t!==null&&Bi(t,e[1])?e[0]:(a.memoizedState=[l,t],l)}function so(l,t){var a=vl();t=t===void 0?null:t;var e=a.memoizedState;if(t!==null&&Bi(t,e[1]))return e[0];if(e=l(),Na){Jt(!0);try{l()}finally{Jt(!1)}}return a.memoizedState=[e,t],e}function ki(l,t,a){return a===void 0||(It&1073741824)!==0?l.memoizedState=t:(l.memoizedState=a,l=rd(),X.lanes|=l,sa|=l,a)}function oo(l,t,a,e){return Zl(a,t)?a:de.current!==null?(l=ki(l,a,e),Zl(l,t)||(El=!0),l):(It&42)===0?(El=!0,l.memoizedState=a):(l=rd(),X.lanes|=l,sa|=l,t)}function ro(l,t,a,e,u){var n=w.p;w.p=n!==0&&8>n?n:8;var i=q.T,c={};q.T=c,Fi(l,!1,t,a);try{var s=u(),m=q.S;if(m!==null&&m(c,s),s!==null&&typeof s=="object"&&typeof s.then=="function"){var E=F0(s,e);eu(l,t,E,Kl(l))}else eu(l,t,e,Kl(l))}catch(z){eu(l,t,{then:function(){},status:"rejected",reason:z},Kl())}finally{w.p=n,q.T=i}}function am(){}function Wi(l,t,a,e){if(l.tag!==5)throw Error(o(476));var u=mo(l).queue;ro(l,u,t,kl,a===null?am:function(){return ho(l),a(e)})}function mo(l){var t=l.memoizedState;if(t!==null)return t;t={memoizedState:kl,baseState:kl,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Nt,lastRenderedState:kl},next:null};var a={};return t.next={memoizedState:a,baseState:a,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Nt,lastRenderedState:a},next:null},l.memoizedState=t,l=l.alternate,l!==null&&(l.memoizedState=t),t}function ho(l){var t=mo(l).next.queue;eu(l,t,{},Kl())}function $i(){return xl(zu)}function vo(){return vl().memoizedState}function yo(){return vl().memoizedState}function em(l){for(var t=l.return;t!==null;){switch(t.tag){case 24:case 3:var a=Kl();l=ea(a);var e=ua(t,l,a);e!==null&&(Nl(e,t,a),iu(e,t,a)),t={cache:Ri()},l.payload=t;return}t=t.return}}function um(l,t,a){var e=Kl();a={lane:e,revertLane:0,action:a,hasEagerState:!1,eagerState:null,next:null},vn(l)?bo(t,a):(a=Di(l,t,a,e),a!==null&&(Nl(a,l,e),So(a,t,e)))}function go(l,t,a){var e=Kl();eu(l,t,a,e)}function eu(l,t,a,e){var u={lane:e,revertLane:0,action:a,hasEagerState:!1,eagerState:null,next:null};if(vn(l))bo(t,u);else{var n=l.alternate;if(l.lanes===0&&(n===null||n.lanes===0)&&(n=t.lastRenderedReducer,n!==null))try{var i=t.lastRenderedState,c=n(i,a);if(u.hasEagerState=!0,u.eagerState=c,Zl(c,i))return Fu(l,t,u,0),tl===null&&$u(),!1}catch{}finally{}if(a=Di(l,t,u,e),a!==null)return Nl(a,l,e),So(a,t,e),!0}return!1}function Fi(l,t,a,e){if(e={lane:2,revertLane:Xc(),action:e,hasEagerState:!1,eagerState:null,next:null},vn(l)){if(t)throw Error(o(479))}else t=Di(l,a,e,2),t!==null&&Nl(t,l,2)}function vn(l){var t=l.alternate;return l===X||t!==null&&t===X}function bo(l,t){he=fn=!0;var a=l.pending;a===null?t.next=t:(t.next=a.next,a.next=t),l.pending=t}function So(l,t,a){if((a&4194176)!==0){var e=t.lanes;e&=l.pendingLanes,a|=e,t.lanes=a,xf(l,a)}}var At={readContext:xl,use:dn,useCallback:ml,useContext:ml,useEffect:ml,useImperativeHandle:ml,useLayoutEffect:ml,useInsertionEffect:ml,useMemo:ml,useReducer:ml,useRef:ml,useState:ml,useDebugValue:ml,useDeferredValue:ml,useTransition:ml,useSyncExternalStore:ml,useId:ml};At.useCacheRefresh=ml,At.useMemoCache=ml,At.useHostTransitionStatus=ml,At.useFormState=ml,At.useActionState=ml,At.useOptimistic=ml;var Ra={readContext:xl,use:dn,useCallback:function(l,t){return Bl().memoizedState=[l,t===void 0?null:t],l},useContext:xl,useEffect:eo,useImperativeHandle:function(l,t,a){a=a!=null?a.concat([l]):null,mn(4194308,4,io.bind(null,t,l),a)},useLayoutEffect:function(l,t){return mn(4194308,4,l,t)},useInsertionEffect:function(l,t){mn(4,2,l,t)},useMemo:function(l,t){var a=Bl();t=t===void 0?null:t;var e=l();if(Na){Jt(!0);try{l()}finally{Jt(!1)}}return a.memoizedState=[e,t],e},useReducer:function(l,t,a){var e=Bl();if(a!==void 0){var u=a(t);if(Na){Jt(!0);try{a(t)}finally{Jt(!1)}}}else u=t;return e.memoizedState=e.baseState=u,l={pending:null,lanes:0,dispatch:null,lastRenderedReducer:l,lastRenderedState:u},e.queue=l,l=l.dispatch=um.bind(null,X,l),[e.memoizedState,l]},useRef:function(l){var t=Bl();return l={current:l},t.memoizedState=l},useState:function(l){l=Vi(l);var t=l.queue,a=go.bind(null,X,t);return t.dispatch=a,[l.memoizedState,a]},useDebugValue:Ji,useDeferredValue:function(l,t){var a=Bl();return ki(a,l,t)},useTransition:function(){var l=Vi(!1);return l=ro.bind(null,X,l.queue,!0,!1),Bl().memoizedState=l,[!1,l]},useSyncExternalStore:function(l,t,a){var e=X,u=Bl();if(J){if(a===void 0)throw Error(o(407));a=a()}else{if(a=t(),tl===null)throw Error(o(349));(V&60)!==0||Qs(e,t,a)}u.memoizedState=a;var n={value:a,getSnapshot:t};return u.queue=n,eo(Ls.bind(null,e,n,l),[l]),e.flags|=2048,ye(9,Zs.bind(null,e,n,a,t),{destroy:void 0},null),a},useId:function(){var l=Bl(),t=tl.identifierPrefix;if(J){var a=Ut,e=xt;a=(e&~(1<<32-Ql(e)-1)).toString(32)+a,t=":"+t+"R"+a,a=sn++,0<a&&(t+="H"+a.toString(32)),t+=":"}else a=P0++,t=":"+t+"r"+a.toString(32)+":";return l.memoizedState=t},useCacheRefresh:function(){return Bl().memoizedState=em.bind(null,X)}};Ra.useMemoCache=Qi,Ra.useHostTransitionStatus=$i,Ra.useFormState=Ps,Ra.useActionState=Ps,Ra.useOptimistic=function(l){var t=Bl();t.memoizedState=t.baseState=l;var a={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=a,t=Fi.bind(null,X,!0,a),a.dispatch=t,[l,t]};var la={readContext:xl,use:dn,useCallback:fo,useContext:xl,useEffect:Ki,useImperativeHandle:co,useInsertionEffect:uo,useLayoutEffect:no,useMemo:so,useReducer:rn,useRef:ao,useState:function(){return rn(Nt)},useDebugValue:Ji,useDeferredValue:function(l,t){var a=vl();return oo(a,F.memoizedState,l,t)},useTransition:function(){var l=rn(Nt)[0],t=vl().memoizedState;return[typeof l=="boolean"?l:au(l),t]},useSyncExternalStore:Xs,useId:vo};la.useCacheRefresh=yo,la.useMemoCache=Qi,la.useHostTransitionStatus=$i,la.useFormState=Is,la.useActionState=Is,la.useOptimistic=function(l,t){var a=vl();return Ks(a,F,l,t)};var Ca={readContext:xl,use:dn,useCallback:fo,useContext:xl,useEffect:Ki,useImperativeHandle:co,useInsertionEffect:uo,useLayoutEffect:no,useMemo:so,useReducer:Li,useRef:ao,useState:function(){return Li(Nt)},useDebugValue:Ji,useDeferredValue:function(l,t){var a=vl();return F===null?ki(a,l,t):oo(a,F.memoizedState,l,t)},useTransition:function(){var l=Li(Nt)[0],t=vl().memoizedState;return[typeof l=="boolean"?l:au(l),t]},useSyncExternalStore:Xs,useId:vo};Ca.useCacheRefresh=yo,Ca.useMemoCache=Qi,Ca.useHostTransitionStatus=$i,Ca.useFormState=to,Ca.useActionState=to,Ca.useOptimistic=function(l,t){var a=vl();return F!==null?Ks(a,F,l,t):(a.baseState=l,[l,a.queue.dispatch])};function Pi(l,t,a,e){t=l.memoizedState,a=a(e,t),a=a==null?t:W({},t,a),l.memoizedState=a,l.lanes===0&&(l.updateQueue.baseState=a)}var Ii={isMounted:function(l){return(l=l._reactInternals)?B(l)===l:!1},enqueueSetState:function(l,t,a){l=l._reactInternals;var e=Kl(),u=ea(e);u.payload=t,a!=null&&(u.callback=a),t=ua(l,u,e),t!==null&&(Nl(t,l,e),iu(t,l,e))},enqueueReplaceState:function(l,t,a){l=l._reactInternals;var e=Kl(),u=ea(e);u.tag=1,u.payload=t,a!=null&&(u.callback=a),t=ua(l,u,e),t!==null&&(Nl(t,l,e),iu(t,l,e))},enqueueForceUpdate:function(l,t){l=l._reactInternals;var a=Kl(),e=ea(a);e.tag=2,t!=null&&(e.callback=t),t=ua(l,e,a),t!==null&&(Nl(t,l,a),iu(t,l,a))}};function po(l,t,a,e,u,n,i){return l=l.stateNode,typeof l.shouldComponentUpdate=="function"?l.shouldComponentUpdate(e,n,i):t.prototype&&t.prototype.isPureReactComponent?!Ve(a,e)||!Ve(u,n):!0}function Eo(l,t,a,e){l=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(a,e),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(a,e),t.state!==l&&Ii.enqueueReplaceState(t,t.state,null)}function qa(l,t){var a=t;if("ref"in t){a={};for(var e in t)e!=="ref"&&(a[e]=t[e])}if(l=l.defaultProps){a===t&&(a=W({},a));for(var u in l)a[u]===void 0&&(a[u]=l[u])}return a}var yn=typeof reportError=="function"?reportError:function(l){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var t=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof l=="object"&&l!==null&&typeof l.message=="string"?String(l.message):String(l),error:l});if(!window.dispatchEvent(t))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",l);return}console.error(l)};function Ao(l){yn(l)}function zo(l){console.error(l)}function Mo(l){yn(l)}function gn(l,t){try{var a=l.onUncaughtError;a(t.value,{componentStack:t.stack})}catch(e){setTimeout(function(){throw e})}}function To(l,t,a){try{var e=l.onCaughtError;e(a.value,{componentStack:a.stack,errorBoundary:t.tag===1?t.stateNode:null})}catch(u){setTimeout(function(){throw u})}}function lc(l,t,a){return a=ea(a),a.tag=3,a.payload={element:null},a.callback=function(){gn(l,t)},a}function Do(l){return l=ea(l),l.tag=3,l}function _o(l,t,a,e){var u=a.type.getDerivedStateFromError;if(typeof u=="function"){var n=e.value;l.payload=function(){return u(n)},l.callback=function(){To(t,a,e)}}var i=a.stateNode;i!==null&&typeof i.componentDidCatch=="function"&&(l.callback=function(){To(t,a,e),typeof u!="function"&&(oa===null?oa=new Set([this]):oa.add(this));var c=e.stack;this.componentDidCatch(e.value,{componentStack:c!==null?c:""})})}function nm(l,t,a,e,u){if(a.flags|=32768,e!==null&&typeof e=="object"&&typeof e.then=="function"){if(t=a.alternate,t!==null&&nu(t,a,u,!0),a=tt.current,a!==null){switch(a.tag){case 13:return Et===null?qc():a.alternate===null&&sl===0&&(sl=3),a.flags&=-257,a.flags|=65536,a.lanes=u,e===Ui?a.flags|=16384:(t=a.updateQueue,t===null?a.updateQueue=new Set([e]):t.add(e),jc(l,e,u)),!1;case 22:return a.flags|=65536,e===Ui?a.flags|=16384:(t=a.updateQueue,t===null?(t={transitions:null,markerInstances:null,retryQueue:new Set([e])},a.updateQueue=t):(a=t.retryQueue,a===null?t.retryQueue=new Set([e]):a.add(e)),jc(l,e,u)),!1}throw Error(o(435,a.tag))}return jc(l,e,u),qc(),!1}if(J)return t=tt.current,t!==null?((t.flags&65536)===0&&(t.flags|=256),t.flags|=65536,t.lanes=u,e!==xi&&(l=Error(o(422),{cause:e}),ke(Pl(l,a)))):(e!==xi&&(t=Error(o(423),{cause:e}),ke(Pl(t,a))),l=l.current.alternate,l.flags|=65536,u&=-u,l.lanes|=u,e=Pl(e,a),u=lc(l.stateNode,e,u),vc(l,u),sl!==4&&(sl=2)),!1;var n=Error(o(520),{cause:e});if(n=Pl(n,a),hu===null?hu=[n]:hu.push(n),sl!==4&&(sl=2),t===null)return!0;e=Pl(e,a),a=t;do{switch(a.tag){case 3:return a.flags|=65536,l=u&-u,a.lanes|=l,l=lc(a.stateNode,e,l),vc(a,l),!1;case 1:if(t=a.type,n=a.stateNode,(a.flags&128)===0&&(typeof t.getDerivedStateFromError=="function"||n!==null&&typeof n.componentDidCatch=="function"&&(oa===null||!oa.has(n))))return a.flags|=65536,u&=-u,a.lanes|=u,u=Do(u),_o(u,l,a,e),vc(a,u),!1}a=a.return}while(a!==null);return!1}var Oo=Error(o(461)),El=!1;function Tl(l,t,a,e){t.child=l===null?Ns(t,null,a,e):Ua(t,l.child,a,e)}function xo(l,t,a,e,u){a=a.render;var n=t.ref;if("ref"in e){var i={};for(var c in e)c!=="ref"&&(i[c]=e[c])}else i=e;return ja(t),e=ji(l,t,a,i,n,u),c=Yi(),l!==null&&!El?(Gi(l,t,u),Rt(l,t,u)):(J&&c&&_i(t),t.flags|=1,Tl(l,t,e,u),t.child)}function Uo(l,t,a,e,u){if(l===null){var n=a.type;return typeof n=="function"&&!zc(n)&&n.defaultProps===void 0&&a.compare===null?(t.tag=15,t.type=n,Ho(l,t,n,e,u)):(l=An(a.type,null,e,t,t.mode,u),l.ref=t.ref,l.return=t,t.child=l)}if(n=l.child,!sc(l,u)){var i=n.memoizedProps;if(a=a.compare,a=a!==null?a:Ve,a(i,e)&&l.ref===t.ref)return Rt(l,t,u)}return t.flags|=1,l=fa(n,e),l.ref=t.ref,l.return=t,t.child=l}function Ho(l,t,a,e,u){if(l!==null){var n=l.memoizedProps;if(Ve(n,e)&&l.ref===t.ref)if(El=!1,t.pendingProps=e=n,sc(l,u))(l.flags&131072)!==0&&(El=!0);else return t.lanes=l.lanes,Rt(l,t,u)}return tc(l,t,a,e,u)}function No(l,t,a){var e=t.pendingProps,u=e.children,n=(t.stateNode._pendingVisibility&2)!==0,i=l!==null?l.memoizedState:null;if(uu(l,t),e.mode==="hidden"||n){if((t.flags&128)!==0){if(e=i!==null?i.baseLanes|a:a,l!==null){for(u=t.child=l.child,n=0;u!==null;)n=n|u.lanes|u.childLanes,u=u.sibling;t.childLanes=n&~e}else t.childLanes=0,t.child=null;return Ro(l,t,e,a)}if((a&536870912)!==0)t.memoizedState={baseLanes:0,cachePool:null},l!==null&&cn(t,i!==null?i.cachePool:null),i!==null?Rs(t,i):Hi(),Cs(t);else return t.lanes=t.childLanes=536870912,Ro(l,t,i!==null?i.baseLanes|a:a,a)}else i!==null?(cn(t,i.cachePool),Rs(t,i),Pt(),t.memoizedState=null):(l!==null&&cn(t,null),Hi(),Pt());return Tl(l,t,u,a),t.child}function Ro(l,t,a,e){var u=qi();return u=u===null?null:{parent:bl._currentValue,pool:u},t.memoizedState={baseLanes:a,cachePool:u},l!==null&&cn(t,null),Hi(),Cs(t),l!==null&&nu(l,t,e,!0),null}function uu(l,t){var a=t.ref;if(a===null)l!==null&&l.ref!==null&&(t.flags|=2097664);else{if(typeof a!="function"&&typeof a!="object")throw Error(o(284));(l===null||l.ref!==a)&&(t.flags|=2097664)}}function tc(l,t,a,e,u){return ja(t),a=ji(l,t,a,e,void 0,u),e=Yi(),l!==null&&!El?(Gi(l,t,u),Rt(l,t,u)):(J&&e&&_i(t),t.flags|=1,Tl(l,t,a,u),t.child)}function Co(l,t,a,e,u,n){return ja(t),t.updateQueue=null,a=Gs(t,e,a,u),Ys(l),e=Yi(),l!==null&&!El?(Gi(l,t,n),Rt(l,t,n)):(J&&e&&_i(t),t.flags|=1,Tl(l,t,a,n),t.child)}function qo(l,t,a,e,u){if(ja(t),t.stateNode===null){var n=ce,i=a.contextType;typeof i=="object"&&i!==null&&(n=xl(i)),n=new a(e,n),t.memoizedState=n.state!==null&&n.state!==void 0?n.state:null,n.updater=Ii,t.stateNode=n,n._reactInternals=t,n=t.stateNode,n.props=e,n.state=t.memoizedState,n.refs={},mc(t),i=a.contextType,n.context=typeof i=="object"&&i!==null?xl(i):ce,n.state=t.memoizedState,i=a.getDerivedStateFromProps,typeof i=="function"&&(Pi(t,a,i,e),n.state=t.memoizedState),typeof a.getDerivedStateFromProps=="function"||typeof n.getSnapshotBeforeUpdate=="function"||typeof n.UNSAFE_componentWillMount!="function"&&typeof n.componentWillMount!="function"||(i=n.state,typeof n.componentWillMount=="function"&&n.componentWillMount(),typeof n.UNSAFE_componentWillMount=="function"&&n.UNSAFE_componentWillMount(),i!==n.state&&Ii.enqueueReplaceState(n,n.state,null),fu(t,e,n,u),cu(),n.state=t.memoizedState),typeof n.componentDidMount=="function"&&(t.flags|=4194308),e=!0}else if(l===null){n=t.stateNode;var c=t.memoizedProps,s=qa(a,c);n.props=s;var m=n.context,E=a.contextType;i=ce,typeof E=="object"&&E!==null&&(i=xl(E));var z=a.getDerivedStateFromProps;E=typeof z=="function"||typeof n.getSnapshotBeforeUpdate=="function",c=t.pendingProps!==c,E||typeof n.UNSAFE_componentWillReceiveProps!="function"&&typeof n.componentWillReceiveProps!="function"||(c||m!==i)&&Eo(t,n,e,i),aa=!1;var g=t.memoizedState;n.state=g,fu(t,e,n,u),cu(),m=t.memoizedState,c||g!==m||aa?(typeof z=="function"&&(Pi(t,a,z,e),m=t.memoizedState),(s=aa||po(t,a,s,e,g,m,i))?(E||typeof n.UNSAFE_componentWillMount!="function"&&typeof n.componentWillMount!="function"||(typeof n.componentWillMount=="function"&&n.componentWillMount(),typeof n.UNSAFE_componentWillMount=="function"&&n.UNSAFE_componentWillMount()),typeof n.componentDidMount=="function"&&(t.flags|=4194308)):(typeof n.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=e,t.memoizedState=m),n.props=e,n.state=m,n.context=i,e=s):(typeof n.componentDidMount=="function"&&(t.flags|=4194308),e=!1)}else{n=t.stateNode,hc(l,t),i=t.memoizedProps,E=qa(a,i),n.props=E,z=t.pendingProps,g=n.context,m=a.contextType,s=ce,typeof m=="object"&&m!==null&&(s=xl(m)),c=a.getDerivedStateFromProps,(m=typeof c=="function"||typeof n.getSnapshotBeforeUpdate=="function")||typeof n.UNSAFE_componentWillReceiveProps!="function"&&typeof n.componentWillReceiveProps!="function"||(i!==z||g!==s)&&Eo(t,n,e,s),aa=!1,g=t.memoizedState,n.state=g,fu(t,e,n,u),cu();var p=t.memoizedState;i!==z||g!==p||aa||l!==null&&l.dependencies!==null&&bn(l.dependencies)?(typeof c=="function"&&(Pi(t,a,c,e),p=t.memoizedState),(E=aa||po(t,a,E,e,g,p,s)||l!==null&&l.dependencies!==null&&bn(l.dependencies))?(m||typeof n.UNSAFE_componentWillUpdate!="function"&&typeof n.componentWillUpdate!="function"||(typeof n.componentWillUpdate=="function"&&n.componentWillUpdate(e,p,s),typeof n.UNSAFE_componentWillUpdate=="function"&&n.UNSAFE_componentWillUpdate(e,p,s)),typeof n.componentDidUpdate=="function"&&(t.flags|=4),typeof n.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof n.componentDidUpdate!="function"||i===l.memoizedProps&&g===l.memoizedState||(t.flags|=4),typeof n.getSnapshotBeforeUpdate!="function"||i===l.memoizedProps&&g===l.memoizedState||(t.flags|=1024),t.memoizedProps=e,t.memoizedState=p),n.props=e,n.state=p,n.context=s,e=E):(typeof n.componentDidUpdate!="function"||i===l.memoizedProps&&g===l.memoizedState||(t.flags|=4),typeof n.getSnapshotBeforeUpdate!="function"||i===l.memoizedProps&&g===l.memoizedState||(t.flags|=1024),e=!1)}return n=e,uu(l,t),e=(t.flags&128)!==0,n||e?(n=t.stateNode,a=e&&typeof a.getDerivedStateFromError!="function"?null:n.render(),t.flags|=1,l!==null&&e?(t.child=Ua(t,l.child,null,u),t.child=Ua(t,null,a,u)):Tl(l,t,a,u),t.memoizedState=n.state,l=t.child):l=Rt(l,t,u),l}function Bo(l,t,a,e){return Je(),t.flags|=256,Tl(l,t,a,e),t.child}var ac={dehydrated:null,treeContext:null,retryLane:0};function ec(l){return{baseLanes:l,cachePool:js()}}function uc(l,t,a){return l=l!==null?l.childLanes&~a:0,t&&(l|=nt),l}function jo(l,t,a){var e=t.pendingProps,u=!1,n=(t.flags&128)!==0,i;if((i=n)||(i=l!==null&&l.memoizedState===null?!1:(gl.current&2)!==0),i&&(u=!0,t.flags&=-129),i=(t.flags&32)!==0,t.flags&=-33,l===null){if(J){if(u?Ft(t):Pt(),J){var c=Ml,s;if(s=c){l:{for(s=c,c=pt;s.nodeType!==8;){if(!c){c=null;break l}if(s=ht(s.nextSibling),s===null){c=null;break l}}c=s}c!==null?(t.memoizedState={dehydrated:c,treeContext:_a!==null?{id:xt,overflow:Ut}:null,retryLane:536870912},s=ut(18,null,null,0),s.stateNode=c,s.return=t,t.child=s,Hl=t,Ml=null,s=!0):s=!1}s||xa(t)}if(c=t.memoizedState,c!==null&&(c=c.dehydrated,c!==null))return c.data==="$!"?t.lanes=16:t.lanes=536870912,null;Ht(t)}return c=e.children,e=e.fallback,u?(Pt(),u=t.mode,c=ic({mode:"hidden",children:c},u),e=Ga(e,u,a,null),c.return=t,e.return=t,c.sibling=e,t.child=c,u=t.child,u.memoizedState=ec(a),u.childLanes=uc(l,i,a),t.memoizedState=ac,e):(Ft(t),nc(t,c))}if(s=l.memoizedState,s!==null&&(c=s.dehydrated,c!==null)){if(n)t.flags&256?(Ft(t),t.flags&=-257,t=cc(l,t,a)):t.memoizedState!==null?(Pt(),t.child=l.child,t.flags|=128,t=null):(Pt(),u=e.fallback,c=t.mode,e=ic({mode:"visible",children:e.children},c),u=Ga(u,c,a,null),u.flags|=2,e.return=t,u.return=t,e.sibling=u,t.child=e,Ua(t,l.child,null,a),e=t.child,e.memoizedState=ec(a),e.childLanes=uc(l,i,a),t.memoizedState=ac,t=u);else if(Ft(t),c.data==="$!"){if(i=c.nextSibling&&c.nextSibling.dataset,i)var m=i.dgst;i=m,e=Error(o(419)),e.stack="",e.digest=i,ke({value:e,source:null,stack:null}),t=cc(l,t,a)}else if(El||nu(l,t,a,!1),i=(a&l.childLanes)!==0,El||i){if(i=tl,i!==null){if(e=a&-a,(e&42)!==0)e=1;else switch(e){case 2:e=1;break;case 8:e=4;break;case 32:e=16;break;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:case 4194304:case 8388608:case 16777216:case 33554432:e=64;break;case 268435456:e=134217728;break;default:e=0}if(e=(e&(i.suspendedLanes|a))!==0?0:e,e!==0&&e!==s.retryLane)throw s.retryLane=e,$t(l,e),Nl(i,l,e),Oo}c.data==="$?"||qc(),t=cc(l,t,a)}else c.data==="$?"?(t.flags|=128,t.child=l.child,t=pm.bind(null,l),c._reactRetry=t,t=null):(l=s.treeContext,Ml=ht(c.nextSibling),Hl=t,J=!0,rt=null,pt=!1,l!==null&&(Il[lt++]=xt,Il[lt++]=Ut,Il[lt++]=_a,xt=l.id,Ut=l.overflow,_a=t),t=nc(t,e.children),t.flags|=4096);return t}return u?(Pt(),u=e.fallback,c=t.mode,s=l.child,m=s.sibling,e=fa(s,{mode:"hidden",children:e.children}),e.subtreeFlags=s.subtreeFlags&31457280,m!==null?u=fa(m,u):(u=Ga(u,c,a,null),u.flags|=2),u.return=t,e.return=t,e.sibling=u,t.child=e,e=u,u=t.child,c=l.child.memoizedState,c===null?c=ec(a):(s=c.cachePool,s!==null?(m=bl._currentValue,s=s.parent!==m?{parent:m,pool:m}:s):s=js(),c={baseLanes:c.baseLanes|a,cachePool:s}),u.memoizedState=c,u.childLanes=uc(l,i,a),t.memoizedState=ac,e):(Ft(t),a=l.child,l=a.sibling,a=fa(a,{mode:"visible",children:e.children}),a.return=t,a.sibling=null,l!==null&&(i=t.deletions,i===null?(t.deletions=[l],t.flags|=16):i.push(l)),t.child=a,t.memoizedState=null,a)}function nc(l,t){return t=ic({mode:"visible",children:t},l.mode),t.return=l,l.child=t}function ic(l,t){return sd(l,t,0,null)}function cc(l,t,a){return Ua(t,l.child,null,a),l=nc(t,t.pendingProps.children),l.flags|=2,t.memoizedState=null,l}function Yo(l,t,a){l.lanes|=t;var e=l.alternate;e!==null&&(e.lanes|=t),dc(l.return,t,a)}function fc(l,t,a,e,u){var n=l.memoizedState;n===null?l.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:e,tail:a,tailMode:u}:(n.isBackwards=t,n.rendering=null,n.renderingStartTime=0,n.last=e,n.tail=a,n.tailMode=u)}function Go(l,t,a){var e=t.pendingProps,u=e.revealOrder,n=e.tail;if(Tl(l,t,e.children,a),e=gl.current,(e&2)!==0)e=e&1|2,t.flags|=128;else{if(l!==null&&(l.flags&128)!==0)l:for(l=t.child;l!==null;){if(l.tag===13)l.memoizedState!==null&&Yo(l,a,t);else if(l.tag===19)Yo(l,a,t);else if(l.child!==null){l.child.return=l,l=l.child;continue}if(l===t)break l;for(;l.sibling===null;){if(l.return===null||l.return===t)break l;l=l.return}l.sibling.return=l.return,l=l.sibling}e&=1}switch(ul(gl,e),u){case"forwards":for(a=t.child,u=null;a!==null;)l=a.alternate,l!==null&&nn(l)===null&&(u=a),a=a.sibling;a=u,a===null?(u=t.child,t.child=null):(u=a.sibling,a.sibling=null),fc(t,!1,u,a,n);break;case"backwards":for(a=null,u=t.child,t.child=null;u!==null;){if(l=u.alternate,l!==null&&nn(l)===null){t.child=u;break}l=u.sibling,u.sibling=a,a=u,u=l}fc(t,!0,a,null,n);break;case"together":fc(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function Rt(l,t,a){if(l!==null&&(t.dependencies=l.dependencies),sa|=t.lanes,(a&t.childLanes)===0)if(l!==null){if(nu(l,t,a,!1),(a&t.childLanes)===0)return null}else return null;if(l!==null&&t.child!==l.child)throw Error(o(153));if(t.child!==null){for(l=t.child,a=fa(l,l.pendingProps),t.child=a,a.return=t;l.sibling!==null;)l=l.sibling,a=a.sibling=fa(l,l.pendingProps),a.return=t;a.sibling=null}return t.child}function sc(l,t){return(l.lanes&t)!==0?!0:(l=l.dependencies,!!(l!==null&&bn(l)))}function im(l,t,a){switch(t.tag){case 3:Ru(t,t.stateNode.containerInfo),ta(t,bl,l.memoizedState.cache),Je();break;case 27:case 5:In(t);break;case 4:Ru(t,t.stateNode.containerInfo);break;case 10:ta(t,t.type,t.memoizedProps.value);break;case 13:var e=t.memoizedState;if(e!==null)return e.dehydrated!==null?(Ft(t),t.flags|=128,null):(a&t.child.childLanes)!==0?jo(l,t,a):(Ft(t),l=Rt(l,t,a),l!==null?l.sibling:null);Ft(t);break;case 19:var u=(l.flags&128)!==0;if(e=(a&t.childLanes)!==0,e||(nu(l,t,a,!1),e=(a&t.childLanes)!==0),u){if(e)return Go(l,t,a);t.flags|=128}if(u=t.memoizedState,u!==null&&(u.rendering=null,u.tail=null,u.lastEffect=null),ul(gl,gl.current),e)break;return null;case 22:case 23:return t.lanes=0,No(l,t,a);case 24:ta(t,bl,l.memoizedState.cache)}return Rt(l,t,a)}function Xo(l,t,a){if(l!==null)if(l.memoizedProps!==t.pendingProps)El=!0;else{if(!sc(l,a)&&(t.flags&128)===0)return El=!1,im(l,t,a);El=(l.flags&131072)!==0}else El=!1,J&&(t.flags&1048576)!==0&&zs(t,ln,t.index);switch(t.lanes=0,t.tag){case 16:l:{l=t.pendingProps;var e=t.elementType,u=e._init;if(e=u(e._payload),t.type=e,typeof e=="function")zc(e)?(l=qa(e,l),t.tag=1,t=qo(null,t,e,l,a)):(t.tag=0,t=tc(null,t,e,l,a));else{if(e!=null){if(u=e.$$typeof,u===Yl){t.tag=11,t=xo(null,t,e,l,a);break l}else if(u===Ul){t.tag=14,t=Uo(null,t,e,l,a);break l}}throw t=ot(e)||e,Error(o(306,t,""))}}return t;case 0:return tc(l,t,t.type,t.pendingProps,a);case 1:return e=t.type,u=qa(e,t.pendingProps),qo(l,t,e,u,a);case 3:l:{if(Ru(t,t.stateNode.containerInfo),l===null)throw Error(o(387));var n=t.pendingProps;u=t.memoizedState,e=u.element,hc(l,t),fu(t,n,null,a);var i=t.memoizedState;if(n=i.cache,ta(t,bl,n),n!==u.cache&&rc(t,[bl],a,!0),cu(),n=i.element,u.isDehydrated)if(u={element:n,isDehydrated:!1,cache:i.cache},t.updateQueue.baseState=u,t.memoizedState=u,t.flags&256){t=Bo(l,t,n,a);break l}else if(n!==e){e=Pl(Error(o(424)),t),ke(e),t=Bo(l,t,n,a);break l}else for(Ml=ht(t.stateNode.containerInfo.firstChild),Hl=t,J=!0,rt=null,pt=!0,a=Ns(t,null,n,a),t.child=a;a;)a.flags=a.flags&-3|4096,a=a.sibling;else{if(Je(),n===e){t=Rt(l,t,a);break l}Tl(l,t,n,a)}t=t.child}return t;case 26:return uu(l,t),l===null?(a=Ld(t.type,null,t.pendingProps,null))?t.memoizedState=a:J||(a=t.type,l=t.pendingProps,e=Cn(Kt.current).createElement(a),e[Ol]=t,e[Cl]=l,Dl(e,a,l),pl(e),t.stateNode=e):t.memoizedState=Ld(t.type,l.memoizedProps,t.pendingProps,l.memoizedState),null;case 27:return In(t),l===null&&J&&(e=t.stateNode=Xd(t.type,t.pendingProps,Kt.current),Hl=t,pt=!0,Ml=ht(e.firstChild)),e=t.pendingProps.children,l!==null||J?Tl(l,t,e,a):t.child=Ua(t,null,e,a),uu(l,t),t.child;case 5:return l===null&&J&&((u=e=Ml)&&(e=Bm(e,t.type,t.pendingProps,pt),e!==null?(t.stateNode=e,Hl=t,Ml=ht(e.firstChild),pt=!1,u=!0):u=!1),u||xa(t)),In(t),u=t.type,n=t.pendingProps,i=l!==null?l.memoizedProps:null,e=n.children,Wc(u,n)?e=null:i!==null&&Wc(u,i)&&(t.flags|=32),t.memoizedState!==null&&(u=ji(l,t,I0,null,null,a),zu._currentValue=u),uu(l,t),Tl(l,t,e,a),t.child;case 6:return l===null&&J&&((l=a=Ml)&&(a=jm(a,t.pendingProps,pt),a!==null?(t.stateNode=a,Hl=t,Ml=null,l=!0):l=!1),l||xa(t)),null;case 13:return jo(l,t,a);case 4:return Ru(t,t.stateNode.containerInfo),e=t.pendingProps,l===null?t.child=Ua(t,null,e,a):Tl(l,t,e,a),t.child;case 11:return xo(l,t,t.type,t.pendingProps,a);case 7:return Tl(l,t,t.pendingProps,a),t.child;case 8:return Tl(l,t,t.pendingProps.children,a),t.child;case 12:return Tl(l,t,t.pendingProps.children,a),t.child;case 10:return e=t.pendingProps,ta(t,t.type,e.value),Tl(l,t,e.children,a),t.child;case 9:return u=t.type._context,e=t.pendingProps.children,ja(t),u=xl(u),e=e(u),t.flags|=1,Tl(l,t,e,a),t.child;case 14:return Uo(l,t,t.type,t.pendingProps,a);case 15:return Ho(l,t,t.type,t.pendingProps,a);case 19:return Go(l,t,a);case 22:return No(l,t,a);case 24:return ja(t),e=xl(bl),l===null?(u=qi(),u===null&&(u=tl,n=Ri(),u.pooledCache=n,n.refCount++,n!==null&&(u.pooledCacheLanes|=a),u=n),t.memoizedState={parent:e,cache:u},mc(t),ta(t,bl,u)):((l.lanes&a)!==0&&(hc(l,t),fu(t,null,null,a),cu()),u=l.memoizedState,n=t.memoizedState,u.parent!==e?(u={parent:e,cache:e},t.memoizedState=u,t.lanes===0&&(t.memoizedState=t.updateQueue.baseState=u),ta(t,bl,e)):(e=n.cache,ta(t,bl,e),e!==u.cache&&rc(t,[bl],a,!0))),Tl(l,t,t.pendingProps.children,a),t.child;case 29:throw t.pendingProps}throw Error(o(156,t.tag))}var oc=gt(null),Ba=null,Ct=null;function ta(l,t,a){ul(oc,t._currentValue),t._currentValue=a}function qt(l){l._currentValue=oc.current,Sl(oc)}function dc(l,t,a){for(;l!==null;){var e=l.alternate;if((l.childLanes&t)!==t?(l.childLanes|=t,e!==null&&(e.childLanes|=t)):e!==null&&(e.childLanes&t)!==t&&(e.childLanes|=t),l===a)break;l=l.return}}function rc(l,t,a,e){var u=l.child;for(u!==null&&(u.return=l);u!==null;){var n=u.dependencies;if(n!==null){var i=u.child;n=n.firstContext;l:for(;n!==null;){var c=n;n=u;for(var s=0;s<t.length;s++)if(c.context===t[s]){n.lanes|=a,c=n.alternate,c!==null&&(c.lanes|=a),dc(n.return,a,l),e||(i=null);break l}n=c.next}}else if(u.tag===18){if(i=u.return,i===null)throw Error(o(341));i.lanes|=a,n=i.alternate,n!==null&&(n.lanes|=a),dc(i,a,l),i=null}else i=u.child;if(i!==null)i.return=u;else for(i=u;i!==null;){if(i===l){i=null;break}if(u=i.sibling,u!==null){u.return=i.return,i=u;break}i=i.return}u=i}}function nu(l,t,a,e){l=null;for(var u=t,n=!1;u!==null;){if(!n){if((u.flags&524288)!==0)n=!0;else if((u.flags&262144)!==0)break}if(u.tag===10){var i=u.alternate;if(i===null)throw Error(o(387));if(i=i.memoizedProps,i!==null){var c=u.type;Zl(u.pendingProps.value,i.value)||(l!==null?l.push(c):l=[c])}}else if(u===Nu.current){if(i=u.alternate,i===null)throw Error(o(387));i.memoizedState.memoizedState!==u.memoizedState.memoizedState&&(l!==null?l.push(zu):l=[zu])}u=u.return}l!==null&&rc(t,l,a,e),t.flags|=262144}function bn(l){for(l=l.firstContext;l!==null;){if(!Zl(l.context._currentValue,l.memoizedValue))return!0;l=l.next}return!1}function ja(l){Ba=l,Ct=null,l=l.dependencies,l!==null&&(l.firstContext=null)}function xl(l){return Qo(Ba,l)}function Sn(l,t){return Ba===null&&ja(l),Qo(l,t)}function Qo(l,t){var a=t._currentValue;if(t={context:t,memoizedValue:a,next:null},Ct===null){if(l===null)throw Error(o(308));Ct=t,l.dependencies={lanes:0,firstContext:t},l.flags|=524288}else Ct=Ct.next=t;return a}var aa=!1;function mc(l){l.updateQueue={baseState:l.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function hc(l,t){l=l.updateQueue,t.updateQueue===l&&(t.updateQueue={baseState:l.baseState,firstBaseUpdate:l.firstBaseUpdate,lastBaseUpdate:l.lastBaseUpdate,shared:l.shared,callbacks:null})}function ea(l){return{lane:l,tag:0,payload:null,callback:null,next:null}}function ua(l,t,a){var e=l.updateQueue;if(e===null)return null;if(e=e.shared,(cl&2)!==0){var u=e.pending;return u===null?t.next=t:(t.next=u.next,u.next=t),e.pending=t,t=Pu(l),Es(l,null,a),t}return Fu(l,e,t,a),Pu(l)}function iu(l,t,a){if(t=t.updateQueue,t!==null&&(t=t.shared,(a&4194176)!==0)){var e=t.lanes;e&=l.pendingLanes,a|=e,t.lanes=a,xf(l,a)}}function vc(l,t){var a=l.updateQueue,e=l.alternate;if(e!==null&&(e=e.updateQueue,a===e)){var u=null,n=null;if(a=a.firstBaseUpdate,a!==null){do{var i={lane:a.lane,tag:a.tag,payload:a.payload,callback:null,next:null};n===null?u=n=i:n=n.next=i,a=a.next}while(a!==null);n===null?u=n=t:n=n.next=t}else u=n=t;a={baseState:e.baseState,firstBaseUpdate:u,lastBaseUpdate:n,shared:e.shared,callbacks:e.callbacks},l.updateQueue=a;return}l=a.lastBaseUpdate,l===null?a.firstBaseUpdate=t:l.next=t,a.lastBaseUpdate=t}var yc=!1;function cu(){if(yc){var l=me;if(l!==null)throw l}}function fu(l,t,a,e){yc=!1;var u=l.updateQueue;aa=!1;var n=u.firstBaseUpdate,i=u.lastBaseUpdate,c=u.shared.pending;if(c!==null){u.shared.pending=null;var s=c,m=s.next;s.next=null,i===null?n=m:i.next=m,i=s;var E=l.alternate;E!==null&&(E=E.updateQueue,c=E.lastBaseUpdate,c!==i&&(c===null?E.firstBaseUpdate=m:c.next=m,E.lastBaseUpdate=s))}if(n!==null){var z=u.baseState;i=0,E=m=s=null,c=n;do{var g=c.lane&-536870913,p=g!==c.lane;if(p?(V&g)===g:(e&g)===g){g!==0&&g===re&&(yc=!0),E!==null&&(E=E.next={lane:0,tag:c.tag,payload:c.payload,callback:null,next:null});l:{var x=l,j=c;g=t;var ol=a;switch(j.tag){case 1:if(x=j.payload,typeof x=="function"){z=x.call(ol,z,g);break l}z=x;break l;case 3:x.flags=x.flags&-65537|128;case 0:if(x=j.payload,g=typeof x=="function"?x.call(ol,z,g):x,g==null)break l;z=W({},z,g);break l;case 2:aa=!0}}g=c.callback,g!==null&&(l.flags|=64,p&&(l.flags|=8192),p=u.callbacks,p===null?u.callbacks=[g]:p.push(g))}else p={lane:g,tag:c.tag,payload:c.payload,callback:c.callback,next:null},E===null?(m=E=p,s=z):E=E.next=p,i|=g;if(c=c.next,c===null){if(c=u.shared.pending,c===null)break;p=c,c=p.next,p.next=null,u.lastBaseUpdate=p,u.shared.pending=null}}while(!0);E===null&&(s=z),u.baseState=s,u.firstBaseUpdate=m,u.lastBaseUpdate=E,n===null&&(u.shared.lanes=0),sa|=i,l.lanes=i,l.memoizedState=z}}function Zo(l,t){if(typeof l!="function")throw Error(o(191,l));l.call(t)}function Lo(l,t){var a=l.callbacks;if(a!==null)for(l.callbacks=null,l=0;l<a.length;l++)Zo(a[l],t)}function su(l,t){try{var a=t.updateQueue,e=a!==null?a.lastEffect:null;if(e!==null){var u=e.next;a=u;do{if((a.tag&l)===l){e=void 0;var n=a.create,i=a.inst;e=n(),i.destroy=e}a=a.next}while(a!==u)}}catch(c){ll(t,t.return,c)}}function na(l,t,a){try{var e=t.updateQueue,u=e!==null?e.lastEffect:null;if(u!==null){var n=u.next;e=n;do{if((e.tag&l)===l){var i=e.inst,c=i.destroy;if(c!==void 0){i.destroy=void 0,u=t;var s=a;try{c()}catch(m){ll(u,s,m)}}}e=e.next}while(e!==n)}}catch(m){ll(t,t.return,m)}}function Vo(l){var t=l.updateQueue;if(t!==null){var a=l.stateNode;try{Lo(t,a)}catch(e){ll(l,l.return,e)}}}function wo(l,t,a){a.props=qa(l.type,l.memoizedProps),a.state=l.memoizedState;try{a.componentWillUnmount()}catch(e){ll(l,t,e)}}function Ya(l,t){try{var a=l.ref;if(a!==null){var e=l.stateNode;switch(l.tag){case 26:case 27:case 5:var u=e;break;default:u=e}typeof a=="function"?l.refCleanup=a(u):a.current=u}}catch(n){ll(l,t,n)}}function Ll(l,t){var a=l.ref,e=l.refCleanup;if(a!==null)if(typeof e=="function")try{e()}catch(u){ll(l,t,u)}finally{l.refCleanup=null,l=l.alternate,l!=null&&(l.refCleanup=null)}else if(typeof a=="function")try{a(null)}catch(u){ll(l,t,u)}else a.current=null}function Ko(l){var t=l.type,a=l.memoizedProps,e=l.stateNode;try{l:switch(t){case"button":case"input":case"select":case"textarea":a.autoFocus&&e.focus();break l;case"img":a.src?e.src=a.src:a.srcSet&&(e.srcset=a.srcSet)}}catch(u){ll(l,l.return,u)}}function Jo(l,t,a){try{var e=l.stateNode;Hm(e,l.type,a,t),e[Cl]=t}catch(u){ll(l,l.return,u)}}function ko(l){return l.tag===5||l.tag===3||l.tag===26||l.tag===27||l.tag===4}function gc(l){l:for(;;){for(;l.sibling===null;){if(l.return===null||ko(l.return))return null;l=l.return}for(l.sibling.return=l.return,l=l.sibling;l.tag!==5&&l.tag!==6&&l.tag!==27&&l.tag!==18;){if(l.flags&2||l.child===null||l.tag===4)continue l;l.child.return=l,l=l.child}if(!(l.flags&2))return l.stateNode}}function bc(l,t,a){var e=l.tag;if(e===5||e===6)l=l.stateNode,t?a.nodeType===8?a.parentNode.insertBefore(l,t):a.insertBefore(l,t):(a.nodeType===8?(t=a.parentNode,t.insertBefore(l,a)):(t=a,t.appendChild(l)),a=a._reactRootContainer,a!=null||t.onclick!==null||(t.onclick=Rn));else if(e!==4&&e!==27&&(l=l.child,l!==null))for(bc(l,t,a),l=l.sibling;l!==null;)bc(l,t,a),l=l.sibling}function pn(l,t,a){var e=l.tag;if(e===5||e===6)l=l.stateNode,t?a.insertBefore(l,t):a.appendChild(l);else if(e!==4&&e!==27&&(l=l.child,l!==null))for(pn(l,t,a),l=l.sibling;l!==null;)pn(l,t,a),l=l.sibling}var Bt=!1,fl=!1,Sc=!1,Wo=typeof WeakSet=="function"?WeakSet:Set,Al=null,$o=!1;function cm(l,t){if(l=l.containerInfo,Jc=Xn,l=rs(l),Ei(l)){if("selectionStart"in l)var a={start:l.selectionStart,end:l.selectionEnd};else l:{a=(a=l.ownerDocument)&&a.defaultView||window;var e=a.getSelection&&a.getSelection();if(e&&e.rangeCount!==0){a=e.anchorNode;var u=e.anchorOffset,n=e.focusNode;e=e.focusOffset;try{a.nodeType,n.nodeType}catch{a=null;break l}var i=0,c=-1,s=-1,m=0,E=0,z=l,g=null;t:for(;;){for(var p;z!==a||u!==0&&z.nodeType!==3||(c=i+u),z!==n||e!==0&&z.nodeType!==3||(s=i+e),z.nodeType===3&&(i+=z.nodeValue.length),(p=z.firstChild)!==null;)g=z,z=p;for(;;){if(z===l)break t;if(g===a&&++m===u&&(c=i),g===n&&++E===e&&(s=i),(p=z.nextSibling)!==null)break;z=g,g=z.parentNode}z=p}a=c===-1||s===-1?null:{start:c,end:s}}else a=null}a=a||{start:0,end:0}}else a=null;for(kc={focusedElem:l,selectionRange:a},Xn=!1,Al=t;Al!==null;)if(t=Al,l=t.child,(t.subtreeFlags&1028)!==0&&l!==null)l.return=t,Al=l;else for(;Al!==null;){switch(t=Al,n=t.alternate,l=t.flags,t.tag){case 0:break;case 11:case 15:break;case 1:if((l&1024)!==0&&n!==null){l=void 0,a=t,u=n.memoizedProps,n=n.memoizedState,e=a.stateNode;try{var x=qa(a.type,u,a.elementType===a.type);l=e.getSnapshotBeforeUpdate(x,n),e.__reactInternalSnapshotBeforeUpdate=l}catch(j){ll(a,a.return,j)}}break;case 3:if((l&1024)!==0){if(l=t.stateNode.containerInfo,a=l.nodeType,a===9)Pc(l);else if(a===1)switch(l.nodeName){case"HEAD":case"HTML":case"BODY":Pc(l);break;default:l.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((l&1024)!==0)throw Error(o(163))}if(l=t.sibling,l!==null){l.return=t.return,Al=l;break}Al=t.return}return x=$o,$o=!1,x}function Fo(l,t,a){var e=a.flags;switch(a.tag){case 0:case 11:case 15:Yt(l,a),e&4&&su(5,a);break;case 1:if(Yt(l,a),e&4)if(l=a.stateNode,t===null)try{l.componentDidMount()}catch(c){ll(a,a.return,c)}else{var u=qa(a.type,t.memoizedProps);t=t.memoizedState;try{l.componentDidUpdate(u,t,l.__reactInternalSnapshotBeforeUpdate)}catch(c){ll(a,a.return,c)}}e&64&&Vo(a),e&512&&Ya(a,a.return);break;case 3:if(Yt(l,a),e&64&&(e=a.updateQueue,e!==null)){if(l=null,a.child!==null)switch(a.child.tag){case 27:case 5:l=a.child.stateNode;break;case 1:l=a.child.stateNode}try{Lo(e,l)}catch(c){ll(a,a.return,c)}}break;case 26:Yt(l,a),e&512&&Ya(a,a.return);break;case 27:case 5:Yt(l,a),t===null&&e&4&&Ko(a),e&512&&Ya(a,a.return);break;case 12:Yt(l,a);break;case 13:Yt(l,a),e&4&&ld(l,a);break;case 22:if(u=a.memoizedState!==null||Bt,!u){t=t!==null&&t.memoizedState!==null||fl;var n=Bt,i=fl;Bt=u,(fl=t)&&!i?ia(l,a,(a.subtreeFlags&8772)!==0):Yt(l,a),Bt=n,fl=i}e&512&&(a.memoizedProps.mode==="manual"?Ya(a,a.return):Ll(a,a.return));break;default:Yt(l,a)}}function Po(l){var t=l.alternate;t!==null&&(l.alternate=null,Po(t)),l.child=null,l.deletions=null,l.sibling=null,l.tag===5&&(t=l.stateNode,t!==null&&ni(t)),l.stateNode=null,l.return=null,l.dependencies=null,l.memoizedProps=null,l.memoizedState=null,l.pendingProps=null,l.stateNode=null,l.updateQueue=null}var yl=null,Vl=!1;function jt(l,t,a){for(a=a.child;a!==null;)Io(l,t,a),a=a.sibling}function Io(l,t,a){if(Xl&&typeof Xl.onCommitFiberUnmount=="function")try{Xl.onCommitFiberUnmount(Ne,a)}catch{}switch(a.tag){case 26:fl||Ll(a,t),jt(l,t,a),a.memoizedState?a.memoizedState.count--:a.stateNode&&(a=a.stateNode,a.parentNode.removeChild(a));break;case 27:fl||Ll(a,t);var e=yl,u=Vl;for(yl=a.stateNode,jt(l,t,a),a=a.stateNode,t=a.attributes;t.length;)a.removeAttributeNode(t[0]);ni(a),yl=e,Vl=u;break;case 5:fl||Ll(a,t);case 6:u=yl;var n=Vl;if(yl=null,jt(l,t,a),yl=u,Vl=n,yl!==null)if(Vl)try{l=yl,e=a.stateNode,l.nodeType===8?l.parentNode.removeChild(e):l.removeChild(e)}catch(i){ll(a,t,i)}else try{yl.removeChild(a.stateNode)}catch(i){ll(a,t,i)}break;case 18:yl!==null&&(Vl?(t=yl,a=a.stateNode,t.nodeType===8?Fc(t.parentNode,a):t.nodeType===1&&Fc(t,a),_u(t)):Fc(yl,a.stateNode));break;case 4:e=yl,u=Vl,yl=a.stateNode.containerInfo,Vl=!0,jt(l,t,a),yl=e,Vl=u;break;case 0:case 11:case 14:case 15:fl||na(2,a,t),fl||na(4,a,t),jt(l,t,a);break;case 1:fl||(Ll(a,t),e=a.stateNode,typeof e.componentWillUnmount=="function"&&wo(a,t,e)),jt(l,t,a);break;case 21:jt(l,t,a);break;case 22:fl||Ll(a,t),fl=(e=fl)||a.memoizedState!==null,jt(l,t,a),fl=e;break;default:jt(l,t,a)}}function ld(l,t){if(t.memoizedState===null&&(l=t.alternate,l!==null&&(l=l.memoizedState,l!==null&&(l=l.dehydrated,l!==null))))try{_u(l)}catch(a){ll(t,t.return,a)}}function fm(l){switch(l.tag){case 13:case 19:var t=l.stateNode;return t===null&&(t=l.stateNode=new Wo),t;case 22:return l=l.stateNode,t=l._retryCache,t===null&&(t=l._retryCache=new Wo),t;default:throw Error(o(435,l.tag))}}function pc(l,t){var a=fm(l);t.forEach(function(e){var u=Em.bind(null,l,e);a.has(e)||(a.add(e),e.then(u,u))})}function at(l,t){var a=t.deletions;if(a!==null)for(var e=0;e<a.length;e++){var u=a[e],n=l,i=t,c=i;l:for(;c!==null;){switch(c.tag){case 27:case 5:yl=c.stateNode,Vl=!1;break l;case 3:yl=c.stateNode.containerInfo,Vl=!0;break l;case 4:yl=c.stateNode.containerInfo,Vl=!0;break l}c=c.return}if(yl===null)throw Error(o(160));Io(n,i,u),yl=null,Vl=!1,n=u.alternate,n!==null&&(n.return=null),u.return=null}if(t.subtreeFlags&13878)for(t=t.child;t!==null;)td(t,l),t=t.sibling}var mt=null;function td(l,t){var a=l.alternate,e=l.flags;switch(l.tag){case 0:case 11:case 14:case 15:at(t,l),et(l),e&4&&(na(3,l,l.return),su(3,l),na(5,l,l.return));break;case 1:at(t,l),et(l),e&512&&(fl||a===null||Ll(a,a.return)),e&64&&Bt&&(l=l.updateQueue,l!==null&&(e=l.callbacks,e!==null&&(a=l.shared.hiddenCallbacks,l.shared.hiddenCallbacks=a===null?e:a.concat(e))));break;case 26:var u=mt;if(at(t,l),et(l),e&512&&(fl||a===null||Ll(a,a.return)),e&4){var n=a!==null?a.memoizedState:null;if(e=l.memoizedState,a===null)if(e===null)if(l.stateNode===null){l:{e=l.type,a=l.memoizedProps,u=u.ownerDocument||u;t:switch(e){case"title":n=u.getElementsByTagName("title")[0],(!n||n[qe]||n[Ol]||n.namespaceURI==="http://www.w3.org/2000/svg"||n.hasAttribute("itemprop"))&&(n=u.createElement(e),u.head.insertBefore(n,u.querySelector("head > title"))),Dl(n,e,a),n[Ol]=l,pl(n),e=n;break l;case"link":var i=Kd("link","href",u).get(e+(a.href||""));if(i){for(var c=0;c<i.length;c++)if(n=i[c],n.getAttribute("href")===(a.href==null?null:a.href)&&n.getAttribute("rel")===(a.rel==null?null:a.rel)&&n.getAttribute("title")===(a.title==null?null:a.title)&&n.getAttribute("crossorigin")===(a.crossOrigin==null?null:a.crossOrigin)){i.splice(c,1);break t}}n=u.createElement(e),Dl(n,e,a),u.head.appendChild(n);break;case"meta":if(i=Kd("meta","content",u).get(e+(a.content||""))){for(c=0;c<i.length;c++)if(n=i[c],n.getAttribute("content")===(a.content==null?null:""+a.content)&&n.getAttribute("name")===(a.name==null?null:a.name)&&n.getAttribute("property")===(a.property==null?null:a.property)&&n.getAttribute("http-equiv")===(a.httpEquiv==null?null:a.httpEquiv)&&n.getAttribute("charset")===(a.charSet==null?null:a.charSet)){i.splice(c,1);break t}}n=u.createElement(e),Dl(n,e,a),u.head.appendChild(n);break;default:throw Error(o(468,e))}n[Ol]=l,pl(n),e=n}l.stateNode=e}else Jd(u,l.type,l.stateNode);else l.stateNode=wd(u,e,l.memoizedProps);else n!==e?(n===null?a.stateNode!==null&&(a=a.stateNode,a.parentNode.removeChild(a)):n.count--,e===null?Jd(u,l.type,l.stateNode):wd(u,e,l.memoizedProps)):e===null&&l.stateNode!==null&&Jo(l,l.memoizedProps,a.memoizedProps)}break;case 27:if(e&4&&l.alternate===null){u=l.stateNode,n=l.memoizedProps;try{for(var s=u.firstChild;s;){var m=s.nextSibling,E=s.nodeName;s[qe]||E==="HEAD"||E==="BODY"||E==="SCRIPT"||E==="STYLE"||E==="LINK"&&s.rel.toLowerCase()==="stylesheet"||u.removeChild(s),s=m}for(var z=l.type,g=u.attributes;g.length;)u.removeAttributeNode(g[0]);Dl(u,z,n),u[Ol]=l,u[Cl]=n}catch(x){ll(l,l.return,x)}}case 5:if(at(t,l),et(l),e&512&&(fl||a===null||Ll(a,a.return)),l.flags&32){u=l.stateNode;try{le(u,"")}catch(x){ll(l,l.return,x)}}e&4&&l.stateNode!=null&&(u=l.memoizedProps,Jo(l,u,a!==null?a.memoizedProps:u)),e&1024&&(Sc=!0);break;case 6:if(at(t,l),et(l),e&4){if(l.stateNode===null)throw Error(o(162));e=l.memoizedProps,a=l.stateNode;try{a.nodeValue=e}catch(x){ll(l,l.return,x)}}break;case 3:if(jn=null,u=mt,mt=qn(t.containerInfo),at(t,l),mt=u,et(l),e&4&&a!==null&&a.memoizedState.isDehydrated)try{_u(t.containerInfo)}catch(x){ll(l,l.return,x)}Sc&&(Sc=!1,ad(l));break;case 4:e=mt,mt=qn(l.stateNode.containerInfo),at(t,l),et(l),mt=e;break;case 12:at(t,l),et(l);break;case 13:at(t,l),et(l),l.child.flags&8192&&l.memoizedState!==null!=(a!==null&&a.memoizedState!==null)&&(xc=St()),e&4&&(e=l.updateQueue,e!==null&&(l.updateQueue=null,pc(l,e)));break;case 22:if(e&512&&(fl||a===null||Ll(a,a.return)),s=l.memoizedState!==null,m=a!==null&&a.memoizedState!==null,E=Bt,z=fl,Bt=E||s,fl=z||m,at(t,l),fl=z,Bt=E,et(l),t=l.stateNode,t._current=l,t._visibility&=-3,t._visibility|=t._pendingVisibility&2,e&8192&&(t._visibility=s?t._visibility&-2:t._visibility|1,s&&(t=Bt||fl,a===null||m||t||ge(l)),l.memoizedProps===null||l.memoizedProps.mode!=="manual"))l:for(a=null,t=l;;){if(t.tag===5||t.tag===26||t.tag===27){if(a===null){m=a=t;try{if(u=m.stateNode,s)n=u.style,typeof n.setProperty=="function"?n.setProperty("display","none","important"):n.display="none";else{i=m.stateNode,c=m.memoizedProps.style;var p=c!=null&&c.hasOwnProperty("display")?c.display:null;i.style.display=p==null||typeof p=="boolean"?"":(""+p).trim()}}catch(x){ll(m,m.return,x)}}}else if(t.tag===6){if(a===null){m=t;try{m.stateNode.nodeValue=s?"":m.memoizedProps}catch(x){ll(m,m.return,x)}}}else if((t.tag!==22&&t.tag!==23||t.memoizedState===null||t===l)&&t.child!==null){t.child.return=t,t=t.child;continue}if(t===l)break l;for(;t.sibling===null;){if(t.return===null||t.return===l)break l;a===t&&(a=null),t=t.return}a===t&&(a=null),t.sibling.return=t.return,t=t.sibling}e&4&&(e=l.updateQueue,e!==null&&(a=e.retryQueue,a!==null&&(e.retryQueue=null,pc(l,a))));break;case 19:at(t,l),et(l),e&4&&(e=l.updateQueue,e!==null&&(l.updateQueue=null,pc(l,e)));break;case 21:break;default:at(t,l),et(l)}}function et(l){var t=l.flags;if(t&2){try{if(l.tag!==27){l:{for(var a=l.return;a!==null;){if(ko(a)){var e=a;break l}a=a.return}throw Error(o(160))}switch(e.tag){case 27:var u=e.stateNode,n=gc(l);pn(l,n,u);break;case 5:var i=e.stateNode;e.flags&32&&(le(i,""),e.flags&=-33);var c=gc(l);pn(l,c,i);break;case 3:case 4:var s=e.stateNode.containerInfo,m=gc(l);bc(l,m,s);break;default:throw Error(o(161))}}}catch(E){ll(l,l.return,E)}l.flags&=-3}t&4096&&(l.flags&=-4097)}function ad(l){if(l.subtreeFlags&1024)for(l=l.child;l!==null;){var t=l;ad(t),t.tag===5&&t.flags&1024&&t.stateNode.reset(),l=l.sibling}}function Yt(l,t){if(t.subtreeFlags&8772)for(t=t.child;t!==null;)Fo(l,t.alternate,t),t=t.sibling}function ge(l){for(l=l.child;l!==null;){var t=l;switch(t.tag){case 0:case 11:case 14:case 15:na(4,t,t.return),ge(t);break;case 1:Ll(t,t.return);var a=t.stateNode;typeof a.componentWillUnmount=="function"&&wo(t,t.return,a),ge(t);break;case 26:case 27:case 5:Ll(t,t.return),ge(t);break;case 22:Ll(t,t.return),t.memoizedState===null&&ge(t);break;default:ge(t)}l=l.sibling}}function ia(l,t,a){for(a=a&&(t.subtreeFlags&8772)!==0,t=t.child;t!==null;){var e=t.alternate,u=l,n=t,i=n.flags;switch(n.tag){case 0:case 11:case 15:ia(u,n,a),su(4,n);break;case 1:if(ia(u,n,a),e=n,u=e.stateNode,typeof u.componentDidMount=="function")try{u.componentDidMount()}catch(m){ll(e,e.return,m)}if(e=n,u=e.updateQueue,u!==null){var c=e.stateNode;try{var s=u.shared.hiddenCallbacks;if(s!==null)for(u.shared.hiddenCallbacks=null,u=0;u<s.length;u++)Zo(s[u],c)}catch(m){ll(e,e.return,m)}}a&&i&64&&Vo(n),Ya(n,n.return);break;case 26:case 27:case 5:ia(u,n,a),a&&e===null&&i&4&&Ko(n),Ya(n,n.return);break;case 12:ia(u,n,a);break;case 13:ia(u,n,a),a&&i&4&&ld(u,n);break;case 22:n.memoizedState===null&&ia(u,n,a),Ya(n,n.return);break;default:ia(u,n,a)}t=t.sibling}}function Ec(l,t){var a=null;l!==null&&l.memoizedState!==null&&l.memoizedState.cachePool!==null&&(a=l.memoizedState.cachePool.pool),l=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(l=t.memoizedState.cachePool.pool),l!==a&&(l!=null&&l.refCount++,a!=null&&Ie(a))}function Ac(l,t){l=null,t.alternate!==null&&(l=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==l&&(t.refCount++,l!=null&&Ie(l))}function ca(l,t,a,e){if(t.subtreeFlags&10256)for(t=t.child;t!==null;)ed(l,t,a,e),t=t.sibling}function ed(l,t,a,e){var u=t.flags;switch(t.tag){case 0:case 11:case 15:ca(l,t,a,e),u&2048&&su(9,t);break;case 3:ca(l,t,a,e),u&2048&&(l=null,t.alternate!==null&&(l=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==l&&(t.refCount++,l!=null&&Ie(l)));break;case 12:if(u&2048){ca(l,t,a,e),l=t.stateNode;try{var n=t.memoizedProps,i=n.id,c=n.onPostCommit;typeof c=="function"&&c(i,t.alternate===null?"mount":"update",l.passiveEffectDuration,-0)}catch(s){ll(t,t.return,s)}}else ca(l,t,a,e);break;case 23:break;case 22:n=t.stateNode,t.memoizedState!==null?n._visibility&4?ca(l,t,a,e):ou(l,t):n._visibility&4?ca(l,t,a,e):(n._visibility|=4,be(l,t,a,e,(t.subtreeFlags&10256)!==0)),u&2048&&Ec(t.alternate,t);break;case 24:ca(l,t,a,e),u&2048&&Ac(t.alternate,t);break;default:ca(l,t,a,e)}}function be(l,t,a,e,u){for(u=u&&(t.subtreeFlags&10256)!==0,t=t.child;t!==null;){var n=l,i=t,c=a,s=e,m=i.flags;switch(i.tag){case 0:case 11:case 15:be(n,i,c,s,u),su(8,i);break;case 23:break;case 22:var E=i.stateNode;i.memoizedState!==null?E._visibility&4?be(n,i,c,s,u):ou(n,i):(E._visibility|=4,be(n,i,c,s,u)),u&&m&2048&&Ec(i.alternate,i);break;case 24:be(n,i,c,s,u),u&&m&2048&&Ac(i.alternate,i);break;default:be(n,i,c,s,u)}t=t.sibling}}function ou(l,t){if(t.subtreeFlags&10256)for(t=t.child;t!==null;){var a=l,e=t,u=e.flags;switch(e.tag){case 22:ou(a,e),u&2048&&Ec(e.alternate,e);break;case 24:ou(a,e),u&2048&&Ac(e.alternate,e);break;default:ou(a,e)}t=t.sibling}}var du=8192;function Se(l){if(l.subtreeFlags&du)for(l=l.child;l!==null;)ud(l),l=l.sibling}function ud(l){switch(l.tag){case 26:Se(l),l.flags&du&&l.memoizedState!==null&&$m(mt,l.memoizedState,l.memoizedProps);break;case 5:Se(l);break;case 3:case 4:var t=mt;mt=qn(l.stateNode.containerInfo),Se(l),mt=t;break;case 22:l.memoizedState===null&&(t=l.alternate,t!==null&&t.memoizedState!==null?(t=du,du=16777216,Se(l),du=t):Se(l));break;default:Se(l)}}function nd(l){var t=l.alternate;if(t!==null&&(l=t.child,l!==null)){t.child=null;do t=l.sibling,l.sibling=null,l=t;while(l!==null)}}function ru(l){var t=l.deletions;if((l.flags&16)!==0){if(t!==null)for(var a=0;a<t.length;a++){var e=t[a];Al=e,cd(e,l)}nd(l)}if(l.subtreeFlags&10256)for(l=l.child;l!==null;)id(l),l=l.sibling}function id(l){switch(l.tag){case 0:case 11:case 15:ru(l),l.flags&2048&&na(9,l,l.return);break;case 3:ru(l);break;case 12:ru(l);break;case 22:var t=l.stateNode;l.memoizedState!==null&&t._visibility&4&&(l.return===null||l.return.tag!==13)?(t._visibility&=-5,En(l)):ru(l);break;default:ru(l)}}function En(l){var t=l.deletions;if((l.flags&16)!==0){if(t!==null)for(var a=0;a<t.length;a++){var e=t[a];Al=e,cd(e,l)}nd(l)}for(l=l.child;l!==null;){switch(t=l,t.tag){case 0:case 11:case 15:na(8,t,t.return),En(t);break;case 22:a=t.stateNode,a._visibility&4&&(a._visibility&=-5,En(t));break;default:En(t)}l=l.sibling}}function cd(l,t){for(;Al!==null;){var a=Al;switch(a.tag){case 0:case 11:case 15:na(8,a,t);break;case 23:case 22:if(a.memoizedState!==null&&a.memoizedState.cachePool!==null){var e=a.memoizedState.cachePool.pool;e!=null&&e.refCount++}break;case 24:Ie(a.memoizedState.cache)}if(e=a.child,e!==null)e.return=a,Al=e;else l:for(a=l;Al!==null;){e=Al;var u=e.sibling,n=e.return;if(Po(e),e===a){Al=null;break l}if(u!==null){u.return=n,Al=u;break l}Al=n}}}function sm(l,t,a,e){this.tag=l,this.key=a,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=e,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function ut(l,t,a,e){return new sm(l,t,a,e)}function zc(l){return l=l.prototype,!(!l||!l.isReactComponent)}function fa(l,t){var a=l.alternate;return a===null?(a=ut(l.tag,t,l.key,l.mode),a.elementType=l.elementType,a.type=l.type,a.stateNode=l.stateNode,a.alternate=l,l.alternate=a):(a.pendingProps=t,a.type=l.type,a.flags=0,a.subtreeFlags=0,a.deletions=null),a.flags=l.flags&31457280,a.childLanes=l.childLanes,a.lanes=l.lanes,a.child=l.child,a.memoizedProps=l.memoizedProps,a.memoizedState=l.memoizedState,a.updateQueue=l.updateQueue,t=l.dependencies,a.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},a.sibling=l.sibling,a.index=l.index,a.ref=l.ref,a.refCleanup=l.refCleanup,a}function fd(l,t){l.flags&=31457282;var a=l.alternate;return a===null?(l.childLanes=0,l.lanes=t,l.child=null,l.subtreeFlags=0,l.memoizedProps=null,l.memoizedState=null,l.updateQueue=null,l.dependencies=null,l.stateNode=null):(l.childLanes=a.childLanes,l.lanes=a.lanes,l.child=a.child,l.subtreeFlags=0,l.deletions=null,l.memoizedProps=a.memoizedProps,l.memoizedState=a.memoizedState,l.updateQueue=a.updateQueue,l.type=a.type,t=a.dependencies,l.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext}),l}function An(l,t,a,e,u,n){var i=0;if(e=l,typeof l=="function")zc(l)&&(i=1);else if(typeof l=="string")i=km(l,a,bt.current)?26:l==="html"||l==="head"||l==="body"?27:5;else l:switch(l){case Y:return Ga(a.children,u,n,t);case D:i=8,u|=24;break;case C:return l=ut(12,a,t,u|2),l.elementType=C,l.lanes=n,l;case ct:return l=ut(13,a,t,u),l.elementType=ct,l.lanes=n,l;case ft:return l=ut(19,a,t,u),l.elementType=ft,l.lanes=n,l;case Gl:return sd(a,u,n,t);default:if(typeof l=="object"&&l!==null)switch(l.$$typeof){case $:case R:i=10;break l;case K:i=9;break l;case Yl:i=11;break l;case Ul:i=14;break l;case dl:i=16,e=null;break l}i=29,a=Error(o(130,l===null?"null":typeof l,"")),e=null}return t=ut(i,a,t,u),t.elementType=l,t.type=e,t.lanes=n,t}function Ga(l,t,a,e){return l=ut(7,l,e,t),l.lanes=a,l}function sd(l,t,a,e){l=ut(22,l,e,t),l.elementType=Gl,l.lanes=a;var u={_visibility:1,_pendingVisibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null,_current:null,detach:function(){var n=u._current;if(n===null)throw Error(o(456));if((u._pendingVisibility&2)===0){var i=$t(n,2);i!==null&&(u._pendingVisibility|=2,Nl(i,n,2))}},attach:function(){var n=u._current;if(n===null)throw Error(o(456));if((u._pendingVisibility&2)!==0){var i=$t(n,2);i!==null&&(u._pendingVisibility&=-3,Nl(i,n,2))}}};return l.stateNode=u,l}function Mc(l,t,a){return l=ut(6,l,null,t),l.lanes=a,l}function Tc(l,t,a){return t=ut(4,l.children!==null?l.children:[],l.key,t),t.lanes=a,t.stateNode={containerInfo:l.containerInfo,pendingChildren:null,implementation:l.implementation},t}function Gt(l){l.flags|=4}function od(l,t){if(t.type!=="stylesheet"||(t.state.loading&4)!==0)l.flags&=-16777217;else if(l.flags|=16777216,!kd(t)){if(t=tt.current,t!==null&&((V&4194176)===V?Et!==null:(V&62914560)!==V&&(V&536870912)===0||t!==Et))throw $e=Ui,Ds;l.flags|=8192}}function zn(l,t){t!==null&&(l.flags|=4),l.flags&16384&&(t=l.tag!==22?_f():536870912,l.lanes|=t,Ee|=t)}function mu(l,t){if(!J)switch(l.tailMode){case"hidden":t=l.tail;for(var a=null;t!==null;)t.alternate!==null&&(a=t),t=t.sibling;a===null?l.tail=null:a.sibling=null;break;case"collapsed":a=l.tail;for(var e=null;a!==null;)a.alternate!==null&&(e=a),a=a.sibling;e===null?t||l.tail===null?l.tail=null:l.tail.sibling=null:e.sibling=null}}function il(l){var t=l.alternate!==null&&l.alternate.child===l.child,a=0,e=0;if(t)for(var u=l.child;u!==null;)a|=u.lanes|u.childLanes,e|=u.subtreeFlags&31457280,e|=u.flags&31457280,u.return=l,u=u.sibling;else for(u=l.child;u!==null;)a|=u.lanes|u.childLanes,e|=u.subtreeFlags,e|=u.flags,u.return=l,u=u.sibling;return l.subtreeFlags|=e,l.childLanes=a,t}function om(l,t,a){var e=t.pendingProps;switch(Oi(t),t.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return il(t),null;case 1:return il(t),null;case 3:return a=t.stateNode,e=null,l!==null&&(e=l.memoizedState.cache),t.memoizedState.cache!==e&&(t.flags|=2048),qt(bl),ka(),a.pendingContext&&(a.context=a.pendingContext,a.pendingContext=null),(l===null||l.child===null)&&(Ke(t)?Gt(t):l===null||l.memoizedState.isDehydrated&&(t.flags&256)===0||(t.flags|=1024,rt!==null&&(Rc(rt),rt=null))),il(t),null;case 26:return a=t.memoizedState,l===null?(Gt(t),a!==null?(il(t),od(t,a)):(il(t),t.flags&=-16777217)):a?a!==l.memoizedState?(Gt(t),il(t),od(t,a)):(il(t),t.flags&=-16777217):(l.memoizedProps!==e&&Gt(t),il(t),t.flags&=-16777217),null;case 27:Cu(t),a=Kt.current;var u=t.type;if(l!==null&&t.stateNode!=null)l.memoizedProps!==e&&Gt(t);else{if(!e){if(t.stateNode===null)throw Error(o(166));return il(t),null}l=bt.current,Ke(t)?Ms(t):(l=Xd(u,e,a),t.stateNode=l,Gt(t))}return il(t),null;case 5:if(Cu(t),a=t.type,l!==null&&t.stateNode!=null)l.memoizedProps!==e&&Gt(t);else{if(!e){if(t.stateNode===null)throw Error(o(166));return il(t),null}if(l=bt.current,Ke(t))Ms(t);else{switch(u=Cn(Kt.current),l){case 1:l=u.createElementNS("http://www.w3.org/2000/svg",a);break;case 2:l=u.createElementNS("http://www.w3.org/1998/Math/MathML",a);break;default:switch(a){case"svg":l=u.createElementNS("http://www.w3.org/2000/svg",a);break;case"math":l=u.createElementNS("http://www.w3.org/1998/Math/MathML",a);break;case"script":l=u.createElement("div"),l.innerHTML="<script><\/script>",l=l.removeChild(l.firstChild);break;case"select":l=typeof e.is=="string"?u.createElement("select",{is:e.is}):u.createElement("select"),e.multiple?l.multiple=!0:e.size&&(l.size=e.size);break;default:l=typeof e.is=="string"?u.createElement(a,{is:e.is}):u.createElement(a)}}l[Ol]=t,l[Cl]=e;l:for(u=t.child;u!==null;){if(u.tag===5||u.tag===6)l.appendChild(u.stateNode);else if(u.tag!==4&&u.tag!==27&&u.child!==null){u.child.return=u,u=u.child;continue}if(u===t)break l;for(;u.sibling===null;){if(u.return===null||u.return===t)break l;u=u.return}u.sibling.return=u.return,u=u.sibling}t.stateNode=l;l:switch(Dl(l,a,e),a){case"button":case"input":case"select":case"textarea":l=!!e.autoFocus;break l;case"img":l=!0;break l;default:l=!1}l&&Gt(t)}}return il(t),t.flags&=-16777217,null;case 6:if(l&&t.stateNode!=null)l.memoizedProps!==e&&Gt(t);else{if(typeof e!="string"&&t.stateNode===null)throw Error(o(166));if(l=Kt.current,Ke(t)){if(l=t.stateNode,a=t.memoizedProps,e=null,u=Hl,u!==null)switch(u.tag){case 27:case 5:e=u.memoizedProps}l[Ol]=t,l=!!(l.nodeValue===a||e!==null&&e.suppressHydrationWarning===!0||Cd(l.nodeValue,a)),l||xa(t)}else l=Cn(l).createTextNode(e),l[Ol]=t,t.stateNode=l}return il(t),null;case 13:if(e=t.memoizedState,l===null||l.memoizedState!==null&&l.memoizedState.dehydrated!==null){if(u=Ke(t),e!==null&&e.dehydrated!==null){if(l===null){if(!u)throw Error(o(318));if(u=t.memoizedState,u=u!==null?u.dehydrated:null,!u)throw Error(o(317));u[Ol]=t}else Je(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;il(t),u=!1}else rt!==null&&(Rc(rt),rt=null),u=!0;if(!u)return t.flags&256?(Ht(t),t):(Ht(t),null)}if(Ht(t),(t.flags&128)!==0)return t.lanes=a,t;if(a=e!==null,l=l!==null&&l.memoizedState!==null,a){e=t.child,u=null,e.alternate!==null&&e.alternate.memoizedState!==null&&e.alternate.memoizedState.cachePool!==null&&(u=e.alternate.memoizedState.cachePool.pool);var n=null;e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(n=e.memoizedState.cachePool.pool),n!==u&&(e.flags|=2048)}return a!==l&&a&&(t.child.flags|=8192),zn(t,t.updateQueue),il(t),null;case 4:return ka(),l===null&&Vc(t.stateNode.containerInfo),il(t),null;case 10:return qt(t.type),il(t),null;case 19:if(Sl(gl),u=t.memoizedState,u===null)return il(t),null;if(e=(t.flags&128)!==0,n=u.rendering,n===null)if(e)mu(u,!1);else{if(sl!==0||l!==null&&(l.flags&128)!==0)for(l=t.child;l!==null;){if(n=nn(l),n!==null){for(t.flags|=128,mu(u,!1),l=n.updateQueue,t.updateQueue=l,zn(t,l),t.subtreeFlags=0,l=a,a=t.child;a!==null;)fd(a,l),a=a.sibling;return ul(gl,gl.current&1|2),t.child}l=l.sibling}u.tail!==null&&St()>Mn&&(t.flags|=128,e=!0,mu(u,!1),t.lanes=4194304)}else{if(!e)if(l=nn(n),l!==null){if(t.flags|=128,e=!0,l=l.updateQueue,t.updateQueue=l,zn(t,l),mu(u,!0),u.tail===null&&u.tailMode==="hidden"&&!n.alternate&&!J)return il(t),null}else 2*St()-u.renderingStartTime>Mn&&a!==536870912&&(t.flags|=128,e=!0,mu(u,!1),t.lanes=4194304);u.isBackwards?(n.sibling=t.child,t.child=n):(l=u.last,l!==null?l.sibling=n:t.child=n,u.last=n)}return u.tail!==null?(t=u.tail,u.rendering=t,u.tail=t.sibling,u.renderingStartTime=St(),t.sibling=null,l=gl.current,ul(gl,e?l&1|2:l&1),t):(il(t),null);case 22:case 23:return Ht(t),Ni(),e=t.memoizedState!==null,l!==null?l.memoizedState!==null!==e&&(t.flags|=8192):e&&(t.flags|=8192),e?(a&536870912)!==0&&(t.flags&128)===0&&(il(t),t.subtreeFlags&6&&(t.flags|=8192)):il(t),a=t.updateQueue,a!==null&&zn(t,a.retryQueue),a=null,l!==null&&l.memoizedState!==null&&l.memoizedState.cachePool!==null&&(a=l.memoizedState.cachePool.pool),e=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(e=t.memoizedState.cachePool.pool),e!==a&&(t.flags|=2048),l!==null&&Sl(Ha),null;case 24:return a=null,l!==null&&(a=l.memoizedState.cache),t.memoizedState.cache!==a&&(t.flags|=2048),qt(bl),il(t),null;case 25:return null}throw Error(o(156,t.tag))}function dm(l,t){switch(Oi(t),t.tag){case 1:return l=t.flags,l&65536?(t.flags=l&-65537|128,t):null;case 3:return qt(bl),ka(),l=t.flags,(l&65536)!==0&&(l&128)===0?(t.flags=l&-65537|128,t):null;case 26:case 27:case 5:return Cu(t),null;case 13:if(Ht(t),l=t.memoizedState,l!==null&&l.dehydrated!==null){if(t.alternate===null)throw Error(o(340));Je()}return l=t.flags,l&65536?(t.flags=l&-65537|128,t):null;case 19:return Sl(gl),null;case 4:return ka(),null;case 10:return qt(t.type),null;case 22:case 23:return Ht(t),Ni(),l!==null&&Sl(Ha),l=t.flags,l&65536?(t.flags=l&-65537|128,t):null;case 24:return qt(bl),null;case 25:return null;default:return null}}function dd(l,t){switch(Oi(t),t.tag){case 3:qt(bl),ka();break;case 26:case 27:case 5:Cu(t);break;case 4:ka();break;case 13:Ht(t);break;case 19:Sl(gl);break;case 10:qt(t.type);break;case 22:case 23:Ht(t),Ni(),l!==null&&Sl(Ha);break;case 24:qt(bl)}}var rm={getCacheForType:function(l){var t=xl(bl),a=t.data.get(l);return a===void 0&&(a=l(),t.data.set(l,a)),a}},mm=typeof WeakMap=="function"?WeakMap:Map,cl=0,tl=null,Z=null,V=0,al=0,wl=null,Xt=!1,pe=!1,Dc=!1,Qt=0,sl=0,sa=0,Xa=0,_c=0,nt=0,Ee=0,hu=null,zt=null,Oc=!1,xc=0,Mn=1/0,Tn=null,oa=null,Dn=!1,Qa=null,vu=0,Uc=0,Hc=null,yu=0,Nc=null;function Kl(){if((cl&2)!==0&&V!==0)return V&-V;if(q.T!==null){var l=re;return l!==0?l:Xc()}return Hf()}function rd(){nt===0&&(nt=(V&536870912)===0||J?Df():536870912);var l=tt.current;return l!==null&&(l.flags|=32),nt}function Nl(l,t,a){(l===tl&&al===2||l.cancelPendingCommit!==null)&&(Ae(l,0),Zt(l,V,nt,!1)),Ce(l,a),((cl&2)===0||l!==tl)&&(l===tl&&((cl&2)===0&&(Xa|=a),sl===4&&Zt(l,V,nt,!1)),Mt(l))}function md(l,t,a){if((cl&6)!==0)throw Error(o(327));var e=!a&&(t&60)===0&&(t&l.expiredLanes)===0||Re(l,t),u=e?ym(l,t):Bc(l,t,!0),n=e;do{if(u===0){pe&&!e&&Zt(l,t,0,!1);break}else if(u===6)Zt(l,t,0,!Xt);else{if(a=l.current.alternate,n&&!hm(a)){u=Bc(l,t,!1),n=!1;continue}if(u===2){if(n=t,l.errorRecoveryDisabledLanes&n)var i=0;else i=l.pendingLanes&-536870913,i=i!==0?i:i&536870912?536870912:0;if(i!==0){t=i;l:{var c=l;u=hu;var s=c.current.memoizedState.isDehydrated;if(s&&(Ae(c,i).flags|=256),i=Bc(c,i,!1),i!==2){if(Dc&&!s){c.errorRecoveryDisabledLanes|=n,Xa|=n,u=4;break l}n=zt,zt=u,n!==null&&Rc(n)}u=i}if(n=!1,u!==2)continue}}if(u===1){Ae(l,0),Zt(l,t,0,!0);break}l:{switch(e=l,u){case 0:case 1:throw Error(o(345));case 4:if((t&4194176)===t){Zt(e,t,nt,!Xt);break l}break;case 2:zt=null;break;case 3:case 5:break;default:throw Error(o(329))}if(e.finishedWork=a,e.finishedLanes=t,(t&62914560)===t&&(n=xc+300-St(),10<n)){if(Zt(e,t,nt,!Xt),Yu(e,0)!==0)break l;e.timeoutHandle=jd(hd.bind(null,e,a,zt,Tn,Oc,t,nt,Xa,Ee,Xt,2,-0,0),n);break l}hd(e,a,zt,Tn,Oc,t,nt,Xa,Ee,Xt,0,-0,0)}}break}while(!0);Mt(l)}function Rc(l){zt===null?zt=l:zt.push.apply(zt,l)}function hd(l,t,a,e,u,n,i,c,s,m,E,z,g){var p=t.subtreeFlags;if((p&8192||(p&16785408)===16785408)&&(Au={stylesheets:null,count:0,unsuspend:Wm},ud(t),t=Fm(),t!==null)){l.cancelPendingCommit=t(Ed.bind(null,l,a,e,u,i,c,s,1,z,g)),Zt(l,n,i,!m);return}Ed(l,a,e,u,i,c,s,E,z,g)}function hm(l){for(var t=l;;){var a=t.tag;if((a===0||a===11||a===15)&&t.flags&16384&&(a=t.updateQueue,a!==null&&(a=a.stores,a!==null)))for(var e=0;e<a.length;e++){var u=a[e],n=u.getSnapshot;u=u.value;try{if(!Zl(n(),u))return!1}catch{return!1}}if(a=t.child,t.subtreeFlags&16384&&a!==null)a.return=t,t=a;else{if(t===l)break;for(;t.sibling===null;){if(t.return===null||t.return===l)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function Zt(l,t,a,e){t&=~_c,t&=~Xa,l.suspendedLanes|=t,l.pingedLanes&=~t,e&&(l.warmLanes|=t),e=l.expirationTimes;for(var u=t;0<u;){var n=31-Ql(u),i=1<<n;e[n]=-1,u&=~i}a!==0&&Of(l,a,t)}function _n(){return(cl&6)===0?(gu(0),!1):!0}function Cc(){if(Z!==null){if(al===0)var l=Z.return;else l=Z,Ct=Ba=null,Xi(l),oe=null,Fe=0,l=Z;for(;l!==null;)dd(l.alternate,l),l=l.return;Z=null}}function Ae(l,t){l.finishedWork=null,l.finishedLanes=0;var a=l.timeoutHandle;a!==-1&&(l.timeoutHandle=-1,Rm(a)),a=l.cancelPendingCommit,a!==null&&(l.cancelPendingCommit=null,a()),Cc(),tl=l,Z=a=fa(l.current,null),V=t,al=0,wl=null,Xt=!1,pe=Re(l,t),Dc=!1,Ee=nt=_c=Xa=sa=sl=0,zt=hu=null,Oc=!1,(t&8)!==0&&(t|=t&32);var e=l.entangledLanes;if(e!==0)for(l=l.entanglements,e&=t;0<e;){var u=31-Ql(e),n=1<<u;t|=l[u],e&=~n}return Qt=t,$u(),a}function vd(l,t){X=null,q.H=At,t===We?(t=xs(),al=3):t===Ds?(t=xs(),al=4):al=t===Oo?8:t!==null&&typeof t=="object"&&typeof t.then=="function"?6:1,wl=t,Z===null&&(sl=1,gn(l,Pl(t,l.current)))}function yd(){var l=q.H;return q.H=At,l===null?At:l}function gd(){var l=q.A;return q.A=rm,l}function qc(){sl=4,Xt||(V&4194176)!==V&&tt.current!==null||(pe=!0),(sa&134217727)===0&&(Xa&134217727)===0||tl===null||Zt(tl,V,nt,!1)}function Bc(l,t,a){var e=cl;cl|=2;var u=yd(),n=gd();(tl!==l||V!==t)&&(Tn=null,Ae(l,t)),t=!1;var i=sl;l:do try{if(al!==0&&Z!==null){var c=Z,s=wl;switch(al){case 8:Cc(),i=6;break l;case 3:case 2:case 6:tt.current===null&&(t=!0);var m=al;if(al=0,wl=null,ze(l,c,s,m),a&&pe){i=0;break l}break;default:m=al,al=0,wl=null,ze(l,c,s,m)}}vm(),i=sl;break}catch(E){vd(l,E)}while(!0);return t&&l.shellSuspendCounter++,Ct=Ba=null,cl=e,q.H=u,q.A=n,Z===null&&(tl=null,V=0,$u()),i}function vm(){for(;Z!==null;)bd(Z)}function ym(l,t){var a=cl;cl|=2;var e=yd(),u=gd();tl!==l||V!==t?(Tn=null,Mn=St()+500,Ae(l,t)):pe=Re(l,t);l:do try{if(al!==0&&Z!==null){t=Z;var n=wl;t:switch(al){case 1:al=0,wl=null,ze(l,t,n,1);break;case 2:if(_s(n)){al=0,wl=null,Sd(t);break}t=function(){al===2&&tl===l&&(al=7),Mt(l)},n.then(t,t);break l;case 3:al=7;break l;case 4:al=5;break l;case 7:_s(n)?(al=0,wl=null,Sd(t)):(al=0,wl=null,ze(l,t,n,7));break;case 5:var i=null;switch(Z.tag){case 26:i=Z.memoizedState;case 5:case 27:var c=Z;if(!i||kd(i)){al=0,wl=null;var s=c.sibling;if(s!==null)Z=s;else{var m=c.return;m!==null?(Z=m,On(m)):Z=null}break t}}al=0,wl=null,ze(l,t,n,5);break;case 6:al=0,wl=null,ze(l,t,n,6);break;case 8:Cc(),sl=6;break l;default:throw Error(o(462))}}gm();break}catch(E){vd(l,E)}while(!0);return Ct=Ba=null,q.H=e,q.A=u,cl=a,Z!==null?0:(tl=null,V=0,$u(),sl)}function gm(){for(;Z!==null&&!Gr();)bd(Z)}function bd(l){var t=Xo(l.alternate,l,Qt);l.memoizedProps=l.pendingProps,t===null?On(l):Z=t}function Sd(l){var t=l,a=t.alternate;switch(t.tag){case 15:case 0:t=Co(a,t,t.pendingProps,t.type,void 0,V);break;case 11:t=Co(a,t,t.pendingProps,t.type.render,t.ref,V);break;case 5:Xi(t);default:dd(a,t),t=Z=fd(t,Qt),t=Xo(a,t,Qt)}l.memoizedProps=l.pendingProps,t===null?On(l):Z=t}function ze(l,t,a,e){Ct=Ba=null,Xi(t),oe=null,Fe=0;var u=t.return;try{if(nm(l,u,t,a,V)){sl=1,gn(l,Pl(a,l.current)),Z=null;return}}catch(n){if(u!==null)throw Z=u,n;sl=1,gn(l,Pl(a,l.current)),Z=null;return}t.flags&32768?(J||e===1?l=!0:pe||(V&536870912)!==0?l=!1:(Xt=l=!0,(e===2||e===3||e===6)&&(e=tt.current,e!==null&&e.tag===13&&(e.flags|=16384))),pd(t,l)):On(t)}function On(l){var t=l;do{if((t.flags&32768)!==0){pd(t,Xt);return}l=t.return;var a=om(t.alternate,t,Qt);if(a!==null){Z=a;return}if(t=t.sibling,t!==null){Z=t;return}Z=t=l}while(t!==null);sl===0&&(sl=5)}function pd(l,t){do{var a=dm(l.alternate,l);if(a!==null){a.flags&=32767,Z=a;return}if(a=l.return,a!==null&&(a.flags|=32768,a.subtreeFlags=0,a.deletions=null),!t&&(l=l.sibling,l!==null)){Z=l;return}Z=l=a}while(l!==null);sl=6,Z=null}function Ed(l,t,a,e,u,n,i,c,s,m){var E=q.T,z=w.p;try{w.p=2,q.T=null,bm(l,t,a,e,z,u,n,i,c,s,m)}finally{q.T=E,w.p=z}}function bm(l,t,a,e,u,n,i,c){do Me();while(Qa!==null);if((cl&6)!==0)throw Error(o(327));var s=l.finishedWork;if(e=l.finishedLanes,s===null)return null;if(l.finishedWork=null,l.finishedLanes=0,s===l.current)throw Error(o(177));l.callbackNode=null,l.callbackPriority=0,l.cancelPendingCommit=null;var m=s.lanes|s.childLanes;if(m|=Ti,$r(l,e,m,n,i,c),l===tl&&(Z=tl=null,V=0),(s.subtreeFlags&10256)===0&&(s.flags&10256)===0||Dn||(Dn=!0,Uc=m,Hc=a,Am(qu,function(){return Me(),null})),a=(s.flags&15990)!==0,(s.subtreeFlags&15990)!==0||a?(a=q.T,q.T=null,n=w.p,w.p=2,i=cl,cl|=4,cm(l,s),td(s,l),Z0(kc,l.containerInfo),Xn=!!Jc,kc=Jc=null,l.current=s,Fo(l,s.alternate,s),Xr(),cl=i,w.p=n,q.T=a):l.current=s,Dn?(Dn=!1,Qa=l,vu=e):Ad(l,m),m=l.pendingLanes,m===0&&(oa=null),wr(s.stateNode),Mt(l),t!==null)for(u=l.onRecoverableError,s=0;s<t.length;s++)m=t[s],u(m.value,{componentStack:m.stack});return(vu&3)!==0&&Me(),m=l.pendingLanes,(e&4194218)!==0&&(m&42)!==0?l===Nc?yu++:(yu=0,Nc=l):yu=0,gu(0),null}function Ad(l,t){(l.pooledCacheLanes&=t)===0&&(t=l.pooledCache,t!=null&&(l.pooledCache=null,Ie(t)))}function Me(){if(Qa!==null){var l=Qa,t=Uc;Uc=0;var a=Uf(vu),e=q.T,u=w.p;try{if(w.p=32>a?32:a,q.T=null,Qa===null)var n=!1;else{a=Hc,Hc=null;var i=Qa,c=vu;if(Qa=null,vu=0,(cl&6)!==0)throw Error(o(331));var s=cl;if(cl|=4,id(i.current),ed(i,i.current,c,a),cl=s,gu(0,!1),Xl&&typeof Xl.onPostCommitFiberRoot=="function")try{Xl.onPostCommitFiberRoot(Ne,i)}catch{}n=!0}return n}finally{w.p=u,q.T=e,Ad(l,t)}}return!1}function zd(l,t,a){t=Pl(a,t),t=lc(l.stateNode,t,2),l=ua(l,t,2),l!==null&&(Ce(l,2),Mt(l))}function ll(l,t,a){if(l.tag===3)zd(l,l,a);else for(;t!==null;){if(t.tag===3){zd(t,l,a);break}else if(t.tag===1){var e=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof e.componentDidCatch=="function"&&(oa===null||!oa.has(e))){l=Pl(a,l),a=Do(2),e=ua(t,a,2),e!==null&&(_o(a,e,t,l),Ce(e,2),Mt(e));break}}t=t.return}}function jc(l,t,a){var e=l.pingCache;if(e===null){e=l.pingCache=new mm;var u=new Set;e.set(t,u)}else u=e.get(t),u===void 0&&(u=new Set,e.set(t,u));u.has(a)||(Dc=!0,u.add(a),l=Sm.bind(null,l,t,a),t.then(l,l))}function Sm(l,t,a){var e=l.pingCache;e!==null&&e.delete(t),l.pingedLanes|=l.suspendedLanes&a,l.warmLanes&=~a,tl===l&&(V&a)===a&&(sl===4||sl===3&&(V&62914560)===V&&300>St()-xc?(cl&2)===0&&Ae(l,0):_c|=a,Ee===V&&(Ee=0)),Mt(l)}function Md(l,t){t===0&&(t=_f()),l=$t(l,t),l!==null&&(Ce(l,t),Mt(l))}function pm(l){var t=l.memoizedState,a=0;t!==null&&(a=t.retryLane),Md(l,a)}function Em(l,t){var a=0;switch(l.tag){case 13:var e=l.stateNode,u=l.memoizedState;u!==null&&(a=u.retryLane);break;case 19:e=l.stateNode;break;case 22:e=l.stateNode._retryCache;break;default:throw Error(o(314))}e!==null&&e.delete(t),Md(l,a)}function Am(l,t){return ti(l,t)}var xn=null,Te=null,Yc=!1,Un=!1,Gc=!1,Za=0;function Mt(l){l!==Te&&l.next===null&&(Te===null?xn=Te=l:Te=Te.next=l),Un=!0,Yc||(Yc=!0,Mm(zm))}function gu(l,t){if(!Gc&&Un){Gc=!0;do for(var a=!1,e=xn;e!==null;){if(l!==0){var u=e.pendingLanes;if(u===0)var n=0;else{var i=e.suspendedLanes,c=e.pingedLanes;n=(1<<31-Ql(42|l)+1)-1,n&=u&~(i&~c),n=n&201326677?n&201326677|1:n?n|2:0}n!==0&&(a=!0,_d(e,n))}else n=V,n=Yu(e,e===tl?n:0),(n&3)===0||Re(e,n)||(a=!0,_d(e,n));e=e.next}while(a);Gc=!1}}function zm(){Un=Yc=!1;var l=0;Za!==0&&(Nm()&&(l=Za),Za=0);for(var t=St(),a=null,e=xn;e!==null;){var u=e.next,n=Td(e,t);n===0?(e.next=null,a===null?xn=u:a.next=u,u===null&&(Te=a)):(a=e,(l!==0||(n&3)!==0)&&(Un=!0)),e=u}gu(l)}function Td(l,t){for(var a=l.suspendedLanes,e=l.pingedLanes,u=l.expirationTimes,n=l.pendingLanes&-62914561;0<n;){var i=31-Ql(n),c=1<<i,s=u[i];s===-1?((c&a)===0||(c&e)!==0)&&(u[i]=Wr(c,t)):s<=t&&(l.expiredLanes|=c),n&=~c}if(t=tl,a=V,a=Yu(l,l===t?a:0),e=l.callbackNode,a===0||l===t&&al===2||l.cancelPendingCommit!==null)return e!==null&&e!==null&&ai(e),l.callbackNode=null,l.callbackPriority=0;if((a&3)===0||Re(l,a)){if(t=a&-a,t===l.callbackPriority)return t;switch(e!==null&&ai(e),Uf(a)){case 2:case 8:a=Mf;break;case 32:a=qu;break;case 268435456:a=Tf;break;default:a=qu}return e=Dd.bind(null,l),a=ti(a,e),l.callbackPriority=t,l.callbackNode=a,t}return e!==null&&e!==null&&ai(e),l.callbackPriority=2,l.callbackNode=null,2}function Dd(l,t){var a=l.callbackNode;if(Me()&&l.callbackNode!==a)return null;var e=V;return e=Yu(l,l===tl?e:0),e===0?null:(md(l,e,t),Td(l,St()),l.callbackNode!=null&&l.callbackNode===a?Dd.bind(null,l):null)}function _d(l,t){if(Me())return null;md(l,t,!0)}function Mm(l){Cm(function(){(cl&6)!==0?ti(zf,l):l()})}function Xc(){return Za===0&&(Za=Df()),Za}function Od(l){return l==null||typeof l=="symbol"||typeof l=="boolean"?null:typeof l=="function"?l:Lu(""+l)}function xd(l,t){var a=t.ownerDocument.createElement("input");return a.name=t.name,a.value=t.value,l.id&&a.setAttribute("form",l.id),t.parentNode.insertBefore(a,t),l=new FormData(l),a.parentNode.removeChild(a),l}function Tm(l,t,a,e,u){if(t==="submit"&&a&&a.stateNode===u){var n=Od((u[Cl]||null).action),i=e.submitter;i&&(t=(t=i[Cl]||null)?Od(t.formAction):i.getAttribute("formAction"),t!==null&&(n=t,i=null));var c=new Ju("action","action",null,e,u);l.push({event:c,listeners:[{instance:null,listener:function(){if(e.defaultPrevented){if(Za!==0){var s=i?xd(u,i):new FormData(u);Wi(a,{pending:!0,data:s,method:u.method,action:n},null,s)}}else typeof n=="function"&&(c.preventDefault(),s=i?xd(u,i):new FormData(u),Wi(a,{pending:!0,data:s,method:u.method,action:n},n,s))},currentTarget:u}]})}}for(var Qc=0;Qc<ps.length;Qc++){var Zc=ps[Qc],Dm=Zc.toLowerCase(),_m=Zc[0].toUpperCase()+Zc.slice(1);dt(Dm,"on"+_m)}dt(vs,"onAnimationEnd"),dt(ys,"onAnimationIteration"),dt(gs,"onAnimationStart"),dt("dblclick","onDoubleClick"),dt("focusin","onFocus"),dt("focusout","onBlur"),dt(V0,"onTransitionRun"),dt(w0,"onTransitionStart"),dt(K0,"onTransitionCancel"),dt(bs,"onTransitionEnd"),Pa("onMouseEnter",["mouseout","mouseover"]),Pa("onMouseLeave",["mouseout","mouseover"]),Pa("onPointerEnter",["pointerout","pointerover"]),Pa("onPointerLeave",["pointerout","pointerover"]),za("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),za("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),za("onBeforeInput",["compositionend","keypress","textInput","paste"]),za("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),za("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),za("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var bu="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(" "),Om=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(bu));function Ud(l,t){t=(t&4)!==0;for(var a=0;a<l.length;a++){var e=l[a],u=e.event;e=e.listeners;l:{var n=void 0;if(t)for(var i=e.length-1;0<=i;i--){var c=e[i],s=c.instance,m=c.currentTarget;if(c=c.listener,s!==n&&u.isPropagationStopped())break l;n=c,u.currentTarget=m;try{n(u)}catch(E){yn(E)}u.currentTarget=null,n=s}else for(i=0;i<e.length;i++){if(c=e[i],s=c.instance,m=c.currentTarget,c=c.listener,s!==n&&u.isPropagationStopped())break l;n=c,u.currentTarget=m;try{n(u)}catch(E){yn(E)}u.currentTarget=null,n=s}}}}function L(l,t){var a=t[ui];a===void 0&&(a=t[ui]=new Set);var e=l+"__bubble";a.has(e)||(Hd(t,l,2,!1),a.add(e))}function Lc(l,t,a){var e=0;t&&(e|=4),Hd(a,l,e,t)}var Hn="_reactListening"+Math.random().toString(36).slice(2);function Vc(l){if(!l[Hn]){l[Hn]=!0,Rf.forEach(function(a){a!=="selectionchange"&&(Om.has(a)||Lc(a,!1,l),Lc(a,!0,l))});var t=l.nodeType===9?l:l.ownerDocument;t===null||t[Hn]||(t[Hn]=!0,Lc("selectionchange",!1,t))}}function Hd(l,t,a,e){switch(lr(t)){case 2:var u=lh;break;case 8:u=th;break;default:u=ef}a=u.bind(null,t,a,l),u=void 0,!ri||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(u=!0),e?u!==void 0?l.addEventListener(t,a,{capture:!0,passive:u}):l.addEventListener(t,a,!0):u!==void 0?l.addEventListener(t,a,{passive:u}):l.addEventListener(t,a,!1)}function wc(l,t,a,e,u){var n=e;if((t&1)===0&&(t&2)===0&&e!==null)l:for(;;){if(e===null)return;var i=e.tag;if(i===3||i===4){var c=e.stateNode.containerInfo;if(c===u||c.nodeType===8&&c.parentNode===u)break;if(i===4)for(i=e.return;i!==null;){var s=i.tag;if((s===3||s===4)&&(s=i.stateNode.containerInfo,s===u||s.nodeType===8&&s.parentNode===u))return;i=i.return}for(;c!==null;){if(i=Aa(c),i===null)return;if(s=i.tag,s===5||s===6||s===26||s===27){e=n=i;continue l}c=c.parentNode}}e=e.return}wf(function(){var m=n,E=oi(a),z=[];l:{var g=Ss.get(l);if(g!==void 0){var p=Ju,x=l;switch(l){case"keypress":if(wu(a)===0)break l;case"keydown":case"keyup":p=E0;break;case"focusin":x="focus",p=yi;break;case"focusout":x="blur",p=yi;break;case"beforeblur":case"afterblur":p=yi;break;case"click":if(a.button===2)break l;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":p=kf;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":p=s0;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":p=M0;break;case vs:case ys:case gs:p=r0;break;case bs:p=D0;break;case"scroll":case"scrollend":p=c0;break;case"wheel":p=O0;break;case"copy":case"cut":case"paste":p=h0;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":p=$f;break;case"toggle":case"beforetoggle":p=U0}var j=(t&4)!==0,ol=!j&&(l==="scroll"||l==="scrollend"),h=j?g!==null?g+"Capture":null:g;j=[];for(var r=m,v;r!==null;){var A=r;if(v=A.stateNode,A=A.tag,A!==5&&A!==26&&A!==27||v===null||h===null||(A=je(r,h),A!=null&&j.push(Su(r,A,v))),ol)break;r=r.return}0<j.length&&(g=new p(g,x,null,a,E),z.push({event:g,listeners:j}))}}if((t&7)===0){l:{if(g=l==="mouseover"||l==="pointerover",p=l==="mouseout"||l==="pointerout",g&&a!==si&&(x=a.relatedTarget||a.fromElement)&&(Aa(x)||x[Wa]))break l;if((p||g)&&(g=E.window===E?E:(g=E.ownerDocument)?g.defaultView||g.parentWindow:window,p?(x=a.relatedTarget||a.toElement,p=m,x=x?Aa(x):null,x!==null&&(ol=B(x),j=x.tag,x!==ol||j!==5&&j!==27&&j!==6)&&(x=null)):(p=null,x=m),p!==x)){if(j=kf,A="onMouseLeave",h="onMouseEnter",r="mouse",(l==="pointerout"||l==="pointerover")&&(j=$f,A="onPointerLeave",h="onPointerEnter",r="pointer"),ol=p==null?g:Be(p),v=x==null?g:Be(x),g=new j(A,r+"leave",p,a,E),g.target=ol,g.relatedTarget=v,A=null,Aa(E)===m&&(j=new j(h,r+"enter",x,a,E),j.target=v,j.relatedTarget=ol,A=j),ol=A,p&&x)t:{for(j=p,h=x,r=0,v=j;v;v=De(v))r++;for(v=0,A=h;A;A=De(A))v++;for(;0<r-v;)j=De(j),r--;for(;0<v-r;)h=De(h),v--;for(;r--;){if(j===h||h!==null&&j===h.alternate)break t;j=De(j),h=De(h)}j=null}else j=null;p!==null&&Nd(z,g,p,j,!1),x!==null&&ol!==null&&Nd(z,ol,x,j,!0)}}l:{if(g=m?Be(m):window,p=g.nodeName&&g.nodeName.toLowerCase(),p==="select"||p==="input"&&g.type==="file")var O=us;else if(as(g))if(ns)O=X0;else{O=Y0;var Q=j0}else p=g.nodeName,!p||p.toLowerCase()!=="input"||g.type!=="checkbox"&&g.type!=="radio"?m&&fi(m.elementType)&&(O=us):O=G0;if(O&&(O=O(l,m))){es(z,O,a,E);break l}Q&&Q(l,g,m),l==="focusout"&&m&&g.type==="number"&&m.memoizedProps.value!=null&&ci(g,"number",g.value)}switch(Q=m?Be(m):window,l){case"focusin":(as(Q)||Q.contentEditable==="true")&&(ue=Q,Ai=m,we=null);break;case"focusout":we=Ai=ue=null;break;case"mousedown":zi=!0;break;case"contextmenu":case"mouseup":case"dragend":zi=!1,ms(z,a,E);break;case"selectionchange":if(L0)break;case"keydown":case"keyup":ms(z,a,E)}var U;if(bi)l:{switch(l){case"compositionstart":var N="onCompositionStart";break l;case"compositionend":N="onCompositionEnd";break l;case"compositionupdate":N="onCompositionUpdate";break l}N=void 0}else ee?ls(l,a)&&(N="onCompositionEnd"):l==="keydown"&&a.keyCode===229&&(N="onCompositionStart");N&&(Ff&&a.locale!=="ko"&&(ee||N!=="onCompositionStart"?N==="onCompositionEnd"&&ee&&(U=Kf()):(Wt=E,mi="value"in Wt?Wt.value:Wt.textContent,ee=!0)),Q=Nn(m,N),0<Q.length&&(N=new Wf(N,l,null,a,E),z.push({event:N,listeners:Q}),U?N.data=U:(U=ts(a),U!==null&&(N.data=U)))),(U=N0?R0(l,a):C0(l,a))&&(N=Nn(m,"onBeforeInput"),0<N.length&&(Q=new Wf("onBeforeInput","beforeinput",null,a,E),z.push({event:Q,listeners:N}),Q.data=U)),Tm(z,l,m,a,E)}Ud(z,t)})}function Su(l,t,a){return{instance:l,listener:t,currentTarget:a}}function Nn(l,t){for(var a=t+"Capture",e=[];l!==null;){var u=l,n=u.stateNode;u=u.tag,u!==5&&u!==26&&u!==27||n===null||(u=je(l,a),u!=null&&e.unshift(Su(l,u,n)),u=je(l,t),u!=null&&e.push(Su(l,u,n))),l=l.return}return e}function De(l){if(l===null)return null;do l=l.return;while(l&&l.tag!==5&&l.tag!==27);return l||null}function Nd(l,t,a,e,u){for(var n=t._reactName,i=[];a!==null&&a!==e;){var c=a,s=c.alternate,m=c.stateNode;if(c=c.tag,s!==null&&s===e)break;c!==5&&c!==26&&c!==27||m===null||(s=m,u?(m=je(a,n),m!=null&&i.unshift(Su(a,m,s))):u||(m=je(a,n),m!=null&&i.push(Su(a,m,s)))),a=a.return}i.length!==0&&l.push({event:t,listeners:i})}var xm=/\r\n?/g,Um=/\u0000|\uFFFD/g;function Rd(l){return(typeof l=="string"?l:""+l).replace(xm,`
`).replace(Um,"")}function Cd(l,t){return t=Rd(t),Rd(l)===t}function Rn(){}function P(l,t,a,e,u,n){switch(a){case"children":typeof e=="string"?t==="body"||t==="textarea"&&e===""||le(l,e):(typeof e=="number"||typeof e=="bigint")&&t!=="body"&&le(l,""+e);break;case"className":Xu(l,"class",e);break;case"tabIndex":Xu(l,"tabindex",e);break;case"dir":case"role":case"viewBox":case"width":case"height":Xu(l,a,e);break;case"style":Lf(l,e,n);break;case"data":if(t!=="object"){Xu(l,"data",e);break}case"src":case"href":if(e===""&&(t!=="a"||a!=="href")){l.removeAttribute(a);break}if(e==null||typeof e=="function"||typeof e=="symbol"||typeof e=="boolean"){l.removeAttribute(a);break}e=Lu(""+e),l.setAttribute(a,e);break;case"action":case"formAction":if(typeof e=="function"){l.setAttribute(a,"javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')");break}else typeof n=="function"&&(a==="formAction"?(t!=="input"&&P(l,t,"name",u.name,u,null),P(l,t,"formEncType",u.formEncType,u,null),P(l,t,"formMethod",u.formMethod,u,null),P(l,t,"formTarget",u.formTarget,u,null)):(P(l,t,"encType",u.encType,u,null),P(l,t,"method",u.method,u,null),P(l,t,"target",u.target,u,null)));if(e==null||typeof e=="symbol"||typeof e=="boolean"){l.removeAttribute(a);break}e=Lu(""+e),l.setAttribute(a,e);break;case"onClick":e!=null&&(l.onclick=Rn);break;case"onScroll":e!=null&&L("scroll",l);break;case"onScrollEnd":e!=null&&L("scrollend",l);break;case"dangerouslySetInnerHTML":if(e!=null){if(typeof e!="object"||!("__html"in e))throw Error(o(61));if(a=e.__html,a!=null){if(u.children!=null)throw Error(o(60));l.innerHTML=a}}break;case"multiple":l.multiple=e&&typeof e!="function"&&typeof e!="symbol";break;case"muted":l.muted=e&&typeof e!="function"&&typeof e!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(e==null||typeof e=="function"||typeof e=="boolean"||typeof e=="symbol"){l.removeAttribute("xlink:href");break}a=Lu(""+e),l.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",a);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":e!=null&&typeof e!="function"&&typeof e!="symbol"?l.setAttribute(a,""+e):l.removeAttribute(a);break;case"inert":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":e&&typeof e!="function"&&typeof e!="symbol"?l.setAttribute(a,""):l.removeAttribute(a);break;case"capture":case"download":e===!0?l.setAttribute(a,""):e!==!1&&e!=null&&typeof e!="function"&&typeof e!="symbol"?l.setAttribute(a,e):l.removeAttribute(a);break;case"cols":case"rows":case"size":case"span":e!=null&&typeof e!="function"&&typeof e!="symbol"&&!isNaN(e)&&1<=e?l.setAttribute(a,e):l.removeAttribute(a);break;case"rowSpan":case"start":e==null||typeof e=="function"||typeof e=="symbol"||isNaN(e)?l.removeAttribute(a):l.setAttribute(a,e);break;case"popover":L("beforetoggle",l),L("toggle",l),Gu(l,"popover",e);break;case"xlinkActuate":Ot(l,"http://www.w3.org/1999/xlink","xlink:actuate",e);break;case"xlinkArcrole":Ot(l,"http://www.w3.org/1999/xlink","xlink:arcrole",e);break;case"xlinkRole":Ot(l,"http://www.w3.org/1999/xlink","xlink:role",e);break;case"xlinkShow":Ot(l,"http://www.w3.org/1999/xlink","xlink:show",e);break;case"xlinkTitle":Ot(l,"http://www.w3.org/1999/xlink","xlink:title",e);break;case"xlinkType":Ot(l,"http://www.w3.org/1999/xlink","xlink:type",e);break;case"xmlBase":Ot(l,"http://www.w3.org/XML/1998/namespace","xml:base",e);break;case"xmlLang":Ot(l,"http://www.w3.org/XML/1998/namespace","xml:lang",e);break;case"xmlSpace":Ot(l,"http://www.w3.org/XML/1998/namespace","xml:space",e);break;case"is":Gu(l,"is",e);break;case"innerText":case"textContent":break;default:(!(2<a.length)||a[0]!=="o"&&a[0]!=="O"||a[1]!=="n"&&a[1]!=="N")&&(a=n0.get(a)||a,Gu(l,a,e))}}function Kc(l,t,a,e,u,n){switch(a){case"style":Lf(l,e,n);break;case"dangerouslySetInnerHTML":if(e!=null){if(typeof e!="object"||!("__html"in e))throw Error(o(61));if(a=e.__html,a!=null){if(u.children!=null)throw Error(o(60));l.innerHTML=a}}break;case"children":typeof e=="string"?le(l,e):(typeof e=="number"||typeof e=="bigint")&&le(l,""+e);break;case"onScroll":e!=null&&L("scroll",l);break;case"onScrollEnd":e!=null&&L("scrollend",l);break;case"onClick":e!=null&&(l.onclick=Rn);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!Cf.hasOwnProperty(a))l:{if(a[0]==="o"&&a[1]==="n"&&(u=a.endsWith("Capture"),t=a.slice(2,u?a.length-7:void 0),n=l[Cl]||null,n=n!=null?n[a]:null,typeof n=="function"&&l.removeEventListener(t,n,u),typeof e=="function")){typeof n!="function"&&n!==null&&(a in l?l[a]=null:l.hasAttribute(a)&&l.removeAttribute(a)),l.addEventListener(t,e,u);break l}a in l?l[a]=e:e===!0?l.setAttribute(a,""):Gu(l,a,e)}}}function Dl(l,t,a){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":L("error",l),L("load",l);var e=!1,u=!1,n;for(n in a)if(a.hasOwnProperty(n)){var i=a[n];if(i!=null)switch(n){case"src":e=!0;break;case"srcSet":u=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(o(137,t));default:P(l,t,n,i,a,null)}}u&&P(l,t,"srcSet",a.srcSet,a,null),e&&P(l,t,"src",a.src,a,null);return;case"input":L("invalid",l);var c=n=i=u=null,s=null,m=null;for(e in a)if(a.hasOwnProperty(e)){var E=a[e];if(E!=null)switch(e){case"name":u=E;break;case"type":i=E;break;case"checked":s=E;break;case"defaultChecked":m=E;break;case"value":n=E;break;case"defaultValue":c=E;break;case"children":case"dangerouslySetInnerHTML":if(E!=null)throw Error(o(137,t));break;default:P(l,t,e,E,a,null)}}Gf(l,n,c,s,m,i,u,!1),Qu(l);return;case"select":L("invalid",l),e=i=n=null;for(u in a)if(a.hasOwnProperty(u)&&(c=a[u],c!=null))switch(u){case"value":n=c;break;case"defaultValue":i=c;break;case"multiple":e=c;default:P(l,t,u,c,a,null)}t=n,a=i,l.multiple=!!e,t!=null?Ia(l,!!e,t,!1):a!=null&&Ia(l,!!e,a,!0);return;case"textarea":L("invalid",l),n=u=e=null;for(i in a)if(a.hasOwnProperty(i)&&(c=a[i],c!=null))switch(i){case"value":e=c;break;case"defaultValue":u=c;break;case"children":n=c;break;case"dangerouslySetInnerHTML":if(c!=null)throw Error(o(91));break;default:P(l,t,i,c,a,null)}Qf(l,e,u,n),Qu(l);return;case"option":for(s in a)if(a.hasOwnProperty(s)&&(e=a[s],e!=null))switch(s){case"selected":l.selected=e&&typeof e!="function"&&typeof e!="symbol";break;default:P(l,t,s,e,a,null)}return;case"dialog":L("cancel",l),L("close",l);break;case"iframe":case"object":L("load",l);break;case"video":case"audio":for(e=0;e<bu.length;e++)L(bu[e],l);break;case"image":L("error",l),L("load",l);break;case"details":L("toggle",l);break;case"embed":case"source":case"link":L("error",l),L("load",l);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(m in a)if(a.hasOwnProperty(m)&&(e=a[m],e!=null))switch(m){case"children":case"dangerouslySetInnerHTML":throw Error(o(137,t));default:P(l,t,m,e,a,null)}return;default:if(fi(t)){for(E in a)a.hasOwnProperty(E)&&(e=a[E],e!==void 0&&Kc(l,t,E,e,a,void 0));return}}for(c in a)a.hasOwnProperty(c)&&(e=a[c],e!=null&&P(l,t,c,e,a,null))}function Hm(l,t,a,e){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var u=null,n=null,i=null,c=null,s=null,m=null,E=null;for(p in a){var z=a[p];if(a.hasOwnProperty(p)&&z!=null)switch(p){case"checked":break;case"value":break;case"defaultValue":s=z;default:e.hasOwnProperty(p)||P(l,t,p,null,e,z)}}for(var g in e){var p=e[g];if(z=a[g],e.hasOwnProperty(g)&&(p!=null||z!=null))switch(g){case"type":n=p;break;case"name":u=p;break;case"checked":m=p;break;case"defaultChecked":E=p;break;case"value":i=p;break;case"defaultValue":c=p;break;case"children":case"dangerouslySetInnerHTML":if(p!=null)throw Error(o(137,t));break;default:p!==z&&P(l,t,g,p,e,z)}}ii(l,i,c,s,m,E,n,u);return;case"select":p=i=c=g=null;for(n in a)if(s=a[n],a.hasOwnProperty(n)&&s!=null)switch(n){case"value":break;case"multiple":p=s;default:e.hasOwnProperty(n)||P(l,t,n,null,e,s)}for(u in e)if(n=e[u],s=a[u],e.hasOwnProperty(u)&&(n!=null||s!=null))switch(u){case"value":g=n;break;case"defaultValue":c=n;break;case"multiple":i=n;default:n!==s&&P(l,t,u,n,e,s)}t=c,a=i,e=p,g!=null?Ia(l,!!a,g,!1):!!e!=!!a&&(t!=null?Ia(l,!!a,t,!0):Ia(l,!!a,a?[]:"",!1));return;case"textarea":p=g=null;for(c in a)if(u=a[c],a.hasOwnProperty(c)&&u!=null&&!e.hasOwnProperty(c))switch(c){case"value":break;case"children":break;default:P(l,t,c,null,e,u)}for(i in e)if(u=e[i],n=a[i],e.hasOwnProperty(i)&&(u!=null||n!=null))switch(i){case"value":g=u;break;case"defaultValue":p=u;break;case"children":break;case"dangerouslySetInnerHTML":if(u!=null)throw Error(o(91));break;default:u!==n&&P(l,t,i,u,e,n)}Xf(l,g,p);return;case"option":for(var x in a)if(g=a[x],a.hasOwnProperty(x)&&g!=null&&!e.hasOwnProperty(x))switch(x){case"selected":l.selected=!1;break;default:P(l,t,x,null,e,g)}for(s in e)if(g=e[s],p=a[s],e.hasOwnProperty(s)&&g!==p&&(g!=null||p!=null))switch(s){case"selected":l.selected=g&&typeof g!="function"&&typeof g!="symbol";break;default:P(l,t,s,g,e,p)}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 j in a)g=a[j],a.hasOwnProperty(j)&&g!=null&&!e.hasOwnProperty(j)&&P(l,t,j,null,e,g);for(m in e)if(g=e[m],p=a[m],e.hasOwnProperty(m)&&g!==p&&(g!=null||p!=null))switch(m){case"children":case"dangerouslySetInnerHTML":if(g!=null)throw Error(o(137,t));break;default:P(l,t,m,g,e,p)}return;default:if(fi(t)){for(var ol in a)g=a[ol],a.hasOwnProperty(ol)&&g!==void 0&&!e.hasOwnProperty(ol)&&Kc(l,t,ol,void 0,e,g);for(E in e)g=e[E],p=a[E],!e.hasOwnProperty(E)||g===p||g===void 0&&p===void 0||Kc(l,t,E,g,e,p);return}}for(var h in a)g=a[h],a.hasOwnProperty(h)&&g!=null&&!e.hasOwnProperty(h)&&P(l,t,h,null,e,g);for(z in e)g=e[z],p=a[z],!e.hasOwnProperty(z)||g===p||g==null&&p==null||P(l,t,z,g,e,p)}var Jc=null,kc=null;function Cn(l){return l.nodeType===9?l:l.ownerDocument}function qd(l){switch(l){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function Bd(l,t){if(l===0)switch(t){case"svg":return 1;case"math":return 2;default:return 0}return l===1&&t==="foreignObject"?0:l}function Wc(l,t){return l==="textarea"||l==="noscript"||typeof t.children=="string"||typeof t.children=="number"||typeof t.children=="bigint"||typeof t.dangerouslySetInnerHTML=="object"&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var $c=null;function Nm(){var l=window.event;return l&&l.type==="popstate"?l===$c?!1:($c=l,!0):($c=null,!1)}var jd=typeof setTimeout=="function"?setTimeout:void 0,Rm=typeof clearTimeout=="function"?clearTimeout:void 0,Yd=typeof Promise=="function"?Promise:void 0,Cm=typeof queueMicrotask=="function"?queueMicrotask:typeof Yd<"u"?function(l){return Yd.resolve(null).then(l).catch(qm)}:jd;function qm(l){setTimeout(function(){throw l})}function Fc(l,t){var a=t,e=0;do{var u=a.nextSibling;if(l.removeChild(a),u&&u.nodeType===8)if(a=u.data,a==="/$"){if(e===0){l.removeChild(u),_u(t);return}e--}else a!=="$"&&a!=="$?"&&a!=="$!"||e++;a=u}while(a);_u(t)}function Pc(l){var t=l.firstChild;for(t&&t.nodeType===10&&(t=t.nextSibling);t;){var a=t;switch(t=t.nextSibling,a.nodeName){case"HTML":case"HEAD":case"BODY":Pc(a),ni(a);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(a.rel.toLowerCase()==="stylesheet")continue}l.removeChild(a)}}function Bm(l,t,a,e){for(;l.nodeType===1;){var u=a;if(l.nodeName.toLowerCase()!==t.toLowerCase()){if(!e&&(l.nodeName!=="INPUT"||l.type!=="hidden"))break}else if(e){if(!l[qe])switch(t){case"meta":if(!l.hasAttribute("itemprop"))break;return l;case"link":if(n=l.getAttribute("rel"),n==="stylesheet"&&l.hasAttribute("data-precedence"))break;if(n!==u.rel||l.getAttribute("href")!==(u.href==null?null:u.href)||l.getAttribute("crossorigin")!==(u.crossOrigin==null?null:u.crossOrigin)||l.getAttribute("title")!==(u.title==null?null:u.title))break;return l;case"style":if(l.hasAttribute("data-precedence"))break;return l;case"script":if(n=l.getAttribute("src"),(n!==(u.src==null?null:u.src)||l.getAttribute("type")!==(u.type==null?null:u.type)||l.getAttribute("crossorigin")!==(u.crossOrigin==null?null:u.crossOrigin))&&n&&l.hasAttribute("async")&&!l.hasAttribute("itemprop"))break;return l;default:return l}}else if(t==="input"&&l.type==="hidden"){var n=u.name==null?null:""+u.name;if(u.type==="hidden"&&l.getAttribute("name")===n)return l}else return l;if(l=ht(l.nextSibling),l===null)break}return null}function jm(l,t,a){if(t==="")return null;for(;l.nodeType!==3;)if((l.nodeType!==1||l.nodeName!=="INPUT"||l.type!=="hidden")&&!a||(l=ht(l.nextSibling),l===null))return null;return l}function ht(l){for(;l!=null;l=l.nextSibling){var t=l.nodeType;if(t===1||t===3)break;if(t===8){if(t=l.data,t==="$"||t==="$!"||t==="$?"||t==="F!"||t==="F")break;if(t==="/$")return null}}return l}function Gd(l){l=l.previousSibling;for(var t=0;l;){if(l.nodeType===8){var a=l.data;if(a==="$"||a==="$!"||a==="$?"){if(t===0)return l;t--}else a==="/$"&&t++}l=l.previousSibling}return null}function Xd(l,t,a){switch(t=Cn(a),l){case"html":if(l=t.documentElement,!l)throw Error(o(452));return l;case"head":if(l=t.head,!l)throw Error(o(453));return l;case"body":if(l=t.body,!l)throw Error(o(454));return l;default:throw Error(o(451))}}var it=new Map,Qd=new Set;function qn(l){return typeof l.getRootNode=="function"?l.getRootNode():l.ownerDocument}var Lt=w.d;w.d={f:Ym,r:Gm,D:Xm,C:Qm,L:Zm,m:Lm,X:wm,S:Vm,M:Km};function Ym(){var l=Lt.f(),t=_n();return l||t}function Gm(l){var t=$a(l);t!==null&&t.tag===5&&t.type==="form"?ho(t):Lt.r(l)}var _e=typeof document>"u"?null:document;function Zd(l,t,a){var e=_e;if(e&&typeof t=="string"&&t){var u=$l(t);u='link[rel="'+l+'"][href="'+u+'"]',typeof a=="string"&&(u+='[crossorigin="'+a+'"]'),Qd.has(u)||(Qd.add(u),l={rel:l,crossOrigin:a,href:t},e.querySelector(u)===null&&(t=e.createElement("link"),Dl(t,"link",l),pl(t),e.head.appendChild(t)))}}function Xm(l){Lt.D(l),Zd("dns-prefetch",l,null)}function Qm(l,t){Lt.C(l,t),Zd("preconnect",l,t)}function Zm(l,t,a){Lt.L(l,t,a);var e=_e;if(e&&l&&t){var u='link[rel="preload"][as="'+$l(t)+'"]';t==="image"&&a&&a.imageSrcSet?(u+='[imagesrcset="'+$l(a.imageSrcSet)+'"]',typeof a.imageSizes=="string"&&(u+='[imagesizes="'+$l(a.imageSizes)+'"]')):u+='[href="'+$l(l)+'"]';var n=u;switch(t){case"style":n=Oe(l);break;case"script":n=xe(l)}it.has(n)||(l=W({rel:"preload",href:t==="image"&&a&&a.imageSrcSet?void 0:l,as:t},a),it.set(n,l),e.querySelector(u)!==null||t==="style"&&e.querySelector(pu(n))||t==="script"&&e.querySelector(Eu(n))||(t=e.createElement("link"),Dl(t,"link",l),pl(t),e.head.appendChild(t)))}}function Lm(l,t){Lt.m(l,t);var a=_e;if(a&&l){var e=t&&typeof t.as=="string"?t.as:"script",u='link[rel="modulepreload"][as="'+$l(e)+'"][href="'+$l(l)+'"]',n=u;switch(e){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":n=xe(l)}if(!it.has(n)&&(l=W({rel:"modulepreload",href:l},t),it.set(n,l),a.querySelector(u)===null)){switch(e){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(a.querySelector(Eu(n)))return}e=a.createElement("link"),Dl(e,"link",l),pl(e),a.head.appendChild(e)}}}function Vm(l,t,a){Lt.S(l,t,a);var e=_e;if(e&&l){var u=Fa(e).hoistableStyles,n=Oe(l);t=t||"default";var i=u.get(n);if(!i){var c={loading:0,preload:null};if(i=e.querySelector(pu(n)))c.loading=5;else{l=W({rel:"stylesheet",href:l,"data-precedence":t},a),(a=it.get(n))&&Ic(l,a);var s=i=e.createElement("link");pl(s),Dl(s,"link",l),s._p=new Promise(function(m,E){s.onload=m,s.onerror=E}),s.addEventListener("load",function(){c.loading|=1}),s.addEventListener("error",function(){c.loading|=2}),c.loading|=4,Bn(i,t,e)}i={type:"stylesheet",instance:i,count:1,state:c},u.set(n,i)}}}function wm(l,t){Lt.X(l,t);var a=_e;if(a&&l){var e=Fa(a).hoistableScripts,u=xe(l),n=e.get(u);n||(n=a.querySelector(Eu(u)),n||(l=W({src:l,async:!0},t),(t=it.get(u))&&lf(l,t),n=a.createElement("script"),pl(n),Dl(n,"link",l),a.head.appendChild(n)),n={type:"script",instance:n,count:1,state:null},e.set(u,n))}}function Km(l,t){Lt.M(l,t);var a=_e;if(a&&l){var e=Fa(a).hoistableScripts,u=xe(l),n=e.get(u);n||(n=a.querySelector(Eu(u)),n||(l=W({src:l,async:!0,type:"module"},t),(t=it.get(u))&&lf(l,t),n=a.createElement("script"),pl(n),Dl(n,"link",l),a.head.appendChild(n)),n={type:"script",instance:n,count:1,state:null},e.set(u,n))}}function Ld(l,t,a,e){var u=(u=Kt.current)?qn(u):null;if(!u)throw Error(o(446));switch(l){case"meta":case"title":return null;case"style":return typeof a.precedence=="string"&&typeof a.href=="string"?(t=Oe(a.href),a=Fa(u).hoistableStyles,e=a.get(t),e||(e={type:"style",instance:null,count:0,state:null},a.set(t,e)),e):{type:"void",instance:null,count:0,state:null};case"link":if(a.rel==="stylesheet"&&typeof a.href=="string"&&typeof a.precedence=="string"){l=Oe(a.href);var n=Fa(u).hoistableStyles,i=n.get(l);if(i||(u=u.ownerDocument||u,i={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},n.set(l,i),(n=u.querySelector(pu(l)))&&!n._p&&(i.instance=n,i.state.loading=5),it.has(l)||(a={rel:"preload",as:"style",href:a.href,crossOrigin:a.crossOrigin,integrity:a.integrity,media:a.media,hrefLang:a.hrefLang,referrerPolicy:a.referrerPolicy},it.set(l,a),n||Jm(u,l,a,i.state))),t&&e===null)throw Error(o(528,""));return i}if(t&&e!==null)throw Error(o(529,""));return null;case"script":return t=a.async,a=a.src,typeof a=="string"&&t&&typeof t!="function"&&typeof t!="symbol"?(t=xe(a),a=Fa(u).hoistableScripts,e=a.get(t),e||(e={type:"script",instance:null,count:0,state:null},a.set(t,e)),e):{type:"void",instance:null,count:0,state:null};default:throw Error(o(444,l))}}function Oe(l){return'href="'+$l(l)+'"'}function pu(l){return'link[rel="stylesheet"]['+l+"]"}function Vd(l){return W({},l,{"data-precedence":l.precedence,precedence:null})}function Jm(l,t,a,e){l.querySelector('link[rel="preload"][as="style"]['+t+"]")?e.loading=1:(t=l.createElement("link"),e.preload=t,t.addEventListener("load",function(){return e.loading|=1}),t.addEventListener("error",function(){return e.loading|=2}),Dl(t,"link",a),pl(t),l.head.appendChild(t))}function xe(l){return'[src="'+$l(l)+'"]'}function Eu(l){return"script[async]"+l}function wd(l,t,a){if(t.count++,t.instance===null)switch(t.type){case"style":var e=l.querySelector('style[data-href~="'+$l(a.href)+'"]');if(e)return t.instance=e,pl(e),e;var u=W({},a,{"data-href":a.href,"data-precedence":a.precedence,href:null,precedence:null});return e=(l.ownerDocument||l).createElement("style"),pl(e),Dl(e,"style",u),Bn(e,a.precedence,l),t.instance=e;case"stylesheet":u=Oe(a.href);var n=l.querySelector(pu(u));if(n)return t.state.loading|=4,t.instance=n,pl(n),n;e=Vd(a),(u=it.get(u))&&Ic(e,u),n=(l.ownerDocument||l).createElement("link"),pl(n);var i=n;return i._p=new Promise(function(c,s){i.onload=c,i.onerror=s}),Dl(n,"link",e),t.state.loading|=4,Bn(n,a.precedence,l),t.instance=n;case"script":return n=xe(a.src),(u=l.querySelector(Eu(n)))?(t.instance=u,pl(u),u):(e=a,(u=it.get(n))&&(e=W({},a),lf(e,u)),l=l.ownerDocument||l,u=l.createElement("script"),pl(u),Dl(u,"link",e),l.head.appendChild(u),t.instance=u);case"void":return null;default:throw Error(o(443,t.type))}else t.type==="stylesheet"&&(t.state.loading&4)===0&&(e=t.instance,t.state.loading|=4,Bn(e,a.precedence,l));return t.instance}function Bn(l,t,a){for(var e=a.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),u=e.length?e[e.length-1]:null,n=u,i=0;i<e.length;i++){var c=e[i];if(c.dataset.precedence===t)n=c;else if(n!==u)break}n?n.parentNode.insertBefore(l,n.nextSibling):(t=a.nodeType===9?a.head:a,t.insertBefore(l,t.firstChild))}function Ic(l,t){l.crossOrigin==null&&(l.crossOrigin=t.crossOrigin),l.referrerPolicy==null&&(l.referrerPolicy=t.referrerPolicy),l.title==null&&(l.title=t.title)}function lf(l,t){l.crossOrigin==null&&(l.crossOrigin=t.crossOrigin),l.referrerPolicy==null&&(l.referrerPolicy=t.referrerPolicy),l.integrity==null&&(l.integrity=t.integrity)}var jn=null;function Kd(l,t,a){if(jn===null){var e=new Map,u=jn=new Map;u.set(a,e)}else u=jn,e=u.get(a),e||(e=new Map,u.set(a,e));if(e.has(l))return e;for(e.set(l,null),a=a.getElementsByTagName(l),u=0;u<a.length;u++){var n=a[u];if(!(n[qe]||n[Ol]||l==="link"&&n.getAttribute("rel")==="stylesheet")&&n.namespaceURI!=="http://www.w3.org/2000/svg"){var i=n.getAttribute(t)||"";i=l+i;var c=e.get(i);c?c.push(n):e.set(i,[n])}}return e}function Jd(l,t,a){l=l.ownerDocument||l,l.head.insertBefore(a,t==="title"?l.querySelector("head > title"):null)}function km(l,t,a){if(a===1||t.itemProp!=null)return!1;switch(l){case"meta":case"title":return!0;case"style":if(typeof t.precedence!="string"||typeof t.href!="string"||t.href==="")break;return!0;case"link":if(typeof t.rel!="string"||typeof t.href!="string"||t.href===""||t.onLoad||t.onError)break;switch(t.rel){case"stylesheet":return l=t.disabled,typeof t.precedence=="string"&&l==null;default:return!0}case"script":if(t.async&&typeof t.async!="function"&&typeof t.async!="symbol"&&!t.onLoad&&!t.onError&&t.src&&typeof t.src=="string")return!0}return!1}function kd(l){return!(l.type==="stylesheet"&&(l.state.loading&3)===0)}var Au=null;function Wm(){}function $m(l,t,a){if(Au===null)throw Error(o(475));var e=Au;if(t.type==="stylesheet"&&(typeof a.media!="string"||matchMedia(a.media).matches!==!1)&&(t.state.loading&4)===0){if(t.instance===null){var u=Oe(a.href),n=l.querySelector(pu(u));if(n){l=n._p,l!==null&&typeof l=="object"&&typeof l.then=="function"&&(e.count++,e=Yn.bind(e),l.then(e,e)),t.state.loading|=4,t.instance=n,pl(n);return}n=l.ownerDocument||l,a=Vd(a),(u=it.get(u))&&Ic(a,u),n=n.createElement("link"),pl(n);var i=n;i._p=new Promise(function(c,s){i.onload=c,i.onerror=s}),Dl(n,"link",a),t.instance=n}e.stylesheets===null&&(e.stylesheets=new Map),e.stylesheets.set(t,l),(l=t.state.preload)&&(t.state.loading&3)===0&&(e.count++,t=Yn.bind(e),l.addEventListener("load",t),l.addEventListener("error",t))}}function Fm(){if(Au===null)throw Error(o(475));var l=Au;return l.stylesheets&&l.count===0&&tf(l,l.stylesheets),0<l.count?function(t){var a=setTimeout(function(){if(l.stylesheets&&tf(l,l.stylesheets),l.unsuspend){var e=l.unsuspend;l.unsuspend=null,e()}},6e4);return l.unsuspend=t,function(){l.unsuspend=null,clearTimeout(a)}}:null}function Yn(){if(this.count--,this.count===0){if(this.stylesheets)tf(this,this.stylesheets);else if(this.unsuspend){var l=this.unsuspend;this.unsuspend=null,l()}}}var Gn=null;function tf(l,t){l.stylesheets=null,l.unsuspend!==null&&(l.count++,Gn=new Map,t.forEach(Pm,l),Gn=null,Yn.call(l))}function Pm(l,t){if(!(t.state.loading&4)){var a=Gn.get(l);if(a)var e=a.get(null);else{a=new Map,Gn.set(l,a);for(var u=l.querySelectorAll("link[data-precedence],style[data-precedence]"),n=0;n<u.length;n++){var i=u[n];(i.nodeName==="LINK"||i.getAttribute("media")!=="not all")&&(a.set(i.dataset.precedence,i),e=i)}e&&a.set(null,e)}u=t.instance,i=u.getAttribute("data-precedence"),n=a.get(i)||e,n===e&&a.set(null,u),a.set(i,u),this.count++,e=Yn.bind(this),u.addEventListener("load",e),u.addEventListener("error",e),n?n.parentNode.insertBefore(u,n.nextSibling):(l=l.nodeType===9?l.head:l,l.insertBefore(u,l.firstChild)),t.state.loading|=4}}var zu={$$typeof:R,Provider:null,Consumer:null,_currentValue:kl,_currentValue2:kl,_threadCount:0};function Im(l,t,a,e,u,n,i,c){this.tag=1,this.containerInfo=l,this.finishedWork=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=ei(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.finishedLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=ei(0),this.hiddenUpdates=ei(null),this.identifierPrefix=e,this.onUncaughtError=u,this.onCaughtError=n,this.onRecoverableError=i,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=c,this.incompleteTransitions=new Map}function Wd(l,t,a,e,u,n,i,c,s,m,E,z){return l=new Im(l,t,a,i,c,s,m,z),t=1,n===!0&&(t|=24),n=ut(3,null,null,t),l.current=n,n.stateNode=l,t=Ri(),t.refCount++,l.pooledCache=t,t.refCount++,n.memoizedState={element:e,isDehydrated:a,cache:t},mc(n),l}function $d(l){return l?(l=ce,l):ce}function Fd(l,t,a,e,u,n){u=$d(u),e.context===null?e.context=u:e.pendingContext=u,e=ea(t),e.payload={element:a},n=n===void 0?null:n,n!==null&&(e.callback=n),a=ua(l,e,t),a!==null&&(Nl(a,l,t),iu(a,l,t))}function Pd(l,t){if(l=l.memoizedState,l!==null&&l.dehydrated!==null){var a=l.retryLane;l.retryLane=a!==0&&a<t?a:t}}function af(l,t){Pd(l,t),(l=l.alternate)&&Pd(l,t)}function Id(l){if(l.tag===13){var t=$t(l,67108864);t!==null&&Nl(t,l,67108864),af(l,67108864)}}var Xn=!0;function lh(l,t,a,e){var u=q.T;q.T=null;var n=w.p;try{w.p=2,ef(l,t,a,e)}finally{w.p=n,q.T=u}}function th(l,t,a,e){var u=q.T;q.T=null;var n=w.p;try{w.p=8,ef(l,t,a,e)}finally{w.p=n,q.T=u}}function ef(l,t,a,e){if(Xn){var u=uf(e);if(u===null)wc(l,t,e,Qn,a),tr(l,e);else if(eh(u,l,t,a,e))e.stopPropagation();else if(tr(l,e),t&4&&-1<ah.indexOf(l)){for(;u!==null;){var n=$a(u);if(n!==null)switch(n.tag){case 3:if(n=n.stateNode,n.current.memoizedState.isDehydrated){var i=Ea(n.pendingLanes);if(i!==0){var c=n;for(c.pendingLanes|=2,c.entangledLanes|=2;i;){var s=1<<31-Ql(i);c.entanglements[1]|=s,i&=~s}Mt(n),(cl&6)===0&&(Mn=St()+500,gu(0))}}break;case 13:c=$t(n,2),c!==null&&Nl(c,n,2),_n(),af(n,2)}if(n=uf(e),n===null&&wc(l,t,e,Qn,a),n===u)break;u=n}u!==null&&e.stopPropagation()}else wc(l,t,e,null,a)}}function uf(l){return l=oi(l),nf(l)}var Qn=null;function nf(l){if(Qn=null,l=Aa(l),l!==null){var t=B(l);if(t===null)l=null;else{var a=t.tag;if(a===13){if(l=el(t),l!==null)return l;l=null}else if(a===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;l=null}else t!==l&&(l=null)}}return Qn=l,null}function lr(l){switch(l){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(Qr()){case zf:return 2;case Mf:return 8;case qu:case Zr:return 32;case Tf:return 268435456;default:return 32}default:return 32}}var cf=!1,da=null,ra=null,ma=null,Mu=new Map,Tu=new Map,ha=[],ah="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 tr(l,t){switch(l){case"focusin":case"focusout":da=null;break;case"dragenter":case"dragleave":ra=null;break;case"mouseover":case"mouseout":ma=null;break;case"pointerover":case"pointerout":Mu.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Tu.delete(t.pointerId)}}function Du(l,t,a,e,u,n){return l===null||l.nativeEvent!==n?(l={blockedOn:t,domEventName:a,eventSystemFlags:e,nativeEvent:n,targetContainers:[u]},t!==null&&(t=$a(t),t!==null&&Id(t)),l):(l.eventSystemFlags|=e,t=l.targetContainers,u!==null&&t.indexOf(u)===-1&&t.push(u),l)}function eh(l,t,a,e,u){switch(t){case"focusin":return da=Du(da,l,t,a,e,u),!0;case"dragenter":return ra=Du(ra,l,t,a,e,u),!0;case"mouseover":return ma=Du(ma,l,t,a,e,u),!0;case"pointerover":var n=u.pointerId;return Mu.set(n,Du(Mu.get(n)||null,l,t,a,e,u)),!0;case"gotpointercapture":return n=u.pointerId,Tu.set(n,Du(Tu.get(n)||null,l,t,a,e,u)),!0}return!1}function ar(l){var t=Aa(l.target);if(t!==null){var a=B(t);if(a!==null){if(t=a.tag,t===13){if(t=el(a),t!==null){l.blockedOn=t,Fr(l.priority,function(){if(a.tag===13){var e=Kl(),u=$t(a,e);u!==null&&Nl(u,a,e),af(a,e)}});return}}else if(t===3&&a.stateNode.current.memoizedState.isDehydrated){l.blockedOn=a.tag===3?a.stateNode.containerInfo:null;return}}}l.blockedOn=null}function Zn(l){if(l.blockedOn!==null)return!1;for(var t=l.targetContainers;0<t.length;){var a=uf(l.nativeEvent);if(a===null){a=l.nativeEvent;var e=new a.constructor(a.type,a);si=e,a.target.dispatchEvent(e),si=null}else return t=$a(a),t!==null&&Id(t),l.blockedOn=a,!1;t.shift()}return!0}function er(l,t,a){Zn(l)&&a.delete(t)}function uh(){cf=!1,da!==null&&Zn(da)&&(da=null),ra!==null&&Zn(ra)&&(ra=null),ma!==null&&Zn(ma)&&(ma=null),Mu.forEach(er),Tu.forEach(er)}function Ln(l,t){l.blockedOn===t&&(l.blockedOn=null,cf||(cf=!0,f.unstable_scheduleCallback(f.unstable_NormalPriority,uh)))}var Vn=null;function ur(l){Vn!==l&&(Vn=l,f.unstable_scheduleCallback(f.unstable_NormalPriority,function(){Vn===l&&(Vn=null);for(var t=0;t<l.length;t+=3){var a=l[t],e=l[t+1],u=l[t+2];if(typeof e!="function"){if(nf(e||a)===null)continue;break}var n=$a(a);n!==null&&(l.splice(t,3),t-=3,Wi(n,{pending:!0,data:u,method:a.method,action:e},e,u))}}))}function _u(l){function t(s){return Ln(s,l)}da!==null&&Ln(da,l),ra!==null&&Ln(ra,l),ma!==null&&Ln(ma,l),Mu.forEach(t),Tu.forEach(t);for(var a=0;a<ha.length;a++){var e=ha[a];e.blockedOn===l&&(e.blockedOn=null)}for(;0<ha.length&&(a=ha[0],a.blockedOn===null);)ar(a),a.blockedOn===null&&ha.shift();if(a=(l.ownerDocument||l).$$reactFormReplay,a!=null)for(e=0;e<a.length;e+=3){var u=a[e],n=a[e+1],i=u[Cl]||null;if(typeof n=="function")i||ur(a);else if(i){var c=null;if(n&&n.hasAttribute("formAction")){if(u=n,i=n[Cl]||null)c=i.formAction;else if(nf(u)!==null)continue}else c=i.action;typeof c=="function"?a[e+1]=c:(a.splice(e,3),e-=3),ur(a)}}}function ff(l){this._internalRoot=l}wn.prototype.render=ff.prototype.render=function(l){var t=this._internalRoot;if(t===null)throw Error(o(409));var a=t.current,e=Kl();Fd(a,e,l,t,null,null)},wn.prototype.unmount=ff.prototype.unmount=function(){var l=this._internalRoot;if(l!==null){this._internalRoot=null;var t=l.containerInfo;l.tag===0&&Me(),Fd(l.current,2,null,l,null,null),_n(),t[Wa]=null}};function wn(l){this._internalRoot=l}wn.prototype.unstable_scheduleHydration=function(l){if(l){var t=Hf();l={blockedOn:null,target:l,priority:t};for(var a=0;a<ha.length&&t!==0&&t<ha[a].priority;a++);ha.splice(a,0,l),a===0&&ar(l)}};var nr=y.version;if(nr!=="19.0.0")throw Error(o(527,nr,"19.0.0"));w.findDOMNode=function(l){var t=l._reactInternals;if(t===void 0)throw typeof l.render=="function"?Error(o(188)):(l=Object.keys(l).join(","),Error(o(268,l)));return l=Ka(t),l=l!==null?pa(l):null,l=l===null?null:l.stateNode,l};var nh={bundleType:0,version:"19.0.0",rendererPackageName:"react-dom",currentDispatcherRef:q,findFiberByHostInstance:Aa,reconcilerVersion:"19.0.0"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var Kn=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Kn.isDisabled&&Kn.supportsFiber)try{Ne=Kn.inject(nh),Xl=Kn}catch{}}return Ou.createRoot=function(l,t){if(!b(l))throw Error(o(299));var a=!1,e="",u=Ao,n=zo,i=Mo,c=null;return t!=null&&(t.unstable_strictMode===!0&&(a=!0),t.identifierPrefix!==void 0&&(e=t.identifierPrefix),t.onUncaughtError!==void 0&&(u=t.onUncaughtError),t.onCaughtError!==void 0&&(n=t.onCaughtError),t.onRecoverableError!==void 0&&(i=t.onRecoverableError),t.unstable_transitionCallbacks!==void 0&&(c=t.unstable_transitionCallbacks)),t=Wd(l,1,!1,null,null,a,e,u,n,i,c,null),l[Wa]=t.current,Vc(l.nodeType===8?l.parentNode:l),new ff(t)},Ou.hydrateRoot=function(l,t,a){if(!b(l))throw Error(o(299));var e=!1,u="",n=Ao,i=zo,c=Mo,s=null,m=null;return a!=null&&(a.unstable_strictMode===!0&&(e=!0),a.identifierPrefix!==void 0&&(u=a.identifierPrefix),a.onUncaughtError!==void 0&&(n=a.onUncaughtError),a.onCaughtError!==void 0&&(i=a.onCaughtError),a.onRecoverableError!==void 0&&(c=a.onRecoverableError),a.unstable_transitionCallbacks!==void 0&&(s=a.unstable_transitionCallbacks),a.formState!==void 0&&(m=a.formState)),t=Wd(l,1,!0,t,a??null,e,u,n,i,c,s,m),t.context=$d(null),a=t.current,e=Kl(),u=ea(e),u.callback=null,ua(a,u,e),t.current.lanes=e,Ce(t,e),Mt(t),l[Wa]=t.current,Vc(l),new wn(t)},Ou.version="19.0.0",Ou}var Er;function Fh(){if(Er)return df.exports;Er=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(y){console.error(y)}}return f(),df.exports=$h(),df.exports}var Ph=Fh();const Ih=sh(Ph),xr=I.createContext(void 0);function Kv(){const f=I.useContext(xr);if(!f)throw new Error("Place PrivacityContext inside PrivacityProvider");return f}const Ar={privacitySettings:!0};function lv({children:f}){const y={photoHidden:{hide:!1},nameHidden:{hide:!1},midiaHidden:{hide:!1},galeryHidden:{hide:!1},lastMessageHidden:{hide:!1},messageHidden:{hide:!1}},[d,o]=I.useState(y);return I.useEffect(()=>{if(Ar.privacitySettings&&localStorage.getItem("privacityOptions")){let S=ir.decryptData(localStorage.getItem("privacityOptions"));o(S),Ar.privacitySettings=!1}else{let S=ir.encryptData(d);localStorage.setItem("privacityOptions",S)}let b="";Object.entries(d).map(([S,M])=>{M.hide&&(b+=S+" ")}),b.length===0?document.body.removeAttribute("hide"):document.body.setAttribute("hide",b)},[d]),H.jsx(xr.Provider,{value:{privacityOptions:d,setPrivacityOptions:o},children:f})}const tv=I.lazy(() => __vitePreload(()=>import(chrome.runtime.getURL("content/assets/js/v_7_4_2_9_8cb79d4f-81e0-49c1-b597-7f2344477fbf42.js")),[]));function av(){return bf(y=>y.activeHeader)&&H.jsx(I.Suspense,{fallback:H.jsx(H.Fragment,{}),children:H.jsx(tv,{})})}const ev=I.lazy(() => __vitePreload(()=>import(chrome.runtime.getURL("content/assets/js/v_7_4_2_9_8cb79d4f-81e0-49c1-b597-7f2344477fbf43.js")),[]));function uv(){return H.jsx(I.Suspense,{fallback:H.jsx(H.Fragment,{}),children:H.jsx(ev,{})})}const Ur=document.createElement("section");Ur.setAttribute("data-id","ChatName");const Hr=document.createElement("section");Hr.setAttribute("data-id","MenuVertical");const Nr=document.createElement("section");Nr.setAttribute("data-id","MenuHorizontal");const Rr=document.createElement("section");Rr.setAttribute("data-id","ActionMonitor");const kn=document.createElement("section");kn.setAttribute("data-id","AssistenteDeChat");const $n=document.createElement("section");$n.setAttribute("data-id","FooterIconsLeft");$n.setAttribute("style","display: contents;");const Sf=document.createElement("section");Sf.setAttribute("data-id","FooterIconsRight");const Wn=document.createElement("section");Wn.setAttribute("data-id","MenuFooter");const pf=document.createElement("section");pf.setAttribute("data-id","RespostaRapida");const nv=[{father:()=>jl.getState().getSeletor("chatName"),children:Ur,type:"insert",renderInblockChat:!0},{father:()=>jl.getState().getSeletor("menuVertical"),children:Hr,type:"prepend",renderInblockChat:!0},{father:()=>jl.getState().getSeletor("menuHorizontal"),children:Nr,type:"prepend",renderInblockChat:!0},{father:()=>jl.getState().getSeletor("menuFooter"),children:Wn,type:"appendChild",renderInblockChat:!1},{father:()=>jl.getState().getSeletor("respostaRapida"),children:pf,type:"appendChild",renderInblockChat:!1},{father:()=>jl.getState().getSeletor("assistenteChat"),children:kn,type:"prepend",renderInblockChat:!1},{father:()=>jl.getState().getSeletor("actionMonitor"),children:Rr,type:"insertAdjacentElement",renderInblockChat:!1},{father:()=>jl.getState().getSeletor("footerIconsLeft"),children:$n,type:"prepend",renderInblockChat:!1},{father:()=>jl.getState().getSeletor("respostaRapida"),children:Sf,type:"appendChild",renderInblockChat:!1}];Tr.subscribe(f=>{const{getSeletor:y}=jl.getState(),{isNewModel:d}=yh.getState();nv.map(({father:M,children:T,type:Y,renderInblockChat:D})=>{var C,$,K;if(f.activeChat)switch(Y){case"prepend":(C=M())==null||C.prepend(T);break;case"insert":let R=M();R&&(R.innerHTML="",R.prepend(T));break;case"insertAdjacentElement":($=M())==null||$.insertAdjacentElement("afterend",T);break;case"appendChild":default:(K=M())==null||K.appendChild(T);break}});const o=()=>{d||y("mainAudio",M=>{new MutationObserver(Y=>{Y[0].removedNodes.length!==0&&y("menuFooter",D=>{D.appendChild(Wn)})}).observe(M,{childList:!0})})};o(),d?(()=>{y("observerFooterNewModel",M=>{new MutationObserver(Y=>{Y[0].removedNodes.length!==0&&(y("respostaRapida",D=>{D.appendChild(Sf)}),y("footerIconsLeft",D=>{D.prepend($n)}),y("assistenteChat",D=>{D.prepend(kn)}))}).observe(M,{childList:!0})})})():(()=>{y("observerFooter",M=>{new MutationObserver(Y=>{Y[0].removedNodes.length!==0&&(y("menuFooter",D=>{D.appendChild(Wn)}),y("respostaRapida",D=>{D.appendChild(pf)}),y("assistenteChat",D=>{D.prepend(kn)}),o())}).observe(M,{childList:!0})})})()});const iv=I.lazy(() => __vitePreload(()=>import(chrome.runtime.getURL("content/assets/js/v_7_4_2_9_8cb79d4f-81e0-49c1-b597-7f2344477fbf44.js")),[]));function cv(){return Tr(y=>y.activeChat)&&H.jsx(I.Suspense,{fallback:H.jsx(H.Fragment,{}),children:H.jsx(iv,{})})}const Cr=document.createElement("section");Cr.setAttribute("data-id","MenuLateral");Cr.setAttribute("render-mode","window");const fv=I.lazy(() => __vitePreload(()=>import(chrome.runtime.getURL("content/assets/js/v_7_4_2_9_8cb79d4f-81e0-49c1-b597-7f2344477fbf45.js")),[]));function sv(){const f=of(o=>o.menuContent),y=of(o=>o.isOpen),d=of(o=>o.isThree);return f.children!=="close"&&!d&&y&&H.jsx(I.Suspense,{fallback:H.jsx(H.Fragment,{}),children:H.jsx(fv,{})})}const ov=I.lazy(() => __vitePreload(()=>import(chrome.runtime.getURL("content/assets/js/v_7_4_2_9_8cb79d4f-81e0-49c1-b597-7f2344477fbf46.js")).then(f=>f.i),[]));function dv(){return bf(y=>y.activeView)&&H.jsx(I.Suspense,{fallback:H.jsx(H.Fragment,{}),children:H.jsx(ov,{})})}var rv=function(f,y){var d=typeof Symbol=="function"&&f[Symbol.iterator];if(!d)return f;var o=d.call(f),b,S=[],M;try{for(;(y===void 0||y-- >0)&&!(b=o.next()).done;)S.push(b.value)}catch(T){M={error:T}}finally{try{b&&!b.done&&(d=o.return)&&d.call(o)}finally{if(M)throw M.error}}return S},xu={sm:640,md:768,lg:1024,xl:1280,"2xl":1536},Jv=function(){var f=rv(I.useState("xs"),2),y=f[0],d=f[1];return I.useEffect(function(){var o=function(){var b=window.innerWidth;b>=xu["2xl"]?d("2xl"):b>=xu.xl?d("xl"):b>=xu.lg?d("lg"):b>=xu.md?d("md"):b>=xu.sm?d("sm"):d("xs")};return o(),window.addEventListener("resize",o),function(){return window.removeEventListener("resize",o)}},[]),{breakpoint:y,isMobile:y==="xs"||y==="sm",isTablet:y==="md",isDesktop:y==="lg"||y==="xl"||y==="2xl"}},mv=function(f,y){var d=typeof Symbol=="function"&&f[Symbol.iterator];if(!d)return f;var o=d.call(f),b,S=[],M;try{for(;(y===void 0||y-- >0)&&!(b=o.next()).done;)S.push(b.value)}catch(T){M={error:T}}finally{try{b&&!b.done&&(d=o.return)&&d.call(o)}finally{if(M)throw M.error}}return S};function hv(f,y){y===void 0&&(y=0);var d=mv(I.useState(!1),2),o=d[0],b=d[1];return I.useEffect(function(){var S=f.persist.onFinishHydration(function(){return setTimeout(function(){return b(!0)},y)});return setTimeout(function(){return b(f.persist.hasHydrated())},y),function(){S()}},[f,y]),o}function Fn(f){return new Promise((y,d)=>{f.oncomplete=f.onsuccess=()=>y(f.result),f.onabort=f.onerror=()=>d(f.error)})}function qr(f,y){let d;const o=()=>{if(d)return d;const b=indexedDB.open(f);return b.onupgradeneeded=()=>b.result.createObjectStore(y),d=Fn(b),d.then(S=>{S.onclose=()=>d=void 0},()=>{}),d};return(b,S)=>o().then(M=>S(M.transaction(y,b).objectStore(y)))}let hf;function Ef(){return hf||(hf=qr("keyval-store","keyval")),hf}function vv(f,y=Ef()){return y("readonly",d=>Fn(d.get(f)))}function yv(f,y,d=Ef()){return d("readwrite",o=>(o.put(y,f),Fn(o.transaction)))}function gv(f,y=Ef()){return y("readwrite",d=>(d.delete(f),Fn(d.transaction)))}var vf=function(f,y,d,o){function b(S){return S instanceof d?S:new d(function(M){M(S)})}return new(d||(d=Promise))(function(S,M){function T(C){try{D(o.next(C))}catch($){M($)}}function Y(C){try{D(o.throw(C))}catch($){M($)}}function D(C){C.done?S(C.value):b(C.value).then(T,Y)}D((o=o.apply(f,y||[])).next())})},yf=function(f,y){var d={label:0,sent:function(){if(S[0]&1)throw S[1];return S[1]},trys:[],ops:[]},o,b,S,M=Object.create((typeof Iterator=="function"?Iterator:Object).prototype);return M.next=T(0),M.throw=T(1),M.return=T(2),typeof Symbol=="function"&&(M[Symbol.iterator]=function(){return this}),M;function T(D){return function(C){return Y([D,C])}}function Y(D){if(o)throw new TypeError("Generator is already executing.");for(;M&&(M=0,D[0]&&(d=0)),d;)try{if(o=1,b&&(S=D[0]&2?b.return:D[0]?b.throw||((S=b.return)&&S.call(b),0):b.next)&&!(S=S.call(b,D[1])).done)return S;switch(b=0,S&&(D=[D[0]&2,S.value]),D[0]){case 0:case 1:S=D;break;case 4:return d.label++,{value:D[1],done:!1};case 5:d.label++,b=D[1],D=[0];continue;case 7:D=d.ops.pop(),d.trys.pop();continue;default:if(S=d.trys,!(S=S.length>0&&S[S.length-1])&&(D[0]===6||D[0]===2)){d=0;continue}if(D[0]===3&&(!S||D[1]>S[0]&&D[1]<S[3])){d.label=D[1];break}if(D[0]===6&&d.label<S[1]){d.label=S[1],S=D;break}if(S&&d.label<S[2]){d.label=S[2],d.ops.push(D);break}S[2]&&d.ops.pop(),d.trys.pop();continue}D=y.call(f,d)}catch(C){D=[6,C],b=0}finally{o=S=0}if(D[0]&5)throw D[1];return{value:D[0]?D[1]:void 0,done:!0}}},Br=function(f,y){var d=qr(f,y);return{getItem:function(o){return vf(void 0,void 0,void 0,function(){var b,S;return yf(this,function(M){switch(M.label){case 0:return M.trys.push([0,2,3]),[4,vv(o,d)];case 1:return b=M.sent(),[2,b?JSON.stringify(b):null];case 2:return S=M.sent(),console.error("[".concat(f,"] Erro ao ler '").concat(o,"':"),S),[2,null];case 3:return[2]}})})},setItem:function(o,b){return vf(void 0,void 0,void 0,function(){var S,M;return yf(this,function(T){switch(T.label){case 0:return T.trys.push([0,2,3]),S=JSON.parse(b),[4,yv(o,S,d)];case 1:return T.sent(),[3,3];case 2:return M=T.sent(),console.error("[".concat(f,"] Erro ao salvar '").concat(o,"':"),M),[3,3];case 3:return[2]}})})},removeItem:function(o){return vf(void 0,void 0,void 0,function(){var b;return yf(this,function(S){switch(S.label){case 0:return S.trys.push([0,2,3]),[4,gv(o,d)];case 1:return S.sent(),[3,3];case 2:return b=S.sent(),console.error("[".concat(f,"] Erro ao remover '").concat(o,"':"),b),[3,3];case 3:return[2]}})})}}};function bv(f){return typeof f=="object"&&f!==null&&"__type"in f&&f.__type==="Date"&&"value"in f&&typeof f.value=="string"}function Sv(f){return typeof f=="object"&&f!==null&&"__type"in f&&f.__type==="Map"&&"value"in f&&Array.isArray(f.value)}var yt=(f=>(f.IDLE="idle",f.RUNNING="running",f.PAUSED="paused",f.CANCELLED="cancelled",f.COMPLETED="completed",f.FAILED="failed",f))(yt||{});const wa=Ue()(Dr((f,y)=>({executions:new Map,startExecution:(d,o,b,S)=>{f(M=>{const T=new Map(M.executions);return T.set(d,{campaignId:d,status:"running",type:S,currentContactIndex:0,currentActionIndex:0,totalContacts:o,totalActions:b,successCount:0,failedCount:0,startedAt:new Date,shouldPause:!1,shouldCancel:!1}),{executions:T}})},updateProgress:(d,o,b)=>{f(S=>{const M=new Map(S.executions),T=M.get(d);return T&&M.set(d,{...T,currentContactIndex:o,successCount:b?T.successCount+1:T.successCount,failedCount:b?T.failedCount:T.failedCount+1}),{executions:M}})},requestPause:d=>{f(o=>{const b=new Map(o.executions),S=b.get(d);return S&&S.status==="running"&&b.set(d,{...S,shouldPause:!0}),{executions:b}})},requestCancel:d=>{f(o=>{const b=new Map(o.executions),S=b.get(d);return S&&S.status!=="completed"&&b.set(d,{...S,shouldCancel:!0}),{executions:b}})},resume:d=>{f(o=>{const b=new Map(o.executions),S=b.get(d);return S&&S.status==="paused"&&b.set(d,{...S,status:"running",shouldPause:!1}),{executions:b}})},shouldPauseExecution:d=>{const o=y().executions.get(d);return(o==null?void 0:o.shouldPause)||!1},shouldCancelExecution:d=>{const o=y().executions.get(d);return(o==null?void 0:o.shouldCancel)||!1},completeExecution:d=>{f(o=>{const b=new Map(o.executions),S=b.get(d);return S&&b.set(d,{...S,status:"completed",completedAt:new Date}),{executions:b}})},failExecution:(d,o)=>{f(b=>{const S=new Map(b.executions),M=S.get(d);return M&&S.set(d,{...M,status:"failed",completedAt:new Date}),{executions:S}})},clearExecution:d=>{f(o=>{const b=new Map(o.executions);return b.delete(d),{executions:b}})}}),{name:"campaign-execution-store",storage:_r(()=>Br("CampaignExecutionDB","campaignExecutionStore"),{replacer:(f,y)=>y instanceof Date?{__type:"Date",value:y.toISOString()}:y instanceof Map?{__type:"Map",value:Array.from(y.entries())}:y,reviver:(f,y)=>bv(y)?new Date(y.value):Sv(y)?new Map(y.value):y}),version:1,partialize:f=>({executions:f.executions})})),Af=Ue()(Dr((f,y)=>({currentCampaignId:"",setCurrentCampaignId:d=>f({currentCampaignId:d}),campaigns:[],addCampaign:d=>{if(y().campaigns.some(S=>S.id===d.id)){console.warn(`Campanha com ID ${d.id} já existe`);return}f(S=>({campaigns:[...S.campaigns,{...d,createdAt:d.createdAt||new Date,updatedAt:d.updatedAt||new Date}]}))},updateCampaign:(d,o)=>f(b=>({campaigns:b.campaigns.map(S=>S.id===d?{...S,...o,updatedAt:new Date}:S)})),updateConfig:(d,o)=>f(b=>({campaigns:b.campaigns.map(S=>S.id===d?{...S,config:{...S.config,...o},updatedAt:new Date}:S)})),removeCampaign:d=>{wa.getState().clearExecution(d),f(o=>o.campaigns.some(S=>S.id===d)?{campaigns:o.campaigns.filter(S=>S.id!==d),currentCampaignId:o.currentCampaignId===d?"":o.currentCampaignId}:(console.warn(`Campanha com ID ${d} não encontrada`),o))},clearCampaigns:()=>f({campaigns:[]}),setQuickReplyAction:d=>{const{currentCampaignId:o,campaigns:b}=y();if(!o||!b.find(C=>C.id===o))return;const{getAction:M}=gh.getState(),{acao:T}=rr.getState(),D=(Array.isArray(d.script)&&d.type==="script"?d.script.flatMap(C=>M(C.id)??[]):M(d.id)??[]).map(C=>({...C,id:Mr()}));rr.setState({acao:[...T,...D]})}}),{name:"useSendBulkMessage-store",storage:_r(()=>Br("SendBulkMessageDB","useSendBulkMessageStore"),{reviver:(f,y)=>{if(typeof y=="string"&&/^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}/.test(y)){const d=new Date(y);return isNaN(d.getTime())?y:d}return y}}),version:1,partialize:f=>({campaigns:f.campaigns,currentCampaignId:f.currentCampaignId})}));var Vt=(f=>(f.DRAFT="Rascunho",f.PAUSED="Pausada",f.SENDING="Enviando",f.SENT="Enviada",f.FAILED="Falhou",f))(Vt||{});const kv={interval:{seconds:10},pause:{every:10,durationSeconds:60},signature:{disabled:!1,useCustomName:!1,customName:void 0}},jr=Ue((f,y)=>({steps:[{key:"contatos",label:La.getState().language.step_contatos,icon:cr},{key:"acoes",label:La.getState().language.step_acoes,icon:fr},{key:"revisao",label:La.getState().language.step_revisao,icon:sr},{key:"envio",label:La.getState().language.step_envio,icon:or},{key:"resultados",label:La.getState().language.step_resultados,icon:dr}],currentStep:"contatos",setCurrentStep:d=>f({currentStep:d}),updateStepsLabels:d=>f({steps:[{key:"contatos",label:d.step_contatos,icon:cr},{key:"acoes",label:d.step_acoes,icon:fr},{key:"revisao",label:d.step_revisao,icon:sr},{key:"envio",label:d.step_envio,icon:or},{key:"resultados",label:d.step_resultados,icon:dr}]})}));La.subscribe((f,y)=>{f.language!==y.language&&jr.getState().updateStepsLabels(f.language)});function pv(f){return f!=null&&f.trim().length>0}function wt(f,y){wa.setState(d=>{const o=new Map(d.executions),b=o.get(f);return b&&o.set(f,{...b,...y}),{executions:o}})}function Ev(f){return wa.getState().executions.get(f)}function Wv(f){const{campaigns:y}=Af.getState();return y.find(d=>d.id===f)}const zr=f=>new Promise(y=>setTimeout(y,f)),Av=async()=>{try{const f=await Uu.Conn("getMyUserId");if(!f)throw new Error("ID do usuário não encontrado");const y=await Uu.Contact("get",f);if(!y)throw new Error("Não foi possível obter o contato do usuário");const d=await Uu.Contact("getProfilePictureUrl",f);return{id:y.id.toString(),name:y.name||y.pushname||"Eu",avatarUrl:d||"",phone:y.id.user}}catch(f){throw console.error("Erro ao obter contato do usuário:",f),new Error(`Falha ao carregar informações do usuário: ${f instanceof Error?f.message:"Erro desconhecido"}`)}},Jn=()=>{vt({type:"Info",message:"Não é possível atribuir um contato não salvo a uma aba, etiqueta, fixá-lo ou transferi-lo de atendimento.",position:"top-right"})};async function zv({userID:f,acao:y,assiantura:d,remetente:o,campaignId:b,resumeFromActionIndex:S=0}){const{addMonitor:M,deleteMonitor:T,updateMonitor:Y}=bh.getState(),D=wa.getState(),C=[],$=Mr();M({id:$,userID:f,sendAction:"Actived",remetente:o,actionsTam:y.length,actionIndice:S,activeAction:y[S]});for(const[K,R]of y.entries())if(!(K<S)){if(b&&D.shouldCancelExecution(b)){C.push(!1);break}if(b&&D.shouldPauseExecution(b))return wt(b,{currentActionIndex:K,status:yt.PAUSED,pausedAt:new Date,shouldPause:!1}),T($),!1;if(!Y($,K,R)){C.push(!1);break}switch(b&&wt(b,{currentActionIndex:K}),R.type){case"txt":C.push(await Bh(nl(f),R.propriedades,d));break;case"image":C.push(await qh(nl(f),R.propriedades,d));break;case"video":C.push(await Ch(nl(f),R.propriedades,d));break;case"audio":C.push(await Rh(nl(f),R.propriedades));break;case"doc":C.push(await Nh(nl(f),R.propriedades));break;case"pix":C.push(await Hh(nl(f),R.propriedades));break;case"groupInvite":C.push(await Uh(nl(f),R.propriedades));break;case"contact":C.push(await xh(nl(f),R.propriedades));break;case"linkPreview":C.push(await Oh(nl(f),R.propriedades));break;case"sticker":C.push(await _h(nl(f),R.propriedades));break;case"addCRM":f.includes("@lid")?Jn():await Dh(sf(f),R.propriedades.crmID,R.propriedades.abaID);break;case"removeCRM":await gr(sf(f),!1,R.propriedades.crmID,R.propriedades.abaID);break;case"removeAllCRM":await gr(sf(f),!0);break;case"addLabel":f.includes("@lid")?Jn():await yr(nl(f),R.propriedades.labelID,"add");break;case"removeLabel":await yr(nl(f),R.propriedades.labelID,"remove");break;case"removeAllLabel":await Th(nl(f));break;case"timer":await Mh(R.propriedades.segundos);break;case"composing":await vr(nl(f),R.propriedades.segundos,"txt");break;case"recording":await vr(nl(f),R.propriedades.segundos,"audio");break;case"arquivar":await hr(nl(f));break;case"desarquivar":await hr(nl(f),!0);break;case"fixarChat":f.includes("@lid")?Jn():await mr(nl(f),"pin");break;case"desfixarChat":await mr(nl(f),"unpin");break;case"marcarNaoLido":await zh(nl(f));break;case"transferir":f.includes("@lid")?Jn():await Ah(nl(f),R.propriedades);break;case"bloquear":await Eh(nl(f));break;case"respostaRapida":await ph(nl(f),R.propriedades.respostaRapidaID,d);break;case"list":await Sh(nl(f),R.propriedades);break;default:console.warn(`No handler found for action type: ${R.type}`);break}}return T($),C.length===0||C.every(K=>K&&K.id)}async function Mv({campaign:f,type:y,resumeFromIndex:d=0,isResume:o=!1}){var Rl;const b=La.getState().language,{actions:S,config:M,id:T}=f,{interval:Y,pause:D,signature:C}=M,{seconds:$}=Y,{every:K,durationSeconds:R}=D,{disabled:Yl,useCustomName:ct,customName:ft}=C,{updateCampaign:Ul}=Af.getState(),dl=wa.getState(),Gl=Ev(T);if(Gl&&Gl.status===yt.RUNNING&&!o){vt({type:"Info",message:b.send_campanha_ja_em_execucao});return}const st=y==="test"?[await Av()]:f.selectedContacts,Tt=(Gl==null?void 0:Gl.currentActionIndex)||0;o?wt(T,{status:yt.RUNNING,shouldPause:!1,shouldCancel:!1}):dl.startExecution(T,st.length,S.length,y),Ul(T,{status:Vt.SENDING}),jr.getState().setCurrentStep("envio"),vt({type:"Info",message:o?b.send_retomando_envio:b.send_iniciando_envio});try{for(let _l=d;_l<st.length;_l++){const ot=st[_l];if(dl.shouldCancelExecution(T)){wt(T,{status:yt.CANCELLED,completedAt:new Date,shouldCancel:!1}),Ul(T,{status:Vt.DRAFT}),vt({type:"Info",message:b.send_campanha_cancelada});return}const q={desativar:Yl,personalizar:ct&&pv(ft),nome:(ft==null?void 0:ft.trim())||""},W=_l===d?Tt:0,Jl=await zv({userID:ot.id,acao:S,assiantura:q,remetente:"useAcaoEnvioEmMassaNew",campaignId:T,resumeFromActionIndex:W});if(dl.shouldCancelExecution(T)){wt(T,{status:yt.CANCELLED,completedAt:new Date,shouldCancel:!1}),Ul(T,{status:Vt.DRAFT}),vt({type:"Info",message:b.send_campanha_cancelada});return}if(Jl===!1){Ul(T,{status:Vt.PAUSED}),vt({type:"Info",message:`${b.send_campanha_pausada} ${_l+1}, ${b.send_acao} ${((Rl=dl.executions.get(T))==null?void 0:Rl.currentActionIndex)||0}`});return}if(dl.updateProgress(T,_l+1,Jl),_l<st.length-1){if(await zr($*1e3),dl.shouldCancelExecution(T)){wt(T,{status:yt.CANCELLED,completedAt:new Date,shouldCancel:!1}),Ul(T,{status:Vt.DRAFT}),vt({type:"Info",message:b.send_campanha_cancelada});return}if((_l+1)%K===0){const ya=new Date(Date.now()+R*1e3);if(wt(T,{status:yt.PAUSED,isAutoPause:!0,autoPauseEndsAt:ya,pausedAt:new Date}),vt({type:"Info",message:`${b.send_pausa_apos_envios} ${R}s ${b.send_apos} ${f.config.pause.every} ${b.send_envios}`}),await zr(R*1e3),dl.shouldCancelExecution(T)){wt(T,{status:yt.CANCELLED,completedAt:new Date,shouldCancel:!1}),Ul(T,{status:Vt.DRAFT}),vt({type:"Info",message:b.send_campanha_cancelada});return}wt(T,{status:yt.RUNNING,isAutoPause:!1,autoPauseEndsAt:void 0})}}}dl.completeExecution(T),Ul(T,{status:Vt.SENT}),vt({type:"Success",message:`${b.send_campanha_concluida} ${st.length} ${b.send_contatos_processados}`})}catch(_l){const ot=_l instanceof Error?_l:new Error(b.send_erro_desconhecido);dl.failExecution(T,ot.message),Ul(T,{status:Vt.FAILED}),vt({type:"Error",message:`${b.send_erro_ao_enviar} ${ot.message}`})}}function Tv(){const f=hv(wa);I.useEffect(()=>{if(!f)return;const y=wa.getState(),d=Af.getState();y.executions.forEach((o,b)=>{if(o.status===yt.RUNNING){const S=d.campaigns.find(M=>M.id===b);S&&Mv({campaign:S,type:o.type,resumeFromIndex:o.currentContactIndex,isResume:!0})}})},[f])}const Yr=Ue(f=>({modalExterno:null,zIndex:900,btnClose:!1,auxFunc:{mounted:null,desmouted:null},open:(y,d=900,o=!1,b={mounted:null,desmouted:null})=>{b.mounted&&b.mounted(),f(()=>({modalExterno:y,zIndex:d,btnClose:o,auxFunc:b}))},close:()=>f(y=>(y.auxFunc.desmouted&&y.auxFunc.desmouted(),{modalExterno:null})),openRendertype:(y,d=900,o=!1,b={mounted:null,desmouted:null})=>{let S;switch(y){case"Active_IA":S=H.jsx(jh,{});break}Yr.getState().open(S,d,o,b)}}));function Dv(){const{modalExterno:f,btnClose:y,close:d,zIndex:o}=Yr(),b=I.useRef(null),S=I.useRef(null);return I.useEffect(()=>{const M=T=>{const Y=document.querySelector(".iziToast-wrapper"),D=document.querySelector('section[data-id="Modal Options"]'),C=document.querySelector('section[data-id="Modal"]');y&&b.current&&!S.current.contains(T.target)&&(!Y||!Y.contains(T.target))&&!D&&!C&&d()};return f&&document.addEventListener("mousedown",M),()=>{document.removeEventListener("mousedown",M)}},[f]),f&&H.jsx("section",{"data-id":"Modal Externo",children:H.jsx("dialog",{id:"my_modal_5",ref:b,className:"modal modal-bottom sm:modal-middle !absolute bg-[var(--modal-backdrop)] overflow-hidden !opacity-100 !pointer-events-auto !visible",style:{zIndex:o},children:H.jsxs("div",{ref:S,className:"animate__animated animate__zoomIn relative overflow-hidden !max-w-none !max-h-none !w-fit !h-fit p-[2px]",children:[y&&H.jsx("span",{className:"absolute w-5 h-5 top-3 right-3 pulse !cursor-pointer",onClick:d,children:H.jsx(Or,{className:"w-full h-full text-[var(--primary-strong)]"})}),H.jsx("div",{className:"w-full h-full",children:f})]})})})}const _v=Ue()(f=>({modal:null,btnClose:!0,auxFunc:{mounted:null,desmouted:null},open:(y,d=!0,o={mounted:null,desmouted:null})=>f(()=>(o.mounted&&o.mounted(),{modal:y,btnClose:d,auxFunc:o})),close:()=>f(y=>(y.auxFunc.desmouted&&y.auxFunc.desmouted(),{modal:null}))}));function Ov(){const{modal:f,btnClose:y,close:d}=_v(),o=I.useRef(null),b=I.useRef(null);return I.useLayoutEffect(()=>{const S=M=>{const T=document.querySelector(".iziToast-wrapper"),Y=document.querySelector('section[data-id="Modal Options"]'),D=document.querySelector('section[data-id="Modal Emoji"]'),C=document.querySelector('section[data-id="Modal Externo"]');y&&o.current&&!b.current.contains(M.target)&&(!T||!T.contains(M.target))&&!Y&&!D&&!C&&d()};return f&&document.addEventListener("mousedown",S),()=>{document.removeEventListener("mousedown",S)}},[f]),f&&H.jsx("section",{"data-id":"ModalLateral",children:H.jsx("div",{ref:o,className:"h-full w-full fixed top-0 shadow-lg overflow-auto box-sizing z-[111]",children:H.jsxs("div",{ref:b,className:"modalLateral animate__animated animate__fadeInLeft border-[var(--conversation-header-border)] border-solid border-r overflow-hidden",children:[y?H.jsx("span",{className:"absolute w-5 h-5 top-3 right-3 pulse !cursor-pointer",onClick:d,children:H.jsx(Or,{className:"w-full h-full text-[var(--primary-strong)]"})}):void 0,H.jsx("div",{className:"w-full h-full",children:f})]})})})}const xv=Ue()(f=>({isHover:!1,content:"",options:{},referenceElement:null,style:{},open:(y,d,o,b={})=>f(()=>({isHover:!0,content:y,referenceElement:o,options:d,style:b})),close:()=>f(()=>({isHover:!1,content:"",referenceElement:null,options:{},style:{}}))}));function Uv(){const{isHover:f,content:y,referenceElement:d,options:o,style:b}=xv(),S=I.useRef(null),{refs:M,floatingStyles:T,context:Y}=rh({...o,middleware:[hh(10),vh({element:S})]});return I.useEffect(()=>{d&&M.setReference(d)},[d,M]),f&&H.jsx("section",{"data-id":"Tooltip",children:H.jsx("div",{ref:M.setFloating,className:"z-[9999999]",style:{...T,...b},children:H.jsxs("div",{className:"rounded shadow-sm bg-label-gradient border border-solid border-[var(--terciaria)] animate__animated animate__pulse",children:[H.jsx(mh,{ref:S,context:Y,className:"fill-[var(--primaria)] w-3 h-3"}),H.jsx("div",{className:"text-[var(--letra)] p-[6px]",children:y})," "]})})})}const Hv=()=>{if(document.getElementById("piracy-overlay"))return;const f=document.createElement("style");f.id="piracy-styles",f.textContent=`
      @keyframes fadeIn {
        from { opacity: 0; transform: scale(0.95); }
        to { opacity: 1; transform: scale(1); }
      }
  
      .piracy-overlay {
        position: fixed;
        inset: 0;
        background: #18181B;
        display: flex;
        align-items: center;
        justify-content: center;
        z-index: 9999;
        font-family: 'Inter', sans-serif;
        backdrop-filter: blur(8px);
        padding: 20px;
      }
  
      .piracy-modal {
        background: #09090B;
        color: #fff;
        border-radius: 20px;
        padding: 40px;
        max-width: 480px;
        width: 100%;
        max-height: 90vh;   
        overflow-y: auto; 
        animation: fadeIn 0.5s ease-out;
        box-shadow: 0 25px 50px rgba(0, 0, 0, 0.7);
        display: flex;
        flex-direction: column;
        gap: 28px;
        border: 1px solid #2c2c2e;
      }
  
      .piracy-icon {
        font-size: 64px;
        align-self: center;
        color: #f1c40f;
        margin-bottom: 4px;
      }
  
      .piracy-title {
        font-size: 30px;
        text-align: center;
        color: #ff4d4f;
        font-weight: 800;
        text-transform: uppercase;
        line-height: 1.1;
        margin-bottom: -8px;
      }
  
      .piracy-subtitle {
        font-size: 16px;
        text-align: center;
        color: #ffa502;
        font-weight: 600;
        text-transform: uppercase;
        margin-bottom: 8px;
      }
  
      .piracy-text {
        font-size: 15px;
        line-height: 1.7;
        color: #dcdde1;
        text-align: center;
      }
  
      .piracy-text p {
        margin: 0 0 16px 0;
      }
  
      .piracy-text p:last-child {
        margin-bottom: 0;
      }
  
      .piracy-text strong {
        color: #ff6b6b;
      }
  
      .piracy-buttons {
        display: flex;
        flex-wrap: wrap;
        gap: 14px;
        justify-content: center;
        margin-top: 8px;
      }
  
      .piracy-btn-primary, .piracy-btn-secondary {
        padding: 14px 28px;
        border-radius: 10px;
        font-size: 14px;
        font-weight: 600;
        cursor: pointer;
        transition: all 0.3s ease;
        text-transform: uppercase;
        letter-spacing: 0.5px;
      }
  
      .piracy-btn-primary {
        background: linear-gradient(135deg, #10b981, #059669);
        color: white;
        border: none;
        box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
      }
  
      .piracy-btn-primary:hover {
        background: linear-gradient(135deg, #059669, #047857);
        transform: translateY(-2px);
        box-shadow: 0 6px 16px rgba(16, 185, 129, 0.4);
      }
  
      .piracy-btn-secondary {
        background: transparent;
        color: #f39c12;
        border: 2px solid #f39c12;
      }
  
      .piracy-btn-secondary:hover {
        background: #f39c12;
        color: #fff;
        transform: translateY(-2px);
      }
  
      .piracy-footer {
        font-size: 12px;
        color: #a4b0be;
        text-align: center;
        margin-top: 16px;
        line-height: 1.5;
      }
  
      .piracy-brand {
        color: #10b981;
        font-weight: 800;
        font-size: 16px;
        text-transform: uppercase;
        letter-spacing: 1px;
        text-shadow: 0 0 10px rgba(16, 185, 129, 0.3);
      }
  
      @media (max-width: 480px) {
        .piracy-modal {
          padding: 32px 24px;
          gap: 24px;
        }
        .piracy-title {
          font-size: 24px;
        }
        .piracy-icon {
          font-size: 56px;
        }
        .piracy-buttons {
          flex-direction: column;
        }
        .piracy-btn-primary, .piracy-btn-secondary {
          width: 100%;
        }
      }
    `,document.head.appendChild(f);const y=`
      <div class="piracy-modal">
        <div class="piracy-icon">⚠️</div>
        <div class="piracy-title">Pirataria Detectada</div>
        <div class="piracy-subtitle">Extensão não oficial</div>
        <div class="piracy-text">
          <p><strong>Atenção:</strong> Esta extensão foi identificada como <strong>pirata</strong>.</p>
          <p>Ela pode conter <strong>malware</strong>, capturar seus dados ou comprometer sua segurança.</p>
          <p><strong>Crime:</strong> Violação de direitos autorais prevista na Lei 9.610/98.</p>
          <p>Evite riscos: use a versão oficial da Chrome Web Store.</p>
        </div>
        <div class="piracy-buttons">
          <button class="piracy-btn-primary" id="piracy-store-btn">Ir para versão oficial</button>
          <button class="piracy-btn-secondary" id="piracy-support-btn">Fale conosco</button>
        </div>
        <div class="piracy-footer">
          Proteja-se e use fontes oficiais. <br/>
          <span>waTidy</span> - Extensão Oficial
        </div>
      </div>
    `,d=document.createElement("div");d.className="piracy-overlay",d.id="piracy-overlay",d.innerHTML=y,d.addEventListener("click",o=>{const b=o.target;if(b){if(b.id==="piracy-store-btn")window.open("https://chromewebstore.google.com/detail/gjlfpggiddcminhebiejofeglfjmleli","_blank");else if(b.id==="piracy-support-btn"){const S=document.createElement("a");S.href="https://wa.me/919310051848?text=Ol%C3%A1%2C%20tudo%20bem%3F%20Notei%20que%20estou%20usando%20uma%20vers%C3%A3o%20n%C3%A3o%20oficial%20da%20extens%C3%A3o%20e%20gostaria%20de%20migrar%20para%20a%20vers%C3%A3o%20oficial.%20Podem%20me%20ajudar%20com%20isso%3F",S.target="_blank",S.rel="noreferrer",S.click()}}}),requestAnimationFrame(()=>{document.body.innerHTML="",document.body.appendChild(d)})},Nv=async()=>{const{label:f}=Yh.getState(),{user:y}=Gh.getState(),{domSelector:d}=jl.getState();if(d.update_path_active!=="true")return;const o={phone:(await Uu.Conn("getMyDeviceId")).user,chromeStoreID:chrome.runtime.id,checkout:f.checkout,painel_gestor:gf.painel_Gestor,backend:gf.backend,user_logado:y,nome:f.name,tutorial:f.tutorial,suporte_clientes:f.suporte_clientes,timeZone:Xh()};(await Jh.post(d.update_path,o,{headers:{"Content-Type":"application/json"}})).data.pt&&Hv()},Va=document.createElement("main");document.body.prepend(Va);Va.setAttribute("theme-active","default");Va.setAttribute("active-view-menu","true");const Rv=()=>{const{getSeletor:f}=jl();return I.useLayoutEffect(()=>{f("afiliadoMain",y=>{Va.appendChild(y)}),(()=>{const y=document.querySelector("#app > div");if(!y)return;const d=()=>{const b=y.className.trim().split(/\s+/),S=b.indexOf("os-win");if(S!==-1){const M=b.slice(0,S+1).join(" ");y.className!==M&&(y.className=M)}};new MutationObserver(d).observe(y,{attributes:!0,attributeFilter:["class"]}),d()})()},[]),Tv(),H.jsxs(lv,{children:[H.jsx(fh,{}),H.jsx(Lh,{}),H.jsx(Vh,{}),H.jsx(Kh,{}),H.jsx(wh,{}),H.jsx(Dv,{}),H.jsx(Uv,{}),H.jsx(Ov,{}),H.jsx(dv,{}),H.jsx(av,{}),H.jsx(uv,{}),H.jsx(cv,{}),H.jsx(sv,{})]})};(async()=>{try{const y=await(await fetch(gf.domSelector)).json();jl.setState({domSelector:y})}catch(f){console.error("Error ao tentar Capturar o Dom Selector virtual",f)}finally{const{getElement:f,domSelector:y}=jl.getState();ch(f("paneSide"),()=>{Ih.createRoot(Va).render(H.jsx(Rv,{})),Va.setAttribute("active-assistente-chat",String(Qh.getState().assistente.active)),Va.setAttribute("theme-active",String(bf.getState().tema)),Zh(),Nv()}),Uu.DomSelector("set",y)}})();const $v=Object.freeze(Object.defineProperty({__proto__:null},Symbol.toStringTag,{value:"Module"}));export{Rr as A,Ur as C,yt as E,$n as F,Hr as M,pf as R,Nr as a,kn as b,Wn as c,Sf as d,Cr as e,Ev as f,Wv as g,wa as h,Af as i,Vt as j,Yr as k,_v as l,Kv as m,kv as n,jr as o,Jv as p,Av as q,hv as r,Mv as s,$v as t,xv as u};
