1import{r as f,u as C,b as M,j as c,e as K,B,$ as S,w as Q,a as F,C as k,M as G,D as $,S as z,G as W,O as Y,H as V}from"./chunk-OIYGIGL5-gwPc8tBz.js";import{o as X,Q as J}from"./trpc-tanstack-CcrFfedX.js";import{H as Z}from"./HydrationBoundary-DibUe9ri.js";import{d as x,a as R,g as O,e as ee,c as te,b as re,r as ne,h as oe,i as se,D as ae}from"./misc-abrRjE04.js";import{u as ie,C as ce}from"./client-only-DX6BhWFv.js";import{G as ue}from"./error-boundary-wmm73Qsd.js";import{D as H}from"./domain-assets-cH-u7Trx.js";import{G as y}from"./module-DCWKsDGT.js";import{d as le}from"./bundle-mjs-BWt8Cp2A.js";var fe=function(){return null};function A(e,t,r){return o=>{if(!(t.length===0?!0:t.some(s=>o.get(s)!==e.get(s))))return x("[nuqs `%s`] no change, returning previous",t.join(","),o),o;const i=E(e,t,r);return x("[nuqs `%s`] subbed search params change\n from %O\n to %O",t.join(","),o,i),i}}function E(e,t,r){if(t.length===0)return e;const o=r?new URLSearchParams(e):e;for(const n of e.keys())t.includes(n)||o.delete(n);return o}let P=0;function de(e=1){P=e}function pe(){P=Math.max(0,P-1),!(P>0)&&N()}function N(){x("[nuqs] Aborting queues"),R.abortAll(),O.abort().forEach(t=>R.queuedQuerySync.emit(t))}const j="__nuqs__";function he(e){if(e instanceof URL)return e.searchParams;if(e.startsWith("?"))return new URLSearchParams(e);try{return new URL(e,location.origin).searchParams}catch{return new URLSearchParams(e)}}function me(e){return typeof history>"u"?!1:history.nuqs?.version&&history.nuqs.version!=="0.0.0-inject-version-here"?(console.error(ee(409),history.nuqs.version,"0.0.0-inject-version-here",e),!1):!history.nuqs?.adapters?.includes(e)}function ye(e){history.nuqs=history.nuqs??{version:"0.0.0-inject-version-here",adapters:[]},history.nuqs.adapters.push(e)}function ve(e,t){if(!me(t))return;let r=typeof location=="object"?location.search:"";e.on("update",s=>{const a=s.toString();r=a.length?"?"+a:""}),window.addEventListener("popstate",()=>{r=location.search,N()}),x("[nuqs %s] Patching history (%s adapter)","0.0.0-inject-version-here",t);function o(s){pe();try{if(new URL(s,location.origin).search===r)return}catch{}try{e.emit("update",he(s))}catch(a){console.error(a)}}const n=history.pushState,i=history.replaceState;history.pushState=function(a,u,l){n.call(history,a,"",l),l&&u!==j&&o(l)},history.replaceState=function(a,u,l){i.call(history,a,"",l),l&&u!==j&&o(l)},ye(t)}function ge({adapter:e,useNavigate:t,useSearchParams:r}){const o=re(),n=e!=="react-router-v6";function i(a){const u=f.useRef(!1);u.current&&(u.current=!1,O.reset());const l=t(),p=s(a),d=f.useCallback((h,m)=>{f.startTransition(()=>{o.emit("update",h)});const v=new URL(location.href);v.search=ne(h),x(`[nuqs ${e}] Updating url: %s`,v);const g=m.history==="push"?history.pushState:history.replaceState;de(m.shallow?1:2),g.call(history,history.state,j,v),m.shallow===!1&&l({hash:v.hash,search:v.search},{replace:!0,preventScrollReset:!0,state:history.state?.usr}),m.scroll&&window.scrollTo(0,0),u.current=n},[l]);return{searchParams:p,updateUrl:d,autoResetQueueOnUpdate:!1}}function s(a=[]){const[u]=r(typeof location>"u"?new URLSearchParams:new URLSearchParams(location.search)),[l,p]=f.useState(()=>typeof location>"u"?E(u,a,!0):E(new URLSearchParams(location.search),a,!1));return f.useEffect(()=>{function d(){p(A(new URLSearchParams(location.search),a,!1))}function h(m){p(A(m,a,!0))}return o.on("update",h),window.addEventListener("popstate",d),()=>{o.off("update",h),window.removeEventListener("popstate",d)}},[a.join("&")]),l}return ve(o,e),{NuqsAdapter:te(i),useOptimisticSearchParams:s}}const Se=ge({adapter:"react-router-v7",useNavigate:C,useSearchParams:M}),xe=Se.NuqsAdapter;function Pe(){let e=we();return c.jsx(c.Fragment,{children:e.map(t=>c.jsx(Ee,{...t},t.src))})}function we(){let e=K(),t=B();return f.useMemo(()=>{let r=t.flatMap((n,i,s)=>{if(!n.handle)return[];if(n.handle===null)return[];if(typeof n.handle!="object")return[];if(!("scripts"in n.handle))return[];let a=n.handle.scripts;if(Array.isArray(a))return a;if(typeof a!="function")return[];let u=a({id:n.id,data:n.data,params:n.params,location:e,parentsData:s.slice(0,i).map(l=>l.data),matches:s});return Array.isArray(u)?u:[]}),o=new Map;for(let n of r)o.set(n.src,n);return[...o.values()]},[t,e])}function Ee({src:e,preload:t=!1,async:r=!0,defer:o=!0,crossOrigin:n,integrity:i,type:s,referrerPolicy:a,noModule:u,n
1once:l,id:p}){let d=ie(),h=f.useRef(d);if(f.useEffect(()=>{if(!h.current&&d)return;let g=document.createElement("script");g.src=e;let D={async:r,defer:o,crossOrigin:n,integrity:i,type:s,referrerPolicy:a,noModule:u,nonce:l,id:p};for(let[T,_]of Object.entries(D))_&&g.setAttribute(T,_.toString());return document.body.appendChild(g),()=>g.remove()},[r,n,o,i,d,u,l,a,e,s,p]),h.current&&d)return null;let m=u?"modulepreload":"preload",v=u?void 0:"script";return c.jsxs(c.Fragment,{children:[t&&c.jsx("link",{rel:m,href:e,as:v,crossOrigin:n,integrity:i,referrerPolicy:a}),c.jsx("script",{id:p,src:e,defer:o,async:r,type:s,noModule:u,nonce:l,crossOrigin:n,integrity:i,referrerPolicy:a})]})}const je=f.createContext({});function be({children:e,...t}){return c.jsx(je.Provider,{value:t,children:e})}const L="/assets/fonts-CA3wHuoL.css",_e="/assets/global-DZXVaOBe.css",U=f.createContext("");U.Provider;const Re=()=>f.useContext(U);var q=f.createContext({client:y,bootstrap:void 0});function I(e,t,r){if(r===void 0&&(r=new WeakMap),e===t)return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;if(r.has(e)&&r.get(e)===t)return!0;r.set(e,t);var o=Object.keys(e),n=Object.keys(t);if(o.length!==n.length)return!1;for(var i=0,s=o;i<s.length;i++){var a=s[i];if(!n.includes(a)||!I(e[a],t[a],r))return!1}return!0}function He(e){var t,r,o=e.children,n=e.client,i=e.apiKey,s=e.options,a=f.useRef(null),u=f.useMemo(function(){return n?(i&&console.warn("[PostHog.js] You have provided both `client` and `apiKey` to `PostHogProvider`. `apiKey` will be ignored in favour of `client`."),s&&console.warn("[PostHog.js] You have provided both `client` and `options` to `PostHogProvider`. `options` will be ignored in favour of `client`."),n):i?y:(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."),y)},[n,i,JSON.stringify(s)]);return f.useEffect(function(){if(!n){var l=a.current;l?(i!==l.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."),s&&!I(s,l.options)&&y.set_config(s),a.current={apiKey:i,options:s??{}}):(y.__loaded&&console.warn("[PostHog.js] `posthog` was already loaded elsewhere. This may cause issues."),y.init(i,s),a.current={apiKey:i,options:s??{}})}},[n,i,JSON.stringify(s)]),S.createElement(q.Provider,{value:{client:u,bootstrap:(t=s?.bootstrap)!==null&&t!==void 0?t:(r=n?.config)===null||r===void 0?void 0:r.bootstrap}},o)}var w=function(e){return typeof e=="function"},b=function(e,t){return b=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var n in o)Object.prototype.hasOwnProperty.call(o,n)&&(r[n]=o[n])},b(e,t)};function Ae(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");b(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}var Le={componentStack:null,exceptionEvent:null,error:null},Ce={INVALID_FALLBACK:"[PostHog.js][PostHogErrorBoundary] Invalid fallback prop, provide a valid React element or a function that returns a valid React element."};(function(e){Ae(t,e);function t(r){var o=e.call(this,r)||this;return o.state=Le,o}return t.prototype.componentDidCatch=function(r,o){var n=this.props.additionalProperties,i;w(n)?i=n(r):typeof n=="object"&&(i=n);var s=this.context.client,a=s.captureException(r,i),u=o.componentStack;this.setState({error:r,componentStack:u??null,exceptionEvent:a})},t.prototype.render=function(){var r=this.props,o=r.children,n=r.fallback,i=this.state;if(i.componentStack==null)return w(o)?o():o;var s=w(n)?S.createElement(n,{error:i.error,componentStack:i.componentStack,exceptionEvent:i.exceptionEvent}):n;return S.isValidElement(s)?s:(console.warn(Ce.INVALID_FALLBACK),S.createElement(S.Fragment,null))},t.contextType=q,t})(S.Component);function ke({children:e}){const[t,r]=f.useState(!1);return f.useEffect(()=>{y.init("phc_Yi5L7XXU9OtbKK52zdOqx90YdIwFyrk9cUojkHRVkSr",{api_host:"https://us.i.posthog.com",defaults:"2025-05-24",autocapture:!1,disable_session_recording:!0,advanced_disable_feature_flags:!0,disable_surveys:!0}),r(!0)},[]),t?c.jsx(He,{client:y,children:e}):c.jsx(c.Fragment,{children:e})}function Oe(e){const t=V(e);return e.startsWith("https://")||e.startsWith("http://")||e.startsWith("mailto:")?e:t}const $e=()=>[{rel:"preload",href:L,as:"style"},{rel:"stylesheet",href:L},{rel:"stylesheet",href:_e}
1].filter(Boolean),ze=({data:e})=>{const t=e?.domainConfig,r=t?H[t.domainKey]:H.framericons;return[{name:"description",content:t?.description||"Premium icon sets for designers"},{tagName:"link",rel:"icon",href:r.faviconIco,sizes:"48x48"},{tagName:"link",rel:"icon",type:"image/svg+xml",href:r.favicon},{tagName:"link",rel:"apple-touch-icon",href:r.appleTouchIcon}]};function We(){return!1}function Ne({children:e,nonce:t,env:r={},darkMode:o}){const n=ENV.ALLOW_INDEXING!=="false";return c.jsxs("html",{lang:"en",className:oe(o==="true"?"dark-mode":""),children:[c.jsxs("head",{children:[c.jsx(G,{}),c.jsx("meta",{charSet:"utf-8"}),c.jsx("meta",{name:"viewport",content:"width=device-width,initial-scale=1"}),n?null:c.jsx("meta",{name:"robots",content:"noindex, nofollow"}),c.jsx($,{}),c.jsx(Pe,{})]}),c.jsxs("body",{className:"bg-bg-primary text-text-primary min-h-screen",children:[c.jsx("div",{className:"bg-bg-primary relative flex min-h-screen flex-col",children:e}),c.jsx("script",{nonce:t,dangerouslySetInnerHTML:{__html:`window.ENV = ${JSON.stringify(r)}`}}),c.jsx(z,{nonce:t}),c.jsx(W,{nonce:t})]})]})}function Ye({children:e}){const t=k(),r=Re();return c.jsx(Ne,{nonce:r,env:t?.ENV,darkMode:t?.darkMode,children:e})}function Ue(){const e=C();return c.jsx(le,{navigate:e,useHref:Oe,children:c.jsx(Y,{})})}function qe(){const e=k(),[t]=f.useState(X);return c.jsx(ke,{children:c.jsxs(J,{client:t,children:[c.jsx(Z,{state:e?.dehydratedState,children:c.jsx(xe,{defaultOptions:{shallow:!1,scroll:!1,clearOnDefault:!0,limitUrlUpdates:se(ae)},children:c.jsx(be,{...e?.honeyProps??{},children:c.jsx(Ue,{})})})}),c.jsx(ce,{children:()=>c.jsx(fe,{})})]})})}const Ve=Q(qe),Xe=F(ue),Je={scripts:e=>e?.domainConfig?.domainKey==="notionicons"?[{src:"https://analytics.ahrefs.com/analytics.js","data-key":"/3zM/TaSliQU8w/oZ+DGHg",async:!0}]:[]};export{Xe as ErrorBoundary,Ye as Layout,Ve as default,Je as handle,$e as links,ze as meta,We as shouldRevalidate}; 2//# sourceMappingURL=root-Bu3UhGLf.js.map
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.