const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/SearchModal-DBYSK44L.js","assets/rolldown-runtime-9r-HBx0o.js","assets/dist-CaxqqS6p.js","assets/tanstack-router-U0H7bmeq.js","assets/tanstack-query-BttgOCQn.js","assets/icons-xTj2hkG8.js","assets/CodeBlock-Cnsrksfg.js","assets/chunk-BO2N2NFS-DXVfreg1.js","assets/FrameworkSelect-B205hmmL.js","assets/frameworks-Bb4VvUZg.js","assets/users.functions-CeXclkLY.js","assets/InlineCode-46Z1RrUI.js","assets/NavbarAuthControls-BxvnTsXr.js","assets/AuthComponents-Bm946uWW.js","assets/shared-constants-yNCBtlN_.js","assets/workshops-BPVi_z_p.js","assets/Footer-DXYm8Pa-.js","assets/MaintainerCard-leU6_c6k.js","assets/maintainers-CMJw1EMs.js","assets/CheckCircleIcon-COr3-rNi.js","assets/terms-DYsFK8OD.js","assets/tenets-DA8rsFqm.js","assets/support-CtJAZz24.js","assets/sponsors-embed-DYl57CPj.js","assets/SponsorPack-v5oa4Kr6.js","assets/shop-zYHvwKhR.js","assets/privacy-DK9HMUJ4.js","assets/partners-embed-BMVQfeMY.js","assets/PartnersGrid-Bl13V7Dq.js","assets/usePartnerPlacementContext-COo3TXOB.js","assets/partners-B71ECczn.js","assets/paid-support-B4hmb7op.js","assets/merch-CYGE2bFN.js","assets/maintainers-WRWslbUq.js","assets/login-CofJHJCP.js","assets/libraries-esMgR-zK.js","assets/-libraries-utils-BuWn-Ezs.js","assets/learn-DVkPBbpQ.js","assets/feedback-leaderboard-cYJX7ry9.js","assets/PaginationControls-BFIL58TD.js","assets/TableComponents-BoOB0AjC.js","assets/docFeedback-BhAImTVy.js","assets/docFeedback.functions-Cls3P4xg.js","assets/explore-BfxSECAb.js","assets/ethos-CW7MeuZK.js","assets/dashboard-C73YPXgi.js","assets/builder-D4OvoT3s.js","assets/brand-guide-DTIAedSZ.js","assets/ads-Dn-WFFhj.js","assets/account-CteGHML3.js","assets/_library-k4y6mhkz.js","assets/LibraryLayout-siCiZdfi.js","assets/RightRail-Ch1eDPbU.js","assets/blog.functions-C-Dso7yf.js","assets/useLocalStorage-Dv95Bn_M.js","assets/useMediaQuery-BnmJWsxP.js","assets/route-BKjEG8-4.js","assets/routes-DfNLmXGz.js","assets/useNpmDownloadCounter-jgTPLjDE.js","assets/showcase-CGwFHzo7.js","assets/FilterComponents-Cx4eDeg0.js","assets/useDebouncer-DFwQa-3J.js","assets/event-client-CV4ssJpW.js","assets/store-Cj3QexLS.js","assets/ShowcaseCard-DsFhpOyI.js","assets/showcases-BIFiQq7K.js","assets/showcase.functions-uyeWwjwl.js","assets/showcase.shared-DuL077_9.js","assets/stack._category-BPPXucsf.js","assets/LibraryWordmark-D0mVusu8.js","assets/submit-JaguF73p.js","assets/ShowcaseSubmitForm-DTQmb13X.js","assets/ImageUpload-BeKIUT1A.js","assets/FormInput-CszeacPC.js","assets/_id-4M68_Eqy.js","assets/authorize-DGbgfYfG.js","assets/oauthClient.functions-FIH36liO.js","assets/libraries_._framework-B2o8UsId.js","assets/popup-success-6ad1Jkgy.js","assets/cli-DPSOR0sq.js","assets/shop.index-DRJaiUuD.js","assets/shop.search-BoOgZZg2.js","assets/Input-C1J7Khj_.js","assets/shop.cart-yvB8CnpN.js","assets/shop._handle-28XgwbFY.js","assets/partners.index-DERmgLdG.js","assets/CogsIcon-osYyPD3T.js","assets/form-DOI6pAi9.js","assets/query-BmcUKVrW.js","assets/ranger-C-awne6P.js","assets/table-D6HGOfUN.js","assets/virtual-73QaFyqM.js","assets/partners.railway-Cv0JoWRc.js","assets/partners._partner-DlgMWVw1.js","assets/builder.index-CDkOxKwe.js","assets/builder.docs-CgHAfvr3.js","assets/blog.index-dY7BBIdY.js","assets/BlogAuthorFilter-CJumjqdz.js","assets/CoverFallback-EotkFd__.js","assets/LibrariesWidget-CmwSq0IQ.js","assets/blog._-C_dNDDvm.js","assets/Markdown-wTGvPoof.js","assets/Tabs-BC46kENO.js","assets/MarkdownContent-2sfhOUHC.js","assets/DocFeedbackNote-C151cVBM.js","assets/DocTitle-mCgcS-Jp.js","assets/account-blB728NR.js","assets/activity.functions-1hdezbJU.js","assets/submissions-QbQ9dyYN.js","assets/Badge-DO43t8Wd.js","assets/notes-DlXHYeh9.js","assets/integrations-BOUgWoez.js","assets/feedback-DfeGUg6-.js","assets/route-CxfU1EqQ.js","assets/useMounted-CCoGH5DW.js","assets/admin-q81aN9yB.js","assets/audit.functions-V41AxZXJ.js","assets/users-ywY40P1N.js","assets/lib-CCp_w9hn.js","assets/useAdminGuard-Bcel4cbN.js","assets/AdminEmptyState-CEtKcoLP.js","assets/UserAvatar-Bupto3SF.js","assets/useToggleArray-DxA1D2j6.js","assets/mutations-BJ149iec.js","assets/roles.functions-BNgKKZro.js","assets/npm-stats-D_gmgM6-.js","assets/dates-B9yzeJ5v.js","assets/stats-admin.functions-BpjGRNKO.js","assets/logins-D9zm9j7j.js","assets/StatsCard-BvqW6c5O.js","assets/intent-Biob6cXR.js","assets/github-stats-CEQO2fYG.js","assets/docs-Do77sB01.js","assets/audit-BkUkIqCZ.js","assets/npm-qxD-IlNC.js","assets/BaselineSection-DSD1e6A-.js","assets/useDebouncedValue-CV-ebLIG.js","assets/LatestBucketNavigator-DD3wmowJ.js","assets/sort-C2qmIcl-.js","assets/ascending-wjEHhxfr.js","assets/npmQueryOptions-BhxkzVVe.js","assets/registry-C2pvwKbc.js","assets/SkillSparklineFallback-BN9JFGDV.js","assets/intent-pXFkTr8y.js","assets/embed-CzkiJr_s.js","assets/_packages-BmSu8qzw.js","assets/edit._id-Bt10hfYE.js","assets/_packageName-BXPMqhBN.js","assets/shop.products._handle-wI-gb8Jd.js","assets/shop.policies._handle-Xieve-4w.js","assets/shop.pages._handle-Rawc1TcL.js","assets/shop.collections._handle-DjyOnkjH.js","assets/_version-DTWkWzsz.js","assets/showcases.index-IPO2rOBp.js","assets/roles.index-ChLtT2ni.js","assets/notes.index-Dn8fyXmf.js","assets/docFeedback.shared-Cl0gujQ_.js","assets/feedback.index-C3P08eUe.js","assets/showcases_._id-DeQEMFVf.js","assets/roles._roleId-Cp7VjjbT.js","assets/feedback_._id-foxbxr8k.js","assets/users._userId-CWg_v48T.js","assets/_packageName.index-BIjtoP_V.js","assets/_packageName._skillName-BfyuDrL4.js","assets/CopyPageDropdown-C9TgygWG.js","assets/workflow._version.index-Lk-LYdf1.js","assets/LandingCopyPromptButton-BIIsAUWF.js","assets/LandingPageGad-uhcEt580.js","assets/SponsorSection-4xjJciel.js","assets/virtual._version.index-B_ys5uCw.js","assets/codeExamples-CRIOrP2O.js","assets/LandingEcosystemProof-CfkVBhvO.js","assets/usePrefersReducedMotion-CF1Wew56.js","assets/table._version.index-D3iNVuas.js","assets/store._version.index-BdLPeh5W.js","assets/start._version.index-JHi-KFRj.js","assets/ApplicationStarter-B3UMyhpE.js","assets/Icons-q42Z9Dpx.js","assets/router._version.index-f7v_jqoh.js","assets/ranger._version.index-B5GjFVMK.js","assets/query._version.index-8ZyosKM9.js","assets/pacer._version.index-CXEDefm_.js","assets/intent._version.index-CJvYKOEe.js","assets/SkillSparkline-Bn7I2Qpd.js","assets/PlotContainer-CEQ-LQUo.js","assets/linear-Bv59j8pE.js","assets/defaultLocale-D-xpkrE1.js","assets/init-BgbRgeLn.js","assets/time-Ca3hkloI.js","assets/band-BkYRCfWv.js","assets/ordinal-CweWqN7a.js","assets/step-BTJv-4bB.js","assets/Tableau10-CFFIkjoK.js","assets/hotkeys._version.index-CYFuPVt9.js","assets/form._version.index-CD1MU3u2.js","assets/devtools._version.index-DWG7lxRh.js","assets/db._version.index-D7mzsfuV.js","assets/config._version.index-CyDLkulw.js","assets/cli._version.index-C_cW4qMK.js","assets/ai._version.index-BoDezv49.js","assets/_version.docs-CXgbac2U.js","assets/_version.docs.npm-stats-p0Sd3OLU.js","assets/DocContainer-Q_IYBJBY.js","assets/_version.docs.contributors-Co5IFUxI.js","assets/_version.docs.community-resources-BHyDYiz3.js","assets/docs-desr2Wnq.js","assets/_version.docs.blog-rnhE6ydB.js","assets/_version.docs._-CgjB1C4G.js","assets/Doc-DXV4cjbc.js","assets/_version.docs.framework.index-DIZRz_I8.js","assets/_version.docs.framework._framework.index-FvZBZZ5z.js","assets/_version.docs.framework._framework._-BZs2D9Eq.js","assets/_version.docs.framework._framework.examples._-DBM136SE.js","assets/shared-DL3H0Hsz.js"])))=>i.map(i=>d[i]); import{r as mb}from"./rolldown-runtime-9r-HBx0o.js";import{$r as N,Ai as V,Bi as Ka,Ci as qt,Di as ql,Dn as hb,E as gb,F as u0,Gt as vb,Ii as fe,Ir as Pi,It as yb,Li as bs,Nr as d0,Nt as bb,Oi as Fe,Ot as p0,R as Ud,Ri as zt,Si as ne,T as wb,Ti as _b,Tn as kb,U as jd,Un as Sb,Wr as xb,Y as Eb,Zt as qd,_n as Tb,ar as Ib,bi as Cb,bn as Rb,c as ac,ci as fa,dr as f0,ei as m0,fi as Z,h as $b,ji as H,ki as Pb,l as Ab,n as h0,ni as rr,nr as Lb,pi as ws,pt as Nb,si as Db,ti as Ob,tn as Mb,tr as g0,un as v0,wi as U,wt as Fb,yi as Bt,z as Gl}from"./icons-xTj2hkG8.js";import{A as zb,B as ie,C as Vb,D as Ai,E as Bb,F as Hb,G as ma,H as Ub,I as Gd,J as y0,K as Wd,L as J,M as jb,N as qb,O as Gb,P as Wb,R as Zb,S as Kb,T as Yb,U as Xb,V as Jb,W as Qb,_ as ew,a as Wl,c as Hc,d as R,f as tw,g as rw,i as b0,j as nw,k as aw,m as w0,n as ow,o as iw,p as $e,q as sw,r as cw,s as lw,t as uw,u as $,w as dw,x as pw,y as fw,z as _0}from"./tanstack-router-U0H7bmeq.js";import{d as p,f as _,i as _s,n as vo,o as ha,s as mw,t as ga}from"./tanstack-query-BttgOCQn.js";import{a as hw,c as gw,i as vw,l as yw,n as bw,o as ww,p as _w,r as kw,s as Sw}from"./shared-constants-yNCBtlN_.js";var xw="__TSS_CONTEXT",Uc=Symbol.for("TSS_SERVER_FUNCTION"),Zd=Symbol.for("TSS_SERVER_FUNCTION_FACTORY"),k0="application/x-tss-framed",mr={JSON:0,CHUNK:1,END:2,ERROR:3},DK=`${k0}; v=1`,Ew=/;\s*v=(\d+)/;function Tw(e){const t=e.match(Ew);return t?parseInt(t[1],10):void 0}function Iw(e){const t=Tw(e);if(t!==void 0&&t!==1)throw new Error(`Incompatible framed protocol version: server=${t}, client=1. Please ensure client and server are using compatible versions.`)}var Zl=()=>window.__TSS_START_OPTIONS__;function Cw(){return[...Zl()?.serializationAdapters?.map(Wb)??[],...nw]}var Kd=new TextDecoder,Rw=new Uint8Array(0),Yd=16*1024*1024,Xd=32*1024*1024,Jd=1024,Qd=1e5;function $w(e){const t=new Map,r=new Map,n=new Set;let a=!1,o=null,i=0,s;const c=new ReadableStream({start(u){s=u},cancel(){a=!0;try{o?.cancel()}catch{}t.forEach(u=>{try{u.error(new Error("Framed response cancelled"))}catch{}}),t.clear(),r.clear(),n.clear()}});function l(u){const f=r.get(u);if(f)return f;if(n.has(u))return new ReadableStream({start(h){h.close()}});if(r.size>=Jd)throw new Error(`Too many raw streams in framed response (max ${Jd})`);const m=new ReadableStream({start(h){t.set(u,h)},cancel(){n.add(u),t.delete(u),r.delete(u)}});return r.set(u,m),m}function d(u){return l(u),t.get(u)}return(async()=>{const u=e.getReader();o=u;const f=[];let m=0;function h(){if(m<9)return null;const v=f[0];if(v.length>=9)return{type:v[0],streamId:(v[1]<<24|v[2]<<16|v[3]<<8|v[4])>>>0,length:(v[5]<<24|v[6]<<16|v[7]<<8|v[8])>>>0};const b=new Uint8Array(9);let I=0,y=9;for(let S=0;S0;S++){const w=f[S],C=Math.min(w.length,y);b.set(w.subarray(0,C),I),I+=C,y-=C}return{type:b[0],streamId:(b[1]<<24|b[2]<<16|b[3]<<8|b[4])>>>0,length:(b[5]<<24|b[6]<<16|b[7]<<8|b[8])>>>0}}function g(v){if(v===0)return Rw;const b=new Uint8Array(v);let I=0,y=v;for(;y>0&&f.length>0;){const S=f[0];if(!S)break;const w=Math.min(S.length,y);b.set(S.subarray(0,w),I),I+=w,y-=w,w===S.length?f.shift():f[0]=S.subarray(w)}return m-=v,b}try{for(;;){const{done:v,value:b}=await u.read();if(a||v)break;if(b){if(m+b.length>Xd)throw new Error(`Framed response buffer exceeded ${Xd} bytes`);for(f.push(b),m+=b.length;;){const I=h();if(!I)break;const{type:y,streamId:S,length:w}=I;if(y!==mr.JSON&&y!==mr.CHUNK&&y!==mr.END&&y!==mr.ERROR)throw new Error(`Unknown frame type: ${y}`);if(y===mr.JSON){if(S!==0)throw new Error("Invalid JSON frame streamId (expected 0)")}else if(S===0)throw new Error("Invalid raw frame streamId (expected non-zero)");if(w>Yd)throw new Error(`Frame payload too large: ${w} bytes (max ${Yd})`);const C=9+w;if(mQd)throw new Error(`Too many frames in framed response (max ${Qd})`);g(9);const T=g(w);switch(y){case mr.JSON:try{s.enqueue(Kd.decode(T))}catch{}break;case mr.CHUNK:{const E=d(S);E&&E.enqueue(T);break}case mr.END:{const E=d(S);if(n.add(S),E){try{E.close()}catch{}t.delete(S)}break}case mr.ERROR:{const E=d(S);if(n.add(S),E){const L=Kd.decode(T);E.error(new Error(L)),t.delete(S)}break}}}}}if(m!==0)throw new Error("Incomplete frame at end of framed response");try{s.close()}catch{}t.forEach(v=>{try{v.close()}catch{}}),t.clear()}catch(v){try{s.error(v)}catch{}t.forEach(b=>{try{b.error(v)}catch{}}),t.clear()}finally{try{u.releaseLock()}catch{}o=null}})(),{getOrCreateStream:l,jsonChunks:c}}var Ya=null,Pw=null;function pn(e){Pw=e}async function jc(e){e.length>0&&await Promise.allSettled(e)}var Aw=Object.prototype.hasOwnProperty;function S0(e){for(const t in e)if(Aw.call(e,t))return!0;return!1}async function Lw(e,t,r){Ya||(Ya=Cw());const n=t[0],a=n.fetch??r,o=n.data instanceof FormData?"formData":"payload",i=n.headers?new Headers(n.headers):new Headers;if(i.set("x-tsr-serverFn","true"),o==="payload"&&i.set("accept",`${k0}, application/x-ndjson, application/json`),n.method==="GET"){if(o==="formData")throw new Error("FormData is not supported with GET requests");const c=await x0(n);if(c!==void 0){const l=Xb({payload:c});e.includes("?")?e+=`&${l}`:e+=`?${l}`}}let s;if(n.method==="POST"){const c=await Nw(n);c?.contentType&&i.set("content-type",c.contentType),s=c?.body}return await Dw(async()=>a(e,{method:n.method,headers:i,signal:n.signal,body:s}))}async function x0(e){let t=!1;const r={};if(e.data!==void 0&&(t=!0,r.data=e.data),e.context&&S0(e.context)&&(t=!0,r.context=e.context),t)return E0(r)}async function E0(e){return JSON.stringify(await Promise.resolve(Hb(e,{plugins:Ya})))}async function Nw(e){if(e.data instanceof FormData){let r;return e.context&&S0(e.context)&&(r=await E0(e.context)),r!==void 0&&e.data.set(xw,r),{body:e.data}}const t=await x0(e);if(t)return{body:t,contentType:"application/json"}}async function Dw(e){let t;try{t=await e()}catch(n){if(n instanceof Response)t=n;else throw console.log(n),n}if(t.headers.get("x-tss-raw")==="true")return t;const r=t.headers.get("content-type");if(r||Wd(),t.headers.get("x-tss-serialized")){let n;if(r.includes("application/x-tss-framed")){if(Iw(r),!t.body)throw new Error("No response body for framed response");const{getOrCreateStream:a,jsonChunks:o}=$w(t.body),i=[jb(a),...Ya||[]],s=new Map;n=await Ow({jsonStream:o,onMessage:c=>Gd(c,{refs:s,plugins:i}),onError(c,l){console.error(c,l)}})}else if(r.includes("application/json")){const a=await t.json(),o=[];pn(o);try{n=Gd(a,{plugins:Ya})}finally{pn(null)}await jc(o)}if(n||Wd(),n instanceof Error)throw n;return n}if(r.includes("application/json")){const n=await t.json(),a=_0(n);if(a)throw a;if(Qb(n))throw n;return n}if(!t.ok)throw new Error(await t.text());return t}async function Ow({jsonStream:e,onMessage:t,onError:r}){const n=e.getReader(),{value:a,done:o}=await n.read();if(o||!a)throw new Error("Stream ended before first object");const i=JSON.parse(a);let s=!1;const c=(async()=>{try{for(;;){const{value:u,done:f}=await n.read();if(f)break;if(u)try{const m=[];pn(m);try{t(JSON.parse(u))}finally{pn(null)}await jc(m)}catch(m){r?.(`Invalid JSON: ${u}`,m)}}}catch(u){s||r?.("Stream processing error:",u)}})();let l;const d=[];pn(d);try{l=t(i)}catch(u){throw pn(null),s=!0,n.cancel().catch(()=>{}),u}return pn(null),await jc(d),Promise.resolve(l).catch(()=>{s=!0,n.cancel().catch(()=>{})}),c.finally(()=>{try{n.releaseLock()}catch{}}),l}function Le(e){const t="/_serverFn/"+e;return Object.assign((...a)=>{const o=Zl()?.serverFns?.fetch;return Lw(t,a,o??fetch)},{url:t,serverFnMeta:{id:e},[Uc]:!0})}var Mw=qb({key:"$TSS/serverfn",test:e=>typeof e!="function"||!(Uc in e)?!1:!!e[Uc],toSerializable:({serverFnMeta:e})=>({functionId:e.id}),fromSerializable:({functionId:e})=>Le(e)}),K=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__,_e=globalThis,Li="10.47.0";function Cn(){return ks(_e),_e}function ks(e){const t=e.__SENTRY__=e.__SENTRY__||{};return t.version=t.version||"10.47.0",t[Li]=t["10.47.0"]||{}}function va(e,t,r=_e){const n=r.__SENTRY__=r.__SENTRY__||{},a=n[Li]=n["10.47.0"]||{};return a[e]||(a[e]=t())}var Fw=["debug","info","warn","error","log","assert","trace"],zw="Sentry Logger ",Ni={};function Rn(e){if(!("console"in _e))return e();const t=_e.console,r={},n=Object.keys(Ni);n.forEach(a=>{const o=Ni[a];r[a]=t[a],t[a]=o});try{return e()}finally{n.forEach(a=>{t[a]=r[a]})}}function Vw(){Yl().enabled=!0}function Bw(){Yl().enabled=!1}function T0(){return Yl().enabled}function Hw(...e){Kl("log",...e)}function Uw(...e){Kl("warn",...e)}function jw(...e){Kl("error",...e)}function Kl(e,...t){K&&T0()&&Rn(()=>{_e.console[e](`${zw}[${e}]:`,...t)})}function Yl(){return K?va("loggerSettings",()=>({enabled:!1})):{enabled:!1}}var M={enable:Vw,disable:Bw,isEnabled:T0,log:Hw,warn:Uw,error:jw},I0=50;var ep=/\(error: (.*)\)/,tp=/captureMessage|captureException/;function C0(...e){const t=e.sort((r,n)=>r[0]-n[0]).map(r=>r[1]);return(r,n=0,a=0)=>{const o=[],i=r.split(` `);for(let s=n;s1024&&(c=c.slice(0,1024));const l=ep.test(c)?c.replace(ep,"$1"):c;if(!l.match(/\S*Error: /)){for(const d of t){const u=d(l);if(u){o.push(u);break}}if(o.length>=I0+a)break}}return Gw(o.slice(a))}}function qw(e){return Array.isArray(e)?C0(...e):e}function Gw(e){if(!e.length)return[];const t=Array.from(e);return/sentryWrapped/.test(Uo(t).function||"")&&t.pop(),t.reverse(),tp.test(Uo(t).function||"")&&(t.pop(),tp.test(Uo(t).function||"")&&t.pop()),t.slice(0,I0).map(r=>({...r,filename:r.filename||Uo(t).filename,function:r.function||"?"}))}function Uo(e){return e[e.length-1]||{}}var oc="";function _r(e){try{return!e||typeof e!="function"?oc:e.name||oc}catch{return oc}}function rp(e){const t=e.exception;if(t){const r=[];try{return t.values.forEach(n=>{n.stacktrace.frames&&r.push(...n.stacktrace.frames)}),r}catch{return}}}function R0(e){return"__v_isVNode"in e&&e.__v_isVNode?"[VueVNode]":"[VueViewModel]"}var pi={},np={};function Jr(e,t){pi[e]=pi[e]||[],pi[e].push(t)}function Qr(e,t){if(!np[e]){np[e]=!0;try{t()}catch(r){K&&M.error(`Error while instrumenting ${e}`,r)}}}function Tt(e,t){const r=e&&pi[e];if(r)for(const n of r)try{n(t)}catch(a){K&&M.error(`Error while triggering instrumentation handler. Type: ${e} Name: ${_r(n)} Error:`,a)}}var ic=null;function $0(e){const t="error";Jr(t,e),Qr(t,Ww)}function Ww(){ic=_e.onerror,_e.onerror=function(e,t,r,n,a){return Tt("error",{column:n,error:a,line:r,msg:e,url:t}),ic?ic.apply(this,arguments):!1},_e.onerror.__SENTRY_INSTRUMENTED__=!0}var sc=null;function P0(e){const t="unhandledrejection";Jr(t,e),Qr(t,Zw)}function Zw(){sc=_e.onunhandledrejection,_e.onunhandledrejection=function(e){return Tt("unhandledrejection",e),sc?sc.apply(this,arguments):!0},_e.onunhandledrejection.__SENTRY_INSTRUMENTED__=!0}var A0=Object.prototype.toString;function Ss(e){switch(A0.call(e)){case"[object Error]":case"[object Exception]":case"[object DOMException]":case"[object WebAssembly.Exception]":return!0;default:return kr(e,Error)}}function ya(e,t){return A0.call(e)===`[object ${t}]`}function L0(e){return ya(e,"ErrorEvent")}function ap(e){return ya(e,"DOMError")}function Kw(e){return ya(e,"DOMException")}function yr(e){return ya(e,"String")}function Xl(e){return typeof e=="object"&&e!==null&&"__sentry_template_string__"in e&&"__sentry_template_values__"in e}function ea(e){return e===null||Xl(e)||typeof e!="object"&&typeof e!="function"}function Xa(e){return ya(e,"Object")}function xs(e){return typeof Event<"u"&&kr(e,Event)}function Yw(e){return typeof Element<"u"&&kr(e,Element)}function Xw(e){return ya(e,"RegExp")}function yo(e){return!!(e?.then&&typeof e.then=="function")}function Jw(e){return Xa(e)&&"nativeEvent"in e&&"preventDefault"in e&&"stopPropagation"in e}function kr(e,t){try{return e instanceof t}catch{return!1}}function N0(e){return!!(typeof e=="object"&&e!==null&&(e.__isVue||e._isVue||e.__v_isVNode))}function Jl(e){return typeof Request<"u"&&kr(e,Request)}var Ql=_e,Qw=80;function Rt(e,t={}){if(!e)return"";try{let r=e;const n=5,a=[];let o=0,i=0;const s=" > ",c=3;let l;const d=Array.isArray(t)?t:t.keyAttrs,u=!Array.isArray(t)&&t.maxStringLength||Qw;for(;r&&o++1&&i+a.length*c+l.length>=u));)a.push(l),i+=l.length,r=r.parentNode;return a.reverse().join(s)}catch{return""}}function e_(e,t){const r=e,n=[];if(!r?.tagName)return"";if(Ql.HTMLElement&&r instanceof HTMLElement&&r.dataset){if(r.dataset.sentryComponent)return r.dataset.sentryComponent;if(r.dataset.sentryElement)return r.dataset.sentryElement}n.push(r.tagName.toLowerCase());const a=t?.length?t.filter(o=>r.getAttribute(o)).map(o=>[o,r.getAttribute(o)]):null;if(a?.length)a.forEach(o=>{n.push(`[${o[0]}="${o[1]}"]`)});else{r.id&&n.push(`#${r.id}`);const o=r.className;if(o&&yr(o)){const i=o.split(/\s+/);for(const s of i)n.push(`.${s}`)}}for(const o of["aria-label","type","name","title","alt"]){const i=r.getAttribute(o);i&&n.push(`[${o}="${i}"]`)}return n.join("")}function bo(){try{return Ql.document.location.href}catch{return""}}function D0(e){if(!Ql.HTMLElement)return null;let t=e;const r=5;for(let n=0;n"}}function ip(e){return typeof e=="object"&&e!==null?Object.fromEntries(Object.entries(e)):{}}function t_(e){const t=Object.keys(M0(e));return t.sort(),t[0]?t.join(", "):"[object has no keys]"}var Vn;function wo(e){if(Vn!==void 0)return Vn?Vn(e):e();const t=Symbol.for("__SENTRY_SAFE_RANDOM_ID_WRAPPER__"),r=_e;return t in r&&typeof r[t]=="function"?(Vn=r[t],Vn(e)):(Vn=null,e())}function Vr(){return wo(()=>Math.random())}function _o(){return wo(()=>Date.now())}function qc(e,t=0){return typeof e!="string"||t===0||e.length<=t?e:`${e.slice(0,t)}...`}function sp(e,t){if(!Array.isArray(e))return"";const r=[];for(let n=0;nfi(e,n,r))}function r_(){const e=_e;return e.crypto||e.msCrypto}var cc;function n_(){return Vr()*16}function It(e=r_()){try{if(e?.randomUUID)return wo(()=>e.randomUUID()).replace(/-/g,"")}catch{}return cc||(cc="10000000100040008000100000000000"),cc.replace(/[018]/g,t=>(t^(n_()&15)>>t/4).toString(16))}function F0(e){return e.exception?.values?.[0]}function fn(e){const{message:t,event_id:r}=e;if(t)return t;const n=F0(e);return n?n.type&&n.value?`${n.type}: ${n.value}`:n.type||n.value||r||"":r||""}function Gc(e,t,r){const n=e.exception=e.exception||{},a=n.values=n.values||[],o=a[0]=a[0]||{};o.value||(o.value=t||""),o.type||(o.type=r||"Error")}function ta(e,t){const r=F0(e);if(!r)return;const n={type:"generic",handled:!0},a=r.mechanism;if(r.mechanism={...n,...a,...t},t&&"data"in t){const o={...a?.data,...t.data};r.mechanism.data=o}}function cp(e){if(a_(e))return!0;try{ht(e,"__sentry_captured__",!0)}catch{}return!1}function a_(e){try{return e.__sentry_captured__}catch{}}var z0=1e3;function $n(){return _o()/z0}function o_(){const{performance:e}=_e;if(!e?.now||!e.timeOrigin)return $n;const t=e.timeOrigin;return()=>(t+wo(()=>e.now()))/z0}var lp;function Je(){return(lp??(lp=o_()))()}var lc=null;function i_(){const{performance:e}=_e;if(!e?.now)return;const t=3e5,r=wo(()=>e.now()),n=_o(),a=e.timeOrigin;if(typeof a=="number"&&Math.abs(a+r-n)l_(r)};return e&&ra(r,e),r}function ra(e,t={}){if(t.user&&(!e.ipAddress&&t.user.ip_address&&(e.ipAddress=t.user.ip_address),!e.did&&!t.did&&(e.did=t.user.id||t.user.email||t.user.username)),e.timestamp=t.timestamp||Je(),t.abnormal_mechanism&&(e.abnormal_mechanism=t.abnormal_mechanism),t.ignoreDuration&&(e.ignoreDuration=t.ignoreDuration),t.sid&&(e.sid=t.sid.length===32?t.sid:It()),t.init!==void 0&&(e.init=t.init),!e.did&&t.did&&(e.did=`${t.did}`),typeof t.started=="number"&&(e.started=t.started),e.ignoreDuration)e.duration=void 0;else if(typeof t.duration=="number")e.duration=t.duration;else{const r=e.timestamp-e.started;e.duration=r>=0?r:0}t.release&&(e.release=t.release),t.environment&&(e.environment=t.environment),!e.ipAddress&&t.ipAddress&&(e.ipAddress=t.ipAddress),!e.userAgent&&t.userAgent&&(e.userAgent=t.userAgent),typeof t.errors=="number"&&(e.errors=t.errors),t.status&&(e.status=t.status)}function c_(e,t){let r={};t?r={status:t}:e.status==="ok"&&(r={status:"exited"}),ra(e,r)}function l_(e){return{sid:`${e.sid}`,init:e.init,started:new Date(e.started*1e3).toISOString(),timestamp:new Date(e.timestamp*1e3).toISOString(),status:e.status,errors:e.errors,did:typeof e.did=="number"||typeof e.did=="string"?`${e.did}`:void 0,duration:e.duration,abnormal_mechanism:e.abnormal_mechanism,attrs:{release:e.release,environment:e.environment,ip_address:e.ipAddress,user_agent:e.userAgent}}}function ko(e,t,r=2){if(!t||typeof t!="object"||r<=0)return t;if(e&&Object.keys(t).length===0)return e;const n={...e};for(const a in t)Object.prototype.hasOwnProperty.call(t,a)&&(n[a]=ko(n[a],t[a],r-1));return n}function Sr(){return It()}function br(){return It().substring(16)}var Wc="_sentrySpan";function Ja(e,t){t?ht(e,Wc,t):delete e[Wc]}function Di(e){return e[Wc]}var u_=100,bn=class Zc{constructor(){this._notifyingListeners=!1,this._scopeListeners=[],this._eventProcessors=[],this._breadcrumbs=[],this._attachments=[],this._user={},this._tags={},this._attributes={},this._extra={},this._contexts={},this._sdkProcessingMetadata={},this._propagationContext={traceId:Sr(),sampleRand:Vr()}}clone(){const t=new Zc;return t._breadcrumbs=[...this._breadcrumbs],t._tags={...this._tags},t._attributes={...this._attributes},t._extra={...this._extra},t._contexts={...this._contexts},this._contexts.flags&&(t._contexts.flags={values:[...this._contexts.flags.values]}),t._user=this._user,t._level=this._level,t._session=this._session,t._transactionName=this._transactionName,t._fingerprint=this._fingerprint,t._eventProcessors=[...this._eventProcessors],t._attachments=[...this._attachments],t._sdkProcessingMetadata={...this._sdkProcessingMetadata},t._propagationContext={...this._propagationContext},t._client=this._client,t._lastEventId=this._lastEventId,t._conversationId=this._conversationId,Ja(t,Di(this)),t}setClient(t){this._client=t}setLastEventId(t){this._lastEventId=t}getClient(){return this._client}lastEventId(){return this._lastEventId}addScopeListener(t){this._scopeListeners.push(t)}addEventProcessor(t){return this._eventProcessors.push(t),this}setUser(t){return this._user=t||{email:void 0,id:void 0,ip_address:void 0,username:void 0},this._session&&ra(this._session,{user:t}),this._notifyScopeListeners(),this}getUser(){return this._user}setConversationId(t){return this._conversationId=t||void 0,this._notifyScopeListeners(),this}setTags(t){return this._tags={...this._tags,...t},this._notifyScopeListeners(),this}setTag(t,r){return this.setTags({[t]:r})}setAttributes(t){return this._attributes={...this._attributes,...t},this._notifyScopeListeners(),this}setAttribute(t,r){return this.setAttributes({[t]:r})}removeAttribute(t){return t in this._attributes&&(delete this._attributes[t],this._notifyScopeListeners()),this}setExtras(t){return this._extra={...this._extra,...t},this._notifyScopeListeners(),this}setExtra(t,r){return this._extra={...this._extra,[t]:r},this._notifyScopeListeners(),this}setFingerprint(t){return this._fingerprint=t,this._notifyScopeListeners(),this}setLevel(t){return this._level=t,this._notifyScopeListeners(),this}setTransactionName(t){return this._transactionName=t,this._notifyScopeListeners(),this}setContext(t,r){return r===null?delete this._contexts[t]:this._contexts[t]=r,this._notifyScopeListeners(),this}setSession(t){return t?this._session=t:delete this._session,this._notifyScopeListeners(),this}getSession(){return this._session}update(t){if(!t)return this;const r=typeof t=="function"?t(this):t,{tags:n,attributes:a,extra:o,user:i,contexts:s,level:c,fingerprint:l=[],propagationContext:d,conversationId:u}=(r instanceof Zc?r.getScopeData():Xa(r)?t:void 0)||{};return this._tags={...this._tags,...n},this._attributes={...this._attributes,...a},this._extra={...this._extra,...o},this._contexts={...this._contexts,...s},i&&Object.keys(i).length&&(this._user=i),c&&(this._level=c),l.length&&(this._fingerprint=l),d&&(this._propagationContext=d),u&&(this._conversationId=u),this}clear(){return this._breadcrumbs=[],this._tags={},this._attributes={},this._extra={},this._user={},this._contexts={},this._level=void 0,this._transactionName=void 0,this._fingerprint=void 0,this._session=void 0,this._conversationId=void 0,Ja(this,void 0),this._attachments=[],this.setPropagationContext({traceId:Sr(),sampleRand:Vr()}),this._notifyScopeListeners(),this}addBreadcrumb(t,r){const n=typeof r=="number"?r:u_;if(n<=0)return this;const a={timestamp:$n(),...t,message:t.message?qc(t.message,2048):t.message};return this._breadcrumbs.push(a),this._breadcrumbs.length>n&&(this._breadcrumbs=this._breadcrumbs.slice(-n),this._client?.recordDroppedEvent("buffer_overflow","log_item")),this._notifyScopeListeners(),this}getLastBreadcrumb(){return this._breadcrumbs[this._breadcrumbs.length-1]}clearBreadcrumbs(){return this._breadcrumbs=[],this._notifyScopeListeners(),this}addAttachment(t){return this._attachments.push(t),this}clearAttachments(){return this._attachments=[],this}getScopeData(){return{breadcrumbs:this._breadcrumbs,attachments:this._attachments,contexts:this._contexts,tags:this._tags,attributes:this._attributes,extra:this._extra,user:this._user,level:this._level,fingerprint:this._fingerprint||[],eventProcessors:this._eventProcessors,propagationContext:this._propagationContext,sdkProcessingMetadata:this._sdkProcessingMetadata,transactionName:this._transactionName,span:Di(this),conversationId:this._conversationId}}setSDKProcessingMetadata(t){return this._sdkProcessingMetadata=ko(this._sdkProcessingMetadata,t,2),this}setPropagationContext(t){return this._propagationContext=t,this}getPropagationContext(){return this._propagationContext}captureException(t,r){const n=r?.event_id||It();if(!this._client)return K&&M.warn("No client configured on scope - will not capture exception!"),n;const a=new Error("Sentry syntheticException");return this._client.captureException(t,{originalException:t,syntheticException:a,...r,event_id:n},this),n}captureMessage(t,r,n){const a=n?.event_id||It();if(!this._client)return K&&M.warn("No client configured on scope - will not capture message!"),a;const o=n?.syntheticException??new Error(t);return this._client.captureMessage(t,r,{originalException:t,syntheticException:o,...n,event_id:a},this),a}captureEvent(t,r){const n=t.event_id||r?.event_id||It();return this._client?(this._client.captureEvent(t,{...r,event_id:n},this),n):(K&&M.warn("No client configured on scope - will not capture event!"),n)}_notifyScopeListeners(){this._notifyingListeners||(this._notifyingListeners=!0,this._scopeListeners.forEach(t=>{t(this)}),this._notifyingListeners=!1)}};function d_(){return va("defaultCurrentScope",()=>new bn)}function p_(){return va("defaultIsolationScope",()=>new bn)}var up=e=>e instanceof Promise&&!e[V0],V0=Symbol("chained PromiseLike"),f_=(e,t,r)=>{const n=e.then(a=>(t(a),a),a=>{throw r(a),a});return up(n)&&up(e)?n:m_(e,n)},m_=(e,t)=>{let r=!1;for(const n in e){if(n in t)continue;r=!0;const a=e[n];typeof a=="function"?Object.defineProperty(t,n,{value:(...o)=>a.apply(e,o),enumerable:!0,configurable:!0,writable:!0}):t[n]=a}return r&&Object.assign(t,{[V0]:!0}),t},h_=class{constructor(e,t){let r;e?r=e:r=new bn;let n;t?n=t:n=new bn,this._stack=[{scope:r}],this._isolationScope=n}withScope(e){const t=this._pushScope();let r;try{r=e(t)}catch(n){throw this._popScope(),n}return yo(r)?f_(r,()=>this._popScope(),()=>this._popScope()):(this._popScope(),r)}getClient(){return this.getStackTop().client}getScope(){return this.getStackTop().scope}getIsolationScope(){return this._isolationScope}getStackTop(){return this._stack[this._stack.length-1]}_pushScope(){const e=this.getScope().clone();return this._stack.push({client:this.getClient(),scope:e}),e}_popScope(){return this._stack.length<=1?!1:!!this._stack.pop()}};function na(){const e=ks(Cn());return e.stack=e.stack||new h_(d_(),p_())}function g_(e){return na().withScope(e)}function v_(e,t){const r=na();return r.withScope(()=>(r.getStackTop().scope=e,t(e)))}function dp(e){return na().withScope(()=>e(na().getIsolationScope()))}function y_(){return{withIsolationScope:dp,withScope:g_,withSetScope:v_,withSetIsolationScope:(e,t)=>dp(t),getCurrentScope:()=>na().getScope(),getIsolationScope:()=>na().getIsolationScope()}}function ba(e){const t=ks(e);return t.acs?t.acs:y_()}var B0;function b_(){return B0?.()}function w_(){return B0!==void 0}function Pe(){return ba(Cn()).getCurrentScope()}function sr(){return ba(Cn()).getIsolationScope()}function __(){return va("globalScope",()=>new bn)}function tu(...e){const t=ba(Cn());if(e.length===2){const[r,n]=e;return r?t.withSetScope(r,n):t.withScope(n)}return t.withScope(e[0])}function ke(){return Pe().getClient()}function k_(e){const t=b_();if(t)return{trace_id:t.traceId,span_id:t.spanId};const{traceId:r,parentSpanId:n,propagationSpanId:a}=e.getPropagationContext(),o={trace_id:r,span_id:a||br()};return n&&(o.parent_span_id=n),o}var Et="sentry.source",S_="sentry.sample_rate",x_="sentry.previous_trace_sample_rate",or="sentry.op",ze="sentry.origin",Oi="sentry.idle_span_finish_reason",So="sentry.measurement_unit",xo="sentry.measurement_value",pp="sentry.custom_span_name",H0="sentry.profile_id",Eo="sentry.exclusive_time",E_="sentry.link.type",T_="gen_ai.conversation.id";function I_(e){if(e<400&&e>=100)return{code:1};if(e>=400&&e<500)switch(e){case 401:return{code:2,message:"unauthenticated"};case 403:return{code:2,message:"permission_denied"};case 404:return{code:2,message:"not_found"};case 409:return{code:2,message:"already_exists"};case 413:return{code:2,message:"failed_precondition"};case 429:return{code:2,message:"resource_exhausted"};case 499:return{code:2,message:"cancelled"};default:return{code:2,message:"invalid_argument"}}if(e>=500&&e<600)switch(e){case 501:return{code:2,message:"unimplemented"};case 503:return{code:2,message:"unavailable"};case 504:return{code:2,message:"deadline_exceeded"};default:return{code:2,message:"internal_error"}}return{code:2,message:"internal_error"}}function U0(e,t){e.setAttribute("http.response.status_code",t);const r=I_(t);r.message!=="unknown_error"&&e.setStatus(r)}var j0="_sentryScope",q0="_sentryIsolationScope";function C_(e){try{const t=_e.WeakRef;if(typeof t=="function")return new t(e)}catch{}return e}function R_(e){if(e){if(typeof e=="object"&&"deref"in e&&typeof e.deref=="function")try{return e.deref()}catch{return}return e}}function $_(e,t,r){e&&(ht(e,q0,C_(r)),ht(e,j0,t))}function Mi(e){const t=e;return{scope:t[j0],isolationScope:R_(t[q0])}}var G0="sentry-";function W0(e){const t=A_(e);if(!t)return;const r=Object.entries(t).reduce((n,[a,o])=>{if(a.startsWith("sentry-")){const i=a.slice(7);n[i]=o}return n},{});if(Object.keys(r).length>0)return r}function P_(e){if(e)return L_(Object.entries(e).reduce((t,[r,n])=>(n&&(t[`${G0}${r}`]=n),t),{}))}function A_(e){if(!(!e||!yr(e)&&!Array.isArray(e)))return Array.isArray(e)?e.reduce((t,r)=>{const n=fp(r);return Object.entries(n).forEach(([a,o])=>{t[a]=o}),t},{}):fp(e)}function fp(e){return e.split(",").map(t=>{const r=t.indexOf("=");return r===-1?[]:[t.slice(0,r),t.slice(r+1)].map(n=>{try{return decodeURIComponent(n.trim())}catch{return}})}).reduce((t,[r,n])=>(r&&n&&(t[r]=n),t),{})}function L_(e){if(Object.keys(e).length!==0)return Object.entries(e).reduce((t,[r,n],a)=>{const o=`${encodeURIComponent(r)}=${encodeURIComponent(n)}`,i=a===0?o:`${t},${o}`;return i.length>8192?(K&&M.warn(`Not adding key: ${r} with val: ${n} to baggage header due to exceeding baggage size limits.`),t):i},"")}var N_=/^o(\d+)\./,D_=/^(?:(\w+):)\/\/(?:(\w+)(?::(\w+)?)?@)((?:\[[:.%\w]+\]|[\w.-]+))(?::(\d+))?\/(.+)/;function O_(e){return e==="http"||e==="https"}function wa(e,t=!1){const{host:r,path:n,pass:a,port:o,projectId:i,protocol:s,publicKey:c}=e;return`${s}://${c}${t&&a?`:${a}`:""}@${r}${o?`:${o}`:""}/${n&&`${n}/`}${i}`}function M_(e){const t=D_.exec(e);if(!t){Rn(()=>{console.error(`Invalid Sentry Dsn: ${e}`)});return}const[r,n,a="",o="",i="",s=""]=t.slice(1);let c="",l=s;const d=l.split("/");if(d.length>1&&(c=d.slice(0,-1).join("/"),l=d.pop()),l){const u=l.match(/^\d+/);u&&(l=u[0])}return Z0({host:o,pass:a,path:c,projectId:l,port:i,protocol:r,publicKey:n})}function Z0(e){return{protocol:e.protocol,publicKey:e.publicKey||"",pass:e.pass||"",host:e.host,port:e.port||"",path:e.path||"",projectId:e.projectId}}function F_(e){if(!K)return!0;const{port:t,projectId:r,protocol:n}=e;return["protocol","publicKey","host","projectId"].find(a=>e[a]?!1:(M.error(`Invalid Sentry Dsn: ${a} missing`),!0))?!1:r.match(/^\d+$/)?O_(n)?t&&isNaN(parseInt(t,10))?(M.error(`Invalid Sentry Dsn: Invalid port ${t}`),!1):!0:(M.error(`Invalid Sentry Dsn: Invalid protocol ${n}`),!1):(M.error(`Invalid Sentry Dsn: Invalid projectId ${r}`),!1)}function z_(e){return e.match(N_)?.[1]}function V_(e){const t=e.getOptions(),{host:r}=e.getDsn()||{};let n;return t.orgId?n=String(t.orgId):r&&(n=z_(r)),n}function B_(e){const t=typeof e=="string"?M_(e):Z0(e);if(!(!t||!F_(t)))return t}function Qa(e){if(typeof e=="boolean")return Number(e);const t=typeof e=="string"?parseFloat(e):e;if(!(typeof t!="number"||isNaN(t)||t<0||t>1))return t}var K0=new RegExp("^[ \\t]*([0-9a-f]{32})?-?([0-9a-f]{16})?-?([01])?[ \\t]*$");function H_(e){if(!e)return;const t=e.match(K0);if(!t)return;let r;return t[3]==="1"?r=!0:t[3]==="0"&&(r=!1),{traceId:t[1],parentSampled:r,parentSpanId:t[2]}}function U_(e,t){const r=H_(e),n=W0(t);if(!r?.traceId)return{traceId:Sr(),sampleRand:Vr()};const a=j_(r,n);n&&(n.sample_rand=a.toString());const{traceId:o,parentSpanId:i,parentSampled:s}=r;return{traceId:o,parentSpanId:i,sampled:s,dsc:n||{},sampleRand:a}}function Y0(e=Sr(),t=br(),r){let n="";return r!==void 0&&(n=r?"-1":"-0"),`${e}-${t}${n}`}function X0(e=Sr(),t=br(),r){return`00-${e}-${t}-${r?"01":"00"}`}function j_(e,t){const r=Qa(t?.sample_rand);if(r!==void 0)return r;const n=Qa(t?.sample_rate);return n&&e?.parentSampled!==void 0?e.parentSampled?Vr()*n:n+Vr()*(1-n):Vr()}var mp=!1;function q_(e){const{spanId:t,traceId:r}=e.spanContext(),{data:n,op:a,parent_span_id:o,status:i,origin:s,links:c}=Ee(e);return{parent_span_id:o,span_id:t,trace_id:r,data:n,op:a,status:i,origin:s,links:c}}function G_(e){const{spanId:t,traceId:r,isRemote:n}=e.spanContext(),a=n?t:Ee(e).parent_span_id,o=Mi(e).scope;return{parent_span_id:a,span_id:n?o?.getPropagationContext().propagationSpanId||br():t,trace_id:r}}function W_(e){const{traceId:t,spanId:r}=e.spanContext();return Y0(t,r,en(e))}function Z_(e){const{traceId:t,spanId:r}=e.spanContext();return X0(t,r,en(e))}function J0(e){if(e&&e.length>0)return e.map(({context:{spanId:t,traceId:r,traceFlags:n,...a},attributes:o})=>({span_id:t,trace_id:r,sampled:n===1,attributes:o,...a}))}function hn(e){return typeof e=="number"?hp(e):Array.isArray(e)?e[0]+e[1]/1e9:e instanceof Date?hp(e.getTime()):Je()}function hp(e){return e>9999999999?e/1e3:e}function Ee(e){if(Y_(e))return e.getSpanJSON();const{spanId:t,traceId:r}=e.spanContext();if(K_(e)){const{attributes:n,startTime:a,name:o,endTime:i,status:s,links:c}=e;return{span_id:t,trace_id:r,data:n,description:o,parent_span_id:"parentSpanId"in e?e.parentSpanId:"parentSpanContext"in e?e.parentSpanContext?.spanId:void 0,start_timestamp:hn(a),timestamp:hn(i)||void 0,status:Q0(s),op:n[or],origin:n[ze],links:J0(c)}}return{span_id:t,trace_id:r,start_timestamp:0,data:{}}}function K_(e){const t=e;return!!t.attributes&&!!t.startTime&&!!t.name&&!!t.endTime&&!!t.status}function Y_(e){return typeof e.getSpanJSON=="function"}function en(e){const{traceFlags:t}=e.spanContext();return t===1}function Q0(e){if(!(!e||e.code===0))return e.code===1?"ok":e.message||"internal_error"}var gn="_sentryChildSpans",Kc="_sentryRootSpan";function eh(e,t){ht(t,Kc,e[Kc]||e),e[gn]?e[gn].add(t):ht(e,gn,new Set([t]))}function X_(e,t){e[gn]&&e[gn].delete(t)}function mi(e){const t=new Set;function r(n){if(!t.has(n)&&en(n)){t.add(n);const a=n[gn]?Array.from(n[gn]):[];for(const o of a)r(o)}}return r(e),Array.from(t)}function mt(e){return e[Kc]||e}function Pt(){const e=ba(Cn());return e.getActiveSpan?e.getActiveSpan():Di(Pe())}function Yc(){mp||(Rn(()=>{console.warn("[Sentry] Returning null from `beforeSendSpan` is disallowed. To drop certain spans, configure the respective integrations directly or use `ignoreSpans`.")}),mp=!0)}var gp=!1;function J_(){if(gp)return;function e(){const t=Pt(),r=t&&mt(t);if(r){const n="internal_error";K&&M.log(`[Tracing] Root span: ${n} -> Global error occurred`),r.setStatus({code:2,message:n})}}e.tag="sentry_tracingErrorCallback",gp=!0,$0(e),P0(e)}function Vt(e){if(typeof __SENTRY_TRACING__=="boolean"&&!__SENTRY_TRACING__)return!1;const t=e||ke()?.getOptions();return!!t&&(t.tracesSampleRate!=null||!!t.tracesSampler)}function vp(e){M.log(`Ignoring span ${e.op} - ${e.description} because it matches \`ignoreSpans\`.`)}function Fi(e,t){if(!t?.length||!e.description)return!1;for(const r of t){if(e3(r)){if(fi(e.description,r))return K&&vp(e),!0;continue}if(!r.name&&!r.op)continue;const n=r.name?fi(e.description,r.name):!0,a=r.op?e.op&&fi(e.op,r.op):!0;if(n&&a)return K&&vp(e),!0}return!1}function Q_(e,t){const r=t.parent_span_id,n=t.span_id;if(r)for(const a of e)a.parent_span_id===n&&(a.parent_span_id=r)}function e3(e){return typeof e=="string"||e instanceof RegExp}var t3="production",th="_frozenDsc";function hi(e,t){ht(e,th,t)}function rh(e,t){const r=t.getOptions(),{publicKey:n}=t.getDsn()||{},a={environment:r.environment||"production",release:r.release,public_key:n,trace_id:e,org_id:V_(t)};return t.emit("createDsc",a),a}function nh(e,t){const r=t.getPropagationContext();return r.dsc||rh(r.traceId,e)}function Wr(e){const t=ke();if(!t)return{};const r=mt(e),n=Ee(r),a=n.data,o=r.spanContext().traceState,i=o?.get("sentry.sample_rate")??a["sentry.sample_rate"]??a["sentry.previous_trace_sample_rate"];function s(h){return(typeof i=="number"||typeof i=="string")&&(h.sample_rate=`${i}`),h}const c=r[th];if(c)return s(c);const l=o?.get("sentry.dsc"),d=l&&W0(l);if(d)return s(d);const u=rh(e.spanContext().traceId,t),f=a[Et],m=n.description;return f!=="url"&&m&&(u.transaction=m),Vt()&&(u.sampled=String(en(r)),u.sample_rand=o?.get("sentry.sample_rand")??Mi(r).scope?.getPropagationContext().sampleRand.toString()),s(u),t.emit("createDsc",u,r),u}var wn=class{constructor(e={}){this._traceId=e.traceId||Sr(),this._spanId=e.spanId||br()}spanContext(){return{spanId:this._spanId,traceId:this._traceId,traceFlags:0}}end(e){}setAttribute(e,t){return this}setAttributes(e){return this}setStatus(e){return this}updateName(e){return this}isRecording(){return!1}addEvent(e,t,r){return this}addLink(e){return this}addLinks(e){return this}recordException(e,t){}};function vr(e,t=100,r=1/0){try{return Xc("",e,t,r)}catch(n){return{ERROR:`**non-serializable** (${n})`}}}function ah(e,t=3,r=100*1024){const n=vr(e,t);return o3(n)>r?ah(e,t-1,r):n}function Xc(e,t,r=1/0,n=1/0,a=i3()){const[o,i]=a;if(t==null||["boolean","string"].includes(typeof t)||typeof t=="number"&&Number.isFinite(t))return t;const s=r3(e,t);if(!s.startsWith("[object "))return s;if(t.__sentry_skip_normalization__)return t;const c=typeof t.__sentry_override_normalization_depth__=="number"?t.__sentry_override_normalization_depth__:r;if(c===0)return s.replace("object ","");if(o(t))return"[Circular ~]";const l=t;if(l&&typeof l.toJSON=="function")try{return Xc("",l.toJSON(),c-1,n,a)}catch{}const d=Array.isArray(t)?[]:{};let u=0;const f=M0(t);for(const m in f){if(!Object.prototype.hasOwnProperty.call(f,m))continue;if(u>=n){d[m]="[MaxProperties ~]";break}const h=f[m];d[m]=Xc(m,h,c-1,n,a),u++}return i(t),d}function r3(e,t){try{if(e==="domain"&&t&&typeof t=="object"&&t._events)return"[Domain]";if(e==="domainEmitter")return"[DomainEmitter]";if(typeof global<"u"&&t===global)return"[Global]";if(typeof window<"u"&&t===window)return"[Window]";if(typeof document<"u"&&t===document)return"[Document]";if(N0(t))return R0(t);if(Jw(t))return"[SyntheticEvent]";if(typeof t=="number"&&!Number.isFinite(t))return`[${t}]`;if(typeof t=="function")return`[Function: ${_r(t)}]`;if(typeof t=="symbol")return`[${String(t)}]`;if(typeof t=="bigint")return`[BigInt: ${String(t)}]`;const r=n3(t);return/^HTML(\w*)Element$/.test(r)?`[HTMLElement: ${r}]`:`[object ${r}]`}catch(r){return`**non-serializable** (${r})`}}function n3(e){const t=Object.getPrototypeOf(e);return t?.constructor?t.constructor.name:"null prototype"}function a3(e){return~-encodeURI(e).split(/%..|./).length}function o3(e){return a3(JSON.stringify(e))}function i3(){const e=new WeakSet;function t(n){return e.has(n)?!0:(e.add(n),!1)}function r(n){e.delete(n)}return[t,r]}function Pn(e,t=[]){return[e,t]}function s3(e,t){const[r,n]=e;return[r,[...n,t]]}function Jc(e,t){const r=e[1];for(const n of r){const a=n[0].type;if(t(n,a))return!0}return!1}function c3(e,t){return Jc(e,(r,n)=>t.includes(n))}function Qc(e){const t=ks(_e);return t.encodePolyfill?t.encodePolyfill(e):new TextEncoder().encode(e)}function l3(e){const[t,r]=e;let n=JSON.stringify(t);function a(o){typeof n=="string"?n=typeof o=="string"?n+o:[Qc(n),o]:n.push(typeof o=="string"?Qc(o):o)}for(const o of r){const[i,s]=o;if(a(` ${JSON.stringify(i)} `),typeof s=="string"||s instanceof Uint8Array)a(s);else{let c;try{c=JSON.stringify(s)}catch{c=JSON.stringify(vr(s))}a(c)}}return typeof n=="string"?n:u3(n)}function u3(e){const t=e.reduce((a,o)=>a+o.length,0),r=new Uint8Array(t);let n=0;for(const a of e)r.set(a,n),n+=a.length;return r}function d3(e){return[{type:"span"},e]}function p3(e){const t=typeof e.data=="string"?Qc(e.data):e.data;return[{type:"attachment",length:t.length,filename:e.filename,content_type:e.contentType,attachment_type:e.attachmentType},t]}var oh={sessions:"session",event:"error",client_report:"internal",user_report:"default",profile_chunk:"profile",replay_event:"replay",replay_recording:"replay",check_in:"monitor",raw_security:"security",log:"log_item",trace_metric:"metric"};function f3(e){return e in oh}function yp(e){return f3(e)?oh[e]:e}function ih(e){if(!e?.sdk)return;const{name:t,version:r}=e.sdk;return{name:t,version:r}}function m3(e,t,r,n){const a=e.sdkProcessingMetadata?.dynamicSamplingContext;return{event_id:e.event_id,sent_at:new Date().toISOString(),...t&&{sdk:t},...!!r&&n&&{dsn:wa(n)},...a&&{trace:a}}}function h3(e,t){if(!t)return e;const r=e.sdk||{};return e.sdk={...r,name:r.name||t.name,version:r.version||t.version,integrations:[...e.sdk?.integrations||[],...t.integrations||[]],packages:[...e.sdk?.packages||[],...t.packages||[]],settings:e.sdk?.settings||t.settings?{...e.sdk?.settings,...t.settings}:void 0},e}function g3(e,t,r,n){const a=ih(r);return Pn({sent_at:new Date().toISOString(),...a&&{sdk:a},...!!n&&t&&{dsn:wa(t)}},["aggregates"in e?[{type:"sessions"},e]:[{type:"session"},e.toJSON()]])}function v3(e,t,r,n){const a=ih(r),o=e.type&&e.type!=="replay_event"?e.type:"event";h3(e,r?.sdk);const i=m3(e,a,n,t);return delete e.sdkProcessingMetadata,Pn(i,[[{type:o},e]])}function y3(e,t){function r(m){return!!m.trace_id&&!!m.public_key}const n=Wr(e[0]),a=t?.getDsn(),o=t?.getOptions().tunnel,i={sent_at:new Date().toISOString(),...r(n)&&{trace:n},...!!o&&a&&{dsn:wa(a)}},{beforeSendSpan:s,ignoreSpans:c}=t?.getOptions()||{},l=c?.length?e.filter(m=>!Fi(Ee(m),c)):e,d=e.length-l.length;d&&t?.recordDroppedEvent("before_send","span",d);const u=s?m=>{const h=Ee(m),g=s(h);return g||(Yc(),h)}:Ee,f=[];for(const m of l){const h=u(m);h&&f.push(d3(h))}return Pn(i,f)}function b3(e){if(!K)return;const{description:t="< unknown name >",op:r="< unknown op >",parent_span_id:n}=Ee(e),{spanId:a}=e.spanContext(),o=en(e),i=mt(e),s=i===e,c=`[Tracing] Starting ${o?"sampled":"unsampled"} ${s?"root ":""}span`,l=[`op: ${r}`,`name: ${t}`,`ID: ${a}`];if(n&&l.push(`parent ID: ${n}`),!s){const{op:d,description:u}=Ee(i);l.push(`root ID: ${i.spanContext().spanId}`),d&&l.push(`root op: ${d}`),u&&l.push(`root description: ${u}`)}M.log(`${c} ${l.join(` `)}`)}function w3(e){if(!K)return;const{description:t="< unknown name >",op:r="< unknown op >"}=Ee(e),{spanId:n}=e.spanContext(),a=`[Tracing] Finishing "${r}" ${mt(e)===e?"root ":""}span "${t}" with ID ${n}`;M.log(a)}function _3(e,t,r,n=Pt()){const a=n&&mt(n);a&&(K&&M.log(`[Measurement] Setting measurement on root span: ${e} = ${t} ${r}`),a.addEvent(e,{[xo]:t,[So]:r}))}function bp(e){if(!e||e.length===0)return;const t={};return e.forEach(r=>{const n=r.attributes||{},a=n[So],o=n[xo];typeof a=="string"&&typeof o=="number"&&(t[r.name]={value:o,unit:a})}),t}var wp=1e3,Es=class{constructor(e={}){this._traceId=e.traceId||Sr(),this._spanId=e.spanId||br(),this._startTime=e.startTimestamp||Je(),this._links=e.links,this._attributes={},this.setAttributes({[ze]:"manual",[or]:e.op,...e.attributes}),this._name=e.name,e.parentSpanId&&(this._parentSpanId=e.parentSpanId),"sampled"in e&&(this._sampled=e.sampled),e.endTimestamp&&(this._endTime=e.endTimestamp),this._events=[],this._isStandaloneSpan=e.isStandalone,this._endTime&&this._onSpanEnded()}addLink(e){return this._links?this._links.push(e):this._links=[e],this}addLinks(e){return this._links?this._links.push(...e):this._links=e,this}recordException(e,t){}spanContext(){const{_spanId:e,_traceId:t,_sampled:r}=this;return{spanId:e,traceId:t,traceFlags:r?1:0}}setAttribute(e,t){return t===void 0?delete this._attributes[e]:this._attributes[e]=t,this}setAttributes(e){return Object.keys(e).forEach(t=>this.setAttribute(t,e[t])),this}updateStartTime(e){this._startTime=hn(e)}setStatus(e){return this._status=e,this}updateName(e){return this._name=e,this.setAttribute(Et,"custom"),this}end(e){this._endTime||(this._endTime=hn(e),w3(this),this._onSpanEnded())}getSpanJSON(){return{data:this._attributes,description:this._name,op:this._attributes[or],parent_span_id:this._parentSpanId,span_id:this._spanId,start_timestamp:this._startTime,status:Q0(this._status),timestamp:this._endTime,trace_id:this._traceId,origin:this._attributes[ze],profile_id:this._attributes[H0],exclusive_time:this._attributes[Eo],measurements:bp(this._events),is_segment:this._isStandaloneSpan&&mt(this)===this||void 0,segment_id:this._isStandaloneSpan?mt(this).spanContext().spanId:void 0,links:J0(this._links)}}isRecording(){return!this._endTime&&!!this._sampled}addEvent(e,t,r){K&&M.log("[Tracing] Adding an event to span:",e);const n=_p(t)?t:r||Je(),a=_p(t)?{}:t||{},o={name:e,time:hn(n),attributes:a};return this._events.push(o),this}isStandaloneSpan(){return!!this._isStandaloneSpan}_onSpanEnded(){const e=ke();if(e&&e.emit("spanEnd",this),!(this._isStandaloneSpan||this===mt(this)))return;if(this._isStandaloneSpan){this._sampled?S3(y3([this],e)):(K&&M.log("[Tracing] Discarding standalone span because its trace was not chosen to be sampled."),e&&e.recordDroppedEvent("sample_rate","span"));return}const t=this._convertSpanToTransaction();t&&(Mi(this).scope||Pe()).captureEvent(t)}_convertSpanToTransaction(){if(!kp(Ee(this)))return;this._name||(K&&M.warn("Transaction has no name, falling back to ``."),this._name="");const{scope:e,isolationScope:t}=Mi(this),r=e?.getScopeData().sdkProcessingMetadata?.normalizedRequest;if(this._sampled!==!0)return;const n=mi(this).filter(s=>s!==this&&!k3(s)).map(s=>Ee(s)).filter(kp),a=this._attributes[Et];delete this._attributes[pp],n.forEach(s=>{delete s.data[pp]});const o={contexts:{trace:q_(this)},spans:n.length>wp?n.sort((s,c)=>s.start_timestamp-c.start_timestamp).slice(0,wp):n,start_timestamp:this._startTime,timestamp:this._endTime,transaction:this._name,type:"transaction",sdkProcessingMetadata:{capturedSpanScope:e,capturedSpanIsolationScope:t,dynamicSamplingContext:Wr(this)},request:r,...a&&{transaction_info:{source:a}}},i=bp(this._events);return i&&Object.keys(i).length&&(K&&M.log("[Measurements] Adding measurements to transaction event",JSON.stringify(i,void 0,2)),o.measurements=i),o}};function _p(e){return e&&typeof e=="number"||e instanceof Date||Array.isArray(e)}function kp(e){return!!e.start_timestamp&&!!e.timestamp&&!!e.span_id&&!!e.trace_id}function k3(e){return e instanceof Es&&e.isStandaloneSpan()}function S3(e){const t=ke();if(!t)return;const r=e[1];if(!r||r.length===0){t.recordDroppedEvent("before_send","span");return}t.sendEnvelope(e)}function x3(e,t,r){if(!Vt(e))return[!1];let n,a;typeof e.tracesSampler=="function"?(a=e.tracesSampler({...t,inheritOrSampleWith:s=>typeof t.parentSampleRate=="number"?t.parentSampleRate:typeof t.parentSampled=="boolean"?Number(t.parentSampled):s}),n=!0):t.parentSampled!==void 0?a=t.parentSampled:typeof e.tracesSampleRate<"u"&&(a=e.tracesSampleRate,n=!0);const o=Qa(a);if(o===void 0)return K&&M.warn(`[Tracing] Discarding root span because of invalid sample rate. Sample rate must be a boolean or a number between 0 and 1. Got ${JSON.stringify(a)} of type ${JSON.stringify(typeof a)}.`),[!1];if(!o)return K&&M.log(`[Tracing] Discarding transaction because ${typeof e.tracesSampler=="function"?"tracesSampler returned 0 or false":"a negative sampling decision was inherited or tracesSampleRate is set to 0"}`),[!1,o,n];const i=rtu(e.scope,o):a!==void 0?o=>ch(a,o):o=>o())(()=>{const o=Pe(),i=C3(o,a);return e.onlyIfParent&&!i?new wn:E3({parentSpan:i,spanArguments:r,forceTransaction:n,scope:o})})}function ch(e,t){const r=lh();return r.withActiveSpan?r.withActiveSpan(e,t):tu(n=>(Ja(n,e||void 0),t(n)))}function E3({parentSpan:e,spanArguments:t,forceTransaction:r,scope:n}){if(!Vt()){const i=new wn;return(r||!e)&&hi(i,{sampled:"false",sample_rate:"0",transaction:t.name,...Wr(i)}),i}const a=sr();let o;if(e&&!r)o=I3(e,n,t),eh(e,o);else if(e){const i=Wr(e),{traceId:s,spanId:c}=e.spanContext(),l=en(e);o=Sp({traceId:s,parentSpanId:c,...t},n,l),hi(o,i)}else{const{traceId:i,dsc:s,parentSpanId:c,sampled:l}={...a.getPropagationContext(),...n.getPropagationContext()};o=Sp({traceId:i,parentSpanId:c,...t},n,l),s&&hi(o,s)}return b3(o),$_(o,n,a),o}function T3(e){const t={isStandalone:(e.experimental||{}).standalone,...e};if(e.startTime){const r={...t};return r.startTimestamp=hn(e.startTime),delete r.startTime,r}return t}function lh(){return ba(Cn())}function Sp(e,t,r){const n=ke(),a=n?.getOptions()||{},{name:o=""}=e,i={spanAttributes:{...e.attributes},spanName:o,parentSampled:r};n?.emit("beforeSampling",i,{decision:!1});const s=i.parentSampled??r,c=i.spanAttributes,l=t.getPropagationContext(),[d,u,f]=t.getScopeData().sdkProcessingMetadata[sh]?[!1]:x3(a,{name:o,parentSampled:s,attributes:c,parentSampleRate:Qa(l.dsc?.sample_rate)},l.sampleRand),m=new Es({...e,attributes:{[Et]:"custom",[S_]:u!==void 0&&f?u:void 0,...c},sampled:d});return!d&&n&&(K&&M.log("[Tracing] Discarding root span because its trace was not chosen to be sampled."),n.recordDroppedEvent("sample_rate","transaction")),n&&n.emit("spanStart",m),m}function I3(e,t,r){const{spanId:n,traceId:a}=e.spanContext(),o=t.getScopeData().sdkProcessingMetadata[sh]?!1:en(e),i=o?new Es({...r,parentSpanId:n,traceId:a,sampled:o}):new wn({traceId:a});eh(e,i);const s=ke();return s&&(s.emit("spanStart",i),r.endTimestamp&&s.emit("spanEnd",i)),i}function C3(e,t){if(t)return t;if(t===null)return;const r=Di(e);if(!r)return;const n=ke();return(n?n.getOptions():{}).parentSpanIsAlwaysRootSpan?mt(r):r}var gi={idleTimeout:1e3,finalTimeout:3e4,childSpanTimeout:15e3},R3="heartbeatFailed",$3="idleTimeout",P3="finalTimeout",A3="externalFinish";function uh(e,t={}){const r=new Map;let n=!1,a,o=A3,i=!t.disableAutoFinish;const s=[],{idleTimeout:c=gi.idleTimeout,finalTimeout:l=gi.finalTimeout,childSpanTimeout:d=gi.childSpanTimeout,beforeSpanEnd:u,trimIdleSpanEndTimestamp:f=!0}=t,m=ke();if(!m||!Vt()){const T=new wn;return hi(T,{sample_rate:"0",sampled:"false",...Wr(T)}),T}const h=Pe(),g=Pt(),v=L3(e);v.end=new Proxy(v.end,{apply(T,E,L){if(u&&u(v),E instanceof wn)return;const[j,...ue]=L,q=hn(j||Je()),X=mi(v).filter(D=>D!==v),de=Ee(v);if(!X.length||!f)return C(q),Reflect.apply(T,E,[q,...ue]);const ge=m.getOptions().ignoreSpans,B=X?.reduce((D,A)=>{const ve=Ee(A);return!ve.timestamp||ge&&Fi(ve,ge)?D:D?Math.max(D,ve.timestamp):ve.timestamp},void 0),Y=de.start_timestamp,F=Math.min(Y?Y+l/1e3:1/0,Math.max(Y||-1/0,Math.min(q,B||1/0)));return C(F),Reflect.apply(T,E,[F,...ue])}});function b(){a&&(clearTimeout(a),a=void 0)}function I(T){b(),a=setTimeout(()=>{!n&&r.size===0&&i&&(o=$3,v.end(T))},c)}function y(T){a=setTimeout(()=>{!n&&i&&(o=R3,v.end(T))},d)}function S(T){b(),r.set(T,!0),y(Je()+d/1e3)}function w(T){r.has(T)&&r.delete(T),r.size===0&&I(Je()+c/1e3)}function C(T){n=!0,r.clear(),s.forEach(X=>X()),Ja(h,g);const E=Ee(v),{start_timestamp:L}=E;if(!L)return;E.data["sentry.idle_span_finish_reason"]||v.setAttribute(Oi,o);const j=E.status;(!j||j==="unknown")&&v.setStatus({code:1}),M.log(`[Tracing] Idle span "${E.op}" finished`);const ue=mi(v).filter(X=>X!==v);let q=0;ue.forEach(X=>{X.isRecording()&&(X.setStatus({code:2,message:"cancelled"}),X.end(T),K&&M.log("[Tracing] Cancelling span since span ended early",JSON.stringify(X,void 0,2)));const{timestamp:de=0,start_timestamp:ge=0}=Ee(X),B=ge<=T,Y=(l+c)/1e3,F=de-ge<=Y;if(K){const D=JSON.stringify(X,void 0,2);B?F||M.log("[Tracing] Discarding span since it finished after idle span final timeout",D):M.log("[Tracing] Discarding span since it happened after idle span was finished",D)}(!F||!B)&&(X_(v,X),q++)}),q>0&&v.setAttribute("sentry.idle_span_discarded_spans",q)}return s.push(m.on("spanStart",T=>{n||T===v||Ee(T).timestamp||T instanceof Es&&T.isStandaloneSpan()||mi(v).includes(T)&&S(T.spanContext().spanId)})),s.push(m.on("spanEnd",T=>{n||w(T.spanContext().spanId)})),s.push(m.on("idleSpanEnableAutoFinish",T=>{T===v&&(i=!0,I(),r.size&&y())})),t.disableAutoFinish||I(),setTimeout(()=>{n||(v.setStatus({code:2,message:"deadline_exceeded"}),o=P3,v.end())},l),v}function L3(e){const t=_a(e);return Ja(Pe(),t),K&&M.log("[Tracing] Started span is an idle span"),t}var uc=0,xp=1,Ep=2;function To(e){return new dh(t=>{t(e)})}function ru(e){return new dh((t,r)=>{r(e)})}var dh=class el{constructor(t){this._state=uc,this._handlers=[],this._runExecutor(t)}then(t,r){return new el((n,a)=>{this._handlers.push([!1,o=>{if(!t)n(o);else try{n(t(o))}catch(i){a(i)}},o=>{if(!r)a(o);else try{n(r(o))}catch(i){a(i)}}]),this._executeHandlers()})}catch(t){return this.then(r=>r,t)}finally(t){return new el((r,n)=>{let a,o;return this.then(i=>{o=!1,a=i,t&&t()},i=>{o=!0,a=i,t&&t()}).then(()=>{if(o){n(a);return}r(a)})})}_executeHandlers(){if(this._state===uc)return;const t=this._handlers.slice();this._handlers=[],t.forEach(r=>{r[0]||(this._state===xp&&r[1](this._value),this._state===Ep&&r[2](this._value),r[0]=!0)})}_runExecutor(t){const r=(o,i)=>{if(this._state===uc){if(yo(i)){i.then(n,a);return}this._state=o,this._value=i,this._executeHandlers()}},n=o=>{r(xp,o)},a=o=>{r(Ep,o)};try{t(n,a)}catch(o){a(o)}}};function N3(e,t,r,n=0){try{const a=tl(t,r,e,n);return yo(a)?a:To(a)}catch(a){return ru(a)}}function tl(e,t,r,n){const a=r[n];if(!e||!a)return e;const o=a({...e},t);return K&&o===null&&M.log(`Event processor "${a.id||"?"}" dropped event`),yo(o)?o.then(i=>tl(i,t,r,n+1)):tl(o,t,r,n+1)}var cn,Tp,Ip,Dr;function D3(e){const t=_e._sentryDebugIds,r=_e._debugIds;if(!t&&!r)return{};const n=t?Object.keys(t):[],a=r?Object.keys(r):[];if(Dr&&n.length===Tp&&a.length===Ip)return Dr;Tp=n.length,Ip=a.length,Dr={},cn||(cn={});const o=(i,s)=>{for(const c of i){const l=s[c],d=cn?.[c];if(d&&Dr&&l)Dr[d[0]]=l,cn&&(cn[c]=[d[0],l]);else if(l){const u=e(c);for(let f=u.length-1;f>=0;f--){const m=u[f]?.filename;if(m&&Dr&&cn){Dr[m]=l,cn[c]=[m,l];break}}}}};return t&&o(n,t),r&&o(a,r),Dr}function O3(e,t){const{fingerprint:r,span:n,breadcrumbs:a,sdkProcessingMetadata:o}=t;M3(e,t),n&&V3(e,n),B3(e,r),F3(e,a),z3(e,o)}function Cp(e,t){const{extra:r,tags:n,attributes:a,user:o,contexts:i,level:s,sdkProcessingMetadata:c,breadcrumbs:l,fingerprint:d,eventProcessors:u,attachments:f,propagationContext:m,transactionName:h,span:g}=t;Ma(e,"extra",r),Ma(e,"tags",n),Ma(e,"attributes",a),Ma(e,"user",o),Ma(e,"contexts",i),e.sdkProcessingMetadata=ko(e.sdkProcessingMetadata,c,2),s&&(e.level=s),h&&(e.transactionName=h),g&&(e.span=g),l.length&&(e.breadcrumbs=[...e.breadcrumbs,...l]),d.length&&(e.fingerprint=[...e.fingerprint,...d]),u.length&&(e.eventProcessors=[...e.eventProcessors,...u]),f.length&&(e.attachments=[...e.attachments,...f]),e.propagationContext={...e.propagationContext,...m}}function Ma(e,t,r){e[t]=ko(e[t],r,1)}function ph(e,t){const r=__().getScopeData();return e&&Cp(r,e.getScopeData()),t&&Cp(r,t.getScopeData()),r}function M3(e,t){const{extra:r,tags:n,user:a,contexts:o,level:i,transactionName:s}=t;Object.keys(r).length&&(e.extra={...r,...e.extra}),Object.keys(n).length&&(e.tags={...n,...e.tags}),Object.keys(a).length&&(e.user={...a,...e.user}),Object.keys(o).length&&(e.contexts={...o,...e.contexts}),i&&(e.level=i),s&&e.type!=="transaction"&&(e.transaction=s)}function F3(e,t){const r=[...e.breadcrumbs||[],...t];e.breadcrumbs=r.length?r:void 0}function z3(e,t){e.sdkProcessingMetadata={...e.sdkProcessingMetadata,...t}}function V3(e,t){e.contexts={trace:G_(t),...e.contexts},e.sdkProcessingMetadata={dynamicSamplingContext:Wr(t),...e.sdkProcessingMetadata};const r=Ee(mt(t)).description;r&&!e.transaction&&e.type==="transaction"&&(e.transaction=r)}function B3(e,t){e.fingerprint=e.fingerprint?Array.isArray(e.fingerprint)?e.fingerprint:[e.fingerprint]:[],t&&(e.fingerprint=e.fingerprint.concat(t)),e.fingerprint.length||delete e.fingerprint}function H3(e,t,r,n,a,o){const{normalizeDepth:i=3,normalizeMaxBreadth:s=1e3}=e,c={...t,event_id:t.event_id||r.event_id||It(),timestamp:t.timestamp||$n()},l=r.integrations||e.integrations.map(g=>g.name);U3(c,e),G3(c,l),a&&a.emit("applyFrameMetadata",t),t.type===void 0&&j3(c,e.stackParser);const d=Z3(n,r.captureContext);r.mechanism&&ta(c,r.mechanism);const u=a?a.getEventProcessors():[],f=ph(o,d),m=[...r.attachments||[],...f.attachments];m.length&&(r.attachments=m),O3(c,f);const h=[...u,...f.eventProcessors];return(r.data&&r.data.__sentry__===!0?To(c):N3(h,c,r)).then(g=>(g&&q3(g),typeof i=="number"&&i>0?W3(g,i,s):g))}function U3(e,t){const{environment:r,release:n,dist:a,maxValueLength:o}=t;e.environment=e.environment||r||"production",!e.release&&n&&(e.release=n),!e.dist&&a&&(e.dist=a);const i=e.request;i?.url&&o&&(i.url=qc(i.url,o)),o&&e.exception?.values?.forEach(s=>{s.value&&(s.value=qc(s.value,o))})}function j3(e,t){const r=D3(t);e.exception?.values?.forEach(n=>{n.stacktrace?.frames?.forEach(a=>{a.filename&&(a.debug_id=r[a.filename])})})}function q3(e){const t={};if(e.exception?.values?.forEach(n=>{n.stacktrace?.frames?.forEach(a=>{a.debug_id&&(a.abs_path?t[a.abs_path]=a.debug_id:a.filename&&(t[a.filename]=a.debug_id),delete a.debug_id)})}),Object.keys(t).length===0)return;e.debug_meta=e.debug_meta||{},e.debug_meta.images=e.debug_meta.images||[];const r=e.debug_meta.images;Object.entries(t).forEach(([n,a])=>{r.push({type:"sourcemap",code_file:n,debug_id:a})})}function G3(e,t){t.length>0&&(e.sdk=e.sdk||{},e.sdk.integrations=[...e.sdk.integrations||[],...t])}function W3(e,t,r){if(!e)return null;const n={...e,...e.breadcrumbs&&{breadcrumbs:e.breadcrumbs.map(a=>({...a,...a.data&&{data:vr(a.data,t,r)}}))},...e.user&&{user:vr(e.user,t,r)},...e.contexts&&{contexts:vr(e.contexts,t,r)},...e.extra&&{extra:vr(e.extra,t,r)}};return e.contexts?.trace&&n.contexts&&(n.contexts.trace=e.contexts.trace,e.contexts.trace.data&&(n.contexts.trace.data=vr(e.contexts.trace.data,t,r))),e.spans&&(n.spans=e.spans.map(a=>({...a,...a.data&&{data:vr(a.data,t,r)}}))),e.contexts?.flags&&n.contexts&&(n.contexts.flags=vr(e.contexts.flags,3,r)),n}function Z3(e,t){if(!t)return e;const r=e?e.clone():new bn;return r.update(t),r}function K3(e){if(e)return Y3(e)?{captureContext:e}:J3(e)?{captureContext:e}:e}function Y3(e){return e instanceof bn||typeof e=="function"}var X3=["user","level","extra","contexts","tags","fingerprint","propagationContext"];function J3(e){return Object.keys(e).some(t=>X3.includes(t))}function fh(e,t){return Pe().captureException(e,K3(t))}function mh(e,t){return Pe().captureEvent(e,t)}function Q3(e,t){sr().setContext(e,t)}function ek(){const e=ke();return e?.getOptions().enabled!==!1&&!!e?.getTransport()}function Rp(e){const t=sr(),{user:r}=ph(t,Pe()),{userAgent:n}=_e.navigator||{},a=s_({user:r,...n&&{userAgent:n},...e}),o=t.getSession();return o?.status==="ok"&&ra(o,{status:"exited"}),hh(),t.setSession(a),a}function hh(){const e=sr(),t=Pe().getSession()||e.getSession();t&&c_(t),gh(),e.setSession()}function gh(){const e=sr(),t=ke(),r=e.getSession();r&&t&&t.captureSession(r)}function dc(e=!1){if(e){hh();return}gh()}function tk(e){const t=e.protocol?`${e.protocol}:`:"",r=e.port?`:${e.port}`:"";return`${t}//${e.host}${r}${e.path?`/${e.path}`:""}/api/`}function rk(e){return`${tk(e)}${e.projectId}/envelope/`}function nk(e,t){const r={sentry_version:"7"};return e.publicKey&&(r.sentry_key=e.publicKey),t&&(r.sentry_client=`${t.name}/${t.version}`),new URLSearchParams(r).toString()}function ak(e,t,r){return t||`${rk(e)}?${nk(e,r)}`}var $p=[];function ok(e){const t={};return e.forEach(r=>{const{name:n}=r,a=t[n];a&&!a.isDefaultInstance&&r.isDefaultInstance||(t[n]=r)}),Object.values(t)}function ik(e){const t=e.defaultIntegrations||[],r=e.integrations;t.forEach(a=>{a.isDefaultInstance=!0});let n;if(Array.isArray(r))n=[...t,...r];else if(typeof r=="function"){const a=r(t);n=Array.isArray(a)?a:[a]}else n=t;return ok(n)}function sk(e,t){const r={};return t.forEach(n=>{n&&vh(e,n,r)}),r}function Pp(e,t){for(const r of t)r?.afterAllSetup&&r.afterAllSetup(e)}function vh(e,t,r){if(r[t.name]){K&&M.log(`Integration skipped because it was already installed: ${t.name}`);return}if(r[t.name]=t,!$p.includes(t.name)&&typeof t.setupOnce=="function"&&(t.setupOnce(),$p.push(t.name)),t.setup&&typeof t.setup=="function"&&t.setup(e),typeof t.preprocessEvent=="function"){const n=t.preprocessEvent.bind(t);e.on("preprocessEvent",(a,o)=>n(a,o,e))}if(typeof t.processEvent=="function"){const n=t.processEvent.bind(t),a=Object.assign((o,i)=>n(o,i,e),{id:t.name});e.addEventProcessor(a)}K&&M.log(`Integration installed: ${t.name}`)}function ck(e){const t=ke();if(!t){K&&M.warn(`Cannot add integration "${e.name}" because no SDK Client is available.`);return}t.addIntegration(e)}function lk(e){return[{type:"log",item_count:e.length,content_type:"application/vnd.sentry.items.log+json"},{items:e}]}function uk(e,t,r,n){const a={};return t?.sdk&&(a.sdk={name:t.sdk.name,version:t.sdk.version}),r&&n&&(a.dsn=wa(n)),Pn(a,[lk(e)])}function rl(e,t){const r=t??dk(e)??[];if(r.length===0)return;const n=e.getOptions(),a=uk(r,n._metadata,n.tunnel,e.getDsn());yh().set(e,[]),e.emit("flushLogs"),e.sendEnvelope(a)}function dk(e){return yh().get(e)}function yh(){return va("clientToLogBufferMap",()=>new WeakMap)}function pk(e){return[{type:"trace_metric",item_count:e.length,content_type:"application/vnd.sentry.items.trace-metric+json"},{items:e}]}function fk(e,t,r,n){const a={};return t?.sdk&&(a.sdk={name:t.sdk.name,version:t.sdk.version}),r&&n&&(a.dsn=wa(n)),Pn(a,[pk(e)])}function bh(e,t){const r=t??mk(e)??[];if(r.length===0)return;const n=e.getOptions(),a=fk(r,n._metadata,n.tunnel,e.getDsn());wh().set(e,[]),e.emit("flushMetrics"),e.sendEnvelope(a)}function mk(e){return wh().get(e)}function wh(){return va("clientToMetricBufferMap",()=>new WeakMap)}function _h(e){return typeof e=="object"&&typeof e.unref=="function"&&e.unref(),e}var nu=Symbol.for("SentryBufferFullError");function au(e=100){const t=new Set;function r(){return t.sizen(s),()=>n(s)),s}function o(i){if(!t.size)return To(!0);const s=Promise.allSettled(Array.from(t)).then(()=>!0);if(!i)return s;const c=[s,new Promise(l=>_h(setTimeout(()=>l(!1),i)))];return Promise.race(c)}return{get $(){return Array.from(t)},add:a,drain:o}}var hk=60*1e3;function gk(e,t=_o()){const r=parseInt(`${e}`,10);if(!isNaN(r))return r*1e3;const n=Date.parse(`${e}`);return isNaN(n)?hk:n-t}function vk(e,t){return e[t]||e.all||0}function yk(e,t,r=_o()){return vk(e,t)>r}function bk(e,{statusCode:t,headers:r},n=_o()){const a={...e},o=r?.["x-sentry-rate-limits"],i=r?.["retry-after"];if(o)for(const s of o.trim().split(",")){const[c,l,,,d]=s.split(":",5),u=parseInt(c,10),f=(isNaN(u)?60:u)*1e3;if(!l)a.all=n+f;else for(const m of l.split(";"))m==="metric_bucket"?(!d||d.split(";").includes("custom"))&&(a[m]=n+f):a[m]=n+f}else i?a.all=n+gk(i,n):t===429&&(a.all=n+60*1e3);return a}function wk(e,t,r=au(e.bufferSize||64)){let n={};const a=i=>r.drain(i);function o(i){const s=[];if(Jc(i,(u,f)=>{const m=yp(f);yk(n,m)?e.recordDroppedEvent("ratelimit_backoff",m):s.push(u)}),s.length===0)return Promise.resolve({});const c=Pn(i[0],s),l=u=>{if(c3(c,["client_report"])){K&&M.warn(`Dropping client report. Will not send outcomes (reason: ${u}).`);return}Jc(c,(f,m)=>{e.recordDroppedEvent(u,yp(m))})},d=()=>t({body:l3(c)}).then(u=>u.statusCode===413?(K&&M.error("Sentry responded with status code 413. Envelope was discarded due to exceeding size limits."),l("send_error"),u):(K&&u.statusCode!==void 0&&(u.statusCode<200||u.statusCode>=300)&&M.warn(`Sentry responded with status code ${u.statusCode} to sent event.`),n=bk(n,u),u),u=>{throw l("network_error"),K&&M.error("Encountered error running transport request:",u),u});return r.add(d).then(u=>u,u=>{if(u===nu)return K&&M.error("Skipped sending event because buffer is full."),l("queue_overflow"),Promise.resolve({});throw u})}return{send:o,flush:a}}function _k(e,t,r){const n=[{type:"client_report"},{timestamp:r||$n(),discarded_events:e}];return Pn(t?{dsn:t}:{},[n])}function kh(e){const t=[];e.message&&t.push(e.message);try{const r=e.exception.values[e.exception.values.length-1];r?.value&&(t.push(r.value),r.type&&t.push(`${r.type}: ${r.value}`))}catch{}return t}function kk(e){const{trace_id:t,parent_span_id:r,span_id:n,status:a,origin:o,data:i,op:s}=e.contexts?.trace??{};return{data:i??{},description:e.transaction,op:s,parent_span_id:r,span_id:n??"",start_timestamp:e.start_timestamp??0,status:a,timestamp:e.timestamp,trace_id:t??"",origin:o,profile_id:i?.[H0],exclusive_time:i?.[Eo],measurements:e.measurements,is_segment:!0}}function Sk(e){return{type:"transaction",timestamp:e.timestamp,start_timestamp:e.start_timestamp,transaction:e.description,contexts:{trace:{trace_id:e.trace_id,span_id:e.span_id,parent_span_id:e.parent_span_id,op:e.op,status:e.status,origin:e.origin,data:{...e.data,...e.profile_id&&{"sentry.profile_id":e.profile_id},...e.exclusive_time&&{"sentry.exclusive_time":e.exclusive_time}}}},measurements:e.measurements}}var Ap="Not capturing exception because it's already been captured.",Lp="Discarded session because of missing or non-string release",Sh=Symbol.for("SentryInternalError"),xh=Symbol.for("SentryDoNotSendEventError"),xk=5e3;function vi(e){return{message:e,[Sh]:!0}}function pc(e){return{message:e,[xh]:!0}}function Np(e){return!!e&&typeof e=="object"&&Sh in e}function Dp(e){return!!e&&typeof e=="object"&&xh in e}function Op(e,t,r,n,a){let o=0,i,s=!1;e.on(r,()=>{o=0,clearTimeout(i),s=!1}),e.on(t,c=>{o+=n(c),o>=8e5?a(e):s||(s=!0,i=_h(setTimeout(()=>{a(e)},xk)))}),e.on("flush",()=>{a(e)})}var Ek=class{constructor(e){if(this._options=e,this._integrations={},this._numProcessing=0,this._outcomes={},this._hooks={},this._eventProcessors=[],this._promiseBuffer=au(e.transportOptions?.bufferSize??64),e.dsn?this._dsn=B_(e.dsn):K&&M.warn("No DSN provided, client will not send events."),this._dsn){const t=ak(this._dsn,e.tunnel,e._metadata?e._metadata.sdk:void 0);this._transport=e.transport({tunnel:this._options.tunnel,recordDroppedEvent:this.recordDroppedEvent.bind(this),...e.transportOptions,url:t})}this._options.enableLogs=this._options.enableLogs??this._options._experiments?.enableLogs,this._options.enableLogs&&Op(this,"afterCaptureLog","flushLogs",Rk,rl),(this._options.enableMetrics??this._options._experiments?.enableMetrics??!0)&&Op(this,"afterCaptureMetric","flushMetrics",Ck,bh)}captureException(e,t,r){const n=It();if(cp(e))return K&&M.log(Ap),n;const a={event_id:n,...t};return this._process(()=>this.eventFromException(e,a).then(o=>this._captureEvent(o,a,r)).then(o=>o),"error"),a.event_id}captureMessage(e,t,r,n){const a={event_id:It(),...r},o=Xl(e)?e:String(e),i=ea(e),s=i?this.eventFromMessage(o,t,a):this.eventFromException(e,a);return this._process(()=>s.then(c=>this._captureEvent(c,a,n)),i?"unknown":"error"),a.event_id}captureEvent(e,t,r){const n=It();if(t?.originalException&&cp(t.originalException))return K&&M.log(Ap),n;const a={event_id:n,...t},o=e.sdkProcessingMetadata||{},i=o.capturedSpanScope,s=o.capturedSpanIsolationScope,c=Mp(e.type);return this._process(()=>this._captureEvent(e,a,i||r,s),c),a.event_id}captureSession(e){this.sendSession(e),ra(e,{init:!1})}getDsn(){return this._dsn}getOptions(){return this._options}getSdkMetadata(){return this._options._metadata}getTransport(){return this._transport}async flush(e){const t=this._transport;if(!t)return!0;this.emit("flush");const r=await this._isClientDoneProcessing(e),n=await t.flush(e);return r&&n}async close(e){rl(this);const t=await this.flush(e);return this.getOptions().enabled=!1,this.emit("close"),t}getEventProcessors(){return this._eventProcessors}addEventProcessor(e){this._eventProcessors.push(e)}init(){(this._isEnabled()||this._options.integrations.some(({name:e})=>e.startsWith("Spotlight")))&&this._setupIntegrations()}getIntegrationByName(e){return this._integrations[e]}addIntegration(e){const t=this._integrations[e.name];vh(this,e,this._integrations),t||Pp(this,[e])}sendEvent(e,t={}){this.emit("beforeSendEvent",e,t);let r=v3(e,this._dsn,this._options._metadata,this._options.tunnel);for(const n of t.attachments||[])r=s3(r,p3(n));this.sendEnvelope(r).then(n=>this.emit("afterSendEvent",e,n))}sendSession(e){const{release:t,environment:r=t3}=this._options;if("aggregates"in e){const a=e.attrs||{};if(!a.release&&!t){K&&M.warn(Lp);return}a.release=a.release||t,a.environment=a.environment||r,e.attrs=a}else{if(!e.release&&!t){K&&M.warn(Lp);return}e.release=e.release||t,e.environment=e.environment||r}this.emit("beforeSendSession",e);const n=g3(e,this._dsn,this._options._metadata,this._options.tunnel);this.sendEnvelope(n)}recordDroppedEvent(e,t,r=1){if(this._options.sendClientReports){const n=`${e}:${t}`;K&&M.log(`Recording outcome: "${n}"${r>1?` (${r} times)`:""}`),this._outcomes[n]=(this._outcomes[n]||0)+r}}on(e,t){const r=this._hooks[e]=this._hooks[e]||new Set,n=(...a)=>t(...a);return r.add(n),()=>{r.delete(n)}}emit(e,...t){const r=this._hooks[e];r&&r.forEach(n=>n(...t))}async sendEnvelope(e){if(this.emit("beforeEnvelope",e),this._isEnabled()&&this._transport)try{return await this._transport.send(e)}catch(t){return K&&M.error("Error while sending envelope:",t),{}}return K&&M.error("Transport disabled"),{}}dispose(){}_setupIntegrations(){const{integrations:e}=this._options;this._integrations=sk(this,e),Pp(this,e)}_updateSessionFromEvent(e,t){let r=t.level==="fatal",n=!1;const a=t.exception?.values;if(a){n=!0,r=!1;for(const i of a)if(i.mechanism?.handled===!1){r=!0;break}}const o=e.status==="ok";(o&&e.errors===0||o&&r)&&(ra(e,{...r&&{status:"crashed"},errors:e.errors||Number(n||r)}),this.captureSession(e))}async _isClientDoneProcessing(e){let t=0;for(;!e||tsetTimeout(r,1)),!this._numProcessing)return!0;t++}return!1}_isEnabled(){return this.getOptions().enabled!==!1&&this._transport!==void 0}_prepareEvent(e,t,r,n){const a=this.getOptions(),o=Object.keys(this._integrations);return!t.integrations&&o?.length&&(t.integrations=o),this.emit("preprocessEvent",e,t),e.type||n.setLastEventId(e.event_id||t.event_id),H3(a,e,t,r,this,n).then(i=>(i===null||(this.emit("postprocessEvent",i,t),i.contexts={trace:{...i.contexts?.trace,...k_(r)},...i.contexts},i.sdkProcessingMetadata={dynamicSamplingContext:nh(this,r),...i.sdkProcessingMetadata}),i))}_captureEvent(e,t={},r=Pe(),n=sr()){return K&&nl(e)&&M.log(`Captured error event \`${kh(e)[0]||""}\``),this._processEvent(e,t,r,n).then(a=>a.event_id,a=>{K&&(Dp(a)?M.log(a.message):Np(a)?M.warn(a.message):M.warn(a))})}_processEvent(e,t,r,n){const a=this.getOptions(),{sampleRate:o}=a,i=Eh(e),s=nl(e),c=`before send for type \`${e.type||"error"}\``,l=typeof o>"u"?void 0:Qa(o);if(s&&typeof l=="number"&&Vr()>l)return this.recordDroppedEvent("sample_rate","error"),ru(pc(`Discarding event because it's not included in the random sample (sampling rate = ${o})`));const d=Mp(e.type);return this._prepareEvent(e,t,r,n).then(u=>{if(u===null)throw this.recordDroppedEvent("event_processor",d),pc("An event processor returned `null`, will not send event.");return t.data?.__sentry__===!0?u:Tk(Ik(this,a,u,t),c)}).then(u=>{if(u===null){if(this.recordDroppedEvent("before_send",d),i){const h=1+(e.spans||[]).length;this.recordDroppedEvent("before_send","span",h)}throw pc(`${c} returned \`null\`, will not send event.`)}const f=r.getSession()||n.getSession();if(s&&f&&this._updateSessionFromEvent(f,u),i){const h=(u.sdkProcessingMetadata?.spanCountBeforeProcessing||0)-(u.spans?u.spans.length:0);h>0&&this.recordDroppedEvent("before_send","span",h)}const m=u.transaction_info;if(i&&m&&u.transaction!==e.transaction){const h="custom";u.transaction_info={...m,source:h}}return this.sendEvent(u,t),u}).then(null,u=>{throw Dp(u)||Np(u)?u:(this.captureException(u,{mechanism:{handled:!1,type:"internal"},data:{__sentry__:!0},originalException:u}),vi(`Event processing pipeline threw an error, original event will not be sent. Details have been sent as a new event. Reason: ${u}`))})}_process(e,t){this._numProcessing++,this._promiseBuffer.add(e).then(r=>(this._numProcessing--,r),r=>(this._numProcessing--,r===nu&&this.recordDroppedEvent("queue_overflow",t),r))}_clearOutcomes(){const e=this._outcomes;return this._outcomes={},Object.entries(e).map(([t,r])=>{const[n,a]=t.split(":");return{reason:n,category:a,quantity:r}})}_flushOutcomes(){K&&M.log("Flushing outcomes...");const e=this._clearOutcomes();if(e.length===0){K&&M.log("No outcomes to send");return}if(!this._dsn){K&&M.log("No dsn provided, will not send outcomes");return}K&&M.log("Sending outcomes:",e);const t=_k(e,this._options.tunnel&&wa(this._dsn));this.sendEnvelope(t)}};function Mp(e){return e==="replay_event"?"replay":e||"error"}function Tk(e,t){const r=`${t} must return \`null\` or a valid event.`;if(yo(e))return e.then(n=>{if(!Xa(n)&&n!==null)throw vi(r);return n},n=>{throw vi(`${t} rejected with ${n}`)});if(!Xa(e)&&e!==null)throw vi(r);return e}function Ik(e,t,r,n){const{beforeSend:a,beforeSendTransaction:o,beforeSendSpan:i,ignoreSpans:s}=t;let c=r;if(nl(c)&&a)return a(c,n);if(Eh(c)){if(i||s){const l=kk(c);if(s?.length&&Fi(l,s))return null;if(i){const d=i(l);d?c=ko(r,Sk(d)):Yc()}if(c.spans){const d=[],u=c.spans;for(const m of u){if(s?.length&&Fi(m,s)){Q_(u,m);continue}if(i){const h=i(m);h?d.push(h):(Yc(),d.push(m))}else d.push(m)}const f=c.spans.length-d.length;f&&e.recordDroppedEvent("before_send","span",f),c.spans=d}}if(o){if(c.spans){const l=c.spans.length;c.sdkProcessingMetadata={...r.sdkProcessingMetadata,spanCountBeforeProcessing:l}}return o(c,n)}}return c}function nl(e){return e.type===void 0}function Eh(e){return e.type==="transaction"}function Ck(e){let t=0;return e.name&&(t+=e.name.length*2),t+=8,t+Th(e.attributes)}function Rk(e){let t=0;return e.message&&(t+=e.message.length*2),t+Th(e.attributes)}function Th(e){if(!e)return 0;let t=0;return Object.values(e).forEach(r=>{Array.isArray(r)?t+=r.length*Fp(r[0]):ea(r)?t+=Fp(r):t+=100}),t}function Fp(e){return typeof e=="string"?e.length*2:typeof e=="number"?8:typeof e=="boolean"?4:0}function $k(e){return Ss(e)&&"__sentry_fetch_url_host__"in e&&typeof e.__sentry_fetch_url_host__=="string"}function zp(e){return $k(e)?`${e.message} (${e.__sentry_fetch_url_host__})`:e.message}function Pk(e,t){t.debug===!0&&(K?M.enable():Rn(()=>{console.warn("[Sentry] Cannot initialize SDK with `debug` option using a non-debug bundle.")})),Pe().update(t.initialScope);const r=new e(t);return Ak(r),r.init(),r}function Ak(e){Pe().setClient(e)}var Lk="thismessage:/";function Ih(e){return"isRelative"in e}function Ch(e,t){const r=e.indexOf("://")<=0&&e.indexOf("//")!==0,n=t??(r?Lk:void 0);try{if("canParse"in URL&&!URL.canParse(e,n))return;const a=new URL(e,n);return r?{isRelative:r,pathname:a.pathname,search:a.search,hash:a.hash}:a}catch{}}function Nk(e){if(Ih(e))return e.pathname;const t=new URL(e);return t.search="",t.hash="",["80","443"].includes(t.port)&&(t.port=""),t.password&&(t.password="%filtered%"),t.username&&(t.username="%filtered%"),t.toString()}function vn(e){if(!e)return{};const t=e.match(/^(([^:/?#]+):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?$/);if(!t)return{};const r=t[6]||"",n=t[8]||"";return{host:t[4],path:t[5],protocol:t[2],search:r,hash:n,relative:t[5]+r+n}}function Dk(e){return e.split(/[?#]/,1)[0]}function Hr(e,t=!0){if(e.startsWith("data:")){const r=e.match(/^data:([^;,]+)/),n=r?r[1]:"text/plain",a=e.includes(";base64,"),o=e.indexOf(",");let i="";if(t&&o!==-1){const s=e.slice(o+1);i=s.length>10?`${s.slice(0,10)}... [truncated]`:s}return`data:${n}${a?",base64":""}${i?`,${i}`:""}`}return e}function Ok(e){"aggregates"in e?e.attrs?.ip_address===void 0&&(e.attrs={...e.attrs,ip_address:"{{auto}}"}):e.ipAddress===void 0&&(e.ipAddress="{{auto}}")}function ou(e,t,r=[t],n="npm"){const a=(e._metadata=e._metadata||{}).sdk=e._metadata.sdk||{};a.name||(a.name=`sentry.javascript.${t}`,a.packages=r.map(o=>({name:`${n}:@sentry/${o}`,version:Li})),a.version=Li)}function Rh(e={}){const t=e.client||ke();if(!ek()||!t)return{};const r=ba(Cn());if(r.getTraceData)return r.getTraceData(e);const n=e.scope||Pe(),a=e.span||Pt();if(!a&&w_())return{};const o=a?W_(a):Mk(n),i=P_(a?Wr(a):nh(t,n));if(!K0.test(o))return M.warn("Invalid sentry-trace data. Cannot generate trace data"),{};const s={"sentry-trace":o,baggage:i};return e.propagateTraceparent&&(s.traceparent=a?Z_(a):Fk(n)),s}function Mk(e){const{traceId:t,sampled:r,propagationSpanId:n}=e.getPropagationContext();return Y0(t,n,r)}function Fk(e){const{traceId:t,sampled:r,propagationSpanId:n}=e.getPropagationContext();return X0(t,n,r)}var zk=100;function _n(e,t){const r=ke(),n=sr();if(!r)return;const{beforeBreadcrumb:a=null,maxBreadcrumbs:o=zk}=r.getOptions();if(o<=0)return;const i={timestamp:$n(),...e},s=a?Rn(()=>a(i,t)):i;s!==null&&(r.emit&&r.emit("beforeAddBreadcrumb",s,t),n.addBreadcrumb(s,o))}var Vp,Vk="FunctionToString",Bp=new WeakMap,Bk=(()=>({name:Vk,setupOnce(){Vp=Function.prototype.toString;try{Function.prototype.toString=function(...e){const t=eu(this),r=Bp.has(ke())&&t!==void 0?t:this;return Vp.apply(r,e)}}catch{}},setup(e){Bp.set(e,!0)}})),Hk=Bk,Uk=[/^Script error\.?$/,/^Javascript error: Script error\.? on line 0$/,/^ResizeObserver loop completed with undelivered notifications.$/,/^Cannot redefine property: googletag$/,/^Can't find variable: gmo$/,/^undefined is not an object \(evaluating 'a\.[A-Z]'\)$/,/can't redefine non-configurable property "solana"/,/vv\(\)\.getRestrictions is not a function/,/Can't find variable: _AutofillCallbackHandler/,/Object Not Found Matching Id:\d+, MethodName:simulateEvent/,/^Java exception was raised during method invocation$/],jk="EventFilters",qk=(e={})=>{let t;return{name:jk,setup(r){t=Hp(e,r.getOptions())},processEvent(r,n,a){return t||(t=Hp(e,a.getOptions())),Wk(r,t)?null:r}}},Gk=((e={})=>({...qk(e),name:"InboundFilters"}));function Hp(e={},t={}){return{allowUrls:[...e.allowUrls||[],...t.allowUrls||[]],denyUrls:[...e.denyUrls||[],...t.denyUrls||[]],ignoreErrors:[...e.ignoreErrors||[],...t.ignoreErrors||[],...e.disableErrorDefaults?[]:Uk],ignoreTransactions:[...e.ignoreTransactions||[],...t.ignoreTransactions||[]]}}function Wk(e,t){if(e.type){if(e.type==="transaction"&&Kk(e,t.ignoreTransactions))return K&&M.warn(`Event dropped due to being matched by \`ignoreTransactions\` option. Event: ${fn(e)}`),!0}else{if(Zk(e,t.ignoreErrors))return K&&M.warn(`Event dropped due to being matched by \`ignoreErrors\` option. Event: ${fn(e)}`),!0;if(Qk(e))return K&&M.warn(`Event dropped due to not having an error message, error type or stacktrace. Event: ${fn(e)}`),!0;if(Yk(e,t.denyUrls))return K&&M.warn(`Event dropped due to being matched by \`denyUrls\` option. Event: ${fn(e)}. Url: ${zi(e)}`),!0;if(!Xk(e,t.allowUrls))return K&&M.warn(`Event dropped due to not being matched by \`allowUrls\` option. Event: ${fn(e)}. Url: ${zi(e)}`),!0}return!1}function Zk(e,t){return t?.length?kh(e).some(r=>Br(r,t)):!1}function Kk(e,t){if(!t?.length)return!1;const r=e.transaction;return r?Br(r,t):!1}function Yk(e,t){if(!t?.length)return!1;const r=zi(e);return r?Br(r,t):!1}function Xk(e,t){if(!t?.length)return!0;const r=zi(e);return r?Br(r,t):!0}function Jk(e=[]){for(let t=e.length-1;t>=0;t--){const r=e[t];if(r&&r.filename!==""&&r.filename!=="[native code]")return r.filename||null}return null}function zi(e){try{const t=[...e.exception?.values??[]].reverse().find(r=>r.mechanism?.parent_id===void 0&&r.stacktrace?.frames?.length)?.stacktrace?.frames;return t?Jk(t):null}catch{return K&&M.error(`Cannot extract url for event ${fn(e)}`),null}}function Qk(e){return e.exception?.values?.length?!e.message&&!e.exception.values.some(t=>t.stacktrace||t.type&&t.type!=="Error"||t.value):!1}function e5(e,t,r,n,a,o){if(!a.exception?.values||!o||!kr(o.originalException,Error))return;const i=a.exception.values.length>0?a.exception.values[a.exception.values.length-1]:void 0;i&&(a.exception.values=al(e,t,n,o.originalException,r,a.exception.values,i,0))}function al(e,t,r,n,a,o,i,s){if(o.length>=r+1)return o;let c=[...o];if(kr(n[a],Error)){Up(i,s,n);const l=e(t,n[a]),d=c.length;jp(l,a,d,s),c=al(e,t,r,n[a],a,[l,...c],l,d)}return $h(n)&&n.errors.forEach((l,d)=>{if(kr(l,Error)){Up(i,s,n);const u=e(t,l),f=c.length;jp(u,`errors[${d}]`,f,s),c=al(e,t,r,l,a,[u,...c],u,f)}}),c}function $h(e){return Array.isArray(e.errors)}function Up(e,t,r){e.mechanism={handled:!0,type:"auto.core.linked_errors",...$h(r)&&{is_exception_group:!0},...e.mechanism,exception_id:t}}function jp(e,t,r,n){e.mechanism={handled:!0,...e.mechanism,type:"chained",source:t,exception_id:r,parent_id:n}}function t5(e){const t="console";Jr(t,e),Qr(t,r5)}function r5(){"console"in _e&&Fw.forEach(function(e){e in _e.console&&_t(_e.console,e,function(t){return Ni[e]=t,function(...r){Tt("console",{args:r,level:e}),Ni[e]?.apply(_e.console,r)}})})}function n5(e){return e==="warn"?"warning":["fatal","error","warning","log","info","debug"].includes(e)?e:"log"}var a5="Dedupe",o5=(()=>{let e;return{name:a5,processEvent(t){if(t.type)return t;try{if(s5(t,e))return K&&M.warn("Event dropped due to being a duplicate of previously captured event."),null}catch{}return e=t}}}),i5=o5;function s5(e,t){return t?!!(c5(e,t)||l5(e,t)):!1}function c5(e,t){const r=e.message,n=t.message;return!(!r&&!n||r&&!n||!r&&n||r!==n||!Ah(e,t)||!Ph(e,t))}function l5(e,t){const r=qp(t),n=qp(e);return!(!r||!n||r.type!==n.type||r.value!==n.value||!Ah(e,t)||!Ph(e,t))}function Ph(e,t){let r=rp(e),n=rp(t);if(!r&&!n)return!0;if(r&&!n||!r&&n||(r=r,n=n,n.length!==r.length))return!1;for(let a=0;a({name:u5,setup(e){e.on("spanStart",t=>{const r=Pe().getScopeData(),n=sr().getScopeData(),a=r.conversationId||n.conversationId;a&&t.setAttribute(T_,a)})}})),p5=d5;function f5(e,t,r,n,a){if(!e.fetchData)return;const{method:o,url:i}=e.fetchData,s=Vt()&&t(i);if(e.endTimestamp){const m=e.fetchData.__span;if(!m)return;const h=n[m];h&&(s&&(g5(h,e),m5(h,e,a)),delete n[m]);return}const{spanOrigin:c="auto.http.browser",propagateTraceparent:l=!1}=typeof a=="object"?a:{spanOrigin:a},d=!!Pt(),u=s&&d?_a(y5(i,o,c)):new wn;if(e.fetchData.__span=u.spanContext().spanId,n[u.spanContext().spanId]=u,r(e.fetchData.url)){const m=e.args[0],h={...e.args[1]||{}},g=h5(m,h,Vt()&&d?u:void 0,l);g&&(e.args[1]=h,h.headers=g)}const f=ke();if(f){const m={input:e.args,response:e.response,startTimestamp:e.startTimestamp,endTimestamp:e.endTimestamp};f.emit("beforeOutgoingRequestSpan",u,m)}return u}function m5(e,t,r){(typeof r=="object"&&r!==null?r.onRequestSpanEnd:void 0)?.(e,{headers:t.response?.headers,error:t.error})}function h5(e,t,r,n){const a=Rh({span:r,propagateTraceparent:n}),o=a["sentry-trace"],i=a.baggage,s=a.traceparent;if(!o)return;const c=t.headers||(Jl(e)?e.headers:void 0);if(c)if(v5(c)){const l=new Headers(c);if(l.get("sentry-trace")||l.set("sentry-trace",o),n&&s&&!l.get("traceparent")&&l.set("traceparent",s),i){const d=l.get("baggage");d?jo(d)||l.set("baggage",`${d},${i}`):l.set("baggage",i)}return l}else if(Array.isArray(c)){const l=[...c];c.find(u=>u[0]==="sentry-trace")||l.push(["sentry-trace",o]),n&&s&&!c.find(u=>u[0]==="traceparent")&&l.push(["traceparent",s]);const d=c.find(u=>u[0]==="baggage"&&jo(u[1]));return i&&!d&&l.push(["baggage",i]),l}else{const l="sentry-trace"in c?c["sentry-trace"]:void 0,d="traceparent"in c?c.traceparent:void 0,u="baggage"in c?c.baggage:void 0,f=u?Array.isArray(u)?[...u]:[u]:[],m=u&&(Array.isArray(u)?u.find(g=>jo(g)):jo(u));i&&!m&&f.push(i);const h={...c,"sentry-trace":l??o,baggage:f.length>0?f.join(","):void 0};return n&&s&&!d&&(h.traceparent=s),h}else return{...a}}function g5(e,t){if(t.response){U0(e,t.response.status);const r=t.response?.headers?.get("content-length");if(r){const n=parseInt(r);n>0&&e.setAttribute("http.response_content_length",n)}}else t.error&&e.setStatus({code:2,message:"internal_error"});e.end()}function jo(e){return e.split(",").some(t=>t.trim().startsWith(G0))}function v5(e){return typeof Headers<"u"&&kr(e,Headers)}function y5(e,t,r){if(e.startsWith("data:"))return{name:`${t} ${Hr(e)}`,attributes:Gp(e,void 0,t,r)};const n=Ch(e);return{name:`${t} ${n?Nk(n):e}`,attributes:Gp(e,n,t,r)}}function Gp(e,t,r,n){const a={url:Hr(e),type:"fetch","http.method":r,[ze]:n,[or]:"http.client"};return t&&(Ih(t)||(a["http.url"]=Hr(t.href),a["server.address"]=t.host),t.search&&(a["http.query"]=t.search),t.hash&&(a["http.fragment"]=t.hash)),a}function Lh(e){if(e!==void 0)return e>=400&&e<500?"warning":e>=500?"error":void 0}var eo=_e;function b5(){return"history"in eo&&!!eo.history}function w5(){if(!("fetch"in eo))return!1;try{return new Headers,new Request("data:,"),new Response,!0}catch{return!1}}function ol(e){return e&&/^function\s+\w+\(\)\s+\{\s+\[native code\]\s+\}$/.test(e.toString())}function _5(){if(typeof EdgeRuntime=="string")return!0;if(!w5())return!1;if(ol(eo.fetch))return!0;let e=!1;const t=eo.document;if(t&&typeof t.createElement=="function")try{const r=t.createElement("iframe");r.hidden=!0,t.head.appendChild(r),r.contentWindow?.fetch&&(e=ol(r.contentWindow.fetch)),t.head.removeChild(r)}catch(r){K&&M.warn("Could not create sandbox iframe for pure fetch check, bailing to window.fetch: ",r)}return e}function Nh(e,t){const r="fetch";Jr(r,e),Qr(r,()=>Dh(void 0,t))}function k5(e){const t="fetch-body-resolved";Jr(t,e),Qr(t,()=>Dh(x5))}function Dh(e,t=!1){t&&!_5()||_t(_e,"fetch",function(r){return function(...n){const a=new Error,{method:o,url:i}=E5(n),s={args:n,fetchData:{method:o,url:i},startTimestamp:Je()*1e3,virtualError:a,headers:T5(n)};return e||Tt("fetch",{...s}),r.apply(_e,n).then(async c=>(e?e(c):Tt("fetch",{...s,endTimestamp:Je()*1e3,response:c}),c),c=>{Tt("fetch",{...s,endTimestamp:Je()*1e3,error:c}),Ss(c)&&c.stack===void 0&&(c.stack=a.stack,ht(c,"framesToPop",1));const l=ke()?.getOptions().enhanceFetchErrorMessages??"always";if(l!==!1&&c instanceof TypeError&&(c.message==="Failed to fetch"||c.message==="Load failed"||c.message==="NetworkError when attempting to fetch resource."))try{const d=new URL(s.fetchData.url).host;l==="always"?c.message=`${c.message} (${d})`:ht(c,"__sentry_fetch_url_host__",d)}catch{}throw c})}})}async function S5(e,t){if(e?.body){const r=e.body,n=r.getReader(),a=setTimeout(()=>{r.cancel().then(null,()=>{})},90*1e3);let o=!0;for(;o;){let i;try{i=setTimeout(()=>{r.cancel().then(null,()=>{})},5e3);const{done:s}=await n.read();clearTimeout(i),s&&(t(),o=!1)}catch{o=!1}finally{clearTimeout(i)}}clearTimeout(a),n.releaseLock(),r.cancel().then(null,()=>{})}}function x5(e){let t;try{t=e.clone()}catch{return}S5(t,()=>{Tt("fetch-body-resolved",{endTimestamp:Je()*1e3,response:e})})}function yi(e,t){return!!e&&typeof e=="object"&&!!e[t]}function Wp(e){return typeof e=="string"?e:e?yi(e,"url")?e.url:e.toString?e.toString():"":""}function E5(e){if(e.length===0)return{method:"GET",url:""};if(e.length===2){const[r,n]=e;return{url:Wp(r),method:yi(n,"method")?String(n.method).toUpperCase():Jl(r)&&yi(r,"method")?String(r.method).toUpperCase():"GET"}}const t=e[0];return{url:Wp(t),method:yi(t,"method")?String(t.method).toUpperCase():"GET"}}function T5(e){const[t,r]=e;try{if(typeof r=="object"&&r!==null&&"headers"in r&&r.headers)return new Headers(r.headers);if(Jl(t))return new Headers(t.headers)}catch{}}function I5(){return typeof __SENTRY_BROWSER_BUNDLE__<"u"&&!!__SENTRY_BROWSER_BUNDLE__}function C5(){return"npm"}function R5(){return!I5()&&Object.prototype.toString.call(typeof process<"u"?process:0)==="[object process]"}function $5(){return typeof window<"u"&&(!R5()||P5())}function P5(){return _e.process?.type==="renderer"}var be=_e,il=0;function Oh(){return il>0}function A5(){il++,setTimeout(()=>{il--})}function aa(e,t={}){function r(a){return typeof a=="function"}if(!r(e))return e;try{const a=e.__sentry_wrapped__;if(a)return typeof a=="function"?a:e;if(eu(e))return e}catch{return e}const n=function(...a){try{const o=a.map(i=>aa(i,t));return e.apply(this,o)}catch(o){throw A5(),tu(i=>{i.addEventProcessor(s=>(t.mechanism&&(Gc(s,void 0,void 0),ta(s,t.mechanism)),s.extra={...s.extra,arguments:a},s)),fh(o)}),o}};try{for(const a in e)Object.prototype.hasOwnProperty.call(e,a)&&(n[a]=e[a])}catch{}O0(n,e),ht(e,"__sentry_wrapped__",n);try{Object.getOwnPropertyDescriptor(n,"name").configurable&&Object.defineProperty(n,"name",{get(){return e.name}})}catch{}return n}function iu(){const e=bo(),{referrer:t}=be.document||{},{userAgent:r}=be.navigator||{};return{url:e,headers:{...t&&{Referer:t},...r&&{"User-Agent":r}}}}function su(e,t){const r=cu(e,t),n={type:M5(t),value:F5(t)};return r.length&&(n.stacktrace={frames:r}),n.type===void 0&&n.value===""&&(n.value="Unrecoverable error caught"),n}function L5(e,t,r,n){const a=ke()?.getOptions().normalizeDepth,o=U5(t),i={__serialized__:ah(t,a)};if(o)return{exception:{values:[su(e,o)]},extra:i};const s={exception:{values:[{type:xs(t)?t.constructor.name:n?"UnhandledRejection":"Error",value:B5(t,{isUnhandledRejection:n})}]},extra:i};if(r){const c=cu(e,r);c.length&&(s.exception.values[0].stacktrace={frames:c})}return s}function fc(e,t){return{exception:{values:[su(e,t)]}}}function cu(e,t){const r=t.stacktrace||t.stack||"",n=D5(t),a=O5(t);try{return e(r,n,a)}catch{}return[]}var N5=/Minified React error #\d+;/i;function D5(e){return e&&N5.test(e.message)?1:0}function O5(e){return typeof e.framesToPop=="number"?e.framesToPop:0}function Mh(e){return typeof WebAssembly<"u"&&typeof WebAssembly.Exception<"u"?e instanceof WebAssembly.Exception:!1}function M5(e){const t=e?.name;return!t&&Mh(e)?e.message&&Array.isArray(e.message)&&e.message.length==2?e.message[0]:"WebAssembly.Exception":t}function F5(e){const t=e?.message;return Mh(e)?Array.isArray(e.message)&&e.message.length==2?e.message[1]:"wasm exception":t?t.error&&typeof t.error.message=="string"?zp(t.error):zp(e):"No error message"}function z5(e,t,r,n){const a=lu(e,t,r?.syntheticException||void 0,n);return ta(a),a.level="error",r?.event_id&&(a.event_id=r.event_id),To(a)}function V5(e,t,r="info",n,a){const o=sl(e,t,n?.syntheticException||void 0,a);return o.level=r,n?.event_id&&(o.event_id=n.event_id),To(o)}function lu(e,t,r,n,a){let o;if(L0(t)&&t.error)return fc(e,t.error);if(ap(t)||Kw(t)){const i=t;if("stack"in t)o=fc(e,t);else{const s=i.name||(ap(i)?"DOMError":"DOMException"),c=i.message?`${s}: ${i.message}`:s;o=sl(e,c,r,n),Gc(o,c)}return"code"in i&&(o.tags={...o.tags,"DOMException.code":`${i.code}`}),o}return Ss(t)?fc(e,t):Xa(t)||xs(t)?(o=L5(e,t,r,a),ta(o,{synthetic:!0}),o):(o=sl(e,t,r,n),Gc(o,`${t}`,void 0),ta(o,{synthetic:!0}),o)}function sl(e,t,r,n){const a={};if(n&&r){const o=cu(e,r);o.length&&(a.exception={values:[{value:t,stacktrace:{frames:o}}]}),ta(a,{synthetic:!0})}if(Xl(t)){const{__sentry_template_string__:o,__sentry_template_values__:i}=t;return a.logentry={message:o,params:i},a}return a.message=t,a}function B5(e,{isUnhandledRejection:t}){const r=t_(e),n=t?"promise rejection":"exception";return L0(e)?`Event \`ErrorEvent\` captured as ${n} with message \`${e.message}\``:xs(e)?`Event \`${H5(e)}\` (type=${e.type}) captured as ${n}`:`Object captured as ${n} with keys: ${r}`}function H5(e){try{const t=Object.getPrototypeOf(e);return t?t.constructor.name:void 0}catch{}}function U5(e){return Object.values(e).find(t=>t instanceof Error)}var j5=class extends Ek{constructor(e){const t=q5(e);ou(t,"browser",["browser"],be.SENTRY_SDK_SOURCE||C5()),t._metadata?.sdk&&(t._metadata.sdk.settings={infer_ip:t.sendDefaultPii?"auto":"never",...t._metadata.sdk.settings}),super(t);const{sendDefaultPii:r,sendClientReports:n,enableLogs:a,_experiments:o,enableMetrics:i}=this._options,s=i??o?.enableMetrics??!0;be.document&&(n||a||s)&&be.document.addEventListener("visibilitychange",()=>{be.document.visibilityState==="hidden"&&(n&&this._flushOutcomes(),a&&rl(this),s&&bh(this))}),r&&this.on("beforeSendSession",Ok)}eventFromException(e,t){return z5(this._options.stackParser,e,t,this._options.attachStacktrace)}eventFromMessage(e,t="info",r){return V5(this._options.stackParser,e,t,r,this._options.attachStacktrace)}_prepareEvent(e,t,r,n){return e.platform=e.platform||"javascript",super._prepareEvent(e,t,r,n)}};function q5(e){return{release:typeof __SENTRY_RELEASE__=="string"?__SENTRY_RELEASE__:be.SENTRY_RELEASE?.id,sendClientReports:!0,parentSpanIsAlwaysRootSpan:!0,...e}}var Io=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__,le=_e,G5=(e,t)=>e>t[1]?"poor":e>t[0]?"needs-improvement":"good",Co=(e,t,r,n)=>{let a,o;return i=>{t.value>=0&&(i||n)&&(o=t.value-(a??0),(o||a===void 0)&&(a=t.value,t.delta=o,t.rating=G5(t.value,r),e(t)))}},Ro=(e=!0)=>{const t=le.performance?.getEntriesByType?.("navigation")[0];if(!e||t&&t.responseStart>0&&t.responseStartRo()?.activationStart??0;function Ur(e,t,r){le.document&&le.addEventListener(e,t,r)}function Vi(e,t,r){le.document&&le.removeEventListener(e,t,r)}var Yn=-1,Fh=new Set,W5=()=>le.document?.visibilityState==="hidden"&&!le.document?.prerendering?0:1/0,bi=e=>{if(Z5(e)&&Yn>-1){if(e.type==="visibilitychange"||e.type==="pagehide")for(const t of Fh)t();isFinite(Yn)||(Yn=e.type==="visibilitychange"?e.timeStamp:0,Vi("prerenderingchange",bi,!0))}},$o=()=>{if(le.document&&Yn<0){const e=ka();Yn=(le.document.prerendering?void 0:globalThis.performance.getEntriesByType("visibility-state").filter(t=>t.name==="hidden"&&t.startTime>e)[0]?.startTime)??W5(),Ur("visibilitychange",bi,!0),Ur("pagehide",bi,!0),Ur("prerenderingchange",bi,!0)}return{get firstHiddenTime(){return Yn},onHidden(e){Fh.add(e)}}};function Z5(e){return e.type==="pagehide"||le.document?.visibilityState==="hidden"}var K5=()=>`v5-${Date.now()}-${Math.floor(Math.random()*8999999999999)+1e12}`,Po=(e,t=-1)=>{const r=Ro();let n="navigate";return r&&(le.document?.prerendering||ka()>0?n="prerender":le.document?.wasDiscarded?n="restore":r.type&&(n=r.type.replace(/_/g,"-"))),{name:e,value:t,rating:"good",delta:0,entries:[],id:K5(),navigationType:n}},mc=new WeakMap;function uu(e,t){try{return mc.get(e)||mc.set(e,new t),mc.get(e)}catch{return new t}}var Y5=class cl{constructor(){cl.prototype.__init.call(this),cl.prototype.__init2.call(this)}__init(){this._sessionValue=0}__init2(){this._sessionEntries=[]}_processEntry(t){if(t.hadRecentInput)return;const r=this._sessionEntries[0],n=this._sessionEntries[this._sessionEntries.length-1];this._sessionValue&&r&&n&&t.startTime-n.startTime<1e3&&t.startTime-r.startTime<5e3?(this._sessionValue+=t.value,this._sessionEntries.push(t)):(this._sessionValue=t.value,this._sessionEntries=[t]),this._onAfterProcessingUnexpectedShift?.(t)}},Sa=(e,t,r={})=>{try{if(PerformanceObserver.supportedEntryTypes.includes(e)){const n=new PerformanceObserver(a=>{Promise.resolve().then(()=>{t(a.getEntries())})});return n.observe({type:e,buffered:!0,...r}),n}}catch{}},du=e=>{let t=!1;return()=>{t||(e(),t=!0)}},Ts=e=>{le.document?.prerendering?addEventListener("prerenderingchange",()=>e(),!0):e()},X5=[1800,3e3],J5=(e,t={})=>{Ts(()=>{const r=$o(),n=Po("FCP");let a;const i=Sa("paint",s=>{for(const c of s)c.name==="first-contentful-paint"&&(i.disconnect(),c.startTime{J5(du(()=>{const r=Po("CLS",0);let n;const a=$o(),o=uu(t,Y5),i=c=>{for(const l of c)o._processEntry(l);o._sessionValue>r.value&&(r.value=o._sessionValue,r.entries=o._sessionEntries,n())},s=Sa("layout-shift",i);s&&(n=Co(e,r,Q5,t.reportAllChanges),a.onHidden(()=>{i(s.takeRecords()),n(!0)}),le?.setTimeout?.(n))}))},zh=0,hc=1/0,qo=0,t6=e=>{e.forEach(t=>{t.interactionId&&(hc=Math.min(hc,t.interactionId),qo=Math.max(qo,t.interactionId),zh=qo?(qo-hc)/7+1:0)})},ll,Vh=()=>ll?zh:performance.interactionCount||0,r6=()=>{"interactionCount"in performance||ll||(ll=Sa("event",t6,{type:"event",buffered:!0,durationThreshold:0}))},gc=10,Bh=0,n6=()=>Vh()-Bh,a6=class ul{constructor(){ul.prototype.__init.call(this),ul.prototype.__init2.call(this)}__init(){this._longestInteractionList=[]}__init2(){this._longestInteractionMap=new Map}_resetInteractions(){Bh=Vh(),this._longestInteractionList.length=0,this._longestInteractionMap.clear()}_estimateP98LongestInteraction(){const t=Math.min(this._longestInteractionList.length-1,Math.floor(n6()/50));return this._longestInteractionList[t]}_processEntry(t){if(this._onBeforeProcessingEntry?.(t),!(t.interactionId||t.entryType==="first-input"))return;const r=this._longestInteractionList.at(-1);let n=this._longestInteractionMap.get(t.interactionId);if(n||this._longestInteractionList.lengthr._latency){if(n?t.duration>n._latency?(n.entries=[t],n._latency=t.duration):t.duration===n._latency&&t.startTime===n.entries[0].startTime&&n.entries.push(t):(n={id:t.interactionId,entries:[t],_latency:t.duration},this._longestInteractionMap.set(n.id,n),this._longestInteractionList.push(n)),this._longestInteractionList.sort((a,o)=>o._latency-a._latency),this._longestInteractionList.length>gc){const a=this._longestInteractionList.splice(gc);for(const o of a)this._longestInteractionMap.delete(o.id)}this._onAfterProcessingINPCandidate?.(n)}}},Hh=e=>{const t=le.requestIdleCallback||le.setTimeout;le.document?.visibilityState==="hidden"?e():(e=du(e),Ur("visibilitychange",e,{once:!0,capture:!0}),Ur("pagehide",e,{once:!0,capture:!0}),t(()=>{e(),Vi("visibilitychange",e,{capture:!0}),Vi("pagehide",e,{capture:!0})}))},o6=[200,500],i6=40,s6=(e,t={})=>{if(!(globalThis.PerformanceEventTiming&&"interactionId"in PerformanceEventTiming.prototype))return;const r=$o();Ts(()=>{r6();const n=Po("INP");let a;const o=uu(t,a6),i=c=>{Hh(()=>{for(const d of c)o._processEntry(d);const l=o._estimateP98LongestInteraction();l&&l._latency!==n.value&&(n.value=l._latency,n.entries=l.entries,a())})},s=Sa("event",i,{durationThreshold:t.durationThreshold??i6});a=Co(e,n,o6,t.reportAllChanges),s&&(s.observe({type:"first-input",buffered:!0}),r.onHidden(()=>{i(s.takeRecords()),a(!0)}))})},c6=class{_processEntry(e){this._onBeforeProcessingEntry?.(e)}},l6=[2500,4e3],u6=(e,t={})=>{Ts(()=>{const r=$o(),n=Po("LCP");let a;const o=uu(t,c6),i=c=>{t.reportAllChanges||(c=c.slice(-1));for(const l of c)o._processEntry(l),l.startTime{i(s.takeRecords()),s.disconnect(),a(!0)}),l=d=>{d.isTrusted&&(Hh(c),Vi(d.type,l,{capture:!0}))};for(const d of["keydown","click","visibilitychange"])Ur(d,l,{capture:!0})}})},d6=[800,1800],dl=e=>{le.document?.prerendering?Ts(()=>dl(e)):le.document?.readyState!=="complete"?addEventListener("load",()=>dl(e),!0):setTimeout(e)},p6=(e,t={})=>{const r=Po("TTFB"),n=Co(e,r,d6,t.reportAllChanges);dl(()=>{const a=Ro();a&&(r.value=Math.max(a.responseStart-ka(),0),r.entries=[a],n(!0))})},qa={},Bi={},Uh,jh,qh,Gh;function Wh(e,t=!1){return Is("cls",e,h6,Uh,t)}function Zh(e,t=!1){return Is("lcp",e,g6,jh,t)}function f6(e){return Is("ttfb",e,v6,qh)}function m6(e){return Is("inp",e,y6,Gh)}function to(e,t){return Kh(e,t),Bi[e]||(b6(e),Bi[e]=!0),Yh(e,t)}function Ao(e,t){const r=qa[e];if(r?.length)for(const n of r)try{n(t)}catch(a){Io&&M.error(`Error while triggering instrumentation handler. Type: ${e} Name: ${_r(n)} Error:`,a)}}function h6(){return e6(e=>{Ao("cls",{metric:e}),Uh=e},{reportAllChanges:!0})}function g6(){return u6(e=>{Ao("lcp",{metric:e}),jh=e},{reportAllChanges:!0})}function v6(){return p6(e=>{Ao("ttfb",{metric:e}),qh=e})}function y6(){return s6(e=>{Ao("inp",{metric:e}),Gh=e})}function Is(e,t,r,n,a=!1){Kh(e,t);let o;return Bi[e]||(o=r(),Bi[e]=!0),n&&t({metric:n}),Yh(e,t,a?o:void 0)}function b6(e){const t={};e==="event"&&(t.durationThreshold=0),Sa(e,r=>{Ao(e,{entries:r})},t)}function Kh(e,t){qa[e]=qa[e]||[],qa[e].push(t)}function Yh(e,t,r){return()=>{r&&r();const n=qa[e];if(!n)return;const a=n.indexOf(t);a!==-1&&n.splice(a,1)}}function w6(e){return"duration"in e}var _6=e=>{const t=r=>{(r.type==="pagehide"||le.document?.visibilityState==="hidden")&&e(r)};Ur("visibilitychange",t,{capture:!0,once:!0}),Ur("pagehide",t,{capture:!0,once:!0})};function vc(e){return typeof e=="number"&&isFinite(e)}function Zr(e,t,r,{...n}){const a=Ee(e).start_timestamp;return a&&a>t&&typeof e.updateStartTime=="function"&&e.updateStartTime(t),ch(e,()=>{const o=_a({startTime:t,...n});return o&&o.end(r),o})}function pu(e){const t=ke();if(!t)return;const{name:r,transaction:n,attributes:a,startTime:o}=e,{release:i,environment:s,sendDefaultPii:c}=t.getOptions(),l=t.getIntegrationByName("Replay")?.getReplayId(),d=Pe(),u=d.getUser(),f=u!==void 0?u.email||u.id||u.ip_address:void 0;let m;try{m=d.getScopeData().contexts.profile.profile_id}catch{}return _a({name:r,attributes:{release:i,environment:s,user:f||void 0,profile_id:m||void 0,replay_id:l||void 0,transaction:n,"user_agent.original":le.navigator?.userAgent,"client.address":c?"{{auto}}":void 0,...a},startTime:o,experimental:{standalone:!0}})}function Cs(){return le.addEventListener&&le.performance}function qe(e){return e/1e3}function k6(e){let t="unknown",r="unknown",n="";for(const a of e){if(a==="/"){[t,r]=e.split("/");break}if(!isNaN(Number(a))){t=n==="h"?"http":n,r=e.split(n)[1];break}n+=a}return n===e&&(t=n),{name:t,version:r}}function Xh(e){try{return PerformanceObserver.supportedEntryTypes.includes(e)}catch{return!1}}function Jh(e,t){let r,n=!1;function a(s){!n&&r&&t(s,r),n=!0}_6(()=>{a("pagehide")});const o=e.on("beforeStartNavigationSpan",(s,c)=>{c?.isRedirect||(a("navigation"),o(),i())}),i=e.on("afterStartPageLoadSpan",s=>{r=s.spanContext().spanId,i()})}function S6(e){let t=0,r;if(!Xh("layout-shift"))return;const n=Wh(({metric:a})=>{const o=a.entries[a.entries.length-1];o&&(t=a.value,r=o)},!0);Jh(e,(a,o)=>{x6(t,r,o,a),n()})}function x6(e,t,r,n){Io&&M.log(`Sending CLS span (${e})`);const a=t?qe(($t()||0)+t.startTime):Je(),o=Pe().getScopeData().transactionName,i=t?Rt(t.sources[0]?.node):"Layout shift",s={[ze]:"auto.http.browser.cls",[or]:"ui.webvital.cls",[Eo]:0,"sentry.pageload.span_id":r,"sentry.report_event":n};t?.sources&&t.sources.forEach((l,d)=>{s[`cls.source.${d+1}`]=Rt(l.node)});const c=pu({name:i,transaction:o,attributes:s,startTime:a});c&&(c.addEvent("cls",{[So]:"",[xo]:e}),c.end(a))}function E6(e){let t=0,r;if(!Xh("largest-contentful-paint"))return;const n=Zh(({metric:a})=>{const o=a.entries[a.entries.length-1];o&&(t=a.value,r=o)},!0);Jh(e,(a,o)=>{T6(t,r,o,a),n()})}function T6(e,t,r,n){Io&&M.log(`Sending LCP span (${e})`);const a=qe(($t()||0)+(t?.startTime||0)),o=Pe().getScopeData().transactionName,i=t?Rt(t.element):"Largest contentful paint",s={[ze]:"auto.http.browser.lcp",[or]:"ui.webvital.lcp",[Eo]:0,"sentry.pageload.span_id":r,"sentry.report_event":n};t&&(t.element&&(s["lcp.element"]=Rt(t.element)),t.id&&(s["lcp.id"]=t.id),t.url&&(s["lcp.url"]=t.url),t.loadTime!=null&&(s["lcp.loadTime"]=t.loadTime),t.renderTime!=null&&(s["lcp.renderTime"]=t.renderTime),t.size!=null&&(s["lcp.size"]=t.size));const c=pu({name:i,transaction:o,attributes:s,startTime:a});c&&(c.addEvent("lcp",{[So]:"millisecond",[xo]:e}),c.end(a))}function xt(e){return e&&(($t()||performance.timeOrigin)+e)/1e3}function Qh(e){const t={};if(e.nextHopProtocol!=null){const{name:r,version:n}=k6(e.nextHopProtocol);t["network.protocol.version"]=n,t["network.protocol.name"]=r}return $t()||Cs()?.timeOrigin?I6({...t,"http.request.redirect_start":xt(e.redirectStart),"http.request.redirect_end":xt(e.redirectEnd),"http.request.worker_start":xt(e.workerStart),"http.request.fetch_start":xt(e.fetchStart),"http.request.domain_lookup_start":xt(e.domainLookupStart),"http.request.domain_lookup_end":xt(e.domainLookupEnd),"http.request.connect_start":xt(e.connectStart),"http.request.secure_connection_start":xt(e.secureConnectionStart),"http.request.connection_end":xt(e.connectEnd),"http.request.request_start":xt(e.requestStart),"http.request.response_start":xt(e.responseStart),"http.request.response_end":xt(e.responseEnd),"http.request.time_to_first_byte":e.responseStart!=null?e.responseStart/1e3:void 0}):t}function I6(e){return Object.fromEntries(Object.entries(e).filter(([,t])=>t!=null))}var C6=2147483647,Zp=0,Mt={},dt,Hi;function R6({recordClsStandaloneSpans:e,recordLcpStandaloneSpans:t,client:r}){const n=Cs();if(n&&$t()){n.mark&&le.performance.mark("sentry-tracing-init");const a=t?E6(r):N6(),o=D6(),i=e?S6(r):L6();return()=>{a?.(),o(),i?.()}}return()=>{}}function $6(){to("longtask",({entries:e})=>{const t=Pt();if(!t)return;const{op:r,start_timestamp:n}=Ee(t);for(const a of e){const o=qe($t()+a.startTime),i=qe(a.duration);r==="navigation"&&n&&o{const t=Pt();if(t)for(const r of e.getEntries()){if(!r.scripts[0])continue;const n=qe($t()+r.startTime),{start_timestamp:a,op:o}=Ee(t);if(o==="navigation"&&a&&n{const t=Pt();if(t){for(const r of e)if(r.name==="click"){const n=qe($t()+r.startTime),a=qe(r.duration),o={name:Rt(r.target),op:`ui.interaction.${r.name}`,startTime:n,attributes:{[ze]:"auto.ui.browser.metrics"}},i=D0(r.target);i&&(o.attributes["ui.component_name"]=i),Zr(t,n,n+a,o)}}})}function L6(){return Wh(({metric:e})=>{const t=e.entries[e.entries.length-1];t&&(Mt.cls={value:e.value,unit:""},Hi=t)},!0)}function N6(){return Zh(({metric:e})=>{const t=e.entries[e.entries.length-1];t&&(Mt.lcp={value:e.value,unit:"millisecond"},dt=t)},!0)}function D6(){return f6(({metric:e})=>{e.entries[e.entries.length-1]&&(Mt.ttfb={value:e.value,unit:"millisecond"})})}function O6(e,t){const r=Cs(),n=$t();if(!r?.getEntries||!n)return;const a=qe(n),o=r.getEntries(),{op:i,start_timestamp:s}=Ee(e);o.slice(Zp).forEach(c=>{const l=qe(c.startTime),d=qe(Math.max(0,c.duration));if(!(i==="navigation"&&s&&a+l{_3(c,l.value,l.unit)}),e.setAttribute("performance.timeOrigin",a),e.setAttribute("performance.activationStart",ka()),q6(e,t)),dt=void 0,Hi=void 0,Mt={}}function M6(e){if(e?.entryType==="measure")try{return e.detail.devtools.track==="Components ⚛"}catch{return}}function F6(e,t,r,n,a,o){if(M6(t)||["mark","measure"].includes(t.entryType)&&Br(t.name,o))return;const i=Ro(!1),s=qe(i?i.requestStart:0),c=a+Math.max(r,s),l=a+r,d=l+n,u={[ze]:"auto.resource.browser.metrics"};c!==l&&(u["sentry.browser.measure_happened_before_request"]=!0,u["sentry.browser.measure_start_time"]=c),z6(u,t),c<=d&&Zr(e,c,d,{name:t.name,op:t.entryType,attributes:u})}function z6(e,t){try{const r=t.detail;if(!r)return;if(typeof r=="object"){for(const[n,a]of Object.entries(r))if(a&&ea(a))e[`sentry.browser.measure.detail.${n}`]=a;else if(a!==void 0)try{e[`sentry.browser.measure.detail.${n}`]=JSON.stringify(a)}catch{}return}if(ea(r)){e["sentry.browser.measure.detail"]=r;return}try{e["sentry.browser.measure.detail"]=JSON.stringify(r)}catch{}}catch{}}function V6(e,t,r){["unloadEvent","redirect","domContentLoadedEvent","loadEvent","connect"].forEach(n=>{Go(e,t,n,r)}),Go(e,t,"secureConnection",r,"TLS/SSL"),Go(e,t,"fetch",r,"cache"),Go(e,t,"domainLookup",r,"DNS"),H6(e,t,r)}function Go(e,t,r,n,a=r){const o=t[B6(r)],i=t[`${r}Start`];!i||!o||Zr(e,n+qe(i),n+qe(o),{op:`browser.${a}`,name:t.name,attributes:{[ze]:"auto.ui.browser.metrics",...r==="redirect"&&t.redirectCount!=null?{"http.redirect_count":t.redirectCount}:{}}})}function B6(e){return e==="secureConnection"?"connectEnd":e==="fetch"?"domainLookupStart":`${e}End`}function H6(e,t,r){const n=r+qe(t.requestStart),a=r+qe(t.responseEnd),o=r+qe(t.responseStart);t.responseEnd&&(Zr(e,n,a,{op:"browser.request",name:t.name,attributes:{[ze]:"auto.ui.browser.metrics"}}),Zr(e,o,a,{op:"browser.response",name:t.name,attributes:{[ze]:"auto.ui.browser.metrics"}}))}function U6(e,t,r,n,a,o,i){if(t.initiatorType==="xmlhttprequest"||t.initiatorType==="fetch")return;const s=t.initiatorType?`resource.${t.initiatorType}`:"resource.other";if(i?.includes(s))return;const c={[ze]:"auto.resource.browser.metrics"},l=vn(r);l.protocol&&(c["url.scheme"]=l.protocol.split(":").pop()),l.host&&(c["server.address"]=l.host),c["url.same_origin"]=r.includes(le.location.origin),G6(t,c,[["responseStatus","http.response.status_code"],["transferSize","http.response_transfer_size"],["encodedBodySize","http.response_content_length"],["decodedBodySize","http.decoded_response_content_length"],["renderBlockingStatus","resource.render_blocking_status"],["deliveryType","http.response_delivery_type"]]);const d={...c,...Qh(t)},u=o+n;Zr(e,u,u+a,{name:r.replace(le.location.origin,""),op:s,attributes:d})}function j6(e){const t=le.navigator;if(!t)return;const r=t.connection;r&&(r.effectiveType&&e.setAttribute("effectiveConnectionType",r.effectiveType),r.type&&e.setAttribute("connectionType",r.type),vc(r.rtt)&&(Mt["connection.rtt"]={value:r.rtt,unit:"millisecond"})),vc(t.deviceMemory)&&e.setAttribute("deviceMemory",`${t.deviceMemory} GB`),vc(t.hardwareConcurrency)&&e.setAttribute("hardwareConcurrency",String(t.hardwareConcurrency))}function q6(e,t){dt&&t.recordLcpOnPageloadSpan&&(dt.element&&e.setAttribute("lcp.element",Rt(dt.element)),dt.id&&e.setAttribute("lcp.id",dt.id),dt.url&&e.setAttribute("lcp.url",dt.url.trim().slice(0,200)),dt.loadTime!=null&&e.setAttribute("lcp.loadTime",dt.loadTime),dt.renderTime!=null&&e.setAttribute("lcp.renderTime",dt.renderTime),e.setAttribute("lcp.size",dt.size)),Hi?.sources&&t.recordClsOnPageloadSpan&&Hi.sources.forEach((r,n)=>e.setAttribute(`cls.source.${n+1}`,Rt(r.node)))}function G6(e,t,r){r.forEach(([n,a])=>{const o=e[n];o!=null&&(typeof o=="number"&&o{const n=le[r]?.prototype;n?.hasOwnProperty?.("addEventListener")&&(_t(n,"addEventListener",function(a){return function(o,i,s){if(o==="click"||o=="keypress")try{const c=this.__sentry_instrumentation_handlers__=this.__sentry_instrumentation_handlers__||{},l=c[o]=c[o]||{refCount:0};if(!l.handler){const d=Yp(e);l.handler=d,a.call(this,o,d,s)}l.refCount++}catch{}return a.call(this,o,i,s)}}),_t(n,"removeEventListener",function(a){return function(o,i,s){if(o==="click"||o=="keypress")try{const c=this.__sentry_instrumentation_handlers__||{},l=c[o];l&&(l.refCount--,l.refCount<=0&&(a.call(this,o,l.handler,s),l.handler=void 0,delete c[o]),Object.keys(c).length===0&&delete this.__sentry_instrumentation_handlers__)}catch{}return a.call(this,o,i,s)}}))})}function X6(e){if(e.type!==pl)return!1;try{if(!e.target||e.target._sentryId!==fl)return!1}catch{}return!0}function J6(e,t){return e!=="keypress"?!1:t?.tagName?!(t.tagName==="INPUT"||t.tagName==="TEXTAREA"||t.isContentEditable):!0}function Yp(e,t=!1){return r=>{if(!r||r._sentryCaptured)return;const n=Q6(r);if(J6(r.type,n))return;ht(r,"_sentryCaptured",!0),n&&!n._sentryId&&ht(n,"_sentryId",It());const a=r.type==="keypress"?"input":r.type;X6(r)||(e({event:r,name:a,global:t}),pl=r.type,fl=n?n._sentryId:void 0),clearTimeout(Kp),Kp=le.setTimeout(()=>{fl=void 0,pl=void 0},Z6)}}function Q6(e){try{return e.target}catch{return null}}var Wo;function fu(e){const t="history";Jr(t,e),Qr(t,e4)}function e4(){if(le.addEventListener("popstate",()=>{const t=le.location.href,r=Wo;Wo=t,r!==t&&Tt("history",{from:r,to:t})}),!b5())return;function e(t){return function(...r){const n=r.length>2?r[2]:void 0;if(n){const a=Wo,o=t4(String(n));if(Wo=o,a===o)return t.apply(this,r);Tt("history",{from:a,to:o})}return t.apply(this,r)}}_t(le.history,"pushState",e),_t(le.history,"replaceState",e)}function t4(e){try{return new URL(e,le.location.origin).toString()}catch{return e}}var wi={};function r4(e){const t=wi[e];if(t)return t;let r=le[e];if(ol(r))return wi[e]=r.bind(le);const n=le.document;if(n&&typeof n.createElement=="function")try{const a=n.createElement("iframe");a.hidden=!0,n.head.appendChild(a);const o=a.contentWindow;o?.[e]&&(r=o[e]),n.head.removeChild(a)}catch(a){Io&&M.warn(`Could not create sandbox iframe for ${e} check, bailing to window.${e}: `,a)}return r&&(wi[e]=r.bind(le))}function n4(e){wi[e]=void 0}var Gn="__sentry_xhr_v3__";function eg(e){Jr("xhr",e),Qr("xhr",a4)}function a4(){if(!le.XMLHttpRequest)return;const e=XMLHttpRequest.prototype;e.open=new Proxy(e.open,{apply(t,r,n){const a=new Error,o=Je()*1e3,i=yr(n[0])?n[0].toUpperCase():void 0,s=o4(n[1]);if(!i||!s)return t.apply(r,n);r[Gn]={method:i,url:s,request_headers:{}},i==="POST"&&s.match(/sentry_key/)&&(r.__sentry_own_request__=!0);const c=()=>{const l=r[Gn];if(l&&r.readyState===4){try{l.status_code=r.status}catch{}Tt("xhr",{endTimestamp:Je()*1e3,startTimestamp:o,xhr:r,virtualError:a})}};return"onreadystatechange"in r&&typeof r.onreadystatechange=="function"?r.onreadystatechange=new Proxy(r.onreadystatechange,{apply(l,d,u){return c(),l.apply(d,u)}}):r.addEventListener("readystatechange",c),r.setRequestHeader=new Proxy(r.setRequestHeader,{apply(l,d,u){const[f,m]=u,h=d[Gn];return h&&yr(f)&&yr(m)&&(h.request_headers[f.toLowerCase()]=m),l.apply(d,u)}}),t.apply(r,n)}}),e.send=new Proxy(e.send,{apply(t,r,n){const a=r[Gn];return a&&(n[0]!==void 0&&(a.body=n[0]),Tt("xhr",{startTimestamp:Je()*1e3,xhr:r})),t.apply(r,n)}})}function o4(e){if(yr(e))return e;try{return e.toString()}catch{}}function i4(e){let t;try{t=e.getAllResponseHeaders()}catch(r){return Io&&M.error(r,"Failed to get xhr response headers",e),{}}return t?t.split(`\r `).reduce((r,n)=>{const[a,o]=n.split(": ");return o&&(r[a.toLowerCase()]=o),r},{}):{}}var yc=[],_i=new Map,Bn=new Map,s4=60;function c4(){if(Cs()&&$t()){const e=l4();return()=>{e()}}return()=>{}}var ml={click:"click",pointerdown:"click",pointerup:"click",mousedown:"click",mouseup:"click",touchstart:"click",touchend:"click",mouseover:"hover",mouseout:"hover",mouseenter:"hover",mouseleave:"hover",pointerover:"hover",pointerout:"hover",pointerenter:"hover",pointerleave:"hover",dragstart:"drag",dragend:"drag",drag:"drag",dragenter:"drag",dragleave:"drag",dragover:"drag",drop:"drag",keydown:"press",keyup:"press",keypress:"press",input:"press"};function l4(){return m6(u4)}var u4=({metric:e})=>{if(e.value==null)return;const t=qe(e.value);if(t>s4)return;const r=e.entries.find(f=>f.duration===e.value&&ml[f.name]);if(!r)return;const{interactionId:n}=r,a=ml[r.name],o=qe($t()+r.startTime),i=Pt(),s=i?mt(i):void 0,c=n!=null?_i.get(n):void 0,l=c?.span||s,d=l?Ee(l).description:Pe().getScopeData().transactionName,u=pu({name:c?.elementName||Rt(r.target),transaction:d,attributes:{[ze]:"auto.http.browser.inp",[or]:`ui.interaction.${a}`,[Eo]:r.duration},startTime:o});u&&(u.addEvent("inp",{[So]:"millisecond",[xo]:e.value}),u.end(o+t))};function d4(){const e=Object.keys(ml);$5()&&e.forEach(a=>{le.addEventListener(a,t,{capture:!0,passive:!0})});function t(a){const o=a.target;if(!o)return;const i=Rt(o),s=Math.round(a.timeStamp);if(Bn.set(s,i),Bn.size>50){const c=Bn.keys().next().value;c!==void 0&&Bn.delete(c)}}function r(a){const o=Math.round(a.startTime);let i=Bn.get(o);if(!i)for(let s=-5;s<=5;s++){const c=Bn.get(o+s);if(c){i=c;break}}return i||""}const n=({entries:a})=>{const o=Pt(),i=o&&mt(o);a.forEach(s=>{if(!w6(s))return;const c=s.interactionId;if(c==null||_i.has(c))return;const l=s.target?Rt(s.target):r(s);if(yc.length>10){const d=yc.shift();_i.delete(d)}yc.push(c),_i.set(c,{span:i,elementName:l})})};to("event",n),to("first-input",n)}var p4=40;function f4(e,t=r4("fetch")){let r=0,n=0;async function a(o){const i=o.body.length;r+=i,n++;const s={body:o.body,method:"POST",referrerPolicy:"strict-origin",headers:e.headers,keepalive:r<=6e4&&n<15,...e.fetchOptions};try{const c=await t(e.url,s);return{statusCode:c.status,headers:{"x-sentry-rate-limits":c.headers.get("X-Sentry-Rate-Limits"),"retry-after":c.headers.get("Retry-After")}}}catch(c){throw n4("fetch"),c}finally{r-=i,n--}}return wk(e,a,au(e.bufferSize||p4))}var kt=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__,m4=30,h4=50;function hl(e,t,r,n){const a={filename:e,function:t===""?"?":t,in_app:!0};return r!==void 0&&(a.lineno=r),n!==void 0&&(a.colno=n),a}var g4=/^\s*at (\S+?)(?::(\d+))(?::(\d+))\s*$/i,v4=/^\s*at (?:(.+?\)(?: \[.+\])?|.*?) ?\((?:address at )?)?(?:async )?((?:|[-a-z]+:|.*bundle|\/)?.*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,y4=/\((\S*)(?::(\d+))(?::(\d+))\)/,b4=/at (.+?) ?\(data:(.+?),/,w4=e=>{const t=e.match(b4);if(t)return{filename:``,function:t[1]};const r=g4.exec(e);if(r){const[,a,o,i]=r;return hl(a,"?",+o,+i)}const n=v4.exec(e);if(n){if(n[2]?.indexOf("eval")===0){const i=y4.exec(n[2]);i&&(n[2]=i[1],n[3]=i[2],n[4]=i[3])}const[a,o]=tg(n[1]||"?",n[2]);return hl(o,a,n[3]?+n[3]:void 0,n[4]?+n[4]:void 0)}},_4=[m4,w4],k4=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:[-a-z]+)?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js)|\/[\w\-. /=]+)(?::(\d+))?(?::(\d+))?\s*$/i,S4=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i,x4=e=>{const t=k4.exec(e);if(t){if(t[3]&&t[3].indexOf(" > eval")>-1){const a=S4.exec(t[3]);a&&(t[1]=t[1]||"eval",t[3]=a[1],t[4]=a[2],t[5]="")}let r=t[3],n=t[1]||"?";return[n,r]=tg(n,r),hl(r,n,t[4]?+t[4]:void 0,t[5]?+t[5]:void 0)}},E4=[h4,x4],T4=[_4,E4],I4=C0(...T4),tg=(e,t)=>{const r=e.indexOf("safari-extension")!==-1,n=e.indexOf("safari-web-extension")!==-1;return r||n?[e.indexOf("@")!==-1?e.split("@")[0]:"?",r?`safari-extension:${t}`:`safari-web-extension:${t}`]:[e,t]},Zo=1024,C4="Breadcrumbs",R4=((e={})=>{const t={console:!0,dom:!0,fetch:!0,history:!0,sentry:!0,xhr:!0,...e};return{name:C4,setup(r){t.console&&t5(L4(r)),t.dom&&K6(A4(r,t.dom)),t.xhr&&eg(N4(r)),t.fetch&&Nh(D4(r)),t.history&&fu(O4(r)),t.sentry&&r.on("beforeSendEvent",P4(r))}}}),$4=R4;function P4(e){return function(r){ke()===e&&_n({category:`sentry.${r.type==="transaction"?"transaction":"event"}`,event_id:r.event_id,level:r.level,message:fn(r)},{event:r})}}function A4(e,t){return function(n){if(ke()!==e)return;let a,o,i=typeof t=="object"?t.serializeAttribute:void 0,s=typeof t=="object"&&typeof t.maxStringLength=="number"?t.maxStringLength:void 0;s&&s>Zo&&(kt&&M.warn(`\`dom.maxStringLength\` cannot exceed ${Zo}, but a value of ${s} was configured. Sentry will use ${Zo} instead.`),s=Zo),typeof i=="string"&&(i=[i]);try{const l=n.event,d=M4(l)?l.target:l;a=Rt(d,{keyAttrs:i,maxStringLength:s}),o=D0(d)}catch{a=""}if(a.length===0)return;const c={category:`ui.${n.name}`,message:a};o&&(c.data={"ui.component_name":o}),_n(c,{event:n.event,name:n.name,global:n.global})}}function L4(e){return function(r){if(ke()!==e)return;const n={category:"console",data:{arguments:r.args,logger:"console"},level:n5(r.level),message:sp(r.args," ")};if(r.level==="assert")if(r.args[0]===!1)n.message=`Assertion failed: ${sp(r.args.slice(1)," ")||"console.assert"}`,n.data.arguments=r.args.slice(1);else return;_n(n,{input:r.args,level:r.level})}}function N4(e){return function(r){if(ke()!==e)return;const{startTimestamp:n,endTimestamp:a}=r,o=r.xhr[Gn];if(!n||!a||!o)return;const{method:i,url:s,status_code:c,body:l}=o,d={method:i,url:s,status_code:c},u={xhr:r.xhr,input:l,startTimestamp:n,endTimestamp:a},f={category:"xhr",data:d,type:"http",level:Lh(c)};e.emit("beforeOutgoingRequestBreadcrumb",f,u),_n(f,u)}}function D4(e){return function(r){if(ke()!==e)return;const{startTimestamp:n,endTimestamp:a}=r;if(a&&!(r.fetchData.url.match(/sentry_key/)&&r.fetchData.method==="POST"))if(r.error){const o={data:r.error,input:r.args,startTimestamp:n,endTimestamp:a},i={category:"fetch",data:r.fetchData,level:"error",type:"http"};e.emit("beforeOutgoingRequestBreadcrumb",i,o),_n(i,o)}else{const o=r.response,i={...r.fetchData,status_code:o?.status},s={input:r.args,response:o,startTimestamp:n,endTimestamp:a},c={category:"fetch",data:i,type:"http",level:Lh(i.status_code)};e.emit("beforeOutgoingRequestBreadcrumb",c,s),_n(c,s)}}}function O4(e){return function(r){if(ke()!==e)return;let n=r.from,a=r.to;const o=vn(be.location.href);let i=n?vn(n):void 0;const s=vn(a);i?.path||(i=o),o.protocol===s.protocol&&o.host===s.host&&(a=s.relative),o.protocol===i.protocol&&o.host===i.host&&(n=i.relative),_n({category:"navigation",data:{from:n,to:a}})}}function M4(e){return!!e&&!!e.target}var F4="EventTarget,Window,Node,ApplicationCache,AudioTrackList,BroadcastChannel,ChannelMergerNode,CryptoOperation,EventSource,FileReader,HTMLUnknownElement,IDBDatabase,IDBRequest,IDBTransaction,KeyOperation,MediaController,MessagePort,ModalWindow,Notification,SVGElementInstance,Screen,SharedWorker,TextTrack,TextTrackCue,TextTrackList,WebSocket,WebSocketWorker,Worker,XMLHttpRequest,XMLHttpRequestEventTarget,XMLHttpRequestUpload".split(","),z4="BrowserApiErrors",V4=((e={})=>{const t={XMLHttpRequest:!0,eventTarget:!0,requestAnimationFrame:!0,setInterval:!0,setTimeout:!0,unregisterOriginalCallbacks:!1,...e};return{name:z4,setupOnce(){t.setTimeout&&_t(be,"setTimeout",Xp),t.setInterval&&_t(be,"setInterval",Xp),t.requestAnimationFrame&&_t(be,"requestAnimationFrame",H4),t.XMLHttpRequest&&"XMLHttpRequest"in be&&_t(XMLHttpRequest.prototype,"send",U4);const r=t.eventTarget;r&&(Array.isArray(r)?r:F4).forEach(n=>j4(n,t))}}}),B4=V4;function Xp(e){return function(...t){const r=t[0];return t[0]=aa(r,{mechanism:{handled:!1,type:`auto.browser.browserapierrors.${_r(e)}`}}),e.apply(this,t)}}function H4(e){return function(t){return e.apply(this,[aa(t,{mechanism:{data:{handler:_r(e)},handled:!1,type:"auto.browser.browserapierrors.requestAnimationFrame"}})])}}function U4(e){return function(...t){const r=this;return["onload","onerror","onprogress","onreadystatechange"].forEach(n=>{n in r&&typeof r[n]=="function"&&_t(r,n,function(a){const o={mechanism:{data:{handler:_r(a)},handled:!1,type:`auto.browser.browserapierrors.xhr.${n}`}},i=eu(a);return i&&(o.mechanism.data.handler=_r(i)),aa(a,o)})}),e.apply(this,t)}}function j4(e,t){const r=be[e]?.prototype;r?.hasOwnProperty?.("addEventListener")&&(_t(r,"addEventListener",function(n){return function(a,o,i){try{q4(o)&&(o.handleEvent=aa(o.handleEvent,{mechanism:{data:{handler:_r(o),target:e},handled:!1,type:"auto.browser.browserapierrors.handleEvent"}}))}catch{}return t.unregisterOriginalCallbacks&&G4(this,a,o),n.apply(this,[a,aa(o,{mechanism:{data:{handler:_r(o),target:e},handled:!1,type:"auto.browser.browserapierrors.addEventListener"}}),i])}}),_t(r,"removeEventListener",function(n){return function(a,o,i){try{const s=o.__sentry_wrapped__;s&&n.call(this,a,s,i)}catch{}return n.call(this,a,o,i)}}))}function q4(e){return typeof e.handleEvent=="function"}function G4(e,t,r){e&&typeof e=="object"&&"removeEventListener"in e&&typeof e.removeEventListener=="function"&&e.removeEventListener(t,r)}var W4=(e={})=>{const t=e.lifecycle??"route";return{name:"BrowserSession",setupOnce(){if(typeof be.document>"u"){kt&&M.warn("Using the `browserSessionIntegration` in non-browser environments is not supported.");return}Rp({ignoreDuration:!0}),dc();const r=sr();let n=r.getUser();r.addScopeListener(a=>{const o=a.getUser();(n?.id!==o?.id||n?.ip_address!==o?.ip_address)&&(dc(),n=o)}),t==="route"&&fu(({from:a,to:o})=>{a!==o&&(Rp({ignoreDuration:!0}),dc())})}}},Z4="CultureContext",K4=(()=>({name:Z4,preprocessEvent(e){const t=X4();t&&(e.contexts={...e.contexts,culture:{...t,...e.contexts?.culture}})}})),Y4=K4;function X4(){try{const e=be.Intl;if(!e)return;const t=e.DateTimeFormat().resolvedOptions();return{locale:t.locale,timezone:t.timeZone,calendar:t.calendar}}catch{return}}var J4="GlobalHandlers",Q4=((e={})=>{const t={onerror:!0,onunhandledrejection:!0,...e};return{name:J4,setupOnce(){Error.stackTraceLimit=50},setup(r){t.onerror&&(tS(r),Jp("onerror")),t.onunhandledrejection&&(rS(r),Jp("onunhandledrejection"))}}}),eS=Q4;function tS(e){$0(t=>{const{stackParser:r,attachStacktrace:n}=rg();if(ke()!==e||Oh())return;const{msg:a,url:o,line:i,column:s,error:c}=t,l=oS(lu(r,c||a,void 0,n,!1),o,i,s);l.level="error",mh(l,{originalException:c,mechanism:{handled:!1,type:"auto.browser.global_handlers.onerror"}})})}function rS(e){P0(t=>{const{stackParser:r,attachStacktrace:n}=rg();if(ke()!==e||Oh())return;const a=nS(t),o=ea(a)?aS(a):lu(r,a,void 0,n,!0);o.level="error",mh(o,{originalException:a,mechanism:{handled:!1,type:"auto.browser.global_handlers.onunhandledrejection"}})})}function nS(e){if(ea(e))return e;try{if("reason"in e)return e.reason;if("detail"in e&&"reason"in e.detail)return e.detail.reason}catch{}return e}function aS(e){return{exception:{values:[{type:"UnhandledRejection",value:`Non-Error promise rejection captured with value: ${String(e)}`}]}}}function oS(e,t,r,n){const a=e.exception=e.exception||{},o=a.values=a.values||[],i=o[0]=o[0]||{},s=i.stacktrace=i.stacktrace||{},c=s.frames=s.frames||[];return c.length===0&&c.push({colno:n,lineno:r,filename:iS(t)??bo(),function:"?",in_app:!0}),e}function Jp(e){kt&&M.log(`Global Handler attached: ${e}`)}function rg(){return ke()?.getOptions()||{stackParser:()=>[],attachStacktrace:!1}}function iS(e){if(!(!yr(e)||e.length===0))return e.startsWith("data:")?`<${Hr(e,!1)}>`:e}var sS=()=>({name:"HttpContext",preprocessEvent(e){if(!be.navigator&&!be.location&&!be.document)return;const t=iu(),r={...t.headers,...e.request?.headers};e.request={...t,...e.request,headers:r}}}),cS="cause",lS=5,uS="LinkedErrors",dS=((e={})=>{const t=e.limit||lS,r=e.key||cS;return{name:uS,preprocessEvent(n,a,o){e5(su,o.getOptions().stackParser,r,t,n,a)}}}),pS=dS;function fS(){return mS()?(kt&&Rn(()=>{console.error("[Sentry] You cannot use Sentry.init() in a browser extension, see: https://docs.sentry.io/platforms/javascript/best-practices/browser-extensions/")}),!0):!1}function mS(){if(typeof be.window>"u")return!1;const e=be;if(e.nw||!(e.chrome||e.browser)?.runtime?.id)return!1;const t=bo();return!(be===be.top&&/^(?:chrome-extension|moz-extension|ms-browser-extension|safari-web-extension):\/\//.test(t))}function ng(e){return[Gk(),Hk(),p5(),B4(),$4(),eS(),pS(),i5(),sS(),Y4(),W4()]}function hS(e={}){const t=!e.skipBrowserExtensionCheck&&fS();let r=e.defaultIntegrations==null?ng():e.defaultIntegrations;return Pk(j5,{...e,enabled:t?!1:e.enabled,stackParser:qw(e.stackParser||I4),integrations:ik({integrations:e.integrations,defaultIntegrations:r}),transport:e.transport||f4})}function gS(e){return e.split(",").some(t=>t.trim().startsWith("sentry-"))}function ag(e){try{return new URL(e,be.location.origin).href}catch{return}}function vS(e){return e.entryType==="resource"&&"initiatorType"in e&&typeof e.nextHopProtocol=="string"&&(e.initiatorType==="fetch"||e.initiatorType==="xmlhttprequest")}function og(e){try{return new Headers(e)}catch{return}}var Qp=new WeakMap,bc=new Map,ig={traceFetch:!0,traceXHR:!0,enableHTTPTimings:!0,trackFetchStreamPerformance:!1};function yS(e,t){const{traceFetch:r,traceXHR:n,trackFetchStreamPerformance:a,shouldCreateSpanForRequest:o,enableHTTPTimings:i,tracePropagationTargets:s,onRequestSpanStart:c,onRequestSpanEnd:l}={...ig,...t},d=typeof o=="function"?o:h=>!0,u=h=>bS(h,s),f={},m=e.getOptions().propagateTraceparent;r&&(e.addEventProcessor(h=>(h.type==="transaction"&&h.spans&&h.spans.forEach(g=>{if(g.op==="http.client"){const v=bc.get(g.span_id);v&&(g.timestamp=v/1e3,bc.delete(g.span_id))}}),h)),a&&k5(h=>{if(h.response){const g=Qp.get(h.response);g&&h.endTimestamp&&bc.set(g,h.endTimestamp)}}),Nh(h=>{const g=f5(h,d,u,f,{propagateTraceparent:m,onRequestSpanEnd:l});if(h.response&&h.fetchData.__span&&Qp.set(h.response,h.fetchData.__span),g){const v=ag(h.fetchData.url),b=v?vn(v).host:void 0;g.setAttributes({"http.url":v?Hr(v):void 0,"server.address":b}),i&&ef(g),c?.(g,{headers:h.headers})}})),n&&eg(h=>{const g=wS(h,d,u,f,m,l);g&&(i&&ef(g),c?.(g,{headers:og(h.xhr.__sentry_xhr_v3__?.request_headers)}))})}function ef(e){const{url:t}=Ee(e).data;if(!t||typeof t!="string")return;const r=to("resource",({entries:n})=>{n.forEach(a=>{vS(a)&&a.name.endsWith(t)&&(e.setAttributes(Qh(a)),setTimeout(r))})})}function bS(e,t){const r=bo();if(r){let n,a;try{n=new URL(e,r),a=new URL(r).origin}catch{return!1}const o=n.origin===a;return t?Br(n.toString(),t)||o&&Br(n.pathname,t):o}else{const n=!!e.match(/^\/(?!\/)/);return t?Br(e,t):n}}function wS(e,t,r,n,a,o){const i=e.xhr,s=i?.[Gn];if(!i||i.__sentry_own_request__||!s)return;const{url:c,method:l}=s,d=Vt()&&t(c);if(e.endTimestamp){const b=i.__sentry_xhr_span_id__;if(!b)return;const I=n[b];I&&(d&&s.status_code!==void 0&&(U0(I,s.status_code),I.end(),o?.(I,{headers:og(i4(i)),error:e.error})),delete n[b]);return}const u=ag(c),f=vn(u||c),m=Hr(Dk(c)),h=!!Pt(),g=d&&h?_a({name:`${l} ${m}`,attributes:{url:Hr(c),type:"xhr","http.method":l,"http.url":u?Hr(u):void 0,"server.address":f?.host,[ze]:"auto.http.browser",[or]:"http.client",...f?.search&&{"http.query":f?.search},...f?.hash&&{"http.fragment":f?.hash}}}):new wn;i.__sentry_xhr_span_id__=g.spanContext().spanId,n[i.__sentry_xhr_span_id__]=g,r(c)&&_S(i,Vt()&&h?g:void 0,a);const v=ke();return v&&v.emit("beforeOutgoingRequestSpan",g,e),g}function _S(e,t,r){const{"sentry-trace":n,baggage:a,traceparent:o}=Rh({span:t,propagateTraceparent:r});n&&kS(e,n,a,o)}function kS(e,t,r,n){const a=e.__sentry_xhr_v3__?.request_headers;if(!(a?.["sentry-trace"]||!e.setRequestHeader))try{if(e.setRequestHeader("sentry-trace",t),n&&!a?.traceparent&&e.setRequestHeader("traceparent",n),r){const o=a?.baggage;(!o||!gS(o))&&e.setRequestHeader("baggage",r)}}catch{}}function SS(){be.document?be.document.addEventListener("visibilitychange",()=>{const e=Pt();if(!e)return;const t=mt(e);if(be.document.hidden&&t){const r="cancelled",{op:n,status:a}=Ee(t);kt&&M.log(`[Tracing] Transaction: ${r} -> since tab moved to the background, op: ${n}`),a||t.setStatus({code:2,message:r}),t.setAttribute("sentry.cancellation_reason","document.hidden"),t.end()}}):kt&&M.warn("[Tracing] Could not set up background tab detection due to lack of global document")}var sg="sentry_previous_trace",xS="sentry.previous_trace";function ES(e,{linkPreviousTrace:t,consistentTraceSampling:r}){const n=t==="session-storage";let a=n?CS():void 0;e.on("spanStart",i=>{if(mt(i)!==i)return;const s=Pe().getPropagationContext();a=TS(a,i,s),n&&IS(a)});let o=!0;r&&e.on("beforeSampling",i=>{if(!a)return;const s=Pe(),c=s.getPropagationContext();if(o&&c.parentSpanId){o=!1;return}s.setPropagationContext({...c,dsc:{...c.dsc,sample_rate:String(a.sampleRate),sampled:String(gl(a.spanContext))},sampleRand:a.sampleRand}),i.parentSampled=gl(a.spanContext),i.parentSampleRate=a.sampleRate,i.spanAttributes={...i.spanAttributes,[x_]:a.sampleRate}})}function TS(e,t,r){const n=Ee(t);function a(){try{return Number(r.dsc?.sample_rate)??Number(n.data?.["sentry.sample_rate"])}catch{return 0}}const o={spanContext:t.spanContext(),startTimestamp:n.start_timestamp,sampleRate:a(),sampleRand:r.sampleRand};if(!e)return o;const i=e.spanContext;return i.traceId===n.trace_id?e:(Date.now()/1e3-e.startTimestamp<=3600&&(kt&&M.log(`Adding previous_trace \`${JSON.stringify(i)}\` link to span \`${JSON.stringify({op:n.op,...t.spanContext()})}\``),t.addLink({context:i,attributes:{[E_]:"previous_trace"}}),t.setAttribute(xS,`${i.traceId}-${i.spanId}-${gl(i)?1:0}`)),o)}function IS(e){try{be.sessionStorage.setItem(sg,JSON.stringify(e))}catch(t){kt&&M.warn("Could not store previous trace in sessionStorage",t)}}function CS(){try{const e=be.sessionStorage?.getItem(sg);return JSON.parse(e)}catch{return}}function gl(e){return e.traceFlags===1}var RS="BrowserTracing",$S=/Googlebot|Google-InspectionTool|Storebot-Google|Bingbot|Slurp|DuckDuckBot|Baiduspider|YandexBot|Facebot|facebookexternalhit|LinkedInBot|Twitterbot|Applebot/i;function PS(){const e=be.navigator;return e?.userAgent?$S.test(e.userAgent):!1}var AS={...gi,instrumentNavigation:!0,instrumentPageLoad:!0,markBackgroundSpan:!0,enableLongTask:!0,enableLongAnimationFrame:!0,enableInp:!0,ignoreResourceSpans:[],ignorePerformanceApiSpans:[],detectRedirects:!0,linkPreviousTrace:"in-memory",consistentTraceSampling:!1,enableReportPageLoaded:!1,_experiments:{},...ig},LS=((e={})=>{"enableElementTiming"in e&&Rn(()=>{console.warn("[Sentry] `enableElementTiming` is deprecated and no longer has any effect. Use the standalone `elementTimingIntegration` instead.")});const t={name:void 0,source:void 0},r=be.document,{enableInp:n,enableLongTask:a,enableLongAnimationFrame:o,_experiments:{enableInteractions:i,enableStandaloneClsSpans:s,enableStandaloneLcpSpans:c},beforeStartSpan:l,idleTimeout:d,finalTimeout:u,childSpanTimeout:f,markBackgroundSpan:m,traceFetch:h,traceXHR:g,trackFetchStreamPerformance:v,shouldCreateSpanForRequest:b,enableHTTPTimings:I,ignoreResourceSpans:y,ignorePerformanceApiSpans:S,instrumentPageLoad:w,instrumentNavigation:C,detectRedirects:T,linkPreviousTrace:E,consistentTraceSampling:L,enableReportPageLoaded:j,onRequestSpanStart:ue,onRequestSpanEnd:q}={...AS,...e},X=PS();let de,ge,B;function Y(F,D,A=!0){const ve=D.op==="pageload",Oe=D.name,Q=l?l(D):D,ye=Q.attributes||{};if(Oe!==Q.name&&(ye[Et]="custom",Q.attributes=ye),!A){const Re=$n();_a({...Q,startTime:Re}).end(Re);return}t.name=Q.name,t.source=ye[Et];const te=uh(Q,{idleTimeout:d,finalTimeout:u,childSpanTimeout:f,disableAutoFinish:ve,beforeSpanEnd:Re=>{de?.(),O6(Re,{recordClsOnPageloadSpan:!s,recordLcpOnPageloadSpan:!c,ignoreResourceSpans:y,ignorePerformanceApiSpans:S}),nf(F,void 0);const xe=Pe(),Ie=xe.getPropagationContext();xe.setPropagationContext({...Ie,traceId:te.spanContext().traceId,sampled:en(te),dsc:Wr(Re)}),ve&&(B=void 0)},trimIdleSpanEndTimestamp:!j});ve&&j&&(B=te),nf(F,te);function oe(){r&&["interactive","complete"].includes(r.readyState)&&F.emit("idleSpanEnableAutoFinish",te)}ve&&!j&&r&&(r.addEventListener("readystatechange",()=>{oe()}),oe())}return{name:RS,setup(F){if(X){kt&&M.log("[Tracing] Skipping browserTracingIntegration setup for bot user agent.");return}if(J_(),de=R6({recordClsStandaloneSpans:s||!1,recordLcpStandaloneSpans:c||!1,client:F}),n&&c4(),o&&_e.PerformanceObserver&&PerformanceObserver.supportedEntryTypes?.includes("long-animation-frame")?P6():a&&$6(),i&&A6(),T&&r){const A=()=>{ge=Je()};addEventListener("click",A,{capture:!0}),addEventListener("keydown",A,{capture:!0,passive:!0})}function D(){const A=ro(F);A&&!Ee(A).timestamp&&(kt&&M.log(`[Tracing] Finishing current active span with op: ${Ee(A).op}`),A.setAttribute(Oi,"cancelled"),A.end())}F.on("startNavigationSpan",(A,ve)=>{if(ke()!==F)return;if(ve?.isRedirect){kt&&M.warn("[Tracing] Detected redirect, navigation span will not be the root span, but a child span."),Y(F,{op:"navigation.redirect",...A},!1);return}ge=void 0,D(),sr().setPropagationContext({traceId:Sr(),sampleRand:Math.random(),propagationSpanId:Vt()?void 0:br()});const Oe=Pe();Oe.setPropagationContext({traceId:Sr(),sampleRand:Math.random(),propagationSpanId:Vt()?void 0:br()}),Oe.setSDKProcessingMetadata({normalizedRequest:void 0}),Y(F,{op:"navigation",...A,parentSpan:null,forceTransaction:!0})}),F.on("startPageLoadSpan",(A,ve={})=>{if(ke()!==F)return;D();const Oe=U_(ve.sentryTrace||tf("sentry-trace")||rf("sentry-trace"),ve.baggage||tf("baggage")||rf("baggage")),Q=Pe();Q.setPropagationContext(Oe),Vt()||(Q.getPropagationContext().propagationSpanId=br()),Q.setSDKProcessingMetadata({normalizedRequest:iu()}),Y(F,{op:"pageload",...A})}),F.on("endPageloadSpan",()=>{j&&B&&(B.setAttribute(Oi,"reportPageLoaded"),B.end())})},afterAllSetup(F){if(X)return;let D=bo();if(E!=="off"&&ES(F,{linkPreviousTrace:E,consistentTraceSampling:L}),be.location){if(w){const A=$t();cg(F,{name:be.location.pathname,startTime:A?A/1e3:void 0,attributes:{[Et]:"url",[ze]:"auto.pageload.browser"}})}C&&fu(({to:A,from:ve})=>{if(ve===void 0&&D?.indexOf(A)!==-1){D=void 0;return}D=void 0;const Oe=Ch(A),Q=ro(F),ye=Q&&T&&DS(Q,ge);lg(F,{name:Oe?.pathname||be.location.pathname,attributes:{[Et]:"url",[ze]:"auto.navigation.browser"}},{url:A,isRedirect:ye})})}m&&SS(),i&&NS(F,d,u,f,t),n&&d4(),yS(F,{traceFetch:h,traceXHR:g,trackFetchStreamPerformance:v,tracePropagationTargets:F.getOptions().tracePropagationTargets,shouldCreateSpanForRequest:b,enableHTTPTimings:I,onRequestSpanStart:ue,onRequestSpanEnd:q})}}});function cg(e,t,r){e.emit("startPageLoadSpan",t,r),Pe().setTransactionName(t.name);const n=ro(e);return n&&e.emit("afterStartPageLoadSpan",n),n}function lg(e,t,r){const{url:n,isRedirect:a}=r||{};e.emit("beforeStartNavigationSpan",t,{isRedirect:a}),e.emit("startNavigationSpan",t,{isRedirect:a});const o=Pe();return o.setTransactionName(t.name),n&&!a&&o.setSDKProcessingMetadata({normalizedRequest:{...iu(),url:n}}),ro(e)}function tf(e){return be.document?.querySelector(`meta[name=${e}]`)?.getAttribute("content")||void 0}function rf(e){return be.performance?.getEntriesByType?.("navigation")[0]?.serverTiming?.find(t=>t.name===e)?.description}function NS(e,t,r,n,a){const o=be.document;let i;const s=()=>{const c="ui.action.click",l=ro(e);if(l){const d=Ee(l).op;if(["navigation","pageload"].includes(d)){kt&&M.warn(`[Tracing] Did not create ${c} span because a pageload or navigation span is in progress.`);return}}if(i&&(i.setAttribute(Oi,"interactionInterrupted"),i.end(),i=void 0),!a.name){kt&&M.warn(`[Tracing] Did not create ${c} transaction because _latestRouteName is missing.`);return}i=uh({name:a.name,op:c,attributes:{[Et]:a.source||"url"}},{idleTimeout:t,finalTimeout:r,childSpanTimeout:n})};o&&addEventListener("click",s,{capture:!0})}var ug="_sentry_idleSpan";function ro(e){return e[ug]}function nf(e,t){ht(e,ug,t)}var af=1.5;function DS(e,t){const r=Ee(e),n=$n();return!(n-r.start_timestamp>af||t&&n-t<=af)}function OS(e){const t={...e};return ou(t,"react"),Q3("react",{version:Ob}),hS(t)}function MS(e,t={}){const r=e,n=LS({...t,instrumentNavigation:!1,instrumentPageLoad:!1}),{instrumentPageLoad:a=!0,instrumentNavigation:o=!0}=t;return{...n,afterAllSetup(i){n.afterAllSetup(i);const s=be.location;if(a&&s){const c=r.matchRoutes(s.pathname,r.options.parseSearch(s.search),{preload:!1,throwOnError:!1}),l=c[c.length-1],d=l?.routeId!=="__root__"?l:void 0;cg(i,{name:d?d.routeId:s.pathname,attributes:{[or]:"pageload",[ze]:"auto.pageload.react.tanstack_router",[Et]:d?"route":"url",...of(d)}})}o&&r.subscribe("onBeforeNavigate",c=>{if(!c.fromLocation||c.toLocation.state===c.fromLocation.state)return;const l=r.matchRoutes(c.toLocation.pathname,c.toLocation.search,{preload:!1,throwOnError:!1}),d=l[l.length-1],u=d?.routeId!=="__root__"?d:void 0,f=be.location,m=lg(i,{name:u?u.routeId:f.pathname,attributes:{[or]:"navigation",[ze]:"auto.navigation.react.tanstack_router",[Et]:u?"route":"url"}}),h=r.subscribe("onResolved",g=>{if(h(),m){const v=r.matchRoutes(g.toLocation.pathname,g.toLocation.search,{preload:!1,throwOnError:!1}),b=v[v.length-1],I=b?.routeId!=="__root__"?b:void 0;I&&(m.updateName(I.routeId),m.setAttribute(Et,"route"),m.setAttributes(of(I)))}})})}}}function of(e){if(!e)return{};const t={};return Object.entries(e.params).forEach(([r,n])=>{t[`url.path.params.${r}`]=n,t[`url.path.parameter.${r}`]=n,t[`params.${r}`]=n}),t}function FS(e){const t={defaultIntegrations:[...ng(e)],...e};return ou(t,"tanstackstart-react",["tanstackstart-react","react"]),OS(t)}var zS={"~types":void 0,options:{}},VS={"~types":void 0,options:{}};function vl(e){return e!=="__proto__"&&e!=="constructor"&&e!=="prototype"}function yl(e,t){const r=Object.create(null);if(e)for(const n of Object.keys(e))vl(n)&&(r[n]=e[n]);if(t&&typeof t=="object")for(const n of Object.keys(t))vl(n)&&(r[n]=t[n]);return r}function dg(e){if(!e)return Object.create(null);const t=Object.create(null);for(const r of Object.keys(e))vl(r)&&(t[r]=e[r]);return t}var pg=()=>{throw new Error("createServerOnlyFn() functions can only be called on the server!")},Ce=(e,t)=>{const r=t||e||{};typeof r.method>"u"&&(r.method="GET");const n=i=>Ce(void 0,{...r,validator:i,inputValidator:i});return Object.assign(i=>Ce(void 0,{...r,...i}),{options:r,middleware:i=>{const s=[...r.middleware||[]];i.map(l=>{Zd in l?l.options.middleware&&s.push(...l.options.middleware):s.push(l)});const c=Ce(void 0,{...r,middleware:s});return c[Zd]=!0,c},validator:n,inputValidator:n,handler:(...i)=>{const[s,c]=i,l={...r,extractedFn:s,serverFn:c},d=[...l.middleware||[],US(l)];return s.method=r.method,Object.assign(async u=>{const f=await sf(d,"client",{...s,...l,data:u?.data,headers:u?.headers,signal:u?.signal,fetch:u?.fetch,context:dg()}),m=_0(f.error);if(m)throw m;if(f.error)throw f.error;return f.result},{...s,method:r.method,__executeServer:async u=>{const f=pg(),m=f.contextAfterGlobalMiddlewares;return await sf(d,"server",{...s,...u,serverFnMeta:s.serverFnMeta,context:yl(u.context,m),request:f.request}).then(h=>({result:h.result,error:h.error,context:h.sendContext}))}})}})};async function sf(e,t,r){let n=BS([...Zl()?.functionMiddleware||[],...e]);if(t==="server"){const o=pg({throwIfNotFound:!1});o?.executedRequestMiddlewares&&(n=n.filter(i=>!o.executedRequestMiddlewares.has(i)))}const a=async o=>{const i=n.shift();if(!i)return o;try{let s="validator"in i.options?i.options.validator:void 0;!s&&"inputValidator"in i.options&&(s=i.options.inputValidator),s&&t==="server"&&(o.data=await HS(s,o.data));let c;if(t==="client"?"client"in i.options&&(c=i.options.client):"server"in i.options&&(c=i.options.server),c){const d=await c({...o,next:async(u={})=>{const f=await a({...o,...u,context:yl(o.context,u.context),sendContext:yl(o.sendContext,u.sendContext),headers:zb(o.headers,u.headers),_callSiteFetch:o._callSiteFetch,fetch:o._callSiteFetch??u.fetch??o.fetch,result:u.result!==void 0?u.result:u instanceof Response?u:o.result,error:u.error??o.error});if(f.error)throw f.error;return f}});if(Zb(d))return{...o,error:d};if(d instanceof Response)return{...o,result:d};if(!d)throw new Error("User middleware returned undefined. You must call next() or return a result in your middlewares.");return d}return a(o)}catch(s){return{...o,error:s}}};return a({...r,headers:r.headers||{},sendContext:r.sendContext||{},context:r.context||dg(),_callSiteFetch:r.fetch})}function BS(e,t=100){const r=new Set,n=[],a=(o,i)=>{if(i>t)throw new Error(`Middleware nesting depth exceeded maximum of ${t}. Check for circular references.`);o.forEach(s=>{s.options.middleware&&a(s.options.middleware,i+1),r.has(s)||(r.add(s),n.push(s))})};return a(e,0),n}async function HS(e,t){if(e==null)return{};if("~standard"in e){const r=await e["~standard"].validate(t);if(r.issues)throw new Error(JSON.stringify(r.issues,void 0,2));return r.value}if("parse"in e)return e.parse(t);if(typeof e=="function")return e(t);throw new Error("Invalid validator type!")}function US(e){return{"~types":void 0,options:{inputValidator:e.validator??e.inputValidator,client:async({next:t,sendContext:r,fetch:n,...a})=>{const o={...a,context:r,fetch:n};return t(await e.extractedFn?.(o))},server:async({next:t,...r})=>{const n=await e.serverFn?.(r);return t({...r,result:n})}}}}var Va=(e,t)=>{const r={type:"request",...t||e},n=a=>Va({},Object.assign(r,{validator:a,inputValidator:a}));return{options:r,middleware:a=>Va({},Object.assign(r,{middleware:a})),validator:n,inputValidator:n,client:a=>Va({},Object.assign(r,{client:a})),server:a=>Va({},Object.assign(r,{server:a}))}},jS=()=>{};function fg(e,t){for(let r=0,n=t.length;r({getOptions:async()=>{const t=await e();if(t.serializationAdapters){const r=new Set;fg(r,t.serializationAdapters),t.serializationAdapters=Array.from(r)}return t},createMiddleware:Va});function OK(e){return typeof e.when=="function"?e.when()._h(e):e.when._h(e)}var GS=jS({filter:e=>e.handlerType==="serverFn"}),cf=qS(()=>({requestMiddleware:[GS,zS],functionMiddleware:[VS]}));var WS=["token","attr","code-inline","command","comment","deleted","function","heading","inserted","keyword","link","literal","meta","number","operator","property","selector","string","tag","type","variable"];function ZS(e){const t=(e.themes||[...e.light?[{selector:e.lightSelector||":root",theme:e.light}]:[],...e.dark?[{selector:e.darkSelector||".dark",theme:e.dark}]:[]]).map(({selector:r,theme:n})=>KS(r,n)).join(` `);return e.includeBaseStyles===!1?t:`${t} ${YS()}`}function KS(e,t){return`${e} { ${[` --th-background: ${t.background};`,` --th-token: ${t.tokens.token||t.foreground};`,...WS.filter(r=>r!=="token").map(r=>` --th-${r}: ${t.tokens[r]};`)].join(` `)} }`}function YS(){return`pre.th-code { overflow-x: auto; padding: 1rem; background: var(--th-background); color: var(--th-token); } .th-token { color: var(--th-token); } .th-keyword { color: var(--th-keyword); } .th-string { color: var(--th-string); } .th-comment { color: var(--th-comment); } .th-function { color: var(--th-function); } .th-type { color: var(--th-type); } .th-property { color: var(--th-property); } .th-tag { color: var(--th-tag); } .th-attr { color: var(--th-attr); } .th-literal { color: var(--th-literal); } .th-number { color: var(--th-number); } .th-variable { color: var(--th-variable); } .th-operator { color: var(--th-operator); } .th-inserted { color: var(--th-inserted); } .th-deleted { color: var(--th-deleted); } .th-meta { color: var(--th-meta); } .th-heading { color: var(--th-heading); } .th-link { color: var(--th-link); } .th-code-inline { color: var(--th-code-inline); } .th-selector { color: var(--th-selector); } .th-command { color: var(--th-command); }`}var lf={background:"#030712",foreground:"#d1d5db",name:"aurora-x",type:"dark",tokens:{attr:"#79c0ff","code-inline":"#ffa657",command:"#d2a8ff",comment:"#9099c0",deleted:"#ff7b72",function:"#d2a8ff",heading:"#79c0ff",inserted:"#7ee787",keyword:"#ff7b72",link:"#58a6ff",literal:"#79c0ff",meta:"#8b949e",number:"#79c0ff",operator:"#d2a8ff",property:"#79c0ff",selector:"#7ee787",string:"#a5d6ff",tag:"#7ee787",token:"#d1d5db",type:"#ffa657",variable:"#ffa657"}},XS={background:"#ffffff",foreground:"#24292f",name:"github-light",type:"light",tokens:{attr:"#0550ae","code-inline":"#953800",command:"#8250df",comment:"#6e7781",deleted:"#cf222e",function:"#8250df",heading:"#0550ae",inserted:"#1a7f37",keyword:"#cf222e",link:"#0969da",literal:"#0550ae",meta:"#57606a",number:"#0550ae",operator:"#8250df",property:"#0550ae",selector:"#116329",string:"#0a7f64",tag:"#116329",token:"#24292f",type:"#953800",variable:"#953800"}},mg="https://tanstack.com",JS=["/account","/admin","/login"];function QS(e){return e.replace(/\/$/,"")}function hg(e){return!e||e==="/"?"/":(e.startsWith("/")?e:`/${e}`).replace(/\/$/,"")}function gg(e){const t=hg(e);return JS.some(r=>t===r||t.startsWith(`${r}/`))?null:t}function ex(e){return gg(e)!==null}function uf(e,t){const r=QS(mg),n=t&&t!=="?"?t:"";return`${r}${hg(e)}${n}`}var ee=({title:e,description:t,keywords:r,image:n,noindex:a})=>[{title:e},{name:"description",content:t},{name:"keywords",content:r},{name:"twitter:title",content:e},{name:"twitter:description",content:t},{name:"twitter:creator",content:"@tannerlinsley"},{name:"twitter:site",content:"@tannerlinsley"},{property:"og:type",content:"website"},{property:"og:title",content:e},{property:"og:description",content:t},...n?[{name:"twitter:image",content:n},{name:"twitter:card",content:"summary_large_image"},{property:"og:image",content:n}]:[],...a?[{name:"robots",content:"noindex, nofollow"}]:[]],tx="/assets/og-C0HGjoLl.png",rx=(e,t)=>{const r=new Array(e.length+t.length);for(let n=0;n({classGroupId:e,validator:t}),vg=(e=new Map,t=null,r)=>({nextPart:e,validators:t,classGroupId:r}),Ui="-",df=[],ax="arbitrary..",ox=e=>{const t=sx(e),{conflictingClassGroups:r,conflictingClassGroupModifiers:n}=e;return{getClassGroupId:i=>{if(i.startsWith("[")&&i.endsWith("]"))return ix(i);const s=i.split(Ui);return yg(s,s[0]===""&&s.length>1?1:0,t)},getConflictingClassGroupIds:(i,s)=>{if(s){const c=n[i],l=r[i];return c?l?rx(l,c):c:l||df}return r[i]||df}}},yg=(e,t,r)=>{if(e.length-t===0)return r.classGroupId;const n=e[t],a=r.nextPart.get(n);if(a){const c=yg(e,t+1,a);if(c)return c}const o=r.validators;if(o===null)return;const i=t===0?e.join(Ui):e.slice(t).join(Ui),s=o.length;for(let c=0;ce.slice(1,-1).indexOf(":")===-1?void 0:(()=>{const t=e.slice(1,-1),r=t.indexOf(":"),n=t.slice(0,r);return n?ax+n:void 0})(),sx=e=>{const{theme:t,classGroups:r}=e;return cx(r,t)},cx=(e,t)=>{const r=vg();for(const n in e){const a=e[n];mu(a,r,n,t)}return r},mu=(e,t,r,n)=>{const a=e.length;for(let o=0;o{if(typeof e=="string"){ux(e,t,r);return}if(typeof e=="function"){dx(e,t,r,n);return}px(e,t,r,n)},ux=(e,t,r)=>{const n=e===""?t:bg(t,e);n.classGroupId=r},dx=(e,t,r,n)=>{if(fx(e)){mu(e(n),t,r,n);return}t.validators===null&&(t.validators=[]),t.validators.push(nx(r,e))},px=(e,t,r,n)=>{const a=Object.entries(e),o=a.length;for(let i=0;i{let r=e;const n=t.split(Ui),a=n.length;for(let o=0;o"isThemeGetter"in e&&e.isThemeGetter===!0,mx=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,r=Object.create(null),n=Object.create(null);const a=(o,i)=>{r[o]=i,t++,t>e&&(t=0,n=r,r=Object.create(null))};return{get(o){let i=r[o];if(i!==void 0)return i;if((i=n[o])!==void 0)return a(o,i),i},set(o,i){o in r?r[o]=i:a(o,i)}}},bl="!",pf=":",hx=[],ff=(e,t,r,n,a)=>({modifiers:e,hasImportantModifier:t,baseClassName:r,maybePostfixModifierPosition:n,isExternal:a}),gx=e=>{const{prefix:t,experimentalParseClassName:r}=e;let n=a=>{const o=[];let i=0,s=0,c=0,l;const d=a.length;for(let g=0;gc?l-c:void 0;return ff(o,m,f,h)};if(t){const a=t+pf,o=n;n=i=>i.startsWith(a)?o(i.slice(a.length)):ff(hx,!1,i,void 0,!0)}if(r){const a=n;n=o=>r({className:o,parseClassName:a})}return n},vx=e=>{const t=new Map;return e.orderSensitiveModifiers.forEach((r,n)=>{t.set(r,1e6+n)}),r=>{const n=[];let a=[];for(let o=0;o0&&(a.sort(),n.push(...a),a=[]),n.push(i)):a.push(i)}return a.length>0&&(a.sort(),n.push(...a)),n}},yx=e=>({cache:mx(e.cacheSize),parseClassName:gx(e),sortModifiers:vx(e),...ox(e)}),bx=/\s+/,wx=(e,t)=>{const{parseClassName:r,getClassGroupId:n,getConflictingClassGroupIds:a,sortModifiers:o}=t,i=[],s=e.trim().split(bx);let c="";for(let l=s.length-1;l>=0;l-=1){const d=s[l],{isExternal:u,modifiers:f,hasImportantModifier:m,baseClassName:h,maybePostfixModifierPosition:g}=r(d);if(u){c=d+(c.length>0?" "+c:c);continue}let v=!!g,b=n(v?h.substring(0,g):h);if(!b){if(!v){c=d+(c.length>0?" "+c:c);continue}if(b=n(h),!b){c=d+(c.length>0?" "+c:c);continue}v=!1}const I=f.length===0?"":f.length===1?f[0]:o(f).join(":"),y=m?I+bl:I,S=y+b;if(i.indexOf(S)>-1)continue;i.push(S);const w=a(b,v);for(let C=0;C0?" "+c:c)}return c},_x=(...e)=>{let t=0,r,n,a="";for(;t{if(typeof e=="string")return e;let t,r="";for(let n=0;n{let r,n,a,o;const i=c=>(r=yx(t.reduce((l,d)=>d(l),e())),n=r.cache.get,a=r.cache.set,o=s,s(c)),s=c=>{const l=n(c);if(l)return l;const d=wx(c,r);return a(c,d),d};return o=i,(...c)=>o(_x(...c))},Sx=[],Ue=e=>{const t=r=>r[e]||Sx;return t.isThemeGetter=!0,t},_g=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,kg=/^\((?:(\w[\w-]*):)?(.+)\)$/i,xx=/^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/,Ex=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,Tx=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,Ix=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,Cx=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,Rx=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,Or=e=>xx.test(e),me=e=>!!e&&!Number.isNaN(Number(e)),Mr=e=>!!e&&Number.isInteger(Number(e)),wc=e=>e.endsWith("%")&&me(e.slice(0,-1)),hr=e=>Ex.test(e),Sg=()=>!0,$x=e=>Tx.test(e)&&!Ix.test(e),hu=()=>!1,Px=e=>Cx.test(e),Ax=e=>Rx.test(e),Lx=e=>!G(e)&&!W(e),Nx=e=>tn(e,Tg,hu),G=e=>_g.test(e),ln=e=>tn(e,Ig,$x),mf=e=>tn(e,Hx,me),Dx=e=>tn(e,Rg,Sg),Ox=e=>tn(e,Cg,hu),hf=e=>tn(e,xg,hu),Mx=e=>tn(e,Eg,Ax),Ko=e=>tn(e,$g,Px),W=e=>kg.test(e),Fa=e=>An(e,Ig),Fx=e=>An(e,Cg),gf=e=>An(e,xg),zx=e=>An(e,Tg),Vx=e=>An(e,Eg),Yo=e=>An(e,$g,!0),Bx=e=>An(e,Rg,!0),tn=(e,t,r)=>{const n=_g.exec(e);return n?n[1]?t(n[1]):r(n[2]):!1},An=(e,t,r=!1)=>{const n=kg.exec(e);return n?n[1]?t(n[1]):r:!1},xg=e=>e==="position"||e==="percentage",Eg=e=>e==="image"||e==="url",Tg=e=>e==="length"||e==="size"||e==="bg-size",Ig=e=>e==="length",Hx=e=>e==="number",Cg=e=>e==="family-name",Rg=e=>e==="number"||e==="weight",$g=e=>e==="shadow",Ux=()=>{const e=Ue("color"),t=Ue("font"),r=Ue("text"),n=Ue("font-weight"),a=Ue("tracking"),o=Ue("leading"),i=Ue("breakpoint"),s=Ue("container"),c=Ue("spacing"),l=Ue("radius"),d=Ue("shadow"),u=Ue("inset-shadow"),f=Ue("text-shadow"),m=Ue("drop-shadow"),h=Ue("blur"),g=Ue("perspective"),v=Ue("aspect"),b=Ue("ease"),I=Ue("animate"),y=()=>["auto","avoid","all","avoid-page","page","left","right","column"],S=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],w=()=>[...S(),W,G],C=()=>["auto","hidden","clip","visible","scroll"],T=()=>["auto","contain","none"],E=()=>[W,G,c],L=()=>[Or,"full","auto",...E()],j=()=>[Mr,"none","subgrid",W,G],ue=()=>["auto",{span:["full",Mr,W,G]},Mr,W,G],q=()=>[Mr,"auto",W,G],X=()=>["auto","min","max","fr",W,G],de=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],ge=()=>["start","end","center","stretch","center-safe","end-safe"],B=()=>["auto",...E()],Y=()=>[Or,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...E()],F=()=>[Or,"screen","full","dvw","lvw","svw","min","max","fit",...E()],D=()=>[Or,"screen","full","lh","dvh","lvh","svh","min","max","fit",...E()],A=()=>[e,W,G],ve=()=>[...S(),gf,hf,{position:[W,G]}],Oe=()=>["no-repeat",{repeat:["","x","y","space","round"]}],Q=()=>["auto","cover","contain",zx,Nx,{size:[W,G]}],ye=()=>[wc,Fa,ln],te=()=>["","none","full",l,W,G],oe=()=>["",me,Fa,ln],Re=()=>["solid","dashed","dotted","double"],xe=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],Ie=()=>[me,wc,gf,hf],pr=()=>["","none",h,W,G],Nt=()=>["none",me,W,G],vt=()=>["none",me,W,G],Xt=()=>[me,W,G],Lr=()=>[Or,"full",...E()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[hr],breakpoint:[hr],color:[Sg],container:[hr],"drop-shadow":[hr],ease:["in","out","in-out"],font:[Lx],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[hr],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[hr],shadow:[hr],spacing:["px",me],text:[hr],"text-shadow":[hr],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",Or,G,W,v]}],container:["container"],columns:[{columns:[me,G,W,s]}],"break-after":[{"break-after":y()}],"break-before":[{"break-before":y()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],sr:["sr-only","not-sr-only"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:w()}],overflow:[{overflow:C()}],"overflow-x":[{"overflow-x":C()}],"overflow-y":[{"overflow-y":C()}],overscroll:[{overscroll:T()}],"overscroll-x":[{"overscroll-x":T()}],"overscroll-y":[{"overscroll-y":T()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:L()}],"inset-x":[{"inset-x":L()}],"inset-y":[{"inset-y":L()}],start:[{"inset-s":L(),start:L()}],end:[{"inset-e":L(),end:L()}],"inset-bs":[{"inset-bs":L()}],"inset-be":[{"inset-be":L()}],top:[{top:L()}],right:[{right:L()}],bottom:[{bottom:L()}],left:[{left:L()}],visibility:["visible","invisible","collapse"],z:[{z:[Mr,"auto",W,G]}],basis:[{basis:[Or,"full","auto",s,...E()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[me,Or,"auto","initial","none",G]}],grow:[{grow:["",me,W,G]}],shrink:[{shrink:["",me,W,G]}],order:[{order:[Mr,"first","last","none",W,G]}],"grid-cols":[{"grid-cols":j()}],"col-start-end":[{col:ue()}],"col-start":[{"col-start":q()}],"col-end":[{"col-end":q()}],"grid-rows":[{"grid-rows":j()}],"row-start-end":[{row:ue()}],"row-start":[{"row-start":q()}],"row-end":[{"row-end":q()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":X()}],"auto-rows":[{"auto-rows":X()}],gap:[{gap:E()}],"gap-x":[{"gap-x":E()}],"gap-y":[{"gap-y":E()}],"justify-content":[{justify:[...de(),"normal"]}],"justify-items":[{"justify-items":[...ge(),"normal"]}],"justify-self":[{"justify-self":["auto",...ge()]}],"align-content":[{content:["normal",...de()]}],"align-items":[{items:[...ge(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...ge(),{baseline:["","last"]}]}],"place-content":[{"place-content":de()}],"place-items":[{"place-items":[...ge(),"baseline"]}],"place-self":[{"place-self":["auto",...ge()]}],p:[{p:E()}],px:[{px:E()}],py:[{py:E()}],ps:[{ps:E()}],pe:[{pe:E()}],pbs:[{pbs:E()}],pbe:[{pbe:E()}],pt:[{pt:E()}],pr:[{pr:E()}],pb:[{pb:E()}],pl:[{pl:E()}],m:[{m:B()}],mx:[{mx:B()}],my:[{my:B()}],ms:[{ms:B()}],me:[{me:B()}],mbs:[{mbs:B()}],mbe:[{mbe:B()}],mt:[{mt:B()}],mr:[{mr:B()}],mb:[{mb:B()}],ml:[{ml:B()}],"space-x":[{"space-x":E()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":E()}],"space-y-reverse":["space-y-reverse"],size:[{size:Y()}],"inline-size":[{inline:["auto",...F()]}],"min-inline-size":[{"min-inline":["auto",...F()]}],"max-inline-size":[{"max-inline":["none",...F()]}],"block-size":[{block:["auto",...D()]}],"min-block-size":[{"min-block":["auto",...D()]}],"max-block-size":[{"max-block":["none",...D()]}],w:[{w:[s,"screen",...Y()]}],"min-w":[{"min-w":[s,"screen","none",...Y()]}],"max-w":[{"max-w":[s,"screen","none","prose",{screen:[i]},...Y()]}],h:[{h:["screen","lh",...Y()]}],"min-h":[{"min-h":["screen","lh","none",...Y()]}],"max-h":[{"max-h":["screen","lh",...Y()]}],"font-size":[{text:["base",r,Fa,ln]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[n,Bx,Dx]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",wc,G]}],"font-family":[{font:[Fx,Ox,t]}],"font-features":[{"font-features":[G]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:[a,W,G]}],"line-clamp":[{"line-clamp":[me,"none",W,mf]}],leading:[{leading:[o,...E()]}],"list-image":[{"list-image":["none",W,G]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",W,G]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:A()}],"text-color":[{text:A()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...Re(),"wavy"]}],"text-decoration-thickness":[{decoration:[me,"from-font","auto",W,ln]}],"text-decoration-color":[{decoration:A()}],"underline-offset":[{"underline-offset":[me,"auto",W,G]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:E()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",W,G]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],wrap:[{wrap:["break-word","anywhere","normal"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",W,G]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:ve()}],"bg-repeat":[{bg:Oe()}],"bg-size":[{bg:Q()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},Mr,W,G],radial:["",W,G],conic:[Mr,W,G]},Vx,Mx]}],"bg-color":[{bg:A()}],"gradient-from-pos":[{from:ye()}],"gradient-via-pos":[{via:ye()}],"gradient-to-pos":[{to:ye()}],"gradient-from":[{from:A()}],"gradient-via":[{via:A()}],"gradient-to":[{to:A()}],rounded:[{rounded:te()}],"rounded-s":[{"rounded-s":te()}],"rounded-e":[{"rounded-e":te()}],"rounded-t":[{"rounded-t":te()}],"rounded-r":[{"rounded-r":te()}],"rounded-b":[{"rounded-b":te()}],"rounded-l":[{"rounded-l":te()}],"rounded-ss":[{"rounded-ss":te()}],"rounded-se":[{"rounded-se":te()}],"rounded-ee":[{"rounded-ee":te()}],"rounded-es":[{"rounded-es":te()}],"rounded-tl":[{"rounded-tl":te()}],"rounded-tr":[{"rounded-tr":te()}],"rounded-br":[{"rounded-br":te()}],"rounded-bl":[{"rounded-bl":te()}],"border-w":[{border:oe()}],"border-w-x":[{"border-x":oe()}],"border-w-y":[{"border-y":oe()}],"border-w-s":[{"border-s":oe()}],"border-w-e":[{"border-e":oe()}],"border-w-bs":[{"border-bs":oe()}],"border-w-be":[{"border-be":oe()}],"border-w-t":[{"border-t":oe()}],"border-w-r":[{"border-r":oe()}],"border-w-b":[{"border-b":oe()}],"border-w-l":[{"border-l":oe()}],"divide-x":[{"divide-x":oe()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":oe()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...Re(),"hidden","none"]}],"divide-style":[{divide:[...Re(),"hidden","none"]}],"border-color":[{border:A()}],"border-color-x":[{"border-x":A()}],"border-color-y":[{"border-y":A()}],"border-color-s":[{"border-s":A()}],"border-color-e":[{"border-e":A()}],"border-color-bs":[{"border-bs":A()}],"border-color-be":[{"border-be":A()}],"border-color-t":[{"border-t":A()}],"border-color-r":[{"border-r":A()}],"border-color-b":[{"border-b":A()}],"border-color-l":[{"border-l":A()}],"divide-color":[{divide:A()}],"outline-style":[{outline:[...Re(),"none","hidden"]}],"outline-offset":[{"outline-offset":[me,W,G]}],"outline-w":[{outline:["",me,Fa,ln]}],"outline-color":[{outline:A()}],shadow:[{shadow:["","none",d,Yo,Ko]}],"shadow-color":[{shadow:A()}],"inset-shadow":[{"inset-shadow":["none",u,Yo,Ko]}],"inset-shadow-color":[{"inset-shadow":A()}],"ring-w":[{ring:oe()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:A()}],"ring-offset-w":[{"ring-offset":[me,ln]}],"ring-offset-color":[{"ring-offset":A()}],"inset-ring-w":[{"inset-ring":oe()}],"inset-ring-color":[{"inset-ring":A()}],"text-shadow":[{"text-shadow":["none",f,Yo,Ko]}],"text-shadow-color":[{"text-shadow":A()}],opacity:[{opacity:[me,W,G]}],"mix-blend":[{"mix-blend":[...xe(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":xe()}],"mask-clip":[{"mask-clip":["border","padding","content","fill","stroke","view"]},"mask-no-clip"],"mask-composite":[{mask:["add","subtract","intersect","exclude"]}],"mask-image-linear-pos":[{"mask-linear":[me]}],"mask-image-linear-from-pos":[{"mask-linear-from":Ie()}],"mask-image-linear-to-pos":[{"mask-linear-to":Ie()}],"mask-image-linear-from-color":[{"mask-linear-from":A()}],"mask-image-linear-to-color":[{"mask-linear-to":A()}],"mask-image-t-from-pos":[{"mask-t-from":Ie()}],"mask-image-t-to-pos":[{"mask-t-to":Ie()}],"mask-image-t-from-color":[{"mask-t-from":A()}],"mask-image-t-to-color":[{"mask-t-to":A()}],"mask-image-r-from-pos":[{"mask-r-from":Ie()}],"mask-image-r-to-pos":[{"mask-r-to":Ie()}],"mask-image-r-from-color":[{"mask-r-from":A()}],"mask-image-r-to-color":[{"mask-r-to":A()}],"mask-image-b-from-pos":[{"mask-b-from":Ie()}],"mask-image-b-to-pos":[{"mask-b-to":Ie()}],"mask-image-b-from-color":[{"mask-b-from":A()}],"mask-image-b-to-color":[{"mask-b-to":A()}],"mask-image-l-from-pos":[{"mask-l-from":Ie()}],"mask-image-l-to-pos":[{"mask-l-to":Ie()}],"mask-image-l-from-color":[{"mask-l-from":A()}],"mask-image-l-to-color":[{"mask-l-to":A()}],"mask-image-x-from-pos":[{"mask-x-from":Ie()}],"mask-image-x-to-pos":[{"mask-x-to":Ie()}],"mask-image-x-from-color":[{"mask-x-from":A()}],"mask-image-x-to-color":[{"mask-x-to":A()}],"mask-image-y-from-pos":[{"mask-y-from":Ie()}],"mask-image-y-to-pos":[{"mask-y-to":Ie()}],"mask-image-y-from-color":[{"mask-y-from":A()}],"mask-image-y-to-color":[{"mask-y-to":A()}],"mask-image-radial":[{"mask-radial":[W,G]}],"mask-image-radial-from-pos":[{"mask-radial-from":Ie()}],"mask-image-radial-to-pos":[{"mask-radial-to":Ie()}],"mask-image-radial-from-color":[{"mask-radial-from":A()}],"mask-image-radial-to-color":[{"mask-radial-to":A()}],"mask-image-radial-shape":[{"mask-radial":["circle","ellipse"]}],"mask-image-radial-size":[{"mask-radial":[{closest:["side","corner"],farthest:["side","corner"]}]}],"mask-image-radial-pos":[{"mask-radial-at":S()}],"mask-image-conic-pos":[{"mask-conic":[me]}],"mask-image-conic-from-pos":[{"mask-conic-from":Ie()}],"mask-image-conic-to-pos":[{"mask-conic-to":Ie()}],"mask-image-conic-from-color":[{"mask-conic-from":A()}],"mask-image-conic-to-color":[{"mask-conic-to":A()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:ve()}],"mask-repeat":[{mask:Oe()}],"mask-size":[{mask:Q()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",W,G]}],filter:[{filter:["","none",W,G]}],blur:[{blur:pr()}],brightness:[{brightness:[me,W,G]}],contrast:[{contrast:[me,W,G]}],"drop-shadow":[{"drop-shadow":["","none",m,Yo,Ko]}],"drop-shadow-color":[{"drop-shadow":A()}],grayscale:[{grayscale:["",me,W,G]}],"hue-rotate":[{"hue-rotate":[me,W,G]}],invert:[{invert:["",me,W,G]}],saturate:[{saturate:[me,W,G]}],sepia:[{sepia:["",me,W,G]}],"backdrop-filter":[{"backdrop-filter":["","none",W,G]}],"backdrop-blur":[{"backdrop-blur":pr()}],"backdrop-brightness":[{"backdrop-brightness":[me,W,G]}],"backdrop-contrast":[{"backdrop-contrast":[me,W,G]}],"backdrop-grayscale":[{"backdrop-grayscale":["",me,W,G]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[me,W,G]}],"backdrop-invert":[{"backdrop-invert":["",me,W,G]}],"backdrop-opacity":[{"backdrop-opacity":[me,W,G]}],"backdrop-saturate":[{"backdrop-saturate":[me,W,G]}],"backdrop-sepia":[{"backdrop-sepia":["",me,W,G]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":E()}],"border-spacing-x":[{"border-spacing-x":E()}],"border-spacing-y":[{"border-spacing-y":E()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",W,G]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[me,"initial",W,G]}],ease:[{ease:["linear","initial",b,W,G]}],delay:[{delay:[me,W,G]}],animate:[{animate:["none",I,W,G]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[g,W,G]}],"perspective-origin":[{"perspective-origin":w()}],rotate:[{rotate:Nt()}],"rotate-x":[{"rotate-x":Nt()}],"rotate-y":[{"rotate-y":Nt()}],"rotate-z":[{"rotate-z":Nt()}],scale:[{scale:vt()}],"scale-x":[{"scale-x":vt()}],"scale-y":[{"scale-y":vt()}],"scale-z":[{"scale-z":vt()}],"scale-3d":["scale-3d"],skew:[{skew:Xt()}],"skew-x":[{"skew-x":Xt()}],"skew-y":[{"skew-y":Xt()}],transform:[{transform:[W,G,"","none","gpu","cpu"]}],"transform-origin":[{origin:w()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:Lr()}],"translate-x":[{"translate-x":Lr()}],"translate-y":[{"translate-y":Lr()}],"translate-z":[{"translate-z":Lr()}],"translate-none":["translate-none"],accent:[{accent:A()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:A()}],"color-scheme":[{scheme:["normal","dark","light","light-dark","only-dark","only-light"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",W,G]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":E()}],"scroll-mx":[{"scroll-mx":E()}],"scroll-my":[{"scroll-my":E()}],"scroll-ms":[{"scroll-ms":E()}],"scroll-me":[{"scroll-me":E()}],"scroll-mbs":[{"scroll-mbs":E()}],"scroll-mbe":[{"scroll-mbe":E()}],"scroll-mt":[{"scroll-mt":E()}],"scroll-mr":[{"scroll-mr":E()}],"scroll-mb":[{"scroll-mb":E()}],"scroll-ml":[{"scroll-ml":E()}],"scroll-p":[{"scroll-p":E()}],"scroll-px":[{"scroll-px":E()}],"scroll-py":[{"scroll-py":E()}],"scroll-ps":[{"scroll-ps":E()}],"scroll-pe":[{"scroll-pe":E()}],"scroll-pbs":[{"scroll-pbs":E()}],"scroll-pbe":[{"scroll-pbe":E()}],"scroll-pt":[{"scroll-pt":E()}],"scroll-pr":[{"scroll-pr":E()}],"scroll-pb":[{"scroll-pb":E()}],"scroll-pl":[{"scroll-pl":E()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",W,G]}],fill:[{fill:["none",...A()]}],"stroke-w":[{stroke:[me,Fa,ln,mf]}],stroke:[{stroke:["none",...A()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","inset-bs","inset-be","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pbs","pbe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mbs","mbe","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-x","border-w-y","border-w-s","border-w-e","border-w-bs","border-w-be","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-x","border-color-y","border-color-s","border-color-e","border-color-bs","border-color-be","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],translate:["translate-x","translate-y","translate-none"],"translate-none":["translate","translate-x","translate-y","translate-z"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mbs","scroll-mbe","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pbs","scroll-pbe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]},orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}},z=kx(Ux);function ki(e,t,r,n,a){const o=typeof window<"u"?window.location.origin:"https://tanstack.com",i=new URL(t,o);e.forEach(s=>{const c=`${r}/${s.from}`.replace(/\/+/g,"/");if(i.pathname===c||i.pathname.startsWith(`${c}/`)){const l=new URL(`${i.origin}${n}/${s.to}`);throw l.search=a,ie({href:l.href})}})}var Pg={id:"query",name:"TanStack Query",cardStyles:"text-red-500 hover:border-current",to:"/query",tagline:"Powerful asynchronous state management, server-state utilities and data fetching",description:'Powerful asynchronous state management, server-state utilities and data fetching. Fetch, cache, update, and wrangle all forms of async data in your TS/JS, React, Vue, Solid, Svelte, Angular & Lit applications all without touching any "global state"',bgStyle:"bg-red-500",borderStyle:"border-red-500/50",textStyle:"text-red-500",textColor:"text-amber-500",colorFrom:"from-red-500",colorTo:"to-amber-500",bgRadial:"from-red-500 via-red-500/60 to-transparent",badge:void 0,repo:"tanstack/query",frameworks:["react","preact","solid","vue","svelte","angular","lit"],latestVersion:"v5",latestBranch:"main",corePackageName:"@tanstack/query-core",npmPackageNames:["@tanstack/query-core","react-query"],availableVersions:["v5","v4","v3"],scarfId:"53afb586-3934-4624-a37a-e680c1528e17",defaultDocs:"framework/react/overview",sitemap:{includeLandingPage:!0,includeDocsPages:!0},installPath:"framework/$framework/installation",legacyPackages:["react-query"],handleRedirects:e=>{ki(jx,e,"/query/v3","/query/latest","from=reactQueryV3"),ki(qx,e,"/query/v3","/query/v5","from=reactQueryV3"),ki(Gx,e,"/query/latest","/query/latest","from=communityLinks")}},jx=[{from:"overview",to:"docs/framework/react/overview"},{from:"installation",to:"docs/framework/react/installation"},{from:"quick-start",to:"docs/framework/react/quick-start"},{from:"devtools",to:"docs/framework/react/devtools"},{from:"videos",to:"docs/framework/react/videos"},{from:"comparison",to:"docs/framework/react/comparison"},{from:"typescript",to:"docs/framework/react/typescript"},{from:"graphql",to:"docs/framework/react/graphql"},{from:"react-native",to:"docs/framework/react/react-native"},{from:"guides/important-defaults",to:"docs/framework/react/guides/important-defaults"},{from:"guides/queries",to:"docs/framework/react/guides/queries"},{from:"guides/query-keys",to:"docs/framework/react/guides/query-keys"},{from:"guides/query-functions",to:"docs/framework/react/guides/query-functions"},{from:"guides/network-mode",to:"docs/framework/react/guides/network-mode"},{from:"guides/parallel-queries",to:"docs/framework/react/guides/parallel-queries"},{from:"guides/dependent-queries",to:"docs/framework/react/guides/dependent-queries"},{from:"guides/background-fetching-indicators",to:"docs/framework/react/guides/background-fetching-indicators"},{from:"guides/window-focus-refetching",to:"docs/framework/react/guides/window-focus-refetching"},{from:"guides/disabling-queries",to:"docs/framework/react/guides/disabling-queries"},{from:"guides/query-retries",to:"docs/framework/react/guides/query-retries"},{from:"guides/paginated-queries",to:"docs/framework/react/guides/paginated-queries"},{from:"guides/infinite-queries",to:"docs/framework/react/guides/infinite-queries"},{from:"guides/placeholder-query-data",to:"docs/framework/react/guides/placeholder-query-data"},{from:"guides/initial-query-data",to:"docs/framework/react/guides/initial-query-data"},{from:"guides/prefetching",to:"docs/framework/react/guides/prefetching"},{from:"guides/mutations",to:"docs/framework/react/guides/mutations"},{from:"guides/query-invalidation",to:"docs/framework/react/guides/query-invalidation"},{from:"guides/invalidations-from-mutations",to:"docs/framework/react/guides/invalidations-from-mutations"},{from:"guides/updates-from-mutation-responses",to:"docs/framework/react/guides/updates-from-mutation-responses"},{from:"guides/optimistic-updates",to:"docs/framework/react/guides/optimistic-updates"},{from:"guides/query-cancellation",to:"docs/framework/react/guides/query-cancellation"},{from:"guides/scroll-restoration",to:"docs/framework/react/guides/scroll-restoration"},{from:"guides/filters",to:"docs/framework/react/guides/filters"},{from:"guides/ssr",to:"docs/framework/react/guides/ssr"},{from:"guides/caching",to:"docs/framework/react/guides/caching"},{from:"guides/default-query-function",to:"docs/framework/react/guides/default-query-function"},{from:"guides/suspense",to:"docs/framework/react/guides/suspense"},{from:"guides/testing",to:"docs/framework/react/guides/testing"},{from:"guides/does-this-replace-client-state",to:"docs/framework/react/guides/does-this-replace-client-state"},{from:"guides/migrating-to-react-query-3",to:"docs/framework/react/guides/migrating-to-react-query-3"},{from:"guides/migrating-to-react-query-4",to:"docs/framework/react/guides/migrating-to-react-query-4"},{from:"community/tkdodos-blog",to:"docs/framework/react/community/tkdodos-blog"},{from:"examples/simple",to:"docs/framework/react/examples/simple"},{from:"examples/basic-graphql-request",to:"docs/framework/react/examples/basic-graphql-request"},{from:"examples/custom-hooks",to:"docs/framework/react/examples/custom-hooks"},{from:"examples/auto-refetching",to:"docs/framework/react/examples/auto-refetching"},{from:"examples/focus-refetching",to:"docs/framework/react/examples/focus-refetching"},{from:"examples/optimistic-updates",to:"docs/framework/react/examples/optimistic-updates-typescript"},{from:"examples/optimistic-updates-typescript",to:"docs/framework/react/examples/optimistic-updates-typescript"},{from:"examples/pagination",to:"docs/framework/react/examples/pagination"},{from:"examples/load-more-infinite-scroll",to:"docs/framework/react/examples/load-more-infinite-scroll"},{from:"examples/suspense",to:"docs/framework/react/examples/suspense"},{from:"examples/default-query-function",to:"docs/framework/react/examples/default-query-function"},{from:"examples/playground",to:"docs/framework/react/examples/playground"},{from:"examples/prefetching",to:"docs/framework/react/examples/prefetching"},{from:"examples/star-wars",to:"docs/framework/react/examples/star-wars"},{from:"examples/rick-morty",to:"docs/framework/react/examples/rick-morty"},{from:"examples/nextjs",to:"docs/framework/react/examples/nextjs"},{from:"examples/react-native",to:"docs/framework/react/examples/react-native"},{from:"examples/offline",to:"docs/framework/react/examples/offline"},{from:"plugins/persistQueryClient",to:"docs/framework/react/plugins/persistQueryClient"},{from:"plugins/broadcastQueryClient",to:"docs/framework/react/plugins/broadcastQueryClient"},{from:"reference/useQueries",to:"docs/framework/react/reference/useQueries"},{from:"reference/useInfiniteQuery",to:"docs/framework/react/reference/useInfiniteQuery"},{from:"reference/useMutation",to:"docs/framework/react/reference/useMutation"},{from:"reference/useIsFetching",to:"docs/framework/react/reference/useIsFetching"},{from:"reference/useIsMutating",to:"docs/framework/react/reference/useIsMutating"},{from:"reference/QueryClientProvider",to:"docs/framework/react/reference/QueryClientProvider"},{from:"reference/useQueryClient",to:"docs/framework/react/reference/useQueryClient"},{from:"reference/QueryCache",to:"docs/reference/QueryCache"},{from:"reference/MutationCache",to:"docs/reference/MutationCache"},{from:"reference/QueryObserver",to:"docs/reference/QueryObserver"},{from:"reference/InfiniteQueryObserver",to:"docs/reference/InfiniteQueryObserver"},{from:"reference/QueriesObserver",to:"docs/reference/QueriesObserver"},{from:"reference/QueryErrorResetBoundary",to:"docs/framework/react/reference/QueryErrorResetBoundary"},{from:"reference/useQueryErrorResetBoundary",to:"docs/framework/react/reference/useQueryErrorResetBoundary"},{from:"reference/focusManager",to:"docs/reference/focusManager"},{from:"reference/onlineManager",to:"docs/reference/onlineManager"},{from:"reference/hydration",to:"docs/framework/react/reference/hydration"},{from:"reference/useQuery",to:"docs/framework/react/reference/useQuery"},{from:"reference/QueryClient",to:"docs/reference/QueryClient"},{from:"examples/basic",to:"docs/framework/react/examples/basic"}],qx=[{from:"guides/custom-logger",to:"docs/framework/react/guides/migrating-to-v5#the-deprecated-custom-logger-has-been-removed"},{from:"plugins/createWebStoragePersister",to:"docs/framework/react/guides/migrating-to-react-query-4#persistqueryclient-and-the-corresponding-persister-plugins-are-no-longer-experimental-and-have-been-renamed"},{from:"plugins/createAsyncStoragePersister",to:"docs/framework/react/guides/migrating-to-react-query-4#persistqueryclient-and-the-corresponding-persister-plugins-are-no-longer-experimental-and-have-been-renamed"}],Gx=[{from:"docs/framework/react/community/tkdodos-blog",to:"docs/community-resources"},{from:"docs/framework/react/community/community-projects",to:"docs/community-resources"},{from:"docs/framework/solid/community/tkdodos-blog",to:"docs/community-resources"},{from:"docs/framework/solid/community/community-projects",to:"docs/community-resources"},{from:"docs/framework/vue/community/tkdodos-blog",to:"docs/community-resources"},{from:"docs/framework/vue/community/community-projects",to:"docs/community-resources"},{from:"docs/framework/react/videos",to:"docs/community-resources"}],Ag={id:"router",name:"TanStack Router",installPath:"framework/$framework/quick-start",cardStyles:"text-emerald-500 dark:text-emerald-400 hover:border-current",to:"/router",tagline:"Type-safe Routing for React and Solid applications",description:"A powerful React router for client-side and full-stack react applications. Fully type-safe APIs, first-class search-params for managing state in the URL and seamless integration with the existing React ecosystem.",bgStyle:"bg-emerald-500",borderStyle:"border-emerald-500/50",textStyle:"text-emerald-500 dark:text-emerald-400",textColor:"text-emerald-500 dark:text-emerald-400",colorFrom:"from-emerald-500",colorTo:"to-lime-600",bgRadial:"from-emerald-500 via-lime-600/50 to-transparent",badge:void 0,repo:"tanstack/router",frameworks:["react","solid"],corePackageName:"@tanstack/router-core",npmPackageNames:["@tanstack/router-core","react-location"],latestVersion:"v1",latestBranch:"main",availableVersions:["v1"],scarfId:"3d14fff2-f326-4929-b5e1-6ecf953d24f4",docsRoot:"docs/router",sitemap:{includeLandingPage:!0,includeDocsPages:!0},legacyPackages:["react-location"],hideCodesandboxUrl:!0,handleRedirects:e=>{if(e.includes("router/latest/docs/framework/react/start"))throw ie({href:e.replace("router/latest/docs/framework/react/start","start/latest/docs/framework/react")});if(e.includes("/router/latest/docs/framework/react/examples/start"))throw ie({href:e.replace("router/latest/docs/framework/react/examples/start","start/latest/docs/framework/react/examples/start")});const t=e.match(/\/router\/([^/]+)\/docs\/framework\/[^/]+\/(.+)/);if(t&&!e.includes("/examples/")){const[,r,n]=t;throw ie({href:`/router/${r}/docs/${n}`})}}},Lg={id:"start",name:"TanStack Start",cardStyles:"text-cyan-500 dark:text-white-400 hover:border-current",to:"/start",tagline:"Full-stack Framework powered by TanStack Router for React and Solid",description:"Full-document SSR, Streaming, Server Functions, bundling and more, powered by TanStack Router and Vite - Ready to deploy to your favorite hosting provider.",bgStyle:"bg-cyan-500",borderStyle:"border-cyan-500/50",textStyle:"text-cyan-500",textColor:"text-cyan-600",colorFrom:"from-teal-500",colorTo:"to-cyan-500",bgRadial:"from-cyan-500 via-teal-600/50 to-transparent",badge:"RC",repo:"tanstack/router",frameworks:["react","solid"],latestVersion:"v0",latestBranch:"main",availableVersions:["v0"],corePackageName:"@tanstack/start-client-core",npmPackageNames:["@tanstack/start-client-core"],scarfId:"b6e2134f-e805-401d-95c3-2a7765d49a3d",docsRoot:"docs/start",defaultDocs:"framework/react/overview",sitemap:{includeLandingPage:!0,includeDocsPages:!0},installPath:"framework/$framework/build-from-scratch",embedEditor:"codesandbox",showNetlifyUrl:!0,showCloudflareUrl:!0,showRailwayUrl:!0,hideStackblitzUrl:!0},Ng={id:"table",name:"TanStack Table",cardStyles:"text-blue-500 hover:border-current",to:"/table",tagline:"Headless UI for building powerful tables & datagrids",description:"Supercharge your tables or build a datagrid from scratch in any framework while retaining 100% control over markup and styles.",bgStyle:"bg-blue-500",borderStyle:"border-blue-500/50",textStyle:"text-blue-500",textColor:"text-blue-600",colorFrom:"from-cyan-500",colorTo:"to-blue-600",bgRadial:"from-cyan-500 via-blue-600/50 to-transparent",badge:void 0,repo:"tanstack/table",frameworks:["angular","ember","react","preact","solid","svelte","vue","qwik","lit","alpine","vanilla"],latestVersion:"v8",latestBranch:"main",availableVersions:["v8","beta"],scarfId:"dc8b39e1-3fe9-4f3a-8e56-d4e2cf420a9e",defaultDocs:"overview",sitemap:{includeLandingPage:!0,includeDocsPages:!0},corePackageName:"@tanstack/table-core",npmPackageNames:["@tanstack/table-core","react-table"],legacyPackages:["react-table"],handleRedirects:e=>{ki(Wx,e,"/table/v7","/table/v8","from=reactTableV7")}},Wx=[{from:"docs/api/overview",to:"docs/overview"},{from:"docs/api/useColumnOrder",to:"docs/api/features/column-ordering"},{from:"docs/api/useExpanded",to:"docs/api/features/expanding"},{from:"docs/api/useFilters",to:"docs/api/features/filters"},{from:"docs/api/useGlobalFilter",to:"docs/api/features/filters"},{from:"docs/api/useGroupBy",to:"docs/api/features/grouping"},{from:"docs/api/usePagination",to:"docs/api/features/pagination"},{from:"docs/api/useResizeColumns",to:"docs/api/features/column-sizing"},{from:"docs/api/useRowSelect",to:"docs/api/features/row-selection"},{from:"docs/api/useSortBy",to:"docs/api/features/sorting"},{from:"docs/api/useTable",to:"docs/guide/tables"},{from:"docs/examples/basic",to:"docs/framework/react/examples/basic"},{from:"docs/examples/filtering",to:"docs/framework/react/examples/filters"},{from:"docs/examples/footers",to:"docs/framework/react/examples/basic"},{from:"docs/examples/grouping",to:"docs/framework/react/examples/grouping"},{from:"docs/examples/pagination-controlled",to:"docs/framework/react/examples/pagination-controlled"},{from:"docs/examples/pagination",to:"docs/framework/react/examples/pagination"},{from:"docs/examples/sorting",to:"docs/framework/react/examples/sorting"},{from:"docs/examples/row-selection",to:"docs/framework/react/examples/row-selection"},{from:"docs/examples/row-selection-with-pagination",to:"docs/framework/react/examples/row-selection"},{from:"docs/examples/expanding",to:"docs/framework/react/examples/expanding"},{from:"docs/examples/editable-data",to:"docs/framework/react/examples/editable-data"},{from:"docs/examples/column-ordering",to:"docs/framework/react/examples/column-ordering"},{from:"docs/examples/column-hiding",to:"docs/framework/react/examples/column-visibility"},{from:"docs/examples/column-resizing",to:"docs/framework/react/examples/column-sizing"},{from:"docs/installation",to:"docs/installation"},{from:"docs/overview",to:"docs/introduction"},{from:"docs/quick-start",to:"docs/overview"}],Dg={id:"form",name:"TanStack Form",cardStyles:"text-yellow-500 hover:border-current",to:"/form",tagline:"Headless UI for building performant and type-safe forms",description:"Headless, performant, and type-safe form state management for TS/JS, React, Preact, Vue, Angular, Solid, Lit and Svelte.",bgStyle:"bg-yellow-500",borderStyle:"border-yellow-500/50",textStyle:"text-yellow-500",textColor:"text-yellow-600",colorFrom:"from-yellow-500",colorTo:"to-yellow-600",bgRadial:"from-yellow-500 via-yellow-600/50 to-transparent",badge:"new",repo:"tanstack/form",corePackageName:"@tanstack/form-core",npmPackageNames:["@tanstack/form-core"],frameworks:["react","preact","vue","angular","solid","lit","svelte"],latestVersion:"v1",latestBranch:"main",availableVersions:["v1"],scarfId:"72ec4452-5d77-427c-b44a-57515d2d83aa",sitemap:{includeLandingPage:!0,includeDocsPages:!0}},Og={id:"virtual",name:"TanStack Virtual",cardStyles:"text-purple-500 hover:border-current",to:"/virtual",tagline:"Headless UI for Virtualizing Large Element Lists",description:"Virtualize only the visible content for massive scrollable DOM nodes at 60FPS in TS/JS, React, Vue, Solid, Svelte, Lit, Angular & Marko while retaining 100% control over markup and styles.",bgStyle:"bg-purple-500",borderStyle:"border-purple-500/50",textStyle:"text-purple-500",textColor:"text-purple-600",colorFrom:"from-purple-500",colorTo:"to-violet-600",bgRadial:"from-purple-500 via-violet-600/50 to-transparent",badge:void 0,repo:"tanstack/virtual",frameworks:["react","solid","vue","svelte","lit","angular","marko"],corePackageName:"@tanstack/virtual-core",npmPackageNames:["@tanstack/virtual-core","react-virtual"],latestVersion:"v3",latestBranch:"main",availableVersions:["v3"],scarfId:"32372eb1-91e0-48e7-8df1-4808a7be6b94",defaultDocs:"introduction",legacyPackages:["react-virtual"],sitemap:{includeLandingPage:!0,includeDocsPages:!0}},Zx={id:"ranger",name:"TanStack Ranger",cardStyles:"text-black dark:text-gray-100 hover:border-current",to:"/ranger",tagline:"Headless range and multi-range slider utilities.",description:"Headless, lightweight, and extensible primitives for building range and multi-range sliders.",bgStyle:"bg-black dark:bg-gray-100",borderStyle:"border-black/50 dark:border-gray-100/50",textStyle:"text-black dark:text-gray-100",textColor:"text-black dark:text-gray-100",badgeTextStyle:"text-white dark:text-gray-900",colorFrom:"from-black dark:from-gray-100",colorTo:"to-gray-600 dark:to-gray-400",accentColorFrom:"from-blue-500",accentColorTo:"to-blue-700",accentTextColor:"text-blue-600 dark:text-blue-400",bgRadial:"from-black via-gray-600/50 to-transparent dark:from-gray-100 dark:via-gray-400/50",badge:void 0,repo:"tanstack/ranger",frameworks:["react"],corePackageName:"@tanstack/ranger",npmPackageNames:["@tanstack/ranger","react-ranger"],legacyPackages:["react-ranger"],latestVersion:"v0",latestBranch:"main",availableVersions:["v0"],scarfId:"dd278e06-bb3f-420c-85c6-6e42d14d8f61",sitemap:{includeLandingPage:!0,includeDocsPages:!0}},Mg={id:"store",name:"TanStack Store",cardStyles:"text-twine-500 dark:text-twine-400 hover:border-current",to:"/store",tagline:"Framework agnostic data store with reactive framework adapters",description:"The immutable-reactive data store that powers the core of TanStack libraries and their framework adapters.",bgStyle:"bg-twine-700",borderStyle:"border-twine-700/50",textStyle:"text-twine-500",textColor:"text-twine-700",colorFrom:"from-twine-500",colorTo:"to-twine-700",bgRadial:"from-twine-500 via-twine-700/50 to-transparent",badge:"alpha",repo:"tanstack/store",frameworks:["react","preact","solid","svelte","vue","angular","lit"],corePackageName:"@tanstack/store",npmPackageNames:["@tanstack/store"],latestVersion:"v0",latestBranch:"main",availableVersions:["v0"],scarfId:"302d0fef-cb3f-43c6-b45c-f055b9745edb",defaultDocs:"overview",sitemap:{includeLandingPage:!0,includeDocsPages:!0}},Fg={id:"pacer",name:"TanStack Pacer",cardStyles:"text-lime-500 dark:text-lime-400 hover:border-current",to:"/pacer",tagline:"Framework agnostic debouncing, throttling, rate limiting, queuing, and batching utilities",description:"Optimize your application's performance with TanStack Pacer's core primitives: Debouncing, Throttling, Rate Limiting, Queuing, and Batching.",bgStyle:"bg-lime-600",borderStyle:"border-lime-700/50",textStyle:"text-lime-500",textColor:"text-lime-700",colorFrom:"from-lime-500",colorTo:"to-lime-700",bgRadial:"from-lime-500 via-lime-700/50 to-transparent",badge:"beta",repo:"tanstack/pacer",frameworks:["react","preact","solid","angular","vanilla"],corePackageName:"@tanstack/pacer",npmPackageNames:["@tanstack/pacer","@tanstack/pacer-lite"],legacyPackages:["@tanstack/pacer-lite"],latestVersion:"v0",latestBranch:"main",availableVersions:["v0"],scarfId:"302d0fef-cb3f-43c6-b45c-f055b9745edb",defaultDocs:"overview",sitemap:{includeLandingPage:!0,includeDocsPages:!0},handleRedirects:e=>{if(/\/pacer\/[^/]+\/docs\/framework\/angular\/examples\/injectAsyncRateLimitedCallback/.test(e))throw ie({href:e.replace("injectAsyncRateLimitedCallback","injectAsyncRateLimiter")})}},zg={id:"hotkeys",name:"TanStack Hotkeys",cardStyles:"text-rose-500 dark:text-rose-400 hover:border-current",to:"/hotkeys",tagline:"Type-safe keyboard shortcuts, sequences, and key state tracking for your apps",description:"A type-safe, cross-platform hotkey library with sequence detection, key state tracking, hotkey recording, and framework adapters for React and more.",badge:"alpha",bgStyle:"bg-rose-500",borderStyle:"border-rose-500/50",textStyle:"text-rose-500 dark:text-rose-400",textColor:"text-rose-600 dark:text-rose-400",colorFrom:"from-rose-500",colorTo:"to-rose-700",bgRadial:"from-rose-500 via-rose-700/50 to-transparent",repo:"tanstack/hotkeys",frameworks:["vanilla","react","preact","solid","svelte","vue","angular","lit"],corePackageName:"@tanstack/hotkeys",npmPackageNames:["@tanstack/hotkeys"],latestVersion:"v0",latestBranch:"main",availableVersions:["v0"],defaultDocs:"overview",sitemap:{includeLandingPage:!0,includeDocsPages:!0}},Vg={id:"db",name:"TanStack DB",cardStyles:"text-orange-500 dark:text-orange-400 hover:border-current",to:"/db",tagline:"The reactive client-first store for your API",description:"TanStack DB gives you a reactive, client-first store for your API data with collections, live queries and optimistic mutations that keep your UI reactive, consistent and blazing fast 🔥",badge:"beta",bgStyle:"bg-orange-500",borderStyle:"border-orange-700/50",textStyle:"text-orange-500",textColor:"text-orange-700",colorFrom:"from-orange-500",colorTo:"to-orange-700",bgRadial:"from-orange-500 via-orange-700/50 to-transparent",repo:"tanstack/db",frameworks:["react","vue","solid","svelte","vanilla"],corePackageName:"@tanstack/db",npmPackageNames:["@tanstack/db","@tanstack/react-db"],latestVersion:"v0",latestBranch:"main",availableVersions:["v0"],scarfId:"302d0fef-cb3f-43c6-b45c-f055b9745edb",defaultDocs:"overview",sitemap:{includeLandingPage:!0,includeDocsPages:!0}},Bg={id:"ai",name:"TanStack AI",cardStyles:"text-pink-500 dark:text-pink-400 hover:border-current",to:"/ai",tagline:"A powerful, open-source AI SDK with a unified interface across multiple providers",description:"A powerful, open-source AI SDK with a unified interface across multiple providers. No vendor lock-in, no proprietary formats, just clean TypeScript and honest open source.",badge:"beta",bgStyle:"bg-pink-500",borderStyle:"border-pink-700/50",textStyle:"text-pink-500",textColor:"text-pink-700",colorFrom:"from-pink-500",colorTo:"to-pink-700",bgRadial:"from-pink-500 via-pink-700/50 to-transparent",repo:"tanstack/ai",frameworks:["react","vue","solid","svelte","preact","vanilla"],corePackageName:"@tanstack/ai-client",npmPackageNames:["@tanstack/ai-client"],latestVersion:"v0",latestBranch:"main",availableVersions:["v0"],defaultDocs:"getting-started/overview",frameworkPackageNames:{react:"@tanstack/ai-react",vue:"@tanstack/ai-vue",solid:"@tanstack/ai-solid",svelte:"@tanstack/ai-svelte",preact:"@tanstack/ai-preact",vanilla:"@tanstack/ai-client"},frameworkDocs:{react:"getting-started/quick-start",vue:"getting-started/quick-start-vue",solid:"api/ai-solid",svelte:"getting-started/quick-start-svelte",preact:"api/ai-preact",vanilla:"api/ai-client"},sitemap:{includeLandingPage:!0,includeDocsPages:!0}},Hg={id:"intent",name:"TanStack Intent",cardStyles:"text-sky-500 dark:text-sky-400 hover:border-current",to:"/intent",tagline:"Ship Agent Skills with your npm Packages",description:"Generate, validate, and ship Agent Skills alongside your library — versioned knowledge that agents discover automatically from node_modules. Skills live in each library's repo and update when the package updates.",badge:"alpha",bgStyle:"bg-sky-500",borderStyle:"border-sky-500/50",textStyle:"text-sky-500 dark:text-sky-400",textColor:"text-sky-600 dark:text-sky-400",colorFrom:"from-sky-500",colorTo:"to-sky-700",bgRadial:"from-sky-500 via-sky-700/50 to-transparent",repo:"tanstack/intent",frameworks:[],corePackageName:"@tanstack/intent",npmPackageNames:["@tanstack/intent"],latestVersion:"v0",latestBranch:"main",availableVersions:["v0"],defaultDocs:"overview",sitemap:{includeLandingPage:!0,includeDocsPages:!0}},Ug={id:"config",name:"TanStack Config",cardStyles:"text-black dark:text-gray-100 hover:border-current",to:"/config",tagline:"Configuration and tools for publishing and maintaining high-quality JavaScript packages",description:"Opinionated tooling to lint, build, test, version, and publish JS/TS packages — minimal config, consistent results.",bgStyle:"bg-black dark:bg-gray-100",borderStyle:"border-black/50 dark:border-gray-100/50",textStyle:"text-black dark:text-gray-100",textColor:"text-black dark:text-gray-100",badgeTextStyle:"text-white dark:text-gray-900",colorFrom:"from-black dark:from-gray-100",colorTo:"to-gray-600 dark:to-gray-400",accentColorFrom:"from-blue-500",accentColorTo:"to-blue-700",accentTextColor:"text-blue-600 dark:text-blue-400",bgRadial:"from-black via-gray-600/50 to-transparent dark:from-gray-100 dark:via-gray-400/50",badge:void 0,repo:"tanstack/config",frameworks:[],corePackageName:"@tanstack/config",npmPackageNames:["@tanstack/config"],latestVersion:"v0",latestBranch:"main",availableVersions:["v0"],sitemap:{includeLandingPage:!0,includeDocsPages:!0}},jg={id:"devtools",name:"TanStack Devtools",cardStyles:"text-black dark:text-gray-100 hover:border-current",to:"/devtools",tagline:"Centralized devtools panel for TanStack libraries and other custom devtools",description:"A unified devtools panel that houses all TanStack devtools and allows you to create and integrate your own custom devtools.",badge:"alpha",bgStyle:"bg-black dark:bg-gray-100",borderStyle:"border-black/50 dark:border-gray-100/50",textStyle:"text-black dark:text-gray-100",textColor:"text-black dark:text-gray-100",colorFrom:"from-black dark:from-gray-100",colorTo:"to-gray-600 dark:to-gray-400",accentColorFrom:"from-blue-500",accentColorTo:"to-blue-700",accentTextColor:"text-blue-600 dark:text-blue-400",badgeTextStyle:"text-white dark:text-gray-900",bgRadial:"from-black via-gray-600/50 to-transparent dark:from-gray-100 dark:via-gray-400/50",repo:"tanstack/devtools",frameworks:["react","preact","solid","vue","svelte","angular","vanilla"],corePackageName:"@tanstack/devtools",npmPackageNames:["@tanstack/devtools","@tanstack/react-devtools"],latestVersion:"v0",latestBranch:"main",availableVersions:["v0"],sitemap:{includeLandingPage:!0,includeDocsPages:!0},handleRedirects:e=>{if(/\/devtools\/[^/]+\/docs\/framework\/solif\//.test(e))throw ie({href:e.replace(/\/devtools\/([^/]+)\/docs\/framework\/solif\//,"/devtools/$1/docs/framework/solid/")})}},Kx={id:"mcp",name:"TanStack MCP",cardStyles:"text-black dark:text-gray-100 hover:border-current",to:"/mcp",tagline:"AI-powered access to TanStack documentation",description:"Connect your AI assistant to TanStack documentation. Search docs, fetch pages, and explore the ecosystem programmatically via the Model Context Protocol.",badge:"alpha",bgStyle:"bg-black dark:bg-gray-100",borderStyle:"border-black/50 dark:border-gray-100/50",textStyle:"text-black dark:text-gray-100",textColor:"text-black dark:text-gray-100",colorFrom:"from-black dark:from-gray-100",colorTo:"to-gray-600 dark:to-gray-400",accentColorFrom:"from-blue-500",accentColorTo:"to-blue-700",accentTextColor:"text-blue-600 dark:text-blue-400",badgeTextStyle:"text-white dark:text-gray-900",bgRadial:"from-black via-gray-600/50 to-transparent dark:from-gray-100 dark:via-gray-400/50",repo:"tanstack/tanstack.com",frameworks:[],latestVersion:"v1",latestBranch:"main",availableVersions:["v1"],visible:!1,handleRedirects:e=>{if(/\/mcp(\/|$)/.test(e))throw ie({href:"/cli/latest/docs/mcp-migration"})}},qg={id:"cli",name:"TanStack CLI",cardStyles:"text-indigo-500 dark:text-indigo-400 hover:border-current",to:"/cli",tagline:"CLI and project scaffolding toolkit for TanStack",description:"A CLI toolkit for TanStack. Create and customize TanStack Start apps, search docs, inspect add-ons, and generate project changes with current TanStack context.",badge:"alpha",bgStyle:"bg-indigo-500",borderStyle:"border-indigo-500/50",textStyle:"text-indigo-500 dark:text-indigo-400",textColor:"text-indigo-600 dark:text-indigo-400",colorFrom:"from-indigo-500",colorTo:"to-violet-600",bgRadial:"from-indigo-500 via-violet-600/50 to-transparent",repo:"tanstack/cli",frameworks:[],corePackageName:"@tanstack/cli",npmPackageNames:["@tanstack/cli"],latestVersion:"v0",latestBranch:"main",availableVersions:["v0"],defaultDocs:"overview",sitemap:{includeLandingPage:!0,includeDocsPages:!0}},Yx={id:"workflow",name:"TanStack Workflow",cardStyles:"text-blue-800 dark:text-blue-400 hover:border-current",to:"/workflow",tagline:"Durable, type-safe workflow orchestration for TypeScript",description:"Build resilient multi-step workflows with typed inputs, durable execution, retries, and observable state for long-running application processes.",badge:"alpha",bgStyle:"bg-blue-900",borderStyle:"border-blue-900/50",textStyle:"text-blue-800 dark:text-blue-400",textColor:"text-blue-900 dark:text-blue-400",colorFrom:"from-blue-800",colorTo:"to-blue-600",bgRadial:"from-blue-800 via-blue-700/50 to-transparent",repo:"tanstack/workflow",frameworks:[],corePackageName:"@tanstack/workflow",npmPackageNames:["@tanstack/workflow"],latestVersion:"v0",latestBranch:"main",availableVersions:["v0"],defaultDocs:"overview",visible:!1},cr=[Lg,Ag,Pg,Ng,Dg,Vg,Bg,Hg,Og,Fg,zg,Mg,Zx,Ug,jg,Kx,qg,Yx,{id:"react-charts",name:"React Charts",repo:"tanstack/react-charts",to:void 0,tagline:"",cardStyles:"",bgStyle:"",borderStyle:"",textStyle:"",colorFrom:"",colorTo:"",badge:void 0,frameworks:[],latestVersion:"",availableVersions:[]},{id:"create-tsrouter-app",name:"Create TS Router App",repo:"tanstack/create-tsrouter-app",to:void 0,tagline:"",cardStyles:"",bgStyle:"",borderStyle:"",textStyle:"",colorFrom:"",colorTo:"",badge:void 0,frameworks:[],latestVersion:"",availableVersions:[]}];function Gg(e){return typeof e.to=="string"&&e.to.startsWith("/")&&e.visible!==!1}var MK=cr.filter(Gg),Wg={framework:[Lg,Ag],state:[Pg,Vg,Mg,Bg],headlessUI:[Ng,Dg,zg],performance:[Og,Fg],tooling:[jg,Ug,qg,Hg]},qn={framework:"Framework",state:"Data & State Management",headlessUI:"UI & UX",performance:"Performance",tooling:"Tooling"};function jr(e){return cr.find(t=>t.id===e)}function Cr(e){const t=cr.find(r=>r.id===e);if(!t)throw new Error(`Library with id "${e}" not found!`);return t}function Xx(e,t){if(!e)throw new Error("Library is required");const r=t||e.latestVersion,n=["latest",e.latestVersion].includes(r)?e.latestBranch:r;if(!n)throw new Error(`Could not resolve version for ${e.name}`);return n}var Jx={blue:"bg-blue-600 text-white border-blue-600 hover:bg-blue-700",green:"bg-green-600 text-white border-green-600 hover:bg-green-700",red:"bg-red-600 text-white border-red-600 hover:bg-red-700",orange:"bg-orange-600 text-white border-orange-600 hover:bg-orange-700",purple:"bg-purple-600 text-white border-purple-600 hover:bg-purple-700",gray:"bg-gray-600 text-white border-gray-600 hover:bg-gray-700",emerald:"bg-emerald-500 text-white border-emerald-500 hover:bg-emerald-600",cyan:"bg-cyan-500 text-white border-cyan-500 hover:bg-cyan-600",yellow:"bg-yellow-400 text-black border-yellow-400 hover:bg-yellow-500"},Qx={blue:"text-blue-600 hover:bg-blue-100 dark:hover:bg-blue-900/30",green:"text-green-600 hover:bg-green-100 dark:hover:bg-green-900/30",red:"text-red-600 hover:bg-red-100 dark:hover:bg-red-900/30",orange:"text-orange-600 hover:bg-orange-100 dark:hover:bg-orange-900/30",purple:"text-purple-600 hover:bg-purple-100 dark:hover:bg-purple-900/30",gray:"text-gray-600 dark:text-gray-400 hover:bg-gray-100 dark:hover:bg-gray-700",emerald:"text-emerald-600 hover:bg-emerald-100 dark:hover:bg-emerald-900/30",cyan:"text-cyan-600 hover:bg-cyan-100 dark:hover:bg-cyan-900/30",yellow:"text-yellow-600 hover:bg-yellow-100 dark:hover:bg-yellow-900/30"},e9={primary:"border font-medium",secondary:"bg-gray-100 dark:bg-gray-800 text-gray-600 dark:text-gray-400 hover:bg-gray-200 dark:hover:bg-gray-700 border-transparent font-medium",ghost:"border border-gray-200 dark:border-gray-700 hover:bg-gray-100 dark:hover:bg-gray-800 font-medium",icon:"border-transparent"},t9={xs:"px-2 py-1.5 text-xs",sm:"px-3 py-1 text-sm",md:"px-4 py-2 text-sm",lg:"px-6 py-3 text-base","icon-sm":"p-1.5","icon-md":"p-2"},r9={none:"rounded-none",md:"rounded-md",lg:"rounded-lg",full:"rounded-full"},n9="inline-flex items-center justify-center gap-2 cursor-pointer transition-colors disabled:opacity-50 disabled:cursor-not-allowed focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-blue-500 focus-visible:ring-offset-1 focus-visible:ring-offset-white dark:focus-visible:ring-offset-gray-900";function a9(e){return e==="icon"?"icon-md":"md"}function o9(e){return e==="xs"||e==="sm"?"md":"lg"}var wr=Z(function(t,r){const{as:n,children:a,variant:o="primary",color:i="blue",size:s,rounded:c,className:l,...d}=t,u=n||"button",f=s??a9(o),m=c??o9(f),h=o==="primary"?Jx[i]:o==="icon"?Qx[i]:"";return zt(u,{ref:r,className:z(n9,e9[o],t9[f],r9[m],h,l),...d},a)}),vf=3840;function _c(e,t,r){if(!(typeof e!="number"||!Number.isFinite(e)))return Math.min(r,Math.max(t,Math.round(e)))}function Zg(e,t={}){if(!e.trim()||/^(?:javascript|vbscript):/i.test(e.trim()))return"";if(!s9(e))return e;const r=l9(t);return r?`${c9()}/cdn-cgi/image/${r}/${encodeURI(e).replace(/^\//,"")}`:e}function i9(e,t={}){const r=Zg(e,t);return r?r.startsWith("http")?r:`${"https://tanstack.com".replace(/\/$/,"")}${r.startsWith("/")?r:`/${r}`}`:""}function s9(e){const t=e.toLowerCase();return e.startsWith("/")&&!e.startsWith("/cdn-cgi/image/")&&!t.startsWith("data:")&&!t.endsWith(".svg")}function c9(){return"https://tanstack.com".replace(/\/$/,"")}function l9(e){const t=[],r=_c(e.width,1,vf),n=_c(e.height,1,vf),a=_c(e.quality??80,1,100)??80;return r&&t.push(`width=${r}`),n&&t.push(`height=${n}`),e.fit&&t.push(`fit=${e.fit}`),t.push(`quality=${a}`),t.push(`format=${e.format??"auto"}`),t.length>0?t.join(","):void 0}var FK=!!(typeof window<"u"&&window.document&&window.document.createElement);function he(e,t,{checkForDefaultPrevented:r=!0}={}){return function(a){if(e?.(a),r===!1||!a.defaultPrevented)return t?.(a)}}function yf(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function Rs(...e){return t=>{let r=!1;const n=e.map(a=>{const o=yf(a,t);return!r&&typeof o=="function"&&(r=!0),o});if(r)return()=>{for(let a=0;a{const{children:i,...s}=o,c=Fe(()=>s,Object.values(s));return p(r.Provider,{value:c,children:i})};n.displayName=e+"Provider";function a(o){const i=qt(r);if(i)return i;if(t!==void 0)return t;throw new Error(`\`${o}\` must be used within \`${e}\``)}return[n,a]}function xa(e,t=[]){let r=[];function n(o,i){const s=Bt(i),c=r.length;r=[...r,i];const l=u=>{const{scope:f,children:m,...h}=u,g=f?.[e]?.[c]||s,v=Fe(()=>h,Object.values(h));return p(g.Provider,{value:v,children:m})};l.displayName=o+"Provider";function d(u,f){const m=f?.[e]?.[c]||s,h=qt(m);if(h)return h;if(i!==void 0)return i;throw new Error(`\`${u}\` must be used within \`${o}\``)}return[l,d]}const a=()=>{const o=r.map(i=>Bt(i));return function(s){const c=s?.[e]||o;return Fe(()=>({[`__scope${e}`]:{...s,[e]:c}}),[s,c])}};return a.scopeName=e,[n,d9(a,...t)]}function d9(...e){const t=e[0];if(e.length===1)return t;const r=()=>{const n=e.map(a=>({useScope:a(),scopeName:a.scopeName}));return function(o){const i=n.reduce((s,{useScope:c,scopeName:l})=>{const d=c(o)[`__scope${l}`];return{...s,...d}},{});return Fe(()=>({[`__scope${t.scopeName}`]:i}),[i])}};return r.scopeName=t.scopeName,r}function no(e){const t=p9(e),r=Z((n,a)=>{const{children:o,...i}=n,s=rr.toArray(o),c=s.find(f9);if(c){const l=c.props.children,d=s.map(u=>u===c?rr.count(l)>1?rr.only(null):Ka(l)?l.props.children:null:u);return p(t,{...i,ref:a,children:Ka(l)?bs(l,void 0,d):null})}return p(t,{...i,ref:a,children:o})});return r.displayName=`${e}.Slot`,r}function p9(e){const t=Z((r,n)=>{const{children:a,...o}=r;if(Ka(a)){const i=h9(a),s=m9(o,a.props);return a.type!==fe&&(s.ref=n?Rs(n,i):i),bs(a,s)}return rr.count(a)>1?rr.only(null):null});return t.displayName=`${e}.SlotClone`,t}var Kg=Symbol("radix.slottable");function zK(e){const t=({children:r})=>p(fe,{children:r});return t.displayName=`${e}.Slottable`,t.__radixId=Kg,t}function f9(e){return Ka(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===Kg}function m9(e,t){const r={...t};for(const n in t){const a=e[n],o=t[n];/^on[A-Z]/.test(n)?a&&o?r[n]=(...i)=>{const s=o(...i);return a(...i),s}:a&&(r[n]=a):n==="style"?r[n]={...a,...o}:n==="className"&&(r[n]=[a,o].filter(Boolean).join(" "))}return{...e,...r}}function h9(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,r=t&&"isReactWarning"in t&&t.isReactWarning;return r?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,r=t&&"isReactWarning"in t&&t.isReactWarning,r?e.props.ref:e.props.ref||e.ref)}var Be=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"].reduce((e,t)=>{const r=no(`Primitive.${t}`),n=Z((a,o)=>{const{asChild:i,...s}=a,c=i?r:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),p(c,{...s,ref:o})});return n.displayName=`Primitive.${t}`,{...e,[t]:n}},{});function Yg(e,t){e&&y0(()=>e.dispatchEvent(t))}function ir(e){const t=V(e);return U(()=>{t.current=e}),Fe(()=>(...r)=>t.current?.(...r),[])}function g9(e,t=globalThis?.document){const r=ir(e);U(()=>{const n=a=>{a.key==="Escape"&&r(a)};return t.addEventListener("keydown",n,{capture:!0}),()=>t.removeEventListener("keydown",n,{capture:!0})},[r,t])}var v9="DismissableLayer",wl="dismissableLayer.update",y9="dismissableLayer.pointerDownOutside",b9="dismissableLayer.focusOutside",bf,Xg=Bt({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),gu=Z((e,t)=>{const{disableOutsidePointerEvents:r=!1,onEscapeKeyDown:n,onPointerDownOutside:a,onFocusOutside:o,onInteractOutside:i,onDismiss:s,...c}=e,l=qt(Xg),[d,u]=H(null),f=d?.ownerDocument??globalThis?.document,[,m]=H({}),h=Qe(t,T=>u(T)),g=Array.from(l.layers),[v]=[...l.layersWithOutsidePointerEventsDisabled].slice(-1),b=g.indexOf(v),I=d?g.indexOf(d):-1,y=l.layersWithOutsidePointerEventsDisabled.size>0,S=I>=b,w=k9(T=>{const E=T.target,L=[...l.branches].some(j=>j.contains(E));!S||L||(a?.(T),i?.(T),T.defaultPrevented||s?.())},f),C=S9(T=>{const E=T.target;[...l.branches].some(L=>L.contains(E))||(o?.(T),i?.(T),T.defaultPrevented||s?.())},f);return g9(T=>{I===l.layers.size-1&&(n?.(T),!T.defaultPrevented&&s&&(T.preventDefault(),s()))},f),U(()=>{if(d)return r&&(l.layersWithOutsidePointerEventsDisabled.size===0&&(bf=f.body.style.pointerEvents,f.body.style.pointerEvents="none"),l.layersWithOutsidePointerEventsDisabled.add(d)),l.layers.add(d),wf(),()=>{r&&l.layersWithOutsidePointerEventsDisabled.size===1&&(f.body.style.pointerEvents=bf)}},[d,f,r,l]),U(()=>()=>{d&&(l.layers.delete(d),l.layersWithOutsidePointerEventsDisabled.delete(d),wf())},[d,l]),U(()=>{const T=()=>m({});return document.addEventListener(wl,T),()=>document.removeEventListener(wl,T)},[]),p(Be.div,{...c,ref:h,style:{pointerEvents:y?S?"auto":"none":void 0,...e.style},onFocusCapture:he(e.onFocusCapture,C.onFocusCapture),onBlurCapture:he(e.onBlurCapture,C.onBlurCapture),onPointerDownCapture:he(e.onPointerDownCapture,w.onPointerDownCapture)})});gu.displayName=v9;var w9="DismissableLayerBranch",_9=Z((e,t)=>{const r=qt(Xg),n=V(null),a=Qe(t,n);return U(()=>{const o=n.current;if(o)return r.branches.add(o),()=>{r.branches.delete(o)}},[r.branches]),p(Be.div,{...e,ref:a})});_9.displayName=w9;function k9(e,t=globalThis?.document){const r=ir(e),n=V(!1),a=V(()=>{});return U(()=>{const o=s=>{if(s.target&&!n.current){let c=function(){Jg(y9,r,l,{discrete:!0})};const l={originalEvent:s};s.pointerType==="touch"?(t.removeEventListener("click",a.current),a.current=c,t.addEventListener("click",a.current,{once:!0})):c()}else t.removeEventListener("click",a.current);n.current=!1},i=window.setTimeout(()=>{t.addEventListener("pointerdown",o)},0);return()=>{window.clearTimeout(i),t.removeEventListener("pointerdown",o),t.removeEventListener("click",a.current)}},[t,r]),{onPointerDownCapture:()=>n.current=!0}}function S9(e,t=globalThis?.document){const r=ir(e),n=V(!1);return U(()=>{const a=o=>{o.target&&!n.current&&Jg(b9,r,{originalEvent:o},{discrete:!1})};return t.addEventListener("focusin",a),()=>t.removeEventListener("focusin",a)},[t,r]),{onFocusCapture:()=>n.current=!0,onBlurCapture:()=>n.current=!1}}function wf(){const e=new CustomEvent(wl);document.dispatchEvent(e)}function Jg(e,t,r,{discrete:n}){const a=r.originalEvent.target,o=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:r});t&&a.addEventListener(e,t,{once:!0}),n?Yg(a,o):a.dispatchEvent(o)}var Kr=globalThis?.document?ql:()=>{},x9=m0[" useId ".trim().toString()]||(()=>{}),E9=0;function qr(e){const[t,r]=H(x9());return Kr(()=>{e||r(n=>n??String(E9++))},[e]),e||(t?`radix-${t}`:"")}var T9=["top","right","bottom","left"],Yr=Math.min,wt=Math.max,ji=Math.round,Xo=Math.floor,nr=e=>({x:e,y:e}),I9={left:"right",right:"left",bottom:"top",top:"bottom"};function _l(e,t,r){return wt(e,Yr(t,r))}function xr(e,t){return typeof e=="function"?e(t):e}function Er(e){return e.split("-")[0]}function Ea(e){return e.split("-")[1]}function vu(e){return e==="x"?"y":"x"}function yu(e){return e==="y"?"height":"width"}function tr(e){const t=e[0];return t==="t"||t==="b"?"y":"x"}function bu(e){return vu(tr(e))}function C9(e,t,r){r===void 0&&(r=!1);const n=Ea(e),a=bu(e),o=yu(a);let i=a==="x"?n===(r?"end":"start")?"right":"left":n==="start"?"bottom":"top";return t.reference[o]>t.floating[o]&&(i=qi(i)),[i,qi(i)]}function R9(e){const t=qi(e);return[kl(e),t,kl(t)]}function kl(e){return e.includes("start")?e.replace("start","end"):e.replace("end","start")}var _f=["left","right"],kf=["right","left"],$9=["top","bottom"],P9=["bottom","top"];function A9(e,t,r){switch(e){case"top":case"bottom":return r?t?kf:_f:t?_f:kf;case"left":case"right":return t?$9:P9;default:return[]}}function L9(e,t,r,n){const a=Ea(e);let o=A9(Er(e),r==="start",n);return a&&(o=o.map(i=>i+"-"+a),t&&(o=o.concat(o.map(kl)))),o}function qi(e){const t=Er(e);return I9[t]+e.slice(t.length)}function N9(e){return{top:0,right:0,bottom:0,left:0,...e}}function Qg(e){return typeof e!="number"?N9(e):{top:e,right:e,bottom:e,left:e}}function Gi(e){const{x:t,y:r,width:n,height:a}=e;return{width:n,height:a,top:r,left:t,right:t+n,bottom:r+a,x:t,y:r}}function Sf(e,t,r){let{reference:n,floating:a}=e;const o=tr(t),i=bu(t),s=yu(i),c=Er(t),l=o==="y",d=n.x+n.width/2-a.width/2,u=n.y+n.height/2-a.height/2,f=n[s]/2-a[s]/2;let m;switch(c){case"top":m={x:d,y:n.y-a.height};break;case"bottom":m={x:d,y:n.y+n.height};break;case"right":m={x:n.x+n.width,y:u};break;case"left":m={x:n.x-a.width,y:u};break;default:m={x:n.x,y:n.y}}switch(Ea(t)){case"start":m[i]-=f*(r&&l?-1:1);break;case"end":m[i]+=f*(r&&l?-1:1);break}return m}async function D9(e,t){var r;t===void 0&&(t={});const{x:n,y:a,platform:o,rects:i,elements:s,strategy:c}=e,{boundary:l="clippingAncestors",rootBoundary:d="viewport",elementContext:u="floating",altBoundary:f=!1,padding:m=0}=xr(t,e),h=Qg(m),g=s[f?u==="floating"?"reference":"floating":u],v=Gi(await o.getClippingRect({element:(r=await(o.isElement==null?void 0:o.isElement(g)))==null||r?g:g.contextElement||await(o.getDocumentElement==null?void 0:o.getDocumentElement(s.floating)),boundary:l,rootBoundary:d,strategy:c})),b=u==="floating"?{x:n,y:a,width:i.floating.width,height:i.floating.height}:i.reference,I=await(o.getOffsetParent==null?void 0:o.getOffsetParent(s.floating)),y=await(o.isElement==null?void 0:o.isElement(I))?await(o.getScale==null?void 0:o.getScale(I))||{x:1,y:1}:{x:1,y:1},S=Gi(o.convertOffsetParentRelativeRectToViewportRelativeRect?await o.convertOffsetParentRelativeRectToViewportRelativeRect({elements:s,rect:b,offsetParent:I,strategy:c}):b);return{top:(v.top-S.top+h.top)/y.y,bottom:(S.bottom-v.bottom+h.bottom)/y.y,left:(v.left-S.left+h.left)/y.x,right:(S.right-v.right+h.right)/y.x}}var O9=50,M9=async(e,t,r)=>{const{placement:n="bottom",strategy:a="absolute",middleware:o=[],platform:i}=r,s=i.detectOverflow?i:{...i,detectOverflow:D9},c=await(i.isRTL==null?void 0:i.isRTL(t));let l=await i.getElementRects({reference:e,floating:t,strategy:a}),{x:d,y:u}=Sf(l,n,c),f=n,m=0;const h={};for(let g=0;g({name:"arrow",options:e,async fn(t){const{x:r,y:n,placement:a,rects:o,platform:i,elements:s,middlewareData:c}=t,{element:l,padding:d=0}=xr(e,t)||{};if(l==null)return{};const u=Qg(d),f={x:r,y:n},m=bu(a),h=yu(m),g=await i.getDimensions(l),v=m==="y",b=v?"top":"left",I=v?"bottom":"right",y=v?"clientHeight":"clientWidth",S=o.reference[h]+o.reference[m]-f[m]-o.floating[h],w=f[m]-o.reference[m],C=await(i.getOffsetParent==null?void 0:i.getOffsetParent(l));let T=C?C[y]:0;(!T||!await(i.isElement==null?void 0:i.isElement(C)))&&(T=s.floating[y]||o.floating[h]);const E=S/2-w/2,L=T/2-g[h]/2-1,j=Yr(u[b],L),ue=Yr(u[I],L),q=j,X=T-g[h]-ue,de=T/2-g[h]/2+E,ge=_l(q,de,X),B=!c.arrow&&Ea(a)!=null&&de!==ge&&o.reference[h]/2-(dede<=0)){var ue,q;const de=(((ue=o.flip)==null?void 0:ue.index)||0)+1,ge=T[de];if(ge&&(!(u==="alignment"&&I!==tr(ge))||j.every(Y=>tr(Y.placement)===I?Y.overflows[0]>0:!0)))return{data:{index:de,overflows:j},reset:{placement:ge}};let B=(q=j.filter(Y=>Y.overflows[0]<=0).sort((Y,F)=>Y.overflows[1]-F.overflows[1])[0])==null?void 0:q.placement;if(!B)switch(m){case"bestFit":{var X;const Y=(X=j.filter(F=>{if(C){const D=tr(F.placement);return D===I||D==="y"}return!0}).map(F=>[F.placement,F.overflows.filter(D=>D>0).reduce((D,A)=>D+A,0)]).sort((F,D)=>F[1]-D[1])[0])==null?void 0:X[0];Y&&(B=Y);break}case"initialPlacement":B=s;break}if(a!==B)return{reset:{placement:B}}}return{}}}};function xf(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function Ef(e){return T9.some(t=>e[t]>=0)}var V9=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:r,platform:n}=t,{strategy:a="referenceHidden",...o}=xr(e,t);switch(a){case"referenceHidden":{const i=xf(await n.detectOverflow(t,{...o,elementContext:"reference"}),r.reference);return{data:{referenceHiddenOffsets:i,referenceHidden:Ef(i)}}}case"escaped":{const i=xf(await n.detectOverflow(t,{...o,altBoundary:!0}),r.floating);return{data:{escapedOffsets:i,escaped:Ef(i)}}}default:return{}}}}},e2=new Set(["left","top"]);async function B9(e,t){const{placement:r,platform:n,elements:a}=e,o=await(n.isRTL==null?void 0:n.isRTL(a.floating)),i=Er(r),s=Ea(r),c=tr(r)==="y",l=e2.has(i)?-1:1,d=o&&c?-1:1,u=xr(t,e);let{mainAxis:f,crossAxis:m,alignmentAxis:h}=typeof u=="number"?{mainAxis:u,crossAxis:0,alignmentAxis:null}:{mainAxis:u.mainAxis||0,crossAxis:u.crossAxis||0,alignmentAxis:u.alignmentAxis};return s&&typeof h=="number"&&(m=s==="end"?h*-1:h),c?{x:m*d,y:f*l}:{x:f*l,y:m*d}}var H9=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var r,n;const{x:a,y:o,placement:i,middlewareData:s}=t,c=await B9(t,e);return i===((r=s.offset)==null?void 0:r.placement)&&(n=s.arrow)!=null&&n.alignmentOffset?{}:{x:a+c.x,y:o+c.y,data:{...c,placement:i}}}}},U9=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:r,y:n,placement:a,platform:o}=t,{mainAxis:i=!0,crossAxis:s=!1,limiter:c={fn:b=>{let{x:I,y}=b;return{x:I,y}}},...l}=xr(e,t),d={x:r,y:n},u=await o.detectOverflow(t,l),f=tr(Er(a)),m=vu(f);let h=d[m],g=d[f];if(i){const b=m==="y"?"top":"left",I=m==="y"?"bottom":"right",y=h+u[b],S=h-u[I];h=_l(y,h,S)}if(s){const b=f==="y"?"top":"left",I=f==="y"?"bottom":"right",y=g+u[b],S=g-u[I];g=_l(y,g,S)}const v=c.fn({...t,[m]:h,[f]:g});return{...v,data:{x:v.x-r,y:v.y-n,enabled:{[m]:i,[f]:s}}}}}},j9=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:r,y:n,placement:a,rects:o,middlewareData:i}=t,{offset:s=0,mainAxis:c=!0,crossAxis:l=!0}=xr(e,t),d={x:r,y:n},u=tr(a),f=vu(u);let m=d[f],h=d[u];const g=xr(s,t),v=typeof g=="number"?{mainAxis:g,crossAxis:0}:{mainAxis:0,crossAxis:0,...g};if(c){const y=f==="y"?"height":"width",S=o.reference[f]-o.floating[y]+v.mainAxis,w=o.reference[f]+o.reference[y]-v.mainAxis;mw&&(m=w)}if(l){var b,I;const y=f==="y"?"width":"height",S=e2.has(Er(a)),w=o.reference[u]-o.floating[y]+(S&&((b=i.offset)==null?void 0:b[u])||0)+(S?0:v.crossAxis),C=o.reference[u]+o.reference[y]+(S?0:((I=i.offset)==null?void 0:I[u])||0)-(S?v.crossAxis:0);hC&&(h=C)}return{[f]:m,[u]:h}}}},q9=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var r,n;const{placement:a,rects:o,platform:i,elements:s}=t,{apply:c=()=>{},...l}=xr(e,t),d=await i.detectOverflow(t,l),u=Er(a),f=Ea(a),m=tr(a)==="y",{width:h,height:g}=o.floating;let v,b;u==="top"||u==="bottom"?(v=u,b=f===(await(i.isRTL==null?void 0:i.isRTL(s.floating))?"start":"end")?"left":"right"):(b=u,v=f==="end"?"top":"bottom");const I=g-d.top-d.bottom,y=h-d.left-d.right,S=Yr(g-d[v],I),w=Yr(h-d[b],y),C=!t.middlewareData.shift;let T=S,E=w;if((r=t.middlewareData.shift)!=null&&r.enabled.x&&(E=y),(n=t.middlewareData.shift)!=null&&n.enabled.y&&(T=I),C&&!f){const j=wt(d.left,0),ue=wt(d.right,0),q=wt(d.top,0),X=wt(d.bottom,0);m?E=h-2*(j!==0||ue!==0?j+ue:wt(d.left,d.right)):T=g-2*(q!==0||X!==0?q+X:wt(d.top,d.bottom))}await c({...t,availableWidth:E,availableHeight:T});const L=await i.getDimensions(s.floating);return h!==L.width||g!==L.height?{reset:{rects:!0}}:{}}}};function $s(){return typeof window<"u"}function Ta(e){return t2(e)?(e.nodeName||"").toLowerCase():"#document"}function St(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function lr(e){var t;return(t=(t2(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function t2(e){return $s()?e instanceof Node||e instanceof St(e).Node:!1}function Ht(e){return $s()?e instanceof Element||e instanceof St(e).Element:!1}function Rr(e){return $s()?e instanceof HTMLElement||e instanceof St(e).HTMLElement:!1}function Tf(e){return!$s()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof St(e).ShadowRoot}function Lo(e){const{overflow:t,overflowX:r,overflowY:n,display:a}=Ut(e);return/auto|scroll|overlay|hidden|clip/.test(t+n+r)&&a!=="inline"&&a!=="contents"}function G9(e){return/^(table|td|th)$/.test(Ta(e))}function Ps(e){try{if(e.matches(":popover-open"))return!0}catch{}try{return e.matches(":modal")}catch{return!1}}var W9=/transform|translate|scale|rotate|perspective|filter/,Z9=/paint|layout|strict|content/,un=e=>!!e&&e!=="none",kc;function wu(e){const t=Ht(e)?Ut(e):e;return un(t.transform)||un(t.translate)||un(t.scale)||un(t.rotate)||un(t.perspective)||!_u()&&(un(t.backdropFilter)||un(t.filter))||W9.test(t.willChange||"")||Z9.test(t.contain||"")}function K9(e){let t=Xr(e);for(;Rr(t)&&!oa(t);){if(wu(t))return t;if(Ps(t))return null;t=Xr(t)}return null}function _u(){return kc==null&&(kc=typeof CSS<"u"&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),kc}function oa(e){return/^(html|body|#document)$/.test(Ta(e))}function Ut(e){return St(e).getComputedStyle(e)}function As(e){return Ht(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function Xr(e){if(Ta(e)==="html")return e;const t=e.assignedSlot||e.parentNode||Tf(e)&&e.host||lr(e);return Tf(t)?t.host:t}function r2(e){const t=Xr(e);return oa(t)?e.ownerDocument?e.ownerDocument.body:e.body:Rr(t)&&Lo(t)?t:r2(t)}function ao(e,t,r){var n;t===void 0&&(t=[]),r===void 0&&(r=!0);const a=r2(e),o=a===((n=e.ownerDocument)==null?void 0:n.body),i=St(a);if(o){const s=Sl(i);return t.concat(i,i.visualViewport||[],Lo(a)?a:[],s&&r?ao(s):[])}else return t.concat(a,ao(a,[],r))}function Sl(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function n2(e){const t=Ut(e);let r=parseFloat(t.width)||0,n=parseFloat(t.height)||0;const a=Rr(e),o=a?e.offsetWidth:r,i=a?e.offsetHeight:n,s=ji(r)!==o||ji(n)!==i;return s&&(r=o,n=i),{width:r,height:n,$:s}}function ku(e){return Ht(e)?e:e.contextElement}function Xn(e){const t=ku(e);if(!Rr(t))return nr(1);const r=t.getBoundingClientRect(),{width:n,height:a,$:o}=n2(t);let i=(o?ji(r.width):r.width)/n,s=(o?ji(r.height):r.height)/a;return(!i||!Number.isFinite(i))&&(i=1),(!s||!Number.isFinite(s))&&(s=1),{x:i,y:s}}var Y9=nr(0);function a2(e){const t=St(e);return!_u()||!t.visualViewport?Y9:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function X9(e,t,r){return t===void 0&&(t=!1),!r||t&&r!==St(e)?!1:t}function kn(e,t,r,n){t===void 0&&(t=!1),r===void 0&&(r=!1);const a=e.getBoundingClientRect(),o=ku(e);let i=nr(1);t&&(n?Ht(n)&&(i=Xn(n)):i=Xn(e));const s=X9(o,r,n)?a2(o):nr(0);let c=(a.left+s.x)/i.x,l=(a.top+s.y)/i.y,d=a.width/i.x,u=a.height/i.y;if(o){const f=St(o),m=n&&Ht(n)?St(n):n;let h=f,g=Sl(h);for(;g&&n&&m!==h;){const v=Xn(g),b=g.getBoundingClientRect(),I=Ut(g),y=b.left+(g.clientLeft+parseFloat(I.paddingLeft))*v.x,S=b.top+(g.clientTop+parseFloat(I.paddingTop))*v.y;c*=v.x,l*=v.y,d*=v.x,u*=v.y,c+=y,l+=S,h=St(g),g=Sl(h)}}return Gi({width:d,height:u,x:c,y:l})}function Ls(e,t){const r=As(e).scrollLeft;return t?t.left+r:kn(lr(e)).left+r}function o2(e,t){const r=e.getBoundingClientRect();return{x:r.left+t.scrollLeft-Ls(e,r),y:r.top+t.scrollTop}}function J9(e){let{elements:t,rect:r,offsetParent:n,strategy:a}=e;const o=a==="fixed",i=lr(n),s=t?Ps(t.floating):!1;if(n===i||s&&o)return r;let c={scrollLeft:0,scrollTop:0},l=nr(1);const d=nr(0),u=Rr(n);if((u||!u&&!o)&&((Ta(n)!=="body"||Lo(i))&&(c=As(n)),u)){const m=kn(n);l=Xn(n),d.x=m.x+n.clientLeft,d.y=m.y+n.clientTop}const f=i&&!u&&!o?o2(i,c):nr(0);return{width:r.width*l.x,height:r.height*l.y,x:r.x*l.x-c.scrollLeft*l.x+d.x+f.x,y:r.y*l.y-c.scrollTop*l.y+d.y+f.y}}function Q9(e){return Array.from(e.getClientRects())}function e8(e){const t=lr(e),r=As(e),n=e.ownerDocument.body,a=wt(t.scrollWidth,t.clientWidth,n.scrollWidth,n.clientWidth),o=wt(t.scrollHeight,t.clientHeight,n.scrollHeight,n.clientHeight);let i=-r.scrollLeft+Ls(e);const s=-r.scrollTop;return Ut(n).direction==="rtl"&&(i+=wt(t.clientWidth,n.clientWidth)-a),{width:a,height:o,x:i,y:s}}var If=25;function t8(e,t){const r=St(e),n=lr(e),a=r.visualViewport;let o=n.clientWidth,i=n.clientHeight,s=0,c=0;if(a){o=a.width,i=a.height;const d=_u();(!d||d&&t==="fixed")&&(s=a.offsetLeft,c=a.offsetTop)}const l=Ls(n);if(l<=0){const d=n.ownerDocument,u=d.body,f=getComputedStyle(u),m=d.compatMode==="CSS1Compat"&&parseFloat(f.marginLeft)+parseFloat(f.marginRight)||0,h=Math.abs(n.clientWidth-u.clientWidth-m);h<=If&&(o-=h)}else l<=If&&(o+=l);return{width:o,height:i,x:s,y:c}}function r8(e,t){const r=kn(e,!0,t==="fixed"),n=r.top+e.clientTop,a=r.left+e.clientLeft,o=Rr(e)?Xn(e):nr(1);return{width:e.clientWidth*o.x,height:e.clientHeight*o.y,x:a*o.x,y:n*o.y}}function Cf(e,t,r){let n;if(t==="viewport")n=t8(e,r);else if(t==="document")n=e8(lr(e));else if(Ht(t))n=r8(t,r);else{const a=a2(e);n={x:t.x-a.x,y:t.y-a.y,width:t.width,height:t.height}}return Gi(n)}function i2(e,t){const r=Xr(e);return r===t||!Ht(r)||oa(r)?!1:Ut(r).position==="fixed"||i2(r,t)}function n8(e,t){const r=t.get(e);if(r)return r;let n=ao(e,[],!1).filter(s=>Ht(s)&&Ta(s)!=="body"),a=null;const o=Ut(e).position==="fixed";let i=o?Xr(e):e;for(;Ht(i)&&!oa(i);){const s=Ut(i),c=wu(i);!c&&s.position==="fixed"&&(a=null),(o?!c&&!a:!c&&s.position==="static"&&a&&(a.position==="absolute"||a.position==="fixed")||Lo(i)&&!c&&i2(e,i))?n=n.filter(l=>l!==i):a=s,i=Xr(i)}return t.set(e,n),n}function a8(e){let{element:t,boundary:r,rootBoundary:n,strategy:a}=e;const o=[...r==="clippingAncestors"?Ps(t)?[]:n8(t,this._c):[].concat(r),n],i=Cf(t,o[0],a);let s=i.top,c=i.right,l=i.bottom,d=i.left;for(let u=1;u{i(!1,1e-7)},1e3)}C===1&&!c2(l,e.getBoundingClientRect())&&i(),y=!1}try{r=new IntersectionObserver(S,{...I,root:a.ownerDocument})}catch{r=new IntersectionObserver(S,I)}r.observe(e)}return i(!0),o}function d8(e,t,r,n){n===void 0&&(n={});const{ancestorScroll:a=!0,ancestorResize:o=!0,elementResize:i=typeof ResizeObserver=="function",layoutShift:s=typeof IntersectionObserver=="function",animationFrame:c=!1}=n,l=ku(e),d=a||o?[...l?ao(l):[],...t?ao(t):[]]:[];d.forEach(b=>{a&&b.addEventListener("scroll",r,{passive:!0}),o&&b.addEventListener("resize",r)});const u=l&&s?u8(l,r):null;let f=-1,m=null;i&&(m=new ResizeObserver(b=>{let[I]=b;I&&I.target===l&&m&&t&&(m.unobserve(t),cancelAnimationFrame(f),f=requestAnimationFrame(()=>{var y;(y=m)==null||y.observe(t)})),r()}),l&&!c&&m.observe(l),t&&m.observe(t));let h,g=c?kn(e):null;c&&v();function v(){const b=kn(e);g&&!c2(g,b)&&r(),g=b,h=requestAnimationFrame(v)}return r(),()=>{var b;d.forEach(I=>{a&&I.removeEventListener("scroll",r),o&&I.removeEventListener("resize",r)}),u?.(),(b=m)==null||b.disconnect(),m=null,c&&cancelAnimationFrame(h)}}var p8=H9,f8=U9,m8=z9,h8=q9,g8=V9,$f=F9,v8=j9,y8=(e,t,r)=>{const n=new Map,a={platform:l8,...r},o={...a.platform,_c:n};return M9(e,t,{...a,platform:o})},Si=typeof document<"u"?ql:function(){};function Wi(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 r,n,a;if(e&&t&&typeof e=="object"){if(Array.isArray(e)){if(r=e.length,r!==t.length)return!1;for(n=r;n--!==0;)if(!Wi(e[n],t[n]))return!1;return!0}if(a=Object.keys(e),r=a.length,r!==Object.keys(t).length)return!1;for(n=r;n--!==0;)if(!{}.hasOwnProperty.call(t,a[n]))return!1;for(n=r;n--!==0;){const o=a[n];if(!(o==="_owner"&&e.$$typeof)&&!Wi(e[o],t[o]))return!1}return!0}return e!==e&&t!==t}function l2(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function Pf(e,t){const r=l2(e);return Math.round(t*r)/r}function xc(e){const t=V(e);return Si(()=>{t.current=e}),t}function b8(e){e===void 0&&(e={});const{placement:t="bottom",strategy:r="absolute",middleware:n=[],platform:a,elements:{reference:o,floating:i}={},transform:s=!0,whileElementsMounted:c,open:l}=e,[d,u]=H({x:0,y:0,strategy:r,placement:t,middlewareData:{},isPositioned:!1}),[f,m]=H(n);Wi(f,n)||m(n);const[h,g]=H(null),[v,b]=H(null),I=ne(F=>{F!==C.current&&(C.current=F,g(F))},[]),y=ne(F=>{F!==T.current&&(T.current=F,b(F))},[]),S=o||h,w=i||v,C=V(null),T=V(null),E=V(d),L=c!=null,j=xc(c),ue=xc(a),q=xc(l),X=ne(()=>{if(!C.current||!T.current)return;const F={placement:t,strategy:r,middleware:f};ue.current&&(F.platform=ue.current),y8(C.current,T.current,F).then(D=>{const A={...D,isPositioned:q.current!==!1};de.current&&!Wi(E.current,A)&&(E.current=A,y0(()=>{u(A)}))})},[f,t,r,ue,q]);Si(()=>{l===!1&&E.current.isPositioned&&(E.current.isPositioned=!1,u(F=>({...F,isPositioned:!1})))},[l]);const de=V(!1);Si(()=>(de.current=!0,()=>{de.current=!1}),[]),Si(()=>{if(S&&(C.current=S),w&&(T.current=w),S&&w){if(j.current)return j.current(S,w,X);X()}},[S,w,X,j,L]);const ge=Fe(()=>({reference:C,floating:T,setReference:I,setFloating:y}),[I,y]),B=Fe(()=>({reference:S,floating:w}),[S,w]),Y=Fe(()=>{const F={position:r,left:0,top:0};if(!B.floating)return F;const D=Pf(B.floating,d.x),A=Pf(B.floating,d.y);return s?{...F,transform:"translate("+D+"px, "+A+"px)",...l2(B.floating)>=1.5&&{willChange:"transform"}}:{position:r,left:D,top:A}},[r,s,B.floating,d.x,d.y]);return Fe(()=>({...d,update:X,refs:ge,elements:B,floatingStyles:Y}),[d,X,ge,B,Y])}var w8=e=>{function t(r){return{}.hasOwnProperty.call(r,"current")}return{name:"arrow",options:e,fn(r){const{element:n,padding:a}=typeof e=="function"?e(r):e;return n&&t(n)?n.current!=null?$f({element:n.current,padding:a}).fn(r):{}:n?$f({element:n,padding:a}).fn(r):{}}}},_8=(e,t)=>{const r=p8(e);return{name:r.name,fn:r.fn,options:[e,t]}},k8=(e,t)=>{const r=f8(e);return{name:r.name,fn:r.fn,options:[e,t]}},S8=(e,t)=>({fn:v8(e).fn,options:[e,t]}),x8=(e,t)=>{const r=m8(e);return{name:r.name,fn:r.fn,options:[e,t]}},E8=(e,t)=>{const r=h8(e);return{name:r.name,fn:r.fn,options:[e,t]}},T8=(e,t)=>{const r=g8(e);return{name:r.name,fn:r.fn,options:[e,t]}},I8=(e,t)=>{const r=w8(e);return{name:r.name,fn:r.fn,options:[e,t]}},C8="Arrow",u2=Z((e,t)=>{const{children:r,width:n=10,height:a=5,...o}=e;return p(Be.svg,{...o,ref:t,width:n,height:a,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?r:p("polygon",{points:"0,0 30,0 15,10"})})});u2.displayName=C8;var R8=u2;function $8(e){const[t,r]=H(void 0);return Kr(()=>{if(e){r({width:e.offsetWidth,height:e.offsetHeight});const n=new ResizeObserver(a=>{if(!Array.isArray(a)||!a.length)return;const o=a[0];let i,s;if("borderBoxSize"in o){const c=o.borderBoxSize,l=Array.isArray(c)?c[0]:c;i=l.inlineSize,s=l.blockSize}else i=e.offsetWidth,s=e.offsetHeight;r({width:i,height:s})});return n.observe(e,{box:"border-box"}),()=>n.unobserve(e)}else r(void 0)},[e]),t}var Su="Popper",[d2,p2]=xa(Su),[P8,f2]=d2(Su),m2=e=>{const{__scopePopper:t,children:r}=e,[n,a]=H(null);return p(P8,{scope:t,anchor:n,onAnchorChange:a,children:r})};m2.displayName=Su;var h2="PopperAnchor",g2=Z((e,t)=>{const{__scopePopper:r,virtualRef:n,...a}=e,o=f2(h2,r),i=V(null),s=Qe(t,i),c=V(null);return U(()=>{const l=c.current;c.current=n?.current||i.current,l!==c.current&&o.onAnchorChange(c.current)}),n?null:p(Be.div,{...a,ref:s})});g2.displayName=h2;var xu="PopperContent",[A8,L8]=d2(xu),v2=Z((e,t)=>{const{__scopePopper:r,side:n="bottom",sideOffset:a=0,align:o="center",alignOffset:i=0,arrowPadding:s=0,avoidCollisions:c=!0,collisionBoundary:l=[],collisionPadding:d=0,sticky:u="partial",hideWhenDetached:f=!1,updatePositionStrategy:m="optimized",onPlaced:h,...g}=e,v=f2(xu,r),[b,I]=H(null),y=Qe(t,Re=>I(Re)),[S,w]=H(null),C=$8(S),T=C?.width??0,E=C?.height??0,L=n+(o!=="center"?"-"+o:""),j=typeof d=="number"?d:{top:0,right:0,bottom:0,left:0,...d},ue=Array.isArray(l)?l:[l],q=ue.length>0,X={padding:j,boundary:ue.filter(D8),altBoundary:q},{refs:de,floatingStyles:ge,placement:B,isPositioned:Y,middlewareData:F}=b8({strategy:"fixed",placement:L,whileElementsMounted:(...Re)=>d8(...Re,{animationFrame:m==="always"}),elements:{reference:v.anchor},middleware:[_8({mainAxis:a+E,alignmentAxis:i}),c&&k8({mainAxis:!0,crossAxis:!1,limiter:u==="partial"?S8():void 0,...X}),c&&x8({...X}),E8({...X,apply:({elements:Re,rects:xe,availableWidth:Ie,availableHeight:pr})=>{const{width:Nt,height:vt}=xe.reference,Xt=Re.floating.style;Xt.setProperty("--radix-popper-available-width",`${Ie}px`),Xt.setProperty("--radix-popper-available-height",`${pr}px`),Xt.setProperty("--radix-popper-anchor-width",`${Nt}px`),Xt.setProperty("--radix-popper-anchor-height",`${vt}px`)}}),S&&I8({element:S,padding:s}),O8({arrowWidth:T,arrowHeight:E}),f&&T8({strategy:"referenceHidden",...X})]}),[D,A]=w2(B),ve=ir(h);Kr(()=>{Y&&ve?.()},[Y,ve]);const Oe=F.arrow?.x,Q=F.arrow?.y,ye=F.arrow?.centerOffset!==0,[te,oe]=H();return Kr(()=>{b&&oe(window.getComputedStyle(b).zIndex)},[b]),p("div",{ref:de.setFloating,"data-radix-popper-content-wrapper":"",style:{...ge,transform:Y?ge.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:te,"--radix-popper-transform-origin":[F.transformOrigin?.x,F.transformOrigin?.y].join(" "),...F.hide?.referenceHidden&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:p(A8,{scope:r,placedSide:D,onArrowChange:w,arrowX:Oe,arrowY:Q,shouldHideArrow:ye,children:p(Be.div,{"data-side":D,"data-align":A,...g,ref:y,style:{...g.style,animation:Y?void 0:"none"}})})})});v2.displayName=xu;var y2="PopperArrow",N8={top:"bottom",right:"left",bottom:"top",left:"right"},b2=Z(function(t,r){const{__scopePopper:n,...a}=t,o=L8(y2,n),i=N8[o.placedSide];return p("span",{ref:o.onArrowChange,style:{position:"absolute",left:o.arrowX,top:o.arrowY,[i]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[o.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[o.placedSide],visibility:o.shouldHideArrow?"hidden":void 0},children:p(R8,{...a,ref:r,style:{...a.style,display:"block"}})})});b2.displayName=y2;function D8(e){return e!==null}var O8=e=>({name:"transformOrigin",options:e,fn(t){const{placement:r,rects:n,middlewareData:a}=t,o=a.arrow?.centerOffset!==0,i=o?0:e.arrowWidth,s=o?0:e.arrowHeight,[c,l]=w2(r),d={start:"0%",center:"50%",end:"100%"}[l],u=(a.arrow?.x??0)+i/2,f=(a.arrow?.y??0)+s/2;let m="",h="";return c==="bottom"?(m=o?d:`${u}px`,h=`${-s}px`):c==="top"?(m=o?d:`${u}px`,h=`${n.floating.height+s}px`):c==="right"?(m=`${-s}px`,h=o?d:`${f}px`):c==="left"&&(m=`${n.floating.width+s}px`,h=o?d:`${f}px`),{data:{x:m,y:h}}}});function w2(e){const[t,r="center"]=e.split("-");return[t,r]}var _2=m2,M8=g2,F8=v2,z8=b2,V8="Portal",Eu=Z((e,t)=>{const{container:r,...n}=e,[a,o]=H(!1);Kr(()=>o(!0),[]);const i=r||a&&globalThis?.document?.body;return i?w0.createPortal(p(Be.div,{...n,ref:t}),i):null});Eu.displayName=V8;function B8(e,t){return Pb((r,n)=>t[r][n]??r,e)}var rn=e=>{const{present:t,children:r}=e,n=H8(t),a=typeof r=="function"?r({present:n.isPresent}):rr.only(r),o=Qe(n.ref,U8(a));return typeof r=="function"||n.isPresent?bs(a,{ref:o}):null};rn.displayName="Presence";function H8(e){const[t,r]=H(),n=V(null),a=V(e),o=V("none"),[i,s]=B8(e?"mounted":"unmounted",{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return U(()=>{const c=Jo(n.current);o.current=i==="mounted"?c:"none"},[i]),Kr(()=>{const c=n.current,l=a.current;if(l!==e){const d=o.current,u=Jo(c);e?s("MOUNT"):u==="none"||c?.display==="none"?s("UNMOUNT"):s(l&&d!==u?"ANIMATION_OUT":"UNMOUNT"),a.current=e}},[e,s]),Kr(()=>{if(t){let c;const l=t.ownerDocument.defaultView??window,d=f=>{const m=Jo(n.current).includes(CSS.escape(f.animationName));if(f.target===t&&m&&(s("ANIMATION_END"),!a.current)){const h=t.style.animationFillMode;t.style.animationFillMode="forwards",c=l.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=h)})}},u=f=>{f.target===t&&(o.current=Jo(n.current))};return t.addEventListener("animationstart",u),t.addEventListener("animationcancel",d),t.addEventListener("animationend",d),()=>{l.clearTimeout(c),t.removeEventListener("animationstart",u),t.removeEventListener("animationcancel",d),t.removeEventListener("animationend",d)}}else s("ANIMATION_END")},[t,s]),{isPresent:["mounted","unmountSuspended"].includes(i),ref:ne(c=>{n.current=c?getComputedStyle(c):null,r(c)},[])}}function Jo(e){return e?.animationName||"none"}function U8(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,r=t&&"isReactWarning"in t&&t.isReactWarning;return r?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,r=t&&"isReactWarning"in t&&t.isReactWarning,r?e.props.ref:e.props.ref||e.ref)}var j8=m0[" useInsertionEffect ".trim().toString()]||Kr;function Tu({prop:e,defaultProp:t,onChange:r=()=>{},caller:n}){const[a,o,i]=q8({defaultProp:t,onChange:r}),s=e!==void 0,c=s?e:a;{const l=V(e!==void 0);U(()=>{const d=l.current;d!==s&&console.warn(`${n} is changing from ${d?"controlled":"uncontrolled"} to ${s?"controlled":"uncontrolled"}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`),l.current=s},[s,n])}return[c,ne(l=>{if(s){const d=G8(l)?l(e):l;d!==e&&i.current?.(d)}else o(l)},[s,e,o,i])]}function q8({defaultProp:e,onChange:t}){const[r,n]=H(e),a=V(r),o=V(t);return j8(()=>{o.current=t},[t]),U(()=>{a.current!==r&&(o.current?.(r),a.current=r)},[r,a]),[r,n,o]}function G8(e){return typeof e=="function"}var W8={amber:"border-amber-500/30 bg-amber-500/10 text-amber-700 hover:border-amber-500/60 dark:text-amber-300",blue:"border-blue-500/30 bg-blue-500/10 text-blue-700 hover:border-blue-500/60 dark:text-blue-300",cyan:"border-cyan-500/30 bg-cyan-500/10 text-cyan-700 hover:border-cyan-500/60 dark:text-cyan-300",emerald:"border-emerald-500/30 bg-emerald-500/10 text-emerald-700 hover:border-emerald-500/60 dark:text-emerald-300",gray:"border-gray-300 bg-gray-100 text-gray-700 hover:border-gray-400 dark:border-gray-700 dark:bg-gray-900 dark:text-gray-300 dark:hover:border-gray-500",rose:"border-rose-500/30 bg-rose-500/10 text-rose-700 hover:border-rose-500/60 dark:text-rose-300"},Z8=[{key:"libraries",label:"All libraries",description:"Browse TanStack Query, Router, Table, Start, and more.",href:"/libraries",icon:d0,accent:"emerald",score:1},{key:"blog",label:"Blog",description:"Read release notes, deep dives, and project updates.",href:"/blog",icon:p0,accent:"cyan",score:1},{key:"support",label:"Support",description:"Find paid support, community help, and project resources.",href:"/support",icon:v0,accent:"amber",score:1}],K8=[{key:"shop",label:"Shop",description:"Find TanStack merch and products.",href:"/shop",icon:Gl,accent:"rose",score:0},{key:"showcase",label:"Showcase",description:"Explore projects built with TanStack.",href:"/showcase",icon:u0,accent:"cyan",score:0},{key:"explore",label:"Explore",description:"Sail through the TanStack ecosystem.",href:"/explore",icon:g0,accent:"blue",score:0}];function k2(e){try{return decodeURIComponent(e)}catch{return e}}function S2(e){return new Set(k2(e).toLowerCase().split(/[^a-z0-9]+/g).filter(Boolean))}function Af(e){return e.toLowerCase().replace(/[^a-z0-9]+/g,"")}function Y8(e){return[e.id,e.name.replace(/^TanStack\s+/i,""),e.repo.split("/").at(-1)??"",e.corePackageName??"",...e.legacyPackages??[]].flatMap(t=>t.split(/[^a-zA-Z0-9]+/g)).map(t=>t.toLowerCase()).filter(t=>t.length>1&&t!=="tanstack")}function X8(e,t){const r=S2(t),n=Af(t),a=Y8(e);let o=0;for(const i of a){if(r.has(i)){o+=8;continue}i.length>3&&n.includes(Af(i))&&(o+=3)}return o}function J8(e){return cr.filter(t=>t.visible!==!1).map(t=>({library:t,score:X8(t,e)})).filter(t=>t.score>0).sort((t,r)=>r.score-t.score).slice(0,2).flatMap(({library:t,score:r})=>{const n=[];return t.to&&n.push({key:`library-${t.id}`,label:t.name,description:t.tagline,href:t.to,icon:Pi,accent:"emerald",score:r+2}),t.latestVersion&&n.push({key:`library-docs-${t.id}`,label:`${t.name.replace(/^TanStack\s+/i,"")} docs`,description:"Open the current docs for this project.",href:`/${t.id}/latest/docs/${t.defaultDocs??"overview"}`,icon:Pi,accent:"cyan",score:r+1}),n})}function Q8(e,t){const r=S2(t),n={blog:8,post:4,article:4,docs:5,guide:3,library:5,libraries:6,package:3,npm:4,shop:8,cart:4,product:4,merch:6,showcase:8,example:4,examples:4,explore:8,support:8,help:6,partner:5,partners:5};let a=e.score;for(const[o,i]of Object.entries(n))r.has(o)&&(e.key.includes(o)||e.label.toLowerCase().includes(o)||e.description.toLowerCase().includes(o))&&(a+=i);return a}function e7(e){return[{key:"docs",label:"Docs",description:"Pick a library, then jump into its current documentation.",href:"/libraries",icon:Pi,accent:"emerald",score:0},{key:"help",label:"Support",description:"Get help when the missing page was supposed to unblock you.",href:"/support",icon:f0,accent:"amber",score:0},...K8].map(t=>({...t,score:Q8(t,e)})).filter(t=>t.score>0)}function t7(e){const t=[...J8(e),...e7(e),...Z8],r=new Map;for(const n of t){const a=r.get(n.href);(!a||n.score>a.score)&&r.set(n.href,n)}return Array.from(r.values()).sort((n,a)=>a.score-n.score).slice(0,5)}function r7({destination:e}){const t=e.icon;return _($e,{to:e.href,className:z("group grid min-h-28 grid-cols-[auto_minmax(0,1fr)_auto] items-start gap-3 rounded-lg border p-4 transition-all hover:-translate-y-0.5 hover:shadow-md",W8[e.accent]),children:[p("span",{className:"flex h-9 w-9 shrink-0 items-center justify-center rounded-md bg-white/75 shadow-sm dark:bg-black/40",children:p(t,{className:"h-4 w-4"})}),_("span",{className:"min-w-0",children:[p("span",{className:"block text-sm font-semibold text-gray-950 dark:text-white",children:e.label}),p("span",{className:"mt-1 block text-sm leading-5 text-gray-600 dark:text-gray-400",children:e.description})]}),p(xb,{className:"mt-1 h-4 w-4 shrink-0 opacity-50 transition-transform group-hover:translate-x-0.5 group-hover:opacity-100"})]})}function Iu({children:e}){const t=Wl({select:a=>a.location.pathname}),r=k2(t),n=Fe(()=>t7(t),[t]);return p("div",{className:"flex min-h-[calc(100dvh-var(--navbar-height))] flex-1 bg-gray-50 text-gray-950 dark:bg-gray-950 dark:text-white",children:_("div",{className:"mx-auto grid w-full max-w-6xl gap-8 px-4 py-10 md:px-8 lg:grid-cols-[minmax(0,0.95fr)_minmax(360px,1.05fr)] lg:items-center lg:py-16",children:[_("section",{className:"space-y-7 lg:self-start",children:[_("div",{className:"inline-flex items-center gap-2 rounded-md border border-gray-200 bg-white px-3 py-1 text-xs font-semibold uppercase text-gray-500 shadow-sm dark:border-gray-800 dark:bg-gray-900 dark:text-gray-400",children:[p(g0,{className:"h-3.5 w-3.5"}),"404 Not Found"]}),_("div",{className:"space-y-4",children:[p("h1",{className:"max-w-2xl text-4xl font-black leading-tight tracking-normal text-gray-950 dark:text-white md:text-6xl",children:"This route is not on the map."}),p("p",{className:"max-w-xl text-base leading-7 text-gray-600 dark:text-gray-400 md:text-lg",children:"The address might have moved, been renamed, or picked up an extra segment. I checked the path and found a few places that are more likely to help."})]}),_("div",{className:"rounded-lg border border-gray-200 bg-white p-3 shadow-sm dark:border-gray-800 dark:bg-gray-900",children:[p("div",{className:"text-xs font-medium uppercase text-gray-500 dark:text-gray-400",children:"Tried path"}),p("div",{className:"mt-2 overflow-x-auto rounded-md bg-gray-100 px-3 py-2 font-mono text-sm text-gray-700 dark:bg-black/40 dark:text-gray-300",children:r||"/"})]}),_("div",{className:"flex flex-wrap gap-3",children:[_(wr,{as:$e,to:"/libraries",color:"emerald",children:[p(d0,{className:"h-4 w-4"}),"Browse libraries"]}),_(wr,{as:$e,to:"/support",variant:"ghost",children:[p(v0,{className:"h-4 w-4"}),"Support"]}),_(wr,{as:$e,to:"/",variant:"ghost",children:[p(Tb,{className:"h-4 w-4"}),"Home"]})]}),e?p("div",{children:e}):null]}),_("section",{className:"space-y-4 lg:self-start",children:[_("div",{className:"relative min-h-[260px] overflow-hidden rounded-lg border border-gray-200/80 bg-white p-5 shadow-sm dark:border-gray-800 dark:bg-gray-900",children:[p("div",{"aria-hidden":"true",className:"absolute inset-0 text-gray-300 opacity-20 dark:text-gray-700 dark:opacity-15",style:{backgroundImage:"linear-gradient(to right, currentColor 1px, transparent 1px), linear-gradient(to bottom, currentColor 1px, transparent 1px)",backgroundSize:"34px 34px"}}),_("div",{className:"relative flex items-center justify-between gap-4",children:[p("div",{className:"rounded-md border border-gray-200 bg-white/85 px-3 py-1.5 text-xs font-semibold text-gray-600 shadow-sm backdrop-blur dark:border-gray-700 dark:bg-black/50 dark:text-gray-300",children:"Route recovery"}),p("div",{className:"rounded-md border border-amber-500/30 bg-amber-500/10 px-3 py-1.5 text-xs font-semibold text-amber-700 dark:text-amber-300",children:"Detour ready"})]}),_("div",{className:"relative mt-12 space-y-6",children:[_("div",{className:"grid grid-cols-[auto_minmax(0,1fr)_auto] items-center gap-3",children:[p("span",{className:"h-4 w-4 rounded-full border-4 border-emerald-500 bg-white dark:bg-gray-950"}),p("span",{className:"h-px bg-linear-to-r from-emerald-500 via-cyan-500 to-amber-500"}),p("span",{className:"h-4 w-4 rounded-full border-4 border-amber-500 bg-white dark:bg-gray-950"})]}),p("div",{className:"grid gap-3 sm:grid-cols-3",children:n.slice(0,3).map(a=>p($e,{to:a.href,className:"rounded-md border border-gray-200 bg-white/90 px-3 py-2 text-sm font-medium text-gray-700 shadow-sm backdrop-blur transition-colors hover:border-emerald-500/60 hover:text-emerald-700 dark:border-gray-700 dark:bg-black/45 dark:text-gray-300 dark:hover:border-emerald-400/60 dark:hover:text-emerald-300",children:a.label},`map-${a.key}`))})]}),p("img",{src:"/images/ship.png",alt:"","aria-hidden":"true",className:"absolute -right-5 -bottom-4 w-28 rotate-[-8deg] opacity-80 drop-shadow-lg md:w-36"})]}),_("div",{children:[p("h2",{className:"text-sm font-semibold uppercase text-gray-500 dark:text-gray-400",children:"Best matches"}),p("div",{className:"mt-3 grid gap-3",children:n.map(a=>p(r7,{destination:a},a.key))})]})]})]})})}function Cu(e){if(typeof window>"u")return null;try{return e==="local"?window.localStorage:window.sessionStorage}catch{return null}}function x2(e,t){try{return Cu(e)?.getItem(t)??null}catch{return null}}function E2(e,t,r){try{Cu(e)?.setItem(t,r)}catch{}}function n7(e,t){try{Cu(e)?.removeItem(t)}catch{}}function VK(e){return x2("local",e)}function BK(e,t){return E2("local",e,t)}function HK(e){return n7("local",e)}function a7(e){return x2("session",e)}function o7(e,t){return E2("session",e,t)}var T2="tanstack-stale-app-reload-at",i7=1e4,s7=["ChunkLoadError","Failed to fetch dynamically imported module","Importing a module script failed","error loading dynamically imported module","Expected a JavaScript-or-Wasm module script","server responded with a MIME type","Unable to preload CSS","Seroval Error"],Lf=!1,I2=0;function c7(){typeof window>"u"||Lf||(Lf=!0,Nf("error"),Nf("warn"),window.addEventListener("unhandledrejection",e=>{Zi(e.reason)&&e.preventDefault()}),window.addEventListener("error",e=>{Zi([e.error,e.message,e])&&e.preventDefault()},!0))}function Zi(e){if(typeof window>"u"||!C2(e))return!1;const t=l7(),r=Date.now();return!Number.isFinite(t)||r-t>i7?(u7(r),window.location.reload(),!0):!1}function C2(e){if(Array.isArray(e))return e.some(C2);if(d7(e))return!0;const t=R2(e);return s7.some(r=>t.includes(r))}function R2(e){if(Array.isArray(e))return e.map(R2).filter(Boolean).join(` `);if(e instanceof Error)return[e.name,e.message,e.stack].filter(Boolean).join(` `);if(typeof Event<"u"&&e instanceof Event)return p7(e);if(typeof e=="string")return e;if(typeof e=="object"&&e!==null&&"message"in e){const t=e.message;if(typeof t=="string")return t}return""}function Nf(e){const t=console[e].bind(console);console[e]=(...r)=>{Zi(r)||t(...r)}}function l7(){const e=a7(T2);return e?Number.parseInt(e,10):I2}function u7(e){I2=e,o7(T2,e.toString())}function d7(e){if(typeof window>"u"||typeof HTMLScriptElement>"u"||typeof HTMLLinkElement>"u"||!(e instanceof Event))return!1;const t=e.target;return f7(t instanceof HTMLScriptElement?t.src:t instanceof HTMLLinkElement?t.href:"")}function p7(e){const t=e.target;return typeof HTMLScriptElement<"u"&&t instanceof HTMLScriptElement?[e.type,t.src].filter(Boolean).join(` `):typeof HTMLLinkElement<"u"&&t instanceof HTMLLinkElement?[e.type,t.href].filter(Boolean).join(` `):e.type}function f7(e){if(!e)return!1;try{const t=new URL(e,window.location.href);return t.origin===window.location.origin&&t.pathname.startsWith("/assets/")&&(t.pathname.endsWith(".js")||t.pathname.endsWith(".css"))}catch{return e.includes("/assets/")&&(e.includes(".js")||e.includes(".css"))}}function $2({error:e}){const t=Kb();U(()=>{Zi(e)||fh(e)},[e]);const r=pw({strict:!1,select:n=>n.id===Jb});return console.error(e),_("div",{className:"min-w-0 flex-1 p-4 flex flex-col items-center justify-center gap-6",children:[p("h1",{className:"opacity-10 flex flex-col text-center font-black"}),p(Yb,{error:e}),_("div",{className:"flex gap-2 items-center flex-wrap",children:[p(wr,{color:"gray",onClick:()=>{t.invalidate()},children:"Try Again"}),r?p(wr,{as:$e,to:"/",color:"gray",children:"TanStack Home"}):p(wr,{color:"gray",onClick:n=>{n.preventDefault(),window.history.back()},children:"Go Back"})]})]})}var m7="modulepreload",h7=function(e){return"/"+e},Df={},k=function(t,r,n){let a=Promise.resolve();if(r&&r.length>0){let l=function(d){return Promise.all(d.map(u=>Promise.resolve(u).then(f=>({status:"fulfilled",value:f}),f=>({status:"rejected",reason:f}))))};const i=document.getElementsByTagName("link"),s=document.querySelector("meta[property=csp-nonce]"),c=s?.nonce||s?.getAttribute("nonce");a=l(r.map(d=>{if(d=h7(d,n),d in Df)return;Df[d]=!0;const u=d.endsWith(".css"),f=u?'[rel="stylesheet"]':"";if(n)for(let h=i.length-1;h>=0;h--){const g=i[h];if(g.href===d&&(!u||g.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${d}"]${f}`))return;const m=document.createElement("link");if(m.rel=u?"stylesheet":m7,u||(m.as="script"),m.crossOrigin="",m.href=d,c&&m.setAttribute("nonce",c),document.head.appendChild(m),u)return new Promise((h,g)=>{m.addEventListener("load",h),m.addEventListener("error",()=>g(new Error(`Unable to preload CSS for ${d}`)))})}))}function o(i){const s=new Event("vite:preloadError",{cancelable:!0});if(s.payload=i,window.dispatchEvent(s),!s.defaultPrevented)throw i}return a.then(i=>{for(const s of i||[])s.status==="rejected"&&o(s.reason);return t().catch(o)})},g7=ws(()=>k(()=>import("./SearchModal-DBYSK44L.js").then(e=>({default:e.SearchModal})),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11]))),P2=Bt(void 0);function v7({children:e}){const[t,r]=H(!1),[n,a]=H(!1),[o,i]=H(!1),[s,c]=H(!1),[l,d]=H(0),[u,f]=H(null),m=V(null),h=ne(()=>{m.current&&(window.clearTimeout(m.current),m.current=null)},[]),g=ne(()=>{c(!0),r(!0)},[]),v=ne(()=>{h(),r(!1),a(!0)},[h]),b=ne(E=>{const L=E.trim();L.length<3||(h(),r(!1),i(!0),a(!0),f(j=>({id:(j?.id??0)+1,question:L})))},[h]),I=ne(E=>{f(L=>L?.id===E?null:L)},[]),y=ne(()=>{r(!1)},[]),S=ne(()=>{h(),a(!1)},[h]),w=ne(()=>{h(),m.current=window.setTimeout(()=>{a(!1),m.current=null},300)},[h]);U(()=>()=>{h()},[h]);const C=ne(()=>{d(E=>E+1)},[]),T=Fe(()=>({isOpen:t,isAiDockOpen:n,isAiDockDirty:o,aiDockAskRequest:u,newChatRequestId:l,openSearch:g,openAiDock:v,askAiDock:b,clearAiDockAskRequest:I,closeSearch:y,closeAiDock:S,cancelAiDockHoverClose:h,scheduleAiDockHoverClose:w,setAiDockDirty:i}),[u,b,h,I,S,y,o,n,t,l,v,g,w]);return U(()=>{const E=L=>{if(!(L.target instanceof Element))return;const j=L.target.closest("[data-search-trigger]");j&&(j instanceof HTMLButtonElement&&j.disabled||(L.preventDefault(),g()))};return document.addEventListener("click",E),()=>{document.removeEventListener("click",E)}},[g]),U(()=>{const E=L=>{if((L.metaKey||L.ctrlKey)&&!(L.altKey||L.shiftKey)&&(L.key.toLowerCase()==="k"||L.code==="KeyK")){if(L.preventDefault(),L.stopPropagation(),t){C();return}g()}};return document.addEventListener("keydown",E,{capture:!0}),()=>{document.removeEventListener("keydown",E,{capture:!0})}},[t,g,C]),_(P2.Provider,{value:T,children:[e,s?p(fa,{fallback:null,children:p(g7,{})}):null]})}function Ru(){const e=qt(P2);if(e===void 0)throw new Error("useSearch must be used within a SearchProvider");return e}function y7(e){if(!e||typeof document>"u")return;let t=document.head||document.getElementsByTagName("head")[0],r=document.createElement("style");r.type="text/css",t.appendChild(r),r.styleSheet?r.styleSheet.cssText=e:r.appendChild(document.createTextNode(e))}var b7=e=>{switch(e){case"success":return k7;case"info":return x7;case"warning":return S7;case"error":return E7;default:return null}},w7=Array(12).fill(0),_7=({visible:e,className:t})=>N.createElement("div",{className:["sonner-loading-wrapper",t].filter(Boolean).join(" "),"data-visible":e},N.createElement("div",{className:"sonner-spinner"},w7.map((r,n)=>N.createElement("div",{className:"sonner-loading-bar",key:`spinner-bar-${n}`})))),k7=N.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},N.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"})),S7=N.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",height:"20",width:"20"},N.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"})),x7=N.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},N.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"})),E7=N.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},N.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"})),T7=N.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"12",height:"12",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"},N.createElement("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),N.createElement("line",{x1:"6",y1:"6",x2:"18",y2:"18"})),I7=()=>{const[e,t]=N.useState(document.hidden);return N.useEffect(()=>{const r=()=>{t(document.hidden)};return document.addEventListener("visibilitychange",r),()=>window.removeEventListener("visibilitychange",r)},[]),e},xl=1,C7=class{constructor(){this.subscribe=e=>(this.subscribers.push(e),()=>{const 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=>{var t;const{message:r,...n}=e,a=typeof e?.id=="number"||((t=e.id)==null?void 0:t.length)>0?e.id:xl++,o=this.toasts.find(s=>s.id===a),i=e.dismissible===void 0?!0:e.dismissible;return this.dismissedToasts.has(a)&&this.dismissedToasts.delete(a),o?this.toasts=this.toasts.map(s=>s.id===a?(this.publish({...s,...e,id:a,title:r}),{...s,...e,id:a,dismissible:i,title:r}):s):this.addToast({title:r,...n,dismissible:i,id:a}),a},this.dismiss=e=>(e?(this.dismissedToasts.add(e),requestAnimationFrame(()=>this.subscribers.forEach(t=>t({id:e,dismiss:!0})))):this.toasts.forEach(t=>{this.subscribers.forEach(r=>r({id:t.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)=>this.create({...t,type:"loading",message:e}),this.promise=(e,t)=>{if(!t)return;let r;t.loading!==void 0&&(r=this.create({...t,promise:e,type:"loading",message:t.loading,description:typeof t.description!="function"?t.description:void 0}));const n=Promise.resolve(e instanceof Function?e():e);let a=r!==void 0,o;const i=n.then(async c=>{if(o=["resolve",c],N.isValidElement(c))a=!1,this.create({id:r,type:"default",message:c});else if($7(c)&&!c.ok){a=!1;const l=typeof t.error=="function"?await t.error(`HTTP error! status: ${c.status}`):t.error,d=typeof t.description=="function"?await t.description(`HTTP error! status: ${c.status}`):t.description,u=typeof l=="object"&&!N.isValidElement(l)?l:{message:l};this.create({id:r,type:"error",description:d,...u})}else if(c instanceof Error){a=!1;const l=typeof t.error=="function"?await t.error(c):t.error,d=typeof t.description=="function"?await t.description(c):t.description,u=typeof l=="object"&&!N.isValidElement(l)?l:{message:l};this.create({id:r,type:"error",description:d,...u})}else if(t.success!==void 0){a=!1;const l=typeof t.success=="function"?await t.success(c):t.success,d=typeof t.description=="function"?await t.description(c):t.description,u=typeof l=="object"&&!N.isValidElement(l)?l:{message:l};this.create({id:r,type:"success",description:d,...u})}}).catch(async c=>{if(o=["reject",c],t.error!==void 0){a=!1;const l=typeof t.error=="function"?await t.error(c):t.error,d=typeof t.description=="function"?await t.description(c):t.description,u=typeof l=="object"&&!N.isValidElement(l)?l:{message:l};this.create({id:r,type:"error",description:d,...u})}}).finally(()=>{a&&(this.dismiss(r),r=void 0),t.finally==null||t.finally.call(t)}),s=()=>new Promise((c,l)=>i.then(()=>o[0]==="reject"?l(o[1]):c(o[1])).catch(l));return typeof r!="string"&&typeof r!="number"?{unwrap:s}:Object.assign(r,{unwrap:s})},this.custom=(e,t)=>{const r=t?.id||xl++;return this.create({jsx:e(r),id:r,...t}),r},this.getActiveToasts=()=>this.toasts.filter(e=>!this.dismissedToasts.has(e.id)),this.subscribers=[],this.toasts=[],this.dismissedToasts=new Set}},pt=new C7,R7=(e,t)=>{const r=t?.id||xl++;return pt.addToast({title:e,...t,id:r}),r},$7=e=>e&&typeof e=="object"&&"ok"in e&&typeof e.ok=="boolean"&&"status"in e&&typeof e.status=="number",P7=R7,A7=()=>pt.toasts,L7=()=>pt.getActiveToasts(),N7=Object.assign(P7,{success:pt.success,info:pt.info,warning:pt.warning,error:pt.error,custom:pt.custom,message:pt.message,promise:pt.promise,dismiss:pt.dismiss,loading:pt.loading},{getHistory:A7,getToasts:L7});y7("[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%)}");function Qo(e){return e.label!==void 0}var D7=3,O7="24px",M7="16px",Of=4e3,F7=356,z7=14,V7=45,B7=200;function Qt(...e){return e.filter(Boolean).join(" ")}function H7(e){const[t,r]=e.split("-"),n=[];return t&&n.push(t),r&&n.push(r),n}var U7=e=>{var t,r,n,a,o,i,s,c,l;const{invert:d,toast:u,unstyled:f,interacting:m,setHeights:h,visibleToasts:g,heights:v,index:b,toasts:I,expanded:y,removeToast:S,defaultRichColors:w,closeButton:C,style:T,cancelButtonStyle:E,actionButtonStyle:L,className:j="",descriptionClassName:ue="",duration:q,position:X,gap:de,expandByDefault:ge,classNames:B,icons:Y,closeButtonAriaLabel:F="Close toast"}=e,[D,A]=N.useState(null),[ve,Oe]=N.useState(null),[Q,ye]=N.useState(!1),[te,oe]=N.useState(!1),[Re,xe]=N.useState(!1),[Ie,pr]=N.useState(!1),[Nt,vt]=N.useState(!1),[Xt,Lr]=N.useState(0),[nb,Dd]=N.useState(0),Na=N.useRef(u.duration||q||Of),Od=N.useRef(null),fr=N.useRef(null),ab=b===0,ob=b+1<=g,yt=u.type,Mn=u.dismissible!==!1,ib=u.className||"",sb=u.descriptionClassName||"",Ho=N.useMemo(()=>v.findIndex(pe=>pe.toastId===u.id)||0,[v,u.id]),cb=N.useMemo(()=>{var pe;return(pe=u.closeButton)!=null?pe:C},[u.closeButton,C]),Md=N.useMemo(()=>u.duration||q||Of,[u.duration,q]),rc=N.useRef(0),Fn=N.useRef(0),Fd=N.useRef(0),zn=N.useRef(null),[lb,ub]=X.split("-"),zd=N.useMemo(()=>v.reduce((pe,Ke,ot)=>ot>=Ho?pe:pe+Ke.height,0),[v,Ho]),Vd=I7(),db=u.invert||d,nc=yt==="loading";Fn.current=N.useMemo(()=>Ho*de+zd,[Ho,zd]),N.useEffect(()=>{Na.current=Md},[Md]),N.useEffect(()=>{ye(!0)},[]),N.useEffect(()=>{const pe=fr.current;if(pe){const Ke=pe.getBoundingClientRect().height;return Dd(Ke),h(ot=>[{toastId:u.id,height:Ke,position:u.position},...ot]),()=>h(ot=>ot.filter(bt=>bt.toastId!==u.id))}},[h,u.id]),N.useLayoutEffect(()=>{if(!Q)return;const pe=fr.current,Ke=pe.style.height;pe.style.height="auto";const ot=pe.getBoundingClientRect().height;pe.style.height=Ke,Dd(ot),h(bt=>bt.find(Ye=>Ye.toastId===u.id)?bt.map(Ye=>Ye.toastId===u.id?{...Ye,height:ot}:Ye):[{toastId:u.id,height:ot,position:u.position},...bt])},[Q,u.title,u.description,h,u.id,u.jsx,u.action,u.cancel]);const Nr=N.useCallback(()=>{oe(!0),Lr(Fn.current),h(pe=>pe.filter(Ke=>Ke.toastId!==u.id)),setTimeout(()=>{S(u)},B7)},[u,S,h,Fn]);N.useEffect(()=>{if(u.promise&&yt==="loading"||u.duration===1/0||u.type==="loading")return;let pe;return y||m||Vd?(()=>{if(Fd.current{u.onAutoClose==null||u.onAutoClose.call(u,u),Nr()},Na.current)),()=>clearTimeout(pe)},[y,m,u,yt,Vd,Nr]),N.useEffect(()=>{u.delete&&(Nr(),u.onDismiss==null||u.onDismiss.call(u,u))},[Nr,u.delete]);function pb(){var pe;if(Y?.loading){var Ke;return N.createElement("div",{className:Qt(B?.loader,u==null||(Ke=u.classNames)==null?void 0:Ke.loader,"sonner-loader"),"data-visible":yt==="loading"},Y.loading)}return N.createElement(_7,{className:Qt(B?.loader,u==null||(pe=u.classNames)==null?void 0:pe.loader),visible:yt==="loading"})}const fb=u.icon||Y?.[yt]||b7(yt);var Bd,Hd;return N.createElement("li",{tabIndex:0,ref:fr,className:Qt(j,ib,B?.toast,u==null||(t=u.classNames)==null?void 0:t.toast,B?.default,B?.[yt],u==null||(r=u.classNames)==null?void 0:r[yt]),"data-sonner-toast":"","data-rich-colors":(Bd=u.richColors)!=null?Bd:w,"data-styled":!(u.jsx||u.unstyled||f),"data-mounted":Q,"data-promise":!!u.promise,"data-swiped":Nt,"data-removed":te,"data-visible":ob,"data-y-position":lb,"data-x-position":ub,"data-index":b,"data-front":ab,"data-swiping":Re,"data-dismissible":Mn,"data-type":yt,"data-invert":db,"data-swipe-out":Ie,"data-swipe-direction":ve,"data-expanded":!!(y||ge&&Q),"data-testid":u.testId,style:{"--index":b,"--toasts-before":b,"--z-index":I.length-b,"--offset":`${te?Xt:Fn.current}px`,"--initial-height":ge?"auto":`${nb}px`,...T,...u.style},onDragEnd:()=>{xe(!1),A(null),zn.current=null},onPointerDown:pe=>{pe.button!==2&&(nc||!Mn||(Od.current=new Date,Lr(Fn.current),pe.target.setPointerCapture(pe.pointerId),pe.target.tagName!=="BUTTON"&&(xe(!0),zn.current={x:pe.clientX,y:pe.clientY})))},onPointerUp:()=>{var pe,Ke,ot;if(Ie||!Mn)return;zn.current=null;const bt=Number(((pe=fr.current)==null?void 0:pe.style.getPropertyValue("--swipe-amount-x").replace("px",""))||0),Ye=Number(((Ke=fr.current)==null?void 0:Ke.style.getPropertyValue("--swipe-amount-y").replace("px",""))||0),Dt=new Date().getTime()-((ot=Od.current)==null?void 0:ot.getTime()),Da=D==="x"?bt:Ye,Jt=Math.abs(Da)/Dt;if(Math.abs(Da)>=V7||Jt>.11){Lr(Fn.current),u.onDismiss==null||u.onDismiss.call(u,u),Oe(D==="x"?bt>0?"right":"left":Ye>0?"down":"up"),Nr(),pr(!0);return}else{var Ot,Oa;(Ot=fr.current)==null||Ot.style.setProperty("--swipe-amount-x","0px"),(Oa=fr.current)==null||Oa.style.setProperty("--swipe-amount-y","0px")}vt(!1),xe(!1),A(null)},onPointerMove:pe=>{var Ke,ot,bt;if(!zn.current||!Mn||((Ke=window.getSelection())==null?void 0:Ke.toString().length)>0)return;const Ye=pe.clientY-zn.current.y,Dt=pe.clientX-zn.current.x;var Da;const Jt=(Da=e.swipeDirections)!=null?Da:H7(X);!D&&(Math.abs(Dt)>1||Math.abs(Ye)>1)&&A(Math.abs(Dt)>Math.abs(Ye)?"x":"y");let Ot={x:0,y:0};const Oa=sn=>1/(1.5+Math.abs(sn)/20);if(D==="y"){if(Jt.includes("top")||Jt.includes("bottom"))if(Jt.includes("top")&&Ye<0||Jt.includes("bottom")&&Ye>0)Ot.y=Ye;else{const sn=Ye*Oa(Ye);Ot.y=Math.abs(sn)0)Ot.x=Dt;else{const sn=Dt*Oa(Dt);Ot.x=Math.abs(sn)0||Math.abs(Ot.y)>0)&&vt(!0),(ot=fr.current)==null||ot.style.setProperty("--swipe-amount-x",`${Ot.x}px`),(bt=fr.current)==null||bt.style.setProperty("--swipe-amount-y",`${Ot.y}px`)}},cb&&!u.jsx&&yt!=="loading"?N.createElement("button",{"aria-label":F,"data-disabled":nc,"data-close-button":!0,onClick:nc||!Mn?()=>{}:()=>{Nr(),u.onDismiss==null||u.onDismiss.call(u,u)},className:Qt(B?.closeButton,u==null||(n=u.classNames)==null?void 0:n.closeButton)},(Hd=Y?.close)!=null?Hd:T7):null,(yt||u.icon||u.promise)&&u.icon!==null&&(Y?.[yt]!==null||u.icon)?N.createElement("div",{"data-icon":"",className:Qt(B?.icon,u==null||(a=u.classNames)==null?void 0:a.icon)},u.promise||u.type==="loading"&&!u.icon?u.icon||pb():null,u.type!=="loading"?fb:null):null,N.createElement("div",{"data-content":"",className:Qt(B?.content,u==null||(o=u.classNames)==null?void 0:o.content)},N.createElement("div",{"data-title":"",className:Qt(B?.title,u==null||(i=u.classNames)==null?void 0:i.title)},u.jsx?u.jsx:typeof u.title=="function"?u.title():u.title),u.description?N.createElement("div",{"data-description":"",className:Qt(ue,sb,B?.description,u==null||(s=u.classNames)==null?void 0:s.description)},typeof u.description=="function"?u.description():u.description):null),N.isValidElement(u.cancel)?u.cancel:u.cancel&&Qo(u.cancel)?N.createElement("button",{"data-button":!0,"data-cancel":!0,style:u.cancelButtonStyle||E,onClick:pe=>{Qo(u.cancel)&&Mn&&(u.cancel.onClick==null||u.cancel.onClick.call(u.cancel,pe),Nr())},className:Qt(B?.cancelButton,u==null||(c=u.classNames)==null?void 0:c.cancelButton)},u.cancel.label):null,N.isValidElement(u.action)?u.action:u.action&&Qo(u.action)?N.createElement("button",{"data-button":!0,"data-action":!0,style:u.actionButtonStyle||L,onClick:pe=>{Qo(u.action)&&(u.action.onClick==null||u.action.onClick.call(u.action,pe),!pe.defaultPrevented&&Nr())},className:Qt(B?.actionButton,u==null||(l=u.classNames)==null?void 0:l.actionButton)},u.action.label):null)};function Mf(){if(typeof window>"u"||typeof document>"u")return"ltr";const e=document.documentElement.getAttribute("dir");return e==="auto"||!e?window.getComputedStyle(document.documentElement).direction:e}function j7(e,t){const r={};return[e,t].forEach((n,a)=>{const o=a===1,i=o?"--mobile-offset":"--offset",s=o?M7:O7;function c(l){["top","right","bottom","left"].forEach(d=>{r[`${i}-${d}`]=typeof l=="number"?`${l}px`:l})}typeof n=="number"||typeof n=="string"?c(n):typeof n=="object"?["top","right","bottom","left"].forEach(l=>{n[l]===void 0?r[`${i}-${l}`]=s:r[`${i}-${l}`]=typeof n[l]=="number"?`${n[l]}px`:n[l]}):c(s)}),r}var q7=N.forwardRef(function(t,r){const{id:n,invert:a,position:o="bottom-right",hotkey:i=["altKey","KeyT"],expand:s,closeButton:c,className:l,offset:d,mobileOffset:u,theme:f="light",richColors:m,duration:h,style:g,visibleToasts:v=D7,toastOptions:b,dir:I=Mf(),gap:y=z7,icons:S,containerAriaLabel:w="Notifications"}=t,[C,T]=N.useState([]),E=N.useMemo(()=>n?C.filter(Q=>Q.toasterId===n):C.filter(Q=>!Q.toasterId),[C,n]),L=N.useMemo(()=>Array.from(new Set([o].concat(E.filter(Q=>Q.position).map(Q=>Q.position)))),[E,o]),[j,ue]=N.useState([]),[q,X]=N.useState(!1),[de,ge]=N.useState(!1),[B,Y]=N.useState(f!=="system"?f:typeof window<"u"&&window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"),F=N.useRef(null),D=i.join("+").replace(/Key/g,"").replace(/Digit/g,""),A=N.useRef(null),ve=N.useRef(!1),Oe=N.useCallback(Q=>{T(ye=>{var te;return(te=ye.find(oe=>oe.id===Q.id))!=null&&te.delete||pt.dismiss(Q.id),ye.filter(({id:oe})=>oe!==Q.id)})},[]);return N.useEffect(()=>pt.subscribe(Q=>{if(Q.dismiss){requestAnimationFrame(()=>{T(ye=>ye.map(te=>te.id===Q.id?{...te,delete:!0}:te))});return}setTimeout(()=>{w0.flushSync(()=>{T(ye=>{const te=ye.findIndex(oe=>oe.id===Q.id);return te!==-1?[...ye.slice(0,te),{...ye[te],...Q},...ye.slice(te+1)]:[Q,...ye]})})})}),[C]),N.useEffect(()=>{if(f!=="system"){Y(f);return}if(f==="system"&&(window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?Y("dark"):Y("light")),typeof window>"u")return;const Q=window.matchMedia("(prefers-color-scheme: dark)");try{Q.addEventListener("change",({matches:ye})=>{Y(ye?"dark":"light")})}catch{Q.addListener(({matches:te})=>{try{Y(te?"dark":"light")}catch(oe){console.error(oe)}})}},[f]),N.useEffect(()=>{C.length<=1&&X(!1)},[C]),N.useEffect(()=>{const Q=ye=>{var te;if(i.every(Re=>ye[Re]||ye.code===Re)){var oe;X(!0),(oe=F.current)==null||oe.focus()}ye.code==="Escape"&&(document.activeElement===F.current||(te=F.current)!=null&&te.contains(document.activeElement))&&X(!1)};return document.addEventListener("keydown",Q),()=>document.removeEventListener("keydown",Q)},[i]),N.useEffect(()=>{if(F.current)return()=>{A.current&&(A.current.focus({preventScroll:!0}),A.current=null,ve.current=!1)}},[F.current]),N.createElement("section",{ref:r,"aria-label":`${w} ${D}`,tabIndex:-1,"aria-live":"polite","aria-relevant":"additions text","aria-atomic":"false",suppressHydrationWarning:!0},L.map((Q,ye)=>{var te;const[oe,Re]=Q.split("-");return E.length?N.createElement("ol",{key:Q,dir:I==="auto"?Mf():I,tabIndex:-1,ref:F,className:l,"data-sonner-toaster":!0,"data-sonner-theme":B,"data-y-position":oe,"data-x-position":Re,style:{"--front-toast-height":`${((te=j[0])==null?void 0:te.height)||0}px`,"--width":`${F7}px`,"--gap":`${y}px`,...g,...j7(d,u)},onBlur:xe=>{ve.current&&!xe.currentTarget.contains(xe.relatedTarget)&&(ve.current=!1,A.current&&(A.current.focus({preventScroll:!0}),A.current=null))},onFocus:xe=>{xe.target instanceof HTMLElement&&xe.target.dataset.dismissible==="false"||ve.current||(ve.current=!0,A.current=xe.relatedTarget)},onMouseEnter:()=>X(!0),onMouseMove:()=>X(!0),onMouseLeave:()=>{de||X(!1)},onDragEnd:()=>X(!1),onPointerDown:xe=>{xe.target instanceof HTMLElement&&xe.target.dataset.dismissible==="false"||ge(!0)},onPointerUp:()=>ge(!1)},E.filter(xe=>!xe.position&&ye===0||xe.position===Q).map((xe,Ie)=>{var pr,Nt;return N.createElement(U7,{key:xe.id,icons:S,index:Ie,toast:xe,defaultRichColors:m,duration:(pr=b?.duration)!=null?pr:h,className:b?.className,descriptionClassName:b?.descriptionClassName,invert:a,visibleToasts:v,closeButton:(Nt=b?.closeButton)!=null?Nt:c,interacting:de,position:Q,style:b?.style,unstyled:b?.unstyled,classNames:b?.classNames,cancelButtonStyle:b?.cancelButtonStyle,actionButtonStyle:b?.actionButtonStyle,closeButtonAriaLabel:b?.closeButtonAriaLabel,removeToast:Oe,toasts:E.filter(vt=>vt.position==xe.position),heights:j.filter(vt=>vt.position==xe.position),setHeights:ue,expandByDefault:s,gap:y,expanded:q,swipeDirections:t.swipeDirections})})):null}))}),Ec;function $u(e){return{lang:e?.lang??Ec?.lang,message:e?.message,abortEarly:e?.abortEarly??Ec?.abortEarly,abortPipeEarly:e?.abortPipeEarly??Ec?.abortPipeEarly}}var G7;function W7(e){return G7?.get(e)}var Z7;function K7(e){return Z7?.get(e)}var Y7;function X7(e,t){return Y7?.get(e)?.get(t)}function ia(e){const t=typeof e;return t==="string"?`"${e}"`:t==="number"||t==="bigint"||t==="boolean"?`${e}`:t==="object"||t==="function"?(e&&Object.getPrototypeOf(e)?.constructor?.name)??"null":t}function Xe(e,t,r,n,a){const o=a&&"input"in a?a.input:r.value,i=a?.expected??e.expects??null,s=a?.received??ia(o),c={kind:e.kind,type:e.type,input:o,expected:i,received:s,message:`Invalid ${t}: ${i?`Expected ${i} but r`:"R"}eceived ${s}`,requirement:e.requirement,path:a?.path,issues:a?.issues,lang:n.lang,abortEarly:n.abortEarly,abortPipeEarly:n.abortPipeEarly},l=e.kind==="schema",d=a?.message??e.message??X7(e.reference,c.lang)??(l?K7(c.lang):null)??n.message??W7(c.lang);d!==void 0&&(c.message=typeof d=="function"?d(c):d),l&&(r.typed=!1),r.issues?r.issues.push(c):r.issues=[c]}function Gt(e){return{version:1,vendor:"valibot",validate(t){return e["~run"]({value:t},$u())}}}function A2(e,t){const r=[...new Set(e)];return r.length>1?`(${r.join(` ${t} `)})`:r[0]??"never"}var J7=class extends Error{constructor(e){super(e[0].message),this.name="ValiError",this.issues=e}},Q7=/^\d{4}-(?:0[1-9]|1[0-2])-(?:[12]\d|0[1-9]|3[01])$/u,eE=/^[\da-f]{8}(?:-[\da-f]{4}){3}-[\da-f]{12}$/iu;function L2(e,t){return{kind:"validation",type:"check",reference:L2,async:!1,expects:null,requirement:e,message:t,"~run"(r,n){return r.typed&&!this.requirement(r.value)&&Xe(this,"input",r,n),r}}}function it(e){return{kind:"validation",type:"integer",reference:it,async:!1,expects:null,requirement:Number.isInteger,message:e,"~run"(t,r){return t.typed&&!this.requirement(t.value)&&Xe(this,"integer",t,r),t}}}function N2(e){return{kind:"validation",type:"iso_date",reference:N2,async:!1,expects:null,requirement:Q7,message:e,"~run"(t,r){return t.typed&&!this.requirement.test(t.value)&&Xe(this,"date",t,r),t}}}function je(e,t){return{kind:"validation",type:"max_length",reference:je,async:!1,expects:`<=${e}`,requirement:e,message:t,"~run"(r,n){return r.typed&&r.value.length>this.requirement&&Xe(this,"length",r,n,{received:`${r.value.length}`}),r}}}function Wt(e,t){return{kind:"validation",type:"max_value",reference:Wt,async:!1,expects:`<=${e instanceof Date?e.toJSON():ia(e)}`,requirement:e,message:t,"~run"(r,n){return r.typed&&!(r.value<=this.requirement)&&Xe(this,"value",r,n,{received:r.value instanceof Date?r.value.toJSON():ia(r.value)}),r}}}function D2(e,t){return{kind:"validation",type:"min_length",reference:D2,async:!1,expects:`>=${e}`,requirement:e,message:t,"~run"(r,n){return r.typed&&r.value.length=${e instanceof Date?e.toJSON():ia(e)}`,requirement:e,message:t,"~run"(r,n){return r.typed&&!(r.value>=this.requirement)&&Xe(this,"value",r,n,{received:r.value instanceof Date?r.value.toJSON():ia(r.value)}),r}}}function O2(e,t){return{kind:"validation",type:"regex",reference:O2,async:!1,expects:`${e}`,requirement:e,message:t,"~run"(r,n){return r.typed&&!this.requirement.test(r.value)&&Xe(this,"format",r,n),r}}}function M2(e){return{kind:"validation",type:"uuid",reference:M2,async:!1,expects:null,requirement:eE,message:e,"~run"(t,r){return t.typed&&!this.requirement.test(t.value)&&Xe(this,"UUID",t,r),t}}}function F2(e,t,r){return typeof e.fallback=="function"?e.fallback(t,r):e.fallback}function O(e,t){return{...e,fallback:t,get"~standard"(){return Gt(this)},"~run"(r,n){const a=e["~run"](r,n);return a.issues?{typed:!0,value:F2(this,a,n)}:a}}}function Pu(e,t,r){return typeof e.default=="function"?e.default(t,r):e.default}function gt(e,t){return{kind:"schema",type:"array",reference:gt,expects:"Array",async:!1,item:e,message:t,get"~standard"(){return Gt(this)},"~run"(r,n){const a=r.value;if(Array.isArray(a)){r.typed=!0,r.value=[];for(let o=0;or.expects),"|"),async:!1,options:e,message:t,get"~standard"(){return Gt(this)},"~run"(r,n){let a,o,i;for(const s of this.options){const c=s["~run"]({value:r.value},n);if(c.typed)if(c.issues)o?o.push(c):o=[c];else{a=c;break}else i?i.push(c):i=[c]}if(a)return a;if(o){if(o.length===1)return o[0];Xe(this,"type",r,n,{issues:Ff(o)}),r.typed=!0}else{if(i?.length===1)return i[0];Xe(this,"type",r,n,{issues:Ff(i)})}return r}}}function $r(e,t,r){const n=e["~run"]({value:t},$u(r));if(n.issues)throw new J7(n.issues);return n.value}function we(...e){return{...e[0],pipe:e,get"~standard"(){return Gt(this)},"~run"(t,r){for(const n of e)if(n.kind!=="metadata"){if(t.issues&&(n.kind==="schema"||n.kind==="transformation")){t.typed=!1;break}(!t.issues||!r.abortEarly&&!r.abortPipeEarly)&&(t=n["~run"](t,r))}return t}}}function UK(e,t,r){const n=e["~run"]({value:t},$u(r));return{typed:n.typed,success:!n.issues,output:n.value,issues:n.issues}}function Ns(e){return e.charAt(0).toUpperCase()+e.slice(1)}function tE(e){return e.split("-").map(t=>Ns(t)).join(" ")}function jK(e){return e[e.length-1]}function zf(e){let t=0;for(let r=0;r>6}return t=t+(t<<3),t=t^t>>11,t=t+(t<<15),t|0}function qK(e,t,r){return[...e].sort((n,a)=>zf(r(n)+t)-zf(r(a)+t))}function GK(e){return e.replace(/^\//,"")}var Ki={light:"#f9fafb",dark:"#101828"},V2=re(["light","dark","auto"]),B2="theme",rE=()=>{try{const e=localStorage.getItem(B2);return $r(V2,e)}catch{return"auto"}},nE=e=>{try{const t=$r(V2,e);localStorage.setItem(B2,t)}catch{}},Ga=()=>window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light",Tc=e=>{const t=document.documentElement;t.classList.add("theme-switching"),t.classList.remove("light","dark","auto");const r=e==="auto"?Ga():e;t.classList.add(r),e==="auto"&&t.classList.add("auto");const n=document.querySelector('meta[name="theme-color"]');n&&n.setAttribute("content",r==="dark"?Ki.dark:Ki.light),t.offsetHeight,requestAnimationFrame(()=>{requestAnimationFrame(()=>{t.classList.remove("theme-switching")})})},aE=e=>{const t=Ga()==="dark"?["auto","light","dark"]:["auto","dark","light"];return t[(t.indexOf(e)+1)%t.length]},H2=Bt(void 0);function oE({children:e}){const[t,r]=H("auto"),[n,a]=H("light");U(()=>{const s=rE();r(s),Tc(s),a(s==="auto"?Ga():s)},[]),U(()=>{if(t!=="auto")return;const s=window.matchMedia("(prefers-color-scheme: dark)"),c=()=>{Tc("auto"),a(Ga())};return s.addEventListener("change",c),()=>s.removeEventListener("change",c)},[t]);const o=s=>{r(s),nE(s),Tc(s),a(s==="auto"?Ga():s)},i=()=>{o(aE(t))};return p(H2.Provider,{value:{themeMode:t,resolvedTheme:n,setTheme:o,toggleMode:i},children:e})}var U2=()=>{const e=qt(H2);if(!e)throw new Error("useTheme must be used within a ThemeProvider");return e},iE=()=>document.documentElement.className;function sE(){return iE()}var j2=Bt(null);function cE(){const e=qt(j2);if(!e)throw new Error("useToast must be used within ToastProvider");return e}function lE({children:e}){const{resolvedTheme:t}=U2(),r=ne((a,o)=>{const i=N7(a,{duration:o?.durationMs??2500});return String(i)},[]),n=Fe(()=>({notify:r}),[r]);return _(j2.Provider,{value:n,children:[e,p(q7,{theme:t,position:"bottom-right",swipeDirections:["right"],offset:16,gap:8,toastOptions:{unstyled:!0,classNames:{toast:"relative w-96 rounded-md border border-gray-200 bg-white px-3 py-2 text-sm text-gray-900 shadow-lg outline-none dark:border-gray-700 dark:bg-gray-800 dark:text-gray-50",content:"flex items-start gap-2"}}})]})}var Ic="focusScope.autoFocusOnMount",Cc="focusScope.autoFocusOnUnmount",Vf={bubbles:!1,cancelable:!0},uE="FocusScope",Lu=Z((e,t)=>{const{loop:r=!1,trapped:n=!1,onMountAutoFocus:a,onUnmountAutoFocus:o,...i}=e,[s,c]=H(null),l=ir(a),d=ir(o),u=V(null),f=Qe(t,g=>c(g)),m=V({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;U(()=>{if(n){let g=function(y){if(m.paused||!s)return;const S=y.target;s.contains(S)?u.current=S:Fr(u.current,{select:!0})},v=function(y){if(m.paused||!s)return;const S=y.relatedTarget;S!==null&&(s.contains(S)||Fr(u.current,{select:!0}))},b=function(y){if(document.activeElement===document.body)for(const S of y)S.removedNodes.length>0&&Fr(s)};document.addEventListener("focusin",g),document.addEventListener("focusout",v);const I=new MutationObserver(b);return s&&I.observe(s,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",g),document.removeEventListener("focusout",v),I.disconnect()}}},[n,s,m.paused]),U(()=>{if(s){Hf.add(m);const g=document.activeElement;if(!s.contains(g)){const v=new CustomEvent(Ic,Vf);s.addEventListener(Ic,l),s.dispatchEvent(v),v.defaultPrevented||(dE(gE(q2(s)),{select:!0}),document.activeElement===g&&Fr(s))}return()=>{s.removeEventListener(Ic,l),setTimeout(()=>{const v=new CustomEvent(Cc,Vf);s.addEventListener(Cc,d),s.dispatchEvent(v),v.defaultPrevented||Fr(g??document.body,{select:!0}),s.removeEventListener(Cc,d),Hf.remove(m)},0)}}},[s,l,d,m]);const h=ne(g=>{if(!r&&!n||m.paused)return;const v=g.key==="Tab"&&!g.altKey&&!g.ctrlKey&&!g.metaKey,b=document.activeElement;if(v&&b){const I=g.currentTarget,[y,S]=pE(I);y&&S?!g.shiftKey&&b===S?(g.preventDefault(),r&&Fr(y,{select:!0})):g.shiftKey&&b===y&&(g.preventDefault(),r&&Fr(S,{select:!0})):b===I&&g.preventDefault()}},[r,n,m.paused]);return p(Be.div,{tabIndex:-1,...i,ref:f,onKeyDown:h})});Lu.displayName=uE;function dE(e,{select:t=!1}={}){const r=document.activeElement;for(const n of e)if(Fr(n,{select:t}),document.activeElement!==r)return}function pE(e){const t=q2(e);return[Bf(t,e),Bf(t.reverse(),e)]}function q2(e){const t=[],r=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:n=>{const a=n.tagName==="INPUT"&&n.type==="hidden";return n.disabled||n.hidden||a?NodeFilter.FILTER_SKIP:n.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;r.nextNode();)t.push(r.currentNode);return t}function Bf(e,t){for(const r of e)if(!fE(r,{upTo:t}))return r}function fE(e,{upTo:t}){if(getComputedStyle(e).visibility==="hidden")return!0;for(;e;){if(t!==void 0&&e===t)return!1;if(getComputedStyle(e).display==="none")return!0;e=e.parentElement}return!1}function mE(e){return e instanceof HTMLInputElement&&"select"in e}function Fr(e,{select:t=!1}={}){if(e&&e.focus){const r=document.activeElement;e.focus({preventScroll:!0}),e!==r&&mE(e)&&t&&e.select()}}var Hf=hE();function hE(){let e=[];return{add(t){const r=e[0];t!==r&&r?.pause(),e=Uf(e,t),e.unshift(t)},remove(t){e=Uf(e,t),e[0]?.resume()}}}function Uf(e,t){const r=[...e],n=r.indexOf(t);return n!==-1&&r.splice(n,1),r}function gE(e){return e.filter(t=>t.tagName!=="A")}var Rc=0;function G2(){U(()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??jf()),document.body.insertAdjacentElement("beforeend",e[1]??jf()),Rc++,()=>{Rc===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(t=>t.remove()),Rc--}},[])}function jf(){const e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.outline="none",e.style.opacity="0",e.style.position="fixed",e.style.pointerEvents="none",e}var El=function(e,t){return El=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,n){r.__proto__=n}||function(r,n){for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(r[a]=n[a])},El(e,t)};function WK(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");El(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}var er=function(){return er=Object.assign||function(t){for(var r,n=1,a=arguments.length;n0&&o[o.length-1])&&(l[0]===6||l[0]===2)){r=0;continue}if(l[0]===3&&(!o||l[1]>o[0]&&l[1]0)&&!(a=n.next()).done;)o.push(a.value)}catch(s){i={error:s}}finally{try{a&&!a.done&&(r=n.return)&&r.call(n)}finally{if(i)throw i.error}}return o}function vE(e,t,r){if(r||arguments.length===2)for(var n=0,a=t.length,o;n"u")return LE;var t=NE(e),r=document.documentElement.clientWidth,n=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,n-r+t[2]-t[0])}},OE=Y2(),Wa="data-scroll-locked",ME=function(e,t,r,n){var a=e.left,o=e.top,i=e.right,s=e.gap;return r===void 0&&(r="margin"),` .`.concat(yE,` { overflow: hidden `).concat(n,`; padding-right: `).concat(s,"px ").concat(n,`; } body[`).concat(Wa,`] { overflow: hidden `).concat(n,`; overscroll-behavior: contain; `).concat([t&&"position: relative ".concat(n,";"),r==="margin"&&` padding-left: `.concat(a,`px; padding-top: `).concat(o,`px; padding-right: `).concat(i,`px; margin-left:0; margin-top:0; margin-right: `).concat(s,"px ").concat(n,`; `),r==="padding"&&"padding-right: ".concat(s,"px ").concat(n,";")].filter(Boolean).join(""),` } .`).concat(xi,` { right: `).concat(s,"px ").concat(n,`; } .`).concat(Ei,` { margin-right: `).concat(s,"px ").concat(n,`; } .`).concat(xi," .").concat(xi,` { right: 0 `).concat(n,`; } .`).concat(Ei," .").concat(Ei,` { margin-right: 0 `).concat(n,`; } body[`).concat(Wa,`] { `).concat(bE,": ").concat(s,`px; } `)},Wf=function(){var e=parseInt(document.body.getAttribute("data-scroll-locked")||"0",10);return isFinite(e)?e:0},FE=function(){U(function(){return document.body.setAttribute(Wa,(Wf()+1).toString()),function(){var e=Wf()-1;e<=0?document.body.removeAttribute(Wa):document.body.setAttribute(Wa,e.toString())}},[])},zE=function(e){var t=e.noRelative,r=e.noImportant,n=e.gapMode,a=n===void 0?"margin":n;FE();var o=Fe(function(){return DE(a)},[a]);return zt(OE,{styles:ME(o,!t,a,r?"":"!important")})},Tl=!1;if(typeof window<"u")try{var ei=Object.defineProperty({},"passive",{get:function(){return Tl=!0,!0}});window.addEventListener("test",ei,ei),window.removeEventListener("test",ei,ei)}catch{Tl=!1}var Hn=Tl?{passive:!1}:!1,VE=function(e){return e.tagName==="TEXTAREA"},X2=function(e,t){if(!(e instanceof Element))return!1;var r=window.getComputedStyle(e);return r[t]!=="hidden"&&!(r.overflowY===r.overflowX&&!VE(e)&&r[t]==="visible")},BE=function(e){return X2(e,"overflowY")},HE=function(e){return X2(e,"overflowX")},Zf=function(e,t){var r=t.ownerDocument,n=t;do{if(typeof ShadowRoot<"u"&&n instanceof ShadowRoot&&(n=n.host),J2(e,n)){var a=Q2(e,n);if(a[1]>a[2])return!0}n=n.parentNode}while(n&&n!==r.body);return!1},UE=function(e){return[e.scrollTop,e.scrollHeight,e.clientHeight]},jE=function(e){return[e.scrollLeft,e.scrollWidth,e.clientWidth]},J2=function(e,t){return e==="v"?BE(t):HE(t)},Q2=function(e,t){return e==="v"?UE(t):jE(t)},qE=function(e,t){return e==="h"&&t==="rtl"?-1:1},GE=function(e,t,r,n,a){var o=qE(e,window.getComputedStyle(t).direction),i=o*n,s=r.target,c=t.contains(s),l=!1,d=i>0,u=0,f=0;do{if(!s)break;var m=Q2(e,s),h=m[0],g=m[1]-m[2]-o*h;(h||g)&&J2(e,s)&&(u+=g,f+=h);var v=s.parentNode;s=v&&v.nodeType===Node.DOCUMENT_FRAGMENT_NODE?v.host:v}while(!c&&s!==document.body||c&&(t.contains(s)||t===s));return(d&&(a&&Math.abs(u)<1||!a&&i>u)||!d&&(a&&Math.abs(f)<1||!a&&-i>f))&&(l=!0),l},ti=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},Kf=function(e){return[e.deltaX,e.deltaY]},Yf=function(e){return e&&"current"in e?e.current:e},WE=function(e,t){return e[0]===t[0]&&e[1]===t[1]},ZE=function(e){return` .block-interactivity-`.concat(e,` {pointer-events: none;} .allow-interactivity-`).concat(e,` {pointer-events: all;} `)},KE=0,Un=[];function YE(e){var t=V([]),r=V([0,0]),n=V(),a=H(KE++)[0],o=H(Y2)[0],i=V(e);U(function(){i.current=e},[e]),U(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(a));var g=vE([e.lockRef.current],(e.shards||[]).map(Yf),!0).filter(Boolean);return g.forEach(function(v){return v.classList.add("allow-interactivity-".concat(a))}),function(){document.body.classList.remove("block-interactivity-".concat(a)),g.forEach(function(v){return v.classList.remove("allow-interactivity-".concat(a))})}}},[e.inert,e.lockRef.current,e.shards]);var s=ne(function(g,v){if("touches"in g&&g.touches.length===2||g.type==="wheel"&&g.ctrlKey)return!i.current.allowPinchZoom;var b=ti(g),I=r.current,y="deltaX"in g?g.deltaX:I[0]-b[0],S="deltaY"in g?g.deltaY:I[1]-b[1],w,C=g.target,T=Math.abs(y)>Math.abs(S)?"h":"v";if("touches"in g&&T==="h"&&C.type==="range")return!1;var E=window.getSelection(),L=E&&E.anchorNode;if(L&&(L===C||L.contains(C)))return!1;var j=Zf(T,C);if(!j)return!0;if(j?w=T:(w=T==="v"?"h":"v",j=Zf(T,C)),!j)return!1;if(!n.current&&"changedTouches"in g&&(y||S)&&(n.current=w),!w)return!0;var ue=n.current||w;return GE(ue,v,g,ue==="h"?y:S,!0)},[]),c=ne(function(g){var v=g;if(!(!Un.length||Un[Un.length-1]!==o)){var b="deltaY"in v?Kf(v):ti(v),I=t.current.filter(function(S){return S.name===v.type&&(S.target===v.target||v.target===S.shadowParent)&&WE(S.delta,b)})[0];if(I&&I.should){v.cancelable&&v.preventDefault();return}if(!I){var y=(i.current.shards||[]).map(Yf).filter(Boolean).filter(function(S){return S.contains(v.target)});(y.length>0?s(v,y[0]):!i.current.noIsolation)&&v.cancelable&&v.preventDefault()}}},[]),l=ne(function(g,v,b,I){var y={name:g,delta:v,target:b,should:I,shadowParent:XE(b)};t.current.push(y),setTimeout(function(){t.current=t.current.filter(function(S){return S!==y})},1)},[]),d=ne(function(g){r.current=ti(g),n.current=void 0},[]),u=ne(function(g){l(g.type,Kf(g),g.target,s(g,e.lockRef.current))},[]),f=ne(function(g){l(g.type,ti(g),g.target,s(g,e.lockRef.current))},[]);U(function(){return Un.push(o),e.setCallbacks({onScrollCapture:u,onWheelCapture:u,onTouchMoveCapture:f}),document.addEventListener("wheel",c,Hn),document.addEventListener("touchmove",c,Hn),document.addEventListener("touchstart",d,Hn),function(){Un=Un.filter(function(g){return g!==o}),document.removeEventListener("wheel",c,Hn),document.removeEventListener("touchmove",c,Hn),document.removeEventListener("touchstart",d,Hn)}},[]);var m=e.removeScrollBar,h=e.inert;return zt(fe,null,h?zt(o,{styles:ZE(a)}):null,m?zt(zE,{noRelative:e.noRelative,gapMode:e.gapMode}):null)}function XE(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}var JE=TE(K2,YE),Nu=Z(function(e,t){return zt(Ds,er({},e,{ref:t,sideCar:JE}))});Nu.classNames=Ds.classNames;var QE=function(e){return typeof document>"u"?null:(Array.isArray(e)?e[0]:e).ownerDocument.body},jn=new WeakMap,ri=new WeakMap,ni={},Lc=0,ev=function(e){return e&&(e.host||ev(e.parentNode))},eT=function(e,t){return t.map(function(r){if(e.contains(r))return r;var n=ev(r);return n&&e.contains(n)?n:(console.error("aria-hidden",r,"in not contained inside",e,". Doing nothing"),null)}).filter(function(r){return!!r})},tT=function(e,t,r,n){var a=eT(t,Array.isArray(e)?e:[e]);ni[r]||(ni[r]=new WeakMap);var o=ni[r],i=[],s=new Set,c=new Set(a),l=function(u){!u||s.has(u)||(s.add(u),l(u.parentNode))};a.forEach(l);var d=function(u){!u||c.has(u)||Array.prototype.forEach.call(u.children,function(f){if(s.has(f))d(f);else try{var m=f.getAttribute(n),h=m!==null&&m!=="false",g=(jn.get(f)||0)+1,v=(o.get(f)||0)+1;jn.set(f,g),o.set(f,v),i.push(f),g===1&&h&&ri.set(f,!0),v===1&&f.setAttribute(r,"true"),h||f.setAttribute(n,"true")}catch(b){console.error("aria-hidden: cannot operate on ",f,b)}})};return d(t),s.clear(),Lc++,function(){i.forEach(function(u){var f=jn.get(u)-1,m=o.get(u)-1;jn.set(u,f),o.set(u,m),f||(ri.has(u)||u.removeAttribute(n),ri.delete(u)),m||u.removeAttribute(r)}),Lc--,Lc||(jn=new WeakMap,jn=new WeakMap,ri=new WeakMap,ni={})}},tv=function(e,t,r){r===void 0&&(r="data-aria-hidden");var n=Array.from(Array.isArray(e)?e:[e]),a=t||QE(e);return a?(n.push.apply(n,Array.from(a.querySelectorAll("[aria-live], script"))),tT(n,a,r,"aria-hidden")):function(){return null}},Os="Dialog",[rv,XK]=xa(Os),[rT,Zt]=rv(Os),nv=e=>{const{__scopeDialog:t,children:r,open:n,defaultOpen:a,onOpenChange:o,modal:i=!0}=e,s=V(null),c=V(null),[l,d]=Tu({prop:n,defaultProp:a??!1,onChange:o,caller:Os});return p(rT,{scope:t,triggerRef:s,contentRef:c,contentId:qr(),titleId:qr(),descriptionId:qr(),open:l,onOpenChange:d,onOpenToggle:ne(()=>d(u=>!u),[d]),modal:i,children:r})};nv.displayName=Os;var av="DialogTrigger",nT=Z((e,t)=>{const{__scopeDialog:r,...n}=e,a=Zt(av,r),o=Qe(t,a.triggerRef);return p(Be.button,{type:"button","aria-haspopup":"dialog","aria-expanded":a.open,"aria-controls":a.contentId,"data-state":Mu(a.open),...n,ref:o,onClick:he(e.onClick,a.onOpenToggle)})});nT.displayName=av;var Du="DialogPortal",[aT,ov]=rv(Du,{forceMount:void 0}),iv=e=>{const{__scopeDialog:t,forceMount:r,children:n,container:a}=e,o=Zt(Du,t);return p(aT,{scope:t,forceMount:r,children:rr.map(n,i=>p(rn,{present:r||o.open,children:p(Eu,{asChild:!0,container:a,children:i})}))})};iv.displayName=Du;var Yi="DialogOverlay",sv=Z((e,t)=>{const r=ov(Yi,e.__scopeDialog),{forceMount:n=r.forceMount,...a}=e,o=Zt(Yi,e.__scopeDialog);return o.modal?p(rn,{present:n||o.open,children:p(iT,{...a,ref:t})}):null});sv.displayName=Yi;var oT=no("DialogOverlay.RemoveScroll"),iT=Z((e,t)=>{const{__scopeDialog:r,...n}=e,a=Zt(Yi,r);return p(Nu,{as:oT,allowPinchZoom:!0,shards:[a.contentRef],children:p(Be.div,{"data-state":Mu(a.open),...n,ref:t,style:{pointerEvents:"auto",...n.style}})})}),Sn="DialogContent",cv=Z((e,t)=>{const r=ov(Sn,e.__scopeDialog),{forceMount:n=r.forceMount,...a}=e,o=Zt(Sn,e.__scopeDialog);return p(rn,{present:n||o.open,children:o.modal?p(sT,{...a,ref:t}):p(cT,{...a,ref:t})})});cv.displayName=Sn;var sT=Z((e,t)=>{const r=Zt(Sn,e.__scopeDialog),n=V(null),a=Qe(t,r.contentRef,n);return U(()=>{const o=n.current;if(o)return tv(o)},[]),p(lv,{...e,ref:a,trapFocus:r.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:he(e.onCloseAutoFocus,o=>{o.preventDefault(),r.triggerRef.current?.focus()}),onPointerDownOutside:he(e.onPointerDownOutside,o=>{const i=o.detail.originalEvent,s=i.button===0&&i.ctrlKey===!0;(i.button===2||s)&&o.preventDefault()}),onFocusOutside:he(e.onFocusOutside,o=>o.preventDefault())})}),cT=Z((e,t)=>{const r=Zt(Sn,e.__scopeDialog),n=V(!1),a=V(!1);return p(lv,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:o=>{e.onCloseAutoFocus?.(o),o.defaultPrevented||(n.current||r.triggerRef.current?.focus(),o.preventDefault()),n.current=!1,a.current=!1},onInteractOutside:o=>{e.onInteractOutside?.(o),o.defaultPrevented||(n.current=!0,o.detail.originalEvent.type==="pointerdown"&&(a.current=!0));const i=o.target;r.triggerRef.current?.contains(i)&&o.preventDefault(),o.detail.originalEvent.type==="focusin"&&a.current&&o.preventDefault()}})}),lv=Z((e,t)=>{const{__scopeDialog:r,trapFocus:n,onOpenAutoFocus:a,onCloseAutoFocus:o,...i}=e,s=Zt(Sn,r),c=V(null),l=Qe(t,c);return G2(),_(fe,{children:[p(Lu,{asChild:!0,loop:!0,trapped:n,onMountAutoFocus:a,onUnmountAutoFocus:o,children:p(gu,{role:"dialog",id:s.contentId,"aria-describedby":s.descriptionId,"aria-labelledby":s.titleId,"data-state":Mu(s.open),...i,ref:l,onDismiss:()=>s.onOpenChange(!1)})}),_(fe,{children:[p(lT,{titleId:s.titleId}),p(dT,{contentRef:c,descriptionId:s.descriptionId})]})]})}),Ou="DialogTitle",uv=Z((e,t)=>{const{__scopeDialog:r,...n}=e,a=Zt(Ou,r);return p(Be.h2,{id:a.titleId,...n,ref:t})});uv.displayName=Ou;var dv="DialogDescription",pv=Z((e,t)=>{const{__scopeDialog:r,...n}=e,a=Zt(dv,r);return p(Be.p,{id:a.descriptionId,...n,ref:t})});pv.displayName=dv;var fv="DialogClose",mv=Z((e,t)=>{const{__scopeDialog:r,...n}=e,a=Zt(fv,r);return p(Be.button,{type:"button",...n,ref:t,onClick:he(e.onClick,()=>a.onOpenChange(!1))})});mv.displayName=fv;function Mu(e){return e?"open":"closed"}var hv="DialogTitleWarning",[JK,gv]=u9(hv,{contentName:Sn,titleName:Ou,docsSlug:"dialog"}),lT=({titleId:e})=>{const t=gv(hv),r=`\`${t.contentName}\` requires a \`${t.titleName}\` for the component to be accessible for screen reader users. If you want to hide the \`${t.titleName}\`, you can wrap it with our VisuallyHidden component. For more information, see https://radix-ui.com/primitives/docs/components/${t.docsSlug}`;return U(()=>{e&&(document.getElementById(e)||console.error(r))},[r,e]),null},uT="DialogDescriptionWarning",dT=({contentRef:e,descriptionId:t})=>{const r=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${gv(uT).contentName}}.`;return U(()=>{const n=e.current?.getAttribute("aria-describedby");t&&n&&(document.getElementById(t)||console.warn(r))},[r,e,t]),null},pT=nv,fT=iv,mT=sv,hT=cv,gT=uv,QK=pv,vT=mv;function Ms({className:e,width:t="1em",height:r="1em",...n}){return p("svg",{viewBox:"0 0 496 512",fill:"currentColor",width:t,height:r,role:"img","aria-hidden":n["aria-label"]?void 0:!0,className:e,...n,xmlns:"http://www.w3.org/2000/svg",children:p("path",{d:"M165.9 397.4c0 2-2.3 3.6-5.2 3.6-3.3.3-5.6-1.3-5.6-3.6 0-2 2.3-3.6 5.2-3.6 3-.3 5.6 1.3 5.6 3.6zm-31.1-4.5c-.7 2 1.3 4.3 4.3 4.9 2.6 1 5.6 0 6.2-2s-1.3-4.3-4.3-5.2c-2.6-.7-5.5.3-6.2 2.3zm44.2-1.7c-2.9.7-4.9 2.6-4.6 4.9.3 2 2.9 3.3 5.9 2.6 2.9-.7 4.9-2.6 4.6-4.6-.3-1.9-3-3.2-5.9-2.9zM244.8 8C106.1 8 0 113.3 0 252c0 110.9 69.8 205.8 169.5 239.2 12.8 2.3 17.3-5.6 17.3-12.1 0-6.2-.3-40.4-.3-61.4 0 0-70 15-84.7-29.8 0 0-11.4-29.1-27.8-36.6 0 0-22.9-15.7 1.6-15.4 0 0 24.9 2 38.6 25.8 21.9 38.6 58.6 27.5 72.9 20.9 2.3-16 8.8-27.1 16-33.7-55.9-6.2-112.3-14.3-112.3-110.5 0-27.5 7.6-41.3 23.6-58.9-2.6-6.5-11.1-33.3 2.6-67.9 20.9-6.5 69 27 69 27 20-5.6 41.5-8.5 62.8-8.5s42.8 2.9 62.8 8.5c0 0 48.1-33.6 69-27 13.7 34.7 5.2 61.4 2.6 67.9 16 17.7 25.8 31.5 25.8 58.9 0 96.5-58.9 104.2-114.8 110.5 9.2 7.9 17 22.9 17 46.4 0 33.7-.3 75.4-.3 83.6 0 6.5 4.6 14.4 17.3 12.1C428.2 457.8 496 362.9 496 252 496 113.3 383.5 8 244.8 8zM97.2 352.9c-1.3 1-1 3.3.7 5.2 1.6 1.6 3.9 2.3 5.2 1 1.3-1 1-3.3-.7-5.2-1.6-1.6-3.9-2.3-5.2-1zm-10.8-8.1c-.7 1.3.3 2.9 2.3 3.9 1.6 1 3.6.7 4.3-.7.7-1.3-.3-2.9-2.3-3.9-2-.6-3.6-.3-4.3.7zm32.4 35.6c-1.6 1.3-1 4.3 1.3 6.2 2.3 2.3 5.2 2.6 6.5 1 1.3-1.3.7-4.3-1.3-6.2-2.2-2.3-5.2-2.6-6.5-1zm-11.4-14.7c-1.6 1-1.6 3.6 0 5.9 1.6 2.3 4.3 3.3 5.6 2.3 1.6-1.3 1.6-3.9 0-6.2-1.4-2.3-4-3.3-5.6-2z"})})}function vv({className:e,width:t="1em",height:r="1em",...n}){return p("svg",{viewBox:"0 0 496 512",fill:"currentColor",width:t,height:r,role:"img","aria-hidden":n["aria-label"]?void 0:!0,className:e,...n,xmlns:"http://www.w3.org/2000/svg",children:p("path",{d:"M488 261.8C488 403.3 391.1 504 248 504 110.8 504 0 393.2 0 256S110.8 8 248 8c66.8 0 123 24.5 166.3 64.9l-67.5 64.9C258.5 52.6 94.3 116.6 94.3 256c0 86.5 69.1 156.6 153.7 156.6 98.2 0 135-70.4 140.8-106.9H248v-85.3h236.1c2.3 12.7 3.9 24.9 3.9 41.4z"})})}async function yT(e){if(typeof navigator<"u"&&navigator.clipboard)try{await navigator.clipboard.writeText(e);return}catch{}if(typeof document>"u")throw new Error("Clipboard unavailable");const t=document.createElement("textarea");t.value=e,t.setAttribute("readonly",""),t.style.position="fixed",t.style.left="-9999px",t.style.top="0",document.body.appendChild(t),t.focus(),t.select();let r=!1;try{r=document.execCommand("copy")}finally{document.body.removeChild(t)}if(!r)throw new Error("Copy failed")}function bT(e,t="_blank",r){return typeof window>"u"?null:window.open(e,t,r)}function wT({features:e,height:t,target:r,url:n,width:a}){if(typeof window>"u")return null;const o=window.screenX+(window.outerWidth-a)/2,i=window.screenY+(window.outerHeight-t)/2;return bT(n,r,[`width=${a}`,`height=${t}`,`left=${o}`,`top=${i}`,...e??[]].join(","))}function eY(e=2e3){const[t,r]=H(!1),n=V(null),a=ne(()=>{n.current!==null&&(window.clearTimeout(n.current),n.current=null)},[]),o=ne((i=e)=>{a(),r(!0),n.current=window.setTimeout(()=>{r(!1),n.current=null},i)},[a,e]);return U(()=>a,[a]),{active:t,trigger:o}}var Xi={signIn:{social:({provider:e,returnTo:t})=>{const r=t?`/auth/${e}/start?returnTo=${encodeURIComponent(t)}`:`/auth/${e}/start`;window.location.href=r},socialPopup:({provider:e})=>wT({url:`/auth/${e}/start?popup=true`,target:"tanstack-oauth",width:500,height:600,features:["popup=yes"]})},signOut:async()=>{window.location.href="/auth/signout"}};function _T({open:e,onOpenChange:t}){U(()=>{if(!e)return;function n(a){a.origin===window.location.origin&&a.data&&typeof a.data=="object"&&"type"in a.data&&a.data.type==="TANSTACK_AUTH_SUCCESS"&&(t(!1),window.location.reload())}return window.addEventListener("message",n),()=>window.removeEventListener("message",n)},[e,t]);const r=n=>{Xi.signIn.socialPopup({provider:n})||Xi.signIn.social({provider:n})};return p(pT,{open:e,onOpenChange:t,children:_(fT,{children:[p(mT,{className:"fixed inset-0 z-[999] bg-black/60 backdrop-blur-sm"}),_(hT,{className:"fixed left-1/2 top-1/2 z-[1000] w-full max-w-xs -translate-x-1/2 -translate-y-1/2 rounded-xl bg-white dark:bg-gray-900 p-6 shadow-xl",children:[_("div",{className:"flex items-center justify-between mb-4",children:[p(gT,{className:"text-lg font-semibold text-gray-900 dark:text-gray-100",children:"Sign in to continue"}),p(vT,{className:"rounded-full p-1 hover:bg-gray-100 dark:hover:bg-gray-800",children:p(h0,{className:"w-5 h-5 text-gray-500"})})]}),_("div",{className:"space-y-3",children:[_("button",{type:"button",onClick:()=>r("github"),className:"w-full flex items-center justify-center gap-2 bg-gray-900 hover:bg-black text-white dark:bg-white dark:hover:bg-gray-100 dark:text-gray-900 font-medium py-2.5 px-4 rounded-lg transition-colors",children:[p(Ms,{className:"w-5 h-5"}),"Continue with GitHub"]}),_("button",{type:"button",onClick:()=>r("google"),className:"w-full flex items-center justify-center gap-2 bg-[#DB4437] hover:bg-[#c53929] text-white font-medium py-2.5 px-4 rounded-lg transition-colors",children:[p(vv,{className:"w-5 h-5"}),"Continue with Google"]})]})]})]})})}var kT=Ce({method:"POST"}).handler(Le("a863101af06a412e026a82c0775180d21ebf50344227a050d177f793fe63fa41")),Fu=Ce({method:"POST"}).handler(Le("45c58bcbdb11333a294d38c09219fadaab08af3600e53c01ad8ea8c4fc662f48")),Pr=Ce({method:"POST"}).handler(Le("c042f90db3216794b62701096dc944f022401516c36205b1dfd8d30a71786a2d")),ST=Ce({method:"POST"}).handler(Le("8b4bd56d588a28777c1b9b06096daf0a898d884ae38f045684dd0379e40e0015")),yv=vo({queryKey:["currentUser"],queryFn:async()=>kT(),staleTime:5*1e3});function bv(){const e=rw({strict:!1})?.user;return _s({...yv,initialData:e})}function tY(){return bv().data}var wv=Bt(null);function rY(){const e=qt(wv);if(!e)throw new Error("useLoginModal must be used within a LoginModalProvider");return e}function xT({children:e}){const t=ha(),[r,n]=H(!1),a=V(void 0),o=ne(c=>{a.current=c?.onSuccess,n(!0)},[]),i=ne(()=>{n(!1),a.current=void 0},[]);U(()=>{const c=l=>{if(l.origin===window.location.origin&&l.data?.type==="TANSTACK_AUTH_SUCCESS"){t.invalidateQueries(yv);const d=a.current;n(!1),a.current=void 0,d&&setTimeout(d,0)}};return window.addEventListener("message",c),()=>window.removeEventListener("message",c)},[t]);const s=Fe(()=>({openLoginModal:o,closeLoginModal:i}),[o,i]);return _(wv.Provider,{value:s,children:[e,p(_T,{open:r,onOpenChange:n})]})}function ET({className:e}){return p(Mb,{className:z("animate-spin text-gray-900 dark:text-white text-2xl",e),"aria-label":"Loading"})}var nY=Ce({method:"GET"}).handler(Le("4769f8beb0703da1de578ff21175037820f4731133809cb9ee6cd42fb1e5f04d")),zu=Ce({method:"POST"}).handler(Le("16aa34fd3059e84247ca168e9162c8e4da55067f38c589364ba9f06156381d9b")),aY=Ce({method:"GET"}).handler(Le("c8c6df6989d2f9342e759da21bec43fc41cab8e2e821701ab2866941c107669a")),_v=Ce({method:"POST"}).handler(Le("fcc3bbba5e89cf381c5d12fa06d00aa0cb31bd78947cb5412a0a1ee46ff71c41")),oY=Ce({method:"POST"}).handler(Le("3fc4e3e27b6837b49245eaa55d9a6727f63746aa6c9bb01b92d924268d4e5b07")),iY=Ce({method:"POST"}).handler(Le("2d6ec6cd628f31d2e4efbb06d8f5ca8ed816239be371c652445058845539b19a")),sY=Ce({method:"GET"}).handler(Le("ee43879886b069a76231dbbde95a8617f4a540cb7fca052963b506e9c1f9e35d")),cY=Ce({method:"POST"}).handler(Le("5ea72aa3ec66d6d941b2c5e023e30b1795f639eb853ac7e12ec6a2457919a62b")),lY=Ce({method:"POST"}).handler(Le("3086b883e455632d78f9726358ef07ed4efb0e5606e43f78d8fc228b143a95e0")),TT=Ce({method:"GET"}).handler(Le("b9ec6ebffe71881613f7d1e66d9126b4f7a9390f5be2d567f1ebaf09da5cfc18")),IT=Ce({method:"POST"}).handler(Le("87fa7e5b25c5fa9098b63a77ca817a1bdb6125d60e136d5486b4abd9fb7c485b")),CT=Ce({method:"POST"}).handler(Le("2387f8f159fd1d4ba0bf60a7a6a25e4688842953a744775cccaf750f959f3b9f")),RT=Ce({method:"POST"}).handler(Le("880e983f53cde81ac01fe8fcfdb219c7fa10a40faeed14bb57f856a2ce604a80")),$T=Ce({method:"POST"}).handler(Le("6cd81c0af881839cec2668f834615620c9939b4d89db37bb3f0c02d084c5b698")),PT=Ce({method:"POST"}).handler(Le("18fe71f3a4959d33b75e5590122583c3682c791c6b07df64c5354115328a1f93")),Me=["shopify","cart"],No=["shopify","cart","mutate"],Ti=0;function Do(){Ti++}function Oo(e){if(Ti=Math.max(0,Ti-1),Ti===0)return e.invalidateQueries({queryKey:Me})}function AT(){const e=_s({queryKey:Me,queryFn:()=>TT(),staleTime:3e4});return{cart:e.data??null,isLoading:e.isLoading,isFetching:e.isFetching,isError:e.isError,error:e.error,refetch:e.refetch,totalQuantity:e.data?.totalQuantity??0}}function kv(){const e=ha();return ga({mutationKey:No,mutationFn:t=>IT({data:{variantId:t.variantId,quantity:t.quantity??1}}),onMutate:async t=>{Do();const r=t.quantity??1;await e.cancelQueries({queryKey:Me});const n=e.getQueryData(Me);if(n&&t.line){const a=t.line,o=n.lines.nodes.findIndex(s=>s.merchandise.id===t.variantId);let i;if(o>=0)i=n.lines.nodes.map((s,c)=>c===o?{...s,quantity:s.quantity+r}:s);else{const s=String(Number(a.price.amount)*r);i=[{id:`optimistic-${Date.now()}`,quantity:r,merchandise:{id:t.variantId,title:a.variantTitle,availableForSale:!0,selectedOptions:a.selectedOptions,price:a.price,image:a.image,product:{handle:a.productHandle,title:a.productTitle}},cost:{totalAmount:{amount:s,currencyCode:a.price.currencyCode}}},...n.lines.nodes]}e.setQueryData(Me,{...n,totalQuantity:i.reduce((s,c)=>s+c.quantity,0),lines:{...n.lines,nodes:i}})}else n&&e.setQueryData(Me,{...n,totalQuantity:(n.totalQuantity??0)+r});return{previous:n}},onError:(t,r,n)=>{n?.previous!==void 0&&e.setQueryData(Me,n.previous)},onSuccess:t=>{e.setQueryData(Me,t)},onSettled:()=>Oo(e)})}function uY(){const e=ha();return ga({mutationKey:No,mutationFn:t=>CT({data:t}),onMutate:async t=>{Do(),await e.cancelQueries({queryKey:Me});const r=e.getQueryData(Me);if(r){const n=r.lines.nodes.map(o=>o.id===t.lineId?{...o,quantity:t.quantity}:o),a=n.reduce((o,i)=>o+i.quantity,0);e.setQueryData(Me,{...r,totalQuantity:a,lines:{...r.lines,nodes:n}})}return{previous:r}},onError:(t,r,n)=>{n?.previous!==void 0&&e.setQueryData(Me,n.previous)},onSettled:()=>Oo(e)})}function dY(){const e=ha();return ga({mutationKey:No,mutationFn:t=>RT({data:t}),onMutate:async t=>{Do(),await e.cancelQueries({queryKey:Me});const r=e.getQueryData(Me);if(r){const n=r.lines.nodes.filter(o=>o.id!==t.lineId),a=n.reduce((o,i)=>o+i.quantity,0);e.setQueryData(Me,{...r,totalQuantity:a,lines:{...r.lines,nodes:n}})}return{previous:r}},onError:(t,r,n)=>{n?.previous!==void 0&&e.setQueryData(Me,n.previous)},onSettled:()=>Oo(e)})}function pY(){const e=ha();return ga({mutationKey:No,mutationFn:t=>$T({data:{code:t.code}}),onMutate:async()=>{Do(),await e.cancelQueries({queryKey:Me})},onSuccess:t=>{e.setQueryData(Me,t)},onSettled:()=>Oo(e)})}function fY(){const e=ha();return ga({mutationKey:No,mutationFn:()=>PT(),onMutate:async()=>{Do(),await e.cancelQueries({queryKey:Me});const t=e.getQueryData(Me);return t&&e.setQueryData(Me,{...t,discountCodes:[]}),{previous:t}},onError:(t,r,n)=>{n?.previous!==void 0&&e.setQueryData(Me,n.previous)},onSettled:()=>Oo(e)})}var Xf=e=>{let t;const r=new Set,n=(l,d)=>{const u=typeof l=="function"?l(t):l;if(!Object.is(u,t)){const f=t;t=d??(typeof u!="object"||u===null)?u:Object.assign({},t,u),r.forEach(m=>m(t,f))}},a=()=>t,s={setState:n,getState:a,getInitialState:()=>c,subscribe:l=>(r.add(l),()=>r.delete(l))},c=t=e(n,a,s);return s},LT=(e=>e?Xf(e):Xf),NT=e=>e;function DT(e,t=NT){const r=N.useSyncExternalStore(e.subscribe,N.useCallback(()=>t(e.getState()),[e,t]),N.useCallback(()=>t(e.getInitialState()),[e,t]));return N.useDebugValue(r),r}var Jf=e=>{const t=LT(e),r=n=>DT(t,n);return Object.assign(r,t),r},OT=(e=>e?Jf(e):Jf),Vu=OT(e=>({open:!1,setOpen:t=>e({open:t}),openDrawer:()=>e({open:!0}),closeDrawer:()=>e({open:!1})})),MT=z("absolute -top-1 -right-1 min-w-[1.125rem] h-[1.125rem] px-1","flex items-center justify-center rounded-full","text-[0.65rem] font-bold leading-none","bg-black text-white dark:bg-white dark:text-black"),Qf=z("relative flex items-center justify-center","h-9 w-9 rounded-lg transition-colors","hover:bg-gray-500/10 text-gray-700 dark:text-gray-300");function FT(){const{pathname:e}=b0(),{totalQuantity:t}=AT(),r=Vu(i=>i.openDrawer),n=e==="/shop"||e.startsWith("/shop/");if(!n&&t===0)return null;const a=t>0?p("span",{className:MT,children:t>99?"99+":t}):null,o=t>0?`Cart (${t} items)`:"Cart";return n?_("button",{type:"button",onClick:r,"aria-label":o,className:Qf,children:[p(Ud,{className:"w-4 h-4"}),a]}):_($e,{to:"/shop/cart","aria-label":o,className:Qf,children:[p(Ud,{className:"w-4 h-4"}),a]})}function zT(){const{themeMode:e,resolvedTheme:t,toggleMode:r}=U2(),n=c=>{c.preventDefault(),c.stopPropagation(),r()},a=e==="auto"?"Auto":e==="light"?"Light":"Dark",o=e==="auto"?"light":e==="light"?"dark":"auto",i=e==="auto"?"auto":t,s=c=>["col-start-1 row-start-1 h-3.5 w-3.5 shrink-0 transition-opacity motion-reduce:transition-none",i===c?"opacity-100":"opacity-0"].join(" ");return p(wr,{type:"button",variant:"icon",color:"gray",size:"icon-sm",onClick:n,"aria-label":`Theme: ${a}. Switch to ${o} mode.`,title:`Theme: ${a}. Switch to ${o} mode.`,className:"h-7 w-7 shrink-0 rounded-md p-0 leading-none",children:_("span",{"aria-hidden":"true",className:"grid h-3.5 w-3.5 shrink-0 place-items-center",children:[p(gb,{className:s("auto")}),p(wb,{className:s("light")}),p(bb,{className:s("dark")})]})})}function VT(){return p("span",{className:"relative flex h-5 w-5 items-center justify-center",children:p("span",{className:"text-xs font-black leading-none tracking-normal",children:"AI"})})}function BT({className:e,iconOnly:t=!1}){const{openSearch:r}=Ru();return _(wr,{type:"button","data-search-trigger":"true",onClick:r,"aria-label":"Search TanStack","aria-haspopup":"dialog",variant:t?"icon":"ghost",color:"gray",size:t?"icon-sm":"xs",title:"Search",className:z(t?"h-7 w-7 rounded-md p-0":"gap-2 bg-gray-500/5 dark:bg-gray-500/30",e),children:[p(Eb,{className:"w-3.5 h-3.5"}),t?p("span",{className:"sr-only",children:"Search"}):_(fe,{children:[p("span",{children:"Search..."}),_("div",{className:"flex items-center bg-gray-500/10 dark:bg-gray-500/30 rounded px-1 py-0.5 gap-0.5 text-[10px] whitespace-nowrap",children:[p(Lb,{className:"w-2.5 h-2.5"})," K"]})]})]})}function HT({className:e}){const{cancelAiDockHoverClose:t,closeAiDock:r,isAiDockDirty:n,isAiDockOpen:a,openAiDock:o,scheduleAiDockHoverClose:i}=Ru(),s=V(!1);return _(wr,{type:"button",onClick:()=>{if(s.current){s.current=!1;return}if(a){r();return}o()},onPointerEnter:u=>{u.pointerType!=="touch"&&(t(),n&&!a&&(s.current=!0,o()))},onPointerLeave:u=>{u.pointerType!=="touch"&&(s.current=!1,n&&i())},"aria-label":a?"Close AI panel":"Open AI panel","aria-haspopup":"dialog","aria-pressed":a,variant:"ghost",size:"icon-sm",title:"Ask AI",className:z("h-7 w-8 rounded-md p-0 bg-gray-500/5 dark:bg-gray-500/30",a&&"bg-cyan-500/10 text-cyan-700 dark:bg-cyan-400/15 dark:text-cyan-300 border-cyan-500/20 dark:border-cyan-300/20",e),children:[p(VT,{}),p("span",{className:"sr-only",children:"Ask AI"})]})}function Sv(e){const t=e+"CollectionProvider",[r,n]=xa(t),[a,o]=r(t,{collectionRef:{current:null},itemMap:new Map}),i=g=>{const{scope:v,children:b}=g,I=N.useRef(null),y=N.useRef(new Map).current;return p(a,{scope:v,itemMap:y,collectionRef:I,children:b})};i.displayName=t;const s=e+"CollectionSlot",c=no(s),l=N.forwardRef((g,v)=>{const{scope:b,children:I}=g;return p(c,{ref:Qe(v,o(s,b).collectionRef),children:I})});l.displayName=s;const d=e+"CollectionItemSlot",u="data-radix-collection-item",f=no(d),m=N.forwardRef((g,v)=>{const{scope:b,children:I,...y}=g,S=N.useRef(null),w=Qe(v,S),C=o(d,b);return N.useEffect(()=>(C.itemMap.set(S,{ref:S,...y}),()=>{C.itemMap.delete(S)})),p(f,{[u]:"",ref:w,children:I})});m.displayName=d;function h(g){const v=o(e+"CollectionConsumer",g);return N.useCallback(()=>{const b=v.collectionRef.current;if(!b)return[];const I=Array.from(b.querySelectorAll(`[${u}]`));return Array.from(v.itemMap.values()).sort((y,S)=>I.indexOf(y.ref.current)-I.indexOf(S.ref.current))},[v.collectionRef,v.itemMap])}return[{Provider:i,Slot:l,ItemSlot:m},h,n]}var UT=Bt(void 0);function xv(e){const t=qt(UT);return e||t||"ltr"}var Nc="rovingFocusGroup.onEntryFocus",jT={bubbles:!1,cancelable:!0},Mo="RovingFocusGroup",[Il,Ev,qT]=Sv(Mo),[GT,Tv]=xa(Mo,[qT]),[WT,ZT]=GT(Mo),Iv=Z((e,t)=>p(Il.Provider,{scope:e.__scopeRovingFocusGroup,children:p(Il.Slot,{scope:e.__scopeRovingFocusGroup,children:p(KT,{...e,ref:t})})}));Iv.displayName=Mo;var KT=Z((e,t)=>{const{__scopeRovingFocusGroup:r,orientation:n,loop:a=!1,dir:o,currentTabStopId:i,defaultCurrentTabStopId:s,onCurrentTabStopIdChange:c,onEntryFocus:l,preventScrollOnEntryFocus:d=!1,...u}=e,f=V(null),m=Qe(t,f),h=xv(o),[g,v]=Tu({prop:i,defaultProp:s??null,onChange:c,caller:Mo}),[b,I]=H(!1),y=ir(l),S=Ev(r),w=V(!1),[C,T]=H(0);return U(()=>{const E=f.current;if(E)return E.addEventListener(Nc,y),()=>E.removeEventListener(Nc,y)},[y]),p(WT,{scope:r,orientation:n,dir:h,loop:a,currentTabStopId:g,onItemFocus:ne(E=>v(E),[v]),onItemShiftTab:ne(()=>I(!0),[]),onFocusableItemAdd:ne(()=>T(E=>E+1),[]),onFocusableItemRemove:ne(()=>T(E=>E-1),[]),children:p(Be.div,{tabIndex:b||C===0?-1:0,"data-orientation":n,...u,ref:m,style:{outline:"none",...e.style},onMouseDown:he(e.onMouseDown,()=>{w.current=!0}),onFocus:he(e.onFocus,E=>{const L=!w.current;if(E.target===E.currentTarget&&L&&!b){const j=new CustomEvent(Nc,jT);if(E.currentTarget.dispatchEvent(j),!j.defaultPrevented){const ue=S().filter(q=>q.focusable);$v([ue.find(q=>q.active),ue.find(q=>q.id===g),...ue].filter(Boolean).map(q=>q.ref.current),d)}}w.current=!1}),onBlur:he(e.onBlur,()=>I(!1))})})}),Cv="RovingFocusGroupItem",Rv=Z((e,t)=>{const{__scopeRovingFocusGroup:r,focusable:n=!0,active:a=!1,tabStopId:o,children:i,...s}=e,c=qr(),l=o||c,d=ZT(Cv,r),u=d.currentTabStopId===l,f=Ev(r),{onFocusableItemAdd:m,onFocusableItemRemove:h,currentTabStopId:g}=d;return U(()=>{if(n)return m(),()=>h()},[n,m,h]),p(Il.ItemSlot,{scope:r,id:l,focusable:n,active:a,children:p(Be.span,{tabIndex:u?0:-1,"data-orientation":d.orientation,...s,ref:t,onMouseDown:he(e.onMouseDown,v=>{n?d.onItemFocus(l):v.preventDefault()}),onFocus:he(e.onFocus,()=>d.onItemFocus(l)),onKeyDown:he(e.onKeyDown,v=>{if(v.key==="Tab"&&v.shiftKey){d.onItemShiftTab();return}if(v.target!==v.currentTarget)return;const b=JT(v,d.orientation,d.dir);if(b!==void 0){if(v.metaKey||v.ctrlKey||v.altKey||v.shiftKey)return;v.preventDefault();let I=f().filter(y=>y.focusable).map(y=>y.ref.current);if(b==="last")I.reverse();else if(b==="prev"||b==="next"){b==="prev"&&I.reverse();const y=I.indexOf(v.currentTarget);I=d.loop?QT(I,y+1):I.slice(y+1)}setTimeout(()=>$v(I))}}),children:typeof i=="function"?i({isCurrentTabStop:u,hasTabStop:g!=null}):i})})});Rv.displayName=Cv;var YT={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function XT(e,t){return t!=="rtl"?e:e==="ArrowLeft"?"ArrowRight":e==="ArrowRight"?"ArrowLeft":e}function JT(e,t,r){const n=XT(e.key,r);if(!(t==="vertical"&&["ArrowLeft","ArrowRight"].includes(n))&&!(t==="horizontal"&&["ArrowUp","ArrowDown"].includes(n)))return YT[n]}function $v(e,t=!1){const r=document.activeElement;for(const n of e)if(n===r||(n.focus({preventScroll:t}),document.activeElement!==r))return}function QT(e,t){return e.map((r,n)=>e[(t+n)%e.length])}var eI=Iv,tI=Rv,Cl=["Enter"," "],rI=["ArrowDown","PageUp","Home"],Pv=["ArrowUp","PageDown","End"],nI=[...rI,...Pv],aI={ltr:[...Cl,"ArrowRight"],rtl:[...Cl,"ArrowLeft"]},oI={ltr:["ArrowLeft"],rtl:["ArrowRight"]},Fo="Menu",[oo,iI,sI]=Sv(Fo),[Ln,Av]=xa(Fo,[sI,p2,Tv]),zo=p2(),Lv=Tv(),[Nv,nn]=Ln(Fo),[cI,Vo]=Ln(Fo),Dv=e=>{const{__scopeMenu:t,open:r=!1,children:n,dir:a,onOpenChange:o,modal:i=!0}=e,s=zo(t),[c,l]=H(null),d=V(!1),u=ir(o),f=xv(a);return U(()=>{const m=()=>{d.current=!0,document.addEventListener("pointerdown",h,{capture:!0,once:!0}),document.addEventListener("pointermove",h,{capture:!0,once:!0})},h=()=>d.current=!1;return document.addEventListener("keydown",m,{capture:!0}),()=>{document.removeEventListener("keydown",m,{capture:!0}),document.removeEventListener("pointerdown",h,{capture:!0}),document.removeEventListener("pointermove",h,{capture:!0})}},[]),p(_2,{...s,children:p(Nv,{scope:t,open:r,onOpenChange:u,content:c,onContentChange:l,children:p(cI,{scope:t,onClose:ne(()=>u(!1),[u]),isUsingKeyboardRef:d,dir:f,modal:i,children:n})})})};Dv.displayName=Fo;var lI="MenuAnchor",Bu=Z((e,t)=>{const{__scopeMenu:r,...n}=e,a=zo(r);return p(M8,{...a,...n,ref:t})});Bu.displayName=lI;var Hu="MenuPortal",[uI,Ov]=Ln(Hu,{forceMount:void 0}),Mv=e=>{const{__scopeMenu:t,forceMount:r,children:n,container:a}=e,o=nn(Hu,t);return p(uI,{scope:t,forceMount:r,children:p(rn,{present:r||o.open,children:p(Eu,{asChild:!0,container:a,children:n})})})};Mv.displayName=Hu;var Ct="MenuContent",[dI,Uu]=Ln(Ct),Fv=Z((e,t)=>{const r=Ov(Ct,e.__scopeMenu),{forceMount:n=r.forceMount,...a}=e,o=nn(Ct,e.__scopeMenu),i=Vo(Ct,e.__scopeMenu);return p(oo.Provider,{scope:e.__scopeMenu,children:p(rn,{present:n||o.open,children:p(oo.Slot,{scope:e.__scopeMenu,children:i.modal?p(pI,{...a,ref:t}):p(fI,{...a,ref:t})})})})}),pI=Z((e,t)=>{const r=nn(Ct,e.__scopeMenu),n=V(null),a=Qe(t,n);return U(()=>{const o=n.current;if(o)return tv(o)},[]),p(ju,{...e,ref:a,trapFocus:r.open,disableOutsidePointerEvents:r.open,disableOutsideScroll:!0,onFocusOutside:he(e.onFocusOutside,o=>o.preventDefault(),{checkForDefaultPrevented:!1}),onDismiss:()=>r.onOpenChange(!1)})}),fI=Z((e,t)=>{const r=nn(Ct,e.__scopeMenu);return p(ju,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,disableOutsideScroll:!1,onDismiss:()=>r.onOpenChange(!1)})}),mI=no("MenuContent.ScrollLock"),ju=Z((e,t)=>{const{__scopeMenu:r,loop:n=!1,trapFocus:a,onOpenAutoFocus:o,onCloseAutoFocus:i,disableOutsidePointerEvents:s,onEntryFocus:c,onEscapeKeyDown:l,onPointerDownOutside:d,onFocusOutside:u,onInteractOutside:f,onDismiss:m,disableOutsideScroll:h,...g}=e,v=nn(Ct,r),b=Vo(Ct,r),I=zo(r),y=Lv(r),S=iI(r),[w,C]=H(null),T=V(null),E=Qe(t,T,v.onContentChange),L=V(0),j=V(""),ue=V(0),q=V(null),X=V("right"),de=V(0),ge=h?Nu:fe,B=h?{as:mI,allowPinchZoom:!0}:void 0,Y=D=>{const A=j.current+D,ve=S().filter(oe=>!oe.disabled),Oe=document.activeElement,Q=ve.find(oe=>oe.ref.current===Oe)?.textValue,ye=II(ve.map(oe=>oe.textValue),A,Q),te=ve.find(oe=>oe.textValue===ye)?.ref.current;(function oe(Re){j.current=Re,window.clearTimeout(L.current),Re!==""&&(L.current=window.setTimeout(()=>oe(""),1e3))})(A),te&&setTimeout(()=>te.focus())};U(()=>()=>window.clearTimeout(L.current),[]),G2();const F=ne(D=>X.current===q.current?.side&&RI(D,q.current?.area),[]);return p(dI,{scope:r,searchRef:j,onItemEnter:ne(D=>{F(D)&&D.preventDefault()},[F]),onItemLeave:ne(D=>{F(D)||(T.current?.focus(),C(null))},[F]),onTriggerLeave:ne(D=>{F(D)&&D.preventDefault()},[F]),pointerGraceTimerRef:ue,onPointerGraceIntentChange:ne(D=>{q.current=D},[]),children:p(ge,{...B,children:p(Lu,{asChild:!0,trapped:a,onMountAutoFocus:he(o,D=>{D.preventDefault(),T.current?.focus({preventScroll:!0})}),onUnmountAutoFocus:i,children:p(gu,{asChild:!0,disableOutsidePointerEvents:s,onEscapeKeyDown:l,onPointerDownOutside:d,onFocusOutside:u,onInteractOutside:f,onDismiss:m,children:p(eI,{asChild:!0,...y,dir:b.dir,orientation:"vertical",loop:n,currentTabStopId:w,onCurrentTabStopIdChange:C,onEntryFocus:he(c,D=>{b.isUsingKeyboardRef.current||D.preventDefault()}),preventScrollOnEntryFocus:!0,children:p(F8,{role:"menu","aria-orientation":"vertical","data-state":e1(v.open),"data-radix-menu-content":"",dir:b.dir,...I,...g,ref:E,style:{outline:"none",...g.style},onKeyDown:he(g.onKeyDown,D=>{const A=D.target.closest("[data-radix-menu-content]")===D.currentTarget,ve=D.ctrlKey||D.altKey||D.metaKey,Oe=D.key.length===1;A&&(D.key==="Tab"&&D.preventDefault(),!ve&&Oe&&Y(D.key));const Q=T.current;if(D.target!==Q||!nI.includes(D.key))return;D.preventDefault();const ye=S().filter(te=>!te.disabled).map(te=>te.ref.current);Pv.includes(D.key)&&ye.reverse(),EI(ye)}),onBlur:he(e.onBlur,D=>{D.currentTarget.contains(D.target)||(window.clearTimeout(L.current),j.current="")}),onPointerMove:he(e.onPointerMove,io(D=>{const A=D.target,ve=de.current!==D.clientX;D.currentTarget.contains(A)&&ve&&(X.current=D.clientX>de.current?"right":"left",de.current=D.clientX)}))})})})})})})});Fv.displayName=Ct;var hI="MenuGroup",qu=Z((e,t)=>{const{__scopeMenu:r,...n}=e;return p(Be.div,{role:"group",...n,ref:t})});qu.displayName=hI;var gI="MenuLabel",zv=Z((e,t)=>{const{__scopeMenu:r,...n}=e;return p(Be.div,{...n,ref:t})});zv.displayName=gI;var Ji="MenuItem",em="menu.itemSelect",Fs=Z((e,t)=>{const{disabled:r=!1,onSelect:n,...a}=e,o=V(null),i=Vo(Ji,e.__scopeMenu),s=Uu(Ji,e.__scopeMenu),c=Qe(t,o),l=V(!1),d=()=>{const u=o.current;if(!r&&u){const f=new CustomEvent(em,{bubbles:!0,cancelable:!0});u.addEventListener(em,m=>n?.(m),{once:!0}),Yg(u,f),f.defaultPrevented?l.current=!1:i.onClose()}};return p(Vv,{...a,ref:c,disabled:r,onClick:he(e.onClick,d),onPointerDown:u=>{e.onPointerDown?.(u),l.current=!0},onPointerUp:he(e.onPointerUp,u=>{l.current||u.currentTarget?.click()}),onKeyDown:he(e.onKeyDown,u=>{const f=s.searchRef.current!=="";r||f&&u.key===" "||Cl.includes(u.key)&&(u.currentTarget.click(),u.preventDefault())})})});Fs.displayName=Ji;var Vv=Z((e,t)=>{const{__scopeMenu:r,disabled:n=!1,textValue:a,...o}=e,i=Uu(Ji,r),s=Lv(r),c=V(null),l=Qe(t,c),[d,u]=H(!1),[f,m]=H("");return U(()=>{const h=c.current;h&&m((h.textContent??"").trim())},[o.children]),p(oo.ItemSlot,{scope:r,disabled:n,textValue:a??f,children:p(tI,{asChild:!0,...s,focusable:!n,children:p(Be.div,{role:"menuitem","data-highlighted":d?"":void 0,"aria-disabled":n||void 0,"data-disabled":n?"":void 0,...o,ref:l,onPointerMove:he(e.onPointerMove,io(h=>{n?i.onItemLeave(h):(i.onItemEnter(h),h.defaultPrevented||h.currentTarget.focus({preventScroll:!0}))})),onPointerLeave:he(e.onPointerLeave,io(h=>i.onItemLeave(h))),onFocus:he(e.onFocus,()=>u(!0)),onBlur:he(e.onBlur,()=>u(!1))})})})}),vI="MenuCheckboxItem",Bv=Z((e,t)=>{const{checked:r=!1,onCheckedChange:n,...a}=e;return p(Gv,{scope:e.__scopeMenu,checked:r,children:p(Fs,{role:"menuitemcheckbox","aria-checked":Qi(r)?"mixed":r,...a,ref:t,"data-state":Zu(r),onSelect:he(a.onSelect,()=>n?.(Qi(r)?!0:!r),{checkForDefaultPrevented:!1})})})});Bv.displayName=vI;var Hv="MenuRadioGroup",[yI,bI]=Ln(Hv,{value:void 0,onValueChange:()=>{}}),Uv=Z((e,t)=>{const{value:r,onValueChange:n,...a}=e,o=ir(n);return p(yI,{scope:e.__scopeMenu,value:r,onValueChange:o,children:p(qu,{...a,ref:t})})});Uv.displayName=Hv;var jv="MenuRadioItem",qv=Z((e,t)=>{const{value:r,...n}=e,a=bI(jv,e.__scopeMenu),o=r===a.value;return p(Gv,{scope:e.__scopeMenu,checked:o,children:p(Fs,{role:"menuitemradio","aria-checked":o,...n,ref:t,"data-state":Zu(o),onSelect:he(n.onSelect,()=>a.onValueChange?.(r),{checkForDefaultPrevented:!1})})})});qv.displayName=jv;var Gu="MenuItemIndicator",[Gv,wI]=Ln(Gu,{checked:!1}),Wv=Z((e,t)=>{const{__scopeMenu:r,forceMount:n,...a}=e,o=wI(Gu,r);return p(rn,{present:n||Qi(o.checked)||o.checked===!0,children:p(Be.span,{...a,ref:t,"data-state":Zu(o.checked)})})});Wv.displayName=Gu;var _I="MenuSeparator",Zv=Z((e,t)=>{const{__scopeMenu:r,...n}=e;return p(Be.div,{role:"separator","aria-orientation":"horizontal",...n,ref:t})});Zv.displayName=_I;var kI="MenuArrow",Kv=Z((e,t)=>{const{__scopeMenu:r,...n}=e,a=zo(r);return p(z8,{...a,...n,ref:t})});Kv.displayName=kI;var Wu="MenuSub",[SI,Yv]=Ln(Wu),xI=e=>{const{__scopeMenu:t,children:r,open:n=!1,onOpenChange:a}=e,o=nn(Wu,t),i=zo(t),[s,c]=H(null),[l,d]=H(null),u=ir(a);return U(()=>(o.open===!1&&u(!1),()=>u(!1)),[o.open,u]),p(_2,{...i,children:p(Nv,{scope:t,open:n,onOpenChange:u,content:l,onContentChange:d,children:p(SI,{scope:t,contentId:qr(),triggerId:qr(),trigger:s,onTriggerChange:c,children:r})})})};xI.displayName=Wu;var Ba="MenuSubTrigger",Xv=Z((e,t)=>{const r=nn(Ba,e.__scopeMenu),n=Vo(Ba,e.__scopeMenu),a=Yv(Ba,e.__scopeMenu),o=Uu(Ba,e.__scopeMenu),i=V(null),{pointerGraceTimerRef:s,onPointerGraceIntentChange:c}=o,l={__scopeMenu:e.__scopeMenu},d=ne(()=>{i.current&&window.clearTimeout(i.current),i.current=null},[]);return U(()=>d,[d]),U(()=>{const u=s.current;return()=>{window.clearTimeout(u),c(null)}},[s,c]),p(Bu,{asChild:!0,...l,children:p(Vv,{id:a.triggerId,"aria-haspopup":"menu","aria-expanded":r.open,"aria-controls":a.contentId,"data-state":e1(r.open),...e,ref:Rs(t,a.onTriggerChange),onClick:u=>{e.onClick?.(u),!(e.disabled||u.defaultPrevented)&&(u.currentTarget.focus(),r.open||r.onOpenChange(!0))},onPointerMove:he(e.onPointerMove,io(u=>{o.onItemEnter(u),!u.defaultPrevented&&!e.disabled&&!r.open&&!i.current&&(o.onPointerGraceIntentChange(null),i.current=window.setTimeout(()=>{r.onOpenChange(!0),d()},100))})),onPointerLeave:he(e.onPointerLeave,io(u=>{d();const f=r.content?.getBoundingClientRect();if(f){const m=r.content?.dataset.side,h=m==="right",g=h?-5:5,v=f[h?"left":"right"],b=f[h?"right":"left"];o.onPointerGraceIntentChange({area:[{x:u.clientX+g,y:u.clientY},{x:v,y:f.top},{x:b,y:f.top},{x:b,y:f.bottom},{x:v,y:f.bottom}],side:m}),window.clearTimeout(s.current),s.current=window.setTimeout(()=>o.onPointerGraceIntentChange(null),300)}else{if(o.onTriggerLeave(u),u.defaultPrevented)return;o.onPointerGraceIntentChange(null)}})),onKeyDown:he(e.onKeyDown,u=>{const f=o.searchRef.current!=="";e.disabled||f&&u.key===" "||aI[n.dir].includes(u.key)&&(r.onOpenChange(!0),r.content?.focus(),u.preventDefault())})})})});Xv.displayName=Ba;var Jv="MenuSubContent",Qv=Z((e,t)=>{const r=Ov(Ct,e.__scopeMenu),{forceMount:n=r.forceMount,...a}=e,o=nn(Ct,e.__scopeMenu),i=Vo(Ct,e.__scopeMenu),s=Yv(Jv,e.__scopeMenu),c=V(null),l=Qe(t,c);return p(oo.Provider,{scope:e.__scopeMenu,children:p(rn,{present:n||o.open,children:p(oo.Slot,{scope:e.__scopeMenu,children:p(ju,{id:s.contentId,"aria-labelledby":s.triggerId,...a,ref:l,align:"start",side:i.dir==="rtl"?"left":"right",disableOutsidePointerEvents:!1,disableOutsideScroll:!1,trapFocus:!1,onOpenAutoFocus:d=>{i.isUsingKeyboardRef.current&&c.current?.focus(),d.preventDefault()},onCloseAutoFocus:d=>d.preventDefault(),onFocusOutside:he(e.onFocusOutside,d=>{d.target!==s.trigger&&o.onOpenChange(!1)}),onEscapeKeyDown:he(e.onEscapeKeyDown,d=>{i.onClose(),d.preventDefault()}),onKeyDown:he(e.onKeyDown,d=>{const u=d.currentTarget.contains(d.target),f=oI[i.dir].includes(d.key);u&&f&&(o.onOpenChange(!1),s.trigger?.focus(),d.preventDefault())})})})})})});Qv.displayName=Jv;function e1(e){return e?"open":"closed"}function Qi(e){return e==="indeterminate"}function Zu(e){return Qi(e)?"indeterminate":e?"checked":"unchecked"}function EI(e){const t=document.activeElement;for(const r of e)if(r===t||(r.focus(),document.activeElement!==t))return}function TI(e,t){return e.map((r,n)=>e[(t+n)%e.length])}function II(e,t,r){const n=t.length>1&&Array.from(t).every(s=>s===t[0])?t[0]:t,a=r?e.indexOf(r):-1;let o=TI(e,Math.max(a,0));n.length===1&&(o=o.filter(s=>s!==r));const i=o.find(s=>s.toLowerCase().startsWith(n.toLowerCase()));return i!==r?i:void 0}function CI(e,t){const{x:r,y:n}=e;let a=!1;for(let o=0,i=t.length-1;on!=f>n&&r<(u-l)*(n-d)/(f-d)+l&&(a=!a)}return a}function RI(e,t){return t?CI({x:e.clientX,y:e.clientY},t):!1}function io(e){return t=>t.pointerType==="mouse"?e(t):void 0}var $I=Dv,PI=Bu,AI=Mv,LI=Fv,NI=qu,DI=zv,OI=Fs,MI=Bv,FI=Uv,zI=qv,VI=Wv,BI=Zv,HI=Kv,UI=Xv,jI=Qv,zs="DropdownMenu",[qI,mY]=xa(zs,[Av]),ut=Av(),[GI,t1]=qI(zs),r1=e=>{const{__scopeDropdownMenu:t,children:r,dir:n,open:a,defaultOpen:o,onOpenChange:i,modal:s=!0}=e,c=ut(t),l=V(null),[d,u]=Tu({prop:a,defaultProp:o??!1,onChange:i,caller:zs});return p(GI,{scope:t,triggerId:qr(),triggerRef:l,contentId:qr(),open:d,onOpenChange:u,onOpenToggle:ne(()=>u(f=>!f),[u]),modal:s,children:p($I,{...c,open:d,onOpenChange:u,dir:n,modal:s,children:r})})};r1.displayName=zs;var n1="DropdownMenuTrigger",a1=Z((e,t)=>{const{__scopeDropdownMenu:r,disabled:n=!1,...a}=e,o=t1(n1,r),i=ut(r);return p(PI,{asChild:!0,...i,children:p(Be.button,{type:"button",id:o.triggerId,"aria-haspopup":"menu","aria-expanded":o.open,"aria-controls":o.open?o.contentId:void 0,"data-state":o.open?"open":"closed","data-disabled":n?"":void 0,disabled:n,...a,ref:Rs(t,o.triggerRef),onPointerDown:he(e.onPointerDown,s=>{!n&&s.button===0&&s.ctrlKey===!1&&(o.onOpenToggle(),o.open||s.preventDefault())}),onKeyDown:he(e.onKeyDown,s=>{n||(["Enter"," "].includes(s.key)&&o.onOpenToggle(),s.key==="ArrowDown"&&o.onOpenChange(!0),["Enter"," ","ArrowDown"].includes(s.key)&&s.preventDefault())})})})});a1.displayName=n1;var WI="DropdownMenuPortal",o1=e=>{const{__scopeDropdownMenu:t,...r}=e,n=ut(t);return p(AI,{...n,...r})};o1.displayName=WI;var i1="DropdownMenuContent",s1=Z((e,t)=>{const{__scopeDropdownMenu:r,...n}=e,a=t1(i1,r),o=ut(r),i=V(!1);return p(LI,{id:a.contentId,"aria-labelledby":a.triggerId,...o,...n,ref:t,onCloseAutoFocus:he(e.onCloseAutoFocus,s=>{i.current||a.triggerRef.current?.focus(),i.current=!1,s.preventDefault()}),onInteractOutside:he(e.onInteractOutside,s=>{const c=s.detail.originalEvent,l=c.button===0&&c.ctrlKey===!0,d=c.button===2||l;(!a.modal||d)&&(i.current=!0)}),style:{...e.style,"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"}})});s1.displayName=i1;var ZI="DropdownMenuGroup",KI=Z((e,t)=>{const{__scopeDropdownMenu:r,...n}=e,a=ut(r);return p(NI,{...a,...n,ref:t})});KI.displayName=ZI;var YI="DropdownMenuLabel",XI=Z((e,t)=>{const{__scopeDropdownMenu:r,...n}=e,a=ut(r);return p(DI,{...a,...n,ref:t})});XI.displayName=YI;var JI="DropdownMenuItem",c1=Z((e,t)=>{const{__scopeDropdownMenu:r,...n}=e,a=ut(r);return p(OI,{...a,...n,ref:t})});c1.displayName=JI;var QI="DropdownMenuCheckboxItem",eC=Z((e,t)=>{const{__scopeDropdownMenu:r,...n}=e,a=ut(r);return p(MI,{...a,...n,ref:t})});eC.displayName=QI;var tC="DropdownMenuRadioGroup",rC=Z((e,t)=>{const{__scopeDropdownMenu:r,...n}=e,a=ut(r);return p(FI,{...a,...n,ref:t})});rC.displayName=tC;var nC="DropdownMenuRadioItem",aC=Z((e,t)=>{const{__scopeDropdownMenu:r,...n}=e,a=ut(r);return p(zI,{...a,...n,ref:t})});aC.displayName=nC;var oC="DropdownMenuItemIndicator",iC=Z((e,t)=>{const{__scopeDropdownMenu:r,...n}=e,a=ut(r);return p(VI,{...a,...n,ref:t})});iC.displayName=oC;var sC="DropdownMenuSeparator",l1=Z((e,t)=>{const{__scopeDropdownMenu:r,...n}=e,a=ut(r);return p(BI,{...a,...n,ref:t})});l1.displayName=sC;var cC="DropdownMenuArrow",lC=Z((e,t)=>{const{__scopeDropdownMenu:r,...n}=e,a=ut(r);return p(HI,{...a,...n,ref:t})});lC.displayName=cC;var uC="DropdownMenuSubTrigger",dC=Z((e,t)=>{const{__scopeDropdownMenu:r,...n}=e,a=ut(r);return p(UI,{...a,...n,ref:t})});dC.displayName=uC;var pC="DropdownMenuSubContent",fC=Z((e,t)=>{const{__scopeDropdownMenu:r,...n}=e,a=ut(r);return p(jI,{...a,...n,ref:t,style:{...e.style,"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"}})});fC.displayName=pC;var mC=r1,hC=a1,gC=o1,vC=s1,yC=c1,bC=l1;function u1({children:e,open:t,onOpenChange:r,modal:n=!1}){return p(mC,{open:t,onOpenChange:r,modal:n,children:e})}function d1({children:e,className:t,asChild:r=!0}){return p(hC,{asChild:r,className:t,children:e})}function p1({children:e,className:t,align:r="end",sideOffset:n=6,portal:a=!0,onFocus:o,onPointerEnter:i,onPointerLeave:s}){const c=p(vC,{align:r,sideOffset:n,onFocus:o,onPointerEnter:i,onPointerLeave:s,className:z("dropdown-content z-[1200] min-w-48 rounded-lg p-1.5","border border-gray-200 dark:border-gray-700","bg-white dark:bg-gray-800","shadow-lg",t),children:e});return a?p(gC,{children:c}):c}function Rl({children:e,className:t,onSelect:r,asChild:n}){return p(yC,{asChild:n,onSelect:r,className:z("flex cursor-pointer select-none items-center gap-2 rounded-md px-2 py-1.5 outline-none","text-sm text-gray-700 dark:text-gray-300","hover:bg-gray-100 dark:hover:bg-gray-700/50","focus:bg-gray-100 dark:focus:bg-gray-700/50","transition-colors duration-150",t),children:e})}function wC({className:e}){return p(bC,{className:z("my-1 h-px bg-gray-200 dark:bg-gray-700",e)})}var _C=mb({BrandContextMenu:()=>f1});function f1({children:e,...t}){const r=ew(),{notify:n}=cE(),[a,o]=H(!1),[i,s]=H({x:0,y:0}),c=V(null),l=u=>{u.preventDefault(),s({x:u.clientX,y:u.clientY}),o(!0)},d=async u=>{try{await yT(u),n(_("div",{children:[p("div",{className:"font-medium",children:"Copied to clipboard"}),p("div",{className:"text-gray-500 dark:text-gray-400 text-xs",children:"SVG markup is now in your clipboard"})]}))}catch(f){console.error("Clipboard error",f),n(_("div",{children:[p("div",{className:"font-medium",children:"Copy failed"}),p("div",{className:"text-gray-500 dark:text-gray-400 text-xs",children:"Try again or download directly from the brand guide"})]}))}};return _("div",{onContextMenu:l,...t,children:[e,_(u1,{open:a,onOpenChange:o,modal:!0,children:[p(d1,{asChild:!1,children:p("span",{ref:c,style:{position:"fixed",left:i.x,top:i.y,width:1,height:1}})}),_(p1,{sideOffset:4,align:"start",className:"dark:bg-gray-900/50 backdrop-blur-md",children:[[{label:"Logo as SVG (Black)",url:"/images/logos/logo-black.svg"},{label:"Logo as SVG (White)",url:"/images/logos/logo-white.svg",darkBg:!0},{label:"Wordmark as SVG (Black)",url:"/images/logos/logo-word-black.svg"},{label:"Wordmark as SVG (White)",url:"/images/logos/logo-word-white.svg",darkBg:!0}].map(({label:u,url:f,darkBg:m})=>_(Rl,{className:"py-1",onSelect:async()=>{try{await d(await(await fetch(f)).text())}catch(h){console.error("Failed to copy logo",h)}},children:[u,p("div",{className:z("p-1 rounded-full",m?"bg-black text-white shadow-md":"bg-white text-black shadow-md"),children:p("img",{src:f,alt:u,className:"h-6"})})]},u)),p(wC,{}),p(Rl,{onSelect:()=>r({to:"/brand-guide"}),children:"Brand Guide & All Assets"})]})]})]})}function m1({className:e,width:t="1em",height:r="1em",...n}){return p("svg",{viewBox:"0 0 640 512",fill:"currentColor",width:t,height:r,role:"img","aria-hidden":n["aria-label"]?void 0:!0,className:e,...n,xmlns:"http://www.w3.org/2000/svg",children:p("path",{d:"M524.531,69.836a1.5,1.5,0,0,0-.764-.7A485.065,485.065,0,0,0,404.081,32.03a1.816,1.816,0,0,0-1.923.91,337.461,337.461,0,0,0-14.9,30.6,447.848,447.848,0,0,0-134.426,0,309.541,309.541,0,0,0-15.135-30.6,1.89,1.89,0,0,0-1.924-.91A483.689,483.689,0,0,0,116.085,69.137a1.712,1.712,0,0,0-.788.676C39.068,183.651,18.186,294.69,28.43,404.354a2.016,2.016,0,0,0,.765,1.375A487.666,487.666,0,0,0,176.02,479.918a1.9,1.9,0,0,0,2.063-.676A348.2,348.2,0,0,0,208.12,430.4a1.86,1.86,0,0,0-1.019-2.588,321.173,321.173,0,0,1-45.868-21.853,1.885,1.885,0,0,1-.185-3.126c3.082-2.309,6.166-4.711,9.109-7.137a1.819,1.819,0,0,1,1.9-.256c96.229,43.917,200.41,43.917,295.5,0a1.812,1.812,0,0,1,1.924.233c2.944,2.426,6.027,4.851,9.132,7.16a1.884,1.884,0,0,1-.162,3.126,301.407,301.407,0,0,1-45.89,21.83,1.875,1.875,0,0,0-1,2.611,391.055,391.055,0,0,0,30.014,48.815,1.864,1.864,0,0,0,2.063.7A486.048,486.048,0,0,0,610.7,405.729a1.882,1.882,0,0,0,.765-1.352C623.729,277.594,590.933,167.465,524.531,69.836ZM222.491,337.58c-28.972,0-52.844-26.587-52.844-59.239S193.056,219.1,222.491,219.1c29.665,0,53.306,26.82,52.843,59.239C275.334,310.993,251.924,337.58,222.491,337.58Zm195.38,0c-28.971,0-52.843-26.587-52.843-59.239S388.437,219.1,417.871,219.1c29.667,0,53.307,26.82,52.844,59.239C470.715,310.993,447.538,337.58,417.871,337.58Z"})})}function kC({className:e,width:t="1em",height:r="1em",...n}){return p("svg",{viewBox:"0 0 448 512",fill:"currentColor",width:t,height:r,role:"img","aria-hidden":n["aria-label"]?void 0:!0,className:e,...n,xmlns:"http://www.w3.org/2000/svg",children:p("path",{d:"M224.1 141c-63.6 0-114.9 51.3-114.9 114.9s51.3 114.9 114.9 114.9S339 319.5 339 255.9 287.7 141 224.1 141zm0 189.6c-41.1 0-74.7-33.5-74.7-74.7s33.5-74.7 74.7-74.7 74.7 33.5 74.7 74.7-33.6 74.7-74.7 74.7zm146.4-194.3c0 14.9-12 26.8-26.8 26.8-14.9 0-26.8-12-26.8-26.8s12-26.8 26.8-26.8 26.8 12 26.8 26.8zm76.1 27.2c-1.7-35.9-9.9-67.7-36.2-93.9-26.2-26.2-58-34.4-93.9-36.2-37-2.1-147.9-2.1-184.9 0-35.8 1.7-67.6 9.9-93.9 36.1s-34.4 58-36.2 93.9c-2.1 37-2.1 147.9 0 184.9 1.7 35.9 9.9 67.7 36.2 93.9s58 34.4 93.9 36.2c37 2.1 147.9 2.1 184.9 0 35.9-1.7 67.7-9.9 93.9-36.2 26.2-26.2 34.4-58 36.2-93.9 2.1-37 2.1-147.8 0-184.8zM398.8 388c-7.8 19.6-22.9 34.7-42.6 42.6-29.5 11.7-99.5 9-132.1 9s-102.7 2.6-132.1-9c-19.6-7.8-34.7-22.9-42.6-42.6-11.7-29.5-9-99.5-9-132.1s-2.6-102.7 9-132.1c7.8-19.6 22.9-34.7 42.6-42.6 29.5-11.7 99.5-9 132.1-9s102.7-2.6 132.1 9c19.6 7.8 34.7 22.9 42.6 42.6 11.7 29.5 9 99.5 9 132.1s2.7 102.7-9 132.1z"})})}function SC({fit:e,format:t,height:r,quality:n,src:a,width:o,alt:i="",loading:s="lazy",decoding:c="async",...l}){return p("img",{src:Fe(()=>Zg(a,{fit:e,format:t,height:r,quality:n,width:o}),[e,t,r,n,a,o]),width:o,height:r,alt:i,loading:s,decoding:c,...l})}function xC({className:e,width:t="1em",height:r="1em",...n}){return p("svg",{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round",width:t,height:r,role:"img","aria-hidden":n["aria-label"]?void 0:!0,className:e,...n,children:p("path",{d:"M6.335 5.144c-1.654 -1.199 -4.335 -2.127 -4.335 .826c0 .59 .35 4.953 .556 5.661c.713 2.463 3.13 2.75 5.444 2.369c-4.045 .665 -4.889 3.208 -2.667 5.41c1.03 1.018 1.913 1.59 2.667 1.59c2 0 3.134 -2.769 3.5 -3.5c.333 -.667 .5 -1.167 .5 -1.5c0 .333 .167 .833 .5 1.5c.366 .731 1.5 3.5 3.5 3.5c.754 0 1.637 -.571 2.667 -1.59c2.222 -2.203 1.378 -4.746 -2.667 -5.41c2.314 .38 4.73 .094 5.444 -2.369c.206 -.708 .556 -5.072 .556 -5.661c0 -2.953 -2.68 -2.025 -4.335 -.826c-2.293 1.662 -4.76 5.048 -5.665 6.856c-.905 -1.808 -3.372 -5.194 -5.665 -6.856z"})})}function EC({className:e,width:t="1em",height:r="1em",...n}){return _("svg",{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round",width:t,height:r,role:"img","aria-hidden":n["aria-label"]?void 0:!0,className:e,...n,children:[p("path",{d:"M4 4l11.733 16h4.267l-11.733 -16z"}),p("path",{d:"M4 20l6.768 -6.768m2.46 -2.46l6.772 -6.772"})]})}function h1({className:e,width:t="1em",height:r="1em",...n}){return p("svg",{viewBox:"0 0 461 461",fill:"currentColor",width:t,height:r,role:"img","aria-hidden":n["aria-label"]?void 0:!0,className:e,...n,xmlns:"http://www.w3.org/2000/svg",children:p("path",{d:"M365.257,67.393H95.744C42.866,67.393,0,110.259,0,163.137v134.728 c0,52.878,42.866,95.744,95.744,95.744h269.513c52.878,0,95.744-42.866,95.744-95.744V163.137 C461.001,110.259,418.135,67.393,365.257,67.393z M300.506,237.056l-126.06,60.123c-3.359,1.602-7.239-0.847-7.239-4.568V168.607 c0-3.774,3.982-6.22,7.348-4.514l126.06,63.881C304.363,229.873,304.298,235.248,300.506,237.056z"})})}var g1=Bt(null);function v1(){const e=qt(g1);if(!e)throw new Error("Collapsible components must be used within a Collapsible");return e}function y1({open:e,defaultOpen:t=!1,onOpenChange:r,children:n,className:a}){const[o,i]=H(t),s=e!==void 0,c=s?e:o,l=ne(()=>{s?r?.(!c):i(u=>{const f=!u;return r?.(f),f})},[s,c,r]),d=Fe(()=>({open:c,toggle:l}),[c,l]);return p(g1.Provider,{value:d,children:p("div",{className:a,"data-collapsible":!0,children:typeof n=="function"?n(d):n})})}function tm({children:e,className:t,onClick:r,onMouseDown:n,type:a="button",...o}){const{open:i,toggle:s}=v1();return p("button",{...o,type:a,"aria-expanded":i,onMouseDown:c=>{c.stopPropagation(),n?.(c)},onClick:c=>{c.stopPropagation(),s(),r?.(c)},className:z("cursor-pointer select-none",t),"data-collapsible-trigger":!0,children:e})}function b1({children:e,className:t}){const{open:r}=v1();return p("div",{className:z("grid transition-[grid-template-rows] duration-200 ease-out",r?"grid-rows-[1fr]":"grid-rows-[0fr]",t),children:p("div",{className:"overflow-hidden",children:e})})}var w1={framework:"framework",state:"state",ui:"headlessUI",performance:"performance",tooling:"tooling"},TC={framework:"framework",state:"state",headlessUI:"ui",performance:"performance",tooling:"tooling"},hY=Object.keys(w1),gY={framework:{slug:"framework",groupId:"framework",name:qn.framework,shortName:"Framework",headline:"Router-first apps, from SPA to full-stack",intro:"Typed routes, URL state, loaders, links, SSR, streaming, server functions, and deployable output from one app model.",topPickId:"start",accent:{from:"from-teal-500",to:"to-cyan-500",text:"text-cyan-600 dark:text-cyan-400"}},state:{slug:"state",groupId:"state",name:qn.state,shortName:"Data & State",headline:"The right state layer for every kind of data",intro:"Four layers for apps that cache remote truth, sync collections, react locally, and talk to models.",topPickId:"query",accent:{from:"from-cyan-500",to:"to-emerald-500",text:"text-cyan-600 dark:text-cyan-400"}},ui:{slug:"ui",groupId:"headlessUI",name:qn.headlessUI,shortName:"UI & UX",headline:"Headless engines for the UI users actually touch",intro:"Tables, forms, and hotkeys that leave markup and styling in your hands while handling row models, field state, and keyboard flow.",topPickId:"table",accent:{from:"from-blue-500",to:"to-yellow-500",text:"text-blue-600 dark:text-blue-400"}},performance:{slug:"performance",groupId:"performance",name:qn.performance,shortName:"Performance",headline:"Render less, schedule less, stay fast",intro:"Virtualization and pacing primitives for large interfaces, event-heavy inputs, queues, batches, and rate limits.",topPickId:"virtual",accent:{from:"from-purple-500",to:"to-lime-500",text:"text-purple-600 dark:text-purple-400"}},tooling:{slug:"tooling",groupId:"tooling",name:qn.tooling,shortName:"Tooling",headline:"The tools around TanStack apps and packages",intro:"The workbench around TanStack apps and packages: inspect libraries, scaffold projects, publish packages, and preserve package guidance.",topPickId:"devtools",accent:{from:"from-indigo-500",to:"to-orange-500",text:"text-indigo-600 dark:text-indigo-400"}}};function vY(e){return[...Wg[w1[e]]]}function sa(e,t){return new Intl.NumberFormat(void 0,{style:"currency",currency:t,minimumFractionDigits:0,maximumFractionDigits:0}).format(typeof e=="string"?Number(e):e)}var IC=4096;function rm(e){if(!(typeof e!="number"||!Number.isFinite(e)))return Math.min(IC,Math.max(1,Math.round(e)))}function ca(e,t={}){let r;try{r=new URL(e)}catch{return""}if(r.protocol!=="https:"&&r.protocol!=="http:"||r.username||r.password)return"";const n=rm(t.width),a=rm(t.height);return n&&r.searchParams.set("width",String(n)),a&&r.searchParams.set("height",String(a)),t.format&&r.searchParams.set("format",t.format),t.crop&&r.searchParams.set("crop",t.crop),r.toString()}var CC=ws(()=>k(()=>import("./SearchModal-DBYSK44L.js").then(e=>({default:e.AiDock})),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11]))),RC=ws(()=>k(()=>import("./NavbarAuthControls-BxvnTsXr.js").then(e=>({default:e.NavbarAuthControls})),__vite__mapDeps([12,3,4,5,1,13,14]))),$C=({title:e})=>_($e,{to:"/",className:z("inline-flex items-center gap-1.5 cursor-pointer",e?"shrink-0":""),children:[_("div",{className:"w-[30px] inline-grid items-center grid-cols-1 grid-rows-1 [&>*]:transition-opacity [&>*]:duration-1000",children:[p(SC,{src:"/images/logos/logo-color-100.png",alt:"",width:30,quality:90,className:"row-start-1 col-start-1 w-full group-hover:opacity-0"}),p("img",{src:"/images/logos/logo-black.svg",alt:"",className:"row-start-1 col-start-1 w-full dark:opacity-0 opacity-0 group-hover:opacity-100"}),p("img",{src:"/images/logos/logo-white.svg",alt:"",className:"row-start-1 col-start-1 w-full light:opacity-0 dark:block opacity-0 group-hover:opacity-100"})]}),p("div",{children:"TanStack"})]}),nm=6,am="hidden min-[900px]:flex",om="min-[900px]:hidden",PC="hidden min-[1120px]:flex",AC=["framework","state","headlessUI","performance","tooling"],LC=[["framework","state"],["headlessUI","performance"],["tooling"]],im=[{key:"libraries",label:"Libraries",to:"/libraries",sections:[]},{key:"learn",label:"Blog",to:"/blog",sections:[{label:"Resources",items:[{label:"Blog",to:"/blog",description:"Release notes, architecture notes, and essays.",icon:p0},{label:"YouTube",to:"https://youtube.com/@tan_stack",description:"The official TanStack channel.",icon:h1}]}],rail:{eyebrow:"Workshops",title:"Learn from maintainers",description:"Remote and in-person TanStack workshops for teams that need depth.",item:{label:"Professional Workshops",to:"/workshops",icon:ac}}},{key:"community",label:"Community",sections:[{label:"Channels",items:[{label:"Discord",to:"https://tlinz.com/discord",description:"Community support and real-time discussion.",icon:m1},{label:"GitHub",to:"https://github.com/TanStack",description:"Source, issues, discussions, and releases.",icon:Ms}]},{label:"People & Work",items:[{label:"Maintainers",to:"/maintainers",description:"Meet the people maintaining the stack.",icon:Ib},{label:"Contributors",to:"/maintainers",description:"Core, library, and community contributors.",icon:ac},{label:"Showcase",to:"/showcase",description:"Products and teams building with TanStack.",icon:u0}]}]},{key:"tools",label:"Tools",sections:[{label:"Tools",items:[{label:"Builder",to:"/builder",description:"Generate TanStack app starters.",badge:"Alpha",icon:kb},{label:"Stats",to:"/stats/npm",description:"NPM and ecosystem usage data.",icon:$b}]}]},{key:"merch",label:"Merch",to:"/shop",sections:[]},{key:"support",label:"Support",sections:[{label:"Support",items:[{label:"Support Overview",to:"/support",description:"Find the right support path.",icon:f0},{label:"Partners",to:"/partners",description:"Companies supporting TanStack.",icon:Rb},{label:"OSS Sponsors",to:"/",hash:"sponsors",description:"Sponsors keeping TanStack open source.",icon:jd},{label:"Enterprise Support",to:"/paid-support",description:"Private consulting and expert support.",icon:ac},{label:"Contact",to:"mailto:support@tanstack.com",description:"Get in touch with the TanStack team.",icon:qd}]},{label:"About",items:[{label:"Ethos",to:"/ethos",description:"How we think about open source and products.",icon:jd},{label:"Tenets",to:"/tenets",description:"The values that shape TanStack libraries.",icon:Pi},{label:"Brand Guide",to:"/brand-guide",description:"Logos, colors, and brand usage.",icon:Fb}]}],rail:{eyebrow:"Partners",title:"Work with TanStack",description:"Sponsorships, placements, and partner pages.",item:{label:"Partnership Inquiry",to:"mailto:partners@tanstack.com?subject=TanStack Partnership Inquiry",icon:qd}}}];function NC(e){return Gg(e)}function DC(e){return e.name.replace(/^TanStack\s+/,"")}function OC(e){return e.startsWith("http")||e.startsWith("mailto:")}function MC(e){return`${e.to}/latest/docs`}function FC(){return AC.map(e=>{const t=Wg[e].filter(NC);return{id:e,label:qn[e],libraries:t}}).filter(e=>e.libraries.length>0)}function zC(e){const t=new Map(e.map(r=>[r.id,r]));return LC.map(r=>r.flatMap(n=>{const a=t.get(n);return a?[a]:[]})).filter(r=>r.length>0)}function VC(){const{isAiDockOpen:e}=Ru(),[t,r]=H(e);return U(()=>{e&&r(!0)},[e]),!t&&!e?null:p(fa,{fallback:null,children:p(CC,{})})}function BC({children:e}){const t=Hc(),r=b0(),{Title:n}=Fe(()=>({Title:[...t].reverse().find(y=>y.staticData.Title)?.staticData.Title??null}),[t]),a=V(null),o=V(null);U(()=>{const y=o.current;if(!y)return;const S=()=>{const E=Math.ceil(y.getBoundingClientRect().width+32);y.style.setProperty("--ts-primary-nav-target-width",`${E}px`)};let w=null;const C=()=>{w===null&&(w=window.requestAnimationFrame(()=>{w=null,S()}))};S();const T=typeof window.ResizeObserver=="function"?new window.ResizeObserver(C):null;return T?.observe(y),window.addEventListener("resize",C),()=>{w!==null&&window.cancelAnimationFrame(w),T?.disconnect(),window.removeEventListener("resize",C)}},[]);const[i,s]=H(!1),[c,l]=H(null),[d,u]=H(!1);U(()=>{s(!1)},[r.href]);const f=ne(()=>{if(typeof document>"u")return;const y=document.activeElement;y instanceof HTMLElement&&a.current?.contains(y)&&y.blur()},[]),m=ne(y=>{l(y),f()},[f]),h=ne(()=>{u(!0)},[]);U(()=>{if(!i)return;const y=S=>{S.key==="Escape"&&s(!1)};return document.addEventListener("keydown",y),()=>{document.removeEventListener("keydown",y)}},[i]);const g=y=>_($e,{to:"/login","aria-label":"Log In",className:z("flex shrink-0 items-center gap-1 rounded-md px-2 py-1.5 whitespace-nowrap","bg-black dark:bg-white text-white dark:text-black","hover:bg-gray-800 dark:hover:bg-gray-200","transition-colors duration-200 text-xs font-medium",y),children:[p(Ab,{className:"w-3.5 h-3.5"}),p("span",{className:"hidden min-[430px]:inline",children:"Log In"})]}),v=y=>d?p(fa,{fallback:g(y),children:p(RC,{className:y})}):g(y),b=p(YC,{}),I=i;return _(fe,{children:[_("div",{className:z("w-full h-[var(--navbar-height)] p-2 fixed top-0 z-[100] bg-white/90 dark:bg-black/90 backdrop-blur-lg","flex items-center justify-between gap-2 min-[1120px]:gap-3","border-b border-gray-500/20"),ref:a,children:[_("div",{className:"flex min-w-0 flex-1 items-center gap-2 min-[1120px]:gap-3",children:[_("div",{className:"flex items-center gap-2 font-black text-xl uppercase min-w-0",children:[p(f1,{className:z("flex items-center group shrink-0"),children:p($C,{title:n})}),n?p("div",{className:"truncate",children:p(n,{})}):null]}),p("nav",{ref:o,"aria-label":"Primary navigation",className:z(am,"relative shrink-0 items-center gap-0"),children:im.map(y=>p(HC,{group:y,dismissed:c===y.key,onDismiss:()=>m(y.key),onResetDismissed:()=>{l(S=>S===y.key?null:S)}},y.key))})]}),_("div",{className:"flex shrink-0 items-center gap-1.5 sm:gap-2",children:[p("div",{className:PC,children:b}),p(zT,{}),p(FT,{}),p(BT,{iconOnly:!0}),p(HT,{}),p("div",{className:z(am,"items-center gap-2"),onFocusCapture:h,onPointerEnter:h,onTouchStart:h,children:v()}),p("button",{type:"button","aria-label":i?"Close Menu":"Open Menu","aria-expanded":i,"aria-controls":"primary-mobile-menu",className:z("inline-flex h-9 w-9 items-center justify-center rounded-md","text-gray-700 transition-colors hover:bg-gray-500/10","dark:text-gray-200",om),onClick:()=>s(y=>!y),children:i?p(h0,{className:"h-5 w-5"}):p(vb,{className:"h-5 w-5"})})]})]}),p(y1,{open:i,onOpenChange:s,className:om,children:p(b1,{className:z("fixed left-0 right-0 top-[var(--navbar-height)] z-[90]","motion-reduce:transition-none",i?"pointer-events-auto":"pointer-events-none"),children:p("div",{id:"primary-mobile-menu","data-mobile-menu":!0,"aria-hidden":!i,className:z("ts-glass-menu max-h-[calc(100dvh-var(--navbar-height))] overflow-y-auto","border-b border-white/45 bg-white/80 text-base shadow-2xl shadow-black/15 backdrop-blur-2xl backdrop-saturate-150","dark:border-white/10 dark:bg-black/70 dark:shadow-black/50"),children:_("div",{className:"border-t border-white/30 dark:border-white/10",children:[_("div",{className:"flex items-center justify-end gap-2 p-2",onFocusCapture:h,onPointerEnter:h,onTouchStart:h,children:[b,v("h-9 px-3 text-sm")]}),p("nav",{className:"grid gap-1.5 px-2 pb-2","aria-label":"Mobile navigation",children:im.map(y=>p(jC,{group:y,onNavigate:()=>s(!1)},y.key))})]})})})}),p("div",{"aria-hidden":"true","data-site-menu-tint":!0,className:z("pointer-events-none fixed inset-x-0 bottom-0 top-[var(--navbar-height)] z-[80]","bg-white/45 transition-opacity duration-200 motion-reduce:transition-none dark:bg-black/45",I?"opacity-100":"opacity-0")}),p("div",{"data-site-content":!0,className:z(`min-h-[calc(100dvh-var(--navbar-height))] flex flex-col min-w-0 w-full transition-[filter] duration-200 motion-reduce:transition-none pt-[var(--navbar-height)]`,I?"blur-[4px]":"filter-none"),children:p("div",{className:"flex-1 min-w-0 flex flex-col w-full min-h-0",children:e})}),p(VC,{})]})}function HC({group:e,dismissed:t,onDismiss:r,onResetDismissed:n}){const a=z("ts-mega-trigger inline-flex items-center gap-1 rounded-md px-2 py-2 text-xs font-medium min-[1120px]:gap-1.5 min-[1120px]:px-3 min-[1120px]:text-[13px]","text-gray-700 transition-colors hover:bg-gray-500/10 hover:text-gray-950","dark:text-gray-300 dark:hover:text-white");return _("div",{className:"ts-mega-trigger-wrap","data-menu-key":e.key,"data-menu-dismissed":t?"true":void 0,onPointerLeave:n,onFocusCapture:n,children:[e.to?p($e,{to:e.to,"data-menu-key":e.key,className:a,onClick:r,preload:"intent",children:p("span",{children:e.label})}):p("button",{type:"button","data-menu-key":e.key,className:a,onMouseDown:o=>{o.preventDefault()},children:p("span",{children:e.label})}),p(UC,{group:e,onNavigate:r})]})}function UC({group:e,onNavigate:t}){return p("div",{className:"ts-mega-dropdown",children:p("div",{className:z("ts-mega-dropdown-panel ts-glass-menu rounded-xl","w-max min-w-[var(--ts-primary-nav-target-width,0px)] max-w-[calc(100vw-2rem)]","border border-white/45 bg-white/80 p-4 shadow-2xl shadow-black/15 backdrop-blur-2xl backdrop-saturate-150","dark:border-white/10 dark:bg-black/70 dark:shadow-black/50"),children:p(_1,{group:e,onNavigate:t,variant:"desktop"})})})}function jC({group:e,onNavigate:t}){return p(y1,{className:"overflow-hidden rounded-lg border border-gray-500/10 bg-white/35 dark:border-white/10 dark:bg-white/[0.03]",children:({open:r})=>_(fe,{children:[e.to?p("div",{className:"flex items-center",children:p(tm,{"aria-label":`${r?"Collapse":"Expand"} ${e.label}`,className:z("flex min-w-0 flex-1 items-center px-3 py-3 text-left font-black text-gray-800","hover:text-gray-950 focus:outline-none dark:text-gray-200 dark:hover:text-white",r&&"text-gray-950 dark:text-white"),children:p("span",{className:"min-w-0 flex-1 truncate",children:e.label})})}):p(tm,{className:z("flex w-full items-center px-3 py-3 text-left font-black text-gray-800","hover:text-gray-950 dark:text-gray-200 dark:hover:text-white",r&&"text-gray-950 dark:text-white"),children:e.label}),p(b1,{className:"border-t border-gray-500/10 motion-reduce:transition-none dark:border-white/10",children:p("div",{className:"px-2 pb-3 pt-1",children:p(_1,{group:e,onNavigate:t,variant:"mobile"})})})]})})}function _1({group:e,onNavigate:t,variant:r}){return e.key==="libraries"?p(qC,{onNavigate:t,variant:r}):e.key==="merch"?p(WC,{onNavigate:t,variant:r}):_("div",{className:z(r==="desktop"?e.rail?"grid w-max items-start gap-4 grid-cols-[max-content_260px]":"grid w-max gap-3":"grid gap-3"),children:[p("div",{children:p("div",{className:z("grid gap-3",r==="desktop"&&e.sections.length>1&&"grid-cols-[repeat(2,260px)]"),children:e.sections.map((n,a)=>_("div",{className:z(r==="mobile"&&a===0&&"pt-1.5",r==="mobile"&&a>0&&"pt-3"),children:[p("div",{className:"mb-2 px-2 text-xs font-black uppercase text-gray-500 dark:text-gray-400",children:n.label}),p("div",{className:z("grid gap-1",r==="desktop"&&e.key==="learn"&&"grid-cols-[repeat(2,260px)]",r==="desktop"&&e.key==="tools"&&"grid-cols-[repeat(2,260px)]"),children:n.items.map(o=>p(so,{item:o,onNavigate:t,variant:r},`${o.label}-${o.to}-${o.hash??""}`))})]},n.label))})}),e.rail?p(KC,{rail:e.rail,onNavigate:t,variant:r}):null]})}function qC({onNavigate:e,variant:t}){const r=FC(),n=zC(r),a={label:"All Libraries",to:"/libraries",description:"Browse the full set of public packages.",icon:hb};return p("div",{className:z(t==="desktop"?"grid gap-4":"grid gap-3"),children:p("div",{children:_("div",{className:z(t==="desktop"?"grid w-max max-h-[min(62dvh,560px)] grid-cols-[repeat(3,max-content)] items-start justify-start gap-x-8 overflow-y-auto pr-2":"grid gap-3"),children:[t==="mobile"?p(so,{item:a,onNavigate:e,variant:"mobile",compact:!0}):null,t==="desktop"?n.map(o=>p("div",{className:"grid content-start gap-y-5",children:o.map(i=>p(sm,{group:i,onNavigate:e,variant:"desktop"},i.id))},o.map(i=>i.id).join("-"))):r.map(o=>p(sm,{group:o,onNavigate:e,variant:"mobile"},o.id))]})})})}function sm({group:e,onNavigate:t,variant:r}){const n=TC[e.id];return _("section",{className:z("break-inside-avoid",r==="desktop"?"[break-inside:avoid]":"pb-3"),children:[p("div",{className:"mb-1.5 px-1",children:r==="desktop"?p($e,{to:"/stack/$category",params:{category:n},onClick:t,className:"inline-flex rounded px-1 py-0.5 text-xs font-black uppercase text-gray-500 hover:bg-gray-500/10 hover:text-gray-950 focus:bg-gray-500/10 focus:text-gray-950 focus:outline-none dark:text-gray-400 dark:hover:text-white dark:focus:text-white",preload:"intent",children:e.label}):p("div",{className:"px-1 py-0.5 text-xs font-black uppercase text-gray-500 dark:text-gray-400",children:e.label})}),p("div",{className:"grid gap-0.5",children:e.libraries.map(a=>p(GC,{library:a,onNavigate:t},a.id))})]})}function GC({library:e,onNavigate:t}){const r=DC(e),n=MC(e);return _("div",{"data-library-menu-item":!0,className:"flex items-center gap-1.5",children:[_($e,{to:e.to,onClick:t,className:"group/library flex min-w-0 flex-1 items-center gap-2 rounded-lg px-2 py-2 text-sm font-black text-gray-900 hover:bg-gray-500/10 focus:bg-gray-500/10 focus:outline-none dark:text-gray-100",preload:"intent",children:[p("span",{className:z("h-4 w-3.5 shrink-0 rounded-[5px] border border-white/30",e.bgStyle)}),_("span",{className:"flex min-w-0 flex-1 items-center gap-1.5",children:[p("span",{className:"min-w-0 truncate",children:r}),e.badge?p("span",{"data-library-badge":!0,className:z("invisible inline-flex shrink-0 rounded-md border border-current px-1.5 py-0.5 text-[0.58rem] font-black uppercase leading-none","group-hover/library:visible group-focus-within/library:visible",e.textStyle),children:e.badge}):null]})]}),p("div",{className:"flex shrink-0 items-center gap-1",children:p($e,{to:n,onClick:t,className:"rounded-lg px-2 py-2 text-xs font-bold text-gray-600 hover:bg-gray-500/10 hover:text-gray-950 focus:bg-gray-500/10 focus:text-gray-950 focus:outline-none dark:text-gray-400 dark:hover:text-white dark:focus:text-white",preload:"intent",children:"Docs"})})]})}function WC({onNavigate:e,variant:t}){const r=V(null),[n,a]=H(!1),[o,i]=H([]),[s,c]=H(!0);U(()=>{const d=r.current,u=(t==="desktop"?d?.closest(".ts-mega-trigger-wrap"):null)??d;if(!u)return;const f=()=>{a(!0)};return u.addEventListener("pointerenter",f),u.addEventListener("focusin",f),()=>{u.removeEventListener("pointerenter",f),u.removeEventListener("focusin",f)}},[t]),U(()=>{if(!n)return;let d=!1;async function u(){c(!0);try{const f=await zu({data:{first:nm,sortKey:"CREATED_AT",reverse:!0}});d||i(f.nodes)}catch{d||i([])}finally{d||c(!1)}}return u(),()=>{d=!0}},[n]);const l={label:"All Merch",to:"/shop",description:"Browse all TanStack apparel, accessories, and stickers.",icon:Gl};return _("div",{ref:r,className:z(t==="desktop"?"grid gap-4":"grid gap-3"),children:[_("section",{children:[p("div",{className:"mb-2 px-2 text-xs font-black uppercase text-gray-500 dark:text-gray-400",children:"Recent Products"}),p("div",{className:z("grid gap-1",t==="desktop"&&"md:grid-cols-2"),children:n&&s?Array.from({length:nm},(d,u)=>_("div",{className:z("rounded-lg px-2 py-1.5",t==="desktop"?"flex w-44 items-center gap-2":"flex items-center gap-2"),"aria-hidden":"true",children:[p("div",{className:z("shrink-0 animate-pulse rounded-md bg-gray-200 dark:bg-gray-800",t==="desktop"?"h-10 w-10":"h-11 w-11")}),_("div",{className:"min-w-0 flex-1",children:[p("div",{className:"h-3 w-3/4 animate-pulse rounded bg-gray-200 dark:bg-gray-800"}),p("div",{className:"mt-1.5 h-2.5 w-1/3 animate-pulse rounded bg-gray-200 dark:bg-gray-800"})]})]},u)):o.map(d=>p(ZC,{product:d,onNavigate:e,variant:t},d.id))})]}),p(so,{item:l,onNavigate:e,variant:t,compact:!0})]})}function ZC({product:e,onNavigate:t,variant:r}){const n=e.featuredImage,a=e.priceRange.minVariantPrice;return _($e,{to:"/shop/products/$handle",params:{handle:e.handle},onClick:t,className:z("group flex items-center gap-2 rounded-lg px-2 py-1.5 text-left hover:bg-gray-500/10 focus:bg-gray-500/10 focus:outline-none",r==="desktop"&&"w-44",r==="mobile"&&"py-2"),preload:"intent",children:[p("span",{className:z("block overflow-hidden rounded-md bg-gray-100 dark:bg-gray-900",r==="desktop"?"h-10 w-10 shrink-0":"h-11 w-11 shrink-0"),children:n?p("img",{src:ca(n.url,{width:160,format:"webp"}),alt:n.altText??e.title,className:"h-full w-full object-cover transition-transform duration-200 group-hover:scale-105",loading:"lazy"}):p("span",{className:"flex h-full w-full items-center justify-center text-gray-400",children:p(Gl,{className:"h-5 w-5"})})}),_("span",{className:"block min-w-0",children:[p("span",{className:"block truncate text-sm font-bold text-gray-950 dark:text-white",children:e.title}),p("span",{className:"mt-0.5 block text-xs text-gray-600 dark:text-gray-400",children:sa(a.amount,a.currencyCode)})]})]})}function KC({rail:e,onNavigate:t,variant:r}){return r==="mobile"?p("div",{className:"pt-1",children:p(so,{item:e.item,onNavigate:t,variant:"mobile",compact:!0})}):_("aside",{className:"w-[260px] rounded-lg border border-gray-200 bg-gray-50 p-4 dark:border-gray-800 dark:bg-gray-950",children:[p("div",{className:"text-xs font-black uppercase text-gray-500 dark:text-gray-400",children:e.eyebrow}),p("div",{className:"mt-2 text-base font-black text-gray-950 dark:text-white",children:e.title}),p("p",{className:"mt-2 text-sm leading-6 text-gray-600 dark:text-gray-400",children:e.description}),p("div",{className:"mt-4",children:p(so,{item:e.item,onNavigate:t,variant:"desktop",compact:!0})})]})}function so({item:e,onNavigate:t,variant:r,compact:n}){const a=e.icon,o=OC(e.to),i=z("group flex items-start gap-3 rounded-lg px-2 py-2.5 text-left","hover:bg-gray-500/10 focus:bg-gray-500/10 focus:outline-none",n&&"bg-white dark:bg-black/40",r==="desktop"&&!n&&"w-[260px]",r==="mobile"&&"px-2 py-3"),s=_(fe,{children:[a?p("span",{className:"mt-0.5 inline-flex h-7 w-7 shrink-0 items-center justify-center rounded-md bg-gray-100 text-gray-700 dark:bg-gray-900 dark:text-gray-300",children:p(a,{className:"h-4 w-4"})}):null,_("span",{className:"min-w-0 flex-1",children:[_("span",{className:"flex items-center gap-2",children:[p("span",{className:"font-bold text-gray-950 dark:text-white",children:e.label}),e.badge?p("span",{className:"rounded-md border border-green-500/50 px-1.5 py-0.5 text-[0.6rem] font-black uppercase leading-none text-green-600 dark:text-green-400",children:e.badge}):null,o&&!e.to.startsWith("mailto:")?p(Sb,{className:"h-3 w-3 text-gray-400 group-hover:text-gray-600 dark:group-hover:text-gray-300"}):null]}),e.description?p("span",{className:z("mt-0.5 block text-gray-600 dark:text-gray-400",r==="desktop"?"text-xs leading-4":"text-sm leading-5"),children:e.description}):null]})]});return o?p("a",{href:e.to,target:e.to.startsWith("mailto:")?void 0:"_blank",rel:e.to.startsWith("mailto:")?void 0:"noopener noreferrer",className:i,onClick:t,children:s}):p($e,{to:e.to,hash:e.hash,className:i,onClick:t,preload:"intent",children:s})}var cm=[{label:"GitHub",href:"https://github.com/TanStack",Icon:Ms},{label:"Discord",href:"https://tlinz.com/discord",Icon:m1},{label:"YouTube",href:"https://youtube.com/@tan_stack",Icon:h1},{label:"X (Twitter)",href:"https://x.com/tan_stack",Icon:EC},{label:"Bluesky",href:"https://bsky.app/profile/tanstack.com",Icon:xC},{label:"Instagram",href:"https://instagram.com/tan_stack",Icon:kC}];function YC(){const e=cm.slice(0,3);return _(u1,{children:[p(d1,{children:p("button",{type:"button","aria-label":"TanStack social channels",title:"Social channels",className:"inline-flex h-9 items-center px-0",children:p("span",{className:"relative inline-flex items-center",children:e.map(({label:t,Icon:r},n)=>p("span",{className:z("inline-flex h-7 w-7 items-center justify-center rounded-full border border-gray-200 bg-white text-gray-600 shadow-sm transition-transform dark:border-gray-700 dark:bg-gray-900 dark:text-gray-300",n>0&&"-ml-3"),style:{zIndex:e.length-n},children:p(r,{className:"h-3 w-3"})},t))})})}),p(p1,{align:"end",sideOffset:8,className:"min-w-44",children:cm.map(({label:t,href:r,Icon:n})=>p(Rl,{asChild:!0,children:_("a",{href:r,target:"_blank",rel:"noopener noreferrer","aria-label":`TanStack on ${t}`,children:[p(n,{className:"h-3.5 w-3.5"}),p("span",{children:t})]})},r))})]})}var XC={trackEvent(e,t){typeof window>"u"||!window.gtag||window.gtag("event",e,t)}},yY={mode_used:"none",idea_used:"none"};function JC(e){return e==="/"?"home":e.startsWith("/partners/")?e==="/partners/"||e==="/partners"?"partners_index":"partner_detail":e.startsWith("/blog/")?e==="/blog/"||e==="/blog"?"blog_index":"blog_post":e.startsWith("/docs/")||e.includes("/docs/")?"docs":e.startsWith("/partners-embed")?"partners_embed":e==="/builder"||e==="/builder/"||e.startsWith("/builder/")?"application_builder":"page"}function k1(e){if(typeof e=="boolean"||typeof e=="number"||typeof e=="string")return e;if(e!=null){if(Array.isArray(e))return e.map(t=>k1(t)).filter(t=>t!==void 0).join(",");try{return JSON.stringify(e)}catch{return String(e)}}}function QC(e){const t={};typeof window<"u"&&(t.page_location=window.location.href,t.page_path=window.location.pathname,t.page_title=document.title,t.page_type=JC(window.location.pathname));for(const[r,n]of Object.entries(e)){const a=k1(n);a!==void 0&&(t[r]=a)}return t}var eR=[XC];function S1(e,t){const r=QC(t);for(const n of eR)try{n.trackEvent(e,r)}catch{}}function tR(e){S1("page_view",{page_location:window.location.href,page_path:e,page_title:document.title})}function bY({enabled:e=!0,event:t,props:r,threshold:n=.5}){const a=V(null),o=V(!1),i=V(r);return U(()=>{i.current=r},[r]),U(()=>{if(!e||o.current)return;const s=a.current;if(!s)return;const c=()=>{o.current||(o.current=!0,S1(t,i.current))};if(typeof IntersectionObserver>"u"){c();return}const l=new IntersectionObserver(d=>{for(const u of d)if(u.isIntersecting&&!(u.intersectionRatio{l.disconnect()}},[e,t,n]),a}var rR=["gold","silver","bronze"],lm={gold:0,silver:1,bronze:2},x1=[{category:"deployment",partnerId:"cloudflare",placementRank:0}];function es(e){return e.tier??"bronze"}function nR(){const e=globalThis.crypto;if(e?.randomUUID)return e.randomUUID();if(e?.getRandomValues){const t=new Uint32Array(4);return e.getRandomValues(t),Array.from(t,r=>r.toString(36)).join("")}return`${Date.now().toString(36)}${Math.random().toString(36).slice(2)}`}function wY(e,t){return`${e}:${t}`}function aR({category:e,orderStrategy:t,seed:r,surface:n}){return{category:e,orderStrategy:t,rotationSeed:t==="tier-rotated"?r??n:void 0}}function um(e){let t=2166136261;for(let r=0;r>>0}function E1(e,t){const r=e.name.localeCompare(t.name);return r!==0?r:e.id.localeCompare(t.id)}function dm(e,t){if(e.category===t)return x1.find(r=>r.category===t&&r.partnerId===e.id)?.placementRank}function oR(e,t,r){return r.category?r.category:e.category===t.category?e.category:void 0}function iR(e,t,r){const n=oR(e,t,r);if(!n)return 0;const a=dm(e,n),o=dm(t,n);return a!==void 0&&o!==void 0?a-o:a!==void 0?-1:o!==void 0?1:0}function sR(e,t){let r=e;for(const n of x1){if(!(t.category===n.category||r.some(c=>c.category===n.category&&c.id!==n.partnerId)))continue;const a=[],o=[],i=[];let s;for(const c of r){if(c.category===n.category&&c.id===n.partnerId){s=c;continue}if(s){i.push(c);continue}if(c.category===n.category){o.push(c);continue}a.push(c)}!s||o.length===0||(r=[...a,s,...o,...i])}return r}function cR(e,t){const r=t.score-e.score;return r!==0?r:E1(e,t)}function lR(e,t,r){const n=typeof e.placementWeight=="number"&&e.placementWeight>0?e.placementWeight:1,a=typeof t.placementWeight=="number"&&t.placementWeight>0?t.placementWeight:1,o=(um(`${r}:${e.id}`)+1)/4294967297,i=(um(`${r}:${t.id}`)+1)/4294967297,s=-Math.log(o)/n- -Math.log(i)/a;return s!==0?s:E1(e,t)}function uR(e,t,r){const n=lm[es(e)]-lm[es(t)];if(n!==0)return n;const a=iR(e,t,r);return a!==0?a:r.orderStrategy==="tier-rotated"&&r.rotationSeed?lR(e,t,r.rotationSeed):cR(e,t)}function T1(e,t){return sR([...e].sort((r,n)=>uR(r,n,t)),t)}function _Y(e,t){return rR.map(r=>({tier:r,partners:T1(e.filter(n=>es(n)===r),t)})).filter(r=>r.partners.length>0)}function kY(e,t){return{order_strategy:t.orderStrategy,partner_tier:es(e),rotation_seed:t.rotationSeed}}var dR="G-JMT1Z50SPS",I1="/_a",pR=`${I1}/gtag.js`,fR="(function(){try{var t=localStorage.getItem('theme')||'auto';var v=['light','dark','auto'].includes(t)?t:'auto';var r=v==='auto'?(matchMedia('(prefers-color-scheme: dark)').matches?'dark':'light'):v;document.documentElement.classList.add(r);if(v==='auto')document.documentElement.classList.add('auto');document.documentElement.style.colorScheme=r}catch(e){var r=matchMedia('(prefers-color-scheme: dark)').matches?'dark':'light';document.documentElement.classList.add(r,'auto');document.documentElement.style.colorScheme=r}})()",mR=`(function(){var id='${dR}';var src='${pR}';window.dataLayer=window.dataLayer||[];window.gtag=window.gtag||function(){window.dataLayer.push(arguments)};window.gtag('js',new Date());window.gtag('config',id,{transport_url:window.location.origin+'${I1}'});var loaded=false;var load=function(){if(loaded)return;loaded=true;var script=document.createElement('script');script.async=true;script.src=src;script.setAttribute('data-ga-loader','true');document.head.appendChild(script)};if(typeof window.requestIdleCallback==='function'){window.requestIdleCallback(load,{timeout:3000});return}if(document.readyState==='complete'){window.setTimeout(load,1500);return}window.addEventListener('load',function(){window.setTimeout(load,1500)},{once:true})})();`,hR=ZS({light:XS,dark:{...lf,background:"#111111",foreground:"#d4d4d4",name:"tanstack-neutral-dark",tokens:{...lf.tokens,comment:"#a3a3a3",meta:"#737373",token:"#d4d4d4"}},darkSelector:".dark"});function gR(e){const t=e[e.length-1],r=t?.pathname??"/",n=e.some(i=>i.staticData?.includeSearchInCanonical===!0)&&t?Ub(t.search):"",a=gg(r),o=uf(a??r,n);return{links:a?[{rel:"canonical",href:uf(a,n)}]:[],meta:[{property:"og:url",content:o},{name:"twitter:url",content:o},...ex(r)?[]:[{name:"robots",content:"noindex, nofollow"}]]}}var ce=tw()({loader:()=>({partnerPlacementSessionSeed:nR()}),head:({matches:e})=>{const t=gR(e);return{meta:[{charSet:"utf-8"},{name:"viewport",content:"width=device-width, initial-scale=1"},{name:"theme-color",content:Ki.light,media:"(prefers-color-scheme: light)"},{name:"theme-color",content:Ki.dark,media:"(prefers-color-scheme: dark)"},...ee({title:"TanStack | High Quality Open-Source Software for Web Developers",description:"Headless, type-safe, powerful utilities for complex workflows like Data Management, Data Visualization, Charts, Tables, and UI Components.",image:`https://tanstack.com${tx}`,keywords:"tanstack,react,reactjs,react query,react table,open source,open source software,oss,software"}),...t.meta],links:[...t.links,{rel:"preload",href:"/fonts/Inter-latin.woff2",as:"font",type:"font/woff2",crossOrigin:"anonymous"},{rel:"apple-touch-icon",sizes:"180x180",href:"/apple-touch-icon.png"},{rel:"icon",type:"image/png",sizes:"32x32",href:"/favicon-32x32.png"},{rel:"icon",type:"image/png",sizes:"16x16",href:"/favicon-16x16.png"},{rel:"manifest",href:"/site.webmanifest",color:"#fffff"},{rel:"icon",href:"/favicon.ico"}],scripts:[{children:mR}]}},staleTime:1/0,shellComponent:({children:e})=>p(vR,{children:e}),errorComponent:$2,notFoundComponent:()=>p(Iu,{})});function vR({children:e}){return p(oE,{children:p(v7,{children:p(yR,{children:e})})})}function yR({children:e}){const t=Hc({select:c=>c.find(l=>l.staticData?.baseParent)}),r=Wl({select:c=>c.isLoading||c.isTransitioning}),[n,a]=H(!1),[o,i]=H(!1);U(()=>{const c=setTimeout(()=>{a(!0)},2e3);return()=>{clearTimeout(c)}},[]),U(()=>{if(!r){i(!1);return}const c=window.setTimeout(()=>{i(!0)},1e3);return()=>{window.clearTimeout(c)}},[r]);const s=Hc({select:c=>c.some(l=>l.staticData?.showNavbar===!1)});return _("html",{lang:"en",className:sE(),suppressHydrationWarning:!0,children:[_("head",{children:[p("script",{dangerouslySetInnerHTML:{__html:fR},suppressHydrationWarning:!0}),p(cw,{}),p("style",{id:"tanstack-highlight-theme",dangerouslySetInnerHTML:{__html:hR}}),t?p("base",{target:"_parent"}):null]}),_("body",{className:"overflow-x-hidden",children:[p(xT,{children:_(lE,{children:[p(bR,{}),s?e:p(BC,{children:e}),null,_("div",{"aria-hidden":"true",className:z("pointer-events-none fixed top-0 left-0 z-99999999 h-[320px] w-full select-none"),children:[p("div",{className:z("absolute top-0 w-full h-80 rounded-[100%] bg-amber-500/30 blur-3xl transition-all duration-500 dark:bg-sky-400/25",o?"-translate-y-1/2 opacity-100":"-translate-y-full opacity-0")}),p("div",{className:z("absolute top-6 left-1/2 -translate-x-1/2 rounded-full bg-white/75 p-2 shadow-lg backdrop-blur-lg transition-all duration-300 dark:bg-slate-900/40",o?"translate-y-0 opacity-100":"-translate-y-6 opacity-0"),children:p(ET,{className:"text-4xl"})})]})]})}),p(ow,{})]})]})}function bR(){const e=Wl({select:r=>`${r.resolvedLocation?.pathname||"/"}${r.resolvedLocation?.searchStr||""}`}),t=V(!1);return U(()=>{if(!t.current){t.current=!0;return}tR(e)},[e]),null}var wR=()=>k(()=>import("./workshops-BPVi_z_p.js"),__vite__mapDeps([15,4,5,1,16,3,17,9,18,19])),_R=()=>k(()=>import("./workshops-BPVi_z_p.js"),__vite__mapDeps([15,4,5,1,16,3,17,9,18,19])),kR=R("/workshops")({component:$(_R,"component"),staleTime:0,loader:J(wR,"loader"),head:()=>({meta:ee({title:"Professional Workshops | TanStack",description:"Professional workshops on TanStack libraries from the creators and maintainers. Remote and in-person options available.",keywords:"tanstack,workshops,training,education,react query,react table,tanstack router,professional training,corporate training,remote workshops"})})}),SR=()=>k(()=>import("./terms-DYsFK8OD.js"),__vite__mapDeps([20,4,5,1,16,3])),xR=R("/terms")({component:$(SR,"component"),head:()=>({meta:ee({title:"Terms of Service",description:"Terms of Service"})})}),ER=()=>k(()=>import("./tenets-DA8rsFqm.js"),__vite__mapDeps([21,3,4,5,1,16])),TR=R("/tenets")({component:$(ER,"component"),head:()=>({meta:ee({title:"TanStack Product Tenets",description:"The core tenets that guide all TanStack libraries and products."})})}),IR=()=>k(()=>import("./support-CtJAZz24.js"),__vite__mapDeps([22,3,4,5,1])),CR=R("/support")({component:$(IR,"component"),head:()=>({meta:ee({title:"Support | TanStack",description:"Help and support for TanStack libraries and projects",keywords:"tanstack,react,reactjs,react query,react table,open source,open source software,oss,software,help,support"})})}),RR=()=>k(()=>import("./sponsors-embed-DYl57CPj.js"),__vite__mapDeps([23,4,5,1,24])),$R=()=>k(()=>import("./sponsors-embed-DYl57CPj.js"),__vite__mapDeps([23,4,5,1,24])),PR=R("/sponsors-embed")({staleTime:1/0,loader:J($R,"loader"),staticData:{baseParent:!0,showNavbar:!1},component:$(RR,"component")}),AR=R("/showcases")({beforeLoad:({location:e})=>{throw ie({href:e.href.replace(/^\/showcases/,"/showcase")})}}),LR="/assets/shop-DQz2HpqO.css",NR=()=>k(()=>import("./shop-zYHvwKhR.js"),__vite__mapDeps([25,3,4,5,1])),DR=()=>k(()=>import("./shop-zYHvwKhR.js"),__vite__mapDeps([25,3,4,5,1])),OR="https://fonts.googleapis.com/css2?family=DM+Sans:opsz,wght@9..40,400;9..40,500;9..40,600;9..40,700;9..40,800&family=JetBrains+Mono:wght@400;500&display=swap",MR=R("/shop")({loader:J(DR,"loader"),head:()=>({links:[{rel:"stylesheet",href:LR},{rel:"preconnect",href:"https://fonts.googleapis.com"},{rel:"preconnect",href:"https://fonts.gstatic.com",crossOrigin:"anonymous"},{rel:"stylesheet",href:OR}]}),staticData:{Title:()=>p($e,{to:"/shop",className:"relative whitespace-nowrap",children:p("span",{className:"inline-block text-transparent bg-clip-text bg-linear-to-r from-blue-500 to-cyan-400",children:"Shop"})})},component:$(NR,"component")}),FR=()=>k(()=>import("./privacy-DK9HMUJ4.js"),__vite__mapDeps([26,4,5,1,16,3])),zR=R("/privacy")({component:$(FR,"component"),head:()=>({meta:ee({title:"Privacy Policy",description:"Privacy Policy"})})}),VR=()=>k(()=>import("./partners-embed-BMVQfeMY.js"),__vite__mapDeps([27,4,5,1,28,29,3])),BR=R("/partners-embed")({staleTime:1/0,staticData:{baseParent:!0,showNavbar:!1},component:$(VR,"component")}),HR=()=>k(()=>import("./partners-B71ECczn.js"),__vite__mapDeps([30,3,4,5,1])),UR=R("/partners")({component:$(HR,"component")}),jR=()=>k(()=>import("./paid-support-B4hmb7op.js"),__vite__mapDeps([31,3,4,5,1,17,9,18])),qR=R("/paid-support")({component:$(jR,"component"),staleTime:1/0,head:()=>({meta:ee({title:"Enterprise Support | TanStack",description:"Private consultation and enterprise paid support for projects of any size.",keywords:"tanstack,react,reactjs,react query,react table,open source,open source software,oss,software,consulting,enterprise support,paid support"})})}),GR=()=>k(()=>import("./merch-CYGE2bFN.js"),__vite__mapDeps([32,4,5,1,16,3])),WR=R("/merch")({component:$(GR,"component"),head:()=>({meta:ee({title:"TanStack Merch",description:"Official TanStack merchandise including apparel and stickers."})})}),SY=re([...kw]),xY=re([...ww]),EY=re([...hw]),ZR=re([...vw]),KR=re([...gw]),YR=re([...yw]),TY=re([...bw]),IY=re([...Sw]),Ia=re([..._w]),XR=/^(?:@[a-z0-9][a-z0-9._-]*\/)?[a-z0-9][a-z0-9._-]*$/i,JR=we(se(),D2(1),je(214),O2(XR,"Invalid npm package name")),Ku=we(Ve(),it(),st(0),Wt(1e4)),Yu=we(Ve(),it(),st(1),Wt(1e4)),Ca=we(Ve(),it(),st(1),Wt(100)),ts=we(se(),N2()),Xu=we(Ve(),it(),st(240),Wt(1200)),Vs=we(Ve(),it(),st(320),Wt(2400)),QR=()=>k(()=>import("./maintainers-WRWslbUq.js"),__vite__mapDeps([33,4,5,1,16,3,17,9,18])),e$=re(["compact","full","row"]),t$=re(["none","core","library","role"]),r$=re(["none","name","role","contributions"]),n$=Se({libraries:O(x(gt(Ia)),void 0),viewMode:O(x(e$,"compact"),"compact"),groupBy:O(x(t$,"none"),"none"),sortBy:O(x(r$,"none"),"none")}),a$=R("/maintainers")({component:$(QR,"component"),validateSearch:n$,staticData:{includeSearchInCanonical:!0},head:()=>({meta:ee({title:"Maintainers | TanStack",description:"Meet the core maintainers and contributors who make TanStack possible",keywords:"tanstack,maintainers,contributors,open source,developers"})})}),o$=({as:e,children:t,className:r,...n})=>zt(e||"div",{className:z("bg-white dark:bg-gray-900 rounded-lg shadow-md border border-gray-200 dark:border-gray-800",r),...n},t),i$=()=>k(()=>import("./login-CofJHJCP.js"),__vite__mapDeps([34,3,4,5,1])),s$=()=>k(()=>import("./login-CofJHJCP.js"),__vite__mapDeps([34,3,4,5,1])),c$=ws(()=>k(()=>Promise.resolve().then(()=>_C).then(e=>({default:e.BrandContextMenu})),void 0)),l$=Se({error:x(se()),redirect:x(we(se(),je(2048))),returnTo:x(we(se(),je(2048)))});function pm(){return _(fe,{children:[p("img",{src:"/images/logos/splash-light.png",alt:"TanStack",className:"w-48 h-48 dark:hidden"}),p("img",{src:"/images/logos/splash-dark.png",alt:"TanStack",className:"w-48 h-48 hidden dark:block"})]})}var u$=R("/login")({component:$(s$,"component"),validateSearch:l$,loader:J(i$,"loader")});function d$(){const e=p("div",{className:"cursor-pointer",children:p(pm,{})});return p("div",{className:"flex items-center justify-center mb-4",children:p(Vb,{fallback:e,children:p(fa,{fallback:e,children:p(c$,{className:"cursor-pointer",children:p(pm,{})})})})})}function CY({returnTo:e}={}){return _(o$,{className:"p-8 w-[100vw] max-w-sm mx-auto",children:[p(d$,{}),p("h2",{className:"text-xl font-semibold text-gray-900 dark:text-white mb-4 text-center",children:"Sign into TanStack"}),_("button",{type:"button",onClick:()=>Xi.signIn.social({provider:"github",returnTo:e}),className:"w-full bg-black/80 hover:bg-black text-white dark:text-black dark:bg-white/95 dark:hover:bg-white font-semibold py-2 px-4 rounded-md transition-colors",children:[p(Ms,{className:"inline-block mr-2 -mt-0.5"})," Sign in with GitHub"]}),_("button",{type:"button",onClick:()=>Xi.signIn.social({provider:"google",returnTo:e}),className:"w-full bg-[#DB4437]/95 hover:bg-[#DB4437] text-white font-semibold py-2 px-4 rounded-md transition-colors mt-4",children:[p(vv,{className:"inline-block mr-2 -mt-0.5"})," Sign in with Google"]})]})}var p$=()=>k(()=>import("./libraries-esMgR-zK.js"),__vite__mapDeps([35,3,4,5,1,36,9])),f$=R("/libraries")({component:$(p$,"component"),head:()=>({meta:[{title:"TanStack Libraries: Type-Safe Tools for Modern Web Apps"},{name:"description",content:"Explore TanStack libraries for routing, server state, tables, forms, virtualization, sync, AI, and developer tooling."}]})}),m$=()=>k(()=>import("./learn-DVkPBbpQ.js"),__vite__mapDeps([37,3,4,5,1,19])),h$=R("/learn")({component:$(m$,"component"),head:()=>({meta:ee({title:"Learn | TanStack",description:"Education and learning resources for TanStack libraries and projects",keywords:"learn,course,education,learning,resources,training"})})}),g$=()=>k(()=>import("./feedback-leaderboard-cYJX7ry9.js"),__vite__mapDeps([38,3,4,5,1,39,40,41,42])),v$=()=>k(()=>import("./feedback-leaderboard-cYJX7ry9.js"),__vite__mapDeps([38,3,4,5,1,39,40,41,42])),y$=Se({page:O(x(Ve(),1),1),pageSize:O(x(we(Ve(),it(),st(1)),50),50)}),b$=R("/feedback-leaderboard")({staleTime:1e3*60*5,validateSearch:y$,loaderDeps:({search:e})=>({page:e.page,pageSize:e.pageSize}),loader:J(v$,"loader"),component:$(g$,"component"),head:()=>({meta:ee({title:"Documentation Feedback Leaderboard | TanStack",description:"See the top contributors helping improve TanStack documentation through feedback and notes."})})}),w$=()=>k(()=>import("./explore-BfxSECAb.js"),__vite__mapDeps([43,3,4,5,1])),_$=R("/explore")({component:$(w$,"component"),head:()=>({meta:[{title:"Island Explorer | TanStack"},{name:"description",content:"Sail between islands to discover TanStack libraries in this fun 3D exploration game."}]}),staticData:{Title:()=>p($e,{to:".",className:"hover:text-blue-500 flex items-center gap-2 text-gray-500",children:"Explore"})}}),k$=()=>k(()=>import("./ethos-CW7MeuZK.js"),__vite__mapDeps([44,3,4,5,1,16])),S$=R("/ethos")({component:$(k$,"component"),head:()=>({meta:ee({title:"TanStack Ethos",description:"Our philosophy and commitment to building for the open web."})})}),x$=()=>k(()=>import("./dashboard-C73YPXgi.js"),__vite__mapDeps([45,3,4,5,1])),E$=R("/dashboard")({component:$(x$,"component")}),T$=()=>k(()=>import("./builder-D4OvoT3s.js"),__vite__mapDeps([46,3,4,5,1])),I$=R("/builder")({head:()=>({meta:ee({title:"TanStack Builder",description:"Build amazing applications with TanStack"})}),component:$(T$,"component")}),C$=()=>k(()=>import("./brand-guide-DTIAedSZ.js"),__vite__mapDeps([47,4,5,1,16,3])),R$=R("/brand-guide")({component:$(C$,"component"),head:()=>({meta:ee({title:"Brand Guide | TanStack",description:"Official TanStack brand assets, logos, splashes, and usage guidelines"})})}),$$=R("/blog")({head:()=>({meta:ee({title:"Blog | TanStack",description:"The latest news and blog posts from TanStack!"})})});function RY(){return p(Iu,{})}var P$=()=>k(()=>import("./ads-Dn-WFFhj.js"),__vite__mapDeps([48,3,4,5,1,13,16,19,10])),A$=R("/ads")({component:$(P$,"component"),head:()=>({meta:ee({title:"Ads & Partnerships | TanStack",description:"How TanStack approaches ads and partnerships to sustain open source development."})})}),L$=()=>k(()=>import("./account-CteGHML3.js"),__vite__mapDeps([49,3,4,5,1])),N$=R("/account")({component:$(L$,"component"),beforeLoad:async()=>{try{return{user:await Fu()}}catch{throw ie({to:"/login"})}}}),D$=()=>k(()=>import("./_library-k4y6mhkz.js"),__vite__mapDeps([50,3,4,5,1,51,16,8,9,10,52,53,29,54,55])),O$=R("/_library")({component:$(D$,"component")});function $Y(){return bv().data?.capabilities||[]}function PY({className:e,width:t="1em",height:r="1em",...n}){return p("svg",{viewBox:"0 0 576 512",strokeWidth:"0",fill:"currentColor",stroke:"currentColor",width:t,height:r,role:"img","aria-hidden":n["aria-label"]?void 0:!0,className:e,...n,xmlns:"http://www.w3.org/2000/svg",children:p("path",{d:"M288 288h-32v-64h32v64zm288-128v192H288v32H160v-32H0V160h576zm-416 32H32v128h64v-96h32v96h32V192zm160 0H192v160h64v-32h64V192zm224 0H352v128h64v-96h32v96h32v-96h32v96h32V192z"})})}var M$=()=>k(()=>import("./route-BKjEG8-4.js"),__vite__mapDeps([56,3,4,5,1,14])),F$=R("/admin")({beforeLoad:async()=>{try{return{user:await ST()}}catch{throw ie({to:"/login"})}},component:$(M$,"component"),staticData:{Title:()=>p($e,{to:".",className:"hover:text-blue-500",children:"Admin"})}}),z$=()=>k(()=>import("./routes-DfNLmXGz.js"),__vite__mapDeps([57,3,4,5,1,16,58,53,10])),V$=()=>k(()=>import("./routes-DfNLmXGz.js"),__vite__mapDeps([57,3,4,5,1,16,58,53,10])),B$=R("/")({loader:J(V$,"loader"),head:()=>({meta:ee({title:"TanStack | The open-source application stack for the web.",description:"Headless, type-safe, composable tools for building modern web applications that work naturally for developers and reliably for agents."})}),component:$(z$,"component")}),fm={label:"core",x:132,y:58,width:56,height:32};[{label:"React",x:18,y:28,width:60,height:26},{label:"Vue",x:132,y:7,width:56,height:26},{label:"Solid",x:242,y:28,width:60,height:26},{label:"Angular",x:26,y:98,width:78,height:26},{label:"Vanilla",x:216,y:98,width:78,height:26}].map(e=>{const t=hm(fm,e),r=hm(e,fm),n=H$(t,r,.5);return{control1:n.control1,control2:n.control2,end:r,label:e.label,path:n.path,start:t}});function mm(e){return{x:e.x+e.width/2,y:e.y+e.height/2}}function hm(e,t){const r=mm(e),n=mm(t),a=n.x-r.x,o=n.y-r.y;if(a===0&&o===0)return r;const i=a===0?Number.POSITIVE_INFINITY:e.width/2/Math.abs(a),s=o===0?Number.POSITIVE_INFINITY:e.height/2/Math.abs(o),c=Math.min(i,s);return{x:r.x+a*c,y:r.y+o*c}}function H$(e,t,r=.5){if(Math.abs(t.y-e.y)>Math.abs(t.x-e.x)){const i=e.y+(t.y-e.y)*r,s={x:e.x,y:i},c={x:t.x,y:i};return{control1:s,control2:c,path:`M ${e.x} ${e.y} C ${s.x} ${s.y}, ${c.x} ${c.y}, ${t.x} ${t.y}`}}const n=e.x+(t.x-e.x)*r,a={x:n,y:e.y},o={x:n,y:t.y};return{control1:a,control2:o,path:`M ${e.x} ${e.y} C ${a.x} ${a.y}, ${o.x} ${o.y}, ${t.x} ${t.y}`}}var U$=R("/stats/")({beforeLoad:()=>{throw ie({to:"/stats/npm"})}}),j$=()=>k(()=>import("./showcase-CGwFHzo7.js"),__vite__mapDeps([59,3,4,5,1,60,61,62,63,39,64,14,65,66,67])),q$=()=>k(()=>import("./showcase-CGwFHzo7.js"),__vite__mapDeps([59,3,4,5,1,60,61,62,63,39,64,14,65,66,67])),G$=Se({page:x(Ve(),1),pageSize:x(Ve(),24),libraryIds:x(gt(Ia)),useCases:x(gt(YR)),hasSourceCode:x(Ae()),q:x(se())}),AY=[24,48,96,192],W$=R("/showcase/")({validateSearch:G$,loaderDeps:({search:e})=>({page:e.page,pageSize:e.pageSize,libraryIds:e.libraryIds,useCases:e.useCases,hasSourceCode:e.hasSourceCode,q:e.q}),loader:J(q$,"loader"),component:$(j$,"component"),head:({loaderData:e})=>({meta:ee({title:"Showcase | TanStack",description:"Discover projects built with TanStack libraries. See how developers are using TanStack Query, Router, Table, Form, and more in production.",noindex:e?.hasNonCanonicalSearch})})}),Z$=()=>k(()=>import("./stack._category-BPPXucsf.js"),__vite__mapDeps([68,3,4,5,1,69,53])),K$=()=>k(()=>import("./stack._category-BPPXucsf.js"),__vite__mapDeps([68,3,4,5,1,69,53])),Y$=R("/stack/$category")({staleTime:1/0,loader:J(K$,"loader"),head:({loaderData:e})=>({meta:ee({title:e?`${e.meta.shortName} — TanStack libraries`:"TanStack libraries",description:e?.meta.intro})}),component:$(Z$,"component")}),X$=()=>k(()=>import("./submit-JaguF73p.js"),__vite__mapDeps([70,71,3,4,5,1,72,14,73,66,67])),J$=R("/showcase/submit")({beforeLoad:async()=>{try{return{user:await Fu()}}catch{throw ie({to:"/login",search:{redirect:"/showcase/submit"}})}},component:$(X$,"component"),head:()=>({meta:ee({title:"Submit Your Project | Showcase | TanStack",description:"Submit your project to the TanStack showcase. Share what you built with TanStack libraries."})})}),Q$=()=>k(()=>import("./_id-4M68_Eqy.js"),__vite__mapDeps([74,3,4,5,1,64,65,66,67])),eP=()=>k(()=>import("./_id-4M68_Eqy.js"),__vite__mapDeps([74,3,4,5,1,64,65,66,67])),tP=R("/showcase/$id")({params:{parse:e=>({id:$r(we(se(),M2()),e.id)}),stringify:({id:e})=>({id:e})},loader:J(eP,"loader"),component:$(Q$,"component"),head:({loaderData:e})=>{const t=e?.showcase;return t?{meta:ee({title:`${t.name} | Showcase | TanStack`,description:t.tagline,image:t.screenshotUrl})}:{meta:ee({title:"Showcase Not Found | TanStack",description:"The project you are looking for could not be found."})}}}),rP=()=>k(()=>import("./authorize-DGbgfYfG.js"),__vite__mapDeps([75,3,4,5,1,76])),nP=()=>k(()=>import("./authorize-DGbgfYfG.js"),__vite__mapDeps([75,3,4,5,1,76])),aP=Se({client_id:x(we(se(),je(8192))),redirect_uri:x(we(se(),je(2048))),code_challenge:x(we(se(),je(256))),code_challenge_method:x(we(se(),je(32))),state:x(we(se(),je(2048))),scope:x(we(se(),je(512))),response_type:x(we(se(),je(64)))}),oP=R("/oauth/authorize")({component:$(nP,"component"),validateSearch:aP,loaderDeps:({search:e})=>({client_id:e.client_id,redirect_uri:e.redirect_uri,code_challenge:e.code_challenge,code_challenge_method:e.code_challenge_method,state:e.state,scope:e.scope,response_type:e.response_type}),loader:J(rP,"loader")}),iP=()=>k(()=>import("./libraries_._framework-B2o8UsId.js"),__vite__mapDeps([77,3,4,5,1,36,9])),sP=()=>k(()=>import("./libraries_._framework-B2o8UsId.js"),__vite__mapDeps([77,3,4,5,1,36,9])),cP=R("/libraries_/$framework")({loader:J(sP,"loader"),head:({loaderData:e})=>({meta:[{title:e?.framework?`TanStack ${e.framework.label} Libraries`:"TanStack Libraries by Framework"},{name:"description",content:e?.framework?`Type-safe TanStack libraries for ${e.framework.label}: routing, server state, tables, forms, virtualization, sync, AI, and tooling.`:"Browse TanStack libraries by framework."}]}),component:$(iP,"component")}),lP=()=>k(()=>import("./popup-success-6ad1Jkgy.js"),__vite__mapDeps([78,4,5,1])),uP=R("/auth/popup-success")({component:$(lP,"component")}),dP=()=>k(()=>import("./cli-DPSOR0sq.js"),__vite__mapDeps([79,4,5,1])),pP=()=>k(()=>import("./cli-DPSOR0sq.js"),__vite__mapDeps([79,4,5,1])),fP=Se({ticket:se()}),mP=R("/auth/cli")({validateSearch:fP,loader:J(pP,"loader"),component:$(dP,"component")});function co({image:e,alt:t,width:r,sizes:n="(min-width: 1024px) 25vw, (min-width: 640px) 33vw, 100vw",loading:a="lazy",className:o}){if(!e)return null;const i=e.width&&e.height?e.width/e.height:1,s=Math.round(r/i),c=[1,1.5,2,3].map(l=>Math.round(r*l)).filter((l,d,u)=>l<=(e.width??l)&&u.indexOf(l)===d).map(l=>`${ca(e.url,{width:l,format:"webp"})} ${l}w`).join(", ");return p("img",{src:ca(e.url,{width:r,format:"webp"}),srcSet:c,sizes:n,alt:e.altText??t,width:r,height:s,loading:a,decoding:"async",className:z("h-full w-full object-cover",o)})}var hP="inline-flex items-center justify-center gap-2 rounded-md font-semibold font-shop-display transition-[filter,border-color,background-color,color] disabled:opacity-50 disabled:cursor-not-allowed",gP={primary:"bg-shop-accent text-shop-accent-ink px-4 py-2.5 text-shop-ui hover:enabled:brightness-110",outline:"border border-shop-line bg-shop-panel text-shop-text px-3.5 py-2 text-shop-sm hover:enabled:border-shop-line-2",ghost:"text-shop-text-2 hover:enabled:text-shop-text hover:enabled:bg-shop-panel px-2 py-1.5 text-shop-sm"},vP=Z(function({variant:t="outline",fullWidth:r,type:n="button",className:a,children:o,...i},s){return p("button",{ref:s,type:n,...i,className:z(hP,gP[t],r&&"w-full",a),children:o})});function $l({children:e,className:t,as:r="div"}){return p(r,{className:z("font-shop-mono text-shop-xs tracking-[0.14em] uppercase text-shop-muted font-medium",t),children:e})}function rs({children:e,className:t}){return p("span",{className:`font-shop-mono${t?` ${t}`:""}`,children:e})}function yP({className:e}){return p("span",{"aria-hidden":"true",className:z("inline-block w-[7px] h-[7px] rounded-full bg-shop-green shrink-0","[animation:shop-pulse_1.8s_infinite]",e)})}function bP(e,t){return rr.toArray(e).map(r=>typeof r=="string"||typeof r=="number"?String(r):"").join("").trim()||t}function wP(e){const t=[];return rr.forEach(e,r=>{if(!Ka(r)||r.type!=="option")return;const n=r,a=String(n.props.value??""),o=bP(n.props.children,a);t.push({value:a,label:o,disabled:n.props.disabled??!1})}),t}function Ju({value:e,onChange:t,className:r,triggerClassName:n,children:a}){const[o,i]=H(!1),[s,c]=H(null),l=V(null),d=V(null),u=wP(a),f=u.find(g=>g.value===e);U(()=>{if(!o)return;const g=v=>{!l.current?.contains(v.target)&&!d.current?.contains(v.target)&&i(!1)};return document.addEventListener("mousedown",g),()=>document.removeEventListener("mousedown",g)},[o]);const m=g=>{if(!o){(g.key==="Enter"||g.key===" "||g.key==="ArrowDown")&&(g.preventDefault(),i(!0),c(e??u[0]?.value??null));return}const v=u.findIndex(b=>b.value===s);g.key==="ArrowDown"?(g.preventDefault(),c(u[Math.min(v+1,u.length-1)]?.value??null)):g.key==="ArrowUp"?(g.preventDefault(),c(u[Math.max(v-1,0)]?.value??null)):g.key==="Enter"||g.key===" "?(g.preventDefault(),s&&h(s)):g.key==="Escape"&&(i(!1),l.current?.focus())},h=g=>{u.find(v=>v.value===g)?.disabled||(t?.({target:{value:g}}),i(!1),l.current?.focus())};return _("div",{className:z("relative",r),children:[_("button",{ref:l,type:"button","aria-haspopup":"listbox","aria-expanded":o,onKeyDown:m,onClick:()=>{i(g=>!g),o||c(e??u[0]?.value??null)},className:z("flex items-center gap-2 border border-shop-line-2 rounded-xl","py-2.5 pl-4 pr-3 bg-transparent text-shop-text-2 font-shop-mono text-shop-ui","cursor-pointer transition-colors select-none whitespace-nowrap","hover:border-shop-muted hover:text-shop-text",o&&"border-shop-muted text-shop-text",n),children:[f?.label??"—",p("svg",{width:"10",height:"10",viewBox:"0 0 10 10","aria-hidden":!0,className:z("transition-transform duration-150 shrink-0",o&&"rotate-180"),children:p("path",{d:"M2 4l3 3 3-3",stroke:"currentColor",fill:"none",strokeWidth:"1.4",strokeLinecap:"round"})})]}),o?p("div",{ref:d,role:"listbox",className:z("absolute right-0 top-[calc(100%+6px)] z-[200] min-w-full","bg-shop-panel border border-shop-line rounded-xl max-h-[min(320px,60vh)] overflow-y-auto overflow-x-hidden","shadow-[0_8px_24px_-4px_rgba(0,0,0,0.18),0_2px_8px_-2px_rgba(0,0,0,0.12)]"),children:u.map(g=>{const v=g.value===e,b=g.value===s;return _("button",{type:"button",role:"option","aria-selected":v,disabled:g.disabled,onMouseEnter:()=>c(g.value),onClick:()=>h(g.value),className:z("w-full text-left px-4 py-2.5 font-shop-mono text-shop-ui whitespace-nowrap","transition-colors duration-75 flex items-center gap-2",v?"text-shop-accent":"text-shop-text-2",b&&!g.disabled&&"bg-shop-surface text-shop-text",g.disabled&&"opacity-40 cursor-not-allowed line-through"),children:[p("span",{className:z("w-1.5 h-1.5 rounded-full shrink-0 transition-opacity",v?"bg-shop-accent opacity-100":"opacity-0")}),g.label]},g.value)})}):null]})}var gm=Z(function({isActive:t,count:r,children:n,className:a,...o},i){return p("button",{ref:i,type:"button",...o,className:z("inline-flex items-center px-4 py-2.5 rounded-xl font-shop-mono text-shop-ui transition-colors cursor-pointer",t?"border-2 border-shop-muted font-medium text-shop-text":"border border-shop-line-2 font-normal text-shop-text-2 hover:text-shop-text hover:border-shop-muted",a),children:n})}),_P=Z(function({isSelected:t,isUnavailable:r,children:n,className:a,disabled:o,colorBg:i,selectedBg:s,selectedTextColor:c,style:l,...d},u){const f=i?{backgroundColor:t?i:vm(i,.8),borderColor:t?i:vm(i,.5),color:ym(i)}:t&&s?{backgroundColor:s,borderColor:s,color:c??ym(s)}:{};return p("button",{ref:u,type:"button","aria-pressed":t,disabled:o??r,...d,style:{...l,...f},className:z("inline-flex items-center gap-[7px] px-3 py-1.5 rounded-md border text-shop-sm","font-shop-display transition-[border-color,background-color,color]",!i&&"bg-shop-surface text-shop-text border-shop-line",!i&&"hover:enabled:bg-shop-surface-hover hover:enabled:border-shop-line-2",t&&!i&&!s&&"bg-shop-panel-2 border-shop-accent text-shop-text hover:enabled:border-shop-accent",r&&!t&&"line-through text-shop-muted opacity-40 cursor-not-allowed",a),children:n})});function vm(e,t){const r=e.replace("#","");return`rgba(${parseInt(r.slice(0,2),16)}, ${parseInt(r.slice(2,4),16)}, ${parseInt(r.slice(4,6),16)}, ${t})`}function ym(e){const t=e.replace("#",""),r=parseInt(t.slice(0,2),16),n=parseInt(t.slice(2,4),16),a=parseInt(t.slice(4,6),16);return(.299*r+.587*n+.114*a)/255>.55?"#000000":"#ffffff"}var kP=Z(function({isSelected:t,isUnavailable:r,children:n,className:a,disabled:o,...i},s){return p("button",{ref:s,type:"button","aria-pressed":t,disabled:o??r,...i,className:z("px-0 py-2.5 rounded-md text-center border border-shop-line","font-shop-mono font-medium text-shop-sm","bg-shop-surface text-shop-text","transition-[border-color,background-color]","hover:enabled:bg-shop-surface-hover hover:enabled:border-shop-line-2",t&&"bg-shop-accent text-shop-accent-ink border-shop-accent",r&&!t&&"line-through text-shop-muted opacity-40 cursor-not-allowed",a),children:n})});function SP({quantity:e,onChange:t,min:r=0,max:n=99,disabled:a,size:o="md",className:i}){const s=o==="sm"?"h-7 w-7 [&_svg]:w-3 [&_svg]:h-3":"h-10 w-8 [&_svg]:w-3.5 [&_svg]:h-3.5";return _("div",{className:z("inline-flex items-center border border-shop-line rounded-md bg-shop-panel","px-1.5",i),children:[p("button",{type:"button",onClick:()=>t(e-1),disabled:a||e<=r,"aria-label":"Decrease quantity",className:z("grid place-items-center text-shop-text-2 disabled:opacity-50 disabled:cursor-not-allowed",s),children:p(yb,{})}),p("span",{className:"font-shop-mono text-[13px] text-shop-text min-w-[1.5rem] text-center select-none",children:e}),p("button",{type:"button",onClick:()=>t(e+1),disabled:a||e>=n,"aria-label":"Increase quantity",className:z("grid place-items-center text-shop-text-2 disabled:opacity-50 disabled:cursor-not-allowed",s),children:p(Nb,{})})]})}var xP=Z(function({className:t,children:r,...n},a){return p("div",{ref:a,...n,className:z("border border-shop-line rounded-xl bg-shop-panel",t),children:r})});function EP({crumbs:e}){return p("nav",{"aria-label":"Breadcrumb",className:"font-shop-mono text-[11px] tracking-[0.12em] uppercase text-shop-muted flex items-center gap-2 flex-wrap",children:e.map((t,r)=>{const n=r===e.length-1;return _(fe,{children:[t.href&&!n?p($e,{to:t.href,className:"text-shop-muted hover:text-shop-text transition-colors",children:t.label}):p("span",{"aria-current":n?"page":void 0,className:n?"text-shop-text font-medium":void 0,children:t.label}),n?null:p("span",{"aria-hidden":"true",className:"opacity-40",children:"/"})]},`${t.label}-${r}`)})})}var TP=365*24*60*60*1e3,bm={black:"#0a0a0a",white:"#f5f5f0",cream:"#e4dcc4",bone:"#e4dcc4",natural:"#ddd3b8",vintage:"#e8e0d0",fog:"#c9c6ba",sand:"#c8b97a",ink:"#16130d",navy:"#1a2e50",slate:"#2e3339",olive:"#5a5a3a",rust:"#b84a27",red:"#c41d1d",blue:"#1d4ed8",sea:"#3a5d66",green:"#15803d",gray:"#6b7280",grey:"#6b7280",charcoal:"#3a3a3c",heather:"#8a8a9a",denim:"#1a4569",brown:"#6b3a2a",pink:"#e8749a",purple:"#7c3aed",yellow:"#ca8a04",orange:"#c2410c",royal:"#4169e1",kelly:"#4daa59",aqua:"#00c4d4",rose:"#c8818a",dusty:"#c8818a",coral:"#e8756a",forest:"#228b22",teal:"#0d9488",lavender:"#967bb6",lilac:"#967bb6",tan:"#d2b48c",ivory:"#fffff0",gold:"#c9a227",silver:"#a8a9ad",ash:"#b2bec3",stone:"#78716c",moss:"#6b7c55",sage:"#87a878",sky:"#0ea5e9",midnight:"#1e1b4b",espresso:"#3c1f0f",mixed:"#ef4c7a",holo:"#d6e7ff",polished:"#c5b07a",blend:"#e8e0d0"};function IP(e){const t=e.toLowerCase().split(/[\s_-]+/).reverse();for(const r of t)if(bm[r])return bm[r]}var CP="linear-gradient(180deg, rgba(116,220,255,0.99) 8.23%, rgba(255,242,124,0.99) 29.88%, rgba(255,160,92,0.99) 61.46%, rgba(255,95,95,0.99) 89.43%)";function RP(){return p("div",{className:"absolute bottom-3 left-3 z-[2] h-5 px-2.5 rounded-full flex items-center",style:{background:CP},children:p("span",{className:"font-shop-mono font-medium text-shop-xs text-black leading-none tracking-wide",children:"NEW"})})}function $P({product:e,sizes:t,loading:r="lazy",onQuickView:n}){const{minVariantPrice:a,maxVariantPrice:o}=e.priceRange,i=e.compareAtPriceRange?.minVariantPrice,s=a.amount!==o.amount,c=e.publishedAt?Date.now()-new Date(e.publishedAt).getTime()/colou?r/i.test(h.name)),d=l?l.values.slice(0,6).map(h=>({name:h,hex:IP(h)})):[],[u,f]=H(null);U(()=>{if(!l)return;const h=new Set;for(const g of e.variants.nodes){if(!g.image?.url||h.has(g.image.url))continue;h.add(g.image.url);const v=new Image;v.src=ca(g.image.url,{width:600,format:"webp"})}},[l,e.variants.nodes]);const m=_("div",{className:` group flex flex-col min-w-[340px] max-w-[400px] w-full rounded-xl border border-transparent bg-transparent hover:bg-[#EFEFE3] dark:hover:bg-shop-bg-2 hover:border-shop-line-2 transition-[border-color,background-color] duration-200 px-[22px] pt-7 pb-5 `,children:[_("div",{className:"relative aspect-square rounded-lg overflow-hidden",children:[p(co,{image:Fe(()=>!u||!l?e.featuredImage:e.variants.nodes.find(h=>h.selectedOptions.some(g=>/colou?r/i.test(g.name)&&g.value===u))?.image??e.featuredImage,[u,l,e]),alt:e.title,width:600,sizes:t,loading:r,className:"w-full h-full object-cover"}),c?p(RP,{}):null]}),_("div",{className:"flex flex-col gap-2.5 pt-4",children:[_("div",{className:"flex justify-between items-baseline gap-3",children:[p("span",{className:"text-shop-title font-semibold font-shop-display leading-tight text-shop-text truncate",children:e.title}),_(rs,{className:"text-shop-price text-shop-text whitespace-nowrap shrink-0 font-light",children:[s?"From ":"",sa(a.amount,a.currencyCode),i&&Number(i.amount)>Number(a.amount)?p("span",{className:"ml-1.5 text-shop-ui text-shop-muted line-through",children:sa(i.amount,i.currencyCode)}):null]})]}),_("div",{className:"flex items-center justify-between",children:[p("div",{className:"flex gap-[10px]",onMouseLeave:()=>f(null),children:d.map(h=>p("span",{title:h.name,onMouseEnter:()=>f(h.name),className:`w-4 h-4 rounded-full shrink-0 cursor-pointer border transition-[box-shadow,border-color,transform] duration-150 ${u===h.name?"border-white/70 ring-2 ring-white/30 scale-125":"border-white/15 hover:scale-110"}`,style:h.hex?{background:h.hex}:{background:"conic-gradient(from 30deg,#ef4c7a,#f4c74a,#22c993,#36d3f3,#4b9bff,#ef4c7a)"}},h.name))}),_("span",{className:"opacity-0 group-hover:opacity-100 transition-opacity text-shop-xs text-shop-text-2 inline-flex items-center gap-1",children:["Quick View",p("svg",{width:"10",height:"10",viewBox:"0 0 10 10","aria-hidden":"true",children:p("path",{d:"M2 5h6M6 2l3 3-3 3",stroke:"currentColor",strokeWidth:"1.6",fill:"none"})})]})]})]})]});return n?p("button",{type:"button",onClick:()=>n(e.handle),className:"text-left block cursor-pointer bg-transparent border-0 p-0",children:m}):p($e,{to:"/shop/$handle",params:{handle:e.handle},className:"block",children:m})}var ai={black:"#0a0a0a",white:"#f5f5f0",cream:"#e4dcc4",bone:"#e4dcc4",natural:"#ddd3b8",vintage:"#e8e0d0",fog:"#c9c6ba",sand:"#c8b97a",ink:"#16130d",navy:"#1a2e50",slate:"#2e3339",olive:"#5a5a3a",rust:"#b84a27",red:"#c41d1d",blue:"#1d4ed8",sea:"#3a5d66",green:"#15803d",gray:"#6b7280",grey:"#6b7280",charcoal:"#3a3a3c",heather:"#8a8a9a",denim:"#1a4569",brown:"#6b3a2a",pink:"#e8749a",purple:"#7c3aed",yellow:"#ca8a04",orange:"#c2410c",royal:"#4169e1",kelly:"#4daa59",aqua:"#00c4d4",rose:"#c8818a",dusty:"#c8818a",coral:"#e8756a",maroon:"#800020",forest:"#228b22",teal:"#0d9488",lavender:"#967bb6",lilac:"#967bb6",tan:"#d2b48c",ivory:"#fffff0",gold:"#c9a227",silver:"#a8a9ad",ash:"#b2bec3",stone:"#78716c",moss:"#6b7c55",sage:"#87a878",sky:"#0ea5e9",midnight:"#1e1b4b",espresso:"#3c1f0f"},PP=8,Ii=1e3,Pl=320,C1=768;function wm(e){const t=e.replace("#",""),r=parseInt(t.slice(0,2),16),n=parseInt(t.slice(2,4),16),a=parseInt(t.slice(4,6),16);return(.299*r+.587*n+.114*a)/255<.15}function AP(e){const t=e.toLowerCase();if(ai[t])return ai[t];const r=t.split(/[\s_-]+/).reverse();for(const n of r)if(ai[n])return ai[n]}function oi(e,t){return e.find(r=>r.selectedOptions.every(n=>{const a=t[n.name];return!a||a===n.value}))}function LP(e,t){return e.find(r=>r.selectedOptions.every(n=>t[n.name]===n.value))}function R1(e,t){if(!(!e||t?.handle!==e))return t}function $1(){return typeof window>"u"?Ii:window.innerWidth"u"?e:window.innerWidth{const w=parseInt(localStorage.getItem("drawerWidth")??"0",10);i(Dc(w>=Pl?w:Ii))},[]),U(()=>{const w=()=>i(C=>Dc(C));return window.addEventListener("resize",w),()=>window.removeEventListener("resize",w)},[]);const u=!!e,[f,m]=H(e),[h,g]=H(e);e!==h&&(g(e),e&&m(e)),U(()=>{if(!e){const w=setTimeout(()=>m(null),400);return()=>clearTimeout(w)}},[e]);const{data:v}=_s({queryKey:["shopify","product",f??""],queryFn:()=>_v({data:{handle:f}}),enabled:!!f,initialData:R1(f,t),staleTime:300*1e3}),b=u&&!!v,I=o,y=ne(w=>{if(!e||r.length===0)return;const C=r[(r.indexOf(e)+w+r.length)%r.length];C&&a(C)},[e,r,a]);U(()=>{if(!u)return;const w=C=>{C.key==="Escape"&&n(),C.key==="ArrowRight"&&y(1),C.key==="ArrowLeft"&&y(-1)};return window.addEventListener("keydown",w),()=>window.removeEventListener("keydown",w)},[u,n,y]);const S=w=>{w.preventDefault();const C=d.current?.getBoundingClientRect().width??o;l.current={startX:w.clientX,startW:C},c(!0)};return U(()=>{if(!s)return;const w=T=>{const E=l.current.startX-T.clientX,L=$1(),j=Math.max(Pl,Math.min(L,l.current.startW+E));i(Math.round(j))},C=()=>{c(!1),localStorage.setItem("drawerWidth",String(d.current?.getBoundingClientRect().width??o))};return window.addEventListener("mousemove",w),window.addEventListener("mouseup",C),()=>{window.removeEventListener("mousemove",w),window.removeEventListener("mouseup",C)}},[s,o]),_(fe,{children:[p("button",{type:"button","aria-label":"Close product drawer",tabIndex:b?0:-1,onClick:n,className:z("fixed inset-0 z-[60] bg-black/50 backdrop-blur-sm transition-opacity duration-300",b?"opacity-100 pointer-events-auto":"opacity-0 pointer-events-none")}),_("aside",{ref:d,"aria-label":"Product detail","aria-hidden":!b,style:{width:I},className:z("fixed top-[48px] right-0 bottom-0 z-[70]","border-l border-shop-line flex flex-col","shadow-[-30px_0_60px_-20px_rgba(0,0,0,0.5)]","min-w-[320px] max-w-[100vw] md:max-w-[80vw]",s?"transition-none select-none":"transition-transform duration-[380ms] ease-[cubic-bezier(0.2,0.8,0.2,1)]",b?"translate-x-0":"translate-x-full"),children:[_("div",{role:"separator","aria-label":"Drag to resize drawer",onMouseDown:S,onDoubleClick:()=>{const w=Dc(Ii);i(w),localStorage.setItem("drawerWidth",String(w))},className:z("absolute top-0 bottom-0 left-[-4px] w-2 z-[2] cursor-col-resize group","hidden md:block"),children:[p("div",{className:z("absolute left-[3px] top-0 bottom-0 w-[2px] transition-colors",s?"bg-shop-accent":"bg-transparent group-hover:bg-shop-accent")}),p("div",{className:z("absolute left-0 top-1/2 -translate-y-1/2 w-2 h-10 rounded bg-shop-panel border border-shop-line-2 transition-[opacity,border-color]",s?"opacity-100 border-shop-accent":"opacity-60 group-hover:opacity-100 group-hover:border-shop-accent")})]}),s?_("div",{className:"absolute top-3 left-4 z-[3] font-shop-mono text-shop-xs text-shop-accent-ink bg-shop-accent px-1.5 py-[3px] rounded pointer-events-none",children:[o," px"]}):null,p("button",{type:"button","aria-label":"Close product detail",title:"Close (Esc)",onClick:n,className:"absolute top-3 left-3 z-[3] p-1 text-shop-muted hover:text-shop-text transition-colors",children:p("svg",{width:"14",height:"14",viewBox:"0 0 14 14","aria-hidden":!0,children:p("path",{d:"M2 2l10 10M12 2L2 12",stroke:"currentColor",strokeWidth:"1.6"})})}),f?p(DP,{productHandle:f,initialProduct:v},e??f):null]})]})}function DP({productHandle:e,initialProduct:t}){const{data:r,isLoading:n}=_s({queryKey:["shopify","product",e],queryFn:()=>_v({data:{handle:e}}),initialData:R1(e,t),staleTime:3e5});return n||!r?p("div",{className:"shop-product-drawer-shell flex-1 overflow-y-auto",children:_("div",{className:"shop-product-drawer-layout",children:[p("div",{className:"shop-product-drawer-media",children:p("div",{className:"shop-product-drawer-main-image aspect-square bg-shop-panel animate-pulse"})}),_("div",{className:"shop-product-drawer-details bg-shop-bg p-5 flex flex-col gap-3",children:[p("div",{className:"h-3 w-24 bg-shop-panel-2 rounded animate-pulse"}),p("div",{className:"h-7 w-3/4 bg-shop-panel-2 rounded animate-pulse"}),p("div",{className:"h-12 bg-shop-panel-2 rounded animate-pulse"}),p("div",{className:"h-4 w-full bg-shop-panel-2 rounded animate-pulse"}),p("div",{className:"h-4 w-4/5 bg-shop-panel-2 rounded animate-pulse"})]})]})}):p(OP,{product:r})}function OP({product:e}){const t=e.variants.nodes,[r,n]=H(()=>Object.fromEntries(e.options.map(w=>[w.name,""]))),[a,o]=H(1),[i,s]=H(0),[c,l]=H(!1),[d,u]=H(null),f=LP(t,r),m=e.options.filter(w=>w.values.length>1).every(w=>!!r[w.name]),h=oi(t,r);U(()=>{h?.image?u(h.image):u(null)},[h?.id,h?.image,h?.image?.url]);const g=d?e.images.nodes.findIndex(w=>w.url===d.url):-1,v=d?g:i,b=d??e.images.nodes[i]??null,I=f?.price??t[0]?.price??null,y=kv(),S=Vu(w=>w.openDrawer);return U(()=>{if(!c)return;const w=window.setTimeout(()=>l(!1),1500);return()=>window.clearTimeout(w)},[c]),p("div",{className:"shop-product-drawer-shell flex-1 overflow-y-auto [scrollbar-width:thin] [scrollbar-color:var(--shop-line)_transparent]",children:_("div",{className:"shop-product-drawer-layout",children:[_("div",{className:"shop-product-drawer-media relative",children:[p("div",{className:`shop-product-drawer-main-image aspect-square bg-shop-bg/40 backdrop-blur-[20px] relative overflow-hidden p-6${e.images.nodes.length>1?" mr-[108px]":""}`,children:b?p(co,{image:b,alt:e.title,width:1200,sizes:"(min-width: 1120px) 60vw, (min-width: 768px) 520px, 100vw",loading:"eager",className:"w-full h-full object-cover"}):null}),e.images.nodes.length>1?p("div",{className:"shop-product-drawer-thumbs absolute top-0 right-0 bottom-0 w-[108px] flex flex-col gap-1.5 px-[14px] py-[10px] overflow-y-auto [scrollbar-width:none] bg-shop-bg/40 backdrop-blur-[20px] border-l border-shop-line",children:e.images.nodes.map((w,C)=>p("button",{type:"button",onClick:()=>{s(C),u(null)},"aria-label":`View image ${C+1}`,className:z("w-[80px] aspect-square rounded-md overflow-hidden transition-opacity shrink-0",C===v?"opacity-100 ring-1 ring-shop-line-2":"opacity-45 hover:opacity-75"),children:p(co,{image:w,alt:`${e.title} — image ${C+1}`,width:160,sizes:"15vw",className:"w-full h-full object-cover"})},`${w.url}-${C}`))}):null]}),_("div",{className:"shop-product-drawer-details bg-shop-bg",children:[p("div",{className:"mx-3 border-t border-shop-line"}),_("div",{className:"flex justify-between items-baseline gap-3 px-6 py-[15px]",children:[p("h2",{className:"font-shop-display font-semibold text-shop-heading leading-tight tracking-[-0.015em] text-shop-text",children:e.title}),I?p(rs,{className:"text-shop-price text-shop-text font-light whitespace-nowrap shrink-0",children:sa(I.amount,I.currencyCode)}):null]}),_("div",{className:"flex flex-wrap gap-x-6 gap-y-5 items-start justify-start px-6 py-5",children:[e.options.filter(w=>w.values.length>1).map(w=>{const C=/size/i.test(w.name);return w.values.length>PP?_("div",{className:"shop-product-option flex flex-col gap-3",children:[p("span",{className:"font-shop-mono italic text-shop-sm text-shop-muted uppercase tracking-[0.1em]",children:w.name}),_(Ju,{value:r[w.name],className:"w-full",triggerClassName:"w-full justify-between rounded-full px-4 py-2 text-shop-sm",onChange:T=>n({...r,[w.name]:T.target.value}),children:[_("option",{value:"",disabled:!0,children:["Select ",w.name]}),w.values.map(T=>p("option",{value:T,disabled:!oi(t,{...r,[w.name]:T})?.availableForSale,children:T},T))]})]},w.id):C?_("div",{className:"shop-product-option flex flex-col gap-3",children:[p("span",{className:"font-shop-mono italic text-shop-sm text-shop-muted uppercase tracking-[0.1em]",children:w.name}),p("div",{className:"flex flex-wrap gap-1.5",children:w.values.map(T=>{const E=r[w.name]===T,L=!oi(t,{...r,[w.name]:T})?.availableForSale;return p("button",{type:"button","aria-pressed":E,disabled:L,onClick:()=>n({...r,[w.name]:T}),className:z("px-4 py-2 font-shop-mono text-shop-sm leading-none whitespace-nowrap","rounded-full border transition-[background-color,color,border-color] duration-150",E?"bg-shop-text text-shop-bg border-shop-text":"bg-shop-surface text-shop-text border-shop-line hover:enabled:bg-shop-surface-hover hover:enabled:border-shop-line-2",L&&!E&&"opacity-40 cursor-not-allowed line-through"),children:T},T)})})]},w.id):_("div",{className:"shop-product-option flex flex-col gap-3",children:[p("span",{className:"font-shop-mono italic text-shop-sm text-shop-muted uppercase tracking-[0.1em]",children:w.name}),p("div",{className:"flex flex-wrap gap-1.5",children:w.values.map(T=>{const E=r[w.name]===T,L=!oi(t,{...r,[w.name]:T})?.availableForSale,j=AP(T);return p("button",{type:"button","aria-pressed":E,disabled:L,onClick:()=>n({...r,[w.name]:T}),style:E&&j?{backgroundColor:j,...wm(j)?{boxShadow:"inset 0 0 0 1.5px rgba(255,255,255,0.25)"}:{}}:void 0,className:z("px-4 py-2 font-shop-mono text-shop-sm leading-none whitespace-nowrap","rounded-full border transition-[background-color,color,border-color] duration-150",E&&!j?"bg-shop-accent text-shop-accent-ink border-shop-accent":E&&j&&wm(j)?"text-white border-transparent":E&&j?"text-shop-text border-transparent":"bg-shop-surface text-shop-text border-shop-line hover:enabled:bg-shop-surface-hover hover:enabled:border-shop-line-2",L&&!E&&"opacity-40 cursor-not-allowed line-through"),children:T},T)})})]},w.id)}),_("div",{className:"shop-product-quantity flex flex-col gap-3 shrink-0",children:[p("span",{className:"font-shop-mono italic text-shop-sm text-shop-muted uppercase tracking-[0.1em]",children:"Quantity"}),_("div",{className:"bg-shop-surface flex h-[38px] items-center justify-center gap-4 px-4 rounded-full w-[100px] font-shop-mono select-none",children:[p("button",{type:"button",onClick:()=>o(w=>w+1),"aria-label":"Increase quantity",className:"text-shop-sm text-shop-text-2 leading-none hover:text-shop-text transition-colors",children:"+"}),p("span",{className:"text-shop-sm text-shop-text min-w-[1ch] text-center",children:a}),p("button",{type:"button",onClick:()=>o(w=>Math.max(1,w-1)),"aria-label":"Decrease quantity",className:"text-shop-sm text-shop-text-2 leading-none hover:text-shop-text transition-colors",children:"−"})]})]})]}),p("div",{className:"mx-3 border-t border-shop-line"}),p("div",{className:"flex flex-col items-center px-6 py-5",children:_("button",{type:"button",disabled:!m||!f?.availableForSale||y.isPending&&!c,onClick:()=>{f&&(l(!0),S(),y.mutate({variantId:f.id,quantity:a,line:{productTitle:e.title,productHandle:e.handle,variantTitle:f.title,price:f.price,image:f.image,selectedOptions:f.selectedOptions}}))},style:m&&!c&&f?.availableForSale?{backgroundImage:"linear-gradient(235.54deg, rgba(116,220,255,0.99) 3.4%, rgba(255,242,124,0.99) 13.1%, rgba(255,160,92,0.99) 27.1%, rgba(255,95,95,0.99) 39.5%)",backgroundSize:"200% 200%",animation:"shop-cta-gradient 12s ease infinite, shop-cta-rotate 30s linear infinite"}:void 0,className:z("w-full max-w-[760px] rounded-full px-4 py-3 flex items-center justify-center gap-2.5","font-shop-display font-semibold text-shop-title","transition-[background-color,color,border-color,opacity] duration-500",m&&!c&&f?.availableForSale?"hover:enabled:brightness-105 text-black":m&&!f?.availableForSale?"bg-shop-surface text-shop-muted border border-shop-line":"bg-shop-surface/30 border border-shop-line text-shop-muted cursor-not-allowed"),children:[m&&!c&&f?.availableForSale?_("svg",{width:"22",height:"22",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.75",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":!0,children:[p("path",{d:"M6 2L3 6v14a2 2 0 002 2h14a2 2 0 002-2V6l-3-4z"}),p("path",{d:"M3 6h18"}),p("path",{d:"M16 10a4 4 0 01-8 0"})]}):null,c?"✓ Added":m?f?.availableForSale?"Add to Cart":"Sold out":"Add to Cart"]})}),p("div",{className:"mx-3 border-t border-shop-line"}),e.descriptionHtml?_("div",{className:"flex flex-col gap-2.5 px-6 py-4",children:[p("span",{className:"font-shop-mono italic text-shop-sm text-shop-muted uppercase tracking-[0.1em]",children:"Description"}),p("div",{className:"text-shop-body text-shop-text-2 leading-[1.6] [&_p]:mb-2 [&_p:last-child]:mb-0",dangerouslySetInnerHTML:{__html:e.descriptionHtml}})]}):null]})]})})}function MP({title:e,lede:t}){return _("div",{className:"flex-1 min-w-0",children:[p("h1",{className:` font-shop-display font-bold text-shop-text text-shop-display leading-[1.02] tracking-[-0.03em] m-0 [&_em]:not-italic [&_em]:text-shop-accent [&_em]:relative [&_em]:after:content-[''] [&_em]:after:absolute [&_em]:after:inset-x-0 [&_em]:after:-bottom-0.5 [&_em]:after:h-[3px] [&_em]:after:bg-shop-accent [&_em]:after:opacity-[0.35] [&_em]:after:rounded-sm `,children:e}),t?p("p",{className:"text-shop-text-2 text-shop-sm font-normal mt-3.5 max-w-[58ch] leading-[1.55] opacity-75",children:t}):null]})}var Qu=` fragment ProductCard on Product { id handle title productType tags publishedAt options { name values } featuredImage { url altText width height } variants(first: 10) { nodes { selectedOptions { name value } image { url altText width height } } } priceRange { minVariantPrice { amount currencyCode } maxVariantPrice { amount currencyCode } } compareAtPriceRange { minVariantPrice { amount currencyCode } } } `,LY=` ${Qu} query Products( $first: Int! $after: String $sortKey: ProductSortKeys $reverse: Boolean ) { products( first: $first after: $after sortKey: $sortKey reverse: $reverse ) { pageInfo { hasNextPage endCursor } nodes { ...ProductCard } } } `,Ci=[{key:"BEST_SELLING",reverse:!1,label:"Best selling"},{key:"CREATED_AT",reverse:!0,label:"Newest"},{key:"PRICE",reverse:!1,label:"Price: low to high"},{key:"PRICE",reverse:!0,label:"Price: high to low"},{key:"TITLE",reverse:!1,label:"Title: A–Z"}];function ns(e){return e.reverse?`${e.key}:rev`:e.key}function P1(e){if(!e)return Ci[0];for(const t of Ci)if(ns(t)===e)return t;return Ci[0]}var Ra=` fragment CartFields on Cart { id checkoutUrl totalQuantity cost { totalAmount { amount currencyCode } subtotalAmount { amount currencyCode } totalTaxAmount { amount currencyCode } } lines(first: 100) { nodes { id quantity merchandise { ... on ProductVariant { id title availableForSale selectedOptions { name value } price { amount currencyCode } image { url altText width height } product { handle title } } } cost { totalAmount { amount currencyCode } } } } discountCodes { code applicable } } `,NY=` ${Ra} query Cart($cartId: ID!) { cart(id: $cartId) { ...CartFields } } `,DY=` ${Ra} mutation CartCreate($input: CartInput!) { cartCreate(input: $input) { cart { ...CartFields } userErrors { field message } } } `,OY=` ${Ra} mutation CartLinesAdd($cartId: ID!, $lines: [CartLineInput!]!) { cartLinesAdd(cartId: $cartId, lines: $lines) { cart { ...CartFields } userErrors { field message } } } `,MY=` ${Ra} mutation CartLinesUpdate($cartId: ID!, $lines: [CartLineUpdateInput!]!) { cartLinesUpdate(cartId: $cartId, lines: $lines) { cart { ...CartFields } userErrors { field message } } } `,FY=` ${Ra} mutation CartLinesRemove($cartId: ID!, $lineIds: [ID!]!) { cartLinesRemove(cartId: $cartId, lineIds: $lineIds) { cart { ...CartFields } userErrors { field message } } } `,zY=` ${Ra} mutation CartDiscountCodesUpdate($cartId: ID!, $discountCodes: [String!]) { cartDiscountCodesUpdate(cartId: $cartId, discountCodes: $discountCodes) { cart { ...CartFields } userErrors { field message } } } `,VY=` ${Qu} query Collection( $handle: String! $first: Int! $after: String $sortKey: ProductCollectionSortKeys $reverse: Boolean ) { collection(handle: $handle) { id handle title description descriptionHtml image { url altText width height } seo { title description } products( first: $first after: $after sortKey: $sortKey reverse: $reverse ) { pageInfo { hasNextPage endCursor } nodes { ...ProductCard } } } } `,Oc=[{key:"COLLECTION_DEFAULT",reverse:!1,label:"Featured"},{key:"BEST_SELLING",reverse:!1,label:"Best selling"},{key:"CREATED",reverse:!0,label:"Newest"},{key:"PRICE",reverse:!1,label:"Price: low to high"},{key:"PRICE",reverse:!0,label:"Price: high to low"},{key:"TITLE",reverse:!1,label:"Title: A–Z"}];function FP(e){return e.reverse?`${e.key}:rev`:e.key}function BY(e){if(!e)return Oc[0];for(const t of Oc)if(FP(t)===e)return t;return Oc[0]}var HY=` ${Qu} query Search($query: String!, $first: Int!, $after: String) { search( query: $query first: $first after: $after types: [PRODUCT] productFilters: [{ available: true }] ) { totalCount pageInfo { hasNextPage endCursor } nodes { ... on Product { ...ProductCard } } } } `,A1=re(["BEST_SELLING","CREATED_AT:rev","PRICE","PRICE:rev","TITLE"]),zP=Se({sort:x(A1),type:x(se()),product:x(se())}),L1=24;async function UY(e){const t=P1(e);return{page:await zu({data:{first:L1,sortKey:t.key,reverse:t.reverse}}),sortId:ns(t)}}function jY({page:e,sortId:t,activeType:r,productHandle:n,initialProduct:a,onTypeChange:o,onSortChange:i,onProductSelect:s,onProductClose:c,onProductChange:l}){const d=r?.toLowerCase()??"all",[u,f]=H([]),[m,h]=H(e.pageInfo.endCursor),[g,v]=H(e.pageInfo.hasNextPage);U(()=>{f([]),h(e.pageInfo.endCursor),v(e.pageInfo.hasNextPage)},[e]);const b=ga({mutationFn:async()=>{if(!m)return null;const w=P1(t);return zu({data:{first:L1,after:m,sortKey:w.key,reverse:w.reverse}})},onSuccess:w=>{w&&(f(C=>[...C,...w.nodes]),h(w.pageInfo.endCursor),v(w.pageInfo.hasNextPage))}}),I=Fe(()=>[...e.nodes,...u],[e.nodes,u]),y=Fe(()=>{const w=new Map;for(const C of I){const T=C.productType?.trim();if(!T)continue;const E=T.toLowerCase(),L=w.get(E);L?L.count+=1:w.set(E,{display:T,count:1})}return Array.from(w.entries()).map(([C,{display:T,count:E}])=>({key:C,display:T,count:E})).sort((C,T)=>T.count-C.count)},[I]),S=d==="all"?I:I.filter(w=>w.productType?.toLowerCase()===d);return _("div",{className:"pb-24",children:[p("div",{className:"px-6 md:px-11 pt-6 md:pt-11 max-w-[1280px] mx-auto",children:p("div",{className:"pb-5.5 border-b border-shop-line-2 mb-7",children:p(MP,{title:_(fe,{children:["Built in ",p("em",{children:"public"}),",",p("br",{}),"worn in ",p("em",{children:"production"}),"."]}),lede:"Official TanStack apparel, accessories, and stickers. Limited runs, ethically produced, shipped worldwide. Rep the libraries that ship your code every day."})})}),p("div",{className:"sticky top-[var(--navbar-height,56px)] z-10 border-b border-shop-line bg-shop-bg/95 backdrop-blur-sm",children:_("div",{className:"max-w-[1280px] mx-auto px-6 md:px-11 flex flex-wrap items-center gap-1.5 py-2",children:[p(gm,{isActive:d==="all",count:I.length,className:"px-3 py-1.5 text-shop-sm rounded-lg",onClick:()=>o(void 0),children:"All"}),y.map(w=>p(gm,{isActive:d===w.key,count:w.count,className:"px-3 py-1.5 text-shop-sm rounded-lg",onClick:()=>o(w.key),children:w.display},w.key)),p(Ju,{className:"ml-auto",triggerClassName:"py-1.5 pl-3 pr-2.5 text-shop-sm rounded-lg",value:t,onChange:w=>{const C=$r(A1,w.target.value);i(C==="BEST_SELLING"?void 0:C)},children:Ci.map(w=>p("option",{value:ns(w),children:w.label},ns(w)))})]})}),p("div",{className:"px-6 md:px-11 max-w-[1280px] mx-auto mt-7",children:S.length===0?p("div",{className:"text-center py-24 text-shop-muted",children:"No products yet. Check back soon!"}):_(fe,{children:[p("section",{className:"grid gap-x-4 gap-y-5.5 grid-cols-[repeat(auto-fill,minmax(340px,1fr))]",children:S.map((w,C)=>p($P,{product:w,loading:C<8?"eager":"lazy",onQuickView:s},w.id))}),g?p("div",{className:"flex justify-center py-8",children:p(vP,{onClick:()=>b.mutate(),disabled:b.isPending,children:b.isPending?"Loading...":"Load more"})}):null]})}),p(NP,{productHandle:n,initialProduct:a,allHandles:S.map(w=>w.handle),onClose:c,onChange:l})]})}var VP=()=>k(()=>import("./shop.index-DRJaiUuD.js"),__vite__mapDeps([80,3,4,5,1])),BP=()=>k(()=>import("./shop.index-DRJaiUuD.js"),__vite__mapDeps([80,3,4,5,1])),HP=R("/shop/")({validateSearch:zP,loaderDeps:({search:e})=>({sort:e.sort}),loader:J(BP,"loader"),head:()=>({meta:ee({title:"TanStack Shop",description:"Official TanStack apparel, accessories, and stickers. Show your support and rep your favorite open-source toolkit."})}),component:$(VP,"component"),staticData:{includeSearchInCanonical:!0}}),UP=()=>k(()=>import("./shop.search-BoOgZZg2.js"),__vite__mapDeps([81,3,4,5,1,82])),jP=()=>k(()=>import("./shop.search-BoOgZZg2.js"),__vite__mapDeps([81,3,4,5,1,82])),qP=Se({q:x(se())}),GP=R("/shop/search")({validateSearch:qP,loaderDeps:({search:e})=>({q:e.q}),loader:J(jP,"loader"),component:$(UP,"component"),staticData:{includeSearchInCanonical:!0}}),WP=()=>k(()=>import("./shop.cart-yvB8CnpN.js"),__vite__mapDeps([83,3,4,5,1,82])),ZP=R("/shop/cart")({component:$(WP,"component")}),KP=()=>k(()=>import("./shop._handle-28XgwbFY.js"),__vite__mapDeps([84,3,4,5,1])),YP=()=>k(()=>import("./shop._handle-28XgwbFY.js"),__vite__mapDeps([84,3,4,5,1])),XP=R("/shop/$handle")({loader:J(YP,"loader"),head:({loaderData:e})=>{const t=e?.product;if(!t)return{meta:[]};const r=t.images.nodes[0];return{meta:ee({title:`${t.seo.title??t.title} | TanStack Shop`,description:t.seo.description??void 0,image:r?ca(r.url,{width:1200,height:630,format:"jpg",crop:"center"}):void 0})}},component:$(KP,"component")}),JP=()=>k(()=>import("./partners.index-DERmgLdG.js"),__vite__mapDeps([85,3,4,5,1,16,86,87,88,89,90,91,29])),QP=re(["active","inactive"]),eA=Se({libraries:O(x(gt(Ia)),void 0),status:O(x(QP,"active"),"active")}),tA=R("/partners/")({component:$(JP,"component"),validateSearch:eA,staticData:{includeSearchInCanonical:!0},head:()=>({meta:ee({title:"Partners",description:"Companies and organizations supporting TanStack and our open source mission"})})}),rA=[{q:"Does Railway support TanStack Start SSR and streaming?",a:"Yes. TanStack Start builds a Node server for SSR, streaming, server functions, and static assets. Follow the Nitro setup in the Start hosting docs, then deploy that Node service to Railway."},{q:"Can I run a database alongside my TanStack app?",a:"Absolutely. Railway lets you provision Postgres, MySQL, Redis, or MongoDB in the same project as your app. They communicate over Railway's 100 Gbps private network — no VPC setup needed."},{q:"How does Railway pricing actually work?",a:"Railway charges by the second based on actual CPU and memory usage — not provisioned box sizes. The Hobby plan starts at $5/month (which includes $5 of credits). Most hobby TanStack projects run for free or under $5/month."},{q:"What makes Railway different from Vercel or Render?",a:"Railway is a full-stack cloud — not just a frontend host. You can run your TanStack app server, managed databases, background workers, cron jobs, and private networking all in one project. Railway also has hard spending limits, which no other major cloud provider offers."},{q:"Does Railway have PR preview environments?",a:"Yes — every pull request automatically gets its own live preview environment. For TanStack teams, this means you can test routing changes, data fetching behavior, and server logic before merging."},{q:"Can I migrate an existing TanStack app to Railway?",a:"Yes. If your app already builds to a Node server or has a Dockerfile, Railway can deploy it from GitHub. For TanStack Start, make sure the Nitro Vite setup and Node start script are in place."}],nA="data:image/svg+xml,%3csvg%20clip-rule='evenodd'%20fill-rule='evenodd'%20stroke-linejoin='round'%20stroke-miterlimit='2'%20viewBox='0%200%20235%2040'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20transform='matrix(.635723%200%200%20.635723%20-492.921%20-323.608)'%3e%3cg%20fill-rule='nonzero'%3e%3cpath%20d='m1099.4%20549.4v-12.5h-21.3l-12.5%2012.5z'%20fill='%23ff8b00'/%3e%3cpath%20d='m1123.4%20518.4h-26.7l-12.6%2012.5h39.3z'%20fill='%2355b2c6'/%3e%3cpath%20d='m1053.2%20561.9%206.4-6.4h21.6v12.5h-28z'%20fill='%23f00'/%3e%3cpath%20d='m1057.9%20543.3h13.8l12.6-12.5h-26.4z'%20fill='%23b4bbbf'/%3e%3cpath%20d='m1042.8%20561.9h10.4l12.4-12.5h-22.8z'%20fill='%23b4bbbf'/%3e%3cpath%20d='m1096.7%20518.4-6.4%206.4h-40.8v-12.5h47.2z'%20fill='%23b4bbbf'/%3e%3cpath%20d='m828.6%20559.7h-19.6l-3.4%208.4h-8.6l18.1-42.4h7.5l18.1%2042.4h-8.7zm-2.7-6.7-7.1-17.3-7.1%2017.3z'%20fill='%23031c4c'/%3e%3cpath%20d='m960.1%20541.3c2.5-3.7%208.8-4.1%2011.4-4.1v7.2c-3.2%200-6.4.1-8.3%201.5s-2.9%203.3-2.9%205.6v16.6h-7.8v-30.9h7.5z'%20fill='%23031c4c'/%3e%3c/g%3e%3cpath%20d='m975.8%20537.2h7.8v30.9h-7.8z'%20fill='%23031c4c'/%3e%3cpath%20d='m975.8%20523.4h7.8v9.2h-7.8z'%20fill='%23031c4c'/%3e%3cpath%20d='m1022.3%20523.4v44.7h-7.5l-.2-4.7c-1.1%201.6-2.5%202.9-4.2%203.9-1.7.9-3.8%201.4-6.2%201.4-2.1%200-4.1-.4-5.8-1.1-1.8-.8-3.4-1.8-4.7-3.2s-2.4-3.1-3.1-5c-.8-1.9-1.1-4.1-1.1-6.5s.4-4.6%201.1-6.6c.8-2%201.8-3.7%203.1-5.1s2.9-2.5%204.7-3.3%203.7-1.2%205.8-1.2c2.4%200%204.4.4%206.1%201.3s3.1%202.1%204.2%203.8v-18.3h7.8zm-16.4%2038.6c2.6%200%204.6-.9%206.2-2.6s2.4-4%202.4-6.8-.8-5-2.4-6.8c-1.6-1.7-3.6-2.6-6.2-2.6-2.5%200-4.6.9-6.1%202.6-1.6%201.7-2.4%204-2.4%206.8s.8%205%202.4%206.7c1.6%201.8%203.6%202.7%206.1%202.7'%20fill='%23031c4c'%20fill-rule='nonzero'/%3e%3cpath%20d='m885.8%20544.2h-19.3v6.7h11c-.3%203.4-1.6%206-3.8%208.1-2.2%202-5%203-8.6%203-2%200-3.9-.4-5.5-1.1-1.7-.7-3.1-1.7-4.3-3.1-1.2-1.3-2.1-2.9-2.8-4.8s-1-3.9-1-6.2.3-4.3%201-6.2c.6-1.9%201.6-3.4%202.8-4.8%201.2-1.3%202.6-2.3%204.3-3.1%201.7-.7%203.5-1.1%205.6-1.1%204.2%200%207.4%201%209.6%203l5.2-5.2c-3.9-3-8.9-4.6-14.8-4.6-3.3%200-6.3.5-9%201.6s-5%202.5-6.9%204.4-3.4%204.2-4.4%206.9-1.5%205.7-1.5%208.9.5%206.2%201.6%208.9%202.5%205%204.4%206.9%204.2%203.4%206.9%204.4c2.7%201.1%205.7%201.6%208.9%201.6s6.1-.5%208.7-1.6%204.8-2.5%206.6-4.4%203.2-4.2%204.2-6.9%201.5-5.7%201.5-8.9v-1.3c-.3-.2-.4-.7-.4-1.1'%20fill='%23031c4c'%20fill-rule='nonzero'/%3e%3cpath%20d='m946.8%20544.2h-19.3v6.7h11c-.3%203.4-1.6%206-3.8%208.1-2.2%202-5%203-8.6%203-2%200-3.9-.4-5.5-1.1-1.7-.7-3.1-1.7-4.3-3.1-1.2-1.3-2.1-2.9-2.8-4.8s-1-3.9-1-6.2.3-4.3%201-6.2c.6-1.9%201.6-3.4%202.8-4.8%201.2-1.3%202.6-2.3%204.3-3.1%201.7-.7%203.5-1.1%205.6-1.1%204.2%200%207.4%201%209.6%203l5.2-5.2c-3.9-3-8.9-4.6-14.8-4.6-3.3%200-6.3.5-9%201.6s-5%202.5-6.9%204.4-3.4%204.2-4.4%206.9-1.5%205.7-1.5%208.9.5%206.2%201.6%208.9%202.5%205%204.4%206.9%204.2%203.4%206.9%204.4c2.7%201.1%205.7%201.6%208.9%201.6s6.1-.5%208.7-1.6%204.8-2.5%206.6-4.4%203.2-4.2%204.2-6.9%201.5-5.7%201.5-8.9v-1.3c-.3-.2-.4-.7-.4-1.1'%20fill='%23031c4c'%20fill-rule='nonzero'/%3e%3c/g%3e%3c/svg%3e",aA="data:image/svg+xml,%3csvg%20clip-rule='evenodd'%20fill-rule='evenodd'%20stroke-linejoin='round'%20stroke-miterlimit='2'%20viewBox='0%200%20235%2040'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20transform='matrix(.635723%200%200%20.635723%20-492.921%20-323.608)'%3e%3cg%20fill-rule='nonzero'%3e%3cpath%20d='m1099.4%20549.4v-12.5h-21.3l-12.5%2012.5z'%20fill='%23ff8b00'/%3e%3cpath%20d='m1123.4%20518.4h-26.7l-12.6%2012.5h39.3z'%20fill='%2355b2c6'/%3e%3cpath%20d='m1053.2%20561.9%206.4-6.4h21.6v12.5h-28z'%20fill='%23f00'/%3e%3cpath%20d='m1057.9%20543.3h13.8l12.6-12.5h-26.4z'%20fill='%23b4bbbf'/%3e%3cpath%20d='m1042.8%20561.9h10.4l12.4-12.5h-22.8z'%20fill='%23b4bbbf'/%3e%3cpath%20d='m1096.7%20518.4-6.4%206.4h-40.8v-12.5h47.2z'%20fill='%23b4bbbf'/%3e%3cpath%20d='m828.6%20559.7h-19.6l-3.4%208.4h-8.6l18.1-42.4h7.5l18.1%2042.4h-8.7zm-2.7-6.7-7.1-17.3-7.1%2017.3z'%20fill='%23fff'/%3e%3cpath%20d='m960.1%20541.3c2.5-3.7%208.8-4.1%2011.4-4.1v7.2c-3.2%200-6.4.1-8.3%201.5s-2.9%203.3-2.9%205.6v16.6h-7.8v-30.9h7.5z'%20fill='%23fff'/%3e%3c/g%3e%3cpath%20d='m975.8%20537.2h7.8v30.9h-7.8z'%20fill='%23fff'/%3e%3cpath%20d='m975.8%20523.4h7.8v9.2h-7.8z'%20fill='%23fff'/%3e%3cpath%20d='m1022.3%20523.4v44.7h-7.5l-.2-4.7c-1.1%201.6-2.5%202.9-4.2%203.9-1.7.9-3.8%201.4-6.2%201.4-2.1%200-4.1-.4-5.8-1.1-1.8-.8-3.4-1.8-4.7-3.2s-2.4-3.1-3.1-5c-.8-1.9-1.1-4.1-1.1-6.5s.4-4.6%201.1-6.6c.8-2%201.8-3.7%203.1-5.1s2.9-2.5%204.7-3.3%203.7-1.2%205.8-1.2c2.4%200%204.4.4%206.1%201.3s3.1%202.1%204.2%203.8v-18.3h7.8zm-16.4%2038.6c2.6%200%204.6-.9%206.2-2.6s2.4-4%202.4-6.8-.8-5-2.4-6.8c-1.6-1.7-3.6-2.6-6.2-2.6-2.5%200-4.6.9-6.1%202.6-1.6%201.7-2.4%204-2.4%206.8s.8%205%202.4%206.7c1.6%201.8%203.6%202.7%206.1%202.7'%20fill='%23fff'%20fill-rule='nonzero'/%3e%3cpath%20d='m885.8%20544.2h-19.3v6.7h11c-.3%203.4-1.6%206-3.8%208.1-2.2%202-5%203-8.6%203-2%200-3.9-.4-5.5-1.1-1.7-.7-3.1-1.7-4.3-3.1-1.2-1.3-2.1-2.9-2.8-4.8s-1-3.9-1-6.2.3-4.3%201-6.2c.6-1.9%201.6-3.4%202.8-4.8%201.2-1.3%202.6-2.3%204.3-3.1%201.7-.7%203.5-1.1%205.6-1.1%204.2%200%207.4%201%209.6%203l5.2-5.2c-3.9-3-8.9-4.6-14.8-4.6-3.3%200-6.3.5-9%201.6s-5%202.5-6.9%204.4-3.4%204.2-4.4%206.9-1.5%205.7-1.5%208.9.5%206.2%201.6%208.9%202.5%205%204.4%206.9%204.2%203.4%206.9%204.4c2.7%201.1%205.7%201.6%208.9%201.6s6.1-.5%208.7-1.6%204.8-2.5%206.6-4.4%203.2-4.2%204.2-6.9%201.5-5.7%201.5-8.9v-1.3c-.3-.2-.4-.7-.4-1.1'%20fill='%23fff'%20fill-rule='nonzero'/%3e%3cpath%20d='m946.8%20544.2h-19.3v6.7h11c-.3%203.4-1.6%206-3.8%208.1-2.2%202-5%203-8.6%203-2%200-3.9-.4-5.5-1.1-1.7-.7-3.1-1.7-4.3-3.1-1.2-1.3-2.1-2.9-2.8-4.8s-1-3.9-1-6.2.3-4.3%201-6.2c.6-1.9%201.6-3.4%202.8-4.8%201.2-1.3%202.6-2.3%204.3-3.1%201.7-.7%203.5-1.1%205.6-1.1%204.2%200%207.4%201%209.6%203l5.2-5.2c-3.9-3-8.9-4.6-14.8-4.6-3.3%200-6.3.5-9%201.6s-5%202.5-6.9%204.4-3.4%204.2-4.4%206.9-1.5%205.7-1.5%208.9.5%206.2%201.6%208.9%202.5%205%204.4%206.9%204.2%203.4%206.9%204.4c2.7%201.1%205.7%201.6%208.9%201.6s6.1-.5%208.7-1.6%204.8-2.5%206.6-4.4%203.2-4.2%204.2-6.9%201.5-5.7%201.5-8.9v-1.3c-.3-.2-.4-.7-.4-1.1'%20fill='%23fff'%20fill-rule='nonzero'/%3e%3c/g%3e%3c/svg%3e",oA="/assets/nozzle-BGvMJZhc.png",iA="/assets/bytes-fireship-DYlJObC8.png",sA="data:image/svg+xml,%3csvg%20height='64'%20viewBox='0%200%20283%2064'%20width='283'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='m141.68%2016.25c-11.04%200-19%207.2-19%2018s8.96%2018%2020%2018c6.67%200%2012.55-2.64%2016.19-7.09l-7.65-4.42c-2.02%202.21-5.09%203.5-8.54%203.5-4.79%200-8.86-2.5-10.37-6.5h28.02c.22-1.12.35-2.28.35-3.5%200-10.79-7.96-17.99-19-17.99zm-9.46%2014.5c1.25-3.99%204.67-6.5%209.45-6.5%204.79%200%208.21%202.51%209.45%206.5zm117.14-14.5c-11.04%200-19%207.2-19%2018s8.96%2018%2020%2018c6.67%200%2012.55-2.64%2016.19-7.09l-7.65-4.42c-2.02%202.21-5.09%203.5-8.54%203.5-4.79%200-8.86-2.5-10.37-6.5h28.02c.22-1.12.35-2.28.35-3.5%200-10.79-7.96-17.99-19-17.99zm-9.45%2014.5c1.25-3.99%204.67-6.5%209.45-6.5%204.79%200%208.21%202.51%209.45%206.5zm-39.03%203.5c0%206%203.92%2010%2010%2010%204.12%200%207.21-1.87%208.8-4.92l7.68%204.43c-3.18%205.3-9.14%208.49-16.48%208.49-11.05%200-19-7.2-19-18s7.96-18%2019-18c7.34%200%2013.29%203.19%2016.48%208.49l-7.68%204.43c-1.59-3.05-4.68-4.92-8.8-4.92-6.07%200-10%204-10%2010zm82.48-29v46h-9v-46zm-245.77-5%2036.95%2064h-73.9zm92.38%205-27.71%2048-27.71-48h10.39l17.32%2030%2017.32-30zm58.91%2012v9.69c-1-.29-2.06-.49-3.2-.49-5.81%200-10%204-10%2010v14.8h-9v-34h9v9.2c0-5.08%205.91-9.2%2013.2-9.2z'/%3e%3c/svg%3e",cA="data:image/svg+xml,%3csvg%20height='64'%20viewBox='0%200%20283%2064'%20width='283'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='m141.68%2016.25c-11.04%200-19%207.2-19%2018s8.96%2018%2020%2018c6.67%200%2012.55-2.64%2016.19-7.09l-7.65-4.42c-2.02%202.21-5.09%203.5-8.54%203.5-4.79%200-8.86-2.5-10.37-6.5h28.02c.22-1.12.35-2.28.35-3.5%200-10.79-7.96-17.99-19-17.99zm-9.46%2014.5c1.25-3.99%204.67-6.5%209.45-6.5%204.79%200%208.21%202.51%209.45%206.5zm117.14-14.5c-11.04%200-19%207.2-19%2018s8.96%2018%2020%2018c6.67%200%2012.55-2.64%2016.19-7.09l-7.65-4.42c-2.02%202.21-5.09%203.5-8.54%203.5-4.79%200-8.86-2.5-10.37-6.5h28.02c.22-1.12.35-2.28.35-3.5%200-10.79-7.96-17.99-19-17.99zm-9.45%2014.5c1.25-3.99%204.67-6.5%209.45-6.5%204.79%200%208.21%202.51%209.45%206.5zm-39.03%203.5c0%206%203.92%2010%2010%2010%204.12%200%207.21-1.87%208.8-4.92l7.68%204.43c-3.18%205.3-9.14%208.49-16.48%208.49-11.05%200-19-7.2-19-18s7.96-18%2019-18c7.34%200%2013.29%203.19%2016.48%208.49l-7.68%204.43c-1.59-3.05-4.68-4.92-8.8-4.92-6.07%200-10%204-10%2010zm82.48-29v46h-9v-46zm-245.77-5%2036.95%2064h-73.9zm92.38%205-27.71%2048-27.71-48h10.39l17.32%2030%2017.32-30zm58.91%2012v9.69c-1-.29-2.06-.49-3.2-.49-5.81%200-10%204-10%2010v14.8h-9v-34h9v9.2c0-5.08%205.91-9.2%2013.2-9.2z'%20fill='%23fff'/%3e%3c/svg%3e",lA="data:image/svg+xml,%3csvg%20width='512'%20height='209'%20viewBox='0%200%20512%20209'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20clip-path='url(%23clip0_235_8)'%3e%3cpath%20d='M117.436%20207.036V154.604L118.529%20153.51H129.452L130.545%20154.604V207.036L129.452%20208.13H118.529L117.436%20207.036Z'%20fill='%2305BDBA'/%3e%3cpath%20d='M117.436%2053.5225V1.09339L118.529%200H129.452L130.545%201.09339V53.5225L129.452%2054.6159H118.529L117.436%2053.5225Z'%20fill='%2305BDBA'/%3e%3cpath%20d='M69.9539%20169.238H68.4094L60.6869%20161.512V159.967L78.7201%20141.938L86.8976%20141.942L87.9948%20143.031V151.209L69.9539%20169.238Z'%20fill='%2305BDBA'/%3e%3cpath%20d='M69.9462%2038.8917H68.4017L60.6792%2046.6181V48.1626L78.7124%2066.192L86.8899%2066.1882L87.9871%2065.0986V56.9212L69.9462%2038.8917Z'%20fill='%2305BDBA'/%3e%3cpath%20d='M1.09339%2097.5104H75.3711L76.4645%2098.6038V109.526L75.3711%20110.62H1.09339L0%20109.526V98.6038L1.09339%2097.5104Z'%20fill='%2305BDBA'/%3e%3cpath%20d='M440.999%2097.5104H510.91L512.004%2098.6038V109.526L510.91%20110.62H436.633L435.539%20109.526L439.905%2098.6038L440.999%2097.5104Z'%20fill='%2305BDBA'/%3e%3cpath%20d='M212.056%20108.727L210.963%20109.821H177.079L175.986%20110.914C175.986%20113.101%20178.173%20119.657%20186.916%20119.657C190.196%20119.657%20193.472%20118.564%20194.566%20116.377L195.659%20115.284H208.776L209.869%20116.377C208.776%20122.934%20203.313%20132.774%20186.916%20132.774C168.336%20132.774%20159.589%20119.657%20159.589%20104.357C159.589%2089.0576%20168.332%2075.9408%20185.822%2075.9408C203.313%2075.9408%20212.056%2089.0576%20212.056%20104.357V108.731V108.727ZM195.659%2097.7971C195.659%2096.7037%20194.566%2089.0538%20185.822%2089.0538C177.079%2089.0538%20175.986%2096.7037%20175.986%2097.7971L177.079%2098.8905H194.566L195.659%2097.7971Z'%20fill='%23014847'/%3e%3cpath%20d='M242.66%20115.284C242.66%20117.47%20243.753%20118.564%20245.94%20118.564H255.776L256.87%20119.657V130.587L255.776%20131.681H245.94C236.103%20131.681%20227.36%20127.307%20227.36%20115.284V91.2368L226.266%2090.1434H218.617L217.523%2089.05V78.1199L218.617%2077.0265H226.266L227.36%2075.9332V66.0965L228.453%2065.0031H241.57L242.663%2066.0965V75.9332L243.757%2077.0265H255.78L256.874%2078.1199V89.05L255.78%2090.1434H243.757L242.663%2091.2368V115.284H242.66Z'%20fill='%23014847'/%3e%3cpath%20d='M283.1%20131.681H269.983L268.889%20130.587V56.2636L269.983%2055.1702H283.1L284.193%2056.2636V130.587L283.1%20131.681Z'%20fill='%23014847'/%3e%3cpath%20d='M312.61%2068.2871H299.493L298.399%2067.1937V56.2636L299.493%2055.1702H312.61L313.703%2056.2636V67.1937L312.61%2068.2871ZM312.61%20131.681H299.493L298.399%20130.587V78.1237L299.493%2077.0304H312.61L313.703%2078.1237V130.587L312.61%20131.681Z'%20fill='%23014847'/%3e%3cpath%20d='M363.98%2056.2636V67.1937L362.886%2068.2871H353.05C350.863%2068.2871%20349.769%2069.3805%20349.769%2071.5672V75.9408L350.863%2077.0342H361.793L362.886%2078.1276V89.0576L361.793%2090.151H350.863L349.769%2091.2444V130.591L348.676%20131.684H335.559L334.466%20130.591V91.2444L333.372%2090.151H325.723L324.629%2089.0576V78.1276L325.723%2077.0342H333.372L334.466%2075.9408V71.5672C334.466%2059.5438%20343.209%2055.1702%20353.046%2055.1702H362.882L363.976%2056.2636H363.98Z'%20fill='%23014847'/%3e%3cpath%20d='M404.42%20132.774C400.046%20143.704%20395.677%20150.261%20380.373%20150.261H374.906L373.813%20149.167V138.237L374.906%20137.144H380.373C385.836%20137.144%20386.929%20136.05%20388.023%20132.77V131.677L370.536%2089.05V78.1199L371.63%2077.0265H381.466L382.56%2078.1199L395.677%20115.284H396.77L409.887%2078.1199L410.98%2077.0265H420.817L421.91%2078.1199V89.05L404.424%20132.77L404.42%20132.774Z'%20fill='%23014847'/%3e%3cpath%20d='M135.454%20131.681L134.361%20130.587L134.368%2098.9172C134.368%2093.4541%20132.22%2089.2182%20125.625%2089.0806C122.234%2088.9926%20118.354%2089.0729%20114.209%2089.2488L113.59%2089.8834L113.598%20130.587L112.504%20131.681H99.3913L98.2979%20130.587V77.5388L99.3913%2076.4454L128.901%2076.1778C143.685%2076.1778%20149.668%2086.3356%20149.668%2097.8009V130.587L148.575%20131.681H135.454Z'%20fill='%23014847'/%3e%3c/g%3e%3cdefs%3e%3cclipPath%20id='clip0_235_8'%3e%3crect%20width='512'%20height='208.126'%20fill='white'/%3e%3c/clipPath%3e%3c/defs%3e%3c/svg%3e",uA="data:image/svg+xml,%3csvg%20width='512'%20height='209'%20viewBox='0%200%20512%20209'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20clip-path='url(%23clip0_235_26)'%3e%3cpath%20d='M117.436%20207.036V154.604L118.529%20153.51H129.452L130.545%20154.604V207.036L129.452%20208.13H118.529L117.436%20207.036Z'%20fill='%2332E6E2'/%3e%3cpath%20d='M117.436%2053.5225V1.09339L118.529%200H129.452L130.545%201.09339V53.5225L129.452%2054.6159H118.529L117.436%2053.5225Z'%20fill='%2332E6E2'/%3e%3cpath%20d='M69.9539%20169.238H68.4094L60.6869%20161.512V159.967L78.7201%20141.938L86.8976%20141.942L87.9948%20143.031V151.209L69.9539%20169.238Z'%20fill='%2332E6E2'/%3e%3cpath%20d='M69.9462%2038.8917H68.4017L60.6792%2046.6181V48.1626L78.7124%2066.192L86.8899%2066.1882L87.9871%2065.0986V56.9212L69.9462%2038.8917Z'%20fill='%2332E6E2'/%3e%3cpath%20d='M1.09339%2097.5104H75.3711L76.4645%2098.6038V109.526L75.3711%20110.62H1.09339L0%20109.526V98.6038L1.09339%2097.5104Z'%20fill='%2332E6E2'/%3e%3cpath%20d='M440.999%2097.5104H510.91L512.004%2098.6038V109.526L510.91%20110.62H436.633L435.539%20109.526L439.905%2098.6038L440.999%2097.5104Z'%20fill='%2332E6E2'/%3e%3cpath%20d='M212.056%20108.727L210.963%20109.821H177.079L175.986%20110.914C175.986%20113.101%20178.173%20119.657%20186.916%20119.657C190.196%20119.657%20193.472%20118.564%20194.566%20116.377L195.659%20115.284H208.776L209.869%20116.377C208.776%20122.934%20203.313%20132.774%20186.916%20132.774C168.336%20132.774%20159.589%20119.657%20159.589%20104.357C159.589%2089.0576%20168.332%2075.9408%20185.822%2075.9408C203.313%2075.9408%20212.056%2089.0576%20212.056%20104.357V108.731V108.727ZM195.659%2097.7971C195.659%2096.7037%20194.566%2089.0538%20185.822%2089.0538C177.079%2089.0538%20175.986%2096.7037%20175.986%2097.7971L177.079%2098.8905H194.566L195.659%2097.7971Z'%20fill='white'/%3e%3cpath%20d='M242.66%20115.284C242.66%20117.47%20243.753%20118.564%20245.94%20118.564H255.776L256.87%20119.657V130.587L255.776%20131.681H245.94C236.103%20131.681%20227.36%20127.307%20227.36%20115.284V91.2368L226.266%2090.1434H218.617L217.523%2089.05V78.1199L218.617%2077.0265H226.266L227.36%2075.9332V66.0965L228.453%2065.0031H241.57L242.663%2066.0965V75.9332L243.757%2077.0265H255.78L256.874%2078.1199V89.05L255.78%2090.1434H243.757L242.663%2091.2368V115.284H242.66Z'%20fill='white'/%3e%3cpath%20d='M283.1%20131.681H269.983L268.889%20130.587V56.2636L269.983%2055.1702H283.1L284.193%2056.2636V130.587L283.1%20131.681Z'%20fill='white'/%3e%3cpath%20d='M312.61%2068.2871H299.493L298.399%2067.1937V56.2636L299.493%2055.1702H312.61L313.703%2056.2636V67.1937L312.61%2068.2871ZM312.61%20131.681H299.493L298.399%20130.587V78.1237L299.493%2077.0304H312.61L313.703%2078.1237V130.587L312.61%20131.681Z'%20fill='white'/%3e%3cpath%20d='M363.98%2056.2636V67.1937L362.886%2068.2871H353.05C350.863%2068.2871%20349.769%2069.3805%20349.769%2071.5672V75.9408L350.863%2077.0342H361.793L362.886%2078.1276V89.0576L361.793%2090.151H350.863L349.769%2091.2444V130.591L348.676%20131.684H335.559L334.466%20130.591V91.2444L333.372%2090.151H325.723L324.629%2089.0576V78.1276L325.723%2077.0342H333.372L334.466%2075.9408V71.5672C334.466%2059.5438%20343.209%2055.1702%20353.046%2055.1702H362.882L363.976%2056.2636H363.98Z'%20fill='white'/%3e%3cpath%20d='M404.42%20132.774C400.046%20143.704%20395.677%20150.261%20380.373%20150.261H374.906L373.813%20149.167V138.237L374.906%20137.144H380.373C385.836%20137.144%20386.929%20136.05%20388.023%20132.77V131.677L370.536%2089.05V78.1199L371.63%2077.0265H381.466L382.56%2078.1199L395.677%20115.284H396.77L409.887%2078.1199L410.98%2077.0265H420.817L421.91%2078.1199V89.05L404.424%20132.77L404.42%20132.774Z'%20fill='white'/%3e%3cpath%20d='M135.454%20131.681L134.361%20130.587L134.368%2098.9172C134.368%2093.4541%20132.22%2089.2182%20125.625%2089.0806C122.234%2088.9926%20118.354%2089.0729%20114.209%2089.2488L113.59%2089.8834L113.598%20130.587L112.504%20131.681H99.3913L98.2979%20130.587V77.5388L99.3913%2076.4454L128.901%2076.1778C143.685%2076.1778%20149.668%2086.3356%20149.668%2097.8009V130.587L148.575%20131.681H135.454Z'%20fill='white'/%3e%3c/g%3e%3cdefs%3e%3cclipPath%20id='clip0_235_26'%3e%3crect%20width='512'%20height='208.126'%20fill='white'/%3e%3c/clipPath%3e%3c/defs%3e%3c/svg%3e",dA="/assets/lovable-black-1mVxR6Bj.svg",pA="/assets/lovable-white-DLB1BxKZ.svg",fA="data:image/svg+xml,%3csvg%20height='88.59'%20viewBox='0%200%20516.8%2088.59'%20width='516.8'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20fill='%23fff'%3e%3cpath%20d='m467.88%2044.55-22.19-29.38h25.72l45.39%2059.77h-25.97l-10.09-13.37-10.09%2013.37h-25.85z'/%3e%3cpath%20d='m490.26%2015.17h25.6l-19.65%2026.17-13-16.77z'/%3e%3cpath%20d='m115.27%2068.32c-6.18-5.25-9.27-13.01-9.27-23.26s3.15-18.01%209.46-23.26c6.3-5.25%2014.92-7.88%2025.85-7.88%204.54%200%208.55.31%2012.04.95%203.49.63%206.83%201.7%2010.02%203.22v16.63c-4.96-2.35-10.59-3.53-16.89-3.53-5.55%200-9.65%201.05-12.29%203.15-2.65%202.1-3.97%205.67-3.97%2010.72s1.3%208.41%203.91%2010.59c2.6%202.19%206.72%203.28%2012.36%203.28%205.97%200%2011.64-1.39%2017.02-4.16v17.4c-5.97%202.69-13.41%204.03-22.32%204.03-11.11%200-19.74-2.63-25.92-7.88z'/%3e%3cpath%20d='m168.89%2045.05c0-10.17%202.9-17.9%208.7-23.2s14.54-7.94%2026.23-7.94%2020.57%202.65%2026.42%207.94c5.84%205.29%208.76%2013.03%208.76%2023.2%200%2020.76-11.73%2031.14-35.18%2031.14-23.29.01-34.93-10.37-34.93-31.14zm43.32%2010.6c1.72-2.19%202.58-5.72%202.58-10.59s-.86-8.3-2.58-10.53-4.52-3.34-8.39-3.34-6.52%201.12-8.2%203.34c-1.68%202.23-2.52%205.74-2.52%2010.53s.84%208.41%202.52%2010.59c1.68%202.19%204.41%203.28%208.2%203.28%203.87%200%206.66-1.1%208.39-3.28z'/%3e%3cpath%20d='m244.52%2015.17h22.19l.63%204.54c2.44-1.68%205.55-3.07%209.33-4.16s7.69-1.64%2011.73-1.64c7.48%200%2012.94%201.85%2016.39%205.55s5.17%209.41%205.17%2017.15v38.33h-23.7v-35.94c0-2.69-.61-4.62-1.83-5.8s-3.26-1.76-6.12-1.76c-1.76%200-3.57.4-5.42%201.2s-3.4%201.83-4.67%203.09v39.21h-23.7z'/%3e%3cpath%20d='m310.03%2015.17h24.71l11.35%2035.05%2011.35-35.05h24.71l-23.58%2059.77h-24.97z'/%3e%3cpath%20d='m389.61%2069.8c-7.12-5.34-10.45-14.61-10.45-24.62s2.65-17.78%208.7-23.33%2015.27-7.94%2026.91-7.94c10.71%200%2019.13%202.48%2025.28%207.44%206.14%204.96%209.22%2011.73%209.22%2020.3v10.47h-45.07c1.12%203.11%202.54%205.36%206.03%206.75s8.36%202.08%2014.59%202.08c3.72%200%207.52-.29%2011.38-.88%201.36-.21%203.6-.54%204.78-.79v14.53c-5.89%201.6-13.74%202.4-22.59%202.4-11.91-.01-21.66-1.07-28.78-6.41zm34.76-30.54c0-2.96-3.41-9.33-10.26-9.33-6.18%200-10.26%206.27-10.26%209.33z'/%3e%3cpath%20d='m55.59%2069.82c13.1-1.43%2025.45-8.29%2032.25-19.74-3.22%2028.32-34.73%2046.22-60.45%2035.23-2.37-1.01-4.41-2.69-5.81-4.85-5.78-8.92-7.68-20.27-4.95-30.57%207.8%2013.23%2023.66%2021.34%2038.96%2019.93z'/%3e%3cpath%20d='m16.15%2041.58c-5.31%2012.06-5.54%2026.18.97%2037.8-22.91-16.94-22.66-53.19-.28-69.96%202.07-1.55%204.53-2.47%207.11-2.61%2010.61-.55%2021.39%203.48%2028.95%2010.99-15.36.15-30.32%209.82-36.75%2023.78z'/%3e%3cpath%20d='m60.31%2021.51c-7.75-10.62-19.88-17.85-33.17-18.07%2025.69-11.46%2057.29%207.12%2060.73%2034.59.32%202.55-.1%205.15-1.25%207.45-4.8%209.58-13.7%2017.01-24.1%2019.76%207.62-13.89%206.68-30.86-2.21-43.73z'/%3e%3c/g%3e%3c/svg%3e",mA="data:image/svg+xml,%3csvg%20height='88.59'%20viewBox='0%200%20516.8%2088.59'%20width='516.8'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='m467.88%2044.55-22.19-29.38h25.72l45.39%2059.77h-25.97l-10.09-13.37-10.09%2013.37h-25.85z'/%3e%3cpath%20d='m490.26%2015.17h25.6l-19.65%2026.17-13-16.77z'/%3e%3cpath%20d='m115.27%2068.32c-6.18-5.25-9.27-13.01-9.27-23.26s3.15-18.01%209.46-23.26c6.3-5.25%2014.92-7.88%2025.85-7.88%204.54%200%208.55.31%2012.04.95%203.49.63%206.83%201.7%2010.02%203.22v16.63c-4.96-2.35-10.59-3.53-16.89-3.53-5.55%200-9.65%201.05-12.29%203.15-2.65%202.1-3.97%205.67-3.97%2010.72s1.3%208.41%203.91%2010.59c2.6%202.19%206.72%203.28%2012.36%203.28%205.97%200%2011.64-1.39%2017.02-4.16v17.4c-5.97%202.69-13.41%204.03-22.32%204.03-11.11%200-19.74-2.63-25.92-7.88z'/%3e%3cpath%20d='m168.89%2045.05c0-10.17%202.9-17.9%208.7-23.2s14.54-7.94%2026.23-7.94%2020.57%202.65%2026.42%207.94c5.84%205.29%208.76%2013.03%208.76%2023.2%200%2020.76-11.73%2031.14-35.18%2031.14-23.29.01-34.93-10.37-34.93-31.14zm43.32%2010.6c1.72-2.19%202.58-5.72%202.58-10.59s-.86-8.3-2.58-10.53-4.52-3.34-8.39-3.34-6.52%201.12-8.2%203.34c-1.68%202.23-2.52%205.74-2.52%2010.53s.84%208.41%202.52%2010.59c1.68%202.19%204.41%203.28%208.2%203.28%203.87%200%206.66-1.1%208.39-3.28z'/%3e%3cpath%20d='m244.52%2015.17h22.19l.63%204.54c2.44-1.68%205.55-3.07%209.33-4.16s7.69-1.64%2011.73-1.64c7.48%200%2012.94%201.85%2016.39%205.55s5.17%209.41%205.17%2017.15v38.33h-23.7v-35.94c0-2.69-.61-4.62-1.83-5.8s-3.26-1.76-6.12-1.76c-1.76%200-3.57.4-5.42%201.2s-3.4%201.83-4.67%203.09v39.21h-23.7z'/%3e%3cpath%20d='m310.03%2015.17h24.71l11.35%2035.05%2011.35-35.05h24.71l-23.58%2059.77h-24.97z'/%3e%3cpath%20d='m389.61%2069.8c-7.12-5.34-10.45-14.61-10.45-24.62s2.65-17.78%208.7-23.33%2015.27-7.94%2026.91-7.94c10.71%200%2019.13%202.48%2025.28%207.44%206.14%204.96%209.22%2011.73%209.22%2020.3v10.47h-45.07c1.12%203.11%202.54%205.36%206.03%206.75s8.36%202.08%2014.59%202.08c3.72%200%207.52-.29%2011.38-.88%201.36-.21%203.6-.54%204.78-.79v14.53c-5.89%201.6-13.74%202.4-22.59%202.4-11.91-.01-21.66-1.07-28.78-6.41zm34.76-30.54c0-2.96-3.41-9.33-10.26-9.33-6.18%200-10.26%206.27-10.26%209.33z'/%3e%3cpath%20d='m55.59%2069.82c13.1-1.43%2025.45-8.29%2032.25-19.74-3.22%2028.32-34.73%2046.22-60.45%2035.23-2.37-1.01-4.41-2.69-5.81-4.85-5.78-8.92-7.68-20.27-4.95-30.57%207.8%2013.23%2023.66%2021.34%2038.96%2019.93z'%20fill='%23f3b01c'/%3e%3cpath%20d='m16.15%2041.58c-5.31%2012.06-5.54%2026.18.97%2037.8-22.91-16.94-22.66-53.19-.28-69.96%202.07-1.55%204.53-2.47%207.11-2.61%2010.61-.55%2021.39%203.48%2028.95%2010.99-15.36.15-30.32%209.82-36.75%2023.78z'%20fill='%238d2676'/%3e%3cpath%20d='m60.31%2021.51c-7.75-10.62-19.88-17.85-33.17-18.07%2025.69-11.46%2057.29%207.12%2060.73%2034.59.32%202.55-.1%205.15-1.25%207.45-4.8%209.58-13.7%2017.01-24.1%2019.76%207.62-13.89%206.68-30.86-2.21-43.73z'%20fill='%23ee342f'/%3e%3c/svg%3e",hA="/assets/clerk-logo-light-BYN-U_0H.svg",gA="/assets/clerk-logo-dark-CRE22T_2.svg",vA="data:image/svg+xml,%3csvg%20height='119'%20viewBox='0%200%20222%2066'%20width='400'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='m29%202.26a4.67%204.67%200%200%200%20-8%200l-6.58%2011.27a32.21%2032.21%200%200%201%2017.75%2026.66h-4.62a27.68%2027.68%200%200%200%20-15.46-22.72l-6.09%2010.53a15.92%2015.92%200%200%201%209.23%2012.17h-10.61a.76.76%200%200%201%20-.62-1.11l2.94-5a10.74%2010.74%200%200%200%20-3.36-1.9l-2.91%205a4.54%204.54%200%200%200%201.69%206.24%204.66%204.66%200%200%200%202.26.6h14.53a19.4%2019.4%200%200%200%20-8-17.31l2.31-4a23.87%2023.87%200%200%201%2010.3%2021.31h12.31a35.88%2035.88%200%200%200%20-16.41-31.8l4.67-8a.77.77%200%200%201%201.05-.27c.53.29%2020.29%2034.77%2020.66%2035.17a.76.76%200%200%201%20-.68%201.13h-4.76q.09%201.91%200%203.81h4.78a4.59%204.59%200%200%200%204.62-4.61%204.49%204.49%200%200%200%20-.62-2.28zm95.32%2026.02-14.76-19.06h-3.68v25.55h3.73v-19.58l15.18%2019.58h3.26v-25.55h-3.73zm-37.17-4.74h13.23v-3.32h-13.24v-7.69h14.93v-3.32h-18.73v25.56h18.92v-3.32h-15.12zm-15.56-3.24c-5.15-1.24-6.59-2.22-6.59-4.6%200-2.14%201.89-3.59%204.71-3.59a12.06%2012.06%200%200%201%207.07%202.55l2-2.83a14.1%2014.1%200%200%200%20-9-3c-5.06%200-8.59%203-8.59%207.27%200%204.6%203%206.19%208.46%207.52%204.86%201.12%206.35%202.16%206.35%204.49s-2%203.77-5.09%203.77a12.34%2012.34%200%200%201%20-8.3-3.26l-2.25%202.69a15.94%2015.94%200%200%200%2010.42%203.85c5.48%200%209-2.95%209-7.51-.03-3.86-2.31-5.93-8.19-7.35zm124.11-11.08-7.69%2012-7.64-12h-4.46l10.09%2015.45v10.11h3.84v-10.23l10.16-15.33zm-64.63%203.46h8.37v22.1h3.84v-22.1h8.37v-3.46h-20.57zm38.34%2012.12c3.86-1.07%206-3.77%206-7.63%200-4.91-3.59-8-9.38-8h-11.36v25.59h3.8v-9.18h6.45l6.48%209.2h4.44l-7-9.82zm-10.95-2.5v-9.7h7.17c3.74%200%205.88%201.77%205.88%204.84s-2.29%204.86-5.84%204.86z'%20fill='%23fff'%20transform='translate(11%2011)'/%3e%3c/svg%3e",yA="data:image/svg+xml,%3csvg%20height='119'%20viewBox='0%200%20222%2066'%20width='400'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='m29%202.26a4.67%204.67%200%200%200%20-8%200l-6.58%2011.27a32.21%2032.21%200%200%201%2017.75%2026.66h-4.62a27.68%2027.68%200%200%200%20-15.46-22.72l-6.09%2010.53a15.92%2015.92%200%200%201%209.23%2012.17h-10.61a.76.76%200%200%201%20-.62-1.11l2.94-5a10.74%2010.74%200%200%200%20-3.36-1.9l-2.91%205a4.54%204.54%200%200%200%201.69%206.24%204.66%204.66%200%200%200%202.26.6h14.53a19.4%2019.4%200%200%200%20-8-17.31l2.31-4a23.87%2023.87%200%200%201%2010.3%2021.31h12.31a35.88%2035.88%200%200%200%20-16.41-31.8l4.67-8a.77.77%200%200%201%201.05-.27c.53.29%2020.29%2034.77%2020.66%2035.17a.76.76%200%200%201%20-.68%201.13h-4.76q.09%201.91%200%203.81h4.78a4.59%204.59%200%200%200%204.62-4.61%204.49%204.49%200%200%200%20-.62-2.28zm95.32%2026.02-14.76-19.06h-3.68v25.55h3.73v-19.58l15.18%2019.58h3.26v-25.55h-3.73zm-37.17-4.74h13.23v-3.32h-13.24v-7.69h14.93v-3.32h-18.73v25.56h18.92v-3.32h-15.12zm-15.56-3.24c-5.15-1.24-6.59-2.22-6.59-4.6%200-2.14%201.89-3.59%204.71-3.59a12.06%2012.06%200%200%201%207.07%202.55l2-2.83a14.1%2014.1%200%200%200%20-9-3c-5.06%200-8.59%203-8.59%207.27%200%204.6%203%206.19%208.46%207.52%204.86%201.12%206.35%202.16%206.35%204.49s-2%203.77-5.09%203.77a12.34%2012.34%200%200%201%20-8.3-3.26l-2.25%202.69a15.94%2015.94%200%200%200%2010.42%203.85c5.48%200%209-2.95%209-7.51-.03-3.86-2.31-5.93-8.19-7.35zm124.11-11.08-7.69%2012-7.64-12h-4.46l10.09%2015.45v10.11h3.84v-10.23l10.16-15.33zm-64.63%203.46h8.37v22.1h3.84v-22.1h8.37v-3.46h-20.57zm38.34%2012.12c3.86-1.07%206-3.77%206-7.63%200-4.91-3.59-8-9.38-8h-11.36v25.59h3.8v-9.18h6.45l6.48%209.2h4.44l-7-9.82zm-10.95-2.5v-9.7h7.17c3.74%200%205.88%201.77%205.88%204.84s-2.29%204.86-5.84%204.86z'%20fill='%23362d59'%20transform='translate(11%2011)'/%3e%3c/svg%3e",bA="/assets/speakeasy-light-UpY7QmwQ.svg",wA="/assets/speakeasy-dark-BjP-Hd9M.svg",_A="data:image/svg+xml,%3csvg%20width='158'%20height='44'%20viewBox='0%200%20158%2044'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20clip-path='url(%23clip0_8138_23)'%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M0%207.58621C0%203.39646%203.44137%200%207.68651%200H36.8952C41.1404%200%2044.5817%203.39646%2044.5817%207.58621V32.104C44.5817%2036.4386%2039.0241%2038.3197%2036.3287%2034.8976L27.902%2024.1991V37.1724C27.902%2040.9432%2024.8048%2044%2020.9842%2044H7.68651C3.44137%2044%200%2040.6035%200%2036.4138V7.58621ZM7.68651%206.06897C6.83748%206.06897%206.14921%206.74826%206.14921%207.58621V36.4138C6.14921%2037.2517%206.83748%2037.931%207.68651%2037.931H21.2148C21.6393%2037.931%2021.7528%2037.5914%2021.7528%2037.1724V19.7752C21.7528%2015.4407%2027.3104%2013.5594%2030.0059%2016.9816L38.4325%2027.6801V7.58621C38.4325%206.74826%2038.5129%206.06897%2037.6639%206.06897H7.68651Z'%20fill='%2332C0ED'/%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M0%207.58621C0%203.39646%203.44137%200%207.68651%200H36.8952C41.1404%200%2044.5817%203.39646%2044.5817%207.58621V32.104C44.5817%2036.4386%2039.0241%2038.3197%2036.3287%2034.8976L27.902%2024.1991V37.1724C27.902%2040.9432%2024.8048%2044%2020.9842%2044H7.68651C3.44137%2044%200%2040.6035%200%2036.4138V7.58621ZM7.68651%206.06897C6.83748%206.06897%206.14921%206.74826%206.14921%207.58621V36.4138C6.14921%2037.2517%206.83748%2037.931%207.68651%2037.931H21.2148C21.6393%2037.931%2021.7528%2037.5914%2021.7528%2037.1724V19.7752C21.7528%2015.4407%2027.3104%2013.5594%2030.0059%2016.9816L38.4325%2027.6801V7.58621C38.4325%206.74826%2038.5129%206.06897%2037.6639%206.06897H7.68651Z'%20fill='url(%23paint0_linear_8138_23)'/%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M0%207.58621C0%203.39646%203.44137%200%207.68651%200H36.8952C41.1404%200%2044.5817%203.39646%2044.5817%207.58621V32.104C44.5817%2036.4386%2039.0241%2038.3197%2036.3287%2034.8976L27.902%2024.1991V37.1724C27.902%2040.9432%2024.8048%2044%2020.9842%2044H7.68651C3.44137%2044%200%2040.6035%200%2036.4138V7.58621ZM7.68651%206.06897C6.83748%206.06897%206.14921%206.74826%206.14921%207.58621V36.4138C6.14921%2037.2517%206.83748%2037.931%207.68651%2037.931H21.2148C21.6393%2037.931%2021.7528%2037.5914%2021.7528%2037.1724V19.7752C21.7528%2015.4407%2027.3104%2013.5594%2030.0059%2016.9816L38.4325%2027.6801V7.58621C38.4325%206.74826%2038.5129%206.06897%2037.6639%206.06897H7.68651Z'%20fill='url(%23paint1_linear_8138_23)'%20fill-opacity='0.35'/%3e%3cpath%20d='M36.8954%200C41.1406%200%2044.5819%203.39646%2044.5819%207.58621V32.104C44.5819%2036.4386%2039.0243%2038.3197%2036.3289%2034.8976L27.9022%2024.1991V37.1724C27.9022%2040.9432%2024.805%2044%2020.9844%2044C21.4089%2044%2021.753%2043.6604%2021.753%2043.2414V19.7752C21.753%2015.4407%2027.3106%2013.5594%2030.0061%2016.9816L38.4327%2027.6801V1.51724C38.4327%200.679292%2037.7445%200%2036.8954%200Z'%20fill='%2363F655'/%3e%3cpath%20d='M75.1561%2012.9622V24.4706L63.8496%2012.9622H57.9648V31.7844H63.332V19.4155L75.6465%2031.7844H80.5232V12.9622H75.1561Z'%20fill='%231A1A1A'/%3e%3cpath%20d='M90.4724%2027.5898V24.2555H102.487V20.2491H90.4724V17.1569H105.048V12.9622H84.9963V31.7844H105.348V27.5898H90.4724Z'%20fill='%231A1A1A'/%3e%3cpath%20d='M119.61%2032.4029C127.157%2032.4029%20132.061%2028.746%20132.061%2022.3733C132.061%2016.0006%20127.157%2012.3438%20119.61%2012.3438C112.063%2012.3438%20107.187%2016.0006%20107.187%2022.3733C107.187%2028.746%20112.063%2032.4029%20119.61%2032.4029ZM119.61%2027.9393C115.415%2027.9393%20112.826%2025.9226%20112.826%2022.3733C112.826%2018.824%20115.442%2016.8073%20119.61%2016.8073C123.806%2016.8073%20126.394%2018.824%20126.394%2022.3733C126.394%2025.9226%20123.806%2027.9393%20119.61%2027.9393Z'%20fill='%231A1A1A'/%3e%3cpath%20d='M152.632%2012.9622V24.4706L141.326%2012.9622H135.441V31.7844H140.808V19.4155L153.123%2031.7844H157.999V12.9622H152.632Z'%20fill='%231A1A1A'/%3e%3c/g%3e%3cdefs%3e%3clinearGradient%20id='paint0_linear_8138_23'%20x1='44.5818'%20y1='44'%20x2='5.96033'%20y2='-0.503114'%20gradientUnits='userSpaceOnUse'%3e%3cstop%20stop-color='%232EF51C'/%3e%3cstop%20offset='1'%20stop-color='%232EF51C'%20stop-opacity='0'/%3e%3c/linearGradient%3e%3clinearGradient%20id='paint1_linear_8138_23'%20x1='44.5817'%20y1='44'%20x2='18.194'%20y2='33.6003'%20gradientUnits='userSpaceOnUse'%3e%3cstop%20stop-opacity='0.9'/%3e%3cstop%20offset='1'%20stop-color='%231A1A1A'%20stop-opacity='0'/%3e%3c/linearGradient%3e%3cclipPath%20id='clip0_8138_23'%3e%3crect%20width='158'%20height='44'%20fill='white'/%3e%3c/clipPath%3e%3c/defs%3e%3c/svg%3e",kA="data:image/svg+xml,%3csvg%20width='158'%20height='44'%20viewBox='0%200%20158%2044'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M0%207.58621C0%203.39646%203.44137%200%207.68651%200H36.8952C41.1404%200%2044.5817%203.39646%2044.5817%207.58621V32.104C44.5817%2036.4386%2039.0241%2038.3197%2036.3287%2034.8976L27.902%2024.1991V37.1724C27.902%2040.9432%2024.8048%2044%2020.9842%2044H7.68651C3.44137%2044%200%2040.6035%200%2036.4138V7.58621ZM7.68651%206.06897C6.83748%206.06897%206.14921%206.74826%206.14921%207.58621V36.4138C6.14921%2037.2517%206.83748%2037.931%207.68651%2037.931H21.2148C21.6393%2037.931%2021.7528%2037.5914%2021.7528%2037.1724V19.7752C21.7528%2015.4407%2027.3104%2013.5594%2030.0059%2016.9816L38.4325%2027.6801V7.58621C38.4325%206.74826%2038.5129%206.06897%2037.6639%206.06897H7.68651Z'%20fill='%2312FFF7'/%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M0%207.58621C0%203.39646%203.44137%200%207.68651%200H36.8952C41.1404%200%2044.5817%203.39646%2044.5817%207.58621V32.104C44.5817%2036.4386%2039.0241%2038.3197%2036.3287%2034.8976L27.902%2024.1991V37.1724C27.902%2040.9432%2024.8048%2044%2020.9842%2044H7.68651C3.44137%2044%200%2040.6035%200%2036.4138V7.58621ZM7.68651%206.06897C6.83748%206.06897%206.14921%206.74826%206.14921%207.58621V36.4138C6.14921%2037.2517%206.83748%2037.931%207.68651%2037.931H21.2148C21.6393%2037.931%2021.7528%2037.5914%2021.7528%2037.1724V19.7752C21.7528%2015.4407%2027.3104%2013.5594%2030.0059%2016.9816L38.4325%2027.6801V7.58621C38.4325%206.74826%2038.5129%206.06897%2037.6639%206.06897H7.68651Z'%20fill='url(%23paint0_linear_10558_11751)'/%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M0%207.58621C0%203.39646%203.44137%200%207.68651%200H36.8952C41.1404%200%2044.5817%203.39646%2044.5817%207.58621V32.104C44.5817%2036.4386%2039.0241%2038.3197%2036.3287%2034.8976L27.902%2024.1991V37.1724C27.902%2040.9432%2024.8048%2044%2020.9842%2044H7.68651C3.44137%2044%200%2040.6035%200%2036.4138V7.58621ZM7.68651%206.06897C6.83748%206.06897%206.14921%206.74826%206.14921%207.58621V36.4138C6.14921%2037.2517%206.83748%2037.931%207.68651%2037.931H21.2148C21.6393%2037.931%2021.7528%2037.5914%2021.7528%2037.1724V19.7752C21.7528%2015.4407%2027.3104%2013.5594%2030.0059%2016.9816L38.4325%2027.6801V7.58621C38.4325%206.74826%2038.5129%206.06897%2037.6639%206.06897H7.68651Z'%20fill='url(%23paint1_linear_10558_11751)'/%3e%3cpath%20d='M36.8954%200C41.1406%200%2044.5819%203.39646%2044.5819%207.58621V32.104C44.5819%2036.4386%2039.0243%2038.3197%2036.3289%2034.8976L27.9022%2024.1991V37.1724C27.9022%2040.9432%2024.805%2044%2020.9844%2044C21.4089%2044%2021.753%2043.6604%2021.753%2043.2414V19.7752C21.753%2015.4407%2027.3106%2013.5594%2030.0061%2016.9816L38.4327%2027.6801V1.51724C38.4327%200.679292%2037.7445%200%2036.8954%200Z'%20fill='%23B9FFB3'/%3e%3cpath%20d='M75.1561%2012.9622V24.4706L63.8496%2012.9622H57.9648V31.7844H63.332V19.4155L75.6465%2031.7844H80.5232V12.9622H75.1561Z'%20fill='white'/%3e%3cpath%20d='M90.4725%2027.5898V24.2555H102.487V20.2491H90.4725V17.1569H105.048V12.9622H84.9964V31.7844H105.348V27.5898H90.4725Z'%20fill='white'/%3e%3cpath%20d='M119.61%2032.4029C127.157%2032.4029%20132.061%2028.746%20132.061%2022.3733C132.061%2016.0006%20127.157%2012.3438%20119.61%2012.3438C112.063%2012.3438%20107.187%2016.0006%20107.187%2022.3733C107.187%2028.746%20112.063%2032.4029%20119.61%2032.4029ZM119.61%2027.9393C115.415%2027.9393%20112.826%2025.9226%20112.826%2022.3733C112.826%2018.824%20115.442%2016.8073%20119.61%2016.8073C123.806%2016.8073%20126.394%2018.824%20126.394%2022.3733C126.394%2025.9226%20123.806%2027.9393%20119.61%2027.9393Z'%20fill='white'/%3e%3cpath%20d='M152.632%2012.9622V24.4706L141.326%2012.9622H135.441V31.7844H140.808V19.4155L153.123%2031.7844H157.999V12.9622H152.632Z'%20fill='white'/%3e%3cdefs%3e%3clinearGradient%20id='paint0_linear_10558_11751'%20x1='44.5818'%20y1='44'%20x2='5.96033'%20y2='-0.503116'%20gradientUnits='userSpaceOnUse'%3e%3cstop%20stop-color='%23B9FFB3'/%3e%3cstop%20offset='1'%20stop-color='%23B9FFB3'%20stop-opacity='0'/%3e%3c/linearGradient%3e%3clinearGradient%20id='paint1_linear_10558_11751'%20x1='44.5817'%20y1='44'%20x2='18.194'%20y2='33.6003'%20gradientUnits='userSpaceOnUse'%3e%3cstop%20stop-color='%231A1A1A'%20stop-opacity='0.9'/%3e%3cstop%20offset='1'%20stop-color='%231A1A1A'%20stop-opacity='0'/%3e%3c/linearGradient%3e%3c/defs%3e%3c/svg%3e",SA="data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='UTF-8'?%3e%3csvg%20width='92px'%20height='27px'%20viewBox='0%200%2092%2027'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%3e%3ctitle%3eShape%3c/title%3e%3cg%20id='Page-1'%20stroke='none'%20stroke-width='1'%20fill='none'%20fill-rule='evenodd'%3e%3cpath%20d='M9.8,21.3%20C3.8,21.3%200.38,18.12%200.38,12.66%20L0.38,0.9%20L3.59,0.9%20L3.59,12.45%20C3.59,16.5%205.39,18.18%209.8,18.18%20C14.21,18.18%2016.01,16.5%2016.01,12.45%20L16.01,0.9%20L19.25,0.9%20L19.25,12.66%20C19.25,18.12%2015.83,21.3%209.8,21.3%20L9.8,21.3%20Z%20M25.3611,21%20L22.1211,21%20L22.1211,6.09%20L25.0911,6.09%20L25.0911,10.71%20L25.3011,10.71%20C25.7511,8.19%2027.7311,5.79%2031.5111,5.79%20C35.6511,5.79%2037.6911,8.58%2037.6911,12.03%20L37.6911,21%20L34.4511,21%20L34.4511,12.9%20C34.4511,10.11%2033.1911,8.7%2030.1011,8.7%20C26.8311,8.7%2025.3611,10.38%2025.3611,13.62%20L25.3611,21%20Z%20M43.8181,21%20L40.5781,21%20L40.5781,0.9%20L43.8181,0.9%20L43.8181,12%20L48.0781,12%20L52.5481,6.09%20L56.3281,6.09%20L50.7181,13.26%20L56.2981,21%20L52.4881,21%20L48.0781,14.91%20L43.8181,14.91%20L43.8181,21%20Z%20M65.4219,21.3%20C60.5319,21.3%2057.3219,18.54%2057.3219,13.56%20C57.3219,8.91%2060.5019,5.79%2065.3619,5.79%20C69.9819,5.79%2073.1319,8.34%2073.1319,12.87%20C73.1319,13.41%2073.1019,13.83%2073.0119,14.28%20L60.3519,14.28%20C60.4719,17.16%2061.8819,18.69%2065.3319,18.69%20C68.4519,18.69%2069.7419,17.67%2069.7419,15.9%20L69.7419,15.66%20L72.9819,15.66%20L72.9819,15.93%20C72.9819,19.11%2069.8619,21.3%2065.4219,21.3%20L65.4219,21.3%20Z%20M65.3019,8.34%20C62.0019,8.34%2060.5619,9.81%2060.3819,12.48%20L70.0719,12.48%20L70.0719,12.42%20C70.0719,9.66%2068.4819,8.34%2065.3019,8.34%20L65.3019,8.34%20Z%20M77.9586,26.1%20L75.8286,26.1%20L75.8286,23.16%20L78.7386,23.16%20C80.0586,23.16%2080.5986,22.8%2081.0486,21.78%20L81.4086,21%20L74.0586,6.09%20L77.6886,6.09%20L81.4986,14.01%20L82.9686,17.58%20L83.2086,17.58%20L84.6186,13.98%20L88.1286,6.09%20L91.6986,6.09%20L83.9286,22.62%20C82.6986,25.29%2081.0186,26.1%2077.9586,26.1%20Z'%20id='Shape'%20fill='%23000000'%20fill-rule='nonzero'%3e%3c/path%3e%3c/g%3e%3c/svg%3e",xA="data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='UTF-8'?%3e%3csvg%20width='92px'%20height='27px'%20viewBox='0%200%2092%2027'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%3e%3ctitle%3eShape%3c/title%3e%3cg%20id='Page-1'%20stroke='none'%20stroke-width='1'%20fill='none'%20fill-rule='evenodd'%3e%3cpath%20d='M9.8,21.3%20C3.8,21.3%200.38,18.12%200.38,12.66%20L0.38,0.9%20L3.59,0.9%20L3.59,12.45%20C3.59,16.5%205.39,18.18%209.8,18.18%20C14.21,18.18%2016.01,16.5%2016.01,12.45%20L16.01,0.9%20L19.25,0.9%20L19.25,12.66%20C19.25,18.12%2015.83,21.3%209.8,21.3%20L9.8,21.3%20Z%20M25.3611,21%20L22.1211,21%20L22.1211,6.09%20L25.0911,6.09%20L25.0911,10.71%20L25.3011,10.71%20C25.7511,8.19%2027.7311,5.79%2031.5111,5.79%20C35.6511,5.79%2037.6911,8.58%2037.6911,12.03%20L37.6911,21%20L34.4511,21%20L34.4511,12.9%20C34.4511,10.11%2033.1911,8.7%2030.1011,8.7%20C26.8311,8.7%2025.3611,10.38%2025.3611,13.62%20L25.3611,21%20Z%20M43.8181,21%20L40.5781,21%20L40.5781,0.9%20L43.8181,0.9%20L43.8181,12%20L48.0781,12%20L52.5481,6.09%20L56.3281,6.09%20L50.7181,13.26%20L56.2981,21%20L52.4881,21%20L48.0781,14.91%20L43.8181,14.91%20L43.8181,21%20Z%20M65.4219,21.3%20C60.5319,21.3%2057.3219,18.54%2057.3219,13.56%20C57.3219,8.91%2060.5019,5.79%2065.3619,5.79%20C69.9819,5.79%2073.1319,8.34%2073.1319,12.87%20C73.1319,13.41%2073.1019,13.83%2073.0119,14.28%20L60.3519,14.28%20C60.4719,17.16%2061.8819,18.69%2065.3319,18.69%20C68.4519,18.69%2069.7419,17.67%2069.7419,15.9%20L69.7419,15.66%20L72.9819,15.66%20L72.9819,15.93%20C72.9819,19.11%2069.8619,21.3%2065.4219,21.3%20L65.4219,21.3%20Z%20M65.3019,8.34%20C62.0019,8.34%2060.5619,9.81%2060.3819,12.48%20L70.0719,12.48%20L70.0719,12.42%20C70.0719,9.66%2068.4819,8.34%2065.3019,8.34%20L65.3019,8.34%20Z%20M77.9586,26.1%20L75.8286,26.1%20L75.8286,23.16%20L78.7386,23.16%20C80.0586,23.16%2080.5986,22.8%2081.0486,21.78%20L81.4086,21%20L74.0586,6.09%20L77.6886,6.09%20L81.4986,14.01%20L82.9686,17.58%20L83.2086,17.58%20L84.6186,13.98%20L88.1286,6.09%20L91.6986,6.09%20L83.9286,22.62%20C82.6986,25.29%2081.0186,26.1%2077.9586,26.1%20Z'%20id='Shape'%20fill='%23FFFFFF'%20fill-rule='nonzero'%3e%3c/path%3e%3c/g%3e%3c/svg%3e",EA="/assets/electric-dark-Bfu2Vl2j.svg",TA="/assets/electric-light-C-5MDda4.svg",IA="/assets/prisma-light-Cloa3Onm.svg",CA="/assets/prisma-dark-DwgDxLwn.svg",RA="/assets/coderabbit-light-CIzGLYU_.svg",$A="/assets/coderabbit-dark-D643Zkrv.svg",PA="/assets/strapi-light-6x7linao.svg",AA="/assets/strapi-dark-CQ84tQTk.svg",LA="/assets/serpapi-white-CPxTEZSp.svg",NA="/assets/serpapi-black-DnXRiQQ3.svg",DA="/assets/cloudflare-white-Co-Tyjbl.svg",OA="/assets/cloudflare-black-6Ojsn8yh.svg",_m="/assets/workos-black-DnPI5Ve5.svg",MA="data:image/svg+xml,%3csvg%20width='880'%20height='168'%20viewBox='0%200%20880%20168'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20clip-path='url(%23clip0_1647_45)'%3e%3cpath%20d='M255.264%2025.3765H279.579L297.086%2097.519C300.332%20111.135%20300.976%20119.244%20300.976%20119.244H301.304C301.304%20119.244%20302.435%20111.306%20305.681%2097.519L322.373%2025.3765H349.934L367.599%2097.519C371.003%20111.622%20371.818%20119.244%20371.818%20119.244H372.304C372.304%20119.244%20372.632%20111.622%20375.866%2097.519L392.729%2025.3765H417.043L386.249%20143.717H359.174L340.536%2072.0612C336.646%2056.4997%20336.318%2049.5334%20336.318%2049.5334H335.99C335.99%2049.5334%20335.661%2056.4997%20332.099%2072.0612L314.592%20143.717H286.715L255.264%2025.3765Z'%20fill='white'/%3e%3cpath%20d='M412.984%20100.726C412.984%2073.6509%20430.491%2056.1442%20456.921%2056.1442C483.181%2056.1442%20500.688%2073.6509%20500.688%20100.726C500.688%20127.958%20483.181%20145.635%20456.921%20145.635C430.503%20145.623%20412.984%20127.958%20412.984%20100.726ZM477.99%20100.726C477.99%2083.2189%20469.565%2073.3227%20456.921%2073.3227C443.305%2073.3227%20435.682%2084.3495%20435.682%20100.726C435.682%20118.561%20444.107%20128.445%20456.921%20128.445C470.537%20128.445%20477.99%20117.418%20477.99%20100.726Z'%20fill='white'/%3e%3cpath%20d='M511.545%2057.4711H533.101V73.3609H533.587C537.319%2065.0938%20546.231%2056.8267%20561.464%2056.8267C564.054%2056.8267%20565.683%2057.155%20566.813%2057.4711V79.0263H566.169C566.169%2079.0263%20564.224%2078.3819%20558.875%2078.3819C542.182%2078.3819%20533.101%2088.266%20533.101%20106.745V143.704H511.545V57.4711Z'%20fill='white'/%3e%3cpath%20d='M576.868%2025.3765H598.423V63.3079C598.423%2085.6776%20598.095%2089.7261%20598.095%2089.7261H598.423L630.519%2057.4723H657.424L619.833%2094.7592L663.442%20143.717H637.984L606.532%20108.047L598.423%20115.986V143.705H576.868V25.3765Z'%20fill='white'/%3e%3cpath%20d='M663.757%2084.9796C663.757%2048.5072%20686.455%2024.1923%20720.496%2024.1923C754.537%2024.1923%20777.235%2048.5072%20777.235%2084.9796C777.235%20121.452%20754.537%20145.767%20720.496%20145.767C686.455%20145.767%20663.757%20121.452%20663.757%2084.9796ZM753.722%2084.9796C753.722%2060.1784%20740.434%2043.474%20720.483%2043.474C700.533%2043.474%20687.257%2060.1784%20687.257%2084.9796C687.257%20109.781%20700.545%20126.485%20720.483%20126.485C740.422%20126.485%20753.722%20109.781%20753.722%2084.9796Z'%20fill='white'/%3e%3cpath%20d='M785.488%20104.326H810.131C810.131%20118.271%20819.699%20126.052%20834.288%20126.052C846.603%20126.052%20855.041%20119.888%20855.041%20111.135C855.041%20101.25%20848.561%2098.6488%20827.966%2094.6003C809.158%2090.868%20789.22%2084.5461%20789.22%2059.9029C789.22%2039.3203%20806.727%2023.7587%20833.473%2023.7587C861.35%2023.7587%20878.541%2038.3477%20878.541%2060.3892H853.898C853.898%2049.6906%20845.631%2043.0405%20833.473%2043.0405C821.158%2043.0405%20813.535%2049.0341%20813.535%2057.7875C813.535%2067.0272%20818.884%2070.5893%20835.419%2073.9934C859.892%2079.1847%20880%2081.9323%20880%20109.165C880%20130.745%20861.192%20145.333%20833.473%20145.333C805.268%20145.333%20785.488%20128.957%20785.488%20104.326Z'%20fill='white'/%3e%3cpath%20d='M0%2084.0003C0%2087.6782%200.967855%2091.356%202.83904%2094.5177L36.7785%20153.299C40.2628%20159.299%2045.5537%20164.203%2052.1351%20166.397C65.1044%20170.72%2078.5253%20165.171%2084.9131%20154.073L93.1076%20139.878L60.7813%2084.0003L94.9143%2024.8321L103.109%2010.6369C105.561%206.37836%20108.851%202.89408%20112.723%200.119568H109.174H60.0715C50.8446%200.119568%2042.3275%205.02337%2037.7463%2013.0243L2.83904%2073.483C0.967855%2076.6446%200%2080.3225%200%2084.0003Z'%20fill='white'/%3e%3cpath%20d='M193.571%2083.9997C193.571%2080.3219%20192.603%2076.644%20190.732%2073.4824L156.341%2013.9271C149.953%202.89352%20136.532%20-2.65551%20123.563%201.60305C116.982%203.79685%20111.691%208.70065%20108.206%2014.7013L100.464%2028.0577L132.79%2083.9997L98.6569%20143.168L90.4624%20157.363C88.0105%20161.557%2084.7198%20165.106%2080.8484%20167.88H84.3972H133.5C142.727%20167.88%20151.244%20162.977%20155.825%20154.976L190.732%2094.5171C192.603%2091.3554%20193.571%2087.6776%20193.571%2083.9997Z'%20fill='white'/%3e%3c/g%3e%3cdefs%3e%3cclipPath%20id='clip0_1647_45'%3e%3crect%20width='880'%20height='168'%20fill='white'/%3e%3c/clipPath%3e%3c/defs%3e%3c/svg%3e",FA="/assets/powersync-black-BbBE6VAv.svg",zA="/assets/powersync-white-W6vtdqx_.svg",VA="/assets/railway-black-DeBDfNao.svg",BA="/assets/railway-white-CFKFsfw2.svg",HA="/assets/openrouter-black-DNn7_580.svg",UA="/assets/openrouter-white-COMTfjvn.svg";function He(){return p("span",{className:"text-blue-500 uppercase font-black text-sm",children:"Learn More"})}var qY=["gold","silver","bronze"],GY={gold:"Gold",silver:"Silver",bronze:"Bronze"},jA={gold:1,silver:2,bronze:3},WY={gold:{gradientStops:"from-yellow-400 via-amber-500 to-orange-600 dark:from-yellow-300 dark:via-amber-400 dark:to-orange-400",iconColor:"text-amber-500 dark:text-amber-300",labelColor:"text-amber-600 dark:text-amber-300",icon:p("svg",{viewBox:"0 0 12 12",className:"h-3 w-3 fill-current","aria-hidden":!0,children:p("path",{d:"M6 0.5 L7.5 4.2 L11.5 4.6 L8.5 7.2 L9.4 11.2 L6 9.2 L2.6 11.2 L3.5 7.2 L0.5 4.6 L4.5 4.2 Z"})})},silver:{gradientStops:"from-slate-200 via-zinc-400 to-slate-300 dark:from-slate-300 dark:via-zinc-400 dark:to-slate-400",iconColor:"text-slate-400 dark:text-slate-300",labelColor:"text-slate-500 dark:text-slate-300",icon:p("svg",{viewBox:"0 0 12 12",className:"h-3 w-3 fill-current","aria-hidden":!0,children:p("path",{d:"M6 0 L7.2 4.8 L12 6 L7.2 7.2 L6 12 L4.8 7.2 L0 6 L4.8 4.8 Z"})})},bronze:{gradientStops:"from-amber-700 via-amber-800 to-amber-950 dark:from-amber-600 dark:via-amber-800 dark:to-amber-950",iconColor:"text-amber-800 dark:text-amber-600",labelColor:"text-amber-800 dark:text-amber-600",icon:p("svg",{viewBox:"0 0 12 12",className:"h-3 w-3 fill-current","aria-hidden":!0,children:p("path",{d:"M6 0.5 L11.5 6 L6 11.5 L0.5 6 Z"})})}};function ZY({className:e,config:t,alt:r}){const n=t.scale?{transform:`scale(${t.scale})`}:{};return"light"in t&&"dark"in t?_("div",{className:"w-full flex items-center justify-center",style:n,children:[p("img",{src:t.light,alt:r,loading:"lazy",className:e?`${e} dark:hidden`:"w-full dark:hidden",width:200,height:100,sizes:"(max-width: 640px) 80px, (max-width: 1024px) 150px, 200px"}),p("img",{src:t.dark,alt:r,loading:"lazy",className:e?`${e} hidden dark:block`:"w-full hidden dark:block",width:200,height:100,sizes:"(max-width: 640px) 80px, (max-width: 1024px) 150px, 200px"})]}):p("div",{className:"w-full flex items-center justify-center",style:n,children:p("img",{src:t.src,alt:r,className:e??"w-full",width:200,height:100,loading:"lazy",sizes:"(max-width: 640px) 80px, (max-width: 1024px) 150px, 200px"})})}var Bs={"code-review":"Code Review",deployment:"Deployment/Hosting","data-grid":"Data Grids",auth:"Authentication",database:"Databases",monitoring:"Error Monitoring",cms:"CMS",api:"API Management",ai:"AI/LLM",learning:"Learning Resources"},ed="Starter guidance:",td="Selected partner ids:",rd="Inferred partner ids:",nd="Force router-only: true";function KY(e){const[t]=e.split(` ${ed} `);return t?.trim()??""}function YY(e){const[,t]=e.split(` ${ed} `);return t?t.split(` `).map(r=>r.trim()).filter(r=>!r.startsWith(td)&&!r.startsWith(rd)&&r!==nd).filter(Boolean):[]}function XY(e){return e.includes(nd)}function N1({input:e,marker:t}){const r=t.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"),n=new RegExp(`${r}\\s*([^\\n]+)`,"i"),a=e.match(n)?.[1]?.trim();return a?a.split(",").map(o=>o.trim()).filter(Boolean):[]}function JY(e){return N1({input:e,marker:td})}function QY(e){return N1({input:e,marker:rd})}var qA={name:"Neon",id:"neon",libraries:["start","router"],status:"inactive",endDate:"Apr 2026",score:.297,href:"https://neon.tech?utm_source=tanstack",brandColor:"#00E599",tagline:"Serverless Postgres",image:{light:_A,dark:kA},llmDescription:"Serverless Postgres platform with branching, autoscaling compute, and separate storage and compute. Neon also publishes a TanStack Start setup prompt and docs for getting TanStack apps running on Postgres quickly.",category:"database",content:_(fe,{children:[_("div",{className:"text-xs",children:["Neon provides ",p("strong",{children:"serverless Postgres"})," with branching, autoscaling compute, and separate storage and compute. That makes it especially useful for preview environments, branch-based workflows, and fast iteration with TanStack Start."]}),p(He,{})]})},GA={name:"Convex",id:"convex",libraries:["start","router"],status:"inactive",startDate:"May 2024",endDate:"Mar 2026",score:.286,href:"https://convex.dev?utm_source=tanstack",brandColor:"#F3A712",tagline:"Real-time Database",image:{light:mA,dark:fA},llmDescription:"Reactive backend platform with a document database, relational data model, TypeScript functions, and realtime query updates. Convex also has an official TanStack Start quickstart.",category:"database",content:_(fe,{children:[_("div",{className:"text-xs",children:["Convex provides a ",p("strong",{children:"reactive backend"})," with TypeScript queries, mutations, and realtime updates to clients. For TanStack apps, it is a useful option when you want live data behavior without wiring your own sync layer by hand."]}),p(He,{})]})},WA={name:"Clerk",id:"clerk",href:"https://go.clerk.com/wOwHtuJ",libraries:["start","router"],status:"active",score:.286,tier:"silver",uniqueConstraints:["auth-provider"],brandColor:"#6C47FF",tagline:"Authentication",image:{light:hA,dark:gA,scale:.72},llmDescription:"Authentication and user management platform with prebuilt UI, sessions, organizations, and MFA. Clerk has official SDKs and quickstarts for TanStack React Start and React Router.",category:"auth",content:_(fe,{children:[_("div",{className:"text-xs",children:["Clerk provides ",p("strong",{children:"authentication and user management"}),"with prebuilt UI, sessions, organizations, and MFA. It also publishes official guides for"," ",p("strong",{children:"TanStack React Start and React Router"}),", which makes integration straightforward."]}),p(He,{})]})},ZA={name:"WorkOS",id:"workos",href:"https://workos.com?utm_source=tanstack",libraries:["start","router"],status:"active",score:.314,tier:"silver",uniqueConstraints:["auth-provider"],brandColor:"#6363F1",tagline:"Enterprise Auth",applicationStarterIcon:{mode:"left-crop",src:_m},image:{light:_m,dark:MA},llmDescription:"Enterprise identity platform with SSO, Directory Sync, MFA for AuthKit, RBAC, audit logs, and admin onboarding tools. It is a strong fit for B2B apps that need enterprise auth features.",category:"auth",content:_(fe,{children:[_("div",{className:"text-xs",children:["WorkOS focuses on ",p("strong",{children:"enterprise identity"})," features like SSO, Directory Sync, RBAC, audit logs, and admin onboarding, plus MFA in AuthKit. That makes it a practical fit for B2B TanStack apps with organization-level access requirements."]}),p(He,{})]})},KA={name:"AG Grid",id:"ag-grid",libraries:["table"],status:"active",score:.497,tier:"silver",href:"https://ag-grid.com/react-data-grid/?utm_source=reacttable&utm_campaign=githubreacttable",brandColor:"#FF8C00",tagline:"Enterprise Data Grid",applicationStarterIcon:{mode:"contain",src:"https://www.ag-grid.com/_astro/favicon-32.WDuB-104.png"},applicationStarterPromptInstructions:["Install ag-grid-react and ag-grid-community and use AG Grid Community by default for a real working demo.","Only add ag-grid-enterprise if a license key is explicitly provided or explicitly requested.","Render a real grid with explicit columns, row data, and a container height so the integration is visibly demonstrated in the app."],image:{light:nA,dark:aA,scale:1.1},llmDescription:"Data grid library with Community and Enterprise editions. Enterprise features include row grouping, pivoting, aggregation, Excel export, integrated charts, and the server-side row model.",category:"data-grid",content:_(fe,{children:[_("div",{className:"text-xs",children:["AG Grid covers the heavier end of the grid spectrum. Its",p("strong",{children:" Enterprise"})," offering adds row grouping, pivoting, aggregation, Excel export, integrated charts, and a server-side row model when a basic table UI is not enough."]}),p("button",{type:"button",onClick:()=>{window.location.href="/blog/ag-grid-partnership"},className:"text-blue-500 uppercase font-black text-sm",children:"Learn More"})]})},YA={name:"Netlify",id:"netlify",libraries:["start","router"],status:"active",score:.343,tier:"gold",uniqueConstraints:["hosting"],href:"https://netlify.com?utm_source=tanstack",brandColor:"#00C7B7",tagline:"Web Deployment",applicationStarterIcon:{mode:"contain",src:"https://www.netlify.com/favicon/icon.svg"},image:{light:lA,dark:uA,scale:1.25},llmDescription:"Deployment platform for web applications with Deploy Previews, Functions, Edge Functions, and an official TanStack Start integration guide.",category:"deployment",content:_(fe,{children:[_("div",{className:"text-xs",children:["Netlify provides ",p("strong",{children:"Deploy Previews"}),", Functions, Edge Functions, and a concrete TanStack Start integration path. That makes it useful when the deployment workflow is part of the product workflow, not an afterthought."]}),p(He,{})]})},XA={name:"Cloudflare",id:"cloudflare",href:"https://www.cloudflare.com?utm_source=tanstack",libraries:cr.map(e=>e.id),status:"active",score:.857,tier:"gold",uniqueConstraints:["hosting"],startDate:"Sep 2025",brandColor:"#F6821F",tagline:"Edge Deployment",image:{light:OA,dark:DA},llmDescription:"Global network and developer platform with Workers, KV, CDN, and security services. Cloudflare also documents deploying TanStack Start apps on Workers.",category:"deployment",content:_(fe,{children:[_("div",{className:"text-xs",children:["Cloudflare combines ",p("strong",{children:"Workers"}),", KV, CDN, and security services on a global network. It also documents deploying TanStack Start apps on Workers, including bindings and prerendering support."]}),p(He,{})]})},JA={name:"Lovable",id:"lovable",href:"https://lovable.dev?utm_source=tanstack",libraries:["start","router"],status:"active",score:.714,tier:"gold",uniqueConstraints:["hosting"],brandColor:"#FF7EB0",tagline:"AI App Builder",applicationStarterPromptInstructions:["Treat Lovable as the AI app-building and hosting path, not as a TanStack CLI deployment flag or npm package.","Keep the generated app portable: start with the TanStack CLI output, preserve GitHub/project ownership notes, and call out any Lovable Cloud setup that cannot be automated from code.","When Lovable is selected, do not add a separate Cloudflare, Netlify, or Railway deployment target unless the user explicitly asks for a handoff path."],image:{light:dA,dark:pA},llmDescription:"AI app-building platform for generating, editing, and shipping web apps from prompts, with GitHub sync, visual editing, Lovable Cloud hosting, and new TanStack Start-powered SSR projects.",category:"ai",content:_(fe,{children:[_("div",{className:"text-xs",children:["Lovable helps teams move from prompt to working app with"," ",p("strong",{children:"AI-assisted building"}),", visual editing, GitHub sync, and Lovable Cloud hosting. New Lovable projects are powered by TanStack Start, which makes it especially relevant for teams that want generated apps to keep strong routing, SSR, and type-safety foundations."]}),p(He,{})]})},QA={name:"Sentry",id:"sentry",libraries:["start","router"],status:"active",score:.229,tier:"bronze",href:"https://sentry.io?utm_source=tanstack",brandColor:"#362D59",tagline:"Error Monitoring",image:{light:yA,dark:vA},llmDescription:"Application monitoring platform for error tracking, tracing, replay, profiling, and logs. It also offers TanStack Router integration and an alpha TanStack Start React SDK.",category:"monitoring",content:_(fe,{children:[_("div",{className:"text-xs",children:["Sentry goes beyond basic error collection with"," ",p("strong",{children:"tracing"}),", replay, profiling, and logs. For TanStack apps, that makes it easier to debug issues across client behavior, routing, and performance."]}),p(He,{})]})},eL=(()=>{const e="https://bytes.dev?utm_source-tanstack&utm_campaign=tanstack";return{name:"Fireship",id:"fireship",libraries:[],status:"inactive",score:.014,href:e,tagline:"Dev Education",image:{src:iA},llmDescription:"Developer education brand behind Fireship courses and content, plus the Bytes JavaScript newsletter. Useful for staying current on web development and ecosystem trends.",category:"learning",content:_(fe,{children:[_("div",{className:"text-xs",children:["Fireship produces developer education and Bytes publishes a JavaScript newsletter. Together they are useful for helping more developers stay current on web tooling, patterns, and ecosystem changes. Learn more about"," ",p("button",{type:"button",className:"text-blue-500 underline cursor-pointer p-0 m-0 bg-transparent border-none inline",onClick:()=>window.open("https://fireship.dev/?utm_source=tanstack&utm_campaign=tanstack","_blank","noopener,noreferrer"),tabIndex:0,children:"Fireship"})," ","and"," ",p("button",{type:"button",className:"text-blue-500 underline cursor-pointer p-0 m-0 bg-transparent border-none inline",onClick:()=>window.open(e,"_blank","noopener,noreferrer"),tabIndex:0,children:"Bytes.dev"}),"."]}),p(He,{})]})}})(),tL={name:"Nozzle.io",id:"nozzle",href:"https://nozzle.io/?utm_source=tanstack&utm_campaign=tanstack",status:"inactive",score:.014,tagline:"Enterprise SEO",image:{src:oA},llmDescription:"Enterprise keyword rank tracking and SERP monitoring platform with large-scale SEO reporting, share-of-voice analysis, historical data, and export capabilities.",category:"learning",content:_(fe,{children:[_("div",{className:"text-xs",children:["Nozzle is an ",p("strong",{children:"enterprise SEO"})," product focused on rank tracking, share-of-voice reporting, historical SERP data, and large- scale exports. It remains relevant here because it represents a demanding, data-heavy product category with serious analytics needs."]}),p(He,{})]})},rL={name:"Speakeasy",id:"speakeasy",href:"https://www.speakeasy.com/product/react-query?utm_source=tanstack&utm_campaign=tanstack",libraries:["query"],status:"inactive",startDate:"Feb 2025",endDate:"Jul 2025",image:{light:bA,dark:wA},llmDescription:"API tooling focused on generating idiomatic SDKs, CLIs, Terraform providers, and hosted MCP servers from OpenAPI specs.",category:"api",content:_(fe,{children:[_("div",{className:"text-xs",children:["Speakeasy focuses on generating"," ",p("strong",{children:"SDKs, CLIs, Terraform providers, and hosted MCP servers"})," ","from OpenAPI specs. That is useful when TanStack frontends depend on well-generated client libraries instead of hand-maintained API code."]}),p(He,{})]})},nL={name:"Unkey",id:"unkey",libraries:["pacer"],status:"active",score:.051,tier:"bronze",href:"https://www.unkey.com/?utm_source=tanstack",brandColor:"#222222",tagline:"API Key Management",applicationStarterPromptInstructions:["Use Unkey server-side only and never expose root keys or management credentials in client code.","Choose one concrete integration path based on the app: API key verification with @unkey/api or endpoint rate limiting with @unkey/ratelimit.","If the product need is unclear, prefer a minimal server-side TODO or example wrapper instead of inventing both paths at once."],image:{light:SA,dark:xA,scale:.7},llmDescription:"API infrastructure for API key management, rate limiting, usage tracking, audit logs, and access controls.",category:"api",content:_(fe,{children:[_("div",{className:"text-xs",children:["Unkey provides ",p("strong",{children:"API key management"}),", rate limiting, usage tracking, audit logs, and access controls. That makes it a practical fit for TanStack-built products that expose APIs and need straightforward platform controls."]}),p(He,{})]})},aL={name:"SerpApi",id:"serpapi",libraries:cr.map(e=>e.id),status:"active",score:.41,tier:"silver",href:"https://serpapi.com?utm_source=tanstack",brandColor:"#6361EC",tagline:"Real-time SERP API",applicationStarterPromptInstructions:["Install the official serpapi package and keep all SerpApi usage server-side behind an app-owned endpoint or server function.","Read SERPAPI_API_KEY from environment variables and choose one explicit search engine instead of pretending to support every engine at once.","Normalize the response into app-owned data types before sending it to the UI."],image:{light:NA,dark:LA,scale:.92},llmDescription:"Search engine results API with structured JSON output, geo-targeting controls, CAPTCHA solving, and support for Google, Maps, Shopping, News, and other engines.",category:"api",content:_(fe,{children:[_("div",{className:"text-xs",children:["SerpApi handles search-engine access and returns structured results for Google and other engines, with ",p("strong",{children:"geo-targeting"}),", proxies, and CAPTCHA solving handled for you. That is useful for SEO products, search intelligence, and AI workflows built with TanStack."]}),p(He,{})]})},oL={name:"Electric",id:"electric",libraries:["db"],status:"active",score:.283,tier:"bronze",href:"https://electric-sql.com",brandColor:"#7e78db",tagline:"Sync Engine",applicationStarterPromptInstructions:["Treat Electric as a platform-level integration, not a small drop-in add-on.","Do not hand-roll full sync plumbing unless the prompt explicitly asks for that; prefer clear setup notes or TODOs that point to the official Electric starter path.","If you demonstrate Electric at all, keep it to thin scaffolding and make missing local tooling or service setup explicit."],image:{light:TA,dark:EA},llmDescription:"Sync-focused data platform for Postgres-backed apps, including Postgres Sync and the partnered TanStack DB project. It is built for reactive and collaborative applications that need live data sync.",category:"database",content:_(fe,{children:[_("div",{className:"text-xs",children:["Electric is focused on"," ",p("strong",{children:"sync and reactive data delivery"}),"for Postgres-backed apps, including Postgres Sync and its work with TanStack DB. It is especially relevant for collaborative or local- first apps where live data movement is part of the core product."]}),p(He,{})]})},iL={name:"Vercel",id:"vercel",href:"https://vercel.com?utm_source=tanstack",libraries:["start","router"],status:"inactive",startDate:"May 2024",endDate:"Oct 2024",uniqueConstraints:["hosting"],image:{light:sA,dark:cA},llmDescription:"Cloud platform for deploying and scaling web applications with Git-based workflows, preview environments, global delivery, and Vercel Functions.",category:"deployment",content:_(fe,{children:[_("div",{className:"text-xs",children:["Vercel provides ",p("strong",{children:"Git-based deployments"}),", preview environments, global delivery, and server-side compute through Vercel Functions. That makes it a familiar deployment option for TanStack Start and Router teams building full-stack apps."]}),p(He,{})]})},sL={name:"Prisma",id:"prisma",href:"https://www.prisma.io/?utm_source=tanstack&via=tanstack",status:"active",libraries:["db","start"],startDate:"Aug 2025",score:.143,tier:"bronze",brandColor:"#2D3748",tagline:"Database ORM",image:{light:IA,dark:CA},llmDescription:"Open-source TypeScript ORM with Prisma Client, migrations, Prisma Studio, and Prisma Postgres for managed PostgreSQL.",category:"database",content:_(fe,{children:[_("div",{className:"text-xs",children:["Prisma combines ",p("strong",{children:"type-safe database access"}),", migrations, Prisma Studio, and Prisma Postgres into one workflow. It also publishes a TanStack Start guide, which makes it a practical option for full-stack apps that want a polished database layer."]}),p(He,{})]})},cL={name:"CodeRabbit",id:"coderabbit",href:"https://coderabbit.link/tanstack?utm_source=tanstack&via=tanstack",status:"active",libraries:cr.map(e=>e.id),startDate:"Aug 2025",score:1,tier:"gold",brandColor:"#FF6B2B",tagline:"AI Code Review",applicationStarterPromptInstructions:["Do not add runtime app code for CodeRabbit.","Treat CodeRabbit as external repository tooling configured through the GitHub App, with optional .coderabbit.yaml guidance if useful.","Mention the GitHub App install/setup path briefly instead of pretending CodeRabbit is an in-app SDK integration."],image:{light:RA,dark:$A},llmDescription:"AI code review platform for pull requests, IDEs, and CLI workflows, with automated review comments, one-click fixes, and configurable review rules.",category:"code-review",content:_(fe,{children:[_("div",{className:"text-xs",children:["CodeRabbit adds automated review, scanner context, and one-click fixes across ",p("strong",{children:"pull requests, IDEs, and CLI workflows"}),". That is useful in TanStack codebases where fast feedback on correctness and API usage helps keep review cycles tight."]}),p(He,{})]})},lL={name:"Strapi",id:"strapi",libraries:["start","router"],status:"inactive",score:.069,tier:"bronze",href:"https://strapi.link/tanstack-start",brandColor:"#4945FF",tagline:"Headless CMS",image:{light:PA,dark:AA,scale:.8},llmDescription:"Open-source headless CMS with content modeling, generated REST and GraphQL APIs, TypeScript tooling, and self-hosted or cloud deployment options.",category:"cms",content:_(fe,{children:[_("div",{className:"text-xs",children:["Strapi gives teams a ",p("strong",{children:"headless CMS"})," with content modeling, generated REST and GraphQL APIs, TypeScript tooling, and self-hosted or cloud deployment options. That works well when a TanStack Start app needs a real content system behind it."]}),p(He,{})]})},uL={name:"PowerSync",id:"powersync",libraries:["db","query"],status:"inactive",startDate:"Jan 2026",score:.143,tier:"bronze",href:"https://powersync.com?utm_source=tanstack&utm_campaign=tanstack_partner",tagline:"Offline-first Sync",applicationStarterPromptInstructions:["Install the official PowerSync web client packages such as @powersync/web and @journeyapps/wa-sqlite when PowerSync is explicitly requested.","If TanStack collections or query integration fits, wire the official TanStack PowerSync packages rather than inventing a custom bridge.","Leave backend connector, auth token, and sync infrastructure setup explicit instead of pretending PowerSync can be fully demoed without backend prerequisites."],image:{light:FA,dark:zA,scale:1.2},llmDescription:"Sync engine that keeps backend databases in sync with embedded client-side SQLite for offline-first and realtime applications. Postgres and MongoDB are supported, with MySQL and SQL Server in beta.",category:"database",content:_(fe,{children:[_("div",{className:"text-xs",children:["PowerSync syncs backend data into"," ",p("strong",{children:"embedded client-side SQLite"})," for offline-first and realtime apps. That makes it relevant for TanStack users who care about local-first UX, live updates, and resilient client state."]}),p(He,{})]})},dL={name:"Railway",id:"railway",libraries:cr.map(e=>e.id),status:"active",score:.145,tier:"gold",uniqueConstraints:["hosting"],href:"https://railway.com/?utm_medium=sponsor&utm_source=oss&utm_campaign=tanstack",brandColor:"#0B0D0E",tagline:"Instant Deployment",image:{light:VA,dark:BA},llmDescription:"Application deployment platform for shipping from GitHub, the CLI, Docker images, or templates, with managed networking, observability, and configurable scaling.",category:"deployment",content:_(fe,{children:[_("div",{className:"text-xs",children:["Railway gives teams a simple way to deploy app services, databases, and supporting infrastructure from"," ",p("strong",{children:"GitHub, the CLI, Docker, or templates"}),". That is appealing for TanStack teams that want to move quickly without building deployment plumbing first."]}),p(He,{})]})},pL={name:"OpenRouter",id:"openrouter",href:"https://openrouter.ai?utm_source=tanstack",libraries:cr.map(e=>e.id),status:"active",startDate:"Mar 2026",score:.344,tier:"silver",brandColor:"#7C3AED",tagline:"Unified LLM API",applicationStarterPromptInstructions:["Use the official @openrouter/sdk on the server and read OPENROUTER_API_KEY from environment variables.","Keep model selection explicit and easy to swap, and do not expose provider keys in client code.","If AI functionality is demoed, route requests through app-owned server functions instead of calling OpenRouter directly from the browser."],image:{light:HA,dark:UA,scale:1.25},llmDescription:"Unified API for accessing hundreds of AI models from dozens of providers through a single OpenAI-compatible endpoint, with routing, fallbacks, and privacy controls.",category:"ai",content:_(fe,{children:[_("div",{className:"text-xs",children:["OpenRouter provides a ",p("strong",{children:"unified API"})," for many model providers, with routing, fallbacks, and privacy controls behind a single endpoint. That is useful for TanStack apps experimenting with AI features where provider choice may change over time."]}),p("button",{type:"button",onClick:()=>{window.location.href="/blog/openrouter-partnership"},className:"text-blue-500 uppercase font-black text-sm",children:"Learn More"})]})},as=[cL,XA,JA,KA,aL,YA,pL,qA,ZA,WA,GA,oL,uL,QA,dL,sL,lL,nL,eL,tL,iL,rL],fL=new Map([["powersync","#00D5FF"],["prisma","#10B981"],["railway","#9B4DCA"],["sentry","#7C6BFF"],["unkey","#7C3AED"]]),Al=aR({orderStrategy:"contextual-recommendation",surface:"application_starter_suggestions"});function mL(e){return e.uniqueConstraints??[]}function ad(e,t){return e.uniqueConstraints.some(r=>t.uniqueConstraints.includes(r))}function Wn(e,t){return t.find(r=>r.id===e)}function hL(e,t,r=lo){const n=Wn(e,r);return n?t.some(a=>{if(a===n.id)return!1;const o=Wn(a,r);return o?ad(n,o):!1}):!1}function eX(e,t){return t.flatMap(r=>r.id===e.id||!ad(e,r)?[]:[r.id])}function km(e,t=lo){const r=Array();for(const n of e){if(r.includes(n))continue;const a=Wn(n,t);if(!a)continue;if(a.uniqueConstraints.length===0){r.push(a.id);continue}const o=r.filter(i=>{const s=Wn(i,t);return s?ad(a,s):!1});if(!o.some(i=>{const s=Wn(i,t);return s?s.tier<=a.tier:!1})){for(const i of o){const s=Wn(i,t);if(!s||s.tier<=a.tier)continue;const c=r.indexOf(i);c>=0&&r.splice(c,1)}r.push(a.id)}}return r}function tX(e,t){return e}function gL(e){return e.toLowerCase().replace(/[^a-z0-9]/g,"")}function vL(e){return e.tier?jA[e.tier]:3}function yL(e){return`${new URL(e).origin}/favicon.ico`}function bL(e){const[t]=e.llmDescription.split(/(?<=[.!?])\s+/);return t?.trim()||e.llmDescription.trim()}function wL(e){return e.tagline?.trim()?[e.tagline.trim()]:[Bs[e.category]]}function _L(e){const t=vL(e),r=gL(e.id),n=t===2?e.applicationStarterIcon?.mode??"contain":void 0;return{id:e.id,label:e.name,description:bL(e),hint:`${e.name} (${Bs[e.category]})`,iconMode:n,iconSrc:t===2?e.applicationStarterIcon?.src??yL(e.href):void 0,image:e.image,tags:wL(e),brandColor:fL.get(r)??e.brandColor,tier:t,uniqueConstraints:mL(e)}}function D1(e){return T1(as.filter(t=>t.status==="active"),e).map(_L)}var lo=D1(Al);function rX(e=Al){return e===Al?lo:D1(e)}function nX(e,t,r,n){const a=e.trim(),o=km(t),i=km(r.filter(g=>!hL(g,o))),s=lo.filter(g=>o.includes(g.id)),c=lo.filter(g=>i.includes(g.id)),l=as.filter(g=>g.status==="active"&&o.includes(g.id)),d=as.filter(g=>g.status==="active"&&i.includes(g.id));if(s.length===0&&c.length===0)return a;const u=s.length?`Prefer these integrations where they fit: ${s.map(g=>g.hint).join(", ")}.`:null,f=c.length?`The request clearly calls for these integrations where they fit: ${c.map(g=>g.hint).join(", ")}.`:null,m=Array();(s.length>0||c.length>0)&&m.push("Make sure each requested or clearly implied partner integration is represented in the resulting project somehow. If one cannot be implemented cleanly, explain what was omitted and why instead of silently dropping it.");const h=[...l,...d].flatMap(g=>g.applicationStarterPromptInstructions??[]);return h.length>0&&m.push("If a requested or inferred partner is not available as a real TanStack CLI add-on, do not invent one. Follow the partner's official install path, keep secrets server-side, and fall back to setup notes or TODOs when the integration depends on external infra, dashboards, licenses, or GitHub App installs.",...h),[...o,...i].includes("coderabbit")&&m.push("Prefer the standard repository integration for pull request reviews first instead of inventing a custom workflow.","Only add CodeRabbit IDE or CLI workflows if they clearly support the requested developer workflow."),[a,"",ed,`${td} ${o.join(", ")||"none"}`,`${rd} ${i.join(", ")||"none"}`,n?.forceRouterOnly?nd:null,u,f,...m].filter(Boolean).join(` `)}function O1(e){return as.find(t=>t.id===e)}var kL=new Map(cr.filter(e=>e.name).map(e=>[e.id,e.name.replace("TanStack ","")])),SL={neon:{whyGreat:"Neon gives teams real Postgres with lightweight branching and autoscaling compute, which is unusually useful for preview environments, testing, and fast iteration.",whyTanStack:"That lines up well with TanStack Start because apps often want standard Postgres semantics without giving up fast deploy workflows or branch-based development."},convex:{whyGreat:"Convex combines a reactive database with TypeScript backend functions and automatic client updates, which removes a lot of glue code from realtime apps.",whyTanStack:"That is a strong fit for TanStack apps when you want server and client state to stay synchronized without wiring subscriptions and cache invalidation by hand."},clerk:{whyGreat:"Clerk packages the painful parts of auth, including sign-in, sign-up, sessions, organizations, and MFA, into a well-documented product with good UI primitives.",whyTanStack:"Their official TanStack React Start and React Router support makes it easier to add auth without fighting route protection, session handling, and user flows."},workos:{whyGreat:"WorkOS is built around the enterprise identity features B2B teams usually end up needing later: SSO, directory sync, RBAC, audit logs, and admin onboarding.",whyTanStack:"That complements TanStack well for B2B apps where auth and org-level access rules shape both routing and data access."},"ag-grid":{whyGreat:"AG Grid earns its place when basic table rendering is not enough and you need serious grid behavior like grouping, pivoting, or a server-side row model.",whyTanStack:"It pairs naturally with TanStack Table when you want TanStack flexibility for state and data modeling alongside a heavier-duty grid UI."},netlify:{whyGreat:"Netlify makes deployment workflows simple, especially when preview environments and edge or server functions are part of the product workflow.",whyTanStack:"Their published TanStack Start support means the integration story is concrete, not hand-wavy."},cloudflare:{whyGreat:"Cloudflare stands out when global distribution, edge compute, caching, and security need to be part of the platform rather than bolted on later.",whyTanStack:"That can be a strong fit for TanStack Start apps that want to run close to users on Workers and take advantage of bindings and prerendering support."},lovable:{whyGreat:"Lovable is useful when the shortest path from idea to working app matters, especially because it combines AI-assisted building, visual editing, GitHub sync, and hosted deployment.",whyTanStack:"Its move to TanStack Start for new SSR projects makes the generated app foundation much closer to the stack TanStack teams already want to own."},sentry:{whyGreat:"Sentry turns production issues into actionable debugging data instead of just error logs, especially once tracing and replay are in the mix.",whyTanStack:"That matters for TanStack apps with richer client behavior, and Sentry already documents TanStack Router support plus an alpha TanStack Start React SDK."},fireship:{whyGreat:"Fireship and Bytes are useful because they help developers stay current quickly through short-form education, courses, and newsletter coverage.",whyTanStack:"That makes them a good ecosystem fit when you want more developers to discover and understand TanStack patterns."},nozzle:{whyGreat:"Nozzle is a serious SEO product with enterprise rank tracking, share-of-voice reporting, and deep SERP data, not a generic marketing dashboard.",whyTanStack:"It is relevant here because it has long been part of the broader TanStack story and shows the kind of data-heavy product surfaces this ecosystem can support."},speakeasy:{whyGreat:"Speakeasy is specific and useful: it generates SDKs, CLIs, Terraform providers, and hosted MCP servers from OpenAPI specs.",whyTanStack:"That lines up well with TanStack apps when your frontend depends on well-generated client libraries instead of hand-maintained API integrations."},unkey:{whyGreat:"Unkey focuses on the practical API infrastructure teams need early: keys, rate limits, access policies, and usage tracking.",whyTanStack:"That is a good fit for TanStack-built products that expose APIs or need straightforward platform controls around API access."},serpapi:{whyGreat:"SerpApi handles the ugly parts of search data access, including proxies, CAPTCHA solving, localization, and structured parsing.",whyTanStack:"That pairs well with TanStack when search intelligence, SEO tooling, or agent workflows are part of the product."},electric:{whyGreat:"Electric is interesting because it focuses on sync and reactive data delivery rather than asking teams to rebuild their stack around a new database abstraction.",whyTanStack:"Its partnership around TanStack DB makes it especially relevant for apps that want local-first or sync-heavy behavior with a strong client-side data experience."},vercel:{whyGreat:"Vercel is strongest when preview workflows, Git-based deployment, global delivery, and server-side compute are central to the team workflow.",whyTanStack:"That has been a natural fit for TanStack Start and Router teams building full-stack apps with modern deployment workflows."},prisma:{whyGreat:"Prisma is useful because it combines type-safe database access, migrations, and a strong developer workflow instead of only being a query builder.",whyTanStack:"Its official TanStack Start guide and Prisma Postgres workflow make it a practical option for full-stack TanStack apps that want a polished DB layer."},coderabbit:{whyGreat:"CodeRabbit adds automated review, scanner context, and one-click fixes directly into pull request and IDE workflows.",whyTanStack:"That is relevant for TanStack because these codebases benefit from fast feedback on correctness and usage patterns, not just formatting."},strapi:{whyGreat:"Strapi is a pragmatic headless CMS choice for teams that want structured content, generated APIs, and strong customization without locking themselves into a closed stack.",whyTanStack:"That works well with TanStack Start when you want a real content system behind an app-shaped frontend."},powersync:{whyGreat:"PowerSync is built for one of the harder app problems: keeping client-side SQLite in sync with backend data for offline-first and realtime behavior.",whyTanStack:"That makes it relevant for TanStack DB and Query users who care about local-first UX and reactive client state."},railway:{whyGreat:"Railway reduces deployment friction and gives teams a single place to run app services, databases, networking, and observability.",whyTanStack:"That simplicity is a good match for TanStack teams that want to ship full-stack apps quickly without building a platform team first."},openrouter:{whyGreat:"OpenRouter normalizes access to many model providers behind one API and gives teams routing and fallback controls they would otherwise build themselves.",whyTanStack:"That is a strong fit for TanStack apps experimenting with AI features where provider choice, latency, cost, and fallback behavior change over time."}};function xL(e){return O1(e)}function M1(e){return(e.libraries??[]).map(t=>kL.get(t)??t)}function F1(e){return`${e.name} for TanStack`}function z1(e){const t=M1(e),r=t.length?` Best fit for ${t.join(", ")} teams.`:"";return`${e.name} is a ${Bs[e.category].toLowerCase()} partner in the TanStack ecosystem. ${e.llmDescription}${r}`}function aX(e){const t=M1(e),r=SL[e.id]??{whyGreat:`${e.name} offers a clearly defined product in the ${Bs[e.category].toLowerCase()} space.`,whyTanStack:"It can be a strong fit alongside TanStack depending on your stack and product needs."},n=t.length?` It is especially relevant for teams building with ${t.join(", ")}.`:"",a=e.status==="active"?`${e.name} is a current TanStack partner, and we think they are a strong option for teams building in this part of the stack.`:`${e.name} has supported TanStack previously, and we still think they are worth knowing about if their strengths match your stack.`;return{description:`${e.llmDescription}${n}`,status:a,whyGreat:r.whyGreat,whyTanStack:r.whyTanStack}}function V1(e){return{"@context":"https://schema.org","@type":"WebPage",about:{"@type":"Organization",name:e.name,sameAs:e.href},description:z1(e),name:F1(e),url:`https://tanstack.com/partners/${e.id}`}}var EL=()=>k(()=>import("./partners.railway-Cv0JoWRc.js"),__vite__mapDeps([92,6,4,5,1,3,16])),TL="Deploy TanStack to Railway — Official Gold Partner",IL="Railway gives TanStack teams a single place to run app services, databases, and supporting infrastructure. Nitro-powered TanStack Start deploys, live PR previews, 100 Gbps private networking, and hard spending limits. Pay per second for the compute you actually use.";function CL(){return{"@context":"https://schema.org","@type":"FAQPage",mainEntity:rA.map(e=>({"@type":"Question",name:e.q,acceptedAnswer:{"@type":"Answer",text:e.a}}))}}var RL=R("/partners/railway")({head:()=>{const e=O1("railway");return{meta:ee({title:TL,description:IL,keywords:"deploy tanstack to railway, tanstack start railway, tanstack router railway, railway hosting, tanstack deployment, railway gold sponsor",image:"https://tanstack.com/og.png"}),scripts:[...e?[{type:"application/ld+json",children:JSON.stringify(V1(e))}]:[],{type:"application/ld+json",children:JSON.stringify(CL())}]}},component:$(EL,"component")}),$L=()=>k(()=>import("./partners._partner-DlgMWVw1.js"),__vite__mapDeps([93,3,4,5,1,16])),PL=()=>k(()=>import("./partners._partner-DlgMWVw1.js"),__vite__mapDeps([93,3,4,5,1,16])),AL=R("/partners/$partner")({loader:J(PL,"loader"),head:({params:e})=>{const t=xL(e.partner);return t?{meta:ee({title:F1(t),description:z1(t)}),scripts:[{type:"application/ld+json",children:JSON.stringify(V1(t))}]}:{meta:ee({title:"Partner Not Found | TanStack",description:"The requested TanStack partner page could not be found."})}},component:$($L,"component")}),oX=Object.freeze({status:"aborted"});function P(e,t,r){function n(s,c){if(s._zod||Object.defineProperty(s,"_zod",{value:{def:c,constr:i,traits:new Set},enumerable:!1}),s._zod.traits.has(e))return;s._zod.traits.add(e),t(s,c);const l=i.prototype,d=Object.keys(l);for(let u=0;ur?.Parent&&s instanceof r.Parent?!0:s?._zod?.traits?.has(e)}),Object.defineProperty(i,"name",{value:e}),i}var Jn=class extends Error{constructor(){super("Encountered Promise during synchronous parse. Use .parseAsync() instead.")}},B1=class extends Error{constructor(e){super(`Encountered unidirectional transform during encode: ${e}`),this.name="ZodEncodeError"}},Ll={};function xn(e){return e&&Object.assign(Ll,e),Ll}function H1(e){const t=Object.values(e).filter(r=>typeof r=="number");return Object.entries(e).filter(([r,n])=>t.indexOf(+r)===-1).map(([r,n])=>n)}function Nl(e,t){return typeof t=="bigint"?t.toString():t}function od(e){return{get value(){{const t=e();return Object.defineProperty(this,"value",{value:t}),t}throw new Error("cached value already set")}}}function id(e){return e==null}function sd(e){const t=e.startsWith("^")?1:0,r=e.endsWith("$")?e.length-1:e.length;return e.slice(t,r)}var Sm=Symbol("evaluating");function Te(e,t,r){let n;Object.defineProperty(e,t,{get(){if(n!==Sm)return n===void 0&&(n=Sm,n=r()),n},set(a){Object.defineProperty(e,t,{value:a})},configurable:!0})}function Nn(e,t,r){Object.defineProperty(e,t,{value:r,writable:!0,enumerable:!0,configurable:!0})}function an(...e){const t={};for(const r of e)Object.assign(t,Object.getOwnPropertyDescriptors(r));return Object.defineProperties({},t)}function xm(e){return JSON.stringify(e)}function LL(e){return e.toLowerCase().trim().replace(/[^\w\s-]/g,"").replace(/[\s_-]+/g,"-").replace(/^-+|-+$/g,"")}var U1="captureStackTrace"in Error?Error.captureStackTrace:(...e)=>{};function os(e){return typeof e=="object"&&e!==null&&!Array.isArray(e)}var NL=od(()=>{if(typeof navigator<"u"&&navigator?.userAgent?.includes("Cloudflare"))return!1;try{return new Function(""),!0}catch{return!1}});function uo(e){if(os(e)===!1)return!1;const t=e.constructor;if(t===void 0||typeof t!="function")return!0;const r=t.prototype;return!(os(r)===!1||Object.prototype.hasOwnProperty.call(r,"isPrototypeOf")===!1)}function j1(e){return uo(e)?{...e}:Array.isArray(e)?[...e]:e}var DL=new Set(["string","number","symbol"]);function Hs(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function on(e,t,r){const n=new e._zod.constr(t??e._zod.def);return(!t||r?.parent)&&(n._zod.parent=e),n}function ae(e){const t=e;if(!t)return{};if(typeof t=="string")return{error:()=>t};if(t?.message!==void 0){if(t?.error!==void 0)throw new Error("Cannot specify both `message` and `error` params");t.error=t.message}return delete t.message,typeof t.error=="string"?{...t,error:()=>t.error}:t}function OL(e){return Object.keys(e).filter(t=>e[t]._zod.optin==="optional"&&e[t]._zod.optout==="optional")}var iX={safeint:[Number.MIN_SAFE_INTEGER,Number.MAX_SAFE_INTEGER],int32:[-2147483648,2147483647],uint32:[0,4294967295],float32:[-34028234663852886e22,34028234663852886e22],float64:[-Number.MAX_VALUE,Number.MAX_VALUE]};function ML(e,t){const r=e._zod.def,n=r.checks;if(n&&n.length>0)throw new Error(".pick() cannot be used on object schemas containing refinements");return on(e,an(e._zod.def,{get shape(){const a={};for(const o in t){if(!(o in r.shape))throw new Error(`Unrecognized key: "${o}"`);t[o]&&(a[o]=r.shape[o])}return Nn(this,"shape",a),a},checks:[]}))}function FL(e,t){const r=e._zod.def,n=r.checks;if(n&&n.length>0)throw new Error(".omit() cannot be used on object schemas containing refinements");return on(e,an(e._zod.def,{get shape(){const a={...e._zod.def.shape};for(const o in t){if(!(o in r.shape))throw new Error(`Unrecognized key: "${o}"`);t[o]&&delete a[o]}return Nn(this,"shape",a),a},checks:[]}))}function zL(e,t){if(!uo(t))throw new Error("Invalid input to extend: expected a plain object");const r=e._zod.def.checks;if(r&&r.length>0){const n=e._zod.def.shape;for(const a in t)if(Object.getOwnPropertyDescriptor(n,a)!==void 0)throw new Error("Cannot overwrite keys on object schemas containing refinements. Use `.safeExtend()` instead.")}return on(e,an(e._zod.def,{get shape(){const n={...e._zod.def.shape,...t};return Nn(this,"shape",n),n}}))}function VL(e,t){if(!uo(t))throw new Error("Invalid input to safeExtend: expected a plain object");return on(e,an(e._zod.def,{get shape(){const r={...e._zod.def.shape,...t};return Nn(this,"shape",r),r}}))}function BL(e,t){return on(e,an(e._zod.def,{get shape(){const r={...e._zod.def.shape,...t._zod.def.shape};return Nn(this,"shape",r),r},get catchall(){return t._zod.def.catchall},checks:[]}))}function HL(e,t,r){const n=t._zod.def.checks;if(n&&n.length>0)throw new Error(".partial() cannot be used on object schemas containing refinements");return on(t,an(t._zod.def,{get shape(){const a=t._zod.def.shape,o={...a};if(r)for(const i in r){if(!(i in a))throw new Error(`Unrecognized key: "${i}"`);r[i]&&(o[i]=e?new e({type:"optional",innerType:a[i]}):a[i])}else for(const i in a)o[i]=e?new e({type:"optional",innerType:a[i]}):a[i];return Nn(this,"shape",o),o},checks:[]}))}function UL(e,t,r){return on(t,an(t._zod.def,{get shape(){const n=t._zod.def.shape,a={...n};if(r)for(const o in r){if(!(o in a))throw new Error(`Unrecognized key: "${o}"`);r[o]&&(a[o]=new e({type:"nonoptional",innerType:n[o]}))}else for(const o in n)a[o]=new e({type:"nonoptional",innerType:n[o]});return Nn(this,"shape",a),a}}))}function Zn(e,t=0){if(e.aborted===!0)return!0;for(let r=t;r{var n;return(n=r).path??(n.path=[]),r.path.unshift(e),r})}function ii(e){return typeof e=="string"?e:e?.message}function En(e,t,r){const n={...e,path:e.path??[]};return e.message||(n.message=ii(e.inst?._zod.def?.error?.(e))??ii(t?.error?.(e))??ii(r.customError?.(e))??ii(r.localeError?.(e))??"Invalid input"),delete n.inst,delete n.continue,t?.reportInput||delete n.input,n}function cd(e){return Array.isArray(e)?"array":typeof e=="string"?"string":"unknown"}function po(...e){const[t,r,n]=e;return typeof t=="string"?{message:t,code:"custom",input:r,inst:n}:{...t}}var G1=(e,t)=>{e.name="$ZodError",Object.defineProperty(e,"_zod",{value:e._zod,enumerable:!1}),Object.defineProperty(e,"issues",{value:t,enumerable:!1}),e.message=JSON.stringify(t,Nl,2),Object.defineProperty(e,"toString",{value:()=>e.message,enumerable:!1})},W1=P("$ZodError",G1),Z1=P("$ZodError",G1,{Parent:Error});function jL(e,t=r=>r.message){const r={},n=[];for(const a of e.issues)a.path.length>0?(r[a.path[0]]=r[a.path[0]]||[],r[a.path[0]].push(t(a))):n.push(t(a));return{formErrors:n,fieldErrors:r}}function qL(e,t=r=>r.message){const r={_errors:[]},n=a=>{for(const o of a.issues)if(o.code==="invalid_union"&&o.errors.length)o.errors.map(i=>n({issues:i}));else if(o.code==="invalid_key")n({issues:o.issues});else if(o.code==="invalid_element")n({issues:o.issues});else if(o.path.length===0)r._errors.push(t(o));else{let i=r,s=0;for(;s(t,r,n,a)=>{const o=n?Object.assign(n,{async:!1}):{async:!1},i=t._zod.run({value:r,issues:[]},o);if(i instanceof Promise)throw new Jn;if(i.issues.length){const s=new(a?.Err??e)(i.issues.map(c=>En(c,o,xn())));throw U1(s,a?.callee),s}return i.value},ud=e=>async(t,r,n,a)=>{const o=n?Object.assign(n,{async:!0}):{async:!0};let i=t._zod.run({value:r,issues:[]},o);if(i instanceof Promise&&(i=await i),i.issues.length){const s=new(a?.Err??e)(i.issues.map(c=>En(c,o,xn())));throw U1(s,a?.callee),s}return i.value},Us=e=>(t,r,n)=>{const a=n?{...n,async:!1}:{async:!1},o=t._zod.run({value:r,issues:[]},a);if(o instanceof Promise)throw new Jn;return o.issues.length?{success:!1,error:new(e??W1)(o.issues.map(i=>En(i,a,xn())))}:{success:!0,data:o.value}},GL=Us(Z1),js=e=>async(t,r,n)=>{const a=n?Object.assign(n,{async:!0}):{async:!0};let o=t._zod.run({value:r,issues:[]},a);return o instanceof Promise&&(o=await o),o.issues.length?{success:!1,error:new e(o.issues.map(i=>En(i,a,xn())))}:{success:!0,data:o.value}},WL=js(Z1),ZL=e=>(t,r,n)=>{const a=n?Object.assign(n,{direction:"backward"}):{direction:"backward"};return ld(e)(t,r,a)},KL=e=>(t,r,n)=>ld(e)(t,r,n),YL=e=>async(t,r,n)=>{const a=n?Object.assign(n,{direction:"backward"}):{direction:"backward"};return ud(e)(t,r,a)},XL=e=>async(t,r,n)=>ud(e)(t,r,n),JL=e=>(t,r,n)=>{const a=n?Object.assign(n,{direction:"backward"}):{direction:"backward"};return Us(e)(t,r,a)},QL=e=>(t,r,n)=>Us(e)(t,r,n),eN=e=>async(t,r,n)=>{const a=n?Object.assign(n,{direction:"backward"}):{direction:"backward"};return js(e)(t,r,a)},tN=e=>async(t,r,n)=>js(e)(t,r,n),rN=/^[cC][^\s-]{8,}$/,nN=/^[0-9a-z]+$/,aN=/^[0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{26}$/,oN=/^[0-9a-vA-V]{20}$/,iN=/^[A-Za-z0-9]{27}$/,sN=/^[a-zA-Z0-9_-]{21}$/,cN=/^P(?:(\d+W)|(?!.*W)(?=\d|T\d)(\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+([.,]\d+)?S)?)?)$/,lN=/^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$/,Em=e=>e?new RegExp(`^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-${e}[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$`):/^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$/,uN=/^(?!\.)(?!.*\.\.)([A-Za-z0-9_'+\-\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$/,dN="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";function pN(){return new RegExp(dN,"u")}var fN=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/,mN=/^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:))$/,hN=/^((25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\/([0-9]|[1-2][0-9]|3[0-2])$/,gN=/^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|::|([0-9a-fA-F]{1,4})?::([0-9a-fA-F]{1,4}:?){0,6})\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/,vN=/^$|^(?:[0-9a-zA-Z+/]{4})*(?:(?:[0-9a-zA-Z+/]{2}==)|(?:[0-9a-zA-Z+/]{3}=))?$/,K1=/^[A-Za-z0-9_-]*$/,yN=/^\+[1-9]\d{6,14}$/,Y1="(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))",bN=new RegExp(`^${Y1}$`);function X1(e){const t="(?:[01]\\d|2[0-3]):[0-5]\\d";return typeof e.precision=="number"?e.precision===-1?`${t}`:e.precision===0?`${t}:[0-5]\\d`:`${t}:[0-5]\\d\\.\\d{${e.precision}}`:`${t}(?::[0-5]\\d(?:\\.\\d+)?)?`}function wN(e){return new RegExp(`^${X1(e)}$`)}function _N(e){const t=X1({precision:e.precision}),r=["Z"];e.local&&r.push(""),e.offset&&r.push("([+-](?:[01]\\d|2[0-3]):[0-5]\\d)");const n=`${t}(?:${r.join("|")})`;return new RegExp(`^${Y1}T(?:${n})$`)}var kN=e=>{const t=e?`[\\s\\S]{${e?.minimum??0},${e?.maximum??""}}`:"[\\s\\S]*";return new RegExp(`^${t}$`)},SN=/^[^A-Z]*$/,xN=/^[^a-z]*$/,ur=P("$ZodCheck",(e,t)=>{var r;e._zod??(e._zod={}),e._zod.def=t,(r=e._zod).onattach??(r.onattach=[])}),EN=P("$ZodCheckMaxLength",(e,t)=>{var r;ur.init(e,t),(r=e._zod.def).when??(r.when=n=>{const a=n.value;return!id(a)&&a.length!==void 0}),e._zod.onattach.push(n=>{const a=n._zod.bag.maximum??Number.POSITIVE_INFINITY;t.maximum{const a=n.value;if(a.length<=t.maximum)return;const o=cd(a);n.issues.push({origin:o,code:"too_big",maximum:t.maximum,inclusive:!0,input:a,inst:e,continue:!t.abort})}}),TN=P("$ZodCheckMinLength",(e,t)=>{var r;ur.init(e,t),(r=e._zod.def).when??(r.when=n=>{const a=n.value;return!id(a)&&a.length!==void 0}),e._zod.onattach.push(n=>{const a=n._zod.bag.minimum??Number.NEGATIVE_INFINITY;t.minimum>a&&(n._zod.bag.minimum=t.minimum)}),e._zod.check=n=>{const a=n.value;if(a.length>=t.minimum)return;const o=cd(a);n.issues.push({origin:o,code:"too_small",minimum:t.minimum,inclusive:!0,input:a,inst:e,continue:!t.abort})}}),IN=P("$ZodCheckLengthEquals",(e,t)=>{var r;ur.init(e,t),(r=e._zod.def).when??(r.when=n=>{const a=n.value;return!id(a)&&a.length!==void 0}),e._zod.onattach.push(n=>{const a=n._zod.bag;a.minimum=t.length,a.maximum=t.length,a.length=t.length}),e._zod.check=n=>{const a=n.value,o=a.length;if(o===t.length)return;const i=cd(a),s=o>t.length;n.issues.push({origin:i,...s?{code:"too_big",maximum:t.length}:{code:"too_small",minimum:t.length},inclusive:!0,exact:!0,input:n.value,inst:e,continue:!t.abort})}}),qs=P("$ZodCheckStringFormat",(e,t)=>{var r,n;ur.init(e,t),e._zod.onattach.push(a=>{const o=a._zod.bag;o.format=t.format,t.pattern&&(o.patterns??(o.patterns=new Set),o.patterns.add(t.pattern))}),t.pattern?(r=e._zod).check??(r.check=a=>{t.pattern.lastIndex=0,!t.pattern.test(a.value)&&a.issues.push({origin:"string",code:"invalid_format",format:t.format,input:a.value,...t.pattern?{pattern:t.pattern.toString()}:{},inst:e,continue:!t.abort})}):(n=e._zod).check??(n.check=()=>{})}),CN=P("$ZodCheckRegex",(e,t)=>{qs.init(e,t),e._zod.check=r=>{t.pattern.lastIndex=0,!t.pattern.test(r.value)&&r.issues.push({origin:"string",code:"invalid_format",format:"regex",input:r.value,pattern:t.pattern.toString(),inst:e,continue:!t.abort})}}),RN=P("$ZodCheckLowerCase",(e,t)=>{t.pattern??(t.pattern=SN),qs.init(e,t)}),$N=P("$ZodCheckUpperCase",(e,t)=>{t.pattern??(t.pattern=xN),qs.init(e,t)}),PN=P("$ZodCheckIncludes",(e,t)=>{ur.init(e,t);const r=Hs(t.includes),n=new RegExp(typeof t.position=="number"?`^.{${t.position}}${r}`:r);t.pattern=n,e._zod.onattach.push(a=>{const o=a._zod.bag;o.patterns??(o.patterns=new Set),o.patterns.add(n)}),e._zod.check=a=>{a.value.includes(t.includes,t.position)||a.issues.push({origin:"string",code:"invalid_format",format:"includes",includes:t.includes,input:a.value,inst:e,continue:!t.abort})}}),AN=P("$ZodCheckStartsWith",(e,t)=>{ur.init(e,t);const r=new RegExp(`^${Hs(t.prefix)}.*`);t.pattern??(t.pattern=r),e._zod.onattach.push(n=>{const a=n._zod.bag;a.patterns??(a.patterns=new Set),a.patterns.add(r)}),e._zod.check=n=>{n.value.startsWith(t.prefix)||n.issues.push({origin:"string",code:"invalid_format",format:"starts_with",prefix:t.prefix,input:n.value,inst:e,continue:!t.abort})}}),LN=P("$ZodCheckEndsWith",(e,t)=>{ur.init(e,t);const r=new RegExp(`.*${Hs(t.suffix)}$`);t.pattern??(t.pattern=r),e._zod.onattach.push(n=>{const a=n._zod.bag;a.patterns??(a.patterns=new Set),a.patterns.add(r)}),e._zod.check=n=>{n.value.endsWith(t.suffix)||n.issues.push({origin:"string",code:"invalid_format",format:"ends_with",suffix:t.suffix,input:n.value,inst:e,continue:!t.abort})}}),NN=P("$ZodCheckOverwrite",(e,t)=>{ur.init(e,t),e._zod.check=r=>{r.value=t.tx(r.value)}}),DN=class{constructor(e=[]){this.content=[],this.indent=0,this&&(this.args=e)}indented(e){this.indent+=1,e(this),this.indent-=1}write(e){if(typeof e=="function"){e(this,{execution:"sync"}),e(this,{execution:"async"});return}const t=e.split(` `).filter(a=>a),r=Math.min(...t.map(a=>a.length-a.trimStart().length)),n=t.map(a=>a.slice(r)).map(a=>" ".repeat(this.indent*2)+a);for(const a of n)this.content.push(a)}compile(){const e=Function,t=this?.args,r=[...(this?.content??[""]).map(n=>` ${n}`)];return new e(...t,r.join(` `))}},ON={major:4,minor:3,patch:6},Ge=P("$ZodType",(e,t)=>{var r;e??(e={}),e._zod.def=t,e._zod.bag=e._zod.bag||{},e._zod.version=ON;const n=[...e._zod.def.checks??[]];e._zod.traits.has("$ZodCheck")&&n.unshift(e);for(const a of n)for(const o of a._zod.onattach)o(e);if(n.length===0)(r=e._zod).deferred??(r.deferred=[]),e._zod.deferred?.push(()=>{e._zod.run=e._zod.parse});else{const a=(i,s,c)=>{let l=Zn(i),d;for(const u of s){if(u._zod.def.when){if(!u._zod.def.when(i))continue}else if(l)continue;const f=i.issues.length,m=u._zod.check(i);if(m instanceof Promise&&c?.async===!1)throw new Jn;if(d||m instanceof Promise)d=(d??Promise.resolve()).then(async()=>{await m,i.issues.length!==f&&(l||(l=Zn(i,f)))});else{if(i.issues.length===f)continue;l||(l=Zn(i,f))}}return d?d.then(()=>i):i},o=(i,s,c)=>{if(Zn(i))return i.aborted=!0,i;const l=a(s,n,c);if(l instanceof Promise){if(c.async===!1)throw new Jn;return l.then(d=>e._zod.parse(d,c))}return e._zod.parse(l,c)};e._zod.run=(i,s)=>{if(s.skipChecks)return e._zod.parse(i,s);if(s.direction==="backward"){const l=e._zod.parse({value:i.value,issues:[]},{...s,skipChecks:!0});return l instanceof Promise?l.then(d=>o(d,i,s)):o(l,i,s)}const c=e._zod.parse(i,s);if(c instanceof Promise){if(s.async===!1)throw new Jn;return c.then(l=>a(l,n,s))}return a(c,n,s)}}Te(e,"~standard",()=>({validate:a=>{try{const o=GL(e,a);return o.success?{value:o.data}:{issues:o.error?.issues}}catch{return WL(e,a).then(i=>i.success?{value:i.data}:{issues:i.error?.issues})}},vendor:"zod",version:1}))}),dd=P("$ZodString",(e,t)=>{Ge.init(e,t),e._zod.pattern=[...e?._zod.bag?.patterns??[]].pop()??kN(e._zod.bag),e._zod.parse=(r,n)=>{if(t.coerce)try{r.value=String(r.value)}catch{}return typeof r.value=="string"||r.issues.push({expected:"string",code:"invalid_type",input:r.value,inst:e}),r}}),Ne=P("$ZodStringFormat",(e,t)=>{qs.init(e,t),dd.init(e,t)}),MN=P("$ZodGUID",(e,t)=>{t.pattern??(t.pattern=lN),Ne.init(e,t)}),FN=P("$ZodUUID",(e,t)=>{if(t.version){const r={v1:1,v2:2,v3:3,v4:4,v5:5,v6:6,v7:7,v8:8}[t.version];if(r===void 0)throw new Error(`Invalid UUID version: "${t.version}"`);t.pattern??(t.pattern=Em(r))}else t.pattern??(t.pattern=Em());Ne.init(e,t)}),zN=P("$ZodEmail",(e,t)=>{t.pattern??(t.pattern=uN),Ne.init(e,t)}),VN=P("$ZodURL",(e,t)=>{Ne.init(e,t),e._zod.check=r=>{try{const n=r.value.trim(),a=new URL(n);t.hostname&&(t.hostname.lastIndex=0,t.hostname.test(a.hostname)||r.issues.push({code:"invalid_format",format:"url",note:"Invalid hostname",pattern:t.hostname.source,input:r.value,inst:e,continue:!t.abort})),t.protocol&&(t.protocol.lastIndex=0,t.protocol.test(a.protocol.endsWith(":")?a.protocol.slice(0,-1):a.protocol)||r.issues.push({code:"invalid_format",format:"url",note:"Invalid protocol",pattern:t.protocol.source,input:r.value,inst:e,continue:!t.abort})),t.normalize?r.value=a.href:r.value=n;return}catch{r.issues.push({code:"invalid_format",format:"url",input:r.value,inst:e,continue:!t.abort})}}}),BN=P("$ZodEmoji",(e,t)=>{t.pattern??(t.pattern=pN()),Ne.init(e,t)}),HN=P("$ZodNanoID",(e,t)=>{t.pattern??(t.pattern=sN),Ne.init(e,t)}),UN=P("$ZodCUID",(e,t)=>{t.pattern??(t.pattern=rN),Ne.init(e,t)}),jN=P("$ZodCUID2",(e,t)=>{t.pattern??(t.pattern=nN),Ne.init(e,t)}),qN=P("$ZodULID",(e,t)=>{t.pattern??(t.pattern=aN),Ne.init(e,t)}),GN=P("$ZodXID",(e,t)=>{t.pattern??(t.pattern=oN),Ne.init(e,t)}),WN=P("$ZodKSUID",(e,t)=>{t.pattern??(t.pattern=iN),Ne.init(e,t)}),ZN=P("$ZodISODateTime",(e,t)=>{t.pattern??(t.pattern=_N(t)),Ne.init(e,t)}),KN=P("$ZodISODate",(e,t)=>{t.pattern??(t.pattern=bN),Ne.init(e,t)}),YN=P("$ZodISOTime",(e,t)=>{t.pattern??(t.pattern=wN(t)),Ne.init(e,t)}),XN=P("$ZodISODuration",(e,t)=>{t.pattern??(t.pattern=cN),Ne.init(e,t)}),JN=P("$ZodIPv4",(e,t)=>{t.pattern??(t.pattern=fN),Ne.init(e,t),e._zod.bag.format="ipv4"}),QN=P("$ZodIPv6",(e,t)=>{t.pattern??(t.pattern=mN),Ne.init(e,t),e._zod.bag.format="ipv6",e._zod.check=r=>{try{new URL(`http://[${r.value}]`)}catch{r.issues.push({code:"invalid_format",format:"ipv6",input:r.value,inst:e,continue:!t.abort})}}}),eD=P("$ZodCIDRv4",(e,t)=>{t.pattern??(t.pattern=hN),Ne.init(e,t)}),tD=P("$ZodCIDRv6",(e,t)=>{t.pattern??(t.pattern=gN),Ne.init(e,t),e._zod.check=r=>{const n=r.value.split("/");try{if(n.length!==2)throw new Error;const[a,o]=n;if(!o)throw new Error;const i=Number(o);if(`${i}`!==o)throw new Error;if(i<0||i>128)throw new Error;new URL(`http://[${a}]`)}catch{r.issues.push({code:"invalid_format",format:"cidrv6",input:r.value,inst:e,continue:!t.abort})}}});function J1(e){if(e==="")return!0;if(e.length%4!==0)return!1;try{return atob(e),!0}catch{return!1}}var rD=P("$ZodBase64",(e,t)=>{t.pattern??(t.pattern=vN),Ne.init(e,t),e._zod.bag.contentEncoding="base64",e._zod.check=r=>{J1(r.value)||r.issues.push({code:"invalid_format",format:"base64",input:r.value,inst:e,continue:!t.abort})}});function nD(e){if(!K1.test(e))return!1;const t=e.replace(/[-_]/g,r=>r==="-"?"+":"/");return J1(t.padEnd(Math.ceil(t.length/4)*4,"="))}var aD=P("$ZodBase64URL",(e,t)=>{t.pattern??(t.pattern=K1),Ne.init(e,t),e._zod.bag.contentEncoding="base64url",e._zod.check=r=>{nD(r.value)||r.issues.push({code:"invalid_format",format:"base64url",input:r.value,inst:e,continue:!t.abort})}}),oD=P("$ZodE164",(e,t)=>{t.pattern??(t.pattern=yN),Ne.init(e,t)});function iD(e,t=null){try{const r=e.split(".");if(r.length!==3)return!1;const[n]=r;if(!n)return!1;const a=JSON.parse(atob(n));return!("typ"in a&&a?.typ!=="JWT"||!a.alg||t&&(!("alg"in a)||a.alg!==t))}catch{return!1}}var sD=P("$ZodJWT",(e,t)=>{Ne.init(e,t),e._zod.check=r=>{iD(r.value,t.alg)||r.issues.push({code:"invalid_format",format:"jwt",input:r.value,inst:e,continue:!t.abort})}}),cD=P("$ZodUnknown",(e,t)=>{Ge.init(e,t),e._zod.parse=r=>r}),lD=P("$ZodNever",(e,t)=>{Ge.init(e,t),e._zod.parse=(r,n)=>(r.issues.push({expected:"never",code:"invalid_type",input:r.value,inst:e}),r)});function Tm(e,t,r){e.issues.length&&t.issues.push(...q1(r,e.issues)),t.value[r]=e.value}var uD=P("$ZodArray",(e,t)=>{Ge.init(e,t),e._zod.parse=(r,n)=>{const a=r.value;if(!Array.isArray(a))return r.issues.push({expected:"array",code:"invalid_type",input:a,inst:e}),r;r.value=Array(a.length);const o=[];for(let i=0;iTm(l,r,i))):Tm(c,r,i)}return o.length?Promise.all(o).then(()=>r):r}});function is(e,t,r,n,a){if(e.issues.length){if(a&&!(r in n))return;t.issues.push(...q1(r,e.issues))}e.value===void 0?r in n&&(t.value[r]=void 0):t.value[r]=e.value}function Q1(e){const t=Object.keys(e.shape);for(const n of t)if(!e.shape?.[n]?._zod?.traits?.has("$ZodType"))throw new Error(`Invalid element at key "${n}": expected a Zod schema`);const r=OL(e.shape);return{...e,keys:t,keySet:new Set(t),numKeys:t.length,optionalKeys:new Set(r)}}function ey(e,t,r,n,a,o){const i=[],s=a.keySet,c=a.catchall._zod,l=c.def.type,d=c.optout==="optional";for(const u in t){if(s.has(u))continue;if(l==="never"){i.push(u);continue}const f=c.run({value:t[u],issues:[]},n);f instanceof Promise?e.push(f.then(m=>is(m,r,u,t,d))):is(f,r,u,t,d)}return i.length&&r.issues.push({code:"unrecognized_keys",keys:i,input:t,inst:o}),e.length?Promise.all(e).then(()=>r):r}var dD=P("$ZodObject",(e,t)=>{if(Ge.init(e,t),!Object.getOwnPropertyDescriptor(t,"shape")?.get){const i=t.shape;Object.defineProperty(t,"shape",{get:()=>{const s={...i};return Object.defineProperty(t,"shape",{value:s}),s}})}const r=od(()=>Q1(t));Te(e._zod,"propValues",()=>{const i=t.shape,s={};for(const c in i){const l=i[c]._zod;if(l.values){s[c]??(s[c]=new Set);for(const d of l.values)s[c].add(d)}}return s});const n=os,a=t.catchall;let o;e._zod.parse=(i,s)=>{o??(o=r.value);const c=i.value;if(!n(c))return i.issues.push({expected:"object",code:"invalid_type",input:c,inst:e}),i;i.value={};const l=[],d=o.shape;for(const u of o.keys){const f=d[u],m=f._zod.optout==="optional",h=f._zod.run({value:c[u],issues:[]},s);h instanceof Promise?l.push(h.then(g=>is(g,i,u,c,m))):is(h,i,u,c,m)}return a?ey(l,c,i,s,r.value,e):l.length?Promise.all(l).then(()=>i):i}}),pD=P("$ZodObjectJIT",(e,t)=>{dD.init(e,t);const r=e._zod.parse,n=od(()=>Q1(t)),a=f=>{const m=new DN(["shape","payload","ctx"]),h=n.value,g=y=>{const S=xm(y);return`shape[${S}]._zod.run({ value: input[${S}], issues: [] }, ctx)`};m.write("const input = payload.value;");const v=Object.create(null);let b=0;for(const y of h.keys)v[y]=`key_${b++}`;m.write("const newResult = {};");for(const y of h.keys){const S=v[y],w=xm(y),C=f[y]?._zod?.optout==="optional";m.write(`const ${S} = ${g(y)};`),C?m.write(` if (${S}.issues.length) { if (${w} in input) { payload.issues = payload.issues.concat(${S}.issues.map(iss => ({ ...iss, path: iss.path ? [${w}, ...iss.path] : [${w}] }))); } } if (${S}.value === undefined) { if (${w} in input) { newResult[${w}] = undefined; } } else { newResult[${w}] = ${S}.value; } `):m.write(` if (${S}.issues.length) { payload.issues = payload.issues.concat(${S}.issues.map(iss => ({ ...iss, path: iss.path ? [${w}, ...iss.path] : [${w}] }))); } if (${S}.value === undefined) { if (${w} in input) { newResult[${w}] = undefined; } } else { newResult[${w}] = ${S}.value; } `)}m.write("payload.value = newResult;"),m.write("return payload;");const I=m.compile();return(y,S)=>I(f,y,S)};let o;const i=os,s=!Ll.jitless,l=s&&NL.value,d=t.catchall;let u;e._zod.parse=(f,m)=>{u??(u=n.value);const h=f.value;return i(h)?s&&l&&m?.async===!1&&m.jitless!==!0?(o||(o=a(t.shape)),f=o(f,m),d?ey([],h,f,m,u,e):f):r(f,m):(f.issues.push({expected:"object",code:"invalid_type",input:h,inst:e}),f)}});function Im(e,t,r,n){for(const o of e)if(o.issues.length===0)return t.value=o.value,t;const a=e.filter(o=>!Zn(o));return a.length===1?(t.value=a[0].value,a[0]):(t.issues.push({code:"invalid_union",input:t.value,inst:r,errors:e.map(o=>o.issues.map(i=>En(i,n,xn())))}),t)}var fD=P("$ZodUnion",(e,t)=>{Ge.init(e,t),Te(e._zod,"optin",()=>t.options.some(a=>a._zod.optin==="optional")?"optional":void 0),Te(e._zod,"optout",()=>t.options.some(a=>a._zod.optout==="optional")?"optional":void 0),Te(e._zod,"values",()=>{if(t.options.every(a=>a._zod.values))return new Set(t.options.flatMap(a=>Array.from(a._zod.values)))}),Te(e._zod,"pattern",()=>{if(t.options.every(a=>a._zod.pattern)){const a=t.options.map(o=>o._zod.pattern);return new RegExp(`^(${a.map(o=>sd(o.source)).join("|")})$`)}});const r=t.options.length===1,n=t.options[0]._zod.run;e._zod.parse=(a,o)=>{if(r)return n(a,o);let i=!1;const s=[];for(const c of t.options){const l=c._zod.run({value:a.value,issues:[]},o);if(l instanceof Promise)s.push(l),i=!0;else{if(l.issues.length===0)return l;s.push(l)}}return i?Promise.all(s).then(c=>Im(c,a,e,o)):Im(s,a,e,o)}}),mD=P("$ZodIntersection",(e,t)=>{Ge.init(e,t),e._zod.parse=(r,n)=>{const a=r.value,o=t.left._zod.run({value:a,issues:[]},n),i=t.right._zod.run({value:a,issues:[]},n);return o instanceof Promise||i instanceof Promise?Promise.all([o,i]).then(([s,c])=>Cm(r,s,c)):Cm(r,o,i)}});function Dl(e,t){if(e===t)return{valid:!0,data:e};if(e instanceof Date&&t instanceof Date&&+e==+t)return{valid:!0,data:e};if(uo(e)&&uo(t)){const r=Object.keys(t),n=Object.keys(e).filter(o=>r.indexOf(o)!==-1),a={...e,...t};for(const o of n){const i=Dl(e[o],t[o]);if(!i.valid)return{valid:!1,mergeErrorPath:[o,...i.mergeErrorPath]};a[o]=i.data}return{valid:!0,data:a}}if(Array.isArray(e)&&Array.isArray(t)){if(e.length!==t.length)return{valid:!1,mergeErrorPath:[]};const r=[];for(let n=0;ns.l&&s.r).map(([s])=>s);if(o.length&&a&&e.issues.push({...a,keys:o}),Zn(e))return e;const i=Dl(t.value,r.value);if(!i.valid)throw new Error(`Unmergable intersection. Error path: ${JSON.stringify(i.mergeErrorPath)}`);return e.value=i.data,e}var hD=P("$ZodEnum",(e,t)=>{Ge.init(e,t);const r=H1(t.entries),n=new Set(r);e._zod.values=n,e._zod.pattern=new RegExp(`^(${r.filter(a=>DL.has(typeof a)).map(a=>typeof a=="string"?Hs(a):a.toString()).join("|")})$`),e._zod.parse=(a,o)=>{const i=a.value;return n.has(i)||a.issues.push({code:"invalid_value",values:r,input:i,inst:e}),a}}),gD=P("$ZodTransform",(e,t)=>{Ge.init(e,t),e._zod.parse=(r,n)=>{if(n.direction==="backward")throw new B1(e.constructor.name);const a=t.transform(r.value,r);if(n.async)return(a instanceof Promise?a:Promise.resolve(a)).then(o=>(r.value=o,r));if(a instanceof Promise)throw new Jn;return r.value=a,r}});function Rm(e,t){return e.issues.length&&t===void 0?{issues:[],value:void 0}:e}var ty=P("$ZodOptional",(e,t)=>{Ge.init(e,t),e._zod.optin="optional",e._zod.optout="optional",Te(e._zod,"values",()=>t.innerType._zod.values?new Set([...t.innerType._zod.values,void 0]):void 0),Te(e._zod,"pattern",()=>{const r=t.innerType._zod.pattern;return r?new RegExp(`^(${sd(r.source)})?$`):void 0}),e._zod.parse=(r,n)=>{if(t.innerType._zod.optin==="optional"){const a=t.innerType._zod.run(r,n);return a instanceof Promise?a.then(o=>Rm(o,r.value)):Rm(a,r.value)}return r.value===void 0?r:t.innerType._zod.run(r,n)}}),vD=P("$ZodExactOptional",(e,t)=>{ty.init(e,t),Te(e._zod,"values",()=>t.innerType._zod.values),Te(e._zod,"pattern",()=>t.innerType._zod.pattern),e._zod.parse=(r,n)=>t.innerType._zod.run(r,n)}),yD=P("$ZodNullable",(e,t)=>{Ge.init(e,t),Te(e._zod,"optin",()=>t.innerType._zod.optin),Te(e._zod,"optout",()=>t.innerType._zod.optout),Te(e._zod,"pattern",()=>{const r=t.innerType._zod.pattern;return r?new RegExp(`^(${sd(r.source)}|null)$`):void 0}),Te(e._zod,"values",()=>t.innerType._zod.values?new Set([...t.innerType._zod.values,null]):void 0),e._zod.parse=(r,n)=>r.value===null?r:t.innerType._zod.run(r,n)}),bD=P("$ZodDefault",(e,t)=>{Ge.init(e,t),e._zod.optin="optional",Te(e._zod,"values",()=>t.innerType._zod.values),e._zod.parse=(r,n)=>{if(n.direction==="backward")return t.innerType._zod.run(r,n);if(r.value===void 0)return r.value=t.defaultValue,r;const a=t.innerType._zod.run(r,n);return a instanceof Promise?a.then(o=>$m(o,t)):$m(a,t)}});function $m(e,t){return e.value===void 0&&(e.value=t.defaultValue),e}var wD=P("$ZodPrefault",(e,t)=>{Ge.init(e,t),e._zod.optin="optional",Te(e._zod,"values",()=>t.innerType._zod.values),e._zod.parse=(r,n)=>(n.direction==="backward"||r.value===void 0&&(r.value=t.defaultValue),t.innerType._zod.run(r,n))}),_D=P("$ZodNonOptional",(e,t)=>{Ge.init(e,t),Te(e._zod,"values",()=>{const r=t.innerType._zod.values;return r?new Set([...r].filter(n=>n!==void 0)):void 0}),e._zod.parse=(r,n)=>{const a=t.innerType._zod.run(r,n);return a instanceof Promise?a.then(o=>Pm(o,e)):Pm(a,e)}});function Pm(e,t){return!e.issues.length&&e.value===void 0&&e.issues.push({code:"invalid_type",expected:"nonoptional",input:e.value,inst:t}),e}var kD=P("$ZodCatch",(e,t)=>{Ge.init(e,t),Te(e._zod,"optin",()=>t.innerType._zod.optin),Te(e._zod,"optout",()=>t.innerType._zod.optout),Te(e._zod,"values",()=>t.innerType._zod.values),e._zod.parse=(r,n)=>{if(n.direction==="backward")return t.innerType._zod.run(r,n);const a=t.innerType._zod.run(r,n);return a instanceof Promise?a.then(o=>(r.value=o.value,o.issues.length&&(r.value=t.catchValue({...r,error:{issues:o.issues.map(i=>En(i,n,xn()))},input:r.value}),r.issues=[]),r)):(r.value=a.value,a.issues.length&&(r.value=t.catchValue({...r,error:{issues:a.issues.map(o=>En(o,n,xn()))},input:r.value}),r.issues=[]),r)}}),SD=P("$ZodPipe",(e,t)=>{Ge.init(e,t),Te(e._zod,"values",()=>t.in._zod.values),Te(e._zod,"optin",()=>t.in._zod.optin),Te(e._zod,"optout",()=>t.out._zod.optout),Te(e._zod,"propValues",()=>t.in._zod.propValues),e._zod.parse=(r,n)=>{if(n.direction==="backward"){const o=t.out._zod.run(r,n);return o instanceof Promise?o.then(i=>si(i,t.in,n)):si(o,t.in,n)}const a=t.in._zod.run(r,n);return a instanceof Promise?a.then(o=>si(o,t.out,n)):si(a,t.out,n)}});function si(e,t,r){return e.issues.length?(e.aborted=!0,e):t._zod.run({value:e.value,issues:e.issues},r)}var xD=P("$ZodReadonly",(e,t)=>{Ge.init(e,t),Te(e._zod,"propValues",()=>t.innerType._zod.propValues),Te(e._zod,"values",()=>t.innerType._zod.values),Te(e._zod,"optin",()=>t.innerType?._zod?.optin),Te(e._zod,"optout",()=>t.innerType?._zod?.optout),e._zod.parse=(r,n)=>{if(n.direction==="backward")return t.innerType._zod.run(r,n);const a=t.innerType._zod.run(r,n);return a instanceof Promise?a.then(Am):Am(a)}});function Am(e){return e.value=Object.freeze(e.value),e}var ED=P("$ZodCustom",(e,t)=>{ur.init(e,t),Ge.init(e,t),e._zod.parse=(r,n)=>r,e._zod.check=r=>{const n=r.value,a=t.fn(n);if(a instanceof Promise)return a.then(o=>Lm(o,r,n,e));Lm(a,r,n,e)}});function Lm(e,t,r,n){if(!e){const a={code:"custom",input:r,inst:n,path:[...n._zod.def.path??[]],continue:!n._zod.def.abort};n._zod.def.params&&(a.params=n._zod.def.params),t.issues.push(po(a))}}var Nm,TD=class{constructor(){this._map=new WeakMap,this._idmap=new Map}add(e,...t){const r=t[0];return this._map.set(e,r),r&&typeof r=="object"&&"id"in r&&this._idmap.set(r.id,e),this}clear(){return this._map=new WeakMap,this._idmap=new Map,this}remove(e){const t=this._map.get(e);return t&&typeof t=="object"&&"id"in t&&this._idmap.delete(t.id),this._map.delete(e),this}get(e){const t=e._zod.parent;if(t){const r={...this.get(t)??{}};delete r.id;const n={...r,...this._map.get(e)};return Object.keys(n).length?n:void 0}return this._map.get(e)}has(e){return this._map.has(e)}};function ID(){return new TD}(Nm=globalThis).__zod_globalRegistry??(Nm.__zod_globalRegistry=ID());var Ha=globalThis.__zod_globalRegistry;function CD(e,t){return new e({type:"string",...ae(t)})}function RD(e,t){return new e({type:"string",format:"email",check:"string_format",abort:!1,...ae(t)})}function Dm(e,t){return new e({type:"string",format:"guid",check:"string_format",abort:!1,...ae(t)})}function $D(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,...ae(t)})}function PD(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v4",...ae(t)})}function AD(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v6",...ae(t)})}function LD(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v7",...ae(t)})}function ND(e,t){return new e({type:"string",format:"url",check:"string_format",abort:!1,...ae(t)})}function DD(e,t){return new e({type:"string",format:"emoji",check:"string_format",abort:!1,...ae(t)})}function OD(e,t){return new e({type:"string",format:"nanoid",check:"string_format",abort:!1,...ae(t)})}function MD(e,t){return new e({type:"string",format:"cuid",check:"string_format",abort:!1,...ae(t)})}function FD(e,t){return new e({type:"string",format:"cuid2",check:"string_format",abort:!1,...ae(t)})}function zD(e,t){return new e({type:"string",format:"ulid",check:"string_format",abort:!1,...ae(t)})}function VD(e,t){return new e({type:"string",format:"xid",check:"string_format",abort:!1,...ae(t)})}function BD(e,t){return new e({type:"string",format:"ksuid",check:"string_format",abort:!1,...ae(t)})}function HD(e,t){return new e({type:"string",format:"ipv4",check:"string_format",abort:!1,...ae(t)})}function UD(e,t){return new e({type:"string",format:"ipv6",check:"string_format",abort:!1,...ae(t)})}function jD(e,t){return new e({type:"string",format:"cidrv4",check:"string_format",abort:!1,...ae(t)})}function qD(e,t){return new e({type:"string",format:"cidrv6",check:"string_format",abort:!1,...ae(t)})}function GD(e,t){return new e({type:"string",format:"base64",check:"string_format",abort:!1,...ae(t)})}function WD(e,t){return new e({type:"string",format:"base64url",check:"string_format",abort:!1,...ae(t)})}function ZD(e,t){return new e({type:"string",format:"e164",check:"string_format",abort:!1,...ae(t)})}function KD(e,t){return new e({type:"string",format:"jwt",check:"string_format",abort:!1,...ae(t)})}function YD(e,t){return new e({type:"string",format:"datetime",check:"string_format",offset:!1,local:!1,precision:null,...ae(t)})}function XD(e,t){return new e({type:"string",format:"date",check:"string_format",...ae(t)})}function JD(e,t){return new e({type:"string",format:"time",check:"string_format",precision:null,...ae(t)})}function QD(e,t){return new e({type:"string",format:"duration",check:"string_format",...ae(t)})}function eO(e){return new e({type:"unknown"})}function tO(e,t){return new e({type:"never",...ae(t)})}function ry(e,t){return new EN({check:"max_length",...ae(t),maximum:e})}function ss(e,t){return new TN({check:"min_length",...ae(t),minimum:e})}function ny(e,t){return new IN({check:"length_equals",...ae(t),length:e})}function rO(e,t){return new CN({check:"string_format",format:"regex",...ae(t),pattern:e})}function nO(e){return new RN({check:"string_format",format:"lowercase",...ae(e)})}function aO(e){return new $N({check:"string_format",format:"uppercase",...ae(e)})}function oO(e,t){return new PN({check:"string_format",format:"includes",...ae(t),includes:e})}function iO(e,t){return new AN({check:"string_format",format:"starts_with",...ae(t),prefix:e})}function sO(e,t){return new LN({check:"string_format",format:"ends_with",...ae(t),suffix:e})}function $a(e){return new NN({check:"overwrite",tx:e})}function cO(e){return $a(t=>t.normalize(e))}function lO(){return $a(e=>e.trim())}function uO(){return $a(e=>e.toLowerCase())}function dO(){return $a(e=>e.toUpperCase())}function pO(){return $a(e=>LL(e))}function fO(e,t,r){return new e({type:"array",element:t,...ae(r)})}function mO(e,t,r){return new e({type:"custom",check:"custom",fn:t,...ae(r)})}function hO(e){const t=gO(r=>(r.addIssue=n=>{if(typeof n=="string")r.issues.push(po(n,r.value,t._zod.def));else{const a=n;a.fatal&&(a.continue=!1),a.code??(a.code="custom"),a.input??(a.input=r.value),a.inst??(a.inst=t),a.continue??(a.continue=!t._zod.def.abort),r.issues.push(po(a))}},e(r.value,r)));return t}function gO(e,t){const r=new ur({check:"custom",...ae(t)});return r._zod.check=e,r}function ay(e){let t=e?.target??"draft-2020-12";return t==="draft-4"&&(t="draft-04"),t==="draft-7"&&(t="draft-07"),{processors:e.processors??{},metadataRegistry:e?.metadata??Ha,target:t,unrepresentable:e?.unrepresentable??"throw",override:e?.override??(()=>{}),io:e?.io??"output",counter:0,seen:new Map,cycles:e?.cycles??"ref",reused:e?.reused??"inline",external:e?.external??void 0}}function et(e,t,r={path:[],schemaPath:[]}){var n;const a=e._zod.def,o=t.seen.get(e);if(o)return o.count++,r.schemaPath.includes(e)&&(o.cycle=r.path),o.schema;const i={schema:{},count:1,cycle:void 0,path:r.path};t.seen.set(e,i);const s=e._zod.toJSONSchema?.();if(s)i.schema=s;else{const l={...r,schemaPath:[...r.schemaPath,e],path:r.path};if(e._zod.processJSONSchema)e._zod.processJSONSchema(t,i.schema,l);else{const u=i.schema,f=t.processors[a.type];if(!f)throw new Error(`[toJSONSchema]: Non-representable type encountered: ${a.type}`);f(e,t,u,l)}const d=e._zod.parent;d&&(i.ref||(i.ref=d),et(d,t,l),t.seen.get(d).isParent=!0)}const c=t.metadataRegistry.get(e);return c&&Object.assign(i.schema,c),t.io==="input"&<(e)&&(delete i.schema.examples,delete i.schema.default),t.io==="input"&&i.schema._prefault&&((n=i.schema).default??(n.default=i.schema._prefault)),delete i.schema._prefault,t.seen.get(e).schema}function oy(e,t){const r=e.seen.get(t);if(!r)throw new Error("Unprocessed schema. This is a bug in Zod.");const n=new Map;for(const i of e.seen.entries()){const s=e.metadataRegistry.get(i[0])?.id;if(s){const c=n.get(s);if(c&&c!==i[0])throw new Error(`Duplicate schema id "${s}" detected during JSON Schema conversion. Two different schemas cannot share the same id when converted together.`);n.set(s,i[0])}}const a=i=>{const s=e.target==="draft-2020-12"?"$defs":"definitions";if(e.external){const d=e.external.registry.get(i[0])?.id,u=e.external.uri??(m=>m);if(d)return{ref:u(d)};const f=i[1].defId??i[1].schema.id??`schema${e.counter++}`;return i[1].defId=f,{defId:f,ref:`${u("__shared")}#/${s}/${f}`}}if(i[1]===r)return{ref:"#"};const c=`#/${s}/`,l=i[1].schema.id??`__schema${e.counter++}`;return{defId:l,ref:c+l}},o=i=>{if(i[1].schema.$ref)return;const s=i[1],{ref:c,defId:l}=a(i);s.def={...s.schema},l&&(s.defId=l);const d=s.schema;for(const u in d)delete d[u];d.$ref=c};if(e.cycles==="throw")for(const i of e.seen.entries()){const s=i[1];if(s.cycle)throw new Error(`Cycle detected: #/${s.cycle?.join("/")}/ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.`)}for(const i of e.seen.entries()){const s=i[1];if(t===i[0]){o(i);continue}if(e.external){const c=e.external.registry.get(i[0])?.id;if(t!==i[0]&&c){o(i);continue}}if(e.metadataRegistry.get(i[0])?.id){o(i);continue}if(s.cycle){o(i);continue}if(s.count>1&&e.reused==="ref"){o(i);continue}}}function iy(e,t){const r=e.seen.get(t);if(!r)throw new Error("Unprocessed schema. This is a bug in Zod.");const n=i=>{const s=e.seen.get(i);if(s.ref===null)return;const c=s.def??s.schema,l={...c},d=s.ref;if(s.ref=null,d){n(d);const f=e.seen.get(d),m=f.schema;if(m.$ref&&(e.target==="draft-07"||e.target==="draft-04"||e.target==="openapi-3.0")?(c.allOf=c.allOf??[],c.allOf.push(m)):Object.assign(c,m),Object.assign(c,l),i._zod.parent===d)for(const h in c)h==="$ref"||h==="allOf"||h in l||delete c[h];if(m.$ref&&f.def)for(const h in c)h==="$ref"||h==="allOf"||h in f.def&&JSON.stringify(c[h])===JSON.stringify(f.def[h])&&delete c[h]}const u=i._zod.parent;if(u&&u!==d){n(u);const f=e.seen.get(u);if(f?.schema.$ref&&(c.$ref=f.schema.$ref,f.def))for(const m in c)m==="$ref"||m==="allOf"||m in f.def&&JSON.stringify(c[m])===JSON.stringify(f.def[m])&&delete c[m]}e.override({zodSchema:i,jsonSchema:c,path:s.path??[]})};for(const i of[...e.seen.entries()].reverse())n(i[0]);const a={};if(e.target==="draft-2020-12"?a.$schema="https://json-schema.org/draft/2020-12/schema":e.target==="draft-07"?a.$schema="http://json-schema.org/draft-07/schema#":e.target==="draft-04"?a.$schema="http://json-schema.org/draft-04/schema#":e.target,e.external?.uri){const i=e.external.registry.get(t)?.id;if(!i)throw new Error("Schema is missing an `id` property");a.$id=e.external.uri(i)}Object.assign(a,r.def??r.schema);const o=e.external?.defs??{};for(const i of e.seen.entries()){const s=i[1];s.def&&s.defId&&(o[s.defId]=s.def)}e.external||Object.keys(o).length>0&&(e.target==="draft-2020-12"?a.$defs=o:a.definitions=o);try{const i=JSON.parse(JSON.stringify(a));return Object.defineProperty(i,"~standard",{value:{...t["~standard"],jsonSchema:{input:cs(t,"input",e.processors),output:cs(t,"output",e.processors)}},enumerable:!1,writable:!1}),i}catch{throw new Error("Error converting schema to JSON.")}}function lt(e,t){const r=t??{seen:new Set};if(r.seen.has(e))return!1;r.seen.add(e);const n=e._zod.def;if(n.type==="transform")return!0;if(n.type==="array")return lt(n.element,r);if(n.type==="set")return lt(n.valueType,r);if(n.type==="lazy")return lt(n.getter(),r);if(n.type==="promise"||n.type==="optional"||n.type==="nonoptional"||n.type==="nullable"||n.type==="readonly"||n.type==="default"||n.type==="prefault")return lt(n.innerType,r);if(n.type==="intersection")return lt(n.left,r)||lt(n.right,r);if(n.type==="record"||n.type==="map")return lt(n.keyType,r)||lt(n.valueType,r);if(n.type==="pipe")return lt(n.in,r)||lt(n.out,r);if(n.type==="object"){for(const a in n.shape)if(lt(n.shape[a],r))return!0;return!1}if(n.type==="union"){for(const a of n.options)if(lt(a,r))return!0;return!1}if(n.type==="tuple"){for(const a of n.items)if(lt(a,r))return!0;return!!(n.rest&<(n.rest,r))}return!1}var vO=(e,t={})=>r=>{const n=ay({...r,processors:t});return et(e,n),oy(n,e),iy(n,e)},cs=(e,t,r={})=>n=>{const{libraryOptions:a,target:o}=n??{},i=ay({...a??{},target:o,io:t,processors:r});return et(e,i),oy(i,e),iy(i,e)},yO={guid:"uuid",url:"uri",datetime:"date-time",json_string:"json-string",regex:""},bO=(e,t,r,n)=>{const a=r;a.type="string";const{minimum:o,maximum:i,format:s,patterns:c,contentEncoding:l}=e._zod.bag;if(typeof o=="number"&&(a.minLength=o),typeof i=="number"&&(a.maxLength=i),s&&(a.format=yO[s]??s,a.format===""&&delete a.format,s==="time"&&delete a.format),l&&(a.contentEncoding=l),c&&c.size>0){const d=[...c];d.length===1?a.pattern=d[0].source:d.length>1&&(a.allOf=[...d.map(u=>({...t.target==="draft-07"||t.target==="draft-04"||t.target==="openapi-3.0"?{type:"string"}:{},pattern:u.source}))])}},wO=(e,t,r,n)=>{r.not={}},_O=(e,t,r,n)=>{},kO=(e,t,r,n)=>{const a=e._zod.def,o=H1(a.entries);o.every(i=>typeof i=="number")&&(r.type="number"),o.every(i=>typeof i=="string")&&(r.type="string"),r.enum=o},SO=(e,t,r,n)=>{if(t.unrepresentable==="throw")throw new Error("Custom types cannot be represented in JSON Schema")},xO=(e,t,r,n)=>{if(t.unrepresentable==="throw")throw new Error("Transforms cannot be represented in JSON Schema")},EO=(e,t,r,n)=>{const a=r,o=e._zod.def,{minimum:i,maximum:s}=e._zod.bag;typeof i=="number"&&(a.minItems=i),typeof s=="number"&&(a.maxItems=s),a.type="array",a.items=et(o.element,t,{...n,path:[...n.path,"items"]})},TO=(e,t,r,n)=>{const a=r,o=e._zod.def;a.type="object",a.properties={};const i=o.shape;for(const l in i)a.properties[l]=et(i[l],t,{...n,path:[...n.path,"properties",l]});const s=new Set(Object.keys(i)),c=new Set([...s].filter(l=>{const d=o.shape[l]._zod;return t.io==="input"?d.optin===void 0:d.optout===void 0}));c.size>0&&(a.required=Array.from(c)),o.catchall?._zod.def.type==="never"?a.additionalProperties=!1:o.catchall?o.catchall&&(a.additionalProperties=et(o.catchall,t,{...n,path:[...n.path,"additionalProperties"]})):t.io==="output"&&(a.additionalProperties=!1)},IO=(e,t,r,n)=>{const a=e._zod.def,o=a.inclusive===!1,i=a.options.map((s,c)=>et(s,t,{...n,path:[...n.path,o?"oneOf":"anyOf",c]}));o?r.oneOf=i:r.anyOf=i},CO=(e,t,r,n)=>{const a=e._zod.def,o=et(a.left,t,{...n,path:[...n.path,"allOf",0]}),i=et(a.right,t,{...n,path:[...n.path,"allOf",1]}),s=c=>"allOf"in c&&Object.keys(c).length===1;r.allOf=[...s(o)?o.allOf:[o],...s(i)?i.allOf:[i]]},RO=(e,t,r,n)=>{const a=e._zod.def,o=et(a.innerType,t,n),i=t.seen.get(e);t.target==="openapi-3.0"?(i.ref=a.innerType,r.nullable=!0):r.anyOf=[o,{type:"null"}]},$O=(e,t,r,n)=>{const a=e._zod.def;et(a.innerType,t,n);const o=t.seen.get(e);o.ref=a.innerType},PO=(e,t,r,n)=>{const a=e._zod.def;et(a.innerType,t,n);const o=t.seen.get(e);o.ref=a.innerType,r.default=JSON.parse(JSON.stringify(a.defaultValue))},AO=(e,t,r,n)=>{const a=e._zod.def;et(a.innerType,t,n);const o=t.seen.get(e);o.ref=a.innerType,t.io==="input"&&(r._prefault=JSON.parse(JSON.stringify(a.defaultValue)))},LO=(e,t,r,n)=>{const a=e._zod.def;et(a.innerType,t,n);const o=t.seen.get(e);o.ref=a.innerType;let i;try{i=a.catchValue(void 0)}catch{throw new Error("Dynamic catch values are not supported in JSON Schema")}r.default=i},NO=(e,t,r,n)=>{const a=e._zod.def,o=t.io==="input"?a.in._zod.def.type==="transform"?a.out:a.in:a.out;et(o,t,n);const i=t.seen.get(e);i.ref=o},DO=(e,t,r,n)=>{const a=e._zod.def;et(a.innerType,t,n);const o=t.seen.get(e);o.ref=a.innerType,r.readOnly=!0},sy=(e,t,r,n)=>{const a=e._zod.def;et(a.innerType,t,n);const o=t.seen.get(e);o.ref=a.innerType},OO=P("ZodISODateTime",(e,t)=>{ZN.init(e,t),De.init(e,t)});function MO(e){return YD(OO,e)}var FO=P("ZodISODate",(e,t)=>{KN.init(e,t),De.init(e,t)});function zO(e){return XD(FO,e)}var VO=P("ZodISOTime",(e,t)=>{YN.init(e,t),De.init(e,t)});function BO(e){return JD(VO,e)}var HO=P("ZodISODuration",(e,t)=>{XN.init(e,t),De.init(e,t)});function UO(e){return QD(HO,e)}var cy=(e,t)=>{W1.init(e,t),e.name="ZodError",Object.defineProperties(e,{format:{value:r=>qL(e,r)},flatten:{value:r=>jL(e,r)},addIssue:{value:r=>{e.issues.push(r),e.message=JSON.stringify(e.issues,Nl,2)}},addIssues:{value:r=>{e.issues.push(...r),e.message=JSON.stringify(e.issues,Nl,2)}},isEmpty:{get(){return e.issues.length===0}}})},sX=P("ZodError",cy),At=P("ZodError",cy,{Parent:Error}),jO=ld(At),qO=ud(At),GO=Us(At),WO=js(At),ZO=ZL(At),KO=KL(At),YO=YL(At),XO=XL(At),JO=JL(At),QO=QL(At),eM=eN(At),tM=tN(At),We=P("ZodType",(e,t)=>(Ge.init(e,t),Object.assign(e["~standard"],{jsonSchema:{input:cs(e,"input"),output:cs(e,"output")}}),e.toJSONSchema=vO(e,{}),e.def=t,e.type=t.type,Object.defineProperty(e,"_def",{value:t}),e.check=(...r)=>e.clone(an(t,{checks:[...t.checks??[],...r.map(n=>typeof n=="function"?{_zod:{check:n,def:{check:"custom"},onattach:[]}}:n)]}),{parent:!0}),e.with=e.check,e.clone=(r,n)=>on(e,r,n),e.brand=()=>e,e.register=((r,n)=>(r.add(e,n),e)),e.parse=(r,n)=>jO(e,r,n,{callee:e.parse}),e.safeParse=(r,n)=>GO(e,r,n),e.parseAsync=async(r,n)=>qO(e,r,n,{callee:e.parseAsync}),e.safeParseAsync=async(r,n)=>WO(e,r,n),e.spa=e.safeParseAsync,e.encode=(r,n)=>ZO(e,r,n),e.decode=(r,n)=>KO(e,r,n),e.encodeAsync=async(r,n)=>YO(e,r,n),e.decodeAsync=async(r,n)=>XO(e,r,n),e.safeEncode=(r,n)=>JO(e,r,n),e.safeDecode=(r,n)=>QO(e,r,n),e.safeEncodeAsync=async(r,n)=>eM(e,r,n),e.safeDecodeAsync=async(r,n)=>tM(e,r,n),e.refine=(r,n)=>e.check(WM(r,n)),e.superRefine=r=>e.check(ZM(r)),e.overwrite=r=>e.check($a(r)),e.optional=()=>Fm(e),e.exactOptional=()=>NM(e),e.nullable=()=>zm(e),e.nullish=()=>Fm(zm(e)),e.nonoptional=r=>VM(e,r),e.array=()=>xM(e),e.or=r=>CM([e,r]),e.and=r=>$M(e,r),e.transform=r=>Vm(e,AM(r)),e.default=r=>MM(e,r),e.prefault=r=>zM(e,r),e.catch=r=>HM(e,r),e.pipe=r=>Vm(e,r),e.readonly=()=>qM(e),e.describe=r=>{const n=e.clone();return Ha.add(n,{description:r}),n},Object.defineProperty(e,"description",{get(){return Ha.get(e)?.description},configurable:!0}),e.meta=(...r)=>{if(r.length===0)return Ha.get(e);const n=e.clone();return Ha.add(n,r[0]),n},e.isOptional=()=>e.safeParse(void 0).success,e.isNullable=()=>e.safeParse(null).success,e.apply=r=>r(e),e)),ly=P("_ZodString",(e,t)=>{dd.init(e,t),We.init(e,t),e._zod.processJSONSchema=(n,a,o)=>bO(e,n,a,o);const r=e._zod.bag;e.format=r.format??null,e.minLength=r.minimum??null,e.maxLength=r.maximum??null,e.regex=(...n)=>e.check(rO(...n)),e.includes=(...n)=>e.check(oO(...n)),e.startsWith=(...n)=>e.check(iO(...n)),e.endsWith=(...n)=>e.check(sO(...n)),e.min=(...n)=>e.check(ss(...n)),e.max=(...n)=>e.check(ry(...n)),e.length=(...n)=>e.check(ny(...n)),e.nonempty=(...n)=>e.check(ss(1,...n)),e.lowercase=n=>e.check(nO(n)),e.uppercase=n=>e.check(aO(n)),e.trim=()=>e.check(lO()),e.normalize=(...n)=>e.check(cO(...n)),e.toLowerCase=()=>e.check(uO()),e.toUpperCase=()=>e.check(dO()),e.slugify=()=>e.check(pO())}),rM=P("ZodString",(e,t)=>{dd.init(e,t),ly.init(e,t),e.email=r=>e.check(RD(nM,r)),e.url=r=>e.check(ND(aM,r)),e.jwt=r=>e.check(KD(bM,r)),e.emoji=r=>e.check(DD(oM,r)),e.guid=r=>e.check(Dm(Om,r)),e.uuid=r=>e.check($D(ci,r)),e.uuidv4=r=>e.check(PD(ci,r)),e.uuidv6=r=>e.check(AD(ci,r)),e.uuidv7=r=>e.check(LD(ci,r)),e.nanoid=r=>e.check(OD(iM,r)),e.guid=r=>e.check(Dm(Om,r)),e.cuid=r=>e.check(MD(sM,r)),e.cuid2=r=>e.check(FD(cM,r)),e.ulid=r=>e.check(zD(lM,r)),e.base64=r=>e.check(GD(gM,r)),e.base64url=r=>e.check(WD(vM,r)),e.xid=r=>e.check(VD(uM,r)),e.ksuid=r=>e.check(BD(dM,r)),e.ipv4=r=>e.check(HD(pM,r)),e.ipv6=r=>e.check(UD(fM,r)),e.cidrv4=r=>e.check(jD(mM,r)),e.cidrv6=r=>e.check(qD(hM,r)),e.e164=r=>e.check(ZD(yM,r)),e.datetime=r=>e.check(MO(r)),e.date=r=>e.check(zO(r)),e.time=r=>e.check(BO(r)),e.duration=r=>e.check(UO(r))});function dn(e){return CD(rM,e)}var De=P("ZodStringFormat",(e,t)=>{Ne.init(e,t),ly.init(e,t)}),nM=P("ZodEmail",(e,t)=>{zN.init(e,t),De.init(e,t)}),Om=P("ZodGUID",(e,t)=>{MN.init(e,t),De.init(e,t)}),ci=P("ZodUUID",(e,t)=>{FN.init(e,t),De.init(e,t)}),aM=P("ZodURL",(e,t)=>{VN.init(e,t),De.init(e,t)}),oM=P("ZodEmoji",(e,t)=>{BN.init(e,t),De.init(e,t)}),iM=P("ZodNanoID",(e,t)=>{HN.init(e,t),De.init(e,t)}),sM=P("ZodCUID",(e,t)=>{UN.init(e,t),De.init(e,t)}),cM=P("ZodCUID2",(e,t)=>{jN.init(e,t),De.init(e,t)}),lM=P("ZodULID",(e,t)=>{qN.init(e,t),De.init(e,t)}),uM=P("ZodXID",(e,t)=>{GN.init(e,t),De.init(e,t)}),dM=P("ZodKSUID",(e,t)=>{WN.init(e,t),De.init(e,t)}),pM=P("ZodIPv4",(e,t)=>{JN.init(e,t),De.init(e,t)}),fM=P("ZodIPv6",(e,t)=>{QN.init(e,t),De.init(e,t)}),mM=P("ZodCIDRv4",(e,t)=>{eD.init(e,t),De.init(e,t)}),hM=P("ZodCIDRv6",(e,t)=>{tD.init(e,t),De.init(e,t)}),gM=P("ZodBase64",(e,t)=>{rD.init(e,t),De.init(e,t)}),vM=P("ZodBase64URL",(e,t)=>{aD.init(e,t),De.init(e,t)}),yM=P("ZodE164",(e,t)=>{oD.init(e,t),De.init(e,t)}),bM=P("ZodJWT",(e,t)=>{sD.init(e,t),De.init(e,t)}),wM=P("ZodUnknown",(e,t)=>{cD.init(e,t),We.init(e,t),e._zod.processJSONSchema=(r,n,a)=>_O(e,r,n,a)});function Mm(){return eO(wM)}var _M=P("ZodNever",(e,t)=>{lD.init(e,t),We.init(e,t),e._zod.processJSONSchema=(r,n,a)=>wO(e,r,n,a)});function kM(e){return tO(_M,e)}var SM=P("ZodArray",(e,t)=>{uD.init(e,t),We.init(e,t),e._zod.processJSONSchema=(r,n,a)=>EO(e,r,n,a),e.element=t.element,e.min=(r,n)=>e.check(ss(r,n)),e.nonempty=r=>e.check(ss(1,r)),e.max=(r,n)=>e.check(ry(r,n)),e.length=(r,n)=>e.check(ny(r,n)),e.unwrap=()=>e.element});function xM(e,t){return fO(SM,e,t)}var EM=P("ZodObject",(e,t)=>{pD.init(e,t),We.init(e,t),e._zod.processJSONSchema=(r,n,a)=>TO(e,r,n,a),Te(e,"shape",()=>t.shape),e.keyof=()=>Ri(Object.keys(e._zod.def.shape)),e.catchall=r=>e.clone({...e._zod.def,catchall:r}),e.passthrough=()=>e.clone({...e._zod.def,catchall:Mm()}),e.loose=()=>e.clone({...e._zod.def,catchall:Mm()}),e.strict=()=>e.clone({...e._zod.def,catchall:kM()}),e.strip=()=>e.clone({...e._zod.def,catchall:void 0}),e.extend=r=>zL(e,r),e.safeExtend=r=>VL(e,r),e.merge=r=>BL(e,r),e.pick=r=>ML(e,r),e.omit=r=>FL(e,r),e.partial=(...r)=>HL(uy,e,r[0]),e.required=(...r)=>UL(dy,e,r[0])});function TM(e,t){return new EM({type:"object",shape:e??{},...ae(t)})}var IM=P("ZodUnion",(e,t)=>{fD.init(e,t),We.init(e,t),e._zod.processJSONSchema=(r,n,a)=>IO(e,r,n,a),e.options=t.options});function CM(e,t){return new IM({type:"union",options:e,...ae(t)})}var RM=P("ZodIntersection",(e,t)=>{mD.init(e,t),We.init(e,t),e._zod.processJSONSchema=(r,n,a)=>CO(e,r,n,a)});function $M(e,t){return new RM({type:"intersection",left:e,right:t})}var Ol=P("ZodEnum",(e,t)=>{hD.init(e,t),We.init(e,t),e._zod.processJSONSchema=(n,a,o)=>kO(e,n,a,o),e.enum=t.entries,e.options=Object.values(t.entries);const r=new Set(Object.keys(t.entries));e.extract=(n,a)=>{const o={};for(const i of n)if(r.has(i))o[i]=t.entries[i];else throw new Error(`Key ${i} not found in enum`);return new Ol({...t,checks:[],...ae(a),entries:o})},e.exclude=(n,a)=>{const o={...t.entries};for(const i of n)if(r.has(i))delete o[i];else throw new Error(`Key ${i} not found in enum`);return new Ol({...t,checks:[],...ae(a),entries:o})}});function Ri(e,t){return new Ol({type:"enum",entries:Array.isArray(e)?Object.fromEntries(e.map(r=>[r,r])):e,...ae(t)})}var PM=P("ZodTransform",(e,t)=>{gD.init(e,t),We.init(e,t),e._zod.processJSONSchema=(r,n,a)=>xO(e,r,n,a),e._zod.parse=(r,n)=>{if(n.direction==="backward")throw new B1(e.constructor.name);r.addIssue=o=>{if(typeof o=="string")r.issues.push(po(o,r.value,t));else{const i=o;i.fatal&&(i.continue=!1),i.code??(i.code="custom"),i.input??(i.input=r.value),i.inst??(i.inst=e),r.issues.push(po(i))}};const a=t.transform(r.value,r);return a instanceof Promise?a.then(o=>(r.value=o,r)):(r.value=a,r)}});function AM(e){return new PM({type:"transform",transform:e})}var uy=P("ZodOptional",(e,t)=>{ty.init(e,t),We.init(e,t),e._zod.processJSONSchema=(r,n,a)=>sy(e,r,n,a),e.unwrap=()=>e._zod.def.innerType});function Fm(e){return new uy({type:"optional",innerType:e})}var LM=P("ZodExactOptional",(e,t)=>{vD.init(e,t),We.init(e,t),e._zod.processJSONSchema=(r,n,a)=>sy(e,r,n,a),e.unwrap=()=>e._zod.def.innerType});function NM(e){return new LM({type:"optional",innerType:e})}var DM=P("ZodNullable",(e,t)=>{yD.init(e,t),We.init(e,t),e._zod.processJSONSchema=(r,n,a)=>RO(e,r,n,a),e.unwrap=()=>e._zod.def.innerType});function zm(e){return new DM({type:"nullable",innerType:e})}var OM=P("ZodDefault",(e,t)=>{bD.init(e,t),We.init(e,t),e._zod.processJSONSchema=(r,n,a)=>PO(e,r,n,a),e.unwrap=()=>e._zod.def.innerType,e.removeDefault=e.unwrap});function MM(e,t){return new OM({type:"default",innerType:e,get defaultValue(){return typeof t=="function"?t():j1(t)}})}var FM=P("ZodPrefault",(e,t)=>{wD.init(e,t),We.init(e,t),e._zod.processJSONSchema=(r,n,a)=>AO(e,r,n,a),e.unwrap=()=>e._zod.def.innerType});function zM(e,t){return new FM({type:"prefault",innerType:e,get defaultValue(){return typeof t=="function"?t():j1(t)}})}var dy=P("ZodNonOptional",(e,t)=>{_D.init(e,t),We.init(e,t),e._zod.processJSONSchema=(r,n,a)=>$O(e,r,n,a),e.unwrap=()=>e._zod.def.innerType});function VM(e,t){return new dy({type:"nonoptional",innerType:e,...ae(t)})}var BM=P("ZodCatch",(e,t)=>{kD.init(e,t),We.init(e,t),e._zod.processJSONSchema=(r,n,a)=>LO(e,r,n,a),e.unwrap=()=>e._zod.def.innerType,e.removeCatch=e.unwrap});function HM(e,t){return new BM({type:"catch",innerType:e,catchValue:typeof t=="function"?t:()=>t})}var UM=P("ZodPipe",(e,t)=>{SD.init(e,t),We.init(e,t),e._zod.processJSONSchema=(r,n,a)=>NO(e,r,n,a),e.in=t.in,e.out=t.out});function Vm(e,t){return new UM({type:"pipe",in:e,out:t})}var jM=P("ZodReadonly",(e,t)=>{xD.init(e,t),We.init(e,t),e._zod.processJSONSchema=(r,n,a)=>DO(e,r,n,a),e.unwrap=()=>e._zod.def.innerType});function qM(e){return new jM({type:"readonly",innerType:e})}var GM=P("ZodCustom",(e,t)=>{ED.init(e,t),We.init(e,t),e._zod.processJSONSchema=(r,n,a)=>SO(e,r,n,a)});function WM(e,t={}){return mO(GM,e,t)}function ZM(e){return hO(e)}var KM=()=>k(()=>import("./builder.index-CDkOxKwe.js"),__vite__mapDeps([94,3,4,5,1])),YM=TM({name:dn().optional(),framework:dn().optional(),features:dn().optional(),pm:Ri(["pnpm","npm","yarn","bun"]).optional(),tailwind:Ri(["false"]).optional(),tab:Ri(["summary","code","preview"]).optional(),file:dn().optional(),addon:dn().optional(),addonFile:dn().optional(),template:dn().optional()}).passthrough(),XM=R("/builder/")({validateSearch:YM,component:$(KM,"component"),staticData:{includeSearchInCanonical:!0,Title:()=>_($e,{to:"/builder",className:"hover:text-blue-500 flex items-center gap-2 text-gray-500",children:["Builder",p("span",{className:"px-1.5 py-0.5 text-[.6rem] font-black border border-amber-500 text-amber-500 rounded-md uppercase",children:"Alpha"})]})},head:()=>({meta:ee({title:"TanStack Builder",description:"Build amazing applications with TanStack"})})}),JM=()=>k(()=>import("./builder.docs-CgHAfvr3.js"),__vite__mapDeps([95,3,4,5,1])),QM=R("/builder/docs")({component:$(JM,"component"),staticData:{Title:()=>_("div",{className:"flex items-center gap-2 text-gray-500",children:[_($e,{to:"/builder",className:"hover:text-blue-500 flex items-center gap-2",children:["Builder",p("span",{className:"px-1.5 py-0.5 text-[.6rem] font-black border border-amber-500 text-amber-500 rounded-md uppercase",children:"Alpha"})]}),p("span",{children:"/"}),p("span",{children:"Docs"})]})},head:()=>({meta:ee({title:"TanStack Builder Docs",description:"Learn how to use TanStack Builder to create and customize TanStack Start projects"})})}),eF=()=>k(()=>import("./blog.index-dY7BBIdY.js"),__vite__mapDeps([96,3,4,5,1,97,98,18,16,99,52,53,29])),tF=()=>k(()=>import("./blog.index-dY7BBIdY.js"),__vite__mapDeps([96,3,4,5,1,97,98,18,16,99,52,53,29])),rF=()=>k(()=>import("./blog.index-dY7BBIdY.js"),__vite__mapDeps([96,3,4,5,1,97,98,18,16,99,52,53,29])),nF=Se({author:O(x(se()),void 0)}),aF=R("/blog/")({staleTime:1/0,validateSearch:nF,loader:J(rF,"loader"),notFoundComponent:$(tF,"notFoundComponent"),component:$(eF,"component"),head:()=>({meta:[{title:"Blog"}]})}),oF=new Intl.ListFormat("en-US",{style:"long",type:"conjunction"});function iF(e){return e.length?oF.format(e):"TanStack"}function sF(e){const[t,r,n]=e.split("-").map(Number);return new Date(Date.UTC(t,r-1,n,12))}function cX(e){return sF(e).toLocaleDateString("en-US",{timeZone:"UTC",year:"numeric",month:"short",day:"numeric"})}function cF(e){return e!==void 0}function lX(e){return e?e.split(",").map(t=>jr(t.trim())).filter(cF):[]}function uX(e){const t=new Set;for(const r of e)for(const n of r.authors)t.add(n);return[...t].sort((r,n)=>r.localeCompare(n))}var lF=()=>k(()=>import("./blog._-C_dNDDvm.js"),__vite__mapDeps([100,101,6,4,5,1,3,8,9,10,102,11,103,104,42,105,41,98,99,52,53,29,55])),uF=()=>k(()=>import("./blog._-C_dNDDvm.js"),__vite__mapDeps([100,101,6,4,5,1,3,8,9,10,102,11,103,104,42,105,41,98,99,52,53,29,55])),dF=()=>k(()=>import("./blog._-C_dNDDvm.js"),__vite__mapDeps([100,101,6,4,5,1,3,8,9,10,102,11,103,104,42,105,41,98,99,52,53,29,55])),pF=R("/blog/$")({staleTime:1/0,loader:J(dF,"loader"),head:({loaderData:e})=>{const t=r=>{if(r)return r.startsWith("http")?r:i9(r,{fit:"cover",format:"auto",height:630,quality:80,width:1200})};return{meta:e?[...ee({title:`${e?.title??"Docs"} | TanStack Blog`,description:e?.description,image:t(e?.headerImage),noindex:e?.isUnpublished}),{name:"author",content:`${e.authors.length>1?"co-authored by ":""}${iF(e.authors)}`}]:[]}},notFoundComponent:$(uF,"notFoundComponent"),component:$(lF,"component")}),fF=()=>k(()=>import("./account-blB728NR.js"),__vite__mapDeps([106,3,4,5,1,14,107,10])),mF=R("/account/")({component:$(fF,"component")}),hF=()=>k(()=>import("./submissions-QbQ9dyYN.js"),__vite__mapDeps([108,3,4,5,1,65,66,109])),gF=()=>k(()=>import("./submissions-QbQ9dyYN.js"),__vite__mapDeps([108,3,4,5,1,65,66,109])),vF=R("/account/submissions")({loader:J(gF,"loader"),component:$(hF,"component"),head:()=>({meta:ee({title:"My Submissions | Account | TanStack",description:"View and manage your showcase submissions."})})}),yF=()=>k(()=>import("./notes-DlXHYeh9.js"),__vite__mapDeps([110,3,4,5,1,104,42,39,41])),bF=R("/account/notes")({component:$(yF,"component")}),wF=()=>k(()=>import("./integrations-BOUgWoez.js"),__vite__mapDeps([111,4,5,1,73,76])),_F=R("/account/integrations")({component:$(wF,"component")}),kF=()=>k(()=>import("./feedback-DfeGUg6-.js"),__vite__mapDeps([112,3,4,5,1,104,42,39,41])),SF=R("/account/feedback")({component:$(kF,"component")});function Bm(e,t){const r=e.trim();return r.length<=t?r:r.slice(0,t-1).trimEnd()+"…"}var xF=()=>typeof window<"u"?window.location.origin:mg;function Pa(e,t={}){const r=new URLSearchParams;t.title&&r.set("title",Bm(t.title,80)),t.description&&r.set("description",Bm(t.description,160));const n=r.toString(),a=`/api/og/${e}.png${n?`?${n}`:""}`;return`${xF()}${a}`}var EF=()=>k(()=>import("./route-CxfU1EqQ.js"),__vite__mapDeps([113,3,4,5,1,114])),TF=()=>k(()=>import("./route-CxfU1EqQ.js"),__vite__mapDeps([113,3,4,5,1,114])),py=R("/_library/$libraryId")({params:{parse:e=>e},beforeLoad:e=>{if(!jr(e.params.libraryId))throw ma()},loader:J(TF,"loader"),head:e=>{const t=jr(e.params.libraryId);return t?{meta:ee({title:t.name?`${t.name} | ${t.frameworks.map(r=>`${r.charAt(0).toUpperCase()}${r.slice(1)} ${t.name.replace("TanStack ","")}`).join(", ")}`:"",description:t.description,image:Pa(t.id),noindex:t.visible===!1})}:{meta:ee({title:"404 Not Found"})}},component:$(EF,"component"),staticData:{Title:()=>{const{libraryId:e}=py.useParams(),{version:t}=fw({strict:!1}),r=jr(e);if(!r)return null;const n=r.name.replace("TanStack ",""),a=t==="latest"?r.latestVersion:t,o=`inline-block text-transparent bg-clip-text bg-linear-to-r ${r.colorFrom} ${r.colorTo}`;return _($e,{to:"/$libraryId",params:{libraryId:e},className:"relative whitespace-nowrap",children:[p("span",{className:`${o}`,children:n})," ",p("span",{className:"text-sm absolute right-0 top-0 font-normal normal-case",children:a}),p("span",{className:"text-sm opacity-0 normal-case",children:a})]})}}}),IF=()=>k(()=>import("./admin-q81aN9yB.js"),__vite__mapDeps([115,3,4,5,1,14,109,107,116])),CF=Se({tab:O(x(re(["overview","users","activity","ads"])),"overview")}),RF=R("/admin/")({validateSearch:CF,component:$(IF,"component")}),$F=()=>k(()=>import("./users-ywY40P1N.js"),__vite__mapDeps([117,3,4,5,1,118,60,61,62,63,39,40,119,14,120,121,122,109,73,123,124,10])),PF=Se({email:x(se()),name:x(se()),cap:x(Au([se(),gt(se())])),noCapabilities:x(Ae()),ads:x(re(["all","true","false"])),waitlist:x(re(["all","true","false"])),page:x(Ku),pageSize:x(Ca),useEffectiveCapabilities:x(Ae(),!0),sortBy:x(se()),sortDir:x(re(["asc","desc"]))}),AF=R("/admin/users")({beforeLoad:async()=>{try{return{user:await Pr({data:{capability:"admin"}})}}catch{throw ie({to:"/login"})}},component:$($F,"component"),validateSearch:PF}),LF=()=>k(()=>import("./npm-stats-D_gmgM6-.js"),__vite__mapDeps([125,4,5,1,126,127])),NF=R("/admin/npm-stats")({component:$(LF,"component")}),DF=()=>k(()=>import("./logins-D9zm9j7j.js"),__vite__mapDeps([128,4,5,1,118,60,61,62,63,39,40,119,3,14,120,129,121,109,116])),OF=R("/admin/logins")({beforeLoad:async()=>{try{return{user:await Pr({data:{capability:"admin"}})}}catch{throw ie({to:"/login"})}},component:$(DF,"component"),validateSearch:e=>$r(Se({userId:x(se()),provider:x(re(["github","google"])),page:x(Ku),pageSize:x(Ca),sortBy:x(se()),sortDir:x(re(["asc","desc"]))}),e)}),MF=()=>k(()=>import("./intent-Biob6cXR.js"),__vite__mapDeps([130,4,5,1,126])),FF=R("/admin/intent")({component:$(MF,"component")}),zF=()=>k(()=>import("./github-stats-CEQO2fYG.js"),__vite__mapDeps([131,4,5,1,118,40,126,127])),VF=R("/admin/github-stats")({component:$(zF,"component")}),BF=()=>k(()=>import("./docs-Do77sB01.js"),__vite__mapDeps([132,4,5,1,120,3,129,126])),HF=R("/admin/docs")({component:$(BF,"component")}),UF=()=>k(()=>import("./audit-BkUkIqCZ.js"),__vite__mapDeps([133,3,4,5,1,118,60,61,62,63,39,40,119,14,120,129,121,116])),jF=R("/admin/audit")({beforeLoad:async()=>{try{return{user:await Pr({data:{capability:"admin"}})}}catch{throw ie({to:"/login"})}},component:$(UF,"component"),validateSearch:e=>$r(Se({actorId:x(se()),action:x(se()),targetType:x(se()),page:x(Ku),pageSize:x(Ca)}),e)}),pd={label:"TanStack",packages:[{name:"@tanstack/query-core"},{name:"react-query"},{name:"@tanstack/table-core"},{name:"react-table"},{name:"@tanstack/router-core"},{name:"react-location"},{name:"@tanstack/start-client-core"},{name:"@tanstack/form-core"},{name:"@tanstack/virtual-core"},{name:"react-virtual"},{name:"@tanstack/db"},{name:"@tanstack/pacer"},{name:"@tanstack/pacer-lite"},{name:"@tanstack/ai"},{name:"@tanstack/intent"},{name:"@tanstack/store",hidden:!0},{name:"@tanstack/hotkeys"},{name:"@tanstack/ranger"},{name:"react-ranger"},{name:"@tanstack/config"},{name:"@tanstack/devtools"},{name:"@tanstack/cli"}],color:"#01a7b9"},dX={packageGroups:[pd],bucketOffset:0},qF=pd.packages.filter(e=>!e.hidden).map(e=>e.name),pX={id:"tanstack-total",npmPackageNames:qF,repo:""},GF=Se({label:x(we(se(),je(80))),hidden:x(Ae()),packages:we(gt(Se({name:JR,hidden:x(Ae())})),je(32)),color:x(z2(we(se(),je(32)))),baseline:x(Ae()),baselineLabel:x(we(se(),je(80)))}),fd=we(gt(GF),je(32),L2(e=>e.reduce((t,r)=>t+r.packages.length,0)<=32,"NPM stats comparisons support up to 32 total packages."));function fX(){return[{id:"react",title:"React",description:"Compare against React downloads.",category:"single",packages:[{name:"react",color:"#61DAFB"}]},{id:"vue",title:"Vue",description:"Compare against Vue downloads.",category:"single",packages:[{name:"vue",color:"#41B883"}]},{id:"angular",title:"Angular",description:"Compare against Angular core downloads.",category:"single",packages:[{name:"@angular/core",color:"#DD0031"}]},{id:"svelte",title:"Svelte",description:"Compare against Svelte downloads.",category:"single",packages:[{name:"svelte",color:"#FF3E00"}]},{id:"typescript",title:"TypeScript",description:"Compare against TypeScript downloads.",category:"single",packages:[{name:"typescript",color:"#3178C6"}]},{id:"lodash",title:"Lodash",description:"Compare against Lodash downloads.",category:"single",packages:[{name:"lodash",color:"#3492FF"}]},{id:"express",title:"Express",description:"Compare against Express downloads.",category:"single",packages:[{name:"express",color:"#000000"}]},{id:"npm-ecosystem",title:"NPM Ecosystem (index)",description:"Equal-weighted growth index across foundational packages: lodash, typescript, express, axios. Each contributes its growth rate equally.",category:"index",packages:[{name:"lodash",color:"#3492FF"},{name:"typescript",color:"#3178C6"},{name:"express",color:"#000000"},{name:"axios",color:"#5A29E4"}]},{id:"frontend-frameworks",title:"Frontend Frameworks (index)",description:"Equal-weighted growth index across the major UI frameworks: react, vue, angular, svelte, solid-js.",category:"index",packages:[{name:"react",color:"#61DAFB"},{name:"vue",color:"#41B883"},{name:"@angular/core",color:"#DD0031"},{name:"svelte",color:"#FF3E00"},{name:"solid-js",color:"#2C4F7C"}]}]}var WF=[{packages:[{name:"@tanstack/react-query"},{name:"react-query"}],color:"#FF4500"},{packages:[{name:"swr"}],color:"#ec4899"},{packages:[{name:"@apollo/client"}],color:"#6B46C1"},{packages:[{name:"@trpc/client"}],color:"#2596BE"}],ZF=[{label:"TanStack Query",packages:[{name:"@tanstack/query-core"},{name:"react-query"}],color:"#FF4500"},{label:"TanStack Table",packages:[{name:"@tanstack/table-core"},{name:"react-table"}],color:"#FF7043"},{label:"TanStack Router",packages:[{name:"@tanstack/router-core"},{name:"react-location"}],color:"#32CD32"},{label:"TanStack Start",packages:[{name:"@tanstack/start-client-core"}],color:"#00CED1"},{label:"TanStack Form",packages:[{name:"@tanstack/form-core"}],color:"#FFD700"},{label:"TanStack Virtual",packages:[{name:"@tanstack/virtual-core"},{name:"react-virtual"}],color:"#8B5CF6"},{label:"TanStack DB",packages:[{name:"@tanstack/db"}],color:"#F97316"},{label:"TanStack Pacer",packages:[{name:"@tanstack/pacer"},{name:"@tanstack/pacer-lite"}],color:"#84CC16"},{label:"TanStack AI",packages:[{name:"@tanstack/ai"}],color:"#EC4899"},{label:"TanStack Intent",packages:[{name:"@tanstack/intent"}],color:"#0EA5E9"},{label:"TanStack Store",packages:[{name:"@tanstack/store"}],color:"#B89A56"},{label:"TanStack Hotkeys",packages:[{name:"@tanstack/hotkeys"}],color:"#F43F5E"},{label:"TanStack Ranger",packages:[{name:"@tanstack/ranger"},{name:"react-ranger"}],color:"#1F2937"},{label:"TanStack Config",packages:[{name:"@tanstack/config"}],color:"#1F2937"},{label:"TanStack Devtools",packages:[{name:"@tanstack/devtools"}],color:"#1F2937"},{label:"TanStack CLI",packages:[{name:"@tanstack/cli"}],color:"#6366F1"}],KF=pd,YF=[{label:"TanStack Query",packages:[{name:"@tanstack/query-core"},{name:"react-query"}],color:"#FF4500"},{label:"TanStack Table",packages:[{name:"@tanstack/table-core"},{name:"react-table"}],color:"#FF7043"},{label:"TanStack Router",packages:[{name:"@tanstack/router-core"}],color:"#32CD32"},{label:"TanStack Start",packages:[{name:"@tanstack/start-client-core"}],color:"#00CED1"},{label:"TanStack Form",packages:[{name:"@tanstack/form-core"}],color:"#FFD700"},{label:"TanStack Virtual",packages:[{name:"@tanstack/virtual-core"},{name:"react-virtual"}],color:"#8B5CF6"},{label:"TanStack DB",packages:[{name:"@tanstack/db"}],color:"#F97316"},{label:"TanStack Pacer",packages:[{name:"@tanstack/pacer"}],color:"#84CC16"},{label:"TanStack AI",packages:[{name:"@tanstack/ai"}],color:"#EC4899"},{label:"TanStack Intent",packages:[{name:"@tanstack/intent"}],color:"#0EA5E9"},{label:"TanStack Store",packages:[{name:"@tanstack/store"}],color:"#B89A56"}],fy=[{label:"TanStack",packages:[{name:"@tanstack/query-core"},{name:"react-query"},{name:"@tanstack/table-core"},{name:"react-table"},{name:"@tanstack/router-core"},{name:"@tanstack/start-client-core"},{name:"@tanstack/form-core"},{name:"@tanstack/virtual-core"},{name:"react-virtual"},{name:"@tanstack/db"},{name:"@tanstack/pacer"},{name:"@tanstack/ai"},{name:"@tanstack/intent"},{name:"@tanstack/store",hidden:!0}],color:"#01a7b9"},{label:"Next.js",packages:[{name:"next"},{name:"ai"},{name:"workflow"}],color:"#6d6a6a"},{label:"React Router",packages:[{name:"react-router"},{name:"@remix-run/react"},{name:"remix"}],color:"#ff7580"},{label:"Astro",packages:[{name:"astro"}],color:"#BC52EE"},{label:"Vue",packages:[{name:"vue"}],color:"#6aaf04"},{label:"Angular",packages:[{name:"@angular/core"},{name:"angular"}],color:"#DD0031"},{label:"Expo",packages:[{name:"expo"}],color:"#F59E0B"},{packages:[{name:"svelte"}]},{packages:[{name:"vite"}]},{label:"React",packages:[{name:"react",hidden:!0}],color:"#61DAFB",baseline:!0,baselineLabel:"React"}],ls=fy,XF=[...YF,{label:"Next.js",packages:[{name:"next"}],color:"#6d6a6a"},{label:"AI SDK",packages:[{name:"ai"}],color:"#111827"},{label:"Workflow",packages:[{name:"workflow"}],color:"#9CA3AF"},{label:"React Router",packages:[{name:"react-router"}],color:"#ff7580"},{label:"Remix React",packages:[{name:"@remix-run/react"}],color:"#EC4899"},{label:"Remix",packages:[{name:"remix"}],color:"#F97316"},{label:"Astro",packages:[{name:"astro"}],color:"#BC52EE"},{label:"Vue",packages:[{name:"vue"}],color:"#6aaf04"},{label:"Angular",packages:[{name:"@angular/core"},{name:"angular"}],color:"#DD0031"},{label:"Expo",packages:[{name:"expo"}],color:"#F59E0B"},{label:"Svelte",packages:[{name:"svelte"}]},{label:"Vite",packages:[{name:"vite"}]},{label:"React",packages:[{name:"react",hidden:!0}],color:"#61DAFB",baseline:!0,baselineLabel:"React"}];function mX(){return[{title:"JavaScript Ecosystem",packageGroups:fy},{title:"JavaScript Ecosystem (flat)",packageGroups:XF},{title:"TanStack Total",packageGroups:[KF]},{title:"TanStack Libraries",packageGroups:ZF},{title:"Data Fetching",packageGroups:WF},{title:"State Management",packageGroups:[{packages:[{name:"redux"}],color:"#764ABC"},{packages:[{name:"mobx"}],color:"#FF9955"},{packages:[{name:"zustand"}],color:"#764ABC"},{packages:[{name:"jotai"}],color:"#6366f1"},{packages:[{name:"valtio"}],color:"#FF6B6B"},{packages:[{name:"@tanstack/store"}],color:"#FF69B4"},{packages:[{name:"@tanstack/react-query"},{name:"react-query"}],color:"#FF4500"}]},{title:"Routing (React)",packageGroups:[{packages:[{name:"react-router"}],color:"#FF0000"},{packages:[{name:"@tanstack/react-router"}],color:"#32CD32"},{packages:[{name:"next"}],color:"#4682B4"},{packages:[{name:"wouter"}],color:"#8b5cf6"},{packages:[{name:"expo"}],color:"#f59e0b"}]},{title:"AI & Agent Harnesses",packageGroups:[{label:"TanStack AI",packages:[{name:"@tanstack/ai"}],color:"#EC4899"},{label:"AI SDK",packages:[{name:"ai"}],color:"#111827"},{label:"LangChain",packages:[{name:"langchain"}],color:"#1C3C3C"},{label:"LangGraph",packages:[{name:"@langchain/langgraph"}],color:"#2E8B57"},{label:"Mastra",packages:[{name:"@mastra/core"}],color:"#7C3AED"},{label:"OpenAI Agents",packages:[{name:"@openai/agents"}],color:"#10A37F"},{label:"Genkit",packages:[{name:"genkit"}],color:"#4285F4"},{label:"CopilotKit",packages:[{name:"@copilotkit/react-core"}],color:"#F97316"},{label:"Promptfoo",packages:[{name:"promptfoo"}],color:"#FACC15"}]},{title:"Data Grids",packageGroups:[{packages:[{name:"ag-grid-community"},{name:"ag-grid-enterprise"}],color:"#29B6F6"},{packages:[{name:"@tanstack/react-table"},{name:"react-table"}],color:"#FF7043"},{packages:[{name:"handsontable"}],color:"#FFCA28"},{packages:[{name:"@mui/x-data-grid"},{name:"mui-datatables"}],color:"#1976D2"},{packages:[{name:"react-data-grid"}],color:"#4CAF50"}]},{title:"Virtualization",packageGroups:[{packages:[{name:"react-virtualized"}],color:"#FF6B6B"},{packages:[{name:"react-window"}],color:"#4ECDC4"},{packages:[{name:"@tanstack/react-virtual"},{name:"react-virtual"}],color:"#FF4500"},{packages:[{name:"react-lazyload"}],color:"#FFD93D"},{packages:[{name:"virtua"}],color:"#6C5CE7"},{packages:[{name:"react-virtuoso"}],color:"#00B894"}]},{title:"Frameworks",packageGroups:[{packages:[{name:"react"}],color:"#61DAFB"},{packages:[{name:"vue"}],color:"#41B883"},{packages:[{name:"@angular/core"}],color:"#DD0031"},{packages:[{name:"svelte"}],color:"#FF3E00"},{packages:[{name:"solid-js"}],color:"#2C4F7C"},{packages:[{name:"preact"}],color:"#673AB8"}]},{title:"Styling",packageGroups:[{packages:[{name:"tailwindcss"}],color:"#06B6D4"},{packages:[{name:"bootstrap"}],color:"#7952B3"},{packages:[{name:"@emotion/react"}],color:"#D36AC2"},{packages:[{name:"@stitches/react"}],color:"#8b5cf6"},{packages:[{name:"@vanilla-extract/css"}],color:"#FFB6C1"}]},{title:"Build Tools",packageGroups:[{packages:[{name:"webpack"}],color:"#8DD6F9"},{packages:[{name:"vite"}],color:"#008000"},{packages:[{name:"rollup"}],color:"#e80A3F"},{packages:[{name:"rolldown"}],color:"#FF5733"},{packages:[{name:"esbuild"}],color:"#FFCF00"},{packages:[{name:"@swc/core"}],color:"#DEAD0F"},{packages:[{name:"parcel"}],color:"#2D8CFF"},{packages:[{name:"@rspack/core"}],color:"#8DD6F9"}]},{title:"Testing",packageGroups:[{packages:[{name:"jest"}],color:"#C21325"},{packages:[{name:"vitest"}],color:"#646CFF"},{packages:[{name:"@testing-library/react"}],color:"#E33332"},{packages:[{name:"cypress"}],color:"#4A5568"},{packages:[{name:"playwright"}],color:"#2EAD33"},{packages:[{name:"@storybook/react"}],color:"#FF4785"}]},{title:"Forms",packageGroups:[{packages:[{name:"react-hook-form"}],color:"#EC5990"},{packages:[{name:"@tanstack/form-core"}],color:"#FFD700"},{packages:[{name:"@conform-to/dom"}],color:"#FF5733"},{packages:[{name:"@formisch/react"},{name:"@formisch/svelte"},{name:"@formisch/solid"},{name:"@formisch/vue"},{name:"@formisch/preact"},{name:"@formisch/qwik"}],color:"#8B5CF6"}]},{title:"UI Components",packageGroups:[{packages:[{name:"@mui/material"}],color:"#0081CB"},{packages:[{name:"@chakra-ui/react"}],color:"#319795"},{packages:[{name:"@radix-ui/themes"}],color:"#FF6F61"},{packages:[{name:"@headlessui/react"}],color:"#f43f5e"},{packages:[{name:"@mantine/core"}],color:"#FFD700"}]},{title:"Animation",packageGroups:[{packages:[{name:"motion"},{name:"framer-motion"}],color:"#FF0055"},{packages:[{name:"react-spring"}],color:"#FF7F50"},{packages:[{name:"@react-spring/web"}],color:"#FF4500"},{packages:[{name:"gsap"}],color:"#32CD32"},{packages:[{name:"@motionone/dom"}],color:"#FF1493"},{packages:[{name:"@formkit/auto-animate"}],color:"#FFD700"}]},{title:"Date & Time",packageGroups:[{packages:[{name:"date-fns"}],color:"#E91E63"},{packages:[{name:"dayjs"}],color:"#FF6B6B"},{packages:[{name:"luxon"}],color:"#3498DB"},{packages:[{name:"moment"}],color:"#4A5568"},{packages:[{name:"@date-io/date-fns"}],color:"#FFD700"},{packages:[{name:"temporal-polyfill"}],color:"#a855f7"}]},{title:"Validation",packageGroups:[{packages:[{name:"zod"}],color:"#ef4444"},{packages:[{name:"io-ts"}],color:"#3b82f6"},{packages:[{name:"arktype"}],color:"#10b981"},{packages:[{name:"valibot"}],color:"#f97316"},{packages:[{name:"yup"}],color:"#06b6d4"},{packages:[{name:"@sinclair/typebox"}],color:"#d946ef"}]},{title:"Documentation",packageGroups:[{packages:[{name:"vitepress"}],color:"#a8b1ff"},{packages:[{name:"@docusaurus/core"}],color:"#21b091"},{packages:[{name:"vocs"}],color:"#0090ff"},{packages:[{name:"@astrojs/starlight"}],color:"#f97316"},{packages:[{name:"nextra"}],color:"#00CED1"},{packages:[{name:"fumadocs-core"}],color:"#DA70D6"}]},{title:"Drag & Drop",packageGroups:[{label:"dnd-kit",packages:[{name:"@dnd-kit/core"}],color:"#eb2f06"},{label:"Pragmatic DnD",packages:[{name:"@atlaskit/pragmatic-drag-and-drop"}],color:"#0652dd"},{label:"React DnD",packages:[{name:"react-dnd"}],color:"#10ac84"},{label:"SortableJS",packages:[{name:"sortablejs"},{name:"react-sortablejs"},{name:"vuedraggable"},{name:"vue-draggable-next"},{name:"vue-draggable-plus"}],color:"#f39c12"},{label:"Hello Pangea DnD",packages:[{name:"@hello-pangea/dnd"},{name:"react-beautiful-dnd"}],color:"#8854d0"},{label:"React Draggable",packages:[{name:"react-draggable"}],color:"#20bf6b"},{label:"React Grid Layout",packages:[{name:"react-grid-layout"}],color:"#d81b60"},{label:"React Rnd",packages:[{name:"react-rnd"}],color:"#a55d35"}]}]}var us=["#1f77b4","#ff7f0e","#2ca02c","#d62728","#9467bd","#8c564b","#e377c2","#7f7f7f","#bcbd22","#17becf"],JF={react:{name:"React",color:"#61DAFB"},preact:{name:"Preact",color:"#673AB8"},solid:{name:"Solid",color:"#2C4F7C"},vue:{name:"Vue",color:"#42B883"},svelte:{name:"Svelte",color:"#FF3E00"},angular:{name:"Angular",color:"#DD0031"},lit:{name:"Lit",color:"#325CFF"},alpine:{name:"Alpine",color:"#77C1D2"},marko:{name:"Marko",color:"#44bfef"},ember:{name:"Ember",color:"#E04E39"},qwik:{name:"Qwik",color:"#18B6F6"},vanilla:{name:"Vanilla",color:"#F7DF1E"}},QF={query:[{packages:[{name:"swr"}],color:"#ec4899"},{packages:[{name:"@apollo/client"}],color:"#6B46C1"},{packages:[{name:"@trpc/client"}],color:"#2596BE"}],router:[{packages:[{name:"react-router"}],color:"#FF0000"},{packages:[{name:"wouter"}],color:"#8b5cf6"}],table:[{packages:[{name:"ag-grid-community"},{name:"ag-grid-enterprise"}],color:"#29B6F6"},{packages:[{name:"handsontable"}],color:"#FFCA28"},{packages:[{name:"@mui/x-data-grid"}],color:"#1976D2"}],form:[{packages:[{name:"react-hook-form"}],color:"#EC5990"},{packages:[{name:"@conform-to/dom"}],color:"#FF5733"}],virtual:[{packages:[{name:"react-virtualized"}],color:"#FF6B6B"},{packages:[{name:"react-window"}],color:"#4ECDC4"},{packages:[{name:"virtua"}],color:"#6C5CE7"}],store:[{packages:[{name:"zustand"}],color:"#764ABC"},{packages:[{name:"jotai"}],color:"#6366f1"},{packages:[{name:"valtio"}],color:"#FF6B6B"}],pacer:[{packages:[{name:"lodash.debounce"}],color:"#3498db"},{packages:[{name:"lodash.throttle"}],color:"#2ecc71"}]};function ez(e,t){return t==="vanilla"?null:e.id==="query"&&t==="angular"?"@tanstack/angular-query-experimental":`@tanstack/${t}-${e.id}`}function tz(e){return e.id==="start"?"@tanstack/start-client-core":e.id==="config"?"@tanstack/vite-config":e.id==="create-tsrouter-app"?"create-tsrouter-app":e.corePackageName?e.corePackageName:`@tanstack/${e.id}`}function rz(e){return{"from-red-500":"#EF4444","from-amber-500":"#F59E0B","from-emerald-500":"#10B981","from-teal-500":"#14B8A6","from-cyan-500":"#06B6D4","from-blue-500":"#3B82F6","from-yellow-500":"#EAB308","from-purple-500":"#A855F7","from-pink-500":"#EC4899","from-orange-500":"#F97316","from-lime-500":"#84CC16","from-twine-500":"#B89A56","from-black":"#1F2937"}[e.colorFrom.split(" ")[0]]??us[0]}function nz(e){const t=[{name:tz(e)}];if(e.legacyPackages)for(const r of e.legacyPackages)t.push({name:r});return{packages:t,color:rz(e)}}function hX(e,t){const r=new Set(t.flatMap(n=>n.packages.map(a=>a.name)));return e.frameworks.map(n=>{const a=ez(e,n);return!a||r.has(a)?null:{framework:n,packageName:a,color:JF[n]?.color??us[0]}}).filter(n=>n!==null)}function gX(e){return[nz(e)]}function vX(e,t){const r=QF[e.id]??[];if(r.length===0)return[];const n=new Set(t.flatMap(a=>a.packages.map(o=>o.name)));return r.filter(a=>{const o=a.packages[0]?.name;return o&&!n.has(o)})}function Ml(e){return e.label?.trim()||e.packages[0]?.name||""}function az(e){return!!e.label?.trim()}function yX(e){return e.hidden!==void 0?e.hidden:az(e)&&!e.baseline?!1:!!e.packages[0]?.hidden}var Gs=re(["name","value"]),oz=6e4,Ws=we(Ve(),it(),st(1),Wt(oz)),Zs=re(["vertical","horizontal"]),Ks=re(["history","latest"]),Ys=re(["line","stacked","stacked-area","stacked-stream","bar","horizontal-bar","stacked-bar"]),bX=[{label:"Yearly",value:"yearly",single:"year"},{label:"Monthly",value:"monthly",single:"month"},{label:"Weekly",value:"weekly",single:"week"},{label:"Daily",value:"daily",single:"day"}],iz=[{label:"Line",value:"line"},{label:"Stacked",value:"stacked"},{label:"Stacked Area",value:"stacked-area"},{label:"Stream",value:"stacked-stream"}],sz=[{label:"Bar",value:"bar"},{label:"Stacked Bar",value:"stacked-bar"}],wX=[{value:"7-days",label:"7 Days"},{value:"30-days",label:"30 Days"},{value:"90-days",label:"90 Days"},{value:"180-days",label:"6 Months"},{value:"365-days",label:"1 Year"},{value:"730-days",label:"2 Years"},{value:"1825-days",label:"5 Years"},{value:"all-time",label:"All Time"}],_X={"7-days":"daily","30-days":"daily","90-days":"weekly","180-days":"weekly","365-days":"weekly","730-days":"weekly","1825-days":"weekly","all-time":"weekly"};function kX(e,t){const r=t.find(a=>a.label===e||a.packages.some(o=>o.name===e));if(r?.color)return r.color;const n=t.findIndex(a=>a.label===e||a.packages.some(o=>o.name===e));return us[Math.max(n,0)%us.length]}function SX(e){const t=e.filter(r=>r.baseline).flatMap(r=>{const n=r.baselineLabel?.trim();if(n)return[n];const a=Ml(r);return a?[a]:[]});return[...new Set(t)].join(", ")||"Baseline"}var xX=e=>e>=1e6?`${(e/1e6).toFixed(1)}M`:e>=1e3?`${(e/1e3).toFixed(1)}k`:e.toString();function EX(e,t){switch(e){case"7-days":case"30-days":return t==="daily";case"90-days":case"180-days":case"365-days":return t==="daily"||t==="weekly"||t==="monthly";case"730-days":case"1825-days":case"all-time":return!0}}function TX(e,t){return(e==="history"?iz:sz).some(r=>r.value===t)}function IX(e){return e==="history"?"line":"bar"}var cz=()=>k(()=>import("./npm-qxD-IlNC.js"),__vite__mapDeps([134,135,2,3,4,5,1,136,61,62,63,137,138,139,140])),lz=()=>k(()=>import("./npm-qxD-IlNC.js"),__vite__mapDeps([134,135,2,3,4,5,1,136,61,62,63,137,138,139,140])),uz=re(["none","normalize-y"]),dz=re(["yearly","monthly","weekly","daily"]),pz=re(["all","complete"]),fz=we(Ve(),it(),st(-5e3),Wt(0)),Hm=we(Ve(),it(),st(0)),mz=R("/stats/npm/")({validateSearch:Se({packageGroups:O(x(fd,ls),ls),range:O(x(re(["7-days","30-days","90-days","180-days","365-days","730-days","1825-days","all-time"]),"1825-days"),"1825-days"),transform:O(x(uz,"none"),"none"),binType:O(x(dz,"weekly"),"weekly"),viewMode:O(x(Ks,"history"),"history"),chartType:O(x(Ys,"line"),"line"),barOrientation:O(x(Zs),void 0),barSort:O(x(Gs,"value"),"value"),bucketOffset:O(x(fz,0),0),playbackIntervalMs:O(x(Ws,350),350),playbackLoop:O(x(Ae(),!1),!1),playbackPlaying:O(x(Ae(),!1),!1),showDataMode:O(x(pz,"all"),"all"),normalizeBaseline:O(x(Ae(),!0),!0),showBaseline:O(x(Ae(),!1),!1),showLegend:O(x(Ae(),!1),!1),height:O(x(Xu,400),400),width:O(x(Vs),void 0),timelineStart:O(x(Hm),void 0),timelineEnd:O(x(Hm),void 0)}),loaderDeps:({search:e})=>({packageList:e.packageGroups?.map(Ml).join(" vs "),packageNames:e.packageGroups?.map(Ml)??[]}),loader:J(lz,"loader"),head:({loaderData:e})=>{const t=e?.packageList??"",r=e?.packageNames??[],n=r.length>0;return{meta:ee({title:n?`${t} - NPM Download Stats & Trends | Compare Packages`:"NPM Download Stats & Trends - Compare Package Popularity | TanStack",description:n?`Compare ${t} npm downloads side-by-side. View download trends, weekly stats, and historical data. Free npm package comparison tool - faster than npmtrends.`:"Compare npm package downloads with interactive charts. Track download trends, analyze package popularity, and make informed decisions. Free alternative to npmtrends and npm-stat.",keywords:n?`${r.join(", ")}, npm downloads, npm stats, package comparison, npm trends, download statistics`:"npm downloads, npm statistics, npm trends, compare npm packages, package popularity, npm download stats, javascript packages"}),scripts:[{type:"application/ld+json",children:JSON.stringify({"@context":"https://schema.org","@type":"WebApplication",name:"TanStack NPM Stats",description:"Compare npm package downloads with interactive charts and historical data",url:"https://tanstack.com/stats/npm",applicationCategory:"DeveloperApplication",operatingSystem:"Web",offers:{"@type":"Offer",price:"0",priceCurrency:"USD"},creator:{"@type":"Organization",name:"TanStack",url:"https://tanstack.com"}})},{type:"application/ld+json",children:JSON.stringify({"@context":"https://schema.org","@type":"FAQPage",mainEntity:[{"@type":"Question",name:"How are npm download statistics calculated?",acceptedAnswer:{"@type":"Answer",text:"NPM download statistics are sourced from the official npm registry API. Downloads are counted each time a package is installed via npm, yarn, or pnpm. These numbers include downloads from CI/CD pipelines, development machines, and production deployments."}},{"@type":"Question",name:"What's the difference between weekly and daily downloads?",acceptedAnswer:{"@type":"Answer",text:"Daily downloads show the exact number of downloads per day, useful for spotting short-term trends. Weekly downloads aggregate 7 days of data, smoothing out variations and making it easier to identify long-term growth patterns."}},{"@type":"Question",name:"How does TanStack NPM Stats compare to npmtrends?",acceptedAnswer:{"@type":"Answer",text:"TanStack NPM Stats offers faster load times with cached data, flexible time ranges up to all-time history, advanced features like baseline comparisons and relative growth charts, plus the ability to combine multiple packages into a single trend line."}},{"@type":"Question",name:"Can I compare any npm package?",acceptedAnswer:{"@type":"Answer",text:"Yes! You can compare any public package on the npm registry. Search for packages by name and add them to your comparison. You can compare multiple packages simultaneously and group related packages together for accurate historical tracking."}}]})}]}},component:$(cz,"component"),staticData:{includeSearchInCanonical:!0,Title:()=>p($e,{to:".",className:"hover:text-blue-500 flex items-center gap-2 text-gray-500",children:"NPM Stats"})}}),hz=()=>k(()=>import("./registry-C2pvwKbc.js"),__vite__mapDeps([141,3,4,5,1,142,143])),gz=()=>k(()=>import("./registry-C2pvwKbc.js"),__vite__mapDeps([141,3,4,5,1,142,143])),vz=Se({q:x(se()),tab:x(re(["packages","skills"]),"packages"),framework:x(se()),sort:x(re(["downloads","name","skills","newest"]),"downloads"),page:x(Ve(),0),view:x(re(["grid","list"]),"grid")}),yz=R("/intent/registry/")({validateSearch:vz,loaderDeps:({search:e})=>e,loader:J(gz,"loader"),head:()=>({meta:ee({title:"Agent Skills Registry | TanStack Intent",description:"Browse npm packages that ship Agent Skills via TanStack Intent. Find skills for your favorite libraries and install them in seconds."})}),component:$(hz,"component"),staticData:{includeSearchInCanonical:!0}}),bz=()=>k(()=>import("./embed-CzkiJr_s.js"),__vite__mapDeps([144,4,5,1,140])),wz=re(["none","normalize-y"]),_z=re(["yearly","monthly","weekly","daily"]),kz=re(["all","complete"]),Sz=we(Ve(),it(),st(-5e3),Wt(0)),Um=we(Ve(),it(),st(0)),xz=R("/stats/npm/embed")({validateSearch:Se({packageGroups:O(x(fd,ls),ls),range:O(x(re(["7-days","30-days","90-days","180-days","365-days","730-days","1825-days","all-time"]),"1825-days"),"1825-days"),transform:O(x(wz,"none"),"none"),binType:O(x(_z,"weekly"),"weekly"),viewMode:O(x(Ks,"history"),"history"),chartType:O(x(Ys,"line"),"line"),barOrientation:O(x(Zs),void 0),barSort:O(x(Gs,"value"),"value"),bucketOffset:O(x(Sz,0),0),playbackIntervalMs:O(x(Ws,350),350),showDataMode:O(x(kz,"all"),"all"),normalizeBaseline:O(x(Ae(),!0),!0),showBaseline:O(x(Ae(),!0),!0),showLegend:O(x(Ae(),!1),!1),width:O(x(Vs),void 0),timelineStart:O(x(Um),void 0),timelineEnd:O(x(Um),void 0)}),head:()=>({meta:ee({title:"TanStack NPM Stats Chart Embed",description:"Embeddable npm download statistics chart from TanStack.",noindex:!0})}),component:$(bz,"component"),staticData:{baseParent:!0,includeSearchInCanonical:!0,showNavbar:!1}}),Ez=class extends Map{constructor(e,t=gy){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:t}}),e!=null)for(const[r,n]of e)this.set(r,n)}get(e){return super.get(Fl(this,e))}has(e){return super.has(Fl(this,e))}set(e,t){return super.set(my(this,e),t)}delete(e){return super.delete(hy(this,e))}},CX=class extends Set{constructor(e,t=gy){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:t}}),e!=null)for(const r of e)this.add(r)}has(e){return super.has(Fl(this,e))}add(e){return super.add(my(this,e))}delete(e){return super.delete(hy(this,e))}};function Fl({_intern:e,_key:t},r){const n=t(r);return e.has(n)?e.get(n):r}function my({_intern:e,_key:t},r){const n=t(r);return e.has(n)?e.get(n):(e.set(n,r),r)}function hy({_intern:e,_key:t},r){const n=t(r);return e.has(n)&&(r=e.get(n),e.delete(n)),r}function gy(e){return e!==null&&typeof e=="object"?e.valueOf():e}function zl(e){return e}function RX(e,...t){return md(e,zl,zl,t)}function Tz(e,t,...r){return md(e,zl,t,r)}function $X(e,t,...r){return md(e,Array.from,t,r)}function md(e,t,r,n){return(function a(o,i){if(i>=n.length)return r(o);const s=new Ez,c=n[i++];let l=-1;for(const d of o){const u=c(d,++l,o),f=s.get(u);f?f.push(d):s.set(u,[d])}for(const[d,u]of s)s.set(d,a(u,i));return t(s)})(e,0)}function Iz(e,t){let r=0;if(t===void 0)for(let n of e)(n=+n)&&(r+=n);else{let n=-1;for(let a of e)(a=+t(a,++n,e))&&(r+=a)}return r}var Cz={value:()=>{}};function vy(){for(var e=0,t=arguments.length,r={},n;e=0&&(n=r.slice(a+1),r=r.slice(0,a)),r&&!t.hasOwnProperty(r))throw new Error("unknown type: "+r);return{type:r,name:n}})}$i.prototype=vy.prototype={constructor:$i,on:function(e,t){var r=this._,n=Rz(e+"",r),a,o=-1,i=n.length;if(arguments.length<2){for(;++o0)for(var r=new Array(a),n=0,a,o;n=0&&(t=e.slice(0,r))!=="xmlns"&&(e=e.slice(r+1)),qm.hasOwnProperty(t)?{space:qm[t],local:e}:e}function Az(e){return function(){var t=this.ownerDocument,r=this.namespaceURI;return r==="http://www.w3.org/1999/xhtml"&&t.documentElement.namespaceURI==="http://www.w3.org/1999/xhtml"?t.createElement(e):t.createElementNS(r,e)}}function Lz(e){return function(){return this.ownerDocument.createElementNS(e.space,e.local)}}function yy(e){var t=Xs(e);return(t.local?Lz:Az)(t)}function Nz(){}function hd(e){return e==null?Nz:function(){return this.querySelector(e)}}function Dz(e){typeof e!="function"&&(e=hd(e));for(var t=this._groups,r=t.length,n=new Array(r),a=0;a=I&&(I=b+1);!(S=v[I])&&++I=0;)(i=n[a])&&(o&&i.compareDocumentPosition(o)^4&&o.parentNode.insertBefore(i,o),o=i);return this}function iV(e){e||(e=sV);function t(u,f){return u&&f?e(u.__data__,f.__data__):!u-!f}for(var r=this._groups,n=r.length,a=new Array(n),o=0;ot?1:e>=t?0:NaN}function cV(){var e=arguments[0];return arguments[0]=this,e.apply(null,arguments),this}function lV(){return Array.from(this)}function uV(){for(var e=this._groups,t=0,r=e.length;t1?this.each((t==null?_V:typeof t=="function"?SV:kV)(e,t,r??"")):la(this.node(),e)}function la(e,t){return e.style.getPropertyValue(t)||Sy(e).getComputedStyle(e,null).getPropertyValue(t)}function EV(e){return function(){delete this[e]}}function TV(e,t){return function(){this[e]=t}}function IV(e,t){return function(){var r=t.apply(this,arguments);r==null?delete this[e]:this[e]=r}}function CV(e,t){return arguments.length>1?this.each((t==null?EV:typeof t=="function"?IV:TV)(e,t)):this.node()[e]}function xy(e){return e.trim().split(/^|\s+/)}function gd(e){return e.classList||new Ey(e)}function Ey(e){this._node=e,this._names=xy(e.getAttribute("class")||"")}Ey.prototype={add:function(e){this._names.indexOf(e)<0&&(this._names.push(e),this._node.setAttribute("class",this._names.join(" ")))},remove:function(e){var t=this._names.indexOf(e);t>=0&&(this._names.splice(t,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(e){return this._names.indexOf(e)>=0}};function Ty(e,t){for(var r=gd(e),n=-1,a=t.length;++n=0&&(r=t.slice(n+1),t=t.slice(0,n)),{type:t,name:r}})}function rB(e){return function(){var t=this.__on;if(t){for(var r=0,n=-1,a=t.length,o;r>8&15|t>>4&240,t>>4&15|t&240,(t&15)<<4|t&15,1):r===8?li(t>>24&255,t>>16&255,t>>8&255,(t&255)/255):r===4?li(t>>12&15|t>>8&240,t>>8&15|t>>4&240,t>>4&15|t&240,((t&15)<<4|t&15)/255):null):(t=pB.exec(e))?new ft(t[1],t[2],t[3],1):(t=fB.exec(e))?new ft(t[1]*255/100,t[2]*255/100,t[3]*255/100,1):(t=mB.exec(e))?li(t[1],t[2],t[3],t[4]):(t=hB.exec(e))?li(t[1]*255/100,t[2]*255/100,t[3]*255/100,t[4]):(t=gB.exec(e))?Jm(t[1],t[2]/100,t[3]/100,1):(t=vB.exec(e))?Jm(t[1],t[2]/100,t[3]/100,t[4]):Gm.hasOwnProperty(e)?Km(Gm[e]):e==="transparent"?new ft(NaN,NaN,NaN,0):null}function Km(e){return new ft(e>>16&255,e>>8&255,e&255,1)}function li(e,t,r,n){return n<=0&&(e=t=r=NaN),new ft(e,t,r,n)}function wB(e){return e instanceof Bo||(e=ho(e)),e?(e=e.rgb(),new ft(e.r,e.g,e.b,e.opacity)):new ft}function fs(e,t,r,n){return arguments.length===1?wB(e):new ft(e,t,r,n??1)}function ft(e,t,r,n){this.r=+e,this.g=+t,this.b=+r,this.opacity=+n}vd(ft,fs,Ry(Bo,{brighter(e){return e=e==null?ps:Math.pow(ps,e),new ft(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=e==null?fo:Math.pow(fo,e),new ft(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new ft(yn(this.r),yn(this.g),yn(this.b),ms(this.opacity))},displayable(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:Ym,formatHex:Ym,formatHex8:_B,formatRgb:Xm,toString:Xm}));function Ym(){return`#${mn(this.r)}${mn(this.g)}${mn(this.b)}`}function _B(){return`#${mn(this.r)}${mn(this.g)}${mn(this.b)}${mn((isNaN(this.opacity)?1:this.opacity)*255)}`}function Xm(){const e=ms(this.opacity);return`${e===1?"rgb(":"rgba("}${yn(this.r)}, ${yn(this.g)}, ${yn(this.b)}${e===1?")":`, ${e})`}`}function ms(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function yn(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function mn(e){return e=yn(e),(e<16?"0":"")+e.toString(16)}function Jm(e,t,r,n){return n<=0?e=t=r=NaN:r<=0||r>=1?e=t=NaN:t<=0&&(e=NaN),new Ft(e,t,r,n)}function $y(e){if(e instanceof Ft)return new Ft(e.h,e.s,e.l,e.opacity);if(e instanceof Bo||(e=ho(e)),!e)return new Ft;if(e instanceof Ft)return e;e=e.rgb();var t=e.r/255,r=e.g/255,n=e.b/255,a=Math.min(t,r,n),o=Math.max(t,r,n),i=NaN,s=o-a,c=(o+a)/2;return s?(t===o?i=(r-n)/s+(r0&&c<1?0:i,new Ft(i,s,c,e.opacity)}function kB(e,t,r,n){return arguments.length===1?$y(e):new Ft(e,t,r,n??1)}function Ft(e,t,r,n){this.h=+e,this.s=+t,this.l=+r,this.opacity=+n}vd(Ft,kB,Ry(Bo,{brighter(e){return e=e==null?ps:Math.pow(ps,e),new Ft(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=e==null?fo:Math.pow(fo,e),new Ft(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=this.h%360+(this.h<0)*360,t=isNaN(e)||isNaN(this.s)?0:this.s,r=this.l,n=r+(r<.5?r:1-r)*t,a=2*r-n;return new ft(Mc(e>=240?e-240:e+120,a,n),Mc(e,a,n),Mc(e<120?e+240:e-120,a,n),this.opacity)},clamp(){return new Ft(Qm(this.h),ui(this.s),ui(this.l),ms(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){const e=ms(this.opacity);return`${e===1?"hsl(":"hsla("}${Qm(this.h)}, ${ui(this.s)*100}%, ${ui(this.l)*100}%${e===1?")":`, ${e})`}`}}));function Qm(e){return e=(e||0)%360,e<0?e+360:e}function ui(e){return Math.max(0,Math.min(1,e||0))}function Mc(e,t,r){return(e<60?t+(r-t)*e/60:e<180?r:e<240?t+(r-t)*(240-e)/60:t)*255}function Py(e,t,r,n,a){var o=e*e,i=o*e;return((1-3*e+3*o-i)*t+(4-6*o+3*i)*r+(1+3*e+3*o-3*i)*n+i*a)/6}function SB(e){var t=e.length-1;return function(r){var n=r<=0?r=0:r>=1?(r=1,t-1):Math.floor(r*t),a=e[n],o=e[n+1],i=n>0?e[n-1]:2*a-o,s=n()=>e;function Ay(e,t){return function(r){return e+r*t}}function EB(e,t,r){return e=Math.pow(e,r),t=Math.pow(t,r)-e,r=1/r,function(n){return Math.pow(e+n*t,r)}}function PX(e,t){var r=t-e;return r?Ay(e,r>180||r<-180?r-360*Math.round(r/360):r):yd(isNaN(e)?t:e)}function TB(e){return(e=+e)==1?Ly:function(t,r){return r-t?EB(t,r,e):yd(isNaN(t)?r:t)}}function Ly(e,t){var r=t-e;return r?Ay(e,r):yd(isNaN(e)?t:e)}var e0=(function e(t){var r=TB(t);function n(a,o){var i=r((a=fs(a)).r,(o=fs(o)).r),s=r(a.g,o.g),c=r(a.b,o.b),l=Ly(a.opacity,o.opacity);return function(d){return a.r=i(d),a.g=s(d),a.b=c(d),a.opacity=l(d),a+""}}return n.gamma=e,n})(1);function Ny(e){return function(t){var r=t.length,n=new Array(r),a=new Array(r),o=new Array(r),i,s;for(i=0;ir&&(o=t.slice(r,o),s[i]?s[i]+=o:s[++i]=o),(n=n[0])===(a=a[0])?s[i]?s[i]+=a:s[++i]=a:(s[++i]=null,c.push({i,x:zr(n,a)})),r=Fc.lastIndex;return r180?d+=360:d-l>180&&(l+=360),f.push({i:u.push(a(u)+"rotate(",null,n)-2,x:zr(l,d)})):d&&u.push(a(u)+"rotate("+d+n)}function s(l,d,u,f){l!==d?f.push({i:u.push(a(u)+"skewX(",null,n)-2,x:zr(l,d)}):d&&u.push(a(u)+"skewX("+d+n)}function c(l,d,u,f,m,h){if(l!==u||d!==f){var g=m.push(a(m)+"scale(",null,",",null,")");h.push({i:g-4,x:zr(l,u)},{i:g-2,x:zr(d,f)})}else(u!==1||f!==1)&&m.push(a(m)+"scale("+u+","+f+")")}return function(l,d){var u=[],f=[];return l=e(l),d=e(d),o(l.translateX,l.translateY,d.translateX,d.translateY,u,f),i(l.rotate,d.rotate,u,f),s(l.skewX,d.skewX,u,f),c(l.scaleX,l.scaleY,d.scaleX,d.scaleY,u,f),l=d=null,function(m){for(var h=-1,g=f.length,v;++h=0&&e._call.call(void 0,t),e=e._next;--ua}function r0(){Tn=(gs=go.now())+Js,ua=Ua=0;try{DB()}finally{ua=0,MB(),Tn=0}}function OB(){var e=go.now(),t=e-gs;t>My&&(Js-=t,gs=e)}function MB(){for(var e,t=hs,r,n=1/0;t;)t._call?(n>t._time&&(n=t._time),e=t,t=t._next):(r=t._next,t._next=null,t=e?e._next=r:hs=r);ja=e,Hl(n)}function Hl(e){ua||(Ua&&(Ua=clearTimeout(Ua)),e-Tn>24?(e<1/0&&(Ua=setTimeout(r0,e-go.now()-Js)),za&&(za=clearInterval(za))):(za||(gs=go.now(),za=setInterval(OB,My)),ua=1,Fy(r0)))}function n0(e,t,r){var n=new vs;return t=t==null?0:+t,n.restart(a=>{n.stop(),e(a+t)},t,r),n}var FB=vy("start","end","cancel","interrupt"),zB=[];function Qs(e,t,r,n,a,o){var i=e.__transition;if(!i)e.__transition={};else if(r in i)return;VB(e,r,{name:t,index:n,group:a,on:FB,tween:zB,time:o.time,delay:o.delay,duration:o.duration,ease:o.ease,timer:null,state:0})}function wd(e,t){var r=Kt(e,t);if(r.state>0)throw new Error("too late; already scheduled");return r}function dr(e,t){var r=Kt(e,t);if(r.state>3)throw new Error("too late; already running");return r}function Kt(e,t){var r=e.__transition;if(!r||!(r=r[t]))throw new Error("transition not found");return r}function VB(e,t,r){var n=e.__transition,a;n[t]=r,r.timer=zy(o,0,r.time);function o(l){r.state=1,r.timer.restart(i,r.delay,r.time),r.delay<=l&&i(l-r.delay)}function i(l){var d,u,f,m;if(r.state!==1)return c();for(d in n)if(m=n[d],m.name===r.name){if(m.state===3)return n0(i);m.state===4?(m.state=6,m.timer.stop(),m.on.call("interrupt",e,e.__data__,m.index,m.group),delete n[d]):+d2&&n.state<5,n.state=6,n.timer.stop(),n.on.call(a?"interrupt":"cancel",e,e.__data__,n.index,n.group),delete r[i]}o&&delete e.__transition}}function HB(e){return this.each(function(){BB(this,e)})}function UB(e,t){var r,n;return function(){var a=dr(this,e),o=a.tween;if(o!==r){n=r=o;for(var i=0,s=n.length;i=0&&(t=t.slice(0,r)),!t||t==="start"})}function vH(e,t,r){var n,a,o=gH(t)?wd:dr;return function(){var i=o(this,e),s=i.on;s!==n&&(a=(n=s).copy()).on(t,r),i.on=a}}function yH(e,t){var r=this._id;return arguments.length<2?Kt(this.node(),r).on.on(e):this.each(vH(r,e,t))}function bH(e){return function(){var t=this.parentNode;for(var r in this.__transition)if(+r!==e)return;t&&t.removeChild(this)}}function wH(){return this.on("end.remove",bH(this._id))}function _H(e){var t=this._name,r=this._id;typeof e!="function"&&(e=hd(e));for(var n=this._groups,a=n.length,o=new Array(a),i=0;i(e(o=new Date(+o)),o),a.ceil=o=>(e(o=new Date(o-1)),t(o,1),e(o),o),a.round=o=>{const i=a(o),s=a.ceil(o);return o-i(t(o=new Date(+o),i==null?1:Math.floor(i)),o),a.range=(o,i,s)=>{const c=[];if(o=a.ceil(o),s=s==null?1:Math.floor(s),!(o0))return c;let l;do c.push(l=new Date(+o)),t(o,s),e(o);while(lLt(i=>{if(i>=i)for(;e(i),!o(i);)i.setTime(i-1)},(i,s)=>{if(i>=i)if(s<0)for(;++s<=0;)for(;t(i,-1),!o(i););else for(;--s>=0;)for(;t(i,1),!o(i););}),r&&(a.count=(o,i)=>(zc.setTime(+o),Vc.setTime(+i),e(zc),e(Vc),Math.floor(r(zc,Vc))),a.every=o=>(o=Math.floor(o),!isFinite(o)||!(o>0)?null:o>1?a.filter(n?i=>n(i)%o===0:i=>a.count(0,i)%o===0):a)),a}var ZH=1e3,Sd=ZH*60,KH=Sd*60,In=KH*24,Uy=In*7,VX=In*30,BX=In*365,YH=Lt(e=>e.setHours(0,0,0,0),(e,t)=>e.setDate(e.getDate()+t),(e,t)=>(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*Sd)/In,e=>e.getDate()-1),HX=YH.range,xd=Lt(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/In,e=>e.getUTCDate()-1),UX=xd.range,XH=Lt(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/In,e=>Math.floor(e/In)),jX=XH.range;function Dn(e){return Lt(t=>{t.setDate(t.getDate()-(t.getDay()+7-e)%7),t.setHours(0,0,0,0)},(t,r)=>{t.setDate(t.getDate()+r*7)},(t,r)=>(r-t-(r.getTimezoneOffset()-t.getTimezoneOffset())*Sd)/Uy)}var JH=Dn(0),QH=Dn(1),eU=Dn(2),tU=Dn(3),rU=Dn(4),nU=Dn(5),aU=Dn(6),qX=JH.range,GX=QH.range,WX=eU.range,ZX=tU.range,KX=rU.range,YX=nU.range,XX=aU.range;function On(e){return Lt(t=>{t.setUTCDate(t.getUTCDate()-(t.getUTCDay()+7-e)%7),t.setUTCHours(0,0,0,0)},(t,r)=>{t.setUTCDate(t.getUTCDate()+r*7)},(t,r)=>(r-t)/Uy)}var jy=On(0),oU=On(1),iU=On(2),sU=On(3),cU=On(4),lU=On(5),uU=On(6),JX=jy.range,QX=oU.range,eJ=iU.range,tJ=sU.range,rJ=cU.range,nJ=lU.range,aJ=uU.range,dU=Lt(e=>{e.setDate(1),e.setHours(0,0,0,0)},(e,t)=>{e.setMonth(e.getMonth()+t)},(e,t)=>t.getMonth()-e.getMonth()+(t.getFullYear()-e.getFullYear())*12,e=>e.getMonth()),oJ=dU.range,qy=Lt(e=>{e.setUTCDate(1),e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCMonth(e.getUTCMonth()+t)},(e,t)=>t.getUTCMonth()-e.getUTCMonth()+(t.getUTCFullYear()-e.getUTCFullYear())*12,e=>e.getUTCMonth()),iJ=qy.range,Gy=Lt(e=>{e.setMonth(0,1),e.setHours(0,0,0,0)},(e,t)=>{e.setFullYear(e.getFullYear()+t)},(e,t)=>t.getFullYear()-e.getFullYear(),e=>e.getFullYear());Gy.every=e=>!isFinite(e=Math.floor(e))||!(e>0)?null:Lt(t=>{t.setFullYear(Math.floor(t.getFullYear()/e)*e),t.setMonth(0,1),t.setHours(0,0,0,0)},(t,r)=>{t.setFullYear(t.getFullYear()+r*e)});var sJ=Gy.range,Ed=Lt(e=>{e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCFullYear(e.getUTCFullYear()+t)},(e,t)=>t.getUTCFullYear()-e.getUTCFullYear(),e=>e.getUTCFullYear());Ed.every=e=>!isFinite(e=Math.floor(e))||!(e>0)?null:Lt(t=>{t.setUTCFullYear(Math.floor(t.getUTCFullYear()/e)*e),t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)},(t,r)=>{t.setUTCFullYear(t.getUTCFullYear()+r*e)});var cJ=Ed.range;function Kn(e,t,r){this.k=e,this.x=t,this.y=r}Kn.prototype={constructor:Kn,scale:function(e){return e===1?this:new Kn(this.k*e,this.x,this.y)},translate:function(e,t){return e===0&t===0?this:new Kn(this.k,this.x+this.k*e,this.y+this.k*t)},apply:function(e){return[e[0]*this.k+this.x,e[1]*this.k+this.y]},applyX:function(e){return e*this.k+this.x},applyY:function(e){return e*this.k+this.y},invert:function(e){return[(e[0]-this.x)/this.k,(e[1]-this.y)/this.k]},invertX:function(e){return(e-this.x)/this.k},invertY:function(e){return(e-this.y)/this.k},rescaleX:function(e){return e.copy().domain(e.range().map(this.invertX,this).map(e.invert,e))},rescaleY:function(e){return e.copy().domain(e.range().map(this.invertY,this).map(e.invert,e))},toString:function(){return"translate("+this.x+","+this.y+") scale("+this.k+")"}};var pU=new Kn(1,0,0);fU.prototype=Kn.prototype;function fU(e){for(;!e.__zoom;)if(!(e=e.parentNode))return pU;return e.__zoom}var mU=re(["yearly","monthly","weekly","daily"]),hU=[{value:"7-days",label:"7 Days",days:7},{value:"30-days",label:"30 Days",days:30},{value:"90-days",label:"90 Days",days:90},{value:"180-days",label:"6 Months",days:180},{value:"365-days",label:"1 Year",days:365},{value:"all-time",label:"All Time",days:null}],gU=[{value:"yearly",label:"Yearly",bin:Ed},{value:"monthly",label:"Monthly",bin:qy},{value:"weekly",label:"Weekly",bin:jy},{value:"daily",label:"Daily",bin:xd}],lJ={"7-days":"daily","30-days":"daily","90-days":"weekly","180-days":"weekly","365-days":"weekly","all-time":"weekly"};function uJ(e){return hU.find(t=>t.value===e)?.days??null}function Wy(e){return gU.find(t=>t.value===e)?.bin??xd}function vU(e){return Wy(e).floor(new Date)}function dJ(e,t,r){if(e.length===0)return[];const n=Wy(t),a=r?.includeIncomplete??!0,o=e.map(c=>({date:new Date(c.date),count:c.count})),i=Tz(o,c=>Iz(c,l=>l.count),c=>n.floor(c.date)),s=Array.from(i,([c,l])=>({date:c,count:l})).sort((c,l)=>c.date.getTime()-l.date.getTime());if(!a){const c=vU(t);return s.filter(l=>l.date.getTime()/^(?:@[a-z0-9][a-z0-9._-]*\/)?[a-z0-9][a-z0-9._-]*$/.test(t))}var kU=()=>k(()=>import("./_packages-BmSu8qzw.js"),__vite__mapDeps([145,3,4,5,1])),SU=()=>k(()=>import("./_packages-BmSu8qzw.js"),__vite__mapDeps([145,3,4,5,1])),o0=we(Ve(),it(),st(0)),xU=R("/stats/npm/$packages")({validateSearch:Se({range:O(x(wU,"365-days"),"365-days"),transform:O(x(yU,"none"),"none"),binType:O(x(mU,"weekly"),"weekly"),viewMode:O(x(Ks,"history"),"history"),chartType:O(x(Ys,"line"),"line"),barOrientation:O(x(Zs),void 0),barSort:O(x(Gs,"value"),"value"),bucketOffset:O(x(we(Ve(),it(),st(-5e3),Wt(0)),0),0),playbackIntervalMs:O(x(Ws,350),350),playbackLoop:O(x(Ae(),!1),!1),playbackPlaying:O(x(Ae(),!1),!1),showDataMode:O(x(bU,"all"),"all"),showLegend:O(x(Ae(),!1),!1),height:O(x(Xu,400),400),width:O(x(Vs),void 0),timelineStart:O(x(o0),void 0),timelineEnd:O(x(o0),void 0)}),loader:J(SU,"loader"),head:({loaderData:e})=>{const t=e?.packages||[],r=t.join(" vs "),n=t.length===1?`${t[0]} - NPM Download Statistics & Trends`:`${r} - NPM Download Comparison`,a=t.length===1?`View npm download statistics and trends for ${t[0]}. Track weekly downloads, historical data, and growth patterns.`:`Compare npm downloads for ${r}. View download trends, weekly statistics, and historical data to choose the best package for your project.`,o=`${t.join(", ")}, npm downloads, npm stats, package comparison, npm trends, download statistics`,i={"@context":"https://schema.org","@type":"WebPage",name:n,description:a,url:`https://tanstack.com/stats/npm/${t.join("-vs-")}`,isPartOf:{"@type":"WebApplication",name:"TanStack NPM Stats",url:"https://tanstack.com/stats/npm"},about:t.map(s=>({"@type":"SoftwareApplication",name:s,applicationCategory:"DeveloperApplication"}))};return{meta:ee({title:n,description:a,keywords:o}),scripts:[{type:"application/ld+json",children:JSON.stringify(i)}]}},component:$(kU,"component"),staticData:{includeSearchInCanonical:!0}}),EU=()=>k(()=>import("./edit._id-Bt10hfYE.js"),__vite__mapDeps([146,3,4,5,1,71,72,14,73,66,67])),TU=()=>k(()=>import("./edit._id-Bt10hfYE.js"),__vite__mapDeps([146,3,4,5,1,71,72,14,73,66,67])),IU=R("/showcase/edit/$id")({beforeLoad:async({params:e})=>{try{return{user:await Fu()}}catch{throw ie({to:"/login",search:{redirect:`/showcase/edit/${e.id}`}})}},loader:J(TU,"loader"),component:$(EU,"component"),head:()=>({meta:ee({title:"Edit Your Project | Showcase | TanStack",description:"Edit your showcase submission."})})}),CU=/[^a-zA-Z0-9_-]+/g;function RU(e){return encodeURIComponent(e)}function $U(e){let t=e;for(let r=0;r<2;r++)try{const n=decodeURIComponent(t);if(n===t)return n;t=n}catch{return e}return t}function fJ(e,t,r){return[e,t,r].map(PU).join("-")}function PU(e){return String(e).trim().replace(CU,"-").replace(/^-+|-+$/g,"")||"item"}function Zy(e){return $U(e)}var AU=()=>k(()=>import("./_packageName-BXPMqhBN.js"),__vite__mapDeps([147,3,4,5,1,142,143])),LU=()=>k(()=>import("./_packageName-BXPMqhBN.js"),__vite__mapDeps([147,3,4,5,1,142,143]));function mJ(e){return RU(e)}var NU=Bt(null);function hJ(){const e=qt(NU);if(!e)throw new Error("usePackageVersion must be used within PackageLayout");return e}var DU=Se({version:O(x(se()),void 0),tab:O(x(re(["skills","history"])),void 0),expanded:O(x(gt(se())),void 0),expandedSkills:O(x(gt(se())),void 0)}),OU=R("/intent/registry/$packageName")({validateSearch:e=>$r(DU,e),loader:J(LU,"loader"),head:({params:e})=>{const t=Zy(e.packageName);return{meta:ee({title:`${t} | Agent Skills Registry | TanStack Intent`,description:`Browse Agent Skills shipped with ${t}.`})}},component:$(AU,"component")}),i0={core:"bg-violet-50 dark:bg-violet-950/40 text-violet-700 dark:text-violet-300 border-violet-100 dark:border-violet-900","sub-skill":"bg-gray-50 dark:bg-gray-800 text-gray-600 dark:text-gray-400 border-gray-200 dark:border-gray-700",framework:"bg-amber-50 dark:bg-amber-950/40 text-amber-700 dark:text-amber-300 border-amber-100 dark:border-amber-900",lifecycle:"bg-green-50 dark:bg-green-950/40 text-green-700 dark:text-green-300 border-green-100 dark:border-green-900",composition:"bg-blue-50 dark:bg-blue-950/40 text-blue-700 dark:text-blue-300 border-blue-100 dark:border-blue-900",security:"bg-red-50 dark:bg-red-950/40 text-red-700 dark:text-red-300 border-red-100 dark:border-red-900"};function gJ({type:e}){return p("span",{className:`inline-block px-2 py-0.5 rounded-md text-xs border ${i0[e]??i0["sub-skill"]}`,children:e})}function MU({pill:e,children:t}){return _("div",{className:"mt-4 p-3 rounded-lg flex gap-2.5 items-start text-[12px] text-shop-text-2 leading-[1.55] bg-shop-accent/10 border border-shop-accent/20",children:[e?p("span",{className:"font-shop-mono text-[9.5px] tracking-[0.1em] uppercase bg-shop-accent text-shop-accent-ink px-1.5 py-0.5 rounded font-semibold shrink-0 mt-0.5",children:e}):null,p("span",{children:t})]})}function FU({specs:e}){return p("div",{className:"grid grid-cols-2 border-t border-shop-line mt-5.5",children:e.map((t,r)=>_("div",{className:"flex justify-between gap-2.5 py-2.5 border-b border-shop-line text-[12.5px] "+(r%2===0?"pr-3 border-r border-shop-line":"pl-3"),children:[p("b",{className:"font-shop-mono font-normal text-shop-muted text-[10.5px] tracking-[0.08em] uppercase",children:t.label}),p("span",{className:"text-shop-text text-right",children:t.value})]},t.label))})}var zU=()=>k(()=>import("./shop.products._handle-wI-gb8Jd.js"),__vite__mapDeps([148,3,4,5,1])),VU=()=>k(()=>import("./shop.products._handle-wI-gb8Jd.js"),__vite__mapDeps([148,3,4,5,1])),BU=8,HU=R("/shop/products/$handle")({loader:J(VU,"loader"),head:({loaderData:e})=>{const t=e?.product;if(!t)return{meta:[]};const r=t.images.nodes[0];return{meta:ee({title:`${t.seo.title??t.title} | TanStack Shop`,description:t.seo.description??void 0,image:r?ca(r.url,{width:1200,height:630,format:"jpg",crop:"center"}):void 0})}},component:$(zU,"component")});function vJ({product:e,canonicalPath:t}){const r=e.variants.nodes,[n,a]=H(()=>Object.fromEntries(e.options.map(g=>[g.name,g.values[0]]))),[o,i]=H(1),s=Ul(r,n),c=s?.image??null,l=Fe(()=>{if(!c)return 0;const g=e.images.nodes.findIndex(v=>v.url===c.url);return g>=0?g:0},[c,e.images.nodes]),[d,u]=H(l);U(()=>{u(l)},[l]);const f=e.images.nodes[d]??c??null,m=s?.price??null,h=!!s?.availableForSale;return _("div",{className:"p-6 md:p-11 pb-24 max-w-[1200px] mx-auto",children:[p(EP,{crumbs:[{label:"Shop",href:"/shop"},{label:e.title}]}),_("div",{className:"grid grid-cols-1 md:grid-cols-[1fr_minmax(320px,440px)] gap-8 md:gap-10 mt-6",children:[p(UU,{images:e.images.nodes,activeIndex:d,onChange:u,title:e.title,hero:f}),_("div",{className:"flex flex-col",children:[p($l,{children:"TanStack shop"}),p("h1",{className:"font-shop-display font-bold text-[32px] leading-[1.05] tracking-[-0.02em] text-shop-text mt-1.5",children:e.title}),_(xP,{className:"mt-3 p-3 flex flex-wrap items-center gap-2.5",children:[m?p(rs,{className:"text-[20px] font-medium text-shop-text",children:sa(m.amount,m.currencyCode)}):null,p(rs,{className:z("ml-auto flex items-center gap-1.5 text-[12px]",h?"text-shop-green":"text-shop-orange"),children:h?_(fe,{children:[p(yP,{}),"In stock"]}):"Sold out"})]}),p(jU,{options:e.options,variants:r,selected:n,onChange:a}),p(qU,{quantity:o,onChange:g=>i(Math.max(1,g)),variant:s,product:e}),e.descriptionHtml?p(GU,{html:e.descriptionHtml}):null,p(FU,{specs:[{label:"Ships",value:"Worldwide, 7–10 days"},{label:"From",value:"TanStack"},{label:"Condition",value:"New"},{label:"Variants",value:`${e.variants.nodes.length} in stock set`}]}),p(MU,{pill:"TanStack",children:"Official TanStack merch. Proceeds help fund maintainer time and keep all libraries free and open source."}),_("div",{className:"mt-4.5 flex items-center justify-between",children:[p($l,{children:"Keep browsing"}),p($e,{to:"/shop",className:"text-shop-accent text-[11.5px] hover:underline",children:"All products →"})]})]})]}),p(WU,{product:e,selectedVariant:s,canonicalPath:t})]})}function UU({images:e,activeIndex:t,onChange:r,title:n,hero:a}){if(!a)return p("div",{className:"aspect-square rounded-xl border border-shop-line bg-shop-panel"});const o=e.length>1;return _("div",{children:[p("div",{className:"aspect-square rounded-xl border border-shop-line bg-shop-panel overflow-hidden",children:p(co,{image:a,alt:n,width:1200,sizes:"(min-width: 768px) 60vw, 100vw",loading:"eager"})}),o?p("div",{className:"grid grid-cols-5 gap-1.5 mt-2.5",children:e.slice(0,5).map((i,s)=>p("button",{type:"button",onClick:()=>r(s),"aria-label":`View image ${s+1} of ${e.length}`,"aria-current":s===t,className:z("aspect-square rounded-md border bg-shop-panel overflow-hidden cursor-pointer transition-all",s===t?"border-shop-accent shadow-[0_0_0_1px_var(--shop-accent)]":"border-shop-line hover:border-shop-line-2"),children:p(co,{image:i,alt:`${n} thumbnail ${s+1}`,width:160,sizes:"20vw"})},`${i.url}-${s}`))}):null]})}function jU({options:e,variants:t,selected:r,onChange:n}){return p(fe,{children:e.map(a=>{if(a.values.length<=1)return null;const o=/size/i.test(a.name),i=a.values.length>BU;return _("fieldset",{className:"mt-4.5",children:[p("legend",{className:"flex items-center justify-between w-full mb-2.5",children:_($l,{as:"span",children:[a.name,p("span",{className:"ml-2 font-sans normal-case tracking-normal text-[11.5px] text-shop-text",children:r[a.name]})]})}),i?p(Ju,{value:r[a.name],className:"w-full",triggerClassName:"w-full justify-between rounded-md px-3.5 py-2.5 text-shop-sm",onChange:s=>n({...r,[a.name]:s.target.value}),children:a.values.map(s=>p("option",{value:s,disabled:!Ul(t,{...r,[a.name]:s})?.availableForSale,children:s},s))}):p("div",{className:o?"grid grid-cols-[repeat(auto-fill,minmax(54px,1fr))] gap-1.5":"flex flex-wrap gap-2",children:a.values.map(s=>{const c=r[a.name]===s,l=!Ul(t,{...r,[a.name]:s})?.availableForSale,d=()=>n({...r,[a.name]:s});return o?p(kP,{onClick:d,isSelected:c,isUnavailable:l,children:s},s):p(_P,{onClick:d,isSelected:c,isUnavailable:l,children:s},s)})})]},a.id)})})}function qU({quantity:e,onChange:t,variant:r,product:n}){const a=kv(),o=Vu(u=>u.openDrawer),[i,s]=H(!1),c=!r||!r.availableForSale||a.isPending&&!i,l=r?.price,d=i?"✓ Added":r?r.availableForSale?l?`Add to cart — ${sa((Number(l.amount)*e).toFixed(2),l.currencyCode)}`:"Add to cart":"Sold out":"Unavailable";return U(()=>{if(!i)return;const u=window.setTimeout(()=>s(!1),1500);return()=>window.clearTimeout(u)},[i]),_("div",{className:"grid grid-cols-[100px_1fr] gap-2 mt-4.5",children:[p(SP,{quantity:e,onChange:u=>t(Math.max(1,u)),min:1}),_("button",{type:"button",disabled:c,onClick:()=>{r&&(s(!0),o(),a.mutate({variantId:r.id,quantity:e,line:{productTitle:n.title,productHandle:n.handle,variantTitle:r.title,price:r.price,image:r.image,selectedOptions:r.selectedOptions}}))},className:` h-10 flex items-center justify-center gap-2 rounded-md bg-shop-accent text-shop-accent-ink font-semibold text-[13px] tracking-[0.01em] transition-[filter] hover:enabled:brightness-110 disabled:opacity-50 disabled:cursor-not-allowed disabled:bg-shop-panel-2 disabled:text-shop-muted group `,children:[d,!i&&r?.availableForSale?p("span",{className:"transition-transform group-hover:translate-x-[3px]",children:"→"}):null]})]})}function GU({html:e}){return p("div",{className:` mt-4 text-shop-text-2 text-[13.5px] leading-[1.6] [&_p]:my-0 [&_p]:mb-[0.9em] [&_a]:text-shop-accent [&_a]:underline [&_strong]:text-shop-text [&_strong]:font-semibold [&_ul]:pl-5 [&_ul]:my-2 [&_ol]:pl-5 [&_ol]:my-2 [&_li]:my-1 [&_h1]:text-shop-text [&_h1]:font-shop-display [&_h1]:tracking-[-0.01em] [&_h1]:mt-5 [&_h1]:mb-1.5 [&_h2]:text-shop-text [&_h2]:font-shop-display [&_h2]:tracking-[-0.01em] [&_h2]:mt-5 [&_h2]:mb-1.5 [&_h3]:text-shop-text [&_h3]:font-shop-display [&_h3]:tracking-[-0.01em] [&_h3]:mt-5 [&_h3]:mb-1.5 `,dangerouslySetInnerHTML:{__html:e}})}function Ul(e,t){return e.find(r=>r.selectedOptions.every(n=>t[n.name]===n.value))}function WU({product:e,selectedVariant:t,canonicalPath:r}){const n=e.variants.nodes.map(o=>({"@type":"Offer",sku:o.id,price:o.price.amount,priceCurrency:o.price.currencyCode,availability:o.availableForSale?"https://schema.org/InStock":"https://schema.org/OutOfStock",itemCondition:"https://schema.org/NewCondition",url:`https://tanstack.com${r}`})),a={"@context":"https://schema.org/","@type":"Product",name:e.title,description:e.seo.description??void 0,image:e.images.nodes.map(o=>o.url),sku:t?.id,offers:n.length===1?n[0]:{"@type":"AggregateOffer",offerCount:n.length,lowPrice:Math.min(...e.variants.nodes.map(o=>Number(o.price.amount))),highPrice:Math.max(...e.variants.nodes.map(o=>Number(o.price.amount))),priceCurrency:e.variants.nodes[0]?.price.currencyCode??"USD",offers:n}};return p("script",{type:"application/ld+json",dangerouslySetInnerHTML:{__html:JSON.stringify(a)}})}var ZU=()=>k(()=>import("./shop.policies._handle-Xieve-4w.js"),__vite__mapDeps([149,3,4,5,1])),KU=()=>k(()=>import("./shop.policies._handle-Xieve-4w.js"),__vite__mapDeps([149,3,4,5,1])),YU=R("/shop/policies/$handle")({loader:J(KU,"loader"),head:({loaderData:e})=>{const t=e?.policy;return t?{meta:ee({title:`${t.title} | TanStack Shop`})}:{meta:[]}},component:$(ZU,"component")}),XU=()=>k(()=>import("./shop.pages._handle-Rawc1TcL.js"),__vite__mapDeps([150,3,4,5,1])),JU=()=>k(()=>import("./shop.pages._handle-Rawc1TcL.js"),__vite__mapDeps([150,3,4,5,1])),QU=R("/shop/pages/$handle")({loader:J(JU,"loader"),head:({loaderData:e})=>{const t=e?.page;return t?{meta:ee({title:`${t.seo.title??t.title} | TanStack Shop`,description:t.seo.description??t.bodySummary??void 0})}:{meta:[]}},component:$(XU,"component")}),ej=()=>k(()=>import("./shop.collections._handle-DjyOnkjH.js"),__vite__mapDeps([151,3,4,5,1])),tj=()=>k(()=>import("./shop.collections._handle-DjyOnkjH.js"),__vite__mapDeps([151,3,4,5,1])),rj=Se({sort:x(re(["COLLECTION_DEFAULT","BEST_SELLING","CREATED:rev","PRICE","PRICE:rev","TITLE"]))}),nj=R("/shop/collections/$handle")({validateSearch:rj,loaderDeps:({search:e})=>({sort:e.sort}),loader:J(tj,"loader"),head:({loaderData:e})=>{const t=e?.collection;return t?{meta:ee({title:`${t.seo.title??t.title} | TanStack Shop`,description:t.seo.description??t.description??void 0})}:{meta:[]}},component:$(ej,"component"),staticData:{includeSearchInCanonical:!0}}),aj=R("/_library/$libraryId/")({beforeLoad:({params:e})=>{throw ie({to:"/$libraryId/$version",params:{libraryId:e.libraryId,version:"latest"}})}});function oj(e){const t=jr(e);if(!t)throw ma();return t}function Td(e,t,r){const n=oj(e);return n.availableVersions.concat("latest").includes(t)||r(),n}var ij=()=>k(()=>import("./_version-DTWkWzsz.js"),__vite__mapDeps([152,3,4,5,1,114,54])),sj=()=>k(()=>import("./_version-DTWkWzsz.js"),__vite__mapDeps([152,3,4,5,1,114,54])),cj=R("/_library/$libraryId/$version")({staleTime:1e3*60*5,beforeLoad:async e=>{const{libraryId:t,version:r}=e.params;Td(t,r,()=>{throw ie({params:{libraryId:t,version:"latest"}})}).handleRedirects?.(e.location.href)},loader:J(sj,"loader"),component:$(ij,"component")}),lj=()=>k(()=>import("./showcases.index-IPO2rOBp.js"),__vite__mapDeps([153,3,4,5,1,60,61,62,63,39,40,14,65,66,109])),uj=()=>k(()=>import("./showcases.index-IPO2rOBp.js"),__vite__mapDeps([153,3,4,5,1,60,61,62,63,39,40,14,65,66,109])),dj=Se({page:x(Yu,1),pageSize:x(Ca,50),status:x(we(gt(KR),je(3))),libraryId:x(we(gt(Ia),je(16))),isFeatured:x(Ae())}),pj=R("/admin/showcases/")({staleTime:1e3*60*5,beforeLoad:async()=>{try{return{user:await Pr({data:{capability:"moderate-showcases"}})}}catch{throw ie({to:"/login"})}},validateSearch:dj,loaderDeps:({search:e})=>({page:e.page,pageSize:e.pageSize,status:e.status,libraryId:e.libraryId,isFeatured:e.isFeatured}),loader:J(uj,"loader"),component:$(lj,"component"),head:()=>({meta:ee({title:"Moderate Showcases | Admin | TanStack",description:"Moderate product showcase submissions"})})}),fj=()=>k(()=>import("./roles.index-ChLtT2ni.js"),__vite__mapDeps([154,3,4,5,1,118,60,61,62,63,40,119,14,120,122,109,73,123,124,10])),mj=R("/admin/roles/")({beforeLoad:async()=>{try{return{user:await Pr({data:{capability:"admin"}})}}catch{throw ie({to:"/login"})}},component:$(fj,"component"),validateSearch:e=>$r(Se({name:x(se()),cap:x(Au([se(),gt(se())]))}),e)}),hj=()=>k(()=>import("./notes.index-Dn8fyXmf.js"),__vite__mapDeps([155,3,4,5,1,60,61,62,63,39,40,41,42,109,73,156])),gj=()=>k(()=>import("./notes.index-Dn8fyXmf.js"),__vite__mapDeps([155,3,4,5,1,60,61,62,63,39,40,41,42,109,73,156])),vj=R("/admin/notes/")({staleTime:1e3*60*5,beforeLoad:async()=>{try{return{user:await Pr({data:{capability:"moderate-feedback"}})}}catch{throw ie({to:"/login"})}},validateSearch:e=>$r(Se({page:x(Yu,1),pageSize:x(Ca,50),libraryId:x(Ia),isDetached:x(Ae()),dateFrom:x(ts),dateTo:x(ts)}),e),loaderDeps:({search:e})=>({page:e.page,pageSize:e.pageSize,libraryId:e.libraryId,isDetached:e.isDetached,dateFrom:e.dateFrom,dateTo:e.dateTo}),loader:J(gj,"loader"),component:$(hj,"component"),head:()=>({meta:ee({title:"View Notes | Admin | TanStack",description:"View user documentation notes"})})}),yj=()=>k(()=>import("./feedback.index-C3P08eUe.js"),__vite__mapDeps([157,3,4,5,1,60,61,62,63,39,40,14,41,42,109,73,156])),bj=()=>k(()=>import("./feedback.index-C3P08eUe.js"),__vite__mapDeps([157,3,4,5,1,60,61,62,63,39,40,14,41,42,109,73,156])),wj=Se({page:x(Yu,1),pageSize:x(Ca,50),status:x(we(gt(ZR),je(4))),libraryId:x(Ia),isDetached:x(Ae()),dateFrom:x(ts),dateTo:x(ts)}),_j=R("/admin/feedback/")({staleTime:1e3*60*5,beforeLoad:async()=>{try{return{user:await Pr({data:{capability:"moderate-feedback"}})}}catch{throw ie({to:"/login"})}},validateSearch:wj,loaderDeps:({search:e})=>({page:e.page,pageSize:e.pageSize,status:e.status,libraryId:e.libraryId,isDetached:e.isDetached,dateFrom:e.dateFrom,dateTo:e.dateTo}),loader:J(bj,"loader"),component:$(yj,"component"),head:()=>({meta:ee({title:"Moderate Feedback | Admin | TanStack",description:"Moderate documentation feedback submissions"})})}),kj=()=>k(()=>import("./showcases_._id-DeQEMFVf.js"),__vite__mapDeps([158,3,4,5,1,72,14,109,73,126,66,67])),Sj=R("/admin/showcases_/$id")({component:$(kj,"component")}),xj=()=>k(()=>import("./roles._roleId-Cp7VjjbT.js"),__vite__mapDeps([159,3,4,5,1,118,14,109,123,124,10])),Ej=R("/admin/roles/$roleId")({beforeLoad:async()=>{try{return{user:await Pr({data:{capability:"admin"}})}}catch{throw ie({to:"/login"})}},component:$(xj,"component")}),Tj=()=>k(()=>import("./feedback_._id-foxbxr8k.js"),__vite__mapDeps([160,3,4,5,1,109,126,42])),Ij=R("/admin/feedback_/$id")({component:$(Tj,"component")}),Cj=()=>k(()=>import("./users._userId-CWg_v48T.js"),__vite__mapDeps([161,3,4,5,1,109,126,124,10])),Rj=R("/admin/users/$userId")({beforeLoad:async()=>{try{return{user:await Pr({data:{capability:"admin"}})}}catch{throw ie({to:"/login"})}},component:$(Cj,"component")}),$j=()=>k(()=>import("./_packageName.index-BIjtoP_V.js"),__vite__mapDeps([162,3,4,5,1,143])),Pj=()=>k(()=>import("./_packageName.index-BIjtoP_V.js"),__vite__mapDeps([162,3,4,5,1,143])),Aj=R("/intent/registry/$packageName/")({loaderDeps:({search:e})=>({version:e.version}),loader:J(Pj,"loader"),component:$($j,"component")}),Lj=()=>k(()=>import("./_packageName._skillName-BfyuDrL4.js"),__vite__mapDeps([163,3,4,5,1,101,6,8,9,10,102,11,164,142,143])),Nj=()=>k(()=>import("./_packageName._skillName-BfyuDrL4.js"),__vite__mapDeps([163,3,4,5,1,101,6,8,9,10,102,11,164,142,143])),Dj=R("/intent/registry/$packageName/$skillName")({loaderDeps:({search:e})=>({version:e.version}),loader:J(Nj,"loader"),head:({params:e})=>{const t=Zy(e.packageName);return{meta:ee({title:`${e.skillName} | ${t} | Agent Skills Registry | TanStack Intent`,description:`Agent Skill "${e.skillName}" from ${t}.`})}},component:$(Lj,"component")}),Oj=Ce({method:"GET"}).handler(Le("5aa3336fab18da4d570473bffca8fc49f58b918db9f07625af8cbb0e84f72b2c"));function Mj(e,t){const r=Cr(e);return{branch:Xx(r,t),docsRoot:r.docsRoot||"docs",repo:r.repo}}function Fj(e,t){const r=Mj(e,t);return vo({queryKey:["docs-config",r.repo,r.branch,r.docsRoot],queryFn:()=>Oj({data:r}),staleTime:1e3*60*5})}var zj=Ce({method:"POST"}).handler(Le("d908f88fe4813ba046cfb67a9719651b7c7d8c67b630d540eea42db14c1bf79b")),Vj=Ce({method:"GET"}).handler(Le("f1b654f1faf06b75ffbd2429bd0174a776b5faa45e09d315a5366d18c8a59c3b")),yJ=Ce({method:"POST"}).handler(Le("4097e608bb0c40ae4a127bff0b1a2a57952cedb068a7600db89f4654fc26819f")),Bj=Ce({method:"POST"}).handler(Le("2972dae81228ce12d06d61ed801a0dd423178645cdfd757b1991f766ba260837")),Hj=e=>vo({queryKey:["stats","oss",e],queryFn:()=>zj({data:{library:e?.library}}),staleTime:1e3*60*15}),bJ=()=>vo({queryKey:["stats","homepage-npm-summary"],queryFn:()=>Vj(),staleTime:1e3*60*15});function Uj({library:e}={}){return Hj({library:e?{id:e.id,npmPackageNames:e.npmPackageNames,repo:e.repo,frameworks:e.frameworks}:void 0})}function jj({library:e}){const t={id:e.id,npmPackageNames:e.npmPackageNames,repo:e.repo,frameworks:e.frameworks};return vo({queryKey:["npm-recent-downloads",t],queryFn:()=>Bj({data:{library:t}}),staleTime:300*1e3})}var wJ={allow:"cross-origin-isolated",credentialless:""},tt=1e3*60*5;function rt(e,t,r){Td(e,t,()=>{throw ie({href:`/${e}/latest`})}).handleRedirects?.(r)}async function _J(e,t,r){const n=Cr(e),[a]=await Promise.all([r.ensureQueryData(Fj(e,t)),r.ensureQueryData(Uj({library:n})),r.ensureQueryData(jj({library:n}))]);return{config:a}}function nt(e){const t=Cr(e);return{meta:ee({title:t.name,description:t.description,image:Pa(t.id),noindex:t.visible===!1})}}function at({libraryId:e}){const t=Cr(e),r=t.name.replace("TanStack ",""),n=`inline-block text-transparent bg-clip-text bg-linear-to-r ${t.colorFrom} ${t.colorTo}`;return p($e,{to:"/$libraryId",params:{libraryId:t.id},className:"whitespace-nowrap",children:p("span",{className:n,children:r})})}var qj=()=>k(()=>import("./workflow._version.index-Lk-LYdf1.js"),__vite__mapDeps([165,3,4,5,1,166,16,167,69,168])),Gj=()=>k(()=>import("./workflow._version.index-Lk-LYdf1.js"),__vite__mapDeps([165,3,4,5,1,166,16,167,69,168])),Wj=R("/_library/workflow/$version/")({staleTime:tt,beforeLoad:({params:e,location:t})=>{rt("workflow",e.version,t.href)},loader:J(Gj,"loader"),head:()=>nt("workflow"),staticData:{Title:Zj},component:$(qj,"component")});function Zj(){return p(at,{libraryId:"workflow"})}var Kj=()=>k(()=>import("./virtual._version.index-B_ys5uCw.js"),__vite__mapDeps([169,3,4,5,1,166,16,167,170,6,102,9,69,168,171,91,86,172])),Yj=()=>k(()=>import("./virtual._version.index-B_ys5uCw.js"),__vite__mapDeps([169,3,4,5,1,166,16,167,170,6,102,9,69,168,171,91,86,172])),Xj=R("/_library/virtual/$version/")({staleTime:tt,beforeLoad:({params:e,location:t})=>{rt("virtual",e.version,t.href)},loader:J(Yj,"loader"),head:()=>nt("virtual"),staticData:{Title:Jj},component:$(Kj,"component")});function Jj(){return p(at,{libraryId:"virtual"})}var Qj=()=>k(()=>import("./table._version.index-D3iNVuas.js"),__vite__mapDeps([173,3,4,5,1,118,166,16,167,170,6,102,9,69,168,171,90,86])),eq=()=>k(()=>import("./table._version.index-D3iNVuas.js"),__vite__mapDeps([173,3,4,5,1,118,166,16,167,170,6,102,9,69,168,171,90,86])),tq=R("/_library/table/$version/")({staleTime:tt,beforeLoad:({params:e,location:t})=>{rt("table",e.version,t.href)},loader:J(eq,"loader"),head:()=>nt("table"),staticData:{Title:rq},component:$(Qj,"component")});function rq(){return p(at,{libraryId:"table"})}var nq=()=>k(()=>import("./store._version.index-BdLPeh5W.js"),__vite__mapDeps([174,3,4,5,1,166,16,167,69,168])),aq=()=>k(()=>import("./store._version.index-BdLPeh5W.js"),__vite__mapDeps([174,3,4,5,1,166,16,167,69,168])),oq=R("/_library/store/$version/")({staleTime:tt,beforeLoad:({params:e,location:t})=>{rt("store",e.version,t.href)},loader:J(aq,"loader"),head:()=>nt("store"),staticData:{Title:iq},component:$(nq,"component")});function iq(){return p(at,{libraryId:"store"})}var sq=()=>k(()=>import("./start._version.index-JHi-KFRj.js"),__vite__mapDeps([175,176,3,4,5,1,136,61,62,63,177,29,166,16,69,168,171])),cq=()=>k(()=>import("./start._version.index-JHi-KFRj.js"),__vite__mapDeps([175,176,3,4,5,1,136,61,62,63,177,29,166,16,69,168,171])),lq=R("/_library/start/$version/")({staleTime:tt,beforeLoad:({params:e,location:t})=>{rt("start",e.version,t.href)},loader:J(cq,"loader"),head:()=>nt("start"),staticData:{Title:uq},component:$(sq,"component")});function uq(){return p(at,{libraryId:"start"})}var dq=()=>k(()=>import("./router._version.index-f7v_jqoh.js"),__vite__mapDeps([178,176,3,4,5,1,136,61,62,63,177,29,166,16,69,168,171])),pq=()=>k(()=>import("./router._version.index-f7v_jqoh.js"),__vite__mapDeps([178,176,3,4,5,1,136,61,62,63,177,29,166,16,69,168,171])),fq=R("/_library/router/$version/")({staleTime:tt,beforeLoad:({params:e,location:t})=>{rt("router",e.version,t.href)},loader:J(pq,"loader"),head:()=>nt("router"),staticData:{Title:mq},component:$(dq,"component")});function mq(){return p(at,{libraryId:"router"})}var hq=()=>k(()=>import("./ranger._version.index-B5GjFVMK.js"),__vite__mapDeps([179,3,4,5,1,166,16,167,69,168,9,89])),gq=()=>k(()=>import("./ranger._version.index-B5GjFVMK.js"),__vite__mapDeps([179,3,4,5,1,166,16,167,69,168,9,89])),vq=R("/_library/ranger/$version/")({staleTime:tt,beforeLoad:({params:e,location:t})=>{rt("ranger",e.version,t.href)},loader:J(gq,"loader"),head:()=>nt("ranger"),staticData:{Title:yq},component:$(hq,"component")});function yq(){return p(at,{libraryId:"ranger"})}var bq=()=>k(()=>import("./query._version.index-8ZyosKM9.js"),__vite__mapDeps([180,3,4,5,1,166,16,167,170,6,102,9,69,168,171,88,86,172])),wq=()=>k(()=>import("./query._version.index-8ZyosKM9.js"),__vite__mapDeps([180,3,4,5,1,166,16,167,170,6,102,9,69,168,171,88,86,172])),_q=R("/_library/query/$version/")({staleTime:tt,beforeLoad:({params:e,location:t})=>{rt("query",e.version,t.href)},loader:J(wq,"loader"),head:()=>nt("query"),staticData:{Title:kq},component:$(bq,"component")});function kq(){return p(at,{libraryId:"query"})}var Sq=()=>k(()=>import("./pacer._version.index-CXEDefm_.js"),__vite__mapDeps([181,3,4,5,1,166,16,167,69,168])),xq=()=>k(()=>import("./pacer._version.index-CXEDefm_.js"),__vite__mapDeps([181,3,4,5,1,166,16,167,69,168])),Eq=R("/_library/pacer/$version/")({staleTime:tt,beforeLoad:({params:e,location:t})=>{rt("pacer",e.version,t.href)},loader:J(xq,"loader"),head:()=>nt("pacer"),staticData:{Title:Tq},component:$(Sq,"component")});function Tq(){return p(at,{libraryId:"pacer"})}var Iq=()=>k(()=>import("./intent._version.index-CJvYKOEe.js"),__vite__mapDeps([182,3,4,5,1,166,16,167,69,168,183,184,139,185,186,187,188,138,189,190,191,192,143])),Cq=()=>k(()=>import("./intent._version.index-CJvYKOEe.js"),__vite__mapDeps([182,3,4,5,1,166,16,167,69,168,183,184,139,185,186,187,188,138,189,190,191,192,143])),Rq=R("/_library/intent/$version/")({staleTime:tt,beforeLoad:({params:e,location:t})=>{rt("intent",e.version,t.href)},loader:J(Cq,"loader"),head:()=>nt("intent"),staticData:{Title:$q},component:$(Iq,"component")});function $q(){return p(at,{libraryId:"intent"})}var Pq=()=>k(()=>import("./hotkeys._version.index-CYFuPVt9.js"),__vite__mapDeps([193,3,4,5,1,166,16,167,69,168])),Aq=()=>k(()=>import("./hotkeys._version.index-CYFuPVt9.js"),__vite__mapDeps([193,3,4,5,1,166,16,167,69,168])),Lq=R("/_library/hotkeys/$version/")({staleTime:tt,beforeLoad:({params:e,location:t})=>{rt("hotkeys",e.version,t.href)},loader:J(Aq,"loader"),head:()=>nt("hotkeys"),staticData:{Title:Nq},component:$(Pq,"component")});function Nq(){return p(at,{libraryId:"hotkeys"})}var Dq=()=>k(()=>import("./form._version.index-CD1MU3u2.js"),__vite__mapDeps([194,3,4,5,1,166,16,167,170,6,102,9,69,168,171,87,86])),Oq=()=>k(()=>import("./form._version.index-CD1MU3u2.js"),__vite__mapDeps([194,3,4,5,1,166,16,167,170,6,102,9,69,168,171,87,86])),Mq=R("/_library/form/$version/")({staleTime:tt,beforeLoad:({params:e,location:t})=>{rt("form",e.version,t.href)},loader:J(Oq,"loader"),head:()=>nt("form"),staticData:{Title:Fq},component:$(Dq,"component")});function Fq(){return p(at,{libraryId:"form"})}var zq=()=>k(()=>import("./devtools._version.index-DWG7lxRh.js"),__vite__mapDeps([195,3,4,5,1,166,16,167,69,168])),Vq=()=>k(()=>import("./devtools._version.index-DWG7lxRh.js"),__vite__mapDeps([195,3,4,5,1,166,16,167,69,168])),Bq=R("/_library/devtools/$version/")({staleTime:tt,beforeLoad:({params:e,location:t})=>{rt("devtools",e.version,t.href)},loader:J(Vq,"loader"),head:()=>nt("devtools"),staticData:{Title:Hq},component:$(zq,"component")});function Hq(){return p(at,{libraryId:"devtools"})}var Uq=()=>k(()=>import("./db._version.index-D7mzsfuV.js"),__vite__mapDeps([196,3,4,5,1,166,16,167,69,168,171])),jq=()=>k(()=>import("./db._version.index-D7mzsfuV.js"),__vite__mapDeps([196,3,4,5,1,166,16,167,69,168,171])),qq=R("/_library/db/$version/")({staleTime:tt,beforeLoad:({params:e,location:t})=>{rt("db",e.version,t.href)},loader:J(jq,"loader"),head:()=>nt("db"),staticData:{Title:Gq},component:$(Uq,"component")});function Gq(){return p(at,{libraryId:"db"})}var Wq=()=>k(()=>import("./config._version.index-CyDLkulw.js"),__vite__mapDeps([197,3,4,5,1,166,16,167,69,168])),Zq=()=>k(()=>import("./config._version.index-CyDLkulw.js"),__vite__mapDeps([197,3,4,5,1,166,16,167,69,168])),Kq=R("/_library/config/$version/")({staleTime:tt,beforeLoad:({params:e,location:t})=>{rt("config",e.version,t.href)},loader:J(Zq,"loader"),head:()=>nt("config"),staticData:{Title:Yq},component:$(Wq,"component")});function Yq(){return p(at,{libraryId:"config"})}var Xq=()=>k(()=>import("./cli._version.index-C_cW4qMK.js"),__vite__mapDeps([198,3,4,5,1,166,16,167,69,168])),Jq=()=>k(()=>import("./cli._version.index-C_cW4qMK.js"),__vite__mapDeps([198,3,4,5,1,166,16,167,69,168])),Qq=R("/_library/cli/$version/")({staleTime:tt,beforeLoad:({params:e,location:t})=>{rt("cli",e.version,t.href)},loader:J(Jq,"loader"),head:()=>nt("cli"),staticData:{Title:eG},component:$(Xq,"component")});function eG(){return p(at,{libraryId:"cli"})}var tG=()=>k(()=>import("./ai._version.index-BoDezv49.js"),__vite__mapDeps([199,3,4,5,1,166,16,167,69,168,171])),rG=()=>k(()=>import("./ai._version.index-BoDezv49.js"),__vite__mapDeps([199,3,4,5,1,166,16,167,69,168,171])),nG=R("/_library/ai/$version/")({staleTime:tt,beforeLoad:({params:e,location:t})=>{rt("ai",e.version,t.href)},loader:J(rG,"loader"),head:()=>nt("ai"),staticData:{Title:aG},component:$(tG,"component")});function aG(){return p(at,{libraryId:"ai"})}var oG=R("/_library/$libraryId/$version/")({beforeLoad:({params:e,location:t})=>{const r=jr(e.libraryId);if(!r)throw ma();r.handleRedirects?.(t.href),Td(r.id,e.version,()=>{throw ie({href:`/${r.id}/latest`})}),iG(r.id,e.version)}});function iG(e,t){switch(e){case"ai":throw ie({to:"/ai/$version",params:{version:t}});case"cli":throw ie({to:"/cli/$version",params:{version:t}});case"config":throw ie({to:"/config/$version",params:{version:t}});case"db":throw ie({to:"/db/$version",params:{version:t}});case"devtools":throw ie({to:"/devtools/$version",params:{version:t}});case"form":throw ie({to:"/form/$version",params:{version:t}});case"hotkeys":throw ie({to:"/hotkeys/$version",params:{version:t}});case"intent":throw ie({to:"/intent/$version",params:{version:t}});case"pacer":throw ie({to:"/pacer/$version",params:{version:t}});case"query":throw ie({to:"/query/$version",params:{version:t}});case"ranger":throw ie({to:"/ranger/$version",params:{version:t}});case"router":throw ie({to:"/router/$version",params:{version:t}});case"start":throw ie({to:"/start/$version",params:{version:t}});case"store":throw ie({to:"/store/$version",params:{version:t}});case"table":throw ie({to:"/table/$version",params:{version:t}});case"virtual":throw ie({to:"/virtual/$version",params:{version:t}});case"workflow":throw ie({to:"/workflow/$version",params:{version:t}});default:throw ma()}}var sG=()=>k(()=>import("./_version.docs-CXgbac2U.js"),__vite__mapDeps([200,3,4,5,1])),cG=R("/_library/$libraryId/$version/docs")({head:e=>{const{libraryId:t}=e.params,r=jr(t);if(!r)throw ma();return{meta:ee({title:`${r.name} Docs`,noindex:r.visible===!1})}},component:$(sG,"component")}),lG=R("/_library/$libraryId/$version/docs/")({beforeLoad:e=>{const{libraryId:t}=e.params,r=Cr(t);throw ie({from:"/$libraryId/$version/docs",to:"./$",params:{_splat:"defaultDocs"in r?r.defaultDocs:"overview"}})}}),uG=()=>k(()=>import("./_version.docs.npm-stats-p0Sd3OLU.js"),__vite__mapDeps([201,135,2,3,4,5,1,136,61,62,63,137,138,139,140,202,58])),dG=re(["none","normalize-y"]),pG=re(["yearly","monthly","weekly","daily"]),fG=re(["all","complete"]),mG=we(Ve(),it(),st(-5e3),Wt(0)),s0=we(Ve(),it(),st(0)),hG=R("/_library/$libraryId/$version/docs/npm-stats")({validateSearch:Se({packageGroups:O(x(fd),void 0),range:O(x(re(["7-days","30-days","90-days","180-days","365-days","730-days","1825-days","all-time"]),"365-days"),"365-days"),transform:O(x(dG,"none"),"none"),binType:O(x(pG,"weekly"),"weekly"),viewMode:O(x(Ks,"history"),"history"),chartType:O(x(Ys,"line"),"line"),barOrientation:O(x(Zs),void 0),barSort:O(x(Gs,"value"),"value"),bucketOffset:O(x(mG,0),0),playbackIntervalMs:O(x(Ws,350),350),playbackLoop:O(x(Ae(),!1),!1),playbackPlaying:O(x(Ae(),!1),!1),showDataMode:O(x(fG,"all"),"all"),normalizeBaseline:O(x(Ae(),!0),!0),showBaseline:O(x(Ae(),!1),!1),height:O(x(Xu,400),400),width:O(x(Vs),void 0),timelineStart:O(x(s0),void 0),timelineEnd:O(x(s0),void 0)}),component:$(uG,"component"),staticData:{includeSearchInCanonical:!0}}),gG=()=>k(()=>import("./_version.docs.contributors-Co5IFUxI.js"),__vite__mapDeps([203,4,5,1,202,105,17,3,9,18])),vG=R("/_library/$libraryId/$version/docs/contributors")({component:$(gG,"component")}),Id="https://tanstack.com",yG=new Set(["http:","https:","mailto:","tel:"]);function bG(e){if(!e)return Id;try{return new URL(e).origin}catch{return e.replace(/\/+$/g,"")}}function Cd(e){return e.username.length>0||e.password.length>0}function kJ(e){if(!e)return!1;const t=e.trim();if(!t)return!1;if(t.startsWith("#")||t.startsWith("/")&&!t.startsWith("//"))return!0;if(/^[a-zA-Z][a-zA-Z0-9+.-]*:/.test(t)||t.startsWith("//"))try{const r=new URL(t,Id);return yG.has(r.protocol)&&!Cd(r)}catch{return!1}return!0}function SJ(e){return wG(e)!==null}function wG(e){if(!e)return null;try{const t=new URL(e);return t.protocol!=="http:"&&t.protocol!=="https:"||Cd(t)?null:t.toString()}catch{return null}}function _G(e){const[t]=e.split(/[?#]/);return/\.[a-z0-9]+$/i.test(t)&&!t.endsWith(".md")}function xJ(e,t=Id){if(!e)return null;const r=e.trim();if(!r||r.startsWith("#"))return null;const n=r.startsWith("/")&&!r.startsWith("//"),a=/^[a-zA-Z][a-zA-Z0-9+.-]*:/.test(r)||r.startsWith("//");if(!n&&!a)return null;const o=bG(t);let i;try{i=new URL(r,o)}catch{return null}if(i.origin!==o||Cd(i))return null;const s=`${i.pathname}${i.search}`;return i.pathname.startsWith("/")&&!i.pathname.startsWith("//")&&i.pathname!=="/api"&&!i.pathname.startsWith("/api/")&&!_G(i.pathname)?{path:s,hash:i.hash?i.hash.slice(1):void 0}:null}var kG=()=>k(()=>import("./_version.docs.community-resources-BHyDYiz3.js"),__vite__mapDeps([204,4,5,1,202,105,205,3])),SG=()=>k(()=>import("./_version.docs.community-resources-BHyDYiz3.js"),__vite__mapDeps([204,4,5,1,202,105,205,3])),xG=R("/_library/$libraryId/$version/docs/community-resources")({staleTime:1e3*60*5,loader:J(SG,"loader"),head:({params:e})=>{const t=Cr(e.libraryId);return{meta:ee({title:`${t.name} Community Resources`,description:`A collection of community resources for ${t.name}.`,image:Pa(t.id,{title:`${t.name} · Community Resources`}),noindex:t.visible===!1})}},component:$(kG,"component")}),EG=()=>k(()=>import("./_version.docs.blog-rnhE6ydB.js"),__vite__mapDeps([206,3,4,5,1,97,98,18,202,105,53])),TG=()=>k(()=>import("./_version.docs.blog-rnhE6ydB.js"),__vite__mapDeps([206,3,4,5,1,97,98,18,202,105,53])),IG=Se({author:O(x(se()),void 0)}),CG=R("/_library/$libraryId/$version/docs/blog")({staleTime:1/0,validateSearch:IG,loader:J(TG,"loader"),component:$(EG,"component")}),RG=()=>k(()=>import("./_version.docs._-CgjB1C4G.js"),__vite__mapDeps([207,3,4,5,1,208,101,6,8,9,10,102,11,103,104,42,105,41,51,16,52,53,29,54,55,202,205])),$G=()=>k(()=>import("./_version.docs._-CgjB1C4G.js"),__vite__mapDeps([207,3,4,5,1,208,101,6,8,9,10,102,11,103,104,42,105,41,51,16,52,53,29,54,55,202,205])),PG=R("/_library/$libraryId/$version/docs/$")({staleTime:1e3*60*5,loader:J($G,"loader"),head:({loaderData:e,params:t})=>{const{libraryId:r,version:n,_splat:a}=t,o=jr(r);if(!o)throw ma();const i=(e?.frameworks??[]).map(s=>({rel:"alternate",type:"text/markdown",href:`/${r}/${n}/docs/${a}.md?framework=${s}`}));return{meta:ee({title:`${e?.title} | ${o.name} Docs`,description:e?.description,keywords:e?.keywords,image:Pa(o.id,{title:e?.title,description:e?.description}),noindex:o.visible===!1}),links:i}},component:$(RG,"component")}),AG=()=>k(()=>import("./_version.docs.framework.index-DIZRz_I8.js"),__vite__mapDeps([209,3,4,5,1,202,105,9])),LG=R("/_library/$libraryId/$version/docs/framework/")({component:$(AG,"component")}),NG=()=>k(()=>import("./_version.docs.framework._framework.index-FvZBZZ5z.js"),__vite__mapDeps([210,4,5,1,202,105,9])),DG=()=>k(()=>import("./_version.docs.framework._framework.index-FvZBZZ5z.js"),__vite__mapDeps([210,4,5,1,202,105,9])),OG=R("/_library/$libraryId/$version/docs/framework/$framework/")({staleTime:1e3*60*5,loader:J(DG,"loader"),head:e=>{const t=Cr(e.params.libraryId),r=`${t.name} ${Ns(e.params.framework)} Docs`;return{meta:ee({title:e.loaderData?.title?`${e.loaderData.title} | ${r}`:r,noindex:t.visible===!1})}},component:$(NG,"component")}),MG=()=>k(()=>import("./_version.docs.framework._framework._-BZs2D9Eq.js"),__vite__mapDeps([211,3,4,5,1,208,101,6,8,9,10,102,11,103,104,42,105,41,51,16,52,53,29,54,55,202,205])),FG=()=>k(()=>import("./_version.docs.framework._framework._-BZs2D9Eq.js"),__vite__mapDeps([211,3,4,5,1,208,101,6,8,9,10,102,11,103,104,42,105,41,51,16,52,53,29,54,55,202,205])),zG=R("/_library/$libraryId/$version/docs/framework/$framework/$")({staleTime:1e3*60*5,loader:J(FG,"loader"),component:$(MG,"component"),head:e=>{const t=Cr(e.params.libraryId),r=`${t.name} ${Ns(e.params.framework)} Docs`;return{meta:ee({title:e.loaderData?.title?`${e.loaderData.title} | ${r}`:r,description:e.loaderData?.description,keywords:e.loaderData?.keywords,image:Pa(t.id,{title:e.loaderData?.title,description:e.loaderData?.description}),noindex:t.visible===!1})}}}),VG=()=>k(()=>import("./_version.docs.framework._framework.examples._-DBM136SE.js"),__vite__mapDeps([212,6,4,5,1,3,213,62,63,105,177,205,29])),BG=()=>k(()=>import("./_version.docs.framework._framework.examples._-DBM136SE.js"),__vite__mapDeps([212,6,4,5,1,3,213,62,63,105,177,205,29])),HG=R("/_library/$libraryId/$version/docs/framework/$framework/examples/$")({component:$(BG,"component"),validateSearch:Se({path:x(se()),panel:x(se())}),loaderDeps:({search:e})=>({path:e.path}),loader:J(VG,"loader"),head:({params:e})=>{const t=Cr(e.libraryId),r=tE(e._splat||""),n=Ns(e.framework),a=`${n} ${t.name} ${r} Example`,o=`An example showing how to implement ${r} in ${n} using ${t.name}.`;return{meta:ee({title:`${a} | ${t.name} Docs`,description:o,image:Pa(t.id,{title:a,description:o}),noindex:t.visible===!1})}},staleTime:1e3*60*5}),UG=kR.update({id:"/workshops",path:"/workshops",getParentRoute:()=>ce}),jG=xR.update({id:"/terms",path:"/terms",getParentRoute:()=>ce}),qG=TR.update({id:"/tenets",path:"/tenets",getParentRoute:()=>ce}),GG=CR.update({id:"/support",path:"/support",getParentRoute:()=>ce}),WG=PR.update({id:"/sponsors-embed",path:"/sponsors-embed",getParentRoute:()=>ce}),ZG=AR.update({id:"/showcases",path:"/showcases",getParentRoute:()=>ce}),Ar=MR.update({id:"/shop",path:"/shop",getParentRoute:()=>ce}),KG=zR.update({id:"/privacy",path:"/privacy",getParentRoute:()=>ce}),YG=BR.update({id:"/partners-embed",path:"/partners-embed",getParentRoute:()=>ce}),ec=UR.update({id:"/partners",path:"/partners",getParentRoute:()=>ce}),XG=qR.update({id:"/paid-support",path:"/paid-support",getParentRoute:()=>ce}),JG=WR.update({id:"/merch",path:"/merch",getParentRoute:()=>ce}),QG=a$.update({id:"/maintainers",path:"/maintainers",getParentRoute:()=>ce}),eW=u$.update({id:"/login",path:"/login",getParentRoute:()=>ce}),tW=f$.update({id:"/libraries",path:"/libraries",getParentRoute:()=>ce}),rW=h$.update({id:"/learn",path:"/learn",getParentRoute:()=>ce}),nW=b$.update({id:"/feedback-leaderboard",path:"/feedback-leaderboard",getParentRoute:()=>ce}),aW=_$.update({id:"/explore",path:"/explore",getParentRoute:()=>ce}),oW=S$.update({id:"/ethos",path:"/ethos",getParentRoute:()=>ce}),iW=E$.update({id:"/dashboard",path:"/dashboard",getParentRoute:()=>ce}),Rd=I$.update({id:"/builder",path:"/builder",getParentRoute:()=>ce}),sW=R$.update({id:"/brand-guide",path:"/brand-guide",getParentRoute:()=>ce}),$d=$$.update({id:"/blog",path:"/blog",getParentRoute:()=>ce}),cW=A$.update({id:"/ads",path:"/ads",getParentRoute:()=>ce}),La=N$.update({id:"/account",path:"/account",getParentRoute:()=>ce}),Ze=O$.update({id:"/_library",getParentRoute:()=>ce}),ct=F$.update({id:"/admin",path:"/admin",getParentRoute:()=>ce}),lW=B$.update({id:"/",path:"/",getParentRoute:()=>ce}),uW=U$.update({id:"/stats/",path:"/stats/",getParentRoute:()=>ce}),dW=W$.update({id:"/showcase/",path:"/showcase/",getParentRoute:()=>ce}),pW=Y$.update({id:"/stack/$category",path:"/stack/$category",getParentRoute:()=>ce}),fW=J$.update({id:"/showcase/submit",path:"/showcase/submit",getParentRoute:()=>ce}),mW=tP.update({id:"/showcase/$id",path:"/showcase/$id",getParentRoute:()=>ce}),hW=oP.update({id:"/oauth/authorize",path:"/oauth/authorize",getParentRoute:()=>ce}),gW=cP.update({id:"/libraries_/$framework",path:"/libraries/$framework",getParentRoute:()=>ce}),vW=uP.update({id:"/auth/popup-success",path:"/auth/popup-success",getParentRoute:()=>ce}),yW=mP.update({id:"/auth/cli",path:"/auth/cli",getParentRoute:()=>ce}),bW=HP.update({id:"/",path:"/",getParentRoute:()=>Ar}),wW=GP.update({id:"/search",path:"/search",getParentRoute:()=>Ar}),_W=ZP.update({id:"/cart",path:"/cart",getParentRoute:()=>Ar}),kW=XP.update({id:"/$handle",path:"/$handle",getParentRoute:()=>Ar}),SW=tA.update({id:"/",path:"/",getParentRoute:()=>ec}),xW=RL.update({id:"/railway",path:"/railway",getParentRoute:()=>ec}),EW=AL.update({id:"/$partner",path:"/$partner",getParentRoute:()=>ec}),TW=XM.update({id:"/",path:"/",getParentRoute:()=>Rd}),IW=QM.update({id:"/docs",path:"/docs",getParentRoute:()=>Rd}),CW=aF.update({id:"/",path:"/",getParentRoute:()=>$d}),RW=pF.update({id:"/$",path:"/$",getParentRoute:()=>$d}),$W=mF.update({id:"/",path:"/",getParentRoute:()=>La}),PW=vF.update({id:"/submissions",path:"/submissions",getParentRoute:()=>La}),AW=bF.update({id:"/notes",path:"/notes",getParentRoute:()=>La}),LW=_F.update({id:"/integrations",path:"/integrations",getParentRoute:()=>La}),NW=SF.update({id:"/feedback",path:"/feedback",getParentRoute:()=>La}),Pd=py.update({id:"/$libraryId",path:"/$libraryId",getParentRoute:()=>Ze}),DW=RF.update({id:"/",path:"/",getParentRoute:()=>ct}),Ky=AF.update({id:"/users",path:"/users",getParentRoute:()=>ct}),OW=NF.update({id:"/npm-stats",path:"/npm-stats",getParentRoute:()=>ct}),MW=OF.update({id:"/logins",path:"/logins",getParentRoute:()=>ct}),FW=FF.update({id:"/intent",path:"/intent",getParentRoute:()=>ct}),zW=VF.update({id:"/github-stats",path:"/github-stats",getParentRoute:()=>ct}),VW=HF.update({id:"/docs",path:"/docs",getParentRoute:()=>ct}),BW=jF.update({id:"/audit",path:"/audit",getParentRoute:()=>ct}),HW=mz.update({id:"/stats/npm/",path:"/stats/npm/",getParentRoute:()=>ce}),UW=yz.update({id:"/intent/registry/",path:"/intent/registry/",getParentRoute:()=>ce}),jW=xz.update({id:"/stats/npm/embed",path:"/stats/npm/embed",getParentRoute:()=>ce}),qW=xU.update({id:"/stats/npm/$packages",path:"/stats/npm/$packages",getParentRoute:()=>ce}),GW=IU.update({id:"/showcase/edit/$id",path:"/showcase/edit/$id",getParentRoute:()=>ce}),Ad=OU.update({id:"/intent/registry/$packageName",path:"/intent/registry/$packageName",getParentRoute:()=>ce}),WW=HU.update({id:"/products/$handle",path:"/products/$handle",getParentRoute:()=>Ar}),ZW=YU.update({id:"/policies/$handle",path:"/policies/$handle",getParentRoute:()=>Ar}),KW=QU.update({id:"/pages/$handle",path:"/pages/$handle",getParentRoute:()=>Ar}),YW=nj.update({id:"/collections/$handle",path:"/collections/$handle",getParentRoute:()=>Ar}),XW=aj.update({id:"/",path:"/",getParentRoute:()=>Pd}),Ld=cj.update({id:"/$version",path:"/$version",getParentRoute:()=>Pd}),JW=pj.update({id:"/showcases/",path:"/showcases/",getParentRoute:()=>ct}),QW=mj.update({id:"/roles/",path:"/roles/",getParentRoute:()=>ct}),eZ=vj.update({id:"/notes/",path:"/notes/",getParentRoute:()=>ct}),tZ=_j.update({id:"/feedback/",path:"/feedback/",getParentRoute:()=>ct}),rZ=Sj.update({id:"/showcases_/$id",path:"/showcases/$id",getParentRoute:()=>ct}),nZ=Ej.update({id:"/roles/$roleId",path:"/roles/$roleId",getParentRoute:()=>ct}),aZ=Ij.update({id:"/feedback_/$id",path:"/feedback/$id",getParentRoute:()=>ct}),oZ=Rj.update({id:"/$userId",path:"/$userId",getParentRoute:()=>Ky}),iZ=Aj.update({id:"/",path:"/",getParentRoute:()=>Ad}),sZ=Dj.update({id:"/$skillName",path:"/$skillName",getParentRoute:()=>Ad}),cZ=Wj.update({id:"/workflow/$version/",path:"/workflow/$version/",getParentRoute:()=>Ze}),lZ=Xj.update({id:"/virtual/$version/",path:"/virtual/$version/",getParentRoute:()=>Ze}),uZ=tq.update({id:"/table/$version/",path:"/table/$version/",getParentRoute:()=>Ze}),dZ=oq.update({id:"/store/$version/",path:"/store/$version/",getParentRoute:()=>Ze}),pZ=lq.update({id:"/start/$version/",path:"/start/$version/",getParentRoute:()=>Ze}),fZ=fq.update({id:"/router/$version/",path:"/router/$version/",getParentRoute:()=>Ze}),mZ=vq.update({id:"/ranger/$version/",path:"/ranger/$version/",getParentRoute:()=>Ze}),hZ=_q.update({id:"/query/$version/",path:"/query/$version/",getParentRoute:()=>Ze}),gZ=Eq.update({id:"/pacer/$version/",path:"/pacer/$version/",getParentRoute:()=>Ze}),vZ=Rq.update({id:"/intent/$version/",path:"/intent/$version/",getParentRoute:()=>Ze}),yZ=Lq.update({id:"/hotkeys/$version/",path:"/hotkeys/$version/",getParentRoute:()=>Ze}),bZ=Mq.update({id:"/form/$version/",path:"/form/$version/",getParentRoute:()=>Ze}),wZ=Bq.update({id:"/devtools/$version/",path:"/devtools/$version/",getParentRoute:()=>Ze}),_Z=qq.update({id:"/db/$version/",path:"/db/$version/",getParentRoute:()=>Ze}),kZ=Kq.update({id:"/config/$version/",path:"/config/$version/",getParentRoute:()=>Ze}),SZ=Qq.update({id:"/cli/$version/",path:"/cli/$version/",getParentRoute:()=>Ze}),xZ=nG.update({id:"/ai/$version/",path:"/ai/$version/",getParentRoute:()=>Ze}),EZ=oG.update({id:"/",path:"/",getParentRoute:()=>Ld}),Yt=cG.update({id:"/docs",path:"/docs",getParentRoute:()=>Ld}),TZ=lG.update({id:"/",path:"/",getParentRoute:()=>Yt}),IZ=hG.update({id:"/npm-stats",path:"/npm-stats",getParentRoute:()=>Yt}),CZ=vG.update({id:"/contributors",path:"/contributors",getParentRoute:()=>Yt}),RZ=xG.update({id:"/community-resources",path:"/community-resources",getParentRoute:()=>Yt}),$Z=CG.update({id:"/blog",path:"/blog",getParentRoute:()=>Yt}),PZ=PG.update({id:"/$",path:"/$",getParentRoute:()=>Yt}),AZ=LG.update({id:"/framework/",path:"/framework/",getParentRoute:()=>Yt}),LZ=OG.update({id:"/framework/$framework/",path:"/framework/$framework/",getParentRoute:()=>Yt}),NZ=zG.update({id:"/framework/$framework/$",path:"/framework/$framework/$",getParentRoute:()=>Yt}),DZ=HG.update({id:"/framework/$framework/examples/$",path:"/framework/$framework/examples/$",getParentRoute:()=>Yt}),OZ={AdminUsersUserIdRoute:oZ},MZ={AdminAuditRoute:BW,AdminDocsRoute:VW,AdminGithubStatsRoute:zW,AdminIntentRoute:FW,AdminLoginsRoute:MW,AdminNpmStatsRoute:OW,AdminUsersRoute:Ky._addFileChildren(OZ),AdminIndexRoute:DW,AdminFeedbackIdRoute:aZ,AdminRolesRoleIdRoute:nZ,AdminShowcasesIdRoute:rZ,AdminFeedbackIndexRoute:tZ,AdminNotesIndexRoute:eZ,AdminRolesIndexRoute:QW,AdminShowcasesIndexRoute:JW},FZ=ct._addFileChildren(MZ),zZ={LibraryLibraryIdVersionDocsSplatRoute:PZ,LibraryLibraryIdVersionDocsBlogRoute:$Z,LibraryLibraryIdVersionDocsCommunityResourcesRoute:RZ,LibraryLibraryIdVersionDocsContributorsRoute:CZ,LibraryLibraryIdVersionDocsNpmStatsRoute:IZ,LibraryLibraryIdVersionDocsIndexRoute:TZ,LibraryLibraryIdVersionDocsFrameworkIndexRoute:AZ,LibraryLibraryIdVersionDocsFrameworkFrameworkSplatRoute:NZ,LibraryLibraryIdVersionDocsFrameworkFrameworkIndexRoute:LZ,LibraryLibraryIdVersionDocsFrameworkFrameworkExamplesSplatRoute:DZ},VZ={LibraryLibraryIdVersionDocsRoute:Yt._addFileChildren(zZ),LibraryLibraryIdVersionIndexRoute:EZ},BZ={LibraryLibraryIdVersionRoute:Ld._addFileChildren(VZ),LibraryLibraryIdIndexRoute:XW},HZ={LibraryLibraryIdRouteRoute:Pd._addFileChildren(BZ),LibraryAiVersionIndexRoute:xZ,LibraryCliVersionIndexRoute:SZ,LibraryConfigVersionIndexRoute:kZ,LibraryDbVersionIndexRoute:_Z,LibraryDevtoolsVersionIndexRoute:wZ,LibraryFormVersionIndexRoute:bZ,LibraryHotkeysVersionIndexRoute:yZ,LibraryIntentVersionIndexRoute:vZ,LibraryPacerVersionIndexRoute:gZ,LibraryQueryVersionIndexRoute:hZ,LibraryRangerVersionIndexRoute:mZ,LibraryRouterVersionIndexRoute:fZ,LibraryStartVersionIndexRoute:pZ,LibraryStoreVersionIndexRoute:dZ,LibraryTableVersionIndexRoute:uZ,LibraryVirtualVersionIndexRoute:lZ,LibraryWorkflowVersionIndexRoute:cZ},UZ=Ze._addFileChildren(HZ),jZ={AccountFeedbackRoute:NW,AccountIntegrationsRoute:LW,AccountNotesRoute:AW,AccountSubmissionsRoute:PW,AccountIndexRoute:$W},qZ=La._addFileChildren(jZ),GZ={BlogSplatRoute:RW,BlogIndexRoute:CW},WZ=$d._addFileChildren(GZ),ZZ={BuilderDocsRoute:IW,BuilderIndexRoute:TW},KZ=Rd._addFileChildren(ZZ),YZ={PartnersPartnerRoute:EW,PartnersRailwayRoute:xW,PartnersIndexRoute:SW},XZ=ec._addFileChildren(YZ),JZ={ShopHandleRoute:kW,ShopCartRoute:_W,ShopSearchRoute:wW,ShopIndexRoute:bW,ShopCollectionsHandleRoute:YW,ShopPagesHandleRoute:KW,ShopPoliciesHandleRoute:ZW,ShopProductsHandleRoute:WW},QZ=Ar._addFileChildren(JZ),eK={IntentRegistryPackageNameSkillNameRoute:sZ,IntentRegistryPackageNameIndexRoute:iZ},tK={IndexRoute:lW,AdminRouteRoute:FZ,LibraryRoute:UZ,AccountRoute:qZ,AdsRoute:cW,BlogRoute:WZ,BrandGuideRoute:sW,BuilderRoute:KZ,DashboardRoute:iW,EthosRoute:oW,ExploreRoute:aW,FeedbackLeaderboardRoute:nW,LearnRoute:rW,LibrariesRoute:tW,LoginRoute:eW,MaintainersRoute:QG,MerchRoute:JG,PaidSupportRoute:XG,PartnersRoute:XZ,PartnersEmbedRoute:YG,PrivacyRoute:KG,ShopRoute:QZ,ShowcasesRoute:ZG,SponsorsEmbedRoute:WG,SupportRoute:GG,TenetsRoute:qG,TermsRoute:jG,WorkshopsRoute:UG,AuthCliRoute:yW,AuthPopupSuccessRoute:vW,LibrariesFrameworkRoute:gW,OauthAuthorizeRoute:hW,ShowcaseIdRoute:mW,ShowcaseSubmitRoute:fW,StackCategoryRoute:pW,ShowcaseIndexRoute:dW,StatsIndexRoute:uW,IntentRegistryPackageNameRoute:Ad._addFileChildren(eK),ShowcaseEditIdRoute:GW,StatsNpmPackagesRoute:qW,StatsNpmEmbedRoute:jW,IntentRegistryIndexRoute:UW,StatsNpmIndexRoute:HW},rK=ce._addFileChildren(tK);typeof document<"u"&&(c7(),FS({dsn:"https://ac4bfc43ff4a892f8dc7053c4a50d92f@o4507236158537728.ingest.us.sentry.io/4507236163649536",sendDefaultPii:!0,tracesSampleRate:1,tracePropagationTargets:["localhost",/^https:\/\/tanstack\.com\//],beforeSend(e){const t=e.exception?.values?.flatMap(r=>r.stacktrace?.frames??[]);return t&&t.length>0&&t.every(r=>{const n=r.filename??"";return n.includes("ftUtils.js")||n.includes("fuseplatform.net")})?null:e}}));function nK(){const e=new mw({defaultOptions:{queries:{staleTime:3e5}}}),t=lw({routeTree:rK,defaultPreload:"intent",defaultErrorComponent:$2,scrollRestoration:!0,defaultStaleTime:1,defaultNotFoundComponent:()=>p(Iu,{}),context:{queryClient:e},scrollToTopSelectors:[".scroll-to-top"]});return t.isServer||ck(MS(t)),uw({router:t,queryClient:e}),t}async function aK(){const e=await nK();let t;if(cf){const r=await cf.getOptions();r.serializationAdapters=r.serializationAdapters??[],window.__TSS_START_OPTIONS__=r,t=r.serializationAdapters,e.options.defaultSsr=r.defaultSsr}else t=[],window.__TSS_START_OPTIONS__={serializationAdapters:t};return t.push(Mw),e.options.serializationAdapters&&t.push(...e.options.serializationAdapters),e.update({basepath:"",serializationAdapters:t}),e.stores.matchesId.get().length||await aw(e),e}var oK=aK;async function iK(){const e=await oK();return window.$_TSR?.h(),e}var Bc;function sK(){return Bc||(Bc=iK()),p(Bb,{promise:Bc,children:e=>p(iw,{router:e})})}Cb(()=>{sw(document,p(Db,{children:p(sK,{})}))});var Ir="data-ts-hydrate-id",Gr="data-ts-hydrate-when",Yy="data-ts-hydrate-interaction-events",cK="idle";function lK(e={}){const t=e.timeout??2e3;return{_t:cK,_s:({gate:r,prefetch:n})=>{const a=globalThis,o=n??r.resolve;if(a.requestIdleCallback){const s=a.requestIdleCallback(o,{timeout:t});return()=>a.cancelIdleCallback?.(s)}const i=globalThis.setTimeout(o,t);return()=>globalThis.clearTimeout(i)}}}var uK=`[${Ir}]`,da=new Map,pa=new Set,ys=new Map;function dK(e,t){const r=da.get(e);if(r?.when===t)return r.consumers++,r;let n;const a={id:e,promise:new Promise(o=>{n=o}),resolved:!1,consumers:1,when:t,resolveListeners:new Set,resolve:()=>{a.resolved||(a.resolved=!0,n(),a.resolveListeners.forEach(o=>o()),a.resolveListeners.clear())}};return da.set(e,a),t!=="never"&&pa.has(e)&&(pa.delete(e),a.resolve()),a}function pK(e){pa.delete(e.id),e.consumers--,!(e.consumers>0)&&da.get(e.id)===e&&(da.delete(e.id),ys.delete(e.id),e.resolveListeners.clear())}function fK(e,t){return e.resolved?(t(),()=>{}):(e.resolveListeners.add(t),()=>{e.resolveListeners.delete(t)})}function Za(e){if(typeof e=="function")return e}function mK(e,t){return t.signal.aborted?Promise.resolve("abort"):new Promise(r=>{const n={disposed:!1},a={current:void 0};let o=()=>{};const i=l=>{n.disposed||(n.disposed=!0,t.signal.removeEventListener("abort",s),o(),Za(a.current)?.(),r(l))},s=()=>i("abort");t.signal.addEventListener("abort",s,{once:!0}),o=t.onHydrate(()=>i("hydrate"));const c=e._s?.({element:t.element,prefetch:()=>i("prefetch")});a.current=c,n.disposed&&Za(c)?.()})}function Xy(e){const t=e.getAttribute(Ir);return t?da.get(t):void 0}function Jy(e){const t=e.getAttribute(Ir),r=e.getAttribute(Gr);if(!t||!r||r==="never")return;const n=da.get(t);if(n){n.when!=="never"&&n.resolve();return}pa.add(t)}function hK(e){const t=e.getAttribute(Ir);t&&pa.delete(t),e.querySelectorAll(uK).forEach(r=>{const n=r.getAttribute(Ir);n&&pa.delete(n)})}function gK(e,t){ys.has(e)||ys.set(e,t.innerHTML)}function vK(e){return ys.get(e)}var jl=`[${Ir}]`,Qy=["pointerenter","focusin","pointerdown","click"],eb=["auxclick","click","contextmenu","dblclick","focusin","keydown","keyup","mousedown","mouseenter","mouseover","mouseup","pointerdown","pointerenter","pointerover","pointerup"],Nd="interaction",tc="dynamic",yK=`${`[${Gr}="${Nd}"]`},[${Gr}="${tc}"]`,c0=new Map;function bK(e,t){const r=new Set(t);return e.querySelectorAll(yK).forEach(n=>{if(n.getAttribute("data-ts-hydrate-when")===tc){eb.forEach(o=>{r.add(o)});return}const a=n.getAttribute(Yy);for(const o of a===null?Qy:a.split(/\s+/).filter(Boolean))r.add(o)}),[...r]}function tb(e,t){if(!t.bubbles)return;const r=e.getAttribute(Ir),n=e.getAttribute(Gr);if(!r||!n||n==="never")return;const a=t.target;if(!a||Xy(e)?.resolved)return;t.preventDefault(),t.stopPropagation(),t.stopImmediatePropagation();let o=[];if(a instanceof Node&&e.contains(a)){let s=a instanceof Element?a:a.parentElement;for(;s&&s!==e;){const c=s.parentElement;if(!c){o=[];break}o.push(Array.prototype.indexOf.call(c.children,s)),s=c}o.reverse()}const i=c0.get(r)??[];i.push({marker:e,targetPath:o,type:t.type,event:t}),c0.set(r,i)}if(typeof document<"u"){const e=t=>{const r=t.target;if(!(r instanceof Element))return;let n=r.closest(jl);const a=[];let o=!1;for(;n;){a.push(n);const i=n.getAttribute(Gr);if(i===tc)o||=t.type==="click";else if(i===Nd){const s=n.getAttribute(Yy),c=s===null?Qy:s.split(/\s+/).filter(Boolean);o||=c.includes(t.type)}n=n.parentElement?.closest(jl)??null}o&&(a.reverse(),!a.every(i=>Xy(i))&&a.forEach(i=>{tb(i,t),Jy(i)}))};eb.forEach(t=>{document.addEventListener(t,e,!0)})}function wK(e,t,r){const n=o=>{const i=o.target;let s;if(i instanceof Element){const l=i.closest(jl);s=l&&e.contains(l)?l:e}else s=e;const c=[];for(;s&&(s.hasAttribute("data-ts-hydrate-id")&&c.push(s),s!==e);)s=s.parentElement;c.includes(e)||c.push(e),c.reverse(),!(r.delegated&&!c.some(l=>l.getAttribute("data-ts-hydrate-when")===Nd||l.getAttribute("data-ts-hydrate-when")===tc))&&c.forEach(l=>{tb(l,o),Jy(l)})};let a=!1;return t.forEach(o=>{e.addEventListener(o,n,!0)}),()=>{a||(a=!0,t.forEach(o=>{e.removeEventListener(o,n,!0)}))}}function _K(e,t){const r=bK(e,[]);if(!r.length)return;const n=wK(e,r,{...t,delegated:!0});return()=>{n(),hK(e)}}function kK(e,t){return Object.assign(e,{_h:t})}var rb="dynamic";function l0(e){return e._d?e._d():e._t!=="load"}function SK(e){const t=V(e);return t.current=e,t}function xK(e){const t=dw(),r=_b(),n=e.h?`${e.h}${r}`:r,a=e.when,o=typeof a=="function",i=V(void 0);o&&(i.current??=a());const s=o?i.current:a,c=o?rb:s._t,[l,d]=H(),u=SK({prefetch:e.prefetch,preload:e.p}),f=V(void 0),m=V(null),h=V(void 0),g=V(void 0),v=V(!1),b=V(void 0);b.current??={abortController:new AbortController,hydrationRequested:!1,hydrationListeners:new Set,hydrationResolvePending:!1,started:!1},h.current??=!t,g.current??=!t&&l0(s),f.current||(f.current=dK(n,s._t)),f.current.when=s._t,s._t!=="never"&&(!g.current||!l0(s))&&f.current.resolve();const I=ne(y=>{m.current=y,y&&(s._t==="never"&&!h.current&&y.replaceChildren(),gK(n,y))},[s._t,n]);return U(()=>{const y=f.current;return()=>{const S=b.current;S?.abortController.abort(),S?.cleanup?.(),S?.hydrationListeners.clear(),pK(y)}},[]),U(()=>{if(!u.current.prefetch)return;const y=b.current;if(y.started)return;y.started=!0;const S=E=>y.hydrationRequested?(E(),()=>{}):(y.hydrationListeners.add(E),()=>{y.hydrationListeners.delete(E)}),w=()=>u.current.preload?.()??Promise.resolve(),C=u.current.prefetch;if(typeof C=="function"){const E=Promise.resolve().then(()=>C({element:m.current,signal:y.abortController.signal,preload:w,waitFor:L=>mK(L,{element:m.current,signal:y.abortController.signal,onHydrate:S})})).then(()=>{});y.promise=E,E.catch(L=>{y.abortController.signal.aborted||d(L)});return}if(!u.current.preload)return;const T=()=>{v.current||(v.current=!0,w())};y.cleanup=Za(C._s?.({element:m.current,prefetch:T}))},[s,u]),Gb(()=>{const y=f.current;if(!g.current||s._t==="never"||y.resolved)return;const S=[];let w=()=>{},C=!1;const T=y.resolve,E=()=>{C||(C=!0,y.resolve===j&&(y.resolve=T),w(),S.forEach(q=>q()))},L=q=>{if(q){if(C||y.resolved){q();return}S.push(q)}},j=()=>{const q=b.current;if(q.hydrationRequested||(q.hydrationRequested=!0,q.hydrationListeners.forEach(X=>X()),q.hydrationListeners.clear()),!q.promise){T();return}q.hydrationResolvePending||(q.hydrationResolvePending=!0,q.promise.then(()=>T(),X=>{q.abortController.signal.aborted||d(X)}))};y.resolve=j,w=fK(y,E);const ue={element:m.current,gate:y};return L(Za(s._s?.(ue))),s._t!=="interaction"&&L(Za(m.current?_K(m.current,ue):void 0)),E},[s,u]),{gate:f.current,markerRef:I,markerElementRef:m,hydrateStrategy:s,markerHydrateType:c,prefetchError:l,shouldPreserveServerHTML:h.current}}function EK(e){if(e.gate.resolved)return e.children;if(!Ai)throw e.gate.promise;return Ai(e.gate.promise),e.children}function TK(e){const{id:t,onHydrated:r,onStrategyHydrated:n}=e,a=V(!1);return U(()=>{a.current||(a.current=!0,r?.(),n?.(t))},[t,r,n]),e.children}function IK(e){const{gate:t,hydrateStrategy:r,markerHydrateType:n,markerElementRef:a,markerRef:o,prefetchError:i,shouldPreserveServerHTML:s}=xK(e);if(i)throw i;const c=s?(()=>{const d=vK(t.id);return d?p("div",{style:{display:"contents"},dangerouslySetInnerHTML:{__html:d}}):null})():e.fallback??null,l=n===rb?void 0:r._a?.();return r._t==="never"&&!s?p("div",{ref:o,[Ir]:t.id,[Gr]:n,...l,children:e.fallback??null}):p("div",{ref:o,[Ir]:t.id,[Gr]:n,...l,children:p(fa,{fallback:c,children:p(EK,{gate:t,children:p(TK,{id:t.id,onHydrated:e.onHydrated,onStrategyHydrated:d=>{a.current?.removeAttribute(Gr),r._o?.(d)},children:e.children})})})})}function EJ(e={}){return kK(lK(e),IK)}function CK(e){const{g:t,o:r}=e;if(!t.r){if(!Ai)throw t.p;Ai(t.p)}return U(()=>{r?.()},[r]),e.children}function RK(e){const t=this,r=e.prefetch,n=e.p,a=V(null),[o]=H(()=>{let i;const s={p:new Promise(c=>{i=c}),r:!1,s:()=>{s.r=!0,i()}};return s});return U(()=>{if(!(!n||typeof r=="function"))return r?._s?.({element:a.current,prefetch:n})},[r,n]),U(()=>{if(!o.r)return t._s?.({element:a.current,gate:o})},[o,t]),p("div",{ref:a,children:p(fa,{fallback:e.fallback,children:p(CK,{g:o,o:e.onHydrated,children:e.children})})})}function TJ(e){const t=e?.rootMargin??"600px",r=e?.threshold??0;return{_s:({element:n,gate:a,prefetch:o})=>{const i=o||a.s;if(!n){i();return}const s=new IntersectionObserver(c=>{c[0].isIntersecting&&(s.disconnect(),i())},{rootMargin:t,threshold:r});return s.observe(n),()=>s.disconnect()},_h:RK}}export{hU as $,Ht as $a,bT as $i,XY as $n,kY as $r,qm as $t,cj as A,$r as Aa,Vu as Ai,ls as An,Og as Ao,Ju as Ar,HH as At,i0 as B,Tu as Ba,oY as Bi,iF as Bn,Y$ as Br,ft as Bt,Dj as C,gt as Ca,wC as Ci,oz as Cn,MK as Co,MP as Cr,KH as Ct,Ej as D,D2 as Da,c1 as Di,vX as Dn,Lg as Do,SP as Dr,Uy as Dt,Ij as E,je as Ea,s1 as Ei,JF as En,Ag as Eo,xP as Er,ZH as Et,HU as F,Ru as Fa,AT as Fi,jF as Fn,co as Fr,e0 as Ft,RU as G,F8 as Ga,ET as Gi,AL as Gn,RY as Gr,fs as Gt,mJ as H,Eu as Ha,_v as Hi,lX as Hn,B$ as Hr,ho as Ht,FU as I,k as Ia,dY as Ii,OF as In,mP as Ir,PX as It,xU as J,x8 as Ja,tY as Ji,aX as Jn,o$ as Jr,Ry as Jt,fJ as K,_2 as Ka,rY as Ki,xL as Kn,u$ as Kr,wB as Kt,MU as L,VK as La,fY as Li,AF as Ln,cP as Lr,Ly as Lt,QU as M,we as Ma,Me as Mi,mX as Mn,OK as Mo,$l as Mr,RB as Mt,YU as N,UK as Na,kv as Ni,pX as Nn,Ce as No,rs as Nr,zr as Nt,Sj as O,Se as Oa,a1 as Oi,hX as On,Mg as Oo,kP as Or,BX as Ot,vJ as P,se as Pa,pY as Pi,dX as Pn,Le as Po,vP as Pr,AX as Pt,lJ as Q,d8 as Qa,yT as Qi,eX as Qn,kR as Qr,yy as Qt,NU as R,HK as Ra,uY as Ri,py as Rn,oP as Rr,yd as Rt,Fj as S,tE as Sa,Rl as Si,sz as Sn,Fg as So,BY as Sr,In as St,Rj as T,O as Ta,r1 as Ti,us as Tn,Zx as To,EP as Tr,VX as Tt,hJ as U,M8 as Ua,cY as Ui,uX as Un,PY as Ur,fo as Ut,gJ as V,rn as Va,iY as Vi,cX as Vn,AY as Vr,ps as Vt,Zy as W,z8 as Wa,lY as Wi,aF as Wn,$Y as Wr,kB as Wt,dJ as X,k8 as Xa,kT as Xi,nX as Xn,Ia as Xr,lB as Xt,pJ as Y,_8 as Ya,bv as Yi,ZY as Yn,a$ as Yr,jt as Yt,gU as Z,b8 as Za,Xi as Zi,km as Zn,PR as Zr,Oz as Zt,bJ as _,U2 as _a,SC as _i,az as _n,Dg as _o,HP as _r,iU as _t,OG as a,QK as aa,bY as ai,Ez as an,zK as ao,tX as ar,nU as at,yJ as b,GK as ba,u1 as bi,TX as bn,Wg as bo,Oc as br,XH as bt,CG as c,pT as ca,ca as ci,yz as cn,Qe as co,Bs as cr,JH as ct,kJ as d,ZK as da,vY as di,_X as dn,wr as do,qY as dr,tU as dt,eY as ea,aR as ei,vy as en,t2 as eo,YY as er,uJ as et,SJ as f,WK as fa,TC as fi,xX as fn,Xx as fo,as as fr,lU as ft,wJ as g,cE as ga,h1 as gi,Ml as gn,jr as go,GP as gr,cU as gt,_J as h,vE as ha,tm as hi,kX as hn,Vg as ho,XP as hr,jy as ht,zG as i,hT as ia,S1 as ii,$X as in,Be as io,KY as ir,qy as it,nj as j,re as ja,OT as ji,fX as jn,z as jo,yP as jr,zy as jt,mj as k,x as ka,BT as ki,gX as kn,Ng as ko,_P as kr,Lt as kt,xG as l,gT as la,gY as li,mz as ln,he as lo,WY as lr,rU as lt,hG as m,YK as ma,b1 as mi,IX as mn,Ug as mo,tA as mr,uU as mt,EJ as n,Ms as na,wY as ni,RX as nn,qr as no,rX as nr,Ed as nt,LG as o,mT as oa,yY as oi,CX as on,xa as oo,O1 as or,QH as ot,vG as p,KK as pa,y1 as pi,SX as pn,Bg as po,rA as pr,oU as pt,IU as q,p2 as qa,yv as qi,M1 as qn,CY as qr,vd as qt,HG as r,vT as ra,T1 as ri,Tz as rn,gu as ro,JY as rr,dU as rt,PG as s,fT as sa,sa as si,xz as sn,Rs as so,hL as sr,aU as st,TJ as t,vv as ta,_Y as ti,Iz as tn,Tf as to,QY as tr,Gy as tt,xJ as u,er as ua,hY as ui,bX as un,Zg as uo,GY as ur,eU as ut,Uj as v,Ns as va,m1 as vi,iz as vn,Cr as vo,jY as vr,sU as vt,Aj as w,L2 as wa,d1 as wi,wX as wn,Pg as wo,$P as wr,Sd as wt,Bj as x,qK as xa,p1 as xi,yX as xn,qn as xo,FP as xr,xd as xt,jj as y,jK as ya,f1 as yi,EX as yn,cr as yo,UY as yr,YH as yt,OU as z,BK as za,TT as zi,pF as zn,tP as zr,Bo as zt};