1import{a as wo,p as sn,d as Z,e as It,g as Be,n as Mt,h as Lt,k as an,t as bo,l as Ve,m as So,o as Co,q as cn,u as $n,r as l,v as Un,x as Eo,c as Ro,j as c,y as Qt,R as No,_ as de,z as zn,A as Po,B as ln,D as To,E as mt,P as un,F as gt,G as Kn,H as Oo,I as vt,J as xt,w as Ao,b as jo,K as Io,S as Mo,M as _e,N as dn,L as Lo,Q as ko}from"./index-wqhgf377.js";import{N as Do,F as _o}from"./Footer-CKgT26O2.js";import{c as V,u as Q,a as Fo,C as yt,B as wt}from"./teknicks-logo-DyJfUO86.js";import{S as bt,X as fn}from"./Section-B1bY58QZ.js";import{P as $,c as z,d as Bo,u as J,a as Qn,b as Wo,e as hn,f as Yt,g as Ho}from"./index-BG1MoOrz.js";import{C as rt}from"./chevron-down-Q4rMssm-.js";import{C as Vo}from"./check-DDZrE_ST.js";import{C as $o,a as Uo}from"./clock-BmIYQFwQ.js";import{C as zo}from"./CTABand-B2z9U4ri.js";import{J as Ko}from"./JsonLd-DLYmz6hJ.js";import{S as kt}from"./star-vRfRfUNy.js";import{A as Qo}from"./arrow-right-BlLUOIc3.js";var Yo=class extends wo{constructor(e,t){super(),this.options=t,this.#n=e,this.#o=null,this.#r=sn(),this.bindMethods(),this.setOptions(t)}#n;#e=void 0;#p=void 0;#t=void 0;#i;#u;#r;#o;#m;#d;#f;#a;#c;#s;#h=new Set;bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(this.#e.addObserver(this),pn(this.#e,this.options)?this.#l():this.updateResult(),this.#y())}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return Dt(this.#e,this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return Dt(this.#e,this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,this.#w(),this.#b(),this.#e.removeObserver(this)}setOptions(e){const t=this.options,n=this.#e;if(this.options=this.#n.defaultQueryOptions(e),this.options.enabled!==void 0&&typeof this.options.enabled!="boolean"&&typeof this.options.enabled!="function"&&typeof Z(this.options.enabled,this.#e)!="boolean")throw new Error("Expected enabled to be a boolean or a callback that returns a boolean");this.#S(),this.#e.setOptions(this.options),t._defaulted&&!It(this.options,t)&&this.#n.getQueryCache().notify({type:"observerOptionsUpdated",query:this.#e,observer:this});const r=this.hasListeners();r&&mn(this.#e,n,this.options,t)&&this.#l(),this.updateResult(),r&&(this.#e!==n||Z(this.options.enabled,this.#e)!==Z(t.enabled,this.#e)||Be(this.options.staleTime,this.#e)!==Be(t.staleTime,this.#e))&&this.#g();const o=this.#v();r&&(this.#e!==n||Z(this.options.enabled,this.#e)!==Z(t.enabled,this.#e)||o!==this.#s)&&this.#x(o)}getOptimisticResult(e){const t=this.#n.getQueryCache().build(this.#n,e),n=this.createResult(t,e);return qo(this,n)&&(this.#t=n,this.#u=this.options,this.#i=this.#e.state),n}getCurrentResult(){return this.#t}trackResult(e,t){return new Proxy(e,{get:(n,r)=>(this.trackProp(r),t?.(r),r==="promise"&&(this.trackProp("data"),!this.options.experimental_prefetchInRender&&this.#r.status==="pending"&&this.#r.reject(new Error("experimental_prefetchInRender feature flag is not enabled"))),Reflect.get(n,r))})}trackProp(e){this.#h.add(e)}getCurrentQuery(){return this.#e}refetch({...e}={}){return this.fetch({...e})}fetchOptimistic(e){const t=this.#n.defaultQueryOptions(e),n=this.#n.getQueryCache().build(this.#n,t);return n.fetch().then(()=>this.createResult(n,t))}fetch(e){return this.#l({...e,cancelRefetch:e.cancelRefetch??!0}).then(()=>(this.updateResult(),this.#t))}#l(e){this.#S();let t=this.#e.fetch(this.options,e);return e?.throwOnError||(t=t.catch(Mt)),t}#g(){this.#w();const e=Be(this.options.staleTime,this.#e);if(Lt.isServer()||this.#t.isStale||!an(e))return;const n=bo(this.#t.dataUpdatedAt,e)+1;this.#a=Ve.setTimeout(()=>{this.#t.isStale||this.updateResult()},n)}#v(){return(typeof this.options.refetchInterval=="function"?this.options.refetchInterval(this.#e):this.options.refetchInterval)??!1}#x(e){this.#b(),this.#s=e,!(Lt.isServer()||Z(this.options.enabled,this.#e)===!1||!an(this.#s)||this.#s===0)&&(this.#c=Ve.setInterval(()=>{(this.options.refetchIntervalInBackground||So.isFocused())&&this.#l()},this.#s))}#y(){this.#g(),this.#x(this.#v())}#w(){this.#a!==void 0&&(Ve.clearTimeout(this.#a),this.#a=void 0)}#b(){this.#c!==void 0&&(Ve.clearInterval(this.#c),this.#c=void 0)}createResult(e,t){const n=this.#e,r=this.options,o=this.#t,i=this.#i,s=this.#u,d=e!==n?e.state:this.#p,{state:u}=e;let h={...u},p=!1,m;if(t._optimisticResults){const O=this.hasListeners(),v=!O&&pn(e,t),C=O&&mn(e,n,t,r);(v||C)&&(h={...h,...Co(u.data,e.options)}),t._optimisticResults==="isRestoring"&&(h.fetchStatus="idle")}let{error:g,errorUpdatedAt:y,status:f}=h;m=h.data;let x=!1;if(t.placeholderData!==void 0&&m===void 0&&f==="pending"){let O;o?.isPlaceholderData&&t.placeholderData===s?.placeholderData?(O=o.data,x=!0):O=typeof t.placeholderData=="function"?t.placeholderData(this.#f?.state.data,this.#f):t.placeholderData,O!==void 0&&(f="success",m=cn(o?.data,O,t),p=!0)}if(t.select&&m!==void 0&&!x)if(o&&m===i?.data&&t.select===this.#m)m=this.#d;
1else try{this.#m=t.select,m=t.select(m),m=cn(o?.data,m,t),this.#d=m,this.#o=null}catch(O){this.#o=O}this.#o&&(g=this.#o,m=this.#d,y=Date.now(),f="error");const b=h.fetchStatus==="fetching",w=f==="pending",S=f==="error",E=w&&b,N=m!==void 0,R={status:f,fetchStatus:h.fetchStatus,isPending:w,isSuccess:f==="success",isError:S,isInitialLoading:E,isLoading:E,data:m,dataUpdatedAt:h.dataUpdatedAt,error:g,errorUpdatedAt:y,failureCount:h.fetchFailureCount,failureReason:h.fetchFailureReason,errorUpdateCount:h.errorUpdateCount,isFetched:e.isFetched(),isFetchedAfterMount:h.dataUpdateCount>d.dataUpdateCount||h.errorUpdateCount>d.errorUpdateCount,isFetching:b,isRefetching:b&&!w,isLoadingError:S&&!N,isPaused:h.fetchStatus==="paused",isPlaceholderData:p,isRefetchError:S&&N,isStale:Xt(e,t),refetch:this.refetch,promise:this.#r,isEnabled:Z(t.enabled,e)!==!1};if(this.options.experimental_prefetchInRender){const O=R.data!==void 0,v=R.status==="error"&&!O,C=j=>{v?j.reject(R.error):O&&j.resolve(R.data)},P=()=>{const j=this.#r=R.promise=sn();C(j)},A=this.#r;switch(A.status){case"pending":e.queryHash===n.queryHash&&C(A);break;case"fulfilled":(v||R.data!==A.value)&&P();break;case"rejected":(!v||R.error!==A.reason)&&P();break}}return R}updateResult(){const e=this.#t,t=this.createResult(this.#e,this.options);if(this.#i=this.#e.state,this.#u=this.options,this.#i.data!==void 0&&(this.#f=this.#e),It(t,e))return;this.#t=t;const n=()=>
1{if(!e)return!0;const{notifyOnChangeProps:r}=this.options,o=typeof r=="function"?r():r;if(o==="all"||!o&&!this.#h.size)return!0;const i=new Set(o??this.#h);return this.options.throwOnError&&i.add("error"),Object.keys(this.#t).some(s=>{const a=s;return this.#t[a]!==e[a]&&i.has(a)})};this.#C({listeners:n()})}#S(){const e=this.#n.getQueryCache().build(this.#n,this.options);if(e===this.#e)return;const t=this.#e;this.#e=e,this.#p=e.state,this.hasListeners()&&(t?.removeObserver(this),e.addObserver(this))}onQueryUpdate(){this.updateResult(),this.hasListeners()&&this.#y()}#C(e){$n.batch(()=>{e.listeners&&this.listeners.forEach(t=>{t(this.#t)}),this.#n.getQueryCache().notify({query:this.#e,type:"observerResultsUpdated"})})}};function Xo(e,t){return Z(t.enabled,e)!==!1&&e.state.data===void 0&&!(e.state.status==="error"&&Z(t.retryOnMount,e)===!1)}function pn(e,t){return Xo(e,t)||e.state.data!==void 0&&Dt(e,t,t.refetchOnMount)}function Dt(e,t,n){if(Z(t.enabled,e)!==!1&&Be(t.staleTime,e)!=="static"){const r=typeof n=="function"?n(e):n;return r==="always"||r!==!1&&Xt(e,t)}return!1}function mn(e,t,n,r){return(e!==t||Z(r.enabled,e)===!1)&&(!n.suspense||e.state.status!=="error")&&Xt(e,n)}function Xt(e,t){return Z(t.enabled,e)!==!1&&e.isStaleByTime(Be(t.staleTime,e))}function qo(e,t){return!It(e.getCurrentResult(),t)}var Yn=l.createContext(!1),Go=()=>l.useContext(Yn);Yn.Provider;function Zo(){let e=!1;return{clearReset:()=>{e=!1},reset:()=>{e=!0},isReset:()=>e}}var Jo=l.createContext(Zo()),es=()=>l.useContext(Jo),ts=(e,t,n)=>{const r=n?.state.error&&typeof e.throwOnError=="function"?Un(e.throwOnError,[n.state.error,n]):e.throwOnError;(e.suspense||e.experimental_prefetchInRender||r)&&(t.isReset()||(e.retryOnMount=!1))},ns=e=>{l.useEffect(()=>{e.clearReset()},[e])},rs=({result:e,errorResetBoundary:t,throwOnError:n,query:r,suspense:o})=>e.isError&&!t.isReset()&&!e.isFetching&&r&&(o&&e.data===void 0||Un(n,[e.error,r])),os=e=>{if(e.suspense){const n=o=>o==="static"?o:Math.max(o??1e3,1e3),r=e.staleTime;e.staleTime=typeof r=="function"?(...o)=>n(r(...o)):n(r),typeof e.gcTime=="number"&&(e.gcTime=Math.max(e.gcTime,1e3))}},ss=(e,t)=>e.isLoading&&e.isFetching&&!t,is=(e,t)=>e?.suspense&&t.isPending,gn=(e,t,n)=>t.fetchOptimistic(e).catch(()=>{n.clearReset()});function as(e,t,n){const r=Go(),o=es(),i=Eo(),s=i.defaultQueryOptions(e);i.getDefaultOptions().queries?._experimental_beforeQuery?.(s);const a=i.getQueryCache().get(s.queryHash);s._optimisticResults=r?"isRestoring":"optimistic",os(s),ts(s,o,a),ns(o);const d=!i.getQueryCache().get(s.queryHash),[u]=l.useState(()=>new t(i,s)),h=u.getOptimisticResult(s),p=!r&&e.subscribed!==!1;if(l.useSyncExternalStore(l.useCallback(m=>{const g=p?u.subscribe($n.batchCalls(m)):Mt;return u.updateResult(),g},[u,p]),()=>u.getCurrentResult(),()=>u.getCurrentResult()),l.useEffect(()=>{u.setOptions(s)},[s,u]),is(s,h))throw gn(s,u,o);if(rs({result:h,errorResetBoundary:o,throwOnError:s.throwOnError,query:a,suspense:s.suspense}))throw h.error;return i.getDefaultOptions().queries?._experimental_afterQuery?.(s,h),s.experimental_prefetchInRender&&!Lt.isServer()&&ss(h,r)&&(d?gn(s,u,o):a?.promise)?.catch(Mt).finally(()=>{u.updateResult()}),s.notifyOnChangeProps?h:u.trackResult(h)}function cs(e,t){return as(e,Yo)}const ls=[["path",{d:"M10 5H3",key:"1qgfaw"}],["path",{d:"M12 19H3",key:"yhmn1j"}],["path",{d:"M14 3v4",key:"1sua03"}],["path",{d:"M16 17v4",key:"1q0r14"}],["path",{d:"M21 12h-9",key:"1o4lsq"}],["path",{d:"M21 19h-5",key:"1rlt1p"}],["path",{d:"M21 5h-7",key:"1oszz2"}],["path",{d:"M8 10v4",key:"tgpxqk"}],["path",{d:"M8 12H3",key:"a7s4jb"}]],us=Ro("sliders-horizontal",ls),Xn=l.forwardRef(({className:e,type:t,...n},r)=>c.jsx("input",{type:t,className:V("flex h-9 w-full rounded-md border border-input bg-transparent px-3 py-1 text-base shadow-sm transition-colors file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50 md:text-sm",e),ref:r,...n}));Xn.displayName="Input";function vn(e,[t,n]){return Math.min(n,Math.max(t,e))}function we(e){const t=l.useRef(e);return l.useEffect(()=>{t.current=e}),l.useMemo(()=>(...n)=>t.current?.(...n),[])}function ds(e,t=globalThis?.document){const n=we(e);l.useEffect(()=>{const r=o=>{o.key==="Escape"&&n(o)};return t.addEventListener("keydown",r,{capture:!0}),()=>t.removeEventListener("keydown",r,{capture:!0})},[n,t])}
1var fs="DismissableLayer",_t="dismissableLayer.update",hs="dismissableLayer.pointerDownOutside",ps="dismissableLayer.focusOutside",xn,qn=l.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),Gn=l.forwardRef((e,t)=>{const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:r,onPointerDownOutside:o,onFocusOutside:i,onInteractOutside:s,onDismiss:a,...d}=e,u=l.useContext(qn),[h,p]=l.useState(null),m=h?.ownerDocument??globalThis?.document,[,g]=l.useState({}),y=Q(t,R=>p(R)),f=Array.from(u.layers),[x]=[...u.layersWithOutsidePointerEventsDisabled].slice(-1),b=f.indexOf(x),w=h?f.indexOf(h):-1,S=u.layersWithOutsidePointerEventsDisabled.size>0,E=w>=b,N=vs(R=>{const O=R.target,v=[...u.branches].some(C=>C.contains(O));!E||v||(o?.(R),s?.(R),R.defaultPrevented||a?.())},m),T=xs(R=>{const O=R.target;[...u.branches].some(C=>C.contains(O))||(i?.(R),s?.(R),R.defaultPrevented||a?.())},m);return ds(R=>{w===u.layers.size-1&&(r?.(R),!R.defaultPrevented&&a&&(R.preventDefault(),a()))},m),l.useEffect(()=>{if(h)return n&&(u.layersWithOutsidePointerEventsDisabled.size===0&&(xn=m.body.style.pointerEvents,m.body.style.pointerEvents="none"),u.layersWithOutsidePointerEventsDisabled.add(h)),u.layers.add(h),yn(),()=>{n&&u.layersWithOutsidePointerEventsDisabled.size===1&&(m.body.style.pointerEvents=xn)}},[h,m,n,u]),l.useEffect(()=>()=>{h&&(u.layers.delete(h),u.layersWithOutsidePointerEventsDisabled.delete(h),yn())},[h,u]),l.useEffect(()=>{const R=()=>g({});return document.addEventListener(_t,R),()=>document.removeEventListener(_t,R)},[]),c.jsx($.div,{...d,ref:y,style:{pointerEvents:S?E?"auto":"none":void 0,...e.style},onFocusCapture:z(e.onFocusCapture,T.onFocusCapture),onBlurCapture:z(e.onBlurCapture,T.onBlurCapture),onPointerDownCapture:z(e.onPointerDownCapture,N.onPointerDownCapture)})});Gn.displayName=fs;var ms="DismissableLayerBranch",gs=l.forwardRef((e,t)=>{const n=l.useContext(qn),r=l.useRef(null),o=Q(t,r);return l.useEffect(()=>{const i=r.current;if(i)return n.branches.add(i),()=>{n.branches.delete(i)}},[n.branches]),c.jsx($.div,{...e,ref:o})});gs.displayName=ms;function vs(e,t=globalThis?.document){const n=we(e),r=l.useRef(!1),o=l.useRef(()=>{});return l.useEffect(()=>{const i=a=>{if(a.target&&!r.current){let d=function(){Zn(hs,n,u,{discrete:!0})};const u={originalEvent:a};a.pointerType==="touch"?(t.removeEventListener("click",o.current),o.current=d,t.addEventListener("click",o.current,{once:!0})):d()}else t.removeEventListener("click",o.current);r.current=!1},s=window.setTimeout(()=>{t.addEventListener("pointerdown",i)},0);return()=>{window.clearTimeout(s),t.removeEventListener("pointerdown",i),t.removeEventListener("click",o.current)}},[t,n]),{onPointerDownCapture:()=>r.current=!0}}function xs(e,t=globalThis?.document){const n=we(e),r=l.useRef(!1);return l.useEffect(()=>{const o=i=>{i.target&&!r.current&&Zn(ps,n,{originalEvent:i},{discrete:!1})};return t.addEventListener("focusin",o),()=>t.removeEventListener("focusin",o)},[t,n]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}function yn(){const e=new CustomEvent(_t);document.dispatchEvent(e)}function Zn(e,t,n,{discrete:r}){const o=n.originalEvent.target,i=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&o.addEventListener(e,t,{once:!0}),r?Bo(o,i):o.dispatchEvent(i)}var St=0;function ys(){l.useEffect(()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??wn()),document.body.insertAdjacentElement("beforeend",e[1]??wn()),St++,()=>{St===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(t=>t.remove()),St--}},[])}function wn(){const e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.outline="none",e.style.opacity="0",e.style.position="fixed",e.style.pointerEvents="none",e}var Ct="focusScope.autoFocusOnMount",Et="focusScope.autoFocusOnUnmount",bn={bubbles:!1,cancelable:!0},ws="FocusScope",Jn=l.forwardRef((e,t)=>{const{loop:n=!1,trapped:r=!1,onMountAutoFocus:o,onUnmountAutoFocus:i,...s}=e,[a,d]=l.useState(null),u=we(o),h=we(i),p=l.useRef(null),m=Q(t,f=>d(f)),g=l.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;l.useEffect(()=>{if(r){let f=function(S){if(g.paused||!a)return;const E=S.target;a.contains(E)?p.current=E:ue(p.current,{select:!0})},x=function(S){if(g.paused||!a)return;const E=S.relatedTarget;E!==null&&(a.contains(E)||ue(p.current,{select:!0}))},b=function(S){if(document.activeElement===document.body)for(const N of S)N.removedNodes.length>0&&ue(a)};document.addEventListener("focusin",f),document.addEventListener("focusout",x);const w=new MutationObserver(b);return a&&w.observe(a,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",f),document.removeEventListener("focusout",x),w.disconnect()}}},[r,a,g.paused]),l.useEffect(()=>{if(a){Cn.add(g);const f=document.activeElement;if(!a.contains(f)){const b=new CustomEvent(Ct,bn);a.addEventListener(Ct,u),a.dispatchEvent(b),b.defaultPrevented||(bs(Ns(er(a)),{select:!0}),document.activeElement===f&&ue(a))}return()=>{a.removeEventListener(Ct,u),setTimeout(()=>{const b=new CustomEvent(Et,bn);a.addEventListener(Et,h),a.dispatchEvent(b),b.defaultPrevented||ue(f??document.body,{select:!0}),a.removeEventListener(Et,h),Cn.remove(g)},0)}}},[a,u,h,g]);const y=l.useCallback(f=>{if(!n&&!r||g.paused)return;const x=f.key==="Tab"&&!f.altKey&&!f.ctrlKey&&!f.metaKey,b=document.activeElement;if(x&&b){const w=f.currentTarget,[S,E]=Ss(w);S&&E?!f.shiftKey&&b===E?(f.preventDefault(),n&&ue(S,{select:!0})):f.shiftKey&&b===S&&(f.preventDefault(),n&&ue(E,{select:!0})):b===w&&f.preventDefault()}},[n,r,g.paused]);return c.jsx($.div,{tabIndex:-1,...s,ref:m,onKeyDown:y})});Jn.displayName=ws;function bs(e,{select:t=!1}={}){const n=document.activeElement;for(const r of e)if(ue(r,{select:t}),document.activeElement!==n)return}function Ss(e){const t=er(e),n=Sn(t,e),r=Sn(t.reverse(),e);return[n,r]}function er(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:r=>{const o=r.tagName==="INPUT"&&r.type==="hidden";return r.disabled||r.hidden||o?NodeFilter.FILTER_SKIP:r.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function Sn(e,t){for(const n of e)if(!Cs(n,{upTo:t}))return n}function Cs(e,{upTo:t}){if(getComputedStyle(e).visibility==="hidden")return!0;for(;e;){if(t!==void 0&&e===t)return!1;if(getComputedStyle(e).display==="none")return!0;e=e.parentElement}return!1}function Es(e){return e instanceof HTMLInputElement&&"select"in e}function ue(e,{select:t=!1}={}){if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&Es(e)&&t&&e.select()}}var Cn=Rs();function Rs(){let e=[];return{add(t){const n=e[0];t!==n&&n?.pause(),e=En(e,t),e.unshift(t)},remove(t){e=En(e,t),e[0]?.resume()}}}function En(e,t){const n=[...e],r=n.indexOf(t);return r!==-1&&n.splice(r,1),n}function Ns(e){return e.filter(t=>t.tagName!=="A")}const Ps=["top","right","bottom","left"],fe=Math.min,X=Math.max,Ze=Math.round,$e=Math.floor,oe=e=>({x:e,y:e}
1),Ts={left:"right",right:"left",bottom:"top",top:"bottom"};function Ft(e,t,n){return X(e,fe(t,n))}function ie(e,t){return typeof e=="function"?e(t):e}function ae(e){return e.split("-")[0]}function Ie(e){return e.split("-")[1]}function qt(e){return e==="x"?"y":"x"}function Gt(e){return e==="y"?"height":"width"}function re(e){const t=e[0];return t==="t"||t==="b"?"y":"x"}function Zt(e){return qt(re(e))}function Os(e,t,n){n===void 0&&(n=!1);const r=Ie(e),o=Zt(e),i=Gt(o);let s=o==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[i]>t.floating[i]&&(s=Je(s)),[s,Je(s)]}function As(e){const t=Je(e);return[Bt(e),t,Bt(t)]}function Bt(e){return e.includes("start")?e.replace("start","end"):e.replace("end","start")}const Rn=["left","right"],Nn=["right","left"],js=["top","bottom"],Is=["bottom","top"];function Ms(e,t,n){switch(e){case"top":case"bottom":return n?t?Nn:Rn:t?Rn:Nn;case"left":case"right":return t?js:Is;default:return[]}}function Ls(e,t,n,r){const o=Ie(e);let i=Ms(ae(e),n==="start",r);return o&&(i=i.map(s=>s+"-"+o),t&&(i=i.concat(i.map(Bt)))),i}function Je(e){const t=ae(e);return Ts[t]+e.slice(t.length)}function ks(e){return{top:0,right:0,bottom:0,left:0,...e}}function tr(e){return typeof e!="number"?ks(e):{top:e,right:e,bottom:e,left:e}}function et(e){const{x:t,y:n,width:r,height:o}=e;return{width:r,height:o,top:n,left:t,right:t+r,bottom:n+o,x:t,y:n}}function Pn(e,t,n){let{reference:r,floating:o}=e;const i=re(t),s=Zt(t),a=Gt(s),d=ae(t),u=i==="y",h=r.x+r.width/2-o.width/2,p=r.y+r.height/2-o.height/2,m=r[a]/2-o[a]/2;let g;switch(d){case"top":g={x:h,y:r.y-o.height};break;case"bottom":g={x:h,y:r.y+r.height};break;case"right":g={x:r.x+r.width,y:p};break;case"left":g={x:r.x-o.width,y:p};break;default:g={x:r.x,y:r.y}}switch(Ie(t)){case"start":g[s]-=m*(n&&u?-1:1);break;case"end":g[s]+=m*(n&&u?-1:1);break}return g}async function Ds(e,t){var n;t===void 0&&(t={});const{x:r,y:o,platform:i,rects:s,elements:a,strategy:d}=e,{boundary:u="clippingAncestors",rootBoundary:h="viewport",elementContext:p="floating",altBoundary:m=!1,padding:g=0}=ie(t,e),y=tr(g),x=a[m?p==="floating"?"reference":"floating":p],b=et(await i.getClippingRect({element:(n=await(i.isElement==null?void 0:i.isElement(x)))==null||n?x:x.contextElement||await(i.getDocumentElement==null?void 0:i.getDocumentElement(a.floating)),boundary:u,rootBoundary:h,strategy:d})),w=p==="floating"?{x:r,y:o,width:s.floating.width,height:s.floating.height}:s.reference,S=await(i.getOffsetParent==null?void 0:i.getOffsetParent(a.floating)),E=await(i.isElement==null?void 0:i.isElement(S))?await(i.getScale==null?void 0:i.getScale(S))||{x:1,y:1}:{x:1,y:1},N=et(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:a,rect:w,offsetParent:S,strategy:d}):w);return{top:(b.top-N.top+y.top)/E.y,bottom:(N.bottom-b.bottom+y.bottom)/E.y,left:(b.left-N.left+y.left)/E.x,right:(N.right-b.right+y.right)/E.x}}const _s=50,Fs=async(e,t,n)=>{const{placement:r="bottom",strategy:o="absolute",middleware:i=[],platform:s}=n,a=s.detectOverflow?s:{...s,detectOverflow:Ds},d=await(s.isRTL==null?void 0:s.isRTL(t));let u=await s.getElementRects({reference:e,floating:t,strategy:o}),{x:h,y:p}=Pn(u,r,d),m=r,g=0;const y={};for(let f=0;f<i.length;f++){const x=i[f];if(!x)continue;const{name:b,fn:w}=x,{x:S,y:E,data:N,reset:T}=await w({x:h,y:p,initialPlacement:r,placement:m,strategy:o,middlewareData:y,rects:u,platform:a,elements:{reference:e,floating:t}});h=S??h,p=E??p,y[b]={...y[b],...N},T&&g<_s&&(g++,typeof T=="object"&&(T.placement&&(m=T.placement),T.rects&&(u=T.rects===!0?await s.getElementRects({reference:e,floating:t,strategy:o}):T.rects),{x:h,y:p}=Pn(u,m,d)),f=-1)}return{x:h,y:p,placement:m,strategy:o,middlewareData:y}},Bs=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:r,placement:o,rects:i,platform:s,elements:a,middlewareData:d}=t,{element:u,padding:h=0}=ie(e,t)||{};if(u==null)return{};const p=tr(h),m={x:n,y:r},g=Zt(o),y=Gt(g),f=await s.getDimensions(u),x=g==="y",b=x?"top":"left",w=x?"bottom":"right",S=x?"clientHeight":"clientWidth",E=i.reference[y]+i.reference[g]-m[g]-i.floating[y],N=m[g]-i.reference[g],T=await(s.getOffsetParent==null?void 0:s.getOffsetParent(u));let R=T?T[S]:0;(!R||!await(s.isElement==null?void 0:s.isElement(T)))&&(R=a.floating[S]||i.floating[y]);const O=E/2-N/2,v=R/2-f[y]/2-1,C=fe(p[b],v),P=fe(p[w],v),A=C,j=R-f[y]-P,L=R/2-f[y]/2+O,_=Ft(A,L,j),k=!d.arrow&&Ie(o)!=null&&L!==_&&i.reference[y]/2-(L<A?C:P)-f[y]/2<0,D=k?L<A?L-A:L-j:0;return{[g]:m[g]+D,data:{[g]:_,centerOffset:L-_-D,...k&&{alignmentOffset:D}},reset:k}}}),Ws=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var n,r;const{placement:o,middlewareData:i,rects:s,initialPlacement:a,platform:d,elements:u}=t,{mainAxis:h=!0,crossAxis:p=!0,fallbackPlacements:m,fallbackStrategy:g="bestFit",fallbackAxisSideDirection:y="none",flipAlignment:f=!0,...x}=ie(e,t);if((n=i.arrow)!=null&&n.alignmentOffset)return{};
1const b=ae(o),w=re(a),S=ae(a)===a,E=await(d.isRTL==null?void 0:d.isRTL(u.floating)),N=m||(S||!f?[Je(a)]:As(a)),T=y!=="none";!m&&T&&N.push(...Ls(a,f,y,E));const R=[a,...N],O=await d.detectOverflow(t,x),v=[];let C=((r=i.flip)==null?void 0:r.overflows)||[];if(h&&v.push(O[b]),p){const L=Os(o,s,E);v.push(O[L[0]],O[L[1]])}if(C=[...C,{placement:o,overflows:v}],!v.every(L=>L<=0)){var P,A;const L=(((P=i.flip)==null?void 0:P.index)||0)+1,_=R[L];if(_&&(!(p==="alignment"?w!==re(_):!1)||C.every(M=>re(M.placement)===w?M.overflows[0]>0:!0)))return{data:{index:L,overflows:C},reset:{placement:_}};let k=(A=C.filter(D=>D.overflows[0]<=0).sort((D,M)=>D.overflows[1]-M.overflows[1])[0])==null?void 0:A.placement;if(!k)switch(g){case"bestFit":{var j;const D=(j=C.filter(M=>{if(T){const F=re(M.placement);return F===w||F==="y"}return!0}).map(M=>[M.placement,M.overflows.filter(F=>F>0).reduce((F,Y)=>F+Y,0)]).sort((M,F)=>M[1]-F[1])[0])==null?void 0:j[0];D&&(k=D);break}case"initialPlacement":k=a;break}if(o!==k)return{reset:{placement:k}}}return{}}}};function Tn(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function On(e){return Ps.some(t=>e[t]>=0)}const Hs=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n,platform:r}=t,{strategy:o="referenceHidden",...i}=ie(e,t);switch(o){case"referenceHidden":{const s=await r.detectOverflow(t,{...i,elementContext:"reference"}),a=Tn(s,n.reference);return{data:{referenceHiddenOffsets:a,referenceHidden:On(a)}}}case"escaped":{const s=await r.detectOverflow(t,{...i,altBoundary:!0}),a=Tn(s,n.floating);return{data:{escapedOffsets:a,escaped:On(a)}}}default:return{}}}}},nr=new Set(["left","top"]);async function Vs(e,t){const{placement:n,platform:r,elements:o}=e,i=await(r.isRTL==null?void 0:r.isRTL(o.floating)),s=ae(n),a=Ie(n),d=re(n)==="y",u=nr.has(s)?-1:1,h=i&&d?-1:1,p=ie(t,e);let{mainAxis:m,crossAxis:g,alignmentAxis:y}=typeof p=="number"?{mainAxis:p,crossAxis:0,alignmentAxis:null}:{mainAxis:p.mainAxis||0,crossAxis:p.crossAxis||0,alignmentAxis:p.alignmentAxis};return a&&typeof y=="number"&&(g=a==="end"?y*-1:y),d?{x:g*h,y:m*u}:{x:m*u,y:g*h}}const $s=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,r;const{x:o,y:i,placement:s,middlewareData:a}=t,d=await Vs(t,e);return s===((n=a.offset)==null?void 0:n.placement)&&(r=a.arrow)!=null&&r.alignmentOffset?{}:{x:o+d.x,y:i+d.y,data:{...d,placement:s}}}}},Us=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:o,platform:i}=t,{mainAxis:s=!0,crossAxis:a=!1,limiter:d={fn:b=>{let{x:w,y:S}=b;return{x:w,y:S}}},...u}=ie(e,t),h={x:n,y:r},p=await i.detectOverflow(t,u),m=re(ae(o)),g=qt(m);let y=h[g],f=h[m];if(s){const b=g==="y"?"top":"left",w=g==="y"?"bottom":"right",S=y+p[b],E=y-p[w];y=Ft(S,y,E)}if(a){const b=m==="y"?"top":"left",w=m==="y"?"bottom":"right",S=f+p[b],E=f-p[w];f=Ft(S,f,E)}const x=d.fn({...t,[g]:y,[m]:f});return{...x,data:{x:x.x-n,y:x.y-r,enabled:{[g]:s,[m]:a}}}}}},zs=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:n,y:r,placement:o,rects:i,middlewareData:s}=t,{offset:a=0,mainAxis:d=!0,crossAxis:u=!0}=ie(e,t),h={x:n,y:r},p=re(o),m=qt(p);let g=h[m],y=h[p];const f=ie(a,t),x=typeof f=="number"?{mainAxis:f,crossAxis:0}:{mainAxis:0,crossAxis:0,...f};if(d){const S=m==="y"?"height":"width",E=i.reference[m]-i.floating[S]+x.mainAxis,N=i.reference[m]+i.reference[S]-x.mainAxis;g<E?g=E:g>N&&(g=N)}if(u){var b,w;const S=m==="y"?"width":"height",E=nr.has(ae(o)),N=i.reference[p]-i.floating[S]+(E&&((b=s.offset)==null?void 0:b[p])||0)+(E?0:x.crossAxis),T=i.reference[p]+i.reference[S]+(E?0:((w=s.offset)==null?void 0:w[p])||0)-(E?x.crossAxis:0);y<N?y=N:y>T&&(y=T)}return{[m]:g,[p]:y}}}},Ks=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var n,r;const{placement:o,rects:i,platform:s,elements:a}=t,{apply:d=()=>{},...u}=ie(e,t),h=await s.detectOverflow(t,u),p=ae(o),m=Ie(o),g=re(o)==="y",{width:y,height:f}=i.floating;let x,b;p==="top"||p==="bottom"?(x=p,b=m===(await(s.isRTL==null?void 0:s.isRTL(a.floating))?"start":"end")?"left":"right"):(b=p,x=m==="end"?"top":"bottom");const w=f-h.top-h.bottom,S=y-h.left-h.right,E=fe(f-h[x],w),N=fe(y-h[b],S),T=!t.middlewareData.shift;let R=E,O=N;if((n=t.middlewareData.shift)!=null&&n.enabled.x&&(O=S),(r=t.middlewareData.shift)!=null&&r.enabled.y&&(R=w),T&&!m){const C=X(h.left,0),P=X(h.right,0),A=X(h.top,0),j=X(h.bottom,0);g?O=y-2*(C!==0||P!==0?C+P:X(h.left,h.right)):R=f-2*(A!==0||j!==0?A+j:X(h.top,h.bottom))}await d({...t,availableWidth:O,availableHeight:R});const v=await s.getDimensions(a.floating);return y!==v.width||f!==v.height?{reset:{rects:!0}}:{}}}};function ot(){return typeof window<"u"}function Me(e){return rr(e)?(e.nodeName||"").toLowerCase():"#document"}function q(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function se(e){var t;return(t=(rr(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}
1function rr(e){return ot()?e instanceof Node||e instanceof q(e).Node:!1}function te(e){return ot()?e instanceof Element||e instanceof q(e).Element:!1}function ce(e){return ot()?e instanceof HTMLElement||e instanceof q(e).HTMLElement:!1}function An(e){return!ot()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof q(e).ShadowRoot}function He(e){const{overflow:t,overflowX:n,overflowY:r,display:o}=ne(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&o!=="inline"&&o!=="contents"}function Qs(e){return/^(table|td|th)$/.test(Me(e))}function st(e){try{if(e.matches(":popover-open"))return!0}catch{}try{return e.matches(":modal")}catch{return!1}}const Ys=/transform|translate|scale|rotate|perspective|filter/,Xs=/paint|layout|strict|content/,ye=e=>!!e&&e!=="none";let Rt;function Jt(e){const t=te(e)?ne(e):e;return ye(t.transform)||ye(t.translate)||ye(t.scale)||ye(t.rotate)||ye(t.perspective)||!en()&&(ye(t.backdropFilter)||ye(t.filter))||Ys.test(t.willChange||"")||Xs.test(t.contain||"")}function qs(e){let t=he(e);for(;ce(t)&&!je(t);){if(Jt(t))return t;if(st(t))return null;t=he(t)}return null}function en(){return Rt==null&&(Rt=typeof CSS<"u"&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),Rt}function je(e){return/^(html|body|#document)$/.test(Me(e))}function ne(e){return q(e).getComputedStyle(e)}function it(e){return te(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function he(e){if(Me(e)==="html")return e;const t=e.assignedSlot||e.parentNode||An(e)&&e.host||se(e);return An(t)?t.host:t}function or(e){const t=he(e);return je(t)?e.ownerDocument?e.ownerDocument.body:e.body:ce(t)&&He(t)?t:or(t)}function We(e,t,n){var r;t===void 0&&(t=[]),n===void 0&&(n=!0);const o=or(e),i=o===((r=e.ownerDocument)==null?void 0:r.body),s=q(o);if(i){const a=Wt(s);return t.concat(s,s.visualViewport||[],He(o)?o:[],a&&n?We(a):[])}else return t.concat(o,We(o,[],n))}function Wt(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function sr(e){const t=ne(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const o=ce(e),i=o?e.offsetWidth:n,s=o?e.offsetHeight:r,a=Ze(n)!==i||Ze(r)!==s;return a&&(n=i,r=s),{width:n,height:r,$:a}}function tn(e){return te(e)?e:e.contextElement}function Oe(e){const t=tn(e);if(!ce(t))return oe(1);const n=t.getBoundingClientRect(),{width:r,height:o,$:i}=sr(t);let s=(i?Ze(n.width):n.width)/r,a=(i?Ze(n.height):n.height)/o;return(!s||!Number.isFinite(s))&&(s=1),(!a||!Number.isFinite(a))&&(a=1),{x:s,y:a}}const Gs=oe(0);function ir(e){const t=q(e);return!en()||!t.visualViewport?Gs:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function Zs(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==q(e)?!1:t}function be(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);const o=e.getBoundingClientRect(),i=tn(e);let s=oe(1);t&&(r?te(r)&&(s=Oe(r)):s=Oe(e));const a=Zs(i,n,r)?ir(i):oe(0);let d=(o.left+a.x)/s.x,u=(o.top+a.y)/s.y,h=o.width/s.x,p=o.height/s.y;if(i){const m=q(i),g=r&&te(r)?q(r):r;let y=m,f=Wt(y);for(;f&&r&&g!==y;){const x=Oe(f),b=f.getBoundingClientRect(),w=ne(f),S=b.left+(f.clientLeft+parseFloat(w.paddingLeft))*x.x,E=b.top+(f.clientTop+parseFloat(w.paddingTop))*x.y;d*=x.x,u*=x.y,h*=x.x,p*=x.y,d+=S,u+=E,y=q(f),f=Wt(y)}}return et({width:h,height:p,x:d,y:u})}function at(e,t){const n=it(e).scrollLeft;return t?t.left+n:be(se(e)).left+n}function ar(e,t){const n=e.getBoundingClientRect(),r=n.left+t.scrollLeft-at(e,n),o=n.top+t.scrollTop;return{x:r,y:o}}function Js(e){let{elements:t,rect:n,offsetParent:r,strategy:o}=e;const i=o==="fixed",s=se(r),a=t?st(t.floating):!1;if(r===s||a&&i)return n;let d={scrollLeft:0,scrollTop:0},u=oe(1);const h=oe(0),p=ce(r);if((p||!p&&!i)&&((Me(r)!=="body"||He(s))&&(d=it(r)),p)){const g=be(r);u=Oe(r),h.x=g.x+r.clientLeft,h.y=g.y+r.clientTop}const m=s&&!p&&!i?ar(s,d):oe(0);return{width:n.width*u.x,height:n.height*u.y,x:n.x*u.x-d.scrollLeft*u.x+h.x+m.x,y:n.y*u.y-d.scrollTop*u.y+h.y+m.y}}function ei(e){return Array.from(e.getClientRects())}function ti(e){const t=se(e),n=it(e),r=e.ownerDocument.body,o=X(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),i=X(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let s=-n.scrollLeft+at(e);const a=-n.scrollTop;return ne(r).direction==="rtl"&&(s+=X(t.clientWidth,r.clientWidth)-o),{width:o,height:i,x:s,y:a}}const jn=25;
1function ni(e,t){const n=q(e),r=se(e),o=n.visualViewport;let i=r.clientWidth,s=r.clientHeight,a=0,d=0;if(o){i=o.width,s=o.height;const h=en();(!h||h&&t==="fixed")&&(a=o.offsetLeft,d=o.offsetTop)}const u=at(r);if(u<=0){const h=r.ownerDocument,p=h.body,m=getComputedStyle(p),g=h.compatMode==="CSS1Compat"&&parseFloat(m.marginLeft)+parseFloat(m.marginRight)||0,y=Math.abs(r.clientWidth-p.clientWidth-g);y<=jn&&(i-=y)}else u<=jn&&(i+=u);return{width:i,height:s,x:a,y:d}}function ri(e,t){const n=be(e,!0,t==="fixed"),r=n.top+e.clientTop,o=n.left+e.clientLeft,i=ce(e)?Oe(e):oe(1),s=e.clientWidth*i.x,a=e.clientHeight*i.y,d=o*i.x,u=r*i.y;return{width:s,height:a,x:d,y:u}}function In(e,t,n){let r;if(t==="viewport")r=ni(e,n);else if(t==="document")r=ti(se(e));else if(te(t))r=ri(t,n);else{const o=ir(e);r={x:t.x-o.x,y:t.y-o.y,width:t.width,height:t.height}}return et(r)}function cr(e,t){const n=he(e);return n===t||!te(n)||je(n)?!1:ne(n).position==="fixed"||cr(n,t)}function oi(e,t){const n=t.get(e);if(n)return n;let r=We(e,[],!1).filter(a=>te(a)&&Me(a)!=="body"),o=null;const i=ne(e).position==="fixed";let s=i?he(e):e;for(;te(s)&&!je(s);){const a=ne(s),d=Jt(s);!d&&a.position==="fixed"&&(o=null),(i?!d&&!o:!d&&a.position==="static"&&!!o&&(o.position==="absolute"||o.position==="fixed")||He(s)&&!d&&cr(e,s))?r=r.filter(h=>h!==s):o=a,s=he(s)}return t.set(e,r),r}function si(e){let{element:t,boundary:n,rootBoundary:r,strategy:o}=e;const s=[...n==="clippingAncestors"?st(t)?[]:oi(t,this._c):[].concat(n),r],a=In(t,s[0],o);let d=a.top,u=a.right,h=a.bottom,p=a.left;for(let m=1;m<s.length;m++){const g=In(t,s[m],o);d=X(g.top,d),u=fe(g.right,u),h=fe(g.bottom,h),p=X(g.left,p)}return{width:u-p,height:h-d,x:p,y:d}}function ii(e){const{width:t,height:n}=sr(e);return{width:t,height:n}}function ai(e,t,n){const r=ce(t),o=se(t),i=n==="fixed",s=be(e,!0,i,t);let a={scrollLeft:0,scrollTop:0};const d=oe(0);function u(){d.x=at(o)}if(r||!r&&!i)if((Me(t)!=="body"||He(o))&&(a=it(t)),r){const g=be(t,!0,i,t);d.x=g.x+t.clientLeft,d.y=g.y+t.clientTop}else o&&u();i&&!r&&o&&u();const h=o&&!r&&!i?ar(o,a):oe(0),p=s.left+a.scrollLeft-d.x-h.x,m=s.top+a.scrollTop-d.y-h.y;return{x:p,y:m,width:s.width,height:s.height}}function Nt(e){return ne(e).position==="static"}function Mn(e,t){if(!ce(e)||ne(e).position==="fixed")return null;if(t)return t(e);let n=e.offsetParent;return se(e)===n&&(n=n.ownerDocument.body),n}function lr(e,t){const n=q(e);if(st(e))return n;if(!ce(e)){let o=he(e);for(;o&&!je(o);){if(te(o)&&!Nt(o))return o;o=he(o)}return n}let r=Mn(e,t);for(;r&&Qs(r)&&Nt(r);)r=Mn(r,t);return r&&je(r)&&Nt(r)&&!Jt(r)?n:r||qs(e)||n}const ci=async function(e){const t=this.getOffsetParent||lr,n=this.getDimensions,r=await n(e.floating);return{reference:ai(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function li(e){return ne(e).direction==="rtl"}const ui={convertOffsetParentRelativeRectToViewportRelativeRect:Js,getDocumentElement:se,getClippingRect:si,getOffsetParent:lr,getElementRects:ci,getClientRects:ei,getDimensions:ii,getScale:Oe,isElement:te,isRTL:li};function ur(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function di(e,t){let n=null,r;const o=se(e);function i(){var a;clearTimeout(r),(a=n)==null||a.disconnect(),n=null}function s(a,d){a===void 0&&(a=!1),d===void 0&&(d=1),i();const u=e.getBoundingClientRect(),{left:h,top:p,width:m,height:g}=u;if(a||t(),!m||!g)return;const y=$e(p),f=$e(o.clientWidth-(h+m)),x=$e(o.clientHeight-(p+g)),b=$e(h),S={rootMargin:-y+"px "+-f+"px "+-x+"px "+-b+"px",threshold:X(0,fe(1,d))||1};let E=!0;function N(T){const R=T[0].intersectionRatio;if(R!==d){if(!E)return s();R?s(!1,R):r=setTimeout(()=>{s(!1,1e-7)},1e3)}R===1&&!ur(u,e.getBoundingClientRect())&&s(),E=!1}try{n=new IntersectionObserver(N,{...S,root:o.ownerDocument})}catch{n=new IntersectionObserver(N,S)}n.observe(e)}return s(!0),i}function fi(e,t,n,r){r===void 0&&(r={});const{ancestorScroll:o=!0,ancestorResize:i=!0,elementResize:s=typeof ResizeObserver=="function",layoutShift:a=typeof IntersectionObserver=="function",animationFrame:d=!1}=r,u=tn(e),h=o||i?[...u?We(u):[],...t?We(t):[]]:[];h.forEach(b=>{o&&b.addEventListener("scroll",n,{passive:!0}),i&&b.addEventListener("resize",n)});const p=u&&a?di(u,n):null;let m=-1,g=null;s&&(g=new ResizeObserver(b=>{let[w]=b;w&&w.target===u&&g&&t&&(g.unobserve(t),cancelAnimationFrame(m),m=requestAnimationFrame(()=>{var S;(S=g)==null||S.observe(t)})),n()}),u&&!d&&g.observe(u),t&&g.observe(t));let y,f=d?be(e):null;d&&x();function x(){const b=be(e);f&&!ur(f,b)&&n(),f=b,y=requestAnimationFrame(x)}return n(),()=>{var b;h.forEach(w=>{o&&w.removeEventListener("scroll",n),i&&w.removeEventListener("resize",n)}),p?.(),(b=g)==null||b.disconnect(),g=null,d&&cancelAnimationFrame(y)}}const hi=$s,pi=Us,mi=Ws,gi=Ks,vi=Hs,Ln=Bs,xi=zs,yi=(e,t,n)=>{const r=new Map,o={platform:ui,...n},i={...o.platform,_c:r};return Fs(e,t,{...o,platform:i})};var wi=typeof document<"u",bi=function(){},Ye=wi?l.useLayoutEffect:bi;function tt(e,t){if(e===t)return!0;
1if(typeof e!=typeof t)return!1;if(typeof e=="function"&&e.toString()===t.toString())return!0;let n,r,o;if(e&&t&&typeof e=="object"){if(Array.isArray(e)){if(n=e.length,n!==t.length)return!1;for(r=n;r--!==0;)if(!tt(e[r],t[r]))return!1;return!0}if(o=Object.keys(e),n=o.length,n!==Object.keys(t).length)return!1;for(r=n;r--!==0;)if(!{}.hasOwnProperty.call(t,o[r]))return!1;for(r=n;r--!==0;){const i=o[r];if(!(i==="_owner"&&e.$$typeof)&&!tt(e[i],t[i]))return!1}return!0}return e!==e&&t!==t}function dr(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function kn(e,t){const n=dr(e);return Math.round(t*n)/n}function Pt(e){const t=l.useRef(e);return Ye(()=>{t.current=e}),t}function Si(e){e===void 0&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:o,elements:{reference:i,floating:s}={},transform:a=!0,whileElementsMounted:d,open:u}=e,[h,p]=l.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[m,g]=l.useState(r);tt(m,r)||g(r);const[y,f]=l.useState(null),[x,b]=l.useState(null),w=l.useCallback(M=>{M!==T.current&&(T.current=M,f(M))},[]),S=l.useCallback(M=>{M!==R.current&&(R.current=M,b(M))},[]),E=i||y,N=s||x,T=l.useRef(null),R=l.useRef(null),O=l.useRef(h),v=d!=null,C=Pt(d),P=Pt(o),A=Pt(u),j=l.useCallback(()=>{if(!T.current||!R.current)return;const M={placement:t,strategy:n,middleware:m};P.current&&(M.platform=P.current),yi(T.current,R.current,M).then(F=>{const Y={...F,isPositioned:A.current!==!1};L.current&&!tt(O.current,Y)&&(O.current=Y,Qt.flushSync(()=>{p(Y)}))})},[m,t,n,P,A]);Ye(()=>{u===!1&&O.current.isPositioned&&(O.current.isPositioned=!1,p(M=>({...M,isPositioned:!1})))},[u]);const L=l.useRef(!1);Ye(()=>(L.current=!0,()=>{L.current=!1}),[]),Ye(()=>{if(E&&(T.current=E),N&&(R.current=N),E&&N){if(C.current)return C.current(E,N,j);j()}},[E,N,j,C,v]);const _=l.useMemo(()=>({reference:T,floating:R,setReference:w,setFloating:S}),[w,S]),k=l.useMemo(()=>({reference:E,floating:N}),[E,N]),D=l.useMemo(()=>{const M={position:n,left:0,top:0};if(!k.floating)return M;const F=kn(k.floating,h.x),Y=kn(k.floating,h.y);return a?{...M,transform:"translate("+F+"px, "+Y+"px)",...dr(k.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:F,top:Y}},[n,a,k.floating,h.x,h.y]);return l.useMemo(()=>({...h,update:j,refs:_,elements:k,floatingStyles:D}),[h,j,_,k,D])}const Ci=e=>{function t(n){return{}.hasOwnProperty.call(n,"current")}return{name:"arrow",options:e,fn(n){const{element:r,padding:o}=typeof e=="function"?e(n):e;return r&&t(r)?r.current!=null?Ln({element:r.current,padding:o}).fn(n):{}:r?Ln({element:r,padding:o}).fn(n):{}}}},Ei=(e,t)=>{const n=hi(e);return{name:n.name,fn:n.fn,options:[e,t]}},Ri=(e,t)=>{const n=pi(e);return{name:n.name,fn:n.fn,options:[e,t]}},Ni=(e,t)=>({fn:xi(e).fn,options:[e,t]}),Pi=(e,t)=>{const n=mi(e);return{name:n.name,fn:n.fn,options:[e,t]}},Ti=(e,t)=>{const n=gi(e);return{name:n.name,fn:n.fn,options:[e,t]}},Oi=(e,t)=>{const n=vi(e);return{name:n.name,fn:n.fn,options:[e,t]}},Ai=(e,t)=>{const n=Ci(e);return{name:n.name,fn:n.fn,options:[e,t]}};var ji="Arrow",fr=l.forwardRef((e,t)=>{const{children:n,width:r=10,height:o=5,...i}=e;return c.jsx($.svg,{...i,ref:t,width:r,height:o,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?n:c.jsx("polygon",{points:"0,0 30,0 15,10"})})});fr.displayName=ji;var Ii=fr;function Mi(e){const[t,n]=l.useState(void 0);return J(()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});const r=new ResizeObserver(o=>{if(!Array.isArray(o)||!o.length)return;const i=o[0];let s,a;if("borderBoxSize"in i){const d=i.borderBoxSize,u=Array.isArray(d)?d[0]:d;s=u.inlineSize,a=u.blockSize}else s=e.offsetWidth,a=e.offsetHeight;n({width:s,height:a})});return r.observe(e,{box:"border-box"}),()=>r.unobserve(e)}else n(void 0)},[e]),t}var nn="Popper",[hr,pr]=Qn(nn),[Li,mr]=hr(nn),gr=e=>{const{__scopePopper:t,children:n}=e,[r,o]=l.useState(null);return c.jsx(Li,{scope:t,anchor:r,onAnchorChange:o,children:n})};gr.displayName=nn;var vr="PopperAnchor",xr=l.forwardRef((e,t)=>{const{__scopePopper:n,virtualRef:r,...o}=e,i=mr(vr,n),s=l.useRef(null),a=Q(t,s),d=l.useRef(null);return l.useEffect(()=>{const u=d.current;d.current=r?.current||s.current,u!==d.current&&i.onAnchorChange(d.current)}),r?null:c.jsx($.div,{...o,ref:a})});xr.displayName=vr;var rn="PopperContent",[ki,Di]=hr(rn),yr=l.forwardRef((e,t)=>
1{const{__scopePopper:n,side:r="bottom",sideOffset:o=0,align:i="center",alignOffset:s=0,arrowPadding:a=0,avoidCollisions:d=!0,collisionBoundary:u=[],collisionPadding:h=0,sticky:p="partial",hideWhenDetached:m=!1,updatePositionStrategy:g="optimized",onPlaced:y,...f}=e,x=mr(rn,n),[b,w]=l.useState(null),S=Q(t,I=>w(I)),[E,N]=l.useState(null),T=Mi(E),R=T?.width??0,O=T?.height??0,v=r+(i!=="center"?"-"+i:""),C=typeof h=="number"?h:{top:0,right:0,bottom:0,left:0,...h},P=Array.isArray(u)?u:[u],A=P.length>0,j={padding:C,boundary:P.filter(Fi),altBoundary:A},{refs:L,floatingStyles:_,placement:k,isPositioned:D,middlewareData:M}=Si({strategy:"fixed",placement:v,whileElementsMounted:(...I)=>fi(...I,{animationFrame:g==="always"}),elements:{reference:x.anchor},middleware:[Ei({mainAxis:o+O,alignmentAxis:s}),d&&Ri({mainAxis:!0,crossAxis:!1,limiter:p==="partial"?Ni():void 0,...j}),d&&Pi({...j}),Ti({...j,apply:({elements:I,rects:H,availableWidth:K,availableHeight:B})=>{const{width:W,height:U}=H.reference,G=I.floating.style;G.setProperty("--radix-popper-available-width",`${K}px`),G.setProperty("--radix-popper-available-height",`${B}px`),G.setProperty("--radix-popper-anchor-width",`${W}px`),G.setProperty("--radix-popper-anchor-height",`${U}px`)}}),E&&Ai({element:E,padding:a}),Bi({arrowWidth:R,arrowHeight:O}),m&&Oi({strategy:"referenceHidden",...j})]}),[F,Y]=Sr(k),ge=we(y);J(()=>{D&&ge?.()},[D,ge]);const ke=M.arrow?.x,De=M.arrow?.y,le=M.arrow?.centerOffset!==0,[Ee,ve]=l.useState();return J(()=>{b&&ve(window.getComputedStyle(b).zIndex)},[b]),c.jsx("div",{ref:L.setFloating,"data-radix-popper-content-wrapper":"",style:{..._,transform:D?_.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:Ee,"--radix-popper-transform-origin":[M.transformOrigin?.x,M.transformOrigin?.y].join(" "),...M.hide?.referenceHidden&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:c.jsx(ki,{scope:n,placedSide:F,onArrowChange:N,arrowX:ke,arrowY:De,shouldHideArrow:le,children:c.jsx($.div,{"data-side":F,"data-align":Y,...f,ref:S,style:{...f.style,animation:D?void 0:"none"}})})})});yr.displayName=rn;var wr="PopperArrow",_i={top:"bottom",right:"left",bottom:"top",left:"right"},br=l.forwardRef(function(t,n){const{__scopePopper:r,...o}=t,i=Di(wr,r),s=_i[i.placedSide];return c.jsx("span",{ref:i.onArrowChange,style:{position:"absolute",left:i.arrowX,top:i.arrowY,[s]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[i.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[i.placedSide],visibility:i.shouldHideArrow?"hidden":void 0},children:c.jsx(Ii,{...o,ref:n,style:{...o.style,display:"block"}})})});br.displayName=wr;function Fi(e){return e!==null}var Bi=e=>({name:"transformOrigin",options:e,fn(t){const{placement:n,rects:r,middlewareData:o}=t,s=o.arrow?.centerOffset!==0,a=s?0:e.arrowWidth,d=s?0:e.arrowHeight,[u,h]=Sr(n),p={start:"0%",center:"50%",end:"100%"}[h],m=(o.arrow?.x??0)+a/2,g=(o.arrow?.y??0)+d/2;let y="",f="";return u==="bottom"?(y=s?p:`${m}px`,f=`${-d}px`):u==="top"?(y=s?p:`${m}px`,f=`${r.floating.height+d}px`):u==="right"?(y=`${-d}px`,f=s?p:`${g}px`):u==="left"&&(y=`${r.floating.width+d}px`,f=s?p:`${g}px`),{data:{x:y,y:f}}}});function Sr(e){const[t,n="center"]=e.split("-");return[t,n]}var Wi=gr,Hi=xr,Vi=yr,$i=br,Ui="Portal",Cr=l.forwardRef((e,t)=>{const{container:n,...r}=e,[o,i]=l.useState(!1);J(()=>i(!0),[]);const s=n||o&&globalThis?.document?.body;return s?No.createPortal(c.jsx($.div,{...r,ref:t}),s):null});Cr.displayName=Ui;function zi(e){const t=Ki(e),n=l.forwardRef((r,o)=>{const{children:i,...s}=r,a=l.Children.toArray(i),d=a.find(Yi);if(d){const u=d.props.children,h=a.map(p=>p===d?l.Children.count(u)>1?l.Children.only(null):l.isValidElement(u)?u.props.children:null:p);return c.jsx(t,{...s,ref:o,children:l.isValidElement(u)?l.cloneElement(u,void 0,h):null})}return c.jsx(t,{...s,ref:o,children:i})});return n.displayName=`${e}.Slot`,n}function Ki(e){const t=l.forwardRef((n,r)=>{const{children:o,...i}=n;if(l.isValidElement(o)){const s=qi(o),a=Xi(i,o.props);return o.type!==l.Fragment&&(a.ref=r?Fo(r,s):s),l.cloneElement(o,a)}return l.Children.count(o)>1?l.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var Qi=Symbol("radix.slottable");function Yi(e){return l.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===Qi}function Xi(e,t){const n={...t};for(const r in t){const o=e[r],i=t[r];/^on[A-Z]/.test(r)?o&&i?n[r]=(...a)=>{const d=i(...a);return o(...a),d}:o&&(n[r]=o):r==="style"?n[r]={...o,...i}
1:r==="className"&&(n[r]=[o,i].filter(Boolean).join(" "))}return{...e,...n}}function qi(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}function Gi(e){const t=l.useRef({value:e,previous:e});return l.useMemo(()=>(t.current.value!==e&&(t.current.previous=t.current.value,t.current.value=e),t.current.previous),[e])}var Er=Object.freeze({position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal"}),Zi="VisuallyHidden",Ji=l.forwardRef((e,t)=>c.jsx($.span,{...e,ref:t,style:{...Er,...e.style}}));Ji.displayName=Zi;var ea=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},Re=new WeakMap,Ue=new WeakMap,ze={},Tt=0,Rr=function(e){return e&&(e.host||Rr(e.parentNode))},ta=function(e,t){return t.map(function(n){if(e.contains(n))return n;var r=Rr(n);return r&&e.contains(r)?r:(console.error("aria-hidden",n,"in not contained inside",e,". Doing nothing"),null)}).filter(function(n){return!!n})},na=function(e,t,n,r){var o=ta(t,Array.isArray(e)?e:[e]);ze[n]||(ze[n]=new WeakMap);var i=ze[n],s=[],a=new Set,d=new Set(o),u=function(p){!p||a.has(p)||(a.add(p),u(p.parentNode))};o.forEach(u);var h=function(p){!p||d.has(p)||Array.prototype.forEach.call(p.children,function(m){if(a.has(m))h(m);else try{var g=m.getAttribute(r),y=g!==null&&g!=="false",f=(Re.get(m)||0)+1,x=(i.get(m)||0)+1;Re.set(m,f),i.set(m,x),s.push(m),f===1&&y&&Ue.set(m,!0),x===1&&m.setAttribute(n,"true"),y||m.setAttribute(r,"true")}catch(b){console.error("aria-hidden: cannot operate on ",m,b)}})};return h(t),a.clear(),Tt++,function(){s.forEach(function(p){var m=Re.get(p)-1,g=i.get(p)-1;Re.set(p,m),i.set(p,g),m||(Ue.has(p)||p.removeAttribute(r),Ue.delete(p)),g||p.removeAttribute(n)}),Tt--,Tt||(Re=new WeakMap,Re=new WeakMap,Ue=new WeakMap,ze={})}},ra=function(e,t,n){n===void 0&&(n="data-aria-hidden");var r=Array.from(Array.isArray(e)?e:[e]),o=ea(e);return o?(r.push.apply(r,Array.from(o.querySelectorAll("[aria-live], script"))),na(r,o,n,"aria-hidden")):function(){return null}},Xe="right-scroll-bar-position",qe="width-before-scroll-bar",oa="with-scroll-bars-hidden",sa="--removed-body-scroll-bar-size";function Ot(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function ia(e,t){var n=l.useState(function(){return{value:e,callback:t,facade:{get current(){return n.value},set current(r){var o=n.value;o!==r&&(n.value=r,n.callback(r,o))}}}})[0];return n.callback=t,n.facade}var aa=typeof window<"u"?l.useLayoutEffect:l.useEffect,Dn=new WeakMap;function ca(e,t){var n=ia(null,function(r){return e.forEach(function(o){return Ot(o,r)})});return aa(function(){var r=Dn.get(n);if(r){var o=new Set(r),i=new Set(e),s=n.current;o.forEach(function(a){i.has(a)||Ot(a,null)}),i.forEach(function(a){o.has(a)||Ot(a,s)})}Dn.set(n,e)},[e]),n}function la(e){return e}function ua(e,t){t===void 0&&(t=la);var n=[],r=!1,o={read:function(){if(r)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return n.length?n[n.length-1]:e},useMedium:function(i){var s=t(i,r);return n.push(s),function(){n=n.filter(function(a){return a!==s})}},assignSyncMedium:function(i){for(r=!0;n.length;){var s=n;n=[],s.forEach(i)}n={push:function(a){return i(a)},filter:function(){return n}}},assignMedium:function(i){r=!0;var s=[];if(n.length){var a=n;n=[],a.forEach(i),s=n}var d=function(){var h=s;s=[],h.forEach(i)},u=function(){return Promise.resolve().then(d)};u(),n={push:function(h){s.push(h),u()},filter:function(h){return s=s.filter(h),n}}}};return o}function da(e){e===void 0&&(e={});var t=ua(null);return t.options=de({async:!0,ssr:!1},e),t}var Nr=function(e){var t=e.sideCar,n=zn(e,["sideCar"]);if(!t)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var r=t.read();if(!r)throw new Error("Sidecar medium not found");return l.createElement(r,de({},n))};
vendor: 5,280 bytes, lines 1-38
1Nr.isSideCarExport=!0;function fa(e,t){return e.useMedium(t),Nr}var Pr=da(),At=function(){},ct=l.forwardRef(function(e,t){var n=l.useRef(null),r=l.useState({onScrollCapture:At,onWheelCapture:At,onTouchMoveCapture:At}),o=r[0],i=r[1],s=e.forwardProps,a=e.children,d=e.className,u=e.removeScrollBar,h=e.enabled,p=e.shards,m=e.sideCar,g=e.noRelative,y=e.noIsolation,f=e.inert,x=e.allowPinchZoom,b=e.as,w=b===void 0?"div":b,S=e.gapMode,E=zn(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),N=m,T=ca([n,t]),R=de(de({},E),o);return l.createElement(l.Fragment,null,h&&l.createElement(N,{sideCar:Pr,removeScrollBar:u,shards:p,noRelative:g,noIsolation:y,inert:f,setCallbacks:i,allowPinchZoom:!!x,lockRef:n,gapMode:S}),s?l.cloneElement(l.Children.only(a),de(de({},R),{ref:T})):l.createElement(w,de({},R,{className:d,ref:T}),a))});ct.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};ct.classNames={fullWidth:qe,zeroRight:Xe};var ha=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function pa(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=ha();return t&&e.setAttribute("nonce",t),e}function ma(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function ga(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var va=function(){var e=0,t=null;return{add:function(n){e==0&&(t=pa())&&(ma(t,n),ga(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},xa=function(){var e=va();return function(t,n){l.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])}},Tr=function(){var e=xa(),t=function(n){var r=n.styles,o=n.dynamic;return e(r,o),null};return t},ya={left:0,top:0,right:0,gap:0},jt=function(e){return parseInt(e||"",10)||0},wa=function(e){var t=window.getComputedStyle(document.body),n=t[e==="padding"?"paddingLeft":"marginLeft"],r=t[e==="padding"?"paddingTop":"marginTop"],o=t[e==="padding"?"paddingRight":"marginRight"];return[jt(n),jt(r),jt(o)]},ba=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return ya;var t=wa(e),n=document.documentElement.clientWidth,r=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,r-n+t[2]-t[0])}},Sa=Tr(),Ae="data-scroll-locked",Ca=function(e,t,n,r){var o=e.left,i=e.top,s=e.right,a=e.gap;return n===void 0&&(n="margin"),` 2 .`.concat(oa,` { 3 overflow: hidden `).concat(r,`; 4 padding-right: `).concat(a,"px ").concat(r,`; 5 } 6 body[`).concat(Ae,`] { 7 overflow: hidden `).concat(r,`; 8 overscroll-behavior: contain; 9 `).concat([t&&"position: relative ".concat(r,";"),n==="margin"&&` 10 padding-left: `.concat(o,`px; 11 padding-top: `).concat(i,`px; 12 padding-right: `).concat(s,`px; 13 margin-left:0; 14 margin-top:0; 15 margin-right: `).concat(a,"px ").concat(r,`; 16 `),n==="padding"&&"padding-right: ".concat(a,"px ").concat(r,";")].filter(Boolean).join(""),` 17 } 18 19 .`).concat(Xe,` { 20 right: `).concat(a,"px ").concat(r,`; 21 } 22 23 .`).concat(qe,` { 24 margin-right: `).concat(a,"px ").concat(r,`; 25 } 26 27 .`).concat(Xe," .").concat(Xe,` { 28 right: 0 `).concat(r,`; 29 } 30 31 .`).concat(qe," .").concat(qe,` { 32 margin-right: 0 `).concat(r,`; 33 } 34 35 body[`).concat(Ae,`] { 36 `).concat(sa,": ").concat(a,`px; 37 } 38`)},_n=function(){var e=parseInt(document.body.getAttribute(Ae)||"0",10);return isFinite(e)?e:0},Ea=function(){l.useEffect(function(){return document.body.setAttribute(Ae,(_n()+1).toString()),function(){var e=_n()-1;e<=0?document.body.removeAttribute(Ae):document.body.setAttribute(Ae,e.toString())}},[])},Ra=function(e){var t=e.noRelative,n=e.noImportant,r=e.gapMode,o=r===void 0?"margin":r;Ea();var i=l.useMemo(function(){return ba(o)},[o]);return l.createElement(Sa,{styles:Ca(i,!t,o,n?"":"!important")})},Ht=!1;if(typeof window<"u")try{var Ke=Object.defineProperty({},"passive",{get:function(){return Ht=!0,!0}});window.addEventListener("test",Ke,Ke),window.removeEventListener("test",Ke,Ke)}catch{Ht=!1}var Ne=Ht?{passive:!1}:!1,Na=function(e){return e.tagName==="TEXTAREA"},Or=function(e,t){if(!(e instanceof Element))return!1;var n=window.getComputedStyle(e);return n[t]!=="hidden"&&!(n.overflowY===n.overflowX&&!Na(e)&&n[t]==="visible")},Pa=function(e){return Or(e,"overflowY")},Ta=function(e){return Or(e,"overflowX")},Fn=function(e,t){var n=t.ownerDocument,r=t;do{typeof ShadowRoot<"u"&&r instanceof ShadowRoot&&(r=r.host);var o=Ar(e,r);if(o){var i=jr(e,r),s=i[1],a=i[2];if(s>a)return!0}r=r.parentNode}while(r&&r!==n.body);return!1},Oa=function(e){var t=e.scrollTop,n=e.scrollHeight,r=e.clientHeight;return[t,n,r]},Aa=function(e){var t=e.scrollLeft,n=e.scrollWidth,r=e.clientWidth;return[t,n,r]},Ar=function(e,t){return e==="v"?Pa(t):Ta(t)},jr=function(e,t){return e==="v"?Oa(t):Aa(t)},ja=function(e,t){return e==="h"&&t==="rtl"?-1:1},Ia=function(e,t,n,r,o){var i=ja(e,window.getComputedStyle(t).direction),s=i*r,a=n.target,d=t.contains(a),u=!1,h=s>0,p=0,m=0;do{if(!a)break;var g=jr(e,a),y=g[0],f=g[1],x=g[2],b=f-x-i*y;(y||b)&&Ar(e,a)&&(p+=b,m+=y);var w=a.parentNode;a=w&&w.nodeType===Node.DOCUMENT_FRAGMENT_NODE?w.host:w}while(!d&&a!==document.body||d&&(t.contains(a)||t===a));
38return(h&&Math.abs(p)<1||!h&&Math.abs(m)<1)&&(u=!0),u},Qe=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},Bn=function(e){return[e.deltaX,e.deltaY]},Wn=function(e){return e&&"current"in e?e.current:e},Ma=function(e,t){return e[0]===t[0]&&e[1]===t[1]},La=function(e){return` 39 .block-interactivity-`.concat(e,` {pointer-events: none;} 40 .allow-interactivity-`).concat(e,` {pointer-events: all;} 41`)},ka=0,Pe=[];function Da(e){var t=l.useRef([]),n=l.useRef([0,0]),r=l.useRef(),o=l.useState(ka++)[0],i=l.useState(Tr)[0],s=l.useRef(e);l.useEffect(function(){s.current=e},[e]),l.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(o));var f=Po([e.lockRef.current],(e.shards||[]).map(Wn),!0).filter(Boolean);return f.forEach(function(x){return x.classList.add("allow-interactivity-".concat(o))}),function(){document.body.classList.remove("block-interactivity-".concat(o)),f.forEach(function(x){return x.classList.remove("allow-interactivity-".concat(o))})}}},[e.inert,e.lockRef.current,e.shards]);var a=l.useCallback(function(f,x){if("touches"in f&&f.touches.length===2||f.type==="wheel"&&f.ctrlKey)return!s.current.allowPinchZoom;var b=Qe(f),w=n.current,S="deltaX"in f?f.deltaX:w[0]-b[0],E="deltaY"in f?f.deltaY:w[1]-b[1],N,T=f.target,R=Math.abs(S)>Math.abs(E)?"h":"v";if("touches"in f&&R==="h"&&T.type==="range")return!1;var O=window.getSelection(),v=O&&O.anchorNode,C=v?v===T||v.contains(T):!1;if(C)return!1;var P=Fn(R,T);if(!P)return!0;if(P?N=R:(N=R==="v"?"h":"v",P=Fn(R,T)),!P)return!1;if(!r.current&&"changedTouches"in f&&(S||E)&&(r.current=N),!N)return!0;var A=r.current||N;return Ia(A,x,f,A==="h"?S:E)},[]),d=l.useCallback(function(f){var x=f;if(!(!Pe.length||Pe[Pe.length-1]!==i)){var b="deltaY"in x?Bn(x):Qe(x),w=t.current.filter(function(N){return N.name===x.type&&(N.target===x.target||x.target===N.shadowParent)&&Ma(N.delta,b)})[0];if(w&&w.should){x.cancelable&&x.preventDefault();return}if(!w){var S=(s.current.shards||[]).map(Wn).filter(Boolean).filter(function(N){return N.contains(x.target)}),E=S.length>0?a(x,S[0]):!s.current.noIsolation;E&&x.cancelable&&x.preventDefault()}}},[]),u=l.useCallback(function(f,x,b,w){var S={name:f,delta:x,target:b,should:w,shadowParent:_a(b)};t.current.push(S),setTimeout(function(){t.current=t.current.filter(function(E){return E!==S})},1)},[]),h=l.useCallback(function(f){n.current=Qe(f),r.current=void 0},[]),p=l.useCallback(function(f){u(f.type,Bn(f),f.target,a(f,e.lockRef.current))},[]),m=l.useCallback(function(f){u(f.type,Qe(f),f.target,a(f,e.lockRef.current))},[]);l.useEffect(function(){return Pe.push(i),e.setCallbacks({onScrollCapture:p,onWheelCapture:p,onTouchMoveCapture:m}),document.addEventListener("wheel",d,Ne),document.addEventListener("touchmove",d,Ne),document.addEventListener("touchstart",h,Ne),function(){Pe=Pe.filter(function(f){return f!==i}),document.removeEventListener("wheel",d,Ne),document.removeEventListener("touchmove",d,Ne),document.removeEventListener("touchstart",h,Ne)}},[]);var g=e.removeScrollBar,y=e.inert;return l.createElement(l.Fragment,null,y?l.createElement(i,{styles:La(o)}):null,g?l.createElement(Ra,{noRelative:e.noRelative,gapMode:e.gapMode}):null)}function _a(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const Fa=fa(Pr,Da);var Ir=l.forwardRef(function(e,t){return l.createElement(ct,de({},e,{ref:t,sideCar:Fa}))});Ir.classNames=ct.classNames;var Ba=[" ","Enter","ArrowUp","ArrowDown"],Wa=[" ","Enter"],Se="Select",[lt,ut,Ha]=Ho(Se),[Le]=Qn(Se,[Ha,pr]),dt=pr(),[Va,pe]=Le(Se),[$a,Ua]=Le(Se),Mr=e=>{const{__scopeSelect:t,children:n,open:r,defaultOpen:o,onOpenChange:i,value:s,defaultValue:a,onValueChange:d,dir:u,name:h,autoComplete:p,disabled:m,required:g,form:y}=e,f=dt(t),[x,b]=l.useState(null),[w,S]=l.useState(null),[E,N]=l.useState(!1),T=Wo(u),[R,O]=hn({prop:r,defaultProp:o??!1,onChange:i,caller:Se}),[v,C]=hn({prop:s,defaultProp:a,onChange:d,caller:Se}),P=l.useRef(null),A=x?y||!!x.closest("form"):!0,[j,L]=l.useState(new Set),_=Array.from(j).map(k=>k.props.value).join(";");return c.jsx(Wi,{...f,children:c.jsxs(Va,{required:g,scope:t,trigger:x,onTriggerChange:b,valueNode:w,onValueNodeChange:S,valueNodeHasChildren:E,onValueNodeHasChildrenChange:N,contentId:Yt(),value:v,onValueChange:C,open:R,onOpenChange:O,dir:T,triggerPointerDownPosRef:P,disabled:m,children:[c.jsx(lt.Provider,{scope:t,children:c.jsx($a,{scope:e.__scopeSelect,onNativeOptionAdd:l.useCallback(k=>{L(D=>new Set(D).add(k))},[]),onNativeOptionRemove:l.useCallback(k=>{L(D=>{const M=new Set(D);return M.delete(k),M})},[]),children:n})}),A?c.jsxs(ro,{"aria-hidden":!0,required:g,tabIndex:-1,name:h,autoComplete:p,value:v,onCh
41ange:k=>C(k.target.value),disabled:m,form:y,children:[v===void 0?c.jsx("option",{value:""}):null,Array.from(j)]},_):null]})})};Mr.displayName=Se;var Lr="SelectTrigger",kr=l.forwardRef((e,t)=>{const{__scopeSelect:n,disabled:r=!1,...o}=e,i=dt(n),s=pe(Lr,n),a=s.disabled||r,d=Q(t,s.onTriggerChange),u=ut(n),h=l.useRef("touch"),[p,m,g]=so(f=>{const x=u().filter(S=>!S.disabled),b=x.find(S=>S.value===s.value),w=io(x,f,b);w!==void 0&&s.onValueChange(w.value)}),y=f=>{a||(s.onOpenChange(!0),g()),f&&(s.triggerPointerDownPosRef.current={x:Math.round(f.pageX),y:Math.round(f.pageY)})};return c.jsx(Hi,{asChild:!0,...i,children:c.jsx($.button,{type:"button",role:"combobox","aria-controls":s.contentId,"aria-expanded":s.open,"aria-required":s.required,"aria-autocomplete":"none",dir:s.dir,"data-state":s.open?"open":"closed",disabled:a,"data-disabled":a?"":void 0,"data-placeholder":oo(s.value)?"":void 0,...o,ref:d,onClick:z(o.onClick,f=>{f.currentTarget.focus(),h.current!=="mouse"&&y(f)}),onPointerDown:z(o.onPointerDown,f=>{h.current=f.pointerType;const x=f.target;x.hasPointerCapture(f.pointerId)&&x.releasePointerCapture(f.pointerId),f.button===0&&f.ctrlKey===!1&&f.pointerType==="mouse"&&(y(f),f.preventDefault())}),onKeyDown:z(o.onKeyDown,f=>{const x=p.current!=="";!(f.ctrlKey||f.altKey||f.metaKey)&&f.key.length===1&&m(f.key),!(x&&f.key===" ")&&Ba.includes(f.key)&&(y(),f.preventDefault())})})})});kr.displayName=Lr;var Dr="SelectValue",_r=l.forwardRef((e,t)=>{const{__scopeSelect:n,className:r,style:o,children:i,placeholder:s="",...a}=e,d=pe(Dr,n),{onValueNodeHasChildrenChange:u}=d,h=i!==void 0,p=Q(t,d.onValueNodeChange);return J(()=>{u(h)},[u,h]),c.jsx($.span,{...a,ref:p,style:{pointerEvents:"none"},children:oo(d.value)?c.jsx(c.Fragment,{children:s}):i})});_r.displayName=Dr;var za="SelectIcon",Fr=l.forwardRef((e,t)=>{const{__scopeSelect:n,children:r,...o}=e;return c.jsx($.span,{"aria-hidden":!0,...o,ref:t,children:r||"â¼"})});Fr.displayName=za;var Ka="SelectPortal",Br=e=>c.jsx(Cr,{asChild:!0,...e});Br.displayName=Ka;var Ce="SelectContent",Wr=l.forwardRef((e,t)=>{const n=pe(Ce,e.__scopeSelect),[r,o]=l.useState();if(J(()=>{o(new DocumentFragment)},[]),!n.open){const i=r;return i?Qt.createPortal(c.jsx(Hr,{scope:e.__scopeSelect,children:c.jsx(lt.Slot,{scope:e.__scopeSelect,children:c.jsx("div",{children:e.children})})}),i):null}return c.jsx(Vr,{...e,ref:t})});Wr.displayName=Ce;var ee=10,[Hr,me]=Le(Ce),Qa="SelectContentImpl",Ya=zi("SelectContent.RemoveScroll"),Vr=l.forwardRef((e,t)=>{const{__scopeSelect:n,position:r="item-aligned",onCloseAutoFocus:o,onEscapeKeyDown:i,onPointerDownOutside:s,side:a,sideOffset:d,align:u,alignOffset:h,arrowPadding:p,collisionBoundary:m,collisionPadding:g,sticky:y,hideWhenDetached:f,avoidCollisions:x,...b}=e,w=pe(Ce,n),[S,E]=l.useState(null),[N,T]=l.useState(null),R=Q(t,I=>E(I)),[O,v]=l.useState(null),[C,P]=l.useState(null),A=ut(n),[j,L]=l.useState(!1),_=l.useRef(!1);l.useEffect(()=>{if(S)return ra(S)},[S]),ys();const k=l.useCallback(I=>{const[H,...K]=A().map(U=>U.ref.current),[B]=K.slice(-1),W=document.activeElement;for(const U of I)if(U===W||(U?.scrollIntoView({block:"nearest"}),U===H&&N&&(N.scrollTop=0),U===B&&N&&(N.scrollTop=N.scrollHeight),U?.focus(),document.activeElement!==W))return},[A,N]),D=l.useCallback(()=>k([O,S]),[k,O,S]);l.useEffect(()=>{j&&D()},[j,D]);const{onOpenChange:M,triggerPointerDownPosRef:F}=w;l.useEffect(()=>{if(S){let I={x:0,y:0};const H=B=>{I={x:Math.abs(Math.round(B.pageX)-(F.current?.x??0)),y:Math.abs(Math.round(B.pageY)-(F.current?.y??0))}},K=B=>{I.x<=10&&I.y<=10?B.preventDefault():S.contains(B.target)||M(!1),document.removeEventListener("pointermove",H),F.current=null};return F.current!==null&&(document.addEventListener("pointermove",H),document.addEventListener("pointerup",K,{capture:!0,once:!0})),()=>{document.removeEventListener("pointermove",H),document.removeEventListener("pointerup",K,{capture:!0})}}},[S,M,F]),l.useEffect(()=>{const I=()=>M(!1);return window.addEventListener("blur",I),window.addEventListener("resize",I),()=>{window.removeEventListener("blur",I),window.removeEventListener("resize",I)}},[M]);const[Y,ge]=so(I=>{const H=A().filter(W=>!W.disabled),K=H.find(W=>W.ref.current===document.activeElement),B=io(H,I,K);B&&setTimeout(()=>B.ref.current.focus())}),ke=l.useCallback((I,H,K)=>{const B=!_.current&&!K;(w.value!==void 0&&w.value===H||B)&&(v(I),B&&(_.current=!0))},[w.value]),De=l.useCallback(()=>S?.focus(),[S]),le=l.useCallback((I,H,K)=>{const B=!_.current&&!K;(w.value!==void 0&&w.value===H||B)&&P(I)},[w.value]),Ee=r==="popper"?Vt:$r,ve=Ee===Vt?{side:a,sideOffset:d,align:u,alignOffset:h,arrowPadding:p,collisionBoundary:m,collisionPadding:g,sticky:y,hideWhenDetached:f,avoidCollisions:x}:{};return c.jsx(Hr,{scope:n,content:S,viewport:N,onViewportChange:T,itemRefCallback:ke,selectedItem:O,onItemLeave:De,itemTextRefCallback:le,focusSelectedItem:D,selectedItemText:C,position:r,isPositioned:j,searchRef:Y,children:c.jsx(Ir,{as:Ya,allowPinchZoom:!0,children:c.jsx(Jn,{asChild:!0,trapped:w.open,onMountAutoFocus:I=>{I.preventDefault()},onUnmountAutoFocus:z(o,I=>{w.trigger?.focus({preventScroll:!0}),I.preventDefault()}),children:c.jsx(Gn,{asChild:!0,disableOutsidePointerEvents:!0,onEscapeKeyDown:i,onPointerDownOutside:s,onFocusOutside:I=>I.preventDefault(),onDismiss:()=>w.onOpenChange(!1),children:c.jsx(Ee,{role:"listbox",id:w.contentId,"data-state":w.open?"open":"closed",dir:w.dir,onContextMenu:I=>I.preventDefault(),...b,...ve,onPlaced:()=>L(!0),ref:R,style:{display:"flex",flexDirection:"column",outline:"none",...b.style},onKeyDown:z(b.onKeyDown,I=>{const H=I.ctrlKey||I.altKey||I.metaKey;if(I.key==="Tab"&&I.preventDefault(),!H&&I.key.length===1&&ge(I.key),["ArrowUp","ArrowDown","Home","End"].includes(I.key)){let B=A().filter(W=>!W.disabled).map(W=>W.ref.current);if(["ArrowUp","End"].includes(I.key)&&(B=B.slice().reverse()),["ArrowUp","ArrowDown"].includes(I.key)){const W=I.target,U=B.indexOf(W);B=B.slice(U+1)}setTimeout(()=>k(B)),I.preventDefault()}})})})})})})});Vr.displayName=Qa;var Xa="SelectItemAlignedPosition",$r=l.forwardRef((e,t)=>
41{const{__scopeSelect:n,onPlaced:r,...o}=e,i=pe(Ce,n),s=me(Ce,n),[a,d]=l.useState(null),[u,h]=l.useState(null),p=Q(t,R=>h(R)),m=ut(n),g=l.useRef(!1),y=l.useRef(!0),{viewport:f,selectedItem:x,selectedItemText:b,focusSelectedItem:w}=s,S=l.useCallback(()=>{if(i.trigger&&i.valueNode&&a&&u&&f&&x&&b){const R=i.trigger.getBoundingClientRect(),O=u.getBoundingClientRect(),v=i.valueNode.getBoundingClientRect(),C=b.getBoundingClientRect();if(i.dir!=="rtl"){const W=C.left-O.left,U=v.left-W,G=R.left-U,xe=R.width+G,ft=Math.max(xe,O.width),ht=window.innerWidth-ee,pt=vn(U,[ee,Math.max(ee,ht-ft)]);a.style.minWidth=xe+"px",a.style.left=pt+"px"}else{const W=O.right-C.right,U=window.innerWidth-v.right-W,G=window.innerWidth-R.right-U,xe=R.width+G,ft=Math.max(xe,O.width),ht=window.innerWidth-ee,pt=vn(U,[ee,Math.max(ee,ht-ft)]);a.style.minWidth=xe+"px",a.style.right=pt+"px"}const P=m(),A=window.innerHeight-ee*2,j=f.scrollHeight,L=window.getComputedStyle(u),_=parseInt(L.borderTopWidth,10),k=parseInt(L.paddingTop,10),D=parseInt(L.borderBottomWidth,10),M=parseInt(L.paddingBottom,10),F=_+k+j+M+D,Y=Math.min(x.offsetHeight*5,F),ge=window.getComputedStyle(f),ke=parseInt(ge.paddingTop,10),De=parseInt(ge.paddingBottom,10),le=R.top+R.height/2-ee,Ee=A-le,ve=x.offsetHeight/2,I=x.offsetTop+ve,H=_+k+I,K=F-H;if(H<=le){const W=P.length>0&&x===P[P.length-1].ref.current;a.style.bottom="0px";const U=u.clientHeight-f.offsetTop-f.offsetHeight,G=Math.max(Ee,ve+(W?De:0)+U+D),xe=H+G;a.style.height=xe+"px"}else{const W=P.length>0&&x===P[0].ref.current;a.style.top="0px";const G=Math.max(le,_+f.offsetTop+(W?ke:0)+ve)+K;a.style.height=G+"px",f.scrollTop=H-le+f.offsetTop}a.style.margin=`${ee}px 0`,a.style.minHeight=Y+"px",a.style.maxHeight=A+"px",r?.(),requestAnimationFrame(()=>g.current=!0)}},[m,i.trigger,i.valueNode,a,u,f,x,b,i.dir,r]);J(()=>S(),[S]);const[E,N]=l.useState();J(()=>{u&&N(window.getComputedStyle(u).zIndex)},[u]);const T=l.useCallback(R=>{R&&y.current===!0&&(S(),w?.(),y.current=!1)},[S,w]);return c.jsx(Ga,{scope:n,contentWrapper:a,shouldExpandOnScrollRef:g,onScrollButtonChange:T,children:c.jsx("div",{ref:d,style:{display:"flex",flexDirection:"column",position:"fixed",zIndex:E},children:c.jsx($.div,{...o,ref:p,style:{boxSizing:"border-box",maxHeight:"100%",...o.style}})})})});$r.displayName=Xa;var qa="SelectPopperPosition",Vt=l.forwardRef((e,t)=>{const{__scopeSelect:n,align:r="start",collisionPadding:o=ee,...i}=e,s=dt(n);return c.jsx(Vi,{...s,...i,ref:t,align:r,collisionPadding:o,style:{boxSizing:"border-box",...i.style,"--radix-select-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-select-content-available-width":"var(--radix-popper-available-width)","--radix-select-content-available-height":"var(--radix-popper-available-height)","--radix-select-trigger-width":"var(--radix-popper-anchor-width)","--radix-select-trigger-height":"var(--radix-popper-anchor-height)"}})});Vt.displayName=qa;var[Ga,on]=Le(Ce,{}),$t="SelectViewport",Ur=l.forwardRef((e,t)=>{const{__scopeSelect:n,nonce:r,...o}=e,i=me($t,n),s=on($t,n),a=Q(t,i.onViewportChange),d=l.useRef(0);return c.jsxs(c.Fragment,{children:[c.jsx("style",{dangerouslySetInnerHTML:{__html:"[data-radix-select-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-select-viewport]::-webkit-scrollbar{display:none}"},nonce:r}),c.jsx(lt.Slot,{scope:n,children:c.jsx($.div,{"data-radix-select-viewport":"",role:"presentation",...o,ref:a,style:{position:"relative",flex:1,overflow:"hidden auto",...o.style},onScroll:z(o.onScroll,u=>{const h=u.currentTarget,{contentWrapper:p,shouldExpandOnScrollRef:m}=s;if(m?.current&&p){const g=Math.abs(d.current-h.scrollTop);if(g>0){const y=window.innerHeight-ee*2,f=parseFloat(p.style.minHeight),x=parseFloat(p.style.height),b=Math.max(f,x);if(b<y){const w=b+g,S=Math.min(y,w),E=w-S;p.style.height=S+"px",p.style.bottom==="0px"&&(h.scrollTop=E>0?E:0,p.style.justifyContent="flex-end")}}}d.current=h.scrollTop})})})]})});Ur.displayName=$t;var zr="SelectGroup",[Za,Ja]=Le(zr),ec=l.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e,o=Yt();return c.jsx(Za,{scope:n,id:o,children:c.jsx($.div,{role:"group","aria-labelledby":o,...r,ref:t})})});ec.displayName=zr;var Kr="SelectLabel",Qr=l.forwardRef((e,t)=>
41{const{__scopeSelect:n,...r}=e,o=Ja(Kr,n);return c.jsx($.div,{id:o.id,...r,ref:t})});Qr.displayName=Kr;var nt="SelectItem",[tc,Yr]=Le(nt),Xr=l.forwardRef((e,t)=>{const{__scopeSelect:n,value:r,disabled:o=!1,textValue:i,...s}=e,a=pe(nt,n),d=me(nt,n),u=a.value===r,[h,p]=l.useState(i??""),[m,g]=l.useState(!1),y=Q(t,w=>d.itemRefCallback?.(w,r,o)),f=Yt(),x=l.useRef("touch"),b=()=>{o||(a.onValueChange(r),a.onOpenChange(!1))};if(r==="")throw new Error("A <Select.Item /> must have a value prop that is not an empty string. This is because the Select value can be set to an empty string to clear the selection and show the placeholder.");return c.jsx(tc,{scope:n,value:r,disabled:o,textId:f,isSelected:u,onItemTextChange:l.useCallback(w=>{p(S=>S||(w?.textContent??"").trim())},[]),children:c.jsx(lt.ItemSlot,{scope:n,value:r,disabled:o,textValue:h,children:c.jsx($.div,{role:"option","aria-labelledby":f,"data-highlighted":m?"":void 0,"aria-selected":u&&m,"data-state":u?"checked":"unchecked","aria-disabled":o||void 0,"data-disabled":o?"":void 0,tabIndex:o?void 0:-1,...s,ref:y,onFocus:z(s.onFocus,()=>g(!0)),onBlur:z(s.onBlur,()=>g(!1)),onClick:z(s.onClick,()=>{x.current!=="mouse"&&b()}),onPointerUp:z(s.onPointerUp,()=>{x.current==="mouse"&&b()}),onPointerDown:z(s.onPointerDown,w=>{x.current=w.pointerType}),onPointerMove:z(s.onPointerMove,w=>{x.current=w.pointerType,o?d.onItemLeave?.():x.current==="mouse"&&w.currentTarget.focus({preventScroll:!0})}),onPointerLeave:z(s.onPointerLeave,w=>{w.currentTarget===document.activeElement&&d.onItemLeave?.()}),onKeyDown:z(s.onKeyDown,w=>{d.searchRef?.current!==""&&w.key===" "||(Wa.includes(w.key)&&b(),w.key===" "&&w.preventDefault())})})})})});Xr.displayName=nt;var Fe="SelectItemText",qr=l.forwardRef((e,t)=>{const{__scopeSelect:n,className:r,style:o,...i}=e,s=pe(Fe,n),a=me(Fe,n),d=Yr(Fe,n),u=Ua(Fe,n),[h,p]=l.useState(null),m=Q(t,b=>p(b),d.onItemTextChange,b=>a.itemTextRefCallback?.(b,d.value,d.disabled)),g=h?.textContent,y=l.useMemo(()=>c.jsx("option",{value:d.value,disabled:d.disabled,children:g},d.value),[d.disabled,d.value,g]),{onNativeOptionAdd:f,onNativeOptionRemove:x}=u;return J(()=>(f(y),()=>x(y)),[f,x,y]),c.jsxs(c.Fragment,{children:[c.jsx($.span,{id:d.textId,...i,ref:m}),d.isSelected&&s.valueNode&&!s.valueNodeHasChildren?Qt.createPortal(i.children,s.valueNode):null]})});qr.displayName=Fe;var Gr="SelectItemIndicator",Zr=l.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e;return Yr(Gr,n).isSelected?c.jsx($.span,{"aria-hidden":!0,...r,ref:t}):null});Zr.displayName=Gr;var Ut="SelectScrollUpButton",Jr=l.forwardRef((e,t)=>{const n=me(Ut,e.__scopeSelect),r=on(Ut,e.__scopeSelect),[o,i]=l.useState(!1),s=Q(t,r.onScrollButtonChange);return J(()=>{if(n.viewport&&n.isPositioned){let a=function(){const u=d.scrollTop>0;i(u)};const d=n.viewport;return a(),d.addEventListener("scroll",a),()=>d.removeEventListener("scroll",a)}},[n.viewport,n.isPositioned]),o?c.jsx(to,{...e,ref:s,onAutoScroll:()=>{const{viewport:a,selectedItem:d}=n;a&&d&&(a.scrollTop=a.scrollTop-d.offsetHeight)}}):null});Jr.displayName=Ut;var zt="SelectScrollDownButton",eo=l.forwardRef((e,t)=>{const n=me(zt,e.__scopeSelect),r=on(zt,e.__scopeSelect),[o,i]=l.useState(!1),s=Q(t,r.onScrollButtonChange);return J(()=>{if(n.viewport&&n.isPositioned){let a=function(){const u=d.scrollHeight-d.clientHeight,h=Math.ceil(d.scrollTop)<u;i(h)};const d=n.viewport;return a(),d.addEventListener("scroll",a),()=>d.removeEventListener("scroll",a)}},[n.viewport,n.isPositioned]),o?c.jsx(to,{...e,ref:s,onAutoScroll:()=>{const{viewport:a,selectedItem:d}=n;a&&d&&(a.scrollTop=a.scrollTop+d.offsetHeight)}}):null});eo.displayName=zt;var to=l.forwardRef((e,t)=>{const{__scopeSelect:n,onAutoScroll:r,...o}=e,i=me("SelectScrollButton",n),s=l.useRef(null),a=ut(n),d=l.useCallback(()=>{s.current!==null&&(window.clearInterval(s.current),s.current=null)},[]);return l.useEffect(()=>()=>d(),[d]),J(()=>{a().find(h=>h.ref.current===document.activeElement)?.ref.current?.scrollIntoView({block:"nearest"})},[a]),c.jsx($.div,{"aria-hidden":!0,...o,ref:t,style:{flexShrink:0,...o.style},onPointerDown:z(o.onPointerDown,()=>{s.current===null&&(s.current=window.setInterval(r,50))}),onPointerMove:z(o.onPointerMove,()=>{i.onItemLeave?.(),s.current===null&&(s.current=window.setInterval(r,50))}),onPointerLeave:z(o.onPointerLeave,()=>{d()})})}),nc="SelectSeparator",no=l.forwardRef((e,t)=>
41{const{__scopeSelect:n,...r}=e;return c.jsx($.div,{"aria-hidden":!0,...r,ref:t})});no.displayName=nc;var Kt="SelectArrow",rc=l.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e,o=dt(n),i=pe(Kt,n),s=me(Kt,n);return i.open&&s.position==="popper"?c.jsx($i,{...o,...r,ref:t}):null});rc.displayName=Kt;var oc="SelectBubbleInput",ro=l.forwardRef(({__scopeSelect:e,value:t,...n},r)=>{const o=l.useRef(null),i=Q(r,o),s=Gi(t);return l.useEffect(()=>{const a=o.current;if(!a)return;const d=window.HTMLSelectElement.prototype,h=Object.getOwnPropertyDescriptor(d,"value").set;if(s!==t&&h){const p=new Event("change",{bubbles:!0});h.call(a,t),a.dispatchEvent(p)}},[s,t]),c.jsx($.select,{...n,style:{...Er,...n.style},ref:i,defaultValue:t})});ro.displayName=oc;function oo(e){return e===""||e===void 0}function so(e){const t=we(e),n=l.useRef(""),r=l.useRef(0),o=l.useCallback(s=>{const a=n.current+s;t(a),(function d(u){n.current=u,window.clearTimeout(r.current),u!==""&&(r.current=window.setTimeout(()=>d(""),1e3))})(a)},[t]),i=l.useCallback(()=>{n.current="",window.clearTimeout(r.current)},[]);return l.useEffect(()=>()=>window.clearTimeout(r.current),[]),[n,o,i]}function io(e,t,n){const o=t.length>1&&Array.from(t).every(u=>u===t[0])?t[0]:t,i=n?e.indexOf(n):-1;let s=sc(e,Math.max(i,0));o.length===1&&(s=s.filter(u=>u!==n));const d=s.find(u=>u.textValue.toLowerCase().startsWith(o.toLowerCase()));return d!==n?d:void 0}function sc(e,t){return e.map((n,r)=>e[(t+r)%e.length])}var ic=Mr,ao=kr,ac=_r,cc=Fr,lc=Br,co=Wr,uc=Ur,lo=Qr,uo=Xr,dc=qr,fc=Zr,fo=Jr,ho=eo,po=no;const hc=ic,pc=ac,mo=l.forwardRef(({className:e,children:t,...n},r)=>c.jsxs(ao,{ref:r,className:V("flex h-9 w-full items-center justify-between whitespace-nowrap rounded-md border border-input bg-transparent px-3 py-2 text-sm shadow-sm ring-offset-background cursor-pointer data-[placeholder]:text-muted-foreground focus:outline-none focus:ring-1 focus:ring-ring disabled:cursor-not-allowed disabled:opacity-50 [&>span]:line-clamp-1",e),...n,children:[t,c.jsx(cc,{asChild:!0,children:c.jsx(rt,{className:"h-4 w-4 opacity-50"})})]}));mo.displayName=ao.displayName;const go=l.forwardRef(({className:e,...t},n)=>c.jsx(fo,{ref:n,className:V("flex cursor-default items-center justify-center py-1",e),...t,children:c.jsx($o,{className:"h-4 w-4"})}));go.displayName=fo.displayName;const vo=l.forwardRef(({className:e,...t},n)=>c.jsx(ho,{ref:n,className:V("flex cursor-default items-center justify-center py-1",e),...t,children:c.jsx(rt,{className:"h-4 w-4"})}));vo.displayName=ho.displayName;const xo=l.forwardRef(({className:e,children:t,position:n="popper",...r},o)=>c.jsx(lc,{children:c.jsxs(co,{ref:o,className:V("relative z-50 max-h-(--radix-select-content-available-height) min-w-[8rem] overflow-y-auto overflow-x-hidden rounded-md border bg-popover text-popover-foreground shadow-md data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 origin-(--radix-select-content-transform-origin)",n==="popper"&&"data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1",e),position:n,...r,children:[c.jsx(go,{}),c.jsx(uc,{className:V("p-1",n==="popper"&&"h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)]"),children:t}),c.jsx(vo,{})]})}));xo.displayName=co.displayName;const mc=l.forwardRef(({className:e,...t},n)=>c.jsx(lo,{ref:n,className:V("px-2 py-1.5 text-sm font-semibold",e),...t}));mc.displayName=lo.displayName;const Ge=l.forwardRef(({className:e,children:t,...n},r)=>c.jsxs(uo,{ref:r,className:V("relative flex w-full cursor-default select-none items-center rounded-sm py-1.5 pl-2 pr-8 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",e),...n,children:[c.jsx("span",{className:"absolute right-2 flex h-3.5 w-3.5 items-center justify-center",children:c.jsx(fc,{children:c.jsx(Vo,{className:"h-4 w-4"})})}),c.jsx(dc,{children:t})]}));Ge.displayName=uo.displayName;const gc=l.forwardRef(({className:e,...t},n)=>c.jsx(po,{ref:n,className:V("-mx-1 my-1 h-px bg-muted",e),...t}));gc.displayName=po.displayName;const vc={Guide:"bg-primary-muted text-primary",Video:"bg-accent/15 text-accent","Blog Post":"bg-foreground
41/10 text-foreground","Case Study":"bg-primary-muted text-primary",Tool:"bg-accent/15 text-accent"},xc={Guide:"Read the guide",Video:"Watch now","Blog Post":"Read article","Case Study":"Read case study",Tool:"Try the tool"};function Hn({r:e,large:t=!1}){return c.jsxs(Lo,{to:"/resources/$slug/",params:{slug:e.slug},className:V("group rounded-xl border border-border-subtle bg-card flex flex-col h-full card-hover overflow-hidden",t&&"md:flex-row md:col-span-full"),children:[c.jsxs("div",{className:V("relative bg-gradient-to-br from-primary/25 via-primary/10 to-transparent",t?"h-56 md:h-auto md:w-2/5 md:min-h-[280px]":"h-44"),children:[e.featured&&c.jsxs("span",{className:"absolute top-3 left-3 inline-flex items-center gap-1 px-2 py-1 rounded-md bg-foreground text-background text-caption font-semibold",children:[c.jsx(kt,{className:"w-3 h-3 fill-current"})," Editor's Pick"]}),c.jsx("div",{className:"absolute inset-0 flex items-center justify-center",children:c.jsx("div",{className:V("rounded-full bg-card/80 backdrop-blur flex items-center justify-center border border-border-subtle",t?"w-24 h-24":"w-16 h-16"),children:c.jsx("span",{className:V("text-primary font-bold",t?"text-h2":"text-h3"),children:e.title.charAt(0)})})})]}),c.jsxs("div",{className:V("p-6 flex flex-col flex-1",t&&"md:p-8 md:justify-center"),children:[c.jsxs("div",{className:"mb-3 flex flex-wrap gap-2",children:[c.jsx("span",{className:V("inline-block px-2.5 py-1 rounded-md text-caption font-semibold uppercase tracking-wide",vc[e.type]),children:e.type}),c.jsx("span",{className:"inline-block px-2.5 py-1 rounded-md text-caption font-medium bg-muted text-foreground-muted",children:e.goal})]}),c.jsx("h3",{className:V("text-foreground font-semibold mb-3 group-hover:text-primary transition-colors",t?"text-h3":"text-h4"),children:e.title}),c.jsx("p",{className:V("text-foreground-muted flex-1 mb-4",t?"text-body line-clamp-4":"text-body-sm line-clamp-3"),children:e.excerpt}),c.jsxs("div",{className:"flex items-center justify-between gap-3 pt-4 border-t border-border-subtle",children:[c.jsxs("span",{className:"flex items-center gap-2 text-caption text-foreground-muted",children:[c.jsx(Uo,{className:"w-3.5 h-3.5"}),e.readTime," · ",e.level]}),c.jsxs("span",{className:"inline-flex items-center gap-1.5 text-primary text-body-sm font-medium",children:[xc[e.type],c.jsx(Qo,{className:"w-4 h-4 transition-transform group-hover:translate-x-0.5"})]})]})]})]})}function yo({label:e,count:t,checked:n,onToggle:r,indent:o=!1}){const i=!n&&t===0;return c.jsx("li",{children:c.jsxs("label",{className:V("w-full flex items-center justify-between gap-2 py-1.5 px-2 rounded-md cursor-pointer text-body-sm transition-colors",n?"text-foreground font-medium":"text-foreground-muted hover:text-foreground hover:bg-muted",i&&"opacity-40 cursor-not-allowed hover:bg-transparent",o&&"pl-7"),children:[c.jsxs("span",{className:"inline-flex items-center gap-2 min-w-0",children:[c.jsx("input",{type:"checkbox",className:"h-4 w-4 accent-primary shrink-0",checked:n,disabled:i,onChange:r}),c.jsx("span",{className:"truncate",children:e})]}),c.jsx("span",{className:"text-caption text-foreground-muted shrink-0",children:t})]})})}function Te({label:e,options:t,selected:n,onToggle:r,initialVisible:o=5}){const[i,s]=l.useState(!1),a=i?t:t.filter((u,h)=>h<o||n.includes(u.value)),d=t.length>o;return c.jsxs("div",{className:"border-t border-border-subtle pt-5",children:[c.jsx("p",{className:"text-overline text-foreground-muted mb-3",children:e}),c.jsx("ul",{className:"space-y-0.5",children:a.map(u=>c.jsx(yo,{label:u.label,count:u.count,checked:n.includes(u.value),onToggle:()=>r(u.value)},u.value))}),d&&c.jsx("button",{type:"button",onClick:()=>s(u=>!u),className:"mt-2 ml-2 text-body-sm text-primary hover:underline",children:i?"View less":"View more"})]})}function Vn({topicCounts:e,subtopicCounts:t,selectedTopics:n,selectedSubtopics:r,onToggleTopic:o,onToggleSubto
41pic:i}){const[s,a]=l.useState({}),d=u=>s[u]!==void 0?s[u]:n.includes(u)?!0:dn[u].some(h=>r.includes(h));return c.jsxs("div",{className:"border-t border-border-subtle pt-5",children:[c.jsx("p",{className:"text-overline text-foreground-muted mb-3",children:"Topic"}),c.jsx("ul",{className:"space-y-0.5",children:Kn.map(u=>{const h=dn[u],p=d(u),m=n.includes(u),g=e[u]??0,y=!m&&g===0;return c.jsxs("li",{children:[c.jsxs("div",{className:V("flex items-center justify-between gap-2 py-1.5 px-2 rounded-md text-body-sm transition-colors",m?"text-foreground font-medium":"text-foreground-muted hover:bg-muted",y&&"opacity-40"),children:[c.jsxs("label",{className:"inline-flex items-center gap-2 min-w-0 cursor-pointer flex-1",children:[c.jsx("input",{type:"checkbox",className:"h-4 w-4 accent-primary shrink-0",checked:m,disabled:y,onChange:()=>o(u)}),c.jsx("span",{className:"truncate",children:u})]}),c.jsxs("div",{className:"flex items-center gap-1 shrink-0",children:[c.jsx("span",{className:"text-caption text-foreground-muted",children:g}),c.jsx("button",{type:"button","aria-label":p?"Collapse subtopics":"Expand subtopics",onClick:()=>a(f=>({...f,[u]:!p})),className:"p-1 rounded hover:bg-muted text-foreground-muted",children:c.jsx(rt,{className:V("w-3.5 h-3.5 transition-transform",p&&"rotate-180")})})]})]}),p&&c.jsx("ul",{className:"space-y-0.5 mt-0.5 mb-1",children:h.map(f=>c.jsx(yo,{label:f,count:t[f]??0,checked:r.includes(f),onToggle:()=>i(f),indent:!0},f))})]},u)})})]})}function jc(){const e=ln.useSearch(),t=To({from:ln.fullPath}),[n,r]=l.useState(!1);l.useEffect(()=>{if(typeof window>"u")return;const v=new URLSearchParams(window.location.search),C=new Set(["page","q","type","topic","subtopic","goal","level","featured","sort"]),P=j=>C.has(j)||j.startsWith("__");let A=!1;for(const j of Array.from(v.keys()))P(j)||(v.delete(j),A=!0);if(A){const j=v.toString(),L=`${window.location.pathname}${j?`?${j}`:""}${window.location.hash}`;window.history.replaceState(window.history.state,"",L)}},[]);const{data:o}=cs({queryKey:["resource-view-counts"],queryFn:async()=>{const{data:v,error:C}=await ko.from("resource_views").select("slug, view_count");if(C)return{};const P={};for(const A of v??[])P[A.slug]=Number(A.view_count)||0;return P},staleTime:6e4}),i=(v,C={})=>{t({search:P=>{const A={...P,...v};return C.resetPage&&(A.page=1),A},replace:C.resetPage??!1,resetScroll:C.resetScroll??!1})},s=(v,C)=>{const P=e[v],A=P.includes(C)?P.filter(j=>j!==C):[...P,C];i({[v]:A},{resetPage:!0})},a=(v,C={})=>{const P=C.type??e.type,A=C.topic??e.topic,j=C.subtopic??e.subtopic,L=C.goal??e.goal,_=C.level??e.level,k=C.featured??e.featured,D=(C.q??e.q).trim().toLowerCase();return!(P.length&&!P.includes(v.type)||A.length&&!A.includes(v.topic)||j.length&&(!v.subtopic||!j.includes(v.subtopic))||L.length&&!L.includes(v.goal)||_.length&&!_.includes(v.level)||k&&!v.featured||D&&!`${v.t
41itle} ${v.excerpt}`.toLowerCase().includes(D))},d=l.useMemo(()=>{const v=mt.filter(C=>a(C));return v.sort((C,P)=>{if(e.sort==="oldest")return C.date.localeCompare(P.date);if(e.sort==="popular"){const A=o?.[C.slug]??0,j=o?.[P.slug]??0;return j!==A?j-A:P.date.localeCompare(C.date)}return P.date.localeCompare(C.date)}),v},[e,o]),u=Math.max(1,Math.ceil(d.length/un)),h=Math.min(e.page,u),p=h*un,m=d.slice(0,p),g=d.length>p,y=e.type.length>0||e.topic.length>0||e.subtopic.length>0||e.goal.length>0||e.level.length>0||e.featured||e.q!=="",f=!y&&h===1?mt.find(v=>v.featured&&v.slug===d[0]?.slug)??null:null,x=f?m.filter(v=>v.slug!==f.slug):m,b=()=>t({search:{page:1,q:"",type:[],topic:[],subtopic:[],goal:[],level:[],featured:!1,sort:"newest"},replace:!0,resetScroll:!1}),w=v=>{const C=new URLSearchParams;e.q&&C.set("q",e.q),e.type.length&&C.set("type",_e(e.type)),e.topic.length&&C.set("topic",_e(e.topic)),e.subtopic.length&&C.set("subtopic",_e(e.subtopic)),e.goal.length&&C.set("goal",_e(e.goal)),e.level.length&&C.set("level",_e(e.level)),e.featured&&C.set("featured","1"),e.sort!=="newest"&&C.set("sort",e.sort),v>1&&C.set("page",String(v));const P=C.toString();return`/resources/${P?`?${P}`:""}`},S=(v,C)=>mt.filter(P=>a(P,{[v]:[]})?v==="subtopic"?P.subtopic===C:P[v]===C:!1).length,E=Object.fromEntries(gt.map(v=>[v,S("type",v)])),N=Object.fromEntries(Kn.map(v=>[v,S("topic",v)])),T=Object.fromEntries(Oo.map(v=>[v,S("subtopic",v)])),R=Object.fromEntries(vt.map(v=>[v,S("goal",v)])),O=Object.fromEntries(xt.map(v=>[v,S("level",v)]));return c.jsxs(c.Fragment,{children:[c.jsx(Ko,{data:[Ao({type:"CollectionPage",url:"/resources/",name:"Resource Library",description:"Guides, webinars, and case studies on B2B SEO, CRO, analytics, and demand generation."}),jo([{name:"Home",url:"/"},{name:"Resources",url:"/resources/"}])]}),g&&c.jsx("link",{rel:"next",href:`${Io.replace(/\/$/,"")}${w(h+1)}`}),c.jsx(Do,{}),c.jsxs("main",{id:"main-content",children:[c.jsx(bt,{padding:"none",className:"pt-[72px]",children:c.jsx(yt,{className:"pt-4 md:pt-6 pb-12 md:pb-16",children:c.jsxs("div",{className:"mt-6 max-w-3xl mx-auto text-center",children:[c.jsx("p",{className:"text-overline text-primary mb-4",children:"Resource Library"}),c.jsx("h1",{className:"text-display-mobile md:text-display text-foreground mb-6",children:"Insights that drive growth."}),c.jsx("p",{className:"text-body-lg text-foreground-muted",children:"Explore guides, webinars, and case studies from the team that's driven $6B+ in client valuations through organic growth."})]})})}),c.jsx(bt,{padding:"none",children:c.jsx(yt,{children:c.jsxs("div",{className:"relative max-w-2xl mx-auto",children:[c.jsx(Mo,{className:"absolute left-4 top-1/2 -translate-y-1/2 w-5 h-5 text-foreground-muted"}),c.jsx(Xn,{placeholder:"Search by keyword...",value:e.q,onChange:v=>i({q:v.target.value},{resetPage:!0}),className:"pl-12 h-12 bg-card border-border text-foreground","aria-label":"Search resources"})]})})}),c.jsx(bt,{padding:"default",children:c.jsx(yt,{children:c.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-[260px_1fr] gap-8 lg:gap-12",children:[(()=>{const v=c.jsxs("div",{className:"space-y-6",children:[c.jsxs("div",{className:"flex items-center justify-between",children:[c.jsx("h2",{className:"text-h5 font-semibold text-foreground",children:"Filter by"}),y&&c.jsxs("button",{type:"button",onClick:b,className:"inline-flex items-center gap-1.5 text-body-sm text-foreground-muted hover:text-primary transition-colors",children:[c.jsx(fn,{className:"w-3.5 h-3.5"}),"Clear"]})]}),c.jsx("div",{className:"border-t border-border-subtle pt-5",children:c.jsxs("label",{className:"flex items-center justify-between gap-3 cursor-pointer",children:[c.jsxs("span",{className:"inline-flex items-center gap-2 text-body-sm text-foreground",children:[c.jsx(kt,{className:"w-4 h-4 text-primary"}),"Editor's Picks only"]}),c.jsx("input",{type:"checkbox",checked:e.featured,onChange:C=>i({featured:C.target.checked},{resetPage:!0}),className:"h-4 w-4 accent-primary"})]})}),c.jsx(Te,{label:"Content Type",selected:e.type,options:gt.map(C=>({value:C,label:C,count:E[C]??0})),onToggle:C=>s("type",C)}),c.jsx(Vn,{topicCounts:N,subtopicCounts:T,selectedTopics:e.topic,selectedSubtopics:e.subtopic,onToggleTopic:C=>
41s("topic",C),onToggleSubtopic:C=>s("subtopic",C)}),c.jsx(Te,{label:"Goal",selected:e.goal,options:vt.map(C=>({value:C,label:C,count:R[C]??0})),onToggle:C=>s("goal",C)}),c.jsx(Te,{label:"Experience Level",selected:e.level,options:xt.map(C=>({value:C,label:C,count:O[C]??0})),onToggle:C=>s("level",C)})]});return c.jsx("aside",{className:"hidden lg:block",children:v})})(),c.jsxs("div",{children:[c.jsxs("div",{className:"flex flex-wrap items-center justify-between gap-3 mb-6",children:[c.jsxs("p",{className:"text-body-sm text-foreground-muted",children:["Showing"," ",c.jsx("span",{className:"text-foreground font-semibold",children:m.length})," ","of"," ",c.jsx("span",{className:"text-foreground font-semibold",children:d.length})," ",d.length===1?"result":"results"]}),c.jsxs("div",{className:"flex items-center gap-2 ml-auto",children:[c.jsxs(wt,{variant:"outline",size:"sm",className:"lg:hidden h-10 gap-2",onClick:()=>r(v=>!v),"aria-expanded":n,"aria-controls":"mobile-filter-panel",children:[c.jsx(us,{className:"w-4 h-4"}),"Filters",e.type.length+e.topic.length+e.subtopic.length+e.goal.length+e.level.length+(e.featured?1:0)>0&&c.jsx("span",{className:"inline-flex items-center justify-center min-w-[20px] h-5 px-1.5 rounded-full bg-primary text-primary-foreground text-caption font-semibold",children:e.type.length+e.topic.length+e.subtopic.length+e.goal.length+e.level.length+(e.featured?1:0)}),c.jsx(rt,{className:V("w-4 h-4 transition-transform",n&&"rotate-180")})]}),c.jsxs(hc,{value:e.sort,onValueChange:v=>i({sort:v},{resetPage:!0}),children:[c.jsx(mo,{"aria-label":"Sort",className:"w-[160px] sm:w-[180px]",children:c.jsx(pc,{})}),c.jsxs(xo,{children:[c.jsx(Ge,{value:"popular",children:"Most popular"}),c.jsx(Ge,{value:"newest",children:"Newest first"}),c.jsx(Ge,{value:"oldest",children:"Oldest first"})]})]})]})]}),n&&c.jsx("div",{id:"mobile-filter-panel",className:"lg:hidden mb-6 rounded-xl border border-border-subtle bg-card p-5",children:c.jsxs("div",{className:"space-y-6",children:[c.jsxs("div",{className:"flex items-center justify-between",children:[c.jsx("h2",{className:"text-h5 font-semibold text-foreground",children:"Filter by"}),y&&c.jsxs("button",{type:"button",onClick:b,className:"inline-flex items-center gap-1.5 text-body-sm text-foreground-muted hover:text-primary transition-colors",children:[c.jsx(fn,{className:"w-3.5 h-3.5"}),"Clear"]})]}),c.jsx("div",{className:"border-t border-border-subtle pt-5",children:c.jsxs("label",{className:"flex items-center justify-between gap-3 cursor-pointer",children:[c.jsxs("span",{className:"inline-flex items-center gap-2 text-body-sm text-foreground",children:[c.jsx(kt,{className:"w-4 h-4 text-primary"}),"Editor's Picks only"]}),c.jsx("input",{type:"checkbox",checked:e.featured,onChange:v=>i({featured:v.target.checked},{resetPage:!0}),className:"h-4 w-4 accent-primary"})]})}),c.jsx(Te,{label:"Content Type",selected:e.type,options:gt.map(v=>({value:v,label:v,count:E[v]??0})),onToggle:v=>s("type",v)}),c.jsx(Vn,{topicCounts:N,subtopicCounts:T,selectedTopics:e.topic,selectedSubtopics:e.subtopic,onToggleTopic:v=>
41s("topic",v),onToggleSubtopic:v=>s("subtopic",v)}),c.jsx(Te,{label:"Goal",selected:e.goal,options:vt.map(v=>({value:v,label:v,count:R[v]??0})),onToggle:v=>s("goal",v)}),c.jsx(Te,{label:"Experience Level",selected:e.level,options:xt.map(v=>({value:v,label:v,count:O[v]??0})),onToggle:v=>s("level",v)}),c.jsxs(wt,{className:"w-full",onClick:()=>r(!1),children:["Show ",d.length," ",d.length===1?"result":"results"]})]})}),d.length===0?c.jsxs("div",{className:"text-center py-16",children:[c.jsx("p",{className:"text-body text-foreground-muted mb-4",children:"No resources match your filters."}),c.jsx(wt,{variant:"outline",onClick:b,children:"Clear filters"})]}):c.jsxs(c.Fragment,{children:[c.jsxs("div",{className:"grid sm:grid-cols-2 xl:grid-cols-3 gap-6 md:gap-8",children:[f&&c.jsx(Hn,{r:f,large:!0}),x.map(v=>c.jsx(Hn,{r:v},v.slug))]}),g&&c.jsxs("div",{className:"flex flex-col items-center gap-3 mt-12",children:[c.jsx("a",{href:w(h+1),onClick:v=>{v.metaKey||v.ctrlKey||v.shiftKey||v.altKey||v.button!==0||(v.preventDefault(),i({page:h+1}))},className:"inline-flex items-center justify-center h-11 px-8 rounded-md border border-border bg-card text-foreground font-medium hover:bg-muted transition-colors",rel:"next","aria-label":`Load more resources, page ${h+1}`,children:"Load more"}),c.jsxs("p",{className:"text-caption text-foreground-muted",children:["Page ",h," of ",u]})]})]})]})]})})}),c.jsx(zo,{title:"Want growth insights delivered?",description:"Join senior marketing leaders who receive our monthly strategy brief â zero fluff, all signal.",buttonText:"Subscribe to the Brief",buttonHref:"/contact/"})]}),c.jsx(_o,{breadcrumbs:[{label:"Home",href:"/"},{label:"Resources"}]})]})}export{jc as component};
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.