PageSourceSearch

https://fundacaolusobrasileira.vercel.app/assets/index-B-0CVNlY.js

js fundacaolusobrasileira.vercel.app collected 2026-10-03 06:58:38 UTC 329,457 bytes, 173 lines download raw bytes

vendor: 4,388 bytes, lines 1-18
1const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/HomePage-STjgF7DE.js","assets/vendor-react-q5f1n1Zq.js","assets/Button-DhPq9g3p.js","assets/loader-circle-w_Z7WDUH.js","assets/Badge-71-tKluw.js","assets/Reveal-4lQEu8Fk.js","assets/Layout-Duu0kEuO.js","assets/EventCard-D4bGHe7V.js","assets/search-hifcjm8p.js","assets/calendar-DCJbjKzR.js","assets/map-pin-C2iwf17Q.js","assets/content.data-DH3bSEjC.js","assets/palette-DUwgaAmg.js","assets/landmark-BRjqFR7t.js","assets/usePageMeta-B4gEDq-p.js","assets/useDebounce-DANXvoTw.js","assets/arrow-up-right-De5GHlxj.js","assets/vendor-supabase-vtL5VWMt.js","assets/QuemSomosPage-BV9aa0gG.js","assets/ExpandableText-BQVVfxG0.js","assets/chevron-up-CPvtn3qM.js","assets/chevron-down-DC7E7ivt.js","assets/AdminPage-B8H94Ocs.js","assets/MemberCard-Dq1Fy4Pi.js","assets/user-C6B507kV.js","assets/ParceirosPage-C8bsq7va.js","assets/partners.data-K3I3YbkN.js","assets/PartnerCard-Bg0PezPa.js","assets/star-DUBoB2Gp.js","assets/heart-CGxfr4Ve.js","assets/MembroPerfilPage-CZjP0EuW.js","assets/Modals-BiygD2IW.js","assets/Forms-ssO8jn3p.js","assets/lock-BN3Rjv6V.js","assets/media.service-CJ8Z8wpN.js","assets/benefits.service-BNqANLY3.js","assets/folder-open-D72gyjRI.js","assets/upload-PaN6sJcj.js","assets/BenefitEditorSection-BInwprTE.js","assets/external-link-Cjsm9hQF.js","assets/arrow-left-BSzAWKwW.js","assets/EventosPage-BPotDufO.js","assets/component.ui-Cm1mA5e6.js","assets/link-Dc1ooJET.js","assets/link-2-z0_UfmaI.js","assets/download-BcAmnX5e.js","assets/pen-hem-sddD.js","assets/EventoDetalhePage-DuoHjvpl.js","assets/component.domain-BWg2djLm.js","assets/video-CZ3mrOC4.js","assets/mail-uY5oZjiV.js","assets/EventoColaborarPage-BLrEJcF3.js","assets/user-plus-Cf-EDssQ.js","assets/LoginPage-DZwUi_Hs.js","assets/circle-check-BfXOT9pl.js","assets/CadastroPage-6f56M6Z5.js","assets/PreCadastroPage-DoSADqfo.js","assets/users-B2ijuRns.js","assets/globe-CEfM8eLx.js","assets/ResetPasswordPage-BGsN_tf8.js","assets/DashboardPage-DIiSl-aA.js","assets/file-text-CszTrb3B.js","assets/trending-up-B9h-53Zk.js","assets/DashboardMediaPage-CjSjfD3b.js","assets/LegalPage-GDue1erN.js","assets/DocumentacaoPage-CsWAe94U.js","assets/BeneficiosPage-B6Lwojto.js","assets/LegaltechSpacePage-BEMopziu.js","assets/ParceiroPerfilPage-DO9fQyBO.js","assets/ContactoPage-CIaPRili.js","assets/index-NASTEZy0.js"])))=>i.map(i=>d[i]);
2import{r as Wv,a as Iv,g as Pv,b as Q,u as eg,L as Me,R as Uc,c as tg,d as ve,N as Bu,H as ag}from"./vendor-react-q5f1n1Zq.js";import{c as ng}from"./vendor-supabase-vtL5VWMt.js";(function(){const i=document.createElement("link").relList;if(i&&i.supports&&i.supports("modulepreload"))return;for(const s of document.querySelectorAll('link[rel="modulepreload"]'))c(s);new MutationObserver(s=>{for(const d of s)if(d.type==="childList")for(const h of d.addedNodes)h.tagName==="LINK"&&h.rel==="modulepreload"&&c(h)}).observe(document,{childList:!0,subtree:!0});function o(s){const d={};return s.integrity&&(d.integrity=s.integrity),s.referrerPolicy&&(d.referrerPolicy=s.referrerPolicy),s.crossOrigin==="use-credentials"?d.credentials="include":s.crossOrigin==="anonymous"?d.credentials="omit":d.credentials="same-origin",d}function c(s){if(s.ep)return;s.ep=!0;const d=o(s);fetch(s.href,d)}})();var pc={exports:{}},Pl={};/**
3 * @license React
4 * react-jsx-runtime.production.js
5 *
6 * Copyright (c) Meta Platforms, Inc. and affiliates.
7 *
8 * This source code is licensed under the MIT license found in the
9 * LICENSE file in the root directory of this source tree.
10 */var Jm;function lg(){if(Jm)return Pl;Jm=1;var n=Symbol.for("react.transitional.element"),i=Symbol.for("react.fragment");function o(c,s,d){var h=null;if(d!==void 0&&(h=""+d),s.key!==void 0&&(h=""+s.key),"key"in s){d={};for(var p in s)p!=="key"&&(d[p]=s[p])}else d=s;return s=d.ref,{$$typeof:n,type:c,key:h,ref:s!==void 0?s:null,props:d}}return Pl.Fragment=i,Pl.jsx=o,Pl.jsxs=o,Pl}var $m;function ig(){return $m||($m=1,pc.exports=lg()),pc.exports}var g=ig(),vc={exports:{}},ei={},gc={exports:{}},yc={};/**
11 * @license React
12 * scheduler.production.js
13 *
14 * Copyright (c) Meta Platforms, Inc. and affiliates.
15 *
16 * This source code is licensed under the MIT license found in the
17 * LICENSE file in the root directory of this source tree.
18 */var Km;function ug(){return Km||(Km=1,(function(n){function i(M,Z){var Y=M.length;M.push(Z);e:for(;0<Y;){var ge=Y-1>
vendor: 7,635 bytes, lines 18-26
18>>1,ye=M[ge];if(0<s(ye,Z))M[ge]=Z,M[Y]=ye,Y=ge;else break e}}function o(M){return M.length===0?null:M[0]}function c(M){if(M.length===0)return null;var Z=M[0],Y=M.pop();if(Y!==Z){M[0]=Y;e:for(var ge=0,ye=M.length,et=ye>>>1;ge<et;){var Te=2*(ge+1)-1,ie=M[Te],Ge=Te+1,Yt=M[Ge];if(0>s(ie,Y))Ge<ye&&0>s(Yt,ie)?(M[ge]=Yt,M[Ge]=Y,ge=Ge):(M[ge]=ie,M[Te]=Y,ge=Te);else if(Ge<ye&&0>s(Yt,Y))M[ge]=Yt,M[Ge]=Y,ge=Ge;else break e}}return Z}function s(M,Z){var Y=M.sortIndex-Z.sortIndex;return Y!==0?Y:M.id-Z.id}if(n.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var d=performance;n.unstable_now=function(){return d.now()}}else{var h=Date,p=h.now();n.unstable_now=function(){return h.now()-p}}var y=[],S=[],A=1,O=null,C=3,L=!1,X=!1,G=!1,pe=!1,xt=typeof setTimeout=="function"?setTimeout:null,xe=typeof clearTimeout=="function"?clearTimeout:null,Qe=typeof setImmediate<"u"?setImmediate:null;function He(M){for(var Z=o(S);Z!==null;){if(Z.callback===null)c(S);else if(Z.startTime<=M)c(S),Z.sortIndex=Z.expirationTime,i(y,Z);else break;Z=o(S)}}function Oe(M){if(G=!1,He(M),!X)if(o(y)!==null)X=!0,Ne||(Ne=!0,Tt());else{var Z=o(S);Z!==null&&Kt(Oe,Z.startTime-M)}}var Ne=!1,dt=-1,mt=5,hn=-1;function oi(){return pe?!0:!(n.unstable_now()-hn<mt)}function pn(){if(pe=!1,Ne){var M=n.unstable_now();hn=M;var Z=!0;try{e:{X=!1,G&&(G=!1,xe(dt),dt=-1),L=!0;var Y=C;try{t:{for(He(M),O=o(y);O!==null&&!(O.expirationTime>M&&oi());){var ge=O.callback;if(typeof ge=="function"){O.callback=null,C=O.priorityLevel;var ye=ge(O.expirationTime<=M);if(M=n.unstable_now(),typeof ye=="function"){O.callback=ye,He(M),Z=!0;break t}O===o(y)&&c(y),He(M)}else c(y);O=o(y)}if(O!==null)Z=!0;else{var et=o(S);et!==null&&Kt(Oe,et.startTime-M),Z=!1}}break e}finally{O=null,C=Y,L=!1}Z=void 0}}finally{Z?Tt():Ne=!1}}}var Tt;if(typeof Qe=="function")Tt=function(){Qe(pn)};else if(typeof MessageChannel<"u"){var ri=new MessageChannel,ul=ri.port2;ri.port1.onmessage=pn,Tt=function(){ul.postMessage(null)}}else Tt=function(){xt(pn,0)};function Kt(M,Z){dt=xt(function(){M(n.unstable_now())},Z)}n.unstable_IdlePriority=5,n.unstable_ImmediatePriority=1,n.unstable_LowPriority=4,n.unstable_NormalPriority=3,n.unstable_Profiling=null,n.unstable_UserBlockingPriority=2,n.unstable_cancelCallback=function(M){M.callback=null},n.unstable_forceFrameRate=function(M){0>M||125<M?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):mt=0<M?Math.floor(1e3/M):5},n.unstable_getCurrentPriorityLevel=function(){return C},n.unstable_next=function(M){switch(C){case 1:case 2:case 3:var Z=3;break;default:Z=C}var Y=C;C=Z;try{return M()}finally{C=Y}},n.unstable_requestPaint=function(){pe=!0},n.unstable_runWithPriority=function(M,Z){switch(M){case 1:case 2:case 3:case 4:case 5:break;default:M=3}var Y=C;C=M;try{return Z()}finally{C=Y}},n.unstable_scheduleCallback=function(M,Z,Y){var ge=n.unstable_now();switch(typeof Y=="object"&&Y!==null?(Y=Y.delay,Y=typeof Y=="number"&&0<Y?ge+Y:ge):Y=ge,M){case 1:var ye=-1;break;case 2:ye=250;break;case 5:ye=1073741823;break;case 4:ye=1e4;break;default:ye=5e3}return ye=Y+ye,M={id:A++,callback:Z,priorityLevel:M,startTime:Y,expirationTime:ye,sortIndex:-1},Y>ge?(M.sortIndex=Y,i(S,M),o(y)===null&&M===o(S)&&(G?(xe(dt),dt=-1):G=!0,Kt(Oe,Y-ge))):(M.sortIndex=ye,i(y,M),X||L||(X=!0,Ne||(Ne=!0,Tt()))),M},n.unstable_shouldYield=oi,n.unstable_wrapCallback=function(M){var Z=C;return function(){var Y=C;C=Z;try{return M.apply(this,arguments)}finally{C=Y}}}})(yc)),yc}var Fm;function og(){return Fm||(Fm=1,gc.exports=ug()),gc.exports}/**
19 * @license React
20 * react-dom-client.production.js
21 *
22 * Copyright (c) Meta Platforms, Inc. and affiliates.
23 *
24 * This source code is licensed under the MIT license found in the
25 * LICENSE file in the root directory of this source tree.
26 */var Wm;function rg(){if(Wm)return ei;Wm=1;var n=og(),i=Wv(),o=Iv();function c(e){var t="https://react.dev/errors/"+e;if(1<arguments.length){t+="?args[]="+encodeURIComponent(arguments[1]);for(var a=2;a<arguments.length;a++)t+="&args[]="+encodeURIComponent(arguments[a])}return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function s(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function d(e){var t=e,a=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,(t.flags&4098)!==0&&(a=t.return),e=t.return;while(e)}return t.tag===3?a:null}function h(e){if(e.tag===13){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function p(e){if(e.tag===31){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function y(e){if(d(e)!==e)throw Error(c(188))}function S(e){var t=e.alternate;if(!t){if(t=d(e),t===null)throw Error(c(188));return t!==e?null:e}for(var a=e,l=t;;){var u=a.return;if(u===null)break;var r=u.alternate;if(r===null){if(l=u.return,l!==null){a=l;continue}break}if(u.child===r.child){for(r=u.child;r;){if(r===a)return y(u),e;if(r===l)return y(u),t;r=r.sibling}throw Error(c(188))}if(a.return!==l.return)a=u,l=r;else{for(var f=!1,m=u.child;m;){if(m===a){f=!0,a=u,l=r;break}if(m===l){f=!0,l=u,a=r;break}m=m.sibling}if(!f){for(m=r.child;m;){if(m===a){f=!0,a=r,l=u;break}if(m===l){f=!0,l=r,a=u;break}m=m.sibling}if(!f)throw Error(c(189))}}if(a.alternate!==l)throw Error(c(190))}if(a.tag!==3)throw Error(c(188));return a.stateNode.current===a?e:t}function A(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e;for(e=e.child;e!==null;){if(t=A(e),t!==null)return t;e=e.sibling}return null}var O=Object.assign,C=Symbol.for("react.element"),L=Symbol.for("react.transitional.element"),X=Symbol.for("react.portal"),G=Symbol.for("react.fragment"),pe=Symbol.for("react.strict_mode"),xt=Symbol.for("react.profiler"),xe=Symbol.for("react.consumer"),Qe=Symbol.for("react.context"),He=Symbol.for("react.forward_ref"),Oe=Symbol.for("react.suspense"),Ne=Symbol.for("react.suspense_list"),dt=Symbol.for("react.memo"),mt=Symbol.for("react.lazy"),hn=Symbol.for("react.activity"),oi=Symbol.for("react.memo_cache_sentinel"),pn=Symbol.iterator;function Tt(e){return e===null||typeof e!="object"?null:(e=pn&&e[pn]||e["@@iterator"],typeof e=="function"?e:null)}var ri=Symbol.for("react.client.reference");function ul(e){if(e==null)return null;if(typeof e=="function")return e.$$typeof===ri?null:e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case G:return"Fragment";case xt:return"Profiler";case pe:return"StrictMode";case Oe:return"Suspense";case Ne:return"SuspenseList";case hn:return"Activity"}if(typeof e=="object")switch(e.$$typeof){case X:return"Portal";case Qe:return e.displayName||"Context";case xe:return(e._context.displayName||"Context")+".Consumer";case He:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case dt:return t=e.displayName||null,t!==null?t:ul(e.type)||"Memo";case mt:t=e._payload,e=e._init;try{return ul(e(t))}catch{}}return null}var Kt=Array.isArray,M=i.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,Z=o.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,Y={pending:!1,data:null,method:null,action:null},ge=[],ye=-1;function et(e){return{current:e}}function Te(e){0>ye||(e.current=ge[ye],ge[ye]=null,ye--)}function ie(e,t){ye++,ge[ye]=e.current,e.current=t}var Ge=et(null),Yt=et(null),ga=et(null),ci=et(null);function si(e,t){switch(ie(ga,t),ie(Yt,e),ie(Ge,null),t.nodeType){case 9:case 11:e=(e
vendor: 11,439 bytes, lines 26-33
26=t.documentElement)&&(e=e.namespaceURI)?vm(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=vm(t),e=gm(t,e);else switch(e){case"svg":e=1;break;case"math":e=2;break;default:e=0}}Te(Ge),ie(Ge,e)}function vn(){Te(Ge),Te(Yt),Te(ga)}function Ku(e){e.memoizedState!==null&&ie(ci,e);var t=Ge.current,a=gm(t,e.type);t!==a&&(ie(Yt,e),ie(Ge,a))}function fi(e){Yt.current===e&&(Te(Ge),Te(Yt)),ci.current===e&&(Te(ci),Kl._currentValue=Y)}var Fu,Xc;function Xa(e){if(Fu===void 0)try{throw Error()}catch(a){var t=a.stack.trim().match(/\n( *(at )?)/);Fu=t&&t[1]||"",Xc=-1<a.stack.indexOf(`
27    at`)?" (<anonymous>)":-1<a.stack.indexOf("@")?"@unknown:0:0":""}return`
28`+Fu+e+Xc}var Wu=!1;function Iu(e,t){if(!e||Wu)return"";Wu=!0;var a=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var l={DetermineComponentFrameRoot:function(){try{if(t){var w=function(){throw Error()};if(Object.defineProperty(w.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(w,[])}catch(T){var x=T}Reflect.construct(e,[],w)}else{try{w.call()}catch(T){x=T}e.call(w.prototype)}}else{try{throw Error()}catch(T){x=T}(w=e())&&typeof w.catch=="function"&&w.catch(function(){})}}catch(T){if(T&&x&&typeof T.stack=="string")return[T.stack,x.stack]}return[null,null]}};l.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var u=Object.getOwnPropertyDescriptor(l.DetermineComponentFrameRoot,"name");u&&u.configurable&&Object.defineProperty(l.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var r=l.DetermineComponentFrameRoot(),f=r[0],m=r[1];if(f&&m){var v=f.split(`
29`),E=m.split(`
30`);for(u=l=0;l<v.length&&!v[l].includes("DetermineComponentFrameRoot");)l++;for(;u<E.length&&!E[u].includes("DetermineComponentFrameRoot");)u++;if(l===v.length||u===E.length)for(l=v.length-1,u=E.length-1;1<=l&&0<=u&&v[l]!==E[u];)u--;for(;1<=l&&0<=u;l--,u--)if(v[l]!==E[u]){if(l!==1||u!==1)do if(l--,u--,0>u||v[l]!==E[u]){var N=`
31`+v[l].replace(" at new "," at ");return e.displayName&&N.includes("<anonymous>")&&(N=N.replace("<anonymous>",e.displayName)),N}while(1<=l&&0<=u);break}}}finally{Wu=!1,Error.prepareStackTrace=a}return(a=e?e.displayName||e.name:"")?Xa(a):""}function N0(e,t){switch(e.tag){case 26:case 27:case 5:return Xa(e.type);case 16:return Xa("Lazy");case 13:return e.child!==t&&t!==null?Xa("Suspense Fallback"):Xa("Suspense");case 19:return Xa("SuspenseList");case 0:case 15:return Iu(e.type,!1);case 11:return Iu(e.type.render,!1);case 1:return Iu(e.type,!0);case 31:return Xa("Activity");default:return""}}function Qc(e){try{var t="",a=null;do t+=N0(e,a),a=e,e=e.return;while(e);return t}catch(l){return`
32Error generating stack: `+l.message+`
33`+l.stack}}var Pu=Object.prototype.hasOwnProperty,eo=n.unstable_scheduleCallback,to=n.unstable_cancelCallback,j0=n.unstable_shouldYield,D0=n.unstable_requestPaint,ht=n.unstable_now,M0=n.unstable_getCurrentPriorityLevel,Jc=n.unstable_ImmediatePriority,$c=n.unstable_UserBlockingPriority,di=n.unstable_NormalPriority,w0=n.unstable_LowPriority,Kc=n.unstable_IdlePriority,U0=n.log,C0=n.unstable_setDisableYieldValue,ol=null,pt=null;function ya(e){if(typeof U0=="function"&&C0(e),pt&&typeof pt.setStrictMode=="function")try{pt.setStrictMode(ol,e)}catch{}}var vt=Math.clz32?Math.clz32:B0,Z0=Math.log,R0=Math.LN2;function B0(e){return e>>>=0,e===0?32:31-(Z0(e)/R0|0)|0}var mi=256,hi=262144,pi=4194304;function Qa(e){var t=e&42;if(t!==0)return t;switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return e&261888;case 262144:case 524288:case 1048576:case 2097152:return e&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return e&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return e}}function vi(e,t,a){var l=e.pendingLanes;if(l===0)return 0;var u=0,r=e.suspendedLanes,f=e.pingedLanes;e=e.warmLanes;var m=l&134217727;return m!==0?(l=m&~r,l!==0?u=Qa(l):(f&=m,f!==0?u=Qa(f):a||(a=m&~e,a!==0&&(u=Qa(a))))):(m=l&~r,m!==0?u=Qa(m):f!==0?u=Qa(f):a||(a=l&~e,a!==0&&(u=Qa(a)))),u===0?0:t!==0&&t!==u&&(t&r)===0&&(r=u&-u,a=t&-t,r>=a||r===32&&(a&4194048)!==0)?t:u}function rl(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function L0(e,t){switch(e){case 1:case 2:case 4:case 8:case 64:return t+250;case 16:case 32:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function Fc(){var e=pi;return pi<<=1,(pi&62914560)===0&&(pi=4194304),e}function ao(e){for(var t=[],a=0;31>a;a++)t.push(e);return t}function cl(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function q0(e,t,a,l,u,r){var f=e.pendingLanes;e.pendingLanes=a,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=a,e.entangledLanes&=a,e.errorRecoveryDisabledLanes&=a,e.shellSuspendCounter=0;var m=e.entanglements,v=e.expirationTimes,E=e.hiddenUpdates;for(a=f&~a;0<a;){var N=31-vt(a),w=1<<N;m[N]=0,v[N]=-1;var x=E[N];if(x!==null)for(E[N]=null,N=0;N<x.length;N++){var T=x[N];T!==null&&(T.lane&=-536870913)}a&=~w}l!==0&&Wc(e,l,0),r!==0&&u===0&&e.tag!==0&&(e.suspendedLanes|=r&~(f&~t))}function Wc(e,t,a){e.pendingLanes|=t,e.suspendedLanes&=~t;var l=31-vt(t);e.entangledLanes|=t,e.entanglements[l]=e.entanglements[l]|1073741824|a&261930}function Ic(e,t){var a=e.entangledLanes|=t;for(e=e.entanglements;a;){var l=31-vt(a),u=1<<l;u&t|e[l]&t&&(e[l]|=t),a&=~u}}function Pc(e,t){var a=t&-t;return a=(a&42)!==0?1:no(a),(a&(e.suspendedLanes|t))!==0?0:a}function no(e){switch(e){case 2:e=1;break;case 8:e=4;break;case 32:e=16;break;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:e=128;break;case 268435456:e=134217728;break;default:e=0}return e}function lo(e){return e&=-e,2<e?8<e?(e&134217727)!==0?32:268435456:8:2}function es(){var e=Z.p;return e!==0?e:(e=window.event,e===void 0?32:Hm(e.type))}function ts(e,t){var a=Z.p;try{return Z.p=e,t()}finally{Z.p=a}}var ba=Math.random().toString(36).slice(2),Je="__reactFiber$"+ba,nt="__reactProps$"+ba,gn="__reactContainer$"+ba,io="__reactEvents$"+ba,H0="__reactListeners$"+ba,k0="__reactHandles$"+ba,as="__reactResources$"+ba,sl="__reactMarker$"+ba;function uo(e){delete e[Je],delete e[nt],delete e[io],delete e[H0],delete e[k0]}function yn(e){var t=e[Je];if(t)return t;for(var a=e.parentNode;a;){if(t=a[gn]||a[Je]){if(a=t.alternate,t.child!==null||a!==null&&a.child!==null)for(e=xm(e);e!==null;){if(a=e[Je])return a;e=xm(e)}return t}e=a,a=e.parentNode}return null}function bn(e){if(e=e[Je]||e[gn]){var t=e.tag;if(t===5||t===6||t===13||t===31||t===26||t===27||t===3)return e}return null}function fl(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e.stateNode;throw Error(c(33))}function _n(e){var t=e[as];return t||(t=e[as]={hoistableStyles:new Map,hoistableScripts:new Map}),t}function Ye(e){e[sl]=!0}var ns=new Set,ls={};function Ja(e,t){Sn(e,t),Sn(e+"Capture",t)}function Sn(e,t){for(ls[e]=t,e=0;e<t.length;e++)ns.add(t[e])}var V0=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]*$"),is={},us={};function G0(e){return Pu.call(us,e)?!0:Pu.call(is,e)?!1:V0.test(e)?us[e]=!0:(is[e]=!0,!1)}function gi(e,t,a){if(G0(t))if(a===null)e.removeAttribute(t);else{switch(typeof a){case"undefined":case"function":case"symbol":e.removeAttribute(t);return;case"boolean":var l=t.toLowerCase().slice(0,5);if(l!=="data-"&&l!=="aria-"){e.removeAttribute(t);return}}e.setAttribute(t,""+a)}}function yi(e,t,a){if(a===null)e.removeAttribute(t);else{switch(typeof a){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(t);return}e.setAttribute(t,""+a)}}function Ft(e,t,a,l){if(l===null)e.removeAttribute(a);else{switch(typeof l){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(a);return}e.setAttributeNS(t,a,""+l)}}function At(e){switch(typeof e){case"bigint":case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function os(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function Y0(e,t,a){var l=Object.getOwnPropertyDescriptor(e.constructor.prototype,t);if(!e.hasOwnProperty(t)&&typeof l<"u"&&typeof l.get=="function"&&typeof l.set=="function"){var u=l.get,r=l.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return u.call(this)},set:function(f){a=""+f,r.call(this,f)}}),Object.defineProperty(e,t,{enumerable:l.enumerable}),{getValue:function(){return a},setValue:function(f){a=""+f},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function oo(e){if(!e._valueTracker){var t=os(e)?"checked":"value";e._valueTracker=Y0(e,t,""+e[t])}}function rs(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var a=t.getValue(),l="";return e&&(l=os(e)?e.checked?"true":"false":e.value),e=l,e!==a?(t.setValue(e),!0):!1}function bi(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}var X0=/[\n"\\]/g;function Ot(e){return e.replace(X0,function(t){return"\\"+t.charCodeAt(0).toString(16)+" "})}function ro(e,t,a,l,u,r,f,m){e.name="",f!=null&&typeof f!="function"&&typeof f!="symbol"&&typeof f!="boolean"?e.type=f:e.removeAttribute("type"),t!=null?f==="number"?(t===0&&e.value===""||e.value!=t)&&(e.value=""+At(t)):e.value!==""+At(t)&&(e.value=""+At(t)):f!=="submit"&&f!=="reset"||e.removeAttribute("value"),t!=null?co(e,f,At(t)):a!=null?co(e,f,At(a)):l!=null&&e.removeAttribute("value"),u==null&&r!=null&&(e.defaultChecked=!!r),u!=null&&(e.checked=u&&typeof u!="function"&&typeof u!="symbol"),m!=null&&typeof m!="function"&&typeof m!="symbol"&&typeof m!="boolean"?e.name=""+At(m):e.removeAttribute("name")}function cs(e,t,a,l,u,r,f,m){if(r!=null&&typeof r!="function"&&typeof r!="symbol"&&typeof r!="boolean"&&(e.type=r),t!=null||a!=null){if(!(r!=="submit"&&r!=="reset"||t!=null)){oo(e);return}a=a!=null?""+At(a):"",t=t!=null?""+At(t):a,m||t===e.value||(e.value=t),e.defaultValue=t}l=l??u,l=typeof l!="function"&&typeof l!="symbol"&&!!l,e.checked=m?e.checked:!!l,e.defaultChecked=!!l,f!=null&&typeof f!="function"&&typeof f!="symbol"&&typeof f!="boolean"&&(e.name=f),oo(e)}function co(e,t,a){t==="number"&&bi(e.ownerDocument)===e||e.defaultValue===""+a||(e.defaultValue=""+a)}function zn(e,t,a,l){if(e=e.options,t){t={};for(var u=0;u<a.length;u++)t["$"+a[u]]=!0;for(a=0;a<e.length;a++)u=t.hasOwnProperty("$"+e[a].value),e[a].selected!==u&&(e[a].selected=u),u&&l&&(e[a].defaultSelected=!0)}
vendor: 4,754 bytes, line 33
33else{for(a=""+At(a),t=null,u=0;u<e.length;u++){if(e[u].value===a){e[u].selected=!0,l&&(e[u].defaultSelected=!0);return}t!==null||e[u].disabled||(t=e[u])}t!==null&&(t.selected=!0)}}function ss(e,t,a){if(t!=null&&(t=""+At(t),t!==e.value&&(e.value=t),a==null)){e.defaultValue!==t&&(e.defaultValue=t);return}e.defaultValue=a!=null?""+At(a):""}function fs(e,t,a,l){if(t==null){if(l!=null){if(a!=null)throw Error(c(92));if(Kt(l)){if(1<l.length)throw Error(c(93));l=l[0]}a=l}a==null&&(a=""),t=a}a=At(t),e.defaultValue=a,l=e.textContent,l===a&&l!==""&&l!==null&&(e.value=l),oo(e)}function En(e,t){if(t){var a=e.firstChild;if(a&&a===e.lastChild&&a.nodeType===3){a.nodeValue=t;return}}e.textContent=t}var Q0=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 ds(e,t,a){var l=t.indexOf("--")===0;a==null||typeof a=="boolean"||a===""?l?e.setProperty(t,""):t==="float"?e.cssFloat="":e[t]="":l?e.setProperty(t,a):typeof a!="number"||a===0||Q0.has(t)?t==="float"?e.cssFloat=a:e[t]=(""+a).trim():e[t]=a+"px"}function ms(e,t,a){if(t!=null&&typeof t!="object")throw Error(c(62));if(e=e.style,a!=null){for(var l in a)!a.hasOwnProperty(l)||t!=null&&t.hasOwnProperty(l)||(l.indexOf("--")===0?e.setProperty(l,""):l==="float"?e.cssFloat="":e[l]="");for(var u in t)l=t[u],t.hasOwnProperty(u)&&a[u]!==l&&ds(e,u,l)}else for(var r in t)t.hasOwnProperty(r)&&ds(e,r,t[r])}function so(e){if(e.indexOf("-")===-1)return!1;switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var J0=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
33-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"]]),$0=/^[\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 _i(e){return $0.test(""+e)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":e}function Wt(){}var fo=null;function mo(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var xn=null,Tn=null;function hs(e){var t=bn(e);if(t&&(e=t.stateNode)){var a=e[nt]||null;e:switch(e=t.stateNode,t.type){case"input":if(ro(e,a.value,a.defaultValue,a.defaultValue,a.checked,a.defaultChecked,a.type,a.name),t=a.name,a.type==="radio"&&t!=null){for(a=e;a.parentNode;)a=a.parentNode;for(a=a.querySelectorAll('input[name="'+Ot(""+t)+'"][type="radio"]'),t=0;t<a.length;t++){var l=a[t];if(l!==e&&l.form===e.form){var u=l[nt]||null;if(!u)throw Error(c(90));ro(l,u.value,u.defaultValue,u.defaultValue,u.checked,u.defaultChecked,u.type,u.name)}}for(t=0;t<a.length;t++)l=a[t],l.form===e.form&&rs(l)}break e;case"textarea":ss(e,a.value,a.defaultValue);break e;case"select":t=a.value,t!=null&&zn(e,!!a.multiple,t,!1)}}}var ho=!1;function ps(e,t,a){if(ho)return e(t,a);ho=!0;try{var l=e(t);return l}finally{if(ho=!1,(xn!==null||Tn!==null)&&(ou(),xn&&(t=xn,e=Tn,Tn=xn=null,hs(t),e)))for(t=0;t<e.length;t++)hs(e[t])}}function dl(e,t){var a=e.stateNode;if(a===null)return null;var l=a[nt]||null;if(l===null)return null;a=l[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(l=!l.disabled)||(e=e.type,l=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!l;break e;default:e=!1}if(e)return null;if(a&&typeof a!="function")throw Error(c(231,t,typeof a));return a}var It=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),po=!1;if(It)try{var ml={};Object.defineProperty(ml,"passive",{get:function(){po=!0}}),window.addEventListener("test",ml,ml),window.removeEventListener("test",ml,ml)}catch{po=!1}var _a=null,vo=null,Si=null;function vs(){if(Si)return Si;var e,t=vo,a=t.length,l,u="value"in _a?_a.value:_a.textContent,r=u.length;for(e=0;e<a&&t[e]===u[e];e++);var f=a-e;for(l=1;l<=f&&t[a-l]===u[r-l];l++);return Si=u.slice(e,1<l?1-l:void 0)}function zi(e){var t=e.keyCode;return"charCode"in e?(e=e.charCode,e===0&&t===13&&(e=13)):e=t,e===10&&(e=13),32<=e||e===13?e:0}function Ei(){return!0}function gs(){return!1}function lt(e){function t(a,l,u,r,f){this._reactName=a,this._targetInst=u,this.type=l,this.nativeEvent=r,this.target=f,this.currentTarget=null;for(var m in e)e.hasOwnProperty(m)&&(a=e[m],this[m]=a?a(r):r[m]);return this.isDefaultPrevented=(r.defaultPrevented!=null?r.defaultPrevented:r.returnValue===!1)?Ei:gs,this.isPropagationStopped=gs,this}return O(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=Ei)},stopPropagation:function(){var a=this.nativeEvent;a&&(a.stopPropagation?a.stopPropagation():typeof a.cancelBubble!="unknown"&&(a.cancelBubble=!0),this.isPropagationStopped=Ei)},persist:function(){},isPersistent:Ei}),t}var $a={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},xi=lt($a),hl=O({},$a,{view:0,detail:0}),K0=lt(hl),go,yo,pl,Ti=O({},hl,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:_o,button:0,buttons:0,relatedTarget:function(e){return e.relatedTarget===void 0?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==pl&&(pl&&e.type==="mousemove"?(go=e.screenX-pl.screenX,yo=e.screenY-pl.screenY):yo=go=0,pl=e),go)},movementY:function(e){return"movementY"in e?e.movementY:yo}}),ys=lt(Ti),F0=O({},Ti,{dataTransfer:0}),W0=lt(F0),I0=O({},hl,{relatedTarget:0}),bo=lt(I0),P0=O({},$a,{animationName:0,elapsedTime:0,pseudoElement:0}),ep=lt(P0),tp=O({},$a,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),ap=lt(tp),np=O({},$a,{data:0}),bs=lt(np),lp={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},ip={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"},up={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function op(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=up[e])?!!t[e]:!1}function _o(){return op}var rp=O({},hl,{key:function(e){if(e.key){var t=lp[e.key]||e.key;if(t!=="Unidentified")return t}
vendor: 5,186 bytes, line 33
33return e.type==="keypress"?(e=zi(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?ip[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:_o,charCode:function(e){return e.type==="keypress"?zi(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?zi(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),cp=lt(rp),sp=O({},Ti,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),_s=lt(sp),fp=O({},hl,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:_o}),dp=lt(fp),mp=O({},$a,{propertyName:0,elapsedTime:0,pseudoElement:0}),hp=lt(mp),pp=O({},Ti,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0}),vp=lt(pp),gp=O({},$a,{newState:0,oldState:0}),yp=lt(gp),bp=[9,13,27,32],So=It&&"CompositionEvent"in window,vl=null;It&&"documentMode"in document&&(vl=document.documentMode);var _p=It&&"TextEvent"in window&&!vl,Ss=It&&(!So||vl&&8<vl&&11>=vl),zs=" ",Es=!1;function xs(e,t){switch(e){case"keyup":return bp.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Ts(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var An=!1;function Sp(e,t){switch(e){case"compositionend":return Ts(t);case"keypress":return t.which!==32?null:(Es=!0,zs);case"textInput":return e=t.data,e===zs&&Es?null:e;default:return null}}function zp(e,t){if(An)return e==="compositionend"||!So&&xs(e,t)?(e=vs(),Si=vo=_a=null,An=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return Ss&&t.locale!=="ko"?null:t.data;default:return null}}var Ep={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function As(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!Ep[e.type]:t==="textarea"}function Os(e,t,a,l){xn?Tn?Tn.push(l):Tn=[l]:xn=l,t=hu(t,"onChange"),0<t.length&&(a=new xi("onChange","change",null,a,l),e.push({event:a,listeners:t}))}var gl=null,yl=null;function xp(e){sm(e,0)}function Ai(e){var t=fl(e);if(rs(t))return e}function Ns(e,t){if(e==="change")return t}var js=!1;if(It){var zo;if(It){var Eo="oninput"in document;if(!Eo){var Ds=document.createElement("div");Ds.setAttribute("oninput","return;"),Eo=typeof Ds.oninput=="function"}zo=Eo}else zo=!1;js=zo&&(!document.documentMode||9<document.documentMode)}function Ms(){gl&&(gl.detachEvent("onpropertychange",ws),yl=gl=null)}function ws(e){if(e.propertyName==="value"&&Ai(yl)){var t=[];Os(t,yl,e,mo(e)),ps(xp,t)}}function Tp(e,t,a){e==="focusin"?(Ms(),gl=t,yl=a,gl.attachEvent("onpropertychange",ws)):e==="focusout"&&Ms()}function Ap(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return Ai(yl)}function Op(e,t){if(e==="click")return Ai(t)}function Np(e,t){if(e==="input"||e==="change")return Ai(t)}function jp(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var gt=typeof Object.is=="function"?Object.is:jp;function bl(e,t){if(gt(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var a=Object.keys(e),l=Object.keys(t);if(a.length!==l.length)return!1;for(l=0;l<a.length;l++){var u=a[l];if(!Pu.call(t,u)||!gt(e[u],t[u]))return!1}return!0}function Us(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function Cs(e,t){var a=Us(e);e=0;for(var l;a;){if(a.nodeType===3){if(l=e+a.textContent.length,e<=t&&l>=t)return{node:a,offset:t-e};e=l}e:{for(;a;){if(a.nextSibling){a=a.nextSibling;break e}a=a.parentNode}a=void 0}a=Us(a)}}function Zs(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Zs(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Rs(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=bi(e.document);t instanceof e.HTMLIFrameElement;){try{var a=typeof t.contentWindow.location.href=="string"}catch{a=!1}if(a)e=t.contentWindow;else break;t=bi(e.document)}return t}function xo(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}var Dp=It&&"documentMode"in document&&11>=document.documentMode,On=null,To=null,_l=null,Ao=!1;function Bs(e,t,a){var l=a.window===a?a.document:a.nodeType===9?a:a.ownerDocument;Ao||On==null||On!==bi(l)||(l=On,"selectionStart"in l&&xo(l)?l={start:l.selectionStart,end:l.selectionEnd}:(l=(l.ownerDocument&&l.ownerDocument.defaultView||window).getSelection(),l={anchorNode:l.anchorNode,anchorOffset:l.anchorOffset,focu
vendor: 21,320 bytes, line 33
33sNode:l.focusNode,focusOffset:l.focusOffset}),_l&&bl(_l,l)||(_l=l,l=hu(To,"onSelect"),0<l.length&&(t=new xi("onSelect","select",null,t,a),e.push({event:t,listeners:l}),t.target=On)))}function Ka(e,t){var a={};return a[e.toLowerCase()]=t.toLowerCase(),a["Webkit"+e]="webkit"+t,a["Moz"+e]="moz"+t,a}var Nn={animationend:Ka("Animation","AnimationEnd"),animationiteration:Ka("Animation","AnimationIteration"),animationstart:Ka("Animation","AnimationStart"),transitionrun:Ka("Transition","TransitionRun"),transitionstart:Ka("Transition","TransitionStart"),transitioncancel:Ka("Transition","TransitionCancel"),transitionend:Ka("Transition","TransitionEnd")},Oo={},Ls={};It&&(Ls=document.createElement("div").style,"AnimationEvent"in window||(delete Nn.animationend.animation,delete Nn.animationiteration.animation,delete Nn.animationstart.animation),"TransitionEvent"in window||delete Nn.transitionend.transition);function Fa(e){if(Oo[e])return Oo[e];if(!Nn[e])return e;var t=Nn[e],a;for(a in t)if(t.hasOwnProperty(a)&&a in Ls)return Oo[e]=t[a];return e}var qs=Fa("animationend"),Hs=Fa("animationiteration"),ks=Fa("animationstart"),Mp=Fa("transitionrun"),wp=Fa("transitionstart"),Up=Fa("transitioncancel"),Vs=Fa("transitionend"),Gs=new Map,No="abort auxClick beforeToggle cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");No.push("scrollEnd");function qt(e,t){Gs.set(e,t),Ja(t,[e])}var Oi=typeof reportError=="function"?reportError:function(e){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var t=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof e=="object"&&e!==null&&typeof e.message=="string"?String(e.message):String(e),error:e});if(!window.dispatchEvent(t))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",e);return}console.error(e)},Nt=[],jn=0,jo=0;function Ni(){for(var e=jn,t=jo=jn=0;t<e;){var a=Nt[t];Nt[t++]=null;var l=Nt[t];Nt[t++]=null;var u=Nt[t];Nt[t++]=null;var r=Nt[t];if(Nt[t++]=null,l!==null&&u!==null){var f=l.pending;f===null?u.next=u:(u.next=f.next,f.next=u),l.pending=u}r!==0&&Ys(a,u,r)}}function ji(e,t,a,l){Nt[jn++]=e,Nt[jn++]=t,Nt[jn++]=a,Nt[jn++]=l,jo|=l,e.lanes|=l,e=e.alternate,e!==null&&(e.lanes|=l)}function Do(e,t,a,l){return ji(e,t,a,l),Di(e)}function Wa(e,t){return ji(e,null,null,t),Di(e)}function Ys(e,t,a){e.lanes|=a;var l=e.alternate;l!==null&&(l.lanes|=a);for(var u=!1,r=e.return;r!==null;)r.childLanes|=a,l=r.alternate,l!==null&&(l.childLanes|=a),r.tag===22&&(e=r.stateNode,e===null||e._visibility&1||(u=!0)),e=r,r=r.return;return e.tag===3?(r=e.stateNode,u&&t!==null&&(u=31-vt(a),e=r.hiddenUpdates,l=e[u],l===null?e[u]=[t]:l.push(t),t.lane=a|536870912),r):null}function Di(e){if(50<Vl)throw Vl=0,qr=null,Error(c(185));for(var t=e.return;t!==null;)e=t,t=e.return;return e.tag===3?e.stateNode:null}var Dn={};function Cp(e,t,a,l){this.tag=e,this.key=a,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=l,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function yt(e,t,a,l){return new Cp(e,t,a,l)}function Mo(e){return e=e.prototype,!(!e||!e.isReactComponent)}function Pt(e,t){var a=e.alternate;return a===null?(a=yt(e.tag,t,e.key,e.mode),a.elementType=e.elementType,a.type=e.type,a.stateNode=e.stateNode,a.alternate=e,e.alternate=a):(a.pendingProps=t,a.type=e.type,a.flags=0,a.subtreeFlags=0,a.deletions=null),a.flags=e.flags&65011712,a.childLanes=e.childLanes,a.lanes=e.lanes,a.child=e.child,a.memoizedProps=e.memoizedProps,a.memoizedState=e.memoizedState,a.updateQueue=e.updateQueue,t=e.dependencies,a.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},a.sibling=e.sibling,a.index=e.index,a.ref=e.ref,a.refCleanup=e.refCleanup,a}function Xs(e,t){e.flags&=65011714;var a=e.alternate;return a===null?(e.childLanes=0,e.lanes=t,e.child=null,e.subtreeFlags=0,e.memoizedProps=null,e.memoizedState=null,e.updateQueue=null,e.dependencies=null,e.stateNode=null):(e.childLanes=a.childLanes,e.lanes=a.lanes,e.child=a.child,e.subtreeFlags=0,e.deletions=null,e.memoizedProps=a.memoizedProps,e.memoizedState=a.memoizedState,e.updateQueue=a.updateQueue,e.type=a.type,t=a.dependencies,e.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext}),e}function Mi(e,t,a,l,u,r){var f=0;if(l=e,typeof e=="function")Mo(e)&&(f=1);else if(typeof e=="string")f=qv(e,a,Ge.current)?26:e==="html"||e==="head"||e==="body"?27:5;else e:switch(e){case hn:return e=yt(31,a,t,u),e.elementType=hn,e.lanes=r,e;case G:return Ia(a.children,u,r,t);case pe:f=8,u|=24;break;case xt:return e=yt(12,a,t,u|2),e.elementType=xt,e.lanes=r,e;case Oe:return e=yt(13,a,t,u),e.elementType=Oe,e.lanes=r,e;case Ne:return e=yt(19,a,t,u),e.elementType=Ne,e.lanes=r,e;default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case Qe:f=10;break e;case xe:f=9;break e;case He:f=11;break e;case dt:f=14;break e;case mt:f=16,l=null;break e}f=29,a=Error(c(130,e===null?"null":typeof e,"")),l=null}return t=yt(f,a,t,u),t.elementType=e,t.type=l,t.lanes=r,t}function Ia(e,t,a,l){return e=yt(7,e,l,t),e.lanes=a,e}function wo(e,t,a){return e=yt(6,e,null,t),e.lanes=a,e}function Qs(e){var t=yt(18,null,null,0);return t.stateNode=e,t}function Uo(e,t,a){return t=yt(4,e.children!==null?e.children:[],e.key,t),t.lanes=a,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}var Js=new WeakMap;function jt(e,t){if(typeof e=="object"&&e!==null){var a=Js.get(e);return a!==void 0?a:(t={value:e,source:t,stack:Qc(t)},Js.set(e,t),t)}return{value:e,source:t,stack:Qc(t)}}var Mn=[],wn=0,wi=null,Sl=0,Dt=[],Mt=0,Sa=null,Xt=1,Qt="";function ea(e,t){Mn[wn++]=Sl,Mn[wn++]=wi,wi=e,Sl=t}function $s(e,t,a){Dt[Mt++]=Xt,Dt[Mt++]=Qt,Dt[Mt++]=Sa,Sa=e;var l=Xt;e=Qt;var u=32-vt(l)-1;l&=~(1<<u),a+=1;var r=32-vt(t)+u;if(30<r){var f=u-u%5;r=(l&(1<<f)-1).toString(32),l>>=f,u-=f,Xt=1<<32-vt(t)+u|a<<u|l,Qt=r+e}else Xt=1<<r|a<<u|l,Qt=e}function Co(e){e.return!==null&&(ea(e,1),$s(e,1,0))}function Zo(e){for(;e===wi;)wi=Mn[--wn],Mn[wn]=null,Sl=Mn[--wn],Mn[wn]=null;for(;e===Sa;)Sa=Dt[--Mt],Dt[Mt]=null,Qt=Dt[--Mt],Dt[Mt]=null,Xt=Dt[--Mt],Dt[Mt]=null}function Ks(e,t){Dt[Mt++]=Xt,Dt[Mt++]=Qt,Dt[Mt++]=Sa,Xt=t.id,Qt=t.overflow,Sa=e}var $e=null,be=null,ee=!1,za=null,wt=!1,Ro=Error(c(519));function Ea(e){var t=Error(c(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw zl(jt(t,e)),Ro}function Fs(e){var t=e.stateNode,a=e.type,l=e.memoizedProps;switch(t[Je]=e,t[nt]=l,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<Yl.length;a++)F(Yl[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),cs(t,l.value,l.defaultValue,l.checked,l.defaultChecked,l.type,l.name,!0);break;case"select":F("invalid",t);break;case"textarea":F("invalid",t),fs(t,l.value,l.defaultValue,l.children)}a=l.children,typeof a!="string"&&typeof a!="number"&&typeof a!="bigint"||t.textContent===""+a||l.suppressHydrationWarning===!0||hm(t.textContent,a)?(l.popover!=null&&(F("beforetoggle",t),F("toggle",t)),l.onScroll!=null&&F("scroll",t),l.onScrollEnd!=null&&F("scrollend",t),l.onClick!=null&&(t.onclick=Wt),t=!0):t=!1,t||Ea(e,!0)}function Ws(e){for($e=e.return;$e;)switch($e.tag){case 5:case 31:case 13:wt=!1;return;case 27:case 3:wt=!0;return;default:$e=$e.return}}function Un(e){if(e!==$e)return!1;if(!ee)return Ws(e),ee=!0,!1;var t=e.tag,a;if((a=t!==3&&t!==27)&&((a=t===5)&&(a=e.type,a=!(a!=="form"&&a!=="button")||ec(e.type,e.memoizedProps)),a=!a),a&&be&&Ea(e),Ws(e),t===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(c(317));be=Em(e)}else if(t===31){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(c(317));be=Em(e)}else t===27?(t=be,Ba(e.type)?(e=ic,ic=null,be=e):be=t):be=$e?Ct(e.stateNode.nextSibling):null;return!0}function Pa(){be=$e=null,ee=!1}function Bo(){var e=za;return e!==null&&(rt===null?rt=e:rt.push.apply(rt,e),za=null),e}function zl(e){za===null?za=[e]:za.push(e)}var Lo=et(null),en=null,ta=null;function xa(e,t,a){ie(Lo,t._currentValue),t._currentValue=a}function aa(e){e._currentValue=Lo.current,Te(Lo)}function qo(e,t,a){for(;e!==null;){var l=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,l!==null&&(l.childLanes|=t)):l!==null&&(l.childLanes&t)!==t&&(l.childLanes|=t),e===a)break;e=e.return}}function Ho(e,t,a,l){var u=e.child;for(u!==null&&(u.return=e);u!==null;){var r=u.dependencies;if(r!==null){var f=u.child;r=r.firstContext;e:for(;r!==null;){var m=r;r=u;for(var v=0;v<t.length;v++)if(m.context===t[v]){r.lanes|=a,m=r.alternate,m!==null&&(m.lanes|=a),qo(r.return,a,e),l||(f=null);break e}r=m.next}}else if(u.tag===18){if(f=u.return,f===null)throw Error(c(341));f.lanes|=a,r=f.alternate,r!==null&&(r.lanes|=a),qo(f,a,e),f=null}else f=u.child;if(f!==null)f.return=u;else for(f=u;f!==null;){if(f===e){f=null;break}if(u=f.sibling,u!==null){u.return=f.return,f=u;break}f=f.return}u=f}}function Cn(e,t,a,l){e=null;for(var u=t,r=!1;u!==null;){if(!r){if((u.flags&524288)!==0)r=!0;else if((u.flags&262144)!==0)break}if(u.tag===10){var f=u.alternate;if(f===null)throw Error(c(387));if(f=f.memoizedProps,f!==null){var m=u.type;gt(u.pendingProps.value,f.value)||(e!==null?e.push(m):e=[m])}}else if(u===ci.current){if(f=u.alternate,f===null)throw Error(c(387));f.memoizedState.memoizedState!==u.memoizedState.memoizedState&&(e!==null?e.push(Kl):e=[Kl])}u=u.return}e!==null&&Ho(t,e,a,l),t.flags|=262144}function Ui(e){for(e=e.firstContext;e!==null;){if(!gt(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function tn(e){en=e,ta=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function Ke(e){return Is(en,e)}function Ci(e,t){return en===null&&tn(e),Is(e,t)}function Is(e,t){var a=t._currentValue;if(t={context:t,memoizedValue:a,next:null},ta===null){if(e===null)throw Error(c(308));ta=t,e.dependencies={lanes:0,firstContext:t},e.flags|=524288}else ta=ta.next=t;return a}var Zp=typeof AbortController<"u"?AbortController:function(){var e=[],t=this.signal={aborted:!1,addEventListener:function(a,l){e.push(l)}};this.abort=function(){t.aborted=!0,e.forEach(function(a){return a()})}},Rp=n.unstable_scheduleCallback,Bp=n.unstable_NormalPriority,Re={$$typeof:Qe,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function ko(){return{controller:new Zp,data:new Map,refCount:0}}function El(e){e.refCount--,e.refCount===0&&Rp(Bp,function(){e.controller.abort()})}var xl=null,Vo=0,Zn=0,Rn=null;function Lp(e,t){if(xl===null){var a=xl=[];Vo=0,Zn=Xr(),Rn={status:"pending",value:void 0,then:function(l){a.push(l)}}}return Vo++,t.then(Ps,Ps),t}function Ps(){if(--Vo===0&&xl!==null){Rn!==null&&(Rn.status="fulfilled");var e=xl;xl=null,Zn=0,Rn=null;for(var t=0;t<e.length;t++)(0,e[t])()}}function qp(e,t){var a=[],l={status:"pending",value:null,reason:null,then:function(u){a.push(u)}};return e.then(function(){l.status="fulfilled",l.value=t;for(var u=0;u<a.length;u++)(0,a[u])(t)},function(u){for(l.status="rejected",l.reason=u,u=0;u<a.length;u++)(0,a[u])(void 0)}),l}var ef=M.S;M.S=function(e,t){Ld=ht(),typeof t=="object"&&t!==null&&typeof t.then=="function"&&Lp(e,t),ef!==null&&ef(e,t)};var an=et(null);function Go(){var e=an.current;return e!==null?e:me.pooledCache}function Zi(e,t){t===null?ie(an,an.current):ie(an,t.pool)}function tf(){var e=Go();return e===null?null:{parent:Re._currentValue,pool:e}}var Bn=Error(c(460)),Yo=Error(c(474)),Ri=Error(c(542)),Bi={then:function(){}};function af(e){return e=e.status,e==="fulfilled"||e==="rejected"}function nf(e,t,a){switch(a=e[a],a===void 0?e.push(t):a!==t&&(t.then(Wt,Wt),t=a),t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,uf(e),e;default:if(typeof t.status=="string")t.then(Wt,Wt);else{if(e=me,e!==null&&100<e.shellSuspendCounter)throw Error(c(482));e=t,e.status="pending",e.then(function(l){if(t.status==="pending"){var u=t;u.status="fulfilled",u.value=l}},function(l){if(t.status==="pending"){var u=t;u.status="rejected",u.reason=l}})}switch(t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,uf(e),e}throw ln=t,Bn}}function nn(e){try{var t=e._init;return t(e._payload)}catch(a){throw a!==null&&typeof a=="object"&&typeof a.then=="function"?(ln=a,Bn):a}}var ln=null;function lf(){if(ln===null)throw Error(c(459));var e=ln;return ln=null,e}function uf(e){if(e===Bn||e===Ri)throw Error(c(483))}var Ln=null,Tl=0;function Li(e){var t=Tl;return Tl+=1,Ln===null&&(Ln=[]),nf(Ln,e,t)}function Al(e,t){t=t.props.ref,e.ref=t!==void 0?t:null}function qi(e,t){throw t.$$typeof===C?Error(c(525)):(e=Object.prototype.toString.call(t),Error(c(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e)))}function of(e){function t(_,b){if(e){var z=_.deletions;z===null?(_.deletions=[b],_.flags|=16):z.push(b)}}function a(_,b){if(!e)return null;for(;b!==null;)t(_,b),b=b.sibling;return null}function l(_){for(var b=new Map;_!==null;)_.key!==null?b.set(_.key,_):b.set(_.index,_),_=_.sibling;return b}function u(_,b){return _=Pt(_,b),_.index=0,_.sibling=null,_}function r(_,b,z){return _.index=z,e?(z=_.alternate,z!==null?(z=z.index,z<b?(_.flags|=67108866,b):z):(_.flags|=67108866,b)):(_.flags|=1048576,b)}function f(_){return e&&_.alternate===null&&(_.flags|=67108866),_}function m(_,b,z,j){return b===null||b.tag!==6?(b=wo(z,_.mode,j),b.return=_,b):(b=u(b,z),b.return=_,b)}function v(_,b,z,j){var H=z.type;return H===G?N(_,b,z.props.children,j,z.key):b!==null&&(b.elementType===H||typeof H=="object"&&H!==null&&H.$$typeof===mt&&nn(H)===b.type)?(b=u(b,z.props),Al(b,z),b.return=_,b):(b=Mi(z.type,z.key,z.props,null,_.mode,j),Al(b,z),b.return=_,b)}function E(_,b,z,j){return b===null||b.tag!==4||b.stateNode.containerInfo!==z.containerInfo||b.stateNode.implementation!==z.implementation?(b=Uo(z,_.mode,j),b.return=_,b):(b=u(b,z.children||[]),b.return=_,b)}function N(_,b,z,j,H){return b===null||b.tag!==7?(b=Ia(z,_.mode,j,H),b.return=_,b):(b=u(b,z),b.return=_,b)}function w(_,b,z){if(typeof b=="string"&&b!==""||typeof b=="number"||typeof b=="bigint")return b=wo(""+b,_.mode,z),b.return=_,b;if(typeof b=="object"&&b!==null){switch(b.$$typeof){case L:return z=Mi(b.type,b.key,b.props,null,_.mode,z),Al(z,b),z.return=_,z;case X:return b=Uo(b,_.mode,z),b.return=_,b;case mt:return b=nn(b),w(_,b,z)}if(Kt(b)||Tt(b))return b=Ia(b,_.mode,z,null),b.return=_,b;if(typeof b.then=="function")return w(_,Li(b),z);if(b.$$typeof===Qe)return w(_,Ci(_,b),z);qi(_,b)}return null}function x(_,b,z,j){var H=b!==null?b.key:null;if(typeof z=="string"&&z!==""||typeof z=="number"||typeof z=="bigint")return H!==null?null:m(_,b,""+z,j);if(typeof z=="object"&&z!==null){switch(z.$$typeof){case L:return z.key===H?v(_,b,z,j):null;case X:return z.key===H?E(_,b,z,j):null;case mt:return z=nn(z),x(_,b,z,j)}if(Kt(z)||Tt(z))return H!==null?null:N(_,b,z,j,null);if(typeof z.then=="function")return x(_,b,Li(z),j);if(z.$$typeof===Qe)return x(_,b,Ci(_,z),j);qi(_,z)}return null}function T(_,b,z,j,H){if(typeof j=="string"&&j!==""||typeof j=="number"||typeof j=="bigint")return _=_.get(z)||null,m(b,_,""+j,H);if(typeof j=="object"&&j!==null){switch(j.$$typeof){case L:return _=_.get(j.key===null?z:j.key)||null,v(b,_,j,H);case X:return _=_.get(j.key===null?z:j.key)||null,E(b,_,j,H);case mt:return j=nn(j),T(_,b,z,j,H)}if(Kt(j)||Tt(j))return _=_.get(z)||null,N(b,_,j,H,null);if(typeof j.then=="function")return T(_,b,z,Li(j),H);if(j.$$typeof===Qe)return T(_,b,z,Ci(b,j),H);qi(b,j)}return null}function R(_,b,z,j){for(var H=null,ae=null,B=b,$=b=0,P=null;B!==null&&$<z.length;$++){B.index>$?(P=B,B=null):P=B.sibling;var ne=x(_,B,z[$],j);if(ne===null){B===null&&(B=P);break}e&&B&&ne.alternate===null&&t(_,B),b=r(ne,b,$),ae===null?H=ne:ae.sibling=ne,ae=ne,B=P}if($===z.length)return a(_,B),ee&&ea(_,$),H;if(B===null){for(;$<z.length;$++)B=w(_,z[$],j),B!==null&&(b=r(B,b,$),ae===null?H=B:ae.sibling=B,ae=B);return ee&&ea(_,$),H}for(B=l(B);$<z.length;$++)P=T(B,_,$,z[$],j),P!==null&&(e&&P.alternate!==null&&B.delete(P.key===null?$:P.key),b=r(P,b,$),ae===null?H=P:ae.sibling=P,ae=P);return e&&B.forEach(function(Va){return t(_,Va)}),ee&&ea(_,$),H}function k(_,b,z,j){if(z==null)throw Error(c(151));for(var H=null,ae=null,B=b,$=b=0,P=null,ne=z.next();B!==null&&!ne.done;$++,ne=z.next()){B.index>$?(P=B,B=null):P=B.sibling;var Va=x(_,B,ne.value,j);if(Va===null){B===null&&(B=P);break}e&&B&&Va.alternate===null&&t(_,B),b=r(Va,b,$),ae===null?H=Va:ae.sibling=Va,ae=Va,B=P}if(ne.done)return a(_,B),ee&&ea(_,$),H;if(B===null){for(;!ne.done;$++,ne=z.next())ne=w(_,ne.value,j),ne!==null&&(b=r(ne,b,$),ae===null?H=ne:ae.sibling=ne,ae=ne);return ee&&ea(_,$),H}for(B=l(B);!ne.done;$++,ne=z.next())ne=T(B,_,$,ne.value,j),ne!==null&&(e&&ne.alternate!==null&&B.delete(ne.key===null?$:ne.key),b=r(ne,b,$),ae===null?H=ne:ae.sibling=ne,ae=ne);return e&&B.forEach(function(Fv){return t(_,Fv)}),ee&&ea(_,$),H}function de(_,b,z,j){if(typeof z=="object"&&z!==null&&z.type===G&&z.key===null&&(z=z.props.children),typeof z=="object"&&z!==null){switch(z.$$typeof){case L:e:{for(var H=z.key;b!==null;){if(b.key===H){if(H=z.type,H===G){if(b.tag===7){a(_,b.sibling),j=u(b,z.props.children),j.return=_,_=j;break e}}else if(b.elementType===H||typeof H=="object"&&H!==null&&H.$$typeof===mt&&nn(H)===b.type){a(_,b.sibling),j=u(b,z.props),Al(j,z),j.return=_,_=j;break e}a(_,b);break}else t(_,b);b=b.sibling}z.type===G?(j=Ia(z.props.children,_.mode,j,z.key),j.return=_,_=j):(j=Mi(z.type,z.key,z.props,null,_.mode,j),Al(j,z),j.return=_,_=j)}return f(_);case X:e:{for(H=z.key;b!==null;){if(b.key===H)if(b.tag===4&&b.stateNode.containerInfo===z.containerInfo&&b.stateNode.implementation===z.implementation){a(_,b.sibling),j=u(b,z.children||[]),j.return=_,_=j;break e}else{a(_,b);break}else t(_,b);b=b.sibling}j=Uo(z,_.mode,j),j.return=_,_=j}return f(_);case mt:return z=nn(z),de(_,b,z,j)}if(Kt(z))return R(_,b,z,j);if(Tt(z)){if(H=Tt(z),typeof H!="function")throw Error(c(150));return z=H.call(z),k(_,b,z,j)}if(typeof z.then=="function")return de(_,b,Li(z),j);if(z.$$typeof===Qe)return de(_,b,Ci(_,z),j);qi(_,z)}return typeof z=="string"&&z!==""||typeof z=="number"||typeof z=="bigint"?(z=""+z,b!==null&&b.tag===6?(a(_,b.sibling),j=u(b,z),j.return=_,_=j):(a(_,b),j=wo(z,_.mode,j),j.return=_,_=j),f(_)):a(_,b)}return function(_,b,z,j){try{Tl=0;var H=de(_,b,z,j);return Ln=null,H}catch(B){if(B===Bn||B===Ri)throw B;var ae=yt(29,B,null,_.mode);return ae.lanes=j,ae.return=_,ae}finally{}}}var un=of(!0),rf=of(!1),Ta=!1;function Xo(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function Qo(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,callbacks:null})}function Aa(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function Oa(e,t,a){var l=e.updateQueue;if(l===null)return null;if(l=l.shared,(le&2)!==0){var u=l.pending;return u===null?t.next=t:(t.next=u.next,u.next=t),l.pending=t,t=Di(e),Ys(e,null,a),t}return ji(e,l,t,a),Di(e)}function Ol(e,t,a){if(t=t.updateQueue,t!==null&&(t=t.shared,(a&4194048)!==0)){var l=t.lanes;l&=e.pendingLanes,a|=l,t.lanes=a,Ic(e,a)}}function Jo(e,t){var a=e.updateQueue,l=e.alternate;if(l!==null&&(l=l.updateQueue,a===l)){var u=null,r=null;if(a=a.firstBaseUpdate,a!==null){do{var f={lane:a.lane,tag:a.tag,payload:a.payload,callback:null,next:null};r===null?u=r=f:r=r.next=f,a=a.next}while(a!==null);r===null?u=r=t:r=r.next=t}else u=r=t;a={baseState:l.baseState,firstBaseUpdate:u,lastBaseUpdate:r,shared:l.shared,callbacks:l.callbacks},e.updateQueue=a;return}e=a.lastBaseUpdate,e===null?a.firstBaseUpdate=t:e.next=t,a.lastBaseUpdate=t}var $o=!1;function Nl(){if($o){var e=Rn;if(e!==null)throw e}}function jl(e,t,a,l){$o=!1;var u=e.updateQueue;Ta=!1;var r=u.firstBaseUpdate,f=u.lastBaseUpdate,m=u.shared.pending;if(m!==null){u.shared.pending=null;var v=m,E=v.next;v.next=null,f===null?r=E:f.next=E,f=v;var N=e.alternate;N!==null&&(N=N.updateQueue,m=N.lastBaseUpdate,m!==f&&(m===null?N.firstBaseUpdate=E:m.next=E,N.lastBaseUpdate=v))}if(r!==null){var w=u.baseState;f=0,N=E=v=null,m=r;do{var x=m.lane&-536870913,T=x!==m.lane;if(T?(I&x)===x:(l&x)===x){x!==0&&x===Zn&&($o=!0),N!==null&&(N=N.next={lane:0,tag:m.tag,payload:m.payload,callback:null,next:null});e:{var R=e,k=m;x=t;var de=a;switch(k.tag){case 1:if(R=k.payload,typeof R=="function"){w=R.call(de,w,x);break e}w=R;break e;case 3:R.flags=R.flags&-65537|128;
vendor: 5,415 bytes, line 33
33case 0:if(R=k.payload,x=typeof R=="function"?R.call(de,w,x):R,x==null)break e;w=O({},w,x);break e;case 2:Ta=!0}}x=m.callback,x!==null&&(e.flags|=64,T&&(e.flags|=8192),T=u.callbacks,T===null?u.callbacks=[x]:T.push(x))}else T={lane:x,tag:m.tag,payload:m.payload,callback:m.callback,next:null},N===null?(E=N=T,v=w):N=N.next=T,f|=x;if(m=m.next,m===null){if(m=u.shared.pending,m===null)break;T=m,m=T.next,T.next=null,u.lastBaseUpdate=T,u.shared.pending=null}}while(!0);N===null&&(v=w),u.baseState=v,u.firstBaseUpdate=E,u.lastBaseUpdate=N,r===null&&(u.shared.lanes=0),wa|=f,e.lanes=f,e.memoizedState=w}}function cf(e,t){if(typeof e!="function")throw Error(c(191,e));e.call(t)}function sf(e,t){var a=e.callbacks;if(a!==null)for(e.callbacks=null,e=0;e<a.length;e++)cf(a[e],t)}var qn=et(null),Hi=et(0);function ff(e,t){e=fa,ie(Hi,e),ie(qn,t),fa=e|t.baseLanes}function Ko(){ie(Hi,fa),ie(qn,qn.current)}function Fo(){fa=Hi.current,Te(qn),Te(Hi)}var bt=et(null),Ut=null;function Na(e){var t=e.alternate;ie(Ce,Ce.current&1),ie(bt,e),Ut===null&&(t===null||qn.current!==null||t.memoizedState!==null)&&(Ut=e)}function Wo(e){ie(Ce,Ce.current),ie(bt,e),Ut===null&&(Ut=e)}function df(e){e.tag===22?(ie(Ce,Ce.current),ie(bt,e),Ut===null&&(Ut=e)):ja()}function ja(){ie(Ce,Ce.current),ie(bt,bt.current)}function _t(e){Te(bt),Ut===e&&(Ut=null),Te(Ce)}var Ce=et(0);function ki(e){for(var t=e;t!==null;){if(t.tag===13){var a=t.memoizedState;if(a!==null&&(a=a.dehydrated,a===null||nc(a)||lc(a)))return t}else if(t.tag===19&&(t.memoizedProps.revealOrder==="forwards"||t.memoizedProps.revealOrder==="backwards"||t.memoizedProps.revealOrder==="unstable_legacy-backwards"||t.memoizedProps.revealOrder==="together")){if((t.flags&128)!==0)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var na=0,J=null,se=null,Be=null,Vi=!1,Hn=!1,on=!1,Gi=0,Dl=0,kn=null,Hp=0;function je(){throw Error(c(321))}function Io(e,t){if(t===null)return!1;for(var a=0;a<t.length&&a<e.length;a++)if(!gt(e[a],t[a]))return!1;return!0}function Po(e,t,a,l,u,r){return na=r,J=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,M.H=e===null||e.memoizedState===null?Kf:hr,on=!1,r=a(l,u),on=!1,Hn&&(r=hf(t,a,l,u)),mf(e),r}function mf(e){M.H=Ul;var t=se!==null&&se.next!==null;if(na=0,Be=se=J=null,Vi=!1,Dl=0,kn=null,t)throw Error(c(300));e===null||Le||(e=e.dependencies,e!==null&&Ui(e)&&(Le=!0))}function hf(e,t,a,l){J=e;var u=0;do{if(Hn&&(kn=null),Dl=0,Hn=!1,25<=u)throw Error(c(301));if(u+=1,Be=se=null,e.updateQueue!=null){var r=e.updateQueue;r.lastEffect=null,r.events=null,r.stores=null,r.memoCache!=null&&(r.memoCache.index=0)}M.H=Ff,r=t(a,l)}while(Hn);return r}function kp(){var e=M.H,t=e.useState()[0];return t=typeof t.then=="function"?Ml(t):t,e=e.useState()[0],(se!==null?se.memoizedState:null)!==e&&(J.flags|=1024),t}function er(){var e=Gi!==0;return Gi=0,e}function tr(e,t,a){t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~a}function ar(e){if(Vi){for(e=e.memoizedState;e!==null;){var t=e.queue;t!==null&&(t.pending=null),e=e.next}Vi=!1}na=0,Be=se=J=null,Hn=!1,Dl=Gi=0,kn=null}function tt(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Be===null?J.memoizedState=Be=e:Be=Be.next=e,Be}function Ze(){if(se===null){var e=J.alternate;e=e!==null?e.memoizedState:null}else e=se.next;var t=Be===null?J.memoizedState:Be.next;if(t!==null)Be=t,se=e;else{if(e===null)throw J.alternate===null?Error(c(467)):Error(c(310));se=e,e={memoizedState:se.memoizedState,baseState:se.baseState,baseQueue:se.baseQueue,queue:se.queue,next:null},Be===null?J.memoizedState=Be=e:Be=Be.next=e}return Be}function Yi(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function Ml(e){var t=Dl;return Dl+=1,kn===null&&(kn=[]),e=nf(kn,e,t),t=J,(Be===null?t.memoizedState:Be.next)===null&&(t=t.alternate,M.H=t===null||t.memoizedState===null?Kf:hr),e}function Xi(e){if(e!==null&&typeof e=="object"){if(typeof e.then=="function")return Ml(e);if(e.$$typeof===Qe)return Ke(e)}throw Error(c(438,String(e)))}function nr(e){var t=null,a=J.updateQueue;if(a!==null&&(t=a.memoCache),t==null){var l=J.alternate;l!==null&&(l=l.updateQueue,l!==null&&(l=l.memoCache,l!=null&&(t={data:l.data.map(function(u){return u.slice()}),index:0})))}if(t==null&&(t={data:[],index:0}),a===null&&(a=Yi(),J.updateQueue=a),a.memoCache=t,a=t.data[t.index],a===void 0)for(a=t.data[t.index]=Array(e),l=0;l<e;l++)a[l]=oi;return t.index++,a}function la(e,t){return typeof t=="function"?t(e):t}function Qi(e){var t=Ze();return lr(t,se,e)}function lr(e,t,a){var l=e.queue;if(l===null)throw Error(c(311));l.lastRenderedReducer=a;var u=e.baseQueue,r=l.pending;if(r!==null){if(u!==null){var f=u.next;u.next=r.next,r.next=f}t.baseQueue=u=r,l.pending=null}if(r=e.baseState,u===null)e.memoizedState=r;else{t=u.next;var m=f=null,v=null,E=t,N=!1;do{var w=E.lane&-536870913;if(w!==E.lane?(I&w)===w:(na&w)===w){var x=E.revertLane;if(x===0)v!==null&&(v=v.next={lane:0,revertLane:0,gesture:null,action:E.action,hasEagerState:E.hasEagerState,eagerState:E.eagerState,next:null}),w===Zn&&(N=!0);else if((na&x)===x){E=E.next,x===Zn&&(N=!0);continue}else w={lane:0,revertLane:E.revertLane,gesture:null,action:E.action,hasEagerState:E.hasEagerState,eagerState:E.eagerState,next:null},v===null?(m=v=w,f=r):v=v.next=w,J.lanes|=x,wa|=x;
vendor: 13,273 bytes, line 33
33w=E.action,on&&a(r,w),r=E.hasEagerState?E.eagerState:a(r,w)}else x={lane:w,revertLane:E.revertLane,gesture:E.gesture,action:E.action,hasEagerState:E.hasEagerState,eagerState:E.eagerState,next:null},v===null?(m=v=x,f=r):v=v.next=x,J.lanes|=w,wa|=w;E=E.next}while(E!==null&&E!==t);if(v===null?f=r:v.next=m,!gt(r,e.memoizedState)&&(Le=!0,N&&(a=Rn,a!==null)))throw a;e.memoizedState=r,e.baseState=f,e.baseQueue=v,l.lastRenderedState=r}return u===null&&(l.lanes=0),[e.memoizedState,l.dispatch]}function ir(e){var t=Ze(),a=t.queue;if(a===null)throw Error(c(311));a.lastRenderedReducer=e;var l=a.dispatch,u=a.pending,r=t.memoizedState;if(u!==null){a.pending=null;var f=u=u.next;do r=e(r,f.action),f=f.next;while(f!==u);gt(r,t.memoizedState)||(Le=!0),t.memoizedState=r,t.baseQueue===null&&(t.baseState=r),a.lastRenderedState=r}return[r,l]}function pf(e,t,a){var l=J,u=Ze(),r=ee;if(r){if(a===void 0)throw Error(c(407));a=a()}else a=t();var f=!gt((se||u).memoizedState,a);if(f&&(u.memoizedState=a,Le=!0),u=u.queue,rr(yf.bind(null,l,u,e),[e]),u.getSnapshot!==t||f||Be!==null&&Be.memoizedState.tag&1){if(l.flags|=2048,Vn(9,{destroy:void 0},gf.bind(null,l,u,a,t),null),me===null)throw Error(c(349));r||(na&127)!==0||vf(l,t,a)}return a}function vf(e,t,a){e.flags|=16384,e={getSnapshot:t,value:a},t=J.updateQueue,t===null?(t=Yi(),J.updateQueue=t,t.stores=[e]):(a=t.stores,a===null?t.stores=[e]:a.push(e))}function gf(e,t,a,l){t.value=a,t.getSnapshot=l,bf(t)&&_f(e)}function yf(e,t,a){return a(function(){bf(t)&&_f(e)})}function bf(e){var t=e.getSnapshot;e=e.value;try{var a=t();return!gt(e,a)}catch{return!0}}function _f(e){var t=Wa(e,2);t!==null&&ct(t,e,2)}function ur(e){var t=tt();if(typeof e=="function"){var a=e;if(e=a(),on){ya(!0);try{a()}finally{ya(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:la,lastRenderedState:e},t}function Sf(e,t,a,l){return e.baseState=a,lr(e,se,typeof l=="function"?l:la)}function Vp(e,t,a,l,u){if(Ki(e))throw Error(c(485));if(e=t.action,e!==null){var r={payload:u,action:e,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(f){r.listeners.push(f)}};M.T!==null?a(!0):r.isTransition=!1,l(r),a=t.pending,a===null?(r.next=t.pending=r,zf(t,r)):(r.next=a.next,t.pending=a.next=r)}}function zf(e,t){var a=t.action,l=t.payload,u=e.state;if(t.isTransition){var r=M.T,f={};M.T=f;try{var m=a(u,l),v=M.S;v!==null&&v(f,m),Ef(e,t,m)}catch(E){or(e,t,E)}finally{r!==null&&f.types!==null&&(r.types=f.types),M.T=r}}else try{r=a(u,l),Ef(e,t,r)}catch(E){or(e,t,E)}}function Ef(e,t,a){a!==null&&typeof a=="object"&&typeof a.then=="function"?a.then(function(l){xf(e,t,l)},function(l){return or(e,t,l)}):xf(e,t,a)}function xf(e,t,a){t.status="fulfilled",t.value=a,Tf(t),e.state=a,t=e.pending,t!==null&&(a=t.next,a===t?e.pending=null:(a=a.next,t.next=a,zf(e,a)))}function or(e,t,a){var l=e.pending;if(e.pending=null,l!==null){l=l.next;do t.status="rejected",t.reason=a,Tf(t),t=t.next;while(t!==l)}e.action=null}function Tf(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function Af(e,t){return t}function Of(e,t){if(ee){var a=me.formState;if(a!==null){e:{var l=J;if(ee){if(be){t:{for(var u=be,r=wt;u.nodeType!==8;){if(!r){u=null;break t}if(u=Ct(u.nextSibling),u===null){u=null;break t}}r=u.data,u=r==="F!"||r==="F"?u:null}if(u){be=Ct(u.nextSibling),l=u.data==="F!";break e}}Ea(l)}l=!1}l&&(t=a[0])}}return a=tt(),a.memoizedState=a.baseState=t,l={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Af,lastRenderedState:t},a.queue=l,a=Qf.bind(null,J,l),l.dispatch=a,l=ur(!1),r=mr.bind(null,J,!1,l.queue),l=tt(),u={state:t,dispatch:null,action:e,pending:null},l.queue=u,a=Vp.bind(null,J,u,r,a),u.dispatch=a,l.memoizedState=e,[t,a,!1]}function Nf(e){var t=Ze();return jf(t,se,e)}function jf(e,t,a){if(t=lr(e,t,Af)[0],e=Qi(la)[0],typeof t=="object"&&t!==null&&typeof t.then=="function")try{var l=Ml(t)}catch(f){throw f===Bn?Ri:f}else l=t;t=Ze();var u=t.queue,r=u.dispatch;return a!==t.memoizedState&&(J.flags|=2048,Vn(9,{destroy:void 0},Gp.bind(null,u,a),null)),[l,r,e]}function Gp(e,t){e.action=t}function Df(e){var t=Ze(),a=se;if(a!==null)return jf(t,a,e);Ze(),t=t.memoizedState,a=Ze();var l=a.queue.dispatch;return a.memoizedState=e,[t,l,!1]}function Vn(e,t,a,l){return e={tag:e,create:a,deps:l,inst:t,next:null},t=J.updateQueue,t===null&&(t=Yi(),J.updateQueue=t),a=t.lastEffect,a===null?t.lastEffect=e.next=e:(l=a.next,a.next=e,e.next=l,t.lastEffect=e),e}function Mf(){return Ze().memoizedState}function Ji(e,t,a,l){var u=tt();J.flags|=e,u.memoizedState=Vn(1|t,{destroy:void 0},a,l===void 0?null:l)}function $i(e,t,a,l){var u=Ze();l=l===void 0?null:l;var r=u.memoizedState.inst;se!==null&&l!==null&&Io(l,se.memoizedState.deps)?u.memoizedState=Vn(t,r,a,l):(J.flags|=e,u.memoizedState=Vn(1|t,r,a,l))}function wf(e,t){Ji(8390656,8,e,t)}function rr(e,t){$i(2048,8,e,t)}function Yp(e){J.flags|=4;var t=J.updateQueue;if(t===null)t=Yi(),J.updateQueue=t,t.events=[e];else{var a=t.events;a===null?t.events=[e]:a.push(e)}}function Uf(e){var t=Ze().memoizedState;return Yp({ref:t,nextImpl:e}),function(){if((le&2)!==0)throw Error(c(440));return t.impl.apply(void 0,arguments)}}function Cf(e,t){return $i(4,2,e,t)}function Zf(e,t){return $i(4,4,e,t)}function Rf(e,t){if(typeof t=="function"){e=e();var a=t(e);return function(){typeof a=="function"?a():t(null)}}if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function Bf(e,t,a){a=a!=null?a.concat([e]):null,$i(4,4,Rf.bind(null,t,e),a)}function cr(){}function Lf(e,t){var a=Ze();t=t===void 0?null:t;var l=a.memoizedState;return t!==null&&Io(t,l[1])?l[0]:(a.memoizedState=[e,t],e)}function qf(e,t){var a=Ze();t=t===void 0?null:t;var l=a.memoizedState;if(t!==null&&Io(t,l[1]))return l[0];if(l=e(),on){ya(!0);try{e()}finally{ya(!1)}}return a.memoizedState=[l,t],l}function sr(e,t,a){return a===void 0||(na&1073741824)!==0&&(I&261930)===0?e.memoizedState=t:(e.memoizedState=a,e=Hd(),J.lanes|=e,wa|=e,a)}function Hf(e,t,a,l){return gt(a,t)?a:qn.current!==null?(e=sr(e,a,l),gt(e,t)||(Le=!0),e):(na&42)===0||(na&1073741824)!==0&&(I&261930)===0?(Le=!0,e.memoizedState=a):(e=Hd(),J.lanes|=e,wa|=e,t)}function kf(e,t,a,l,u){var r=Z.p;Z.p=r!==0&&8>r?r:8;var f=M.T,m={};M.T=m,mr(e,!1,t,a);try{var v=u(),E=M.S;if(E!==null&&E(m,v),v!==null&&typeof v=="object"&&typeof v.then=="function"){var N=qp(v,l);wl(e,t,N,Et(e))}else wl(e,t,l,Et(e))}catch(w){wl(e,t,{then:function(){},status:"rejected",reason:w},Et())}finally{Z.p=r,f!==null&&m.types!==null&&(f.types=m.types),M.T=f}}function Xp(){}function fr(e,t,a,l){if(e.tag!==5)throw Error(c(476));var u=Vf(e).queue;kf(e,u,t,Y,a===null?Xp:function(){return Gf(e),a(l)})}function Vf(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:Y,baseState:Y,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:la,lastRenderedState:Y},next:null};var a={};return t.next={memoizedState:a,baseState:a,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:la,lastRenderedState:a},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function Gf(e){var t=Vf(e);t.next===null&&(t=e.alternate.memoizedState),wl(e,t.next.queue,{},Et())}function dr(){return Ke(Kl)}function Yf(){return Ze().memoizedState}function Xf(){return Ze().memoizedState}function Qp(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var a=Et();e=Aa(a);var l=Oa(t,e,a);l!==null&&(ct(l,t,a),Ol(l,t,a)),t={cache:ko()},e.payload=t;return}t=t.return}}function Jp(e,t,a){var l=Et();a={lane:l,revertLane:0,gesture:null,action:a,hasEagerState:!1,eagerState:null,next:null},Ki(e)?Jf(t,a):(a=Do(e,t,a,l),a!==null&&(ct(a,e,l),$f(a,t,l)))}function Qf(e,t,a){var l=Et();wl(e,t,a,l)}function wl(e,t,a,l){var u={lane:l,revertLane:0,gesture:null,action:a,hasEagerState:!1,eagerState:null,next:null};if(Ki(e))Jf(t,u);else{var r=e.alternate;if(e.lanes===0&&(r===null||r.lanes===0)&&(r=t.lastRenderedReducer,r!==null))try{var f=t.lastRenderedState,m=r(f,a);if(u.hasEagerState=!0,u.eagerState=m,gt(m,f))return ji(e,t,u,0),me===null&&Ni(),!1}catch{}finally{}if(a=Do(e,t,u,l),a!==null)return ct(a,e,l),$f(a,t,l),!0}return!1}function mr(e,t,a,l){if(l={lane:2,revertLane:Xr(),gesture:null,action:l,hasEagerState:!1,eagerState:null,next:null},Ki(e)){if(t)throw Error(c(479))}else t=Do(e,a,l,2),t!==null&&ct(t,e,2)}function Ki(e){var t=e.alternate;return e===J||t!==null&&t===J}function Jf(e,t){Hn=Vi=!0;var a=e.pending;a===null?t.next=t:(t.next=a.next,a.next=t),e.pending=t}function $f(e,t,a){if((a&4194048)!==0){var l=t.lanes;l&=e.pendingLanes,a|=l,t.lanes=a,Ic(e,a)}}var Ul={readContext:Ke,use:Xi,useCallback:je,useContext:je,useEffect:je,useImperativeHandle:je,useLayoutEffect:je,useInsertionEffect:je,useMemo:je,useReducer:je,useRef:je,useState:je,useDebugValue:je,useDeferredValue:je,useTransition:je,useSyncExternalStore:je,useId:je,useHostTransitionStatus:je,useFormState:je,useActionState:je,useOptimistic:je,useMemoCache:je,useCacheRefresh:je};Ul.useEffectEvent=je;var Kf={readContext:Ke,use:Xi,useCallback:function(e,t){return tt().memoizedState=[e,t===void 0?null:t],e},useContext:Ke,useEffect:wf,useImperativeHandle:function(e,t,a){a=a!=null?a.concat([e]):null,Ji(4194308,4,Rf.bind(null,t,e),a)},useLayoutEffect:function(e,t){return Ji(4194308,4,e,t)},useInsertionEffect:function(e,t){Ji(4,2,e,t)},useMemo:function(e,t){var a=tt();t=t===void 0?null:t;var l=e();if(on){ya(!0);try{e()}finally{ya(!1)}}return a.memoizedState=[l,t],l},useReducer:function(e,t,a){var l=tt();if(a!==void 0){var u=a(t);if(on){ya(!0);try{a(t)}finally{ya(!1)}}}else u=t;return l.memoizedState=l.baseState=u,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:u},l.queue=e,e=e.dispatch=Jp.bind(null,J,e),[l.memoizedState,e]},useRef:function(e){var t=tt();return e={current:e},t.memoizedState=e},useState:function(e){e=ur(e);var t=e.queue,a=Qf.bind(null,J,t);return t.dispatch=a,[e.memoizedState,a]},useDebugValue:cr,useDeferredValue:function(e,t){var a=tt();return sr(a,e,t)},useTransition:function(){var e=ur(!1);return e=kf.bind(null,J,e.queue,!0,!1),tt().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,a){var l=J,u=tt();if(ee){if(a===void 0)throw Error(c(407));a=a()}else{if(a=t(),me===null)throw Error(c(349));(I&127)!==0||vf(l,t,a)}u.memoizedState=a;var r={value:a,getSnapshot:t};return u.queue=r,wf(yf.bind(null,l,r,e),[e]),l.flags|=2048,Vn(9,{destroy:void 0},gf.bind(null,l,r,a,t),null),a},useId:function(){var e=tt(),t=me.identifierPrefix;if(ee){var a=Qt,l=Xt;a=(l&~(1<<32-vt(l)-1)).toString(32)+a,t="_"+t+"R_"+a,a=Gi++,0<a&&(t+="H"+a.toString(32)),t+="_"}else a=Hp++,t="_"+t+"r_"+a.toString(32)+"_";return e.memoizedState=t},useHostTransitionStatus:dr,useFormState:Of,useActionState:Of,useOptimistic:function(e){var t=tt();t.memoizedState=t.baseState=e;var a={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=a,t=mr.bind(null,J,!0,a),a.dispatch=t,[e,t]},useMemoCache:nr,useCacheRefresh:function(){return tt().memoizedState=Qp.bind(null,J)},useEffectEvent:function(e){var t=tt(),a={impl:e};return t.memoizedState=a,function(){if((le&2)!==0)throw Error(c(440));return a.impl.apply(void 0,arguments)}}},hr={readContext:Ke,use:Xi,useCallback:Lf,useContext:Ke,useEffect:rr,useImperativeHandle:Bf,useInsertionEffect:Cf,useLayoutEffect:Zf,useMemo:qf,useReducer:Qi,useRef:Mf,useState:function(){return Qi(la)},useDebugValue:cr,useDeferredValue:function(e,t){var a=Ze();return Hf(a,se.memoizedState,e,t)},useTransition:function(){var e=Qi(la)[0],t=Ze().memoizedState;return[typeof e=="boolean"?e:Ml(e),t]},useSyncExternalStore:pf,useId:Yf,useHostTransitionStatus:dr,useFormState:Nf,useActionState:Nf,useOptimistic:function(e,t){var a=Ze();return Sf(a,se,e,t)},useMemoCache:nr,useCacheRefresh:Xf};hr.useEffectEvent=Uf;var Ff={readContext:Ke,use:Xi,useCallback:Lf,useContext:Ke,useEffect:rr,useImperativeHandle:Bf,useInsertionEffect:Cf,useLayoutEffect:Zf,useMemo:qf,useReducer:ir,useRef:Mf,useState:function(){return ir(la)},useDebugValue:cr,useDeferredValue:function(e,t){var a=Ze();return se===null?sr(a,e,t):Hf(a,se.memoizedState,e,t)},useTransition:function(){var e=ir(la)[0],t=Ze().memoizedState;return[typeof e=="boolean"?e:Ml(e),t]},useSyncExternalStore:pf,useId:Yf,useHostTransitionStatus:dr,useFormState:Df,useActionState:Df,useOptimistic:function(e,t){var a=Ze();return se!==null?Sf(a,se,e,t):(a.baseState=e,[e,a.queue.dispatch])},useMemoCache:nr,useCacheRefresh:Xf};Ff.useEffectEvent=Uf;function pr(e,t,a,l){t=e.memoizedState,a=a(l,t),a=a==null?t:O({},t,a),e.memoizedState=a,e.lanes===0&&(e.updateQueue.baseState=a)}var vr={enqueueSetState:function(e,t,a){e=e._reactInternals;var l=Et(),u=Aa(l);u.payload=t,a!=null&&(u.callback=a),t=Oa(e,u,l),t!==null&&(ct(t,e,l),Ol(t,e,l))},enqueueReplaceState:function(e,t,a){e=e._reactInternals;var l=Et(),u=Aa(l);u.tag=1,u.payload=t,a!=null&&(u.callback=a),t=Oa(e,u,l),t!==null&&(ct(t,e,l),Ol(t,e,l))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var a=Et(),l=Aa(a);l.tag=2,t!=null&&(l.callback=t),t=Oa(e,l,a),t!==null&&(ct(t,e,a),Ol(t,e,a))}};function Wf(e,t,a,l,u,r,f){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(l,r,f):t.prototype&&t.prototype.isPureReactComponent?!bl(a,l)||!bl(u,r):!0}
vendor: 13,721 bytes, line 33
33function If(e,t,a,l){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(a,l),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(a,l),t.state!==e&&vr.enqueueReplaceState(t,t.state,null)}function rn(e,t){var a=t;if("ref"in t){a={};for(var l in t)l!=="ref"&&(a[l]=t[l])}if(e=e.defaultProps){a===t&&(a=O({},a));for(var u in e)a[u]===void 0&&(a[u]=e[u])}return a}function Pf(e){Oi(e)}function ed(e){console.error(e)}function td(e){Oi(e)}function Fi(e,t){try{var a=e.onUncaughtError;a(t.value,{componentStack:t.stack})}catch(l){setTimeout(function(){throw l})}}function ad(e,t,a){try{var l=e.onCaughtError;l(a.value,{componentStack:a.stack,errorBoundary:t.tag===1?t.stateNode:null})}catch(u){setTimeout(function(){throw u})}}function gr(e,t,a){return a=Aa(a),a.tag=3,a.payload={element:null},a.callback=function(){Fi(e,t)},a}function nd(e){return e=Aa(e),e.tag=3,e}function ld(e,t,a,l){var u=a.type.getDerivedStateFromError;if(typeof u=="function"){var r=l.value;e.payload=function(){return u(r)},e.callback=function(){ad(t,a,l)}}var f=a.stateNode;f!==null&&typeof f.componentDidCatch=="function"&&(e.callback=function(){ad(t,a,l),typeof u!="function"&&(Ua===null?Ua=new Set([this]):Ua.add(this));var m=l.stack;this.componentDidCatch(l.value,{componentStack:m!==null?m:""})})}function $p(e,t,a,l,u){if(a.flags|=32768,l!==null&&typeof l=="object"&&typeof l.then=="function"){if(t=a.alternate,t!==null&&Cn(t,a,u,!0),a=bt.current,a!==null){switch(a.tag){case 31:case 13:return Ut===null?ru():a.alternate===null&&De===0&&(De=3),a.flags&=-257,a.flags|=65536,a.lanes=u,l===Bi?a.flags|=16384:(t=a.updateQueue,t===null?a.updateQueue=new Set([l]):t.add(l),Vr(e,l,u)),!1;case 22:return a.flags|=65536,l===Bi?a.flags|=16384:(t=a.updateQueue,t===null?(t={transitions:null,markerInstances:null,retryQueue:new Set([l])},a.updateQueue=t):(a=t.retryQueue,a===null?t.retryQueue=new Set([l]):a.add(l)),Vr(e,l,u)),!1}throw Error(c(435,a.tag))}return Vr(e,l,u),ru(),!1}if(ee)return t=bt.current,t!==null?((t.flags&65536)===0&&(t.flags|=256),t.flags|=65536,t.lanes=u,l!==Ro&&(e=Error(c(422),{cause:l}),zl(jt(e,a)))):(l!==Ro&&(t=Error(c(423),{cause:l}),zl(jt(t,a))),e=e.current.alternate,e.flags|=65536,u&=-u,e.lanes|=u,l=jt(l,a),u=gr(e.stateNode,l,u),Jo(e,u),De!==4&&(De=2)),!1;var r=Error(c(520),{cause:l});if(r=jt(r,a),kl===null?kl=[r]:kl.push(r),De!==4&&(De=2),t===null)return!0;l=jt(l,a),a=t;do{switch(a.tag){case 3:return a.flags|=65536,e=u&-u,a.lanes|=e,e=gr(a.stateNode,l,e),Jo(a,e),!1;case 1:if(t=a.type,r=a.stateNode,(a.flags&128)===0&&(typeof t.getDerivedStateFromError=="function"||r!==null&&typeof r.componentDidCatch=="function"&&(Ua===null||!Ua.has(r))))return a.flags|=65536,u&=-u,a.lanes|=u,u=nd(u),ld(u,e,a,l),Jo(a,u),!1}a=a.return}while(a!==null);return!1}var yr=Error(c(461)),Le=!1;function Fe(e,t,a,l){t.child=e===null?rf(t,null,a,l):un(t,e.child,a,l)}function id(e,t,a,l,u){a=a.render;var r=t.ref;if("ref"in l){var f={};for(var m in l)m!=="ref"&&(f[m]=l[m])}else f=l;return tn(t),l=Po(e,t,a,f,r,u),m=er(),e!==null&&!Le?(tr(e,t,u),ia(e,t,u)):(ee&&m&&Co(t),t.flags|=1,Fe(e,t,l,u),t.child)}function ud(e,t,a,l,u){if(e===null){var r=a.type;return typeof r=="function"&&!Mo(r)&&r.defaultProps===void 0&&a.compare===null?(t.tag=15,t.type=r,od(e,t,r,l,u)):(e=Mi(a.type,null,l,t,t.mode,u),e.ref=t.ref,e.return=t,t.child=e)}if(r=e.child,!Ar(e,u)){var f=r.memoizedProps;if(a=a.compare,a=a!==null?a:bl,a(f,l)&&e.ref===t.ref)return ia(e,t,u)}return t.flags|=1,e=Pt(r,l),e.ref=t.ref,e.return=t,t.child=e}function od(e,t,a,l,u){if(e!==null){var r=e.memoizedProps;if(bl(r,l)&&e.ref===t.ref)if(Le=!1,t.pendingProps=l=r,Ar(e,u))(e.flags&131072)!==0&&(Le=!0);else return t.lanes=e.lanes,ia(e,t,u)}return br(e,t,a,l,u)}function rd(e,t,a,l){var u=l.children,r=e!==null?e.memoizedState:null;if(e===null&&t.stateNode===null&&(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),l.mode==="hidden"){if((t.flags&128)!==0){if(r=r!==null?r.baseLanes|a:a,e!==null){for(l=t.child=e.child,u=0;l!==null;)u=u|l.lanes|l.childLanes,l=l.sibling;l=u&~r}else l=0,t.child=null;return cd(e,t,r,a,l)}if((a&536870912)!==0)t.memoizedState={baseLanes:0,cachePool:null},e!==null&&Zi(t,r!==null?r.cachePool:null),r!==null?ff(t,r):Ko(),df(t);else return l=t.lanes=536870912,cd(e,t,r!==null?r.baseLanes|a:a,a,l)}else r!==null?(Zi(t,r.cachePool),ff(t,r),ja(),t.memoizedState=null):(e!==null&&Zi(t,null),Ko(),ja());return Fe(e,t,u,a),t.child}function Cl(e,t){return e!==null&&e.tag===22||t.stateNode!==null||(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),t.sibling}function cd(e,t,a,l,u){var r=Go();return r=r===null?null:{parent:Re._currentValue,pool:r},t.memoizedState={baseLanes:a,cachePool:r},e!==null&&Zi(t,null),Ko(),df(t),e!==null&&Cn(e,t,l,!0),t.childLanes=u,null}function Wi(e,t){return t=Pi({mode:t.mode,children:t.children},e.mode),t.ref=e.ref,e.child=t,t.return=e,t}function sd(e,t,a){return un(t,e.child,null,a),e=Wi(t,t.pendingProps),e.flags|=2,_t(t),t.memoizedState=null,e}function Kp(e,t,a){var l=t.pendingProps,u=(t.flags&128)!==0;if(t.flags&=-129,e===null){if(ee){if(l.mode==="hidden")return e=Wi(t,l),t.lanes=536870912,Cl(null,e);if(Wo(t),(e=be)?(e=zm(e,wt),e=e!==null&&e.data==="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:Sa!==null?{id:Xt,overflow:Qt}:null,retryLane:536870912,hydrationErrors:null},a=Qs(e),a.return=t,t.child=a,$e=t,be=null)):e=null,e===null)throw Ea(t);return t.lanes=536870912,null}return Wi(t,l)}var r=e.memoizedState;if(r!==null){var f=r.dehydrated;if(Wo(t),u)if(t.flags&256)t.flags&=-257,t=sd(e,t,a);else if(t.memoizedState!==null)t.child=e.child,t.flags|=128,t=null;else throw Error(c(558));else if(Le||Cn(e,t,a,!1),u=(a&e.childLanes)!==0,Le||u){if(l=me,l!==null&&(f=Pc(l,a),f!==0&&f!==r.retryLane))throw r.retryLane=f,Wa(e,f),ct(l,e,f),yr;ru(),t=sd(e,t,a)}else e=r.treeContext,be=Ct(f.nextSibling),$e=t,ee=!0,za=null,wt=!1,e!==null&&Ks(t,e),t=Wi(t,l),t.flags|=4096;return t}return e=Pt(e.child,{mode:l.mode,children:l.children}),e.ref=t.ref,t.child=e,e.return=t,e}function Ii(e,t){var a=t.ref;if(a===null)e!==null&&e.ref!==null&&(t.flags|=4194816);else{if(typeof a!="function"&&typeof a!="object")throw Error(c(284));(e===null||e.ref!==a)&&(t.flags|=4194816)}}function br(e,t,a,l,u){return tn(t),a=Po(e,t,a,l,void 0,u),l=er(),e!==null&&!Le?(tr(e,t,u),ia(e,t,u)):(ee&&l&&Co(t),t.flags|=1,Fe(e,t,a,u),t.child)}function fd(e,t,a,l,u,r){return tn(t),t.updateQueue=null,a=hf(t,l,a,u),mf(e),l=er(),e!==null&&!Le?(tr(e,t,r),ia(e,t,r)):(ee&&l&&Co(t),t.flags|=1,Fe(e,t,a,r),t.child)}function dd(e,t,a,l,u){if(tn(t),t.stateNode===null){var r=Dn,f=a.contextType;typeof f=="object"&&f!==null&&(r=Ke(f)),r=new a(l,r),t.memoizedState=r.state!==null&&r.state!==void 0?r.state:null,r.updater=vr,t.stateNode=r,r._reactInternals=t,r=t.stateNode,r.props=l,r.state=t.memoizedState,r.refs={},Xo(t),f=a.contextType,r.context=typeof f=="object"&&f!==null?Ke(f):Dn,r.state=t.memoizedState,f=a.getDerivedStateFromProps,typeof f=="function"&&(pr(t,a,f,l),r.state=t.memoizedState),typeof a.getDerivedStateFromProps=="function"||typeof r.getSnapshotBeforeUpdate=="function"||typeof r.UNSAFE_componentWillMount!="function"&&typeof r.componentWillMount!="function"||(f=r.state,typeof r.componentWillMount=="function"&&r.componentWillMount(),typeof r.UNSAFE_componentWillMount=="function"&&r.UNSAFE_componentWillMount(),f!==r.state&&vr.enqueueReplaceState(r,r.state,null),jl(t,l,r,u),Nl(),r.state=t.memoizedState),typeof r.componentDidMount=="function"&&(t.flags|=4194308),l=!0}else if(e===null){r=t.stateNode;var m=t.memoizedProps,v=rn(a,m);r.props=v;var E=r.context,N=a.contextType;f=Dn,typeof N=="object"&&N!==null&&(f=Ke(N));var w=a.getDerivedStateFromProps;N=typeof w=="function"||typeof r.getSnapshotBeforeUpdate=="function",m=t.pendingProps!==m,N||typeof r.UNSAFE_componentWillReceiveProps!="function"&&typeof r.componentWillReceiveProps!="function"||(m||E!==f)&&If(t,r,l,f),Ta=!1;var x=t.memoizedState;r.state=x,jl(t,l,r,u),Nl(),E=t.memoizedState,m||x!==E||Ta?(typeof w=="function"&&(pr(t,a,w,l),E=t.memoizedState),(v=Ta||Wf(t,a,v,l,x,E,f))?(N||typeof r.UNSAFE_componentWillMount!="function"&&typeof r.componentWillMount!="function"||(typeof r.componentWillMount=="function"&&r.componentWillMount(),typeof r.UNSAFE_componentWillMount=="function"&&r.UNSAFE_componentWillMount()),typeof r.componentDidMount=="function"&&(t.flags|=4194308)):(typeof r.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=l,t.memoizedState=E),r.props=l,r.state=E,r.context=f,l=v):(typeof r.componentDidMount=="function"&&(t.flags|=4194308),l=!1)}else{r=t.stateNode,Qo(e,t),f=t.memoizedProps,N=rn(a,f),r.props=N,w=t.pendingProps,x=r.context,E=a.contextType,v=Dn,typeof E=="object"&&E!==null&&(v=Ke(E)),m=a.getDerivedStateFromProps,(E=typeof m=="function"||typeof r.getSnapshotBeforeUpdate=="function")||typeof r.UNSAFE_componentWillReceiveProps!="function"&&typeof r.componentWillReceiveProps!="function"||(f!==w||x!==v)&&If(t,r,l,v),Ta=!1,x=t.memoizedState,r.state=x,jl(t,l,r,u),Nl();var T=t.memoizedState;f!==w||x!==T||Ta||e!==null&&e.dependencies!==null&&Ui(e.dependencies)?(typeof m=="function"&&(pr(t,a,m,l),T=t.memoizedState),(N=Ta||Wf(t,a,N,l,x,T,v)||e!==null&&e.dependencies!==null&&Ui(e.dependencies))?(E||typeof r.UNSAFE_componentWillUpdate!="function"&&typeof r.componentWillUpdate!="function"||(typeof r.componentWillUpdate=="function"&&r.componentWillUpdate(l,T,v),typeof r.UNSAFE_componentWillUpdate=="function"&&r.UNSAFE_componentWillUpdate(l,T,v)),typeof r.componentDidUpdate=="function"&&(t.flags|=4),typeof r.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof r.componentDidUpdate!="function"||f===e.memoizedProps&&x===e.memoizedState||(t.flags|=4),typeof r.getSnapshotBeforeUpdate!="function"||f===e.memoizedProps&&x===e.memoizedState||(t.flags|=1024),t.memoizedProps=l,t.memoizedState=T),r.props=l,r.state=T,r.context=v,l=N):(typeof r.componentDidUpdate!="function"||f===e.memoizedProps&&x===e.memoizedState||(t.flags|=4),typeof r.getSnapshotBeforeUpdate!="function"||f===e.memoizedProps&&x===e.memoizedState||(t.flags|=1024),l=!1)}return r=l,Ii(e,t),l=(t.flags&128)!==0,r||l?(r=t.stateNode,a=l&&typeof a.getDerivedStateFromError!="function"?null:r.render(),t.flags|=1,e!==null&&l?(t.child=un(t,e.child,null,u),t.child=un(t,null,a,u)):Fe(e,t,a,u),t.memoizedState=r.state,e=t.child):e=ia(e,t,u),e}function md(e,t,a,l){return Pa(),t.flags|=256,Fe(e,t,a,l),t.child}var _r={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function Sr(e){return{baseLanes:e,cachePool:tf()}}function zr(e,t,a){return e=e!==null?e.childLanes&~a:0,t&&(e|=zt),e}function hd(e,t,a){var l=t.pendingProps,u=!1,r=(t.flags&128)!==0,f;if((f=r)||(f=e!==null&&e.memoizedState===null?!1:(Ce.current&2)!==0),f&&(u=!0,t.flags&=-129),f=(t.flags&32)!==0,t.flags&=-33,e===null){if(ee){if(u?Na(t):ja(),(e=be)?(e=zm(e,wt),e=e!==null&&e.data!=="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:Sa!==null?{id:Xt,overflow:Qt}:null,retryLane:536870912,hydrationErrors:null},a=Qs(e),a.return=t,t.child=a,$e=t,be=null)):e=null,e===null)throw Ea(t);return lc(e)?t.lanes=32:t.lanes=536870912,null}var m=l.children;return l=l.fallback,u?(ja(),u=t.mode,m=Pi({mode:"hidden",children:m},u),l=Ia(l,u,a,null),m.return=t,l.return=t,m.sibling=l,t.child=m,l=t.child,l.memoizedState=Sr(a),l.childLanes=zr(e,f,a),t.memoizedState=_r,Cl(null,l)):(Na(t),Er(t,m))}var v=e.memoizedState;if(v!==null&&(m=v.dehydrated,m!==null)){if(r)t.flags&256?(Na(t),t.flags&=-257,t=xr(e,t,a)):t.memoizedState!==null?(ja(),t.child=e.child,t.flags|=128,t=null):(ja(),m=l.fallback,u=t.mode,l=Pi({mode:"visible",children:l.children},u),m=Ia(m,u,a,null),m.flags|=2,l.return=t,m.return=t,l.sibling=m,t.child=l,un(t,e.child,null,a),l=t.child,l.memoizedState=Sr(a),l.childLanes=zr(e,f,a),t.memoizedState=_r,t=Cl(null,l));else if(Na(t),lc(m)){if(f=m.nextSibling&&m.nextSibling.dataset,f)var E=f.dgst;f=E,l=Error(c(419)),l.stack="",l.digest=f,zl({value:l,source:null,stack:null}),t=xr(e,t,a)}else if(Le||Cn(e,t,a,!1),f=(a&e.childLanes)!==0,Le||f){if(f=me,f!==null&&(l=Pc(f,a),l!==0&&l!==v.retryLane))throw v.retryLane=l,Wa(e,l),ct(f,e,l),yr;nc(m)||ru(),t=xr(e,t,a)}else nc(m)?(t.flags|=192,t.child=e.child,t=null):(e=v.treeContext,be=Ct(m.nextSibling),$e=t,ee=!0,za=null,wt=!1,e!==null&&Ks(t,e),t=Er(t,l.children),t.flags|=4096);return t}return u?(ja(),m=l.fallback,u=t.mode,v=e.child,E=v.sibling,l=Pt(v,{mode:"hidden",children:l.children}),l.subtreeFlags=v.subtreeFlags&65011712,E!==null?m=Pt(E,m):(m=Ia(m,u,a,null),m.flags|=2),m.return=t,l.return=t,l.sibling=m,t.child=l,Cl(null,l),l=t.child,m=e.child.memoizedState,m===null?m=Sr(a):(u=m.cachePool,u!==null?(v=Re._currentValue,u=u.parent!==v?{parent:v,pool:v}:u):u=tf(),m={baseLanes:m.baseLanes|a,cachePool:u}),l.memoizedState=m,l.childLanes=zr(e,f,a),t.memoizedState=_r,Cl(e.child,l)):(Na(t),a=e.child,e=a.sibling,a=Pt(a,{mode:"visible",children:l.children}),a.return=t,a.sibling=null,e!==null&&(f=t.deletions,f===null?(t.deletions=[e],t.flags|=16):f.push(e)),t.child=a,t.memoizedState=null,a)}function Er(e,t){return t=Pi({mode:"visible",children:t},e.mode),t.return=e,e.child=t}function Pi(e,t){return e=yt(22,e,null,t),e.lanes=0,e}function xr(e,t,a){return un(t,e.child,null,a),e=Er(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function pd(e,t,a){e.lanes|=t;var l=e.alternate;l!==null&&(l.lanes|=t),qo(e.return,t,a)}function Tr(e,t,a,l,u,r){var f=e.memoizedState;f===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:l,tail:a,tailMode:u,treeForkCount:r}:(f.isBackwards=t,f.rendering=null,f.renderingStartTime=0,f.last=l,f.tail
vendor: 4,498 bytes, line 33
33=a,f.tailMode=u,f.treeForkCount=r)}function vd(e,t,a){var l=t.pendingProps,u=l.revealOrder,r=l.tail;l=l.children;var f=Ce.current,m=(f&2)!==0;if(m?(f=f&1|2,t.flags|=128):f&=1,ie(Ce,f),Fe(e,t,l,a),l=ee?Sl:0,!m&&e!==null&&(e.flags&128)!==0)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&pd(e,a,t);else if(e.tag===19)pd(e,a,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}switch(u){case"forwards":for(a=t.child,u=null;a!==null;)e=a.alternate,e!==null&&ki(e)===null&&(u=a),a=a.sibling;a=u,a===null?(u=t.child,t.child=null):(u=a.sibling,a.sibling=null),Tr(t,!1,u,a,r,l);break;case"backwards":case"unstable_legacy-backwards":for(a=null,u=t.child,t.child=null;u!==null;){if(e=u.alternate,e!==null&&ki(e)===null){t.child=u;break}e=u.sibling,u.sibling=a,a=u,u=e}Tr(t,!0,a,null,r,l);break;case"together":Tr(t,!1,null,null,void 0,l);break;default:t.memoizedState=null}return t.child}function ia(e,t,a){if(e!==null&&(t.dependencies=e.dependencies),wa|=t.lanes,(a&t.childLanes)===0)if(e!==null){if(Cn(e,t,a,!1),(a&t.childLanes)===0)return null}else return null;if(e!==null&&t.child!==e.child)throw Error(c(153));if(t.child!==null){for(e=t.child,a=Pt(e,e.pendingProps),t.child=a,a.return=t;e.sibling!==null;)e=e.sibling,a=a.sibling=Pt(e,e.pendingProps),a.return=t;a.sibling=null}return t.child}function Ar(e,t){return(e.lanes&t)!==0?!0:(e=e.dependencies,!!(e!==null&&Ui(e)))}function Fp(e,t,a){switch(t.tag){case 3:si(t,t.stateNode.containerInfo),xa(t,Re,e.memoizedState.cache),Pa();break;case 27:case 5:Ku(t);break;case 4:si(t,t.stateNode.containerInfo);break;case 10:xa(t,t.type,t.memoizedProps.value);break;case 31:if(t.memoizedState!==null)return t.flags|=128,Wo(t),null;break;case 13:var l=t.memoizedState;if(l!==null)return l.dehydrated!==null?(Na(t),t.flags|=128,null):(a&t.child.childLanes)!==0?hd(e,t,a):(Na(t),e=ia(e,t,a),e!==null?e.sibling:null);Na(t);break;case 19:var u=(e.flags&128)!==0;if(l=(a&t.childLanes)!==0,l||(Cn(e,t,a,!1),l=(a&t.childLanes)!==0),u){if(l)return vd(e,t,a);t.flags|=128}if(u=t.memoizedState,u!==null&&(u.rendering=null,u.tail=null,u.lastEffect=null),ie(Ce,Ce.current),l)break;return null;case 22:return t.lanes=0,rd(e,t,a,t.pendingProps);case 24:xa(t,Re,e.memoizedState.cache)}return ia(e,t,a)}function gd(e,t,a){if(e!==null)if(e.memoizedProps!==t.pendingProps)Le=!0;else{if(!Ar(e,a)&&(t.flags&128)===0)return Le=!1,Fp(e,t,a);Le=(e.flags&131072)!==0}else Le=!1,ee&&(t.flags&1048576)!==0&&$s(t,Sl,t.index);switch(t.lanes=0,t.tag){case 16:e:{var l=t.pendingProps;if(e=nn(t.elementType),t.type=e,typeof e=="function")Mo(e)?(l=rn(e,l),t.tag=1,t=dd(null,t,e,l,a)):(t.tag=0,t=br(null,t,e,l,a));else{if(e!=null){var u=e.$$typeof;if(u===He){t.tag=11,t=id(null,t,e,l,a);break e}else if(u===dt){t.tag=14,t=ud(null,t,e,l,a);break e}}throw t=ul(e)||e,Error(c(306,t,""))}}return t;case 0:return br(e,t,t.type,t.pendingProps,a);case 1:return l=t.type,u=rn(l,t.pendingProps),dd(e,t,l,u,a);case 3:e:{if(si(t,t.stateNode.containerInfo),e===null)throw Error(c(387));l=t.pendingProps;var r=t.memoizedState;u=r.element,Qo(e,t),jl(t,l,null,a);var f=t.memoizedState;if(l=f.cache,xa(t,Re,l),l!==r.cache&&Ho(t,[Re],a,!0),Nl(),l=f.element,r.isDehydrated)if(r={element:l,isDehydrated:!1,cache:f.cache},t.updateQueue.baseState=r,t.memoizedState=r,t.flags&256){t=md(e,t,l,a);break e}else if(l!==u){u=jt(Error(c(424)),t),zl(u),t=md(e,t,l,a);break e}else{switch(e=t.stateNode.containerInfo,e.nodeType){case 9:e=e.body;break;default:e=e.nodeName==="HTML"?e.ownerDocument.body:e}for(be=Ct(e.firstChild),$e=t,ee=!0,za=null,wt=!0,a=rf(t,null,l,a),t.child=a;a;)a.flags=a.flags&-3|4096,a=a.sibling}else{if(Pa(),l===u){t=ia(e,t,a);break e}Fe(e,t,l,a)}t=t.child}return t;case 26:return Ii(e,t),e===null?(a=Nm(t.type,null,t.pendingProps,null))?t.memoizedState=a:ee||(a=t.type,e=t.pendingProps,l=pu(ga.current).createElement(a),l[Je]=t,l[nt]=e,We(l,a,e),Ye(l),t.stateNode=l):t.memoizedState=Nm(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return Ku(t),e===null&&ee&&(l=t.stateNode=Tm(t.type,t.pendingProps,ga.current),$e=t,wt=!0,u=be,Ba(t.type)?(ic=u,be=Ct(l.firstChild)):be=u),Fe(e,t,t.pendingProps.children,a),Ii(e,t),e===null&&(t.flags|=4194304),t.child;case 5:return e===null&&ee&&((u=l=be)&&(l=Av(l,t.type,t.pendingProps,wt),l!==null?(t.stateNode=l,$e=t,be=Ct(l.firstChild),wt=!1,u=!0):u=!1),u||Ea(t)),Ku(t),u=t.type,r=t.pen
vendor: 4,389 bytes, line 33
33dingProps,f=e!==null?e.memoizedProps:null,l=r.children,ec(u,r)?l=null:f!==null&&ec(u,f)&&(t.flags|=32),t.memoizedState!==null&&(u=Po(e,t,kp,null,null,a),Kl._currentValue=u),Ii(e,t),Fe(e,t,l,a),t.child;case 6:return e===null&&ee&&((e=a=be)&&(a=Ov(a,t.pendingProps,wt),a!==null?(t.stateNode=a,$e=t,be=null,e=!0):e=!1),e||Ea(t)),null;case 13:return hd(e,t,a);case 4:return si(t,t.stateNode.containerInfo),l=t.pendingProps,e===null?t.child=un(t,null,l,a):Fe(e,t,l,a),t.child;case 11:return id(e,t,t.type,t.pendingProps,a);case 7:return Fe(e,t,t.pendingProps,a),t.child;case 8:return Fe(e,t,t.pendingProps.children,a),t.child;case 12:return Fe(e,t,t.pendingProps.children,a),t.child;case 10:return l=t.pendingProps,xa(t,t.type,l.value),Fe(e,t,l.children,a),t.child;case 9:return u=t.type._context,l=t.pendingProps.children,tn(t),u=Ke(u),l=l(u),t.flags|=1,Fe(e,t,l,a),t.child;case 14:return ud(e,t,t.type,t.pendingProps,a);case 15:return od(e,t,t.type,t.pendingProps,a);case 19:return vd(e,t,a);case 31:return Kp(e,t,a);case 22:return rd(e,t,a,t.pendingProps);case 24:return tn(t),l=Ke(Re),e===null?(u=Go(),u===null&&(u=me,r=ko(),u.pooledCache=r,r.refCount++,r!==null&&(u.pooledCacheLanes|=a),u=r),t.memoizedState={parent:l,cache:u},Xo(t),xa(t,Re,u)):((e.lanes&a)!==0&&(Qo(e,t),jl(t,null,null,a),Nl()),u=e.memoizedState,r=t.memoizedState,u.parent!==l?(u={parent:l,cache:l},t.memoizedState=u,t.lanes===0&&(t.memoizedState=t.updateQueue.baseState=u),xa(t,Re,l)):(l=r.cache,xa(t,Re,l),l!==u.cache&&Ho(t,[Re],a,!0))),Fe(e,t,t.pendingProps.children,a),t.child;case 29:throw t.pendingProps}throw Error(c(156,t.tag))}function ua(e){e.flags|=4}function Or(e,t,a,l,u){if((t=(e.mode&32)!==0)&&(t=!1),t){if(e.flags|=16777216,(u&335544128)===u)if(e.stateNode.complete)e.flags|=8192;else if(Yd())e.flags|=8192;else throw ln=Bi,Yo}else e.flags&=-16777217}function yd(e,t){if(t.type!=="stylesheet"||(t.state.loading&4)!==0)e.flags&=-16777217;else if(e.flags|=16777216,!Um(t))if(Yd())e.flags|=8192;else throw ln=Bi,Yo}function eu(e,t){t!==null&&(e.flags|=4),e.flags&16384&&(t=e.tag!==22?Fc():536870912,e.lanes|=t,Qn|=t)}function Zl(e,t){if(!ee)switch(e.tailMode){case"hidden":t=e.tail;for(var a=null;t!==null;)t.alternate!==null&&(a=t),t=t.sibling;a===null?e.tail=null:a.sibling=null;break;case"collapsed":a=e.tail;for(var l=null;a!==null;)a.alternate!==null&&(l=a),a=a.sibling;l===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:l.sibling=null}}function _e(e){var t=e.alternate!==null&&e.alternate.child===e.child,a=0,l=0;if(t)for(var u=e.child;u!==null;)a|=u.lanes|u.childLanes,l|=u.subtreeFlags&65011712,l|=u.flags&65011712,u.return=e,u=u.sibling;else for(u=e.child;u!==null;)a|=u.lanes|u.childLanes,l|=u.subtreeFlags,l|=u.flags,u.return=e,u=u.sibling;return e.subtreeFlags|=l,e.childLanes=a,t}function Wp(e,t,a){var l=t.pendingProps;switch(Zo(t),t.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return _e(t),null;case 1:return _e(t),null;case 3:return a=t.stateNode,l=null,e!==null&&(l=e.memoizedState.cache),t.memoizedState.cache!==l&&(t.flags|=2048),aa(Re),vn(),a.pendingContext&&(a.context=a.pendingContext,a.pendingContext=null),(e===null||e.child===null)&&(Un(t)?ua(t):e===null||e.memoizedState.isDehydrated&&(t.flags&256)===0||(t.flags|=1024,Bo())),_e(t),null;case 26:var u=t.type,r=t.memoizedState;return e===null?(ua(t),r!==null?(_e(t),yd(t,r)):(_e(t),Or(t,u,null,l,a))):r?r!==e.memoizedState?(ua(t),_e(t),yd(t,r)):(_e(t),t.flags&=-16777217):(e=e.memoizedProps,e!==l&&ua(t),_e(t),Or(t,u,e,l,a)),null;case 27:if(fi(t),a=ga.current,u=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==l&&ua(t);else{if(!l){if(t.stateNode===null)throw Error(c(166));return _e(t),null}e=Ge.current,Un(t)?Fs(t):(e=Tm(u,l,a),t.stateNode=e,ua(t))}return _e(t),null;case 5:if(fi(t),u=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==l&&ua(t);else{if(!l){if(t.stateNode===null)throw Error(c(166));return _e(t),null}if(r=Ge.current,Un(t))Fs(t);else{var f=pu(ga.current);switch(r){case 1:r=f.createElementNS("http://www.w3.org/2000/svg",u);break;case 2:r=f.createElementNS("http://www.w3.org/1998/Math/MathML",u);break;default:switch(u){case"svg":r=f.createElementNS("http://www.w3.org/2000/svg",u);break;case"math":r=f.createElementNS("http://www.w3.org/1998/Math/MathML",u);break;case"script":r=f.createElement("div"),r.innerHTML="<script><\/script>",r=r.removeChild(r.firstChild);break;
vendor: 22,334 bytes, line 33
33case"select":r=typeof l.is=="string"?f.createElement("select",{is:l.is}):f.createElement("select"),l.multiple?r.multiple=!0:l.size&&(r.size=l.size);break;default:r=typeof l.is=="string"?f.createElement(u,{is:l.is}):f.createElement(u)}}r[Je]=t,r[nt]=l;e:for(f=t.child;f!==null;){if(f.tag===5||f.tag===6)r.appendChild(f.stateNode);else if(f.tag!==4&&f.tag!==27&&f.child!==null){f.child.return=f,f=f.child;continue}if(f===t)break e;for(;f.sibling===null;){if(f.return===null||f.return===t)break e;f=f.return}f.sibling.return=f.return,f=f.sibling}t.stateNode=r;e:switch(We(r,u,l),u){case"button":case"input":case"select":case"textarea":l=!!l.autoFocus;break e;case"img":l=!0;break e;default:l=!1}l&&ua(t)}}return _e(t),Or(t,t.type,e===null?null:e.memoizedProps,t.pendingProps,a),null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==l&&ua(t);else{if(typeof l!="string"&&t.stateNode===null)throw Error(c(166));if(e=ga.current,Un(t)){if(e=t.stateNode,a=t.memoizedProps,l=null,u=$e,u!==null)switch(u.tag){case 27:case 5:l=u.memoizedProps}e[Je]=t,e=!!(e.nodeValue===a||l!==null&&l.suppressHydrationWarning===!0||hm(e.nodeValue,a)),e||Ea(t,!0)}else e=pu(e).createTextNode(l),e[Je]=t,t.stateNode=e}return _e(t),null;case 31:if(a=t.memoizedState,e===null||e.memoizedState!==null){if(l=Un(t),a!==null){if(e===null){if(!l)throw Error(c(318));if(e=t.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(c(557));e[Je]=t}else Pa(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;_e(t),e=!1}else a=Bo(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=a),e=!0;if(!e)return t.flags&256?(_t(t),t):(_t(t),null);if((t.flags&128)!==0)throw Error(c(558))}return _e(t),null;case 13:if(l=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(u=Un(t),l!==null&&l.dehydrated!==null){if(e===null){if(!u)throw Error(c(318));if(u=t.memoizedState,u=u!==null?u.dehydrated:null,!u)throw Error(c(317));u[Je]=t}else Pa(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;_e(t),u=!1}else u=Bo(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=u),u=!0;if(!u)return t.flags&256?(_t(t),t):(_t(t),null)}return _t(t),(t.flags&128)!==0?(t.lanes=a,t):(a=l!==null,e=e!==null&&e.memoizedState!==null,a&&(l=t.child,u=null,l.alternate!==null&&l.alternate.memoizedState!==null&&l.alternate.memoizedState.cachePool!==null&&(u=l.alternate.memoizedState.cachePool.pool),r=null,l.memoizedState!==null&&l.memoizedState.cachePool!==null&&(r=l.memoizedState.cachePool.pool),r!==u&&(l.flags|=2048)),a!==e&&a&&(t.child.flags|=8192),eu(t,t.updateQueue),_e(t),null);case 4:return vn(),e===null&&Kr(t.stateNode.containerInfo),_e(t),null;case 10:return aa(t.type),_e(t),null;case 19:if(Te(Ce),l=t.memoizedState,l===null)return _e(t),null;if(u=(t.flags&128)!==0,r=l.rendering,r===null)if(u)Zl(l,!1);else{if(De!==0||e!==null&&(e.flags&128)!==0)for(e=t.child;e!==null;){if(r=ki(e),r!==null){for(t.flags|=128,Zl(l,!1),e=r.updateQueue,t.updateQueue=e,eu(t,e),t.subtreeFlags=0,e=a,a=t.child;a!==null;)Xs(a,e),a=a.sibling;return ie(Ce,Ce.current&1|2),ee&&ea(t,l.treeForkCount),t.child}e=e.sibling}l.tail!==null&&ht()>iu&&(t.flags|=128,u=!0,Zl(l,!1),t.lanes=4194304)}else{if(!u)if(e=ki(r),e!==null){if(t.flags|=128,u=!0,e=e.updateQueue,t.updateQueue=e,eu(t,e),Zl(l,!0),l.tail===null&&l.tailMode==="hidden"&&!r.alternate&&!ee)return _e(t),null}else 2*ht()-l.renderingStartTime>iu&&a!==536870912&&(t.flags|=128,u=!0,Zl(l,!1),t.lanes=4194304);l.isBackwards?(r.sibling=t.child,t.child=r):(e=l.last,e!==null?e.sibling=r:t.child=r,l.last=r)}return l.tail!==null?(e=l.tail,l.rendering=e,l.tail=e.sibling,l.renderingStartTime=ht(),e.sibling=null,a=Ce.current,ie(Ce,u?a&1|2:a&1),ee&&ea(t,l.treeForkCount),e):(_e(t),null);case 22:case 23:return _t(t),Fo(),l=t.memoizedState!==null,e!==null?e.memoizedState!==null!==l&&(t.flags|=8192):l&&(t.flags|=8192),l?(a&536870912)!==0&&(t.flags&128)===0&&(_e(t),t.subtreeFlags&6&&(t.flags|=8192)):_e(t),a=t.updateQueue,a!==null&&eu(t,a.retryQueue),a=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(a=e.memoizedState.cachePool.pool),l=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(l=t.memoizedState.cachePool.pool),l!==a&&(t.flags|=2048),e!==null&&Te(an),null;case 24:return a=null,e!==null&&(a=e.memoizedState.cache),t.memoizedState.cache!==a&&(t.flags|=2048),aa(Re),_e(t),null;case 25:return null;case 30:return null}throw Error(c(156,t.tag))}function Ip(e,t){switch(Zo(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return aa(Re),vn(),e=t.flags,(e&65536)!==0&&(e&128)===0?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return fi(t),null;case 31:if(t.memoizedState!==null){if(_t(t),t.alternate===null)throw Error(c(340));Pa()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 13:if(_t(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(c(340));Pa()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return Te(Ce),null;case 4:return vn(),null;case 10:return aa(t.type),null;case 22:case 23:return _t(t),Fo(),e!==null&&Te(an),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return aa(Re),null;case 25:return null;default:return null}}function bd(e,t){switch(Zo(t),t.tag){case 3:aa(Re),vn();break;case 26:case 27:case 5:fi(t);break;case 4:vn();break;case 31:t.memoizedState!==null&&_t(t);break;case 13:_t(t);break;case 19:Te(Ce);break;case 10:aa(t.type);break;case 22:case 23:_t(t),Fo(),e!==null&&Te(an);break;case 24:aa(Re)}}function Rl(e,t){try{var a=t.updateQueue,l=a!==null?a.lastEffect:null;if(l!==null){var u=l.next;a=u;do{if((a.tag&e)===e){l=void 0;var r=a.create,f=a.inst;l=r(),f.destroy=l}a=a.next}while(a!==u)}}catch(m){oe(t,t.return,m)}}function Da(e,t,a){try{var l=t.updateQueue,u=l!==null?l.lastEffect:null;if(u!==null){var r=u.next;l=r;do{if((l.tag&e)===e){var f=l.inst,m=f.destroy;if(m!==void 0){f.destroy=void 0,u=t;var v=a,E=m;try{E()}catch(N){oe(u,v,N)}}}l=l.next}while(l!==r)}}catch(N){oe(t,t.return,N)}}function _d(e){var t=e.updateQueue;if(t!==null){var a=e.stateNode;try{sf(t,a)}catch(l){oe(e,e.return,l)}}}function Sd(e,t,a){a.props=rn(e.type,e.memoizedProps),a.state=e.memoizedState;try{a.componentWillUnmount()}catch(l){oe(e,t,l)}}function Bl(e,t){try{var a=e.ref;if(a!==null){switch(e.tag){case 26:case 27:case 5:var l=e.stateNode;break;case 30:l=e.stateNode;break;default:l=e.stateNode}typeof a=="function"?e.refCleanup=a(l):a.current=l}}catch(u){oe(e,t,u)}}function Jt(e,t){var a=e.ref,l=e.refCleanup;if(a!==null)if(typeof l=="function")try{l()}catch(u){oe(e,t,u)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof a=="function")try{a(null)}catch(u){oe(e,t,u)}else a.current=null}function zd(e){var t=e.type,a=e.memoizedProps,l=e.stateNode;try{e:switch(t){case"button":case"input":case"select":case"textarea":a.autoFocus&&l.focus();break e;case"img":a.src?l.src=a.src:a.srcSet&&(l.srcset=a.srcSet)}}catch(u){oe(e,e.return,u)}}function Nr(e,t,a){try{var l=e.stateNode;_v(l,e.type,a,t),l[nt]=t}catch(u){oe(e,e.return,u)}}function Ed(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&Ba(e.type)||e.tag===4}function jr(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||Ed(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.tag===27&&Ba(e.type)||e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function Dr(e,t,a){var l=e.tag;if(l===5||l===6)e=e.stateNode,t?(a.nodeType===9?a.body:a.nodeName==="HTML"?a.ownerDocument.body:a).insertBefore(e,t):(t=a.nodeType===9?a.body:a.nodeName==="HTML"?a.ownerDocument.body:a,t.appendChild(e),a=a._reactRootContainer,a!=null||t.onclick!==null||(t.onclick=Wt));else if(l!==4&&(l===27&&Ba(e.type)&&(a=e.stateNode,t=null),e=e.child,e!==null))for(Dr(e,t,a),e=e.sibling;e!==null;)Dr(e,t,a),e=e.sibling}function tu(e,t,a){var l=e.tag;if(l===5||l===6)e=e.stateNode,t?a.insertBefore(e,t):a.appendChild(e);else if(l!==4&&(l===27&&Ba(e.type)&&(a=e.stateNode),e=e.child,e!==null))for(tu(e,t,a),e=e.sibling;e!==null;)tu(e,t,a),e=e.sibling}function xd(e){var t=e.stateNode,a=e.memoizedProps;try{for(var l=e.type,u=t.attributes;u.length;)t.removeAttributeNode(u[0]);We(t,l,a),t[Je]=e,t[nt]=a}catch(r){oe(e,e.return,r)}}var oa=!1,qe=!1,Mr=!1,Td=typeof WeakSet=="function"?WeakSet:Set,Xe=null;function Pp(e,t){if(e=e.containerInfo,Ir=zu,e=Rs(e),xo(e)){if("selectionStart"in e)var a={start:e.selectionStart,end:e.selectionEnd};else e:{a=(a=e.ownerDocument)&&a.defaultView||window;var l=a.getSelection&&a.getSelection();if(l&&l.rangeCount!==0){a=l.anchorNode;var u=l.anchorOffset,r=l.focusNode;l=l.focusOffset;try{a.nodeType,r.nodeType}catch{a=null;break e}var f=0,m=-1,v=-1,E=0,N=0,w=e,x=null;t:for(;;){for(var T;w!==a||u!==0&&w.nodeType!==3||(m=f+u),w!==r||l!==0&&w.nodeType!==3||(v=f+l),w.nodeType===3&&(f+=w.nodeValue.length),(T=w.firstChild)!==null;)x=w,w=T;for(;;){if(w===e)break t;if(x===a&&++E===u&&(m=f),x===r&&++N===l&&(v=f),(T=w.nextSibling)!==null)break;w=x,x=w.parentNode}w=T}a=m===-1||v===-1?null:{start:m,end:v}}else a=null}a=a||{start:0,end:0}}else a=null;for(Pr={focusedElem:e,selectionRange:a},zu=!1,Xe=t;Xe!==null;)if(t=Xe,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,Xe=e;else for(;Xe!==null;){switch(t=Xe,r=t.alternate,e=t.flags,t.tag){case 0:if((e&4)!==0&&(e=t.updateQueue,e=e!==null?e.events:null,e!==null))for(a=0;a<e.length;a++)u=e[a],u.ref.impl=u.nextImpl;break;case 11:case 15:break;case 1:if((e&1024)!==0&&r!==null){e=void 0,a=t,u=r.memoizedProps,r=r.memoizedState,l=a.stateNode;try{var R=rn(a.type,u);e=l.getSnapshotBeforeUpdate(R,r),l.__reactInternalSnapshotBeforeUpdate=e}catch(k){oe(a,a.return,k)}}break;case 3:if((e&1024)!==0){if(e=t.stateNode.containerInfo,a=e.nodeType,a===9)ac(e);else if(a===1)switch(e.nodeName){case"HEAD":case"HTML":case"BODY":ac(e);break;default:e.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((e&1024)!==0)throw Error(c(163))}if(e=t.sibling,e!==null){e.return=t.return,Xe=e;break}Xe=t.return}}function Ad(e,t,a){var l=a.flags;switch(a.tag){case 0:case 11:case 15:ca(e,a),l&4&&Rl(5,a);break;case 1:if(ca(e,a),l&4)if(e=a.stateNode,t===null)try{e.componentDidMount()}catch(f){oe(a,a.return,f)}else{var u=rn(a.type,t.memoizedProps);t=t.memoizedState;try{e.componentDidUpdate(u,t,e.__reactInternalSnapshotBeforeUpdate)}catch(f){oe(a,a.return,f)}}l&64&&_d(a),l&512&&Bl(a,a.return);break;case 3:if(ca(e,a),l&64&&(e=a.updateQueue,e!==null)){if(t=null,a.child!==null)switch(a.child.tag){case 27:case 5:t=a.child.stateNode;break;case 1:t=a.child.stateNode}try{sf(e,t)}catch(f){oe(a,a.return,f)}}break;case 27:t===null&&l&4&&xd(a);case 26:case 5:ca(e,a),t===null&&l&4&&zd(a),l&512&&Bl(a,a.return);break;case 12:ca(e,a);break;case 31:ca(e,a),l&4&&jd(e,a);break;case 13:ca(e,a),l&4&&Dd(e,a),l&64&&(e=a.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(a=rv.bind(null,a),Nv(e,a))));break;case 22:if(l=a.memoizedState!==null||oa,!l){t=t!==null&&t.memoizedState!==null||qe,u=oa;var r=qe;oa=l,(qe=t)&&!r?sa(e,a,(a.subtreeFlags&8772)!==0):ca(e,a),oa=u,qe=r}break;case 30:break;default:ca(e,a)}}function Od(e){var t=e.alternate;t!==null&&(e.alternate=null,Od(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&uo(t)),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}var ze=null,it=!1;function ra(e,t,a){for(a=a.child;a!==null;)Nd(e,t,a),a=a.sibling}function Nd(e,t,a){if(pt&&typeof pt.onCommitFiberUnmount=="function")try{pt.onCommitFiberUnmount(ol,a)}catch{}switch(a.tag){case 26:qe||Jt(a,t),ra(e,t,a),a.memoizedState?a.memoizedState.count--:a.stateNode&&(a=a.stateNode,a.parentNode.removeChild(a));break;case 27:qe||Jt(a,t);var l=ze,u=it;Ba(a.type)&&(ze=a.stateNode,it=!1),ra(e,t,a),Ql(a.stateNode),ze=l,it=u;break;case 5:qe||Jt(a,t);case 6:if(l=ze,u=it,ze=null,ra(e,t,a),ze=l,it=u,ze!==null)if(it)try{(ze.nodeType===9?ze.body:ze.nodeName==="HTML"?ze.ownerDocument.body:ze).removeChild(a.stateNode)}catch(r){oe(a,t,r)}else try{ze.removeChild(a.stateNode)}catch(r){oe(a,t,r)}break;case 18:ze!==null&&(it?(e=ze,_m(e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e,a.stateNode),el(e)):_m(ze,a.stateNode));break;case 4:l=ze,u=it,ze=a.stateNode.containerInfo,it=!0,ra(e,t,a),ze=l,it=u;break;case 0:case 11:case 14:case 15:Da(2,a,t),qe||Da(4,a,t),ra(e,t,a);break;case 1:qe||(Jt(a,t),l=a.stateNode,typeof l.componentWillUnmount=="function"&&Sd(a,t,l)),ra(e,t,a);break;case 21:ra(e,t,a);break;case 22:qe=(l=qe)||a.memoizedState!==null,ra(e,t,a),qe=l;break;default:ra(e,t,a)}}function jd(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null))){e=e.dehydrated;try{el(e)}catch(a){oe(t,t.return,a)}}}function Dd(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{el(e)}catch(a){oe(t,t.return,a)}}function ev(e){switch(e.tag){case 31:case 13:case 19:var t=e.stateNode;return t===null&&(t=e.stateNode=new Td),t;case 22:return e=e.stateNode,t=e._retryCache,t===null&&(t=e._retryCache=new Td),t;default:throw Error(c(435,e.tag))}}function au(e,t){var a=ev(e);t.forEach(function(l){if(!a.has(l)){a.add(l);var u=cv.bind(null,e,l);l.then(u,u)}})}function ut(e,t){var a=t.deletions;if(a!==null)for(var l=0;l<a.length;l++){var u=a[l],r=e,f=t,m=f;e:for(;m!==null;){switch(m.tag){case 27:if(Ba(m.type)){ze=m.stateNode,it=!1;break e}break;case 5:ze=m.stateNode,it=!1;break e;case 3:case 4:ze=m.stateNode.containerInfo,it=!0;break e}m=m.return}if(ze===null)throw Error(c(160));Nd(r,f,u),ze=null,it=!1,r=u.alternate,r!==null&&(r.return=null),u.return=null}if(t.subtreeFlags&13886)for(t=t.child;t!==null;)Md(t,e),t=t.sibling}var Ht=null;function Md(e,t){var a=e.alternate,l=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:ut(t,e),ot(e),l&4&&(Da(3,e,e.return),Rl(3,e),Da(5,e,e.return));break;case 1:ut(t,e),ot(e),l&512&&(qe||a===null||Jt(a,a.return)),l&64&&oa&&(e=e.updateQueue,e!==null&&(l=e.callbacks,l!==null&&(a=e.shared.hiddenCallbacks,e.shared.hiddenCallbacks=a===null?l:a.concat(l))));break;case 26:var u=Ht;if(ut(t,e),ot(e),l&512&&(qe||a===null||Jt(a,a.return)),l&4){var r=a!==null?a.memoizedState:null;if(l=e.memoizedState,a===null)if(l===null)if(e.stateNode===null){e:{l=e.type,a=e.memoizedProps,u=u.ownerDocument||u;t:switch(l){case"title":r=u.getElementsByTagName("title")[0],(!r||r[sl]||r[Je]||r.namespaceURI==="http://www.w3.org/2000/svg"||r.hasAttribute("itemprop"))&&(r=u.createElement(l),u.head.insertBefore(r,u.querySelector("head > title"))),We(r,l,a),r[Je]=e,Ye(r),l=r;break e;case"link":var f=Mm("link","href",u).get(l+(a.href||""));if(f){for(var m=0;m<f.length;m++)if(r=f[m],r.getAttribute("href")===(a.href==null||a.href===""?null:a.href)&&r.getAttribute("rel")===(a.rel==null?null:a.rel)&&r.getAttribute("title")===(a.title==null?null:a.title)&&r.getAttribute("crossorigin")===(a.crossOrigin==null?null:a.crossOrigin)){f.splice(m,1);break t}}r=u.createElement(l),We(r,l,a),u.head.appendChild(r);break;case"meta":if(f=Mm("meta","content",u).get(l+(a.content||""))){for(m=0;m<f.length;m++)if(r=f[m],r.getAttribute("content")===(a.content==null?null:""+a.content)&&r.getAttribute("name")===(a.name==null?null:a.name)&&r.getAttribute("property")===(a.property==null?null:a.property)&&r.getAttribute("http-equiv")===(a.httpEquiv==null?null:a.httpEquiv)&&r.getAttribute("charset")===(a.charSet==null?null:a.charSet)){f.splice(m,1);break t}}r=u.createElement(l),We(r,l,a),u.head.appendChild(r);break;default:throw Error(c(468,l))}r[Je]=e,Ye(r),l=r}e.stateNode=l}else wm(u,e.type,e.stateNode);else e.stateNode=Dm(u,l,e.memoizedProps);else r!==l?(r===null?a.stateNode!==null&&(a=a.stateNode,a.parentNode.removeChild(a)):r.count--,l===null?wm(u,e.type,e.stateNode):Dm(u,l,e.memoizedProps)):l===null&&e.stateNode!==null&&Nr(e,e.memoizedProps,a.memoizedProps)}break;case 27:ut(t,e),ot(e),l&512&&(qe||a===null||Jt(a,a.return)),a!==null&&l&4&&Nr(e,e.memoizedProps,a.memoizedProps);break;case 5:if(ut(t,e),ot(e),l&512&&(qe||a===null||Jt(a,a.return)),e.flags&32){u=e.stateNode;try{En(u,"")}catch(R){oe(e,e.return,R)}}l&4&&e.stateNode!=null&&(u=e.memoizedProps,Nr(e,u,a!==null?a.memoizedProps:u)),l&1024&&(Mr=!0);break;case 6:if(ut(t,e),ot(e),l&4){if(e.stateNode===null)throw Error(c(162));l=e.memoizedProps,a=e.stateNode;try{a.nodeValue=l}catch(R){oe(e,e.return,R)}}break;case 3:if(yu=null,u=Ht,Ht=vu(t.containerInfo),ut(t,e),Ht=u,ot(e),l&4&&a!==null&&a.memoizedState.isDehydrated)try{el(t.containerInfo)}catch(R){oe(e,e.return,R)}Mr&&(Mr=!1,wd(e));break;case 4:l=Ht,Ht=vu(e.stateNode.containerInfo),ut(t,e),ot(e),Ht=l;break;case 12:ut(t,e),ot(e);break;case 31:ut(t,e),ot(e),l&4&&(l=e.updateQueue,l!==null&&(e.updateQueue=null,au(e,l)));break;case 13:ut(t,e),ot(e),e.child.flags&8192&&e.memoizedState!==null!=(a!==null&&a.memoizedState!==null)&&(lu=ht()),l&4&&(l=e.updateQueue,l!==null&&(e.updateQueue=null,au(e,l)));break;case 22:u=e.memoizedState!==null;var v=a!==null&&a.memoizedState!==null,E=oa,N=qe;if(oa=E||u,qe=N||v,ut(t,e),qe=N,oa=E,ot(e),l&8192)e:for(t=e.stateNode,t._visibility=u?t._visibility&-2:t._visibility|1,u&&(a===null||v||oa||qe||cn(e)),a=null,t=e;;){if(t.tag===5||t.tag===26){if(a===null){v=a=t;try{if(r=v.stateNode,u)f=r.style,typeof f.setProperty=="function"?f.setProperty("display","none","important"):f.display="none";else{m=v.stateNode;var w=v.memoizedProps.style,x=w!=null&&w.hasOwnProperty("display")?w.display:null;m.style.display=x==null||typeof x=="boolean"?"":(""+x).trim()}}catch(R){oe(v,v.return,R)}}}else if(t.tag===6){if(a===null){v=t;try{v.stateNode.nodeValue=u?"":v.memoizedProps}catch(R){oe(v,v.return,R)}}}else if(t.tag===18){if(a===null){v=t;try{var T=v.stateNode;u?Sm(T,!0):Sm(v.stateNode,!1)}catch(R){oe(v,v.return,R)}}}else if((t.tag!==22&&t.tag!==23||t.memoizedState===null||t===e)&&t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break e;for(;t.sibling===null;){if(t.return===null||t.return===e)break e;a===t&&(a=null),t=t.return}a===t&&(a=null),t.sibling.return=t.return,t=t.sibling}l&4&&(l=e.updateQueue,l!==null&&(a=l.retryQueue,a!==null&&(l.retryQueue=null,au(e,a))));break;case 19:ut(t,e),ot(e),l&4&&(l=e.updateQueue,l!==null&&(e.updateQueue=null,au(e,l)));break;case 30:break;case 21:break;default:ut(t,e),ot(e)}}function ot(e){var t=e.flags;if(t&2){try{for(var a,l=e.return;l!==null;){if(Ed(l)){a=l;break}l=l.return}if(a==null)throw Error(c(160));switch(a.tag){case 27:var u=a.stateNode,r=jr(e);tu(e,r,u);break;case 5:var f=a.stateNode;a.flags&32&&(En(f,""),a.flags&=-33);var m=jr(e);tu(e,m,f);break;case 3:case 4:var v=a.stateNode.containerInfo,E=jr(e);Dr(e,E,v);break;default:throw Error(c(161))}}catch(N){oe(e,e.return,N)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function wd(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var t=e;wd(t),t.tag===5&&t.flags&1024&&t.stateNode.reset(),e=e.sibling}}function ca(e,t){if(t.subtreeFlags&8772)for(t=t.child;t!==null;)Ad(e,t.alternate,t),t=t.sibling}function cn(e){for(e=e.child;e!==null;){var t=e;switch(t.tag){case 0:case 11:case 14:case 15:Da(4,t,t.return),cn(t);break;case 1:Jt(t,t.return);var a=t.stateNode;typeof a.componentWillUnmount=="function"&&Sd(t,t.return,a),cn(t);break;case 27:Ql(t.stateNode);case 26:case 5:Jt(t,t.return),cn(t);break;case 22:t.memoizedState===null&&cn(t);break;case 30:cn(t);break;default:cn(t)}e=e.sibling}}function sa(e,t,a){for(a=a&&(t.subtreeFlags&8772)!==0,t=t.child;t!==null;){var l=t.alternate,u=e,r=t,f=r.flags;switch(r.tag){case 0:case 11:case 15:sa(u,r,a),Rl(4,r);break;case 1:if(sa(u,r,a),l=r,u=l.stateNode,typeof u.componentDidMount=="function")try{u.componentDidMount()}catch(E){oe(l,l.return,E)}if(l=r,u=l.updateQueue,u!==null){var m=l.stateNode;try{var v=u.shared.hiddenCallbacks;if(v!==null)for(u.shared.hiddenCallbacks=null,u=0;u<v.length;u++)cf(v[u],m)}catch(E){oe(l,l.return,E)}}a&&f&64&&_d(r),Bl(r,r.return);break;case 27:xd(r);case 26:case 5:sa(u,r,a),a&&l===null&&f&4&&zd(r),Bl(r,r.return);break;case 12:sa(u,r,a);break;case 31:sa(u,r,a),a&&f&4&&jd(u,r);break;case 13:sa(u,r,a),a&&f&4&&Dd(u,r);break;case 22:r.memoizedState===null&&sa(u,r,a),Bl(r,r.return);break;case 30:break;default:sa(u,r,a)}t=t.sibling}}function wr(e,t){var a=null;e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(a=e.memoizedState.cachePool.pool),e=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(e=t.memoizedState.cachePool.pool),e!==a&&(e!=null&&e.refCount++,a!=null&&El(a))}function Ur(e,t){e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&El(e))}function kt(e,t,a,l){if(t.subtreeFlags&10256)for(t=t.child;t!==null;)Ud(e,t,a,l),t=t.sibling}function Ud(e,t,a,l){var u=t.flags;switch(t.tag){case 0:case 11:case 15:kt(e,t,a,l),u&2048&&Rl(9,t);break;case 1:kt(e,t,a,l);break;case 3:kt(e,t,a,l),u&2048&&(e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&El(e)));break;case 12:if(u&2048){kt(e,t,a,l),e=t.stateNode;try{var r=t.memoizedProps,f=r.id,m=r.onPostCommit;typeof m=="function"&&m(f,t.alternate===null?"mount":"update",e.passiveEffectDuration,-0)}catch(v){oe(t,t.return,v)}}else kt(e,t,a,l);break;case 31:kt(e,t,a,l);break;case 13:kt(e,t,a,l);break;case 23:break;case 22:r=t.stateNode,f=t.alternate,t.memoizedState!==null?r._visibility&2?kt(e,t,a,l):Ll(e,t):r._visibility&2?kt(e,t,a,l):(r._visibility|=2,Gn(e,t,a,l,(t.subtreeFlags&10256)!==0||!1)),u&2048&&wr(f,t);break;case 24:kt(e,t,a,l),u&2048&&Ur(t.alternate,t);break;default:kt(e,t,a,l)}}function Gn(e,t,a,l,u){for(u=u&&((t.subtreeFlags&10256)!==0||!1),t=t.child;t!==null;){var r=e,f=t,m=a,v=l,E=f.flags;switch(f.tag){case 0:case 11:case 15:Gn(r,f,m,v,u),Rl(8,f);break;case 23:break;case 22:var N=f.stateNode;f.memoizedState!==null?N._visibility&2?Gn(r,f,m,v,u):Ll(r,f):(N._visibility|=2,Gn(r,f,m,v,u)),u&&E&2048&&wr(f.alternate,f);break;case 24:Gn(r,f,m,v,u),u&&E&2048&&Ur(f.alternate,f);break;default:Gn(r,f,m,v,u)}t=t.sibling}}function Ll(e,t){if(t.subtreeFlags&10256)for(t=t.child;t!==null;){var a=e,l=t,u=l.flags;switch(l.tag){case 22:Ll(a,l),u&2048&&wr(l.alternate,l);break;case 24:Ll(a,l),u&2048&&Ur(l.alternate,l);break;default:Ll(a,l)}
vendor: 6,726 bytes, line 33
33t=t.sibling}}var ql=8192;function Yn(e,t,a){if(e.subtreeFlags&ql)for(e=e.child;e!==null;)Cd(e,t,a),e=e.sibling}function Cd(e,t,a){switch(e.tag){case 26:Yn(e,t,a),e.flags&ql&&e.memoizedState!==null&&Hv(a,Ht,e.memoizedState,e.memoizedProps);break;case 5:Yn(e,t,a);break;case 3:case 4:var l=Ht;Ht=vu(e.stateNode.containerInfo),Yn(e,t,a),Ht=l;break;case 22:e.memoizedState===null&&(l=e.alternate,l!==null&&l.memoizedState!==null?(l=ql,ql=16777216,Yn(e,t,a),ql=l):Yn(e,t,a));break;default:Yn(e,t,a)}}function Zd(e){var t=e.alternate;if(t!==null&&(e=t.child,e!==null)){t.child=null;do t=e.sibling,e.sibling=null,e=t;while(e!==null)}}function Hl(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var a=0;a<t.length;a++){var l=t[a];Xe=l,Bd(l,e)}Zd(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)Rd(e),e=e.sibling}function Rd(e){switch(e.tag){case 0:case 11:case 15:Hl(e),e.flags&2048&&Da(9,e,e.return);break;case 3:Hl(e);break;case 12:Hl(e);break;case 22:var t=e.stateNode;e.memoizedState!==null&&t._visibility&2&&(e.return===null||e.return.tag!==13)?(t._visibility&=-3,nu(e)):Hl(e);break;default:Hl(e)}}function nu(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var a=0;a<t.length;a++){var l=t[a];Xe=l,Bd(l,e)}Zd(e)}for(e=e.child;e!==null;){switch(t=e,t.tag){case 0:case 11:case 15:Da(8,t,t.return),nu(t);break;case 22:a=t.stateNode,a._visibility&2&&(a._visibility&=-3,nu(t));break;default:nu(t)}e=e.sibling}}function Bd(e,t){for(;Xe!==null;){var a=Xe;switch(a.tag){case 0:case 11:case 15:Da(8,a,t);break;case 23:case 22:if(a.memoizedState!==null&&a.memoizedState.cachePool!==null){var l=a.memoizedState.cachePool.pool;l!=null&&l.refCount++}break;case 24:El(a.memoizedState.cache)}if(l=a.child,l!==null)l.return=a,Xe=l;else e:for(a=e;Xe!==null;){l=Xe;var u=l.sibling,r=l.return;if(Od(l),l===a){Xe=null;break e}if(u!==null){u.return=r,Xe=u;break e}Xe=r}}}var tv={getCacheForType:function(e){var t=Ke(Re),a=t.data.get(e);return a===void 0&&(a=e(),t.data.set(e,a)),a},cacheSignal:function(){return Ke(Re).controller.signal}},av=typeof WeakMap=="function"?WeakMap:Map,le=0,me=null,K=null,I=0,ue=0,St=null,Ma=!1,Xn=!1,Cr=!1,fa=0,De=0,wa=0,sn=0,Zr=0,zt=0,Qn=0,kl=null,rt=null,Rr=!1,lu=0,Ld=0,iu=1/0,uu=null,Ua=null,ke=0,Ca=null,Jn=null,da=0,Br=0,Lr=null,qd=null,Vl=0,qr=null;function Et(){return(le&2)!==0&&I!==0?I&-I:M.T!==null?Xr():es()}function Hd(){if(zt===0)if((I&536870912)===0||ee){var e=hi;hi<<=1,(hi&3932160)===0&&(hi=262144),zt=e}else zt=536870912;return e=bt.current,e!==null&&(e.flags|=32),zt}function ct(e,t,a){(e===me&&(ue===2||ue===9)||e.cancelPendingCommit!==null)&&($n(e,0),Za(e,I,zt,!1)),cl(e,a),((le&2)===0||e!==me)&&(e===me&&((le&2)===0&&(sn|=a),De===4&&Za(e,I,zt,!1)),$t(e))}function kd(e,t,a){if((le&6)!==0)throw Error(c(327));var l=!a&&(t&127)===0&&(t&e.expiredLanes)===0||rl(e,t),u=l?iv(e,t):kr(e,t,!0),r=l;do{if(u===0){Xn&&!l&&Za(e,t,0,!1);break}else{if(a=e.current.alternate,r&&!nv(a)){u=kr(e,t,!1),r=!1;continue}if(u===2){if(r=t,e.errorRecoveryDisabledLanes&r)var f=0;else f=e.pendingLanes&-536870913,f=f!==0?f:f&536870912?536870912:0;if(f!==0){t=f;e:{var m=e;u=kl;var v=m.current.memoizedState.isDehydrated;if(v&&($n(m,f).flags|=256),f=kr(m,f,!1),f!==2){if(Cr&&!v){m.errorRecoveryDisabledLanes|=r,sn|=r,u=4;break e}r=rt,rt=u,r!==null&&(rt===null?rt=r:rt.push.apply(rt,r))}u=f}if(r=!1,u!==2)continue}}if(u===1){$n(e,0),Za(e,t,0,!0);break}e:{switch(l=e,r=u,r){case 0:case 1:throw Error(c(345));case 4:if((t&4194048)!==t)break;case 6:Za(l,t,zt,!Ma);break e;case 2:rt=null;break;case 3:case 5:break;default:throw Error(c(329))}if((t&62914560)===t&&(u=lu+300-ht(),10<u)){if(Za(l,t,zt,!Ma),vi(l,0,!0)!==0)break e;da=t,l.timeoutHandle=ym(Vd.bind(null,l,a,rt,uu,Rr,t,zt,sn,Qn,Ma,r,"Throttled",-0,0),u);break e}Vd(l,a,rt,uu,Rr,t,zt,sn,Qn,Ma,r,null,-0,0)}}break}while(!0);$t(e)}function Vd(e,t,a,l,u,r,f,m,v,E,N,w,x,T){if(e.timeoutHandle=-1,w=t.subtreeFlags,w&8192||(w&16785408)===16785408){w={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:Wt},Cd(t,r,w);var R=(r&62914560)===r?lu-ht():(r&4194048)===r?Ld-ht():0;if(R=kv(w,R),R!==null){da=r,e.cancelPendingCommit=R(Fd.bind(null,e,t,r,a,l,u,f,m,v,N,w,null,x,T)),Za(e,r,f,!E);return}}Fd(e,t,r,a,l,u,f,m,v)}function nv(e){for(var t=e;;){var a=t.tag;if((a===0||a===11||a===15)&&t.flags&16384&&(a=t.updateQueue,a!==null&&(a=a.stores,a!==null)))for(var l=0;l<a.length;l++){var u=a[l],r=u.getSnapshot;u=u.value;try{if(!gt(r(),u))return!1}catch{return!1}}if(a=t.child,t.subtreeFlags&16384&&a!==null)a.return=t,t=a;else{if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function Za(e,t,a,l){t&=~Zr,t&=~sn,e.suspendedLanes|=t,e.pingedLanes&=~t,l&&(e.warmLanes|=t),l=e.expirationTimes;for(var u=t;0<u;){var r=31-vt(u),f=1<<r;l[r]=-1,u&=~f}a!==0&&Wc(e,a,t)}function ou(){return(le&6)===0?(Gl(0),!1):!0}function Hr(){if(K!==null){if(ue===0)var e=K.return;else e=K,ta=en=null,ar(e),Ln=null,Tl=0,e=K;for(;e!==null;)bd(e.alternate,e),e=e.return;K=null}}function $n(e,t){var a=e.timeoutHandle;a!==-1&&(e.timeoutHandle=-1,Ev(a)),a=e.cancelPendingCommit,a!==null&&(e.cancelPendingCommit=null,a()),da=0,Hr(),me=e,K=a=Pt(e.current,null),I=t,ue=0,St=null,Ma=!1,Xn=rl(e,t),Cr=!1,Qn=zt=Zr=sn=wa=De=0,rt=kl=null,Rr=!1,(t&8)!==0&&(t|=t&32);var l=e.entangledLanes;if(l!==0)for(e=e.entanglements,l&=t;0<l;){var u=31-vt(l),r=1<<u;t|=e[u],l&=~r}return fa=t,Ni(),a}function Gd(e,t){J=null,M.H=Ul,t===Bn||t===Ri?(t=lf(),ue=3):t===Yo?(t=lf(),ue=4):ue=t===yr?8:t!==null&&typeof t=="object"&&typeof t.then=="function"?6:1,St=t,K===null&&(De=1,Fi(e,jt(t,e.current)))}function Yd(){var e=bt.current;return e===null?!0:(I&4194048)===I?Ut===null:(I&62914560)===I||(I&536870912)!==0?e===Ut:!1}function Xd(){var e=M.H;return M.H=Ul,e===null?Ul:e}function Qd(){var e=M.A;return M.A=tv,e}function ru(){De=4,Ma||(I&4194048)!==I&&bt.current!==null||(Xn=!0),(wa&134217727)===0&&(sn&134217727)===0||me===null||Za(me,I,zt,!1)}function kr(e,t,a){var l=le;le|=2;var u=Xd(),r=Qd();(me!==e||I!==t)&&(uu=null,$n(e,t)),t=!1;var f=De;e:do try{if(ue!==0&&K!==null){var m=K,v=St;switch(ue){case 8:Hr(),f=6;break e;case 3:case 2:case 9:case 6:bt.current===null&&(t=!0);var E=ue;if(ue=0,St=null,Kn(e,m,v,E),a&&Xn){f=0;break e}break;default:E=ue,ue=0,St=null,Kn(e,m,v,E)}}lv(),f=De;break}catch(N){Gd(e,N)}while(!0);return t&&e.shellSuspendCounter++,ta=en=null,le=l,M.H=u,M.A=r,K===null&&(me=null,I=0,Ni()),f}function lv(){for(;K!==null;)Jd(K)}function iv(e,t){var a=le;le|=2;var l=Xd(),u=Qd();me!==e||I!==t?(uu=null,iu=ht()+500,$n(e,t)):Xn=rl(e,t);e:do try{if(ue!==0&&K!==null){t=K;var r=St;t:switch(ue){case 1:ue=0,St=null,Kn(e,t,r,1);break;
vendor: 4,086 bytes, line 33
33case 2:case 9:if(af(r)){ue=0,St=null,$d(t);break}t=function(){ue!==2&&ue!==9||me!==e||(ue=7),$t(e)},r.then(t,t);break e;case 3:ue=7;break e;case 4:ue=5;break e;case 7:af(r)?(ue=0,St=null,$d(t)):(ue=0,St=null,Kn(e,t,r,7));break;case 5:var f=null;switch(K.tag){case 26:f=K.memoizedState;case 5:case 27:var m=K;if(f?Um(f):m.stateNode.complete){ue=0,St=null;var v=m.sibling;if(v!==null)K=v;else{var E=m.return;E!==null?(K=E,cu(E)):K=null}break t}}ue=0,St=null,Kn(e,t,r,5);break;case 6:ue=0,St=null,Kn(e,t,r,6);break;case 8:Hr(),De=6;break e;default:throw Error(c(462))}}uv();break}catch(N){Gd(e,N)}while(!0);return ta=en=null,M.H=l,M.A=u,le=a,K!==null?0:(me=null,I=0,Ni(),De)}function uv(){for(;K!==null&&!j0();)Jd(K)}function Jd(e){var t=gd(e.alternate,e,fa);e.memoizedProps=e.pendingProps,t===null?cu(e):K=t}function $d(e){var t=e,a=t.alternate;switch(t.tag){case 15:case 0:t=fd(a,t,t.pendingProps,t.type,void 0,I);break;case 11:t=fd(a,t,t.pendingProps,t.type.render,t.ref,I);break;case 5:ar(t);default:bd(a,t),t=K=Xs(t,fa),t=gd(a,t,fa)}e.memoizedProps=e.pendingProps,t===null?cu(e):K=t}function Kn(e,t,a,l){ta=en=null,ar(t),Ln=null,Tl=0;var u=t.return;try{if($p(e,u,t,a,I)){De=1,Fi(e,jt(a,e.current)),K=null;return}}catch(r){if(u!==null)throw K=u,r;De=1,Fi(e,jt(a,e.current)),K=null;return}t.flags&32768?(ee||l===1?e=!0:Xn||(I&536870912)!==0?e=!1:(Ma=e=!0,(l===2||l===9||l===3||l===6)&&(l=bt.current,l!==null&&l.tag===13&&(l.flags|=16384))),Kd(t,e)):cu(t)}function cu(e){var t=e;do{if((t.flags&32768)!==0){Kd(t,Ma);return}e=t.return;var a=Wp(t.alternate,t,fa);if(a!==null){K=a;return}if(t=t.sibling,t!==null){K=t;return}K=t=e}while(t!==null);De===0&&(De=5)}function Kd(e,t){do{var a=Ip(e.alternate,e);if(a!==null){a.flags&=32767,K=a;return}if(a=e.return,a!==null&&(a.flags|=32768,a.subtreeFlags=0,a.deletions=null),!t&&(e=e.sibling,e!==null)){K=e;return}K=e=a}while(e!==null);De=6,K=null}function Fd(e,t,a,l,u,r,f,m,v){e.cancelPendingCommit=null;do su();while(ke!==0);if((le&6)!==0)throw Error(c(327));if(t!==null){if(t===e.current)throw Error(c(177));if(r=t.lanes|t.childLanes,r|=jo,q0(e,a,r,f,m,v),e===me&&(K=me=null,I=0),Jn=t,Ca=e,da=a,Br=r,Lr=u,qd=l,(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?(e.callbackNode=null,e.callbackPriority=0,sv(di,function(){return tm(),null})):(e.callbackNode=null,e.callbackPriority=0),l=(t.flags&13878)!==0,(t.subtreeFlags&13878)!==0||l){l=M.T,M.T=null,u=Z.p,Z.p=2,f=le,le|=4;try{Pp(e,t,a)}finally{le=f,Z.p=u,M.T=l}}ke=1,Wd(),Id(),Pd()}}function Wd(){if(ke===1){ke=0;var e=Ca,t=Jn,a=(t.flags&13878)!==0;if((t.subtreeFlags&13878)!==0||a){a=M.T,M.T=null;var l=Z.p;Z.p=2;var u=le;le|=4;try{Md(t,e);var r=Pr,f=Rs(e.containerInfo),m=r.focusedElem,v=r.selectionRange;if(f!==m&&m&&m.ownerDocument&&Zs(m.ownerDocument.documentElement,m)){if(v!==null&&xo(m)){var E=v.start,N=v.end;if(N===void 0&&(N=E),"selectionStart"in m)m.selectionStart=E,m.selectionEnd=Math.min(N,m.value.length);else{var w=m.ownerDocument||document,x=w&&w.defaultView||window;if(x.getSelection){var T=x.getSelection(),R=m.textContent.length,k=Math.min(v.start,R),de=v.end===void 0?k:Math.min(v.end,R);!T.extend&&k>de&&(f=de,de=k,k=f);var _=Cs(m,k),b=Cs(m,de);if(_&&b&&(T.rangeCount!==1||T.anchorNode!==_.node||T.anchorOffset!==_.offset||T.focusNode!==b.node||T.focusOffset!==b.offset)){var z=w.createRange();z.setStart(_.node,_.offset),T.removeAllRanges(),k>de?(T.addRange(z),T.extend(b.node,b.offset)):(z.setEnd(b.node,b.offset),T.addRange(z))}}}}for(w=[],T=m;T=T.parentNode;)T.nodeType===1&&w.push({element:T,left:T.scrollLeft,top:T.scrollTop});for(typeof m.focus=="function"&&m.focus(),m=0;m<w.length;m++){var j=w[m];j.element.scrollLeft=j.left,j.element.scrollTop=j.top}}zu=!!Ir,Pr=Ir=null}finally{le=u,Z.p=l,M.T=a}}e.current=t,ke=2}}function Id(){if(ke===2){ke=0;var e=Ca,t=Jn,a=(t.flags&8772)!==0;if((t.subtreeFlags&8772)!==0||a){a=M.T,M.T=null;var l=Z.p;Z.p=2;var u=le;le|=4;try{Ad(e,t.alternate,t)}finally{le=u,Z.p=l,M.T=a}}ke=3}}function Pd(){if(ke===4||ke===3){ke=0,D0();var e=Ca,t=Jn,a=da,l=qd;(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?ke=5:(ke=0,Jn=Ca=null,em(e,e.pen
vendor: 12,886 bytes, line 33
33dingLanes));var u=e.pendingLanes;if(u===0&&(Ua=null),lo(a),t=t.stateNode,pt&&typeof pt.onCommitFiberRoot=="function")try{pt.onCommitFiberRoot(ol,t,void 0,(t.current.flags&128)===128)}catch{}if(l!==null){t=M.T,u=Z.p,Z.p=2,M.T=null;try{for(var r=e.onRecoverableError,f=0;f<l.length;f++){var m=l[f];r(m.value,{componentStack:m.stack})}}finally{M.T=t,Z.p=u}}(da&3)!==0&&su(),$t(e),u=e.pendingLanes,(a&261930)!==0&&(u&42)!==0?e===qr?Vl++:(Vl=0,qr=e):Vl=0,Gl(0)}}function em(e,t){(e.pooledCacheLanes&=t)===0&&(t=e.pooledCache,t!=null&&(e.pooledCache=null,El(t)))}function su(){return Wd(),Id(),Pd(),tm()}function tm(){if(ke!==5)return!1;var e=Ca,t=Br;Br=0;var a=lo(da),l=M.T,u=Z.p;try{Z.p=32>a?32:a,M.T=null,a=Lr,Lr=null;var r=Ca,f=da;if(ke=0,Jn=Ca=null,da=0,(le&6)!==0)throw Error(c(331));var m=le;if(le|=4,Rd(r.current),Ud(r,r.current,f,a),le=m,Gl(0,!1),pt&&typeof pt.onPostCommitFiberRoot=="function")try{pt.onPostCommitFiberRoot(ol,r)}catch{}return!0}finally{Z.p=u,M.T=l,em(e,t)}}function am(e,t,a){t=jt(a,t),t=gr(e.stateNode,t,2),e=Oa(e,t,2),e!==null&&(cl(e,2),$t(e))}function oe(e,t,a){if(e.tag===3)am(e,e,a);else for(;t!==null;){if(t.tag===3){am(t,e,a);break}else if(t.tag===1){var l=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof l.componentDidCatch=="function"&&(Ua===null||!Ua.has(l))){e=jt(a,e),a=nd(2),l=Oa(t,a,2),l!==null&&(ld(a,l,t,e),cl(l,2),$t(l));break}}t=t.return}}function Vr(e,t,a){var l=e.pingCache;if(l===null){l=e.pingCache=new av;var u=new Set;l.set(t,u)}else u=l.get(t),u===void 0&&(u=new Set,l.set(t,u));u.has(a)||(Cr=!0,u.add(a),e=ov.bind(null,e,t,a),t.then(e,e))}function ov(e,t,a){var l=e.pingCache;l!==null&&l.delete(t),e.pingedLanes|=e.suspendedLanes&a,e.warmLanes&=~a,me===e&&(I&a)===a&&(De===4||De===3&&(I&62914560)===I&&300>ht()-lu?(le&2)===0&&$n(e,0):Zr|=a,Qn===I&&(Qn=0)),$t(e)}function nm(e,t){t===0&&(t=Fc()),e=Wa(e,t),e!==null&&(cl(e,t),$t(e))}function rv(e){var t=e.memoizedState,a=0;t!==null&&(a=t.retryLane),nm(e,a)}function cv(e,t){var a=0;switch(e.tag){case 31:case 13:var l=e.stateNode,u=e.memoizedState;u!==null&&(a=u.retryLane);break;case 19:l=e.stateNode;break;case 22:l=e.stateNode._retryCache;break;default:throw Error(c(314))}l!==null&&l.delete(t),nm(e,a)}function sv(e,t){return eo(e,t)}var fu=null,Fn=null,Gr=!1,du=!1,Yr=!1,Ra=0;function $t(e){e!==Fn&&e.next===null&&(Fn===null?fu=Fn=e:Fn=Fn.next=e),du=!0,Gr||(Gr=!0,dv())}function Gl(e,t){if(!Yr&&du){Yr=!0;do for(var a=!1,l=fu;l!==null;){if(e!==0){var u=l.pendingLanes;if(u===0)var r=0;else{var f=l.suspendedLanes,m=l.pingedLanes;r=(1<<31-vt(42|e)+1)-1,r&=u&~(f&~m),r=r&201326741?r&201326741|1:r?r|2:0}r!==0&&(a=!0,om(l,r))}else r=I,r=vi(l,l===me?r:0,l.cancelPendingCommit!==null||l.timeoutHandle!==-1),(r&3)===0||rl(l,r)||(a=!0,om(l,r));l=l.next}while(a);Yr=!1}}function fv(){lm()}function lm(){du=Gr=!1;var e=0;Ra!==0&&zv()&&(e=Ra);for(var t=ht(),a=null,l=fu;l!==null;){var u=l.next,r=im(l,t);r===0?(l.next=null,a===null?fu=u:a.next=u,u===null&&(Fn=a)):(a=l,(e!==0||(r&3)!==0)&&(du=!0)),l=u}ke!==0&&ke!==5||Gl(e),Ra!==0&&(Ra=0)}function im(e,t){for(var a=e.suspendedLanes,l=e.pingedLanes,u=e.expirationTimes,r=e.pendingLanes&-62914561;0<r;){var f=31-vt(r),m=1<<f,v=u[f];v===-1?((m&a)===0||(m&l)!==0)&&(u[f]=L0(m,t)):v<=t&&(e.expiredLanes|=m),r&=~m}if(t=me,a=I,a=vi(e,e===t?a:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),l=e.callbackNode,a===0||e===t&&(ue===2||ue===9)||e.cancelPendingCommit!==null)return l!==null&&l!==null&&to(l),e.callbackNode=null,e.callbackPriority=0;if((a&3)===0||rl(e,a)){if(t=a&-a,t===e.callbackPriority)return t;switch(l!==null&&to(l),lo(a)){case 2:case 8:a=$c;break;case 32:a=di;break;case 268435456:a=Kc;break;default:a=di}return l=um.bind(null,e),a=eo(a,l),e.callbackPriority=t,e.callbackNode=a,t}return l!==null&&l!==null&&to(l),e.callbackPriority=2,e.callbackNode=null,2}function um(e,t){if(ke!==0&&ke!==5)return e.callbackNode=null,e.callbackPriority=0,null;var a=e.callbackNode;if(su()&&e.callbackNode!==a)return null;var l=I;return l=vi(e,e===me?l:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),l===0?null:(kd(e,l,t),im(e,ht()),e.callbackNode!=null&&e.callbackNode===a?um.bind(null,e):null)}function om(e,t){if(su())return null;kd(e,t,!0)}function dv(){xv(function(){(le&6)!==0?eo(Jc,fv):lm()})}function Xr(){if(Ra===0){var e=Zn;e===0&&(e=mi,mi<<=1,(mi&261888)===0&&(mi=256)),Ra=e}return Ra}function rm(e){return e==null||typeof e=="symbol"||typeof e=="boolean"?null:typeof e=="function"?e:_i(""+e)}function cm(e,t){var a=t.ownerDocument.createElement("input");return a.name=t.name,a.value=t.value,e.id&&a.setAttribute("form",e.id),t.parentNode.insertBefore(a,t),e=new FormData(e),a.parentNode.removeChild(a),e}function mv(e,t,a,l,u){if(t==="submit"&&a&&a.stateNode===u){var r=rm((u[nt]||null).action),f=l.submitter;f&&(t=(t=f[nt]||null)?rm(t.formAction):f.getAttribute("formAction"),t!==null&&(r=t,f=null));var m=new xi("action","action",null,l,u);e.push({event:m,listeners:[{instance:null,listener:function(){if(l.defaultPrevented){if(Ra!==0){var v=f?cm(u,f):new FormData(u);fr(a,{pending:!0,data:v,method:u.method,action:r},null,v)}}else typeof r=="function"&&(m.preventDefault(),v=f?cm(u,f):new FormData(u),fr(a,{pending:!0,data:v,method:u.method,action:r},r,v))},currentTarget:u}]})}}for(var Qr=0;Qr<No.length;Qr++){var Jr=No[Qr],hv=Jr.toLowerCase(),pv=Jr[0].toUpperCase()+Jr.slice(1);qt(hv,"on"+pv)}qt(qs,"onAnimationEnd"),qt(Hs,"onAnimationIteration"),qt(ks,"onAnimationStart"),qt("dblclick","onDoubleClick"),qt("focusin","onFocus"),qt("focusout","onBlur"),qt(Mp,"onTransitionRun"),qt(wp,"onTransitionStart"),qt(Up,"onTransitionCancel"),qt(Vs,"onTransitionEnd"),Sn("onMouseEnter",["mouseout","mouseover"]),Sn("onMouseLeave",["mouseout","mouseover"]),Sn("onPointerEnter",["pointerout","pointerover"]),Sn("onPointerLeave",["pointerout","pointerover"]),Ja("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),Ja("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),Ja("onBeforeInput",["compositionend","keypress","textInput","paste"]),Ja("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),Ja("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),Ja("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Yl="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(" "),vv=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(Yl));function sm(e,t){t=(t&4)!==0;for(var a=0;a<e.length;a++){var l=e[a],u=l.event;l=l.listeners;e:{var r=void 0;if(t)for(var f=l.length-1;0<=f;f--){var m=l[f],v=m.instance,E=m.currentTarget;if(m=m.listener,v!==r&&u.isPropagationStopped())break e;r=m,u.currentTarget=E;try{r(u)}catch(N){Oi(N)}u.currentTarget=null,r=v}else for(f=0;f<l.length;f++){if(m=l[f],v=m.instance,E=m.currentTarget,m=m.listener,v!==r&&u.isPropagationStopped())break e;r=m,u.currentTarget=E;try{r(u)}catch(N){Oi(N)}u.currentTarget=null,r=v}}}}function F(e,t){var a=t[io];a===void 0&&(a=t[io]=new Set);var l=e+"__bubble";a.has(l)||(fm(t,e,2,!1),a.add(l))}function $r(e,t,a){var l=0;t&&(l|=4),fm(a,e,l,t)}var mu="_reactListening"+Math.random().toString(36).slice(2);function Kr(e){if(!e[mu]){e[mu]=!0,ns.forEach(function(a){a!=="selectionchange"&&(vv.has(a)||$r(a,!1,e),$r(a,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[mu]||(t[mu]=!0,$r("selectionchange",!1,t))}}function fm(e,t,a,l){switch(Hm(t)){case 2:var u=Yv;break;case 8:u=Xv;break;default:u=sc}a=u.bind(null,t,a,e),u=void 0,!po||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(u=!0),l?u!==void 0?e.addEventListener(t,a,{capture:!0,passive:u}):e.addEventListener(t,a,!0):u!==void 0?e.addEventListener(t,a,{passive:u}):e.addEventListener(t,a,!1)}function Fr(e,t,a,l,u){var r=l;if((t&1)===0&&(t&2)===0&&l!==null)e:for(;;){if(l===null)return;var f=l.tag;if(f===3||f===4){var m=l.stateNode.containerInfo;if(m===u)break;if(f===4)for(f=l.return;f!==null;){var v=f.tag;if((v===3||v===4)&&f.stateNode.containerInfo===u)return;f=f.return}for(;m!==null;){if(f=yn(m),f===null)return;if(v=f.tag,v===5||v===6||v===26||v===27){l=r=f;continue e}m=m.parentNode}}l=l.return}ps(function(){var E=r,N=mo(a),w=[];e:{var x=Gs.get(e);if(x!==void 0){var T=xi,R=e;switch(e){case"keypress":if(zi(a)===0)break e;case"keydown":case"keyup":T=cp;break;case"focusin":R="focus",T=bo;break;case"focusout":R="blur",T=bo;break;case"beforeblur":case"afterblur":T=bo;break;case"click":if(a.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":T=ys;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":T=W0;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":T=dp;break;case qs:case Hs:case ks:T=ep;break;case Vs:T=hp;break;case"scroll":case"scrollend":T=K0;break;case"wheel":T=vp;break;case"copy":case"cut":case"paste":T=ap;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":T=_s;break;case"toggle":case"beforetoggle":T=yp}var k=(t&4)!==0,de=!k&&(e==="scroll"||e==="scrollend"),_=k?x!==null?x+"Capture":null:x;k=[];for(var b=E,z;b!==null;){var j=b;if(z=j.stateNode,j=j.tag,j!==5&&j!==26&&j!==27||z===null||_===null||(j=dl(b,_),j!=null&&k.push(Xl(b,j,z))),de)break;b=b.return}0<k.length&&(x=new T(x,R,null,a,N),w.push({event:x,listeners:k}))}}if((t&7)===0){e:{if(x=e==="mouseover"||e==="pointerover",T=e==="mouseout"||e==="pointerout",x&&a!==fo&&(R=a.relatedTarget||a.fromElement)&&(yn(R)||R[gn]))break e;if((T||x)&&(x=N.window===N?N:(x=N.ownerDocument)?x.defaultView||x.parentWindow:window,T?(R=a.relatedTarget||a.toElement,T=E,R=R?yn(R):null,R!==null&&(de=d(R),k=R.tag,R!==de||k!==5&&k!==27&&k!==6)&&(R=null)):(T=null,R=E),T!==R)){if(k=ys,j="onMouseLeave",_="onMouseEnter",b="mouse",(e==="pointerout"||e==="pointerover")&&(k=_s,j="onPointerLeave",_="onPointerEnter",b="pointer"),de=T==null?x:fl(T),z=R==null?x:fl(R),x=new k(j,b+"leave",T,a,N),x.target=de,x.relatedTarget=z,j=null,yn(N)===E&&(k=new k(_,b+"enter",R,a,N),k.target=z,k.relatedTarget=de,j=k),de=j,T&&R)t:{for(k=gv,_=T,b=R,z=0,j=_;j;j=k(j))z++;j=0;for(var H=b;H;H=k(H))j++;for(;0<z-j;)_=k(_),z--;for(;0<j-z;)b=k(b),j--;for(;z--;){if(_===b||b!==null&&_===b.alternate){k=_;break t}_=k(_),b=k(b)}k=null}else k=null;T!==null&&dm(w,x,T,k,!1),R!==null&&de!==null&&dm(w,de,R,k,!0)}}e:{if(x=E?fl(E):window,T=x.nodeName&&x.nodeName.toLowerCase(),T==="select"||T==="input"&&x.type==="file")var ae=Ns;else if(As(x))if(js)ae=Np;else{ae=Ap;var B=Tp}else T=x.nodeName,!T||T.toLowerCase()!=="input"||x.type!=="checkbox"&&x.type!=="radio"?E&&so(E.elementType)&&(ae=Ns):ae=Op;if(ae&&(ae=ae(e,E))){Os(w,ae,a,N);break e}B&&B(e,x,E),e==="focusout"&&E&&x.type==="number"&&E.memoizedProps.value!=null&&co(x,"number",x.value)}switch(B=E?fl(E):window,e){case"focusin":(As(B)||B.contentEditable==="true")&&(On=B,To=E,_l=null);break;case"focusout":_l=To=On=null;break;case"mousedown":Ao=!0;break;case"contextmenu":case"mouseup":case"dragend":Ao=!1,Bs(w,a,N);break;case"selectionchange":if(Dp)break;case"keydown":case"keyup":Bs(w,a,N)}var $;if(So)e:{switch(e){case"compositionstart":var P="onCompositionStart";break e;case"compositionend":P="onCompositionEnd";break e;case"compositionupdate":P="onCompositionUpdate";break e}P=void 0}else An?xs(e,a)&&(P="onCompositionEnd"):e==="keydown"&&a.keyCode===229&&(P="onCompositionStart");P&&(Ss&&a.locale!=="ko"&&(An||P!=="onCompositionStart"?P==="onCompositionEnd"&&An&&($=vs()):(_a=N,vo="value"in _a?_a.value:_a.textContent,An=!0)),B=hu(E,P),0<B.length&&(P=new bs(P,e,null,a,N),w.push({event:P,listeners:B}),$?P.data=$:($=Ts(a),$!==null&&(P.data=$)))),($=_p?Sp(e,a):zp(e,a))&&(P=hu(E,"onBeforeInput"),0<P.length&&(B=new bs("onBeforeInput","beforeinput",null,a,N),w.push({event:B,listeners:P}),B.data=$)),mv(w,e,E,a,N)}sm(w,t)})}function Xl(e,t,a){return{instance:e,listener:t,currentTarget:a}}function hu(e,t){for(var a=t+"Capture",l=[];e!==null;){var u=e,r=u.stateNode;if(u=u.tag,u!==5&&u!==26&&u!==27||r===null||(u=dl(e,a),u!=null&&l.unshift(Xl(e,u,r)),u=dl(e,t),u!=null&&l.push(Xl(e,u,r))),e.tag===3)return l;e=e.return}return[]}function gv(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function dm(e,t,a,l,u){for(var r=t._reactName,f=[];a!==null&&a!==l;){var m=a,v=m.alternate,E=m.stateNode;if(m=m.tag,v!==null&&v===l)break;m!==5&&m!==26&&m!==27||E===null||(v=E,u?(E=dl(a,r),E!=null&&f.unshift(Xl(a,E,v))):u||(E=dl(a,r),E!=null&&f.pu
vendor: 5,225 bytes, lines 33-34
33sh(Xl(a,E,v)))),a=a.return}f.length!==0&&e.push({event:t,listeners:f})}var yv=/\r\n?/g,bv=/\u0000|\uFFFD/g;function mm(e){return(typeof e=="string"?e:""+e).replace(yv,`
34`).replace(bv,"")}function hm(e,t){return t=mm(t),mm(e)===t}function fe(e,t,a,l,u,r){switch(a){case"children":typeof l=="string"?t==="body"||t==="textarea"&&l===""||En(e,l):(typeof l=="number"||typeof l=="bigint")&&t!=="body"&&En(e,""+l);break;case"className":yi(e,"class",l);break;case"tabIndex":yi(e,"tabindex",l);break;case"dir":case"role":case"viewBox":case"width":case"height":yi(e,a,l);break;case"style":ms(e,l,r);break;case"data":if(t!=="object"){yi(e,"data",l);break}case"src":case"href":if(l===""&&(t!=="a"||a!=="href")){e.removeAttribute(a);break}if(l==null||typeof l=="function"||typeof l=="symbol"||typeof l=="boolean"){e.removeAttribute(a);break}l=_i(""+l),e.setAttribute(a,l);break;case"action":case"formAction":if(typeof l=="function"){e.setAttribute(a,"javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')");break}else typeof r=="function"&&(a==="formAction"?(t!=="input"&&fe(e,t,"name",u.name,u,null),fe(e,t,"formEncType",u.formEncType,u,null),fe(e,t,"formMethod",u.formMethod,u,null),fe(e,t,"formTarget",u.formTarget,u,null)):(fe(e,t,"encType",u.encType,u,null),fe(e,t,"method",u.method,u,null),fe(e,t,"target",u.target,u,null)));if(l==null||typeof l=="symbol"||typeof l=="boolean"){e.removeAttribute(a);break}l=_i(""+l),e.setAttribute(a,l);break;case"onClick":l!=null&&(e.onclick=Wt);break;case"onScroll":l!=null&&F("scroll",e);break;case"onScrollEnd":l!=null&&F("scrollend",e);break;case"dangerouslySetInnerHTML":if(l!=null){if(typeof l!="object"||!("__html"in l))throw Error(c(61));if(a=l.__html,a!=null){if(u.children!=null)throw Error(c(60));e.innerHTML=a}}break;case"multiple":e.multiple=l&&typeof l!="function"&&typeof l!="symbol";break;case"muted":e.muted=l&&typeof l!="function"&&typeof l!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(l==null||typeof l=="function"||typeof l=="boolean"||typeof l=="symbol"){e.removeAttribute("xlink:href");break}a=_i(""+l),e.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",a);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":l!=null&&typeof l!="function"&&typeof l!="symbol"?e.setAttribute(a,""+l):e.removeAttribute(a);break;case"inert":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":l&&typeof l!="function"&&typeof l!="symbol"?e.setAttribute(a,""):e.removeAttribute(a);break;case"capture":case"download":l===!0?e.setAttribute(a,""):l!==!1&&l!=null&&typeof l!="function"&&typeof l!="symbol"?e.setAttribute(a,l):e.removeAttribute(a);break;case"cols":case"rows":case"size":case"span":l!=null&&typeof l!="function"&&typeof l!="symbol"&&!isNaN(l)&&1<=l?e.setAttribute(a,l):e.removeAttribute(a);break;case"rowSpan":case"start":l==null||typeof l=="function"||typeof l=="symbol"||isNaN(l)?e.removeAttribute(a):e.setAttribute(a,l);break;case"popover":F("beforetoggle",e),F("toggle",e),gi(e,"popover",l);break;case"xlinkActuate":Ft(e,"http://www.w3.org/1999/xlink","xlink:actuate",l);break;case"xlinkArcrole":Ft(e,"http://www.w3.org/1999/xlink","xlink:arcrole",l);break;case"xlinkRole":Ft(e,"http://www.w3.org/1999/xlink","xlink:role",l);break;case"xlinkShow":Ft(e,"http://www.w3.org/1999/xlink","xlink:show",l);break;case"xlinkTitle":Ft(e,"http://www.w3.org/1999/xlink","xlink:title",l);break;case"xlinkType":Ft(e,"http://www.w3.org/1999/xlink","xlink:type",l);break;case"xmlBase":Ft(e,"http://www.w3.org/XML/1998/namespace","xml:base",l);break;case"xmlLang":Ft(e,"http://www.w3.org/XML/1998/namespace","xml:lang",l);break;case"xmlSpace":Ft(e,"http://www.w3.org/XML/1998/namespace","xml:space",l);break;case"is":gi(e,"is",l);break;case"innerText":case"textContent":break;default:(!(2<a.length)||a[0]!=="o"&&a[0]!=="O"||a[1]!=="n"&&a[1]!=="N")&&(a=J0.get(a)||a,gi(e,a,l))}}function Wr(e,t,a,l,u,r){switch(a){case"style":ms(e,l,r);break;case"dangerouslySetInnerHTML":if(l!=null){if(typeof l!="object"||!("__html"in l))throw Error(c(61));if(a=l.__html,a!=null){if(u.children!=null)throw Error(c(60));e.innerHTML=a}}break;case"children":typeof l=="string"?En(e,l):(typeof l=="number"||typeof l=="bigint")&&En(e,""+l);break;case"onScroll":l!=null&&F("scroll",e);break;case"onScrollEnd":l!=null&&F("scrollend",e);break;case"onClick":l!=null&&(e.onclick=Wt);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;
vendor: 6,333 bytes, line 34
34default:if(!ls.hasOwnProperty(a))e:{if(a[0]==="o"&&a[1]==="n"&&(u=a.endsWith("Capture"),t=a.slice(2,u?a.length-7:void 0),r=e[nt]||null,r=r!=null?r[a]:null,typeof r=="function"&&e.removeEventListener(t,r,u),typeof l=="function")){typeof r!="function"&&r!==null&&(a in e?e[a]=null:e.hasAttribute(a)&&e.removeAttribute(a)),e.addEventListener(t,l,u);break e}a in e?e[a]=l:l===!0?e.setAttribute(a,""):gi(e,a,l)}}}function We(e,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",e),F("load",e);var l=!1,u=!1,r;for(r in a)if(a.hasOwnProperty(r)){var f=a[r];if(f!=null)switch(r){case"src":l=!0;break;case"srcSet":u=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(c(137,t));default:fe(e,t,r,f,a,null)}}u&&fe(e,t,"srcSet",a.srcSet,a,null),l&&fe(e,t,"src",a.src,a,null);return;case"input":F("invalid",e);var m=r=f=u=null,v=null,E=null;for(l in a)if(a.hasOwnProperty(l)){var N=a[l];if(N!=null)switch(l){case"name":u=N;break;case"type":f=N;break;case"checked":v=N;break;case"defaultChecked":E=N;break;case"value":r=N;break;case"defaultValue":m=N;break;case"children":case"dangerouslySetInnerHTML":if(N!=null)throw Error(c(137,t));break;default:fe(e,t,l,N,a,null)}}cs(e,r,m,v,E,f,u,!1);return;case"select":F("invalid",e),l=f=r=null;for(u in a)if(a.hasOwnProperty(u)&&(m=a[u],m!=null))switch(u){case"value":r=m;break;case"defaultValue":f=m;break;case"multiple":l=m;default:fe(e,t,u,m,a,null)}t=r,a=f,e.multiple=!!l,t!=null?zn(e,!!l,t,!1):a!=null&&zn(e,!!l,a,!0);return;case"textarea":F("invalid",e),r=u=l=null;for(f in a)if(a.hasOwnProperty(f)&&(m=a[f],m!=null))switch(f){case"value":l=m;break;case"defaultValue":u=m;break;case"children":r=m;break;case"dangerouslySetInnerHTML":if(m!=null)throw Error(c(91));break;default:fe(e,t,f,m,a,null)}fs(e,l,u,r);return;case"option":for(v in a)if(a.hasOwnProperty(v)&&(l=a[v],l!=null))switch(v){case"selected":e.selected=l&&typeof l!="function"&&typeof l!="symbol";break;default:fe(e,t,v,l,a,null)}return;case"dialog":F("beforetoggle",e),F("toggle",e),F("cancel",e),F("close",e);break;case"iframe":case"object":F("load",e);break;case"video":case"audio":for(l=0;l<Yl.length;l++)F(Yl[l],e);break;case"image":F("error",e),F("load",e);break;case"details":F("toggle",e);break;case"embed":case"source":case"link":F("error",e),F("load",e);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(E in a)if(a.hasOwnProperty(E)&&(l=a[E],l!=null))switch(E){case"children":case"dangerouslySetInnerHTML":throw Error(c(137,t));default:fe(e,t,E,l,a,null)}return;default:if(so(t)){for(N in a)a.hasOwnProperty(N)&&(l=a[N],l!==void 0&&Wr(e,t,N,l,a,void 0));return}}for(m in a)a.hasOwnProperty(m)&&(l=a[m],l!=null&&fe(e,t,m,l,a,null))}function _v(e,t,a,l){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var u=null,r=null,f=null,m=null,v=null,E=null,N=null;for(T in a){var w=a[T];if(a.hasOwnProperty(T)&&w!=null)switch(T){case"checked":break;case"value":break;case"defaultValue":v=w;default:l.hasOwnProperty(T)||fe(e,t,T,null,l,w)}}for(var x in l){var T=l[x];if(w=a[x],l.hasOwnProperty(x)&&(T!=null||w!=null))switch(x){case"type":r=T;break;case"name":u=T;break;case"checked":E=T;break;case"defaultChecked":N=T;break;case"value":f=T;break;case"defaultValue":m=T;break;case"children":case"dangerouslySetInnerHTML":if(T!=null)throw Error(c(137,t));break;default:T!==w&&fe(e,t,x,T,l,w)}}ro(e,f,m,v,E,N,r,u);return;case"select":T=f=m=x=null;for(r in a)if(v=a[r],a.hasOwnProperty(r)&&v!=null)switch(r){case"value":break;case"multiple":T=v;default:l.hasOwnProperty(r)||fe(e,t,r,null,l,v)}for(u in l)if(r=l[u],v=a[u],l.hasOwnProperty(u)&&(r!=null||v!=null))switch(u){case"value":x=r;break;case"defaultValue":m=r;break;case"multiple":f=r;default:r!==v&&fe(e,t,u,r,l,v)}t=m,a=f,l=T,x!=null?zn(e,!!a,x,!1):!!l!=!!a&&(t!=null?zn(e,!!a,t,!0):zn(e,!!a,a?[]:"",!1));return;case"textarea":T=x=null;for(m in a)if(u=a[m],a.hasOwnProperty(m)&&u!=null&&!l.hasOwnProperty(m))switch(m){case"value":break;case"children":break;default:fe(e,t,m,null,l,u)}for(f in l)if(u=l[f],r=a[f],l.hasOwnProperty(f)&&(u!=null||r!=null))switch(f){case"value":x=u;break;case"defaultValue":T=u;break;case"children":break;case"dangerouslySetInnerHTML":if(u!=null)throw Error(c(91));break;default:u!==r&&fe(e,t,f,u,l,r)}ss(e,x,T);return;case"option":for(var R in a)if(x=a[R],a.hasOwnProperty(R)&&x!=null&&!l.hasOwnProperty(R))switch(R){case"selected":e.selected=!1;break;default:fe(e,t,R,null,l,x)}for(v in l)if(x=l[v],T=a[v],l.hasOwnProperty(v)&&x!==T&&(x!=null||T!=null))switch(v){case"selected":e.selected=x&&typeof x!="function"&&typeof x!="symbol";break;default:fe(e,t,v,x,l,T)}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 k in a)x=a[k],a.hasOwnProperty(k)&&x!=null&&!l.hasOwnProperty(k)&&fe(e,t,k,null,l,x);for(E in l)if(x=l[E],T=a[E],l.hasOwnProperty(E)&&x!==T&&(x!=null||T!=null))switch(E){case"children":case"dangerouslySetInnerHTML":if(x!=null)throw Error(c(137,t));break;default:fe(e,t,E,x,l,T)}return;default:if(so(t)){for(var de in a)x=a[de],a.hasOwnProperty(de)&&x!==void 0&&!l.hasOwnProperty(de)&&Wr(e,t,de,void 0,l,x);for(N in l)x=l[N],T=a[N],!l.hasOwnProperty(N)||x===T||x===void 0&&T===void 0||Wr(e,t,N,x,l,T);return}}for(var _ in a)x=a[_],a.hasOwnProperty(_)&&x!=null&&!l.hasOwnProperty(_)&&fe(e,t,_,null,l,x);for(w in l)x=l[w],T=a[w],!l.hasOwnProperty(w)||x===T||x==null&&T==null||fe(e,t,w,x,l,T)}function pm(e){switch(e){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function Sv(){if(typeof performance.getEntriesByType=="function"){for(var e=0,t=0,a=performance.getEntriesByType("resource"),l=0;l<a.length;l++){var u=a[l],r=u.transferSize,f=u.initiatorType,m=u.duration;if(r&&m&&pm(f)){for(f=0,m=u.responseEnd,l+=1;l<a.length;l++){var v=a[l],E=v.startTime;if(E>m)break;var N=v.transferSize,w=v.initiatorType;N&&pm(w)&&(v=v.responseEnd,f+=N*(v<m?1:(m-E)/(v-E)))}if(--l,t+=8*(r+f)/(u.duration/1e3),e++,10<e)break}}if(0<e)return t/e/1e6}return navigator.connection&&(e=navigator.connection.downlink,typeof e=="number")?e:5}var Ir=null,Pr=null;
vendor: 13,449 bytes, line 34
34function pu(e){return e.nodeType===9?e:e.ownerDocument}function vm(e){switch(e){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function gm(e,t){if(e===0)switch(t){case"svg":return 1;case"math":return 2;default:return 0}return e===1&&t==="foreignObject"?0:e}function ec(e,t){return e==="textarea"||e==="noscript"||typeof t.children=="string"||typeof t.children=="number"||typeof t.children=="bigint"||typeof t.dangerouslySetInnerHTML=="object"&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var tc=null;function zv(){var e=window.event;return e&&e.type==="popstate"?e===tc?!1:(tc=e,!0):(tc=null,!1)}var ym=typeof setTimeout=="function"?setTimeout:void 0,Ev=typeof clearTimeout=="function"?clearTimeout:void 0,bm=typeof Promise=="function"?Promise:void 0,xv=typeof queueMicrotask=="function"?queueMicrotask:typeof bm<"u"?function(e){return bm.resolve(null).then(e).catch(Tv)}:ym;function Tv(e){setTimeout(function(){throw e})}function Ba(e){return e==="head"}function _m(e,t){var a=t,l=0;do{var u=a.nextSibling;if(e.removeChild(a),u&&u.nodeType===8)if(a=u.data,a==="/$"||a==="/&"){if(l===0){e.removeChild(u),el(t);return}l--}else if(a==="$"||a==="$?"||a==="$~"||a==="$!"||a==="&")l++;else if(a==="html")Ql(e.ownerDocument.documentElement);else if(a==="head"){a=e.ownerDocument.head,Ql(a);for(var r=a.firstChild;r;){var f=r.nextSibling,m=r.nodeName;r[sl]||m==="SCRIPT"||m==="STYLE"||m==="LINK"&&r.rel.toLowerCase()==="stylesheet"||a.removeChild(r),r=f}}else a==="body"&&Ql(e.ownerDocument.body);a=u}while(a);el(t)}function Sm(e,t){var a=e;e=0;do{var l=a.nextSibling;if(a.nodeType===1?t?(a._stashedDisplay=a.style.display,a.style.display="none"):(a.style.display=a._stashedDisplay||"",a.getAttribute("style")===""&&a.removeAttribute("style")):a.nodeType===3&&(t?(a._stashedText=a.nodeValue,a.nodeValue=""):a.nodeValue=a._stashedText||""),l&&l.nodeType===8)if(a=l.data,a==="/$"){if(e===0)break;e--}else a!=="$"&&a!=="$?"&&a!=="$~"&&a!=="$!"||e++;a=l}while(a)}function ac(e){var t=e.firstChild;for(t&&t.nodeType===10&&(t=t.nextSibling);t;){var a=t;switch(t=t.nextSibling,a.nodeName){case"HTML":case"HEAD":case"BODY":ac(a),uo(a);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(a.rel.toLowerCase()==="stylesheet")continue}e.removeChild(a)}}function Av(e,t,a,l){for(;e.nodeType===1;){var u=a;if(e.nodeName.toLowerCase()!==t.toLowerCase()){if(!l&&(e.nodeName!=="INPUT"||e.type!=="hidden"))break}else if(l){if(!e[sl])switch(t){case"meta":if(!e.hasAttribute("itemprop"))break;return e;case"link":if(r=e.getAttribute("rel"),r==="stylesheet"&&e.hasAttribute("data-precedence"))break;if(r!==u.rel||e.getAttribute("href")!==(u.href==null||u.href===""?null:u.href)||e.getAttribute("crossorigin")!==(u.crossOrigin==null?null:u.crossOrigin)||e.getAttribute("title")!==(u.title==null?null:u.title))break;return e;case"style":if(e.hasAttribute("data-precedence"))break;return e;case"script":if(r=e.getAttribute("src"),(r!==(u.src==null?null:u.src)||e.getAttribute("type")!==(u.type==null?null:u.type)||e.getAttribute("crossorigin")!==(u.crossOrigin==null?null:u.crossOrigin))&&r&&e.hasAttribute("async")&&!e.hasAttribute("itemprop"))break;return e;default:return e}}else if(t==="input"&&e.type==="hidden"){var r=u.name==null?null:""+u.name;if(u.type==="hidden"&&e.getAttribute("name")===r)return e}else return e;if(e=Ct(e.nextSibling),e===null)break}return null}function Ov(e,t,a){if(t==="")return null;for(;e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!a||(e=Ct(e.nextSibling),e===null))return null;return e}function zm(e,t){for(;e.nodeType!==8;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!t||(e=Ct(e.nextSibling),e===null))return null;return e}function nc(e){return e.data==="$?"||e.data==="$~"}function lc(e){return e.data==="$!"||e.data==="$?"&&e.ownerDocument.readyState!=="loading"}function Nv(e,t){var a=e.ownerDocument;if(e.data==="$~")e._reactRetry=t;else if(e.data!=="$?"||a.readyState!=="loading")t();else{var l=function(){t(),a.removeEventListener("DOMContentLoaded",l)};a.addEventListener("DOMContentLoaded",l),e._reactRetry=l}}function Ct(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break;if(t===8){if(t=e.data,t==="$"||t==="$!"||t==="$?"||t==="$~"||t==="&"||t==="F!"||t==="F")break;if(t==="/$"||t==="/&")return null}}return e}var ic=null;function Em(e){e=e.nextSibling;for(var t=0;e;){if(e.nodeType===8){var a=e.data;if(a==="/$"||a==="/&"){if(t===0)return Ct(e.nextSibling);t--}else a!=="$"&&a!=="$!"&&a!=="$?"&&a!=="$~"&&a!=="&"||t++}e=e.nextSibling}return null}function xm(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var a=e.data;if(a==="$"||a==="$!"||a==="$?"||a==="$~"||a==="&"){if(t===0)return e;t--}else a!=="/$"&&a!=="/&"||t++}e=e.previousSibling}return null}function Tm(e,t,a){switch(t=pu(a),e){case"html":if(e=t.documentElement,!e)throw Error(c(452));return e;case"head":if(e=t.head,!e)throw Error(c(453));return e;case"body":if(e=t.body,!e)throw Error(c(454));return e;default:throw Error(c(451))}}function Ql(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);uo(e)}var Zt=new Map,Am=new Set;function vu(e){return typeof e.getRootNode=="function"?e.getRootNode():e.nodeType===9?e:e.ownerDocument}var ma=Z.d;Z.d={f:jv,r:Dv,D:Mv,C:wv,L:Uv,m:Cv,X:Rv,S:Zv,M:Bv};function jv(){var e=ma.f(),t=ou();return e||t}function Dv(e){var t=bn(e);t!==null&&t.tag===5&&t.type==="form"?Gf(t):ma.r(e)}var Wn=typeof document>"u"?null:document;function Om(e,t,a){var l=Wn;if(l&&typeof t=="string"&&t){var u=Ot(t);u='link[rel="'+e+'"][href="'+u+'"]',typeof a=="string"&&(u+='[crossorigin="'+a+'"]'),Am.has(u)||(Am.add(u),e={rel:e,crossOrigin:a,href:t},l.querySelector(u)===null&&(t=l.createElement("link"),We(t,"link",e),Ye(t),l.head.appendChild(t)))}}function Mv(e){ma.D(e),Om("dns-prefetch",e,null)}function wv(e,t){ma.C(e,t),Om("preconnect",e,t)}function Uv(e,t,a){ma.L(e,t,a);var l=Wn;if(l&&e&&t){var u='link[rel="preload"][as="'+Ot(t)+'"]';t==="image"&&a&&a.imageSrcSet?(u+='[imagesrcset="'+Ot(a.imageSrcSet)+'"]',typeof a.imageSizes=="string"&&(u+='[imagesizes="'+Ot(a.imageSizes)+'"]')):u+='[href="'+Ot(e)+'"]';var r=u;switch(t){case"style":r=In(e);break;case"script":r=Pn(e)}Zt.has(r)||(e=O({rel:"preload",href:t==="image"&&a&&a.imageSrcSet?void 0:e,as:t},a),Zt.set(r,e),l.querySelector(u)!==null||t==="style"&&l.querySelector(Jl(r))||t==="script"&&l.querySelector($l(r))||(t=l.createElement("link"),We(t,"link",e),Ye(t),l.head.appendChild(t)))}}function Cv(e,t){ma.m(e,t);var a=Wn;if(a&&e){var l=t&&typeof t.as=="string"?t.as:"script",u='link[rel="modulepreload"][as="'+Ot(l)+'"][href="'+Ot(e)+'"]',r=u;switch(l){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":r=Pn(e)}if(!Zt.has(r)&&(e=O({rel:"modulepreload",href:e},t),Zt.set(r,e),a.querySelector(u)===null)){switch(l){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(a.querySelector($l(r)))return}l=a.createElement("link"),We(l,"link",e),Ye(l),a.head.appendChild(l)}}}function Zv(e,t,a){ma.S(e,t,a);var l=Wn;if(l&&e){var u=_n(l).hoistableStyles,r=In(e);t=t||"default";var f=u.get(r);if(!f){var m={loading:0,preload:null};if(f=l.querySelector(Jl(r)))m.loading=5;else{e=O({rel:"stylesheet",href:e,"data-precedence":t},a),(a=Zt.get(r))&&uc(e,a);var v=f=l.createElement("link");Ye(v),We(v,"link",e),v._p=new Promise(function(E,N){v.onload=E,v.onerror=N}),v.addEventListener("load",function(){m.loading|=1}),v.addEventListener("error",function(){m.loading|=2}),m.loading|=4,gu(f,t,l)}f={type:"stylesheet",instance:f,count:1,state:m},u.set(r,f)}}}function Rv(e,t){ma.X(e,t);var a=Wn;if(a&&e){var l=_n(a).hoistableScripts,u=Pn(e),r=l.get(u);r||(r=a.querySelector($l(u)),r||(e=O({src:e,async:!0},t),(t=Zt.get(u))&&oc(e,t),r=a.createElement("script"),Ye(r),We(r,"link",e),a.head.appendChild(r)),r={type:"script",instance:r,count:1,state:null},l.set(u,r))}}function Bv(e,t){ma.M(e,t);var a=Wn;if(a&&e){var l=_n(a).hoistableScripts,u=Pn(e),r=l.get(u);r||(r=a.querySelector($l(u)),r||(e=O({src:e,async:!0,type:"module"},t),(t=Zt.get(u))&&oc(e,t),r=a.createElement("script"),Ye(r),We(r,"link",e),a.head.appendChild(r)),r={type:"script",instance:r,count:1,state:null},l.set(u,r))}}function Nm(e,t,a,l){var u=(u=ga.current)?vu(u):null;if(!u)throw Error(c(446));switch(e){case"meta":case"title":return null;case"style":return typeof a.precedence=="string"&&typeof a.href=="string"?(t=In(a.href),a=_n(u).hoistableStyles,l=a.get(t),l||(l={type:"style",instance:null,count:0,state:null},a.set(t,l)),l):{type:"void",instance:null,count:0,state:null};case"link":if(a.rel==="stylesheet"&&typeof a.href=="string"&&typeof a.precedence=="string"){e=In(a.href);var r=_n(u).hoistableStyles,f=r.get(e);if(f||(u=u.ownerDocument||u,f={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},r.set(e,f),(r=u.querySelector(Jl(e)))&&!r._p&&(f.instance=r,f.state.loading=5),Zt.has(e)||(a={rel:"preload",as:"style",href:a.href,crossOrigin:a.crossOrigin,integrity:a.integrity,media:a.media,hrefLang:a.hrefLang,referrerPolicy:a.referrerPolicy},Zt.set(e,a),r||Lv(u,e,a,f.state))),t&&l===null)throw Error(c(528,""));return f}if(t&&l!==null)throw Error(c(529,""));return null;case"script":return t=a.async,a=a.src,typeof a=="string"&&t&&typeof t!="function"&&typeof t!="symbol"?(t=Pn(a),a=_n(u).hoistableScripts,l=a.get(t),l||(l={type:"script",instance:null,count:0,state:null},a.set(t,l)),l):{type:"void",instance:null,count:0,state:null};default:throw Error(c(444,e))}}function In(e){return'href="'+Ot(e)+'"'}function Jl(e){return'link[rel="stylesheet"]['+e+"]"}function jm(e){return O({},e,{"data-precedence":e.precedence,precedence:null})}function Lv(e,t,a,l){e.querySelector('link[rel="preload"][as="style"]['+t+"]")?l.loading=1:(t=e.createElement("link"),l.preload=t,t.addEventListener("load",function(){return l.loading|=1}),t.addEventListener("error",function(){return l.loading|=2}),We(t,"link",a),Ye(t),e.head.appendChild(t))}function Pn(e){return'[src="'+Ot(e)+'"]'}function $l(e){return"script[async]"+e}function Dm(e,t,a){if(t.count++,t.instance===null)switch(t.type){case"style":var l=e.querySelector('style[data-href~="'+Ot(a.href)+'"]');if(l)return t.instance=l,Ye(l),l;var u=O({},a,{"data-href":a.href,"data-precedence":a.precedence,href:null,precedence:null});return l=(e.ownerDocument||e).createElement("style"),Ye(l),We(l,"style",u),gu(l,a.precedence,e),t.instance=l;case"stylesheet":u=In(a.href);var r=e.querySelector(Jl(u));if(r)return t.state.loading|=4,t.instance=r,Ye(r),r;l=jm(a),(u=Zt.get(u))&&uc(l,u),r=(e.ownerDocument||e).createElement("link"),Ye(r);var f=r;return f._p=new Promise(function(m,v){f.onload=m,f.onerror=v}),We(r,"link",l),t.state.loading|=4,gu(r,a.precedence,e),t.instance=r;case"script":return r=Pn(a.src),(u=e.querySelector($l(r)))?(t.instance=u,Ye(u),u):(l=a,(u=Zt.get(r))&&(l=O({},a),oc(l,u)),e=e.ownerDocument||e,u=e.createElement("script"),Ye(u),We(u,"link",l),e.head.appendChild(u),t.instance=u);case"void":return null;default:throw Error(c(443,t.type))}else t.type==="stylesheet"&&(t.state.loading&4)===0&&(l=t.instance,t.state.loading|=4,gu(l,a.precedence,e));return t.instance}function gu(e,t,a){for(var l=a.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),u=l.length?l[l.length-1]:null,r=u,f=0;f<l.length;f++){var m=l[f];if(m.dataset.precedence===t)r=m;else if(r!==u)break}r?r.parentNode.insertBefore(e,r.nextSibling):(t=a.nodeType===9?a.head:a,t.insertBefore(e,t.firstChild))}function uc(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.title==null&&(e.title=t.title)}function oc(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.integrity==null&&(e.integrity=t.integrity)}var yu=null;function Mm(e,t,a){if(yu===null){var l=new Map,u=yu=new Map;u.set(a,l)}else u=yu,l=u.get(a),l||(l=new Map,u.set(a,l));if(l.has(e))return l;for(l.set(e,null),a=a.getElementsByTagName(e),u=0;u<a.length;u++){var r=a[u];if(!(r[sl]||r[Je]||e==="link"&&r.getAttribute("rel")==="stylesheet")&&r.namespaceURI!=="http://www.w3.org/2000/svg"){var f=r.getAttribute(t)||"";f=e+f;var m=l.get(f);m?m.push(r):l.set(f,[r])}}return l}function wm(e,t,a){e=e.ownerDocument||e,e.head.insertBefore(a,t==="title"?e.querySelector("head > title"):null)}function qv(e,t,a){if(a===1||t.itemProp!=null)return!1;switch(e){case"meta":case"title":return!0;case"style":if(typeof t.precedence!="string"||typeof t.href!="string"||t.href==="")break;return!0;case"link":if(typeof t.rel!="string"||typeof t.href!="string"||t.href===""||t.onLoad||t.onError)break;switch(t.rel){case"stylesheet":return e=t.disabled,typeof t.precedence=="string"&&e==null;default:return!0}case"script":if(t.async&&typeof t.async!="function"&&typeof t.async!="symbol"&&!t.onLoad&&!t.onError&&t.src&&typeof t.src=="string")return!0}return!1}function Um(e){return!(e.type==="stylesheet"&&(e.state.loading&3)===0)}function Hv(e,t,a,l){if(a.type==="stylesheet"&&(typeof l.media!="string"||matchMedia(l.media).matches!==!1)&&(a.state.loading&4)===0){if(a.instance===null){var u=In(l.href),r=t.querySelector(Jl(u));if(r){t=r._p,t!==null&&typeof t=="object"&&typeof t.then=="function"&&(e.count++,e=bu.bind(e),t.then(e,e)),a.state.loading|=4,a.instance=r,Ye(r);return}
vendor: 11,090 bytes, line 34
34r=t.ownerDocument||t,l=jm(l),(u=Zt.get(u))&&uc(l,u),r=r.createElement("link"),Ye(r);var f=r;f._p=new Promise(function(m,v){f.onload=m,f.onerror=v}),We(r,"link",l),a.instance=r}e.stylesheets===null&&(e.stylesheets=new Map),e.stylesheets.set(a,t),(t=a.state.preload)&&(a.state.loading&3)===0&&(e.count++,a=bu.bind(e),t.addEventListener("load",a),t.addEventListener("error",a))}}var rc=0;function kv(e,t){return e.stylesheets&&e.count===0&&Su(e,e.stylesheets),0<e.count||0<e.imgCount?function(a){var l=setTimeout(function(){if(e.stylesheets&&Su(e,e.stylesheets),e.unsuspend){var r=e.unsuspend;e.unsuspend=null,r()}},6e4+t);0<e.imgBytes&&rc===0&&(rc=62500*Sv());var u=setTimeout(function(){if(e.waitingForImages=!1,e.count===0&&(e.stylesheets&&Su(e,e.stylesheets),e.unsuspend)){var r=e.unsuspend;e.unsuspend=null,r()}},(e.imgBytes>rc?50:800)+t);return e.unsuspend=a,function(){e.unsuspend=null,clearTimeout(l),clearTimeout(u)}}:null}function bu(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)Su(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var _u=null;function Su(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,_u=new Map,t.forEach(Vv,e),_u=null,bu.call(e))}function Vv(e,t){if(!(t.state.loading&4)){var a=_u.get(e);if(a)var l=a.get(null);else{a=new Map,_u.set(e,a);for(var u=e.querySelectorAll("link[data-precedence],style[data-precedence]"),r=0;r<u.length;r++){var f=u[r];(f.nodeName==="LINK"||f.getAttribute("media")!=="not all")&&(a.set(f.dataset.precedence,f),l=f)}l&&a.set(null,l)}u=t.instance,f=u.getAttribute("data-precedence"),r=a.get(f)||l,r===l&&a.set(null,u),a.set(f,u),this.count++,l=bu.bind(this),u.addEventListener("load",l),u.addEventListener("error",l),r?r.parentNode.insertBefore(u,r.nextSibling):(e=e.nodeType===9?e.head:e,e.insertBefore(u,e.firstChild)),t.state.loading|=4}}var Kl={$$typeof:Qe,Provider:null,Consumer:null,_currentValue:Y,_currentValue2:Y,_threadCount:0};function Gv(e,t,a,l,u,r,f,m,v){this.tag=1,this.containerInfo=e,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=ao(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=ao(0),this.hiddenUpdates=ao(null),this.identifierPrefix=l,this.onUncaughtError=u,this.onCaughtError=r,this.onRecoverableError=f,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=v,this.incompleteTransitions=new Map}function Cm(e,t,a,l,u,r,f,m,v,E,N,w){return e=new Gv(e,t,a,f,v,E,N,w,m),t=1,r===!0&&(t|=24),r=yt(3,null,null,t),e.current=r,r.stateNode=e,t=ko(),t.refCount++,e.pooledCache=t,t.refCount++,r.memoizedState={element:l,isDehydrated:a,cache:t},Xo(r),e}function Zm(e){return e?(e=Dn,e):Dn}function Rm(e,t,a,l,u,r){u=Zm(u),l.context===null?l.context=u:l.pendingContext=u,l=Aa(t),l.payload={element:a},r=r===void 0?null:r,r!==null&&(l.callback=r),a=Oa(e,l,t),a!==null&&(ct(a,e,t),Ol(a,e,t))}function Bm(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var a=e.retryLane;e.retryLane=a!==0&&a<t?a:t}}function cc(e,t){Bm(e,t),(e=e.alternate)&&Bm(e,t)}function Lm(e){if(e.tag===13||e.tag===31){var t=Wa(e,67108864);t!==null&&ct(t,e,67108864),cc(e,67108864)}}function qm(e){if(e.tag===13||e.tag===31){var t=Et();t=no(t);var a=Wa(e,t);a!==null&&ct(a,e,t),cc(e,t)}}var zu=!0;function Yv(e,t,a,l){var u=M.T;M.T=null;var r=Z.p;try{Z.p=2,sc(e,t,a,l)}finally{Z.p=r,M.T=u}}function Xv(e,t,a,l){var u=M.T;M.T=null;var r=Z.p;try{Z.p=8,sc(e,t,a,l)}finally{Z.p=r,M.T=u}}function sc(e,t,a,l){if(zu){var u=fc(l);if(u===null)Fr(e,t,l,Eu,a),km(e,l);else if(Jv(u,e,t,a,l))l.stopPropagation();else if(km(e,l),t&4&&-1<Qv.indexOf(e)){for(;u!==null;){var r=bn(u);if(r!==null)switch(r.tag){case 3:if(r=r.stateNode,r.current.memoizedState.isDehydrated){var f=Qa(r.pendingLanes);if(f!==0){var m=r;for(m.pendingLanes|=2,m.entangledLanes|=2;f;){var v=1<<31-vt(f);m.entanglements[1]|=v,f&=~v}$t(r),(le&6)===0&&(iu=ht()+500,Gl(0))}}break;case 31:case 13:m=Wa(r,2),m!==null&&ct(m,r,2),ou(),cc(r,2)}if(r=fc(l),r===null&&Fr(e,t,l,Eu,a),r===u)break;u=r}u!==null&&l.stopPropagation()}else Fr(e,t,l,null,a)}}function fc(e){return e=mo(e),dc(e)}var Eu=null;function dc(e){if(Eu=null,e=yn(e),e!==null){var t=d(e);if(t===null)e=null;else{var a=t.tag;if(a===13){if(e=h(t),e!==null)return e;e=null}else if(a===31){if(e=p(t),e!==null)return e;e=null}else if(a===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null)}}return Eu=e,null}function Hm(e){switch(e){case"beforetoggle":case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"toggle":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 2;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 8;case"message":switch(M0()){case Jc:return 2;case $c:return 8;case di:case w0:return 32;case Kc:return 268435456;default:return 32}default:return 32}}var mc=!1,La=null,qa=null,Ha=null,Fl=new Map,Wl=new Map,ka=[],Qv="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 km(e,t){switch(e){case"focusin":case"focusout":La=null;break;case"dragenter":case"dragleave":qa=null;break;case"mouseover":case"mouseout":Ha=null;break;case"pointerover":case"pointerout":Fl.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Wl.delete(t.pointerId)}}function Il(e,t,a,l,u,r){return e===null||e.nativeEvent!==r?(e={blockedOn:t,domEventName:a,eventSystemFlags:l,nativeEvent:r,targetContainers:[u]},t!==null&&(t=bn(t),t!==null&&Lm(t)),e):(e.eventSystemFlags|=l,t=e.targetContainers,u!==null&&t.indexOf(u)===-1&&t.push(u),e)}function Jv(e,t,a,l,u){switch(t){case"focusin":return La=Il(La,e,t,a,l,u),!0;case"dragenter":return qa=Il(qa,e,t,a,l,u),!0;case"mouseover":return Ha=Il(Ha,e,t,a,l,u),!0;case"pointerover":var r=u.pointerId;return Fl.set(r,Il(Fl.get(r)||null,e,t,a,l,u)),!0;case"gotpointercapture":return r=u.pointerId,Wl.set(r,Il(Wl.get(r)||null,e,t,a,l,u)),!0}return!1}function Vm(e){var t=yn(e.target);if(t!==null){var a=d(t);if(a!==null){if(t=a.tag,t===13){if(t=h(a),t!==null){e.blockedOn=t,ts(e.priority,function(){qm(a)});return}}else if(t===31){if(t=p(a),t!==null){e.blockedOn=t,ts(e.priority,function(){qm(a)});return}}else if(t===3&&a.stateNode.current.memoizedState.isDehydrated){e.blockedOn=a.tag===3?a.stateNode.containerInfo:null;return}}}e.blockedOn=null}function xu(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var a=fc(e.nativeEvent);if(a===null){a=e.nativeEvent;var l=new a.constructor(a.type,a);fo=l,a.target.dispatchEvent(l),fo=null}else return t=bn(a),t!==null&&Lm(t),e.blockedOn=a,!1;t.shift()}return!0}function Gm(e,t,a){xu(e)&&a.delete(t)}function $v(){mc=!1,La!==null&&xu(La)&&(La=null),qa!==null&&xu(qa)&&(qa=null),Ha!==null&&xu(Ha)&&(Ha=null),Fl.forEach(Gm),Wl.forEach(Gm)}function Tu(e,t){e.blockedOn===t&&(e.blockedOn=null,mc||(mc=!0,n.unstable_scheduleCallback(n.unstable_NormalPriority,$v)))}var Au=null;function Ym(e){Au!==e&&(Au=e,n.unstable_scheduleCallback(n.unstable_NormalPriority,function(){Au===e&&(Au=null);for(var t=0;t<e.length;t+=3){var a=e[t],l=e[t+1],u=e[t+2];if(typeof l!="function"){if(dc(l||a)===null)continue;break}var r=bn(a);r!==null&&(e.splice(t,3),t-=3,fr(r,{pending:!0,data:u,method:a.method,action:l},l,u))}}))}function el(e){function t(v){return Tu(v,e)}La!==null&&Tu(La,e),qa!==null&&Tu(qa,e),Ha!==null&&Tu(Ha,e),Fl.forEach(t),Wl.forEach(t);for(var a=0;a<ka.length;a++){var l=ka[a];l.blockedOn===e&&(l.blockedOn=null)}for(;0<ka.length&&(a=ka[0],a.blockedOn===null);)Vm(a),a.blockedOn===null&&ka.shift();if(a=(e.ownerDocument||e).$$reactFormReplay,a!=null)for(l=0;l<a.length;l+=3){var u=a[l],r=a[l+1],f=u[nt]||null;if(typeof r=="function")f||Ym(a);else if(f){var m=null;if(r&&r.hasAttribute("formAction")){if(u=r,f=r[nt]||null)m=f.formAction;else if(dc(u)!==null)continue}else m=f.action;typeof m=="function"?a[l+1]=m:(a.splice(l,3),l-=3),Ym(a)}}}function Xm(){function e(r){r.canIntercept&&r.info==="react-transition"&&r.intercept({handler:function(){return new Promise(function(f){return u=f})},focusReset:"manual",scroll:"manual"})}function t(){u!==null&&(u(),u=null),l||setTimeout(a,20)}function a(){if(!l&&!navigation.transition){var r=navigation.currentEntry;r&&r.url!=null&&navigation.navigate(r.url,{state:r.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var l=!1,u=null;return navigation.addEventListener("navigate",e),navigation.addEventListener("navigatesuccess",t),navigation.addEventListener("navigateerror",t),setTimeout(a,100),function(){l=!0,navigation.removeEventListener("navigate",e),navigation.removeEventListener("navigatesuccess",t),navigation.removeEventListener("navigateerror",t),u!==null&&(u(),u=null)}}}function hc(e){this._internalRoot=e}Ou.prototype.render=hc.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(c(409));var a=t.current,l=Et();Rm(a,l,e,t,null,null)},Ou.prototype.unmount=hc.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;Rm(e.current,2,null,e,null,null),ou(),t[gn]=null}};function Ou(e){this._internalRoot=e}Ou.prototype.unstable_scheduleHydration=function(e){if(e){var t=es();e={blockedOn:null,target:e,priority:t};for(var a=0;a<ka.length&&t!==0&&t<ka[a].priority;a++);ka.splice(a,0,e),a===0&&Vm(e)}};var Qm=i.version;if(Qm!=="19.2.3")throw Error(c(527,Qm,"19.2.3"));Z.findDOMNode=function(e){var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(c(188)):(e=Object.keys(e).join(","),Error(c(268,e)));return e=S(t),e=e!==null?A(e):null,e=e===null?null:e.stateNode,e};var Kv={bundleType:0,version:"19.2.3",rendererPackageName:"react-dom",currentDispatcherRef:M,reconcilerVersion:"19.2.3"};
vendor: 7,245 bytes, lines 34-99
34if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var Nu=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Nu.isDisabled&&Nu.supportsFiber)try{ol=Nu.inject(Kv),pt=Nu}catch{}}return ei.createRoot=function(e,t){if(!s(e))throw Error(c(299));var a=!1,l="",u=Pf,r=ed,f=td;return t!=null&&(t.unstable_strictMode===!0&&(a=!0),t.identifierPrefix!==void 0&&(l=t.identifierPrefix),t.onUncaughtError!==void 0&&(u=t.onUncaughtError),t.onCaughtError!==void 0&&(r=t.onCaughtError),t.onRecoverableError!==void 0&&(f=t.onRecoverableError)),t=Cm(e,1,!1,null,null,a,l,null,u,r,f,Xm),e[gn]=t.current,Kr(e),new hc(t)},ei.hydrateRoot=function(e,t,a){if(!s(e))throw Error(c(299));var l=!1,u="",r=Pf,f=ed,m=td,v=null;return a!=null&&(a.unstable_strictMode===!0&&(l=!0),a.identifierPrefix!==void 0&&(u=a.identifierPrefix),a.onUncaughtError!==void 0&&(r=a.onUncaughtError),a.onCaughtError!==void 0&&(f=a.onCaughtError),a.onRecoverableError!==void 0&&(m=a.onRecoverableError),a.formState!==void 0&&(v=a.formState)),t=Cm(e,1,!0,t,a??null,l,u,v,r,f,m,Xm),t.context=Zm(null),a=t.current,l=Et(),l=no(l),u=Aa(l),u.callback=null,Oa(a,u,l),a=l,t.current.lanes=a,cl(t,a),$t(t),e[gn]=t.current,Kr(e),new Ou(t)},ei.version="19.2.3",ei}var Im;function cg(){if(Im)return vc.exports;Im=1;function n(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(n)}catch(i){console.error(i)}}return n(),vc.exports=rg(),vc.exports}var sg=cg();const fg=Pv(sg),dg="modulepreload",mg=function(n){return"/"+n},Pm={},he=function(i,o,c){let s=Promise.resolve();if(o&&o.length>0){let h=function(S){return Promise.all(S.map(A=>Promise.resolve(A).then(O=>({status:"fulfilled",value:O}),O=>({status:"rejected",reason:O}))))};document.getElementsByTagName("link");const p=document.querySelector("meta[property=csp-nonce]"),y=(p==null?void 0:p.nonce)||(p==null?void 0:p.getAttribute("nonce"));s=h(o.map(S=>{if(S=mg(S),S in Pm)return;Pm[S]=!0;const A=S.endsWith(".css"),O=A?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${S}"]${O}`))return;const C=document.createElement("link");if(C.rel=A?"stylesheet":dg,A||(C.as="script"),C.crossOrigin="",C.href=S,y&&C.setAttribute("nonce",y),document.head.appendChild(C),A)return new Promise((L,X)=>{C.addEventListener("load",L),C.addEventListener("error",()=>X(new Error(`Unable to preload CSS for ${S}`)))})}))}function d(h){const p=new Event("vite:preloadError",{cancelable:!0});if(p.payload=h,window.dispatchEvent(p),!p.defaultPrevented)throw h}return s.then(h=>{for(const p of h||[])p.status==="rejected"&&d(p.reason);return i().catch(d)})};/**
35 * @license lucide-react v0.561.0 - ISC
36 *
37 * This source code is licensed under the ISC license.
38 * See the LICENSE file in the root directory of this source tree.
39 */const hg=n=>n.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),pg=n=>n.replace(/^([A-Z])|[\s-_]+(\w)/g,(i,o,c)=>c?c.toUpperCase():o.toLowerCase()),eh=n=>{const i=pg(n);return i.charAt(0).toUpperCase()+i.slice(1)},Uh=(...n)=>n.filter((i,o,c)=>!!i&&i.trim()!==""&&c.indexOf(i)===o).join(" ").trim(),vg=n=>{for(const i in n)if(i.startsWith("aria-")||i==="role"||i==="title")return!0};/**
40 * @license lucide-react v0.561.0 - ISC
41 *
42 * This source code is licensed under the ISC license.
43 * See the LICENSE file in the root directory of this source tree.
44 */var gg={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"};/**
45 * @license lucide-react v0.561.0 - ISC
46 *
47 * This source code is licensed under the ISC license.
48 * See the LICENSE file in the root directory of this source tree.
49 */const yg=Q.forwardRef(({color:n="currentColor",size:i=24,strokeWidth:o=2,absoluteStrokeWidth:c,className:s="",children:d,iconNode:h,...p},y)=>Q.createElement("svg",{ref:y,...gg,width:i,height:i,stroke:n,strokeWidth:c?Number(o)*24/Number(i):o,className:Uh("lucide",s),...!d&&!vg(p)&&{"aria-hidden":"true"},...p},[...h.map(([S,A])=>Q.createElement(S,A)),...Array.isArray(d)?d:[d]]));/**
50 * @license lucide-react v0.561.0 - ISC
51 *
52 * This source code is licensed under the ISC license.
53 * See the LICENSE file in the root directory of this source tree.
54 */const va=(n,i)=>{const o=Q.forwardRef(({className:c,...s},d)=>Q.createElement(yg,{ref:d,iconNode:i,className:Uh(`lucide-${hg(eh(n))}`,`lucide-${n}`,c),...s}));return o.displayName=eh(n),o};/**
55 * @license lucide-react v0.561.0 - ISC
56 *
57 * This source code is licensed under the ISC license.
58 * See the LICENSE file in the root directory of this source tree.
59 */const bg=[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"m12 5 7 7-7 7",key:"xquz4c"}]],Ch=va("arrow-right",bg);/**
60 * @license lucide-react v0.561.0 - ISC
61 *
62 * This source code is licensed under the ISC license.
63 * See the LICENSE file in the root directory of this source tree.
64 */const _g=[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]],Sg=va("check",_g);/**
65 * @license lucide-react v0.561.0 - ISC
66 *
67 * This source code is licensed under the ISC license.
68 * See the LICENSE file in the root directory of this source tree.
69 */const zg=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["line",{x1:"12",x2:"12",y1:"8",y2:"12",key:"1pkeuh"}],["line",{x1:"12",x2:"12.01",y1:"16",y2:"16",key:"4dfq90"}]],Eg=va("circle-alert",zg);/**
70 * @license lucide-react v0.561.0 - ISC
71 *
72 * This source code is licensed under the ISC license.
73 * See the LICENSE file in the root directory of this source tree.
74 */const xg=[["path",{d:"M21.801 10A10 10 0 1 1 17 3.335",key:"yps3ct"}],["path",{d:"m9 11 3 3L22 4",key:"1pflzl"}]],Tg=va("circle-check-big",xg);/**
75 * @license lucide-react v0.561.0 - ISC
76 *
77 * This source code is licensed under the ISC license.
78 * See the LICENSE file in the root directory of this source tree.
79 */const Ag=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 16v-4",key:"1dtifu"}],["path",{d:"M12 8h.01",key:"e9boi3"}]],Og=va("info",Ag);/**
80 * @license lucide-react v0.561.0 - ISC
81 *
82 * This source code is licensed under the ISC license.
83 * See the LICENSE file in the root directory of this source tree.
84 */const Ng=[["path",{d:"m16 17 5-5-5-5",key:"1bji2h"}],["path",{d:"M21 12H9",key:"dn1m92"}],["path",{d:"M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4",key:"1uf3rs"}]],th=va("log-out",Ng);/**
85 * @license lucide-react v0.561.0 - ISC
86 *
87 * This source code is licensed under the ISC license.
88 * See the LICENSE file in the root directory of this source tree.
89 */const jg=[["path",{d:"M4 5h16",key:"1tepv9"}],["path",{d:"M4 12h16",key:"1lakjw"}],["path",{d:"M4 19h16",key:"1djgab"}]],Dg=va("menu",jg);/**
90 * @license lucide-react v0.561.0 - ISC
91 *
92 * This source code is licensed under the ISC license.
93 * See the LICENSE file in the root directory of this source tree.
94 */const Mg=[["path",{d:"m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3",key:"wmoenq"}],["path",{d:"M12 9v4",key:"juzpu7"}],["path",{d:"M12 17h.01",key:"p32p05"}]],wg=va("triangle-alert",Mg);/**
95 * @license lucide-react v0.561.0 - ISC
96 *
97 * This source code is licensed under the ISC license.
98 * See the LICENSE file in the root directory of this source tree.
99 */const Ug=[["path",{d:"M18 6 6 18",key:"1bl5f8"}
99],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],ah=va("x",Ug),ni="flb_state_update",xc="flb_toast_event",st=[],Pe=[],Rt=[],ha=[],al=[],li=[],Vt=[],Bt=[];let Ve={isLoggedIn:!1,role:"viewer"},Cc=!0,Cg=!0,Zg=null;const bc=n=>{Cg=n},nh=n=>{Zg=n},Zu=n=>{Ve=n},_c=n=>{Cc=n};let Sc=!1;const W=()=>{typeof window>"u"||Sc||(Sc=!0,queueMicrotask(()=>{Sc=!1,window.dispatchEvent(new Event(ni))}))},U=(n,i="success")=>{typeof window<"u"&&window.dispatchEvent(new CustomEvent(xc,{detail:{message:n,type:i}}))},Zc=n=>typeof crypto<"u"&&crypto.randomUUID?`${n}-${crypto.randomUUID()}`:`${n}-${Date.now()}`,ce=(n,i)=>{al.unshift({id:Zc("log"),action:n,target:i,timestamp:new Date().toISOString(),user:Ve.displayName||"Editor"}),al.length>50&&al.pop(),Ve.isLoggedIn&&he(async()=>{const{persistLogEntry:o}=await Promise.resolve().then(()=>US);return{persistLogEntry:o}},void 0).then(({persistLogEntry:o})=>{o(n,i).catch(()=>{})})},Xu=()=>Ve.isLoggedIn&&Ve.role==="admin",Se=()=>Ve.isLoggedIn&&(Ve.role==="editor"||Ve.role==="admin"),VS=()=>{ce("Teste","Sistema Conectado"),W(),U("Supabase conectado!","info")},GS=n=>n.url,YS=()=>{U("Exportação desativada no modo Supabase.","info")},XS=n=>({success:!1,message:"Importação desativada."}),Rg="https://lhgzyrszzbxjjvnxfwzf.supabase.co",Bg="sb_publishable_5kxyqGvP9GV4e2BhvLwWVw_RraqN7Bt",V=ng(Rg,Bg);function D(n,i,o){function c(p,y){if(p._zod||Object.defineProperty(p,"_zod",{value:{def:y,constr:h,traits:new Set},enumerable:!1}),p._zod.traits.has(n))return;p._zod.traits.add(n),i(p,y);const S=h.prototype,A=Object.keys(S);for(let O=0;O<A.length;O++){const C=A[O];C in p||(p[C]=S[C].bind(p))}}const s=(o==null?void 0:o.Parent)??Object;class d extends s{}Object.defineProperty(d,"name",{value:n});function h(p){var y;const S=o!=null&&o.Parent?new d:this;c(S,p),(y=S._zod).deferred??(y.deferred=[]);for(const A of S._zod.deferred)A();return S}return Object.defineProperty(h,"init",{value:c}),Object.defineProperty(h,Symbol.hasInstance,{value:p=>{var y,S;return o!=null&&o.Parent&&p instanceof o.Parent?!0:(S=(y=p==null?void 0:p._zod)==null?void 0:y.traits)==null?void 0:S.has(n)}}),Object.defineProperty(h,"name",{value:n}),h}class nl extends Error{constructor(){super("Encountered Promise during synchronous parse. Use .parseAsync() instead.")}}class Zh extends Error{constructor(i){super(`Encountered unidirectional transform during encode: ${i}`),this.name="ZodEncodeError"}}const Rh={};function fn(n){return Rh}function Bh(n){const i=Object.values(n).filter(c=>typeof c=="number");return Object.entries(n).filter(([c,s])=>i.indexOf(+c)===-1).map(([c,s])=>s)}function Tc(n,i){return typeof i=="bigint"?i.toString():i}function Rc(n){return{get value(){{const i=n();return Object.defineProperty(this,"value",{value:i}),i}}}}function Bc(n){return n==null}function Lc(n){const i=n.startsWith("^")?1:0,o=n.endsWith("$")?n.length-1:n.length;return n.slice(i,o)}function Lg(n,i){const o=(n.toString().split(".")[1]||"").length,c=i.toString();let s=(c.split(".")[1]||"").length;if(s===0&&/\d?e-\d?/.test(c)){const y=c.match(/\d?e-(\d?)/);y!=null&&y[1]&&(s=Number.parseInt(y[1]))}const d=o>s?o:s,h=Number.parseInt(n.toFixed(d).replace(".","")),p=Number.parseInt(i.toFixed(d).replace(".",""));return h%p/10**d}const lh=Symbol("evaluating");function re(n,i,o){let c;Object.defineProperty(n,i,{get(){if(c!==lh)return c===void 0&&(c=lh,c=o()),c},set(s){Object.defineProperty(n,i,{value:s})},configurable:!0})}function mn(n,i,o){Object.defineProperty(n,i,{value:o,writable:!0,enumerable:!0,configurable:!0})}function Ga(...n){const i={};for(const o of n){const c=Object.getOwnPropertyDescriptors(o);Object.assign(i,c)}return Object.defineProperties({},i)}function ih(n){return JSON.stringify(n)}function qg(n){return n.toLowerCase().trim().replace(/[^\w\s-]/g,"").replace(/[\s_-]+/g,"-").replace(/^-+|-+$/g,"")}const Lh="captureStackTrace"in Error?Error.captureStackTrace:(...n)=>{};function Lu(n){return typeof n=="object"&&n!==null&&!Array.isArray(n)}const Hg=Rc(()=>{var n;if(typeof navigator<"u"&&((n=navigator==null?void 0:navigator.userAgent)!=null&&n.includes("Cloudflare")))return!1;try{const i=Function;return new i(""),!0}catch{return!1}});function ii(n){if(Lu(n)===!1)return!1;const i=n.constructor;if(i===void 0||typeof i!="function")return!0;const o=i.prototype;return!(Lu(o)===!1||Object.prototype.hasOwnProperty.call(o,"isPrototypeOf")===!1)}function qh(n){return ii(n)?{...n}:Array.isArray(n)?[...n]:n}const kg=new Set(["string","number","symbol"]);function ll(n){return n.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function Ya(n,i,o){const c=new n._zod.constr(i??n._zod.def);return(!i||o!=null&&o.parent)&&(c._zod.parent=n),c}function q(n){const i=n;
vendor: 60,635 bytes, lines 99-137
99if(!i)return{};if(typeof i=="string")return{error:()=>i};if((i==null?void 0:i.message)!==void 0){if((i==null?void 0:i.error)!==void 0)throw new Error("Cannot specify both `message` and `error` params");i.error=i.message}return delete i.message,typeof i.error=="string"?{...i,error:()=>i.error}:i}function Vg(n){return Object.keys(n).filter(i=>n[i]._zod.optin==="optional"&&n[i]._zod.optout==="optional")}const Gg={safeint:[Number.MIN_SAFE_INTEGER,Number.MAX_SAFE_INTEGER],int32:[-2147483648,2147483647],uint32:[0,4294967295],float32:[-34028234663852886e22,34028234663852886e22],float64:[-Number.MAX_VALUE,Number.MAX_VALUE]};function Yg(n,i){const o=n._zod.def,c=o.checks;if(c&&c.length>0)throw new Error(".pick() cannot be used on object schemas containing refinements");const d=Ga(n._zod.def,{get shape(){const h={};for(const p in i){if(!(p in o.shape))throw new Error(`Unrecognized key: "${p}"`);i[p]&&(h[p]=o.shape[p])}return mn(this,"shape",h),h},checks:[]});return Ya(n,d)}function Xg(n,i){const o=n._zod.def,c=o.checks;if(c&&c.length>0)throw new Error(".omit() cannot be used on object schemas containing refinements");const d=Ga(n._zod.def,{get shape(){const h={...n._zod.def.shape};for(const p in i){if(!(p in o.shape))throw new Error(`Unrecognized key: "${p}"`);i[p]&&delete h[p]}return mn(this,"shape",h),h},checks:[]});return Ya(n,d)}function Qg(n,i){if(!ii(i))throw new Error("Invalid input to extend: expected a plain object");const o=n._zod.def.checks;if(o&&o.length>0){const d=n._zod.def.shape;for(const h in i)if(Object.getOwnPropertyDescriptor(d,h)!==void 0)throw new Error("Cannot overwrite keys on object schemas containing refinements. Use `.safeExtend()` instead.")}const s=Ga(n._zod.def,{get shape(){const d={...n._zod.def.shape,...i};return mn(this,"shape",d),d}});return Ya(n,s)}function Jg(n,i){if(!ii(i))throw new Error("Invalid input to safeExtend: expected a plain object");const o=Ga(n._zod.def,{get shape(){const c={...n._zod.def.shape,...i};return mn(this,"shape",c),c}});return Ya(n,o)}function $g(n,i){const o=Ga(n._zod.def,{get shape(){const c={...n._zod.def.shape,...i._zod.def.shape};return mn(this,"shape",c),c},get catchall(){return i._zod.def.catchall},checks:[]});return Ya(n,o)}function Kg(n,i,o){const s=i._zod.def.checks;if(s&&s.length>0)throw new Error(".partial() cannot be used on object schemas containing refinements");const h=Ga(i._zod.def,{get shape(){const p=i._zod.def.shape,y={...p};if(o)for(const S in o){if(!(S in p))throw new Error(`Unrecognized key: "${S}"`);o[S]&&(y[S]=n?new n({type:"optional",innerType:p[S]}):p[S])}else for(const S in p)y[S]=n?new n({type:"optional",innerType:p[S]}):p[S];return mn(this,"shape",y),y},checks:[]});return Ya(i,h)}function Fg(n,i,o){const c=Ga(i._zod.def,{get shape(){const s=i._zod.def.shape,d={...s};if(o)for(const h in o){if(!(h in d))throw new Error(`Unrecognized key: "${h}"`);o[h]&&(d[h]=new n({type:"nonoptional",innerType:s[h]}))}else for(const h in s)d[h]=new n({type:"nonoptional",innerType:s[h]});return mn(this,"shape",d),d}});return Ya(i,c)}function tl(n,i=0){var o;if(n.aborted===!0)return!0;for(let c=i;c<n.issues.length;c++)if(((o=n.issues[c])==null?void 0:o.continue)!==!0)return!0;return!1}function Hh(n,i){return i.map(o=>{var c;return(c=o).path??(c.path=[]),o.path.unshift(n),o})}function ju(n){return typeof n=="string"?n:n==null?void 0:n.message}function dn(n,i,o){var s,d,h,p,y,S;const c={...n,path:n.path??[]};if(!n.message){const A=ju((h=(d=(s=n.inst)==null?void 0:s._zod.def)==null?void 0:d.error)==null?void 0:h.call(d,n))??ju((p=i==null?void 0:i.error)==null?void 0:p.call(i,n))??ju((y=o.customError)==null?void 0:y.call(o,n))??ju((S=o.localeError)==null?void 0:S.call(o,n))??"Invalid input";c.message=A}return delete c.inst,delete c.continue,i!=null&&i.reportInput||delete c.input,c}function qc(n){return Array.isArray(n)?"array":typeof n=="string"?"string":"unknown"}function ui(...n){const[i,o,c]=n;return typeof i=="string"?{message:i,code:"custom",input:o,inst:c}:{...i}}const kh=(n,i)=>{n.name="$ZodError",Object.defineProperty(n,"_zod",{value:n._zod,enumerable:!1}),Object.defineProperty(n,"issues",{value:i,enumerable:!1}),n.message=JSON.stringify(i,Tc,2),Object.defineProperty(n,"toString",{value:()=>n.message,enumerable:!1})},Vh=D("$ZodError",kh),Gh=D("$ZodError",kh,{Parent:Error});function Wg(n,i=o=>o.message){const o={},c=[];for(const s of n.issues)s.path.length>0?(o[s.path[0]]=o[s.path[0]]||[],o[s.path[0]].push(i(s))):c.push(i(s));return{formErrors:c,fieldErrors:o}}function Ig(n,i=o=>o.message){const o={_errors:[]},c=s=>{for(const d of s.issues)if(d.code==="invalid_union"&&d.errors.length)d.errors.map(h=>c({issues:h}));else if(d.code==="invalid_key")c({issues:d.issues});else if(d.code==="invalid_element")c({issues:d.issues});else if(d.path.length===0)o._errors.push(i(d));else{let h=o,p=0;for(;p<d.path.length;){const y=d.path[p];p===d.path.length-1?(h[y]=h[y]||{_errors:[]},h[y]._errors.push(i(d))):h[y]=h[y]||{_errors:[]},h=h[y],p++}}};return c(n),o}const Hc=n=>(i,o,c,s)=>{const d=c?Object.assign(c,{async:!1}):{async:!1},h=i._zod.run({value:o,issues:[]},d);if(h instanceof Promise)throw new nl;if(h.issues.length){const p=new((s==null?void 0:s.Err)??n)(h.issues.map(y=>dn(y,d,fn())));throw Lh(p,s==null?void 0:s.callee),p}return h.value},kc=n=>async(i,o,c,s)=>{const d=c?Object.assign(c,{async:!0}):{async:!0};let h=i._zod.run({value:o,issues:[]},d);if(h instanceof Promise&&(h=await h),h.issues.length){const p=new((s==null?void 0:s.Err)??n)(h.issues.map(y=>dn(y,d,fn())));throw Lh(p,s==null?void 0:s.callee),p}return h.value},Qu=n=>(i,o,c)=>{const s=c?{...c,async:!1}:{async:!1},d=i._zod.run({value:o,issues:[]},s);if(d instanceof Promise)throw new nl;return d.issues.length?{success:!1,error:new(n??Vh)(d.issues.map(h=>dn(h,s,fn())))}:{success:!0,data:d.value}},Pg=Qu(Gh),Ju=n=>async(i,o,c)=>{const s=c?Object.assign(c,{async:!0}):{async:!0};let d=i._zod.run({value:o,issues:[]},s);return d instanceof Promise&&(d=await d),d.issues.length?{success:!1,error:new n(d.issues.map(h=>dn(h,s,fn())))}:{success:!0,data:d.value}},ey=Ju(Gh),ty=n=>(i,o,c)=>{const s=c?Object.assign(c,{direction:"backward"}):{direction:"backward"};return Hc(n)(i,o,s)},ay=n=>(i,o,c)=>Hc(n)(i,o,c),ny=n=>async(i,o,c)=>{const s=c?Object.assign(c,{direction:"backward"}):{direction:"backward"};return kc(n)(i,o,s)},ly=n=>async(i,o,c)=>kc(n)(i,o,c),iy=n=>(i,o,c)=>{const s=c?Object.assign(c,{direction:"backward"}):{direction:"backward"};return Qu(n)(i,o,s)},uy=n=>(i,o,c)=>Qu(n)(i,o,c),oy=n=>async(i,o,c)=>{const s=c?Object.assign(c,{direction:"backward"}):{direction:"backward"};return Ju(n)(i,o,s)},ry=n=>async(i,o,c)=>Ju(n)(i,o,c),cy=/^[cC][^\s-]{8,}$/,sy=/^[0-9a-z]+$/,fy=/^[0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{26}$/,dy=/^[0-9a-vA-V]{20}$/,my=/^[A-Za-z0-9]{27}$/,hy=/^[a-zA-Z0-9_-]{21}$/,py=/^P(?:(\d+W)|(?!.*W)(?=\d|T\d)(\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+([.,]\d+)?S)?)?)$/,vy=/^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$/,uh=n=>n?new RegExp(`^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-${n}[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$`):/^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$/,gy=/^(?!\.)(?!.*\.\.)([A-Za-z0-9_'+\-\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$/,yy="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";function by(){return new RegExp(yy,"u")}const _y=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/,Sy=/^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:))$/,zy=/^((25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\/([0-9]|[1-2][0-9]|3[0-2])$/,Ey=/^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|::|([0-9a-fA-F]{1,4})?::([0-9a-fA-F]{1,4}:?){0,6})\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/,xy=/^$|^(?:[0-9a-zA-Z+/]{4})*(?:(?:[0-9a-zA-Z+/]{2}==)|(?:[0-9a-zA-Z+/]{3}=))?$/,Yh=/^[A-Za-z0-9_-]*$/,Ty=/^\+[1-9]\d{6,14}$/,Xh="(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))",Ay=new RegExp(`^${Xh}$`);function Qh(n){const i="(?:[01]\\d|2[0-3]):[0-5]\\d";return typeof n.precision=="number"?n.precision===-1?`${i}`:n.precision===0?`${i}:[0-5]\\d`:`${i}:[0-5]\\d\\.\\d{${n.precision}}`:`${i}(?::[0-5]\\d(?:\\.\\d+)?)?`}function Oy(n){return new RegExp(`^${Qh(n)}$`)}function Ny(n){const i=Qh({precision:n.precision}),o=["Z"];n.local&&o.push(""),n.offset&&o.push("([+-](?:[01]\\d|2[0-3]):[0-5]\\d)");const c=`${i}(?:${o.join("|")})`;return new RegExp(`^${Xh}T(?:${c})$`)}const jy=n=>{const i=n?`[\\s\\S]{${(n==null?void 0:n.minimum)??0},${(n==null?void 0:n.maximum)??""}}`:"[\\s\\S]*";return new RegExp(`^${i}$`)},Dy=/^-?\d+$/,My=/^-?\d+(?:\.\d+)?$/,wy=/^(?:true|false)$/i,Uy=/^[^A-Z]*$/,Cy=/^[^a-z]*$/,ft=D("$ZodCheck",(n,i)=>{var o;n._zod??(n._zod={}),n._zod.def=i,(o=n._zod).onattach??(o.onattach=[])}),Jh={number:"number",bigint:"bigint",object:"date"},$h=D("$ZodCheckLessThan",(n,i)=>{ft.init(n,i);const o=Jh[typeof i.value];n._zod.onattach.push(c=>{const s=c._zod.bag,d=(i.inclusive?s.maximum:s.exclusiveMaximum)??Number.POSITIVE_INFINITY;i.value<d&&(i.inclusive?s.maximum=i.value:s.exclusiveMaximum=i.value)}),n._zod.check=c=>{(i.inclusive?c.value<=i.value:c.value<i.value)||c.issues.push({origin:o,code:"too_big",maximum:typeof i.value=="object"?i.value.getTime():i.value,input:c.value,inclusive:i.inclusive,inst:n,continue:!i.abort})}}),Kh=D("$ZodCheckGreaterThan",(n,i)=>{ft.init(n,i);const o=Jh[typeof i.value];n._zod.onattach.push(c=>{const s=c._zod.bag,d=(i.inclusive?s.minimum:s.exclusiveMinimum)??Number.NEGATIVE_INFINITY;i.value>d&&(i.inclusive?s.minimum=i.value:s.exclusiveMinimum=i.value)}),n._zod.check=c=>{(i.inclusive?c.value>=i.value:c.value>i.value)||c.issues.push({origin:o,code:"too_small",minimum:typeof i.value=="object"?i.value.getTime():i.value,input:c.value,inclusive:i.inclusive,inst:n,continue:!i.abort})}}),Zy=D("$ZodCheckMultipleOf",(n,i)=>{ft.init(n,i),n._zod.onattach.push(o=>{var c;(c=o._zod.bag).multipleOf??(c.multipleOf=i.value)}),n._zod.check=o=>{if(typeof o.value!=typeof i.value)throw new Error("Cannot mix number and bigint in multiple_of check.");(typeof o.value=="bigint"?o.value%i.value===BigInt(0):Lg(o.value,i.value)===0)||o.issues.push({origin:typeof o.value,code:"not_multiple_of",divisor:i.value,input:o.value,inst:n,continue:!i.abort})}}),Ry=D("$ZodCheckNumberFormat",(n,i)=>{var h;ft.init(n,i),i.format=i.format||"float64";const o=(h=i.format)==null?void 0:h.includes("int"),c=o?"int":"number",[s,d]=Gg[i.format];n._zod.onattach.push(p=>{const y=p._zod.bag;y.format=i.format,y.minimum=s,y.maximum=d,o&&(y.pattern=Dy)}),n._zod.check=p=>{const y=p.value;if(o){if(!Number.isInteger(y)){p.issues.push({expected:c,format:i.format,code:"invalid_type",continue:!1,input:y,inst:n});return}if(!Number.isSafeInteger(y)){y>0?p.issues.push({input:y,code:"too_big",maximum:Number.MAX_SAFE_INTEGER,note:"Integers must be within the safe integer range.",inst:n,origin:c,inclusive:!0,continue:!i.abort}):p.issues.push({input:y,code:"too_small",minimum:Number.MIN_SAFE_INTEGER,note:"Integers must be within the safe integer range.",inst:n,origin:c,inclusive:!0,continue:!i.abort});return}}y<s&&p.issues.push({origin:"number",input:y,code:"too_small",minimum:s,inclusive:!0,inst:n,continue:!i.abort}),y>d&&p.issues.push({origin:"number",input:y,code:"too_big",maximum:d,inclusive:!0,inst:n,continue:!i.abort})}}),By=D("$ZodCheckMaxLength",(n,i)=>{var o;ft.init(n,i),(o=n._zod.def).when??(o.when=c=>{const s=c.value;return!Bc(s)&&s.length!==void 0}),n._zod.onattach.push(c=>{const s=c._zod.bag.maximum??Number.POSITIVE_INFINITY;i.maximum<s&&(c._zod.bag.maximum=i.maximum)}),n._zod.check=c=>{const s=c.value;if(s.length<=i.maximum)return;const h=qc(s);c.issues.push({origin:h,code:"too_big",maximum:i.maximum,inclusive:!0,input:s,inst:n,continue:!i.abort})}}),Ly=D("$ZodCheckMinLength",(n,i)=>{var o;ft.init(n,i),(o=n._zod.def).when??(o.when=c=>{const s=c.value;return!Bc(s)&&s.length!==void 0}),n._zod.onattach.push(c=>{const s=c._zod.bag.minimum??Number.NEGATIVE_INFINITY;i.minimum>s&&(c._zod.bag.minimum=i.minimum)}),n._zod.check=c=>{const s=c.value;if(s.length>=i.minimum)return;const h=qc(s);c.issues.push({origin:h,code:"too_small",minimum:i.minimum,inclusive:!0,input:s,inst:n,continue:!i.abort})}}),qy=D("$ZodCheckLengthEquals",(n,i)=>{var o;ft.init(n,i),(o=n._zod.def).when??(o.when=c=>{const s=c.value;return!Bc(s)&&s.length!==void 0}),n._zod.onattach.push(c=>{const s=c._zod.bag;s.minimum=i.length,s.maximum=i.length,s.length=i.length}),n._zod.check=c=>{const s=c.value,d=s.length;if(d===i.length)return;const h=qc(s),p=d>i.length;c.issues.push({origin:h,...p?{code:"too_big",maximum:i.length}:{code:"too_small",minimum:i.length},inclusive:!0,exact:!0,input:c.value,inst:n,continue:!i.abort})}}),$u=D("$ZodCheckStringFormat",(n,i)=>{var o,c;ft.init(n,i),n._zod.onattach.push(s=>{const d=s._zod.bag;d.format=i.format,i.pattern&&(d.patterns??(d.patterns=new Set),d.patterns.add(i.pattern))}),i.pattern?(o=n._zod).check??(o.check=s=>{i.pattern.lastIndex=0,!i.pattern.test(s.value)&&s.issues.push({origin:"string",code:"invalid_format",format:i.format,input:s.value,...i.pattern?{pattern:i.pattern.toString()}:{},inst:n,continue:!i.abort})}):(c=n._zod).check??(c.check=()=>{})}),Hy=D("$ZodCheckRegex",(n,i)=>{$u.init(n,i),n._zod.check=o=>{i.pattern.lastIndex=0,!i.pattern.test(o.value)&&o.issues.push({origin:"string",code:"invalid_format",format:"regex",input:o.value,pattern:i.pattern.toString(),inst:n,continue:!i.abort})}}),ky=D("$ZodCheckLowerCase",(n,i)=>{i.pattern??(i.pattern=Uy),$u.init(n,i)}),Vy=D("$ZodCheckUpperCase",(n,i)=>{i.pattern??(i.pattern=Cy),$u.init(n,i)}),Gy=D("$ZodCheckIncludes",(n,i)=>{ft.init(n,i);const o=ll(i.includes),c=new RegExp(typeof i.position=="number"?`^.{${i.position}}${o}`:o);i.pattern=c,n._zod.onattach.push(s=>{const d=s._zod.bag;d.patterns??(d.patterns=new Set),d.patterns.add(c)}),n._zod.check=s=>{s.value.includes(i.includes,i.position)||s.issues.push({origin:"string",code:"invalid_format",format:"includes",includes:i.includes,input:s.value,inst:n,continue:!i.abort})}}),Yy=D("$ZodCheckStartsWith",(n,i)=>{ft.init(n,i);const o=new RegExp(`^${ll(i.prefix)}.*`);i.pattern??(i.pattern=o),n._zod.onattach.push(c=>{const s=c._zod.bag;s.patterns??(s.patterns=new Set),s.patterns.add(o)}),n._zod.check=c=>{c.value.startsWith(i.prefix)||c.issues.push({origin:"string",code:"invalid_format",format:"starts_with",prefix:i.prefix,input:c.value,inst:n,continue:!i.abort})}}),Xy=D("$ZodCheckEndsWith",(n,i)=>{ft.init(n,i);const o=new RegExp(`.*${ll(i.suffix)}$`);i.pattern??(i.pattern=o),n._zod.onattach.push(c=>{const s=c._zod.bag;s.patterns??(s.patterns=new Set),s.patterns.add(o)}),n._zod.check=c=>{c.value.endsWith(i.suffix)||c.issues.push({origin:"string",code:"invalid_format",format:"ends_with",suffix:i.suffix,input:c.value,inst:n,continue:!i.abort})}}),Qy=D("$ZodCheckOverwrite",(n,i)=>{ft.init(n,i),n._zod.check=o=>{o.value=i.tx(o.value)}});class Jy{constructor(i=[]){this.content=[],this.indent=0,this&&(this.args=i)}indented(i){this.indent+=1,i(this),this.indent-=1}write(i){if(typeof i=="function"){i(this,{execution:"sync"}),i(this,{execution:"async"});return}const c=i.split(`
100`).filter(h=>h),s=Math.min(...c.map(h=>h.length-h.trimStart().length)),d=c.map(h=>h.slice(s)).map(h=>" ".repeat(this.indent*2)+h);for(const h of d)this.content.push(h)}compile(){const i=Function,o=this==null?void 0:this.args,s=[...((this==null?void 0:this.content)??[""]).map(d=>`  ${d}`)];return new i(...o,s.join(`
101`))}}const $y={major:4,minor:3,patch:6},we=D("$ZodType",(n,i)=>{var s;var o;n??(n={}),n._zod.def=i,n._zod.bag=n._zod.bag||{},n._zod.version=$y;const c=[...n._zod.def.checks??[]];n._zod.traits.has("$ZodCheck")&&c.unshift(n);for(const d of c)for(const h of d._zod.onattach)h(n);if(c.length===0)(o=n._zod).deferred??(o.deferred=[]),(s=n._zod.deferred)==null||s.push(()=>{n._zod.run=n._zod.parse});else{const d=(p,y,S)=>{let A=tl(p),O;for(const C of y){if(C._zod.def.when){if(!C._zod.def.when(p))continue}else if(A)continue;const L=p.issues.length,X=C._zod.check(p);if(X instanceof Promise&&(S==null?void 0:S.async)===!1)throw new nl;if(O||X instanceof Promise)O=(O??Promise.resolve()).then(async()=>{await X,p.issues.length!==L&&(A||(A=tl(p,L)))});else{if(p.issues.length===L)continue;A||(A=tl(p,L))}}return O?O.then(()=>p):p},h=(p,y,S)=>{if(tl(p))return p.aborted=!0,p;const A=d(y,c,S);if(A instanceof Promise){if(S.async===!1)throw new nl;return A.then(O=>n._zod.parse(O,S))}return n._zod.parse(A,S)};n._zod.run=(p,y)=>{if(y.skipChecks)return n._zod.parse(p,y);if(y.direction==="backward"){const A=n._zod.parse({value:p.value,issues:[]},{...y,skipChecks:!0});return A instanceof Promise?A.then(O=>h(O,p,y)):h(A,p,y)}const S=n._zod.parse(p,y);if(S instanceof Promise){if(y.async===!1)throw new nl;return S.then(A=>d(A,c,y))}return d(S,c,y)}}re(n,"~standard",()=>({validate:d=>{var h;try{const p=Pg(n,d);return p.success?{value:p.data}:{issues:(h=p.error)==null?void 0:h.issues}}catch{return ey(n,d).then(y=>{var S;return y.success?{value:y.data}:{issues:(S=y.error)==null?void 0:S.issues}})}},vendor:"zod",version:1}))}),Vc=D("$ZodString",(n,i)=>{var o;we.init(n,i),n._zod.pattern=[...((o=n==null?void 0:n._zod.bag)==null?void 0:o.patterns)??[]].pop()??jy(n._zod.bag),n._zod.parse=(c,s)=>{if(i.coerce)try{c.value=String(c.value)}catch{}return typeof c.value=="string"||c.issues.push({expected:"string",code:"invalid_type",input:c.value,inst:n}),c}}),Ee=D("$ZodStringFormat",(n,i)=>{$u.init(n,i),Vc.init(n,i)}),Ky=D("$ZodGUID",(n,i)=>{i.pattern??(i.pattern=vy),Ee.init(n,i)}),Fy=D("$ZodUUID",(n,i)=>{if(i.version){const c={v1:1,v2:2,v3:3,v4:4,v5:5,v6:6,v7:7,v8:8}[i.version];if(c===void 0)throw new Error(`Invalid UUID version: "${i.version}"`);i.pattern??(i.pattern=uh(c))}else i.pattern??(i.pattern=uh());Ee.init(n,i)}),Wy=D("$ZodEmail",(n,i)=>{i.pattern??(i.pattern=gy),Ee.init(n,i)}),Iy=D("$ZodURL",(n,i)=>{Ee.init(n,i),n._zod.check=o=>{try{const c=o.value.trim(),s=new URL(c);i.hostname&&(i.hostname.lastIndex=0,i.hostname.test(s.hostname)||o.issues.push({code:"invalid_format",format:"url",note:"Invalid hostname",pattern:i.hostname.source,input:o.value,inst:n,continue:!i.abort})),i.protocol&&(i.protocol.lastIndex=0,i.protocol.test(s.protocol.endsWith(":")?s.protocol.slice(0,-1):s.protocol)||o.issues.push({code:"invalid_format",format:"url",note:"Invalid protocol",pattern:i.protocol.source,input:o.value,inst:n,continue:!i.abort})),i.normalize?o.value=s.href:o.value=c;return}catch{o.issues.push({code:"invalid_format",format:"url",input:o.value,inst:n,continue:!i.abort})}}}),Py=D("$ZodEmoji",(n,i)=>{i.pattern??(i.pattern=by()),Ee.init(n,i)}),e1=D("$ZodNanoID",(n,i)=>{i.pattern??(i.pattern=hy),Ee.init(n,i)}),t1=D("$ZodCUID",(n,i)=>{i.pattern??(i.pattern=cy),Ee.init(n,i)}),a1=D("$ZodCUID2",(n,i)=>{i.pattern??(i.pattern=sy),Ee.init(n,i)}),n1=D("$ZodULID",(n,i)=>{i.pattern??(i.pattern=fy),Ee.init(n,i)}),l1=D("$ZodXID",(n,i)=>{i.pattern??(i.pattern=dy),Ee.init(n,i)}),i1=D("$ZodKSUID",(n,i)=>{i.pattern??(i.pattern=my),Ee.init(n,i)}),u1=D("$ZodISODateTime",(n,i)=>{i.pattern??(i.pattern=Ny(i)),Ee.init(n,i)}),o1=D("$ZodISODate",(n,i)=>{i.pattern??(i.pattern=Ay),Ee.init(n,i)}),r1=D("$ZodISOTime",(n,i)=>{i.pattern??(i.pattern=Oy(i)),Ee.init(n,i)}),c1=D("$ZodISODuration",(n,i)=>{i.pattern??(i.pattern=py),Ee.init(n,i)}),s1=D("$ZodIPv4",(n,i)=>{i.pattern??(i.pattern=_y),Ee.init(n,i),n._zod.bag.format="ipv4"}),f1=D("$ZodIPv6",(n,i)=>{i.pattern??(i.pattern=Sy),Ee.init(n,i),n._zod.bag.format="ipv6",n._zod.check=o=>{try{new URL(`http://[${o.value}]`)}catch{o.issues.push({code:"invalid_format",format:"ipv6",input:o.value,inst:n,continue:!i.abort})}}}),d1=D("$ZodCIDRv4",(n,i)=>{i.pattern??(i.pattern=zy),Ee.init(n,i)}),m1=D("$ZodCIDRv6",(n,i)=>{i.pattern??(i.pattern=Ey),Ee.init(n,i),n._zod.check=o=>{const c=o.value.split("/");try{if(c.length!==2)throw new Error;const[s,d]=c;if(!d)throw new Error;const h=Number(d);if(`${h}`!==d)throw new Error;if(h<0||h>128)throw new Error;new URL(`http://[${s}]`)}catch{o.issues.push({code:"invalid_format",format:"cidrv6",input:o.value,inst:n,continue:!i.abort})}}});function Fh(n){if(n==="")return!0;if(n.length%4!==0)return!1;try{return atob(n),!0}catch{return!1}}const h1=D("$ZodBase64",(n,i)=>{i.pattern??(i.pattern=xy),Ee.init(n,i),n._zod.bag.contentEncoding="base64",n._zod.check=o=>{Fh(o.value)||o.issues.push({code:"invalid_format",format:"base64",input:o.value,inst:n,continue:!i.abort})}});function p1(n){if(!Yh.test(n))return!1;const i=n.replace(/[-_]/g,c=>c==="-"?"+":"/"),o=i.padEnd(Math.ceil(i.length/4)*4,"=");return Fh(o)}const v1=D("$ZodBase64URL",(n,i)=>{i.pattern??(i.pattern=Yh),Ee.init(n,i),n._zod.bag.contentEncoding="base64url",n._zod.check=o=>{p1(o.value)||o.issues.push({code:"invalid_format",format:"base64url",input:o.value,inst:n,continue:!i.abort})}}),g1=D("$ZodE164",(n,i)=>{i.pattern??(i.pattern=Ty),Ee.init(n,i)});function y1(n,i=null){try{const o=n.split(".");if(o.length!==3)return!1;const[c]=o;if(!c)return!1;const s=JSON.parse(atob(c));return!("typ"in s&&(s==null?void 0:s.typ)!=="JWT"||!s.alg||i&&(!("alg"in s)||s.alg!==i))}catch{return!1}}const b1=D("$ZodJWT",(n,i)=>{Ee.init(n,i),n._zod.check=o=>{y1(o.value,i.alg)||o.issues.push({code:"invalid_format",format:"jwt",input:o.value,inst:n,continue:!i.abort})}}),Wh=D("$ZodNumber",(n,i)=>{we.init(n,i),n._zod.pattern=n._zod.bag.pattern??My,n._zod.parse=(o,c)=>{if(i.coerce)try{o.value=Number(o.value)}catch{}const s=o.value;if(typeof s=="number"&&!Number.isNaN(s)&&Number.isFinite(s))return o;const d=typeof s=="number"?Number.isNaN(s)?"NaN":Number.isFinite(s)?void 0:"Infinity":void 0;return o.issues.push({expected:"number",code:"invalid_type",input:s,inst:n,...d?{received:d}:{}}),o}}),_1=D("$ZodNumberFormat",(n,i)=>{Ry.init(n,i),Wh.init(n,i)}),S1=D("$ZodBoolean",(n,i)=>{we.init(n,i),n._zod.pattern=wy,n._zod.parse=(o,c)=>{if(i.coerce)try{o.value=!!o.value}catch{}const s=o.value;return typeof s=="boolean"||o.issues.push({expected:"boolean",code:"invalid_type",input:s,inst:n}),o}}),z1=D("$ZodUnknown",(n,i)=>{we.init(n,i),n._zod.parse=o=>o}),E1=D("$ZodNever",(n,i)=>{we.init(n,i),n._zod.parse=(o,c)=>(o.issues.push({expected:"never",code:"invalid_type",input:o.value,inst:n}),o)});function oh(n,i,o){n.issues.length&&i.issues.push(...Hh(o,n.issues)),i.value[o]=n.value}const x1=D("$ZodArray",(n,i)=>{we.init(n,i),n._zod.parse=(o,c)=>{const s=o.value;if(!Array.isArray(s))return o.issues.push({expected:"array",code:"invalid_type",input:s,inst:n}),o;o.value=Array(s.length);const d=[];for(let h=0;h<s.length;h++){const p=s[h],y=i.element._zod.run({value:p,issues:[]},c);y instanceof Promise?d.push(y.then(S=>oh(S,o,h))):oh(y,o,h)}return d.length?Promise.all(d).then(()=>o):o}});function qu(n,i,o,c,s){if(n.issues.length){if(s&&!(o in c))return;i.issues.push(...Hh(o,n.issues))}n.value===void 0?o in c&&(i.value[o]=void 0):i.value[o]=n.value}function Ih(n){var c,s,d,h;const i=Object.keys(n.shape);for(const p of i)if(!((h=(d=(s=(c=n.shape)==null?void 0:c[p])==null?void 0:s._zod)==null?void 0:d.traits)!=null&&h.has("$ZodType")))throw new Error(`Invalid element at key "${p}": expected a Zod schema`);const o=Vg(n.shape);return{...n,keys:i,keySet:new Set(i),numKeys:i.length,optionalKeys:new Set(o)}}function Ph(n,i,o,c,s,d){const h=[],p=s.keySet,y=s.catchall._zod,S=y.def.type,A=y.optout==="optional";for(const O in i){if(p.has(O))continue;if(S==="never"){h.push(O);continue}const C=y.run({value:i[O],issues:[]},c);C instanceof Promise?n.push(C.then(L=>qu(L,o,O,i,A))):qu(C,o,O,i,A)}return h.length&&o.issues.push({code:"unrecognized_keys",keys:h,input:i,inst:d}),n.length?Promise.all(n).then(()=>o):o}const T1=D("$ZodObject",(n,i)=>{we.init(n,i);const o=Object.getOwnPropertyDescriptor(i,"shape");if(!(o!=null&&o.get)){const p=i.shape;Object.defineProperty(i,"shape",{get:()=>{const y={...p};return Object.defineProperty(i,"shape",{value:y}),y}})}const c=Rc(()=>Ih(i));re(n._zod,"propValues",()=>{const p=i.shape,y={};for(const S in p){const A=p[S]._zod;if(A.values){y[S]??(y[S]=new Set);for(const O of A.values)y[S].add(O)}}return y});const s=Lu,d=i.catchall;let h;n._zod.parse=(p,y)=>{h??(h=c.value);const S=p.value;if(!s(S))return p.issues.push({expected:"object",code:"invalid_type",input:S,inst:n}),p;p.value={};const A=[],O=h.shape;for(const C of h.keys){const L=O[C],X=L._zod.optout==="optional",G=L._zod.run({value:S[C],issues:[]},y);G instanceof Promise?A.push(G.then(pe=>qu(pe,p,C,S,X))):qu(G,p,C,S,X)}return d?Ph(A,S,p,y,c.value,n):A.length?Promise.all(A).then(()=>p):p}}),A1=D("$ZodObjectJIT",(n,i)=>{T1.init(n,i);const o=n._zod.parse,c=Rc(()=>Ih(i)),s=C=>{var Qe;const L=new Jy(["shape","payload","ctx"]),X=c.value,G=He=>{const Oe=ih(He);return`shape[${Oe}]._zod.run({ value: input[${Oe}], issues: [] }, ctx)`};L.write("const input = payload.value;");const pe=Object.create(null);let xt=0;for(const He of X.keys)pe[He]=`key_${xt++}`;L.write("const newResult = {};");for(const He of X.keys){const Oe=pe[He],Ne=ih(He),dt=C[He],mt=((Qe=dt==null?void 0:dt._zod)==null?void 0:Qe.optout)==="optional";L.write(`const ${Oe} = ${G(He)};`),mt?L.write(`
102        if (${Oe}.issues.length) {
103          if (${Ne} in input) {
104            payload.issues = payload.issues.concat(${Oe}.issues.map(iss => ({
105              ...iss,
106              path: iss.path ? [${Ne}, ...iss.path] : [${Ne}]
107            })));
108          }
109        }
110        
111        if (${Oe}.value === undefined) {
112          if (${Ne} in input) {
113            newResult[${Ne}] = undefined;
114          }
115        } else {
116          newResult[${Ne}] = ${Oe}.value;
117        }
118        
119      `):L.write(`
120        if (${Oe}.issues.length) {
121          payload.issues = payload.issues.concat(${Oe}.issues.map(iss => ({
122            ...iss,
123            path: iss.path ? [${Ne}, ...iss.path] : [${Ne}]
124          })));
125        }
126        
127        if (${Oe}.value === undefined) {
128          if (${Ne} in input) {
129            newResult[${Ne}] = undefined;
130          }
131        } else {
132          newResult[${Ne}] = ${Oe}.value;
133        }
134        
135      `)}L.write("payload.value = newResult;"),L.write("return payload;");const xe=L.compile();return(He,Oe)=>xe(C,He,Oe)};let d;const h=Lu,p=!Rh.jitless,S=p&&Hg.value,A=i.catchall;let O;n._zod.parse=(C,L)=>{O??(O=c.value);const X=C.value;return h(X)?p&&S&&(L==null?void 0:L.async)===!1&&L.jitless!==!0?(d||(d=s(i.shape)),C=d(C,L),A?Ph([],X,C,L,O,n):C):o(C,L):(C.issues.push({expected:"object",code:"invalid_type",input:X,inst:n}),C)}});function rh(n,i,o,c){for(const d of n)if(d.issues.length===0)return i.value=d.value,i;const s=n.filter(d=>!tl(d));return s.length===1?(i.value=s[0].value,s[0]):(i.issues.push({code:"invalid_union",input:i.value,inst:o,errors:n.map(d=>d.issues.map(h=>dn(h,c,fn())))}),i)}const O1=D("$ZodUnion",(n,i)=>{we.init(n,i),re(n._zod,"optin",()=>i.options.some(s=>s._zod.optin==="optional")?"optional":void 0),re(n._zod,"optout",()=>i.options.some(s=>s._zod.optout==="optional")?"optional":void 0),re(n._zod,"values",()=>{if(i.options.every(s=>s._zod.values))return new Set(i.options.flatMap(s=>Array.from(s._zod.values)))}),re(n._zod,"pattern",()=>{if(i.options.every(s=>s._zod.pattern)){const s=i.options.map(d=>d._zod.pattern);return new RegExp(`^(${s.map(d=>Lc(d.source)).join("|")})$`)}});const o=i.options.length===1,c=i.options[0]._zod.run;n._zod.parse=(s,d)=>{if(o)return c(s,d);let h=!1;const p=[];for(const y of i.options){const S=y._zod.run({value:s.value,issues:[]},d);if(S instanceof Promise)p.push(S),h=!0;else{if(S.issues.length===0)return S;p.push(S)}}return h?Promise.all(p).then(y=>rh(y,s,n,d)):rh(p,s,n,d)}}),N1=D("$ZodIntersection",(n,i)=>{we.init(n,i),n._zod.parse=(o,c)=>{const s=o.value,d=i.left._zod.run({value:s,issues:[]},c),h=i.right._zod.run({value:s,issues:[]},c);return d instanceof Promise||h instanceof Promise?Promise.all([d,h]).then(([y,S])=>ch(o,y,S)):ch(o,d,h)}});function Ac(n,i){if(n===i)return{valid:!0,data:n};if(n instanceof Date&&i instanceof Date&&+n==+i)return{valid:!0,data:n};if(ii(n)&&ii(i)){const o=Object.keys(i),c=Object.keys(n).filter(d=>o.indexOf(d)!==-1),s={...n,...i};for(const d of c){const h=Ac(n[d],i[d]);if(!h.valid)return{valid:!1,mergeErrorPath:[d,...h.mergeErrorPath]};s[d]=h.data}return{valid:!0,data:s}}if(Array.isArray(n)&&Array.isArray(i)){if(n.length!==i.length)return{valid:!1,mergeErrorPath:[]};const o=[];for(let c=0;c<n.length;c++){const s=n[c],d=i[c],h=Ac(s,d);if(!h.valid)return{valid:!1,mergeErrorPath:[c,...h.mergeErrorPath]};o.push(h.data)}return{valid:!0,data:o}}return{valid:!1,mergeErrorPath:[]}}function ch(n,i,o){const c=new Map;let s;for(const p of i.issues)if(p.code==="unrecognized_keys"){s??(s=p);for(const y of p.keys)c.has(y)||c.set(y,{}),c.get(y).l=!0}else n.issues.push(p);for(const p of o.issues)if(p.code==="unrecognized_keys")for(const y of p.keys)c.has(y)||c.set(y,{}),c.get(y).r=!0;else n.issues.push(p);const d=[...c].filter(([,p])=>p.l&&p.r).map(([p])=>p);if(d.length&&s&&n.issues.push({...s,keys:d}),tl(n))return n;const h=Ac(i.value,o.value);if(!h.valid)throw new Error(`Unmergable intersection. Error path: ${JSON.stringify(h.mergeErrorPath)}`);return n.value=h.data,n}const j1=D("$ZodEnum",(n,i)=>{we.init(n,i);const o=Bh(i.entries),c=new Set(o);n._zod.values=c,n._zod.pattern=new RegExp(`^(${o.filter(s=>kg.has(typeof s)).map(s=>typeof s=="string"?ll(s):s.toString()).join("|")})$`),n._zod.parse=(s,d)=>{const h=s.value;return c.has(h)||s.issues.push({code:"invalid_value",values:o,input:h,inst:n}),s}}),D1=D("$ZodLiteral",(n,i)=>{if(we.init(n,i),i.values.length===0)throw new Error("Cannot create literal schema with no valid values");const o=new Set(i.values);n._zod.values=o,n._zod.pattern=new RegExp(`^(${i.values.map(c=>typeof c=="string"?ll(c):c?ll(c.toString()):String(c)).join("|")})$`),n._zod.parse=(c,s)=>{const d=c.value;return o.has(d)||c.issues.push({code:"invalid_value",values:i.values,input:d,inst:n}),c}}),M1=D("$ZodTransform",(n,i)=>{we.init(n,i),n._zod.parse=(o,c)=>{if(c.direction==="backward")throw new Zh(n.constructor.name);const s=i.transform(o.value,o);if(c.async)return(s instanceof Promise?s:Promise.resolve(s)).then(h=>(o.value=h,o));if(s instanceof Promise)throw new nl;return o.value=s,o}});function sh(n,i){return n.issues.length&&i===void 0?{issues:[],value:void 0}:n}const e0=D("$ZodOptional",(n,i)=>{we.init(n,i),n._zod.optin="optional",n._zod.optout="optional",re(n._zod,"values",()=>i.innerType._zod.values?new Set([...i.innerType._zod.values,void 0]):void 0),re(n._zod,"pattern",()=>{const o=i.innerType._zod.pattern;return o?new RegExp(`^(${Lc(o.source)})?$`):void 0}),n._zod.parse=(o,c)=>{if(i.innerType._zod.optin==="optional"){const s=i.innerType._zod.run(o,c);return s instanceof Promise?s.then(d=>sh(d,o.value)):sh(s,o.value)}return o.value===void 0?o:i.innerType._zod.run(o,c)}}),w1=D("$ZodExactOptional",(n,i)=>{e0.init(n,i),re(n._zod,"values",()=>i.innerType._zod.values),re(n._zod,"pattern",()=>i.innerType._zod.pattern),n._zod.parse=(o,c)=>i.innerType._zod.run(o,c)}),U1=D("$ZodNullable",(n,i)=>{we.init(n,i),re(n._zod,"optin",()=>i.innerType._zod.optin),re(n._zod,"optout",()=>i.innerType._zod.optout),re(n._zod,"pattern",()=>{const o=i.innerType._zod.pattern;return o?new RegExp(`^(${Lc(o.source)}|null)$`):void 0}),re(n._zod,"values",()=>i.innerType._zod.values?new Set([...i.innerType._zod.values,null]):void 0),n._zod.parse=(o,c)=>o.value===null?o:i.innerType._zod.run(o,c)}),C1=D("$ZodDefault",(n,i)=>{we.init(n,i),n._zod.optin="optional",re(n._zod,"values",()=>i.innerType._zod.values),n._zod.parse=(o,c)=>{if(c.direction==="backward")return i.innerType._zod.run(o,c);if(o.value===void 0)return o.value=i.defaultValue,o;const s=i.innerType._zod.run(o,c);return s instanceof Promise?s.then(d=>fh(d,i)):fh(s,i)}});function fh(n,i){return n.value===void 0&&(n.value=i.defaultValue),n}const Z1=D("$ZodPrefault",(n,i)=>{we.init(n,i),n._zod.optin="optional",re(n._zod,"values",()=>i.innerType._zod.values),n._zod.parse=(o,c)=>(c.direction==="backward"||o.value===void 0&&(o.value=i.defaultValue),i.innerType._zod.run(o,c))}),R1=D("$ZodNonOptional",(n,i)=>{we.init(n,i),re(n._zod,"values",()=>{const o=i.innerType._zod.values;return o?new Set([...o].filter(c=>c!==void 0)):void 0}),n._zod.parse=(o,c)=>{const s=i.innerType._zod.run(o,c);return s instanceof Promise?s.then(d=>dh(d,n)):dh(s,n)}});function dh(n,i){return!n.issues.length&&n.value===void 0&&n.issues.push({code:"invalid_type",expected:"nonoptional",input:n.value,inst:i}),n}const B1=D("$ZodCatch",(n,i)=>{we.init(n,i),re(n._zod,"optin",()=>i.innerType._zod.optin),re(n._zod,"optout",()=>i.innerType._zod.optout),re(n._zod,"values",()=>i.innerType._zod.values),n._zod.parse=(o,c)=>{if(c.direction==="backward")return i.innerType._zod.run(o,c);const s=i.innerType._zod.run(o,c);return s instanceof Promise?s.then(d=>(o.value=d.value,d.issues.length&&(o.value=i.catchValue({...o,error:{issues:d.issues.map(h=>dn(h,c,fn()))},input:o.value}),o.issues=[]),o)):(o.value=s.value,s.issues.length&&(o.value=i.catchValue({...o,error:{issues:s.issues.map(d=>dn(d,c,fn()))},input:o.value}),o.issues=[]),o)}}),L1=D("$ZodPipe",(n,i)=>{we.init(n,i),re(n._zod,"values",()=>i.in._zod.values),re(n._zod,"optin",()=>i.in._zod.optin),re(n._zod,"optout",()=>i.out._zod.optout),re(n._zod,"propValues",()=>i.in._zod.propValues),n._zod.parse=(o,c)=>{if(c.direction==="backward"){const d=i.out._zod.run(o,c);return d instanceof Promise?d.then(h=>Du(h,i.in,c)):Du(d,i.in,c)}const s=i.in._zod.run(o,c);return s instanceof Promise?s.then(d=>Du(d,i.out,c)):Du(s,i.out,c)}});function Du(n,i,o){return n.issues.length?(n.aborted=!0,n):i._zod.run({value:n.value,issues:n.issues},o)}const q1=D("$ZodReadonly",(n,i)=>{we.init(n,i),re(n._zod,"propValues",()=>i.innerType._zod.propValues),re(n._zod,"values",()=>i.innerType._zod.values),re(n._zod,"optin",()=>{var o,c;return(c=(o=i.innerType)==null?void 0:o._zod)==null?void 0:c.optin}),re(n._zod,"optout",()=>{var o,c;return(c=(o=i.innerType)==null?void 0:o._zod)==null?void 0:c.optout}),n._zod.parse=(o,c)=>{if(c.direction==="backward")return i.innerType._zod.run(o,c);const s=i.innerType._zod.run(o,c);return s instanceof Promise?s.then(mh):mh(s)}});function mh(n){return n.value=Object.freeze(n.value),n}const H1=D("$ZodCustom",(n,i)=>{ft.init(n,i),we.init(n,i),n._zod.parse=(o,c)=>o,n._zod.check=o=>{const c=o.value,s=i.fn(c);if(s instanceof Promise)return s.then(d=>hh(d,o,c,n));hh(s,o,c,n)}});function hh(n,i,o,c){if(!n){const s={code:"custom",input:o,inst:c,path:[...c._zod.def.path??[]],continue:!c._zod.def.abort};c._zod.def.params&&(s.params=c._zod.def.params),i.issues.push(ui(s))}}var ph;class k1{constructor(){this._map=new WeakMap,this._idmap=new Map}add(i,...o){const c=o[0];return this._map.set(i,c),c&&typeof c=="object"&&"id"in c&&this._idmap.set(c.id,i),this}clear(){return this._map=new WeakMap,this._idmap=new Map,this}remove(i){const o=this._map.get(i);return o&&typeof o=="object"&&"id"in o&&this._idmap.delete(o.id),this._map.delete(i),this}get(i){const o=i._zod.parent;if(o){const c={...this.get(o)??{}};delete c.id;const s={...c,...this._map.get(i)};return Object.keys(s).length?s:void 0}return this._map.get(i)}has(i){return this._map.has(i)}}function V1(){return new k1}(ph=globalThis).__zod_globalRegistry??(ph.__zod_globalRegistry=V1());const ai=globalThis.__zod_globalRegistry;function G1(n,i){return new n({type:"string",...q(i)})}function Y1(n,i){return new n({type:"string",format:"email",check:"string_format",abort:!1,...q(i)})}function vh(n,i){return new n({type:"string",format:"guid",check:"string_format",abort:!1,...q(i)})}function X1(n,i){return new n({type:"string",format:"uuid",check:"string_format",abort:!1,...q(i)})}function Q1(n,i){return new n({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v4",...q(i)})}function J1(n,i){return new n({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v6",...q(i)})}function $1(n,i){return new n({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v7",...q(i)})}function K1(n,i){return new n({type:"string",format:"url",check:"string_format",abort:!1,...q(i)})}function F1(n,i){return new n({type:"string",format:"emoji",check:"string_format",abort:!1,...q(i)})}function W1(n,i){return new n({type:"string",format:"nanoid",check:"string_format",abort:!1,...q(i)})}function I1(n,i){return new n({type:"string",format:"cuid",check:"string_format",abort:!1,...q(i)})}function P1(n,i){return new n({type:"string",format:"cuid2",check:"string_format",abort:!1,...q(i)})}function eb(n,i){return new n({type:"string",format:"ulid",check:"string_format",abort:!1,...q(i)})}function tb(n,i){return new n({type:"string",format:"xid",check:"string_format",abort:!1,...q(i)})}function ab(n,i){return new n({type:"string",format:"ksuid",check:"string_format",abort:!1,...q(i)})}function nb(n,i){return new n({type:"string",format:"ipv4",check:"string_format",abort:!1,...q(i)})}function lb(n,i){return new n({type:"string",format:"ipv6",check:"string_format",abort:!1,...q(i)})}function ib(n,i){return new n({type:"string",format:"cidrv4",check:"string_format",abort:!1,...q(i)})}function ub(n,i){return new n({type:"string",format:"cidrv6",check:"string_format",abort:!1,...q(i)})}function ob(n,i){return new n({type:"string",format:"base64",check:"string_format",abort:!1,...q(i)})}function rb(n,i){return new n({type:"string",format:"base64url",check:"string_format",abort:!1,...q(i)})}function cb(n,i){return new n({type:"string",format:"e164",check:"string_format",abort:!1,...q(i)})}function sb(n,i){return new n({type:"string",format:"jwt",check:"string_format",abort:!1,...q(i)})}function fb(n,i){return new n({type:"string",format:"datetime",check:"string_format",offset:!1,local:!1,precision:null,...q(i)})}function db(n,i){return new n({type:"string",format:"date",check:"string_format",...q(i)})}function mb(n,i){return new n({type:"string",format:"time",check:"string_format",precision:null,...q(i)})}function hb(n,i){return new n({type:"string",format:"duration",check:"string_format",...q(i)})}function pb(n,i){return new n({type:"number",checks:[],...q(i)})}function vb(n,i){return new n({type:"number",check:"number_format",abort:!1,format:"safeint",...q(i)})}function gb(n,i){return new n({type:"boolean",...q(i)})}function yb(n){return new n({type:"unknown"})}function bb(n,i){return new n({type:"never",...q(i)})}function gh(n,i){return new $h({check:"less_than",...q(i),value:n,inclusive:!1})}function zc(n,i){return new $h({check:"less_than",...q(i),value:n,inclusive:!0})}function yh(n,i){return new Kh({check:"greater_than",...q(i),value:n,inclusive:!1})}function Ec(n,i){return new Kh({check:"greater_than",...q(i),value:n,inclusive:!0})}function bh(n,i){return new Zy({check:"multiple_of",...q(i),value:n})}function t0(n,i){return new By({check:"max_length",...q(i),maximum:n})}function Hu(n,i){return new Ly({check:"min_length",...q(i),minimum:n})}function a0(n,i){return new qy({check:"length_equals",...q(i),length:n})}function _b(n,i){return new Hy({check:"string_format",format:"regex",...q(i),pattern:n})}function Sb(n){return new ky({check:"string_format",format:"lowercase",...q(n)})}function zb(n){return new Vy({check:"string_format",format:"uppercase",...q(n)})}function Eb(n,i){return new Gy({check:"string_format",format:"includes",...q(i),includes:n})}function xb(n,i){return new Yy({check:"string_format",format:"starts_with",...q(i),prefix:n})}function Tb(n,i){return new Xy({check:"string_format",format:"ends_with",...q(i),suffix:n})}function il(n){return new Qy({check:"overwrite",tx:n})}function Ab(n){return il(i=>i.normalize(n))}function Ob(){return il(n=>n.trim())}function Nb(){return il(n=>n.toLowerCase())}function jb(){return il(n=>n.toUpperCase())}function Db(){return il(n=>qg(n))}function Mb(n,i,o){return new n({type:"array",element:i,...q(o)})}function wb(n,i,o){return new n({type:"custom",check:"custom",fn:i,...q(o)})}function Ub(n){const i=Cb(o=>(o.addIssue=c=>{if(typeof c=="string")o.issues.push(ui(c,o.value,i._zod.def));else{const s=c;s.fatal&&(s.continue=!1),s.code??(s.code="custom"),s.input??(s.input=o.value),s.inst??(s.inst=i),s.continue??(s.continue=!i._zod.def.abort),o.issues.push(ui(s))}},n(o.value,o)));return i}function Cb(n,i){const o=new ft({check:"custom",...q(i)});return o._zod.check=n,o}function n0(n){let i=(n==null?void 0:n.target)??"draft-2020-12";return i==="draft-4"&&(i="draft-04"),i==="draft-7"&&(i="draft-07"),{processors:n.processors??{},metadataRegistry:(n==null?void 0:n.metadata)??ai,target:i,unrepresentable:(n==null?void 0:n.unrepresentable)??"throw",override:(n==null?void 0:n.override)??(()=>{}),io:(n==null?void 0:n.io)??"output",counter:0,seen:new Map,cycles:(n==null?void 0:n.cycles)??"ref",reused:(n==null?void 0:n.reused)??"inline",external:(n==null?void 0:n.external)??void 0}}function Ie(n,i,o={path:[],schemaPath:[]}){var A,O;var c;const s=n._zod.def,d=i.seen.get(n);if(d)return d.count++,o.schemaPath.includes(n)&&(d.cycle=o.path),d.schema;const h={schema:{},count:1,cycle:void 0,path:o.path};i.seen.set(n,h);const p=(O=(A=n._zod).toJSONSchema)==null?void 0:O.call(A);if(p)h.schema=p;else{const C={...o,schemaPath:[...o.schemaPath,n],path:o.path};if(n._zod.processJSONSchema)n._zod.processJSONSchema(i,h.schema,C);else{const X=h.schema,G=i.processors[s.type];if(!G)throw new Error(`[toJSONSchema]: Non-representable type encountered: ${s.type}`);G(n,i,X,C)}const L=n._zod.parent;L&&(h.ref||(h.ref=L),Ie(L,i,C),i.seen.get(L).isParent=!0)}const y=i.metadataRegistry.get(n);return y&&Object.assign(h.schema,y),i.io==="input"&&at(n)&&(delete h.schema.examples,delete h.schema.default),i.io==="input"&&h.schema._prefault&&((c=h.schema).default??(c.default=h.schema._prefault)),delete h.schema._prefault,i.seen.get(n).schema}function l0(n,i){var h,p,y,S;const o=n.seen.get(i);if(!o)throw new Error("Unprocessed schema. This is a bug in Zod.");const c=new Map;for(const A of n.seen.entries()){const O=(h=n.metadataRegistry.get(A[0]))==null?void 0:h.id;if(O){const C=c.get(O);if(C&&C!==A[0])throw new Error(`Duplicate schema id "${O}" detected during JSON Schema conversion. Two different schemas cannot share the same id when converted together.`);c.set(O,A[0])}}const s=A=>{var G;const O=n.target==="draft-2020-12"?"$defs":"definitions";if(n.external){const pe=(G=n.external.registry.get(A[0]))==null?void 0:G.id,xt=n.external.uri??(Qe=>Qe);if(pe)return{ref:xt(pe)};const xe=A[1].defId??A[1].schema.id??`schema${n.counter++}`;return A[1].defId=xe,{defId:xe,ref:`${xt("__shared")}#/${O}/${xe}`}}if(A[1]===o)return{ref:"#"};const L=`#/${O}/`,X=A[1].schema.id??`__schema${n.counter++}`;return{defId:X,ref:L+X}},d=A=>{if(A[1].schema.$ref)return;const O=A[1],{ref:C,defId:L}=s(A);O.def={...O.schema},L&&(O.defId=L);const X=O.schema;for(const G in X)delete X[G];X.$ref=C};if(n.cycles==="throw")for(const A of n.seen.entries()){const O=A[1];if(O.cycle)throw new Error(`Cycle detected: #/${(p=O.cycle)==null?void 0:p.join("/")}/<root>
136
137Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.`)}for(const A of n.seen.entries()){const O=A[1];if(i===A[0]){d(A);continue}if(n.external){const L=(y=n.external.registry.get(A[0]))==null?void 0:y.id;if(i!==A[0]&&L){d(A);continue}}if((S=n.metadataRegistry.get(A[0]))==null?void 0:S.id){d(A);continue}if(O.cycle){d(A);continue}if(O.count>1&&n.reused==="ref"){d(A);continue}}}function i0(n,i){var h,p,y;const o=n.seen.get(i);if(!o)throw new Error("Unprocessed schema. This is a bug in Zod.");const c=S=>{const A=n.seen.get(S);if(A.ref===null)return;const O=A.def??A.schema,C={...O},L=A.ref;if(A.ref=null,L){c(L);const G=n.seen.get(L),pe=G.schema;if(pe.$ref&&(n.target==="draft-07"||n.target==="draft-04"||n.target==="openapi-3.0")?(O.allOf=O.allOf??[],O.allOf.push(pe)):Object.assign(O,pe),Object.assign(O,C),S._zod.parent===L)for(const xe in O)xe==="$ref"||xe==="allOf"||xe in C||delete O[xe];if(pe.$ref&&G.def)for(const xe in O)xe==="$ref"||xe==="allOf"||xe in G.def&&JSON.stringify(O[xe])===JSON.stringify(G.def[xe])&&delete O[xe]}const X=S._zod.parent;if(X&&X!==L){c(X);const G=n.seen.get(X);if(G!=null&&G.schema.$ref&&(O.$ref=G.schema.$ref,G.def))for(const pe in O)pe==="$ref"||pe==="allOf"||pe in G.def&&JSON.stringify(O[pe])===JSON.stringify(G.def[pe])&&delete O[pe]}n.override({zodSchema:S,jsonSchema:O,path:A.path??[]})};for(const S of[...n.seen.entries()].reverse())c(S[0]);const s={};if(n.target==="draft-2020-12"?s.$schema="https://json-schema.org/draft/2020-12/schema":n.target==="draft-07"?s.$schema="http://json-schema.org/draft-07/schema#":n.target==="draft-04"?s.$schema="http://json-schema.org/draft-04/schema#":n.target,(h=n.external)!=null&&h.uri){const S=(p=n.external.registry.get(i))==null?void 0:p.id;if(!S)throw new Error("Schema is missing an `id` property");s.$id=n.external.uri(S)}Object.assign(s,o.def??o.schema);const d=((y=n.external)==null?void 0:y.defs)??{};for(const S of n.seen.entries()){const A=S[1];A.def&&A.defId&&(d[A.defId]=A.def)}n.external||Object.keys(d).length>0&&(n.target==="draft-2020-12"?s.$defs=d:s.definitions=d);try{const S=JSON.parse(JSON.stringify(s));return Object.defineProperty(S,"~standard",{value:{...i["~standard"],jsonSchema:{input:ku(i,"input",n.processors),output:ku(i,"output",n.processors)}},enumerable:!1,writable:!1}),S}catch{throw new Error("Error converting schema to JSON.")}}function at(n,i){const o=i??{seen:new Set};if(o.seen.has(n))return!1;o.seen.add(n);const c=n._zod.def;if(c.type==="transform")return!0;if(c.type==="array")return at(c.element,o);if(c.type==="set")return at(c.valueType,o);if(c.type==="lazy")return at(c.getter(),o);if(c.type==="promise"||c.type==="optional"||c.type==="nonoptional"||c.type==="nullable"||c.type==="readonly"||c.type==="default"||c.type==="prefault")return at(c.innerType,o);if(c.type==="intersection")return at(c.left,o)||at(c.right,o);if(c.type==="record"||c.type==="map")return at(c.keyType,o)||at(c.valueType,o);if(c.type==="pipe")return at(c.in,o)||at(c.out,o);if(c.type==="object"){for(const s in c.shape)if(at(c.shape[s],o))return!0;return!1}if(c.type==="union"){for(const s of c.options)if(at(s,o))return!0;return!1}if(c.type==="tuple"){for(const s of c.items)if(at(s,o))return!0;return!!(c.rest&&at(c.rest,o))}return!1}const Zb=(n,i={})=>o=>{const c=n0({...o,processors:i});return Ie(n,c),l0(c,n),i0(c,n)},ku=(n,i,o={})=>c=>{const{libraryOptions:s,target:d}=c??{},h=n0({...s??{},target:d,io:i,processors:o});return Ie(n,h),l0(h,n),i0(h,n)},Rb={guid:"uuid",url:"uri",datetime:"date-time",json_string:"json-string",regex:""},Bb=(n,i,o,c)=>{const s=o;s.type="string";const{minimum:d,maximum:h,format:p,patterns:y,contentEncoding:S}=n._zod.bag;if(typeof d=="number"&&(s.minLength=d),typeof h=="number"&&(s.maxLength=h),p&&(s.format=Rb[p]??p,s.format===""&&delete s.format,p==="time"&&delete s.format),S&&(s.contentEncoding=S),y&&y.size>0){const A=[...y];A.length===1?s.pattern=A[0].source:A.length>1&&(s.allOf=[...A.map(O=>({...i.target==="draft-07"||i.target==="draft-04"||i.target==="openapi-3.0"?{type:"string"}:{},pattern:O.source}))])}},Lb=(n,i,o,c)=>{const s=o,{minimum:d,maximum:h,format:p,multipleOf:y,exclusiveMaximum:S,exclusiveMinimum:A}=n._zod.bag;typeof p=="string"&&p.includes("int")?s.type="integer":s.type="number",typeof A=="number"&&(i.target==="draft-04"||i.target==="openapi-3.0"?(s.minimum=A,s.exclusiveMinimum=!0):s.exclusiveMinimum=A),typeof d=="number"&&(s.minimum=d,typeof A=="number"&&i.target!=="draft-04"&&(A>=d?delete s.minimum:delete s.exclusiveMinimum)),typeof S=="number"&&(i.target==="draft-04"||i.target==="openapi-3.0"?(s.maximum=S,s.exclusiveMaximum=!0):s.exclusiveMaximum=S),typeof h=="number"&&(s.maximum=h,typeof S=="number"&&i.target!=="draft-04"&&(S<=h?delete s.maximum:delete s.exclusiveMaximum)),typeof y=="number"&&(s.multipleOf=y)},qb=(n,i,o,c)=>{o.type="boolean"},Hb=(n,i,o,c)=>{o.not={}},kb=(n,i,o,c)=>{},Vb=(n,i,o,c)=>{const s=n._zod.def,d=Bh(s.entries);d.every(h=>typeof h=="number")&&(o.type="number"),d.every(h=>typeof h=="string")&&(o.type="string"),o.enum=d},Gb=(n,i,o,c)=>{const s=n._zod.def,d=[];for(const h of s.values)if(h===void 0){if(i.unrepresentable==="throw")throw new Error("Literal `undefined` cannot be represented in JSON Schema")}else if(typeof h=="bigint"){if(i.unrepresentable==="throw")throw new Error("BigInt literals cannot be represented in JSON Schema");d.push(Number(h))}else d.push(h);if(d.length!==0)if(d.length===1){const h=d[0];o.type=h===null?"null":typeof h,i.target==="draft-04"||i.target==="openapi-3.0"?o.enum=[h]:o.const=h}else d.every(h=>typeof h=="number")&&(o.type="number"),d.every(h=>typeof h=="string")&&(o.type="string"),d.every(h=>typeof h=="boolean")&&(o.type="boolean"),d.every(h=>h===null)&&(o.type="null"),o.enum=d},Yb=(n,i,o,c)=>{if(i.unrepresentable==="throw")throw new Error("Custom types cannot be represented in JSON Schema")},Xb=(n,i,o,c)=>{if(i.unrepresentable==="throw")throw new Error("Transforms cannot be represented in JSON Schema")},Qb=(n,i,o,c)=>{const s=o,d=n._zod.def,{minimum:h,maximum:p}=n._zod.bag;typeof h=="number"&&(s.minItems=h),typeof p=="number"&&(s.maxItems=p),s.type="array",s.items=Ie(d.element,i,{...c,path:[...c.path,"items"]})},Jb=(n,i,o,c)=>{var S;const s=o,d=n._zod.def;s.type="object",s.properties={};const h=d.shape;for(const A in h)s.properties[A]=Ie(h[A],i,{...c,path:[...c.path,"properties",A]});const p=new Set(Object.keys(h)),y=new Set([...p].filter(A=>{const O=d.shape[A]._zod;return i.io==="input"?O.optin===void 0:O.optout===void 0}));y.size>0&&(s.required=Array.from(y)),((S=d.catchall)==null?void 0:S._zod.def.type)==="never"?s.additionalProperties=!1:d.catchall?d.catchall&&(s.additionalProperties=Ie(d.catchall,i,{...c,path:[...c.path,"additionalProperties"]})):i.io==="output"&&(s.additionalProperties=!1)},$b=(n,i,o,c)=>{const s=n._zod.def,d=s.inclusive===!1,h=s.options.map((p,y)=>Ie(p,i,{...c,path:[...c.path,d?"oneOf":"anyOf",y]}));d?o.oneOf=h:o.anyOf=h},Kb=(n,i,o,c)=>{const s=n._zod.def,d=Ie(s.left,i,{...c,path:[...c.path,"allOf",0]}),h=Ie(s.right,i,{...c,path:[...c.path,"allOf",1]}),p=S=>"allOf"in S&&Object.keys(S).length===1,y=[...p(d)?d.allOf:[d],...p(h)?h.allOf:[h]];o.allOf=y},Fb=(n,i,o,c)=>{const s=n._zod.def,d=Ie(s.innerType,i,c),h=i.seen.get(n);i.target==="openapi-3.0"?(h.ref=s.innerType,o.nullable=!0):o.anyOf=[d,{type:"null"}]},Wb=(n,i,o,c)=>{const s=n._zod.def;Ie(s.innerType,i,c);const d=i.seen.get(n);d.ref=s.innerType},Ib=(n,i,o,c)=>{const s=n._zod.def;Ie(s.innerType,i,c);const d=i.seen.get(n);d.ref=s.innerType,o.default=JSON.parse(JSON.stringify(s.defaultValue))},Pb=(n,i,o,c)=>{const s=n._zod.def;Ie(s.innerType,i,c);const d=i.seen.get(n);d.ref=s.innerType,i.io==="input"&&(o._prefault=JSON.parse(JSON.stringify(s.defaultValue)))},e_=(n,i,o,c)=>{const s=n._zod.def;Ie(s.innerType,i,c);const d=i.seen.get(n);d.ref=s.innerType;let h;try{h=s.catchValue(void 0)}catch{throw new Error("Dynamic catch values are not supported in JSON Schema")}o.default=h},t_=(n,i,o,c)=>{const s=n._zod.def,d=i.io==="input"?s.in._zod.def.type==="transform"?s.out:s.in:s.out;Ie(d,i,c);const h=i.seen.get(n);h.ref=d},a_=(n,i,o,c)=>{const s=n._zod.def;Ie(s.innerType,i,c);const d=i.seen.get(n);d.ref=s.innerType,o.readOnly=!0},u0=(n,i,o,c)=>{const s=n._zod.def;Ie(s.innerType,i,c);const d=i.seen.get(n);d.ref=s.innerType},n_=D("ZodISODateTime",(n,i)=>{u1.init(n,i),Ae.init(n,i)});function l_(n){return fb(n_,n)}const i_=D("ZodISODate",(n,i)=>{o1.init(n,i),Ae.init(n,i)});function u_(n){return db(i_,n)}const o_=D("ZodISOTime",(n,i)=>{r1.init(n,i),Ae.init(n,i)});function r_(n){return mb(o_,n)}const c_=D("ZodISODuration",(n,i)=>{c1.init(n,i),Ae.init(n,i)});function s_(n){return hb(c_,n)}const f_=(n,i)=>{Vh.init(n,i),n.name="ZodError",Object.defineProperties(n,{format:{value:o=>Ig(n,o)},flatten:{value:o=>Wg(n,o)},addIssue:{value:o=>{n.issues.push(o),n.message=JSON.stringify(n.issues,Tc,2)}},addIssues:{value:o=>{n.issues.push(...o),n.message=JSON.stringify(n.issues,Tc,2)}},isEmpty:{get(){return n.issues.length===0}}})},Lt=D("ZodError",f_,{Parent:Error}),d_=Hc(Lt),m_=kc(Lt),h_=Qu(Lt),p_=Ju(Lt),v_=ty(Lt),g_=ay(Lt),y_=ny(Lt),b_=ly(Lt),__=iy(Lt),S_=uy(Lt),z_=oy(Lt),E_=ry(Lt),Ue=D("ZodType",(n,i)=>(we.init(n,i),Object.assign(n["~standard"],{jsonSchema:{input:ku(n,"input"),output:ku(n,"output")}}),n.toJSONSchema=Zb(n,{}),n.def=i,n.type=i.type,Object.defineProperty(n,"_def",{value:i}),n.check=(...o)=>n.clone(Ga(i,{checks:[...i.checks??[],...o.map(c=>typeof c=="function"?{_zod:{check:c,def:{check:"custom"},onattach:[]}}:c)]}),{parent:!0}),n.with=n.check,n.clone=(o,c)=>Ya(n,o,c),n.brand=()=>n,n.register=((o,c)=>(o.add(n,c),n)),n.parse=(o,c)=>d_(n,o,c,{callee:n.parse}),n.safeParse=(o,c)=>h_(n,o,c),n.parseAsync=async(o,c)=>m_(n,o,c,{callee:n.parseAsync}),n.safeParseAsync=async(o,c)=>p_(n,o,c),n.spa=n.safeParseAsync,n.encode=(o,c)=>v_(n,o,c),n.decode=(o,c)=>g_(n,o,c),n.encodeAsync=async(o,c)=>y_(n,o,c),n.decodeAsync=async(o,c)=>b_(n,o,c),n.safeEncode=(o,c)=>__(n,o,c),n.safeDecode=(o,c)=>S_(n,o,c),n.safeEncodeAsync=async(o,c)=>z_(n,o,c),n.safeDecodeAsync=async(o,c)=>E_(n,o,c),n.refine=(o,c)=>n.check(g2(o,c)),n.superRefine=o=>n.check(y2(o)),n.overwrite=o=>n.check(il(o)),n.optional=()=>Eh(n),n.exactOptional=()=>i2(n),n.nullable=()=>xh(n),n.nullish=()=>Eh(xh(n)),n.nonoptional=o=>f2(n,o),n.array=()=>$_(n),n.or=o=>W_([n,o]),n.and=o=>P_(n,o),n.transform=o=>Th(n,n2(o)),n.default=o=>r2(n,o),n.prefault=o=>s2(n,o),n.catch=o=>m2(n,o),n.pipe=o=>Th(n,o),n.readonly=()=>v2(n),n.describe=o=>{const c=n.clone();return ai.add(c,{description:o}),c},Object.defineProperty(n,"description",{get(){var o;return(o=ai.get(n))==null?void 0:o.description},configurable:!0}),n.meta=(...o)=>{if(o.length===0)return ai.get(n);const c=n.clone();return ai.add(c,o[0]),c},n.isOptional=()=>n.safeParse(void 0).success,n.isNullable=()=>n.safeParse(null).success,n.apply=o=>o(n),n)),o0=D("_ZodString",(n,i)=>{Vc.init(n,i),Ue.init(n,i),n._zod.processJSONSchema=(c,s,d)=>Bb(n,c,s);const o=n._zod.bag;n.format=o.format??null,n.minLength=o.minimum??null,n.maxLength=o.maximum??null,n.regex=(...c)=>n.check(_b(...c)),n.includes=(...c)=>n.check(Eb(...c)),n.startsWith=(...c)=>n.check(xb(...c)),n.endsWith=(...c)=>n.check(Tb(...c)),n.min=(...c)=>n.check(Hu(...c)),n.max=(...c)=>n.check(t0(...c)),n.length=(...c)=>n.check(a0(...c)),n.nonempty=(...c)=>n.check(Hu(1,...c)),n.lowercase=c=>n.check(Sb(c)),n.uppercase=c=>n.check(zb(c)),n.trim=()=>n.check(Ob()),n.normalize=(...c)=>n.check(Ab(...c)),n.toLowerCase=()=>n.check(Nb()),n.toUpperCase=()=>n.check(jb()),n.slugify=()=>n.check(Db())}),x_=D("ZodString",(n,i)=>{Vc.init(n,i),o0.init(n,i),n.email=o=>n.check(Y1(T_,o)),n.url=o=>n.check(K1(A_,o)),n.jwt=o=>n.check(sb(k_,o)),n.emoji=o=>n.check(F1(O_,o)),n.guid=o=>n.check(vh(_h,o)),n.uuid=o=>n.check(X1(Mu,o)),n.uuidv4=o=>n.check(Q1(Mu,o)),n.uuidv6=o=>n.check(J1(Mu,o)),n.uuidv7=o=>n.check($1(Mu,o)),n.nanoid=o=>n.check(W1(N_,o)),n.guid=o=>n.check(vh(_h,o)),n.cuid=o=>n.check(I1(j_,o)),n.cuid2=o=>n.check(P1(D_,o)),n.ulid=o=>n.check(eb(M_,o)),n.base64=o=>n.check(ob(L_,o)),n.base64url=o=>n.check(rb(q_,o)),n.xid=o=>n.check(tb(w_,o)),n.ksuid=o=>n.check(ab(U_,o)),n.ipv4=o=>n.check(nb(C_,o)),n.ipv6=o=>n.check(lb(Z_,o)),n.cidrv4=o=>n.check(ib(R_,o)),n.cidrv6=o=>n.check(ub(B_,o)),n.e164=o=>n.check(cb(H_,o)),n.datetime=o=>n.check(l_(o)),n.date=o=>n.check(u_(o)),n.time=o=>n.check(r_(o)),n.duration=o=>n.check(s_(o))});function te(n){return G1(x_,n)}const Ae=D("ZodStringFormat",(n,i)=>{Ee.init(n,i),o0.init(n,i)}),T_=D("ZodEmail",(n,i)=>{Wy.init(n,i),Ae.init(n,i)}),_h=D("ZodGUID",(n,i)=>{Ky.init(n,i),Ae.init(n,i)}),Mu=D("ZodUUID",(n,i)=>{Fy.init(n,i),Ae.init(n,i)}),A_=D("ZodURL",(n,i)=>{Iy.init(n,i),Ae.init(n,i)}),O_=D("ZodEmoji",(n,i)=>{Py.init(n,i),Ae.init(n,i)}),N_=D("ZodNanoID",(n,i)=>{e1.init(n,i),Ae.init(n,i)}),j_=D("ZodCUID",(n,i)=>{t1.init(n,i),Ae.init(n,i)}),D_=D("ZodCUID2",(n,i)=>{a1.init(n,i),Ae.init(n,i)}),M_=D("ZodULID",(n,i)=>{n1.init(n,i),Ae.init(n,i)}),w_=D("ZodXID",(n,i)=>{l1.init(n,i),Ae.init(n,i)}),U_=D("ZodKSUID",(n,i)=>{i1.init(n,i),Ae.init(n,i)}),C_=D("ZodIPv4",(n,i)=>{s1.init(n,i),Ae.init(n,i)}),Z_=D("ZodIPv6",(n,i)=>{f1.init(n,i),Ae.init(n,i)}),R_=D("ZodCIDRv4",(n,i)=>{d1.init(n,i),Ae.init(n,i)}),B_=D("ZodCIDRv6",(n,i)=>{m1.init(n,i),Ae.init(n,i)}),L_=D("ZodBase64",(n,i)=>{h1.init(n,i),Ae.init(n,i)}),q_=D("ZodBase64URL",(n,i)=>{v1.init(n,i),Ae.init(n,i)}),H_=D("ZodE164",(n,i)=>{g1.init(n,i),Ae.init(n,i)}),k_=D("ZodJWT",(n,i)=>{b1.init(n,i),Ae.init(n,i)}),r0=D("ZodNumber",(n,i)=>{Wh.init(n,i),Ue.init(n,i),n._zod.processJSONSchema=(c,s,d)=>Lb(n,c,s),n.gt=(c,s)=>n.check(yh(c,s)),n.gte=(c,s)=>n.check(Ec(c,s)),n.min=(c,s)=>n.check(Ec(c,s)),n.lt=(c,s)=>n.check(gh(c,s)),n.lte=(c,s)=>n.check(zc(c,s)),n.max=(c,s)=>n.check(zc(c,s)),n.int=c=>n.check(Sh(c)),n.safe=c=>n.check(Sh(c)),n.positive=c=>n.check(yh(0,c)),n.nonnegative=c=>n.check(Ec(0,c)),n.negative=c=>n.check(gh(0,c)),n.nonpositive=c=>n.check(zc(0,c)),n.multipleOf=(c,s)=>n.check(bh(c,s)),n.step=(c,s)=>n.check(bh(c,s)),n.finite=()=>n;const o=n._zod.bag;n.minValue=Math.max(o.minimum??Number.NEGATIVE_INFINITY,o.exclusiveMinimum??Number.NEGATIVE_INFINITY)??null,n.maxValue=Math.min(o.maximum??Number.POSITIVE_INFINITY,o.exclusiveMaximum??Number.POSITIVE_INFINITY)??null,n.isInt=(o.format??"").includes("int")||Number.isSafeInteger(o.multipleOf??.5),n.isFinite=!0,n.format=o.format??null});function Vu(n){return pb(r0,n)}const V_=D("ZodNumberFormat",(n,i)=>{_1.init(n,i),r0.init(n,i)});function Sh(n){return vb(V_,n)}const G_=D("ZodBoolean",(n,i)=>{S1.init(n,i),Ue.init(n,i),n._zod.processJSONSchema=(o,c,s)=>qb(n,o,c)});function Gu(n){return gb(G_,n)}const Y_=D("ZodUnknown",(n,i)=>{z1.init(n,i),Ue.init(n,i),n._zod.processJSONSchema=(o,c,s)=>kb()});function zh(){return yb(Y_)}const X_=D("ZodNever",(n,i)=>{E1.init(n,i),Ue.init(n,i),n._zod.processJSONSchema=(o,c,s)=>Hb(n,o,c)});function Q_(n){return bb(X_,n)}const J_=D("ZodArray",(n,i)=>{x1.init(n,i),Ue.init(n,i),n._zod.processJSONSchema=(o,c,s)=>Qb(n,o,c,s),n.element=i.element,n.min=(o,c)=>n.check(Hu(o,c)),n.nonempty=o=>n.check(Hu(1,o)),n.max=(o,c)=>n.check(t0(o,c)),n.length=(o,c)=>n.check(a0(o,c)),n.unwrap=()=>n.element});function $_(n,i){return Mb(J_,n,i)}const K_=D("ZodObject",(n,i)=>{A1.init(n,i),Ue.init(n,i),n._zod.processJSONSchema=(o,c,s)=>Jb(n,o,c,s),re(n,"shape",()=>i.shape),n.keyof=()=>pa(Object.keys(n._zod.def.shape)),n.catchall=o=>n.clone({...n._zod.def,catchall:o}),n.passthrough=()=>n.clone({...n._zod.def,catchall:zh()}),n.loose=()=>n.clone({...n._zod.def,catchall:zh()}),n.strict=()=>n.clone({...n._zod.def,catchall:Q_()}),n.strip=()=>n.clone({...n._zod.def,catchall:void 0}),n.extend=o=>Qg(n,o),n.safeExtend=o=>Jg(n,o),n.merge=o=>$g(n,o),n.pick=o=>Yg(n,o),n.omit=o=>Xg(n,o),n.partial=(...o)=>Kg(c0,n,o[0]),n.required=(...o)=>Fg(s0,n,o[0])});function Gt(n,i){const o={type:"object",shape:n??{},...q(i)};return new K_(o)}const F_=D("ZodUnion",(n,i)=>{O1.init(n,i),Ue.init(n,i),n._zod.processJSONSchema=(o,c,s)=>$b(n,o,c,s),n.options=i.options});function W_(n,i){return new F_({type:"union",options:n,...q(i)})}const I_=D("ZodIntersection",(n,i)=>{N1.init(n,i),Ue.init(n,i),n._zod.processJSONSchema=(o,c,s)=>Kb(n,o,c,s)});function P_(n,i){return new I_({type:"intersection",left:n,right:i})}const Oc=D("ZodEnum",(n,i)=>{j1.init(n,i),Ue.init(n,i),n._zod.processJSONSchema=(c,s,d)=>Vb(n,c,s),n.enum=i.entries,n.options=Object.values(i.entries);const o=new Set(Object.keys(i.entries));n.extract=(c,s)=>{const d={};for(const h of c)if(o.has(h))d[h]=i.entries[h];else throw new Error(`Key ${h} not found in enum`);return new Oc({...i,checks:[],...q(s),entries:d})},n.exclude=(c,s)=>{const d={...i.entries};for(const h of c)if(o.has(h))delete d[h];else throw new Error(`Key ${h} not found in enum`);return new Oc({...i,checks:[],...q(s),entries:d})}});function pa(n,i){const o=Array.isArray(n)?Object.fromEntries(n.map(c=>[c,c])):n;return new Oc({type:"enum",entries:o,...q(i)})}const e2=D("ZodLiteral",(n,i)=>{D1.init(n,i),Ue.init(n,i),n._zod.processJSONSchema=(o,c,s)=>Gb(n,o,c),n.values=new Set(i.values),Object.defineProperty(n,"value",{get(){if
137(i.values.length>1)throw new Error("This schema contains multiple valid literal values. Use `.values` instead.");return i.values[0]}})});function t2(n,i){return new e2({type:"literal",values:Array.isArray(n)?n:[n],...q(i)})}const a2=D("ZodTransform",(n,i)=>{M1.init(n,i),Ue.init(n,i),n._zod.processJSONSchema=(o,c,s)=>Xb(n,o),n._zod.parse=(o,c)=>{if(c.direction==="backward")throw new Zh(n.constructor.name);o.addIssue=d=>{if(typeof d=="string")o.issues.push(ui(d,o.value,i));else{const h=d;h.fatal&&(h.continue=!1),h.code??(h.code="custom"),h.input??(h.input=o.value),h.inst??(h.inst=n),o.issues.push(ui(h))}};const s=i.transform(o.value,o);return s instanceof Promise?s.then(d=>(o.value=d,o)):(o.value=s,o)}});function n2(n){return new a2({type:"transform",transform:n})}const c0=D("ZodOptional",(n,i)=>{e0.init(n,i),Ue.init(n,i),n._zod.processJSONSchema=(o,c,s)=>u0(n,o,c,s),n.unwrap=()=>n._zod.def.innerType});function Eh(n){return new c0({type:"optional",innerType:n})}const l2=D("ZodExactOptional",(n,i)=>{w1.init(n,i),Ue.init(n,i),n._zod.processJSONSchema=(o,c,s)=>u0(n,o,c,s),n.unwrap=()=>n._zod.def.innerType});function i2(n){return new l2({type:"optional",innerType:n})}const u2=D("ZodNullable",(n,i)=>{U1.init(n,i),Ue.init(n,i),n._zod.processJSONSchema=(o,c,s)=>Fb(n,o,c,s),n.unwrap=()=>n._zod.def.innerType});function xh(n){return new u2({type:"nullable",innerType:n})}const o2=D("ZodDefault",(n,i)=>{C1.init(n,i),Ue.init(n,i),n._zod.processJSONSchema=(o,c,s)=>Ib(n,o,c,s),n.unwrap=()=>n._zod.def.innerType,n.removeDefault=n.unwrap});function r2(n,i){return new o2({type:"default",innerType:n,get defaultValue(){return typeof i=="function"?i():qh(i)}})}const c2=D("ZodPrefault",(n,i)=>{Z1.init(n,i),Ue.init(n,i),n._zod.processJSONSchema=(o,c,s)=>Pb(n,o,c,s),n.unwrap=()=>n._zod.def.innerType});function s2(n,i){return new c2({type:"prefault",innerType:n,get defaultValue(){return typeof i=="function"?i():qh(i)}})}const s0=D("ZodNonOptional",(n,i)=>{R1.init(n,i),Ue.init(n,i),n._zod.processJSONSchema=(o,c,s)=>Wb(n,o,c,s),n.unwrap=()=>n._zod.def.innerType});function f2(n,i){return new s0({type:"nonoptional",innerType:n,...q(i)})}const d2=D("ZodCatch",(n,i)=>{B1.init(n,i),Ue.init(n,i),n._zod.processJSONSchema=(o,c,s)=>e_(n,o,c,s),n.unwrap=()=>n._zod.def.innerType,n.removeCatch=n.unwrap});function m2(n,i){return new d2({type:"catch",innerType:n,catchValue:typeof i=="function"?i:()=>i})}const h2=D("ZodPipe",(n,i)=>{L1.init(n,i),Ue.init(n,i),n._zod.processJSONSchema=(o,c,s)=>t_(n,o,c,s),n.in=i.in,n.out=i.out});function Th(n,i){return new h2({type:"pipe",in:n,out:i})}const p2=D("ZodReadonly",(n,i)=>{q1.init(n,i),Ue.init(n,i),n._zod.processJSONSchema=(o,c,s)=>a_(n,o,c,s),n.unwrap=()=>n._zod.def.innerType});function v2(n){return new p2({type:"readonly",innerType:n})}const f0=D("ZodCustom",(n,i)=>{H1.init(n,i),Ue.init(n,i),n._zod.processJSONSchema=(o,c,s)=>Yb(n,o)});function g2(n,i={}){return wb(f0,n,i)}function y2(n){return Ub(n)}function b2(n,i={}){const o=new f0({type:"custom",check:"custom",fn:c=>c instanceof n,abort:!0,...q(i)});return o._zod.bag.Class=n,o._zod.check=c=>{c.value instanceof n||c.issues.push({code:"invalid_type",expected:n.name,input:c.value,inst:o,path:[...o._zod.def.path??[]]})},o}const QS=n=>{if(n)try{const{protocol:i}=new URL(n);return i==="http:"||i==="https:"?n:void 0}catch{return}},Gc=n=>{if(n!==n.trim())return!1;try{const{protocol:i}=new URL(n);return i==="http:"||i==="https:"}catch{return!1}},_2=[/\.vercel\.app$/i,/^fundacaolusobrasileira\./i,/^flb\./i],S2=n=>typeof window<"u"&&n===window.location.hostname?!0:_2.some(i=>i.test(n)),JS=n=>{if(!n)return null;const i=n.trim();if(!i)return null;if(i.startsWith("#/"))return{href:i.slice(1),isExternal:!1};if(i.startsWith("/")&&!i.startsWith("//"))return{href:i,isExternal:!1};let o;try{o=new URL(i)}catch{return null}return o.protocol!=="http:"&&o.protocol!=="https:"?null:S2(o.hostname)?o.pathname==="/"&&o.hash.startsWith("#/")?{href:o.hash.slice(1),isExternal:!1}:{href:`${o.pathname}${o.search}${o.hash}`||"/",isExternal:!1}:{href:i,isExternal:!0}},z2=Gt({email:te().email("Email inválido"),password:te().min(1,"Senha obrigatória")}),E2=Gt({name:te().min(2,"Nome deve ter pelo menos 2 caracteres").max(100,"Nome muito longo"),email:te().email("Email inválido"),password:te().min(8,"Senha deve ter pelo menos 8 caracteres").max(128,"Senha muito longa"),type:pa(["individual","institucional"])}),$S=Gt({password:te().min(8,"Senha deve ter pelo menos 8 caracteres").max(128,"Senha muito longa"),confirm:te()}).refine(n=>n.password===n.confirm,{message:"As senhas não coincidem",path:["confirm"]}),KS=Gt({registrationType:pa(["membro","parceiro","colaborador","embaixador"],{message:"Selecione um tipo de registo"}),name:te().min(2,"Nome deve ter pelo menos 2 caracteres").max(100,"Nome muito longo"),email:te().email("Email inválido"),type:te().min(1,"Selecione um perfil"),message:te().max(1e3,"Mensagem muito longa (máx. 1000 caracteres)").optional()}),FS=Gt({authorName:te().min(2,"Nome deve ter pelo menos 2 caracteres").max(100,"Nome muito longo"),email:te().email("Email inválido"),url:te().min(1,"Adicione uma imagem ou vídeo"),message:te().max(500,"Mensagem muito longa (máx. 500 caracteres)").optional(),agreedToTerms:t2(!0,{message:"Você precisa concordar com os termos para continuar"})}),WS=Gt({partner_id:te().uuid("partner_id must be a valid UUID"),title:te().min(1,"Título obrigatório").max(200,"Título muito longo"),description:te().max(1e3).optional(),category:pa(["desconto","acesso","serviço","outro"]),link:te().optional().refine(n=>n===void 0||n===""||Gc(n),{message:"Link deve ser uma URL HTTP/HTTPS válida"}),active:Gu(),order:Vu().int().min(0,"Ordem não pode ser negativa")}
137),x2=["image/jpeg","image/png","image/gif","image/webp","image/svg+xml","video/mp4","video/quicktime","video/webm","application/pdf"],T2=5*1024*1024,IS=b2(File).refine(n=>n.size<=T2,{message:"Arquivo muito grande. Máximo 5MB."}).refine(n=>x2.includes(n.type),{message:"Tipo de arquivo não suportado. Use JPEG, PNG, GIF, WEBP, SVG, MP4, MOV, WEBM ou PDF."}),d0=Gt({council:pa(["curadores","fiscal","administracao","executivo"],{message:"Conselho inválido"}),name:te().trim().min(2,"Nome deve ter pelo menos 2 caracteres").max(120,"Nome muito longo"),role:te().max(60,"Cargo muito longo").optional().nullable(),order:Vu().int().min(0,"Ordem não pode ser negativa"),active:Gu()}),m0=Gt({category:pa(["estatutos","relatorios-anuais","regulamento-interno","orgaos-sociais"],{message:"Categoria inválida"}),title:te().trim().min(2,"Título deve ter pelo menos 2 caracteres").max(200,"Título muito longo"),description:te().max(1e3,"Descrição muito longa").optional().nullable(),year:Vu().int().min(1900,"Ano inválido").max(2200,"Ano inválido").optional().nullable(),file_url:te().min(1,"É necessário um arquivo ou link").max(2048,"URL muito longa"),gated:Gu(),order:Vu().int().min(0,"Ordem não pode ser negativa"),active:Gu()}),A2=3e3,h0=2,O2=A2/h0,p0=/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/i,N2="http://127.0.0.1:8787",j2=()=>({use:!1}),ti={partnerLinking:!1},Yu=6,v0=250,Ah=(n,i)=>n.includes(`column profiles.${i} does not exist`)||n.includes(`Could not find the '${i}' column of 'profiles'`),Nc=n=>n.includes("already registered")?"Este email já tem conta registada.":n.toLowerCase().includes("email rate limit exceeded")?"Limite de envio de emails atingido no Supabase. Aguarde alguns minutos e tente novamente.":n,D2=async n=>{for(let i=0;i<Yu;i+=1){const{data:o,error:c}=await V.from("profiles").select("id").eq("email",n.email).maybeSingle();if(c)return{ok:!1,error:c.message};if(o!=null&&o.id){const{error:s}=await V.from("profiles").update({name:n.name,email:n.email,type:n.type,role:n.role,...n.partnerId?{partner_id:n.partnerId}:{partner_id:null}}).eq("id",o.id);return s?{ok:!1,error:s.message}:{ok:!0}
137}i<Yu-1&&await new Promise(s=>setTimeout(s,v0))}return{ok:!1,pending:!0,error:"Perfil ainda não disponível."}},M2=async n=>{var d;const{data:i}=await V.auth.getSession(),o=(d=i.session)==null?void 0:d.access_token;if(!o){const h="Sessão administrativa inválida para criar conta em modo de teste.";return U(h,"error"),{ok:!1,error:h}}const c=await fetch(`${N2}/admin-create-user`,{method:"POST",headers:{"Content-Type":"application/json",Authorization:`Bearer ${o}`},body:JSON.stringify(n)}).catch(h=>({ok:!1,status:0,json:async()=>({ok:!1,error:h.message})})),s=await c.json().catch(()=>({ok:!1,error:"Erro ao criar conta."}));if(!c.ok||!(s!=null&&s.ok)){const h=Nc((s==null?void 0:s.error)||"Erro ao criar conta.");return U(h,"error"),{ok:!1,error:h}}return ce("Criou conta a partir de pré-cadastro",n.email),U(`Conta criada para ${n.email}. Pronta para acesso imediato em ambiente de teste.`,"success"),{ok:!0}},w2=async n=>{for(let i=0;i<Yu;i+=1){const{data:o,error:c}=await V.from("profiles").select("id").eq("user_id",n).maybeSingle();if(o!=null&&o.id)return!0;if(c)return!1;i<Yu-1&&await new Promise(s=>setTimeout(s,v0))}return!1},U2=n=>(n==null?void 0:n.code)==="PGRST116"||/\b(0|no|multiple \(or no\)) rows\b/i.test((n==null?void 0:n.message)||""),C2=n=>{let i=null;const o=(async()=>{try{const{data:s,error:d}=await V.from("profiles").select("role").eq("user_id",n).single();return d&&!U2(d)?{role:"viewer",resolved:!1,reason:"error"}:{role:(s==null?void 0:s.role)==="admin"?"admin":(s==null?void 0:s.role)==="editor"?"editor":"viewer",resolved:!0}}catch{return{role:"viewer",resolved:!1,reason:"error"}}})(),c=new Promise(s=>{i=setTimeout(()=>{s({role:"viewer",resolved:!1,reason:"timeout"})},O2)});return Promise.race([o,c]).finally(()=>{i&&clearTimeout(i)})},Z2=async n=>{let i={role:"viewer",resolved:!1,reason:"error"};for(let o=0;o<h0;o+=1)if(i=await C2(n),i.resolved)return i;return i},R2=(n,i,o)=>n.resolved?{role:n.role,keptPrevious:!1,unconfirmed:!1}:o&&o.userId===i&&o.role!=="viewer"?{role:o.role,keptPrevious:!0,unconfirmed:!0}:{role:"viewer",keptPrevious:!1,unconfirmed:!0},PS=async(n,i)=>{var d;const o=z2.safeParse({email:n,password:i});if(!o.success)return{ok:!1,error:((d=o.error.issues[0])==null?void 0:d.message)||"Dados inválidos."};const{data:c,error:s}=await V.auth.signInWithPassword({email:n,password:i});return s?s.message==="Invalid login credentials"?{ok:!1,error:"Email ou senha incorretos."}:s.message==="Email not confirmed"?{ok:!1,error:"Email não confirmado. Verifique sua caixa de entrada."}:{ok:!1,error:s.message}:c.session?(ce("Login",c.user.email||n),U(`Bem-vindo, ${c.user.email}!`,"success"),{ok:!0}):{ok:!1,error:"Falha no login."}},Oh=async()=>{const n=Ve.displayName||"Editor";await V.auth.signOut(),ce("Logout",n),Zu({isLoggedIn:!1,role:"viewer"}),W(),U("Sessão encerrada.","info")},ez=async(n,i,o,c)=>{var p;const s=E2.safeParse({email:n,password:i,name:o,type:c});if(!s.success)return{ok:!1,error:((p=s.error.issues[0])==null?void 0:p.message)||"Dados inválidos."};const{data:d,error:h}=await V.auth.signUp({email:n,password:i,options:{data:{name:o,type:c}}});if(h)return h.message.includes("already registered")?{ok:!1,error:"Este email já está cadastrado."}:{ok:!1,error:h.message};if(d.user){if(d.session){const{error:y}=await V.from("profiles").upsert({user_id:d.user.id,name:o,email:n,type:c,role:"membro"},{onConflict:"user_id"})}return ce("Novo cadastro",n),U("Conta criada com sucesso! Verifique seu email para confirmar.","success"),{ok:!0}}return{ok:!1,error:"Erro ao criar conta."}},tz=async()=>{if(!Xu()){const C="Sem permissão.";return U(C,"error"),{ok:!1,data:[],error:C,capabilities:ti}}const n=await V.from("profiles").select("id, user_id, name, email, role, type, phone, created_at").order("created_at",{ascending:!1});let i=n.data,o=n.error;if(o&&Ah(o.message,"phone")){const C=await V.from("profiles").select("id, user_id, name, email, role, type, created_at").order("created_at",{ascending:!1});i=C.data,o=C.error}if(o)return U("Erro ao carregar utilizadores.","error"),{ok:!1,data:[],error:o.message,capabilities:ti};const c=i||[],{data:s,error:d}=await V.from("profiles").select("id, partner_id");if(d)return Ah(d.message,"partner_id")?{ok:!0,data:c.map(C=>({...C,partner:null})),capabilities:ti}:(U("Erro ao carregar utilizadores.","error"),{ok:!1,data:[],error:d.message,capabilities:ti});if(Array.from(new Set((s||[]).map(C=>
137C.partner_id).filter(Boolean))).length===0)return{ok:!0,data:c.map(C=>({...C,partner_id:null,partner:null})),capabilities:{partnerLinking:!0}};const{data:p,error:y}=await V.from("partners").select("id, name");if(y)return U("Erro ao carregar utilizadores.","error"),{ok:!1,data:[],error:y.message,capabilities:ti};const S=new Map((p||[]).map(C=>[C.id,{id:C.id,name:C.name}])),A=new Map((s||[]).map(C=>[C.id,C.partner_id]));return{ok:!0,data:c.map(C=>({...C,partner_id:A.get(C.id)??null,partner:A.get(C.id)?S.get(A.get(C.id))??null:null})),capabilities:{partnerLinking:!0}}},az=async(n,i)=>{if(!Xu())return U("Sem permissão.","error"),!1;const{error:o}=await V.from("profiles").update({role:i}).eq("id",n);return o?(U("Erro ao atualizar permissão.","error"),!1):(ce("Alterou permissão",`${n} → ${i}`),U("Permissão atualizada.","success"),!0)},nz=async n=>{if(!Xu())return U("Sem permissão.","error"),{ok:!1,error:"Sem permissão."};if(n.partnerId&&!p0.test(n.partnerId)){const p="Perfil vinculado inválido.";return U(p,"error"),{ok:!1,error:p}}const i=j2();if(i.use)return M2(n);if("refused"in i&&i.refused)return U(i.reason,"error"),{ok:!1,error:i.reason};const o=crypto.randomUUID()+crypto.randomUUID(),{data:c,error:s}=await V.auth.signUp({email:n.email,password:o,options:{data:{name:n.name,type:n.type}}});if(s){if(s.message.includes("already registered")){const y=await D2(n);if(y.ok)return ce("Concluiu configuração de conta existente",n.email),U(`Conta existente configurada para ${n.email}.`,"success"),{ok:!0};const S=y.pending?"A conta já existe, mas o perfil ainda não ficou disponível. Tente novamente em alguns segundos.":Nc(y.error||s.message);return U(S,"error"),{ok:!1,error:S}}const p=Nc(s.message);return U(p,"error"),{ok:!1,error:p}}if(!c.user)return U("Erro ao criar conta.","error"),{ok:!1,error:"Erro ao criar conta."};if(!c.user.id){const p="Este email já está registado mas não confirmado. Peça ao utilizador para confirmar via link no email recebido.";return U(p,"error"),{ok:!1,error:p}}if(!await w2(c.user.id)){const p="Conta criada, mas o perfil ainda não ficou disponível. Tente novamente em alguns segundos para concluir a configuração.";return U(p,"error"),{ok:!1,error:p}}const{error:h}=await V.from("profiles").update({name:n.name,email:n.email,type:n.type,role:n.role,...n.partnerId?{partner_id:n.partnerId}:{}}).eq("user_id",c.user.id);return h?(U("Conta criada, mas erro no perfil. Verifique em Utilizadores.","error"),{ok:!1,error:h.message}):(ce("Criou conta a partir de pré-cadastro",n.email),U(`Conta criada para ${n.email}. Aguarda confirmação de email.`,"success"),{ok:!0})},lz=async(n,i)=>{if(!Xu())return U("Sem permissão.","error"),!1;if(i&&!p0.test(i))return U("Perfil vinculado inválido.","error"),!1;const{error:o}=await V.from("profiles").update({partner_id:i}).eq("id",n);return o?(U("Erro ao vincular membro.","error"),!1):(ce(i?"Vinculou utilizador a membro":"Removeu vínculo de membro",n),U(i?"Membro vinculado.":"Vínculo removido.","success"),!0)},g0=({className:n=""})=>g.jsx("div",{className:`flex items-center select-none ${n}`,role:"img","aria-label":"Logo Fundação Luso-Brasileira",children:g.jsx("img",{src:"/logo-flb-full.webp",alt:"",width:320,height:80,className:"h-10 md:h-11 w-auto object-contain","aria-hidden":"true"})}),B2=()=>{const[n,i]=Q.useState(!1),o=eg(),[c,s]=Q.useState(0),d=Q.useRef(null),h=[{name:"Início",path:"/"},{name:"A Fundação",path:"/quem-somos"},{name:"Pessoas",path:"/administracao"},{name:"Eventos",path:"/eventos"},{name:"Parceiros",path:"/parceiros"},{name:"Benefícios",path:"/beneficios"},{name:"Contacto",path:"/contacto"}];Q.useEffect(()=>{const y=()=>s(S=>S+1);return window.addEventListener(ni,y),()=>window.removeEventListener(ni,y)},[]),Q.useEffect(()=>{if(!n)return;const y=document.body.style.overflow,S=document.documentElement.style.overflow;document.body.style.overflow="hidden",document.documentElement.style.overflow="hidden";const A=O=>{O.key==="Escape"&&(O.preventDefault(),i(!1))};return document.addEventListener("keydown",A),()=>{var O,C;document.removeEventListener("keydown",A),document.body.style.overflow=y,document.documentElement.style.overflow=S,(C=(O=d.current)==null?void 0:O.focus)==null||C.call(O)}},[n]);const p=()=>{const y=document.querySelector('main, [role="main"], h1');y&&(y.hasAttribute("tabindex")||y.setAttribute("tabindex","-1"),y.focus(),y.scrollIntoView({block:"start"}))};return["/login","/cadastro"].includes(o.pathname)?null:g.jsxs(g.Fragment,{children:[g.jsx("button",{type:"button",onClick:p,className:"sr-only focu
137s:not-sr-only focus:fixed focus:top-3 focus:left-3 focus:z-[200] focus:px-5 focus:py-3 focus:rounded-full focus:bg-white focus:text-brand-900 focus:text-xs focus:font-bold focus:uppercase focus:tracking-widest focus:shadow-lg focus:outline-none focus:ring-2 focus:ring-sand-400",children:"Saltar para o conteúdo"}),g.jsx("header",{className:"fixed top-0 w-full z-50 bg-brand-900 py-4 md:py-5 border-b border-white/10",children:g.jsx("div",{className:"max-w-[1800px] mx-auto px-6 lg:px-12 relative",children:g.jsxs("div",{className:"flex justify-between items-center h-14 md:h-16",children:[g.jsx(Me,{to:"/",className:"block group relative z-50 hover:opacity-90 transition-opacity focus:outline-none focus:ring-2 focus:ring-sand-400 rounded-xl",children:g.jsx(g0,{variant:"original"})}),g.jsxs("nav",{className:"hidden md:flex items-center gap-6 lg:gap-10","aria-label":"Navegação Principal",children:[h.map(y=>g.jsxs(Me,{to:y.path,"aria-current":o.pathname===y.path?"page":void 0,className:`text-[10px] font-bold tracking-[0.2em] uppercase transition-all duration-500 relative group py-2 focus:outline-none focus:text-sand-400 ${o.pathname===y.path?"text-sand-400":"text-white hover:opacity-70"}`,children:[y.name,g.jsx("span",{className:`absolute -bottom-1 left-1/2 -translate-x-1/2 w-3 h-[1px] transition-all duration-700 ${o.pathname===y.path?"w-full opacity-100 bg-current":"w-0 opacity-0 group-hover:w-4 group-hover:opacity-40 bg-current"}`})]},y.name)),g.jsx("div",{className:"pl-8 ml-2 border-l border-white/20 transition-colors duration-700 flex items-center gap-6",children:Ve.isLoggedIn?g.jsxs("div",{className:"flex items-center gap-4",children:[g.jsxs(Me,{to:"/dashboard",className:"text-[10px] font-bold uppercase tracking-wider text-white hover:opacity-70 focus:outline-none focus:underline",children:["Olá, ",Ve.displayName||"Editor"]}),g.jsx("button",{onClick:Oh,className:"p-2 text-red-400 hover:text-red-500 transition-colors",title:"Sair","aria-label":"Sair da conta",children:g.jsx(th,{size:16})})]}):g.jsxs(g.Fragment,{children:[g.jsx(Me,{to:"/precadastro",className:"hidden lg:inline-block text-[10px] font-bold uppercase tracking-[0.2em] transition-all duration-500 hover:opacity-70 focus:outline-none focus:text-sand-400 text-white",children:"Pré-Registo"}),g.jsx(Me,{to:"/login",className:"px-6 py-2.5 rounded-full border text-[10px] font-bold uppercase tracking-[0.2em] transition-all duration-500 focus:outline-none focus:ring-2 focus:ring-offset-2 bg-white/10 border-white/20 text-white hover:bg-white hover:text-brand-900 focus:ring-white/50",children:"Entrar"})]})})]}),g.jsx("div",{className:"md:hidden",children:g.jsx("button",{ref:d,type:"button",onClick:()=>i(!n),className:"p-2 text-white focus:outline-none focus:ring-2 focus:ring-sand-400 rounded-md","aria-label":n?"Fechar menu":"Abrir menu","aria-expanded":n,children:n?g.jsx(ah,{size:24,"aria-hidden":"true"}):g.jsx(Dg,{size:24,"aria-hidden":"true"})})})]})})}),n&&g.jsxs("div",{className:"md:hidden fixed inset-0 z-[60] bg-brand-900/85 backdrop-blur-xl flex flex-col animate-in slide-in-from-right duration-700 text-white",children:[g.jsx("div",{className:"flex justify-end p-6",children:g.jsx("button",{type:"button",onClick:()=>i(!1),className:"p-2 text-white/80 hover:text-white focus:outline-none focus:ring-2 focus:ring-sand-400 rounded-md","aria-label":"Fechar menu",children:g.jsx(ah,{size:24,"aria-hidden":"true"})})}),g.jsxs("nav",{className:"flex-grow flex flex-col justify-center px-10 space-y-8","aria-label":"Navegação Mobile",children:[h.map((y,S)=>g.jsx(Me,{to:y.path,onClick:()=>i(!1),className:"block text-3xl font-light tracking-tight text-white animate-fadeInUpSlow focus:outline-none focus:text-sand-400",style:{animationDelay:`${S*.1}s`},children:y.name},y.path)),g.jsx("div",{className:"h-px bg-white/10 w-full my-8",role:"separator"}),Ve.isLoggedIn?g.jsxs("div",{className:"space-y-4 animate-fadeInUpSlow delay-300",children:[g.jsx(Me,{to:"/dashboard",onClick:()=>i(!1),className:"text-lg text-sand-400 font-medium block",children:"Dashboard"}),g.jsxs("button",{onClick:()=>{Oh(),i(!1)},className:"text-sm text-red-400 font-medium uppercase tracking-widest flex items-center gap-2",children:[g.jsx(th,{size:14})," Sair da conta"]})]}):g.jsxs("div",{className:"space-y-6 animate-fadeInUpSlow delay-300",children:[g.jsx(Me,{to:"/precadastro",onClick:()=>i(!1),className:"text-lg text-white/70 font-medium block hover:text-white transition-colors",children:"Pré-Registo"}),g.jsxs(Me,{to:"/login",onClick:()=>i(!1),className:"text-lg text-sand-400 font-medium flex items-center gap-3",children:["Entrar c
137omo Editor ",g.jsx(Ch,{size:16})]})]})]})]})]})},Nh=[{id:"paulo-campos-costa",order:1,tier:"presidente",name:"Paulo Campos Costa",role:"Presidente",country:"PT",image:"/presidente.webp",summary:"Lidera a Fundação Luso-Brasileira com o compromisso de fortalecer os laços culturais, económicos e institucionais entre Portugal, Brasil e os países lusófonos. Com uma trajetória marcada pela liderança em grandes organizações internacionais, Paulo Campos Costa traz à Fundação uma visão estratégica de longo prazo.",full:`Paulo Campos Costa assumiu a presidência da Fundação Luso-Brasileira com a missão de renovar e ampliar o impacto institucional da organização no espaço lusófono. Com uma carreira de décadas em posições de liderança — incluindo passagem pela EDP a nível global —, traz consigo uma rede de relacionamentos de alto nível em Portugal, no Brasil e nos mercados internacionais.
138
139A sua visão para a Fundação assenta em três pilares fundamentais: a recuperação e fortalecimento de relações históricas entre os dois países, o impulso a novas parcerias empresariais e institucionais, e a promoção da língua portuguesa como vetor de cooperação económica e cultural.
140
141"Entre Portugal e o Brasil não podem existir entraves, temos de construir pontes que unam a nossa rica e diversificada cultura", afirma Paulo Campos Costa, sintetizando o espírito que orienta a sua liderança à frente da Fundação.
142
143Sob a sua presidência, a Fundação Luso-Brasileira tem reforçado a sua presença institucional, ampliado a rede de parceiros e desenvolvido iniciativas que aproximam pessoas, empresas e comunidades dos dois lados do Atlântico.`,tags:["Presidência","EDP","Liderança","Lusofonia"]},{id:"alvaro-covoes",order:2,tier:"direcao",name:"Álvaro Ricardo Villaverde Covões Gávea",role:"Vice-Presidente",country:"PT",summary:"Integra a Direção da Fundação Luso-Brasileira com responsabilidade pela coordenação estratégica e pelo desenvolvimento de iniciativas institucionais. A sua atuação centra-se no fortalecimento das parcerias e na promoção das atividades da Fundação junto dos seus membros e parceiros.",full:`Álvaro Covões integra a Direção da Fundação Luso-Brasileira, onde contribui para a definição e execução da estratégia institucional da organização.
144
145Com experiência consolidada na gestão de projetos e no relacionamento institucional, dedica-se à coordenação das iniciativas da Fundação e ao desenvolvimento das suas parcerias estratégicas, tanto em Portugal como no Brasil.
146
147A sua ação na Direção é orientada pela convicção de que o espaço lusófono representa uma oportunidade única de cooperação, e de que a Fundação tem um papel central na concretização dessas pontes.`,tags:["Direção","Estratégia","Parcerias"]},{id:"pedro-ribeiro",order:3,tier:"direcao",name:"Pedro Luís Bern
147ardes Ribeiro",role:"Vogal",country:"PT",summary:"Membro da Direção da Fundação Luso-Brasileira, contribui para o planeamento e execução das iniciativas institucionais, com especial enfoque no relacionamento com os membros e na dinamização da atividade da Fundação.",full:`Pedro Ribeiro faz parte da Direção da Fundação Luso-Brasileira, onde assume responsabilidades no planeamento estratégico e na gestão das relações institucionais da organização.
148
149A sua participação na Direção reflete o compromisso com a missão da Fundação de promover a cooperação entre Portugal, Brasil e os restantes países de língua portuguesa, através de iniciativas culturais, educativas e empresariais de impacto.`,tags:["Direção","Gestão","Cooperação"]},{id:"joao-pedro-carvalho",order:4,tier:"secretario-geral",name:"João Carvalho",role:"Secretário-Geral",country:"PT",summary:"Responsável pela coordenação administrativa e operacional da Fundação, João Pedro Carvalho assegura o funcionamento eficiente dos órgãos sociais e a articulação entre as diferentes áreas de atividade da instituição.",full:`João Pedro Carvalho desempenha as funções de Secretário Geral da Fundação Luso-Brasileira, cargo de responsabilidade 
149central na coordenação administrativa e operacional da instituição.
150
151O Secretário Geral é o eixo que garante a articulação entre os órgãos sociais e as diferentes iniciativas da Fundação, assegurando que os processos internos funcionam com eficiência e que a missão institucional é suportada por uma estrutura operacional robusta.
152
153Com um perfil marcado pela atenção ao detalhe, pela capacidade de coordenação e pelo rigor na gestão, João Pedro Carvalho tem sido fundamental para a consolidação organizacional da Fundação Luso-Brasileira e para o bom funcionamento da sua estrutura de governança.
154
155O seu trabalho inclui a gestão das comunicações institucionais, o apoio à organização de eventos e a coordenação com parceiros e membros da Fundação em Portugal e no Brasil.`,tags:["Secretariado","Administração","Coordenação"]},{id:"fernando-guntovitch",order:5,tier:"vogal",name:"Fernando Guntovitch",role:"Vogal",country:"BR",summary:"Vogal do Conselho de Administração da Fundação Luso-Brasileira, contribui com a sua experiência para o fortalecimento das relações luso-brasileiras e para o desenvolvimento das iniciativas da Fundação.",full:`Fernando Guntovitch integra o Conselho de Administração da Fundação Luso-Brasileira na qualidade de Vogal, trazendo uma perspetiva valiosa para a governança da instituição.
156
157A sua participação no Conselho reflete o compromisso com os valores e a missão da Fundação, contribuindo para as deliberações estratégicas e para a orientação das atividades da organização.`,tags:["Vogal","Conselho","Brasil"]},{id:"tomas-froes",order:6,tier:"vogal",name:"Tomás Froes",role:"Vogal",country:"PT",summary:"Vogal do Conselho de Administração, Tomás Froes contribui para a orientação estratégica da Fundação Luso-Brasileira e para o desenvolvimento das suas iniciativas institucionais.",full:`Tomás Froes é Vogal do Conselho de Administração da Fundação Luso-Brasileira, participando ativamente nas decisões estratégicas da instituição.
158
159O seu envolvimento na Fundação traduz-se numa contribuição constante para o fortalecimento da missão institucional e para a dinamização das relações entre Portugal e Brasil.`,tags:["Vogal","Conselho","Estratégia"]},{id:"nuno-fernandes-thomaz",order:7,tier:"vogal",name:"Nuno Maria Pinto de Magalhães Fernandes Thomaz",role:"Vogal",country:"PT",summary:"Vogal do Conselho de Administração da Fundação Luso-Brasileira, Nuno Fernandes Thomaz participa na definição das orientações estratégicas da instituição e no acompanhamento das suas iniciativas.",full:`Nuno Fernandes Thomaz integra o Conselho de Administração da Fundação Luso-Brasileira como Vogal, contribuindo com a sua experiência e visão para a governança da instituição.
160
161A sua participação nas deliberações do Conselho é orientada pelo compromisso com os valores da Fundação e pela convicção de que a cooperação luso-brasileira é um vetor fundamental de desenvolvimento para ambos os países.`,tags:["Vogal","Conselho","Governança"]},{id:"francisco-teixeira",order:8,tier:"vogal",name:"Francisco Teixeira",role:"Vogal",country:"PT",summary:"Vogal do Conselho de Administração da Fundação Luso-Brasileira, Francisco Teixeira contribui para a supervisão e orientação estratégica da Fundação.",full:`Francisco Teixeira é Vogal do Conselho de Administração da Fundação Luso-Brasileira, participando nas instâncias de governança da instituição.
162
163O seu envolvimento reflete o compromisso com a missão da Fundação de promover a cooperação cultural, educativa e empresarial entre Portugal, Brasil e o espaço lusófono.`,tags:["Vogal","Conselho","Supervisão"]},{id:"bernardo-correa-de-barros",order:9,tier:"vogal",name:"Bernardo Correa de Barros",role:"Vogal",summary:"Vogal do Conselho de Administração da Fundação Luso-Brasileira.",full:"Bernardo Correa de Barros integra o Conselho de Administração da Fundação Luso-Brasileira na qualidade de Vogal.",tags:["Vogal","Conselho de Administração"]},{id:"luciane-tome",order:10,tier:"vogal",name:"Luciane Tomé",role:"Vogal",summary:"Vogal do Conselho de Administração da Fundação Luso-Brasileira.",full:"Luciane Tomé integra o Conselho de Administração da Fundação Luso-Brasileira na qualidade de Vogal.",tags:["Vogal","Conselho de Administração"]}],L2=new Set(["name","type","category","role","bio","summary","full","image","avatar","country","website","social_links","tags","tier","since","active","featured","order"]),jc=n=>{const{social_links:i,...o}=n;return{...o,type:n.type||"pessoa",socialLinks:i||{},gallery:n.gallery||[],albums:n.albums||[]}},q2=(n,i)=>{if(i.name===n.name||n.order!==void 0&&i.order!==null&&i.order!==void 0&&i.order===n.order)return!0;
163if(!i.name)return!1;const o=n.name.toLowerCase().trim(),c=i.name.toLowerCase().trim(),[s,d]=o.length<=c.length?[o,c]:[c,o],h=s.split(/\s+/).filter(p=>p.length>3);return h.length>=2&&h.every(p=>d.includes(p))},Dc=async()=>{const{data:n,error:i}=await V.from("partners").select("*").order("created_at",{ascending:!1});if(i||!n){Pe.length=0,Pe.push(...Nh.map(d=>({...d,type:"pessoa",category:"Governança"}))),W();return}const o=new Set,c=Nh.map(d=>{const h=n.find(p=>!o.has(p.id)&&q2(d,p));return h?(o.add(h.id),{...d,...jc(h)}):{...d,type:"pessoa",category:"Governança"}}),s=n.filter(d=>!o.has(d.id)).map(jc);Pe.length=0,Pe.push(...c,...s),W()},H2=async(n=!0)=>{if(!Se())return null;const{data:i,error:o}=await V.from("partners").insert([{name:"Novo Membro",type:"pessoa",category:"Parceiro Silver",active:!0}]).select();if(o||!i)return null;const c=jc(i[0]);return Pe.unshift(c),ce("Criou membro",c.name),W(),n&&U("Membro criado.","success"),c},y0=/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/i,k2=async(n,i,o=!0)=>{var y;if(!Se())return!1;const c={...i};i.socialLinks!==void 0&&(c.social_links=i.socialLinks);const s={};for(const S of Object.keys(c))L2.has(S)&&(s[S]=c[S]);if(!y0.test(n)){const S=Pe.find(G=>G.id===n),A={};S&&(S.tier!==void 0&&(A.tier=S.tier),S.order!==void 0&&(A.order=S.order),!s.category&&S.category&&(A.category=S.category),!s.role&&S.role&&(A.role=S.role),!s.country&&S.country&&(A.country=S.country));const O={...A,...s};!O.name&&S&&(O.name=S.name);const{data:C,error:L}=await V.from("partners").insert([O]).select().single();if(L||!C)return U("Erro ao salvar membro.","error"),!1;const X=Pe.findIndex(G=>G.id===n);return X!==-1&&(Pe[X]={...Pe[X],...i,id:C.id}),ce("Criou membro no banco",C.name),W(),o&&U("Membro salvo.","success"),!0}const{data:d,error:h}=await V.from("partners").update(s).eq("id",n).select("id");if(h)return U("Erro ao atualizar membro.","error"),!1;if(!d||d.length===0)return U("Sem permissão para atualizar este membro.","error"),!1;const p=Pe.findIndex(S=>S.id===n);return p!==-1&&(Pe[p]={...Pe[p],...i}),ce("Editou membro",((y=Pe.find(S=>S.id===n))==null?void 0:y.name)||n),W(),o&&U("Membro atualizado.","success"),!0},iz=async n=>{if(!Se())return!1;if(!y0.test(n))return U("Este membro ainda é do seed inicial. Salve-o primeiro para gerar um registo editável.","warning"),!1;const{data:i,error:o}=await V.from("partners").delete().eq("id",n).select("id");if(o)return U("Erro ao remover membro.","error"),!1;if(!i||i.length===0)return U("Sem permissão para remover este membro.","error"),!1;const c=Pe.findIndex(s=>s.id===n);if(c!==-1){const s=Pe[c].name;Pe.splice(c,1),ce("Removeu membro",s),W(),U("Membro removido.","success")}return!0},V2=Gt({name:te().min(2).max(100),email:te().email(),type:te().min(1).optional(),registrationType:pa(["membro","parceiro","colaborador","embaixador"]).optional().nullable(),message:te().max(1e3).optional()}),G2=Gt({name:te().min(2).max(100).optional(),email:te().email().optional(),type:te().min(1).optional(),registrationType:pa(["membro","parceiro","colaborador","embaixador"]).optional().nullable(),message:te().max(1e3).optional(),status:pa(["novo","contatado","aprovado","pausado","rejeitado","convertido"]).optional(),notes:te().max(1e3).optional()}),b0=n=>{const{created_at:i,updated_at:o,...c}=n;return{...c,createdAt:i}},Y2=async()=>{const{data:n,error:i}=await V.from("precadastros").select("*").order("created_at",{ascending:!1});i||!n||(Rt.length=0,Rt.push(...n.map(b0)),W())},X2=async n=>{var h;const i=V2.safeParse(n);if(!i.success)return U(((h=i.error.issues[0])==null?void 0:h.message)||"Dados inválidos.","error"),null;const o={name:n.name,email:n.email,type:n.type||"individual",registrationType:n.registrationType||null,message:n.message,status:"novo"},c=Se();let s=null,d=null;if(c){const p=await V.from("precadastros").insert([o]).select().single();s=p.data??null,d=p.error}else d=(await V.from("precadastros").insert([o])).error;if(d)return U("Erro ao enviar.","error"),null;if(c){const p=s?b0(s):{...o,id:Zc("pre"),createdAt:new Date().toISOString()};Rt.unshift(p),ce("Novo pré-cadastro",n.name||"Anônimo"),W()}return U("Enviado com sucesso!","success"),{success:!0}},Q2=n=>X2({name:"Newsletter",email:n,type:"newsletter",message:"Inscrição via Site"}),J2=new Set(["name","email","type","registrationType","message","status","notes"]),$2=async(n,i)=>{var p;if(!Se())return!1;const o=G2.safeParse(i);if(!o.success)return U(((p=o.error.issues[0])==null?void 0:p.message)||"Dados inválidos.","error"),!1;const c={};for(const y of Object.keys(o.data))J2.has(y)&&(c[y]=o.data[y]);const{data:s,error:d}=await V.from("precadastros").update(c).eq("id",n).select("id");if(d)return d.code==="23514"&&i.status==="pausado"?(U("A pausa da newsletter depende da migration 20260425_precadastros_status_pausado.sql no banco.","error"),!1):(U("Erro ao atualizar pré-cadastro.","error"),!1);if(!s||s.length===0)return U("Sem permissão para atualizar este pré-cadastro.","error"),!1;const h=Rt.findIndex(y=>y.id===n);return h!==-1&&(Rt[h]={...Rt[h],...o.data},ce("Atualizou pré-cadastro",Rt[h].name),W(),U("Atualizado.","success")),!0},uz=async n=>{if(!Se())return!1;const{data:i,error:o}=await V.from("precadastros").delete().eq("id",n).select("id");if(o)return U("Erro ao remover pré-cadastro.","error"),!1;if(!i||i.length===0)return U("Sem permissão para remover este pré-cadastro.","error"),!1;const c=Rt.findIndex(s=>s.id===n);if(c!==-1){const s=Rt[c].name;Rt.splice(c,1),ce("Removeu pré-cadastro",s),W(),U("Removido.","success")}return!0},wu=new Map,oz=async n=>{if(!Se())return!1;const i=Rt.find(o=>o.id===n);if(!i)return!1;try{let o=wu.get(n)??null;if(!o){const s=await H2(!1);if(!s)return U("Erro ao criar membro.","error"),!1;if(o=s.id,!await k2(o,{name:i.name,category:i.registrationType==="parceiro"?"Parceiro Silver":"Outro Apoio",bio:i.message},!1))return wu.set(n,o),U("Erro na conversão (dados do membro). Tente de novo.","error"),!1}return await $2(n,{status:"convertido"})?(wu.delete(n),ce("Converteu pré-cadastro em membro",i.name),U("Convertido em membro com sucesso.","success"),!0):(wu.set(n,o),U("Membro criado, mas falha ao atualizar o pré-cadastro.","error"),!1)}catch{return U("Erro na conversão.","error"),!1}},_0=({fullScreen:n=!0,className:i=""})=>g.jsxs("div",{className:`
164        flex flex-col items-center justify-center
165        bg-brand-900 text-white
166        transition-opacity duration-300 ease-out
167        ${n?"fixed inset-0 z-[9999] bg-brand-900/95 backdrop-blur-md":"w-full h-64 bg-transparent"}
168        ${i}
169      `,role:"status","aria-live":"polite","aria-label":"Carregando",children:[n&&g.jsx("div",{className:"absolute inset-0 pointer-events-none bg-[radial-gradient(circle_at_center,transparent_0%,rgba(0,0,0,0.4)_100%)]"}),g.jsxs("div",{className:"relative z-10 flex flex-col items-center",children:[g.jsx("div",{className:"relative w-24 h-24 mb-8",children:g.jsxs("svg",{className:"absolute inset-0 w-full h-full animate-[spin_8s_linear_infinite] motion-reduce:animate-none",viewBox:"0 0 100 100","aria-hidden":"true",children:[g.jsx("defs",{children:g.jsxs("linearGradient",{id:"gold-gradient",x1:"0%",y1:"0%",x2:"100%",y2:"0%",children:[g.jsx("stop",{offset:"0%",stopColor:"transparent"}),g.jsx("stop",{offset:"50%",stopColor:"#C9AF88"}),g.jsx("stop",{offset:"100%",stopColor:"transparent"})]})}),g.jsx("circle",{cx:"50",cy:"50",r:"46",fill:"none",stroke:"url
169(#gold-gradient)",strokeWidth:"1",strokeDasharray:"80 200",strokeLinecap:"round"})]})}),n&&g.jsxs("div",{className:"text-center space-y-2 animate-fadeInUpSlow",children:[g.jsx("h2",{className:"font-serif text-lg tracking-[0.1em] text-white/90",children:"Fundação Luso-Brasileira"}),g.jsx("span",{className:"sr-only",children:"Carregando conteúdo..."})]})]})]}),K2=({type:n,className:i="w-4 h-4"})=>{const o={facebook:g.jsx("svg",{className:i,fill:"currentColor",viewBox:"0 0 24 24","aria-hidden":"true",children:g.jsx("path",{d:"M9.101 23.691v-7.98H6.627v-3.667h2.474v-1.58c0-4.085 1.848-5.978 5.858-5.978.401 0 .955.042 1.468.103a8.68 8.68 0 0 1 1.141.195v3.325a8.623 8.623 0 0 0-.653-.036c-2.148 0-2.971.956-2.971 3.594v.376h3.428l-.532 3.667h-2.896v7.981h-4.843Z"})}),twitter:g.jsx("svg",{className:i,fill:"currentColor",viewBox:"0 0 24 24","aria-hidden":"true",children:g.jsx("path",{d:"M22.254 5.49c-.44.086-1.29.17-1.461.182.261-.392 1.25-1.921 1.34-2.126.027-.061.026-.145-.043-.197a.172.172 0 0 0-.173-.021c-.052.018-1.595.61-2.057.77a4.91 4.91 0 0 0-3.692-1.68c-2.956 0-5.111 2.593-4.717 5.726-3.826-.195-7.078-2.073-9.213-4.802a.267.267 0 0 0-.441.056c-1.328 2.892-.32 6.136 2.05 7.632a4.872 4.872 0 0 1-2.032-.596v.058c0 2.217 1.458 4.162 3.57 4.622-.592.162-1.32.189-1.93.07a4.977 4.977 0 0 0 4.594 3.42 9.548 9.548 0 0 1-5.783 2.022c-.37 0-.829-.026-1.127-.065a13.593 13.593 0 0 0 7.72 2.37c9.356 0 14.628-7.98 14.334-15.013.916-.685 1.83-1.636 2.083-1.986.069-.096.02-.236-.085-.262Z"})}),instagram:g.jsx("svg",{className:i,fill:"currentColor",viewBox:"0 0 24 24","aria-hidden":"true",children:g.jsx("path",{d:"M12 2.163c3.204 0 3.584.012 4.85.07 3.252.148 4.771 1.691 4.919 4.919.058 1.265.069 1.645.069 4.849 0 3.205-.012 3.584-.069 4.849-.149 3.225-1.664 4.771-4.919 4.919-1.266.058-1.644.07-4.85.07-3.204 0-3.584-.012-4.849-.07-3.26-.149-4.771-1.699-4.919-4.92-.058-1.265-.07-1.644-.07-4.849 0-3.204.013-3.583.07-4.849.149-3.227 1.664-4.771 4.919-4.919 1.266-.057 1.645-.069 4.849-.069zm0-2.163c-3.259 0-3.667.014-4.947.072-4.358.2-6.78 2.618-6.98 6.98-.059 1.281-.073 1.689-.073 4.948 0 3.259.014 3.668.072 4.948.2 4.358 2.618 6.78 6.98 6.98 1.281.058 1.689.072 4.948.072 3.259 0 3.668-.014 4.948-.072 4.354-.2 6.782-2.618 6.979-6.98.059-1.28.073-1.689.073-4.948 0-3.259-.014-3.667-.072-4.947-.196-4.354-2.617-6.78-6.979-6.98-1.281-.059-1.69-.073-4.949-.073zm0 5.838c-3.403 0-6.162 2.759-6.162 6.162s2.759 6.163 6.162 6.163 6.162-2.759 6.162-6.163c0-3.403-2.759-6.162-6.162-6.162zm0 10.162c-2.209 0-4-1.79-4-4 0-2.209 1.791-4 4-4s4 1.791 4 4c0 2.21-1.791 4-4 4zm6.406-11.845c-.796 0-1.441.645-1.441 1.44s.645 1.44 1.441 1.44c.795 0 1.439-.645 1.439-1.44s-.644-1.44-1.439-1.44z"})}),linkedin:g.jsx("svg",{className:i,fill:"currentColor",viewBox:"0 0 24 24","aria-hidden":"true",children:g.jsx("path",{d:"M20.47 2H3.53a1.45 1.45 0 0 0-1.47 1.43v17.14A1.45 1.45 0 0 0 3.53 22h16.94a1.45 1.45 0 0 0 1.47-1.43V3.43A1.45 1.45 0 0 0 20.47 2ZM8.09 18.74h-3v-9h3v9ZM6.59 8.48h-.02a1.57 1.57 0 1 1 .02 0Zm12.32 10.26h-3v-4.83c0-1.21-.43-2-1.52-2-.83 0-1.32.55-1.54 1.07-.08.19-.1.45-.1.71v5.05h-3v-9h3v1.37a3.24 3.24 0 0 1 2.94-1.61c2.15 0 3.76 1.38 3.76 4.36v4.88Z"})}),youtube:g.jsx("svg",{className:i,fill:"currentColor",viewBox:"0 0 24 24","aria-hidden":"true",children:g.jsx("path",{d:"M23.498 6.186a3.016 3.016 0 0 0-2.122-2.136C19.505 3.545 12 3.545 12 3.545s-7.505 0-9.377.505A3.017 3.017 0 0 0 .502 6.186C0 8.07 0 12 0 12s0 3.93.502 5.814a3.016 3.016 0 0 0 2.122 2.136c1.871.505 9.376.505 9.376.505s7.505 0 9.377-.505a3.015 3.015 0 0 0 2.122-2.136C24 15.93 24 12 24 12s0-3.93-.502-5.814ZM9.545 15.568V8.432L15.818 12l-6.273 3.568Z"})})};return o[n]?g.jsx("span",{className:"inline-block",children:o[n]}):null},F2=({links:n,variant:i="dark",size:o="md"})=>{if(!n)return null;const c="flex items-center justify-center rounded-full transition-all duration-300 border focus:ring-2 focus:ring-offset-2 focus:ring-sand-400 focus:outline-none",s=o==="sm"?"w-8 h-8 p-2":"w-10 h-10 p-2.5",d={dark:"bg-brand-900 text-white border-transparent hover:bg-sand-400 hover:text-brand-900",light:"bg-white/10 text-white border-white/10 hover:bg-white hover:text-brand-900",white:"bg-white text-brand-900 border-white hover:bg-brand-900 hover:text-white shadow-sm"},h=Object.entries(n).filter(([p,y])=>!!y);return h.length===0?null:g.jsx("div",{className:"flex gap-3",children:h.map(([p,y])=>g.jsx("a",{href:y,target:"_blank",rel:"noopener noreferrer",className:`${c} ${s} ${d[i]}`,"aria-label":`Visitar nosso ${p}`,children:g.jsx(K2,{type:p,className:"w-full h-full"})},p))})},W2=()=>{const[n,i]=Q.useState(""),[o,c]=Q.useState(!1),s=d=>{d.preventDefault(),n&&(Q2(n),c(!0),i(""))};return g.jsxs("footer",{className:"bg-brand-900 text-white pt-24 pb-12 relative overflow-hidden border-t border-white/5",children:[g.jsxs("div",{className:"absolute inset-0 pointer-events-none z-0",children:[g.jsx("img",{src:"https://images.unsplash.com/photo-1486406146926-c627a92ad1ab?q=80&w=2670&auto=format&fit=crop",alt:"",className:"w-full h-full object-cover opacity-20 mix-blend-overlay"}),g.jsx("div",{className:"absolute inset-0 bg-brand-900/95"}),g.jsx("div",{className:"absolute top-0 right-0 w-[500px] h-[500px] bg-gradient-to-b from-brand-800 to-transparent roun
169ded-full blur-[100px] opacity-50"})]}),g.jsxs("div",{className:"max-w-[1400px] mx-auto px-6 lg:px-12 relative z-10",children:[g.jsxs("div",{className:"grid md:grid-cols-12 gap-12 mb-20",children:[g.jsxs("div",{className:"md:col-span-3 space-y-8",children:[g.jsx(g0,{variant:"original"}),g.jsx("p",{className:"text-white/70 font-light max-w-sm leading-relaxed text-sm",children:"Promovendo a cultura, educação e inovação entre Portugal, Brasil e o mundo lusófono."}),g.jsx("div",{className:"flex gap-4",children:g.jsx(F2,{links:{instagram:"https://www.instagram.com/fundacao.lusobrasileira",facebook:"https://www.facebook.com/Fund.LusoBrasileira"},variant:"light",size:"sm"})}),g.jsxs("address",{className:"not-italic text-white/70 font-light text-sm leading-relaxed space-y-1",children:[g.jsx("p",{children:g.jsx("a",{href:"mailto:[email protected]",className:"hover:text-sand-400 transition-colors focus:outline-none focus:text-sand-400",children:"[email protected]"})}),g.jsx("p",{children:"Rua de S. Marçal, n.º 77/79 — Lisboa, Portugal"}),g.jsx("p",{children:"Rua General Jardim, n.º 808, 6.º andar — São Paulo, Brasil"})]})]}),g.jsxs("div",{className:"md:col-span-2 space-y-6",children:[g.jsx("h4",{className:"text-xs font-bold uppercase tracking-widest text-white/60",children:"Fundação"}),g.jsxs("ul",{className:"space-y-4 text-sm font-light text-white/60",children:[g.jsx("li",{children:g.jsx(Me,{to:"/quem-somos",className:"hover:text-sand-400 transition-colors",children:"Sobre Nós"})}),g.jsx("li",{children:g.jsx(Me,{to:"/membros",className:"hover:text-sand-400 transition-colors",children:"Pessoas"})}),g.jsx("li",{children:g.jsx(Me,{to:"/parceiros",className:"hover:text-sand-400 transition-colors",children:"Parceiros"})}),g.jsx("li",{children:g.jsx(Me,{to:"/eventos",className:"hover:text-sand-400 transition-colors",children:"Agenda"})}),g.jsx("li",{children:g.jsx(Me,{to:"/contacto",className:"hover:text-sand-400 transition-colors",children:"Contacto"})})]})]}),g.jsxs("div",{className:"md:col-span-2 space-y-6",children:[g.jsx("h4",{className:"text-xs font-bold uppercase tracking-widest text-white/60",children:"Legal"}),g.jsxs("ul",{className:"space-y-4 text-sm font-light text-white/60",children:[g.jsx("li",{children:g.jsx(Me,{to:"/termos",className:"hover:text-sand-400 transition-colors",children:"Termos de Uso"})}),g.jsx("li",{children:g.jsx(Me,{to:"/privacidade",className:"hover:text-sand-400 transition-colors",children:"Privacidade"})}),g.jsx("li",{children:g.jsx(Me,{to:"/precadastro",className:"hover:text-sand-400 transition-colors",children:"Trabalhe Conosco"})})]})]}),g.jsxs("div",{className:"md:col-span-2 space-y-6",children:[g.jsx("h4",{className:"text-xs font-bold uppercase tracking-widest text-white/60",children:"Documentação"}),g.jsxs("ul",{className:"space-y-4 text-sm font-light text-white/60",children:[g.jsx("li",{children:g.jsx(Me,{to:"/documentacao",className:"hover:text-sand-400 transition-colors",children:"Documentos Institucionais"})}),g.jsx("li",{children:g.jsx(Me,{to:"/documentacao",className:"hover:text-sand-400 transition-colors",children:"Estatutos em Vigor"})}),g.jsx("li",{children:g.jsx(Me,{to:"/documentacao",className:"hover:text-sand-400 transition-colors",children:"Relatórios Anuais"})}),g.jsx("li",{children:g.jsx(Me,{to:"/administracao",className:"hover:text-sand-400 transition-colors",children:"Órgãos Sociais"})})]})]}),g.jsxs("div",{className:"md:col-span-3 space-y-6",children:[g.jsx("h4",{className:"text-xs font-bold uppercase tracking-widest text-white/60",children:"Newsletter"}),g.jsx("p",{className:"text-white/70 font-light text-sm",children:"Receba atualizações sobre eventos e iniciativas."}),o?g.jsxs("div",{className:"p-4 bg-green-500/10 border border-green-500/20 rounded-xl text-green-400 text-sm flex items-center gap-2",children:[g.jsx(Sg,{size:16})," Inscrito com sucesso."]}):g.jsxs("form",{onSubmit:s,className:"flex gap-2",children:[g.jsx("input",{type:"email",placeholder:"[email protected]",className:"bg-white/5 border border-white/10 rounded-xl px-4 py-3 text-sm text-white focus:outline-none focus:border-sand-400 flex-grow placeholder:text-white/60",value:n,onChange:d=>i(d.target.value),required:!0}),g.jsx("button",{type:"submit","aria-label":"Subscrever a newsletter",className:"bg-sand-400 text-brand-900 px-4 py-3 rounded-xl font-bold hover:bg-white transition-colors",children:g.jsx(Ch,{size:16,"aria-hidden":"true"})})]})]})]}),g.jsxs("div",{className:"pt-8 border-t border-white/5 flex flex-col md:flex-row justify-between items-center gap-4 text-xs text-white/60 font-light",children:[g.jsxs("p",{children:["© ",new Date().getFullYear()," Fundação Luso-Brasileira. Todos os direitos reservados."]}),g.jsxs("p",{className:"text-center",children:["Plataforma desenvolvida por"," ",g.jsx(Me,{to:"/legaltech-space",className:"text-white/80 font-medium hover:text-sand-400 transition-colors",children:"LEGALTECH SPACE GROUP"})," ","— Parceira Tecnológica"]}),g.jsx("p",{children:"Lisboa • Brasília"})]})]})]})},I2=()=>{const[n,i]=Q.useState([]);return Q.useEffect(()=>{const o=c=>{const s={id:Math.random().toString(36),message:c.detail.message,type:c.detail.type};i(h=>[...h,s]);let d=2500;s.type==="success"&&(d=2200),s.type==="info"&&(d=2500),s.type==="warning"&&(d=3e3),s.type==="error"&&(d=4e3),setTimeout(()=>
169{i(h=>h.filter(p=>p.id!==s.id))},d)};return window.addEventListener(xc,o),()=>window.removeEventListener(xc,o)},[]),n.length===0?null:g.jsx("div",{className:"fixed z-[10000] flex flex-col gap-3 pointer-events-none w-full max-w-[90vw] md:w-auto bottom-6 left-1/2 -translate-x-1/2 md:bottom-auto md:left-auto md:translate-x-0 md:top-6 md:right-6",role:"region","aria-label":"Notificações",children:n.map(o=>g.jsxs("div",{role:o.type==="error"?"alert":"status","aria-live":o.type==="error"?"assertive":"polite",className:`
170            pointer-events-auto px-5 py-3 rounded-xl shadow-2xl border flex items-center gap-3 min-w-[280px] md:min-w-[300px] animate-in slide-in-from-bottom-2 md:slide-in-from-right-4 fade-in duration-300
171            bg-white text-slate-900
172            ${o.type==="success"?"border-green-500/30":o.type==="error"?"border-red-500/30":o.type==="warning"?"border-yellow-500/30":"border-brand-900/20"}
173          `,children:[o.type==="success"&&g.jsx(Tg,{size:18,className:"text-green-600 shrink-0","aria-hidden":"true"}),o.type==="error"&&g.jsx(wg,{size:18,className:"text-red-600 shrink-0","aria-hidden":"true"}),o.type==="warning"&&g.jsx(Eg,{size:18,className:"text-yellow-600 shrink-0","aria-hidden":"true"}),o.type==="info"&&g.jsx(Og,{size:18,className:"text-brand-900 shrink-0","aria-hidden":"true"}),g.jsx("div",{children:g.jsx("p",{className:"text-sm font-medium leading-tight",children:o.message})})]},o.id))})};class P2 extends Uc.Component{constructor(i){super(i),this.state={hasError:!1}}static getDerivedStateFromError(i){return{hasError:!0,error:i}}componentDidCatch(i,o){}render(){return this.state.hasError?this.props.fallback?this.props.fallback:g.jsx("div",{className:"min-h-screen bg-brand-900 flex items-center justify-center px-6",children:g.jsxs("div",{className:"max-w-md text-center space-y-4",children:[g.jsx("p",{className:"text-white/60 text-lg font-light",children:"Ocorreu um erro inesperado."}),g.jsx("button",{onClick:()=>window.location.reload(),className:"text-sand-400 hover:text-white transition-colors text-sm underline underline-offset-4",children:"Recarregar página"})]})}):this.props.children}}const jh=n=>n.message.includes("dynamically imported module")||n.message.includes("Loading chunk")||n.message.includes("Importing a module script failed");class eS extends Uc.Component{constructor(){super(...arguments),this.state={chunkErrored:!1}}static getDerivedStateFromError(i){if(jh(i))return{chunkErrored:!0};throw i}componentDidCatch(i){jh(i)&&!sessionStorage.getItem("chunk_reload")&&(sessionStorage.setItem("chunk_reload","1"),window.location.reload())}render(){return this.state.chunkErrored?g.jsxs("div",{className:"min-h-[60vh] flex flex-col items-center justify-center gap-4 px-6 text-center",children:[g.jsx("h1",{className:"text-2xl font-serif text-brand-900",children:"Atualizacao disponivel"}),g.jsx("p",{className:"max-w-md text-slate-500 font-light",children:"Esta pagina foi atualizada enquanto tinha o site aberto. Recarregue para continuar."}),g.jsx("button",{type:"button",onClick:()=>{sessionStorage.removeItem("chunk_reload"),window.location.reload()},className:"px-5 py-2.5 rounded-full bg-brand-900 text-white text-sm hover:bg-brand-800 transition-colors",children:"Recarregar pagina"})]}):this.props.children}}const Uu=({children:n,requireEditor:i=!1})=>{const[,o]=Q.useState(0);return Q.useEffect(()=>{const c=()=>o(s=>s+1);return window.addEventListener(ni,c),()=>window.removeEventListener(ni,c)},[]),Cc?g.jsx(_0,{}):Ve.isLoggedIn?i&&!Se()?g.jsx(Bu,{to:"/",replace:!0}):g.jsx(g.Fragment,{children:n}):g.jsx(Bu,{to:"/login",replace:!0})},tS=Q.lazy(()=>he(()=>
173import("./HomePage-STjgF7DE.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17])).then(n=>({default:n.HomePage}))),aS=Q.lazy(()=>he(()=>import("./HomePage-STjgF7DE.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17])).then(n=>({default:n.NotFoundPage}))),nS=Q.lazy(()=>he(()=>import("./QuemSomosPage-BV9aa0gG.js"),__vite__mapDeps([18,1,14,11,12,13,19,20,21,5,2,3,4,6,17])).then(n=>({default:n.QuemSomosPage}))),lS=Q.lazy(()=>he(()=>import("./AdminPage-B8H94Ocs.js"),__vite__mapDeps([22,1,14,23,19,20,21,24,16,5,4,6,17])).then(n=>({default:n.AdminPage}))),iS=Q.lazy(()=>he(()=>import("./ParceirosPage-C8bsq7va.js"),__vite__mapDeps([25,1,14,26,27,5,4,6,8,28,13,29,17])).then(n=>({default:n.ParceirosPage}))),uS=Q.lazy(()=>he(()=>import("./MembroPerfilPage-CZjP0EuW.js"),__vite__mapDeps([30,1,2,3,4,31,32,33,6,34,17,35,36,37,38,39,14,40,24])).then(n=>({default:n.MembroPerfilPage}))),oS=Q.lazy(()=>he(()=>import("./MembroPerfilPage-CZjP0EuW.js"),__vite__mapDeps([30,1,2,3,4,31,32,33,6,34,17,35,36,37,38,39,14,40,24])).then(n=>({default:n.MembroEditarPage}))),rS=Q.lazy(()=>he(()=>import("./EventosPage-BPotDufO.js"),__vite__mapDeps([41,1,2,3,4,31,32,33,6,42,34,17,43,37,44,28,24,39,45,8,21,14,9,46])).then(n=>({default:n.EventosPage}))),cS=Q.lazy(()=>he(()=>import("./EventoDetalhePage-DuoHjvpl.js"),__vite__mapDeps([47,1,2,3,31,32,33,6,19,20,21,42,34,17,43,37,44,28,24,39,45,8,48,9,10,49,50,14,40])).then(n=>({default:n.EventoDetalhePage}))),sS=Q.lazy(()=>he(()=>import("./EventoColaborarPage-BLrEJcF3.js"),__vite__mapDeps([51,1,2,3,4,31,32,33,6,34,17,14,40,43,49,52])).then(n=>({default:n.EventoColaborarPage}))),fS=Q.lazy(()=>he(()=>import("./LoginPage-DZwUi_Hs.js"),__vite__mapDeps([53,1,2,3,4,32,14,40,50,33,54,17])).then(n=>({default:n.LoginPage}))),dS=Q.lazy(()=>he(()=>import("./CadastroPage-6f56M6Z5.js"),__vite__mapDeps([55,1,2,3,32,6,14,17])).then(n=>({default:n.CadastroPage}))),mS=Q.lazy(()=>he(()=>import("./PreCadastroPage-DoSADqfo.js"),__vite__mapDeps([56,1,2,3,32,14,40,57,29,58,17])).then(n=>({default:n.PreCadastroPage}))),hS=Q.lazy(()=>he(()=>import("./ResetPasswordPage-BGsN_tf8.js"),__vite__mapDeps([59,1,2,3,4,32,14,40,54,33,17])).then(n=>({default:n.ResetPasswordPage}))),pS=Q.lazy(()=>he(()=>import("./DashboardPage-DIiSl-aA.js"),__vite__mapDeps([60,1,2,3,31,32,33,6,42,34,17,43,37,44,28,24,39,45,8,21,38,35,13,20,61,14,15,46,9,57,52,62,50])).then(n=>({default:n.DashboardPage}))),vS=Q.lazy(()=>he(()=>import("./DashboardMediaPage-CjSjfD3b.js"),__vite__mapDeps([63,1,2,3,6,48,42,34,17,43,37,44,28,24,39,45,8,21,9,10,49,50,14,40,36])).then(n=>({default:n.DashboardEventosPage}))),gS=Q.lazy(()=>he(()=>import("./DashboardMediaPage-CjSjfD3b.js"),__vite__mapDeps([63,1,2,3,6,48,42,34,17,43,37,44,28,24,39,45,8,21,9,10,49,50,14,40,36])).then(n=>({default:n.DashboardMediaGerirPage}))),yS=Q.lazy(()=>he(()=>import("./LegalPage-GDue1erN.js"),__vite__mapDeps([64,1,5,6,14,17])).then(n=>({default:n.PrivacyPage}))),bS=Q.lazy(()=>he(()=>import("./LegalPage-GDue1erN.js"),__vite__mapDeps([64,1,5,6,14,17])).then(n=>({default:n.TermsPage}
173))),_S=Q.lazy(()=>he(()=>import("./DocumentacaoPage-CsWAe94U.js"),__vite__mapDeps([65,1,2,3,5,31,32,33,6,14,61,20,21,45,17])).then(n=>({default:n.DocumentacaoPage}))),SS=Q.lazy(()=>he(()=>import("./BeneficiosPage-B6Lwojto.js"),__vite__mapDeps([66,1,6,5,35,14,3,39,17])).then(n=>({default:n.BeneficiosPage}))),zS=Q.lazy(()=>he(()=>import("./LegaltechSpacePage-BEMopziu.js"),__vite__mapDeps([67,14,1,5,2,3,4,6,58,9,57,44,62,12,17])).then(n=>({default:n.LegaltechSpacePage}))),ES=Q.lazy(()=>he(()=>import("./ParceiroPerfilPage-DO9fQyBO.js"),__vite__mapDeps([68,1,26,14,6,4,5,40,39,17])).then(n=>({default:n.ParceiroPerfilPage}))),xS=Q.lazy(()=>he(()=>import("./ContactoPage-CIaPRili.js"),__vite__mapDeps([69,1,5,6,14,50,10,17])).then(n=>({default:n.ContactoPage}))),TS=()=>{Q.useEffect(()=>{const n=window.setTimeout(()=>sessionStorage.removeItem("chunk_reload"),5e3);return()=>window.clearTimeout(n)},[])},AS=()=>(TS(),g.jsx(eS,{children:g.jsx(Q.Suspense,{fallback:g.jsx(_0,{}),children:g.jsxs(tg,{children:[g.jsx(ve,{path:"/",element:g.jsx(tS,{})}),g.jsx(ve,{path:"/quem-somos",element:g.jsx(nS,{})}),g.jsx(ve,{path:"/administracao",element:g.jsx(lS,{})}),g.jsx(ve,{path:"/membros",element:g.jsx(Bu,{to:"/administracao",replace:!0})}),g.jsx(ve,{path:"/parceiros",element:g.jsx(iS,{})}),g.jsx(ve,{path:"/parceiros/:id",element:g.jsx(ES,{})}),g.jsx(ve,{path:"/membro/:id",element:g.jsx(uS,{})}),g.jsx(ve,{path:"/membro/:id/editar",element:g.jsx(Uu,{requireEditor:!0,children:g.jsx(oS,{})})}),g.jsx(ve,{path:"/eventos",element:g.jsx(rS,{})}),g.jsx(ve,{path:"/eventos/:id",element:g.jsx(cS,{})}),g.jsx(ve,{path:"/eventos/:id/colaborar",element:g.jsx(sS,{})}),g.jsx(ve,{path:"/precadastro",element:g.jsx(mS,{})}),g.jsx(ve,{path:"/login",element:g.jsx(fS,{})}),g.jsx(ve,{path:"/reset-password",element:g.jsx(hS,{})}),g.jsx(ve,{path:"/cadastro",element:g.jsx(dS,{})}),g.jsx(ve,{path:"/dashboard",element:g.jsx(Uu,{requireEditor:!0,children:g.jsx(pS,{})})}),g.jsx(ve,{path:"/dashboard/eventos",element:g.jsx(Uu,{requireEditor:!0,children:g.jsx(vS,{})})}),g.jsx(ve,{path:"/dashboard/eventos/:id/midias",element:g.jsx(Uu,{requireEditor:!0,children:g.jsx(gS,{})})}),g.jsx(ve,{path:"/beneficios",element:g.jsx(SS,{})}),g.jsx(ve,{path:"/legaltech-space",element:g.jsx(zS,{})}),g.jsx(ve,{path:"/privacidade",element:g.jsx(yS,{})}),g.jsx(ve,{path:"/termos",element:g.jsx(bS,{})}),g.jsx(ve,{path:"/documentacao",element:g.jsx(_S,{})}),g.jsx(ve,{path:"/contacto",element:g.jsx(xS,{})}),g.jsx(ve,{path:"/contato",element:g.jsx(Bu,{to:"/contacto",replace:!0})}),g.jsx(ve,{path:"*",element:g.jsx(aS,{})})]})})})),S0=n=>({id:n.id,council:n.council,name:n.name,role:n.role??null,order:n.order??0,active:n.active!==!1,partner_id:n.partner_id??null,created_at:n.created_at}),Dh=n=>{Vt.length=0,Vt.push(...n),W()},Mc=async()=>{const{data:n,error:i}=await V.from("council_members").select("*").order("council",{ascending:!0}).order("order",{ascending:!0}).order("created_at",{ascending:!0});if(i||!n){Dh([]);return}Dh(n.map(S0))},rz=async n=>{var p;if(!Se())return U("Sem permissão.","error"),null;const i=Math.max(0,...Vt.filter(y=>y.council===n.council).map(y=>y.order))+1,o={council:n.council,name:n.name,role:n.role??null,order:n.order??i,active:n.active??!0},c=d0.safeParse(o);if(!c.success)return U(((p=c.error.issues[0])==null?void 0:p.message)||"Dados inválidos.","error"),null;const{data:s,error:d}=await V.from("council_members").insert([c.data]).select().single();if(d||!s)return U("Erro ao adicionar nome.","error"),null;const h=S0(s);return Vt.push(h),ce("Adicionou nome ao conselho",h.name),W(),U("Nome adicionado.","success"),h},cz=async(n,i)=>{var h,p;if(!Se())return U("Sem permissão.","error"),!1;const o=d0.partial().safeParse(i);if(!o.success)return U(((h=o.error.issues[0])==null?void 0:h.message)||"Dados inválidos.","error"),!1;const{data:c,error:s}=await V.from("council_members").update(o.data).eq("id",n).select("id");if(s)return U("Erro ao atualizar nome.","error"),!1;if(!c||c.length===0)return U("Sem permissão para atualizar.","error"),!1;const d=Vt.findIndex(y=>y.id===n);return d!==-1&&(Vt[d]={...Vt[d],...o.data}),ce("Editou nome do conselho",((p=Vt.find(y=>y.id===n))==null?void 0:p.name)||n),W(),U("Nome atualizado.","success"),!0},sz=async n=>{if(!Se())return U("Sem permissão.","error"),!1;const{data:i,error:o}=await V.from("council_members").delete().eq("id",n).select("id");if(o)return U("Erro ao remover nome.","error"),!1;if(!i||i.length===0)return U("Sem permissão para remover.","error"),!1;const c=Vt.findIndex(s=>s.id===n);if(c!==-1){const s=Vt[c].name;Vt.splice(c,1),ce("Removeu nome do conselho",s),W(),U("Nome removido.","success")}return!0},OS=30*1024*1024,z0=n=>
173({id:n.id,category:n.category,title:n.title,description:n.description??null,year:n.year??null,file_url:n.file_url,gated:n.gated!==!1,order:n.order??0,active:n.active!==!1,created_at:n.created_at}),wc=async()=>{const{data:n,error:i}=await V.from("institutional_documents").select("*").order("category",{ascending:!0}).order("order",{ascending:!0}).order("created_at",{ascending:!0});Bt.length=0,!i&&n&&Bt.push(...n.map(z0)),W()},fz=n=>Bt.filter(i=>i.category===n&&i.active!==!1).sort((i,o)=>i.order-o.order||i.title.localeCompare(o.title)),dz=async n=>{if(!Se())return U("Sem permissão.","error"),null;if(n.type!=="application/pdf")return U("Envie um arquivo PDF.","error"),null;if(n.size>OS)return U("Arquivo muito grande (máx. 30MB).","error"),null;const i=n.name.replace(/[^a-zA-Z0-9.]/g,""),o=`documents/${crypto.randomUUID()}-${i}`,{error:c}=await V.storage.from("media").upload(o,n,{cacheControl:"3600",upsert:!1});if(c)return U(`Erro no upload: ${c.message}`,"error"),null;const{data:s}=V.storage.from("media").getPublicUrl(o);return s.publicUrl},mz=async n=>{var p;if(!Se())return U("Sem permissão.","error"),null;const i=Math.max(0,...Bt.filter(y=>y.category===n.category).map(y=>y.order))+1,o={category:n.category,title:n.title,description:n.description??null,year:n.year??null,file_url:n.file_url,gated:n.gated??!0,order:n.order??i,active:n.active??!0},c=m0.safeParse(o);if(!c.success)return U(((p=c.error.issues[0])==null?void 0:p.message)||"Dados inválidos.","error"),null;const{data:s,error:d}=await V.from("institutional_documents").insert([c.data]).select().single();if(d||!s)return U("Erro ao adicionar documento.","error"),null;const h=z0(s);return Bt.push(h),ce("Adicionou documento",h.title),W(),U("Documento adicionado.","success"),h},hz=async(n,i)=>{var h,p;if(!Se())return U("Sem permissão.","error"),!1;const o=m0.partial().safeParse(i);if(!o.success)return U(((h=o.error.issues[0])==null?void 0:h.message)||"Dados inválidos.","error"),!1;const{data:c,error:s}=await V.from("institutional_documents").update(o.data).eq("id",n).select("id");if(s)return U("Erro ao atualizar documento.","error"),!1;if(!c||c.length===0)return U("Sem permissão para atualizar.","error"),!1;const d=Bt.findIndex(y=>y.id===n);return d!==-1&&(Bt[d]={...Bt[d],...o.data}),ce("Editou documento",((p=Bt.find(y=>y.id===n))==null?void 0:p.title)||n),W(),U("Documento atualizado.","success"),!0},pz=async n=>{if(!Se())return U("Sem permissão.","error"),!1;const{data:i,error:o}=await V.from("institutional_documents").delete().eq("id",n).select("id");if(o)return U("Erro ao remover documento.","error"),!1;if(!i||i.length===0)return U("Sem permissão para remover.","error"),!1;const c=Bt.findIndex(s=>s.id===n);if(c!==-1){const s=Bt[c].title;Bt.splice(c,1),ce("Removeu documento",s),W(),U("Documento removido.","success")}return!0},E0=n=>{const i={...n};i.coverImage=n.cover_image,i.socialLinks=n.social_links||{},i.descriptionShort=n.description_short,i.endDate=n.end_date,i.endTime=n.end_time,i.cardImage=n.card_image;try{i.gallery=typeof n.gallery=="string"?JSON.parse(n.gallery):n.gallery||[]}catch{i.gallery=[]}try{i.sponsorIds=typeof n.sponsors=="string"&&n.sponsors.startsWith("[")?JSON.parse(n.sponsors):[]}catch{i.sponsorIds=[]}return delete i.sponsors,delete i.cover_image,delete i.social_links,delete i.description_short,delete i.end_date,delete i.end_time,delete i.card_image,i},Ru=async()=>{bc(!0),nh(null),W();const{data:n,error:i}=await V.from("events").select("*").order("created_at",{ascending:!1});if(i||!n){nh((i==null?void 0:i.message)??"Erro ao carregar eventos."),bc(!1),W();return}st.length=0,st.push(...n.map(E0)),bc(!1),W()},vz=()=>[...st],gz=async n=>{if(!Se())return null;const i={title:n.title||"Novo Evento",subtitle:n.subtitle,description:n.description,description_short:n.descriptionShort,date:n.date,time:n.time,end_date:n.endDate,end_time:n.endTime,location:n.location,address:n.address,city:n.city,country:n.country,category:n.category||"Outros",tags:n.tags,image:n.image,cover_image:n.coverImage,card_image:n.cardImage,social_links:n.socialLinks,gallery:n.gallery||[],links:n.links,status:n.status||"draft",featured:n.featured||!1,objective:n.objective,experience:n.experience,sponsors:n.sponsorIds?JSON.stringify(n.sponsorIds):null,notes:n.notes},{data:o,error:c}=await V.from("events").insert([i]).select();if(c||!o)return U("Erro ao criar evento.","error"),null;const s=E0(o[0]);return st.unshift(s),ce("Criou evento",s.title),W(),U("Evento criado.","success"),s},NS=new Set(["title","subtitle","description","description_short","objective","experience","sponsors","date","time","end_date","end_time","location","address","city","country","category","tags","image","cover_image","card_image","gallery","links","social_links","status","featured","notes"]),x0=async(n,i,o=!0)=>{var S;if(!Se())return!1;const c={...i};"sponsorIds"in c&&(c.sponsors=JSON.stringify(c.sponsorIds),delete c.sponsorIds);const s=[["coverImage","cover_image"],["socialLinks","social_links"],["descriptionShort","description_short"],["endDate","end_date"],["endTime","end_time"],["cardImage","card_image"]];for(const[A,O]of s)A in c&&(c[O]=c[A],delete c[A]);const d={};for(const A of Object.keys(c))NS.has(A)&&(d[A]=c[A]);const{data:h,error:p}=await V.from("events").update(d).eq("id",n).select("id");if(p)return U("Erro ao salvar.","error"),!1;if(!h||h.length===0)return U("Sem permissão para editar este evento.","error"),!1;const y=st.findIndex(A=>A.id===n);return y!==-1&&(st[y]={...st[y],...i}),ce("Editou evento",((S=st.find(A=>A.id===n))==null?void 0:S.title)||n),W(),o&&U("Evento salvo.","success"),!0},yz=async n=>{if(!Se())return!1;const{data:i,error:o}=await V.from("events").delete().eq("id",n).select("id");if(o)return U("Erro ao remover evento.","error"),!1;if(!i||i.length===0)return U("Sem permissão para remover este evento.","error"),!1;const c=st.findIndex(s=>s.id===n);if(c!==-1){const s=st[c].title;st.splice(c,1),ce("Removeu evento",s),W(),U("Evento removido.","success")}return!0},Mh=new Map,Yc=async(n,i)=>{if(!Se()||!st.find(s=>
173s.id===n))return!1;const c=(Mh.get(n)??Promise.resolve()).then(async()=>{const s=st.find(y=>y.id===n);if(!s)return!1;const d={...i,id:Zc("media"),createdAt:new Date().toISOString(),order:s.gallery.length},h=[...s.gallery,d],p=await x0(n,{gallery:h},!1);return p&&W(),p});return Mh.set(n,c.catch(()=>{})),c},jS=async(n,i)=>{if(Se())try{const{saveMediaBlob:o}=await he(async()=>{const{saveMediaBlob:d}=await import("./media.service-CJ8Z8wpN.js");return{saveMediaBlob:d}},__vite__mapDeps([34,1,17])),c=await o(i);await Yc(n,{kind:i.type.startsWith("video")?"video":"image",srcType:"url",url:c,source:"oficial",status:"published"})?U("Imagem enviada.","success"):U("Erro ao guardar mídia no evento.","error")}catch(o){U(`Erro no upload: ${(o==null?void 0:o.message)||"erro desconhecido"}`,"error")}},bz=async(n,i,o="image")=>Se()?Gc(i)?await Yc(n,{kind:o,srcType:"url",url:i,source:"oficial",status:"published"})===!0:(U("URL inválida. Use apenas HTTP ou HTTPS.","error"),!1):!1,_z=async(n,i)=>{const o=i instanceof FileList?Array.from(i):i;for(const c of o)await jS(n,c)},Sz=async(n,i)=>{if(!Se())return;const o=ha.find(S=>S.id===i);if(!o)return;const c=st.find(S=>S.id===n);if(!c)return;const s=[...c.gallery];if(!await Yc(n,{kind:o.type,srcType:"url",url:o.url,caption:`Enviado por ${o.authorName}`,source:"comunidade",status:"published"})){U("Erro ao aprovar mídia.","error");return}const{data:h,error:p}=await V.from("community_media_submissions").delete().eq("id",i).select("id");if(p||!h||h.length===0){if(!await x0(n,{gallery:s},!1)){U("Erro ao atualizar submissão de mídia e falha ao reverter publicação.","error");return}U("Erro ao atualizar submissão de mídia. A publicação foi revertida.","error");return}const y=ha.findIndex(S=>S.id===i);y!==-1&&ha.splice(y,1),ce("Aprovou mídia",(c==null?void 0:c.title)||n),W(),U("Mídia aprovada.","success")},zz=async n=>{if(!Se())return;const{data:i,error:o}=await V.from("community_media_submissions").delete().eq("id",n).select("id");if(o||!i||i.length===0){U("Erro ao rejeitar mídia.","error");return}const c=ha.findIndex(s=>s.id===n);c!==-1&&(ha.splice(c,1),ce("Rejeitou mídia",n),W(),U("Mídia rejeitada.","info"))},T0=n=>({id:n.id,eventId:n.event_id,authorName:n.author_name,email:n.email,url:n.url,type:n.type,message:n.message,status:n.status,createdAt:n.created_at}),DS=async()=>{const{data:n,error:i}=await V.from("community_media_submissions").select("*").order("created_at",{ascending:!1});i||!n||(ha.length=0,ha.push(...n.map(T0)),W())},Ez=async n=>{if(!Gc(n.url))return U("URL inválida. Use apenas HTTP ou HTTPS.","error"),null;const i={event_id:n.eventId,author_name:n.authorName,email:n.email,url:n.url,type:n.type,message:n.message},{data:o,error:c}=await V.from("community_media_submissions").insert([i]).select("*").single();if(c||!o)return U("Erro ao enviar mídia.","error"),null;const s=T0(o);return ha.push(s),ce("Submissão de mídia",n.authorName),W(),s},MS=n=>({id:n.id,action:n.action,target:n.target,user:n.user_name,timestamp:n.created_at}),A0=async()=>{const{data:n,error:i}=await V.from("activity_logs").select("*").order("created_at",{ascending:!1}).limit(50);i||!n||(al.length=0,al.push(...n.map(MS)),W())},wS=async(n,i)=>{const o={action:n,target:i,user_name:Ve.displayName||"Editor",user_id:Ve.userId||null},{error:c}=await V.from("activity_logs").insert([o]);return c?{ok:!1,error:c.message}:{ok:!0}
173},US=Object.freeze(Object.defineProperty({__proto__:null,persistLogEntry:wS,syncActivityLog:A0},Symbol.toStringTag,{value:"Module"})),CS=Gt({name:te().min(2,"Informe o seu nome completo.").max(120),email:te().email("Informe um email válido.")}),ZS=n=>{const{created_at:i,...o}=n;return{...o,createdAt:i}},xz=async n=>{var s;const i=CS.safeParse({name:n.name,email:n.email});if(!i.success)return{success:!1,error:((s=i.error.issues[0])==null?void 0:s.message)||"Dados inválidos."};const o={name:i.data.name.trim(),email:i.data.email.trim().toLowerCase()};n.document&&n.document.trim()&&(o.document=n.document.trim().slice(0,200));const{error:c}=await V.from("estatutos_leads").insert([o]);return c?{success:!1,error:"Não foi possível registar o pedido. Tente novamente."}:{success:!0}},RS=async()=>{if(!Se())return;const{data:n,error:i}=await V.from("estatutos_leads").select("*").order("created_at",{ascending:!1});i||!n||(li.length=0,li.push(...n.map(ZS)),W())},Tz=async n=>{if(!Se())return!1;const{data:i,error:o}=await V.from("estatutos_leads").delete().eq("id",n).select("id");if(o)return U("Erro ao remover registo.","error"),!1;if(!i||i.length===0)return U("Sem permissão para remover este registo.","error"),!1;const c=li.findIndex(s=>s.id===n);return c!==-1&&(li.splice(c,1),W(),U("Registo removido.","success")),!0},BS=Q.lazy(()=>he(()=>import("./index-NASTEZy0.js"),__vite__mapDeps([70,7,8,1,9,10,2,3,32,23,19,20,21,24,16,27,17])).then(n=>({default:n.SmartInviteModal}))),Cu=()=>{Rt.length=0,ha.length=0,al.length=0,li.length=0,W()};Dc();Mc();wc();Ru();let wh=0;const{data:{subscription:Az}}=V.auth.onAuthStateChange(async(n,i)=>{if((n==="INITIAL_SESSION"||n==="SIGNED_IN")&&(i!=null&&i.user)){if(n==="SIGNED_IN"&&(Ve.isLoggedIn&&Ve.userId===i.user.id&&Ve.role!=="viewer"||Cc)){W();return}const c=++wh;Dc(),Mc(),wc(),Ru(),Cu();const s=await Z2(i.user.id);if(c!==wh)return;const d=R2(s,i.user.id,Ve),h=d.role;d.unconfirmed&&!d.keptPrevious&&U("Não foi possível confirmar as suas permissões. Tente recarregar a página.","error"),Zu({isLoggedIn:!0,role:h,displayName:i.user.email||"Editor",userId:i.user.id,lastLoginAt:new Date().toISOString()}),_c(!1),h==="admin"||h==="editor"?(Y2(),DS(),A0(),RS()):Cu()}else n==="INITIAL_SESSION"&&!i?(Zu({isLoggedIn:!1,role:"viewer"}),_c(!1),Cu(),Ru()):n==="SIGNED_OUT"&&(Zu({isLoggedIn:!1,role:"viewer"}),_c(!1),Cu(),Dc(),Mc(),wc(),Ru());W()});function LS(){return g.jsx(ag,{children:g.jsxs("div",{className:"flex flex-col min-h-screen font-sans selection:bg-brand-500/30 selection:text-brand-900",children:[g.jsx(B2,{}),g.jsx("div",{className:"flex-grow",children:g.jsx(AS,{})}),g.jsx(W2,{}),g.jsx(Q.Suspense,{fallback:null,children:g.jsx(BS,{})}),g.jsx(I2,{})]})})}const O0=document.getElementById("root");if(!O0)throw new Error("Could not find root element to mount to");const qS=fg.createRoot(O0);qS.render(g.jsx(Uc.StrictMode,{children:g.jsx(P2,{children:g.jsx(LS,{})})}));export{Xu as $,Ve as A,g0 as B,Sg as C,E2 as D,st as E,ni as F,ez as G,B2 as H,KS as I,tz as J,az as K,z2 as L,Nh as M,lz as N,cz as O,Pe as P,sz as Q,$S as R,F2 as S,rz as T,Bt as U,mz as V,hz as W,ah as X,pz as Y,dz as Z,Rt as _,W2 as a,ha as a0,al as a1,li as a2,$2 as a3,Y2 as a4,uz as a5,Tz as a6,iz as a7,RS as a8,VS as a9,zz as aa,Sz as ab,Og as ac,YS as ad,x0 as ae,gz as af,_z as ag,bz as ah,Gc as ai,xc as aj,H2 as ak,XS as al,jS as am,oz as an,nz as ao,fz as ap,xz as aq,WS as ar,ce as as,IS as at,Cg as b,va as c,_0 as d,Ch as e,Zg as f,vz as g,Vt as h,Zc as i,g as j,U as k,Se as l,QS as m,yz as n,Ru as o,GS as p,Tg as q,JS as r,Q2 as s,FS as t,k2 as u,X2 as v,Ez as w,V as x,Eg as y,PS as z};

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.