PageSourceSearch

https://tangogrid.com/assets/index-paIisdzt.js

js tangogrid.com collected 2026-10-04 13:33:05 UTC 708,139 bytes, 553 lines download raw bytes

1const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/profile-AbUsj27m.js","assets/useStore-Bnp9X9K7.js","assets/button-BEP8s8km.js","assets/utils-DYbAmjaV.js","assets/input-0fj-Z6lY.js","assets/google-icon-Bu14B0ro.js","assets/feedback-BjvdXvVu.js","assets/route-1C93PK2J.js","assets/routes-CY8a_3b3.js","assets/tango-quick-set-ClD4I3rU.js","assets/progress-keys-YrK03vzt.js","assets/start-gate-CuzfKbM4.js","assets/unlimited-DfwFpp_k.js","assets/tango-unlimited-guide-BAFnkGIu.js","assets/timed-DC_ReCqZ.js","assets/timed-dFRkiRf9.js","assets/archive-BC8SBeUD.js","assets/_size-GnfleL7O.js","assets/_date-DiEfcy9L.js","assets/_size.index-BWesbF_U.js","assets/_size._levelId-JsnBCPDD.js"])))=>i.map(i=>d[i]);
2import{A as e,B as t,C as n,D as r,E as i,F as a,G as o,H as s,I as c,J as l,K as u,L as d,M as f,N as p,O as m,P as h,R as g,T as _,U as v,V as y,W as b,X as x,Y as S,_ as C,a as w,b as E,c as D,f as O,h as k,i as A,j,k as M,l as N,m as P,n as F,o as I,p as ee,q as te,r as ne,s as re,t as L,v as R,w as ie,x as ae,z}from"./useStore-Bnp9X9K7.js";import{a as B,c as oe,d as se,i as ce,l as le,o as ue,r as V,s as de,t as fe}from"./utils-DYbAmjaV.js";import{a as pe,c as me,i as he,n as ge,o as _e,r as ve,s as ye}from"./matchContext-DiFtGHTi.js";import{i as be,n as H,r as xe,t as Se}from"./config-Bh1VkgzM.js";import{$a as Ce,$c as we,$i as Te,$l as Ee,$n as De,$o as Oe,$r as ke,$s as Ae,A as je,Aa as Me,Ac as Ne,Ad as Pe,Ai as Fe,Al as Ie,Ao as Le,Ap as Re,Ar as ze,As as Be,B as Ve,B_ as He,Ba as Ue,Bc as We,Bi as Ge,Bl as Ke,Bo as qe,Br as Je,Bs as Ye,C as Xe,C_ as Ze,Ca as Qe,Cc as $e,Ch as et,Ci as tt,Cl as nt,Co as rt,Cp as it,Cr as at,Cs as ot,D as st,D_ as ct,Da as lt,Dc as ut,Di as dt,Dl as ft,Do as pt,Dp as mt,Dr as ht,Ds as gt,E as _t,E_ as vt,Ea as yt,Ec as bt,Ed as xt,Ei as St,El as Ct,Eo as wt,Ep as Tt,Er as Et,Es as Dt,F as Ot,F_ as kt,Fa as At,Fc as jt,Fi as Mt,Fl as Nt,Fo as Pt,Fr as Ft,Fs as It,G as Lt,G_ as Rt,Ga as zt,Gc as Bt,Gi as Vt,Gl as Ht,Gn as Ut,Go as Wt,Gr as Gt,Gs as Kt,H as qt,H_ as Jt,Ha as Yt,Hc as Xt,Hi as Zt,Hl as Qt,Ho as $t,Hr as en,Hs as tn,I as nn,I_ as rn,Ia as an,Ic as on,Ii as sn,Il as cn,Io as ln,Ir as un,Is as dn,J as fn,Ja as pn,Jc as mn,Jf as hn,Ji as gn,Jl as _n,Jn as vn,Jo as yn,Jp as bn,Jr as xn,Js as Sn,K as Cn,K_ as wn,Ka as Tn,Kc as En,Ki as Dn,Kl as On,Kn as kn,Ko as An,Kr as jn,Ks as Mn,L as Nn,L_ as Pn,La as Fn,Lc as In,Li as Ln,Ll as Rn,Ln as zn,Lo as Bn,Lr as Vn,Ls as Hn,M as Un,M_ as Wn,Ma as Gn,Mc as Kn,Mi as qn,Ml as Jn,Mo as Yn,Mp as Xn,Mr as Zn,Ms as Qn,N as $n,N_ as er,Na as tr,Nc as nr,Nd as rr,Ni as ir,Nl as ar,No as or,Np as sr,Nr as cr,Ns as lr,O as ur,Oa as dr,Oc as fr,Oi as pr,Ol as mr,Oo as hr,Op as gr,Or as _r,Os as vr,P as yr,P_ as br,Pa as xr,Pc as Sr,Pd as Cr,Pi as wr,Pl as Tr,Po as Er,Pr as Dr,Ps as Or,Q as kr,Qa as Ar,Qc as jr,Qi as Mr,Ql as Nr,Qn as Pr,Qo as Fr,Qr as Ir,Qs as Lr,R as Rr,R_ as zr,Ra as Br,Rc as Vr,Ri as Hr,Rl as Ur,Ro as Wr,Rr as Gr,Rs as Kr,S as qr,S_ as Jr,Sa as Yr,Sc as Xr,Si as Zr,Sl as Qr,So as $r,Sp as ei,Sr as ti,Ss as ni,T as U,T_ as ri,Ta as ii,Tc as ai,Td as oi,Ti as si,Tl as ci,To as li,Tp as ui,Tr as di,Ts as fi,Tt as pi,U as mi,U_ as hi,Ua as gi,Uc as _i,Ui as vi,Ul as yi,Un as bi,Uo as xi,Ur as Si,Us as Ci,V as wi,V_ as Ti,Va as Ei,Vc as Di,Vi as Oi,Vl as ki,Vo as Ai,Vr as ji,Vs as Mi,W as Ni,W_ as Pi,Wa as Fi,Wc as Ii,Wi as Li,Wl as Ri,Wn as zi,Wo as Bi,Wr as Vi,Ws as Hi,X as Ui,Xa as Wi,Xc as Gi,Xi as Ki,Xl as qi,Xn as Ji,Xo as Yi,Xp as Xi,Xr as Zi,Xs as Qi,Xt as $i,Y as ea,Ya as ta,Yc as na,Yf as ra,Yi as ia,Yl as aa,Yn as oa,Yo as sa,Yp as ca,Yr as la,Ys as ua,Z as da,Za as fa,Zc as pa,Zi as ma,Zl as ha,Zn as ga,Zo as _a,Zr as va,Zs as ya,_ as ba,_a as xa,_c as Sa,_i as Ca,_l as wa,_o as Ta,_p as Ea,_r as Da,_s as Oa,_u as ka,a as Aa,aa as ja,ac as Ma,ai as Na,al as Pa,ao as Fa,ar as Ia,as as La,au as Ra,b as za,ba as Ba,bc as Va,bi as Ha,bl as Ua,bo as Wa,bp as Ga,br as Ka,bs as qa,bu as Ja,c as Ya,ca as Xa,cc as Za,ci as Qa,cl as $a,co as eo,cr as to,cs as no,cu as ro,d as io,da as ao,dc as oo,di as so,dl as co,do as W,dr as lo,ds as uo,du as fo,ea as po,ec as mo,ed as ho,ei as go,el as _o,eo as vo,er as yo,es as bo,eu as xo,f as So,fa as Co,fc as wo,fi as To,fl as Eo,fo as Do,fp as Oo,fr as ko,fs as Ao,fu as jo,g as Mo,ga as No,gc as Po,gi as Fo,gl as Io,go as Lo,gp as Ro,gr as zo,gs as Bo,gu as Vo,h as Ho,ha as Uo,hc as Wo,hi as Go,hl as Ko,ho as qo,hp as Jo,hr as Yo,hs as Xo,hu as Zo,i as G,ia as Qo,ic as $o,ih as es,ii as ts,il as ns,io as rs,ir as is,is as as,iu as os,j as ss,ja as cs,jc as ls,ji as us,jl as ds,jo as fs,jp as ps,jr as ms,js as hs,k as gs,ka as _s,kc as vs,kd as ys,ki as bs,kl as xs,ko as Ss,kp as Cs,kr as ws,ks as Ts,l as Es,la as Ds,lc as Os,li as ks,ll as As,lo as js,lr as Ms,ls as Ns,lu as Ps,m as Fs,ma as Is,mc as Ls,mi as Rs,ml as zs,mo as Bs,mp as Vs,mr as Hs,ms as Us,mu as Ws,n as Gs,na as Ks,nc as qs,ni as Js,nl as Ys,no as Xs,nr as Zs,ns as Qs,nt as $s,nu as ec,o as tc,oa as nc,oc as rc,oh as ic,oi as ac,ol as oc,om as sc,oo as cc,or as lc,os as uc,ou as dc,p as fc,pa as pc,pc as mc,pi as hc,pl as gc,po as _c,pp as vc,pr as yc,ps as bc,pu as xc,q as Sc,qa as Cc,qc as wc,qi as Tc,ql as Ec,qn as Dc,qo as Oc,qr as kc,qs as Ac,r as jc,ra as Mc,rc as Nc,ri as Pc,rl as Fc,ro as Ic,rr as Lc,rs as Rc,ru as zc,s as Bc,sa as Vc,sc as Hc,sh as Uc,si as Wc,sl as Gc,sm as Kc,so as qc,sr as Jc,ss as Yc,su as Xc,t as Zc,ta as Qc,tc as $c,td as el,ti as tl,tl as nl,to as rl,tr as il,ts as al,tt as ol,tu as sl,u as cl,ua as ll,u
vendor: 29,218 bytes, lines 2-9
2c as ul,ui as dl,ul as fl,uo as pl,ur as ml,us as hl,uu as gl,v as _l,va as vl,vc as yl,vh as bl,vi as xl,vl as Sl,vo as Cl,vp as wl,vr as Tl,vs as El,vu as Dl,w as Ol,w_ as kl,wa as Al,wc as jl,wh as Ml,wi as Nl,wl as Pl,wo as Fl,wp as Il,wr as Ll,ws as Rl,x as zl,x_ as Bl,xa as Vl,xc as Hl,xh as Ul,xi as Wl,xl as Gl,xo as Kl,xp as ql,xr as Jl,xs as Yl,xu as Xl,y as Zl,ya as Ql,yc as $l,yh as eu,yi as tu,yl as nu,yo as ru,yp as iu,yr as au,ys as ou,z as su,z_ as cu,za as lu,zc as uu,zi as du,zl as fu,zo as pu,zr as mu,zs as hu}from"./button-BEP8s8km.js";import{a as gu,i as _u,n as vu,r as yu,t as bu}from"./google-icon-Bu14B0ro.js";var xu=l((e=>{function t(e,t){var n=e.length;e.push(t);a:for(;0<n;){var r=n-1>>>1,a=e[r];if(0<i(a,t))e[r]=t,e[n]=a,n=r;else break a}}function n(e){return e.length===0?null:e[0]}function r(e){if(e.length===0)return null;var t=e[0],n=e.pop();if(n!==t){e[0]=n;a:for(var r=0,a=e.length,o=a>>>1;r<o;){var s=2*(r+1)-1,c=e[s],l=s+1,u=e[l];if(0>i(c,n))l<a&&0>i(u,c)?(e[r]=u,e[l]=n,r=l):(e[r]=c,e[s]=n,r=s);else if(l<a&&0>i(u,n))e[r]=u,e[l]=n,r=l;else break a}}return t}function i(e,t){var n=e.sortIndex-t.sortIndex;return n===0?e.id-t.id:n}if(e.unstable_now=void 0,typeof performance==`object`&&typeof performance.now==`function`){var a=performance;e.unstable_now=function(){return a.now()}}else{var o=Date,s=o.now();e.unstable_now=function(){return o.now()-s}}var c=[],l=[],u=1,d=null,f=3,p=!1,m=!1,h=!1,g=!1,_=typeof setTimeout==`function`?setTimeout:null,v=typeof clearTimeout==`function`?clearTimeout:null,y=typeof setImmediate<`u`?setImmediate:null;function b(e){for(var i=n(l);i!==null;){if(i.callback===null)r(l);else if(i.startTime<=e)r(l),i.sortIndex=i.expirationTime,t(c,i);else break;i=n(l)}}function x(e){if(h=!1,b(e),!m)if(n(c)!==null)m=!0,S||(S=!0,k());else{var t=n(l);t!==null&&M(x,t.startTime-e)}}var S=!1,C=-1,w=5,E=-1;function D(){return g?!0:!(e.unstable_now()-E<w)}function O(){if(g=!1,S){var t=e.unstable_now();E=t;var i=!0;try{a:{m=!1,h&&(h=!1,v(C),C=-1),p=!0;var a=f;try{b:{for(b(t),d=n(c);d!==null&&!(d.expirationTime>t&&D());){var o=d.callback;if(typeof o==`function`){d.callback=null,f=d.priorityLevel;var s=o(d.expirationTime<=t);if(t=e.unstable_now(),typeof s==`function`){d.callback=s,b(t),i=!0;break b}d===n(c)&&r(c),b(t)}else r(c);d=n(c)}if(d!==null)i=!0;else{var u=n(l);u!==null&&M(x,u.startTime-t),i=!1}}break a}finally{d=null,f=a,p=!1}i=void 0}}finally{i?k():S=!1}}}var k;if(typeof y==`function`)k=function(){y(O)};else if(typeof MessageChannel<`u`){var A=new MessageChannel,j=A.port2;A.port1.onmessage=O,k=function(){j.postMessage(null)}}else k=function(){_(O,0)};function M(t,n){C=_(function(){t(e.unstable_now())},n)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(e){e.callback=null},e.unstable_forceFrameRate=function(e){0>e||125<e?console.error(`forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported`):w=0<e?Math.floor(1e3/e):5},e.unstable_getCurrentPriorityLevel=function(){return f},e.unstable_next=function(e){switch(f){case 1:case 2:case 3:var t=3;break;default:t=f}var n=f;f=t;try{return e()}finally{f=n}},e.unstable_requestPaint=function(){g=!0},e.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var n=f;f=e;try{return t()}finally{f=n}},e.unstable_scheduleCallback=function(r,i,a){var o=e.unstable_now();switch(typeof a==`object`&&a?(a=a.delay,a=typeof a==`number`&&0<a?o+a:o):a=o,r){case 1:var s=-1;break;case 2:s=250;break;case 5:s=1073741823;break;case 4:s=1e4;break;default:s=5e3}return s=a+s,r={id:u++,callback:i,priorityLevel:r,startTime:a,expirationTime:s,sortIndex:-1},a>o?(r.sortIndex=a,t(l,r),n(c)===null&&r===n(l)&&(h?(v(C),C=-1):h=!0,M(x,a-o))):(r.sortIndex=s,t(c,r),m||p||(m=!0,S||(S=!0,k()))),r},e.unstable_shouldYield=D,e.unstable_wrapCallback=function(e){var t=f;return function(){var n=f;f=t;try{return e.apply(this,arguments)}finally{f=n}}}})),Su=l(((e,t)=>{t.exports=xu()})),Cu=l((e=>{var t=Su(),n=te(),r=se();function i(e){var t=`https://react.dev/errors/`+e;if(1<arguments.length){t+=`?args[]=`+encodeURIComponent(arguments[1]);for(var n=2;n<arguments.length;n++)t+=`&args[]=`+encodeURIComponent(arguments[n])}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 a(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function o(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,t.flags&4098&&(n=t.return),e=t.return;while(e)}return t.tag===3?n:null}function s(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 c(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 l(e){if(o(e)!==e)throw Error(i(188))}function u(e){var t=e.alternate;if(!t){if(t=o(e),t===null)throw Error(i(188));return t===e?e:null}for(var n=e,r=t;;){var a=n.return;if(a===null)break;var s=a.alternate;if(s===null){if(r=a.return,r!==null){n=r;continue}break}if(a.child===s.child){for(s=a.child;s;){if(s===n)return l(a),e;if(s===r)return l(a),t;s=s.sibling}throw Error(i(188))}if(n.return!==r.return)n=a,r=s;else{for(var c=!1,u=a.child;u;){if(u===n){c=!0,n=a,r=s;break}if(u===r){c=!0,r=a,n=s;break}u=u.sibling}if(!c){for(u=s.child;u;){if(u===n){c=!0,n=s,r=a;break}if(u===r){c=!0,r=s,n=a;break}u=u.sibling}if(!c)throw Error(i(189))}}if(n.alternate!==r)throw Error(i(190))}if(n.tag!==3)throw Error(i(188));return n.stateNode.current===n?e:t}function d(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e;for(e=e.child;e!==null;){if(t=d(e),t!==null)return t;e=e.sibling}return null}var f=Object.assign,p=Symbol.for(`react.element`),m=Symbol.for(`react.transitional.element`),h=Symbol.for(`react.portal`),g=Symbol.for(`react.fragment`),_=Symbol.for(`react.strict_mode`),v=Symbol.for(`react.profiler`),y=Symbol.for(`react.consumer`),b=Symbol.for(`react.context`),x=Symbol.for(`react.forward_ref`),S=Symbol.for(`react.suspense`),C=Symbol.for(`react.suspense_list`),w=Symbol.for(`react.memo`),E=Symbol.for(`react.lazy`),D=Symbol.for(`react.activity`),O=Symbol.for(`react.memo_cache_sentinel`),k=Symbol.iterator;function A(e){return typeof e!=`object`||!e?null:(e=k&&e[k]||e[`@@iterator`],typeof e==`function`?e:null)}var j=Symbol.for(`react.client.reference`);function M(e){if(e==null)return null;if(typeof e==`function`)return e.$$typeof===j?null:e.displayName||e.name||null;if(typeof e==`string`)return e;switch(e){case g:return`Fragment`;case v:return`Profiler`;case _:return`StrictMode`;case S:return`Suspense`;case C:return`SuspenseList`;case D:return`Activity`}if(typeof e==`object`)switch(e.$$typeof){case h:return`Portal`;case b:return e.displayName||`Context`;case y:return(e._context.displayName||`Context`)+`.Consumer`;case x:var t=e.render;return e=e.displayName,e||=(e=t.displayName||t.name||``,e===``?`ForwardRef`:`ForwardRef(`+e+`)`),e;case w:return t=e.displayName||null,t===null?M(e.type)||`Memo`:t;case E:t=e._payload,e=e._init;try{return M(e(t))}catch{}}return null}var N=Array.isArray,P=n.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,F=r.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,I={pending:!1,data:null,method:null,action:null},ee=[],ne=-1;function re(e){return{current:e}}function L(e){0>ne||(e.current=ee[ne],ee[ne]=null,ne--)}function R(e,t){ne++,ee[ne]=e.current,e.current=t}var ie=re(null),ae=re(null),z=re(null),B=re(null);function oe(e,t){switch(R(z,t),R(ae,e),R(ie,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?Yd(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=Yd(t),e=Xd(t,e);else switch(e){case`svg`:e=1;break;case`math`:e=2;break;default:e=0}}L(ie),R(ie,e)}function ce(){L(ie),L(ae),L(z)}function le(e){e.memoizedState!==null&&R(B,e);var t=ie.current,n=Xd(t,e.type);t!==n&&(R(ae,e),R(ie,n))}function ue(e){ae.current===e&&(L(ie),L(ae)),B.current===e&&(L(B),ap._currentValue=I)}var V,de;function fe(e){if(V===void 0)try{throw Error()}catch(e){var t=e.stack.trim().match(/\n( *(at )?)/);V=t&&t[1]||``,de=-1<e.stack.indexOf(`
3    at`)?` (<anonymous>)`:-1<e.stack.indexOf(`@`)?`@unknown:0:0`:``}return`
4`+V+e+de}var pe=!1;function me(e,t){if(!e||pe)return``;pe=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var r={DetermineComponentFrameRoot:function(){try{if(t){var n=function(){throw Error()};if(Object.defineProperty(n.prototype,"props",{set:function(){throw Error()}}),typeof Reflect==`object`&&Reflect.construct){try{Reflect.construct(n,[])}catch(e){var r=e}Reflect.construct(e,[],n)}else{try{n.call()}catch(e){r=e}e.call(n.prototype)}}else{try{throw Error()}catch(e){r=e}(n=e())&&typeof n.catch==`function`&&n.catch(function(){})}}catch(e){if(e&&r&&typeof e.stack==`string`)return[e.stack,r.stack]}return[null,null]}};r.DetermineComponentFrameRoot.displayName=`DetermineComponentFrameRoot`;var i=Object.getOwnPropertyDescriptor(r.DetermineComponentFrameRoot,`name`);i&&i.configurable&&Object.defineProperty(r.DetermineComponentFrameRoot,"name",{value:`DetermineComponentFrameRoot`});var a=r.DetermineComponentFrameRoot(),o=a[0],s=a[1];if(o&&s){var c=o.split(`
5`),l=s.split(`
6`);for(i=r=0;r<c.length&&!c[r].includes(`DetermineComponentFrameRoot`);)r++;for(;i<l.length&&!l[i].includes(`DetermineComponentFrameRoot`);)i++;if(r===c.length||i===l.length)for(r=c.length-1,i=l.length-1;1<=r&&0<=i&&c[r]!==l[i];)i--;for(;1<=r&&0<=i;r--,i--)if(c[r]!==l[i]){if(r!==1||i!==1)do if(r--,i--,0>i||c[r]!==l[i]){var u=`
7`+c[r].replace(` at new `,` at `);return e.displayName&&u.includes(`<anonymous>`)&&(u=u.replace(`<anonymous>`,e.displayName)),u}while(1<=r&&0<=i);break}}}finally{pe=!1,Error.prepareStackTrace=n}return(n=e?e.displayName||e.name:``)?fe(n):``}function he(e,t){switch(e.tag){case 26:case 27:case 5:return fe(e.type);case 16:return fe(`Lazy`);case 13:return e.child!==t&&t!==null?fe(`Suspense Fallback`):fe(`Suspense`);case 19:return fe(`SuspenseList`);case 0:case 15:return me(e.type,!1);case 11:return me(e.type.render,!1);case 1:return me(e.type,!0);case 31:return fe(`Activity`);default:return``}}function ge(e){try{var t=``,n=null;do t+=he(e,n),n=e,e=e.return;while(e);return t}catch(e){return`
8Error generating stack: `+e.message+`
9`+e.stack}}var _e=Object.prototype.hasOwnProperty,ve=t.unstable_scheduleCallback,ye=t.unstable_cancelCallback,be=t.unstable_shouldYield,H=t.unstable_requestPaint,xe=t.unstable_now,Se=t.unstable_getCurrentPriorityLevel,Ce=t.unstable_ImmediatePriority,we=t.unstable_UserBlockingPriority,Te=t.unstable_NormalPriority,Ee=t.unstable_LowPriority,De=t.unstable_IdlePriority,Oe=t.log,ke=t.unstable_setDisableYieldValue,Ae=null,je=null;function Me(e){if(typeof Oe==`function`&&ke(e),je&&typeof je.setStrictMode==`function`)try{je.setStrictMode(Ae,e)}catch{}}var Ne=Math.clz32?Math.clz32:Ie,Pe=Math.log,Fe=Math.LN2;function Ie(e){return e>>>=0,e===0?32:31-(Pe(e)/Fe|0)|0}var Le=256,Re=262144,ze=4194304;function Be(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 Ve(e,t,n){var r=e.pendingLanes;if(r===0)return 0;var i=0,a=e.suspendedLanes,o=e.pingedLanes;e=e.warmLanes;var s=r&134217727;return s===0?(s=r&~a,s===0?o===0?n||(n=r&~e,n!==0&&(i=Be(n))):i=Be(o):i=Be(s)):(r=s&~a,r===0?(o&=s,o===0?n||(n=s&~e,n!==0&&(i=Be(n))):i=Be(o)):i=Be(r)),i===0?0:t!==0&&t!==i&&(t&a)===0&&(a=i&-i,n=t&-t,a>=n||a===32&&n&4194048)?t:i}function He(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function Ue(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 We(){var e=ze;return ze<<=1,!(ze&62914560)&&(ze=4194304),e}function Ge(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function Ke(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function qe(e,t,n,r,i,a){var o=e.pendingLanes;e.pendingLanes=n,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=n,e.entangledLanes&=n,e.errorRecoveryDisabledLanes&=n,e.shellSuspendCounter=0;var s=e.entanglements,c=e.expirationTimes,l=e.hiddenUpdates;for(n=o&~n;0<n;){var u=31-Ne(n),d=1<<u;s[u]=0,c[u]=-1;var f=l[u];if(f!==null)for(l[u]=null,u=0;u<f.length;u++){var p=f[u];p!==null&&(p.lane&=-536870913)}n&=~d}r!==0&&Je(e,r,0),a!==0&&i===0&&e.tag!==0&&(e.suspendedLanes|=a&~(o&~t))}function Je(e,t,n){e.pendingLanes|=t,e.suspendedLanes&=~t;var r=31-Ne(t);e.entangledLanes|=t,e.entanglements[r]=e.entanglements[r]|1073741824|n&261930}function Ye(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-Ne(n),i=1<<r;i&t|e[r]&t&&(e[r]|=t),n&=~i}}function Xe(e,t){var n=t&-t;return n=n&42?1:Ze(n),(n&(e.suspendedLanes|t))===0?n:0}function Ze(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 Qe(e){return e&=-e,2<e?8<e?e&134217727?32:268435456:8:2}function $e(){var e=F.p;return e===0?(e=window.event,e===void 0?32:xp(e.type)):e}function et(e,t){var n=F.p;try{return F.p=e,t()}finally{F.p=n}}var tt=Math.random().toString(36).slice(2),nt=`__reactFiber$`+tt,rt=`__reactProps$`+tt,it=`__reactContainer$`+tt,at=`__reactEvents$`+tt,ot=`__reactListeners$`+tt,st=`__reactHandles$`+tt,ct=`__reactResources$`+tt,lt=`__reactMarker$`+tt;function ut(e){delete e[nt],delete e[rt],delete e[at],delete e[ot],delete e[st]}function dt(e){var t=e[nt];if(t)return t;for(var n=e.parentNode;n;){if(t=n[it]||n[nt]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=yf(e);e!==null;){if(n=e[nt])return n;e=yf(e)}return t}e=n,n=e.parentNode}return null}function ft(e){if(e=e[nt]||e[it]){var t=e.tag;if(t===5||t===6||t===13||t===31||t===26||t===27||t===3)return e}return null}function pt(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e.stateNode;throw Error(i(33))}function mt(e){var t=e[ct];return t||=e[ct]={hoistableStyles:new Map,hoistableScripts:new Map},t}function ht(e){e[lt]=!0}var gt=new Set,_t={};function vt(e,t){yt(e,t),yt(e+`Capture`,t)}function yt(e,t){for(_t[e]=t,e=0;e<t.length;e++)gt.add(t[e])}var bt=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]*$`),xt={},St={};function Ct(e){return _e.call(St,e)?!0:_e.call(xt,e)?!1:bt.test(e)?St[e]=!0:(xt[e]=!0,!1)}function wt(e,t,n){if(Ct(t))if(n===null)e.removeAttribute(t);else{switch(typeof n){case`undefined`:case`function`:case`symbol`:e.removeAttribute(t);return;case`boolean`:var r=t.toLowerCase().slice(0,5);if(r!==`data-`&&r!==`aria-`){e.removeAttribute(t);return}}e.setAttribute(t,``+n)}}function Tt(e,t,n){if(n===null)e.removeAttribute(t);else{switch(typeof n){case`undefined`:case`function`:case`symbol`:case`boolean`:e.removeAttribute(t);return}e.setAttribute(t,``+n)}}function Et(e,t,n,r){if(r===null)e.removeAttribute(n);else{switch(typeof r){case`undefined`:case`function`:case`symbol`:case`boolean`:e.removeAttribute(n);return}e.setAttributeNS(t,n,``+r)}}function Dt(e){switch(typeof e){case`bigint`:case`boolean`:case`number`:case`string`:case`undefined`:return e;case`object`:return e;default:return``}}function Ot(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()===`input`&&(t===`checkbox`||t===`radio`)}function kt(e,t,n){var r=Object.getOwnPropertyDescriptor(e.constructor.prototype,t);if(!e.hasOwnProperty(t)&&r!==void 0&&typeof r.get==`function`&&typeof r.set==`function`){var i=r.get,a=r.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return i.call(this)},set:function(e){n=``+e,a.call(this,e)}}),Object.defineProperty(e,t,{enumerable:r.enumerable}),{getValue:function(){return n},setValue:function(e){n=``+e},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function At(e){if(!e._valueTracker){var t=Ot(e)?`checked`:`value`;e._valueTracker=kt(e,t,``+e[t])}}function jt(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r=``;return e&&(r=Ot(e)?e.checked?`true`:`false`:e.value),e=r,e===n?!1:(t.setValue(e),!0)}function Mt(e){if(e||=typeof document<`u`?document:void 0,e===void 0)return null;try{return e.activeElement||e.body}catch{return e.body}}var Nt=/[\n"\\]/g;function Pt(e){return e.replace(Nt,function(e){return`\\`+e.charCodeAt(0).toString(16)+` `})}function Ft(e,t,n,r,i,a,o,s){e.name=``,o!=null&&typeof o!=`function`&&typeof o!=`symbol`&&typeof o!=`boolean`?e.type=o:e.removeAttribute(`type`),t==null?o!==`submit`&&o!==`reset`||e.removeAttribute(`value`):o===`number`?(t===0&&e.value===``||e.value!=t)&&(e.value=``+Dt(t)):e.value!==``+Dt(t)&&(e.value=``+Dt(t)),t==null?n==null?r!=null&&e.removeAttribute(`value`):Lt(e,o,Dt(n)):Lt(e,o,Dt(t)),i==null&&a!=null&&(e.defaultChecked=!!a),i!=null&&(e.checked=i&&typeof i!=`function`&&typeof i!=`symbol`),s!=null&&typeof s!=`function`&&typeof s!=`symbol`&&typeof s!=`boolean`?e.name=``+Dt(s):e.removeAttribute(`name`)}function It(e,t,n,r,i,a,o,s){if(a!=null&&typeof a!=`function`&&typeof a!=`symbol`&&typeof a!=`boolean`&&(e.type=a),t!=null||n!=null){if(!(a!==`submit`&&a!==`reset`||t!=null)){At(e);return}n=n==null?``:``+Dt(n),t=t==null?n:``+Dt(t),s||t===e.value||(e.value=t),e.defaultValue=t}r??=i,r=typeof r!=`function`&&typeof r!=`symbol`&&!!r,e.checked=s?e.checked:!!r,e.defaultChecked=!!r,o!=null&&typeof o!=`function`&&typeof o!=`symbol`&&typeof o!=`boolean`&&(e.name=o),At(e)}function Lt(e,t,n){t===`number`&&Mt(e.ownerDocument)===e||e.defaultValue===``+n||(e.defaultValue=``+n)}function Rt(e,t,n,r){if(e=e.options,t){t={};for(var i=0;i<n.length;i++)t[`$`+n[i]]=!0;for(n=0;n<e.length;n++)i=t.hasOwnProperty(`$`+e[n].value),e[n].selected!==i&&(e[n].selected=i),i&&r&&(e[n].defaultSelected=!0)}else{for(n=``+Dt(n),t=null,i=0;i<e.length;i++){if(e[i].value===n){e[i].selected=!0,r&&(e[i].defaultSelected=!0);return}t!==null||e[i].disabled||(t=e[i])}t!==null&&(t.selected=!0)}}function zt(e,t,n){if(t!=null&&(t=``+Dt(t),t!==e.value&&(e.value=t),n==null)){e.defaultValue!==t&&(e.defaultValue=t);return}e.defaultValue=n==null?``:``+Dt(n)}function Bt(e,t,n,r){if(t==null){if(r!=null){if(n!=null)throw Error(i(92));if(N(r)){if(1<r.length)throw Error(i(93));r=r[0]}n=r}n??=``,t=n}n=Dt(t),e.defaultValue=n,r=e.textContent,r===n&&r!==``&&r!==null&&(e.value=r),At(e)}function Vt(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var Ht=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 Ut(e,t,n){var r=t.indexOf(`--`)===0;n==null||typeof n==`boolean`||n===``?r?e.setProperty(t,``):t===`float`?e.cssFloat=``:e[t]=``:r?e.setProperty(t,n):typeof n!=`number`||n===0||Ht.has(t)?t===`float`?e.cssFloat=n:e[t]=(``+n).trim():e[t]=n+`px`}function Wt(e,t,n){if(t!=null&&typeof t!=`object`)throw Error(i(62));if(e=e.style,n!=null){for(var r in n)!n.hasOwnProperty(r)||t!=null&&t.hasOwnProperty(r)||(r.indexOf(`--`)===0?e.setProperty(r,``):r===`float`?e.cssFloat=``:e[r]=``);for(var a in t)r=t[a],t.hasOwnProperty(a)&&n[a]!==r&&Ut(e,a,r)}else for(var o in t)t.hasOwnProperty(o)&&Ut(e,o,t[o])}function Gt(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 Kt=new Map([[`acceptCharset`,`accept-charset`],[`htmlFor`,`for`],[`httpEquiv`,`http-equiv`],[`crossOrigin`,`crossorigin`],[`accentHeight`,`accent-height`],[`alignmentBaseline`,`alignment-baseline`],[`arabicForm`,`arabic-form`],[`baselineShift`,`baseline-shift`],[`capHeight`,`cap-height`],[`clipPath`,`clip-path`],[`clipRule`,`clip-rule`],[`colorInterpolation`,`color-interpolation`],[`colorInterpolationFilters`,`color-interpolation-filters`],[`colorProfile`,`color-profile`],[`colorRendering`,`color-rendering`],[`dominantBaseline`,`dominant-baseline`],[`enableBackground`,`enable-background`],[`fillOpacity`,`fill-opacity`],[`fillRule`,`fill-rule`],[`floodColor`,`flood-color`],[`floodOpacity`,`flood-opacity`],[`fontFamily`,`font-family`],[`fontSize`,`font-size`],[`fontSizeAdjust`,`font-size-adjust`],[`fontStretch`,`font-stretch`],[`fontStyle`,`font-style`],[`fontVariant`,`font-variant`],[`fontWeight`,`font-weight`],[`glyphName`,`glyph-name`],[`glyphOrientationHorizontal`,`glyph-orientation-horizontal`],[`glyphOrientationVertical`,`glyph-orientation-vertical`],[`horizAdvX`,`horiz-adv-x`],[`horizOriginX`,`horiz-origin-x`],[`imageRendering`,`image-rendering`],[`letterSpacing`,`letter-spacing`],[`lightingColor`,`lighting-color`],[`markerEnd`,`marker-end`],[`markerMid`,`marker-mid`],[`markerStart`,`marker-start`],[`overlinePosition`,`overline-position`],[`overlineThickness`,`overline-thickness`],[`paintOrder`,`paint-order`],[`panose-1`,`panose-1`],[`pointerEvents`,`pointer-events`],[`renderingIntent`,`rendering-intent`],[`shapeRendering`,`shape-rendering`],[`stopColor`,`stop-color`],[`stopOpacity`,`stop-opacity`],[`strikethroughPosition`,`strikethrough-position`],[`strikethroughThickness`,`strikethrough-thickness`],[`strokeDasharray`,`stroke-dasharray`],[`strokeDashoffset`,`stroke-dashoffset`],[`strokeLinecap`,`stroke-linecap`],[`strokeLinejoin`,`stroke-linejoin`],[`strokeMiterlimit`,`stroke-miterlimit`],[`strokeOpacity`,`stroke-opacity`],[`strokeWidth`,`stroke-width`],[`textAnchor`,`text-anchor`],[`textDecoration`,`text-decoration`],[`textRendering`,`text-rendering`],[`transformOrigin`,`transform-origin`],[`underlinePosition`,`underline-position`],[`underlineThickness`,`underline-thickness`],[`unicodeBidi`,`unicode-bidi`],[`unicodeRange`,`unicode-range`],[`unitsPerEm`,`units-per-em`],[`vAlphabetic`,`v-alphabetic`],[`vHanging`,`v-hanging`],[`vIdeographic`,`v-ideographic`],[`vMathematical`,`v-mathematical`],[`vectorEffect`,`vector-effect`],[`vertAdvY`,`vert-adv-y`],[`vertOriginX`,`vert-origin-x`],[`vertOriginY`,`vert-origin-y`],[`wordSpacing`,`word-spacing`],[`writingMode`,`writing-mode`],[`xmlnsXlink`,`xmlns:xlink`],[`xHeight`,`x-height`]]),qt=/^[\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 Jt(e){return qt.test(``+e)?`javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')`:e}function Yt(){}var Xt=null;function Zt(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Qt=null,$t=null;function en(e){var t=ft(e);if(t&&(e=t.stateNode)){var n=e[rt]||null;a:switch(e=t.stateNode,t.type){case`input`:if(Ft(e,n.value,n.defaultValue,n.defaultValue,n.checked,n.defaultChecked,n.type,n.name),t=n.name,n.type===`radio`&&t!=null){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll(`input[name="`+Pt(``+t)+`"][type="radio"]`),t=0;t<n.length;t++){var r=n[t];if(r!==e&&r.form===e.form){var a=r[rt]||null;if(!a)throw Error(i(90));Ft(r,a.value,a.defaultValue,a.defaultValue,a.checked,a.defaultChecked,a.type,a.name)}}for(t=0;t<n.length;t++)r=n[t],r.form===e.form&&jt(r)}break a;case`textarea`:zt(e,n.value,n.defaultValue);break a;case`select`:t=n.value,t!=null&&Rt(e,!!n.multiple,t,!1)}}}var tn=!1;function nn(e,t,n){if(tn)return e(t,n);tn=!0;try{return e(t)}finally{if(tn=!1,(Qt!==null||$t!==null)&&(Eu(),Qt&&(t=Qt,e=$t,$t=Qt=null,en(t),e)))for(t=0;t<e.length;t++)en(e[t])}}function rn(e,t){var n=e.stateNode;if(n===null)return null;var r=n[rt]||null;if(r===null)return null;n=r[t];a:switch(t){case`onClick`:case`onClickCapture`:case`onDoubleClick`:case`onDoubleClickCapture`:case`onMouseDown`:case`onMouseDownCapture`:case`onMouseMove`:case`onMouseMoveCapture`:case`onMouseUp`:case`onMouseUpCapture`:case`onMouseEnter`:(r=!r.disabled)||(e=e.type,r=!(e===`button`||e===`input`||e===`select`||e===`textarea`)),e=!r;break a;default:e=!1}if(e)return null;if(n&&typeof n!=`function`)throw Error(i(231,t,typeof n));return n}var an=!(typeof window>`u`||window.document===void 0||window.document.createElement===void 0),on=!1;if(an)try{var sn={};Object.defineProperty(sn,"passive",{get:function(){on=!0}}),window.addEventListener(`test`,sn,sn),window.removeEventListener(`test`,sn,sn)}catch{on=!1}var cn=null,ln=null,un=null;function dn(){if(un)return un;var e,t=ln,n=t.length,r,i=`value`in cn?cn.value:cn.textContent,a=i.length;for(e=0;e<n&&t[e]===i[e];e++);var o=n-e;for(r=1;r<=o&&t[n-r]===i[a-r];r++);return un=i.slice(e,1<r?1-r:void 0)}function fn(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 pn(){return!0}function mn(){return!1}function hn(e){function t(t,n,r,i,a){for(var o in this._reactName=t,this._targetInst=r,this.type=n,this.nativeEvent=i,this.target=a,this.currentTarget=null,e)e.hasOwnProperty(o)&&(t=e[o],this[o]=t?t(i):i[o]);return this.isDefaultPrevented=(i.defaultPrevented==null?!1===i.returnValue:i.defaultPrevented)?pn:mn,this.isPropagationStopped=mn,this}return f(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var e=this.nativeEvent;e&&(e.preventDefault?e.preventDefault():typeof e.returnValue!=`unknown`&&(e.returnValue=!1),this.isDefaultPrevented=pn)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():typeof e.cancelBubble!=`unknown`&&(e.cancelBubble=!0),this.isPropagationStopped=pn)},persist:function(){},isPersistent:pn}),t}var gn={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},_n=hn(gn),vn=f({},gn,{view:0,detail:0}),yn=hn(vn),bn,xn,Sn,Cn=f({},vn,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Pn,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!==Sn&&(Sn&&e.type===`mousemove`?(bn=e.screenX-Sn.screenX,xn=e.screenY-Sn.screenY):xn=bn=0,Sn=e),bn)},movementY:function(e){return`movementY`in e?e.movementY:xn}}),wn=hn(Cn),Tn=hn(f({},Cn,{dataTransfer:0})),En=hn(f({},vn,{relatedTarget:0})),Dn=hn(f({},gn,{animationName:0,elapsedTime:0,pseudoElement:0})),On=hn(f({},gn,{clipboardData:function(e){return`clipboardData`in e?e.clipboardData:window.clipboardData}})),kn=hn(f({},gn,{data:0})),An={Esc:`Escape`,Spacebar:` `,Left:`ArrowLeft`,Up:`ArrowUp`,Right:`ArrowRight`,Down:`ArrowDown`,Del:`Delete`,Win:`OS`,Menu:`ContextMenu`,Apps:`ContextMenu`,Scroll:`ScrollLock`,MozPrintableKey:`Unidentified`},jn={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:`F
95`,117:`F6`,118:`F7`,119:`F8`,120:`F9`,121:`F10`,122:`F11`,123:`F12`,144:`NumLock`,145:`ScrollLock`,224:`Meta`},Mn={Alt:`altKey`,Control:`ctrlKey`,Meta:`metaKey`,Shift:`shiftKey`};function Nn(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=Mn[e])?!!t[e]:!1}function Pn(){return Nn}var Fn=hn(f({},vn,{key:function(e){if(e.key){var t=An[e.key]||e.key;if(t!==`Unidentified`)return t}return e.type===`keypress`?(e=fn(e),e===13?`Enter`:String.fromCharCode(e)):e.type===`keydown`||e.type===`keyup`?jn[e.keyCode]||`Unidentified`:``},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Pn,charCode:function(e){return e.type===`keypress`?fn(e):0},keyCode:function(e){return e.type===`keydown`||e.type===`keyup`?e.keyCode:0},which:function(e){return e.type===`keypress`?fn(e):e.type===`keydown`||e.type===`keyup`?e.keyCode:0}})),In=hn(f({},Cn,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0})),Ln=hn(f({},vn,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Pn})),Rn=hn(f({},gn,{propertyName:0,elapsedTime:0,pseudoElement:0})),zn=hn(f({},Cn,{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})),Bn=hn(f({},gn,{newState:0,oldState:0})),Vn=[9,13,27,32],Hn=an&&`CompositionEvent`in window,Un=null;an&&`documentMode`in document&&(Un=document.documentMode);var Wn=an&&`TextEvent`in window&&!Un,Gn=an&&(!Hn||Un&&8<Un&&11>=Un),Kn=` `,qn=!1;function Jn(e,t){switch(e){case`keyup`:return Vn.indexOf(t.keyCode)!==-1;case`keydown`:return t.keyCode!==229;case`keypress`:case`mousedown`:case`focusout`:return!0;default:return!1}}function Yn(e){return e=e.detail,typeof e==`object`&&`data`in e?e.data:null}var Xn=!1;function Zn(e,t){switch(e){case`compositionend`:return Yn(t);case`keypress`:return t.which===32?(qn=!0,Kn):null;case`textInput`:return e=t.data,e===Kn&&qn?null:e;default:return null}}function Qn(e,t){if(Xn)return e===`compositionend`||!Hn&&Jn(e,t)?(e=dn(),un=ln=cn=null,Xn=!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 Gn&&t.locale!==`ko`?null:t.data;default:return null}}var $n={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 er(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t===`input`?!!$n[e.type]:t===`textarea`}function tr(e,t,n,r){Qt?$t?$t.push(r):$t=[r]:Qt=r,t=Nd(t,`onChange`),0<t.length&&(n=new _n(`onChange`,`change`,null,n,r),e.push({event:n,listeners:t}))}var nr=null,rr=null;function ir(e){Ed(e,0)}function ar(e){if(jt(pt(e)))return e}function or(e,t){if(e===`change`)return t}var sr=!1;if(an){var cr;if(an){var lr=`oninput`in document;if(!lr){var ur=document.createElement(`div`);ur.setAttribute(`oninput`,`return;`),lr=typeof ur.oninput==`function`}cr=lr}else cr=!1;sr=cr&&(!document.documentMode||9<document.documentMode)}function dr(){nr&&(nr.detachEvent(`onpropertychange`,fr),rr=nr=null)}function fr(e){if(e.propertyName===`value`&&ar(rr)){var t=[];tr(t,rr,e,Zt(e)),nn(ir,t)}}function pr(e,t,n){e===`focusin`?(dr(),nr=t,rr=n,nr.attachEvent(`onpropertychange`,fr)):e===`focusout`&&dr()}function mr(e){if(e===`selectionchange`||e===`keyup`||e===`keydown`)return ar(rr)}function hr(e,t){if(e===`click`)return ar(t)}function gr(e,t){if(e===`input`||e===`change`)return ar(t)}function _r(e,t){return e===t&&(e!==0||1/e==1/t)||e!==e&&t!==t}var vr=typeof Object.is==`function`?Object.is:_r;function yr(e,t){if(vr(e,t))return!0;if(typeof e!=`object`||!e||typeof t!=`object`||!t)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(r=0;r<n.length;r++){var i=n[r];if(!_e.call(t,i)||!vr(e[i],t[i]))return!1}return!0}function br(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function xr(e,t){var n=br(e);e=0;for(var r;n;){if(n.nodeType===3){if(r=e+n.textContent.length,e<=t&&r>=t)return{node:n,offset:t-e};e=r}a:{for(;n;){if(n.nextSibling){n=n.nextSibling;break a}n=n.parentNode}n=void 0}n=br(n)}}function Sr(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Sr(e,t.parentNode):`contains`in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Cr(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=Mt(e.document);t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href==`string`}catch{n=!1}if(n)e=t.contentWindow;else break;t=Mt(e.document)}return t}function wr(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 Tr=an&&`documentMode`in document&&11>=document.documentMode,Er=null,Dr=null,Or=null,kr=!1;function Ar(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;kr||Er==null||Er!==Mt(r)||(r=Er,`selectionStart`in r&&wr(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focu
vendor: 72,367 bytes, line 9
9sNode:r.focusNode,focusOffset:r.focusOffset}),Or&&yr(Or,r)||(Or=r,r=Nd(Dr,`onSelect`),0<r.length&&(t=new _n(`onSelect`,`select`,null,t,n),e.push({event:t,listeners:r}),t.target=Er)))}function jr(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n[`Webkit`+e]=`webkit`+t,n[`Moz`+e]=`moz`+t,n}var Mr={animationend:jr(`Animation`,`AnimationEnd`),animationiteration:jr(`Animation`,`AnimationIteration`),animationstart:jr(`Animation`,`AnimationStart`),transitionrun:jr(`Transition`,`TransitionRun`),transitionstart:jr(`Transition`,`TransitionStart`),transitioncancel:jr(`Transition`,`TransitionCancel`),transitionend:jr(`Transition`,`TransitionEnd`)},Nr={},Pr={};an&&(Pr=document.createElement(`div`).style,`AnimationEvent`in window||(delete Mr.animationend.animation,delete Mr.animationiteration.animation,delete Mr.animationstart.animation),`TransitionEvent`in window||delete Mr.transitionend.transition);function Fr(e){if(Nr[e])return Nr[e];if(!Mr[e])return e;var t=Mr[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in Pr)return Nr[e]=t[n];return e}var Ir=Fr(`animationend`),Lr=Fr(`animationiteration`),Rr=Fr(`animationstart`),zr=Fr(`transitionrun`),Br=Fr(`transitionstart`),Vr=Fr(`transitioncancel`),Hr=Fr(`transitionend`),Ur=new Map,Wr=`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(` `);Wr.push(`scrollEnd`);function Gr(e,t){Ur.set(e,t),vt(t,[e])}var Kr=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&&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)},qr=[],Jr=0,Yr=0;function Xr(){for(var e=Jr,t=Yr=Jr=0;t<e;){var n=qr[t];qr[t++]=null;var r=qr[t];qr[t++]=null;var i=qr[t];qr[t++]=null;var a=qr[t];if(qr[t++]=null,r!==null&&i!==null){var o=r.pending;o===null?i.next=i:(i.next=o.next,o.next=i),r.pending=i}a!==0&&ei(n,i,a)}}function Zr(e,t,n,r){qr[Jr++]=e,qr[Jr++]=t,qr[Jr++]=n,qr[Jr++]=r,Yr|=r,e.lanes|=r,e=e.alternate,e!==null&&(e.lanes|=r)}function Qr(e,t,n,r){return Zr(e,t,n,r),ti(e)}function $r(e,t){return Zr(e,null,null,t),ti(e)}function ei(e,t,n){e.lanes|=n;var r=e.alternate;r!==null&&(r.lanes|=n);for(var i=!1,a=e.return;a!==null;)a.childLanes|=n,r=a.alternate,r!==null&&(r.childLanes|=n),a.tag===22&&(e=a.stateNode,e===null||e._visibility&1||(i=!0)),e=a,a=a.return;return e.tag===3?(a=e.stateNode,i&&t!==null&&(i=31-Ne(n),e=a.hiddenUpdates,r=e[i],r===null?e[i]=[t]:r.push(t),t.lane=n|536870912),a):null}function ti(e){if(50<gu)throw gu=0,_u=null,Error(i(185));for(var t=e.return;t!==null;)e=t,t=e.return;return e.tag===3?e.stateNode:null}var ni={};function U(e,t,n,r){this.tag=e,this.key=n,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=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function ri(e,t,n,r){return new U(e,t,n,r)}function ii(e){return e=e.prototype,!(!e||!e.isReactComponent)}function ai(e,t){var n=e.alternate;return n===null?(n=ri(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&65011712,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n.refCleanup=e.refCleanup,n}function oi(e,t){e.flags&=65011714;var n=e.alternate;return n===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=n.childLanes,e.lanes=n.lanes,e.child=n.child,e.subtreeFlags=0,e.deletions=null,e.memoizedProps=n.memoizedProps,e.memoizedState=n.memoizedState,e.updateQueue=n.updateQueue,e.type=n.type,t=n.dependencies,e.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext}),e}function si(e,t,n,r,a,o){var s=0;if(r=e,typeof e==`function`)ii(e)&&(s=1);else if(typeof e==`string`)s=Xf(e,n,ie.current)?26:e===`html`||e===`head`||e===`body`?27:5;else a:switch(e){case D:return e=ri(31,n,t,a),e.elementType=D,e.lanes=o,e;case g:return ci(n.children,a,o,t);case _:s=8,a|=24;break;case v:return e=ri(12,n,t,a|2),e.elementType=v,e.lanes=o,e;case S:return e=ri(13,n,t,a),e.elementType=S,e.lanes=o,e;case C:return e=ri(19,n,t,a),e.elementType=C,e.lanes=o,e;default:if(typeof e==`object`&&e)switch(e.$$typeof){case b:s=10;break a;case y:s=9;break a;case x:s=11;break a;case w:s=14;break a;case E:s=16,r=null;break a}s=29,n=Error(i(130,e===null?`null`:typeof e,``)),r=null}return t=ri(s,n,t,a),t.elementType=e,t.type=r,t.lanes=o,t}function ci(e,t,n,r){return e=ri(7,e,r,t),e.lanes=n,e}function li(e,t,n){return e=ri(6,e,null,t),e.lanes=n,e}function ui(e){var t=ri(18,null,null,0);return t.stateNode=e,t}function di(e,t,n){return t=ri(4,e.children===null?[]:e.children,e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}var fi=new WeakMap;function pi(e,t){if(typeof e==`object`&&e){var n=fi.get(e);return n===void 0?(t={value:e,source:t,stack:ge(t)},fi.set(e,t),t):n}return{value:e,source:t,stack:ge(t)}}var mi=[],hi=0,gi=null,_i=0,vi=[],yi=0,bi=null,xi=1,Si=``;function Ci(e,t){mi[hi++]=_i,mi[hi++]=gi,gi=e,_i=t}function wi(e,t,n){vi[yi++]=xi,vi[yi++]=Si,vi[yi++]=bi,bi=e;var r=xi;e=Si;var i=32-Ne(r)-1;r&=~(1<<i),n+=1;var a=32-Ne(t)+i;if(30<a){var o=i-i%5;a=(r&(1<<o)-1).toString(32),r>>=o,i-=o,xi=1<<32-Ne(t)+i|n<<i|r,Si=a+e}else xi=1<<a|n<<i|r,Si=e}function Ti(e){e.return!==null&&(Ci(e,1),wi(e,1,0))}function Ei(e){for(;e===gi;)gi=mi[--hi],mi[hi]=null,_i=mi[--hi],mi[hi]=null;for(;e===bi;)bi=vi[--yi],vi[yi]=null,Si=vi[--yi],vi[yi]=null,xi=vi[--yi],vi[yi]=null}function Di(e,t){vi[yi++]=xi,vi[yi++]=Si,vi[yi++]=bi,xi=t.id,Si=t.overflow,bi=e}var Oi=null,ki=null,Ai=!1,ji=null,Mi=!1,Ni=Error(i(519));function Pi(e){throw Bi(pi(Error(i(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?`text`:`HTML`,``)),e)),Ni}function Fi(e){var t=e.stateNode,n=e.type,r=e.memoizedProps;switch(t[nt]=e,t[rt]=r,n){case`dialog`:K(`cancel`,t),K(`close`,t);break;case`iframe`:case`object`:case`embed`:K(`load`,t);break;case`video`:case`audio`:for(n=0;n<wd.length;n++)K(wd[n],t);break;case`source`:K(`error`,t);break;case`img`:case`image`:case`link`:K(`error`,t),K(`load`,t);break;case`details`:K(`toggle`,t);break;case`input`:K(`invalid`,t),It(t,r.value,r.defaultValue,r.checked,r.defaultChecked,r.type,r.name,!0);break;case`select`:K(`invalid`,t);break;case`textarea`:K(`invalid`,t),Bt(t,r.value,r.defaultValue,r.children)}n=r.children,typeof n!=`string`&&typeof n!=`number`&&typeof n!=`bigint`||t.textContent===``+n||!0===r.suppressHydrationWarning||zd(t.textContent,n)?(r.popover!=null&&(K(`beforetoggle`,t),K(`toggle`,t)),r.onScroll!=null&&K(`scroll`,t),r.onScrollEnd!=null&&K(`scrollend`,t),r.onClick!=null&&(t.onclick=Yt),t=!0):t=!1,t||Pi(e,!0)}function Ii(e){for(Oi=e.return;Oi;)switch(Oi.tag){case 5:case 31:case 13:Mi=!1;return;case 27:case 3:Mi=!0;return;default:Oi=Oi.return}}function Li(e){if(e!==Oi)return!1;if(!Ai)return Ii(e),Ai=!0,!1;var t=e.tag,n;if((n=t!==3&&t!==27)&&((n=t===5)&&(n=e.type,n=!(n!==`form`&&n!==`button`)||Zd(e.type,e.memoizedProps)),n=!n),n&&ki&&Pi(e),Ii(e),t===13){if(e=e.memoizedState,e=e===null?null:e.dehydrated,!e)throw Error(i(317));ki=vf(e)}else if(t===31){if(e=e.memoizedState,e=e===null?null:e.dehydrated,!e)throw Error(i(317));ki=vf(e)}else t===27?(t=ki,of(e.type)?(e=_f,_f=null,ki=e):ki=t):ki=Oi?gf(e.stateNode.nextSibling):null;return!0}function Ri(){ki=Oi=null,Ai=!1}function zi(){var e=ji;return e!==null&&(nu===null?nu=e:nu.push.apply(nu,e),ji=null),e}function Bi(e){ji===null?ji=[e]:ji.push(e)}var Vi=re(null),Hi=null,Ui=null;function Wi(e,t,n){R(Vi,t._currentValue),t._currentValue=n}function Gi(e){e._currentValue=Vi.current,L(Vi)}function Ki(e,t,n){for(;e!==null;){var r=e.alternate;if((e.childLanes&t)===t?r!==null&&(r.childLanes&t)!==t&&(r.childLanes|=t):(e.childLanes|=t,r!==null&&(r.childLanes|=t)),e===n)break;e=e.return}}function qi(e,t,n,r){var a=e.child;for(a!==null&&(a.return=e);a!==null;){var o=a.dependencies;if(o!==null){var s=a.child;o=o.firstContext;a:for(;o!==null;){var c=o;o=a;for(var l=0;l<t.length;l++)if(c.context===t[l]){o.lanes|=n,c=o.alternate,c!==null&&(c.lanes|=n),Ki(o.return,n,e),r||(s=null);break a}o=c.next}}else if(a.tag===18){if(s=a.return,s===null)throw Error(i(341));s.lanes|=n,o=s.alternate,o!==null&&(o.lanes|=n),Ki(s,n,e),s=null}else s=a.child;if(s!==null)s.return=a;else for(s=a;s!==null;){if(s===e){s=null;break}if(a=s.sibling,a!==null){a.return=s.return,s=a;break}s=s.return}a=s}}function Ji(e,t,n,r){e=null;for(var a=t,o=!1;a!==null;){if(!o){if(a.flags&524288)o=!0;else if(a.flags&262144)break}if(a.tag===10){var s=a.alternate;if(s===null)throw Error(i(387));if(s=s.memoizedProps,s!==null){var c=a.type;vr(a.pendingProps.value,s.value)||(e===null?e=[c]:e.push(c))}}else if(a===B.current){if(s=a.alternate,s===null)throw Error(i(387));s.memoizedState.memoizedState!==a.memoizedState.memoizedState&&(e===null?e=[ap]:e.push(ap))}a=a.return}e!==null&&qi(t,e,n,r),t.flags|=262144}function Yi(e){for(e=e.firstContext;e!==null;){if(!vr(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function Xi(e){Hi=e,Ui=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function Zi(e){return $i(Hi,e)}function Qi(e,t){return Hi===null&&Xi(e),$i(e,t)}function $i(e,t){var n=t._currentValue;if(t={context:t,memoizedValue:n,next:null},Ui===null){if(e===null)throw Error(i(308));Ui=t,e.dependencies={lanes:0,firstContext:t},e.flags|=524288}else Ui=Ui.next=t;return n}var ea=typeof AbortController<`u`?AbortController:function(){var e=[],t=this.signal={aborted:!1,addEventListener:function(t,n){e.push(n)}};this.abort=function(){t.aborted=!0,e.forEach(function(e){return e()})}},ta=t.unstable_scheduleCallback,na=t.unstable_NormalPriority,ra={$$typeof:b,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function ia(){return{controller:new ea,data:new Map,refCount:0}}function aa(e){e.refCount--,e.refCount===0&&ta(na,function(){e.controller.abort()})}var oa=null,sa=0,ca=0,la=null;function ua(e,t){if(oa===null){var n=oa=[];sa=0,ca=vd(),la={status:`pending`,value:void 0,then:function(e){n.push(e)}}}return sa++,t.then(da,da),t}function da(){if(--sa===0&&oa!==null){la!==null&&(la.status=`fulfilled`);var e=oa;oa=null,ca=0,la=null;for(var t=0;t<e.length;t++)(0,e[t])()}}function fa(e,t){var n=[],r={status:`pending`,value:null,reason:null,then:function(e){n.push(e)}};return e.then(function(){r.status=`fulfilled`,r.value=t;for(var e=0;e<n.length;e++)(0,n[e])(t)},function(e){for(r.status=`rejected`,r.reason=e,e=0;e<n.length;e++)(0,n[e])(void 0)}),r}var pa=P.S;P.S=function(e,t){au=xe(),typeof t==`object`&&t&&typeof t.then==`function`&&ua(e,t),pa!==null&&pa(e,t)};var ma=re(null);function ha(){var e=ma.current;return e===null?Bl.pooledCache:e}function ga(e,t){t===null?R(ma,ma.current):R(ma,t.pool)}function _a(){var e=ha();return e===null?null:{parent:ra._currentValue,pool:e}}var va=Error(i(460)),ya=Error(i(474)),ba=Error(i(542)),xa={then:function(){}};function Sa(e){return e=e.status,e===`fulfilled`||e===`rejected`}function Ca(e,t,n){switch(n=e[n],n===void 0?e.push(t):n!==t&&(t.then(Yt,Yt),t=n),t.status){case`fulfilled`:return t.value;case`rejected`:throw e=t.reason,Da(e),e;default:if(typeof t.status==`string`)t.then(Yt,Yt);else{if(e=Bl,e!==null&&100<e.shellSuspendCounter)throw Error(i(482));e=t,e.status=`pending`,e.then(function(e){if(t.status===`pending`){var n=t;n.status=`fulfilled`,n.value=e}},function(e){if(t.status===`pending`){var n=t;n.status=`rejected`,n.reason=e}})}switch(t.status){case`fulfilled`:return t.value;case`rejected`:throw e=t.reason,Da(e),e}throw Ta=t,va}}function wa(e){try{var t=e._init;return t(e._payload)}catch(e){throw typeof e==`object`&&e&&typeof e.then==`function`?(Ta=e,va):e}}var Ta=null;function Ea(){if(Ta===null)throw Error(i(459));var e=Ta;return Ta=null,e}function Da(e){if(e===va||e===ba)throw Error(i(483))}var Oa=null,ka=0;function Aa(e){var t=ka;return ka+=1,Oa===null&&(Oa=[]),Ca(Oa,e,t)}function ja(e,t){t=t.props.ref,e.ref=t===void 0?null:t}function Ma(e,t){throw t.$$typeof===p?Error(i(525)):(e=Object.prototype.toString.call(t),Error(i(31,e===`[object Object]`?`object with keys {`+Object.keys(t).join(`, `)+`}`:e)))}function Na(e){function t(t,n){if(e){var r=t.deletions;r===null?(t.deletions=[n],t.flags|=16):r.push(n)}}function n(n,r){if(!e)return null;for(;r!==null;)t(n,r),r=r.sibling;return null}function r(e){for(var t=new Map;e!==null;)e.key===null?t.set(e.index,e):t.set(e.key,e),e=e.sibling;return t}function a(e,t){return e=ai(e,t),e.index=0,e.sibling=null,e}function o(t,n,r){return t.index=r,e?(r=t.alternate,r===null?(t.flags|=67108866,n):(r=r.index,r<n?(t.flags|=67108866,n):r)):(t.flags|=1048576,n)}function s(t){return e&&t.alternate===null&&(t.flags|=67108866),t}function c(e,t,n,r){return t===null||t.tag!==6?(t=li(n,e.mode,r),t.return=e,t):(t=a(t,n),t.return=e,t)}function l(e,t,n,r){var i=n.type;return i===g?d(e,t,n.props.children,r,n.key):t!==null&&(t.elementType===i||typeof i==`object`&&i&&i.$$typeof===E&&wa(i)===t.type)?(t=a(t,n.props),ja(t,n),t.return=e,t):(t=si(n.type,n.key,n.props,null,e.mode,r),ja(t,n),t.return=e,t)}function u(e,t,n,r){return t===null||t.tag!==4||t.stateNode.containerInfo!==n.containerInfo||t.stateNode.implementation!==n.implementation?(t=di(n,e.mode,r),t.return=e,t):(t=a(t,n.children||[]),t.return=e,t)}function d(e,t,n,r,i){return t===null||t.tag!==7?(t=ci(n,e.mode,r,i),t.return=e,t):(t=a(t,n),t.return=e,t)}function f(e,t,n){if(typeof t==`string`&&t!==``||typeof t==`number`||typeof t==`bigint`)return t=li(``+t,e.mode,n),t.return=e,t;if(typeof t==`object`&&t){switch(t.$$typeof){case m:return n=si(t.type,t.key,t.props,null,e.mode,n),ja(n,t),n.return=e,n;case h:return t=di(t,e.mode,n),t.return=e,t;case E:return t=wa(t),f(e,t,n)}if(N(t)||A(t))return t=ci(t,e.mode,n,null),t.return=e,t;if(typeof t.then==`function`)return f(e,Aa(t),n);if(t.$$typeof===b)return f(e,Qi(e,t),n);Ma(e,t)}return null}function p(e,t,n,r){var i=t===null?null:t.key;if(typeof n==`string`&&n!==``||typeof n==`number`||typeof n==`bigint`)return i===null?c(e,t,``+n,r):null;if(typeof n==`object`&&n){switch(n.$$typeof){case m:return n.key===i?l(e,t,n,r):null;case h:return n.key===i?u(e,t,n,r):null;case E:return n=wa(n),p(e,t,n,r)}if(N(n)||A(n))return i===null?d(e,t,n,r,null):null;if(typeof n.then==`function`)return p(e,t,Aa(n),r);if(n.$$typeof===b)return p(e,t,Qi(e,n),r);Ma(e,n)}return null}function _(e,t,n,r,i){if(typeof r==`string`&&r!==``||typeof r==`number`||typeof r==`bigint`)return e=e.get(n)||null,c(t,e,``+r,i);if(typeof r==`object`&&r){switch(r.$$typeof){case m:return e=e.get(r.key===null?n:r.key)||null,l(t,e,r,i);case h:return e=e.get(r.key===null?n:r.key)||null,u(t,e,r,i);case E:return r=wa(r),_(e,t,n,r,i)}if(N(r)||A(r))return e=e.get(n)||null,d(t,e,r,i,null);if(typeof r.then==`function`)return _(e,t,n,Aa(r),i);if(r.$$typeof===b)return _(e,t,n,Qi(t,r),i);Ma(t,r)}return null}function v(i,a,s,c){for(var l=null,u=null,d=a,m=a=0,h=null;d!==null&&m<s.length;m++){d.index>m?(h=d,d=null):h=d.sibling;var g=p(i,d,s[m],c);if(g===null){d===null&&(d=h);break}e&&d&&g.alternate===null&&t(i,d),a=o(g,a,m),u===null?l=g:u.sibling=g,u=g,d=h}if(m===s.length)return n(i,d),Ai&&Ci(i,m),l;if(d===null){for(;m<s.length;m++)d=f(i,s[m],c),d!==null&&(a=o(d,a,m),u===null?l=d:u.sibling=d,u=d);return Ai&&Ci(i,m),l}for(d=r(d);m<s.length;m++)h=_(d,i,m,s[m],c),h!==null&&(e&&h.alternate!==null&&d.delete(h.key===null?m:h.key),a=o(h,a,m),u===null?l=h:u.sibling=h,u=h);return e&&d.forEach(function(e){return t(i,e)}),Ai&&Ci(i,m),l}function y(a,s,c,l){if(c==null)throw Error(i(151));for(var u=null,d=null,m=s,h=s=0,g=null,v=c.next();m!==null&&!v.done;h++,v=c.next()){m.index>h?(g=m,m=null):g=m.sibling;var y=p(a,m,v.value,l);if(y===null){m===null&&(m=g);break}e&&m&&y.alternate===null&&t(a,m),s=o(y,s,h),d===null?u=y:d.sibling=y,d=y,m=g}if(v.done)return n(a,m),Ai&&Ci(a,h),u;if(m===null){for(;!v.done;h++,v=c.next())v=f(a,v.value,l),v!==null&&(s=o(v,s,h),d===null?u=v:d.sibling=v,d=v);return Ai&&Ci(a,h),u}for(m=r(m);!v.done;h++,v=c.next())v=_(m,a,h,v.value,l),v!==null&&(e&&v.alternate!==null&&m.delete(v.key===null?h:v.key),s=o(v,s,h),d===null?u=v:d.sibling=v,d=v);return e&&m.forEach(function(e){return t(a,e)}),Ai&&Ci(a,h),u}function x(e,r,o,c){if(typeof o==`object`&&o&&o.type===g&&o.key===null&&(o=o.props.children),typeof o==`object`&&o){switch(o.$$typeof){case m:a:{for(var l=o.key;r!==null;){if(r.key===l){if(l=o.type,l===g){if(r.tag===7){n(e,r.sibling),c=a(r,o.props.children),c.return=e,e=c;break a}}else if(r.elementType===l||typeof l==`object`&&l&&l.$$typeof===E&&wa(l)===r.type){n(e,r.sibling),c=a(r,o.props),ja(c,o),c.return=e,e=c;break a}n(e,r);break}else t(e,r);r=r.sibling}o.type===g?(c=ci(o.props.children,e.mode,c,o.key),c.return=e,e=c):(c=si(o.type,o.key,o.props,null,e.mode,c),ja(c,o),c.return=e,e=c)}return s(e);case h:a:{for(l=o.key;r!==null;){if(r.key===l)if(r.tag===4&&r.stateNode.containerInfo===o.containerInfo&&r.stateNode.implementation===o.implementation){n(e,r.sibling),c=a(r,o.children||[]),c.return=e,e=c;break a}else{n(e,r);break}else t(e,r);r=r.sibling}c=di(o,e.mode,c),c.return=e,e=c}return s(e);case E:return o=wa(o),x(e,r,o,c)}if(N(o))return v(e,r,o,c);if(A(o)){if(l=A(o),typeof l!=`function`)throw Error(i(150));return o=l.call(o),y(e,r,o,c)}if(typeof o.then==`function`)return x(e,r,Aa(o),c);if(o.$$typeof===b)return x(e,r,Qi(e,o),c);Ma(e,o)}return typeof o==`string`&&o!==``||typeof o==`number`||typeof o==`bigint`?(o=``+o,r!==null&&r.tag===6?(n(e,r.sibling),c=a(r,o),c.return=e,e=c):(n(e,r),c=li(o,e.mode,c),c.return=e,e=c),s(e)):n(e,r)}return function(e,t,n,r){try{ka=0;var i=x(e,t,n,r);return Oa=null,i}catch(t){if(t===va||t===ba)throw t;var a=ri(29,t,null,e.mode);return a.lanes=r,a.return=e,a}}}var Pa=Na(!0),Fa=Na(!1),Ia=!1;function La(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function Ra(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 za(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function Ba(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,zl&2){var i=r.pending;return i===null?t.next=t:(t.next=i.next,i.next=t),r.pending=t,t=ti(e),ei(e,null,n),t}return Zr(e,r,t,n),ti(e)}function Va(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,n&4194048)){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,Ye(e,n)}}function Ha(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var i=null,a=null;if(n=n.firstBaseUpdate,n!==null){do{var o={lane:n.lane,tag:n.tag,payload:n.payload,callback:null,next:null};a===null?i=a=o:a=a.next=o,n=n.next}while(n!==null);a===null?i=a=t:a=a.next=t}else i=a=t;n={baseState:r.baseState,firstBaseUpdate:i,lastBaseUpdate:a,shared:r.shared,callbacks:r.callbacks},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}var Ua=!1;function Wa(){if(Ua){var e=la;if(e!==null)throw e}}function Ga(e,t,n,r){Ua=!1;var i=e.updateQueue;Ia=!1;var a=i.firstBaseUpdate,o=i.lastBaseUpdate,s=i.shared.pending;if(s!==null){i.shared.pending=null;var c=s,l=c.next;c.next=null,o===null?a=l:o.next=l,o=c;var u=e.alternate;u!==null&&(u=u.updateQueue,s=u.lastBaseUpdate,s!==o&&(s===null?u.firstBaseUpdate=l:s.next=l,u.lastBaseUpdate=c))}if(a!==null){var d=i.baseState;o=0,u=l=c=null,s=a;do{var p=s.lane&-536870913,m=p!==s.lane;if(m?(Hl&p)===p:(r&p)===p){p!==0&&p===ca&&(Ua=!0),u!==null&&(u=u.next={lane:0,tag:s.tag,payload:s.payload,callback:null,next:null});a:{var h=e,g=s;p=t;var _=n;switch(g.tag){case 1:if(h=g.payload,typeof h==`function`){d=h.call(_,d,p);break a}d=h;break a;case 3:h.flags=h.flags&-65537|128;case 0:if(h=g.payload,p=typeof h==`function`?h.call(_,d,p):h,p==null)break a;d=f({},d,p);break a;case 2:Ia=!0}}p=s.callback,p!==null&&(e.flags|=64,m&&(e.flags|=8192),m=i.callbacks,m===null?i.callbacks=[p]:m.push(p))}else m={lane:p,tag:s.tag,payload:s.payload,callback:s.callback,next:null},u===null?(l=u=m,c=d):u=u.next=m,o|=p;if(s=s.next,s===null){if(s=i.shared.pending,s===null)break;m=s,s=m.next,m.next=null,i.lastBaseUpdate=m,i.shared.pending=null}}while(1);u===null&&(c=d),i.baseState=c,i.firstBaseUpdate=l,i.lastBaseUpdate=u,a===null&&(i.shared.lanes=0),Xl|=o,e.lanes=o,e.memoizedState=d}}function Ka(e,t){if(typeof e!=`function`)throw Error(i(191,e));e.call(t)}function qa(e,t){var n=e.callbacks;if(n!==null)for(e.callbacks=null,e=0;e<n.length;e++)Ka(n[e],t)}var Ja=re(null),Ya=re(0);function Xa(e,t){e=Jl,R(Ya,e),R(Ja,t),Jl=e|t.baseLanes}function Za(){R(Ya,Jl),R(Ja,Ja.current)}function Qa(){Jl=Ya.current,L(Ja),L(Ya)}var $a=re(null),eo=null;function to(e){var t=e.alternate;R(oo,oo.current&1),R($a,e),eo===null&&(t===null||Ja.current!==null||t.memoizedState!==null)&&(eo=e)}function no(e){R(oo,oo.current),R($a,e),eo===null&&(eo=e)}function ro(e){e.tag===22?(R(oo,oo.current),R($a,e),eo===null&&(eo=e)):io(e)}function io(){R(oo,oo.current),R($a,$a.current)}function ao(e){L($a),eo===e&&(eo=null),L(oo)}var oo=re(0);function so(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||pf(n)||mf(n)))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)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 co=0,W=null,lo=null,uo=null,fo=!1,po=!1,mo=!1,ho=0,go=0,_o=null,vo=0;function yo(){throw Error(i(321))}function bo(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!vr(e[n],t[n]))return!1;return!0}function xo(e,t,n,r,i,a){return co=a,W=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,P.H=e===null||e.memoizedState===null?Ls:Rs,mo=!1,a=n(r,i),mo=!1,po&&(a=Co(t,n,r,i)),So(e),a}function So(e){P.H=Is;var t=lo!==null&&lo.next!==null;if(co=0,uo=lo=W=null,fo=!1,go=0,_o=null,t)throw Error(i(300));e===null||tc||(e=e.dependencies,e!==null&&Yi(e)&&(tc=!0))}function Co(e,t,n,r){W=e;var a=0;do{if(po&&(_o=null),go=0,po=!1,25<=a)throw Error(i(301));if(a+=1,uo=lo=null,e.updateQueue!=null){var o=e.updateQueue;o.lastEffect=null,o.events=null,o.stores=null,o.memoCache!=null&&(o.memoCache.index=0)}P.H=zs,o=t(n,r)}while(po);return o}function wo(){var e=P.H,t=e.useState()[0];return t=typeof t.then==`function`?jo(t):t,e=e.useState()[0],(lo===null?null:lo.memoizedState)!==e&&(W.flags|=1024),t}function To(){var e=ho!==0;return ho=0,e}function Eo(e,t,n){t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~n}function Do(e){if(fo){for(e=e.memoizedState;e!==null;){var t=e.queue;t!==null&&(t.pending=null),e=e.next}fo=!1}co=0,uo=lo=W=null,po=!1,go=ho=0,_o=null}function Oo(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return uo===null?W.memoizedState=uo=e:uo=uo.next=e,uo}function ko(){if(lo===null){var e=W.alternate;e=e===null?null:e.memoizedState}else e=lo.next;var t=uo===null?W.memoizedState:uo.next;if(t!==null)uo=t,lo=e;else{if(e===null)throw W.alternate===null?Error(i(467)):Error(i(310));lo=e,e={memoizedState:lo.memoizedState,baseState:lo.baseState,baseQueue:lo.baseQueue,queue:lo.queue,next:null},uo===null?W.memoizedState=uo=e:uo=uo.next=e}return uo}function Ao(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function jo(e){var t=go;return go+=1,_o===null&&(_o=[]),e=Ca(_o,e,t),t=W,(uo===null?t.memoizedState:uo.next)===null&&(t=t.alternate,P.H=t===null||t.memoizedState===null?Ls:Rs),e}function Mo(e){if(typeof e==`object`&&e){if(typeof e.then==`function`)return jo(e);if(e.$$typeof===b)return Zi(e)}throw Error(i(438,String(e)))}function No(e){var t=null,n=W.updateQueue;if(n!==null&&(t=n.memoCache),t==null){var r=W.alternate;r!==null&&(r=r.updateQueue,r!==null&&(r=r.memoCache,r!=null&&(t={data:r.data.map(function(e){return e.slice()}),index:0})))}if(t??={data:[],index:0},n===null&&(n=Ao(),W.updateQueue=n),n.memoCache=t,n=t.data[t.index],n===void 0)for(n=t.data[t.index]=Array(e),r=0;r<e;r++)n[r]=O;return t.index++,n}function Po(e,t){return typeof t==`function`?t(e):t}function Fo(e){return Io(ko(),lo,e)}function Io(e,t,n){var r=e.queue;if(r===null)throw Error(i(311));r.lastRenderedReducer=n;var a=e.baseQueue,o=r.pending;if(o!==null){if(a!==null){var s=a.next;a.next=o.next,o.next=s}t.baseQueue=a=o,r.pending=null}if(o=e.baseState,a===null)e.memoizedState=o;else{t=a.next;var c=s=null,l=null,u=t,d=!1;do{var f=u.lane&-536870913;if(f===u.lane?(co&f)===f:(Hl&f)===f){var p=u.revertLane;if(p===0)l!==null&&(l=l.next={lane:0,revertLane:0,gesture:null,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null}),f===ca&&(d=!0);else if((co&p)===p){u=u.next,p===ca&&(d=!0);continue}else f={lane:0,revertLane:u.revertLane,gesture:null,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null},l===null?(c=l=f,s=o):l=l.next=f,W.lanes|=p,Xl|=p;f=u.action,mo&&n(o,f),o=u.hasEagerState?u.eagerState:n(o,f)}else p={lane:f,revertLane:u.revertLane,gesture:u.gesture,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null},l===null?(c=l=p,s=o):l=l.next=p,W.lanes|=f,Xl|=f;u=u.next}while(u!==null&&u!==t);if(l===null?s=o:l.next=c,!vr(o,e.memoizedState)&&(tc=!0,d&&(n=la,n!==null)))throw n;e.memoizedState=o,e.baseState=s,e.baseQueue=l,r.lastRenderedState=o}return a===null&&(r.lanes=0),[e.memoizedState,r.dispatch]}function Lo(e){var t=ko(),n=t.queue;if(n===null)throw Error(i(311));n.lastRenderedReducer=e;var r=n.dispatch,a=n.pending,o=t.memoizedState;if(a!==null){n.pending=null;var s=a=a.next;do o=e(o,s.action),s=s.next;while(s!==a);vr(o,t.memoizedState)||(tc=!0),t.memoizedState=o,t.baseQueue===null&&(t.baseState=o),n.lastRenderedState=o}return[o,r]}function Ro(e,t,n){var r=W,a=ko(),o=Ai;if(o){if(n===void 0)throw Error(i(407));n=n()}else n=t();var s=!vr((lo||a).memoizedState,n);if(s&&(a.memoizedState=n,tc=!0),a=a.queue,cs(Vo.bind(null,r,a,e),[e]),a.getSnapshot!==t||s||uo!==null&&uo.memoizedState.tag&1){if(r.flags|=2048,rs(9,{destroy:void 0},Bo.bind(null,r,a,n,t),null),Bl===null)throw Error(i(349));o||co&127||zo(r,t,n)}return n}function zo(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=W.updateQueue,t===null?(t=Ao(),W.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function Bo(e,t,n,r){t.value=n,t.getSnapshot=r,Ho(t)&&Uo(e)}function Vo(e,t,n){return n(function(){Ho(t)&&Uo(e)})}function Ho(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!vr(e,n)}catch{return!0}}function Uo(e){var t=$r(e,2);t!==null&&bu(t,e,2)}function Wo(e){var t=Oo();if(typeof e==`function`){var n=e;if(e=n(),mo){Me(!0);try{n()}finally{Me(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Po,lastRenderedState:e},t}function Go(e,t,n,r){return e.baseState=n,Io(e,lo,typeof r==`function`?r:Po)}function Ko(e,t,n,r,a){if(Ns(e))throw Error(i(485));if(e=t.action,e!==null){var o={payload:a,action:e,next:null,isTransition:!0,status:`pending`,value:null,reason:null,listeners:[],then:function(e){o.listeners.push(e)}};P.T===null?o.isTransition=!1:n(!0),r(o),n=t.pending,n===null?(o.next=t.pending=o,qo(t,o)):(o.next=n.next,t.pending=n.next=o)}}function qo(e,t){var n=t.action,r=t.payload,i=e.state;if(t.isTransition){var a=P.T,o={};P.T=o;try{var s=n(i,r),c=P.S;c!==null&&c(o,s),Jo(e,t,s)}catch(n){Xo(e,t,n)}finally{a!==null&&o.types!==null&&(a.types=o.types),P.T=a}}else try{a=n(i,r),Jo(e,t,a)}catch(n){Xo(e,t,n)}}function Jo(e,t,n){typeof n==`object`&&n&&typeof n.then==`function`?n.then(function(n){Yo(e,t,n)},function(n){return Xo(e,t,n)}):Yo(e,t,n)}function Yo(e,t,n){t.status=`fulfilled`,t.value=n,Zo(t),e.state=n,t=e.pending,t!==null&&(n=t.next,n===t?e.pending=null:(n=n.next,t.next=n,qo(e,n)))}function Xo(e,t,n){var r=e.pending;if(e.pending=null,r!==null){r=r.next;do t.status=`rejected`,t.reason=n,Zo(t),t=t.next;while(t!==r)}e.action=null}function Zo(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function G(e,t){return t}function Qo(e,t){if(Ai){var n=Bl.formState;if(n!==null){a:{var r=W;if(Ai){if(ki){b:{for(var i=ki,a=Mi;i.nodeType!==8;){if(!a){i=null;break b}if(i=gf(i.nextSibling),i===null){i=null;break b}}a=i.data,i=a===`F!`||a===`F`?i:null}if(i){ki=gf(i.nextSibling),r=i.data===`F!`;break a}}Pi(r)}r=!1}r&&(t=n[0])}}return n=Oo(),n.memoizedState=n.baseState=t,r={pending:null,lanes:0,dispatch:null,lastRenderedReducer:G,lastRenderedState:t},n.queue=r,n=As.bind(null,W,r),r.dispatch=n,r=Wo(!1),a=Ms.bind(null,W,!1,r.queue),r=Oo(),i={state:t,dispatch:null,action:e,pending:null},r.queue=i,n=Ko.bind(null,W,i,a,n),i.dispatch=n,r.memoizedState=e,[t,n,!1]}function $o(e){return es(ko(),lo,e)}function es(e,t,n){if(t=Io(e,t,G)[0],e=Fo(Po)[0],typeof t==`object`&&t&&typeof t.then==`function`)try{var r=jo(t)}catch(e){throw e===va?ba:e}else r=t;t=ko();var i=t.queue,a=i.dispatch;return n!==t.memoizedState&&(W.flags|=2048,rs(9,{destroy:void 0},ts.bind(null,i,n),null)),[r,a,e]}function ts(e,t){e.action=t}function ns(e){var t=ko(),n=lo;if(n!==null)return es(t,n,e);ko(),t=t.memoizedState,n=ko();var r=n.queue.dispatch;return n.memoizedState=e,[t,r,!1]}function rs(e,t,n,r){return e={tag:e,create:n,deps:r,inst:t,next:null},t=W.updateQueue,t===null&&(t=Ao(),W.updateQueue=t),n=t.lastEffect,n===null?t.lastEffect=e.next=e:(r=n.next,n.next=e,e.next=r,t.lastEffect=e),e}function is(){return ko().memoizedState}function as(e,t,n,r){var i=Oo();W.flags|=e,i.memoizedState=rs(1|t,{destroy:void 0},n,r===void 0?null:r)}function os(e,t,n,r){var i=ko();r=r===void 0?null:r;var a=i.memoizedState.inst;lo!==null&&r!==null&&bo(r,lo.memoizedState.deps)?i.memoizedState=rs(t,a,n,r):(W.flags|=e,i.memoizedState=rs(1|t,a,n,r))}function ss(e,t){as(8390656,8,e,t)}function cs(e,t){os(2048,8,e,t)}function ls(e){W.flags|=4;var t=W.updateQueue;if(t===null)t=Ao(),W.updateQueue=t,t.events=[e];else{var n=t.events;n===null?t.events=[e]:n.push(e)}}function us(e){var t=ko().memoizedState;return ls({ref:t,nextImpl:e}),function(){if(zl&2)throw Error(i(440));return t.impl.apply(void 0,arguments)}}function ds(e,t){return os(4,2,e,t)}function fs(e,t){return os(4,4,e,t)}function ps(e,t){if(typeof t==`function`){e=e();var n=t(e);return function(){typeof n==`function`?n():t(null)}}if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function ms(e,t,n){n=n==null?null:n.concat([e]),os(4,4,ps.bind(null,t,e),n)}function hs(){}function gs(e,t){var n=ko();t=t===void 0?null:t;var r=n.memoizedState;return t!==null&&bo(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function _s(e,t){var n=ko();t=t===void 0?null:t;var r=n.memoizedState;if(t!==null&&bo(t,r[1]))return r[0];if(r=e(),mo){Me(!0);try{e()}finally{Me(!1)}}return n.memoizedState=[r,t],r}function vs(e,t,n){return n===void 0||co&1073741824&&!(Hl&261930)?e.memoizedState=t:(e.memoizedState=n,e=yu(),W.lanes|=e,Xl|=e,n)}function ys(e,t,n,r){return vr(n,t)?n:Ja.current===null?!(co&42)||co&1073741824&&!(Hl&261930)?(tc=!0,e.memoizedState=n):(e=yu(),W.lanes|=e,Xl|=e,t):(e=vs(e,n,r),vr(e,t)||(tc=!0),e)}function bs(e,t,n,r,i){var a=F.p;F.p=a!==0&&8>a?a:8;var o=P.T,s={};P.T=s,Ms(e,!1,t,n);try{var c=i(),l=P.S;l!==null&&l(s,c),typeof c==`object`&&c&&typeof c.then==`function`?js(e,t,fa(c,r),vu(e)):js(e,t,r,vu(e))}catch(n){js(e,t,{then:function(){},status:`rejected`,reason:n},vu())}finally{F.p=a,o!==null&&s.types!==null&&(o.types=s.types),P.T=o}}function xs(){}function Ss(e,t,n,r){if(e.tag!==5)throw Error(i(476));var a=Cs(e).queue;bs(e,a,t,I,n===null?xs:function(){return ws(e),n(r)})}function Cs(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:I,baseState:I,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Po,lastRenderedState:I},next:null};var n={};return t.next={memoizedState:n,baseState:n,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Po,lastRenderedState:n},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function ws(e){var t=Cs(e);t.next===null&&(t=e.alternate.memoizedState),js(e,t.next.queue,{},vu())}function Ts(){return Zi(ap)}function Es(){return ko().memoizedState}function Ds(){return ko().memoizedState}function Os(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var n=vu();e=za(n);var r=Ba(t,e,n);r!==null&&(bu(r,t,n),Va(r,t,n)),t={cache:ia()},e.payload=t;return}t=t.return}}function ks(e,t,n){var r=vu();n={lane:r,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null},Ns(e)?Ps(t,n):(n=Qr(e,t,n,r),n!==null&&(bu(n,e,r),Fs(n,t,r)))}function As(e,t,n){js(e,t,n,vu())}function js(e,t,n,r){var i={lane:r,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null};if(Ns(e))Ps(t,i);else{var a=e.alternate;if(e.lanes===0&&(a===null||a.lanes===0)&&(a=t.lastRenderedReducer,a!==null))try{var o=t.lastRenderedState,s=a(o,n);if(i.hasEagerState=!0,i.eagerState=s,vr(s,o))return Zr(e,t,i,0),Bl===null&&Xr(),!1}catch{}if(n=Qr(e,t,i,r),n!==null)return bu(n,e,r),Fs(n,t,r),!0}return!1}function Ms(e,t,n,r){if(r={lane:2,revertLane:vd(),gesture:null,action:r,hasEagerState:!1,eagerState:null,next:null},Ns(e)){if(t)throw Error(i(479))}else t=Qr(e,n,r,2),t!==null&&bu(t,e,2)}function Ns(e){var t=e.alternate;return e===W||t!==null&&t===W}function Ps(e,t){po=fo=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function Fs(e,t,n){if(n&4194048){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,Ye(e,n)}}var Is={readContext:Zi,use:Mo,useCallback:yo,useContext:yo,useEffect:yo,useImperativeHandle:yo,useLayoutEffect:yo,useInsertionEffect:yo,useMemo:yo,useReducer:yo,useRef:yo,useState:yo,useDebugValue:yo,useDeferredValue:yo,useTransition:yo,useSyncExternalStore:yo,useId:yo,useHostTransitionStatus:yo,useFormState:yo,useActionState:yo,useOptimistic:yo,useMemoCache:yo,useCacheRefresh:yo};Is.useEffectEvent=yo;var Ls={readContext:Zi,use:Mo,useCallback:function(e,t){return Oo().memoizedState=[e,t===void 0?null:t],e},useContext:Zi,useEffect:ss,useImperativeHandle:function(e,t,n){n=n==null?null:n.concat([e]),as(4194308,4,ps.bind(null,t,e),n)},useLayoutEffect:function(e,t){return as(4194308,4,e,t)},useInsertionEffect:function(e,t){as(4,2,e,t)},useMemo:function(e,t){var n=Oo();t=t===void 0?null:t;var r=e();if(mo){Me(!0);try{e()}finally{Me(!1)}}return n.memoizedState=[r,t],r},useReducer:function(e,t,n){var r=Oo();if(n!==void 0){var i=n(t);if(mo){Me(!0);try{n(t)}finally{Me(!1)}}}else i=t;return r.memoizedState=r.baseState=i,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:i},r.queue=e,e=e.dispatch=ks.bind(null,W,e),[r.memoizedState,e]},useRef:function(e){var t=Oo();return e={current:e},t.memoizedState=e},useState:function(e){e=Wo(e);var t=e.queue,n=As.bind(null,W,t);return t.dispatch=n,[e.memoizedState,n]},useDebugValue:hs,useDeferredValue:function(e,t){return vs(Oo(),e,t)},useTransition:function(){var e=Wo(!1);return e=bs.bind(null,W,e.queue,!0,!1),Oo().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,n){var r=W,a=Oo();if(Ai){if(n===void 0)throw Error(i(407));n=n()}else{if(n=t(),Bl===null)throw Error(i(349));Hl&127||zo(r,t,n)}a.memoizedState=n;var o={value:n,getSnapshot:t};return a.queue=o,ss(Vo.bind(null,r,o,e),[e]),r.flags|=2048,rs(9,{destroy:void 0},Bo.bind(null,r,o,n,t),null),n},useId:function(){var e=Oo(),t=Bl.identifierPrefix;if(Ai){var n=Si,r=xi;n=(r&~(1<<32-Ne(r)-1)).toString(32)+n,t=`_`+t+`R_`+n,n=ho++,0<n&&(t+=`H`+n.toString(32)),t+=`_`}else n=vo++,t=`_`+t+`r_`+n.toString(32)+`_`;return e.memoizedState=t},useHostTransitionStatus:Ts,useFormState:Qo,useActionState:Qo,useOptimistic:function(e){var t=Oo();t.memoizedState=t.baseState=e;var n={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=n,t=Ms.bind(null,W,!0,n),n.dispatch=t,[e,t]},useMemoCache:No,useCacheRefresh:function(){return Oo().memoizedState=Os.bind(null,W)},useEffectEvent:function(e){var t=Oo(),n={impl:e};return t.memoizedState=n,function(){if(zl&2)throw Error(i(440));return n.impl.apply(void 0,arguments)}}},Rs={readContext:Zi,use:Mo,useCallback:gs,useContext:Zi,useEffect:cs,useImperativeHandle:ms,useInsertionEffect:ds,useLayoutEffect:fs,useMemo:_s,useReducer:Fo,useRef:is,useState:function(){return Fo(Po)},useDebugValue:hs,useDeferredValue:function(e,t){return ys(ko(),lo.memoizedState,e,t)},useTransition:function(){var e=Fo(Po)[0],t=ko().memoizedState;return[typeof e==`boolean`?e:jo(e),t]},useSyncExternalStore:Ro,useId:Es,useHostTransitionStatus:Ts,useFormState:$o,useActionState:$o,useOptimistic:function(e,t){return Go(ko(),lo,e,t)},useMemoCache:No,useCacheRefresh:Ds};Rs.useEffectEvent=us;var zs={readContext:Zi,use:Mo,useCallback:gs,useContext:Zi,useEffect:cs,useImperativeHandle:ms,useInsertionEffect:ds,useLayoutEffect:fs,useMemo:_s,useReducer:Lo,useRef:is,useState:function(){return Lo(Po)},useDebugValue:hs,useDeferredValue:function(e,t){var n=ko();return lo===null?vs(n,e,t):ys(n,lo.memoizedState,e,t)},useTransition:function(){var e=Lo(Po)[0],t=ko().memoizedState;return[typeof e==`boolean`?e:jo(e),t]},useSyncExternalStore:Ro,useId:Es,useHostTransitionStatus:Ts,useFormState:ns,useActionState:ns,useOptimistic:function(e,t){var n=ko();return lo===null?(n.baseState=e,[e,n.queue.dispatch]):Go(n,lo,e,t)},useMemoCache:No,useCacheRefresh:Ds};zs.useEffectEvent=us;function Bs(e,t,n,r){t=e.memoizedState,n=n(r,t),n=n==null?t:f({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var Vs={enqueueSetState:function(e,t,n){e=e._reactInternals;var r=vu(),i=za(r);i.payload=t,n!=null&&(i.callback=n),t=Ba(e,i,r),t!==null&&(bu(t,e,r),Va(t,e,r))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=vu(),i=za(r);i.tag=1,i.payload=t,n!=null&&(i.callback=n),t=Ba(e,i,r),t!==null&&(bu(t,e,r),Va(t,e,r))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=vu(),r=za(n);r.tag=2,t!=null&&(r.callback=t),t=Ba(e,r,n),t!==null&&(bu(t,e,n),Va(t,e,n))}};function Hs(e,t,n,r,i,a,o){return e=e.stateNode,typeof e.shouldComponentUpdate==`function`?e.shouldComponentUpdate(r,a,o):t.prototype&&t.prototype.isPureReactComponent?!yr(n,r)||!yr(i,a):!0}function Us(e,t,n,r){e=t.state,typeof t.componentWillReceiveProps==`function`&&t.componentWillReceiveProps(n,r),typeof t.UNSAFE_componentWillReceiveProps==`function`&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==e&&Vs.enqueueReplaceState(t,t.state,null)}function Ws(e,t){var n=t;if(`ref`in t)for(var r in n={},t)r!==`ref`&&(n[r]=t[r]);if(e=e.defaultProps)for(var i in n===t&&(n=f({},n)),e)n[i]===void 0&&(n[i]=e[i]);return n}function Gs(e){Kr(e)}function Ks(e){console.error(e)}function qs(e){Kr(e)}function Js(e,t){try{var n=e.onUncaughtError;n(t.value,{componentStack:t.stack})}catch(e){setTimeout(function(){throw e})}}function Ys(e,t,n){try{var r=e.onCaughtError;r(n.value,{componentStack:n.stack,errorBoundary:t.tag===1?t.stateNode:null})}catch(e){setTimeout(function(){throw e})}}function Xs(e,t,n){return n=za(n),n.tag=3,n.payload={element:null},n.callback=function(){Js(e,t)},n}function Zs(e){return e=za(e),e.tag=3,e}function Qs(e,t,n,r){var i=n.type.getDerivedStateFromError;if(typeof i==`function`){var a=r.value;e.payload=function(){return i(a)},e.callback=function(){Ys(t,n,r)}}var o=n.stateNode;o!==null&&typeof o.componentDidCatch==`function`&&(e.callback=function(){Ys(t,n,r),typeof i!=`function`&&(cu===null?cu=new Set([this]):cu.add(this));var e=r.stack;this.componentDidCatch(r.value,{componentStack:e===null?``:e})})}function $s(e,t,n,r,a){if(n.flags|=32768,typeof r==`object`&&r&&typeof r.then==`function`){if(t=n.alternate,t!==null&&Ji(t,n,a,!0),n=$a.current,n!==null){switch(n.tag){case 31:case 13:return eo===null?Nu():n.alternate===null&&Yl===0&&(Yl=3),n.flags&=-257,n.flags|=65536,n.lanes=a,r===xa?n.flags|=16384:(t=n.updateQueue,t===null?n.updateQueue=new Set([r]):t.add(r),Qu(e,r,a)),!1;case 22:return n.flags|=65536,r===xa?n.flags|=16384:(t=n.updateQueue,t===null?(t={transitions:null,markerInstances:null,retryQueue:new Set([r])},n.updateQueue=t):(n=t.retryQueue,n===null?t.retryQueue=new Set([r]):n.add(r)),Qu(e,r,a)),!1}throw Error(i(435,n.tag))}return Qu(e,r,a),Nu(),!1}if(Ai)return t=$a.current,t===null?(r!==Ni&&(t=Error(i(423),{cause:r}),Bi(pi(t,n))),e=e.current.alternate,e.flags|=65536,a&=-a,e.lanes|=a,r=pi(r,n),a=Xs(e.stateNode,r,a),Ha(e,a),Yl!==4&&(Yl=2)):(!(t.flags&65536)&&(t.flags|=256),t.flags|=65536,t.lanes=a,r!==Ni&&(e=Error(i(422),{cause:r}),Bi(pi(e,n)))),!1;var o=Error(i(520),{cause:r});if(o=pi(o,n),tu===null?tu=[o]:tu.push(o),Yl!==4&&(Yl=2),t===null)return!0;r=pi(r,n),n=t;do{switch(n.tag){case 3:return n.flags|=65536,e=a&-a,n.lanes|=e,e=Xs(n.stateNode,r,e),Ha(n,e),!1;case 1:if(t=n.type,o=n.stateNode,!(n.flags&128)&&(typeof t.getDerivedStateFromError==`function`||o!==null&&typeof o.componentDidCatch==`function`&&(cu===null||!cu.has(o))))return n.flags|=65536,a&=-a,n.lanes|=a,a=Zs(a),Qs(a,e,n,r),Ha(n,a),!1}n=n.return}while(n!==null);return!1}var ec=Error(i(461)),tc=!1;function nc(e,t,n,r){t.child=e===null?Fa(t,null,n,r):Pa(t,e.child,n,r)}function rc(e,t,n,r,i){n=n.render;var a=t.ref;if(`ref`in r){var o={};for(var s in r)s!==`ref`&&(o[s]=r[s])}else o=r;return Xi(t),r=xo(e,t,n,o,a,i),s=To(),e!==null&&!tc?(Eo(e,t,i),Dc(e,t,i)):(Ai&&s&&Ti(t),t.flags|=1,nc(e,t,r,i),t.child)}function ic(e,t,n,r,i){if(e===null){var a=n.type;return typeof a==`function`&&!ii(a)&&a.defaultProps===void 0&&n.compare===null?(t.tag=15,t.type=a,ac(e,t,a,r,i)):(e=si(n.type,null,r,t,t.mode,i),e.ref=t.ref,e.return=t,t.child=e)}if(a=e.child,!Oc(e,i)){var o=a.memoizedProps;if(n=n.compare,n=n===null?yr:n,n(o,r)&&e.ref===t.ref)return Dc(e,t,i)}return t.flags|=1,e=ai(a,r),e.ref=t.ref,e.return=t,t.child=e}function ac(e,t,n,r,i){if(e!==null){var a=e.memoizedProps;if(yr(a,r)&&e.ref===t.ref)if(tc=!1,t.pendingProps=r=a,Oc(e,i))e.flags&131072&&(tc=!0);else return t.lanes=e.lanes,Dc(e,t,i)}return pc(e,t,n,r,i)}function oc(e,t,n,r){var i=r.children,a=e===null?null:e.memoizedState;if(e===null&&t.stateNode===null&&(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),r.mode===`hidden`){if(t.flags&128){if(a=a===null?n:a.baseLanes|n,e!==null){for(r=t.child=e.child,i=0;r!==null;)i=i|r.lanes|r.childLanes,r=r.sibling;r=i&~a}else r=0,t.child=null;return cc(e,t,a,n,r)}if(n&536870912)t.memoizedState={baseLanes:0,cachePool:null},e!==null&&ga(t,a===null?null:a.cachePool),a===null?Za():Xa(t,a),ro(t);else return r=t.lanes=536870912,cc(e,t,a===null?n:a.baseLanes|n,n,r)}else a===null?(e!==null&&ga(t,null),Za(),io(t)):(ga(t,a.cachePool),Xa(t,a),io(t),t.memoizedState=null);return nc(e,t,i,n),t.child}function sc(e,t){return e!==null&&e.tag===22||t.stateNode!==null||(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),t.sibling}function cc(e,t,n,r,i){var a=ha();return a=a===null?null:{parent:ra._currentValue,pool:a},t.memoizedState={baseLanes:n,cachePool:a},e!==null&&ga(t,null),Za(),ro(t),e!==null&&Ji(e,t,r,!0),t.childLanes=i,null}function lc(e,t){return t=Sc({mode:t.mode,children:t.children},e.mode),t.ref=e.ref,e.child=t,t.return=e,t}function uc(e,t,n){return Pa(t,e.child,null,n),e=lc(t,t.pendingProps),e.flags|=2,ao(t),t.memoizedState=null,e}function dc(e,t,n){var r=t.pendingProps,a=(t.flags&128)!=0;if(t.flags&=-129,e===null){if(Ai){if(r.mode===`hidden`)return e=lc(t,r),t.lanes=536870912,sc(null,e);if(no(t),(e=ki)?(e=ff(e,Mi),e=e!==null&&e.data===`&`?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:bi===null?null:{id:xi,overflow:Si},retryLane:536870912,hydrationErrors:null},n=ui(e),n.return=t,t.child=n,Oi=t,ki=null)):e=null,e===null)throw Pi(t);return t.lanes=536870912,null}return lc(t,r)}var o=e.memoizedState;if(o!==null){var s=o.dehydrated;if(no(t),a)if(t.flags&256)t.flags&=-257,t=uc(e,t,n);else if(t.memoizedState!==null)t.child=e.child,t.flags|=128,t=null;else throw Error(i(558));else if(tc||Ji(e,t,n,!1),a=(n&e.childLanes)!==0,tc||a){if(r=Bl,r!==null&&(s=Xe(r,n),s!==0&&s!==o.retryLane))throw o.retryLane=s,$r(e,s),bu(r,e,s),ec;Nu(),t=uc(e,t,n)}else e=o.treeContext,ki=gf(s.nextSibling),Oi=t,Ai=!0,ji=null,Mi=!1,e!==null&&Di(t,e),t=lc(t,r),t.flags|=4096;return t}return e=ai(e.child,{mode:r.mode,children:r.children}),e.ref=t.ref,t.child=e,e.return=t,e}function fc(e,t){var n=t.ref;if(n===null)e!==null&&e.ref!==null&&(t.flags|=4194816);else{if(typeof n!=`function`&&typeof n!=`object`)throw Error(i(284));(e===null||e.ref!==n)&&(t.flags|=4194816)}}function pc(e,t,n,r,i){return Xi(t),n=xo(e,t,n,r,void 0,i),r=To(),e!==null&&!tc?(Eo(e,t,i),Dc(e,t,i)):(Ai&&r&&Ti(t),t.flags|=1,nc(e,t,n,i),t.child)}function mc(e,t,n,r,i,a){return Xi(t),t.updateQueue=null,n=Co(t,r,n,i),So(e),r=To(),e!==null&&!tc?(Eo(e,t,a),Dc(e,t,a)):(Ai&&r&&Ti(t),t.flags|=1,nc(e,t,n,a),t.child)}function hc(e,t,n,r,i){if(Xi(t),t.stateNode===null){var a=ni,o=n.contextType;typeof o==`object`&&o&&(a=Zi(o)),a=new n(r,a),t.memoizedState=a.state!==null&&a.state!==void 0?a.state:null,a.updater=Vs,t.stateNode=a,a._reactInternals=t,a=t.stateNode,a.props=r,a.state=t.memoizedState,a.refs={},La(t),o=n.contextType,a.context=typeof o==`object`&&o?Zi(o):ni,a.state=t.memoizedState,o=n.getDerivedStateFromProps,typeof o==`function`&&(Bs(t,n,o,r),a.state=t.memoizedState),typeof n.getDerivedStateFromProps==`function`||typeof a.getSnapshotBeforeUpdate==`function`||typeof a.UNSAFE_componentWillMount!=`function`&&typeof a.componentWillMount!=`function`||(o=a.state,typeof a.componentWillMount==`function`&&a.componentWillMount(),typeof a.UNSAFE_componentWillMount==`function`&&a.UNSAFE_componentWillMount(),o!==a.state&&Vs.enqueueReplaceState(a,a.state,null),Ga(t,r,a,i),Wa(),a.state=t.memoizedState),typeof a.componentDidMount==`function`&&(t.flags|=4194308),r=!0}else if(e===null){a=t.stateNode;var s=t.memoizedProps,c=Ws(n,s);a.props=c;var l=a.context,u=n.contextType;o=ni,typeof u==`object`&&u&&(o=Zi(u));var d=n.getDerivedStateFromProps;u=typeof d==`function`||typeof a.getSnapshotBeforeUpdate==`function`,s=t.pendingProps!==s,u||typeof a.UNSAFE_componentWillReceiveProps!=`function`&&typeof a.componentWillReceiveProps!=`function`||(s||l!==o)&&Us(t,a,r,o),Ia=!1;var f=t.memoizedState;a.state=f,Ga(t,r,a,i),Wa(),l=t.memoizedState,s||f!==l||Ia?(typeof d==`function`&&(Bs(t,n,d,r),l=t.memoizedState),(c=Ia||Hs(t,n,c,r,f,l,o))?(u||typeof a.UNSAFE_componentWillMount!=`function`&&typeof a.componentWillMount!=`function`||(typeof a.componentWillMount==`function`&&a.componentWillMount(),typeof a.UNSAFE_componentWillMount==`function`&&a.UNSAFE_componentWillMount()),typeof a.componentDidMount==`function`&&(t.flags|=4194308)):(typeof a.componentDidMount==`function`&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=l),a.props=r,a.state=l,a.context=o,r=c):(typeof a.componentDidMount==`function`&&(t.flags|=4194308),r=!1)}else{a=t.stateNode,Ra(e,t),o=t.memoizedProps,u=Ws(n,o),a.props=u,d=t.pendingProps,f=a.context,l=n.contextType,c=ni,typeof l==`object`&&l&&(c=Zi(l)),s=n.getDerivedStateFromProps,(l=typeof s==`function`||typeof a.getSnapshotBeforeUpdate==`function`)||typeof a.UNSAFE_componentWillReceiveProps!=`function`&&typeof a.componentWillReceiveProps!=`function`||(o!==d||f!==c)&&Us(t,a,r,c),Ia=!1,f=t.memoizedState,a.state=f,Ga(t,r,a,i),Wa();var p=t.memoizedState;o!==d||f!==p||Ia||e!==null&&e.dependencies!==null&&Yi(e.dependencies)?(typeof s==`function`&&(Bs(t,n,s,r),p=t.memoizedState),(u=Ia||Hs(t,n,u,r,f,p,c)||e!==null&&e.dependencies!==null&&Yi(e.dependencies))?(l||typeof a.UNSAFE_componentWillUpdate!=`function`&&typeof a.componentWillUpdate!=`function`||(typeof a.componentWillUpdate==`function`&&a.componentWillUpdate(r,p,c),typeof a.UNSAFE_componentWillUpdate==`function`&&a.UNSAFE_componentWillUpdate(r,p,c)),typeof a.componentDidUpdate==`function`&&(t.flags|=4),typeof a.getSnapshotBeforeUpdate==`function`&&(t.flags|=1024)):(typeof a.componentDidUpdate!=`function`||o===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),typeof a.getSnapshotBeforeUpdate!=`function`||o===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=p),a.props=r,a.state=p,a.context=c,r=u):(typeof a.componentDidUpdate!=`function`||o===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),typeof a.getSnapshotBeforeUpdate!=`function`||o===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),r=!1)}return a=r,fc(e,t),r=(t.flags&128)!=0,a||r?(a=t.stateNode,n=r&&typeof n.getDerivedStateFromError!=`function`?null:a.render(),t.flags|=1,e!==null&&r?(t.child=Pa(t,e.child,null,i),t.child=Pa(t,null,n,i)):nc(e,t,n,i),t.memoizedState=a.state,e=t.child):e=Dc(e,t,i),e}function gc(e,t,n,r){return Ri(),t.flags|=256,nc(e,t,n,r),t.child}var _c={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function vc(e){return{baseLanes:e,cachePool:_a()}}function yc(e,t,n){return e=e===null?0:e.childLanes&~n,t&&(e|=$l),e}function bc(e,t,n){var r=t.pendingProps,a=!1,o=(t.flags&128)!=0,s;if((s=o)||(s=e!==null&&e.memoizedState===null?!1:(oo.current&2)!=0),s&&(a=!0,t.flags&=-129),s=(t.flags&32)!=0,t.flags&=-33,e===null){if(Ai){if(a?to(t):io(t),(e=ki)?(e=ff(e,Mi),e=e!==null&&e.data!==`&`?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:bi===null?null:{id:xi,overflow:Si},retryLane:536870912,hydrationErrors:null},n=ui(e),n.return=t,t.child=n,Oi=t,ki=null)):e=null,e===null)throw Pi(t);return mf(e)?t.lanes=32:t.lanes=536870912,null}var c=r.children;return r=r.fallback,a?(io(t),a=t.mode,c=Sc({mode:`hidden`,children:c},a),r=ci(r,a,n,null),c.return=t,r.return=t,c.sibling=r,t.child=c,r=t.child,r.memoizedState=vc(n),r.childLanes=yc(e,s,n),t.memoizedState=_c,sc(null,r)):(to(t),xc(t,c))}var l=e.memoizedState;if(l!==null&&(c=l.dehydrated,c!==null)){if(o)t.flags&256?(to(t),t.flags&=-257,t=Cc(e,t,n)):t.memoizedState===null?(io(t),c=r.fallback,a=t.mode,r=Sc({mode:`visible`,children:r.children},a),c=ci(c,a,n,null),c.flags|=2,r.return=t,c.return=t,r.sibling=c,t.child=r,Pa(t,e.child,null,n),r=t.child,r.memoizedState=vc(n),r.childLanes=yc(e,s,n),t.memoizedState=_c,t=sc(null,r)):(io(t),t.child=e.child,t.flags|=128,t=null);else if(to(t),mf(c)){if(s=c.nextSibling&&c.nextSibling.dataset,s)var u=s.dgst;s=u,r=Error(i(419)),r.stack=``,r.digest=s,Bi({value:r,source:null,stack:null}),t=Cc(e,t,n)}else if(tc||Ji(e,t,n,!1),s=(n&e.childLanes)!==0,tc||s){if(s=Bl,s!==null&&(r=Xe(s,n),r!==0&&r!==l.retryLane))throw l.retryLane=r,$r(e,r),bu(s,e,r),ec;pf(c)||Nu(),t=Cc(e,t,n)}else pf(c)?(t.flags|=192,t.child=e.child,t=null):(e=l.treeContext,ki=gf(c.nextSibling),Oi=t,Ai=!0,ji=null,Mi=!1,e!==null&&Di(t,e),t=xc(t,r.children),t.flags|=4096);return t}return a?(io(t),c=r.fallback,a=t.mode,l=e.child,u=l.sibling,r=ai(l,{mode:`hidden`,children:r.children}),r.subtreeFlags=l.subtreeFlags&65011712,u===null?(c=ci(c,a,n,null),c.flags|=2):c=ai(u,c),c.return=t,r.return=t,r.sibling=c,t.child=r,sc(null,r),r=t.child,c=e.child.memoizedState,c===null?c=vc(n):(a=c.cachePool,a===null?a=_a():(l=ra._currentValue,a=a.parent===l?a:{parent:l,pool:l}),c={baseLanes:c.baseLanes|n,cachePool:a}),r.memoizedState=c,r.childLanes=yc(e,s,n),t.memoizedState=_c,sc(e.child,r)):(to(t),n=e.child,e=n.sibling,n=ai(n,{mode:`visible`,children:r.children}),n.return=t,n.sibling=null,e!==null&&(s=t.deletions,s===null?(t.deletions=[e],t.flags|=16):s.push(e)),t.child=n,t.memoizedState=null,n)}function xc(e,t){return t=Sc({mode:`visible`,children:t},e.mode),t.return=e,e.child=t}function Sc(e,t){return e=ri(22,e,null,t),e.lanes=0,e}function Cc(e,t,n){return Pa(t,e.child,null,n),e=xc(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function wc(e,t,n){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),Ki(e.return,t,n)}function Tc(e,t,n,r,i,a){var o=e.memoizedState;o===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:i,treeForkCount:a}:(o.isBackwards=t,o.rendering=null,o.renderingStartTime=0,o.last=r,o.tail=n,o.tailMode=i,o.treeForkCount=a)}function Ec(e,t,n){var r=t.pendingProps,i=r.revealOrder,a=r.tail;r=r.children;var o=oo.current,s=(o&2)!=0;if(s?(o=o&1|2,t.flags|=128):o&=1,R(oo,o),nc(e,t,r,n),r=Ai?_i:0,!s&&e!==null&&e.flags&128)a:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&wc(e,n,t);else if(e.tag===19)wc(e,n,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break a;for(;e.sibling===null;){if(e.return===null||e.return===t)break a;e=e.return}e.sibling.return=e.return,e=e.sibling}switch(i){case`forwards`:for(n=t.child,i=null;n!==null;)e=n.alternate,e!==null&&so(e)===null&&(i=n),n=n.sibling;n=i,n===null?(i=t.child,t.child=null):(i=n.sibling,n.sibling=null),Tc(t,!1,i,n,a,r);break;case`backwards`:case`unstable_legacy-backwards`:for(n=null,i=t.child,t.child=null;i!==null;){if(e=i.alternate,e!==null&&so(e)===null){t.child=i;break}e=i.sibling,i.sibling=n,n=i,i=e}Tc(t,!0,n,null,a,r);break;case`together`:Tc(t,!1,null,null,void 0,r);break;default:t.memoizedState=null}return t.child}function Dc(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),Xl|=t.lanes,(n&t.childLanes)===0)if(e!==null){if(Ji(e,t,n,!1),(n&t.childLanes)===0)return null}else return null;if(e!==null&&t.child!==e.child)throw Error(i(153));if(t.child!==null){for(e=t.child,n=ai(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=ai(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function Oc(e,t){return(e.lanes&t)===0?(e=e.dependencies,!!(e!==null&&Yi(e))):!0}function kc(e,t,n){switch(t.tag){case 3:oe(t,t.stateNode.containerInfo),Wi(t,ra,e.memoizedState.cache),Ri();break;case 27:case 5:le(t);break;case 4:oe(t,t.stateNode.containerInfo);break;case 10:Wi(t,t.type,t.memoizedProps.value);break;case 31:if(t.memoizedState!==null)return t.flags|=128,no(t),null;break;case 13:var r=t.memoizedState;if(r!==null)return r.dehydrated===null?(n&t.child.childLanes)===0?(to(t),e=Dc(e,t,n),e===null?null:e.sibling):bc(e,t,n):(to(t),t.flags|=128,null);to(t);break;case 19:var i=(e.flags&128)!=0;if(r=(n&t.childLanes)!==0,r||=(Ji(e,t,n,!1),(n&t.childLanes)!==0),i){if(r)return Ec(e,t,n);t.flags|=128}if(i=t.memoizedState,i!==null&&(i.rendering=null,i.tail=null,i.lastEffect=null),R(oo,oo.current),r)break;return null;case 22:return t.lanes=0,oc(e,t,n,t.pendingProps);case 24:Wi(t,ra,e.memoizedState.cache)}return Dc(e,t,n)}function Ac(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps)tc=!0;else{if(!Oc(e,n)&&!(t.flags&128))return tc=!1,kc(e,t,n);tc=!!(e.flags&131072)}else tc=!1,Ai&&t.flags&1048576&&wi(t,_i,t.index);switch(t.lanes=0,t.tag){case 16:a:{var r=t.pendingProps;if(e=wa(t.elementType),t.type=e,typeof e==`function`)ii(e)?(r=Ws(e,r),t.tag=1,t=hc(null,t,e,r,n)):(t.tag=0,t=pc(null,t,e,r,n));else{if(e!=null){var a=e.$$typeof;if(a===x){t.tag=11,t=rc(null,t,e,r,n);break a}else if(a===w){t.tag=14,t=ic(null,t,e,r,n);break a}}throw t=M(e)||e,Error(i(306,t,``))}}return t;case 0:return pc(e,t,t.type,t.pendingProps,n);case 1:return r=t.type,a=Ws(r,t.pendingProps),hc(e,t,r,a,n);case 3:a:{if(oe(t,t.stateNode.containerInfo),e===null)throw Error(i(387));r=t.pendingProps;var o=t.memoizedState;a=o.element,Ra(e,t),Ga(t,r,null,n);var s=t.memoizedState;if(r=s.cache,Wi(t,ra,r),r!==o.cache&&qi(t,[ra],n,!0),Wa(),r=s.element,o.isDehydrated)if(o={element:r,isDehydrated:!1,cache:s.cache},t.updateQueue.baseState=o,t.memoizedState=o,t.flags&256){t=gc(e,t,r,n);break a}else if(r!==a){a=pi(Error(i(424)),t),Bi(a),t=gc(e,t,r,n);break a}else{switch(e=t.stateNode.containerInfo,e.nodeType){case 9:e=e.body;break;default:e=e.nodeName===`HTML`?e.ownerDocument.body:e}for(ki=gf(e.firstChild),Oi=t,Ai=!0,ji=null,Mi=!0,n=Fa(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling}else{if(Ri(),r===a){t=Dc(e,t,n);break a}nc(e,t,r,n)}t=t.child}return t;case 26:return fc(e,t),e===null?(n=If(t.type,null,t.pendingProps,null))?t.memoizedState=n:Ai||(n=t.type,e=t.pendingProps,r=Jd(z.current).createElement(n),r[nt]=t,r[rt]=e,Hd(r,n,e),ht(r),t.stateNode=r):t.memoizedState=If(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return le(t),e===null&&Ai&&(r=t.stateNode=bf(t.type,t.pendingProps,z.current),Oi=t,Mi=!0,a=ki,of(t.type)?(_f=a,ki=gf(r.firstChild)):ki=a),nc(e,t,t.pendingProps.children,n),fc(e,t),e===null&&(t.flags|=4194304),t.child;case 5:return e===null&&Ai&&((a=r=ki)&&(r=uf(r,t.type,t.pendingProps,Mi),r===null?a=!1:(t.stateNode=r,Oi=t,ki=gf(r.firstChild),Mi=!1,a=!0)),a||Pi(t)),le(t),a=t.type,o=t.pendingProps,s=e===null?null:e.memoizedProps,r=o.children,Zd(a,o)?r=null:s!==null&&Zd(a,s)&&(t.flags|=32),t.memoizedState!==null&&(a=xo(e,t,wo,null,null,n),ap._currentValue=a),fc(e,t),nc(e,t,r,n),t.child;case 6:return e===null&&Ai&&((e=n=ki)&&(n=df(n,t.pendingProps,Mi),n===null?e=!1:(t.stateNode=n,Oi=t,ki=null,e=!0)),e||Pi(t)),null;case 13:return bc(e,t,n);case 4:return oe(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=Pa(t,null,r,n):nc(e,t,r,n),t.child;case 11:return rc(e,t,t.type,t.pendingProps,n);case 7:return nc(e,t,t.pendingProps,n),t.child;case 8:return nc(e,t,t.pendingProps.children,n),t.child;case 12:return nc(e,t,t.pendingProps.children,n),t.child;case 10:return r=t.pendingProps,Wi(t,t.type,r.value),nc(e,t,r.children,n),t.child;case 9:return a=t.type._context,r=t.pendingProps.children,Xi(t),a=Zi(a),r=r(a),t.flags|=1,nc(e,t,r,n),t.child;case 14:return ic(e,t,t.type,t.pendingProps,n);case 15:return ac(e,t,t.type,t.pendingProps,n);case 19:return Ec(e,t,n);case 31:return dc(e,t,n);case 22:return oc(e,t,n,t.pendingProps);case 24:return Xi(t),r=Zi(ra),e===null?(a=ha(),a===null&&(a=Bl,o=ia(),a.pooledCache=o,o.refCount++,o!==null&&(a.pooledCacheLanes|=n),a=o),t.memoizedState={parent:r,cache:a},La(t),Wi(t,ra,a)):((e.lanes&n)!==0&&(Ra(e,t),Ga(t,null,null,n),Wa()),a=e.memoizedState,o=t.memoizedState,a.parent===r?(r=o.cache,Wi(t,ra,r),r!==a.cache&&qi(t,[ra],n,!0)):(a={parent:r,cache:r},t.memoizedState=a,t.lanes===0&&(t.memoizedState=t.updateQueue.baseState=a),Wi(t,ra,r))),nc(e,t,t.pendingProps.children,n),t.child;case 29:throw t.pendingProps}throw Error(i(156,t.tag))}function jc(e){e.flags|=4}function Mc(e,t,n,r,i){if((t=(e.mode&32)!=0)&&(t=!1),t){if(e.flags|=16777216,(i&335544128)===i)if(e.stateNode.complete)e.flags|=8192;else if(Au())e.flags|=8192;else throw Ta=xa,ya}else e.flags&=-16777217}function Nc(e,t){if(t.type!==`stylesheet`||t.state.loading&4)e.flags&=-16777217;else if(e.flags|=16777216,!Zf(t))if(Au())e.flags|=8192;else throw Ta=xa,ya}function Pc(e,t){t!==null&&(e.flags|=4),e.flags&16384&&(t=e.tag===22?536870912:We(),e.lanes|=t,eu|=t)}function Fc(e,t){if(!Ai)switch(e.tailMode){case`hidden`:t=e.tail;for(var n=null;t!==null;)t.alternate!==null&&(n=t),t=t.sibling;n===null?e.tail=null:n.sibling=null;break;case`collapsed`:n=e.tail;for(var r=null;n!==null;)n.alternate!==null&&(r=n),n=n.sibling;r===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:r.sibling=null}}function Ic(e){var t=e.alternate!==null&&e.alternate.child===e.child,n=0,r=0;if(t)for(var i=e.child;i!==null;)n|=i.lanes|i.childLanes,r|=i.subtreeFlags&65011712,r|=i.flags&65011712,i.return=e,i=i.sibling;else for(i=e.child;i!==null;)n|=i.lanes|i.childLanes,r|=i.subtreeFlags,r|=i.flags,i.return=e,i=i.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function Lc(e,t,n){var r=t.pendingProps;switch(Ei(t),t.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Ic(t),null;case 1:return Ic(t),null;case 3:return n=t.stateNode,r=null,e!==null&&(r=e.memoizedState.cache),t.memoizedState.cache!==r&&(t.flags|=2048),Gi(ra),ce(),n.pendingContext&&(n.context=n.pendingContext,n.pendingContext=null),(e===null||e.child===null)&&(Li(t)?jc(t):e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,zi())),Ic(t),null;case 26:var a=t.type,o=t.memoizedState;return e===null?(jc(t),o===null?(Ic(t),Mc(t,a,null,r,n)):(Ic(t),Nc(t,o))):o?o===e.memoizedState?(Ic(t),t.flags&=-16777217):(jc(t),Ic(t),Nc(t,o)):(e=e.memoizedProps,e!==r&&jc(t),Ic(t),Mc(t,a,e,r,n)),null;case 27:if(ue(t),n=z.current,a=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==r&&jc(t);else{if(!r){if(t.stateNode===null)throw Error(i(166));return Ic(t),null}e=ie.current,Li(t)?Fi(t,e):(e=bf(a,r,n),t.stateNode=e,jc(t))}return Ic(t),null;case 5:if(ue(t),a=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==r&&jc(t);else{if(!r){if(t.stateNode===null)throw Error(i(166));return Ic(t),null}if(o=ie.current,Li(t))Fi(t,o);else{var s=Jd(z.current);switch(o){case 1:o=s.createElementNS(`http://www.w3.org/2000/svg`,a);break;case 2:o=s.createElementNS(`http://www.w3.org/1998/Math/MathML`,a);break;default:switch(a){case`svg`:o=s.createElementNS(`http://www.w3.org/2000/svg`,a);break;case`math`:o=s.createElementNS(`http://www.w3.org/1998/Math/MathML`,a);break;case`script`:o=s.createElement(`div`),o.innerHTML=`<script><\/script>`,o=o.removeChild(o.firstChild);break;case`select`:o=typeof r.is==`string`?s.createElement(`select`,{is:r.is}):s.createElement(`select`),r.multiple?o.multiple=!0:r.size&&(o.size=r.size);break;default:o=typeof r.is==`string`?s.createElement(a,{is:r.is}):s.createElement(a)}}o[nt]=t,o[rt]=r;a:for(s=t.child;s!==null;){if(s.tag===5||s.tag===6)o.appendChild(s.stateNode);else if(s.tag!==4&&s.tag!==27&&s.child!==null){s.child.return=s,s=s.child;continue}if(s===t)break a;for(;s.sibling===null;){if(s.return===null||s.return===t)break a;s=s.return}s.sibling.return=s.return,s=s.sibling}t.stateNode=o;a:switch(Hd(o,a,r),a){case`button`:case`input`:case`select`:case`textarea`:r=!!r.autoFocus;break a;case`img`:r=!0;break a;default:r=!1}r&&jc(t)}}return Ic(t),Mc(t,t.type,e===null?null:e.memoizedProps,t.pendingProps,n),null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==r&&jc(t);else{if(typeof r!=`string`&&t.stateNode===null)throw Error(i(166));if(e=z.current,Li(t)){if(e=t.stateNode,n=t.memoizedProps,r=null,a=Oi,a!==null)switch(a.tag){case 27:case 5:r=a.memoizedProps}e[nt]=t,e=!!(e.nodeValue===n||r!==null&&!0===r.suppressHydrationWarning||zd(e.nodeValue,n)),e||Pi(t,!0)}else e=Jd(e).createTextNode(r),e[nt]=t,t.stateNode=e}return Ic(t),null;case 31:if(n=t.memoizedState,e===null||e.memoizedState!==null){if(r=Li(t),n!==null){if(e===null){if(!r)throw Error(i(318));if(e=t.memoizedState,e=e===null?null:e.dehydrated,!e)throw Error(i(557));e[nt]=t}else Ri(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;Ic(t),e=!1}else n=zi(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=n),e=!0;if(!e)return t.flags&256?(ao(t),t):(ao(t),null);if(t.flags&128)throw Error(i(558))}return Ic(t),null;case 13:if(r=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(a=Li(t),r!==null&&r.dehydrated!==null){if(e===null){if(!a)throw Error(i(318));if(a=t.memoizedState,a=a===null?null:a.dehydrated,!a)throw Error(i(317));a[nt]=t}else Ri(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;Ic(t),a=!1}else a=zi(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=a),a=!0;if(!a)return t.flags&256?(ao(t),t):(ao(t),null)}return ao(t),t.flags&128?(t.lanes=n,t):(n=r!==null,e=e!==null&&e.memoizedState!==null,n&&(r=t.child,a=null,r.alternate!==null&&r.alternate.memoizedState!==null&&r.alternate.memoizedState.cachePool!==null&&(a=r.alternate.memoizedState.cachePool.pool),o=null,r.memoizedState!==null&&r.memoizedState.cachePool!==null&&(o=r.memoizedState.cachePool.pool),o!==a&&(r.flags|=2048)),n!==e&&n&&(t.child.flags|=8192),Pc(t,t.updateQueue),Ic(t),null);case 4:return ce(),e===null&&kd(t.stateNode.containerInfo),Ic(t),null;case 10:return Gi(t.type),Ic(t),null;case 19:if(L(oo),r=t.memoizedState,r===null)return Ic(t),null;if(a=(t.flags&128)!=0,o=r.rendering,o===null)if(a)Fc(r,!1);else{if(Yl!==0||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(o=so(e),o!==null){for(t.flags|=128,Fc(r,!1),e=o.updateQueue,t.updateQueue=e,Pc(t,e),t.subtreeFlags=0,e=n,n=t.child;n!==null;)oi(n,e),n=n.sibling;return R(oo,oo.current&1|2),Ai&&Ci(t,r.treeForkCount),t.child}e=e.sibling}r.tail!==null&&xe()>ou&&(t.flags|=128,a=!0,Fc(r,!1),t.lanes=4194304)}else{if(!a)if(e=so(o),e!==null){if(t.flags|=128,a=!0,e=e.updateQueue,t.updateQueue=e,Pc(t,e),Fc(r,!0),r.tail===null&&r.tailMode===`hidden`&&!o.alternate&&!Ai)return Ic(t),null}else 2*xe()-r.renderingStartTime>ou&&n!==536870912&&(t.flags|=128,a=!0,Fc(r,!1),t.lanes=4194304);r.isBackwards?(o.sibling=t.child,t.child=o):(e=r.last,e===null?t.child=o:e.sibling=o,r.last=o)}return r.tail===null?(Ic(t),null):(e=r.tail,r.rendering=e,r.tail=e.sibling,r.renderingStartTime=xe(),e.sibling=null,n=oo.current,R(oo,a?n&1|2:n&1),Ai&&Ci(t,r.treeForkCount),e);case 22:case 23:return ao(t),Qa(),r=t.memoizedState!==null,e===null?r&&(t.flags|=8192):e.memoizedState!==null!==r&&(t.flags|=8192),r?n&536870912&&!(t.flags&128)&&(Ic(t),t.subtreeFlags&6&&(t.flags|=8192)):Ic(t),n=t.updateQueue,n!==null&&Pc(t,n.retryQueue),n=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(n=e.memoizedState.cachePool.pool),r=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(r=t.memoizedState.cachePool.pool),r!==n&&(t.flags|=2048),e!==null&&L(ma),null;case 24:return n=null,e!==null&&(n=e.memoizedState.cache),t.memoizedState.cache!==n&&(t.flags|=2048),Gi(ra),Ic(t),null;case 25:return null;case 30:return null}throw Error(i(156,t.tag))}function Rc(e,t){switch(Ei(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Gi(ra),ce(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return ue(t),null;case 31:if(t.memoizedState!==null){if(ao(t),t.alternate===null)throw Error(i(340));Ri()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 13:if(ao(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(i(340));Ri()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return L(oo),null;case 4:return ce(),null;case 10:return Gi(t.type),null;case 22:case 23:return ao(t),Qa(),e!==null&&L(ma),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return Gi(ra),null;case 25:return null;default:return null}}function zc(e,t){switch(Ei(t),t.tag){case 3:Gi(ra),ce();break;case 26:case 27:case 5:ue(t);break;case 4:ce();break;case 31:t.memoizedState!==null&&ao(t);break;case 13:ao(t);break;case 19:L(oo);break;case 10:Gi(t.type);break;case 22:case 23:ao(t),Qa(),e!==null&&L(ma);break;case 24:Gi(ra)}}function Bc(e,t){try{var n=t.updateQueue,r=n===null?null:n.lastEffect;if(r!==null){var i=r.next;n=i;do{if((n.tag&e)===e){r=void 0;var a=n.create,o=n.inst;r=a(),o.destroy=r}n=n.next}while(n!==i)}}catch(e){Zu(t,t.return,e)}}function Vc(e,t,n){try{var r=t.updateQueue,i=r===null?null:r.lastEffect;if(i!==null){var a=i.next;r=a;do{if((r.tag&e)===e){var o=r.inst,s=o.destroy;if(s!==void 0){o.destroy=void 0,i=t;var c=n,l=s;try{l()}catch(e){Zu(i,c,e)}}}r=r.next}while(r!==a)}}catch(e){Zu(t,t.return,e)}}function Hc(e){var t=e.updateQueue;if(t!==null){var n=e.stateNode;try{qa(t,n)}catch(t){Zu(e,e.return,t)}}}function Uc(e,t,n){n.props=Ws(e.type,e.memoizedProps),n.state=e.memoizedState;try{n.componentWillUnmount()}catch(n){Zu(e,t,n)}}function Wc(e,t){try{var n=e.ref;if(n!==null){switch(e.tag){case 26:case 27:case 5:var r=e.stateNode;break;case 30:r=e.stateNode;break;default:r=e.stateNode}typeof n==`function`?e.refCleanup=n(r):n.current=r}}catch(n){Zu(e,t,n)}}function Gc(e,t){var n=e.ref,r=e.refCleanup;if(n!==null)if(typeof r==`function`)try{r()}catch(n){Zu(e,t,n)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof n==`function`)try{n(null)}catch(n){Zu(e,t,n)}else n.current=null}function Kc(e){var t=e.type,n=e.memoizedProps,r=e.stateNode;try{a:switch(t){case`button`:case`input`:case`select`:case`textarea`:n.autoFocus&&r.focus();break a;case`img`:n.src?r.src=n.src:n.srcSet&&(r.srcset=n.srcSet)}}catch(t){Zu(e,e.return,t)}}function qc(e,t,n){try{var r=e.stateNode;Ud(r,e.type,n,t),r[rt]=t}catch(t){Zu(e,e.return,t)}}function Jc(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&of(e.type)||e.tag===4}function Yc(e){a:for(;;){for(;e.sibling===null;){if(e.return===null||Jc(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&&of(e.type)||e.flags&2||e.child===null||e.tag===4)continue a;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function Xc(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?(n.nodeType===9?n.body:n.nodeName===`HTML`?n.ownerDocument.body:n).insertBefore(e,t):(t=n.nodeType===9?n.body:n.nodeName===`HTML`?n.ownerDocument.body:n,t.appendChild(e),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=Yt));else if(r!==4&&(r===27&&of(e.type)&&(n=e.stateNode,t=null),e=e.child,e!==null))for(Xc(e,t,n),e=e.sibling;e!==null;)Xc(e,t,n),e=e.sibling}function Zc(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(r!==4&&(r===27&&of(e.type)&&(n=e.stateNode),e=e.child,e!==null))for(Zc(e,t,n),e=e.sibling;e!==null;)Zc(e,t,n),e=e.sibling}function Qc(e){var t=e.stateNode,n=e.memoizedProps;try{for(var r=e.type,i=t.attributes;i.length;)t.removeAttributeNode(i[0]);Hd(t,r,n),t[nt]=e,t[rt]=n}catch(t){Zu(e,e.return,t)}}var $c=!1,el=!1,tl=!1,nl=typeof WeakSet==`function`?WeakSet:Set,rl=null;function il(e,t){if(e=e.containerInfo,Kd=mp,e=Cr(e),wr(e)){if(`selectionStart`in e)var n={start:e.selectionStart,end:e.selectionEnd};else a:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var a=r.anchorOffset,o=r.focusNode;r=r.focusOffset;try{n.nodeType,o.nodeType}catch{n=null;break a}var s=0,c=-1,l=-1,u=0,d=0,f=e,p=null;b:for(;;){for(var m;f!==n||a!==0&&f.nodeType!==3||(c=s+a),f!==o||r!==0&&f.nodeType!==3||(l=s+r),f.nodeType===3&&(s+=f.nodeValue.length),(m=f.firstChild)!==null;)p=f,f=m;for(;;){if(f===e)break b;if(p===n&&++u===a&&(c=s),p===o&&++d===r&&(l=s),(m=f.nextSibling)!==null)break;f=p,p=f.parentNode}f=m}n=c===-1||l===-1?null:{start:c,end:l}}else n=null}n||={start:0,end:0}}else n=null;for(qd={focusedElem:e,selectionRange:n},mp=!1,rl=t;rl!==null;)if(t=rl,e=t.child,t.subtreeFlags&1028&&e!==null)e.return=t,rl=e;else for(;rl!==null;){switch(t=rl,o=t.alternate,e=t.flags,t.tag){case 0:if(e&4&&(e=t.updateQueue,e=e===null?null:e.events,e!==null))for(n=0;n<e.length;n++)a=e[n],a.ref.impl=a.nextImpl;break;case 11:case 15:break;case 1:if(e&1024&&o!==null){e=void 0,n=t,a=o.memoizedProps,o=o.memoizedState,r=n.stateNode;try{var h=Ws(n.type,a);e=r.getSnapshotBeforeUpdate(h,o),r.__reactInternalSnapshotBeforeUpdate=e}catch(e){Zu(n,n.return,e)}}break;case 3:if(e&1024){if(e=t.stateNode.containerInfo,n=e.nodeType,n===9)lf(e);else if(n===1)switch(e.nodeName){case`HEAD`:case`HTML`:case`BODY`:lf(e);break;default:e.textContent=``}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if(e&1024)throw Error(i(163))}if(e=t.sibling,e!==null){e.return=t.return,rl=e;break}rl=t.return}}function al(e,t,n){var r=n.flags;switch(n.tag){case 0:case 11:case 15:bl(e,n),r&4&&Bc(5,n);break;case 1:if(bl(e,n),r&4)if(e=n.stateNode,t===null)try{e.componentDidMount()}catch(e){Zu(n,n.return,e)}else{var i=Ws(n.type,t.memoizedProps);t=t.memoizedState;
vendor: 5,412 bytes, line 9
9try{e.componentDidUpdate(i,t,e.__reactInternalSnapshotBeforeUpdate)}catch(e){Zu(n,n.return,e)}}r&64&&Hc(n),r&512&&Wc(n,n.return);break;case 3:if(bl(e,n),r&64&&(e=n.updateQueue,e!==null)){if(t=null,n.child!==null)switch(n.child.tag){case 27:case 5:t=n.child.stateNode;break;case 1:t=n.child.stateNode}try{qa(e,t)}catch(e){Zu(n,n.return,e)}}break;case 27:t===null&&r&4&&Qc(n);case 26:case 5:bl(e,n),t===null&&r&4&&Kc(n),r&512&&Wc(n,n.return);break;case 12:bl(e,n);break;case 31:bl(e,n),r&4&&dl(e,n);break;case 13:bl(e,n),r&4&&fl(e,n),r&64&&(e=n.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(n=td.bind(null,n),hf(e,n))));break;case 22:if(r=n.memoizedState!==null||$c,!r){t=t!==null&&t.memoizedState!==null||el,i=$c;var a=el;$c=r,(el=t)&&!a?Sl(e,n,(n.subtreeFlags&8772)!=0):bl(e,n),$c=i,el=a}break;case 30:break;default:bl(e,n)}}function ol(e){var t=e.alternate;t!==null&&(e.alternate=null,ol(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&ut(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 sl=null,cl=!1;function ll(e,t,n){for(n=n.child;n!==null;)ul(e,t,n),n=n.sibling}function ul(e,t,n){if(je&&typeof je.onCommitFiberUnmount==`function`)try{je.onCommitFiberUnmount(Ae,n)}catch{}switch(n.tag){case 26:el||Gc(n,t),ll(e,t,n),n.memoizedState?n.memoizedState.count--:n.stateNode&&(n=n.stateNode,n.parentNode.removeChild(n));break;case 27:el||Gc(n,t);var r=sl,i=cl;of(n.type)&&(sl=n.stateNode,cl=!1),ll(e,t,n),xf(n.stateNode),sl=r,cl=i;break;case 5:el||Gc(n,t);case 6:if(r=sl,i=cl,sl=null,ll(e,t,n),sl=r,cl=i,sl!==null)if(cl)try{(sl.nodeType===9?sl.body:sl.nodeName===`HTML`?sl.ownerDocument.body:sl).removeChild(n.stateNode)}catch(e){Zu(n,t,e)}else try{sl.removeChild(n.stateNode)}catch(e){Zu(n,t,e)}break;case 18:sl!==null&&(cl?(e=sl,sf(e.nodeType===9?e.body:e.nodeName===`HTML`?e.ownerDocument.body:e,n.stateNode),Bp(e)):sf(sl,n.stateNode));break;case 4:r=sl,i=cl,sl=n.stateNode.containerInfo,cl=!0,ll(e,t,n),sl=r,cl=i;break;case 0:case 11:case 14:case 15:Vc(2,n,t),el||Vc(4,n,t),ll(e,t,n);break;case 1:el||(Gc(n,t),r=n.stateNode,typeof r.componentWillUnmount==`function`&&Uc(n,t,r)),ll(e,t,n);break;case 21:ll(e,t,n);break;case 22:el=(r=el)||n.memoizedState!==null,ll(e,t,n),el=r;break;default:ll(e,t,n)}}function dl(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null))){e=e.dehydrated;try{Bp(e)}catch(e){Zu(t,t.return,e)}}}function fl(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{Bp(e)}catch(e){Zu(t,t.return,e)}}function pl(e){switch(e.tag){case 31:case 13:case 19:var t=e.stateNode;return t===null&&(t=e.stateNode=new nl),t;case 22:return e=e.stateNode,t=e._retryCache,t===null&&(t=e._retryCache=new nl),t;default:throw Error(i(435,e.tag))}}function ml(e,t){var n=pl(e);t.forEach(function(t){if(!n.has(t)){n.add(t);var r=nd.bind(null,e,t);t.then(r,r)}})}function hl(e,t){var n=t.deletions;if(n!==null)for(var r=0;r<n.length;r++){var a=n[r],o=e,s=t,c=s;a:for(;c!==null;){switch(c.tag){case 27:if(of(c.type)){sl=c.stateNode,cl=!1;break a}break;case 5:sl=c.stateNode,cl=!1;break a;case 3:case 4:sl=c.stateNode.containerInfo,cl=!0;break a}c=c.return}if(sl===null)throw Error(i(160));ul(o,s,a),sl=null,cl=!1,o=a.alternate,o!==null&&(o.return=null),a.return=null}if(t.subtreeFlags&13886)for(t=t.child;t!==null;)_l(t,e),t=t.sibling}var gl=null;function _l(e,t){var n=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:hl(t,e),vl(e),r&4&&(Vc(3,e,e.return),Bc(3,e),Vc(5,e,e.return));break;case 1:hl(t,e),vl(e),r&512&&(el||n===null||Gc(n,n.return)),r&64&&$c&&(e=e.updateQueue,e!==null&&(r=e.callbacks,r!==null&&(n=e.shared.hiddenCallbacks,e.shared.hiddenCallbacks=n===null?r:n.concat(r))));break;case 26:var a=gl;if(hl(t,e),vl(e),r&512&&(el||n===null||Gc(n,n.return)),r&4){var o=n===null?null:n.memoizedState;if(r=e.memoizedState,n===null)if(r===null)if(e.stateNode===null){a:{r=e.type,n=e.memoizedProps,a=a.ownerDocument||a;b:switch(r){case`title`:o=a.getElementsByTagName(`title`)[0],(!o||o[lt]||o[nt]||o.namespaceURI===`http://www.w3.org/2000/svg`||o.hasAttribute(`itemprop`))&&(o=a.createElement(r),a.head.insertBefore(o,a.querySelector(`head > title`))),Hd(o,r,n),o[nt]=e,ht(o),r=o;break a;case`link`:var s=Jf(`link`,`href`,a).get(r+(n.href||``));if(s){for(var c=0;c<s.length;c++)if(o=s[c],o.getAttribute(`href`)===(n.href==null||n.href===``?null:n.href)&&o.getAttribute(`rel`)===(n.rel==null?null:n.rel)&&o.getAttribute(`title`)===(n.title==null?null:n.title)&&o.getAttribute(`crossorigin`)===(n.crossOrigin==null?null:n.crossOrigin)){s.splice(c,1);break b}}o=a.createElement(r),Hd(o,r,n),a.head.appendChild(o);break;case`meta`:if(s=Jf(`meta`,`content`,a).get(r+(n.content||``))){for(c=0;c<s.length;c++)if(o=s[c],o.getAttribute(`content`)===(n.content==null?null:``+n.content)&&o.getAttribute(`name`)===(n.name==null?null:n.name)&&o.getAttribute(`property`)===(n.property==null?null:n.property)&&o.getAttribute(`http-equiv`)===(n.httpEquiv==null?null:n.httpEquiv)&&o.getAttribute(`charset`)===(n.charSet==null?null:n.charSet)){s.splice(c,1);break b}}o=a.createElement(r),Hd(o,r,n),a.head.appendChild(o);break;default:throw Error(i(468,r))}o[nt]=e,ht(o),r=o}e.stateNode=r}else Yf(a,e.type,e.stateNode);else e.stateNode=Uf(a,r,e.memoizedProps);
vendor: 19,240 bytes, line 9
9else o===r?r===null&&e.stateNode!==null&&qc(e,e.memoizedProps,n.memoizedProps):(o===null?n.stateNode!==null&&(n=n.stateNode,n.parentNode.removeChild(n)):o.count--,r===null?Yf(a,e.type,e.stateNode):Uf(a,r,e.memoizedProps))}break;case 27:hl(t,e),vl(e),r&512&&(el||n===null||Gc(n,n.return)),n!==null&&r&4&&qc(e,e.memoizedProps,n.memoizedProps);break;case 5:if(hl(t,e),vl(e),r&512&&(el||n===null||Gc(n,n.return)),e.flags&32){a=e.stateNode;try{Vt(a,``)}catch(t){Zu(e,e.return,t)}}r&4&&e.stateNode!=null&&(a=e.memoizedProps,qc(e,a,n===null?a:n.memoizedProps)),r&1024&&(tl=!0);break;case 6:if(hl(t,e),vl(e),r&4){if(e.stateNode===null)throw Error(i(162));r=e.memoizedProps,n=e.stateNode;try{n.nodeValue=r}catch(t){Zu(e,e.return,t)}}break;case 3:if(qf=null,a=gl,gl=Cf(t.containerInfo),hl(t,e),gl=a,vl(e),r&4&&n!==null&&n.memoizedState.isDehydrated)try{Bp(t.containerInfo)}catch(t){Zu(e,e.return,t)}tl&&(tl=!1,yl(e));break;case 4:r=gl,gl=Cf(e.stateNode.containerInfo),hl(t,e),vl(e),gl=r;break;case 12:hl(t,e),vl(e);break;case 31:hl(t,e),vl(e),r&4&&(r=e.updateQueue,r!==null&&(e.updateQueue=null,ml(e,r)));break;case 13:hl(t,e),vl(e),e.child.flags&8192&&e.memoizedState!==null!=(n!==null&&n.memoizedState!==null)&&(iu=xe()),r&4&&(r=e.updateQueue,r!==null&&(e.updateQueue=null,ml(e,r)));break;case 22:a=e.memoizedState!==null;var l=n!==null&&n.memoizedState!==null,u=$c,d=el;if($c=u||a,el=d||l,hl(t,e),el=d,$c=u,vl(e),r&8192)a:for(t=e.stateNode,t._visibility=a?t._visibility&-2:t._visibility|1,a&&(n===null||l||$c||el||xl(e)),n=null,t=e;;){if(t.tag===5||t.tag===26){if(n===null){l=n=t;try{if(o=l.stateNode,a)s=o.style,typeof s.setProperty==`function`?s.setProperty(`display`,`none`,`important`):s.display=`none`;else{c=l.stateNode;var f=l.memoizedProps.style,p=f!=null&&f.hasOwnProperty(`display`)?f.display:null;c.style.display=p==null||typeof p==`boolean`?``:(``+p).trim()}}catch(e){Zu(l,l.return,e)}}}else if(t.tag===6){if(n===null){l=t;try{l.stateNode.nodeValue=a?``:l.memoizedProps}catch(e){Zu(l,l.return,e)}}}else if(t.tag===18){if(n===null){l=t;try{var m=l.stateNode;a?cf(m,!0):cf(l.stateNode,!1)}catch(e){Zu(l,l.return,e)}}}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 a;for(;t.sibling===null;){if(t.return===null||t.return===e)break a;n===t&&(n=null),t=t.return}n===t&&(n=null),t.sibling.return=t.return,t=t.sibling}r&4&&(r=e.updateQueue,r!==null&&(n=r.retryQueue,n!==null&&(r.retryQueue=null,ml(e,n))));break;case 19:hl(t,e),vl(e),r&4&&(r=e.updateQueue,r!==null&&(e.updateQueue=null,ml(e,r)));break;case 30:break;case 21:break;default:hl(t,e),vl(e)}}function vl(e){var t=e.flags;if(t&2){try{for(var n,r=e.return;r!==null;){if(Jc(r)){n=r;break}r=r.return}if(n==null)throw Error(i(160));switch(n.tag){case 27:var a=n.stateNode;Zc(e,Yc(e),a);break;case 5:var o=n.stateNode;n.flags&32&&(Vt(o,``),n.flags&=-33),Zc(e,Yc(e),o);break;case 3:case 4:var s=n.stateNode.containerInfo;Xc(e,Yc(e),s);break;default:throw Error(i(161))}}catch(t){Zu(e,e.return,t)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function yl(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var t=e;yl(t),t.tag===5&&t.flags&1024&&t.stateNode.reset(),e=e.sibling}}function bl(e,t){if(t.subtreeFlags&8772)for(t=t.child;t!==null;)al(e,t.alternate,t),t=t.sibling}function xl(e){for(e=e.child;e!==null;){var t=e;switch(t.tag){case 0:case 11:case 14:case 15:Vc(4,t,t.return),xl(t);break;case 1:Gc(t,t.return);var n=t.stateNode;typeof n.componentWillUnmount==`function`&&Uc(t,t.return,n),xl(t);break;case 27:xf(t.stateNode);case 26:case 5:Gc(t,t.return),xl(t);break;case 22:t.memoizedState===null&&xl(t);break;case 30:xl(t);break;default:xl(t)}e=e.sibling}}function Sl(e,t,n){for(n&&=(t.subtreeFlags&8772)!=0,t=t.child;t!==null;){var r=t.alternate,i=e,a=t,o=a.flags;switch(a.tag){case 0:case 11:case 15:Sl(i,a,n),Bc(4,a);break;case 1:if(Sl(i,a,n),r=a,i=r.stateNode,typeof i.componentDidMount==`function`)try{i.componentDidMount()}catch(e){Zu(r,r.return,e)}if(r=a,i=r.updateQueue,i!==null){var s=r.stateNode;try{var c=i.shared.hiddenCallbacks;if(c!==null)for(i.shared.hiddenCallbacks=null,i=0;i<c.length;i++)Ka(c[i],s)}catch(e){Zu(r,r.return,e)}}n&&o&64&&Hc(a),Wc(a,a.return);break;case 27:Qc(a);case 26:case 5:Sl(i,a,n),n&&r===null&&o&4&&Kc(a),Wc(a,a.return);break;case 12:Sl(i,a,n);break;case 31:Sl(i,a,n),n&&o&4&&dl(i,a);break;case 13:Sl(i,a,n),n&&o&4&&fl(i,a);break;case 22:a.memoizedState===null&&Sl(i,a,n),Wc(a,a.return);break;case 30:break;default:Sl(i,a,n)}t=t.sibling}}function Cl(e,t){var n=null;e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(n=e.memoizedState.cachePool.pool),e=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(e=t.memoizedState.cachePool.pool),e!==n&&(e!=null&&e.refCount++,n!=null&&aa(n))}function wl(e,t){e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&aa(e))}function Tl(e,t,n,r){if(t.subtreeFlags&10256)for(t=t.child;t!==null;)El(e,t,n,r),t=t.sibling}function El(e,t,n,r){var i=t.flags;switch(t.tag){case 0:case 11:case 15:Tl(e,t,n,r),i&2048&&Bc(9,t);break;case 1:Tl(e,t,n,r);break;case 3:Tl(e,t,n,r),i&2048&&(e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&aa(e)));break;case 12:if(i&2048){Tl(e,t,n,r),e=t.stateNode;try{var a=t.memoizedProps,o=a.id,s=a.onPostCommit;typeof s==`function`&&s(o,t.alternate===null?`mount`:`update`,e.passiveEffectDuration,-0)}catch(e){Zu(t,t.return,e)}}else Tl(e,t,n,r);break;case 31:Tl(e,t,n,r);break;case 13:Tl(e,t,n,r);break;case 23:break;case 22:a=t.stateNode,o=t.alternate,t.memoizedState===null?a._visibility&2?Tl(e,t,n,r):(a._visibility|=2,Dl(e,t,n,r,(t.subtreeFlags&10256)!=0||!1)):a._visibility&2?Tl(e,t,n,r):Ol(e,t),i&2048&&Cl(o,t);break;case 24:Tl(e,t,n,r),i&2048&&wl(t.alternate,t);break;default:Tl(e,t,n,r)}}function Dl(e,t,n,r,i){for(i&&=(t.subtreeFlags&10256)!=0||!1,t=t.child;t!==null;){var a=e,o=t,s=n,c=r,l=o.flags;switch(o.tag){case 0:case 11:case 15:Dl(a,o,s,c,i),Bc(8,o);break;case 23:break;case 22:var u=o.stateNode;o.memoizedState===null?(u._visibility|=2,Dl(a,o,s,c,i)):u._visibility&2?Dl(a,o,s,c,i):Ol(a,o),i&&l&2048&&Cl(o.alternate,o);break;case 24:Dl(a,o,s,c,i),i&&l&2048&&wl(o.alternate,o);break;default:Dl(a,o,s,c,i)}t=t.sibling}}function Ol(e,t){if(t.subtreeFlags&10256)for(t=t.child;t!==null;){var n=e,r=t,i=r.flags;switch(r.tag){case 22:Ol(n,r),i&2048&&Cl(r.alternate,r);break;case 24:Ol(n,r),i&2048&&wl(r.alternate,r);break;default:Ol(n,r)}t=t.sibling}}var kl=8192;function Al(e,t,n){if(e.subtreeFlags&kl)for(e=e.child;e!==null;)jl(e,t,n),e=e.sibling}function jl(e,t,n){switch(e.tag){case 26:Al(e,t,n),e.flags&kl&&e.memoizedState!==null&&Qf(n,gl,e.memoizedState,e.memoizedProps);break;case 5:Al(e,t,n);break;case 3:case 4:var r=gl;gl=Cf(e.stateNode.containerInfo),Al(e,t,n),gl=r;break;case 22:e.memoizedState===null&&(r=e.alternate,r!==null&&r.memoizedState!==null?(r=kl,kl=16777216,Al(e,t,n),kl=r):Al(e,t,n));break;default:Al(e,t,n)}}function Ml(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 Nl(e){var t=e.deletions;if(e.flags&16){if(t!==null)for(var n=0;n<t.length;n++){var r=t[n];rl=r,Il(r,e)}Ml(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)Pl(e),e=e.sibling}function Pl(e){switch(e.tag){case 0:case 11:case 15:Nl(e),e.flags&2048&&Vc(9,e,e.return);break;case 3:Nl(e);break;case 12:Nl(e);break;case 22:var t=e.stateNode;e.memoizedState!==null&&t._visibility&2&&(e.return===null||e.return.tag!==13)?(t._visibility&=-3,Fl(e)):Nl(e);break;default:Nl(e)}}function Fl(e){var t=e.deletions;if(e.flags&16){if(t!==null)for(var n=0;n<t.length;n++){var r=t[n];rl=r,Il(r,e)}Ml(e)}for(e=e.child;e!==null;){switch(t=e,t.tag){case 0:case 11:case 15:Vc(8,t,t.return),Fl(t);break;case 22:n=t.stateNode,n._visibility&2&&(n._visibility&=-3,Fl(t));break;default:Fl(t)}e=e.sibling}}function Il(e,t){for(;rl!==null;){var n=rl;switch(n.tag){case 0:case 11:case 15:Vc(8,n,t);break;case 23:case 22:if(n.memoizedState!==null&&n.memoizedState.cachePool!==null){var r=n.memoizedState.cachePool.pool;r!=null&&r.refCount++}break;case 24:aa(n.memoizedState.cache)}if(r=n.child,r!==null)r.return=n,rl=r;else a:for(n=e;rl!==null;){r=rl;var i=r.sibling,a=r.return;if(ol(r),r===n){rl=null;break a}if(i!==null){i.return=a,rl=i;break a}rl=a}}}var Ll={getCacheForType:function(e){var t=Zi(ra),n=t.data.get(e);return n===void 0&&(n=e(),t.data.set(e,n)),n},cacheSignal:function(){return Zi(ra).controller.signal}},Rl=typeof WeakMap==`function`?WeakMap:Map,zl=0,Bl=null,Vl=null,Hl=0,Ul=0,Wl=null,Gl=!1,Kl=!1,ql=!1,Jl=0,Yl=0,Xl=0,Zl=0,Ql=0,$l=0,eu=0,tu=null,nu=null,ru=!1,iu=0,au=0,ou=1/0,su=null,cu=null,lu=0,uu=null,du=null,fu=0,pu=0,mu=null,hu=null,gu=0,_u=null;function vu(){return zl&2&&Hl!==0?Hl&-Hl:P.T===null?$e():vd()}function yu(){if($l===0)if(!(Hl&536870912)||Ai){var e=Re;Re<<=1,!(Re&3932160)&&(Re=262144),$l=e}else $l=536870912;return e=$a.current,e!==null&&(e.flags|=32),$l}function bu(e,t,n){(e===Bl&&(Ul===2||Ul===9)||e.cancelPendingCommit!==null)&&(Ou(e,0),Tu(e,Hl,$l,!1)),Ke(e,n),(!(zl&2)||e!==Bl)&&(e===Bl&&(!(zl&2)&&(Zl|=n),Yl===4&&Tu(e,Hl,$l,!1)),ud(e))}function xu(e,t,n){if(zl&6)throw Error(i(327));var r=!n&&(t&127)==0&&(t&e.expiredLanes)===0||He(e,t),a=r?Iu(e,t):Pu(e,t,!0),o=r;do{if(a===0){Kl&&!r&&Tu(e,t,0,!1);break}else{if(n=e.current.alternate,o&&!wu(n)){a=Pu(e,t,!1),o=!1;continue}if(a===2){if(o=t,e.errorRecoveryDisabledLanes&o)var s=0;else s=e.pendingLanes&-536870913,s=s===0?s&536870912?536870912:0:s;if(s!==0){t=s;a:{var c=e;a=tu;var l=c.current.memoizedState.isDehydrated;if(l&&(Ou(c,s).flags|=256),s=Pu(c,s,!1),s!==2){if(ql&&!l){c.errorRecoveryDisabledLanes|=o,Zl|=o,a=4;break a}o=nu,nu=a,o!==null&&(nu===null?nu=o:nu.push.apply(nu,o))}a=s}if(o=!1,a!==2)continue}}if(a===1){Ou(e,0),Tu(e,t,0,!0);break}a:{switch(r=e,o=a,o){case 0:case 1:throw Error(i(345));case 4:if((t&4194048)!==t)break;case 6:Tu(r,t,$l,!Gl);break a;case 2:nu=null;break;case 3:case 5:break;default:throw Error(i(329))}if((t&62914560)===t&&(a=iu+300-xe(),10<a)){if(Tu(r,t,$l,!Gl),Ve(r,0,!0)!==0)break a;fu=t,r.timeoutHandle=ef(Cu.bind(null,r,n,nu,su,ru,t,$l,Zl,eu,Gl,o,`Throttled`,-0,0),a);break a}Cu(r,n,nu,su,ru,t,$l,Zl,eu,Gl,o,null,-0,0)}}break}while(1);ud(e)}function Cu(e,t,n,r,i,a,o,s,c,l,u,d,f,p){if(e.timeoutHandle=-1,d=t.subtreeFlags,d&8192||(d&16785408)==16785408){d={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:Yt},jl(t,a,d);var m=(a&62914560)===a?iu-xe():(a&4194048)===a?au-xe():0;if(m=ep(d,m),m!==null){fu=a,e.cancelPendingCommit=m(Uu.bind(null,e,t,a,n,r,i,o,s,c,u,d,null,f,p)),Tu(e,a,o,!l);return}}Uu(e,t,a,n,r,i,o,s,c)}function wu(e){for(var t=e;;){var n=t.tag;if((n===0||n===11||n===15)&&t.flags&16384&&(n=t.updateQueue,n!==null&&(n=n.stores,n!==null)))for(var r=0;r<n.length;r++){var i=n[r],a=i.getSnapshot;i=i.value;try{if(!vr(a(),i))return!1}catch{return!1}}if(n=t.child,t.subtreeFlags&16384&&n!==null)n.return=t,t=n;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 Tu(e,t,n,r){t&=~Ql,t&=~Zl,e.suspendedLanes|=t,e.pingedLanes&=~t,r&&(e.warmLanes|=t),r=e.expirationTimes;for(var i=t;0<i;){var a=31-Ne(i),o=1<<a;r[a]=-1,i&=~o}n!==0&&Je(e,n,t)}function Eu(){return zl&6?!0:(dd(0,!1),!1)}function Du(){if(Vl!==null){if(Ul===0)var e=Vl.return;else e=Vl,Ui=Hi=null,Do(e),Oa=null,ka=0,e=Vl;for(;e!==null;)zc(e.alternate,e),e=e.return;Vl=null}}function Ou(e,t){var n=e.timeoutHandle;n!==-1&&(e.timeoutHandle=-1,tf(n)),n=e.cancelPendingCommit,n!==null&&(e.cancelPendingCommit=null,n()),fu=0,Du(),Bl=e,Vl=n=ai(e.current,null),Hl=t,Ul=0,Wl=null,Gl=!1,Kl=He(e,t),ql=!1,eu=$l=Ql=Zl=Xl=Yl=0,nu=tu=null,ru=!1,t&8&&(t|=t&32);var r=e.entangledLanes;if(r!==0)for(e=e.entanglements,r&=t;0<r;){var i=31-Ne(r),a=1<<i;t|=e[i],r&=~a}return Jl=t,Xr(),n}function ku(e,t){W=null,P.H=Is,t===va||t===ba?(t=Ea(),Ul=3):t===ya?(t=Ea(),Ul=4):Ul=t===ec?8:typeof t==`object`&&t&&typeof t.then==`function`?6:1,Wl=t,Vl===null&&(Yl=1,Js(e,pi(t,e.current)))}function Au(){var e=$a.current;return e===null?!0:(Hl&4194048)===Hl?eo===null:(Hl&62914560)===Hl||Hl&536870912?e===eo:!1}function ju(){var e=P.H;return P.H=Is,e===null?Is:e}function Mu(){var e=P.A;return P.A=Ll,e}function Nu(){Yl=4,Gl||(Hl&4194048)!==Hl&&$a.current!==null||(Kl=!0),!(Xl&134217727)&&!(Zl&134217727)||Bl===null||Tu(Bl,Hl,$l,!1)}function Pu(e,t,n){var r=zl;zl|=2;var i=ju(),a=Mu();(Bl!==e||Hl!==t)&&(su=null,Ou(e,t)),t=!1;var o=Yl;a:do try{if(Ul!==0&&Vl!==null){var s=Vl,c=Wl;switch(Ul){case 8:Du(),o=6;break a;case 3:case 2:case 9:case 6:$a.current===null&&(t=!0);var l=Ul;if(Ul=0,Wl=null,Bu(e,s,c,l),n&&Kl){o=0;break a}break;default:l=Ul,Ul=0,Wl=null,Bu(e,s,c,l)}}Fu(),o=Yl;break}catch(t){ku(e,t)}while(1);return t&&e.shellSuspendCounter++,Ui=Hi=null,zl=r,P.H=i,P.A=a,Vl===null&&(Bl=null,Hl=0,Xr()),o}function Fu(){for(;Vl!==null;)Ru(Vl)}function Iu(e,t){var n=zl;zl|=2;var r=ju(),a=Mu();Bl!==e||Hl!==t?(su=null,ou=xe()+500,Ou(e,t)):Kl=He(e,t);a:do try{if(Ul!==0&&Vl!==null){t=Vl;var o=Wl;b:switch(Ul){case 1:Ul=0,Wl=null,Bu(e,t,o,1);break;case 2:case 9:if(Sa(o)){Ul=0,Wl=null,zu(t);break}t=function(){Ul!==2&&Ul!==9||Bl!==e||(Ul=7),ud(e)},o.then(t,t);break a;case 3:Ul=7;break a;case 4:Ul=5;break a;case 7:Sa(o)?(Ul=0,Wl=null,zu(t)):(Ul=0,Wl=null,Bu(e,t,o,7));break;case 5:var s=null;switch(Vl.tag){case 26:s=Vl.memoizedState;case 5:case 27:var c=Vl;if(s?Zf(s):c.stateNode.complete){Ul=0,Wl=null;var l=c.sibling;if(l!==null)Vl=l;else{var u=c.return;u===null?Vl=null:(Vl=u,Vu(u))}break b}}Ul=0,Wl=null,Bu(e,t,o,5);break;case 6:Ul=0,Wl=null,Bu(e,t,o,6);break;case 8:Du(),Yl=6;break a;default:throw Error(i(462))}}Lu();break}catch(t){ku(e,t)}while(1);return Ui=Hi=null,P.H=r,P.A=a,zl=n,Vl===null?(Bl=null,Hl=0,Xr(),Yl):0}function Lu(){for(;Vl!==null&&!be();)Ru(Vl)}function Ru(e){var t=Ac(e.alternate,e,Jl);e.memoizedProps=e.pendingProps,t===null?Vu(e):Vl=t}function zu(e){var t=e,n=t.alternate;switch(t.tag){case 15:case 0:t=mc(n,t,t.pendingProps,t.type,void 0,Hl);break;case 11:t=mc(n,t,t.pendingProps,t.type.render,t.ref,Hl);break;case 5:Do(t);default:zc(n,t),t=Vl=oi(t,Jl),t=Ac(n,t,Jl)}e.memoizedProps=e.pendingProps,t===null?Vu(e):Vl=t}function Bu(e,t,n,r){Ui=Hi=null,Do(t),Oa=null,ka=0;var i=t.return;try{if($s(e,i,t,n,Hl)){Yl=1,Js(e,pi(n,e.current)),Vl=null;return}}catch(t){if(i!==null)throw Vl=i,t;Yl=1,Js(e,pi(n,e.current)),Vl=null;return}t.flags&32768?(Ai||r===1?e=!0:Kl||Hl&536870912?e=!1:(Gl=e=!0,(r===2||r===9||r===3||r===6)&&(r=$a.current,r!==null&&r.tag===13&&(r.flags|=16384))),Hu(t,e)):Vu(t)}function Vu(e){var t=e;do{if(t.flags&32768){Hu(t,Gl);return}e=t.return;var n=Lc(t.alternate,t,Jl);if(n!==null){Vl=n;return}if(t=t.sibling,t!==null){Vl=t;return}Vl=t=e}while(t!==null);Yl===0&&(Yl=5)}function Hu(e,t){do{var n=Rc(e.alternate,e);if(n!==null){n.flags&=32767,Vl=n;return}if(n=e.return,n!==null&&(n.flags|=32768,n.subtreeFlags=0,n.deletions=null),!t&&(e=e.sibling,e!==null)){Vl=e;return}Vl=e=n}while(e!==null);Yl=6,Vl=null}function Uu(e,t,n,r,a,o,s,c,l){e.cancelPendingCommit=null;do Ju();while(lu!==0);if(zl&6)throw Error(i(327));if(t!==null){if(t===e.current)throw Error(i(177));if(o=t.lanes|t.childLanes,o|=Yr,qe(e,n,o,s,c,l),e===Bl&&(Vl=Bl=null,Hl=0),du=t,uu=e,fu=n,pu=o,mu=a,hu=r,t.subtreeFlags&10256||t.flags&10256?(e.callbackNode=null,e.callbackPriority=0,rd(Te,function(){return Yu(),null})):(e.callbackNode=null,e.callbackPriority=0),r=(t.flags&13878)!=0,t.subtreeFlags&13878||r){r=P.T,P.T=null,a=F.p,F.p=2,s=zl,zl|=4;try{il(e,t,n)}finally{zl=s,F.p=a,P.T=r}}lu=1,Wu(),Gu(),Ku()}}function Wu(){if(lu===1){lu=0;var e=uu,t=du,n=(t.flags&13878)!=0;if(t.subtreeFlags&13878||n){n=P.T,P.T=null;var r=F.p;F.p=2;var i=zl;zl|=4;try{_l(t,e);var a=qd,o=Cr(e.containerInfo),s=a.focusedElem,c=a.selectionRange;if(o!==s&&s&&s.ownerDocument&&Sr(s.ownerDocument.documentElement,s)){if(c!==null&&wr(s)){var l=c.start,u=c.end;if(u===void 0&&(u=l),`selectionStart`in s)s.selectionStart=l,s.selectionEnd=Math.min(u,s.value.length);else{var d=s.ownerDocument||document,f=d&&d.defaultView||window;if(f.getSelection){var p=f.getSelection(),m=s.textContent.length,h=Math.min(c.start,m),g=c.end===void 0?h:Math.min(c.end,m);!p.extend&&h>g&&(o=g,g=h,h=o);var _=xr(s,h),v=xr(s,g);if(_&&v&&(p.rangeCount!==1||p.anchorNode!==_.node||p.anchorOffset!==_.offset||p.focusNode!==v.node||p.focusOffset!==v.offset)){var y=d.createRange();y.setStart(_.node,_.offset),p.removeAllRanges(),h>g?(p.addRange(y),p.extend(v.node,v.offset)):(y.setEnd(v.node,v.offset),p.addRange(y))}}}}for(d=[],p=s;p=p.parentNode;)p.nodeType===1&&d.push({element:p,left:p.scrollLeft,top:p.scrollTop});for(typeof s.focus==`function`&&s.focus(),s=0;s<d.length;s++){var b=d[s];b.element.scrollLeft=b.left,b.element.scrollTop=b.top}}mp=!!Kd,qd=Kd=null}finally{zl=i,F.p=r,P.T=n}}e.current=t,lu=2}}function Gu(){if(lu===2){lu=0;var e=uu,t=du,n=(t.flags&8772)!=0;if(t.subtreeFlags&8772||n){n=P.T,P.T=null;var r=F.p;F.p=2;var i=zl;zl|=4;try{al(e,t.alternate,t)}finally{zl=i,F.p=r,P.T=n}}lu=3}}function Ku(){if(lu===4||lu===3){lu=0,H();var e=uu,t=du,n=fu,r=hu;t.subtreeFlags&10256||t.flags&10256?lu=5:(lu=0,du=uu=null,qu(e,e.pendingLanes));var i=e.pendingLanes;if(i===0&&(cu=null),Qe(n),t=t.stateNode,je&&typeof je.onCommitFiberRoot==`function`)try{je.onCommitFiberRoot(Ae,t,void 0,(t.current.flags&128)==128)}catch{}if(r!==null){t=P.T,i=F.p,F.p=2,P.T=null;try{for(var a=e.onRecoverableError,o=0;o<r.length;o++){var s=r[o];a(s.value,{componentStack:s.stack})}}finally{P.T=t,F.p=i}}fu&3&&Ju(),ud(e),i=e.pendingLanes,n&261930&&i&42?e===_u?gu++:(gu=0,_u=e):gu=0,dd(0,!1)}}function qu(e,t){(e.pooledCacheLanes&=t)===0&&(t=e.pooledCache,t!=null&&(e.pooledCache=null,aa(t)))}function Ju(){return Wu(),Gu(),Ku(),Yu()}function Yu(){if(lu!==5)return!1;var e=uu,t=pu;pu=0;var n=Qe(fu),r=P.T,a=F.p;try{F.p=32>n?32:n,P.T=null,n=mu,mu=null;var o=uu,s=fu;if(lu=0,du=uu=null,fu=0,zl&6)throw Error(i(331));var c=zl;if(zl|=4,Pl(o.current),El(o,o.current,s,n),zl=c,dd(0,!1),je&&typeof je.onPostCommitFiberRoot==`function`)try{je.onPostCommitFiberRoot(Ae,o)}catch{}return!0}finally{F.p=a,P.T=r,qu(e,t)}}function Xu(e,t,n){t=pi(n,t),t=Xs(e.stateNode,t,2),e=Ba(e,t,2),e!==null&&(Ke(e,2),ud(e))}function Zu(e,t,n){if(e.tag===3)Xu(e,e,n);else for(;t!==null;){if(t.tag===3){Xu(t,e,n);break}else if(t.tag===1){var r=t.stateNode;if(typeof t.type.getDerivedStateFromError==`function`||typeof r.componentDidCatch==`function`&&(cu===null||!cu.has(r))){e=pi(n,e),n=Zs(2),r=Ba(t,n,2),r!==null&&(Qs(n,r,t,e),Ke(r,2),ud(r));break}}t=t.return}}function Qu(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new Rl;var i=new Set;r.set(t,i)}else i=r.get(t),i===void 0&&(i=new Set,r.set(t,i));i.has(n)||(ql=!0,i.add(n),e=$u.bind(null,e,t,n),t.then(e,e))}function $u(e,t,n){var r=e.pingCache;r!==null&&r.delete(t),e.pingedLanes|=e.suspendedLanes&n,e.warmLanes&=~n,Bl===e&&(Hl&n)===n&&(Yl===4||Yl===3&&(Hl&62914560)===Hl&&300>xe()-iu?!(zl&2)&&Ou(e,0):Ql|=n,eu===Hl&&(eu=0)),ud(e)}function ed(e,t){t===0&&(t=We()),e=$r(e,t),e!==null&&(Ke(e,t),ud(e))}function td(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),ed(e,n)}
vendor: 1,035 bytes, line 9
9function nd(e,t){var n=0;switch(e.tag){case 31:case 13:var r=e.stateNode,a=e.memoizedState;a!==null&&(n=a.retryLane);break;case 19:r=e.stateNode;break;case 22:r=e.stateNode._retryCache;break;default:throw Error(i(314))}r!==null&&r.delete(t),ed(e,n)}function rd(e,t){return ve(e,t)}var id=null,ad=null,od=!1,sd=!1,cd=!1,ld=0;function ud(e){e!==ad&&e.next===null&&(ad===null?id=ad=e:ad=ad.next=e),sd=!0,od||(od=!0,_d())}function dd(e,t){if(!cd&&sd){cd=!0;do for(var n=!1,r=id;r!==null;){if(!t)if(e!==0){var i=r.pendingLanes;if(i===0)var a=0;else{var o=r.suspendedLanes,s=r.pingedLanes;a=(1<<31-Ne(42|e)+1)-1,a&=i&~(o&~s),a=a&201326741?a&201326741|1:a?a|2:0}a!==0&&(n=!0,gd(r,a))}else a=Hl,a=Ve(r,r===Bl?a:0,r.cancelPendingCommit!==null||r.timeoutHandle!==-1),!(a&3)||He(r,a)||(n=!0,gd(r,a));r=r.next}while(n);cd=!1}}function fd(){pd()}function pd(){sd=od=!1;var e=0;ld!==0&&$d()&&(e=ld);for(var t=xe(),n=null,r=id;r!==null;){var i=r.next,a=md(r,t);a===0?(r.next=null,n===null?id=i:n.next=i,i===null&&(ad=n)):(n=r,(e!==0||a&3)&&(sd=!0)),r
vendor: 20,385 bytes, lines 9-10
9=i}lu!==0&&lu!==5||dd(e,!1),ld!==0&&(ld=0)}function md(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,i=e.expirationTimes,a=e.pendingLanes&-62914561;0<a;){var o=31-Ne(a),s=1<<o,c=i[o];c===-1?((s&n)===0||(s&r)!==0)&&(i[o]=Ue(s,t)):c<=t&&(e.expiredLanes|=s),a&=~s}if(t=Bl,n=Hl,n=Ve(e,e===t?n:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),r=e.callbackNode,n===0||e===t&&(Ul===2||Ul===9)||e.cancelPendingCommit!==null)return r!==null&&r!==null&&ye(r),e.callbackNode=null,e.callbackPriority=0;if(!(n&3)||He(e,n)){if(t=n&-n,t===e.callbackPriority)return t;switch(r!==null&&ye(r),Qe(n)){case 2:case 8:n=we;break;case 32:n=Te;break;case 268435456:n=De;break;default:n=Te}return r=hd.bind(null,e),n=ve(n,r),e.callbackPriority=t,e.callbackNode=n,t}return r!==null&&r!==null&&ye(r),e.callbackPriority=2,e.callbackNode=null,2}function hd(e,t){if(lu!==0&&lu!==5)return e.callbackNode=null,e.callbackPriority=0,null;var n=e.callbackNode;if(Ju()&&e.callbackNode!==n)return null;var r=Hl;return r=Ve(e,e===Bl?r:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),r===0?null:(xu(e,r,t),md(e,xe()),e.callbackNode!=null&&e.callbackNode===n?hd.bind(null,e):null)}function gd(e,t){if(Ju())return null;xu(e,t,!0)}function _d(){rf(function(){zl&6?ve(Ce,fd):pd()})}function vd(){if(ld===0){var e=ca;e===0&&(e=Le,Le<<=1,!(Le&261888)&&(Le=256)),ld=e}return ld}function yd(e){return e==null||typeof e==`symbol`||typeof e==`boolean`?null:typeof e==`function`?e:Jt(``+e)}function bd(e,t){var n=t.ownerDocument.createElement(`input`);return n.name=t.name,n.value=t.value,e.id&&n.setAttribute(`form`,e.id),t.parentNode.insertBefore(n,t),e=new FormData(e),n.parentNode.removeChild(n),e}function xd(e,t,n,r,i){if(t===`submit`&&n&&n.stateNode===i){var a=yd((i[rt]||null).action),o=r.submitter;o&&(t=(t=o[rt]||null)?yd(t.formAction):o.getAttribute(`formAction`),t!==null&&(a=t,o=null));var s=new _n(`action`,`action`,null,r,i);e.push({event:s,listeners:[{instance:null,listener:function(){if(r.defaultPrevented){if(ld!==0){var e=o?bd(i,o):new FormData(i);Ss(n,{pending:!0,data:e,method:i.method,action:a},null,e)}}else typeof a==`function`&&(s.preventDefault(),e=o?bd(i,o):new FormData(i),Ss(n,{pending:!0,data:e,method:i.method,action:a},a,e))},currentTarget:i}]})}}for(var Sd=0;Sd<Wr.length;Sd++){var Cd=Wr[Sd];Gr(Cd.toLowerCase(),`on`+(Cd[0].toUpperCase()+Cd.slice(1)))}Gr(Ir,`onAnimationEnd`),Gr(Lr,`onAnimationIteration`),Gr(Rr,`onAnimationStart`),Gr(`dblclick`,`onDoubleClick`),Gr(`focusin`,`onFocus`),Gr(`focusout`,`onBlur`),Gr(zr,`onTransitionRun`),Gr(Br,`onTransitionStart`),Gr(Vr,`onTransitionCancel`),Gr(Hr,`onTransitionEnd`),yt(`onMouseEnter`,[`mouseout`,`mouseover`]),yt(`onMouseLeave`,[`mouseout`,`mouseover`]),yt(`onPointerEnter`,[`pointerout`,`pointerover`]),yt(`onPointerLeave`,[`pointerout`,`pointerover`]),vt(`onChange`,`change click focusin focusout input keydown keyup selectionchange`.split(` `)),vt(`onSelect`,`focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange`.split(` `)),vt(`onBeforeInput`,[`compositionend`,`keypress`,`textInput`,`paste`]),vt(`onCompositionEnd`,`compositionend focusout keydown keypress keyup mousedown`.split(` `)),vt(`onCompositionStart`,`compositionstart focusout keydown keypress keyup mousedown`.split(` `)),vt(`onCompositionUpdate`,`compositionupdate focusout keydown keypress keyup mousedown`.split(` `));var wd=`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(` `),Td=new Set(`beforetoggle cancel close invalid load scroll scrollend toggle`.split(` `).concat(wd));function Ed(e,t){t=(t&4)!=0;for(var n=0;n<e.length;n++){var r=e[n],i=r.event;r=r.listeners;a:{var a=void 0;if(t)for(var o=r.length-1;0<=o;o--){var s=r[o],c=s.instance,l=s.currentTarget;if(s=s.listener,c!==a&&i.isPropagationStopped())break a;a=s,i.currentTarget=l;try{a(i)}catch(e){Kr(e)}i.currentTarget=null,a=c}else for(o=0;o<r.length;o++){if(s=r[o],c=s.instance,l=s.currentTarget,s=s.listener,c!==a&&i.isPropagationStopped())break a;a=s,i.currentTarget=l;try{a(i)}catch(e){Kr(e)}i.currentTarget=null,a=c}}}}function K(e,t){var n=t[at];n===void 0&&(n=t[at]=new Set);var r=e+`__bubble`;n.has(r)||(Ad(t,e,2,!1),n.add(r))}function Dd(e,t,n){var r=0;t&&(r|=4),Ad(n,e,r,t)}var Od=`_reactListening`+Math.random().toString(36).slice(2);function kd(e){if(!e[Od]){e[Od]=!0,gt.forEach(function(t){t!==`selectionchange`&&(Td.has(t)||Dd(t,!1,e),Dd(t,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[Od]||(t[Od]=!0,Dd(`selectionchange`,!1,t))}}function Ad(e,t,n,r){switch(xp(t)){case 2:var i=hp;break;case 8:i=gp;break;default:i=_p}n=i.bind(null,t,n,e),i=void 0,!on||t!==`touchstart`&&t!==`touchmove`&&t!==`wheel`||(i=!0),r?i===void 0?e.addEventListener(t,n,!0):e.addEventListener(t,n,{capture:!0,passive:i}):i===void 0?e.addEventListener(t,n,!1):e.addEventListener(t,n,{passive:i})}function jd(e,t,n,r,i){var a=r;if(!(t&1)&&!(t&2)&&r!==null)a:for(;;){if(r===null)return;var s=r.tag;if(s===3||s===4){var c=r.stateNode.containerInfo;if(c===i)break;if(s===4)for(s=r.return;s!==null;){var l=s.tag;if((l===3||l===4)&&s.stateNode.containerInfo===i)return;s=s.return}for(;c!==null;){if(s=dt(c),s===null)return;if(l=s.tag,l===5||l===6||l===26||l===27){r=a=s;continue a}c=c.parentNode}}r=r.return}nn(function(){var r=a,i=Zt(n),s=[];a:{var c=Ur.get(e);if(c!==void 0){var l=_n,u=e;switch(e){case`keypress`:if(fn(n)===0)break a;case`keydown`:case`keyup`:l=Fn;break;case`focusin`:u=`focus`,l=En;break;case`focusout`:u=`blur`,l=En;break;case`beforeblur`:case`afterblur`:l=En;break;case`click`:if(n.button===2)break a;case`auxclick`:case`dblclick`:case`mousedown`:case`mousemove`:case`mouseup`:case`mouseout`:case`mouseover`:case`contextmenu`:l=wn;break;case`drag`:case`dragend`:case`dragenter`:case`dragexit`:case`dragleave`:case`dragover`:case`dragstart`:case`drop`:l=Tn;break;case`touchcancel`:case`touchend`:case`touchmove`:case`touchstart`:l=Ln;break;case Ir:case Lr:case Rr:l=Dn;break;case Hr:l=Rn;break;case`scroll`:case`scrollend`:l=yn;break;case`wheel`:l=zn;break;case`copy`:case`cut`:case`paste`:l=On;break;case`gotpointercapture`:case`lostpointercapture`:case`pointercancel`:case`pointerdown`:case`pointermove`:case`pointerout`:case`pointerover`:case`pointerup`:l=In;break;case`toggle`:case`beforetoggle`:l=Bn}var d=(t&4)!=0,f=!d&&(e===`scroll`||e===`scrollend`),p=d?c===null?null:c+`Capture`:c;d=[];for(var m=r,h;m!==null;){var g=m;if(h=g.stateNode,g=g.tag,g!==5&&g!==26&&g!==27||h===null||p===null||(g=rn(m,p),g!=null&&d.push(Md(m,g,h))),f)break;m=m.return}0<d.length&&(c=new l(c,u,null,n,i),s.push({event:c,listeners:d}))}}if(!(t&7)){a:{if(c=e===`mouseover`||e===`pointerover`,l=e===`mouseout`||e===`pointerout`,c&&n!==Xt&&(u=n.relatedTarget||n.fromElement)&&(dt(u)||u[it]))break a;if((l||c)&&(c=i.window===i?i:(c=i.ownerDocument)?c.defaultView||c.parentWindow:window,l?(u=n.relatedTarget||n.toElement,l=r,u=u?dt(u):null,u!==null&&(f=o(u),d=u.tag,u!==f||d!==5&&d!==27&&d!==6)&&(u=null)):(l=null,u=r),l!==u)){if(d=wn,g=`onMouseLeave`,p=`onMouseEnter`,m=`mouse`,(e===`pointerout`||e===`pointerover`)&&(d=In,g=`onPointerLeave`,p=`onPointerEnter`,m=`pointer`),f=l==null?c:pt(l),h=u==null?c:pt(u),c=new d(g,m+`leave`,l,n,i),c.target=f,c.relatedTarget=h,g=null,dt(i)===r&&(d=new d(p,m+`enter`,u,n,i),d.target=h,d.relatedTarget=f,g=d),f=g,l&&u)b:{for(d=Pd,p=l,m=u,h=0,g=p;g;g=d(g))h++;g=0;for(var _=m;_;_=d(_))g++;for(;0<h-g;)p=d(p),h--;for(;0<g-h;)m=d(m),g--;for(;h--;){if(p===m||m!==null&&p===m.alternate){d=p;break b}p=d(p),m=d(m)}d=null}else d=null;l!==null&&Fd(s,c,l,d,!1),u!==null&&f!==null&&Fd(s,f,u,d,!0)}}a:{if(c=r?pt(r):window,l=c.nodeName&&c.nodeName.toLowerCase(),l===`select`||l===`input`&&c.type===`file`)var v=or;else if(er(c))if(sr)v=gr;else{v=mr;var y=pr}else l=c.nodeName,!l||l.toLowerCase()!==`input`||c.type!==`checkbox`&&c.type!==`radio`?r&&Gt(r.elementType)&&(v=or):v=hr;if(v&&=v(e,r)){tr(s,v,n,i);break a}y&&y(e,c,r),e===`focusout`&&r&&c.type===`number`&&r.memoizedProps.value!=null&&Lt(c,`number`,c.value)}switch(y=r?pt(r):window,e){case`focusin`:(er(y)||y.contentEditable===`true`)&&(Er=y,Dr=r,Or=null);break;case`focusout`:Or=Dr=Er=null;break;case`mousedown`:kr=!0;break;case`contextmenu`:case`mouseup`:case`dragend`:kr=!1,Ar(s,n,i);break;case`selectionchange`:if(Tr)break;case`keydown`:case`keyup`:Ar(s,n,i)}var b;if(Hn)b:{switch(e){case`compositionstart`:var x=`onCompositionStart`;break b;case`compositionend`:x=`onCompositionEnd`;break b;case`compositionupdate`:x=`onCompositionUpdate`;break b}x=void 0}else Xn?Jn(e,n)&&(x=`onCompositionEnd`):e===`keydown`&&n.keyCode===229&&(x=`onCompositionStart`);x&&(Gn&&n.locale!==`ko`&&(Xn||x!==`onCompositionStart`?x===`onCompositionEnd`&&Xn&&(b=dn()):(cn=i,ln=`value`in cn?cn.value:cn.textContent,Xn=!0)),y=Nd(r,x),0<y.length&&(x=new kn(x,e,null,n,i),s.push({event:x,listeners:y}),b?x.data=b:(b=Yn(n),b!==null&&(x.data=b)))),(b=Wn?Zn(e,n):Qn(e,n))&&(x=Nd(r,`onBeforeInput`),0<x.length&&(y=new kn(`onBeforeInput`,`beforeinput`,null,n,i),s.push({event:y,listeners:x}),y.data=b)),xd(s,e,r,n,i)}Ed(s,t)})}function Md(e,t,n){return{instance:e,listener:t,currentTarget:n}}function Nd(e,t){for(var n=t+`Capture`,r=[];e!==null;){var i=e,a=i.stateNode;if(i=i.tag,i!==5&&i!==26&&i!==27||a===null||(i=rn(e,n),i!=null&&r.unshift(Md(e,i,a)),i=rn(e,t),i!=null&&r.push(Md(e,i,a))),e.tag===3)return r;e=e.return}return[]}function Pd(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function Fd(e,t,n,r,i){for(var a=t._reactName,o=[];n!==null&&n!==r;){var s=n,c=s.alternate,l=s.stateNode;if(s=s.tag,c!==null&&c===r)break;s!==5&&s!==26&&s!==27||l===null||(c=l,i?(l=rn(n,a),l!=null&&o.unshift(Md(n,l,c))):i||(l=rn(n,a),l!=null&&o.push(Md(n,l,c)))),n=n.return}o.length!==0&&e.push({event:t,listeners:o})}var Id=/\r\n?/g,Ld=/\u0000|\uFFFD/g;function Rd(e){return(typeof e==`string`?e:``+e).replace(Id,`
10`).replace(Ld,``)}function zd(e,t){return t=Rd(t),Rd(e)===t}function Bd(e,t,n,r,a,o){switch(n){case`children`:typeof r==`string`?t===`body`||t===`textarea`&&r===``||Vt(e,r):(typeof r==`number`||typeof r==`bigint`)&&t!==`body`&&Vt(e,``+r);break;case`className`:Tt(e,`class`,r);break;case`tabIndex`:Tt(e,`tabindex`,r);break;case`dir`:case`role`:case`viewBox`:case`width`:case`height`:Tt(e,n,r);break;case`style`:Wt(e,r,o);break;case`data`:if(t!==`object`){Tt(e,`data`,r);break}case`src`:case`href`:if(r===``&&(t!==`a`||n!==`href`)){e.removeAttribute(n);break}if(r==null||typeof r==`function`||typeof r==`symbol`||typeof r==`boolean`){e.removeAttribute(n);break}r=Jt(``+r),e.setAttribute(n,r);break;case`action`:case`formAction`:if(typeof r==`function`){e.setAttribute(n,`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 o==`function`&&(n===`formAction`?(t!==`input`&&Bd(e,t,`name`,a.name,a,null),Bd(e,t,`formEncType`,a.formEncType,a,null),Bd(e,t,`formMethod`,a.formMethod,a,null),Bd(e,t,`formTarget`,a.formTarget,a,null)):(Bd(e,t,`encType`,a.encType,a,null),Bd(e,t,`method`,a.method,a,null),Bd(e,t,`target`,a.target,a,null)));if(r==null||typeof r==`symbol`||typeof r==`boolean`){e.removeAttribute(n);break}r=Jt(``+r),e.setAttribute(n,r);break;case`onClick`:r!=null&&(e.onclick=Yt);break;case`onScroll`:r!=null&&K(`scroll`,e);break;case`onScrollEnd`:r!=null&&K(`scrollend`,e);break;case`dangerouslySetInnerHTML`:if(r!=null){if(typeof r!=`object`||!(`__html`in r))throw Error(i(61));if(n=r.__html,n!=null){if(a.children!=null)throw Error(i(60));e.innerHTML=n}}break;case`multiple`:e.multiple=r&&typeof r!=`function`&&typeof r!=`symbol`;break;case`muted`:e.muted=r&&typeof r!=`function`&&typeof r!=`symbol`;break;case`suppressContentEditableWarning`:case`suppressHydrationWarning`:case`defaultValue`:case`defaultChecked`:case`innerHTML`:case`ref`:break;case`autoFocus`:break;case`xlinkHref`:if(r==null||typeof r==`function`||typeof r==`boolean`||typeof r==`symbol`){e.removeAttribute(`xlink:href`);break}n=Jt(``+r),e.setAttributeNS(`http://www.w3.org/1999/xlink`,`xlink:href`,n);break;case`contentEditable`:case`spellCheck`:case`draggable`:case`value`:case`autoReverse`:case`externalResourcesRequired`:case`focusable`:case`preserveAlpha`:r!=null&&typeof r!=`function`&&typeof r!=`symbol`?e.setAttribute(n,``+r):e.removeAttribute(n);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`:r&&typeof r!=`function`&&typeof r!=`symbol`?e.setAttribute(n,``):e.removeAttribute(n);break;case`capture`:case`download`:!0===r?e.setAttribute(n,``):!1!==r&&r!=null&&typeof r!=`function`&&typeof r!=`symbol`?e.setAttribute(n,r):e.removeAttribute(n);break;case`cols`:case`rows`:case`size`:case`span`:r!=null&&typeof r!=`function`&&typeof r!=`symbol`&&!isNaN(r)&&1<=r?e.setAttribute(n,r):e.removeAttribute(n);break;case`rowSpan`:case`start`:r==null||typeof r==`function`||typeof r==`symbol`||isNaN(r)?e.removeAttribute(n):e.setAttribute(n,r);break;case`popover`:K(`beforetoggle`,e),K(`toggle`,e),wt(e,`popover`,r);break;case`xlinkActuate`:Et(e,`http://www.w3.org/1999/xlink`,`xlink:actuate`,r);break;case`xlinkArcrole`:Et(e,`http://www.w3.org/1999/xlink`,`xlink:arcrole`,r);break;case`xlinkRole`:Et(e,`http://www.w3.org/1999/xlink`,`xlink:role`,r);break;case`xlinkShow`:Et(e,`http://www.w3.org/1999/xlink`,`xlink:show`,r);break;case`xlinkTitle`:Et(e,`http://www.w3.org/1999/xlink`,`xlink:title`,r);break;case`xlinkType`:Et(e,`http://www.w3.org/1999/xlink`,`xlink:type`,r);break;case`xmlBase`:Et(e,`http://www.w3.org/XML/1998/namespace`,`xml:base`,r);break;case`xmlLang`:Et(e,`http://www.w3.org/XML/1998/namespace`,`xml:lang`,r);break;case`xmlSpace`:Et(e,`http://www.w3.org/XML/1998/namespace`,`xml:space`,r);break;case`is`:wt(e,`is`,r);break;case`innerText`:case`textContent`:break;default:(!(2<n.length)||n[0]!==`o`&&n[0]!==`O`||n[1]!==`n`&&n[1]!==`N`)&&(n=Kt.get(n)||n,wt(e,n,r))}}function Vd(e,t,n,r,a,o){switch(n){case`style`:Wt(e,r,o);break;case`dangerouslySetInnerHTML`:if(r!=null){if(typeof r!=`object`||!(`__html`in r))throw Error(i(61));if(n=r.__html,n!=null){if(a.children!=null)throw Error(i(60));e.innerHTML=n}}break;case`children`:typeof r==`string`?Vt(e,r):(typeof r==`number`||typeof r==`bigint`)&&Vt(e,``+r);break;case`onScroll`:r!=null&&K(`scroll`,e);break;case`onScrollEnd`:r!=null&&K(`scrollend`,e);break;case`onClick`:r!=null&&(e.onclick=Yt);break;case`suppressContentEditableWarning`:case`suppressHydrationWarning`:case`innerHTML`:case`ref`:break;case`innerText`:case`textContent`:break;default:if(!_t.hasOwnProperty(n))a:{if(n[0]===`o`&&n[1]===`n`&&(a=n.endsWith(`Capture`),t=n.slice(2,a?n.length-7:void 0),o=e[rt]||null,o=o==null?null:o[n],typeof o==`function`&&e.removeEventListener(t,o,a),typeof r==`function`)){typeof o!=`function`&&o!==null&&(n in e?e[n]=null:e.hasAttribute(n)&&e.removeAttribute(n)),e.addEventListener(t,r,a);break a}n in e?e[n]=r:!0===r?e.setAttribute(n,``):wt(e,n,r)}}}function Hd(e,t,n){switch(t){case`div`:case`span`:case`svg`:case`path`:case`a`:case`g`:case`p`:case`li`:break;case`img`:K(`error`,e),K(`load`,e);var r=!1,a=!1,o;for(o in n)if(n.hasOwnProperty(o)){var s=n[o];if(s!=null)switch(o){case`src`:r=!0;break;case`srcSet`:a=!0;break;case`children`:case`dangerouslySetInnerHTML`:throw Error(i(137,t));default:Bd(e,t,o,s,n,null)}}a&&Bd(e,t,`srcSet`,n.srcSet,n,null),r&&Bd(e,t,`src`,n.src,n,null);return;case`input`:K(`invalid`,e);var c=o=s=a=null,l=null,u=null;for(r in n)if(n.hasOwnProperty(r)){var d=n[r];if(d!=null)switch(r){case`name`:a=d;break;case`type`:s=d;break;case`checked`:l=d;break;case`defaultChecked`:u=d;break;case`value`:o=d;break;case`defaultValue`:c=d;break;case`children`:case`dangerouslySetInnerHTML`:if(d!=null)throw Error(i(137,t));break;default:Bd(e,t,r,d,n,null)}}It(e,o,c,l,u,s,a,!1);return;case`select`:for(a in K(`invalid`,e),r=s=o=null,n)if(n.hasOwnProperty(a)&&(c=n[a],c!=null))switch(a){case`value`:o=c;break;case`defaultValue`:s=c;break;case`multiple`:r=c;default:Bd(e,t,a,c,n,null)}t=o,n=s,e.multiple=!!r,t==null?n!=null&&Rt(e,!!r,n,!0):Rt(e,!!r,t,!1);return;case`textarea`:for(s in K(`invalid`,e),o=a=r=null,n)if(n.hasOwnProperty(s)&&(c=n[s],c!=null))switch(s){case`value`:r=c;break;case`defaultValue`:a=c;break;case`children`:o=c;break;case`dangerouslySetInnerHTML`:if(c!=null)throw Error(i(91));break;default:Bd(e,t,s,c,n,null)}Bt(e,r,a,o);return;case`option`:for(l in n)if(n.hasOwnProperty(l)&&(r=n[l],r!=null))switch(l){case`selected`:e.selected=r&&typeof r!=`function`&&typeof r!=`symbol`;break;default:Bd(e,t,l,r,n,null)}return;case`dialog`:K(`beforetoggle`,e),K(`toggle`,e),K(`cancel`,e),K(`close`,e);break;case`iframe`:case`object`:K(`load`,e);break;case`video`:case`audio`:for(r=0;r<wd.length;r++)K(wd[r],e);break;case`image`:K(`error`,e),K(`load`,e);break;case`details`:K(`toggle`,e);break;case`embed`:case`source`:case`link`:K(`error`,e),K(`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(u in n)if(n.hasOwnProperty(u)&&(r=n[u],r!=null))switch(u){case`children`:case`dangerouslySetInnerHTML`:throw Error(i(137,t));default:Bd(e,t,u,r,n,null)}return;default:if(Gt(t)){for(d in n)n.hasOwnProperty(d)&&(r=n[d],r!==void 0&&Vd(e,t,d,r,n,void 0));return}}for(c in n)n.hasOwnProperty(c)&&(r=n[c],r!=null&&Bd(e,t,c,r,n,null))}function Ud(e,t,n,r){switch(t){case`div`:case`span`:case`svg`:case`path`:case`a`:case`g`:case`p`:case`li`:break;case`input`:var a=null,o=null,s=null,c=null,l=null,u=null,d=null;for(m in n){var f=n[m];if(n.hasOwnProperty(m)&&f!=null)switch(m){case`checked`:break;case`value`:break;case`defaultValue`:l=f;default:r.hasOwnProperty(m)||Bd(e,t,m,null,r,f)}}for(var p in r){var m=r[p];if(f=n[p],r.hasOwnProperty(p)&&(m!=null||f!=null))switch(p){case`type`:o=m;break;case`name`:a=m;break;case`checked`:u=m;break;case`defaultChecked`:d=m;break;case`value`:s=m;break;case`defaultValue`:c=m;break;case`children`:case`dangerouslySetInnerHTML`:if(m!=null)throw Error(i(137,t));break;default:m!==f&&Bd(e,t,p,m,r,f)}}Ft(e,s,c,l,u,d,o,a);return;case`select`:for(o in m=s=c=p=null,n)if(l=n[o],n.hasOwnProperty(o)&&l!=null)switch(o){case`value`:break;case`multiple`:m=l;default:r.hasOwnProperty(o)||Bd(e,t,o,null,r,l)}for(a in r)if(o=r[a],l=n[a],r.hasOwnProperty(a)&&(o!=null||l!=null))switch(a){case`value`:p=o;break;case`defaultValue`:c=o;break;case`multiple`:s=o;default:o!==l&&Bd(e,t,a,o,r,l)}t=c,n=s,r=m,p==null?!!r!=!!n&&(t==null?Rt(e,!!n,n?[]:``,!1):Rt(e,!!n,t,!0)):Rt(e,!!n,p,!1);return;case`textarea`:for(c in m=p=null,n)if(a=n[c],n.hasOwnProperty(c)&&a!=null&&!r.hasOwnProperty(c))switch(c){case`value`:break;case`children`:break;default:Bd(e,t,c,null,r,a)}for(s in r)if(a=r[s],o=n[s],r.hasOwnProperty(s)&&(a!=null||o!=null))switch(s){case`value`:p=a;break;case`defaultValue`:m=a;break;case`children`:break;case`dangerouslySetInnerHTML`:if(a!=null)throw Error(i(91));break;default:a!==o&&Bd(e,t,s,a,r,o)}zt(e,p,m);return;case`option`:for(var h in n)if(p=n[h],n.hasOwnProperty(h)&&p!=null&&!r.hasOwnProperty(h))switch(h){case`selected`:e.selected=!1;break;default:Bd(e,t,h,null,r,p)}for(l in r)if(p=r[l],m=n[l],r.hasOwnProperty(l)&&p!==m&&(p!=null||m!=null))switch(l){case`selected`:e.selected=p&&typeof p!=`function`&&typeof p!=`symbol`;break;default:Bd(e,t,l,p,r,m)}return;case`img`:case`link`:case`area`:case`base`:case`br`:case`col`:case`embed`:case`hr`:case`keygen`:case`meta`:case`param`:case`source`:case`track`:case`wbr`:case`menuitem`:for(var g in n)p=n[g],n.hasOwnProperty(g)&&p!=null&&!r.hasOwnProperty(g)&&Bd(e,t,g,null,r,p);for(u in r)if(p=r[u],m=n[u],r.hasOwnProperty(u)&&p!==m&&(p!=null||m!=null))switch(u){case`children`:case`dangerouslySetInnerHTML`:if(p!=null)throw Error(i(137,t));break;default:Bd(e,t,u,p,r,m)}return;default:if(Gt(t)){for(var _ in n)p=n[_],n.hasOwnProperty(_)&&p!==void 0&&!r.hasOwnProperty(_)&&Vd(e,t,_,void 0,r,p);
vendor: 4,463 bytes, line 10
10for(d in r)p=r[d],m=n[d],!r.hasOwnProperty(d)||p===m||p===void 0&&m===void 0||Vd(e,t,d,p,r,m);return}}for(var v in n)p=n[v],n.hasOwnProperty(v)&&p!=null&&!r.hasOwnProperty(v)&&Bd(e,t,v,null,r,p);for(f in r)p=r[f],m=n[f],!r.hasOwnProperty(f)||p===m||p==null&&m==null||Bd(e,t,f,p,r,m)}function Wd(e){switch(e){case`css`:case`script`:case`font`:case`img`:case`image`:case`input`:case`link`:return!0;default:return!1}}function Gd(){if(typeof performance.getEntriesByType==`function`){for(var e=0,t=0,n=performance.getEntriesByType(`resource`),r=0;r<n.length;r++){var i=n[r],a=i.transferSize,o=i.initiatorType,s=i.duration;if(a&&s&&Wd(o)){for(o=0,s=i.responseEnd,r+=1;r<n.length;r++){var c=n[r],l=c.startTime;if(l>s)break;var u=c.transferSize,d=c.initiatorType;u&&Wd(d)&&(c=c.responseEnd,o+=u*(c<s?1:(s-l)/(c-l)))}if(--r,t+=8*(a+o)/(i.duration/1e3),e++,10<e)break}}if(0<e)return t/e/1e6}return navigator.connection&&(e=navigator.connection.downlink,typeof e==`number`)?e:5}var Kd=null,qd=null;function Jd(e){return e.nodeType===9?e:e.ownerDocument}function Yd(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 Xd(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 Zd(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 Qd=null;function $d(){var e=window.event;return e&&e.type===`popstate`?e===Qd?!1:(Qd=e,!0):(Qd=null,!1)}var ef=typeof setTimeout==`function`?setTimeout:void 0,tf=typeof clearTimeout==`function`?clearTimeout:void 0,nf=typeof Promise==`function`?Promise:void 0,rf=typeof queueMicrotask==`function`?queueMicrotask:nf===void 0?ef:function(e){return nf.resolve(null).then(e).catch(af)};function af(e){setTimeout(function(){throw e})}function of(e){return e===`head`}function sf(e,t){var n=t,r=0;do{var i=n.nextSibling;if(e.removeChild(n),i&&i.nodeType===8)if(n=i.data,n===`/$`||n===`/&`){if(r===0){e.removeChild(i),Bp(t);return}r--}else if(n===`$`||n===`$?`||n===`$~`||n===`$!`||n===`&`)r++;else if(n===`html`)xf(e.ownerDocument.documentElement);else if(n===`head`){n=e.ownerDocument.head,xf(n);for(var a=n.firstChild;a;){var o=a.nextSibling,s=a.nodeName;a[lt]||s===`SCRIPT`||s===`STYLE`||s===`LINK`&&a.rel.toLowerCase()===`stylesheet`||n.removeChild(a),a=o}}else n===`body`&&xf(e.ownerDocument.body);n=i}while(n);Bp(t)}function cf(e,t){var n=e;e=0;do{var r=n.nextSibling;if(n.nodeType===1?t?(n._stashedDisplay=n.style.display,n.style.display=`none`):(n.style.display=n._stashedDisplay||``,n.getAttribute(`style`)===``&&n.removeAttribute(`style`)):n.nodeType===3&&(t?(n._stashedText=n.nodeValue,n.nodeValue=``):n.nodeValue=n._stashedText||``),r&&r.nodeType===8)if(n=r.data,n===`/$`){if(e===0)break;e--}else n!==`$`&&n!==`$?`&&n!==`$~`&&n!==`$!`||e++;n=r}while(n)}function lf(e){var t=e.firstChild;for(t&&t.nodeType===10&&(t=t.nextSibling);t;){var n=t;switch(t=t.nextSibling,n.nodeName){case`HTML`:case`HEAD`:case`BODY`:lf(n),ut(n);continue;case`SCRIPT`:case`STYLE`:continue;case`LINK`:if(n.rel.toLowerCase()===`stylesheet`)continue}e.removeChild(n)}}function uf(e,t,n,r){for(;e.nodeType===1;){var i=n;if(e.nodeName.toLowerCase()!==t.toLowerCase()){if(!r&&(e.nodeName!==`INPUT`||e.type!==`hidden`))break}else if(!r)if(t===`input`&&e.type===`hidden`){var a=i.name==null?null:``+i.name;if(i.type===`hidden`&&e.getAttribute(`name`)===a)return e}else return e;else if(!e[lt])switch(t){case`meta`:if(!e.hasAttribute(`itemprop`))break;return e;case`link`:if(a=e.getAttribute(`rel`),a===`stylesheet`&&e.hasAttribute(`data-precedence`)||a!==i.rel||e.getAttribute(`href`)!==(i.href==null||i.href===``?null:i.href)||e.getAttribute(`crossorigin`)!==(i.crossOrigin==null?null:i.crossOrigin)||e.getAttribute(`title`)!==(i.title==null?null:i.title))break;return e;case`style`:if(e.hasAttribute(`data-precedence`))break;return e;case`script`:if(a=e.getAttribute(`src`),(a!==(i.src==null?null:i.src)||e.getAttribute(`type`)!==(i.type==null?null:i.type)||e.getAttribute(`crossorigin`)!==(i.crossOrigin==null?null:i.crossOrigin))&&a&&e.hasAttribute(`async`)&&!e.hasAttribute(`itemprop`))break;return e;default:return e}if(e=gf(e.nextSibling),e===null)break}return null}function df(e,t,n){if(t===``)return null;for(;
vendor: 20,890 bytes, line 10
10e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!==`INPUT`||e.type!==`hidden`)&&!n||(e=gf(e.nextSibling),e===null))return null;return e}function ff(e,t){for(;e.nodeType!==8;)if((e.nodeType!==1||e.nodeName!==`INPUT`||e.type!==`hidden`)&&!t||(e=gf(e.nextSibling),e===null))return null;return e}function pf(e){return e.data===`$?`||e.data===`$~`}function mf(e){return e.data===`$!`||e.data===`$?`&&e.ownerDocument.readyState!==`loading`}function hf(e,t){var n=e.ownerDocument;if(e.data===`$~`)e._reactRetry=t;else if(e.data!==`$?`||n.readyState!==`loading`)t();else{var r=function(){t(),n.removeEventListener(`DOMContentLoaded`,r)};n.addEventListener(`DOMContentLoaded`,r),e._reactRetry=r}}function gf(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 _f=null;function vf(e){e=e.nextSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n===`/$`||n===`/&`){if(t===0)return gf(e.nextSibling);t--}else n!==`$`&&n!==`$!`&&n!==`$?`&&n!==`$~`&&n!==`&`||t++}e=e.nextSibling}return null}function yf(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n===`$`||n===`$!`||n===`$?`||n===`$~`||n===`&`){if(t===0)return e;t--}else n!==`/$`&&n!==`/&`||t++}e=e.previousSibling}return null}function bf(e,t,n){switch(t=Jd(n),e){case`html`:if(e=t.documentElement,!e)throw Error(i(452));return e;case`head`:if(e=t.head,!e)throw Error(i(453));return e;case`body`:if(e=t.body,!e)throw Error(i(454));return e;default:throw Error(i(451))}}function xf(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);ut(e)}var q=new Map,Sf=new Set;function Cf(e){return typeof e.getRootNode==`function`?e.getRootNode():e.nodeType===9?e:e.ownerDocument}var wf=F.d;F.d={f:Tf,r:Ef,D:kf,C:Af,L:jf,m:Mf,X:Pf,S:Nf,M:Ff};function Tf(){var e=wf.f(),t=Eu();return e||t}function Ef(e){var t=ft(e);t!==null&&t.tag===5&&t.type===`form`?ws(t):wf.r(e)}var Df=typeof document>`u`?null:document;function Of(e,t,n){var r=Df;if(r&&typeof t==`string`&&t){var i=Pt(t);i=`link[rel="`+e+`"][href="`+i+`"]`,typeof n==`string`&&(i+=`[crossorigin="`+n+`"]`),Sf.has(i)||(Sf.add(i),e={rel:e,crossOrigin:n,href:t},r.querySelector(i)===null&&(t=r.createElement(`link`),Hd(t,`link`,e),ht(t),r.head.appendChild(t)))}}function kf(e){wf.D(e),Of(`dns-prefetch`,e,null)}function Af(e,t){wf.C(e,t),Of(`preconnect`,e,t)}function jf(e,t,n){wf.L(e,t,n);var r=Df;if(r&&e&&t){var i=`link[rel="preload"][as="`+Pt(t)+`"]`;t===`image`&&n&&n.imageSrcSet?(i+=`[imagesrcset="`+Pt(n.imageSrcSet)+`"]`,typeof n.imageSizes==`string`&&(i+=`[imagesizes="`+Pt(n.imageSizes)+`"]`)):i+=`[href="`+Pt(e)+`"]`;var a=i;switch(t){case`style`:a=Lf(e);break;case`script`:a=Vf(e)}q.has(a)||(e=f({rel:`preload`,href:t===`image`&&n&&n.imageSrcSet?void 0:e,as:t},n),q.set(a,e),r.querySelector(i)!==null||t===`style`&&r.querySelector(Rf(a))||t===`script`&&r.querySelector(Hf(a))||(t=r.createElement(`link`),Hd(t,`link`,e),ht(t),r.head.appendChild(t)))}}function Mf(e,t){wf.m(e,t);var n=Df;if(n&&e){var r=t&&typeof t.as==`string`?t.as:`script`,i=`link[rel="modulepreload"][as="`+Pt(r)+`"][href="`+Pt(e)+`"]`,a=i;switch(r){case`audioworklet`:case`paintworklet`:case`serviceworker`:case`sharedworker`:case`worker`:case`script`:a=Vf(e)}if(!q.has(a)&&(e=f({rel:`modulepreload`,href:e},t),q.set(a,e),n.querySelector(i)===null)){switch(r){case`audioworklet`:case`paintworklet`:case`serviceworker`:case`sharedworker`:case`worker`:case`script`:if(n.querySelector(Hf(a)))return}r=n.createElement(`link`),Hd(r,`link`,e),ht(r),n.head.appendChild(r)}}}function Nf(e,t,n){wf.S(e,t,n);var r=Df;if(r&&e){var i=mt(r).hoistableStyles,a=Lf(e);t||=`default`;var o=i.get(a);if(!o){var s={loading:0,preload:null};if(o=r.querySelector(Rf(a)))s.loading=5;else{e=f({rel:`stylesheet`,href:e,"data-precedence":t},n),(n=q.get(a))&&Gf(e,n);var c=o=r.createElement(`link`);ht(c),Hd(c,`link`,e),c._p=new Promise(function(e,t){c.onload=e,c.onerror=t}),c.addEventListener(`load`,function(){s.loading|=1}),c.addEventListener(`error`,function(){s.loading|=2}),s.loading|=4,Wf(o,t,r)}o={type:`stylesheet`,instance:o,count:1,state:s},i.set(a,o)}}}function Pf(e,t){wf.X(e,t);var n=Df;if(n&&e){var r=mt(n).hoistableScripts,i=Vf(e),a=r.get(i);a||(a=n.querySelector(Hf(i)),a||(e=f({src:e,async:!0},t),(t=q.get(i))&&Kf(e,t),a=n.createElement(`script`),ht(a),Hd(a,`link`,e),n.head.appendChild(a)),a={type:`script`,instance:a,count:1,state:null},r.set(i,a))}}function Ff(e,t){wf.M(e,t);var n=Df;if(n&&e){var r=mt(n).hoistableScripts,i=Vf(e),a=r.get(i);a||(a=n.querySelector(Hf(i)),a||(e=f({src:e,async:!0,type:`module`},t),(t=q.get(i))&&Kf(e,t),a=n.createElement(`script`),ht(a),Hd(a,`link`,e),n.head.appendChild(a)),a={type:`script`,instance:a,count:1,state:null},r.set(i,a))}}function If(e,t,n,r){var a=(a=z.current)?Cf(a):null;if(!a)throw Error(i(446));switch(e){case`meta`:case`title`:return null;case`style`:return typeof n.precedence==`string`&&typeof n.href==`string`?(t=Lf(n.href),n=mt(a).hoistableStyles,r=n.get(t),r||(r={type:`style`,instance:null,count:0,state:null},n.set(t,r)),r):{type:`void`,instance:null,count:0,state:null};case`link`:if(n.rel===`stylesheet`&&typeof n.href==`string`&&typeof n.precedence==`string`){e=Lf(n.href);var o=mt(a).hoistableStyles,s=o.get(e);if(s||(a=a.ownerDocument||a,s={type:`stylesheet`,instance:null,count:0,state:{loading:0,preload:null}},o.set(e,s),(o=a.querySelector(Rf(e)))&&!o._p&&(s.instance=o,s.state.loading=5),q.has(e)||(n={rel:`preload`,as:`style`,href:n.href,crossOrigin:n.crossOrigin,integrity:n.integrity,media:n.media,hrefLang:n.hrefLang,referrerPolicy:n.referrerPolicy},q.set(e,n),o||Bf(a,e,n,s.state))),t&&r===null)throw Error(i(528,``));return s}if(t&&r!==null)throw Error(i(529,``));return null;case`script`:return t=n.async,n=n.src,typeof n==`string`&&t&&typeof t!=`function`&&typeof t!=`symbol`?(t=Vf(n),n=mt(a).hoistableScripts,r=n.get(t),r||(r={type:`script`,instance:null,count:0,state:null},n.set(t,r)),r):{type:`void`,instance:null,count:0,state:null};default:throw Error(i(444,e))}}function Lf(e){return`href="`+Pt(e)+`"`}function Rf(e){return`link[rel="stylesheet"][`+e+`]`}function zf(e){return f({},e,{"data-precedence":e.precedence,precedence:null})}function Bf(e,t,n,r){e.querySelector(`link[rel="preload"][as="style"][`+t+`]`)?r.loading=1:(t=e.createElement(`link`),r.preload=t,t.addEventListener(`load`,function(){return r.loading|=1}),t.addEventListener(`error`,function(){return r.loading|=2}),Hd(t,`link`,n),ht(t),e.head.appendChild(t))}function Vf(e){return`[src="`+Pt(e)+`"]`}function Hf(e){return`script[async]`+e}function Uf(e,t,n){if(t.count++,t.instance===null)switch(t.type){case`style`:var r=e.querySelector(`style[data-href~="`+Pt(n.href)+`"]`);if(r)return t.instance=r,ht(r),r;var a=f({},n,{"data-href":n.href,"data-precedence":n.precedence,href:null,precedence:null});return r=(e.ownerDocument||e).createElement(`style`),ht(r),Hd(r,`style`,a),Wf(r,n.precedence,e),t.instance=r;case`stylesheet`:a=Lf(n.href);var o=e.querySelector(Rf(a));if(o)return t.state.loading|=4,t.instance=o,ht(o),o;r=zf(n),(a=q.get(a))&&Gf(r,a),o=(e.ownerDocument||e).createElement(`link`),ht(o);var s=o;return s._p=new Promise(function(e,t){s.onload=e,s.onerror=t}),Hd(o,`link`,r),t.state.loading|=4,Wf(o,n.precedence,e),t.instance=o;case`script`:return o=Vf(n.src),(a=e.querySelector(Hf(o)))?(t.instance=a,ht(a),a):(r=n,(a=q.get(o))&&(r=f({},n),Kf(r,a)),e=e.ownerDocument||e,a=e.createElement(`script`),ht(a),Hd(a,`link`,r),e.head.appendChild(a),t.instance=a);case`void`:return null;default:throw Error(i(443,t.type))}else t.type===`stylesheet`&&!(t.state.loading&4)&&(r=t.instance,t.state.loading|=4,Wf(r,n.precedence,e));return t.instance}function Wf(e,t,n){for(var r=n.querySelectorAll(`link[rel="stylesheet"][data-precedence],style[data-precedence]`),i=r.length?r[r.length-1]:null,a=i,o=0;o<r.length;o++){var s=r[o];if(s.dataset.precedence===t)a=s;else if(a!==i)break}a?a.parentNode.insertBefore(e,a.nextSibling):(t=n.nodeType===9?n.head:n,t.insertBefore(e,t.firstChild))}function Gf(e,t){e.crossOrigin??=t.crossOrigin,e.referrerPolicy??=t.referrerPolicy,e.title??=t.title}function Kf(e,t){e.crossOrigin??=t.crossOrigin,e.referrerPolicy??=t.referrerPolicy,e.integrity??=t.integrity}var qf=null;function Jf(e,t,n){if(qf===null){var r=new Map,i=qf=new Map;i.set(n,r)}else i=qf,r=i.get(n),r||(r=new Map,i.set(n,r));if(r.has(e))return r;for(r.set(e,null),n=n.getElementsByTagName(e),i=0;i<n.length;i++){var a=n[i];if(!(a[lt]||a[nt]||e===`link`&&a.getAttribute(`rel`)===`stylesheet`)&&a.namespaceURI!==`http://www.w3.org/2000/svg`){var o=a.getAttribute(t)||``;o=e+o;var s=r.get(o);s?s.push(a):r.set(o,[a])}}return r}function Yf(e,t,n){e=e.ownerDocument||e,e.head.insertBefore(n,t===`title`?e.querySelector(`head > title`):null)}function Xf(e,t,n){if(n===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 Zf(e){return!(e.type===`stylesheet`&&!(e.state.loading&3))}function Qf(e,t,n,r){if(n.type===`stylesheet`&&(typeof r.media!=`string`||!1!==matchMedia(r.media).matches)&&!(n.state.loading&4)){if(n.instance===null){var i=Lf(r.href),a=t.querySelector(Rf(i));if(a){t=a._p,typeof t==`object`&&t&&typeof t.then==`function`&&(e.count++,e=tp.bind(e),t.then(e,e)),n.state.loading|=4,n.instance=a,ht(a);return}a=t.ownerDocument||t,r=zf(r),(i=q.get(i))&&Gf(r,i),a=a.createElement(`link`),ht(a);var o=a;o._p=new Promise(function(e,t){o.onload=e,o.onerror=t}),Hd(a,`link`,r),n.instance=a}e.stylesheets===null&&(e.stylesheets=new Map),e.stylesheets.set(n,t),(t=n.state.preload)&&!(n.state.loading&3)&&(e.count++,n=tp.bind(e),t.addEventListener(`load`,n),t.addEventListener(`error`,n))}}var $f=0;function ep(e,t){return e.stylesheets&&e.count===0&&rp(e,e.stylesheets),0<e.count||0<e.imgCount?function(n){var r=setTimeout(function(){if(e.stylesheets&&rp(e,e.stylesheets),e.unsuspend){var t=e.unsuspend;e.unsuspend=null,t()}},6e4+t);0<e.imgBytes&&$f===0&&($f=62500*Gd());var i=setTimeout(function(){if(e.waitingForImages=!1,e.count===0&&(e.stylesheets&&rp(e,e.stylesheets),e.unsuspend)){var t=e.unsuspend;e.unsuspend=null,t()}},(e.imgBytes>$f?50:800)+t);return e.unsuspend=n,function(){e.unsuspend=null,clearTimeout(r),clearTimeout(i)}}:null}function tp(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)rp(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var np=null;function rp(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,np=new Map,t.forEach(ip,e),np=null,tp.call(e))}function ip(e,t){if(!(t.state.loading&4)){var n=np.get(e);if(n)var r=n.get(null);else{n=new Map,np.set(e,n);for(var i=e.querySelectorAll(`link[data-precedence],style[data-precedence]`),a=0;a<i.length;a++){var o=i[a];(o.nodeName===`LINK`||o.getAttribute(`media`)!==`not all`)&&(n.set(o.dataset.precedence,o),r=o)}r&&n.set(null,r)}i=t.instance,o=i.getAttribute(`data-precedence`),a=n.get(o)||r,a===r&&n.set(null,i),n.set(o,i),this.count++,r=tp.bind(this),i.addEventListener(`load`,r),i.addEventListener(`error`,r),a?a.parentNode.insertBefore(i,a.nextSibling):(e=e.nodeType===9?e.head:e,e.insertBefore(i,e.firstChild)),t.state.loading|=4}}var ap={$$typeof:b,Provider:null,Consumer:null,_currentValue:I,_currentValue2:I,_threadCount:0};function op(e,t,n,r,i,a,o,s,c){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=Ge(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Ge(0),this.hiddenUpdates=Ge(null),this.identifierPrefix=r,this.onUncaughtError=i,this.onCaughtError=a,this.onRecoverableError=o,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=c,this.incompleteTransitions=new Map}function sp(e,t,n,r,i,a,o,s,c,l,u,d){return e=new op(e,t,n,o,c,l,u,d,s),t=1,!0===a&&(t|=24),a=ri(3,null,null,t),e.current=a,a.stateNode=e,t=ia(),t.refCount++,e.pooledCache=t,t.refCount++,a.memoizedState={element:r,isDehydrated:n,cache:t},La(a),e}function cp(e){return e?(e=ni,e):ni}function lp(e,t,n,r,i,a){i=cp(i),r.context===null?r.context=i:r.pendingContext=i,r=za(t),r.payload={element:n},a=a===void 0?null:a,a!==null&&(r.callback=a),n=Ba(e,r,t),n!==null&&(bu(n,e,t),Va(n,e,t))}function up(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function dp(e,t){up(e,t),(e=e.alternate)&&up(e,t)}function fp(e){if(e.tag===13||e.tag===31){var t=$r(e,67108864);t!==null&&bu(t,e,67108864),dp(e,67108864)}}function pp(e){if(e.tag===13||e.tag===31){var t=vu();t=Ze(t);var n=$r(e,t);n!==null&&bu(n,e,t),dp(e,t)}}var mp=!0;function hp(e,t,n,r){var i=P.T;P.T=null;var a=F.p;try{F.p=2,_p(e,t,n,r)}finally{F.p=a,P.T=i}}function gp(e,t,n,r){var i=P.T;P.T=null;var a=F.p;try{F.p=8,_p(e,t,n,r)}finally{F.p=a,P.T=i}}function _p(e,t,n,r){if(mp){var i=vp(r);if(i===null)jd(e,t,r,yp,n),Ap(e,r);else if(Mp(i,e,t,n,r))r.stopPropagation();else if(Ap(e,r),t&4&&-1<kp.indexOf(e)){for(;i!==null;){var a=ft(i);if(a!==null)switch(a.tag){case 3:if(a=a.stateNode,a.current.memoizedState.isDehydrated){var o=Be(a.pendingLanes);if(o!==0){var s=a;for(s.pendingLanes|=2,s.entangledLanes|=2;o;){var c=1<<31-Ne(o);s.entanglements[1]|=c,o&=~c}ud(a),!(zl&6)&&(ou=xe()+500,dd(0,!1))}}break;case 31:case 13:s=$r(a,2),s!==null&&bu(s,a,2),Eu(),dp(a,2)}if(a=vp(r),a===null&&jd(e,t,r,yp,n),a===i)break;i=a}i!==null&&r.stopPropagation()}else jd(e,t,r,null,n)}}function vp(e){return e=Zt(e),bp(e)}var yp=null;function bp(e){if(yp=null,e=dt(e),e!==null){var t=o(e);if(t===null)e=null;else{var n=t.tag;if(n===13){if(e=s(t),e!==null)return e;e=null}else if(n===31){if(e=c(t),e!==null)return e;e=null}else if(n===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null)}}return yp=e,null}function xp(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(Se()){case Ce:return 2;case we:return 8;case Te:case Ee:return 32;case De:return 268435456;default:return 32}default:return 32}}var Sp=!1,Cp=null,wp=null,Tp=null,Ep=new Map,Dp=new Map,Op=[],kp=`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 Ap(e,t){switch(e){case`focusin`:case`focusout`:Cp=null;break;case`dragenter`:case`dragleave`:wp=null;break;case`mouseover`:case`mouseout`:Tp=null;break;case`pointerover`:case`pointerout`:Ep.delete(t.pointerId);break;case`gotpointercapture`:case`lostpointercapture`:Dp.delete(t.pointerId)}}function jp(e,t,n,r,i,a){return e===null||e.nativeEvent!==a?(e={blockedOn:t,domEventName:n,eventSystemFlags:r,nativeEvent:a,targetContainers:[i]},t!==null&&(t=ft(t),t!==null&&fp(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,i!==null&&t.indexOf(i)===-1&&t.push(i),e)}function Mp(e,t,n,r,i){switch(t){case`focusin`:return Cp=jp(Cp,e,t,n,r,i),!0;case`dragenter`:return wp=jp(wp,e,t,n,r,i),!0;case`mouseover`:return Tp=jp(Tp,e,t,n,r,i),!0;case`pointerover`:var a=i.pointerId;return Ep.set(a,jp(Ep.get(a)||null,e,t,n,r,i)),!0;case`gotpointercapture`:return a=i.pointerId,Dp.set(a,jp(Dp.get(a)||null,e,t,n,r,i)),!0}return!1}function Np(e){var t=dt(e.target);if(t!==null){var n=o(t);if(n!==null){if(t=n.tag,t===13){if(t=s(n),t!==null){e.blockedOn=t,et(e.priority,function(){pp(n)});return}}else if(t===31){if(t=c(n),t!==null){e.blockedOn=t,et(e.priority,function(){pp(n)});return}}else if(t===3&&n.stateNode.current.memoizedState.isDehydrated){e.blockedOn=n.tag===3?n.stateNode.containerInfo:null;return}}}e.blockedOn=null}function Pp(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=vp(e.nativeEvent);if(n===null){n=e.nativeEvent;var r=new n.constructor(n.type,n);Xt=r,n.target.dispatchEvent(r),Xt=null}else return t=ft(n),t!==null&&fp(t),e.blockedOn=n,!1;t.shift()}return!0}function Fp(e,t,n){Pp(e)&&n.delete(t)}function Ip(){Sp=!1,Cp!==null&&Pp(Cp)&&(Cp=null),wp!==null&&Pp(wp)&&(wp=null),Tp!==null&&Pp(Tp)&&(Tp=null),Ep.forEach(Fp),Dp.forEach(Fp)}function Lp(e,n){e.blockedOn===n&&(e.blockedOn=null,Sp||(Sp=!0,t.unstable_scheduleCallback(t.unstable_NormalPriority,Ip)))}var Rp=null;function zp(e){Rp!==e&&(Rp=e,t.unstable_scheduleCallback(t.unstable_NormalPriority,function(){Rp===e&&(Rp=null);for(var t=0;t<e.length;t+=3){var n=e[t],r=e[t+1],i=e[t+2];if(typeof r!=`function`){if(bp(r||n)===null)continue;break}var a=ft(n);a!==null&&(e.splice(t,3),t-=3,Ss(a,{pending:!0,data:i,method:n.method,action:r},r,i))}}))}function Bp(e){function t(t){return Lp(t,e)}Cp!==null&&Lp(Cp,e),wp!==null&&Lp(wp,e),Tp!==null&&Lp(Tp,e),Ep.forEach(t),Dp.forEach(t);for(var n=0;n<Op.length;n++){var r=Op[n];r.blockedOn===e&&(r.blockedOn=null)}for(;0<Op.length&&(n=Op[0],n.blockedOn===null);)Np(n),n.blockedOn===null&&Op.shift();if(n=(e.ownerDocument||e).$$reactFormReplay,n!=null)for(r=0;r<n.length;r+=3){var i=n[r],a=n[r+1],o=i[rt]||null;if(typeof a==`function`)o||zp(n);else if(o){var s=null;if(a&&a.hasAttribute(`formAction`)){if(i=a,o=a[rt]||null)s=o.formAction;else if(bp(i)!==null)continue}else s=o.action;typeof s==`function`?n[r+1]=s:(n.splice(r,3),r-=3),zp(n)}}}function Vp(){function e(e){e.canIntercept&&e.info===`react-transition`&&e.intercept({handler:function(){return new Promise(function(e){return i=e})},focusReset:`manual`,scroll:`manual`})}function t(){i!==null&&(i(),i=null),r||setTimeout(n,20)}function n(){if(!r&&!navigation.transition){var e=navigation.currentEntry;e&&e.url!=null&&navigation.navigate(e.url,{state:e.getState(),info:`react-transition`,history:`replace`})}}if(typeof navigation==`object`){var r=!1,i=null;return navigation.addEventListener(`navigate`,e),navigation.addEventListener(`navigatesuccess`,t),navigation.addEventListener(`navigateerror`,t),setTimeout(n,100),function(){r=!0,navigation.removeEventListener(`navigate`,e),navigation.removeEventListener(`navigatesuccess`,t),navigation.removeEventListener(`navigateerror`,t),i!==null&&(i(),i=null)}}}function Hp(e){this._internalRoot=e}Up.prototype.render=Hp.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(i(409));var n=t.current;lp(n,vu(),e,t,null,null)},Up.prototype.unmount=Hp.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;lp(e.current,2,null,e,null,null),Eu(),t[it]=null}};function Up(e){this._internalRoot=e}Up.prototype.unstable_scheduleHydration=function(e){if(e){var t=$e();e={blockedOn:null,target:e,priority:t};for(var n=0;n<Op.length&&t!==0&&t<Op[n].priority;n++);Op.splice(n,0,e),n===0&&Np(e)}};var Wp=n.version;if(Wp!==`19.2.5`)throw Error(i(527,Wp,`19.2.5`));F.findDOMNode=function(e){var t=e._reactInternals;if(t===void 0)throw typeof e.render==`function`?Error(i(188)):(e=Object.keys(e).join(`,`),Error(i(268,e)));return e=u(t),e=e===null?null:d(e),e=e===null?null:e.stateNode,e};var Gp={bundleType:0,version:`19.2.5`,rendererPackageName:`react-dom`,currentDispatcherRef:P,reconcilerVersion:`19.2.5`};
10if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<`u`){var Kp=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Kp.isDisabled&&Kp.supportsFiber)try{Ae=Kp.inject(Gp),je=Kp}catch{}}e.hydrateRoot=function(e,t,n){if(!a(e))throw Error(i(299));var r=!1,o=``,s=Gs,c=Ks,l=qs,u=null;return n!=null&&(!0===n.unstable_strictMode&&(r=!0),n.identifierPrefix!==void 0&&(o=n.identifierPrefix),n.onUncaughtError!==void 0&&(s=n.onUncaughtError),n.onCaughtError!==void 0&&(c=n.onCaughtError),n.onRecoverableError!==void 0&&(l=n.onRecoverableError),n.formState!==void 0&&(u=n.formState)),t=sp(e,1,!0,t,n??null,r,o,u,s,c,l,Vp),t.context=cp(null),n=t.current,r=vu(),r=Ze(r),o=za(r),o.callback=null,Ba(n,o,r),n=r,t.current.lanes=n,Ke(t,n),ud(t),e[it]=t.current,kd(e),new Up(t)}})),wu=l(((e,t)=>{function n(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>`u`||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!=`function`))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(n)}catch(e){console.error(e)}}n(),t.exports=Cu()})),Tu=`__TSS_CONTEXT`,Eu=Symbol.for(`TSS_SERVER_FUNCTION`),Du=Symbol.for(`TSS_SERVER_FUNCTION_FACTORY`),Ou=`application/x-tss-framed`,ku={JSON:0,CHUNK:1,END:2,ERROR:3};`${Ou}`;var Au=/;\s*v=(\d+)/;function ju(e){let t=e.match(Au);return t?parseInt(t[1],10):void 0}function Mu(e){let t=ju(e);if(t!==void 0&&t!==1)throw Error(`Incompatible framed protocol version: server=${t}, client=1. Please ensure client and server are using compatible versions.`)}var Nu=()=>window.__TSS_START_OPTIONS__;function Pu(e,t=String){let n=new URLSearchParams;for(let r in e){let i=e[r];i!==void 0&&n.set(r,t(i))}return n.toString()}function Fu(e){return e?e===`false`?!1:e===`true`?!0:e*0==0&&+e+``===e?+e:e:``}function Iu(e){let t=new URLSearchParams(e),n=Object.create(null);for(let[e,r]of t.entries()){let t=n[e];t==null?n[e]=Fu(r):Array.isArray(t)?t.push(Fu(r)):n[e]=[t,Fu(r)]}return n}var Lu=zu(JSON.parse),Ru=Bu(JSON.stringify,JSON.parse);function zu(e){return t=>{t[0]===`?`&&(t=t.substring(1));let n=Iu(t);for(let t in n){let r=n[t];if(typeof r==`string`)try{n[t]=e(r)}catch{}}return n}}function Bu(e,t){let n=typeof t==`function`;function r(r){if(typeof r==`object`&&r)try{return e(r)}catch{}else if(n&&typeof r==`string`)try{return t(r),e(r)}catch{}return r}return e=>{let t=Pu(e,r);return t?`?${t}`:``}}var Vu=e=>{if(!e.rendered)return e.rendered=!0,e.onReady?.()},Hu=e=>e.stores.matchesId.get().some(t=>e.stores.matchStores.get(t)?.get()._forcePending),Uu=(e,t)=>!!(e.preload&&!e.router.stores.matchStores.has(t)),Wu=(e,t,n=!0)=>{let r={...e.router.options.context??{}},i=n?t:t-1;for(let t=0;t<=i;t++){let n=e.matches[t];if(!n)continue;let i=e.router.getMatch(n.id);
10i&&Object.assign(r,i.__routeContext,i.__beforeLoadContext)}return r},Gu=(e,t)=>{if(!e.matches.length)return;let n=t.routeId,r=e.matches.findIndex(t=>t.routeId===e.router.routeTree.id),i=r>=0?r:0,a=n?e.matches.findIndex(e=>e.routeId===n):e.firstBadMatchIndex??e.matches.length-1;a<0&&(a=i);for(let t=a;t>=0;t--){let n=e.matches[t];if(e.router.looseRoutesById[n.routeId].options.notFoundComponent)return t}return n?a:i},Ku=(e,t,n)=>{if(!(!ve(n)&&!ye(n)))throw ve(n)&&n.redirectHandled&&!n.options.reloadDocument?n:(t&&(t._nonReactive.beforeLoadPromise?.resolve(),t._nonReactive.loaderPromise?.resolve(),t._nonReactive.beforeLoadPromise=void 0,t._nonReactive.loaderPromise=void 0,t._nonReactive.error=n,e.updateMatch(t.id,r=>({...r,status:ve(n)?`redirected`:ye(n)?`notFound`:r.status===`pending`?`success`:r.status,context:Wu(e,t.index),isFetching:!1,error:n})),ye(n)&&!n.routeId&&(n.routeId=t.routeId),t._nonReactive.loadPromise?.resolve()),ve(n)&&(e.rendered=!0,n.options._fromLocation=e.location,n.redirectHandled=!0,n=e.router.resolveRedirect(n)),n)},qu=(e,t)=>{let n=e.router.getMatch(t);return!!(!n||n._nonReactive.dehydrated)},Ju=(e,t,n)=>{let r=Wu(e,n);e.updateMatch(t,e=>({...e,context:r}))},Yu=(e,t,n)=>{let{id:r,routeId:i}=e.matches[t],a=e.router.looseRoutesById[i];if(n instanceof Promise)throw n;e.firstBadMatchIndex??=t,Ku(e,e.router.getMatch(r),n);try{a.options.onError?.(n)}catch(t){n=t,Ku(e,e.router.getMatch(r),n)}e.updateMatch(r,e=>(e._nonReactive.beforeLoadPromise?.resolve(),e._nonReactive.beforeLoadPromise=void 0,e._nonReactive.loadPromise?.resolve(),{...e,error:n,status:`error`,isFetching:!1,updatedAt:Date.now(),abortController:new AbortController})),!e.preload&&!ve(n)&&!ye(n)&&(e.serialError??=n)},Xu=(e,t,n,r)=>{if(r._nonReactive.pendingTimeout!==void 0)return;let i=n.options.pendingMs??e.router.options.defaultPendingMs;if(e.onReady&&!Uu(e,t)&&(n.options.loader||n.options.beforeLoad||sd(n))&&typeof i==`number`&&i!==1/0&&(n.options.pendingComponent??e.router.options?.defaultPendingComponent)){let t=setTimeout(()=>{Vu(e)},i);r._nonReactive.pendingTimeout=t}},Zu=(e,t,n)=>{let r=e.router.getMatch(t);if(!r._nonReactive.beforeLoadPromise&&!r._nonReactive.loaderPromise)return;Xu(e,t,n,r);let i=()=>{let n=e.router.getMatch(t);n.preload&&(n.status===`redirected`||n.status===`notFound`)&&Ku(e,n,n.error)};return r._nonReactive.beforeLoadPromise?r._nonReactive.beforeLoadPromise.then(i):i()},Qu=(e,t,n,r)=>{let i=e.router.getMatch(t),a=i._nonReactive.loadPromise;i._nonReactive.loadPromise=h(()=>{a?.resolve(),a=void 0});let{paramsError:o,searchError:s}=i;o&&Yu(e,n,o),s&&Yu(e,n,s),Xu(e,t,r,i);let c=new AbortController,l=!1,u=()=>{l||(l=!0,e.updateMatch(t,e=>({...e,isFetching:`beforeLoad`,fetchCount:e.fetchCount+1,abortController:c})))},d=()=>{i._nonReactive.beforeLoadPromise?.resolve(),i._nonReactive.beforeLoadPromise=void 0,e.updateMatch(t,e=>({...e,isFetching:!1}))};if(!r.options.beforeLoad){e.router.batch(()=>{u(),d()});return}i._nonReactive.beforeLoadPromise=h();let f={...Wu(e,n,!1),...i.__routeContext},{search:p,params:m,cause:g}=i,_=Uu(e,t),y={search:p,abortController:c,params:m,preload:_,context:f,location:e.location,navigate:t=>e.router.navigate({...t,_fromLocation:e.location}),buildLocation:e.router.buildLocation,cause:_?`preload`:g,matches:e.matches,routeId:r.id,...e.router.options.additionalContext},b=r=>{if(r===void 0){e.router.batch(()=>{u(),d()});return}(ve(r)||ye(r))&&(u(),Yu(e,n,r)),e.router.batch(()=>{u(),e.updateMatch(t,e=>({...e,__beforeLoadContext:r})),d()})},x;try{if(x=r.options.beforeLoad(y),v(x))return u(),x.catch(t=>{Yu(e,n,t)}).then(b)}catch(t){u(),Yu(e,n,t)}b(x)},$u=(e,t)=>{let{id:n,routeId:r}=e.matches[t],i=e.router.looseRoutesById[r],a=()=>s(),o=()=>Qu(e,n,t,i),s=()=>{if(qu(e,n))return;let t=Zu(e,n,i);return v(t)?t.then(o):o()};return a()},ed=(e,t,n)=>{let r=e.router.getMatch(t);if(!r||!n.options.head&&!n.options.scripts&&!n.options.headers)return;let i={ssr:e.router.options.ssr,matches:e.matches,match:r,params:r.params,loaderData:r.loaderData};return Promise.all([n.options.head?.(i),n.options.scripts?.(i),n.options.headers?.(i)]).then(([e,t,n])=>({meta:e?.meta,links:e?.links,headScripts:e?.scripts,headers:n,scripts:t,styles:e?.styles}))},td=(e,t,n,r,i)=>{let a=t[r-1],{params:o,loaderDeps:s,abortController:c,cause:l}=e.router.getMatch(n),u=Wu(e,r),d=Uu(e,n);return{params:o,deps:s,preload:!!d,parentMatchPromise:a,abortController:c,context:u,location:e.location,navigate:t=>e.router.navigate({...t,_fromLocation:e.location}),cause:d?`preload`:l,route:i,...e.router.options.additionalContext}},nd=async(e,t,n,r,i)=>{try{let a=e.router.getMatch(n);try{od(i);let o=i.options.loader,s=typeof o==`function`?o:o?.handler,c=s?.(td(e,t,n,r,i)),l=!!s&&v(c);if((l||i._lazyPromise||i._componentsPromise||i.options.head||i.options.scripts||i.options.headers||a._nonReactive.minPendingPromise)&&e.updateMatch(n,e=>({...e,isFetching:`loader`})),s){let t=l?await c:c;Ku(e,e.router.getMatch(n),t),t!==void 0&&e.updateMatch(n,e=>({...e,loaderData:t}))}i._lazyPromise&&await i._lazyPromise;let u=a._nonReactive.minPendingPromise;u&&await u,i._componentsPromise&&await i._componentsPromise,e.updateMatch(n,t=>({...t,error:void 0,context:Wu(e,r),status:`success`,isFetching:!1,updatedAt:Date.now()}))}catch(t){let o=t;if(o?.name===`AbortError`){if(a.abortController.signal.aborted){a._nonReactive.loaderPromise?.resolve(),a._nonReactive.loaderPromise=void 0;return}e.updateMatch(n,t=>
10({...t,status:t.status===`pending`?`success`:t.status,isFetching:!1,context:Wu(e,r)}));return}let s=a._nonReactive.minPendingPromise;s&&await s,ye(t)&&await i.options.notFoundComponent?.preload?.(),Ku(e,e.router.getMatch(n),t);try{i.options.onError?.(t)}catch(t){o=t,Ku(e,e.router.getMatch(n),t)}!ve(o)&&!ye(o)&&await od(i,[`errorComponent`]),e.updateMatch(n,t=>({...t,error:o,context:Wu(e,r),status:`error`,isFetching:!1}))}}catch(t){let r=e.router.getMatch(n);r&&(r._nonReactive.loaderPromise=void 0),Ku(e,r,t)}},rd=async(e,t,n)=>{async function r(r,a,c,l,d){let f=Date.now()-a.updatedAt,p=r?d.options.preloadStaleTime??e.router.options.defaultPreloadStaleTime??3e4:d.options.staleTime??e.router.options.defaultStaleTime??0,m=d.options.shouldReload,h=typeof m==`function`?m(td(e,t,i,n,d)):m,{status:g,invalid:_}=l,v=f>=p&&(!!e.forceStaleReload||l.cause===`enter`||c!==void 0&&c!==l.id);o=g===`success`&&(_||(h??v)),r&&d.options.preload===!1||(o&&!e.sync&&u?(s=!0,(async()=>{try{await nd(e,t,i,n,d);let r=e.router.getMatch(i);r._nonReactive.loaderPromise?.resolve(),r._nonReactive.loadPromise?.resolve(),r._nonReactive.loaderPromise=void 0,r._nonReactive.loadPromise=void 0}catch(t){ve(t)&&await e.router.navigate(t.options)}})()):g!==`success`||o?await nd(e,t,i,n,d):Ju(e,i,n))}let{id:i,routeId:a}=e.matches[n],o=!1,s=!1,c=e.router.looseRoutesById[a],l=c.options.loader,u=((typeof l==`function`?void 0:l?.staleReloadMode)??e.router.options.defaultStaleReloadMode)!==`blocking`;if(qu(e,i)){if(!e.router.getMatch(i))return e.matches[n];Ju(e,i,n)}else{let t=e.router.getMatch(i),o=e.router.stores.matchesId.get()[n],s=(o&&e.router.stores.matchStores.get(o)||null)?.routeId===a?o:e.router.stores.matches.get().find(e=>e.routeId===a)?.id,l=Uu(e,i);if(t._nonReactive.loaderPromise){if(t.status===`success`&&!e.sync&&!t.preload&&u)return t;await t._nonReactive.loaderPromise;let n=e.router.getMatch(i),a=n._nonReactive.error||n.error;a&&Ku(e,n,a),n.status===`pending`&&await r(l,t,s,n,c)}else{let n=l&&!e.router.stores.matchStores.has(i),a=e.router.getMatch(i);a._nonReactive.loaderPromise=h(),n!==a.preload&&e.updateMatch(i,e=>({...e,preload:n})),await r(l,t,s,a,c)}}let d=e.router.getMatch(i);s||(d._nonReactive.loaderPromise?.resolve(),d._nonReactive.loadPromise?.resolve(),d._nonReactive.loadPromise=void 0),clearTimeout(d._nonReactive.pendingTimeout),d._nonReactive.pendingTimeout=void 0,s||(d._nonReactive.loaderPromise=void 0),d._nonReactive.dehydrated=void 0;let f=s?d.isFetching:!1;return f!==d.isFetching||d.invalid!==!1?(e.updateMatch(i,e=>({...e,isFetching:f,invalid:!1})),e.router.getMatch(i)):d};async function id(e){let t=e,n=[];Hu(t.router)&&Vu(t);let r;for(let e=0;e<t.matches.length;e++){try{let n=$u(t,e);v(n)&&await n}catch(e){if(ve(e))throw e;if(ye(e))r=e;else if(!t.preload)throw e;break}if(t.serialError||t.firstBadMatchIndex!=null)break}let i=t.firstBadMatchIndex??t.matches.length,a=r&&!t.preload?Gu(t,r):void 0,o=r&&t.preload?0:a===void 0?i:Math.min(a+1,i),s,c;for(let e=0;e<o;e++)n.push(rd(t,n,e));try{await Promise.all(n)}catch{let e=await Promise.allSettled(n);for(let t of e){if(t.status!==`rejected`)continue;let e=t.reason;if(ve(e))throw e;ye(e)?s??=e:c??=e}if(c!==void 0)throw c}let l=s??(r&&!t.preload?r:void 0),u=t.firstBadMatchIndex===void 0?t.matches.length-1:t.firstBadMatchIndex;if(!l&&r&&t.preload)return t.matches;if(l){let e=Gu(t,l);e===void 0&&j();let n=t.matches[e],r=t.router.looseRoutesById[n.routeId],i=t.router.options?.defaultNotFoundComponent;!r.options.notFoundComponent&&i&&(r.options.notFoundComponent=i),l.routeId=n.routeId;let a=n.routeId===t.router.routeTree.id;t.updateMatch(n.id,e=>({...e,...a?{status:`success`,globalNotFound:!0,error:void 0}:{status:`notFound`,error:l},isFetching:!1})),u=e,await od(r,[`notFoundComponent`])}else if(!t.preload){let e=t.matches[0];e.globalNotFound||t.router.getMatch(e.id)?.globalNotFound&&t.updateMatch(e.id,e=>({...e,globalNotFound:!1,error:void 0}))}if(t.serialError&&t.firstBadMatchIndex!==void 0){let e=t.router.looseRoutesById[t.matches[t.firstBadMatchIndex].routeId];await od(e,[`errorComponent`])}for(let e=0;e<=u;e++){let{id:n,routeId:r}=t.matches[e],i=t.router.looseRoutesById[r];try{let e=ed(t,n,i);if(e){let r=await e;t.updateMatch(n,e=>({...e,...r}))}}catch(e){console.error(`Error executing head for route ${r}:`,e)}}let d=Vu(t);
10if(v(d)&&await d,l)throw l;if(t.serialError&&!t.preload&&!t.onReady)throw t.serialError;return t.matches}function ad(e,t){let n=t.map(t=>e.options[t]?.preload?.()).filter(Boolean);if(n.length!==0)return Promise.all(n)}function od(e,t=cd){!e._lazyLoaded&&e._lazyPromise===void 0&&(e.lazyFn?e._lazyPromise=e.lazyFn().then(t=>{let{id:n,...r}=t.options;Object.assign(e.options,r),e._lazyLoaded=!0,e._lazyPromise=void 0}):e._lazyLoaded=!0);let n=()=>e._componentsLoaded?void 0:t===cd?(()=>{if(e._componentsPromise===void 0){let t=ad(e,cd);t?e._componentsPromise=t.then(()=>{e._componentsLoaded=!0,e._componentsPromise=void 0}):e._componentsLoaded=!0}return e._componentsPromise})():ad(e,t);return e._lazyPromise?e._lazyPromise.then(n):n()}function sd(e){for(let t of cd)if(e.options[t]?.preload)return!0;return!1}var cd=[`component`,`errorComponent`,`pendingComponent`,`notFoundComponent`];function ld(e){return{input:({url:t})=>{for(let n of e)t=dd(n,t);return t},output:({url:t})=>{for(let n=e.length-1;n>=0;n--)t=fd(e[n],t);return t}}}function ud(e){let t=ae(e.basepath),n=`/${t}`,r=e.caseSensitive?n:n.toLowerCase(),i=`${r}/`;return{input:({url:t})=>{let a=e.caseSensitive?t.pathname:t.pathname.toLowerCase();return a===r?t.pathname=`/`:a.startsWith(i)&&(t.pathname=t.pathname.slice(n.length)),t},output:({url:e})=>(e.pathname=R([`/`,t,e.pathname]),e)}}function dd(e,t){let n=e?.input?.({url:t});if(n){if(typeof n==`string`)return new URL(n);if(n instanceof URL)return n}return t}function fd(e,t){let n=e?.output?.({url:t});if(n){if(typeof n==`string`)return new URL(n);if(n instanceof URL)return n}return t}function pd(t,n){let{createMutableStore:r,createReadonlyStore:i,batch:a,init:o}=n,s=new Map,c=new Map,l=new Map,u=r(t.status),d=r(t.loadedAt),f=r(t.isLoading),p=r(t.isTransitioning),m=r(t.location),h=r(t.resolvedLocation),g=r(t.statusCode),_=r(t.redirect),v=r([]),y=r([]),b=r([]),x=i(()=>md(s,v.get())),S=i(()=>md(c,y.get())),C=i(()=>md(l,b.get())),w=i(()=>v.get()[0]),E=i(()=>v.get().some(e=>s.get(e)?.get().status===`pending`)),D=i(()=>({locationHref:m.get().href,resolvedLocationHref:h.get()?.href,status:u.get()})),O=i(()=>({status:u.get(),loadedAt:d.get(),isLoading:f.get(),isTransitioning:p.get(),matches:x.get(),location:m.get(),resolvedLocation:h.get(),statusCode:g.get(),redirect:_.get()})),k=e(64);function A(e){let t=k.get(e);return t||(t=i(()=>{let t=v.get();for(let n of t){let t=s.get(n);if(t&&t.routeId===e)return t.get()}}),k.set(e,t)),t}let j={status:u,loadedAt:d,isLoading:f,isTransitioning:p,location:m,resolvedLocation:h,statusCode:g,redirect:_,matchesId:v,pendingIds:y,cachedIds:b,matches:x,pendingMatches:S,cachedMatches:C,firstId:w,hasPending:E,matchRouteDeps:D,matchStores:s,pendingMatchStores:c,cachedMatchStores:l,__store:O,getRouteMatchStore:A,setMatches:M,setPending:N,setCached:P};M(t.matches),o?.(j);function M(e){hd(e,s,v,r,a)}function N(e){hd(e,c,y,r,a)}function P(e){hd(e,l,b,r,a)}return j}function md(e,t){let n=[];for(let r of t){let t=e.get(r);t&&n.push(t.get())}return n}function hd(e,t,n,r,i){let a=e.map(e=>e.id),o=new Set(a);i(()=>{for(let e of t.keys())o.has(e)||t.delete(e);for(let n of e){let e=t.get(n.id);if(!e){let e=r(n);e.routeId=n.routeId,t.set(n.id,e);continue}e.routeId=n.routeId,e.get()!==n&&e.set(n)}p(n.get(),a)||n.set(a)})}var gd=`__TSR_index`,_d=`popstate`,vd=`beforeunload`;function yd(e){let t=e.getLocation(),n=new Set,r=r=>{t=e.getLocation(),n.forEach(e=>e({location:t,action:r}))},i=n=>{e.notifyOnIndexChange??!0?r(n):t=e.getLocation()},a=async({task:n,navigateOpts:r,...i})=>{if(r?.ignoreBlocker??!1){n();return}let a=e.getBlockers?.()??[],o=i.type===`PUSH`||i.type===`REPLACE`;if(typeof document<`u`&&a.length&&o)for(let n of a){let r=Cd(i.path,i.state);if(await n.blockerFn({currentLocation:t,nextLocation:r,action:i.type})){e.onBlocked?.();return}}n()};return{get location(){return t},get length(){return e.getLength()},subscribers:n,subscribe:e=>(n.add(e),()=>{n.delete(e)}),push:(n,i,o)=>{let s=t.state[gd];i=bd(s+1,i),a({task:()=>{e.pushState(n,i),r({type:`PUSH`})},navigateOpts:o,type:`PUSH`,path:n,state:i})},replace:(n,i,o)=>{let s=t.state[gd];i=bd(s,i),a({task:()=>{e.replaceState(n,i),r({type:`REPLACE`})},navigateOpts:o,type:`REPLACE`,path:n,state:i})},go:(t,n)=>{a({task:()=>{e.go(t),i({type:`GO`,index:t})},navigateOpts:n,type:`GO`})},back:t=>{a({task:()=>{e.back(t?.ignoreBlocker??!1),i({type:`BACK`})},navigateOpts:t,type:`BACK`})},forward:t=>{a({task:()=>{e.forward(t?.ignoreBlocker??!1),i({type:`FORWARD`})},navigateOpts:t,type:`FORWARD`})},canGoBack:()=>t.state[gd]!==0,createHref:t=>e.createHref(t),block:t=>{if(!e.setBlockers)return()=>{};let n=e.getBlockers?.()??[];return e.setBlockers([...n,t]),()=>{let n=e.getBlockers?.()??[];e.setBlockers?.(n.filter(e=>e!==t))}},flush:()=>e.flush?.(),destroy:()=>e.destroy?.(),notify:r}}function bd(e,t){t||={};let n=wd();return{...t,key:n,__TSR_key:n,[gd]:e}}function xd(e){let t=e?.window??(typeof document<`u`?window:void 0),n=t.history.pushState,r=t.history.replaceState,i=[],a=()=>i,o=e=>i=e,s=e?.createHref??(e=>e),c=e?.parseLocation??(()=>Cd(`${t.location.pathname}${t.location.search}${t.location.hash}`,t.history.state));if(!t.history.state?.__TSR_key&&!t.history.state?.key){let e=wd();t.history.replaceState({[gd]:0,key:e,__TSR_key:e},``)}let l=c(),u,d=!1,f=!1,p=!1,m=!1,h=()=>l,g,_,v=()=>{g&&(C._ignoreSubscribers=!0,(g.isPush?t.history.pushState:t.history.replaceState)(g.state,``,g.href),C._ignoreSubscribers=!1,g=void 0,_=void 0,u=void 0)},y=(e,t,n)=>{let r=s(t);_||(u=l),l=Cd(t,n),g={href:r,state:n,isPush:g?.isPush||e===`push`},_||=Promise.resolve().then(()=>v())},b=e=>{l=c(),C.notify({type:e})},x=async()=>
10{if(f){f=!1;return}let e=c(),n=e.state[gd]-l.state[gd],r=n===1,i=n===-1,o=!r&&!i||d;d=!1;let s=o?`GO`:i?`BACK`:`FORWARD`,u=o?{type:`GO`,index:n}:{type:i?`BACK`:`FORWARD`};if(p)p=!1;else{let n=a();if(typeof document<`u`&&n.length){for(let r of n)if(await r.blockerFn({currentLocation:l,nextLocation:e,action:s})){f=!0,t.history.go(1),C.notify(u);return}}}l=c(),C.notify(u)},S=e=>{if(m){m=!1;return}let t=!1,n=a();if(typeof document<`u`&&n.length)for(let e of n){let n=e.enableBeforeUnload??!0;if(n===!0){t=!0;break}if(typeof n==`function`&&n()===!0){t=!0;break}}if(t)return e.preventDefault(),e.returnValue=``},C=yd({getLocation:h,getLength:()=>t.history.length,pushState:(e,t)=>y(`push`,e,t),replaceState:(e,t)=>y(`replace`,e,t),back:e=>(e&&(p=!0),m=!0,t.history.back()),forward:e=>{e&&(p=!0),m=!0,t.history.forward()},go:e=>{d=!0,t.history.go(e)},createHref:e=>s(e),flush:v,destroy:()=>{t.history.pushState=n,t.history.replaceState=r,t.removeEventListener(vd,S,{capture:!0}),t.removeEventListener(_d,x)},onBlocked:()=>{u&&l!==u&&(l=u)},getBlockers:a,setBlockers:o,notifyOnIndexChange:!1});return t.addEventListener(vd,S,{capture:!0}),t.addEventListener(_d,x),t.history.pushState=function(...e){let r=n.apply(t.history,e);return C._ignoreSubscribers||b(`PUSH`),r},t.history.replaceState=function(...e){let n=r.apply(t.history,e);return C._ignoreSubscribers||b(`REPLACE`),n},C}function Sd(e){let t=e.replace(/[\x00-\x1f\x7f]/g,``);return t.startsWith(`//`)&&(t=`/`+t.replace(/^\/+/,``)),t}function Cd(e,t){let n=Sd(e),r=n.indexOf(`#`),i=n.indexOf(`?`),a=wd();return{href:n,pathname:n.substring(0,r>0?i>0?Math.min(r,i):r:i>0?i:n.length),hash:r>-1?n.substring(r):``,search:i>-1?n.slice(i,r===-1?void 0:r):``,state:t||{[gd]:0,key:a,__TSR_key:a}}}function wd(){return(Math.random()+1).toString(36).substring(7)}function Td(e){return e instanceof Error?{name:e.name,message:e.message}:{data:e}}function Ed(e,t){let n=t,r=e;return{fromLocation:n,toLocation:r,pathChanged:n?.pathname!==r.pathname,hrefChanged:n?.href!==r.href,hashChanged:n?.hash!==r.hash}}var K=new WeakMap,Dd=class{constructor(i,s){this.tempLocationKey=`${Math.round(Math.random()*1e7)}`,this.resetNextScroll=!0,this.shouldViewTransition=void 0,this.isViewTransitionTypesSupported=void 0,this.subscribers=new Set,this.isScrollRestoring=!1,this.isScrollRestorationSetup=!1,this.routeBranchCache=new WeakMap,this.startTransition=e=>e(),this.update=t=>{let n=this.options,r=this.basepath??n?.basepath??`/`,i=this.basepath===void 0,a=n?.rewrite;if(this.options={...n,...t},this.isServer=this.options.isServer??typeof document>`u`,this.protocolAllowlist=new Set(this.options.protocolAllowlist),this.options.pathParamsAllowedCharacters&&(this.pathParamsDecoder=k(this.options.pathParamsAllowedCharacters)),(!this.history||this.options.history&&this.options.history!==this.history)&&(this.options.history?this.history=this.options.history:this.history=xd()),this.origin=this.options.origin,this.origin||(window?.origin&&window.origin!==`null`?this.origin=window.origin:this.origin=`http://localhost`),this.history&&this.updateLatestLocation(),this.options.routeTree!==this.routeTree){this.routeTree=this.options.routeTree;let t;this.resolvePathCache=e(1e3),t=this.buildRouteTree(),this.setRoutes(t)}if(!this.stores&&this.latestLocation){let e=this.getStoreConfig(this);this.batch=e.batch,this.stores=pd(Ad(this.latestLocation),e),Xd(this)}let o=!1,s=this.options.basepath??`/`,c=this.options.rewrite;if(i||r!==s||a!==c){this.basepath=s;let e=[],t=ae(s);t&&t!==`/`&&e.push(ud({basepath:s})),c&&e.push(c),this.rewrite=e.length===0?void 0:e.length===1?e[0]:ld(e),this.history&&this.updateLatestLocation(),o=!0}o&&this.stores&&this.stores.location.set(this.latestLocation),typeof window<`u`&&`CSS`in window&&typeof window.CSS?.supports==`function`&&(this.isViewTransitionTypesSupported=window.CSS.supports(`selector(:active-view-transition-type(a))`))},this.updateLatestLocation=()=>{this.latestLocation=this.parseLocation(this.history.location,this.latestLocation)},this.buildRouteTree=()=>{let e=M(this.routeTree,this.options.caseSensitive,(e,t)=>{e.init({originalIndex:t})});return this.options.routeMasks&&m(this.options.routeMasks,e.processedTree),e},this.subscribe=(e,t)=>
10{let n={eventType:e,fn:t};return this.subscribers.add(n),()=>{this.subscribers.delete(n)}},this.emit=e=>{this.subscribers.forEach(t=>{t.eventType===e.type&&t.fn(e)})},this.parseLocation=(e,t)=>{let n=({pathname:e,search:n,hash:r,href:i,state:s})=>{if(!this.rewrite&&!/[ \x00-\x1f\x7f\u0080-\uffff]/.test(e)){let i=this.options.parseSearch(n),c=this.options.stringifySearch(i);return{href:e+c+r,publicHref:e+c+r,pathname:a(e).path,external:!1,searchStr:c,search:o(t?.search,i),hash:a(r.slice(1)).path,state:u(t?.state,s)}}let c=new URL(i,this.origin),l=dd(this.rewrite,c),d=this.options.parseSearch(l.search),f=this.options.stringifySearch(d);return l.search=f,{href:l.href.replace(l.origin,``),publicHref:i,pathname:a(l.pathname).path,external:!!this.rewrite&&l.origin!==this.origin,searchStr:f,search:o(t?.search,d),hash:a(l.hash.slice(1)).path,state:u(t?.state,s)}},r=n(e),{__tempLocation:i,__tempKey:s}=r.state;if(i&&(!s||s===this.tempLocationKey)){let e=n(i);return e.state.key=r.state.key,e.state.__TSR_key=r.state.__TSR_key,delete e.state.__tempLocation,{...e,maskedLocation:r}}return r},this.resolvePathWithBase=(e,t)=>E({base:e,to:t.includes(`//`)?P(t):t,trailingSlash:this.options.trailingSlash,cache:this.resolvePathCache}),this.matchRoutes=(e,t,n)=>typeof e==`string`?this.matchRoutesInternal({pathname:e,search:t},n):this.matchRoutesInternal(e,t),this.getMatchedRoutes=e=>Md({pathname:e,routesById:this.routesById,processedTree:this.processedTree}),this.cancelMatch=e=>{let t=this.getMatch(e);t&&(t.abortController.abort(),clearTimeout(t._nonReactive.pendingTimeout),t._nonReactive.pendingTimeout=void 0)},this.cancelMatches=()=>{this.stores.pendingIds.get().forEach(e=>{this.cancelMatch(e)}),this.stores.matchesId.get().forEach(e=>{if(this.stores.pendingMatchStores.has(e))return;let t=this.stores.matchStores.get(e)?.get();t&&(t.status===`pending`||t.isFetching===`loader`)&&this.cancelMatch(e)})},this.buildLocation=e=>{let r=(r={})=>{let i=r._fromLocation||this.pendingBuiltLocation||this.latestLocation,s=this.matchRoutesLightweight(i);r.from;let c=r.unsafeRelative===`path`?i.pathname:r.from??s.fullPath,l=r.to?`${r.to}`:void 0,f=s.search,p=Object.assign(Object.create(null),s.params),m=l?.charCodeAt(0)===47?`/`:this.resolvePathWithBase(c,`.`),h=l?this.resolvePathWithBase(m,l):m,g=r.params===!1||r.params===null?Object.create(null):(r.params??!0)===!0?p:Object.assign(p,z(r.params,p)),_=this.routesByPath[n(h)],v;if(_)v=this.getRouteBranch(_);else if(h.includes(`$`))v=[];else{let e=this.getMatchedRoutes(h);v=e.matchedRoutes,this.options.notFoundRoute&&(!e.foundRoute||e.foundRoute.path!==`/`&&e.routeParams[`**`])&&(v=[...v,this.options.notFoundRoute])}if(v.length&&t(g))for(let e of v){let t=e.options.params?.stringify??e.options.stringifyParams;if(t)try{Object.assign(g,t(g))}catch{}}let y=e.leaveParams?h:a(C({path:h,params:g,decoder:this.pathParamsDecoder,server:this.isServer}).interpolatedPath).path,b=f;if(e._includeValidateSearch&&this.options.search?.strict){let e={};v.forEach(t=>{if(t.options.validateSearch)try{Object.assign(e,jd(t.options.validateSearch,{...e,...b}))}catch{}}),b=e}b=Nd({search:b,dest:r,destRoutes:v,_includeValidateSearch:e._includeValidateSearch}),b=o(f,b);let x=this.options.stringifySearch(b),S=r.hash===!0?i.hash:r.hash?z(r.hash,i.hash):void 0,w=S?`#${S}`:``,E=r.state===!0?i.state:r.state?z(r.state,i.state):{};E=u(i.state,E);let D=`${y}${x}${w}`,O,k,A=!1;if(this.rewrite){let e=new URL(D,this.origin),t=fd(this.rewrite,e);O=e.href.replace(e.origin,``),t.origin===this.origin?k=t.pathname+t.search+t.hash:(k=t.href,A=!0)}else O=d(D),k=O;return{publicHref:k,href:O,pathname:y,search:b,searchStr:x,state:E,hash:S??``,external:A,unmaskOnReload:r.unmaskOnReload}},i=(t={},n)=>{let i=r(t),a=n?r(n):void 0;if(!a){let t=Object.create(null);if(this.options.routeMasks){let o=_(i.pathname,this.processedTree);if(o){Object.assign(t,o.rawParams);let{from:i,params:s,...c}=o.route,l=s===!1||s===null?Object.create(null):(s??!0)===!0?t:Object.assign(t,z(s,t));n={from:e.from,...c,params:l},a=r(n)}}}return a&&(i.maskedLocation=a),i};return e.mask?i(e,{from:e.from,...e.mask}):i(e)},this.commitLocation=async({viewTransition:e,ignoreBlocker:t,...r})=>{let i,a=()=>{let e=[`key`,`__TSR_key`,`__TSR_index`,`__hashScrollIntoViewOptions`];
10e.forEach(e=>{r.state[e]=this.latestLocation.state[e]});let t=c(r.state,this.latestLocation.state);return e.forEach(e=>{delete r.state[e]}),t},o=n(this.latestLocation.href)===n(r.href),s=this.commitLocationPromise;if(this.commitLocationPromise=h(()=>{s?.resolve(),s=void 0}),o&&a())this.load();else{let{maskedLocation:n,hashScrollIntoView:a,...o}=r;n&&(o={...n,state:{...n.state,__tempKey:void 0,__tempLocation:{...o,search:o.searchStr,state:{...o.state,__tempKey:void 0,__tempLocation:void 0,__TSR_key:void 0,key:void 0}}}},(o.unmaskOnReload??this.options.unmaskOnReload??!1)&&(o.state.__tempKey=this.tempLocationKey)),o.state.__hashScrollIntoViewOptions=a??this.options.defaultHashScrollIntoView??!0,this.shouldViewTransition=e,i=r.replace?`REPLACE`:`PUSH`,this.history[i===`REPLACE`?`replace`:`push`](o.publicHref,o.state,{ignoreBlocker:t})}return this.resetNextScroll=r.resetScroll??!0,this.history.subscribers.size||this.load(i?{action:{type:i}}:void 0),this.commitLocationPromise},this.buildAndCommitLocation=({replace:e,resetScroll:t,hashScrollIntoView:n,viewTransition:r,ignoreBlocker:i,href:a,...o}={})=>{if(a){let t=this.history.location.state.__TSR_index,n=Cd(a,{__TSR_index:e?t:t+1}),r=new URL(n.pathname,this.origin);o.to=dd(this.rewrite,r).pathname,o.search=this.options.parseSearch(n.search),o.hash=n.hash.slice(1)}let s=this.buildLocation({...o,_includeValidateSearch:!0});this.pendingBuiltLocation=s;let c=this.commitLocation({...s,viewTransition:r,replace:e,resetScroll:t,hashScrollIntoView:n,ignoreBlocker:i});return Promise.resolve().then(()=>{this.pendingBuiltLocation===s&&(this.pendingBuiltLocation=void 0)}),c},this.navigate=async({to:e,reloadDocument:t,href:n,publicHref:r,...i})=>{let a=!1;if(n)try{new URL(`${n}`),a=!0}catch{}if(a&&!t&&(t=!0),t){if(e!==void 0||!n){let t=this.buildLocation({to:e,...i});n??=t.publicHref,r??=t.publicHref}let t=!a&&r?r:n;if(y(t,this.protocolAllowlist))return Promise.resolve();if(!i.ignoreBlocker){let e=this.history.getBlockers?.()??[];for(let t of e)if(t?.blockerFn&&await t.blockerFn({currentLocation:this.latestLocation,nextLocation:this.latestLocation,action:`PUSH`}))return Promise.resolve()}return i.replace?window.location.replace(t):window.location.href=t,Promise.resolve()}return this.buildAndCommitLocation({...i,href:n,to:e,_isNavigate:!0})},this.beforeLoad=()=>{this.cancelMatches(),this.updateLatestLocation();let e=this.matchRoutes(this.latestLocation),t=this.stores.cachedMatches.get().filter(t=>!e.some(e=>e.id===t.id));this.batch(()=>{this.stores.status.set(`pending`),this.stores.statusCode.set(200),this.stores.isLoading.set(!0),this.stores.location.set(this.latestLocation),this.stores.setPending(e),this.stores.setCached(t)})},this.load=async e=>{let t=e?.action?.type,n,r,i,a=this.stores.resolvedLocation.get()??this.stores.location.get();for(i=new Promise(o=>{this.startTransition(async()=>{try{this.beforeLoad(),t?K.set(this.latestLocation,t):K.delete(this.latestLocation);let n=this.latestLocation,r=Ed(n,this.stores.resolvedLocation.get());this.stores.redirect.get()||this.emit({type:`onBeforeNavigate`,...r}),this.emit({type:`onBeforeLoad`,...r}),await id({router:this,sync:e?.sync,forceStaleReload:a.href===n.href,matches:this.stores.pendingMatches.get(),location:n,updateMatch:this.updateMatch,onReady:async()=>{this.startTransition(()=>{this.startViewTransition(async()=>{let e=null,t=null,n=null,r=null;this.batch(()=>{let i=this.stores.pendingMatches.get(),a=i.length,o=this.stores.matches.get();e=a?o.filter(e=>!this.stores.pendingMatchStores.has(e.id)):null;let s=new Set;for(let e of this.stores.pendingMatchStores.values())e.routeId&&s.add(e.routeId);let c=new Set;for(let e of this.stores.matchStores.values())e.routeId&&c.add(e.routeId);t=a?o.filter(e=>!s.has(e.routeId)):null,n=a?i.filter(e=>!c.has(e.routeId)):null,r=a?i.filter(e=>c.has(e.routeId)):o,this.stores.isLoading.set(!1),this.stores.loadedAt.set(Date.now()),a&&(this.stores.setMatches(i),this.stores.setPending([]),this.stores.setCached([...this.stores.cachedMatches.get(),...e.filter(e=>e.status!==`error`&&e.status!==`notFound`&&e.status!==`redirected`)]),this.clearExpiredCache())});for(let[e,i]of[[t,`onLeave`],[n,`onEnter`],[r,`onStay`]])if(e)for(let t of e)this.looseRoutesById[t.routeId].options[i]?.(t)})})}})}catch(e){ve(e)?(n=e,this.navigate({...n.options,replace:!0,ignoreBlocker:!0})):ye(e)&&(r=e);let t=n?n.status:r?404:this.stores.matches.get().some(e=>e.status===`error`)?500:200;this.batch(()=>{this.stores.statusCode.set(t),this.stores.redirect.set(n)})}this.latestLoadPromise===i&&(this.commitLocationPromise?.resolve(),this.latestLoadPromise=void 0,this.commitLocationPromise=void 0),o()})}),this.latestLoadPromise=i,await i;this.latestLoadPromise&&i!==this.latestLoadPromise;)await this.latestLoadPromise;let o;this.hasNotFoundMatch()?o=404:this.stores.matches.get().some(e=>e.status===`error`)&&(o=500),o!==void 0&&this.stores.statusCode.set(o)},this.startViewTransition=e=>{let t=this.shouldViewTransition??this.options.defaultViewTransition;if(this.shouldViewTransition=void 0,t&&typeof document<`u`&&`startViewTransition`in document&&typeof document.startViewTransition==`function`){let n;if(typeof t==`object`&&this.isViewTransitionTypesSupported){let r=this.latestLocation,i=this.stores.resolvedLocation.get(),a=typeof t.types==`function`?t.types(Ed(r,i)):t.types;if(a===!1){e();return}n={update:e,types:a}}else n=e;document.startViewTransition(n)}else e()},this.updateMatch=(e,t)=>{this.startTransition(()=>
10{let n=this.stores.pendingMatchStores.get(e);if(n){n.set(t);return}let r=this.stores.matchStores.get(e);if(r){r.set(t);return}let i=this.stores.cachedMatchStores.get(e);if(i){let n=t(i.get());n.status===`redirected`?this.stores.cachedMatchStores.delete(e)&&this.stores.cachedIds.set(t=>t.filter(t=>t!==e)):i.set(n)}})},this.getMatch=e=>this.stores.cachedMatchStores.get(e)?.get()??this.stores.pendingMatchStores.get(e)?.get()??this.stores.matchStores.get(e)?.get(),this.invalidate=e=>{let t=t=>e?.filter?.(t)??!0?{...t,invalid:!0,...e?.forcePending||t.status===`error`||t.status===`notFound`?{status:`pending`,error:void 0}:void 0}:t;return this.batch(()=>{this.stores.setMatches(this.stores.matches.get().map(t)),this.stores.setCached(this.stores.cachedMatches.get().map(t)),this.stores.setPending(this.stores.pendingMatches.get().map(t))}),this.shouldViewTransition=!1,this.load({sync:e?.sync})},this.getParsedLocationHref=e=>e.publicHref||`/`,this.resolveRedirect=e=>{let t=e.headers.get(`Location`);if(!e.options.href||e.options._builtLocation){let t=e.options._builtLocation??this.buildLocation(e.options),n=this.getParsedLocationHref(t);e.options.href=n,e.headers.set(`Location`,n)}else if(t)try{let n=new URL(t);if(this.origin&&n.origin===this.origin){let t=n.pathname+n.search+n.hash;e.options.href=t,e.headers.set(`Location`,t)}}catch{}if(e.options.href&&!e.options._builtLocation&&y(e.options.href,this.protocolAllowlist))throw Error(`Redirect blocked: unsafe protocol`);return e.headers.get(`Location`)||e.headers.set(`Location`,e.options.href),e},this.clearCache=e=>{let t=e?.filter;t===void 0?this.stores.setCached([]):this.stores.setCached(this.stores.cachedMatches.get().filter(e=>!t(e)))},this.clearExpiredCache=()=>{let e=Date.now();this.clearCache({filter:t=>{let n=this.looseRoutesById[t.routeId];if(!n.options.loader)return!0;let r=(t.preload?n.options.preloadGcTime??this.options.defaultPreloadGcTime:n.options.gcTime??this.options.defaultGcTime)??300*1e3;return t.status===`error`?!0:e-t.updatedAt>=r}})},this.loadRouteChunk=od,this.preloadRoute=async e=>{let t=e._builtLocation??this.buildLocation(e),n=this.matchRoutes(t,{throwOnError:!0,preload:!0,dest:e}),r=new Set([...this.stores.matchesId.get(),...this.stores.pendingIds.get()]),i=new Set([...r,...this.stores.cachedIds.get()]),a=n.filter(e=>!i.has(e.id));if(a.length){let e=this.stores.cachedMatches.get();this.stores.setCached([...e,...a])}try{return n=await id({router:this,matches:n,location:t,preload:!0,updateMatch:(e,t)=>{r.has(e)?n=n.map(n=>n.id===e?t(n):n):this.updateMatch(e,t)}}),n}catch(e){if(ve(e))return e.options.reloadDocument?void 0:await this.preloadRoute({...e.options,_fromLocation:t});ye(e)||console.error(e);return}},this.matchRoute=(e,t)=>{let n={...e,to:e.to?this.resolvePathWithBase(e.from||``,e.to):void 0,params:e.params||{},leaveParams:!0},i=this.buildLocation(n);if(t?.pending&&this.stores.status.get()!==`pending`)return!1;let a=(t?.pending===void 0?!this.stores.isLoading.get():t.pending)?this.latestLocation:this.stores.resolvedLocation.get()||this.stores.location.get(),o=r(i.pathname,t?.caseSensitive??!1,t?.fuzzy??!1,a.pathname,this.processedTree);return!o||e.params&&!c(o.rawParams,e.params,{partial:!0})?!1:t?.includeSearch??!0?c(a.search,i.search,{partial:!0})?o.rawParams:!1:o.rawParams},this.hasNotFoundMatch=()=>this.stores.matches.get().some(e=>e.status===`notFound`||e.globalNotFound),this.getStoreConfig=s,this.update({defaultPreloadDelay:50,defaultPendingMs:1e3,defaultPendingMinMs:500,context:void 0,...i,caseSensitive:i.caseSensitive??!1,notFoundMode:i.notFoundMode??`fuzzy`,stringifySearch:i.stringifySearch??Ru,parseSearch:i.parseSearch??Lu,protocolAllowlist:i.protocolAllowlist??f}),typeof document<`u`&&(self.__TSR_ROUTER__=this)}isShell(){return!!this.options.isShell}isPrerendering(){return!!this.options.isPrerendering}get state(){return this.stores.__store.get()}setRoutes({routesById:e,routesByPath:t,processedTree:n}){this.routesById=e,this.routesByPath=t,this.processedTree=n;let r=this.options.notFoundRoute;r&&(r.init({originalIndex:99999999999}),this.routesById[r.id]=r)}getRouteBranch(e){let t=this.routeBranchCache.get(e);return t||(t=ie(e),this.routeBranchCache.set(e,t)),t}get looseRoutesById(){return this.routesById}getParentContext(e){return e?.id?e.context??this.options.context??void 0:this.options.context??void 0}matchRoutesInternal(e,t){let r=this.getMatchedRoutes(e.pathname),{foundRoute:i,routeParam
10s:a}=r,{matchedRoutes:s}=r,c=!1;(i?i.path!==`/`&&a[`**`]:n(e.pathname))&&(this.options.notFoundRoute?s=[...s,this.options.notFoundRoute]:c=!0);let l=c?Fd(this.options.notFoundMode,s):void 0,d=Array(s.length),f=new Map;for(let e of this.stores.matchStores.values())e.routeId&&f.set(e.routeId,e.get());for(let n=0;n<s.length;n++){let r=s[n],i=d[n-1],c,p,m;{let n=i?.search??e.search,a=i?._strictSearch??void 0;try{let e=jd(r.options.validateSearch,{...n})??void 0;c={...n,...e},p={...a,...e},m=void 0}catch(e){let r=e;if(e instanceof Od||(r=new Od(e.message,{cause:e})),t?.throwOnError)throw r;c=n,p={},m=r}}let g=r.options.loaderDeps?.({search:c})??``,_=g?JSON.stringify(g):``,{interpolatedPath:v,usedParams:y}=C({path:r.fullPath,params:a,decoder:this.pathParamsDecoder,server:this.isServer}),b=r.id+v+_,x=this.getMatch(b),S=f.get(r.id),w=x?._strictParams??y,E;if(!x)try{Id(r,w)}catch(e){if(E=ye(e)||ve(e)?e:new kd(e.message,{cause:e}),t?.throwOnError)throw E}Object.assign(a,w);let D=S?`stay`:`enter`,O;if(x)O={...x,cause:D,params:S?.params??a,_strictParams:w,search:o(S?S.search:x.search,c),_strictSearch:p};else{let e=r.options.loader||r.options.beforeLoad||r.lazyFn||sd(r)?`pending`:`success`;O={id:b,ssr:r.options.ssr,index:n,routeId:r.id,params:S?.params??a,_strictParams:w,pathname:v,updatedAt:Date.now(),search:S?o(S.search,c):c,_strictSearch:p,searchError:void 0,status:e,isFetching:!1,error:void 0,paramsError:E,__routeContext:void 0,_nonReactive:{loadPromise:h()},__beforeLoadContext:void 0,context:{},abortController:new AbortController,fetchCount:0,cause:D,loaderDeps:S?u(S.loaderDeps,g):g,invalid:!1,preload:!1,links:void 0,scripts:void 0,headScripts:void 0,meta:void 0,staticData:r.options.staticData||{},fullPath:r.fullPath}}t?.preload||(O.globalNotFound=l===r.id),O.searchError=m;let k=this.getParentContext(i);O.context={...k,...O.__routeContext,...O.__beforeLoadContext},d[n]=O}for(let t=0;t<d.length;t++){let n=d[t],r=this.looseRoutesById[n.routeId],i=this.getMatch(n.id),s=f.get(n.routeId);if(n.params=s?o(s.params,a):a,!i){let i=d[t-1],a=this.getParentContext(i);if(r.options.context){let t={deps:n.loaderDeps,params:n.params,context:a??{},location:e,navigate:t=>this.navigate({...t,_fromLocation:e}),buildLocation:this.buildLocation,cause:n.cause,abortController:n.abortController,preload:!!n.preload,matches:d,routeId:r.id};n.__routeContext=r.options.context(t)??void 0}n.context={...a,...n.__routeContext,...n.__beforeLoadContext}}}return d}matchRoutesLightweight(e){let{matchedRoutes:t,routeParams:n}=this.getMatchedRoutes(e.pathname),r=b(t),i={...e.search};for(let e of t)try{Object.assign(i,jd(e.options.validateSearch,i))}catch{}let a=b(this.stores.matchesId.get()),o=a&&this.stores.matchStores.get(a)?.get(),s=o&&o.routeId===r.id&&o.pathname===e.pathname,c;if(s)c=o.params;else{let e=Object.assign(Object.create(null),n);for(let n of t)try{Id(n,e)}catch{}c=e}return{matchedRoutes:t,fullPath:r.fullPath,search:i,params:c}}},Od=class extends Error{},kd=class extends Error{};function Ad(e){return{loadedAt:0,isLoading:!1,isTransitioning:!1,status:`idle`,resolvedLocation:void 0,location:e,matches:[],statusCode:200}}function jd(e,t){if(e==null)return{};if(`~standard`in e){let n=e[`~standard`].validate(t);if(n instanceof Promise)throw new Od(`Async validation not supported`);if(n.issues)throw new Od(JSON.stringify(n.issues,void 0,2),{cause:n});return n.value}return`parse`in e?e.parse(t):typeof e==`function`?e(t):{}}function Md({pathname:e,routesById:t,processedTree:r}){let a=Object.create(null),o=n(e),s,c=i(o,r,!0);return c&&(s=c.route,Object.assign(a,c.rawParams)),{matchedRoutes:c?.branch||[t.__root__],routeParams:a,foundRoute:s}}function Nd({search:e,dest:t,destRoutes:n,_includeValidateSearch:r}){return Pd(n)(e,t,r??!1)}function Pd(e){let t={dest:null,_includeValidateSearch:!1,middlewares:[]};for(let n of e)`search`in n.options?n.options.search?.middlewares&&t.middlewares.push(...n.options.search.middlewares):(n.options.preSearchFilters||n.options.postSearchFilters)&&t.middlewares.push(({search:e,next:t})=>{let r=e;
10`preSearchFilters`in n.options&&n.options.preSearchFilters&&(r=n.options.preSearchFilters.reduce((e,t)=>t(e),e));let i=t(r);return`postSearchFilters`in n.options&&n.options.postSearchFilters?n.options.postSearchFilters.reduce((e,t)=>t(e),i):i}),n.options.validateSearch&&t.middlewares.push(({search:e,next:r})=>{let i=r(e);if(!t._includeValidateSearch)return i;try{return{...i,...jd(n.options.validateSearch,i)??void 0}}catch{return i}});t.middlewares.push(({search:e})=>{let n=t.dest;return n.search?n.search===!0?e:z(n.search,e):{}});let n=(e,t,r)=>{if(e>=r.length)return t;let i=r[e];return i({search:t,next:t=>n(e+1,t,r)})};return function(e,r,i){return t.dest=r,t._includeValidateSearch=i,n(0,e,t.middlewares)}}function Fd(e,t){if(e!==`root`)for(let e=t.length-1;e>=0;e--){let n=t[e];if(n.children)return n.id}return _e}function Id(e,t){let n=e.options.params?.parse??e.options.parseParams;if(n){let e=n(t);if(e===!1)throw Error(`Route params.parse returned false for a matched route`);Object.assign(t,e)}}function Ld(){try{return sessionStorage}catch{return}}var Rd=`tsr-scroll-restoration-v1_3`,zd=Ld();function Bd(){try{return JSON.parse(zd?.getItem(`tsr-scroll-restoration-v1_3`)||`{}`)}catch{return{}}}function Vd(){try{zd?.setItem(Rd,JSON.stringify(Hd))}catch{}}var Hd=Bd(),Ud=`data-scroll-restoration-id`,Wd=e=>e.state.__TSR_key||e.href;function Gd(e){let t=e.getAttribute(Ud);if(t)return`[${Ud}="${t}"]`;let n=``,r=e,i;for(;i=r.parentNode;){let e=1,t=r;for(;t=t.previousElementSibling;)e++;let a=`${r.localName}:nth-child(${e})`;n=n?`${a} > ${n}`:a,r=i}return n}var Kd=!1,qd=`window`;function Jd(e){try{return typeof e==`function`?e():document.querySelector(e)}catch{}}function Yd(e){let t=[];for(let n of e){if(n===qd)continue;let e=Jd(n);e&&t.push(e)}return t}function Xd(e,t){if((t??e.options.scrollRestoration)&&(e.isScrollRestoring=!0),e.isScrollRestorationSetup)return;e.isScrollRestorationSetup=!0,Kd=!1;let n=e.options.getScrollRestorationKey||Wd,r=new Map,i=(e,t,n)=>{let i=r.get(e)||{};i.scrollX=t,i.scrollY=n,r.set(e,i)};history.scrollRestoration=`manual`;let a=t=>{if(!(Kd||!e.isScrollRestoring))if(t.target===document)i(qd,scrollX,scrollY);else{let e=t.target;i(e,e.scrollLeft,e.scrollTop)}},o=t=>{if(!e.isScrollRestoring)return;let n=Hd[t]||={};for(let[e,t]of r)e===qd?n[qd]=t:e.isConnected&&(n[Gd(e)]=t)};document.addEventListener(`scroll`,a,!0),e.subscribe(`onBeforeLoad`,e=>{e.fromLocation&&o(n(e.fromLocation)),r.clear()}),addEventListener(`pagehide`,()=>{o(n(e.stores.resolvedLocation.get()??e.stores.location.get())),Vd()}),e.subscribe(`onRendered`,t=>{let i=e.options.scrollRestorationBehavior,a=e.options.scrollToTopSelectors,o=e.resetNextScroll,s;if(r.clear(),o||(e.resetNextScroll=!0),typeof e.options.scrollRestoration==`function`&&!e.options.scrollRestoration({location:e.latestLocation}))return;let c=n(t.toLocation),l=t.fromLocation&&n(t.fromLocation);if(e.isScrollRestoring&&l&&l!==c){let e=Hd[l];if(e){let t=Hd[c];for(let n in e){if(n===qd){if(o)continue}else{let e=Jd(n);if(!e||o&&a&&(s??=Yd(a),s.includes(e)))continue}t||=Hd[c]={},t[n]??=e[n]}}}Kd=!0;try{let n=t.toLocation.hash,r=t.toLocation.state.__hashScrollIntoViewOptions??!0,l=!1;if(o){let o=K.get(t.toLocation),u=n&&r&&(o===`PUSH`||o===`REPLACE`),d=e.isScrollRestoring?Hd[c]:void 0;if(d)for(let e in d){let{scrollX:t,scrollY:n}=d[e];if(e===qd){if(u)continue;scrollTo({top:n,left:t,behavior:i}),l=!0}else{let r=Jd(e);r&&(r.scrollLeft=t,r.scrollTop=n)}}if(!l&&!n){let e={top:0,left:0,behavior:i};if(scrollTo(e),a){s??=Yd(a);for(let t of s)t.scrollTo(e)}}}!l&&n&&r&&document.getElementById(n)?.scrollIntoView(r)}finally{Kd=!1}})}var Zd=Symbol.for(`TSR_DEFERRED_PROMISE`);function Qd(e,t){let n=e;return n[Zd]?n:(n[Zd]={status:`pending`},n.then(e=>{n[Zd].status=`success`,n[Zd].data=e}).catch(e=>{n[Zd].status=`error`,n[Zd].error={data:(t?.serializeError??Td)(e),__isServerError:!0}}),n)}function $d(e,t){if(e)return typeof e==`string`?e:e[t]}function ef(e){return e?.scriptFormat??`module`}function tf(e,t,n){let r=nf(t),i=$d(n,`script`)??r.crossOrigin;return{...ef(e)===`iife`?{rel:`preload`,as:`script`}:{rel:`modulepreload`},href:r.href,...i?{crossOrigin:i}:{}}}function nf(e){return typeof e==`string`?{href:e,crossOrigin:void 0}:e}function rf(e,t){if(t.length===0)return;if(t.length===1){e.push(t[0]);return}let n=new Set;for(let r of t){let t=JSON.stringify(r);n.has(t)||(n.add(t),e.push(r))}}function af(e){return typeof e==`string`?{href:e,crossOrigin:void 0}:e}var of=(e=>(e[e.AggregateError=1]=`AggregateError`,e[e.ArrowFunction=2]=`ArrowFunction`,e[e.ErrorPrototypeStack=4]=`ErrorPrototypeStack`,e[e.ObjectAssign=8]=`ObjectAssign`,e[e.BigIntTypedArray=16]=`BigIntTypedArray`,e[e.RegExp=32]=`RegExp`,e))(of||{}),sf=Symbol.asyncIterator,cf=Symbol.hasInstance,lf=Symbol.isConcatSpreadable,uf=Symbol.iterator,df=Symbol.match,ff=Symbol.matchAll,pf=Symbol.replace,mf=Symbol.search,hf=Symbol.species,gf=Symbol.split,_f=Symbol.toPrimitive,vf=Symbol.toStringTag,yf=Symbol.unscopables,bf={[sf]:0,[cf]:1,[lf]:2,[uf]:3,[df]:4,[ff]:5,[pf]:6,[mf]:7,[hf]:8,[gf]:9,[_f]:10,[vf]:11,[yf]:12},xf={0:sf,1:cf,2:lf,3:uf,4:df,5:ff,6:pf,7:mf,8:hf,9:gf,10:_f,11:vf,12:yf},q=void 0,Sf={2:!0,3:!1,1:q,0:null,4:-0,5:1/0,6:-1/0,7:NaN},Cf={0:`Error`,1:`EvalError`,2:`RangeError`,3:`ReferenceError`,4:`SyntaxError`,5:`TypeError`,6:`URIError`},wf={0:Error,1:EvalError,2:RangeError,3:ReferenceError,4:SyntaxError,5:TypeError,6:URIError};function Tf(e,t,n,r,i,a,o,s,c,l,u,d){return{t:e,i:t,s:n,c:r,m:i,p:a,e:o,a:s,f:c,b:l,o:u,l:d}}function Ef(e){return Tf(2,q,e,q,q,q,q,q,q,q,q,q)}var Df=Ef(2),Of=Ef(3),kf=Ef(1),Af=Ef(0),jf=Ef(4),Mf=Ef(5),Nf=Ef(6),Pf=Ef(7);function Ff(e){switch(e){case`"`:return`\\"`;case`\\`:return`\\\\`;case`
11`:return`\\n`;case`\r`:return`\\r`;case`\b`:return`\\b`;case`	`:return`\\t`;case`\f`:return`\\f`;case`<`:return`\\x3C`;case`\u2028`:return`\\u2028`;case`\u2029`:return`\\u2029`;default:return q}}function If(e){let t=``,n=0,r;for(let i=0,a=e.length;i<a;i++)r=Ff(e[i]),r&&(t+=e.slice(n,i)+r,n=i+1);return n===0?t=e:t+=e.slice(n),t}function Lf(e){switch(e){case`\\\\`:return`\\`;case`\\"`:return`"`;case`\\n`:return`
12`;case`\\r`:return`\r`;case`\\b`:return`\b`;case`\\t`:return`	`;case`\\f`:return`\f`;case`\\x3C`:return`<`;case`\\u2028`:return`\u2028`;case`\\u2029`:return`\u2029`;default:return e}}function Rf(e){return e.replace(/(\\\\|\\"|\\n|\\r|\\b|\\t|\\f|\\u2028|\\u2029|\\x3C)/g,Lf)}var zf=`__SEROVAL_REFS__`,Bf=new Map,Vf=new Map;function Hf(e){return Bf.has(e)}function Uf(e){return Vf.has(e)}function Wf(e){if(Hf(e))return Bf.get(e);throw new Mp(e)}function Gf(e){if(Uf(e))return Vf.get(e);throw new Np(e)}typeof globalThis<`u`?Object.defineProperty(globalThis,zf,{value:Vf,configurable:!0,writable:!1,enumerable:!1}):typeof window<`u`?Object.defineProperty(window,zf,{value:Vf,configurable:!0,writable:!1,enumerable:!1}):typeof self<`u`?Object.defineProperty(self,zf,{value:Vf,configurable:!0,writable:!1,enumerable:!1}):typeof global<`u`&&Object.defineProperty(global,zf,{value:Vf,configurable:!0,writable:!1,enumerable:!1});function Kf(e){return e instanceof EvalError?1:e instanceof RangeError?2:e instanceof ReferenceError?3:e instanceof SyntaxError?4:e instanceof TypeError?5:e instanceof URIError?6:0}function qf(e){let t=Cf[Kf(e)];return e.name===t?e.constructor.name===t?{}:{name:e.constructor.name}:{name:e.name}}function Jf(e,t){let n=qf(e),r=Object.getOwnPropertyNames(e);for(let i=0,a=r.length,o;i<a;i++)o=r[i],o!==`name`&&o!==`message`&&(o===`stack`?t&4&&(n||={},n[o]=e[o]):(n||={},n[o]=e[o]));return n}function Yf(e){return Object.isFrozen(e)?3:Object.isSealed(e)?2:+!Object.isExtensible(e)}function Xf(e){switch(e){case 1/0:return Mf;case-1/0:return Nf}return e===e?Object.is(e,-0)?jf:Tf(0,q,e,q,q,q,q,q,q,q,q,q):Pf}function Zf(e){return Tf(1,q,If(e),q,q,q,q,q,q,q,q,q)}function Qf(e){return Tf(3,q,``+e,q,q,q,q,q,q,q,q,q)}function $f(e){return Tf(4,e,q,q,q,q,q,q,q,q,q,q)}function ep(e,t){let n=t.valueOf();return Tf(5,e,n===n?t.toISOString():``,q,q,q,q,q,q,q,q,q)}function tp(e,t){return Tf(6,e,q,If(t.source),t.flags,q,q,q,q,q,q,q)}function np(e,t){return Tf(17,e,bf[t],q,q,q,q,q,q,q,q,q)}function rp(e,t){return Tf(18,e,If(Wf(t)),q,q,q,q,q,q,q,q,q)}
12function ip(e,t,n){return Tf(25,e,n,If(t),q,q,q,q,q,q,q,q)}function ap(e,t,n){return Tf(9,e,q,q,q,q,q,n,q,q,Yf(t),q)}function op(e,t){return Tf(21,e,q,q,q,q,q,q,t,q,q,q)}function sp(e,t,n){return Tf(15,e,q,t.constructor.name,q,q,q,q,n,t.byteOffset,q,t.length)}function cp(e,t,n){return Tf(16,e,q,t.constructor.name,q,q,q,q,n,t.byteOffset,q,t.byteLength)}function lp(e,t,n){return Tf(20,e,q,q,q,q,q,q,n,t.byteOffset,q,t.byteLength)}function up(e,t,n){return Tf(13,e,Kf(t),q,If(t.message),n,q,q,q,q,q,q)}function dp(e,t,n){return Tf(14,e,Kf(t),q,If(t.message),n,q,q,q,q,q,q)}function fp(e,t){return Tf(7,e,q,q,q,q,q,t,q,q,q,q)}function pp(e,t){return Tf(28,q,q,q,q,q,q,[e,t],q,q,q,q)}function mp(e,t){return Tf(30,q,q,q,q,q,q,[e,t],q,q,q,q)}function hp(e,t,n){return Tf(31,e,q,q,q,q,q,n,t,q,q,q)}function gp(e,t){return Tf(32,e,q,q,q,q,q,q,t,q,q,q)}function _p(e,t){return Tf(33,e,q,q,q,q,q,q,t,q,q,q)}function vp(e,t){return Tf(34,e,q,q,q,q,q,q,t,q,q,q)}function yp(e,t,n,r){return Tf(35,e,n,q,q,q,q,t,q,q,q,r)}var{toString:bp}=Object.prototype,xp={parsing:1,serialization:2,deserialization:3};function Sp(e){return`Seroval Error (step: ${xp[e]})`}var Cp=(e,t)=>Sp(e),wp=class extends Error{constructor(e,t){super(Cp(e,t)),this.cause=t}},Tp=class extends wp{constructor(e){super(`parsing`,e)}},Ep=class extends wp{constructor(e){super(`deserialization`,e)}};function Dp(e){return`Seroval Error (specific: ${e})`}var Op=class extends Error{constructor(e){super(Dp(1)),this.value=e}},kp=class extends Error{constructor(e){super(Dp(2))}},Ap=class extends Error{constructor(e){super(Dp(3))}},jp=class extends Error{constructor(e){super(Dp(4))}},Mp=class extends Error{constructor(e){super(Dp(5)),this.value=e}},Np=class extends Error{constructor(e){super(Dp(6))}},Pp=class extends Error{constructor(e){super(Dp(7))}},Fp=class extends Error{constructor(e){super(Dp(8))}},Ip=class extends Error{constructor(e){super(Dp(9))}},Lp=class{constructor(e,t){this.value=e,this.replacement=t}},Rp=()=>{let e={p:0,s:0,f:0};return e.p=new Promise((t,n)=>{e.s=t,e.f=n}),e};Rp.toString(),((e,t)=>{e.s(t),e.p.s=1,e.p.v=t}).toString(),((e,t)=>{e.f(t),e.p.s=2,e.p.v=t}).toString();var zp=()=>{let e=[],t=[],n=!0,r=!1,i=0,a=(e,n,r)=>{for(r=0;r<i;r++)t[r]&&t[r][n](e)},o=(t,i,a,o)=>{for(i=0,a=e.length;i<a;i++)o=e[i],!n&&i===a-1?t[r?`return`:`throw`](o):t.next(o)},s=(e,r)=>(n&&(r=i++,t[r]=e),o(e),()=>{n&&(t[r]=t[i],t[i--]=void 0)});return{__SEROVAL_STREAM__:!0,on:e=>s(e),next:t=>{n&&(e.push(t),a(t,`next`))},throw:i=>{n&&(e.push(i),a(i,`throw`),n=!1,r=!1,t.length=0)},return:i=>{n&&(e.push(i),a(i,`return`),n=!1,r=!0,t.length=0)}}};zp.toString();var Bp=e=>t=>()=>{let n=0,r={[e]:()=>r,next:()=>{if(n>t.d)return{done:!0,value:void 0};let e=n++,r=t.v[e];if(e===t.t)throw r;return{done:e===t.d,value:r}}};return r};Bp.toString();var Vp=(e,t)=>n=>()=>{let r=0,i=-1,a=!1,o=[],s=[],c=(e=0,t=s.length)=>{for(;e<t;e++)s[e].s({done:!0,value:void 0})};n.on({next:e=>{let t=s.shift();t&&t.s({done:!1,value:e}),o.push(e)},throw:e=>{let t=s.shift();t&&t.f(e),c(),i=o.length,a=!0,o.push(e)},return:e=>{let t=s.shift();t&&t.s({done:!0,value:e}),c(),i=o.length,o.push(e)}});let l={[e]:()=>l,next:()=>{if(i===-1){let e=r++;if(e>=o.length){let e=t();return s.push(e),e.p}return{done:!1,value:o[e]}}if(r>i)return{done:!0,value:void 0};let e=r++,n=o[e];if(e!==i)return{done:!1,value:n};if(a)throw n;return{done:!0,value:n}}};return l};Vp.toString();var Hp=e=>{let t=atob(e),n=t.length,r=new Uint8Array(n);for(let e=0;e<n;e++)r[e]=t.charCodeAt(e);return r.buffer};Hp.toString();function Up(e){return`__SEROVAL_SEQUENCE__`in e}function Wp(e,t,n){return{__SEROVAL_SEQUENCE__:!0,v:e,t,d:n}}function Gp(e){let t=[],n=-1,r=-1,i=e[uf]();for(;;)try{let e=i.next();if(t.push(e.value),e.done){r=t.length-1;break}}catch(e){n=t.length,t.push(e)}return Wp(t,n,r)}var Kp=Bp(uf);function qp(e){return Kp(e)}var Jp={},Yp={},Xp={0:{},1:{},2:{},3:{},4:{},5:{}};function Zp(e){return`__SEROVAL_STREAM__`in e}function Qp(){return zp()}function $p(e){let t=Qp(),n=e[sf]();async function r(){try{let e=await n.next();e.done?t.return(e.value):(t.next(e.value),await r())}catch(e){t.throw(e)}}return r().catch(()=>{}),t}var em=Vp(sf,Rp);function tm(e){return em(e)}async function nm(e){try{return[1,await e]}catch(e){return[0,e]}}function rm(e,t){return{plugins:t.plugins,mode:e,marked:new Set,features:63^(t.disabledFeatures||0),refs:t.refs||new Map,depthLimit:t.depthLimit||1e3}}function im(e,t){e.marked.add(t)}function am(e,t){let n=e.refs.size;return e.refs.set(t,n),n}function om(e,t){let n=e.refs.get(t);return n==null?{type:0,value:am(e,t)}:(im(e,n),{type:1,value:$f(n)})}function sm(e,t){let n=om(e,t);return n.type===1?n:Hf(t)?{type:2,value:rp(n.value,t)}:n}function cm(e,t){let n=sm(e,t);if(n.type!==0)return n.value;if(t in bf)return np(n.value,t);throw new Op(t)}function lm(e,t){let n=om(e,Xp[t]);return n.type===1?n.value:Tf(26,n.value,t,q,q,q,q,q,q,q,q,q)}function um(e){let t=om(e,Jp);return t.type===1?t.value:Tf(27,t.value,q,q,q,q,q,q,cm(e,uf),q,q,q)}function dm(e){let t=om(e,Yp);return t.type===1?t.value:Tf(29,t.value,q,q,q,q,q,[lm(e,1),cm(e,sf)],q,q,q,q)}function fm(e,t,n,r){return Tf(n?11:10,e,q,q,q,r,q,q,q,q,Yf(t),q)}function pm(e,t,n,r){return Tf(8,t,q,q,q,q,{k:n,v:r},q,lm(e,0),q,q,q)}function mm(e,t,n){let r=new Uint8Array(n),i=``;for(let e=0,t=r.length;e<t;e++)i+=String.fromCharCode(r[e]);return Tf(19,t,If(btoa(i)),q,q,q,q,q,lm(e,5),q,q,q)}function hm(e,t){return{base:rm(e,t),child:void 0}}var gm=class{constructor(e,t){this._p=e,this.depth=t}parse(e){return Im(this._p,this.depth,e)}};async function _m(e,t,n){let r=[];for(let i=0,a=n.length;i<a;i++)i in n?r[i]=await Im(e,t,n[i]):r[i]=0;return r}async function vm(e,t,n,r){return ap(n,r,await _m(e,t,r))}async function ym(e,t,n){let r=Object.entries(n),i=[],a=[];for(let n=0,o=r.length;n<o;n++)i.push(If(r[n][0])),a.push(await Im(e,t,r[n][1]));
12return uf in n&&(i.push(cm(e.base,uf)),a.push(pp(um(e.base),await Im(e,t,Gp(n))))),sf in n&&(i.push(cm(e.base,sf)),a.push(mp(dm(e.base),await Im(e,t,$p(n))))),vf in n&&(i.push(cm(e.base,vf)),a.push(Zf(n[vf]))),lf in n&&(i.push(cm(e.base,lf)),a.push(n[lf]?Df:Of)),{k:i,v:a}}async function bm(e,t,n,r,i){return fm(n,r,i,await ym(e,t,r))}async function xm(e,t,n,r){return op(n,await Im(e,t,r.valueOf()))}async function Sm(e,t,n,r){return sp(n,r,await Im(e,t,r.buffer))}async function Cm(e,t,n,r){return cp(n,r,await Im(e,t,r.buffer))}async function wm(e,t,n,r){return lp(n,r,await Im(e,t,r.buffer))}async function Tm(e,t,n,r){let i=Jf(r,e.base.features);return up(n,r,i?await ym(e,t,i):q)}async function Em(e,t,n,r){let i=Jf(r,e.base.features);return dp(n,r,i?await ym(e,t,i):q)}async function Dm(e,t,n,r){let i=[],a=[];for(let[n,o]of r.entries())i.push(await Im(e,t,n)),a.push(await Im(e,t,o));return pm(e.base,n,i,a)}async function Om(e,t,n,r){let i=[];for(let n of r.keys())i.push(await Im(e,t,n));return fp(n,i)}async function km(e,t,n,r){let i=e.base.plugins;if(i)for(let a=0,o=i.length;a<o;a++){let o=i[a];if(o.parse.async&&o.test(r))return ip(n,o.tag,await o.parse.async(r,new gm(e,t),{id:n}))}return q}async function Am(e,t,n,r){let[i,a]=await nm(r);return Tf(12,n,i,q,q,q,q,q,await Im(e,t,a),q,q,q)}function jm(e,t,n,r,i){let a=[],o=n.on({next:n=>{im(this.base,t),Im(this,e,n).then(e=>{a.push(gp(t,e))},e=>{i(e),o()})},throw:n=>{im(this.base,t),Im(this,e,n).then(e=>{a.push(_p(t,e)),r(a),o()},e=>{i(e),o()})},return:n=>{im(this.base,t),Im(this,e,n).then(e=>{a.push(vp(t,e)),r(a),o()},e=>{i(e),o()})}})}async function Mm(e,t,n,r){return hp(n,lm(e.base,4),await new Promise(jm.bind(e,t,n,r)))}async function Nm(e,t,n,r){let i=[];for(let n=0,a=r.v.length;n<a;n++)i[n]=await Im(e,t,r.v[n]);return yp(n,i,r.t,r.d)}async function Pm(e,t,n,r){if(Array.isArray(r))return vm(e,t,n,r);if(Zp(r))return Mm(e,t,n,r);if(Up(r))return Nm(e,t,n,r);let i=r.constructor;if(i===Lp)return Im(e,t,r.replacement);let a=await km(e,t,n,r);if(a)return a;switch(i){case Object:return bm(e,t,n,r,!1);case q:return bm(e,t,n,r,!0);case Date:return ep(n,r);case Error:case EvalError:case RangeError:case ReferenceError:case SyntaxError:case TypeError:case URIError:return Tm(e,t,n,r);case Number:case Boolean:case String:case BigInt:return xm(e,t,n,r);case ArrayBuffer:return mm(e.base,n,r);case Int8Array:case Int16Array:case Int32Array:case Uint8Array:case Uint16Array:case Uint32Array:case Uint8ClampedArray:case Float32Array:case Float64Array:return Sm(e,t,n,r);case DataView:return wm(e,t,n,r);case Map:return Dm(e,t,n,r);case Set:return Om(e,t,n,r);default:break}if(i===Promise||r instanceof Promise)return Am(e,t,n,r);let o=e.base.features;if(o&32&&i===RegExp)return tp(n,r);if(o&16)switch(i){case BigInt64Array:case BigUint64Array:return Cm(e,t,n,r);default:break}if(o&1&&typeof AggregateError<`u`&&(i===AggregateError||r instanceof AggregateError))return Em(e,t,n,r);if(r instanceof Error)return Tm(e,t,n,r);if(uf in r||sf in r)return bm(e,t,n,r,!!i);throw new Op(r)}async function Fm(e,t,n){let r=sm(e.base,n);if(r.type!==0)return r.value;let i=await km(e,t,r.value,n);if(i)return i;throw new Op(n)}async function Im(e,t,n){switch(typeof n){case`boolean`:return n?Df:Of;case`undefined`:return kf;case`string`:return Zf(n);case`number`:return Xf(n);case`bigint`:return Qf(n);case`object`:if(n){let r=sm(e.base,n);return r.type===0?await Pm(e,t+1,r.value,n):r.value}return Af;case`symbol`:return cm(e.base,n);case`function`:return Fm(e,t,n);default:throw new Op(n)}}async function Lm(e,t){try{return await Im(e,0,t)}catch(e){throw e instanceof Tp?e:new Tp(e)}}var Rm=(e=>(e[e.Vanilla=1]=`Vanilla`,e[e.Cross=2]=`Cross`,e))(Rm||{});function zm(e){return e}function Bm(e,t){for(let n=0,r=t.length;n<r;n++){let r=t[n];e.has(r)||(e.add(r),r.extends&&Bm(e,r.extends))}}function Vm(e){if(e){let t=new Set;return Bm(t,e),[...t]}}function Hm(e){switch(e){case`Int8Array`:return Int8Array;case`Int16Array`:return Int16Array;case`Int32Array`:return Int32Array;case`Uint8Array`:return Uint8Array;case`Uint16Array`:return Uint16Array;case`Uint32Array`:return Uint32Array;case`Uint8ClampedArray`:return Uint8ClampedArray;case`Float32Array`:return Float32Array;case`Float64Array`:return Float64Array;case`BigInt64Array`:return BigInt64Array;case`BigUint64Array`:return BigUint64Array;default:throw new Pp(e)}}var Um=1e6,Wm=1e4,Gm=2e4;function Km(e,t){switch(t){case 3:return Object.freeze(e);case 1:return Object.preventExtensions(e);case 2:return Object.seal(e);default:return e}}var qm=1e3;function Jm(e,t){let n=t.refs||new Map;return`types`in n||Object.assign(n,{types:new Map}),{mode:e,plugins:t.plugins,refs:n,features:t.features??63^(t.disabledFeatures||0),depthLimit:t.depthLimit||qm}}
12function Ym(e){return{mode:2,base:Jm(2,e),child:q}}var Xm=class{constructor(e,t){this._p=e,this.depth=t}deserialize(e){return Lh(this._p,this.depth,e)}};function Zm(e,t){if(t<0||!Number.isFinite(t)||!Number.isInteger(t))throw new Fp({t:4,i:t});if(e.refs.has(t))throw Error(`Conflicted ref id: `+t)}function Qm(e,t,n){return Zm(e.base,t),e.state.marked.has(t)&&e.base.refs.set(t,n),n}function $m(e,t,n){return Zm(e.base,t),e.base.refs.set(t,n),n}function eh(e,t,n){return e.mode===1?Qm(e,t,n):$m(e,t,n)}function th(e,t,n){if(Object.hasOwn(t,n))return t[n];throw new Fp(e)}function nh(e,t){return eh(e,t.i,Gf(Rf(t.s)))}function rh(e,t,n){let r=n.a,i=r.length,a=eh(e,n.i,Array(i));for(let n=0,o;n<i;n++)o=r[n],o&&(a[n]=Lh(e,t,o));return Km(a,n.o),a}function ih(e){switch(e){case`constructor`:case`__proto__`:case`prototype`:case`__defineGetter__`:case`__defineSetter__`:case`__lookupGetter__`:case`__lookupSetter__`:return!1;default:return!0}}function ah(e){switch(e){case sf:case lf:case vf:case uf:return!0;default:return!1}}function oh(e,t,n){ih(t)?e[t]=n:Object.defineProperty(e,t,{value:n,configurable:!0,enumerable:!0,writable:!0})}function sh(e,t,n,r,i){if(typeof r==`string`)oh(n,Rf(r),Lh(e,t,i));else{let a=Lh(e,t,r);switch(typeof a){case`string`:oh(n,a,Lh(e,t,i));break;case`symbol`:ah(a)&&(n[a]=Lh(e,t,i));break;default:throw new Fp(r)}}}function ch(e,t,n){e.base.refs.types.set(t,n)}function lh(e,t,n,r){if(e.base.refs.types.get(n)!==r)throw new Fp(t)}function uh(e,t,n,r){let i=n.k;if(i.length>0)for(let a=0,o=n.v,s=i.length;a<s;a++)sh(e,t,r,i[a],o[a]);return r}function dh(e,t,n){let r=eh(e,n.i,n.t===10?{}:Object.create(null));return uh(e,t,n.p,r),Km(r,n.o),r}function fh(e,t){return eh(e,t.i,new Date(t.s))}function ph(e,t){if(e.base.features&32){let n=Rf(t.c);if(n.length>Gm)throw new Fp(t);return eh(e,t.i,new RegExp(n,t.m))}throw new kp(t)}function mh(e,t,n){let r=eh(e,n.i,new Set);for(let i=0,a=n.a,o=a.length;i<o;i++)r.add(Lh(e,t,a[i]));return r}function hh(e,t,n){let r=eh(e,n.i,new Map);for(let i=0,a=n.e.k,o=n.e.v,s=a.length;i<s;i++)r.set(Lh(e,t,a[i]),Lh(e,t,o[i]));return r}function gh(e,t){if(t.s.length>Um)throw new Fp(t);return eh(e,t.i,Hp(Rf(t.s)))}function _h(e,t,n){let r=Hm(n.c),i=Lh(e,t,n.f),a=n.b??0;if(a<0||a>i.byteLength)throw new Fp(n);return eh(e,n.i,new r(i,a,n.l))}function vh(e,t,n){let r=Lh(e,t,n.f),i=n.b??0;if(i<0||i>r.byteLength)throw new Fp(n);return eh(e,n.i,new DataView(r,i,n.l))}function yh(e,t,n,r){if(n.p){let i=uh(e,t,n.p,{});Object.defineProperties(r,Object.getOwnPropertyDescriptors(i))}return r}function bh(e,t,n){return yh(e,t,n,eh(e,n.i,AggregateError([],Rf(n.m))))}function xh(e,t,n){let r=th(n,wf,n.s);return yh(e,t,n,eh(e,n.i,new r(Rf(n.m))))}function Sh(e,t,n){let r=Rp(),i=eh(e,n.i,r.p),a=Lh(e,t,n.f);return n.s?r.s(a):r.f(a),i}function Ch(e,t,n){return eh(e,n.i,Object(Lh(e,t,n.f)))}function wh(e,t,n){let r=e.base.plugins;if(r){let i=Rf(n.c);for(let a=0,o=r.length;a<o;a++){let o=r[a];if(o.tag===i)return eh(e,n.i,o.deserialize(n.s,new Xm(e,t),{id:n.i}))}}throw new Ap(n.c)}function Th(e,t){let n=eh(e,t.i,eh(e,t.s,Rp()).p);return ch(e,t.s,22),n}function Eh(e,t,n){let r=e.base.refs.get(n.i);if(r)return lh(e,n,n.i,22),r.s(Lh(e,t,n.a[1])),q;throw new jp(`Promise`)}function Dh(e,t,n){let r=e.base.refs.get(n.i);if(r)return lh(e,n,n.i,22),r.f(Lh(e,t,n.a[1])),q;throw new jp(`Promise`)}function Oh(e,t,n){return Lh(e,t,n.a[0]),qp(Lh(e,t,n.a[1]))}function kh(e,t,n){return Lh(e,t,n.a[0]),tm(Lh(e,t,n.a[1]))}function Ah(e,t,n){let r=eh(e,n.i,Qp());ch(e,n.i,31);let i=n.a,a=i.length;if(a)for(let n=0;n<a;n++)Lh(e,t,i[n]);return r}function jh(e,t,n){let r=e.base.refs.get(n.i);if(r)return lh(e,n,n.i,31),r.next(Lh(e,t,n.f)),q;throw new jp(`Stream`)}function Mh(e,t,n){let r=e.base.refs.get(n.i);if(r)return lh(e,n,n.i,31),r.throw(Lh(e,t,n.f)),q;throw new jp(`Stream`)}function Nh(e,t,n){let r=e.base.refs.get(n.i);if(r)return lh(e,n,n.i,31),r.return(Lh(e,t,n.f)),q;throw new jp(`Stream`)}function Ph(e,t,n){return Lh(e,t,n.f),q}function Fh(e,t,n){return Lh(e,t,n.a[1]),q}function Ih(e,t,n){let r=eh(e,n.i,Wp([],n.s,n.l));for(let i=0,a=n.a.length;i<a;i++)r.v[i]=Lh(e,t,n.a[i]);return r}
12function Lh(e,t,n){if(t>e.base.depthLimit)throw new Ip(e.base.depthLimit);switch(t+=1,n.t){case 2:return th(n,Sf,n.s);case 0:return Number(n.s);case 1:return Rf(String(n.s));case 3:if(String(n.s).length>Wm)throw new Fp(n);return BigInt(n.s);case 4:return e.base.refs.get(n.i);case 18:return nh(e,n);case 9:return rh(e,t,n);case 10:case 11:return dh(e,t,n);case 5:return fh(e,n);case 6:return ph(e,n);case 7:return mh(e,t,n);case 8:return hh(e,t,n);case 19:return gh(e,n);case 16:case 15:return _h(e,t,n);case 20:return vh(e,t,n);case 14:return bh(e,t,n);case 13:return xh(e,t,n);case 12:return Sh(e,t,n);case 17:return th(n,xf,n.s);case 21:return Ch(e,t,n);case 25:return wh(e,t,n);case 22:return Th(e,n);case 23:return Eh(e,t,n);case 24:return Dh(e,t,n);case 28:return Oh(e,t,n);case 30:return kh(e,t,n);case 31:return Ah(e,t,n);case 32:return jh(e,t,n);case 33:return Mh(e,t,n);case 34:return Nh(e,t,n);case 27:return Ph(e,t,n);case 29:return Fh(e,t,n);case 35:return Ih(e,t,n);default:throw new kp(n)}}function Rh(e,t){try{return Lh(e,0,t)}catch(e){throw new Ep(e)}}var zh=(()=>T).toString();/=>/.test(zh);function Bh(e,t){return Rh(Ym({plugins:Vm(t.plugins),refs:t.refs,features:t.features,disabledFeatures:t.disabledFeatures,depthLimit:t.depthLimit}),e)}async function Vh(e,t={}){let n=hm(1,{plugins:Vm(t.plugins),disabledFeatures:t.disabledFeatures});return{t:await Lm(n,e),f:n.base.features,m:Array.from(n.base.marked)}}function Hh(e){return e}function Uh(e){return zm({tag:`$TSR/t/`+e.key,test:e.test,parse:{sync(t,n,r){return{v:n.parse(e.toSerializable(t))}},async async(t,n,r){return{v:await n.parse(e.toSerializable(t))}},stream(t,n,r){return{v:n.parse(e.toSerializable(t))}}},serialize:void 0,deserialize(t,n,r){return e.fromSerializable(n.deserialize(t.v))}})}var Wh=class{constructor(e,t){this.stream=e,this.hint=t?.hint??`binary`}},Gh=globalThis.Buffer,Kh=!!Gh&&typeof Gh.from==`function`;function qh(e){if(e.length===0)return``;if(Kh)return Gh.from(e).toString(`base64`);let t=32768,n=[];for(let r=0;r<e.length;r+=t){let i=e.subarray(r,r+t);n.push(String.fromCharCode.apply(null,i))}return btoa(n.join(``))}function Jh(e){if(e.length===0)return new Uint8Array;
12if(Kh){let t=Gh.from(e,`base64`);return new Uint8Array(t.buffer,t.byteOffset,t.byteLength)}let t=atob(e),n=new Uint8Array(t.length);for(let e=0;e<t.length;e++)n[e]=t.charCodeAt(e);return n}var Yh=Object.create(null),Xh=Object.create(null),Zh=e=>new ReadableStream({start(t){e.on({next(e){try{t.enqueue(Jh(e))}catch{}},throw(e){t.error(e)},return(){try{t.close()}catch{}}})}}),Qh=new TextEncoder,$h=e=>new ReadableStream({start(t){e.on({next(e){try{typeof e==`string`?t.enqueue(Qh.encode(e)):t.enqueue(Jh(e.$b64))}catch{}},throw(e){t.error(e)},return(){try{t.close()}catch{}}})}}),eg=`(s=>new ReadableStream({start(c){s.on({next(b){try{const d=atob(b),a=new Uint8Array(d.length);for(let i=0;i<d.length;i++)a[i]=d.charCodeAt(i);c.enqueue(a)}catch(_){}},throw(e){c.error(e)},return(){try{c.close()}catch(_){}}})}}))`,tg=`(s=>{const e=new TextEncoder();return new ReadableStream({start(c){s.on({next(v){try{if(typeof v==='string'){c.enqueue(e.encode(v))}else{const d=atob(v.$b64),a=new Uint8Array(d.length);for(let i=0;i<d.length;i++)a[i]=d.charCodeAt(i);c.enqueue(a)}}catch(_){}},throw(x){c.error(x)},return(){try{c.close()}catch(_){}}})}})})`;function ng(e){let t=Qp(),n=e.getReader();return(async()=>{try{for(;;){let{done:e,value:r}=await n.read();if(e){t.return(void 0);break}t.next(qh(r))}}catch(e){t.throw(e)}finally{n.releaseLock()}})(),t}function rg(e){let t=Qp(),n=e.getReader(),r=new TextDecoder(`utf-8`,{fatal:!0});return(async()=>{try{for(;;){let{done:e,value:i}=await n.read();if(e){try{let e=r.decode();e.length>0&&t.next(e)}catch{}t.return(void 0);break}try{let e=r.decode(i,{stream:!0});e.length>0&&t.next(e)}catch{t.next({$b64:qh(i)})}}}catch(e){t.throw(e)}finally{n.releaseLock()}})(),t}var ig=zm({tag:`tss/RawStream`,extends:[zm({tag:`tss/RawStreamFactory`,test(e){return e===Yh},parse:{sync(e,t,n){return{}},async async(e,t,n){return{}},stream(e,t,n){return{}}},serialize(e,t,n){return eg},deserialize(e,t,n){return Yh}}),zm({tag:`tss/RawStreamFactoryText`,test(e){return e===Xh},parse:{sync(e,t,n){return{}},async async(e,t,n){return{}},stream(e,t,n){return{}}},serialize(e,t,n){return tg},deserialize(e,t,n){return Xh}})],test(e){return e instanceof Wh},parse:{sync(e,t,n){let r=e.hint===`text`?Xh:Yh;return{hint:t.parse(e.hint),factory:t.parse(r),stream:t.parse(Qp())}},async async(e,t,n){let r=e.hint===`text`?Xh:Yh,i=e.hint===`text`?rg(e.stream):ng(e.stream);return{hint:await t.parse(e.hint),factory:await t.parse(r),stream:await t.parse(i)}},stream(e,t,n){let r=e.hint===`text`?Xh:Yh,i=e.hint===`text`?rg(e.stream):ng(e.stream);return{hint:t.parse(e.hint),factory:t.parse(r),stream:t.parse(i)}}},serialize(e,t,n){return`(`+t.serialize(e.factory)+`)(`+t.serialize(e.stream)+`)`},deserialize(e,t,n){let r=t.deserialize(e.stream);return t.deserialize(e.hint)===`text`?$h(r):Zh(r)}});function ag(e){return zm({tag:`tss/RawStream`,test:()=>!1,parse:{},serialize(){throw Error(`RawStreamDeserializePlugin.serialize should not be called. Client only deserializes.`)},deserialize(t,n,r){return e(typeof n?.deserialize==`function`?n.deserialize(t.streamId):t.streamId)}})}var og=zm({tag:`$TSR/Error`,test(e){return e instanceof Error},parse:{sync(e,t){return{message:t.parse(e.message)}},async async(e,t){return{message:await t.parse(e.message)}},stream(e,t){return{message:t.parse(e.message)}}},serialize(e,t){return`new Error(`+t.serialize(e.message)+`)`},deserialize(e,t){return Error(t.deserialize(e.message))}}),sg={},cg=e=>new ReadableStream({start:t=>{e.on({next:e=>{try{t.enqueue(e)}catch{}},throw:e=>{t.error(e)},return:()=>{try{t.close()}catch{}}})}}),lg=zm({tag:`seroval-plugins/web/ReadableStreamFactory`,test(e){return e===sg},parse:{sync(){return sg},async async(){return await Promise.resolve(sg)},stream(){return sg}},serialize(){return cg.toString()},deserialize(){return sg}});function ug(e){let t=Qp(),n=e.getReader();async function r(){try{let e=await n.read();e.done?t.return(e.value):(t.next(e.value),await r())}catch(e){t.throw(e)}}return r().catch(()=>{}),t}var dg=[og,ig,zm({tag:`seroval/plugins/web/ReadableStream`,extends:[lg],test(e){return typeof ReadableStream>`u`?!1:e instanceof ReadableStream},parse:{sync(e,t){return{factory:t.parse(sg),stream:t.parse(Qp())}},async async(e,t){return{factory:await t.parse(sg),stream:await t.parse(ug(e))}},stream(e,t){return{factory:t.parse(sg),stream:t.parse(ug(e))}}},serialize(e,t){return`(`+t.serialize(e.factory)+`)(`+t.serialize(e.stream)+`)`},deserialize(e,t){return cg(t.deserialize(e.stream))}})];function fg(){return[...(Nu()?.serializationAdapters)?.map(Uh)??[],...dg]}var pg=new TextDecoder,mg=new Uint8Array,hg=16*1024*1024,gg=32*1024*1024,_g=1024,vg=1e5;function yg(e){let t=new Map,n=new Map,r=new Set,i=!1,a=null,o=0,s,c=new ReadableStream({start(e){s=e},cancel(){i=!0;try{a?.cancel()}catch{}
12t.forEach(e=>{try{e.error(Error(`Framed response cancelled`))}catch{}}),t.clear(),n.clear(),r.clear()}});function l(e){let i=n.get(e);if(i)return i;if(r.has(e))return new ReadableStream({start(e){e.close()}});if(n.size>=_g)throw Error(`Too many raw streams in framed response (max ${_g})`);let a=new ReadableStream({start(n){t.set(e,n)},cancel(){r.add(e),t.delete(e),n.delete(e)}});return n.set(e,a),a}function u(e){return l(e),t.get(e)}return(async()=>{let n=e.getReader();a=n;let c=[],l=0;function d(){if(l<9)return null;let e=c[0];if(e.length>=9)return{type:e[0],streamId:(e[1]<<24|e[2]<<16|e[3]<<8|e[4])>>>0,length:(e[5]<<24|e[6]<<16|e[7]<<8|e[8])>>>0};let t=new Uint8Array(9),n=0,r=9;for(let e=0;e<c.length&&r>0;e++){let i=c[e],a=Math.min(i.length,r);t.set(i.subarray(0,a),n),n+=a,r-=a}return{type:t[0],streamId:(t[1]<<24|t[2]<<16|t[3]<<8|t[4])>>>0,length:(t[5]<<24|t[6]<<16|t[7]<<8|t[8])>>>0}}function f(e){if(e===0)return mg;let t=new Uint8Array(e),n=0,r=e;for(;r>0&&c.length>0;){let e=c[0];if(!e)break;let i=Math.min(e.length,r);t.set(e.subarray(0,i),n),n+=i,r-=i,i===e.length?c.shift():c[0]=e.subarray(i)}return l-=e,t}try{for(;;){let{done:e,value:a}=await n.read();if(i||e)break;if(a){if(l+a.length>gg)throw Error(`Framed response buffer exceeded ${gg} bytes`);for(c.push(a),l+=a.length;;){let e=d();if(!e)break;let{type:n,streamId:i,length:a}=e;if(n!==ku.JSON&&n!==ku.CHUNK&&n!==ku.END&&n!==ku.ERROR)throw Error(`Unknown frame type: ${n}`);if(n===ku.JSON){if(i!==0)throw Error(`Invalid JSON frame streamId (expected 0)`)}else if(i===0)throw Error(`Invalid raw frame streamId (expected non-zero)`);if(a>hg)throw Error(`Frame payload too large: ${a} bytes (max ${hg})`);let c=9+a;if(l<c)break;if(++o>vg)throw Error(`Too many frames in framed response (max ${vg})`);f(9);let p=f(a);switch(n){case ku.JSON:try{s.enqueue(pg.decode(p))}catch{}break;case ku.CHUNK:{let e=u(i);e&&e.enqueue(p);break}case ku.END:{let e=u(i);if(r.add(i),e){try{e.close()}catch{}t.delete(i)}break}case ku.ERROR:{let e=u(i);if(r.add(i),e){let n=pg.decode(p);e.error(Error(n)),t.delete(i)}break}}}}}if(l!==0)throw Error(`Incomplete frame at end of framed response`);try{s.close()}catch{}t.forEach(e=>{try{e.close()}catch{}}),t.clear()}catch(e){try{s.error(e)}catch{}t.forEach(t=>{try{t.error(e)}catch{}}),t.clear()}finally{try{n.releaseLock()}catch{}a=null}})(),{getOrCreateStream:l,jsonChunks:c}}var bg=null;async function xg(e){e.length>0&&await Promise.allSettled(e)}var Sg=Object.prototype.hasOwnProperty;function Cg(e){for(let t in e)if(Sg.call(e,t))return!0;return!1}async function wg(e,t,n){bg||=fg();let r=t[0],i=r.fetch??n,a=r.data instanceof FormData?`formData`:`payload`,o=r.headers?new Headers(r.headers):new Headers;if(o.set(`x-tsr-serverFn`,`true`),a===`payload`&&o.set(`accept`,`${Ou}, application/x-ndjson, application/json`),r.method===`GET`){if(a===`formData`)throw Error(`FormData is not supported with GET requests`);let t=await Tg(r);if(t!==void 0){let n=Pu({payload:t});e.includes(`?`)?e+=`&${n}`:e+=`?${n}`}}let s;if(r.method===`POST`){let e=await Dg(r);e?.contentType&&o.set(`content-type`,e.contentType),s=e?.body}return await Og(async()=>i(e,{method:r.method,headers:o,signal:r.signal,body:s}))}async function Tg(e){let t=!1,n={};if(e.data!==void 0&&(t=!0,n.data=e.data),e.context&&Cg(e.context)&&(t=!0,n.context=e.context),t)return Eg(n)}async function Eg(e){return JSON.stringify(await Promise.resolve(Vh(e,{plugins:bg})))}async function Dg(e){if(e.data instanceof FormData){let t;return e.context&&Cg(e.context)&&(t=await Eg(e.context)),t!==void 0&&e.data.set(Tu,t),{body:e.data}}let t=await Tg(e);if(t)return{body:t,contentType:`application/json`}}async function Og(e){let t;try{t=await e()}catch(e){if(e instanceof Response)t=e;else throw console.log(e),e}if(t.headers.get(`x-tss-raw`)===`true`)return t;let n=t.headers.get(`content-type`);if(n||j(),t.headers.get(`x-tss-serialized`)){let e;if(n.includes(`application/x-tss-framed`)){if(Mu(n),!t.body)throw Error(`No response body for framed response`);
12let{getOrCreateStream:r,jsonChunks:i}=yg(t.body),a=[ag(r),...bg||[]],o=new Map;e=await kg({jsonStream:i,onMessage:e=>Bh(e,{refs:o,plugins:a}),onError(e,t){console.error(e,t)}})}else if(n.includes(`application/json`)){let n=await t.json(),r=[];try{e=Bh(n,{plugins:bg})}finally{}await xg(r)}if(e||j(),e instanceof Error)throw e;return e}if(n.includes(`application/json`)){let e=await t.json(),n=he(e);if(n)throw n;if(ye(e))throw e;return e}if(!t.ok)throw Error(await t.text());return t}async function kg({jsonStream:e,onMessage:t,onError:n}){let r=e.getReader(),{value:i,done:a}=await r.read();if(a||!i)throw Error(`Stream ended before first object`);let o=JSON.parse(i),s=!1,c=(async()=>{try{for(;;){let{value:e,done:i}=await r.read();if(i)break;if(e)try{let n=[];try{t(JSON.parse(e))}finally{}await xg(n)}catch(t){n?.(`Invalid JSON: ${e}`,t)}}}catch(e){s||n?.(`Stream processing error:`,e)}})(),l,u=[];try{l=t(o)}catch(e){throw s=!0,r.cancel().catch(()=>{}),e}return await xg(u),Promise.resolve(l).catch(()=>{s=!0,r.cancel().catch(()=>{})}),c.finally(()=>{try{r.releaseLock()}catch{}}),l}function Ag(e){let t=`/_serverFn/`+e;return Object.assign((...e)=>{let n=Nu()?.serverFns?.fetch;return wg(t,e,n??fetch)},{url:t,serverFnMeta:{id:e},[Eu]:!0})}var jg=Hh({key:`$TSS/serverfn`,test:e=>typeof e!=`function`||!(Eu in e)?!1:!!e[Eu],toSerializable:({serverFnMeta:e})=>({functionId:e.id}),fromSerializable:({functionId:e})=>Ag(e)});function Mg(e){if(Array.isArray(e))return e.flatMap(e=>Mg(e));if(typeof e!=`string`)return[];let t=[],n=0,r,i,a,o,s,c=()=>{for(;n<e.length&&/\s/.test(e.charAt(n));)n+=1;return n<e.length},l=()=>(i=e.charAt(n),i!==`=`&&i!==`;`&&i!==`,`);for(;n<e.length;){for(r=n,s=!1;c();)if(i=e.charAt(n),i===`,`){for(a=n,n+=1,c(),o=n;n<e.length&&l();)n+=1;n<e.length&&e.charAt(n)===`=`?(s=!0,n=o,t.push(e.slice(r,a)),r=n):n=a+1}else n+=1;(!s||n>=e.length)&&t.push(e.slice(r))}return t}function Ng(e){return e instanceof Headers?e:Array.isArray(e)||typeof e==`object`?new Headers(e):null}function Pg(...e){return e.reduce((e,t)=>{let n=Ng(t);if(!n)return e;for(let[t,r]of n.entries())t===`set-cookie`?Mg(r).forEach(t=>e.append(`set-cookie`,t)):e.set(t,r);return e},new Headers)}function Fg(e){return e.replaceAll(`\0`,`/`).replaceAll(`�`,`/`)}function Ig(e,t){e.id=t.i,e.__beforeLoadContext=t.b,e.loaderData=t.l,e.status=t.s,e.ssr=t.ssr,e.updatedAt=t.u,e.error=t.e,t.g!==void 0&&(e.globalNotFound=t.g)}async function Lg(e){window.$_TSR||j();let t=e.options.serializationAdapters;if(t?.length){let e=new Map;t.forEach(t=>{e.set(t.key,t.fromSerializable)}),window.$_TSR.t=e,window.$_TSR.buffer.forEach(e=>e())}window.$_TSR.initialized=!0,window.$_TSR.router||j();let n=window.$_TSR.router;n.matches.forEach(e=>{e.i=Fg(e.i)}),n.lastMatchId&&=Fg(n.lastMatchId);let{manifest:r,dehydratedData:i,lastMatchId:a}=n;e.ssr={manifest:r};let o=document.querySelector(`meta[property="csp-nonce"]`)?.content;e.options.ssr={nonce:o},await e.options.hydrate?.(i);let s=e.matchRoutes(e.stores.location.get()),c=Promise.all(s.map(t=>e.loadRouteChunk(e.looseRoutesById[t.routeId])));function l(t){let n=e.looseRoutesById[t.routeId].options.pendingMinMs??e.options.defaultPendingMinMs;if(n){let r=h();t._nonReactive.minPendingPromise=r,t._forcePending=!0,setTimeout(()=>{r.resolve(),e.updateMatch(t.id,e=>(e._nonReactive.minPendingPromise=void 0,{...e,_forcePending:void 0}))},n)}}function u(t){let n=e.looseRoutesById[t.routeId];n&&(n.options.ssr=t.ssr)}let d;s.forEach(e=>{let t=n.matches.find(t=>t.i===e.id);if(!t){e._nonReactive.dehydrated=!1,e.ssr=!1,u(e);return}Ig(e,t),u(e),e._nonReactive.dehydrated=e.ssr!==!1,(e.ssr===`data-only`||e.ssr===!1)&&d===void 0&&(d=e.index,l(e))}),e.stores.setMatches(s);let f=e.stores.matches.get(),p=e.stores.location.get();await Promise.all(f.map(async t=>{try{let n=e.looseRoutesById[t.routeId],r=f[t.index-1]?.context??e.options.context;if(n.options.context){let i={deps:t.loaderDeps,params:t.params,context:r??{},location:p,navigate:t=>e.navigate({...t,_fromLocation:p}),buildLocation:e.buildLocation,cause:t.cause,abortController:t.abortController,preload:!1,matches:s,routeId:n.id};
12t.__routeContext=n.options.context(i)??void 0}t.context={...r,...t.__routeContext,...t.__beforeLoadContext};let i={ssr:e.options.ssr,matches:f,match:t,params:t.params,loaderData:t.loaderData},a=await n.options.head?.(i),o=await n.options.scripts?.(i);t.meta=a?.meta,t.links=a?.links,t.headScripts=a?.scripts,t.styles=a?.styles,t.scripts=o}catch(e){if(ye(e))t.error={isNotFound:!0},console.error(`NotFound error during hydration for routeId: ${t.routeId}`,e);else throw t.error=e,console.error(`Error during hydration for route ${t.routeId}:`,e),e}}));let m=s[s.length-1].id!==a;if(!s.some(e=>e.ssr===!1)&&!m)return s.forEach(e=>{e._nonReactive.dehydrated=void 0}),e.stores.resolvedLocation.set(e.stores.location.get()),c;let g=Promise.resolve().then(()=>e.load()).catch(e=>{console.error(`Error during router hydration:`,e)});if(m){let t=s[1];t||j(),l(t),t._displayPending=!0,t._nonReactive.displayPendingPromise=g,g.then(()=>{e.batch(()=>{e.stores.status.get()===`pending`&&(e.stores.status.set(`idle`),e.stores.resolvedLocation.set(e.stores.location.get())),e.updateMatch(t.id,e=>({...e,_displayPending:void 0,displayPendingPromise:void 0}))})})}return c}var J=x(te(),1),Y=D();function Rg({promise:e}){if(N)return N(e);let t=Qd(e);if(t[Zd].status===`pending`)throw t;if(t[Zd].status===`error`)throw t[Zd].error;return t[Zd].data}function zg(e){let t=(0,Y.jsx)(Bg,{...e});return e.fallback?(0,Y.jsx)(J.Suspense,{fallback:e.fallback,children:t}):t}function Bg(e){let t=Rg(e);return e.children(t)}function Vg(e){let t=e.errorComponent??Ug;return(0,Y.jsx)(Hg,{getResetKey:e.getResetKey,onCatch:e.onCatch,children:({error:n,reset:r})=>n?J.createElement(t,{error:n,reset:r}):e.children})}var Hg=class extends J.Component{constructor(...e){super(...e),this.state={error:null}}static getDerivedStateFromProps(e,t){let n=e.getResetKey();return t.error&&t.resetKey!==n?{resetKey:n,error:null}:{resetKey:n}}static getDerivedStateFromError(e){return{error:e}}reset(){this.setState({error:null})}componentDidCatch(e,t){this.props.onCatch&&this.props.onCatch(e,t)}render(){return this.props.children({error:this.state.error,reset:()=>{this.reset()}})}};function Ug({error:e}){let[t,n]=J.useState(!1);return(0,Y.jsxs)(`div`,{style:{padding:`.5rem`,maxWidth:`100%`},children:[(0,Y.jsxs)(`div`,{style:{display:`flex`,alignItems:`center`,gap:`.5rem`},children:[(0,Y.jsx)(`strong`,{style:{fontSize:`1rem`},children:`Something went wrong!`}),(0,Y.jsx)(`button`,{style:{appearance:`none`,fontSize:`.6em`,border:`1px solid currentColor`,padding:`.1rem .2rem`,fontWeight:`bold`,borderRadius:`.25rem`},onClick:()=>n(e=>!e),children:t?`Hide Error`:`Show Error`})]}),(0,Y.jsx)(`div`,{style:{height:`.25rem`}}),t?(0,Y.jsx)(`div`,{children:(0,Y.jsx)(`pre`,{style:{fontSize:`.7em`,border:`1px solid red`,borderRadius:`.25rem`,padding:`.3rem`,color:`red`,overflow:`auto`},children:e.message?(0,Y.jsx)(`code`,{children:e.message}):null})}):null]})}var Wg=(e=>(e[e.None=0]=`None`,e[e.Mutable=1]=`Mutable`,e[e.Watching=2]=`Watching`,e[e.RecursedCheck=4]=`RecursedCheck`,e[e.Recursed=8]=`Recursed`,e[e.Dirty=16]=`Dirty`,e[e.Pending=32]=`Pending`,e))(Wg||{});function Gg({update:e,notify:t,unwatched:n}){return{link:r,unlink:i,propagate:a,checkDirty:o,shallowPropagate:s};function r(e,t,n){let r=t.depsTail;if(r!==void 0&&r.dep===e)return;let i=r===void 0?t.deps:r.nextDep;if(i!==void 0&&i.dep===e){i.version=n,t.depsTail=i;return}let a=e.subsTail;if(a!==void 0&&a.version===n&&a.sub===t)return;let o=t.depsTail=e.subsTail={version:n,dep:e,sub:t,prevDep:r,nextDep:i,prevSub:a,nextSub:void 0};i!==void 0&&(i.prevDep=o),r===void 0?t.deps=o:r.nextDep=o,a===void 0?e.subs=o:a.nextSub=o}function i(e,t=e.sub){let r=e.dep,i=e.prevDep,a=e.nextDep,o=e.nextSub,s=e.prevSub;return a===void 0?t.depsTail=i:a.prevDep=i,i===void 0?t.deps=a:i.nextDep=a,o===void 0?r.subsTail=s:o.prevSub=s,s===void 0?(r.subs=o)===void 0&&n(r):s.nextSub=o,a}function a(e){let n=e.nextSub,r;top:do{let i=e.sub,a=i.flags;if(a&60?a&12?a&4?!(a&48)&&c(e,i)?(i.flags=a|40,a&=1):a=0:i.flags=a&-9|32:a=0:i.flags=a|32,a&2&&t(i),a&1){let t=i.subs;if(t!==void 0){let i=(e=t).nextSub;i!==void 0&&(r={value:n,prev:r},n=i);continue}}if((e=n)!==void 0){n=e.nextSub;continue}for(;r!==void 0;)if(e=r.value,r=r.prev,e!==void 0){n=e.nextSub;continue top}break}while(!0)}function o(t,n){let r,i=0,a=!1;top:do{let o=t.dep,c=o.flags;if(n.flags&16)a=!0;else if((c&17)==17){if(e(o)){let e=o.subs;e.nextSub!==void 0&&s(e),a=!0}}else if((c&33)==33){(t.nextSub!==void 0||t.prevSub!==void 0)&&(r={value:t,prev:r}),t=o.deps,n=o,++i;continue}if(!a){let e=t.nextDep;if(e!==void 0){t=e;continue}}for(;i--;){let i=n.subs,o=i.nextSub!==void 0;if(o?(t=r.value,r=r.prev):t=i,a){if(e(n)){o&&s(i),n=t.sub;continue}a=!1}else n.flags&=-33;n=t.sub;let c=t.nextDep;if(c!==void 0){t=c;continue top}}return a}while(!0)}function s(e){do{let n=e.sub,r=n.flags;(r&48)==32&&(n.flags=r|16,(r&6)==2&&t(n))}while((e=e.nextSub)!==void 0)}function c(e,t){let n=t.depsTail;for(;n!==void 0;){if(n===e)return!0;n=n.prevDep}return!1}}function Kg(e,t,n){let r=typeof e==`object`,i=r?e:void 0;return{next:(r?e.next:e)?.bind(i),error:(r?e.error:t)?.bind(i),complete:(r?e.complete:n)?.bind(i)}}var qg=[],Jg=0,{link:Yg,unlink:Xg,propagate:Zg,checkDirty:Qg,shallowPropagate:$g}=Gg({update(e){return e._update()},notify(e){qg[t_++]=e,e.flags&=~Wg.Watching},unwatched(e){e.depsTail!==void 0&&(e.depsTail=void 0,e.flags=Wg.Mutable|Wg.Dirty,a_(e))}}),e_=0,t_=0,n_,r_=0;function i_(e){try{++r_,e()}finally{--r_||o_()}}function a_(e){let t=e.depsTail,n=t===void 0?e.deps:t.nextDep;for(;n!==void 0;)n=Xg(n,e)}function o_(){if(!(r_>0)){for(;e_<t_;){let e=qg[e_];qg[e_++]=void 0,e.notify()}e_=0,t_=0}}function s_(e,t){let n=typeof e==`function`,r=e,i={_snapshot:n?void 0:e,subs:void 0,subsTail:void 0,deps:void 0,depsTail:void 0,flags:n?Wg.None:Wg.Mutable,get(){return n_!==void 0&&Yg(i,n_,Jg),i._snapshot},subscribe(e){let t=Kg(e),n={current:!1},r=c_(()=>{i.get(),n.current?t.next?.(i._snapshot):n.current=!0});return{unsubscribe:()=>{r.stop()}}},_update(e){let a=n_,o=t?.compare??Object.is;if(n)n_=i,++Jg,i.depsTail=void 0;else if(e===void 0)return!1;
12n&&(i.flags=Wg.Mutable|Wg.RecursedCheck);try{let t=i._snapshot,a=typeof e==`function`?e(t):e===void 0&&n?r(t):e;return t===void 0||!o(t,a)?(i._snapshot=a,!0):!1}finally{n_=a,n&&(i.flags&=~Wg.RecursedCheck),a_(i)}}};return n?(i.flags=Wg.Mutable|Wg.Dirty,i.get=function(){let e=i.flags;if(e&Wg.Dirty||e&Wg.Pending&&Qg(i.deps,i)){if(i._update()){let e=i.subs;e!==void 0&&$g(e)}}else e&Wg.Pending&&(i.flags=e&~Wg.Pending);return n_!==void 0&&Yg(i,n_,Jg),i._snapshot}):i.set=function(e){if(i._update(e)){let e=i.subs;e!==void 0&&(Zg(e),$g(e),o_())}},i}function c_(e){let t=()=>{let t=n_;n_=n,++Jg,n.depsTail=void 0,n.flags=Wg.Watching|Wg.RecursedCheck;try{return e()}finally{n_=t,n.flags&=~Wg.RecursedCheck,a_(n)}},n={deps:void 0,depsTail:void 0,subs:void 0,subsTail:void 0,flags:Wg.Watching|Wg.RecursedCheck,notify(){let e=this.flags;e&Wg.Dirty||e&Wg.Pending&&Qg(this.deps,this)?t():this.flags=Wg.Watching},stop(){this.flags=Wg.None,this.depsTail=void 0,a_(this)}};return t(),n}function l_(e,t){let n,r,i,a,o=()=>(n||=e().then(e=>{n=void 0,r=e[t??`default`]}).catch(e=>{if(i=e,s(i)&&i instanceof Error&&typeof window<`u`&&typeof sessionStorage<`u`){let e=`tanstack_router_reload:${i.message}`;sessionStorage.getItem(e)||(sessionStorage.setItem(e,`1`),a=!0)}}),n),c=function(e){if(a)throw window.location.reload(),new Promise(()=>{});if(i)throw i;if(!r)if(N)N(o());else throw o();return J.createElement(r,e)};return c.preload=o,c}function u_(e){let t=A(),n=`not-found-${L(t.stores.location,e=>e.pathname)}-${L(t.stores.status,e=>e)}`;return(0,Y.jsx)(Vg,{getResetKey:()=>n,onCatch:(t,n)=>{if(ye(t))e.onCatch?.(t,n);else throw t},errorComponent:({error:t})=>{if(ye(t))return e.fallback?.(t);throw t},children:e.children})}function d_(){return(0,Y.jsx)(`p`,{children:`Not Found`})}function f_(e){return(0,Y.jsx)(Y.Fragment,{children:e.children})}function p_(e,t,n){return t.options.notFoundComponent?(0,Y.jsx)(t.options.notFoundComponent,{...n}):e.options.defaultNotFoundComponent?(0,Y.jsx)(e.options.defaultNotFoundComponent,{...n}):(0,Y.jsx)(d_,{})}var m_=J.memo(function({matchId:e}){let t=A(),n=t.stores.matchStores.get(e);n||j();let r=L(t.stores.loadedAt,e=>e),i=L(n,e=>e);return(0,Y.jsx)(h_,{router:t,matchId:e,resetKey:r,matchState:J.useMemo(()=>{let e=i.routeId,n=t.routesById[e].parentRoute?.id;return{routeId:e,ssr:i.ssr,_displayPending:i._displayPending,parentRouteId:n}},[i._displayPending,i.routeId,i.ssr,t.routesById])})});function h_({router:e,matchId:t,resetKey:n,matchState:r}){let i=e.routesById[r.routeId],a=i.options.pendingComponent??e.options.defaultPendingComponent,o=a?(0,Y.jsx)(a,{}):null,s=i.options.errorComponent??e.options.defaultErrorComponent,c=i.options.onCatch??e.options.defaultOnCatch,l=i.isRoot?i.options.notFoundComponent??e.options.notFoundRoute?.options.component:i.options.notFoundComponent,u=r.ssr===!1||r.ssr===`data-only`,d=(!i.isRoot||i.options.wrapInSuspense||u)&&(i.options.wrapInSuspense??a??(i.options.errorComponent?.preload||u))?J.Suspense:f_,f=s?Vg:f_,p=l?u_:f_;return(0,Y.jsxs)(i.isRoot?i.options.shellComponent??f_:f_,{children:[(0,Y.jsx)(ge.Provider,{value:t,children:(0,Y.jsx)(d,{fallback:o,children:(0,Y.jsx)(f,{getResetKey:()=>n,errorComponent:s||Ug,onCatch:(e,t)=>{if(ye(e))throw e.routeId??=r.routeId,e;c?.(e,t)},children:(0,Y.jsx)(p,{fallback:e=>{if(e.routeId??=r.routeId,!l||e.routeId&&e.routeId!==r.routeId||!e.routeId&&!i.isRoot)throw e;return J.createElement(l,e)},children:u||r._displayPending?(0,Y.jsx)(I,{fallback:o,children:(0,Y.jsx)(__,{matchId:t})}):(0,Y.jsx)(__,{matchId:t})})})})}),r.parentRouteId===`__root__`?(0,Y.jsxs)(Y.Fragment,{children:[(0,Y.jsx)(g_,{resetKey:n}),(e.options.scrollRestoration,null)]}):null]})}function g_({resetKey:e}){let t=A(),n=J.useRef(void 0);return O(()=>{let e=t.latestLocation.href;(n.current===void 0||n.current!==e)&&(t.emit({type:`onRendered`,...Ed(t.stores.location.get(),t.stores.resolvedLocation.get())}),n.current=e)},[t.latestLocation.state.__TSR_key,e,t]),null}var __=J.memo(function({matchId:e}){let t=A(),n=(e,n)=>t.getMatch(e.id)?._nonReactive[n]??e._nonReactive[n],r=t.stores.matchStores.get(e);r||j();let i=L(r,e=>e),a=i.routeId,o=t.routesById[a],s=J.useMemo(()=>{let e=(t.routesById[a].options.remountDeps??t.options.defaultRemountDeps)?.({routeId:a,loaderDeps:i.loaderDeps,params:i._strictParams,search:i._strictSearch});return e?JSON.stringify(e):void 0},[a,i.loaderDeps,i._strictParams,i._strictSearch,t.options.defaultRemountDeps,t.routesById]),c=J.useMemo(()=>{let e=o.options.component??t.options.defaultComponent;return e?(0,Y.jsx)(e,{},s):(0,Y.jsx)(v_,{})},[s,o.options.component,t.options.defaultComponent]);if(i._displayPending)throw n(i,`displayPendingPromise`);if(i._forcePending)throw n(i,`minPendingPromise`);
12if(i.status===`pending`){let e=o.options.pendingMinMs??t.options.defaultPendingMinMs;if(e){let n=t.getMatch(i.id);if(n&&!n._nonReactive.minPendingPromise){let t=h();n._nonReactive.minPendingPromise=t,setTimeout(()=>{t.resolve(),n._nonReactive.minPendingPromise=void 0},e)}}throw n(i,`loadPromise`)}if(i.status===`notFound`)return ye(i.error)||j(),p_(t,o,i.error);if(i.status===`redirected`)throw ve(i.error)||j(),n(i,`loadPromise`);if(i.status===`error`)throw i.error;return c}),v_=J.memo(function(){let e=A(),t=J.useContext(ge),n,r=!1,i;{let a=t?e.stores.matchStores.get(t):void 0;[n,r]=L(a,e=>[e?.routeId,e?.globalNotFound??!1]),i=L(e.stores.matchesId,e=>e[e.findIndex(e=>e===t)+1])}let a=n?e.routesById[n]:void 0,o=e.options.defaultPendingComponent?(0,Y.jsx)(e.options.defaultPendingComponent,{}):null;if(r)return a||j(),p_(e,a,void 0);if(!i)return null;let s=(0,Y.jsx)(m_,{matchId:i});return n===`__root__`?(0,Y.jsx)(J.Suspense,{fallback:o,children:s}):s});function y_(){let e=A(),t=J.useRef({router:e,mounted:!1}),[r,i]=J.useState(!1),a=L(e.stores.isLoading,e=>e),o=L(e.stores.hasPending,e=>e),s=ee(a),c=a||r||o,l=ee(c),u=a||o,d=ee(u);return e.startTransition=e=>{i(!0),J.startTransition(()=>{e(),i(!1)})},J.useEffect(()=>{let t=e.history.subscribe(e.load),r=e.buildLocation({to:e.latestLocation.pathname,search:!0,params:!0,hash:!0,state:!0,_includeValidateSearch:!0});return n(e.latestLocation.publicHref)!==n(r.publicHref)&&e.commitLocation({...r,replace:!0}),()=>{t()}},[e,e.history]),O(()=>{typeof window<`u`&&e.ssr||t.current.router===e&&t.current.mounted||(t.current={router:e,mounted:!0},(async()=>{try{await e.load()}catch(e){console.error(e)}})())},[e]),O(()=>{s&&!a&&e.emit({type:`onLoad`,...Ed(e.stores.location.get(),e.stores.resolvedLocation.get())})},[s,e,a]),O(()=>{d&&!u&&e.emit({type:`onBeforeRouteMount`,...Ed(e.stores.location.get(),e.stores.resolvedLocation.get())})},[u,d,e]),O(()=>{if(l&&!c){let t=Ed(e.stores.location.get(),e.stores.resolvedLocation.get());e.emit({type:`onResolved`,...t}),i_(()=>{e.stores.status.set(`idle`),e.stores.resolvedLocation.set(e.stores.location.get())})}},[c,l,e]),null}function b_(){let e=A(),t=e.routesById.__root__.options.pendingComponent??e.options.defaultPendingComponent,n=t?(0,Y.jsx)(t,{}):null,r=(0,Y.jsxs)(typeof document<`u`&&e.ssr?f_:J.Suspense,{fallback:n,children:[(0,Y.jsx)(y_,{}),(0,Y.jsx)(x_,{})]});return e.options.InnerWrap?(0,Y.jsx)(e.options.InnerWrap,{children:r}):r}function x_(){let e=A(),t=L(e.stores.firstId,e=>e),n=L(e.stores.loadedAt,e=>e),r=t?(0,Y.jsx)(m_,{matchId:t}):null;return(0,Y.jsx)(ge.Provider,{value:t,children:e.options.disableGlobalCatchBoundary?r:(0,Y.jsx)(Vg,{getResetKey:()=>n,errorComponent:Ug,onCatch:void 0,children:r})})}var S_=e=>({createMutableStore:s_,createReadonlyStore:s_,batch:i_}),C_=e=>new w_(e),w_=class extends Dd{constructor(e){super(e,S_)}};function T_({router:e,children:n,...r}){t(r)&&e.update({...e.options,...r,context:{...e.options.context,...r.context}});let i=(0,Y.jsx)(w.Provider,{value:e,children:n});return e.options.Wrap?(0,Y.jsx)(e.options.Wrap,{children:i}):i}function E_({router:e,...t}){return(0,Y.jsx)(T_,{router:e,...t,children:(0,Y.jsx)(b_,{})})}function D_(e){let t=A({warn:e?.router===void 0}),n=e?.router||t,r=(0,J.useRef)(void 0);return L(n.stores.__store,t=>{if(e?.select){if(e.structuralSharing??n.options.defaultStructuralSharing){let n=u(r.current,e.select(t));return r.current=n,n}return e.select(t)}return t})}function O_(e,t){if(t)for(let[n,r]of Object.entries(t))n!==`suppressHydrationWarning`&&r!==void 0&&r!==!1&&e.setAttribute(n,typeof r==`boolean`?``:String(r))}function k_(e){let{attrs:t,children:n,nonce:r,preventScriptHoist:i}=e;switch(e.tag){case`title`:return(0,Y.jsx)(`title`,{...t,suppressHydrationWarning:!0,children:n});case`meta`:return(0,Y.jsx)(`meta`,{...t,suppressHydrationWarning:!0});case`link`:return(0,Y.jsx)(`link`,{...t,precedence:t?.precedence??(t?.rel===`stylesheet`?`default`:void 0),nonce:r,suppressHydrationWarning:!0});case`style`:return e.inlineCss,(0,Y.jsx)(`style`,{...t,dangerouslySetInnerHTML:{__html:n},nonce:r});case`script`:return(0,Y.jsx)(A_,{attrs:t,preventScriptHoist:i,children:n});default:return null}}function A_({attrs:e,children:t,preventScriptHoist:n}){A();let r=re(),i=typeof e?.type==`string`&&e.type!==``&&e.type!==`text/javascript`&&e.type!==`module`;if(J.useEffect(()=>{if(!i){if(e?.src){let t=(()=>{try{let t=document.baseURI||window.location.href;return new URL(e.src,t).href}catch{return e.src}})();for(let e of document.querySelectorAll(`script[src]`))if(e.src===t)return;let n=document.createElement(`script`);return O_(n,e),document.head.appendChild(n),()=>n.remove()}if(typeof t==`string`){let n=typeof e?.type==`string`?e.type:`text/javascript`,r=typeof e?.nonce==`string`?e.nonce:void 0;for(let e of document.querySelectorAll(`script:not([src])`)){if(!(e instanceof HTMLScriptElement))continue;let i=e.getAttribute(`type`)??`text/javascript`,a=e.getAttribute(`nonce`)??void 0;if(e.textContent===t&&i===n&&a===r)return}let i=document.createElement(`script`);return i.textContent=t,O_(i,e),document.head.appendChild(i),()=>i.remove()}}},[e,t,i]),i&&typeof t==`string`)return(0,Y.jsx)(`script`,{...e,suppressHydrationWarning:!0,dangerouslySetInnerHTML:{__html:t}});if(!r){if(e?.src)return(0,Y.jsx)(`script`,{...e,suppressHydrationWarning:!0});if(typeof t==`string`)return(0,Y.jsx)(`script`,{...e,dangerouslySetInnerHTML:{__html:t},suppressHydrationWarning:!0})}return null}var j_=e=>{let t=A(),n=t.options.ssr?.nonce,r=L(t.stores.matches,e=>e.map(e=>e.meta).filter(e=>e!==void 0),c),i=J.useMemo(()=>{let e=[],t={},i;for(let a=r.length-1;a>=0;a--){let o=r[a];for(let r=o.length-1;r>=0;r--){let a=o[r];if(a)if(a.title)i||={tag:`title`,children:a.title};else if(`script:ld+json`in a)try{let t=JSON.stringify(a[`script:ld+json`]);e.push({tag:`script`,attrs:{type:`application/ld+json`},children:g(t)})}catch{}else{let r=a.name??a.property;if(r){if(t[r])continue;t[r]=!0}e.push({tag:`meta`,attrs:{...a,nonce:n}})}}}return i&&e.push(i),n&&e.push({tag:`meta`,attrs:{property:`csp-nonce`,content:n}}),e.reverse(),e},[r,n]),a=L(t.stores.matches,e=>e.flatMap(e=>e.links??[]).filter(e=>e!==void 0).map(e=>({tag:`link`,attrs:{...e,nonce:n}}
12)),c),o=L(t.stores.matches,r=>{let i=t.ssr?.manifest,a=[];return i?(r.forEach(t=>{i.routes[t.routeId]?.css?.forEach(t=>{let r=af(t);a.push({tag:`link`,attrs:{rel:`stylesheet`,...r,crossOrigin:$d(e,`stylesheet`)??r.crossOrigin,suppressHydrationWarning:!0,nonce:n}})})}),i.inlineStyle&&a.push({tag:`style`,attrs:{...i.inlineStyle.attrs,nonce:n},children:i.inlineStyle.children,inlineCss:!0}),a):a},c),s=L(t.stores.matches,r=>{let i=[],a=t.ssr?.manifest;return a&&r.forEach(t=>{a.routes[t.routeId]?.preloads?.forEach(t=>{i.push({tag:`link`,attrs:{...tf(a,t,e),nonce:n}})})}),i},c),l=L(t.stores.matches,e=>e.flatMap(e=>e.styles??[]).filter(e=>e!==void 0).map(({children:e,...t})=>({tag:`style`,attrs:{...t,nonce:n},children:e})),c),u=L(t.stores.matches,e=>e.flatMap(e=>e.headScripts??[]).filter(e=>e!==void 0).map(({children:e,...t})=>({tag:`script`,attrs:{...t,nonce:n},children:e})),c),d=[];return rf(d,i),d.push(...s),rf(d,a),d.push(...o),rf(d,l),rf(d,u),d};function M_(e){let t=j_(e.assetCrossOrigin),n=A().options.ssr?.nonce;return(0,Y.jsx)(Y.Fragment,{children:t.map(e=>(0,J.createElement)(k_,{...e,key:`tsr-meta-${JSON.stringify(e)}`,nonce:n}))})}var N_=()=>{let e=A(),t=e.options.ssr?.nonce,n=n=>{let r=[],i=e.ssr?.manifest;if(!i)return[];for(let e of n){let n=i.routes[e.routeId]?.scripts;if(n)for(let e of n)r.push({tag:`script`,attrs:{...e.attrs,nonce:t},children:e.children,...typeof e.attrs?.src==`string`?{preventScriptHoist:!0}:{}})}return r},r=e=>e.map(e=>e.scripts).flat(1).filter(Boolean).map(({children:e,...n})=>({tag:`script`,attrs:{...n,suppressHydrationWarning:!0,nonce:t},children:e})),i=L(e.stores.matches,n,c);return P_(e,L(e.stores.matches,r,c),i)};function P_(e,t,n){let r=[...t,...n];return(0,Y.jsx)(Y.Fragment,{children:r.map((e,t)=>(0,J.createElement)(k_,{...e,key:`tsr-scripts-${e.tag}-${t}`}))})}function F_(e){return e!==`__proto__`&&e!==`constructor`&&e!==`prototype`}function I_(e,t){let n=Object.create(null);if(e)for(let t of Object.keys(e))F_(t)&&(n[t]=e[t]);if(t&&typeof t==`object`)for(let e of Object.keys(t))F_(e)&&(n[e]=t[e]);return n}function L_(e){if(!e)return Object.create(null);let t=Object.create(null);for(let n of Object.keys(e))F_(n)&&(t[n]=e[n]);return t}var R_=()=>{throw Error(`createServerOnlyFn() functions can only be called on the server!`)},z_=(e,t)=>{let n=t||e||{};return n.method===void 0&&(n.method=`GET`),Object.assign(e=>z_(void 0,{...n,...e}),{options:n,middleware:e=>{let t=[...n.middleware||[]];e.map(e=>{Du in e?e.options.middleware&&t.push(...e.options.middleware):t.push(e)});let r=z_(void 0,{...n,middleware:t});return r[Du]=!0,r},inputValidator:e=>z_(void 0,{...n,inputValidator:e}),handler:(...e)=>{let[t,r]=e,i={...n,extractedFn:t,serverFn:r},a=[...i.middleware||[],U_(i)];return t.method=n.method,Object.assign(async e=>{let n=await B_(a,`client`,{...t,...i,data:e?.data,headers:e?.headers,signal:e?.signal,fetch:e?.fetch,context:L_()}),r=he(n.error);if(r)throw r;if(n.error)throw n.error;return n.result},{...t,method:n.method,__executeServer:async e=>{let n=R_(),r=n.contextAfterGlobalMiddlewares;return await B_(a,`server`,{...t,...e,serverFnMeta:t.serverFnMeta,context:I_(e.context,r),request:n.request}).then(e=>({result:e.result,error:e.error,context:e.sendContext}))}})}})};async function B_(e,t,n){let r=V_([...Nu()?.functionMiddleware||[],...e]);if(t===`server`){let e=R_({throwIfNotFound:!1});e?.executedRequestMiddlewares&&(r=r.filter(t=>!e.executedRequestMiddlewares.has(t)))}let i=async e=>{let n=r.shift();if(!n)return e;try{`inputValidator`in n.options&&n.options.inputValidator&&t===`server`&&(e.data=await H_(n.options.inputValidator,e.data));let r;if(t===`client`?`client`in n.options&&(r=n.options.client):`server`in n.options&&(r=n.options.server),r){let t=async(t={})=>{let n=await i({...e,...t,context:I_(e.context,t.context),sendContext:I_(e.sendContext,t.sendContext),headers:Pg(e.headers,t.headers),_callSiteFetch:e._callSiteFetch,fetch:e._callSiteFetch??t.fetch??e.fetch,result:t.result===void 0?t instanceof Response?t:e.result:t.result,error:t.error??e.error});if(n.error)throw n.error;return n},n=await r({...e,next:t});if(ve(n))return{...e,error:n};if(n instanceof Response)return{...e,result:n};if(!n)throw Error(`User middleware returned undefined. You must call next() or return a result in your middlewares.`);return n}return i(e)}catch(t){return{...e,error:t}}};return i({...n,headers:n.headers||{},sendContext:n.sendContext||{},context:n.context||L_(),_callSiteFetch:n.fetch})}function V_(e,t=100){let n=new Set,r=[],i=(e,a)=>{if(a>t)throw Error(`Middleware nesting depth exceeded maximum of ${t}. Check for circular references.`);
12e.forEach(e=>{e.options.middleware&&i(e.options.middleware,a+1),n.has(e)||(n.add(e),r.push(e))})};return i(e,0),r}async function H_(e,t){if(e==null)return{};if(`~standard`in e){let n=await e[`~standard`].validate(t);if(n.issues)throw Error(JSON.stringify(n.issues,void 0,2));return n.value}if(`parse`in e)return e.parse(t);if(typeof e==`function`)return e(t);throw Error(`Invalid validator type!`)}function U_(e){return{"~types":void 0,options:{inputValidator:e.inputValidator,client:async({next:t,sendContext:n,fetch:r,...i})=>{let a={...i,context:n,fetch:r};return t(await e.extractedFn?.(a))},server:async({next:t,...n})=>{let r=await e.serverFn?.(n);return t({...n,result:r})}}}}var W_=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(e){return this.listeners.add(e),this.onSubscribe(),()=>{this.listeners.delete(e),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},G_=new class extends W_{#e;#t;#n;constructor(){super(),this.#n=e=>{if(typeof window<`u`&&window.addEventListener){let t=()=>e();return window.addEventListener(`visibilitychange`,t,!1),()=>{window.removeEventListener(`visibilitychange`,t)}}}}onSubscribe(){this.#t||this.setEventListener(this.#n)}onUnsubscribe(){this.hasListeners()||(this.#t?.(),this.#t=void 0)}setEventListener(e){this.#n=e,this.#t?.(),this.#t=e(e=>{typeof e==`boolean`?this.setFocused(e):this.onFocus()})}setFocused(e){this.#e!==e&&(this.#e=e,this.onFocus())}onFocus(){let e=this.isFocused();this.listeners.forEach(t=>{t(e)})}isFocused(){return typeof this.#e==`boolean`?this.#e:globalThis.document?.visibilityState!==`hidden`}},K_={setTimeout:(e,t)=>setTimeout(e,t),clearTimeout:e=>clearTimeout(e),setInterval:(e,t)=>setInterval(e,t),clearInterval:e=>clearInterval(e)},q_=new class{#e=K_;setTimeoutProvider(e){this.#e=e}setTimeout(e,t){return this.#e.setTimeout(e,t)}clearTimeout(e){this.#e.clearTimeout(e)}setInterval(e,t){return this.#e.setInterval(e,t)}clearInterval(e){this.#e.clearInterval(e)}};function J_(e){setTimeout(e,0)}var Y_=typeof window>`u`||`Deno`in globalThis;function X_(){}function Z_(e,t){return typeof e==`function`?e(t):e}function Q_(e){return typeof e==`number`&&e>=0&&e!==1/0}function $_(e,t){return Math.max(e+(t||0)-Date.now(),0)}function ev(e,t){return typeof e==`function`?e(t):e}function tv(e,t){return typeof e==`function`?e(t):e}function nv(e,t){let{type:n=`all`,exact:r,fetchStatus:i,predicate:a,queryKey:o,stale:s}=e;if(o){if(r){if(t.queryHash!==iv(o,t.options))return!1}else if(!ov(t.queryKey,o))return!1}if(n!==`all`){let e=t.isActive();if(n===`active`&&!e||n===`inactive`&&e)return!1}return!(typeof s==`boolean`&&t.isStale()!==s||i&&i!==t.state.fetchStatus||a&&!a(t))}function rv(e,t){let{exact:n,status:r,predicate:i,mutationKey:a}=e;if(a){if(!t.options.mutationKey)return!1;if(n){if(av(t.options.mutationKey)!==av(a))return!1}else if(!ov(t.options.mutationKey,a))return!1}return!(r&&t.state.status!==r||i&&!i(t))}function iv(e,t){return(t?.queryKeyHashFn||av)(e)}function av(e){return JSON.stringify(e,(e,t)=>dv(t)?Object.keys(t).sort().reduce((e,n)=>(e[n]=t[n],e),{}):t)}function ov(e,t){return e===t?!0:typeof e==typeof t&&e&&t&&typeof e==`object`&&typeof t==`object`?Object.keys(t).every(n=>ov(e[n],t[n])):!1}var sv=Object.prototype.hasOwnProperty;function cv(e,t,n=0){if(e===t)return e;if(n>500)return t;let r=uv(e)&&uv(t);if(!r&&!(dv(e)&&dv(t)))return t;let i=(r?e:Object.keys(e)).length,a=r?t:Object.keys(t),o=a.length,s=r?Array(o):{},c=0;for(let l=0;l<o;l++){let o=r?l:a[l],u=e[o],d=t[o];if(u===d){s[o]=u,(r?l<i:sv.call(e,o))&&c++;continue}if(u===null||d===null||typeof u!=`object`||typeof d!=`object`){s[o]=d;continue}let f=cv(u,d,n+1);s[o]=f,f===u&&c++}return i===o&&c===i?e:s}function lv(e,t){if(!t||Object.keys(e).length!==Object.keys(t).length)return!1;for(let n in e)if(e[n]!==t[n])return!1;return!0}function uv(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function dv(e){if(!fv(e))return!1;let t=e.constructor;if(t===void 0)return!0;let n=t.prototype;return!(!fv(n)||!n.hasOwnProperty(`isPrototypeOf`)||Object.getPrototypeOf(e)!==Object.prototype)}function fv(e){return Object.prototype.toString.call(e)===`[object Object]`}function pv(e){return new Promise(t=>{q_.setTimeout(t,e)})}function mv(e,t,n){return typeof n.structuralSharing==`function`?n.structuralSharing(e,t):n.structuralSharing===!1?t:cv(e,t)}function hv(e,t,n=0){let r=[...e,t];return n&&r.length>n?r.slice(1):r}
12function gv(e,t,n=0){let r=[t,...e];return n&&r.length>n?r.slice(0,-1):r}var _v=Symbol();function vv(e,t){return!e.queryFn&&t?.initialPromise?()=>t.initialPromise:!e.queryFn||e.queryFn===_v?()=>Promise.reject(Error(`Missing queryFn: '${e.queryHash}'`)):e.queryFn}function yv(e,t){return typeof e==`function`?e(...t):!!e}function bv(e,t,n){let r=!1,i;return Object.defineProperty(e,"signal",{enumerable:!0,get:()=>(i??=t(),r?i:(r=!0,i.aborted?n():i.addEventListener(`abort`,n,{once:!0}),i))}),e}var xv=(()=>{let e=()=>Y_;return{isServer(){return e()},setIsServer(t){e=t}}})();function Sv(){let e,t,n=new Promise((n,r)=>{e=n,t=r});n.status=`pending`,n.catch(()=>{});function r(e){Object.assign(n,e),delete n.resolve,delete n.reject}return n.resolve=t=>{r({status:`fulfilled`,value:t}),e(t)},n.reject=e=>{r({status:`rejected`,reason:e}),t(e)},n}var Cv=J_;function wv(){let e=[],t=0,n=e=>{e()},r=e=>{e()},i=Cv,a=r=>{t?e.push(r):i(()=>{n(r)})},o=()=>{let t=e;e=[],t.length&&i(()=>{r(()=>{t.forEach(e=>{n(e)})})})};return{batch:e=>{let n;t++;try{n=e()}finally{t--,t||o()}return n},batchCalls:e=>(...t)=>{a(()=>{e(...t)})},schedule:a,setNotifyFunction:e=>{n=e},setBatchNotifyFunction:e=>{r=e},setScheduler:e=>{i=e}}}var Tv=wv(),Ev=new class extends W_{#e=!0;#t;#n;constructor(){super(),this.#n=e=>{if(typeof window<`u`&&window.addEventListener){let t=()=>e(!0),n=()=>e(!1);return window.addEventListener(`online`,t,!1),window.addEventListener(`offline`,n,!1),()=>{window.removeEventListener(`online`,t),window.removeEventListener(`offline`,n)}}}}onSubscribe(){this.#t||this.setEventListener(this.#n)}onUnsubscribe(){this.hasListeners()||(this.#t?.(),this.#t=void 0)}setEventListener(e){this.#n=e,this.#t?.(),this.#t=e(this.setOnline.bind(this))}setOnline(e){this.#e!==e&&(this.#e=e,this.listeners.forEach(t=>{t(e)}))}isOnline(){return this.#e}};function Dv(e){return Math.min(1e3*2**e,3e4)}function Ov(e){return(e??`online`)===`online`?Ev.isOnline():!0}var kv=class extends Error{constructor(e){super(`CancelledError`),this.revert=e?.revert,this.silent=e?.silent}};function Av(e){let t=!1,n=0,r,i=Sv(),a=()=>i.status!==`pending`,o=t=>{if(!a()){let n=new kv(t);f(n),e.onCancel?.(n)}},s=()=>{t=!0},c=()=>{t=!1},l=()=>G_.isFocused()&&(e.networkMode===`always`||Ev.isOnline())&&e.canRun(),u=()=>Ov(e.networkMode)&&e.canRun(),d=e=>{a()||(r?.(),i.resolve(e))},f=e=>{a()||(r?.(),i.reject(e))},p=()=>new Promise(t=>{r=e=>{(a()||l())&&t(e)},e.onPause?.()}).then(()=>{r=void 0,a()||e.onContinue?.()}),m=()=>{if(a())return;let r,i=n===0?e.initialPromise:void 0;try{r=i??e.fn()}catch(e){r=Promise.reject(e)}Promise.resolve(r).then(d).catch(r=>{if(a())return;let i=e.retry??(xv.isServer()?0:3),o=e.retryDelay??Dv,s=typeof o==`function`?o(n,r):o,c=i===!0||typeof i==`number`&&n<i||typeof i==`function`&&i(n,r);if(t||!c){f(r);return}n++,e.onFail?.(n,r),pv(s).then(()=>l()?void 0:p()).then(()=>{t?f(r):m()})})};return{promise:i,status:()=>i.status,cancel:o,continue:()=>(r?.(),i),cancelRetry:s,continueRetry:c,canStart:u,start:()=>(u()?m():p().then(m),i)}}var jv=class{#e;destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),Q_(this.gcTime)&&(this.#e=q_.setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(xv.isServer()?1/0:300*1e3))}clearGcTimeout(){this.#e!==void 0&&(q_.clearTimeout(this.#e),this.#e=void 0)}};function Mv(e){return{onFetch:(t,n)=>{let r=t.options,i=t.fetchOptions?.meta?.fetchMore?.direction,a=t.state.data?.pages||[],o=t.state.data?.pageParams||[],s={pages:[],pageParams:[]},c=0,l=async()=>{let n=!1,l=e=>{bv(e,()=>t.signal,()=>n=!0)},u=vv(t.options,t.fetchOptions),d=async(e,r,i)=>{if(n)return Promise.reject(t.signal.reason);if(r==null&&e.pages.length)return Promise.resolve(e);let a=await u((()=>{let e={client:t.client,queryKey:t.queryKey,pageParam:r,direction:i?`backward`:`forward`,meta:t.options.meta};return l(e),e})()),{maxPages:o}=t.options,s=i?gv:hv;return{pages:s(e.pages,a,o),pageParams:s(e.pageParams,r,o)}};if(i&&a.length){let e=i===`backward`,t=e?Pv:Nv,n={pages:a,pageParams:o};s=await d(n,t(r,n),e)}else{let t=e??a.length;do{let e=c===0?o[0]??r.initialPageParam:Nv(r,s);if(c>0&&e==null)break;s=await d(s,e),c++}while(c<t)}return s};t.options.persister?t.fetchFn=()=>t.options.persister?.(l,{client:t.client,queryKey:t.queryKey,meta:t.options.meta,signal:t.signal},n):t.fetchFn=l}}}function Nv(e,{pages:t,pageParams:n}){let r=t.length-1;return t.length>0?e.getNextPageParam(t[r],t,n[r],n):void 0}function Pv(e,{pages:t,pageParams:n}){return t.length>0?e.getPreviousPageParam?.(t[0],t,n[0],n):void 0}var Fv=class extends jv{#e;#t;#n;#r;#i;#a;#o;#s;constructor(e){super(),this.#s=!1,this.#o=e.defaultOptions,this.setOptions(e.options),this.observers=[],this.#i=e.client,this.#r=this.#i.getQueryCache(),this.queryKey=e.queryKey,this.queryHash=e.queryHash,this.#t=Rv(this.options),this.state=e.state??this.#t,this.scheduleGc()}get meta(){return this.options.meta}get queryType(){return this.#e}get promise(){return this.#a?.promise}setOptions(e){if(this.options={...this.#o,...e},e?._type&&(this.#e=e._type),this.updateGcTime(this.options.gcTime),this.state&&this.state.data===void 0){let e=Rv(this.options);e.data!==void 0&&(this.setState(Lv(e.data,e.dataUpdatedAt)),this.#t=e)}}optionalRemove(){!this.observers.length&&this.state.fetchStatus===`idle`&&this.#r.remove(this)}setData(e,t){let n=mv(this.state.data,e,this.options);return this.#l({data:n,type:`success`,dataUpdatedAt:t?.updatedAt,manual:t?.manual}),n}setState(e){this.#l({type:`setState`,state:e})}cancel(e){let t=this.#a?.promise;return this.#a?.cancel(e),t?t.then(X_).catch(X_):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}get resetState(){return this.#t}reset(){this.destroy(),this.setState(this.resetState)}isActive(){return this.observers.some(e=>tv(e.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===_v||!this.isFetched()}isFetched(){return this.state.dataUpdateCount+this.state.errorUpdate
12Count>0}isStatic(){return this.getObserversCount()>0?this.observers.some(e=>ev(e.options.staleTime,this)===`static`):!1}isStale(){return this.getObserversCount()>0?this.observers.some(e=>e.getCurrentResult().isStale):this.state.data===void 0||this.state.isInvalidated}isStaleByTime(e=0){return this.state.data===void 0?!0:e===`static`?!1:this.state.isInvalidated?!0:!$_(this.state.dataUpdatedAt,e)}onFocus(){this.observers.find(e=>e.shouldFetchOnWindowFocus())?.refetch({cancelRefetch:!1}),this.#a?.continue()}onOnline(){this.observers.find(e=>e.shouldFetchOnReconnect())?.refetch({cancelRefetch:!1}),this.#a?.continue()}addObserver(e){this.observers.includes(e)||(this.observers.push(e),this.clearGcTimeout(),this.#r.notify({type:`observerAdded`,query:this,observer:e}))}removeObserver(e){this.observers.includes(e)&&(this.observers=this.observers.filter(t=>t!==e),this.observers.length||(this.#a&&(this.#s||this.#c()?this.#a.cancel({revert:!0}):this.#a.cancelRetry()),this.scheduleGc()),this.#r.notify({type:`observerRemoved`,query:this,observer:e}))}getObserversCount(){return this.observers.length}#c(){return this.state.fetchStatus===`paused`&&this.state.status===`pending`}invalidate(){this.state.isInvalidated||this.#l({type:`invalidate`})}async fetch(e,t){if(this.state.fetchStatus!==`idle`&&this.#a?.status()!==`rejected`){if(this.state.data!==void 0&&t?.cancelRefetch)this.cancel({silent:!0});else if(this.#a)return this.#a.continueRetry(),this.#a.promise}if(e&&this.setOptions(e),!this.options.queryFn){let e=this.observers.find(e=>e.options.queryFn);e&&this.setOptions(e.options)}let n=new AbortController,r=e=>{Object.defineProperty(e,"signal",{enumerable:!0,get:()=>(this.#s=!0,n.signal)})},i=()=>{let e=vv(this.options,t),n=(()=>{let e={client:this.#i,queryKey:this.queryKey,meta:this.meta};return r(e),e})();return this.#s=!1,this.options.persister?this.options.persister(e,n,this):e(n)},a=(()=>{let e={fetchOptions:t,options:this.options,queryKey:this.queryKey,client:this.#i,state:this.state,fetchFn:i};return r(e),e})();(this.#e===`infinite`?Mv(this.options.pages):this.options.behavior)?.onFetch(a,this),this.#n=this.state,(this.state.fetchStatus===`idle`||this.state.fetchMeta!==a.fetchOptions?.meta)&&this.#l({type:`fetch`,meta:a.fetchOptions?.meta}),this.#a=Av({initialPromise:t?.initialPromise,fn:a.fetchFn,onCancel:e=>{e instanceof kv&&e.revert&&this.setState({...this.#n,fetchStatus:`idle`}),n.abort()},onFail:(e,t)=>{this.#l({type:`failed`,failureCount:e,error:t})},onPause:()=>{this.#l({type:`pause`})},onContinue:()=>{this.#l({type:`continue`})},retry:a.options.retry,retryDelay:a.options.retryDelay,networkMode:a.options.networkMode,canRun:()=>!0});try{let e=await this.#a.start();if(e===void 0)throw Error(`${this.queryHash} data is undefined`);return this.setData(e),this.#r.config.onSuccess?.(e,this),this.#r.config.onSettled?.(e,this.state.error,this),e}catch(e){if(e instanceof kv){if(e.silent)return this.#a.promise;if(e.revert){if(this.state.data===void 0)throw e;return this.state.data}}throw this.#l({type:`error`,error:e}),this.#r.config.onError?.(e,this),this.#r.config.onSettled?.(this.state.data,e,this),e}finally{this.scheduleGc()}}#l(e){let t=t=>{switch(e.type){case`failed`:return{...t,fetchFailureCount:e.failureCount,fetchFailureReason:e.error};case`pause`:return{...t,fetchStatus:`paused`};case`continue`:return{...t,fetchStatus:`fetching`};case`fetch`:return{...t,...Iv(t.data,this.options),fetchMeta:e.meta??null};case`success`:let n={...t,...Lv(e.data,e.dataUpdatedAt),dataUpdateCount:t.dataUpdateCount+1,...!e.manual&&{fetchStatus:`idle`,fetchFailureCount:0,fetchFailureReason:null}};return this.#n=e.manual?n:void 0,n;case`error`:let r=e.error;return{...t,error:r,errorUpdateCount:t.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:t.fetchFailureCount+1,fetchFailureReason:r,fetchStatus:`idle`,status:`error`,isInvalidated:!0};case`invalidate`:return{...t,isInvalidated:!0};case`setState`:return{...t,...e.state}}};this.state=t(this.state),Tv.batch(()=>{this.observers.forEach(e=>{e.onQueryUpdate()}),this.#r.notify({query:this,type:`updated`,action:e})})}};function Iv(e,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:Ov(t.networkMode)?`fetching`:`paused`,...e===void 0&&{error:null,status:`pending`}}}function Lv(e,t){return{data:e,dataUpdatedAt:t??Date.now(),error:null,isInvalidated:!1,status:`success`}}function Rv(e){let t=typeof e.initialData==`function`?e.initialData():e.initialData,n=t!==void 0,r=n?typeof e.initialDataUpdatedAt==`function`?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:t,dataUpdateCount:0,dataUpdatedAt:n?r??Date.now():0,error:null,errorUpdate
12Count:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:n?`success`:`pending`,fetchStatus:`idle`}}var zv=class extends jv{#e;#t;#n;#r;constructor(e){super(),this.#e=e.client,this.mutationId=e.mutationId,this.#n=e.mutationCache,this.#t=[],this.state=e.state||Bv(),this.setOptions(e.options),this.scheduleGc()}setOptions(e){this.options=e,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(e){this.#t.includes(e)||(this.#t.push(e),this.clearGcTimeout(),this.#n.notify({type:`observerAdded`,mutation:this,observer:e}))}removeObserver(e){this.#t=this.#t.filter(t=>t!==e),this.scheduleGc(),this.#n.notify({type:`observerRemoved`,mutation:this,observer:e})}optionalRemove(){this.#t.length||(this.state.status===`pending`?this.scheduleGc():this.#n.remove(this))}continue(){return this.#r?.continue()??this.execute(this.state.variables)}async execute(e){let t=()=>{this.#i({type:`continue`})},n={client:this.#e,meta:this.options.meta,mutationKey:this.options.mutationKey};this.#r=Av({fn:()=>this.options.mutationFn?this.options.mutationFn(e,n):Promise.reject(Error(`No mutationFn found`)),onFail:(e,t)=>{this.#i({type:`failed`,failureCount:e,error:t})},onPause:()=>{this.#i({type:`pause`})},onContinue:t,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>this.#n.canRun(this)});let r=this.state.status===`pending`,i=!this.#r.canStart();try{if(r)t();else{this.#i({type:`pending`,variables:e,isPaused:i}),this.#n.config.onMutate&&await this.#n.config.onMutate(e,this,n);let t=await this.options.onMutate?.(e,n);t!==this.state.context&&this.#i({type:`pending`,context:t,variables:e,isPaused:i})}let a=await this.#r.start();return await this.#n.config.onSuccess?.(a,e,this.state.context,this,n),await this.options.onSuccess?.(a,e,this.state.context,n),await this.#n.config.onSettled?.(a,null,this.state.variables,this.state.context,this,n),await this.options.onSettled?.(a,null,e,this.state.context,n),this.#i({type:`success`,data:a}),a}catch(t){try{await this.#n.config.onError?.(t,e,this.state.context,this,n)}catch(e){Promise.reject(e)}try{await this.options.onError?.(t,e,this.state.context,n)}catch(e){Promise.reject(e)}try{await this.#n.config.onSettled?.(void 0,t,this.state.variables,this.state.context,this,n)}catch(e){Promise.reject(e)}try{await this.options.onSettled?.(void 0,t,e,this.state.context,n)}catch(e){Promise.reject(e)}throw this.#i({type:`error`,error:t}),t}finally{this.#n.runNext(this)}}#i(e){let t=t=>{switch(e.type){case`failed`:return{...t,failureCount:e.failureCount,failureReason:e.error};case`pause`:return{...t,isPaused:!0};case`continue`:return{...t,isPaused:!1};case`pending`:return{...t,context:e.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:e.isPaused,status:`pending`,variables:e.variables,submittedAt:Date.now()};case`success`:return{...t,data:e.data,failureCount:0,failureReason:null,error:null,status:`success`,isPaused:!1};case`error`:return{...t,data:void 0,error:e.error,failureCount:t.failureCount+1,failureReason:e.error,isPaused:!1,status:`error`}}};this.state=t(this.state),Tv.batch(()=>{this.#t.forEach(t=>{t.onMutationUpdate(e)}),this.#n.notify({mutation:this,type:`updated`,action:e})})}};function Bv(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:`idle`,variables:void 0,submittedAt:0}}var Vv=class extends W_{constructor(e={}){super(),this.config=e,this.#e=new Set,this.#t=new Map,this.#n=0}#e;#t;#n;build(e,t,n){let r=new zv({client:e,mutationCache:this,mutationId:++this.#n,options:e.defaultMutationOptions(t),state:n});return this.add(r),r}add(e){this.#e.add(e);let t=Hv(e);if(typeof t==`string`){let n=this.#t.get(t);n?n.push(e):this.#t.set(t,[e])}this.notify({type:`added`,mutation:e})}remove(e){if(this.#e.delete(e)){let t=Hv(e);if(typeof t==`string`){let n=this.#t.get(t);if(n)if(n.length>1){let t=n.indexOf(e);t!==-1&&n.splice(t,1)}else n[0]===e&&this.#t.delete(t)}}this.notify({type:`removed`,mutation:e})}canRun(e){let t=Hv(e);if(typeof t==`string`){let n=this.#t.get(t)?.find(e=>
vendor: 4,312 bytes, line 12
12e.state.status===`pending`);return!n||n===e}else return!0}runNext(e){let t=Hv(e);return typeof t==`string`?(this.#t.get(t)?.find(t=>t!==e&&t.state.isPaused))?.continue()??Promise.resolve():Promise.resolve()}clear(){Tv.batch(()=>{this.#e.forEach(e=>{this.notify({type:`removed`,mutation:e})}),this.#e.clear(),this.#t.clear()})}getAll(){return Array.from(this.#e)}find(e){let t={exact:!0,...e};return this.getAll().find(e=>rv(t,e))}findAll(e={}){return this.getAll().filter(t=>rv(e,t))}notify(e){Tv.batch(()=>{this.listeners.forEach(t=>{t(e)})})}resumePausedMutations(){let e=this.getAll().filter(e=>e.state.isPaused);return Tv.batch(()=>Promise.all(e.map(e=>e.continue().catch(X_))))}};function Hv(e){return e.options.scope?.id}var Uv=class extends W_{constructor(e={}){super(),this.config=e,this.#e=new Map}#e;build(e,t,n){let r=t.queryKey,i=t.queryHash??iv(r,t),a=this.get(i);return a||(a=new Fv({client:e,queryKey:r,queryHash:i,options:e.defaultQueryOptions(t),state:n,defaultOptions:e.getQueryDefaults(r)}),this.add(a)),a}add(e){this.#e.has(e.queryHash)||(this.#e.set(e.queryHash,e),this.notify({type:`added`,query:e}))}remove(e){let t=this.#e.get(e.queryHash);t&&(e.destroy(),t===e&&this.#e.delete(e.queryHash),this.notify({type:`removed`,query:e}))}clear(){Tv.batch(()=>{this.getAll().forEach(e=>{this.remove(e)})})}get(e){return this.#e.get(e)}getAll(){return[...this.#e.values()]}find(e){let t={exact:!0,...e};return this.getAll().find(e=>nv(t,e))}findAll(e={}){let t=this.getAll();return Object.keys(e).length>0?t.filter(t=>nv(e,t)):t}notify(e){Tv.batch(()=>{this.listeners.forEach(t=>{t(e)})})}onFocus(){Tv.batch(()=>{this.getAll().forEach(e=>{e.onFocus()})})}onOnline(){Tv.batch(()=>{this.getAll().forEach(e=>{e.onOnline()})})}},Wv=class{#e;#t;#n;#r;#i;#a;#o;#s;constructor(e={}){this.#e=e.queryCache||new Uv,this.#t=e.mutationCache||new Vv,this.#n=e.defaultOptions||{},this.#r=new Map,this.#i=new Map,this.#a=0}mount(){this.#a++,this.#a===1&&(this.#o=G_.subscribe(async e=>{e&&(await this.resumePausedMutations(),this.#e.onFocus())}),this.#s=Ev.subscribe(async e=>{e&&(await this.resumePausedMutations(),this.#e.onOnline())}))}unmount(){this.#a--,this.#a===0&&(this.#o?.(),this.#o=void 0,this.#s?.(),this.#s=void 0)}isFetching(e){return this.#e.findAll({...e,fetchStatus:`fetching`}).length}isMutating(e){return this.#t.findAll({...e,status:`pending`}).length}getQueryData(e){let t=this.defaultQueryOptions({queryKey:e});return this.#e.get(t.queryHash)?.state.data}ensureQueryData(e){let t=this.defaultQueryOptions(e),n=this.#e.build(this,t),r=n.state.data;return r===void 0?this.fetchQuery(e):(e.revalidateIfStale&&n.isStaleByTime(ev(t.staleTime,n))&&this.prefetchQuery(t),Promise.resolve(r))}getQueriesData(e){return this.#e.findAll(e).map(({queryKey:e,state:t})=>[e,t.data])}setQueryData(e,t,n){let r=this.defaultQueryOptions({queryKey:e}),i=this.#e.get(r.queryHash)?.state.data,a=Z_(t,i);if(a!==void 0)return this.#e.build(this,r).setData(a,{...n,manual:!0})}setQueriesData(e,t,n){return Tv.batch(()=>this.#e.findAll(e).map(({queryKey:e})=>[e,this.setQueryData(e,t,n)]))}getQueryState(e){let t=this.defaultQueryOptions({queryKey:e});return this.#e.get(t.queryHash)?.state}removeQueries(e){let t=this.#e;Tv.batch(()=>{t.findAll(e).forEach(e=>{t.remove(e)})})}resetQueries(e,t){let n=this.#e;return Tv.batch(()=>(n.findAll(e).forEach(e=>{e.reset()}),this.refetchQueries({type:`active`,...e},t)))}cancelQueries(e,t={}){let n={revert:!0,...t},r=Tv.batch(()=>this.#e.findAll(e).map(e=>e.cancel(n)));return Promise.all(r).then(X_).catch(X_)}invalidateQueries(e,t={}){return Tv.batch(()=>(this.#e.findAll(e).forEach(e=>{e.invalidate()}),e?.refetchType===`none`?Promise.resolve():this.refetchQueries({...e,type:e?.refetchType??e?.type??`active`},t)))}refetchQueries(e,t={}){let n={...t,cancelRefetch:t.cancelRefetch??!0},r=Tv.batch(()=>this.#e.findAll(e).filter(e=>!e.isDisabled()&&!e.isStatic()).map(e=>{let t=e.fetch(void 0,n);return n.throwOnError||(t=t.catch(X_)),e.state.fetchStatus===`paused`?Promise.resolve():t}));return Promise.all(r).then(X_)}fetchQuery(e){let t=this.defaultQueryOptions(e);t.retry===void 0&&(t.retry=!1);let n=this.#e.build(this,t);return n.isStaleByTime(ev(t.staleTime,n))?n.fetch(t):Promise.resolve(n.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(X_).catch(X_)}
12fetchInfiniteQuery(e){return e._type=`infinite`,this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(X_).catch(X_)}ensureInfiniteQueryData(e){return e._type=`infinite`,this.ensureQueryData(e)}resumePausedMutations(){return Ev.isOnline()?this.#t.resumePausedMutations():Promise.resolve()}getQueryCache(){return this.#e}getMutationCache(){return this.#t}getDefaultOptions(){return this.#n}setDefaultOptions(e){this.#n=e}setQueryDefaults(e,t){this.#r.set(av(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){let t=[...this.#r.values()],n={};return t.forEach(t=>{ov(e,t.queryKey)&&Object.assign(n,t.defaultOptions)}),n}setMutationDefaults(e,t){this.#i.set(av(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){let t=[...this.#i.values()],n={};return t.forEach(t=>{ov(e,t.mutationKey)&&Object.assign(n,t.defaultOptions)}),n}defaultQueryOptions(e){if(e._defaulted)return e;let t={...this.#n.queries,...this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return t.queryHash||=iv(t.queryKey,t),t.refetchOnReconnect===void 0&&(t.refetchOnReconnect=t.networkMode!==`always`),t.throwOnError===void 0&&(t.throwOnError=!!t.suspense),!t.networkMode&&t.persister&&(t.networkMode=`offlineFirst`),t.queryFn===_v&&(t.enabled=!1),t}defaultMutationOptions(e){return e?._defaulted?e:{...this.#n.mutations,...e?.mutationKey&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){this.#e.clear(),this.#t.clear()}},Gv=J.createContext(void 0),Kv=e=>{let t=J.useContext(Gv);if(e)return e;if(!t)throw Error(`No QueryClient set, use QueryClientProvider to set one`);return t},qv=({client:e,children:t})=>(J.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]),(0,Y.jsx)(Gv.Provider,{value:e,children:t})),Jv=`modulepreload`,Yv=function(e){return`/`+e},Xv={},Zv=function(e,t,n){let r=Promise.resolve();if(t&&t.length>0){let e=document.getElementsByTagName(`link`),i=document.querySelector(`meta[property=csp-nonce]`),a=i?.nonce||i?.getAttribute(`nonce`);function o(e){return Promise.all(e.map(e=>Promise.resolve(e).then(e=>({status:`fulfilled`,value:e}),e=>({status:`rejected`,reason:e}))))}r=o(t.map(t=>{if(t=Yv(t,n),t in Xv)return;Xv[t]=!0;let r=t.endsWith(`.css`),i=r?`[rel="stylesheet"]`:``;if(n)for(let n=e.length-1;n>=0;n--){let i=e[n];if(i.href===t&&(!r||i.rel===`stylesheet`))return}else if(document.querySelector(`link[href="${t}"]${i}`))return;let o=document.createElement(`link`);if(o.rel=r?`stylesheet`:Jv,r||(o.as=`script`),o.crossOrigin=``,o.href=t,a&&o.setAttribute(`nonce`,a),document.head.appendChild(o),r)return new Promise((e,n)=>{o.addEventListener(`load`,e),o.addEventListener(`error`,()=>n(Error(`Unable to preload CSS for ${t}`)))})}))}function i(e){let t=new Event(`vite:preloadError`,{cancelable:!0});if(t.payload=e,window.dispatchEvent(t),!t.defaultPrevented)throw e}return r.then(t=>{for(let e of t||[])e.status===`rejected`&&i(e.reason);return e().catch(i)})};function Qv(e){return/^G-[A-Z0-9]+$/i.test(e)}function $v(e){return JSON.stringify(e).replace(/</g,`\\u003c`)}function ey(e,t,n=[]){if(!Qv(e))return null;let r=[`(function(){`,`var id=${$v(e)};`,`var initialized=window.__siteGoogleAnalytics=window.__siteGoogleAnalytics||{};if(initialized[id])return;`,`window.dataLayer=window.dataLayer||[];window.gtag=window.gtag||function(){if(arguments[0]==="event"&&window["ga-disable-"+id]===true)return;window.dataLayer.push(arguments);};var gtag=window.gtag;`];if(n.length>0&&r.push(`var excluded=${$v(n)};var key='ga-disable-'+id;var optedOut=window[key]===true;`,`Object.defineProperty(window,key,{configurable:true,get:function(){var path=window.location.pathname;return optedOut||excluded.some(function(prefix){return path===prefix||path.indexOf(prefix+'/')===0;});},set:function(value){optedOut=value===true;}});`),t){let e=`${t.cookieName}=`;r.push(`gtag('consent','default',${$v(t.defaultState)});`,`var consentEntry=document.cookie.split(';').map(function(part){return part.trim();}).find(function(part){return part.indexOf(${$v(e)})===0;});`,`if(consentEntry&&consentEntry.slice(${e.length})==='accepted'){gtag('consent','update',${$v(t.acceptedState)});}`)}return r.push(`gtag('js',new Date());`,`gtag('config',${$v(e)});`,`initialized[id]=true;})();`),r.join(``)}function ty({measurementId:e,consent:t,enabled:n=!0,excludedPathPrefixes:r}){let i=e.trim(),a=n?ey(i,t,r):null;return(0,J.useEffect)(()=>
12{if(!a||window.__siteGoogleAnalytics?.[i])return;let e=document.createElement(`script`);e.textContent=a,document.head.appendChild(e),e.remove()},[i,a]),a?(0,Y.jsxs)(Y.Fragment,{children:[(0,Y.jsx)(`script`,{id:`ga-init`,dangerouslySetInnerHTML:{__html:a}}),(0,Y.jsx)(`script`,{id:`ga-loader`,src:`https://www.googletagmanager.com/gtag/js?id=${i}`,async:!0})]}):null}var ny=/^[A-Z0-9]+$/i;function ry(e){return ny.test(e)}function iy({clarityId:e}){return e?ry(e)?(0,Y.jsx)(`script`,{id:`clarity-init`,async:!0,dangerouslySetInnerHTML:{__html:`(function(c,l,a,r,i,t,y){c[a]=c[a]||function(){(c[a].q=c[a].q||[]).push(arguments)};t=l.createElement(r);t.async=1;t.src="https://www.clarity.ms/tag/"+i;y=l.getElementsByTagName(r)[0];y.parentNode.insertBefore(t,y);})(window,document,"clarity","script",${JSON.stringify(e)});`}}):(console.error(`[analytics] Invalid Microsoft Clarity project ID; script disabled.`),null):null}function ay(e){return/^[a-z][a-z0-9_]{0,39}$/.test(e)}function oy(){return!0}function sy(e,t={}){return!oy()||typeof window>`u`||!ay(e)||typeof window.gtag!=`function`?!1:(window.gtag(`event`,e,t),!0)}function cy(){let e=D_({select:e=>e.location.href}),t=(0,J.useRef)(0),n=(0,J.useRef)(new Set);return(0,J.useEffect)(()=>{let r=new URL(e,window.location.origin),i=`${r.pathname}${r.search}`;return t.current=Date.now(),n.current.clear(),()=>{let e=Math.round((Date.now()-t.current)/1e3);e>=1&&sy(`page_dwell_time`,{page_path:i,dwell_time_seconds:e})}},[e]),(0,J.useEffect)(()=>{let t=new URL(e,window.location.origin).pathname,r=0,i=()=>{window.clearTimeout(r),r=window.setTimeout(()=>{let e=document.documentElement.scrollHeight-window.innerHeight,r=e<=0?100:Math.round(window.scrollY/e*100);for(let e of[25,50,75,100])r>=e&&!n.current.has(e)&&(n.current.add(e),sy(`scroll_depth`,{page_path:t,scroll_depth:e}))},200)},a=()=>sy(`page_visibility_change`,{page_path:t,is_visible:document.visibilityState===`visible`,visibility_state:document.visibilityState}),o=()=>{let e=performance.getEntriesByType(`navigation`)[0];if(!e)return;let n=performance.getEntriesByType(`paint`).find(e=>e.name===`first-contentful-paint`);sy(`page_performance`,{page_path:t,load_time:Math.round(e.loadEventEnd-e.fetchStart),dom_content_loaded:Math.round(e.domContentLoadedEventEnd-e.fetchStart),first_contentful_paint:Math.round(n?.startTime??0)})};return window.addEventListener(`scroll`,i,{passive:!0}),document.addEventListener(`visibilitychange`,a),document.readyState===`complete`?o():window.addEventListener(`load`,o,{once:!0}),()=>{window.removeEventListener(`scroll`,i),document.removeEventListener(`visibilitychange`,a),window.removeEventListener(`load`,o),window.clearTimeout(r)}},[e]),null}var ly=new Set([`/contact`,`/feedback`,`/forgot-password`,`/games/frontwars`,`/privacy-policy`,`/profile`,`/reset-password`,`/sign-in`,`/sign-up`,`/terms-of-service`,`/verify-email`]),uy=[`/community/`,`/level/`];function dy(e){let t=e.length>1?e.replace(/\/+$/,``):e;return!ly.has(t)&&!uy.some(e=>t.startsWith(e))}function fy({adsenseId:e}){return e?(0,Y.jsx)(`script`,{id:`adsense-loader`,async:!0,src:`https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js?client=${e}`,crossOrigin:`anonymous`}):null}function py({popunderUrl:e,socialbarUrl:t}){return(0,Y.jsxs)(Y.Fragment,{children:[e?(0,Y.jsx)(`script`,{type:`text/javascript`,src:e,async:!0}):null,t?(0,Y.jsx)(`script`,{type:`text/javascript`,src:t,async:!0}):null]})}var my=e=>e.replace(/([a-z0-9])([A-Z])/g,`$1-$2`).toLowerCase(),hy=e=>e.replace(/^([A-Z])|[\s-_]+(\w)/g,(e,t,n)=>n?n.toUpperCase():t.toLowerCase()),gy=e=>{let t=hy(e);return t.charAt(0).toUpperCase()+t.slice(1)},_y=(...e)=>e.filter((e,t,n)=>!!e&&e.trim()!==``&&n.indexOf(e)===t).join(` `).trim(),vy=e=>{for(let t in e)if(t.startsWith(`aria-`)||t===`role`||t===`title`)return!0},yy={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`},by=(0,J.forwardRef)(({color:e=`currentColor`,size:t=24,strokeWidth:n=2,absoluteStrokeWidth:r,className:i=``,children:a,iconNode:o,...s},c)=>(0,J.createElement)(`svg`,{ref:c,...yy,width:t,height:t,stroke:e,strokeWidth:r?Number(n)*24/Number(t):n,className:_y(`lucide`,i),...!a&&!vy(s)&&{"aria-hidden":`true`},...s},[...o.map(([e,t])=>(0,J.createElement)(e,t)),...Array.isArray(a)?a:[a]])),xy=(e,t)=>{let n=(0,J.forwardRef)(({className:n,...r},i)=>(0,J.createElement)(by,{ref:i,iconNode:t,className:_y(`lucide-${my(gy(e))}`,`lucide-${e}`,n),...r}));return n.displayName=gy(e),n},Sy=xy(`arrow-left`,[[`path`,{d:`m12 19-7-7 7-7`,key:`1l729n`}],[`path`,{d:`M19 12H5`,key:`x3x0zl`}]]),Cy=xy(`arrow-right`,[[`path`,{d:`M5 12h14`,key:`1ays0h`}],[`path`,{d:`m12 5 7 7-7 7`,key:`xquz4c`}
12]]),wy=xy(`check`,[[`path`,{d:`M20 6 9 17l-5-5`,key:`1gmf2c`}]]),Ty=xy(`circle-check`,[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`path`,{d:`m9 12 2 2 4-4`,key:`dzmm74`}]]),Ey=xy(`circle-help`,[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`path`,{d:`M9.09 9a3 3 0 0 1 5.83 1c0 2-3 3-3 3`,key:`1u773s`}],[`path`,{d:`M12 17h.01`,key:`p32p05`}]]),Dy=xy(`info`,[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`path`,{d:`M12 16v-4`,key:`1dtifu`}],[`path`,{d:`M12 8h.01`,key:`e9boi3`}]]),Oy=xy(`loader-circle`,[[`path`,{d:`M21 12a9 9 0 1 1-6.219-8.56`,key:`13zald`}]]),ky=xy(`lock-keyhole`,[[`circle`,{cx:`12`,cy:`16`,r:`1`,key:`1au0dj`}],[`rect`,{x:`3`,y:`10`,width:`18`,height:`12`,rx:`2`,key:`6s8ecr`}],[`path`,{d:`M7 10V7a5 5 0 0 1 10 0v3`,key:`1pqi11`}]]),Ay=xy(`moon`,[[`path`,{d:`M12 3a6 6 0 0 0 9 9 9 9 0 1 1-9-9Z`,key:`a7tn18`}]]),jy=xy(`octagon-x`,[[`path`,{d:`m15 9-6 6`,key:`1uzhvr`}],[`path`,{d:`M2.586 16.726A2 2 0 0 1 2 15.312V8.688a2 2 0 0 1 .586-1.414l4.688-4.688A2 2 0 0 1 8.688 2h6.624a2 2 0 0 1 1.414.586l4.688 4.688A2 2 0 0 1 22 8.688v6.624a2 2 0 0 1-.586 1.414l-4.688 4.688a2 2 0 0 1-1.414.586H8.688a2 2 0 0 1-1.414-.586z`,key:`2d38gg`}],[`path`,{d:`m9 9 6 6`,key:`z0biqf`}]]),My=xy(`sun`,[[`circle`,{cx:`12`,cy:`12`,r:`4`,key:`4exip2`}],[`path`,{d:`M12 2v2`,key:`tus03m`}],[`path`,{d:`M12 20v2`,key:`1lh1kg`}],[`path`,{d:`m4.93 4.93 1.41 1.41`,key:`149t6j`}],[`path`,{d:`m17.66 17.66 1.41 1.41`,key:`ptbguv`}],[`path`,{d:`M2 12h2`,key:`1t8f8n`}],[`path`,{d:`M20 12h2`,key:`1q8mjw`}],[`path`,{d:`m6.34 17.66-1.41 1.41`,key:`1m8zz5`}],[`path`,{d:`m19.07 4.93-1.41 1.41`,key:`1shlcs`}]]),Ny=xy(`triangle-alert`,[[`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`}]]),Py=xy(`x`,[[`path`,{d:`M18 6 6 18`,key:`1bl5f8`}],[`path`,{d:`m6 6 12 12`,key:`d8bk6v`}]]),Fy=[{path:`/`,localized:[[`en`,`/`],[`fr`,`/fr`],[`pt-br`,`/pt-br`],[`de`,`/de`],[`es`,`/es`]]},{path:`/unlimited`,localized:[[`en`,`/unlimited`],[`fr`,`/fr/unlimited`],[`pt-br`,`/pt-br/unlimited`],[`de`,`/de/unlimited`],[`es`,`/es/unlimited`]]},{path:`/timed`,localized:[[`en`,`/timed`],[`fr`,`/fr/timed`],[`pt-br`,`/pt-br/timed`],[`de`,`/de/timed`],[`es`,`/es/timed`]]},{path:`/archive`,localized:[[`en`,`/archive`],[`fr`,`/fr/archive`],[`pt-br`,`/pt-br/archive`],[`de`,`/de/archive`],[`es`,`/es/archive`]]},{path:`/what-is-tango-game`,localized:[[`en`,`/what-is-tango-game`],[`fr`,`/fr/what-is-tango-game`],[`pt-br`,`/pt-br/what-is-tango-game`],[`de`,`/de/what-is-tango-game`],[`es`,`/es/what-is-tango-game`]]},{path:`/how-to-play`,localized:[[`en`,`/how-to-play`],[`fr`,`/fr/how-to-play`],[`pt-br`,`/pt-br/how-to-play`],[`de`,`/de/how-to-play`],[`es`,`/es/how-to-play`]]},{path:`/rules`,localized:[[`en`,`/rules`],[`fr`,`/fr/rules`],[`pt-br`,`/pt-br/rules`],[`de`,`/de/rules`],[`es`,`/es/rules`]]},{path:`/beginners-guide`,localized:[[`en`,`/beginners-guide`],[`fr`,`/fr/beginners-guide`],[`pt-br`,`/pt-br/beginners-guide`],[`de`,`/de/beginners-guide`],[`es`,`/es/beginners-guide`]]},{path:`/strategy`,localized:[[`en`,`/strategy`],[`fr`,`/fr/strategy`],[`pt-br`,`/pt-br/strategy`],[`de`,`/de/strategy`],[`es`,`/es/strategy`]]},{path:`/clue-patterns`,localized:[[`en`,`/clue-patterns`],[`fr`,`/fr/clue-patterns`],[`pt-br`,`/pt-br/clue-patterns`],[`de`,`/de/clue-patterns`],[`es`,`/es/clue-patterns`]]},{path:`/board-sizes`,localized:[[`en`,`/board-sizes`],[`fr`,`/fr/board-sizes`],[`pt-br`,`/pt-br/board-sizes`],[`de`,`/de/board-sizes`],[`es`,`/es/board-sizes`]]},{path:`/how-puzzles-are-made`,localized:[[`en`,`/how-puzzles-are-made`],[`fr`,`/fr/how-puzzles-are-made`],[`pt-br`,`/pt-br/how-puzzles-are-made`],[`de`,`/de/how-puzzles-are-made`],[`es`,`/es/how-puzzles-are-made`]]},{path:`/linkedin-tango`,localized:[[`en`,`/linkedin-tango`],[`fr`,`/fr/linkedin-tango`],[`pt-br`,`/pt-br/linkedin-tango`],[`de`,`/de/linkedin-tango`],[`es`,`/es/linkedin-tango`]]},{path:`/about`,localized:[[`en`,`/about`],[`fr`,`/fr/about`],[`pt-br`,`/pt-br/about`],[`de`,`/de/about`],[`es`,`/es/about`]]},{path:`/contact`,localized:[[`en`,`/contact`],[`fr`,`/fr/contact`],[`pt-br`,`/pt-br/contact`],[`de`,`/de/contact`],[`es`,`/es/contact`]]},{path:`/privacy-policy`,localized:[[`en`,`/privacy-policy`],[`fr`,`/fr/privacy-policy`],[`pt-br`,`/pt-br/privacy-policy`],[`de`,`/de/privacy-policy`],[`es`,`/es/privacy-policy`]]},{path:`/terms-of-service`,localized:[[`en`,`/terms-of-service`],[`fr`,`/fr/terms-of-service`],[`pt-br`,`/pt-br/terms-of-service`],[`de`,`/de/terms-of-service`],[`es`,`/es/terms-of-service`]]},{path:`/unlimited/:size`,localized:[[`en`,`/unlimited/:size`],[`fr`,`/fr/unlimited/:size`],[`pt-br`,`/pt-br/unlimited/:size`],[`de`,`/de/unlimited/:size`],[`es`,`/es/unlimited/:size`]]},{path:`/unlimited/:size/:levelId`,localized:[[`en`,`/unlimited/:size/:levelId`],[`fr`,`/fr/unlimited/:size/:levelId`],[`pt-br`,`/pt-br/unlimited/:size/:levelId`],[`de`,`/de/unlimited/:size/:levelId`],[`es`,`/es/unlimited/:size/:levelId`]]},{path:`/archive/:date`,localized:[[`en`,`/archive/:date`],[`fr`,`/fr/archive/:date`],[`pt-br`,`/pt-br/archive/:date`],[`de`,`/de/archive/:date`],[`es`,`/es/archive/:date`]]},{path:`/feedback`,localized:[[`en`,`/feedback`],[`fr`,`/fr/feedback`],[`pt-br`,`/pt-br/feedback`],[`de`,`/de/feedback`],[`es`,`/es/feedback`]]},{path:`/profile`,localized:[[`en`,`/profile`],[`fr`,`/fr/profile`],[`pt-br`,`/pt-br/profile`],[`de`,`/de/profile`],[`es`,`/es/profile`]]},{path:`/sign-in`,localized:[[`en`,`/sign-in`],[`fr`,`/fr/sign-in`],[`pt-br`,`/pt-br/sign-in`],[`de`,`/de/sign-in`],[`es`,`/es/sign-in`]]},{path:`/sign-up`,localized:[[`en`,`/sign-up`],[`fr`,`/fr/sign-up`],[`pt-br`,`/pt-br/sign-up`],[`de`,`/de/sign-up`],[`es`,`/es/sign-up`]]},{path:`/verify-email`,localized:[[`en`,`/verify-email`],[`fr`,`/fr/verify-email`],[`pt-br`,`/pt-br/ver
12ify-email`],[`de`,`/de/verify-email`],[`es`,`/es/verify-email`]]},{path:`/forgot-password`,localized:[[`en`,`/forgot-password`],[`fr`,`/fr/forgot-password`],[`pt-br`,`/pt-br/forgot-password`],[`de`,`/de/forgot-password`],[`es`,`/es/forgot-password`]]},{path:`/reset-password`,localized:[[`en`,`/reset-password`],[`fr`,`/fr/reset-password`],[`pt-br`,`/pt-br/reset-password`],[`de`,`/de/reset-password`],[`es`,`/es/reset-password`]]},{path:`/blog`,localized:[[`en`,`/blog`],[`fr`,`/fr/blog`],[`pt-br`,`/pt-br/blog`],[`de`,`/de/blog`],[`es`,`/es/blog`]]},{path:`/blog/:slug`,localized:[[`en`,`/blog/:slug`],[`fr`,`/fr/blog/:slug`],[`pt-br`,`/pt-br/blog/:slug`],[`de`,`/de/blog/:slug`],[`es`,`/es/blog/:slug`]]}];function Iy(e){let t=e.split(/[?#]/,1)[0]||`/`,n=(t.startsWith(`/`)?t:`/${t}`).replace(/\/{2,}/g,`/`);return n.length>1?n.replace(/\/+$/,``):`/`}function Ly(e){let t=e.split(`/`);return Fy.find(e=>{let n=e.path.split(`/`);return n.length===t.length&&n.every((e,n)=>e.startsWith(`:`)?!!t[n]:e===t[n])})}function Ry(e){return Ly(Iy(e))?.localized.map(([e])=>e)??[]}function zy(e,t,n){let r=e.split(/[?#]/,1)[0]||`/`,i=Iy(e);for(let a of t){if(a===n)continue;let t=`/${a}`;if(i!==t&&!i.startsWith(`${t}/`))continue;let o=Iy(i.slice(t.length)),s=Ly(o),c=s?.localized.find(([e])=>e===a)?.[1],l=o.split(`/`),u=Object.fromEntries((s?.path.split(`/`)??[]).flatMap((e,t)=>e.startsWith(`:`)?[[e.slice(1),l[t]]]:[])),d=c?.replace(/:([a-zA-Z]+)/g,(e,t)=>u[t]),f=e.slice(r.length);return d?r===d?null:{href:d+f,statusCode:308}:{href:o+f,statusCode:308}}return null}var By={en:{name:`English`,flag:`🇺🇸`},fr:{name:`Français`,flag:`🇫🇷`},"pt-br":{name:`Português (Brasil)`,flag:`🇧🇷`},de:{name:`Deutsch`,flag:`🇩🇪`},es:{name:`Español`,flag:`🇪🇸`}};function Vy(e){return By[e]??{name:e.toUpperCase()}}function Hy(e){return de.some(t=>t===e)}function Uy(e){let t=Ry(e).filter(Hy);return t?.length?t:[`en`]}function Wy(e){return zy(e,de,`en`)}var Gy=J.createContext(void 0);function Ky(e){let t=J.useContext(Gy);if(t===void 0&&!e)throw Error(su(33));return t}var qy=J.createContext(void 0);function Jy(e){let t=J.useContext(qy);if(t===void 0&&!e)throw Error(su(36));return t}var Yy=function(e){return e.startingStyle=`data-starting-style`,e.endingStyle=`data-ending-style`,e}({}),Xy={[Yy.startingStyle]:``},Zy={[Yy.endingStyle]:``},Qy={transitionStatus(e){return e===`starting`?Xy:e===`ending`?Zy:null}},$y=function(e){return e.open=`data-open`,e.closed=`data-closed`,e[e.startingStyle=Yy.startingStyle]=`startingStyle`,e[e.endingStyle=Yy.endingStyle]=`endingStyle`,e.anchorHidden=`data-anchor-hidden`,e.side=`data-side`,e.align=`data-align`,e}({}),eb=function(e){return e.popupOpen=`data-popup-open`,e.pressed=`data-pressed`,e}({}),tb={[eb.popupOpen]:``},nb={[eb.popupOpen]:``,[eb.pressed]:``},rb={[$y.open]:``},ib={[$y.closed]:``},ab={[$y.anchorHidden]:``},ob={open(e){return e?tb:null}},sb={open(e){return e?nb:null}},cb={open(e){return e?rb:ib},anchorHidden(e){return e?ab:null}},lb=J.createContext(void 0);function ub(e=!0){let t=J.useContext(lb);if(t===void 0&&!e)throw Error(su(25));return t}var db=`none`,fb=`trigger-press`,pb=`trigger-hover`,mb=`trigger-focus`,hb=`outside-press`,gb=`item-press`,_b=`close-press`,vb=`focus-out`,yb=`escape-key`,bb=`list-navigation`,xb=`cancel-open`,Sb=`sibling-open`,Cb=`imperative-action`,wb=typeof navigator<`u`,Tb=Pb(),Eb=Ib(),Db=Fb(),Ob=typeof CSS>`u`||!CSS.supports?!1:CSS.supports(`-webkit-backdrop-filter:none`),kb=Tb.platform===`MacIntel`&&Tb.maxTouchPoints>1?!0:/iP(hone|ad|od)|iOS/.test(Tb.platform);wb&&/firefox/i.test(Db);var Ab=wb&&/apple/i.test(navigator.vendor);wb&&/Edg/i.test(Db);var jb=wb&&/android/i.test(Eb)||/android/i.test(Db),Mb=wb&&Eb.toLowerCase().startsWith(`mac`)&&!navigator.maxTouchPoints,Nb=Db.includes(`jsdom/`);function Pb(){if(!wb)return{platform:``,maxTouchPoints:-1};let e=navigator.userAgentData;return e?.platform?{platform:e.platform,maxTouchPoints:navigator.maxTouchPoints}:{platform:navigator.platform??``,maxTouchPoints:navigator.maxTouchPoints??-1}}function Fb(){if(!wb)return``;let e=navigator.userAgentData;return e&&Array.isArray(e.brands)?e.brands.map(({brand:e,version:t})=>`${e}/${t}`).join(` `):navigator.userAgent}function Ib(){if(!wb)return``;let e=navigator.userAgentData;return e?.platform?e.platform:navigator.platform??``}
12function Lb(e){let{closeOnClick:t,highlighted:n,id:r,nodeId:i,store:a,typingRef:o,itemRef:s,itemMetadata:c}=e,{events:l}=a.useState(`floatingTreeRoot`),u=ub(!0),d=u!==void 0;return J.useMemo(()=>({id:r,role:`menuitem`,tabIndex:n?0:-1,onKeyDown(e){e.key===` `&&o?.current&&e.preventDefault()},onMouseMove(e){i&&l.emit(`itemhover`,{nodeId:i,target:e.currentTarget})},onClick(e){t&&l.emit(`close`,{domEvent:e,reason:gb})},onMouseUp(e){if(u){let t=u.initialCursorPointRef.current;if(u.initialCursorPointRef.current=null,d&&t&&Math.abs(e.clientX-t.x)<=1&&Math.abs(e.clientY-t.y)<=1||d&&!Mb&&e.button===2)return}s.current&&a.context.allowMouseUpTriggerRef.current&&(!d||e.button===2)&&(!c||c.type===`regular-item`)&&s.current.click()}}),[t,n,r,l,i,a,o,s,u,d,c])}var Rb={type:`regular-item`};function zb(e){let{closeOnClick:t,disabled:n=!1,highlighted:r,id:i,store:a,typingRef:o=a.context.typingRef,nativeButton:s,itemMetadata:c,nodeId:l}=e,u=J.useRef(null),{getButtonProps:d,buttonRef:f}=Gs({disabled:n,focusableWhenDisabled:!0,native:s,composite:!0}),p=Lb({closeOnClick:t,highlighted:r,id:i,nodeId:l,store:a,typingRef:o,itemRef:u,itemMetadata:c}),m=J.useCallback(e=>Ot(p,{onMouseEnter(){c.type===`submenu-trigger`&&c.setActive()}},e,d),[p,d,c]),h=Nn(u,f);return J.useMemo(()=>({getItemProps:m,itemRef:h}),[m,h])}var Bb=J.createContext({register:()=>{},unregister:()=>{},subscribeMapChange:()=>()=>{},elementsRef:{current:[]},nextIndexRef:{current:0}});function Vb(){return J.useContext(Bb)}var Hb=function(e){return e[e.None=0]=`None`,e[e.GuessFromOrder=1]=`GuessFromOrder`,e}({});function Ub(e={}){let{label:t,metadata:n,textRef:r,indexGuessBehavior:i,index:a}=e,{register:o,unregister:s,subscribeMapChange:c,elementsRef:l,labelsRef:u,nextIndexRef:d}=Vb(),f=J.useRef(-1),[p,m]=J.useState(a??(i===Hb.GuessFromOrder?()=>{if(f.current===-1){let e=d.current;d.current+=1,f.current=e}return f.current}:-1)),h=J.useRef(null),g=J.useCallback(e=>{if(h.current=e,p!==-1&&e!==null&&(l.current[p]=e,u)){let n=t!==void 0;u.current[p]=n?t:r?.current?.textContent??e.textContent}},[p,l,u,t,r]);return G(()=>{if(a!=null)return;let e=h.current;if(e)return o(e,n),()=>{s(e)}},[a,o,s,n]),G(()=>{if(a==null)return c(e=>{let t=h.current?e.get(h.current)?.index:null;t!=null&&m(t)})},[a,c,m]),J.useMemo(()=>({ref:g,index:p}),[p,g])}var Wb=0;function Gb(e,t=`mui`){let[n,r]=J.useState(e),i=e||n;return J.useEffect(()=>{n??(Wb+=1,r(`${t}-${Wb}`))},[n,t]),i}var Kb=Aa.useId;function qb(e,t){if(Kb!==void 0){let n=Kb();return e??(t?`${t}-${n}`:n)}return Gb(e,t)}function Jb(e){return qb(e,`base-ui`)}function Yb(e,t,n,r){let i=!1,a=!1,o=r??$n;return{reason:e,event:t??new Event(`base-ui`),cancel(){i=!0},allowPropagation(){a=!0},get isCanceled(){return i},get isPropagationAllowed(){return a},trigger:n,...o}}var Xb=[];function Zb(e){J.useEffect(e,Xb)}var Qb=null;globalThis.requestAnimationFrame;var $b=new class{callbacks=[];callbacksCount=0;nextId=1;startId=1;isScheduled=!1;tick=e=>{this.isScheduled=!1;let t=this.callbacks,n=this.callbacksCount;if(this.callbacks=[],this.callbacksCount=0,this.startId=this.nextId,n>0)for(let n=0;n<t.length;n+=1)t[n]?.(e)};request(e){let t=this.nextId;return this.nextId+=1,this.callbacks.push(e),this.callbacksCount+=1,this.isScheduled||=(requestAnimationFrame(this.tick),!0),t}cancel(e){let t=e-this.startId;t<0||t>=this.callbacks.length||(this.callbacks[t]=null,--this.callbacksCount)}},ex=class e{static create(){return new e}static request(e){return $b.request(e)}static cancel(e){return $b.cancel(e)}currentId=Qb;request(e){this.cancel(),this.currentId=$b.request(()=>{this.currentId=Qb,e()})}cancel=()=>{this.currentId!==Qb&&($b.cancel(this.currentId),this.currentId=Qb)};disposeEffect=()=>this.cancel};function tx(){let e=Rr(ex.create).current;return Zb(e.disposeEffect),e}function nx(e,t=!1,n=!1){let[r,i]=J.useState(e&&t?`idle`:void 0),[a,o]=J.useState(e);return e&&!a&&(o(!0),i(`starting`)),!e&&a&&r!==`ending`&&!n&&i(`ending`),!e&&!a&&r===`ending`&&i(void 0),G(()=>{if(!e&&a&&r!==`ending`&&n){let e=ex.request(()=>{i(`ending`)});return()=>{ex.cancel(e)}}},[e,a,r,n]),G(()=>{if(!e||t)return;let n=ex.request(()=>{i(void 0)});return()=>{ex.cancel(n)}},[t,e]),G(()=>{if(!e||!t)return;e&&a&&r!==`idle`&&i(`starting`);let n=ex.request(()=>{i(`idle`)});return()=>{ex.cancel(n)}},[t,e,a,i,r]),J.useMemo(()=>({mounted:a,setMounted:o,transitionStatus:r}),[a,r])}function rx(e){return e==null?e:`current`in e?e.current:e}var ix=x(se());function ax(e,t=!1,n=!0){let r=tx();return U((i,a=null)=>{r.cancel();function o(){ix.flushSync(i)}let s=rx(e);if(s==null)return;let c=s;if(typeof c.getAnimations!=`function`||globalThis.BASE_UI_ANIMATIONS_DISABLED)i();else{function e(){let e=Yy.startingStyle;if(!c.hasAttribute(e)){r.request(i);return}let t=new MutationObserver(()=>{c.hasAttribute(e)||(t.disconnect(),i())});t.observe(c,{attributes:!0,attributeFilter:[e]}),a?.addEventListener(`abort`,()=>t.disconnect(),{once:!0})}function i(){Promise.all(c.getAnimations().map(e=>e.finished)).then(()=>{a?.aborted||o()}).catch(()=>{let e=c.getAnimations();if(n){if(a?.aborted)return;o()}else e.length>0&&e.some(e=>e.pending||e.playState!==`finished`)&&i()})}if(t){e();return}r.request(i)}})}function ox(e){let{enabled:t=!0,open:n,ref:r,onComplete:i}=e,a=U(i),o=ax(r,n,!1);J.useEffect(()=>{if(!t)return;let e=new AbortController;return o(a,e.signal),()=>{e.abort()}},[t,n,a,o])}var sx=J.forwardRef(function(e,t){let{render:n,className:r,id:i,label:a,nativeButton:o=!1,disabled:s=!1,closeOnClick:c=!0,...l}=e,u=Ub({label:a}),d=Ky(!0),f=Jb(i),{store:p}=Jy(),m=p.useState(`isActive`,u.index),h=p.useState(`itemProps`),{getItemProps:g,itemRef:_}=zb({closeOnClick:c,disabled:s,highlighted:m,id:f,store:p,nativeButton:o,nodeId:d?.nodeId,itemMetadata:Rb});return _t(`div`,e,{state:{disabled:s,highlighted:m},props:[h,l,g],ref:[_,t,u.ref]})}),cx=0,lx=class e{static create(){return new e}currentId=cx;start(e,t){this.clear(),this.currentId=setTimeout(()=>{this.currentId=cx,t()},e)}isStarted(){return this.currentId!==cx}clear=()=>{this.currentId!==cx&&(clearTimeout(this.currentId),this.currentId=cx)};disposeEffect=()=>this.clear};function ux(){let e=Rr(lx.create).current;
12return Zb(e.disposeEffect),e}var dx=`data-base-ui-focusable`,fx=`input:not([type='hidden']):not([disabled]),[contenteditable]:not([contenteditable='false']),textarea:not([disabled])`,px=`ArrowLeft`,mx=`ArrowRight`,hx=`ArrowUp`,gx=`ArrowDown`;function _x(e){let t=e.activeElement;for(;t?.shadowRoot?.activeElement!=null;)t=t.shadowRoot.activeElement;return t}function X(e,t){if(!e||!t)return!1;let n=t.getRootNode?.();if(e.contains(t))return!0;if(n&&zl(n)){let n=t;for(;n;){if(e===n)return!0;n=n.parentNode||n.host}}return!1}function vx(e,t){if(!Mo(e))return!1;let n=e;if(t.hasElement(n))return!n.hasAttribute(`data-trigger-disabled`);for(let[,e]of t.entries())if(X(e,n))return!e.hasAttribute(`data-trigger-disabled`);return!1}function yx(e){return`composedPath`in e?e.composedPath()[0]:e.target}function bx(e,t){if(t==null)return!1;if(`composedPath`in e)return e.composedPath().includes(t);let n=e;return n.target!=null&&t.contains(n.target)}function xx(e){return e.matches(`html,body`)}function Sx(e){return ba(e)&&e.matches(`input:not([type='hidden']):not([disabled]),[contenteditable]:not([contenteditable='false']),textarea:not([disabled])`)}function Cx(e){return e?e.getAttribute(`role`)===`combobox`&&Sx(e):!1}function wx(e){if(!e||Nb)return!0;try{return e.matches(`:focus-visible`)}catch{return!0}}function Tx(e){return e?e.hasAttribute(`data-base-ui-focusable`)?e:e.querySelector(`[data-base-ui-focusable]`)||e:null}function Ex(e,t,n=!0){return e.filter(e=>e.parentId===t&&(!n||e.context?.open)).flatMap(t=>[t,...Ex(e,t.id,n)])}function Dx(e,t){let n=[],r=e.find(e=>e.id===t)?.parentId;for(;r;){let t=e.find(e=>e.id===r);r=t?.parentId,t&&(n=n.concat(t))}return n}function Ox(e){e.preventDefault(),e.stopPropagation()}function kx(e){return`nativeEvent`in e}function Ax(e){return e.pointerType===``&&e.isTrusted?!0:jb&&e.pointerType?e.type===`click`&&e.buttons===1:e.detail===0&&!e.pointerType}function jx(e){return Nb?!1:!jb&&e.width===0&&e.height===0||jb&&e.width===1&&e.height===1&&e.pressure===0&&e.detail===0&&e.pointerType===`mouse`||e.width<1&&e.height<1&&e.pressure===0&&e.detail===0&&e.pointerType===`touch`}function Mx(e,t){let n=[`mouse`,`pen`];return t||n.push(``,void 0),n.includes(e)}function Nx(e){let t=e.type;return t===`click`||t===`mousedown`||t===`keydown`||t===`keyup`}var Px=[`top`,`right`,`bottom`,`left`],Fx=Math.min,Ix=Math.max,Lx=Math.round,Rx=Math.floor,zx=e=>({x:e,y:e}),Bx={left:`right`,right:`left`,bottom:`top`,top:`bottom`};function Vx(e,t,n){return Ix(e,Fx(t,n))}function Hx(e,t){return typeof e==`function`?e(t):e}function Ux(e){return e.split(`-`)[0]}function Wx(e){return e.split(`-`)[1]}function Gx(e){return e===`x`?`y`:`x`}function Kx(e){return e===`y`?`height`:`width`}function qx(e){let t=e[0];return t===`t`||t===`b`?`y`:`x`}function Jx(e){return Gx(qx(e))}function Yx(e,t,n){n===void 0&&(n=!1);let r=Wx(e),i=Jx(e),a=Kx(i),o=i===`x`?r===(n?`end`:`start`)?`right`:`left`:r===`start`?`bottom`:`top`;return t.reference[a]>t.floating[a]&&(o=iS(o)),[o,iS(o)]}function Xx(e){let t=iS(e);return[Zx(e),t,Zx(t)]}function Zx(e){return e.includes(`start`)?e.replace(`start`,`end`):e.replace(`end`,`start`)}var Qx=[`left`,`right`],$x=[`right`,`left`],eS=[`top`,`bottom`],tS=[`bottom`,`top`];function nS(e,t,n){switch(e){case`top`:case`bottom`:return n?t?$x:Qx:t?Qx:$x;case`left`:case`right`:return t?eS:tS;default:return[]}}function rS(e,t,n,r){let i=Wx(e),a=nS(Ux(e),n===`start`,r);return i&&(a=a.map(e=>e+`-`+i),t&&(a=a.concat(a.map(Zx)))),a}function iS(e){let t=Ux(e);return Bx[t]+e.slice(t.length)}function aS(e){return{top:0,right:0,bottom:0,left:0,...e}}function oS(e){return typeof e==`number`?{top:e,right:e,bottom:e,left:e}:aS(e)}function sS(e){let{x:t,y:n,width:r,height:i}=e;return{width:r,height:i,top:n,left:t,right:t+r,bottom:n+i,x:t,y:n}}function cS(e,t,n){return Math.floor(e/t)!==n}function lS(e,t){return t<0||t>=e.current.length}function uS(e,t){return fS(e,{disabledIndices:t})}function dS(e,t){return fS(e,{decrement:!0,startingIndex:e.current.length,disabledIndices:t})}function fS(e,{startingIndex:t=-1,decrement:n=!1,disabledIndices:r,amount:i=1}={}){let a=t;do a+=n?-i:i;while(a>=0&&a<=e.current.length-1&&_S(e,a,r));return a}
12function pS(e,{event:t,orientation:n,loopFocus:r,rtl:i,cols:a,disabledIndices:o,minIndex:s,maxIndex:c,prevIndex:l,stopEvent:u=!1}){let d=l,f;if(t.key===`ArrowUp`?f=`up`:t.key===`ArrowDown`&&(f=`down`),f){let n=[],i=[],p=!1,m=0;{let t=null,r=-1;e.current.forEach((e,a)=>{if(e==null)return;m+=1;let o=e.closest(`[role="row"]`);o&&(p=!0),(o!==t||r===-1)&&(t=o,r+=1,n[r]=[]),n[r].push(a),i[a]=r})}let h=!1,g=0;if(p)for(let e of n){let t=e.length;t>g&&(g=t),t!==a&&(h=!0)}let _=h&&m<e.current.length,v=g||a,y=t=>{if(!h||l===-1)return;let a=i[l];if(a==null)return;let s=n[a].indexOf(l),c=t===`up`?-1:1;for(let t=a+c,i=0;i<n.length;i+=1,t+=c){if(t<0||t>=n.length){if(!r||_)return;t=t<0?n.length-1:0}let i=n[t];for(let t=Math.min(s,i.length-1);t>=0;--t){let n=i[t];if(!_S(e,n,o))return n}}},b=t=>{if(!_||l===-1)return;let n=l%v,i=t===`up`?-v:v,a=c-c%v,s=Rx(c/v)+1;for(let t=l-n+i,u=0;u<s;u+=1,t+=i){if(t<0||t>c){if(!r)return;t=t<0?a:0}let i=Math.min(t+v-1,c);for(let r=Math.min(t+n,i);r>=t;--r)if(!_S(e,r,o))return r}};u&&Ox(t);let x=y(f)??b(f);if(x!==void 0)d=x;else if(l===-1)d=f===`up`?c:s;else if(d=fS(e,{startingIndex:l,amount:v,decrement:f===`up`,disabledIndices:o}),r){if(f===`up`&&(l-v<s||d<0)){let e=l%v,t=c%v,n=c-(t-e);d=t===e?c:t>e?n:n-v}f===`down`&&l+v>c&&(d=fS(e,{startingIndex:l%v-v,amount:v,disabledIndices:o}))}lS(e,d)&&(d=l)}if(n===`both`){let n=Rx(l/a);t.key===(i?`ArrowLeft`:`ArrowRight`)&&(u&&Ox(t),l%a===a-1?r&&(d=fS(e,{startingIndex:l-l%a-1,disabledIndices:o})):(d=fS(e,{startingIndex:l,disabledIndices:o}),r&&cS(d,a,n)&&(d=fS(e,{startingIndex:l-l%a-1,disabledIndices:o}))),cS(d,a,n)&&(d=l)),t.key===(i?`ArrowRight`:`ArrowLeft`)&&(u&&Ox(t),l%a===0?r&&(d=fS(e,{startingIndex:l+(a-l%a),decrement:!0,disabledIndices:o})):(d=fS(e,{startingIndex:l,decrement:!0,disabledIndices:o}),r&&cS(d,a,n)&&(d=fS(e,{startingIndex:l+(a-l%a),decrement:!0,disabledIndices:o}))),cS(d,a,n)&&(d=l));let s=Rx(c/a)===n;lS(e,d)&&(d=r&&s?t.key===(i?`ArrowRight`:`ArrowLeft`)?c:fS(e,{startingIndex:l-l%a-1,disabledIndices:o}):l)}return d}function mS(e,t,n){let r=[],i=0;return e.forEach(({width:e,height:a},o)=>{let s=!1;for(n&&(i=0);!s;){let n=[];for(let r=0;r<e;r+=1)for(let e=0;e<a;e+=1)n.push(i+r+e*t);i%t+e<=t&&n.every(e=>r[e]==null)?(n.forEach(e=>{r[e]=o}),s=!0):i+=1}}),[...r]}function hS(e,t,n,r,i){if(e===-1)return-1;let a=n.indexOf(e),o=t[e];switch(i){case`tl`:return a;case`tr`:return o?a+o.width-1:a;case`bl`:return o?a+(o.height-1)*r:a;case`br`:return n.lastIndexOf(e);default:return-1}}function gS(e,t){return t.flatMap((t,n)=>e.includes(t)?[n]:[])}function _S(e,t,n){if(typeof n==`function`?n(t):n?.includes(t)??!1)return!0;let r=e.current[t];return r?vS(r)?!n&&(r.hasAttribute(`disabled`)||r.getAttribute(`aria-disabled`)===`true`):!0:!1}function vS(e){return tc(e).display!==`none`}var yS=[`input:not([inert]):not([inert] *)`,`select:not([inert]):not([inert] *)`,`textarea:not([inert]):not([inert] *)`,`a[href]:not([inert]):not([inert] *)`,`button:not([inert]):not([inert] *)`,`[tabindex]:not(slot):not([inert]):not([inert] *)`,`audio[controls]:not([inert]):not([inert] *)`,`video[controls]:not([inert]):not([inert] *)`,`[contenteditable]:not([contenteditable="false"]):not([inert]):not([inert] *)`,`details>summary:first-of-type:not([inert]):not([inert] *)`,`details:not([inert]):not([inert] *)`].join(`,`),bS=typeof Element>`u`,xS=bS?function(){}:Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector,SS=!bS&&Element.prototype.getRootNode?function(e){return e?.getRootNode?.call(e)}:function(e){return e?.ownerDocument},CS=function(e,t){t===void 0&&(t=!0);var n=e?.getAttribute?.call(e,`inert`);return n===``||n===`true`||t&&e&&(typeof e.closest==`function`?e.closest(`[inert]`):CS(e.parentNode))},wS=function(e){var t=e?.getAttribute?.call(e,`contenteditable`);return t===``||t===`true`},TS=function(e,t,n){if(CS(e))return[];var r=Array.prototype.slice.apply(e.querySelectorAll(yS));return t&&xS.call(e,yS)&&r.unshift(e),r=r.filter(n),r},ES=function(e,t,n){for(var r=[],i=Array.from(e);i.length;){var a=i.shift();if(!CS(a,!1))if(a.tagName===`SLOT`){var o=a.assignedElements(),s=ES(o.length?o:a.children,!0,n);
12n.flatten?r.push.apply(r,s):r.push({scopeParent:a,candidates:s})}else{xS.call(a,yS)&&n.filter(a)&&(t||!e.includes(a))&&r.push(a);var c=a.shadowRoot||typeof n.getShadowRoot==`function`&&n.getShadowRoot(a),l=!CS(c,!1)&&(!n.shadowRootFilter||n.shadowRootFilter(a));if(c&&l){var u=ES(c===!0?a.children:c.children,!0,n);n.flatten?r.push.apply(r,u):r.push({scopeParent:a,candidates:u})}else i.unshift.apply(i,a.children)}}return r},DS=function(e){return!isNaN(parseInt(e.getAttribute(`tabindex`),10))},OS=function(e){if(!e)throw Error(`No node provided`);return e.tabIndex<0&&(/^(AUDIO|VIDEO|DETAILS)$/.test(e.tagName)||wS(e))&&!DS(e)?0:e.tabIndex},kS=function(e,t){var n=OS(e);return n<0&&t&&!DS(e)?0:n},AS=function(e,t){return e.tabIndex===t.tabIndex?e.documentOrder-t.documentOrder:e.tabIndex-t.tabIndex},jS=function(e){return e.tagName===`INPUT`},MS=function(e){return jS(e)&&e.type===`hidden`},NS=function(e){return e.tagName===`DETAILS`&&Array.prototype.slice.apply(e.children).some(function(e){return e.tagName===`SUMMARY`})},PS=function(e,t){for(var n=0;n<e.length;n++)if(e[n].checked&&e[n].form===t)return e[n]},FS=function(e){if(!e.name)return!0;var t=e.form||SS(e),n=function(e){return t.querySelectorAll(`input[type="radio"][name="`+e+`"]`)},r;if(typeof window<`u`&&window.CSS!==void 0&&typeof window.CSS.escape==`function`)r=n(window.CSS.escape(e.name));else try{r=n(e.name)}catch(e){return console.error(`Looks like you have a radio button with a name attribute containing invalid CSS selector characters and need the CSS.escape polyfill: %s`,e.message),!1}var i=PS(r,e.form);return!i||i===e},IS=function(e){return jS(e)&&e.type===`radio`},LS=function(e){return IS(e)&&!FS(e)},RS=function(e){var t=e&&SS(e),n=t?.host,r=!1;if(t&&t!==e){var i,a,o;for(r=!!((i=n)!=null&&(a=i.ownerDocument)!=null&&a.contains(n)||e!=null&&(o=e.ownerDocument)!=null&&o.contains(e));!r&&n;){var s,c;t=SS(n),n=t?.host,r=!!((s=n)!=null&&(c=s.ownerDocument)!=null&&c.contains(n))}}return r},zS=function(e){var t=e.getBoundingClientRect(),n=t.width,r=t.height;return n===0&&r===0},BS=function(e,t){var n=t.displayCheck,r=t.getShadowRoot;if(n===`full-native`&&`checkVisibility`in e)return!e.checkVisibility({checkOpacity:!1,opacityProperty:!1,contentVisibilityAuto:!0,visibilityProperty:!0,checkVisibilityCSS:!0});if(getComputedStyle(e).visibility===`hidden`)return!0;var i=xS.call(e,`details>summary:first-of-type`)?e.parentElement:e;if(xS.call(i,`details:not([open]) *`))return!0;if(!n||n===`full`||n===`full-native`||n===`legacy-full`){if(typeof r==`function`){for(var a=e;e;){var o=e.parentElement,s=SS(e);if(o&&!o.shadowRoot&&r(o)===!0)return zS(e);e=e.assignedSlot?e.assignedSlot:!o&&s!==e.ownerDocument?s.host:o}e=a}if(RS(e))return!e.getClientRects().length;if(n!==`legacy-full`)return!0}else if(n===`non-zero-area`)return zS(e);return!1},VS=function(e){if(/^(INPUT|BUTTON|SELECT|TEXTAREA)$/.test(e.tagName))for(var t=e.parentElement;t;){if(t.tagName===`FIELDSET`&&t.disabled){for(var n=0;n<t.children.length;n++){var r=t.children.item(n);if(r.tagName===`LEGEND`)return xS.call(t,`fieldset[disabled] *`)?!0:!r.contains(e)}return!0}t=t.parentElement}return!1},HS=function(e,t){return!(t.disabled||MS(t)||BS(t,e)||NS(t)||VS(t))},US=function(e,t){return!(LS(t)||OS(t)<0||!HS(e,t))},WS=function(e){var t=parseInt(e.getAttribute(`tabindex`),10);return!!(isNaN(t)||t>=0)},GS=function(e){var t=[],n=[];return e.forEach(function(e,r){var i=!!e.scopeParent,a=i?e.scopeParent:e,o=kS(a,i),s=i?GS(e.candidates):a;o===0?i?t.push.apply(t,s):t.push(a):n.push({documentOrder:r,tabIndex:o,item:e,isScope:i,content:s})}),n.sort(AS).reduce(function(e,t){return t.isScope?e.push.apply(e,t.content):e.push(t.content),e},[]).concat(t)},KS=function(e,t){return t||={},GS(t.getShadowRoot?ES([e],t.includeContainer,{filter:US.bind(null,t),flatten:!1,getShadowRoot:t.getShadowRoot,shadowRootFilter:WS}):TS(e,t.includeContainer,US.bind(null,t)))},qS=function(e,t){return t||={},t.getShadowRoot?ES([e],t.includeContainer,{filter:HS.bind(null,t),flatten:!0,getShadowRoot:t.getShadowRoot}):TS(e,t.includeContainer,HS.bind(null,t))},JS=function(e,t){if(t||={},!e)throw Error(`No node provided`);return xS.call(e,yS)===!1?!1:US(t,e)};function YS(e){return e?.ownerDocument||document}var XS=()=>({getShadowRoot:!0,displayCheck:typeof ResizeObserver==`function`&&ResizeObserver.toString().includes(`[native code]`)?`full`:`none`});function ZS(e,t){let n=KS(e,XS()),r=n.length;if(r===0)return;let i=_x(YS(e)),a=n.indexOf(i);return n[a===-1?t===1?0:r-1:a+t]}function QS(e){return ZS(YS(e).body,1)||e}function $S(e){return ZS(YS(e).body,-1)||e}function eC(e,t){if(!e)return null;
12let n=KS(YS(e).body,XS()),r=n.length;if(r===0)return null;let i=n.indexOf(e);return i===-1?null:n[(i+t+r)%r]}function tC(e){return eC(e,1)}function nC(e){return eC(e,-1)}function rC(e,t){let n=t||e.currentTarget,r=e.relatedTarget;return!r||!X(n,r)}function iC(e){KS(e,XS()).forEach(e=>{e.dataset.tabindex=e.getAttribute(`tabindex`)||``,e.setAttribute(`tabindex`,`-1`)})}function aC(e){e.querySelectorAll(`[data-tabindex]`).forEach(e=>{let t=e.dataset.tabindex;delete e.dataset.tabindex,t?e.setAttribute(`tabindex`,t):e.removeAttribute(`tabindex`)})}function oC(e,t){return t!=null&&!Mx(t)?0:typeof e==`function`?e():e}function sC(e,t,n){let r=oC(e,n);return typeof r==`number`?r:r?.[t]}function cC(e){return typeof e==`function`?e():e}function lC(e,t){return t||e===`click`||e===`mousedown`}function uC(e){let t=Rr(dC,e).current;return t.next=e,G(t.effect),t}function dC(e){let t={current:e,next:e,effect:()=>{t.current=t.next}};return t}var fC={clipPath:`inset(50%)`,overflow:`hidden`,whiteSpace:`nowrap`,border:0,padding:0,width:1,height:1,margin:-1},pC={...fC,position:`fixed`,top:0,left:0};({...fC});var mC=J.forwardRef(function(e,t){let[n,r]=J.useState();G(()=>{Ab&&r(`button`)},[]);let i={tabIndex:0,role:n};return(0,Y.jsx)(`span`,{...e,ref:t,style:pC,"aria-hidden":n?void 0:!0,...i,"data-base-ui-focus-guard":``})});function hC(e){return`data-base-ui-${e}`}var gC=0;function _C(e,t={}){let{preventScroll:n=!1,cancelPrevious:r=!0,sync:i=!1}=t;r&&cancelAnimationFrame(gC);let a=()=>e?.focus({preventScroll:n});i?a():gC=requestAnimationFrame(a)}var vC={inert:new WeakMap,"aria-hidden":new WeakMap},yC=`data-base-ui-inert`,bC={inert:new WeakSet,"aria-hidden":new WeakSet},xC=new WeakMap,SC=0;function CC(e){return bC[e]}function wC(e){return e?zl(e)?e.host:wC(e.parentNode):null}var TC=(e,t)=>t.map(t=>{if(e.contains(t))return t;let n=wC(t);return e.contains(n)?n:null}).filter(e=>e!=null),EC=e=>{let t=new Set;return e.forEach(e=>{let n=e;for(;n&&!t.has(n);)t.add(n),n=n.parentNode}),t},DC=(e,t,n)=>{let r=[],i=e=>{!e||n.has(e)||Array.from(e.children).forEach(e=>{cl(e)!==`script`&&(t.has(e)?i(e):r.push(e))})};return i(e),r};function OC(e,t,n,r,{mark:i=!0,markerIgnoreElements:a=[]}){let o=r?`inert`:n?`aria-hidden`:null,s=null,c=null,l=TC(t,e),u=i?TC(t,a):[],d=new Set(u),f=i?DC(t,EC(l),new Set(l)).filter(e=>!d.has(e)):[],p=[],m=[];if(o){let e=vC[o],n=CC(o);c=n,s=e;let r=TC(t,Array.from(t.querySelectorAll(`[aria-live]`))),i=l.concat(r);DC(t,EC(i),new Set(i)).forEach(t=>{let r=t.getAttribute(o),i=r!==null&&r!==`false`,a=(e.get(t)||0)+1;e.set(t,a),p.push(t),a===1&&i&&n.add(t),i||t.setAttribute(o,o===`inert`?``:`true`)})}return i&&f.forEach(e=>{let t=(xC.get(e)||0)+1;xC.set(e,t),m.push(e),t===1&&e.setAttribute(yC,``)}),SC+=1,()=>{s&&p.forEach(e=>{let t=(s.get(e)||0)-1;s.set(e,t),t||(!c?.has(e)&&o&&e.removeAttribute(o),c?.delete(e))}),i&&m.forEach(e=>{let t=(xC.get(e)||0)-1;xC.set(e,t),t||e.removeAttribute(yC)}),--SC,SC||(vC.inert=new WeakMap,vC[`aria-hidden`]=new WeakMap,bC.inert=new WeakSet,bC[`aria-hidden`]=new WeakSet,xC=new WeakMap)}}function kC(e,t={}){let{ariaHidden:n=!1,inert:r=!1,mark:i=!0,markerIgnoreElements:a=[]}=t,o=YS(e[0]).body;return OC(e,o,n,r,{mark:i,markerIgnoreElements:a})}var AC=J.createContext(null),jC=()=>J.useContext(AC),MC=hC(`portal`);function NC(e={}){let{ref:t,container:n,componentProps:r=$n,elementProps:i}=e,a=qb(),o=jC()?.portalNode,[s,c]=J.useState(null),[l,u]=J.useState(null),d=U(e=>{e!==null&&u(e)}),f=J.useRef(null);G(()=>{if(n===null){f.current&&(f.current=null,u(null),c(null));return}if(a==null)return;let e=(n&&(Zl(n)?n:n.current))??o??document.body;if(e==null){f.current&&(f.current=null,u(null),c(null));return}f.current!==e&&(f.current=e,u(null),c(e))},[n,o,a]);let p=_t(`div`,r,{ref:[t,d],props:[{id:a,[MC]:``},i]});return{portalNode:l,portalSubtree:s&&p?ix.createPortal(p,s):null}}var PC=J.forwardRef(function(e,t){let{children:n,container:r,className:i,render:a,renderGuards:o,...s}=e,{portalNode:c,portalSubtree:l}=NC({container:r,ref:t,componentProps:e,elementProps:s}),u=J.useRef(null),d=J.useRef(null),f=J.useRef(null),p=J.useRef(null),[m,h]=J.useState(null),g=m?.modal,_=m?.open,v=typeof o==`boolean`?o:!!m&&!m.modal&&m.open&&!!c;J.useEffect(()=>{if(!c||g)return;function e(e){c&&e.relatedTarget&&rC(e)&&(e.type===`focusin`?aC:iC)(c)}return c.addEventListener(`focusin`,e,!0),c.addEventListener(`focusout`,e,!0),()=>{c.removeEventListener(`focusin`,e,!0),c.removeEventListener(`focusout`,e,!0)}},[c,g]),J.useEffect(()=>{!c||_||aC(c)},[_,c]);let y=J.useMemo(()=>({beforeOutsideRef:u,afterOutsideRef:d,beforeInsideRef:f,afterInsideRef:p,portalNode:c,setFocusManagerState:h}),[c]);return(0,Y.jsxs)(J.Fragment,{children:[l,(0,Y.jsxs)(AC.Provider,{value:y,children:[v&&c&&(0,Y.jsx)(mC,{"data-type":`outside`,ref:u,onFocus:e=>{rC(e,c)?f.current?.focus():$S(m?m.domReference:null)?.focus()}}),v&&c&&(0,Y.jsx)(`span`,{"aria-owns":c.id,style:ss}),c&&ix.createPortal(n,c),v&&c&&(0,Y.jsx)(mC,{"data-type":`outside`,ref:d,onFocus:e=>{rC(e,c)?p.current?.focus():(QS(m?m.domReference:null)?.focus(),m?.closeOnFocusOut&&m?.onOpenChange(!1,Yb(`focus-out`,e.nativeEvent)))}})]})]})});function FC(){let e=new Map;
12return{emit(t,n){e.get(t)?.forEach(e=>e(n))},on(t,n){e.has(t)||e.set(t,new Set),e.get(t).add(n)},off(t,n){e.get(t)?.delete(n)}}}var IC=class{nodesRef={current:[]};events=FC();addNode(e){this.nodesRef.current.push(e)}removeNode(e){let t=this.nodesRef.current.findIndex(t=>t===e);t!==-1&&this.nodesRef.current.splice(t,1)}},LC=J.createContext(null),RC=J.createContext(null),zC=()=>J.useContext(LC)?.id||null,BC=e=>{let t=J.useContext(RC);return e??t};function VC(e){let t=qb(),n=BC(e),r=zC();return G(()=>{if(!t)return;let e={id:t,parentId:r};return n?.addNode(e),()=>{n?.removeNode(e)}},[n,t,r]),t}function HC(e){let{children:t,id:n}=e,r=zC();return(0,Y.jsx)(LC.Provider,{value:J.useMemo(()=>({id:n,parentId:r}),[n,r]),children:t})}function UC(e){let{children:t,externalTree:n}=e,r=Rr(()=>n??new IC).current;return(0,Y.jsx)(RC.Provider,{value:r,children:t})}function WC(e,t){let n=Fs(e.target);return e instanceof n.KeyboardEvent?`keyboard`:e instanceof n.FocusEvent?t||`keyboard`:`pointerType`in e?e.pointerType||`keyboard`:`touches`in e?`touch`:e instanceof n.MouseEvent?t||(e.detail===0?`keyboard`:`mouse`):``}var GC=20,KC=[];function qC(){KC=KC.filter(e=>e.deref()?.isConnected)}function JC(e){qC(),e&&cl(e)!==`body`&&(KC.push(new WeakRef(e)),KC.length>GC&&(KC=KC.slice(-20)))}function YC(){return qC(),KC[KC.length-1]?.deref()}function XC(e){if(!e)return null;let t=XS();return JS(e,t)?e:KS(e,t)[0]||e}function ZC(e){return!e||!e.isConnected?!1:typeof e.checkVisibility==`function`?e.checkVisibility():vS(e)}function QC(e,t){if(!t.current.includes(`floating`)&&!e.getAttribute(`role`)?.includes(`dialog`))return;let n=XS(),r=qS(e,n).filter(e=>{let t=e.getAttribute(`data-tabindex`)||``;return JS(e,n)||e.hasAttribute(`data-tabindex`)&&!t.startsWith(`-`)}),i=e.getAttribute(`tabindex`);t.current.includes(`floating`)||r.length===0?i!==`0`&&e.setAttribute(`tabindex`,`0`):(i!==`-1`||e.hasAttribute(`data-tabindex`)&&e.getAttribute(`data-tabindex`)!==`-1`)&&(e.setAttribute(`tabindex`,`-1`),e.setAttribute(`data-tabindex`,`-1`))}function $C(e){let{context:t,children:n,disabled:r=!1,initialFocus:i=!0,returnFocus:a=!0,restoreFocus:o=!1,modal:s=!0,closeOnFocusOut:c=!0,openInteractionType:l=``,nextFocusableElement:u,previousFocusableElement:d,beforeContentFocusGuardRef:f,externalTree:p,getInsideElements:m}=e,h=`rootStore`in t?t.rootStore:t,g=h.useState(`open`),_=h.useState(`domReferenceElement`),v=h.useState(`floatingElement`),{events:y,dataRef:b}=h.context,x=U(()=>b.current.floatingContext?.nodeId),S=i===!1,C=Cx(_)&&S,w=J.useRef([`content`]),E=uC(i),D=uC(a),O=uC(l),k=BC(p),A=jC(),j=J.useRef(!1),M=J.useRef(!1),N=J.useRef(!1),P=J.useRef(-1),F=J.useRef(``),I=J.useRef(``),ee=J.useRef(null),te=J.useRef(null),ne=Nn(ee,f,A?.beforeInsideRef),re=Nn(te,A?.afterInsideRef),L=ux(),R=ux(),ie=tx(),ae=A!=null,z=Tx(v),B=U((e=z)=>e?KS(e,XS()):[]),oe=U(()=>m?.().filter(e=>e!=null)??[]),se=U(e=>{let t=B(e);return w.current.map(()=>t).filter(Boolean).flat()});J.useEffect(()=>{if(r||!s)return;function e(e){e.key===`Tab`&&X(z,_x(YS(z)))&&B().length===0&&!C&&Ox(e)}let t=YS(z);return t.addEventListener(`keydown`,e),()=>{t.removeEventListener(`keydown`,e)}},[r,_,z,s,w,C,B,se]),J.useEffect(()=>{if(r||!g)return;let e=YS(z);function t(){N.current=!1}function n(e){let t=yx(e),n=oe();N.current=!(X(v,t)||X(_,t)||X(A?.portalNode,t)||n.some(e=>e===t||X(e,t))),I.current=e.pointerType||`keyboard`,t?.closest(`[data-base-ui-click-trigger]`)&&(M.current=!0)}function i(){I.current=`keyboard`}return e.addEventListener(`pointerdown`,n,!0),e.addEventListener(`pointerup`,t,!0),e.addEventListener(`pointercancel`,t,!0),e.addEventListener(`keydown`,i,!0),()=>{e.removeEventListener(`pointerdown`,n,!0),e.removeEventListener(`pointerup`,t,!0),e.removeEventListener(`pointercancel`,t,!0),e.removeEventListener(`keydown`,i,!0)}},[r,v,_,z,g,A,oe]),J.useEffect(()=>{if(r||!c)return;let e=YS(z);function t(){M.current=!0,R.start(0,()=>{M.current=!1})}function n(e){let t=yx(e),n=B().indexOf(t);n!==-1&&(P.current=n)}function i(t){let n=t.relatedTarget,r=t.currentTarget,i=yx(t);queueMicrotask(()=>{let a=x(),c=h.context.triggerElements,l=oe(),f=n?.hasAttribute(hC(`focus-guard`))&&[ee.current,te.current,A?.beforeInsideRef.current,A?.afterInsideRef.current,A?.beforeOutsideRef.current,A?.afterOutsideRef.current,rx(d),rx(u)].includes(n),p=!(X(_,n)||X(v,n)||X(n,v)||X(A?.portalNode,n)||l.some(e=>e===n||X(e,n))||n!=null&&c.hasElement(n)||c.hasMatchingElement(e=>X(e,n))||f||k&&(Ex(k.nodesRef.current,a).find(e=>X(e.context?.elements.floating,n)||X(e.context?.elements.domReference,n))||Dx(k.nodesRef.current,a).find(e=>[e.context?.elements.floating,Tx(e.context?.elements.floating)].includes(n)||e.context?.elements.domReference===n)));if(r===_&&z&&QC(z,w),o&&r!==_&&!ZC(i)&&_x(e)===e.body){if(ba(z)&&(z.focus(),o===`popup`)){ie.request(()=>{z.focus()});return}let e=P.current,t=B(),n=t[e]||t[t.length-1]||z;ba(n)&&n.focus()}if(b.current.insideReactTree){b.current.insideReactTree=!1;return}(C||!s)&&n&&p&&!M.current&&(C||n!==YC())&&(j.current=!0,h.setOpen(!1,Yb(vb,t)))})}function a(){N.current||(b.current.insideReactTree=!0,L.start(0,()=>{b.current.insideReactTree=!1}))}let l=ba(_)?_:null,f=[];if(!(!v&&!l))return l&&(l.addEventListener(`focusout`,i),l.addEventListener(`pointerdown`,t),f.push(()=>{l.removeEventListener(`focusout`,i),l.removeEventListener(`pointerdown`,t)})),v&&(v.addEventListener(`focusin`,n),v.addEventListener(`focusout`,i),A&&(v.addEventListener(`focusout`,a,!0),f.push(()=>{v.removeEventListener(`focusout`,a,!0)}
12)),f.push(()=>{v.removeEventListener(`focusin`,n),v.removeEventListener(`focusout`,i)})),()=>{f.forEach(e=>{e()})}},[r,_,v,z,s,k,A,h,c,o,B,C,x,w,b,L,R,ie,u,d,oe]),J.useEffect(()=>{if(r||!v||!g)return;let e=Array.from(A?.portalNode?.querySelectorAll(`[${hC(`portal`)}]`)||[]),t=(k?Dx(k.nodesRef.current,x()):[]).find(e=>Cx(e.context?.elements.domReference||null))?.context?.elements.domReference,n=kC([v,...e,ee.current,te.current,A?.beforeOutsideRef.current,A?.afterOutsideRef.current,...oe(),t,rx(d),rx(u),C?_:null].filter(e=>e!=null),{ariaHidden:s||C,mark:!1}),i=kC([v,...e].filter(e=>e!=null));return()=>{i(),n()}},[g,r,_,v,s,w,A,C,k,x,u,d,oe]),G(()=>{if(!g||r||!ba(z))return;let e=_x(YS(z));queueMicrotask(()=>{let t=se(z),n=E.current,r=typeof n==`function`?n(O.current||``):n;if(r===void 0||r===!1)return;let i;i=r===!0||r===null?t[0]||z:rx(r),i=i||t[0]||z,!X(z,e)&&_C(i,{preventScroll:i===z})})},[r,g,z,S,se,E,O]),G(()=>{if(r||!z)return;let e=YS(z);JC(_x(e));function t(e){if(e.open||(F.current=WC(e.nativeEvent,I.current)),e.reason===`trigger-hover`&&e.nativeEvent.type===`mouseleave`&&(j.current=!0),e.reason===`outside-press`)if(e.nested)j.current=!1;else if(Ax(e.nativeEvent)||jx(e.nativeEvent))j.current=!1;else{let e=!1;document.createElement(`div`).focus({get preventScroll(){return e=!0,!1}}),e?j.current=!1:j.current=!0}}y.on(`openchange`,t);function n(){let e=D.current,t=typeof e==`function`?e(F.current):e;if(t===void 0||t===!1)return null;if(t===null&&(t=!0),typeof t==`boolean`){let e=_||YC();return e&&e.isConnected?e:null}let n=_||YC();return rx(t)||n||null}return()=>{y.off(`openchange`,t);let r=_x(e),i=oe(),a=X(v,r)||i.some(e=>e===r||X(e,r))||k&&Ex(k.nodesRef.current,x(),!1).some(e=>X(e.context?.elements.floating,r)),o=n();queueMicrotask(()=>{let t=XC(o),n=typeof D.current!=`boolean`;D.current&&!j.current&&ba(t)&&(!(!n&&t!==r&&r!==e.body)||a)&&t.focus({preventScroll:!0}),j.current=!1})}},[r,v,z,D,b,y,k,_,x,oe]),G(()=>{if(!Ob||g||!v)return;let e=_x(YS(v));!ba(e)||!Sx(e)||X(v,e)&&e.blur()},[g,v]),G(()=>{if(!(r||!A))return A.setFocusManagerState({modal:s,closeOnFocusOut:c,open:g,onOpenChange:h.setOpen,domReference:_}),()=>{A.setFocusManagerState(null)}},[r,A,s,g,h,c,_]),G(()=>{if(!(r||!z))return QC(z,w),()=>{queueMicrotask(qC)}},[r,z,w]);let ce=!r&&(s?!C:!0)&&(ae||s);return(0,Y.jsxs)(J.Fragment,{children:[ce&&(0,Y.jsx)(mC,{"data-type":`inside`,ref:ne,onFocus:e=>{if(s){let e=se();_C(e[e.length-1])}else A?.portalNode&&(j.current=!1,rC(e,A.portalNode)?QS(_)?.focus():rx(d??A.beforeOutsideRef)?.focus())}}),n,ce&&(0,Y.jsx)(mC,{"data-type":`inside`,ref:re,onFocus:e=>{s?_C(se()[0]):A?.portalNode&&(c&&(j.current=!0),rC(e,A.portalNode)?$S(_)?.focus():rx(u??A.afterOutsideRef)?.focus())}})]})}function ew(e,t={}){let n=`rootStore`in e?e.rootStore:e,r=n.context.dataRef,{enabled:i=!0,event:a=`click`,toggle:o=!0,ignoreMouse:s=!1,stickIfOpen:c=!0,touchOpenDelay:l=0,reason:u=fb}=t,d=J.useRef(void 0),f=tx(),p=ux(),m=J.useMemo(()=>({onPointerDown(e){d.current=e.pointerType},onMouseDown(e){let t=d.current,i=e.nativeEvent,m=n.select(`open`);if(e.button!==0||a===`click`||Mx(t,!0)&&s)return;let h=r.current.openEvent,g=h?.type,_=n.select(`domReferenceElement`)!==e.currentTarget,v=m&&_||!(m&&o&&(!(h&&c)||g===`click`||g===`mousedown`));if(Sx(i.target)){let e=Yb(u,i,i.target);v&&t===`touch`&&l>0?p.start(l,()=>{n.setOpen(!0,e)}):n.setOpen(v,e);return}let y=e.currentTarget;f.request(()=>{let e=Yb(u,i,y);v&&t===`touch`&&l>0?p.start(l,()=>{n.setOpen(!0,e)}):n.setOpen(v,e)})},onClick(e){if(a===`mousedown-only`)return;let t=d.current;if(a===`mousedown`&&t){d.current=void 0;return}if(Mx(t,!0)&&s)return;let i=n.select(`open`),f=r.current.openEvent,m=n.select(`domReferenceElement`)!==e.currentTarget,h=i&&m||!(i&&o&&(!(f&&c)||Nx(f))),g=Yb(u,e.nativeEvent,e.currentTarget);h&&t===`touch`&&l>0?p.start(l,()=>{n.setOpen(!0,g)}):n.setOpen(h,g)},onKeyDown(){d.current=void 0}}),[r,a,s,n,c,o,f,p,l,u]);return J.useMemo(()=>i?{reference:m}:$n,[i,m])}var tw={intentional:`onClick`,sloppy:`onPointerDown`};function nw(){return!1}function rw(e){return{escapeKey:typeof e==`boolean`?e:e?.escapeKey??!1,outsidePress:typeof e==`boolean`?e:e?.outsidePress??!0}}function iw(e,t={}){let n=`rootStore`in e?e.rootStore:e,r=n.useState(`open`),i=n.useState(`floatingElement`),{dataRef:a}=n.context,{enabled:o=!0,escapeKey:s=!0,outsidePress:c=!0,outsidePressEvent:l=`sloppy`,referencePress:u=nw,referencePressEvent:d=`sloppy`,bubbles:f,externalTree:p}=t,m=BC(p),h=U(typeof c==`function`?c:()=>!1),g=typeof c==`function`?h:c,_=g!==!1,v=U(()=>l),y=J.useRef(!1),b=J.useRef(!1),x=J.useRef(!1),{escapeKey:S,outsidePress:C}=rw(f),w=J.useRef(null),E=ux(),D=ux(),O=U(()=>{D.clear(),a.current.insideReactTree=!1}),k=J.useRef(!1),A=J.useRef(``),j=U(u),M=U(e=>{if(!r||!o||!s||e.key!==`Escape`||k.current)return;let t=a.current.floatingContext?.nodeId,i=m?Ex(m.nodesRef.current,t):[];if(!S&&i.length>0){let e=!0;if(i.forEach(t=>{t.context?.open&&!t.context.dataRef.current.__escapeKeyBubbles&&(e=!1)}),!e)return}let c=Yb(yb,kx(e)?e.nativeEvent:e);n.setOpen(!1,c),!S&&!c.isPropagationAllowed&&e.stopPropagation()}),N=U(()=>{a.current.insideReactTree=!0,D.start(0,O)});J.useEffect(()=>{if(!r||!o)return;a.current.__escapeKeyBubbles=S,a.current.__outsidePressBubbles=C;let e=new lx,t=new lx;function c(){e.clear(),k.current=!0}function l(){e.start(Ol()?5:0,()=>{k.current=!1})}
12function u(){x.current=!0,t.start(0,()=>{x.current=!1})}function d(){y.current=!1,b.current=!1}function f(){let e=A.current,t=e===`pen`||!e?`mouse`:e,n=v(),r=typeof n==`function`?n():n;return typeof r==`string`?r:r[t]}function p(e){let t=f();return t===`intentional`&&e.type!==`click`||t===`sloppy`&&e.type===`click`}function h(e){let t=a.current.floatingContext?.nodeId,r=m&&Ex(m.nodesRef.current,t).some(t=>bx(e,t.context?.elements.floating));return bx(e,n.select(`floatingElement`))||bx(e,n.select(`domReferenceElement`))||r}function D(e){if(p(e)){O();return}if(a.current.insideReactTree){O();return}let r=yx(e),i=`[${hC(`inert`)}]`,o=Array.from(YS(n.select(`floatingElement`)).querySelectorAll(i)),s=Mo(r)?r.getRootNode():null;zl(s)&&(o=o.concat(Array.from(s.querySelectorAll(i))));let c=n.context.triggerElements;if(r&&(c.hasElement(r)||c.hasMatchingElement(e=>X(e,r))))return;let l=Mo(r)?r:null;for(;l&&!_l(l);){let e=fc(l);if(_l(e)||!Mo(e))break;l=e}if(o.length&&Mo(r)&&!xx(r)&&!X(r,n.select(`floatingElement`))&&o.every(e=>!X(l,e)))return;if(ba(r)&&!(`touches`in e)){let t=_l(r),n=tc(r),i=/auto|scroll/,a=t||i.test(n.overflowX),o=t||i.test(n.overflowY),s=a&&r.clientWidth>0&&r.scrollWidth>r.clientWidth,c=o&&r.clientHeight>0&&r.scrollHeight>r.clientHeight,l=n.direction===`rtl`,u=c&&(l?e.offsetX<=r.offsetWidth-r.clientWidth:e.offsetX>r.clientWidth),d=s&&e.offsetY>r.clientHeight;if(u||d)return}if(h(e))return;if(f()===`intentional`&&x.current){t.clear(),x.current=!1;return}if(typeof g==`function`&&!g(e))return;let u=a.current.floatingContext?.nodeId,d=m?Ex(m.nodesRef.current,u):[];if(d.length>0){let e=!0;if(d.forEach(t=>{t.context?.open&&!t.context.dataRef.current.__outsidePressBubbles&&(e=!1)}),!e)return}n.setOpen(!1,Yb(hb,e)),O()}function j(e){f()!==`sloppy`||e.pointerType===`touch`||!n.select(`open`)||!o||bx(e,n.select(`floatingElement`))||bx(e,n.select(`domReferenceElement`))||D(e)}function N(e){if(f()!==`sloppy`||!n.select(`open`)||!o||bx(e,n.select(`floatingElement`))||bx(e,n.select(`domReferenceElement`)))return;let t=e.touches[0];t&&(w.current={startTime:Date.now(),startX:t.clientX,startY:t.clientY,dismissOnTouchEnd:!1,dismissOnMouseDown:!0},E.start(1e3,()=>{w.current&&(w.current.dismissOnTouchEnd=!1,w.current.dismissOnMouseDown=!1)}))}function P(e){A.current=`touch`;let t=yx(e);function n(){N(e),t?.removeEventListener(e.type,n)}t?.addEventListener(e.type,n)}function F(e){if(E.clear(),e.type===`pointerdown`&&(A.current=e.pointerType),e.type===`mousedown`&&w.current&&!w.current.dismissOnMouseDown)return;let t=yx(e);function n(){e.type===`pointerdown`?j(e):D(e),t?.removeEventListener(e.type,n)}t?.addEventListener(e.type,n)}function I(e){if(!y.current)return;let n=b.current;if(d(),f()===`intentional`){if(e.type===`pointercancel`){n&&u();return}if(!h(e)){if(n){u();return}typeof g==`function`&&!g(e)||(t.clear(),x.current=!0,O())}}}function ee(e){if(f()!==`sloppy`||!w.current||bx(e,n.select(`floatingElement`))||bx(e,n.select(`domReferenceElement`)))return;let t=e.touches[0];if(!t)return;let r=Math.abs(t.clientX-w.current.startX),i=Math.abs(t.clientY-w.current.startY),a=Math.sqrt(r*r+i*i);a>5&&(w.current.dismissOnTouchEnd=!0),a>10&&(D(e),E.clear(),w.current=null)}function te(e){let t=yx(e);function n(){ee(e),t?.removeEventListener(e.type,n)}t?.addEventListener(e.type,n)}function ne(e){f()!==`sloppy`||!w.current||bx(e,n.select(`floatingElement`))||bx(e,n.select(`domReferenceElement`))||(w.current.dismissOnTouchEnd&&D(e),E.clear(),w.current=null)}function re(e){let t=yx(e);function n(){ne(e),t?.removeEventListener(e.type,n)}t?.addEventListener(e.type,n)}let L=YS(i);return s&&(L.addEventListener(`keydown`,M),L.addEventListener(`compositionstart`,c),L.addEventListener(`compositionend`,l)),_&&(L.addEventListener(`click`,F,!0),L.addEventListener(`pointerdown`,F,!0),L.addEventListener(`pointerup`,I,!0),L.addEventListener(`pointercancel`,I,!0),L.addEventListener(`mousedown`,F,!0),L.addEventListener(`mouseup`,I,!0),L.addEventListener(`touchstart`,P,!0),L.addEventListener(`touchmove`,te,!0),L.addEventListener(`touchend`,re,!0)),()=>
12{s&&(L.removeEventListener(`keydown`,M),L.removeEventListener(`compositionstart`,c),L.removeEventListener(`compositionend`,l)),_&&(L.removeEventListener(`click`,F,!0),L.removeEventListener(`pointerdown`,F,!0),L.removeEventListener(`pointerup`,I,!0),L.removeEventListener(`pointercancel`,I,!0),L.removeEventListener(`mousedown`,F,!0),L.removeEventListener(`mouseup`,I,!0),L.removeEventListener(`touchstart`,P,!0),L.removeEventListener(`touchmove`,te,!0),L.removeEventListener(`touchend`,re,!0)),e.clear(),t.clear(),d(),x.current=!1}},[a,i,s,_,g,r,o,S,C,M,O,v,m,n,E]),J.useEffect(O,[g,O]);let P=J.useMemo(()=>({onKeyDown:M,[tw[d]]:e=>{j()&&n.setOpen(!1,Yb(fb,e.nativeEvent))},...d!==`intentional`&&{onClick(e){j()&&n.setOpen(!1,Yb(`trigger-press`,e.nativeEvent))}}}),[M,n,d,j]),F=U(e=>{if(!r||!o||e.button!==0)return;let t=yx(e.nativeEvent);X(n.select(`floatingElement`),t)&&(y.current||(y.current=!0,b.current=!1))}),I=U(e=>{!r||!o||(e.defaultPrevented||e.nativeEvent.defaultPrevented)&&y.current&&(b.current=!0)}),ee=J.useMemo(()=>({onKeyDown:M,onPointerDown:I,onMouseDown:I,onClickCapture:N,onMouseDownCapture(e){N(),F(e)},onPointerDownCapture(e){N(),F(e)},onMouseUpCapture:N,onTouchEndCapture:N,onTouchMoveCapture:N}),[M,N,F,I]);return J.useMemo(()=>o?{reference:P,floating:ee,trigger:P}:{},[o,P,ee])}function aw(e,t,n){let{reference:r,floating:i}=e,a=qx(t),o=Jx(t),s=Kx(o),c=Ux(t),l=a===`y`,u=r.x+r.width/2-i.width/2,d=r.y+r.height/2-i.height/2,f=r[s]/2-i[s]/2,p;switch(c){case`top`:p={x:u,y:r.y-i.height};break;case`bottom`:p={x:u,y:r.y+r.height};break;case`right`:p={x:r.x+r.width,y:d};break;case`left`:p={x:r.x-i.width,y:d};break;default:p={x:r.x,y:r.y}}switch(Wx(t)){case`start`:p[o]-=f*(n&&l?-1:1);break;case`end`:p[o]+=f*(n&&l?-1:1);break}return p}async function ow(e,t){t===void 0&&(t={});let{x:n,y:r,platform:i,rects:a,elements:o,strategy:s}=e,{boundary:c=`clippingAncestors`,rootBoundary:l=`viewport`,elementContext:u=`floating`,altBoundary:d=!1,padding:f=0}=Hx(t,e),p=oS(f),m=o[d?u===`floating`?`reference`:`floating`:u],h=sS(await i.getClippingRect({element:await(i.isElement==null?void 0:i.isElement(m))??!0?m:m.contextElement||await(i.getDocumentElement==null?void 0:i.getDocumentElement(o.floating)),boundary:c,rootBoundary:l,strategy:s})),g=u===`floating`?{x:n,y:r,width:a.floating.width,height:a.floating.height}:a.reference,_=await(i.getOffsetParent==null?void 0:i.getOffsetParent(o.floating)),v=await(i.isElement==null?void 0:i.isElement(_))&&await(i.getScale==null?void 0:i.getScale(_))||{x:1,y:1},y=sS(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:o,rect:g,offsetParent:_,strategy:s}):g);return{top:(h.top-y.top+p.top)/v.y,bottom:(y.bottom-h.bottom+p.bottom)/v.y,left:(h.left-y.left+p.left)/v.x,right:(y.right-h.right+p.right)/v.x}}var sw=50,cw=async(e,t,n)=>{let{placement:r=`bottom`,strategy:i=`absolute`,middleware:a=[],platform:o}=n,s=o.detectOverflow?o:{...o,detectOverflow:ow},c=await(o.isRTL==null?void 0:o.isRTL(t)),l=await o.getElementRects({reference:e,floating:t,strategy:i}),{x:u,y:d}=aw(l,r,c),f=r,p=0,m={};for(let n=0;n<a.length;n++){let h=a[n];if(!h)continue;let{name:g,fn:_}=h,{x:v,y,data:b,reset:x}=await _({x:u,y:d,initialPlacement:r,placement:f,strategy:i,middlewareData:m,rects:l,platform:s,elements:{reference:e,floating:t}});u=v??u,d=y??d,m[g]={...m[g],...b},x&&p<sw&&(p++,typeof x==`object`&&(x.placement&&(f=x.placement),x.rects&&(l=x.rects===!0?await o.getElementRects({reference:e,floating:t,strategy:i}):x.rects),{x:u,y:d}=aw(l,f,c)),n=-1)}return{x:u,y:d,placement:f,strategy:i,middlewareData:m}},lw=function(e){return e===void 0&&(e={}),{name:`flip`,options:e,async fn(t){var n;let{placement:r,middlewareData:i,rects:a,initialPlacement:o,platform:s,elements:c}=t,{mainAxis:l=!0,crossAxis:u=!0,fallbackPlacements:d,fallbackStrategy:f=`bestFit`,fallbackAxisSideDirection:p=`none`,flipAlignment:m=!0,...h}=Hx(e,t);if((n=i.arrow)!=null&&n.alignmentOffset)return{};let g=Ux(r),_=qx(o),v=Ux(o)===o,y=await(s.isRTL==null?void 0:s.isRTL(c.floating)),b=d||(v||!m?[iS(o)]:Xx(o)),x=p!==`none`;!d&&x&&b.push(...rS(o,m,p,y));let S=[o,...b],C=await s.detectOverflow(t,h),w=[],E=i.flip?.overflows||[];if(l&&w.push(C[g]),u){let e=Yx(r,a,y);w.push(C[e[0]],C[e[1]])}if(E=[...E,{placement:r,overflows:w}],!w.every(e=>e<=0)){let e=(i.flip?.index||0)+1,t=S[e];if(t&&(!(u===`alignment`&&_!==qx(t))||E.every(e=>qx(e.placement)===_?e.overflows[0]>0:!0)))return{data:{index:e,overflows:E},reset:{placement:t}};let n=E.filter(e=>e.overflows[0]<=0).sort((e,t)=>
vendor: 4,413 bytes, line 12
12e.overflows[1]-t.overflows[1])[0]?.placement;if(!n)switch(f){case`bestFit`:{let e=E.filter(e=>{if(x){let t=qx(e.placement);return t===_||t===`y`}return!0}).map(e=>[e.placement,e.overflows.filter(e=>e>0).reduce((e,t)=>e+t,0)]).sort((e,t)=>e[1]-t[1])[0]?.[0];e&&(n=e);break}case`initialPlacement`:n=o;break}if(r!==n)return{reset:{placement:n}}}return{}}}};function uw(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function dw(e){return Px.some(t=>e[t]>=0)}var fw=function(e){return e===void 0&&(e={}),{name:`hide`,options:e,async fn(t){let{rects:n,platform:r}=t,{strategy:i=`referenceHidden`,...a}=Hx(e,t);switch(i){case`referenceHidden`:{let e=uw(await r.detectOverflow(t,{...a,elementContext:`reference`}),n.reference);return{data:{referenceHiddenOffsets:e,referenceHidden:dw(e)}}}case`escaped`:{let e=uw(await r.detectOverflow(t,{...a,altBoundary:!0}),n.floating);return{data:{escapedOffsets:e,escaped:dw(e)}}}default:return{}}}}},pw=new Set([`left`,`top`]);async function mw(e,t){let{placement:n,platform:r,elements:i}=e,a=await(r.isRTL==null?void 0:r.isRTL(i.floating)),o=Ux(n),s=Wx(n),c=qx(n)===`y`,l=pw.has(o)?-1:1,u=a&&c?-1:1,d=Hx(t,e),{mainAxis:f,crossAxis:p,alignmentAxis:m}=typeof d==`number`?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:d.mainAxis||0,crossAxis:d.crossAxis||0,alignmentAxis:d.alignmentAxis};return s&&typeof m==`number`&&(p=s===`end`?m*-1:m),c?{x:p*u,y:f*l}:{x:f*l,y:p*u}}var hw=function(e){return e===void 0&&(e=0),{name:`offset`,options:e,async fn(t){var n;let{x:r,y:i,placement:a,middlewareData:o}=t,s=await mw(t,e);return a===o.offset?.placement&&(n=o.arrow)!=null&&n.alignmentOffset?{}:{x:r+s.x,y:i+s.y,data:{...s,placement:a}}}}},gw=function(e){return e===void 0&&(e={}),{name:`shift`,options:e,async fn(t){let{x:n,y:r,placement:i,platform:a}=t,{mainAxis:o=!0,crossAxis:s=!1,limiter:c={fn:e=>{let{x:t,y:n}=e;return{x:t,y:n}}},...l}=Hx(e,t),u={x:n,y:r},d=await a.detectOverflow(t,l),f=qx(Ux(i)),p=Gx(f),m=u[p],h=u[f];if(o){let e=p===`y`?`top`:`left`,t=p===`y`?`bottom`:`right`,n=m+d[e],r=m-d[t];m=Vx(n,m,r)}if(s){let e=f===`y`?`top`:`left`,t=f===`y`?`bottom`:`right`,n=h+d[e],r=h-d[t];h=Vx(n,h,r)}let g=c.fn({...t,[p]:m,[f]:h});return{...g,data:{x:g.x-n,y:g.y-r,enabled:{[p]:o,[f]:s}}}}}},_w=function(e){return e===void 0&&(e={}),{options:e,fn(t){let{x:n,y:r,placement:i,rects:a,middlewareData:o}=t,{offset:s=0,mainAxis:c=!0,crossAxis:l=!0}=Hx(e,t),u={x:n,y:r},d=qx(i),f=Gx(d),p=u[f],m=u[d],h=Hx(s,t),g=typeof h==`number`?{mainAxis:h,crossAxis:0}:{mainAxis:0,crossAxis:0,...h};if(c){let e=f===`y`?`height`:`width`,t=a.reference[f]-a.floating[e]+g.mainAxis,n=a.reference[f]+a.reference[e]-g.mainAxis;p<t?p=t:p>n&&(p=n)}if(l){let e=f===`y`?`width`:`height`,t=pw.has(Ux(i)),n=a.reference[d]-a.floating[e]+(t&&o.offset?.[d]||0)+(t?0:g.crossAxis),r=a.reference[d]+a.reference[e]+(t?0:o.offset?.[d]||0)-(t?g.crossAxis:0);m<n?m=n:m>r&&(m=r)}return{[f]:p,[d]:m}}}},vw=function(e){return e===void 0&&(e={}),{name:`size`,options:e,async fn(t){var n,r;let{placement:i,rects:a,platform:o,elements:s}=t,{apply:c=()=>{},...l}=Hx(e,t),u=await o.detectOverflow(t,l),d=Ux(i),f=Wx(i),p=qx(i)===`y`,{width:m,height:h}=a.floating,g,_;d===`top`||d===`bottom`?(g=d,_=f===(await(o.isRTL==null?void 0:o.isRTL(s.floating))?`start`:`end`)?`left`:`right`):(_=d,g=f===`end`?`top`:`bottom`);let v=h-u.top-u.bottom,y=m-u.left-u.right,b=Fx(h-u[g],v),x=Fx(m-u[_],y),S=!t.middlewareData.shift,C=b,w=x;if((n=t.middlewareData.shift)!=null&&n.enabled.x&&(w=y),(r=t.middlewareData.shift)!=null&&r.enabled.y&&(C=v),S&&!f){let e=Ix(u.left,0),t=Ix(u.right,0),n=Ix(u.top,0),r=Ix(u.bottom,0);p?w=m-2*(e!==0||t!==0?e+t:Ix(u.left,u.right)):C=h-2*(n!==0||r!==0?n+r:Ix(u.top,u.bottom))}await c({...t,availableWidth:w,availableHeight:C});let E=await o.getDimensions(s.floating);return m!==E.width||h!==E.height?{reset:{rects:!0}}:{}}}};function yw(e){let t=tc(e),n=parseFloat(t.width)||0,r=parseFloat(t.height)||0,i=ba(e),a=i?e.offsetWidth:n,o=i?e.offsetHeight:r,s=Lx(n)!==a||Lx(r)!==o;return s&&(n=a,r=o),{width:n,height:r,$:s}}function bw(e){return Mo(e)?e:e.contextElement}function xw(e){let t=bw(e);if(!ba(t))return zx(1);let n=t.getBoundingClientRect(),{width:r,height:i,$:a}=yw(t),o=(a?Lx(n.width):n.width)/r,s=(a?Lx(n.height):n.height)/i;return(!o||!Number.isFinite(o))&&(o=1),(!s||!Number.isFinite(s))&&(s=1),{x:o,y:s}}var Sw=zx(0);function Cw(e){let t=Fs(e);
vendor: 5,771 bytes, line 12
12return!Ol()||!t.visualViewport?Sw:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function ww(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==Fs(e)?!1:t}function Tw(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);let i=e.getBoundingClientRect(),a=bw(e),o=zx(1);t&&(r?Mo(r)&&(o=xw(r)):o=xw(e));let s=ww(a,n,r)?Cw(a):zx(0),c=(i.left+s.x)/o.x,l=(i.top+s.y)/o.y,u=i.width/o.x,d=i.height/o.y;if(a){let e=Fs(a),t=r&&Mo(r)?Fs(r):r,n=e,i=Es(n);for(;i&&r&&t!==n;){let e=xw(i),t=i.getBoundingClientRect(),r=tc(i),a=t.left+(i.clientLeft+parseFloat(r.paddingLeft))*e.x,o=t.top+(i.clientTop+parseFloat(r.paddingTop))*e.y;c*=e.x,l*=e.y,u*=e.x,d*=e.y,c+=a,l+=o,n=Fs(i),i=Es(n)}}return sS({width:u,height:d,x:c,y:l})}function Ew(e,t){let n=io(e).scrollLeft;return t?t.left+n:Tw(Ya(e)).left+n}function Dw(e,t){let n=e.getBoundingClientRect();return{x:n.left+t.scrollLeft-Ew(e,n),y:n.top+t.scrollTop}}function Ow(e){let{elements:t,rect:n,offsetParent:r,strategy:i}=e,a=i===`fixed`,o=Ya(r),s=t?Xe(t.floating):!1;if(r===o||s&&a)return n;let c={scrollLeft:0,scrollTop:0},l=zx(1),u=zx(0),d=ba(r);if((d||!d&&!a)&&((cl(r)!==`body`||za(o))&&(c=io(r)),d)){let e=Tw(r);l=xw(r),u.x=e.x+r.clientLeft,u.y=e.y+r.clientTop}let f=o&&!d&&!a?Dw(o,c):zx(0);return{width:n.width*l.x,height:n.height*l.y,x:n.x*l.x-c.scrollLeft*l.x+u.x+f.x,y:n.y*l.y-c.scrollTop*l.y+u.y+f.y}}function kw(e){return Array.from(e.getClientRects())}function Aw(e){let t=Ya(e),n=io(e),r=e.ownerDocument.body,i=Ix(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),a=Ix(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight),o=-n.scrollLeft+Ew(e),s=-n.scrollTop;return tc(r).direction===`rtl`&&(o+=Ix(t.clientWidth,r.clientWidth)-i),{width:i,height:a,x:o,y:s}}var jw=25;function Mw(e,t){let n=Fs(e),r=Ya(e),i=n.visualViewport,a=r.clientWidth,o=r.clientHeight,s=0,c=0;if(i){a=i.width,o=i.height;let e=Ol();(!e||e&&t===`fixed`)&&(s=i.offsetLeft,c=i.offsetTop)}let l=Ew(r);if(l<=0){let e=r.ownerDocument,t=e.body,n=getComputedStyle(t),i=e.compatMode===`CSS1Compat`&&parseFloat(n.marginLeft)+parseFloat(n.marginRight)||0,o=Math.abs(r.clientWidth-t.clientWidth-i);o<=jw&&(a-=o)}else l<=jw&&(a+=l);return{width:a,height:o,x:s,y:c}}function Nw(e,t){let n=Tw(e,!0,t===`fixed`),r=n.top+e.clientTop,i=n.left+e.clientLeft,a=ba(e)?xw(e):zx(1);return{width:e.clientWidth*a.x,height:e.clientHeight*a.y,x:i*a.x,y:r*a.y}}function Pw(e,t,n){let r;if(t===`viewport`)r=Mw(e,n);else if(t===`document`)r=Aw(Ya(e));else if(Mo(t))r=Nw(t,n);else{let n=Cw(e);r={x:t.x-n.x,y:t.y-n.y,width:t.width,height:t.height}}return sS(r)}function Fw(e,t){let n=fc(e);return n===t||!Mo(n)||_l(n)?!1:tc(n).position===`fixed`||Fw(n,t)}function Iw(e,t){let n=t.get(e);if(n)return n;let r=So(e,[],!1).filter(e=>Mo(e)&&cl(e)!==`body`),i=null,a=tc(e).position===`fixed`,o=a?fc(e):e;for(;Mo(o)&&!_l(o);){let t=tc(o),n=Ho(o);!n&&t.position===`fixed`&&(i=null),(a?!n&&!i:!n&&t.position===`static`&&i&&(i.position===`absolute`||i.position===`fixed`)||za(o)&&!n&&Fw(e,o))?r=r.filter(e=>e!==o):i=t,o=fc(o)}return t.set(e,r),r}function Lw(e){let{element:t,boundary:n,rootBoundary:r,strategy:i}=e,a=[...n===`clippingAncestors`?Xe(t)?[]:Iw(t,this._c):[].concat(n),r],o=Pw(t,a[0],i),s=o.top,c=o.right,l=o.bottom,u=o.left;for(let e=1;e<a.length;e++){let n=Pw(t,a[e],i);s=Ix(n.top,s),c=Fx(n.right,c),l=Fx(n.bottom,l),u=Ix(n.left,u)}return{width:c-u,height:l-s,x:u,y:s}}function Rw(e){let{width:t,height:n}=yw(e);return{width:t,height:n}}function zw(e,t,n){let r=ba(t),i=Ya(t),a=n===`fixed`,o=Tw(e,!0,a,t),s={scrollLeft:0,scrollTop:0},c=zx(0);function l(){c.x=Ew(i)}if(r||!r&&!a)if((cl(t)!==`body`||za(i))&&(s=io(t)),r){let e=Tw(t,!0,a,t);c.x=e.x+t.clientLeft,c.y=e.y+t.clientTop}else i&&l();a&&!r&&i&&l();let u=i&&!r&&!a?Dw(i,s):zx(0);return{x:o.left+s.scrollLeft-c.x-u.x,y:o.top+s.scrollTop-c.y-u.y,width:o.width,height:o.height}}function Bw(e){return tc(e).position===`static`}function Vw(e,t){if(!ba(e)||tc(e).position===`fixed`)return null;if(t)return t(e);let n=e.offsetParent;return Ya(e)===n&&(n=n.ownerDocument.body),n}function Hw(e,t){let n=Fs(e);if(Xe(e))return n;if(!ba(e)){let t=fc(e);for(;t&&!_l(t);){if(Mo(t)&&!Bw(t))return t;t=fc(t)}return n}let r=Vw(e,t);for(;r&&qr(r)&&Bw(r);)r=Vw(r,t);return r&&_l(r)&&Bw(r)&&!Ho(r)?n:r||Bc(e)||n}var Uw=async function(e){let t=this.getOffsetParent||Hw,n=this.getDimensions,r=await n(e.floating);return{reference:zw(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function Ww(e){return tc(e).direction===`rtl`}var Gw={convertOffsetParentRelativeRectToViewportRelativeRect:Ow,getDocumentElement:Ya,getClippingRect:Lw,getOffsetParent:Hw,getElementRects:Uw,getClientRects:kw,getDimensions:Rw,getScale:xw,isElement:Mo,isRTL:Ww};function Kw(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function qw(e,t){let n=null,r,i=Ya(e);function a(){var e;clearTimeout(r),(e=n)==null||e.disconnect(),n=null}function o(s,c){s===void 0&&(s=!1),c===void 0&&(c=1),a();let l=e.getBoundingClientRect(),{left:u,top:d,width:f,height:p}=l;if(s||t(),!f||!p)return;let m=Rx(d),h=Rx(i.clientWidth-(u+f)),g=Rx(i.clientHeight-(d+p)),_=Rx(u),v={rootMargin:-m+`px `+-h+`px `+-g+`px `+-_+`px`,threshold:Ix(0,Fx(1,c))||1},y=!0;function b(t){let n=t[0].intersectionRatio;if(n!==c){if(!y)return o();n?o(!1,n):r=setTimeout(()=>{o(!1,1e-7)},1e3)}n===1&&!Kw(l,e.getBoundingClientRect())&&o(),y=!1}try{n=new IntersectionObserver(b,{...v,root:i.ownerDocument})}catch{n=new IntersectionObserver(b,v)}n.observe(e)}return o(!0),a}function Jw(e,t,n,r){r===void 0&&(r={});let{ancestorScroll:i=!0,ancestorResize:a=!0,elementResize:o=typeof ResizeObserver==`function`,layoutShift:s=typeof IntersectionObserver==`function`,animationFrame:c=!1}=r,l=bw(e),u=i||a?[...l?So(l):[],...t?So(t):[]]:[];
12u.forEach(e=>{i&&e.addEventListener(`scroll`,n,{passive:!0}),a&&e.addEventListener(`resize`,n)});let d=l&&s?qw(l,n):null,f=-1,p=null;o&&(p=new ResizeObserver(e=>{let[r]=e;r&&r.target===l&&p&&t&&(p.unobserve(t),cancelAnimationFrame(f),f=requestAnimationFrame(()=>{var e;(e=p)==null||e.observe(t)})),n()}),l&&!c&&p.observe(l),t&&p.observe(t));let m,h=c?Tw(e):null;c&&g();function g(){let t=Tw(e);h&&!Kw(h,t)&&n(),h=t,m=requestAnimationFrame(g)}return n(),()=>{var e;u.forEach(e=>{i&&e.removeEventListener(`scroll`,n),a&&e.removeEventListener(`resize`,n)}),d?.(),(e=p)==null||e.disconnect(),p=null,c&&cancelAnimationFrame(m)}}var Yw=hw,Xw=gw,Zw=lw,Qw=vw,$w=fw,eT=_w,tT=(e,t,n)=>{let r=new Map,i={platform:Gw,...n},a={...i.platform,_c:r};return cw(e,t,{...i,platform:a})},nT=typeof document<`u`?J.useLayoutEffect:function(){};function rT(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(typeof e==`function`&&e.toString()===t.toString())return!0;let n,r,i;if(e&&t&&typeof e==`object`){if(Array.isArray(e)){if(n=e.length,n!==t.length)return!1;for(r=n;r--!==0;)if(!rT(e[r],t[r]))return!1;return!0}if(i=Object.keys(e),n=i.length,n!==Object.keys(t).length)return!1;for(r=n;r--!==0;)if(!{}.hasOwnProperty.call(t,i[r]))return!1;for(r=n;r--!==0;){let n=i[r];if(!(n===`_owner`&&e.$$typeof)&&!rT(e[n],t[n]))return!1}return!0}return e!==e&&t!==t}function iT(e){return typeof window>`u`?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function aT(e,t){let n=iT(e);return Math.round(t*n)/n}function oT(e){let t=J.useRef(e);return nT(()=>{t.current=e}),t}function sT(e){e===void 0&&(e={});let{placement:t=`bottom`,strategy:n=`absolute`,middleware:r=[],platform:i,elements:{reference:a,floating:o}={},transform:s=!0,whileElementsMounted:c,open:l}=e,[u,d]=J.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[f,p]=J.useState(r);rT(f,r)||p(r);let[m,h]=J.useState(null),[g,_]=J.useState(null),v=J.useCallback(e=>{e!==S.current&&(S.current=e,h(e))},[]),y=J.useCallback(e=>{e!==C.current&&(C.current=e,_(e))},[]),b=a||m,x=o||g,S=J.useRef(null),C=J.useRef(null),w=J.useRef(u),E=c!=null,D=oT(c),O=oT(i),k=oT(l),A=J.useCallback(()=>{if(!S.current||!C.current)return;let e={placement:t,strategy:n,middleware:f};O.current&&(e.platform=O.current),tT(S.current,C.current,e).then(e=>{let t={...e,isPositioned:k.current!==!1};j.current&&!rT(w.current,t)&&(w.current=t,ix.flushSync(()=>{d(t)}))})},[f,t,n,O,k]);nT(()=>{l===!1&&w.current.isPositioned&&(w.current.isPositioned=!1,d(e=>({...e,isPositioned:!1})))},[l]);let j=J.useRef(!1);nT(()=>(j.current=!0,()=>{j.current=!1}),[]),nT(()=>{if(b&&(S.current=b),x&&(C.current=x),b&&x){if(D.current)return D.current(b,x,A);A()}},[b,x,A,D,E]);let M=J.useMemo(()=>({reference:S,floating:C,setReference:v,setFloating:y}),[v,y]),N=J.useMemo(()=>({reference:b,floating:x}),[b,x]),P=J.useMemo(()=>{let e={position:n,left:0,top:0};if(!N.floating)return e;let t=aT(N.floating,u.x),r=aT(N.floating,u.y);return s?{...e,transform:`translate(`+t+`px, `+r+`px)`,...iT(N.floating)>=1.5&&{willChange:`transform`}}:{position:n,left:t,top:r}},[n,s,N.floating,u.x,u.y]);return J.useMemo(()=>({...u,update:A,refs:M,elements:N,floatingStyles:P}),[u,A,M,N,P])}var cT=(e,t)=>{let n=Yw(e);return{name:n.name,fn:n.fn,options:[e,t]}},lT=(e,t)=>{let n=Xw(e);return{name:n.name,fn:n.fn,options:[e,t]}},uT=(e,t)=>({fn:eT(e).fn,options:[e,t]}),dT=(e,t)=>{let n=Zw(e);return{name:n.name,fn:n.fn,options:[e,t]}},fT=(e,t)=>{let n=Qw(e);return{name:n.name,fn:n.fn,options:[e,t]}},pT=(e,t)=>{let n=$w(e);return{name:n.name,fn:n.fn,options:[e,t]}},mT=Symbol(`NOT_FOUND`);function hT(e,t=`expected a function, instead received ${typeof e}`){if(typeof e!=`function`)throw TypeError(t)}function gT(e,t=`expected an object, instead received ${typeof e}`){if(typeof e!=`object`)throw TypeError(t)}function _T(e,t=`expected all items to be functions, instead received the following types: `){if(!e.every(e=>typeof e==`function`)){let n=e.map(e=>typeof e==`function`?`function ${e.name||`unnamed`}()`:typeof e).join(`, `);throw TypeError(`${t}[${n}]`)}}var vT=e=>Array.isArray(e)?e:[e];function yT(e){let t=Array.isArray(e[0])?e[0]:e;return _T(t,`createSelector expects all input-selectors to be functions, but received the following types: `),t}function bT(e,t){let n=[],{length:r}=e;for(let i=0;i<r;i++)n.push(e[i].apply(null,t));return n}function xT(e){let t;return{get(n){return t&&e(t.key,n)?t.value:mT},put(e,n){t={key:e,value:n}},getEntries(){return t?[t]:[]},clear(){t=void 0}}}function ST(e,t){let n=[];function r(e){let r=n.findIndex(n=>t(e,n.key));if(r>-1){let e=n[r];return r>0&&(n.splice(r,1),n.unshift(e)),e.value}return mT}function i(t,i){r(t)===mT&&(n.unshift({key:t,value:i}),n.length>e&&n.pop())}function a(){return n}function o(){n=[]}return{get:r,put:i,getEntries:a,clear:o}}var CT=(e,t)=>e===t;function wT(e){return function(t,n){if(t===null||n===null||t.length!==n.length)return!1;let{length:r}=t;for(let i=0;i<r;i++)if(!e(t[i],n[i]))return!1;return!0}}function TT(e,t){let{equalityCheck:n=CT,maxSize:r=1,resultEqualityCheck:i}=typeof t==`object`?t:{equalityCheck:t},a=wT(n),o=0,s=r<=1?xT(a):ST(r,a);function c(){let t=s.get(arguments);if(t===mT){if(t=e.apply(null,arguments),o++,i){let e=s.getEntries().find(e=>i(e.value,t));e&&(t=e.value,o!==0&&o--)}s.put(arguments,t)}return t}return c.clearCache=()=>{s.clear(),c.resetResultsCount()},c.resultsCount=()=>o,c.resetResultsCount=()=>{o=0},c}var ET=class{constructor(e){this.value=e}deref(){return this.value}},DT=typeof WeakRef<`u`?WeakRef:ET,OT=0,kT=1;function AT(){return{s:OT,v:void 0,o:null,p:null}}function jT(e,t={}){let n=AT(),{resultEqualityCheck:r}=t,i,a=0;function o(){let t=n,{length:o}=arguments;for(let e=0,n=o;e<n;e++){let n=arguments[e];if(typeof n==`function`||typeof n==`object`&&n){let e=t.o;e===null&&(t.o=e=new WeakMap);let r=e.get(n);r===void 0?(t=AT(),e.set(n,t)):t=r}else{let e=t.p;e===null&&(t.p=e=new Map);let r=e.get(n);r===void 0?(t=AT(),e.set(n,t)):t=r}}let s=t,c;if(t.s===kT)c=t.v;else if(c=e.apply(null,arguments),a++,r){let e=i?.deref?.()??i;e!=null&&r(e,c)&&(c=e,a!==0&&a--),i=typeof c==`object`&&c||typeof c==`function`?new DT(c):c}
12return s.s=kT,s.v=c,c}return o.clearCache=()=>{n=AT(),o.resetResultsCount()},o.resultsCount=()=>a,o.resetResultsCount=()=>{a=0},o}function MT(e,...t){let n=typeof e==`function`?{memoize:e,memoizeOptions:t}:e,r=(...e)=>{let t=0,r=0,i,a={},o=e.pop();typeof o==`object`&&(a=o,o=e.pop()),hT(o,`createSelector expects an output function after the inputs, but received: [${typeof o}]`);let{memoize:s,memoizeOptions:c=[],argsMemoize:l=jT,argsMemoizeOptions:u=[],devModeChecks:d={}}={...n,...a},f=vT(c),p=vT(u),m=yT(e),h=s(function(){return t++,o.apply(null,arguments)},...f),g=l(function(){r++;let e=bT(m,arguments);return i=h.apply(null,e),i},...p);return Object.assign(g,{resultFunc:o,memoizedResultFunc:h,dependencies:m,dependencyRecomputations:()=>r,resetDependencyRecomputations:()=>{r=0},lastResult:()=>i,recomputations:()=>t,resetRecomputations:()=>{t=0},memoize:s,argsMemoize:l})};return Object.assign(r,{withTypes:()=>r}),r}var NT=MT(jT),PT=Object.assign((e,t=NT)=>{gT(e,`createStructuredSelector expects first argument to be an object where each property is a selector, instead received a ${typeof e}`);let n=Object.keys(e);return t(n.map(t=>e[t]),(...e)=>e.reduce((e,t,r)=>(e[n[r]]=t,e),{}))},{withTypes:()=>PT});MT({memoize:TT,memoizeOptions:{maxSize:1,equalityCheck:Object.is}});var Z=(e,t,n,r,i,a,...o)=>{if(o.length>0)throw Error(su(1));let s;if(e&&t&&n&&r&&i&&a)s=(o,s,c,l)=>a(e(o,s,c,l),t(o,s,c,l),n(o,s,c,l),r(o,s,c,l),i(o,s,c,l),s,c,l);
12else if(e&&t&&n&&r&&i)s=(a,o,s,c)=>i(e(a,o,s,c),t(a,o,s,c),n(a,o,s,c),r(a,o,s,c),o,s,c);else if(e&&t&&n&&r)s=(i,a,o,s)=>r(e(i,a,o,s),t(i,a,o,s),n(i,a,o,s),a,o,s);else if(e&&t&&n)s=(r,i,a,o)=>n(e(r,i,a,o),t(r,i,a,o),i,a,o);else if(e&&t)s=(n,r,i,a)=>t(e(n,r,i,a),r,i,a);else if(e)s=e;else throw Error(`Missing arguments`);return s},FT=[],IT=void 0;function LT(){return IT}function RT(e){FT.push(e)}function zT(e){let t=(t,n)=>{let r=Rr(VT).current,i;try{IT=r;for(let e of FT)e.before(r);i=e(t,n);for(let e of FT)e.after(r);r.didInitialize=!0}finally{IT=void 0}return i};return t.displayName=e.displayName||e.name,t}function BT(e){return J.forwardRef(zT(e))}function VT(){return{didInitialize:!1}}var HT=ne(),UT=F(),WT=nn(19)?qT:JT;function GT(e,t,n,r,i){return WT(e,t,n,r,i)}function KT(e,t,n,r,i){let a=J.useCallback(()=>t(e.getSnapshot(),n,r,i),[e,t,n,r,i]);return(0,HT.useSyncExternalStore)(e.subscribe,a,a)}RT({before(e){e.syncIndex=0,e.didInitialize||(e.syncTick=1,e.syncHooks=[],e.didChangeStore=!0,e.getSnapshot=()=>{let t=!1;for(let n=0;n<e.syncHooks.length;n+=1){let r=e.syncHooks[n],i=r.selector(r.store.state,r.a1,r.a2,r.a3);(r.didChange||!Object.is(r.value,i))&&(t=!0,r.value=i,r.didChange=!1)}return t&&(e.syncTick+=1),e.syncTick})},after(e){e.syncHooks.length>0&&(e.didChangeStore&&(e.didChangeStore=!1,e.subscribe=t=>{let n=new Set;for(let t of e.syncHooks)n.add(t.store);let r=[];for(let e of n)r.push(e.subscribe(t));return()=>{for(let e of r)e()}}),(0,HT.useSyncExternalStore)(e.subscribe,e.getSnapshot,e.getSnapshot))}});function qT(e,t,n,r,i){let a=LT();if(!a)return KT(e,t,n,r,i);let o=a.syncIndex;a.syncIndex+=1;let s;return a.didInitialize?(s=a.syncHooks[o],(s.store!==e||s.selector!==t||!Object.is(s.a1,n)||!Object.is(s.a2,r)||!Object.is(s.a3,i))&&(s.store!==e&&(a.didChangeStore=!0),s.store=e,s.selector=t,s.a1=n,s.a2=r,s.a3=i,s.didChange=!0)):(s={store:e,selector:t,a1:n,a2:r,a3:i,value:t(e.getSnapshot(),n,r,i),didChange:!1},a.syncHooks.push(s)),s.value}function JT(e,t,n,r,i){return(0,UT.useSyncExternalStoreWithSelector)(e.subscribe,e.getSnapshot,e.getSnapshot,e=>t(e,n,r,i))}var YT=class{constructor(e){this.state=e,this.listeners=new Set,this.updateTick=0}subscribe=e=>(this.listeners.add(e),()=>{this.listeners.delete(e)});getSnapshot=()=>this.state;setState(e){if(this.state===e)return;this.state=e,this.updateTick+=1;let t=this.updateTick;for(let n of this.listeners){if(t!==this.updateTick)return;n(e)}}update(e){for(let t in e)if(!Object.is(this.state[t],e[t])){this.setState({...this.state,...e});return}}set(e,t){Object.is(this.state[e],t)||this.setState({...this.state,[e]:t})}notifyAll(){let e={...this.state};this.setState(e)}use(e,t,n,r){return GT(this,e,t,n,r)}},XT=class extends YT{constructor(e,t={},n){super(e),this.context=t,this.selectors=n}useSyncedValue(e,t){J.useDebugValue(e),G(()=>{this.state[e]!==t&&this.set(e,t)},[e,t])}useSyncedValueWithCleanup(e,t){let n=this;G(()=>(n.state[e]!==t&&n.set(e,t),()=>{n.set(e,void 0)}),[n,e,t])}useSyncedValues(e){let t=this;G(()=>{t.update(e)},[t,...Object.values(e)])}useControlledProp(e,t){J.useDebugValue(e);let n=t!==void 0;G(()=>{n&&!Object.is(this.state[e],t)&&super.setState({...this.state,[e]:t})},[e,t,n])}select(e,t,n,r){let i=this.selectors[e];return i(this.state,t,n,r)}useState(e,t,n,r){return J.useDebugValue(e),GT(this,this.selectors[e],t,n,r)}useContextCallback(e,t){J.useDebugValue(e);let n=U(t??yr);this.context[e]=n}useStateSetter(e){let t=J.useRef(void 0);return t.current===void 0&&(t.current=t=>{this.set(e,t)}),t.current}observe(e,t){let n;n=typeof e==`function`?e:this.selectors[e];let r=n(this.state);return t(r,r,this),this.subscribe(e=>{let i=n(e);if(!Object.is(r,i)){let e=r;r=i,t(i,e,this)}})}},ZT={open:Z(e=>e.open),domReferenceElement:Z(e=>e.domReferenceElement),referenceElement:Z(e=>e.positionReference??e.referenceElement),floatingElement:Z(e=>e.floatingElement),floatingId:Z(e=>e.floatingId)},QT=class extends XT{constructor(e){let{nested:t,noEmit:n,onOpenChange:r,triggerElements:i,...a}=e;super({...a,positionReference:a.referenceElement,domReferenceElement:a.referenceElement},{onOpenChange:r,dataRef:{current:{}},events:FC(),nested:t,noEmit:n,triggerElements:i},ZT)}setOpen=(e,t)=>{if((!e||!this.state.open||Nx(t.event))&&(this.context.dataRef.current.openEvent=e?t.event:void 0),!this.context.noEmit){let n={open:e,reason:t.reason,nativeEvent:t.event,nested:this.context.nested,triggerElement:t.trigger};this.context.events.emit(`openchange`,n)}this.context.onOpenChange?.(e,t)}};function $T(e,t){let n=J.useRef(null),r=J.useRef(null);return J.useCallback(i=>{if(e!==void 0){if(n.current!==null){let e=n.current,i=r.current,a=t.context.triggerElements.getById(e);i&&a===i&&t.context.triggerElements.delete(e),n.current=null,r.current=null}i!==null&&(n.current=e,r.current=i,t.context.triggerElements.add(e,i))}},[t,e])}function eE(e,t,n,r){let i=n.useState(`isMountedByTrigger`,e),a=$T(e,n),o=U(t=>{if(a(t),!t||!n.select(`open`))return;let i=n.select(`activeTriggerId`);if(i===e){n.update({activeTriggerElement:t,...r});return}i??n.update({activeTriggerId:e,activeTriggerElement:t,...r})});return G(()=>{i&&n.update({activeTriggerElement:t.current,...r})},[i,n,t,...Object.values(r)]),{registerTrigger:o,isMountedByThisTrigger:i}}function tE(e){let t=e.useState(`open`);G(()=>{if(t&&!e.select(`activeTriggerId`)&&e.context.triggerElements.size===1){let t=e.context.triggerElements.entries().next();if(!t.done){let[n,r]=t.value;e.update({activeTriggerId:n,activeTriggerElement:r})}}},[t,e])}function nE(e,t,n){let{mounted:r,setMounted:i,transitionStatus:a}=nx(e);t.useSyncedValues({mounted:r,transitionStatus:a});let o=U(()=>{i(!1),t.update({activeTriggerId:null,activeTriggerElement:null,mounted:!1}),n?.(),t.context.onOpenChangeComplete?.(!1)});return ox({enabled:!t.useState(`preventUnmountingOnClose`),open:e,ref:t.context.popupRef,onComplete(){e||o()}}),{forceUnmount:o,transitionStatus:a}}var rE=class{constructor(){this.elementsSet=new Set,this.idMap=new Map}add(e,t){let n=this.idMap.get(e);n!==t&&(n!==void 0&&this.elementsSet.delete(n),this.elementsSet.add(t),this.idMap.set(e,t))}delete(e){let t=this.idMap.get(e);t&&(this.elementsSet.delete(t),this.idMap.delete(e))}hasElement(e){return this.elementsSet.has(e)}hasMatchingElement(e){for(let t of this.elementsSet)if(e(t))return!0;return!1}getById(e){return this.idMap.get(e)}entries(){return this.idMap.entries()}elements(){return this.elementsSet.values()}get size(){return this.idMap.size}};function iE(){return new QT({open:!1,floatingElement:null,referenceElement:null,triggerElements:new rE,floatingId:``,nested:!1,noEmit:!1,onOpenChange:void 0})}function aE(){return{open:!1,openProp:void 0,mounted:!1,transitionStatus:`idle`,floatingRootContext:iE(),preventUnmountingOnClose:!1,payload:void 0,activeTriggerId:null,activeTriggerElement:null,triggerIdProp:void 0,popupElement:null,positionerElement:null,activeTriggerProps:$n,inactiveTriggerProps:$n,popupProps:$n}}var oE=Z(e=>e.triggerIdProp??e.activeTriggerId),sE={open:Z(e=>e.openProp??e.open),mounted:Z(e=>e.mounted),transitionStatus:Z(e=>e.transitionStatus),floatingRootContext:Z(e=>e.floatingRootContext),preventUnmountingOnClose:Z(e=>e.preventUnmountingOnClose),payload:Z(e=>e.payload),activeTriggerId:oE,activeTriggerElement:Z(e=>e.mounted?e.activeTriggerElement:null),isTriggerActive:Z((e,t)=>t!==void 0&&oE(e)===t),isOpenedByTrigger:Z((e,t)=>t!==void 0&&oE(e)===t&&e.open),isMountedByTrigger:Z((e,t)=>t!==void 0&&oE(e)===t&&e.mounted),triggerProps:Z((e,t)=>t?e.activeTriggerProps:e.inactiveTriggerProps),popupProps:Z(e=>e.popupProps),popupElement:Z(e=>e.popupElement),positionerElement:Z(e=>e.positionerElement)};function cE(e){let{open:t=!1,onOpenChange:n,elements:r={}}=e,i=qb(),a=zC()!=null,o=Rr(()=>new QT({open:t,onOpenChange:n,referenceElement:r.reference??null,floatingElement:r.floating??null,triggerElements:new rE,floatingId:i,nested:a,noEmit:!1})).current;return G(()=>{let e={open:t,floatingId:i};r.reference!==void 0&&(e.referenceElement=r.reference,e.domReferenceElement=Mo(r.reference)?r.reference:null),r.floating!==void 0&&(e.floatingElement=r.floating),o.update(e)},[t,i,r.reference,r.floating,o]),o.context.onOpenChange=n,o.context.nested=a,o.context.noEmit=!1,o}function lE(e={}){let{nodeId:t,externalTree:n}=e,r=cE(e),i=e.rootContext||r,a={reference:i.useState(`referenceElement`),floating:i.useState(`floatingElement`),domReference:i.useState(`domReferenceElement`)},[o,s]=J.useState(null),c=J.useRef(null),l=BC(n);G(()=>{a.domReference&&(c.current=a.domReference)},[a.domReference]);let u=sT({...e,elements:{...a,...o&&{reference:o}}}),d=J.useCallback(e=>{let t=Mo(e)?{getBoundingClientRect:()=>e.getBoundingClientRect(),getClientRects:()=>e.getClientRects(),contextElement:e}:e;s(t),u.refs.setReference(t)},[u.refs]),[f,p]=J.useState(null),[m,h]=J.useState(null);
12i.useSyncedValue(`referenceElement`,f),i.useSyncedValue(`domReferenceElement`,Mo(f)?f:null),i.useSyncedValue(`floatingElement`,m);let g=J.useCallback(e=>{(Mo(e)||e===null)&&(c.current=e,p(e)),(Mo(u.refs.reference.current)||u.refs.reference.current===null||e!==null&&!Mo(e))&&u.refs.setReference(e)},[u.refs,p]),_=J.useCallback(e=>{h(e),u.refs.setFloating(e)},[u.refs]),v=J.useMemo(()=>({...u.refs,setReference:g,setFloating:_,setPositionReference:d,domReference:c}),[u.refs,g,_,d]),y=J.useMemo(()=>({...u.elements,domReference:a.domReference}),[u.elements,a.domReference]),b=i.useState(`open`),x=i.useState(`floatingId`),S=J.useMemo(()=>({...u,dataRef:i.context.dataRef,open:b,onOpenChange:i.setOpen,events:i.context.events,floatingId:x,refs:v,elements:y,nodeId:t,rootStore:i}),[u,v,y,t,i,b,x]);return G(()=>{i.context.dataRef.current.floatingContext=S;let e=l?.nodesRef.current.find(e=>e.id===t);e&&(e.context=S)}),J.useMemo(()=>({...u,context:S,refs:v,elements:y,rootStore:i}),[u,v,y,S,i])}function uE(e){let{popupStore:t,noEmit:n=!1,treatPopupAsFloatingElement:r=!1,onOpenChange:i}=e,a=qb(),o=zC()!=null,s=t.useState(`open`),c=t.useState(`activeTriggerElement`),l=t.useState(r?`popupElement`:`positionerElement`),u=t.context.triggerElements,d=Rr(()=>new QT({open:s,referenceElement:c,floatingElement:l,triggerElements:u,onOpenChange:i,floatingId:a,nested:o,noEmit:n})).current;return G(()=>{let e={open:s,floatingId:a,referenceElement:c,floatingElement:l};Mo(c)&&(e.domReferenceElement=c),d.state.positionReference===d.state.referenceElement&&(e.positionReference=c),d.update(e)},[s,a,c,l,d]),d.context.onOpenChange=i,d.context.nested=o,d.context.noEmit=n,d}var dE=Mb&&Ab;function fE(e,t={}){let n=`rootStore`in e?e.rootStore:e,{events:r,dataRef:i}=n.context,{enabled:a=!0,delay:o}=t,s=J.useRef(!1),c=J.useRef(null),l=ux(),u=J.useRef(!0);J.useEffect(()=>{let e=n.select(`domReferenceElement`);if(!a)return;let t=Fs(e);function r(){let e=n.select(`domReferenceElement`);!n.select(`open`)&&ba(e)&&e===_x(YS(e))&&(s.current=!0)}function i(){u.current=!0}function o(){u.current=!1}return t.addEventListener(`blur`,r),dE&&(t.addEventListener(`keydown`,i,!0),t.addEventListener(`pointerdown`,o,!0)),()=>{t.removeEventListener(`blur`,r),dE&&(t.removeEventListener(`keydown`,i,!0),t.removeEventListener(`pointerdown`,o,!0))}},[n,a]),J.useEffect(()=>{if(!a)return;function e(e){if(e.reason===`trigger-press`||e.reason===`escape-key`){let e=n.select(`domReferenceElement`);Mo(e)&&(c.current=e,s.current=!0)}}return r.on(`openchange`,e),()=>{r.off(`openchange`,e)}},[r,a,n]);let d=J.useMemo(()=>({onMouseLeave(){s.current=!1,c.current=null},onFocus(e){let t=e.currentTarget;if(s.current){if(c.current===t)return;s.current=!1,c.current=null}let r=yx(e.nativeEvent);if(Mo(r)){if(dE&&!e.relatedTarget){if(!u.current&&!Sx(r))return}else if(!wx(r))return}let i=vx(e.relatedTarget,n.context.triggerElements),{nativeEvent:a,currentTarget:d}=e,f=typeof o==`function`?o():o;if(n.select(`open`)&&i||f===0||f===void 0){n.setOpen(!0,Yb(mb,a,d));return}l.start(f,()=>{s.current||n.setOpen(!0,Yb(mb,a,d))})},onBlur(e){s.current=!1,c.current=null;let t=e.relatedTarget,r=e.nativeEvent,a=Mo(t)&&t.hasAttribute(hC(`focus-guard`))&&t.getAttribute(`data-type`)===`outside`;l.start(0,()=>{let e=n.select(`domReferenceElement`),o=_x(e?e.ownerDocument:document);!t&&o===e||X(i.current.floatingContext?.refs.floating.current,o)||X(e,o)||a||vx(t??o,n.c
12ontext.triggerElements)||n.setOpen(!1,Yb(mb,r))})}}),[i,n,l,o]);return J.useMemo(()=>a?{reference:d,trigger:d}:{},[a,d])}var pE=`button,a,[role="button"],select,[tabindex]:not([tabindex="-1"]),${fx}`;function mE(e){return e?!!e.closest(pE):!1}var hE=class e{constructor(){this.pointerType=void 0,this.interactedInside=!1,this.handler=void 0,this.blockMouseMove=!0,this.performedPointerEventsMutation=!1,this.pointerEventsScopeElement=null,this.pointerEventsReferenceElement=null,this.pointerEventsFloatingElement=null,this.restTimeoutPending=!1,this.openChangeTimeout=new lx,this.restTimeout=new lx,this.handleCloseOptions=void 0}static create(){return new e}dispose=()=>{this.openChangeTimeout.clear(),this.restTimeout.clear()};disposeEffect=()=>this.dispose};function gE(e){e.performedPointerEventsMutation&&(e.pointerEventsScopeElement?.style.removeProperty(`pointer-events`),e.pointerEventsReferenceElement?.style.removeProperty(`pointer-events`),e.pointerEventsFloatingElement?.style.removeProperty(`pointer-events`),e.performedPointerEventsMutation=!1,e.pointerEventsScopeElement=null,e.pointerEventsReferenceElement=null,e.pointerEventsFloatingElement=null)}function _E(e,t){let{scopeElement:n,referenceElement:r,floatingElement:i}=t;gE(e),e.performedPointerEventsMutation=!0,e.pointerEventsScopeElement=n,e.pointerEventsReferenceElement=r,e.pointerEventsFloatingElement=i,n.style.pointerEvents=`none`,r.style.pointerEvents=`auto`,i.style.pointerEvents=`auto`}function vE(e){let t=Rr(hE.create).current,n=e.context.dataRef.current;return n.hoverInteractionState||=t,Zb(n.hoverInteractionState.disposeEffect),n.hoverInteractionState}function yE(e,t={}){let n=`rootStore`in e?e.rootStore:e,r=n.useState(`open`),i=n.useState(`floatingElement`),a=n.useState(`domReferenceElement`),{dataRef:o}=n.context,{enabled:s=!0,closeDelay:c=0}=t,l=vE(n),u=BC(),d=zC(),f=U(()=>lC(o.current.openEvent?.type,l.interactedInside)),p=U(()=>{let e=o.current.openEvent?.type;return e?.includes(`mouse`)&&e!==`mousedown`}),m=U(e=>vx(e,n.context.triggerElements)),h=J.useCallback(e=>{let t=sC(c,`close`,l.pointerType),r=()=>{n.setOpen(!1,Yb(pb,e)),u?.events.emit(`floating.closed`,e)};t?l.openChangeTimeout.start(t,r):(l.openChangeTimeout.clear(),r())},[c,n,l,u]),g=U(()=>{gE(l)}),_=U(e=>{let t=yx(e);if(!mE(t)){l.interactedInside=!1;return}l.interactedInside=t?.closest(`[aria-haspopup]`)!=null});G(()=>{r||(l.pointerType=void 0,l.restTimeoutPending=!1,l.interactedInside=!1,g())},[r,l,g]),J.useEffect(()=>g,[g]),G(()=>{if(s&&r&&l.handleCloseOptions?.blockPointerEvents&&p()&&Mo(a)&&i){let e=a,t=i,n=YS(i),r=u?.nodesRef.current.find(e=>e.id===d)?.context?.elements.floating;return r&&(r.style.pointerEvents=``),_E(l,{scopeElement:l.handleCloseOptions?.getScope?.()??l.pointerEventsScopeElement??r??e.closest(`[data-rootownerid]`)??n.body,referenceElement:e,floatingElement:t}),()=>{g()}}},[s,r,a,i,l,p,u,d,g]);let v=ux();J.useEffect(()=>{if(!s)return;function e(){l.openChangeTimeout.clear(),v.clear(),u?.events.off(`floating.closed`,r),g()}function t(e){if(u&&d&&Ex(u.nodesRef.current,d).length>0){u.events.on(`floating.closed`,r);return}if(!m(e.relatedTarget)){if(l.handler){l.handler(e);return}g(),f()||h(e)}}function r(e){!u||!d||Ex(u.nodesRef.current,d).length>0||v.start(0,()=>{u.events.off(`floating.closed`,r),n.setOpen(!1,Yb(pb,e)),u.events.emit(`floating.closed`,e)})}let a=i;return a&&(a.addEventListener(`mouseenter`,e),a.addEventListener(`mouseleave`,t),a.addEventListener(`pointerdown`,_,!0)),()=>{a&&(a.removeEventListener(`mouseenter`,e),a.removeEventListener(`mouseleave`,t),a.removeEventListener(`pointerdown`,_,!0)),u?.events.off(`floating.closed`,r)}},[s,i,n,o,f,m,h,g,_,l,u,d,v])}var bE={current:null};function xE(e,t={}){let n=`rootStore`in e?e.rootStore:e,{dataRef:r,events:i}=n.context,{enabled:a=!0,delay:o=0,handleClose:s=null,mouseOnly:c=!1,restMs:l=0,move:u=!0,triggerElementRef:d=bE,externalTree:f,isActiveTrigger:p=!0,getHandleCloseContext:m}=t,h=BC(f),g=vE(n),_=uC(s),v=uC(o),y=uC(l),b=uC(a);p&&(g.handleCloseOptions=_.current?.__options);let x=U(()=>lC(r.current.openEvent?.type,g.interactedInside)),S=U(e=>vx(e,n.context.triggerElements)),C=U((e,t,r)=>{let i=n.context.triggerElements;if(i.hasElement(t))return!e||!X(e,t);if(!Mo(r))return!1;let a=r;return i.hasMatchingElement(e=>X(e,a))&&(!e||!X(e,a))}),w=J.useCallback((e,t=!0)=>{let r=sC(v.current,`close`,g.pointerType);r?g.openChangeTimeout.start(r,()=>{n.setOpen(!1,Yb(pb,e)),h?.events.emit(`floating.closed`,e)}):t&&(g.openChangeTimeout.clear(),n.setOpen(!1,Yb(pb,e)),h?.events.emit(`floating.closed`,e))},[v,n,g,h]),E=U(()=>{g.handler&&=(YS(n.select(`domReferenceElement`)).removeEventListener(`mousemove`,g.handler),void 0)});J.useEffect(()=>E,[E]);let D=U(()=>{gE(g)});return J.useEffect(()=>{if(!a)return;function e(e){e.open||(E(),g.openChangeTimeout.clear(),g.restTimeout.clear(),g.blockMouseMove=!0,g.restTimeoutPending=!1)}return i.on(`openchange`,e),()=>{i.off(`openchange`,e)}},[a,i,g,E]),J.useEffect(()=>{if(!a)return;let e=d.current??(p?n.select(`domReferenceElement`):null);if(!Mo(e))return;function t(e){if(g.openChangeTimeout.clear(),g.blockMouseMove=!1,c&&!Mx(g.pointerType)||cC(y.current)>0&&!sC(v.current,`open`))return;let t=sC(v.current,`open`,g.pointerType),r=e.currentTarget??null,i=n.select(`domReferenceElement`),a=r==null?!1:C(i,r,e.target),o=n.select(`open`),s=!o||a;a&&o?n.setOpen(!0,Yb(pb,e,r)):t?g.openChangeTimeout.start(t,()=>{s&&n.setOpen(!0,Yb(pb,e,r))}):s&&n.setOpen(!0,Yb(pb,e,r))}function i(e){if(x()){D();return}E();let t=YS(n.select(`domReferenceElement`));g.restTimeout.clear(),g.restTimeoutPending=!1;let i=r.current.floatingContext??m?.();if(!S(e.relatedTarget)){if(_.current&&i){n.select(`open`)||g.openChangeTimeout.clear();let r=d.current;g.handler=_.current({...i,tree:h,x:e.clientX,y:e.clientY,onClose(){D(),E(),b.current&&!x()&&r===n.select(`domReferenceElement`)&&w(e,!0)}}),t.addEventListener(`mousemove`,g.handler),g.handler(e);return}(g.pointerType!==`touch`||!X(n.select(`floatingElement`),e.relatedTarget))&&w(e)}}return u&&e.addEventListener(`mousemove`,t,{once:!0}),e.addEventListener(`mouseenter`,t),e.addEventListener(`mouseleave`,i),()=>{u&&e.removeEventListener(`mousemove`,t),e.removeEventListener(`mouseenter`,t),e.removeEventListener(`mouseleave`,i)}},[E,D,r,v,w,n,a,_,g,p,C,x,S,c,u,y,d,h,b,m]),J.useMemo(()=>
12{if(!a)return;function e(e){g.pointerType=e.pointerType}return{onPointerDown:e,onPointerEnter:e,onMouseMove(e){let{nativeEvent:t}=e,r=e.currentTarget,i=n.select(`domReferenceElement`),a=n.select(`open`),o=C(i,r,e.target);if(c&&!Mx(g.pointerType))return;let s=cC(y.current);if(a&&!o||s===0||!o&&g.restTimeoutPending&&e.movementX**2+e.movementY**2<2)return;g.restTimeout.clear();function l(){if(g.restTimeoutPending=!1,x())return;let e=n.select(`open`);!g.blockMouseMove&&(!e||o)&&n.setOpen(!0,Yb(pb,t,r))}g.pointerType===`touch`?ix.flushSync(()=>{l()}):o&&a?l():(g.restTimeoutPending=!0,g.restTimeout.start(s,l))}}},[a,g,x,C,c,n,y])}function SE(e=[]){let t=e.map(e=>e?.reference),n=e.map(e=>e?.floating),r=e.map(e=>e?.item),i=e.map(e=>e?.trigger),a=J.useCallback(t=>CE(t,e,`reference`),t),o=J.useCallback(t=>CE(t,e,`floating`),n),s=J.useCallback(t=>CE(t,e,`item`),r),c=J.useCallback(t=>CE(t,e,`trigger`),i);return J.useMemo(()=>({getReferenceProps:a,getFloatingProps:o,getItemProps:s,getTriggerProps:c}),[a,o,s,c])}function CE(e,t,n){let r=new Map,i=n===`item`,a={};n===`floating`&&(a.tabIndex=-1,a[dx]=``);for(let t in e)i&&e&&(t===`active`||t===`selected`)||(a[t]=e[t]);for(let o=0;o<t.length;o+=1){let s,c=t[o]?.[n];s=typeof c==`function`?e?c(e):null:c,s&&wE(a,s,i,r)}return wE(a,e,i,r),a}function wE(e,t,n,r){for(let i in t){let a=t[i];n&&(i===`active`||i===`selected`)||(i.startsWith(`on`)?(r.has(i)||r.set(i,[]),typeof a==`function`&&(r.get(i)?.push(a),e[i]=(...e)=>r.get(i)?.map(t=>t(...e)).find(e=>e!==void 0))):e[i]=a)}}var TE=`Escape`;function EE(e,t,n){switch(e){case`vertical`:return t;case`horizontal`:return n;default:return t||n}}function DE(e,t){return EE(t,e===`ArrowUp`||e===`ArrowDown`,e===`ArrowLeft`||e===`ArrowRight`)}function OE(e,t,n){return EE(t,e===`ArrowDown`,n?e===`ArrowLeft`:e===`ArrowRight`)||e===`Enter`||e===` `||e===``}function kE(e,t,n){return EE(t,n?e===px:e===mx,e===gx)}function AE(e,t,n,r){return t===`both`||t===`horizontal`&&r&&r>1?e===TE:EE(t,n?e===mx:e===px,e===hx)}function jE(e,t){let n=`rootStore`in e?e.rootStore:e,r=n.useState(`open`),i=n.useState(`floatingElement`),a=n.useState(`domReferenceElement`),o=n.context.dataRef,{listRef:s,activeIndex:c,onNavigate:l=()=>{},enabled:u=!0,selectedIndex:d=null,allowEscape:f=!1,loopFocus:p=!1,nested:m=!1,rtl:h=!1,virtual:g=!1,focusItemOnOpen:_=`auto`,focusItemOnHover:v=!0,openOnArrowKeyDown:y=!0,disabledIndices:b=void 0,orientation:x=`vertical`,parentOrientation:S,cols:C=1,id:w,resetOnPointerLeave:E=!0,externalTree:D}=t,O=uC(Tx(i)),k=zC(),A=BC(D);G(()=>{o.current.orientation=x},[o,x]);let j=Cx(a),M=J.useRef(_),N=J.useRef(d??-1),P=J.useRef(null),F=J.useRef(!0),I=U(e=>{l(N.current===-1?null:N.current,e)}),ee=J.useRef(I),te=J.useRef(!!i),ne=J.useRef(r),re=J.useRef(!1),L=J.useRef(!1),R=uC(b),ie=uC(r),ae=uC(d),z=uC(E),B=U(()=>{function e(e){g?A?.events.emit(`virtualfocus`,e):_C(e,{sync:re.current,preventScroll:!0})}let t=s.current[N.current],n=L.current;t&&e(t),(re.current?e=>e():requestAnimationFrame)(()=>{let r=s.current[N.current]||t;r&&(t||e(r),se&&(n||!F.current)&&r.scrollIntoView?.({block:`nearest`,inline:`nearest`}))})});G(()=>{u&&(r&&i?(N.current=d??-1,M.current&&d!=null&&(L.current=!0,I())):te.current&&(N.current=-1,ee.current()))},[u,r,i,d,I]),G(()=>{if(u){if(!r){re.current=!1;return}if(i)if(c==null){if(re.current=!1,ae.current!=null)return;if(te.current&&(N.current=-1,B()),(!ne.current||!te.current)&&M.current&&(P.current!=null||M.current===!0&&P.current==null)){let e=0,t=()=>{s.current[0]==null?(e<2&&(e?requestAnimationFrame:queueMicrotask)(t),e+=1):(N.current=P.current==null||OE(P.current,x,h)||m?uS(s):dS(s),P.current=null,I())};t()}}else lS(s,c)||(N.current=c,B(),L.current=!1)}},[u,r,i,c,ae,m,s,x,h,I,B,R]),G(()=>{if(!u||i||!A||g||!te.current)return;let e=A.nodesRef.current,t=e.find(e=>e.id===k)?.context?.elements.floating,n=_x(YS(i)),r=e.some(e=>e.context&&X(e.context.elements.floating,n));t&&!r&&F.current&&t.focus({preventScroll:!0})},[u,i,A,k,g]),G(()=>{ee.current=I,ne.current=r,te.current=!!i}),G(()=>{r||(P.current=null,M.current=_)},[r,_]);let oe=c!=null,se=J.useMemo(()=>{function e(e){if(!ie.current)return;let t=s.current.indexOf(e.currentTarget);t!==-1&&N.current!==t&&(N.current=t,I(e))}return{onFocus(t){re.current=!0,e(t)},onClick:({currentTarget:e})=>e.focus({preventScroll:!0}),onMouseMove(t){re.current=!0,L.current=!1,v&&e(t)},onPointerLeave(e){if(!ie.current||!F.current||e.pointerType===`touch`)return;re.current=!0;let t=e.relatedTarget;if(!(!v||s.current.includes(t))&&z.current&&(_C(null,{sync:!0}),N.current=-1,I(e),!g)){let e=O.current,t=_x(YS(e));e&&X(e,t)&&e.focus({preventScroll:!0})}}}},[ie,O,v,s,I,z,g]),ce=J.useCallback(()=>S??A?.nodesRef.current.find(e=>e.id===k)?.context?.dataRef?.current.orientation,[k,A,S]),le=U(e=>{if(F.current=!1,re.current=!0,e.which===229||!ie.current&&e.currentTarget===O.current)return;if(m&&AE(e.key,x,h,C)){DE(e.key,ce())||Ox(e),n.setOpen(!1,Yb(bb,e.nativeEvent)),ba(a)&&(g?A?.events.emit(`virtualfocus`,a):a.focus());return}let t=N.current,i=uS(s,b),o=dS(s,b);
12if(j||(e.key===`Home`&&(Ox(e),N.current=i,I(e)),e.key===`End`&&(Ox(e),N.current=o,I(e))),C>1){let t=Array.from({length:s.current.length},()=>({width:1,height:1})),n=mS(t,C,!1),r=n.findIndex(e=>e!=null&&!_S(s,e,b)),a=n.reduce((e,t,n)=>t!=null&&!_S(s,t,b)?n:e,-1),c=n[pS({current:n.map(e=>e==null?null:s.current[e])},{event:e,orientation:x,loopFocus:p,rtl:h,cols:C,disabledIndices:gS([...(typeof b==`function`?null:b)||s.current.map((e,t)=>_S(s,t,b)?t:void 0),void 0],n),minIndex:r,maxIndex:a,prevIndex:hS(N.current>o?i:N.current,t,n,C,e.key===`ArrowDown`?`bl`:e.key===(h?`ArrowLeft`:`ArrowRight`)?`tr`:`tl`),stopEvent:!0})];if(c!=null&&(N.current=c,I(e)),x===`both`)return}if(DE(e.key,x)){if(Ox(e),r&&!g&&_x(e.currentTarget.ownerDocument)===e.currentTarget){N.current=OE(e.key,x,h)?i:o,I(e);return}OE(e.key,x,h)?p?t>=o?f&&t!==s.current.length?N.current=-1:(re.current=!1,N.current=i):N.current=fS(s,{startingIndex:t,disabledIndices:b}):N.current=Math.min(o,fS(s,{startingIndex:t,disabledIndices:b})):p?t<=i?f&&t!==-1?N.current=s.current.length:(re.current=!1,N.current=o):N.current=fS(s,{startingIndex:t,decrement:!0,disabledIndices:b}):N.current=Math.max(i,fS(s,{startingIndex:t,decrement:!0,disabledIndices:b})),lS(s,N.current)&&(N.current=-1),I(e)}}),ue=J.useMemo(()=>g&&r&&oe&&{"aria-activedescendant":`${w}-${c}`},[g,r,oe,w,c]),V=J.useMemo(()=>({"aria-orientation":x===`both`?void 0:x,...j?{}:ue,onKeyDown(e){if(e.key===`Tab`&&e.shiftKey&&r&&!g){let t=yx(e.nativeEvent);if(t&&!X(O.current,t))return;Ox(e),n.setOpen(!1,Yb(vb,e.nativeEvent)),ba(a)&&a.focus();return}le(e)},onPointerMove(){F.current=!0}}),[ue,le,O,x,j,n,r,g,a]),de=J.useMemo(()=>{function e(e){_===`auto`&&Ax(e.nativeEvent)&&(M.current=!g)}function t(e){M.current=_,_===`auto`&&jx(e.nativeEvent)&&(M.current=!0)}return{onKeyDown(e){let t=n.select(`open`);F.current=!1;let r=e.key.startsWith(`Arrow`),i=kE(e.key,ce(),h),a=DE(e.key,x),o=(m?i:a)||e.key===`Enter`||e.key.trim()===``;if(g&&t)return le(e);if(!(!t&&!y&&r)){if(o){let t=DE(e.key,ce());P.current=m&&t?null:e.key}if(m){i&&(Ox(e),t?(N.current=uS(s,R.current),I(e)):n.setOpen(!0,Yb(bb,e.nativeEvent,e.currentTarget)));return}a&&(ae.current!=null&&(N.current=ae.current),Ox(e),!t&&y?n.setOpen(!0,Yb(bb,e.nativeEvent,e.currentTarget)):le(e),t&&I(e))}},onFocus(e){n.select(`open`)&&!g&&(N.current=-1,I(e))},onPointerDown:t,onPointerEnter:t,onMouseDown:e,onClick:e}},[le,R,_,s,m,I,n,y,x,ce,h,ae,g]),fe=J.useMemo(()=>({...ue,...de}),[ue,de]);return J.useMemo(()=>u?{reference:fe,floating:V,item:se,trigger:de}:{},[u,fe,V,de,se])}var ME=new Map([[`select`,`listbox`],[`combobox`,`listbox`],[`label`,!1]]);function NE(e,t={}){let n=`rootStore`in e?e.rootStore:e,r=n.useState(`open`),i=n.useState(`floatingId`),a=n.useState(`domReferenceElement`),o=n.useState(`floatingElement`),{role:s=`dialog`}=t,c=qb(),l=a?.id||c,u=J.useMemo(()=>Tx(o)?.id||i,[o,i]),d=ME.get(s)??s,f=zC()!=null,p=J.useMemo(()=>d===`tooltip`||s===`label`?$n:{"aria-haspopup":d===`alertdialog`?`dialog`:d,"aria-expanded":`false`,...d===`listbox`&&{role:`combobox`},...d===`menu`&&f&&{role:`menuitem`},...s===`select`&&{"aria-autocomplete":`none`},...s===`combobox`&&{"aria-autocomplete":`list`}},[d,f,s]),m=J.useMemo(()=>d===`tooltip`||s===`label`?{[`aria-${s===`label`?`labelledby`:`describedby`}`]:r?u:void 0}:{...p,"aria-expanded":r?`true`:`false`,"aria-controls":r?u:void 0,...d===`menu`&&{id:l}},[d,u,r,l,s,p]),h=J.useMemo(()=>{let e={id:u,...d&&{role:d}};return d===`tooltip`||s===`label`?e:{...e,...d===`menu`&&{"aria-labelledby":l}}},[d,u,l,s]),g=J.useCallback(({active:e,selected:t})=>{let n={role:`option`,...e&&{id:`${u}-fui-option`}};switch(s){case`select`:case`combobox`:return{...n,"aria-selected":t};default:}return{}},[u,s]);return J.useMemo(()=>({reference:m,floating:h,item:g,trigger:p}),[m,h,p,g])}function PE(e,t){let n=`rootStore`in e?e.rootStore:e,r=n.context.dataRef,i=n.useState(`open`),{listRef:a,elementsRef:o,activeIndex:s,onMatch:c,onTypingChange:l,enabled:u=!0,resetMs:d=750,selectedIndex:f=null}=t,p=ux(),m=J.useRef(``),h=J.useRef(f??s??-1),g=J.useRef(null);G(()=>{!i&&f!==null||(p.clear(),g.current=null,m.current!==``&&(m.current=``))},[i,f,p]),G(()=>{i&&m.current===``&&(h.current=f??s??-1)},[i,f,s]);let _=U(e=>{e?r.current.typing||(r.current.typing=e,l?.(e)):r.current.typing&&(r.current.typing=e,l?.(e))}),v=U(e=>{function t(e){let t=o?.current[e];return!t||vS(t)}function n(e,n,r=0){if(e.length===0)return-1;let i=(r%e.length+e.length)%e.length,a=n.toLocaleLowerCase();for(let n=0;n<e.length;n+=1){let r=(i+n)%e.length;if(!(!e[r]?.toLocaleLowerCase().startsWith(a)||!t(r)))return r}return-1}let r=a.current;if(m.current.length>0&&e.key===` `&&(Ox(e),_(!0)),m.current.length>0&&m.current[0]!==` `&&n(r,m.current)===-1&&e.key!==` `&&_(!1),r==null||e.key.length!==1||e.ctrlKey||e.metaKey||e.altKey)return;i&&e.key!==` `&&(Ox(e),_(!0));let l=m.current===``;l&&(h.current=f??s??-1),r.every(e=>e?e[0]?.toLocaleLowerCase()!==e[1]?.toLocaleLowerCase():!0)&&m.current===e.key&&(m.current=``,h.current=g.current),m.current+=e.key,p.start(d,()=>{m.current=``,h.current=g.current,_(!1)});let u=((l?f??s??-1:h.current)??0)+1,v=n(r,m.current,u);v===-1?e.key!==` `&&(m.current=``,_(!1)):(c?.(v),g.current=v)}),y=U(e=>{let t=e.relatedTarget,r=n.select(`domReferenceElement`),i=n.select(`floatingElement`),a=X(r,t),o=X(i,t);a||o||(p.clear(),m.current=``,h.current=g.current,_(!1))}),b=J.useMemo(()=>({onKeyDown:v,onBlur:y}),[v,y]),x=J.useMemo(()=>({onKeyDown:v,onBlur:y}),[v,y]);return J.useMemo(()=>u?{reference:b,floating:x}:{},[u,b,x])}var FE=.1,IE=FE*FE,LE=.5;function RE(e,t,n,r,i,a){return r>=t!=a>=t&&e<=(i-n)*(t-r)/(a-r)+n}function zE(e,t,n,r,i,a,o,s,c,l){let u=!1;return RE(e,t,n,r,i,a)&&(u=!u),RE(e,t,i,a,o,s)&&(u=!u),RE(e,t,o,s,c,l)&&(u=!u),RE(e,t,c,l,n,r)&&(u=!u),u}function BE(e,t,n){return e>=n.x&&e<=n.x+n.width&&t>=n.y&&t<=n.y+n.height}function VE(e,t,n,r,i,a){return e>=Math.min(n,i)&&e<=Math.max(n,i)&&t>=Math.min(r,a)&&t<=Math.max(r,a)}function HE(e={}){let{blockPointerEvents:t=!1}=e,n=new lx,r=({x:e,y:t,placement:r,elements:i,onClose:a,nodeId:o,tree:s})=>{let c=r?.split(`-`)[0],l=!1,u=null,d=null,f=typeof performance<`u`?performance.now():0;function p(e,t){let n=performance.now(),r=n-f;if(u===null||d===null||r===0)return u=e,d=t,f=n,!1;let i=e-u,a=t-d,o=i*i+a*a,s=r*r*IE;return u=e,d=t,f=n,o<s}function m(){n.clear(),a()}return function(r){n.clear();let a=i.domReference,u=i.floating;if(!a||!u||c==null||e==null||t==null)return;let{clientX:d,clientY:f}=r,h=yx(r),g=r.type===`mouseleave`,_=X(u,h),v=X(a,h);if(_&&(l=!0,!g))return;if(v&&(l=!1,!g)){l=!0;return}
12if(g&&Mo(r.relatedTarget)&&X(u,r.relatedTarget))return;function y(){return!!(s&&Ex(s.nodesRef.current,o).length>0)}function b(){y()||m()}if(y())return;let x=a.getBoundingClientRect(),S=u.getBoundingClientRect(),C=e>S.right-S.width/2,w=t>S.bottom-S.height/2,E=S.width>x.width,D=S.height>x.height,O=(E?x:S).left,k=(E?x:S).right,A=(D?x:S).top,j=(D?x:S).bottom;if(c===`top`&&t>=x.bottom-1||c===`bottom`&&t<=x.top+1||c===`left`&&e>=x.right-1||c===`right`&&e<=x.left+1){b();return}let M=!1;switch(c){case`top`:M=VE(d,f,O,x.top+1,k,S.bottom-1);break;case`bottom`:M=VE(d,f,O,S.top+1,k,x.bottom-1);break;case`left`:M=VE(d,f,S.right-1,j,x.left+1,A);break;case`right`:M=VE(d,f,x.right-1,j,S.left+1,A);break;default:}if(M)return;if(l&&!BE(d,f,x)){b();return}if(!g&&p(d,f)){b();return}let N=!1;switch(c){case`top`:{let n=E?LE/2:LE*4,r=E||C?e+n:e-n,i=E?e-n:C?e+n:e-n,a=t+LE+1,o=C||E?S.bottom-LE:S.top,s=C?E?S.bottom-LE:S.top:S.bottom-LE;N=zE(d,f,r,a,i,a,S.left,o,S.right,s);break}case`bottom`:{let n=E?LE/2:LE*4,r=E||C?e+n:e-n,i=E?e-n:C?e+n:e-n,a=t-LE,o=C||E?S.top+LE:S.bottom,s=C?E?S.top+LE:S.bottom:S.top+LE;N=zE(d,f,r,a,i,a,S.left,o,S.right,s);break}case`left`:{let n=D?LE/2:LE*4,r=D||w?t+n:t-n,i=D?t-n:w?t+n:t-n,a=e+LE+1,o=w||D?S.right-LE:S.left,s=w?D?S.right-LE:S.left:S.right-LE;N=zE(d,f,o,S.top,s,S.bottom,a,r,a,i);break}case`right`:{let n=D?LE/2:LE*4,r=D||w?t+n:t-n,i=D?t-n:w?t+n:t-n,a=e-LE,o=w||D?S.left+LE:S.right,s=w?D?S.left+LE:S.right:S.left+LE;N=zE(d,f,a,r,a,i,o,S.top,s,S.bottom);break}default:}N?l||n.start(40,b):b()}};return r.__options={blockPointerEvents:t},r}var UE=J.createContext(void 0);function WE(e){let t=J.useContext(UE);if(t===void 0&&!e)throw Error(su(69));return t}var GE=`ArrowUp`,KE=`ArrowDown`,qE=`ArrowLeft`,JE=`ArrowRight`,YE=`Home`,XE=new Set([qE,JE]),ZE=new Set([GE,KE]),QE=new Set([...XE,...ZE]);new Set([...QE,YE,`End`]);var $E=new Set([GE,KE,qE,JE,YE,`End`]);function eD(e){return e===`starting`?ur:$n}var tD={...cb,...Qy},nD=J.forwardRef(function(e,t){let{render:n,className:r,finalFocus:i,...a}=e,{store:o}=Jy(),{side:s,align:c}=Ky(),l=WE(!0)!=null,u=o.useState(`open`),d=o.useState(`transitionStatus`),f=o.useState(`popupProps`),p=o.useState(`mounted`),m=o.useState(`instantType`),h=o.useState(`activeTriggerElement`),g=o.useState(`parent`),_=o.useState(`lastOpenChangeReason`),v=o.useState(`rootId`),y=o.useState(`floatingRootContext`),b=o.useState(`floatingTreeRoot`),x=o.useState(`closeDelay`),S=o.useState(`activeTriggerElement`),C=g.type===`context-menu`;ox({open:u,ref:o.context.popupRef,onComplete(){u&&o.context.onOpenChangeComplete?.(!0)}}),J.useEffect(()=>{function e(e){o.setOpen(!1,Yb(e.reason,e.domEvent))}return b.events.on(`close`,e),()=>{b.events.off(`close`,e)}},[b.events,o]);let w=o.useState(`hoverEnabled`),E=o.useState(`disabled`);yE(y,{enabled:w&&!E&&!C&&g.type!==`menubar`,closeDelay:x});let D={transitionStatus:d,side:s,align:c,open:u,nested:g.type===`menu`,instant:m},O=J.useCallback(e=>{o.set(`popupElement`,e)},[o]),k=_t(`div`,e,{state:D,ref:[t,o.context.popupRef,O],stateAttributesMapping:tD,props:[f,{onKeyDown(e){l&&$E.has(e.key)&&e.stopPropagation()}},eD(d),a,{"data-rootownerid":v}]}),A=g.type===void 0||C;return(h||g.type===`menubar`&&_!==`outside-press`)&&(A=!0),(0,Y.jsx)($C,{context:y,modal:C,disabled:!p,returnFocus:i===void 0?A:i,initialFocus:g.type!==`menu`,restoreFocus:!0,externalTree:g.type===`menubar`?void 0:b,previousFocusableElement:S,nextFocusableElement:g.type===void 0?o.context.triggerFocusTargetRef:void 0,beforeContentFocusGuardRef:g.type===void 0?o.context.beforeContentFocusGuardRef:void 0,children:k})}),rD=J.createContext(void 0);function iD(){let e=J.useContext(rD);if(e===void 0)throw Error(su(32));return e}var aD=J.forwardRef(function(e,t){let{keepMounted:n=!1,...r}=e,{store:i}=Jy();return i.useState(`mounted`)||n?(0,Y.jsx)(rD.Provider,{value:n,children:(0,Y.jsx)(PC,{ref:t,...r})}):null});function oD(e){return nn(19)?e:e?`true`:void 0}var sD=J.createContext(void 0);function cD(){return J.useContext(sD)?.direction??`ltr`}var lD=e=>({name:`arrow`,options:e,async fn(t){let{x:n,y:r,placement:i,rects:a,platform:o,elements:s,middlewareData:c}=t,{element:l,padding:u=0,offsetParent:d=`real`}=Hx(e,t)||{};if(l==null)return{};let f=oS(u),p={x:n,y:r},m=Jx(i),h=Kx(m),g=await o.getDimensions(l),_=m===`y`,v=_?`top`:`left`,y=_?`bottom`:`right`,b=_?`clientHeight`:`clientWidth`,x=a.reference[h]+a.reference[m]-p[m]-a.floating[h],S=p[m]-a.reference[m],C=d===`real`?await o.getOffsetParent?.(l):s.floating,w=s.floating[b]||a.floating[h];(!w||!await o.isElement?.(C))&&(w=s.floating[b]||a.floating[h]);let E=x/2-S/2,D=w/2-g[h]/2-1,O=Math.min(f[v],D),k=Math.min(f[y],D),A=O,j=w-g[h]-k,M=w/2-g[h]/2+E,N=Vx(A,M,j),P=!c.arrow&&Wx(i)!=null&&M!==N&&a.reference[h]/2-(M<A?O:k)-g[h]/2<0,F=P?M<A?M-A:M-j:0;
12return{[m]:p[m]+F,data:{[m]:N,centerOffset:M-N-F,...P&&{alignmentOffset:F}},reset:P}}}),uD=(e,t)=>({...lD(e),options:[e,t]}),dD={name:`hide`,async fn(e){let{width:t,height:n,x:r,y:i}=e.rects.reference,a=t===0&&n===0&&r===0&&i===0;return{data:{referenceHidden:(await pT().fn(e)).data?.referenceHidden||a}}}},fD={sideX:`left`,sideY:`top`},pD={name:`adaptiveOrigin`,async fn(e){let{x:t,y:n,rects:{floating:r},elements:{floating:i},platform:a,strategy:o,placement:s}=e,c=Fs(i),l=c.getComputedStyle(i);if(!(l.transitionDuration!==`0s`&&l.transitionDuration!==``))return{x:t,y:n,data:fD};let u=await a.getOffsetParent?.(i),d={width:0,height:0};if(o===`fixed`&&c?.visualViewport)d={width:c.visualViewport.width,height:c.visualViewport.height};else if(u===c){let e=YS(i);d={width:e.documentElement.clientWidth,height:e.documentElement.clientHeight}}else await a.isElement?.(u)&&(d=await a.getDimensions(u));let f=Ux(s),p=t,m=n;f===`left`&&(p=d.width-(t+r.width)),f===`top`&&(m=d.height-(n+r.height));let h=f===`left`?`right`:fD.sideX,g=f===`top`?`bottom`:fD.sideY;return{x:p,y:m,data:{sideX:h,sideY:g}}}};function mD(e,t,n){let r=e===`inline-start`||e===`inline-end`;return{top:`top`,right:r?n?`inline-start`:`inline-end`:`right`,bottom:`bottom`,left:r?n?`inline-end`:`inline-start`:`left`}[t]}function hD(e,t,n){let{rects:r,placement:i}=e;return{side:mD(t,Ux(i),n),align:Wx(i)||`center`,anchor:{width:r.reference.width,height:r.reference.height},positioner:{width:r.floating.width,height:r.floating.height}}}function gD(e){let{anchor:t,positionMethod:n=`absolute`,side:r=`bottom`,sideOffset:i=0,align:a=`center`,alignOffset:o=0,collisionBoundary:s,collisionPadding:c=5,sticky:l=!1,arrowPadding:u=5,disableAnchorTracking:d=!1,keepMounted:f=!1,floatingRootContext:p,mounted:m,collisionAvoidance:h,shiftCrossAxis:g=!1,nodeId:_,adaptiveOrigin:v,lazyFlip:y=!1,externalTree:b}=e,[x,S]=J.useState(null);!m&&x!==null&&S(null);let C=h.side||`flip`,w=h.align||`flip`,E=h.fallbackAxisSide||`end`,D=typeof t==`function`?t:void 0,O=U(D),k=D?O:t,A=uC(t),j=cD()===`rtl`,M=x||{top:`top`,right:`right`,bottom:`bottom`,left:`left`,"inline-end":j?`left`:`right`,"inline-start":j?`right`:`left`}[r],N=a===`center`?M:`${M}-${a}`,P=c,F=+(r===`bottom`),I=+(r===`top`),ee=+(r===`right`),te=+(r===`left`);typeof P==`number`?P={top:P+F,right:P+te,bottom:P+I,left:P+ee}:P&&={top:(P.top||0)+F,right:(P.right||0)+te,bottom:(P.bottom||0)+I,left:(P.left||0)+ee};let ne={boundary:s===`clipping-ancestors`?`clippingAncestors`:s,padding:P},re=J.useRef(null),L=uC(i),R=uC(o),ie=[cT(e=>{let t=hD(e,r,j),n=typeof L.current==`function`?L.current(t):L.current,i=typeof R.current==`function`?R.current(t):R.current;return{mainAxis:n,crossAxis:i,alignmentAxis:i}},[typeof i==`function`?0:i,typeof o==`function`?0:o,j,r])],ae=w===`none`&&C!==`shift`,z=!ae&&(l||g||C===`shift`),B=C===`none`?null:dT({...ne,padding:{top:P.top+1,right:P.right+1,bottom:P.bottom+1,left:P.left+1},mainAxis:!g&&C===`flip`,crossAxis:w===`flip`?`alignment`:!1,fallbackAxisSideDirection:E}),oe=ae?null:lT(e=>{let t=YS(e.elements.floating).documentElement;return{...ne,rootBoundary:g?{x:0,y:0,width:t.clientWidth,height:t.clientHeight}:void 0,mainAxis:w!==`none`,crossAxis:z,limiter:l||g?void 0:uT(e=>{if(!re.current)return{};let{width:t,height:n}=re.current.getBoundingClientRect(),r=qx(Ux(e.placement)),i=r===`y`?t:n,a=r===`y`?P.left+P.right:P.top+P.bottom;return{offset:i/2+a/2}})}},[ne,l,g,P,w]);C===`shift`||w===`shift`||a===`center`?ie.push(oe,B):ie.push(B,oe),ie.push(fT({...ne,apply({elements:{floating:e},availableWidth:t,availableHeight:n,rects:r}){let i=e.style;i.setProperty(`--available-width`,`${t}px`),i.setProperty(`--available-height`,`${n}px`);let a=window.devicePixelRatio||1,{x:o,y:s,width:c,height:l}=r.reference,u=(Math.round((o+c)*a)-Math.round(o*a))/a,d=(Math.round((s+l)*a)-Math.round(s*a))/a;i.setProperty(`--anchor-width`,`${u}px`),i.setProperty(`--anchor-height`,`${d}px`)}}),uD(()=>({element:re.current||document.createElement(`div`),padding:u,offsetParent:`floating`}),[u]),{name:`transformOrigin`,fn(e){let{elements:t,middlewareData:n,placement:a,rects:o,y:s}=e,c=Ux(a),l=qx(c),u=re.current,d=n.arrow?.x||0,f=n.arrow?.y||0,p=u?.clientWidth||0,m=u?.clientHeight||0,h=d+p/2,g=f+m/2,_=Math.abs(n.shift?.y||0),v=o.reference.height/2,y=typeof i==`function`?i(hD(e,r,j)):i,b=_>y,x={top:`${h}px calc(100% + ${y}px)`,bottom:`${h}px ${-y}px`,left:`calc(100% + ${y}px) ${g}px`,right:`${-y}px ${g}px`}[c],S=`${h}px ${o.reference.y+v-s}px`;return t.floating.style.setProperty(`--transform-origin`,z&&l===`y`&&b?S:x),{}}},dD,v),G(()=>{!m&&p&&p.update({referenceElement:null,floatingElement:null,domReferenceElement:null})},[m,p]);let se=J.useMemo(()=>({elementResize:!d&&typeof ResizeObserver<`u`,layoutShift:!d&&typeof IntersectionObserver<`u`}),[d]),{refs:ce,elements:le,x:ue,y:V,middlewareData:de,update:fe,placement:pe,context:me,isPositioned:he,floatingStyles:ge}=lE({rootContext:p,placement:N,middleware:ie,strategy:n,whileElementsMounted:f?void 0:(...e)=>Jw(...e,se),nodeId:_,externalTree:b}),{sideX:_e,sideY:ve}=de.adaptiveOrigin||fD,ye=he?n:`fixed`,be=J.useMemo(()=>{let e=v?{position:ye,[_e]:ue,[ve]:V}:{position:ye,...ge};return he||(e.opacity=0),e},[v,ye,_e,ue,ve,V,ge,he]),H=J.useRef(null);G(()=>{if(!m)return;let e=A.current,t=typeof e==`function`?e():e,n=(_D(t)?t.current:t)||null;n!==H.current&&(ce.setPositionReference(n),H.current=n)},[m,ce,k,A]),J.useEffect(()=>{if(!m)return;let e=A.current;typeof e!=`function`&&_D(e)&&e.current!==H.current&&(ce.setPositionReference(e.current),H.current=e.current)},[m,ce,k,A]),J.useEffect(()=>{if(f&&m&&le.domReference&&le.floating)return Jw(le.domReference,le.floating,fe,se)},[f,m,le,fe,se]);
12let xe=Ux(pe),Se=mD(r,xe,j),Ce=Wx(pe)||`center`,we=!!de.hide?.referenceHidden;G(()=>{y&&m&&he&&S(xe)},[y,m,he,xe]);let Te=J.useMemo(()=>({position:`absolute`,top:de.arrow?.y,left:de.arrow?.x}),[de.arrow]),Ee=de.arrow?.centerOffset!==0;return J.useMemo(()=>({positionerStyles:be,arrowStyles:Te,arrowRef:re,arrowUncentered:Ee,side:Se,align:Ce,physicalSide:xe,anchorHidden:we,refs:ce,context:me,isPositioned:he,update:fe}),[be,Te,re,Ee,Se,Ce,xe,we,ce,me,he,fe])}function _D(e){return e!=null&&`current`in e}function vD(e){let{children:t,elementsRef:n,labelsRef:r,onMapChange:i}=e,a=U(i),o=J.useRef(0),s=Rr(bD).current,c=Rr(yD).current,[l,u]=J.useState(0),d=J.useRef(l),f=U((e,t)=>{c.set(e,t??null),d.current+=1,u(d.current)}),p=U(e=>{c.delete(e),d.current+=1,u(d.current)}),m=J.useMemo(()=>{let e=new Map;return Array.from(c.keys()).filter(e=>e.isConnected).sort(xD).forEach((t,n)=>{let r=c.get(t)??{};e.set(t,{...r,index:n})}),e},[c,l]);G(()=>{if(typeof MutationObserver!=`function`||m.size===0)return;let e=new MutationObserver(e=>{let t=new Set,n=e=>t.has(e)?t.delete(e):t.add(e);e.forEach(e=>{e.removedNodes.forEach(n),e.addedNodes.forEach(n)}),t.size===0&&(d.current+=1,u(d.current))});return m.forEach((t,n)=>{n.parentElement&&e.observe(n.parentElement,{childList:!0})}),()=>{e.disconnect()}},[m]),G(()=>{d.current===l&&(n.current.length!==m.size&&(n.current.length=m.size),r&&r.current.length!==m.size&&(r.current.length=m.size),o.current=m.size),a(m)},[a,m,n,r,l]),G(()=>()=>{n.current=[]},[n]),G(()=>()=>{r&&(r.current=[])},[r]);let h=U(e=>(s.add(e),()=>{s.delete(e)}));G(()=>{s.forEach(e=>e(m))},[s,m]);let g=J.useMemo(()=>({register:f,unregister:p,subscribeMapChange:h,elementsRef:n,labelsRef:r,nextIndexRef:o}),[f,p,h,n,r,o]);return(0,Y.jsx)(Bb.Provider,{value:g,children:t})}function yD(){return new Map}function bD(){return new Set}function xD(e,t){let n=e.compareDocumentPosition(t);return n&Node.DOCUMENT_POSITION_FOLLOWING||n&Node.DOCUMENT_POSITION_CONTAINED_BY?-1:n&Node.DOCUMENT_POSITION_PRECEDING||n&Node.DOCUMENT_POSITION_CONTAINS?1:0}var SD=J.forwardRef(function(e,t){let{cutout:n,...r}=e,i;if(n){let e=n?.getBoundingClientRect();i=`polygon(
13      0% 0%,
14      100% 0%,
15      100% 100%,
16      0% 100%,
17      0% 0%,
18      ${e.left}px ${e.top}px,
19      ${e.left}px ${e.bottom}px,
20      ${e.right}px ${e.bottom}px,
21      ${e.right}px ${e.top}px,
22      ${e.left}px ${e.top}px
23    )`}return(0,Y.jsx)(`div`,{ref:t,role:`presentation`,"data-base-ui-inert":``,...r,style:{position:`fixed`,inset:0,userSelect:`none`,WebkitUserSelect:`none`,clipPath:i}})}),CD=J.forwardRef(function(e,t){let{anchor:n,positionMethod:r=`absolute`,className:i,render:a,side:o,align:s,sideOffset:c=0,alignOffset:l=0,collisionBoundary:u=`clipping-ancestors`,collisionPadding:d=5,arrowPadding:f=5,sticky:p=!1,disableAnchorTracking:m=!1,collisionAvoidance:h=gs,...g}=e,{store:_}=Jy(),v=iD(),y=ub(!0),b=_.useState(`parent`),x=_.useState(`floatingRootContext`),S=_.useState(`floatingTreeRoot`),C=_.useState(`mounted`),w=_.useState(`open`),E=_.useState(`modal`),D=_.useState(`activeTriggerElement`),O=_.useState(`transitionStatus`),k=_.useState(`positionerElement`),A=_.useState(`instantType`),j=_.useState(`hasViewport`),M=_.useState(`lastOpenChangeReason`),N=_.useState(`floatingNodeId`),P=_.useState(`floatingParentNodeId`),F=x.useState(`domReferenceElement`),I=J.useRef(null),ee=ax(k,!1,!1),te=n,ne=c,re=l,L=s,R=h;b.type===`context-menu`&&(te=n??b.context?.anchor,L??=`start`,!o&&L!==`center`&&(re=e.alignOffset??2,ne=e.sideOffset??-5));let ie=o,ae=L;b.type===`menu`?(ie??=`inline-end`,ae??=`start`,R=e.collisionAvoidance??je):b.type===`menubar`&&(ie??=`bottom`,ae??=`start`);let z=b.type===`context-menu`,B=gD({anchor:te,floatingRootContext:x,positionMethod:y?`fixed`:r,mounted:C,side:ie,sideOffset:ne,align:ae,alignOffset:re,arrowPadding:z?0:f,collisionBoundary:u,collisionPadding:d,sticky:p,nodeId:N,keepMounted:v,disableAnchorTracking:m,collisionAvoidance:R,shiftCrossAxis:z&&!(`side`in R&&R.side===`flip`),externalTree:S,adaptiveOrigin:j?pD:void 0}),oe=J.useMemo(()=>{let e={};return w||(e.pointerEvents=`none`),{role:`presentation`,hidden:!C,style:{...B.positionerStyles,...e}}},[w,C,B.positionerStyles]);J.useEffect(()=>{function e(e){e.open&&(e.parentNodeId===N&&_.set(`hoverEnabled`,!1),e.nodeId!==N&&e.parentNodeId===_.select(`floatingParentNodeId`)&&_.setOpen(!1,Yb(Sb)))}return S.events.on(`menuopenchange`,e),()=>{S.events.off(`menuopenchange`,e)}},[_,S.events,N]),J.useEffect(()=>{if(_.select(`floatingParentNodeId`)==null)return;function e(e){if(e.open||e.nodeId!==_.select(`floatingParentNodeId`))return;let t=e.reason??`sibling-open`;_.setOpen(!1,Yb(t))}return S.events.on(`menuopenchange`,e),()=>{S.events.off(`menuopenchange`,e)}},[S.events,_]);let se=ux();J.useEffect(()=>{w||se.clear()},[w,se]),J.useEffect(()=>{function e(e){if(!(!w||e.nodeId!==_.select(`floatingParentNodeId`)))if(e.target&&D&&D!==e.target){let e=_.select(`closeDelay`);e>0?se.isStarted()||se.start(e,()=>{_.setOpen(!1,Yb(Sb))}):_.setOpen(!1,Yb(Sb))}else se.clear()}return S.events.on(`itemhover`,e),()=>{S.events.off(`itemhover`,e)}},[S.events,w,D,_,se]),J.useEffect(()=>{let e={open:w,nodeId:N,parentNodeId:P,reason:_.select(`lastOpenChangeReason`)};S.events.emit(`menuopenchange`,e)},[S.events,w,_,N,P]),G(()=>{let e=F,t=I.current;if(e&&(I.current=e),t&&e&&e!==t){_.set(`instantType`,void 0);let e=new AbortController;return ee(()=>{_.set(`instantType`,`trigger-change`)},e.signal),()=>{e.abort()}}},[F,ee,_]);let ce={open:w,side:B.side,align:B.align,anchorHidden:B.anchorHidden,nested:b.type===`menu`,instant:A},le=J.useMemo(()=>({side:B.side,align:B.align,arrowRef:B.arrowRef,arrowUncentered:B.arrowUncentered,arrowStyles:B.arrowStyles,nodeId:B.context.nodeId}),[B.side,B.align,B.arrowRef,B.arrowUncentered,B.arrowStyles,B.context.nodeId]),ue=_t(`div`,e,{state:ce,stateAttributesMapping:cb,ref:[t,_.useStateSetter(`positionerElement`)],props:[oe,eD(O),g]}),V=C&&b.type!==`menu`&&(b.type!==`menubar`&&E&&M!==`trigger-hover`||b.type===`menubar`&&b.context.modal),de=null;return b.type===`menubar`?de=b.context.contentElement:b.type===void 0&&(de=D),(0,Y.jsxs)(Gy.Provider,{value:le,children:[V&&(0,Y.jsx)(SD,{ref:b.type===`context-menu`||b.type===`nested-context-menu`?b.context.
23internalBackdropRef:null,inert:oD(!w),cutout:de}),(0,Y.jsx)(HC,{id:N,children:(0,Y.jsx)(vD,{elementsRef:_.context.itemDomElements,labelsRef:_.context.itemLabels,children:ue})})]})});function wD(e){let t=J.useRef(!0);t.current&&(t.current=!1,e())}var TD={},ED={},DD=``;function OD(e){if(typeof document>`u`)return!1;let t=YS(e);return Fs(t).innerWidth-t.documentElement.clientWidth>0}function kD(e){if(!(typeof CSS<`u`&&CSS.supports&&CSS.supports(`scrollbar-gutter`,`stable`))||typeof document>`u`)return!1;let t=YS(e),n=t.documentElement,r=t.body,i=za(n)?n:r,a=i.style.overflowY,o=n.style.scrollbarGutter;n.style.scrollbarGutter=`stable`,i.style.overflowY=`scroll`;let s=i.offsetWidth;i.style.overflowY=`hidden`;let c=i.offsetWidth;return i.style.overflowY=a,n.style.scrollbarGutter=o,s===c}function AD(e){let t=YS(e),n=t.documentElement,r=t.body,i=za(n)?n:r,a={overflowY:i.style.overflowY,overflowX:i.style.overflowX};return Object.assign(i.style,{overflowY:`hidden`,overflowX:`hidden`}),()=>{Object.assign(i.style,a)}}function jD(e){let t=YS(e),n=t.documentElement,r=t.body,i=Fs(n),a=0,o=0,s=!1,c=ex.create();if(Ob&&(i.visualViewport?.scale??1)!==1)return()=>{};function l(){let t=i.getComputedStyle(n),c=i.getComputedStyle(r),l=(t.scrollbarGutter||``).includes(`both-edges`)?`stable both-edges`:`stable`;a=n.scrollTop,o=n.scrollLeft,TD={scrollbarGutter:n.style.scrollbarGutter,overflowY:n.style.overflowY,overflowX:n.style.overflowX},DD=n.style.scrollBehavior,ED={position:r.style.position,height:r.style.height,width:r.style.width,boxSizing:r.style.boxSizing,overflowY:r.style.overflowY,overflowX:r.style.overflowX,scrollBehavior:r.style.scrollBehavior};let u=n.scrollHeight>n.clientHeight,d=n.scrollWidth>n.clientWidth,f=t.overflowY===`scroll`||c.overflowY===`scroll`,p=t.overflowX===`scroll`||c.overflowX===`scroll`,m=Math.max(0,i.innerWidth-r.clientWidth),h=Math.max(0,i.innerHeight-r.clientHeight),g=parseFloat(c.marginTop)+parseFloat(c.marginBottom),_=parseFloat(c.marginLeft)+parseFloat(c.marginRight),v=za(n)?n:r;if(s=kD(e),s){n.style.scrollbarGutter=l,v.style.overflowY=`hidden`,v.style.overflowX=`hidden`;return}Object.assign(n.style,{scrollbarGutter:l,overflowY:`hidden`,overflowX:`hidden`}),(u||f)&&(n.style.overflowY=`scroll`),(d||p)&&(n.style.overflowX=`scroll`),Object.assign(r.style,{position:`relative`,height:g||h?`calc(100dvh - ${g+h}px)`:`100dvh`,width:_||m?`calc(100vw - ${_+m}px)`:`100vw`,boxSizing:`border-box`,overflow:`hidden`,scrollBehavior:`unset`}),r.scrollTop=a,r.scrollLeft=o,n.setAttribute(`data-base-ui-scroll-locked`,``),n.style.scrollBehavior=`unset`}function u(){Object.assign(n.style,TD),Object.assign(r.style,ED),s||(n.scrollTop=a,n.scrollLeft=o,n.removeAttribute(`data-base-ui-scroll-locked`),n.style.scrollBehavior=DD)}function d(){u(),c.request(l)}return l(),i.addEventListener(`resize`,d),()=>{c.cancel(),u(),typeof i.removeEventListener==`function`&&i.removeEventListener(`resize`,d)}}var MD=new class{lockCount=0;restore=null;timeoutLock=lx.create();timeoutUnlock=lx.create();acquire(e){return this.lockCount+=1,this.lockCount===1&&this.restore===null&&this.timeoutLock.start(0,()=>this.lock(e)),this.release}release=()=>{--this.lockCount,this.lockCount===0&&this.restore&&this.timeoutUnlock.start(0,this.unlock)};unlock=()=>{this.lockCount===0&&this.restore&&(this.restore?.(),this.restore=null)};lock(e){if(this.lockCount===0||this.restore!==null)return;let t=YS(e).documentElement,n=Fs(t).getComputedStyle(t).overflowY;if(n===`hidden`||n===`clip`){this.restore=yr;return}let r=kb||!OD(e);this.restore=r?AD(e):jD(e)}};function ND(e=!0,t=null){G(()=>{if(e)return MD.acquire(t)},[e,t])}var PD=J.createContext(null);function FD(e){let t=J.useContext(PD);if(t===null&&!e)throw Error(su(5));return t}function ID(e){let t=J.useRef(``),n=J.useCallback(n=>{n.defaultPrevented||(t.current=n.pointerType,e(n,n.pointerType))},[e]);return{onClick:J.useCallback(n=>{if(n.detail===0){e(n,`keyboard`);return}`pointerType`in n?e(n,n.pointerType):e(n,t.current),t.current=``},[e]),onPointerDown:n}}function LD(e,t){let n=J.useRef(e),r=U(t);G(()=>{n.current!==e&&r(n.current)},[e,r]),G(()=>{n.current=e},[e])}function RD(e){let[t,n]=J.useState(null),r=U((t,r)=>{e||n(r||(kb?`touch`:``))});LD(e,t=>{t&&!e&&n(null)});let{onClick:i,onPointerDown:a}=ID(r);return J.useMemo(()=>({openMethod:t,triggerProps:{onClick:i,onPointerDown:a}}),[t,i,a])}var zD={...sE,disabled:Z(e=>e.parent.type===`menubar`&&e.parent.context.disabled||e.disabled),modal:Z(e=>(e.parent.type===void 0||e.parent.type===`context-menu`)&&(e.modal??!0)),allowMouseEnter:Z(e=>e.allowMouseEnter),stickIfOpen:Z(e=>e.stickIfOpen),parent:Z(e=>e.parent),rootId:Z(e=>e.parent.type===`menu`?e.parent.store.select(`rootId`):e.parent.type===void 0?e.rootId:e.parent.context.rootId),activeIndex:Z(e=>e.activeIndex),isActive:Z((e,t)=>e.activeIndex===t),hoverEnabled:Z(e=>e.hoverEnabled),instantType:Z(e=>e.instantType),lastOpenChangeReason:Z(e=>e.openChangeReason),floatingTreeRoot:Z(e=>e.parent.type===`menu`?e.parent.store.select(`floatingTreeRoot`):e.floatingTreeRoot),floatingNodeId:Z(e=>e.floatingNodeId),floatingParentNodeId:Z(e=>e.floatingParentNodeId),itemProps:Z(e=>
23e.itemProps),closeDelay:Z(e=>e.closeDelay),hasViewport:Z(e=>e.hasViewport),keyboardEventRelay:Z(e=>{if(e.keyboardEventRelay)return e.keyboardEventRelay;if(e.parent.type===`menu`)return e.parent.store.select(`keyboardEventRelay`)})},BD=class e extends XT{constructor(e){super({...VD(),...e},{positionerRef:J.createRef(),popupRef:J.createRef(),typingRef:{current:!1},itemDomElements:{current:[]},itemLabels:{current:[]},allowMouseUpTriggerRef:{current:!1},triggerFocusTargetRef:J.createRef(),beforeContentFocusGuardRef:J.createRef(),onOpenChangeComplete:void 0,triggerElements:new rE},zD),this.unsubscribeParentListener=this.observe(`parent`,e=>{if(this.unsubscribeParentListener?.(),e.type===`menu`){let t=e.store.select(`rootId`),n=e.store.select(`floatingTreeRoot`),r=e.store.select(`keyboardEventRelay`);this.unsubscribeParentListener=e.store.subscribe(()=>{let i=e.store.select(`rootId`),a=e.store.select(`floatingTreeRoot`),o=e.store.select(`keyboardEventRelay`);t===i&&n===a&&r===o||(t=i,n=a,r=o,this.notifyAll())}),this.context.allowMouseUpTriggerRef=e.store.context.allowMouseUpTriggerRef;return}e.type!==void 0&&(this.context.allowMouseUpTriggerRef=e.context.allowMouseUpTriggerRef),this.unsubscribeParentListener=null})}setOpen(e,t){this.state.floatingRootContext.context.events.emit(`setOpen`,{open:e,eventDetails:t})}static useStore(t,n){let r=Rr(()=>new e(n)).current;return t??r}unsubscribeParentListener=null};function VD(){return{...aE(),disabled:!1,modal:!0,allowMouseEnter:!1,stickIfOpen:!0,parent:{type:void 0},rootId:void 0,activeIndex:null,hoverEnabled:!0,instantType:void 0,openChangeReason:null,floatingTreeRoot:new IC,floatingNodeId:void 0,floatingParentNodeId:null,itemProps:$n,keyboardEventRelay:void 0,closeDelay:0,hasViewport:!1}}var HD=J.createContext(void 0);function UD(){return J.useContext(HD)}var WD=zT(function(e){let{children:t,open:n,onOpenChange:r,onOpenChangeComplete:i,defaultOpen:a=!1,disabled:o=!1,modal:s,loopFocus:c=!0,orientation:l=`vertical`,actionsRef:u,closeParentOnEsc:d=!1,handle:f,triggerId:p,defaultTriggerId:m=null,highlightItemOnHover:h=!0}=e,g=ub(!0),_=Jy(!0),v=FD(!0),y=UD(),b=J.useMemo(()=>y&&_?{type:`menu`,store:_.store}:v?{type:`menubar`,context:v}:g&&!_?{type:`context-menu`,context:g}:{type:void 0},[g,_,v,y]),x=BD.useStore(f?.store,{open:a,openProp:n,activeTriggerId:m,triggerIdProp:p,parent:b});wD(()=>{n===void 0&&x.state.open===!1&&a===!0&&x.update({open:!0,activeTriggerId:m})}),x.useControlledProp(`openProp`,n),x.useControlledProp(`triggerIdProp`,p),x.useContextCallback(`onOpenChangeComplete`,i);let S=x.useState(`floatingTreeRoot`),C=VC(S),w=zC();G(()=>{g&&!_?x.update({parent:{type:`context-menu`,context:g},floatingNodeId:C,floatingParentNodeId:w}):_&&x.update({floatingNodeId:C,floatingParentNodeId:w})},[g,_,C,w,x]);let E=x.useState(`open`),D=x.useState(`activeTriggerElement`),O=x.useState(`positionerElement`),k=x.useState(`hoverEnabled`),A=x.useState(`modal`),j=x.useState(`disabled`),M=x.use
23State(`lastOpenChangeReason`),N=x.useState(`parent`),P=x.useState(`activeIndex`),F=x.useState(`payload`),I=x.useState(`floatingParentNodeId`),ee=J.useRef(null),te=I!=null,ne;x.useSyncedValues({disabled:o,modal:N.type===void 0?s:void 0,rootId:qb()});let{openMethod:re,triggerProps:L}=RD(E);tE(x);let{forceUnmount:R}=nE(E,x,()=>{x.update({allowMouseEnter:!1,stickIfOpen:!0})}),ie=J.useRef(N.type!==`context-menu`),ae=ux();J.useEffect(()=>{if(E||(ee.current=null),N.type===`context-menu`){if(!E){ae.clear(),ie.current=!1;return}ae.start(500,()=>{ie.current=!0})}},[ae,E,N.type]),ND(E&&A&&M!==`trigger-hover`&&re!==`touch`,O),G(()=>{!E&&!k&&x.set(`hoverEnabled`,!0)},[E,k,x]);let z=J.useRef(!0),B=ux(),oe=U((e,t)=>{let n=t.reason;if(E===e&&t.trigger===D&&M===n||(t.preventUnmountOnClose=()=>{x.set(`preventUnmountingOnClose`,!0)},!e&&t.trigger==null&&(t.trigger=D??void 0),r?.(e,t),t.isCanceled))return;let i={open:e,nativeEvent:t.event,reason:t.reason,nested:te};ne?.emit(`openchange`,i);let a=t.event;if(e===!1&&a?.type===`click`&&a.pointerType===`touch`&&!z.current)return;if(!e&&P!==null){let e=x.context.itemDomElements.current[P];queueMicrotask(()=>{e?.setAttribute(`tabindex`,`-1`)})}e&&n===`trigger-focus`?(z.current=!1,B.start(300,()=>{z.current=!0})):(z.current=!0,B.clear());let o=(n===`trigger-press`||n===`item-press`)&&a.detail===0&&a?.isTrusted,s=!e&&(n===`escape-key`||n==null),c={open:e,openChangeReason:n};ee.current=t.event??null;let l=t.trigger?.id??null;(l||e)&&(c.activeTriggerId=l,c.activeTriggerElement=t.trigger??null),x.update(c),N.type===`menubar`&&(n===`trigger-focus`||n===`focus-out`||n===`trigger-hover`||n===`list-navigation`||n===`sibling-open`)?x.set(`instantType`,`group`):o||s?x.set(`instantType`,o?`click`:`dismiss`):x.set(`instantType`,void 0)}),se=J.useCallback(e=>{let t=Yb(e);return t.preventUnmountOnClose=()=>{x.set(`preventUnmountingOnClose`,!0)},t},[x]),ce=J.useCallback(()=>{x.setOpen(!1,se(Cb))},[x,se]);J.useImperativeHandle(u,()=>({unmount:R,close:ce}),[R,ce]);let le;N.type===`context-menu`&&(le=N.context),J.useImperativeHandle(le?.positionerRef,()=>O,[O]),J.useImperativeHandle(le?.actionsRef,()=>({setOpen:oe}),[oe]);let ue=uE({popupStore:x,onOpenChange:oe});ne=ue.context.events,J.useEffect(()=>{let e=({open:e,eventDetails:t})=>oe(e,t);return ne.on(`setOpen`,e),()=>{ne?.off(`setOpen`,e)}},[ne,oe]);let V=iw(ue,{enabled:!j,bubbles:{escapeKey:d&&N.type===`menu`},outsidePress(){return N.type!==`context-menu`||ee.current?.type===`contextmenu`?!0:ie.current},externalTree:te?S:void 0}),de=NE(ue,{role:`menu`}),fe=cD(),pe=J.useCallback(e=>{x.select(`activeIndex`)!==e&&x.set(`activeIndex`,e)},[x]),me=jE(ue,{enabled:!j,listRef:x.context.itemDomElements,activeIndex:P,nested:N.type!==void 0,loopFocus:c,orientation:l,parentOrientation:N.type===`menubar`?N.context.orientation:void 0,rtl:fe===`rtl`,disabledIndices:Un,onNavigate:pe,openOnArrowKeyDown:N.type!==`context-menu`,externalTree:te?S:void 0,focusItemOnHover:h}),he=J.useCallback(e=>{x.context.typingRef.current=e},[x]),{getReferenceProps:ge,getFloatingProps:_e,getItemProps:ve,getTriggerProps:ye}=SE([V,de,me,PE(ue,{listRef:x.context.itemLabels,elementsRef:x.context.itemDomElements,activeIndex:P,resetMs:500,onMatch:e=>{E&&e!==P&&x.set(`activeIndex`,e)},onTypingChange:he})]),be=J.useMemo(()=>{let e=Ot(ge(),{onMouseMove(){x.set(`allowMouseEnter`,!0)}},L);return delete e.role,e},[ge,x,L]),H=J.useMemo(()=>{let e=ye();if(!e)return e;let t=Ot(e,L);return delete t.role,delete t[`aria-controls`],t},[ye,L]),xe=J.useMemo(()=>_e({onMouseMove(){x.set(`allowMouseEnter`,!0),N.type===`menu`&&x.set(`hoverEnabled`,!1)},onClick(){x.select(`hoverEnabled`)&&x.set(`hoverEnabled`,!1)},onKeyDown(e){let t=x.select(`keyboardEventRelay`);t&&!e.isPropagationStopped()&&t(e)}}),[_e,N.type,x]),Se=J.useMemo(()=>ve(),[ve]);x.useSyncedValues({floatingRootContext:ue,activeTriggerProps:be,inactiveTriggerProps:H,popupProps:xe,itemProps:Se});let Ce=J.useMemo(()=>({store:x,parent:b}),[x,b]),we=(0,Y.jsx)(qy.Provider,{value:Ce,children:typeof t==`function`?t({payload:F}):t});return N.type===void 0||N.type===`context-menu`?(0,Y.jsx)(UC,{externalTree:S,children:we}):we});function GD(e){let t=e.getBoundingClientRect(),n=window.getComputedStyle(e,`::before`),r=window.getComputedStyle(e,`::after`);if(!(n.content!==`none`||r.content!==`none`))return t;let i=parseFloat(n.width)||0,a=parseFloat(n.height)||0,o=parseFloat(r.width)||0,s=parseFloat(r.height)||0,c=Math.max(t.width,i,o),l=Math.max(t.height,a,s),u=c-t.width,d=l-t.height;return{left:t.left-u/2,right:t.right+u/2,top:t.top-d/2,bottom:t.bottom+d/2}}function KD(e={}){let{highlightItemOnHover:t,highlightedIndex:n,onHighlightedIndexChange:r}=jc(),{ref:i,index:a}=Ub(e),o=n===a,s=J.useRef(null),c=Nn(i,s);return{compositeProps:J.useMemo(()=>({tabIndex:o?0:-1,onFocus(){r(a)},onMouseMove(){let e=s.current;if(!t||!e)return;let n=e.hasAttribute(`disabled`)||e.ariaDisabled===`true`;!o&&!n&&e.focus()}}),[o,r,a,t]),compositeRef:c,index:a}}function qD(e){let{render:t,className:n,state:r=$n,props:i=Un,refs:a=Un,metadata:o,stateAttributesMapping:s,tag:c=`div`,...l}
23=e,{compositeProps:u,compositeRef:d}=KD({metadata:o});return _t(c,e,{state:r,ref:[...a,d],props:[u,...i,l],stateAttributesMapping:s})}function JD(e){if(ba(e)&&e.hasAttribute(`data-rootownerid`))return e.getAttribute(`data-rootownerid`)??void 0;if(!_l(e))return JD(fc(e))}function YD(e){let{enabled:t=!0,mouseDownAction:n,open:r}=e,i=J.useRef(!1);return J.useMemo(()=>t?{onMouseDown:e=>{(n===`open`&&!r||n===`close`&&r)&&(i.current=!0,YS(e.currentTarget).addEventListener(`click`,()=>{i.current=!1},{once:!0}))},onClick:e=>{i.current&&(i.current=!1,e.preventBaseUIHandler())}}:$n,[t,n,r])}var XD=2,ZD=BT(function(e,t){let{render:n,className:r,disabled:i=!1,nativeButton:a=!0,id:o,openOnHover:s,delay:c=100,closeDelay:l=0,handle:u,payload:d,...f}=e,p=Jy(!0),m=u?.store??p?.store;if(!m)throw Error(su(85));let h=Jb(o),g=m.useState(`isTriggerActive`,h),_=m.useState(`floatingRootContext`),v=m.useState(`isOpenedByTrigger`,h),y=J.useRef(null),b=$D(),x=jc(!0),S=BC(),C=J.useMemo(()=>S??new IC,[S]),{registerTrigger:w,isMountedByThisTrigger:E}=eE(h,y,m,{payload:d,closeDelay:l,parent:b,floatingTreeRoot:C,floatingNodeId:VC(C),floatingParentNodeId:zC(),keyboardEventRelay:x?.relayKeyboardEvent}),D=b.type===`menubar`,O=m.useState(`disabled`),k=i||O||D&&b.context.disabled,{getButtonProps:A,buttonRef:j}=Gs({disabled:k,native:a});J.useEffect(()=>{!v&&b.type===void 0&&(m.context.allowMouseUpTriggerRef.current=!1)},[m,v,b.type]);let M=J.useRef(null),N=ux(),P=U(e=>{if(!M.current)return;N.clear(),m.context.allowMouseUpTriggerRef.current=!1;let t=e.target;if(X(M.current,t)||X(m.select(`positionerElement`),t)||t===M.current||t!=null&&JD(t)===m.select(`rootId`))return;let n=GD(M.current);e.clientX>=n.left-XD&&e.clientX<=n.right+XD&&e.clientY>=n.top-XD&&e.clientY<=n.bottom+XD||C.events.emit(`close`,{domEvent:e,reason:xb})});J.useEffect(()=>{v&&m.select(`lastOpenChangeReason`)===`trigger-hover`&&YS(M.current).addEventListener(`mouseup`,P,{once:!0})},[v,P,m]);let F=D&&b.context.hasSubmenuOpen,I=xE(_,{enabled:(s??F)&&!k&&b.type!==`context-menu`&&(!D||F&&!E),handleClose:HE({blockPointerEvents:!D}),mouseOnly:!0,move:!1,restMs:b.type===void 0?c:void 0,delay:{close:l},triggerElementRef:y,externalTree:C,isActiveTrigger:g}),ee=QD(v,m.select(`lastOpenChangeReason`)),te=ew(_,{enabled:!k&&b.type!==`context-menu`,event:v&&D?`click`:`mousedown`,toggle:!0,ignoreMouse:!1,stickIfOpen:b.type===void 0?ee:!1}),ne=fE(_,{enabled:!k&&F}),re=YD({open:v,enabled:D,mouseDownAction:`open`}),L=SE([te,ne]),R={disabled:k,open:v},ie=m.useState(`triggerProps`,E),ae=[M,t,j,w,y],z=[L.getReferenceProps(),I??$n,ie,{"aria-haspopup":`menu`,id:h,onMouseDown:e=>{m.select(`open`)||(N.start(200,()=>{m.context.allowMouseUpTriggerRef.current=!0}),YS(e.currentTarget).addEventListener(`mouseup`,P,{once:!0}))}},D?{role:`menuitem`}:{},re,f,A],B=J.useRef(null),oe=U(e=>{ix.flushSync(()=>{m.setOpen(!1,Yb(vb,e.nativeEvent,e.currentTarget))}),nC(B.current)?.focus()}),se=U(e=>{let t=m.select(`positionerElement`);if(t&&rC(e,t))m.context.beforeContentFocusGuardRef.current?.focus();else{ix.flushSync(()=>{m.setOpen(!1,Yb(vb,e.nativeEvent,e.currentTarget))});let n=tC(m.context.triggerFocusTargetRef.current||y.current);for(;n!==null&&X(t,n);){let e=n;if(n=QS(n),n===e)break}n?.focus()}}),ce=_t(`button`,e,{enabled:!D,stateAttributesMapping:sb,state:R,ref:ae,props:z});return D?(0,Y.jsx)(qD,{tag:`button`,render:n,className:r,state:R,refs:ae,props:z,stateAttributesMapping:sb}):v?(0,Y.jsxs)(J.Fragment,{children:[(0,Y.jsx)(mC,{ref:B,onFocus:oe},`${h}-pre-focus-guard`),(0,Y.jsx)(J.Fragment,{children:ce},h),(0,Y.jsx)(mC,{ref:m.context.triggerFocusTargetRef,onFocus:se},`${h}-post-focus-guard`)]}):(0,Y.jsx)(J.Fragment,{children:ce},h)});function QD(e,t){let n=ux(),[r,i]=J.useState(!1);return G(()=>{e&&t===`trigger-hover`?(i(!0),n.start(500,()=>{i(!1)})):e||(n.clear(),i(!1))},[e,t,n]),r}function $D(){let e=ub(!0),t=Jy(!0),n=FD(!0);return J.useMemo(()=>n?{type:`menubar`,context:n}:e&&!t?{type:`context-menu`,context:e}:{type:void 0},[e,t,n])}function eO({...e}){return(0,Y.jsx)(WD,{"data-slot":`dropdown-menu`,...e})}function tO({asChild:e=!1,children:t,...n}){let r=e&&J.isValidElement(t)?t:void 0;return(0,Y.jsx)(ZD,{"data-slot":`dropdown-menu-trigger`,render:r,...n,children:r?r.props.children:t})}function nO({align:e=`start`,alignOffset:t=0,side:n=`bottom`,sideOffset:r=4,className:i,...a}){return(0,Y.jsx)(aD,{children:(0,Y.jsx)(CD,{className:`isolate z-50 outline-none`,align:e,alignOffset:t,side:n,sideOffset:r,children:(0,Y.jsx)(nD,{"data-slot":`dropdown-menu-content`,className:fe(`z-50 max-h-(--available-height) w-(--anchor-width) min-w-32 origin-(--transform-origin) overflow-x-hidden overflow-y-auto rounded-md border bg-popover p-1 text-popover-foreground shadow-md duration-200 outline-none data-[side=bottom]:slide-in-from-top-2 data-[side=inline-end]:slide-in-from-left-2 data-[side=inline-start]:slide-in-from-right-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:sli
23de-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 data-open:animate-in data-open:fade-in-0 data-open:zoom-in-95 data-closed:animate-out data-closed:overflow-hidden data-closed:fade-out-0 data-closed:zoom-out-95`,i),...a})})})}function rO({className:e,inset:t,variant:n=`default`,...r}){return(0,Y.jsx)(sx,{"data-slot":`dropdown-menu-item`,"data-inset":t,"data-variant":n,className:fe(`group/dropdown-menu-item relative flex items-center gap-2 rounded-sm px-2 py-1.5 text-sm font-normal outline-hidden select-none focus:bg-accent focus:text-accent-foreground not-data-[variant=destructive]:focus:**:text-accent-foreground data-inset:pl-8 data-[variant=destructive]:text-destructive data-[variant=destructive]:focus:bg-destructive/10 data-[variant=destructive]:focus:text-destructive dark:data-[variant=destructive]:focus:bg-destructive/20 data-disabled:pointer-events-none data-disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4 data-[variant=destructive]:*:[svg]:text-destructive`,e),...r})}function iO({locale:e}){let t=Vy(e).flag;return t?(0,Y.jsx)(`span`,{"aria-hidden":`true`,className:`text-base leading-none`,children:t}):null}function aO({variant:e=`header`,theme:t=`dark`,className:n}){let r=ue(),i=Uy(ce());function a(e){le(e)}if(i.length<2)return null;if(e===`inline`){let e=e=>t===`dark`?e?`border-amber-400 text-white font-semibold`:`border-transparent text-white/75 hover:border-white/40 hover:text-white`:t===`light`?e?`border-primary text-foreground font-semibold`:`border-transparent text-muted-foreground hover:border-border hover:text-foreground`:e?`border-primary text-foreground font-semibold dark:border-amber-400 dark:text-white`:`border-transparent text-muted-foreground hover:border-border hover:text-foreground dark:text-white/75 dark:hover:border-white/40 dark:hover:text-white`,o=t===`dark`?`focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-amber-300`:`focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2`;return(0,Y.jsx)(`nav`,{"aria-label":wn(),className:fe(`flex flex-wrap items-center justify-center gap-x-5 gap-y-2 text-sm`,n),children:i.map(t=>{let n=Vy(t),i=t===r;return(0,Y.jsxs)(`button`,{type:`button`,"aria-current":i?`true`:void 0,onClick:()=>a(t),className:fe(`inline-flex items-center justify-center gap-1.5 border-b-2 py-1 font-medium transition-colors cursor-pointer outline-none`,o,e(i)),children:[(0,Y.jsx)(iO,{locale:t}),(0,Y.jsx)(`span`,{children:n.name})]},t)})})}return(0,Y.jsxs)(eO,{children:[(0,Y.jsxs)(tO,{"aria-label":Rt(),className:fe(`inline-flex h-9 min-w-9 items-center justify-center gap-1.5 rounded-lg px-2.5 text-xs font-bold uppercase tracking-wide outline-none transition-colors`,t===`dark`?`text-white hover:bg-white/10 hover:text-white focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-white`:t===`light`?`text-muted-foreground hover:bg-accent hover:text-accent-foreground focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2`:`text-white hover:bg-white/10 hover:text-white focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-white dark:text-white`,n),children:[(0,Y.jsx)(iO,{locale:r}),(0,Y.jsx)(`span`,{children:r.toUpperCase()})]}),(0,Y.jsx)(nO,{align:`end`,className:`min-w-44`,children:i.map(e=>{let t=e===r;return(0,Y.jsxs)(rO,{onClick:()=>a(e),"aria-current":t?`true`:void 0,className:fe(`flex items-center justify-between gap-3 font-medium cursor-pointer`,t&&`text-primary font-semibold`),children:[(0,Y.jsxs)(`span`,{className:`flex items-center gap-2`,children:[(0,Y.jsx)(iO,{locale:e}),(0,Y.jsx)(`span`,{children:Vy(e).name})]}),t&&(0,Y.jsx)(wy,{className:`h-4 w-4 shrink-0 text-primary`,"aria-hidden":`true`})]},e)})})]})}var oO=`inline-flex min-h-11 items-center rounded-sm text-violet-100 underline-offset-4 hover:text-white hover:underline focus-visible:outline-2 focus-visible:outline-offset-4 focus-visible:outline-amber-300`;function sO(){let e=[{href:`/`,label:gr()},{href:`/unlimited`,label:iu()},{href:`/timed`,label:wl()},{href:`/archive`,label:Ea()}],t=[{href:`/how-to-play`,label:Ro()},{href:`/rules`,label:Jo()},{href:`/beginners-guide`,label:Vs()},{href:`/strategy`,label:vc()}],n=[{href:`https://queensgame.io`,label:Tt()},{href:`https://tangogrid.com`,label:ui()},{href:`https://shikakugame.com`,label:Il()},{href:`https://zippuzzle.org`,label:it()},{href:`https://patchespuzzle.org`,label:ei()},{href:`https://akagramgame.com`,label:ql()}];return(0,Y.jsx)(`footer`,{className:`bg-violet-950 px-4 pt-12 pb-6 text-white sm:px-8 sm:pt-16`,children:(0,Y.jsxs)(`div`,{className:`mx-auto w-full max-w-6xl`,children:[(0,Y.jsxs)(`div`,{className:`grid gap-10 pb-10 md:grid-cols-2 md:gap-12 md:pb-14`,children:[(0,Y.jsxs)(`section`,{"aria-labelledby":`footer-about-title`,children:[(0,Y.jsx)(`h2`,{id:`footer-about-title`,className:`font-display text-2xl font-bold tracking-tight`,children:ps()}),(0,Y.jsx)(`p`,{className:`mt-4 max-w-lg text-base leading-7 text-violet-100`,children:Re()}),(0,Y.jsxs)(`div`,{className:`mt-3 flex flex-wrap gap-x-6`,children:[(0,Y.jsx)(V,{href:`/about`,className:oO,children:ct()}),(0,Y.jsx)(V,{href:`/contact`,className:oO,children:vt()})]}),(0,Y.jsx)(`p`,{className:`mt-4 text-sm leading-6 text-violet-200`,children:Cs()})]}),(0,Y.jsxs)(`div`,{className:`grid grid-cols-2 gap-6 sm:gap-10 lg:grid-cols-3`,children:[(0,Y.jsxs)(`nav`,{"aria-labelledby":`footer-play-title`,children:[(0,Y.jsx)(`h2`,{id:`footer-play-title`,className:`font-display text-lg font-bold`,children:sr()}),(0,Y.jsx)(`ul`,{className:`mt-3 space-y-1`,children:e.map(({href:e,label:t})=>(0,Y.jsx)(`li`,{children:(0,Y.jsx)(V,{href:e,className:oO,children:t})},e))})]}),(0,Y.jsxs)(`nav`,{"aria-labelledby":`footer-learn-title`,children:[(0,Y.jsx)(`h2`,{id:`footer-learn-title`,className:`font-display text-lg font-bold`,children:Xn()}),(0,Y.jsx)(`ul`,{className:`mt-3 space-y-1`,children:t.map(({href:e,label:t})=>(0,Y.jsx)(`li`,{children:(0,Y.jsx)(V,{href:e,className:oO,children:t})},e))})]}),(0,Y.jsxs)(`nav`,{"aria-labelledby":`footer-more-puzzles-title`,children:[(0,Y.jsx)(`h2`,{id:`footer-more-puzzles-title`,className:`font-display text-lg font-bold`,children:mt()}),(0,Y.jsx)(`ul`,{className:`mt-3 space-y-1`,children:n.map(({href:e,label:t})=>(0,Y.jsx)(`li`,{children:(0,Y.jsx)(V,{href:e,className:oO,children:t})},e))})]})]})]}),(0,Y.jsxs)(`div`,{className:`flex flex-col gap-4 border-t border-white/15 pt-5 text-sm lg:flex-row lg:items-center lg:justify-between`,children:[(0,Y.jsx)(`p`,{className:`text-violet-200`,children:Jr({year:String(new Date().getFullYear())})}),(0,Y.jsx)(aO,{variant:`inline`,className:`lg:justify-center`}),(0,Y.jsxs)(`nav`,{"aria-label":ri(),className:`flex flex-wrap gap-x-6`,children:[(0,Y.jsx)(V,{href:`/feedback`,className:oO,children:Xi()}),(0,Y.jsx)(V,{href:`/privacy-policy`,className:oO,children:kl()}),(0,Y.jsx)(V,{href:`/terms-of-service`,className:oO,children:Ze()})]})]})]})})}function cO({value:e,className:t}){return(0,Y.jsx)(`svg`,{"aria-hidden":`true`,viewBox:`0 0 40 40`,fill:`none`,className:fe(`tango-symbol`,e===1?`tango-sun`:`tango-moon`,t),children:e===1?(0,Y.jsxs)(Y.Fragment,{children:[(0,Y.jsx)(`circle`,{cx:`20`,cy:`20`,r:`9`,fill:`currentColor`}),(0,Y.jsx)(`path`,{d:`M20 3v4m0 26v4M3 20h4m26 0h4M8 8l3 3m18 18 3 3M8 32l3-3m18-18 3-3`,stroke:`currentColor`,strokeWidth:`3`,strokeLinecap:`round`})]}):(0,Y.jsx)(`path`,{d:`M31.5 25.5A14 14 0 0 1 14.5 8.4 14 14 0 1 0 31.5 25.5Z`,fill:`currentColor`})})}var lO=J.createContext(void 0);function uO(e){let t=J.useContext(lO);if(e===!1&&t===void 0)throw Error(su(27));return t}var dO={...cb,...Qy},fO=J.forwardRef(function(e,t){let{render:n,className:r,forceRender:i=!1,...a}=e,{store:o}
23=uO(),s=o.useState(`open`),c=o.useState(`nested`),l=o.useState(`mounted`);return _t(`div`,e,{state:{open:s,transitionStatus:o.useState(`transitionStatus`)},ref:[o.context.backdropRef,t],stateAttributesMapping:dO,props:[{role:`presentation`,hidden:!l,style:{userSelect:`none`,WebkitUserSelect:`none`}},a],enabled:i||!c})}),pO=J.forwardRef(function(e,t){let{render:n,className:r,disabled:i=!1,nativeButton:a=!0,...o}=e,{store:s}=uO(),c=s.useState(`open`);function l(e){c&&s.setOpen(!1,Yb(_b,e.nativeEvent))}let{getButtonProps:u,buttonRef:d}=Gs({disabled:i,native:a});return _t(`button`,e,{state:{disabled:i},ref:[t,d],props:[{onClick:l},o,u]})}),mO=J.forwardRef(function(e,t){let{render:n,className:r,id:i,...a}=e,{store:o}=uO(),s=Jb(i);return o.useSyncedValueWithCleanup(`descriptionElementId`,s),_t(`p`,e,{ref:t,props:[{id:s},a]})}),hO=function(e){return e.nestedDialogs=`--nested-dialogs`,e}({}),gO=function(e){return e[e.open=$y.open]=`open`,e[e.closed=$y.closed]=`closed`,e[e.startingStyle=$y.startingStyle]=`startingStyle`,e[e.endingStyle=$y.endingStyle]=`endingStyle`,e.nested=`data-nested`,e.nestedDialogOpen=`data-nested-dialog-open`,e}({}),_O=J.createContext(void 0);function vO(){let e=J.useContext(_O);if(e===void 0)throw Error(su(26));return e}var yO={...cb,...Qy,nestedDialogOpen(e){return e?{[gO.nestedDialogOpen]:``}:null}},bO=J.forwardRef(function(e,t){let{className:n,finalFocus:r,initialFocus:i,render:a,...o}=e,{store:s}=uO(),c=s.useState(`descriptionElementId`),l=s.useState(`disablePointerDismissal`),u=s.useState(`floatingRootContext`),d=s.useState(`popupProps`),f=s.useState(`modal`),p=s.useState(`mounted`),m=s.useState(`nested`),h=s.useState(`nestedOpenDialogCount`),g=s.useState(`open`),_=s.useState(`openMethod`),v=s.useState(`titleElementId`),y=s.useState(`transitionStatus`),b=s.useState(`role`);vO(),ox({open:g,ref:s.context.popupRef,onComplete(){g&&s.context.onOpenChangeComplete?.(!0)}});function x(e){return e===`touch`?s.context.popupRef.current:!0}let S=i===void 0?x:i,C=_t(`div`,e,{state:{open:g,nested:m,transitionStatus:y,nestedDialogOpen:h>0},props:[d,{"aria-labelledby":v??void 0,"aria-describedby":c??void 0,role:b,tabIndex:-1,hidden:!p,onKeyDown(e){$E.has(e.key)&&e.stopPropagation()},style:{[hO.nestedDialogs]:h}},o],ref:[t,s.context.popupRef,s.useStateSetter(`popupElement`)],stateAttributesMapping:yO});return(0,Y.jsx)($C,{context:u,openInteractionType:_,disabled:!p,closeOnFocusOut:!l,initialFocus:S,returnFocus:r,modal:f!==!1,restoreFocus:`popup`,children:C})}),xO=J.forwardRef(function(e,t){let{keepMounted:n=!1,...r}=e,{store:i}=uO(),a=i.useState(`mounted`),o=i.useState(`modal`),s=i.useState(`open`);return a||n?(0,Y.jsx)(_O.Provider,{value:n,children:(0,Y.jsxs)(PC,{ref:t,...r,children:[a&&o===!0&&(0,Y.jsx)(SD,{ref:i.context.internalBackdropRef,inert:oD(!s)}),e.children]})}):null});function SO(e){let{store:t,parentContext:n,actionsRef:r}=e,i=t.useState(`open`),a=t.useState(`disablePointerDismissal`),o=t.useState(`modal`),s=t.useState(`popupElement`),{openMethod:c,triggerProps:l}=RD(i);tE(t);let{forceUnmount:u}=nE(i,t),d=U(e=>{let n=Yb(e);return n.preventUnmountOnClose=()=>{t.set(`preventUnmountingOnClose`,!0)},n}),f=J.useCallback(()=>{t.setOpen(!1,d(Cb))},[t,d]);J.useImperativeHandle(r,()=>({unmount:u,close:f}),[u,f]);let p=uE({popupStore:t,onOpenChange:t.setOpen,treatPopupAsFloatingElement:!0,noEmit:!0}),[m,h]=J.useState(0),g=m===0,_=NE(p),v=iw(p,{outsidePressEvent(){return t.context.
23internalBackdropRef.current||t.context.backdropRef.current?`intentional`:{mouse:o===`trap-focus`?`sloppy`:`intentional`,touch:`sloppy`}},outsidePress(e){if(!t.context.outsidePressEnabledRef.current||`button`in e&&e.button!==0||`touches`in e&&e.touches.length!==1)return!1;let n=yx(e);if(g&&!a){let e=n;return o&&(t.context.internalBackdropRef.current||t.context.backdropRef.current)?t.context.internalBackdropRef.current===e||t.context.backdropRef.current===e||X(e,s)&&!e?.hasAttribute(`data-base-ui-portal`):!0}return!1},escapeKey:g});ND(i&&o===!0,s);let{getReferenceProps:y,getFloatingProps:b,getTriggerProps:x}=SE([_,v]);t.useContextCallback(`onNestedDialogOpen`,e=>{h(e+1)}),t.useContextCallback(`onNestedDialogClose`,()=>{h(0)}),J.useEffect(()=>(n?.onNestedDialogOpen&&i&&n.onNestedDialogOpen(m),n?.onNestedDialogClose&&!i&&n.onNestedDialogClose(),()=>{n?.onNestedDialogClose&&i&&n.onNestedDialogClose()}),[i,n,m]);let S=J.useMemo(()=>y(l),[y,l]),C=J.useMemo(()=>x(l),[x,l]),w=J.useMemo(()=>b(),[b]);t.useSyncedValues({openMethod:c,activeTriggerProps:S,inactiveTriggerProps:C,popupProps:w,floatingRootContext:p,nestedOpenDialogCount:m})}var CO={...sE,modal:Z(e=>e.modal),nested:Z(e=>e.nested),nestedOpenDialogCount:Z(e=>e.nestedOpenDialogCount),disablePointerDismissal:Z(e=>e.disablePointerDismissal),openMethod:Z(e=>e.openMethod),descriptionElementId:Z(e=>e.descriptionElementId),titleElementId:Z(e=>e.titleElementId),viewportElement:Z(e=>e.viewportElement),role:Z(e=>e.role)},wO=class extends XT{constructor(e){super(TO(e),{popupRef:J.createRef(),backdropRef:J.createRef(),internalBackdropRef:J.createRef(),outsidePressEnabledRef:{current:!0},triggerElements:new rE,onOpenChange:void 0,onOpenChangeComplete:void 0},CO)}setOpen=(e,t)=>{if(t.preventUnmountOnClose=()=>{this.set(`preventUnmountingOnClose`,!0)},!e&&t.trigger==null&&this.state.activeTriggerId!=null&&(t.trigger=this.state.activeTriggerElement??void 0),this.context.onOpenChange?.(e,t),t.isCanceled)return;let n={open:e,nativeEvent:t.event,reason:t.reason,nested:this.state.nested};this.state.floatingRootContext.context.events?.emit(`openchange`,n);let r={open:e},i=t.trigger?.id??null;(i||e)&&(r.activeTriggerId=i,r.activeTriggerElement=t.trigger??null),this.update(r)}};function TO(e={}){return{...aE(),modal:!0,disablePointerDismissal:!1,popupElement:null,viewportElement:null,descriptionElementId:void 0,titleElementId:void 0,openMethod:null,nested:!1,nestedOpenDialogCount:0,role:`dialog`,...e}}function EO(e){let{children:t,open:n,defaultOpen:r=!1,onOpenChange:i,onOpenChangeComplete:a,disablePointerDismissal:o=!1,modal:s=!0,actionsRef:c,handle:l,triggerId:u,defaultTriggerId:d=null}=e,f=uO(!0),p=!!f,m=Rr(()=>l?.store??new wO({open:r,openProp:n,activeTriggerId:d,triggerIdProp:u,modal:s,disablePointerDismissal:o,nested:p})).current;wD(()=>{n===void 0&&m.state.open===!1&&r===!0&&m.update({open:!0,activeTriggerId:d})}),m.useControlledProp(`openProp`,n),m.useControlledProp(`triggerIdProp`,u),m.useSyncedValues({disablePointerDismissal:o,nested:p,modal:s}),m.useContextCallback(`onOpenChange`,i),m.useContextCallback(`onOpenChangeComplete`,a);let h=m.useState(`payload`);SO({store:m,actionsRef:c,parentContext:f?.store.context,onOpenChange:i,triggerIdProp:u});let g=J.useMemo(()=>({store:m}),[m]);return(0,Y.jsx)(lO.Provider,{value:g,children:typeof t==`function`?t({payload:h}):t})}var DO=J.forwardRef(function(e,t){let{render:n,className:r,id:i,...a}=e,{store:o}=uO(),s=Jb(i);return o.useSyncedValueWithCleanup(`titleElementId`,s),_t(`h2`,e,{ref:t,props:[{id:s},a]})}),OO=J.forwardRef(function(e,t){let{render:n,className:r,disabled:i=!1,nativeButton:a=!0,id:o,payload:s,handle:c,...l}=e,u=uO(!0),d=c?.store??u?.store;if(!d)throw Error(su(79));let f=Jb(o),p=d.useState(`floatingRootContext`),m=d.useState(`isOpenedByTrigger`,f),h=J.useRef(null),{registerTrigger:g,isMountedByThisTrigger:_}=eE(f,h,d,{payload:s}),{getButtonProps:v,buttonRef:y}=Gs({disabled:i,native:a}),b=SE([ew(p,{enabled:p!=null})]),x={disabled:i,open:m},S=d.useState(`triggerProps`,_);return _t(`button`,e,{state:x,ref:[y,t,g,h],props:[b.getReferenceProps(),S,{[st]:``,id:f},l,v],stateAttributesMapping:ob})});function kO({...e}){return(0,Y.jsx)(EO,{"data-slot":`dialog`,...e})}function AO({asChild:e=!1,children:t,...n}){let r=e&&J.isValidElement(t)?t:void 0;return(0,Y.jsx)(OO,{"data-slot":`dialog-trigger`,render:r,...n,children:r?r.props.children:t})}function jO({...e}){return(0,Y.jsx)(xO,{"data-slot":`dialog-portal`,...e})}function MO({...e}){return(0,Y.jsx)(pO,{"data-slot":`dialog-close`,...e})}function NO({className:e,...t}){return(0,Y.jsx)(fO,{"data-slot":`dialog-overlay`,className:fe(`fixed inset-0 isolate z-50 bg-vi
23olet-950/80 duration-200 data-open:animate-in data-open:fade-in-0 data-closed:animate-out data-closed:fade-out-0`,e),...t})}function PO({className:e,children:t,showCloseButton:n=!0,...r}){return(0,Y.jsxs)(jO,{children:[(0,Y.jsx)(NO,{}),(0,Y.jsxs)(bO,{"data-slot":`dialog-content`,className:fe(`fixed top-1/2 left-1/2 z-50 grid w-full max-w-[calc(100%-2rem)] -translate-x-1/2 -translate-y-1/2 gap-4 border bg-background p-6 text-foreground shadow-lg duration-200 outline-none sm:max-w-lg sm:rounded-lg data-open:animate-in data-open:fade-in-0 data-open:zoom-in-95 data-closed:animate-out data-closed:fade-out-0 data-closed:zoom-out-95`,e),...r,children:[t,n&&(0,Y.jsxs)(pO,{"data-slot":`dialog-close`,render:(0,Y.jsx)(Zc,{variant:`ghost`,className:`absolute top-4 right-4 rounded-sm opacity-70 ring-offset-background transition-opacity hover:bg-transparent hover:opacity-100 focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2`,size:`icon-sm`}),children:[(0,Y.jsx)(Py,{}),(0,Y.jsx)(`span`,{className:`sr-only`,children:zn()})]})]})]})}function FO({className:e,...t}){return(0,Y.jsx)(`div`,{"data-slot":`dialog-header`,className:fe(`flex flex-col gap-1.5 text-center sm:text-left`,e),...t})}function IO({className:e,...t}){return(0,Y.jsx)(DO,{"data-slot":`dialog-title`,className:fe(`text-lg leading-none font-semibold tracking-tight`,e),...t})}function LO({className:e,...t}){return(0,Y.jsx)(mO,{"data-slot":`dialog-description`,className:fe(`text-sm text-muted-foreground *:[a]:underline *:[a]:underline-offset-3 *:[a]:hover:text-foreground`,e),...t})}function RO({value:e}){return(0,Y.jsx)(cO,{value:e,className:`size-9 sm:size-11 ${e===1?`text-amber-600`:`text-violet-600`}`})}function zO({step:e}){return e===0?(0,Y.jsx)(`div`,{className:`flex items-center gap-3`,"aria-hidden":`true`,children:[1,2,0].map((e,t)=>(0,Y.jsxs)(`div`,{className:`flex items-center gap-3`,children:[t>0&&(0,Y.jsx)(Cy,{className:`size-4 text-muted-foreground`}),(0,Y.jsx)(`div`,{className:`flex size-14 items-center justify-center rounded-xl border-2 border-violet-300 bg-white sm:size-20`,children:e>0&&(0,Y.jsx)(RO,{value:e})})]},e))}):e===3?(0,Y.jsx)(`div`,{className:`space-y-5`,"aria-hidden":`true`,children:[`=`,`×`].map(e=>(0,Y.jsxs)(`div`,{className:`flex items-center gap-5 rounded-xl border bg-white p-3`,children:[(0,Y.jsx)(RO,{value:1}),(0,Y.jsx)(`span`,{className:`text-3xl font-bold text-violet-950`,children:e}),(0,Y.jsx)(RO,{value:e===`=`?1:2})]},e))}):(0,Y.jsx)(`div`,{className:`grid w-full max-w-64 grid-cols-4 overflow-hidden rounded-xl border-2 border-violet-300`,"aria-hidden":`true`,children:[1,1,2,2,1,2,1,2,2,1,2,1,2,2,1,1].map((t,n)=>(0,Y.jsx)(`div`,{className:`flex aspect-square items-center justify-center border border-violet-200 ${e===1?n<4||n%4==0?`bg-violet-100`:`bg-white`:n<4?`bg-violet-100`:`bg-white`}`,children:(0,Y.jsx)(RO,{value:t})},n))})}function BO(){let[e,t]=(0,J.useState)(!1),[n,r]=(0,J.useState)(0),i=[{title:kr(),body:da()},{title:Ui(),body:ea()},{title:fn(),body:Sc()},{title:Cn(),body:Lt()}],a=`focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-ring`;return(0,Y.jsxs)(kO,{open:e,onOpenChange:e=>{t(e),e&&r(0)},children:[(0,Y.jsx)(AO,{"aria-label":Ul(),title:Ul(),className:`inline-flex size-9 items-center justify-center rounded-lg hover:bg-violet-800 focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-white`,children:(0,Y.jsx)(Ey,{className:`size-5`,"aria-hidden":`true`})}),(0,Y.jsxs)(PO,{showCloseButton:!1,className:`max-h-[calc(100dvh-2rem)] gap-5 overflow-y-auto rounded-3xl p-5 [--tango-moon:#4F46E5] [--tango-sun:#C65D00] motion-reduce:animate-none sm:max-w-xl sm:gap-6 sm:rounded-3xl sm:p-8`,children:[(0,Y.jsx)(MO,{"aria-label":Ni(),className:`absolute top-4 right-4 flex size-10 items-center justify-center rounded-full text-muted-foreground hover:bg-muted ${a}`,children:(0,Y.jsx)(Py,{className:`size-6`,"aria-hidden":`true`})}),(0,Y.jsxs)(`div`,{"aria-live":`polite`,"aria-atomic":`true`,children:[(0,Y.jsxs)(`p`,{className:`mb-2 text-sm font-medium text-muted-foreground`,children:[Ul(),` · `,n+1,` / `,i.length]}),(0,Y.jsx)(IO,{className:`min-h-16 pr-9 font-display text-2xl leading-tight font-semibold sm:text-3xl`,children:i[n].title}),(0,Y.jsx)(`div`,{className:`my-5 flex min-h-64 items-center justify-center rounded-2xl border bg-muted/40 p-4 sm:my-6 sm:p-5`,children:(0,Y.jsx)(zO,{step:n})}),(0,Y.jsx)(LO,{className:`min-h-24 text-base leading-relaxed sm:min-h-20 sm:text-lg`,children:i[n].body})]}),(0,Y.jsxs)(`div`,{className:`flex items-center justify-between gap-2`,children:[(0,Y.jsxs)(`button`,{type:`button`,disabled:n===0,onClick:()=>r(n-1),className:`flex min-h-11 items-center gap-1 rounded-xl px-2 text-sm font-medium hover:bg-muted disabled:invisible ${a}`,children:[(0,Y.jsx)(Sy,{className:`size-4`,"aria-hidden":`true`}),mi()]}),(0,Y.jsx)(`div`,{className:`flex gap-1.5`,"aria-hidden":`true`,children:i.map((e,t)=>(0,Y.jsx)(`span`,{className:`h-2 rounded-full ${t===n?`w-6 bg-primary`:`w-2 bg-border`}`},t))}),(0,Y.jsxs)(`button`,{type:`button`,onClick:()=>{n===i.length-1?t(!1):r(n+1)},className:`flex min-h-11 items-center justify-center gap-2 rounded-xl bg-primary px-4 text-sm font-semibold text-primary-foreground hover:opacity-90 ${a}`,children:[n===i.length-1?wi():qt(),(0,Y.jsx)(Cy,{className:`size-4`,"aria-hidden":`true`})]})]}),(0,Y.jsx)(V,{href:`/how-to-play`,onClick:()=>t(!1),className:`mx-auto rounded text-sm text-muted-foreground underline underline-offset-4 hover:text-foreground ${a}`,children:Ve()})]})]})}var VO=`theme`;function HO(){return typeof document>
23`u`?`light`:document.documentElement.classList.contains(`dark`)?`dark`:`light`}function UO({className:e=``}){let[t,n]=(0,J.useState)(!1),[r,i]=(0,J.useState)(`light`);if((0,J.useEffect)(()=>{let e=window.localStorage.getItem(VO),t=e===`dark`||e===`light`?e:window.matchMedia(`(prefers-color-scheme: dark)`).matches?`dark`:HO();document.documentElement.classList.toggle(`dark`,t===`dark`),i(t),n(!0)},[]),!t)return(0,Y.jsx)(`span`,{"aria-hidden":`true`,className:`block size-9 shrink-0 ${e}`});let a=r===`dark`?`light`:`dark`,o=a===`light`?er():Wn();return(0,Y.jsx)(`button`,{type:`button`,"aria-label":o,title:o,className:`inline-flex size-9 shrink-0 items-center justify-center rounded-lg text-muted-foreground transition-colors hover:bg-accent hover:text-accent-foreground focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-ring ${e}`,onClick:()=>{document.documentElement.classList.toggle(`dark`,a===`dark`),window.localStorage.setItem(VO,a),i(a)},children:r===`dark`?(0,Y.jsx)(My,{className:`size-5`,"aria-hidden":`true`}):(0,Y.jsx)(Ay,{className:`size-5`,"aria-hidden":`true`})})}function WO(){return(0,Y.jsxs)(`header`,{className:`flex min-h-12 flex-wrap items-center justify-between gap-3 border-b border-violet-300/70 bg-violet-950 px-4 text-white sm:px-8 dark:border-violet-400/40`,children:[(0,Y.jsxs)(V,{href:`/`,"aria-label":Bl(),className:`flex items-center gap-3 font-display text-2xl font-semibold`,children:[(0,Y.jsx)(`img`,{src:`/logo.svg`,alt:``,width:`40`,height:`40`}),(0,Y.jsx)(`span`,{children:Se.app_name})]}),(0,Y.jsxs)(`nav`,{"aria-label":Ga(),className:`flex shrink-0 items-center gap-1 text-sm font-medium text-white sm:gap-2`,children:[(0,Y.jsx)(BO,{}),(0,Y.jsx)(UO,{className:`text-white! hover:bg-violet-800! hover:text-white! focus-visible:outline-white`}),(0,Y.jsx)(aO,{className:`rounded-lg text-white! hover:bg-violet-800! hover:text-white! focus-visible:outline-white`})]})]})}function GO(e){if(!e||typeof document>`u`)return;let t=document.head||document.getElementsByTagName(`head`)[0],n=document.createElement(`style`);n.type=`text/css`,t.appendChild(n),n.styleSheet?n.styleSheet.cssText=e:n.appendChild(document.createTextNode(e))}var KO=e=>{switch(e){case`success`:return YO;case`info`:return ZO;case`warning`:return XO;case`error`:return QO;default:return null}},qO=Array(12).fill(0),JO=({visible:e,className:t})=>J.createElement(`div`,{className:[`sonner-loading-wrapper`,t].filter(Boolean).join(` `),"data-visible":e},J.createElement(`div`,{className:`sonner-spinner`},qO.map((e,t)=>J.createElement(`div`,{className:`sonner-loading-bar`,key:`spinner-bar-${t}`})))),YO=J.createElement(`svg`,{xmlns:`http://www.w3.org/2000/svg`,viewBox:`0 0 20 20`,fill:`currentColor`,height:`20`,width:`20`},J.createElement(`path`,{fillRule:`evenodd`,d:`M10 18a8 8 0 100-16 8 8 0 000 16zm3.857-9.809a.75.75 0 00-1.214-.882l-3.483 4.79-1.88-1.88a.75.75 0 10-1.06 1.061l2.5 2.5a.75.75 0 001.137-.089l4-5.5z`,clipRule:`evenodd`})),XO=J.createElement(`svg`,{xmlns:`http://www.w3.org/2000/svg`,viewBox:`0 0 24 24`,fill:`currentColor`,height:`20`,width:`20`},J.createElement(`path`,{fillRule:`evenodd`,d:`M9.401 3.003c1.155-2 4.043-2 5.197 0l7.355 12.748c1.154 2-.29 4.5-2.599 4.5H4.645c-2.309 0-3.752-2.5-2.598-4.5L9.4 3.003zM12 8.25a.75.75 0 01.75.75v3.75a.75.75 0 01-1.5 0V9a.75.75 0 01.75-.75zm0 8.25a.75.75 0 100-1.5.75.75 0 000 1.5z`,clipRule:`evenodd`})),ZO=J.createElement(`svg`,{xmlns:`http://www.w3.org/2000/svg`,viewBox:`0 0 20 20`,fill:`currentColor`,height:`20`,width:`20`},J.createElement(`path`,{fillRule:`evenodd`,d:`M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-7-4a1 1 0 11-2 0 1 1 0 012 0zM9 9a.75.75 0 000 1.5h.253a.25.25 0 01.244.304l-.459 2.066A1.75 1.75 0 0010.747 15H11a.75.75 0 000-1.5h-.253a.25.25 0 01-.244-.304l.459-2.066A1.75 1.75 0 009.253 9H9z`,clipRule:`evenodd`})),QO=J.createElement(`svg`,{xmlns:`http://www.w3.org/2000/svg`,viewBox:`0 0 20 20`,fill:`currentColor`,height:`20`,width:`20`},J.createElement(`path`,{fillRule:`evenodd`,d:`M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-8-5a.75.75 0 01.75.75v4.5a.75.75 0 01-1.5 0v-4.5A.75.75 0 0110 5zm0 10a1 1 0 100-2 1 1 0 000 2z`,clipRule:`evenodd`})),$O=J.createElement(`svg`,{xmlns:`http://www.w3.org/2000/svg`,
23width:`12`,height:`12`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`1.5`,strokeLinecap:`round`,strokeLinejoin:`round`},J.createElement(`line`,{x1:`18`,y1:`6`,x2:`6`,y2:`18`}),J.createElement(`line`,{x1:`6`,y1:`6`,x2:`18`,y2:`18`})),ek=()=>{let[e,t]=J.useState(document.hidden);return J.useEffect(()=>{let e=()=>{t(document.hidden)};return document.addEventListener(`visibilitychange`,e),()=>window.removeEventListener(`visibilitychange`,e)},[]),e},tk=1,nk=new class{constructor(){this.subscribe=e=>(this.subscribers.push(e),()=>{let t=this.subscribers.indexOf(e);this.subscribers.splice(t,1)}),this.publish=e=>{this.subscribers.forEach(t=>t(e))},this.addToast=e=>{this.publish(e),this.toasts=[...this.toasts,e]},this.create=e=>{let{message:t,...n}=e,r=typeof e?.id==`number`||e.id?.length>0?e.id:tk++,i=this.toasts.find(e=>e.id===r),a=e.dismissible===void 0?!0:e.dismissible;return this.dismissedToasts.has(r)&&this.dismissedToasts.delete(r),i?this.toasts=this.toasts.map(n=>n.id===r?(this.publish({...n,...e,id:r,title:t}),{...n,...e,id:r,dismissible:a,title:t}):n):this.addToast({title:t,...n,dismissible:a,id:r}),r},this.dismiss=e=>(e?(this.dismissedToasts.add(e),requestAnimationFrame(()=>this.subscribers.forEach(t=>t({id:e,dismiss:!0})))):this.toasts.forEach(e=>{this.subscribers.forEach(t=>t({id:e.id,dismiss:!0}))}),e),this.message=(e,t)=>this.create({...t,message:e}),this.error=(e,t)=>this.create({...t,message:e,type:`error`}),this.success=(e,t)=>this.create({...t,type:`success`,message:e}),this.info=(e,t)=>this.create({...t,type:`info`,message:e}),this.warning=(e,t)=>this.create({...t,type:`warning`,message:e}),this.loading=(e,t)=>
23this.create({...t,type:`loading`,message:e}),this.promise=(e,t)=>{if(!t)return;let n;t.loading!==void 0&&(n=this.create({...t,promise:e,type:`loading`,message:t.loading,description:typeof t.description==`function`?void 0:t.description}));let r=Promise.resolve(e instanceof Function?e():e),i=n!==void 0,a,o=r.then(async e=>{if(a=[`resolve`,e],J.isValidElement(e))i=!1,this.create({id:n,type:`default`,message:e});else if(ik(e)&&!e.ok){i=!1;let r=typeof t.error==`function`?await t.error(`HTTP error! status: ${e.status}`):t.error,a=typeof t.description==`function`?await t.description(`HTTP error! status: ${e.status}`):t.description,o=typeof r==`object`&&!J.isValidElement(r)?r:{message:r};this.create({id:n,type:`error`,description:a,...o})}else if(e instanceof Error){i=!1;let r=typeof t.error==`function`?await t.error(e):t.error,a=typeof t.description==`function`?await t.description(e):t.description,o=typeof r==`object`&&!J.isValidElement(r)?r:{message:r};this.create({id:n,type:`error`,description:a,...o})}else if(t.success!==void 0){i=!1;let r=typeof t.success==`function`?await t.success(e):t.success,a=typeof t.description==`function`?await t.description(e):t.description,o=typeof r==`object`&&!J.isValidElement(r)?r:{message:r};this.create({id:n,type:`success`,description:a,...o})}}).catch(async e=>{if(a=[`reject`,e],t.error!==void 0){i=!1;let r=typeof t.error==`function`?await t.error(e):t.error,a=typeof t.description==`function`?await t.description(e):t.description,o=typeof r==`object`&&!J.isValidElement(r)?r:{message:r};this.create({id:n,type:`error`,description:a,...o})}}).finally(()=>{i&&(this.dismiss(n),n=void 0),t.finally==null||t.finally.call(t)}),s=()=>new Promise((e,t)=>o.then(()=>a[0]===`reject`?t(a[1]):e(a[1])).catch(t));return typeof n!=`string`&&typeof n!=`number`?{unwrap:s}:Object.assign(n,{unwrap:s})},this.custom=(e,t)=>{let n=t?.id||tk++;return this.create({jsx:e(n),id:n,...t}),n},this.getActiveToasts=()=>this.toasts.filter(e=>!this.dismissedToasts.has(e.id)),this.subscribers=[],this.toasts=[],this.dismissedToasts=new Set}},rk=(e,t)=>{let n=t?.id||tk++;return nk.addToast({title:e,...t,id:n}),n},ik=e=>e&&typeof e==`object`&&`ok`in e&&typeof e.ok==`boolean`&&`status`in e&&typeof e.status==`number`,ak=Object.assign(rk,{success:nk.success,info:nk.info,warning:nk.warning,error:nk.error,custom:nk.custom,message:nk.message,promise:nk.promise,dismiss:nk.dismiss,loading:nk.loading},{getHistory:()=>nk.toasts,getToasts:()=>nk.getActiveToasts()});GO(`
vendor: 14,859 bytes, line 23
23[data-sonner-toaster][dir=ltr],html[dir=ltr]{--toast-icon-margin-start:-3px;--toast-icon-margin-end:4px;--toast-svg-margin-start:-1px;--toast-svg-margin-end:0px;--toast-button-margin-start:auto;--toast-button-margin-end:0;--toast-close-button-start:0;--toast-close-button-end:unset;--toast-close-button-transform:translate(-35%, -35%)}[data-sonner-toaster][dir=rtl],html[dir=rtl]{--toast-icon-margin-start:4px;--toast-icon-margin-end:-3px;--toast-svg-margin-start:0px;--toast-svg-margin-end:-1px;--toast-button-margin-start:0;--toast-button-margin-end:auto;--toast-close-button-start:unset;--toast-close-button-end:0;--toast-close-button-transform:translate(35%, -35%)}[data-sonner-toaster]{position:fixed;width:var(--width);font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;--gray1:hsl(0, 0%, 99%);--gray2:hsl(0, 0%, 97.3%);--gray3:hsl(0, 0%, 95.1%);--gray4:hsl(0, 0%, 93%);--gray5:hsl(0, 0%, 90.9%);--gray6:hsl(0, 0%, 88.7%);--gray7:hsl(0, 0%, 85.8%);--gray8:hsl(0, 0%, 78%);--gray9:hsl(0, 0%, 56.1%);--gray10:hsl(0, 0%, 52.3%);--gray11:hsl(0, 0%, 43.5%);--gray12:hsl(0, 0%, 9%);--border-radius:8px;box-sizing:border-box;padding:0;margin:0;list-style:none;outline:0;z-index:999999999;transition:transform .4s ease}@media (hover:none) and (pointer:coarse){[data-sonner-toaster][data-lifted=true]{transform:none}}[data-sonner-toaster][data-x-position=right]{right:var(--offset-right)}[data-sonner-toaster][data-x-position=left]{left:var(--offset-left)}[data-sonner-toaster][data-x-position=center]{left:50%;transform:translateX(-50%)}[data-sonner-toaster][data-y-position=top]{top:var(--offset-top)}[data-sonner-toaster][data-y-position=bottom]{bottom:var(--offset-bottom)}[data-sonner-toast]{--y:translateY(100%);--lift-amount:calc(var(--lift) * var(--gap));z-index:var(--z-index);position:absolute;opacity:0;transform:var(--y);touch-action:none;transition:transform .4s,opacity .4s,height .4s,box-shadow .2s;box-sizing:border-box;outline:0;overflow-wrap:anywhere}[data-sonner-toast][data-styled=true]{padding:16px;background:var(--normal-bg);border:1px solid var(--normal-border);color:var(--normal-text);border-radius:var(--border-radius);box-shadow:0 4px 12px rgba(0,0,0,.1);width:var(--width);font-size:13px;display:flex;align-items:center;gap:6px}[data-sonner-toast]:focus-visible{box-shadow:0 4px 12px rgba(0,0,0,.1),0 0 0 2px rgba(0,0,0,.2)}[data-sonner-toast][data-y-position=top]{top:0;--y:translateY(-100%);--lift:1;--lift-amount:calc(1 * var(--gap))}[data-sonner-toast][data-y-position=bottom]{bottom:0;--y:translateY(100%);--lift:-1;--lift-amount:calc(var(--lift) * var(--gap))}[data-sonner-toast][data-styled=true] [data-description]{font-weight:400;line-height:1.4;color:#3f3f3f}[data-rich-colors=true][data-sonner-toast][data-styled=true] [data-description]{color:inherit}[data-sonner-toaster][data-sonner-theme=dark] [data-description]{color:#e8e8e8}[data-sonner-toast][data-styled=true] [data-title]{font-weight:500;line-height:1.5;color:inherit}[data-sonner-toast][data-styled=true] [data-icon]{display:flex;height:16px;width:16px;position:relative;justify-content:flex-start;align-items:center;flex-shrink:0;margin-left:var(--toast-icon-margin-start);margin-right:var(--toast-icon-margin-end)}[data-sonner-toast][data-promise=true] [data-icon]>svg{opacity:0;transform:scale(.8);transform-origin:center;animation:sonner-fade-in .3s ease forwards}[data-sonner-toast][data-styled=true] [data-icon]>*{flex-shrink:0}[data-sonner-toast][data-styled=true] [data-icon] svg{margin-left:var(--toast-svg-margin-start);margin-right:var(--toast-svg-margin-end)}[data-sonner-toast][data-styled=true] [data-content]{display:flex;flex-direction:column;gap:2px}[data-sonner-toast][data-styled=true] [data-button]{border-radius:4px;padding-left:8px;padding-right:8px;height:24px;font-size:12px;color:var(--normal-bg);background:var(--normal-text);margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end);border:none;font-weight:500;cursor:pointer;outline:0;display:flex;align-items:center;flex-shrink:0;transition:opacity .4s,box-shadow .2s}[data-sonner-toast][data-styled=true] [data-button]:focus-visible{box-shadow:0 0 0 2px rgba(0,0,0,.4)}[data-sonner-toast][data-styled=true] [data-button]:first-of-type{margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end)}[data-sonner-toast][data-styled=true] [data-cancel]{color:var(--normal-text);background:rgba(0,0,0,.08)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast][data-styled=true] [data-cancel]{background:rgba(255,255,255,.3)}[data-sonner-toast][data-styled=true] [data-close-button]{position:absolute;left:var(--toast-close-button-start);right:var(--toast-close-button-end);top:0;height:20px;width:20px;display:flex;justify-content:center;align-items:center;padding:0;color:var(--gray12);background:var(--normal-bg);border:1px solid var(--gray4);transform:var(--toast-close-button-transform);border-radius:50%;cursor:pointer;z-index:1;transition:opacity .1s,background .2s,border-color .2s}[data-sonner-toast][data-styled=true] [data-close-button]:focus-visible{box-shadow:0 4px 12px rgba(0,0,0,.1),0 0 0 2px rgba(0,0,0,.2)}[data-sonner-toast][data-styled=true] [data-disabled=true]{cursor:not-allowed}[data-sonner-toast][data-styled=true]:hover [data-close-button]:hover{background:var(--gray2);border-color:var(--gray5)}[data-sonner-toast][data-swiping=true]::before{content:'';position:absolute;left:-100%;right:-100%;height:100%;z-index:-1}[data-sonner-toast][data-y-position=top][data-swiping=true]::before{bottom:50%;transform:scaleY(3) translateY(50%)}[data-sonner-toast][data-y-position=bottom][data-swiping=true]::before{top:50%;transform:scaleY(3) translateY(-50%)}[data-sonner-toast][data-swiping=false][data-removed=true]::before{content:'';position:absolute;inset:0;transform:scaleY(2)}[data-sonner-toast][data-expanded=true]::after{content:'';position:absolute;left:0;height:calc(var(--gap) + 1px);bottom:100%;width:100%}[data-sonner-toast][data-mounted=true]{--y:translateY(0);opacity:1}[data-sonner-toast][data-expanded=false][data-front=false]{--scale:var(--toasts-before) * 0.05 + 1;--y:translateY(calc(var(--lift-amount) * var(--toasts-before))) scale(calc(-1 * var(--scale)));height:var(--front-toast-height)}[data-sonner-toast]>*{transition:opacity .4s}[data-sonner-toast][data-x-position=right]{right:0}[data-sonner-toast][data-x-position=left]{left:0}[data-sonner-toast][data-expanded=false][data-front=false][data-styled=true]>*{opacity:0}[data-sonner-toast][data-visible=false]{opacity:0;pointer-events:none}[data-sonner-toast][data-mounted=true][data-expanded=true]{--y:translateY(calc(var(--lift) * var(--offset)));height:var(--initial-height)}[data-sonner-toast][data-removed=true][data-front=true][data-swipe-out=false]{--y:translateY(calc(var(--lift) * -100%));opacity:0}[data-sonner-toast][data-removed=true][data-front=false][data-swipe-out=false][data-expanded=true]{--y:translateY(calc(var(--lift) * var(--offset) + var(--lift) * -100%));opacity:0}[data-sonner-toast][data-removed=true][data-front=false][data-swipe-out=false][data-expanded=false]{--y:translateY(40%);opacity:0;transition:transform .5s,opacity .2s}[data-sonner-toast][data-removed=true][data-front=false]::before{height:calc(var(--initial-height) + 20%)}[data-sonner-toast][data-swiping=true]{transform:var(--y) translateY(var(--swipe-amount-y,0)) translateX(var(--swipe-amount-x,0));transition:none}[data-sonner-toast][data-swiped=true]{user-select:none}[data-sonner-toast][data-swipe-out=true][data-y-position=bottom],[data-sonner-toast][data-swipe-out=true][data-y-position=top]{animation-duration:.2s;animation-timing-function:ease-out;animation-fill-mode:forwards}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=left]{animation-name:swipe-out-left}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=right]{animation-name:swipe-out-right}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=up]{animation-name:swipe-out-up}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=down]{animation-name:swipe-out-down}@keyframes swipe-out-left{from{transform:var(--y) translateX(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translateX(calc(var(--swipe-amount-x) - 100%));opacity:0}}@keyframes swipe-out-right{from{transform:var(--y) translateX(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translateX(calc(var(--swipe-amount-x) + 100%));opacity:0}}@keyframes swipe-out-up{from{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) - 100%));opacity:0}}@keyframes swipe-out-down{from{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) + 100%));opacity:0}}@media (max-width:600px){[data-sonner-toaster]{position:fixed;right:var(--mobile-offset-right);left:var(--mobile-offset-left);width:100%}[data-sonner-toaster][dir=rtl]{left:calc(var(--mobile-offset-left) * -1)}[data-sonner-toaster] [data-sonner-toast]{left:0;right:0;width:calc(100% - var(--mobile-offset-left) * 2)}[data-sonner-toaster][data-x-position=left]{left:var(--mobile-offset-left)}[data-sonner-toaster][data-y-position=bottom]{bottom:var(--mobile-offset-bottom)}[data-sonner-toaster][data-y-position=top]{top:var(--mobile-offset-top)}[data-sonner-toaster][data-x-position=center]{left:var(--mobile-offset-left);right:var(--mobile-offset-right);transform:none}}[data-sonner-toaster][data-sonner-theme=light]{--normal-bg:#fff;--normal-border:var(--gray4);--normal-text:var(--gray12);--success-bg:hsl(143, 85%, 96%);--success-border:hsl(145, 92%, 87%);--success-text:hsl(140, 100%, 27%);--info-bg:hsl(208, 100%, 97%);--info-border:hsl(221, 91%, 93%);--info-text:hsl(210, 92%, 45%);--warning-bg:hsl(49, 100%, 97%);--warning-border:hsl(49, 91%, 84%);--warning-text:hsl(31, 92%, 45%);--error-bg:hsl(359, 100%, 97%);--error-border:hsl(359, 100%, 94%);--error-text:hsl(360, 100%, 45%)}[data-sonner-toaster][data-sonner-theme=light] [data-sonner-toast][data-invert=true]{--normal-bg:#000;--normal-border:hsl(0, 0%, 20%);--normal-text:var(--gray1)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast][data-invert=true]{--normal-bg:#fff;--normal-border:var(--gray3);--normal-text:var(--gray12)}[data-sonner-toaster][data-sonner-theme=dark]{--normal-bg:#000;--normal-bg-hover:hsl(0, 0%, 12%);--normal-border:hsl(0, 0%, 20%);--normal-border-hover:hsl(0, 0%, 25%);--normal-text:var(--gray1);--success-bg:hsl(150, 100%, 6%);--success-border:hsl(147, 100%, 12%);--success-text:hsl(150, 86%, 65%);--info-bg:hsl(215, 100%, 6%);--info-border:hsl(223, 43%, 17%);--info-text:hsl(216, 87%, 65%);--warning-bg:hsl(64, 100%, 6%);--warning-border:hsl(60, 100%, 9%);--warning-text:hsl(46, 87%, 65%);--error-bg:hsl(358, 76%, 10%);--error-border:hsl(357, 89%, 16%);--error-text:hsl(358, 100%, 81%)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast] [data-close-button]{background:var(--normal-bg);border-color:var(--normal-border);color:var(--normal-text)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast] [data-close-button]:hover{background:var(--normal-bg-hover);border-color:var(--normal-border-hover)}[data-rich-colors=true][data-sonner-toast][data-type=success]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[data-rich-colors=true][data-sonner-toast][data-type=success] [data-close-button]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[data-rich-colors=true][data-sonner-toast][data-type=info]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[data-rich-colors=true][data-sonner-toast][data-type=info] [data-close-button]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[data-rich-colors=true][data-sonner-toast][data-type=warning]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[data-rich-colors=true][data-sonner-toast][data-type=warning] [data-close-button]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[data-rich-colors=true][data-sonner-toast][data-type=error]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}[data-rich-colors=true][data-sonner-toast][data-type=error] [data-close-button]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}.sonner-loading-wrapper{--size:16px;height:var(--size);width:var(--size);position:absolute;inset:0;z-index:10}.sonner-loading-wrapper[data-visible=false]{transform-origin:center;animation:sonner-fade-out .2s ease forwards}.sonner-spinner{position:relative;top:50%;left:50%;height:var(--size);width:var(--size)}.sonner-loading-bar{animation:sonner-spin 1.2s linear infinite;background:var(--gray11);border-radius:6px;height:8%;left:-10%;position:absolute;top:-3.9%;width:24%}.sonner-loading-bar:first-child{animation-delay:-1.2s;transform:rotate(.0001deg) translate(146%)}.sonner-loading-bar:nth-child(2){animation-delay:-1.1s;transform:rotate(30deg) translate(146%)}.sonner-loading-bar:nth-child(3){animation-delay:-1s;transform:rotate(60deg) translate(146%)}.sonner-loading-bar:nth-child(4){animation-delay:-.9s;transform:rotate(90deg) translate(146%)}.sonner-loading-bar:nth-child(5){animation-delay:-.8s;transform:rotate(120deg) translate(146%)}.sonner-loading-bar:nth-child(6){animation-delay:-.7s;transform:rotate(150deg) translate(146%)}.sonner-loading-bar:nth-child(7){animation-delay:-.6s;transform:rotate(180deg) translate(146%)}.sonner-loading-bar:nth-child(8){animation-delay:-.5s;transform:rotate(210deg) translate(146%)}.sonner-loading-bar:nth-child(9){animation-delay:-.4s;transform:rotate(240deg) translate(146%)}.sonner-loading-bar:nth-child(10){animation-delay:-.3s;transform:rotate(270deg) translate(146%)}.sonner-loading-bar:nth-child(11){animation-delay:-.2s;transform:rotate(300deg) translate(146%)}.sonner-loading-bar:nth-child(12){animation-delay:-.1s;transform:rotate(330deg) translate(146%)}@keyframes sonner-fade-in{0%{opacity:0;transform:scale(.8)}100%{opacity:1;transform:scale(1)}}@keyframes sonner-fade-out{0%{opacity:1;transform:scale(1)}100%{opacity:0;transform:scale(.8)}}@keyframes sonner-spin{0%{opacity:1}100%{opacity:.15}}@media (prefers-reduced-motion){.sonner-loading-bar,[data-sonner-toast],[data-sonner-toast]>*{transition:none!important;animation:none!important}}.sonner-loader{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);transform-origin:center;transition:opacity .2s,transform .2s}.sonner-loader[data-visible=false]{opacity:0;transform:scale(.8) translate(-50%,-50%)}
23`);function ok(e){return e.label!==void 0}var sk=3,ck=`24px`,lk=`16px`,uk=4e3,dk=356,fk=14,pk=45,mk=200;function hk(...e){return e.filter(Boolean).join(` `)}function gk(e){let[t,n]=e.split(`-`),r=[];return t&&r.push(t),n&&r.push(n),r}var _k=e=>{let{invert:t,toast:n,unstyled:r,interacting:i,setHeights:a,visibleToasts:o,heights:s,index:c,toasts:l,expanded:u,removeToast:d,defaultRichColors:f,closeButton:p,style:m,cancelButtonStyle:h,actionButtonStyle:g,className:_=``,descriptionClassName:v=``,duration:y,position:b,gap:x,expandByDefault:S,classNames:C,icons:w,closeButtonAriaLabel:E=`Close toast`}=e,[D,O]=J.useState(null),[k,A]=J.useState(null),[j,M]=J.useState(!1),[N,P]=J.useState(!1),[F,I]=J.useState(!1),[ee,te]=J.useState(!1),[ne,re]=J.useState(!1),[L,R]=J.useState(0),[ie,ae]=J.useState(0),z=J.useRef(n.duration||y||u
23k),B=J.useRef(null),oe=J.useRef(null),se=c===0,ce=c+1<=o,le=n.type,ue=n.dismissible!==!1,V=n.className||``,de=n.descriptionClassName||``,fe=J.useMemo(()=>s.findIndex(e=>e.toastId===n.id)||0,[s,n.id]),pe=J.useMemo(()=>n.closeButton??p,[n.closeButton,p]),me=J.useMemo(()=>n.duration||y||uk,[n.duration,y]),he=J.useRef(0),ge=J.useRef(0),_e=J.useRef(0),ve=J.useRef(null),[ye,be]=b.split(`-`),H=J.useMemo(()=>s.reduce((e,t,n)=>n>=fe?e:e+t.height,0),[s,fe]),xe=ek(),Se=n.invert||t,Ce=le===`loading`;ge.current=J.useMemo(()=>fe*x+H,[fe,H]),J.useEffect(()=>{z.current=me},[me]),J.useEffect(()=>{M(!0)},[]),J.useEffect(()=>{let e=oe.current;if(e){let t=e.getBoundingClientRect().height;return ae(t),a(e=>[{toastId:n.id,height:t,position:n.position},...e]),()=>a(e=>e.filter(e=>e.toastId!==n.id))}},[a,n.id]),J.useLayoutEffect(()=>{if(!j)return;let e=oe.current,t=e.style.height;e.style.height=`auto`;let r=e.getBoundingClientRect().height;e.style.height=t,ae(r),a(e=>e.find(e=>e.toastId===n.id)?e.map(e=>e.toastId===n.id?{...e,height:r}:e):[{toastId:n.id,height:r,position:n.position},...e])},[j,n.title,n.description,a,n.id,n.jsx,n.action,n.cancel]);let we=J.useCallback(()=>{P(!0),R(ge.current),a(e=>e.filter(e=>e.toastId!==n.id)),setTimeout(()=>{d(n)},mk)},[n,d,a,ge]);J.useEffect(()=>{if(n.promise&&le===`loading`||n.duration===1/0||n.type===`loading`)return;let e;return u||i||xe?(()=>{if(_e.current<he.current){let e=new Date().getTime()-he.current;z.current-=e}_e.current=new Date().getTime()})():z.current!==1/0&&(he.current=new Date().getTime(),e=setTimeout(()=>{n.onAutoClose==null||n.onAutoClose.call(n,n),we()},z.current)),()=>clearTimeout(e)},[u,i,n,le,xe,we]),J.useEffect(()=>{n.delete&&(we(),n.onDismiss==null||n.onDismiss.call(n,n))},[we,n.delete]);function Te(){return w?.loading?J.createElement(`div`,{className:hk(C?.loader,n?.classNames?.loader,`sonner-loader`),"data-visible":le===`loading`},w.loading):J.createElement(JO,{className:hk(C?.loader,n?.classNames?.loader),visible:le===`loading`})}let Ee=n.icon||w?.[le]||KO(le);return J.createElement(`li`,{tabIndex:0,ref:oe,className:hk(_,V,C?.toast,n?.classNames?.toast,C?.default,C?.[le],n?.classNames?.[le]),"data-sonner-toast":``,"data-rich-colors":n.richColors??f,"data-styled":!(n.jsx||n.unstyled||r),"data-mounted":j,"data-promise":!!n.promise,"data-swiped":ne,"data-removed":N,"data-visible":ce,"data-y-position":ye,"data-x-position":be,"data-index":c,"data-front":se,"data-swiping":F,"data-dismissible":ue,"data-type":le,"data-invert":Se,"data-swipe-out":ee,"data-swipe-direction":k,"data-expanded":!!(u||S&&j),"data-testid":n.testId,style:{"--index":c,"--toasts-before":c,"--z-index":l.length-c,"--offset":`${N?L:ge.current}px`,"--initial-height":S?`auto`:`${ie}px`,...m,...n.style},onDragEnd:()=>{I(!1),O(null),ve.current=null},onPointerDown:e=>{e.button!==2&&(Ce||!ue||(B.current=new Date,R(ge.current),e.target.setPointerCapture(e.pointerId),e.target.tagName!==`BUTTON`&&(I(!0),ve.current={x:e.clientX,y:e.clientY})))},onPointerUp:()=>{if(ee||!ue)return;ve.current=null;let e=Number(oe.current?.style.getPropertyValue(`--swipe-amount-x`).replace(`px`,``)||0),t=Number(oe.current?.style.getPropertyValue(`--swipe-amount-y`).replace(`px`,``)||0),r=new Date().getTime()-B.current?.getTime(),i=D===`x`?e:t,a=Math.abs(i)/r;if(Math.abs(i)>=pk||a>.11){R(ge.current),n.onDismiss==null||n.onDismiss.call(n,n),A(D===`x`?e>0?`right`:`left`:t>0?`down`:`up`),we(),te(!0);return}else{var o,s;(o=oe.current)==null||o.style.setProperty(`--swipe-amount-x`,`0px`),(s=oe.current)==null||s.style.setProperty(`--swipe-amount-y`,`0px`)}re(!1),I(!1),O(null)},onPointerMove:t=>{var n,r;if(!ve.current||!ue||window.getSelection()?.toString().length>0)return;let i=t.clientY-ve.current.y,a=t.clientX-ve.current.x,o=e.swipeDirections??gk(b);!D&&(Math.abs(a)>1||Math.abs(i)>1)&&O(Math.abs(a)>Math.abs(i)?`x`:`y`);let s={x:0,y:0},c=e=>1/(1.5+Math.abs(e)/20);if(D===`y`){if(o.includes(`top`)||o.includes(`bottom`))if(o.includes(`top`)&&i<0||o.includes(`bottom`)&&i>0)s.y=i;else{let e=i*c(i);s.y=Math.abs(e)<Math.abs(i)?e:i}}else if(D===`x`&&(o.includes(`left`)||o.includes(`right`)))if(o.includes(`left`)&&a<0||o.includes(`right`)&&a>0)s.x=a;else{let e=a*c(a);s.x=Math.abs(e)<Math.abs(a)?e:a}(Math.abs(s.x)>0||Math.abs(s.y)>0)&&re(!0),(n=oe.current)==null||n.style.setProperty(`--swipe-amount-x`,`${s.x}px`),(r=oe.current)==null||r.style.setProperty(`--swipe-amount-y`,`${s.y}px`)}},pe&&!n.jsx&&le!==`loading`?J.createElement(`button`,{"aria-label":E,"data-disabled":Ce,"data-close-button":!0,onClick:Ce||!ue?()=>{}:()=>{we(),n.onDismiss==null||n.onDismiss.call(n,n)},className:hk(C?.closeButton,n?.classNames?.closeButton)},w?.close??$O):null,(le||n.icon||n.promise)&&n.icon!==null&&(w?.[le]!==null||n.icon)?J.createElement(`div`,{"data-icon":``,className:hk(C?.icon,n?.classNames?.icon)},n.promise||n.type===`loading`&&!n.icon?n.icon||Te():null,n.type===`loading`?null:Ee):null,J.createElement(`div`,{"data-content":``,className:hk(C?.content,n?.classNames?.content)},J.createElement(`div`,{"data-title":``,className:hk(C?.title,n?.classNames?.title)},n.jsx?n.jsx:typeof n.title==`function`?n.title():n.title),n.description?J.createElement(`div`,{"data-description":``,className:hk(v,de,C?.description,n?.classNames?.description)},typeof n.description==`function`?n.description():n.description):null),J.isValidElement(n.cancel)?n.c
23ancel:n.cancel&&ok(n.cancel)?J.createElement(`button`,{"data-button":!0,"data-cancel":!0,style:n.cancelButtonStyle||h,onClick:e=>{ok(n.cancel)&&ue&&(n.cancel.onClick==null||n.cancel.onClick.call(n.cancel,e),we())},className:hk(C?.cancelButton,n?.classNames?.cancelButton)},n.cancel.label):null,J.isValidElement(n.action)?n.action:n.action&&ok(n.action)?J.createElement(`button`,{"data-button":!0,"data-action":!0,style:n.actionButtonStyle||g,onClick:e=>{ok(n.action)&&(n.action.onClick==null||n.action.onClick.call(n.action,e),!e.defaultPrevented&&we())},className:hk(C?.actionButton,n?.classNames?.actionButton)},n.action.label):null)};function vk(){if(typeof window>`u`||typeof document>`u`)return`ltr`;let e=document.documentElement.getAttribute(`dir`);return e===`auto`||!e?window.getComputedStyle(document.documentElement).direction:e}function yk(e,t){let n={};return[e,t].forEach((e,t)=>{let r=t===1,i=r?`--mobile-offset`:`--offset`,a=r?lk:ck;function o(e){[`top`,`right`,`bottom`,`left`].forEach(t=>{n[`${i}-${t}`]=typeof e==`number`?`${e}px`:e})}typeof e==`number`||typeof e==`string`?o(e):typeof e==`object`?[`top`,`right`,`bottom`,`left`].forEach(t=>{e[t]===void 0?n[`${i}-${t}`]=a:n[`${i}-${t}`]=typeof e[t]==`number`?`${e[t]}px`:e[t]}):o(a)}),n}var bk=J.forwardRef(function(e,t){let{id:n,invert:r,position:i=`bottom-right`,hotkey:a=[`altKey`,`KeyT`],expand:o,closeButton:s,className:c,offset:l,mobileOffset:u,theme:d=`light`,richColors:f,duration:p,style:m,visibleToasts:h=sk,toastOptions:g,dir:_=vk(),gap:v=fk,icons:y,containerAriaLabel:b=`Notifications`}=e,[x,S]=J.useState([]),C=J.useMemo(()=>n?x.filter(e=>e.toasterId===n):x.filter(e=>!e.toasterId),[x,n]),w=J.useMemo(()=>Array.from(new Set([i].concat(C.filter(e=>e.position).map(e=>e.position)))),[C,i]),[E,D]=J.useState([]),[O,k]=J.useState(!1),[A,j]=J.useState(!1),[M,N]=J.useState(d===`system`?typeof window<`u`&&window.matchMedia&&window.matchMedia(`(prefers-color-scheme: dark)`).matches?`dark`:`light`:d),P=J.useRef(null),F=a.join(`+`).replace(/Key/g,``).replace(/Digit/g,``),I=J.useRef(null),ee=J.useRef(!1),te=J.useCallback(e=>{S(t=>(t.find(t=>t.id===e.id)?.delete||nk.dismiss(e.id),t.filter(({id:t})=>t!==e.id)))},[]);return J.useEffect(()=>nk.subscribe(e=>{if(e.dismiss){requestAnimationFrame(()=>{S(t=>t.map(t=>t.id===e.id?{...t,delete:!0}:t))});return}setTimeout(()=>{ix.flushSync(()=>{S(t=>{let n=t.findIndex(t=>t.id===e.id);return n===-1?[e,...t]:[...t.slice(0,n),{...t[n],...e},...t.slice(n+1)]})})})}),[x]),J.useEffect(()=>{if(d!==`system`){N(d);return}if(d===`system`&&(window.matchMedia&&window.matchMedia(`(prefers-color-scheme: dark)`).matches?N(`dark`):N(`light`)),typeof window>`u`)return;let e=window.matchMedia(`(prefers-color-scheme: dark)`);try{e.addEventListener(`change`,({matches:e})=>{N(e?`dark`:`light`)})}catch{e.addListener(({matches:e})=>{try{N(e?`dark`:`light`)}catch(e){console.error(e)}})}},[d]),J.useEffect(()=>{x.length<=1&&k(!1)},[x]),J.useEffect(()=>{let e=e=>{if(a.every(t=>e[t]||e.code===t)){var t;k(!0),(t=P.current)==null||t.focus()}e.code===`Escape`&&(document.activeElement===P.current||P.current?.contains(document.activeElement))&&k(!1)};return document.addEventListener(`keydown`,e),()=>document.removeEventListener(`keydown`,e)},[a]),J.useEffect(()=>{if(P.current)return()=>{I.current&&(I.current.focus({preventScroll:!0}),I.current=null,ee.current=!1)}},[P.current]),J.createElement(`section`,{ref:t,"aria-label":`${b} ${F}`,tabIndex:-1,"aria-live":`polite`,"aria-relevant":`additions text`,"aria-atomic":`false`,suppressHydrationWarning:!0},w.map((t,n)=>{let[i,a]=t.split(`-`);return C.length?J.createElement(`ol`,{key:t,dir:_===`auto`?vk():_,tabIndex:-1,ref:P,className:c,"data-sonner-toaster":!0,"data-sonner-theme":M,"data-y-position":i,"data-x-position":a,style:{"--front-toast-height":`${E[0]?.height||0}px`,"--width":`${dk}px`,"--gap":`${v}px`,...m,...yk(l,u)},onBlur:e=>{ee.current&&!e.currentTarget.contains(e.relatedTarget)&&(ee.current=!1,I.current&&=(I.current.focus({preventScroll:!0}),null))},onFocus:e=>{e.target instanceof HTMLElement&&e.target.dataset.dismissible===`fal
23se`||ee.current||(ee.current=!0,I.current=e.relatedTarget)},onMouseEnter:()=>k(!0),onMouseMove:()=>k(!0),onMouseLeave:()=>{A||k(!1)},onDragEnd:()=>k(!1),onPointerDown:e=>{e.target instanceof HTMLElement&&e.target.dataset.dismissible===`false`||j(!0)},onPointerUp:()=>j(!1)},C.filter(e=>!e.position&&n===0||e.position===t).map((n,i)=>J.createElement(_k,{key:n.id,icons:y,index:i,toast:n,defaultRichColors:f,duration:g?.duration??p,className:g?.className,descriptionClassName:g?.descriptionClassName,invert:r,visibleToasts:h,closeButton:g?.closeButton??s,interacting:A,position:t,style:g?.style,unstyled:g?.unstyled,classNames:g?.classNames,cancelButtonStyle:g?.cancelButtonStyle,actionButtonStyle:g?.actionButtonStyle,closeButtonAriaLabel:g?.closeButtonAriaLabel,removeToast:te,toasts:C.filter(e=>e.position==n.position),heights:E.filter(e=>e.position==n.position),setHeights:D,expandByDefault:o,gap:v,expanded:O,swipeDirections:e.swipeDirections}))):null}))}),xk=({...e})=>(0,Y.jsx)(bk,{theme:`system`,className:`toaster group`,icons:{success:(0,Y.jsx)(Ty,{className:`size-4`}),info:(0,Y.jsx)(Dy,{className:`size-4`}),warning:(0,Y.jsx)(Ny,{className:`size-4`}),error:(0,Y.jsx)(jy,{className:`size-4`}),loading:(0,Y.jsx)(Oy,{className:`size-4 animate-spin`})},style:{"--normal-bg":`var(--popover)`,"--normal-text":`var(--popover-foreground)`,"--normal-border":`var(--border)`,"--border-radius":`var(--radius)`},toastOptions:{classNames:{toast:`cn-toast`}},...e});function Sk(){return(0,Y.jsxs)(`main`,{className:`flex min-h-svh flex-col items-center justify-center gap-5 px-4 text-center`,children:[(0,Y.jsx)(`title`,{children:cu()}),(0,Y.jsx)(`meta`,{name:`robots`,content:`noindex,nofollow,noarchive,nosnippet`}),(0,Y.jsx)(`p`,{className:`text-6xl font-semibold`,children:`404`}),(0,Y.jsx)(`h1`,{className:`text-3xl font-semibold`,children:Ti()}),(0,Y.jsx)(`p`,{className:`text-muted-foreground`,children:He()}),(0,Y.jsx)(V,{href:`/`,className:`inline-flex min-h-12 items-center rounded-xl bg-primary px-6 font-medium text-primary-foreground`,children:Jt()})]})}function Ck(){return new Wv({defaultOptions:{queries:{staleTime:3e4,retry:1,refetchOnWindowFocus:!1}}})}var wk;function Tk(){return typeof window>`u`?Ck():(wk||=Ck(),wk)}var Ek=new Set([`/`,`/about`,`/contact`,`/privacy-policy`,`/terms-of-service`,`/profile`,`/feedback`,`/what-is-tango-game`,`/how-to-play`,`/rules`,`/beginners-guide`,`/strategy`,`/clue-patterns`,`/board-sizes`,`/how-puzzles-are-made`,`/linkedin-tango`,`/timed`]),Dk=[`/unlimited`,`/archive`];function Ok(e){let t=e.length>1?e.replace(/\/+$/,``):e;return Ek.has(t)?!0:Dk.some(e=>t===e||t.startsWith(`${e}/`))}var kk=z_().handler(Ag(`903e7bbd0a5acb66bec9ec5a0f39959217057ed3302e54da8a2f02004f4a3ae5`)),Ak=xe({loader:()=>kk(),staleTime:1/0,preloadStaleTime:1/0,beforeLoad:({location:e})=>{let t=Wy(e.pathname);if(t)throw pe(t)},head:()=>({meta:[{charSet:`utf-8`},{name:`viewport`,content:`width=device-width, initial-scale=1`},{name:`theme-color`,content:`#FFD700`},...Se.adsense_id?[{name:`google-adsense-account`,content:Se.adsense_id}]:[]],links:[{rel:`icon`,href:`/favicon.ico`,sizes:`48x48`},{rel:`icon`,href:Se.app_favicon,type:`image/svg+xml`,sizes:`any`},{rel:`apple-touch-icon`,href:`/logo.png`,type:`image/png`},{rel:`manifest`,href:`/manifest.webmanifest`},{rel:`preconnect`,href:`https://fonts.googleapis.com`},{rel:`preconnect`,href:`https://fonts.gstatic.com`,crossOrigin:`anonymous`},{rel:`stylesheet`,href:`https://fonts.googleapis.com/css2?family=Fredoka:wght@400;500;600;700&family=Nunito:wght@400;500;600;700;800&display=swap`}]}),component:jk,shellComponent:Mk,errorComponent:Nk,notFoundComponent:Sk});function jk(){let e=Ak.useLoaderData(),t=D_({select:e=>e.location.pathname}),n=Ok(t),r=!!Se.adsense_id&&dy(t);return(0,Y.jsxs)(qv,{client:Tk(),children:[n?(0,Y.jsxs)(`div`,{className:`flex min-h-screen flex-col text-foreground`,children:[(0,Y.jsx)(WO,{}),(0,Y.jsx)(`main`,{className:`flex-1 overflow-x-clip`,children:(0,Y.jsx)(v_,{})}),(0,Y.jsx)(sO,{})]}):(0,Y.jsx)(v_,{}),(0,Y.jsx)(xk,{position:`top-center`,richColors:!0}),r?(0,Y.jsx)(fy,{adsenseId:Se.adsense_id}):null,e.gaId?(0,Y.jsxs)(Y.Fragment,{children:[(0,Y.jsx)(ty,{measurementId:e.gaId}),(0,Y.jsx)(cy,{})]}
23):null,e.clarityId?(0,Y.jsx)(iy,{clarityId:e.clarityId}):null,(0,Y.jsx)(py,{popunderUrl:Se.adsterra_popunder_url,socialbarUrl:Se.adsterra_socialbar_url}),!1]})}function Mk({children:e}){return(0,Y.jsxs)(`html`,{lang:ue(),suppressHydrationWarning:!0,children:[(0,Y.jsxs)(`head`,{children:[(0,Y.jsx)(`script`,{dangerouslySetInnerHTML:{__html:`try{var t=localStorage.getItem('theme');var d=t==='dark'||(t!=='light'&&matchMedia('(prefers-color-scheme: dark)').matches);document.documentElement.classList.toggle('dark',d)}catch(e){}`}}),(0,Y.jsx)(M_,{})]}),(0,Y.jsxs)(`body`,{className:`font-sans antialiased`,children:[e,(0,Y.jsx)(N_,{})]})]})}function Nk({error:e,reset:t}){return(0,Y.jsxs)(`div`,{className:`flex min-h-screen flex-col items-center justify-center gap-4 bg-background px-6 text-center text-foreground`,children:[(0,Y.jsx)(`title`,{children:Pn()}),(0,Y.jsx)(`meta`,{name:`robots`,content:`noindex,nofollow,noarchive,nosnippet`}),(0,Y.jsx)(`h1`,{className:`text-3xl font-bold`,children:rn()}),(0,Y.jsx)(`p`,{className:`max-w-md text-muted-foreground`,children:kt()}),null,(0,Y.jsx)(`button`,{type:`button`,onClick:t,className:`rounded-full bg-primary px-5 py-2.5 text-sm font-semibold text-primary-foreground transition-colors hover:bg-primary/90`,children:br()})]})}function Pk(e){return e===`/`?`/`:`/${e.replace(/^\//,``).replace(/\/$/,``)}`}function Fk({title:e,description:t,path:n,locale:r,image:i,imageAlt:a,robots:o,googlebot:s,noindex:c=!1,canonicalPath:l}){let u=Se.app_url?.replace(/\/$/,``)||``,d=Pk(n),f=l?Pk(l):d,p=`${u}${f}`,m=Uy(f),h=i||Se.app_preview_image||`/og-image.png`,g=h.startsWith(`http`)?h:`${u}/${h.replace(/^\//,``)}`,_=(Se.app_name||``).trim(),v=(e||``).trim()||_,y=[{name:`application-name`,content:_},{name:`apple-mobile-web-app-title`,content:_},{name:`description`,content:t}],b=a??Pi({},{locale:r});y.push({property:`og:title`,content:v},{property:`og:description`,content:t},{property:`og:site_name`,content:_},{property:`og:locale`,content:r===`en`?`en_US`:r===`fr`?`fr_FR`:r===`pt-br`?`pt_BR`:r===`de`?`de_DE`:r===`es`?`es_ES`:r},{property:`og:type`,content:`website`},{property:`og:url`,content:oe(p,{locale:r}).href},{property:`og:image`,content:g},{property:`og:image:width`,content:`1200`},{property:`og:image:height`,content:`630`},{property:`og:image:alt`,content:b}),y.push({name:`twitter:card`,content:`summary_large_image`},{name:`twitter:title`,content:v},{name:`twitter:description`,content:t},{name:`twitter:image`,content:g},{name:`twitter:image:alt`,content:b}),o?y.push({name:`robots`,content:o}):c&&y.push({name:`robots`,content:`noindex, nofollow`}),s&&y.push({name:`googlebot`,content:s});let x=[{rel:`canonical`,href:oe(p,{locale:r}).href},...m.map(e=>({rel:`alternate`,hrefLang:e,href:oe(p,{locale:e}).href})),{rel:`alternate`,hrefLang:`x-default`,href:oe(p,{locale:`en`}).href}];return{meta:[{title:v},...y],links:x}}var Ik=H(`/profile`)({head:()=>Fk({title:Ml(),description:et(),path:`/profile`,locale:ue(),robots:`noindex, nofollow`}),component:l_(()=>Zv(()=>import(`./profile-AbUsj27m.js`),__vite__mapDeps([0,1,2,3,4,5])),`component`)}),Lk=H(`/feedback`)({head:()=>Fk({title:ca(),description:bn(),path:`/feedback`,locale:ue(),robots:`noindex, follow`}),component:l_(()=>Zv(()=>import(`./feedback-BjvdXvVu.js`),__vite__mapDeps([6,1,2,3,4])),`component`)}),Rk=H(`/(pages)`)({component:l_(()=>Zv(()=>import(`./route-1C93PK2J.js`),__vite__mapDeps([7,1,3])),`component`)}),zk=H(`/(auth)`)({component:l_(()=>Zv(()=>import(`./route-DVa4byb6.js`),[]),`component`)}),Bk=z_().handler(Ag(`8ab21939ef61a315a58c202c3a1bbbb3bc11b1f1856317d91c3e78a676d6119d`));z_().handler(Ag(`804ac2b2324c052286be0b833cfe467b1135df6a04d95f38ed430c811bd4adb7`));var Vk=z_().handler(Ag(`51f498336ced4be5c682151a1b309bfc3350715b7e924e4e4cfa7777d7f898ee`)),Hk=z_().handler(Ag(`c95226d4b9da999b4bc9112f9858b6b4d7c00acd16fd6fdd21cfb591ece07ff8`)),Uk=H(`/`)({loader:()=>Bk(),staleTime:0,preloadStaleTime:0,head:()=>Fk({title:Kc(),description:sc(),path:`/`,locale:ue(),imageAlt:Pi()}),component:l_(()=>Zv(()=>import(`./routes-CY8a_3b3.js`),__vite__mapDeps([8,1,2,3,9,10,11])),`component`)}),Wk=H(`/unlimited/`)({loader:()=>Hk({data:{size:`8x8`}}),staleTime:0,preloadStaleTime:0,head:()=>Fk({title:ra(),description:hn(),path:`/unlimited`,locale:ue(),imageAlt:Pi()}),component:l_(()=>Zv(()=>import(`./unlimited-DfwFpp_k.js`),__vite__mapDeps([12,1,2,3,10,11,13,14])),`component`)}),Gk=H(`/timed/`)({loader:()=>Hk({data:{size:`4x4`}}),staleTime:0,preloadStaleTime:0,head:()=>Fk({title:xt(),description:oi(),path:`/timed`,locale:ue(),imageAlt:Pi()}),component:l_(()=>Zv(()=>import(`./timed-dFRkiRf9.js`),__vite__mapDeps([15,1,2,3,10,11,14])),`component`)}),Kk=H(`/blog/`)({beforeLoad:()=>{throw me()},head:()=>({meta:[{title:cu()},{name:`robots`,content:`noindex,nofollow,noarchive,nosnippet`}]}
23),component:l_(()=>Zv(()=>import(`./blog-CAIeH5mq.js`),[]),`component`)}),qk=[4,6,8,10,12],Jk=qk;function Yk(e){if(!Number.isInteger(e)||e<0||e>4294967295)throw RangeError(`Tango seed must be an unsigned 32-bit integer`)}function Xk(e,t){if(!Jk.includes(e))throw RangeError(`Unsupported Tango board size`);return Yk(t),`tango:${e}:#${t}`}function Zk(e){let t=typeof e==`string`&&/^tango:(\d{1,2}):#(0|[1-9]\d{0,9})$/.exec(e);if(!t||t[0]!==e)throw RangeError(`Invalid Tango code; expected tango:<size>:#<seed>`);let n=Jk.find(e=>String(e)===t[1]);if(!n)throw RangeError(`Unsupported Tango board size`);let r=Number(t[2]);return Yk(r),{size:n,seed:r}}var Qk=1e3;qk.length*Qk;var $k={4:[1,1e3],6:[1001,2e3],8:[2001,3e3],10:[3001,4e3],12:[4001,5e3]};function eA(e){return $k[e]}function tA(e,t){if(!Number.isInteger(t)||t<0||t>=1e3)throw RangeError(`Tango puzzle offset must be between 0 and ${Qk-1}`);return Xk(e,eA(e)[0]+t)}var nA=/^(\d{4})-(\d{2})-(\d{2})$/;function rA(e){if(typeof e!=`string`||!nA.test(e))return!1;let t=Date.parse(`${e}T00:00:00Z`);return Number.isFinite(t)&&new Date(t).toISOString().slice(0,10)===e}function iA(e=new Date){return new Date(e.getTime()).toISOString().slice(0,10)}function aA(e,t){if(!rA(e))throw RangeError(`Invalid UTC date`);if(!Number.isInteger(t))throw RangeError(`UTC day offset must be an integer`);return new Date(Date.parse(`${e}T00:00:00Z`)+t*864e5).toISOString().slice(0,10)}var oA=H(`/archive/`)({loader:()=>{let e=iA();return{today:e,dates:Array.from({length:7},(t,n)=>aA(e,-n))}},staleTime:0,preloadStaleTime:0,head:()=>Fk({title:el(),description:ho(),path:`/archive`,locale:ue(),imageAlt:Pi()}),component:l_(()=>Zv(()=>import(`./archive-BC8SBeUD.js`),__vite__mapDeps([16,1,2,3,5,11])),`component`)}),sA=[`4x4`,`6x6`,`8x8`,`10x10`,`12x12`],cA=Object.fromEntries(qk.map(e=>[`${e}x${e}`,e])),lA={4:`4x4`,6:`6x6`,8:`8x8`,10:`10x10`,12:`12x12`};function uA(e){return typeof e==`string`?cA[e]??null:null}function dA(e){let t=lA[e];if(!t)throw RangeError(`Unsupported Tango board size`);return t}function fA(e){if(typeof e!=`string`||!/^[1-9]\d*$/.test(e))return null;let t=Number(e);return Number.isInteger(t)&&t>=1&&t<=1e3?t:null}function pA(e,t){let n=uA(e),r=fA(t);return n==null||r==null?null:tA(n,r-1)}function mA(e){try{let{size:t,seed:n}=Zk(e),[r,i]=eA(t);return n<r||n>i?null:{slug:dA(t),levelId:n-r+1}}catch{return null}}function hA(e,t){if(!Number.isInteger(e)||e<1||e>1e3||t!==1&&t!==-1)return null;let n=e+t;return n>=1&&n<=1e3?n:null}var gA=H(`/unlimited/$size`)({beforeLoad:({params:e})=>{if(uA(e.size)==null)throw me()},component:l_(()=>Zv(()=>import(`./_size-GnfleL7O.js`),__vite__mapDeps([17,1])),`component`)}),_A=H(`/blog/$slug`)({beforeLoad:()=>{throw me()},head:()=>({meta:[{title:cu()},{name:`robots`,content:`noindex,nofollow,noarchive,nosnippet`}]}),component:l_(()=>Zv(()=>import(`./_slug-CAIeH5mq.js`),[]),`component`)}),vA=H(`/archive/$date`)({loader:async({params:e})=>{let t=await Vk({data:{date:e.date}});if(!t)throw me();return t},staleTime:0,preloadStaleTime:0,head:({params:e})=>Fk({title:Xl({date:e.date}),description:Ja({date:e.date}),path:`/archive/${e.date}`,locale:ue(),imageAlt:Pi()}),component:l_(()=>Zv(()=>import(`./_date-DiEfcy9L.js`),__vite__mapDeps([18,1,2,3,9,10,11])),`component`)}),yA=[{id:`equals`,group:`basic`,before:[1,0],after:[1,1],edges:[{index:0,sign:`=`}],lineSize:6},{id:`cross`,group:`basic`,before:[1,0],after:[1,2],edges:[{index:0,sign:`×`}],lineSize:6},{id:`reverse_equals`,group:`basic`,before:[0,2],after:[2,2],edges:[{index:0,sign:`=`}],lineSize:6},{id:`reverse_cross`,group:`basic`,before:[0,2],after:[1,2],edges:[{index:0,sign:`×`}],lineSize:6},{id:`equals_cross`,group:`chain`,before:[1,0,0],after:[1,1,2],edges:[{index:0,sign:`=`},{index:1,sign:`×`}],lineSize:6},{id:`cross_cross`,group:`chain`,before:[1,0,0],after:[1,2,1],edges:[{index:0,sign:`×`},{index:1,sign:`×`}],lineSize:6},{id:`cross_equals`,group:`chain`,before:[1,0,0],after:[1,2,2],edges:[{index:0,sign:`×`},{index:1,sign:`=`}],lineSize:6},{id:`pair_equals`,group:`triple`,before:[1,1,0,0],after:[1,1,2,2],edges:[{index:2,sign:`=`}],lineSize:6},{id:`sun_equals_pair`,group:`triple`,before:[1,0,0],after:[1,2,2],edges:[{index:1,sign:`=`}],lineSize:6},{id:`quota_equals`,group:`balance`,before:[1,2,1,0,0,1],after:[1,2,1,2,2,1],edges:[{index:3,sign:`=`}],lineSize:6}
23,{id:`open_equals`,group:`open`,before:[0,0],after:[1,1],alternative:[2,2],edges:[{index:0,sign:`=`}],lineSize:6},{id:`open_cross`,group:`open`,before:[0,0],after:[1,2],alternative:[2,1],edges:[{index:0,sign:`×`}],lineSize:6}];function bA(e,t){let{size:n,givens:r,relations:i}=e;if(t.length!==n*n||t.some(e=>e!==0&&e!==1&&e!==2))return[{kind:`shape`,cells:[]}];let a=[];r.forEach((e,n)=>{e&&t[n]!==e&&a.push({kind:`fixed`,cells:[n]})});for(let e=0;e<n;e++)for(let r of[!1,!0]){let i=Array.from({length:n},(t,i)=>r?i*n+e:e*n+i);for(let e of[1,2]){let r=i.filter(n=>t[n]===e);r.length>n/2&&a.push({kind:`balance`,cells:r})}for(let e=0;e<n-2;e++){let n=i.slice(e,e+3);t[n[0]]&&n.every(e=>t[e]===t[n[0]])&&a.push({kind:`triple`,cells:n})}}for(let{a:e,b:n,kind:r}of i)t[e]&&t[n]&&t[e]===t[n]!=(r===`same`)&&a.push({kind:`relation`,cells:[e,n]});return a}function xA(e,t){return t.length===e.size**2&&t.every(Boolean)&&bA(e,t).length===0}function SA(e,t,n,r){if(!Number.isInteger(n)||n<0||n>=t.length||e.givens[n]||t[n]===r)return t;let i=[...t];return i[n]=r,i}function CA(e){return e===0?1:e===1?2:0}function wA(e,t){return t.flatMap((t,n)=>t&&t!==e.solution[n]?[n]:[])}function TA(e,t){for(let{a:n,b:r,kind:i}of e.relations){if(!!t[n]==!!t[r])continue;let e=t[n]?r:n,a=t[n]||t[r],o=i===`same`?a:a===1?2:1;if(o)return{index:e,value:o,reason:`relation`}}for(let n=0;n<e.size;n++)for(let r of[!1,!0]){let i=Array.from({length:e.size},(t,i)=>r?i*e.size+n:n*e.size+i);for(let n=0;n<e.size-2;n++){let e=i.slice(n,n+3),r=e.filter(e=>!t[e]),a=e.filter(e=>t[e]);if(r.length===1&&t[a[0]]===t[a[1]])return{index:r[0],value:t[a[0]]===1?2:1,reason:`triple`}}let a=i.find(e=>!t[e]);if(a!==void 0){for(let n of[1,2])if(i.filter(e=>t[e]===n).length===e.size/2)return{index:a,value:n===1?2:1,reason:`balance`}}}return null}function EA(e,t){let n=wA(e,t)[0];if(n!==void 0)return{index:n,value:e.solution[n],reason:`correction`};let r=TA(e,t);if(r)return r;let i=t.indexOf(0);return i<0?null:{index:i,value:e.solution[i],reason:`solution`}}function DA(e){return{board:[...e.givens],past:[],highlighted:[],notice:{kind:`ready`}}}function OA(e,t,n){function r(e,n,r=[]){return e===t.board?t:{board:e,past:[...t.past,t.board],highlighted:r,notice:n}}switch(n.type){case`place`:return xA(e,t.board)?t:r(SA(e,t.board,n.index,n.value??CA(t.board[n.index])),{kind:`playing`});case`undo`:{let e=t.past.at(-1);return e?{board:e,past:t.past.slice(0,-1),highlighted:[],notice:{kind:`undo`}}:t}case`reset`:return t.board.every((t,n)=>t===e.givens[n])?t:r([...e.givens],{kind:`reset`});case`check`:{let n=wA(e,t.board);return{...t,highlighted:n,notice:n.length?{kind:`mistakes`,count:n.length}:{kind:`checked`}}}case`hint`:{let n=EA(e,t.board);return n?r(SA(e,t.board,n.index,n.value),{kind:`hint`,hint:n},[n.index]):t}}}function kA(e,t,n){let r=Math.floor(e/n),i=e%n;switch(t){case`ArrowLeft`:return r*n+Math.max(0,i-1);case`ArrowRight`:return r*n+Math.min(n-1,i+1);case`ArrowUp`:return Math.max(0,r-1)*n+i;case`ArrowDown`:return Math.min(n-1,r+1)*n+i;case`Home`:return r*n;case`End`:return r*n+n-1;default:return e}}function AA({puzzle:e,board:t,highlighted:n,hasMistakes:r,solved:i,winning:a=!1,fitFrame:o=!1,label:s,cellLabel:c,onPlace:l,onUndo:u}){let[d,f]=(0,J.useState)(0),p=(0,J.useRef)([]);function m(t,n){if((t.ctrlKey||t.metaKey)&&t.key.toLowerCase()===`z`&&!t.shiftKey){t.preventDefault(),u();return}if(t.ctrlKey||t.metaKey||t.altKey)return;if([`ArrowLeft`,`ArrowRight`,`ArrowUp`,`ArrowDown`,`Home`,`End`].includes(t.key)){t.preventDefault(),p.current[kA(n,t.key,e.size)]?.focus();return}let r=t.key.toLowerCase();[`s`,`m`,`backspace`,`delete`,`0`].includes(r)&&(t.preventDefault(),l(n,r===`s`?1:r===`m`?2:0))}return(0,Y.jsx)(`div`,{className:o?`tango-board-fit`:`tango-board-scroll`,children:(0,Y.jsxs)(`div`,{className:`tango-board-wrap`,"data-solved":i||void 0,"data-winning":a||void 0,style:o?void 0:{minWidth:e.size*46+2},children:[(0,Y.jsx)(`div`,{role:`grid`,"aria-label":s,"aria-describedby":`tango-input-help tango-keyboard-help`,"aria-rowcount":e.size,"aria-colcount":e.size,className:`tango-board`,children:Array.from({length:e.size},(a,o)=>
23(0,Y.jsx)(`div`,{role:`row`,"aria-rowindex":o+1,className:`tango-row`,style:{gridTemplateColumns:`repeat(${e.size}, minmax(0, 1fr))`},children:Array.from({length:e.size},(a,s)=>{let u=o*e.size+s,h=t[u],g=!!e.givens[u],_=n.includes(u);return(0,Y.jsx)(`div`,{role:`gridcell`,"aria-colindex":s+1,className:`tango-gridcell`,style:{"--row":o,"--col":s},children:(0,Y.jsxs)(`button`,{ref:e=>{p.current[u]=e},type:`button`,tabIndex:d===u?0:-1,"aria-label":c(u),"aria-disabled":g||i,"aria-invalid":r&&_||void 0,"data-value":h,"data-fixed":g||void 0,"data-mark":_?r?`mistake`:`hint`:void 0,className:`tango-cell`,onFocus:()=>f(u),onKeyDown:e=>m(e,u),onClick:()=>l(u),children:[h?(0,Y.jsx)(cO,{value:h}):null,g&&(0,Y.jsx)(ky,{className:`tango-cell-lock`,"aria-hidden":`true`}),_&&r&&(0,Y.jsx)(`span`,{className:`tango-error-mark`,"aria-hidden":`true`,children:`!`})]})},s)})},o))}),(0,Y.jsx)(`div`,{className:`tango-relations`,"aria-hidden":`true`,children:e.relations.map(({a:t,b:n,kind:r})=>(0,Y.jsx)(`span`,{className:`tango-relation`,style:{left:`${(t%e.size+n%e.size+1)/2/e.size*100}%`,top:`${(Math.floor(t/e.size)+Math.floor(n/e.size)+1)/2/e.size*100}%`},children:r===`same`?`=`:`×`},`${t}-${n}`))})]})})}function jA(e,t){return{id:`tango-diagram`,seed:0,size:4,givens:e,relations:t,solution:e.map(e=>e===1||e===2?e:1)}}function MA({board:e,relations:t=[],label:n,caption:r,invalid:i=!1,givens:a=e,highlight:o=[]}){let s={...jA(e,t),givens:a},c=bA(s,e);return(0,Y.jsxs)(`figure`,{className:`tango-example-figure my-6`,children:[(0,Y.jsx)(`div`,{className:`pointer-events-none mx-auto max-w-[280px]`,inert:!0,"aria-hidden":`true`,children:(0,Y.jsx)(AA,{puzzle:s,board:e,highlighted:i?[...new Set(c.flatMap(e=>e.cells))]:[...o],hasMistakes:i,solved:!1,label:n,cellLabel:()=>n,onPlace:()=>void 0,onUndo:()=>void 0})}),(0,Y.jsx)(`figcaption`,{className:`mt-3 text-sm leading-6 text-muted-foreground`,children:r})]})}function NA(e){return JSON.stringify(e).replace(/</g,`\\u003c`).replace(/\u2028/g,`\\u2028`).replace(/\u2029/g,`\\u2029`)}function PA({data:e,id:t}){return(0,Y.jsx)(`script`,{id:t,type:`application/ld+json`,dangerouslySetInnerHTML:{__html:NA(e)}})}function FA(e){return{"@context":`https://schema.org`,...e}}function IA(e){let t={...e};return delete t[`@context`],t}function LA(){return Se.app_url.replace(/\/+$/,``)}function RA(e){if(!e)return`/`;let t=e.startsWith(`http`)?new URL(e).pathname:e,n=(t.startsWith(`/`)?t:`/${t}`).replace(/\/{2,}/g,`/`);return n.length>1?n.replace(/\/+$/,``):`/`}function zA(e,t){return oe(`${LA()}${RA(e)}`,{locale:t}).href}function BA(e,t,n){return`${zA(e,t)}#${n}`}function VA(e){if(e)return/^https?:\/\//.test(e)?e:`${LA()}/${e.replace(/^\/+/,``)}`}function HA(e){return FA({"@graph":e.map(IA)})}function UA({locale:e,siteDescription:t=hi({},{locale:e})}){return FA({"@type":`WebSite`,"@id":BA(`/`,e,`website`),name:Se.app_name,url:zA(`/`,e),...t?{description:t}:{},inLanguage:e})}function WA({title:e,description:t,path:n,locale:r,siteDescription:i,pageType:a=`WebPage`,image:o,mainEntity:s,dateModified:c}){let l=VA(o);return FA({"@type":a,"@id":BA(n,r,`webpage`),name:e,url:zA(n,r),...t?{description:t}:{},inLanguage:r,isPartOf:IA(UA({locale:r,siteDescription:i})),...l?{image:l}:{},...s?{mainEntity:s}:{},...c?{dateModified:c}:{}})}function GA({title:e,description:t,path:n,locale:r,id:i,name:a=e||Se.app_name,schemaTypes:o=`WebApplication`,alternateName:s,applicationCategory:c,operatingSystem:l,browserRequirements:u,featureList:d,isAccessibleForFree:f,offers:p}){return FA({"@type":o,...i?{"@id":i}:{},name:a,...t?{description:t}:{},url:zA(n,r),inLanguage:r,...s?{alternateName:s}:{},...c?{applicationCategory:c}:{},...l?{operatingSystem:l}:{},...u?{browserRequirements:u}:{},...d?{featureList:d}:{},...f===void 0?{}:{isAccessibleForFree:f},...p?{offers:p}:{}})}function KA({schemaTypes:e=[`VideoGame`,`WebApplication`],gamePlatform:t,genre:n,playMode:r,...i}){return FA({...IA(GA({...i,schemaTypes:e})),...t?{gamePlatform:t}:{},...n?{genre:n}:{},...r?{playMode:r}:{}})}function qA({title:e,path:t,locale:n,breadcrumbParents:r=[]}){return FA({"@type":`BreadcrumbList`,itemListElement:[{"@type":`ListItem`,position:1,name:Se.app_name,item:zA(`/`,n)},...[...r,{title:e,path:t}].map((e,t)=>({"@type":`ListItem`,position:t+2,name:e.title,item:zA(e.path,n)}))]})}function JA(e){return HA([WA(e),qA(e)])}function YA(e){let t=BA(e.path,e.locale,`game`);return HA([...RA(e.path)===`/`?[UA(e)]:[],WA({...e,image:e.image??Se.app_preview_image,mainEntity:{"@id":t}}),KA({...e,id:t}),...RA(e.path)===`/`?[]:[qA(e)]])}function XA({items:e,...t}){let n=BA(t.path,t.locale,`list`);return HA([WA({...t,pageType:`CollectionPage`,mainEntity:{"@id":n}}),{"@type":`ItemList`,"@id":n,numberOfItems:e.length,itemListElement:e.map((e,n)=>({"@type":`ListItem`,position:n+1,name:e.title,url:zA(e.path,t.locale)}))},qA(t)])}function ZA({slug:e,title:t,description:n,children:r,links:i}){let a=ue();return(0,Y.jsxs)(`article`,{className:`tango-page`,children:[(0,Y.jsx)(PA,{id:`${e}-jsonld`,data:JA({title:t,description:n,path:`/${e}`,locale:a})}),(0,Y.jsxs)(`header`,{className:`mb-8 border-b border-border pb-5`,children:[(0,Y.jsx)(`h1`,{className:`font-display text-3xl font-semibold tracking-tight md:text-4xl`,children:t}),(0,Y.jsx)(`p`,{className:`mt-3 text-base leading-7 text-muted-foreground`,children:n})]}),(0,Y.jsx)(`div`,{className:`tango-knowledge-content space-y-8 text-base leading-7 text-foreground
23/90`,children:r}),i.length>0&&(0,Y.jsx)(`nav`,{className:`mt-10 flex flex-wrap gap-x-5 gap-y-2 border-t border-border pt-6 text-sm font-medium`,"aria-label":Oo(),children:i.map(e=>(0,Y.jsx)(V,{href:e.href,children:e.label},e.href))})]})}function Q({title:e,children:t}){return(0,Y.jsxs)(`section`,{children:[(0,Y.jsx)(`h2`,{className:`mb-3 font-display text-2xl font-semibold tracking-tight`,children:e}),t]})}var QA=`tango:4:#2`,$A=`/unlimited/4x4/2`,ej={board:[1,0,0,0,0,2,0,0,0,0,2,0,0,0,0,1],relations:[{a:7,b:11,kind:`different`},{a:8,b:9,kind:`same`},{a:13,b:14,kind:`different`},{a:14,b:15,kind:`same`}]},tj=[{index:14,value:1},{index:13,value:2},{index:9,value:1},{index:8,value:1},{index:4,value:2},{index:12,value:2},{index:6,value:1},{index:7,value:1},{index:11,value:2},{index:1,value:1},{index:2,value:2},{index:3,value:2}],nj=tj.map((e,t)=>{let n=[...ej.board];for(let e of tj.slice(0,t+1))n[e.index]=e.value;return n});function rj(){return(0,Y.jsxs)(ZA,{slug:`what-is-tango-game`,title:Dl(),description:ka(),links:[],children:[(0,Y.jsx)(`p`,{children:Vo()}),(0,Y.jsxs)(Q,{title:Ws(),children:[(0,Y.jsx)(`p`,{children:xc()}),(0,Y.jsxs)(`ul`,{className:`mt-4 list-disc space-y-2 pl-6`,children:[(0,Y.jsx)(`li`,{children:jo()}),(0,Y.jsx)(`li`,{children:fo()}),(0,Y.jsx)(`li`,{children:gl()}),(0,Y.jsx)(`li`,{children:Ps()})]}),(0,Y.jsx)(MA,{board:nj[nj.length-1],givens:ej.board,relations:ej.relations,label:ro(),caption:Xc()}),(0,Y.jsxs)(`p`,{children:[dc(),` `,(0,Y.jsx)(V,{href:`/rules`,children:Ii()}),Ra(),` `,(0,Y.jsx)(V,{href:`/how-to-play`,children:$i()}),`.`]})]}),(0,Y.jsxs)(Q,{title:os(),children:[(0,Y.jsx)(`p`,{children:zc()}),(0,Y.jsx)(`p`,{className:`mt-4`,children:ec()}),(0,Y.jsxs)(`p`,{className:`mt-4`,children:[sl(),` `,(0,Y.jsx)(V,{href:`/board-sizes`,children:pl()}),xo()]})]}),(0,Y.jsxs)(Q,{title:Ee(),children:[(0,Y.jsx)(`p`,{children:Nr()}),(0,Y.jsxs)(`p`,{className:`mt-4`,children:[ha(),` `,(0,Y.jsx)(`a`,{href:`https://www.puzzle-binairo.com/faq.php`,children:qi()}),aa()]})]}),(0,Y.jsxs)(Q,{title:Zo(),children:[(0,Y.jsxs)(`p`,{children:[_n(),` `,(0,Y.jsx)(V,{href:`/`,children:Hr()}),Ec()]}),(0,Y.jsxs)(`p`,{className:`mt-4`,children:[On(),` `,(0,Y.jsx)(V,{href:`/unlimited`,children:Di()}),Ht(),` `,(0,Y.jsx)(V,{href:`/timed`,children:Xt()}),Ri()]}),(0,Y.jsxs)(`p`,{className:`mt-4`,children:[yi(),` `,(0,Y.jsx)(V,{href:`/archive`,children:Qt()}),ki()]}),(0,Y.jsxs)(`p`,{className:`mt-4`,children:[Ke(),` `,(0,Y.jsx)(V,{href:`/beginners-guide`,children:Bt()}),fu(),` `,(0,Y.jsx)(V,{href:`/strategy`,children:We()}),Ur()]}),(0,Y.jsx)(`h3`,{className:`mb-2 mt-6 font-display text-xl font-semibold`,children:Rn()}),(0,Y.jsxs)(`p`,{children:[cn(),` `,(0,Y.jsx)(V,{href:`/linkedin-tango`,children:Nt()}),Tr()]})]})]})}function ij(){let e=[[Ys(),$a()],[$s(),Gc()],[`S`,oc()],[`M`,Pa()],[ol(),ns()],[`Ctrl+Z / Command+Z`,Fc()]];return(0,Y.jsxs)(ZA,{slug:`how-to-play`,title:ar(),description:Jn(),links:[],children:[(0,Y.jsxs)(`p`,{children:[ds(),` `,(0,Y.jsx)(V,{href:`/beginners-guide`,children:Bt()}),`.`]}),(0,Y.jsxs)(Q,{title:Io(),children:[(0,Y.jsxs)(`ul`,{className:`list-disc space-y-2 pl-6`,children:[(0,Y.jsx)(`li`,{children:Ko()}),(0,Y.jsx)(`li`,{children:zs()}),(0,Y.jsx)(`li`,{children:gc()})]}),(0,Y.jsxs)(`p`,{className:`mt-4`,children:[Eo(),` `,(0,Y.jsx)(V,{href:`/rules`,children:Ii()}),`.`]})]}),(0,Y.jsxs)(Q,{title:Ie(),children:[(0,Y.jsx)(`p`,{children:xs()}),(0,Y.jsxs)(`figure`,{className:`mx-auto my-6 max-w-lg rounded-2xl bg-amber-50/80 p-4`,children:[(0,Y.jsx)(`ol`,{className:`grid grid-cols-3 gap-3 text-center`,"aria-label":ft(),children:[[1,co(),eu()],[2,fl(),bl()],[0,As(),ns()]].map(([e,t,n])=>(0,Y.jsxs)(`li`,{className:`min-w-0`,children:[(0,Y.jsx)(`span`,{className:`text-sm font-semibold`,children:t}),(0,Y.jsx)(`div`,{"aria-hidden":`true`,className:`mx-auto my-3 aspect-square w-full max-w-20 overflow-hidden rounded-xl border-2 border-amber-950`,children:(0,Y.jsx)(`div`,{className:`tango-cell`,"data-value":e,children:e!==0&&(0,Y.jsx)(cO,{value:e})})}),(0,Y.jsx)(`span`,{className:`text-sm`,children:n})]},e))}),(0,Y.jsx)(`figcaption`,{className:`mt-4 text-sm leading-6 text-muted-foreground`,children:Ct()})]}),(0,Y.jsx)(`p`,{children:mr()}),(0,Y.jsx)(`dl`,{className:`mt-4 divide-y divide-border rounded-xl bg-amber-50/60 px-4`,children:e.map(([e,t])=>(0,Y.jsxs)(`div`,{className:`grid gap-1 py-3 sm:grid-cols-2 sm:gap-4`,children:[(0,Y.jsx)(`dt`,{children:(0,Y.jsx)(`kbd`,{className:`font-mono text-sm font-semibold`,children:e})}),(0,Y.jsx)(`dd`,{children:t})]},e))})]}),(0,Y.jsxs)(Q,{title:ci(),children:[(0,Y.jsx)(`p`,{children:Pl()}),(0,Y.jsxs)(`figure`,{className:`my-6`,children:[(0,Y.jsx)(`div`,{className:`flex flex-wrap justify-center gap-6`,"aria-hidden":`true`,children:[1,2].map(e=>(0,Y.jsxs)(`div`,{className:`relative w-40`,children:[(0,Y.jsx)(`div`,{className:`tango-board`,children:(0,Y.jsxs)(`div`,{className:`tango-row grid-cols-2`,children:[(0,Y.jsx)(`div`,{className:`tango-gridcell`,children:(0,Y.jsxs)(`div`,{className:`tango-cell`,"data-value":1,"data-fixed":!0,"aria-disabled":`true`,children:[(0,Y.jsx)(cO,{value:1}),(0,Y.jsx)(ky,{className:`tango-cell-lock`})]})}),(0,Y.jsx)(`div`,{className:`tango-gridcell`,children:(0,Y.jsx)(`div`,{className:`tango-cell`,"data-value":e,"aria-disabled":`true`,children:(0,Y.jsx)(cO,{value:e})})})]})}),(0,Y.jsx)(`span`,{className:`tango-relation left-1/2 top-1/2`,children:e===1?`=`:`×`})]},e))}),(0,Y.jsx)(`figcaption`,{className:`mt-4 text-sm leading-6 text-muted-foreground`,children:nt()})]}),(0,Y.jsxs)(`p`,{children:[nl(),` `,(0,Y.jsx)(V,{href:`/clue-patterns`,children:_i()}),`.`]})]}),(0,Y.jsxs)(Q,{title:Qr(),children:[(0,Y.jsx)(`p`,{children:we()}),(0,Y.jsx)(`dl`,{className:`mt-4 space-y-5`,children:[[es(),Gl()],[Uc(),Ua()],[ic(),_o()]].map(([e,t])=>(0,Y.jsxs)(`div`,{children:[(0,Y.jsx)(`dt`,{className:`font-semibold`,children:e}),(0,Y.jsx)(`dd`,{children:t})]},e))})]}),(0,Y.jsxs)(Q,{title:nu(),children:[(0,Y.jsx)(`p`,{children:Sl()}),(0,Y.jsx)(MA,{board:[1,1,2,2,2,2,1,1,1,1,2,2,2,2,1,1],givens:ej.board,relations:ej.relations,label:jr(),caption:pa()}),(0,Y.jsxs)(`p`,{children:[Gi(),` `,(0,Y.jsx)(V,{href:`/timed`,children:Xt()}),`.`]})]}),(0,Y.jsxs)(Q,{title:na(),children:[(0,Y.jsxs)(`p`,{children:[mn(),` `,(0,Y.jsx)(V,{href:`/unlimited/4x4`,children:wa()}),uu()]}),(0,Y.jsxs)(`p`,{className:`mt-4`,children:[wc(),` `,(0,Y.jsx)(V,{href:`/unlimited`,children:Di()}),Vr()]}),(0,Y.jsxs)(`p`,{className:`mt-4`,children:[En(),` `,(0,Y.jsx)(V,{href:`/strategy`,children:We()}),In()]})]})]})}
23function aj({values:e,sign:t,invalid:n=!1,highlight:r=[],edges:i}){return(0,Y.jsxs)(`div`,{className:`pointer-events-none relative mx-auto w-full max-w-72`,style:{maxWidth:e.length*72},"aria-hidden":`true`,children:[(0,Y.jsx)(`div`,{className:`tango-board`,children:(0,Y.jsx)(`div`,{className:`tango-row`,style:{gridTemplateColumns:`repeat(${e.length}, minmax(0, 1fr))`},children:e.map((e,t)=>(0,Y.jsx)(`div`,{className:`tango-gridcell`,children:(0,Y.jsxs)(`div`,{className:`tango-cell`,"data-value":e,"data-mark":n?`mistake`:r.includes(t)?`hint`:void 0,"aria-disabled":`true`,children:[e!==0&&(0,Y.jsx)(cO,{value:e}),n&&(0,Y.jsx)(`span`,{className:`tango-error-mark`,children:`!`})]})},t))})}),(i??(t?[{index:0,sign:t}]:[])).map(t=>(0,Y.jsx)(`span`,{className:`tango-relation top-1/2`,style:{left:`${(t.index+1)/e.length*100}%`},children:t.sign},t.index))]})}function oj(){let e=[[wo(),oo()],[ul(),Os()],[Za(),Hc()],[rc(),Ma()]];return(0,Y.jsxs)(ZA,{slug:`rules`,title:on(),description:jt(),links:[],children:[(0,Y.jsxs)(Q,{title:bt(),children:[(0,Y.jsxs)(`ol`,{className:`list-decimal space-y-2 pl-6`,children:[(0,Y.jsx)(`li`,{children:ai()}),(0,Y.jsx)(`li`,{children:jl()}),(0,Y.jsx)(`li`,{children:$e()}),(0,Y.jsx)(`li`,{children:Xr()})]}),(0,Y.jsx)(`p`,{className:`mt-4`,children:Hl()}),(0,Y.jsxs)(`p`,{className:`mt-4`,children:[Va(),` `,(0,Y.jsx)(V,{href:`/how-to-play`,children:$i()}),$l()]})]}),(0,Y.jsxs)(Q,{title:Sr(),children:[(0,Y.jsx)(`p`,{children:nr()}),(0,Y.jsxs)(`figure`,{className:`my-6`,children:[(0,Y.jsx)(aj,{values:[1,1,2,2]}),(0,Y.jsx)(`figcaption`,{className:`mt-4 text-sm leading-6 text-muted-foreground`,children:Kn()})]})]}),(0,Y.jsxs)(Q,{title:ls(),children:[(0,Y.jsx)(`p`,{children:Ne()}),(0,Y.jsxs)(`figure`,{className:`my-6`,children:[(0,Y.jsx)(aj,{values:[1,1,1],invalid:!0}),(0,Y.jsx)(`figcaption`,{className:`mt-4 text-sm leading-6 text-muted-foreground`,children:vs()})]})]}),(0,Y.jsxs)(Q,{title:fr(),children:[(0,Y.jsx)(`p`,{children:ut()}),(0,Y.jsx)(`div`,{className:`my-6 grid gap-6 sm:grid-cols-2`,children:[[`=`,[1,1],!1,yl()],[`×`,[1,2],!1,Sa()],[`=`,[1,2],!0,Po()],[`×`,[1,1],!0,Wo()]].map(([e,t,n,r])=>(0,Y.jsxs)(`figure`,{children:[(0,Y.jsx)(aj,{values:t,sign:e,invalid:n}),(0,Y.jsx)(`figcaption`,{className:`mt-4 text-sm leading-6 text-muted-foreground`,children:r})]},r))}),(0,Y.jsxs)(`p`,{children:[Ls(),` `,(0,Y.jsx)(V,{href:`/clue-patterns`,children:_i()}),`.`]})]}),(0,Y.jsxs)(Q,{title:mc(),children:[(0,Y.jsx)(`div`,{className:`space-y-6`,children:e.map(([e,t])=>(0,Y.jsxs)(`div`,{children:[(0,Y.jsx)(`h3`,{className:`mb-2 font-display text-xl font-semibold`,children:e}),(0,Y.jsx)(`p`,{children:t})]},e))}),(0,Y.jsxs)(`p`,{className:`mt-6`,children:[$o(),` `,(0,Y.jsx)(V,{href:`/beginners-guide`,children:Bt()}),Nc()]})]})]})}var sj=[{title:()=>Us(),text:()=>Ac()},{title:()=>bc(),text:()=>Mn()},{title:()=>Ao(),text:()=>Kt()},{title:()=>uo(),text:()=>Hi()},{title:()=>hl(),text:()=>Ci()},{title:()=>Ns(),text:()=>tn()},{title:()=>no(),text:()=>Mi()},{title:()=>Yc(),text:()=>Ye()},{title:()=>uc(),text:()=>hu()},{title:()=>La(),text:()=>Kr()},{title:()=>as(),text:()=>Hn()},{title:()=>Rc(),text:()=>dn()}];function cj(){return(0,Y.jsxs)(ZA,{slug:`beginners-guide`,title:qs(),description:$c(),links:[],children:[(0,Y.jsx)(`p`,{children:mo()}),(0,Y.jsxs)(Q,{title:Ae(),children:[(0,Y.jsx)(`p`,{children:Lr()}),(0,Y.jsxs)(`p`,{className:`mt-4`,children:[Or(),` `,(0,Y.jsx)(V,{href:`/rules`,children:Ii()}),lr(),` `,(0,Y.jsx)(V,{href:`/how-to-play`,children:$i()}),`.`]}),(0,Y.jsx)(`p`,{className:`mt-4`,children:Qn()}),(0,Y.jsx)(MA,{board:ej.board,relations:ej.relations,label:QA,caption:(0,Y.jsxs)(Y.Fragment,{children:[ya({code:QA}),` `,(0,Y.jsx)(V,{href:$A,children:Qi()}),`.`]})})]}),(0,Y.jsxs)(Q,{title:ua(),children:[(0,Y.jsx)(`p`,{children:hs()}),(0,Y.jsx)(`ol`,{className:`mt-6 space-y-8`,children:sj.map(({title:e,text:t},n)=>(0,Y.jsxs)(`li`,{className:`border-t border-border pt-6`,children:[(0,Y.jsxs)(`h3`,{className:`font-display text-xl font-semibold`,children:[Sn({step:n+1}),` — `,e()]}),(0,Y.jsxs)(`div`,{className:`grid items-center gap-x-8 md:grid-cols-[minmax(0,1fr)_240px]`,children:[(0,Y.jsx)(`p`,{className:`mt-3`,children:t()}),(0,Y.jsx)(MA,{board:nj[n],givens:ej.board,relations:ej.relations,highlight:[tj[n].index],label:e(),caption:Be({step:n+1,row:Math.floor(tj[n].index/4)+1,column:tj[n].index%4+1,symbol:tj[n].value===1?eu():bl()})})]})]},n))}),(0,Y.jsx)(`p`,{children:Ts()})]}),(0,Y.jsxs)(Q,{title:vr(),children:[(0,Y.jsx)(`p`,{children:gt()}),(0,Y.jsxs)(`ol`,{className:`mt-4 list-decimal space-y-3 pl-6`,children:[(0,Y.jsx)(`li`,{children:Dt()}),(0,Y.jsx)(`li`,{children:fi()}),(0,Y.jsx)(`li`,{children:Rl()}),(0,Y.jsx)(`li`,{children:ot()}),(0,Y.jsx)(`li`,{children:ni()})]})]}),(0,Y.jsxs)(Q,{title:It(),children:[(0,Y.jsxs)(`p`,{children:[Yl(),` `,(0,Y.jsx)(V,{href:`/unlimited/4x4`,children:wa()}),qa()]}),(0,Y.jsxs)(`p`,{className:`mt-4`,children:[ou(),` `,(0,Y.jsx)(V,{href:`/unlimited`,children:Di()}),El(),` `,(0,Y.jsx)(V,{href:`/`,children:Oa()}),`.`]}),(0,Y.jsxs)(`p`,{className:`mt-4`,children:[Bo(),` `,(0,Y.jsx)(V,{href:`/strategy`,children:We()}),Xo(),` `,(0,Y.jsx)(V,{href:`/clue-patterns`,children:_i()}),`.`]})]})]})}function lj(){let e=[{before:[1,0],after:[1,2],sign:`×`,changed:[1],caption:Bn()},{before:[1,1,0],after:[1,1,2],changed:[2],caption:ln()},{before:[1,0,1],after:[1,2,1],changed:[1],caption:Pt()},{before:[1,2,0,1],after:[1,2,2,1],changed:[2],caption:Er()}];return(0,Y.jsxs)(ZA,{slug:`strategy`,title:Qs(),description:al(),links:[],children:[(0,Y.jsx)(`p`,{children:bo()}),(0,Y.jsxs)(Q,{title:Oe(),children:[(0,Y.jsx)(`p`,{children:Fr()}),(0,Y.jsxs)(`ol`,{className:`mt-4 list-decimal space-y-3 pl-6`,children:[(0,Y.jsx)(`li`,{children:Wt()}),(0,Y.jsx)(`li`,{children:Bi()}),(0,Y.jsx)(`li`,{children:xi()}),(0,Y.jsx)(`li`,{children:$t()}),(0,Y.jsx)(`li`,{children:Ai()})]})]}),(0,Y.jsxs)(Q,{title:_a(),children:[(0,Y.jsx)(`p`,{children:Yi()}),(0,Y.jsx)(`p`,{className:`mt-4`,children:qe()}),(0,Y.jsx)(`div`,{className:`mt-6 space-y-7`,children:e.map(e=>(0,Y.jsxs)(`figure`,{children:[(0,Y.jsxs)(`div`,{className:`grid items-center gap-3 sm:grid-cols-[1fr_auto_1fr]`,children:[(0,Y.jsxs)(`div`,{children:[(0,Y.jsx)(`p`,{className:`mb-2 text-center text-sm font-semibold`,children:pu()}),(0,Y.jsx)(aj,{values:e.before,sign:`sign`in e?e.sign:void 0})]}),(0,Y.jsxs)(`span`,{"aria-hidden":`true`,className:`text-center text-2xl`,children:[(0,Y.jsx)(`span`,{className:`sm:hidden`,children:`↓`}),(0,Y.jsx)(`span`,{className:`hidden sm:inline`,children:`→`})]}),(0,Y.jsxs)(`div`,{children:[(0,Y.jsx)(`p`,{className:`mb-2 text-center text-sm font-semibold`,children:Wr()}),(0,Y.jsx)(aj,{values:e.after,sign:`sign`in e?e.sign:void 0,highlight:e.changed})]})]}),(0,Y.jsx)(`figcaption`,{className:`mt-4 text-sm leading-6 text-muted-foreground`,children:e.caption})]},e.caption))}),(0,Y.jsxs)(`p`,{className:`mt-5`,children:[or(),` `,(0,Y.jsx)(V,{href:`/clue-patterns`,children:_i()}),`.`]})]}),(0,Y.jsxs)(Q,{title:sa(),children:[(0,Y.jsx)(`p`,{children:yn()}),(0,Y.jsxs)(`figure`,{className:`my-6`,children:[(0,Y.jsxs)(`div`,{className:`grid gap-6 sm:grid-cols-2`,children:[(0,Y.jsxs)(`div`,{children:[(0,Y.jsx)(`p`,{className:`mb-3 text-center font-semibold`,children:Yn()}),(0,Y.jsx)(aj,{values:[1,1,2,2],highlight:[3]})]}),(0,Y.jsxs)(`div`,{children:[(0,Y.jsx)(`p`,{className:`mb-3 text-center font-semibold`,children:fs()}),(0,Y.jsx)(aj,{values:[2,0,0,2],highlight:[0]})]})]}),(0,Y.jsx)(`figcaption`,{className:`mt-4 text-sm leading-6 text-muted-foreground`,children:Le()})]})]}),(0,Y.jsxs)(Q,{title:Ss(),children:[(0,Y.jsx)(`p`,{children:hr()}),(0,Y.jsxs)(`ol`,{className:`mt-4 list-decimal space-y-3 pl-6`,children:[(0,Y.jsx)(`li`,{children:pt()}),(0,Y.jsx)(`li`,{children:wt()}),(0,Y.jsx)(`li`,{children:li()})]}),(0,Y.jsxs)(`figure`,{className:`my-6`,children:[(0,Y.jsx)(aj,{values:[2,2,1,1],highlight:[2,3]}),(0,Y.jsx)(`figcaption`,{className:`mt-4 text-sm leading-6 text-muted-foreground`,children:Fl()})]}),(0,Y.jsxs)(`p`,{children:[rt(),` `,(0,Y.jsx)(V,{href:`/beginners-guide`,children:Bt()}),`.`]})]}),(0,Y.jsxs)(Q,{title:Oc(),children:[(0,Y.jsx)(`p`,{children:An()}),(0,Y.jsxs)(`ul`,{className:`mt-4 list-disc space-y-3 pl-6`,children:[(0,Y.jsx)(`li`,{children:$r()}),(0,Y.jsx)(`li`,{children:Kl()}),(0,Y.jsx)(`li`,{children:Wa()}),(0,Y.jsx)(`li`,{children:ru()}),(0,Y.jsx)(`li`,{children:Cl()})]}),(0,Y.jsx)(`p`,{className:`mt-4`,children:Ta()}),(0,Y.jsxs)(`p`,{className:`mt-4`,children:[Lo(),` `,(0,Y.jsx)(V,{href:`/how-to-play`,children:$i()}),`.`]})]}),(0,Y.jsxs)(Q,{title:qo(),children:[(0,Y.jsxs)(`ul`,{className:`list-disc space-y-3 pl-6`,children:[(0,Y.jsx)(`li`,{children:Bs()}),(0,Y.jsx)(`li`,{children:_c()}),(0,Y.jsx)(`li`,{children:Do()})]}),(0,Y.jsxs)(`p`,{className:`mt-4`,children:[W(),` `,(0,Y.jsx)(V,{href:`/board-sizes`,children:pl()}),`.`]})]})]})}function uj({pattern:e,caption:t}){return(0,Y.jsxs)(`figure`,{className:`my-7`,children:[(0,Y.jsxs)(`div`,{className:`grid items-center gap-4 sm:grid-cols-2`,children:[(0,Y.jsxs)(`div`,{children:[(0,Y.jsx)(`p`,{className:`mb-3 text-center text-sm font-semibold`,children:Wi()}),(0,Y.jsx)(aj,{values:e.before,edges:e.edges})]}),(0,Y.jsxs)(`div`,{children:[(0,Y.jsx)(`p`,{className:`mb-3 text-center text-sm font-semibold`,children:e.alternative?pn():ta()}),(0,Y.jsx)(aj,{values:e.after,edges:e.edges,highlight:e.alternative?[]:e.before.flatMap((e,t)=>e===0?[t]:[])}),e.alternative&&(0,Y.jsxs)(Y.Fragment,{children:[(0,Y.jsx)(`p`,{className:`my-2 text-center text-sm`,children:Cc()}),(0,Y.jsx)(aj,{values:e.alternative,edges:e.edges})]})]})]}),(0,Y.jsx)(`figcaption`,{className:`mt-4 text-sm leading-6 text-muted-foreground`,children:t})]})}function dj(){let e={equals:Tn(),cross:zt(),reverse_equals:Fi(),reverse_cross:gi(),equals_cross:Yt(),cross_cross:Ei(),cross_equals:Ue(),pair_equals:Br(),sun_equals_pair:Fn(),quota_equals:an(),open_equals:tr(),open_cross:Gn()},t=t=>yA.filter(e=>e.group===t).map(t=>(0,Y.jsx)(uj,{pattern:t,caption:e[t.id]},t.id)),n=[[`S = _`,`S = S`,lt()],[`S × _`,`S × M`,yt()],[`_ = M`,`M = M`,lt()],[`_ × M`,`S × M`,yt()],[`S = _ × _`,`S = S × M`,ii()],[`S × _ × _`,`S × M × S`,ii()],[`S × _ = _`,`S × M = M`,ii()],[`S S _ = _`,`S S M = M`,Al()],[`S _ = _`,`S M = M`,Al()],[`S _ S`,`S M S`,Qe()],[`S M S _ = _ S`,`S M S M = M S`,Yr()],[`_ = _`,`S = S / M = M`,Vl()],[`_ × _`,`S × M / M × S`,Vl()]];return(0,Y.jsxs)(ZA,{slug:`clue-patterns`,title:js(),description:eo(),links:[],children:[(0,Y.jsx)(`p`,{children:qc()}),(0,Y.jsxs)(`p`,{children:[Ar(),` `,(0,Y.jsx)(V,{href:`/rules`,children:Ii()}),`.`]}),(0,Y.jsxs)(Q,{title:cc(),children:[(0,Y.jsx)(`p`,{children:Fa()}),t(`basic`)]}),(0,Y.jsxs)(Q,{title:rs(),children:[(0,Y.jsx)(`p`,{children:Ic()}),t(`chain`),(0,Y.jsxs)(`figure`,{className:`my-6`,children:[(0,Y.jsx)(aj,{values:[1,1,1],edges:[{index:0,sign:`=`},{index:1,sign:`=`}],invalid:!0}),(0,Y.jsx)(`figcaption`,{className:`mt-4 text-sm leading-6 text-muted-foreground`,children:lu()})]})]}),(0,Y.jsxs)(Q,{title:Xs(),children:[(0,Y.jsx)(`p`,{children:rl()}),t(`triple`)]}),(0,Y.jsxs)(Q,{title:vo(),children:[(0,Y.jsx)(`p`,{children:Ce()}),t(`balance`),(0,Y.jsx)(`p`,{children:fa()})]}),(0,Y.jsxs)(Q,{title:At(),children:[(0,Y.jsx)(`p`,{children:xr()}),t(`open`)]}),(0,Y.jsxs)(Q,{title:cs(),children:[(0,Y.jsx)(`p`,{children:Me()}),(0,Y.jsxs)(`table`,{className:`mt-4 w-full table-fixed text-left text-sm leading-6`,children:[(0,Y.jsx)(`caption`,{className:`sr-only`,children:cs()}),(0,Y.jsx)(`thead`,{children:(0,Y.jsx)(`tr`,{className:`bg-violet-100/60`,children:[Wi(),_s(),dr()].map(e=>
23(0,Y.jsx)(`th`,{scope:`col`,className:`p-2 align-top sm:p-3`,children:e},e))})}),(0,Y.jsx)(`tbody`,{children:n.map(([e,t,n])=>(0,Y.jsxs)(`tr`,{className:`border-b border-violet-200/60`,children:[(0,Y.jsx)(`th`,{scope:`row`,className:`p-2 align-top font-mono font-medium sm:p-3`,children:e}),(0,Y.jsx)(`td`,{className:`p-2 align-top font-mono sm:p-3`,children:t}),(0,Y.jsx)(`td`,{className:`p-2 align-top sm:p-3`,children:n})]},e))})]}),(0,Y.jsxs)(`p`,{className:`mt-5`,children:[Ba(),` `,(0,Y.jsx)(V,{href:`/strategy`,children:We()}),`.`]}),(0,Y.jsxs)(`p`,{className:`mt-4`,children:[Ql(),` `,(0,Y.jsx)(V,{href:`/beginners-guide`,children:Bt()}),`.`]})]})]})}function fj(){let e={4:Qc(),6:po(),8:Te(),10:Mr(),12:ma()},t={4:ia(),6:gn(),8:Tc(),10:Dn(),12:Vt()};return(0,Y.jsxs)(ZA,{slug:`board-sizes`,title:vl(),description:xa(),links:[],children:[(0,Y.jsx)(`p`,{children:No()}),(0,Y.jsxs)(Q,{title:Co(),children:[(0,Y.jsx)(`p`,{children:ao()}),(0,Y.jsxs)(`table`,{className:`mt-5 w-full table-fixed text-left text-sm leading-6 sm:text-base`,children:[(0,Y.jsx)(`caption`,{className:`sr-only`,children:ll()}),(0,Y.jsx)(`thead`,{children:(0,Y.jsx)(`tr`,{className:`bg-violet-100/60`,children:[Ds(),Xa(),Vc(),nc()].map(e=>(0,Y.jsx)(`th`,{scope:`col`,className:`p-2 align-top wrap-break-word sm:p-3`,children:e},e))})}),(0,Y.jsx)(`tbody`,{children:qk.map(e=>(0,Y.jsxs)(`tr`,{className:`border-b border-violet-200/60`,children:[(0,Y.jsxs)(`th`,{scope:`row`,className:`p-2 font-semibold sm:p-3`,children:[e,`×`,e]}),(0,Y.jsx)(`td`,{className:`p-2 sm:p-3`,children:e*e}),(0,Y.jsx)(`td`,{className:`p-2 sm:p-3`,children:e/2}),(0,Y.jsx)(`td`,{className:`p-2 sm:p-3`,children:e/2})]},e))})]}),(0,Y.jsx)(`p`,{className:`mt-4`,children:ja()})]}),(0,Y.jsx)(Q,{title:Qo(),children:(0,Y.jsx)(`div`,{className:`space-y-7`,children:qk.map(t=>(0,Y.jsxs)(`section`,{children:[(0,Y.jsx)(`h3`,{className:`mb-2 font-display text-xl font-semibold`,children:Mc({size:`${t}×${t}`})}),(0,Y.jsxs)(`p`,{children:[Ks({cells:t*t,quota:t/2}),` `,e[t]]}),(0,Y.jsxs)(`p`,{className:`mt-3`,children:[(0,Y.jsx)(V,{href:`/unlimited/${t}x${t}`,children:Uo({size:`${t}×${t}`})}),Ki()]})]},t))})}),(0,Y.jsxs)(Q,{title:Is(),children:[(0,Y.jsx)(`p`,{children:pc()}),(0,Y.jsx)(`ul`,{className:`mt-4 list-disc space-y-3 pl-6`,children:qk.map(e=>(0,Y.jsxs)(`li`,{children:[(0,Y.jsxs)(`strong`,{children:[e,`×`,e]}),` — `,t[e]]},e))}),(0,Y.jsx)(`p`,{className:`mt-4`,children:Li()}),(0,Y.jsxs)(`p`,{className:`mt-4`,children:[vi(),` `,(0,Y.jsx)(V,{href:`/strategy`,children:We()}),Zt()]}),(0,Y.jsxs)(`p`,{className:`mt-4`,children:[Oi(),` `,(0,Y.jsx)(V,{href:`/how-puzzles-are-made`,children:pi()}),`.`]})]}),(0,Y.jsxs)(Q,{title:Ge(),children:[(0,Y.jsxs)(`p`,{children:[du(),` `,(0,Y.jsx)(V,{href:`/`,children:Hr()}),Ln()]}),(0,Y.jsxs)(`ul`,{className:`mt-4 list-disc space-y-3 pl-6`,children:[(0,Y.jsx)(`li`,{children:sn()}),(0,Y.jsx)(`li`,{children:Mt()})]}),(0,Y.jsx)(`p`,{className:`mt-4`,children:wr()}),(0,Y.jsxs)(`p`,{className:`mt-4`,children:[ir(),` `,(0,Y.jsx)(V,{href:`/unlimited`,children:Di()}),qn()]})]})]})}function pj(){return(0,Y.jsxs)(ZA,{slug:`how-puzzles-are-made`,title:us(),description:Fe(),links:[],children:[(0,Y.jsx)(`p`,{children:bs()}),(0,Y.jsxs)(Q,{title:pr(),children:[(0,Y.jsx)(`p`,{children:dt()}),(0,Y.jsx)(`p`,{className:`my-4 rounded-xl bg-amber-50/80 p-4`,children:(0,Y.jsx)(`code`,{children:`tango:6:#1491`})}),(0,Y.jsxs)(`ul`,{className:`list-disc space-y-2 pl-6`,children:[(0,Y.jsx)(`li`,{children:xl()}),(0,Y.jsx)(`li`,{children:Ca()}),(0,Y.jsx)(`li`,{children:Fo()})]})]}),(0,Y.jsxs)(Q,{title:St(),children:[(0,Y.jsx)(`p`,{children:si()}),(0,Y.jsxs)(`table`,{className:`mt-5 w-full table-fixed text-left text-sm leading-6 sm:text-base`,children:[(0,Y.jsx)(`caption`,{className:`sr-only`,children:St()}),(0,Y.jsx)(`thead`,{children:(0,Y.jsx)(`tr`,{className:`bg-violet-100/60`,children:[Go(),Rs(),hc()].map(e=>(0,Y.jsx)(`th`,{scope:`col`,className:`p-2 align-top wrap-break-word sm:p-3`,children:e},e))})}),(0,Y.jsx)(`tbody`,{children:qk.map(e=>{let[t,n]=eA(e);return(0,Y.jsxs)(`tr`,{className:`border-b border-violet-200/60`,children:[(0,Y.jsxs)(`th`,{scope:`row`,className:`p-2 sm:p-3`,children:[e,`×`,e]}),(0,Y.jsxs)(`td`,{className:`p-2 sm:p-3`,children:[t,`–`,n]}),(0,Y.jsxs)(`td`,{className:`p-2 sm:p-3`,children:[`1–`,Qk]})]},e)})})]}),(0,Y.jsx)(`p`,{className:`mt-4`,children:To()}),(0,Y.jsxs)(`p`,{className:`mt-4`,children:[so(),` `,(0,Y.jsx)(V,{href:`/board-sizes`,children:pl()}),`.`]})]}),(0,Y.jsxs)(Q,{title:Nl(),children:[(0,Y.jsx)(`p`,{children:tt()}),(0,Y.jsxs)(`p`,{className:`mt-4`,children:[dl(),` `,(0,Y.jsx)(V,{href:`/unlimited/6x6/491`,children:(0,Y.jsx)(`code`,{children:`/unlimited/6x6/491`})}),`.`]}
23),(0,Y.jsx)(`p`,{className:`my-4 rounded-xl bg-amber-50/80 p-4`,children:(0,Y.jsx)(`code`,{children:`1001 + (491 − 1) = 1491`})}),(0,Y.jsx)(`p`,{children:ks()}),(0,Y.jsx)(`p`,{className:`mt-4`,children:Qa()})]}),(0,Y.jsxs)(Q,{title:Zr(),children:[(0,Y.jsx)(`p`,{children:Wl()}),(0,Y.jsxs)(`ol`,{className:`mt-4 list-decimal space-y-4 pl-6`,children:[(0,Y.jsx)(`li`,{children:Wc()}),(0,Y.jsx)(`li`,{children:ac()}),(0,Y.jsx)(`li`,{children:Na()}),(0,Y.jsx)(`li`,{children:ts()})]}),(0,Y.jsx)(`p`,{className:`mt-4`,children:Pc()}),(0,Y.jsxs)(`p`,{className:`mt-4`,children:[Js(),` `,(0,Y.jsx)(V,{href:`/rules`,children:Ii()}),`.`]})]}),(0,Y.jsxs)(Q,{title:Ha(),children:[(0,Y.jsx)(`p`,{children:tu()}),(0,Y.jsxs)(`ol`,{className:`mt-4 list-decimal space-y-4 pl-6`,children:[(0,Y.jsx)(`li`,{children:tl()}),(0,Y.jsx)(`li`,{children:go()}),(0,Y.jsx)(`li`,{children:ke()}),(0,Y.jsx)(`li`,{children:Ir()})]}),(0,Y.jsx)(`p`,{className:`mt-4`,children:va()})]}),(0,Y.jsxs)(Q,{title:Zi(),children:[(0,Y.jsxs)(`p`,{children:[la(),` `,(0,Y.jsx)(V,{href:`/unlimited`,children:Di()}),xn()]}),(0,Y.jsxs)(`p`,{className:`mt-4`,children:[kc(),` `,(0,Y.jsx)(V,{href:`/`,children:Hr()}),jn()]}),(0,Y.jsxs)(`p`,{className:`mt-4`,children:[Gt(),` `,(0,Y.jsx)(V,{href:`/archive`,children:Vi()}),Si()]})]})]})}function mj(){let e=[[Jl(),Ka(),au()],[Tl(),Da(),zo()],[Yo(),Hs(),yc()],[ko(),lo(),ml()],[Ms(),to(),Jc()],[lc(),Ia(),is()]];return(0,Y.jsxs)(ZA,{slug:`linkedin-tango`,title:en(),description:ji(),links:[],children:[(0,Y.jsxs)(Q,{title:Je(),children:[(0,Y.jsxs)(`p`,{children:[mu(),` `,(0,Y.jsx)(`a`,{href:`https://www.linkedin.com/games/tango`,children:Dr()}),`.`]}),(0,Y.jsx)(`p`,{className:`mt-4`,children:un()})]}),(0,Y.jsxs)(Q,{title:Gr(),children:[(0,Y.jsx)(`p`,{children:Vn()}),(0,Y.jsxs)(`ul`,{className:`mt-4 list-disc space-y-2 pl-6`,children:[(0,Y.jsx)(`li`,{children:cr()}),(0,Y.jsx)(`li`,{children:Zn()}),(0,Y.jsx)(`li`,{children:ms()}),(0,Y.jsx)(`li`,{children:ze()})]}),(0,Y.jsxs)(`p`,{className:`mt-4`,children:[ws(),` `,(0,Y.jsx)(`a`,{href:`https://www.linkedin.com/help/linkedin/answer/a6861672/`,children:_r()}),`.`]})]}),(0,Y.jsx)(Q,{title:ht(),children:(0,Y.jsx)(`p`,{children:Et()})}),(0,Y.jsx)(Q,{title:di(),children:(0,Y.jsxs)(`table`,{className:`w-full table-fixed text-left text-sm leading-6 sm:text-base`,children:[(0,Y.jsx)(`caption`,{className:`sr-only`,children:di()}),(0,Y.jsx)(`thead`,{children:(0,Y.jsx)(`tr`,{className:`bg-violet-100/60`,children:[Ll(),at(),ti()].map(e=>(0,Y.jsx)(`th`,{scope:`col`,className:`p-2 align-top wrap-break-word sm:p-3`,children:e},e))})}),(0,Y.jsx)(`tbody`,{children:e.map(([e,t,n])=>(0,Y.jsxs)(`tr`,{className:`border-b border-violet-200/60`,children:[(0,Y.jsx)(`th`,{scope:`row`,className:`p-2 align-top wrap-break-word sm:p-3`,children:e}),(0,Y.jsx)(`td`,{className:`p-2 align-top wrap-break-word sm:p-3`,children:t}),(0,Y.jsx)(`td`,{className:`p-2 align-top wrap-break-word sm:p-3`,children:n})]},e))})]})}),(0,Y.jsx)(Q,{title:Lc(),children:(0,Y.jsx)(`p`,{children:Zs()})}),(0,Y.jsxs)(Q,{title:Ft(),children:[(0,Y.jsxs)(`p`,{children:[il(),` `,(0,Y.jsx)(V,{href:`/`,children:yo()}),De()]}),(0,Y.jsxs)(`p`,{className:`mt-4`,children:[Pr(),` `,(0,Y.jsx)(V,{href:`/unlimited`,children:ga()}),Ji(),` `,(0,Y.jsx)(V,{href:`/board-sizes`,children:oa()}),vn()]}),(0,Y.jsxs)(`p`,{className:`mt-4`,children:[Dc(),` `,(0,Y.jsx)(V,{href:`/archive`,children:kn()}),Ut()]}),(0,Y.jsxs)(`p`,{className:`mt-4`,children:[zi(),` `,(0,Y.jsx)(V,{href:`/how-to-play`,children:$i()}),bi()]})]})]})}function hj(e,t,n){return{head:()=>Fk({title:t.title(),description:t.description(),path:`/${e}`,locale:ue(),imageAlt:Pi()}),component:n}}var gj=H(`/(pages)/what-is-tango-game`)(hj(`what-is-tango-game`,{title:()=>Dl(),description:()=>ka()},rj)),_j={},vj=J.createContext(_j);
23function $(e){let t=J.useContext(vj);return J.useMemo(function(){return typeof e==`function`?e(t):{...t,...e}},[t,e])}function yj(e){let t;return t=e.disableParentContext?typeof e.components==`function`?e.components(_j):e.components||_j:$(e.components),J.createElement(vj.Provider,{value:t},e.children)}var bj=S({default:()=>Cj,meta:()=>xj}),xj={title:`Über Tango Grid`,description:`Lerne Tango Grid kennen: eine unabhängige Plattform für kostenlose Sonnen- und Mond-Logikrätsel, tägliche Herausforderungen, unbegrenztes Üben und Spiel gegen die Uhr.`,updated_at:`2026-09-14`};function Sj(e){let t={a:`a`,h2:`h2`,li:`li`,p:`p`,strong:`strong`,ul:`ul`,...$(),...e.components};return(0,Y.jsxs)(Y.Fragment,{children:[(0,Y.jsx)(t.h2,{children:`Eine kleine tägliche Denkaufgabe mit Raum für mehr`}),`
24`,(0,Y.jsx)(t.p,{children:`Tango Grid ist eine unabhängige Rätsel-Website für alle, die gerne logisch denken und Probleme Feld für Feld lösen. Unsere Sonnen- und Mond-Rätsel basieren auf wenigen klaren Regeln: Jede Zeile und Spalte ausgleichen, niemals drei gleiche Symbole hintereinander setzen und alle Gleichheits- sowie Unterschiedshinweise beachten.`}),`
25`,(0,Y.jsx)(t.p,{children:`Du kannst direkt kostenlos in deinem Browser spielen, ganz ohne Registrierung. Ob auf dem Smartphone oder am Computer: Nimm dir Zeit und nutze Hinweise, Rückgängig und Zurücksetzen, wann immer du Unterstützung brauchst.`}),`
26`,(0,Y.jsx)(t.h2,{children:`Wähle deinen Spielmodus`}),`
27`,(0,Y.jsxs)(t.ul,{children:[`
28`,(0,Y.jsxs)(t.li,{children:[(0,Y.jsxs)(t.strong,{children:[(0,Y.jsx)(t.a,{href:`/`,children:`Tägliches Tango`}),`:`]}),` Jeden Tag nach UTC dieselben fünf Spielfelder für alle Spieler weltweit. Löse drei Kernrätsel und meistere anschließend zwei optionale Bonus-Rätsel. Der nächste Tag beginnt um 00:00 Uhr UTC.`]}),`
29`,(0,Y.jsxs)(t.li,{children:[(0,Y.jsxs)(t.strong,{children:[(0,Y.jsx)(t.a,{href:`/unlimited`,children:`Unbegrenzt`}),`:`]}),` Trainiere ohne tägliches Spiellimit in Größen von 4×4 bis 12×12. Teile den Link zu einem Rätsel, damit Freunde dasselbe Spielfeld ausprobieren können.`]}),`
30`,(0,Y.jsxs)(t.li,{children:[(0,Y.jsxs)(t.strong,{children:[(0,Y.jsx)(t.a,{href:`/timed`,children:`Zeitmodus`}),`:`]}),` Starte mit 180 Sekunden auf 4×4, löse zufällige Spielfelder bis 12×12 und sichere dir größenabhängige Bonussekunden.`]}),`
31`,(0,Y.jsxs)(t.li,{children:[(0,Y.jsxs)(t.strong,{children:[(0,Y.jsx)(t.a,{href:`/archive`,children:`Archiv`}),`:`]}),` Spiele die fünf Rätsel eines früheren Tages nach, sofern für dieses Datum ein Set verfügbar ist.`]}),`
32`]}),`
33`,(0,Y.jsx)(t.p,{children:`Die Timer im täglichen und unbegrenzten Modus erfassen deine Spielzeit ohne Countdown. Dein Spielfortsc
33hritt wird im aktuellen Browser gespeichert, sofern lokaler Speicher verfügbar ist. Eine Anmeldung synchronisiert Speicherstände nicht zwischen verschiedenen Geräten.`}),`
34`,(0,Y.jsx)(t.h2,{children:`Lerne die logischen Grundlagen`}),`
35`,(0,Y.jsxs)(t.p,{children:[`Du musst kein langes Regelwerk auswendig lernen. Unsere `,(0,Y.jsx)(t.a,{href:`/how-to-play`,children:`Spielanleitung`}),` erklärt die Steuerung, die `,(0,Y.jsx)(t.a,{href:`/rules`,children:`Regelseite`}),` zeigt gültige Spielfelder und der `,(0,Y.jsx)(t.a,{href:`/beginners-guide`,children:`Einsteiger-Leitfaden`}),` führt dich Schritt für Schritt durch ein Rätsel. Wenn du dein Können vertiefen möchtest, entdecke `,(0,Y.jsx)(t.a,{href:`/strategy`,children:`Lösungsstrategien`}),` und `,(0,Y.jsx)(t.a,{href:`/clue-patterns`,children:`Hinweismuster`}),`.`]}),`
36`,(0,Y.jsx)(t.h2,{children:`Eine unabhängige Variante von Tango`}),`
37`,(0,Y.jsxs)(t.p,{children:[`Tango Grid ist nicht mit LinkedIn verbunden, wird nicht von LinkedIn gesponsert und nicht von LinkedIn unterstützt. Unsere täglichen Sets sind eigene Kreationen; sie stellen weder das offizielle LinkedIn-Tagesspiel noch ein Lösungsarchiv dar. Lies unsere Übersicht zu `,(0,Y.jsx)(t.a,{href:`/linkedin-tango`,children:`LinkedIn Tango`}),` für die genauen Unterschiede und den Link zum offiziellen Spiel.`]}),`
38`,(0,Y.jsx)(t.h2,{children:`Hilf uns, das Spiel zu verbessern`}),`
39`,(0,Y.jsxs)(t.p,{children:[`Hast du einen unklaren Hinweis, ein fehlerhaftes Steuerelement oder eine unvollständige Erklärung entdeckt? Sende uns dein `,(0,Y.jsx)(t.a,{href:`/feedback`,children:`Feedback`}),` oder schreibe eine E-Mail an `,(0,Y.jsx)(t.a,{href:`mailto:[email protected]`,children:`[email protected]`}),`. Ein Rätsellink und eine kurze Beschreibung helfen uns bei der schnellen Überprüfung.`]})]})}function Cj(e={}){let{wrapper:t}={...$(),...e.components};return t?(0,Y.jsx)(t,{...e,children:(0,Y.jsx)(Sj,{...e})}):Sj(e)}var wj=S({default:()=>Dj,meta:()=>Tj}),Tj={title:`About Tango Grid`,description:`Meet Tango Grid, an independent home for free sun and moon logic puzzles, daily challenges, unlimited practice, and timed play.`,updated_at:`2026-09-08`};function Ej(e){let t={a:`a`,h2:`h2`,li:`li`,p:`p`,strong:`strong`,ul:`ul`,...$(),...e.components};return(0,Y.jsxs)(Y.Fragment,{children:[(0,Y.jsx)(t.h2,{children:`A small daily challenge, with room to keep playing`}),`
40`,(0,Y.jsx)(t.p,{children:`Tango Grid is an independent puzzle website for people who enjoy working things out, one square at a time. Our sun and moon puzzles use a few simple rules: balance every row and column, avoid three identical symbols in a row, and follow the matching and opposite clues.`}),`
41`,(0,Y.jsx)(t.p,{children:`You can play for free in your browser without creating an account. Start on your phone or computer, take your time, and use the hints, undo, and reset controls when you need them.`}),`
42`,(0,Y.jsx)(t.h2,{children:`Choose how you play`}),`
43`,(0,Y.jsxs)(t.ul,{children:[`
44`,(0,Y.jsxs)(t.li,{children:[(0,Y.jsxs)(t.strong,{children:[(0,Y.jsx)(t.a,{href:`/`,children:`Daily Tango`}),`:`]}),` the same five boards for everyone each UTC day. Complete three core puzzles, then try two optional bonus puzzles. The next day begins at 00:00 UTC.`]}),`
45`,(0,Y.jsxs)(t.li,{children:[(0,Y.jsxs)(t.strong,{children:[(0,Y.jsx)(t.a,{href:`/unlimited`,children:`Unlimited`}),`:`]}),` keep practising without a daily play limit in sizes from 4×4 to 12×12. Share a puzzle link to let a friend try the same board.`]}),`
46`,(0,Y.jsxs)(t.li,{children:[(0,Y.jsxs)(t.strong,{children:[(0,Y.jsx)(t.a,{href:`/timed`,children:`Timed`}),`:`]}),` start with 180 seconds on 4×4, then solve random boards up to 12×12 and earn size-based bonus time.`]}),`
47`,(0,Y.jsxs)(t.li,{children:[(0,Y.jsxs)(t.strong,{children:[(0,Y.jsx)(t.a,{href:`/archive`,children:`Archive`}),`:`]}),` revisit a previous day's five puzzles when that date is available.`]}),`
48`]}),`
49`,(0,Y.jsx)(t.p,{children:`The Daily and Unlimited timers record your playing time; they do not impose a countdown. Your puzzle progress is saved in your current browser when browser storage is available. Signing in does not move those saves between devices.`}),`
50`,(0,Y.jsx)(t.h2,{children:`Learn the reasoning`}),`
51`,(0,Y.jsxs)(t.p,{children:[`You do not need to memorise a long rulebook. Our `,(0,Y.jsx)(t.a,{href:`/how-to-play`,children:`how-to-play guide`}),` explains the controls, the `,(0,Y.jsx)(t.a,{href:`/rules`,children:`rules page`}),` shows what a valid board looks like, and the `,(0,Y.jsx)(t.a,{href:`/beginners-guide`,children:`beginner'
51s guide`}),` walks through a puzzle. When you want to go further, explore `,(0,Y.jsx)(t.a,{href:`/strategy`,children:`solving strategies`}),` and `,(0,Y.jsx)(t.a,{href:`/clue-patterns`,children:`clue patterns`}),`.`]}),`
52`,(0,Y.jsx)(t.h2,{children:`An independent take on Tango`}),`
53`,(0,Y.jsxs)(t.p,{children:[`Tango Grid is not affiliated with, sponsored by, or endorsed by LinkedIn. Our daily sets are our own; they are not LinkedIn's official daily puzzle or answer archive. See `,(0,Y.jsx)(t.a,{href:`/linkedin-tango`,children:`LinkedIn Tango`}),` for the distinction and a link to the official game.`]}),`
54`,(0,Y.jsx)(t.h2,{children:`Help us make it better`}),`
55`,(0,Y.jsxs)(t.p,{children:[`Found a confusing clue, a broken control, or an explanation that could be clearer? Send us `,(0,Y.jsx)(t.a,{href:`/feedback`,children:`feedback`}),` or email `,(0,Y.jsx)(t.a,{href:`mailto:[email protected]`,children:`[email protected]`}),`. A puzzle link and a short description help us investigate.`]})]})}function Dj(e={}){let{wrapper:t}={...$(),...e.components};return t?(0,Y.jsx)(t,{...e,children:(0,Y.jsx)(Ej,{...e})}):Ej(e)}var Oj=S({default:()=>jj,meta:()=>kj}),kj={title:`Acerca de Tango Grid`,description:`Conoce Tango Grid: una plataforma independiente de rompecabezas lógicos de soles y lunas gratuitos, retos diarios, práctica ilimitada y contrarreloj.`,updated_at:`2026-09-21`};function Aj(e){let t={a:`a`,h2:`h2`,li:`li`,p:`p`,strong:`strong`,ul:`ul`,...$(),...e.components};return(0,Y.jsxs)(Y.Fragment,{children:[(0,Y.jsx)(t.h2,{children:`Un pequeño desafío diario con espacio para seguir jugando`}),`
56`,(0,Y.jsx)(t.p,{children:`Tango Grid es un sitio web independiente de pasatiempos lógicos para quienes disfrutan resolviendo retos casilla a casilla. Nuestros rompecabezas de soles y lunas se basan en unas pocas reglas sencillas: equilibrar cada fila y columna, no colocar tres símbolos iguales consecutivos y respetar las pistas de igualdad y oposición.`}),`
57`,(0,Y.jsx)(t.p,{children:`Puedes jugar gratis directamente en tu navegador sin necesidad de crear una cuenta. Empieza en tu móvil o en tu ordenador, tómate tu tiempo y utiliza las pistas, el botón de deshacer y el reinicio siempre que lo necesites.`}),`
58`,(0,Y.jsx)(t.h2,{children:`Elige cómo jugar`}),`
59`,(0,Y.jsxs)(t.ul,{children:[`
60`,(0,Y.jsxs)(t.li,{children:[(0,Y.jsxs)(t.strong,{children:[(0,Y.jsx)(t.a,{href:`/`,children:`Tango Diario`}),`:`]}),` los mismos cinco tableros para todos los jugadores cada día según el horario UTC. Resuelve tres rompecabezas principales y luego prueba dos rompecabezas de bonificación opcionales. El siguiente día comienza a las 00:00 UTC.`]}),`
61`,(0,Y.jsxs)(t.li,{children:[(0,Y.jsxs)(t.strong,{children:[(0,Y.jsx)(t.a,{href:`/unlimited`,children:`Ilimitado`}),`:`]}),` sigue practicando sin límite diario en tamaños desde 4×4 hasta 12×12. Comparte el enlace de un rompecabezas para que un amigo intente resolver el mismo tablero.`]}),`
62`,(0,Y.jsxs)(t.li,{children:[(0,Y.jsxs)(t.strong,{children:[(0,Y.jsx)(t.a,{href:`/timed`,children:`Contrarreloj`}),`:`]}),` empieza con 180 segundos en 4×4, resuelve tableros aleatorios de hasta 12×12 y gana tiempo extra según el tamaño del tablero.`]}),`
63`,(0,Y.jsxs)(t.li,{children:[(0,Y.jsxs)(t.strong,{children:[(0,Y.jsx)(t.a,{href:`/archive`,children:`Archivo`}),`:`]}),` vuelve a jugar los cinco rompecabezas de días anteriores siempre que la fecha esté disponible.`]}),`
64`]}),`
65`,(0,Y.jsx)(t.p,{children:`Los temporizadores de los modos Diario e Ilimitado registran tu tiempo de resolución sin cuenta atrás. Tu progreso se guarda en tu navegador actual cuando el almacenamiento local está disponible. Iniciar sesión no sincroniza tus partidas guardadas entre diferentes dispositivos.`}),`
66`,(0,Y.jsx)(t.h2,{children:`Aprende el razonamiento lógico`}),`
67`,(0,Y.jsxs)(t.p,{children:[`No necesitas memorizar un reglamento extenso. Nuestra `,(0,Y.jsx)(t.a,{href:`/how-to-play`,children:`guía de cómo jugar`}),` explica los controles, la página de `,(0,Y.jsx)(t.a,{href:`/rules`,children:`reglas`}),` muestra cómo es un tablero válido y la `,(0,Y.jsx)(t.a,{href:`/beginners-guide`,children:`guía para principiantes`}),` te acompaña paso a paso en una partida. Cuando quieras profundizar, explora nuestras `,(0,Y.jsx)(t.a,{href:`/strategy`,children:`estrategias de resolución`}),` y los `,(0,Y.jsx)(t.a,{href:`/clue-patterns`,children:`patrones de pistas`}),`.`]}),`
68`,(0,Y.jsx)(t.h2,{children:`Una versión independiente de Tango`}),`
69`,(0,Y.jsxs)(t.p,{children:[`Tango Grid no está afiliado, patrocinado ni respaldado por LinkedIn. Nuestros conjuntos diarios son creaciones propias; no son el rompecabezas diario oficial de LinkedIn ni un archivo de respuestas oficiales. Consulta nuestra sección sobre `,(0,Y.jsx)(t.a,{href:`/linkedin-tango`,children:`LinkedIn Tango`}),` para conocer las diferencias y encontrar el enlace al juego oficial.`]}),`
70`,(0,Y.jsx)(t.h2,{children:`Ayúdanos a mejorarlo`}),`
71`,(0,Y.jsxs)(t.p,{children:[`¿Has encontrado una pista confusa, un botón que no responde o una explicación que podría ser más clara? Envíanos tus comentarios a través del formulario de `,(0,Y.jsx)(t.a,{href:`/feedback`,children:`opinión y sugerencias`}),` o escríbenos a `,(0,Y.jsx)(t.a,{href:`mailto:[email protected]`,children:`[email protected]`}),`. Incluir el enlace al rompecabezas y una breve descripción nos ayudará a investigar el problema.`]})]})}function jj(e={}){let{wrapper:t}={...$(),...e.components};return t?(0,Y.jsx)(t,{...e,children:(0,Y.jsx)(Aj,{...e})}):Aj(e)}var Mj=S({default:()=>Fj,meta:()=>Nj}),Nj={title:`À propos de Tango Grid`,description:`Découvrez Tango Grid, un site indépendant de jeux de logique soleil et lune : séries quotidiennes, entraînement illimité et défis contre la montre.`,updated_at:`2026-09-13`};function Pj(e){let t={a:`a`,h2:`h2`,li:`li`,p:`p`,strong:`strong`,ul:`ul`,...$(),...e.components};return(0,Y.jsxs)(Y.Fragment,{children:[(0,Y.jsx)(t.h2,{children:`Un petit défi quotidien, et de quoi continuer`}),`
72`,(0,Y.jsx)(t.p,{children:`Tango Grid est un site indépendant pour celles et ceux qui aiment résoudre un problème une case à la fois. Nos grilles de soleils et de lunes suivent quelques règles simples : équilibrer chaque ligne et colonne, éviter trois symboles identiques consécutifs et respecter les signes d’égalité et d’opposition.`}),`
73`,(0,Y.jsx)(t.p,{children:`Vous pouvez jouer gratuitement dans votre navigateur, sans créer de compte. Sur téléphone ou ordinateur, prenez votre temps et utilisez les indices, l’annulation ou la remise à zéro lorsque vous en avez besoin.`}),`
74`,(0,Y.jsx)(t.h2,{children:`Choisissez votre façon de jouer`}),`
75`,(0,Y.jsxs)(t.ul,{children:[`
76`,(0,Y.jsxs)(t.li,{children:[(0,Y.jsxs)(t.strong,{children:[(0,Y.jsx)(t.a,{href:`/`,children:`Tango du jour`}),` :`]}),` cinq grilles identiques pour tous à chaque journée UTC. Terminez les trois grilles principales, puis essayez les deux bonus facultatifs. La journée suivante commence à 00:00 UTC.`]}),`
77`,(0,Y.jsxs)(t.li,{children:[(0,Y.jsxs)(t.strong,{children:[(0,Y.jsx)(t.a,{href:`/unlimited`,children:`Illimité`}),` :`]}),` entraînez-vous sans limite quotidienne, de 4×4 à 12×12. Partagez le lien d’une grille pour qu’un ami puisse résoudre la même.`]}),`
78`,(0,Y.jsxs)(t.li,{children:[(0,Y.jsxs)(t.strong,{children:[(0,Y.jsx)(t.a,{href:`/timed`,children:`Chrono`}),` :`]}),` commencez avec 180 secondes en 4×4, puis résolvez des grilles aléatoires jusqu’au 12×12 pour gagner du temps bonus selon leur taille.`]}),`
79`,(0,Y.jsxs)(t.li,{children:[(0,Y.jsxs)(t.strong,{children:[(0,Y.jsx)(t.a,{href:`/archive`,children:`Archives`}),` :`]}),` retrouvez les cinq grilles d’une journée précédente lorsque cette date est disponible.`]}),`
80`]}),`
81`,(0,Y.jsx)(t.p,{children:`Les chronomètres des modes quotidien et illimité mesurent votre temps de jeu sans compte à rebours. Votre progression est c
81onservée dans le navigateur utilisé lorsque le stockage est disponible. La connexion à un compte ne transfère pas ces sauvegardes entre appareils.`}),`
82`,(0,Y.jsx)(t.h2,{children:`Apprenez à raisonner`}),`
83`,(0,Y.jsxs)(t.p,{children:[`Pas besoin de mémoriser un long règlement. Notre guide `,(0,Y.jsx)(t.a,{href:`/how-to-play`,children:`Comment jouer`}),` présente les commandes, les `,(0,Y.jsx)(t.a,{href:`/rules`,children:`règles`}),` montrent les conditions d’une grille valide et le `,(0,Y.jsx)(t.a,{href:`/beginners-guide`,children:`guide débutant`}),` explique une résolution complète. Pour aller plus loin, explorez les `,(0,Y.jsx)(t.a,{href:`/strategy`,children:`stratégies`}),` et les `,(0,Y.jsx)(t.a,{href:`/clue-patterns`,children:`motifs d’indices`}),`.`]}),`
84`,(0,Y.jsx)(t.h2,{children:`Une version indépendante du Tango`}),`
85`,(0,Y.jsxs)(t.p,{children:[`Tango Grid n’est ni affilié à LinkedIn, ni sponsorisé, ni approuvé par LinkedIn. Nos séries quotidiennes nous sont propres : elles ne constituent ni le jeu officiel ni une archive de ses réponses. La page `,(0,Y.jsx)(t.a,{href:`/linkedin-tango`,children:`Tango sur LinkedIn`}),` explique cette distinction et donne accès au jeu officiel.`]}),`
86`,(0,Y.jsx)(t.h2,{children:`Aidez-nous à améliorer le jeu`}),`
87`,(0,Y.jsxs)(t.p,{children:[`Un indice manque de clarté, une commande ne fonctionne pas ou une explication mérite d’être améliorée ? Envoyez-nous `,(0,Y.jsx)(t.a,{href:`/feedback`,children:`votre avis`}),` ou écrivez à `,(0,Y.jsx)(t.a,{href:`mailto:[email protected]`,children:`[email protected]`}),`. Le lien de la grille et une courte description nous aideront à examiner le problème.`]})]})}function Fj(e={}){let{wrapper:t}={...$(),...e.components};return t?(0,Y.jsx)(t,{...e,children:(0,Y.jsx)(Pj,{...e})}):Pj(e)}var Ij=S({default:()=>zj,meta:()=>Lj}),Lj={title:`Sobre o Tango Grid`,description:`Conheça o Tango Grid, um espaço independente para quebra-cabeças lógicos gratuitos de sol e lua, desafios diários, prática ilimitada e jogo cronometrado.`,updated_at:`2026-09-21`};function Rj(e){let t={a:`a`,h2:`h2`,li:`li`,p:`p`,strong:`strong`,ul:`ul`,...$(),...e.components};return(0,Y.jsxs)(Y.Fragment,{children:[(0,Y.jsx)(t.h2,{children:`Um desafio diário com espaço para continuar jogando`}),`
88`,(0,Y.jsx)(t.p,{children:`O Tango Grid é um site independente de quebra-cabeças para quem gosta de resolver desafios passo a passo, quadrado por quadrado. Nossos quebra-cabeças de sol e lua seguem regras lógicas simples: equilibrar cada linha e coluna, evitar três símbolos idênticos seguidos e respeitar as pistas de igualdade e oposição.`}),`
89`,(0,Y.jsx)(t.p,{children:`Você pode jogar gratuitamente no seu navegador sem precisar criar conta. Comece no celular ou no computador, jogue no seu próprio ritmo e use dicas, desfazer e reiniciar sempre que precisar.`}),`
90`,(0,Y.jsx)(t.h2,{children:`Escolha como jogar`}),`
91`,(0,Y.jsxs)(t.ul,{children:[`
92`,(0,Y.jsxs)(t.li,{children:[(0,Y.jsxs)(t.strong,{children:[(0,Y.jsx)(t.a,{href:`/`,children:`Tango Diário`}),`:`]}),` o mesmo conjunto de cinco grades para todos os jogadores a cada dia UTC. Complete os três quebra-cabeças principais e encare dois bônus opcionais. O novo dia começa às 00:00 UTC.`]}),`
93`,(0,Y.jsxs)(t.li,{children:[(0,Y.jsxs)(t.strong,{children:[(0,Y.jsx)(t.a,{href:`/unlimited`,children:`Ilimitado`}),`:`]}),` pratique sem limites diários em tamanhos de grade de 4×4 a 12×12. Compartilhe o link de uma grade para desafiar amigos no mesmo tabuleiro.`]}),`
94`,(0,Y.jsxs)(t.li,{children:[(0,Y.jsxs)(t.strong,{children:[(0,Y.jsx)(t.a,{href:`/timed`,children:`Cronometrado`}),`:`]}),` comece com 180 segundos em 4×4, resolva grades aleatórias até 12×12 e ganhe tempo extra proporcional a cada vitória.`]}),`
95`,(0,Y.jsxs)(t.li,{children:[(0,Y.jsxs)(t.strong,{children:[(0,Y.jsx)(t.a,{href:`/archive`,children:`Arquivo`}),`:`]}),` revisite os cinco quebra-cabeças de datas anteriores sempre que o arquivo daquele dia estiver disponível.`]}),`
96`]}),`
97`,(0,Y.jsx)(t.p,{children:`Os cronômetros do Tango Diário e do Modo Ilimitado registram seu tempo decorrido, sem impor contagem regressiva. Seu progresso é salvo no navegador atual sempre que o armazenamento local estiver habilitado. Fazer login não transfere esses salvamentos entre aparelhos diferentes.`}),`
98`,(0,Y.jsx)(t.h2,{children:`Domine o raciocínio lógico`}),`
99`,(0,Y.jsxs)(t.p,{children:[`Você não precisa decorar um manual extenso. Nosso `,(0,Y.jsx)(t.a,{href:`/how-to-play`,children:`guia de como jogar`}),` explica os controles e mecânicas, a `,(0,Y.jsx)(t.a,{href:`/rules`,children:`página de regras`}),` mostra o que forma uma grade válida, e o `,(0,Y.jsx)(t.a,{href:`/beginners-guide`,children:`guia para iniciantes`}),` acompanha a resolução passo a passo de um tabuleiro. Se quiser ir além, confira as `,(0,Y.jsx)(t.a,{href:`/strategy`,children:`estratég
99ias de resolução`}),` e os `,(0,Y.jsx)(t.a,{href:`/clue-patterns`,children:`padrões de pistas`}),`.`]}),`
100`,(0,Y.jsx)(t.h2,{children:`Um projeto independente de Tango`}),`
101`,(0,Y.jsxs)(t.p,{children:[`O Tango Grid não é afiliado, patrocinado ou endossado pelo LinkedIn. Nossos conjuntos diários são criados de forma independente; não representamos o quebra-cabeça oficial do LinkedIn nem publicamos gabaritos de suas partidas. Veja nossa página sobre o `,(0,Y.jsx)(t.a,{href:`/linkedin-tango`,children:`Tango do LinkedIn`}),` para entender as diferenças e acessar o jogo original.`]}),`
102`,(0,Y.jsx)(t.h2,{children:`Ajude-nos a melhorar`}),`
103`,(0,Y.jsxs)(t.p,{children:[`Encontrou uma pista confusa, um controle com defeito ou uma explicação que poderia ser mais clara? Envie seus `,(0,Y.jsx)(t.a,{href:`/feedback`,children:`comentários`}),` ou escreva para `,(0,Y.jsx)(t.a,{href:`mailto:[email protected]`,children:`[email protected]`}),`. Incluir o link da grade e uma breve descrição nos ajuda a investigar rapidamente.`]})]})}function zj(e={}){let{wrapper:t}={...$(),...e.components};return t?(0,Y.jsx)(t,{...e,children:(0,Y.jsx)(Rj,{...e})}):Rj(e)}var Bj=S({default:()=>Uj,meta:()=>Vj}),Vj={title:`Tango Grid kontaktieren`,description:`Kontaktiere Tango Grid bei Fragen zu Rätseln, Fehlermeldungen, Verbesserungsvorschlägen, Kontoverwaltung oder Datenschutzanliegen.`,updated_at:`2026-09-14`};function Hj(e){let t={a:`a`,h2:`h2`,li:`li`,p:`p`,strong:`strong`,ul:`ul`,...$(),...e.components};return(0,Y.jsxs)(Y.Fragment,{children:[(0,Y.jsx)(t.h2,{children:`Kontakt aufnehmen`}),`
104`,(0,Y.jsxs)(t.p,{children:[`Schreibe eine E-Mail an `,(0,Y.jsx)(t.a,{href:`mailto:[email protected]`,children:`[email protected]`}),` für Hilfe zu Tango Grid, Fragen zu deinem Konto, Datenschutzanliegen oder andere Anfragen. Du kannst auch unser `,(0,Y.jsx)(t.a,{href:`/feedback`,children:`Feedback-Formular`}),` nutzen, um ein Problem zu melden oder eine Verbesserung vorzuschlagen.`]}),`
105`,(0,Y.jsx)(t.p,{children:`Wenn du eine Antwort über das Feedback-Formular wünschst, gib bitte deine E-Mail-Adresse an. Bitte übermittle nur die Informationen, die zur Bearbeitung deiner Anfrage erforderlich sind.`}),`
106`,(0,Y.jsx)(t.h2,{children:`Rätselfehler oder technisches Problem melden`}),`
107`,(0,Y.jsx)(t.p,{children:`Teile uns mit, was passiert ist und was du stattdessen erwartet hast. Folgende Details helfen uns bei der schnellen Überprüfung:`}),`
108`,(0,Y.jsxs)(t.ul,{children:[`
109`,(0,Y.jsxs)(t.li,{children:[`Der Link zur Seite oder zum Rätsel. Im unbegrenzten Modus öffnest du das Rätselmenü und wählst `,(0,Y.jsx)(t.strong,{children:`Link kopieren`}),`.`]}),`
110`,(0,Y.jsx)(t.li,{children:`Das Tagesdatum, die Spielfeldgröße und die Rätselnummer, falls es sich um ein tägliches oder archiviertes Set handelt.`}),`
111`,(0,Y.jsx)(t.li,{children:`Dein Browser und dein Gerät sowie die genauen Schritte, die zu dem Fehler geführt haben.`}),`
112`,(0,Y.jsx)(t.li,{children:`Eventuelle Fehlermeldungen. Wenn du Screenshots per E-Mail sendest, entferne bitte vorher persönliche Daten.`}),`
113`]}),`
114`,(0,Y.jsx)(t.p,{children:`Bitte sende keine Passwörter, Anmeldecodes, Sitzungscookies oder andere vertrauliche Zugangsdaten. Sollte das Formular nicht abgesendet werden können, kontaktiere uns bitte per E-Mail.`}),`
115`,(0,Y.jsx)(t.h2,{children:`Fragen zu gespeicherten Fortschritten`}),`
116`,(0,Y.jsx)(t.p,{children:`Der Spielfortschritt wird im Browser auf dem Gerät gespeichert, auf dem du spielst, sofern die lokale Speicherung aktiviert ist. Er wird nicht über dein Benutzerkonto synchronisiert. Das Löschen von Websitedaten, ein Wechsel des Browsers oder das Beenden eines privaten Browserfensters kann den Zugriff auf Spielstände entfernen; wir können gelöschte Browser-Spielstände nicht wiederherstellen.`}),`
117`,(0,Y.jsxs)(t.p,{children:[`Bei Fragen zu den Spielregeln lies bitte zuerst `,(0,Y.jsx)(t.a,{href:`/how-to-play`,children:`Spielanleitung`}),`, `,(0,Y.jsx)(t.a,{href:`/rules`,children:`Regeln`}),` oder den `,(0,Y.jsx)(t.a,{href:`/beginners-guide`,children:`Einsteiger-Leitfaden`}),`.`]}),`
118`,(0,Y.jsx)(t.h2,{children:`Konto- und Datenschutzanfragen`}),`
119`,(0,Y.jsx)(t.p,{children:`Für Fragen zu deinem Konto oder Anträge auf Auskunft, Berichtigung oder Löschung personenbezogener Daten schreibe uns nach Möglichkeit von der E-Mail-Adresse aus, die mit deinem Konto oder deiner vorherigen Nachricht verknüpft ist. Erkläre dein Anliegen genau. Gegebenenfalls müssen wir deine Identität überprüfen, bevor wir dem Antrag nachkommen können.`}),`
120`,(0,Y.jsxs)(t.p,{children:[`Weitere Informationen zur Datenverarbeitung und deinen Rechten findest du in unserer `,(0,Y.jsx)(t.a,{href:`/privacy-policy`,children:`Datenschutzerklärung`}),`.`]}),`
121`,(0,Y.jsx)(t.h2,{children:`Sicherheitsbedenken und Urheberrechtsfragen`}),`
122`,(0,Y.jsx)(t.p,{children:`Melde potenzielle Sicherheitslücken bitte vertraulich per E-Mail mit ausreichenden Details zur Untersuchung, ohne persönliche Daten Dritter beizufügen. Bei Urheberrechts- oder Inhaltsbedenken nenne bitte die betroffene URL, erläutere den Sachverhalt und gib eine Kontaktmöglichkeit an.`}),`
123`,(0,Y.jsx)(t.p,{children:`Tango Grid ist unabhängig von LinkedIn. Wir helfen gerne bei allen Fragen rund um diese Website, können jedoch keine LinkedIn-Konten oder offizielle LinkedIn-Rätsel verwalten.`})]})}function Uj(e={}){let{wrapper:t}={...$(),...e.components};return t?(0,Y.jsx)(t,{...e,children:(0,Y.jsx)(Hj,{...e})}):Hj(e)}var Wj=S({default:()=>qj,meta:()=>Gj}),Gj={title:`Contact Tango Grid`,description:`Contact Tango Grid for puzzle help, bug reports, suggestions, account questions, or privacy requests.`,updated_at:`2026-09-08`};function Kj(e){let t={a:`a`,h2:`h2`,li:`li`,p:`p`,strong:`strong`,ul:`ul`,...$(),...e.components};return(0,Y.jsxs)(Y.Fragment,{children:[(0,Y.jsx)(t.h2,{children:`Get in touch`}),`
124`,(0,Y.jsxs)(t.p,{children:[`Email `,(0,Y.jsx)(t.a,{href:`mailto:[email protected]`,children:`[email protected]`}),` for help with Tango Grid, account questions, privacy requests, or other enquiries. You can also use our `,(0,Y.jsx)(t.a,{href:`/feedback`,children:`feedback form`}),` to report a problem or suggest an improvement.`]}),`
125`,(0,Y.jsx)(t.p,{children:`If you would like a reply through the feedback form, include your email address. Please send only the information needed to explain your request.`}),`
126`,(0,Y.jsx)(t.h2,{children:`Report a puzzle or technical problem`}),`
127`,(0,Y.jsx)(t.p,{children:`Tell us what happened and what you expected to happen. Useful details include:`}),`
128`,(0,Y.jsxs)(t.ul,{children:[`
129`,(0,Y.jsxs)(t.li,{children:[`The page or puzzle link. In Unlimited, open the puzzle menu and choose `,(0,Y.jsx)(t.strong,{children:`Copy link`}),`.`]}),`
130`,(0,Y.jsx)(t.li,{children:`The daily date, board size, and puzzle position if the issue concerns a daily or archived set.`}),`
131`,(0,Y.jsx)(t.li,{children:`Your browser and device, plus the steps that led to the problem.`}),`
132`,(0,Y.jsx)(t.li,{children:`Any error message. If emailing a screenshot, remove personal information first.`}),`
133`]}),`
134`,(0,Y.jsx)(t.p,{children:`Please do not send passwords, sign-in codes, session cookies, or other credentials. If the form fails to submit, use email instead.`}),`
135`,(0,Y.jsx)(t.h2,{children:`Questions about saved progress`}),`
136`,(0,Y.jsx)(t.p,{children:`Game progress is stored in the browser on the device where you play, when s
136aving is available. It does not sync through your account. Clearing site data, changing browsers, or ending a private-browsing session can remove access to a save; we cannot recover a save that has been deleted from your browser.`}),`
137`,(0,Y.jsxs)(t.p,{children:[`For gameplay questions, start with `,(0,Y.jsx)(t.a,{href:`/how-to-play`,children:`How to Play`}),`, `,(0,Y.jsx)(t.a,{href:`/rules`,children:`Rules`}),`, or the `,(0,Y.jsx)(t.a,{href:`/beginners-guide`,children:`Beginner's Guide`}),`.`]}),`
138`,(0,Y.jsx)(t.h2,{children:`Account and privacy requests`}),`
139`,(0,Y.jsx)(t.p,{children:`To ask about your account or request access, correction, or deletion of personal information, email us from the address associated with your account or previous message where possible. Explain what you want us to do. We may need to verify that the information belongs to you before acting on a request.`}),`
140`,(0,Y.jsxs)(t.p,{children:[`Read our `,(0,Y.jsx)(t.a,{href:`/privacy-policy`,children:`Privacy Policy`}),` for details about data handling and your choices.`]}),`
141`,(0,Y.jsx)(t.h2,{children:`Security and content concerns`}),`
142`,(0,Y.jsx)(t.p,{children:`Report a suspected security issue privately by email, with enough detail for us to investigate without including other people's personal data. For a copyright or content concern, include the affected URL, an explanation of your concern, and a way to contact you.`}),`
143`,(0,Y.jsx)(t.p,{children:`Tango Grid is independent of LinkedIn. We can help with this website, but cannot manage LinkedIn accounts or its official Tango puzzles.`})]})}function qj(e={}){let{wrapper:t}={...$(),...e.components};return t?(0,Y.jsx)(t,{...e,children:(0,Y.jsx)(Kj,{...e})}):Kj(e)}var Jj=S({default:()=>Zj,meta:()=>Yj}),Yj={title:`Contacto - Tango Grid`,description:`Ponte en contacto con Tango Grid para resolver dudas sobre rompecabezas, informar de errores, enviar sugerencias o consultas de privacidad.`,updated_at:`2026-09-21`};function Xj(e){let t={a:`a`,h2:`h2`,li:`li`,p:`p`,strong:`strong`,ul:`ul`,...$(),...e.components};return(0,Y.jsxs)(Y.Fragment,{children:[(0,Y.jsx)(t.h2,{children:`Ponte en contacto`}),`
144`,(0,Y.jsxs)(t.p,{children:[`Escribe a `,(0,Y.jsx)(t.a,{href:`mailto:[email protected]`,children:`[email protected]`}),` para recibir ayuda con Tango Grid, consultas sobre tu cuenta, solicitudes de privacidad u otras dudas. También puedes utilizar nuestro `,(0,Y.jsx)(t.a,{href:`/feedback`,children:`formulario de comentarios`}),` para informar de un problema o proponer mejoras.`]}),`
145`,(0,Y.jsx)(t.p,{children:`Si deseas recibir una respuesta a través del formulario, incluye tu dirección de correo electrónico. Por favor, envía únicamente la información necesaria para atender tu solicitud.`}),`
146`,(0,Y.jsx)(t.h2,{children:`Informar sobre un rompecabezas o problema técnico`}),`
147`,(0,Y.jsx)(t.p,{children:`Explícanos qué ha ocurrido y qué esperabas que sucediera. Los detalles más útiles son:`}),`
148`,(0,Y.jsxs)(t.ul,{children:[`
149`,(0,Y.jsxs)(t.li,{children:[`El enlace a la página o al rompecabezas. En el modo Ilimitado, abre el menú del rompecabezas y elige `,(0,Y.jsx)(t.strong,{children:`Copiar enlace`}),`.`]}),`
150`,(0,Y.jsx)(t.li,{children:`La fecha diaria, el tamaño del tablero y la posición del juego si la incidencia afecta a un conjunto diario o de archivo.`}),`
151`,(0,Y.jsx)(t.li,{children:`Tu navegador y dispositivo, junto con los pasos seguidos hasta que surgió el problema.`}),`
152`,(0,Y.jsx)(t.li,{children:`Cualquier mensaje de error mostrado. Si adjuntas una captura de pantalla por correo, elimina antes cualquier dato personal.`}),`
153`]}),`
154`,(0,Y.jsx)(t.p,{children:`Por favor, no envíes contraseñas, códigos de inicio de sesión, cookies de sesión ni otras credenciales. Si el formulario no se envía correctamente, utiliza el correo electrónico.`}),`
155`,(0,Y.jsx)(t.h2,{children:`Preguntas sobre el progreso guardado`}),`
156`,(0,Y.jsx)(t.p,{children:`El progreso de tus partidas se guarda localmente en el navegador del dispositivo donde juegas, siempre que el almacenamiento esté disponible. No se sincroniza a través de tu cuenta. Borrar los datos del sitio, cambiar de navegador o utilizar una sesión de navegación privada puede eliminar el acceso a tus partidas guardadas; no podemos recuperar partidas borradas de tu navegador.`}),`
157`,(0,Y.jsxs)(t.p,{children:[`Si tienes dudas sobre la mecánica del juego, consulta `,(0,Y.jsx)(t.a,{href:`/how-to-play`,children:`Cómo jugar`}),`, las `,(0,Y.jsx)(t.a,{href:`/rules`,children:`Reglas`}),` o la `,(0,Y.jsx)(t.a,{href:`/beginners-guide`,children:`Guía para principiantes`}),`.`]}),`
158`,(0,Y.jsx)(t.h2,{children:`Consultas sobre cuentas y privacidad`}),`
159`,(0,Y.jsx)(t.p,{children:`Para consultar el estado de tu cuenta o solicitar el acceso, rectificación o eliminación de tus datos personales, escríbenos desde la dirección asociada a tu cuenta o mensaje anterior siempre que sea posible. Explícanos con claridad qu
159é deseas que hagamos. Es posible que debamos verificar tu identidad antes de tramitar la solicitud.`}),`
160`,(0,Y.jsxs)(t.p,{children:[`Consulta nuestra `,(0,Y.jsx)(t.a,{href:`/privacy-policy`,children:`Política de privacidad`}),` para obtener más información sobre el tratamiento de datos y tus derechos.`]}),`
161`,(0,Y.jsx)(t.h2,{children:`Seguridad y cuestiones de contenido`}),`
162`,(0,Y.jsx)(t.p,{children:`Informa de cualquier sospecha sobre incidencias de seguridad de forma privada por correo electrónico, aportando suficientes detalles para investigar sin incluir datos personales de terceros. Si se trata de una reclamación sobre derechos de autor o contenido, indica la URL afectada, una explicación de tu motivo y un medio para contactarte.`}),`
163`,(0,Y.jsx)(t.p,{children:`Tango Grid es un proyecto independiente de LinkedIn. Podemos ayudarte con las cuestiones de este sitio web, pero no podemos gestionar cuentas de LinkedIn ni sus rompecabezas oficiales de Tango.`})]})}function Zj(e={}){let{wrapper:t}={...$(),...e.components};return t?(0,Y.jsx)(t,{...e,children:(0,Y.jsx)(Xj,{...e})}):Xj(e)}var Qj=S({default:()=>tM,meta:()=>$j}),$j={title:`Contacter Tango Grid`,description:`Contactez Tango Grid pour une question sur une grille, un problème technique, une suggestion, votre compte ou vos données personnelles.`,updated_at:`2026-09-13`};function eM(e){let t={a:`a`,h2:`h2`,li:`li`,p:`p`,strong:`strong`,ul:`ul`,...$(),...e.components};return(0,Y.jsxs)(Y.Fragment,{children:[(0,Y.jsx)(t.h2,{children:`Nous contacter`}),`
164`,(0,Y.jsxs)(t.p,{children:[`Écrivez à `,(0,Y.jsx)(t.a,{href:`mailto:[email protected]`,children:`[email protected]`}),` pour toute question sur Tango Grid, votre compte, vos données personnelles ou un autre sujet. Vous pouvez aussi utiliser le `,(0,Y.jsx)(t.a,{href:`/feedback`,children:`formulaire de retour`}),` pour signaler un problème ou proposer une amélioration.`]}),`
165`,(0,Y.jsx)(t.p,{children:`Si vous souhaitez une réponse via le formulaire, indiquez votre adresse e-mail. Transmettez uniquement les informations nécessaires à votre demande.`}),`
166`,(0,Y.jsx)(t.h2,{children:`Signaler un problème de grille ou un incident technique`}),`
167`,(0,Y.jsx)(t.p,{children:`Décrivez ce qui s’est passé et le résultat attendu. Les renseignements suivants peuvent nous aider :`}),`
168`,(0,Y.jsxs)(t.ul,{children:[`
169`,(0,Y.jsxs)(t.li,{children:[`Le lien de la page ou de la grille. En mode illimité, ouvrez le menu de la grille et choisissez `,(0,Y.jsx)(t.strong,{children:`Copier le lien`}),`.`]}),`
170`,(0,Y.jsx)(t.li,{children:`La date, la taille et la position de la grille si le problème concerne une série quotidienne ou archivée.`}),`
171`,(0,Y.jsx)(t.li,{children:`Votre navigateur, votre appareil et les étapes qui ont conduit au problème.`}),`
172`,(0,Y.jsx)(t.li,{children:`Le message d’erreur éventuel. Si vous joignez une capture d’écran par e-mail, masquez d’abord les informations personnelles.`}),`
173`]}),`
174`,(0,Y.jsx)(t.p,{children:`N’envoyez pas de mot de passe, code de connexion, cookie de session ou autre identifiant secret. Si le formulaire ne fonctionne pas, contactez-nous par e-mail.`}),`
175`,(0,Y.jsx)(t.h2,{children:`Questions sur les sauvegardes`}),`
176`,(0,Y.jsx)(t.p,{children:`La progression est enregistrée dans le navigateur de l’appareil utilisé, lorsque le stockage est disponible. Elle n’est pas synchronisée avec votre compte. Effacer les données du site, changer de navigateur ou terminer une session de navigation privée peut supprimer l’accès à une sauvegarde. Nous ne pouvons pas récupérer une sauvegarde effacée de votre navigateur.`}),`
177`,(0,Y.jsxs)(t.p,{children:[`Pour les questions de jeu, commencez par `,(0,Y.jsx)(t.a,{href:`/how-to-play`,children:`Comment jouer`}),`, les `,(0,Y.jsx)(t.a,{href:`/rules`,children:`règles`}),` ou le `,(0,Y.jsx)(t.a,{href:`/beginners-guide`,children:`guide débutant`}),`.`]}),`
178`,(0,Y.jsx)(t.h2,{children:`Compte et données personnelles`}),`
179`,(0,Y.jsx)(t.p,{children:`Pour une question sur votre compte ou une demande d’accès, de correction ou de suppression de données, écrivez si possible depuis l’adresse associée à votre compte ou à votre précédent message. Précisez votre demande. Nous pouvons devoir vérifier que les informations vous concernent avant d’y donner suite.`}),`
180`,(0,Y.jsxs)(t.p,{children:[`Consultez notre `,(0,Y.jsx)(t.a,{href:`/privacy-policy`,children:`politique de confidentialité`}),` pour comprendre le traitement des données et vos choix.`]}),`
181`,(0,Y.jsx)(t.h2,{children:`Sécurité et contenu`}),`
182`,(0,Y.jsx)(t.p,{children:`Signalez une faille de sécurité présumée en privé, par e-mail, avec suffisamment de détails pour l’examiner, sans inclure de données personnelles d’autres personnes. Pour une question de droits d’auteur ou de contenu, indiquez l’URL concernée, expliquez le problème et laissez un moyen de vous joindre.`}),`
183`,(0,Y.jsx)(t.p,{children:`Tango Grid est indépendant de LinkedIn. Nous pouvons vous aider pour ce site, mais ne pouvons pas gérer les comptes LinkedIn ni ses grilles officielles.`})]})}function tM(e={}){let{wrapper:t}={...$(),...e.components};return t?(0,Y.jsx)(t,{...e,children:(0,Y.jsx)(eM,{...e})}):eM(e)}var nM=S({default:()=>aM,meta:()=>rM}),rM={title:`Contato Tango Grid`,description:`Entre em contato com o Tango Grid para tirar dúvidas sobre quebra-cabeças, relatar problemas, enviar sugestões ou fazer solicitações de privacidade.`,updated_at:`2026-09-21`};function iM(e){let t={a:`a`,h2:`h2`,li:`li`,p:`p`,strong:`strong`,ul:`ul`,...$(),...e.components};return(0,Y.jsxs)(Y.Fragment,{children:[(0,Y.jsx)(t.h2,{children:`Fale conosco`}),`
184`,(0,Y.jsxs)(t.p,{children:[`Envie um e-mail para `,(0,Y.jsx)(t.a,{href:`mailto:[email protected]`,children:`[email protected]`}),` para obter ajuda com o Tango Grid, esclarecer dúvidas de conta, solicitar privacidade ou fazer outras perguntas. Você também pode usar nosso `,(0,Y.jsx)(t.a,{href:`/feedback`,children:`formulário de feedback`}),` para relatar um erro ou sugerir melhorias.`]}),`
185`,(0,Y.jsx)(t.p,{children:`Se desejar receber uma resposta pelo formulário de feedback, informe seu endereço de e-mail. Por favor, envie apenas as informações necessárias para descrever sua solicitação.`}),`
186`,(0,Y.jsx)(t.h2,{children:`Relatar problemas técnicos ou em quebra-cabeças`}),`
187`,(0,Y.jsx)(t.p,{children:`Conte-nos o que aconteceu e o que você esperava que acontecesse. Detalhes úteis incluem:`}),`
188`,(0,Y.jsxs)(t.ul,{children:[`
189`,(0,Y.jsxs)(t.li,{children:[`O link da página ou do quebra-cabeça. No modo Ilimitado, abra o menu do quebra-cabeça e selecione `,(0,Y.jsx)(t.strong,{children:`Copiar link`}),`.`]}),`
190`,(0,Y.jsx)(t.li,{children:`A data do desafio diário, o tamanho da grade e o número do quebra-cabeça, caso o problema envolva o conjunto diário ou arquivado.`}),`
191`,(0,Y.jsx)(t.li,{children:`Seu navegador e dispositivo, além dos passos que levaram ao problema.`}),`
192`,(0,Y.jsx)(t.li,{children:`Qualquer mensagem de erro exibida. Ao enviar capturas de tela por e-mail, oculte dados pessoais primeiro.`}),`
193`]}),`
194`,(0,Y.jsx)(t.p,{children:`Por favor, nunca envie senhas, códigos de verificação, cookies de sessão ou outras credenciais de acesso. Se o formulário falhar no envio, use o e-mail diretamente.`}),`
195`,(0,Y.jsx)(t.h2,{children:`Dúvidas sobre o salvamento de progresso`}),`
196`,(0,Y.jsx)(t.p,{children:`O progresso da partida é salvo no navegador do aparelho onde você joga, sempre que o armazenamento local estiver disponível. Ele não é sincronizado automaticamente por meio de sua conta. Limpar dados de navegação, trocar de navegador ou usar guias anônimas pode apagar os dados salvos; não é possível recuperar dados apagados do seu próprio navegador.`}),`
197`,(0,Y.jsxs)(t.p,{children:[`Para dúvidas sobre como jogar, comece pelo guia `,(0,Y.jsx)(t.a,{href:`/how-to-play`,children:`Como Jogar`}),`, pelas `,(0,Y.jsx)(t.a,{href:`/rules`,children:`Regras`}),` ou pelo `,(0,Y.jsx)(t.a,{href:`/beginners-guide`,children:`Guia para Iniciantes`}),`.`]}),`
198`,(0,Y.jsx)(t.h2,{children:`Contas e solicitações de privacidade`}),`
199`,(0,Y.jsx)(t.p,{children:`Para fazer perguntas sobre sua conta ou solicitar acesso, correção ou exclusão de dados pessoais, escreva para nós usando o mesmo e-mail associado à sua conta, sempre que possível. Explique com clareza o que deseja. Podemos solicitar confirmações razoáveis de identidade antes de atender à solicitação.`}),`
200`,(0,Y.jsxs)(t.p,{children:[`Consulte nossa `,(0,Y.jsx)(t.a,{href:`/privacy-policy`,children:`Política de Privacidade`}),` para detalhes completos sobre o tratamento de dados e suas opções.`]}),`
201`,(0,Y.jsx)(t.h2,{children:`Segurança e direitos de conteúdo`}),`
202`,(0,Y.jsx)(t.p,{children:`Relate possíveis vulnerabilidades de segurança de forma confidencial por e-mail, fornecendo detalhes suficientes para análise técnica sem expor dados pessoais de terceiros. Para questões sobre direitos autorais ou conteúdo, informe a URL afetada, a descrição do ocorrido e um meio de contato.`}),`
203`,(0,Y.jsx)(t.p,{children:`O Tango Grid é um projeto independente do LinkedIn. Ajudamos com qualquer assunto deste site, mas não gerenciamos contas do LinkedIn nem seus jogos oficiais.`})]})}function aM(e={}){let{wrapper:t}={...$(),...e.components};return t?(0,Y.jsx)(t,{...e,children:(0,Y.jsx)(iM,{...e})}):iM(e)}var oM=S({default:()=>lM,meta:()=>sM}),sM={title:`Datenschutzerklärung`,description:`Erfahre, wie Tango Grid mit Kontodaten, Browser-Speicherständen, Feedback, Cookies, Webanal
203yse, Werbung und Datenschutzanfragen umgeht.`,updated_at:`2026-09-14`};function cM(e){let t={a:`a`,h2:`h2`,h3:`h3`,li:`li`,p:`p`,strong:`strong`,ul:`ul`,...$(),...e.components};return(0,Y.jsxs)(Y.Fragment,{children:[(0,Y.jsxs)(t.p,{children:[`Diese Datenschutzerklärung erläutert, wie Tango Grid Informationen verarbeitet, wenn du tangogrid.com nutzt. Bei Fragen oder Anliegen wende dich bitte an `,(0,Y.jsx)(t.a,{href:`mailto:[email protected]`,children:`[email protected]`}),`.`]}),`
204`,(0,Y.jsx)(t.h2,{children:`Verarbeitete Informationen`}),`
205`,(0,Y.jsx)(t.h3,{children:`Spielstände und Speicherung im Browser`}),`
206`,(0,Y.jsx)(t.p,{children:`Du kannst ohne Registrierung spielen. Züge, Spielzeit und Rätselfortschritte werden im lokalen Speicher (Local Storage) deines Browsers abgelegt, sofern dieser verfügbar ist. Tägliche Spielstände sind an ein Datum gebunden, Übungsspielstände an ein konkretes Rätsel. Diese Daten werden nicht über ein Benutzerkonto synchronisiert. Browser-Einstellungen wie Design und Sprache können ebenfalls im lokalen Speicher oder über Cookies abgelegt werden.`}),`
207`,(0,Y.jsx)(t.p,{children:`Lokale Speicherung bedeutet nicht, dass jegliche Interaktion ausschließlich auf deinem Gerät verbleibt: Seitenaufrufe, Kontoaktionen, Feedback-Einsendungen und aktivierte Analysedienste erfordern Netzwerkabfragen, wie nachfolgend beschrieben.`}),`
208`,(0,Y.jsx)(t.h3,{children:`Optionale Benutzerkonten`}),`
209`,(0,Y.jsx)(t.p,{children:`Wenn die Google-Anmeldung verfügbar ist und du sie nutzt, erhalten wir Kontoinformationen wie deinen Namen, deine E-Mail-Adresse, dein Profilbild und deine Google-Konto-ID. Wir speichern Authentifizierungsdatensätze, Tokens des Anbieters (sofern bereitgestellt) und für den Betrieb der Anmeldung notwendige Sitzungsdaten. Sitzungsdaten können eine IP-Adresse und den Browser-User-Agent umfassen. Wir erhalten dein Google-Passwort nicht, und diese Website bietet derzeit keine Registrierung mit E-Mail und Passwort an.`}),`
210`,(0,Y.jsx)(t.p,{children:`Wir erfassen zudem die Registrierungsmethode und, falls vorhanden, die Herkunftsquelle oder Kampagne. Interne Registrierungsbenachrichtigungen können Name, E-Mail-Adresse, Registrierungszeitpunkt, ungefähres Herkunftsland und die Browsersprache enthalten.`}),`
211`,(0,Y.jsx)(t.h3,{children:`Feedback-Formular und E-Mail`}),`
212`,(0,Y.jsx)(t.p,{children:`Wir speichern Nachrichten, die über das Feedback-Formular übermittelt werden, zusammen mit eventuell angegebenem Namen, E-Mail-Adresse und Sendezeitpunkt. Wenn du eingeloggt bist, kann eine Feedback-Einsendung mit deinem Konto verknüpft werden. Der E-Mail-Austausch umfasst die Absenderadresse, den Nachrichteninhalt sowie eventuell angehängte Dateien.`}),`
213`,(0,Y.jsx)(t.h3,{children:`Technische Daten`}),`
214`,(0,Y.jsx)(t.p,{children:`Hosting-, Sicherheits- und Content-Delivery-Dienste verarbeiten technische Daten, die für den Empfang von Anfragen und die Bereitstellung der Website erforderlich sind, darunter IP-Adressen, angeforderte URLs, Browserinformationen und Abrufzeitpunkte. Diese Daten dienen der Fehlerdiagnose und der Missbrauchsprävention.`}),`
215`,(0,Y.jsx)(t.h2,{children:`Verwendung der Informationen`}),`
216`,(0,Y.jsx)(t.p,{children:`Wir verwenden die Informationen für den Betrieb von Konten und Sitzungen, die Auslieferung der Website, die Beantwortung von Anfragen, die Fehleranalyse, den Schutz des Dienstes und das Verständnis der Website-Nutzung. Kontobezogene E-Mails, wie etwa eine Begrüßungsnachricht, können versendet werden, wenn der E-Mail-Dienst aktiv ist.`}),`
217`,(0,Y.jsx)(t.p,{children:`Soweit das geltende Datenschutzrecht eine Rechtsgrundlage verlangt, stützen sich diese Zwecke auf die Erfüllung des von dir gewünschten Dienstes, unsere berechtigten Interessen am sicheren Betrieb der Website, die Erfüllung rechtlicher Pflichten oder deine Einwilligung, sofern erforderlich. Ein Datenschutzhinweis ersetzt keine erforderliche Einwilligung für optionale Nachverfolgungen.`}),`
218`,(0,Y.jsx)(t.h2,{children:`Cookies, Webanalyse und Werbung`}),`
219`,(0,Y.jsx)(t.p,{children:`Sitzungs- und Einstellungs-Cookies unter
219stützen die Anmeldung und Website-Konfigurationen. Ein Empfehlungs-Cookie kann die Herkunftsquelle eines Besuchs bis zur Registrierung speichern. Optionale Dienste hängen von den aktivierten Integrationen ab; die folgende Übersicht beschreibt diese Dienste und stellt kein Versprechen dar, dass jeder Anbieter auf jeder Einzelseite geladen wird.`}),`
220`,(0,Y.jsxs)(t.ul,{children:[`
221`,(0,Y.jsxs)(t.li,{children:[(0,Y.jsx)(t.strong,{children:`Google Analytics:`}),` Sofern aktiviert, werden Nutzungsdaten wie besuchte Seiten, Verweise, Browser- und Gerätedaten sowie Nutzerinteraktionen erfasst. Hierfür können Cookies oder ähnliche Kennungen eingesetzt werden. Siehe `,(0,Y.jsx)(t.a,{href:`https://policies.google.com/technologies/partner-sites`,children:`Datennutzung durch Google bei Partner-Websites`}),`.`]}),`
222`,(0,Y.jsxs)(t.li,{children:[(0,Y.jsx)(t.strong,{children:`Microsoft Clarity:`}),` Sofern aktiviert, werden Interaktionsdaten wie Klicks, Scrollbewegungen, Heatmaps und Sitzungsaufzeichnungen erfasst, um die Benutzerfreundlichkeit zu analysieren und zu verbessern. Hierbei können Erst- und Drittanbieter-Cookies sowie Tracking-Technologien eingesetzt werden. Die Datenverarbeitung von Microsoft ist in der `,(0,Y.jsx)(t.a,{href:`https://privacy.microsoft.com/privacystatement`,children:`Microsoft-Datenschutzerklärung`}),` beschrieben.`]}),`
223`,(0,Y.jsxs)(t.li,{children:[(0,Y.jsx)(t.strong,{children:`Google AdSense:`}),` Sofern Google-Anzeigen aktiviert sind, können Google und Drittanbieter-Werbepartner Cookies verwenden, um Werbeanzeigen basierend auf Besuchen dieser und anderer Websites auszuspielen und zu messen. Personalisierte Google-Werbung kannst du in den `,(0,Y.jsx)(t.a,{href:`https://adssettings.google.com/`,children:`Google-Anzeigeneinstellungen`}),` verwalten und Wahlmöglichkeiten teilnehmender Werbenetzwerke auf `,(0,Y.jsx)(t.a,{href:`https://youradchoices.com/`,children:`YourAdChoices`}),` einsehen.`]}),`
224`,(0,Y.jsxs)(t.li,{children:[(0,Y.jsx)(t.strong,{children:`Adsterra:`}),` Sofern aktiviert, können dessen Werbedienste Browser-, Geräte-, Netzwerk- und Werbeinteraktionsdaten verarbeiten. Beachte die `,(0,Y.jsx)(t.a,{href:`https://adsterra.com/privacy-policy/`,children:`Datenschutzinformationen von Adsterra`}),` für deren Datenverarbeitungspraktiken und verfügbare Optionen.`]}),`
225`]}),`
226`,(0,Y.jsx)(t.p,{children:`Über deinen Browser kannst du Cookies und Website-Speicher jederzeit blockieren oder löschen. Dies kann dazu führen, dass du abgemeldet wirst oder gespeicherte Spielstände und Einstellungen verloren gehen. Das bloße Blockieren von Cookies verhindert unter Umständen nicht alle Netzwerkabfragen oder Analyseverarbeitungen. Anbieter-Einstellungen und browserbasierte Tracking-Schutzfunktionen bieten zusätzliche Kontrollmöglichkeiten.`}),`
227`,(0,Y.jsx)(t.h2,{children:`Dienstleister und externe Links`}),`
228`,(0,Y.jsx)(t.p,{children:`Wir greifen auf technische Infrastruktur- und Servicedienstleister zurück, um die Website zuverlässig bereitzustellen und zu betreiben. Dazu gehören Cloudflare für Hosting und Content Delivery, Google für die optionale Anmeldung und Web-Schriftarten sowie die oben genannten Analyse- und Werbedienste, sofern aktiviert. Beim Laden von Google Fonts wird eine Anfrage deines Browsers an Google gesendet.`}),`
229`,(0,Y.jsx)(t.p,{children:`Sofern konfiguriert, verarbeitet Resend Empfängeradressen und Nachrichteninhalte für transaktionale Konto-E-Mails. Interne Registrierungsbenachrichtigungen können über Tencent WeCom an den Website-Betreiber übermittelt werden. Die Kontoinfrastruktur kann mit verwandten Rätsel-Websites geteilt werden; dies macht deine Browser-Spielstände jedoch nicht zwischen Websites oder Geräten übertragbar.`}),`
230`,(0,Y.jsx)(t.p,{children:`Informationen können zudem offengelegt werden, wenn dies gesetzlich vorgeschrieben ist, um behördlichen Anordnungen nachzukommen oder um Nutzer und den Dienst vor Schaden zu schützen. Links zu externen Websites führen zu Diensten Dritter mit eigenen Datenschutzbestimmungen; diese Erklärung gilt dort nicht.`}),`
231`,(0,Y.jsx)(t.h2,{children:`Speicherdauer und Sicherheit`}),`
232`,(0,Y.jsx)(t.p,{children:`Browser-Spielstände verbleiben lokal, bis sie durch dich oder deinen Browser gelöscht oder überschrieben werden. Server-Kontodaten, Feedback-Nachrichten, E-Mail-Korrespondenz und technische Protokolle unterliegen unterschiedlichen Aufbewahrungsfristen. Wir speichern Informationen so lange, wie es für den jeweiligen Erhebungszweck, die Aufrechterhaltung der Sicherheit und die Erfüllung gesetzlicher Vorgaben erforderlich ist; es gibt keine einheitliche Aufbewahrungsfrist für alle Kategorien.`}),`
233`,(0,Y.jsx)(t.p,{children:`Wir setzen technische Schutzmaßnahmen und Zugriffskontrollen ein, um deine Daten zu schützen; kein webbasierter Dienst kann jedoch absolute Sicherheit garantieren. Dienstleister können Daten in Ländern außerhalb deines Wo
233hnsitzes verarbeiten, deren Datenschutzgesetze vom dortigen Standard abweichen können.`}),`
234`,(0,Y.jsx)(t.h2,{children:`Deine Rechte und Wahlmöglichkeiten`}),`
235`,(0,Y.jsx)(t.p,{children:`Du kannst ohne Anmeldung spielen, selbst entscheiden, welche Angaben du in Nachrichten machst, und Websitedaten jederzeit über deinen Browser löschen. Das Löschen von Browserdaten entfernt jedoch kein bei uns bestehendes Konto oder eine bereits abgesendete Feedback-Nachricht.`}),`
236`,(0,Y.jsx)(t.p,{children:`Je nach deinem Wohnort stehen dir Rechte auf Auskunft, Berichtigung, Löschung oder Herausgabe einer Kopie deiner personenbezogenen Daten zu, ebenso wie das Recht, bestimmten Verarbeitungen zu widersprechen oder diese einzuschränken. Beruht eine Verarbeitung auf deiner Einwilligung, kannst du diese jederzeit für die Zukunft widerrufen. Zudem hast du das Recht, dich bei deiner zuständigen Datenschutzbehörde zu beschweren.`}),`
237`,(0,Y.jsxs)(t.p,{children:[`Richte Anfragen bitte an `,(0,Y.jsx)(t.a,{href:`mailto:[email protected]`,children:`[email protected]`}),`. Gegebenenfalls bitten wir um Informationen, die angemessen erforderlich sind, um deine Identität festzustellen und die entsprechenden Datensätze zuzuordnen. Manche Daten müssen zur Erfüllung gesetzlicher Pflichten oder zum Schutz des Dienstes aufbewahrt werden.`]}),`
238`,(0,Y.jsx)(t.h2,{children:`Kinder`}),`
239`,(0,Y.jsx)(t.p,{children:`Tango Grid richtet sich an ein allgemeines Publikum. Kinder sollten die Website unter Aufsicht ihrer Eltern oder Erziehungsberechtigten nutzen und keine personenbezogenen Daten ohne entsprechende Zustimmung übermitteln. Wenn du der Ansicht bist, dass ein Kind ohne die gesetzlich erforderliche Zustimmung Daten an uns übermittelt hat, kontaktiere uns bitte, damit wir dies prüfen und beheben können.`}),`
240`,(0,Y.jsx)(t.h2,{children:`Änderungen und Kontakt`}),`
241`,(0,Y.jsxs)(t.p,{children:[`Wir können diese Datenschutzerklärung anpassen, wenn sich unsere Dienste oder Datenpraktiken ändern. Das oben genannte Datum weist auf die letzte Aktualisierung hin. Bei Fragen zum Datenschutz schreibe an `,(0,Y.jsx)(t.a,{href:`mailto:[email protected]`,children:`[email protected]`}),` oder besuche unsere `,(0,Y.jsx)(t.a,{href:`/contact`,children:`Kontaktseite`}),`.`]})]})}function lM(e={}){let{wrapper:t}={...$(),...e.components};return t?(0,Y.jsx)(t,{...e,children:(0,Y.jsx)(cM,{...e})}):cM(e)}var uM=S({default:()=>pM,meta:()=>dM}),dM={title:`Privacy Policy`,description:`Read Tango Grid’s privacy policy on handling account details, browser saves, feedback, cookies, analytics, advertising, and privacy requests.`,updated_at:`2026-09-08`};function fM(e){let t={a:`a`,h2:`h2`,h3:`h3`,li:`li`,p:`p`,strong:`strong`,ul:`ul`,...$(),...e.components};return(0,Y.jsxs)(Y.Fragment,{children:[(0,Y.jsxs)(t.p,{children:[`This Privacy Policy explains how Tango Grid handles information when you use tangogrid.com. For questions or requests, contact `,(0,Y.jsx)(t.a,{href:`mailto:[email protected]`,children:`[email protected]`}),`.`]}),`
242`,(0,Y.jsx)(t.h2,{children:`Information we handle`}),`
243`,(0,Y.jsx)(t.h3,{children:`Playing and browser saves`}),`
244`,(0,Y.jsx)(t.p,{children:`You can play without an account. Puzzle moves, elapsed time, and progress are saved in your browser's local storage when it is available. Daily saves are associated with a date; practice saves are associated with a puzzle. These saves do not sync through your account. Browser preferences, such as your theme and language, may also use local storage or cookies.`}),`
245`,(0,Y.jsx)(t.p,{children:`Local saving does not mean every interaction with the website stays on your device: page requests, account actions, feedback, and enabled analytics involve network requests as described below.`}),`
246`,(0,Y.jsx)(t.h3,{children:`Optional accounts`}),`
247`,(0,Y.jsx)(t.p,{children:`When Google sign-in is available and you choose to use it, we receive account information such as your name, email address, profile image, and Google account identifier. We store authentication records, provider tokens where supplied, and session information needed to operate sign-in. Sessions may include an IP address and browser user agent. We do not receive your Google password, and this site does not currently offer email-and-password registration.`}),`
248`,(0,Y.jsx)(t.p,{children:`We also record the registration method and, when available, a referral source or campaign source. Registration notifications may include your name, email address, sign-up time, approximate country, and browser language.`}),`
249`,(0,Y.jsx)(t.h3,{children:`Feedback and email`}),`
250`,(0,Y.jsx)(t.p,{children:`We store messages submitted through the feedback form, any name and email address you provide, and the submission time. If you are signed in, a feedback submission can be associated with your account. Email correspondence includes the sender address, message, and any attachments you choose to send.`}),`
251`,(0,Y.jsx)(t.h3,{children:`Technical information`}),`
252`,(0,Y.jsx)(t.p,{children:`Hosting, security, and content-delivery services process information needed to receive requests and serve the website, such as IP addresses, requested URLs, browser details, and request times. This information can help diagnose failures and prevent abuse.`}),`
253`,(0,Y.jsx)(t.h2,{children:`How information is used`}),`
254`,(0,Y.jsx)(t.p,{children:`We use information to operate accounts and sessions, deliver the website, answer enquiries, investigate problems, protect the service, and understand how the site is used. Account-related email, including a welcome message, may be sent when the email service is enabled.`}),`
255`,(0,Y.jsx)(t.p,{children:`Where applicable privacy law requires a legal basis, these purposes may involve providing a service you request, our legitimate interests in operating and securing the site, complying with legal obligations, or consent where required. A privacy notice does not replace any consent required for optional tracking.`}),`
256`,(0,Y.jsx)(t.h2,{children:`Cookies, analytics, and advertising`}),`
257`,(0,Y.jsx)(t.p,{children:`Session and preference cookies support sign-in and site settings. A referral cookie may retain the source of a visit for account registration. Optional services depen
257d on which integrations are enabled; the following describes those services rather than promising that every provider runs on every page.`}),`
258`,(0,Y.jsxs)(t.ul,{children:[`
259`,(0,Y.jsxs)(t.li,{children:[(0,Y.jsx)(t.strong,{children:`Google Analytics:`}),` when enabled, collects website usage information such as page visits, referral information, browser and device details, and interactions. It may use cookies or similar identifiers. See `,(0,Y.jsx)(t.a,{href:`https://policies.google.com/technologies/partner-sites`,children:`how Google uses information from partner sites`}),`.`]}),`
260`,(0,Y.jsxs)(t.li,{children:[(0,Y.jsx)(t.strong,{children:`Microsoft Clarity:`}),` when enabled, captures interaction information, such as clicks, scrolling, heatmaps, and session replays, to help us understand usability and improve the site. It can use first- and third-party cookies and other tracking technologies. Microsoft's own handling of this information is described in the `,(0,Y.jsx)(t.a,{href:`https://privacy.microsoft.com/privacystatement`,children:`Microsoft Privacy Statement`}),`.`]}),`
261`,(0,Y.jsxs)(t.li,{children:[(0,Y.jsx)(t.strong,{children:`Google AdSense:`}),` where Google ads are enabled, Google and other advertising vendors may use cookies to serve and measure ads based on visits to this and other websites. You can manage Google's personalised advertising through `,(0,Y.jsx)(t.a,{href:`https://adssettings.google.com/`,children:`Google Ad Settings`}),` and learn about participating vendors' choices at `,(0,Y.jsx)(t.a,{href:`https://youradchoices.com/`,children:`YourAdChoices`}),`.`]}),`
262`,(0,Y.jsxs)(t.li,{children:[(0,Y.jsx)(t.strong,{children:`Adsterra:`}),` where enabled, its advertising services may process browser, device, network, and advertising-interaction information. Follow the provider's `,(0,Y.jsx)(t.a,{href:`https://adsterra.com/privacy-policy/`,children:`privacy information`}),` for its data practices and available choices.`]}),`
263`]}),`
264`,(0,Y.jsx)(t.p,{children:`Your browser lets you block or delete cookies and site storage. Doing so may sign you out or remove saved puzzles and preferences. Blocking cookies alone may not stop all network requests or analytics processing. Provider controls and browser tracking protections offer additional choices.`}),`
265`,(0,Y.jsx)(t.h2,{children:`Service providers and external links`}),`
266`,(0,Y.jsx)(t.p,{children:`We use infrastructure and service providers to deliver the site and support its operation. These include Cloudflare for hosting and content delivery, Google for optional sign-in and hosted fonts, and the analytics or advertising services described above when enabled. Loading Google Fonts sends a request from your browser to Google.`}),`
267`,(0,Y.jsx)(t.p,{children:`When configured, Resend processes recipient addresses and message content for account email. Internal registration notifications can be delivered through Tencent WeCom to the site operator. Account infrastru
267cture may be shared with related puzzle websites; this does not make your browser saves portable between sites or devices.`}),`
268`,(0,Y.jsx)(t.p,{children:`Information may also be disclosed when necessary to meet legal obligations, respond to valid legal requests, or protect users and the service. Links to other websites take you to services with their own policies; this policy does not govern them.`}),`
269`,(0,Y.jsx)(t.h2,{children:`Retention and security`}),`
270`,(0,Y.jsx)(t.p,{children:`Browser saves remain until they are cleared, replaced, or removed by the browser. Server-side account records, feedback, correspondence, and technical records have different retention needs. We retain information as needed for the purpose it was collected, including handling requests, maintaining security, and meeting applicable legal obligations; there is no single retention period for all categories.`}),`
271`,(0,Y.jsx)(t.p,{children:`We use access controls and service protections to help safeguard information, but no online service can guarantee absolute security. Providers may process information in countries other than your own, whose privacy laws may differ.`}),`
272`,(0,Y.jsx)(t.h2,{children:`Your choices and requests`}),`
273`,(0,Y.jsx)(t.p,{children:`You can play without signing in, choose what to include in a message, and clear local site data through your browser. Clearing browser data does not delete an account or a feedback message stored by us.`}),`
274`,(0,Y.jsx)(t.p,{children:`Depending on where you live, you may have rights to access, correct, delete, or receive a copy of personal information, or to object to or restrict certain processing. Where processing relies on consent, you may withdraw that consent. You may also have a right to complain to your local data protection authority.`}),`
275`,(0,Y.jsxs)(t.p,{children:[`Send requests to `,(0,Y.jsx)(t.a,{href:`mailto:[email protected]`,children:`[email protected]`}),`. We may ask for information reasonably needed to verify your identity and locate the relevant records. Some information may need to be retained to meet legal obligations or protect the service.`]}),`
276`,(0,Y.jsx)(t.h2,{children:`Children`}),`
277`,(0,Y.jsx)(t.p,{children:`Tango Grid is intended for a general audience. Children should use the site with a parent or guardian's guidance and should not submit personal information without appropriate permission. If you believe a child has provided personal information without the consent required by applicable law, contact us so we can investigate and address it.`}),`
278`,(0,Y.jsx)(t.h2,{children:`Changes and contact`}),`
279`,(0,Y.jsxs)(t.p,{children:[`We may update this policy as the service or its data practices change. The date above identifies the latest revision. For privacy questions, email `,(0,Y.jsx)(t.a,{href:`mailto:[email protected]`,children:`[email protected]`}),` or visit `,(0,Y.jsx)(t.a,{href:`/contact`,children:`Contact`}),`.`]})]})}function pM(e={}){let{wrapper:t}={...$(),...e.components};return t?(0,Y.jsx)(t,{...e,children:(0,Y.jsx)(fM,{...e})}):fM(e)}var mM=S({default:()=>_M,meta:()=>hM}),hM={title:`Política de privacidad`,description:`Consulta la política de privacidad de Tango Grid sobre el tratamiento de cuentas, partidas guardadas, comentarios, cookies, analítica y publicidad.`,updated_at:`2026-09-21`};function gM(e){let t={a:`a`,h2:`h2`,h3:`h3`,li:`li`,p:`p`,strong:`strong`,ul:`ul`,...$(),...e.components};return(0,Y.jsxs)(Y.Fragment,{children:[(0,Y.jsxs)(t.p,{children:[`Esta Política de privacidad explica cómo Tango Grid gestiona la información cuando utilizas tangogrid.com. Si tienes preguntas o solicitudes, ponte en contacto con `,(0,Y.jsx)(t.a,{href:`mailto:[email protected]`,children:`[email protected]`}),`.`]}),`
280`,(0,Y.jsx)(t.h2,{children:`Información que tratamos`}),`
281`,(0,Y.jsx)(t.h3,{children:`Partidas y partidas guardadas en el navegador`}),`
282`,(0,Y.jsx)(t.p,{children:`Puedes jugar sin necesidad de crear una cuenta. Los movimientos en el tablero, el tiempo transcurrido y el progreso se guardan en el almacenamiento local de tu navegador siempre que esté disponible. Las partidas del modo Diario se asocian a una fecha; las partidas del modo de práctica se asocian a un rompecabezas concreto. Estas partidas guardadas no se sincronizan a través de tu cuenta. Las preferencias del navegador, como el tema visual o el idioma, también pueden guardarse en el almacenamiento local o en cookies.`}),`
283`,(0,Y.jsx)(t.p,{children:`El almacenamiento local no implica que toda interacción con el sitio web permanezca exclusivamente en tu dispositivo: las solicitudes de páginas, acciones de cuenta, comentarios y servicios de analítica activos implican solicitudes de red conforme se describe a continuación.`}),`
284`,(0,Y.jsx)(t.h3,{children:`Cuentas opcionales`}),`
285`,(0,Y.jsx)(t.p,{children:`Cuando el inicio de sesión con Google está disponible y decides utilizarlo, recibimos información de tu cuenta como tu nombre, dirección de correo electrónico, imagen de perfil y el identificador de cuenta de Google. Almacenamos registros de autenticación, tokens del proveedor cuando se suministran y la información de sesión necesaria para mantener el inicio de sesión. Las sesiones pueden incluir la dirección IP y el agente de usuario del navegador. No recibimos tu contraseña de Google y este sitio web no ofrece actualmente registro mediante usuario y contraseña tradicional.`}),`
286`,(0,Y.jsx)(t.p,{children:`También registramos el método de registro y, cuando esté disponible, la fuente de referencia o campaña. Las notificaciones internas de registro pueden incluir tu nombre, correo electrónico, hora de registro, país aproximado e idioma del navegador.`}),`
287`,(0,Y.jsx)(t.h3,{children:`Comentarios y correo electrónico`}),`
288`,(0,Y.jsx)(t.p,{children:`Almacenamos los mensajes enviados a través del formulario de comentarios, junto con el nombre y correo electrónico que proporciones y la hora de envío. Si has iniciado sesión, el envío de comentarios puede vincularse a tu cuenta. La correspondencia por correo electrónico incluye la dirección del remitente, el cuerpo del mensaje y cualquier archivo adjunto que decidas remitir.`}),`
289`,(0,Y.jsx)(t.h3,{children:`Información técnica`}),`
290`,(0,Y.jsx)(t.p,{children:`Los servicios de alojamiento, seguridad y red de entrega de contenido procesan la información necesaria para recibir peticiones y servir el sitio web, como direcciones IP, URLs solicitadas, detalles del navegador y marcas de tiempo. Esta información ayuda a diagnosticar errores y prevenir abusos o ataques maliciosos.`}),`
291`,(0,Y.jsx)(t.h2,{children:`Cómo se utiliza la información`}),`
292`,(0,Y.jsx)(t.p,{children:`Utilizamos la información para gestionar cuentas y sesiones, entregar las páginas web, responder a consultas, investigar incidencias técnicas, proteger la seguridad del servicio y comprender cómo se utiliza la plataforma. Los correos electrónicos relacionados con la cuenta, incluido el mensaje de bienvenida, pueden enviarse cuando el servicio de correo esté activado.`}),`
293`,(0,Y.jsx)(t.p,{children:`Cuando la legislación de protección de datos aplicable exija una base jurídica, estos tratamientos pueden basarse en la ejecución de un servicio solicitado, en nuestros intereses legítimos para operar y proteger el sitio web, en el cumplimiento de obligaciones legales o en tu consentimiento expreso cuando sea preceptivo. Este aviso de privacidad no sustituye el consentimiento que pudiera requerirse para mecanismos de seguimiento opcionales.`}),`
294`,(0,Y.jsx)(t.h2,{children:`Cookies, analítica y publicidad`}),`
295`,(0,Y.jsx)(t.p,{children:`Las cookies de sesión y de preferencias permiten el funcionamiento del inicio de sesión y la configuración del sitio. Una cookie de referencia puede recordar el origen de la visita para el registro de la cuenta. Los servicios opcionales dependen de qué integraciones estén habilitadas en cada momento; la siguiente descripción detalla dichos servicios sin garantizar que todos los proveedores funcionen en todas las páginas.`}),`
296`,(0,Y.jsxs)(t.ul,{children:[`
297`,(0,Y.jsxs)(t.li,{children:[(0,Y.jsx)(t.strong,{children:`Google Analytics:`}),` cuando está activado, recopila información sobre el uso del sitio web, como visitas a páginas, fuentes de procedencia, detalles del navegador y del dispositivo, e interacciones. Puede emplear cookies o identificadores similares. Consulta `,(0,Y.jsx)(t.a,{href:`https://policies.google.com/technologies/partner-sites`,children:`cómo utiliza Google la información de sitios asociados`}),`.`]}),`
298`,(0,Y.jsxs)(t.li,{children:[(0,Y.jsx)(t.strong,{children:`Microsoft Clarity:`}),` cuando está activado, registra información de interacción, como clics, desplazamientos, mapas de calor y grabaciones de sesión, para ayudarnos a entender la usabilidad y mejorar la experiencia. Puede utilizar cookies propias y de terceros y otras tecnologías de seguimiento. El tratamiento que realiza Microsoft se detalla en la `,(0,Y.jsx)(t.a,{href:`https://privacy.microsoft.com/privacystatement`,children:`Declaración de privacidad de Microsoft`}),`.`]}),`
299`,(0,Y.jsxs)(t.li,{children:[(0,Y.jsx)(t.strong,{children:`Google AdSense:`}),` donde los anuncios de Google están habilitados, Google y otros proveedores de publicidad asociados pueden usar cookies para mostrar y medir anuncios basados en tus visitas a este y otros sitios web. Puedes gestionar la personalización publicitaria en la `,(0,Y.jsx)(t.a,{href:`https://adssettings.google.com/`,children:`Configuración de anuncios de Google`}),` y consultar las opciones de los proveedores participantes en `,(0,Y.jsx)(t.a,{href:`https://youradchoices.com/`,children:`YourAdChoices`}),`.`]}),`
300`,(0,Y.jsxs)(t.li,{children:[(0,Y.jsx)(t.strong,{children:`Adsterra:`}),` donde esté activado, sus servicios publicitarios pueden procesar información sobre el navegador, el dispositivo, la red y la interacción con los anuncios. Revisa la `,(0,Y.jsx)(t.a,{href:`https://adsterra.com/privacy-policy/`,children:`información de privacidad de Adsterra`}),` para conocer sus prácticas y opciones disponibles.`]}),`
301`]}),`
302`,(0,Y.jsx)(t.p,{children:`Tu navegador te permite bloquear o eliminar cookies y almacenamiento local. Si lo haces, es posible que se cierre tu sesión o se borren las partidas guardadas y tus preferencias. Bloquear cookies no detiene necesariamente todas las peticiones de red o tratamientos analíticos. Los controles de los proveedores y las herramientas antirrastreo del navegador ofrecen opciones complementarias.`}),`
303`,(0,Y.jsx)(t.h2,{children:`Proveedores de servicios y enlaces externos`}),`
304`,(0,Y.jsx)(t.p,{children:`Utilizamos proveedores de infraestructura y servicios para alojar el sitio web y respaldar sus operaciones. Estos incluyen Cloudflare para el alojamiento y la red de distribución de contenidos, Google para el inicio de sesión opcional y las fuentes tipográficas, así como los servicios de analítica y publicidad descritos anteriormente cuando están activos. La carga de Google Fonts envía una petición desde tu navegador a los servidores de Google.`}),`
305`,(0,Y.jsx)(t.p,{children:`Cuando está configurado, Resend procesa las direcciones de los destinatarios y el contenido de los mensajes de correo electrónico de la cuenta. Las notificaciones internas de registro pueden enviarse a través de Tencent WeCom al administrador del sitio. La infraestructura de cuentas puede compartirse con sitios hermanos de la misma red de pasatiempos; esto no hace que las partidas guardadas en el navegador sean transferibles entre sitios o dispositivos.`}),`
306`,(0,Y.jsx)(t.p,{children:`La información también puede divulgarse cuando sea estrictamente necesario para cumplir con obligaciones legales, responder a requerimientos judiciales válidos o proteger a los usuarios y la integridad del servicio. Los enlaces a sitios de terceros te dirigen a servicios con sus propias políticas; esta política no los regula.`}),`
307`,(0,Y.jsx)(t.h2,{children:`Conservación y seguridad de los datos`}),`
308`,(0,Y.jsx)(t.p,{children:`Las partidas guardadas en el navegador permanecen hasta que las borres, se sobrescriban o sean eliminadas por tu navegador. Los registros de cuentas en el servidor, los mensajes de comentarios, la correspondencia 
308y los registros técnicos tienen plazos de conservación diferentes según su finalidad. Conservamos la información el tiempo necesario para cumplir los fines con los que fue recogida, atender solicitudes, garantizar la seguridad y cumplir las normativas legales; no existe un plazo único para todas las categorías.`}),`
309`,(0,Y.jsx)(t.p,{children:`Aplicamos controles de acceso y medidas de protección técnica para salvaguardar los datos, si bien ningún servicio en línea puede garantizar una seguridad impenetrable. Los proveedores pueden tratar datos en países distintos al tuyo, cuyas leyes de protección de datos pueden variar.`}),`
310`,(0,Y.jsx)(t.h2,{children:`Tus opciones y derechos`}),`
311`,(0,Y.jsx)(t.p,{children:`Puedes jugar libremente sin iniciar sesión, decidir qué datos incluyes en tus mensajes y borrar los datos locales almacenados en tu navegador en cualquier momento. Borrar los datos del navegador no elimina tu cuenta ni los mensajes de comentarios que ya nos hayas remitido.`}),`
312`,(0,Y.jsx)(t.p,{children:`En función de tu lugar de residencia, puedes tener derecho a acceder, rectificar, suprimir o recibir una copia de tus datos personales, así como a oponerte o limitar determinados tratamientos. Cuando el tratamiento se base en tu consentimiento, puedes retirarlo en cualquier momento. También te asiste el derecho a presentar una reclamación ante la autoridad de protección de datos competente.`}),`
313`,(0,Y.jsxs)(t.p,{children:[`Envía tus solicitudes a `,(0,Y.jsx)(t.a,{href:`mailto:[email protected]`,children:`[email protected]`}),`. Es posible que te solicitemos información complementaria para verificar tu identidad antes de localizar y gestionar los registros correspondientes. Parte de la información puede requerir su conservación para cumplir obligaciones legales o proteger el servicio.`]}),`
314`,(0,Y.jsx)(t.h2,{children:`Menores de edad`}),`
315`,(0,Y.jsx)(t.p,{children:`Tango Grid está dirigido a un público general. Los menores de edad deben utilizar el sitio web bajo la supervisión de sus padres o tutores legales y no deben facilitar información personal sin la debida autorización. Si consideras que un menor nos ha facilitado datos personales sin el consentimiento legal necesario, ponte en contacto con nosotros para investigar y resolver la situación.`}),`
316`,(0,Y.jsx)(t.h2,{children:`Modificaciones y contacto`}),`
317`,(0,Y.jsxs)(t.p,{children:[`Podemos actualizar esta política a medida que el servicio o sus prácticas de tratamiento de datos evolucionen. La fecha indicada en la parte superior refleja la última revisión. Para cualquier consulta sobre privacidad, escribe a `,(0,Y.jsx)(t.a,{href:`mailto:[email protected]`,children:`[email protected]`}),` o visita nuestra página de `,(0,Y.jsx)(t.a,{href:`/contact`,children:`Contacto`}),`.`]})]})}function _M(e={}){let{wrapper:t}={...$(),...e.components};return t?(0,Y.jsx)(t,{...e,children:(0,Y.jsx)(gM,{...e})}):gM(e)}var vM=S({default:()=>xM,meta:()=>yM}),yM={title:`Politique de confidentialité`,description:`Découvrez comment Tango Grid traite les comptes, sauvegardes locales, messages, cookies, statistiques, publicités et demandes relatives aux données.`,updated_at:`2026-09-13`};function bM(e){let t={a:`a`,h2:`h2`,h3:`h3`,li:`li`,p:`p`,strong:`strong`,ul:`ul`,...$(),...e.components};return(0,Y.jsxs)(Y.Fragment,{children:[(0,Y.jsxs)(t.p,{children:[`Cette politique explique comment Tango Grid traite les informations lorsque vous utilisez tangogrid.com. Pour toute question ou demande, contactez `,(0,Y.jsx)(t.a,{href:`mailto:[email protected]`,children:`[email protected]`}),`.`]}),`
318`,(0,Y.jsx)(t.h2,{children:`Les informations traitées`}),`
319`,(0,Y.jsx)(t.h3,{children:`Jeu et sauvegardes dans le navigateur`}),`
320`,(0,Y.jsx)(t.p,{children:`Vous pouvez jouer sans compte. Les coups, le temps écoulé et la progression sont enregistrés dans le stockage local du navigateur lorsqu’il est disponible. Les sauvegardes quotidiennes sont associées à une date ; celles de l’entraînement à une grille. Elles ne sont pas synchronisées avec votre compte. Les préférences de thème et de langue peuvent aussi utiliser le stockage local ou des cookies.`}),`
321`,(0,Y.jsx)(t.p,{children:`Une sauvegarde locale ne signifie pas que toutes les interactions restent sur votre appareil : les demandes de pages, actions sur le compte, messages et outils statistiques activés impliquent les requêtes réseau décrites ci-dessous.`}),`
322`,(0,Y.jsx)(t.h3,{children:`Comptes facultatifs`}),`
323`,(0,Y.jsx)(t.p,{children:`Lorsque la connexion Google est disponible et que vous l’utilisez, nous recevons notamment votre nom, votre adresse e-mail, votre image de profil et votre identifiant de compte Google. Nous conservons les enregistrements d’authentification, les jetons du fournisseur lorsqu’ils sont fournis et les informations de session nécessaires à la connexion. Les sessions peuvent inclure une adresse IP et l’identifiant du navigateur. Nous ne recevons pas votre mot de passe Google. Le site ne propose actuellement pas d’inscription par e-mail et mot de passe.`}),`
324`,(0,Y.jsx)(t.p,{children:`Nous enregistrons également le mode d’inscription et, lorsqu’elle est disponible, la source de recommandation ou de campagne. Les notifications d’inscription peuvent inclure votre nom, votre adresse e-mail, l’heure d’inscription, votre pays approximatif et la langue du navigateur.`}),`
325`,(0,Y.jsx)(t.h3,{children:`Formulaire de retour et e-mails`}),`
326`,(0,Y.jsx)(t.p,{children:`Nous conservons les messages envoyés par le formulaire, le nom et l’adresse e-mail éventuellement fournis, ainsi que la date d’envoi. Un message envoyé pendant une session connectée peut être associé à votre compte. Les échanges par e-mail comprennent l’adresse de l’expéditeur, le message et les pièces jointes que vous choisissez d’envoyer.`}),`
327`,(0,Y.jsx)(t.h3,{children:`Informations techniques`}),`
328`,(0,Y.jsx)(t.p,{children:`Les services d’hébergement, de sécurité et de diffusion de contenu traitent les informations nécessaires pour recevoir les requêtes et servir le site : adresses IP, URL demandées, caractéristiques du navigateur et horaires des requêtes. Elles peuvent servir au diagnostic des incidents et à la prévention des abus.`}),`
329`,(0,Y.jsx)(t.h2,{children:`L’utilisation des informations`}),`
330`,(0,Y.jsx)(t.p,{children:`Nous utilisons ces informations pour gérer les comptes et sessions, fournir le site, répondre aux demandes, examiner les problèmes, protéger le service et comprendre son utilisation. Des e-mails liés au compte, notamment un message de bienvenue, peuvent être envoyés lorsque le service d’e-mail est activé.`}),`
331`,(0,Y.jsx)(t.p,{children:`Lorsque la législation applicable exige une base juridique, ces traitements peuvent reposer sur la fourniture du service demandé, notre intérêt légitime à exploiter et sécuriser le site, nos obligations légales ou votre consentement lorsqu’il est requis. Une politique de confidentialité ne remplace pas le consentement nécessaire à un suivi facultatif.`}),`
332`,(0,Y.jsx)(t.h2,{children:`Cookies, statistiques et publicité`}),`
333`,(0,Y.jsx)(t.p,{children:`Les cookies de session et de préférence permettent la connexion et les réglages du site. Un cookie de recommandation peut conserver la provenance d’une visite jusqu’à l’inscription. Les services facultatifs dépendent des intégrations activées : leur description ci-dessous ne signifie pas qu’ils fonctionnent tous sur chaque page.`}),`
334`,(0,Y.jsxs)(t.ul,{children:[`
335`,(0,Y.jsxs)(t.li,{children:[(0,Y.jsx)(t.strong,{children:`Google Analytics :`}),` lorsqu’il est activé, il collecte des informations d’utilisation telles que les pages visitées, la provenance, le navigateur, l’appareil et les interactions. Il peut utiliser des cookies ou identifiants similaires. Consultez `,(0,Y.jsx)(t.a,{href:`https://policies.google.com/technologies/partner-sites`,children:`l’utilisation des informations provenant de sites partenaires par Google`}),`.`]}),`
336`,(0,Y.jsxs)(t.li,{children:[(0,Y.jsx)(t.strong,{children:`Microsoft Clarity :`}),` lorsqu’il est activé, il collecte des interactions comme les clics, le défilement, les cartes de chaleur et les relectures de sessions afin d’améliorer l’ergonomie. Il peut utiliser des cookies internes et tiers ainsi que d’autres technologies de suivi. Le traitement par Microsoft est décrit dans sa `,(0,Y.jsx)(t.a,{href:`https://privacy.microsoft.com/privacystatement`,children:`déclaration de confidentialité`}),`.`]}),`
337`,(0,Y.jsxs)(t.li,{children:[(0,Y.jsx)(t.strong,{children:`Google AdSense :`}),` lorsque les publicités Google sont activées, Google et d’autres fournisseurs publicitaires peuvent utiliser des cookies pour diffuser et mesurer des annonces selon les visites sur ce site et d’autres sites. Gérez la personnalisation dans les `,(0,Y.jsx)(t.a,{href:`https://adssettings.google.com/`,children:`paramètres publicitaires Google`}),` et découvrez les choix proposés par les fournisseurs participants sur `,(0,Y.jsx)(t.a,{href:`https://youradchoices.com/`,children:`YourAdChoices`}),`.`]}),`
338`,(0,Y.jsxs)(t.li,{children:[(0,Y.jsx)(t.strong,{children:`Adsterra :`}),` lorsqu’il est activé, ce service peut traiter des informations sur le navigateur, l’appareil, le réseau et les interactions publicitaires. Consultez sa `,(0,Y.jsx)(t.a,{href:`https://adsterra.com/privacy-policy/`,children:`politique de confidentialité`}),` pour ses pratiques et les choix disponibles.`]}),`
339`]}),`
340`,(0,Y.jsx)(t.p,{children:`Votre navigateur permet de bloquer ou supprimer les cookies et le stockage du site. Cela peut vous déconnecter ou effacer les grilles et préférences sauvegardées. Le blocage des cookies ne supprime pas forcément toutes les requêtes réseau ni tous les traitements statistiques. Les réglages des fournisseurs et les protections du navigateur offrent d’autres possibilités.`}),`
341`,(0,Y.jsx)(t.h2,{children:`Prestataires et liens externes`}),`
342`,(0,Y.jsx)(t.p,{children:`Nous utilisons des prestataires techniques pour fournir et exploiter le site. Ils comprennent Cloudflare pour l’hébergement et la diffusion de contenu, Google pour la connexion facultative et les polices hébergées, ainsi que les services statistiques et publicitaires décrits ci-dessus lorsqu’ils sont activés. Le chargement de Google Fonts envoie une requête de votre navigateur à Google.`}),`
343`,(0,Y.jsx)(t.p,{children:`Lorsqu’il est configuré, Resend traite les adresses des destinataires et le contenu des e-mails de compte. Des notifications internes d’inscription peuvent être transmises à l’exploitant via Tencent WeCom. L’infrastructure de comptes peut être partagée avec des sites de jeux associés ; cela ne rend pas vos sauvegardes locales transférables entre sites ou appareils.`}),`
344`,(0,Y.jsx)(t.p,{children:`Des informations peuvent aussi être communiquées pour respecter une obligation légale, répondre à une demande légale valide ou protéger les utilisateurs et le service. Les liens externes mènent à des services régis par leurs propres politiques ; la présente politique ne s’applique pas à ces services.`}),`
345`,(0,Y.jsx)(t.h2,{children:`Conservation et sécurité`}),`
346`,(0,Y.jsx)(t.p,{children:`Les sauvegardes locales restent présentes jusqu’à leur effacement, remplacement ou suppression par le navigateur. Les comptes, messages, correspondances et journaux techniques côté serveur ont des besoins de conservation différents. Nous conservons les informations aussi longtemps que nécessaire à leur finalité, notamment pour traiter les demandes, maintenir la sécurité et respecter nos obligations légales. Il n’existe pas de durée unique pour toutes les catégories.`}),`
347`,(0,Y.jsx)(t.p,{children:`Nous utilisons des contrôles d’accès et des protections du service, mais aucun service en ligne ne peut garantir une sécurité absolue. Les prestataires peuvent traiter les informations dans d’autres pays, dont les lois sur la confidentialité peuvent différer.`}),`
348`,(0,Y.jsx)(t.h2,{children:`Vos choix et demandes`}),`
349`,(0,Y.jsx)(t.p,{children:`Vous pouvez jouer sans connexion, choisir les informations de vos messages et effacer les données locales du site dans le navigateur. Cet effacement ne supprime pas un compte ou un message conservé par nos soins.`}),`
350`,(0,Y.jsx)(t.p,{children:`Selon votre lieu de résidence, vous pouvez disposer de droits d’accès, de correction, de suppression ou de copie de vos données, ainsi que d’opposition ou de limitation de certains traitements. Vous pouvez retirer votre consentement pour les traitements qui en dépendent. Vous pouvez également avoir le droit de déposer une réclamation auprès de votre autorité de protection des données.`}),`
351`,(0,Y.jsxs)(t.p,{children:[`Adressez vos demandes à `,(0,Y.jsx)(t.a,{href:`mailto:[email protected]`,children:`[email protected]`}),`. Nous pouvons demander les informations raisonnablement nécessaires pour vérifier votre identité et retrouver les enregistrements concernés. Certaines données peuvent devoir être conservées pour respecter la loi ou protéger le service.`]}),`
352`,(0,Y.jsx)(t.h2,{children:`Enfants`}),`
353`,(0,Y.jsx)(t.p,{children:`Tango Grid s’adresse à un public général. Les enfants doivent utiliser le site avec l’accompagnement d’un parent ou responsable légal et ne pas transmettre de données personnelles sans l’autorisation appropriée. Si vous pensez qu’un enfant a fourni des données sans le consentement requis par la loi applicable, contactez-nous pour que nous puissions examiner la situation et y remédier.`}),`
354`,(0,Y.jsx)(t.h2,{children:`Modifications et contact`}),`
355`,(0,Y.jsxs)(t.p,{children:[`Cette politique peut évoluer avec le service et ses pratiques. La date ci-dessus indique la dernière révision. Pour une question de confidentialité, écrivez à `,(0,Y.jsx)(t.a,{href:`mailto:[email protected]`,children:`[email protected]`}),` ou consultez la page `,(0,Y.jsx)(t.a,{href:`/contact`,children:`Contact`}),`.`]})]})}function xM(e={}){let{wrapper:t}={...$(),...e.components};return t?(0,Y.jsx)(t,{...e,children:(0,Y.jsx)(bM,{...e})}):bM(e)}var SM=S({default:()=>TM,meta:()=>CM}),CM={title:`Política de Privacidade`,description:`Conheça a política de privacidade do Tango Grid sobre dados de conta, salvamento no navegador, comentários, cookies, análises e anúncios.`,updated_at:`2026-09-21`};function wM(e){let t={a:`a`,h2:`h2`,h3:`h3`,li:`li`,p:`p`,strong:`strong`,ul:`ul`,...$(),...e.components};return(0,Y.jsxs)(Y.Fragment,{children:[(0,Y.jsxs)(t.p,{children:[`Esta Política de Privacidade explica como o Tango Grid trata suas informações ao utilizar tangogrid.com. Para dúvidas ou solicitações, entre em contato pelo e-mail `,(0,Y.jsx)(t.a,{href:`mailto:[email protected]`,children:`[email protected]`}),`.`]}),`
356`,(0,Y.jsx)(t.h2,{children:`Informações que tratamos`}),`
357`,(0,Y.jsx)(t.h3,{children:`Partidas e salvamento no navegador`}),`
358`,(0,Y.jsx)(t.p,{children:`Você pode jogar sem criar uma conta. Seus movimentos no quebra-cabeça, tempo decorrido e progresso da partida são armazenados no armazenamento local (localStorage) do seu navegador quando disponível. Os salvamentos diários são associados a uma data; os salvamentos de treino são associados a um quebra-cabeça específico. Esses salvamentos não são sincronizados na nuvem por meio da sua conta. Preferências de navegação, como tema escuro e idioma selecionado, também podem utilizar o armazenamento local ou cookies.`}),`
359`,(0,Y.jsx)(t.p,{children:`O salvamento local não impede que certas interações com o site envolvam tráfego de rede: carregamento de páginas, ações de autenticação, envio de feedbacks e ferramentas de análise ativadas realizam requisições conforme detalhado abaixo.`}),`
360`,(0,Y.jsx)(t.h3,{children:`Contas opcionais`}),`
361`,(0,Y.jsx)(t.p,{children:`Quando o login com o Google estiver disponível e você optar por usá-lo, receberemos dados de perfil como seu nome, endereço de e-mail, foto de perfil e identificador de conta do Google. Armazenamos registros de autenticação, tokens de provedor quando fornecidos e dados de sessão necessários para manter seu login ativo. As sessões podem incluir endereço IP e identificação do navegador (user-agent). Nós não recebemos a sua senha do Google, e este site não oferece cadastro direto por e-mail e senha.`}),`
362`,(0,Y.jsx)(t.p,{children:`Também registramos o método de cadastro e, quando disponível, a origem de referência ou campanha. Notificações internas de cadastro podem incluir seu nome, e-mail, horário do registro, país aproximado e idioma do navegador.`}),`
363`,(0,Y.jsx)(t.h3,{children:`Mensagens de feedback e e-mail`}),`
364`,(0,Y.jsx)(t.p,{children:`Armazenamos mensagens enviadas pelo formulário de feedback, juntamente com o nome e e-mail informados e o horário de envio. Se você estiver conectado, o feedback poderá ser associado à sua conta. A correspondência por e-mail inclui o endereço do remetente, o corpo da mensagem e eventuais anexos encaminhados.`}),`
365`,(0,Y.jsx)(t.h3,{children:`Informações técnicas de conexão`}),`
366`,(0,Y.jsx)(t.p,{children:`Nossos provedores de hospedagem, segurança e rede de distribuição de conteúdo (CDN) processam os dados necessários para responder a requisições e manter o site funcionando, tais como endereços IP, URLs acessadas, detalhes do navegador e data/hora do acesso. Essas informações auxiliam no diagnóstico de erros e na prevenção contra abusos.`}),`
367`,(0,Y.jsx)(t.h2,{children:`Como usamos as informações`}),`
368`,(0,Y.jsx)(t.p,{children:`Utilizamos os dados para manter contas e sessões ativas, fornecer as páginas do site, responder a dúvidas, investigar problemas técnicos, proteger o serviço e compreender como o site é utilizado. Mensagens relacionadas à conta, como e-mails de boas-vindas, podem ser enviadas quando o serviço de e-mail estiver habilitado.`}),`
369`,(0,Y.jsx)(t.p,{children:`Quando a legislação de privacidade aplicável exigir uma base legal, essas finalidades fundamentam-se no fornecimento do serviço solicitado, em nossos legítimos interesses na operação e segurança do site, no cumprimento de obrigações legais ou no seu c
369onsentimento expresso, quando aplicável.`}),`
370`,(0,Y.jsx)(t.h2,{children:`Cookies, ferramentas de análise e publicidade`}),`
371`,(0,Y.jsx)(t.p,{children:`Cookies de sessão e de preferências mantêm seu login ativo e suas opções salvas. Um cookie de indicação pode guardar a origem da visita para novos cadastros. Serviços opcionais dependem das integrações habilitadas em cada momento:`}),`
372`,(0,Y.jsxs)(t.ul,{children:[`
373`,(0,Y.jsxs)(t.li,{children:[(0,Y.jsx)(t.strong,{children:`Google Analytics:`}),` quando ativado, coleta dados sobre o uso do site, como páginas visitadas, fonte de tráfego, detalhes do navegador/aparelho e interações. Pode utilizar cookies ou identificadores similares. Veja `,(0,Y.jsx)(t.a,{href:`https://policies.google.com/technologies/partner-sites`,children:`como o Google utiliza dados de sites parceiros`}),`.`]}),`
374`,(0,Y.jsxs)(t.li,{children:[(0,Y.jsx)(t.strong,{children:`Microsoft Clarity:`}),` quando habilitado, registra interações como cliques, rolagem de tela, mapas de calor e gravações anônimas de sessão para nos ajudar a aprimorar a usabilidade do site. Pode utilizar cookies próprios e de terceiros. A conduta da Microsoft está descrita na `,(0,Y.jsx)(t.a,{href:`https://privacy.microsoft.com/privacystatement`,children:`Declaração de Privacidade da Microsoft`}),`.`]}),`
375`,(0,Y.jsxs)(t.li,{children:[(0,Y.jsx)(t.strong,{children:`Google AdSense:`}),` quando anúncios do Google estiverem ativos, o Google e parceiros terceirizados podem usar cookies para veicular e mensurar anúncios com base em visitas anteriores a este e outros sites. Você pode gerenciar a personalização de anúncios nas `,(0,Y.jsx)(t.a,{href:`https://adssettings.google.com/`,children:`Configurações de anúncios do Google`}),` ou no `,(0,Y.jsx)(t.a,{href:`https://youradchoices.com/`,children:`YourAdChoices`}),`.`]}),`
376`,(0,Y.jsxs)(t.li,{children:[(0,Y.jsx)(t.strong,{children:`Adsterra:`}),` quando habilitada, seus serviços de publicidade podem processar informações de navegador, aparelho, rede e engajamento com anúncios. Consulte a `,(0,Y.jsx)(t.a,{href:`https://adsterra.com/privacy-policy/`,children:`política de privacidade da Adsterra`}),` para detalhes sobre opções disponíveis.`]}),`
377`]}),`
378`,(0,Y.jsx)(t.p,{children:`Seu navegador permite bloquear ou apagar cookies e dados locais a qualquer momento. Isso pode desconectar sua sessão ou redefinir quebra-cabeças salvos e preferências visuais.`}),`
379`,(0,Y.jsx)(t.h2,{children:`Prestadores de serviços e links externos`}),`
380`,(0,Y.jsx)(t.p,{children:`Contamos com fornecedores de infraestrutura confiáveis para manter o Tango Grid no ar, incluindo a Cloudflare para hospedagem e CDN, o Google para login o
380pcional e fontes hospedadas, além dos serviços de análise e anúncios descritos acima. O carregamento do Google Fonts realiza requisições do seu navegador aos servidores do Google.`}),`
381`,(0,Y.jsx)(t.p,{children:`Quando configurado, o Resend processa os destinatários e o conteúdo de e-mails do sistema. Notificações internas de novos cadastros podem ser enviadas via Tencent WeCom à equipe do site. Nossa infraestrutura pode ser compartilhada com sites irmãos do mesmo grupo de jogos; isso não transfere nem sincroniza seus salvamentos locais entre sites ou dispositivos diferentes.`}),`
382`,(0,Y.jsx)(t.p,{children:`As informações também podem ser divulgadas se necessário para cumprir obrigações legais, responder a solicitações judiciais válidas ou resguardar direitos de usuários e da plataforma. Links para outros sites levam a páginas com políticas próprias, sobre as quais não temos controle.`}),`
383`,(0,Y.jsx)(t.h2,{children:`Retenção e segurança`}),`
384`,(0,Y.jsx)(t.p,{children:`Os salvamentos locais no navegador permanecem até que você os limpe ou até que o próprio navegador os descarte. Registros de conta, feedbacks recebidos e logs técnicos em servidores têm prazos de guarda adequados às suas respectivas necessidades operacionais e legais.`}),`
385`,(0,Y.jsx)(t.p,{children:`Adotamos medidas razoáveis de segurança e controle de acesso para proteger seus dados, mas nenhum serviço conectado à internet possui proteção absoluta contra incidentes. Nossos provedores podem processar dados em servidores localizados fora do seu país de residência.`}),`
386`,(0,Y.jsx)(t.h2,{children:`Seus direitos e solicitações`}),`
387`,(0,Y.jsx)(t.p,{children:`Você pode jogar sem fazer login, escolher quais dados compartilhar em mensagens de contato e limpar dados armazenados localmente pelo navegador. A limpeza no navegador não remove contas do servidor nem apaga mensagens enviadas anteriormente.`}),`
388`,(0,Y.jsx)(t.p,{children:`Dependendo de sua jurisdição (como LGPD no Brasil ou GDPR na Europa), você pode ter direito de solicitar confirmação de tratamento, acesso, correção, anonimização, bloqueio ou eliminação de seus dados pessoais, bem como revogar consentimentos concedidos.`}),`
389`,(0,Y.jsxs)(t.p,{children:[`Envie suas solicitações para `,(0,Y.jsx)(t.a,{href:`mailto:[email protected]`,children:`[email protected]`}),`. Podemos solicitar dados complementares para confirmar sua identidade antes de atender ao pedido.`]}),`
390`,(0,Y.jsx)(t.h2,{children:`Menores de idade`}),`
391`,(0,Y.jsx)(t.p,{children:`O Tango Grid destina-se ao público geral. Crianças e menores devem utilizar o site sob supervisão de pais ou responsáveis legais e não devem fornecer dados pessoais sem a devida autorização. Caso suspeite que um menor tenha fornecido dados sem consentimento adequado, avise-nos para que possamos verificar e tomar as providências necessárias.`}),`
392`,(0,Y.jsx)(t.h2,{children:`Alterações nesta política`}),`
393`,(0,Y.jsxs)(t.p,{children:[`Podemos atualizar esta política de tempos em tempos para refletir mudanças no serviço ou na legislação. A data no topo da página indica a última revisão. Em caso de dúvidas, escreva para `,(0,Y.jsx)(t.a,{href:`mailto:[email protected]`,children:`[email protected]`}),` ou acesse nossa página de `,(0,Y.jsx)(t.a,{href:`/contact`,children:`Contato`}),`.`]})]})}function TM(e={}){let{wrapper:t}={...$(),...e.components};return t?(0,Y.jsx)(t,{...e,children:(0,Y.jsx)(wM,{...e})}):wM(e)}var EM=S({default:()=>kM,meta:()=>DM}),DM={title:`Nutzungsbedingungen`,description:`Nutzungsbedingungen für Tango Grid: Kostenloses Spielen, optionale Konten, Teilen von Rätsellinks, Feedback-Einsendungen und Zugriff auf die Website.`,updated_at:`2026-09-14`};function OM(e){let t={a:`a`,h2:`h2`,li:`li`,p:`p`,ul:`ul`,...$(),...e.components};return(0,Y.jsxs)(Y.Fragment,{children:[(0,Y.jsxs)(t.p,{children:[`Diese Nutzungsbedingungen gelten für deine Nutzung von Tango Grid unter tangogrid.com. Durch die Nutzung der Website erklärst du dich mit diesen Bedingungen einverstanden. Wenn du ihnen nicht zustimmst, nutze den Dienst bitte nicht. Fragen kannst du an `,(0,Y.jsx)(t.a,{href:`mailto:[email protected]`,children:`[email protected]`}),` richten.`]}),`
394`,(0,Y.jsx)(t.h2,{children:`Nutzung von Tango Grid`}),`
395`,(0,Y.jsx)(t.p,{children:`Tango Grid bietet kostenlose, browserbasierte Sonnen- und Mond-Logikrätsel sowie passende Leitfäden. Du darfst den Dienst für den persönlichen Gebrauch nutzen und Links zu Rätseln sowie öffentlichen Seiten teilen. Zum Spielen ist kein Benutzerkonto erforderlich.`}),`
396`,(0,Y.jsx)(t.p,{children:`Du musst nach dem für dich geltenden Recht berechtigt sein, diesen Bedingungen zuzustimmen. Minderjährige sollten den Dienst nur mit Zustimmung und unter Begleitung eines Elternteils oder Erziehungsberechtigten nutzen, sofern erforderlich.`}),`
397`,(0,Y.jsx)(t.p,{children:`Tägliche Rätsel-Sets, Übungsaufgaben, Zeit-Herausforderungen und Archiv-Termine hängen von der Verfügbarkeit des Dienstes und der Inhalte ab. Wir können Rätsel aktualisieren, Fehler korrigieren, Funktionen ändern oder den Zugriff für Wartungs- und Sicherheitszwecke vorübergehend unterbrechen.`}),`
398`,(0,Y.jsx)(t.h2,{children:`Optionale Benutzerkonten`}),`
399`,(0,Y.jsx)(t.p,{children:`Wenn du die Google-Anmeldung nutzt, mache bitte zutreffende Angaben und halte den Zugriff auf dein Google-Konto sicher. Gib dich nicht als eine andere Person aus und nutze kein fremdes Konto unbefugt. Kontaktiere uns bitte sofort, wenn du einen unbefugten Zugriff auf dein Tango-Grid-Konto vermutest.`}),`
400`,(0,Y.jsx)(t.p,{children:`Benutzerkonten bieten keine Cloud-Synchronisation deines Spielfortsc
400hritts. Spielstände verbleiben im aktuellen Browser, sofern lokaler Speicherplatz vorhanden ist. Wir können keine Wiederherstellung von Spielständen garantieren, die durch das Löschen von Browserdaten, privates Surfen, Gerätewechsel oder Browserstörungen verloren gegangen sind.`}),`
401`,(0,Y.jsx)(t.h2,{children:`Faire und zulässige Nutzung`}),`
402`,(0,Y.jsx)(t.p,{children:`Es ist untersagt:`}),`
403`,(0,Y.jsxs)(t.ul,{children:[`
404`,(0,Y.jsx)(t.li,{children:`Zu versuchen, unbefugt auf Konten, private Daten oder IT-Systeme zuzugreifen.`}),`
405`,(0,Y.jsx)(t.li,{children:`Den Dienst zu stören, Sicherheitsvorkehrungen zu umgehen, die Infrastruktur zu überlasten oder missbräuchliche automatisierte Abfragen zu senden.`}),`
406`,(0,Y.jsx)(t.li,{children:`Rechtswidrige, bedrohliche, belästigende oder irreführende Inhalte über Support- oder Feedback-Kanäle zu übermitteln.`}),`
407`,(0,Y.jsx)(t.li,{children:`Die Website zur Verbreitung von Schadsoftware, Spam oder Inhalten zu nutzen, die Rechte Dritter verletzen.`}),`
408`,(0,Y.jsx)(t.li,{children:`Tango Grid fälschlicherweise als offiziellen LinkedIn-Dienst darzustellen oder eine nicht bestehende Partnerschaft oder Billigung zu behaupten.`}),`
409`]}),`
410`,(0,Y.jsx)(t.p,{children:`Wir können den Zugriff einschränken oder ein Konto sperren, wenn dies nach vernünftigem Ermessen erforderlich ist, um Missbrauch zu unterbinden, Sicherheitsrisiken abzuwehren oder gesetzlichen Pflichten nachzukommen. Du kannst uns kontaktieren, wenn du der Ansicht bist, dass eine Sperre irrtümlich erfolgte.`}),`
411`,(0,Y.jsx)(t.h2,{children:`Inhalte und Rätsellinks`}),`
412`,(0,Y.jsx)(t.p,{children:`Die originalen Texte, Illustrationen, Markenzeichen und Software von Tango Grid sind durch das jeweils anwendbare Urheber- und Markenrecht geschützt, vorbehaltlich einschlägiger Dritt- oder Open-Source-Lizenzen. Allgemeine Spielkonzepte und Marken Dritter beanspruchen wir nicht als unser ausschließliches Eigentum.`}),`
413`,(0,Y.jsx)(t.p,{children:`Du bist herzlich eingeladen, Links zu Rätseln und Screenshots deiner gelösten Spiele zu teilen. Diese Bedingungen gewähren jedoch kein Recht, die Website als konkurrierenden Dienst zu vervielfältigen, originale Inhalte massenhaft weiterzuverbreiten oder die Marke Tango Grid so zu nutzen, dass der Eindruck einer offiziellen Partnerschaft entsteht. Gesetzliche Schutzrechte und Schrankenbestimmungen bleiben hiervon unberührt.`}),`
414`,(0,Y.jsx)(t.h2,{children:`Feedback und Vorschläge`}),`
415`,(0,Y.jsx)(t.p,{children:`Reiche nur Nachrichten und Dateien ein, zu deren Weitergabe du berechtigt bist. Du behältst deine Rechte an deinen Einsendungen und räumst uns das Recht ein, diese zur Bearbeitung deiner Anfrage, Fehleranalyse, Beantwortung und Weiterentwicklung des Dienstes zu nutzen. Das Absenden von Feedback überträgt keine Eigentumsrechte an deinen personenbezogenen Daten und berechtigt nicht zu deren Veröffentlichung.`}),`
416`,(0,Y.jsxs)(t.p,{children:[`Bitte übermittle keine Passwörter, Zugangsdaten, vertrauliche Daten Dritter oder für deine Anfrage irrelevante Materialien. In unserer `,(0,Y.jsx)(t.a,{href:`/privacy-policy`,children:`Datenschutzerklärung`}),` erfährst du, wie Einsendungen und Kontodaten verarbeitet werden.`]}),`
417`,(0,Y.jsx)(t.h2,{children:`Drittanbieterdienste und Unabhängigkeit`}),`
418`,(0,Y.jsx)(t.p,{children:`Tango Grid ist unabhängig von LinkedIn und steht in keiner geschäftlichen Verbindung mit LinkedIn, wird nicht von LinkedIn gesponsert und nicht von LinkedIn unterstützt. Unsere täglichen Rätsel-Sets sind nicht die offiziellen LinkedIn-Tagesrätsel. Namen und Marken Dritter sind Eigentum der jeweiligen Inhaber.`}),`
419`,(0,Y.jsx)(t.p,{children:`Die Website kann Werbung und Verlinkungen zu externen Websites enthalten. Für diese Dienste Dritter gelten deren eigene Bedingungen und Datenschutzrichtlinien. Eine Werbeanzeige oder ein Link bedeutet keine Billigung des Anbieters; wir haben keinen Einfluss auf Vereinbarungen oder Käufe, die du mit Drittanbietern schließt.`}),`
420`,(0,Y.jsx)(t.h2,{children:`Verfügbarkeit und Haftungsgrenzen`}),`
421`,(0,Y.jsx)(t.p,{children:`Wir bemühen uns um ein nützliches, reibungsloses und unterhaltsames Rätselangebot, übernehmen jedoch keine Gewähr für ununterbrochenen Zugriff, fehlerfreie Rätsel oder Leitfäden, dauerhafte Verfügbarkeit bestimmter Spielfelder oder das Fortbestehen von Browser-Spielständen. Timer und Spielergebnisse dienen der Unterhaltung und begründen keine Gewinnansprüche oder finanziellen Gegenwerte.`}),`
422`,(0,Y.jsx)(t.p,{children:`Soweit gesetzlich zulässig, wird der Dienst im jeweils verfügbaren Zustand und ohne Zusicherung bestimmter Eigenschaften bereitgestellt. Wir haften nicht für mittelbare oder Folgeschäden, die aus der Nutzung oder der Unmöglichkeit der Nutzung des Dienstes entstehen, soweit ein solcher Haftungsausschluss rechtlich wirksam ist. Gesetzliche Verbraucherrechte und unabdingbare gesetzliche Haftungen bleiben unberührt.`}),`
423`,(0,Y.jsx)(t.h2,{children:`Änderungen und Kontakt`}),`
424`,(0,Y.jsx)(t.p,{children:`Wir können diese Bedingungen aktualisieren, wenn sich unser Angebot weiterentwickelt. Aktualisierte Bedingungen werden hier mit einem neuen Revisionsdatum veröffentlicht und gelten für die Zukunft, vorbehaltlich gesetzlich vorgeschriebener Hinweise. Wenn du den Dienst nicht weiter nutzen möchtest, kannst du die Nutzung jederzeit beenden und uns bezüglich deines Kontos kontaktieren.`}),`
425`,(0,Y.jsxs)(t.p,{children:[`Bei Support-Anfragen, inhaltlichen Hinweisen oder Fragen zu diesen Bedingungen schreibe bitte an `,(0,Y.jsx)(t.a,{href:`mailto:[email protected]`,children:`[email protected]`}),` oder besuche unsere `,(0,Y.jsx)(t.a,{href:`/contact`,children:`Kontaktseite`}),`.`]})]})}function kM(e={}){let{wrapper:t}={...$(),...e.components};return t?(0,Y.jsx)(t,{...e,children:(0,Y.jsx)(OM,{...e})}):OM(e)}var AM=S({default:()=>NM,meta:()=>jM}),jM={title:`Terms of Service`,description:`Terms of Service for playing Tango Grid, using an optional account, sharing puzzle links, submitting feedback, and accessing the website.`,updated_at:`2026-09-08`};function MM(e){let t={a:`a`,h2:`h2`,li:`li`,p:`p`,ul:`ul`,...$(),...e.components};return(0,Y.jsxs)(Y.Fragment,{children:[(0,Y.jsxs)(t.p,{children:[`These Terms of Service apply to your use of Tango Grid at tangogrid.com. By using the site, you agree to these terms. If you do not agree, please stop using the service. Questions can be sent to `,(0,Y.jsx)(t.a,{href:`mailto:[email protected]`,children:`[email protected]`}),`.`]}),`
426`,(0,Y.jsx)(t.h2,{children:`Using Tango Grid`}),`
427`,(0,Y.jsx)(t.p,{children:`Tango Grid provides free browser-based sun and moon logic puzzles and related guides. You may play for personal use and share links to puzzles and public pages. An account is not required to play.`}),`
428`,(0,Y.jsx)(t.p,{children:`You must be able to agree to these terms under the law that applies to you. If you are a minor, use the service with the permission and guidance of a parent or guardian where required.`}),`
429`,(0,Y.jsx)(t.p,{children:`Daily sets, practice puzzles, timed challenges, and archive dates depend on service and content availability. We may update puzzles, correct errors, change features, or temporarily interrupt access for maintenance or security reasons.`}),`
430`,(0,Y.jsx)(t.h2,{children:`Optional accounts`}),`
431`,(0,Y.jsx)(t.p,{children:`If you use Google sign-in, provide accurate account information and keep access to your Google account secure. Do not impersonate another person or use an account without permission. Contact us if you suspect unauthorised use of your Tango Grid account.`}),`
432`,(0,Y.jsx)(t.p,{children:`Accounts do not provide cloud synchronisation of game progress. Saves are stored in your current browser when storage is available. We cannot guarantee recovery of saves lost through cleared storage, private browsing, device changes, or browser failures.`}),`
433`,(0,Y.jsx)(t.h2,{children:`Fair and acceptable use`}),`
434`,(0,Y.jsx)(t.p,{children:`Do not:`}),`
435`,(0,Y.jsxs)(t.ul,{children:[`
436`,(0,Y.jsx)(t.li,{children:`Attempt to access accounts, private data, or systems without permission.`}),`
437`,(0,Y.jsx)(t.li,{children:`Disrupt the service, bypass security controls, overload its infrastru
437cture, or send abusive automated requests.`}),`
438`,(0,Y.jsx)(t.li,{children:`Submit unlawful, threatening, harassing, or deceptive material through feedback or contact channels.`}),`
439`,(0,Y.jsx)(t.li,{children:`Use the site to distribute malware, spam, or material that infringes another person's rights.`}),`
440`,(0,Y.jsx)(t.li,{children:`Misrepresent Tango Grid as an official LinkedIn service or claim an endorsement that does not exist.`}),`
441`]}),`
442`,(0,Y.jsx)(t.p,{children:`We may restrict access or suspend an account when reasonably necessary to address misuse, security risks, or legal obligations. You can contact us if you believe a restriction was made in error.`}),`
443`,(0,Y.jsx)(t.h2,{children:`Content and puzzle links`}),`
444`,(0,Y.jsx)(t.p,{children:`Tango Grid's original text, artwork, branding, and software are protected by applicable intellectual-property laws, subject to any relevant third-party or open-source licences. General puzzle ideas and third-party trademarks are not claimed as our exclusive property.`}),`
445`,(0,Y.jsx)(t.p,{children:`You are welcome to share puzzle links and screenshots of your play. These terms do not grant permission to reproduce the website as a competing service, redistribute its original content in bulk, or use Tango Grid branding in a way that implies an official partnership. Any rights you have under applicable law remain unaffected.`}),`
446`,(0,Y.jsx)(t.h2,{children:`Feedback and suggestions`}),`
447`,(0,Y.jsx)(t.p,{children:`Only submit messages and attachments that you have the right to share. You retain your rights in what you submit and allow us to use it as needed to review your request, respond, investigate issues, and improve the service. Submitting feedback does not transfer ownership of your personal information or authorise its public disclosure.`}),`
448`,(0,Y.jsxs)(t.p,{children:[`Please do not include credentials, private information about other people, or material unrelated to your request. See our `,(0,Y.jsx)(t.a,{href:`/privacy-policy`,children:`Privacy Policy`}),` for how submissions and account information are handled.`]}),`
449`,(0,Y.jsx)(t.h2,{children:`Third-party services and independence`}),`
450`,(0,Y.jsx)(t.p,{children:`Tango Grid is independent of LinkedIn and is not affiliated with, sponsored by, or endorsed by it. Our daily sets are not LinkedIn's official daily puzzles. Third-party names and trademarks belong to their respective owners.`}),`
451`,(0,Y.jsx)(t.p,{children:`The website may include advertising and links to external websites. Those services have their own terms and policies. An advertisement or external link does not mean we endorse the provider, and we do not control purchases or other arrangements you make with them.`}),`
452`,(0,Y.jsx)(t.h2,{children:`Availability and limitations`}),`
453`,(0,Y.jsx)(t.p,{children:`We aim to provide a useful, enjoyable puzzle service, but do not promise uninterrupted access, error-free puzzles or guides, permanent availability of any specific board, or preservation of browser saves. Timers and game results are for entertainment and do not carry prizes or financial value.`}),`
454`,(0,Y.jsx)(t.p,{children:`To the extent permitted by applicable law, the service is provided as available, without additional guarantees of fitness for a particular purpose. We are not responsible for indirect or consequential losses caused by use of, or inability to use, the service where the law permits that limitation. Nothing in these terms excludes liability or limits consumer rights that cannot lawfully be excluded or limited.`}),`
455`,(0,Y.jsx)(t.h2,{children:`Changes and contact`}),`
456`,(0,Y.jsx)(t.p,{children:`We may revise these terms as the service changes. Updated terms will be posted here with a revised date; changes apply prospectively, subject to any notice required by law. If you no longer wish to use the service, you may stop at any time and contact us about your account or personal information.`}),`
457`,(0,Y.jsxs)(t.p,{children:[`For support, content concerns, or questions about these terms, email `,(0,Y.jsx)(t.a,{href:`mailto:[email protected]`,children:`[email protected]`}),` or visit `,(0,Y.jsx)(t.a,{href:`/contact`,children:`Contact`}),`.`]})]})}function NM(e={}){let{wrapper:t}={...$(),...e.components};return t?(0,Y.jsx)(t,{...e,children:(0,Y.jsx)(MM,{...e})}):MM(e)}var PM=S({default:()=>LM,meta:()=>FM}),FM={title:`Términos del servicio`,description:`Términos del servicio para jugar en Tango Grid, uso de cuentas opcionales, compartir enlaces, envío de comentarios y acceso al sitio web.`,updated_at:`2026-09-21`};function IM(e){let t={a:`a`,h2:`h2`,li:`li`,p:`p`,ul:`ul`,...$(),...e.components};return(0,Y.jsxs)(Y.Fragment,{children:[(0,Y.jsxs)(t.p,{children:[`Estos Términos del servicio regulan el uso de Tango Grid en tangogrid.com. Al utilizar este sitio web, aceptas estos términos. Si no estás de acuerdo con ellos, te rogamos que dejes de utilizar el servicio. Puedes enviar tus consultas a `,(0,Y.jsx)(t.a,{href:`mailto:[email protected]`,children:`[email protected]`}),`.`]}),`
458`,(0,Y.jsx)(t.h2,{children:`Uso de Tango Grid`}),`
459`,(0,Y.jsx)(t.p,{children:`Tango Grid ofrece de forma gratuita rompecabezas lógicos de soles y lunas basados en navegador y guías explicativas relacionadas. Puedes jugar para tu disfrute personal y compartir enlaces a rompecabezas y páginas públicas. No es necesario crear una cuenta para jugar.`}),`
460`,(0,Y.jsx)(t.p,{children:`Debes tener capacidad legal para aceptar estos términos según las leyes que te sean aplicables. Si eres menor de edad, utiliza el servicio con la autorización y guía de tus padres o tutores legales cuando así lo exija la ley.`}),`
461`,(0,Y.jsx)(t.p,{children:`Los conjuntos diarios, los rompecabezas de práctica, los de
461safíos contrarreloj y las fechas del archivo dependen de la disponibilidad técnica del servicio y sus contenidos. Podemos actualizar rompecabezas, corregir erratas, modificar funciones o interrumpir temporalmente el acceso por motivos de mantenimiento o seguridad.`}),`
462`,(0,Y.jsx)(t.h2,{children:`Cuentas opcionales`}),`
463`,(0,Y.jsx)(t.p,{children:`Si utilizas el inicio de sesión con Google, proporciona información veraz y mantén protegido el acceso a tu cuenta de Google. No suplantes la identidad de otra persona ni utilices una cuenta ajena sin autorización. Notifícanos de inmediato si sospechas un uso no autorizado de tu cuenta en Tango Grid.`}),`
464`,(0,Y.jsx)(t.p,{children:`Las cuentas no proporcionan sincronización en la nube del progreso en las partidas. Las partidas guardadas se almacenan localmente en tu navegador actual siempre que el almacenamiento esté habilitado. No podemos garantizar la recuperación de partidas guardadas que se hayan perdido por el borrado de datos locales, el uso de pestañas de incógnito, cambios de dispositivo o fallos del navegador.`}),`
465`,(0,Y.jsx)(t.h2,{children:`Uso legítimo y aceptable`}),`
466`,(0,Y.jsx)(t.p,{children:`Te comprometes a no:`}),`
467`,(0,Y.jsxs)(t.ul,{children:[`
468`,(0,Y.jsx)(t.li,{children:`Intentar acceder sin autorización a cuentas, datos privados o sistemas del servicio.`}),`
469`,(0,Y.jsx)(t.li,{children:`Alterar el correcto funcionamiento del servicio, eludir medidas de seguridad, sobrecargar su infraestructura o enviar solicitudes automatizadas abusivas.`}),`
470`,(0,Y.jsx)(t.li,{children:`Enviar material ilícito, amenazante, difamatorio, acosador o engañoso a través del formulario de comentarios o canales de contacto.`}),`
471`,(0,Y.jsx)(t.li,{children:`Utilizar el sitio web para distribuir malware, spam o contenido que infrinja derechos de terceros.`}),`
472`,(0,Y.jsx)(t.li,{children:`Presentar de forma engañosa a Tango Grid como un servicio oficial de LinkedIn o afirmar una vinculación institucional o patrocinio inexistente.`}),`
473`]}),`
474`,(0,Y.jsx)(t.p,{children:`Podemos restringir el acceso o suspender una cuenta cuando sea razonablemente necesario para hacer frente a usos indebidos, riesgos de seguridad o requerimientos legales. Puedes contactar con nosotros si consideras que una restricción se produjo por error.`}),`
475`,(0,Y.jsx)(t.h2,{children:`Contenido y enlaces a rompecabezas`}),`
476`,(0,Y.jsx)(t.p,{children:`Los textos originales, ilustraciones, imagen de marca y código informático de Tango Grid están protegidos por las leyes de propiedad intelectual e industrial aplicables, sujeto a las licencias de terceros o de código abierto pertinentes. Las reglas abstractas de los juegos y las marcas comerciales de terceros no se reclaman como propiedad exclusiva nuestra.`}),`
477`,(0,Y.jsx)(t.p,{children:`Te animamos a compartir enlaces a rompecabezas y capturas de pantalla de tus partidas. Estos términos no otorgan autorización para duplicar el sitio web como un servicio competidor, redistribuir masivamente sus contenidos originales ni utilizar la marca Tango Grid sugiriendo una colaboración o patrocinio oficial. Tus derechos legales irrenunciables permanecen inalterados.`}),`
478`,(0,Y.jsx)(t.h2,{children:`Comentarios y sugerencias`}),`
479`,(0,Y.jsx)(t.p,{children:`Envía únicamente mensajes y archivos adjuntos sobre los cuales ostentes los derechos necesarios para compartirlos. Conservas tus derechos sobre lo que envíes y nos otorgas autorización para utilizarlo según resulte necesario para examinar tu solicitud, responderte, investigar incidencias y mejorar la plataforma. El envío de comentarios no transfiere la titularidad de tus datos personales ni autoriza su publicación indiscriminada.`}),`
480`,(0,Y.jsxs)(t.p,{children:[`Por favor, no incluyas contraseñas, datos confidenciales de terceros ni información no relacionada con tu consulta. Consulta nuestra `,(0,Y.jsx)(t.a,{href:`/privacy-policy`,children:`Política de privacidad`}),` para conocer el tratamiento de datos y solicitudes.`]}),`
481`,(0,Y.jsx)(t.h2,{children:`Servicios de terceros e independencia`}),`
482`,(0,Y.jsx)(t.p,{children:`Tango Grid es una plataforma independiente de LinkedIn y no está asociada, respaldada ni patrocinada por dicha entidad. Nuestros conjuntos diarios no corresponden a los rompecabezas diarios oficiales de LinkedIn. Los nombres y marcas registradas de terceros pertenecen a sus respectivos titulares.`}),`
483`,(0,Y.jsx)(t.p,{children:`El sitio web puede mostrar publicidad y enlaces a servicios externos. Dichos sitios de terceros se rigen por sus propios términos y políticas de privacidad. La inclusión de un anuncio o enlace externo no implica nuestra aprobación, y no controlamos las adquisiciones ni acuerdos que celebres con dichos terceros.`}),`
484`,(0,Y.jsx)(t.h2,{children:`Disponibilidad y limitaciones de responsabilidad`}),`
485`,(0,Y.jsx)(t.p,{children:`Nos esforzamos por ofrecer un servicio de pasatiempos útil y entretenido, pero no garantizamos la disponibilidad ininterrumpida del sitio, la ausencia absoluta de errores en tableros o guías, la permanencia de un tablero concreto ni la conservación indefinida de partidas en el navegador. Los temporizadores y resultados de partidas tienen fines lúdicos y no conceden premios ni valores económicos.`}),`
486`,(0,Y.jsx)(t.p,{children:`En la máxima medida permitida por la normativa aplicable, el servicio se presta "tal cual" y según disponibilidad, sin garantías accesorias de idoneidad para un fin específico. No asumimos responsabilidad por daños indirectos derivados del uso o de la imposibilidad de uso del sitio cuando la ley permita tal exclusión. Nada en estos términos limita los derechos de los consumidores que no puedan ser legalmente excluidos.`}),`
487`,(0,Y.jsx)(t.h2,{children:`Modificaciones y contacto`}),`
488`,(0,Y.jsx)(t.p,{children:`Podemos actualizar estos términos a medida que el servicio evolucione. Los términos actualizados se publicarán en esta página indicando la fecha de última revisión; las modificaciones surtirán efectos prospectivos. Si no estás conforme con los nuevos términos, puedes dejar de utilizar el servicio en cualquier momento y contactarnos en relación con tu cuenta.`}),`
489`,(0,Y.jsxs)(t.p,{children:[`Para consultas de soporte, dudas sobre contenidos o cuestiones relativas a estos términos, escribe a `,(0,Y.jsx)(t.a,{href:`mailto:[email protected]`,children:`[email protected]`}),` o visita nuestra página de `,(0,Y.jsx)(t.a,{href:`/contact`,children:`Contacto`}),`.`]})]})}function LM(e={}){let{wrapper:t}={...$(),...e.components};return t?(0,Y.jsx)(t,{...e,children:(0,Y.jsx)(IM,{...e})}):IM(e)}var RM=S({default:()=>VM,meta:()=>zM}),zM={title:`Conditions d’utilisation`,description:`Les conditions d’utilisation de Tango Grid : jeu gratuit, compte facultatif, partage de grilles, retours utilisateurs et accès au site.`,updated_at:`2026-09-13`};function BM(e){let t={a:`a`,h2:`h2`,li:`li`,p:`p`,ul:`ul`,...$(),...e.components};return(0,Y.jsxs)(Y.Fragment,{children:[(0,Y.jsxs)(t.p,{children:[`Ces conditions s’appliquent à l’utilisation de Tango Grid sur tangogrid.com. En utilisant le site, vous les acceptez. Si vous ne les acceptez pas, cessez d’utiliser le service. Pour toute question, écrivez à `,(0,Y.jsx)(t.a,{href:`mailto:[email protected]`,children:`[email protected]`}),`.`]}),`
490`,(0,Y.jsx)(t.h2,{children:`Utiliser Tango Grid`}),`
491`,(0,Y.jsx)(t.p,{children:`Tango Grid propose des grilles gratuites de logique soleil et lune dans le navigateur, ainsi que des guides. Vous pouvez jouer à titre personnel et partager les liens des grilles et pages publiques. Aucun compte n’est nécessaire pour jouer.`}),`
492`,(0,Y.jsx)(t.p,{children:`Vous devez pouvoir accepter ces conditions au regard du droit qui vous est applicable. Si vous êtes mineur, utilisez le service avec l’autorisation et l’accompagnement d’un parent ou responsable légal lorsque cela est requis.`}),`
493`,(0,Y.jsx)(t.p,{children:`Les séries quotidiennes, grilles d’entraînement, défis chronométrés et dates d’archives dépendent de la disponibilité du service et du contenu. Nous pouvons mettre à jour les grilles, corriger des erreurs, modifier des fonctionnalités ou interrompre temporairement l’accè
493s pour maintenance ou sécurité.`}),`
494`,(0,Y.jsx)(t.h2,{children:`Comptes facultatifs`}),`
495`,(0,Y.jsx)(t.p,{children:`Si vous utilisez la connexion Google, fournissez des informations exactes et protégez l’accès à votre compte Google. N’usurpez pas l’identité d’autrui et n’utilisez pas de compte sans autorisation. Contactez-nous si vous soupçonnez une utilisation non autorisée de votre compte Tango Grid.`}),`
496`,(0,Y.jsx)(t.p,{children:`Les comptes ne synchronisent pas la progression dans le cloud. Les sauvegardes restent dans le navigateur utilisé lorsque le stockage est disponible. Nous ne garantissons pas la récupération de sauvegardes perdues après effacement du stockage, navigation privée, changement d’appareil ou défaillance du navigateur.`}),`
497`,(0,Y.jsx)(t.h2,{children:`Utilisation loyale et acceptable`}),`
498`,(0,Y.jsx)(t.p,{children:`Il est interdit de :`}),`
499`,(0,Y.jsxs)(t.ul,{children:[`
500`,(0,Y.jsx)(t.li,{children:`Tenter d’accéder sans autorisation à des comptes, données privées ou systèmes.`}),`
501`,(0,Y.jsx)(t.li,{children:`Perturber le service, contourner ses protections, surcharger son infrastructure ou envoyer des requêtes automatisées abusives.`}),`
502`,(0,Y.jsx)(t.li,{children:`Transmettre des contenus illégaux, menaçants, harcelants ou trompeurs par les canaux de retour ou de contact.`}),`
503`,(0,Y.jsx)(t.li,{children:`Utiliser le site pour diffuser des logiciels malveillants, du spam ou des contenus portant atteinte aux droits d’autrui.`}),`
504`,(0,Y.jsx)(t.li,{children:`Présenter Tango Grid comme un service officiel de LinkedIn ou revendiquer une approbation inexistante.`}),`
505`]}),`
506`,(0,Y.jsx)(t.p,{children:`Nous pouvons restreindre l’accès ou suspendre un compte lorsque cela est raisonnablement nécessaire pour traiter un abus, un risque de sécurité ou une obligation légale. Contactez-nous si vous estimez qu’une restriction est erronée.`}),`
507`,(0,Y.jsx)(t.h2,{children:`Contenu et liens de grilles`}),`
508`,(0,Y.jsx)(t.p,{children:`Les textes originaux, illustrations, éléments de marque et logiciels de Tango Grid sont protégés par les lois applicables sur la propriété intellectuelle, sous réserve des licences tierces ou libres concernées. Nous ne revendiquons pas de propriété exclusive sur les idées générales de jeux ni sur les marques tierces.`}),`
509`,(0,Y.jsx)(t.p,{children:`Vous pouvez partager les liens de grilles et les captures de vos parties. Ces conditions n’autorisent pas la reproduction du site comme service concurrent, la redistribution massive de son contenu original ou l’utilisation de la marque Tango Grid laissant croire à un partenariat officiel. Vos droits prévus par la loi restent inchangés.`}),`
510`,(0,Y.jsx)(t.h2,{children:`Retours et suggestions`}),`
511`,(0,Y.jsx)(t.p,{children:`N’envoyez que des messages et pièces jointes que vous avez le droit de partager. Vous conservez vos droits sur ces éléments et nous autorisez à les utiliser dans la mesure nécessaire pour examiner votre demande, répondre, rechercher un problème et améliorer le service. Un retour ne transfère pas la propriété de vos données personnelles et n’autorise pas leur divulgation publique.`}),`
512`,(0,Y.jsxs)(t.p,{children:[`N’incluez pas d’identifiants secrets, de données privées d’autrui ni de contenus sans rapport avec votre demande. Consultez la `,(0,Y.jsx)(t.a,{href:`/privacy-policy`,children:`politique de confidentialité`}),` pour le traitement des messages et données de compte.`]}),`
513`,(0,Y.jsx)(t.h2,{children:`Services tiers et indépendance`}),`
514`,(0,Y.jsx)(t.p,{children:`Tango Grid est indépendant de LinkedIn, sans affiliation, sponsoring ni approbation de sa part. Nos séries quotidiennes ne sont pas les grilles officielles de LinkedIn. Les noms et marques tiers appartiennent à leurs titulaires respectifs.`}),`
515`,(0,Y.jsx)(t.p,{children:`Le site peut contenir des publicités et des liens externes. Ces services ont leurs propres conditions et politiques. Une publicité ou un lien ne vaut pas approbation du fournisseur ; nous ne contrôlons pas les achats ou autres accords que vous concluez avec lui.`}),`
516`,(0,Y.jsx)(t.h2,{children:`Disponibilité et limites`}),`
517`,(0,Y.jsx)(t.p,{children:`Nous cherchons à proposer un jeu utile et agréable, mais ne garantissons ni un accès ininterrompu, ni des grilles ou guides sans erreur, ni la disponibilité permanente d’une grille donnée, ni la conservation des sauvegardes locales. Les chronomètres et résultats servent au divertissement et ne donnent droit à aucun prix ni valeur financière.`}),`
518`,(0,Y.jsx)(t.p,{children:`Dans les limites autorisées par la loi applicable, le service est fourni selon sa dis
518ponibilité, sans garantie supplémentaire d’adéquation à un usage particulier. Nous ne répondons pas des pertes indirectes ou consécutives liées à son utilisation ou à l’impossibilité de l’utiliser lorsque la loi permet cette limitation. Ces conditions n’excluent aucune responsabilité et ne limitent aucun droit du consommateur qui ne puisse légalement être exclu ou limité.`}),`
519`,(0,Y.jsx)(t.h2,{children:`Modifications et contact`}),`
520`,(0,Y.jsx)(t.p,{children:`Nous pouvons réviser ces conditions lorsque le service évolue. La version mise à jour sera publiée ici avec une nouvelle date ; les modifications s’appliqueront pour l’avenir, sous réserve des notifications requises par la loi. Vous pouvez cesser d’utiliser le service à tout moment et nous contacter au sujet de votre compte ou de vos données.`}),`
521`,(0,Y.jsxs)(t.p,{children:[`Pour l’assistance, les questions de contenu ou ces conditions, écrivez à `,(0,Y.jsx)(t.a,{href:`mailto:[email protected]`,children:`[email protected]`}),` ou consultez `,(0,Y.jsx)(t.a,{href:`/contact`,children:`Contact`}),`.`]})]})}function VM(e={}){let{wrapper:t}={...$(),...e.components};return t?(0,Y.jsx)(t,{...e,children:(0,Y.jsx)(BM,{...e})}):BM(e)}var HM=S({default:()=>GM,meta:()=>UM}),UM={title:`Termos de Serviço`,description:`Termos de Serviço para jogar no Tango Grid, usar contas opcionais, compartilhar links de quebra-cabeças e acessar o site.`,updated_at:`2026-09-21`};function WM(e){let t={a:`a`,h2:`h2`,li:`li`,p:`p`,ul:`ul`,...$(),...e.components};return(0,Y.jsxs)(Y.Fragment,{children:[(0,Y.jsxs)(t.p,{children:[`Estes Termos de Serviço regem o uso do Tango Grid em tangogrid.com. Ao acessar ou usar o site, você concorda com estes termos. Se você não concordar, encerre o uso do serviço. Dúvidas podem ser encaminhadas para `,(0,Y.jsx)(t.a,{href:`mailto:[email protected]`,children:`[email protected]`}),`.`]}),`
522`,(0,Y.jsx)(t.h2,{children:`Uso do Tango Grid`}),`
523`,(0,Y.jsx)(t.p,{children:`O Tango Grid disponibiliza quebra-cabeças lógicos gratuitos de sol e lua no navegador e guias relacionados. Você pode jogar para uso pessoal e compartilhar links para tabuleiros e páginas públicas. Não é necessário criar uma conta para jogar.`}),`
524`,(0,Y.jsx)(t.p,{children:`Você deve ter capacidade civil legal para concordar com estes termos sob a legislação aplicável. Se for menor de idade, utilize o site com a autorização e supervisão de seus pais ou responsáveis legais.`}),`
525`,(0,Y.jsx)(t.p,{children:`Conjuntos diários, treinos livres, desafios cronometrados e arquivos dependem da disponibilidade do serviço. Podemos atualizar quebra-cabeças, corrigir erros, modificar funcionalidades ou interromper temporariamente o acesso para manutenções técnicas ou de segurança.`}),`
526`,(0,Y.jsx)(t.h2,{children:`Contas opcionais`}),`
527`,(0,Y.jsx)(t.p,{children:`Ao utilizar o login com o Google, forneça dados cadastrais precisos e mantenha sua conta Google segura. É proibido se passar por outra pessoa ou acessar contas alheias sem autorização. Avise-nos caso suspeite de qualquer uso não autorizado da sua conta no Tango Grid.`}),`
528`,(0,Y.jsx)(t.p,{children:`A criação de conta não oferece sincronização em nuvem do progresso dos jogos. Seus dados de jogo ficam armazenados no navegador atual onde você realizou a partida. Não podemos recuperar salvamentos perdidos por limpeza de dados locais, uso de modo anônimo, troca de aparelhos ou falhas de software.`}),`
529`,(0,Y.jsx)(t.h2,{children:`Regras de conduta e uso aceitável`}),`
530`,(0,Y.jsx)(t.p,{children:`Você concorda em não:`}),`
531`,(0,Y.jsxs)(t.ul,{children:[`
532`,(0,Y.jsx)(t.li,{children:`Tentar acessar sistemas, dados ou contas privadas sem autorização prévia.`}),`
533`,(0,Y.jsx)(t.li,{children:`Interferir no funcionamento do site, burlar proteções de segurança, sobrecarregar a infraestrutura ou enviar requisições automatizadas abusivas.`}),`
534`,(0,Y.jsx)(t.li,{children:`Enviar conteúdos ilegais, ofensivos, ameaçadores ou enganosos através dos canais de contato e feedback.`}),`
535`,(0,Y.jsx)(t.li,{children:`Distribuir malwares, spams ou qualquer material que viole direitos de propriedade intelectual de terceiros.`}),`
536`,(0,Y.jsx)(t.li,{children:`Divulgar o Tango Grid como um serviço oficial do LinkedIn ou sugerir qualquer vínculo de endosso ou parceria inexistente.`}),`
537`]}),`
538`,(0,Y.jsx)(t.p,{children:`Reservamo-nos o direito de restringir o acesso ou suspender contas quando necessário para coibir abusos, conter r
538iscos de segurança ou atender a determinações legais.`}),`
539`,(0,Y.jsx)(t.h2,{children:`Propriedade intelectual e links de partidas`}),`
540`,(0,Y.jsx)(t.p,{children:`Os textos originais, ilustrações, marcas visuais e códigos do Tango Grid são protegidos pela legislação de propriedade intelectual, ressalvadas eventuais licenças de código aberto e recursos de terceiros. Ideias gerais de quebra-cabeças e marcas registradas de terceiros pertencem aos seus respectivos titulares.`}),`
541`,(0,Y.jsx)(t.p,{children:`Fique à vontade para compartilhar links de quebra-cabeças e capturas de tela das suas vitórias. Estes termos não autorizam a reprodução em massa do conteúdo do site para criação de serviços concorrentes nem o uso da marca Tango Grid de maneira a sugerir parceria oficial.`}),`
542`,(0,Y.jsx)(t.h2,{children:`Feedbacks e sugestões`}),`
543`,(0,Y.jsx)(t.p,{children:`Envie apenas mensagens e materiais sobre os quais você detenha direitos de compartilhamento. Você mantém a titularidade sobre o que envia e nos concede autorização para analisar o relato, responder a você, investigar falhas e aprimorar o serviço. O envio de feedback não transfere a titularidade de dados pessoais nem autoriza sua divulgação pública.`}),`
544`,(0,Y.jsxs)(t.p,{children:[`Por favor, nunca inclua senhas, dados confidenciais de terceiros ou informações alheias à solicitação. Consulte nossa `,(0,Y.jsx)(t.a,{href:`/privacy-policy`,children:`Política de Privacidade`}),` para saber mais sobre o tratamento desses dados.`]}),`
545`,(0,Y.jsx)(t.h2,{children:`Serviços de terceiros e independência`}),`
546`,(0,Y.jsx)(t.p,{children:`O Tango Grid é um projeto independente e não possui vínculo, patrocínio ou endosso do LinkedIn. Nossos desafios diários não são os tabuleiros oficiais do LinkedIn. Marcas e denominações de terceiros mencionadas no site pertencem a seus respectivos titulares.`}),`
547`,(0,Y.jsx)(t.p,{children:`O site pode exibir anúncios e links para sites externos. Tais serviços possuem termos e políticas de privacidade próprios. A exibição de um link externo ou anúncio não constitui endosso do fornecedor, e não nos responsabilizamos por transações ou acordos realizados fora de nosso domínio.`}),`
548`,(0,Y.jsx)(t.h2,{children:`Disponibilidade e isenção de garantias`}),`
549`,(0,Y.jsx)(t.p,{children:`Buscamos oferecer um serviço de quebra-cabeças agradável e confiável, mas não garantimos funcionamento ininterrupto, ausência total de falhas em tabuleiros ou tutoriais, disponibilidade contínua de datas específicas ou preservação indefinida de dados locais do navegador. Cronômetros e pontuações têm propósito exclusivamente recreativo, não possuindo valor monetário ou direito a premiações.`}),`
550`,(0,Y.jsx)(t.p,{children:`Na extensão permitida pela legislação cabível, o serviço é fornecido no estado em que se encontra ("como está"), sem garantias adicionais. Não nos responsabilizamos por perdas indiretas decorrentes do uso ou impossibilidade de uso do site, ressalvados direitos do consumidor que não possam ser legalmente renunciados.`}),`
551`,(0,Y.jsx)(t.h2,{children:`Alterações destes termos`}),`
552`,(0,Y.jsx)(t.p,{children:`Podemos atualizar estes termos conforme as necessidades do serviço evoluam. Versões atualizadas serão publicadas nesta página com a nova data de revisão. O uso continuado do serviço após as alterações entrar em vigor implica concordância com os novos termos.`}),`
553`,(0,Y.jsxs)(t.p,{children:[`Para suporte, dúvidas ou questões relativas a estes termos, envie um e-mail para `,(0,Y.jsx)(t.a,{href:`mailto:[email protected]`,children:`[email protected]`}),` ou acesse nossa página de `,(0,Y.jsx)(t.a,{href:`/contact`,children:`Contato`}),`.`]})]})}function GM(e={}){let{wrapper:t}={...$(),...e.components};return t?(0,Y.jsx)(t,{...e,children:(0,Y.jsx)(WM,{...e})}):WM(e)}var KM=Object.assign({"/src/content/pages/about.de.mdx":bj,"/src/content/pages/about.en.mdx":wj,"/src/content/pages/about.es.mdx":Oj,"/src/content/pages/about.fr.mdx":Mj,"/src/content/pages/about.pt-br.mdx":Ij,"/src/content/pages/contact.de.mdx":Bj,"/src/content/pages/contact.en.mdx":Wj,"/src/content/pages/contact.es.mdx":Jj,"/src/content/pages/contact.fr.mdx":Qj,"/src/content/pages/contact.pt-br.mdx":nM,"/src/content/pages/privacy-policy.de.mdx":oM,"/src/content/pages/privacy-policy.en.mdx":uM,"/src/content/pages/privacy-policy.es.mdx":mM,"/src/content/pages/privacy-policy.fr.mdx":vM,"/src/content/pages/privacy-policy.pt-br.mdx":SM,"/src/content/pages/terms-of-service.de.mdx":EM,"/src/content/pages/terms-of-service.en.mdx":AM,"/src/content/pages/terms-of-service.es.mdx":PM,"/src/content/pages/terms-of-service.fr.mdx":RM,"/src/content/pages/terms-of-service.pt-br.mdx":HM});function qM(e){return de.includes(e)}function JM(){let e=ue();return qM(e)?e:`en`}function YM(e,t){return KM[`/src/content/pages/${e}.${t}.mdx`]??null}function XM(e){return{loader:()=>{let t=JM(),n=YM(e,t);if(!n)throw me();return{meta:n.meta,slug:e,locale:t}},head:({loaderData:e})=>{if(!e)return{};let{meta:t,locale:n,slug:r}=e;return Fk({title:t.title,description:t.description,path:`/${r}`,locale:n,imageAlt:Pi()})},component:ZM}}function ZM(){let{meta:e,slug:t,locale:n}=be({strict:!1}),r=YM(t,n).default;return(0,Y.jsxs)(Y.Fragment,{children:[(0,Y.jsx)(PA,{id:`${t}-jsonld`,data:JA({title:e.title,description:e.description,path:`/${t}`,locale:n,pageType:t===`about`?`AboutPage`:t===`contact`?`ContactPage`:`WebPage`,dateModified:e.updated_at})}),(0,Y.jsxs)(`article`,{children:[(0,Y.jsxs)(`header`,{className:`mb-6 border-b border-border pb-5`,children:[(0,Y.jsx)(`h1`,{className:`text-3xl font-semibold tracking-tight text-foreground md:text-4xl`,children:e.heading??e.title}),(0,Y.jsx)(`p`,{className:`mt-2 text-sm text-muted-foreground`,children:e.description}),(0,Y.jsxs)(`p`,{className:`mt-2 text-xs text-muted-foreground`,children:[zr(),`: `,e.updated_at]})]}),(0,Y.jsx)(`div`,{className:`text-[15px] leading-7 text-foreground/90`,children:(0,Y.jsx)(r,{})})]})]})}var QM=H(`/(pages)/terms-of-service`)({...XM(`terms-of-service`)}),$M=H(`/(pages)/strategy`)(hj(`strategy`,{title:()=>Qs(),description:()=>al()},lj)),eN=H(`/(pages)/rules`)(hj(`rules`,{title:()=>on(),description:()=>jt()},oj)),tN=H(`/(pages)/privacy-policy`)({...XM(`privacy-policy`)}),nN=H(`/(pages)/linkedin-tango`)(hj(`linkedin-tango`,{title:()=>en(),description:()=>ji()},mj)),rN=H(`/(pages)/how-to-play`)(hj(`how-to-play`,{title:()=>ar(),description:()=>Jn()},ij)),iN=H(`/(pages)/how-puzzles-are-made`)(hj(`how-puzzles-are-made`,{title:()=>us(),description:()=>Fe()},pj)),aN=H(`/(pages)/contact`)({...XM(`contact`)}),oN=H(`/(pages)/clue-patterns`)(hj(`clue-patterns`,{title:()=>js(),description:()=>eo()},dj)),sN=H(`/(pages)/board-sizes`)(hj(`board-sizes`,{title:()=>vl(),description:()=>xa()},fj)),cN=H(`/(pages)/beginners-guide`)(hj(`beginners-guide`,{title:()=>qs(),description:()=>$c()},cj)),lN=H(`/(pages)/about`)({...XM(`about`)}),uN=H(`/(auth)/verify-email`)({head:()=>gu(_u.signIn.title,_u.meta.signInDescription),component:l_(()=>Zv(()=>import(`./verify-email-B6v3Vn4b.js`),[]),`component`)}),dN=H(`/(auth)/sign-up`)({head:()=>gu(_u.signIn.title,_u.meta.signInDescription),component:l_(()=>Zv(()=>import(`./sign-up-B6v3Vn4b.js`),[]),`component`)}),fN=/^\/(?:sign-in|sign-up|verify-email|forgot-password|reset-password)(?:[/?#]|$)/;function pN(e,t=`/`){if(!e)return t;let n=e;try{n=decodeURIComponent(n)}catch{return t}let r=[...n].some(e=>e.charCodeAt(0)<=31);return!n.startsWith(`/`)||n.startsWith(`//`)||n.includes(`\\`)||r||fN.test(n)||de.some(e=>n.startsWith(`/${e}/`)&&fN.test(n.slice(e.length+1)))?t:n}function mN(e){let t=oe(new URL(pN(e),`https://auth-callback.invalid`));return`${t.pathname}${t.search}${t.hash}`}function hN(e=`/`){return typeof window>`u`?e:pN(new URLSearchParams(window.location.search).get(`callbackUrl`),e)}function gN(){let{data:e,isPending:t}=yu();return t?{status:`pending`,user:null}:e?.user?{status:`signed-in`,user:{id:e.user.id,name:e.user.name,email:e.user.email,emailVerified:e.user.emailVerified,image:e.user.image}}:{status:`signed-out`,user:null}}function _N({callbackPath:e,googleLabel:t=_u.providers.google}){let n=pN(e),[r,i]=(0,J.useState)(``),[a,o]=(0,J.useState)(null);async function s(){if(a===null){i(``),o(`google`);try{(await vu.signIn.social({provider:`google`,callbackURL:mN(n)})).error&&i(_u.signIn.failed)}catch{i(_u.signIn.failed)}finally{o(null)}}}return(0,Y.jsxs)(`div`,{className:`space-y-4`,children:[r?(0,Y.jsx)(`div`,{role:`alert`,className:`rounded-xl bg-destructive/10 px-3 py-2.5 text-sm text-destructive`,children:r}):null,(0,Y.jsxs)(Zc,{type:`button`,variant:`outline`,className:`h-10 w-full`,disabled:a!==null,onClick:s,children:[(0,Y.jsx)(bu,{}),t]})]})}function vN({className:e,size:t=`default`,...n}){return(0,Y.jsx)(`div`,{"data-slot":`card`,"data-size":t,className:fe(`group/card flex flex-col gap-6 rounded-xl border bg-card py-6 text-card-foreground shadow-sm data-[size=sm]:gap-3 data-[size=sm]:py-3`,e),...n})}function yN({className:e,...t}){return(0,Y.jsx)(`div`,{"data-slot":`card-header`,className:fe(`group/card-header @container/card-header grid auto-rows-min grid-rows-[auto_auto] items-start gap-1.5 px-6 group-data-[size=sm]/card:px-3 has-data-[slot=card-action]:grid-cols-[1fr_auto] [.border-b]:pb-6 group-data-[size=sm]/card:[.border-b]:pb-3`,e),...t})}function bN({className:e,...t}){return(0,Y.jsx)(`div`,{"data-slot":`card-title`,className:fe(`leading-none font-semibold group-data-[size=sm]/card:text-sm`,e),...t})}function xN({className:e,...t}){return(0,Y.jsx)(`div`,{"data-slot":`card-description`,className:fe(`text-sm text-muted-foreground`,e),...t})}function SN({className:e,...t}){return(0,Y.jsx)(`div`,{"data-slot":`card-content`,className:fe(`px-6 group-data-[size=sm]/card:px-3`,e),...t})}function CN({title:e,description:t,children:n}){return(0,Y.jsx)(`main`,{className:`bg-background flex min-h-svh items-center justify-center px-4 py-10 sm:px-6`,children:(0,Y.jsxs)(`div`,{className:`w-full max-w-sm`,children:[(0,Y.jsxs)(V,{href:`/`,"aria-label":_u.brandHome,className:`mx-auto mb-6 flex w-fit items-center gap-2.5 rounded-full px-4 py-2 font-display text-2xl font-bold whitespace-nowrap outline-none transition-colors hover:bg-card/70 focus-visible:ring-3 focus-visible:ring-ring/50`,children:[(0,Y.jsx)(`img`,{src:`/favicon.svg`,alt:``,width:`40`,height:`40`,className:`size-10 shrink-0`}),(0,Y.jsx)(`span`,{children:Se.app_name})]}),(0,Y.jsxs)(vN,{className:`bg-card/90 shadow-xl shadow-amber-950/5 backdrop-blur-sm`,children:[(0,Y.jsxs)(yN,{className:`text-center`,children:[(0,Y.jsx)(bN,{className:`font-display text-xl font-bold`,children:e}),t?(0,Y.jsx)(xN,{children:t}):null]}),(0,Y.jsx)(SN,{children:n})]})]})})}function wN(){return(0,Y.jsx)(CN,{title:_u.loading,children:(0,Y.jsxs)(`div`,{className:`space-y-3`,"aria-busy":`true`,children:[(0,Y.jsx)(`div`,{className:`h-10 animate-pulse rounded-xl bg-muted motion-reduce:animate-none`}),(0,Y.jsx)(`div`,{className:`h-10 animate-pulse rounded-xl bg-muted motion-reduce:animate-none`})]})})}function TN(){let e=gN(),[t,n]=(0,J.useState)(null);return(0,J.useEffect)(()=>n(mN(hN())),[]),(0,J.useEffect)(()=>{e.status===`signed-in`&&t!==null&&window.location.assign(t)}
553,[t,e.status]),t===null||e.status===`pending`||e.status===`signed-in`?(0,Y.jsx)(wN,{}):(0,Y.jsx)(CN,{title:_u.signIn.title,children:(0,Y.jsx)(_N,{callbackPath:t})})}var EN=H(`/(auth)/sign-in`)({head:()=>gu(_u.signIn.title,_u.meta.signInDescription),component:TN}),DN=H(`/(auth)/reset-password`)({head:()=>gu(_u.signIn.title,_u.meta.signInDescription),component:l_(()=>Zv(()=>import(`./reset-password-B6v3Vn4b.js`),[]),`component`)}),ON=H(`/(auth)/forgot-password`)({head:()=>gu(_u.signIn.title,_u.meta.signInDescription),component:l_(()=>Zv(()=>import(`./forgot-password-B6v3Vn4b.js`),[]),`component`)}),kN=H(`/unlimited/$size/`)({loader:async({params:e})=>{let t=await Hk({data:{size:e.size}});if(!t)throw Error(`missing puzzle`);return t},staleTime:0,preloadStaleTime:0,remountDeps:({params:e})=>e.size,head:({params:e})=>Fk({title:Cr({size:e.size}),description:rr({size:e.size}),path:`/unlimited/${e.size}`,canonicalPath:`/unlimited`,locale:ue(),imageAlt:Pi()}),component:l_(()=>Zv(()=>import(`./_size.index-BWesbF_U.js`),__vite__mapDeps([19,1,2,3,10,11,13,14])),`component`)}),AN=H(`/unlimited/$size/$levelId`)({loader:async({params:e})=>{if(!pA(e.size,e.levelId))throw me();let t=await Hk({data:{size:e.size,levelId:e.levelId}});if(!t)throw me();return t},staleTime:1/0,preloadStaleTime:1/0,head:({params:e})=>Fk({title:Pe({size:e.size,id:e.levelId}),description:ys({size:e.size,id:e.levelId}),path:`/unlimited/${e.size}/${e.levelId}`,canonicalPath:`/unlimited`,locale:ue(),imageAlt:Pi()}),component:l_(()=>Zv(()=>import(`./_size._levelId-JsnBCPDD.js`),__vite__mapDeps([20,1,2,3,10,11,13,14])),`component`)}),jN=Ik.update({id:`/profile`,path:`/profile`,getParentRoute:()=>Ak}),MN=Lk.update({id:`/feedback`,path:`/feedback`,getParentRoute:()=>Ak}),NN=Rk.update({id:`/(pages)`,getParentRoute:()=>Ak}),PN=zk.update({id:`/(auth)`,getParentRoute:()=>Ak}),FN=Uk.update({id:`/`,path:`/`,getParentRoute:()=>Ak}),IN=Wk.update({id:`/unlimited/`,path:`/unlimited/`,getParentRoute:()=>Ak}),LN=Gk.update({id:`/timed/`,path:`/timed/`,getParentRoute:()=>Ak}),RN=Kk.update({id:`/blog/`,path:`/blog/`,getParentRoute:()=>Ak}),zN=oA.update({id:`/archive/`,path:`/archive/`,getParentRoute:()=>Ak}),BN=gA.update({id:`/unlimited/$size`,path:`/unlimited/$size`,getParentRoute:()=>Ak}),VN=_A.update({id:`/blog/$slug`,path:`/blog/$slug`,getParentRoute:()=>Ak}),HN=vA.update({id:`/archive/$date`,path:`/archive/$date`,getParentRoute:()=>Ak}),UN=gj.update({id:`/what-is-tango-game`,path:`/what-is-tango-game`,getParentRoute:()=>NN}),WN=QM.update({id:`/terms-of-service`,path:`/terms-of-service`,getParentRoute:()=>NN}),GN=$M.update({id:`/strategy`,path:`/strategy`,getParentRoute:()=>NN}),KN=eN.update({id:`/rules`,path:`/rules`,getParentRoute:()=>NN}),qN=tN.update({id:`/privacy-policy`,path:`/privacy-policy`,getParentRoute:()=>NN}),JN=nN.update({id:`/linkedin-tango`,path:`/linkedin-tango`,getParentRoute:()=>NN}),YN=rN.update({id:`/how-to-play`,path:`/how-to-play`,getParentRoute:()=>NN}
553),XN=iN.update({id:`/how-puzzles-are-made`,path:`/how-puzzles-are-made`,getParentRoute:()=>NN}),ZN=aN.update({id:`/contact`,path:`/contact`,getParentRoute:()=>NN}),QN=oN.update({id:`/clue-patterns`,path:`/clue-patterns`,getParentRoute:()=>NN}),$N=sN.update({id:`/board-sizes`,path:`/board-sizes`,getParentRoute:()=>NN}),eP=cN.update({id:`/beginners-guide`,path:`/beginners-guide`,getParentRoute:()=>NN}),tP=lN.update({id:`/about`,path:`/about`,getParentRoute:()=>NN}),nP=uN.update({id:`/verify-email`,path:`/verify-email`,getParentRoute:()=>PN}),rP=dN.update({id:`/sign-up`,path:`/sign-up`,getParentRoute:()=>PN}),iP=EN.update({id:`/sign-in`,path:`/sign-in`,getParentRoute:()=>PN}),aP=DN.update({id:`/reset-password`,path:`/reset-password`,getParentRoute:()=>PN}),oP=ON.update({id:`/forgot-password`,path:`/forgot-password`,getParentRoute:()=>PN}),sP=kN.update({id:`/`,path:`/`,getParentRoute:()=>BN}),cP=AN.update({id:`/$levelId`,path:`/$levelId`,getParentRoute:()=>BN}),lP={authForgotPasswordRoute:oP,authResetPasswordRoute:aP,authSignInRoute:iP,authSignUpRoute:rP,authVerifyEmailRoute:nP},uP=PN._addFileChildren(lP),dP={pagesAboutRoute:tP,pagesBeginnersGuideRoute:eP,pagesBoardSizesRoute:$N,pagesCluePatternsRoute:QN,pagesContactRoute:ZN,pagesHowPuzzlesAreMadeRoute:XN,pagesHowToPlayRoute:YN,pagesLinkedinTangoRoute:JN,pagesPrivacyPolicyRoute:qN,pagesRulesRoute:KN,pagesStrategyRoute:GN,pagesTermsOfServiceRoute:WN,pagesWhatIsTangoGameRoute:UN},fP=NN._addFileChildren(dP),pP={UnlimitedSizeLevelIdRoute:cP,UnlimitedSizeIndexRoute:sP},mP={IndexRoute:FN,authRouteRoute:uP,pagesRouteRoute:fP,FeedbackRoute:MN,ProfileRoute:jN,ArchiveDateRoute:HN,BlogSlugRoute:VN,UnlimitedSizeRoute:BN._addFileChildren(pP),ArchiveIndexRoute:zN,BlogIndexRoute:RN,TimedIndexRoute:LN,UnlimitedIndexRoute:IN},hP=Ak._addFileChildren(mP);function gP(){return C_({routeTree:hP,defaultPreload:`intent`,scrollRestoration:!0,rewrite:{input:({url:e})=>B(e),output:({url:e})=>oe(e)}})}async function _P(){let e=await gP(),t=[];return window.__TSS_START_OPTIONS__={serializationAdapters:t},t.push(jg),e.options.serializationAdapters&&t.push(...e.options.serializationAdapters),e.update({basepath:``,serializationAdapters:t}),e.stores.matchesId.get().length||await Lg(e),e}var vP=_P;async function yP(){let e=await vP();return window.$_TSR?.h(),e}var bP;function xP(){return bP||=yP(),(0,Y.jsx)(zg,{promise:bP,children:e=>(0,Y.jsx)(E_,{router:e})})}var SP=wu();(0,J.startTransition)(()=>{(0,SP.hydrateRoot)(document,(0,Y.jsx)(J.StrictMode,{children:(0,Y.jsx)(xP,{})}))});export{Kv as $,PO as A,YS as B,qk as C,Hk as D,Uk as E,cO as F,ky as G,Yb as H,eO as I,wy as J,Oy as K,nO as L,FO as M,IO as N,ak as O,AO as P,Zv as Q,rO as R,tA as S,Wk as T,Jb as U,_x as V,db as W,Sy as X,Cy as Y,xy as Z,hA as _,gN as a,X_ as at,oA as b,PA as c,ev as ct,AA as d,$_ as dt,Iv as et,DA as f,q_ as ft,sA as g,v_ as gt,vA as h,D_ as ht,_N as i,Q_ as it,LO as j,kO as k,XA as l,lv as lt,OA as m,W_ as mt,kN as n,Sv as nt,pN as o,mv as ot,xA as p,G_ as pt,Ty as q,TN as r,xv as rt,yj as s,tv as st,AN as t,Tv as tt,YA as u,yv as ut,mA as v,Gk as w,Qk as x,dA as y,tO 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.