PageSourceSearch

https://www.tripoint.com/assets/index-j-tDVZEb.js

js tripoint.com collected 2026-10-08 08:11:49 UTC 195,702 bytes, 340 lines download raw bytes

1var Pi=Object.defineProperty;var Mi=(e,r,t)=>r in e?Pi(e,r,{enumerable:!0,configurable:!0,writable:!0,value:t}):e[r]=t;var Ve=(e,r,t)=>Mi(e,typeof r!="symbol"?r+"":r,t);import{m as Li,B as mt,C as Ie,D as Ai,F as ji,G as On,H as Xt,I as Di,J as Ot,K as Ti,N as pt,P as Fi,A as Nt,U as Zt,Q as Ii,T as xn,V as cr,W as Ni,X as $i,Y as qi,Z as Ui,$ as Cr,a0 as kr,E as Qi,a1 as Hi,a2 as Pn,a3 as Bi,a4 as zi,a5 as Vi,a6 as Ki,a7 as Yi,a8 as Gi,R as Y,r as K,o as pe,a9 as $t,j as M,L as Ji,aa as Wi,ab as Xi,ac as Zi}from"./components-DFq93Gqd.js";var gt={};/*!
2 * cookie
3 * Copyright(c) 2012-2014 Roman Shtylman
4 * Copyright(c) 2015 Douglas Christopher Wilson
5 * MIT Licensed
6 */var Or;function es(){if(Or)return gt;Or=1,gt.parse=t,gt.serialize=n;var e=Object.prototype.toString,r=/^[\u0009\u0020-\u007e\u0080-\u00ff]+$/;function t(u,l){if(typeof u!="string")throw new TypeError("argument str must be a string");for(var c={},p=l||{},d=p.decode||i,h=0;h<u.length;){var f=u.indexOf("=",h);if(f===-1)break;var v=u.indexOf(";",h);if(v===-1)v=u.length;else if(v<f){h=u.lastIndexOf(";",f-1)+1;continue}var y=u.slice(h,f).trim();if(c[y]===void 0){var _=u.slice(f+1,v).trim();_.charCodeAt(0)===34&&(_=_.slice(1,-1)),c[y]=a(_,d)}h=v+1}return c}function n(u,l,c){var p=c||{},d=p.encode||s;if(typeof d!="function")throw new TypeError("option encode is invalid");if(!r.test(u))throw new TypeError("argument name is invalid");var h=d(l);if(h&&!r.test(h))throw new TypeError("argument val is invalid");var f=u+"="+h;if(p.maxAge!=null){var v=p.maxAge-0;if(isNaN(v)||!isFinite(v))throw new TypeError("option maxAge is invalid");f+="; Max-Age="+Math.floor(v)}if(p.domain){if(!r.test(p.domain))throw new TypeError("option domain is invalid");f+="; Domain="+p.domain}if(p.path){if(!r.test(p.path))throw new TypeError("option path is invalid");f+="; Path="+p.path}if(p.expires){var y=p.expires;if(!o(y)||isNaN(y.valueOf()))throw new TypeError("option expires is invali
6d");f+="; Expires="+y.toUTCString()}if(p.httpOnly&&(f+="; HttpOnly"),p.secure&&(f+="; Secure"),p.partitioned&&(f+="; Partitioned"),p.priority){var _=typeof p.priority=="string"?p.priority.toLowerCase():p.priority;switch(_){case"low":f+="; Priority=Low";break;case"medium":f+="; Priority=Medium";break;case"high":f+="; Priority=High";break;default:throw new TypeError("option priority is invalid")}}if(p.sameSite){var m=typeof p.sameSite=="string"?p.sameSite.toLowerCase():p.sameSite;switch(m){case!0:f+="; SameSite=Strict";break;case"lax":f+="; SameSite=Lax";break;case"strict":f+="; SameSite=Strict";break;case"none":f+="; SameSite=None";break;default:throw new TypeError("option sameSite is invalid")}}return f}function i(u){return u.indexOf("%")!==-1?decodeURIComponent(u):u}function s(u){return encodeURIComponent(u)}function o(u){return e.call(u)==="[object Date]"||u instanceof Date}function a(u,l){try{return l(u)}catch{return u}}return gt}var xr=es();/**
7 * @remix-run/server-runtime v2.16.2
8 *
9 * Copyright (c) Remix Software Inc.
10 *
11 * This source code is licensed under the MIT license found in the
12 * LICENSE.md file in the root directory of this source tree.
13 *
14 * @license MIT
15 */const Pr={};function Mn(e,r){!e&&!Pr[r]&&(Pr[r]=!0,console.warn(r))}/**
16 * @remix-run/server-runtime v2.16.2
17 *
18 * Copyright (c) Remix Software Inc.
19 *
20 * This source code is licensed under the MIT license found in the
21 * LICENSE.md file in the root directory of this source tree.
22 *
23 * @license MIT
24 */const ts=({sign:e,unsign:r})=>(t,n={})=>{let{secrets:i=[],...s}={path:"/",sameSite:"lax",...n};return os(t,s.expires),{get name(){return t},get isSigned(){return i.length>0},get expires(){return typeof s.maxAge<"u"?new Date(Date.now()+s.maxAge*1e3):s.expires},async parse(o,a){if(!o)return null;let u=xr.parse(o,{...s,...a});return t in u?u[t]===""?"":await ns(r,u[t],i):null},async serialize(o,a){return xr.serialize(t,o===""?"":await rs(e,o,i),{...s,...a})}}},dr=e=>e!=null&&typeof e.name=="string"&&typeof e.isSigned=="boolean"&&typeof e.parse=="function"&&typeof e.serialize=="function";async function rs(e,r,t){let n=is(r);return t.length>0&&(n=await e(n,t[0])),n}async function ns(e,r,t){if(t.length>0){for(let n of t){let i=await e(r,n);if(i!==!1)return Mr(i)}return null}return Mr(r)}function is(e){return btoa(as(encodeURIComponent(JSON.stringify(e))))}function Mr(e){try{return JSON.parse(decodeURIComponent(ss(atob(e))))}catch{return{}}}function ss(e){let r=e.toString(),t="",n=0,i,s;for(;n<r.length;)i=r.charAt(n++),/[\w*+\-./@]/.exec(i)?t+=i:(s=i.charCodeAt(0),s<256?t+="%"+Lr(s,2):t+="%u"+Lr(s,4).toUpperCase());return t}function Lr(e,r){let t=e.toString(16);for(;t.length<r;)t="0"+t;return t}function as(e){let r=e.toString(),t="",n=0,i,s;for(;n<r.length;){if(i=r.charAt(n++),i==="%"){if(r.charAt(n)==="u"){if(s=r.slice(n+1,n+5),/^[\da-f]{4}$/i.exec(s)){t+=String.fromCharCode(parseInt(s,16)),n+=5;continue}}else if(s=r.slice(n,n+2),/^[\da-f]{2}$/i.exec(s)){t+=String.fromCharCode(parseInt(s,16)),n+=2;continue}}t+=i}return t}function os(e,r){Mn(!r,`The "${e}" cookie has an "expires" property set. This will cause the expires value to not be updated when the session is committed. Instead, you should set the expires value when serializing the cookie. You can use \`commitSession(session, { expires })\` if using a session storage object, or \`cookie.serialize("value", { expires })\` if you're using the cookie directly.`)}function qt(e){const r=unescape(encodeURIComponent(e));return Uint8Array.from(r,(t,n)=>r.charCodeAt(n))}function us(e){const r=String.fromCharCode.apply(null,e);return decodeURIComponent(escape(r))}function xt(...e){const r=new Uint8Array(e.reduce((n,i)=>n+i.length,0));let t=0;for(const n of e)r.set(n,t),t+=n.length;return r}function ls(e,r){if(e.length!==r.length)return!1;for(let t=0;t<e.length;t++)if(e[t]!==r[t])return!1;return!0}function Ar(e){return e instanceof Uint8Array?r=>e[r]:e}function Yt(e,r,t,n,i){const s=Ar(e),o=Ar(t);for(let a=0;a<i;++a)if(s(r+a)!==o(n+a))return!1;return!0}function cs(e){const r=new Array(256).fill(e.length);if(e.length>1)for(let t=0;t<e.length-1;t++)r[e[t]]=e.length-1-t;return r}const Me=Symbol("Match");
24class fr{constructor(r){this._lookbehind=new Uint8Array,typeof r=="string"?this._needle=r=qt(r):this._needle=r,this._lastChar=r[r.length-1],this._occ=cs(r)}feed(r){let t=0,n;const i=[];for(;t!==r.length;)[t,...n]=this._feed(r,t),i.push(...n);return i}end(){const r=this._lookbehind;return this._lookbehind=new Uint8Array,r}_feed(r,t){const n=[];let i=-this._lookbehind.length;if(i<0){for(;i<0&&i<=r.length-this._needle.length;){const s=this._charAt(r,i+this._needle.length-1);if(s===this._lastChar&&this._memcmp(r,i,this._needle.length-1))return i>-this._lookbehind.length&&n.push(this._lookbehind.slice(0,this._lookbehind.length+i)),n.push(Me),this._lookbehind=new Uint8Array,[i+this._needle.length,...n];i+=this._occ[s]}if(i<0)for(;i<0&&!this._memcmp(r,i,r.length-i);)i++;if(i>=0)n.push(this._lookbehind),this._lookbehind=new Uint8Array;else{const s=this._lookbehind.length+i;return s>0&&(n.push(this._lookbehind.slice(0,s)),this._lookbehind=this._lookbehind.slice(s)),this._lookbehind=Uint8Array.from(new Array(this._lookbehind.length+r.length),(o,a)=>this._charAt(r,a-this._lookbehind.length)),[r.length,...n]}}for(i+=t;i<=r.length-this._needle.length;){const s=r[i+this._needle.length-1];if(s===this._lastChar&&r[i]===this._needle[0]&&Yt(this._needle,0,r,i,this._needle.length-1))return i>t&&n.push(r.slice(t,i)),n.push(Me),[i+this._needle.length,...n];i+=this._occ[s]}if(i<r.length){for(;i<r.length&&(r[i]!==this._needle[0]||!Yt(r,i,this._needle,0,r.length-i));)++i;i<r.length&&(this._lookbehind=r.slice(i))}return i>0&&n.push(r.slice(t,i<r.length?i:r.length)),[r.length,...n]}_charAt(r,t){return t<0?this._lookbehind[this._lookbehind.length+t]:r[t]}_memcmp(r,t,n){return Yt(this._charAt.bind(this,r),t,this._needle,0,n)}}class ds{constructor(r,t){this._readableStream=t,this._search=new fr(r)}async*[Symbol.asyncIterator](){const r=this._readableStream.getReader();try{for(;;){const n=await r.read();if(n.done)break;yield*this._search.feed(n.value)}const t=this._search.end();t.length&&(yield t)}finally{r.releaseLock()}}}const fs=Function.prototype.apply.bind(xt,void 0),Ln=qt("--"),ct=qt(`\r
25`);function hs(e){const r=e.split(";").map(n=>n.trim());if(r.shift()!=="form-data")throw new Error('malformed content-disposition header: missing "form-data" in `'+JSON.stringify(r)+"`");const t={};for(const n of r){const i=n.split("=",2);if(i.length!==2)throw new Error("malformed content-disposition header: key-value pair not found - "+n+" in `"+e+"`");const[s,o]=i;if(o[0]==='"'&&o[o.length-1]==='"')t[s]=o.slice(1,-1).replace(/\\"/g,'"');else if(o[0]!=='"'&&o[o.length-1]!=='"')t[s]=o;else if(o[0]==='"'&&o[o.length-1]!=='"'||o[0]!=='"'&&o[o.length-1]==='"')throw new Error("malformed content-disposition header: mismatched quotations in `"+e+"`")}if(!t.name)throw new Error("malformed content-disposition header: missing field name in `"+e+"`");return t}function ps(e){const r=[];let t=!1,n;for(;typeof(n=e.shift())<"u";){const i=n.indexOf(":");if(i===-1)throw new Error("malformed multipart-form header: missing colon");const s=n.slice(0,i).trim().toLowerCase(),o=n.slice(i+1).trim();switch(s){case"content-disposition":t=!0,r.push(...Object.entries(hs(o)));break;case"content-type":r.push(["contentType",o])}}if(!t)throw new Error("malformed multipart-form header: missing content-disposition");return Object.fromEntries(r)}async function vs(e,r){let t=!0,n=!1;const i=[[]],s=new fr(ct);for(;;){const o=await e.next();if(o.done)throw new Error("malformed multipart-form data: unexpected end of stream");if(t&&o.value!==Me&&ls(o.value.slice(0,2),Ln))return[void 0,new Uint8Array];let a;if(o.value!==Me)a=o.value;else if(!n)a=r;else throw new Error("malformed multipart-form data: unexpected boundary");if(!a.length)continue;t&&(t=!1);const u=s.feed(a);for(const[l,c]of u.entries()){const p=c===Me;if(!(!p&&!c.length)){if(n&&p)return u.push(s.end()),[i.filter(d=>d.length).map(fs).map(us),xt(...u.slice(l+1).map(d=>d===Me?ct:d))];(n=p)?i.push([]):i[i.length-1].push(c)}}}}async function*ms(e,r){const t=xt(Ln,qt(r)),n=new ds(t,e)[Symbol.asyncIterator]();for(;;){const s=await n.next();if(s.done)return;if(s.value===Me)break}const i=new fr(ct);for(;;){let l=function(h){const f=[];for(const v of i.feed(h))u&&f.push(ct),(u=v===Me)||f.push(v);return xt(...f)};const[s,o]=await vs(n,t);if(!s)return;async function a(){const h=await n.next();if(h.done)throw new Error("malformed multipart-form data: unexpected end of stream");return h}
25let u=!1,c=!1;async function p(){const h=await a();let f;if(h.value!==Me)f=h.value;else if(!u)f=ct;else return c=!0,{value:i.end()};return{value:l(f)}}const d=[{value:l(o)}];for(yield{...ps(s),data:{[Symbol.asyncIterator](){return this},async next(){for(;;){const h=d.shift();if(!h)break;if(h.value.length>0)return h}for(;;){if(c)return{done:c,value:void 0};const h=await p();if(h.value.length>0)return h}}}};!c;)d.push(await p())}}/**
26 * @remix-run/server-runtime v2.16.2
27 *
28 * Copyright (c) Remix Software Inc.
29 *
30 * This source code is licensed under the MIT license found in the
31 * LICENSE.md file in the root directory of this source tree.
32 *
33 * @license MIT
34 */function ys(...e){return async r=>{for(let t of e){let n=await t(r);if(typeof n<"u"&&n!==null)return n}}}async function gs(e,r){let t=e.headers.get("Content-Type")||"",[n,i]=t.split(/\s*;\s*boundary=/);if(!e.body||!i||n!=="multipart/form-data")throw new TypeError("Could not parse content as FormData.");let s=new FormData,o=ms(e.body,i);for await(let a of o){if(a.done)break;typeof a.filename=="string"&&(a.filename=a.filename.split(/[/\\]/).pop());let u=await r(a);typeof u<"u"&&u!==null&&s.append(a.name,u)}return s}/**
35 * @remix-run/server-runtime v2.16.2
36 *
37 * Copyright (c) Remix Software Inc.
38 *
39 * This source code is licensed under the MIT license found in the
40 * LICENSE.md file in the root directory of this source tree.
41 *
42 * @license MIT
43 */function ws(e){return Object.keys(e).reduce((r,t)=>(r[t]=e[t].module,r),{})}/**
44 * @remix-run/server-runtime v2.16.2
45 *
46 * Copyright (c) Remix Software Inc.
47 *
48 * This source code is licensed under the MIT license found in the
49 * LICENSE.md file in the root directory of this source tree.
50 *
51 * @license MIT
52 */function jr(e,r){if(e===!1||e===null||typeof e>"u")throw console.error("The following error is a bug in Remix; please open an issue! https://github.com/remix-run/remix/issues/new"),new Error(r)}/**
53 * @remix-run/server-runtime v2.16.2
54 *
55 * Copyright (c) Remix Software Inc.
56 *
57 * This source code is licensed under the MIT license found in the
58 * LICENSE.md file in the root directory of this source tree.
59 *
60 * @license MIT
61 */function er(e,r,t){let n=Li(e,r,t);return n?n.map(i=>({params:i.params,pathname:i.pathname,route:i.route})):null}/**
62 * @remix-run/server-runtime v2.16.2
63 *
64 * Copyright (c) Remix Software Inc.
65 *
66 * This source code is licensed under the MIT license found in the
67 * LICENSE.md file in the root directory of this source tree.
68 *
69 * @license MIT
70 */async function _s({loadContext:e,action:r,params:t,request:n,routeId:i,singleFetch:s}){let o=await r({request:s?jn(Pt(n)):An(Pt(n)),context:e,params:t});if(o===void 0)throw new Error(`You defined an action for route "${i}" but didn't return anything from your \`action\` function. Please return a value or \`null\`.`);return s||Ie(o)?o:mt(o)}async function bs({loadContext:e,loader:r,params:t,request:n,routeId:i,singleFetch:s}){let o=await r({request:s?jn(Pt(n)):An(Pt(n)),context:e,params:t});if(o===void 0)throw new Error(`You defined a loader for route "${i}" but didn't return anything from your \`loader\` function. Please return a value or \`null\`.`);return Ai(o)?o.init&&ji(o.init.status||200)?On(new Headers(o.init.headers).get("Location"),o.init):o:s||Ie(o)?o:mt(o)}function Pt(e){let r=new URL(e.url),t=r.searchParams.getAll("index");r.searchParams.delete("index");let n=[];for(let s of t)s&&n.push(s);for(let s of n)r.searchParams.append("index",s);let i={method:e.method,body:e.body,headers:e.headers,signal:e.signal};return i.body&&(i.duplex="half"),new Request(r.href,i)}function An(e){let r=new URL(e.url);r.searchParams.delete("_data");let t={method:e.method,body:e.body,headers:e.headers,signal:e.signal};return t.body&&(t.duplex="half"),new Request(r.href,t)}function jn(e){let r=new URL(e.url);r.searchParams.delete("_routes");let t={method:e.method,body:e.body,headers:e.headers,signal:e.signal};return t.body&&(t.duplex="half"),new Request(r.href,t)}/**
71 * @remix-run/server-runtime v2.16.2
72 *
73 * Copyright (c) Remix Software Inc.
74 *
75 * This source code is licensed under the MIT license found in the
76 * LICENSE.md file in the root directory of this source tree.
77 *
78 * @license MIT
79 */function Dn(e){let r={};return Object.values(e).forEach(t=>{let n=t.parentId||"";r[n]||(r[n]=[]),r[n].push(t)}),r}function Tn(e,r="",t=Dn(e)){return(t[r]||[]).map(n=>
79({...n,children:Tn(e,n.id,t)}))}function Fn(e,r,t="",n=Dn(e)){return(n[t]||[]).map(i=>{let s={hasErrorBoundary:i.id==="root"||i.module.ErrorBoundary!=null,id:i.id,path:i.path,loader:i.module.loader?(o,a)=>bs({request:o.request,params:o.params,loadContext:o.context,loader:i.module.loader,routeId:i.id,singleFetch:r.v3_singleFetch===!0}):void 0,action:i.module.action?(o,a)=>_s({request:o.request,params:o.params,loadContext:o.context,action:i.module.action,routeId:i.id,singleFetch:r.v3_singleFetch===!0}):void 0,handle:i.module.handle};return i.index?{index:!0,...s}:{caseSensitive:i.caseSensitive,children:Fn(e,r,i.id,n),...s}})}/**
80 * @remix-run/server-runtime v2.16.2
81 *
82 * Copyright (c) Remix Software Inc.
83 *
84 * This source code is licensed under the MIT license found in the
85 * LICENSE.md file in the root directory of this source tree.
86 *
87 * @license MIT
88 */const Ss={"&":"\\u0026",">":"\\u003e","<":"\\u003c","\u2028":"\\u2028","\u2029":"\\u2029"},Rs=/[&><\u2028\u2029]/g;function Es(e){return e.replace(Rs,r=>Ss[r])}/**
89 * @remix-run/server-runtime v2.16.2
90 *
91 * Copyright (c) Remix Software Inc.
92 *
93 * This source code is licensed under the MIT license found in the
94 * LICENSE.md file in the root directory of this source tree.
95 *
96 * @license MIT
97 */function Dr(e){return Es(JSON.stringify(e))}var Cs={};/**
98 * @remix-run/server-runtime v2.16.2
99 *
100 * Copyright (c) Remix Software Inc.
101 *
102 * This source code is licensed under the MIT license found in the
103 * LICENSE.md file in the root directory of this source tree.
104 *
105 * @license MIT
106 */async function ks(e,r){if(r??(r=Cs.REMIX_DEV_ORIGIN),!r)throw Error("Dev server origin not set");let t=new URL(r);t.pathname="ping";let n=await fetch(t.href,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({buildHash:e.assets.version})}).catch(i=>{throw console.error(`Could not reach Remix dev server at ${t}`),i});if(!n.ok)throw console.error(`Could not reach Remix dev server at ${t} (${n.status})`),Error(await n.text())}function Os(e){console.log(`[REMIX DEV] ${e.assets.version} ready`)}const In="__remix_devServerHooks";function xs(e){globalThis[In]=e}function Tr(){return globalThis[In]}/**
107 * @remix-run/server-runtime v2.16.2
108 *
109 * Copyright (c) Remix Software Inc.
110 *
111 * This source code is licensed under the MIT license found in the
112 * LICENSE.md file in the root directory of this source tree.
113 *
114 * @license MIT
115 */function Ps(e,r){return`⚠️ REMIX FUTURE CHANGE: Externally-accessed resource routes will no longer be able to return raw JavaScript objects or \`null\` in React Router v7 when Single Fetch becomes the default. You can prepare for this change at your convenience by wrapping the data returned from your \`${e}\` function in the \`${r}\` route with \`json()\`.  For instructions on making this change, see https://remix.run/docs/en/v2.13.1/guides/single-fetch#resource-routes`}/**
116 * @remix-run/server-runtime v2.16.2
117 *
118 * Copyright (c) Remix Software Inc.
119 *
120 * This source code is licensed under the MIT license found in the
121 * LICENSE.md file in the root directory of this source tree.
122 *
123 * @license MIT
124 */const Nn=new Set([100,101,204,205,304]);function Fr(e,r){var t,n;let i=Tn(e.routes),s=Fn(e.routes,e.future),o=Bi(r)?r:pt.Production,a=Fi(s,{basename:e.basename,future:{v7_relativeSplatPath:((t=e.future)===null||t===void 0?void 0:t.v3_relativeSplatPath)===!0,v7_throwAbortReason:((n=e.future)===null||n===void 0?void 0:n.v3_throwAbortReason)===!0}}),u=e.entry.module.handleError||((l,{request:c})=>{o!==pt.Test&&!c.signal.aborted&&console.error(Nt(l)&&l.error?l.error:l)});return{routes:i,dataRoutes:s,serverMode:o,staticHandler:a,errorHandler:u}}const Ms=(e,r)=>{let t,n,i,s,o;return async function(u,l={}){if(t=typeof e=="function"?await e():e,r??(r=t.mode),typeof e=="function"){let m=Fr(t,r);n=m.routes,i=m.serverMode,s=m.staticHandler,o=m.errorHandler}else if(!n||!i||!s||!o){let m=Fr(t,r);n=m.routes,i=m.serverMode,s=m.staticHandler,o=m.errorHandler}let c=new URL(u.url),p={},d=m=>{if(r===pt.Development){var w,b;(w=Tr())===null||w===void 0||(b=w.processRequestError)===null||b===void 0||b.call(w,m)}o(m,{context:l,params:p,request:u})},h=`${t.basename??"/"}/__manifest`.replace(/\/+/g,"/");if(c.pathname===h)try{return await Ls(t,n,c)}catch(m){return d(m),new Response("Unknown Server Error",{status:500})}let f=er(n,c.pathname,t.basename);f&&f.length>0&&Object.assign(p,f[0].params);let v;if(c.searchParams.has("_data")){t.future.v3_singleFetch&&d(new Error("Warning: Single fetch-enabled apps should not be making ?_data requests, this is likely to break in the future"));let m=c.searchParams.get("_data");v=await As(i,t,s,m,u,l,d),t.entry.module.handleDataRequest&&(v=await t.entry.module.handleDataRequest(v,{context:l,params:p,request:u}),Xt(v)&&(v=Un(v,t.basename)))}else if(t.future.v3_singleFetch&&c.pathname.endsWith(".data")){let m=new URL(u.url);m.pathname=m.pathname.replace(/\.data$/,"").replace(/^\/_root$/,"/");let w=er(n,m.pathname,t.basename);if(v=await js(i,t,s,u,m,l,d),t.entry.module.handleDataRequest&&(v=await t.entry.module.handleDataRequest(v,{context:l,params:w?w[0].params:{},request:u}),Xt(v))){let b=Di(v.status,v.headers,t.basename);u.method==="GET"&&(b={[Pn]:b});let C=new Headers(v.headers);return C.set("Content-Type","text/x-script"),new Response(Ot(b,u.signal,t.entry.module.streamTimeout,i),{status:Ti,headers:C})}}else if(f&&f[f.length-1].route.module.default==null&&f[f.length-1].route.module.ErrorBoundary==null)v=await Ts(i,t,s,f.slice(-1)[0].route.id,u,l,d);else{var y,_;let m=r===pt.Development?await((y=Tr())===null||y===void 0||(_=y.getCriticalCss)===null||_===void 0?void 0:_.call(y,t,c.pathname)):void 0;v=await Ds(i,t,s,u,l,d,m)}return u.method==="HEAD"?new Response(null,{headers:v.headers,status:v.status,statusText:v.statusText}):v}};async function Ls(e,r,t){if(e.assets.version!==t.searchParams.get("version"))return new Response(null,{status:204,headers:{"X-Remix-Reload-Document":"true"}});let n={};if(t.searchParams.has("p")){let i=new Set;t.searchParams.getAll("p").forEach(s=>{s.startsWith("/")||(s=`/${s}`);let o=s.split("/").slice(1);o.forEach((a,u)=>{let l=o.slice(0,u+1).join("/");i.add(`/${l}`)})});for(let s of i){let o=er(r,s,e.basename);if(o)for(let a of o){let u=a.route.id;n[u]=e.assets.routes[u]}}return mt(n,{headers:{"Cache-Control":"public, max-age=31536000, immutable"}})}return new Response("Invalid Request",{status:400})}async function As(e,r,t,n,i,s,o){try{let a=await t.queryRoute(i,{routeId:n,requestContext:s});if(Xt(a))return Un(a,r.basename);if(Zt in a){let u=a[Zt],l=Ii(u,i.signal,e),c=u.init||{},p=new Headers(c.headers);return p.set("Content-Type","text/remix-deferred"),p.set("X-Remix-Response","yes"),c.headers=p,new Response(l,c)}return a=tr(a,"X-Remix-Response","yes"),a}catch(a){if(Ie(a))return tr(a,"X-Remix-Catch","yes");if(Nt(a))return o(a),$n(a,e);let u=a instanceof Error||a instanceof DOMException?a:new Error("Unexpected Server Error");return o(u),xn(cr(u,e),{status:500,headers:{"X-Remix-Error":"yes"}})}}async function js(e,r,t,n,i,s,o){let{result:a,headers:u,status:l}=n.method!=="GET"?await $i(r,e,t,n,i,s,o):await qi(r,e,t,n,i,s,o),c=new Headers(u);return c.set("X-Remix-Response","yes"),Nn.has(l)?new Response(null,{status:l,headers:c}):(c.set("Content-Type","text/x-script"),new Response(Ot(a,n.signal,r.entry.module.streamTimeout,e),{status:l||200,headers:c}))}async function Ds(e,r,t,n,i,s,o){let a;try{a=await t.query(n,{requestContext:i})}catch(d){return s(d),new Response(null,{status:500})}if(Ie(a))return a;let u=Ui(r,a);if(Nn.has(a.statusCode))return new Response(null,{status:a.statusCode,headers:u});
124a.errors&&(Object.values(a.errors).forEach(d=>{(!Nt(d)||d.error)&&s(d)}),a.errors=Cr(a.errors,e));let l={loaderData:a.loaderData,actionData:a.actionData,errors:kr(a.errors,e)},c={manifest:r.assets,routeModules:ws(r.routes),staticHandlerContext:a,criticalCss:o,serverHandoffString:Dr({basename:r.basename,criticalCss:o,future:r.future,isSpaMode:r.isSpaMode,...r.future.v3_singleFetch?null:{state:l}}),...r.future.v3_singleFetch?{serverHandoffStream:Ot(l,n.signal,r.entry.module.streamTimeout,e),renderMeta:{}}:null,future:r.future,isSpaMode:r.isSpaMode,serializeError:d=>cr(d,e)},p=r.entry.module.default;try{return await p(n,a.statusCode,u,c,i)}catch(d){s(d);let h=d;if(Ie(d))try{let v=await Fs(d);h=new Qi(d.status,d.statusText,v)}catch{}a=Hi(t.dataRoutes,a,h),a.errors&&(a.errors=Cr(a.errors,e));let f={loaderData:a.loaderData,actionData:a.actionData,errors:kr(a.errors,e)};c={...c,staticHandlerContext:a,serverHandoffString:Dr({basename:r.basename,future:r.future,isSpaMode:r.isSpaMode,...r.future.v3_singleFetch?null:{state:f}}),...r.future.v3_singleFetch?{serverHandoffStream:Ot(f,n.signal,r.entry.module.streamTimeout,e),renderMeta:{}}:null};try{return await p(n,a.statusCode,u,c,i)}catch(v){return s(v),qn(v,e)}}}async function Ts(e,r,t,n,i,s,o){try{let a=await t.queryRoute(i,{routeId:n,requestContext:s});return typeof a=="object"&&a!==null&&jr(!(Zt in a),`You cannot return a \`defer()\` response from a Resource Route.  Did you forget to export a default UI component from the "${n}" route?`),r.future.v3_singleFetch&&!Ie(a)&&(console.warn(Ps(i.method==="GET"?"loader":"action",n)),a=mt(a)),jr(Ie(a),"Expected a Response to be returned from queryRoute"),a}catch(a){return Ie(a)?tr(a,"X-Remix-Catch","yes"):Nt(a)?(a&&o(a),$n(a,e)):(o(a),qn(a,e))}}function $n(e,r){return xn(cr(e.error||new Error("Unexpected Server Error"),r),{status:e.status,statusText:e.statusText,headers:{"X-Remix-Error":"yes"}})}function qn(e,r){let t="Unexpected Server Error";return r!==pt.Production&&(t+=`
125
126${String(e)}`),new Response(t,{status:500,headers:{"Content-Type":"text/plain"}})}function Fs(e){let r=e.headers.get("Content-Type");return r&&/\bapplication\/json\b/.test(r)?e.body==null?null:e.json():e.text()}function Un(e,r){let t=new Headers(e.headers),n=t.get("Location");return t.set("X-Remix-Redirect",r&&Ni(n,r)||n),t.set("X-Remix-Status",String(e.status)),t.delete("Location"),e.headers.get("Set-Cookie")!==null&&t.set("X-Remix-Revalidate","yes"),new Response(null,{status:204,headers:t})}function tr(e,r,t){let n=new Headers(e.headers);return n.set(r,t),new Response(e.body,{status:e.status,statusText:e.statusText,headers:n,duplex:e.body?"half":void 0})}/**
127 * @remix-run/server-runtime v2.16.2
128 *
129 * Copyright (c) Remix Software Inc.
130 *
131 * This source code is licensed under the MIT license found in the
132 * LICENSE.md file in the root directory of this source tree.
133 *
134 * @license MIT
135 */function Gt(e){return`__flash_${e}__`}const hr=(e={},r="")=>{let t=new Map(Object.entries(e));return{get id(){return r},get data(){return Object.fromEntries(t)},has(n){return t.has(n)||t.has(Gt(n))},get(n){if(t.has(n))return t.get(n);let i=Gt(n);if(t.has(i)){let s=t.get(i);return t.delete(i),s}},set(n,i){t.set(n,i)},flash(n,i){t.set(Gt(n),i)},unset(n){t.delete(n)}}},Is=e=>e!=null&&typeof e.id=="string"&&typeof e.data<"u"&&typeof e.has=="function"&&typeof e.get=="function"&&typeof e.set=="function"&&typeof e.flash=="function"&&typeof e.unset=="function",Ns=e=>({cookie:r,createData:t,readData:n,updateData:i,deleteData:s})=>{let o=dr(r)?r:e((r==null?void 0:r.name)||"__session",r);return Qn(o),{async getSession(a,u){let l=a&&await o.parse(a,u),c=l&&await n(l);return hr(c||{},l||"")},async commitSession(a,u){let{id:l,data:c}=a,p=(u==null?void 0:u.maxAge)!=null?new Date(Date.now()+u.maxAge*1e3):(u==null?void 0:u.expires)!=null?u.expires:o.expires;return l?await i(l,c,p):l=await t(c,p),o.serialize(l,u)},async destroySession(a,u){return await s(a.id),o.serialize("",{...u,maxAge:void 0,expires:new Date(0)})}}};function Qn(e){Mn(e.isSigned,`The "${e.name}" cookie is not signed, but session cookies should be signed to prevent tampering on the client before they are sent back to the server. See https://remix.run/utils/cookie
135s#signing-cookies for more information.`)}/**
136 * @remix-run/server-runtime v2.16.2
137 *
138 * Copyright (c) Remix Software Inc.
139 *
140 * This source code is licensed under the MIT license found in the
141 * LICENSE.md file in the root directory of this source tree.
142 *
143 * @license MIT
144 */const $s=e=>({cookie:r}={})=>{let t=dr(r)?r:e((r==null?void 0:r.name)||"__session",r);return Qn(t),{async getSession(n,i){return hr(n&&await t.parse(n,i)||{})},async commitSession(n,i){let s=await t.serialize(n.data,i);if(s.length>4096)throw new Error("Cookie length will exceed browser maximum. Length: "+s.length);return s},async destroySession(n,i){return t.serialize("",{...i,maxAge:void 0,expires:new Date(0)})}}};/**
145 * @remix-run/server-runtime v2.16.2
146 *
147 * Copyright (c) Remix Software Inc.
148 *
149 * This source code is licensed under the MIT license found in the
150 * LICENSE.md file in the root directory of this source tree.
151 *
152 * @license MIT
153 */const qs=e=>({cookie:r}={})=>{let t=new Map;return e({cookie:r,async createData(n,i){let s=Math.random().toString(36).substring(2,10);return t.set(s,{data:n,expires:i}),s},async readData(n){if(t.has(n)){let{data:i,expires:s}=t.get(n);if(!s||s>new Date)return i;s&&t.delete(n)}return null},async updateData(n,i,s){t.set(n,{data:i,expires:s})},async deleteData(n){t.delete(n)}})};/**
154 * @remix-run/server-runtime v2.16.2
155 *
156 * Copyright (c) Remix Software Inc.
157 *
158 * This source code is licensed under the MIT license found in the
159 * LICENSE.md file in the root directory of this source tree.
160 *
161 * @license MIT
162 */class Hn extends Error{constructor(r,t){super(`Field "${r}" exceeded upload size of ${t} bytes.`),this.field=r,this.maxBytes=t}}/**
163 * @remix-run/server-runtime v2.16.2
164 *
165 * Copyright (c) Remix Software Inc.
166 *
167 * This source code is licensed under the MIT license found in the
168 * LICENSE.md file in the root directory of this source tree.
169 *
170 * @license MIT
171 */function Us({filter:e,maxPartSize:r=3e6}={}){return async({filename:t,contentType:n,name:i,data:s})=>{if(e&&!await e({filename:t,contentType:n,name:i}))return;let o=0,a=[];for await(let u of s){if(o+=u.byteLength,o>r)throw new Hn(i,r);a.push(u)}return typeof t=="string"?new File(a,t,{type:n}):await new Blob(a,{type:n}).text()}}/**
172 * @remix-run/server-runtime v2.16.2
173 *
174 * Copyright (c) Remix Software Inc.
175 *
176 * This source code is licensed under the MIT license found in the
177 * LICENSE.md file in the root directory of this source tree.
178 *
179 * @license MIT
180 */const Qs=Object.freeze(Object.defineProperty({__proto__:null,MaxPartSizeExceededError:Hn,UNSAFE_SingleFetchRedirectSymbol:Pn,broadcastDevReady:ks,createCookieFactory:ts,createCookieSessionStorageFactory:$s,createMemorySessionStorageFactory:qs,createRequestHandler:Ms,createSession:hr,createSessionStorageFactory:Ns,data:zi,defer:Vi,isCookie:dr,isSession:Is,json:mt,logDevReady:Os,redirect:On,redirectDocument:Ki,replace:Yi,unstable_composeUploadHandlers:ys,unstable_createMemoryUploadHandler:Us,unstable_parseMultipartFormData:gs,unstable_setDevServerHooks:xs},Symbol.toStringTag,{value:"Module"}));function rr(e,r){return rr=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,n){return t.__proto__=n,t},rr(e,r)}function Ne(e,r){e.prototype=Object.create(r.prototype),e.prototype.constructor=e,rr(e,r)}var Be=function(){function e(){this.listeners=[]}var r=e.prototype;return r.subscribe=function(n){var i=this,s=n||function(){};return this.listeners.push(s),this.onSubscribe(),function(){i.listeners=i.listeners.filter(function(o){return o!==s}),i.onUnsubscribe()}},r.hasListeners=function(){return this.listeners.length>0},r.onSubscribe=function(){},r.onUnsubscribe=function(){},e}();function B(){return B=Object.assign?Object.assign.bind():function(e){for(var r=1;r<arguments.length;r++){var t=arguments[r];for(var n in t)({}).hasOwnProperty.call(t,n)&&(e[n]=t[n])}return e},B.apply(null,arguments)}var Mt=typeof window>"u";function ce(){}function Hs(e,r){return typeof e=="function"?e(r):e}function nr(e){return typeof e=="number"&&e>=0&&e!==1/0}function Lt(e){return Array.isArray(e)?e:[e]}function Ir(e,r){return e.filter(function(t){return r.indexOf(t)===-1})}function Bs(e,r,t){var n=e.slice(0);return n[r]=t,n}function Bn(e,r){return Math.max(e+(r||0)-Date.now(),0)}function dt(e,r,t){return et(e)?typeof r=="function"?B({},t,{queryKey:e,queryFn:r}):B({},r,{queryKey:e}):e}function zs(e,r,t){return et(e)?typeof r=="function"?B({},t,{mutationKey:e,mutationFn:r}):B({},r,{mutationKey:e}):typeof e=="function"?B({},r,{mutationFn:e}):B({},e)}function Pe(e,r,t){return et(e)?[B({},r,{queryKey:e}),t]:[e||{},r]}function Vs(e,r){return et(e)?B({},r,{mutationKey:e}):e}function Ks(e,r){if(e===!0&&r===!0||e==null&&r==null)return"all";if(e===!1&&r===!1)return"none";var t=e??!r;return t?"active":"inactive"}function Nr(e,r){var t=e.active,n=e.exact,i=e.fetching,s=e.inactive,o=e.predicate,a=e.queryKey,u=e.stale;
vendor: 32,306 bytes, line 180
180if(et(a)){if(n){if(r.queryHash!==pr(a,r.options))return!1}else if(!At(r.queryKey,a))return!1}var l=Ks(t,s);if(l==="none")return!1;if(l!=="all"){var c=r.isActive();if(l==="active"&&!c||l==="inactive"&&c)return!1}return!(typeof u=="boolean"&&r.isStale()!==u||typeof i=="boolean"&&r.isFetching()!==i||o&&!o(r))}function $r(e,r){var t=e.exact,n=e.fetching,i=e.predicate,s=e.mutationKey;if(et(s)){if(!r.options.mutationKey)return!1;if(t){if(Fe(r.options.mutationKey)!==Fe(s))return!1}else if(!At(r.options.mutationKey,s))return!1}return!(typeof n=="boolean"&&r.state.status==="loading"!==n||i&&!i(r))}function pr(e,r){var t=(r==null?void 0:r.queryKeyHashFn)||Fe;return t(e)}function Fe(e){var r=Lt(e);return Ys(r)}function Ys(e){return JSON.stringify(e,function(r,t){return ir(t)?Object.keys(t).sort().reduce(function(n,i){return n[i]=t[i],n},{}):t})}function At(e,r){return zn(Lt(e),Lt(r))}function zn(e,r){return e===r?!0:typeof e!=typeof r?!1:e&&r&&typeof e=="object"&&typeof r=="object"?!Object.keys(r).some(function(t){return!zn(e[t],r[t])}):!1}function jt(e,r){if(e===r)return e;var t=Array.isArray(e)&&Array.isArray(r);if(t||ir(e)&&ir(r)){for(var n=t?e.length:Object.keys(e).length,i=t?r:Object.keys(r),s=i.length,o=t?[]:{},a=0,u=0;u<s;u++){var l=t?u:i[u];o[l]=jt(e[l],r[l]),o[l]===e[l]&&a++}return n===s&&a===n?e:o}return r}function Gs(e,r){if(e&&!r||r&&!e)return!1;for(var t in e)if(e[t]!==r[t])return!1;return!0}function ir(e){if(!qr(e))return!1;var r=e.constructor;if(typeof r>"u")return!0;var t=r.prototype;return!(!qr(t)||!t.hasOwnProperty("isPrototypeOf"))}function qr(e){return Object.prototype.toString.call(e)==="[object Object]"}function et(e){return typeof e=="string"||Array.isArray(e)}function Js(e){return e instanceof Error}function Ws(e){return new Promise(function(r){setTimeout(r,e)})}function Ur(e){Promise.resolve().then(e).catch(function(r){return setTimeout(function(){throw r})})}function Vn(){if(typeof AbortController=="function")return new AbortController}var Xs=function(e){Ne(r,e);function r(){var n;return n=e.call(this)||this,n.setup=function(i){var s;if(!Mt&&((s=window)!=null&&s.addEventListener)){var o=function(){return i()};return window.addEventListener("visibilitychange",o,!1),window.addEventListener("focus",o,!1),function(){window.removeEventListener("visibilitychange",o),window.removeEventListener("focus",o)}}},n}var t=r.prototype;return t.onSubscribe=function(){this.cleanup||this.setEventListener(this.setup)},t.onUnsubscribe=function(){if(!this.hasListeners()){var i;(i=this.cleanup)==null||i.call(this),this.cleanup=void 0}},t.setEventListener=function(i){var s,o=this;this.setup=i,(s=this.cleanup)==null||s.call(this),this.cleanup=i(function(a){typeof a=="boolean"?o.setFocused(a):o.onFocus()})},t.setFocused=function(i){this.focused=i,i&&this.onFocus()},t.onFocus=function(){this.listeners.forEach(function(i){i()})},t.isFocused=function(){return typeof this.focused=="boolean"?this.focused:typeof document>"u"?!0:[void 0,"visible","prerender"].includes(document.visibilityState)},r}(Be),We=new Xs,Zs=function(e){Ne(r,e);function r(){var n;return n=e.call(this)||this,n.setup=function(i){var s;if(!Mt&&((s=window)!=null&&s.addEventListener)){var o=function(){return i()};return window.addEventListener("online",o,!1),window.addEventListener("offline",o,!1),function(){window.removeEventListener("online",o),window.removeEventListener("offline",o)}}},n}var t=r.prototype;return t.onSubscribe=function(){this.cleanup||this.setEventListener(this.setup)},t.onUnsubscribe=function(){if(!this.hasListeners()){var i;(i=this.cleanup)==null||i.call(this),this.cleanup=void 0}},t.setEventListener=function(i){var s,o=this;this.setup=i,(s=this.cleanup)==null||s.call(this),this.cleanup=i(function(a){typeof a=="boolean"?o.setOnline(a):o.onOnline()})},t.setOnline=function(i){this.online=i,i&&this.onOnline()},t.onOnline=function(){this.listeners.forEach(function(i){i()})},t.isOnline=function(){return typeof this.online=="boolean"?this.online:typeof navigator>"u"||typeof navigator.onLine>"u"?!0:navigator.onLine},r}(Be),ft=new Zs;function ea(e){return Math.min(1e3*Math.pow(2,e),3e4)}function Dt(e){return typeof(e==null?void 0:e.cancel)=="function"}var vr=function(r){this.revert=r==null?void 0:r.revert,this.silent=r==null?void 0:r.silent};function ht(e){return e instanceof vr}var Kn=function(r){var t=this,n=!1,i,s,o,a;this.abort=r.abort,this.cancel=function(d){return i==null?void 0:i(d)},this.cancelRetry=function(){n=!0},this.continueRetry=function(){n=!1},this.continue=function(){return s==null?void 0:s()},this.failureCount=0,this.isPaused=!1,this.isResolved=!1,this.isTransportCancelable=!1,this.promise=new Promise(function(d,h){o=d,a=h});var u=function(h){t.isResolved||(t.isResolved=!0,r.onSuccess==null||r.onSuccess(h),s==null||s(),o(h))},l=function(h){t.isResolved||(t.isResolved=!0,r.onError==null||r.onError(h),s==null||s(),a(h))},c=function(){return new Promise(function(h){s=h,t.isPaused=!0,r.onPause==null||r.onPause()}).then(function(){s=void 0,t.isPaused=!1,r.onContinue==null||r.onContinue()})},p=function d(){if(!t.isResolved){var h;try{h=r.fn()}catch(f){h=Promise.reject(f)}i=function(v){if(!t.isResolved&&(l(new vr(v)),t.abort==null||t.abort(),Dt(h)))try{h.cancel()}catch{}},t.isTransportCancelable=Dt(h),Promise.resolve(h).then(u).catch(function(f){var v,y;if(!t.isResolved){var _=(v=r.retry)!=null?v:3,m=(y=r.retryDelay)!=null?y:ea,w=typeof m=="function"?m(t.failureCount,f):m,b=_===!0||typeof _=="number"&&t.failureCount<_||typeof _=="function"&&_(t.failureCount,f);if(n||!b){l(f);return}t.failureCount++,r.onFail==null||r.onFail(t.failureCount,f),Ws(w).then(function(){if(!We.isFocused()||!ft.isOnline())return c()}).then(function(){n?l(f):d()})}})}};p()},ta=function(){function e(){this.queue=[],this.transactions=0,this.notifyFn=function(t){t()},this.batchNotifyFn=function(t){t()}}var r=e.prototype;return r.batch=function(n){var i;this.transactions++;try{i=n()}finally{this.transactions--,this.transactions||this.flush()}return i},r.schedule=function(n){var i=this;this.transactions?this.queue.push(n):Ur(function(){i.notifyFn(n)})},r.batchCalls=function(n){var i=this;return function(){for(var s=arguments.length,o=new Array(s),a=0;a<s;a++)o[a]=arguments[a];i.schedule(function(){n.apply(void 0,o)})}},r.flush=function(){var n=this,i=this.queue;this.queue=[],i.length&&Ur(function(){n.batchNotifyFn(function(){i.forEach(function(s){n.notifyFn(s)})})})},r.setNotifyFunction=function(n){this.notifyFn=n},r.setBatchNotifyFunction=function(n){this.batchNotifyFn=n},e}(),X=new ta,Yn=console;function Tt(){return Yn}function Gn(e){Yn=e}var ra=function(){function e(t){this.abortSignalConsumed=!1,this.hadObservers=!1,this.defaultOptions=t.defaultOptions,this.setOptions(t.options),this.observers=[],this.cache=t.cache,this.queryKey=t.queryKey,this.queryHash=t.queryHash,this.initialState=t.state||this.getDefaultState(this.options),this.state=this.initialState,this.meta=t.meta,this.scheduleGc()}var r=e.prototype;return r.setOptions=function(n){var i;this.options=B({},this.defaultOptions,n),this.meta=n==null?void 0:n.meta,this.cacheTime=Math.max(this.cacheTime||0,(i=this.options.cacheTime)!=null?i:5*60*1e3)},r.setDefaultOptions=function(n){this.defaultOptions=n},r.scheduleGc=function(){var n=this;this.clearGcTimeout(),nr(this.cacheTime)&&(this.gcTimeout=setTimeout(function(){n.optionalRemove()},this.cacheTime))},r.clearGcTimeout=function(){this.gcTimeout&&(clearTimeout(this.gcTimeout),this.gcTimeout=void 0)},r.optionalRemove=function(){this.observers.length||(this.state.isFetching?this.hadObservers&&this.scheduleGc():this.cache.remove(this))},r.setData=function(n,i){var s,o,a=this.state.data,u=Hs(n,a);return(s=(o=this.options).isDataEqual)!=null&&s.call(o,a,u)?u=a:this.options.structuralSharing!==!1&&(u=jt(a,u)),this.dispatch({data:u,type:"success",dataUpdatedAt:i==null?void 0:i.updatedAt}),u},r.setState=function(n,i){this.dispatch({type:"setState",state:n,setStateOptions:i})},r.cancel=function(n){var i,s=this.promise;return(i=this.retryer)==null||i.cancel(n),s?s.then(ce).catch(ce):Promise.resolve()},r.destroy=function(){this.clearGcTimeout(),this.cancel({silent:!0})},r.reset=function(){this.destroy(),this.setState(this.initialState)},r.isActive=function(){return this.observers.some(function(n){return n.options.enabled!==!1})},r.isFetching=function(){return this.state.isFetching},r.isStale=function(){return this.state.isInvalidated||!this.state.dataUpdatedAt||this.observers.some(function(n){return n.getCurrentResult().isStale})},r.isStaleByTime=function(n){return n===void 0&&(n=0),this.state.isInvalidated||!this.state.dataUpdatedAt||!Bn(this.state.dataUpdatedAt,n)},r.onFocus=function(){var n,i=this.observers.find(function(s){return s.shouldFetchOnWindowFocus()});i&&i.refetch(),(n=this.retryer)==null||n.continue()},r.onOnline=function(){var n,i=this.observers.find(function(s){return s.shouldFetchOnReconnect()});i&&i.refetch(),(n=this.retryer)==null||n.continue()},r.addObserver=function(n){this.observers.indexOf(n)===-1&&(this.observers.push(n),this.hadObservers=!0,this.clearGcTimeout(),this.cache.notify({type:"observerAdded",query:this,observer:n}))},r.removeObserver=function(n){this.observers.indexOf(n)!==-1&&(this.observers=this.observers.filter(function(i){return i!==n}),this.observers.length||(this.retryer&&(this.retryer.isTransportCancelable||this.abortSignalConsumed?this.retryer.cancel({revert:!0}):this.retryer.cancelRetry()),this.cacheTime?this.scheduleGc():this.cache.remove(this)),this.cache.notify({type:"observerRemoved",query:this,observer:n}))},r.getObserversCount=function(){return this.observers.length},r.invalidate=function(){this.state.isInvalidated||this.dispatch({type:"invalidate"})},r.fetch=function(n,i){var s=this,o,a,u;if(this.state.isFetching){if(this.state.dataUpdatedAt&&(i!=null&&i.cancelRefetch))this.cancel({silent:!0});else if(this.promise){var l;return(l=this.retryer)==null||l.continueRetry(),this.promise}}if(n&&this.setOptions(n),!this.options.queryFn){var c=this.observers.find(function(m){return m.options.queryFn});c&&this.setOptions(c.options)}var p=Lt(this.queryKey),d=Vn(),h={queryKey:p,pageParam:void 0,meta:this.meta};Object.defineProperty(h,"signal",{enumerable:!0,get:function(){if(d)return s.abortSignalConsumed=!0,d.signal}});var f=function(){return s.options.queryFn?(s.abortSignalConsumed=!1,s.options.queryFn(h)):Promise.reject("Missing queryFn")},v={fetchOptions:i,options:this.options,queryKey:p,state:this.state,fetchFn:f,meta:this.meta};if((o=this.options.behavior)!=null&&o.onFetch){var y;(y=this.options.behavior)==null||y.onFetch(v)}if(this.revertState=this.state,!this.state.isFetching||this.state.fetchMeta!==((a=v.fetchOptions)==null?void 0:a.meta)){var _;this.dispatch({type:"fetch",meta:(_=v.fetchOptions)==null?void 0:_.meta})}return this.retryer=new Kn({fn:v.fetchFn,abort:d==null||(u=d.abort)==null?void 0:u.bind(d),onSuccess:function(w){s.setData(w),s.cache.config.onSuccess==null||s.cache.config.onSuccess(w,s),s.cacheTime===0&&s.optionalRemove()},onError:function(w){ht(w)&&w.silent||s.dispatch({type:"error",error:w}),ht(w)||(s.cache.config.onError==null||s.cache.config.onError(w,s),Tt().error(w)),s.cacheTime===0&&s.optionalRemove()},onFail:function(){s.dispatch({type:"failed"})},onPause:function(){s.dispatch({type:"pause"})},onContinue:function(){s.dispatch({type:"continue"})},retry:v.options.retry,retryDelay:v.options.retryDelay}),this.promise=this.retryer.promise,this.promise},r.dispatch=function(n){var i=this;this.state=this.reducer(this.state,n),X.batch(function(){i.observers.forEach(function(s){s.onQueryUpdate(n)}),i.cache.notify({query:i,type:"queryUpdated",action:n})})},r.getDefaultState=function(n){var i=typeof n.initialData=="function"?n.initialData():n.initialData,s=typeof n.initialData<"u",o=s?typeof n.initialDataUpdatedAt=="function"?n.initialDataUpdatedAt():n.initialDataUpdatedAt:0,a=typeof i<"u";return{data:i,dataUpdateCount:0,dataUpdatedAt:a?o??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchMeta:null,isFetching:!1,isInvalidated:!1,isPaused:!1,status:a?"success":"idle"}},r.reducer=function(n,i){var s,o;switch(i.type){case"failed":return B({},n,{fetchFailureCount:n.fetchFailureCount+1});case"pause":return B({},n,{isPaused:!0});case"continue":return B({},n,{isPaused:!1});case"fetch":return B({},n,{fetchFailureCount:0,fetchMeta:(s=i.meta)!=null?s:null,isFetching:!0,isPaused:!1},!n.dataUpdatedAt&&{error:null,status:"loading"});case"success":return B({},n,{data:i.data,dataUpdateCount:n.dataUpdateCount+1,dataUpdatedAt:(o=i.dataUpdatedAt)!=null?o:Date.now(),error:null,fetchFailureCount:0,isFetching:!1,isInvalidated:!1,isPaused:!1,status:"success"});case"error":var a=i.error;return ht(a)&&a.revert&&this.revertState?B({},this.revertState):B({},n,{error:a,errorUpdateCount:n.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:n.fetchFailureCount+1,isFetching:!1,isPaused:!1,status:"error"});case"invalidate":return B({},n,{isInvalidated:!0});case"setState":return B({},n,i.state);default:return n}},e}(),Jn=function(e){Ne(r,e);function r(n){var i;return i=e.call(this)||this,i.config=n||{},i.queries=[],i.queriesMap={},i}var t=r.prototype;return t.build=function(i,s,o){var a,u=s.queryKey,l=(a=s.queryHash)!=null?a:pr(u,s),c=this.get(l);return c||(c=new ra({cache:this,queryKey:u,queryHash:l,options:i.defaultQueryOptions(s),state:o,defaultOptions:i.getQueryDefaults(u),meta:s.meta}),this.add(c)),c},t.add=function(i){this.queriesMap[i.queryHash]||(this.queriesMap[i.queryHash]=i,this.queries.push(i),this.notify({type:"queryAdded",query:i}))},t.remove=function(i){var s=this.queriesMap[i.queryHash];s&&(i.destroy(),this.queries=this.queries.filter(function(o){return o!==i}),s===i&&delete this.queriesMap[i.queryHash],this.notify({type:"queryRemoved",query:i}))},t.clear=function(){var i=this;X.batch(function(){i.queries.forEach(function(s){i.remove(s)})})},t.get=function(i){return this.queriesMap[i]},t.getAll=function(){return this.queries},t.find=function(i,s){var o=Pe(i,s),a=o[0];return typeof a.exact>"u"&&(a.exact=!0),this.queries.find(function(u){return Nr(a,u)})},t.findAll=function(i,s){var o=Pe(i,s),a=o[0];return Object.keys(a).length>0?this.queries.filter(function(u){return Nr(a,u)}):this.queries},t.notify=function(i){var s=this;X.batch(function(){s.listeners.forEach(function(o){o(i)})})},t.onFocus=function(){var i=this;X.batch(function(){i.queries.forEach(function(s){s.onFocus()})})},t.onOnline=function(){var i=this;X.batch(function(){i.queries.forEach(function(s){s.onOnline()})})},r}(Be),na=function(){function e(t){this.options=B({},t.defaultOptions,t.options),this.mutationId=t.mutationId,this.mutationCache=t.mutationCache,this.observers=[],this.state=t.state||Wn(),this.meta=t.meta}var r=e.prototype;return r.setState=function(n){this.dispatch({type:"setState",state:n})},r.addObserver=function(n){this.observers.indexOf(n)===-1&&this.observers.push(n)},r.removeObserver=function(n){this.observers=this.observers.filter(function(i){return i!==n})},r.cancel=function(){return this.retryer?(this.retryer.cancel(),this.retryer.promise.then(ce).catch(ce)):Promise.resolve()},r.continue=function(){return this.retryer?(this.retryer.continue(),this.retryer.promise):this.execute()},r.execute=function(){var n=this,i,s=this.state.status==="loading",o=Promise.resolve();return s||(this.dispatch({type:"loading",variables:this.options.variables}),o=o.then(function(){n.mutationCache.config.onMutate==null||n.mutationCache.config.onMutate(n.state.variables,n)}).then(function(){return n.options.onMutate==null?void 0:n.options.onMutate(n.state.variables)}).then(function(a){a!==n.state.context&&n.dispatch({type:"loading",context:a,variables:n.state.variables})})),o.then(function(){return n.executeMutation()}).then(function(a){i=a,n.mutationCache.config.onSuccess==null||n.mutationCache.config.onSuccess(i,n.state.variables,n.state.context,n)}).then(function(){return n.options.onSuccess==null?void 0:n.options.onSuccess(i,n.state.variables,n.state.context)}).then(function(){return n.options.onSettled==null?void 0:n.options.onSettled(i,null,n.state.variables,n.state.context)}).then(function(){return n.dispatch({type:"success",data:i}),i}).catch(function(a){return n.mutationCache.config.onError==null||n.mutationCache.config.onError(a,n.state.variables,n.state.context,n),Tt().error(a),Promise.resolve().then(function(){return n.options.onError==null?void 0:n.options.onError(a,n.state.variables,n.state.context)}).then(function(){return n.options.onSettled==null?void 0:n.options.onSettled(void 0,a,n.state.variables,n.state.context)}).then(function(){throw n.dispatch({type:"error",error:a}),a})})},r.executeMutation=function(){var n=this,i;return this.retryer=new Kn({fn:function(){return n.options.mutationFn?n.options.mutationFn(n.state.variables):Promise.reject("No mutationFn found")},onFail:function(){n.dispatch({type:"failed"})},onPause:function(){n.dispatch({type:"pause"})},onContinue:function(){n.dispatch({type:"continue"})},retry:(i=this.options.retry)!=null?i:0,retryDelay:this.options.retryDelay}),this.retryer.promise},r.dispatch=function(n){var i=this;this.state=ia(this.state,n),X.batch(function(){i.observers.forEach(function(s){s.onMutationUpdate(n)}),i.mutationCache.notify(i)})},e}();function Wn(){return{context:void 0,data:void 0,error:null,failureCount:0,isPaused:!1,status:"idle",variables:void 0}}function ia(e,r){switch(r.type){case"failed":return B({},e,{failureCount:e.failureCount+1});case"pause":return B({},e,{isPaused:!0});case"continue":return B({},e,{isPaused:!1});case"loading":return B({},e,{context:r.context,data:void 0,error:null,isPaused:!1,status:"loading",variables:r.variables});case"success":return B({},e,{data:r.data,error:null,status:"success",isPaused:!1});case"error":return B({},e,{data:void 0,error:r.error,failureCount:e.failureCount+1,isPaused:!1,status:"error"});case"setState":return B({},e,r.state);default:return e}}var Xn=function(e){Ne(r,e);function r(n){var i;return i=e.call(this)||this,i.config=n||{},i.mutations=[],i.mutationId=0,i}var t=r.prototype;return t.build=function(i,s,o){var a=new na({mutationCache:this,mutationId:++this.mutationId,options:i.defaultMutationOptions(s),state:o,defaultOptions:s.mutationKey?i.getMutationDefaults(s.mutationKey):void 0,meta:s.meta});return this.add(a),a},t.add=function(i){this.mutations.push(i),this.notify(i)},t.remove=function(i){this.mutations=this.mutations.filter(function(s){return s!==i}),i.cancel(),this.notify(i)},t.clear=function(){var i=this;X.batch(function(){i.mutations.forEach(function(s){i.remove(s)})})},t.getAll=function(){return this.mutations},t.find=function(i){return typeof i.exact>"u"&&(i.exact=!0),this.mutations.find(function(s){return $r(i,s)})},t.findAll=function(i){return this.mutations.filter(function(s){return $r(i,s)})},t.notify=function(i){var s=this;X.batch(function(){s.listeners.forEach(function(o){o(i)})})},t.onFocus=function(){this.resumePausedMutations()},t.onOnline=function(){this.resumePausedMutations()},t.resumePausedMutations=function(){var i=this.mutations.filter(function(s){return s.state.isPaused});return X.batch(function(){return i.reduce(function(s,o){return s.then(function(){return o.continue().catch(ce)})},Promise.resolve())})},r}(Be);function sr(){return{onFetch:function(r){r.fetchFn=function(){var t,n,i,s,o,a,u=(t=r.fetchOptions)==null||(n=t.meta)==null?void 0:n.refetchPage,l=(i=r.fetchOptions)==null||(s=i.meta)==null?void 0:s.fetchMore,c=l==null?void 0:l.pageParam,p=(l==null?void 0:l.direction)==="forward",d=(l==null?void 0:l.direction)==="backward",h=((o=r.state.data)==null?void 0:o.pages)||[],f=((a=r.state.data)==null?void 0:a.pageParams)||[],v=Vn(),y=v==null?void 0:v.signal,_=f,m=!1,w=r.options.queryFn||function(){return Promise.reject("Missing queryFn")},b=function(j,D,A,q){return _=q?[D].concat(_):[].concat(_,[D]),q?[A].concat(j):[].concat(j,[A])},C=function(j,D,A,q){if(m)return Promise.reject("Cancelled");if(typeof A>"u"&&!D&&j.length)return Promise.resolve(j);var F={queryKey:r.queryKey,signal:y,pageParam:A,meta:r.meta},G=w(F),$=Promise.resolve(G).then(function(oe){return b(j,A,oe,q)});if(Dt(G)){var z=$;z.cancel=G.cancel}return $},g;if(!h.length)g=C([]);else if(p){var k=typeof c<"u",R=k?c:ar(r.options,h);g=C(h,k,R)}else if(d){var O=typeof c<"u",S=O?c:Zn(r.options,h);g=C(h,O,S,!0)}else(function(){_=[];var L=typeof r.options.getNextPageParam>"u",j=u&&h[0]?u(h[0],0,h):!0;g=j?C([],L,f[0]):Promise.resolve(b([],f[0],h[0]));for(var D=function(F){g=g.then(function(G){var $=u&&h[F]?u(h[F],F,h):!0;if($){var z=L?f[F]:ar(r.options,G);return C(G,L,z)}return Promise.resolve(b(G,f[F],h[F]))})},A=1;A<h.length;A++)D(A)})();var E=g.then(function(L){return{pages:L,pageParams:_}}),x=E;return x.cancel=function(){m=!0,v==null||v.abort(),Dt(g)&&g.cancel()},E}}}}function ar(e,r){return e.getNextPageParam==null?void 0:e.getNextPageParam(r[r.length-1],r)}function Zn(e,r){return e.getPreviousPageParam==null?void 0:e.getPreviousPageParam(r[0],r)}function sa(e,r){if(e.getNextPageParam&&Array.isArray(r)){var t=ar(e,r);return typeof t<"u"&&t!==null&&t!==!1}}function aa(e,r){if(e.getPreviousPageParam&&Array.isArray(r)){var t=Zn(e,r);return typeof t<"u"&&t!==null&&t!==!1}}var oa=function(){function e(t){t===void 0&&(t={}),this.queryCache=t.queryCache||new Jn,this.mutationCache=t.mutationCache||new Xn,this.defaultOptions=t.defaultOptions||{},this.queryDefaults=[],this.mutationDefaults=[]}var r=e.prototype;return r.mount=function(){var n=this;this.unsubscribeFocus=We.subscribe(function(){We.isFocused()&&ft.isOnline()&&(n.mutationCache.onFocus(),n.queryCache.onFocus())}),this.unsubscribeOnline=ft.subscribe(function(){We.isFocused()&&ft.isOnline()&&(n.mutationCache.onOnline(),n.queryCache.onOnline())})},r.unmount=function(){var n,i;(n=this.unsubscribeFocus)==null||n.call(this),(i=this.unsubscribeOnline)==null||i.call(this)},r.isFetching=function(n,i){var s=Pe(n,i),o=s[0];return o.fetching=!0,this.queryCache.findAll(o).length},r.isMutating=function(n){return this.mutationCache.findAll(B({},n,{fetching:!0})).length},r.getQueryData=function(n,i){var s;return(s=this.queryCache.find(n,i))==null?void 0:s.state.data},r.getQueriesData=function(n){return this.getQueryCache().findAll(n).map(function(i){var s=i.queryKey,o=i.state,a=o.data;return[s,a]})},r.setQueryData=function(n,i,s){var o=dt(n),a=this.defaultQueryOptions(o);return this.queryCache.build(this,a).setData(i,s)},r.setQueriesData=function(n,i,s){var o=this;return X.batch(function(){return o.getQueryCache().findAll(n).map(function(a){var u=a.queryKey;return[u,o.setQueryData(u,i,s)]})})},r.getQueryState=function(n,i){var s;return(s=this.queryCache.find(n,i))==null?void 0:s.state},r.removeQueries=function(n,i){var s=Pe(n,i),o=s[0],a=this.queryCache;X.batch(function(){a.findAll(o).forEach(function(u){a.remove(u)})})},r.resetQueries=function(n,i,s){var o=this,a=Pe(n,i,s),u=a[0],l=a[1],c=this.queryCache,p=B({},u,{active:!0});return X.batch(function(){return c.findAll(u).forEach(function(d){d.reset()}),o.refetchQueries(p,l)})},r.cancelQueries=function(n,i,s){var o=this,a=Pe(n,i,s),u=a[0],l=a[1],c=l===void 0?{}:l;typeof c.revert>"u"&&(c.revert=!0);var p=X.batch(function(){return o.queryCache.findAll(u).map(function(d){return d.cancel(c)})});return Promise.all(p).then(ce).catch(ce)},r.invalidateQueries=function(n,i,s){var o,a,u,l=this,c=Pe(n,i,s),p=c[0],d=c[1],h=B({},p,{active:(o=(a=p.refetchActive)!=null?a:p.active)!=null?o:!0,inactive:(u=p.refetchInactive)!=null?u:!1});return X.batch(function(){return l.queryCache.findAll(p).forEach(function(f){f.invalidate()}),l.refetchQueries(h,d)})},r.refetchQueries=function(n,i,s){var o=this,a=Pe(n,i,s),u=a[0],l=a[1],c=X.batch(function(){return o.queryCache.findAll(u).map(function(d){return d.fetch(void 0,B({},l,{meta:{refetchPage:u==null?void 0:u.refetchPage}}))})}),p=Promise.all(c).then(ce);return l!=null&&l.throwOnError||(p=p.catch(ce)),p},r.fetchQuery=function(n,i,s){var o=dt(n,i,s),a=this.defaultQueryOptions(o);typeof a.retry>"u"&&(a.retry=!1);var u=this.queryCache.build(this,a);return u.isStaleByTime(a.staleTime)?u.fetch(a):Promise.resolve(u.state.data)},r.prefetchQuery=function(n,i,s){return this.fetchQuery(n,i,s).then(ce).catch(ce)},r.fetchInfiniteQuery=function(n,i,s){var o=dt(n,i,s);return o.behavior=sr(),this.fetchQuery(o)},r.prefetchInfiniteQuery=function(n,i,s){return this.fetchInfiniteQuery(n,i,s).then(ce).catch(ce)},r.cancelMutations=function(){var n=this,i=X.batch(function(){return n.mutationCache.getAll().map(function(s){return s.cancel()})});return Promise.all(i).then(ce).catch(ce)},r.resumePausedMutations=function(){return this.getMutationCache().resumePausedMutations()},r.executeMutation=function(n){return this.mutationCache.build(this,n).execute()},r.getQueryCache=function(){return this.queryCache},r.getMutationCache=function(){return this.mutationCache},r.getDefaultOptions=function(){return this.defaultOptions},r.setDefaultOptions=function(n){this.defaultOptions=n},r.setQueryDefaults=function(n,i){var s=this.queryDefaults.find(function(o){return Fe(n)===Fe(o.queryKey)});s?s.defaultOptions=i:this.queryDefaults.push({queryKey:n,defaultOptions:i})},r.getQueryDefaults=function(n){var i;return n?(i=this.queryDefaults.find(function(s){return At(n,s.queryKey)}))==null?void 0:i.defaultOptions:void 0},r.setMutationDefaults=function(n,i){var s=this.mutationDefaults.find(function(o){return Fe(n)===Fe(o.mutationKey)});s?s.defaultOptions=i:this.mutationDefaults.push({mutationKey:n,defaultOptions:i})},r.getMutationDefaults=function(n){var i;return n?(i=this.mutationDefaults.find(function(s){return At(n,s.mutationKey)}))==null?void 0:i.defaultOptions:void 0},r.defaultQueryOptions=function(n){if(n!=null&&n._defaulted)return n;var i=B({},this.defaultOptions.queries,this.getQueryDefaults(n==null?void 0:n.queryKey),n,{_defaulted:!0});return!i.queryHash&&i.queryKey&&(i.queryHash=pr(i.queryKey,i)),i},r.defaultQueryObserverOptions=function(n){return this.defaultQueryOptions(n)},r.defaultMutationOptions=function(n){return n!=null&&n._defaulted?n:B({},this.defaultOptions.mutations,this.getMutationDefaults(n==null?void 0:n.mutationKey),n,{_defaulted:!0})},r.clear=function(){this.queryCache.clear(),this.mutationCache.clear()},e}(),Ut=function(e){Ne(r,e);function r(n,i){var s;return s=e.call(this)||this,s.client=n,s.options=i,s.trackedProps=[],s.selectError=null,s.bindMethods(),s.setOptions(i),s}var t=r.prototype;return t.bindMethods=function(){this.remove=this.remove.bind(this),this.refetch=this.refetch.bind(this)},t.onSubscribe=function(){this.listeners.length===1&&(this.currentQuery.addObserver(this),Qr(this.currentQuery,this.options)&&this.executeFetch(),this.updateTimers())},t.onUnsubscribe=function(){this.listeners.length||this.destroy()},t.shouldFetchOnReconnect=function(){return or(this.currentQuery,this.options,this.options.refetchOnReconnect)},t.shouldFetchOnWindowFocus=function(){return or(this.currentQuery,this.options,this.options.refetchOnWindowFocus)},t.destroy=function(){this.listeners=[],this.clearTimers(),this.currentQuery.removeObserver(this)},t.setOptions=function(i,s){var o=this.options,a=this.currentQuery;if(this.options=this.client.defaultQueryObserverOptions(i),typeof this.options.enabled<"u"&&typeof this.options.enabled!="boolean")throw new Error("Expected enabled to be a boolean");this.options.queryKey||(this.options.queryKey=o.queryKey),this.updateQuery();var u=this.hasListeners();u&&Hr(this.currentQuery,a,this.options,o)&&this.executeFetch(),this.updateResult(s),u&&(this.currentQuery!==a||this.options.enabled!==o.enabled||this.options.staleTime!==o.staleTime)&&this.updateStaleTimeout();var l=this.computeRefetchInterval();u&&(this.currentQuery!==a||this.options.enabled!==o.enabled||l!==this.currentRefetchInterval)&&this.updateRefetchInterval(l)},t.getOptimisticResult=function(i){var s=this.client.defaultQueryObserverOptions(i),o=this.client.getQueryCache().build(this.client,s);return this.createResult(o,s)},t.getCurrentResult=function(){return this.currentResult},t.trackResult=function(i,s){var o=this,a={},u=function(c){o.trackedProps.includes(c)||o.trackedProps.push(c)};return Object.keys(i).forEach(function(l){Object.defineProperty(a,l,{configurable:!1,enumerable:!0,get:function(){return u(l),i[l]}})}),(s.useErrorBoundary||s.suspense)&&u("error"),a},t.getNextResult=function(i){var s=this;return new Promise(function(o,a){var u=s.subscribe(function(l){l.isFetching||(u(),l.isError&&(i!=null&&i.throwOnError)?a(l.error):o(l))})})},t.getCurrentQuery=function(){return this.currentQuery},t.remove=function(){this.client.getQueryCache().remove(this.currentQuery)},t.refetch=function(i){return this.fetch(B({},i,{meta:{refetchPage:i==null?void 0:i.refetchPage}}))},t.fetchOptimistic=function(i){var s=this,o=this.client.defaultQueryObserverOptions(i),a=this.client.getQueryCache().build(this.client,o);return a.fetch().then(function(){return s.createResult(a,o)})},t.fetch=function(i){var s=this;return this.executeFetch(i).then(function(){return s.updateResult(),s.currentResult})},t.executeFetch=function(i){this.updateQuery();var s=this.currentQuery.fetch(this.options,i);return i!=null&&i.throwOnError||(s=s.catch(ce)),s},t.updateStaleTimeout=function(){var i=this;if(this.clearStaleTimeout(),!(Mt||this.currentResult.isStale||!nr(this.options.staleTime))){var s=Bn(this.currentResult.dataUpdatedAt,this.options.staleTime),o=s+1;this.staleTimeoutId=setTimeout(function(){i.currentResult.isStale||i.updateResult()},o)}},t.computeRefetchInterval=function(){var i;return typeof this.options.refetchInterval=="function"?this.options.refetchInterval(this.currentResult.data,this.currentQuery):(i=this.options.refetchInterval)!=null?i:!1},t.updateRefetchInterval=function(i){var s=this;this.clearRefetchInterval(),this.currentRefetchInterval=i,!(Mt||this.options.enabled===!1||!nr(this.currentRefetchInterval)||this.currentRefetchInterval===0)&&(this.refetchIntervalId=setInterval(function(){(s.options.refetchIntervalInBackground||We.isFocused())&&s.executeFetch()},this.currentRefetchInterval))},t.updateTimers=function(){this.updateStaleTimeout(),this.updateRefetchInterval(this.computeRefetchInterval())},t.clearTimers=function(){this.clearStaleTimeout(),this.clearRefetchInterval()},t.clearStaleTimeout=function(){this.staleTimeoutId&&(clearTimeout(this.staleTimeoutId),this.staleTimeoutId=void 0)},t.clearRefetchInterval=function(){this.refetchIntervalId&&(clearInterval(this.refetchIntervalId),this.refetchIntervalId=void 0)},t.createResult=function(i,s){var o=this.currentQuery,a=this.options,u=this.currentResult,l=this.currentResultState,c=this.currentResultOptions,p=i!==o,d=p?i.state:this.currentQueryInitialState,h=p?this.currentResult:this.previousQueryResult,f=i.state,v=f.dataUpdatedAt,y=f.error,_=f.errorUpdatedAt,m=f.isFetching,w=f.status,b=!1,C=!1,g;if(s.optimisticResults){var k=this.hasListeners(),R=!k&&Qr(i,s),O=k&&Hr(i,o,s,a);(R||O)&&(m=!0,v||(w="loading"))}if(s.keepPreviousData&&!f.dataUpdateCount&&(h!=null&&h.isSuccess)&&w!=="error")g=h.data,v=h.dataUpdatedAt,w=h.status,b=!0;else if(s.select&&typeof f.data<"u")if(u&&f.data===(l==null?void 0:l.data)&&s.select===this.selectFn)g=this.selectResult;else try{this.selectFn=s.select,g=s.select(f.data),s.structuralSharing!==!1&&(g=jt(u==null?void 0:u.data,g)),this.selectResult=g,this.selectError=null}catch(x){Tt().error(x),this.selectError=x}else g=f.data;if(typeof s.placeholderData<"u"&&typeof g>"u"&&(w==="loading"||w==="idle")){var S;if(u!=null&&u.isPlaceholderData&&s.placeholderData===(c==null?void 0:c.placeholderData))S=u.data;else if(S=typeof s.placeholderData=="function"?s.placeholderData():s.placeholderData,s.select&&typeof S<"u")try{S=s.select(S),s.structuralSharing!==!1&&(S=jt(u==null?void 0:u.data,S)),this.selectError=null}catch(x){Tt().error(x),this.selectError=x}typeof S<"u"&&(w="success",g=S,C=!0)}this.selectError&&(y=this.selectError,g=this.selectResult,_=Date.now(),w="error");var E={status:w,isLoading:w==="loading",isSuccess:w==="success",isError:w==="error",isIdle:w==="idle",data:g,dataUpdatedAt:v,error:y,errorUpdatedAt:_,failureCount:f.fetchFailureCount,errorUpdateCount:f.errorUpdateCount,isFetched:f.dataUpdateCount>0||f.errorUpdateCount>0,isFetchedAfterMount:f.dataUpdateCount>
180d.dataUpdateCount||f.errorUpdateCount>d.errorUpdateCount,isFetching:m,isRefetching:m&&w!=="loading",isLoadingError:w==="error"&&f.dataUpdatedAt===0,isPlaceholderData:C,isPreviousData:b,isRefetchError:w==="error"&&f.dataUpdatedAt!==0,isStale:mr(i,s),refetch:this.refetch,remove:this.remove};return E},t.shouldNotifyListeners=function(i,s){if(!s)return!0;var o=this.options,a=o.notifyOnChangeProps,u=o.notifyOnChangePropsExclusions;if(!a&&!u||a==="tracked"&&!this.trackedProps.length)return!0;var l=a==="tracked"?this.trackedProps:a;return Object.keys(i).some(function(c){var p=c,d=i[p]!==s[p],h=l==null?void 0:l.some(function(v){return v===c}),f=u==null?void 0:u.some(function(v){return v===c});return d&&!f&&(!l||h)})},t.updateResult=function(i){var s=this.currentResult;if(this.currentResult=this.createResult(this.currentQuery,this.options),this.currentResultState=this.currentQuery.state,this.currentResultOptions=this.options,!Gs(this.currentResult,s)){var o={cache:!0};(i==null?void 0:i.listeners)!==!1&&this.shouldNotifyListeners(this.currentResult,s)&&(o.listeners=!0),this.notify(B({},o,i))}},t.updateQuery=function(){var i=this.client.getQueryCache().build(this.client,this.options);if(i!==this.currentQuery){var s=this.currentQuery;this.currentQuery=i,this.currentQueryInitialState=i.state,this.previousQueryResult=this.currentResult,this.hasListeners()&&(s==null||s.removeObserver(this),i.addObserver(this))}},t.onQueryUpdate=function(i){var s={};i.type==="success"?s.onSuccess=!0:i.type==="error"&&!ht(i.error)&&(s.onError=!0),this.updateResult(s),this.hasListeners()&&this.updateTimers()},t.notify=function(i){var s=this;X.batch(function(){i.onSuccess?(s.options.onSuccess==null||s.options.onSuccess(s.currentResult.data),s.options.onSettled==null||s.options.onSettled(s.currentResult.data,null)):i.onError&&(s.options.onError==null||s.options.onError(s.currentResult.error),s.options.onSettled==null||s.options.onSettled(void 0,s.currentResult.error)),i.listeners&&s.listeners.forEach(function(o){o(s.currentResult)}),i.cache&&s.client.getQueryCache().notify({query:s.currentQuery,type:"observerResultsUpdated"})})},r}(Be);function ua(e,r){return r.enabled!==!1&&!e.state.dataUpdatedAt&&!(e.state.status==="error"&&r.retryOnMount===!1)}function Qr(e,r){return ua(e,r)||e.state.dataUpdatedAt>0&&or(e,r,r.refetchOnMount)}function or(e,r,t){if(r.enabled!==!1){var n=typeof t=="function"?t(e):t;return n==="always"||n!==!1&&mr(e,r)}return!1}function Hr(e,r,t,n){return t.enabled!==!1&&(e!==r||n.enabled===!1)&&(!t.suspense||e.state.status!=="error")&&mr(e,t)}function mr(e,r){return e.isStaleByTime(r.staleTime)}var ei=function(e){Ne(r,e);function r(n,i){var s;return s=e.call(this)||this,s.client=n,s.queries=[],s.result=[],s.observers=[],s.observersMap={},i&&s.setQueries(i),s}var t=r.prototype;return t.onSubscribe=function(){var i=this;this.listeners.length===1&&this.observers.forEach(function(s){s.subscribe(function(o){i.onUpdate(s,o)})})},t.onUnsubscribe=function(){this.listeners.length||this.destroy()},t.destroy=function(){this.listeners=[],this.observers.forEach(function(i){i.destroy()})},t.setQueries=function(i,s){this.queries=i,this.updateObservers(s)},t.getCurrentResult=function(){return this.result},t.getOptimisticResult=function(i){return this.findMatchingObservers(i).map(function(s){return s.observer.getOptimisticResult(s.defaultedQueryOptions)})},t.findMatchingObservers=function(i){var s=this,o=this.observers,a=i.map(function(f){return s.client.defaultQueryObserverOptions(f)}),u=a.flatMap(function(f){var v=o.find(function(y){return y.options.queryHash===f.queryHash});return v!=null?[{defaultedQueryOptions:f,observer:v}]:[]}),l=u.map(function(f){return f.defaultedQueryOptions.queryHash}),c=a.filter(function(f){return!l.includes(f.queryHash)}),p=o.filter(function(f){return!u.some(function(v){return v.observer===f})}),d=c.map(function(f,v){if(f.keepPreviousData){var y=p[v];if(y!==void 0)return{defaultedQueryOptions:f,observer:y}}return{defaultedQueryOptions:f,observer:s.getObserver(f)}}),h=function(v,y){return a.indexOf(v.defaultedQueryOptions)-a.indexOf(y.defaultedQueryOptions)};return u.concat(d).sort(h)},t.getObserver=function(i){var s=this.client.defaultQueryObserverOptions(i),o=this.observersMap[s.queryHash];return o??new Ut(this.client,s)},t.updateObservers=function(i){var s=this;X.batch(function(){var o=s.observers,a=s.findMatchingObservers(s.queries);a.forEach(function(d){return d.observer.setOptions(d.defaultedQueryOptions,i)});var u=a.map(function(d){return d.observer}),l=Object.fromEntries(u.map(function(d){return[d.options.queryHash,d]})),c=u.map(function(d){return d.getCurrentResult()}),p=u.some(function(d,h){return d!==o[h]});o.length===u.length&&!p||(s.observers=u,s.observersMap=l,s.result=c,s.hasListeners()&&(Ir(o,u).forEach(function(d){d.destroy()}
180),Ir(u,o).forEach(function(d){d.subscribe(function(h){s.onUpdate(d,h)})}),s.notify()))})},t.onUpdate=function(i,s){var o=this.observers.indexOf(i);o!==-1&&(this.result=Bs(this.result,o,s),this.notify())},t.notify=function(){var i=this;X.batch(function(){i.listeners.forEach(function(s){s(i.result)})})},r}(Be),ti=function(e){Ne(r,e);function r(n,i){return e.call(this,n,i)||this}var t=r.prototype;return t.bindMethods=function(){e.prototype.bindMethods.call(this),this.fetchNextPage=this.fetchNextPage.bind(this),this.fetchPreviousPage=this.fetchPreviousPage.bind(this)},t.setOptions=function(i,s){e.prototype.setOptions.call(this,B({},i,{behavior:sr()}),s)},t.getOptimisticResult=function(i){return i.behavior=sr(),e.prototype.getOptimisticResult.call(this,i)},t.fetchNextPage=function(i){var s;return this.fetch({cancelRefetch:(s=i==null?void 0:i.cancelRefetch)!=null?s:!0,throwOnError:i==null?void 0:i.throwOnError,meta:{fetchMore:{direction:"forward",pageParam:i==null?void 0:i.pageParam}}})},t.fetchPreviousPage=function(i){var s;return this.fetch({cancelRefetch:(s=i==null?void 0:i.cancelRefetch)!=null?s:!0,throwOnError:i==null?void 0:i.throwOnError,meta:{fetchMore:{direction:"backward",pageParam:i==null?void 0:i.pageParam}}})},t.createResult=function(i,s){var o,a,u,l,c,p,d=i.state,h=e.prototype.createResult.call(this,i,s);return B({},h,{fetchNextPage:this.fetchNextPage,fetchPreviousPage:this.fetchPreviousPage,hasNextPage:sa(s,(o=d.data)==null?void 0:o.pages),hasPreviousPage:aa(s,(a=d.data)==null?void 0:a.pages),isFetchingNextPage:d.isFetching&&((u=d.fetchMeta)==null||(l=u.fetchMore)==null?void 0:l.direction)==="forward",isFetchingPreviousPage:d.isFetching&&((c=d.fetchMeta)==null||(p=c.fetchMore)==null?void 0:p.direction)==="backward"})},r}(Ut),ri=function(e){Ne(r,e);function r(n,i){var s;return s=e.call(this)||this,s.client=n,s.setOptions(i),s.bindMethods(),s.updateResult(),s}var t=r.prototype;return t.bindMethods=function(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)},t.setOptions=function(i){this.options=this.client.defaultMutationOptions(i)},t.onUnsubscribe=function(){if(!this.listeners.length){var i;(i=this.currentMutation)==null||i.removeObserver(this)}},t.onMutationUpdate=function(i){this.updateResult();var s={listeners:!0};i.type==="success"?s.onSuccess=!0:i.type==="error"&&(s.onError=!0),this.notify(s)},t.getCurrentResult=function(){return this.currentResult},t.reset=function(){this.currentMutation=void 0,this.updateResult(),this.notify({listeners:!0})},t.mutate=function(i,s){return this.mutateOptions=s,this.currentMutation&&this.currentMutation.removeObserver(this),this.currentMutation=this.client.getMutationCache().build(this.client,B({},this.options,{variables:typeof i<"u"?i:this.options.variables})),this.currentMutation.addObserver(this),this.currentMutation.execute()},t.updateResult=function(){var i=this.currentMutation?this.currentMutation.state:Wn(),s=B({},i,{isLoading:i.status==="loading",isSuccess:i.status==="success",isError:i.status==="error",isIdle:i.status==="idle",mutate:this.mutate,reset:this.reset});this.currentResult=s},t.notify=function(i){var s=this;X.batch(function(){s.mutateOptions&&(i.onSuccess?(s.mutateOptions.onSuccess==null||s.mutateOptions.onSuccess(s.currentResult.data,s.currentResult.variables,s.currentResult.context),s.mutateOptions.onSettled==null||s.mutateOptions.onSettled(s.currentResult.data,null,s.currentResult.variables,s.currentResult.context)):i.onError&&(s.mutateOptions.onError==null||s.mutateOptions.onError(s.currentResult.error,s.currentResult.variables,s.currentResult.context),s.mutateOptions.onSettled==null||s.mutateOptions.onSettled(void 0,s.currentResult.error,s.currentResult.variables,s.currentResult.context))),i.listeners&&s.listeners.forEach(function(o){o(s.currentResult)})})},r}(Be);function la(e){return{mutationKey:e.options.mutationKey,state:e.state}}function ca(e){return{state:e.state,queryKey:e.queryKey,queryHash:e.queryHash}}
180function da(e){return e.state.isPaused}function fa(e){return e.state.status==="success"}function ha(e,r){var t,n;r=r||{};var i=[],s=[];if(((t=r)==null?void 0:t.dehydrateMutations)!==!1){var o=r.shouldDehydrateMutation||da;e.getMutationCache().getAll().forEach(function(u){o(u)&&i.push(la(u))})}if(((n=r)==null?void 0:n.dehydrateQueries)!==!1){var a=r.shouldDehydrateQuery||fa;e.getQueryCache().getAll().forEach(function(u){a(u)&&s.push(ca(u))})}return{mutations:i,queries:s}}function ni(e,r,t){if(!(typeof r!="object"||r===null)){var n=e.getMutationCache(),i=e.getQueryCache(),s=r.mutations||[],o=r.queries||[];s.forEach(function(a){var u;n.build(e,B({},t==null||(u=t.defaultOptions)==null?void 0:u.mutations,{mutationKey:a.mutationKey}),a.state)}),o.forEach(function(a){var u,l=i.get(a.queryHash);if(l){l.state.dataUpdatedAt<a.state.dataUpdatedAt&&l.setState(a.state);return}i.build(e,B({},t==null||(u=t.defaultOptions)==null?void 0:u.queries,{queryKey:a.queryKey,queryHash:a.queryHash}),a.state)})}}var pa=Gi.unstable_batchedUpdates;X.setBatchNotifyFunction(pa);var va=console;Gn(va);var Br=Y.createContext(void 0),ii=Y.createContext(!1);function si(e){return e&&typeof window<"u"?(window.ReactQueryClientContext||(window.ReactQueryClientContext=Br),window.ReactQueryClientContext):Br}var ze=function(){var r=Y.useContext(si(Y.useContext(ii)));if(!r)throw new Error("No QueryClient set, use QueryClientProvider to set one");return r},ma=function(r){var t=r.client,n=r.contextSharing,i=n===void 0?!1:n,s=r.children;Y.useEffect(function(){return t.mount(),function(){t.unmount()}},[t]);var o=si(i);return Y.createElement(ii.Provider,{value:i},Y.createElement(o.Provider,{value:t},s))};function ai(){var e=!1;return{clearReset:function(){e=!1},reset:function(){e=!0},isReset:function(){return e}}}var oi=Y.createContext(ai()),ui=function(){return Y.useContext(oi)},ya=function(r){var t=r.children,n=Y.useMemo(function(){return ai()},[]);return Y.createElement(oi.Provider,{value:n},typeof t=="function"?t(n):t)},zr=function(r,t,n,i){var s=r.isFetching(t);n!==s&&i(s)};function ga(e,r){var t=Y.useRef(!1),n=ze(),i=Pe(e,r),s=i[0],o=Y.useState(n.isFetching(s)),a=o[0],u=o[1],l=Y.useRef(s);l.current=s;var c=Y.useRef(a);return c.current=a,Y.useEffect(function(){t.current=!0,zr(n,l.current,c.current,u);var p=n.getQueryCache().subscribe(X.batchCalls(function(){t.current&&zr(n,l.current,c.current,u)}));return function(){t.current=!1,p()}},[n]),a}function wa(e,r){var t=Y.useRef(!1),n=Vs(e,r),i=ze(),s=Y.useState(i.isMutating(n)),o=s[0],a=s[1],u=Y.useRef(n);u.current=n;var l=Y.useRef(o);return l.current=o,Y.useEffect(function(){t.current=!0;var c=i.getMutationCache().subscribe(X.batchCalls(function(){if(t.current){var p=i.isMutating(u.current);l.current!==p&&a(p)}}));return function(){t.current=!1,c()}},[i]),o}function li(e,r,t){return typeof r=="function"?r.apply(void 0,t):typeof r=="boolean"?r:!!e}function _a(e,r,t){var n=Y.useRef(!1),i=Y.useState(0),s=i[1],o=zs(e,r,t),a=ze(),u=Y.useRef();u.current?u.current.setOptions(o):u.current=new ri(a,o);var l=u.current.getCurrentResult();Y.useEffect(function(){n.current=!0;var p=u.current.subscribe(X.batchCalls(function(){n.current&&s(function(d){return d+1})}));return function(){n.current=!1,p()}},[]);var c=Y.useCallback(function(p,d){u.current.mutate(p,d).catch(ce)},[]);if(l.error&&li(void 0,u.current.options.useErrorBoundary,[l.error]))throw l.error;return B({},l,{mutate:c,mutateAsync:l.mutate})}function ci(e,r){var t=Y.useRef(!1),n=Y.useState(0),i=n[1],s=ze(),o=ui(),a=s.defaultQueryObserverOptions(e);a.optimisticResults=!0,a.onError&&(a.onError=X.batchCalls(a.onError)),a.onSuccess&&(a.onSuccess=X.batchCalls(a.onSuccess)),a.onSettled&&(a.onSettled=X.batchCalls(a.onSettled)),a.suspense&&(typeof a.staleTime!="number"&&(a.staleTime=1e3),a.cacheTime===0&&(a.cacheTime=1)),(a.suspense||a.useErrorBoundary)&&(o.isReset()||(a.retryOnMount=!1));var u=Y.useState(function(){return new r(s,a)}),l=u[0],c=l.getOptimisticResult(a);if(Y.useEffect(function(){t.current=!0,o.clearReset();var p=l.subscribe(X.batchCalls(function(){t.current&&i(function(d){return d+1})}));return l.updateResult(),function(){t.current=!1,p()}}
180,[o,l]),Y.useEffect(function(){l.setOptions(a,{listeners:!1})},[a,l]),a.suspense&&c.isLoading)throw l.fetchOptimistic(a).then(function(p){var d=p.data;a.onSuccess==null||a.onSuccess(d),a.onSettled==null||a.onSettled(d,null)}).catch(function(p){o.clearReset(),a.onError==null||a.onError(p),a.onSettled==null||a.onSettled(void 0,p)});if(c.isError&&!o.isReset()&&!c.isFetching&&li(a.suspense,a.useErrorBoundary,[c.error,l.getCurrentQuery()]))throw c.error;return a.notifyOnChangeProps==="tracked"&&(c=l.trackResult(c,a)),c}function ba(e,r,t){var n=dt(e,r,t);return ci(n,Ut)}function Sa(e){var r=Y.useRef(!1),t=Y.useState(0),n=t[1],i=ze(),s=K.useMemo(function(){return e.map(function(l){var c=i.defaultQueryObserverOptions(l);return c.optimisticResults=!0,c})},[e,i]),o=Y.useState(function(){return new ei(i,s)}),a=o[0],u=a.getOptimisticResult(s);return Y.useEffect(function(){r.current=!0;var l=a.subscribe(X.batchCalls(function(){r.current&&n(function(c){return c+1})}));return function(){r.current=!1,l()}},[a]),Y.useEffect(function(){a.setQueries(s,{listeners:!1})},[s,a]),u}function Ra(e,r,t){var n=dt(e,r,t);return ci(n,ti)}function di(e,r){var t=ze(),n=Y.useRef(r);n.current=r,Y.useMemo(function(){e&&ni(t,e,n.current)},[t,e])}var Ea=function(r){var t=r.children,n=r.options,i=r.state;return di(i,n),t};const Ca=Object.freeze(Object.defineProperty({__proto__:null,CancelledError:vr,Hydrate:Ea,InfiniteQueryObserver:ti,MutationCache:Xn,MutationObserver:ri,QueriesObserver:ei,QueryCache:Jn,QueryClient:oa,QueryClientProvider:ma,QueryErrorResetBoundary:ya,QueryObserver:Ut,dehydrate:ha,focusManager:We,hashQueryKey:Fe,hydrate:ni,isCancelledError:ht,isError:Js,notifyManager:X,onlineManager:ft,setLogger:Gn,useHydrate:di,useInfiniteQuery:Ra,useIsFetching:ga,useIsMutating:wa,useMutation:_a,useQueries:Sa,useQuery:ba,useQueryClient:ze,useQueryErrorResetBoundary:ui},Symbol.toStringTag,{value:"Module"}));var rt={},Se={},wt={},Vr;function ka(){if(Vr)return wt;Vr=1,Object.defineProperty(wt,"__esModule",{value:!0});const e=pe();return wt.default=(r,t)=>{const n=(0,e.useContext)(r);if(n===void 0&&t)return t;if(n===void 0)throw new Error("Context can not be undefined");return n},wt}var nt={};const Qt=$t(Ca);var _t={},Kr;function Oa(){if(Kr)return _t;Kr=1,Object.defineProperty(_t,"__esModule",{value:!0});const e=pe();return _t.default=(r,t)=>{const[n,i]=(0,e.useState)(r),s=(0,e.useCallback)(()=>{i(t===void 0?r:t)},[]);return[n,i,s]},_t}var Ke={},Re={},Yr;function fi(){if(Yr)return Re;Yr=1,Object.defineProperty(Re,"__esModule",{value:!0}),Re.put=Re.post=Re._delete=Re.get=void 0;class e extends Error{constructor(a,u){super(`Http request failed with status ${a.status}`),this._response=a,this._payload=u}get statusCode(){return this._response.status}get statusText(){return this._response.statusText}get url(){return this._response.url}get response(){return this._response}get payload(){return this._payload}}const r=()=>async o=>{let a;try{a=await o.json()}catch{throw new e(o)}if(o.ok)return a;throw new e(o,a)},t=(o,a)=>fetch(o,{method:"GET",headers:a}).then(r());Re.get=t;const n=(o,a,u)=>fetch(o,{method:"DELETE",headers:u,body:a?JSON.stringify(a):void 0}).then(r());Re._delete=n;const i=(o,a,u)=>fetch(o,{method:"POST",headers:u,body:a?JSON.stringify(a):void 0}).then(r());Re.post=i;const s=(o,a,u)=>fetch(o,{method:"PUT",headers:u,body:a?JSON.stringify(a):void 0}).then(r());return Re.put=s,Re}var Gr;function vt(){if(Gr)return Ke;Gr=1,Object.defineProperty(Ke,"__esModule",{value:!0}),Ke.useCentraCheckoutControls=void 0;const e=pe(),r=Qt,t=Xe(),n=fi(),i=(u,l)=>{const{endpoint:c}=(0,t.useSelection)(),p=(0,t.useToken)(),d=u.indexOf("?")>=0?`${u}&t=${p}`:`${u}?t=${p}`;return(0,r.useQuery)(["payment",p],()=>(0,n.post)(`${c}/payment`,{paymentMethod:"kco",paymentReturnPage:`https://${window.location.host}/${d}`,paymentFailedPage:`https://${window.location.host}/${l}`,termsAndConditions:!0},{"API-token":p}),{enabled:!!p})},s=u=>{const l=document.querySelector("head");if(!l)return;const c=document.createElement("script");c.innerHTML=u,l.appendChild(c)},o=(u,l)=>{u.innerHTML=l;const c=u.getElementsByTagName("script");for(let p=0;p<c.length;p++){const d=c[p].parentNode,h=document.createElement("script");h.type="text/javascript",h.text=c[p].text,d==null||d.removeChild(c[p]),d==null||d.appendChild(h)}};Ke.default=(u,l)=>{const c=(0,e.useRef)(null),{selection:p}=(0,t.useSelection)(),{data:d}=i(u,l);return(0,e.useEffect)(()=>
180{p!=null&&p.centraCheckoutScript&&(d!=null&&d.formHtml)&&c.current&&(o(c.current,d.formHtml),s(p.centraCheckoutScript))},[p==null?void 0:p.centraCheckoutScript,d]),c};const a=()=>{const u=(0,e.useCallback)(()=>{window.CentraCheckout&&window.CentraCheckout.suspend()},[]);return{resume:(0,e.useCallback)(()=>{window.CentraCheckout&&window.CentraCheckout.resume()},[]),suspend:u}};return Ke.useCentraCheckoutControls=a,Ke}var Ee={},Jr;function yr(){if(Jr)return Ee;Jr=1,Object.defineProperty(Ee,"__esModule",{value:!0}),Ee.apiDelete=Ee.apiPut=Ee.apiPost=Ee.apiGet=void 0;const e=fi(),r=(s,o)=>o?(0,e.get)(s,{"API-token":o}):(0,e.get)(s);Ee.apiGet=r;const t=(s,o,a)=>o?(0,e.post)(s,a,{"API-token":o}):(0,e.post)(s,a);Ee.apiPost=t;const n=(s,o,a)=>o?(0,e.put)(s,a,{"API-token":o}):(0,e.put)(s,a);Ee.apiPut=n;const i=(s,o,a)=>o?(0,e._delete)(s,a,{"API-token":o}):(0,e._delete)(s,a);return Ee.apiDelete=i,Ee}var $e={},bt={},Wr;function xa(){if(Wr)return bt;Wr=1,Object.defineProperty(bt,"__esModule",{value:!0});const e=gr();return bt.default=(r,t)=>n=>{r.setQueryData(["selection",n.token],n),(n==null?void 0:n.token)!==t&&(typeof localStorage<"u"&&localStorage.setItem(e.LOCAL_STORAGE_KEY,n.token),r.setQueryData(["selection",t],void 0))},bt}var Xr;function Pa(){if(Xr)return $e;Xr=1;var e=$e&&$e.__importDefault||function(o){return o&&o.__esModule?o:{default:o}};Object.defineProperty($e,"__esModule",{value:!0}),$e.useVouchers=void 0;const r=Qt,t=vt(),n=yr(),i=e(xa()),s=(o,a)=>{const u=(0,r.useQueryClient)(),{resume:l,suspend:c}=(0,t.useCentraCheckoutControls)(),p=(0,r.useMutation)(h=>(0,n.apiPost)(`${o}/vouchers`,a,{voucher:h}),{onMutate:c,onSettled:l,onSuccess:(0,i.default)(u,a)}),d=(0,r.useMutation)(h=>(0,n.apiDelete)(`${o}/vouchers`,a,{voucher:h}),{onMutate:c,onSettled:l,onSuccess:(0,i.default)(u,a)});return{addVoucherMutation:p,removeVoucherMutation:d}};return $e.useVouchers=s,$e}var Zr;function gr(){return Zr||(Zr=1,function(e){var r=nt&&nt.__importDefault||function(v){return v&&v.__esModule?v:{default:v}};Object.defineProperty(e,"__esModule",{value:!0}),e.useSetCountry=e.useSetShipping=e.useSetQuantity=e.CART_VERSION_KEY=e.LOCAL_STORAGE_KEY=void 0;const t=pe(),n=Qt,i=r(Oa()),s=vt(),o=yr(),a=Pa();e.LOCAL_STORAGE_KEY="CENTRA_TOKEN",e.CART_VERSION_KEY="CENTRA_CART_VERSION";const u=(v,y)=>{const _=(0,n.useQueryClient)();return(0,n.useQuery)(["selection",y],()=>(0,o.apiGet)(`${v}/selection`,y),{enabled:!!y,onSuccess(m){(m==null?void 0:m.token)!==y&&m&&(typeof window<"u"&&typeof window.localStorage<"u"&&window.localStorage.setItem(e.LOCAL_STORAGE_KEY,m.token),_.setQueryData(["selection",y],void 0),_.setQueryData(["selection",m.token],m))}})},l=(v,y)=>{const _=(0,n.useQueryClient)(),{resume:m,suspend:w}=(0,s.useCentraCheckoutControls)();return(0,n.useMutation)(b=>(0,o.apiPost)(`${v}/items/${b}`,y),{onMutate:w,onSettled:m,onSuccess(b,C,g){_.setQueryData(["selection",b.token],b),(b==null?void 0:b.token)!==y&&(typeof window<"u"&&typeof window.localStorage<"u"&&window.localStorage.setItem(e.LOCAL_STORAGE_KEY,b.token),_.setQueryData(["selection",y],void 0))}})},c=(v,y)=>{const _=(0,n.useQueryClient)(),{resume:m,suspend:w}=(0,s.useCentraCheckoutControls)();return(0,n.useMutation)(({lineId:b,quantity:C})=>(0,o.apiPut)(`${v}/lines/${b}/quantity/${C}`,y),{onMutate:w,onSettled:m,onSuccess(b,C,g){_.setQueryData(["selection",b.token],b),(b==null?void 0:b.token)!==y&&(typeof window<"u"&&typeof window.localStorage<"u"&&window.localStorage.setItem(e.LOCAL_STORAGE_KEY,b.token),_.setQueryData(["selection",y],void 0))}})};e.useSetQuantity=c;const p=(v,y)=>{const _=(0,n.useQueryClient)(),{resume:m,suspend:w}=(0,s.useCentraCheckoutControls)();return(0,n.useMutation)(b=>(0,o.apiPut)(`${v}/shipping-methods/${b}`,y),{onMutate:w,onSettled:m,onSuccess(b,C,g){_.setQueryData(["selection",b.token],b),(b==null?void 0:b.token)!==y&&(typeof window<"u"&&typeof window.localStorage<"u"&&window.localStorage.setItem(e.LOCAL_STORAGE_KEY,b.token),_.setQueryData(["selection",y],void 0))}})};e.useSetShipping=p;const d=(v,y)=>{const _=(0,n.useQueryClient)(),{resume:m,suspend:w}=(0,s.useCentraCheckoutControls)();return(0,n.useMutation)(b=>(0,o.apiPut)(`${v}/countries/${b}`,y),{onMutate:w,onSettled:m,onSuccess(b,C,g){_.setQueryData(["selection",b.token],b),
180(b==null?void 0:b.token)!==y&&(typeof window<"u"&&typeof window.localStorage<"u"&&window.localStorage.setItem(e.LOCAL_STORAGE_KEY,b.token),_.setQueryData(["selection",y],void 0))}})};e.useSetCountry=d;const h=(v,y)=>{const _=(0,n.useQueryClient)(),{resume:m,suspend:w}=(0,s.useCentraCheckoutControls)();return(0,n.useMutation)(b=>(0,o.apiPut)(`${v}/campaign-site`,y,{uri:b}),{onMutate:w,onSettled:m,onSuccess(b,C,g){_.setQueryData(["selection",b.token],b),(b==null?void 0:b.token)!==y&&(typeof window<"u"&&typeof window.localStorage<"u"&&window.localStorage.setItem(e.LOCAL_STORAGE_KEY,b.token),_.setQueryData(["selection",y],void 0))}})},f=v=>y=>{var _,m;return(m=(_=v==null?void 0:v.selection)===null||_===void 0?void 0:_.items)===null||m===void 0?void 0:m.find(w=>w.item===y)};e.default=(v,y)=>{const _=(0,n.useQueryClient)();let m=null;if(typeof window<"u"&&typeof window.localStorage<"u"){if(y){const $=window.localStorage.getItem(e.CART_VERSION_KEY);$===null?window.localStorage.setItem(e.CART_VERSION_KEY,y):$!==y&&(console.log("[SelectionProvider] version mismatch — resetting cart",{from:$,to:y}),window.localStorage.removeItem(e.LOCAL_STORAGE_KEY),window.localStorage.setItem(e.CART_VERSION_KEY,y))}m=window.localStorage.getItem(e.LOCAL_STORAGE_KEY)}const[w,b]=(0,t.useState)(m),[C,g,k]=(0,i.default)(),{data:R,isLoading:O}=u(v,w),S=l(v,w),E=(0,e.useSetQuantity)(v,w),x=(0,e.useSetCountry)(v,w),L=h(v,w),{addVoucherMutation:j,removeVoucherMutation:D}=(0,a.useVouchers)(v,w),A=(0,t.useCallback)($=>{const z=f(R)($),oe=z.quantity;return g($),E.mutateAsync({quantity:oe+1,lineId:z==null?void 0:z.line}).then(ue=>(k(),ue))},[R==null?void 0:R.selection]),q=(0,t.useCallback)($=>{const z=f(R)($),oe=z.quantity;return g($),E.mutateAsync({quantity:Math.max(0,oe-1),lineId:z.line}).then(ue=>(k(),ue))},[f,R==null?void 0:R.selection]),F=(0,t.useCallback)($=>{const{line:z,quantity:oe}=f(R)($);return g($),E.mutateAsync({quantity:0,lineId:z}).then(ue=>(k(),Object.assign(Object.assign({},ue),{quantity:oe})))},[f,R==null?void 0:R.selection]),G=(0,t.useCallback)($=>{(!$||$===w)&&(_.setQueryData(["selection",w],void 0),typeof window<"u"&&typeof window.localStorage<"u"&&window.localStorage.removeItem(e.LOCAL_STORAGE_KEY),b(null))},[w]);return(0,t.useEffect)(()=>{b(m)},[m]),Object.assign(Object.assign({},R||{}),{addItemMutation:S,addVoucherMutation:j,busy:O||!!C||j.isLoading||D.isLoading,decreaseQuantity:q,fetching:O,increaseQuantity:A,removeItem:F,removeSelection:G,removeVoucherMutation:D,setCampaignSiteMutation:L,setCountryMutation:x,setToken:b,token:w,updatingQuantity:C})}}(nt)),nt}var en;function Xe(){return en||(en=1,function(e){var r=Se&&Se.__createBinding||(Object.create?function(d,h,f,v){v===void 0&&(v=f);var y=Object.getOwnPropertyDescriptor(h,f);(!y||("get"in y?!h.__esModule:y.writable||y.configurable))&&(y={enumerable:!0,get:function(){return h[f]}}),Object.defineProperty(d,v,y)}:function(d,h,f,v){v===void 0&&(v=f),d[v]=h[f]}),t=Se&&Se.__setModuleDefault||(Object.create?function(d,h){Object.defineProperty(d,"default",{enumerable:!0,value:h})}:function(d,h){d.default=h}),n=Se&&Se.__importStar||function(d){if(d&&d.__esModule)return d;var h={};if(d!=null)for(var f in d)f!=="default"&&Object.prototype.hasOwnProperty.call(d,f)&&r(h,d,f);return t(h,d),h},i=Se&&Se.__importDefault||function(d){return d&&d.__esModule?d:{default:d}};Object.defineProperty(e,"__esModule",{value:!0}),e.useToken=e.useSelection=void 0;const s=n(pe()),o=i(ka()),a=i(gr()),u=(0,s.createContext)(void 0),l=({children:d,endpoint:h,version:f})=>{const{addItemMutation:v,addVoucherMutation:y,busy:_,decreaseQuantity:m,fetching:w,increaseQuantity:b,location:C,removeItem:g,removeSelection:k,removeVoucherMutation:R,selection:O,setCountryMutation:S,token:E,updatingQuantity:x,setCampaignSiteMutation:L}=(0,a.default)(h,f),j=(0,s.useMemo)(()=>{var D,A;return{addingItem:v.isLoading,addItem:v.mutateAsync,addVoucher:y.mutateAsync,busy:_,changingVouchers:y.isLoading||R.isLoading,count:((D=O==null?void 0:O.items)===null||D===void 0?void 0:D.reduce((q,F)=>q+F.quantity,0))||-1,decreaseQuantity:m,empty:!(!((A=O==null?void 0:O.items)===null||A===void 0)&&A.length),endpoint:h,increaseQuantity:b,location:C,loading:w,removeItem:g,removeSelection:k,removeVoucher:R.mutateAsync,setCampaignSite:L.mutateAsync,setCountry:S.mutateAsync,selection:O,token:E,updatingQuantity:x}},[v.isLoading,v.mutateAsync,y.isLoading,_,h,w,k,R.isLoading,O,L.mutateAsync,S.mutateAsync,E,x]);return s.default.createElement(u.Provider,{value:j},d)};e.default=l;const c=()=>(0,o.default)(u);e.useSelection=c;const p=()=>{var d;return(d=(0,e.useSelection)())===null||d===void 0?void 0:d.token};e.useToken=p}(Se)),Se}var xe={},kt={exports:{}};/*! js-cookie v3.0.5 | MIT */var Ma=kt.exports,tn;function La(){return tn||(tn=1,function(e,r){(function(t,n){e.exports=n()})(Ma,function(){function t(o){for(var a=1;a<arguments.length;a++){var u=arguments[a];for(var l in u)o[l]=u[l]}return o}var n={read:function(o){return o[0]==='"'&&(o=o.slice(1,-1)),o.replace(/(%[\dA-F]{2})+/gi,decodeURIComponent)},write:function(o){return encodeURIComponent(o).replace(/%(2[346BF]|3[AC-F]|40|5[BDE]|60|7[BCD])/g,decode
180URIComponent)}};function i(o,a){function u(c,p,d){if(!(typeof document>"u")){d=t({},a,d),typeof d.expires=="number"&&(d.expires=new Date(Date.now()+d.expires*864e5)),d.expires&&(d.expires=d.expires.toUTCString()),c=encodeURIComponent(c).replace(/%(2[346B]|5E|60|7C)/g,decodeURIComponent).replace(/[()]/g,escape);var h="";for(var f in d)d[f]&&(h+="; "+f,d[f]!==!0&&(h+="="+d[f].split(";")[0]));return document.cookie=c+"="+o.write(p,c)+h}}function l(c){if(!(typeof document>"u"||arguments.length&&!c)){for(var p=document.cookie?document.cookie.split("; "):[],d={},h=0;h<p.length;h++){var f=p[h].split("="),v=f.slice(1).join("=");try{var y=decodeURIComponent(f[0]);if(d[y]=o.read(v,y),c===y)break}catch{}}return c?d[c]:d}}return Object.create({set:u,get:l,remove:function(c,p){u(c,"",t({},p,{expires:-1}))},withAttributes:function(c){return i(this.converter,t({},this.attributes,c))},withConverter:function(c){return i(t({},this.converter,c),this.attributes)}},{attributes:{value:Object.freeze(a)},converter:{value:Object.freeze(o)}})}var s=i(n,{path:"/"});return s})}(kt)),kt.exports}var rn;function Aa(){if(rn)return xe;rn=1;var e=xe&&xe.__importDefault||function(a){return a&&a.__esModule?a:{default:a}};Object.defineProperty(xe,"__esModule",{value:!0}),xe.useNewsletterSignup=xe.useNewsletterCheckbox=void 0;const r=pe(),t=e(La()),n=Xe(),i="nwsltr_signup",s=()=>{const[a,u]=(0,r.useState)(!1),l=(0,r.useCallback)(p=>{u(p.target.checked)},[]);return(0,r.useEffect)(()=>{a?t.default.set(i,"1"):t.default.remove(i)},[a]),(0,r.useMemo)(()=>({onChange:l,checked:a,value:a.toString()}),[a,l])};xe.useNewsletterCheckbox=s;const o=a=>{const{endpoint:u}=(0,n.useSelection)();(0,r.useEffect)(()=>{t.default.get(i)==="1"&&a?fetch(`${u}/newsletter-subscription/${a}`,{method:"POST"}).then(()=>{t.default.remove(i)}).catch(l=>{console.error(l)}):t.default.remove(i)},[a])};return xe.useNewsletterSignup=o,xe}var it={},nn;function ja(){if(nn)return it;nn=1,Object.defineProperty(it,"__esModule",{value:!0}),it.useVoucherInput=void 0;const e=pe(),r=Xe(),t=()=>{var n,i;const{addVoucher:s,busy:o,removeVoucher:a,selection:u}=(0,r.useSelection)(),[l,c]=(0,e.useState)(""),[p,d]=(0,e.useState)(!1),[h,f]=(0,e.useState)(!1),[v,y]=(0,e.useState)(!1),_=(0,e.useCallback)(async C=>{if(C.preventDefault(),!!l)try{f(!1),d(!0),await s(l),c("")}catch{f(!0)}finally{d(!1)}},[s,l]),m=(0,e.useCallback)(C=>{c(C.target.value)},[]),w=(0,e.useCallback)(async C=>{if(C)try{y(!1),d(!0),await a(C)}catch{y(!0)}finally{d(!1)}},[a]),b=(0,e.useMemo)(()=>({disabled:o||p,id:"voucher",name:"voucher",onChange:m,placeholder:"voucher",type:"text",value:l}),[o,p,m,l]);return{addError:h,inputProps:b,loading:p,onSubmit:_,removeVoucher:w,removeError:v,vouchers:(i=(n=u==null?void 0:u.discounts)===null||n===void 0?void 0:n.vouchers)===null||i===void 0?void 0:i.filter(C=>C.type==="code")}};return it.useVoucherInput=t,it}var Ce={},sn;function Da(){if(sn)return Ce;sn=1;var e=Ce&&Ce.__createBinding||(Object.create?function(c,p,d,h){h===void 0&&(h=d);var f=Object.getOwnPropertyDescriptor(p,d);(!f||("get"in f?!p.__esModule:f.writable||f.configurable))&&(f={enumerable:!0,get:function(){return p[d]}}),Object.defineProperty(c,h,f)}:function(c,p,d,h){h===void 0&&(h=d),c[h]=p[d]}),r=Ce&&Ce.__setModuleDefault||(Object.create?function(c,p){Object.defineProperty(c,"default",{enumerable:!0,value:p})}:function(c,p){c.default=p}),t=Ce&&Ce.__importStar||function(c){if(c&&c.__esModule)return c;var p={};if(c!=null)for(var d in c)d!=="default"&&Object.prototype.hasOwnProperty.call(c,d)&&e(p,c,d);return r(p,c),p};Object.defineProperty(Ce,"__esModule",{value:!0}),Ce.useShipping=void 0;const n=Qt,i=vt(),s=yr(),o=Xe(),a=t(gr()),u=pe(),l=()=>{const c=(0,n.useQueryClient)(),{resume:p,suspend:d}=(0,i.useCentraCheckoutControls)(),{endpoint:h,selection:f,token:v}=(0,o.useSelection)(),{shippingMethods:y}=(0,a.default)(h),_=(0,n.useMutation)(w=>(0,s.apiPut)(`${h}/shipping-methods/${w}`,v),{onMutate:d,onSettled:p,onSuccess(w,b,C){c.setQueryData(["selection",w.token],w),(w==null?void 0:w.token)!==v&&(typeof localStorage<"u"&&localStorage.setItem(a.LOCAL_STORAGE_KEY,w.token),c.setQueryData(["selection",v],void 0))}}),m=(0,u.useMemo)(()=>y==null?void 0:y.find(w=>w.shippingMethod===(f==null?void 0:f.shippingMethod)),[y,f==null?void 0:f.shippingMethod]);return{loading:_.isLoading,selected:m,setShipping:_.mutate,setShippingAsync:_.mutateAsync,shippingMethods:y}};return Ce.useShipping=l,Ce}var an;function Ta(){return an||(an=1,function(e){var r=rt&&rt.__importDefault||function(l){return l&&l.__esMo
180dule?l:{default:l}};Object.defineProperty(e,"__esModule",{value:!0}),e.useShipping=e.useVoucherInput=e.useCentraCheckoutControls=e.useNewsletterSignup=e.useNewsletterCheckbox=e.useCheckout=e.SelectionProvider=e.useToken=e.useSelection=void 0;const t=r(Xe());e.SelectionProvider=t.default;const n=r(vt());e.useCheckout=n.default;const i=Aa();Object.defineProperty(e,"useNewsletterCheckbox",{enumerable:!0,get:function(){return i.useNewsletterCheckbox}}),Object.defineProperty(e,"useNewsletterSignup",{enumerable:!0,get:function(){return i.useNewsletterSignup}});var s=Xe();Object.defineProperty(e,"useSelection",{enumerable:!0,get:function(){return s.useSelection}}),Object.defineProperty(e,"useToken",{enumerable:!0,get:function(){return s.useToken}});var o=vt();Object.defineProperty(e,"useCentraCheckoutControls",{enumerable:!0,get:function(){return o.useCentraCheckoutControls}});var a=ja();Object.defineProperty(e,"useVoucherInput",{enumerable:!0,get:function(){return a.useVoucherInput}});var u=Da();Object.defineProperty(e,"useShipping",{enumerable:!0,get:function(){return u.useShipping}})}(rt)),rt}var Ht=Ta();const Hu=(e,r="-")=>e&&e.toString().normalize("NFD").replace(/[\u0300-\u036f]/g,"").toLowerCase().trim().replace(/[^a-z0-9 -]/g,"").replace(/\s+/g,r)||e,Te=e=>e&&`${e[0].toUpperCase()}${e.slice(1)}`,Bu=e=>e.replace("\\n","<br />"),wr=(e,r,t)=>{const n=e[r];return(n==null?void 0:n.constructor)===String?n:(n==null?void 0:n.constructor)===Array?n[0]:t||r},Fa=(e,r,t)=>{const n=wr(e,r,t);return Te(n)},_r=(e,r,t)=>{const n=e[r];return(n==null?void 0:n.constructor)===String?n:(n==null?void 0:n.constructor)===Array?n[1]||t||r:t||r},Ia=(e,r,t)=>{const n=_r(e,r,t);return Te(n)},Na=(e,r,t,n,i)=>{const s=t?_r(e,r,i):wr(e,r,i);return n?Te(s):s},hi=K.createContext(void 0),zu=({children:e,locale:r})=>{const t=K.useRef(r),n=K.useCallback((l,c)=>wr(t.current,l,c),[]),i=K.useCallback((l,c)=>Fa(t.current,l,c),[]),s=K.useCallback((l,c)=>_r(t.current,l,c),[]),o=K.useCallback((l,c)=>Ia(t.current,l,c),[]),a=K.useCallback((l,c,p,d)=>Na(t.current,l,c,p,d),[]),u=K.useMemo(()=>({t:n,tp:s,tc:i,tpc:o,x:a}),[i,a,s,o,n]);return M.jsx(hi.Provider,{value:u,children:e})},br=()=>{const e=K.useContext(hi);if(e===void 0)throw new Error("Context can not be undefined");return e},Vu={en:{accept:"accept","add extra lenses":"add extra lenses","add to cart":"add to cart","add+":"add+","Add+":"Add+","adding to cart":"adding to cart",all:"all","back to shop":"back to shop",cart:"cart",checkoutTitle:"checkout",checkoutUrl:"checkout","choose technology":"choose technology",clear:"clear",close:"close",color:"color",comingSoon:"This shoe is one of our upcoming releases and will be available soon. Keep an eye out!",conditions:"conditions",consent_paragraph_1:"Sneaky Steve uses cookies and other technologies to enhance your experience by measuring our websites performance, offering a personalized shopping experience, and delivering targeted advertising. We collect information about our users, their activities, and devices to make this possible.",consent_paragraph_2:'By choosing "Accept," you consent to us sharing this information with third parties, including our marketing partners. If you do not consent, we will only use the essential cookies necessary for the websites functionality.',"contact information":"contact information","could not add more of this size to the cart":"could not add more of this size to the cart","could not add voucher":"could not add voucher","could not remove voucher":"could not remove voucher","delivery address":"delivery address","delivery method":"delivery method",delivery:"delivery","deliveryMethodDescription.dhl":"Sent to your nearest DHL service point","deliveryMethodDescription.postnord":"Sent to your nearest Postnord service point","deliveryMethodDescription.ups":"Sent to your nearest UPS service point",description:"description","error404.body":"this content may have been relocated or deleted.","error404.heading":"page not found","filter.available":"available","filter.available.label":"show only available","filter.mainColor":"color","filter.lensColor":"lens color","filter.new.label":"show only new arrivals","filter.new":"new arrivals","filter.technology":"technology",filter:"filter","filter by":"filter by","filter by sport":"filter by sport: ","free shipping over 500kr":"free shipping when purchasing over 500kr",gallery:"gallery","go to startpage":"go to startpage",he
180ight:"height",home:"home",length:"length","lens color":"lens color","lens filter category":"lens filter category","lens material":"lens material",lensguide:"lens guide","lensTechDescription.standard":"regular lens","lensTechDescription.polarized":"cuts out all reflecting light","lensTechDescription.chromic":"made to suite every weather condition","lensTechDescription.ultravue":"boost color and contrast in low light conditions",level:"level","loading testimonials":"loading testimonials",loading:"loading",material:"material",materials:"materials",measurements:"measurements","newsletter.ingress":"sign up for our newsletter to stay updated with the latest news, enjoy exclusive promotions,and get 15% off your next purchase! Plus, help shape our future products with your valuable feedback. Join today and be a vital part of our journey!","no results for query":"no results for query","no ambassadors found":"no ambassadors found","only necessary":"only necessary","order number":"order number","order date":"order date",orderConfirmationTitle:"order confirmation",orderConfirmationUrl:"orderconfirmation",orderLookupUrl:"order-lookup","look up your order":"look up your order","look up order":"look up order","look up another order":"look up another order","return order":"return order","return request sent":"Your return request has been sent. We will be in touch shortly.","return request failed":"Could not send your return request. Please try again later.","return window closed":"This order is more than 60 days old and can no longer be returned.","order lookup intro":"Enter your order number and the email address you used at checkout to view your order.","enter your order number":"please enter your order number","enter a valid email":"please enter a valid email address","no order found":"Could not find a matching order","order lookup failed":"something went wrong looking up your order. please try again later","order lookup rate limited":"too many attempts. please wait a minute and try again",email:"email",status:"status","out of stock":"out of stock","payment by Klarna":"payment by Klarna","product description":"product description",products:"products","related products":"related products","remind me":"remind me",remove:"remove","searched for":"searched for",searchUrl:"search","select size":"select size","shipping and delivery":"shipping & delivery",shipping:"shipping","show all":"show all","show less":"show less",size:"size",sku:"SKU","sort by":"sort by","sort.createdDesc":"latest","sort.nameAsc":"name descending","sort.nameDesc":"name descending","sort.priceAsc":"price ascending","sort.priceDesc":"price descending","sort.selected":"selected","specifications & measurements":"specifications & measurements",specifications:"specifications","strap color":"strap color","strap material":"strap material","suitable conditions":"Suitable conditions","technical features":"technical features","thank you for your purchase":"thank you for your purchase","to payment":"to payment","toggle cart":"toggle cart","toggle market selector":"toggle market selector","toggle menu":"toggle menu",total:"total",VAT:"VAT","view all":"view all","view result":"view result",weight:"weight",width:"width","your cart is empty":"your cart is empty","your data, your choice":"your data, your choice","free deliveries with {{carrier}}":"free deliveries with {{carrier}}","30 days return policy":"30 Days return policy","buy now pay later with klarna":"Buy now, pay later with Klarna","delivery in {{days}} business days":"Delivery in {{days}} business days","select your country":"Select your country","ship to":"Ship to",language:"Language",other:"Other","shipping restriction notice":"Please note, we currently ship only to the countries listed above. You are welcome to browse, but purchases cannot be completed in your location.",select:"Select","loading lens guide":"Loading lens guide...",error:"Error","no lens guide data available":"No lens guide data available","success! check your inbox for your code":"success! check your inbox for your code"},sv:{accept:"acceptera","add extra lenses":"lägg till extra linser","add to cart":"lägg i varukorgen","add+":"lägg till+","Add+":"Lägg till+","adding to cart":"lägger till i varukorgen",all:"alla","available with":"tillgänglig med","back to shop":"fortsätt handla",cart:"varukorg",checkoutTitle:"kassa",checkoutUrl:"kassa","choose technology":"välj teknologi",clear:"rensa",close:"stäng",color:"färg",comingSoon:"Denna skon är en av våra kommande nyheter och blir snart tillgänglig. Håll utkik!",conditions:"förhållanden",consent_paragraph_1:"Sneaky Steve använder cookies och andra tekniker för att förbättra din upplevelse genom att mäta vår webbplats prestanda, erbjuda en skräddarsydd shoppingupplevelse och skicka riktad reklam. Vi samlar information om våra användare, deras aktiviteter och enheter för att göra detta möjligt.",consent_paragraph_2:'Genom att välja "Acceptera", godkänner du att vi kan dela de
180nna information med tredjeparter, inklusive våra reklampartners. Om du inte godkänner, kommer vi bara att använda de absolut nödvändiga cookies för webbplatsens funktion.',"contact information":"kontaktinformation","could not add more of this size to the cart":"Kunde inte lägga till fler av denna storleken i varukorgen","could not add voucher":"kunde inte lägga till rabattkoden","could not remove voucher":"kunde inte ta bort rabattkoden","delivery address":"leveransadress","delivery method":"leveransmetod",delivery:"leverans","deliveryMethodDescription.dhl":"Skickas till ditt närmaste DHL-ombud","deliveryMethodDescription.postnord":"Skickas till ditt närmaste Postnord-ombud","deliveryMethodDescription.ups":"Skickas till ditt närmaste UPS-ombud",description:"beskrivning","error404.body":"denna sidan kan ha flyttats eller tagits bort.","error404.heading":"sidan hittades inte","filter.available":"i lager","filter.available.label":"visa endast i lager","filter.new.label":"visa endast nyheter","filter.new":"nyheter","filter.technology":"teknologi","filter.mainColor":"färg","filter.lensColor":"linsfärg",filter:"filter","filter by":"filtrera på","filter by sport":"filtrera på sport: ","free shipping over 500kr":"fri frakt vid köp över 500 kr",gallery:"galleri","go to startpage":"gå till startsidan",height:"höjd",home:"hem",length:"längd","lens color":"linsfärg","lens filter category":"linsfilterkategori","lens material":"linsmaterial",lensguide:"linsguide","lensTechDescription.standard":"vanlig lins","lensTechDescription.polarized":"filtrerar bort alla reflekterande ljusstrålar","lensTechDescription.polariserad":"filtrerar bort alla reflekterande ljusstrålar","lensTechDescription.chromic":"automatiskt toning från ljust till mörkt beroende på vädret","lensTechDescription.fotokromatisk":"automatiskt toning från ljust till mörkt beroende på vädret","lensTechDescription.ultravue":"förstärker färger och kontrast i svagt ljus",level:"nivå","loading testimonials":"laddar omdömen",loading:"laddar",material:"material",materials:"material",measurements:"mått","newsletter.ingress":"prenumerera på vårt nyhetsbrev för att stanna uppdaterad med de senaste nyheterna, njut av exklusiva erbjudanden, och få 15% rabatt på din nästa köp! Plus, hjälp oss skapa framtiden för våra produkter med dina värdefulla återkopplingar. Gå med idag och vara en viktig del av vår resa!","no results for query":"inga resultat på sökningen","no ambassadors found":"inga ambassadörer hittades","only necessary":"endast nödvändiga","order number":"ordernummer","order date":"orderdatum",orderConfirmationTitle:"orderbekräftelse",orderConfirmationUrl:"orderbefraftelse",orderLookupUrl:"hitta-order","look up your order":"hitta din order","look up order":"hitta order","look up another order":"hitta en annan order","return order":"returnera order","return request sent":"Din returbegäran har skickats. Vi återkommer inom kort.","return request failed":"Kunde inte skicka din returbegäran. Försök igen senare.","return window closed":"Den här ordern är äldre än 60 dagar och kan inte längre returneras.","order lookup intro":"Ange ditt ordernummer och e-postadressen du använde i kassan för att se din order.","enter your order number":"ange ditt ordernummer","enter a valid email":"ange en giltig e-postadress","no order found":"Kunde inte hitta någon matchande order","order lookup failed":"något gick fel när vi hämtade din order. försök igen senare","order lookup rate limited":"för många försök. vänta en minut och försök igen",email:"e-post",status:"status","out of stock":"slut i lager","payment by Klarna":"betala med Klarna","product description":"produktbeskrivning",products:"produkter","related products":"relaterade produkter","remind me":"påminn mig",remove:"ta bort","searched for":"Sökning på",searchUrl:"sok","select size":"välj storlek","shipping and delivery":"frakt & leverans",shipping:"frakt","show all":"visa alla","show less":"visa mindre",size:"storlek",sku:"artikelnummer","sort by":"sortera på","sort.createdDesc":"senaste","sort.nameAsc":"namn: A - Ö","sort.nameDesc":"namn: Ö - A","sort.priceAsc":"pris stigande","sort.priceDesc":"pris fallande","sort.selected":"utvalda","specifications & measurements":"specifikationer & mått",specifications:"specifikationer","strap color":"remmens färg","strap material":"remmens material","suitable conditions":"Lämpliga förhållanden","technical features":"tekniska egenskaper","thank you for your purchase":"tack för ditt köp","to payment":"till kassan","toggle cart":"växla varukorg","toggle market selector":"växla marknadsväljare","toggle menu":"växla meny",total:"totalt",variants:"varianter",VAT:"moms","view all":"visa alla","view result":"visa resultat",weight:"vikt",width:"bredd","your cart is empty":"din varukorg är tom","your data, your choice":"Din data, ditt val","free deliveries with {{carrier}}":"Gratis leveranser med {{carrier}}","30 days return policy":"30 dagars återbetalningsgaranti","buy now pay later with klarna":"Köp nu, betala senare med Klarna","delivery in {{days}} business days":"Leverans inom {{days}} arbetsdagar","select your country":"Välj ditt land","ship to":"Leverera till",language:"Språk",other:"Annat","shipping restriction notice":"Observera att vi för närvarande endast levererar till länderna som listas ovan. Du är välkommen att bläddra, men köp kan inte slutföras på din plats.",select:"Välj","loading lens guide":"Lad
180dar linsguide...",error:"Fel","no lens guide data available":"Ingen linsguidedata tillgänglig","success! check your inbox for your code":"Awesome! kolla din epost för en rabattkod","subscribe to our newsletter and get 15% off on your first purchase":"prenumerera på vårt nyhetsbrev och få 15% rabatt på ditt första köp","click here":"klicka här","your email":"din epost","something went wrong, please try again":"något gick fel, försök igen","join our newsletter":"gå med i vårt nyhetsbrev","sign up":"prenumerera"},de:{accept:"akzeptieren","add extra lenses":"zusätzliche Linsen hinzufügen","add to cart":"In den Warenkorb","add+":"hinzufügen+","Add+":"Hinzufügen+","adding to cart":"zum Warenkorb hinzufügen","back to shop":"Zurück zum Geschäft",cart:"Warenkorb",checkoutTitle:"kasse",checkoutUrl:"kasse","choose technology":"Technologie wählen",color:"Farbe",comingSoon:"Dieser Schuh ist eine unserer kommenden Neuheiten und wird bald erhältlich sein. Halten Sie Ausschau!",conditions:"Bedingungen",consent_paragraph_1:"Sneaky Steve verwendet Cookies und andere Technologien, um Ihr Erlebnis zu verbessern, indem wir die Leistung unserer Website messen, ein personalisiertes Einkaufserlebnis bieten und gezielte Werbung aussenden. Wir sammeln Informationen über unsere Nutzer, deren Aktivitäten und Geräte, um dies zu ermöglichen.",consent_paragraph_2:"Indem Sie „Akzeptieren“ wählen, geben Sie Ihre Zustimmung, dass wir diese Informationen mit Dritten, einschließlich unserer Marketingpartner, teilen dürfen. Wenn Sie nicht zustimmen, werden wir nur die unbedingt notwendigen Cookies verwenden, die für die Funktionalität der Website erforderlich sind.","contact information":"Kontaktinformation","could not add more of this size to the cart":"Konnte nicht mehr von dieser Größe zum Warenkorb hinzufügen","could not add voucher":"Gutschein konnte nicht hinzugefügt werden","could not remove voucher":"Gutschein konnte nicht entfernt werden","delivery address":"Lieferadresse","delivery method":"Liefermethode",delivery:"Lieferung","deliveryMethodDescription.dhl":"Versand an Ihre nächste DHL-Verkaufsstelle","deliveryMethodDescription.postnord":"Versand an Ihre nächste Postnord-Verkaufsstelle","deliveryMethodDescription.ups":"Versand an Ihre nächste UPS-Verkaufsstelle",description:"Beschreibung","error404.body":"diese Inhalte wurden möglicherweise verschoben oder gelöscht.","error404.heading":"seite nicht gefunden","filter.available.label":"nur verfügbare anzeigen","filter.new.label":"Nur Neuheiten anzeigen","filter.new":"Neuheiten","filter.technology":"Technologie",filter:"Filter",gallery:"Galerie","go to startpage":"zur Startseite gehen",height:"Höhe",home:"heim",length:"Länge","lens color":"Linsenfarbe","lens filter category":"Linsenfilterkategorie","lens material":"Linsenmaterial",lensguide:"Linsenführer",level:"Stufe","loading testimonials":"Bewertungen laden",loading:"wird geladen",material:"Material",materials:"Materialien",measurements:"Maße","no results for query":"keine ergebnisse für die suchanfrage","only necessary":"nur notwendig","order number":"Bestellnummer","order date":"Bestelldatum",orderConfirmationTitle:"auftragsbestatigung",orderConfirmationUrl:"auftragsbestatigung",orderLookupUrl:"bestellung-finden","look up your order":"Bestellung finden","look up order":"Bestellung suchen","look up another order":"Weitere Bestellung suchen","return order":"Bestellung zurücksenden","return request sent":"Ihre Rücksendeanfrage wurde gesendet. Wir melden uns in Kürze.","return request failed":"Ihre Rücksendeanfrage konnte nicht gesendet werden. Bitte versuchen Sie es später erneut.","return window closed":"Diese Bestellung ist älter als 60 Tage und kann nicht mehr zurückgesendet werden.","order lookup intro":"Geben Sie Ihre Bestellnummer und die an der Kasse verwendete E-Mail-Adresse ein, um Ihre Bestellung anzuzeigen.","enter your order number":"Bitte geben Sie Ihre Bestellnummer ein","enter a valid email":"Bitte geben Sie eine gültige E-Mail-Adresse ein","no order found":"Keine passende Bestellung gefunden","order lookup failed":"beim Abrufen Ihrer Bestellung ist ein Fehler aufgetreten. bitte versuchen Sie es später erneut","order lookup rate limited":"zu viele Versuche. bitte warten Sie eine Minute und versuchen Sie es erneut",email:"E-Mail",status:"Status","out of stock":"nicht auf Lager","payment by Klarna":"Zahlung per Klarna","product description":"Produktbeschreibung",products:"Produkte","related products":"verwandte produkte","remind me":"erinnere mich",remove:"entfernen","searched for":"suche für",searchUrl:"suche","select size":"Größe auswählen","shipping and delivery":"versand & Lieferung",shipping:"versand","show all":"alle anzeigen","show less":"weniger anzeigen",size:"Größe",sku:"Artikelnummer","sort.priceAsc":"Preis aufsteigend","sort.priceDesc":"Preis absteigend","sort.selected":"ausgewählten","specifications & measurements":"Spezifikationen & Maße",specifications:"Spezifikationen","strap color":"Riemenfarbe","stra
180p material":"Riemenmaterial","suitable conditions":"Geeignete Bedingungen","technical features":"technische Eigenschaften","thank you for your purchase":"Vielen Dank für Ihren Einkauf","to payment":"Zur Zahlung","toggle cart":"Warenkorb umschalten","toggle market selector":"Marktauswahl umschalten","toggle menu":"Menü umschalten",total:"Gesamt",VAT:"MwSt.",weight:"Gewicht",width:"Breite","your cart is empty":"Ihr Warenkorb ist leer","your data, your choice":"Ihre Daten, Ihre Wahl","free deliveries with {{carrier}}":"Kostenlose Lieferungen mit {{carrier}}","30 days return policy":"30 Tage Rückgaberecht","buy now pay later with klarna":"Jetzt kaufen, später bezahlen mit Klarna","delivery in {{days}} business days":"Lieferung in {{days}} Werktagen","select your country":"Wählen Sie Ihr Land","ship to":"Versand nach",language:"Sprache",other:"Andere","shipping restriction notice":"Bitte beachten Sie, dass wir derzeit nur in die oben aufgeführten Länder liefern. Sie können gerne stöbern, aber Einkäufe können an Ihrem Standort nicht abgeschlossen werden.",select:"Auswählen","loading lens guide":"Linsenführer wird geladen...",error:"Fehler","no lens guide data available":"Keine Linsenführer-Daten verfügbar"}},Ku=()=>M.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 448 512",children:M.jsx("path",{stroke:"none",fill:"currentColor",d:"M190.5 66.9l22.2-22.2c9.4-9.4 24.6-9.4 33.9 0L441 239c9.4 9.4 9.4 24.6 0 33.9L246.6 467.3c-9.4 9.4-24.6 9.4-33.9 0l-22.2-22.2c-9.5-9.5-9.3-25 .4-34.3L311.4 296H24c-13.3 0-24-10.7-24-24v-32c0-13.3 10.7-24 24-24h287.4L190.9 101.2c-9.8-9.3-10-24.8-.4-34.3z"})}),Yu=()=>M.jsx("svg",{viewBox:"0 0 256 256",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:M.jsx("path",{fill:"currentColor",d:"m229.66 77.66-128 128a8 8 0 0 1-11.32 0l-56-56a8 8 0 0 1 11.32-11.32L96 188.69 218.34 66.34a8 8 0 0 1 11.32 11.32Z"})}),Gu=({strokeWidth:e=2})=>M.jsx("svg",{viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:M.jsx("path",{d:"m18 9-6 6-6-6",stroke:"currentColor",strokeWidth:e,strokeLinecap:"square"})}),Ju=({strokeWidth:e=2})=>M.jsx("svg",{viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:M.jsx("path",{d:"M15 19.5 7.5 12 15 4.5",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:e})}),Wu=({strokeWidth:e=2})=>M.jsx("svg",{viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:M.jsx("path",{d:"m9 4.5 7.5 7.5L9 19.5",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:e})}),Xu=()=>M.jsx("svg",{viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:M.jsx("g",{stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",children:M.jsx("path",{d:"m6.167 6.166 11.667 11.668M17.834 6.166 6.166 17.834"})})}),$a=()=>M.jsx("svg",{viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:M.jsx("path",{stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",d:"M3.75 12h16.5M12 3.75v16.5"})}),qa=()=>M.jsx("svg",{viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:M.jsx("path",{d:"M3.75 12h16.5",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"})}),Zu=()=>M.jsxs("svg",{width:"24",height:"24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[M.jsx("path",{d:"M17.625 17.25H8.547a1.5 1.5 0 0 1-1.475-1.232L4.568 2.25H2.25M8.625 21a1.875 1.875 0 1 0 0-3.75 1.875 1.875 0 0 0 0 3.75ZM17.625 21a1.875 1.875 0 1 0 0-3.75 1.875 1.875 0 0 0 0 3.75Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),M.jsx("path",{d:"M6.614 13.5h11.77a1.5 1.5 0 0 0 1.476-1.232L21 6H5.25",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"})]}),el=()=>M.jsx("svg",{width:"24",height:"24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:M.jsx("path",{d:"M3.75 15h16.5M3.75 9h16.5",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"})}),tl=()=>M.jsx("svg",{viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:M.jsx("path",{d:"M12 4V1M12 17.25a5.25 5.25 0 1 0 0-10.5 5.25 5.25 0 0 0 0 10.5ZM6 6 4 4M6 18l-2 2M18 6l2-2M18 18l2 2M4 12H1M12 20v3M20 12h3",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"})}),Ua=()=>M.jsx("svg",{viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:M.jsx("path",{stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",d:"M20.25 5.25H3.75M9.75 9.75v6M14.25 9.75v6M18.75 5.25V19.5a.75.75 0 0 1-.75.75H6a.75.75 0 0 1-.75-.75V5.25M15.75 5.25v-1.5a1.5 1.5 0 0 0-1.5-1.5h-4.5a1.5 1.5 0 0 0-1.5 1.5v1.5"})}),rl=()=>M.jsx("svg",{viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:M.jsx("path",{d:"M3 12h18M3 12a9 9 0 0 0 9 9m-9-9a9 9 0 0 1 9-9m9 9a9 9 0 0 1-9 9m9-9a9 9 0 0 0-9-9m0 18C4.756 13.08 8.982 5.7 12 3m0 18c7.244-7.92 3.018-15.3 0-18",stroke:"#000",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})}),nl=()=>M.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",children:M.jsxs("g",{stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",children:[M.jsx("path",{d:"M17.25 7.5h3.992a.75.75 0 0 1 .695.469l1.313 3.281M2.25 13.5h15M18 20.25a2.25 2.25 0 1 0 0-4.5 2.25 2.25 0 0 0 0 4.5ZM7.5 20.25a2.25 2.25 0 1 0 0-4.5 2.25 2.25 0 0 0 0 4.5ZM15.75 18h-6"}),M.jsx("path",{d:"M17.25 11.25h6v6a.75.75 0 0 1-.75.75h-2.25M5.25 18H3a.75.75 0 0 1-.75-.75V6.75A.75.75 0 0 1 3 6h14.25v9.878"})]})}),il=()=>M.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",children:M.jsx("g",{stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",children:M.jsx("path",{d:"M19.5 3.75h-15a.75.75 0 0 0-.75.75v15c0 .414.336.75.75.75h15a.75.75 0 0 0 .75-.75v-15a.75.75 0 0 0-.75-.75ZM16.5 2.25v3M7.5 2.25v3M3.75 8.25h16.5"})})}),sl=()=>M.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",children:M.jsxs("g",{stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",children:[M.jsx("path",{d:"M2.25 5.25v4.5h4.5"}),M.jsx("path",{d:"M6.337 18a8.25 8.25 0 1 0-.171-11.834L2.25 9.75"})]})}),al=()=>M.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",children:M.jsxs("g",{stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",children:[M.jsx("path",{d:"M12 12.102v9.645M3.065 7.21 12 12.1l8.934-4.89"}),M.jsx("path",{d:"m20.61 17.142-8.25 4.516a.75.75 0 0 1-.72 0l-8.25-4.517a.75.75 0 0 1-.39-.656V7.517a.75.75 0 0 1 .39-.656l8.25-4.517a.75.75 0 0 1 .72 0l8.25 4.517a.75.75 0 0 1 .39.656v8.966a.75.75 0 0 1-.39.659Z"}),M.jsx("path",{d:"M7.646 4.53 16.5 9.374v4.875"})]})}),ol=()=>M.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"none",children:M.jsx("g",{stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",children:M.jsx("path",{d:"M15 25H9M23 25h-3M20 29h-7M11 12a8.508 8.508 0 1 1 8.5 9h-10a5.5 5.5 0 1 1 1.775-10.707"})})}),ul=()=>M.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"none",children:M.jsx("g",{children:M.jsx("path",{stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",d:"M10 16a10 10 0 1 1 10 10
180H9a7 7 0 1 1 1.74-13.783"})})}),ll=()=>M.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"none",children:M.jsxs("g",{stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",children:[M.jsx("path",{d:"m10.957 7.092-.52-2.955M7.086 9.557 4.63 7.836M6.092 14.04l-2.955.52M15.44 8.086l1.72-2.457M12 18a8.509 8.509 0 1 1 8.5 9h-10a5.5 5.5 0 1 1 1.775-10.707"}),M.jsx("path",{d:"M7.456 16.92a6 6 0 1 1 10.024-6.368"})]})}),cl=()=>M.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"none",children:M.jsx("g",{stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",children:M.jsx("path",{d:"m12 26 4-6M15 30l4-6M11 11a8.508 8.508 0 1 1 8.5 9h-10a5.5 5.5 0 1 1 1.775-10.707"})})}),Qa="_cartProduct_h90d4_1",Ha="_imageContainer_h90d4_15",Ba="_contentColumn_h90d4_30",za="_contentColumnReadOnly_h90d4_37",Va="_nameRow_h90d4_42",Ka="_name_h90d4_42",Ya="_variant_h90d4_54",Ga="_size_h90d4_59",Ja="_price_h90d4_64",Wa="_actions_h90d4_68",Xa="_quantity_h90d4_76",Za="_removeContainer_h90d4_102",ye={cartProduct:Qa,imageContainer:Ha,contentColumn:Ba,contentColumnReadOnly:za,nameRow:Va,name:Ka,variant:Ya,size:Ga,price:Ja,actions:Wa,quantity:Xa,removeContainer:Za};function pi(e){var r,t,n="";if(typeof e=="string"||typeof e=="number")n+=e;else if(typeof e=="object")if(Array.isArray(e)){var i=e.length;for(r=0;r<i;r++)e[r]&&(t=pi(e[r]))&&(n&&(n+=" "),n+=t)}else for(t in e)e[t]&&(n&&(n+=" "),n+=t);return n}function Ft(){for(var e,r,t=0,n="",i=arguments.length;t<i;t++)(e=arguments[t])&&(r=pi(e))&&(n&&(n+=" "),n+=r);return n}const eo=(e,r,t)=>{typeof gtag<"u"&&gtag("event","page_view",{page_title:e,page_location:r,experiment:t})},to=(e,r,t)=>{typeof gtag<"u"&&gtag("event","view_item",{currency:r,value:e.price,items:[e],experiment:t})},vi=(e,r,t,n)=>{typeof gtag<"u"&&gtag("event",e,{currency:t,value:r.price?(r.quantity||1)*r.price:0,items:[r],experiment:n})},ro=(e,r,t,n)=>{typeof gtag<"u"&&gtag("event","view_cart",{currency:t,value:e,items:r,experiment:n})},no=(e,r,t,n)=>{typeof gtag<"u"&&gtag("event","begin_checkout",{currency:t,value:e,items:r,experiment:n})},io=(e,r,t,n,i,s,o,a)=>{typeof gtag<"u"&&gtag("event","purchase",{currency:s,transaction_id:e,value:t,shipping:i,tax:n,items:r,experiment:a}),o&&typeof gtag<"u"&&gtag("event","conversion",{send_to:o,value:t,currency:s,transaction_id:e})},dl=e=>gtag("event","search",{search_term:e}),fl=({adUserdata:e,adPersonalization:r,adStorage:t,analyticsStorage:n})=>{const i={};typeof e<"u"&&(i.ad_user_data=e?"granted":"denied"),typeof r<"u"&&(i.ad_personalization=r?"granted":"denied"),typeof t<"u"&&(i.ad_storage=t?"granted":"denied"),typeof n<"u"&&(i.analytics_storage=n?"granted":"denied"),typeof gtag<"u"&&gtag("consent","update",i)};let ur=[];const yt=(e,r)=>{typeof fbq<"u"?fbq("track",e,r):ur.push({eventName:e,eventObj:r})},so=()=>{typeof fbq<"u"&&(ur.forEach(e=>{fbq("track",e.eventName,e.eventObj)}),ur=[])},hl=e=>{var r;if(typeof fbq>"u"&&typeof document<"u"){const t=document.createElement("script");t.innerHTML=`
181        !function(f,b,e,v,n,t,s)
182        {if(f.fbq)return;n=f.fbq=function(){n.callMethod?
183        n.callMethod.apply(n,arguments):n.queue.push(arguments)};
184        if(!f._fbq)f._fbq=n;n.push=n;n.loaded=!0;n.version='2.0';
185        n.queue=[];t=b.createElement(e);t.async=!0;
186        t.src=v;s=b.getElementsByTagName(e)[0];
187        s.parentNode.insertBefore(t,s)}(window,document,'script',
188        'https://connect.facebook.net/en_US/fbevents.js');
189          fbq('init', '${e}'); 
190        fbq('track', 'PageView');
191    `,(r=document.querySelector("head"))==null||r.append(t),so()}},ao=()=>{yt("PageView",{})},oo=(e,r)=>{yt("ViewContent",{contents:[{id:e.item_id,item_price:e.price,quantity:1}],content_category:e.item_category,content_ids:[e.item_id],content_name:[e.item_name,e.item_variant].join(" "),content_type:"product",currency:r,value:e.price})},mi=(e,r)=>{yt("AddToCart",{contents:[{id:e.item_id,quantity:1,item_price:e.price}],content_category:e.item_category,content_ids:[e.item_id],content_name:[e.item_name,e.item_variant].join(" "),content_type:"product",currency:r,value:e.price})},uo=(e,r,t)=>{yt("InitiateCheckout",{contents:r.map(n=>({id:n.item_id,quantity:n.quantity||1,item_price:n.price})),content_ids:r.map(n=>n.item_id),content_type:"product_group",currency:t,num_items:r.reduce((n,i)=>n+(i.quantity||0),0),value:e})},lo=(e,r,t)=>{yt("Purchase",{contents:r.map(n=>({id:n.item_id,quantity:n.quantity||1,item_price:n.price})),content_ids:r.map(n=>n.item_id),content_type:"product_group",currency:t,num_items:r.reduce((n,i)=>n+(i.quantity||0),0),value:e})};/*! js-cookie v3.0.5 | MIT */function St(e){for(var r=1;r<arguments.length;r++){var t=arguments[r];for(var n in t)e[n]=t[n]}return e}var co={read:function(e){return e[0]==='"'&&(e=e.slice(1,-1)),e.replace(/(%[\dA-F]{2})+/gi,decodeURIComponent)},write:function(e){return encodeURIComponent(e).replace(/%(2[346BF]|3[AC-F]|40|5[BDE]|60|7[BCD])/g,decode
191URIComponent)}};function lr(e,r){function t(i,s,o){if(!(typeof document>"u")){o=St({},r,o),typeof o.expires=="number"&&(o.expires=new Date(Date.now()+o.expires*864e5)),o.expires&&(o.expires=o.expires.toUTCString()),i=encodeURIComponent(i).replace(/%(2[346B]|5E|60|7C)/g,decodeURIComponent).replace(/[()]/g,escape);var a="";for(var u in o)o[u]&&(a+="; "+u,o[u]!==!0&&(a+="="+o[u].split(";")[0]));return document.cookie=i+"="+e.write(s,i)+a}}function n(i){if(!(typeof document>"u"||arguments.length&&!i)){for(var s=document.cookie?document.cookie.split("; "):[],o={},a=0;a<s.length;a++){var u=s[a].split("="),l=u.slice(1).join("=");try{var c=decodeURIComponent(u[0]);if(o[c]=e.read(l,c),i===c)break}catch{}}return i?o[i]:o}}return Object.create({set:t,get:n,remove:function(i,s){t(i,"",St({},s,{expires:-1}))},withAttributes:function(i){return lr(this.converter,St({},this.attributes,i))},withConverter:function(i){return lr(St({},this.converter,i),this.attributes)}},{attributes:{value:Object.freeze(r)},converter:{value:Object.freeze(e)}})}var on=lr(co,{path:"/"});const fo=new Map,yi=K.createContext({experiments:new Map,trackingStrings:[],loading:!0}),pl=({children:e})=>{const[r,t]=K.useState(new Map),[n,i]=K.useState(!0),s=on.get("osexp");K.useEffect(()=>{let a=s||"";const u=s?s.split(";"):[],l=new Map;u.forEach(c=>{const[p,d]=c.split(".");l.set(p,d)}),fo.forEach((c,p)=>{if(!l.has(p)){const h=Math.random()<c?"1":"0";l.set(p,h),a=Array.from(l.entries()).map(([f,v])=>`${f}.${v}`).join(";")}}),a!==s&&on.set("osexp",a,{expires:1}),t(l),i(!1)},[]);const o={experiments:r,trackingStrings:Array.from(r.entries()).map(([a,u])=>`${a}.${u}`),loading:n};return M.jsx(yi.Provider,{value:o,children:e})},Sr=()=>K.useContext(yi),ho=e=>e.reduce((r,t,n)=>({...r,[`item_category${n?n+1:""}`]:t}),{}),Ze=(e,r)=>({...ho(e.categoryName),item_brand:e.brandName,item_id:e.sku,item_name:e.name,item_variant:e.variantName,price:e.priceAsNumber,quantity:r}),It=e=>Ze(e.product,e.quantity),vl=(e,r,t)=>{const n=Ze(e,1);to(n,r,t==null?void 0:t[0]),oo(n,r)},ml=()=>{const{trackingStrings:e}=Sr();return K.useCallback((r,t,n,i)=>{if(!t)return;const s=t>0?"add_to_cart":"remove_from_cart",o=n==null?void 0:n.items.find(a=>a.item===r);o!=null&&o.product&&(vi(s,Ze(o.product,Math.abs(t)),i,e==null?void 0:e[0]),s==="add_to_cart"&&mi(Ze(o.product,Math.abs(t)),i))},[])},po=()=>K.useCallback((e,r,t,n)=>{if(!r)return;const i=r>0?"add_to_cart":"remove_from_cart";e&&(vi(i,Ze(e,Math.abs(r)),t,n==null?void 0:n[0]),i==="add_to_cart"&&mi(Ze(e,Math.abs(r)),t))},[]),yl=()=>{const{count:e,selection:r}=Ht.useSelection(),{trackingStrings:t}=Sr();K.useEffect(()=>{r&&e>0&&ro(r.totals.itemsTotalPriceAsNumber,r.items.map(It),t[0])},[])},gl=()=>{const e=K.useRef(!1),{count:r,selection:t}=Ht.useSelection(),{trackingStrings:n}=Sr();K.useEffect(()=>{t&&r>0&&!e.current&&(no(t.totals.itemsTotalPriceAsNumber,t.items.map(It),t.currency,n[0]),uo(t.totals.itemsTotalPriceAsNumber,t.items.map(It),t.currency),e.current=!0)},[t,r])},wl=(e,r)=>K.useCallback((t,n)=>{const i=t.order||`missing-${new Date().getTime()}`,s=t.items.map(It),o=t.totals.grandTotalPriceAsNumber,a=t.totals.grandTotalPriceTaxAsNumber,u=t.totals.shippingPriceAsNumber;io(i,s,o,a,u,r,e,n[0]),lo(o,s,r)},[e]),_l=(e,r,t)=>{eo(e,r,t[0]),ao()},vo=e=>(e==null?void 0:e.replace(".00",""))||e,un=({children:e,to:r,...t})=>r?M.jsx(Ji,{to:r,...t,children:e}):M.jsx("span",{...t,children:e});class ln extends Error{constructor(t,n){super(`Http request failed with status ${t.status}`);Ve(this,"_response");Ve(this,"_payload");this._response=t,this._payload=n}get statusCode(){return this._response.status}get statusText(){return this._response.statusText}get url(){return this._response.url}get response(){return this._response}get payload(){return this._payload}}const mo=()=>async e=>{try{const r=await e.json();if(e.ok)return r;throw new ln(e,r)}catch{throw new ln(e)}},yo=(e,r)=>fetch(e,{method:"GET",headers:r}).then(mo()),go=(e,r)=>{const t=K.useContext(e);if(t===void 0)throw new Error("Context can not be undefined");return t},cn=new Map([["sv",{code:"sv",name:"Svenska"}],["en",{code:"en",name:"English"}]]),wo=(e,r)=>{const t=s=>s==="SE"?0:s==="IT"?1:2,n=t(e.country),i=t(r.country);return n!==i?n-i:e.country.localeCompare(r.country)},bl=({children:e,locations:r,endpoint:t,defaultLanguage:n,defaultMarket:i,defaultPricelist:s,savedPreferedLocation:o,marketPrefix:a,countryHosts:u})=>{const[l,c]=K.useState(),[p,d]=K.useState({code:n,name:""}),[h,f]=K.useState(i),[v,y]=K.useState(s),[_,m]=K.useState(),[w,b]=K.useState(),[C,g]=K.useState(),[k,R]=K.useState(!1),O=Wi(),{setCountry:S}=Ht.useSelection(),E=K.useMemo(()=>[...new Set((r==null?void 0:r.map(A=>A.language))||[])].map(A=>A&&cn.has(A.toLowerCase())&&cn.get(A.toLowerCase())).filter(A=>A!==!1&&A!==""&&A!==void 0),[r]),x=K.useCallback(D=>{D.length>0&&!o&&yo(`${t}/countries/auto`).then(A=>{const q={country:A.country.country,name:A.country.name};if(r.find(G=>G.country===q.country)){if(c(q),m(q),A.country.language){const G=D.find($=>{var z;return $.code===((z=A.country.language)==null?void 0:z.toLowerCase())});b(G)}}else m({country:"other",name:"Other"}),b({code:"en",name:"English"})})},[t,o]),L=K.useCallback(async()=>
191{if(!_||!w)return!1;R(!0);let D=!1;const A=l;c(_),_.country!=="other"&&S(_.country);const q=new FormData;q.append("action","savePreferedLocation"),q.append("country",_.country.toLowerCase()),q.append("language",w.code);const F={country:_.country.toLowerCase(),language:w.code};_.market&&(q.append("market",_.market),F.market=_.market),_.pricelist&&(q.append("pricelist",_.pricelist),F.pricelist=_.pricelist),await O.submit(q,{method:"post"}),_.market&&_.market!==h&&f(_.market),_.market&&_.market!==v&&y(_.market);const G=`${location.protocol}//`,z=(u[_.country.toLocaleLowerCase()]||u.all).split("/"),oe=location.port?`:${location.port}`:"",ue=`${G}${z[0]}${oe}${z[1]?`/${z[1]}`:""}`;let te=location.pathname;A&&u[A.country.toLocaleLowerCase()]&&(te=te.replace(`/${A.country.toLocaleLowerCase()}`,""));let P=new URL(`${ue}${te}`);if(p&&p.code!==w.code){const T=C==null?void 0:C.find(I=>I.language===w.code);T&&(P=new URL(`${ue}/${T.uri}`),P.searchParams.append("pl",btoa(JSON.stringify(F))))}return P.toString()!==location.href&&(P.searchParams.append("pl",btoa(JSON.stringify(F))),D=!0,location.href=P.toString()),D||R(!1),D},[p,h,v,C,u,O,_,w,S]);K.useEffect(()=>{x(E)},[E,x]),K.useEffect(()=>{var D,A;if(o){const q=r.find(z=>z.country===o.country.toUpperCase()),F=E.find(z=>z.code===o.language),G=(D=r.find(z=>z.market===o.market))==null?void 0:D.market,$=(A=r.find(z=>z.pricelist===o.pricelist))==null?void 0:A.pricelist;q&&(c(q),m(q),S(q.country)),F&&(d(F),b(F)),G&&f(G),$&&y($)}},[o,r,E]);const j={availableCountries:r.sort(wo),availableLanguages:E,activeCountry:l,activeLanguage:p,loading:k,preselectedCountry:_,preselectedLanguage:w,saveLocation:L,setPreselectedCountry:m,setPreselectedLanguage:b,setAlternativeUrls:g,marketPrefix:a};return M.jsx(gi.Provider,{value:j,children:e})},gi=K.createContext(void 0),_o=()=>go(gi),bo=()=>{const{marketPrefix:e}=_o();return r=>{var t;if(!r){const i=(t=new Error().stack)==null?void 0:t.split(`
192`).slice(2).join(`
193`);return console.warn("url is empty",{calledFrom:i}),""}return r.indexOf(":")>=0?r:e?r.startsWith(`/${e}/`)||r.startsWith(`${e}/`)?r:r.startsWith("/")?`/${e}${r}`:`/${e}/${r}`:r.startsWith("/")?r:`/${r}`}},Sl=({item:e,quantity:r,product:t,size:n,sku:i,readOnly:s,onProductNav:o})=>{var _,m;const{increaseQuantity:a,decreaseQuantity:u,removeItem:l,selection:c}=Ht.useSelection(),p=po(),d=bo(),{tc:h}=br(),f=K.useCallback(()=>{a(e).then(()=>{t&&p(t,1,(c==null?void 0:c.currency)||"")})},[a,e,t]),v=K.useCallback(()=>{u(e).then(({selection:w})=>{t&&p(t,-1,(w==null?void 0:w.currency)||"")})},[u,e,t]),y=K.useCallback(()=>{l(e).then(({quantity:w})=>{t&&p(t,-w,(c==null?void 0:c.currency)||"")})},[l,e,t]);return M.jsxs("div",{className:ye.cartProduct,children:[M.jsx(un,{to:t==null?void 0:t.uri,className:ye.imageContainer,onClick:o,children:M.jsx("img",{src:(m=(_=t==null?void 0:t.media)==null?void 0:_.small)==null?void 0:m[0],alt:""})}),M.jsxs("div",{className:Ft(ye.contentColumn,s&&ye.contentColumnReadOnly),children:[M.jsxs("div",{className:ye.nameRow,children:[M.jsxs("div",{children:[M.jsxs(un,{to:d(`/${(t==null?void 0:t.uri)||""}`),className:ye.name,onClick:o,children:[s&&M.jsxs("span",{children:[r," x "]}),(t==null?void 0:t.name)||i]}),M.jsx("div",{className:ye.variant,children:t==null?void 0:t.variantName}),n&&n.toLocaleLowerCase()!=="one size"&&M.jsxs("div",{className:ye.size,children:[h("size"),": ",n]})]}),M.jsx("div",{className:ye.price,children:vo((t==null?void 0:t.price)||"")})]}),!s&&M.jsxs("div",{className:ye.actions,children:[M.jsxs("div",{className:ye.quantity,children:[M.jsx("button",{onClick:v,children:M.jsx(qa,{})}),M.jsx("div",{className:ye.quantityNumber,children:r}),M.jsx("button",{onClick:f,children:M.jsx($a,{})})]}),M.jsx("div",{className:ye.removeContainer,children:M.jsx("button",{onClick:y,children:M.jsx(Ua,{})})})]})]})]})},So="_row_1np4y_1",Ro="_rowEmphasize_1np4y_8 _row_1np4y_1",Eo="_rowDiffuse_1np4y_27 _row_1np4y_1",je={row:So,rowEmphasize:Ro,rowDiffuse:Eo},Rl=({products:e,shipping:r,total:t,vat:n})=>{const{tc:i}=br();return M.jsxs("div",{children:[e&&M.jsxs("div",{className:je.row,children:[M.jsx("div",{className:je.column,children:i("products")}),M.jsx("div",{children:e})]}),r&&M.jsxs("div",{className:je.row,children:[M.jsx("div",{className:je.column,children:i("shipping")}),M.jsx("div",{children:r})]}),t&&M.jsxs("div",{className:je.rowEmphasize,children:[M.jsx("div",{className:je.column,children:i("total")}),M.jsx("div",{children:t})]}),n&&M.jsxs("div",{className:je.rowDiffuse,children:[M.jsx("div",{className:je.column,children:i("VAT")}),M.jsx("div",{children:n})]})]})},Co="_wrapper_79u75_6",ko="_inline_79u75_11",Oo="_cover_79u75_18",xo="_spinner_79u75_38",Po="_rotate_79u75_1",Mo="_sizeLarge_79u75_49",Lo="_srOnly_79u75_55",Ye={wrapper:Co,inline:ko,cover:Oo,spinner:xo,rotate:Po,sizeLarge:Mo,srOnly:Lo},be=e=>e.charAt(0).toUpperCase()+e.slice(1),El=({inline:e,size:r,cover:t})=>{const{tc:n}=br();return M.jsxs("div",{className:Ft(Ye.wrapper,e&&Ye.inline,t&&Ye.cover),children:[M.jsx("div",{className:Ft(Ye.spinner,r&&Ye[`size${be(r)}`]),"aria-hidden":"true"}),M.jsxs("div",{className:Ye.srOnly,children:[n("loading"),"..."]})]})},Ao="_button_1s5hy_1",jo="_sizeSmall_1s5hy_30",Do="_sizeMini_1s5hy_36",To="_full_1s5hy_44",Fo="_variantGhost_1s5hy_48",Io="_toneAccent_1s5hy_53",No="_variantAccent_1s5hy_61",$o="_shapeRound_1s5hy_70",Ge={button:Ao,sizeSmall:jo,sizeMini:Do,full:To,variantGhost:Fo,toneAccent:Io,variantAccent:No,shapeRound:$o};var ae={},Jt={};/**
194 * @remix-run/react v2.16.2
195 *
196 * Copyright (c) Remix Software Inc.
197 *
198 * This source code is licensed under the MIT license found in the
199 * LICENSE.md file in the root directory of this source tree.
200 *
201 * @license MIT
202 */var dn;function qo(){return dn||(dn=1,function(e){Object.defineProperty(e,"__esMo
202dule",{value:!0});function r(){return r=Object.assign?Object.assign.bind():function(t){for(var n=1;n<arguments.length;n++){var i=arguments[n];for(var s in i)Object.prototype.hasOwnProperty.call(i,s)&&(t[s]=i[s])}return t},r.apply(this,arguments)}e.extends=r}(Jt)),Jt}const Bt=$t(Xi);/**
203 * @remix-run/react v2.16.2
204 *
205 * Copyright (c) Remix Software Inc.
206 *
207 * This source code is licensed under the MIT license found in the
208 * LICENSE.md file in the root directory of this source tree.
209 *
210 * @license MIT
211 */var Wt,fn;function Rr(){if(fn)return Wt;fn=1;function e(r,t){if(r===!1||r===null||typeof r>"u")throw new Error(t)}return Wt=e,Wt}var ke={};function Uo(e){throw new Error('Could not dynamically require "'+e+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}var Rt={};/**
212 * @remix-run/react v2.16.2
213 *
214 * Copyright (c) Remix Software Inc.
215 *
216 * This source code is licensed under the MIT license found in the
217 * LICENSE.md file in the root directory of this source tree.
218 *
219 * @license MIT
220 */var hn;function wi(){if(hn)return Rt;
220hn=1,Object.defineProperty(Rt,"__esModule",{value:!0});function e(t){if(t&&t.__esModule)return t;var n=Object.create(null);return t&&Object.keys(t).forEach(function(i){if(i!=="default"){var s=Object.getOwnPropertyDescriptor(t,i);Object.defineProperty(n,i,s.get?s:{enumerable:!0,get:function(){return t[i]}})}}),n.default=t,Object.freeze(n)}async function r(t,n){if(t.id in n)return n[t.id];try{let i=await function(s){return Promise.resolve().then(function(){return e(Uo(s))})}(t.module);return n[t.id]=i,i}catch(i){return console.error(`Error loading route module \`${t.module}\`, reloading page...`),console.error(i),window.__remixContext.isSpaMode,window.location.reload(),new Promise(()=>{})}}return Rt.loadRouteModule=r,Rt}/**
221 * @remix-run/react v2.16.2
222 *
223 * Copyright (c) Remix Software Inc.
224 *
225 * This source code is licensed under the MIT license found in the
226 * LICENSE.md file in the root directory of this source tree.
227 *
228 * @license MIT
229 */var pn;function _i(){if(pn)return ke;pn=1,Object.defineProperty(ke,"__esModule",{value:!0});var e=Bt,r=wi();function t(m,w,b){let C=m.map(k=>{var R;let O=w[k.route.id],S=b.routes[k.route.id];return[S.css?S.css.map(E=>({rel:"stylesheet",href:E})):[],(O==null||(R=O.links)===null||R===void 0?void 0:R.call(O))||[]]}).flat(2),g=p(m,b);return f(C,g)}async function n(m,w){var b,C;if(!m.css&&!w.links||!_())return;let g=[((b=m.css)===null||b===void 0?void 0:b.map(O=>({rel:"stylesheet",href:O})))??[],((C=w.links)===null||C===void 0?void 0:C.call(w))??[]].flat(1);if(g.length===0)return;let k=[];for(let O of g)!s(O)&&O.rel==="stylesheet"&&k.push({...O,rel:"preload",as:"style"});let R=k.filter(O=>(!O.media||window.matchMedia(O.media).matches)&&!document.querySelector(`link[rel="stylesheet"][href="${O.href}"]`));await Promise.all(R.map(i))}async function i(m){return new Promise(w=>{let b=document.createElement("link");Object.assign(b,m);function C(){document.head.contains(b)&&document.head.removeChild(b)}b.onload=()=>{C(),w()},b.onerror=()=>{C(),w()},document.head.appendChild(b)})}function s(m){return m!=null&&typeof m.page=="string"}function o(m){return m==null?!1:m.href==null?m.rel==="preload"&&typeof m.imageSrcSet=="string"&&typeof m.imageSizes=="string":typeof m.rel=="string"&&typeof m.href=="string"}async function a(m,w,b){let C=await Promise.all(m.map(async g=>{let k=await r.loadRouteModule(w.routes[g.route.id],b);return k.links?k.links():[]}));return f(C.flat(1).filter(o).filter(g=>g.rel==="stylesheet"||g.rel==="preload").map(g=>g.rel==="stylesheet"?{...g,rel:"prefetch",as:"style"}:{...g,rel:"prefetch"}))}function u(m,w,b,C,g,k,R){let O=v(m),S=(L,j)=>b[j]?L.route.id!==b[j].route.id:!0,E=(L,j)=>{var D;return b[j].pathname!==L.pathname||((D=b[j].route.path)===null||D===void 0?void 0:D.endsWith("*"))&&b[j].params["*"]!==L.params["*"]};return R==="data"&&(k.v3_singleFetch||g.search!==O.search)?w.filter((L,j)=>{if(!C.routes[L.route.id].hasLoader)return!1;if(S(L,j)||E(L,j))return!0;let A=k.v3_singleFetch||g.search!==O.search;if(L.route.shouldRevalidate){var q;let F=L.route.shouldRevalidate({currentUrl:new URL(g.pathname+g.search+g.hash,window.origin),currentParams:((q=b[0])===null||q===void 0?void 0:q.params)||{},nextUrl:new URL(m,window.origin),nextParams:L.params,defaultShouldRevalidate:A});if(typeof F=="boolean")return F}return A}):w.filter((L,j)=>{let D=C.routes[L.route.id];return(R==="assets"||D.hasLoader)&&(S(L,j)||E(L,j))})}function l(m,w,b){let C=v(m);return d(w.filter(g=>b.routes[g.route.id].hasLoader&&!b.routes[g.route.id].hasClientLoader).map(g=>{let{pathname:k,search:R}=C,O=new URLSearchParams(R);return O.set("_data",g.route.id),`${k}?${O}`}))}function c(m,w){return d(m.map(b=>{let C=w.routes[b.route.id],g=[C.module];return C.imports&&(g=g.concat(C.imports)),g}).flat(1))}function p(m,w){return d(m.map(b=>{let C=w.routes[b.route.id],g=[C.module];return C.imports&&(g=g.concat(C.imports)),g}).flat(1))}function d(m){return[...new Set(m)]}function h(m){let w={},b=Object.keys(m).sort();for(let C of b)w[C]=m[C];return w}function f(m,w){let b=new Set,C=new Set(w);return m.reduce((g,k)=>{if(w&&!s(k)&&k.as==="script"&&k.href&&C.has(k.href))return g;let O=JSON.stringify(h(k));return b.has(O)||(b.add(O),g.push({key:O,link:k})),g},[])}function v(m){let w=e.parsePath(m);return w.search===void 0&&(w.search=""),w}let y;function _(){if(y!==void 0)return y;let m=document.createElement("link");return y=m.relList.supports("preload"),m=null,y}return ke.getDataLinkHrefs=l,ke.getKeyedLinksForMatches=t,ke.getKeyedPrefetchLinks=a,ke.getModuleLinkHrefs=c,ke.getNewMatchesForLinks=u,ke.isPageLinkDescriptor=s,ke.prefetchStyleLinks=n,ke}var st={};
229/**
230 * @remix-run/react v2.16.2
231 *
232 * Copyright (c) Remix Software Inc.
233 *
234 * This source code is licensed under the MIT license found in the
235 * LICENSE.md file in the root directory of this source tree.
236 *
237 * @license MIT
238 */var vn;function bi(){if(vn)return st;vn=1,Object.defineProperty(st,"__esModule",{value:!0});const e={"&":"\\u0026",">":"\\u003e","<":"\\u003c","\u2028":"\\u2028","\u2029":"\\u2029"},r=/[&><\u2028\u2029]/g;function t(i){return i.replace(r,s=>e[s])}function n(i){return{__html:i}}return st.createHtml=n,st.escapeHtml=t,st}var qe={};const zt=$t(Zi),Qo=$t(Qs);var Ue={},at={},H={},mn;function Er(){if(mn)return H;mn=1,Object.defineProperty(H,"__esModule",{value:!0}),H.createLineSplittingTransform=H.Deferred=H.TYPE_PREVIOUS_RESOLVED=H.TYPE_URL=H.TYPE_SYMBOL=H.TYPE_SET=H.TYPE_REGEXP=H.TYPE_PROMISE=H.TYPE_NULL_OBJECT=H.TYPE_MAP=H.TYPE_ERROR=H.TYPE_DATE=H.TYPE_BIGINT=H.UNDEFINED=H.POSITIVE_INFINITY=H.NULL=H.NEGATIVE_ZERO=H.NEGATIVE_INFINITY=H.NAN=H.HOLE=void 0,H.HOLE=-1,H.NAN=-2,H.NEGATIVE_INFINITY=-3,H.NEGATIVE_ZERO=-4,H.NULL=-5,H.POSITIVE_INFINITY=-6,H.UNDEFINED=-7,H.TYPE_BIGINT="B",H.TYPE_DATE="D",H.TYPE_ERROR="E",H.TYPE_MAP="M",H.TYPE_NULL_OBJECT="N",H.TYPE_PROMISE="P",H.TYPE_REGEXP="R",H.TYPE_SET="S",H.TYPE_SYMBOL="Y",H.TYPE_URL="U",H.TYPE_PREVIOUS_RESOLVED="Z";class e{constructor(){Ve(this,"promise");Ve(this,"resolve");Ve(this,"reject");this.promise=new Promise((n,i)=>{this.resolve=n,this.reject=i})}}H.Deferred=e;function r(){const t=new TextDecoder;let n="";return new TransformStream({transform(i,s){const o=t.decode(i,{stream:!0}),a=(n+o).split(`
239`);n=a.pop()||"";for(const u of a)s.enqueue(u)},flush(i){n&&i.enqueue(n)}})}return H.createLineSplittingTransform=r,H}var yn;function Ho(){if(yn)return at;
239yn=1,Object.defineProperty(at,"__esModule",{value:!0}),at.flatten=void 0;const e=Er();function r(s){const{indices:o}=this,a=o.get(s);if(a)return[a];if(s===void 0)return e.UNDEFINED;if(s===null)return e.NULL;if(Number.isNaN(s))return e.NAN;if(s===Number.POSITIVE_INFINITY)return e.POSITIVE_INFINITY;if(s===Number.NEGATIVE_INFINITY)return e.NEGATIVE_INFINITY;if(s===0&&1/s<0)return e.NEGATIVE_ZERO;const u=this.index++;return o.set(s,u),t.call(this,s,u),u}at.flatten=r;function t(s,o){const{deferred:a,plugins:u,postPlugins:l}=this,c=this.stringified,p=[[s,o]];for(;p.length>0;){const[d,h]=p.pop(),f=y=>Object.keys(y).map(_=>`"_${r.call(this,_)}":${r.call(this,y[_])}`).join(",");let v=null;switch(typeof d){case"boolean":case"number":case"string":c[h]=JSON.stringify(d);break;case"bigint":c[h]=`["${e.TYPE_BIGINT}","${d}"]`;break;case"symbol":{const y=Symbol.keyFor(d);y?c[h]=`["${e.TYPE_SYMBOL}",${JSON.stringify(y)}]`:v=new Error("Cannot encode symbol unless created with Symbol.for()");break}case"object":{if(!d){c[h]=`${e.NULL}`;break}const y=Array.isArray(d);let _=!1;if(!y&&u)for(const m of u){const w=m(d);if(Array.isArray(w)){_=!0;const[b,...C]=w;c[h]=`[${JSON.stringify(b)}`,C.length>0&&(c[h]+=`,${C.map(g=>r.call(this,g)).join(",")}`),c[h]+="]";break}}if(!_){let m=y?"[":"{";if(y){for(let w=0;w<d.length;w++)m+=(w?",":"")+(w in d?r.call(this,d[w]):e.HOLE);c[h]=`${m}]`}else d instanceof Date?c[h]=`["${e.TYPE_DATE}",${d.getTime()}]`:d instanceof URL?c[h]=`["${e.TYPE_URL}",${JSON.stringify(d.href)}]`:d instanceof RegExp?c[h]=`["${e.TYPE_REGEXP}",${JSON.stringify(d.source)},${JSON.stringify(d.flags)}]`:d instanceof Set?d.size>0?c[h]=`["${e.TYPE_SET}",${[...d].map(w=>r.call(this,w)).join(",")}]`:c[h]=`["${e.TYPE_SET}"]`:d instanceof Map?d.size>0?c[h]=`["${e.TYPE_MAP}",${[...d].flatMap(([w,b])=>[r.call(this,w),r.call(this,b)]).join(",")}]`:c[h]=`["${e.TYPE_MAP}"]`:d instanceof Promise?(c[h]=`["${e.TYPE_PROMISE}",${h}]`,a[h]=d):d instanceof Error?(c[h]=`["${e.TYPE_ERROR}",${JSON.stringify(d.message)}`,d.name!=="Error"&&(c[h]+=`,${JSON.stringify(d.name)}`),c[h]+="]"):Object.getPrototypeOf(d)===null?c[h]=`["${e.TYPE_NULL_OBJECT}",{${f(d)}}]`:i(d)?c[h]=`{${f(d)}}`:v=new Error("Cannot encode object with prototype")}break}default:{const y=Array.isArray(d);let _=!1;if(!y&&u)for(const m of u){const w=m(d);if(Array.isArray(w)){_=!0;const[b,...C]=w;c[h]=`[${JSON.stringify(b)}`,C.length>0&&(c[h]+=`,${C.map(g=>r.call(this,g)).join(",")}`),c[h]+="]";break}}_||(v=new Error("Cannot encode function or unexpected type"))}}if(v){let y=!1;if(l)for(const _ of l){const m=_(d);if(Array.isArray(m)){y=!0;const[w,...b]=m;c[h]=`[${JSON.stringify(w)}`,b.length>0&&(c[h]+=`,${b.map(C=>r.call(this,C)).join(",")}`),c[h]+="]";break}}if(!y)throw v}}}const n=Object.getOwnPropertyNames(Object.prototype).sort().join("\0");function i(s){const o=Object.getPrototypeOf(s);return o===Object.prototype||o===null||Object.getOwnPropertyNames(o).sort().join("\0")===n}return at}var ot={},gn;function Bo(){if(gn)return ot;
239gn=1,Object.defineProperty(ot,"__esModule",{value:!0}),ot.unflatten=void 0;const e=Er(),r=typeof window<"u"?window:typeof globalThis<"u"?globalThis:void 0;function t(i){const{hydrated:s,values:o}=this;if(typeof i=="number")return n.call(this,i);if(!Array.isArray(i)||!i.length)throw new SyntaxError;const a=o.length;for(const u of i)o.push(u);return s.length=o.length,n.call(this,a)}ot.unflatten=t;function n(i){const{hydrated:s,values:o,deferred:a,plugins:u}=this;let l;const c=[[i,d=>{l=d}]];let p=[];for(;c.length>0;){const[d,h]=c.pop();switch(d){case e.UNDEFINED:h(void 0);continue;case e.NULL:h(null);continue;case e.NAN:h(NaN);continue;case e.POSITIVE_INFINITY:h(1/0);continue;case e.NEGATIVE_INFINITY:h(-1/0);continue;case e.NEGATIVE_ZERO:h(-0);continue}if(s[d]){h(s[d]);continue}const f=o[d];if(!f||typeof f!="object"){s[d]=f,h(f);continue}if(Array.isArray(f))if(typeof f[0]=="string"){const[v,y,_]=f;switch(v){case e.TYPE_DATE:h(s[d]=new Date(y));continue;case e.TYPE_URL:h(s[d]=new URL(y));continue;case e.TYPE_BIGINT:h(s[d]=BigInt(y));continue;case e.TYPE_REGEXP:h(s[d]=new RegExp(y,_));continue;case e.TYPE_SYMBOL:h(s[d]=Symbol.for(y));continue;case e.TYPE_SET:const m=new Set;s[d]=m;for(let R=1;R<f.length;R++)c.push([f[R],O=>{m.add(O)}]);h(m);continue;case e.TYPE_MAP:const w=new Map;s[d]=w;for(let R=1;R<f.length;R+=2){const O=[];c.push([f[R+1],S=>{O[1]=S}]),c.push([f[R],S=>{O[0]=S}]),p.push(()=>{w.set(O[0],O[1])})}h(w);continue;case e.TYPE_NULL_OBJECT:const b=Object.create(null);s[d]=b;for(const R of Object.keys(y).reverse()){const O=[];c.push([y[R],S=>{O[1]=S}]),c.push([Number(R.slice(1)),S=>{O[0]=S}]),p.push(()=>{b[O[0]]=O[1]})}h(b);continue;case e.TYPE_PROMISE:if(s[y])h(s[d]=s[y]);else{const R=new e.Deferred;a[y]=R,h(s[d]=R.promise)}continue;case e.TYPE_ERROR:const[,C,g]=f;let k=g&&r&&r[g]?new r[g](C):new Error(C);s[d]=k,h(k);continue;case e.TYPE_PREVIOUS_RESOLVED:h(s[d]=s[y]);continue;default:if(Array.isArray(u)){const R=[],O=f.slice(1);for(let S=0;S<O.length;S++){const E=O[S];c.push([E,x=>{R[S]=x}])}p.push(()=>{for(const S of u){const E=S(f[0],...R);if(E){h(s[d]=E.value);return}}throw new SyntaxError});continue}throw new SyntaxError}}else{const v=[];s[d]=v;for(let y=0;y<f.length;y++){const _=f[y];_!==e.HOLE&&c.push([_,m=>{v[y]=m}])}h(v);continue}else{const v={};s[d]=v;for(const y of Object.keys(f).reverse()){const _=[];c.push([f[y],m=>{_[1]=m}]),c.push([Number(y.slice(1)),m=>{_[0]=m}]),p.push(()=>{v[_[0]]=_[1]})}h(v);continue}}for(;p.length>0;)p.pop()();return l}return ot}var wn;function zo(){if(wn)return Ue;wn=1,Object.defineProperty(Ue,"__esModule",{value:!0}),Ue.encode=Ue.decode=void 0;const e=Ho(),r=Bo(),t=Er();async function n(u,l){const{plugins:c}=l??{},p=new t.Deferred,d=u.pipeThrough((0,t.createLineSplittingTransform)()).getReader(),h={values:[],hydrated:[],deferred:{},plugins:c},f=await i.call(h,d);let v=p.promise;return f.done?p.resolve():v=s.call(h,d).then(p.resolve).catch(y=>{for(const _ of Object.values(h.deferred))_.reject(y);p.reject(y)}),{done:v.then(()=>d.closed),value:f.value}}Ue.decode=n;async function i(u){const l=await u.read();if(!l.value)throw new SyntaxError;let c;try{c=JSON.parse(l.value)}catch{throw new SyntaxError}return{done:l.done,value:r.unflatten.call(this,c)}}async function s(u){let l=await u.read();for(;!l.done;){if(!l.value)continue;const c=l.value;switch(c[0]){case t.TYPE_PROMISE:{const p=c.indexOf(":"),d=Number(c.slice(1,p)),h=this.deferred[d];if(!h)throw new Error(`Deferred ID ${d} not found in stream`);const f=c.slice(p+1);let v;try{v=JSON.parse(f)}catch{throw new SyntaxError}const y=r.unflatten.call(this,v);h.resolve(y);break}case t.TYPE_ERROR:{const p=c.indexOf(":"),d=Number(c.slice(1,p)),h=this.deferred[d];if(!h)throw new Error(`Deferred ID ${d} not found in stream`);const f=c.slice(p+1);let v;try{v=JSON.parse(f)}catch{throw new SyntaxError}const y=r.unflatten.call(this,v);h.reject(y);break}default:throw new SyntaxError}l=await u.read()}}function o(u,l){const{plugins:c,postPlugins:p,signal:d}=l??{},h={deferred:{},index:0,indices:new Map,stringified:[],plugins:c,postPlugins:p,signal:d},f=new TextEncoder;let v=0;return new ReadableStream({async start(_){const m=e.flatten.call(h,u);if(Array.isArray(m))throw new Error("This should never happen");m<0?_.enqueue(f.encode(`${m}
240`)):(_.enqueue(f.encode(`[${h.stringified.join(",")}]
241`)),v=h.stringified.length-1);const w=new WeakSet;for(;Object.keys(h.deferred).length>0;){for(const[b,C]of Object.entries(h.deferred))w.has(C)||w.add(h.deferred[Number(b)]=a(C,h.signal).then(g=>{const k=e.flatten.call(h,g);if(Array.isArray(k))_.enqueue(f.encode(`${t.TYPE_PROMISE}${b}:[["${t.TYPE_PREVIOUS_RESOLVED}",${k[0]}]]
242`)),h.index++,v++;else if(k<0)_.enqueue(f.encode(`${t.TYPE_PROMISE}${b}:${k}
243`));else{const R=h.stringified.slice(v+1).join(",");_.enqueue(f.encode(`${t.TYPE_PROMISE}${b}:[${R}]
244`)),v=h.stringified.length-1}},g=>{(!g||typeof g!="object"||!(g instanceof Error))&&(g=new Error("An unknown error occurred"));const k=e.flatten.call(h,g);
244if(Array.isArray(k))_.enqueue(f.encode(`${t.TYPE_ERROR}${b}:[["${t.TYPE_PREVIOUS_RESOLVED}",${k[0]}]]
245`)),h.index++,v++;else if(k<0)_.enqueue(f.encode(`${t.TYPE_ERROR}${b}:${k}
246`));else{const R=h.stringified.slice(v+1).join(",");_.enqueue(f.encode(`${t.TYPE_ERROR}${b}:[${R}]
247`)),v=h.stringified.length-1}}).finally(()=>{delete h.deferred[Number(b)]}));await Promise.race(Object.values(h.deferred))}await Promise.all(Object.values(h.deferred)),_.close()}})}Ue.encode=o;function a(u,l){if(!l)return u;if(l.aborted)return Promise.reject(l.reason||new Error("Signal was aborted."));const c=new Promise((p,d)=>{l.addEventListener("abort",h=>{d(l.reason||new Error("Signal was aborted."))}),u.then(p).catch(d)});return c.catch(()=>{}),Promise.race([c,u])}return Ue}var ge={};/**
248 * @remix-run/react v2.16.2
249 *
250 * Copyright (c) Remix Software Inc.
251 *
252 * This source code is licensed under the MIT license found in the
253 * LICENSE.md file in the root directory of this source tree.
254 *
255 * @license MIT
256 */var _n;function Si(){if(_n)return ge;_n=1,Object.defineProperty(ge,"__esModule",{value:!0});var e=zt;function r(f){return f.headers.get("X-Remix-Catch")!=null}function t(f){return f.headers.get("X-Remix-Error")!=null}function n(f){return o(f)&&f.status>=400&&f.headers.get("X-Remix-Error")==null&&f.headers.get("X-Remix-Catch")==null&&f.headers.get("X-Remix-Response")==null}function i(f){return f.headers.get("X-Remix-Redirect")!=null}function s(f){var v;return!!((v=f.headers.get("Content-Type"))!==null&&v!==void 0&&v.match(/text\/remix-deferred/))}function o(f){return f!=null&&typeof f.status=="number"&&typeof f.statusText=="string"&&typeof f.headers=="object"&&typeof f.body<"u"}function a(f){let v=f;return v&&typeof v=="object"&&typeof v.data=="object"&&typeof v.subscribe=="function"&&typeof v.cancel=="function"&&typeof v.resolveData=="function"}async function u(f,v,y=0){let _=new URL(f.url);_.searchParams.set("_data",v),y>0&&await new Promise(C=>setTimeout(C,5**y*10));let m=await l(f),w=window.__remixRevalidation,b=await fetch(_.href,m).catch(C=>{if(typeof w=="number"&&w===window.__remixRevalidation&&(C==null?void 0:C.name)==="TypeError"&&y<3)return u(f,v,y+1);throw C});if(t(b)){let C=await b.json(),g=new Error(C.message);return g.stack=C.stack,g}if(n(b)){let C=await b.text(),g=new Error(C);return g.stack=void 0,g}return b}async function l(f){let v={signal:f.signal};if(f.method!=="GET"){v.method=f.method;let y=f.headers.get("Content-Type");y&&/\bapplication\/json\b/.test(y)?(v.headers={"Content-Type":y},v.body=JSON.stringify(await f.json())):y&&/\btext\/plain\b/.test(y)?(v.headers={"Content-Type":y},v.body=await f.text()):y&&/\bapplication\/x-www-form-urlencoded\b/.test(y)?v.body=new URLSearchParams(await f.text()):v.body=await f.formData()}return v}const c="__deferred_promise:";async function p(f){if(!f)throw new Error("parseDeferredReadableStream requires stream argument");let v,y={};try{let _=d(f),w=(await _.next()).value;if(!w)throw new Error("no critical data");let b=JSON.parse(w);if(typeof b=="object"&&b!==null)for(let[C,g]of Object.entries(b))typeof g!="string"||!g.startsWith(c)||(v=v||{},v[C]=new Promise((k,R)=>{y[C]={resolve:O=>{k(O),delete y[C]},reject:O=>{R(O),delete y[C]}}}));return(async()=>{try{for await(let C of _){let[g,...k]=C.split(":"),R=k.join(":"),O=JSON.parse(R);if(g==="data")for(let[S,E]of Object.entries(O))y[S]&&y[S].resolve(E);else if(g==="error")for(let[S,E]of Object.entries(O)){let x=new Error(E.message);x.stack=E.stack,y[S]&&y[S].reject(x)}}for(let[C,g]of Object.entries(y))g.reject(new e.AbortedDeferredError(`Deferred ${C} will never be resolved`))}catch(C){for(let g of Object.values(y))g.reject(C)}})(),new e.UNSAFE_DeferredData({...b,...v})}catch(_){for(let m of Object.values(y))m.reject(_);throw _}}async function*d(f){let v=f.getReader(),y=[],_=[],m=!1,w=new TextEncoder,b=new TextDecoder,C=async()=>{if(_.length>0)return _.shift();for(;!m&&_.length===0;){let k=await v.read();if(k.done){m=!0;break}y.push(k.value);try{let O=b.decode(h(...y)).split(`
257
258`);if(O.length>=2&&(_.push(...O.slice(0,-1)),y=[w.encode(O.slice(-1).join(`
259
260`))]),_.length>0)break}catch{continue}}return _.length>0||y.length>0&&(_=b.decode(h(...y)).split(`
261
262`).filter(R=>R),y=[]),_.shift()},g=await C();for(;g;)yield g,g=await C()}function h(...f){let v=new Uint8Array(f.reduce((_,m)=>_+m.length,0)),y=0;for(let _ of f)v.set(_,y),y+=_.length;return v}return ge.createRequestInit=l,ge.fetchData=u,ge.isCatchResponse=r,ge.isDeferredData=a,ge.isDeferredResponse=s,ge.isErrorResponse=t,ge.isNetworkErrorResponse=n,ge.isRedirectResponse=i,ge.isResponse=o,ge.parseDeferredReadableStream=p,ge}/**
263 * @remix-run/react v2.16.2
264 *
265 * Copyright (c) Remix Software Inc.
266 *
267 * This source code is licensed under the MIT license found in the
268 * LICENSE.md file in the root directory of this source tree.
269 *
270 * @license MIT
271 */var bn;function Vo(){if(bn)return qe;
271bn=1,Object.defineProperty(qe,"__esModule",{value:!0});var e=pe(),r=zt,t=Qo,n=zo(),i=Si(),s=bi(),o=Rr();function a(g){if(g&&g.__esModule)return g;var k=Object.create(null);return g&&Object.keys(g).forEach(function(R){if(R!=="default"){var O=Object.getOwnPropertyDescriptor(g,R);Object.defineProperty(k,R,O.get?O:{enumerable:!0,get:function(){return g[R]}})}}),k.default=g,Object.freeze(k)}var u=a(e);function l({context:g,identifier:k,reader:R,textDecoder:O,nonce:S}){if(!g.renderMeta||!g.renderMeta.didRenderScripts)return null;g.renderMeta.streamCache||(g.renderMeta.streamCache={});let{streamCache:E}=g.renderMeta,x=E[k];if(x||(x=E[k]=R.read().then(A=>{E[k].result={done:A.done,value:O.decode(A.value,{stream:!0})}}).catch(A=>{E[k].error=A})),x.error)throw x.error;if(x.result===void 0)throw x;let{done:L,value:j}=x.result,D=j?u.createElement("script",{nonce:S,dangerouslySetInnerHTML:{__html:`window.__remixContext.streamController.enqueue(${s.escapeHtml(JSON.stringify(j))});`}}):null;return L?u.createElement(u.Fragment,null,D,u.createElement("script",{nonce:S,dangerouslySetInnerHTML:{__html:"window.__remixContext.streamController.close();"}})):u.createElement(u.Fragment,null,D,u.createElement(u.Suspense,null,u.createElement(l,{context:g,identifier:k+1,reader:R,textDecoder:O,nonce:S})))}function c(g,k,R){return async({request:O,matches:S,fetcherKey:E})=>O.method!=="GET"?p(O,S):E?h(O,S):d(g,k,R(),O,S)}async function p(g,k){let R=k.find(E=>E.shouldLoad);o(R,"No action match found");let O,S=await R.resolve(async E=>await E(async()=>{let L=y(g.url),j=await i.createRequestInit(g),{data:D,status:A}=await _(L,j);return O=A,b(D,R.route.id)}));return i.isResponse(S.result)||r.isRouteErrorResponse(S.result)?{[R.route.id]:S}:{[R.route.id]:{type:S.type,result:r.data(S.result,O)}}}async function d(g,k,R,O,S){let E=new Set,x=!1,L=S.map(()=>C()),j=Promise.all(L.map($=>$.promise)),D=C(),A=v(y(O.url)),q=await i.createRequestInit(O),F={},G=Promise.all(S.map(async($,z)=>
271$.resolve(async oe=>{if(L[z].resolve(),!$.shouldLoad){var ue;if(!R.state.initialized)return;if($.route.id in R.state.loaderData&&g.routes[$.route.id]&&(ue=k[$.route.id])!==null&&ue!==void 0&&ue.shouldRevalidate){g.routes[$.route.id].hasLoader&&(x=!0);return}}if(g.routes[$.route.id].hasClientLoader){g.routes[$.route.id].hasLoader&&(x=!0);try{let te=await f(oe,A,q,$.route.id);F[$.route.id]={type:"data",result:te}}catch(te){F[$.route.id]={type:"error",result:te}}return}g.routes[$.route.id].hasLoader&&E.add($.route.id);try{let te=await oe(async()=>{let P=await D.promise;return w(P,$.route.id)});F[$.route.id]={type:"data",result:te}}catch(te){F[$.route.id]={type:"error",result:te}}})));if(await j,(!R.state.initialized||E.size===0)&&!window.__remixHdrActive)D.resolve({});else try{x&&E.size>0&&A.searchParams.set("_routes",S.filter(z=>E.has(z.route.id)).map(z=>z.route.id).join(","));let $=await _(A,q);D.resolve($.data)}catch($){D.reject($)}return await G,F}async function h(g,k){let R=k.find(S=>S.shouldLoad);o(R,"No fetcher match found");let O=await R.resolve(async S=>{let E=v(y(g.url)),x=await i.createRequestInit(g);return f(S,E,x,R.route.id)});return{[R.route.id]:O}}function f(g,k,R,O){return g(async()=>{let S=new URL(k);S.searchParams.set("_routes",O);let{data:E}=await _(S,R);return w(E,O)})}function v(g){let k=g.searchParams.getAll("index");g.searchParams.delete("index");let R=[];for(let O of k)O&&R.push(O);for(let O of R)g.searchParams.append("index",O);return g}function y(g){let k=typeof g=="string"?new URL(g,window.location.origin):g;return k.pathname==="/"?k.pathname="_root.data":k.pathname=`${k.pathname.replace(/\/$/,"")}.data`,k}async function _(g,k){let R=await fetch(g,k);if(new Set([100,101,204,205]).has(R.status))return!k.method||k.method==="GET"?{status:R.status,data:{}}:{status:R.status,data:{data:null}};o(R.body,"No response body to decode");try{let S=await m(R.body,window);return{status:R.status,data:S.value}}catch(S){throw console.error(S),new Error(`Unable to decode turbo-stream response from URL: ${g.toString()}`)}}function m(g,k){return n.decode(g,{plugins:[(R,...O)=>{if(R==="SanitizedError"){let[S,E,x]=O,L=Error;S&&S in k&&typeof k[S]=="function"&&(L=k[S]);let j=new L(E);return j.stack=x,{value:j}}if(R==="ErrorResponse"){let[S,E,x]=O;return{value:new r.UNSAFE_ErrorResponseImpl(E,x,S)}}if(R==="SingleFetchRedirect")return{value:{[t.UNSAFE_SingleFetchRedirectSymbol]:O[0]}}},(R,O)=>{if(R==="SingleFetchFallback")return{value:void 0};if(R==="SingleFetchClassInstance")return{value:O}}]})}function w(g,k){let R=g[t.UNSAFE_SingleFetchRedirectSymbol];return R?b(R,k):g[k]!==void 0?b(g[k],k):null}function b(g,k){if("error"in g)throw g.error;if("redirect"in g){let R={};throw g.revalidate&&(R["X-Remix-Revalidate"]="yes"),g.reload&&(R["X-Remix-Reload-Document"]="yes"),g.replace&&(R["X-Remix-Replace"]="yes"),r.redirect(g.redirect,{status:g.status,headers:R})}else{if("data"in g)return g.data;throw new Error(`No response found for routeId "${k}"`)}}function C(){let g,k,R=new Promise((O,S)=>{g=async E=>{O(E);try{await R}catch{}},k=async E=>{S(E);try{await R}catch{}}});return{promise:R,resolve:g,reject:k}}return qe.StreamTransfer=l,qe.decodeViaTurboStream=m,qe.getSingleFetchDataStrategy=c,qe.singleFetchUrl=y,qe}var De={},Qe={},Je={};/**
272 * @remix-run/react v2.16.2
273 *
274 * Copyright (c) Remix Software Inc.
275 *
276 * This source code is licensed under the MIT license found in the
277 * LICENSE.md file in the root directory of this source tree.
278 *
279 * @license MIT
280 */var Sn;function Ri(){if(Sn)return Je;Sn=1,Object.defineProperty(Je,"__esModule",{value:!0});var e=pe(),r=Bt,t=Ei();function n(u){if(u&&u.__esModule)return u;var l=Object.create(null);return u&&Object.keys(u).forEach(function(c){if(c!=="default"){var p=Object.getOwnPropertyDescriptor(u,c);Object.defineProperty(l,c,p.get?p:{enumerable:!0,get:function(){return u[c]}})}}),l.default=u,Object.freeze(l)}var i=n(e);class s extends i.Component{constructor(l){super(l),this.state={error:l.error||null,location:l.location}}static getDerivedStateFromError(l){return{error:l}}static getDerivedStateFromProps(l,c){return c.location!==l.location?{error:l.error||null,location:l.location}:{error:l.error||c.error,location:c.location}}render(){return this.state.error?i.createElement(o,{error:this.state.error,isOutsideRemixApp:!0}):this.props.children}}function o({error:u,isOutsideRemixApp:l}){console.error(u);let c=i.createElement("script",{dangerouslySetInnerHTML:{__html:`
281        console.log(
282          "💿 Hey developer 👋. You can provide a way better UX than this when your app throws errors. Check out https://remix.run/guides/errors for more information."
283        );
284      `}});if(r.isRouteErrorResponse(u))return i.createElement(a,{title:"Unhandled Thrown Response!"},i.createElement("h1",{style:{fontSize:"24px"}},u.status," ",u.statusText),c);let p;if(u instanceof Error)p=u;else{let d=u==null?"Unknown Error":typeof u=="object"&&"toString"in u?u.toString():JSON.stringify(u);p=new Error(d)}
284return i.createElement(a,{title:"Application Error!",isOutsideRemixApp:l},i.createElement("h1",{style:{fontSize:"24px"}},"Application Error"),i.createElement("pre",{style:{padding:"2rem",background:"hsla(10, 50%, 50%, 0.1)",color:"red",overflow:"auto"}},p.stack),c)}function a({title:u,renderScripts:l,isOutsideRemixApp:c,children:p}){var d;let{routeModules:h}=t.useRemixContext();return(d=h.root)!==null&&d!==void 0&&d.Layout&&!c?p:i.createElement("html",{lang:"en"},i.createElement("head",null,i.createElement("meta",{charSet:"utf-8"}),i.createElement("meta",{name:"viewport",content:"width=device-width,initial-scale=1,viewport-fit=cover"}),i.createElement("title",null,u)),i.createElement("body",null,i.createElement("main",{style:{fontFamily:"system-ui, sans-serif",padding:"2rem"}},p,l?i.createElement(t.Scripts,null):null)))}return Je.BoundaryShell=a,Je.RemixErrorBoundary=s,Je.RemixRootDefaultErrorBoundary=o,Je}var Et={};/**
285 * @remix-run/react v2.16.2
286 *
287 * Copyright (c) Remix Software Inc.
288 *
289 * This source code is licensed under the MIT license found in the
290 * LICENSE.md file in the root directory of this source tree.
291 *
292 * @license MIT
293 */var Rn;function Ko(){if(Rn)return Et;Rn=1,Object.defineProperty(Et,"__esModule",{value:!0});var e=pe(),r=Ri();function t(s){if(s&&s.__esModule)return s;var o=Object.create(null);return s&&Object.keys(s).forEach(function(a){if(a!=="default"){var u=Object.getOwnPropertyDescriptor(s,a);Object.defineProperty(o,a,u.get?u:{enumerable:!0,get:function(){return s[a]}})}}),o.default=s,Object.freeze(o)}var n=t(e);function i(){return n.createElement(r.BoundaryShell,{title:"Loading...",renderScripts:!0},n.createElement("script",{dangerouslySetInnerHTML:{__html:`
294              console.log(
295                "💿 Hey developer 👋. You can provide a way better UX than this " +
296                "when your app is loading JS modules and/or running \`clientLoader\` " +
297                "functions. Check out https://remix.run/route/hydrate-fallback " +
298                "for more information."
299              );
300            `}}))}return Et.RemixRootDefaultHydrateFallback=i,Et}/**
301 * @remix-run/react v2.16.2
302 *
303 * Copyright (c) Remix Software Inc.
304 *
305 * This source code is licensed under the MIT license found in the
306 * LICENSE.md file in the root directory of this source tree.
307 *
308 * @license MIT
309 */var En;function Yo(){if(En)return Qe;En=1,Object.defineProperty(Qe,"__esModule",{value:!0});var e=pe(),r=zt,t=Bt,n=wi(),i=Si(),s=_i(),o=Ri(),a=Ko(),u=Rr();function l(S){if(S&&S.__esModule)return S;var E=Object.create(null);return S&&Object.keys(S).forEach(function(x){if(x!=="default"){var L=Object.getOwnPropertyDescriptor(S,x);Object.defineProperty(E,x,L.get?L:{enumerable:!0,get:function(){return S[x]}})}}),E.default=S,Object.freeze(E)}var c=l(e);function p(S){let E={};
309return Object.values(S).forEach(x=>{let L=x.parentId||"";E[L]||(E[L]=[]),E[L].push(x)}),E}function d(S,E,x){let L=R(E),j=E.HydrateFallback&&(!x||S.id==="root")?E.HydrateFallback:S.id==="root"?a.RemixRootDefaultHydrateFallback:void 0,D=E.ErrorBoundary?E.ErrorBoundary:S.id==="root"?()=>c.createElement(o.RemixRootDefaultErrorBoundary,{error:t.useRouteError()}):void 0;return S.id==="root"&&E.Layout?{...L?{element:c.createElement(E.Layout,null,c.createElement(L,null))}:{Component:L},...D?{errorElement:c.createElement(E.Layout,null,c.createElement(D,null))}:{ErrorBoundary:D},...j?{hydrateFallbackElement:c.createElement(E.Layout,null,c.createElement(j,null))}:{HydrateFallback:j}}:{Component:L,ErrorBoundary:D,HydrateFallback:j}}function h(S,E,x,L,j="",D=p(S),A=Promise.resolve({Component:()=>null})){return(D[j]||[]).map(q=>{let F=E[q.id];u(F,"No `routeModule` available to create server routes");let G={...d(q,F,L),caseSensitive:q.caseSensitive,id:q.id,index:q.index,path:q.path,handle:F.handle,lazy:L?()=>A:void 0,loader:q.hasLoader||q.hasClientLoader?()=>null:void 0},$=h(S,E,x,L,q.id,D,A);return $.length>0&&(G.children=$),G})}function f(S,E,x,L,j,D){return _(E,x,L,j,D,"",p(E),S)}function v(S,E,x){if(x){let A=`You cannot call ${S==="action"?"serverAction()":"serverLoader()"} in SPA Mode (routeId: "${E.id}")`;throw console.error(A),new r.UNSAFE_ErrorResponseImpl(400,"Bad Request",new Error(A),!0)}let j=`You are trying to call ${S==="action"?"serverAction()":"serverLoader()"} on a route that does not have a server ${S} (routeId: "${E.id}")`;if(S==="loader"&&!E.hasLoader||S==="action"&&!E.hasAction)throw console.error(j),new r.UNSAFE_ErrorResponseImpl(400,"Bad Request",new Error(j),!0)}function y(S,E){let x=S==="clientAction"?"a":"an",L=`Route "${E}" does not have ${x} ${S}, but you are trying to submit to it. To fix this, please add ${x} \`${S}\` function to the route`;throw console.error(L),new r.UNSAFE_ErrorResponseImpl(405,"Method Not Allowed",new Error(L),!0)}function _(S,E,x,L,j,D="",A=p(S),q){return(A[D]||[]).map(F=>{let G=E[F.id];async function $(U,N,V){if(typeof V=="function")return await V();let W=await C(U,F);return N?g(W):W}function z(U,N,V){return F.hasLoader?$(U,N,V):Promise.resolve(null)}function oe(U,N,V){if(!F.hasAction)throw y("action",F.id);return $(U,N,V)}async function ue(U){let N=E[F.id],V=N?s.prefetchStyleLinks(F,N):Promise.resolve();try{return U()}finally{await V}}let te={id:F.id,index:F.index,path:F.path};if(G){var P,T,I;Object.assign(te,{...te,...d(F,G,j),handle:G.handle,shouldRevalidate:m(L,G,F.id,q)});let U=x==null||(P=x.loaderData)===null||P===void 0?void 0:P[F.id],N=x==null||(T=x.errors)===null||T===void 0?void 0:T[F.id],V=q==null&&(((I=G.clientLoader)===null||I===void 0?void 0:I.hydrate)===!0||!F.hasLoader);te.loader=async({request:W,params:Z},ee)=>{try{return await ue(async()=>(u(G,"No `routeModule` available for critical-route loader"),G.clientLoader?G.clientLoader({request:W,params:Z,async serverLoader(){if
309(v("loader",F,j),V){if(U!==void 0)return U;if(N!==void 0)throw N;return null}return z(W,!0,ee)}}):j?null:z(W,!1,ee)))}finally{V=!1}},te.loader.hydrate=O(F,G,j),te.action=({request:W,params:Z},ee)=>ue(async()=>{if(u(G,"No `routeModule` available for critical-route action"),!G.clientAction){if(j)throw y("clientAction",F.id);return oe(W,!1,ee)}return G.clientAction({request:W,params:Z,async serverAction(){return v("action",F,j),oe(W,!0,ee)}})})}else F.hasClientLoader||(te.loader=({request:U},N)=>ue(()=>j?Promise.resolve(null):z(U,!1,N))),F.hasClientAction||(te.action=({request:U},N)=>ue(()=>{if(j)throw y("clientAction",F.id);return oe(U,!1,N)})),te.lazy=async()=>{let U=await b(F,E),N={...U};if(U.clientLoader){let V=U.clientLoader;N.loader=(W,Z)=>V({...W,async serverLoader(){return v("loader",F,j),z(W.request,!0,Z)}})}if(U.clientAction){let V=U.clientAction;N.action=(W,Z)=>V({...W,async serverAction(){return v("action",F,j),oe(W.request,!0,Z)}})}return{...N.loader?{loader:N.loader}:{},...N.action?{action:N.action}:{},hasErrorBoundary:N.hasErrorBoundary,shouldRevalidate:m(L,N,F.id,q),handle:N.handle,Component:N.Component,ErrorBoundary:N.ErrorBoundary}};let Q=_(S,E,x,L,j,F.id,A,q);return Q.length>0&&(te.children=Q),te})}function m(S,E,x,L){if(L)return w(x,E.shouldRevalidate,L);if(S.v3_singleFetch&&E.shouldRevalidate){let j=E.shouldRevalidate;return D=>j({...D,defaultShouldRevalidate:!0})}return E.shouldRevalidate}function w(S,E,x){let L=!1;return j=>L?E?E(j):j.defaultShouldRevalidate:(L=!0,x.has(S))}async function b(S,E){let x=await n.loadRouteModule(S,E);return await s.prefetchStyleLinks(S,x),{Component:R(x),ErrorBoundary:x.ErrorBoundary,clientAction:x.clientAction,clientLoader:x.clientLoader,handle:x.handle,links:x.links,meta:x.meta,shouldRevalidate:x.shouldRevalidate}}async function C(S,E){let x=await i.fetchData(S,E.id);if(x instanceof Error)throw x;if(i.isRedirectResponse(x))throw k(x);if(i.isCatchResponse(x))throw x;return i.isDeferredResponse(x)&&x.body?await i.parseDeferredReadableStream(x.body):x}function g(S){if(i.isDeferredData(S))return S.data;if(i.isResponse(S)){let E=S.headers.get("Content-Type");return E&&/\bapplication\/json\b/.test(E)?S.json():S.text()}return S}function k(S){let E=parseInt(S.headers.get("X-Remix-Status"),10)||302,x=S.headers.get("X-Remix-Redirect"),L={},j=S.headers.get("X-Remix-Revalidate");j&&(L["X-Remix-Revalidate"]=j);let D=S.headers.get("X-Remix-Reload-Document");D&&(L["X-Remix-Reload-Document"]=D);let A=S.headers.get("X-Remix-Replace");return A&&(L["X-Remix-Replace"]=A),t.redirect(x,{status:E,headers:L})}function R(S){if(S.default==null)return;if(!(typeof S.default=="object"&&Object.keys(S.default).length===0))return S.default}function O(S,E,x){return x&&S.id!=="root"||E.clientLoader!=null&&(E.clientLoader.hydrate===!0||S.hasLoader!==!0)}return Qe.createClientRoutes=_,Qe.createClientRoutesWithHMRRevalidationOptOut=f,Qe.createServerRoutes=h,Qe.shouldHydrateRouteLoader=O,Qe}/**
310 * @remix-run/react v2.16.2
311 *
312 * Copyright (c) Remix Software Inc.
313 *
314 * This source code is licensed under the MIT license found in the
315 * LICENSE.md file in the root directory of this source tree.
316 *
317 * @license MIT
318 */var Cn;function Go(){if(Cn)return De;Cn=1,Object.defineProperty(De,"__esModule",{value:!0});var e=zt,r=pe(),t=Yo();function n(_){if(_&&_.__esModule)return _;var m=Object.create(null);return _&&Object.keys(_).forEach(function(w){if(w!=="default"){var b=Object.getOwnPropertyDescriptor(_,w);Object.defineProperty(m,w,b.get?b:{enumerable:!0,get:function(){return _[w]}})}}),m.default=_,Object.freeze(m)}var i=n(r);const s=new Set,o=1e3,a=new Set,u=7680;function l(_,m){return _.v3_lazyRouteDiscovery===!0&&!m}function c(_,m){let w=new Set(m.state.matches.map(k=>k.route.id)),b=m.state.location.pathname.split("/").filter(Boolean),C=["/"];for(b.pop();b.length>0;)C.push(`/${b.join("/")}`),b.pop();C.forEach(k=>{let R=e.matchRoutes(m.routes,k,m.basename);R&&R.forEach(O=>w.add(O.route.id))});let g=[...w].reduce((k,R)=>Object.assign(k,{[R]:_.routes[R]}),{});return{..._,routes:g}}function p(_,m,w,b,C){if(l(w,b))return async({path:g,patch:k,signal:R,fetcherKey:O})=>{a.has(g)||await f([g],O?window.location.href:g,_,m,w,b,C,k,R)}}function d(_,m,w,b,C){i.useEffect(()=>{var g;if(!l(b,C)||((g=navigator.connection)===null||g===void 0?void 0:g.saveData)===!0)return;function k(x){let L=x.tagName==="FORM"?x.getAttribute("action"):x.getAttribute("href");if(!L)return;let j=new URL(L,window.location.origin);a.has(j.pathname)||s.add(j.pathname)}async function R(){let x=Array.from(s.keys()).filter(L=>a.has(L)?(s.delete(L),!1):!0);if(x.length!==0)try{await f(x,null,m,w,b,C,_.basename,_.patchRoutes)}catch(L){console.error("Failed to fetch manifest patches",L)}}document.body.querySelectorAll("a[data-discover], form[data-discover]").forEach(x=>k(x)),R();let O=y(R,100);function S(x){return x.nodeType===Node.ELEMENT_NODE}let E=new MutationObserver(x=>{let L=new Set;x.forEach(j=>
318{[j.target,...j.addedNodes].forEach(D=>{S(D)&&((D.tagName==="A"&&D.getAttribute("data-discover")||D.tagName==="FORM"&&D.getAttribute("data-discover"))&&L.add(D),D.tagName!=="A"&&D.querySelectorAll("a[data-discover], form[data-discover]").forEach(A=>L.add(A)))})}),L.forEach(j=>k(j)),O()});return E.observe(document.documentElement,{subtree:!0,childList:!0,attributes:!0,attributeFilter:["data-discover","href","action"]}),()=>E.disconnect()},[b,C,m,w,_])}const h="remix-manifest-version";async function f(_,m,w,b,C,g,k,R,O){let S=`${k??"/"}/__manifest`.replace(/\/+/g,"/"),E=new URL(S,window.location.origin);if(_.sort().forEach(A=>E.searchParams.append("p",A)),E.searchParams.set("version",w.version),E.toString().length>u){s.clear();return}let x;try{let A=await fetch(E,{signal:O});if(A.ok){if(A.status===204&&A.headers.has("X-Remix-Reload-Document")){if(!m){console.warn("Detected a manifest version mismatch during eager route discovery. The next navigation/fetch to an undiscovered route will result in a new document navigation to sync up with the latest manifest.");return}if(sessionStorage.getItem(h)===w.version){console.error("Unable to discover routes due to manifest version mismatch.");return}throw sessionStorage.setItem(h,w.version),window.location.href=m,new Error("Detected manifest version mismatch, reloading...")}else if(A.status>=400)throw new Error(await A.text())}else throw new Error(`${A.status} ${A.statusText}`);sessionStorage.removeItem(h),x=await A.json()}catch(A){if(O!=null&&O.aborted)return;throw A}let L=new Set(Object.keys(w.routes)),j=Object.values(x).reduce((A,q)=>L.has(q.id)?A:Object.assign(A,{[q.id]:q}),{});Object.assign(w.routes,j),_.forEach(A=>v(A,a));let D=new Set;Object.values(j).forEach(A=>{(!A.parentId||!j[A.parentId])&&D.add(A.parentId)}),D.forEach(A=>R(A||null,t.createClientRoutes(j,b,null,C,g,A)))}function v(_,m){if(m.size>=o){let w=m.values().next().value;typeof w=="string"&&m.delete(w)}m.add(_)}function y(_,m){let w;return(...b)=>{window.clearTimeout(w),w=window.setTimeout(()=>_(...b),m)}}return De.fetchAndApplyManifestPatches=f,De.getPartialManifest=c,De.getPatchRoutesOnNavigationFunction=p,De.isFogOfWarEnabled=l,De.useFogOFWarDiscovery=d,De}var kn;function Ei(){if(kn)return ae;kn=1;/**
319 * @remix-run/react v2.16.2
320 *
321 * Copyright (c) Remix Software Inc.
322 *
323 * This source code is licensed under the MIT license found in the
324 * LICENSE.md file in the root directory of this source tree.
325 *
326 * @license MIT
327 */Object.defineProperty(ae,"__esModule",{value:!0});var e=qo(),r=pe(),t=Bt,n=Rr(),i=_i(),s=bi(),o=Vo(),a=Go();function u(P){if(P&&P.__esModule)return P;var T=Object.create(null);return P&&Object.keys(P).forEach(function(I){if(I!=="default"){var Q=Object.getOwnPropertyDescriptor(P,I);Object.defineProperty(T,I,Q.get?Q:{enumerable:!0,get:function(){return P[I]}})}}),T.default=P,Object.freeze(T)}var l=u(r);function c(){let P=l.useContext(t.UNSAFE_DataRouterContext);return n(P,"You must render this element inside a <DataRouterContext.Provider> element"),P}function p(){let P=l.useContext(t.UNSAFE_DataRouterStateContext);return n(P,"You must render this element inside a <DataRouterStateContext.Provider> element"),P}const d=l.createContext(void 0);d.displayName="Remix";function h(){let P=l.useContext(d);return n(P,"You must render this element inside a <Remix> element"),P}function f(P,T){let[I,Q]=l.useState(!1),[U,N]=l.useState(!1),{onFocus:V,onBlur:W,onMouseEnter:Z,onMouseLeave:ee,onTouchStart:ve}=T,J=l.useRef(null);l.useEffect(()=>{if(P==="render"&&N(!0),P==="viewport"){let ne=le=>{le.forEach(ie=>{N(ie.isIntersecting)})},we=new IntersectionObserver(ne,{threshold:.5});return J.current&&we.observe(J.current),()=>{we.disconnect()}}},[P]);let re=()=>{P==="intent"&&Q(!0)},fe=()=>{P==="intent"&&(Q(!1),N(!1))};return l.useEffect(()=>{if(I){let ne=setTimeout(()=>{N(!0)},100);return()=>{clearTimeout(ne)}}},[I]),[U,J,{onFocus:b(V,re),onBlur:b(W,fe),onMouseEnter:b(Z,re),onMouseLeave:b(ee,fe),onTouchStart:b(ve,re)}]}const v=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i;function y(P,T,I){return P==="render"&&!T&&!I?"true":void 0}let _=l.forwardRef(({to:P,prefetch:T="none",discover:I="render",...Q},U)=>{let N=typeof P=="string"&&v.test(P),V=t.useHref(P),[W,Z,ee]=f(T,Q);return l.createElement(l.Fragment,null,l.createElement(t.NavLink,e.extends({},Q,ee,{ref:te(U,Z),to:P,"data-discover":y(I,N,Q.reloadDocument)})),W&&!N?l.createElement(k,{page:V}
327):null)});_.displayName="NavLink";let m=l.forwardRef(({to:P,prefetch:T="none",discover:I="render",...Q},U)=>{let N=typeof P=="string"&&v.test(P),V=t.useHref(P),[W,Z,ee]=f(T,Q);return l.createElement(l.Fragment,null,l.createElement(t.Link,e.extends({},Q,ee,{ref:te(U,Z),to:P,"data-discover":y(I,N,Q.reloadDocument)})),W&&!N?l.createElement(k,{page:V}):null)});m.displayName="Link";let w=l.forwardRef(({discover:P="render",...T},I)=>{let Q=typeof T.action=="string"&&v.test(T.action);return l.createElement(t.Form,e.extends({},T,{ref:I,"data-discover":y(P,Q,T.reloadDocument)}))});w.displayName="Form";function b(P,T){return I=>{P&&P(I),I.defaultPrevented||T(I)}}function C(P,T,I){if(I&&!L)return[P[0]];if(T){let Q=P.findIndex(U=>T[U.route.id]!==void 0);return P.slice(0,Q+1)}return P}function g(){let{isSpaMode:P,manifest:T,routeModules:I,criticalCss:Q}=h(),{errors:U,matches:N}=p(),V=C(N,U,P),W=l.useMemo(()=>i.getKeyedLinksForMatches(V,I,T),[V,I,T]);return l.createElement(l.Fragment,null,Q?l.createElement("style",{dangerouslySetInnerHTML:{__html:Q}}):null,W.map(({key:Z,link:ee})=>i.isPageLinkDescriptor(ee)?l.createElement(k,e.extends({key:Z},ee)):l.createElement("link",e.extends({key:Z},ee))))}function k({page:P,...T}){let{router:I}=c(),Q=l.useMemo(()=>t.matchRoutes(I.routes,P,I.basename),[I.routes,P,I.basename]);return Q?l.createElement(O,e.extends({page:P,matches:Q},T)):(console.warn(`Tried to prefetch ${P} but no routes matched.`),null)}function R(P){let{manifest:T,routeModules:I}=h(),[Q,U]=l.useState([]);return l.useEffect(()=>{let N=!1;return i.getKeyedPrefetchLinks(P,T,I).then(V=>{N||U(V)}),()=>{N=!0}},[P,T,I]),Q}function O({page:P,matches:T,...I}){let Q=t.useLocation(),{future:U,manifest:N,routeModules:V}=h(),{loaderData:W,matches:Z}=p(),ee=l.useMemo(()=>i.getNewMatchesForLinks(P,T,Z,N,Q,U,"data"),[P,T,Z,N,Q,U]),ve=l.useMemo(()=>{if(!U.v3_singleFetch)return i.getDataLinkHrefs(P,ee,N);if(P===Q.pathname+Q.search+Q.hash)return[];let ne=new Set,we=!1;if(T.forEach(ie=>{var me;N.routes[ie.route.id].hasLoader&&(!ee.some(Vt=>Vt.route.id===ie.route.id)&&ie.route.id in W&&(me=V[ie.route.id])!==null&&me!==void 0&&me.shouldRevalidate||N.routes[ie.route.id].hasClientLoader?we=!0:ne.add(ie.route.id))}),ne.size===0)return[];let le=o.singleFetchUrl(P);return we&&ne.size>0&&le.searchParams.set("_routes",T.filter(ie=>ne.has(ie.route.id)).map(ie=>ie.route.id).join(",")),[le.pathname+le.search]},[U.v3_singleFetch,W,Q,N,ee,T,P,V]),J=l.useMemo(()=>i.getNewMatchesForLinks(P,T,Z,N,Q,U,"assets"),[P,T,Z,N,Q,U]),re=l.useMemo(()=>i.getModuleLinkHrefs(J,N),[J,N]),fe=R(J);return l.createElement(l.Fragment,null,ve.map(ne=>l.createElement("link",e.extends({key:ne,rel:"prefetch",as:"fetch",href:ne},I))),re.map(ne=>l.createElement("link",e.extends({key:ne,rel:"modulepreload",href:ne},I))),fe.map(({key:ne,link:we})=>l.createElement("link",e.extends({key:ne},we))))}function S(){let{isSpaMode:P,routeModules:T}=h(),{errors:I,matches:Q,loaderData:U}=p(),N=t.useLocation(),V=C(Q,I,P),W=null;I&&(W=I[V[V.length-1].route.id]);let Z=[],ee=null,ve=[];for(let J=0;J<V.length;J++){let re=V[J],fe=re.route.id,ne=U[fe],we=re.params,le=T[fe],ie=[],me={id:fe,data:ne,meta:[],params:re.params,pathname:re.pathname,handle:re.route.handle,error:W};if(ve[J]=me,le!=null&&le.meta?ie=typeof le.meta=="function"?le.meta({data:ne,params:we,location:N,matches:ve,error:W}):Array.isArray(le.meta)?[...le.meta]:le.meta:ee&&(ie=[...ee]),ie=ie||[],!Array.isArray(ie))throw new Error("The route at "+re.route.path+` returns an invalid value. All route meta functions must return an array of meta objects.
328
329To reference the meta function API, see https://remix.run/route/meta`);me.meta=ie,ve[J]=me,Z=[...ie],ee=Z}return l.createElement(l.Fragment,null,Z.flat().map(J=>{if(!J)return null;if("tagName"in J){let{tagName:re,...fe}=J;if(!E(re))return console.warn(`A meta object uses an invalid tagName: ${re}. Expected either 'link' or 'meta'`),null;let ne=re;return l.createElement(ne,e.extends({key:JSON.stringify(fe)},fe))}if("title"in J)return l.createElement("title",{key:"title"},String(J.title));if("charset"in J&&(J.charSet??(J.charSet=J.charset),delete J.charset),"charSet"in J&&J.charSet!=null)return typeof J.charSet=="string"?l.createElement("meta",{key:"charSet",charSet:J.charSet}):null;if("script:ld+json"in J)try{let re=JSON.stringify(J["script:ld+json"]);return l.createElement("script",{key:`script:ld+json:${re}`,type:"application/ld+json",dangerouslySetInnerHTML:{__html:re}})}catch{return null}return l.createElement("meta",e.extends({key:JSON.stringify(J)},J))}))}function E(P){return typeof P=="string"&&/^(meta|link)$/.test(P)}function x(P){return l.createElement(t.Await,P)}let L=!1;function j(P){let{manifest:T,serverHandoffString:I,abortDelay:Q,serializeError:U,isSpaMode:N,future:V,renderMeta:W}=h(),{router:Z,static:ee,staticContext:ve}=c(),{matches:J}=p(),re=a.isFogOfWarEnabled(V,N);W&&(W.didRenderScripts=!0);let fe=C(J,null,N);l.useEffect(()=>{L=!0},[]);let ne=(se,de)=>{let he;return U&&de instanceof Error?he=U(de):he=de,`${JSON.stringify(se)}:__remixContext.p(!1, ${s.escapeHtml(JSON.stringify(he))})`},we=(se,de,he)=>{let _e;try{_e=JSON.stringify(he)}catch(tt){return ne(de,tt)}return`${JSON.stringify(de)}:__remixContext.p(${s.escapeHtml(_e)})`},le=(se,de,he)=>{let _e;return U&&he instanceof Error?_e=U(he):_e=he,`__remixContext.r(${JSON.stringify(se)}, ${JSON.stringify(de)}, !1, ${s.escapeHtml(JSON.stringify(_e))})`},ie=(se,de,he)=>{let _e;try{_e=JSON.stringify(he)}catch(tt){return le(se,de,tt)}return`__remixContext.r(${JSON.stringify(se)}, ${JSON.stringify(de)}, ${s.escapeHtml(_e)})`},me=[],Vt=l.useMemo(()=>{var se;let de=V.v3_singleFetch?"window.__remixContext.stream = new ReadableStream({start(controller){window.__remixContext.streamController = controller;}}
329).pipeThrough(new TextEncoderStream());":"",he=ve?`window.__remixContext = ${I};${de}`:" ",_e=V.v3_singleFetch||ve==null?void 0:ve.activeDeferreds;he+=_e?["__remixContext.p = function(v,e,p,x) {","  if (typeof e !== 'undefined') {",`    x=new Error("Unexpected Server Error");
330    x.stack=undefined;`,"    p=Promise.reject(x);","  } else {","    p=Promise.resolve(v);","  }","  return p;","};","__remixContext.n = function(i,k) {","  __remixContext.t = __remixContext.t || {};","  __remixContext.t[i] = __remixContext.t[i] || {};","  let p = new Promise((r, e) => {__remixContext.t[i][k] = {r:(v)=>{r(v);},e:(v)=>{e(v);}};});",typeof Q=="number"?`setTimeout(() => {if(typeof p._error !== "undefined" || typeof p._data !== "undefined"){return;} __remixContext.t[i][k].e(new Error("Server timeout."))}, ${Q});`:"","  return p;","};","__remixContext.r = function(i,k,v,e,p,x) {","  p = __remixContext.t[i][k];","  if (typeof e !== 'undefined') {",`    x=new Error("Unexpected Server Error");
331    x.stack=undefined;`,"    p.e(x);","  } else {","    p.r(v);","  }","};"].join(`
332`)+Object.entries(_e).map(([Oe,Le])=>{let Oi=new Set(Le.pendingKeys),xi=Le.deferredKeys.map(Ae=>{if(Oi.has(Ae))return me.push(l.createElement(D,{key:`${Oe} | ${Ae}`,deferredData:Le,routeId:Oe,dataKey:Ae,scriptProps:P,serializeData:ie,serializeError:le})),`${JSON.stringify(Ae)}:__remixContext.n(${JSON.stringify(Oe)}, ${JSON.stringify(Ae)})`;{let Kt=Le.data[Ae];return typeof Kt._error<"u"?ne(Ae,Kt._error):we(Oe,Ae,Kt._data)}}).join(`,
333`);return`Object.assign(__remixContext.state.loaderData[${JSON.stringify(Oe)}], {${xi}});`}).join(`
334`)+(me.length>0?`__remixContext.a=${me.length};`:""):"";let tt=ee?`${(se=T.hmr)!==null&&se!==void 0&&se.runtime?`import ${JSON.stringify(T.hmr.runtime)};`:""}${re?"":`import ${JSON.stringify(T.url)}`};
335${fe.map((Oe,Le)=>`import * as route${Le} from ${JSON.stringify(T.routes[Oe.route.id].module)};`).join(`
336`)}
337${re?`window.__remixManifest = ${JSON.stringify(a.getPartialManifest(T,Z),null,2)};`:""}
338window.__remixRouteModules = {${fe.map((Oe,Le)=>`${JSON.stringify(Oe.route.id)}:route${Le}`).join(",")}};
339
340import(${JSON.stringify(T.entry.module)});`:" ";return l.createElement(l.Fragment,null,l.createElement("script",e.extends({},P,{suppressHydrationWarning:!0,dangerouslySetInnerHTML:s.createHtml(he),type:void 0})),l.createElement("script",e.extends({},P,{suppressHydrationWarning:!0,dangerouslySetInnerHTML:s.createHtml(tt),type:"module",async:!0})))},[]);if(!ee&&typeof __remixContext=="object"&&__remixContext.a)for(let se=0;se<__remixContext.a;se++)me.push(l.createElement(D,{key:se,scriptProps:P,serializeData:ie,serializeError:le}));let Ci=fe.map(se=>{let de=T.routes[se.route.id];return(de.imports||[]).concat([de.module])}).flat(1),ki=L?[]:T.entry.imports.concat(Ci);return L?null:l.createElement(l.Fragment,null,re?null:l.createElement("link",{rel:"modulepreload",href:T.url,crossOrigin:P.crossOrigin}),l.createElement("link",{rel:"modulepreload",href:T.entry.module,crossOrigin:P.crossOrigin}),q(ki).map(se=>l.createElement("link",{key:se,rel:"modulepreload",href:se,crossOrigin:P.crossOrigin})),Vt,me)}function D({dataKey:P,deferredData:T,routeId:I,scriptProps:Q,serializeData:U,serializeError:N}){return typeof document>"u"&&T&&P&&I&&n(T.pendingKeys.includes(P),`Deferred data for route ${I} with key ${P} was not pending but tried to render a script for it.`),l.createElement(l.Suspense,{fallback:typeof document>"u"&&T&&P&&I?null:l.createElement("script",e.extends({},Q,{async:!0,suppressHydrationWarning:!0,dangerouslySetInnerHTML:{__html:" "}}))},typeof document>"u"&&T&&P&&I?l.createElement(x,{resolve:T.data[P],errorElement:l.createElement(A,{dataKey:P,routeId:I,scriptProps:Q,serializeError:N}),children:V=>l.createElement("script",e.extends({},Q,{async:!0,suppressHydrationWarning:!0,dangerouslySetInnerHTML:{__html:U(I,P,V)}}))}):l.createElement("script",e.extends({},Q,{async:!0,suppressHydrationWarning:!0,dangerouslySetInnerHTML:{__html:" "}})))}function A({dataKey:P,routeId:T,scriptProps:I,serializeError:Q}){let U=t.useAsyncError();return l.createElement("script",e.extends({},I,{suppressHydrationWarning:!0,dangerouslySetInnerHTML:{__html:Q(T,P,U)}}))}function q(P){return[...new Set(P)]}function F(){return t.useMatches()}function G(){return t.useLoaderData()}function $(P){return t.useRouteLoaderData(P)}function z(){return t.useActionData()}function oe(P={}){return t.useFetcher(P)}const ue=()=>null;function te(...P){return T=>{P.forEach(I=>{typeof I=="function"?I(T):I!=null&&(I.current=T)})}}return ae.Await=x,ae.Form=w,ae.Link=m,ae.Links=g,ae.LiveReload=ue,ae.Meta=S,ae.NavLink=_,ae.PrefetchPageLinks=k,ae.RemixContext=d,ae.Scripts=j,ae.composeEventHandlers=b,ae.useActionData=z,ae.useFetcher=oe,ae.useLoaderData=G,ae.useMatches=F,ae.useRemixContext=h,ae.useRouteLoaderData=$,ae}var Jo=Ei();const Cl=({size:e,full:r,loading:t,to:n,variant:i,tone:s,shape:o,...a}
340)=>{const u=[a.className,Ge.button];return e&&u.push(Ge[`size${be(e)}`]),r&&u.push(Ge.full),i&&u.push(Ge[`variant${be(i)}`]),s&&u.push(Ge[`tone${be(s)}`]),o&&u.push(Ge[`shape${be(o)}`]),n?M.jsx(Jo.Link,{...a,to:n,className:u.join(" "),children:a.children}):M.jsx("button",{...a,disabled:t||a.disabled,className:u.join(" "),children:a.children})},Wo="_stack_i7rlw_1",Xo="_spacingNone_i7rlw_7",Zo="_spacingSmall_i7rlw_11",eu="_spacingMedium_i7rlw_15",tu="_spacingLarge_i7rlw_19",ru="_spacingXLarge_i7rlw_23",nu="_spacingHuge_i7rlw_27",iu="_spacingMdSmall_i7rlw_32",su="_spacingMdMedium_i7rlw_35",au="_spacingMdLarge_i7rlw_38",ou="_spacingMdXLarge_i7rlw_41",uu="_spacingMdHuge_i7rlw_44",lu="_spacingMdNone_i7rlw_47",Ct={stack:Wo,spacingNone:Xo,spacingSmall:Zo,spacingMedium:eu,spacingLarge:tu,spacingXLarge:ru,spacingHuge:nu,spacingMdSmall:iu,spacingMdMedium:su,spacingMdLarge:au,spacingMdXLarge:ou,spacingMdHuge:uu,spacingMdNone:lu},kl=({children:e,spacing:r})=>{const t=[Ct.stack];return r&&typeof r=="string"&&t.push(Ct[`spacing${be(r)}`]),r&&Array.isArray(r)&&(t.push(Ct[`spacing${be(r[0])}`]),t.push(Ct[`spacingMd${be(r[1])}`])),M.jsx("div",{className:t.join(" "),children:Y.Children.map(e,n=>n&&M.jsx("div",{children:n}))})},cu="_textAlignLeft_19e4v_1",du="_textAlignCenter_19e4v_5",fu="_textAlignRight_19e4v_9",hu="_paddingY_19e4v_13",pu="_paddingYHuge_19e4v_17",vu="_paddingAll_19e4v_21",mu="_paddingAllSmall_19e4v_25",yu="_paddingAllBig_19e4v_29",gu="_backgroundCard_19e4v_33",wu="_backgroundAccent_19e4v_37",_u="_rounded_19e4v_42",bu="_accentBorder_19e4v_46",ut={textAlignLeft:cu,textAlignCenter:du,textAlignRight:fu,paddingY:hu,paddingYHuge:pu,paddingAll:vu,paddingAllSmall:mu,paddingAllBig:yu,backgroundCard:gu,backgroundAccent:wu,rounded:_u,accentBorder:bu},Ol=({background:e,children:r,textAlign:t,padding:n,rounded:i,accentBorder:s})=>{const o=[];return t&&o.push(ut[`textAlign${be(t)}`]),n&&o.push(ut[`padding${be(n)}`]),e&&o.push(ut[`background${be(e)}`]),i&&o.push(ut.rounded),s&&o.push(ut.accentBorder),M.jsx("div",{className:o.join(" "),children:r})},Su="_container_1ieyh_1",Ru="_relative_1ieyh_10",Eu="_narrow_1ieyh_14",Cu="_widthMedium_1ieyh_18",ku="_widthNarrow_1ieyh_22",Ou="_gap_1ieyh_26",lt={container:Su,relative:Ru,narrow:Eu,widthMedium:Cu,widthNarrow:ku,gap:Ou},xl=({children:e,narrow:r,relative:t,width:n,gap:i})=>M.jsx("div",{className:Ft(lt.container,t&&lt.relative,r&&lt.narrow,i&&lt.gap,n&&lt[`width${be(n)}`]),children:e}),xu="_text_prkvu_22",Pu="_alignLeft_prkvu_26",Mu="_alignCenter_prkvu_30",Lu="_alignRight_prkvu_34",Au="_sizeLarge_prkvu_38",ju="_toneMain_prkvu_49",Du="_toneDiffuse_prkvu_53",Tu="_toneDiffuseOnAccent_prkvu_57",Fu="_toneError_prkvu_61",Iu="_transformUppercase_prkvu_65",Nu="_weightRegular_prkvu_69",$u="_weightBold_prkvu_73",qu="_textOpacity_prkvu_77",He={text:xu,alignLeft:Pu,alignCenter:Mu,alignRight:Lu,sizeLarge:Au,toneMain:ju,toneDiffuse:Du,toneDiffuseOnAccent:Tu,toneError:Fu,transformUppercase:Iu,weightRegular:Nu,weightBold:$u,textOpacity:qu},Pl=({children:e,size:r,weight:t,align:n,tone:i,transform:s,opacity:o})=>{const a=[He.text];return n&&a.push(He[`align${Te(n)}`]),r&&a.push(He[`size${Te(r)}`]),i&&a.push(He[`tone${Te(i)}`]),s&&a.push(He[`transform${Te(s)}`]),t&&a.push(He[`weight${Te(t)}`]),o&&a.push(He.textOpacity),M.jsx("span",{className:a.join(" "),children:e})};export{gl as $,Ku as A,Cl as B,Ju as C,bl as D,pl as E,ol as F,Hu as G,Te as H,rl as I,Bu as J,un as K,El as L,el as M,be as N,Gu as O,ll as P,ma as Q,cl as R,tl as S,Pl as T,ml as U,$a as V,nl as W,il as X,sl as Y,al as Z,vl as _,Wu as a,dl as a0,wl as a1,xl as b,Ft as c,bo as d,ul as e,Ol as f,kl as g,Ht as h,yl as i,Xu as j,Sl as k,Rl as l,go as m,_o as n,Yu as o,Zu as p,on as q,fl as r,hl as s,vo as t,br as u,Sr as v,_l as w,zu as x,Vu as y,oa as z};

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