!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._posthogChunkIds=e._posthogChunkIds||{},e._posthogChunkIds[n]="01a0a063-3638-7010-87e3-2447a9a49ed5")}catch(e){}}();(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,312952,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"addLocale",{enumerable:!0,get:function(){return n}}),e.r(519250);let n=(e,...t)=>e;("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esModule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)},3208,(e,t,r)=>{"use strict";function n(e,t){return e}Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"removeLocale",{enumerable:!0,get:function(){return n}}),e.r(929369),("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esModule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)},213186,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"detectDomainLocale",{enumerable:!0,get:function(){return n}});let n=(...e)=>{};("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esModule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)},604704,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"resolvePromiseWithTimeout",{enumerable:!0,get:function(){return a}});let n=e.r(212833);function a(e,t,r){return new Promise((r,a)=>{let i=!1;e.then(e=>{i=!0,r(e)}).catch(a),(0,n.requestIdleCallback)(()=>setTimeout(()=>{i||a(t)},3800))})}("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esModule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)},815811,(e,t,r)=>{"use strict";let n;Object.defineProperty(r,"__esModule",{value:!0});var a={createRouteLoader:function(){return b},getClientBuildManifest:function(){return g},isAssetError:function(){return h},markAssetError:function(){return f}};for(var i in a)Object.defineProperty(r,i,{enumerable:!0,get:a[i]});e.r(692454),e.r(298738);let o=e.r(122389),s=e.r(212833),l=e.r(375451),c=e.r(713167),u=e.r(604704);function d(e,t,r){let n,a=t.get(e);if(a)return"future"in a?a.future:Promise.resolve(a);let i=new Promise(e=>{n=e});return t.set(e,{resolve:n,future:i}),r?r().then(e=>(n(e),e)).catch(r=>{throw t.delete(e),r}):i}let p=Symbol("ASSET_LOAD_ERROR");function f(e){return Object.defineProperty(e,p,{})}function h(e){return e&&p in e}let m=function(e){try{return e=document.createElement("link"),!!window.MSInputMethodContext&&!!document.documentMode||e.relList.supports("prefetch")}catch{return!1}}();function g(){if(self.__BUILD_MANIFEST)return Promise.resolve(self.__BUILD_MANIFEST);let e=new Promise(e=>{let t=self.__BUILD_MANIFEST_CB;self.__BUILD_MANIFEST_CB=()=>{e(self.__BUILD_MANIFEST),t&&t()}});return(0,u.resolvePromiseWithTimeout)(e,f(Object.defineProperty(Error("Failed to load client build manifest"),"__NEXT_ERROR_CODE",{value:"E273",enumerable:!1,configurable:!0})),n)}function v(e,t){return g().then(r=>{if(!(t in r))throw f(Object.defineProperty(Error(`Failed to lookup route: ${t}`),"__NEXT_ERROR_CODE",{value:"E446",enumerable:!1,configurable:!0}));let n=r[t].map(t=>e+"/_next/"+(0,c.encodeURIPath)(t));return{scripts:n.filter(e=>e.endsWith(".js")).map(e=>(0,o.__unsafeCreateTrustedScriptURL)(e)+(0,l.getAssetTokenQuery)()),css:n.filter(e=>e.endsWith(".css")).map(e=>e+(0,l.getAssetTokenQuery)())}})}function b(e){let t=new Map,r=new Map,a=new Map,i=new Map;function o(e){{var t;let n=r.get(e.toString());return n?n:document.querySelector(`script[src^="${e}"]`)?Promise.resolve():(r.set(e.toString(),n=new Promise((r,n)=>{(t=document.createElement("script")).onload=r,t.onerror=()=>n(f(Object.defineProperty(Error(`Failed to load script: ${e}`),"__NEXT_ERROR_CODE",{value:"E74",enumerable:!1,configurable:!0}))),t.crossOrigin=void 0,t.src=e,document.body.appendChild(t)})),n)}}function l(e){let t=a.get(e);return t||a.set(e,t=fetch(e,{credentials:"same-origin"}).then(t=>{if(!t.ok)throw Object.defineProperty(Error(`Failed to load stylesheet: ${e}`),"__NEXT_ERROR_CODE",{value:"E189",enumerable:!1,configurable:!0});return t.text().then(t=>({href:e,content:t}))}).catch(e=>{throw f(e)})),t}return{whenEntrypoint:e=>d(e,t),onEntrypoint(e,r){(r?Promise.resolve().then(()=>r()).then(e=>({component:e&&e.default||e,exports:e}),e=>({error:e})):Promise.resolve(void 0)).then(r=>{let n=t.get(e);n&&"resolve"in n?r&&(t.set(e,r),n.resolve(r)):(r?t.set(e,r):t.delete(e),i.delete(e))})},loadRoute(r,a){return d(r,i,()=>{let i;return(0,u.resolvePromiseWithTimeout)(v(e,r).then(({scripts:e,css:n})=>Promise.all([t.has(r)?[]:Promise.all(e.map(o)).then(e=>e),Promise.all(n.map(l))])).then(e=>this.whenEntrypoint(r).then(t=>({entrypoint:t,styles:e[1]}))),f(Object.defineProperty(Error(`Route did not complete loading: ${r}`),"__NEXT_ERROR_CODE",{value:"E12",enumerable:!1,configurable:!0})),n).then(({entrypoint:e,styles:t})=>{let r=Object.assign({styles:t},e);return"error"in e?e:r}).catch(e=>{if(a)throw e;return{error:e}}).finally(()=>i?.())})},prefetch(t){let r;return(r=navigator.connection)&&(r.saveData||/2g/.test(r.effectiveType))?Promise.resolve():v(e,t).then(e=>Promise.all(m?e.scripts.map(e=>{var t,r,n;return t=e.toString(),r="script",new Promise((e,a)=>{let i=` link[rel="prefetch"][href^="${t}"], link[rel="preload"][href^="${t}"], script[src^="${t}"]`;if(document.querySelector(i))return e();n=document.createElement("link"),r&&(n.as=r),n.rel="prefetch",n.crossOrigin=void 0,n.onload=e,n.onerror=()=>a(f(Object.defineProperty(Error(`Failed to prefetch: ${t}`),"__NEXT_ERROR_CODE",{value:"E268",enumerable:!1,configurable:!0}))),n.href=t,document.head.appendChild(n)})}):[])).then(()=>{(0,s.requestIdleCallback)(()=>this.loadRoute(t,!0).catch(()=>{}))}).catch(()=>{})}}}("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esModule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)},205090,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"default",{enumerable:!0,get:function(){return i}}),e.r(692454);let n=e.r(222666);e.r(270401);let a=e.r(32573);function i(e){function t(t){return(0,n.jsx)(e,{router:(0,a.useRouter)(),...t})}return t.getInitialProps=e.getInitialProps,t.origGetInitialProps=e.origGetInitialProps,t}("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esModule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)},32573,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n={Router:function(){return s.default},createRouter:function(){return v},default:function(){return m},makePublicRouterInstance:function(){return b},useRouter:function(){return g},withRouter:function(){return u.default}};for(var a in n)Object.defineProperty(r,a,{enumerable:!0,get:n[a]});let i=e.r(692454),o=i._(e.r(270401)),s=i._(e.r(2966)),l=e.r(709732),c=i._(e.r(808071)),u=i._(e.r(205090)),d={router:null,readyCallbacks:[],ready(e){if(this.router)return e();"u">typeof window&&this.readyCallbacks.push(e)}},p=["pathname","route","query","asPath","components","isFallback","basePath","locale","locales","defaultLocale","isReady","isPreview","isLocaleDomain","domainLocales"],f=["push","replace","reload","back","prefetch","beforePopState"];function h(){if(!d.router)throw Object.defineProperty(Error('No router instance found.\nYou should only use "next/router" on the client side of your app.\n'),"__NEXT_ERROR_CODE",{value:"E1044",enumerable:!1,configurable:!0});return d.router}Object.defineProperty(d,"events",{get:()=>s.default.events}),p.forEach(e=>{Object.defineProperty(d,e,{get:()=>h()[e]})}),f.forEach(e=>{d[e]=(...t)=>h()[e](...t)}),["routeChangeStart","beforeHistoryChange","routeChangeComplete","routeChangeError","hashChangeStart","hashChangeComplete"].forEach(e=>{d.ready(()=>{s.default.events.on(e,(...t)=>{let r=`on${e.charAt(0).toUpperCase()}${e.substring(1)}`;if(d[r])try{d[r](...t)}catch(e){console.error(`Error when running the Router event: ${r}`),console.error((0,c.default)(e)?`${e.message} ${e.stack}`:e+"")}})})});let m=d;function g(){let e=o.default.useContext(l.RouterContext);if(!e)throw Object.defineProperty(Error("NextRouter was not mounted. https://nextjs.org/docs/messages/next-router-not-mounted"),"__NEXT_ERROR_CODE",{value:"E509",enumerable:!1,configurable:!0});return e}function v(...e){return d.router=new s.default(...e),d.readyCallbacks.forEach(e=>e()),d.readyCallbacks=[],d.router}function b(e){let t={};for(let r of p){if("object"==typeof e[r]){t[r]=Object.assign(Array.isArray(e[r])?[]:{},e[r]);continue}t[r]=e[r]}return t.events=s.default.events,f.forEach(r=>{t[r]=(...t)=>e[r](...t)}),t}("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esModule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)},678111,(e,t,r)=>{t.exports=e.r(32573)},603649,(e,t,r)=>{t.exports=e.r(476890)},350045,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"BloomFilter",{enumerable:!0,get:function(){return n}});class n{constructor(e,t=1e-4){this.numItems=e,this.errorRate=t,this.numBits=Math.ceil(-(e*Math.log(t))/(Math.log(2)*Math.log(2))),this.numHashes=Math.ceil(this.numBits/e*Math.log(2)),this.bitArray=Array(this.numBits).fill(0)}static from(e,t=1e-4){let r=new n(e.length,t);for(let t of e)r.add(t);return r}export(){return{numItems:this.numItems,errorRate:this.errorRate,numBits:this.numBits,numHashes:this.numHashes,bitArray:this.bitArray}}import(e){this.numItems=e.numItems,this.errorRate=e.errorRate,this.numBits=e.numBits,this.numHashes=e.numHashes,this.bitArray=e.bitArray}add(e){this.getHashValues(e).forEach(e=>{this.bitArray[e]=1})}contains(e){return this.getHashValues(e).every(e=>this.bitArray[e])}getHashValues(e){let t=[];for(let r=1;r<=this.numHashes;r++){let n=function(e){let t=0;for(let r=0;r>>13,t=Math.imul(t,0x5bd1e995);return t>>>0}(`${e}${r}`)%this.numBits;t.push(n)}return t}}},467791,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"escapeStringRegexp",{enumerable:!0,get:function(){return i}});let n=/[|\\{}()[\]^$+*?.-]/,a=/[|\\{}()[\]^$+*?.-]/g;function i(e){return n.test(e)?e.replace(a,"\\$&"):e}},318449,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n={ESCAPE_REGEX:function(){return o},htmlEscapeAttributeString:function(){return u},htmlEscapeJsonString:function(){return c}};for(var a in n)Object.defineProperty(r,a,{enumerable:!0,get:n[a]});let i={"&":"\\u0026",">":"\\u003e","<":"\\u003c","\u2028":"\\u2028","\u2029":"\\u2029"},o=/[&><\u2028\u2029]/g,s={"&":"&",'"':""","'":"'","<":"<",">":">"},l=/[&"'<>]/g;function c(e){return e.replace(o,e=>i[e])}function u(e){return e.replace(l,e=>s[e])}},476890,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n={default:function(){return _},handleClientScriptLoad:function(){return v},initScriptLoader:function(){return b}};for(var a in n)Object.defineProperty(r,a,{enumerable:!0,get:n[a]});let i=e.r(692454),o=e.r(288802),s=e.r(222666),l=i._(e.r(214857)),c=o._(e.r(270401)),u=e.r(187225),d=e.r(769395),p=e.r(212833),f=e.r(318449),h=new Map,m=new Set,g=e=>{let{src:t,id:r,onLoad:n=()=>{},onReady:a=null,dangerouslySetInnerHTML:i,children:o="",strategy:s="afterInteractive",onError:c,stylesheets:u}=e,p=r||t;if(p&&m.has(p))return;if(h.has(t)){m.add(p),h.get(t).then(n,c);return}let f=()=>{a&&a(),m.add(p)},g=document.createElement("script"),v=new Promise((e,t)=>{g.addEventListener("load",function(t){e(),n&&n.call(this,t),f()}),g.addEventListener("error",function(e){t(e)})}).catch(function(e){c&&c(e)});i?(g.innerHTML=i.__html||"",f()):o?(g.textContent="string"==typeof o?o:Array.isArray(o)?o.join(""):"",f()):t&&(g.src=t,h.set(t,v)),(0,d.setAttributesFromProps)(g,e),"worker"===s&&g.setAttribute("type","text/partytown"),g.setAttribute("data-nscript",s),u&&(e=>{if(l.default.preinit)return e.forEach(e=>{l.default.preinit(e,{as:"style"})});if("u">typeof window){let t=document.head;e.forEach(e=>{let r=document.createElement("link");r.type="text/css",r.rel="stylesheet",r.href=e,t.appendChild(r)})}})(u),document.body.appendChild(g)};function v(e){let{strategy:t="afterInteractive"}=e;"lazyOnload"===t?window.addEventListener("load",()=>{(0,p.requestIdleCallback)(()=>g(e))}):g(e)}function b(e){e.forEach(v),[...document.querySelectorAll('[data-nscript="beforeInteractive"]'),...document.querySelectorAll('[data-nscript="beforePageRender"]')].forEach(e=>{let t=e.id||e.getAttribute("src");m.add(t)})}function y(e){let{id:t,src:r="",onLoad:n=()=>{},onReady:a=null,strategy:i="afterInteractive",onError:o,stylesheets:d,...h}=e,{updateScripts:v,scripts:b,getIsSsr:y,appDir:_,nonce:x}=(0,c.useContext)(u.HeadManagerContext);x=h.nonce||x;let E=(0,c.useRef)(!1);(0,c.useEffect)(()=>{let e=t||r;E.current||(a&&e&&m.has(e)&&a(),E.current=!0)},[a,t,r]);let P=(0,c.useRef)(!1);if((0,c.useEffect)(()=>{if(!P.current){if("afterInteractive"===i)g(e);else"lazyOnload"===i&&("complete"===document.readyState?(0,p.requestIdleCallback)(()=>g(e)):window.addEventListener("load",()=>{(0,p.requestIdleCallback)(()=>g(e))}));P.current=!0}},[e,i]),("beforeInteractive"===i||"worker"===i)&&(v?(b[i]=(b[i]||[]).concat([{id:t,src:r,onLoad:n,onReady:a,onError:o,...h,nonce:x}]),v(b)):y&&y()?m.add(t||r):y&&!y()&&g({...e,nonce:x})),_){if(d&&d.forEach(e=>{l.default.preinit(e,{as:"style"})}),"beforeInteractive"===i)if(!r)return h.dangerouslySetInnerHTML&&(h.children=h.dangerouslySetInnerHTML.__html,delete h.dangerouslySetInnerHTML),(0,s.jsx)("script",{nonce:x,dangerouslySetInnerHTML:{__html:`(self.__next_s=self.__next_s||[]).push(${(0,f.htmlEscapeJsonString)(JSON.stringify([0,{...h,id:t}]))})`}});else return l.default.preload(r,h.integrity?{as:"script",integrity:h.integrity,nonce:x,crossOrigin:h.crossOrigin}:{as:"script",nonce:x,crossOrigin:h.crossOrigin}),(0,s.jsx)("script",{nonce:x,dangerouslySetInnerHTML:{__html:`(self.__next_s=self.__next_s||[]).push(${(0,f.htmlEscapeJsonString)(JSON.stringify([r,{...h,id:t}]))})`}});"afterInteractive"===i&&r&&l.default.preload(r,h.integrity?{as:"script",integrity:h.integrity,nonce:x,crossOrigin:h.crossOrigin}:{as:"script",nonce:x,crossOrigin:h.crossOrigin})}return null}Object.defineProperty(y,"__nextScript",{value:!0});let _=y;("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esModule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)},649307,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"addPathSuffix",{enumerable:!0,get:function(){return a}});let n=e.r(929369);function a(e,t){if(!e.startsWith("/")||!t)return e;let{pathname:r,query:a,hash:i}=(0,n.parsePath)(e);return`${r}${t}${a}${i}`}},926733,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"addLocale",{enumerable:!0,get:function(){return i}});let n=e.r(617505),a=e.r(302010);function i(e,t,r,i){if(!t||t===r)return e;let o=e.toLowerCase();return!i&&((0,a.pathHasPrefix)(o,"/api")||(0,a.pathHasPrefix)(o,`/${t.toLowerCase()}`))?e:(0,n.addPathPrefix)(e,`/${t}`)}},912277,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"formatNextPathnameInfo",{enumerable:!0,get:function(){return s}});let n=e.r(355719),a=e.r(617505),i=e.r(649307),o=e.r(926733);function s(e){let t=(0,o.addLocale)(e.pathname,e.locale,e.buildId?void 0:e.defaultLocale,e.ignorePrefix);return(e.buildId||!e.trailingSlash)&&(t=(0,n.removeTrailingSlash)(t)),e.buildId&&(t=(0,i.addPathSuffix)((0,a.addPathPrefix)(t,`/_next/data/${e.buildId}`),"/"===e.pathname?"index.json":".json")),t=(0,a.addPathPrefix)(t,e.basePath),!e.buildId&&e.trailingSlash?t.endsWith("/")?t:(0,i.addPathSuffix)(t,"/"):(0,n.removeTrailingSlash)(t)}},788514,(e,t,r)=>{"use strict";function n(e,t){let r=Object.keys(e);if(r.length!==Object.keys(t).length)return!1;for(let n=r.length;n--;){let a=r[n];if("query"===a){let r=Object.keys(e.query);if(r.length!==Object.keys(t.query).length)return!1;for(let n=r.length;n--;){let a=r[n];if(!t.query.hasOwnProperty(a)||e.query[a]!==t.query[a])return!1}}else if(!t.hasOwnProperty(a)||e[a]!==t[a])return!1}return!0}Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"compareRouterStates",{enumerable:!0,get:function(){return n}})},298738,(e,t,r)=>{"use strict";function n(e,t=""){return("/"===e?"/index":/^\/index(\/|$)/.test(e)?`/index${e}`:e)+t}Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"default",{enumerable:!0,get:function(){return n}})},122389,(e,t,r)=>{"use strict";let n;function a(e){return(void 0===n&&"u">typeof window&&(n=window.trustedTypes?.createPolicy("nextjs",{createHTML:e=>e,createScript:e=>e,createScriptURL:e=>e})||null),n)?.createScriptURL(e)||e}Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"__unsafeCreateTrustedScriptURL",{enumerable:!0,get:function(){return a}}),("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esModule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)},212833,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n={cancelIdleCallback:function(){return o},requestIdleCallback:function(){return i}};for(var a in n)Object.defineProperty(r,a,{enumerable:!0,get:n[a]});let i="u">typeof self&&self.requestIdleCallback&&self.requestIdleCallback.bind(window)||function(e){let t=Date.now();return self.setTimeout(function(){e({didTimeout:!1,timeRemaining:function(){return Math.max(0,50-(Date.now()-t))}})},1)},o="u">typeof self&&self.cancelIdleCallback&&self.cancelIdleCallback.bind(window)||function(e){return clearTimeout(e)};("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esModule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)},583921,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"interpolateAs",{enumerable:!0,get:function(){return i}});let n=e.r(206843),a=e.r(267281);function i(e,t,r){let i="",o=(0,a.getRouteRegex)(e),s=o.groups,l=(t!==e?(0,n.getRouteMatcher)(o)(t):"")||r;i=e;let c=Object.keys(s);return c.every(e=>{let t=l[e]||"",{repeat:r,optional:n}=s[e],a=`[${r?"...":""}${e}]`;return n&&(a=`${!t?"/":""}[${a}]`),r&&!Array.isArray(t)&&(t=[t]),(n||e in l)&&(i=i.replace(a,r?t.map(e=>encodeURIComponent(e)).join("/"):encodeURIComponent(t))||"/")})||(i=""),{params:c,result:i}}},352772,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"resolveHref",{enumerable:!0,get:function(){return f}});let n=e.r(967128),a=e.r(526324),i=e.r(40551),o=e.r(728674),s=e.r(519250),l=e.r(568224),c=e.r(766511),u=e.r(583921),d=e.r(267281),p=e.r(206843);function f(e,t,r){let f,h="string"==typeof t?t:(0,a.formatWithValidation)(t),m=h.match(/^[a-z][a-z0-9+.-]*:\/\//i),g=m?h.slice(m[0].length):h;if((g.split("?",1)[0]||"").match(/(\/\/|\\)/)){console.error(`Invalid href '${h}' passed to next/router in page: '${e.pathname}'. Repeated forward-slashes (//) or backslashes \\ are not valid in the href.`);let t=(0,o.normalizeRepeatedSlashes)(g);h=(m?m[0]:"")+t}if(!(0,l.isLocalURL)(h))return r?[h]:h;try{let t=h.startsWith("#")?e.asPath:e.pathname;if(h.startsWith("?")&&(t=e.asPath,(0,c.isDynamicRoute)(e.pathname))){t=e.pathname;let r=(0,d.getRouteRegex)(e.pathname);(0,p.getRouteMatcher)(r)(e.asPath)||(t=e.asPath)}f=new URL(t,"http://n")}catch(e){f=new URL("/","http://n")}try{let e=new URL(h,f);e.pathname=(0,s.normalizePathTrailingSlash)(e.pathname);let t="";if((0,c.isDynamicRoute)(e.pathname)&&e.searchParams&&r){let r=(0,n.searchParamsToUrlQuery)(e.searchParams),{result:o,params:s}=(0,u.interpolateAs)(e.pathname,e.pathname,r);o&&(t=(0,a.formatWithValidation)({pathname:o,hash:e.hash,query:(0,i.omit)(r,s)}))}let o=e.origin===f.origin?e.href.slice(e.origin.length):e.href;return r?[o,t||o]:o}catch(e){return r?[h]:h}}("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esModule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)},139865,(e,t,r)=>{"use strict";function n(e){return"/api"===e||!!(null==e?void 0:e.startsWith("/api/"))}Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"isAPIRoute",{enumerable:!0,get:function(){return n}})},168359,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"isDynamicRoute",{enumerable:!0,get:function(){return o}});let n=e.r(150316),a=/\/[^/]*\[[^/]+\][^/]*(?=\/|$)/,i=/\/\[[^/]+\](?=\/|$)/;function o(e,t=!0){return((0,n.isInterceptionRouteAppPath)(e)&&(e=(0,n.extractInterceptionRouteInformation)(e).interceptedRoute),t)?i.test(e):a.test(e)}},766511,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n={getSortedRouteObjects:function(){return i.getSortedRouteObjects},getSortedRoutes:function(){return i.getSortedRoutes},isDynamicRoute:function(){return o.isDynamicRoute}};for(var a in n)Object.defineProperty(r,a,{enumerable:!0,get:n[a]});let i=e.r(850211),o=e.r(168359)},79470,(e,t,r)=>{"use strict";function n(e){return e.replace(/\\/g,"/")}Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"normalizePathSep",{enumerable:!0,get:function(){return n}})},202082,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"denormalizePagePath",{enumerable:!0,get:function(){return i}});let n=e.r(766511),a=e.r(79470);function i(e){let t=(0,a.normalizePathSep)(e);return t.startsWith("/index/")&&!(0,n.isDynamicRoute)(t)?t.slice(6):"/index"!==t?t:"/"}},467369,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"normalizeLocalePath",{enumerable:!0,get:function(){return a}});let n=new WeakMap;function a(e,t){let r;if(!t)return{pathname:e};let a=n.get(t);a||(a=t.map(e=>e.toLowerCase()),n.set(t,a));let i=e.split("/",2);if(!i[1])return{pathname:e};let o=i[1].toLowerCase(),s=a.indexOf(o);return s<0?{pathname:e}:(r=t[s],{pathname:e=e.slice(r.length+1)||"/",detectedLocale:r})}},146305,(e,t,r)=>{"use strict";function n(){let e=Object.create(null);return{on(t,r){(e[t]||(e[t]=[])).push(r)},off(t,r){e[t]&&e[t].splice(e[t].indexOf(r)>>>0,1)},emit(t,...r){(e[t]||[]).slice().map(e=>{e(...r)})}}}Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"default",{enumerable:!0,get:function(){return n}})},40551,(e,t,r)=>{"use strict";function n(e,t){let r={};return Object.keys(e).forEach(n=>{t.includes(n)||(r[n]=e[n])}),r}Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"omit",{enumerable:!0,get:function(){return n}})},919104,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"parseLoaderTree",{enumerable:!0,get:function(){return a}});let n=e.r(164006);function a(e){let[t,r,a,i]=e,{layout:o,template:s}=a,{page:l}=a;l=t===n.DEFAULT_SEGMENT_KEY?a.defaultPage:l;let c=o?.[1]||s?.[1]||l?.[1];return{page:l,segment:t,modules:a,conventionPath:c,parallelRoutes:r,staticSiblings:i}}},851939,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n={getParamProperties:function(){return l},getSegmentParam:function(){return o},isCatchAll:function(){return s}};for(var a in n)Object.defineProperty(r,a,{enumerable:!0,get:n[a]});let i=e.r(150316);function o(e){let t=i.INTERCEPTION_ROUTE_MARKERS.find(t=>e.startsWith(t));return(t&&(e=e.slice(t.length)),e.startsWith("[[...")&&e.endsWith("]]"))?{paramType:"optional-catchall",paramName:e.slice(5,-2)}:e.startsWith("[...")&&e.endsWith("]")?{paramType:t?`catchall-intercepted-${t}`:"catchall",paramName:e.slice(4,-1)}:e.startsWith("[")&&e.endsWith("]")?{paramType:t?`dynamic-intercepted-${t}`:"dynamic",paramName:e.slice(1,-1)}:null}function s(e){return"catchall"===e||"catchall-intercepted-(..)(..)"===e||"catchall-intercepted-(.)"===e||"catchall-intercepted-(..)"===e||"catchall-intercepted-(...)"===e||"optional-catchall"===e}function l(e){let t=!1,r=!1;switch(e){case"catchall":case"catchall-intercepted-(..)(..)":case"catchall-intercepted-(.)":case"catchall-intercepted-(..)":case"catchall-intercepted-(...)":t=!0;break;case"optional-catchall":t=!0,r=!0}return{repeat:t,optional:r}}},384839,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n={isInterceptionAppRoute:function(){return u},isNormalizedAppRoute:function(){return c},parseAppRouteSegment:function(){return l},parseAppRouteWithSlots:function(){return f},parseNormalizedAppRoute:function(){return p}};for(var a in n)Object.defineProperty(r,a,{enumerable:!0,get:n[a]});let i=e.r(770059),o=e.r(851939),s=e.r(150316);function l(e){if(""===e)return null;let t=s.INTERCEPTION_ROUTE_MARKERS.find(t=>e.startsWith(t)),r=(0,o.getSegmentParam)(e);return r?{type:"dynamic",name:e,param:r,interceptionMarker:t}:e.startsWith("(")&&e.endsWith(")")?{type:"route-group",name:e,interceptionMarker:t}:e.startsWith("@")?{type:"parallel-route",name:e,interceptionMarker:t}:{type:"static",name:e,interceptionMarker:t}}function c(e){return e.normalized}function u(e){return void 0!==e.interceptionMarker&&void 0!==e.interceptingRoute&&void 0!==e.interceptedRoute}function d(e,t){let r,n,a,s=e.split("/").filter(Boolean),c=[];for(let u of s){let s=l(function(e){if(!/%5b|%5d/i.test(e))return e;try{let t=decodeURIComponent(e);return(0,o.getSegmentParam)(t)?t:e}catch{return e}}(u));if(s){if("route-group"===s.type&&!(2&t))throw Object.defineProperty(new i.InvariantError(`${e} is being parsed as a normalized route, but it has a route group segment.`),"__NEXT_ERROR_CODE",{value:"E1151",enumerable:!1,configurable:!0});if("parallel-route"===s.type&&!(1&t))throw Object.defineProperty(new i.InvariantError(`${e} is being parsed as a normalized route, but it has a parallel route segment.`),"__NEXT_ERROR_CODE",{value:"E1152",enumerable:!1,configurable:!0});if(c.push(s),s.interceptionMarker){let i=e.split(s.interceptionMarker);if(2!==i.length)throw Object.defineProperty(Error(`Invalid interception route: ${e}`),"__NEXT_ERROR_CODE",{value:"E924",enumerable:!1,configurable:!0});n=d(i[0],t),a=d(i[1],t),r=s.interceptionMarker}}}let u=c.filter(e=>"dynamic"===e.type);return{normalized:0===t,pathname:e,segments:c,dynamicSegments:u,interceptionMarker:r,interceptingRoute:n,interceptedRoute:a}}function p(e){return d(e,0)}function f(e){return d(e,1)}},592689,(e,t,r)=>{"use strict";function n(e){switch(e){case"catchall-intercepted-(..)(..)":case"dynamic-intercepted-(..)(..)":return"(..)(..)";case"catchall-intercepted-(.)":case"dynamic-intercepted-(.)":return"(.)";case"catchall-intercepted-(..)":case"dynamic-intercepted-(..)":return"(..)";case"catchall-intercepted-(...)":case"dynamic-intercepted-(...)":return"(...)";default:return null}}Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"interceptionPrefixFromParamType",{enumerable:!0,get:function(){return n}})},218418,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"resolveParamValue",{enumerable:!0,get:function(){return i}});let n=e.r(770059),a=e.r(592689);function i(e,t,r,i,o){switch(t){case"catchall":case"optional-catchall":case"catchall-intercepted-(..)(..)":case"catchall-intercepted-(.)":case"catchall-intercepted-(..)":case"catchall-intercepted-(...)":let s=[];for(let e=r;e0)return s;if("optional-catchall"===t)return;throw Object.defineProperty(new n.InvariantError(`Unexpected empty path segments match for a route "${i.pathname}" with param "${e}" of type "${t}"`),"__NEXT_ERROR_CODE",{value:"E931",enumerable:!1,configurable:!0});case"dynamic":case"dynamic-intercepted-(..)(..)":case"dynamic-intercepted-(.)":case"dynamic-intercepted-(..)":case"dynamic-intercepted-(...)":if(r{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n={PARAMETER_PATTERN:function(){return d},getDynamicParam:function(){return u},interpolateParallelRouteParams:function(){return c},parseMatchedParameter:function(){return f},parseParameter:function(){return p}};for(var a in n)Object.defineProperty(r,a,{enumerable:!0,get:n[a]});let i=e.r(770059),o=e.r(919104),s=e.r(384839),l=e.r(218418);function c(e,t,r,n){let a=structuredClone(t),c=[{tree:e,depth:0}],u=(0,s.parseNormalizedAppRoute)(r);for(;c.length>0;){let{tree:e,depth:t}=c.pop(),{segment:r,parallelRoutes:d}=(0,o.parseLoaderTree)(e),p=(0,s.parseAppRouteSegment)(r);if(p?.type==="dynamic"&&!a.hasOwnProperty(p.param.paramName)&&!n?.has(p.param.paramName)){let{paramName:e,paramType:r}=p.param,n=(0,l.resolveParamValue)(e,r,t,u,a);if(void 0!==n)a[e]=n;else if("optional-catchall"!==r)throw Object.defineProperty(new i.InvariantError(`Could not resolve param value for segment: ${e}`),"__NEXT_ERROR_CODE",{value:"E932",enumerable:!1,configurable:!0})}let f=t;for(let e of(p&&"route-group"!==p.type&&"parallel-route"!==p.type&&f++,Object.values(d)))c.push({tree:e,depth:f})}return a}function u(e,t,r,n,a){let o=function(e,t,r){let n=e[t];if(r?.has(t)){let[e]=r.get(t);n=e}else Array.isArray(n)?n=n.map(e=>encodeURIComponent(e)):"string"==typeof n&&(n=encodeURIComponent(n));return n}(e,t,n);if(!o||0===o.length){if("oc"===r)return{param:t,value:null,type:r,treeSegment:[t,"",r,a]};throw Object.defineProperty(new i.InvariantError(`Missing value for segment key: "${t}" with dynamic param type: ${r}`),"__NEXT_ERROR_CODE",{value:"E864",enumerable:!1,configurable:!0})}let s=Array.isArray(o)?o.join("/"):o;return{param:t,value:o,treeSegment:[t,s,r,a],type:r}}let d=/^([^[]*)\[((?:\[[^\]]*\])|[^\]]+)\](.*)$/;function p(e){let t=e.match(d);return t?f(t[2]):f(e)}function f(e){let t=e.startsWith("[")&&e.endsWith("]");t&&(e=e.slice(1,-1));let r=e.startsWith("...");return r&&(e=e.slice(3)),{key:e,repeat:r,optional:t}}},267281,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n={getNamedMiddlewareRegex:function(){return m},getNamedRouteRegex:function(){return h},getRouteRegex:function(){return d}};for(var a in n)Object.defineProperty(r,a,{enumerable:!0,get:n[a]});let i=e.r(754932),o=e.r(150316),s=e.r(467791),l=e.r(355719),c=e.r(637445);function u(e,t,r){let n={},a=1,i=[];for(let u of(0,l.removeTrailingSlash)(e).slice(1).split("/")){let e=o.INTERCEPTION_ROUTE_MARKERS.find(e=>u.startsWith(e)),l=u.match(c.PARAMETER_PATTERN);if(e&&l&&l[2]){let{key:t,optional:r,repeat:o}=(0,c.parseMatchedParameter)(l[2]);n[t]={pos:a++,repeat:o,optional:r},i.push(`/${(0,s.escapeStringRegexp)(e)}([^/]+?)`)}else if(l&&l[2]){let{key:e,repeat:t,optional:o}=(0,c.parseMatchedParameter)(l[2]);n[e]={pos:a++,repeat:t,optional:o},r&&l[1]&&i.push(`/${(0,s.escapeStringRegexp)(l[1])}`);let u=t?o?"(?:/(.+?))?":"/(.+?)":"/([^/]+?)";r&&l[1]&&(u=u.substring(1)),i.push(u)}else i.push(`/${(0,s.escapeStringRegexp)(u)}`);t&&l&&l[3]&&i.push((0,s.escapeStringRegexp)(l[3]))}return{parameterizedRoute:i.join(""),groups:n}}function d(e,{includeSuffix:t=!1,includePrefix:r=!1,excludeOptionalTrailingSlash:n=!1}={}){let{parameterizedRoute:a,groups:i}=u(e,t,r),o=a;return n||(o+="(?:/)?"),{re:RegExp(`^${o}$`),groups:i}}function p({interceptionMarker:e,getSafeRouteKey:t,segment:r,routeKeys:n,keyPrefix:a,backreferenceDuplicateKeys:i}){let o,{key:l,optional:u,repeat:d}=(0,c.parseMatchedParameter)(r),f=l.replace(/\W/g,"");a&&(f=`${a}${f}`);let h=!1;(0===f.length||f.length>30)&&(h=!0),isNaN(parseInt(f.slice(0,1)))||(h=!0),h&&(f=t());let m=f in n;a?n[f]=`${a}${l}`:n[f]=l;let g=e?(0,s.escapeStringRegexp)(e):"";return o=m&&i?`\\k<${f}>`:d?`(?<${f}>.+?)`:`(?<${f}>[^/]+?)`,{key:l,pattern:u?`(?:/${g}${o})?`:`/${g}${o}`,cleanedKey:f,optional:u,repeat:d}}function f(e,t,r,n,a,u={names:{},intercepted:{}}){let d,h=(d=0,()=>{let e="",t=++d;for(;t>0;)e+=String.fromCharCode(97+(t-1)%26),t=Math.floor((t-1)/26);return e}),m={},g=[],v=[];for(let d of(u=structuredClone(u),(0,l.removeTrailingSlash)(e).slice(1).split("/"))){let e,l=o.INTERCEPTION_ROUTE_MARKERS.some(e=>d.startsWith(e)),f=d.match(c.PARAMETER_PATTERN),b=l?f?.[1]:void 0;if(b&&f?.[2]?(e=t?i.NEXT_INTERCEPTION_MARKER_PREFIX:void 0,u.intercepted[f[2]]=b):e=f?.[2]&&u.intercepted[f[2]]?t?i.NEXT_INTERCEPTION_MARKER_PREFIX:void 0:t?i.NEXT_QUERY_PARAM_PREFIX:void 0,b&&f&&f[2]){let{key:t,pattern:r,cleanedKey:n,repeat:i,optional:o}=p({getSafeRouteKey:h,interceptionMarker:b,segment:f[2],routeKeys:m,keyPrefix:e,backreferenceDuplicateKeys:a});g.push(r),v.push(`/${f[1]}:${u.names[t]??n}${i?o?"*":"+":""}`),u.names[t]??=n}else if(f&&f[2]){n&&f[1]&&(g.push(`/${(0,s.escapeStringRegexp)(f[1])}`),v.push(`/${f[1]}`));let{key:t,pattern:r,cleanedKey:i,repeat:o,optional:l}=p({getSafeRouteKey:h,segment:f[2],routeKeys:m,keyPrefix:e,backreferenceDuplicateKeys:a}),c=r;n&&f[1]&&(c=c.substring(1)),g.push(c),v.push(`/:${u.names[t]??i}${o?l?"*":"+":""}`),u.names[t]??=i}else g.push(`/${(0,s.escapeStringRegexp)(d)}`),v.push(`/${d}`);r&&f&&f[3]&&(g.push((0,s.escapeStringRegexp)(f[3])),v.push(f[3]))}return{namedParameterizedRoute:g.join(""),routeKeys:m,pathToRegexpPattern:v.join(""),reference:u}}function h(e,t){let r=f(e,t.prefixRouteKeys,t.includeSuffix??!1,t.includePrefix??!1,t.backreferenceDuplicateKeys??!1,t.reference),n=r.namedParameterizedRoute;return t.excludeOptionalTrailingSlash||(n+="(?:/)?"),{...d(e,t),namedRegex:`^${n}$`,routeKeys:r.routeKeys,pathToRegexpPattern:r.pathToRegexpPattern,reference:r.reference}}function m(e,t){let{parameterizedRoute:r}=u(e,!1,!1),{catchAll:n=!0}=t;if("/"===r)return{namedRegex:`^/${n?".*":""}$`};let{namedParameterizedRoute:a}=f(e,!1,!1,!1,!1,void 0);return{namedRegex:`^${a}${n?"(?:(/.*)?)":""}$`}}},865411,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n={DYNAMIC_FILTER_PLACEHOLDER:function(){return i},hasDynamicFilterCandidate:function(){return o}};for(var a in n)Object.defineProperty(r,a,{enumerable:!0,get:n[a]});let i="[]";function o(e,t,r){let n=e.split("/"),a=t.split("/"),o=n[n.length-1]??"";if(!(o.startsWith("[...")||o.startsWith("[[..."))&&n.length!==a.length)return!1;let s=[];for(let e=1;e8)return!1;let l=(1<{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"parseRelativeUrl",{enumerable:!0,get:function(){return i}});let n=e.r(728674),a=e.r(967128);function i(e,t,r=!0){let o=new URL("u"{(()=>{"use strict";"u">typeof __nccwpck_require__&&(__nccwpck_require__.ab="/ROOT/node_modules/.bun/next@16.3.3+c50a4dfb6f4f8386/node_modules/next/dist/compiled/path-to-regexp/");var e={};(()=>{function t(e,t){void 0===t&&(t={});for(var r=function(e){for(var t=[],r=0;r=48&&o<=57||o>=65&&o<=90||o>=97&&o<=122||95===o){a+=e[i++];continue}break}if(!a)throw TypeError("Missing parameter name at ".concat(r));t.push({type:"NAME",index:r,value:a}),r=i;continue}if("("===n){var s=1,l="",i=r+1;if("?"===e[i])throw TypeError('Pattern cannot start with "?" at '.concat(i));for(;i-1)return!0}return!1},g=function(e){var t=l[l.length-1],r=e||(t&&"string"==typeof t?t:"");if(t&&!r)throw TypeError('Must have text between two parameters, missing text after "'.concat(t.name,'"'));return!r||m(r)?"[^".concat(a(s),"]+?"):"(?:(?!".concat(a(r),")[^").concat(a(s),"])+?")};u-1:void 0===x;o||(m+="(?:".concat(h,"(?=").concat(f,"))?")),E||(m+="(?=".concat(h,"|").concat(f,")"))}return new RegExp(m,i(r))}function s(e,r,n){if(e instanceof RegExp){var a;if(!r)return e;for(var l=/\((?:\?<(.*?)>)?(?!\?)/g,c=0,u=l.exec(e.source);u;)r.push({name:u[1]||c++,prefix:"",suffix:"",modifier:"",pattern:""}),u=l.exec(e.source);return e}return Array.isArray(e)?(a=e.map(function(e){return s(e,r,n).source}),new RegExp("(?:".concat(a.join("|"),")"),i(n))):o(t(e,n),r,n)}Object.defineProperty(e,"__esModule",{value:!0}),e.pathToRegexp=e.tokensToRegexp=e.regexpToFunction=e.match=e.tokensToFunction=e.compile=e.parse=void 0,e.parse=t,e.compile=function(e,n){return r(t(e,n),n)},e.tokensToFunction=r,e.match=function(e,t){var r=[];return n(s(e,r,t),r,t)},e.regexpToFunction=n,e.tokensToRegexp=o,e.pathToRegexp=s})(),t.exports=e})()},772325,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n={PARAM_SEPARATOR:function(){return i},hasAdjacentParameterIssues:function(){return o},normalizeAdjacentParameters:function(){return s},normalizeTokensForRegexp:function(){return l},stripNormalizedSeparators:function(){return c},stripParameterSeparators:function(){return u}};for(var a in n)Object.defineProperty(r,a,{enumerable:!0,get:n[a]});let i="_NEXTSEP_";function o(e){return"string"==typeof e&&!!(/\/\(\.{1,3}\):[^/\s]+/.test(e)||/:[a-zA-Z_][a-zA-Z0-9_]*:[a-zA-Z_][a-zA-Z0-9_]*/.test(e))}function s(e){let t=e;return(t=t.replace(/(\([^)]*\)):([^/\s]+)/g,`$1${i}:$2`)).replace(/:([^:/\s)]+)(?=:)/g,`:$1${i}`)}function l(e){return e.map(e=>"object"==typeof e&&null!==e&&"modifier"in e&&("*"===e.modifier||"+"===e.modifier)&&"prefix"in e&&"suffix"in e&&""===e.prefix&&""===e.suffix?{...e,prefix:"/"}:e)}function c(e){return e.replace(RegExp(`\\)${i}`,"g"),")")}function u(e){let t={};for(let[r,n]of Object.entries(e))"string"==typeof n?t[r]=n.replace(RegExp(`^${i}`),""):Array.isArray(n)?t[r]=n.map(e=>"string"==typeof e?e.replace(RegExp(`^${i}`),""):e):t[r]=n;return t}},446445,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n={safeCompile:function(){return l},safePathToRegexp:function(){return s},safeRegexpToFunction:function(){return c},safeRouteMatcher:function(){return u}};for(var a in n)Object.defineProperty(r,a,{enumerable:!0,get:n[a]});let i=e.r(32093),o=e.r(772325);function s(e,t,r){if("string"!=typeof e)return(0,i.pathToRegexp)(e,t,r);let n=(0,o.hasAdjacentParameterIssues)(e),a=n?(0,o.normalizeAdjacentParameters)(e):e;try{return(0,i.pathToRegexp)(a,t,r)}catch(a){if(!n)try{let n=(0,o.normalizeAdjacentParameters)(e);return(0,i.pathToRegexp)(n,t,r)}catch(e){}throw a}}function l(e,t){let r=(0,o.hasAdjacentParameterIssues)(e),n=r?(0,o.normalizeAdjacentParameters)(e):e;try{let e=(0,i.compile)(n,t);if(r)return t=>(0,o.stripNormalizedSeparators)(e(t));return e}catch(n){if(!r)try{let r=(0,o.normalizeAdjacentParameters)(e),n=(0,i.compile)(r,t);return e=>(0,o.stripNormalizedSeparators)(n(e))}catch(e){}throw n}}function c(e,t){let r=(0,i.regexpToFunction)(e,t||[]);return e=>{let t=r(e);return!!t&&{...t,params:(0,o.stripParameterSeparators)(t.params)}}}function u(e){return t=>{let r=e(t);return!!r&&(0,o.stripParameterSeparators)(r)}}},206843,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"getRouteMatcher",{enumerable:!0,get:function(){return i}});let n=e.r(728674),a=e.r(446445);function i({re:e,groups:t}){return(0,a.safeRouteMatcher)(r=>{let a=e.exec(r);if(!a)return!1;let i=e=>{try{return decodeURIComponent(e)}catch{throw Object.defineProperty(new n.DecodeError("failed to decode param"),"__NEXT_ERROR_CODE",{value:"E528",enumerable:!1,configurable:!0})}},o={};for(let[e,r]of Object.entries(t)){let t=a[r.pos];void 0!==t&&(r.repeat?o[e]=t.split("/").map(e=>i(e)):o[e]=i(t))}return o})}},312347,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"getPathMatch",{enumerable:!0,get:function(){return a}});let n=e.r(32093);function a(e,t){let r=[],a=(0,n.pathToRegexp)(e,r,{delimiter:"/",sensitive:"boolean"==typeof t?.sensitive&&t.sensitive,strict:t?.strict}),i=(0,n.regexpToFunction)(t?.regexModifier?new RegExp(t.regexModifier(a.source),a.flags):a,r);return(e,n)=>{if("string"!=typeof e)return!1;let a=i(e);if(!a)return!1;if(t?.removeUnnamedParams)for(let e of r)"number"==typeof e.name&&delete a.params[e.name];return{...n,...a.params}}}},182018,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"parseUrl",{enumerable:!0,get:function(){return i}});let n=e.r(967128),a=e.r(102224);function i(e){if(e.startsWith("/"))return(0,a.parseRelativeUrl)(e);let t=new URL(e),r=t.username,i=t.password,o=r?i?`${r}:${i}`:r:null,s=t.pathname,l=t.search;return{auth:o,hash:t.hash,hostname:t.hostname,href:t.href,pathname:s,port:t.port,protocol:t.protocol,query:(0,n.searchParamsToUrlQuery)(t.searchParams),search:l,origin:t.origin,slashes:"//"===t.href.slice(t.protocol.length,t.protocol.length+2)}}},399066,(e,t,r)=>{(()=>{"use strict";"u">typeof __nccwpck_require__&&(__nccwpck_require__.ab="/ROOT/node_modules/.bun/next@16.3.3+c50a4dfb6f4f8386/node_modules/next/dist/compiled/cookie/");var e,r,n,a,i={};i.parse=function(t,r){if("string"!=typeof t)throw TypeError("argument str must be a string");for(var a={},i=t.split(n),o=(r||{}).decode||e,s=0;s{"use strict";function n(t){return function(){let{cookie:r}=t;if(!r)return{};let{parse:n}=e.r(399066);return n(Array.isArray(r)?r.join("; "):r)}}Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"getCookieParser",{enumerable:!0,get:function(){return n}})},172094,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n={compileNonPath:function(){return p},matchHas:function(){return d},parseDestination:function(){return f},prepareDestination:function(){return h}};for(var a in n)Object.defineProperty(r,a,{enumerable:!0,get:n[a]});let i=e.r(467791),o=e.r(182018),s=e.r(150316),l=e.r(543914),c=e.r(446445);function u(e){return e.replace(/__ESC_COLON_/gi,":")}function d(e,t,r=[],n=[]){let a={},i=r=>{let n,i=r.key;switch(r.type){case"header":i=i.toLowerCase(),n=e.headers[i];break;case"cookie":n="cookies"in e?e.cookies[r.key]:(0,l.getCookieParser)(e.headers)()[r.key];break;case"query":n=t[i];break;case"host":{let{host:t}=e?.headers||{};n=t?.split(":",1)[0].toLowerCase()}}if(!r.value&&n)return a[function(e){let t="";for(let r=0;r64&&n<91||n>96&&n<123)&&(t+=e[r])}return t}(i)]=n,!0;if(n){let e=RegExp(`^${r.value}$`),t=Array.isArray(n)?n.slice(-1)[0].match(e):n.match(e);if(t)return Array.isArray(t)&&(t.groups?Object.keys(t.groups).forEach(e=>{a[e]=t.groups[e]}):"host"===r.type&&t[0]&&(a.host=t[0])),!0}return!1};return!(!r.every(e=>i(e))||n.some(e=>i(e)))&&a}function p(e,t){if(!e.includes(":"))return e;for(let r of Object.keys(t))e.includes(`:${r}`)&&(e=e.replace(RegExp(`:${r}\\*`,"g"),`:${r}--ESCAPED_PARAM_ASTERISKS`).replace(RegExp(`:${r}\\?`,"g"),`:${r}--ESCAPED_PARAM_QUESTION`).replace(RegExp(`:${r}\\+`,"g"),`:${r}--ESCAPED_PARAM_PLUS`).replace(RegExp(`:${r}(?!\\w)`,"g"),`--ESCAPED_PARAM_COLON${r}`));return e=e.replace(/(:|\*|\?|\+|\(|\)|\{|\})/g,"\\$1").replace(/--ESCAPED_PARAM_PLUS/g,"+").replace(/--ESCAPED_PARAM_COLON/g,":").replace(/--ESCAPED_PARAM_QUESTION/g,"?").replace(/--ESCAPED_PARAM_ASTERISKS/g,"*"),(0,c.safeCompile)(`/${e}`,{validate:!1})(t).slice(1)}function f(e){let t=e.destination;for(let r of Object.keys({...e.params,...e.query}))r&&(t=t.replace(RegExp(`:${(0,i.escapeStringRegexp)(r)}`,"g"),`__ESC_COLON_${r}`));let r=(0,o.parseUrl)(t),n=r.pathname;n&&(n=u(n));let a=r.href;a&&(a=u(a));let s=r.hostname;s&&(s=u(s));let l=r.hash;l&&(l=u(l));let c=r.search;c&&(c=u(c));let d=r.origin;return d&&(d=u(d)),{...r,pathname:n,hostname:s,href:a,hash:l,search:c,origin:d}}function h(e){let t,r,n=f(e),{hostname:a,query:i,search:o}=n,l=n.pathname;n.hash&&(l=`${l}${n.hash}`);let d=[],h=[];for(let e of((0,c.safePathToRegexp)(l,h),h))d.push(e.name);if(a){let e=[];for(let t of((0,c.safePathToRegexp)(a,e),e))d.push(t.name)}let m=(0,c.safeCompile)(l,{validate:!1});for(let[r,n]of(a&&(t=(0,c.safeCompile)(a,{validate:!1,encode:encodeURIComponent})),Object.entries(i)))Array.isArray(n)?i[r]=n.map(t=>p(u(t),e.params)):"string"==typeof n&&(i[r]=p(u(n),e.params));let g=Object.keys(e.params).filter(e=>"nextInternalLocale"!==e);if(e.appendParamsToQuery&&!g.some(e=>d.includes(e)))for(let t of g)t in i||(i[t]=e.params[t]);if((0,s.isInterceptionRouteAppPath)(l))for(let t of l.split("/")){let r=s.INTERCEPTION_ROUTE_MARKERS.find(e=>t.startsWith(e));if(r){"(..)(..)"===r?(e.params["0"]="(..)",e.params["1"]="(..)"):e.params["0"]=r;break}}try{let[a,i]=(r=m(e.params)).split("#",2);t&&(n.hostname=t(e.params)),n.pathname=a,n.hash=`${i?"#":""}${i||""}`,n.search=o?p(o,e.params):""}catch(e){if(e.message.match(/Expected .*? to not repeat, but got an array/))throw Object.defineProperty(Error("To use a multi-match in the destination you must add `*` at the end of the param name to signify it should repeat. https://nextjs.org/docs/messages/invalid-multi-match"),"__NEXT_ERROR_CODE",{value:"E329",enumerable:!1,configurable:!0});throw e}return n.query={...e.query,...n.query},{newUrl:r,destQuery:i,parsedDestination:n}}},678016,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"default",{enumerable:!0,get:function(){return c}});let n=e.r(312347),a=e.r(172094),i=e.r(355719),o=e.r(467369),s=e.r(862693),l=e.r(102224);function c(e,t,r,c,u,d){let p,f=!1,h=!1,m=(0,l.parseRelativeUrl)(e),g=(0,i.removeTrailingSlash)((0,o.normalizeLocalePath)((0,s.removeBasePath)(m.pathname),d).pathname),v=r=>{let l=(0,n.getPathMatch)(r.source+"",{removeUnnamedParams:!0,strict:!0})(m.pathname);if((r.has||r.missing)&&l){let e=(0,a.matchHas)({headers:{host:document.location.hostname,"user-agent":navigator.userAgent},cookies:document.cookie.split("; ").reduce((e,t)=>{let[r,...n]=t.split("=");return e[r]=n.join("="),e},{})},m.query,r.has,r.missing);e?Object.assign(l,e):l=!1}if(l){if(!r.destination)return h=!0,!0;let n=(0,a.prepareDestination)({appendParamsToQuery:!0,destination:r.destination,params:l,query:c});if(m=n.parsedDestination,e=n.newUrl,Object.assign(c,n.parsedDestination.query),g=(0,i.removeTrailingSlash)((0,o.normalizeLocalePath)((0,s.removeBasePath)(e),d).pathname),t.includes(g))return f=!0,p=g,!0;if((p=u(g))!==e&&t.includes(p))return f=!0,!0}},b=!1;for(let e=0;e{"use strict";let n;Object.defineProperty(r,"__esModule",{value:!0});var a={createKey:function(){return Y},default:function(){return Z},matchesMiddleware:function(){return z}};for(var i in a)Object.defineProperty(r,i,{enumerable:!0,get:a[i]});let o=e.r(692454),s=e.r(288802),l=e.r(355719),c=e.r(815811),u=e.r(476890),d=s._(e.r(808071)),p=e.r(202082),f=e.r(467369),h=o._(e.r(146305)),m=e.r(728674),g=e.r(168359),v=e.r(102224),b=e.r(206843),y=e.r(267281),_=e.r(865411),x=e.r(526324);e.r(213186);let E=e.r(929369),P=e.r(312952),w=e.r(3208),S=e.r(862693),R=e.r(773759),C=e.r(763797),j=e.r(352772),k=e.r(139865),O=e.r(141600),N=e.r(912277),T=e.r(788514),A=e.r(568224),I=e.r(171743),L=e.r(40551),M=e.r(583921),D=e.r(103719),U=e.r(754932),B=e.r(375451),$=e.r(734828);function H(){return Object.assign(Object.defineProperty(Error("Route Cancelled"),"__NEXT_ERROR_CODE",{value:"E315",enumerable:!1,configurable:!0}),{cancelled:!0})}async function z(e){let t=await Promise.resolve(e.router.pageLoader.getMiddleware());if(!t)return!1;let{pathname:r}=(0,E.parsePath)(e.asPath),n=(0,C.hasBasePath)(r)?(0,S.removeBasePath)(r):r,a=(0,R.addBasePath)((0,P.addLocale)(n,e.locale));return t.some(e=>new RegExp(e.regexp).test(a))}function F(e){let t=(0,m.getLocationOrigin)();return e.startsWith(t)?e.substring(t.length):e}function W(e,t,r){let[n,a]=(0,j.resolveHref)(e,t,!0),i=(0,m.getLocationOrigin)(),o=n.startsWith(i),s=a&&a.startsWith(i);n=F(n),a=a?F(a):a;let l=o?n:(0,R.addBasePath)(n),c=r?F((0,j.resolveHref)(e,r)):a||n;return{url:l,as:s?c:(0,R.addBasePath)(c)}}function q(e,t){let r=(0,l.removeTrailingSlash)((0,p.denormalizePagePath)(e));return"/404"===r||"/_error"===r?e:(t.includes(r)||t.some(t=>{if((0,g.isDynamicRoute)(t)&&(0,y.getRouteRegex)(t).re.test(r))return e=t,!0}),(0,l.removeTrailingSlash)(e))}async function K(e){if(!await z(e)||!e.fetchData)return null;let t=await e.fetchData(),r=await function(e,t,r){let a={basePath:r.router.basePath,i18n:{locales:r.router.locales},trailingSlash:!1},i=t.headers.get("x-nextjs-rewrite"),o=i||t.headers.get("x-nextjs-matched-path"),s=t.headers.get(U.MATCHED_PATH_HEADER);if(!s||o||s.includes("__next_data_catchall")||s.includes("/_error")||s.includes("/404")||(o=s),o){if(o.startsWith("/")){let t=(0,v.parseRelativeUrl)(o),s=(0,O.getNextPathnameInfo)(t.pathname,{nextConfig:a,parseData:!0}),u=(0,l.removeTrailingSlash)(s.pathname);return Promise.all([r.router.pageLoader.getPageList(),(0,c.getClientBuildManifest)()]).then(([o,{__rewrites:l}])=>{let c=(0,P.addLocale)(s.pathname,s.locale);if((0,g.isDynamicRoute)(c)||!i&&o.includes((0,f.normalizeLocalePath)((0,S.removeBasePath)(c),r.router.locales).pathname)){let r=(0,O.getNextPathnameInfo)((0,v.parseRelativeUrl)(e).pathname,{nextConfig:{basePath:a.basePath,trailingSlash:a.trailingSlash},parseData:!0});t.pathname=c=(0,R.addBasePath)(r.pathname)}{let e=n(c,o,l,t.query,e=>q(e,o),r.router.locales);e.matchedPage&&(t.pathname=e.parsedAs.pathname,c=t.pathname,Object.assign(t.query,e.parsedAs.query))}let d=o.includes(u)?u:q((0,f.normalizeLocalePath)((0,S.removeBasePath)(t.pathname),r.router.locales).pathname,o);if((0,g.isDynamicRoute)(d)){let e=(0,b.getRouteMatcher)((0,y.getRouteRegex)(d))(c);Object.assign(t.query,e||{})}return{type:"rewrite",parsedAs:t,resolvedHref:d}})}let t=(0,E.parsePath)(e),s=(0,N.formatNextPathnameInfo)({...(0,O.getNextPathnameInfo)(t.pathname,{nextConfig:a,parseData:!0}),defaultLocale:r.router.defaultLocale,buildId:""});return Promise.resolve({type:"redirect-external",destination:`${s}${t.query}${t.hash}`})}let u=t.headers.get("x-nextjs-redirect");if(u){if(u.startsWith("/")){let e=(0,E.parsePath)(u),t=(0,N.formatNextPathnameInfo)({...(0,O.getNextPathnameInfo)(e.pathname,{nextConfig:a,parseData:!0}),defaultLocale:r.router.defaultLocale,buildId:""});return Promise.resolve({type:"redirect-internal",newAs:`${t}${e.query}${e.hash}`,newUrl:`${t}${e.query}${e.hash}`})}return Promise.resolve({type:"redirect-external",destination:u})}return Promise.resolve({type:"next"})}(t.dataHref,t.response,e);return{dataHref:t.dataHref,json:t.json,response:t.response,text:t.text,cacheKey:t.cacheKey,effect:r}}n=e.r(678016).default;let V=Symbol("SSG_DATA_NOT_FOUND");function X(e){try{return JSON.parse(e)}catch(e){return null}}function G({dataHref:e,inflightCache:t,isPrefetch:r,hasMiddleware:n,isServerRender:a,parseJSON:i,persistCache:o,isBackground:s,unstable_skipClientCache:l}){let{href:u}=new URL(e,window.location.href),d=(0,B.getDeploymentId)(),p=s=>(function e(t,r,n){return fetch(t,{credentials:"same-origin",method:n.method||"GET",headers:Object.assign({},n.headers,{"x-nextjs-data":"1"})}).then(a=>!a.ok&&r>1&&a.status>=500?e(t,r-1,n):a)})(e,a?3:1,{headers:Object.assign({},r?{purpose:"prefetch"}:{},r&&n?{"x-middleware-prefetch":"1"}:{},d?{"x-deployment-id":d}:{}),method:s?.method??"GET"}).then(t=>t.ok&&s?.method==="HEAD"?{dataHref:e,response:t,text:"",json:{},cacheKey:u}:t.text().then(r=>{if(!t.ok){if(n&&[301,302,307,308].includes(t.status))return{dataHref:e,response:t,text:r,json:{},cacheKey:u};if(404===t.status&&X(r)?.notFound)return{dataHref:e,json:{notFound:V},response:t,text:r,cacheKey:u};let i=Object.defineProperty(Error("Failed to load static props"),"__NEXT_ERROR_CODE",{value:"E124",enumerable:!1,configurable:!0});throw a||(0,c.markAssetError)(i),i}let o=t.headers.get(U.NEXT_NAV_DEPLOYMENT_ID_HEADER);if(null!=o&&o!==d){let e=Object.defineProperty(Error("Loaded static props were from an outdated deployment, forcing a hard reload"),"__NEXT_ERROR_CODE",{value:"E989",enumerable:!1,configurable:!0});throw a||(0,c.markAssetError)(e),e}return{dataHref:e,json:i?X(r):null,response:t,text:r,cacheKey:u}})).then(e=>(o&&"no-cache"!==e.response.headers.get("x-middleware-cache")||delete t[u],e)).catch(e=>{throw l||delete t[u],("Failed to fetch"===e.message||"NetworkError when attempting to fetch resource."===e.message||"Load failed"===e.message)&&(0,c.markAssetError)(e),e});return l&&o?p({}).then(e=>("no-cache"!==e.response.headers.get("x-middleware-cache")&&(t[u]=Promise.resolve(e)),e)):void 0!==t[u]?t[u]:t[u]=p(s?{method:"HEAD"}:{})}function Y(){return Math.random().toString(36).slice(2,10)}function J({url:e,router:t}){if(e===(0,R.addBasePath)((0,P.addLocale)(t.asPath,t.locale)))throw Object.defineProperty(Error(`Invariant: attempted to hard navigate to the same URL ${e} ${location.href}`),"__NEXT_ERROR_CODE",{value:"E282",enumerable:!1,configurable:!0});window.location.href=e}let Q=({route:e,router:t})=>{let r=!1,n=t.clc=()=>{r=!0};return()=>{if(r){let t=Object.defineProperty(Error(`Abort fetching component for route: "${e}"`),"__NEXT_ERROR_CODE",{value:"E483",enumerable:!1,configurable:!0});throw t.cancelled=!0,t}n===t.clc&&(t.clc=null)}};class Z{static{this.events=(0,h.default)()}constructor(e,t,r,{initialProps:n,pageLoader:a,App:i,wrapApp:o,Component:s,err:c,subscription:u,isFallback:d,locale:p,locales:f,defaultLocale:h,domainLocales:b,isPreview:y}){this.sdc={},this.sbc={},this.isFirstPopStateEvent=!0,this._key=Y(),this.onPopState=e=>{let t,{isFirstPopStateEvent:r}=this;this.isFirstPopStateEvent=!1;let n=e.state;if(!n){let{pathname:e,query:t}=this;this.changeState("replaceState",(0,x.formatWithValidation)({pathname:(0,R.addBasePath)(e),query:t}),(0,m.getURL)());return}if(n.__NA)return void window.location.reload();if(!n.__N||r&&this.locale===n.options.locale&&n.as===this.asPath)return;let{url:a,as:i,options:o,key:s}=n;this._key=s;let{pathname:l}=(0,v.parseRelativeUrl)(a);this.isSsr&&i===(0,R.addBasePath)(this.asPath)&&l===(0,R.addBasePath)(this.pathname)||(!this._bps||this._bps(n))&&this.change("replaceState",a,i,Object.assign({},o,{shallow:o.shallow&&this._shallow,locale:o.locale||this.defaultLocale,_h:0}),t)};const _=(0,l.removeTrailingSlash)(e);this.components={},"/_error"!==e&&(this.components[_]={Component:s,initial:!0,props:n,err:c,__N_SSG:n&&n.__N_SSG,__N_SSP:n&&n.__N_SSP}),this.components["/_app"]={Component:i,styleSheets:[]},this.events=Z.events,this.pageLoader=a;const E=(0,g.isDynamicRoute)(e)&&self.__NEXT_DATA__.autoExport;if(this.basePath="",this.sub=u,this.clc=null,this._wrapApp=o,this.isSsr=!0,this.isLocaleDomain=!1,this.isReady=!!(self.__NEXT_DATA__.gssp||self.__NEXT_DATA__.gip||self.__NEXT_DATA__.isExperimentalCompile||self.__NEXT_DATA__.appGip&&!self.__NEXT_DATA__.gsp||!E&&!self.location.search&&0),this.state={route:_,pathname:e,query:t,asPath:E?e:r,isPreview:!!y,locale:void 0,isFallback:d},this._initialMatchesMiddlewarePromise=Promise.resolve(!1),"u">typeof window){if(!r.startsWith("//")){const n={locale:p},a=(0,m.getURL)();this._initialMatchesMiddlewarePromise=z({router:this,locale:p,asPath:a}).then(i=>(n._shouldResolveHref=r!==e,this.changeState("replaceState",i?a:(0,x.formatWithValidation)({pathname:(0,R.addBasePath)(e),query:t}),a,n),i))}window.addEventListener("popstate",this.onPopState)}}reload(){window.location.reload()}back(){window.history.back()}forward(){window.history.forward()}push(e,t,r={}){if((0,$.isJavaScriptURLString)(e.toString())||t&&(0,$.isJavaScriptURLString)(t.toString()))throw Object.defineProperty(Error("Next.js has blocked a javascript: URL as a security precaution."),"__NEXT_ERROR_CODE",{value:"E978",enumerable:!1,configurable:!0});return{url:e,as:t}=W(this,e,t),this.change("pushState",e,t,r)}replace(e,t,r={}){if((0,$.isJavaScriptURLString)(e.toString())||t&&(0,$.isJavaScriptURLString)(t.toString()))throw Object.defineProperty(Error("Next.js has blocked a javascript: URL as a security precaution."),"__NEXT_ERROR_CODE",{value:"E978",enumerable:!1,configurable:!0});return{url:e,as:t}=W(this,e,t),this.change("replaceState",e,t,r)}async _bfl(t,r,n,a){{if(!this._bfl_s&&!this._bfl_d){let r,i,{BloomFilter:o}=e.r(350045);try{({__routerFilterStatic:r,__routerFilterDynamic:i}=await (0,c.getClientBuildManifest)())}catch(e){if(console.error(e),a)return!0;return J({url:(0,R.addBasePath)((0,P.addLocale)(t,n||this.locale,this.defaultLocale)),router:this}),new Promise(()=>{})}let s={numItems:12,errorRate:1e-4,numBits:231,numHashes:14,bitArray:[1,1,1,1,1,1,0,1,0,1,0,1,0,1,1,0,1,0,1,1,1,0,0,1,1,1,0,1,1,1,1,1,0,0,0,1,0,0,1,0,0,1,0,0,1,1,0,0,1,1,1,1,1,1,1,1,1,1,0,1,0,0,1,1,1,0,1,1,0,1,1,1,0,1,1,0,1,1,1,0,0,0,1,0,1,0,1,0,0,1,0,0,1,0,0,1,0,0,1,0,0,1,0,1,0,1,1,0,0,0,1,0,0,1,0,1,1,0,0,1,0,1,1,1,1,0,0,0,0,1,0,1,0,0,1,0,0,1,1,1,0,0,0,0,1,1,1,0,1,0,1,1,1,0,0,1,0,0,1,0,0,1,0,1,0,0,1,0,1,1,1,1,1,0,0,0,0,0,1,1,1,1,1,1,1,1,1,0,0,1,0,0,1,1,1,0,0,1,0,0,1,0,0,0,0,1,0,1,0,1,1,1,0,0,0,0,1,1,0,0,0,0,0,0,0,1,1,0,0,1,1]};!r&&s&&(r=s||void 0);let l={numItems:224,errorRate:1e-4,numBits:4295,numHashes:14,bitArray:[0,1,0,1,0,1,0,1,1,0,1,1,0,1,1,0,0,0,1,1,1,1,1,0,0,0,0,1,1,1,1,0,0,1,1,1,0,0,1,0,0,1,0,0,1,0,1,0,0,1,0,1,1,1,1,1,1,1,0,1,0,0,1,0,1,0,0,0,1,0,0,0,0,1,0,1,0,1,1,0,0,0,1,1,1,0,0,1,1,1,1,0,0,1,0,1,1,1,1,0,0,1,0,0,1,1,0,1,1,1,1,1,1,0,0,0,0,1,0,0,0,1,0,1,0,0,0,1,0,0,0,0,1,0,1,1,1,1,1,0,1,1,1,0,1,0,0,1,0,1,0,0,0,0,1,0,0,1,1,1,0,1,1,0,0,1,0,1,0,1,1,1,1,1,0,0,1,0,1,1,1,1,0,0,1,1,0,0,1,1,1,0,1,0,0,1,0,1,0,0,1,1,0,1,0,1,0,1,1,0,0,0,0,1,0,0,0,1,1,1,0,0,1,1,0,1,1,0,1,1,1,0,0,1,0,0,1,0,0,1,1,0,1,0,1,0,0,1,1,0,0,1,0,1,1,0,0,0,1,0,1,0,1,0,1,0,1,0,0,0,0,1,0,1,0,0,0,1,1,1,0,1,1,0,1,0,0,1,1,1,0,1,1,0,1,1,0,0,1,0,1,1,1,0,0,1,0,1,1,0,0,1,0,1,0,1,0,1,0,0,1,1,0,0,0,1,0,0,1,1,1,0,0,1,0,0,1,0,1,0,0,1,1,0,1,1,0,0,0,0,0,1,1,1,1,1,0,1,1,0,1,1,0,1,0,1,0,0,1,1,1,0,0,0,1,1,1,0,1,1,1,0,1,0,1,1,0,0,1,1,1,1,1,1,1,1,1,0,1,0,1,0,1,0,0,1,0,1,1,1,0,0,1,1,1,0,1,1,1,1,1,0,1,0,1,0,0,0,1,1,0,0,1,0,0,0,1,1,0,1,1,1,0,1,0,0,1,1,1,1,0,1,1,1,1,0,0,1,0,1,0,1,0,0,1,0,0,1,1,1,0,0,0,1,0,1,1,1,0,0,1,1,1,1,0,0,0,1,1,0,0,0,0,1,1,0,1,1,0,0,0,0,0,0,0,1,1,0,0,0,1,0,1,1,1,1,1,1,0,1,1,1,0,1,0,0,1,1,1,1,0,1,1,1,1,1,1,0,1,0,1,1,0,0,0,0,0,0,1,0,0,1,0,0,0,1,0,1,1,0,0,1,1,1,0,0,1,0,0,1,1,1,0,0,1,1,1,0,1,1,0,1,0,0,0,1,0,1,1,1,0,0,1,1,0,0,0,1,1,1,0,1,1,1,0,0,1,0,0,0,0,0,1,0,1,0,1,1,0,1,0,0,1,1,1,0,1,0,1,0,1,0,1,1,1,1,0,1,1,0,0,0,0,0,1,1,0,0,1,1,0,1,0,1,1,1,1,1,1,1,1,1,0,0,1,0,0,1,1,0,0,1,0,0,1,0,1,1,1,1,1,1,0,1,1,1,1,0,1,0,0,1,0,1,1,0,0,1,1,1,1,1,0,1,0,0,1,0,1,1,0,0,1,0,1,1,1,0,0,1,1,1,1,1,0,0,1,0,1,0,0,0,1,0,0,1,1,1,1,1,1,0,1,0,0,0,0,1,0,0,0,0,0,1,1,0,0,0,1,1,0,0,0,1,1,1,1,0,0,0,1,1,1,1,1,0,1,1,0,0,0,1,0,0,1,0,1,1,1,1,1,0,0,1,1,1,0,1,0,0,0,0,1,0,0,0,1,0,0,1,1,0,0,0,1,1,0,1,0,1,1,1,0,0,0,0,0,1,1,1,0,1,1,0,0,0,1,1,0,0,0,1,0,0,1,0,1,1,1,0,0,1,0,1,1,0,0,1,0,1,0,0,0,0,0,0,0,0,1,0,1,0,0,1,1,1,0,1,1,0,0,1,0,0,0,1,0,0,1,0,1,1,0,1,1,0,1,1,0,0,0,1,1,1,0,0,0,1,0,1,0,1,1,0,0,1,0,0,0,1,0,0,1,1,1,0,1,0,0,1,0,1,1,0,0,1,0,1,0,0,0,0,0,0,1,0,1,0,1,1,0,1,1,1,0,0,1,1,0,0,1,1,0,1,1,0,0,1,0,1,1,0,0,1,0,0,1,1,1,0,1,0,0,0,1,0,0,0,0,0,0,1,1,0,1,1,1,0,1,1,0,0,1,0,0,1,1,1,1,0,0,1,0,0,0,0,1,1,1,0,1,1,1,1,1,1,1,0,1,0,0,1,1,0,0,0,1,0,1,0,0,0,0,0,1,0,1,1,1,0,1,0,1,1,1,0,0,0,0,0,1,1,0,1,0,0,0,1,0,1,0,1,1,0,1,1,1,0,1,1,1,1,1,1,1,1,0,1,1,1,1,0,0,0,1,0,0,1,1,0,0,1,0,1,0,0,0,1,0,1,0,1,1,0,0,0,1,1,0,0,1,0,0,0,0,1,1,1,0,0,1,0,1,0,0,1,0,1,0,0,0,1,0,0,1,1,0,1,1,1,1,0,0,0,1,1,0,0,0,0,0,1,1,1,0,1,1,0,0,1,1,1,0,0,0,1,1,0,0,1,0,1,0,0,1,1,0,1,1,1,1,0,0,1,1,0,1,0,1,0,0,1,1,0,1,1,1,0,1,0,0,0,1,1,1,1,1,0,1,1,1,1,1,1,0,1,1,0,1,1,0,1,1,0,1,0,1,0,1,0,1,0,0,1,1,0,0,0,1,0,0,1,1,1,0,1,0,1,0,1,1,1,0,1,1,0,1,1,1,0,1,1,1,0,1,0,1,1,0,1,1,0,0,0,0,0,0,0,0,1,1,1,1,1,1,0,1,1,0,1,1,1,0,1,1,0,0,0,0,0,0,1,1,0,0,1,1,1,0,1,0,1,0,1,1,0,0,0,1,1,0,0,1,1,0,1,1,0,1,1,1,0,0,0,0,0,0,0,1,1,1,1,1,0,0,0,1,0,1,1,1,1,0,0,1,1,1,0,0,1,0,0,1,1,0,1,1,1,1,1,0,1,1,1,0,1,1,1,1,1,1,1,0,1,1,1,1,0,0,1,1,1,1,0,0,0,1,1,0,1,1,0,0,1,1,1,1,1,0,1,0,1,0,1,1,1,1,1,1,1,1,0,0,1,1,0,1,0,1,1,1,1,0,0,1,0,1,1,1,0,1,0,0,0,0,1,0,1,0,0,0,0,0,0,1,1,0,0,1,0,0,0,1,1,0,1,1,1,1,0,0,0,0,0,1,1,1,0,0,1,0,0,1,0,1,0,1,1,1,1,1,1,1,0,1,1,1,1,1,0,1,1,0,0,1,1,0,1,0,0,0,0,0,1,0,1,1,1,0,1,1,0,0,0,0,1,0,0,0,1,1,0,1,1,0,0,1,1,0,0,1,0,0,1,0,0,0,0,1,1,0,1,1,0,1,0,1,0,1,1,1,0,0,0,1,0,1,1,0,1,1,1,1,0,1,0,0,1,0,1,0,0,0,1,0,1,1,1,1,1,1,0,1,1,1,1,0,0,1,0,1,0,1,1,0,0,1,1,0,0,1,0,1,1,0,0,1,0,0,1,1,1,0,1,0,0,1,0,0,0,0,0,0,0,0,1,0,0,0,1,1,0,0,1,1,0,0,1,0,1,0,1,0,1,0,0,1,0,1,0,0,0,1,1,1,0,1,0,0,1,1,0,1,1,0,0,1,0,1,1,0,1,1,0,0,1,0,0,1,0,0,0,1,0,1,0,0,1,0,0,1,0,0,1,1,1,0,0,0,0,0,1,0,0,1,1,0,1,1,0,1,0,0,0,1,1,0,1,1,1,0,1,0,0,0,0,0,1,1,1,0,1,1,1,0,1,0,0,1,0,1,1,0,0,1,1,1,0,1,0,1,1,1,1,1,0,0,0,1,1,0,0,1,1,0,1,0,0,0,1,1,1,0,0,1,0,0,0,0,0,0,1,1,1,0,1,1,0,1,0,0,0,1,1,1,0,0,0,1,1,0,0,1,0,1,0,0,1,1,0,0,0,1,0,0,1,0,0,1,1,0,0,1,0,0,1,1,1,0,0,0,1,0,1,1,1,0,1,1,1,0,0,1,1,1,0,0,0,1,0,1,1,0,0,1,0,1,0,0,0,0,0,1,1,1,1,0,0,0,1,0,0,1,1,1,1,1,1,0,1,1,1,1,0,1,0,1,1,1,0,0,0,1,1,1,0,0,1,0,0,0,0,1,1,0,0,0,1,0,1,0,0,0,1,1,1,1,0,0,1,0,1,0,1,0,1,0,0,1,0,0,0,1,1,0,1,1,0,1,0,0,1,1,0,0,0,0,0,0,1,1,1,0,1,1,1,0,1,1,0,0,1,0,0,0,1,0,0,0,0,0,0,0,1,0,0,1,0,1,0,1,1,1,0,1,0,1,1,0,0,1,0,0,1,1,0,1,0,1,1,0,1,0,0,1,0,0,0,0,1,1,1,1,0,1,1,0,1,0,0,0,1,1,0,0,0,0,0,1,1,1,0,0,1,0,0,1,1,1,1,1,0,1,1,0,1,1,0,0,0,1,0,0,1,0,0,1,1,1,0,0,1,1,1,1,1,1,1,1,1,1,0,0,0,1,0,1,1,0,1,1,0,1,1,1,0,1,1,1,1,0,1,0,0,0,0,0,1,0,0,1,1,1,1,0,0,0,0,1,0,1,1,1,1,0,1,1,1,1,0,0,1,0,1,1,0,1,0,1,0,0,0,0,0,0,0,0,1,1,1,1,0,1,1,0,0,0,0,0,1,0,1,1,1,1,0,0,0,1,1,0,0,0,0,0,1,1,0,1,1,0,0,1,1,0,1,1,1,0,1,1,0,1,1,1,1,0,0,1,1,0,0,0,0,0,0,0,0,1,0,1,1,1,0,0,0,1,0,0,1,1,1,1,1,1,0,0,0,1,1,0,1,1,1,0,0,1,1,0,1,0,1,1,0,1,1,1,0,1,1,1,1,0,1,1,0,1,0,0,1,0,1,1,1,1,0,0,0,1,0,1,1,1,1,1,1,0,0,1,1,0,0,1,0,1,1,0,0,0,1,1,0,0,1,0,1,1,0,0,0,0,1,1,0,0,1,0,1,0,1,0,0,0,0,1,1,0,1,1,0,1,0,1,1,1,0,0,0,0,1,0,1,1,1,0,0,1,1,1,0,0,1,1,0,0,0,0,1,0,1,0,1,1,1,0,0,1,0,0,0,1,0,0,1,0,0,0,0,1,1,0,1,0,1,1,1,1,1,0,1,1,0,0,0,1,1,0,1,0,1,1,1,0,1,0,1,1,0,1,0,1,0,0,0,1,0,1,1,0,1,0,1,1,0,1,1,0,1,1,1,0,0,0,0,0,0,0,0,0,0,0,1,1,1,0,0,1,1,0,1,0,0,1,1,0,1,1,0,1,1,0,0,0,1,0,0,1,1,0,1,1,0,0,0,0,1,1,1,0,0,1,1,1,1,0,1,1,0,1,0,1,0,0,0,0,1,0,1,1,0,0,1,0,1,1,1,0,0,0,1,0,0,0,0,1,0,1,0,0,1,0,1,0,0,1,0,1,1,1,0,1,1,1,0,1,0,0,1,1,0,1,1,1,1,1,0,1,0,0,0,1,0,1,1,0,1,1,1,0,1,1,0,1,0,1,1,1,0,1,0,1,1,0,0,1,1,0,0,1,1,1,1,1,1,1,0,1,1,1,0,1,0,1,1,0,1,0,0,0,1,0,0,1,1,1,0,0,1,1,0,0,1,1,0,0,1,0,0,1,1,1,1,0,0,0,0,0,0,0,0,0,1,1,0,1,0,0,0,1,0,0,1,1,0,0,1,1,1,1,0,1,1,1,1,0,1,0,1,0,1,0,1,0,0,1,1,0,1,0,1,1,0,1,1,1,1,1,1,0,0,0,0,1,0,0,1,1,1,0,1,0,0,0,1,0,1,1,0,0,1,1,0,0,1,1,1,0,1,0,1,0,1,1,0,0,0,0,0,0,1,1,1,0,1,1,1,1,1,1,1,1,1,1,0,1,0,1,1,0,1,0,0,0,1,1,1,0,0,1,1,1,0,1,1,1,0,0,1,0,0,1,0,0,1,1,1,0,0,1,1,0,1,1,0,1,0,0,1,0,1,1,1,0,0,0,1,1,1,1,0,1,1,0,1,1,1,0,1,1,1,0,0,1,0,1,0,1,1,0,0,0,0,1,0,0,1,0,0,1,0,0,0,1,0,0,1,0,1,0,1,0,1,0,0,0,1,0,1,0,1,0,1,0,1,0,1,1,1,1,0,1,0,1,1,1,0,1,0,0,0,0,0,1,1,0,1,0,1,0,1,0,0,1,1,1,1,0,0,0,0,1,1,1,1,1,1,1,1,0,1,0,0,0,1,0,1,1,1,1,0,1,1,1,0,1,1,0,0,1,0,1,1,0,0,1,1,0,0,0,1,0,1,1,1,0,0,1,0,0,1,0,0,1,1,0,0,0,1,1,0,0,1,0,0,1,0,0,1,0,0,1,0,0,1,0,0,0,0,1,0,1,1,1,0,0,0,1,1,1,0,0,1,0,1,1,1,1,0,0,1,1,1,1,1,1,0,0,1,1,1,1,1,1,0,0,0,1,0,0,1,0,1,0,0,0,0,1,0,0,0,0,1,1,1,1,1,0,0,1,0,1,0,1,0,1,0,1,0,0,0,1,1,0,1,0,0,1,0,1,1,0,0,1,1,1,0,0,1,1,0,0,0,1,0,1,1,1,0,0,1,0,1,1,1,1,1,1,0,1,0,1,1,0,1,0,1,1,1,1,1,1,1,0,0,0,1,1,0,1,0,0,1,1,1,1,0,0,0,0,0,0,0,1,0,0,0,0,1,1,1,0,1,0,1,1,1,1,0,0,0,1,0,0,1,0,1,0,1,0,1,1,0,1,1,0,0,0,1,0,0,1,0,0,1,0,0,0,1,1,1,0,1,0,0,0,1,1,0,0,0,0,1,1,1,0,0,0,1,1,1,0,1,1,0,1,0,1,0,0,0,0,0,1,1,1,1,1,0,1,1,1,1,1,0,1,0,1,0,1,0,0,0,0,0,1,1,1,0,0,0,1,0,0,0,1,0,1,1,1,0,0,0,1,0,1,0,1,1,1,0,0,1,0,1,1,0,0,1,1,1,1,1,1,1,1,0,0,0,1,0,0,1,0,0,1,0,1,0,1,1,0,1,0,0,0,1,0,0,0,1,1,1,0,1,0,0,0,0,0,1,1,1,0,1,1,1,0,0,0,1,1,1,0,0,0,1,1,0,1,1,0,0,0,0,0,0,0,1,1,1,1,1,1,1,1,1,1,1,1,1,0,0,1,1,1,0,0,1,1,0,1,1,1,1,0,1,1,1,0,1,1,0,1,1,0,0,1,0,0,1,0,1,0,0,1,0,0,0,0,1,1,0,1,1,1,1,1,0,0,0,1,0,0,1,1,0,0,0,1,1,0,1,1,1,0,1,0,0,0,0,0,0,0,1,1,1,1,0,0,1,1,1,0,1,1,1,1,1,1,0,1,0,1,0,1,1,0,0,0,0,0,0,1,0,1,0,0,0,0,0,1,0,1,1,1,1,0,1,0,0,0,0,1,0,1,1,0,1,1,1,1,1,1,0,1,0,0,0,0,0,1,1,0,1,0,0,1,1,1,0,0,0,0,0,0,1,0,0,1,0,1,1,0,0,1,1,0,1,0,0,0,1,0,0,1,0,1,0,0,0,1,0,0,0,1,1,1,1,0,0,1,1,1,1,1,0,0,0,1,0,0,1,1,1,0,0,0,1,0,0,1,1,0,0,1,1,0,0,1,1,1,1,1,1,0,1,0,1,1,1,1,1,0,1,1,0,0,1,0,0,1,1,0,1,1,1,1,0,1,1,1,0,1,0,0,1,0,0,1,1,1,0,1,0,0,1,0,0,1,1,1,1,1,0,0,0,1,1,0,1,1,0,1,0,1,0,0,0,0,1,0,1,1,0,1,0,0,1,1,1,0,0,0,0,0,0,0,1,1,0,0,1,0,0,1,0,1,1,0,1,1,1,1,1,1,1,0,1,0,1,1,0,1,1,1,0,1,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,1,1,1,0,0,1,0,1,1,0,0,1,1,0,1,1,0,1,0,0,0,0,1,0,1,0,0,0,0,0,1,0,0,1,1,0,1,0,1,0,1,0,0,0,0,1,0,0,0,1,0,1,1,0,0,0,1,1,0,1,0,1,1,0,1,1,0,0,1,0,0,0,0,1,0,0,1,0,1,1,1,0,1,0,0,0,0,0,1,1,0,1,1,1,1,1,0,1,0,0,1,1,0,1,0,0,1,1,1,1,1,0,0,0,0,1,1,1,1,0,0,1,1,1,1,0,1,0,1,1,0,1,1,0,0,1,1,1,0,1,0,0,0,0,1,1,0,0,1,1,0,1,1,1,0,1,1,0,1,0,0,1,1,0,0,0,1,1,0,1,0,1,1,0,0,0,0,1,1,0,1,1,0,0,1,1,1,1,1,1,1,0,1,0,1,1,1,1,1,0,0,0,1,0,0,1,0,0,1,1,1,0,0,1,1,1,0,0,0,1,1,1,1,0,1,0,0,0,1,0,0,1,1,1,1,0,0,1,0,1,1,1,1,1,0,1,1,1,0,1,1,1,0,1,0,1,1,0,1,1,1,0,1,1,0,0,1,0,1,0,1,0,1,1,0,0,1,1,1,1,1,0,0,0,1,0,1,1,1,1,1,1,1,1,0,0,0,0,1,0,0,1,0,1,1,0,0,1,0,1,0,0,0,0,1,1,0,1,1,1,1,1,0,0,0,0,0,1,1,1,1,1,1,0,0,1,1,0,1,0,0,0,0,1,0,1,0,1,0,1,1,1,1,1,1,1,0,0,1,0,0,0,0,0,0,1,1,0,1,1,1,1,0,0,1,1,1,1,0,0,0,1,1,1,0,0,1,1,1,0,0,0,0,0,1,1,1,0,1,1,0,1,0,1,1,0,0,0,1,0,1,0,0,1,1,0,0,0,0,0,1,0,0,0,1,1,0,1,1,0,1,1,1,0,0,0,1,0,1,1,1,0,1,0,0,0,0,1,0,1,0,0,1,0,0,1,1,1,1,0,1,1,1,0,0,0,0,0,0,0,1,1,1,0,1,1,1,0,1,1,0,1,0,1,0,0,0,0,0,0,1,0,1,0,1,1,1,0,1,1,1,1,0,1,1,1,1,1,0,1,0,0,0,1,1,1,1,1,1,1,1,1,0,1,1,0,0,0,1,0,1,1,1,1,1,0,0,0,0,0,0,1,1,1,0,1,0,0,0,0,0,0,1,0,1,1,0,1,1,1,0,1,0,1,1,0,0,1,1,1,0,1,1,1,1,1,0,1,0,1,1,0,1,0,1,1,1,0,0,1,0,1,0,1,0,1,1,1,1,0,1,0,1,0,0,1,1,1,0,1,1,1,1,1,0,0,0,0,0,1,0,0]};!i&&l&&(i=l||void 0),r?.numHashes&&(this._bfl_s=new o(r.numItems,r.errorRate),this._bfl_s.import(r)),i?.numHashes&&(this._bfl_d=new o(i.numItems,i.errorRate),this._bfl_d.import(i))}let i=!1,o=!1;for(let{as:e,allowMatchCurrent:s}of[{as:t},{as:r}])if(e){let r=(0,l.removeTrailingSlash)(new URL(e,"http://n").pathname),c=(0,R.addBasePath)((0,P.addLocale)(r,n||this.locale));if(s||r!==(0,l.removeTrailingSlash)(new URL(this.asPath,"http://n").pathname)){for(let e of(i=i||!!this._bfl_s?.contains(r)||!!this._bfl_s?.contains(c),[r,c])){let t=e.split("/");for(let e=0;!o&&e{})}}}}return!1}async change(e,t,r,a,i){let o,s;if(!(0,A.isLocalURL)(t))return J({url:t,router:this}),!1;let p=1===a._h;p||a.shallow||await this._bfl(r,void 0,a.locale);let f=p||a._shouldResolveHref||(0,E.parsePath)(t).pathname===(0,E.parsePath)(r).pathname,h={...this.state},j=!0!==this.isReady;this.isReady=!0;let k=this.isSsr;if(p||(this.isSsr=!1),p&&this.clc)return!1;let O=h.locale;m.ST&&performance.mark("routeChange");let{shallow:N=!1,scroll:I=!0}=a,D={shallow:N};this._inFlightRoute&&this.clc&&(k||Z.events.emit("routeChangeError",H(),this._inFlightRoute,D),this.clc(),this.clc=null),r=(0,R.addBasePath)((0,P.addLocale)((0,C.hasBasePath)(r)?(0,S.removeBasePath)(r):r,a.locale,this.defaultLocale));let U=(0,w.removeLocale)((0,C.hasBasePath)(r)?(0,S.removeBasePath)(r):r,h.locale);this._inFlightRoute=r;let B=O!==h.locale;if(!p&&this.onlyAHashChange(U)&&!B){h.asPath=U,Z.events.emit("hashChangeStart",r,D),this.changeState(e,t,r,{...a,scroll:!1}),I&&this.scrollToHash(U);try{await this.set(h,this.components[h.route],null)}catch(e){throw(0,d.default)(e)&&e.cancelled&&Z.events.emit("routeChangeError",e,U,D),e}return Z.events.emit("hashChangeComplete",r,D),!0}let $=(0,v.parseRelativeUrl)(t),{pathname:F,query:K}=$;try{[o,{__rewrites:s}]=await Promise.all([this.pageLoader.getPageList(),(0,c.getClientBuildManifest)(),this.pageLoader.getMiddleware()])}catch(e){return J({url:r,router:this}),!1}this.urlIsNew(U)||B||(e="replaceState");let X=r;F=F?(0,l.removeTrailingSlash)((0,S.removeBasePath)(F)):F;let G=(0,l.removeTrailingSlash)(F),Y=r.startsWith("/")&&(0,v.parseRelativeUrl)(r).pathname;if(this.components[F]?.__appRouter)return J({url:r,router:this}),new Promise(()=>{});let Q=!!(Y&&G!==Y&&(!(0,g.isDynamicRoute)(G)||!(0,b.getRouteMatcher)((0,y.getRouteRegex)(G))(Y))),ee=!a.shallow&&await z({asPath:r,locale:h.locale,router:this});if(p&&ee&&(f=!1),f&&"/_error"!==F)if(a._shouldResolveHref=!0,r.startsWith("/")){let e=n((0,R.addBasePath)((0,P.addLocale)(U,h.locale),!0),o,s,K,e=>q(e,o),this.locales);if(e.externalDest)return J({url:r,router:this}),!0;ee||(X=e.asPath),e.matchedPage&&e.resolvedHref&&(F=e.resolvedHref,$.pathname=(0,R.addBasePath)(F),ee||(t=(0,x.formatWithValidation)($)))}else $.pathname=q(F,o),$.pathname!==F&&(F=$.pathname,$.pathname=(0,R.addBasePath)(F),ee||(t=(0,x.formatWithValidation)($)));if(!p&&!a.shallow&&this._bfl_d&&(0,g.isDynamicRoute)(F)){let e=(0,l.removeTrailingSlash)((0,v.parseRelativeUrl)(U).pathname);if((0,_.hasDynamicFilterCandidate)(F,e,e=>!!this._bfl_d?.contains(e)))return J({url:r,router:this}),new Promise(()=>{})}if(!(0,A.isLocalURL)(r))return J({url:r,router:this}),!1;X=(0,w.removeLocale)((0,S.removeBasePath)(X),h.locale),G=(0,l.removeTrailingSlash)(F);let et=!1;if((0,g.isDynamicRoute)(G)){let e=(0,v.parseRelativeUrl)(X),n=e.pathname,a=(0,y.getRouteRegex)(G);et=(0,b.getRouteMatcher)(a)(n);let i=G===n,o=i?(0,M.interpolateAs)(G,n,K):{};if(et&&(!i||o.result))i?r=(0,x.formatWithValidation)(Object.assign({},e,{pathname:o.result,query:(0,L.omit)(K,o.params)})):Object.assign(K,et);else{let e=Object.keys(a.groups).filter(e=>!K[e]&&!a.groups[e].optional);if(e.length>0&&!ee)throw Object.defineProperty(Error((i?`The provided \`href\` (${t}) value is missing query values (${e.join(", ")}) to be interpolated properly. `:`The provided \`as\` value (${n}) is incompatible with the \`href\` value (${G}). `)+`Read more: https://nextjs.org/docs/messages/${i?"href-interpolation-failed":"incompatible-href-as"}`),"__NEXT_ERROR_CODE",{value:"E344",enumerable:!1,configurable:!0})}}p||Z.events.emit("routeChangeStart",r,D);let er="/404"===this.pathname||"/_error"===this.pathname;try{let n=await this.getRouteInfo({route:G,pathname:F,query:K,as:r,resolvedAs:X,routeProps:D,locale:h.locale,isPreview:h.isPreview,hasMiddleware:ee,unstable_skipClientCache:a.unstable_skipClientCache,isQueryUpdating:p&&!this.isFallback,isMiddlewareRewrite:Q});if(p||a.shallow||await this._bfl(r,"resolvedAs"in n?n.resolvedAs:void 0,h.locale),"route"in n&&ee){G=F=n.route||G,D.shallow||(K=Object.assign({},n.query||{},K));let e=(0,C.hasBasePath)($.pathname)?(0,S.removeBasePath)($.pathname):$.pathname;if(et&&F!==e&&Object.keys(et).forEach(e=>{et&&K[e]===et[e]&&delete K[e]}),(0,g.isDynamicRoute)(F)){let e=!D.shallow&&n.resolvedAs?n.resolvedAs:(0,R.addBasePath)((0,P.addLocale)(new URL(r,location.href).pathname,h.locale),!0);(0,C.hasBasePath)(e)&&(e=(0,S.removeBasePath)(e));let t=(0,y.getRouteRegex)(F),a=(0,b.getRouteMatcher)(t)(new URL(e,location.href).pathname);a&&Object.assign(K,a)}}if("type"in n)if("redirect-internal"===n.type)return this.change(e,n.newUrl,n.newAs,a);else return J({url:n.destination,router:this}),new Promise(()=>{});let s=n.Component;if(s&&s.unstable_scriptLoader&&[].concat(s.unstable_scriptLoader()).forEach(e=>{(0,u.handleClientScriptLoad)(e.props)}),(n.__N_SSG||n.__N_SSP)&&n.props){if(n.props.pageProps&&n.props.pageProps.__N_REDIRECT){a.locale=!1;let t=n.props.pageProps.__N_REDIRECT;if(t.startsWith("/")&&!1!==n.props.pageProps.__N_REDIRECT_BASE_PATH){let r=(0,v.parseRelativeUrl)(t);r.pathname=q(r.pathname,o);let{url:n,as:i}=W(this,t,t);return this.change(e,n,i,a)}return J({url:t,router:this}),new Promise(()=>{})}if(h.isPreview=!!n.props.__N_PREVIEW,n.props.notFound===V){let e;try{await this.fetchComponent("/404"),e="/404"}catch(t){e="/_error"}if(n=await this.getRouteInfo({route:e,pathname:e,query:K,as:r,resolvedAs:X,routeProps:{shallow:!1},locale:h.locale,isPreview:h.isPreview,isNotFound:!0}),"type"in n)throw Object.defineProperty(Error("Unexpected middleware effect on /404"),"__NEXT_ERROR_CODE",{value:"E158",enumerable:!1,configurable:!0})}}p&&"/_error"===this.pathname&&self.__NEXT_DATA__.props?.pageProps?.statusCode===500&&n.props?.pageProps&&(n.props.pageProps.statusCode=500);let l=a.shallow&&h.route===(n.route??G),c=a.scroll??(!p&&!l),f=i??(c?{x:0,y:0}:null),m={...h,route:G,pathname:F,query:K,asPath:U,isFallback:!1};if(p&&er){if(n=await this.getRouteInfo({route:this.pathname,pathname:this.pathname,query:K,as:r,resolvedAs:X,routeProps:{shallow:!1},locale:h.locale,isPreview:h.isPreview,isQueryUpdating:p&&!this.isFallback}),"type"in n)throw Object.defineProperty(Error(`Unexpected middleware effect on ${this.pathname}`),"__NEXT_ERROR_CODE",{value:"E225",enumerable:!1,configurable:!0});"/_error"===this.pathname&&self.__NEXT_DATA__.props?.pageProps?.statusCode===500&&n.props?.pageProps&&(n.props.pageProps.statusCode=500);try{await this.set(m,n,f)}catch(e){throw(0,d.default)(e)&&e.cancelled&&Z.events.emit("routeChangeError",e,U,D),e}return!0}if(Z.events.emit("beforeHistoryChange",r,D),this.changeState(e,t,r,a),!(p&&!f&&!j&&!B&&(0,T.compareRouterStates)(m,this.state))){try{await this.set(m,n,f)}catch(e){if(e.cancelled)n.error=n.error||e;else throw e}if(n.error)throw p||Z.events.emit("routeChangeError",n.error,U,D),n.error;p||Z.events.emit("routeChangeComplete",r,D),c&&/#.+$/.test(r)&&this.scrollToHash(r)}return!0}catch(e){if((0,d.default)(e)&&e.cancelled)return!1;throw e}}changeState(e,t,r,n={}){("pushState"!==e||(0,m.getURL)()!==r)&&(this._shallow=n.shallow,window.history[e]({url:t,as:r,options:n,__N:!0,key:this._key="pushState"!==e?this._key:Y()},"",r))}async handleRouteInfoError(e,t,r,n,a,i){if(e.cancelled)throw e;if((0,c.isAssetError)(e)||i)throw Z.events.emit("routeChangeError",e,n,a),J({url:n,router:this}),H();console.error(e);try{let n,{page:a,styleSheets:i}=await this.fetchComponent("/_error"),o={props:n,Component:a,styleSheets:i,err:e,error:e};if(!o.props)try{o.props=await this.getInitialProps(a,{err:e,pathname:t,query:r})}catch(e){console.error("Error in error page `getInitialProps`: ",e),o.props={}}return o}catch(e){return this.handleRouteInfoError((0,d.default)(e)?e:Object.defineProperty(Error(e+""),"__NEXT_ERROR_CODE",{value:"E394",enumerable:!1,configurable:!0}),t,r,n,a,!0)}}async getRouteInfo({route:e,pathname:t,query:r,as:n,resolvedAs:a,routeProps:i,locale:o,hasMiddleware:s,isPreview:c,unstable_skipClientCache:u,isQueryUpdating:p,isMiddlewareRewrite:h,isNotFound:m}){let g=e;try{let e=this.components[g];if(i.shallow&&e&&this.route===g)return e;let d=Q({route:g,router:this});s&&(e=void 0);let v=!e||"initial"in e?void 0:e,b={dataHref:this.pageLoader.getDataHref({href:(0,x.formatWithValidation)({pathname:t,query:r}),skipInterpolation:!0,asPath:m?"/404":a,locale:o}),hasMiddleware:!0,isServerRender:this.isSsr,parseJSON:!0,inflightCache:p?this.sbc:this.sdc,persistCache:!c,isPrefetch:!1,unstable_skipClientCache:u,isBackground:p},y=p&&!h?null:await K({fetchData:()=>G(b),asPath:m?"/404":a,locale:o,router:this}).catch(e=>{if(p)return null;throw e});if(y&&("/_error"===t||"/404"===t)&&(y.effect=void 0),p&&(y?y.json=self.__NEXT_DATA__.props:y={json:self.__NEXT_DATA__.props}),d(),y?.effect?.type==="redirect-internal"||y?.effect?.type==="redirect-external")return y.effect;if(y?.effect?.type==="rewrite"){let n=(0,l.removeTrailingSlash)(y.effect.resolvedHref),o=await this.pageLoader.getPageList();if((!p||o.includes(n))&&(g=n,t=y.effect.resolvedHref,r={...r,...y.effect.parsedAs.query},a=(0,S.removeBasePath)((0,f.normalizeLocalePath)(y.effect.parsedAs.pathname,this.locales).pathname),e=this.components[g],i.shallow&&e&&this.route===g&&!s))return{...e,route:g}}if((0,k.isAPIRoute)(g))return J({url:n,router:this}),new Promise(()=>{});let _=v||await this.fetchComponent(g).then(e=>({Component:e.page,styleSheets:e.styleSheets,__N_SSG:e.mod.__N_SSG,__N_SSP:e.mod.__N_SSP})),E=y?.response?.headers.get("x-middleware-skip"),P=_.__N_SSG||_.__N_SSP;E&&y?.dataHref&&delete this.sdc[y.dataHref];let{props:w,cacheKey:R}=await this._getData(async()=>{if(P){if(y?.json&&!E)return{cacheKey:y.cacheKey,props:y.json};let e=y?.dataHref?y.dataHref:this.pageLoader.getDataHref({href:(0,x.formatWithValidation)({pathname:t,query:r}),asPath:a,locale:o}),n=await G({dataHref:e,isServerRender:this.isSsr,parseJSON:!0,inflightCache:E?{}:this.sdc,persistCache:!c,isPrefetch:!1,unstable_skipClientCache:u});return{cacheKey:n.cacheKey,props:n.json||{}}}return{headers:{},props:await this.getInitialProps(_.Component,{pathname:t,query:r,asPath:n,locale:o,locales:this.locales,defaultLocale:this.defaultLocale})}});return _.__N_SSP&&b.dataHref&&R&&delete this.sdc[R],this.isPreview||!_.__N_SSG||p||G(Object.assign({},b,{isBackground:!0,persistCache:!1,inflightCache:this.sbc})).catch(()=>{}),w.pageProps=Object.assign({},w.pageProps),_.props=w,_.route=g,_.query=r,_.resolvedAs=a,this.components[g]=_,_}catch(e){return this.handleRouteInfoError((0,d.getProperError)(e),t,r,n,i)}}set(e,t,r){return this.state=e,this.sub(t,this.components["/_app"].Component,r)}beforePopState(e){this._bps=e}onlyAHashChange(e){if(!this.asPath)return!1;let[t,r]=this.asPath.split("#",2),[n,a]=e.split("#",2);return!!a&&t===n&&r===a||t===n&&r!==a}scrollToHash(e){let[,t=""]=e.split("#",2);(0,D.disableSmoothScrollDuringRouteTransition)(()=>{if(""===t||"top"===t)return void window.scrollTo(0,0);let e=decodeURIComponent(t),r=document.getElementById(e);if(r)return void r.scrollIntoView();let n=document.getElementsByName(e)[0];n&&n.scrollIntoView()},{onlyHashChange:this.onlyAHashChange(e)})}urlIsNew(e){return this.asPath!==e}async prefetch(e,t=e,r={}){if("u">typeof window&&(0,I.isBot)(window.navigator.userAgent))return;let a=(0,v.parseRelativeUrl)(e),i=a.pathname,{pathname:o,query:s}=a,u=o,d=await this.pageLoader.getPageList(),p=t,f=void 0!==r.locale?r.locale||void 0:this.locale,h=await z({asPath:t,locale:f,router:this});if(t.startsWith("/")){let r;({__rewrites:r}=await (0,c.getClientBuildManifest)());let i=n((0,R.addBasePath)((0,P.addLocale)(t,this.locale),!0),d,r,a.query,e=>q(e,d),this.locales);if(i.externalDest)return;h||(p=(0,w.removeLocale)((0,S.removeBasePath)(i.asPath),this.locale)),i.matchedPage&&i.resolvedHref&&(a.pathname=o=i.resolvedHref,h||(e=(0,x.formatWithValidation)(a)))}a.pathname=q(a.pathname,d),(0,g.isDynamicRoute)(a.pathname)&&(o=a.pathname,a.pathname=o,Object.assign(s,(0,b.getRouteMatcher)((0,y.getRouteRegex)(a.pathname))((0,E.parsePath)(t).pathname)||{}),h||(e=(0,x.formatWithValidation)(a)));let m=await K({fetchData:()=>G({dataHref:this.pageLoader.getDataHref({href:(0,x.formatWithValidation)({pathname:u,query:s}),skipInterpolation:!0,asPath:p,locale:f}),hasMiddleware:!0,isServerRender:!1,parseJSON:!0,inflightCache:this.sdc,persistCache:!this.isPreview,isPrefetch:!0}),asPath:t,locale:f,router:this});if(m?.effect.type==="rewrite"&&(a.pathname=m.effect.resolvedHref,o=m.effect.resolvedHref,s={...s,...m.effect.parsedAs.query},p=m.effect.parsedAs.pathname,e=(0,x.formatWithValidation)(a)),m?.effect.type==="redirect-external")return;let _=(0,l.removeTrailingSlash)(o);await this._bfl(t,p,r.locale,!0)&&(this.components[i]={__appRouter:!0}),await Promise.all([this.pageLoader._isSsg(_).then(t=>!!t&&G({dataHref:m?.json?m?.dataHref:this.pageLoader.getDataHref({href:e,asPath:p,locale:f}),isServerRender:!1,parseJSON:!0,inflightCache:this.sdc,persistCache:!this.isPreview,isPrefetch:!0,unstable_skipClientCache:r.unstable_skipClientCache||r.priority&&!0}).then(()=>!1).catch(()=>!1)),this.pageLoader[r.priority?"loadPage":"prefetch"](_)])}async fetchComponent(e){let t=Q({route:e,router:this});try{let r=await this.pageLoader.loadPage(e);return t(),r}catch(e){throw t(),e}}_getData(e){let t=!1,r=()=>{t=!0};return this.clc=r,e().then(e=>{if(r===this.clc&&(this.clc=null),t){let e=Object.defineProperty(Error("Loading initial props cancelled"),"__NEXT_ERROR_CODE",{value:"E405",enumerable:!1,configurable:!0});throw e.cancelled=!0,e}return e})}getInitialProps(e,t){let{Component:r}=this.components["/_app"],n=this._wrapApp(r);return t.AppTree=n,(0,m.loadGetInitialProps)(r,{AppTree:n,Component:e,router:this,ctx:t})}get route(){return this.state.route}get pathname(){return this.state.pathname}get query(){return this.state.query}get asPath(){return this.state.asPath}get locale(){return this.state.locale}get isFallback(){return this.state.isFallback}get isPreview(){return this.state.isPreview}}},234047,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"removePathPrefix",{enumerable:!0,get:function(){return a}});let n=e.r(302010);function a(e,t){if(!(0,n.pathHasPrefix)(e,t))return e;let r=e.slice(t.length);return r.startsWith("/")?r:`/${r}`}},141600,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"getNextPathnameInfo",{enumerable:!0,get:function(){return o}});let n=e.r(467369),a=e.r(234047),i=e.r(302010);function o(e,t){let{basePath:r,i18n:o,trailingSlash:s}=t.nextConfig??{},l={pathname:e,trailingSlash:"/"!==e?e.endsWith("/"):s};r&&(0,i.pathHasPrefix)(l.pathname,r)&&(l.pathname=(0,a.removePathPrefix)(l.pathname,r),l.basePath=r);let c=l.pathname;if(l.pathname.startsWith("/_next/data/")&&l.pathname.endsWith(".json")){let e=l.pathname.replace(/^\/_next\/data\//,"").replace(/\.json$/,"").split("/");l.buildId=e[0],c="index"!==e[1]?`/${e.slice(1).join("/")}`:"/",!0===t.parseData&&(l.pathname=c)}if(o){let e=t.i18nProvider?t.i18nProvider.analyze(l.pathname):(0,n.normalizeLocalePath)(l.pathname,o.locales);l.locale=e.detectedLocale,l.pathname=e.pathname??l.pathname,!e.detectedLocale&&l.buildId&&(e=t.i18nProvider?t.i18nProvider.analyze(c):(0,n.normalizeLocalePath)(c,o.locales)).detectedLocale&&(l.locale=e.detectedLocale)}return l}},850211,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n={getSortedRouteObjects:function(){return s},getSortedRoutes:function(){return o}};for(var a in n)Object.defineProperty(r,a,{enumerable:!0,get:n[a]});class i{insert(e){this._insert(e.split("/").filter(Boolean),[],!1)}smoosh(){return this._smoosh()}_smoosh(e="/"){let t=[...this.children.keys()].sort();null!==this.slugName&&t.splice(t.indexOf("[]"),1),null!==this.restSlugName&&t.splice(t.indexOf("[...]"),1),null!==this.optionalRestSlugName&&t.splice(t.indexOf("[[...]]"),1);let r=t.map(t=>this.children.get(t)._smoosh(`${e}${t}/`)).reduce((e,t)=>[...e,...t],[]);if(null!==this.slugName&&r.push(...this.children.get("[]")._smoosh(`${e}[${this.slugName}]/`)),!this.placeholder){let t="/"===e?"/":e.slice(0,-1);if(null!=this.optionalRestSlugName)throw Object.defineProperty(Error(`You cannot define a route with the same specificity as a optional catch-all route ("${t}" and "${t}[[...${this.optionalRestSlugName}]]").`),"__NEXT_ERROR_CODE",{value:"E458",enumerable:!1,configurable:!0});r.unshift(t)}return null!==this.restSlugName&&r.push(...this.children.get("[...]")._smoosh(`${e}[...${this.restSlugName}]/`)),null!==this.optionalRestSlugName&&r.push(...this.children.get("[[...]]")._smoosh(`${e}[[...${this.optionalRestSlugName}]]/`)),r}_insert(e,t,r){if(0===e.length){this.placeholder=!1;return}if(r)throw Object.defineProperty(Error("Catch-all must be the last part of the URL."),"__NEXT_ERROR_CODE",{value:"E392",enumerable:!1,configurable:!0});let n=e[0];if(n.startsWith("[")&&n.endsWith("]")){let i=n.slice(1,-1),o=!1;if(i.startsWith("[")&&i.endsWith("]")&&(i=i.slice(1,-1),o=!0),i.startsWith("…"))throw Object.defineProperty(Error(`Detected a three-dot character ('…') at ('${i}'). Did you mean ('...')?`),"__NEXT_ERROR_CODE",{value:"E147",enumerable:!1,configurable:!0});if(i.startsWith("...")&&(i=i.substring(3),r=!0),i.startsWith("[")||i.endsWith("]"))throw Object.defineProperty(Error(`Segment names may not start or end with extra brackets ('${i}').`),"__NEXT_ERROR_CODE",{value:"E421",enumerable:!1,configurable:!0});if(i.startsWith("."))throw Object.defineProperty(Error(`Segment names may not start with erroneous periods ('${i}').`),"__NEXT_ERROR_CODE",{value:"E288",enumerable:!1,configurable:!0});function a(e,r){if(null!==e&&e!==r)throw Object.defineProperty(Error(`You cannot use different slug names for the same dynamic path ('${e}' !== '${r}').`),"__NEXT_ERROR_CODE",{value:"E337",enumerable:!1,configurable:!0});t.forEach(e=>{if(e===r)throw Object.defineProperty(Error(`You cannot have the same slug name "${r}" repeat within a single dynamic path`),"__NEXT_ERROR_CODE",{value:"E247",enumerable:!1,configurable:!0});if(e.replace(/\W/g,"")===n.replace(/\W/g,""))throw Object.defineProperty(Error(`You cannot have the slug names "${e}" and "${r}" differ only by non-word symbols within a single dynamic path`),"__NEXT_ERROR_CODE",{value:"E499",enumerable:!1,configurable:!0})}),t.push(r)}if(r)if(o){if(null!=this.restSlugName)throw Object.defineProperty(Error(`You cannot use both an required and optional catch-all route at the same level ("[...${this.restSlugName}]" and "${e[0]}" ).`),"__NEXT_ERROR_CODE",{value:"E299",enumerable:!1,configurable:!0});a(this.optionalRestSlugName,i),this.optionalRestSlugName=i,n="[[...]]"}else{if(null!=this.optionalRestSlugName)throw Object.defineProperty(Error(`You cannot use both an optional and required catch-all route at the same level ("[[...${this.optionalRestSlugName}]]" and "${e[0]}").`),"__NEXT_ERROR_CODE",{value:"E300",enumerable:!1,configurable:!0});a(this.restSlugName,i),this.restSlugName=i,n="[...]"}else{if(o)throw Object.defineProperty(Error(`Optional route parameters are not yet supported ("${e[0]}").`),"__NEXT_ERROR_CODE",{value:"E435",enumerable:!1,configurable:!0});a(this.slugName,i),this.slugName=i,n="[]"}}this.children.has(n)||this.children.set(n,new i),this.children.get(n)._insert(e.slice(1),t,r)}constructor(){this.placeholder=!0,this.children=new Map,this.slugName=null,this.restSlugName=null,this.optionalRestSlugName=null}}function o(e){let t=new i;return e.forEach(e=>t.insert(e)),t.smoosh()}function s(e,t){let r={},n=[];for(let a=0;ae[r[t]])}},284323,e=>{"use strict";var t=e.i(397377),r=e.i(237425);let n=0;function a(e=1){n=e}function i(){(0,t.c)("[nuqs] Aborting queues"),r.t.abortAll(),r.n.abort().forEach(e=>r.t.queuedQuerySync.emit(e))}var o=e.i(270401),s=e.i(749509);function l(){a(0),i()}function c(){!function(e=i){(n=Math.max(0,n-1))>0||e()}(()=>{queueMicrotask(i)})}function u(){return(0,o.useEffect)(()=>(!function(){var e;if(e="next/app","u"window.removeEventListener("popstate",l)),[]),null}let d=(0,t.n)(function(){let e=(0,s.useRouter)(),[r,n]=(0,o.useOptimistic)((0,s.useSearchParams)());return{searchParams:r,updateUrl:(0,o.useCallback)((r,i)=>{(0,o.startTransition)(()=>{i.shallow||n(r);let o=function(e){let{origin:r,pathname:n,hash:a}=location;return r+n+(0,t.o)(e)+a}(r);(0,t.c)("[nuqs next/app] Updating url: %s",o);let s="push"===i.history?history.pushState:history.replaceState;a(3),s.call(history,null,"",o),i.scroll&&window.scrollTo(0,0),i.shallow||e.replace(o,{scroll:!1})})},[]),rateLimitFactor:3,autoResetQueueOnUpdate:!0}});e.s(["NuqsAdapter",0,function({children:e,...t}){return(0,o.createElement)(d,{...t,children:[(0,o.createElement)(o.Suspense,{key:"nuqs-adapter-suspense-navspy",children:(0,o.createElement)(u)}),e]})}],284323)},792572,e=>{"use strict";var t=e.i(222666),r=e.i(505962),n=e.i(749509),a=e.i(270401);function i(e){let a,i,s=(0,r.c)(4),{show:l}=e,c=(0,n.useSearchParams)();s[0]!==c?(a=c?.get("confetti"),s[0]=c,s[1]=a):a=s[1];let u="1"===a||!0===l;return s[2]!==u?(i=(0,t.jsx)(o,{shouldShow:u}),s[2]=u,s[3]=i):i=s[3],i}function o(e){let t,n,i=(0,r.c)(4),{loadConfetti:o,shouldShow:l}=e,c=void 0===o?s:o;return i[0]!==c||i[1]!==l?(t=()=>{if(!l)return;let e={isCancelled:!1};return(async()=>{let t=await c();e.isCancelled||t({startVelocity:30,spread:800,ticks:100,zIndex:9999,particleCount:100,origin:{x:.5,y:.4}})})(),()=>{e.isCancelled=!0}},n=[c,l],i[0]=c,i[1]=l,i[2]=t,i[3]=n):(t=i[2],n=i[3]),(0,a.useEffect)(t,n),null}async function s(){let{default:t}=await e.A(538864);return t}e.s(["PageConfetti",0,function(e){let n,o=(0,r.c)(2),{show:s}=e,l=void 0!==s&&s;return o[0]!==l?(n=(0,t.jsx)(a.Suspense,{fallback:null,children:(0,t.jsx)(i,{show:l})}),o[0]=l,o[1]=n):n=o[1],n},"PageConfettiAnimation",0,o])},97373,e=>{"use strict";var t=e.i(530023),r=e.i(612774);e.s(["ToastAction",()=>t.ToastAction,"Toaster",()=>t.Toaster,"toast",()=>r.toast,"toastManager",()=>r.toastManager,"useToast",()=>r.useToast])},345344,e=>{"use strict";let t;var r=e.i(222666),n=e.i(505962),a=e.i(695707),i=e.i(494401);let o={queries:{retry:!1,refetchOnWindowFocus:!0,staleTime:e.i(10684).StaleTime.DEFAULT},mutations:{retry:!1}};e.s(["DataLayerProvider",0,function(e){let s,l,c=(0,n.c)(3),{children:u}=e;c[0]===Symbol.for("react.memo_cache_sentinel")?(s=t??=new i.QueryClient({defaultOptions:o}),c[0]=s):s=c[0];let d=s;return c[1]!==u?(l=(0,r.jsx)(a.QueryClientProvider,{client:d,children:u}),c[1]=u,c[2]=l):l=c[2],l}],345344)},944975,e=>{"use strict";let t;var r=e.i(222666),n=e.i(505962),a=e.i(770572),a=a,i=e.i(15957);e.i(319184),e.i(840790),e.i(494867),e.i(577884),e.i(347902),e.i(682785),e.i(238591),e.i(517436),e.i(180022),e.i(308064),e.i(911586),e.i(875289),e.i(158893),e.i(469215),e.i(954954),e.i(850658);var o=e.i(306937);e.i(148854),e.i(799563),e.i(530845),e.i(200488),e.i(241747),e.i(832151),e.i(42851),e.i(296278),e.i(939246),e.i(415753),e.i(708558);var s=e.i(381356),l=e.i(270401),c=e.i(25977),u=e.i(821369),d=e.i(749509);let p="u">typeof window?l.default.useLayoutEffect:l.default.useEffect,f=l.default.createContext(void 0);f.displayName="ClerkNextOptionsCtx";let h=()=>{let e=l.default.useContext(f);return null==e?void 0:e.value},m=e=>{let{children:t,options:r}=e;return l.default.createElement(f.Provider,{value:{value:r}},t)};e.i(509186);var g=e.i(396359),g=g,v=g,b=e.i(820803),y=e.i(829604),_=e.i(924599),x=e.i(594158);b.default.env.NEXT_PUBLIC_CLERK_JS_VERSION,b.default.env.NEXT_PUBLIC_CLERK_JS_URL,b.default.env.NEXT_PUBLIC_CLERK_UI_URL,b.default.env.NEXT_PUBLIC_CLERK_UI_VERSION,b.default.env.CLERK_API_VERSION,b.default.env.CLERK_SECRET_KEY,b.default.env.CLERK_MACHINE_SECRET_KEY,b.default.env.CLERK_ENCRYPTION_KEY,b.default.env.CLERK_API_URL||(t=(0,_.parsePublishableKey)("pk_live_Y2xlcmsub3BlbnJvdXRlci5haSQ")?.frontendApi,t?.startsWith("clerk.")&&y.LEGACY_DEV_INSTANCE_SUFFIXES.some(e=>t?.endsWith(e))?y.PROD_API_URL:y.LOCAL_ENV_SUFFIXES.some(e=>t?.endsWith(e))?y.LOCAL_API_URL:y.STAGING_ENV_SUFFIXES.some(e=>t?.endsWith(e))?y.STAGING_API_URL:y.PROD_API_URL),b.default.env.NEXT_PUBLIC_CLERK_DOMAIN,b.default.env.NEXT_PUBLIC_CLERK_PROXY_URL,(0,x.isTruthy)(b.default.env.NEXT_PUBLIC_CLERK_IS_SATELLITE);let E={name:"@clerk/nextjs",version:"7.5.17",environment:"production"};(0,x.isTruthy)(b.default.env.NEXT_PUBLIC_CLERK_TELEMETRY_DISABLED),(0,x.isTruthy)(b.default.env.NEXT_PUBLIC_CLERK_TELEMETRY_DEBUG);let P=(0,x.isTruthy)(b.default.env.NEXT_PUBLIC_CLERK_KEYLESS_DISABLED)||!1,w=(0,v.r)()&&!(0,g.n)()&&!P;var S=e.i(844743);let R=e=>{var t;let r=e.publishableKey||"pk_live_Y2xlcmsub3BlbnJvdXRlci5haSQ",n=e.proxyUrl||b.default.env.NEXT_PUBLIC_CLERK_PROXY_URL||"",a=e.domain||b.default.env.NEXT_PUBLIC_CLERK_DOMAIN||"";return{...e,publishableKey:r,__internal_clerkJSUrl:e.__internal_clerkJSUrl||b.default.env.NEXT_PUBLIC_CLERK_JS_URL,__internal_clerkJSVersion:e.__internal_clerkJSVersion||b.default.env.NEXT_PUBLIC_CLERK_JS_VERSION,__internal_clerkUIUrl:e.__internal_clerkUIUrl||b.default.env.NEXT_PUBLIC_CLERK_UI_URL,__internal_clerkUIVersion:e.__internal_clerkUIVersion||b.default.env.NEXT_PUBLIC_CLERK_UI_VERSION,prefetchUI:function(e){if(!1===e||"false"===b.default.env.NEXT_PUBLIC_CLERK_PREFETCH_UI)return!1}(e.prefetchUI),proxyUrl:n||(0,S.getAutoProxyUrlFromEnvironment)({hasDomain:!!a,hasProxyUrl:!!n,publishableKey:r}),domain:a,isSatellite:e.isSatellite||(0,x.isTruthy)(b.default.env.NEXT_PUBLIC_CLERK_IS_SATELLITE),signInUrl:e.signInUrl||"/sign-in",signUpUrl:e.signUpUrl||"/sign-up",signInForceRedirectUrl:e.signInForceRedirectUrl||b.default.env.NEXT_PUBLIC_CLERK_SIGN_IN_FORCE_REDIRECT_URL||"",signUpForceRedirectUrl:e.signUpForceRedirectUrl||b.default.env.NEXT_PUBLIC_CLERK_SIGN_UP_FORCE_REDIRECT_URL||"",signInFallbackRedirectUrl:e.signInFallbackRedirectUrl||b.default.env.NEXT_PUBLIC_CLERK_SIGN_IN_FALLBACK_REDIRECT_URL||"",signUpFallbackRedirectUrl:e.signUpFallbackRedirectUrl||b.default.env.NEXT_PUBLIC_CLERK_SIGN_UP_FALLBACK_REDIRECT_URL||"",newSubscriptionRedirectUrl:e.newSubscriptionRedirectUrl||b.default.env.NEXT_PUBLIC_CLERK_CHECKOUT_CONTINUE_URL||"",telemetry:null!=(t=e.telemetry)?t:{disabled:(0,x.isTruthy)(b.default.env.NEXT_PUBLIC_CLERK_TELEMETRY_DISABLED),debug:(0,x.isTruthy)(b.default.env.NEXT_PUBLIC_CLERK_TELEMETRY_DEBUG)},sdkMetadata:E,unsafe_disableDevelopmentModeConsoleWarning:(0,x.isTruthy)(b.default.env.NEXT_PUBLIC_CLERK_UNSAFE_DISABLE_DEVELOPMENT_MODE_CONSOLE_WARNING)}};e.i(544210);var C=e.i(163069),C=C,j=e.i(188713);let k=()=>{var e,t;let r=(0,o.useClerk)(),{pagesRouter:n}=(0,j.usePagesRouter)();return null==(t=r.telemetry)||t.record((0,C.i)({router:n?"pages":"app",...(null==(e=null==globalThis?void 0:globalThis.next)?void 0:e.version)?{nextjsVersion:globalThis.next.version}:{}})),null};var O=e.i(653706);let N=(0,O.createServerReference)("00e333b93f00f7e70fefbbbb9e987821399eb02ba4",O.callServer,void 0,O.findSourceMapURL,"invalidateCacheAction");var T=e.i(723255);function A(e){let{publishableKey:t,__internal_clerkJSUrl:r,__internal_clerkJSVersion:n,__internal_clerkUIUrl:a,__internal_clerkUIVersion:i,nonce:o,domain:s,proxyUrl:c,prefetchUI:u}=e,d={publishableKey:t,__internal_clerkJSUrl:r,__internal_clerkJSVersion:n,__internal_clerkUIUrl:a,__internal_clerkUIVersion:i,nonce:o,domain:s,proxyUrl:c};return l.default.createElement(l.default.Fragment,null,l.default.createElement("script",{src:(0,T.clerkJSScriptUrl)(d),"data-clerk-js-script":!0,async:!0,crossOrigin:"anonymous",...(0,T.buildClerkJSScriptAttributes)(d)}),!1!==u&&l.default.createElement("link",{rel:"preload",href:(0,T.clerkUIScriptUrl)(d),as:"script",crossOrigin:"anonymous",nonce:o}))}function I(){let{publishableKey:e,__internal_clerkJSUrl:t,__internal_clerkJSVersion:r,__internal_clerkUIUrl:n,__internal_clerkUIVersion:a,nonce:i,prefetchUI:s}=h(),{domain:c,proxyUrl:u}=(0,o.useClerk)();return e?l.default.createElement(A,{publishableKey:e,__internal_clerkJSUrl:t,__internal_clerkJSVersion:r,__internal_clerkUIUrl:n,__internal_clerkUIVersion:a,nonce:i,domain:c,proxyUrl:u,prefetchUI:s}):null}let L=e=>{var t;return null!=window.__clerk_internal_navigations||(window.__clerk_internal_navigations={}),null!=(t=window.__clerk_internal_navigations)[e]||(t[e]={}),window.__clerk_internal_navigations[e]},M=e=>{let{windowNav:t,routerNav:r,name:n}=e,[a,i]=(0,l.useTransition)();t&&(L(n).fun=(e,a)=>{var o,s;let l=L(n);return(null!=(s=null==(o=l.promisesBuffer)?void 0:o.length)?s:0)>0&&l.pendingDestination===e?new Promise(e=>{null!=l.promisesBuffer||(l.promisesBuffer=[]),l.promisesBuffer.push(e)}):(l.pendingDestination=e,new Promise(n=>{null!=l.promisesBuffer||(l.promisesBuffer=[]),l.promisesBuffer.push(n),i(()=>{var n;(null==(n=null==a?void 0:a.__internal_metadata)?void 0:n.navigationType)==="internal"?t(null,"",e):r(e)})}))});let o=()=>{var e;let t=L(n);null==(e=t.promisesBuffer)||e.forEach(e=>e()),t.promisesBuffer=[],t.pendingDestination=void 0};return(0,l.useEffect)(()=>(o(),o),[]),(0,l.useEffect)(()=>{a||o()},[a]),(0,l.useCallback)((e,t)=>L(n).fun(e,t),[])},D=(0,u.default)(()=>e.A(305572).then(e=>e.KeylessCreatorOrReader)),U=e=>{let t,r,{__internal_invokeMiddlewareOnAuthStateChange:n=!0,__internal_scriptsSlot:a,children:i}=e,o=(0,d.useRouter)(),s=(t=(0,d.useRouter)(),M({windowNav:"u">typeof window?window.history.pushState.bind(window.history):void 0,routerNav:t.push.bind(t),name:"push"})),u=(r=(0,d.useRouter)(),M({windowNav:"u">typeof window?window.history.replaceState.bind(window.history):void 0,routerNav:r.replace.bind(r),name:"replace"}));p(()=>{window.__internal_onBeforeSetActive=e=>new Promise(t=>{var r;let n=(null==(r=null==window?void 0:window.next)?void 0:r.version)||"";(n.startsWith("15")||n.startsWith("16"))&&"sign-out"===e?t():N().then(()=>t())}),window.__internal_onAfterSetActive=()=>{if(n)return o.refresh()}},[]);let f=R({...e,routerPush:s,routerReplace:u});return l.default.createElement(m,{options:f},l.default.createElement(c.InternalClerkProvider,{...f},l.default.createElement(k,null),null!=a?a:l.default.createElement(I,null),i))},B=e=>{let{children:t,disableKeyless:r=!1,...n}=e,a=R(n).publishableKey;return h()?n.initialState?l.default.createElement(i.InitialStateProvider,{initialState:n.initialState},t):t:a||!w||r?l.default.createElement(U,{...n},t):l.default.createElement(D,null,l.default.createElement(U,{...n},t))};var $=e.i(163792),$=$,H=e.i(678111);let z=()=>{if("u"{Object.keys(e).forEach(t=>{delete e[t]})};try{e(window.next.router.sdc),e(window.next.router.sbc)}catch{return}};var F=e.i(603649);function W(e){let{scriptUrl:t,attributes:r,dataAttribute:n}=e;return l.default.createElement(F.default,{src:t,...{[n]:!0},async:!0,defer:!1,crossOrigin:"anonymous",strategy:"beforeInteractive",...r})}function q(){let{publishableKey:e,__internal_clerkJSUrl:t,__internal_clerkJSVersion:r,__internal_clerkUIUrl:n,__internal_clerkUIVersion:a,nonce:i,prefetchUI:s,ui:c}=h(),{domain:u,proxyUrl:d}=(0,o.useClerk)();if(!e)return null;let p={publishableKey:e,__internal_clerkJSUrl:t,__internal_clerkJSVersion:r,__internal_clerkUIUrl:n,__internal_clerkUIVersion:a,nonce:i,domain:u,proxyUrl:d};return l.default.createElement(l.default.Fragment,null,l.default.createElement(W,{scriptUrl:(0,T.clerkJSScriptUrl)(p),attributes:(0,T.buildClerkJSScriptAttributes)(p),dataAttribute:"data-clerk-js-script"}),!1!==s&&!c&&l.default.createElement("link",{rel:"preload",href:(0,T.clerkUIScriptUrl)(p),as:"script",crossOrigin:"anonymous",nonce:i}))}function K({children:e,...t}){var r;let{__internal_invokeMiddlewareOnAuthStateChange:n=!0}=t,{push:a,replace:i}=(0,H.useRouter)();c.InternalClerkProvider.displayName="ReactClerkProvider",p(()=>{window.__internal_onBeforeSetActive=z},[]),p(()=>{window.__internal_onAfterSetActive=()=>{n&&a(window.location.href)}},[]);let o=R({...t,routerPush:e=>a(e),routerReplace:e=>i(e)}),s=(null==(r=t.authServerSideProps)?void 0:r.__clerk_ssr_state)||t.__clerk_ssr_state;return l.default.createElement(m,{options:o},l.default.createElement(c.InternalClerkProvider,{...o,initialState:s},l.default.createElement(k,null),l.default.createElement(q,null),e))}(0,$.i)({packageName:"@clerk/nextjs"}),(0,T.setClerkJSLoadingErrorPackageName)("@clerk/nextjs");let V=function(e){let t=(0,s.useRouter)();return l.default.createElement(t?K:B,{...e})};a.h;var X=e.i(128341);let G={__type:"prebuilt_appearance",name:"dark",variables:{colorBackground:"#212126",colorNeutral:"white",colorPrimary:"#ffffff",colorPrimaryForeground:"black",colorForeground:"white",colorInputForeground:"white",colorInput:"#26262B"},elements:{activeDeviceIcon:{"--cl-chassis-bottom":"#d2d2d2","--cl-chassis-back":"#e6e6e6","--cl-chassis-screen":"#e6e6e6","--cl-screen":"#111111"}}},Y="Invalid credentials",J="ph-no-capture dd-privacy-hidden",Q={unstable__errors:{form_identifier_not_found:Y,form_password_incorrect:Y},signIn:{start:{title:"Sign In",subtitle:""}},signUp:{start:{title:"Sign Up",subtitle:""},legalConsent:{checkbox:{label__termsOfServiceAndPrivacyPolicy:'I agree to the {{ termsOfServiceLink || link("Terms of Service") }}, {{ privacyPolicyLink || link("Privacy Policy") }}, and [Model Terms](https://openrouter.ai/docs/guides/routing/provider-selection#terms-of-service).'}}}};function Z(e){return{theme:e?G:void 0,captcha:{theme:e?"dark":"light",size:"flexible"},options:{showOptionalFields:!0},variables:{colorPrimary:"hsl(var(--primary))",colorPrimaryForeground:"hsl(var(--primary-foreground))",colorBackground:"hsl(var(--background))",colorForeground:"hsl(var(--foreground))",colorMutedForeground:"hsl(var(--muted-foreground))",colorInput:"var(--input-bg)",colorInputForeground:"hsl(var(--foreground))",colorBorder:"hsl(var(--border))",colorDanger:"hsl(var(--destructive))",colorSuccess:"var(--positive)",colorWarning:"var(--warning)",colorNeutral:"hsl(var(--foreground))",borderRadius:"var(--radius-md)",fontFamily:"var(--font-sans)"},elements:{modalBackdrop:{backgroundColor:"rgba(0, 0, 0, 0.8)"},modalContent:{borderRadius:"var(--radius-lg)",border:"1px solid hsl(var(--border))",backgroundColor:e?"hsl(var(--background))":"hsl(var(--card))",boxShadow:"0 8px 30px rgb(0 0 0 / 0.12)"},modalCloseButton:{color:"hsl(var(--muted-foreground))",borderRadius:"var(--radius-md)"},headerTitle:{fontSize:"var(--text-title)",fontWeight:"600",letterSpacing:"0",lineHeight:"var(--leading-tight)"},headerSubtitle:{color:"hsl(var(--muted-foreground))",fontSize:"var(--text-body)",fontWeight:"400",letterSpacing:"0",lineHeight:"var(--leading-body)"},selectButton:{borderRadius:"var(--radius-md)",border:"1px solid hsl(var(--border))",backgroundColor:"var(--input-bg)",fontSize:"var(--text-body)",padding:"4px 8px",height:"28px",boxShadow:"none"},selectOptionsContainer:{borderRadius:"var(--radius-md)",border:"1px solid hsl(var(--border))",backgroundColor:e?"hsl(var(--background))":"hsl(var(--card))",boxShadow:"0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1)"},selectOption:{fontSize:"var(--text-body)",borderRadius:"var(--radius-sm)"},membersPageInviteButton:{borderRadius:"var(--radius-md)",fontSize:"var(--text-body)",fontWeight:"500",height:"32px",padding:"0 12px"},organizationProfileMembersSearchInput:{borderRadius:"var(--radius-md)",border:"1px solid hsl(var(--border))",backgroundColor:"var(--input-bg)",fontSize:"var(--text-body)",height:"32px"},tableHead:{borderBottom:"1px solid hsl(var(--border))"},tableHeaderCell:{fontSize:"var(--text-overline)",fontWeight:"500",color:"hsl(var(--muted-foreground))",textTransform:"none",letterSpacing:"0",padding:"8px 12px"},tableBodyCell:{fontSize:"var(--text-body)",padding:"8px 12px",borderBottom:"1px solid hsl(var(--border))"},badge:{backgroundColor:"transparent",border:"1px solid hsl(var(--border))",borderRadius:"var(--radius-full)",color:"hsl(var(--foreground))",fontSize:"var(--text-overline)",fontWeight:"500",padding:"2px 8px"},menuButtonEllipsis:{borderRadius:"var(--radius-md)",".cl-profileSection__emailAddresses &":{display:"none"}},menuList:{borderRadius:"var(--radius-md)",border:"1px solid hsl(var(--border))",backgroundColor:e?"hsl(var(--background))":"hsl(var(--card))",boxShadow:"0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1)"},menuItem:{fontSize:"var(--text-body)",borderRadius:"var(--radius-sm)"},formFieldInput:{height:"40px",borderRadius:"var(--radius-md)",border:"1px solid hsl(var(--border))",backgroundColor:"var(--input-bg)",boxShadow:"none",color:"hsl(var(--foreground))",fontSize:"var(--text-body)",lineHeight:"var(--leading-body)",padding:"8px 12px",transition:"border-color 150ms ease"},formButtonPrimary:{height:"40px",backgroundImage:"none",borderRadius:"var(--radius-md)",boxShadow:"none",filter:"none",fontSize:"var(--text-body)",fontWeight:"500",padding:"0 16px",textShadow:"none",transform:"none",transition:"background-color 150ms ease, color 150ms ease"},buttonArrowIcon:{display:"none"},footer:{background:"transparent",backgroundImage:"none"},footerActionText:{color:"hsl(var(--muted-foreground))",fontSize:"var(--text-body)",lineHeight:"var(--leading-body)"},footerActionLink:{fontSize:"var(--text-body)",fontWeight:"500",lineHeight:"var(--leading-body)",textDecoration:"underline",textDecorationColor:"color-mix(in srgb, hsl(var(--foreground)) 40%, transparent)",textUnderlineOffset:"2px"},otpCodeFieldInput:{height:"40px",width:"40px",borderRadius:"var(--radius-md)",border:"1px solid hsl(var(--border)) !important",backgroundColor:"var(--input-bg)",boxShadow:"none !important",outline:"none !important",fontSize:"var(--text-section)"},formResendCodeLink:{color:"hsl(var(--primary))",fontSize:"var(--text-body)"},alert:{borderRadius:"var(--radius-lg)",boxShadow:"none",fontSize:"var(--text-body)",lineHeight:"var(--leading-body)"},identityPreview:{borderRadius:"var(--radius-md)",border:"1px solid hsl(var(--border))"},identityPreviewEditButton:{color:"hsl(var(--primary))"},navbar:{borderRight:"1px solid hsl(var(--border))"},navbarButton:{borderRadius:"var(--radius-md)",fontSize:"var(--text-heading)"},profileSectionPrimaryButton__emailAddresses:{display:"none"}},signIn:{elements:{rootBox:J}},signUp:{elements:{rootBox:J}},userProfile:{elements:{rootBox:J}},organizationProfile:{elements:{rootBox:J}}}}e.s(["ClerkAuthProvider",0,function(e){let t,a,i=(0,n.c)(5),{children:o}=e,{resolvedTheme:s}=(0,X.useTheme)(),l="dark"===s;i[0]!==l?(t=Z(l),i[0]=l,i[1]=t):t=i[1];let c=t;return i[2]!==c||i[3]!==o?(a=(0,r.jsx)(V,{appearance:c,localization:Q,children:o}),i[2]=c,i[3]=o,i[4]=a):a=i[4],a},"PRIVATE_CLERK_SURFACE_CLASS_NAME",0,J,"buildClerkAppearance",0,Z],944975)},914657,e=>{"use strict";var t=e.i(222666),r=e.i(505962),n=e.i(749509),a=e.i(270401);function i(e,t,r){return Math.max(t,Math.min(e,r))}function o(e,t){return"rtl"===t?(1-e)*100:(-1+e)*100}function s(e,t,r){if("string"==typeof t)void 0!==r&&(e.style[t]=r);else for(let r in t)if(t.hasOwnProperty(r)){let n=t[r];void 0!==n&&(e.style[r]=n)}}function l(e,t){e.classList.add(t)}function c(e,t){e.classList.remove(t)}function u(e){e&&e.parentNode&&e.parentNode.removeChild(e)}var d={minimum:.08,maximum:1,template:`
`,easing:"linear",positionUsing:"",speed:200,trickle:!0,trickleSpeed:200,showSpinner:!0,indeterminate:!1,indeterminateSelector:".indeterminate",barSelector:".bar",spinnerSelector:".spinner",parent:"body",direction:"ltr"},p=class{static settings=d;static status=null;static pending=[];static isPaused=!1;static reset(){return this.status=null,this.isPaused=!1,this.pending=[],this.settings=d,this}static configure(e){return Object.assign(this.settings,e),this}static isStarted(){return"number"==typeof this.status}static set(e){if(this.isPaused)return this;let t=this.isStarted();e=i(e,this.settings.minimum,this.settings.maximum),this.status=e===this.settings.maximum?null:e;let r=this.render(!t),n=this.settings.speed,a=this.settings.easing;return r.forEach(e=>e.offsetWidth),this.queue(t=>{r.forEach(t=>{this.settings.indeterminate||s(t.querySelector(this.settings.barSelector),this.barPositionCSS({n:e,speed:n,ease:a}))}),e===this.settings.maximum?(r.forEach(e=>{s(e,{transition:"none",opacity:"1"}),e.offsetWidth}),setTimeout(()=>{r.forEach(e=>{s(e,{transition:`all ${n}ms ${a}`,opacity:"0"})}),setTimeout(()=>{r.forEach(e=>{this.remove(e),null===this.settings.template&&s(e,{transition:"none",opacity:"1"})}),t()},n)},n)):setTimeout(t,n)}),this}static start(){this.status||this.set(0);let e=()=>{this.isPaused||setTimeout(()=>{this.status&&(this.trickle(),e())},this.settings.trickleSpeed)};return this.settings.trickle&&e(),this}static done(e){return e||this.status?this.inc(.3+.5*Math.random()).set(1):this}static inc(e){if(this.isPaused||this.settings.indeterminate)return this;let t=this.status;return t?t>1?this:("number"!=typeof e&&(e=t>=0&&t<.2?.1:t>=.2&&t<.5?.04:t>=.5&&t<.8?.02:.005*(t>=.8&&t<.99)),t=i(t+e,0,.994),this.set(t)):this.start()}static dec(e){if(this.isPaused||this.settings.indeterminate)return this;let t=this.status;return"number"!=typeof t?this:("number"!=typeof e&&(e=t>.8?.1:t>.5?.05:t>.2?.02:.01),t=i(t-e,0,.994),this.set(t))}static trickle(){return this.isPaused||this.settings.indeterminate?this:this.inc()}static promise(e){if(!e||"resolved"===e.state())return this;let t=0,r=0;return this.start(),t++,r++,e.always(()=>{0==--r?(t=0,this.done()):this.set((t-r)/t)}),this}static render(e=!1){let t="string"==typeof this.settings.parent?document.querySelector(this.settings.parent):this.settings.parent,r=t?Array.from(t.querySelectorAll(".bprogress")):[];if(null!==this.settings.template&&0===r.length){l(document.documentElement,"bprogress-busy");let e=document.createElement("div");l(e,"bprogress"),e.innerHTML=this.settings.template,t!==document.body&&l(t,"bprogress-custom-parent"),t.appendChild(e),r.push(e)}return r.forEach(r=>{if(null===this.settings.template&&(r.style.display=""),l(document.documentElement,"bprogress-busy"),t!==document.body&&l(t,"bprogress-custom-parent"),this.settings.indeterminate){let e=r.querySelector(this.settings.barSelector);e&&(e.style.display="none");let t=r.querySelector(this.settings.indeterminateSelector);t&&(t.style.display="")}else{let t=r.querySelector(this.settings.barSelector),n=e?o(0,this.settings.direction):o(this.status||0,this.settings.direction);s(t,this.barPositionCSS({n:this.status||0,speed:this.settings.speed,ease:this.settings.easing,perc:n}));let a=r.querySelector(this.settings.indeterminateSelector);a&&(a.style.display="none")}if(null===this.settings.template){let e=r.querySelector(this.settings.spinnerSelector);e&&(e.style.display=this.settings.showSpinner?"block":"none")}else if(!this.settings.showSpinner){let e=r.querySelector(this.settings.spinnerSelector);e&&u(e)}}),r}static remove(e){e?null===this.settings.template?e.style.display="none":u(e):(c(document.documentElement,"bprogress-busy"),("string"==typeof this.settings.parent?document.querySelectorAll(this.settings.parent):[this.settings.parent]).forEach(e=>{c(e,"bprogress-custom-parent")}),document.querySelectorAll(".bprogress").forEach(e=>{null===this.settings.template?e.style.display="none":u(e)}))}static pause(){return!this.isStarted()||this.settings.indeterminate||(this.isPaused=!0),this}static resume(){if(!this.isStarted()||this.settings.indeterminate)return this;if(this.isPaused=!1,this.settings.trickle){let e=()=>{this.isPaused||setTimeout(()=>{this.status&&(this.trickle(),e())},this.settings.trickleSpeed)};e()}return this}static isRendered(){return document.querySelectorAll(".bprogress").length>0}static getPositioningCSS(){let e=document.body.style,t="WebkitTransform"in e?"Webkit":"MozTransform"in e?"Moz":"msTransform"in e?"ms":"OTransform"in e?"O":"";return`${t}Perspective`in e?"translate3d":`${t}Transform`in e?"translate":"margin"}static queue(e){this.pending.push(e),1===this.pending.length&&this.next()}static next(){let e=this.pending.shift();e&&e(this.next.bind(this))}static initPositionUsing(){""===this.settings.positionUsing&&(this.settings.positionUsing=this.getPositioningCSS())}static barPositionCSS({n:e,speed:t,ease:r,perc:n}){this.initPositionUsing();let a={},i=n??o(e,this.settings.direction);return"translate3d"===this.settings.positionUsing?a={transform:`translate3d(${i}%,0,0)`}:"translate"===this.settings.positionUsing?a={transform:`translate(${i}%,0)`}:"width"===this.settings.positionUsing?a={width:`${"rtl"===this.settings.direction?100-i:i+100}%`,..."rtl"===this.settings.direction?{right:"0",left:"auto"}:{}}:"margin"===this.settings.positionUsing&&(a="rtl"===this.settings.direction?{"margin-left":`${-i}%`}:{"margin-right":`${-i}%`}),a.transition=`all ${t}ms ${r}`,a}};function f(e,t){if("string"==typeof t&&"data-disable-progress"===t){let r=t.substring(5).replace(/-([a-z])/g,(e,t)=>t.toUpperCase());return e.dataset[r]}let r=e[t];if(r instanceof SVGAnimatedString){let e=r.baseVal;return"href"===t?function(e,t){let r,n,a;if(!e.startsWith("/")||!t)return e;let{pathname:i,query:o,hash:s}=(r=e.indexOf("#"),(a=(n=e.indexOf("?"))>-1&&(r<0||n-1?{pathname:e.substring(0,a?n:r),query:a?e.substring(n,r>-1?r:void 0):"",hash:r>-1?e.slice(r):""}:{pathname:e,query:"",hash:""});return`${t}${i}${o}${s}`}(e,location.origin):e}return r}function h(e){for(var t=1;t=0||(a[r]=e[r]);return a}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(a[r]=e[r])}return a}var g=(0,a.createContext)(void 0),v=function(){var e=(0,a.useContext)(g);if(!e)throw Error("useProgress must be used within a ProgressProvider");return e},b=function(e){var t=e.children,r=e.color,n=void 0===r?"#0A2FFF":r,i=e.height,o=void 0===i?"2px":i,s=e.options,l=e.spinnerPosition,c=void 0===l?"top-right":l,u=e.style,d=e.disableStyle,f=e.nonce,m=e.shallowRouting,v=e.disableSameURL,b=e.startPosition,y=e.delay,_=e.stopDelay,x=(0,a.useRef)(null),E=(0,a.useRef)(!1),P=(0,a.useCallback)(function(){return E.current=!0},[]),w=(0,a.useCallback)(function(){return E.current=!1},[]),S=(0,a.useCallback)(function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];r&&P(),x.current=setTimeout(function(){e>0&&p.set(e),p.start()},t)},[P]),R=(0,a.useCallback)(function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;setTimeout(function(){x.current&&clearTimeout(x.current),x.current=setTimeout(function(){p.isStarted()&&(p.done(),E.current&&w())},e)},t)},[w]),C=(0,a.useCallback)(function(e){return p.inc(e)},[]),j=(0,a.useCallback)(function(e){return p.dec(e)},[]),k=(0,a.useCallback)(function(e){return p.set(e)},[]),O=(0,a.useCallback)(function(){return p.pause()},[]),N=(0,a.useCallback)(function(){return p.resume()},[]),T=(0,a.useCallback)(function(){return p.settings},[]),A=(0,a.useCallback)(function(e){var t=T(),r="function"==typeof e?e(t):e,n=h({},t,r);p.configure(n)},[T]),I=(0,a.useMemo)(function(){return a.default.createElement("style",{nonce:f},u||(({color:e="#29d",height:t="2px",spinnerPosition:r="top-right"})=>` :root { --bprogress-color: ${e}; --bprogress-height: ${t}; --bprogress-spinner-size: 18px; --bprogress-spinner-animation-duration: 400ms; --bprogress-spinner-border-size: 2px; --bprogress-box-shadow: 0 0 10px ${e}, 0 0 5px ${e}; --bprogress-z-index: 99999; --bprogress-spinner-top: ${"top-right"===r||"top-left"===r?"15px":"auto"}; --bprogress-spinner-bottom: ${"bottom-right"===r||"bottom-left"===r?"15px":"auto"}; --bprogress-spinner-right: ${"top-right"===r||"bottom-right"===r?"15px":"auto"}; --bprogress-spinner-left: ${"top-left"===r||"bottom-left"===r?"15px":"auto"}; } .bprogress { width: 0; height: 0; pointer-events: none; z-index: var(--bprogress-z-index); } .bprogress .bar { background: var(--bprogress-color); position: fixed; z-index: var(--bprogress-z-index); top: 0; left: 0; width: 100%; height: var(--bprogress-height); } /* Fancy blur effect */ .bprogress .peg { display: block; position: absolute; right: 0; width: 100px; height: 100%; box-shadow: var(--bprogress-box-shadow); opacity: 1.0; transform: rotate(3deg) translate(0px, -4px); } /* Remove these to get rid of the spinner */ .bprogress .spinner { display: block; position: fixed; z-index: var(--bprogress-z-index); top: var(--bprogress-spinner-top); bottom: var(--bprogress-spinner-bottom); right: var(--bprogress-spinner-right); left: var(--bprogress-spinner-left); } .bprogress .spinner-icon { width: var(--bprogress-spinner-size); height: var(--bprogress-spinner-size); box-sizing: border-box; border: solid var(--bprogress-spinner-border-size) transparent; border-top-color: var(--bprogress-color); border-left-color: var(--bprogress-color); border-radius: 50%; -webkit-animation: bprogress-spinner var(--bprogress-spinner-animation-duration) linear infinite; animation: bprogress-spinner var(--bprogress-spinner-animation-duration) linear infinite; } .bprogress-custom-parent { overflow: hidden; position: relative; } .bprogress-custom-parent .bprogress .spinner, .bprogress-custom-parent .bprogress .bar { position: absolute; } .bprogress .indeterminate { position: fixed; top: 0; left: 0; width: 100%; height: var(--bprogress-height); overflow: hidden; } .bprogress .indeterminate .inc, .bprogress .indeterminate .dec { position: absolute; top: 0; height: 100%; background-color: var(--bprogress-color); } .bprogress .indeterminate .inc { animation: bprogress-indeterminate-increase 2s infinite; } .bprogress .indeterminate .dec { animation: bprogress-indeterminate-decrease 2s 0.5s infinite; } @-webkit-keyframes bprogress-spinner { 0% { -webkit-transform: rotate(0deg); transform: rotate(0deg); } 100% { -webkit-transform: rotate(360deg); transform: rotate(360deg); } } @keyframes bprogress-spinner { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } } @keyframes bprogress-indeterminate-increase { from { left: -5%; width: 5%; } to { left: 130%; width: 100%; } } @keyframes bprogress-indeterminate-decrease { from { left: -80%; width: 80%; } to { left: 110%; width: 10%; } } `)({color:n,height:o,spinnerPosition:c}))},[n,o,f,c,u]);return p.configure(s||{}),a.default.createElement(g.Provider,{value:{start:S,stop:R,inc:C,dec:j,set:k,pause:O,resume:N,setOptions:A,getOptions:T,isAutoStopDisabled:E,disableAutoStop:P,enableAutoStop:w,shallowRouting:void 0!==m&&m,disableSameURL:void 0===v||v,startPosition:void 0===b?0:b,delay:void 0===y?0:y,stopDelay:void 0===_?0:_}},void 0!==d&&d?null:I,t)};function y(){for(var e=arguments.length,t=Array(e),r=0;r=0||(a[r]=e[r]);return a}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(a[r]=e[r])}return a}a.default.forwardRef(function(e,t){var r,n,i=e.as,o=e.children,s=e.className,l=e.style,c=m(e,["as","children","className","style"]);return a.default.createElement(null!=i?i:"div",h({ref:t,className:y("bprogress",s),style:(r=h({},l),n=n={display:"none"},Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(n)):(function(e){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t.push.apply(t,r)}return t})(Object(n)).forEach(function(e){Object.defineProperty(r,e,Object.getOwnPropertyDescriptor(n,e))}),r)},c),o||a.default.createElement(a.default.Fragment,null,a.default.createElement(_,null,a.default.createElement(x,null)),a.default.createElement(E,null,a.default.createElement(P,null))))}),a.default.forwardRef(function(e,t){var r=e.as,n=e.className,i=e.classSelector,o=m(e,["as","className","classSelector"]);return a.default.createElement(null!=r?r:"div",h({ref:t,className:y(void 0===i?"indeterminate":i,n)},o),a.default.createElement("div",{className:"inc"}),a.default.createElement("div",{className:"dec"}))});var R=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:["memo","shouldCompareComplexProps"];return(0,a.memo)(e,function(e,r){return!1!==r.memo&&(!r.shouldCompareComplexProps||function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],n=Object.keys(e).filter(function(e){return!r.includes(e)}),a=Object.keys(t).filter(function(e){return!r.includes(e)});if(n.length!==a.length)return!1;var i=!0,o=!1,s=void 0;try{for(var l,c=n[Symbol.iterator]();!(i=(l=c.next()).done);i=!0){var u=l.value;if(e[u]!==t[u])return!1}}catch(e){o=!0,s=e}finally{try{i||null==c.return||c.return()}finally{if(o)throw s}}return!0}(e,r,t))})}(function(e){return!function(e){var t=e.shallowRouting,r=void 0!==t&&t,n=e.disableSameURL,i=void 0===n||n,o=e.startPosition,s=void 0===o?0:o,l=e.delay,c=void 0===l?0:l,u=e.stopDelay,d=void 0===u?0:u,p=e.targetPreprocessor,h=e.disableAnchorClick,m=void 0!==h&&h,g=e.startOnLoad,b=void 0!==g&&g,y=e.forcedStopDelay,_=void 0===y?0:y,x=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],E=(0,a.useRef)([]),P=(0,a.useRef)(null),w=v(),S=w.start,R=w.stop,C=w.isAutoStopDisabled;(0,a.useEffect)(function(){b&&S(s,c)},[]),(0,a.useEffect)(function(){return P.current&&clearTimeout(P.current),P.current=setTimeout(function(){C.current||R()},d),function(){P.current&&clearTimeout(P.current)}},x),(0,a.useEffect)(function(){if(!m){var e=function(e){if(e.defaultPrevented)return;var t=e.currentTarget;if(t.hasAttribute("download"))return;var n=e.target,a=(null==n?void 0:n.getAttribute("data-prevent-progress"))==="true"||(null==t?void 0:t.getAttribute("data-prevent-progress"))==="true";if(!a)for(var o,l=n;l&&"a"!==l.tagName.toLowerCase();){if((null==(o=l.parentElement)?void 0:o.getAttribute("data-prevent-progress"))==="true"){a=!0;break}l=l.parentElement}if(!a&&"_blank"!==f(t,"target")&&!e.metaKey&&!e.ctrlKey&&!e.shiftKey&&!e.altKey){var u=f(t,"href"),d=p?p(new URL(u)):new URL(u),h=new URL(location.href);r&&d.protocol+"//"+d.host+d.pathname==h.protocol+"//"+h.host+h.pathname&&i||d.protocol+"//"+d.host+d.pathname+d.search==h.protocol+"//"+h.host+h.pathname+h.search&&i||S(s,c)}},t=new MutationObserver(function(){var t=Array.from(document.querySelectorAll("a")).filter(function(e){var t=f(e,"href"),r="true"===e.getAttribute("data-disable-progress"),n=t&&!t.startsWith("tel:")&&!t.startsWith("mailto:")&&!t.startsWith("blob:")&&!t.startsWith("javascript:");return!r&&n&&"_blank"!==f(e,"target")});t.forEach(function(t){t.addEventListener("click",e,!0)}),E.current=t});t.observe(document,{childList:!0,subtree:!0});var n=window.history.pushState;return window.history.pushState=new Proxy(window.history.pushState,{apply:function(e,t,r){return C.current||R(d,_),e.apply(t,r)}}),function(){t.disconnect(),E.current.forEach(function(t){t.removeEventListener("click",e,!0)}),E.current=[],window.history.pushState=n}}},[m,p,r,i,c,d,s,S,R,_,C])}(e,[(0,n.usePathname)(),(0,n.useSearchParams)()]),null});R.displayName="AppProgress";var C=function(e){var t=e.children,r=e.ProgressComponent,n=e.color,i=e.height,o=e.options,s=e.spinnerPosition,l=e.style,c=e.disableStyle,u=e.nonce,d=e.stopDelay,p=e.delay,f=e.startPosition,h=e.disableSameURL,m=e.shallowRouting,g=S(e,["children","ProgressComponent","color","height","options","spinnerPosition","style","disableStyle","nonce","stopDelay","delay","startPosition","disableSameURL","shallowRouting"]);return a.default.createElement(b,{color:n,height:i,options:o,spinnerPosition:s,style:l,disableStyle:c,nonce:u,stopDelay:d,delay:p,startPosition:f,disableSameURL:h,shallowRouting:m},a.default.createElement(r,w({stopDelay:d,delay:p,startPosition:f,disableSameURL:h,shallowRouting:m},g)),t)},j=function(e){return a.default.createElement(a.Suspense,null,a.default.createElement(R,h({},e)))},k=function(e){var t=e.children,r=S(e,["children"]);return a.default.createElement(C,w({ProgressComponent:j},r),t)},O=e.i(128341);e.s(["ThemeProvider",0,function(e){let n,a,i,o,s=(0,r.c)(7);return s[0]!==e?({children:n,...a}=e,s[0]=e,s[1]=n,s[2]=a):(n=s[1],a=s[2]),s[3]===Symbol.for("react.memo_cache_sentinel")?(i={showSpinner:!1},s[3]=i):i=s[3],s[4]!==n||s[5]!==a?(o=(0,t.jsx)(k,{color:"hsl(var(--primary))",options:i,children:(0,t.jsx)(O.ThemeProvider,{...a,children:n})}),s[4]=n,s[5]=a,s[6]=o):o=s[6],o}],914657)},788400,e=>{"use strict";var t,r=e.i(222666),n=e.i(850658),a=e.i(415753),i=e.i(252358),o=e.i(665434),s=e.i(270401),l=(0,s.createContext)({get client(){return t},bootstrap:void 0});function c(e){var r,n,a=e.children,i=e.client,o=e.apiKey,c=e.options,u=(0,s.useRef)(null),d=(0,s.useMemo)(function(){if(i)return o&&console.warn("[PostHog.js] You have provided both `client` and `apiKey` to `PostHogProvider`. `apiKey` will be ignored in favour of `client`."),c&&console.warn("[PostHog.js] You have provided both `client` and `options` to `PostHogProvider`. `options` will be ignored in favour of `client`."),i;var e=t;return o||console.warn("[PostHog.js] No `apiKey` or `client` were provided to `PostHogProvider`. Using default global `window.posthog` instance. You must initialize it manually. This is not recommended behavior."),e},[i,o,JSON.stringify(c)]);return(0,s.useEffect)(function(){if(!i){var e=t,r=u.current;r?(o!==r.apiKey&&console.warn("[PostHog.js] You have provided a different `apiKey` to `PostHogProvider` than the one that was already initialized. This is not supported by our provider and we'll keep using the previous key. If you need to toggle between API Keys you need to control the `client` yourself and pass it in as a prop rather than an `apiKey` prop."),c&&!function e(t,r,n){if(void 0===n&&(n=new WeakMap),t===r)return!0;if("object"!=typeof t||null===t||"object"!=typeof r||null===r)return!1;if(n.has(t)&&n.get(t)===r)return!0;n.set(t,r);var a=Object.keys(t),i=Object.keys(r);if(a.length!==i.length)return!1;for(var o=0;ot&&o&&u?{id:o,email:u.primaryEmailAddress?.emailAddress,username:u.username}:null,[t,o,u?.primaryEmailAddress?.emailAddress,u?.username]);return(0,s.useEffect)(()=>{(0,i.updatePosthogConfig)({consentEnabled:d,user:p,isAuthLoaded:l})},[d,p?.id,p?.email,p?.username,l]),(0,r.jsx)(c,{client:i.posthogClient,children:(0,r.jsx)(i.PosthogProvider,{value:i.posthogClient,children:e})})}],788400)},307821,e=>{"use strict";var t=e.i(505962),r=e.i(252358),n=e.i(270401),a=e.i(821259);e.s(["default",0,function(){let e,i,o=(0,t.c)(4),s=(0,r.usePosthogClient)(),l=(0,a.usePublicPathname)(),c=(0,n.useRef)(null);return o[0]!==l||o[1]!==s?(e=()=>{if(!l||!s?.capture||c.current===l)return;let e=new URL(l,globalThis.window.location.origin);e.search=globalThis.window.location.search;let t=e.toString();c.current=l,s.capture("$pageview",{$current_url:t})},i=[l,s],o[0]=l,o[1]=s,o[2]=e,o[3]=i):(e=o[2],i=o[3]),(0,n.useEffect)(e,i),null}])},162068,e=>{"use strict";var t=e.i(222666),r=e.i(505962),n=e.i(850658),a=e.i(484704);e.i(462904);var i=e.i(864568),o=e.i(81174),s=e.i(693697),l=e.i(204067),c=e.i(796805),u=e.i(448712),d=e.i(270401),p=e.i(480149);let f=c.z.object({values:c.z.string(),user:c.z.object({userID:c.z.string(),customIDs:c.z.record(c.z.string(),c.z.string()).optional()})});var h=e.i(877357),m=e.i(375813);let g=c.z.object({data:f.nullable()}),v={ip:"",country:"",locale:"",userAgent:""},b={overrideAdapter:m.statsigGateOverrideAdapter,disableEvaluationMemoization:!0,disableStableID:!0,includeCurrentPageUrlWithEvents:!1,loggingEnabled:"disabled",logLevel:u.LogLevel.Error,networkConfig:{preventAllNetworkTraffic:!0,networkOverrideFunc:async()=>new Response(null,{status:200}),sdkExceptionUrl:"/api/frontend/v1/statsig/sdk_exception"}};function y({children:e,clientKey:r}){let[a]=(0,d.useState)(()=>new u.StatsigClient(r,v,b)),i=(0,d.useRef)(!1),o=(0,d.useRef)(null),s=(0,d.useRef)(null),{userId:l,orgId:c,isLoaded:f}=(0,n.useAuth)(),[h,m]=(0,d.useState)(!1),g=(0,d.useRef)(null);return g.current=f?x(l,c):null,(0,d.useEffect)(()=>(P({client:a,didInitializeRef:i,lastBootstrapIdentityRef:o,syncAbortRef:s,setIsRecordingReady:m,currentIdentityRef:g}),()=>s.current?.abort()),[a]),(0,d.useEffect)(()=>{f&&null!==o.current&&x(l,c)!==o.current&&P({client:a,didInitializeRef:i,lastBootstrapIdentityRef:o,syncAbortRef:s,setIsRecordingReady:m,currentIdentityRef:g})},[a,f,l,c]),(0,t.jsx)(u.StatsigProvider,{client:a,children:(0,t.jsx)(p.FlagRecordingReadinessContext.Provider,{value:h,children:e})})}let _=[1e3,5e3,3e4];function x(e,t){return`${e??""}\u001F${t??""}`}let E=x(null,null);function P(e){e.syncAbortRef.current?.abort(),e.setIsRecordingReady(!1);let t=new AbortController;return e.syncAbortRef.current=t,w(e,t.signal),t}async function w(e,t){let{client:r,didInitializeRef:n,lastBootstrapIdentityRef:a,setIsRecordingReady:i,currentIdentityRef:s}=e,l=!1;for(let e of[0,..._]){if(await C(e,t),t.aborted)return;let c=await k(t);if(t.aborted)return;if("error"===c.status){R(r,n);continue}if("empty"===c.status){a.current=E,R(r,n),i(!0);return}let u=x(c.bootstrap.user.userID,c.bootstrap.user.customIDs?.orgID);if(null!==s.current&&s.current!==u){if(""===c.bootstrap.user.userID){(0,o.wLog)("statsig-bootstrap-degraded-identity-applied",{}),a.current=E,S({client:r,didInitializeRef:n,bootstrap:c.bootstrap}),l=!0;continue}(0,o.wLog)("statsig-bootstrap-stale-identity-discarded",{}),R(r,n);continue}a.current=u,S({client:r,didInitializeRef:n,bootstrap:c.bootstrap}),i(!0);return}t.aborted||l||(a.current="\0bootstrap-failed")}function S({client:e,didInitializeRef:t,bootstrap:r}){e.dataAdapter.setData(r.values),t.current||(t.current=!0,e.initializeSync(h.STATSIG_SYNC_UPDATE_OPTIONS)),e.updateUserSync(r.user,h.STATSIG_SYNC_UPDATE_OPTIONS)}function R(e,t){if(!t.current){t.current=!0,e.initializeSync(h.STATSIG_SYNC_UPDATE_OPTIONS);return}e.updateUserSync(v,h.STATSIG_SYNC_UPDATE_OPTIONS)}async function C(e,t){if(0===e||t.aborted)return;let r=new Promise(t=>{setTimeout(t,e)}),n=new Promise(e=>{t.addEventListener("abort",()=>e(),{once:!0})});await (0,a.safeRace)([r,n])}let j={status:"error"};async function k(e){let t=await (0,s.wrap)(()=>fetch("/api/frontend/statsig-bootstrap",{signal:e}));if((0,s.isErr)(t))return e.aborted||(0,o.wLog)("statsig-bootstrap-fetch-failed",{error_message:(0,i.unknownErrorToString)(t.error)}),j;let r=t.data;if(!r.ok)return r.body?.cancel(),(0,o.wLog)("statsig-bootstrap-fetch-not-ok",{status:r.status}),j;let n=await (0,s.wrap)(()=>r.json());if((0,s.isErr)(n))return e.aborted||(0,o.wLog)("statsig-bootstrap-parse-failed",{error_message:(0,i.unknownErrorToString)(n.error)}),j;let a=(0,l.parseSchema)(g,n.data);return(0,s.isErr)(a)?((0,o.wLog)("statsig-bootstrap-invalid-shape",{error_message:a.error.message}),j):a.data.data?{status:"ok",bootstrap:a.data.data}:{status:"empty"}}e.s(["STATSIG_OPTIONS",0,b,"StatsigFeatureFlagProvider",0,function(e){let n,a=(0,r.c)(4),{children:i}=e;return a[2]!==i?(n=(0,t.jsx)(y,{clientKey:"client-yNaYnqhQvc4txEdMwVYDYaNmHdIJSJ7fesWgJB1PGle",children:i}),a[2]=i,a[3]=n):n=a[3],n}],162068)},549402,e=>{"use strict";var t=e.i(222666),r=e.i(505962),n=e.i(784510),a=e.i(749509),i=e.i(821259);e.s(["WebGlobalProvider",0,function(e){let o,s=(0,r.c)(4),{children:l}=e,c=(0,i.usePublicPathname)(),u=(0,a.useParams)();return s[0]!==l||s[1]!==u||s[2]!==c?(o=(0,t.jsx)(n.GlobalProvider,{routePathname:c,routeParams:u,children:l}),s[0]=l,s[1]=u,s[2]=c,s[3]=o):o=s[3],o}])},728393,e=>{"use strict";var t=e.i(222666),r=e.i(505962),n=e.i(850658),a=e.i(252358),i=e.i(270401),o=e.i(480149),s=e.i(804021),l=e.i(977051);function c(e){return(0,t.jsx)(d,{flagKey:e.flagKey,experiment:e.experiment},e.experiment)}function u(){let e,t,n=(0,r.c)(3),o=(0,a.usePosthogClient)();return n[0]!==o?(e=()=>{for(let e of s.RETIRED_EXPERIMENTS)o.unregister((0,s.armPropertyName)(e))},t=[o],n[0]=o,n[1]=e,n[2]=t):(e=n[1],t=n[2]),(0,i.useEffect)(e,t),null}function d(e){let t,c,u=(0,r.c)(7),{flagKey:d,experiment:p}=e,f=(0,a.usePosthogClient)(),h=(0,l.useFeatureFlagWithoutUsageTelemetry)(d),m=(0,o.useIsFlagRecordingReady)(),{isSignedIn:g}=(0,n.useAuth)();return u[0]!==p||u[1]!==h||u[2]!==m||u[3]!==g||u[4]!==f?(t=()=>{let e=(0,s.armPropertyName)(p);m&&g?f.register({[e]:(0,s.armForFlagValue)(h)}):f.unregister(e)},c=[f,p,h,m,g],u[0]=p,u[1]=h,u[2]=m,u[3]=g,u[4]=f,u[5]=t,u[6]=c):(t=u[5],c=u[6]),(0,i.useEffect)(t,c),null}e.s(["ExperimentArmProperties",0,function(){let e,n=(0,r.c)(1);return n[0]===Symbol.for("react.memo_cache_sentinel")?(e=(0,t.jsxs)(t.Fragment,{children:[s.MEASURED_EXPERIMENTS.map(c),(0,t.jsx)(u,{})]}),n[0]=e):e=n[0],e}])},8532,e=>{"use strict";var t=e.i(222666),r=e.i(505962),n=e.i(971827),a=e.i(553215),i=e.i(320347),o=e.i(117738),s=e.i(980351),l=e.i(252358),c=e.i(270401);let u={anthropic:"Anthropic",google:"Google",openai:"OpenAI"},d=["anthropic","google","openai"].map(e=>u[e]).join(", "),p="If you believe this is a mistake, please contact support with your proof of identity and provide details on your intended use.",f={[n.RESTRICTION_KIND.InferenceBlock]:`Your account has been restricted and cannot make API requests. ${p}`,[n.RESTRICTION_KIND.FrontierUSModels]:`Your account has been restricted from using closed-weight models (${d}) to comply with provider access policies. ${p}`},h=new Set([n.RESTRICTION_KIND.FrontierUSModels]);e.s(["AccountRestrictionBanner",0,function(){let e,n=(0,r.c)(3),{entity:u}=(0,o.useEntity)(),d=u.data?.restriction_kind??null,{dismiss:p,isDismissed:m}=function(e,t){let n,i,o,u,d,p=(0,r.c)(15),f=(0,l.usePosthogClient)(),m=(0,s.useHydrated)();p[0]===Symbol.for("react.memo_cache_sentinel")?(n=new Set,p[0]=n):n=p[0];let[g,v]=(0,c.useState)(n);if(p[1]!==t||p[2]!==e)i=null!==e&&null!==t&&h.has(e)?`v0-account-restriction-banner-dismissed:${e}:${t}`:null,p[1]=t,p[2]=e,p[3]=i;else i=p[3];let b=i;p[4]!==f||p[5]!==e||p[6]!==b?(o=()=>{if(null!==b){try{localStorage.setItem(b,"1")}catch{}v(e=>new Set(e).add(b)),f.capture(a.PostHogEvent.AccountRestrictionBannerDismiss,{restriction_kind:e})}},p[4]=f,p[5]=e,p[6]=b,p[7]=o):o=p[7];let y=o,_=null===b?void 0:y;return p[8]!==g||p[9]!==m||p[10]!==b?(u=null!==b&&(g.has(b)||m&&function(e){try{return"1"===localStorage.getItem(e)}catch{return!1}}(b)),p[8]=g,p[9]=m,p[10]=b,p[11]=u):u=p[11],p[12]!==_||p[13]!==u?(d={dismiss:_,isDismissed:u},p[12]=_,p[13]=u,p[14]=d):d=p[14],d}(d,u.data?.clerk_user_id??null);if(null===d||m)return null;let g=f[d];return n[0]!==p||n[1]!==g?(e=(0,t.jsx)(i.Banner,{role:"alert",variant:"warning",onDismiss:p,className:"rounded-none border-x-0 py-2.5 [&>div:first-child]:flex-1 [&>div:first-child]:justify-center",children:g}),n[0]=p,n[1]=g,n[2]=e):e=n[2],e},"RESTRICTION_BANNER_COPY",0,f],8532)},780229,e=>{"use strict";var t=e.i(505962),r=e.i(270401),n=e.i(910209),a=e.i(998237);e.s(["ConsentManager",0,function(){let e,i,o=(0,t.c)(3),[s]=(0,a.useBooleanLocalStorage)(n.COOKIE_CONSENT);return o[0]!==s?(e=()=>{(window.dataLayer||[]).push({event:"consent_update",analytics_storage:s?"granted":"denied"})},i=[s],o[0]=s,o[1]=e,o[2]=i):(e=o[1],i=o[2]),(0,r.useEffect)(e,i),null}])},427978,e=>{"use strict";var t=e.i(505962),r=e.i(864160),n=e.i(693697),a=e.i(270401),i=e.i(615366),o=e.i(749509),s=e.i(821259),l=e.i(387353);function c(e){let t=(0,n.wrap)(()=>decodeURIComponent(e));return(0,n.isErr)(t)?e:t.data}function u(e){return e.setRenderedRoute}function d(e){return e.clerkOrg}function p(e){return e.clerkUser}function f(e){return e.entity}function h(e){return e.isSignedIn}(0,i.initializeDatadogRum)(),e.s(["DatadogRUM",0,function(){let e,m,g,v,b,y,_,x,E=(0,t.c)(10);b=(0,t.c)(5),y=(0,s.usePublicPathname)(),_=(0,o.useParams)(),x=(0,l.useRenderedRouteStore)(u),b[0]!==_||b[1]!==y||b[2]!==x?(g=()=>{if(null===y)return;let e=function(e,t){let r=e.split("/").filter(e=>e.length>0).map(c),n=Object.entries(t).flatMap(([e,t])=>{if(void 0===t)return[];let r=(Array.isArray(t)?t:[t]).map(c);return 0===r.length?[]:[{name:e,segments:r,isCatchAll:Array.isArray(t)}]}).toSorted((e,t)=>t.segments.length-e.segments.length),a=new Set,i=[],o=0;for(;o!t.has(e.name)&&e.segments.every((e,t)=>r[n+t]===e))}({matchers:n,used:a,segments:r,index:o});if(!e){i.push(r[o]??""),o+=1;continue}a.add(e.name),i.push(e.isCatchAll?`[...${e.name}]`:`[${e.name}]`),o+=e.segments.length}return`/${i.join("/")}`}(y,_??{});l.useRenderedRouteStore.getState().pageNamedPathname!==y&&(x({pathname:y,viewName:e}),(0,i.setDatadogRumViewName)(e))},v=[_,y,x],b[0]=_,b[1]=y,b[2]=x,b[3]=g,b[4]=v):(g=b[3],v=b[4]),(0,a.useEffect)(g,v);let P=(0,r.useUserStore)(h),w=(0,r.useUserStore)(f),S=(0,r.useUserStore)(p),R=(0,r.useUserStore)(d);E[0]!==R||E[1]!==S||E[2]!==w?.is_internal_admin||E[3]!==P?(e=()=>{if(!P)return void(0,n.wrapAll)([(0,i.clearDatadogRumUser)(),(0,i.clearDatadogRumAccount)()]);if(!S?.id)return;let e={id:S.id,org_id:R?.id};if(w?.is_internal_admin&&(e.is_internal_admin=!0),(0,i.setDatadogRumUser)(e),R?.id){let e={id:R.id};(0,i.setDatadogRumAccount)(e)}},E[0]=R,E[1]=S,E[2]=w?.is_internal_admin,E[3]=P,E[4]=e):e=E[4];let C=S?.id,j=R?.id,k=w?.is_internal_admin;return E[5]!==P||E[6]!==C||E[7]!==j||E[8]!==k?(m=[P,C,j,k],E[5]=P,E[6]=C,E[7]=j,E[8]=k,E[9]=m):m=E[9],(0,a.useEffect)(e,m),null}],427978)},727770,e=>{"use strict";var t=e.i(222666),r=e.i(505962),n=e.i(749509),a=e.i(270401);let i="G-R8YZRJS2XN";e.s(["GoogleAnalytics",0,function(){let e,o=(0,r.c)(1),s=(0,a.useRef)(!1);return o[0]===Symbol.for("react.memo_cache_sentinel")?(e=()=>s.current?null:(s.current=!0,(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("script",{async:!0,src:`https://www.googletagmanager.com/gtag/js?id=${i}`}),(0,t.jsx)("script",{dangerouslySetInnerHTML:{__html:` window.dataLayer = window.dataLayer || []; function gtag(){dataLayer.push(arguments);} gtag('js', new Date()); gtag('config', '${i}'); `}})]})),o[0]=e):e=o[0],(0,n.useServerInsertedHTML)(e),null}])},647131,e=>{"use strict";var t=e.i(505962),r=e.i(128341),n=e.i(270401);e.s(["LegacyThemeMigration",0,function(){let e,a,i=(0,t.c)(4),{theme:o,setTheme:s}=(0,r.useTheme)();return i[0]!==s||i[1]!==o?(e=()=>{if("geocities"!==o)return;let e=localStorage.getItem("geocities-previous-theme")||"system";localStorage.removeItem("geocities-previous-theme"),s(e)},a=[o,s],i[0]=s,i[1]=o,i[2]=e,i[3]=a):(e=i[2],a=i[3]),(0,n.useEffect)(e,a),null}])},383725,e=>{"use strict";var t=e.i(222666),r=e.i(505962),n=e.i(117738),a=e.i(821369),i=e.i(270401);let o=(0,a.default)(async()=>({default:(await e.A(114147)).VerifyEmailDialog}),{loadableGenerated:{modules:[649622]}});function s(e){let n,a,o,s,l,c,u,d=(0,r.c)(15),{open:p,clerkUser:f,resolve:h,Dialog:m}=e,[g,v]=(0,i.useState)(p),b=(0,i.useRef)(p),y=(0,i.useRef)(h);return(p&&!g&&v(!0),d[0]!==p||d[1]!==h?(n=()=>{b.current=p,y.current=h},a=[p,h],d[0]=p,d[1]=h,d[2]=n,d[3]=a):(n=d[2],a=d[3]),(0,i.useEffect)(n,a),d[4]===Symbol.for("react.memo_cache_sentinel")?(o=()=>()=>{b.current&&y.current(!1)},s=[],d[4]=o,d[5]=s):(o=d[4],s=d[5]),(0,i.useEffect)(o,s),g)?(d[6]!==h?(l=e=>{e||h(!1)},c=()=>h(!0),d[6]=h,d[7]=l,d[8]=c):(l=d[7],c=d[8]),d[9]!==m||d[10]!==f||d[11]!==p||d[12]!==l||d[13]!==c?(u=(0,t.jsx)(m,{open:p,clerkUser:f,onOpenChange:l,onVerified:c}),d[9]=m,d[10]=f,d[11]=p,d[12]=l,d[13]=c,d[14]=u):u=d[14],u):null}e.s(["VerifyEmailDialogGate",0,s,"VerifyEmailDialogHost",0,function(){let e,a=(0,r.c)(4),{clerkUser:i,isVerifyEmailDialogOpen:l,resolveVerifyEmailDialog:c}=(0,n.useEntity)();return a[0]!==i||a[1]!==l||a[2]!==c?(e=(0,t.jsx)(s,{open:l,clerkUser:i,resolve:c,Dialog:o}),a[0]=i,a[1]=l,a[2]=c,a[3]=e):e=a[3],e}])},367832,e=>{"use strict";var t=e.i(222666),r=e.i(505962),n=e.i(117738),a=e.i(821369);e.i(462904);var i=e.i(864568),o=e.i(81174),s=e.i(693697),l=e.i(204067),c=e.i(270401);e.i(925429);var u=e.i(281610),d=e.i(707512),p=e.i(375813),f=e.i(213298),h=e.i(484182);function m(){let e,t,n,a,i=(0,r.c)(8),{customerSeed:o,flagMode:s}=(0,f.useDevPanelStore)(),l=(0,h.useRefreshStatsigConsumers)(),[d,m]=(0,c.useState)(!1);return i[0]===Symbol.for("react.memo_cache_sentinel")?(e=()=>{(0,f.hydrateDevPanelStore)(),m(!0)},t=[],i[0]=e,i[1]=t):(e=i[0],t=i[1]),(0,c.useEffect)(e,t),i[2]!==o||i[3]!==s||i[4]!==d||i[5]!==l?(n=()=>{if(!d)return;if(s!==f.FlagMode.Customer)return p.statsigGateOverrideAdapter.setCustomerModeValues(null),(0,f.setCustomerModeFetchFailed)(!1),l(),()=>{p.statsigGateOverrideAdapter.setCustomerModeValues(null),l()};let e=new AbortController,t=new Map(u.STATSIG_GATE_LIST.map(g));return p.statsigGateOverrideAdapter.setCustomerModeValues(t),(0,f.setCustomerModeFetchFailed)(!1),l(),v(o,e.signal).then(t=>{if(null===t||e.signal.aborted){e.signal.aborted||(0,f.setCustomerModeFetchFailed)(!0);return}p.statsigGateOverrideAdapter.setCustomerModeValues(function(e){let t=new Map(u.STATSIG_GATE_LIST.map(e=>[e,!1]));for(let r of u.STATSIG_GATE_LIST)Object.hasOwn(e,r)&&t.set(r,e[r]);return t}(t)),(0,f.setCustomerModeFetchFailed)(!1),l()}),()=>{e.abort(),p.statsigGateOverrideAdapter.setCustomerModeValues(null),l()}},a=[o,s,d,l],i[2]=o,i[3]=s,i[4]=d,i[5]=l,i[6]=n,i[7]=a):(n=i[6],a=i[7]),(0,c.useEffect)(n,a),null}function g(e){return[e,!1]}async function v(e,t){let r=await (0,s.wrap)(()=>fetch(`/api/frontend/statsig-customer-bootstrap?seed=${encodeURIComponent(e)}`,{signal:t}));if((0,s.isErr)(r))return t.aborted||(0,o.wLog)("statsig-customer-bootstrap-fetch-failed",{error_message:(0,i.unknownErrorToString)(r.error)}),null;let n=r.data;if(!n.ok)return n.body?.cancel(),(0,o.wLog)("statsig-customer-bootstrap-fetch-not-ok",{status:n.status}),null;let a=await (0,s.wrap)(()=>n.json());if((0,s.isErr)(a))return t.aborted||(0,o.wLog)("statsig-customer-bootstrap-parse-failed",{error_message:(0,i.unknownErrorToString)(a.error)}),null;let c=(0,l.parseSchema)(d.StatsigCustomerProfileResponseSchema,a.data);return(0,s.isErr)(c)?((0,o.wLog)("statsig-customer-bootstrap-invalid-shape",{error_message:c.error.message}),null):c.data.data.values}function b(e,t="production"){return"development"===t||e}let y=(0,a.default)(()=>e.A(304582).then(e=>({default:e.DevPanel})),{loadableGenerated:{modules:[95142]}});function _(){let e,a=(0,r.c)(1),{isInternalAdmin:i}=(0,n.useEntity)();return b(i)?(a[0]===Symbol.for("react.memo_cache_sentinel")?(e=(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(m,{}),(0,t.jsx)(y,{})]}),a[0]=e):e=a[0],e):null}e.s(["DevPanelGate",0,_],247930),e.i(247930),e.s(["DevPanelGate",0,_,"shouldRenderDevPanel",0,b],367832)},249765,e=>{"use strict";var t=e.i(222666),r=e.i(505962),n=e.i(296278);let a=(0,e.i(821369).default)(()=>e.A(374320).then(({RadarEvaluationCapture:e})=>e),{loadableGenerated:{modules:[203400]},ssr:!1});e.s(["AuthenticatedRadarEvaluationCapture",0,function(e){let i,o=(0,r.c)(3),{eventType:s,captureSurface:l}=e,{isLoaded:c,session:u}=(0,n.useSession)();return c&&null!==u?(o[0]!==l||o[1]!==s?(i=(0,t.jsx)(a,{eventType:s,captureSurface:l}),o[0]=l,o[1]=s,o[2]=i):i=o[2],i):null}])},26197,e=>{"use strict";var t=e.i(222666),r=e.i(505962),n=e.i(850658),a=e.i(117738),i=e.i(580910),o=e.i(821369),s=e.i(270401),l=e.i(749509);let c=(0,o.default)(async()=>({default:(await e.A(638607)).OnboardingFlow}),{loadableGenerated:{modules:[574576]}}),u=(0,o.default)(async()=>({default:(await e.A(977821)).JoinedOrgWelcome}),{loadableGenerated:{modules:[811944]}});e.s(["OnboardingSwitch",0,function(){let e,o,d,p,f=(0,r.c)(10),{entity:h,isLoading:m,clerkOrg:g,clerkUser:v,isSignedIn:b}=(0,a.useEntity)(),{sessionClaims:y}=(0,n.useAuth)(),_=function(){let e,t=(0,r.c)(2),n=(0,l.useSearchParams)(),{isInternalAdmin:i}=(0,a.useEntity)();return!!i&&(t[0]!==n?(e=n?.get("force_onboarding"),t[0]=n,t[1]=e):e=t[1],"1"===e)}(),[x,E]=(0,s.useState)(!1),[P,w]=(0,s.useState)(!1),[S,R]=(0,s.useState)(null);e:{if(g){e=!1;break e}e=(y?.metadata?.hasPendingOnboarding===!0||_)&&!0===b&&!m&&!!h.data}let C=e;if(f[0]!==v||f[1]!==C?(o=()=>{C&&(w(!0),R(e=>e??(0,i.userHasOrgs)(v)))},d=[C,v],f[0]=v,f[1]=C,f[2]=o,f[3]=d):(o=f[2],d=f[3]),(0,s.useEffect)(o,d),x||!C&&!P)return null;if(!0===S&&!_){let e,r,n;if(g)return null;f[4]!==v?.organizationMemberships?(e=v?.organizationMemberships??[],f[4]=v?.organizationMemberships,f[5]=e):e=f[5];let[a]=e,i=a?.organization.name??null;return f[6]===Symbol.for("react.memo_cache_sentinel")?(r=()=>E(!0),f[6]=r):r=f[6],f[7]!==i?(n=(0,t.jsx)(u,{orgName:i,onClose:r}),f[7]=i,f[8]=n):n=f[8],n}return f[9]===Symbol.for("react.memo_cache_sentinel")?(p=(0,t.jsx)(c,{onClose:()=>E(!0)}),f[9]=p):p=f[9],p}],26197)},500927,e=>{"use strict";var t,r,n=e.i(222666),a=e.i(505962),i=e.i(270401);let o=i.forwardRef(function({title:e,titleId:t,...r},n){return i.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:n,"aria-labelledby":t},r),e?i.createElement("title",{id:t},e):null,i.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M3.75 9h16.5m-16.5 6.75h16.5"}))});var s=e.i(558200),l=e.i(452473),c=e.i(88130),u=e.i(376294);function d(){let e,t,r,i=(0,a.c)(3);return i[0]===Symbol.for("react.memo_cache_sentinel")?(e=(0,l.cn)("flex items-center","transform cursor-pointer duration-100 ease-in-out"),t=(0,n.jsx)(u.OpenRouterIcon,{className:"!h-5 !w-[28.3px] shrink-0 text-primary md:hidden",viewBox:"19.82 17.199 365.556 258.298",width:"28.3",height:"20"}),i[0]=e,i[1]=t):(e=i[0],t=i[1]),i[2]===Symbol.for("react.memo_cache_sentinel")?(r=(0,n.jsxs)("span",{className:e,children:[t,(0,n.jsx)("span",{className:"hidden md:block",children:(0,n.jsx)("img",{alt:"OpenRouter",className:"block h-6 w-[131px] object-none object-top dark:object-bottom",src:"/brand/v2/nav-lockup-sprite.png",srcSet:"/brand/v2/nav-lockup-sprite.png 1x, /brand/v2/nav-lockup-sprite@2x.png 2x",width:"131",height:"24"})})]}),i[2]=r):r=i[2],r}var p=e.i(394333),f=e.i(691038),h=e.i(926514),m=e.i(716221),g=e.i(693697);function v(e){let t=(0,i.lazy)(e),r=new Set,a=null,o=null,s=e=>(r.add(e),()=>{r.delete(e)}),l=()=>a,c=async()=>{let t=await (0,g.wrap)(e);if((0,g.isErr)(t)){o=null;return}for(let e of(a=t.data.default,r))e()};return{Component:function(e){let r=(0,i.useSyncExternalStore)(s,l,l);return(0,n.jsx)(r??t,{...e})},preload:()=>o??=c()}}function b(e,t){let r,n,o=(0,a.c)(4),s=void 0===t||t;o[0]!==s||o[1]!==e?(r=()=>{if(s){var t=e;let r=window;if("function"==typeof r.requestIdleCallback&&"function"==typeof r.cancelIdleCallback){let e=r.requestIdleCallback(()=>void t(),{timeout:2e3});return()=>r.cancelIdleCallback?.(e)}let n=window.setTimeout(()=>void t(),1500);return()=>window.clearTimeout(n)}},n=[s,e],o[0]=s,o[1]=e,o[2]=r,o[3]=n):(r=o[2],n=o[3]),(0,i.useEffect)(r,n)}var y=e.i(561584),_=e.i(821259),x=e.i(652116);let E=v(()=>e.A(286744)),P=E.Component,w=E.preload,S=[{id:"pill-1",widthClassName:"w-20"},{id:"pill-2",widthClassName:"w-24"},{id:"pill-3",widthClassName:"w-16"},{id:"pill-4",widthClassName:"w-28"},{id:"pill-5",widthClassName:"w-32"},{id:"pill-6",widthClassName:"w-24"}];function R(e){let t,r,o,s,l,c,u,d,p=(0,a.c)(17);p[0]!==e?(t=void 0===e?{}:e,p[0]=e,p[1]=t):t=p[1];let{runtime:h}=t,g=(0,f.useMediaLg)(),v=(0,_.usePublicPathname)(),x=(0,m.useCommandKStore)(k),E=(0,m.useCommandKStore)(j),S=(0,m.useCommandKStore)(C);return(p[2]!==E?(r=()=>{E(!1)},p[2]=E,p[3]=r):r=p[3],p[4]!==v||p[5]!==E?(o=[v,E],p[4]=v,p[5]=E,p[6]=o):o=p[6],(0,i.useEffect)(r,o),b(w,g),p[7]!==g||p[8]!==E||p[9]!==S?(s=()=>{if(!g)return;let e=e=>{if((0,y.isSearchShortcut)(e)){if(e.preventDefault(),"/"===e.key)return void E(!0);S()}};return document.addEventListener("keydown",e),()=>document.removeEventListener("keydown",e)},l=[g,E,S],p[7]=g,p[8]=E,p[9]=S,p[10]=s,p[11]=l):(s=p[10],l=p[11]),(0,i.useEffect)(s,l),g&&x)?(p[12]===Symbol.for("react.memo_cache_sentinel")?(c=(0,n.jsx)(O,{}),p[12]=c):c=p[12],p[13]!==h?(u=h??(0,n.jsx)(P,{}),p[13]=h,p[14]=u):u=p[14],p[15]!==u?(d=(0,n.jsx)(i.Suspense,{fallback:c,children:u}),p[15]=u,p[16]=d):d=p[16],d):null}function C(e){return e.toggle}function j(e){return e.setIsOpen}function k(e){return e.isOpen}function O(){let e,t,r,i,o,s=(0,a.c)(5);return s[0]===Symbol.for("react.memo_cache_sentinel")?(e=(0,n.jsx)("span",{className:"sr-only",children:"Loading search"}),s[0]=e):e=s[0],s[1]===Symbol.for("react.memo_cache_sentinel")?(t=(0,n.jsxs)("div",{className:"flex items-center border-b border-b-border px-5",children:[(0,n.jsx)(h.Search,{className:"mr-3 size-5 shrink-0 opacity-50"}),(0,n.jsx)("span",{className:"flex h-16 w-full items-center text-base text-muted-foreground",children:"Search OpenRouter…"}),(0,n.jsx)("kbd",{className:"ml-2 flex h-5 shrink-0 items-center justify-center rounded-xs bg-border px-1.5 text-xs text-muted-foreground",children:"esc"})]}),s[1]=t):t=s[1],s[2]===Symbol.for("react.memo_cache_sentinel")?(r=(0,n.jsx)("div",{className:"flex flex-wrap gap-2",children:S.map(A)}),s[2]=r):r=s[2],s[3]===Symbol.for("react.memo_cache_sentinel")?(i=(0,n.jsx)("div",{className:"flex gap-4 border-b border-border",children:S.slice(0,3).map(T)}),s[3]=i):i=s[3],s[4]===Symbol.for("react.memo_cache_sentinel")?(o=(0,n.jsxs)("div",{role:"status","aria-label":"Loading search",className:"fixed inset-0 z-overlay flex items-center justify-center bg-black/50 p-4",children:[e,(0,n.jsx)("div",{"aria-hidden":!0,className:"relative grid w-full max-w-2xl gap-0 overflow-hidden border bg-background p-0 shadow-lg sm:rounded-2xl md:w-full",children:(0,n.jsxs)("div",{className:"flex h-full w-full flex-col overflow-hidden rounded-md bg-popover text-popover-foreground",children:[t,(0,n.jsxs)("div",{className:"flex flex-col gap-5 overflow-hidden px-5 py-5",children:[r,(0,n.jsxs)("div",{className:"flex flex-col gap-3",children:[i,(0,n.jsx)("div",{className:"flex flex-wrap gap-2",children:S.map(N)})]})]}),(0,n.jsx)(x.CommandKFooter,{keyboardClassName:"text-[11px]"})]})})]}),s[4]=o):o=s[4],o}function N(e){return(0,n.jsxs)("div",{"data-loading-model-pill":"",className:"flex h-9 items-center gap-2 rounded-full border border-border px-3",children:[(0,n.jsx)(p.Skeleton,{className:"size-4 shrink-0 rounded-sm motion-reduce:animate-none"}),(0,n.jsx)(p.Skeleton,{className:`h-3 motion-reduce:animate-none ${e.widthClassName}`})]},e.id)}function T(e,t){return(0,n.jsx)("div",{"data-loading-suggestion-tab":"",className:`py-2 ${0===t?"border-b-2 border-foreground":""}`,children:(0,n.jsx)(p.Skeleton,{className:`h-3 rounded-sm motion-reduce:animate-none ${e.widthClassName}`})},e.id)}function A(e){return(0,n.jsx)(p.Skeleton,{"data-loading-navigation-pill":"",className:`h-9 rounded-full motion-reduce:animate-none ${e.widthClassName}`},e.id)}var I=e.i(553215),L=e.i(528164),M=e.i(252358),D=e.i(706527),U=e.i(612960);let B=v(V),$=B.Component,H=B.preload;function z(e){let t,r,o,s,l,c,u,d,p,m,g,v=(0,a.c)(24);v[0]!==e?(t=void 0===e?{}:e,v[0]=e,v[1]=t):t=v[1];let{searchDropdown:y}=t,[x,E]=(0,i.useState)(!1),P=(0,f.useMediaLg)(),w=(0,U.useLocalizedRouter)(),S=(0,_.usePublicPathname)(),R=(0,M.usePosthogClient)();b(H,!P),v[2]===Symbol.for("react.memo_cache_sentinel")?(r=()=>{E(!1)},v[2]=r):r=v[2],v[3]!==S?(o=[S],v[3]=S,v[4]=o):o=v[4],(0,i.useEffect)(r,o),v[5]===Symbol.for("react.memo_cache_sentinel")?(s=()=>{E(!1)},v[5]=s):s=v[5];let C=s;v[6]!==w?(l=e=>{w.push(`/${(0,D.getModelVariantSlug)(e)}`),C()},v[6]=w,v[7]=l):l=v[7];let j=l;v[8]!==w?(c=e=>{w.push(`/models?q=${encodeURIComponent(e)}`),C()},v[8]=w,v[9]=c):c=v[9];let k=c;return v[10]!==x||v[11]!==R?(u=()=>{x?C():(R.capture(I.PostHogEvent.CommandKOpen,{source:"mobile_search_icon"}),E(!0))},v[10]=x,v[11]=R,v[12]=u):u=v[12],v[13]===Symbol.for("react.memo_cache_sentinel")?(d=(0,n.jsx)(h.Search,{className:"size-4"}),v[13]=d):d=v[13],v[14]!==u?(p=(0,n.jsx)(L.Button,{variant:"ghost",size:"icon",title:"Search","aria-label":"Search",onPointerEnter:q,onFocus:W,onPointerDown:F,onClick:u,children:d}),v[14]=u,v[15]=p):p=v[15],v[16]!==k||v[17]!==j||v[18]!==x||v[19]!==y?(m=x&&(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("div",{className:"fixed inset-x-0 top-[calc(3.5rem+var(--navbar-top,0px))] bottom-0 z-overlay bg-background/60 backdrop-blur-xs",onClick:C,role:"presentation"}),(0,n.jsx)("div",{className:"fixed inset-x-0 top-[calc(3.5rem+var(--navbar-top,0px))] z-overlay border-b bg-background px-4 pb-3 pt-2 shadow-lg",children:(0,n.jsx)(i.Suspense,{fallback:(0,n.jsx)(K,{}),children:y??(0,n.jsx)($,{autoFocus:!0,expandedWidth:"100%",onSelect:j,onSearchAll:k,onBlur:C})})})]}),v[16]=k,v[17]=j,v[18]=x,v[19]=y,v[20]=m):m=v[20],v[21]!==m||v[22]!==p?(g=(0,n.jsxs)(n.Fragment,{children:[p,m]}),v[21]=m,v[22]=p,v[23]=g):g=v[23],g}function F(){H()}function W(){H()}function q(){H()}function K(){let e,t=(0,a.c)(1);return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=(0,n.jsxs)("div",{role:"status","aria-label":"Loading search",className:"flex h-9 items-center gap-2 rounded-md bg-muted px-3 text-sm text-muted-foreground",children:[(0,n.jsx)(h.Search,{className:"size-4 shrink-0"}),(0,n.jsx)("span",{children:"Loading search…"})]}),t[0]=e):e=t[0],e}async function V(){return{default:(await e.A(983398)).NavbarSearchDropdown}}var X=e.i(306937);let G=i.forwardRef(function({title:e,titleId:t,...r},n){return i.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:n,"aria-labelledby":t},r),e?i.createElement("title",{id:t},e):null,i.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M15.75 9V5.25A2.25 2.25 0 0 0 13.5 3h-6a2.25 2.25 0 0 0-2.25 2.25v13.5A2.25 2.25 0 0 0 7.5 21h6a2.25 2.25 0 0 0 2.25-2.25V15m3 0 3-3m0 0-3-3m3 3H9"}))});var Y=e.i(173037),J=e.i(50157),Q=e.i(665155),Z=e.i(557338),ee=e.i(838545),et=e.i(506514),er=e.i(162034),en=e.i(820963),ea=e.i(189511),ei=e.i(142721);let eo=i.forwardRef(function({title:e,titleId:t,...r},n){return i.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":"true","data-slot":"icon",ref:n,"aria-labelledby":t},r),e?i.createElement("title",{id:t},e):null,i.createElement("path",{fillRule:"evenodd",d:"M2.25 5.25a3 3 0 0 1 3-3h13.5a3 3 0 0 1 3 3V15a3 3 0 0 1-3 3h-3v.257c0 .597.237 1.17.659 1.591l.621.622a.75.75 0 0 1-.53 1.28h-9a.75.75 0 0 1-.53-1.28l.621-.622a2.25 2.25 0 0 0 .659-1.59V18h-3a3 3 0 0 1-3-3V5.25Zm1.5 0v7.5a1.5 1.5 0 0 0 1.5 1.5h13.5a1.5 1.5 0 0 0 1.5-1.5v-7.5a1.5 1.5 0 0 0-1.5-1.5H5.25a1.5 1.5 0 0 0-1.5 1.5Z",clipRule:"evenodd"}))}),es=i.forwardRef(function({title:e,titleId:t,...r},n){return i.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":"true","data-slot":"icon",ref:n,"aria-labelledby":t},r),e?i.createElement("title",{id:t},e):null,i.createElement("path",{fillRule:"evenodd",d:"M9.528 1.718a.75.75 0 0 1 .162.819A8.97 8.97 0 0 0 9 6a9 9 0 0 0 9 9 8.97 8.97 0 0 0 3.463-.69.75.75 0 0 1 .981.98 10.503 10.503 0 0 1-9.694 6.46c-5.799 0-10.5-4.7-10.5-10.5 0-4.368 2.667-8.112 6.46-9.694a.75.75 0 0 1 .818.162Z",clipRule:"evenodd"}))}),el=i.forwardRef(function({title:e,titleId:t,...r},n){return i.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":"true","data-slot":"icon",ref:n,"aria-labelledby":t},r),e?i.createElement("title",{id:t},e):null,i.createElement("path",{d:"M12 2.25a.75.75 0 0 1 .75.75v2.25a.75.75 0 0 1-1.5 0V3a.75.75 0 0 1 .75-.75ZM7.5 12a4.5 4.5 0 1 1 9 0 4.5 4.5 0 0 1-9 0ZM18.894 6.166a.75.75 0 0 0-1.06-1.06l-1.591 1.59a.75.75 0 1 0 1.06 1.061l1.591-1.59ZM21.75 12a.75.75 0 0 1-.75.75h-2.25a.75.75 0 0 1 0-1.5H21a.75.75 0 0 1 .75.75ZM17.834 18.894a.75.75 0 0 0 1.06-1.06l-1.59-1.591a.75.75 0 1 0-1.061 1.06l1.59 1.591ZM12 18a.75.75 0 0 1 .75.75V21a.75.75 0 0 1-1.5 0v-2.25A.75.75 0 0 1 12 18ZM7.758 17.303a.75.75 0 0 0-1.061-1.06l-1.591 1.59a.75.75 0 0 0 1.06 1.061l1.591-1.59ZM6 12a.75.75 0 0 1-.75.75H3a.75.75 0 0 1 0-1.5h2.25A.75.75 0 0 1 6 12ZM6.697 7.757a.75.75 0 0 0 1.06-1.06l-1.59-1.591a.75.75 0 0 0-1.061 1.06l1.59 1.591Z"}))});var ec=e.i(897575),eu=e.i(128341);e.i(742593);var ed=e.i(571236);function ep(e){let t,r,i,o,s,c,u,d=(0,a.c)(15),{className:p}=e,f=void 0===p?"":p,{theme:h,setTheme:m}=(0,eu.useTheme)(),g=(0,M.usePosthogClient)();d[0]!==g||d[1]!==m||d[2]!==h?(t=e=>{g.capture(I.PostHogEvent.ChangeTheme,{theme:e,oldTheme:h}),m(e)},d[0]=g,d[1]=m,d[2]=h,d[3]=t):t=d[3];let v=t;d[4]!==f?(r=(0,l.cn)("m-1 mb-1.5 mr-1.5",f),d[4]=f,d[5]=r):r=d[5];let b=h??"system";return d[6]===Symbol.for("react.memo_cache_sentinel")?(i=(0,n.jsx)(ec.SegmentedControlItem,{value:"light",className:"h-9 flex-1",children:(0,n.jsx)(el,{className:"h-4 w-4 fill-current"})}),d[6]=i):i=d[6],d[7]===Symbol.for("react.memo_cache_sentinel")?(o=(0,n.jsx)(ec.SegmentedControlItem,{value:"dark",className:"h-9 flex-1",children:(0,n.jsx)(es,{className:"h-4 w-4 fill-current"})}),d[7]=o):o=d[7],d[8]===Symbol.for("react.memo_cache_sentinel")?(s=(0,n.jsx)(ec.SegmentedControlItem,{value:"system",className:"h-9 flex-1",children:(0,n.jsx)(eo,{className:"h-4 w-4 fill-current"})}),d[8]=s):s=d[8],d[9]!==v||d[10]!==b?(c=(0,n.jsxs)(ec.SegmentedControl,{value:b,onValueChange:v,className:"w-full",children:[i,o,s]}),d[9]=v,d[10]=b,d[11]=c):c=d[11],d[12]!==r||d[13]!==c?(u=(0,n.jsx)(ed.Fade,{className:r,children:c}),d[12]=r,d[13]=c,d[14]=u):u=d[14],u}e.s([],750753),e.i(750753);var ef=e.i(120102),eh=e.i(123651),em=e.i(228876),eg=e.i(192291),ev=e.i(991066),eb=e.i(271710),ey=e.i(281334),e_=e.i(397744);let ex=i.createContext(void 0);function eE(e){let t=i.useContext(ex);if(void 0===t&&!e)throw Error((0,e_.default)(41));return t}let eP=i.createContext(void 0);function ew(){return i.useContext(eP)}var eS=e.i(688342),eR=e.i(207290),eC=e.i(677746),ej=e.i(467219);let ek=((t={}).popupWidth="--popup-width",t.popupHeight="--popup-height",t),eO=((r={}).availableWidth="--available-width",r.availableHeight="--available-height",r.anchorWidth="--anchor-width",r.anchorHeight="--anchor-height",r.transformOrigin="--transform-origin",r.positionerWidth="--positioner-width",r.positionerHeight="--positioner-height",r),eN=new Set([ej.REASONS.triggerHover,ej.REASONS.outsidePress,ej.REASONS.focusOut]),eT=i.forwardRef(function(e,t){let{defaultValue:r=null,value:a,onValueChange:o,actionsRef:s,delay:l=50,closeDelay:c=50,orientation:u="horizontal",onOpenChangeComplete:d}=e,p=null!=(0,ev.useFloatingParentNodeId)(),f=eE(!0),[h,m]=(0,eh.useControlled)({controlled:a,default:r,name:"NavigationMenu",state:"value"}),g=null!=h,v=i.useRef(void 0),b=i.useRef(null),[y,_]=i.useState(null),[x,E]=i.useState(null),[P,w]=i.useState(null),[S,R]=i.useState(null),[C,j]=i.useState(null),[k,O]=i.useState(void 0),[N,T]=i.useState(!1),A=i.useRef(null),I=i.useRef(null),L=i.useRef(null),M=i.useRef(null),D=i.useRef(null),U=i.useRef(null),B=i.useRef({abortController:null,owner:null}),{mounted:$,setMounted:H,transitionStatus:z}=(0,eR.useTransitionStatus)(g);i.useEffect(()=>{T(!1)},[h]);let F=(0,em.useStableCallback)((e,t)=>{!e&&(v.current=t.reason,j(null),O(void 0),y&&x&&function(e,t){let{width:r,height:n}=(0,eC.getCssDimensions)(e);0!==r&&0!==n&&(e.style.setProperty(ek.popupWidth,`${r}px`),e.style.setProperty(ek.popupHeight,`${n}px`),t.style.setProperty(eO.positionerWidth,`${r}px`),t.style.setProperty(eO.positionerHeight,`${n}px`))}(x,y)),e!==h&&o?.(e,t),!t.isCanceled&&(m(e),p&&!e&&t.reason===ej.REASONS.linkPress&&f&&f.setValue(null,t))}),W=(0,em.useStableCallback)(()=>{let e=(0,eg.ownerDocument)(b.current),t=(0,eb.activeElement)(e);!(v.current&&eN.has(v.current))&&(0,ef.isHTMLElement)(A.current)&&(t===(0,eg.ownerDocument)(x).body||(0,eb.contains)(x,t))&&x&&(A.current.focus({preventScroll:!0}),A.current=void 0),H(!1),d?.(!1),j(null),O(void 0),I.current=null,v.current=void 0});(0,eS.useOpenChangeComplete)({enabled:!s,open:g,ref:{current:x},onComplete(){g||W()}}),(0,eS.useOpenChangeComplete)({enabled:!s,open:g,ref:{current:S},onComplete(){g||W()}});let q=i.useMemo(()=>({open:g,value:h,setValue:F,mounted:$,transitionStatus:z,positionerElement:y,setPositionerElement:_,popupElement:x,setPopupElement:E,viewportElement:P,setViewportElement:w,viewportTargetElement:S,setViewportTargetElement:R,activationDirection:C,setActivationDirection:j,floatingRootContext:k,setFloatingRootContext:O,currentContentRef:I,nested:p,rootRef:b,beforeInsideRef:L,afterInsideRef:M,beforeOutsideRef:D,afterOutsideRef:U,prevTriggerElementRef:A,popupAutoSizeResetRef:B,delay:l,closeDelay:c,orientation:u,viewportInert:N,setViewportInert:T}),[g,h,F,$,z,y,x,P,S,C,k,p,l,c,u,N]),K=(0,n.jsx)(ex.Provider,{value:q,children:(0,n.jsx)(eA,{componentProps:e,forwardedRef:t,children:e.children})});return p?K:(0,n.jsx)(ev.FloatingTree,{children:K})});function eA(e){let{className:t,render:r,defaultValue:a,value:i,onValueChange:o,actionsRef:s,delay:l,closeDelay:c,orientation:u,onOpenChangeComplete:d,style:p,...f}=e.componentProps,h=(0,ev.useFloatingNodeId)(),{rootRef:m,nested:g}=eE(),{open:v}=eE(),b=(0,ey.useRenderElement)(g?"div":"nav",e.componentProps,{state:{open:v,nested:g},ref:[e.forwardedRef,m],props:f});return(0,n.jsx)(eP.Provider,{value:h,children:(0,n.jsx)(ev.FloatingNode,{id:h,children:b})})}var eI=e.i(618568),eL=e.i(427702),eM=e.i(294064),eD=e.i(613696);let eU="data-base-ui-navigation-menu-trigger",eB=i.createContext(void 0);var e$=e.i(225490);let eH=i.forwardRef(function(e,t){let{className:r,render:a,style:o,...s}=e,l=ew(),{orientation:c,open:u,floatingRootContext:d,positionerElement:p,value:f,closeDelay:h,viewportElement:m,nested:g}=eE(),v=i.useMemo(()=>(0,e$.getEmptyRootContext)(),[]),b=d||v;(0,eM.useHoverFloatingInteraction)(b,{enabled:!!d&&(!!p||!!m||!f),closeDelay:h,nodeId:l});let y=(0,eL.useDismiss)(b,{enabled:!!p||!f,outsidePressEvent:"intentional",outsidePress(e){let t=(0,eb.getTarget)(e);return null===t?.closest(`[${eU}]`)}}),_=d?y:void 0,x={open:u},E=g?eI.EMPTY_OBJECT:{onKeyDown(e){("horizontal"===c&&("ArrowLeft"===e.key||"ArrowRight"===e.key)||"vertical"===c&&("ArrowUp"===e.key||"ArrowDown"===e.key))&&e.stopPropagation()}},P=[_?.floating||eI.EMPTY_OBJECT,E,{"aria-orientation":void 0},s],w=(0,ey.useRenderElement)("ul",e,{state:x,ref:t,props:P,enabled:g});return g?(0,n.jsx)(eB.Provider,{value:_,children:w}):(0,n.jsx)(eB.Provider,{value:_,children:(0,n.jsx)(eD.CompositeRoot,{render:a,className:r,style:o,state:x,refs:[t],props:P,loopFocus:!1,orientation:c,tag:"ul"})})}),ez=i.createContext(void 0);function eF(){let e=i.useContext(ez);if(!e)throw Error((0,e_.default)(39));return e}var eW=e.i(593478);let eq=i.forwardRef(function(e,t){let{className:r,render:a,value:o,style:s,...l}=e,c=(0,eW.useBaseUiId)(),u=o??c,d=(0,ey.useRenderElement)("li",e,{ref:t,props:l}),p=i.useMemo(()=>({value:u}),[u]);return(0,n.jsx)(ez.Provider,{value:p,children:d})});var eK=e.i(214857),eV=e.i(361409),eX=e.i(528510),eG=e.i(678968),eY=e.i(290530);let eJ={...eY.popupStateMapping,...eG.transitionStatusMapping,activationDirection:e=>e?{"data-activation-direction":e}:null},eQ=i.forwardRef(function(e,t){let{className:r,render:a,keepMounted:o=!1,style:s,...l}=e,{mounted:c,viewportElement:u,value:d,activationDirection:p,currentContentRef:f,viewportTargetElement:h}=eE(),{value:m}=eF(),g=ew(),v=c&&d===m,b=i.useRef(null),[y,_]=i.useState(!1),[x,E]=i.useState(!1),{mounted:P,setMounted:w,transitionStatus:S}=(0,eR.useTransitionStatus)(v);P&&!c&&w(!1),(0,eS.useOpenChangeComplete)({ref:b,open:v,onComplete(){v||w(!1)}}),(0,eV.useIsoLayoutEffect)(()=>{v&&b.current&&(f.current=b.current)},[v,f]);let R={open:v,transitionStatus:S,activationDirection:p},C=i.useCallback(e=>{e&&(f.current=e)},[f]),j={onFocus(e){let t=(0,eb.getTarget)(e.nativeEvent);t?.hasAttribute("data-base-ui-focus-guard")||E(!0)},onBlur(e){(0,eb.contains)(e.currentTarget,e.relatedTarget)||E(!1)}},k=!v&&P?{style:{position:"absolute",top:0,left:0},inert:(0,eX.inertValue)(!x),...j}:j,O=h||u,N=o&&!P,T=o&&!O&&!y;return(o&&O&&!y&&_(!0),T)?(0,n.jsx)(eD.CompositeRoot,{render:a,className:r,style:s,state:R,refs:[t],props:[k,{hidden:!0},l],stateAttributesMapping:eJ}):O&&(P||o)?eK.createPortal((0,n.jsx)(ev.FloatingNode,{id:g,children:(0,n.jsx)(eD.CompositeRoot,{render:a,className:r,style:s,state:R,refs:[t,b,C],props:[k,N?{hidden:!0}:eI.EMPTY_OBJECT,l],stateAttributesMapping:eJ})}),O):null});var eZ=e.i(602406),e0=e.i(281085),e1=e.i(671695),e2=e.i(763323),e5=e.i(86222),e3=e.i(137834),e4=e.i(609190),e6=e.i(829655),e7=e.i(129356),e9=e.i(802691),e8=e.i(348137),te=e.i(774202),tt=e.i(686738),tr=e.i(939550),tn=e.i(916317),ta=e.i(375727),ti=e.i(559224);function to({currentTarget:e,relatedTarget:t},r){let{popupElement:n,viewportElement:a,rootRef:i,tree:o,nodeId:s}=r,l=o?(0,ti.getNodeChildren)(o.nodesRef.current,s).some(e=>(0,eb.contains)(e.context?.elements.floating,t)):[];if(!n)return!(0,eb.contains)(i.current,t)&&!l;let c=n||a;return!(0,eb.contains)(c,e)&&!(0,eb.contains)(c,t)&&!(0,eb.contains)(i.current,t)&&!l&&!((0,eb.contains)(c,t)&&t?.hasAttribute("data-base-ui-focus-guard"))}var ts=e.i(417717),tl=e.i(481902),tc=e.i(421380);let tu={width:0,height:0},td=i.forwardRef(function(e,t){let{className:r,render:a,nativeButton:o=!0,disabled:s,style:l,...c}=e,{value:u,setValue:d,mounted:p,open:f,positionerElement:h,setActivationDirection:m,setFloatingRootContext:g,popupElement:v,viewportElement:b,transitionStatus:y,rootRef:_,beforeOutsideRef:x,afterOutsideRef:E,afterInsideRef:P,beforeInsideRef:w,prevTriggerElementRef:S,popupAutoSizeResetRef:R,currentContentRef:C,delay:j,closeDelay:k,orientation:O,setViewportInert:N,nested:T}=eE(),{value:A}=eF(),I=ew(),L=(0,ev.useFloatingTree)(),M=i.useContext(eB),D=(0,e1.useTimeout)(),U=(0,e2.useAnimationFrame)(),B=(0,e2.useAnimationFrame)(),$=(0,e2.useAnimationFrame)(),H=(0,e2.useAnimationFrame)(),[z,F]=i.useState(null),[W,q]=i.useState(!0),[K,V]=i.useState(""),X=i.useRef(null),G=i.useRef(!1),Y=i.useRef(tu),J=i.useRef(!1),Q=f&&u===A,Z=(0,e5.useValueAsRef)(Q),ee=!!h||!u,et=h||b,er=!!et||!u,en=(0,tc.useAnimationsFinished)(v,!1,!1),ea=i.useCallback(e=>{X.current=e,F(e)},[]),ei=(0,em.useStableCallback)((e=!1)=>{(e||R.current.owner===A)&&(R.current.abortController?.abort(),R.current.abortController=null,R.current.owner=null)});function eo(){v&&(v.style.setProperty(ek.popupWidth,"auto"),v.style.setProperty(ek.popupHeight,"auto"))}function es(){v&&h&&(v.style.removeProperty(ek.popupWidth),v.style.removeProperty(ek.popupHeight),h.style.removeProperty(eO.positionerWidth),h.style.removeProperty(eO.positionerHeight))}function el(e,t){v&&h&&(v.style.setProperty(ek.popupWidth,`${e}px`),v.style.setProperty(ek.popupHeight,`${t}px`),h.style.setProperty(eO.positionerWidth,`${e}px`),h.style.setProperty(eO.positionerHeight,`${t}px`))}function ec(){ei(!0);let e=new AbortController;R.current.abortController=e,R.current.owner=A,en(()=>{R.current.abortController===e&&R.current.owner===A&&(R.current.abortController=null,R.current.owner=null,eo())},e.signal)}(0,eV.useIsoLayoutEffect)(()=>{Q||(B.cancel(),H.cancel(),ei())},[Q,B,H,ei]);let eu=(0,em.useStableCallback)((e,t,r={})=>{if(!v||!h)return;ei(!0);let{syncPositioner:n=!1}=r;es();let{width:a,height:i}=(0,eC.getCssDimensions)(v),o=a||Y.current.width,s=i||Y.current.height;(0===t||0===e)&&(e=o,t=s),v.style.setProperty(ek.popupWidth,`${e}px`),v.style.setProperty(ek.popupHeight,`${t}px`),h.style.setProperty(eO.positionerWidth,`${n?e:o}px`),h.style.setProperty(eO.positionerHeight,`${n?t:s}px`),H.request(()=>{Z.current&&(v.style.setProperty(ek.popupWidth,`${o}px`),v.style.setProperty(ek.popupHeight,`${s}px`),n&&(h.style.setProperty(eO.positionerWidth,`${o}px`),h.style.setProperty(eO.positionerHeight,`${s}px`)),ec())})}),ed=(0,em.useStableCallback)((e,t)=>{v&&h&&(H.cancel(),B.cancel(),ei(!0),0!==e&&0!==t&&(el(e,t),B.request(()=>{B.request(()=>{es();let{width:r,height:n}=(0,eC.getCssDimensions)(v),a=r||e||Y.current.width,i=n||t||Y.current.height;el(e,t),H.request(()=>{Z.current&&(el(a,i),ec())})})})))}),ep=(0,em.useStableCallback)(()=>{if(!v||!h)return;H.cancel(),ei(!0),es();let{width:e,height:t}=(0,eC.getCssDimensions)(v);0!==e&&0!==t&&(Y.current={width:e,height:t},eo(),h.style.setProperty(eO.positionerWidth,`${e}px`),h.style.setProperty(eO.positionerHeight,`${t}px`))}),eh=(0,em.useStableCallback)(()=>{if(!v)return{size:Y.current,syncPositioner:!1};let e=v.style.getPropertyValue(ek.popupWidth),t=v.style.getPropertyValue(ek.popupHeight);return""===e||"auto"===e||""===t||"auto"===t?{size:Y.current,syncPositioner:!1}:{size:{width:v.offsetWidth||Y.current.width,height:v.offsetHeight||Y.current.height},syncPositioner:!0}});i.useEffect(()=>{f||(D.clear(),B.cancel(),$.cancel(),H.cancel(),ei(!0),J.current=!1,V(""))},[D,f,B,$,H,ei]),i.useEffect(()=>{p||(Y.current=tu)},[p]),i.useEffect(()=>{if(!v||"function"!=typeof ResizeObserver)return;let e=new ResizeObserver(()=>{Y.current={width:v.offsetWidth,height:v.offsetHeight}});return e.observe(v),()=>{e.disconnect()}},[v]),i.useEffect(()=>{if(!f||!Q||!v||!h)return;let e=(0,e0.ownerWindow)(h),t=(0,eZ.addEventListener)(e,"resize",function(){$.cancel(),$.request(ep)});return()=>{$.cancel(),t()}},[f,Q,v,h,$,ep]),i.useEffect(()=>{let e=C.current;if(!e||!v||!Q||"function"!=typeof MutationObserver)return;let t=new MutationObserver(()=>{if("starting"===y||v.hasAttribute(eG.TransitionStatusDataAttributes.startingStyle))return void ep();let{size:e,syncPositioner:t}=eh();t?ed(e.width,e.height):eu(e.width,e.height)});return t.observe(e,{childList:!0,subtree:!0,characterData:!0}),()=>{t.disconnect()}},[C,v,Q,y,eh,ed,eu,ep]),i.useEffect(()=>(Q&&f&&v&&G.current&&(G.current=!1,U.request(()=>{x.current?.focus()})),()=>{U.cancel()}),[x,U,Q,f,v]),(0,eV.useIsoLayoutEffect)(()=>{if(Z.current&&f&&v){if("starting"===y&&C.current?.querySelector("[data-nested]")!=null)return H.request(ep),()=>{H.cancel()};if(J.current){J.current=!1;return}let{width:e,height:t}=(0,eC.getCssDimensions)(v);eu(e,t)}},[C,eu,Z,f,v,H,ep,y]);let eg=(0,e6.useFloatingRootContext)({open:f,onOpenChange:function(e,t){let r=t.reason===ej.REASONS.triggerHover;function n(){r&&(q(!0),D.clear(),D.start(tn.PATIENT_CLICK_THRESHOLD,()=>{q(!1)})),e?d(A,t):(d(null,t),V(""))}ee&&("touch"!==K||!r)&&(e||u===A)&&(r?eK.flushSync(n):n())},elements:{reference:z,floating:et}}),ey=(0,e8.useHoverInteractionSharedState)(eg),e_="touch"!==K;i.useEffect(()=>{f||(eg.context.dataRef.current.openEvent=void 0,ey.pointerType=void 0,ey.interactedInside=!1,ey.restTimeoutPending=!1,ey.openChangeTimeout.clear(),ey.restTimeout.clear(),(0,e8.clearSafePolygonPointerEventsMutation)(ey))},[eg,ey,f]);let ex=(0,em.useStableCallback)(()=>T&&!h&&X.current&&et?function(e,t,r){let n,a,i,o,s,l,c,u;return{placement:(n=e.getBoundingClientRect(),a=t.getBoundingClientRect(),i=n.left+n.width/2,o=n.top+n.height/2,s=a.left+a.width/2,l=a.top+a.height/2,Math.abs(c=s-i)>=Math.abs(u=l-o)?c>=0?"right":"left":u>=0?"bottom":"top"),elements:{domReference:e,floating:t},nodeId:r}}(X.current,et,I):null);function eP(){return T&&h?null:X.current?.closest("ul")??null}let eS=(0,e7.useHoverReferenceInteraction)(eg,{enabled:er,move:!1,handleClose:(0,e3.safePolygon)({blockPointerEvents:e_,getScope:eP}),restMs:p&&h?0:j,delay:{close:k},triggerElementRef:X,getHandleCloseContext:ex}),eR=i.useMemo(()=>eS?{reference:eS}:void 0,[eS]),eN=(0,e4.useClick)(eg,{enabled:ee,stickIfOpen:W,toggle:Q}),{getReferenceProps:eT}=(0,e9.useInteractions)([eR,eN]);function eA(e){eK.flushSync(()=>{let t=(0,ef.isHTMLElement)(e.currentTarget)?e.currentTarget:null,r=S.current?.getBoundingClientRect();if(p&&r&&z){let e=z.getBoundingClientRect(),t=e.left>r.left,n=e.top>r.top;"horizontal"===O&&e.left!==r.left?m(t?"right":"left"):"vertical"===O&&e.top!==r.top&&m(n?"down":"up")}if("click"!==e.type&&null!=u&&(eg.context.dataRef.current.openEvent=void 0),("touch"!==K||"click"===e.type)&&(null!=u&&d(A,(0,tr.createChangeEventDetails)("mouseenter"===e.type?ej.REASONS.triggerHover:ej.REASONS.triggerPress,e.nativeEvent)),"mouseenter"===e.type&&e_&&(!T||!h)&&et&&t)){let e=()=>{let e=eP()??t.ownerDocument.body;(0,e8.applySafePolygonPointerEventsMutation)(ey,{scopeElement:e,referenceElement:t,floatingElement:et})};null!=u&&u!==A?queueMicrotask(e):e()}})}(0,eV.useIsoLayoutEffect)(()=>{Q&&(g(eg),S.current=z)},[Q,eg,g,S,z]);let eL=(0,em.useStableCallback)(e=>{if(!v||!h)return void eA(e);let{width:t,height:r}=(0,eC.getCssDimensions)(v),n=null!=u&&u!==A&&("click"===e.type||"touch"!==K);eA(e),n&&(J.current=!0),eu(t,r)});function eM(e){V(e.pointerType)}let eD={tabIndex:0,onMouseEnter:eL,onClick:eL,onPointerEnter:eM,onPointerDown:function(e){eM(e),(0,e8.clearSafePolygonPointerEventsMutation)(ey)},"aria-expanded":Q,"aria-controls":Q?v?.id:void 0,[eU]:"",onFocus(){Q&&N(!1)},onMouseMove(){G.current=!1},onKeyDown(e){if(G.current=!0,T)return;let t="horizontal"===O&&"ArrowDown"===e.key,r="vertical"===O&&"ArrowRight"===e.key;(t||r)&&(d(A,(0,tr.createChangeEventDetails)(ej.REASONS.listNavigation,e.nativeEvent)),eL(e),(0,tt.stopEvent)(e))},onBlur(e){h&&v&&to({currentTarget:e.currentTarget,relatedTarget:e.relatedTarget},{popupElement:v,rootRef:_,tree:L,nodeId:I})&&d(null,(0,tr.createChangeEventDetails)(ej.REASONS.focusOut,e.nativeEvent))}},{getButtonProps:e$,buttonRef:eH}=(0,tl.useButton)({disabled:s,focusableWhenDisabled:!0,native:o});return(0,n.jsxs)(i.Fragment,{children:[(0,n.jsx)(ts.CompositeItem,{tag:"button",render:a,className:r,style:l,state:{open:Q},stateAttributesMapping:eY.pressableTriggerOpenStateMapping,refs:[t,ea,eH],props:[eT,M?.reference||eI.EMPTY_ARRAY,eD,c,e$]}),Q&&(0,n.jsxs)(i.Fragment,{children:[(0,n.jsx)(ta.FocusGuard,{ref:x,onFocus:e=>{if(et&&(0,te.isOutsideEvent)(e,et))w.current?.focus();else{let e=(0,te.getPreviousTabbable)(z);e?.focus()}}}),(0,n.jsx)("span",{"aria-owns":b?.id,style:tn.ownerVisuallyHidden}),(0,n.jsx)(ta.FocusGuard,{ref:E,onFocus:e=>{if(et&&(0,te.isOutsideEvent)(e,et)){eK.flushSync(()=>{N(!1)});let e=P.current||z;e?.focus()}else{let t=(0,te.getNextTabbable)(z);T&&!h&&et&&t&&(0,eb.contains)(et,t)&&(t=(0,te.getTabbableAfterElement)(P.current)),t?.focus(),T&&!h||(0,eb.contains)(_.current,t)||d(null,(0,tr.createChangeEventDetails)(ej.REASONS.focusOut,e.nativeEvent))}}})]})]})});var tp=e.i(55497);let tf=i.createContext(void 0),th=i.forwardRef(function(e,t){let{keepMounted:r=!1,...a}=e,{mounted:i}=eE();return i||r?(0,n.jsx)(tf.Provider,{value:r,children:(0,n.jsx)(tp.FloatingPortal,{ref:t,...a})}):null});var tm=e.i(604079),tg=e.i(707999);let tv=i.createContext(void 0);function tb(e=!1){let t=i.useContext(tv);if(!t&&!e)throw Error((0,e_.default)(42));return t}var ty=e.i(290281),t_=e.i(556982);let tx=(0,e$.getEmptyRootContext)(),tE=i.forwardRef(function(e,t){let{open:r,mounted:a,positionerElement:o,setPositionerElement:s,floatingRootContext:l,nested:c,transitionStatus:u}=eE(),{className:d,render:p,anchor:f,positionMethod:h="absolute",side:m="bottom",align:g="center",sideOffset:v=0,alignOffset:b=0,collisionBoundary:y="clipping-ancestors",collisionPadding:_=5,collisionAvoidance:x=c?tn.POPUP_COLLISION_AVOIDANCE:tn.DROPDOWN_COLLISION_AVOIDANCE,arrowPadding:E=5,sticky:P=!1,disableAnchorTracking:w=!1,style:S,...R}=e,C=function(){let e=i.useContext(tf);if(void 0===e)throw Error((0,e_.default)(40));return e}(),j=ew(),k=(0,e1.useTimeout)(),[O,N]=i.useState(!1),T=i.useRef(null),A=i.useRef(null);i.useEffect(()=>{if(o)return(0,tm.mergeCleanups)((0,eZ.addEventListener)(o,"focusin",e,!0),(0,eZ.addEventListener)(o,"focusout",e,!0));function e(e){o&&(0,te.isOutsideEvent)(e)&&("focusin"===e.type?te.enableFocusInside:te.disableFocusInside)(o)}},[o]);let I=(l||tx).useState("domReferenceElement"),L=(0,tg.useAnchorPositioning)({anchor:f??I??A,positionMethod:h,mounted:a,side:m,sideOffset:v,align:g,alignOffset:b,arrowPadding:E,collisionBoundary:y,collisionPadding:_,sticky:P,disableAnchorTracking:w,keepMounted:C,floatingRootContext:l,collisionAvoidance:x,nodeId:j,adaptiveOrigin:ty.adaptiveOrigin}),M={open:r,side:L.side,align:L.align,anchorHidden:L.anchorHidden,instant:O};i.useEffect(()=>{if(!r)return;let e=(0,e0.ownerWindow)(o);return(0,eZ.addEventListener)(e,"resize",function(){eK.flushSync(()=>{N(!0)}),k.start(100,()=>{N(!1)})})},[r,k,o]);let D=(0,t_.usePositioner)(e,M,{styles:L.positionerStyles,transitionStatus:u,props:R,refs:[t,s,T],hidden:!a,inert:!r});return(0,n.jsx)(tv.Provider,{value:L,children:D})});var tP=e.i(319983);let tw=(0,e$.getEmptyRootContext)();function tS({children:e}){let{beforeInsideRef:t,beforeOutsideRef:r,afterInsideRef:a,afterOutsideRef:o,positionerElement:s,viewportElement:l,floatingRootContext:c}=eE(),u=!!tb(!0),d=s||l;return c||u?(0,n.jsxs)(i.Fragment,{children:[(0,n.jsx)(ta.FocusGuard,{ref:t,onFocus:e=>{d&&(0,te.isOutsideEvent)(e,d)?(0,te.getNextTabbable)(d)?.focus():r.current?.focus()}}),e,(0,n.jsx)(ta.FocusGuard,{ref:a,onFocus:e=>{d&&(0,te.isOutsideEvent)(e,d)?(0,te.getPreviousTabbable)(d)?.focus():o.current?.focus()}})]}):e}let tR=i.forwardRef(function(e,t){let{className:r,render:a,children:i,id:o,style:s,...l}=e,c=(0,tP.useId)(o),{setViewportElement:u,setViewportTargetElement:d,floatingRootContext:p,prevTriggerElementRef:f,viewportInert:h,setViewportInert:m}=eE(),g=!!tb(!0),v=(p||tw).useState("domReferenceElement");(0,eV.useIsoLayoutEffect)(()=>{v&&(f.current=v)},[v,f]);let b=(0,ey.useRenderElement)("div",e,{ref:[t,u],props:[{id:c,onBlur(e){let t=e.relatedTarget,r=e.currentTarget;t&&!(0,eb.contains)(r,t)&&t!==v&&m(!0)},...!g&&h&&{inert:(0,eX.inertValue)(!0)},children:g?i:(0,n.jsx)(tS,{children:(0,n.jsx)("div",{ref:d,children:i})})},l]});return g?(0,n.jsx)(tS,{children:b}):b}),tC={...eY.popupStateMapping,...eG.transitionStatusMapping},tj=i.forwardRef(function(e,t){let{className:r,render:n,style:a,...i}=e,{open:o,mounted:s,transitionStatus:l}=eE();return(0,ey.useRenderElement)("div",e,{state:{open:o,transitionStatus:l},ref:t,props:[{role:"presentation",hidden:!s,style:{userSelect:"none",WebkitUserSelect:"none"}},i],stateAttributesMapping:tC})});var tk=e.i(698031);let tO={...eY.popupStateMapping,...eG.transitionStatusMapping},tN=i.forwardRef(function(e,t){let{className:r,render:n,id:a,style:i,...o}=e,{open:s,transitionStatus:l,setPopupElement:c}=eE(),u=tb(),d=(0,tk.useDirection)(),p=(0,eW.useBaseUiId)(a),f={open:s,transitionStatus:l,side:u.side,align:u.align,anchorHidden:u.anchorHidden},h="top"===u.side,m="left"===u.side;return"rtl"===d?(h=h||"inline-end"===u.side,m=m||"inline-end"===u.side):(h=h||"inline-start"===u.side,m=m||"inline-start"===u.side),(0,ey.useRenderElement)("nav",e,{state:f,ref:[t,c],props:[{id:p,tabIndex:-1,style:h?{position:"absolute",["top"===u.side?"bottom":"top"]:"0",[m?"right":"left"]:"0"}:{}},o],stateAttributesMapping:tO})}),tT=i.forwardRef(function(e,t){let{className:r,render:n,style:a,...i}=e,{open:o}=eE(),{arrowRef:s,side:l,align:c,arrowUncentered:u,arrowStyles:d}=tb();return(0,ey.useRenderElement)("div",e,{state:{open:o,side:l,align:c,uncentered:u},ref:[t,s],props:[{style:d,"aria-hidden":!0},i],stateAttributesMapping:eY.popupStateMapping})}),tA=i.forwardRef(function(e,t){let{className:r,render:a,active:i=!1,closeOnClick:o=!1,style:s,...l}=e,{setValue:c,popupElement:u,positionerElement:d,rootRef:p}=eE(),f=ew(),h=(0,ev.useFloatingTree)();return(0,n.jsx)(ts.CompositeItem,{tag:"a",render:a,className:r,style:s,state:{active:i},refs:[t],props:[{"aria-current":i?"page":void 0,tabIndex:void 0,onClick(e){o&&c(null,(0,tr.createChangeEventDetails)(ej.REASONS.linkPress,e.nativeEvent))},onBlur(e){d&&u&&to({currentTarget:e.currentTarget,relatedTarget:e.relatedTarget},{popupElement:u,rootRef:p,tree:h,nodeId:f})&&c(null,(0,tr.createChangeEventDetails)(ej.REASONS.focusOut,e.nativeEvent))}},l]})}),tI=i.forwardRef(function(e,t){let{className:r,render:n,style:a,...i}=e,{value:o}=eF(),{open:s,value:l}=eE();return(0,ey.useRenderElement)("span",e,{state:{open:s&&l===o},ref:t,props:[{"aria-hidden":!0,children:"▼"},i],stateAttributesMapping:eY.triggerOpenStateMapping})});e.s(["Arrow",0,tT,"Backdrop",0,tj,"Content",0,eQ,"Icon",0,tI,"Item",0,eq,"Link",0,tA,"List",0,eH,"Popup",0,tN,"Portal",0,th,"Positioner",0,tE,"Root",0,eT,"Trigger",0,td,"Viewport",0,tR],215725);var tL=e.i(215725),tL=tL,tM=e.i(207298),tD=e.i(674734);let tU="duration-[0.35s] ease-[cubic-bezier(0.22,1,0.36,1)]",tB=e=>{let t,r,i,o,s,c,u,d,p,f,h,m,g,v,b,y=(0,a.c)(29);y[0]!==e?({className:r,children:t,defaultValue:i,onValueChange:o,portalClassName:s,ref:u,value:p,align:d,...c}=e,y[0]=e,y[1]=t,y[2]=r,y[3]=i,y[4]=o,y[5]=s,y[6]=c,y[7]=u,y[8]=d,y[9]=p):(t=y[1],r=y[2],i=y[3],o=y[4],s=y[5],c=y[6],u=y[7],d=y[8],p=y[9]);let _=void 0===d?"end":d;y[10]!==o?(f=void 0===o?void 0:(e,t)=>{o(e??"",t)},y[10]=o,y[11]=f):f=y[11];let x=f,E=""===p?null:p,P=""===i?null:i;return y[12]!==r?(h=(0,l.cn)("relative z-10 flex max-w-max flex-1 items-center justify-center",r),y[12]=r,y[13]=h):h=y[13],y[14]!==s?(m=(0,l.cn)("isolate z-50 h-[var(--positioner-height)] w-[var(--positioner-width)] max-w-[var(--available-width)]","transition-[top,left,right,bottom] data-[instant]:transition-none motion-reduce:transition-none",tU,s),y[14]=s,y[15]=m):m=y[15],y[16]===Symbol.for("react.memo_cache_sentinel")?(g=(0,n.jsx)(tL.Popup,{className:(0,l.cn)("origin-[var(--transform-origin)] relative h-[var(--popup-height)] max-h-[var(--available-height)] w-[var(--popup-width)] overflow-y-auto overflow-x-hidden rounded-md border bg-popover shadow-md will-change-transform","transition-[opacity,transform,width,height,scale,translate] motion-reduce:transition-opacity",tU,"data-[starting-style]:scale-90 data-[starting-style]:opacity-0 motion-reduce:data-[starting-style]:scale-100","data-[ending-style]:scale-90 data-[ending-style]:opacity-0 data-[ending-style]:duration-150 data-[ending-style]:ease-[ease] motion-reduce:data-[ending-style]:scale-100"),children:(0,n.jsx)(tK,{})}),y[16]=g):g=y[16],y[17]!==_||y[18]!==m?(v=(0,n.jsx)(tL.Portal,{children:(0,n.jsx)(tL.Positioner,{align:_,sideOffset:6,positionMethod:"fixed",className:m,children:g})}),y[17]=_,y[18]=m,y[19]=v):v=y[19],y[20]!==t||y[21]!==x||y[22]!==c||y[23]!==u||y[24]!==E||y[25]!==P||y[26]!==h||y[27]!==v?(b=(0,n.jsxs)(tL.Root,{ref:u,delay:0,closeDelay:0,value:E,defaultValue:P,onValueChange:x,className:h,...c,children:[t,v]}),y[20]=t,y[21]=x,y[22]=c,y[23]=u,y[24]=E,y[25]=P,y[26]=h,y[27]=v,y[28]=b):b=y[28],b},t$=e=>{let t,r,i,o,s,c=(0,a.c)(10);return c[0]!==e?({className:t,ref:i,...r}=e,c[0]=e,c[1]=t,c[2]=r,c[3]=i):(t=c[1],r=c[2],i=c[3]),c[4]!==t?(o=(0,l.cn)("group flex flex-1 list-none items-center justify-center gap-x-1",t),c[4]=t,c[5]=o):o=c[5],c[6]!==r||c[7]!==i||c[8]!==o?(s=(0,n.jsx)(tL.List,{ref:i,className:o,...r}),c[6]=r,c[7]=i,c[8]=o,c[9]=s):s=c[9],s},tH=tL.Item,tz=(0,tM.cva)("group inline-flex h-9 w-max items-center justify-center rounded-md bg-background px-4 py-2 text-sm font-medium transition-colors hover:bg-card-hover hover:text-accent-foreground focus-visible:bg-card-hover focus-visible:text-accent-foreground focus:outline-hidden disabled:pointer-events-none disabled:opacity-50 data-[active]:bg-accent data-[popup-open]:bg-accent data-[state=open]:bg-accent"),tF=(0,n.jsx)(Q.ChevronDownIcon,{className:"relative top-[1px] ml-1 h-3 w-3 transition duration-200 group-data-[popup-open]:rotate-180 group-data-[state=open]:rotate-180","aria-hidden":"true"}),tW=e=>{let t,r,i,o,s,c,u,d,p,f=(0,a.c)(18);f[0]!==e?({className:r,children:t,icon:c,render:s,ref:o,...i}=e,f[0]=e,f[1]=t,f[2]=r,f[3]=i,f[4]=o,f[5]=s,f[6]=c):(t=f[1],r=f[2],i=f[3],o=f[4],s=f[5],c=f[6]);let h=void 0===c?tF:c;return f[7]!==r?(u=(0,l.cn)(tz(),"group",r),f[7]=r,f[8]=u):u=f[8],f[9]!==s?(d=tV(s),f[9]=s,f[10]=d):d=f[10],f[11]!==t||f[12]!==h||f[13]!==i||f[14]!==o||f[15]!==u||f[16]!==d?(p=(0,n.jsxs)(tL.Trigger,{"data-navigation-menu-trigger":!0,ref:o,className:u,render:d,...i,children:[t," ",h]}),f[11]=t,f[12]=h,f[13]=i,f[14]=o,f[15]=u,f[16]=d,f[17]=p):p=f[17],p},tq=e=>{let t,r,i,o,s,c=(0,a.c)(10);return c[0]!==e?({className:t,ref:i,...r}=e,c[0]=e,c[1]=t,c[2]=r,c[3]=i):(t=c[1],r=c[2],i=c[3]),c[4]!==t?(o=(0,l.cn)("left-0 top-0 w-full md:w-auto","transition-[opacity,transform,translate] motion-reduce:transition-opacity",tU,"data-[starting-style]:opacity-0 data-[ending-style]:opacity-0","data-[starting-style]:data-[activation-direction=right]:translate-x-[50%] data-[starting-style]:data-[activation-direction=left]:translate-x-[-50%]","data-[ending-style]:data-[activation-direction=right]:translate-x-[-50%] data-[ending-style]:data-[activation-direction=left]:translate-x-[50%]","motion-reduce:translate-x-0!",t),c[4]=t,c[5]=o):o=c[5],c[6]!==r||c[7]!==i||c[8]!==o?(s=(0,n.jsx)(tL.Content,{ref:i,className:o,...r}),c[6]=r,c[7]=i,c[8]=o,c[9]=s):s=c[9],s},tK=e=>{let t,r,i,o,s,c=(0,a.c)(10);return c[0]!==e?({className:t,ref:i,...r}=e,c[0]=e,c[1]=t,c[2]=r,c[3]=i):(t=c[1],r=c[2],i=c[3]),c[4]!==t?(o=(0,l.cn)("relative h-full w-full overflow-hidden",t),c[4]=t,c[5]=o):o=c[5],c[6]!==r||c[7]!==i||c[8]!==o?(s=(0,n.jsx)(tL.Viewport,{className:o,ref:i,...r}),c[6]=r,c[7]=i,c[8]=o,c[9]=s):s=c[9],s},tV=e=>(t,r)=>{let a={...t,"data-state":tX(r.open)};if(void 0===e)return(0,n.jsx)("button",{type:"button",...a});if("function"==typeof e)return e(a,r);let o=(0,tD.resolveRenderElement)(e);return o?(0,i.cloneElement)(o,a):(0,n.jsx)("button",{type:"button",...a})},tX=e=>e?"open":"closed";var tG=e.i(804021);e.i(406201);var tY=e.i(806024),tJ=e.i(985024),tQ=e.i(121850),tZ=e.i(648156);let t0=e=>{let t,r,i,o,s,c,u,d=(0,a.c)(14);d[0]!==e?({children:t,className:s,isMenu:r,ref:o,...i}=e,d[0]=e,d[1]=t,d[2]=r,d[3]=i,d[4]=o,d[5]=s):(t=d[1],r=d[2],i=d[3],o=d[4],s=d[5]);let p=void 0===s?"":s,f=r?"w-full justify-start hover:bg-card-hover hover:text-accent-foreground":"w-auto justify-center";return d[6]!==p||d[7]!==f?(c=(0,l.cn)("w-full",f,"text-muted-foreground","font-medium","px-2",p),d[6]=p,d[7]=f,d[8]=c):c=d[8],d[9]!==t||d[10]!==i||d[11]!==o||d[12]!==c?(u=(0,n.jsx)(L.Button,{"data-nav-button":!0,size:"sm",variant:"ghost",className:c,...i,ref:o,children:t}),d[9]=t,d[10]=i,d[11]=o,d[12]=c,d[13]=u):u=d[13],u},t1="Not available in this workspace";function t2(e){let t,r,i,o=(0,a.c)(5),{label:s}=e;return o[0]!==s?(t=(0,n.jsx)(t0,{"aria-disabled":"true",tabIndex:-1,className:"pointer-events-none opacity-50",children:s}),o[0]=s,o[1]=t):t=o[1],o[2]===Symbol.for("react.memo_cache_sentinel")?(r=(0,n.jsx)("span",{className:"sr-only",children:t1}),o[2]=r):r=o[2],o[3]!==t?(i=(0,n.jsx)(tZ.Tooltip,{content:t1,children:(0,n.jsxs)(tZ.TooltipNonInteractiveTrigger,{children:[t,r]})}),o[3]=t,o[4]=i):i=o[4],i}function t5(e){let t,r,i,o,s,c=(0,a.c)(11),{label:u,icon:d,className:p}=e;return c[0]!==p?(t=(0,l.cn)("flex w-full items-center gap-2.5 rounded-md px-2 py-1.5 text-left text-sm font-medium","cursor-not-allowed text-muted-foreground opacity-50",p),c[0]=p,c[1]=t):t=c[1],c[2]!==d?(r=d&&(0,n.jsx)("span",{className:"flex size-5 shrink-0 items-center justify-center",children:d}),c[2]=d,c[3]=r):r=c[3],c[4]!==u||c[5]!==t||c[6]!==r?(i=(0,n.jsxs)("span",{"aria-disabled":"true",className:t,children:[r,u]}),c[4]=u,c[5]=t,c[6]=r,c[7]=i):i=c[7],c[8]===Symbol.for("react.memo_cache_sentinel")?(o=(0,n.jsx)("span",{className:"sr-only",children:t1}),c[8]=o):o=c[8],c[9]!==i?(s=(0,n.jsx)(tZ.Tooltip,{content:t1,children:(0,n.jsxs)(tZ.TooltipNonInteractiveTrigger,{className:"block w-full",children:[i,o]})}),c[9]=i,c[10]=s):s=c[10],s}var t3=e.i(204067),t4=e.i(796805);let t6="nav_nested",t7="or_nav_arm",t9=t4.z.enum([tG.ExperimentArm.Control,tG.ExperimentArm.Treatment]);function t8(e){let t=(0,t3.parseSchema)(t9,e);return(0,g.isOk)(t)?t.data:null}function re(e){let t,r,i=(0,a.c)(6),{arm:o,className:s,children:l}=e;i[0]!==o?(t={"data-nav-tree":o},i[0]=o,i[1]=t):t=i[1];let c=t;return i[2]!==l||i[3]!==s||i[4]!==c?(r=(0,n.jsx)("div",{...c,className:s,children:l}),i[2]=l,i[3]=s,i[4]=c,i[5]=r):r=i[5],r}let rt="flex items-center gap-2 rounded-full px-2 py-1.5",rr="inline-block shrink-0 overflow-hidden rounded-full border border-border/50",rn="flex shrink-0 items-center justify-center rounded-full text-2xs font-medium",ra="max-w-[120px] truncate text-xs text-muted-foreground",ri="inline-flex items-center justify-center text-muted-foreground",ro="size-3.5",rs={xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round","aria-hidden":"true"},rl=(...e)=>e.map(e=>({tag:"path",attributes:{d:e}})),rc={className:"h-3 w-3",attributes:{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},children:[{tag:"path",attributes:{"stroke-linecap":"round","stroke-linejoin":"round",d:"m19.5 8.25-7.5 7.5-7.5-7.5"}}]},ru={pro:{label:"Pro",icon:{className:`lucide lucide-zap ${ro}`,attributes:rs,children:rl("M4 14a1 1 0 0 1-.78-1.63l9.9-10.2a.5.5 0 0 1 .86.46l-1.92 6.02A1 1 0 0 0 13 10h7a1 1 0 0 1 .78 1.63l-9.9 10.2a.5.5 0 0 1-.86-.46l1.92-6.02A1 1 0 0 0 11 14z")}},business:{label:"Business",icon:{className:`lucide lucide-building ${ro}`,attributes:rs,children:[...rl("M12 10h.01","M12 14h.01","M12 6h.01","M16 10h.01","M16 14h.01","M16 6h.01","M8 10h.01","M8 14h.01","M8 6h.01","M9 22v-3a1 1 0 0 1 1-1h4a1 1 0 0 1 1 1v3"),{tag:"rect",attributes:{x:"4",y:"2",width:"16",height:"20",rx:"2"}}]}},enterprise:{label:"Enterprise",icon:{className:`lucide lucide-building-2 ${ro}`,attributes:rs,children:rl("M10 12h4","M10 8h4","M14 21v-3a2 2 0 0 0-4 0v3","M6 10H4a2 2 0 0 0-2 2v7a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2V9a2 2 0 0 0-2-2h-2","M6 21V5a2 2 0 0 1 2-2h8a2 2 0 0 1 2 2v16")}}};function rd(e){return Object.fromEntries(Object.entries(e).map(([e,t])=>[e.startsWith("data-")||e.startsWith("aria-")?e:e.replaceAll(/-([a-z])/g,(e,t)=>t.toUpperCase()),t]))}function rp(e){let t,r,i,o=(0,a.c)(8),{spec:s}=e;o[0]!==s.attributes?(t=rd(s.attributes),o[0]=s.attributes,o[1]=t):t=o[1];let l=s.className;return o[2]!==s.children?(r=s.children.map(rf),o[2]=s.children,o[3]=r):r=o[3],o[4]!==s.className||o[5]!==t||o[6]!==r?(i=(0,n.jsx)("svg",{...t,className:l,children:r}),o[4]=s.className,o[5]=t,o[6]=r,o[7]=i):i=o[7],i}function rf(e){return(0,i.createElement)(e.tag,{key:e.attributes.d??e.tag,...rd(e.attributes)})}function rh(e){let t,r,i,o,s,c=(0,a.c)(18),{imageUrl:u,isOrg:d,label:p,subscriptionPlan:f,size:h,showChevron:m,showLabel:g}=e,v=void 0!==m&&m,b=void 0!==g&&g,y=f?ru[f]:void 0;return c[0]!==u||c[1]!==d||c[2]!==p||c[3]!==h?(t=u?(0,n.jsx)("picture",{className:(0,l.cn)(rr,h),children:(0,n.jsx)("img",{src:u,alt:"",className:"h-full w-full object-cover"})}):(0,n.jsx)("div",{className:(0,l.cn)(rn,h,d?"text-primary-foreground":"bg-muted",d&&(0,ei.getOrgColor)(p)),children:d?(0,ei.getOrgInitials)(p):p[0]?.toUpperCase()}),c[0]=u,c[1]=d,c[2]=p,c[3]=h,c[4]=t):t=c[4],c[5]!==p||c[6]!==b?(r=b&&(0,n.jsx)("span",{className:ra,children:p}),c[5]=p,c[6]=b,c[7]=r):r=c[7],c[8]!==y||c[9]!==b?(i=b&&y&&(0,n.jsx)("span",{className:ri,role:"img","aria-label":`${y.label} plan`,children:(0,n.jsx)(rp,{spec:y.icon})}),c[8]=y,c[9]=b,c[10]=i):i=c[10],c[11]!==v?(o=v&&(0,n.jsx)(rp,{spec:rc}),c[11]=v,c[12]=o):o=c[12],c[13]!==t||c[14]!==r||c[15]!==i||c[16]!==o?(s=(0,n.jsxs)("div",{"aria-hidden":"true",className:rt,"data-nav-identity-trigger":"true",children:[t,r,i,o]}),c[13]=t,c[14]=r,c[15]=i,c[16]=o,c[17]=s):s=c[17],s}var rm=e.i(749509),rg=e.i(773109);function rv(e){let t,r=(0,a.c)(3),{className:o,source:s}=e;return r[0]!==o||r[1]!==s?(t=(0,n.jsx)(i.Suspense,{fallback:null,children:(0,n.jsx)(ry,{className:o,source:s})}),r[0]=o,r[1]=s,r[2]=t):t=r[2],t}function rb(e){let t,r,i,o=(0,a.c)(5),{className:s}=e;return o[0]!==s?(t=(0,l.cn)("inline-flex h-8 items-center px-3 text-button font-medium whitespace-nowrap animate-none",s),o[0]=s,o[1]=t):t=o[1],o[2]===Symbol.for("react.memo_cache_sentinel")?(r=(0,n.jsx)("span",{className:"invisible",children:"Sign Up"}),o[2]=r):r=o[2],o[3]!==t?(i=(0,n.jsx)(p.Skeleton,{"data-testid":"nav-sign-up-placeholder",className:t,children:r}),o[3]=t,o[4]=i):i=o[4],i}function ry(e){let t,r,i,o,s=(0,a.c)(11),{className:l,source:c}=e,u=(0,M.usePosthogClient)(),d=(0,_.usePublicPathname)(),p=(0,rm.useSearchParams)();s[0]!==p?(t=p?.toString(),s[0]=p,s[1]=t):t=s[1];let f=t,h=f?`${d??"/"}?${f}`:d??"/";return s[2]!==u||s[3]!==c?(r=()=>{u.capture(I.PostHogEvent.ClickSignUpButton,{variants:I.PostHogElementVariants.NavigationMenuSignUp,source:c})},s[2]=u,s[3]=c,s[4]=r):r=s[4],s[5]!==l||s[6]!==r?(i=(0,n.jsx)(L.Button,{variant:"default",size:"sm",className:l,onClick:r,children:"Sign Up"}),s[5]=l,s[6]=r,s[7]=i):i=s[7],s[8]!==h||s[9]!==i?(o=(0,n.jsx)(rg.SignUpButton,{forceRedirectUrl:h,signInForceRedirectUrl:h,children:i},h),s[8]=h,s[9]=i,s[10]=o):o=s[10],o}var r_=e.i(539326);function rx(e){let t,r,o,s,c=(0,a.c)(5),{children:u}=e,d=(0,i.useRef)(null);return c[0]===Symbol.for("react.memo_cache_sentinel")?(t=()=>{let e=d.current;if(!e)return;let t=()=>{let t=(0,r_.computeScrollEdgeFade)(e,{maxFadePx:56,edgeAlpha:0});e.style.maskImage=t,e.style.webkitMaskImage=t};t(),e.addEventListener("scroll",t,{passive:!0});let r="u"{e.removeEventListener("scroll",t),r?.disconnect()}},r=[],c[0]=t,c[1]=r):(t=c[0],r=c[1]),(0,i.useEffect)(t,r),c[2]===Symbol.for("react.memo_cache_sentinel")?(o=(0,l.cn)("scrollbar-hide flex min-w-0 shrink items-center gap-1 overflow-x-auto overscroll-x-contain whitespace-nowrap [&>*]:shrink-0","[mask-image:linear-gradient(to_right,transparent,#000_0,#000_calc(100%_-_56px),transparent)]","[-webkit-mask-image:linear-gradient(to_right,transparent,#000_0,#000_calc(100%_-_56px),transparent)]"),c[2]=o):o=c[2],c[3]!==u?(s=(0,n.jsx)("div",{ref:d,"data-nav-tabs-scroller":!0,className:o,children:u}),c[3]=u,c[4]=s):s=c[4],s}var rE=e.i(138612);let rP=(0,e.i(202913).default)("box",[["path",{d:"M21 8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73l7 4a2 2 0 0 0 2 0l7-4A2 2 0 0 0 21 16Z",key:"hh9hay"}],["path",{d:"m3.3 7 8.7 5 8.7-5",key:"g66t2b"}],["path",{d:"M12 22V12",key:"d0xqtd"}]]);var rw=e.i(863458),rS=e.i(987545),rR=e.i(155325),rC=e.i(213648),rj=e.i(239371),rk=e.i(986122),rO=e.i(210041);let rN={id:"models",label:"Models",href:"/models",event:I.PostHogEvent.ClickModelsButton,variants:I.PostHogElementVariants.NavigationMenuModels,prefetch:"viewport",items:[{id:"all-models",label:"All models",href:"/models",icon:rP,event:I.PostHogEvent.ClickModelsButton,variants:I.PostHogElementVariants.NavigationMenuModels},{id:"discover",label:"Discover",href:"/discover",icon:rS.Compass,event:I.PostHogEvent.ClickDiscoverButton},{id:"benchmarks",label:"Benchmarks",href:"/benchmarks",icon:rR.FlaskConical,event:I.PostHogEvent.ClickBenchmarksButton},{id:"providers",label:"Providers",href:"/providers",icon:rk.Server,event:I.PostHogEvent.ClickProvidersButton}]},rT={id:"rankings",label:"Rankings",href:"/rankings",event:I.PostHogEvent.ClickRankingsButton,items:[{id:"models",label:"Models",href:"/rankings",icon:rO.Trophy,event:I.PostHogEvent.ClickRankingsButton},{id:"apps",label:"Apps",href:"/apps",icon:rj.LayoutGrid,event:I.PostHogEvent.ClickAppsButton}]},rA={id:"ori",label:"Ori",href:"/ori",icon:rC.Globe,event:I.PostHogEvent.ClickOriMenuItem},rI={id:"enterprise",label:"Enterprise",href:"/enterprise",icon:rw.Building2,event:I.PostHogEvent.ClickEnterpriseButton},rL={id:"docs",label:"Docs",href:"/docs/quickstart",icon:rE.BookOpen,event:I.PostHogEvent.ClickDocsButton};function rM({group:e,source:t,variants:r}){return{source:t,nav_arm:tG.ExperimentArm.Treatment,group:e,...void 0===r?{}:{variants:r}}}function rD(e){let t,r,n,o=(0,a.c)(4),s=(0,i.useRef)("");return o[0]===Symbol.for("react.memo_cache_sentinel")?(t=e=>{s.current=e.pointerType},r=()=>{s.current=""},o[0]=t,o[1]=r):(t=o[0],r=o[1]),o[2]!==e?(n={onPointerDown:t,onPointerCancel:r,onClick:t=>{let r="touch"===s.current;(s.current="",r)?t.preventDefault():(t.preventBaseUIHandler(),e())}},o[2]=e,o[3]=n):n=o[3],n}function rU(e){let t,r,o,s,l,c,u,d,p=(0,a.c)(40),{group:f,source:h}=e,m=(0,M.usePosthogClient)(),g=(0,_.usePublicPathname)(),[v,b]=(0,i.useState)("");p[0]!==f.event||p[1]!==f.id||p[2]!==f.variants||p[3]!==m||p[4]!==h?(t=()=>{m.capture(f.event,rM({group:f.id,source:h,variants:f.variants})),b("")},p[0]=f.event,p[1]=f.id,p[2]=f.variants,p[3]=m,p[4]=h,p[5]=t):t=p[5];let y=rD(t);p[6]!==f.id||p[7]!==m||p[8]!==h?(r=(e,t)=>{b(e),e===f.id&&m.capture(I.PostHogEvent.OpenNavGroup,{group:f.id,source:h,reason:t.reason})},p[6]=f.id,p[7]=m,p[8]=h,p[9]=r):r=p[9];let x=f.id;if(p[10]!==f.href||p[11]!==f.prefetch?(o=(0,n.jsx)(tY.Link,{href:f.href,prefetch:f.prefetch}),p[10]=f.href,p[11]=f.prefetch,p[12]=o):o=p[12],p[13]!==f.label||p[14]!==o||p[15]!==y.onClick||p[16]!==y.onPointerCancel||p[17]!==y.onPointerDown?(s=(0,n.jsx)(tW,{nativeButton:!1,render:o,onPointerDown:y.onPointerDown,onPointerCancel:y.onPointerCancel,onClick:y.onClick,className:"h-8 bg-transparent px-2 font-medium text-muted-foreground",children:f.label}),p[13]=f.label,p[14]=o,p[15]=y.onClick,p[16]=y.onPointerCancel,p[17]=y.onPointerDown,p[18]=s):s=p[18],p[19]!==f.id||p[20]!==f.items||p[21]!==g||p[22]!==m||p[23]!==h){let e;p[25]!==f.id||p[26]!==g||p[27]!==m||p[28]!==h?(e=e=>{let t=e.icon;return(0,n.jsxs)(tY.Link,{href:e.href,"aria-current":g===e.href?"page":void 0,onClick:()=>{m.capture(e.event,rM({group:f.id,source:h,variants:e.variants})),b("")},className:"group flex min-h-9 items-center gap-2.5 rounded-[var(--radius-md)] px-2 py-1.5 text-sm font-medium text-muted-foreground transition-colors hover:bg-card-hover hover:text-accent-foreground",children:[(0,n.jsx)(t,{className:"size-4 shrink-0 text-muted-foreground transition-colors group-hover:text-accent-foreground"}),e.label]},e.id)},p[25]=f.id,p[26]=g,p[27]=m,p[28]=h,p[29]=e):e=p[29],l=f.items.map(e),p[19]=f.id,p[20]=f.items,p[21]=g,p[22]=m,p[23]=h,p[24]=l}else l=p[24];return p[30]!==l?(c=(0,n.jsx)(tq,{className:"w-56 p-1.5 md:w-56",children:l}),p[30]=l,p[31]=c):c=p[31],p[32]!==f.id||p[33]!==s||p[34]!==c?(u=(0,n.jsx)(t$,{children:(0,n.jsxs)(tH,{value:x,children:[s,c]})}),p[32]=f.id,p[33]=s,p[34]=c,p[35]=u):u=p[35],p[36]!==r||p[37]!==u||p[38]!==v?(d=(0,n.jsx)(tB,{value:v,onValueChange:r,align:"start",children:u}),p[36]=r,p[37]=u,p[38]=v,p[39]=d):d=p[39],d}var rB=e.i(970654),r$=e.i(977051),rH=e.i(107770);let rz=e=>{let t,r,i,o,s,c,u,d,p,f,h,m,g,v=(0,a.c)(24);v[0]!==e?({href:o,className:s,linkClassName:c,isMenu:u,children:t,isActive:r,prefetch:d,...i}=e,v[0]=e,v[1]=t,v[2]=r,v[3]=i,v[4]=o,v[5]=s,v[6]=c,v[7]=u,v[8]=d):(t=v[1],r=v[2],i=v[3],o=v[4],s=v[5],c=v[6],u=v[7],d=v[8]);let b=void 0===o?"/":o,y=void 0===s?"":s,x=void 0===c?"":c,E=void 0!==u&&u,P=void 0===d?"hover":d,w=(0,_.usePublicPathname)();e:{if(void 0!==r){p=r;break e}if(w===b){p=!0;break e}let e=b.toString();if(e.length>1&&w===e){p=!0;break e}p=!1}let S=p;v[9]!==x?(f=(0,l.cn)("text-muted-foreground",x),v[9]=x,v[10]=f):f=v[10];let R=S&&"text-foreground";return v[11]!==y||v[12]!==R?(h=(0,l.cn)(R,y),v[11]=y,v[12]=R,v[13]=h):h=v[13],v[14]!==t||v[15]!==E||v[16]!==h?(m=(0,n.jsx)(t0,{isMenu:E,className:h,children:t}),v[14]=t,v[15]=E,v[16]=h,v[17]=m):m=v[17],v[18]!==b||v[19]!==P||v[20]!==i||v[21]!==m||v[22]!==f?(g=(0,n.jsx)(tY.Link,{...i,href:b,className:f,prefetch:P,children:m}),v[18]=b,v[19]=P,v[20]=i,v[21]=m,v[22]=f,v[23]=g):g=v[23],g},rF=e=>{let t,r,i,o,s,l,c=(0,a.c)(13);c[0]!==e?({event:t,metadata:r,onClick:i,...o}=e,c[0]=e,c[1]=t,c[2]=r,c[3]=i,c[4]=o):(t=c[1],r=c[2],i=c[3],o=c[4]);let u=(0,M.usePosthogClient)();c[5]!==t||c[6]!==r||c[7]!==i||c[8]!==u?(s=e=>{u.capture(t,r),i?.(e)},c[5]=t,c[6]=r,c[7]=i,c[8]=u,c[9]=s):s=c[9];let d=s;return c[10]!==d||c[11]!==o?(l=(0,n.jsx)(rz,{...o,onClick:d}),c[10]=d,c[11]=o,c[12]=l):l=c[12],l};function rW(e){let t,r,o,s,l,c,u,d,p,f,h,m,g,v,b,y,x=(0,a.c)(55),{source:E,metadata:P,onOpen:w}=e,S=(0,M.usePosthogClient)(),R=(0,_.usePublicPathname)(),[C,j]=(0,i.useState)(""),k=(0,r$.useFeatureFlag)("oriCode");x[0]!==P||x[1]!==S||x[2]!==E?(t=()=>{S.capture(rA.event,{item:"overview",destination:rH.OriNavDestination.Overview,source:E,...P}),j("")},x[0]=P,x[1]=S,x[2]=E,x[3]=t):t=x[3];let O=rD(t);if(x[4]!==k||x[5]!==P||x[6]!==w||x[7]!==R||x[8]!==S||x[9]!==E||x[10]!==O.onClick||x[11]!==O.onPointerCancel||x[12]!==O.onPointerDown||x[13]!==C){let e,t,a=(0,rH.oriNavItems)({canOpenProductPages:k});l=tB,f=C,x[25]!==w?(h=(e,t)=>{j(e),"ori"===e&&w?.(t.reason)},x[25]=w,x[26]=h):h=x[26],m="start",s=t$,o=tH,d="ori",x[27]===Symbol.for("react.memo_cache_sentinel")?(e=(0,n.jsx)(tY.Link,{href:rA.href}),x[27]=e):e=x[27],x[28]!==O.onClick||x[29]!==O.onPointerCancel||x[30]!==O.onPointerDown?(p=(0,n.jsx)(tW,{nativeButton:!1,render:e,onPointerDown:O.onPointerDown,onPointerCancel:O.onPointerCancel,onClick:O.onClick,className:"h-8 bg-transparent px-2 font-medium text-muted-foreground",children:rA.label}),x[28]=O.onClick,x[29]=O.onPointerCancel,x[30]=O.onPointerDown,x[31]=p):p=x[31],r=tq,c="w-56 p-1.5 md:w-56",x[32]!==P||x[33]!==R||x[34]!==S||x[35]!==E?(t=e=>{let t=e.icon;return(0,n.jsxs)(tY.Link,{href:e.href,"aria-current":e.href.includes("#")||R!==e.href?void 0:"page",onClick:()=>{S.capture(I.PostHogEvent.ClickOriMenuItem,{item:e.id,destination:e.destination,source:E,...P}),j("")},className:"group flex min-h-9 items-center gap-2.5 rounded-[var(--radius-md)] px-2 py-1.5 text-sm font-medium text-muted-foreground transition-colors hover:bg-card-hover hover:text-accent-foreground",children:[(0,n.jsx)(t,{className:"size-4 shrink-0 text-muted-foreground transition-colors group-hover:text-accent-foreground"}),e.label,e.tag&&(0,n.jsx)(rB.Badge,{className:"bg-foreground/5 px-1.5 text-muted-foreground",children:e.tag})]},e.id)},x[32]=P,x[33]=R,x[34]=S,x[35]=E,x[36]=t):t=x[36],u=a.map(t),x[4]=k,x[5]=P,x[6]=w,x[7]=R,x[8]=S,x[9]=E,x[10]=O.onClick,x[11]=O.onPointerCancel,x[12]=O.onPointerDown,x[13]=C,x[14]=r,x[15]=o,x[16]=s,x[17]=l,x[18]=c,x[19]=u,x[20]=d,x[21]=p,x[22]=f,x[23]=h,x[24]=m}else r=x[14],o=x[15],s=x[16],l=x[17],c=x[18],u=x[19],d=x[20],p=x[21],f=x[22],h=x[23],m=x[24];return x[37]!==r||x[38]!==c||x[39]!==u?(g=(0,n.jsx)(r,{className:c,children:u}),x[37]=r,x[38]=c,x[39]=u,x[40]=g):g=x[40],x[41]!==o||x[42]!==d||x[43]!==p||x[44]!==g?(v=(0,n.jsxs)(o,{value:d,children:[p,g]}),x[41]=o,x[42]=d,x[43]=p,x[44]=g,x[45]=v):v=x[45],x[46]!==s||x[47]!==v?(b=(0,n.jsx)(s,{children:v}),x[46]=s,x[47]=v,x[48]=b):b=x[48],x[49]!==l||x[50]!==b||x[51]!==f||x[52]!==h||x[53]!==m?(y=(0,n.jsx)(l,{value:f,onValueChange:h,align:m,children:b}),x[49]=l,x[50]=b,x[51]=f,x[52]=h,x[53]=m,x[54]=y):y=x[54],y}function rq(e){let t,r,i=(0,a.c)(5),{source:o,isMenu:s}=e;return i[0]!==o?(t={item:"overview",destination:rH.OriNavDestination.Overview,source:o},i[0]=o,i[1]=t):t=i[1],i[2]!==s||i[3]!==t?(r=(0,n.jsx)(rF,{href:rA.href,isMenu:s,event:rA.event,metadata:t,children:rA.label}),i[2]=s,i[3]=t,i[4]=r):r=i[4],r}let rK="desktop_nav";function rV(){let e,t,r,i,o,s,l,c,u=(0,a.c)(12),d=(0,M.usePosthogClient)(),p=(0,tJ.useWorkspaceCapabilityGate)(ea.WorkspaceCapability.Chatroom);return u[0]===Symbol.for("react.memo_cache_sentinel")?(e=(0,n.jsx)(rU,{group:rN,source:rK}),t=(0,n.jsx)(rU,{group:rT,source:rK}),u[0]=e,u[1]=t):(e=u[0],t=u[1]),u[2]===Symbol.for("react.memo_cache_sentinel")?(r=rM({group:"ori",source:rK}),u[2]=r):r=u[2],u[3]!==d?(i=(0,n.jsx)(rW,{source:rK,metadata:r,onOpen:e=>{d.capture(I.PostHogEvent.OpenNavGroup,{group:"ori",source:rK,reason:e})}}),u[3]=d,u[4]=i):i=u[4],u[5]!==p?(o=p===tQ.WorkspaceCapabilityGateState.Blocked?(0,n.jsx)(t2,{label:"Chat"}):(0,n.jsx)(rF,{href:"/chat",prefetch:!1,event:I.PostHogEvent.ClickChatButton,metadata:rM({group:"chat",source:rK,variants:I.PostHogElementVariants.NavigationMenuChat}),children:"Chat"}),u[5]=p,u[6]=o):o=u[6],u[7]===Symbol.for("react.memo_cache_sentinel")?(s=(0,n.jsx)(rF,{href:rI.href,event:rI.event,metadata:rM({group:"enterprise",source:rK}),children:rI.label}),u[7]=s):s=u[7],u[8]===Symbol.for("react.memo_cache_sentinel")?(l=(0,n.jsx)(rF,{href:rL.href,event:rL.event,metadata:rM({group:"docs",source:rK}),children:rL.label}),u[8]=l):l=u[8],u[9]!==i||u[10]!==o?(c=(0,n.jsxs)(n.Fragment,{children:[e,t,i,o,s,l]}),u[9]=i,u[10]=o,u[11]=c):c=u[11],c}var rX=e.i(117738),rG=e.i(980351),rY=e.i(278509);function rJ(e=!1){let{signOut:t,clerkUser:r,clerkOrg:n,shouldShowOrgSwitcher:a,entity:o,isLoading:s,isSignedIn:l}=(0,rX.useEntity)(),c=(0,_.usePublicPathname)(),u=(0,i.useCallback)(()=>`${window.location.pathname}${window.location.search}`||"/",[c]),d=(0,rG.useHydrated)(),[p,f]=(0,i.useState)(()=>(0,rY.readNavIdentitySnapshot)((0,rY.getNavIdentityStorage)())),h=!s,m=c?.includes("/sso-callback")??!1,g=d&&window.location.hash.includes("/sso-callback"),v=m||g,b=(0,i.useRef)(e),y=d&&h&&(l&&!r||v);(y||d&&v)&&(b.current=!0),r&&(b.current=!1);let x=y||b.current&&!r,E=d&&h&&!x,P=E?!!r:e||x,w=o.data?.is_enterprise??!1,S=async e=>{(0,rY.clearNavIdentitySnapshot)((0,rY.getNavIdentityStorage)()),f(null),await t(e)};return(0,i.useEffect)(()=>{if(!h)return;if(!r&&E){(0,rY.clearNavIdentitySnapshot)((0,rY.getNavIdentityStorage)()),f(null);return}if(!r)return;let e={imageUrl:n?!n.imageUrl||(0,ei.isClerkDefaultImage)(n.imageUrl)?null:n.imageUrl:r.imageUrl,label:n?.name??"Personal",subscriptionPlan:function({clerkUser:e,clerkOrg:t,entity:r}){let n=t?.id??e.id;return r.data?.clerk_user_id!==n?null:r.data?.plan??null}({clerkUser:r,clerkOrg:n,entity:o}),isOrg:null!==n};(0,rY.writeNavIdentitySnapshot)((0,rY.getNavIdentityStorage)(),e),f(e)},[n,r,o,h,E]),{isLoggedIn:P,isReady:E,isAuthTransitioning:x,isEnterprise:w,clerkUser:r,navIdentitySnapshot:p,shouldShowOrgSwitcher:a,profileHref:function({userId:e,orgId:t}){return t&&e?`/settings/organization-members/${e}`:"/settings/profile"}({userId:r?.id??null,orgId:n?.id??null}),signOut:S,pathname:c,getSignOutRedirectUrl:u,initialIsSignedIn:e}}function rQ(e){let t,r=(0,a.c)(4),{navIdentitySnapshot:i,hookInitialIsSignedIn:o,isAuthTransitioning:s}=e;if(i){let e;return r[0]!==i?(e=(0,n.jsx)(rh,{...i,size:"size-6",showChevron:!0,showLabel:!0}),r[0]=i,r[1]=e):e=r[1],e}if(o||s){let e;return r[2]===Symbol.for("react.memo_cache_sentinel")?(e=(0,n.jsx)(p.Skeleton,{className:"h-9 w-28 rounded-md animate-pulse"}),r[2]=e):e=r[2],e}return r[3]===Symbol.for("react.memo_cache_sentinel")?(t=(0,n.jsx)(rb,{}),r[3]=t):t=r[3],t}function rZ(e){let t,r,o,s,l,c,u,d,p,f,h,m,g,v,b,y,_,x,E,P,w,S,R,C,j,k,O,N,T,A,L,D,U,B,$=(0,a.c)(78),{initialIsSignedIn:H}=e,z=(0,M.usePosthogClient)(),{openUserProfile:F,openOrganizationProfile:W}=(0,X.useClerk)(),{isLoggedIn:q,isReady:K,isAuthTransitioning:V,clerkUser:eo,profileHref:es,navIdentitySnapshot:el,signOut:ec,getSignOutRedirectUrl:eu,initialIsSignedIn:ed}=rJ(void 0!==H&&H),ef=(0,tJ.useWorkspaceCapabilityGate)(ea.WorkspaceCapability.Chatroom),[eh,em]=(0,i.useState)("");$[0]!==z?(t=()=>{z.capture(I.PostHogEvent.ClickProfileButton,{source:"desktop_nav_trigger"}),em("")},$[0]=z,$[1]=t):t=$[1];let eg=rD(t);$[2]===Symbol.for("react.memo_cache_sentinel")?(r=(0,n.jsx)(er.RectangleStackIcon,{className:"size-4"}),$[2]=r):r=$[2],$[3]!==z?(o={key:"workspaces",label:"Workspaces",href:"/workspaces",icon:r,onClick:()=>z.capture(I.PostHogEvent.ClickWorkspacesButton,{source:"desktop_nav"})},$[3]=z,$[4]=o):o=$[4],$[5]===Symbol.for("react.memo_cache_sentinel")?(s=(0,n.jsx)(en.UserCircleIcon,{className:"size-4"}),$[5]=s):s=$[5],$[6]!==z?(l=()=>z.capture(I.PostHogEvent.ClickProfileButton,{source:"desktop_nav"}),$[6]=z,$[7]=l):l=$[7],$[8]!==es||$[9]!==l?(c={key:"profile",label:"Profile",href:es,icon:s,onClick:l},$[8]=es,$[9]=l,$[10]=c):c=$[10],$[11]===Symbol.for("react.memo_cache_sentinel")?(u=(0,n.jsx)(J.ChartBarIcon,{className:"size-4"}),$[11]=u):u=$[11],$[12]!==z?(d={key:"activity",label:"Activity",href:"/activity",icon:u,onClick:()=>z.capture(I.PostHogEvent.ClickActivityButton,{source:"desktop_nav"})},$[12]=z,$[13]=d):d=$[13],$[14]===Symbol.for("react.memo_cache_sentinel")?(p=(0,n.jsx)(et.ListBulletIcon,{className:"size-4"}),$[14]=p):p=$[14],$[15]!==z?(f={key:"logs",label:"Logs",href:"/logs",icon:p,onClick:()=>z.capture(I.PostHogEvent.ClickLogsButton,{source:"desktop_nav"})},$[15]=z,$[16]=f):f=$[16],$[17]===Symbol.for("react.memo_cache_sentinel")?(h=(0,n.jsx)(ee.CreditCardIcon,{className:"size-4"}),$[17]=h):h=$[17],$[18]!==z?(m={key:"credits",label:"Credits",href:"/settings/credits",icon:h,onClick:()=>z.capture(I.PostHogEvent.ClickCreditsButton,{variants:I.PostHogElementVariants.NavigationMenuCredits})},$[18]=z,$[19]=m):m=$[19],$[20]===Symbol.for("react.memo_cache_sentinel")?(g=(0,n.jsx)(Y.BeakerIcon,{className:"size-4"}),$[20]=g):g=$[20],$[21]!==z?(v={key:"labs",label:"Labs",href:"/labs",icon:g,onClick:()=>z.capture(I.PostHogEvent.ClickLabsButton,{source:"desktop_nav"})},$[21]=z,$[22]=v):v=$[22],$[23]===Symbol.for("react.memo_cache_sentinel")?(b=(0,n.jsx)(Z.Cog6ToothIcon,{className:"size-4"}),$[23]=b):b=$[23],$[24]!==z?(y={key:"settings",label:"Preferences",href:"/settings/preferences",icon:b,onClick:()=>z.capture(I.PostHogEvent.ClickSettingsButton,{source:"desktop_nav"})},$[24]=z,$[25]=y):y=$[25],$[26]!==f||$[27]!==m||$[28]!==v||$[29]!==y||$[30]!==o||$[31]!==c||$[32]!==d?(_=[o,c,d,f,m,v,y],$[26]=f,$[27]=m,$[28]=v,$[29]=y,$[30]=o,$[31]=c,$[32]=d,$[33]=_):_=$[33];let ev=_;return $[34]!==q?(x=q&&(0,n.jsx)(rF,{href:"/workspaces",event:I.PostHogEvent.ClickHomeButton,metadata:{source:"desktop_nav"},children:"Home"}),$[34]=q,$[35]=x):x=$[35],$[36]===Symbol.for("react.memo_cache_sentinel")?(E=(0,n.jsx)(rF,{href:"/models",prefetch:"viewport",event:I.PostHogEvent.ClickModelsButton,metadata:{variants:I.PostHogElementVariants.NavigationMenuModels,source:"desktop_nav"},children:"Models"}),$[36]=E):E=$[36],$[37]===Symbol.for("react.memo_cache_sentinel")?(P=(0,n.jsx)(rF,{href:"/benchmarks",event:I.PostHogEvent.ClickBenchmarksButton,metadata:{source:"desktop_nav"},children:"Benchmarks"}),$[37]=P):P=$[37],$[38]!==ef?(w=ef===tQ.WorkspaceCapabilityGateState.Blocked?(0,n.jsx)(t2,{label:"Chat"}):(0,n.jsx)(rF,{href:"/chat",prefetch:!1,event:I.PostHogEvent.ClickChatButton,metadata:{variants:I.PostHogElementVariants.NavigationMenuChat,source:"desktop_nav"},children:"Chat"}),$[38]=ef,$[39]=w):w=$[39],$[40]===Symbol.for("react.memo_cache_sentinel")?(S=(0,n.jsx)(rF,{href:"/rankings",event:I.PostHogEvent.ClickRankingsButton,metadata:{source:"desktop_nav"},children:"Rankings"}),$[40]=S):S=$[40],$[41]===Symbol.for("react.memo_cache_sentinel")?(R=(0,n.jsx)(rF,{href:"/apps",event:I.PostHogEvent.ClickAppsButton,metadata:{source:"desktop_nav"},children:"Apps"}),C=(0,n.jsx)(rq,{source:"desktop_nav"}),$[41]=R,$[42]=C):(R=$[41],C=$[42]),$[43]===Symbol.for("react.memo_cache_sentinel")?(j=(0,n.jsx)(rF,{href:"/enterprise",event:I.PostHogEvent.ClickEnterpriseButton,metadata:{source:"desktop_nav"},children:"Enterprise"}),$[43]=j):j=$[43],$[44]===Symbol.for("react.memo_cache_sentinel")?(k=(0,n.jsx)(rF,{href:"/docs/quickstart",event:I.PostHogEvent.ClickDocsButton,metadata:{source:"desktop_nav"},children:"Docs"}),$[44]=k):k=$[44],$[45]!==w?(O=(0,n.jsxs)(re,{arm:tG.ExperimentArm.Control,className:"flex items-center gap-1 [&>*]:shrink-0",children:[E,P,w,S,R,C,j,k]}),$[45]=w,$[46]=O):O=$[46],$[47]===Symbol.for("react.memo_cache_sentinel")?(N=(0,n.jsx)(re,{arm:tG.ExperimentArm.Treatment,className:"flex items-center gap-1 [&>*]:shrink-0",children:(0,n.jsx)(rV,{})}),$[47]=N):N=$[47],$[48]!==x||$[49]!==O?(T=(0,n.jsxs)(rx,{children:[x,O,N]}),$[48]=x,$[49]=O,$[50]=T):T=$[50],$[51]!==ed||$[52]!==V||$[53]!==K||$[54]!==el?(A=!K&&(0,n.jsx)("div",{"data-nav-identity-placeholder":!0,"data-nav-identity-size":"size-6","data-nav-identity-label":"true","data-nav-identity-chevron":"true",suppressHydrationWarning:!0,children:(0,n.jsx)(rQ,{navIdentitySnapshot:el,hookInitialIsSignedIn:ed,isAuthTransitioning:V})}),$[51]=ed,$[52]=V,$[53]=K,$[54]=el,$[55]=A):A=$[55],$[56]!==eo||$[57]!==eu||$[58]!==K||$[59]!==ev||$[60]!==eh||$[61]!==W||$[62]!==F||$[63]!==z||$[64]!==es||$[65]!==ec||$[66]!==eg?(L=K&&eo&&(0,n.jsx)(tB,{value:eh,onValueChange:em,children:(0,n.jsx)(t$,{children:(0,n.jsxs)(tH,{children:[(0,n.jsxs)(tW,{nativeButton:!1,render:(0,n.jsx)(tY.Link,{href:es}),onPointerDown:eg.onPointerDown,onPointerCancel:eg.onPointerCancel,onClick:eg.onClick,"aria-label":"Account",className:"flex items-center gap-2 rounded-full px-2 py-1.5",icon:null,children:[(0,n.jsx)(ei.CustomOrgSwitcherTrigger,{size:"size-6",showLabel:!0}),(0,n.jsx)(Q.ChevronDownIcon,{className:"h-3 w-3 transition duration-200 group-data-[popup-open]:rotate-180"})]}),(0,n.jsx)(tq,{children:(0,n.jsx)(ei.CustomOrgSwitcherContent,{onSignOut:()=>{z.capture(I.PostHogEvent.SignOut,{source:"desktop_nav"}),ec({redirectUrl:eu()})},onNavigate:()=>em(""),onManageProfile:()=>F(),onManageOrg:()=>W(),customItems:ev,signOutIcon:(0,n.jsx)(G,{className:"size-4"}),bottomSection:(0,n.jsx)(ep,{className:"w-full max-w-none m-0"})})})]})})}),$[56]=eo,$[57]=eu,$[58]=K,$[59]=ev,$[60]=eh,$[61]=W,$[62]=F,$[63]=z,$[64]=es,$[65]=ec,$[66]=eg,$[67]=L):L=$[67],$[68]!==eo||$[69]!==K?(D=K&&!eo&&(0,n.jsx)(rv,{source:"desktop_nav"}),$[68]=eo,$[69]=K,$[70]=D):D=$[70],$[71]!==A||$[72]!==L||$[73]!==D?(U=(0,n.jsxs)("div",{className:"flex shrink-0 justify-end",children:[A,L,D]}),$[71]=A,$[72]=L,$[73]=D,$[74]=U):U=$[74],$[75]!==T||$[76]!==U?(B=(0,n.jsxs)("div",{className:"@tw ml-auto hidden min-w-0 items-center pl-10 lg:flex lg:gap-1 text-xs",children:[T,U]}),$[75]=T,$[76]=U,$[77]=B):B=$[77],B}var r0=e.i(203661),r1=e.i(511696),r2=e.i(534390),r5=e.i(920248),r3=e.i(948992);let r4=i.forwardRef(function({title:e,titleId:t,...r},n){return i.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:n,"aria-labelledby":t},r),e?i.createElement("title",{id:t},e):null,i.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"m2.25 12 8.954-8.955c.44-.439 1.152-.439 1.591 0L21.75 12M4.5 9.75v10.125c0 .621.504 1.125 1.125 1.125H9.75v-4.875c0-.621.504-1.125 1.125-1.125h2.25c.621 0 1.125.504 1.125 1.125V21h4.125c.621 0 1.125-.504 1.125-1.125V9.75M8.25 21h8.25"}))});var r6=e.i(328103),r7=e.i(920240);function r9(){let e,t=(0,a.c)(1);return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=(0,n.jsxs)("div",{className:"relative flex w-4 items-center justify-center",children:[(0,n.jsx)("span",{className:(0,l.cn)("rounded-full","absolute h-px w-3 bg-current","transition-all","-translate-y-1","group-data-[popup-open]:w-2","group-data-[popup-open]:-translate-y-0.5")}),(0,n.jsx)("span",{className:(0,l.cn)("rounded-full","absolute h-px w-3 bg-current","transition-all","translate-y-0","group-data-[popup-open]:w-1.5","group-data-[popup-open]:-translate-x-0.5","group-data-[popup-open]:rotate-45")}),(0,n.jsx)("span",{className:(0,l.cn)("rounded-full","absolute h-px w-3 bg-current","transition-all","translate-y-1","group-data-[popup-open]:w-1.5","group-data-[popup-open]:translate-x-0.5","group-data-[popup-open]:translate-y-0","group-data-[popup-open]:-rotate-45")})]}),t[0]=e):e=t[0],e}function r8(e){let t,r=(0,a.c)(4),{navIdentitySnapshot:i,hookInitialIsSignedIn:o,isAuthTransitioning:s}=e;if(i){let e;return r[0]!==i?(e=(0,n.jsx)(rh,{...i,size:"size-7",showChevron:!0,showLabel:!0}),r[0]=i,r[1]=e):e=r[1],e}if(o||s){let e;return r[2]===Symbol.for("react.memo_cache_sentinel")?(e=(0,n.jsx)(p.Skeleton,{className:"h-9 w-10 rounded-full animate-pulse"}),r[2]=e):e=r[2],e}return r[3]===Symbol.for("react.memo_cache_sentinel")?(t=(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(rb,{className:"rounded-r-none"}),(0,n.jsx)(p.Skeleton,{className:"h-8 w-9 rounded-md rounded-l-none animate-none"})]}),r[3]=t):t=r[3],t}function ne(e){let t,r,i=(0,a.c)(7),{items:o,onSignOut:s,onNavigate:l,onManageProfile:c,onManageOrg:u}=e;return i[0]===Symbol.for("react.memo_cache_sentinel")?(t=(0,n.jsx)(G,{className:"size-4"}),i[0]=t):t=i[0],i[1]!==o||i[2]!==u||i[3]!==c||i[4]!==l||i[5]!==s?(r=(0,n.jsx)(ei.CustomOrgSwitcherContent,{onSignOut:s,onNavigate:l,onManageProfile:c,onManageOrg:u,customItems:o,signOutIcon:t,className:"w-full"}),i[1]=o,i[2]=u,i[3]=c,i[4]=l,i[5]=s,i[6]=r):r=i[6],r}function nt(e){let t,r,o,s,c,u,d,p,h,m,g,v,b,y,_,x,E,P,w,S,R,C,j,k,O,N,T,A,L,D,U,B,$,H,z,F,W,q,K,V,G,eo,es,el,ec,eu=(0,a.c)(104),{initialIsSignedIn:ed}=e,ef=(0,M.usePosthogClient)(),{isLoggedIn:eh,isReady:em,isAuthTransitioning:eg,clerkUser:ev,profileHref:eb,navIdentitySnapshot:ey,signOut:e_,pathname:ex,getSignOutRedirectUrl:eE,initialIsSignedIn:eP}=rJ(void 0!==ed&&ed),ew=(0,tJ.useWorkspaceCapabilityGate)(ea.WorkspaceCapability.Chatroom)===tQ.WorkspaceCapabilityGateState.Blocked;eu[0]===Symbol.for("react.memo_cache_sentinel")?(t=(0,n.jsx)(r4,{className:"size-4"}),eu[0]=t):t=eu[0],eu[1]!==ef?(r={key:"home",label:"Home",href:"/workspaces",icon:t,onClick:()=>ef.capture(I.PostHogEvent.ClickHomeButton,{source:"mobile_nav"})},eu[1]=ef,eu[2]=r):r=eu[2];let eS=r;eu[3]===Symbol.for("react.memo_cache_sentinel")?(o=(0,n.jsx)(r5.CubeIcon,{className:"size-4"}),eu[3]=o):o=eu[3],eu[4]!==ef?(s={key:"models",label:"Models",href:"/models",icon:o,onClick:()=>ef.capture(I.PostHogEvent.ClickModelsButton,{variants:I.PostHogElementVariants.NavigationMenuModels,source:"mobile_nav"})},eu[4]=ef,eu[5]=s):s=eu[5],eu[6]===Symbol.for("react.memo_cache_sentinel")?(c=(0,n.jsx)(Y.BeakerIcon,{className:"size-4"}),eu[6]=c):c=eu[6],eu[7]!==ef?(u={key:"benchmarks",label:"Benchmarks",href:"/benchmarks",icon:c,onClick:()=>ef.capture(I.PostHogEvent.ClickBenchmarksButton,{source:"mobile_nav"})},eu[7]=ef,eu[8]=u):u=eu[8],eu[9]!==ew||eu[10]!==ef?(d={key:"chat",label:"Chat",...ew?{render:nn}:{href:"/chat",icon:(0,n.jsx)(r2.ChatBubbleLeftIcon,{className:"size-4"}),onClick:()=>ef.capture(I.PostHogEvent.ClickChatButton,{variants:I.PostHogElementVariants.NavigationMenuChat,source:"mobile_nav"})}},eu[9]=ew,eu[10]=ef,eu[11]=d):d=eu[11],eu[12]===Symbol.for("react.memo_cache_sentinel")?(p=(0,n.jsx)(r7.TrophyIcon,{className:"size-4"}),eu[12]=p):p=eu[12],eu[13]!==ef?(h={key:"rankings",label:"Rankings",href:"/rankings",icon:p,onClick:()=>ef.capture(I.PostHogEvent.ClickRankingsButton,{source:"mobile_nav"})},eu[13]=ef,eu[14]=h):h=eu[14],eu[15]===Symbol.for("react.memo_cache_sentinel")?(m=(0,n.jsx)(r6.RectangleGroupIcon,{className:"size-4"}),eu[15]=m):m=eu[15],eu[16]!==ef?(g={key:"apps",label:"Apps",href:"/apps",icon:m,onClick:()=>ef.capture(I.PostHogEvent.ClickAppsButton,{source:"mobile_nav"})},eu[16]=ef,eu[17]=g):g=eu[17],eu[18]===Symbol.for("react.memo_cache_sentinel")?(v=(0,n.jsx)(r3.GlobeAltIcon,{className:"size-4"}),eu[18]=v):v=eu[18],eu[19]!==ef?(b={key:"ori",label:"Ori",href:"/ori",icon:v,onClick:()=>ef.capture(I.PostHogEvent.ClickOriMenuItem,{item:"overview",destination:rH.OriNavDestination.Overview,source:"mobile_nav"})},eu[19]=ef,eu[20]=b):b=eu[20],eu[21]===Symbol.for("react.memo_cache_sentinel")?(y=(0,n.jsx)(r1.BuildingOffice2Icon,{className:"size-4"}),eu[21]=y):y=eu[21],eu[22]!==ef?(_={key:"enterprise",label:"Enterprise",href:"/enterprise",icon:y,onClick:()=>ef.capture(I.PostHogEvent.ClickEnterpriseButton,{source:"mobile_nav"})},eu[22]=ef,eu[23]=_):_=eu[23],eu[24]!==ef?(x={key:"docs",label:"Docs",render:()=>(0,n.jsxs)(tY.Link,{href:"/docs/quickstart",onClick:()=>ef.capture(I.PostHogEvent.ClickDocsButton,{source:"mobile_nav"}),className:"flex w-full items-center gap-2.5 rounded-md px-2 py-1.5 text-left text-sm font-medium no-underline transition-colors hover:bg-card-hover text-muted-foreground hover:text-accent-foreground",children:[(0,n.jsx)("span",{className:"flex size-5 shrink-0 items-center justify-center",children:(0,n.jsx)(r0.BookOpenIcon,{className:"size-4"})}),"Docs"]})},eu[24]=ef,eu[25]=x):x=eu[25],eu[26]!==h||eu[27]!==g||eu[28]!==b||eu[29]!==_||eu[30]!==x||eu[31]!==s||eu[32]!==u||eu[33]!==d?(E=[s,u,d,h,g,b,_,x],eu[26]=h,eu[27]=g,eu[28]=b,eu[29]=_,eu[30]=x,eu[31]=s,eu[32]=u,eu[33]=d,eu[34]=E):E=eu[34];let eR=E;eu[35]===Symbol.for("react.memo_cache_sentinel")?(P=(0,n.jsx)(er.RectangleStackIcon,{className:"size-4"}),eu[35]=P):P=eu[35],eu[36]!==ef?(w={key:"workspaces",label:"Workspaces",href:"/workspaces",icon:P,onClick:()=>ef.capture(I.PostHogEvent.ClickWorkspacesButton,{source:"mobile_nav"})},eu[36]=ef,eu[37]=w):w=eu[37],eu[38]===Symbol.for("react.memo_cache_sentinel")?(S=(0,n.jsx)(en.UserCircleIcon,{className:"size-4"}),eu[38]=S):S=eu[38],eu[39]!==ef?(R=()=>ef.capture(I.PostHogEvent.ClickProfileButton,{source:"mobile_nav"}),eu[39]=ef,eu[40]=R):R=eu[40],eu[41]!==eb||eu[42]!==R?(C={key:"profile",label:"Profile",href:eb,icon:S,onClick:R},eu[41]=eb,eu[42]=R,eu[43]=C):C=eu[43],eu[44]===Symbol.for("react.memo_cache_sentinel")?(j=(0,n.jsx)(J.ChartBarIcon,{className:"size-4"}),eu[44]=j):j=eu[44],eu[45]!==ef?(k={key:"activity",label:"Activity",href:"/activity",icon:j,onClick:()=>ef.capture(I.PostHogEvent.ClickActivityButton,{source:"mobile_nav"})},eu[45]=ef,eu[46]=k):k=eu[46],eu[47]===Symbol.for("react.memo_cache_sentinel")?(O=(0,n.jsx)(et.ListBulletIcon,{className:"size-4"}),eu[47]=O):O=eu[47],eu[48]!==ef?(N={key:"logs",label:"Logs",href:"/logs",icon:O,onClick:()=>ef.capture(I.PostHogEvent.ClickLogsButton,{source:"mobile_nav"})},eu[48]=ef,eu[49]=N):N=eu[49],eu[50]===Symbol.for("react.memo_cache_sentinel")?(T=(0,n.jsx)(ee.CreditCardIcon,{className:"size-4"}),eu[50]=T):T=eu[50],eu[51]!==ef?(A={key:"credits",label:"Credits",href:"/settings/credits",icon:T,onClick:()=>ef.capture(I.PostHogEvent.ClickCreditsButton,{variants:I.PostHogElementVariants.NavigationMenuCredits})},eu[51]=ef,eu[52]=A):A=eu[52],eu[53]===Symbol.for("react.memo_cache_sentinel")?(L=(0,n.jsx)(Y.BeakerIcon,{className:"size-4"}),eu[53]=L):L=eu[53],eu[54]!==ef?(D={key:"labs",label:"Labs",href:"/labs",icon:L,onClick:()=>ef.capture(I.PostHogEvent.ClickLabsButton,{source:"mobile_nav"})},eu[54]=ef,eu[55]=D):D=eu[55],eu[56]===Symbol.for("react.memo_cache_sentinel")?(U=(0,n.jsx)(Z.Cog6ToothIcon,{className:"size-4"}),eu[56]=U):U=eu[56],eu[57]!==ef?(B={key:"settings",label:"Preferences",href:"/settings/preferences",icon:U,onClick:()=>ef.capture(I.PostHogEvent.ClickSettingsButton,{source:"mobile_nav"})},eu[57]=ef,eu[58]=B):B=eu[58],eu[59]!==w||eu[60]!==C||eu[61]!==k||eu[62]!==N||eu[63]!==A||eu[64]!==D||eu[65]!==B?($=[w,C,k,N,A,D,B],eu[59]=w,eu[60]=C,eu[61]=k,eu[62]=N,eu[63]=A,eu[64]=D,eu[65]=B,eu[66]=$):$=eu[66];let eC=$;eu[67]===Symbol.for("react.memo_cache_sentinel")?(H={key:"nav-divider",label:"",render:nr},eu[67]=H):H=eu[67],eu[68]!==eC||eu[69]!==eS||eu[70]!==eR?(z=[eS,...eR,H,...eC],eu[68]=eC,eu[69]=eS,eu[70]=eR,eu[71]=z):z=eu[71];let ej=z,{openUserProfile:ek,openOrganizationProfile:eO}=(0,X.useClerk)(),[eN,eT]=(0,i.useState)(""),eA=(0,f.useMediaLg)();eu[72]===Symbol.for("react.memo_cache_sentinel")?(F=()=>{eT("")},eu[72]=F):F=eu[72],eu[73]!==eA||eu[74]!==ex?(W=[ex,eA],eu[73]=eA,eu[74]=ex,eu[75]=W):W=eu[75],(0,i.useEffect)(F,W),eu[76]!==eE||eu[77]!==ef||eu[78]!==e_?(q=()=>{ef.capture(I.PostHogEvent.SignOut,{source:"mobile_nav"}),e_({redirectUrl:eE()})},eu[76]=eE,eu[77]=ef,eu[78]=e_,eu[79]=q):q=eu[79],eu[80]===Symbol.for("react.memo_cache_sentinel")?(K=()=>{eT("")},eu[80]=K):K=eu[80],eu[81]!==ek?(V=()=>{ek()},eu[81]=ek,eu[82]=V):V=eu[82],eu[83]!==eO?(G=()=>{eO()},eu[83]=eO,eu[84]=G):G=eu[84],eu[85]!==q||eu[86]!==V||eu[87]!==G?(eo={onSignOut:q,onNavigate:K,onManageProfile:V,onManageOrg:G},eu[85]=q,eu[86]=V,eu[87]=G,eu[88]=eo):eo=eu[88];let eI=eo;return eu[89]!==eP||eu[90]!==eg||eu[91]!==em||eu[92]!==ey?(es=!em&&(0,n.jsx)("div",{className:"flex","data-nav-identity-placeholder":!0,"data-nav-identity-size":"size-7","data-nav-identity-label":"true","data-nav-identity-chevron":"true",suppressHydrationWarning:!0,children:(0,n.jsx)(r8,{navIdentitySnapshot:ey,hookInitialIsSignedIn:eP,isAuthTransitioning:eg})}),eu[89]=eP,eu[90]=eg,eu[91]=em,eu[92]=ey,eu[93]=es):es=eu[93],eu[94]!==eI||eu[95]!==ev||eu[96]!==eh||eu[97]!==em||eu[98]!==eN||eu[99]!==ej?(el=em&&(0,n.jsxs)("div",{className:"flex",children:[!ev&&(0,n.jsx)(rv,{className:"rounded-r-none border-r-0",source:"mobile_nav"}),(0,n.jsx)(tB,{value:eN,onValueChange:eT,children:(0,n.jsx)(t$,{children:(0,n.jsxs)(tH,{children:[eh?(0,n.jsxs)(tW,{"aria-label":eN?"Close navigation menu":"Open navigation menu",icon:null,className:"flex items-center gap-2 rounded-full px-2 py-1.5",children:[(0,n.jsx)(ei.CustomOrgSwitcherTrigger,{size:"size-7",showLabel:!0}),(0,n.jsx)(Q.ChevronDownIcon,{className:"h-3 w-3 transition duration-200 group-data-[popup-open]:rotate-180"})]}):(0,n.jsx)(tW,{"aria-label":eN?"Close navigation menu":"Open navigation menu",icon:null,"data-accent-trigger":!0,className:(0,l.cn)("relative h-8 w-9 justify-center rounded-l-none px-0","bg-primary text-primary-foreground hover:bg-primary hover:text-primary-foreground focus:bg-primary focus:text-primary-foreground active:bg-primary data-[popup-open]:bg-primary data-[state=open]:bg-primary data-[active]:bg-primary"),children:(0,n.jsx)("span",{className:"absolute inset-0 flex items-center justify-center",children:(0,n.jsx)(r9,{})})}),(0,n.jsx)(tq,{children:(0,n.jsx)("div",{className:"flex flex-col gap-2 bg-background p-1 pb-1.5 pr-1.5",children:(0,n.jsxs)("div",{className:(0,l.cn)("flex flex-col gap-2",eh?"min-w-56":"w-48"),children:[!eh&&(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(rF,{href:"/models",prefetch:"viewport",event:I.PostHogEvent.ClickModelsButton,metadata:{variants:I.PostHogElementVariants.NavigationMenuModels,source:"mobile_nav"},isMenu:!0,children:"Models"}),(0,n.jsx)(rF,{href:"/benchmarks",isMenu:!0,event:I.PostHogEvent.ClickBenchmarksButton,metadata:{source:"mobile_nav"},children:"Benchmarks"}),(0,n.jsx)(rF,{href:"/chat",prefetch:!1,event:I.PostHogEvent.ClickChatButton,metadata:{variants:I.PostHogElementVariants.NavigationMenuChat,source:"mobile_nav"},isMenu:!0,children:"Chat"}),(0,n.jsx)(rF,{href:"/rankings",isMenu:!0,event:I.PostHogEvent.ClickRankingsButton,metadata:{source:"mobile_nav"},children:"Rankings"}),(0,n.jsx)(rF,{href:"/apps",isMenu:!0,event:I.PostHogEvent.ClickAppsButton,metadata:{source:"mobile_nav"},children:"Apps"}),(0,n.jsx)(rq,{source:"mobile_nav",isMenu:!0}),(0,n.jsx)(rF,{href:"/enterprise",isMenu:!0,event:I.PostHogEvent.ClickEnterpriseButton,metadata:{source:"mobile_nav"},children:"Enterprise"}),(0,n.jsx)(rF,{href:"/docs/quickstart",isMenu:!0,event:I.PostHogEvent.ClickDocsButton,metadata:{source:"mobile_nav"},children:"Docs"})]}),eh&&(0,n.jsx)(ne,{items:ej,...eI}),(0,n.jsx)("hr",{}),(0,n.jsx)(ep,{className:"w-full max-w-none m-0"})]})})})]})})})]}),eu[94]=eI,eu[95]=ev,eu[96]=eh,eu[97]=em,eu[98]=eN,eu[99]=ej,eu[100]=el):el=eu[100],eu[101]!==es||eu[102]!==el?(ec=(0,n.jsx)("div",{className:"flex justify-end gap-1",children:(0,n.jsxs)("div",{className:"flex justify-end",children:[es,el]})}),eu[101]=es,eu[102]=el,eu[103]=ec):ec=eu[103],ec}function nr(){return(0,n.jsx)("hr",{className:"my-1 border-muted"})}function nn(){return(0,n.jsx)(t5,{label:"Chat",icon:(0,n.jsx)(r2.ChatBubbleLeftIcon,{className:"size-4"})})}var na=e.i(850658),ni=e.i(415753),no=e.i(238071);function ns(){let e,t,r,n=(0,a.c)(10),o=(0,M.usePosthogClient)(),{isLoaded:s,isSignedIn:l,userId:c}=(0,na.useAuth)(),{isLoaded:u,user:d}=(0,ni.useUser)();n[0]!==s||n[1]!==l||n[2]!==u||n[3]!==d||n[4]!==c?(e=function({isAuthLoaded:e,isSignedIn:t,userId:r,isUserLoaded:n,user:a}){return e&&n?t?r&&a?.id===r?r:null:a?null:"anonymous":null}({isAuthLoaded:s,isSignedIn:l,userId:c,isUserLoaded:u,user:d}),n[0]=s,n[1]=l,n[2]=u,n[3]=d,n[4]=c,n[5]=e):e=n[5];let p=e;return n[6]!==p||n[7]!==o?(t=()=>{if(null===p)return;let e=window.setTimeout(()=>{let e,t=(0,tG.armPropertyName)(t6);if(null===(void 0===(e=document.cookie.split(";").map(e=>e.trim()).find(e=>e.startsWith(`${t7}=`)))?null:t8(e.slice(t7.length+1))))return void o.unregister(t);let r=t8(document.documentElement.getAttribute("data-nav-arm"))??tG.ExperimentArm.Control;o.register({[t]:r}),(0,no.claimSessionExposure)(t6,p,r)&&o.capture(I.PostHogEvent.ExperimentArmAssigned,{experiment:t6,arm:r})},0);return()=>window.clearTimeout(e)},r=[o,p],n[6]=p,n[7]=o,n[8]=t,n[9]=r):(t=n[8],r=n[9]),(0,i.useEffect)(t,r),null}var nl=e.i(507869);function nc(e){let t,r,i,o,s,c,u=(0,a.c)(11),{className:d}=e,p=(0,m.useCommandKStore)(np),f=(0,M.usePosthogClient)();return u[0]!==f||u[1]!==p?(t=()=>{w(),f.capture(I.PostHogEvent.CommandKOpen,{source:"navbar_search_box"}),p(!0)},u[0]=f,u[1]=p,u[2]=t):t=u[2],u[3]!==d?(r=(0,l.cn)("flex h-8 w-full items-center gap-2 rounded-md px-3 transition-colors","border border-input bg-input-bg text-muted-foreground hover:border-focus-border",d),u[3]=d,u[4]=r):r=u[4],u[5]===Symbol.for("react.memo_cache_sentinel")?(i=(0,n.jsx)(h.Search,{className:"size-4 shrink-0"}),o=(0,n.jsx)("span",{className:"flex-1 text-left text-sm text-current/70",children:"Search"}),u[5]=i,u[6]=o):(i=u[5],o=u[6]),u[7]===Symbol.for("react.memo_cache_sentinel")?(s=(0,n.jsxs)("span",{className:"flex shrink-0 items-center gap-0.5",children:[(0,n.jsx)(nl.Shortcut,{children:"⌘"}),(0,n.jsx)(nl.Shortcut,{children:"K"})]}),u[7]=s):s=u[7],u[8]!==t||u[9]!==r?(c=(0,n.jsxs)("button",{type:"button","aria-label":"Search",onMouseEnter:nd,onFocus:nu,onClick:t,className:r,children:[i,o,s]}),u[8]=t,u[9]=r,u[10]=c):c=u[10],c}function nu(){w()}function nd(){w()}function np(e){return e.setIsOpen}function nf(){let e,t=(0,a.c)(1);return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=(0,n.jsx)("div",{className:"w-60",children:(0,n.jsx)(nc,{})}),t[0]=e):e=t[0],e}var nh=e.i(295484);let nm={storageKey:nh.NAV_IDENTITY_SNAPSHOT_KEY,plans:nh.NAV_SUBSCRIPTION_PLANS,triggerClass:rt,imageClass:rr,fallbackClass:rn,labelClass:ra,planClass:ri,chevron:rc,planBadges:ru},ng=`(${(function(e){try{let t=window.localStorage.getItem(e.storageKey);if(!t)return;let r=JSON.parse(t);if(!r||"object"!=typeof r)return;let n=r.label,a=r.isOrg,i=r.imageUrl,o=r.subscriptionPlan;if("string"!=typeof n||0===n.length||"boolean"!=typeof a||null!==i&&"string"!=typeof i)return;if(null!==i){let e=new URL(i).protocol;if("http:"!==e&&"https:"!==e)return}if(null!==o&&("string"!=typeof o||!e.plans.includes(o)))return;let s=(e,t)=>{let r=document.createElement(e);return t&&(r.className=t),r},l=(e,t)=>{Object.keys(t).forEach(r=>{let n=t[r];"string"==typeof n&&e.setAttribute(r,n)})},c=e=>{let t="http://www.w3.org/2000/svg",r=document.createElementNS(t,"svg");return l(r,e.attributes),r.setAttribute("class",e.className),e.children.forEach(e=>{let n=document.createElementNS(t,e.tag);l(n,e.attributes),r.append(n)}),r};document.querySelectorAll("[data-nav-identity-placeholder]").forEach(t=>{t.replaceChildren((({size:t,showLabel:r,showChevron:l})=>{let u=s("div",e.triggerClass);if(u.setAttribute("aria-hidden","true"),u.dataset.navIdentityTrigger="true",i){let r=s("picture",`${e.imageClass} ${t}`),n=s("img");n.setAttribute("src",i),n.setAttribute("alt",""),n.className="h-full w-full object-cover",r.append(n),u.append(r)}else{let r,i,o=a?`text-primary-foreground ${r=["bg-chart-1","bg-chart-2","bg-chart-3","bg-chart-4","bg-chart-5","bg-chart-6","bg-chart-7","bg-chart-8","bg-chart-9","bg-chart-10","bg-chart-11","bg-chart-12","bg-chart-13","bg-chart-14","bg-chart-15","bg-chart-16","bg-chart-17","bg-chart-18","bg-chart-19","bg-chart-20"],i=0,Array.from(n).forEach(e=>{i=(e.codePointAt(0)||0)+((i<<5)-i)}),r[Math.abs(i)%r.length]||"bg-chart-1"}`:"bg-muted",l=s("div",`${e.fallbackClass} ${t} ${o}`);l.textContent=a?n.split(/\s+/).map(e=>e.charAt(0)).join("").toUpperCase().slice(0,2):n.charAt(0).toUpperCase(),u.append(l)}if(r){let t=s("span",e.labelClass);t.textContent=n,u.append(t);let r=o?e.planBadges[o]:void 0;if(r){let t=s("span",e.planClass);t.setAttribute("role","img"),t.setAttribute("aria-label",`${r.label} plan`),t.append(c(r.icon)),u.append(t)}}return l&&u.append(c(e.chevron)),u})({size:t.dataset.navIdentitySize||"size-6",showLabel:"true"===t.dataset.navIdentityLabel,showChevron:"true"===t.dataset.navIdentityChevron}))})}catch{}}).toString()})(${JSON.stringify(nm)});`;function nv(){let e,t=(0,a.c)(1);return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=(0,n.jsx)("script",{dangerouslySetInnerHTML:{__html:ng}}),t[0]=e):e=t[0],e}var nb=e.i(323866);function ny(){let e=document.querySelector(`#${nb.MAINTENANCE_BANNER_PORTAL_ID}`);if(!e)return;let t=()=>{document.documentElement.style.setProperty(nb.NAVBAR_TOP_CSS_VARIABLE,`${e.offsetHeight}px`)};t();let r=new ResizeObserver(t);r.observe(e);let n=new MutationObserver(t);return n.observe(e,{childList:!0,subtree:!0}),()=>{r.disconnect(),n.disconnect(),document.documentElement.style.removeProperty(nb.NAVBAR_TOP_CSS_VARIABLE)}}e.s(["Navbar",0,e=>{let t,r,u,p,f,h,m,g,v,b,y,_,x,E,P,w,S,C,j,k=(0,a.c)(30),{initialIsSignedIn:O}=e,N=void 0!==O&&O,{isOpen:T,hasSidebar:A,toggle:I}=(0,c.useMobileSidebar)();(j=(0,a.c)(1))[0]===Symbol.for("react.memo_cache_sentinel")?(C=[],j[0]=C):C=j[0],(0,i.useEffect)(ny,C),k[0]===Symbol.for("react.memo_cache_sentinel")?(t=(0,l.cn)("h-14","bg-background","w-full","border-b border-border"),r={viewTransitionName:"app-navbar"},k[0]=t,k[1]=r):(t=k[0],r=k[1]),k[2]===Symbol.for("react.memo_cache_sentinel")?(u=(0,n.jsx)("a",{href:"#skip",className:"sr-only absolute left-0 top-0 bg-background text-primary focus:not-sr-only",children:"Skip to content"}),k[2]=u):u=k[2],k[3]!==A||k[4]!==T||k[5]!==I?(p=A&&(0,n.jsx)("button",{type:"button","aria-label":T?"Close navigation menu":"Open navigation menu",onClick:I,className:"@tw -ml-2 mr-2 flex items-center justify-center rounded-md p-1.5 text-foreground hover:bg-card-hover lg:hidden",children:T?(0,n.jsx)(s.XMarkIcon,{className:"size-5"}):(0,n.jsx)(o,{className:"size-5"})}),k[3]=A,k[4]=T,k[5]=I,k[6]=p):p=k[6];let L=!A&&"-ml-2 lg:ml-0";return k[7]!==L?(f=(0,l.cn)("shrink-0",L),k[7]=L,k[8]=f):f=k[8],k[9]===Symbol.for("react.memo_cache_sentinel")?(h=(0,n.jsx)(d,{}),k[9]=h):h=k[9],k[10]!==f?(m=(0,n.jsx)(rz,{href:"/",linkClassName:f,children:h}),k[10]=f,k[11]=m):m=k[11],k[12]===Symbol.for("react.memo_cache_sentinel")?(g=(0,n.jsx)("div",{className:"@tw ml-12 hidden shrink-0 lg:block xl:ml-20",children:(0,n.jsx)(nf,{})}),k[12]=g):g=k[12],k[13]!==N?(v=(0,n.jsx)(rZ,{initialIsSignedIn:N}),k[13]=N,k[14]=v):v=k[14],k[15]===Symbol.for("react.memo_cache_sentinel")?(b=(0,n.jsx)(z,{}),k[15]=b):b=k[15],k[16]!==N?(y=(0,n.jsxs)("div",{className:"@tw -mr-2 ml-auto flex items-center gap-1 lg:hidden",children:[b,(0,n.jsx)(nt,{initialIsSignedIn:N})]}),k[16]=N,k[17]=y):y=k[17],k[18]!==v||k[19]!==y||k[20]!==p||k[21]!==m?(_=(0,n.jsxs)("div",{className:"relative flex w-full items-center text-sm md:text-base",children:[p,m,g,v,y]}),k[18]=v,k[19]=y,k[20]=p,k[21]=m,k[22]=_):_=k[22],k[23]===Symbol.for("react.memo_cache_sentinel")?(x=(0,n.jsx)(R,{}),k[23]=x):x=k[23],k[24]!==_?(E=(0,n.jsx)("nav",{id:"main-nav",className:t,style:r,children:(0,n.jsxs)("div",{className:"mx-auto flex h-full w-full items-center px-4 lg:px-6",children:[u,_,x]})}),k[24]=_,k[25]=E):E=k[25],k[26]===Symbol.for("react.memo_cache_sentinel")?(P=(0,n.jsx)(nv,{}),w=(0,n.jsx)(ns,{}),k[26]=P,k[27]=w):(P=k[26],w=k[27]),k[28]!==E?(S=(0,n.jsxs)(n.Fragment,{children:[E,P,w]}),k[28]=E,k[29]=S):S=k[29],S}],500927)},832970,e=>{"use strict";var t=e.i(222666),r=e.i(505962),n=e.i(779100),a=e.i(639580);e.i(270401);var i=e.i(462517);e.s(["WebLocaleNavigationProvider",0,function(e){let o,s,l=(0,r.c)(5),{children:c}=e,u=(0,n.useLocale)();l[0]!==u?(o=e=>(0,i.localizeHref)(e,u),l[0]=u,l[1]=o):o=l[1];let d=o;return l[2]!==c||l[3]!==d?(s=(0,t.jsx)(a.HrefLocalizationProvider,{transformHref:d,children:c}),l[2]=c,l[3]=d,l[4]=s):s=l[4],s}])}]); //# sourceMappingURL=0slhpwvwkid_b.js.map //# chunkId=01a0a063-3638-7010-87e3-2447a9a49ed5