import{s as Ph,E as dd,O as Ih,i as lm,a as tm,u as ft,W as ud,b as hd}from"./assets/js/cde6ad7a-796d-4473-9281-335d9536772c.CRTM-Pck.js";import{a as bf}from"./assets/js/81ea5d2d-437e-4f58-921b-c469499d82a6.NIGUFBhG.js";import{c as st}from"./assets/js/c5ee6ee5-033c-4f95-bf86-9df7eb57196a.DhGp9DQg.js";import{V as md,L as am,a as vd,P as yd,b as em,R as um,B as nm,c as im,d as cm,e as fm,M as sm,I as nd,f as rm,g as om,h as dm,E as hm}from"./assets/js/61be539c-150e-4fc1-9d64-6da8021a8d8e.BpThs-2M.js";import{j as d,U as mm,_ as vm}from"./assets/js/a2ccc5d1-6bb8-4158-ad8d-7034e8ed1c38.DnQEucPB.js";import{d as ym,r as gm,a as al,G as vt}from"./assets/js/5735e24c-11d1-46e6-966f-07dd43dc3c68.0Z0pQ5H2.js";import{A as Fn,m as X}from"./assets/js/c1668b11-6e06-452a-a9d8-50642235a7b4.C_lOdY8-.js";import{t as bm,c as pm}from"./assets/js/125a4f9b-b0b2-4776-a191-df89ddaa849b.BTGVH9Kg.js";import"./assets/js/02033519-a506-4138-a99e-39f66c643695.ZWIs3vTI.js";(function(){const h=document.createElement("link").relList;if(h&&h.supports&&h.supports("modulepreload"))return;for(const p of document.querySelectorAll('link[rel="modulepreload"]'))f(p);new MutationObserver(p=>{for(const T of p)if(T.type==="childList")for(const A of T.addedNodes)A.tagName==="LINK"&&A.rel==="modulepreload"&&f(A)}).observe(document,{childList:!0,subtree:!0});function o(p){const T={};return p.integrity&&(T.integrity=p.integrity),p.referrerPolicy&&(T.referrerPolicy=p.referrerPolicy),p.crossOrigin==="use-credentials"?T.credentials="include":p.crossOrigin==="anonymous"?T.credentials="omit":T.credentials="same-origin",T}function f(p){if(p.ep)return;p.ep=!0;const T=o(p);fetch(p.href,T)}})();Ph({page:"external"});const pf=st()((s,h)=>({label:{chromeStoreID:"",descricao:"",language:"",name:"",nameID:"",sigeID:"",checkout:"",tutorial:"",cor_primaria:!1,banner:null,install:"",uninstall:"",rewards:"",webhook_login_clients:"",ia_wascript:"",meetAovivo:null,suporte_clientes:{premium:"",free:""}},setLabel:o=>{s({label:o});const f=document.querySelector("main");f&&f.setAttribute("plugin-ico-color",String(h().label.cor_primaria))}}));async function Sm(){try{const h=await(await fetch(chrome.runtime.getURL("/label/config/utils.json"))).json();try{const f=(await bf.get(`${md.backend}api/whiteLabel/get?wl_id=${h.chromeStoreID}`,{headers:{"Content-Type":"application/json",accept:"application/json"}})).data.wl;f.cor_primaria=f.cor_primaria===0;const p={...h,...f};pf.getState().setLabel(p)}catch(o){const f={...h,checkout:"",tutorial:"",cor_primaria:!1,banner:null,install:"",uninstall:"",rewards:"",webhook_login_clients:"",ia_wascript:"",meetAovivo:null,suporte_clientes:{premium:"",free:""}};pf.getState().setLabel(f),console.error("erro ao carregar a WL remota",o)}}catch(s){console.error("Erro ao carregar o arquivo da Label Local:",s)}}async function xm(s,h){return new Promise((o,f)=>{const p=indexedDB.open(s,1);p.onerror=function(T){console.error("Erro ao abrir o banco de dados."),f("Erro ao abrir o banco de dados.")},p.onupgradeneeded=function(T){T.target.result.createObjectStore(h,{keyPath:"id",autoIncrement:!0})},p.onsuccess=function(T){const A=T.target.result,U=A.transaction([h],"readonly").objectStore(h).getAll();U.onsuccess=function(){o(U.result),A.close()},U.onerror=function(){console.error("Erro ao ler os dados da tabela."),f("Erro ao ler os dados da tabela.")}}})}async function Tm(s,h,o){return new Promise((f,p)=>{const T=indexedDB.open(s,1);T.onerror=function(A){console.error("Erro ao abrir o banco de dados."),p("Erro ao abrir o banco de dados.")},T.onupgradeneeded=function(A){A.target.result.createObjectStore(h,{keyPath:"id",autoIncrement:!0})},T.onsuccess=function(A){const j=A.target.result,U=j.transaction([h],"readwrite").objectStore(h);U.clear();const M=U.add(o);M.onsuccess=function(){f(!0),j.close()},M.onerror=function(){console.error("Worker Erro ao salvar os dados da camapanha."),f(!1)}}})}const Em=(s,h=!1)=>{Tm("useOrderLabels","orderLabels",s),dd({stopPropag:h,action:"setOrderLabels",waitForResponse:!1,data:s}),Ru.setState({orderLabels:s})},Am=Ih({setOrderLabels:s=>{Em(s.data,!0)},getOrderLabels:()=>Ru.getState().orderLabels});chrome.runtime.onMessage.addListener(Am);const zm=async()=>{const s=!location.href.includes("https://web.whatsapp");let h=[];if(s)h=await dd({stopPropag:!1,action:"getOrderLabels",waitForResponse:!0});else{const o=await xm("useOrderLabels","orderLabels");o[0]&&(h=o[0])}Ru.setState({orderLabels:h})},Ru=st()(()=>({orderLabels:[]}));zm();(async()=>(await Sm(),lm(),tm()))();var rf={exports:{}},Uu={},of={exports:{}},df={};/**
 * @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 id;function Mm(){return id||(id=1,(function(s){function h(N,Z){var G=N.length;N.push(Z);l:for(;0<G;){var sl=G-1>>>1,yl=N[sl];if(0<p(yl,Z))N[sl]=Z,N[G]=yl,G=sl;else break l}}function o(N){return N.length===0?null:N[0]}function f(N){if(N.length===0)return null;var Z=N[0],G=N.pop();if(G!==Z){N[0]=G;l:for(var sl=0,yl=N.length,ka=yl>>>1;sl<ka;){var xa=2*(sl+1)-1,Mt=N[xa],I=xa+1,Wl=N[I];if(0>p(Mt,G))I<yl&&0>p(Wl,Mt)?(N[sl]=Wl,N[I]=G,sl=I):(N[sl]=Mt,N[xa]=G,sl=xa);else if(I<yl&&0>p(Wl,G))N[sl]=Wl,N[I]=G,sl=I;else break l}}return Z}function p(N,Z){var G=N.sortIndex-Z.sortIndex;return G!==0?G:N.id-Z.id}if(s.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var T=performance;s.unstable_now=function(){return T.now()}}else{var A=Date,j=A.now();s.unstable_now=function(){return A.now()-j}}var O=[],U=[],M=1,C=null,R=3,q=!1,_=!1,K=!1,el=typeof setTimeout=="function"?setTimeout:null,El=typeof clearTimeout=="function"?clearTimeout:null,k=typeof setImmediate<"u"?setImmediate:null;function Al(N){for(var Z=o(U);Z!==null;){if(Z.callback===null)f(U);else if(Z.startTime<=N)f(U),Z.sortIndex=Z.expirationTime,h(O,Z);else break;Z=o(U)}}function zt(N){if(K=!1,Al(N),!_)if(o(O)!==null)_=!0,pa();else{var Z=o(U);Z!==null&&Sa(zt,Z.startTime-N)}}var yt=!1,Ll=-1,ya=5,ga=-1;function z(){return!(s.unstable_now()-ga<ya)}function L(){if(yt){var N=s.unstable_now();ga=N;var Z=!0;try{l:{_=!1,K&&(K=!1,El(Ll),Ll=-1),q=!0;var G=R;try{t:{for(Al(N),C=o(O);C!==null&&!(C.expirationTime>N&&z());){var sl=C.callback;if(typeof sl=="function"){C.callback=null,R=C.priorityLevel;var yl=sl(C.expirationTime<=N);if(N=s.unstable_now(),typeof yl=="function"){C.callback=yl,Al(N),Z=!0;break t}C===o(O)&&f(O),Al(N)}else f(O);C=o(O)}if(C!==null)Z=!0;else{var ka=o(U);ka!==null&&Sa(zt,ka.startTime-N),Z=!1}}break l}finally{C=null,R=G,q=!1}Z=void 0}}finally{Z?$():yt=!1}}}var $;if(typeof k=="function")$=function(){k(L)};else if(typeof MessageChannel<"u"){var rt=new MessageChannel,ba=rt.port2;rt.port1.onmessage=L,$=function(){ba.postMessage(null)}}else $=function(){el(L,0)};function pa(){yt||(yt=!0,$())}function Sa(N,Z){Ll=el(function(){N(s.unstable_now())},Z)}s.unstable_IdlePriority=5,s.unstable_ImmediatePriority=1,s.unstable_LowPriority=4,s.unstable_NormalPriority=3,s.unstable_Profiling=null,s.unstable_UserBlockingPriority=2,s.unstable_cancelCallback=function(N){N.callback=null},s.unstable_continueExecution=function(){_||q||(_=!0,pa())},s.unstable_forceFrameRate=function(N){0>N||125<N?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):ya=0<N?Math.floor(1e3/N):5},s.unstable_getCurrentPriorityLevel=function(){return R},s.unstable_getFirstCallbackNode=function(){return o(O)},s.unstable_next=function(N){switch(R){case 1:case 2:case 3:var Z=3;break;default:Z=R}var G=R;R=Z;try{return N()}finally{R=G}},s.unstable_pauseExecution=function(){},s.unstable_requestPaint=function(){},s.unstable_runWithPriority=function(N,Z){switch(N){case 1:case 2:case 3:case 4:case 5:break;default:N=3}var G=R;R=N;try{return Z()}finally{R=G}},s.unstable_scheduleCallback=function(N,Z,G){var sl=s.unstable_now();switch(typeof G=="object"&&G!==null?(G=G.delay,G=typeof G=="number"&&0<G?sl+G:sl):G=sl,N){case 1:var yl=-1;break;case 2:yl=250;break;case 5:yl=1073741823;break;case 4:yl=1e4;break;default:yl=5e3}return yl=G+yl,N={id:M++,callback:Z,priorityLevel:N,startTime:G,expirationTime:yl,sortIndex:-1},G>sl?(N.sortIndex=G,h(U,N),o(O)===null&&N===o(U)&&(K?(El(Ll),Ll=-1):K=!0,Sa(zt,G-sl))):(N.sortIndex=yl,h(O,N),_||q||(_=!0,pa())),N},s.unstable_shouldYield=z,s.unstable_wrapCallback=function(N){var Z=R;return function(){var G=R;R=Z;try{return N.apply(this,arguments)}finally{R=G}}}})(df)),df}var cd;function Dm(){return cd||(cd=1,of.exports=Mm()),of.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 fd;function Om(){if(fd)return Uu;fd=1;var s=Dm(),h=ym(),o=gm();function f(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 p(l){return!(!l||l.nodeType!==1&&l.nodeType!==9&&l.nodeType!==11)}var T=Symbol.for("react.element"),A=Symbol.for("react.transitional.element"),j=Symbol.for("react.portal"),O=Symbol.for("react.fragment"),U=Symbol.for("react.strict_mode"),M=Symbol.for("react.profiler"),C=Symbol.for("react.provider"),R=Symbol.for("react.consumer"),q=Symbol.for("react.context"),_=Symbol.for("react.forward_ref"),K=Symbol.for("react.suspense"),el=Symbol.for("react.suspense_list"),El=Symbol.for("react.memo"),k=Symbol.for("react.lazy"),Al=Symbol.for("react.offscreen"),zt=Symbol.for("react.memo_cache_sentinel"),yt=Symbol.iterator;function Ll(l){return l===null||typeof l!="object"?null:(l=yt&&l[yt]||l["@@iterator"],typeof l=="function"?l:null)}var ya=Symbol.for("react.client.reference");function ga(l){if(l==null)return null;if(typeof l=="function")return l.$$typeof===ya?null:l.displayName||l.name||null;if(typeof l=="string")return l;switch(l){case O:return"Fragment";case j:return"Portal";case M:return"Profiler";case U:return"StrictMode";case K:return"Suspense";case el:return"SuspenseList"}if(typeof l=="object")switch(l.$$typeof){case q:return(l.displayName||"Context")+".Provider";case R:return(l._context.displayName||"Context")+".Consumer";case _:var t=l.render;return l=l.displayName,l||(l=t.displayName||t.name||"",l=l!==""?"ForwardRef("+l+")":"ForwardRef"),l;case El:return t=l.displayName||null,t!==null?t:ga(l.type)||"Memo";case k:t=l._payload,l=l._init;try{return ga(l(t))}catch{}}return null}var z=h.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,L=Object.assign,$,rt;function ba(l){if($===void 0)try{throw Error()}catch(a){var t=a.stack.trim().match(/\n( *(at )?)/);$=t&&t[1]||"",rt=-1<a.stack.indexOf(`
    at`)?" (<anonymous>)":-1<a.stack.indexOf("@")?"@unknown:0:0":""}return`
`+$+l+rt}var pa=!1;function Sa(l,t){if(!l||pa)return"";pa=!0;var a=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var e={DetermineComponentFrameRoot:function(){try{if(t){var D=function(){throw Error()};if(Object.defineProperty(D.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(D,[])}catch(S){var b=S}Reflect.construct(l,[],D)}else{try{D.call()}catch(S){b=S}l.call(D.prototype)}}else{try{throw Error()}catch(S){b=S}(D=l())&&typeof D.catch=="function"&&D.catch(function(){})}}catch(S){if(S&&b&&typeof S.stack=="string")return[S.stack,b.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 r=i.split(`
`),v=c.split(`
`);for(u=e=0;e<r.length&&!r[e].includes("DetermineComponentFrameRoot");)e++;for(;u<v.length&&!v[u].includes("DetermineComponentFrameRoot");)u++;if(e===r.length||u===v.length)for(e=r.length-1,u=v.length-1;1<=e&&0<=u&&r[e]!==v[u];)u--;for(;1<=e&&0<=u;e--,u--)if(r[e]!==v[u]){if(e!==1||u!==1)do if(e--,u--,0>u||r[e]!==v[u]){var x=`
`+r[e].replace(" at new "," at ");return l.displayName&&x.includes("<anonymous>")&&(x=x.replace("<anonymous>",l.displayName)),x}while(1<=e&&0<=u);break}}}finally{pa=!1,Error.prepareStackTrace=a}return(a=l?l.displayName||l.name:"")?ba(a):""}function N(l){switch(l.tag){case 26:case 27:case 5:return ba(l.type);case 16:return ba("Lazy");case 13:return ba("Suspense");case 19:return ba("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 Z(l){try{var t="";do t+=N(l),l=l.return;while(l);return t}catch(a){return`
Error generating stack: `+a.message+`
`+a.stack}}function G(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 sl(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 yl(l){if(G(l)!==l)throw Error(f(188))}function ka(l){var t=l.alternate;if(!t){if(t=G(l),t===null)throw Error(f(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 yl(u),l;if(n===e)return yl(u),t;n=n.sibling}throw Error(f(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(f(189))}}if(a.alternate!==e)throw Error(f(190))}if(a.tag!==3)throw Error(f(188));return a.stateNode.current===a?l:t}function xa(l){var t=l.tag;if(t===5||t===26||t===27||t===6)return l;for(l=l.child;l!==null;){if(t=xa(l),t!==null)return t;l=l.sibling}return null}var Mt=Array.isArray,I=o.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,Wl={pending:!1,data:null,method:null,action:null},In=[],Wa=-1;function gt(l){return{current:l}}function zl(l){0>Wa||(l.current=In[Wa],In[Wa]=null,Wa--)}function rl(l,t){Wa++,In[Wa]=l.current,l.current=t}var bt=gt(null),He=gt(null),wt=gt(null),Hu=gt(null);function Bu(l,t){switch(rl(wt,t),rl(He,l),rl(bt,null),l=t.nodeType,l){case 9:case 11:t=(t=t.documentElement)&&(t=t.namespaceURI)?Ro(t):0;break;default:if(l=l===8?t.parentNode:t,t=l.tagName,l=l.namespaceURI)l=Ro(l),t=Ho(l,t);else switch(t){case"svg":t=1;break;case"math":t=2;break;default:t=0}}zl(bt),rl(bt,t)}function $a(){zl(bt),zl(He),zl(wt)}function li(l){l.memoizedState!==null&&rl(Hu,l);var t=bt.current,a=Ho(t,l.type);t!==a&&(rl(He,l),rl(bt,a))}function qu(l){He.current===l&&(zl(bt),zl(He)),Hu.current===l&&(zl(Hu),Mu._currentValue=Wl)}var ti=Object.prototype.hasOwnProperty,ai=s.unstable_scheduleCallback,ei=s.unstable_cancelCallback,Cd=s.unstable_shouldYield,Ud=s.unstable_requestPaint,pt=s.unstable_now,Nd=s.unstable_getCurrentPriorityLevel,xf=s.unstable_ImmediatePriority,Tf=s.unstable_UserBlockingPriority,_u=s.unstable_NormalPriority,Rd=s.unstable_LowPriority,Ef=s.unstable_IdlePriority,Hd=s.log,Bd=s.unstable_setDisableYieldValue,Be=null,Gl=null;function qd(l){if(Gl&&typeof Gl.onCommitFiberRoot=="function")try{Gl.onCommitFiberRoot(Be,l,void 0,(l.current.flags&128)===128)}catch{}}function Kt(l){if(typeof Hd=="function"&&Bd(l),Gl&&typeof Gl.setStrictMode=="function")try{Gl.setStrictMode(Be,l)}catch{}}var Ql=Math.clz32?Math.clz32:Vd,_d=Math.log,Ld=Math.LN2;function Vd(l){return l>>>=0,l===0?32:31-(_d(l)/Ld|0)|0}var Lu=128,Vu=4194304;function Ta(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=Ta(a):(n&=c,n!==0?e=Ta(n):l||(i=c&~i,i!==0&&(e=Ta(i))))):(c=a&~u,c!==0?e=Ta(c):n!==0?e=Ta(n):l||(i=a&~i,i!==0&&(e=Ta(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 qe(l,t){return(l.pendingLanes&~(l.suspendedLanes&~l.pingedLanes)&t)===0}function Yd(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 Af(){var l=Lu;return Lu<<=1,(Lu&4194176)===0&&(Lu=128),l}function zf(){var l=Vu;return Vu<<=1,(Vu&62914560)===0&&(Vu=4194304),l}function ui(l){for(var t=[],a=0;31>a;a++)t.push(l);return t}function _e(l,t){l.pendingLanes|=t,t!==268435456&&(l.suspendedLanes=0,l.pingedLanes=0,l.warmLanes=0)}function Xd(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,r=l.expirationTimes,v=l.hiddenUpdates;for(a=i&~a;0<a;){var x=31-Ql(a),D=1<<x;c[x]=0,r[x]=-1;var b=v[x];if(b!==null)for(v[x]=null,x=0;x<b.length;x++){var S=b[x];S!==null&&(S.lane&=-536870913)}a&=~D}e!==0&&Mf(l,e,0),n!==0&&u===0&&l.tag!==0&&(l.suspendedLanes|=n&~(i&~t))}function Mf(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 Df(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 Of(l){return l&=-l,2<l?8<l?(l&134217727)!==0?32:268435456:8:2}function jf(){var l=I.p;return l!==0?l:(l=window.event,l===void 0?32:Po(l.type))}function Gd(l,t){var a=I.p;try{return I.p=l,t()}finally{I.p=a}}var Jt=Math.random().toString(36).slice(2),Rl="__reactFiber$"+Jt,Vl="__reactProps$"+Jt,Fa="__reactContainer$"+Jt,ni="__reactEvents$"+Jt,Qd="__reactListeners$"+Jt,Zd="__reactHandles$"+Jt,Cf="__reactResources$"+Jt,Le="__reactMarker$"+Jt;function ii(l){delete l[Rl],delete l[Vl],delete l[ni],delete l[Qd],delete l[Zd]}function Ea(l){var t=l[Rl];if(t)return t;for(var a=l.parentNode;a;){if(t=a[Fa]||a[Rl]){if(a=t.alternate,t.child!==null||a!==null&&a.child!==null)for(l=_o(l);l!==null;){if(a=l[Rl])return a;l=_o(l)}return t}l=a,a=l.parentNode}return null}function Pa(l){if(l=l[Rl]||l[Fa]){var t=l.tag;if(t===5||t===6||t===13||t===26||t===27||t===3)return l}return null}function Ve(l){var t=l.tag;if(t===5||t===26||t===27||t===6)return l.stateNode;throw Error(f(33))}function Ia(l){var t=l[Cf];return t||(t=l[Cf]={hoistableStyles:new Map,hoistableScripts:new Map}),t}function Ml(l){l[Le]=!0}var Uf=new Set,Nf={};function Aa(l,t){le(l,t),le(l+"Capture",t)}function le(l,t){for(Nf[l]=t,l=0;l<t.length;l++)Uf.add(t[l])}var Dt=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),wd=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]*$"),Rf={},Hf={};function Kd(l){return ti.call(Hf,l)?!0:ti.call(Rf,l)?!1:wd.test(l)?Hf[l]=!0:(Rf[l]=!0,!1)}function Xu(l,t,a){if(Kd(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 Gu(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 $l(l){switch(typeof l){case"bigint":case"boolean":case"number":case"string":case"undefined":return l;case"object":return l;default:return""}}function Bf(l){var t=l.type;return(l=l.nodeName)&&l.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function Jd(l){var t=Bf(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=Jd(l))}function qf(l){if(!l)return!1;var t=l._valueTracker;if(!t)return!0;var a=t.getValue(),e="";return l&&(e=Bf(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 kd=/[\n"\\]/g;function Fl(l){return l.replace(kd,function(t){return"\\"+t.charCodeAt(0).toString(16)+" "})}function ci(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=""+$l(t)):l.value!==""+$l(t)&&(l.value=""+$l(t)):i!=="submit"&&i!=="reset"||l.removeAttribute("value"),t!=null?fi(l,i,$l(t)):a!=null?fi(l,i,$l(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=""+$l(c):l.removeAttribute("name")}function _f(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?""+$l(a):"",t=t!=null?""+$l(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 fi(l,t,a){t==="number"&&Zu(l.ownerDocument)===l||l.defaultValue===""+a||(l.defaultValue=""+a)}function te(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=""+$l(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 Lf(l,t,a){if(t!=null&&(t=""+$l(t),t!==l.value&&(l.value=t),a==null)){l.defaultValue!==t&&(l.defaultValue=t);return}l.defaultValue=a!=null?""+$l(a):""}function Vf(l,t,a,e){if(t==null){if(e!=null){if(a!=null)throw Error(f(92));if(Mt(e)){if(1<e.length)throw Error(f(93));e=e[0]}a=e}a==null&&(a=""),t=a}a=$l(t),l.defaultValue=a,e=l.textContent,e===a&&e!==""&&e!==null&&(l.value=e)}function ae(l,t){if(t){var a=l.firstChild;if(a&&a===l.lastChild&&a.nodeType===3){a.nodeValue=t;return}}l.textContent=t}var Wd=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 Yf(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||Wd.has(t)?t==="float"?l.cssFloat=a:l[t]=(""+a).trim():l[t]=a+"px"}function Xf(l,t,a){if(t!=null&&typeof t!="object")throw Error(f(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&&Yf(l,u,e)}else for(var n in t)t.hasOwnProperty(n)&&Yf(l,n,t[n])}function si(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 $d=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"]]),Fd=/^[\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 wu(l){return Fd.test(""+l)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":l}var ri=null;function oi(l){return l=l.target||l.srcElement||window,l.correspondingUseElement&&(l=l.correspondingUseElement),l.nodeType===3?l.parentNode:l}var ee=null,ue=null;function Gf(l){var t=Pa(l);if(t&&(l=t.stateNode)){var a=l[Vl]||null;l:switch(l=t.stateNode,t.type){case"input":if(ci(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="'+Fl(""+t)+'"][type="radio"]'),t=0;t<a.length;t++){var e=a[t];if(e!==l&&e.form===l.form){var u=e[Vl]||null;if(!u)throw Error(f(90));ci(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&&qf(e)}break l;case"textarea":Lf(l,a.value,a.defaultValue);break l;case"select":t=a.value,t!=null&&te(l,!!a.multiple,t,!1)}}}var di=!1;function Qf(l,t,a){if(di)return l(t,a);di=!0;try{var e=l(t);return e}finally{if(di=!1,(ee!==null||ue!==null)&&(jn(),ee&&(t=ee,l=ue,ue=ee=null,Gf(t),l)))for(t=0;t<l.length;t++)Gf(l[t])}}function Ye(l,t){var a=l.stateNode;if(a===null)return null;var e=a[Vl]||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(f(231,t,typeof a));return a}var hi=!1;if(Dt)try{var Xe={};Object.defineProperty(Xe,"passive",{get:function(){hi=!0}}),window.addEventListener("test",Xe,Xe),window.removeEventListener("test",Xe,Xe)}catch{hi=!1}var kt=null,mi=null,Ku=null;function Zf(){if(Ku)return Ku;var l,t=mi,a=t.length,e,u="value"in kt?kt.value:kt.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 Ku=u.slice(l,1<e?1-e:void 0)}function Ju(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 wf(){return!1}function Yl(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:wf,this.isPropagationStopped=wf,this}return L(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 za={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(l){return l.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Wu=Yl(za),Ge=L({},za,{view:0,detail:0}),Pd=Yl(Ge),vi,yi,Qe,$u=L({},Ge,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:bi,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!==Qe&&(Qe&&l.type==="mousemove"?(vi=l.screenX-Qe.screenX,yi=l.screenY-Qe.screenY):yi=vi=0,Qe=l),vi)},movementY:function(l){return"movementY"in l?l.movementY:yi}}),Kf=Yl($u),Id=L({},$u,{dataTransfer:0}),l0=Yl(Id),t0=L({},Ge,{relatedTarget:0}),gi=Yl(t0),a0=L({},za,{animationName:0,elapsedTime:0,pseudoElement:0}),e0=Yl(a0),u0=L({},za,{clipboardData:function(l){return"clipboardData"in l?l.clipboardData:window.clipboardData}}),n0=Yl(u0),i0=L({},za,{data:0}),Jf=Yl(i0),c0={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},f0={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"},s0={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function r0(l){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(l):(l=s0[l])?!!t[l]:!1}function bi(){return r0}var o0=L({},Ge,{key:function(l){if(l.key){var t=c0[l.key]||l.key;if(t!=="Unidentified")return t}return l.type==="keypress"?(l=Ju(l),l===13?"Enter":String.fromCharCode(l)):l.type==="keydown"||l.type==="keyup"?f0[l.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:bi,charCode:function(l){return l.type==="keypress"?Ju(l):0},keyCode:function(l){return l.type==="keydown"||l.type==="keyup"?l.keyCode:0},which:function(l){return l.type==="keypress"?Ju(l):l.type==="keydown"||l.type==="keyup"?l.keyCode:0}}),d0=Yl(o0),h0=L({},$u,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),kf=Yl(h0),m0=L({},Ge,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:bi}),v0=Yl(m0),y0=L({},za,{propertyName:0,elapsedTime:0,pseudoElement:0}),g0=Yl(y0),b0=L({},$u,{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}),p0=Yl(b0),S0=L({},za,{newState:0,oldState:0}),x0=Yl(S0),T0=[9,13,27,32],pi=Dt&&"CompositionEvent"in window,Ze=null;Dt&&"documentMode"in document&&(Ze=document.documentMode);var E0=Dt&&"TextEvent"in window&&!Ze,Wf=Dt&&(!pi||Ze&&8<Ze&&11>=Ze),$f=" ",Ff=!1;function Pf(l,t){switch(l){case"keyup":return T0.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function If(l){return l=l.detail,typeof l=="object"&&"data"in l?l.data:null}var ne=!1;function A0(l,t){switch(l){case"compositionend":return If(t);case"keypress":return t.which!==32?null:(Ff=!0,$f);case"textInput":return l=t.data,l===$f&&Ff?null:l;default:return null}}function z0(l,t){if(ne)return l==="compositionend"||!pi&&Pf(l,t)?(l=Zf(),Ku=mi=kt=null,ne=!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 Wf&&t.locale!=="ko"?null:t.data;default:return null}}var M0={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 ls(l){var t=l&&l.nodeName&&l.nodeName.toLowerCase();return t==="input"?!!M0[l.type]:t==="textarea"}function ts(l,t,a,e){ee?ue?ue.push(e):ue=[e]:ee=e,t=Hn(t,"onChange"),0<t.length&&(a=new Wu("onChange","change",null,a,e),l.push({event:a,listeners:t}))}var we=null,Ke=null;function D0(l){Oo(l,0)}function Fu(l){var t=Ve(l);if(qf(t))return l}function as(l,t){if(l==="change")return t}var es=!1;if(Dt){var Si;if(Dt){var xi="oninput"in document;if(!xi){var us=document.createElement("div");us.setAttribute("oninput","return;"),xi=typeof us.oninput=="function"}Si=xi}else Si=!1;es=Si&&(!document.documentMode||9<document.documentMode)}function ns(){we&&(we.detachEvent("onpropertychange",is),Ke=we=null)}function is(l){if(l.propertyName==="value"&&Fu(Ke)){var t=[];ts(t,Ke,l,oi(l)),Qf(D0,t)}}function O0(l,t,a){l==="focusin"?(ns(),we=t,Ke=a,we.attachEvent("onpropertychange",is)):l==="focusout"&&ns()}function j0(l){if(l==="selectionchange"||l==="keyup"||l==="keydown")return Fu(Ke)}function C0(l,t){if(l==="click")return Fu(t)}function U0(l,t){if(l==="input"||l==="change")return Fu(t)}function N0(l,t){return l===t&&(l!==0||1/l===1/t)||l!==l&&t!==t}var Zl=typeof Object.is=="function"?Object.is:N0;function Je(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(!ti.call(t,u)||!Zl(l[u],t[u]))return!1}return!0}function cs(l){for(;l&&l.firstChild;)l=l.firstChild;return l}function fs(l,t){var a=cs(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=cs(a)}}function ss(l,t){return l&&t?l===t?!0:l&&l.nodeType===3?!1:t&&t.nodeType===3?ss(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 Ti(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 R0(l,t){var a=rs(t);t=l.focusedElem;var e=l.selectionRange;if(a!==t&&t&&t.ownerDocument&&ss(t.ownerDocument.documentElement,t)){if(e!==null&&Ti(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=fs(t,n);var i=fs(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 H0=Dt&&"documentMode"in document&&11>=document.documentMode,ie=null,Ei=null,ke=null,Ai=!1;function os(l,t,a){var e=a.window===a?a.document:a.nodeType===9?a:a.ownerDocument;Ai||ie==null||ie!==Zu(e)||(e=ie,"selectionStart"in e&&Ti(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}),ke&&Je(ke,e)||(ke=e,e=Hn(Ei,"onSelect"),0<e.length&&(t=new Wu("onSelect","select",null,t,a),l.push({event:t,listeners:e}),t.target=ie)))}function Ma(l,t){var a={};return a[l.toLowerCase()]=t.toLowerCase(),a["Webkit"+l]="webkit"+t,a["Moz"+l]="moz"+t,a}var ce={animationend:Ma("Animation","AnimationEnd"),animationiteration:Ma("Animation","AnimationIteration"),animationstart:Ma("Animation","AnimationStart"),transitionrun:Ma("Transition","TransitionRun"),transitionstart:Ma("Transition","TransitionStart"),transitioncancel:Ma("Transition","TransitionCancel"),transitionend:Ma("Transition","TransitionEnd")},zi={},ds={};Dt&&(ds=document.createElement("div").style,"AnimationEvent"in window||(delete ce.animationend.animation,delete ce.animationiteration.animation,delete ce.animationstart.animation),"TransitionEvent"in window||delete ce.transitionend.transition);function Da(l){if(zi[l])return zi[l];if(!ce[l])return l;var t=ce[l],a;for(a in t)if(t.hasOwnProperty(a)&&a in ds)return zi[l]=t[a];return l}var hs=Da("animationend"),ms=Da("animationiteration"),vs=Da("animationstart"),B0=Da("transitionrun"),q0=Da("transitionstart"),_0=Da("transitioncancel"),ys=Da("transitionend"),gs=new Map,bs="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 ot(l,t){gs.set(l,t),Aa(t,[l])}var Pl=[],fe=0,Mi=0;function Pu(){for(var l=fe,t=Mi=fe=0;t<l;){var a=Pl[t];Pl[t++]=null;var e=Pl[t];Pl[t++]=null;var u=Pl[t];Pl[t++]=null;var n=Pl[t];if(Pl[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&&ps(a,u,n)}}function Iu(l,t,a,e){Pl[fe++]=l,Pl[fe++]=t,Pl[fe++]=a,Pl[fe++]=e,Mi|=e,l.lanes|=e,l=l.alternate,l!==null&&(l.lanes|=e)}function Di(l,t,a,e){return Iu(l,t,a,e),ln(l)}function Wt(l,t){return Iu(l,null,null,t),ln(l)}function ps(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 ln(l){if(50<pu)throw pu=0,Rc=null,Error(f(185));for(var t=l.return;t!==null;)l=t,t=l.return;return l.tag===3?l.stateNode:null}var se={},Ss=new WeakMap;function Il(l,t){if(typeof l=="object"&&l!==null){var a=Ss.get(l);return a!==void 0?a:(t={value:l,source:t,stack:Z(t)},Ss.set(l,t),t)}return{value:l,source:t,stack:Z(t)}}var re=[],oe=0,tn=null,an=0,lt=[],tt=0,Oa=null,jt=1,Ct="";function ja(l,t){re[oe++]=an,re[oe++]=tn,tn=l,an=t}function xs(l,t,a){lt[tt++]=jt,lt[tt++]=Ct,lt[tt++]=Oa,Oa=l;var e=jt;l=Ct;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,jt=1<<32-Ql(t)+u|a<<u|e,Ct=n+l}else jt=1<<n|a<<u|e,Ct=l}function Oi(l){l.return!==null&&(ja(l,1),xs(l,1,0))}function ji(l){for(;l===tn;)tn=re[--oe],re[oe]=null,an=re[--oe],re[oe]=null;for(;l===Oa;)Oa=lt[--tt],lt[tt]=null,Ct=lt[--tt],lt[tt]=null,jt=lt[--tt],lt[tt]=null}var ql=null,Cl=null,ll=!1,dt=null,St=!1,Ci=Error(f(519));function Ca(l){var t=Error(f(418,""));throw Fe(Il(t,l)),Ci}function Ts(l){var t=l.stateNode,a=l.type,e=l.memoizedProps;switch(t[Rl]=l,t[Vl]=e,a){case"dialog":F("cancel",t),F("close",t);break;case"iframe":case"object":case"embed":F("load",t);break;case"video":case"audio":for(a=0;a<xu.length;a++)F(xu[a],t);break;case"source":F("error",t);break;case"img":case"image":case"link":F("error",t),F("load",t);break;case"details":F("toggle",t);break;case"input":F("invalid",t),_f(t,e.value,e.defaultValue,e.checked,e.defaultChecked,e.type,e.name,!0),Qu(t);break;case"select":F("invalid",t);break;case"textarea":F("invalid",t),Vf(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||No(t.textContent,a)?(e.popover!=null&&(F("beforetoggle",t),F("toggle",t)),e.onScroll!=null&&F("scroll",t),e.onScrollEnd!=null&&F("scrollend",t),e.onClick!=null&&(t.onclick=Bn),t=!0):t=!1,t||Ca(l)}function Es(l){for(ql=l.return;ql;)switch(ql.tag){case 3:case 27:St=!0;return;case 5:case 13:St=!1;return;default:ql=ql.return}}function We(l){if(l!==ql)return!1;if(!ll)return Es(l),ll=!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")||$c(l.type,l.memoizedProps)),a=!a),a&&(t=!0),t&&Cl&&Ca(l),Es(l),l.tag===13){if(l=l.memoizedState,l=l!==null?l.dehydrated:null,!l)throw Error(f(317));l:{for(l=l.nextSibling,t=0;l;){if(l.nodeType===8)if(a=l.data,a==="/$"){if(t===0){Cl=mt(l.nextSibling);break l}t--}else a!=="$"&&a!=="$!"&&a!=="$?"||t++;l=l.nextSibling}Cl=null}}else Cl=ql?mt(l.stateNode.nextSibling):null;return!0}function $e(){Cl=ql=null,ll=!1}function Fe(l){dt===null?dt=[l]:dt.push(l)}var Pe=Error(f(460)),As=Error(f(474)),Ui={then:function(){}};function zs(l){return l=l.status,l==="fulfilled"||l==="rejected"}function en(){}function Ms(l,t,a){switch(a=l[a],a===void 0?l.push(t):a!==t&&(t.then(en,en),t=a),t.status){case"fulfilled":return t.value;case"rejected":throw l=t.reason,l===Pe?Error(f(483)):l;default:if(typeof t.status=="string")t.then(en,en);else{if(l=cl,l!==null&&100<l.shellSuspendCounter)throw Error(f(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===Pe?Error(f(483)):l}throw Ie=t,Pe}}var Ie=null;function Ds(){if(Ie===null)throw Error(f(459));var l=Ie;return Ie=null,l}var de=null,lu=0;function un(l){var t=lu;return lu+=1,de===null&&(de=[]),Ms(de,l,t)}function tu(l,t){t=t.props.ref,l.ref=t!==void 0?t:null}function nn(l,t){throw t.$$typeof===T?Error(f(525)):(l=Object.prototype.toString.call(t),Error(f(31,l==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":l)))}function Os(l){var t=l._init;return t(l._payload)}function js(l){function t(y,m){if(l){var g=y.deletions;g===null?(y.deletions=[m],y.flags|=16):g.push(m)}}function a(y,m){if(!l)return null;for(;m!==null;)t(y,m),m=m.sibling;return null}function e(y){for(var m=new Map;y!==null;)y.key!==null?m.set(y.key,y):m.set(y.index,y),y=y.sibling;return m}function u(y,m){return y=ca(y,m),y.index=0,y.sibling=null,y}function n(y,m,g){return y.index=g,l?(g=y.alternate,g!==null?(g=g.index,g<m?(y.flags|=33554434,m):g):(y.flags|=33554434,m)):(y.flags|=1048576,m)}function i(y){return l&&y.alternate===null&&(y.flags|=33554434),y}function c(y,m,g,E){return m===null||m.tag!==6?(m=zc(g,y.mode,E),m.return=y,m):(m=u(m,g),m.return=y,m)}function r(y,m,g,E){var H=g.type;return H===O?x(y,m,g.props.children,E,g.key):m!==null&&(m.elementType===H||typeof H=="object"&&H!==null&&H.$$typeof===k&&Os(H)===m.type)?(m=u(m,g.props),tu(m,g),m.return=y,m):(m=An(g.type,g.key,g.props,null,y.mode,E),tu(m,g),m.return=y,m)}function v(y,m,g,E){return m===null||m.tag!==4||m.stateNode.containerInfo!==g.containerInfo||m.stateNode.implementation!==g.implementation?(m=Mc(g,y.mode,E),m.return=y,m):(m=u(m,g.children||[]),m.return=y,m)}function x(y,m,g,E,H){return m===null||m.tag!==7?(m=Ya(g,y.mode,E,H),m.return=y,m):(m=u(m,g),m.return=y,m)}function D(y,m,g){if(typeof m=="string"&&m!==""||typeof m=="number"||typeof m=="bigint")return m=zc(""+m,y.mode,g),m.return=y,m;if(typeof m=="object"&&m!==null){switch(m.$$typeof){case A:return g=An(m.type,m.key,m.props,null,y.mode,g),tu(g,m),g.return=y,g;case j:return m=Mc(m,y.mode,g),m.return=y,m;case k:var E=m._init;return m=E(m._payload),D(y,m,g)}if(Mt(m)||Ll(m))return m=Ya(m,y.mode,g,null),m.return=y,m;if(typeof m.then=="function")return D(y,un(m),g);if(m.$$typeof===q)return D(y,xn(y,m),g);nn(y,m)}return null}function b(y,m,g,E){var H=m!==null?m.key:null;if(typeof g=="string"&&g!==""||typeof g=="number"||typeof g=="bigint")return H!==null?null:c(y,m,""+g,E);if(typeof g=="object"&&g!==null){switch(g.$$typeof){case A:return g.key===H?r(y,m,g,E):null;case j:return g.key===H?v(y,m,g,E):null;case k:return H=g._init,g=H(g._payload),b(y,m,g,E)}if(Mt(g)||Ll(g))return H!==null?null:x(y,m,g,E,null);if(typeof g.then=="function")return b(y,m,un(g),E);if(g.$$typeof===q)return b(y,m,xn(y,g),E);nn(y,g)}return null}function S(y,m,g,E,H){if(typeof E=="string"&&E!==""||typeof E=="number"||typeof E=="bigint")return y=y.get(g)||null,c(m,y,""+E,H);if(typeof E=="object"&&E!==null){switch(E.$$typeof){case A:return y=y.get(E.key===null?g:E.key)||null,r(m,y,E,H);case j:return y=y.get(E.key===null?g:E.key)||null,v(m,y,E,H);case k:var J=E._init;return E=J(E._payload),S(y,m,g,E,H)}if(Mt(E)||Ll(E))return y=y.get(g)||null,x(m,y,E,H,null);if(typeof E.then=="function")return S(y,m,g,un(E),H);if(E.$$typeof===q)return S(y,m,g,xn(m,E),H);nn(m,E)}return null}function B(y,m,g,E){for(var H=null,J=null,V=m,Y=m=0,jl=null;V!==null&&Y<g.length;Y++){V.index>Y?(jl=V,V=null):jl=V.sibling;var tl=b(y,V,g[Y],E);if(tl===null){V===null&&(V=jl);break}l&&V&&tl.alternate===null&&t(y,V),m=n(tl,m,Y),J===null?H=tl:J.sibling=tl,J=tl,V=jl}if(Y===g.length)return a(y,V),ll&&ja(y,Y),H;if(V===null){for(;Y<g.length;Y++)V=D(y,g[Y],E),V!==null&&(m=n(V,m,Y),J===null?H=V:J.sibling=V,J=V);return ll&&ja(y,Y),H}for(V=e(V);Y<g.length;Y++)jl=S(V,y,Y,g[Y],E),jl!==null&&(l&&jl.alternate!==null&&V.delete(jl.key===null?Y:jl.key),m=n(jl,m,Y),J===null?H=jl:J.sibling=jl,J=jl);return l&&V.forEach(function(ma){return t(y,ma)}),ll&&ja(y,Y),H}function Q(y,m,g,E){if(g==null)throw Error(f(151));for(var H=null,J=null,V=m,Y=m=0,jl=null,tl=g.next();V!==null&&!tl.done;Y++,tl=g.next()){V.index>Y?(jl=V,V=null):jl=V.sibling;var ma=b(y,V,tl.value,E);if(ma===null){V===null&&(V=jl);break}l&&V&&ma.alternate===null&&t(y,V),m=n(ma,m,Y),J===null?H=ma:J.sibling=ma,J=ma,V=jl}if(tl.done)return a(y,V),ll&&ja(y,Y),H;if(V===null){for(;!tl.done;Y++,tl=g.next())tl=D(y,tl.value,E),tl!==null&&(m=n(tl,m,Y),J===null?H=tl:J.sibling=tl,J=tl);return ll&&ja(y,Y),H}for(V=e(V);!tl.done;Y++,tl=g.next())tl=S(V,y,Y,tl.value,E),tl!==null&&(l&&tl.alternate!==null&&V.delete(tl.key===null?Y:tl.key),m=n(tl,m,Y),J===null?H=tl:J.sibling=tl,J=tl);return l&&V.forEach(function(Fh){return t(y,Fh)}),ll&&ja(y,Y),H}function vl(y,m,g,E){if(typeof g=="object"&&g!==null&&g.type===O&&g.key===null&&(g=g.props.children),typeof g=="object"&&g!==null){switch(g.$$typeof){case A:l:{for(var H=g.key;m!==null;){if(m.key===H){if(H=g.type,H===O){if(m.tag===7){a(y,m.sibling),E=u(m,g.props.children),E.return=y,y=E;break l}}else if(m.elementType===H||typeof H=="object"&&H!==null&&H.$$typeof===k&&Os(H)===m.type){a(y,m.sibling),E=u(m,g.props),tu(E,g),E.return=y,y=E;break l}a(y,m);break}else t(y,m);m=m.sibling}g.type===O?(E=Ya(g.props.children,y.mode,E,g.key),E.return=y,y=E):(E=An(g.type,g.key,g.props,null,y.mode,E),tu(E,g),E.return=y,y=E)}return i(y);case j:l:{for(H=g.key;m!==null;){if(m.key===H)if(m.tag===4&&m.stateNode.containerInfo===g.containerInfo&&m.stateNode.implementation===g.implementation){a(y,m.sibling),E=u(m,g.children||[]),E.return=y,y=E;break l}else{a(y,m);break}else t(y,m);m=m.sibling}E=Mc(g,y.mode,E),E.return=y,y=E}return i(y);case k:return H=g._init,g=H(g._payload),vl(y,m,g,E)}if(Mt(g))return B(y,m,g,E);if(Ll(g)){if(H=Ll(g),typeof H!="function")throw Error(f(150));return g=H.call(g),Q(y,m,g,E)}if(typeof g.then=="function")return vl(y,m,un(g),E);if(g.$$typeof===q)return vl(y,m,xn(y,g),E);nn(y,g)}return typeof g=="string"&&g!==""||typeof g=="number"||typeof g=="bigint"?(g=""+g,m!==null&&m.tag===6?(a(y,m.sibling),E=u(m,g),E.return=y,y=E):(a(y,m),E=zc(g,y.mode,E),E.return=y,y=E),i(y)):a(y,m)}return function(y,m,g,E){try{lu=0;var H=vl(y,m,g,E);return de=null,H}catch(V){if(V===Pe)throw V;var J=nt(29,V,null,y.mode);return J.lanes=E,J.return=y,J}finally{}}}var Ua=js(!0),Cs=js(!1),he=gt(null),cn=gt(0);function Us(l,t){l=Xt,rl(cn,l),rl(he,t),Xt=l|t.baseLanes}function Ni(){rl(cn,Xt),rl(he,he.current)}function Ri(){Xt=cn.current,zl(he),zl(cn)}var at=gt(null),xt=null;function $t(l){var t=l.alternate;rl(xl,xl.current&1),rl(at,l),xt===null&&(t===null||he.current!==null||t.memoizedState!==null)&&(xt=l)}function Ns(l){if(l.tag===22){if(rl(xl,xl.current),rl(at,l),xt===null){var t=l.alternate;t!==null&&t.memoizedState!==null&&(xt=l)}}else Ft()}function Ft(){rl(xl,xl.current),rl(at,at.current)}function Ut(l){zl(at),xt===l&&(xt=null),zl(xl)}var xl=gt(0);function fn(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 L0=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()})}},V0=s.unstable_scheduleCallback,Y0=s.unstable_NormalPriority,Tl={$$typeof:q,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function Hi(){return{controller:new L0,data:new Map,refCount:0}}function au(l){l.refCount--,l.refCount===0&&V0(Y0,function(){l.controller.abort()})}var eu=null,Bi=0,me=0,ve=null;function X0(l,t){if(eu===null){var a=eu=[];Bi=0,me=Xc(),ve={status:"pending",value:void 0,then:function(e){a.push(e)}}}return Bi++,t.then(Rs,Rs),t}function Rs(){if(--Bi===0&&eu!==null){ve!==null&&(ve.status="fulfilled");var l=eu;eu=null,me=0,ve=null;for(var t=0;t<l.length;t++)(0,l[t])()}}function G0(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 Hs=z.S;z.S=function(l,t){typeof t=="object"&&t!==null&&typeof t.then=="function"&&X0(l,t),Hs!==null&&Hs(l,t)};var Na=gt(null);function qi(){var l=Na.current;return l!==null?l:cl.pooledCache}function sn(l,t){t===null?rl(Na,Na.current):rl(Na,t.pool)}function Bs(){var l=qi();return l===null?null:{parent:Tl._currentValue,pool:l}}var Pt=0,w=null,ul=null,bl=null,rn=!1,ye=!1,Ra=!1,on=0,uu=0,ge=null,Q0=0;function gl(){throw Error(f(321))}function _i(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 Li(l,t,a,e,u,n){return Pt=n,w=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,z.H=l===null||l.memoizedState===null?Ha:It,Ra=!1,n=a(e,u),Ra=!1,ye&&(n=_s(t,a,e,u)),qs(l),n}function qs(l){z.H=Tt;var t=ul!==null&&ul.next!==null;if(Pt=0,bl=ul=w=null,rn=!1,uu=0,ge=null,t)throw Error(f(300));l===null||Dl||(l=l.dependencies,l!==null&&Sn(l)&&(Dl=!0))}function _s(l,t,a,e){w=l;var u=0;do{if(ye&&(ge=null),uu=0,ye=!1,25<=u)throw Error(f(301));if(u+=1,bl=ul=null,l.updateQueue!=null){var n=l.updateQueue;n.lastEffect=null,n.events=null,n.stores=null,n.memoCache!=null&&(n.memoCache.index=0)}z.H=Ba,n=t(a,e)}while(ye);return n}function Z0(){var l=z.H,t=l.useState()[0];return t=typeof t.then=="function"?nu(t):t,l=l.useState()[0],(ul!==null?ul.memoizedState:null)!==l&&(w.flags|=1024),t}function Vi(){var l=on!==0;return on=0,l}function Yi(l,t,a){t.updateQueue=l.updateQueue,t.flags&=-2053,l.lanes&=~a}function Xi(l){if(rn){for(l=l.memoizedState;l!==null;){var t=l.queue;t!==null&&(t.pending=null),l=l.next}rn=!1}Pt=0,bl=ul=w=null,ye=!1,uu=on=0,ge=null}function Xl(){var l={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return bl===null?w.memoizedState=bl=l:bl=bl.next=l,bl}function pl(){if(ul===null){var l=w.alternate;l=l!==null?l.memoizedState:null}else l=ul.next;var t=bl===null?w.memoizedState:bl.next;if(t!==null)bl=t,ul=l;else{if(l===null)throw w.alternate===null?Error(f(467)):Error(f(310));ul=l,l={memoizedState:ul.memoizedState,baseState:ul.baseState,baseQueue:ul.baseQueue,queue:ul.queue,next:null},bl===null?w.memoizedState=bl=l:bl=bl.next=l}return bl}var dn;dn=function(){return{lastEffect:null,events:null,stores:null,memoCache:null}};function nu(l){var t=uu;return uu+=1,ge===null&&(ge=[]),l=Ms(ge,l,t),t=w,(bl===null?t.memoizedState:bl.next)===null&&(t=t.alternate,z.H=t===null||t.memoizedState===null?Ha:It),l}function hn(l){if(l!==null&&typeof l=="object"){if(typeof l.then=="function")return nu(l);if(l.$$typeof===q)return Hl(l)}throw Error(f(438,String(l)))}function Gi(l){var t=null,a=w.updateQueue;if(a!==null&&(t=a.memoCache),t==null){var e=w.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=dn(),w.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]=zt;return t.index++,a}function Nt(l,t){return typeof t=="function"?t(l):t}function mn(l){var t=pl();return Qi(t,ul,l)}function Qi(l,t,a){var e=l.queue;if(e===null)throw Error(f(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,r=null,v=t,x=!1;do{var D=v.lane&-536870913;if(D!==v.lane?(P&D)===D:(Pt&D)===D){var b=v.revertLane;if(b===0)r!==null&&(r=r.next={lane:0,revertLane:0,action:v.action,hasEagerState:v.hasEagerState,eagerState:v.eagerState,next:null}),D===me&&(x=!0);else if((Pt&b)===b){v=v.next,b===me&&(x=!0);continue}else D={lane:0,revertLane:v.revertLane,action:v.action,hasEagerState:v.hasEagerState,eagerState:v.eagerState,next:null},r===null?(c=r=D,i=n):r=r.next=D,w.lanes|=b,fa|=b;D=v.action,Ra&&a(n,D),n=v.hasEagerState?v.eagerState:a(n,D)}else b={lane:D,revertLane:v.revertLane,action:v.action,hasEagerState:v.hasEagerState,eagerState:v.eagerState,next:null},r===null?(c=r=b,i=n):r=r.next=b,w.lanes|=D,fa|=D;v=v.next}while(v!==null&&v!==t);if(r===null?i=n:r.next=c,!Zl(n,l.memoizedState)&&(Dl=!0,x&&(a=ve,a!==null)))throw a;l.memoizedState=n,l.baseState=i,l.baseQueue=r,e.lastRenderedState=n}return u===null&&(e.lanes=0),[l.memoizedState,e.dispatch]}function Zi(l){var t=pl(),a=t.queue;if(a===null)throw Error(f(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)||(Dl=!0),t.memoizedState=n,t.baseQueue===null&&(t.baseState=n),a.lastRenderedState=n}return[n,e]}function Ls(l,t,a){var e=w,u=pl(),n=ll;if(n){if(a===void 0)throw Error(f(407));a=a()}else a=t();var i=!Zl((ul||u).memoizedState,a);if(i&&(u.memoizedState=a,Dl=!0),u=u.queue,Ji(Xs.bind(null,e,u,l),[l]),u.getSnapshot!==t||i||bl!==null&&bl.memoizedState.tag&1){if(e.flags|=2048,be(9,Ys.bind(null,e,u,a,t),{destroy:void 0},null),cl===null)throw Error(f(349));n||(Pt&60)!==0||Vs(e,t,a)}return a}function Vs(l,t,a){l.flags|=16384,l={getSnapshot:t,value:a},t=w.updateQueue,t===null?(t=dn(),w.updateQueue=t,t.stores=[l]):(a=t.stores,a===null?t.stores=[l]:a.push(l))}function Ys(l,t,a,e){t.value=a,t.getSnapshot=e,Gs(t)&&Qs(l)}function Xs(l,t,a){return a(function(){Gs(t)&&Qs(l)})}function Gs(l){var t=l.getSnapshot;l=l.value;try{var a=t();return!Zl(l,a)}catch{return!0}}function Qs(l){var t=Wt(l,2);t!==null&&_l(t,l,2)}function wi(l){var t=Xl();if(typeof l=="function"){var a=l;if(l=a(),Ra){Kt(!0);try{a()}finally{Kt(!1)}}}return t.memoizedState=t.baseState=l,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Nt,lastRenderedState:l},t}function Zs(l,t,a,e){return l.baseState=a,Qi(l,ul,typeof e=="function"?e:Nt)}function w0(l,t,a,e,u){if(gn(l))throw Error(f(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)}};z.T!==null?a(!0):n.isTransition=!1,e(n),a=t.pending,a===null?(n.next=t.pending=n,ws(t,n)):(n.next=a.next,t.pending=a.next=n)}}function ws(l,t){var a=t.action,e=t.payload,u=l.state;if(t.isTransition){var n=z.T,i={};z.T=i;try{var c=a(u,e),r=z.S;r!==null&&r(i,c),Ks(l,t,c)}catch(v){Ki(l,t,v)}finally{z.T=n}}else try{n=a(u,e),Ks(l,t,n)}catch(v){Ki(l,t,v)}}function Ks(l,t,a){a!==null&&typeof a=="object"&&typeof a.then=="function"?a.then(function(e){Js(l,t,e)},function(e){return Ki(l,t,e)}):Js(l,t,a)}function Js(l,t,a){t.status="fulfilled",t.value=a,ks(t),l.state=a,t=l.pending,t!==null&&(a=t.next,a===t?l.pending=null:(a=a.next,t.next=a,ws(l,a)))}function Ki(l,t,a){var e=l.pending;if(l.pending=null,e!==null){e=e.next;do t.status="rejected",t.reason=a,ks(t),t=t.next;while(t!==e)}l.action=null}function ks(l){l=l.listeners;for(var t=0;t<l.length;t++)(0,l[t])()}function Ws(l,t){return t}function $s(l,t){if(ll){var a=cl.formState;if(a!==null){l:{var e=w;if(ll){if(Cl){t:{for(var u=Cl,n=St;u.nodeType!==8;){if(!n){u=null;break t}if(u=mt(u.nextSibling),u===null){u=null;break t}}n=u.data,u=n==="F!"||n==="F"?u:null}if(u){Cl=mt(u.nextSibling),e=u.data==="F!";break l}}Ca(e)}e=!1}e&&(t=a[0])}}return a=Xl(),a.memoizedState=a.baseState=t,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Ws,lastRenderedState:t},a.queue=e,a=mr.bind(null,w,e),e.dispatch=a,e=wi(!1),n=Pi.bind(null,w,!1,e.queue),e=Xl(),u={state:t,dispatch:null,action:l,pending:null},e.queue=u,a=w0.bind(null,w,u,n,a),u.dispatch=a,e.memoizedState=l,[t,a,!1]}function Fs(l){var t=pl();return Ps(t,ul,l)}function Ps(l,t,a){t=Qi(l,t,Ws)[0],l=mn(Nt)[0],t=typeof t=="object"&&t!==null&&typeof t.then=="function"?nu(t):t;var e=pl(),u=e.queue,n=u.dispatch;return a!==e.memoizedState&&(w.flags|=2048,be(9,K0.bind(null,u,a),{destroy:void 0},null)),[t,n,l]}function K0(l,t){l.action=t}function Is(l){var t=pl(),a=ul;if(a!==null)return Ps(t,a,l);pl(),t=t.memoizedState,a=pl();var e=a.queue.dispatch;return a.memoizedState=l,[t,e,!1]}function be(l,t,a,e){return l={tag:l,create:t,inst:a,deps:e,next:null},t=w.updateQueue,t===null&&(t=dn(),w.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 lr(){return pl().memoizedState}function vn(l,t,a,e){var u=Xl();w.flags|=l,u.memoizedState=be(1|t,a,{destroy:void 0},e===void 0?null:e)}function yn(l,t,a,e){var u=pl();e=e===void 0?null:e;var n=u.memoizedState.inst;ul!==null&&e!==null&&_i(e,ul.memoizedState.deps)?u.memoizedState=be(t,a,n,e):(w.flags|=l,u.memoizedState=be(1|t,a,n,e))}function tr(l,t){vn(8390656,8,l,t)}function Ji(l,t){yn(2048,8,l,t)}function ar(l,t){return yn(4,2,l,t)}function er(l,t){return yn(4,4,l,t)}function ur(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 nr(l,t,a){a=a!=null?a.concat([l]):null,yn(4,4,ur.bind(null,t,l),a)}function ki(){}function ir(l,t){var a=pl();t=t===void 0?null:t;var e=a.memoizedState;return t!==null&&_i(t,e[1])?e[0]:(a.memoizedState=[l,t],l)}function cr(l,t){var a=pl();t=t===void 0?null:t;var e=a.memoizedState;if(t!==null&&_i(t,e[1]))return e[0];if(e=l(),Ra){Kt(!0);try{l()}finally{Kt(!1)}}return a.memoizedState=[e,t],e}function Wi(l,t,a){return a===void 0||(Pt&1073741824)!==0?l.memoizedState=t:(l.memoizedState=a,l=so(),w.lanes|=l,fa|=l,a)}function fr(l,t,a,e){return Zl(a,t)?a:he.current!==null?(l=Wi(l,a,e),Zl(l,t)||(Dl=!0),l):(Pt&42)===0?(Dl=!0,l.memoizedState=a):(l=so(),w.lanes|=l,fa|=l,t)}function sr(l,t,a,e,u){var n=I.p;I.p=n!==0&&8>n?n:8;var i=z.T,c={};z.T=c,Pi(l,!1,t,a);try{var r=u(),v=z.S;if(v!==null&&v(c,r),r!==null&&typeof r=="object"&&typeof r.then=="function"){var x=G0(r,e);iu(l,t,x,kl(l))}else iu(l,t,e,kl(l))}catch(D){iu(l,t,{then:function(){},status:"rejected",reason:D},kl())}finally{I.p=n,z.T=i}}function J0(){}function $i(l,t,a,e){if(l.tag!==5)throw Error(f(476));var u=rr(l).queue;sr(l,u,t,Wl,a===null?J0:function(){return or(l),a(e)})}function rr(l){var t=l.memoizedState;if(t!==null)return t;t={memoizedState:Wl,baseState:Wl,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Nt,lastRenderedState:Wl},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 or(l){var t=rr(l).next.queue;iu(l,t,{},kl())}function Fi(){return Hl(Mu)}function dr(){return pl().memoizedState}function hr(){return pl().memoizedState}function k0(l){for(var t=l.return;t!==null;){switch(t.tag){case 24:case 3:var a=kl();l=aa(a);var e=ea(t,l,a);e!==null&&(_l(e,t,a),su(e,t,a)),t={cache:Hi()},l.payload=t;return}t=t.return}}function W0(l,t,a){var e=kl();a={lane:e,revertLane:0,action:a,hasEagerState:!1,eagerState:null,next:null},gn(l)?vr(t,a):(a=Di(l,t,a,e),a!==null&&(_l(a,l,e),yr(a,t,e)))}function mr(l,t,a){var e=kl();iu(l,t,a,e)}function iu(l,t,a,e){var u={lane:e,revertLane:0,action:a,hasEagerState:!1,eagerState:null,next:null};if(gn(l))vr(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 Iu(l,t,u,0),cl===null&&Pu(),!1}catch{}finally{}if(a=Di(l,t,u,e),a!==null)return _l(a,l,e),yr(a,t,e),!0}return!1}function Pi(l,t,a,e){if(e={lane:2,revertLane:Xc(),action:e,hasEagerState:!1,eagerState:null,next:null},gn(l)){if(t)throw Error(f(479))}else t=Di(l,a,e,2),t!==null&&_l(t,l,2)}function gn(l){var t=l.alternate;return l===w||t!==null&&t===w}function vr(l,t){ye=rn=!0;var a=l.pending;a===null?t.next=t:(t.next=a.next,a.next=t),l.pending=t}function yr(l,t,a){if((a&4194176)!==0){var e=t.lanes;e&=l.pendingLanes,a|=e,t.lanes=a,Df(l,a)}}var Tt={readContext:Hl,use:hn,useCallback:gl,useContext:gl,useEffect:gl,useImperativeHandle:gl,useLayoutEffect:gl,useInsertionEffect:gl,useMemo:gl,useReducer:gl,useRef:gl,useState:gl,useDebugValue:gl,useDeferredValue:gl,useTransition:gl,useSyncExternalStore:gl,useId:gl};Tt.useCacheRefresh=gl,Tt.useMemoCache=gl,Tt.useHostTransitionStatus=gl,Tt.useFormState=gl,Tt.useActionState=gl,Tt.useOptimistic=gl;var Ha={readContext:Hl,use:hn,useCallback:function(l,t){return Xl().memoizedState=[l,t===void 0?null:t],l},useContext:Hl,useEffect:tr,useImperativeHandle:function(l,t,a){a=a!=null?a.concat([l]):null,vn(4194308,4,ur.bind(null,t,l),a)},useLayoutEffect:function(l,t){return vn(4194308,4,l,t)},useInsertionEffect:function(l,t){vn(4,2,l,t)},useMemo:function(l,t){var a=Xl();t=t===void 0?null:t;var e=l();if(Ra){Kt(!0);try{l()}finally{Kt(!1)}}return a.memoizedState=[e,t],e},useReducer:function(l,t,a){var e=Xl();if(a!==void 0){var u=a(t);if(Ra){Kt(!0);try{a(t)}finally{Kt(!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=W0.bind(null,w,l),[e.memoizedState,l]},useRef:function(l){var t=Xl();return l={current:l},t.memoizedState=l},useState:function(l){l=wi(l);var t=l.queue,a=mr.bind(null,w,t);return t.dispatch=a,[l.memoizedState,a]},useDebugValue:ki,useDeferredValue:function(l,t){var a=Xl();return Wi(a,l,t)},useTransition:function(){var l=wi(!1);return l=sr.bind(null,w,l.queue,!0,!1),Xl().memoizedState=l,[!1,l]},useSyncExternalStore:function(l,t,a){var e=w,u=Xl();if(ll){if(a===void 0)throw Error(f(407));a=a()}else{if(a=t(),cl===null)throw Error(f(349));(P&60)!==0||Vs(e,t,a)}u.memoizedState=a;var n={value:a,getSnapshot:t};return u.queue=n,tr(Xs.bind(null,e,n,l),[l]),e.flags|=2048,be(9,Ys.bind(null,e,n,a,t),{destroy:void 0},null),a},useId:function(){var l=Xl(),t=cl.identifierPrefix;if(ll){var a=Ct,e=jt;a=(e&~(1<<32-Ql(e)-1)).toString(32)+a,t=":"+t+"R"+a,a=on++,0<a&&(t+="H"+a.toString(32)),t+=":"}else a=Q0++,t=":"+t+"r"+a.toString(32)+":";return l.memoizedState=t},useCacheRefresh:function(){return Xl().memoizedState=k0.bind(null,w)}};Ha.useMemoCache=Gi,Ha.useHostTransitionStatus=Fi,Ha.useFormState=$s,Ha.useActionState=$s,Ha.useOptimistic=function(l){var t=Xl();t.memoizedState=t.baseState=l;var a={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=a,t=Pi.bind(null,w,!0,a),a.dispatch=t,[l,t]};var It={readContext:Hl,use:hn,useCallback:ir,useContext:Hl,useEffect:Ji,useImperativeHandle:nr,useInsertionEffect:ar,useLayoutEffect:er,useMemo:cr,useReducer:mn,useRef:lr,useState:function(){return mn(Nt)},useDebugValue:ki,useDeferredValue:function(l,t){var a=pl();return fr(a,ul.memoizedState,l,t)},useTransition:function(){var l=mn(Nt)[0],t=pl().memoizedState;return[typeof l=="boolean"?l:nu(l),t]},useSyncExternalStore:Ls,useId:dr};It.useCacheRefresh=hr,It.useMemoCache=Gi,It.useHostTransitionStatus=Fi,It.useFormState=Fs,It.useActionState=Fs,It.useOptimistic=function(l,t){var a=pl();return Zs(a,ul,l,t)};var Ba={readContext:Hl,use:hn,useCallback:ir,useContext:Hl,useEffect:Ji,useImperativeHandle:nr,useInsertionEffect:ar,useLayoutEffect:er,useMemo:cr,useReducer:Zi,useRef:lr,useState:function(){return Zi(Nt)},useDebugValue:ki,useDeferredValue:function(l,t){var a=pl();return ul===null?Wi(a,l,t):fr(a,ul.memoizedState,l,t)},useTransition:function(){var l=Zi(Nt)[0],t=pl().memoizedState;return[typeof l=="boolean"?l:nu(l),t]},useSyncExternalStore:Ls,useId:dr};Ba.useCacheRefresh=hr,Ba.useMemoCache=Gi,Ba.useHostTransitionStatus=Fi,Ba.useFormState=Is,Ba.useActionState=Is,Ba.useOptimistic=function(l,t){var a=pl();return ul!==null?Zs(a,ul,l,t):(a.baseState=l,[l,a.queue.dispatch])};function Ii(l,t,a,e){t=l.memoizedState,a=a(e,t),a=a==null?t:L({},t,a),l.memoizedState=a,l.lanes===0&&(l.updateQueue.baseState=a)}var lc={isMounted:function(l){return(l=l._reactInternals)?G(l)===l:!1},enqueueSetState:function(l,t,a){l=l._reactInternals;var e=kl(),u=aa(e);u.payload=t,a!=null&&(u.callback=a),t=ea(l,u,e),t!==null&&(_l(t,l,e),su(t,l,e))},enqueueReplaceState:function(l,t,a){l=l._reactInternals;var e=kl(),u=aa(e);u.tag=1,u.payload=t,a!=null&&(u.callback=a),t=ea(l,u,e),t!==null&&(_l(t,l,e),su(t,l,e))},enqueueForceUpdate:function(l,t){l=l._reactInternals;var a=kl(),e=aa(a);e.tag=2,t!=null&&(e.callback=t),t=ea(l,e,a),t!==null&&(_l(t,l,a),su(t,l,a))}};function gr(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?!Je(a,e)||!Je(u,n):!0}function br(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&&lc.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=L({},a));for(var u in l)a[u]===void 0&&(a[u]=l[u])}return a}var bn=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 pr(l){bn(l)}function Sr(l){console.error(l)}function xr(l){bn(l)}function pn(l,t){try{var a=l.onUncaughtError;a(t.value,{componentStack:t.stack})}catch(e){setTimeout(function(){throw e})}}function Tr(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 tc(l,t,a){return a=aa(a),a.tag=3,a.payload={element:null},a.callback=function(){pn(l,t)},a}function Er(l){return l=aa(l),l.tag=3,l}function Ar(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(){Tr(t,a,e)}}var i=a.stateNode;i!==null&&typeof i.componentDidCatch=="function"&&(l.callback=function(){Tr(t,a,e),typeof u!="function"&&(sa===null?sa=new Set([this]):sa.add(this));var c=e.stack;this.componentDidCatch(e.value,{componentStack:c!==null?c:""})})}function $0(l,t,a,e,u){if(a.flags|=32768,e!==null&&typeof e=="object"&&typeof e.then=="function"){if(t=a.alternate,t!==null&&fu(t,a,u,!0),a=at.current,a!==null){switch(a.tag){case 13:return xt===null?qc():a.alternate===null&&ml===0&&(ml=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),Lc(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)),Lc(l,e,u)),!1}throw Error(f(435,a.tag))}return Lc(l,e,u),qc(),!1}if(ll)return t=at.current,t!==null?((t.flags&65536)===0&&(t.flags|=256),t.flags|=65536,t.lanes=u,e!==Ci&&(l=Error(f(422),{cause:e}),Fe(Il(l,a)))):(e!==Ci&&(t=Error(f(423),{cause:e}),Fe(Il(t,a))),l=l.current.alternate,l.flags|=65536,u&=-u,l.lanes|=u,e=Il(e,a),u=tc(l.stateNode,e,u),yc(l,u),ml!==4&&(ml=2)),!1;var n=Error(f(520),{cause:e});if(n=Il(n,a),gu===null?gu=[n]:gu.push(n),ml!==4&&(ml=2),t===null)return!0;e=Il(e,a),a=t;do{switch(a.tag){case 3:return a.flags|=65536,l=u&-u,a.lanes|=l,l=tc(a.stateNode,e,l),yc(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"&&(sa===null||!sa.has(n))))return a.flags|=65536,u&=-u,a.lanes|=u,u=Er(u),Ar(u,l,a,e),yc(a,u),!1}a=a.return}while(a!==null);return!1}var zr=Error(f(461)),Dl=!1;function Ul(l,t,a,e){t.child=l===null?Cs(t,null,a,e):Ua(t,l.child,a,e)}function Mr(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 La(t),e=Li(l,t,a,i,n,u),c=Vi(),l!==null&&!Dl?(Yi(l,t,u),Rt(l,t,u)):(ll&&c&&Oi(t),t.flags|=1,Ul(l,t,e,u),t.child)}function Dr(l,t,a,e,u){if(l===null){var n=a.type;return typeof n=="function"&&!Ac(n)&&n.defaultProps===void 0&&a.compare===null?(t.tag=15,t.type=n,Or(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,!rc(l,u)){var i=n.memoizedProps;if(a=a.compare,a=a!==null?a:Je,a(i,e)&&l.ref===t.ref)return Rt(l,t,u)}return t.flags|=1,l=ca(n,e),l.ref=t.ref,l.return=t,t.child=l}function Or(l,t,a,e,u){if(l!==null){var n=l.memoizedProps;if(Je(n,e)&&l.ref===t.ref)if(Dl=!1,t.pendingProps=e=n,rc(l,u))(l.flags&131072)!==0&&(Dl=!0);else return t.lanes=l.lanes,Rt(l,t,u)}return ac(l,t,a,e,u)}function jr(l,t,a){var e=t.pendingProps,u=e.children,n=(t.stateNode._pendingVisibility&2)!==0,i=l!==null?l.memoizedState:null;if(cu(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 Cr(l,t,e,a)}if((a&536870912)!==0)t.memoizedState={baseLanes:0,cachePool:null},l!==null&&sn(t,i!==null?i.cachePool:null),i!==null?Us(t,i):Ni(),Ns(t);else return t.lanes=t.childLanes=536870912,Cr(l,t,i!==null?i.baseLanes|a:a,a)}else i!==null?(sn(t,i.cachePool),Us(t,i),Ft(),t.memoizedState=null):(l!==null&&sn(t,null),Ni(),Ft());return Ul(l,t,u,a),t.child}function Cr(l,t,a,e){var u=qi();return u=u===null?null:{parent:Tl._currentValue,pool:u},t.memoizedState={baseLanes:a,cachePool:u},l!==null&&sn(t,null),Ni(),Ns(t),l!==null&&fu(l,t,e,!0),null}function cu(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(f(284));(l===null||l.ref!==a)&&(t.flags|=2097664)}}function ac(l,t,a,e,u){return La(t),a=Li(l,t,a,e,void 0,u),e=Vi(),l!==null&&!Dl?(Yi(l,t,u),Rt(l,t,u)):(ll&&e&&Oi(t),t.flags|=1,Ul(l,t,a,u),t.child)}function Ur(l,t,a,e,u,n){return La(t),t.updateQueue=null,a=_s(t,e,a,u),qs(l),e=Vi(),l!==null&&!Dl?(Yi(l,t,n),Rt(l,t,n)):(ll&&e&&Oi(t),t.flags|=1,Ul(l,t,a,n),t.child)}function Nr(l,t,a,e,u){if(La(t),t.stateNode===null){var n=se,i=a.contextType;typeof i=="object"&&i!==null&&(n=Hl(i)),n=new a(e,n),t.memoizedState=n.state!==null&&n.state!==void 0?n.state:null,n.updater=lc,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?Hl(i):se,n.state=t.memoizedState,i=a.getDerivedStateFromProps,typeof i=="function"&&(Ii(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&&lc.enqueueReplaceState(n,n.state,null),ou(t,e,n,u),ru(),n.state=t.memoizedState),typeof n.componentDidMount=="function"&&(t.flags|=4194308),e=!0}else if(l===null){n=t.stateNode;var c=t.memoizedProps,r=qa(a,c);n.props=r;var v=n.context,x=a.contextType;i=se,typeof x=="object"&&x!==null&&(i=Hl(x));var D=a.getDerivedStateFromProps;x=typeof D=="function"||typeof n.getSnapshotBeforeUpdate=="function",c=t.pendingProps!==c,x||typeof n.UNSAFE_componentWillReceiveProps!="function"&&typeof n.componentWillReceiveProps!="function"||(c||v!==i)&&br(t,n,e,i),ta=!1;var b=t.memoizedState;n.state=b,ou(t,e,n,u),ru(),v=t.memoizedState,c||b!==v||ta?(typeof D=="function"&&(Ii(t,a,D,e),v=t.memoizedState),(r=ta||gr(t,a,r,e,b,v,i))?(x||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=v),n.props=e,n.state=v,n.context=i,e=r):(typeof n.componentDidMount=="function"&&(t.flags|=4194308),e=!1)}else{n=t.stateNode,vc(l,t),i=t.memoizedProps,x=qa(a,i),n.props=x,D=t.pendingProps,b=n.context,v=a.contextType,r=se,typeof v=="object"&&v!==null&&(r=Hl(v)),c=a.getDerivedStateFromProps,(v=typeof c=="function"||typeof n.getSnapshotBeforeUpdate=="function")||typeof n.UNSAFE_componentWillReceiveProps!="function"&&typeof n.componentWillReceiveProps!="function"||(i!==D||b!==r)&&br(t,n,e,r),ta=!1,b=t.memoizedState,n.state=b,ou(t,e,n,u),ru();var S=t.memoizedState;i!==D||b!==S||ta||l!==null&&l.dependencies!==null&&Sn(l.dependencies)?(typeof c=="function"&&(Ii(t,a,c,e),S=t.memoizedState),(x=ta||gr(t,a,x,e,b,S,r)||l!==null&&l.dependencies!==null&&Sn(l.dependencies))?(v||typeof n.UNSAFE_componentWillUpdate!="function"&&typeof n.componentWillUpdate!="function"||(typeof n.componentWillUpdate=="function"&&n.componentWillUpdate(e,S,r),typeof n.UNSAFE_componentWillUpdate=="function"&&n.UNSAFE_componentWillUpdate(e,S,r)),typeof n.componentDidUpdate=="function"&&(t.flags|=4),typeof n.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof n.componentDidUpdate!="function"||i===l.memoizedProps&&b===l.memoizedState||(t.flags|=4),typeof n.getSnapshotBeforeUpdate!="function"||i===l.memoizedProps&&b===l.memoizedState||(t.flags|=1024),t.memoizedProps=e,t.memoizedState=S),n.props=e,n.state=S,n.context=r,e=x):(typeof n.componentDidUpdate!="function"||i===l.memoizedProps&&b===l.memoizedState||(t.flags|=4),typeof n.getSnapshotBeforeUpdate!="function"||i===l.memoizedProps&&b===l.memoizedState||(t.flags|=1024),e=!1)}return n=e,cu(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)):Ul(l,t,a,u),t.memoizedState=n.state,l=t.child):l=Rt(l,t,u),l}function Rr(l,t,a,e){return $e(),t.flags|=256,Ul(l,t,a,e),t.child}var ec={dehydrated:null,treeContext:null,retryLane:0};function uc(l){return{baseLanes:l,cachePool:Bs()}}function nc(l,t,a){return l=l!==null?l.childLanes&~a:0,t&&(l|=it),l}function Hr(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:(xl.current&2)!==0),i&&(u=!0,t.flags&=-129),i=(t.flags&32)!==0,t.flags&=-33,l===null){if(ll){if(u?$t(t):Ft(),ll){var c=Cl,r;if(r=c){l:{for(r=c,c=St;r.nodeType!==8;){if(!c){c=null;break l}if(r=mt(r.nextSibling),r===null){c=null;break l}}c=r}c!==null?(t.memoizedState={dehydrated:c,treeContext:Oa!==null?{id:jt,overflow:Ct}:null,retryLane:536870912},r=nt(18,null,null,0),r.stateNode=c,r.return=t,t.child=r,ql=t,Cl=null,r=!0):r=!1}r||Ca(t)}if(c=t.memoizedState,c!==null&&(c=c.dehydrated,c!==null))return c.data==="$!"?t.lanes=16:t.lanes=536870912,null;Ut(t)}return c=e.children,e=e.fallback,u?(Ft(),u=t.mode,c=cc({mode:"hidden",children:c},u),e=Ya(e,u,a,null),c.return=t,e.return=t,c.sibling=e,t.child=c,u=t.child,u.memoizedState=uc(a),u.childLanes=nc(l,i,a),t.memoizedState=ec,e):($t(t),ic(t,c))}if(r=l.memoizedState,r!==null&&(c=r.dehydrated,c!==null)){if(n)t.flags&256?($t(t),t.flags&=-257,t=fc(l,t,a)):t.memoizedState!==null?(Ft(),t.child=l.child,t.flags|=128,t=null):(Ft(),u=e.fallback,c=t.mode,e=cc({mode:"visible",children:e.children},c),u=Ya(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=uc(a),e.childLanes=nc(l,i,a),t.memoizedState=ec,t=u);else if($t(t),c.data==="$!"){if(i=c.nextSibling&&c.nextSibling.dataset,i)var v=i.dgst;i=v,e=Error(f(419)),e.stack="",e.digest=i,Fe({value:e,source:null,stack:null}),t=fc(l,t,a)}else if(Dl||fu(l,t,a,!1),i=(a&l.childLanes)!==0,Dl||i){if(i=cl,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!==r.retryLane)throw r.retryLane=e,Wt(l,e),_l(i,l,e),zr}c.data==="$?"||qc(),t=fc(l,t,a)}else c.data==="$?"?(t.flags|=128,t.child=l.child,t=oh.bind(null,l),c._reactRetry=t,t=null):(l=r.treeContext,Cl=mt(c.nextSibling),ql=t,ll=!0,dt=null,St=!1,l!==null&&(lt[tt++]=jt,lt[tt++]=Ct,lt[tt++]=Oa,jt=l.id,Ct=l.overflow,Oa=t),t=ic(t,e.children),t.flags|=4096);return t}return u?(Ft(),u=e.fallback,c=t.mode,r=l.child,v=r.sibling,e=ca(r,{mode:"hidden",children:e.children}),e.subtreeFlags=r.subtreeFlags&31457280,v!==null?u=ca(v,u):(u=Ya(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=uc(a):(r=c.cachePool,r!==null?(v=Tl._currentValue,r=r.parent!==v?{parent:v,pool:v}:r):r=Bs(),c={baseLanes:c.baseLanes|a,cachePool:r}),u.memoizedState=c,u.childLanes=nc(l,i,a),t.memoizedState=ec,e):($t(t),a=l.child,l=a.sibling,a=ca(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 ic(l,t){return t=cc({mode:"visible",children:t},l.mode),t.return=l,l.child=t}function cc(l,t){return io(l,t,0,null)}function fc(l,t,a){return Ua(t,l.child,null,a),l=ic(t,t.pendingProps.children),l.flags|=2,t.memoizedState=null,l}function Br(l,t,a){l.lanes|=t;var e=l.alternate;e!==null&&(e.lanes|=t),dc(l.return,t,a)}function sc(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 qr(l,t,a){var e=t.pendingProps,u=e.revealOrder,n=e.tail;if(Ul(l,t,e.children,a),e=xl.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&&Br(l,a,t);else if(l.tag===19)Br(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(rl(xl,e),u){case"forwards":for(a=t.child,u=null;a!==null;)l=a.alternate,l!==null&&fn(l)===null&&(u=a),a=a.sibling;a=u,a===null?(u=t.child,t.child=null):(u=a.sibling,a.sibling=null),sc(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&&fn(l)===null){t.child=u;break}l=u.sibling,u.sibling=a,a=u,u=l}sc(t,!0,a,null,n);break;case"together":sc(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),fa|=t.lanes,(a&t.childLanes)===0)if(l!==null){if(fu(l,t,a,!1),(a&t.childLanes)===0)return null}else return null;if(l!==null&&t.child!==l.child)throw Error(f(153));if(t.child!==null){for(l=t.child,a=ca(l,l.pendingProps),t.child=a,a.return=t;l.sibling!==null;)l=l.sibling,a=a.sibling=ca(l,l.pendingProps),a.return=t;a.sibling=null}return t.child}function rc(l,t){return(l.lanes&t)!==0?!0:(l=l.dependencies,!!(l!==null&&Sn(l)))}function F0(l,t,a){switch(t.tag){case 3:Bu(t,t.stateNode.containerInfo),la(t,Tl,l.memoizedState.cache),$e();break;case 27:case 5:li(t);break;case 4:Bu(t,t.stateNode.containerInfo);break;case 10:la(t,t.type,t.memoizedProps.value);break;case 13:var e=t.memoizedState;if(e!==null)return e.dehydrated!==null?($t(t),t.flags|=128,null):(a&t.child.childLanes)!==0?Hr(l,t,a):($t(t),l=Rt(l,t,a),l!==null?l.sibling:null);$t(t);break;case 19:var u=(l.flags&128)!==0;if(e=(a&t.childLanes)!==0,e||(fu(l,t,a,!1),e=(a&t.childLanes)!==0),u){if(e)return qr(l,t,a);t.flags|=128}if(u=t.memoizedState,u!==null&&(u.rendering=null,u.tail=null,u.lastEffect=null),rl(xl,xl.current),e)break;return null;case 22:case 23:return t.lanes=0,jr(l,t,a);case 24:la(t,Tl,l.memoizedState.cache)}return Rt(l,t,a)}function _r(l,t,a){if(l!==null)if(l.memoizedProps!==t.pendingProps)Dl=!0;else{if(!rc(l,a)&&(t.flags&128)===0)return Dl=!1,F0(l,t,a);Dl=(l.flags&131072)!==0}else Dl=!1,ll&&(t.flags&1048576)!==0&&xs(t,an,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")Ac(e)?(l=qa(e,l),t.tag=1,t=Nr(null,t,e,l,a)):(t.tag=0,t=ac(null,t,e,l,a));else{if(e!=null){if(u=e.$$typeof,u===_){t.tag=11,t=Mr(null,t,e,l,a);break l}else if(u===El){t.tag=14,t=Dr(null,t,e,l,a);break l}}throw t=ga(e)||e,Error(f(306,t,""))}}return t;case 0:return ac(l,t,t.type,t.pendingProps,a);case 1:return e=t.type,u=qa(e,t.pendingProps),Nr(l,t,e,u,a);case 3:l:{if(Bu(t,t.stateNode.containerInfo),l===null)throw Error(f(387));var n=t.pendingProps;u=t.memoizedState,e=u.element,vc(l,t),ou(t,n,null,a);var i=t.memoizedState;if(n=i.cache,la(t,Tl,n),n!==u.cache&&hc(t,[Tl],a,!0),ru(),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=Rr(l,t,n,a);break l}else if(n!==e){e=Il(Error(f(424)),t),Fe(e),t=Rr(l,t,n,a);break l}else for(Cl=mt(t.stateNode.containerInfo.firstChild),ql=t,ll=!0,dt=null,St=!0,a=Cs(t,null,n,a),t.child=a;a;)a.flags=a.flags&-3|4096,a=a.sibling;else{if($e(),n===e){t=Rt(l,t,a);break l}Ul(l,t,n,a)}t=t.child}return t;case 26:return cu(l,t),l===null?(a=Xo(t.type,null,t.pendingProps,null))?t.memoizedState=a:ll||(a=t.type,l=t.pendingProps,e=qn(wt.current).createElement(a),e[Rl]=t,e[Vl]=l,Nl(e,a,l),Ml(e),t.stateNode=e):t.memoizedState=Xo(t.type,l.memoizedProps,t.pendingProps,l.memoizedState),null;case 27:return li(t),l===null&&ll&&(e=t.stateNode=Lo(t.type,t.pendingProps,wt.current),ql=t,St=!0,Cl=mt(e.firstChild)),e=t.pendingProps.children,l!==null||ll?Ul(l,t,e,a):t.child=Ua(t,null,e,a),cu(l,t),t.child;case 5:return l===null&&ll&&((u=e=Cl)&&(e=Dh(e,t.type,t.pendingProps,St),e!==null?(t.stateNode=e,ql=t,Cl=mt(e.firstChild),St=!1,u=!0):u=!1),u||Ca(t)),li(t),u=t.type,n=t.pendingProps,i=l!==null?l.memoizedProps:null,e=n.children,$c(u,n)?e=null:i!==null&&$c(u,i)&&(t.flags|=32),t.memoizedState!==null&&(u=Li(l,t,Z0,null,null,a),Mu._currentValue=u),cu(l,t),Ul(l,t,e,a),t.child;case 6:return l===null&&ll&&((l=a=Cl)&&(a=Oh(a,t.pendingProps,St),a!==null?(t.stateNode=a,ql=t,Cl=null,l=!0):l=!1),l||Ca(t)),null;case 13:return Hr(l,t,a);case 4:return Bu(t,t.stateNode.containerInfo),e=t.pendingProps,l===null?t.child=Ua(t,null,e,a):Ul(l,t,e,a),t.child;case 11:return Mr(l,t,t.type,t.pendingProps,a);case 7:return Ul(l,t,t.pendingProps,a),t.child;case 8:return Ul(l,t,t.pendingProps.children,a),t.child;case 12:return Ul(l,t,t.pendingProps.children,a),t.child;case 10:return e=t.pendingProps,la(t,t.type,e.value),Ul(l,t,e.children,a),t.child;case 9:return u=t.type._context,e=t.pendingProps.children,La(t),u=Hl(u),e=e(u),t.flags|=1,Ul(l,t,e,a),t.child;case 14:return Dr(l,t,t.type,t.pendingProps,a);case 15:return Or(l,t,t.type,t.pendingProps,a);case 19:return qr(l,t,a);case 22:return jr(l,t,a);case 24:return La(t),e=Hl(Tl),l===null?(u=qi(),u===null&&(u=cl,n=Hi(),u.pooledCache=n,n.refCount++,n!==null&&(u.pooledCacheLanes|=a),u=n),t.memoizedState={parent:e,cache:u},mc(t),la(t,Tl,u)):((l.lanes&a)!==0&&(vc(l,t),ou(t,null,null,a),ru()),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),la(t,Tl,e)):(e=n.cache,la(t,Tl,e),e!==u.cache&&hc(t,[Tl],a,!0))),Ul(l,t,t.pendingProps.children,a),t.child;case 29:throw t.pendingProps}throw Error(f(156,t.tag))}var oc=gt(null),_a=null,Ht=null;function la(l,t,a){rl(oc,t._currentValue),t._currentValue=a}function Bt(l){l._currentValue=oc.current,zl(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 hc(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 r=0;r<t.length;r++)if(c.context===t[r]){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(f(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 fu(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(f(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===Hu.current){if(i=u.alternate,i===null)throw Error(f(387));i.memoizedState.memoizedState!==u.memoizedState.memoizedState&&(l!==null?l.push(Mu):l=[Mu])}u=u.return}l!==null&&hc(t,l,a,e),t.flags|=262144}function Sn(l){for(l=l.firstContext;l!==null;){if(!Zl(l.context._currentValue,l.memoizedValue))return!0;l=l.next}return!1}function La(l){_a=l,Ht=null,l=l.dependencies,l!==null&&(l.firstContext=null)}function Hl(l){return Lr(_a,l)}function xn(l,t){return _a===null&&La(l),Lr(l,t)}function Lr(l,t){var a=t._currentValue;if(t={context:t,memoizedValue:a,next:null},Ht===null){if(l===null)throw Error(f(308));Ht=t,l.dependencies={lanes:0,firstContext:t},l.flags|=524288}else Ht=Ht.next=t;return a}var ta=!1;function mc(l){l.updateQueue={baseState:l.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function vc(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 aa(l){return{lane:l,tag:0,payload:null,callback:null,next:null}}function ea(l,t,a){var e=l.updateQueue;if(e===null)return null;if(e=e.shared,(dl&2)!==0){var u=e.pending;return u===null?t.next=t:(t.next=u.next,u.next=t),e.pending=t,t=ln(l),ps(l,null,a),t}return Iu(l,e,t,a),ln(l)}function su(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,Df(l,a)}}function yc(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 gc=!1;function ru(){if(gc){var l=ve;if(l!==null)throw l}}function ou(l,t,a,e){gc=!1;var u=l.updateQueue;ta=!1;var n=u.firstBaseUpdate,i=u.lastBaseUpdate,c=u.shared.pending;if(c!==null){u.shared.pending=null;var r=c,v=r.next;r.next=null,i===null?n=v:i.next=v,i=r;var x=l.alternate;x!==null&&(x=x.updateQueue,c=x.lastBaseUpdate,c!==i&&(c===null?x.firstBaseUpdate=v:c.next=v,x.lastBaseUpdate=r))}if(n!==null){var D=u.baseState;i=0,x=v=r=null,c=n;do{var b=c.lane&-536870913,S=b!==c.lane;if(S?(P&b)===b:(e&b)===b){b!==0&&b===me&&(gc=!0),x!==null&&(x=x.next={lane:0,tag:c.tag,payload:c.payload,callback:null,next:null});l:{var B=l,Q=c;b=t;var vl=a;switch(Q.tag){case 1:if(B=Q.payload,typeof B=="function"){D=B.call(vl,D,b);break l}D=B;break l;case 3:B.flags=B.flags&-65537|128;case 0:if(B=Q.payload,b=typeof B=="function"?B.call(vl,D,b):B,b==null)break l;D=L({},D,b);break l;case 2:ta=!0}}b=c.callback,b!==null&&(l.flags|=64,S&&(l.flags|=8192),S=u.callbacks,S===null?u.callbacks=[b]:S.push(b))}else S={lane:b,tag:c.tag,payload:c.payload,callback:c.callback,next:null},x===null?(v=x=S,r=D):x=x.next=S,i|=b;if(c=c.next,c===null){if(c=u.shared.pending,c===null)break;S=c,c=S.next,S.next=null,u.lastBaseUpdate=S,u.shared.pending=null}}while(!0);x===null&&(r=D),u.baseState=r,u.firstBaseUpdate=v,u.lastBaseUpdate=x,n===null&&(u.shared.lanes=0),fa|=i,l.lanes=i,l.memoizedState=D}}function Vr(l,t){if(typeof l!="function")throw Error(f(191,l));l.call(t)}function Yr(l,t){var a=l.callbacks;if(a!==null)for(l.callbacks=null,l=0;l<a.length;l++)Vr(a[l],t)}function du(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){il(t,t.return,c)}}function ua(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 r=a;try{c()}catch(v){il(u,r,v)}}}e=e.next}while(e!==n)}}catch(v){il(t,t.return,v)}}function Xr(l){var t=l.updateQueue;if(t!==null){var a=l.stateNode;try{Yr(t,a)}catch(e){il(l,l.return,e)}}}function Gr(l,t,a){a.props=qa(l.type,l.memoizedProps),a.state=l.memoizedState;try{a.componentWillUnmount()}catch(e){il(l,t,e)}}function Va(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){il(l,t,n)}}function wl(l,t){var a=l.ref,e=l.refCleanup;if(a!==null)if(typeof e=="function")try{e()}catch(u){il(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){il(l,t,u)}else a.current=null}function Qr(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){il(l,l.return,u)}}function Zr(l,t,a){try{var e=l.stateNode;Th(e,l.type,a,t),e[Vl]=t}catch(u){il(l,l.return,u)}}function wr(l){return l.tag===5||l.tag===3||l.tag===26||l.tag===27||l.tag===4}function bc(l){l:for(;;){for(;l.sibling===null;){if(l.return===null||wr(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 pc(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=Bn));else if(e!==4&&e!==27&&(l=l.child,l!==null))for(pc(l,t,a),l=l.sibling;l!==null;)pc(l,t,a),l=l.sibling}function Tn(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(Tn(l,t,a),l=l.sibling;l!==null;)Tn(l,t,a),l=l.sibling}var qt=!1,hl=!1,Sc=!1,Kr=typeof WeakSet=="function"?WeakSet:Set,Ol=null,Jr=!1;function P0(l,t){if(l=l.containerInfo,kc=Gn,l=rs(l),Ti(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,r=-1,v=0,x=0,D=l,b=null;t:for(;;){for(var S;D!==a||u!==0&&D.nodeType!==3||(c=i+u),D!==n||e!==0&&D.nodeType!==3||(r=i+e),D.nodeType===3&&(i+=D.nodeValue.length),(S=D.firstChild)!==null;)b=D,D=S;for(;;){if(D===l)break t;if(b===a&&++v===u&&(c=i),b===n&&++x===e&&(r=i),(S=D.nextSibling)!==null)break;D=b,b=D.parentNode}D=S}a=c===-1||r===-1?null:{start:c,end:r}}else a=null}a=a||{start:0,end:0}}else a=null;for(Wc={focusedElem:l,selectionRange:a},Gn=!1,Ol=t;Ol!==null;)if(t=Ol,l=t.child,(t.subtreeFlags&1028)!==0&&l!==null)l.return=t,Ol=l;else for(;Ol!==null;){switch(t=Ol,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 B=qa(a.type,u,a.elementType===a.type);l=e.getSnapshotBeforeUpdate(B,n),e.__reactInternalSnapshotBeforeUpdate=l}catch(Q){il(a,a.return,Q)}}break;case 3:if((l&1024)!==0){if(l=t.stateNode.containerInfo,a=l.nodeType,a===9)Ic(l);else if(a===1)switch(l.nodeName){case"HEAD":case"HTML":case"BODY":Ic(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(f(163))}if(l=t.sibling,l!==null){l.return=t.return,Ol=l;break}Ol=t.return}return B=Jr,Jr=!1,B}function kr(l,t,a){var e=a.flags;switch(a.tag){case 0:case 11:case 15:Lt(l,a),e&4&&du(5,a);break;case 1:if(Lt(l,a),e&4)if(l=a.stateNode,t===null)try{l.componentDidMount()}catch(c){il(a,a.return,c)}else{var u=qa(a.type,t.memoizedProps);t=t.memoizedState;try{l.componentDidUpdate(u,t,l.__reactInternalSnapshotBeforeUpdate)}catch(c){il(a,a.return,c)}}e&64&&Xr(a),e&512&&Va(a,a.return);break;case 3:if(Lt(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{Yr(e,l)}catch(c){il(a,a.return,c)}}break;case 26:Lt(l,a),e&512&&Va(a,a.return);break;case 27:case 5:Lt(l,a),t===null&&e&4&&Qr(a),e&512&&Va(a,a.return);break;case 12:Lt(l,a);break;case 13:Lt(l,a),e&4&&Fr(l,a);break;case 22:if(u=a.memoizedState!==null||qt,!u){t=t!==null&&t.memoizedState!==null||hl;var n=qt,i=hl;qt=u,(hl=t)&&!i?na(l,a,(a.subtreeFlags&8772)!==0):Lt(l,a),qt=n,hl=i}e&512&&(a.memoizedProps.mode==="manual"?Va(a,a.return):wl(a,a.return));break;default:Lt(l,a)}}function Wr(l){var t=l.alternate;t!==null&&(l.alternate=null,Wr(t)),l.child=null,l.deletions=null,l.sibling=null,l.tag===5&&(t=l.stateNode,t!==null&&ii(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 Sl=null,Kl=!1;function _t(l,t,a){for(a=a.child;a!==null;)$r(l,t,a),a=a.sibling}function $r(l,t,a){if(Gl&&typeof Gl.onCommitFiberUnmount=="function")try{Gl.onCommitFiberUnmount(Be,a)}catch{}switch(a.tag){case 26:hl||wl(a,t),_t(l,t,a),a.memoizedState?a.memoizedState.count--:a.stateNode&&(a=a.stateNode,a.parentNode.removeChild(a));break;case 27:hl||wl(a,t);var e=Sl,u=Kl;for(Sl=a.stateNode,_t(l,t,a),a=a.stateNode,t=a.attributes;t.length;)a.removeAttributeNode(t[0]);ii(a),Sl=e,Kl=u;break;case 5:hl||wl(a,t);case 6:u=Sl;var n=Kl;if(Sl=null,_t(l,t,a),Sl=u,Kl=n,Sl!==null)if(Kl)try{l=Sl,e=a.stateNode,l.nodeType===8?l.parentNode.removeChild(e):l.removeChild(e)}catch(i){il(a,t,i)}else try{Sl.removeChild(a.stateNode)}catch(i){il(a,t,i)}break;case 18:Sl!==null&&(Kl?(t=Sl,a=a.stateNode,t.nodeType===8?Pc(t.parentNode,a):t.nodeType===1&&Pc(t,a),Cu(t)):Pc(Sl,a.stateNode));break;case 4:e=Sl,u=Kl,Sl=a.stateNode.containerInfo,Kl=!0,_t(l,t,a),Sl=e,Kl=u;break;case 0:case 11:case 14:case 15:hl||ua(2,a,t),hl||ua(4,a,t),_t(l,t,a);break;case 1:hl||(wl(a,t),e=a.stateNode,typeof e.componentWillUnmount=="function"&&Gr(a,t,e)),_t(l,t,a);break;case 21:_t(l,t,a);break;case 22:hl||wl(a,t),hl=(e=hl)||a.memoizedState!==null,_t(l,t,a),hl=e;break;default:_t(l,t,a)}}function Fr(l,t){if(t.memoizedState===null&&(l=t.alternate,l!==null&&(l=l.memoizedState,l!==null&&(l=l.dehydrated,l!==null))))try{Cu(l)}catch(a){il(t,t.return,a)}}function I0(l){switch(l.tag){case 13:case 19:var t=l.stateNode;return t===null&&(t=l.stateNode=new Kr),t;case 22:return l=l.stateNode,t=l._retryCache,t===null&&(t=l._retryCache=new Kr),t;default:throw Error(f(435,l.tag))}}function xc(l,t){var a=I0(l);t.forEach(function(e){var u=dh.bind(null,l,e);a.has(e)||(a.add(e),e.then(u,u))})}function et(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:Sl=c.stateNode,Kl=!1;break l;case 3:Sl=c.stateNode.containerInfo,Kl=!0;break l;case 4:Sl=c.stateNode.containerInfo,Kl=!0;break l}c=c.return}if(Sl===null)throw Error(f(160));$r(n,i,u),Sl=null,Kl=!1,n=u.alternate,n!==null&&(n.return=null),u.return=null}if(t.subtreeFlags&13878)for(t=t.child;t!==null;)Pr(t,l),t=t.sibling}var ht=null;function Pr(l,t){var a=l.alternate,e=l.flags;switch(l.tag){case 0:case 11:case 14:case 15:et(t,l),ut(l),e&4&&(ua(3,l,l.return),du(3,l),ua(5,l,l.return));break;case 1:et(t,l),ut(l),e&512&&(hl||a===null||wl(a,a.return)),e&64&&qt&&(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=ht;if(et(t,l),ut(l),e&512&&(hl||a===null||wl(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[Le]||n[Rl]||n.namespaceURI==="http://www.w3.org/2000/svg"||n.hasAttribute("itemprop"))&&(n=u.createElement(e),u.head.insertBefore(n,u.querySelector("head > title"))),Nl(n,e,a),n[Rl]=l,Ml(n),e=n;break l;case"link":var i=Zo("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),Nl(n,e,a),u.head.appendChild(n);break;case"meta":if(i=Zo("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),Nl(n,e,a),u.head.appendChild(n);break;default:throw Error(f(468,e))}n[Rl]=l,Ml(n),e=n}l.stateNode=e}else wo(u,l.type,l.stateNode);else l.stateNode=Qo(u,e,l.memoizedProps);else n!==e?(n===null?a.stateNode!==null&&(a=a.stateNode,a.parentNode.removeChild(a)):n.count--,e===null?wo(u,l.type,l.stateNode):Qo(u,e,l.memoizedProps)):e===null&&l.stateNode!==null&&Zr(l,l.memoizedProps,a.memoizedProps)}break;case 27:if(e&4&&l.alternate===null){u=l.stateNode,n=l.memoizedProps;try{for(var r=u.firstChild;r;){var v=r.nextSibling,x=r.nodeName;r[Le]||x==="HEAD"||x==="BODY"||x==="SCRIPT"||x==="STYLE"||x==="LINK"&&r.rel.toLowerCase()==="stylesheet"||u.removeChild(r),r=v}for(var D=l.type,b=u.attributes;b.length;)u.removeAttributeNode(b[0]);Nl(u,D,n),u[Rl]=l,u[Vl]=n}catch(B){il(l,l.return,B)}}case 5:if(et(t,l),ut(l),e&512&&(hl||a===null||wl(a,a.return)),l.flags&32){u=l.stateNode;try{ae(u,"")}catch(B){il(l,l.return,B)}}e&4&&l.stateNode!=null&&(u=l.memoizedProps,Zr(l,u,a!==null?a.memoizedProps:u)),e&1024&&(Sc=!0);break;case 6:if(et(t,l),ut(l),e&4){if(l.stateNode===null)throw Error(f(162));e=l.memoizedProps,a=l.stateNode;try{a.nodeValue=e}catch(B){il(l,l.return,B)}}break;case 3:if(Vn=null,u=ht,ht=_n(t.containerInfo),et(t,l),ht=u,ut(l),e&4&&a!==null&&a.memoizedState.isDehydrated)try{Cu(t.containerInfo)}catch(B){il(l,l.return,B)}Sc&&(Sc=!1,Ir(l));break;case 4:e=ht,ht=_n(l.stateNode.containerInfo),et(t,l),ut(l),ht=e;break;case 12:et(t,l),ut(l);break;case 13:et(t,l),ut(l),l.child.flags&8192&&l.memoizedState!==null!=(a!==null&&a.memoizedState!==null)&&(Cc=pt()),e&4&&(e=l.updateQueue,e!==null&&(l.updateQueue=null,xc(l,e)));break;case 22:if(e&512&&(hl||a===null||wl(a,a.return)),r=l.memoizedState!==null,v=a!==null&&a.memoizedState!==null,x=qt,D=hl,qt=x||r,hl=D||v,et(t,l),hl=D,qt=x,ut(l),t=l.stateNode,t._current=l,t._visibility&=-3,t._visibility|=t._pendingVisibility&2,e&8192&&(t._visibility=r?t._visibility&-2:t._visibility|1,r&&(t=qt||hl,a===null||v||t||pe(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){v=a=t;try{if(u=v.stateNode,r)n=u.style,typeof n.setProperty=="function"?n.setProperty("display","none","important"):n.display="none";else{i=v.stateNode,c=v.memoizedProps.style;var S=c!=null&&c.hasOwnProperty("display")?c.display:null;i.style.display=S==null||typeof S=="boolean"?"":(""+S).trim()}}catch(B){il(v,v.return,B)}}}else if(t.tag===6){if(a===null){v=t;try{v.stateNode.nodeValue=r?"":v.memoizedProps}catch(B){il(v,v.return,B)}}}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,xc(l,a))));break;case 19:et(t,l),ut(l),e&4&&(e=l.updateQueue,e!==null&&(l.updateQueue=null,xc(l,e)));break;case 21:break;default:et(t,l),ut(l)}}function ut(l){var t=l.flags;if(t&2){try{if(l.tag!==27){l:{for(var a=l.return;a!==null;){if(wr(a)){var e=a;break l}a=a.return}throw Error(f(160))}switch(e.tag){case 27:var u=e.stateNode,n=bc(l);Tn(l,n,u);break;case 5:var i=e.stateNode;e.flags&32&&(ae(i,""),e.flags&=-33);var c=bc(l);Tn(l,c,i);break;case 3:case 4:var r=e.stateNode.containerInfo,v=bc(l);pc(l,v,r);break;default:throw Error(f(161))}}}catch(x){il(l,l.return,x)}l.flags&=-3}t&4096&&(l.flags&=-4097)}function Ir(l){if(l.subtreeFlags&1024)for(l=l.child;l!==null;){var t=l;Ir(t),t.tag===5&&t.flags&1024&&t.stateNode.reset(),l=l.sibling}}function Lt(l,t){if(t.subtreeFlags&8772)for(t=t.child;t!==null;)kr(l,t.alternate,t),t=t.sibling}function pe(l){for(l=l.child;l!==null;){var t=l;switch(t.tag){case 0:case 11:case 14:case 15:ua(4,t,t.return),pe(t);break;case 1:wl(t,t.return);var a=t.stateNode;typeof a.componentWillUnmount=="function"&&Gr(t,t.return,a),pe(t);break;case 26:case 27:case 5:wl(t,t.return),pe(t);break;case 22:wl(t,t.return),t.memoizedState===null&&pe(t);break;default:pe(t)}l=l.sibling}}function na(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:na(u,n,a),du(4,n);break;case 1:if(na(u,n,a),e=n,u=e.stateNode,typeof u.componentDidMount=="function")try{u.componentDidMount()}catch(v){il(e,e.return,v)}if(e=n,u=e.updateQueue,u!==null){var c=e.stateNode;try{var r=u.shared.hiddenCallbacks;if(r!==null)for(u.shared.hiddenCallbacks=null,u=0;u<r.length;u++)Vr(r[u],c)}catch(v){il(e,e.return,v)}}a&&i&64&&Xr(n),Va(n,n.return);break;case 26:case 27:case 5:na(u,n,a),a&&e===null&&i&4&&Qr(n),Va(n,n.return);break;case 12:na(u,n,a);break;case 13:na(u,n,a),a&&i&4&&Fr(u,n);break;case 22:n.memoizedState===null&&na(u,n,a),Va(n,n.return);break;default:na(u,n,a)}t=t.sibling}}function Tc(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&&au(a))}function Ec(l,t){l=null,t.alternate!==null&&(l=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==l&&(t.refCount++,l!=null&&au(l))}function ia(l,t,a,e){if(t.subtreeFlags&10256)for(t=t.child;t!==null;)lo(l,t,a,e),t=t.sibling}function lo(l,t,a,e){var u=t.flags;switch(t.tag){case 0:case 11:case 15:ia(l,t,a,e),u&2048&&du(9,t);break;case 3:ia(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&&au(l)));break;case 12:if(u&2048){ia(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(r){il(t,t.return,r)}}else ia(l,t,a,e);break;case 23:break;case 22:n=t.stateNode,t.memoizedState!==null?n._visibility&4?ia(l,t,a,e):hu(l,t):n._visibility&4?ia(l,t,a,e):(n._visibility|=4,Se(l,t,a,e,(t.subtreeFlags&10256)!==0)),u&2048&&Tc(t.alternate,t);break;case 24:ia(l,t,a,e),u&2048&&Ec(t.alternate,t);break;default:ia(l,t,a,e)}}function Se(l,t,a,e,u){for(u=u&&(t.subtreeFlags&10256)!==0,t=t.child;t!==null;){var n=l,i=t,c=a,r=e,v=i.flags;switch(i.tag){case 0:case 11:case 15:Se(n,i,c,r,u),du(8,i);break;case 23:break;case 22:var x=i.stateNode;i.memoizedState!==null?x._visibility&4?Se(n,i,c,r,u):hu(n,i):(x._visibility|=4,Se(n,i,c,r,u)),u&&v&2048&&Tc(i.alternate,i);break;case 24:Se(n,i,c,r,u),u&&v&2048&&Ec(i.alternate,i);break;default:Se(n,i,c,r,u)}t=t.sibling}}function hu(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:hu(a,e),u&2048&&Tc(e.alternate,e);break;case 24:hu(a,e),u&2048&&Ec(e.alternate,e);break;default:hu(a,e)}t=t.sibling}}var mu=8192;function xe(l){if(l.subtreeFlags&mu)for(l=l.child;l!==null;)to(l),l=l.sibling}function to(l){switch(l.tag){case 26:xe(l),l.flags&mu&&l.memoizedState!==null&&Xh(ht,l.memoizedState,l.memoizedProps);break;case 5:xe(l);break;case 3:case 4:var t=ht;ht=_n(l.stateNode.containerInfo),xe(l),ht=t;break;case 22:l.memoizedState===null&&(t=l.alternate,t!==null&&t.memoizedState!==null?(t=mu,mu=16777216,xe(l),mu=t):xe(l));break;default:xe(l)}}function ao(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 vu(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];Ol=e,uo(e,l)}ao(l)}if(l.subtreeFlags&10256)for(l=l.child;l!==null;)eo(l),l=l.sibling}function eo(l){switch(l.tag){case 0:case 11:case 15:vu(l),l.flags&2048&&ua(9,l,l.return);break;case 3:vu(l);break;case 12:vu(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)):vu(l);break;default:vu(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];Ol=e,uo(e,l)}ao(l)}for(l=l.child;l!==null;){switch(t=l,t.tag){case 0:case 11:case 15:ua(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 uo(l,t){for(;Ol!==null;){var a=Ol;switch(a.tag){case 0:case 11:case 15:ua(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:au(a.memoizedState.cache)}if(e=a.child,e!==null)e.return=a,Ol=e;else l:for(a=l;Ol!==null;){e=Ol;var u=e.sibling,n=e.return;if(Wr(e),e===a){Ol=null;break l}if(u!==null){u.return=n,Ol=u;break l}Ol=n}}}function lh(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 nt(l,t,a,e){return new lh(l,t,a,e)}function Ac(l){return l=l.prototype,!(!l||!l.isReactComponent)}function ca(l,t){var a=l.alternate;return a===null?(a=nt(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 no(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")Ac(l)&&(i=1);else if(typeof l=="string")i=Vh(l,a,bt.current)?26:l==="html"||l==="head"||l==="body"?27:5;else l:switch(l){case O:return Ya(a.children,u,n,t);case U:i=8,u|=24;break;case M:return l=nt(12,a,t,u|2),l.elementType=M,l.lanes=n,l;case K:return l=nt(13,a,t,u),l.elementType=K,l.lanes=n,l;case el:return l=nt(19,a,t,u),l.elementType=el,l.lanes=n,l;case Al:return io(a,u,n,t);default:if(typeof l=="object"&&l!==null)switch(l.$$typeof){case C:case q:i=10;break l;case R:i=9;break l;case _:i=11;break l;case El:i=14;break l;case k:i=16,e=null;break l}i=29,a=Error(f(130,l===null?"null":typeof l,"")),e=null}return t=nt(i,a,t,u),t.elementType=l,t.type=e,t.lanes=n,t}function Ya(l,t,a,e){return l=nt(7,l,e,t),l.lanes=a,l}function io(l,t,a,e){l=nt(22,l,e,t),l.elementType=Al,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(f(456));if((u._pendingVisibility&2)===0){var i=Wt(n,2);i!==null&&(u._pendingVisibility|=2,_l(i,n,2))}},attach:function(){var n=u._current;if(n===null)throw Error(f(456));if((u._pendingVisibility&2)!==0){var i=Wt(n,2);i!==null&&(u._pendingVisibility&=-3,_l(i,n,2))}}};return l.stateNode=u,l}function zc(l,t,a){return l=nt(6,l,null,t),l.lanes=a,l}function Mc(l,t,a){return t=nt(4,l.children!==null?l.children:[],l.key,t),t.lanes=a,t.stateNode={containerInfo:l.containerInfo,pendingChildren:null,implementation:l.implementation},t}function Vt(l){l.flags|=4}function co(l,t){if(t.type!=="stylesheet"||(t.state.loading&4)!==0)l.flags&=-16777217;else if(l.flags|=16777216,!Ko(t)){if(t=at.current,t!==null&&((P&4194176)===P?xt!==null:(P&62914560)!==P&&(P&536870912)===0||t!==xt))throw Ie=Ui,As;l.flags|=8192}}function zn(l,t){t!==null&&(l.flags|=4),l.flags&16384&&(t=l.tag!==22?zf():536870912,l.lanes|=t,Ee|=t)}function yu(l,t){if(!ll)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 ol(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 th(l,t,a){var e=t.pendingProps;switch(ji(t),t.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return ol(t),null;case 1:return ol(t),null;case 3:return a=t.stateNode,e=null,l!==null&&(e=l.memoizedState.cache),t.memoizedState.cache!==e&&(t.flags|=2048),Bt(Tl),$a(),a.pendingContext&&(a.context=a.pendingContext,a.pendingContext=null),(l===null||l.child===null)&&(We(t)?Vt(t):l===null||l.memoizedState.isDehydrated&&(t.flags&256)===0||(t.flags|=1024,dt!==null&&(Hc(dt),dt=null))),ol(t),null;case 26:return a=t.memoizedState,l===null?(Vt(t),a!==null?(ol(t),co(t,a)):(ol(t),t.flags&=-16777217)):a?a!==l.memoizedState?(Vt(t),ol(t),co(t,a)):(ol(t),t.flags&=-16777217):(l.memoizedProps!==e&&Vt(t),ol(t),t.flags&=-16777217),null;case 27:qu(t),a=wt.current;var u=t.type;if(l!==null&&t.stateNode!=null)l.memoizedProps!==e&&Vt(t);else{if(!e){if(t.stateNode===null)throw Error(f(166));return ol(t),null}l=bt.current,We(t)?Ts(t):(l=Lo(u,e,a),t.stateNode=l,Vt(t))}return ol(t),null;case 5:if(qu(t),a=t.type,l!==null&&t.stateNode!=null)l.memoizedProps!==e&&Vt(t);else{if(!e){if(t.stateNode===null)throw Error(f(166));return ol(t),null}if(l=bt.current,We(t))Ts(t);else{switch(u=qn(wt.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[Rl]=t,l[Vl]=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(Nl(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&&Vt(t)}}return ol(t),t.flags&=-16777217,null;case 6:if(l&&t.stateNode!=null)l.memoizedProps!==e&&Vt(t);else{if(typeof e!="string"&&t.stateNode===null)throw Error(f(166));if(l=wt.current,We(t)){if(l=t.stateNode,a=t.memoizedProps,e=null,u=ql,u!==null)switch(u.tag){case 27:case 5:e=u.memoizedProps}l[Rl]=t,l=!!(l.nodeValue===a||e!==null&&e.suppressHydrationWarning===!0||No(l.nodeValue,a)),l||Ca(t)}else l=qn(l).createTextNode(e),l[Rl]=t,t.stateNode=l}return ol(t),null;case 13:if(e=t.memoizedState,l===null||l.memoizedState!==null&&l.memoizedState.dehydrated!==null){if(u=We(t),e!==null&&e.dehydrated!==null){if(l===null){if(!u)throw Error(f(318));if(u=t.memoizedState,u=u!==null?u.dehydrated:null,!u)throw Error(f(317));u[Rl]=t}else $e(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;ol(t),u=!1}else dt!==null&&(Hc(dt),dt=null),u=!0;if(!u)return t.flags&256?(Ut(t),t):(Ut(t),null)}if(Ut(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),ol(t),null;case 4:return $a(),l===null&&wc(t.stateNode.containerInfo),ol(t),null;case 10:return Bt(t.type),ol(t),null;case 19:if(zl(xl),u=t.memoizedState,u===null)return ol(t),null;if(e=(t.flags&128)!==0,n=u.rendering,n===null)if(e)yu(u,!1);else{if(ml!==0||l!==null&&(l.flags&128)!==0)for(l=t.child;l!==null;){if(n=fn(l),n!==null){for(t.flags|=128,yu(u,!1),l=n.updateQueue,t.updateQueue=l,zn(t,l),t.subtreeFlags=0,l=a,a=t.child;a!==null;)no(a,l),a=a.sibling;return rl(xl,xl.current&1|2),t.child}l=l.sibling}u.tail!==null&&pt()>Mn&&(t.flags|=128,e=!0,yu(u,!1),t.lanes=4194304)}else{if(!e)if(l=fn(n),l!==null){if(t.flags|=128,e=!0,l=l.updateQueue,t.updateQueue=l,zn(t,l),yu(u,!0),u.tail===null&&u.tailMode==="hidden"&&!n.alternate&&!ll)return ol(t),null}else 2*pt()-u.renderingStartTime>Mn&&a!==536870912&&(t.flags|=128,e=!0,yu(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=pt(),t.sibling=null,l=xl.current,rl(xl,e?l&1|2:l&1),t):(ol(t),null);case 22:case 23:return Ut(t),Ri(),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&&(ol(t),t.subtreeFlags&6&&(t.flags|=8192)):ol(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&&zl(Na),null;case 24:return a=null,l!==null&&(a=l.memoizedState.cache),t.memoizedState.cache!==a&&(t.flags|=2048),Bt(Tl),ol(t),null;case 25:return null}throw Error(f(156,t.tag))}function ah(l,t){switch(ji(t),t.tag){case 1:return l=t.flags,l&65536?(t.flags=l&-65537|128,t):null;case 3:return Bt(Tl),$a(),l=t.flags,(l&65536)!==0&&(l&128)===0?(t.flags=l&-65537|128,t):null;case 26:case 27:case 5:return qu(t),null;case 13:if(Ut(t),l=t.memoizedState,l!==null&&l.dehydrated!==null){if(t.alternate===null)throw Error(f(340));$e()}return l=t.flags,l&65536?(t.flags=l&-65537|128,t):null;case 19:return zl(xl),null;case 4:return $a(),null;case 10:return Bt(t.type),null;case 22:case 23:return Ut(t),Ri(),l!==null&&zl(Na),l=t.flags,l&65536?(t.flags=l&-65537|128,t):null;case 24:return Bt(Tl),null;case 25:return null;default:return null}}function fo(l,t){switch(ji(t),t.tag){case 3:Bt(Tl),$a();break;case 26:case 27:case 5:qu(t);break;case 4:$a();break;case 13:Ut(t);break;case 19:zl(xl);break;case 10:Bt(t.type);break;case 22:case 23:Ut(t),Ri(),l!==null&&zl(Na);break;case 24:Bt(Tl)}}var eh={getCacheForType:function(l){var t=Hl(Tl),a=t.data.get(l);return a===void 0&&(a=l(),t.data.set(l,a)),a}},uh=typeof WeakMap=="function"?WeakMap:Map,dl=0,cl=null,W=null,P=0,fl=0,Jl=null,Yt=!1,Te=!1,Dc=!1,Xt=0,ml=0,fa=0,Xa=0,Oc=0,it=0,Ee=0,gu=null,Et=null,jc=!1,Cc=0,Mn=1/0,Dn=null,sa=null,On=!1,Ga=null,bu=0,Uc=0,Nc=null,pu=0,Rc=null;function kl(){if((dl&2)!==0&&P!==0)return P&-P;if(z.T!==null){var l=me;return l!==0?l:Xc()}return jf()}function so(){it===0&&(it=(P&536870912)===0||ll?Af():536870912);var l=at.current;return l!==null&&(l.flags|=32),it}function _l(l,t,a){(l===cl&&fl===2||l.cancelPendingCommit!==null)&&(Ae(l,0),Gt(l,P,it,!1)),_e(l,a),((dl&2)===0||l!==cl)&&(l===cl&&((dl&2)===0&&(Xa|=a),ml===4&&Gt(l,P,it,!1)),At(l))}function ro(l,t,a){if((dl&6)!==0)throw Error(f(327));var e=!a&&(t&60)===0&&(t&l.expiredLanes)===0||qe(l,t),u=e?ch(l,t):_c(l,t,!0),n=e;do{if(u===0){Te&&!e&&Gt(l,t,0,!1);break}else if(u===6)Gt(l,t,0,!Yt);else{if(a=l.current.alternate,n&&!nh(a)){u=_c(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=gu;var r=c.current.memoizedState.isDehydrated;if(r&&(Ae(c,i).flags|=256),i=_c(c,i,!1),i!==2){if(Dc&&!r){c.errorRecoveryDisabledLanes|=n,Xa|=n,u=4;break l}n=Et,Et=u,n!==null&&Hc(n)}u=i}if(n=!1,u!==2)continue}}if(u===1){Ae(l,0),Gt(l,t,0,!0);break}l:{switch(e=l,u){case 0:case 1:throw Error(f(345));case 4:if((t&4194176)===t){Gt(e,t,it,!Yt);break l}break;case 2:Et=null;break;case 3:case 5:break;default:throw Error(f(329))}if(e.finishedWork=a,e.finishedLanes=t,(t&62914560)===t&&(n=Cc+300-pt(),10<n)){if(Gt(e,t,it,!Yt),Yu(e,0)!==0)break l;e.timeoutHandle=Bo(oo.bind(null,e,a,Et,Dn,jc,t,it,Xa,Ee,Yt,2,-0,0),n);break l}oo(e,a,Et,Dn,jc,t,it,Xa,Ee,Yt,0,-0,0)}}break}while(!0);At(l)}function Hc(l){Et===null?Et=l:Et.push.apply(Et,l)}function oo(l,t,a,e,u,n,i,c,r,v,x,D,b){var S=t.subtreeFlags;if((S&8192||(S&16785408)===16785408)&&(zu={stylesheets:null,count:0,unsuspend:Yh},to(t),t=Gh(),t!==null)){l.cancelPendingCommit=t(po.bind(null,l,a,e,u,i,c,r,1,D,b)),Gt(l,n,i,!v);return}po(l,a,e,u,i,c,r,x,D,b)}function nh(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 Gt(l,t,a,e){t&=~Oc,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&&Mf(l,a,t)}function jn(){return(dl&6)===0?(Su(0),!1):!0}function Bc(){if(W!==null){if(fl===0)var l=W.return;else l=W,Ht=_a=null,Xi(l),de=null,lu=0,l=W;for(;l!==null;)fo(l.alternate,l),l=l.return;W=null}}function Ae(l,t){l.finishedWork=null,l.finishedLanes=0;var a=l.timeoutHandle;a!==-1&&(l.timeoutHandle=-1,Ah(a)),a=l.cancelPendingCommit,a!==null&&(l.cancelPendingCommit=null,a()),Bc(),cl=l,W=a=ca(l.current,null),P=t,fl=0,Jl=null,Yt=!1,Te=qe(l,t),Dc=!1,Ee=it=Oc=Xa=fa=ml=0,Et=gu=null,jc=!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 Xt=t,Pu(),a}function ho(l,t){w=null,z.H=Tt,t===Pe?(t=Ds(),fl=3):t===As?(t=Ds(),fl=4):fl=t===zr?8:t!==null&&typeof t=="object"&&typeof t.then=="function"?6:1,Jl=t,W===null&&(ml=1,pn(l,Il(t,l.current)))}function mo(){var l=z.H;return z.H=Tt,l===null?Tt:l}function vo(){var l=z.A;return z.A=eh,l}function qc(){ml=4,Yt||(P&4194176)!==P&&at.current!==null||(Te=!0),(fa&134217727)===0&&(Xa&134217727)===0||cl===null||Gt(cl,P,it,!1)}function _c(l,t,a){var e=dl;dl|=2;var u=mo(),n=vo();(cl!==l||P!==t)&&(Dn=null,Ae(l,t)),t=!1;var i=ml;l:do try{if(fl!==0&&W!==null){var c=W,r=Jl;switch(fl){case 8:Bc(),i=6;break l;case 3:case 2:case 6:at.current===null&&(t=!0);var v=fl;if(fl=0,Jl=null,ze(l,c,r,v),a&&Te){i=0;break l}break;default:v=fl,fl=0,Jl=null,ze(l,c,r,v)}}ih(),i=ml;break}catch(x){ho(l,x)}while(!0);return t&&l.shellSuspendCounter++,Ht=_a=null,dl=e,z.H=u,z.A=n,W===null&&(cl=null,P=0,Pu()),i}function ih(){for(;W!==null;)yo(W)}function ch(l,t){var a=dl;dl|=2;var e=mo(),u=vo();cl!==l||P!==t?(Dn=null,Mn=pt()+500,Ae(l,t)):Te=qe(l,t);l:do try{if(fl!==0&&W!==null){t=W;var n=Jl;t:switch(fl){case 1:fl=0,Jl=null,ze(l,t,n,1);break;case 2:if(zs(n)){fl=0,Jl=null,go(t);break}t=function(){fl===2&&cl===l&&(fl=7),At(l)},n.then(t,t);break l;case 3:fl=7;break l;case 4:fl=5;break l;case 7:zs(n)?(fl=0,Jl=null,go(t)):(fl=0,Jl=null,ze(l,t,n,7));break;case 5:var i=null;switch(W.tag){case 26:i=W.memoizedState;case 5:case 27:var c=W;if(!i||Ko(i)){fl=0,Jl=null;var r=c.sibling;if(r!==null)W=r;else{var v=c.return;v!==null?(W=v,Cn(v)):W=null}break t}}fl=0,Jl=null,ze(l,t,n,5);break;case 6:fl=0,Jl=null,ze(l,t,n,6);break;case 8:Bc(),ml=6;break l;default:throw Error(f(462))}}fh();break}catch(x){ho(l,x)}while(!0);return Ht=_a=null,z.H=e,z.A=u,dl=a,W!==null?0:(cl=null,P=0,Pu(),ml)}function fh(){for(;W!==null&&!Cd();)yo(W)}function yo(l){var t=_r(l.alternate,l,Xt);l.memoizedProps=l.pendingProps,t===null?Cn(l):W=t}function go(l){var t=l,a=t.alternate;switch(t.tag){case 15:case 0:t=Ur(a,t,t.pendingProps,t.type,void 0,P);break;case 11:t=Ur(a,t,t.pendingProps,t.type.render,t.ref,P);break;case 5:Xi(t);default:fo(a,t),t=W=no(t,Xt),t=_r(a,t,Xt)}l.memoizedProps=l.pendingProps,t===null?Cn(l):W=t}function ze(l,t,a,e){Ht=_a=null,Xi(t),de=null,lu=0;var u=t.return;try{if($0(l,u,t,a,P)){ml=1,pn(l,Il(a,l.current)),W=null;return}}catch(n){if(u!==null)throw W=u,n;ml=1,pn(l,Il(a,l.current)),W=null;return}t.flags&32768?(ll||e===1?l=!0:Te||(P&536870912)!==0?l=!1:(Yt=l=!0,(e===2||e===3||e===6)&&(e=at.current,e!==null&&e.tag===13&&(e.flags|=16384))),bo(t,l)):Cn(t)}function Cn(l){var t=l;do{if((t.flags&32768)!==0){bo(t,Yt);return}l=t.return;var a=th(t.alternate,t,Xt);if(a!==null){W=a;return}if(t=t.sibling,t!==null){W=t;return}W=t=l}while(t!==null);ml===0&&(ml=5)}function bo(l,t){do{var a=ah(l.alternate,l);if(a!==null){a.flags&=32767,W=a;return}if(a=l.return,a!==null&&(a.flags|=32768,a.subtreeFlags=0,a.deletions=null),!t&&(l=l.sibling,l!==null)){W=l;return}W=l=a}while(l!==null);ml=6,W=null}function po(l,t,a,e,u,n,i,c,r,v){var x=z.T,D=I.p;try{I.p=2,z.T=null,sh(l,t,a,e,D,u,n,i,c,r,v)}finally{z.T=x,I.p=D}}function sh(l,t,a,e,u,n,i,c){do Me();while(Ga!==null);if((dl&6)!==0)throw Error(f(327));var r=l.finishedWork;if(e=l.finishedLanes,r===null)return null;if(l.finishedWork=null,l.finishedLanes=0,r===l.current)throw Error(f(177));l.callbackNode=null,l.callbackPriority=0,l.cancelPendingCommit=null;var v=r.lanes|r.childLanes;if(v|=Mi,Xd(l,e,v,n,i,c),l===cl&&(W=cl=null,P=0),(r.subtreeFlags&10256)===0&&(r.flags&10256)===0||On||(On=!0,Uc=v,Nc=a,hh(_u,function(){return Me(),null})),a=(r.flags&15990)!==0,(r.subtreeFlags&15990)!==0||a?(a=z.T,z.T=null,n=I.p,I.p=2,i=dl,dl|=4,P0(l,r),Pr(r,l),R0(Wc,l.containerInfo),Gn=!!kc,Wc=kc=null,l.current=r,kr(l,r.alternate,r),Ud(),dl=i,I.p=n,z.T=a):l.current=r,On?(On=!1,Ga=l,bu=e):So(l,v),v=l.pendingLanes,v===0&&(sa=null),qd(r.stateNode),At(l),t!==null)for(u=l.onRecoverableError,r=0;r<t.length;r++)v=t[r],u(v.value,{componentStack:v.stack});return(bu&3)!==0&&Me(),v=l.pendingLanes,(e&4194218)!==0&&(v&42)!==0?l===Rc?pu++:(pu=0,Rc=l):pu=0,Su(0),null}function So(l,t){(l.pooledCacheLanes&=t)===0&&(t=l.pooledCache,t!=null&&(l.pooledCache=null,au(t)))}function Me(){if(Ga!==null){var l=Ga,t=Uc;Uc=0;var a=Of(bu),e=z.T,u=I.p;try{if(I.p=32>a?32:a,z.T=null,Ga===null)var n=!1;else{a=Nc,Nc=null;var i=Ga,c=bu;if(Ga=null,bu=0,(dl&6)!==0)throw Error(f(331));var r=dl;if(dl|=4,eo(i.current),lo(i,i.current,c,a),dl=r,Su(0,!1),Gl&&typeof Gl.onPostCommitFiberRoot=="function")try{Gl.onPostCommitFiberRoot(Be,i)}catch{}n=!0}return n}finally{I.p=u,z.T=e,So(l,t)}}return!1}function xo(l,t,a){t=Il(a,t),t=tc(l.stateNode,t,2),l=ea(l,t,2),l!==null&&(_e(l,2),At(l))}function il(l,t,a){if(l.tag===3)xo(l,l,a);else for(;t!==null;){if(t.tag===3){xo(t,l,a);break}else if(t.tag===1){var e=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof e.componentDidCatch=="function"&&(sa===null||!sa.has(e))){l=Il(a,l),a=Er(2),e=ea(t,a,2),e!==null&&(Ar(a,e,t,l),_e(e,2),At(e));break}}t=t.return}}function Lc(l,t,a){var e=l.pingCache;if(e===null){e=l.pingCache=new uh;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=rh.bind(null,l,t,a),t.then(l,l))}function rh(l,t,a){var e=l.pingCache;e!==null&&e.delete(t),l.pingedLanes|=l.suspendedLanes&a,l.warmLanes&=~a,cl===l&&(P&a)===a&&(ml===4||ml===3&&(P&62914560)===P&&300>pt()-Cc?(dl&2)===0&&Ae(l,0):Oc|=a,Ee===P&&(Ee=0)),At(l)}function To(l,t){t===0&&(t=zf()),l=Wt(l,t),l!==null&&(_e(l,t),At(l))}function oh(l){var t=l.memoizedState,a=0;t!==null&&(a=t.retryLane),To(l,a)}function dh(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(f(314))}e!==null&&e.delete(t),To(l,a)}function hh(l,t){return ai(l,t)}var Un=null,De=null,Vc=!1,Nn=!1,Yc=!1,Qa=0;function At(l){l!==De&&l.next===null&&(De===null?Un=De=l:De=De.next=l),Nn=!0,Vc||(Vc=!0,vh(mh))}function Su(l,t){if(!Yc&&Nn){Yc=!0;do for(var a=!1,e=Un;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,zo(e,n))}else n=P,n=Yu(e,e===cl?n:0),(n&3)===0||qe(e,n)||(a=!0,zo(e,n));e=e.next}while(a);Yc=!1}}function mh(){Nn=Vc=!1;var l=0;Qa!==0&&(Eh()&&(l=Qa),Qa=0);for(var t=pt(),a=null,e=Un;e!==null;){var u=e.next,n=Eo(e,t);n===0?(e.next=null,a===null?Un=u:a.next=u,u===null&&(De=a)):(a=e,(l!==0||(n&3)!==0)&&(Nn=!0)),e=u}Su(l)}function Eo(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,r=u[i];r===-1?((c&a)===0||(c&e)!==0)&&(u[i]=Yd(c,t)):r<=t&&(l.expiredLanes|=c),n&=~c}if(t=cl,a=P,a=Yu(l,l===t?a:0),e=l.callbackNode,a===0||l===t&&fl===2||l.cancelPendingCommit!==null)return e!==null&&e!==null&&ei(e),l.callbackNode=null,l.callbackPriority=0;if((a&3)===0||qe(l,a)){if(t=a&-a,t===l.callbackPriority)return t;switch(e!==null&&ei(e),Of(a)){case 2:case 8:a=Tf;break;case 32:a=_u;break;case 268435456:a=Ef;break;default:a=_u}return e=Ao.bind(null,l),a=ai(a,e),l.callbackPriority=t,l.callbackNode=a,t}return e!==null&&e!==null&&ei(e),l.callbackPriority=2,l.callbackNode=null,2}function Ao(l,t){var a=l.callbackNode;if(Me()&&l.callbackNode!==a)return null;var e=P;return e=Yu(l,l===cl?e:0),e===0?null:(ro(l,e,t),Eo(l,pt()),l.callbackNode!=null&&l.callbackNode===a?Ao.bind(null,l):null)}function zo(l,t){if(Me())return null;ro(l,t,!0)}function vh(l){zh(function(){(dl&6)!==0?ai(xf,l):l()})}function Xc(){return Qa===0&&(Qa=Af()),Qa}function Mo(l){return l==null||typeof l=="symbol"||typeof l=="boolean"?null:typeof l=="function"?l:wu(""+l)}function Do(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 yh(l,t,a,e,u){if(t==="submit"&&a&&a.stateNode===u){var n=Mo((u[Vl]||null).action),i=e.submitter;i&&(t=(t=i[Vl]||null)?Mo(t.formAction):i.getAttribute("formAction"),t!==null&&(n=t,i=null));var c=new Wu("action","action",null,e,u);l.push({event:c,listeners:[{instance:null,listener:function(){if(e.defaultPrevented){if(Qa!==0){var r=i?Do(u,i):new FormData(u);$i(a,{pending:!0,data:r,method:u.method,action:n},null,r)}}else typeof n=="function"&&(c.preventDefault(),r=i?Do(u,i):new FormData(u),$i(a,{pending:!0,data:r,method:u.method,action:n},n,r))},currentTarget:u}]})}}for(var Gc=0;Gc<bs.length;Gc++){var Qc=bs[Gc],gh=Qc.toLowerCase(),bh=Qc[0].toUpperCase()+Qc.slice(1);ot(gh,"on"+bh)}ot(hs,"onAnimationEnd"),ot(ms,"onAnimationIteration"),ot(vs,"onAnimationStart"),ot("dblclick","onDoubleClick"),ot("focusin","onFocus"),ot("focusout","onBlur"),ot(B0,"onTransitionRun"),ot(q0,"onTransitionStart"),ot(_0,"onTransitionCancel"),ot(ys,"onTransitionEnd"),le("onMouseEnter",["mouseout","mouseover"]),le("onMouseLeave",["mouseout","mouseover"]),le("onPointerEnter",["pointerout","pointerover"]),le("onPointerLeave",["pointerout","pointerover"]),Aa("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),Aa("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),Aa("onBeforeInput",["compositionend","keypress","textInput","paste"]),Aa("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),Aa("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),Aa("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var xu="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(" "),ph=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(xu));function Oo(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],r=c.instance,v=c.currentTarget;if(c=c.listener,r!==n&&u.isPropagationStopped())break l;n=c,u.currentTarget=v;try{n(u)}catch(x){bn(x)}u.currentTarget=null,n=r}else for(i=0;i<e.length;i++){if(c=e[i],r=c.instance,v=c.currentTarget,c=c.listener,r!==n&&u.isPropagationStopped())break l;n=c,u.currentTarget=v;try{n(u)}catch(x){bn(x)}u.currentTarget=null,n=r}}}}function F(l,t){var a=t[ni];a===void 0&&(a=t[ni]=new Set);var e=l+"__bubble";a.has(e)||(jo(t,l,2,!1),a.add(e))}function Zc(l,t,a){var e=0;t&&(e|=4),jo(a,l,e,t)}var Rn="_reactListening"+Math.random().toString(36).slice(2);function wc(l){if(!l[Rn]){l[Rn]=!0,Uf.forEach(function(a){a!=="selectionchange"&&(ph.has(a)||Zc(a,!1,l),Zc(a,!0,l))});var t=l.nodeType===9?l:l.ownerDocument;t===null||t[Rn]||(t[Rn]=!0,Zc("selectionchange",!1,t))}}function jo(l,t,a,e){switch(Po(t)){case 2:var u=wh;break;case 8:u=Kh;break;default:u=uf}a=u.bind(null,t,a,l),u=void 0,!hi||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 Kc(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 r=i.tag;if((r===3||r===4)&&(r=i.stateNode.containerInfo,r===u||r.nodeType===8&&r.parentNode===u))return;i=i.return}for(;c!==null;){if(i=Ea(c),i===null)return;if(r=i.tag,r===5||r===6||r===26||r===27){e=n=i;continue l}c=c.parentNode}}e=e.return}Qf(function(){var v=n,x=oi(a),D=[];l:{var b=gs.get(l);if(b!==void 0){var S=Wu,B=l;switch(l){case"keypress":if(Ju(a)===0)break l;case"keydown":case"keyup":S=d0;break;case"focusin":B="focus",S=gi;break;case"focusout":B="blur",S=gi;break;case"beforeblur":case"afterblur":S=gi;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":S=Kf;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":S=l0;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":S=v0;break;case hs:case ms:case vs:S=e0;break;case ys:S=g0;break;case"scroll":case"scrollend":S=Pd;break;case"wheel":S=p0;break;case"copy":case"cut":case"paste":S=n0;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":S=kf;break;case"toggle":case"beforetoggle":S=x0}var Q=(t&4)!==0,vl=!Q&&(l==="scroll"||l==="scrollend"),y=Q?b!==null?b+"Capture":null:b;Q=[];for(var m=v,g;m!==null;){var E=m;if(g=E.stateNode,E=E.tag,E!==5&&E!==26&&E!==27||g===null||y===null||(E=Ye(m,y),E!=null&&Q.push(Tu(m,E,g))),vl)break;m=m.return}0<Q.length&&(b=new S(b,B,null,a,x),D.push({event:b,listeners:Q}))}}if((t&7)===0){l:{if(b=l==="mouseover"||l==="pointerover",S=l==="mouseout"||l==="pointerout",b&&a!==ri&&(B=a.relatedTarget||a.fromElement)&&(Ea(B)||B[Fa]))break l;if((S||b)&&(b=x.window===x?x:(b=x.ownerDocument)?b.defaultView||b.parentWindow:window,S?(B=a.relatedTarget||a.toElement,S=v,B=B?Ea(B):null,B!==null&&(vl=G(B),Q=B.tag,B!==vl||Q!==5&&Q!==27&&Q!==6)&&(B=null)):(S=null,B=v),S!==B)){if(Q=Kf,E="onMouseLeave",y="onMouseEnter",m="mouse",(l==="pointerout"||l==="pointerover")&&(Q=kf,E="onPointerLeave",y="onPointerEnter",m="pointer"),vl=S==null?b:Ve(S),g=B==null?b:Ve(B),b=new Q(E,m+"leave",S,a,x),b.target=vl,b.relatedTarget=g,E=null,Ea(x)===v&&(Q=new Q(y,m+"enter",B,a,x),Q.target=g,Q.relatedTarget=vl,E=Q),vl=E,S&&B)t:{for(Q=S,y=B,m=0,g=Q;g;g=Oe(g))m++;for(g=0,E=y;E;E=Oe(E))g++;for(;0<m-g;)Q=Oe(Q),m--;for(;0<g-m;)y=Oe(y),g--;for(;m--;){if(Q===y||y!==null&&Q===y.alternate)break t;Q=Oe(Q),y=Oe(y)}Q=null}else Q=null;S!==null&&Co(D,b,S,Q,!1),B!==null&&vl!==null&&Co(D,vl,B,Q,!0)}}l:{if(b=v?Ve(v):window,S=b.nodeName&&b.nodeName.toLowerCase(),S==="select"||S==="input"&&b.type==="file")var H=as;else if(ls(b))if(es)H=U0;else{H=j0;var J=O0}else S=b.nodeName,!S||S.toLowerCase()!=="input"||b.type!=="checkbox"&&b.type!=="radio"?v&&si(v.elementType)&&(H=as):H=C0;if(H&&(H=H(l,v))){ts(D,H,a,x);break l}J&&J(l,b,v),l==="focusout"&&v&&b.type==="number"&&v.memoizedProps.value!=null&&fi(b,"number",b.value)}switch(J=v?Ve(v):window,l){case"focusin":(ls(J)||J.contentEditable==="true")&&(ie=J,Ei=v,ke=null);break;case"focusout":ke=Ei=ie=null;break;case"mousedown":Ai=!0;break;case"contextmenu":case"mouseup":case"dragend":Ai=!1,os(D,a,x);break;case"selectionchange":if(H0)break;case"keydown":case"keyup":os(D,a,x)}var V;if(pi)l:{switch(l){case"compositionstart":var Y="onCompositionStart";break l;case"compositionend":Y="onCompositionEnd";break l;case"compositionupdate":Y="onCompositionUpdate";break l}Y=void 0}else ne?Pf(l,a)&&(Y="onCompositionEnd"):l==="keydown"&&a.keyCode===229&&(Y="onCompositionStart");Y&&(Wf&&a.locale!=="ko"&&(ne||Y!=="onCompositionStart"?Y==="onCompositionEnd"&&ne&&(V=Zf()):(kt=x,mi="value"in kt?kt.value:kt.textContent,ne=!0)),J=Hn(v,Y),0<J.length&&(Y=new Jf(Y,l,null,a,x),D.push({event:Y,listeners:J}),V?Y.data=V:(V=If(a),V!==null&&(Y.data=V)))),(V=E0?A0(l,a):z0(l,a))&&(Y=Hn(v,"onBeforeInput"),0<Y.length&&(J=new Jf("onBeforeInput","beforeinput",null,a,x),D.push({event:J,listeners:Y}),J.data=V)),yh(D,l,v,a,x)}Oo(D,t)})}function Tu(l,t,a){return{instance:l,listener:t,currentTarget:a}}function Hn(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=Ye(l,a),u!=null&&e.unshift(Tu(l,u,n)),u=Ye(l,t),u!=null&&e.push(Tu(l,u,n))),l=l.return}return e}function Oe(l){if(l===null)return null;do l=l.return;while(l&&l.tag!==5&&l.tag!==27);return l||null}function Co(l,t,a,e,u){for(var n=t._reactName,i=[];a!==null&&a!==e;){var c=a,r=c.alternate,v=c.stateNode;if(c=c.tag,r!==null&&r===e)break;c!==5&&c!==26&&c!==27||v===null||(r=v,u?(v=Ye(a,n),v!=null&&i.unshift(Tu(a,v,r))):u||(v=Ye(a,n),v!=null&&i.push(Tu(a,v,r)))),a=a.return}i.length!==0&&l.push({event:t,listeners:i})}var Sh=/\r\n?/g,xh=/\u0000|\uFFFD/g;function Uo(l){return(typeof l=="string"?l:""+l).replace(Sh,`
`).replace(xh,"")}function No(l,t){return t=Uo(t),Uo(l)===t}function Bn(){}function nl(l,t,a,e,u,n){switch(a){case"children":typeof e=="string"?t==="body"||t==="textarea"&&e===""||ae(l,e):(typeof e=="number"||typeof e=="bigint")&&t!=="body"&&ae(l,""+e);break;case"className":Gu(l,"class",e);break;case"tabIndex":Gu(l,"tabindex",e);break;case"dir":case"role":case"viewBox":case"width":case"height":Gu(l,a,e);break;case"style":Xf(l,e,n);break;case"data":if(t!=="object"){Gu(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=wu(""+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"&&nl(l,t,"name",u.name,u,null),nl(l,t,"formEncType",u.formEncType,u,null),nl(l,t,"formMethod",u.formMethod,u,null),nl(l,t,"formTarget",u.formTarget,u,null)):(nl(l,t,"encType",u.encType,u,null),nl(l,t,"method",u.method,u,null),nl(l,t,"target",u.target,u,null)));if(e==null||typeof e=="symbol"||typeof e=="boolean"){l.removeAttribute(a);break}e=wu(""+e),l.setAttribute(a,e);break;case"onClick":e!=null&&(l.onclick=Bn);break;case"onScroll":e!=null&&F("scroll",l);break;case"onScrollEnd":e!=null&&F("scrollend",l);break;case"dangerouslySetInnerHTML":if(e!=null){if(typeof e!="object"||!("__html"in e))throw Error(f(61));if(a=e.__html,a!=null){if(u.children!=null)throw Error(f(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=wu(""+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":F("beforetoggle",l),F("toggle",l),Xu(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":Xu(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=$d.get(a)||a,Xu(l,a,e))}}function Jc(l,t,a,e,u,n){switch(a){case"style":Xf(l,e,n);break;case"dangerouslySetInnerHTML":if(e!=null){if(typeof e!="object"||!("__html"in e))throw Error(f(61));if(a=e.__html,a!=null){if(u.children!=null)throw Error(f(60));l.innerHTML=a}}break;case"children":typeof e=="string"?ae(l,e):(typeof e=="number"||typeof e=="bigint")&&ae(l,""+e);break;case"onScroll":e!=null&&F("scroll",l);break;case"onScrollEnd":e!=null&&F("scrollend",l);break;case"onClick":e!=null&&(l.onclick=Bn);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!Nf.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[Vl]||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,""):Xu(l,a,e)}}}function Nl(l,t,a){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":F("error",l),F("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(f(137,t));default:nl(l,t,n,i,a,null)}}u&&nl(l,t,"srcSet",a.srcSet,a,null),e&&nl(l,t,"src",a.src,a,null);return;case"input":F("invalid",l);var c=n=i=u=null,r=null,v=null;for(e in a)if(a.hasOwnProperty(e)){var x=a[e];if(x!=null)switch(e){case"name":u=x;break;case"type":i=x;break;case"checked":r=x;break;case"defaultChecked":v=x;break;case"value":n=x;break;case"defaultValue":c=x;break;case"children":case"dangerouslySetInnerHTML":if(x!=null)throw Error(f(137,t));break;default:nl(l,t,e,x,a,null)}}_f(l,n,c,r,v,i,u,!1),Qu(l);return;case"select":F("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:nl(l,t,u,c,a,null)}t=n,a=i,l.multiple=!!e,t!=null?te(l,!!e,t,!1):a!=null&&te(l,!!e,a,!0);return;case"textarea":F("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(f(91));break;default:nl(l,t,i,c,a,null)}Vf(l,e,u,n),Qu(l);return;case"option":for(r in a)if(a.hasOwnProperty(r)&&(e=a[r],e!=null))switch(r){case"selected":l.selected=e&&typeof e!="function"&&typeof e!="symbol";break;default:nl(l,t,r,e,a,null)}return;case"dialog":F("cancel",l),F("close",l);break;case"iframe":case"object":F("load",l);break;case"video":case"audio":for(e=0;e<xu.length;e++)F(xu[e],l);break;case"image":F("error",l),F("load",l);break;case"details":F("toggle",l);break;case"embed":case"source":case"link":F("error",l),F("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(v in a)if(a.hasOwnProperty(v)&&(e=a[v],e!=null))switch(v){case"children":case"dangerouslySetInnerHTML":throw Error(f(137,t));default:nl(l,t,v,e,a,null)}return;default:if(si(t)){for(x in a)a.hasOwnProperty(x)&&(e=a[x],e!==void 0&&Jc(l,t,x,e,a,void 0));return}}for(c in a)a.hasOwnProperty(c)&&(e=a[c],e!=null&&nl(l,t,c,e,a,null))}function Th(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,r=null,v=null,x=null;for(S in a){var D=a[S];if(a.hasOwnProperty(S)&&D!=null)switch(S){case"checked":break;case"value":break;case"defaultValue":r=D;default:e.hasOwnProperty(S)||nl(l,t,S,null,e,D)}}for(var b in e){var S=e[b];if(D=a[b],e.hasOwnProperty(b)&&(S!=null||D!=null))switch(b){case"type":n=S;break;case"name":u=S;break;case"checked":v=S;break;case"defaultChecked":x=S;break;case"value":i=S;break;case"defaultValue":c=S;break;case"children":case"dangerouslySetInnerHTML":if(S!=null)throw Error(f(137,t));break;default:S!==D&&nl(l,t,b,S,e,D)}}ci(l,i,c,r,v,x,n,u);return;case"select":S=i=c=b=null;for(n in a)if(r=a[n],a.hasOwnProperty(n)&&r!=null)switch(n){case"value":break;case"multiple":S=r;default:e.hasOwnProperty(n)||nl(l,t,n,null,e,r)}for(u in e)if(n=e[u],r=a[u],e.hasOwnProperty(u)&&(n!=null||r!=null))switch(u){case"value":b=n;break;case"defaultValue":c=n;break;case"multiple":i=n;default:n!==r&&nl(l,t,u,n,e,r)}t=c,a=i,e=S,b!=null?te(l,!!a,b,!1):!!e!=!!a&&(t!=null?te(l,!!a,t,!0):te(l,!!a,a?[]:"",!1));return;case"textarea":S=b=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:nl(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":b=u;break;case"defaultValue":S=u;break;case"children":break;case"dangerouslySetInnerHTML":if(u!=null)throw Error(f(91));break;default:u!==n&&nl(l,t,i,u,e,n)}Lf(l,b,S);return;case"option":for(var B in a)if(b=a[B],a.hasOwnProperty(B)&&b!=null&&!e.hasOwnProperty(B))switch(B){case"selected":l.selected=!1;break;default:nl(l,t,B,null,e,b)}for(r in e)if(b=e[r],S=a[r],e.hasOwnProperty(r)&&b!==S&&(b!=null||S!=null))switch(r){case"selected":l.selected=b&&typeof b!="function"&&typeof b!="symbol";break;default:nl(l,t,r,b,e,S)}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 Q in a)b=a[Q],a.hasOwnProperty(Q)&&b!=null&&!e.hasOwnProperty(Q)&&nl(l,t,Q,null,e,b);for(v in e)if(b=e[v],S=a[v],e.hasOwnProperty(v)&&b!==S&&(b!=null||S!=null))switch(v){case"children":case"dangerouslySetInnerHTML":if(b!=null)throw Error(f(137,t));break;default:nl(l,t,v,b,e,S)}return;default:if(si(t)){for(var vl in a)b=a[vl],a.hasOwnProperty(vl)&&b!==void 0&&!e.hasOwnProperty(vl)&&Jc(l,t,vl,void 0,e,b);for(x in e)b=e[x],S=a[x],!e.hasOwnProperty(x)||b===S||b===void 0&&S===void 0||Jc(l,t,x,b,e,S);return}}for(var y in a)b=a[y],a.hasOwnProperty(y)&&b!=null&&!e.hasOwnProperty(y)&&nl(l,t,y,null,e,b);for(D in e)b=e[D],S=a[D],!e.hasOwnProperty(D)||b===S||b==null&&S==null||nl(l,t,D,b,e,S)}var kc=null,Wc=null;function qn(l){return l.nodeType===9?l:l.ownerDocument}function Ro(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 Ho(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 $c(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 Fc=null;function Eh(){var l=window.event;return l&&l.type==="popstate"?l===Fc?!1:(Fc=l,!0):(Fc=null,!1)}var Bo=typeof setTimeout=="function"?setTimeout:void 0,Ah=typeof clearTimeout=="function"?clearTimeout:void 0,qo=typeof Promise=="function"?Promise:void 0,zh=typeof queueMicrotask=="function"?queueMicrotask:typeof qo<"u"?function(l){return qo.resolve(null).then(l).catch(Mh)}:Bo;function Mh(l){setTimeout(function(){throw l})}function Pc(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),Cu(t);return}e--}else a!=="$"&&a!=="$?"&&a!=="$!"||e++;a=u}while(a);Cu(t)}function Ic(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":Ic(a),ii(a);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(a.rel.toLowerCase()==="stylesheet")continue}l.removeChild(a)}}function Dh(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[Le])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=mt(l.nextSibling),l===null)break}return null}function Oh(l,t,a){if(t==="")return null;for(;l.nodeType!==3;)if((l.nodeType!==1||l.nodeName!=="INPUT"||l.type!=="hidden")&&!a||(l=mt(l.nextSibling),l===null))return null;return l}function mt(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 _o(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 Lo(l,t,a){switch(t=qn(a),l){case"html":if(l=t.documentElement,!l)throw Error(f(452));return l;case"head":if(l=t.head,!l)throw Error(f(453));return l;case"body":if(l=t.body,!l)throw Error(f(454));return l;default:throw Error(f(451))}}var ct=new Map,Vo=new Set;function _n(l){return typeof l.getRootNode=="function"?l.getRootNode():l.ownerDocument}var Qt=I.d;I.d={f:jh,r:Ch,D:Uh,C:Nh,L:Rh,m:Hh,X:qh,S:Bh,M:_h};function jh(){var l=Qt.f(),t=jn();return l||t}function Ch(l){var t=Pa(l);t!==null&&t.tag===5&&t.type==="form"?or(t):Qt.r(l)}var je=typeof document>"u"?null:document;function Yo(l,t,a){var e=je;if(e&&typeof t=="string"&&t){var u=Fl(t);u='link[rel="'+l+'"][href="'+u+'"]',typeof a=="string"&&(u+='[crossorigin="'+a+'"]'),Vo.has(u)||(Vo.add(u),l={rel:l,crossOrigin:a,href:t},e.querySelector(u)===null&&(t=e.createElement("link"),Nl(t,"link",l),Ml(t),e.head.appendChild(t)))}}function Uh(l){Qt.D(l),Yo("dns-prefetch",l,null)}function Nh(l,t){Qt.C(l,t),Yo("preconnect",l,t)}function Rh(l,t,a){Qt.L(l,t,a);var e=je;if(e&&l&&t){var u='link[rel="preload"][as="'+Fl(t)+'"]';t==="image"&&a&&a.imageSrcSet?(u+='[imagesrcset="'+Fl(a.imageSrcSet)+'"]',typeof a.imageSizes=="string"&&(u+='[imagesizes="'+Fl(a.imageSizes)+'"]')):u+='[href="'+Fl(l)+'"]';var n=u;switch(t){case"style":n=Ce(l);break;case"script":n=Ue(l)}ct.has(n)||(l=L({rel:"preload",href:t==="image"&&a&&a.imageSrcSet?void 0:l,as:t},a),ct.set(n,l),e.querySelector(u)!==null||t==="style"&&e.querySelector(Eu(n))||t==="script"&&e.querySelector(Au(n))||(t=e.createElement("link"),Nl(t,"link",l),Ml(t),e.head.appendChild(t)))}}function Hh(l,t){Qt.m(l,t);var a=je;if(a&&l){var e=t&&typeof t.as=="string"?t.as:"script",u='link[rel="modulepreload"][as="'+Fl(e)+'"][href="'+Fl(l)+'"]',n=u;switch(e){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":n=Ue(l)}if(!ct.has(n)&&(l=L({rel:"modulepreload",href:l},t),ct.set(n,l),a.querySelector(u)===null)){switch(e){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(a.querySelector(Au(n)))return}e=a.createElement("link"),Nl(e,"link",l),Ml(e),a.head.appendChild(e)}}}function Bh(l,t,a){Qt.S(l,t,a);var e=je;if(e&&l){var u=Ia(e).hoistableStyles,n=Ce(l);t=t||"default";var i=u.get(n);if(!i){var c={loading:0,preload:null};if(i=e.querySelector(Eu(n)))c.loading=5;else{l=L({rel:"stylesheet",href:l,"data-precedence":t},a),(a=ct.get(n))&&lf(l,a);var r=i=e.createElement("link");Ml(r),Nl(r,"link",l),r._p=new Promise(function(v,x){r.onload=v,r.onerror=x}),r.addEventListener("load",function(){c.loading|=1}),r.addEventListener("error",function(){c.loading|=2}),c.loading|=4,Ln(i,t,e)}i={type:"stylesheet",instance:i,count:1,state:c},u.set(n,i)}}}function qh(l,t){Qt.X(l,t);var a=je;if(a&&l){var e=Ia(a).hoistableScripts,u=Ue(l),n=e.get(u);n||(n=a.querySelector(Au(u)),n||(l=L({src:l,async:!0},t),(t=ct.get(u))&&tf(l,t),n=a.createElement("script"),Ml(n),Nl(n,"link",l),a.head.appendChild(n)),n={type:"script",instance:n,count:1,state:null},e.set(u,n))}}function _h(l,t){Qt.M(l,t);var a=je;if(a&&l){var e=Ia(a).hoistableScripts,u=Ue(l),n=e.get(u);n||(n=a.querySelector(Au(u)),n||(l=L({src:l,async:!0,type:"module"},t),(t=ct.get(u))&&tf(l,t),n=a.createElement("script"),Ml(n),Nl(n,"link",l),a.head.appendChild(n)),n={type:"script",instance:n,count:1,state:null},e.set(u,n))}}function Xo(l,t,a,e){var u=(u=wt.current)?_n(u):null;if(!u)throw Error(f(446));switch(l){case"meta":case"title":return null;case"style":return typeof a.precedence=="string"&&typeof a.href=="string"?(t=Ce(a.href),a=Ia(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=Ce(a.href);var n=Ia(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(Eu(l)))&&!n._p&&(i.instance=n,i.state.loading=5),ct.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},ct.set(l,a),n||Lh(u,l,a,i.state))),t&&e===null)throw Error(f(528,""));return i}if(t&&e!==null)throw Error(f(529,""));return null;case"script":return t=a.async,a=a.src,typeof a=="string"&&t&&typeof t!="function"&&typeof t!="symbol"?(t=Ue(a),a=Ia(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(f(444,l))}}function Ce(l){return'href="'+Fl(l)+'"'}function Eu(l){return'link[rel="stylesheet"]['+l+"]"}function Go(l){return L({},l,{"data-precedence":l.precedence,precedence:null})}function Lh(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}),Nl(t,"link",a),Ml(t),l.head.appendChild(t))}function Ue(l){return'[src="'+Fl(l)+'"]'}function Au(l){return"script[async]"+l}function Qo(l,t,a){if(t.count++,t.instance===null)switch(t.type){case"style":var e=l.querySelector('style[data-href~="'+Fl(a.href)+'"]');if(e)return t.instance=e,Ml(e),e;var u=L({},a,{"data-href":a.href,"data-precedence":a.precedence,href:null,precedence:null});return e=(l.ownerDocument||l).createElement("style"),Ml(e),Nl(e,"style",u),Ln(e,a.precedence,l),t.instance=e;case"stylesheet":u=Ce(a.href);var n=l.querySelector(Eu(u));if(n)return t.state.loading|=4,t.instance=n,Ml(n),n;e=Go(a),(u=ct.get(u))&&lf(e,u),n=(l.ownerDocument||l).createElement("link"),Ml(n);var i=n;return i._p=new Promise(function(c,r){i.onload=c,i.onerror=r}),Nl(n,"link",e),t.state.loading|=4,Ln(n,a.precedence,l),t.instance=n;case"script":return n=Ue(a.src),(u=l.querySelector(Au(n)))?(t.instance=u,Ml(u),u):(e=a,(u=ct.get(n))&&(e=L({},a),tf(e,u)),l=l.ownerDocument||l,u=l.createElement("script"),Ml(u),Nl(u,"link",e),l.head.appendChild(u),t.instance=u);case"void":return null;default:throw Error(f(443,t.type))}else t.type==="stylesheet"&&(t.state.loading&4)===0&&(e=t.instance,t.state.loading|=4,Ln(e,a.precedence,l));return t.instance}function Ln(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 lf(l,t){l.crossOrigin==null&&(l.crossOrigin=t.crossOrigin),l.referrerPolicy==null&&(l.referrerPolicy=t.referrerPolicy),l.title==null&&(l.title=t.title)}function tf(l,t){l.crossOrigin==null&&(l.crossOrigin=t.crossOrigin),l.referrerPolicy==null&&(l.referrerPolicy=t.referrerPolicy),l.integrity==null&&(l.integrity=t.integrity)}var Vn=null;function Zo(l,t,a){if(Vn===null){var e=new Map,u=Vn=new Map;u.set(a,e)}else u=Vn,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[Le]||n[Rl]||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 wo(l,t,a){l=l.ownerDocument||l,l.head.insertBefore(a,t==="title"?l.querySelector("head > title"):null)}function Vh(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 Ko(l){return!(l.type==="stylesheet"&&(l.state.loading&3)===0)}var zu=null;function Yh(){}function Xh(l,t,a){if(zu===null)throw Error(f(475));var e=zu;if(t.type==="stylesheet"&&(typeof a.media!="string"||matchMedia(a.media).matches!==!1)&&(t.state.loading&4)===0){if(t.instance===null){var u=Ce(a.href),n=l.querySelector(Eu(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,Ml(n);return}n=l.ownerDocument||l,a=Go(a),(u=ct.get(u))&&lf(a,u),n=n.createElement("link"),Ml(n);var i=n;i._p=new Promise(function(c,r){i.onload=c,i.onerror=r}),Nl(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 Gh(){if(zu===null)throw Error(f(475));var l=zu;return l.stylesheets&&l.count===0&&af(l,l.stylesheets),0<l.count?function(t){var a=setTimeout(function(){if(l.stylesheets&&af(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)af(this,this.stylesheets);else if(this.unsuspend){var l=this.unsuspend;this.unsuspend=null,l()}}}var Xn=null;function af(l,t){l.stylesheets=null,l.unsuspend!==null&&(l.count++,Xn=new Map,t.forEach(Qh,l),Xn=null,Yn.call(l))}function Qh(l,t){if(!(t.state.loading&4)){var a=Xn.get(l);if(a)var e=a.get(null);else{a=new Map,Xn.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 Mu={$$typeof:q,Provider:null,Consumer:null,_currentValue:Wl,_currentValue2:Wl,_threadCount:0};function Zh(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=ui(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.finishedLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=ui(0),this.hiddenUpdates=ui(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 Jo(l,t,a,e,u,n,i,c,r,v,x,D){return l=new Zh(l,t,a,i,c,r,v,D),t=1,n===!0&&(t|=24),n=nt(3,null,null,t),l.current=n,n.stateNode=l,t=Hi(),t.refCount++,l.pooledCache=t,t.refCount++,n.memoizedState={element:e,isDehydrated:a,cache:t},mc(n),l}function ko(l){return l?(l=se,l):se}function Wo(l,t,a,e,u,n){u=ko(u),e.context===null?e.context=u:e.pendingContext=u,e=aa(t),e.payload={element:a},n=n===void 0?null:n,n!==null&&(e.callback=n),a=ea(l,e,t),a!==null&&(_l(a,l,t),su(a,l,t))}function $o(l,t){if(l=l.memoizedState,l!==null&&l.dehydrated!==null){var a=l.retryLane;l.retryLane=a!==0&&a<t?a:t}}function ef(l,t){$o(l,t),(l=l.alternate)&&$o(l,t)}function Fo(l){if(l.tag===13){var t=Wt(l,67108864);t!==null&&_l(t,l,67108864),ef(l,67108864)}}var Gn=!0;function wh(l,t,a,e){var u=z.T;z.T=null;var n=I.p;try{I.p=2,uf(l,t,a,e)}finally{I.p=n,z.T=u}}function Kh(l,t,a,e){var u=z.T;z.T=null;var n=I.p;try{I.p=8,uf(l,t,a,e)}finally{I.p=n,z.T=u}}function uf(l,t,a,e){if(Gn){var u=nf(e);if(u===null)Kc(l,t,e,Qn,a),Io(l,e);else if(kh(u,l,t,a,e))e.stopPropagation();else if(Io(l,e),t&4&&-1<Jh.indexOf(l)){for(;u!==null;){var n=Pa(u);if(n!==null)switch(n.tag){case 3:if(n=n.stateNode,n.current.memoizedState.isDehydrated){var i=Ta(n.pendingLanes);if(i!==0){var c=n;for(c.pendingLanes|=2,c.entangledLanes|=2;i;){var r=1<<31-Ql(i);c.entanglements[1]|=r,i&=~r}At(n),(dl&6)===0&&(Mn=pt()+500,Su(0))}}break;case 13:c=Wt(n,2),c!==null&&_l(c,n,2),jn(),ef(n,2)}if(n=nf(e),n===null&&Kc(l,t,e,Qn,a),n===u)break;u=n}u!==null&&e.stopPropagation()}else Kc(l,t,e,null,a)}}function nf(l){return l=oi(l),cf(l)}var Qn=null;function cf(l){if(Qn=null,l=Ea(l),l!==null){var t=G(l);if(t===null)l=null;else{var a=t.tag;if(a===13){if(l=sl(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 Po(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(Nd()){case xf:return 2;case Tf:return 8;case _u:case Rd:return 32;case Ef:return 268435456;default:return 32}default:return 32}}var ff=!1,ra=null,oa=null,da=null,Du=new Map,Ou=new Map,ha=[],Jh="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 Io(l,t){switch(l){case"focusin":case"focusout":ra=null;break;case"dragenter":case"dragleave":oa=null;break;case"mouseover":case"mouseout":da=null;break;case"pointerover":case"pointerout":Du.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Ou.delete(t.pointerId)}}function ju(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=Pa(t),t!==null&&Fo(t)),l):(l.eventSystemFlags|=e,t=l.targetContainers,u!==null&&t.indexOf(u)===-1&&t.push(u),l)}function kh(l,t,a,e,u){switch(t){case"focusin":return ra=ju(ra,l,t,a,e,u),!0;case"dragenter":return oa=ju(oa,l,t,a,e,u),!0;case"mouseover":return da=ju(da,l,t,a,e,u),!0;case"pointerover":var n=u.pointerId;return Du.set(n,ju(Du.get(n)||null,l,t,a,e,u)),!0;case"gotpointercapture":return n=u.pointerId,Ou.set(n,ju(Ou.get(n)||null,l,t,a,e,u)),!0}return!1}function ld(l){var t=Ea(l.target);if(t!==null){var a=G(t);if(a!==null){if(t=a.tag,t===13){if(t=sl(a),t!==null){l.blockedOn=t,Gd(l.priority,function(){if(a.tag===13){var e=kl(),u=Wt(a,e);u!==null&&_l(u,a,e),ef(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=nf(l.nativeEvent);if(a===null){a=l.nativeEvent;var e=new a.constructor(a.type,a);ri=e,a.target.dispatchEvent(e),ri=null}else return t=Pa(a),t!==null&&Fo(t),l.blockedOn=a,!1;t.shift()}return!0}function td(l,t,a){Zn(l)&&a.delete(t)}function Wh(){ff=!1,ra!==null&&Zn(ra)&&(ra=null),oa!==null&&Zn(oa)&&(oa=null),da!==null&&Zn(da)&&(da=null),Du.forEach(td),Ou.forEach(td)}function wn(l,t){l.blockedOn===t&&(l.blockedOn=null,ff||(ff=!0,s.unstable_scheduleCallback(s.unstable_NormalPriority,Wh)))}var Kn=null;function ad(l){Kn!==l&&(Kn=l,s.unstable_scheduleCallback(s.unstable_NormalPriority,function(){Kn===l&&(Kn=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(cf(e||a)===null)continue;break}var n=Pa(a);n!==null&&(l.splice(t,3),t-=3,$i(n,{pending:!0,data:u,method:a.method,action:e},e,u))}}))}function Cu(l){function t(r){return wn(r,l)}ra!==null&&wn(ra,l),oa!==null&&wn(oa,l),da!==null&&wn(da,l),Du.forEach(t),Ou.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);)ld(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[Vl]||null;if(typeof n=="function")i||ad(a);else if(i){var c=null;if(n&&n.hasAttribute("formAction")){if(u=n,i=n[Vl]||null)c=i.formAction;else if(cf(u)!==null)continue}else c=i.action;typeof c=="function"?a[e+1]=c:(a.splice(e,3),e-=3),ad(a)}}}function sf(l){this._internalRoot=l}Jn.prototype.render=sf.prototype.render=function(l){var t=this._internalRoot;if(t===null)throw Error(f(409));var a=t.current,e=kl();Wo(a,e,l,t,null,null)},Jn.prototype.unmount=sf.prototype.unmount=function(){var l=this._internalRoot;if(l!==null){this._internalRoot=null;var t=l.containerInfo;l.tag===0&&Me(),Wo(l.current,2,null,l,null,null),jn(),t[Fa]=null}};function Jn(l){this._internalRoot=l}Jn.prototype.unstable_scheduleHydration=function(l){if(l){var t=jf();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&&ld(l)}};var ed=h.version;if(ed!=="19.0.0")throw Error(f(527,ed,"19.0.0"));I.findDOMNode=function(l){var t=l._reactInternals;if(t===void 0)throw typeof l.render=="function"?Error(f(188)):(l=Object.keys(l).join(","),Error(f(268,l)));return l=ka(t),l=l!==null?xa(l):null,l=l===null?null:l.stateNode,l};var $h={bundleType:0,version:"19.0.0",rendererPackageName:"react-dom",currentDispatcherRef:z,findFiberByHostInstance:Ea,reconcilerVersion:"19.0.0"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var kn=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!kn.isDisabled&&kn.supportsFiber)try{Be=kn.inject($h),Gl=kn}catch{}}return Uu.createRoot=function(l,t){if(!p(l))throw Error(f(299));var a=!1,e="",u=pr,n=Sr,i=xr,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=Jo(l,1,!1,null,null,a,e,u,n,i,c,null),l[Fa]=t.current,wc(l.nodeType===8?l.parentNode:l),new sf(t)},Uu.hydrateRoot=function(l,t,a){if(!p(l))throw Error(f(299));var e=!1,u="",n=pr,i=Sr,c=xr,r=null,v=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&&(r=a.unstable_transitionCallbacks),a.formState!==void 0&&(v=a.formState)),t=Jo(l,1,!0,t,a??null,e,u,n,i,c,r,v),t.context=ko(null),a=t.current,e=kl(),u=aa(e),u.callback=null,ea(a,u,e),t.current.lanes=e,_e(t,e),At(t),l[Fa]=t.current,wc(l),new Jn(t)},Uu.version="19.0.0",Uu}var sd;function jm(){if(sd)return rf.exports;sd=1;function s(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(s)}catch(h){console.error(h)}}return s(),rf.exports=Om(),rf.exports}var Cm=jm();const gd=st(s=>({isFunnel:!0,setFunnel:()=>s(h=>({isFunnel:!h.isFunnel}))}));st(s=>({isSorting:!0,setSorting:()=>s(h=>({isSorting:!h.isSorting}))}));const bd=st(s=>({isTextDark:!1,setTextDark:()=>s(h=>({isTextDark:!h.isTextDark}))})),hf=new Map,Um=(s,h)=>{var f;if(!s.startsWith("var("))return h(s);const o=(f=s.match(/var\((--[^)]+)\)/))==null?void 0:f[1];if(!o)return h("#ccc");if(hf.has(s)){h(hf.get(s));return}if(typeof document<"u"&&document.documentElement){const p=()=>{const A=getComputedStyle(document.documentElement).getPropertyValue(o).trim();return A?(hf.set(s,A),h(A),!0):!1};if(p())return;const T=new MutationObserver(()=>{p()&&T.disconnect()});T.observe(document.documentElement,{attributes:!0,subtree:!0})}else h("#ccc")},va={cardVariants:{hidden:{opacity:0,y:20},visible:{opacity:1,y:0}},numberVariants:{hidden:{opacity:0,scale:.5},visible:{opacity:1,scale:1,transition:{type:"spring",stiffness:100}}},titleVariants:{initial:{y:-20,opacity:0},animate:{y:0,opacity:1,transition:{type:"spring",stiffness:300,damping:20}},exit:{y:-20,opacity:0}},emptyStateVariants:{initial:{scale:.8,opacity:0},animate:{scale:1,opacity:1,transition:{type:"spring",stiffness:200,delay:.2}},exit:{scale:.8,opacity:0}},cardHoverEffect:{rest:{backgroundColor:"var(--input)",transition:{duration:.3}},hover:{backgroundColor:"var(--background-alt)",transition:{duration:.3}}},itemTabsVariants:{hidden:{opacity:0,x:-20},visible:s=>({opacity:1,x:0,transition:{delay:s*.1,duration:.3}})},graphTransitionVariants:{enter:{opacity:0,scale:.9,y:20,rotateX:45,filter:"blur(10px)"},center:{opacity:1,scale:1,y:0,rotateX:0,filter:"blur(0px)",transition:{filter:{duration:.4,ease:"easeOut"}}},exit:{opacity:0,scale:.9,y:-20,rotateX:-45,filter:"blur(10px)",transition:{filter:{duration:.4,ease:"easeIn"}}}},chartContainerVariants:{initial:{opacity:0,y:20},animate:{opacity:1,y:0,transition:{type:"tween",ease:"easeOut",duration:.4}},exit:{opacity:0,y:-20,transition:{type:"tween",ease:"easeIn",duration:.3}}},IconsVariants:{initial:{scale:.9,opacity:0},animate:{scale:1,opacity:1},hover:{scale:1.1,y:-5},tap:{scale:.95}},tooltipVariants:{hidden:{opacity:0,y:10,scale:.8},visible:{opacity:1,y:0,scale:1}},containerVariantsIcons:{initial:{opacity:0},animate:{opacity:1,transition:{staggerChildren:.1}}},containerTabsVariants:{initial:{scale:1},hover:{scale:1.05},tap:{scale:.95}},containerNoDataVariants:{hidden:{opacity:0},visible:{opacity:1,transition:{when:"beforeChildren",staggerChildren:.1,duration:.5}},exit:{opacity:0,transition:{duration:.3}}},textVariants:{hidden:{y:10,opacity:0},visible:{y:0,opacity:1,transition:{type:"spring",stiffness:100}}}},Ja=st(s=>({dataOrder:"descending",setDataOrder:h=>s({dataOrder:h})})),pd=({chartType:s="funnel",mode:h="value"})=>{const{containerNoDataVariants:o,textVariants:f}=va,{language:p}=ft(),T=()=>d.jsx(X.div,{className:"w-full h-56 flex flex-col items-center justify-center",variants:o,initial:"hidden",animate:"visible",exit:"exit",children:d.jsxs("svg",{width:"240",height:"200",viewBox:"0 0 240 200",children:[d.jsx(X.path,{d:"M20,0 L220,0 L180,40 L60,40 Z",fill:"#e5e7eb",stroke:"#d1d5db",strokeWidth:"1",initial:{opacity:0,y:-10},animate:{opacity:1,y:0},transition:{duration:.5,delay:0}}),d.jsx(X.path,{d:"M60,45 L180,45 L160,85 L80,85 Z",fill:"#e5e7eb",stroke:"#d1d5db",strokeWidth:"1",initial:{opacity:0,y:-10},animate:{opacity:1,y:0},transition:{duration:.5,delay:.1}}),d.jsx(X.path,{d:"M80,90 L160,90 L140,130 L100,130 Z",fill:"#e5e7eb",stroke:"#d1d5db",strokeWidth:"1",initial:{opacity:0,y:-10},animate:{opacity:1,y:0},transition:{duration:.5,delay:.2}}),d.jsx(X.path,{d:"M100,135 L140,135 L120,175 L120,175 Z",fill:"#e5e7eb",stroke:"#d1d5db",strokeWidth:"1",initial:{opacity:0,y:-10},animate:{opacity:1,y:0},transition:{duration:.5,delay:.3}})]})}),A=()=>d.jsx(X.div,{className:"w-full h-56 flex items-center justify-center",variants:o,initial:"hidden",animate:"visible",exit:"exit",children:d.jsxs("svg",{width:"200",height:"200",viewBox:"0 0 200 200",children:[d.jsx(X.circle,{cx:"100",cy:"100",r:"80",fill:"none",stroke:"#d1d5db",strokeWidth:"2",initial:{pathLength:0},animate:{pathLength:1},transition:{duration:.8}}),d.jsx(X.path,{d:"M100,100 L100,20 A80,80 0 0,1 180,100 Z",fill:"#e5e7eb",stroke:"#d1d5db",strokeWidth:"1",initial:{opacity:0,scale:.8},animate:{opacity:1,scale:1},transition:{duration:.4,delay:.3}}),d.jsx(X.path,{d:"M100,100 L180,100 A80,80 0 0,1 100,180 Z",fill:"#e5e7eb",stroke:"#d1d5db",strokeWidth:"1",initial:{opacity:0,scale:.8},animate:{opacity:1,scale:1},transition:{duration:.4,delay:.4}}),d.jsx(X.path,{d:"M100,100 L100,180 A80,80 0 0,1 20,100 Z",fill:"#e5e7eb",stroke:"#d1d5db",strokeWidth:"1",initial:{opacity:0,scale:.8},animate:{opacity:1,scale:1},transition:{duration:.4,delay:.5}}),d.jsx(X.path,{d:"M100,100 L20,100 A80,80 0 0,1 100,20 Z",fill:"#e5e7eb",stroke:"#d1d5db",strokeWidth:"1",initial:{opacity:0,scale:.8},animate:{opacity:1,scale:1},transition:{duration:.4,delay:.6}})]})});return d.jsxs("div",{className:"p-6 w-full max-w-md flex flex-col items-center",children:[d.jsx("div",{className:"w-full mb-6 relative",children:d.jsx(Fn,{mode:"wait",children:s==="funnel"?d.jsx(T,{},"funnel"):d.jsx(A,{},"pie")})}),d.jsxs(X.div,{className:"text-center",variants:o,initial:"hidden",animate:"visible",children:[d.jsx(X.h3,{className:"text-xl font-medium text-gray-800 mb-2",variants:f,children:p.semDadosParaExibir}),d.jsxs(X.p,{className:"text-gray-500 max-w-xs",variants:f,children:[p.naoExistemValoresParaMontarSeuGrafico,s==="funnel"?p.graficoFunil:p.graficoPizza,h==="contact"?` ${p.modoContacts}`:p.modoValores]})]})]})},Nm=`
  .funnel-container text {
    fill: white !important;
    paint-order: stroke !important;
    stroke: black !important;
    stroke-width: 2px !important;
    stroke-linejoin: round !important;
    font-weight: bold !important;
  }
`,Rm=`
  .nivo-pie text {
    fill: white !important;
    paint-order: stroke !important;
    stroke: black !important;
    stroke-width: 2px !important;
    stroke-linejoin: round !important;
    font-weight: bold !important;
  }
`,Wn=s=>new Promise(h=>{chrome.storage.local.get(s,o=>{h(o[s]&&Array.isArray(o[s])?o[s]:[])})}),$n={},mf=(s,h)=>{$n[s]&&clearTimeout($n[s]),$n[s]=window.setTimeout(()=>{const o={[s]:h};chrome.storage.local.set(o),$n[s]=null},300)},rd=s=>s?s.toString().replace(/\D/g,""):"",Sd=(s,h)=>!s||!h?!1:s===h?!0:rd(s)===rd(h),xd=s=>{let h=0;return s.forEach(o=>{Array.isArray(o.valNegocio)&&o.valNegocio.length>0&&o.valNegocio.forEach(f=>{if(!(!f||!f.valor))try{const T=f.valor.toString().replace(/[^\d,.]/g,"").replace(",","."),A=parseFloat(T)||0;h+=A}catch{}})}),h},vf=(s,h)=>{var T;const o=((T=s.chats)==null?void 0:T.map(A=>A.id).filter(Boolean))||[];if(o.length===0)return{value:0,updatedItem:{...s,profile:0,profileCalculated:!0}};const f=h.filter(A=>A&&A.userID&&o.some(j=>Sd(j,A.userID))),p=xd(f);return{value:p||0,updatedItem:{...s,profile:p||0,profileCalculated:!0}}},Nu=st(s=>({labels:[],labelsId:[],labelChats:{},isLoading:!1,error:null,fetchLabels:async()=>{s({isLoading:!0,error:null});try{const h=await ud.Labels("getAllLabels");if(!Array.isArray(h))throw new Error("O retorno das labels não é um array");const o=h.map(j=>({id:j.id,name:j.name||`Label ${j.id}`,hexColor:j.hexColor||"#cccccc",profile:0,chats:[]})),f={},p=o.map(async j=>{try{const O=await ud.Contact("List",{type:"withLabels",id:j.id}),U=O.map(M=>M.id);return f[j.id]=U,{...j,chats:O.map(M=>({id:M.id,name:M.name||M.id}))}}catch(O){return console.error(`Erro ao buscar chats para label ${j.id}:`,O),j}}),T=await Promise.all(p),A=[...new Set(Object.values(f).flat())];s({labels:T,labelsId:A,labelChats:f,isLoading:!1})}catch(h){console.error("Erro ao obter labels ou Contacts:",h),s({isLoading:!1,error:h instanceof Error?h.message:"Erro desconhecido ao carregar labels"})}}})),Hm={crm:{},userTabs:{},labels:{}},Bl=st((s,h)=>({selectedCrmType:"userTabs",selectedCrm:null,selectedUserTabs:null,selectedUserLabels:null,crmOptions:[],userTabsOptions:[],userLabelsOptions:[],profiles:[],calculatedValues:Hm,isLoading:!1,error:null,setSelectedCrmType:o=>{s({selectedCrmType:o}),requestAnimationFrame(()=>{h().verifyProfilesAndCalculate()})},setSelectedCrm:o=>{s({selectedCrm:o,selectedCrmType:"traditional"}),requestAnimationFrame(()=>{h().verifyProfilesAndCalculate()})},setSelectedUserLabels:o=>{s({selectedUserLabels:o,selectedCrmType:"labels"}),requestAnimationFrame(()=>{h().verifyProfilesAndCalculate()})},setSelectedUserTabs:o=>{s({selectedUserTabs:o,selectedCrmType:"userTabs"}),requestAnimationFrame(()=>{h().verifyProfilesAndCalculate()})},verifyProfilesAndCalculate:async()=>{const{profiles:o}=h();if(!o||o.length===0)try{const f=await Wn("perfil");s({profiles:f})}catch(f){console.error("Erro ao carregar perfis para verificação:",f),s({error:f instanceof Error?f.message:"Erro ao carregar perfis"});return}h().calculateBusinessValues()},fetchCrmOptions:async()=>{if(!h().isLoading){s({isLoading:!0,error:null});try{await Nu.getState().fetchLabels();const{isLoading:f}=Nu.getState();f&&await new Promise(U=>setTimeout(U,500));const[p,T,A]=await Promise.all([Wn("crm"),Wn("userTabs"),Wn("perfil")]),O=Nu.getState().labels||[];s(U=>{const M={crmOptions:p,userLabelsOptions:O,userTabsOptions:T,profiles:A,isLoading:!1};return!U.selectedCrm&&U.selectedCrmType==="traditional"&&p.length>0&&(M.selectedCrm=p[0]),!U.selectedUserTabs&&U.selectedCrmType==="userTabs"&&T.length>0&&(M.selectedUserTabs=T),(U.selectedCrmType==="labels"||!U.selectedUserLabels&&O.length>0)&&(M.selectedUserLabels=O),M}),requestAnimationFrame(()=>{h().calculateBusinessValues()})}catch(o){console.error("[ERROR] Fetch CRM Options Error:",o),s({isLoading:!1,error:o instanceof Error?o.message:"Erro desconhecido ao carregar dados"})}}},fetchCrmData:async()=>{try{await h().fetchCrmOptions(),h().setupStorageListeners()}catch(o){s({error:o instanceof Error?o.message:"Erro desconhecido ao carregar dados",isLoading:!1}),console.error("Erro ao buscar dados do CRM:",o)}},setupStorageListeners:()=>{chrome.storage.onChanged.removeListener(f),chrome.storage.onChanged.addListener(f);let o=null;function f(p,T){T==="local"&&["perfil","crm","userTabs"].some(j=>p[j])&&(o&&clearTimeout(o),o=window.setTimeout(async()=>{const j=h(),O={};let U=!1;if(p.perfil){const M=p.perfil.newValue;Array.isArray(M)&&(O.profiles=M,U=!0)}if(p.crm){const M=p.crm.newValue;if(Array.isArray(M)){if(O.crmOptions=M,j.selectedCrm){const C=M.find(R=>{var q;return R.id===((q=j.selectedCrm)==null?void 0:q.id)});C&&(O.selectedCrm=C)}else M.length>0&&j.selectedCrmType==="traditional"&&(O.selectedCrm=M[0]);U=!0}}if(p.userTabs){const M=p.userTabs.newValue;Array.isArray(M)&&(O.userTabsOptions=M,j.selectedCrmType==="userTabs"&&(O.selectedUserTabs=M),U=!0)}if(Object.keys(O).length>0&&(s(O),U)){const{labels:M}=Nu.getState();M&&M.length>0&&s({userLabelsOptions:M,selectedUserLabels:M}),requestAnimationFrame(()=>{h().calculateBusinessValues()})}o=null},300))}},getTabValue:o=>{var O,U,M;const{selectedCrmType:f,calculatedValues:p,selectedCrm:T,selectedUserTabs:A,selectedUserLabels:j}=h();return f==="traditional"?p.crm[o]??((O=T==null?void 0:T.list.find(C=>C.id===o))==null?void 0:O.profile)??0:f==="userTabs"?p.userTabs[o]??((U=A==null?void 0:A.find(C=>C.id===o))==null?void 0:U.profile)??0:f==="labels"?p.labels[o]??((M=j==null?void 0:j.find(C=>C.id===o))==null?void 0:M.profile)??0:0},calculateAllCRMValues:()=>{const{crmOptions:o,profiles:f}=h(),p=f||[];if(p.length===0)return;const T={crm:{...h().calculatedValues.crm},userTabs:{...h().calculatedValues.userTabs},labels:{...h().calculatedValues.labels}};o.forEach(A=>{A.list.forEach(j=>{const O=vf(j,p);T.crm[j.id]=O.value})}),s({calculatedValues:T})},calculateBusinessValues:()=>{var R;const{selectedCrm:o,selectedUserTabs:f,profiles:p,selectedUserLabels:T}=h(),A=Nu.getState(),{labels:j,labelChats:O}=A,U=p||[];if(U.length===0)return;const M={crm:{...h().calculatedValues.crm},userTabs:{...h().calculatedValues.userTabs},labels:{...h().calculatedValues.labels}};if((R=o==null?void 0:o.list)!=null&&R.length){const q=o.list.map(_=>{const K=vf(_,U);return M.crm[_.id]=K.value,K.updatedItem});s({selectedCrm:{...o,list:q},calculatedValues:M}),mf("calculatedCrm",q)}if(f!=null&&f.length){const q=f.map(_=>{const K=vf(_,U);return M.userTabs[_.id]=K.value,K.updatedItem});s({selectedUserTabs:q,calculatedValues:M}),mf("calculatedUserTabs",q)}const C=j!=null&&j.length?j:T||[];if(C.length>0){const q=C.map(_=>{var k;const K=[...new Set([...((k=_.chats)==null?void 0:k.map(Al=>Al.id))||[],...O[_.id]||[]])];if(K.length===0)return{..._,profile:0,profileCalculated:!0};const el=U.filter(Al=>(Al==null?void 0:Al.userID)&&K.some(zt=>Sd(zt,Al.userID))),El=xd(el);return M.labels[_.id]=El||0,{..._,profile:El||0,profileCalculated:!0}});s({selectedUserLabels:q,calculatedValues:M,userLabelsOptions:q})}mf("calculatedValues",M)}})),Bm=()=>Bl.getState().fetchCrmData();st(s=>({isOpen:!1,toggle:()=>s(h=>({isOpen:!h.isOpen})),close:()=>s({isOpen:!1}),open:()=>s({isOpen:!0})}));const Td=st((s,h)=>({isCaption:!1,setIsCaption:()=>s(o=>({isCaption:!o.isCaption}))})),Pn=st((s,h)=>({isContact:!0,setIsContact:()=>s(o=>({isContact:!o.isContact})),sortTabs:o=>{var j;const f=h().isContact,p=Ja.getState().dataOrder,T=Ru.getState().orderLabels;if(!Array.isArray(o)||o.length===0)return[];let A=[...o];if((p==="original"||p==="inverted")&&((j=A[0])!=null&&j.hasOwnProperty("name"))&&(T==null?void 0:T.length)>0){const O=new Map;T.forEach((U,M)=>{O.set(U,M)}),A.sort((U,M)=>O.has(U.id)&&O.has(M.id)?O.get(U.id)-O.get(M.id):O.has(U.id)?-1:O.has(M.id)?1:0),p==="inverted"&&A.reverse()}else p!=="original"&&(p==="inverted"?A.reverse():A.sort((O,U)=>{var R,q;const M=f?((R=O.chats)==null?void 0:R.length)||0:Number(O.profile)||0,C=f?((q=U.chats)==null?void 0:q.length)||0:Number(U.profile)||0;return p==="ascending"?M-C:C-M}));return A}})),Sf=()=>{const[s,h]=al.useState({data:[],isEmpty:!0,isEmptyContact:!0,isEmptyValue:!0,totalFormatted:"R$ 0,00",averageFormatted:"R$ 0,00",taxaConversaoPorContact:"R$ 0,00",contacts:0,excelData:[]}),{selectedCrm:o,selectedUserTabs:f,calculatedValues:p,selectedCrmType:T,selectedUserLabels:A}=Bl(),{isContact:j}=Pn.getState(),{dataOrder:O}=Ja.getState(),U=Ru(M=>M.orderLabels);return al.useEffect(()=>{let M=[];T==="traditional"&&(o!=null&&o.list)?(M=o.list.map(z=>{var L;return{id:z.id,value:((L=z.chats)==null?void 0:L.length)||0,name:z.name||`Lista ${z.id}`}}),o.list.reduce((z,L)=>{var $;return z+((($=L.chats)==null?void 0:$.length)||0)},0)):T==="userTabs"&&f?(M=f.map(z=>{var L;return{id:z.id,value:((L=z.chats)==null?void 0:L.length)||0,name:z.tag||`Aba ${z.id}`}}),f.reduce((z,L)=>{var $;return z+((($=L.chats)==null?void 0:$.length)||0)},0)):T==="labels"&&A&&(M=A.map(z=>{var L;return{id:z.id,value:((L=z.chats)==null?void 0:L.length)||0,name:z.name||`Etiqueta ${z.id}`}}),A.reduce((z,L)=>{var $;return z+((($=L.chats)==null?void 0:$.length)||0)},0));let C=[],R=0;T==="traditional"&&(o!=null&&o.list)?(C=o.list.map(z=>({id:z.id,value:p.crm[z.id]||0,name:z.name||`Lista ${z.id}`})),R=o.list.reduce((z,L)=>{var $;return z+((($=L.chats)==null?void 0:$.length)||0)},0)):T==="userTabs"&&f?(C=f.map(z=>({id:z.id,value:p.userTabs[z.id]||0,name:z.tag||`Aba ${z.id}`})),R=f.reduce((z,L)=>{var $;return z+((($=L.chats)==null?void 0:$.length)||0)},0)):T==="labels"&&A&&(C=A.map(z=>({id:z.id,value:z.profile||0,name:z.name||`Etiqueta ${z.id}`})),R=A.reduce((z,L)=>{var $;return z+((($=L.chats)==null?void 0:$.length)||0)},0));const q=[...M],_=[...C];if((O==="original"||O==="inverted")&&T==="labels"&&(U==null?void 0:U.length)>0){const z=new Map;U.forEach(($,rt)=>z.set($,rt));const L=($,rt)=>z.has($.id)&&z.has(rt.id)?z.get($.id)-z.get(rt.id):z.has($.id)?-1:z.has(rt.id)?1:0;M.sort(L),C.sort(L),O==="inverted"&&(M.reverse(),C.reverse())}else if(O!=="original")if(O==="inverted")M=[...q].reverse(),C=[..._].reverse();else{const z=(L,$)=>O==="ascending"?L.value-$.value:O==="descending"?$.value-L.value:0;M.sort(z),C.sort(z)}const K=j?M:C,el=K.filter(z=>z.value>0),El=C.filter(z=>z.value>0),k=El.reduce((z,L)=>z+L.value,0),Al=El.length?k/C.length:0,zt=R>0?(El.length/R*100).toFixed(2)+"%":"0.00%",yt=z=>z.toLocaleString("pt-BR",{style:"currency",currency:"BRL",maximumFractionDigits:2}),Ll=M.length===0||M.every(z=>z.value===0),ya=C.length===0||C.every(z=>z.value===0);h({data:el,isEmpty:j?Ll:ya,isEmptyContact:Ll,isEmptyValue:ya,totalFormatted:yt(k),averageFormatted:yt(Al),taxaConversaoPorContact:zt,contacts:R,excelData:K})},[o,f,p,T,j,A,O,JSON.stringify(U)]),s},Ed=()=>{const[s,h]=al.useState({data:[{id:"",color:"#ccc"}],isEmpty:!0,colorMap:{"":"#ccc"}}),o=Bl(A=>A.selectedCrm),f=Bl(A=>A.selectedUserTabs),p=Bl(A=>A.selectedCrmType),T=Bl(A=>A.selectedUserLabels);return al.useEffect(()=>{let A=[];p==="traditional"&&(o!=null&&o.list)?A=o.list.map(O=>({id:O.id,color:O.hexColor||"#ccc"})):p==="userTabs"&&Array.isArray(f)?(typeof window<"u"&&document.documentElement.style.getPropertyValue("--primaria").trim(),A=f.map(O=>({id:O.id,color:"var(--primaria)"}))):p==="labels"&&Array.isArray(T)&&(A=T.map(O=>({id:O.id,color:O.hexColor||"#ccc"})));const j=!A.length;j&&(A=[{id:"",color:"#ccc"}]),h({data:A,isEmpty:j,colorMap:Object.fromEntries(A.map(O=>[O.id,O.color]))})},[o,f,T,p]),s},qm=()=>{const{data:s,isEmpty:h}=Sf(),o=Ed(),{isContact:f}=Pn(),{isTextDark:p}=bd(),{dataOrder:T}=Ja(),[A,j]=al.useState(null),[O,U]=al.useState({});return al.useEffect(()=>{if(h||o.data.length===0){j(null),U({});return}(async()=>{const C={};await Promise.all(o.data.map(_=>new Promise(K=>{Um(_.color,el=>{C[_.id]=el,K()})})));const R=s.map(_=>({id:_.name,value:_.value,label:_.name,originalId:_.id})),q={};R.forEach(_=>{q[_.id]=C[_.originalId]||"#ccc"}),j(R),U(q)})()},[s,o.data,f,h,T]),d.jsxs(d.Fragment,{children:[d.jsx("style",{children:Nm}),d.jsx("div",{className:"flex justify-center items-center w-full h-full",children:h?d.jsx(pd,{chartType:"funnel",mode:f?"contact":"value"}):A?d.jsx("div",{className:"funnel-container w-full h-full",children:d.jsx(mm,{data:A,margin:{top:20,right:40,bottom:20,left:40},shapeBlending:.1,interpolation:"smooth",colors:M=>O[M.id]||"#ccc",borderWidth:8,borderColor:{from:"color",modifiers:[]},borderOpacity:.6,labelColor:"white",currentPartSizeExtension:5,currentBorderWidth:15,motionConfig:"gentle",direction:"vertical",tooltip:({part:M})=>d.jsxs("div",{style:{background:p?"black":"white",color:p?"white":"black",padding:"5px 10px",borderRadius:"5px",boxShadow:"0px 2px 5px rgba(0,0,0,0.2)"},children:[d.jsx("strong",{children:M.data.label}),": ",M.data.value]})})}):d.jsx("div",{children:"Carregando visualização..."})})]})},_m=()=>{const{isCaption:s}=Td(),{isTextDark:h}=bd(),{dataOrder:o}=Ja(),f=Sf(),p=Ed(),[T,A]=al.useState([]),[j,O]=al.useState(!1);al.useEffect(()=>{var _,K;const M=((_=f==null?void 0:f.data)==null?void 0:_.length)>0,C=((K=p==null?void 0:p.data)==null?void 0:K.length)>0;if(O(M&&C),!M||!C){A([]);return}const R={};p.data.forEach(el=>{R[el.id]=el.color});const q=f.data.map(el=>({id:el.name,value:el.value,label:el.name,color:R[el.id]||"#ccc"}));A(q)},[f==null?void 0:f.data,p==null?void 0:p.data,o]);const U={labels:{text:{fill:"white",fontWeight:"bold",stroke:"black",strokeWidth:2,paintOrder:"stroke",strokeLinejoin:"round"}},tooltip:{container:{background:h?"black":"white",color:h?"white":"black",fontSize:12,borderRadius:5,boxShadow:"0px 2px 5px rgba(0,0,0,0.2)",padding:"5px 10px"}}};return d.jsxs(d.Fragment,{children:[d.jsx("style",{children:Rm}),d.jsx("div",{className:"flex justify-center items-center w-full h-full",children:j?d.jsx("div",{className:"w-full h-full flex justify-center items-center",children:d.jsx(vm,{data:T,margin:{top:35,right:20,bottom:35,left:20},innerRadius:.5,padAngle:.7,cornerRadius:0,activeOuterRadiusOffset:8,colors:M=>M.data.color,borderWidth:0,borderColor:{from:"color",modifiers:[["darker",.2]]},enableArcLinkLabels:s,arcLabelsTextColor:"white",motionConfig:"wobbly",legends:[],theme:U,tooltip:({datum:M})=>d.jsxs("div",{style:{background:h?"black":"white",color:h?"white":"black",padding:"5px 10px",borderRadius:"5px",boxShadow:"0px 2px 5px rgba(0,0,0,0.2)"},children:[d.jsx("strong",{children:M.label}),": ",M.value]})})}):d.jsx("div",{className:"w-full h-full flex justify-center items-center",children:d.jsx(pd,{chartType:"pie"})})})]})},yf=({isSelected:s,onClick:h,icon:o,label:f,count:p})=>d.jsxs("button",{onClick:h,className:`select-none cursor-pointer flex items-center gap-2 px-4 py-2 rounded-lg transition-all ${s?"bg-[var(--primaria)] text-white shadow-md":"dark:bg-[var(--funil-background)] bg-gray-200 text-[var(--text)] hover:bg-opacity-80"}`,children:[o,f,d.jsx(X.span,{initial:{scale:0},animate:{scale:1},className:"ml-1 text-xs bg-white bg-opacity-20 rounded-full px-2 py-0.5",children:p})]});function Ad(s){return vt({attr:{viewBox:"0 0 24 24",fill:"currentColor"},child:[{tag:"path",attr:{d:"M10 3a1 1 0 0 1 0 2h-6a1 1 0 1 1 0 -2z"},child:[]},{tag:"path",attr:{d:"M20 3a1 1 0 0 1 0 2h-6a1 1 0 0 1 0 -2z"},child:[]},{tag:"path",attr:{d:"M8 7a3 3 0 0 1 3 3v8a3 3 0 0 1 -3 3h-2a3 3 0 0 1 -3 -3v-8a3 3 0 0 1 3 -3z"},child:[]},{tag:"path",attr:{d:"M18 7a3 3 0 0 1 3 3v2a3 3 0 0 1 -3 3h-2a3 3 0 0 1 -3 -3v-2a3 3 0 0 1 3 -3z"},child:[]}]})(s)}function gf(s){return vt({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"path",attr:{d:"M3 9l4 -4l4 4m-4 -4v14"},child:[]},{tag:"path",attr:{d:"M21 15l-4 4l-4 -4m4 4v-14"},child:[]}]})(s)}function Lm(s){return vt({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"path",attr:{d:"M13.5 19h-8.5a2 2 0 0 1 -2 -2v-11a2 2 0 0 1 2 -2h4l3 3h7a2 2 0 0 1 2 2v1.5"},child:[]},{tag:"path",attr:{d:"M21 15h-2.5a1.5 1.5 0 0 0 0 3h1a1.5 1.5 0 0 1 0 3h-2.5"},child:[]},{tag:"path",attr:{d:"M19 21v1m0 -8v1"},child:[]}]})(s)}function zd(s){return vt({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"path",attr:{d:"M4 4l6 0"},child:[]},{tag:"path",attr:{d:"M14 4l6 0"},child:[]},{tag:"path",attr:{d:"M4 8m0 2a2 2 0 0 1 2 -2h2a2 2 0 0 1 2 2v8a2 2 0 0 1 -2 2h-2a2 2 0 0 1 -2 -2z"},child:[]},{tag:"path",attr:{d:"M14 8m0 2a2 2 0 0 1 2 -2h2a2 2 0 0 1 2 2v2a2 2 0 0 1 -2 2h-2a2 2 0 0 1 -2 -2z"},child:[]}]})(s)}function x1(s){return vt({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"path",attr:{d:"M7 12l5 5l-1.5 1.5a3.536 3.536 0 1 1 -5 -5l1.5 -1.5z"},child:[]},{tag:"path",attr:{d:"M17 12l-5 -5l1.5 -1.5a3.536 3.536 0 1 1 5 5l-1.5 1.5z"},child:[]},{tag:"path",attr:{d:"M3 21l2.5 -2.5"},child:[]},{tag:"path",attr:{d:"M18.5 5.5l2.5 -2.5"},child:[]},{tag:"path",attr:{d:"M10 11l-2 2"},child:[]},{tag:"path",attr:{d:"M13 14l-2 2"},child:[]}]})(s)}function Vm(s){return vt({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"path",attr:{d:"M5 21v-16a2 2 0 0 1 2 -2h10a2 2 0 0 1 2 2v16l-3 -2l-2 2l-2 -2l-2 2l-2 -2l-3 2"},child:[]},{tag:"path",attr:{d:"M14.8 8a2 2 0 0 0 -1.8 -1h-2a2 2 0 1 0 0 4h2a2 2 0 1 1 0 4h-2a2 2 0 0 1 -1.8 -1"},child:[]},{tag:"path",attr:{d:"M12 6v10"},child:[]}]})(s)}function Ym(s){return vt({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"path",attr:{d:"M4 6l7 0"},child:[]},{tag:"path",attr:{d:"M4 12l7 0"},child:[]},{tag:"path",attr:{d:"M4 18l9 0"},child:[]},{tag:"path",attr:{d:"M15 9l3 -3l3 3"},child:[]},{tag:"path",attr:{d:"M18 6l0 12"},child:[]}]})(s)}function Xm(s){return vt({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"path",attr:{d:"M4 6l9 0"},child:[]},{tag:"path",attr:{d:"M4 12l7 0"},child:[]},{tag:"path",attr:{d:"M4 18l7 0"},child:[]},{tag:"path",attr:{d:"M15 15l3 3l3 -3"},child:[]},{tag:"path",attr:{d:"M18 6l0 12"},child:[]}]})(s)}function T1(s){return vt({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"path",attr:{d:"M3 19c3.333 -2 5 -4 5 -6c0 -3 -1 -3 -2 -3s-2.032 1.085 -2 3c.034 2.048 1.658 2.877 2.5 4c1.5 2 2.5 2.5 3.5 1c.667 -1 1.167 -1.833 1.5 -2.5c1 2.333 2.333 3.5 4 3.5h2.5"},child:[]},{tag:"path",attr:{d:"M20 17v-12c0 -1.121 -.879 -2 -2 -2s-2 .879 -2 2v12l2 2l2 -2z"},child:[]},{tag:"path",attr:{d:"M16 7h4"},child:[]}]})(s)}const Gm=({crm:s,isSelected:h,onClick:o})=>d.jsx("div",{onClick:o,className:"px-3 py-1.5 cursor-pointer transition-all group",children:d.jsxs("div",{className:"flex items-center justify-between rounded-md px-2 py-0.5 group-hover:bg-[var(--input)]",children:[d.jsxs("div",{className:"flex items-center gap-1.5",children:[d.jsx(Ad,{style:{color:h?"var(--primaria)":s.hexColor},size:16}),d.jsx("span",{className:h?"text-[var(--primaria)] font-medium":"text-[var(--text)]",children:s.name})]}),h&&d.jsx(am,{className:"text-[var(--primaria)]",size:16})]})}),Qm=()=>{var K,el,El;const{selectedCrmType:s,setSelectedCrmType:h,crmOptions:o,userTabsOptions:f,selectedCrm:p,setSelectedCrm:T,userLabelsOptions:A}=Bl(),{language:j}=ft(),{isBusiness:O}=hd(),[U,M]=al.useState(!1),C=()=>M(!U),R=()=>M(!1),q=al.useRef(null);al.useEffect(()=>{s==="traditional"&&o.length>0&&!p&&T(o[0])},[s,o,p,T]),al.useEffect(()=>{const k=Al=>{q.current&&!q.current.contains(Al.target)&&R()};return document.addEventListener("mousedown",k),()=>document.removeEventListener("mousedown",k)},[R]);const _=al.useCallback(k=>{h(k),k==="traditional"&&o.length>0&&(!p||s!=="traditional")&&T(o[0])},[h,o,p,s,T]);return d.jsxs("div",{className:"p-4 border-b border-[var(--border)] bg-[var(--card-background)]",children:[d.jsxs("div",{className:"flex gap-2 justify-center",children:[d.jsx(yf,{isSelected:s==="traditional",onClick:()=>_("traditional"),icon:d.jsx(zd,{}),label:"CRM",count:o.length}),d.jsx(yf,{isSelected:s==="userTabs",onClick:()=>_("userTabs"),icon:d.jsx(vd,{}),label:j.abas,count:f.length}),O&&d.jsx(yf,{isSelected:s==="labels",onClick:()=>_("labels"),icon:d.jsx(yd,{}),label:j.etiquetas,count:A.length})]}),s==="traditional"&&o.length>0&&d.jsx("div",{className:"mt-4 relative rounded-md bg-[var(--funil-background)] z-[100]",ref:q,children:d.jsxs(X.div,{className:"relative z-[100]",initial:{opacity:0,y:-10},animate:{opacity:1,y:0},transition:{duration:.3},children:[d.jsxs("div",{onClick:C,className:"w-full rounded-lg p-2 border border-[var(--border)] bg-gray-200 dark:bg-[var(--funil-background)] text-[var(--text)] flex items-center justify-between cursor-pointer hover:border-[var(--primaria)] transition-all shadow-sm hover:shadow select-none",children:[d.jsxs("div",{className:"flex items-center gap-2",children:[d.jsx("span",{className:"bg-[var(--primaria)] p-1.5 rounded text-white",children:d.jsx(Ad,{size:16})}),d.jsx("span",{className:`font-medium ${p?"":"text-[var(--text-secondary)]"}`,children:p?p.name:j.SelectCRM})]}),d.jsx(X.div,{animate:{rotate:U?180:0},transition:{duration:.2},children:d.jsx(em,{className:"text-[var(--text-secondary)]"})})]}),d.jsx(Fn,{children:U&&d.jsx(X.div,{className:"fixed left-0 right-0 w-full mt-1 bg-gray-100 dark:bg-[var(--card-background)] border border-[var(--border)] rounded-lg shadow-lg z-[9999] overflow-y-auto max-h-64 py-2",style:{width:(K=q.current)==null?void 0:K.clientWidth,left:(el=q.current)==null?void 0:el.getBoundingClientRect().left,top:((El=q.current)==null?void 0:El.getBoundingClientRect().bottom)+window.scrollY},initial:{opacity:0,y:-10,height:0},animate:{opacity:1,y:0,height:"auto"},exit:{opacity:0,y:-10,height:0},transition:{duration:.2},children:o.map(k=>d.jsx(Gm,{crm:k,isSelected:(p==null?void 0:p.id)===k.id,onClick:()=>{T(k),R()}},k.id))})})]})})]})};function Re(...s){return bm(pm(s))}const Za=al.forwardRef(({className:s,...h},o)=>{const[f,p]=al.useState("#e9e9ff");return al.useEffect(()=>{const T=()=>{const j=document.documentElement.getAttribute("data-theme")==="dark";p(j?"#27272a":"#e9e9ff")};T();const A=new MutationObserver(T);return A.observe(document.documentElement,{attributes:!0,attributeFilter:["data-theme"]}),()=>A.disconnect()},[]),d.jsx("div",{ref:o,style:{border:`1px solid ${f}`},className:Re("rounded-lg bg-card text-card-foreground shadow-sm",s),...h})});Za.displayName="Card";const wa=al.forwardRef(({className:s,...h},o)=>d.jsx("div",{ref:o,className:Re("flex flex-col space-y-1.5 p-6",s),...h}));wa.displayName="CardHeader";const Ne=al.forwardRef(({className:s,...h},o)=>d.jsx("div",{ref:o,className:Re("text-2xl font-semibold leading-none tracking-tight",s),...h}));Ne.displayName="CardTitle";const Zm=al.forwardRef(({className:s,...h},o)=>d.jsx("div",{ref:o,className:Re("text-sm text-muted-foreground",s),...h}));Zm.displayName="CardDescription";const Ka=al.forwardRef(({className:s,...h},o)=>d.jsx("div",{ref:o,className:Re("p-6 pt-0",s),...h}));Ka.displayName="CardContent";const wm=al.forwardRef(({className:s,...h},o)=>d.jsx("div",{ref:o,className:Re("flex items-center p-6 pt-0",s),...h}));wm.displayName="CardFooter";function Km(s){return vt({attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M48 87.2c0 5.8 2 11.4 5.6 15.7l152.2 179.8c3.6 4.3 5.6 9.9 5.6 15.7v107c0 10 5.9 18.8 14.6 22l55 19.8c9.6 3.5 19.6-4.3 19.6-15.3V298.3c0-5.8 2-11.4 5.6-15.7l152.2-179.8c3.6-4.3 5.6-9.9 5.6-15.7 0-12.8-9.6-23.2-21.4-23.2H69.4C57.6 64 48 74.4 48 87.2z"},child:[]}]})(s)}function Jm(s){return vt({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{d:"M12 2C6.486 2 2 6.486 2 12s4.486 10 10 10 10-4.486 10-10S17.514 2 12 2zm1 14.915V18h-2v-1.08c-2.339-.367-3-2.002-3-2.92h2c.011.143.159 1 2 1 1.38 0 2-.585 2-1 0-.324 0-1-2-1-3.48 0-4-1.88-4-3 0-1.288 1.029-2.584 3-2.915V6.012h2v1.109c1.734.41 2.4 1.853 2.4 2.879h-1l-1 .018C13.386 9.638 13.185 9 12 9c-1.299 0-2 .516-2 1 0 .374 0 1 2 1 3.48 0 4 1.88 4 3 0 1.288-1.029 2.584-3 2.915z"},child:[]}]})(s)}const km=()=>{const{dataOrder:s,setDataOrder:h}=Ja(),{language:o}=ft(),{isFunnel:f,setFunnel:p}=gd(),{containerVariantsIcons:T,IconsVariants:A,tooltipVariants:j}=va,{isContact:O,setIsContact:U}=Pn(),{isCaption:M,setIsCaption:C}=Td(),[R,q]=al.useState(null),_=()=>{if(s==="original")h("inverted");else if(s==="inverted")h("ascending");else if(s==="ascending")h("descending");else return h("original")},K=()=>{switch(s){case"original":return d.jsx(gf,{});case"ascending":return d.jsx(Ym,{});case"descending":return d.jsx(Xm,{});case"inverted":return d.jsx(gf,{rotate:180});default:return d.jsx(gf,{})}},el=()=>{switch(s){case"original":return o.ordenacaoOriginal;case"ascending":return o.ordenacaoCrescente;case"descending":return o.ordenacaoDecrescente;case"inverted":return o.ordenacaoInvertida;default:return o.ordenacaoOriginal}},El=[{id:0,name:f?o.modoGraficoCircular:o.modoGraficoFunil,icon:f?d.jsx(um,{size:20}):d.jsx(Km,{size:20}),func:p},{id:1,name:O?o.ordenarPorValor:o.ordenarPorContacts,icon:O?d.jsx(Jm,{}):d.jsx(nm,{}),func:U},...f?[{id:2,name:el(),icon:K(),func:_}]:[],...f?[]:[{id:3,name:M?o.ativarLegendas:o.desativarLegendas,icon:M?d.jsx(im,{}):d.jsx(cm,{}),func:C}]];return d.jsx(X.ul,{className:"flex items-center gap-2 mr-1",variants:T,initial:"initial",animate:"animate",children:El.map(k=>d.jsxs(X.li,{variants:A,initial:"initial",animate:"animate",whileHover:"hover",whileTap:"tap",onHoverStart:()=>q(k.id),onHoverEnd:()=>q(null),transition:{type:"spring",stiffness:400,damping:17},className:"relative",children:[d.jsx(X.div,{className:"flex dark:bg-[var(--funil-background)] bg-gray-200 hover:text-white items-center justify-center rounded-lg p-2 hover:bg-[var(--primaria)] dark:hover:bg-[var(--primaria)] transition duration-300 cursor-pointer",onClick:k.func,whileHover:{boxShadow:"0px 5px 10px rgba(0, 0, 0, 0.2)"},children:d.jsx(X.div,{animate:{rotate:f&&k.id===0||O&&k.id===1?360:0},transition:{duration:.5},children:k.icon})}),R===k.id&&d.jsx(X.div,{className:"absolute -bottom-8 left-1/2 transform -translate-x-1/2 bg-[var(--primaria)] text-white px-2 py-1 rounded text-xs whitespace-nowrap z-10",variants:j,initial:"hidden",animate:"visible",exit:"hidden",transition:{duration:.2},children:k.name})]},k.id))})},Zt=({message:s,animate:h,criar:o,function:f})=>{const{emptyStateVariants:p}=va,{selectedCrmType:T}=Bl();return d.jsxs(X.div,{className:"text-[var(--text)] text-center py-12 rounded-xl border border-dashed border-[var(--border)] bg-[var(--background-alt)]",variants:p,children:[d.jsx(X.div,{initial:h?{y:0}:{rotate:-5},animate:h?{y:-10}:{rotate:5},transition:{duration:h?1.5:2,repeat:1/0,repeatType:"reverse",ease:"easeInOut"},className:"inline-block mb-4",children:T==="labels"?d.jsx(yd,{size:48,className:`mx-auto opacity-60 ${h?"text-[var(--border)]":"text-[var(--primaria)]"}`}):d.jsx(fm,{size:48,className:`mx-auto opacity-60 ${h?"text-[var(--border)]":"text-[var(--primaria)]"}`})}),d.jsx("p",{className:"font-medium",children:s}),o&&d.jsx("p",{className:"font-bold text-[var(--primaria)] cursor-pointer hover:underline",onClick:f,children:o})]})},od=({label:s,index:h,delay:o,hexColor:f})=>{const{selectedCrmType:p}=Bl();return d.jsx(X.div,{style:{backgroundColor:p==="traditional"?f:"var(--primaria)"},className:"text-white flex items-center justify-center text-xs font-medium  bg-[var(--primaria)] px-3 py-1 rounded-md shadow-md whitespace-nowrap overflow-hidden",initial:{opacity:0,x:-10},animate:{opacity:1,x:0,transition:{delay:h*.08+o,duration:.3,ease:"easeOut"}},whileHover:{scale:1.03,boxShadow:"0 4px 12px rgba(0,0,0,0.12)",transition:{duration:.2}},children:d.jsx(X.span,{initial:{opacity:0},animate:{opacity:1,transition:{delay:h*.08+(o+.15),duration:.25}},children:s})})},Wm=({tab:s,index:h,tabColor:o})=>{var _;const{language:f}=ft(),{selectedCrmType:p,getTabValue:T}=Bl(),{itemTabsVariants:A,cardHoverEffect:j}=va,{dataOrder:O}=Ja(),U=K=>K==null?"0,00":K.toLocaleString("pt-BR",{minimumFractionDigits:2}),M=T(s.id),C=((_=s.chats)==null?void 0:_.length)||0,R=()=>p==="userTabs"?s.tag||"":s.name||"",q=()=>p==="userTabs"?d.jsx(vd,{size:24,style:{color:o},className:"drop-shadow-md"}):p==="labels"?d.jsx(sm,{size:24,style:{color:o},className:"drop-shadow-md"}):d.jsx(zd,{size:24,style:{color:o},className:"drop-shadow-md"});return d.jsx(X.li,{variants:A,custom:h,className:"rounded-lg border border-[var(--border)] overflow-hidden backdrop-blur-md shadow-md transition-shadow duration-250 hover:shadow-lg",children:d.jsxs(X.div,{className:"!bg-[var(--card-background)] flex items-center p-4 relative",initial:"rest",whileHover:"hover",variants:j,children:[d.jsx(X.div,{className:"absolute left-0 top-0 bottom-0 w-1.5",style:{backgroundColor:p==="labels"&&s.hexColor||o},layoutId:`color-bar-${s.id}`}),d.jsxs("div",{className:"flex items-center gap-3 flex-shrink-0 pl-2 w-1/2",children:[q(),d.jsx(X.span,{className:"font-medium text-[var(--text)] truncate max-w-[130px]",children:R()})]}),d.jsxs("div",{className:"flex flex-nowrap justify-end ml-auto w-1/2 gap-4",children:[d.jsx("div",{className:"flex-1 min-w-[120px] flex justify-end",children:d.jsx(od,{label:`${f.contacts}: ${C}`,index:h,delay:.3,hexColor:p==="labels"?s.hexColor:void 0})}),d.jsx("div",{className:"flex-1 min-w-[150px] flex justify-end",children:d.jsx(od,{label:`${f.valor}: R$${U(M)}`,index:h,delay:.4,hexColor:p==="labels"?s.hexColor:void 0})})]})]})})},$m=st((s,h)=>({getActiveTabs:()=>{const{selectedCrmType:o,selectedCrm:f,selectedUserTabs:p,selectedUserLabels:T,userLabelsOptions:A}=Bl.getState();return o==="traditional"?f?f.list||[]:[]:o==="userTabs"?p?p.filter(j=>!j.hide)||[]:[]:o==="labels"?T&&T.length>0?T:A&&A.length>0?A:[]:[]},getTabColor:o=>{const{selectedCrmType:f}=Bl.getState();return f==="traditional"&&"hexColor"in o?o.hexColor||"var(--primaria)":f==="labels"?o.hexColor||"#2196F3":"var(--primaria)"}})),Fm=()=>{const{getActiveTabs:s,getTabColor:h}=$m(),{selectedCrm:o,selectedCrmType:f,crmOptions:p}=Bl(),{containerTabsVariants:T}=va,{language:A}=ft(),j=p.length===0,O=s(),{sortTabs:U}=Pn(),M=U(O);return Pm(f,o,j,O)?Im(f,o,j,A,O):d.jsx("div",{className:"overflow-y-auto",children:d.jsx(X.ul,{className:"p-4 space-y-3 overflow-y-auto",initial:"initial",animate:"animate",exit:"exit",variants:T,children:M.length>0?M.map((C,R)=>d.jsx(Wm,{tab:C,index:R,tabColor:h(C)},C.id)):d.jsx("p",{className:"text-center text-gray-500",children:A.nenhumaAbaDisponivel})})})};function Pm(s,h,o,f){return f.length===0?!0:s==="traditional"?o||!h&&!o:!1}function Im(s,h,o,f,p){const T=()=>chrome.runtime.sendMessage({message:"CRM"});if(p.length===0)switch(s){case"traditional":return d.jsx(Zt,{message:f.nenhumCRMCriado,criar:f.criarCRM,function:T,animate:!0});case"userTabs":return d.jsx(Zt,{message:f.nenhumaAbaPlugin,criar:f.criarAba,function:T,animate:!0});case"labels":return d.jsx(Zt,{message:f.nenhumaEtiqueta,criar:f.verifiqueWhatsAppAbertoOuCrieEtiqueta,animate:!0});default:return d.jsx(Zt,{message:f.nenhumaAbaDisponivel,criar:f.criarCRM,function:T,animate:!0})}switch(s){case"traditional":return h&&o?d.jsx(Zt,{message:f.nenhumaAbaDoCRMSelecionada,criar:f.criarAbaNoCRM,function:T,animate:!0}):o?d.jsx(Zt,{message:f.nenhumCRMCriado,criar:f.criarCRM,function:T,animate:!0}):d.jsx(Zt,{message:f.SelectCRM,animate:!0});case"userTabs":return d.jsx(Zt,{message:f.nenhumaAbaPlugin,criar:f.criarAba,function:T,animate:!0});case"labels":return d.jsx(Zt,{message:f.nenhumaEtiqueta,criar:f.verifiqueWhatsAppAbertoOuCrieEtiqueta,animate:!0})}return null}function l1(){const{selectedCrmType:s}=Bl(),{language:h}=ft();switch(s){case"traditional":return`${h.listaDeAbas} (CRM)`;case"userTabs":return h.CRM_abasCreate;case"labels":return h.etiquetas;default:return h.listaDeAbas}}const t1=()=>{const{containerTabsVariants:s,titleVariants:h}=va;return d.jsxs(X.div,{className:"p-4 rounded-md bg-gray-200 dark:bg-[var(--funil-background)] select-none flex flex-col h-full",initial:"initial",animate:"animate",exit:"exit",variants:s,children:[d.jsxs(X.h2,{className:"top-0 bg-gray-200 dark:bg-[var(--funil-background)] text-2xl font-bold mb-8 text-[var(--text)] pl-2 border-l-4 border-[var(--primaria)] ml-1 relative z-[10]",variants:h,children:[d.jsx("div",{className:"p-1",children:l1()}),d.jsx(X.div,{className:"absolute bottom-0 left-0 h-0.5 bg-[var(--primaria)]",initial:{width:0},animate:{width:"100%",transition:{delay:.5,duration:.8}}})]}),d.jsx("div",{className:"flex-1 min-h-0 overflow-y-auto",children:d.jsx(Fn,{mode:"wait",children:d.jsx(Fm,{})})})]})},a1=()=>{const{language:s}=ft(),{isFunnel:h}=gd(),{dataOrder:o}=Ja(),{chartContainerVariants:f,graphTransitionVariants:p}=va;return d.jsxs("div",{className:"grid gap-4 grid-cols-1 min-[1080px]:grid-cols-2 min-h-[18rem] max-h-[36rem]",children:[d.jsx(X.div,{className:"h-full",variants:f,initial:"initial",animate:"animate",exit:"exit",transition:{duration:.15,ease:"easeOut"},children:d.jsxs(Za,{className:"border border-gray-300 dark:border-zinc-800 bg-[var(--card-background)] shadow-lg hover:shadow-xl transition-shadow h-full flex flex-col min-h-72 max-h-[36rem] rounded-lg ",children:[d.jsx(wa,{className:"flex items-center justify-between",children:d.jsx("div",{className:"flex items-center gap-2",children:d.jsxs(Ne,{className:"select-none text-xl font-semibold text-[var(--text)] gap-4 flex justify-between items-center",children:[h?s.funilVendas:s.graficoVendas,d.jsx("div",{className:"ml-4",children:d.jsx(km,{})})]})})}),d.jsx(Ka,{className:"flex-1 mt-5 relative bg-[var(--card-background)] select-none min-h-72 max-h-[36rem] overflow-hidden rounded-lg",children:d.jsx(Fn,{mode:"wait",children:d.jsx(X.div,{initial:"enter",animate:"center",exit:"exit",variants:p,transition:{type:"spring",stiffness:400,damping:30,duration:.15},className:"absolute inset-0",style:{transformOrigin:"center center",perspective:"1000px"},children:h?d.jsx(X.div,{className:"w-full h-full",initial:{rotateY:-90},animate:{rotateY:0},exit:{rotateY:90},transition:{duration:.1},children:d.jsx(qm,{})}):d.jsx(X.div,{className:"w-full h-full overflow-hidden",initial:{rotateY:-90},animate:{rotateY:0},exit:{rotateY:90},transition:{duration:.1},children:d.jsx(_m,{})})},h?"funnel":"pie")})})]})}),d.jsx(X.div,{className:"h-full",variants:f,initial:"initial",animate:"animate",exit:"exit",transition:{duration:.15,ease:"easeOut",delay:.05},children:d.jsxs(Za,{className:"border border-gray-300 dark:border-zinc-800 bg-[var(--card-background)] shadow-lg hover:shadow-xl transition-shadow flex flex-col h-[36rem] rounded-lg",children:[d.jsx(wa,{children:d.jsx(Qm,{})}),d.jsx(Ka,{className:"flex-1 overflow-hidden",children:d.jsx("div",{className:"w-full h-full overflow-y-auto",children:d.jsx(t1,{})})})]})})]})};/**
 * @license lucide-react v0.453.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const e1=s=>s.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),Md=(...s)=>s.filter((h,o,f)=>!!h&&f.indexOf(h)===o).join(" ");/**
 * @license lucide-react v0.453.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */var u1={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};/**
 * @license lucide-react v0.453.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const n1=al.forwardRef(({color:s="currentColor",size:h=24,strokeWidth:o=2,absoluteStrokeWidth:f,className:p="",children:T,iconNode:A,...j},O)=>al.createElement("svg",{ref:O,...u1,width:h,height:h,stroke:s,strokeWidth:f?Number(o)*24/Number(h):o,className:Md("lucide",p),...j},[...A.map(([U,M])=>al.createElement(U,M)),...Array.isArray(T)?T:[T]]));/**
 * @license lucide-react v0.453.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const Dd=(s,h)=>{const o=al.forwardRef(({className:f,...p},T)=>al.createElement(n1,{ref:T,iconNode:h,className:Md(`lucide-${e1(s)}`,f),...p}));return o.displayName=`${s}`,o};/**
 * @license lucide-react v0.453.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const i1=Dd("ArrowUpRight",[["path",{d:"M7 7h10v10",key:"1tivn9"}],["path",{d:"M7 17 17 7",key:"1vkiza"}]]);/**
 * @license lucide-react v0.453.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const c1=Dd("Check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]]),Od={getCombinedData:()=>{const s=getComputedStyle(document.documentElement).getPropertyValue("--primaria").trim(),h=Bl.getState(),o=ft.getState().language,f={"CRM Tradicional":"#FF6384","Abas de Usuário":s,Etiquetas:"#FFCE56"},{crmOptions:p,userTabsOptions:T,userLabelsOptions:A}=h;h.calculateAllCRMValues();const j=Bl.getState().calculatedValues,O=p.flatMap(C=>C.list.map(R=>{var K,el;const q=((K=j.crm)==null?void 0:K[R.id])??(R.profileCalculated&&typeof R.profile=="number"?R.profile:0),_=((el=R.chats)==null?void 0:el.length)??0;return{id:R.id,name:R.name||`${C.name} - ${R.id}`,value:q,color:R.hexColor||f["CRM Tradicional"],type:"CRM Tradicional",contacts:_,typeName:o.abas}})),U=(T||[]).map(C=>{var _;const R=((_=j.userTabs)==null?void 0:_[C.id])??(C.profileCalculated&&typeof C.profile=="number"?C.profile:0),q=Array.isArray(C.chats)?C.chats.length:0;return{id:C.id,name:C.tag||`CRM ${C.id}`,value:R,color:f["Abas de Usuário"],type:"Abas de Usuário",contacts:q,typeName:o.abas}}),M=(A||[]).map(C=>{var _;const R=((_=j.labels)==null?void 0:_[C.id])??(C.profileCalculated&&typeof C.profile=="number"?C.profile:0),q=Array.isArray(C.chats)?C.chats.length:0;return{id:C.id,name:C.name||`Tag ${C.id}`,value:R,color:C.hexColor||f.Etiquetas,type:"Etiquetas",contacts:q,typeName:o.etiquetas}});return{crmData:O,userTabsData:U,labelsData:M}},exportToExcel:async()=>{var h;const{language:s}=ft.getState();try{const{crmData:o,userTabsData:f,labelsData:p}=Od.getCombinedData(),T=getComputedStyle(document.documentElement).getPropertyValue("--primaria").trim(),j=(await bf.post(`${md.backend_utils}api/XLSX/exportFunil`,{crmData:o,userTabsData:f,labelsData:p,language:s,primaryColor:T},{headers:{"Content-Type":"application/json"}})).data;if(!j.success)throw new Error(j.error||"Erro ao exportar dados");const O=atob(j.XLSXbase64),U=Array.from(O).map(_=>_.charCodeAt(0)),M=new Uint8Array(U),C=new Blob([M],{type:"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"}),R=window.URL.createObjectURL(C),q=document.createElement("a");return q.href=R,q.download=j.filename,q.click(),window.URL.revokeObjectURL(R),nd({type:"Success",message:s.funnilExport,position:"top-right"}),!0}catch(o){return nd({type:"Error",message:s.funnilExportError,position:"top-right"}),bf.isAxiosError(o)?console.error("[exportToExcel] Erro na API:",((h=o.response)==null?void 0:h.data)||o.message):console.error("[exportToExcel] Erro ao exportar:",o),!1}}},f1=()=>{const[s,h]=al.useState(!1),[o,f]=al.useState(!1),{language:p}=ft(),T=async()=>{h(!0);try{await Od.exportToExcel()?(h(!1),f(!0),setTimeout(()=>{f(!1)},2e3)):h(!1)}catch(A){console.error("Export failed:",A),h(!1)}};return d.jsxs("button",{onClick:T,disabled:s,className:`relative flex items-center gap-2 px-4 py-2 rounded-lg bg-[var(--primaria)]  text-white font-medium transition-all duration-500 ease-in-out  hover:bg-[var(--terciaria)] hover:scale-105 active:scale-95 disabled:opacity-75 disabled:cursor-not-allowed disabled:hover:scale-100 select-none ${s?"scale-95":""} ${o?"scale-105":""} `,children:[d.jsxs("div",{className:"relative w-5 h-5",children:[d.jsx(i1,{className:`absolute transition-all duration-500 ease-[cubic-bezier(0.34,1.56,0.64,1)] ${s?"translate-x-2 -translate-y-2 opacity-0":"translate-x-0 translate-y-0"} ${o?"opacity-0 scale-0 rotate-45":"scale-100 rotate-0"} `}),d.jsx(c1,{className:`absolute transition-all duration-500 ease-[cubic-bezier(0.34,1.56,0.64,1)] ${o?"opacity-100 scale-100 rotate-0":"opacity-0 scale-0 -rotate-45"} `})]}),d.jsx("span",{className:`transition-all duration-300 ease-in-out ${s?"opacity-75":""} ${o?"scale-105":""}`,children:o?p.exportado:s?p.exportando:p.exportarParaExcel})]})},s1=()=>{const{language:s}=ft(),{cardVariants:h,numberVariants:o}=va,{totalFormatted:f,averageFormatted:p,taxaConversaoPorContact:T,contacts:A}=Sf();return d.jsxs("div",{className:"select-none grid gap-4 md:grid-cols-2 lg:grid-cols-4",children:[d.jsx(X.div,{variants:h,children:d.jsxs(Za,{className:"border border-gray-300 dark:border-zinc-800 bg-[var(--card-background)] shadow-lg hover:shadow-xl transition-shadow",children:[d.jsx(wa,{className:"pb-2",children:d.jsxs(Ne,{className:"text-sm font-medium text-[var(--text)] flex justify-between items-center",children:[s.Contacts," ",d.jsx(rm,{className:"text-[var(--primaria)] ml-2 text-xl"})]})}),d.jsx(Ka,{children:d.jsx(X.div,{variants:o,className:"text-2xl font-bold text-[var(--text)]",children:A})})]})}),d.jsx(X.div,{variants:h,children:d.jsxs(Za,{className:"border border-gray-300 dark:border-zinc-800 bg-[var(--card-background)] shadow-lg hover:shadow-xl transition-shadow",children:[d.jsx(wa,{className:"pb-2",children:d.jsxs(Ne,{className:"text-sm font-medium text-[var(--text)] flex justify-between items-center",children:[s.taxaConversao," ",d.jsx(om,{className:"text-[var(--primaria)] ml-2 text-xl"})]})}),d.jsx(Ka,{children:d.jsx(X.div,{variants:o,className:"text-2xl font-bold text-[var(--text)]",children:T})})]})}),d.jsx(X.div,{variants:h,children:d.jsxs(Za,{className:"border border-gray-300 dark:border-zinc-800 bg-[var(--card-background)] shadow-lg hover:shadow-xl transition-shadow",children:[d.jsx(wa,{className:"pb-2",children:d.jsxs(Ne,{className:"text-sm font-medium text-[var(--text)] flex justify-between items-center",children:[s.receitaMediaAba," ",d.jsx(Lm,{className:"text-[var(--primaria)] ml-2 text-xl"})]})}),d.jsx(Ka,{children:d.jsx(X.div,{variants:o,className:"text-2xl font-bold text-[var(--text)]",children:p})})]})}),d.jsx(X.div,{variants:h,children:d.jsxs(Za,{className:"border border-gray-300 dark:border-zinc-800 bg-[var(--card-background)] shadow-lg hover:shadow-xl transition-shadow",children:[d.jsx(wa,{className:"pb-2",children:d.jsxs(Ne,{className:"text-sm font-medium text-[var(--text)] flex justify-between items-center",children:[s.receitaTotal," ",d.jsx(Vm,{className:"text-[var(--primaria)] ml-2 text-xl"})]})}),d.jsx(Ka,{children:d.jsx(X.div,{variants:o,className:"text-2xl font-bold text-[var(--text)]",children:f})})]})})]})},r1=()=>(al.useEffect(()=>{Bm()},[]),d.jsxs(d.Fragment,{children:[d.jsx(dm,{}),d.jsx("div",{className:"h-full overflow-y-auto",children:d.jsx("div",{className:"p-3 bg-[var(--funil-background)] min-h-full flex flex-col",children:d.jsxs(X.div,{className:"max-w-7xl mx-auto w-full flex-1 flex flex-col",initial:"hidden",animate:"visible",variants:{visible:{transition:{staggerChildren:.1}}},children:[d.jsx("div",{className:"flex justify-end pb-4",children:d.jsx(f1,{})}),d.jsx("div",{className:"pb-4",children:d.jsx(s1,{})}),d.jsx(d.Fragment,{children:d.jsx(a1,{})})]})})})]})),o1=()=>{const{whatsappOpen:s}=hd(),{language:h}=ft();return s?d.jsx(r1,{}):d.jsx(hm,{language:h})},jd=()=>{const{label:s}=pf.getState();if(s.nameID.length===0)setTimeout(jd,350);else{const h=document.createElement("link");h.rel="stylesheet",h.type="text/css",h.href=chrome.runtime.getURL(`label/css/${s.nameID}.css`),document.head.appendChild(h),document.querySelector("#title").innerHTML="Funil CRM",(()=>{const o=document.querySelector("#app");if(!o)throw new Error("Can not find #app");Cm.createRoot(o).render(d.jsx(o1,{}))})()}};jd();export{T1 as T,x1 as a,Dd as c};
