PageSourceSearch

https://galithin.vercel.app/_next/static/immutable/chunks/34d8p_3n3x05i.js

js galithin.vercel.app collected 2026-10-03 06:59:38 UTC 54,036 bytes, 6 lines download raw bytes

1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,973529,e=>{"use strict";var t,n,r=e.i(543526),o=e.i(377365),l=e.i(379814),i=e.i(832259),a=e.i(665706),s=e.i(713496);let c=(0,s.default)("chevron-down",[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]]),u=(0,s.default)("chevron-up",[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]]);var d=e.i(536216);function f(e,[t,n]){return Math.min(n,Math.max(t,e))}(0,Object.defineProperty)(f,"name",{value:"clamp",configurable:!0});var p=e.i(543836),h=e.i(464503),m=e.i(976173),v=e.i(950700),g=Object.defineProperty,x=(e,t)=>g(e,"name",{value:t,configurable:!0});function y(e){let t=e+"CollectionProvider",[n,o]=(0,h.createContextScope)(t),[l,a]=n(t,{collectionRef:{current:null},itemMap:new Map}),s=x(e=>{let{scope:t,children:n}=e,o=i.useRef(null),a=i.useRef(new Map).current;return(0,r.jsx)(l,{scope:t,itemMap:a,collectionRef:o,children:n})},"CollectionProvider");s.displayName=t;let c=e+"CollectionSlot",u=(0,v.createSlot)(c),d=i.forwardRef((e,t)=>{let{scope:n,children:o}=e,l=a(c,n),i=(0,m.useComposedRefs)(t,l.collectionRef);return(0,r.jsx)(u,{ref:i,children:o})});d.displayName=c;let f=e+"CollectionItemSlot",p="data-radix-collection-item",g=(0,v.createSlot)(f),y=i.forwardRef((e,t)=>{let{scope:n,children:o,...l}=e,s=i.useRef(null),c=(0,m.useComposedRefs)(t,s),u=a(f,n);return i.useEffect(()=>(u.itemMap.set(s,{ref:s,...l}),()=>void u.itemMap.delete(s))),(0,r.jsx)(g,{...{[p]:""},ref:c,children:o})});function b(t){let n=a(e+"CollectionConsumer",t);return i.useCallback(()=>{let e=n.collectionRef.current;if(!e)return[];let t=Array.from(e.querySelectorAll(`[${p}]`));return Array.from(n.itemMap.values()).sort((e,n)=>t.indexOf(e.ref.current)-t.indexOf(n.ref.current))},[n.collectionRef,n.itemMap])}return y.displayName=f,x(b,"useCollection"),[{Provider:s,Slot:d,ItemSlot:y},b,o]}x(y,"createCollection");var b=new WeakMap,w=class e extends Map{static{x(this,"OrderedDict")}#e;constructor(e){super(e),this.#e=[...super.keys()],b.set(this,!0)}set(e,t){return b.get(this)&&(this.has(e)?this.#e[this.#e.indexOf(e)]=e:this.#e.push(e)),super.set(e,t),this}insert(e,t,n){let r,o=this.has(t),l=this.#e.length,i=E(e),a=i>=0?i:l+i,s=a<0||a>=l?-1:a;if(s===this.size||o&&s===this.size-1||-1===s)return this.set(t,n),this;let c=this.size+ +!o;i<0&&a++;let u=[...this.#e],d=!1;for(let e=a;e<c;e++)if(a===e){let l=u[e];u[e]===t&&(l=u[e+1]),o&&this.delete(t),r=this.get(l),this.set(t,n)}else{d||u[e-1]!==t||(d=!0);let n=u[d?e:e-1],o=r;r=this.get(n),this.delete(n),this.set(n,o)}return this}with(t,n,r){let o=new e(this);return o.insert(t,n,r),o}before(e){let t=this.#e.indexOf(e)-1;if(!(t<0))return this.entryAt(t)}setBefore(e,t,n){let r=this.#e.indexOf(e);return -1===r?this:this.insert(r,t,n)}after(e){let t=this.#e.indexOf(e);if(-1!==(t=-1===t||t===this.size-1?-1:t+1))return this.entryAt(t)}setAfter(e,t,n){let r=this.#e.indexOf(e);return -1===r?this:this.insert(r+1,t,n)}first(){return this.entryAt(0)}last(){return this.entryAt(-1)}clear(){return this.#e=[],super.clear()}delete(e){let t=super.delete(e);return t&&this.#e.splice(this.#e.indexOf(e),1),t}deleteAt(e){let t=this.keyAt(e);return void 0!==t&&this.delete(t)}at(e){let t=S(this.#e,e);if(void 0!==t)return this.get(t)}entryAt(e){let t=S(this.#e,e);if(void 0!==t)return[t,this.get(t)]}indexOf(e){return this.#e.indexOf(e)}keyAt(e){return S(this.#e,e)}from(e,t){let n=this.indexOf(e);if(-1===n)return;let r=n+t;return r<0&&(r=0),r>=this.size&&(r=this.size-1),this.at(r)}keyFrom(e,t){let n=this.indexOf(e);if(-1===n)return;let r=n+t;return r<0&&(r=0),r>=this.size&&(r=this.size-1),this.keyAt(r)}find(e,t){let n=0;for(let r of this){if(Reflect.apply(e,t,[r,n,this]))return r;n++}}findIndex(e,t){let n=0;for(let r of this){if(Reflect.apply(e,t,[r,n,this]))return n;n++}return -1}filter(t,n){let r=[],o=0;for(let e of this)Reflect.apply(t,n,[e,o,this])&&r.push(e),o++;return new e(r)}map(t,n){let r=[],o=0;for(let e of this)r.push([e[0],Reflect.apply(t,n,[e,o,this])]),o++;return new e(r)}reduce(...e){let[t,n]=e,r=0,o=n??this.at(0);for(let n of this)o=0===r&&1===e.length?n:Reflect.apply(t,this,[o,n,r,this]),r++;return o}reduceRight(...e){let[t,n]=e,r=n??this.at(-1);for(let n=this.size-1;n>=0;n--){let o=this.at(n);r=n===this.size-1&&1===e.length?o:Reflect.apply(t,this,[r,o,n,this])}return r}toSorted(t){return new e([...this.entries()].sort(t))}toReversed(){let t=new e;for(let e=this.size-1;e>=0;e--){let n=this.keyAt(e),r=this.get(n);t.set(n,r)}return t}toSpliced(...t){let n=[...this.entries()];return n.splice(...t),new e(n)}slice(t,n){let r=new e,o=this.size-1;if(void 0===t)return r;t<0&&(t+=this.size),void 0!==n&&n>0&&(o=n-1);for(let e=t;e<=o;e++){let t=this.keyAt(e),n=this.get(t);r.set(t,n)}return r}every(e,t){let n=0;for(let r of this){if(!Reflect.apply(e,t,[r,n,this]))return!1;n++}return!0}some(e,t){let n=0;for(let r of this){if(Reflect.apply(e,t,[r,n,this]))return!0;n++}return!1}};function S(e,t){if("at"in Array.prototype)return Array.prototype.at.call(e,t);let n=C(e,t);return -1===n?void 0:e[n]}function C(e,t){let n=e.length,r=E(t),o=r>=0?r:n+r;return o<0||o>=n?-1:o}function E(e){return e!=e||0===e?0:Math.trunc(e)}function k(e,t){if(e===t)return!0;
1if("object"!=typeof e||"object"!=typeof t||null==e||null==t)return!1;let n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(let r of n)if(!Object.prototype.hasOwnProperty.call(t,r)||e[r]!==t[r])return!1;return!0}function j(e,t){return!!(t.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_PRECEDING)}function R(e,t){return e[1].element&&t[1].element?j(e[1].element,t[1].element)?-1:1:0}function I(e){return new MutationObserver(t=>{for(let n of t)if("childList"===n.type)return void e()})}x(S,"at"),x(C,"toSafeIndex"),x(E,"toSafeInteger"),x(function(e){let t=e+"CollectionProvider",[n,o]=(0,h.createContextScope)(t),[l,a]=n(t,{collectionElement:null,collectionRef:{current:null},collectionRefObject:{current:null},itemMap:new w,setItemMap:x(()=>void 0,"setItemMap")}),s=x(({state:e,...t})=>e?(0,r.jsx)(u,{...t,state:e}):(0,r.jsx)(c,{...t}),"CollectionProvider");s.displayName=t;let c=x(e=>{let t=S();return(0,r.jsx)(u,{...e,state:t})},"CollectionInit");c.displayName=t+"Init";let u=x(e=>{let{scope:t,children:n,state:o}=e,a=i.useRef(null),[s,c]=i.useState(null),u=(0,m.useComposedRefs)(a,c),[d,f]=o;return i.useEffect(()=>{if(!s)return;let e=I(()=>{});return e.observe(s,{childList:!0,subtree:!0}),()=>{e.disconnect()}},[s]),(0,r.jsx)(l,{scope:t,itemMap:d,setItemMap:f,collectionRef:u,collectionRefObject:a,collectionElement:s,children:n})},"CollectionProviderImpl");u.displayName=t+"Impl";let d=e+"CollectionSlot",f=(0,v.createSlot)(d),p=i.forwardRef((e,t)=>{let{scope:n,children:o}=e,l=a(d,n),i=(0,m.useComposedRefs)(t,l.collectionRef);return(0,r.jsx)(f,{ref:i,children:o})});p.displayName=d;let g=e+"CollectionItemSlot",y=(0,v.createSlot)(g),b=i.forwardRef((e,t)=>{let{scope:n,children:o,...l}=e,s=i.useRef(null),[c,u]=i.useState(null),d=(0,m.useComposedRefs)(t,s,u),{setItemMap:f}=a(g,n),p=i.useRef(l);k(p.current,l)||(p.current=l);let h=p.current;return i.useEffect(()=>(f(e=>c?e.has(c)?e.set(c,{...h,element:c}).toSorted(R):(e.set(c,{...h,element:c}),e.toSorted(R)):e),()=>{f(e=>c&&e.has(c)?(e.delete(c),new w(e)):e)}),[c,h,f]),(0,r.jsx)(y,{"data-radix-collection-item":"",ref:d,children:o})});function S(){return i.useState(new w)}function C(t){let{itemMap:n}=a(e+"CollectionConsumer",t);return n}return b.displayName=g,x(S,"useInitCollection"),x(C,"useCollection"),[{Provider:s,Slot:p,ItemSlot:b},{createCollectionScope:o,useCollection:C,useInitCollection:S}]},"createCollection"),x(k,"shallowEqual"),x(j,"isElementPreceding"),x(R,"sortByDocumentPosition"),x(I,"getChildListObserver");var P=Object.defineProperty,N=i.createContext(void 0);function T(e){let t=i.useContext(N);return e||t||"ltr"}P(T,"name",{value:"useDirection",configurable:!0});var _=e.i(998037),A=Object.defineProperty,M=(e,t)=>A(e,"name",{value:t,configurable:!0}),L=0,F=null;function D(){i.useEffect(()=>{F||(F={start:O(),end:O()});let{start:e,end:t}=F;return document.body.firstElementChild!==e&&document.body.insertAdjacentElement("afterbegin",e),document.body.lastElementChild!==t&&document.body.insertAdjacentElement("beforeend",t),L++,()=>{1===L&&(F?.start.remove(),F?.end.remove(),F=null),L=Math.max(0,L-1)}},[])}function O(){let 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}M(function(e){return D(),e.children},"FocusGuards"),M(D,"useFocusGuards"),M(O,"createFocusGuard");var B=e.i(156316),H=e.i(228755),z=Object.defineProperty,V=(e,t)=>z(e,"name",{value:t,configurable:!0}),W="focusScope.autoFocusOnMount",K="focusScope.autoFocusOnUnmount",U={bubbles:!1,cancelable:!0},G=i.forwardRef(V(function(e,t){let{loop:n=!1,trapped:o=!1,onMountAutoFocus:l,onUnmountAutoFocus:a,...s}=e,[c,u]=i.useState(null),d=(0,H.useCallbackRef)(l),f=(0,H.useCallbackRef)(a),p=i.useRef(null),h=(0,m.useComposedRefs)(t,u),v=i.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;i.useEffect(()=>{if(o){let e=function(e){if(v.paused||!c)return;let t=e.target;c.contains(t)?p.current=t:Q(p.current,{select:!0})},t=function(e){if(v.paused||!c)return;let t=e.relatedTarget;null!==t&&(c.contains(t)||Q(p.current,{select:!0}))},n=function(e){if(document.activeElement===document.body)for(let t of e)t.removedNodes.length>0&&Q(c)};V(e,"handleFocusIn"),V(t,"handleFocusOut"),V(n,"handleMutations"),document.addEventListener("focusin",e),document.addEventListener("focusout",t);let r=new MutationObserver(n);return c&&r.observe(c,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",e),document.removeEventListener("focusout",t),r.disconnect()}}},[o,c,v.paused]),i.useEffect(()=>{if(c){ee.add(v);let e=document.activeElement;if(!c.contains(e)){let t=new CustomEvent(W,U);c.addEventListener(W,d),c.dispatchEvent(t),t.defaultPrevented||(Y(er(X(c)),{select:!0}),document.activeElement===e&&Q(c))}return()=>{c.removeEventListener(W,d),setTimeout(()=>{let t=new CustomEvent(K,U);c.addEventListener(K,f),c.dispatchEvent(t),t.defaultPrevented||Q(e??document.body,{select:!0}),c.removeEventListener(K,f),ee.remove(v)},0)}}},[c,d,f,v]);let g=i.useCallback(e=>{if(!n&&!o||v.paused)return;let t="Tab"===e.key&&!e.altKey&&!e.ctrlKey&&!e.metaKey,r=document.activeElement;if(t&&r){let t=e.currentTarget,[o,l]=q(t);o&&l?e.shiftKey||r!==l?e.shiftKey&&r===o&&(e.preventDefault(),n&&Q(l,{select:!0})):(e.preventDefault(),n&&Q(o,{select:!0})):r===t&&e.preventDefault()}},[n,o,v.paused]);return(0,r.jsx)(B.Primitive.div,{tabIndex:-1,...s,ref:h,onKeyDown:g})},"FocusScope"));function Y(e,{select:t=!1}={}){let n=document.activeElement;for(let r of e)if(Q(r,{select:t}),document.activeElement!==n)return}function q(e){let t=X(e);return[Z(t,e),Z(t.reverse(),e)]}function X(e){let t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:V(e=>{let t="INPUT"===e.tagName&&"hidden"===e.type;return e.disabled||e.hidden||t?NodeFilter.FILTER_SKIP:e.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP},"acceptNode")});for(;n.nextNode();)t.push(n.currentNode);return t}function Z(e,t){let n="function"==typeof t.checkVisibility&&t.checkVisibility({checkVisibilityCSS:!0});for(let r of e)if(!(n?!r.checkVisibility({checkVisibilityCSS:!0}):$(r,{upTo:t})))return r}function $(e,{upTo:t}){if("hidden"===getComputedStyle(e).visibility)return!0;for(;e&&(void 0===t||e!==t);){if("none"===getComputedStyle(e).display)return!0;e=e.parentElement}return!1}function J(e){return e instanceof HTMLInputElement&&"select"in e}function Q(e,{select:t=!1}={}){if(e&&e.focus){let n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&J(e)&&t&&e.select()}}V(Y,"focusFirst"),V(q,"getTabbableEdges"),V(X,"getTabbableCandidates"),V(Z,"f
1indVisible"),V($,"isHidden"),V(J,"isSelectableInput"),V(Q,"focus");var ee=et();function et(){let e=[];return{add(t){let n=e[0];t!==n&&n?.pause(),(e=en(e,t)).unshift(t)},remove(t){e=en(e,t),e[0]?.resume()}}}function en(e,t){let n=[...e],r=n.indexOf(t);return -1!==r&&n.splice(r,1),n}function er(e){return e.filter(e=>"A"!==e.tagName)}V(et,"createFocusScopesStack"),V(en,"arrayRemove"),V(er,"removeLinks");var eo=e.i(244726),el=e.i(759848),ei=e.i(723416),ea=e.i(911681),es=e.i(76440),ec=e.i(587114);function eu(e){let t=i.useRef({value:e,previous:e});return i.useMemo(()=>(t.current.value!==e&&(t.current.previous=t.current.value,t.current.value=e),t.current.previous),[e])}(0,Object.defineProperty)(eu,"name",{value:"usePrevious",configurable:!0});var ed=e.i(682542),ef=new WeakMap,ep=new WeakMap,eh={},em=0,ev=function(e){return e&&(e.host||ev(e.parentNode))},eg=function(e,t,n,r){var o=(Array.isArray(e)?e:[e]).map(function(e){if(t.contains(e))return e;var n=ev(e);return n&&t.contains(n)?n:(console.error("aria-hidden",e,"in not contained inside",t,". Doing nothing"),null)}).filter(function(e){return!!e});eh[n]||(eh[n]=new WeakMap);var l=eh[n],i=[],a=new Set,s=new Set(o),c=function(e){!e||a.has(e)||(a.add(e),c(e.parentNode))};o.forEach(c);var u=function(e){!e||s.has(e)||Array.prototype.forEach.call(e.children,function(e){if(a.has(e))u(e);else try{var t=e.getAttribute(r),o=null!==t&&"false"!==t,s=(ef.get(e)||0)+1,c=(l.get(e)||0)+1;ef.set(e,s),l.set(e,c),i.push(e),1===s&&o&&ep.set(e,!0),1===c&&e.setAttribute(n,"true"),o||e.setAttribute(r,"true")}catch(t){console.error("aria-hidden: cannot operate on ",e,t)}})};return u(t),a.clear(),em++,function(){i.forEach(function(e){var t=ef.get(e)-1,o=l.get(e)-1;ef.set(e,t),l.set(e,o),t||(ep.has(e)||e.removeAttribute(r),ep.delete(e)),o||e.removeAttribute(n)}),--em||(ef=new WeakMap,ef=new WeakMap,ep=new WeakMap,eh={})}},ex=function(e,t,n){void 0===n&&(n="data-aria-hidden");var r=Array.from(Array.isArray(e)?e:[e]),o=t||("u"<typeof document?null:(Array.isArray(e)?e[0]:e).ownerDocument.body);return o?(r.push.apply(r,Array.from(o.querySelectorAll("[aria-live], script"))),eg(r,o,n,"aria-hidden")):function(){return null}},ey=e.i(824627),eb="right-scroll-bar-position",ew="width-before-scroll-bar",eS=e.i(71744),eC=(0,e.i(704627).createSidecarMedium)(),eE=function(){},ek=i.forwardRef(function(e,t){var n=i.useRef(null),r=i.useState({onScrollCapture:eE,onWheelCapture:eE,onTouchMoveCapture:eE}),o=r[0],l=r[1],a=e.forwardProps,s=e.children,c=e.className,u=e.removeScrollBar,d=e.enabled,f=e.shards,p=e.sideCar,h=e.noRelative,m=e.noIsolation,v=e.inert,g=e.allowPinchZoom,x=e.as,y=e.gapMode,b=(0,ey.__rest)(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),w=(0,eS.useMergeRefs)([n,t]),S=(0,ey.__assign)((0,ey.__assign)({},b),o);return i.createElement(i.Fragment,null,d&&i.createElement(p,{sideCar:eC,removeScrollBar:u,shards:f,noRelative:h,noIsolation:m,inert:v,setCallbacks:l,allowPinchZoom:!!g,lockRef:n,gapMode:y}),a?i.cloneElement(i.Children.only(s),(0,ey.__assign)((0,ey.__assign)({},S),{ref:w})):i.createElement(void 0===x?"div":x,(0,ey.__assign)({},S,{className:c,ref:w}),s))});ek.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},ek.classNames={fullWidth:ew,zeroRight:eb};var ej=function(e){var t=e.sideCar,n=(0,ey.__rest)(e,["sideCar"]);if(!t)throw Error("Sidecar: please provide `sideCar` property to import the right car");var r=t.read();if(!r)throw Error("Sidecar medium not found");return i.createElement(r,(0,ey.__assign)({},n))};ej.isSideCarExport=!0;var eR=function(){var e=0,t=null;return{add:function(r){if(0==e&&(t=function(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=n||("u">typeof __webpack_nonce__?__webpack_nonce__:void 0);return t&&e.setAttribute("nonce",t),e}())){var o,l;(o=t).styleSheet?o.styleSheet.cssText=r:o.appendChild(document.createTextNode(r)),l=t,(document.head||document.getElementsByTagName("head")[0]).appendChild(l)}e++},remove:function(){--e||!t||(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},eI=function(){var e=eR();return function(t,n){i.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])}},eP=function(){var e=eI();return function(t){return e(t.styles,t.dynamic),null}},eN={left:0,top:0,right:0,gap:0},eT=function(e){return parseInt(e||"",10)||0},e_=function(e){var t=window.getComputedStyle(document.body),n=t["padding"===e?"paddingLeft":"marginLeft"],r=t["padding"===e?"paddingTop":"marginTop"],o=t["padding"===e?"paddingRight":"marginRight"];return[eT(n),eT(r),eT(o)]},eA=function(e){if(void 0===e&&(e="margin"),"u"<typeof window)return eN;var t=e_(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])}},eM=eP(),eL="data-scroll-locked",eF=function(e,t,n,r){var o=e.left,l=e.top,i=e.right,a=e.gap;return void 0===n&&(n="margin"),"\n  .".concat("with-scroll-bars-hidden"," {\n   overflow: hidden ").concat(r,";\n   padding-right: ").concat(a,"px ").concat(r,";\n  }\n  body[").concat(eL,"] {\n    overflow: hidden ").concat(r,";\n    overscroll-behavior: contain;\n    ").concat([t&&"position: relative ".concat(r,";"),"margin"===n&&"\n    padding-left: ".concat(o,"px;\n    padding-top: ").concat(l,"px;\n    padding-right: ").concat(i,"px;\n    margin-left:0;\n    margin-top:0;\n    margin-right: ").concat(a,"px ").concat(r,";\n    "),"padding"===n&&"padding-right: ".concat(a,"px ").concat(r,";
1")].filter(Boolean).join(""),"\n  }\n  \n  .").concat(eb," {\n    right: ").concat(a,"px ").concat(r,";\n  }\n  \n  .").concat(ew," {\n    margin-right: ").concat(a,"px ").concat(r,";\n  }\n  \n  .").concat(eb," .").concat(eb," {\n    right: 0 ").concat(r,";\n  }\n  \n  .").concat(ew," .").concat(ew," {\n    margin-right: 0 ").concat(r,";\n  }\n  \n  body[").concat(eL,"] {\n    ").concat("--removed-body-scroll-bar-size",": ").concat(a,"px;\n  }\n")},eD=function(){var e=parseInt(document.body.getAttribute(eL)||"0",10);return isFinite(e)?e:0},eO=function(){i.useEffect(function(){return document.body.setAttribute(eL,(eD()+1).toString()),function(){var e=eD()-1;e<=0?document.body.removeAttribute(eL):document.body.setAttribute(eL,e.toString())}},[])},eB=function(e){var t=e.noRelative,n=e.noImportant,r=e.gapMode,o=void 0===r?"margin":r;eO();var l=i.useMemo(function(){return eA(o)},[o]);return i.createElement(eM,{styles:eF(l,!t,o,n?"":"!important")})},eH=!1;if("u">typeof window)try{var ez=Object.defineProperty({},"passive",{get:function(){return eH=!0,!0}});window.addEventListener("test",ez,ez),window.removeEventListener("test",ez,ez)}catch(e){eH=!1}var eV=!!eH&&{passive:!1},eW=function(e,t){if(!(e instanceof Element))return!1;var n=window.getComputedStyle(e);return"hidden"!==n[t]&&(n.overflowY!==n.overflowX||"TEXTAREA"===e.tagName||"visible"!==n[t])},eK=function(e,t){var n=t.ownerDocument,r=t;do{if("u">typeof ShadowRoot&&r instanceof ShadowRoot&&(r=r.host),eU(e,r)){var o=eG(e,r);if(o[1]>o[2])return!0}r=r.parentNode}while(r&&r!==n.body)return!1},eU=function(e,t){return"v"===e?eW(t,"overflowY"):eW(t,"overflowX")},eG=function(e,t){return"v"===e?[t.scrollTop,t.scrollHeight,t.clientHeight]:[t.scrollLeft,t.scrollWidth,t.clientWidth]},eY=function(e,t,n,r,o){var l,i=(l=window.getComputedStyle(t).direction,"h"===e&&"rtl"===l?-1:1),a=i*r,s=n.target,c=t.contains(s),u=!1,d=a>0,f=0,p=0;do{if(!s)break;var h=eG(e,s),m=h[0],v=h[1]-h[2]-i*m;(m||v)&&eU(e,s)&&(f+=v,p+=m);var g=s.parentNode;s=g&&g.nodeType===Node.DOCUMENT_FRAGMENT_NODE?g.host:g}while(!c&&s!==document.body||c&&(t.contains(s)||t===s))return d&&(o&&1>Math.abs(f)||!o&&a>f)?u=!0:!d&&(o&&1>Math.abs(p)||!o&&-a>p)&&(u=!0),u},eq=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},eX=function(e){return[e.deltaX,e.deltaY]},eZ=function(e){return e&&"current"in e?e.current:e},e$=0,eJ=[];let eQ=(t=function(e){var t=i.useRef([]),n=i.useRef([0,0]),r=i.useRef(),o=i.useState(e$++)[0],l=i.useState(eP)[0],a=i.useRef(e);i.useEffect(function(){a.current=e},[e]),i.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(o));var t=(0,ey.__spreadArray)([e.lockRef.current],(e.shards||[]).map(eZ),!0).filter(Boolean);return t.forEach(function(e){return e.classList.add("allow-interactivity-".concat(o))}),function(){document.body.classList.remove("block-interactivity-".concat(o)),t.forEach(function(e){return e.classList.remove("allow-interactivity-".concat(o))})}}},[e.inert,e.lockRef.current,e.shards]);var s=i.useCallback(function(e,t){if("touches"in e&&2===e.touches.length||"wheel"===e.type&&e.ctrlKey)return!a.current.allowPinchZoom;var o,l=eq(e),i=n.current,s="deltaX"in e?e.deltaX:i[0]-l[0],c="deltaY"in e?e.deltaY:i[1]-l[1],u=e.target,d=Math.abs(s)>Math.abs(c)?"h":"v";if("touches"in e&&"h"===d&&"range"===u.type)return!1;var f=window.getSelection(),p=f&&f.anchorNode;if(p&&(p===u||p.contains(u)))return!1;var h=eK(d,u);if(!h)return!0;if(h?o=d:(o="v"===d?"h":"v",h=eK(d,u)),!h)return!1;if(!r.current&&"changedTouches"in e&&(s||c)&&(r.current=o),!o)return!0;var m=r.current||o;return eY(m,t,e,"h"===m?s:c,!0)},[]),c=i.useCallback(function(e){if(eJ.length&&eJ[eJ.length-1]===l){var n="deltaY"in e?eX(e):eq(e),r=t.current.filter(function(t){var r;return t.name===e.type&&(t.target===e.target||e.target===t.shadowParent)&&(r=t.delta,r[0]===n[0]&&r[1]===n[1])})[0];if(r&&r.should){e.cancelable&&e.preventDefault();return}if(!r){var o=(a.current.shards||[]).map(eZ).filter(Boolean).filter(function(t){return t.contains(e.target)});(o.length>0?s(e,o[0]):!a.current.noIsolation)&&e.cancelable&&e.preventDefault()}}},[]),u=i.useCallback(function(e,n,r,o){var l={name:e,delta:n,target:r,should:o,shadowParent:function(e){for(var t=null;null!==e;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}(r)};t.current.push(l),setTimeout(function(){t.current=t.current.filter(function(e){return e!==l})}
1,1)},[]),d=i.useCallback(function(e){n.current=eq(e),r.current=void 0},[]),f=i.useCallback(function(t){u(t.type,eX(t),t.target,s(t,e.lockRef.current))},[]),p=i.useCallback(function(t){u(t.type,eq(t),t.target,s(t,e.lockRef.current))},[]);i.useEffect(function(){return eJ.push(l),e.setCallbacks({onScrollCapture:f,onWheelCapture:f,onTouchMoveCapture:p}),document.addEventListener("wheel",c,eV),document.addEventListener("touchmove",c,eV),document.addEventListener("touchstart",d,eV),function(){eJ=eJ.filter(function(e){return e!==l}),document.removeEventListener("wheel",c,eV),document.removeEventListener("touchmove",c,eV),document.removeEventListener("touchstart",d,eV)}},[]);var h=e.removeScrollBar,m=e.inert;return i.createElement(i.Fragment,null,m?i.createElement(l,{styles:"\n  .block-interactivity-".concat(o," {pointer-events: none;}\n  .allow-interactivity-").concat(o," {pointer-events: all;}\n")}):null,h?i.createElement(eB,{noRelative:e.noRelative,gapMode:e.gapMode}):null)},eC.useMedium(t),ej);var e0=i.forwardRef(function(e,t){return i.createElement(ek,(0,ey.__assign)({},e,{ref:t,sideCar:eQ}))});e0.classNames=ek.classNames;var e1=Object.defineProperty,e2=(e,t)=>e1(e,"name",{value:t,configurable:!0}),e4=[" ","Enter","ArrowUp","ArrowDown"],e5=[" ","Enter"],e6="Select",[e7,e3,e8]=y(e6),[e9,te]=(0,h.createContextScope)(e6,[e8,el.createPopperScope]),tt=(0,el.createPopperScope)(),[tn,tr]=e9(e6),[to,tl]=e9(e6);function ti(e){let{__scopeSelect:t,children:n,open:o,defaultOpen:l,onOpenChange:a,value:s,defaultValue:c,onValueChange:u,dir:d,name:f,autoComplete:p,disabled:h,required:m,form:v,internal_do_not_use_render:g}=e,x=tt(t),[y,b]=i.useState(null),[w,S]=i.useState(null),[C,E]=i.useState(!1),k=T(d),[j,R]=(0,es.useControllableState)({prop:o,defaultProp:l??!1,onChange:a,caller:e6}),[I,P]=(0,es.useControllableState)({prop:s,defaultProp:c,onChange:u,caller:e6}),N=i.useRef(null),_=i.useRef(I);i.useEffect(()=>{let e=v?y?.ownerDocument.getElementById(v):y?.form;if(e instanceof HTMLFormElement){let t=e2(()=>P(_.current),"reset");return e.addEventListener("reset",t),()=>e.removeEventListener("reset",t)}},[v,y,P]);let A=!y||!!v||!!y.closest("form"),[M,L]=i.useState(new Set),F=(0,eo.useId)(),D=Array.from(M).map(e=>e.props.value).join(";"),O=i.useCallback(e=>{L(t=>new Set(t).add(e))},[]),B=i.useCallback(e=>{L(t=>{let n=new Set(t);return n.delete(e),n})},[]),H={required:m,trigger:y,onTriggerChange:b,valueNode:w,onValueNodeChange:S,valueNodeHasChildren:C,onValueNodeHasChildrenChange:E,contentId:F,value:I,onValueChange:P,open:j,onOpenChange:R,dir:k,triggerPointerDownPosRef:N,disabled:h,name:f,autoComplete:p,form:v,nativeOptions:M,nativeSelectKey:D,isFormControl:A};return(0,r.jsx)(el.Root,{...x,children:(0,r.jsx)(tn,{scope:t,...H,children:(0,r.jsx)(e7.Provider,{scope:t,children:(0,r.jsx)(to,{scope:t,onNativeOptionAdd:O,onNativeOptionRemove:B,children:tG(g)?g(H):n})})})})}e2(ti,"SelectProvider");var ta=e2(e=>{let{__scopeSelect:t,children:n,...o}=e;return(0,r.jsx)(ti,{__scopeSelect:t,...o,internal_do_not_use_render:({isFormControl:e})=>(0,r.jsxs)(r.Fragment,{children:[n,e?(0,r.jsx)(tU,{__scopeSelect:t}):null]})})},"Select"),ts=i.forwardRef(e2(function(e,t){let{__scopeSelect:n,disabled:o=!1,...l}=e,a=tt(n),s=tr("SelectTrigger",n),c=s.disabled||o,u=(0,m.useComposedRefs)(t,s.onTriggerChange),d=e3(n),f=i.useRef("touch"),[h,v,g]=tq(e=>{let t=d().filter(e=>!e.disabled),n=t.find(e=>e.value===s.value),r=tX(t,e,n);void 0!==r&&s.onValueChange(r.value)}),x=e2(e=>{c||(s.onOpenChange(!0),g()),e&&(s.triggerPointerDownPosRef.current={x:Math.round(e.pageX),y:Math.round(e.pageY)})},"handleOpen");return(0,r.jsx)(el.Anchor,{asChild:!0,...a,children:(0,r.jsx)(B.Primitive.button,{type:"button",role:"combobox","aria-controls":s.open?s.contentId:void 0,"aria-expanded":s.open,"aria-required":s.required,"aria-autocomplete":"none",dir:s.dir,"data-state":s.open?"open":"closed",disabled:c,"data-disabled":c?"":void 0,"data-placeholder":tY(s.value)?"":void 0,...l,ref:u,onClick:(0,p.composeEventHandlers)(l.onClick,e=>{e.currentTarget.focus(),"mouse"!==f.current&&x(e)}),onPointerDown:(0,p.composeEventHandlers)(l.onPointerDown,e=>{f.current=e.pointerType;let t=e.target;t.hasPointerCapture(e.pointerId)&&t.releasePointerCapture(e.pointerId),0===e.button&&!1===e.ctrlKey&&"mouse"===e.pointerType&&(x(e),e.preventDefault())}),onKeyDown:(0,p.composeEventHandlers)(l.onKeyDown,e=>{let t=""!==h.current;
1e.ctrlKey||e.altKey||e.metaKey||1!==e.key.length||v(e.key),(!t||" "!==e.key)&&e4.includes(e.key)&&(x(),e.preventDefault())})})})},"SelectTrigger")),tc=i.forwardRef(e2(function(e,t){let{__scopeSelect:n,className:o,style:l,children:a,placeholder:s="",...c}=e,u=tr("SelectValue",n),{onValueNodeHasChildrenChange:d}=u,f=void 0!==a,p=(0,m.useComposedRefs)(t,u.onValueNodeChange);(0,ec.useLayoutEffect)(()=>{d(f)},[d,f]);let h=tY(u.value);return(0,r.jsx)(B.Primitive.span,{...c,asChild:!h&&c.asChild,ref:p,style:{pointerEvents:"none"},children:(0,r.jsx)(i.Fragment,{children:h?s:a},h?"placeholder":"value")})},"SelectValue")),tu=i.forwardRef(e2(function(e,t){let{__scopeSelect:n,children:o,...l}=e;return(0,r.jsx)(B.Primitive.span,{"aria-hidden":!0,...l,ref:t,children:o||"▼"})},"SelectIcon")),[td,tf]=e9("SelectPortal",{forceMount:void 0}),tp=e2(e=>{let{__scopeSelect:t,forceMount:n,...o}=e;return(0,r.jsx)(td,{scope:e.__scopeSelect,forceMount:n,children:(0,r.jsx)(ei.Portal,{asChild:!0,...o})})},"SelectPortal"),th="SelectContent",tm=i.forwardRef(e2(function(e,t){let n=tf(th,e.__scopeSelect),{forceMount:o=n.forceMount,...l}=e,a=tr(th,e.__scopeSelect),[s,c]=i.useState();return(0,ec.useLayoutEffect)(()=>{c(new DocumentFragment)},[]),(0,r.jsx)(ea.Presence,{present:o||a.open,children:({present:e})=>e?(0,r.jsx)(tb,{...l,ref:t}):(0,r.jsx)(tv,{...l,fragment:s})})},"SelectContent")),tv=i.forwardRef(e2(function(e,t){let{__scopeSelect:n,children:o,fragment:l}=e;return l?d.createPortal((0,r.jsx)(tg,{scope:n,children:(0,r.jsx)(e7.Slot,{scope:n,children:(0,r.jsx)("div",{ref:t,children:o})})}),l):null},"SelectContentFragment")),[tg,tx]=e9(th),ty=(0,v.createSlot)("SelectContent.RemoveScroll"),tb=i.forwardRef(e2(function(e,t){let{__scopeSelect:n}=e,{position:o="item-aligned",onCloseAutoFocus:l,onEscapeKeyDown:a,onPointerDownOutside:s,side:c,sideOffset:u,align:d,alignOffset:f,arrowPadding:h,collisionBoundary:v,collisionPadding:g,sticky:x,hideWhenDetached:y,avoidCollisions:b,...w}=e,S=tr(th,n),[C,E]=i.useState(null),[k,j]=i.useState(null),R=(0,m.useComposedRefs)(t,E),[I,P]=i.useState(null),[N,T]=i.useState(null),A=e3(n),[M,L]=i.useState(!1),F=i.useRef(!1);i.useEffect(()=>{if(C)return ex(C)},[C]),D();let O=i.useCallback(e=>{let[t,...n]=A().map(e=>e.ref.current),[r]=n.slice(-1),o=document.activeElement;for(let n of e)if(n===o||(n?.scrollIntoView({block:"nearest"}),n===t&&k&&(k.scrollTop=0),n===r&&k&&(k.scrollTop=k.scrollHeight),n?.focus(),document.activeElement!==o))return},[A,k]),B=i.useCallback(()=>O([I,C]),[O,I,C]);i.useEffect(()=>{M&&B()},[M,B]);let{onOpenChange:H,triggerPointerDownPosRef:z}=S;i.useEffect(()=>{if(C){let e={x:0,y:0},t=e2(t=>{e={x:Math.abs(Math.round(t.pageX)-(z.current?.x??0)),y:Math.abs(Math.round(t.pageY)-(z.current?.y??0))}},"handlePointerMove"),n=e2(n=>{e.x<=10&&e.y<=10?n.preventDefault():n.composedPath().includes(C)||H(!1),document.removeEventListener("pointermove",t),z.current=null},"handlePointerUp");return null!==z.current&&(document.addEventListener("pointermove",t),document.addEventListener("pointerup",n,{capture:!0,once:!0})),()=>{document.removeEventListener("pointermove",t),document.removeEventListener("pointerup",n,{capture:!0})}}},[C,H,z]),i.useEffect(()=>{let e=e2(()=>H(!1),"close");return window.addEventListener("blur",e),window.addEventListener("resize",e),()=>{window.removeEventListener("blur",e),window.removeEventListener("resize",e)}},[H]);let[V,W]=tq(e=>{let t=A().filter(e=>!e.disabled),n=t.find(e=>e.ref.current===document.activeElement),r=tX(t,e,n);r&&setTimeout(()=>r.ref.current?.focus())}),K=i.useCallback((e,t,n)=>{let r=!F.current&&!n;(void 0!==S.value&&S.value===t||r)&&(P(e),r&&(F.current=!0))},[S.value]),U=i.useCallback(()=>C?.focus(),[C]),Y=i.useCallback((e,t,n)=>{let r=!F.current&&!n;(void 0!==S.value&&S.value===t||r)&&T(e)},[S.value]),q="popper"===o?tS:tw;return(0,r.jsx)(tg,{scope:n,content:C,viewport:k,onViewportChange:j,itemRefCallback:K,selectedItem:I,onItemLeave:U,itemTextRefCallback:Y,focusSelectedItem:B,selectedItemText:N,position:o,isPositioned:M,searchRef:V,children:(0,r.jsx)(e0,{as:ty,allowPinchZoom:!0,children:(0,r.jsx)(G,{asChild:!0,trapped:S.open,onMountAutoFocus:e=>{e.preventDefault()},onUnmountAutoFocus:(0,p.composeEventHandlers)(l,e=>{S.trigger?.focus({preventScroll:!0}),e.preventDefault()}),children:(0,r.jsx)(_.DismissableLayer,{asChild:!0,disableOutsidePointerEvents:!0,onEscapeKeyDown:a,onPointerDownOutside:s,onFocusOutside:e=>e.preventDefault(),onDismiss:()=>S.onOpenChange(!1),children:(0,r.jsx)(q,{role:"listbox",id:S.contentId,"data-state":S.open?"open":"closed",dir:S.dir,onContextMenu:e=>e.preventDefault(),...w,...q===tS?{side:c,sideOffset:u,align:d,alignOffset:f,arrowPadding:h,collisionBoundary:v,collisionPadding:g,sticky:x,hideWhenDetached:y,avoidCollisions:b}:{},onPlaced:()=>L(!0),ref:R,style:{display:"flex",flexDirection:"column",outline:"none",...w.style},onKeyDown:(0,p.composeEventHandlers)(w.onKeyDown,e=>{let t=e.ctrlKey||e.altKey||e.metaKey;
1if("Tab"===e.key&&e.preventDefault(),t||1!==e.key.length||W(e.key),["ArrowUp","ArrowDown","Home","End"].includes(e.key)){let t=A().filter(e=>!e.disabled).map(e=>e.ref.current);if(["ArrowUp","End"].includes(e.key)&&(t=t.slice().reverse()),["ArrowUp","ArrowDown"].includes(e.key)){let n=e.target,r=t.indexOf(n);t=t.slice(r+1)}setTimeout(()=>O(t)),e.preventDefault()}})})})})})})},"SelectContentImpl")),tw=i.forwardRef(e2(function(e,t){let{__scopeSelect:n,onPlaced:o,...l}=e,a=tr(th,n),s=tx(th,n),[c,u]=i.useState(null),[d,p]=i.useState(null),h=(0,m.useComposedRefs)(t,p),v=e3(n),g=i.useRef(!1),x=i.useRef(!0),{viewport:y,selectedItem:b,selectedItemText:w,focusSelectedItem:S}=s,C=i.useCallback(()=>{if(a.trigger&&a.valueNode&&c&&d&&y&&b&&w){let e=a.trigger.getBoundingClientRect(),t=d.getBoundingClientRect(),n=a.valueNode.getBoundingClientRect(),r=w.getBoundingClientRect();if("rtl"!==a.dir){let o=r.left-t.left,l=n.left-o,i=e.left-l,a=e.width+i,s=Math.max(a,t.width),u=f(l,[10,Math.max(10,window.innerWidth-10-s)]);c.style.minWidth=a+"px",c.style.left=u+"px"}else{let o=t.right-r.right,l=window.innerWidth-n.right-o,i=window.innerWidth-e.right-l,a=e.width+i,s=Math.max(a,t.width),u=f(l,[10,Math.max(10,window.innerWidth-10-s)]);c.style.minWidth=a+"px",c.style.right=u+"px"}let l=v(),i=window.innerHeight-20,s=y.scrollHeight,u=window.getComputedStyle(d),p=parseInt(u.borderTopWidth,10),h=parseInt(u.paddingTop,10),m=parseInt(u.borderBottomWidth,10),x=p+h+s+parseInt(u.paddingBottom,10)+m,S=Math.min(5*b.offsetHeight,x),C=window.getComputedStyle(y),E=parseInt(C.paddingTop,10),k=parseInt(C.paddingBottom,10),j=e.top+e.height/2-10,R=b.offsetHeight/2,I=p+h+(b.offsetTop+R);if(I<=j){let e=l.length>0&&b===l[l.length-1].ref.current;c.style.bottom="0px";let t=Math.max(i-j,R+(e?k:0)+(d.clientHeight-y.offsetTop-y.offsetHeight)+m);c.style.height=I+t+"px"}else{let e=l.length>0&&b===l[0].ref.current;c.style.top="0px";let t=Math.max(j,p+y.offsetTop+(e?E:0)+R);c.style.height=t+(x-I)+"px",y.scrollTop=I-j+y.offsetTop}c.style.margin="10px 0",c.style.minHeight=S+"px",c.style.maxHeight=i+"px",o?.(),requestAnimationFrame(()=>g.current=!0)}},[v,a.trigger,a.valueNode,c,d,y,b,w,a.dir,o]);(0,ec.useLayoutEffect)(()=>C(),[C]);let[E,k]=i.useState();(0,ec.useLayoutEffect)(()=>{d&&k(window.getComputedStyle(d).zIndex)},[d]);let j=i.useCallback(e=>{e&&!0===x.current&&(C(),S?.(),x.current=!1)},[C,S]);return(0,r.jsx)(tC,{scope:n,contentWrapper:c,shouldExpandOnScrollRef:g,onScrollButtonChange:j,children:(0,r.jsx)("div",{ref:u,style:{display:"flex",flexDirection:"column",position:"fixed",zIndex:E},children:(0,r.jsx)(B.Primitive.div,{...l,ref:h,style:{boxSizing:"border-box",maxHeight:"100%",...l.style}})})})},"SelectItemAlignedPosition")),tS=i.forwardRef(e2(function(e,t){let{__scopeSelect:n,align:o="start",collisionPadding:l=10,...i}=e,a=tt(n);return(0,r.jsx)(el.Content,{...a,...i,ref:t,align:o,collisionPadding:l,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)"}})},"SelectPopperPosition")),[tC,tE]=e9(th,{}),tk="SelectViewport",tj=i.forwardRef(e2(function(e,t){let{__scopeSelect:n,nonce:o,...l}=e,a=tx(tk,n),s=tE(tk,n),c=(0,m.useComposedRefs)(t,a.onViewportChange),u=i.useRef(0);return(0,r.jsxs)(r.Fragment,{children:[(0,r.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:o}),(0,r.jsx)(e7.Slot,{scope:n,children:(0,r.jsx)(B.Primitive.div,{"data-radix-select-viewport":"",role:"presentation",...l,ref:c,style:{position:"relative",flex:1,overflow:"hidden auto",...l.style},onScroll:(0,p.composeEventHandlers)(l.onScroll,e=>{let t=e.currentTarget,{contentWrapper:n,shouldExpandOnScrollRef:r}=s;if(r?.current&&n){let e=Math.abs(u.current-t.scrollTop);if(e>0){let r=window.innerHeight-20,o=Math.max(parseFloat(n.style.minHeight),parseFloat(n.style.height));if(o<r){let l=o+e,i=Math.min(r,l),a=l-i;n.style.height=i+"px","0px"===n.style.bottom&&(t.scrollTop=a>0?a:0,n.style.justifyContent="flex-end")}}}u.current=t.scrollTop})})})]})},"SelectViewport")),[tR,tI]=e9("SelectGroup"),tP=i.forwardRef(e2(function(e,t){let{__scopeSelect:n,...o}=e,l=(0,eo.useId)();return(0,r.jsx)(tR,{scope:n,id:l,children:(0,r.jsx)(B.Primitive.div,{role:"group","aria-labelledby":l,...o,ref:t})})},"SelectGroup")),tN=i.forwardRef(e2(function(e,t){let{__scopeSelect:n,...o}=e,l=tI("SelectLabel",n);return(0,r.jsx)(B.Primitive.div,{id:l.id,...o,ref:t})},"SelectLabel")),tT="SelectItem",[t_,tA]=e9(tT),tM=i.forwardRef(e2(function(e,t){let{__scopeSelect:n,value:o,disabled:l=!1,textValue:a,...s}=e,c=tr(tT,n),u=tx(tT,n),d=c.value===o,[f,h]=i.useState(a??""),[v,g]=i.useState(!1),x=(0,H.useCallbackRef)(e=>u.itemRefCallback?.(e,o,l)),y=(0,m.useComposedRefs)(t,x),b=(0,eo.useId)(),w=i.useRef("touch"),S=e2(()=>{l||(c.onValueChange(o),c.onOpenChange(!1))},"handleSelect");return(0,r.jsx)(t_,{scope:n,value:o,disabled:l,textId:b,isSelected:d,onItemTextChange:i.useCallback(e=>{h(t=>t||(e?.textContent??"").trim())},[]),children:(0,r.jsx)(e7.ItemSlot,{scope:n,value:o,disabled:l,textValue:f,children:(0,r.jsx)(B.Primitive.div,{role:"option","aria-labelledby":b,"data-highlighted":v?"":void 0,"aria-selected":d&&v,"data-state":d?"checked":"unchecked","aria-disabled":l||void 0,"data-disabled":l?"":void 0,tabIndex:l?void 0:-1,...s,ref:y,onFocus:(0,p.composeEventHandlers)(s.onFocus,()=>g(!0)),onBlur:(0,p.composeEventHandlers)(s.onBlur,()=>g(!1)),onClick:(0,p.composeEventHandlers)(s.onClick,()=>{"mouse"!==w.current&&S()}),onPointerUp:(0,p.composeEventHandlers)(s.onPointerUp,()=>{"mouse"===w.current&&S()}),onPointerDown:(0,p.composeEventHandlers)(s.onPointerDown,e=>{w.current=e.pointerType}),onPointerMove:(0,p.composeEventHandlers)(s.onPointerMove,e=>{w.current=e.pointerType,l?u.onItemLeave?.():"mouse"===w.current&&e.currentTarget.focu
1s({preventScroll:!0})}),onPointerLeave:(0,p.composeEventHandlers)(s.onPointerLeave,e=>{e.currentTarget===document.activeElement&&u.onItemLeave?.()}),onKeyDown:(0,p.composeEventHandlers)(s.onKeyDown,e=>{l||e.target!==e.currentTarget||(u.searchRef?.current===""||" "!==e.key)&&(e5.includes(e.key)&&S()," "===e.key&&e.preventDefault())})})})})},"SelectItem")),tL="SelectItemText",tF=i.forwardRef(e2(function(e,t){let{__scopeSelect:n,className:o,style:l,...a}=e,s=tr(tL,n),c=tx(tL,n),u=tA(tL,n),f=tl(tL,n),[p,h]=i.useState(null),v=(0,H.useCallbackRef)(e=>c.itemTextRefCallback?.(e,u.value,u.disabled)),g=(0,m.useComposedRefs)(t,h,u.onItemTextChange,v),x=p?.textContent,y=i.useMemo(()=>(0,r.jsx)("option",{value:u.value,disabled:u.disabled,children:x},u.value),[u.disabled,u.value,x]),{onNativeOptionAdd:b,onNativeOptionRemove:w}=f;return(0,ec.useLayoutEffect)(()=>(b(y),()=>w(y)),[b,w,y]),(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(B.Primitive.span,{id:u.textId,...a,ref:g}),u.isSelected&&s.valueNode&&!s.valueNodeHasChildren&&!tY(s.value)?d.createPortal(a.children,s.valueNode):null]})},"SelectItemText")),tD=i.forwardRef(e2(function(e,t){let{__scopeSelect:n,...o}=e;return tA("SelectItemIndicator",n).isSelected?(0,r.jsx)(B.Primitive.span,{"aria-hidden":!0,...o,ref:t}):null},"SelectItemIndicator")),tO="SelectScrollUpButton",tB=i.forwardRef(e2(function(e,t){let n=tx(tO,e.__scopeSelect),o=tE(tO,e.__scopeSelect),[l,a]=i.useState(!1),s=(0,m.useComposedRefs)(t,o.onScrollButtonChange);return(0,ec.useLayoutEffect)(()=>{if(n.viewport&&n.isPositioned){let e=function(){a(t.scrollTop>0)};e2(e,"handleScroll");let t=n.viewport;return e(),t.addEventListener("scroll",e),()=>t.removeEventListener("scroll",e)}},[n.viewport,n.isPositioned]),l?(0,r.jsx)(tV,{...e,ref:s,onAutoScroll:()=>{let{viewport:e,selectedItem:t}=n;e&&t&&(e.scrollTop=e.scrollTop-t.offsetHeight)}}):null},"SelectScrollUpButton")),tH="SelectScrollDownButton",tz=i.forwardRef(e2(function(e,t){let n=tx(tH,e.__scopeSelect),o=tE(tH,e.__scopeSelect),[l,a]=i.useState(!1),s=(0,m.useComposedRefs)(t,o.onScrollButtonChange);return(0,ec.useLayoutEffect)(()=>{if(n.viewport&&n.isPositioned){let e=function(){let e=t.scrollHeight-t.clientHeight;a(Math.ceil(t.scrollTop)<e)};e2(e,"handleScroll");let t=n.viewport;return e(),t.addEventListener("scroll",e),()=>t.removeEventListener("scroll",e)}},[n.viewport,n.isPositioned]),l?(0,r.jsx)(tV,{...e,ref:s,onAutoScroll:()=>{let{viewport:e,selectedItem:t}=n;e&&t&&(e.scrollTop=e.scrollTop+t.offsetHeight)}}):null},"SelectScrollDownButton")),tV=i.forwardRef(e2(function(e,t){let{__scopeSelect:n,onAutoScroll:o,...l}=e,a=tx("SelectScrollButton",n),s=i.useRef(null),c=e3(n),u=i.useCallback(()=>{null!==s.current&&(window.clearInterval(s.current),s.current=null)},[]);return i.useEffect(()=>()=>u(),[u]),(0,ec.useLayoutEffect)(()=>{let e=c().find(e=>e.ref.current===document.activeElement);e?.ref.current?.scrollIntoView({block:"nearest"})},[c]),(0,r.jsx)(B.Primitive.div,{"aria-hidden":!0,...l,ref:t,style:{flexShrink:0,...l.style},onPointerDown:(0,p.composeEventHandlers)(l.onPointerDown,()=>{null===s.current&&(s.current=window.setInterval(o,50))}),onPointerMove:(0,p.composeEventHandlers)(l.onPointerMove,()=>{a.onItemLeave?.(),null===s.current&&(s.current=window.setInterval(o,50))}),onPointerLeave:(0,p.composeEventHandlers)(l.onPointerLeave,()=>{u()})})},"SelectScrollButtonImpl")),tW=i.forwardRef(e2(function(e,t){let{__scopeSelect:n,...o}=e;return(0,r.jsx)(B.Primitive.div,{"aria-hidden":!0,...o,ref:t})},"SelectSeparator")),tK=i.forwardRef(e2(function(e,t){let{__scopeSelect:n,...o}=e,l=tt(n);return"popper"===tx("SelectArrow",n).position?(0,r.jsx)(el.Arrow,{...l,...o,ref:t}):null},"SelectArrow")),tU=i.forwardRef(e2(function({__scopeSelect:e,...t},n){let o=tr("SelectBubbleInput",e),{value:l,onValueChange:a,required:s,disabled:c,name:u,autoComplete:d,form:f}=o,{nativeOptions:p,nativeSelectKey:h}=o,v=i.useRef(null),g=(0,m.useComposedRefs)(n,v),x=l??"",y=eu(x),b=Array.from(p).some(e=>(e.props.value??"")==="");return i.useEffect(()=>{let e=v.current;if(!e)return;let t=Object.getOwnPropertyDescriptor(window.HTMLSelectElement.prototype,"value").set;if(y!==x&&t){let n=new Event("change",{bubbles:!0});t.call(e,x),e.dispatchEvent(n)}},[y,x]),(0,r.jsxs)(B.Primitive.select,{"aria-hidden":!0,required:s,tabIndex:-1,name:u,autoComplete:d,disabled:c,form:f,onChange:e=>a(e.target.value),...t,style:{...ed.VISUALLY_HIDDEN_STYLES,...t.style},ref:g,defaultValue:x,children:[tY(l)&&!b?(0,r.jsx)("option",{value:""}):null,Array.from(p)]},h)},"SelectBubbleInput"));function tG(e){return"function"==typeof e}function tY(e){return""===e||void 0===e}function tq(e){let t=(0,H.useCallbackRef)(e),n=i.useRef(""),r=i.useRef(0),o=i.useCallback(e=>{t(n.current+e)},[t]),l=i.useCallback(()=>{n.current="",window.clearTimeout(r.current)},[]);return i.useEffect(()=>()=>window.clearTimeout(r.current),[]),[n,o,l]}
1function tX(e,t,n){let r=t.length>1&&Array.from(t).every(e=>e===t[0])?t[0]:t,o=n?e.indexOf(n):-1,l=tZ(e,Math.max(o,0));1===r.length&&(l=l.filter(e=>e!==n));let i=l.find(e=>e.textValue.toLowerCase().startsWith(r.toLowerCase()));return i!==n?i:void 0}function tZ(e,t){return e.map((n,r)=>e[(t+r)%e.length])}e2(tG,"isFunction"),e2(tY,"shouldShowPlaceholder"),e2(tq,"useTypeaheadSearch"),e2(tX,"findNextItem"),e2(tZ,"wrapArray"),e.s(["Arrow",0,tK,"Content",0,tm,"Group",0,tP,"Icon",0,tu,"Item",0,tM,"ItemIndicator",0,tD,"ItemText",0,tF,"Label",0,tN,"Portal",0,tp,"Root",0,ta,"ScrollDownButton",0,tz,"ScrollUpButton",0,tB,"Select",0,ta,"SelectArrow",0,tK,"SelectContent",0,tm,"SelectGroup",0,tP,"SelectIcon",0,tu,"SelectItem",0,tM,"SelectItemIndicator",0,tD,"SelectItemText",0,tF,"SelectLabel",0,tN,"SelectPortal",0,tp,"SelectScrollDownButton",0,tz,"SelectScrollUpButton",0,tB,"SelectSeparator",0,tW,"SelectTrigger",0,ts,"SelectValue",0,tc,"SelectViewport",0,tj,"Separator",0,tW,"Trigger",0,ts,"Value",0,tc,"Viewport",0,tj,"createSelectScope",0,te,"unstable_BubbleInput",0,tU,"unstable_Provider",0,ti,"unstable_SelectBubbleInput",0,tU,"unstable_SelectProvider",0,ti],626605);var t$=e.i(626605),t$=t$,tJ=e.i(989239);function tQ({...e}){return(0,r.jsx)(t$.Root,{"data-slot":"select",...e})}function t0({...e}){return(0,r.jsx)(t$.Value,{"data-slot":"select-value",...e})}function t1({className:e,size:t="default",children:n,...o}){return(0,r.jsxs)(t$.Trigger,{"data-slot":"select-trigger","data-size":t,className:(0,tJ.cn)("flex w-fit items-center justify-between gap-2 rounded-md border border-input bg-transparent px-3 py-2 text-sm whitespace-nowrap shadow-xs transition-[color,box-shadow] outline-none focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 disabled:cursor-not-allowed disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-destructive/20 data-[placeholder]:text-muted-foreground data-[size=default]:h-9 data-[size=sm]:h-8 *:data-[slot=select-value]:line-clamp-1 *:data-[slot=select-value]:flex *:data-[slot=select-value]:items-center *:data-[slot=select-value]:gap-2 dark:bg-input/30 dark:hover:bg-input/50 dark:aria-invalid:ring-destructive/40 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4 [&_svg:not([class*='text-'])]:text-muted-foreground",e),...o,children:[n,(0,r.jsx)(t$.Icon,{asChild:!0,children:(0,r.jsx)(c,{className:"size-4 opacity-50"})})]})}function t2({className:e,children:t,position:n="item-aligned",align:o="center",...l}){return(0,r.jsx)(t$.Portal,{children:(0,r.jsxs)(t$.Content,{"data-slot":"select-content",className:(0,tJ.cn)("relative z-50 max-h-(--radix-select-content-available-height) min-w-[8rem] origin-(--radix-select-content-transform-origin) overflow-x-hidden overflow-y-auto rounded-md border bg-popover text-popover-foreground shadow-md 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 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[state=open]:animate-in data-[state=open]:fade-in-0 data-[state=open]:zoom-in-95","popper"===n&&"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,align:o,...l,children:[(0,r.jsx)(t5,{}),(0,r.jsx)(t$.Viewport,{className:(0,tJ.cn)("p-1","popper"===n&&"h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)] scroll-my-1"),children:t}),(0,r.jsx)(t6,{})]})})}function t4({className:e,children:t,...n}){return(0,r.jsxs)(t$.Item,{"data-slot":"select-item",className:(0,tJ.cn)("relative flex w-full cursor-default items-center gap-2 rounded-sm py-1.5 pr-8 pl-2 text-sm outline-hidden select-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4 [&_svg:not([class*='text-'])]:text-muted-foreground *:[span]:last:flex *:[span]:last:items-center *:[span]:last:gap-2",e),...n,children:[(0,r.jsx)("span",{"data-slot":"select-item-indicator",className:"absolute right-2 flex size-3.5 items-center justify-center",children:(0,r.jsx)(t$.ItemIndicator,{children:(0,r.jsx)(a.CheckIcon,{className:"size-4"})})}),(0,r.jsx)(t$.ItemText,{children:t})]})}function t5({className:e,...t}){return(0,r.jsx)(t$.ScrollUpButton,{"data-slot":"select-scroll-up-button",className:(0,tJ.cn)("flex cursor-default items-center justify-center py-1",e),...t,children:(0,r.jsx)(u,{className:"size-4"})})}function t6({className:e,...t}){return(0,r.jsx)(t$.ScrollDownButton,{"data-slot":"select-scroll-down-button",className:(0,tJ.cn)("flex cursor-default items-center justify-center py-1",e),...t,children:(0,r.jsx)(c,{className:"size-4"})})}var t7=e.i(36466);e.i(569743);var t3=e.i(332052);e.i(567973);var t8=e.i(346127),t9=e.i(554300);e.s(["default",0,function({guides:e,categories:t}){let n=(0,i.useRef)(null),[a,s]=(0,i.useState)("all"),[c,u]=(0,i.useState)(""),d=(0,i.useDeferredValue)(c.trim().toLocaleLowerCase()),f=(0,i.useMemo)(()=>e.filter(e=>{let t="all"===a||e.category?.slug.current===a,n=!d||[e.title,e.excerpt,e.bodyText,e.category?.title].filter(
1Boolean).some(e=>(0,l.stegaClean)(e).toLocaleLowerCase().includes(d));return t&&n}),[a,d,e]);return(0,t3.default)(()=>{let e=t8.gsap.context(()=>{let e=t8.gsap.timeline({delay:.5,defaults:{duration:1.5,ease:"elastic.out(1.1, 1)"}});e.fromTo(".guides-filter-anim",{autoAlpha:0,y:40},{autoAlpha:1,y:0,stagger:.1,clearProps:"transform,opacity,visibility"}),e.fromTo(".guide-item-anim",{autoAlpha:0,y:48},{autoAlpha:1,y:0,stagger:.1,clearProps:"transform,opacity,visibility"},.1)},n);return()=>e.revert()},[]),(0,r.jsxs)("section",{ref:n,className:"relative z-20 -mt-80 w-screen px-4 pt-24 pb-20 lg:-mt-[20rem] lg:px-20 lg:pt-32 lg:pb-32",children:[(0,r.jsxs)("div",{className:"flex justify-between gap-3 pb-6  lg:gap-6 lg:pb-8 max-w-360 mx-auto",children:[(0,r.jsx)("div",{className:"guides-filter-anim relative flex flex-col gap-2",children:(0,r.jsxs)(tQ,{value:a,onValueChange:s,children:[(0,r.jsx)(t1,{"aria-label":"Category",className:"min-h-14 w-full min-w-40 rounded-xl border-black/15 bg-white px-4 text-base font-medium tracking-tight text-black shadow-none focus-visible:border-[#5424C2] focus-visible:ring-[3px] focus-visible:ring-[#5424C2]/20 lg:min-w-64 lg:text-lg",children:(0,r.jsx)(t0,{placeholder:"All categories"})}),(0,r.jsxs)(t2,{position:"popper",align:"start",className:"rounded-xl border-black/10 bg-white p-1 text-black shadow-[0_16px_45px_rgba(44,22,84,0.16)]",children:[(0,r.jsx)(t4,{value:"all",className:"cursor-pointer rounded-lg px-3 py-3 text-base font-medium tracking-tight text-black focus:bg-[#F7F3FF] focus:text-black",children:"All categories"}),t.map(e=>(0,r.jsx)(t4,{value:e.slug.current,className:"cursor-pointer rounded-lg px-3 py-3 text-base font-medium tracking-tight text-black focus:bg-[#F7F3FF] focus:text-black",children:e.title},e._id))]})]})}),(0,r.jsxs)("label",{className:"guides-filter-anim relative flex flex-col gap-2",children:[(0,r.jsxs)("svg",{"aria-hidden":"true",viewBox:"0 0 20 20",className:"pointer-events-none absolute bottom-[1.125rem] left-4 size-5 text-[#7B7B7B]",fill:"none",children:[(0,r.jsx)("circle",{cx:"8.5",cy:"8.5",r:"5.5",stroke:"currentColor",strokeWidth:"1.7"}),(0,r.jsx)("path",{d:"m12.5 12.5 4 4",stroke:"currentColor",strokeWidth:"1.7",strokeLinecap:"square"})]}),(0,r.jsx)("input",{type:"search",value:c,onChange:e=>u(e.target.value),placeholder:"Search",className:"h-14 w-full rounded-xl border border-black/15 bg-white pr-4 pl-12 text-base font-medium tracking-tight text-black outline-none transition-colors placeholder:text-[#A2A2A2] focus:border-[#5424C2] lg:text-lg"})]})]}),(0,r.jsx)("div",{"aria-live":"polite",className:"pt-2 lg:pt-4 max-w-360 mx-auto",children:f.length>0?f.map(e=>(0,r.jsxs)(t7.default,{scroll:!1,href:`/guides/${e.slug.current}`,className:"guide-item-anim group grid w-full grid-cols-1 gap-5 border-b border-black/10 py-7 hover:px-6 transition-[background-color,padding] duration-300 first-of-type:border-t-0 hover:bg-black/5 focus-visible:bg-black/5 focus-visible:outline-none lg:grid-cols-[13rem_minmax(0,1fr)_auto] lg:items-center lg:gap-8 lg:py-9",children:[(0,r.jsx)("span",{className:"relative aspect-video w-full overflow-hidden rounded-xl bg-black/5 lg:aspect-[16/10] lg:w-52",children:(0,t9.urlForImage)(e.mainImage)&&(0,r.jsx)(o.default,{src:(0,t9.urlForImage)(e.mainImage)?.width(720).height(450).url()??"",width:720,height:450,alt:e.mainImage.alt??"",className:"size-full object-cover transition-transform duration-500 group-hover:scale-105"})}),(0,r.jsxs)("span",{className:"flex min-w-0 flex-col",children:[(0,r.jsxs)("span",{className:"mb-2 flex gap-1 font-minecraft text-sm text-[#5424C2] lg:text-base",children:[(0,r.jsx)("span",{children:e.category?.title??"Guide"}),(0,r.jsxs)("span",{className:"text-[#7B7B7B]",children:["| ",e.readTime??1," min read"]})]}),(0,r.jsx)("span",{className:"text-xl font-medium font-minecraftFifty tracking-tight text-black lg:text-3xl",children:e.title}),(0,r.jsx)("span",{className:"mt-2 max-w-4xl text-base tracking-tight text-[#7B7B7B] lg:text-lg",children:e.excerpt})]}),(0,r.jsxs)("span",{className:"flex items-center gap-2 font-minecraft text-base text-[#4472C7] lg:text-lg",children:["Read guide",(0,r.jsx)("span",{className:"transition-transform duration-300 group-hover:translate-x-1",children:">"})]})]},e._id)):(0,r.jsxs)("div",{className:"flex min-h-64 flex-col items-center justify-center px-4 text-center",children:[(0,r.jsx)("span",{className:"font-minecraftFifty text-2xl text-black",children:"No guides found"}),(0,r.jsx)("p",{className:"mt-3 max-w-md text-[#7B7B7B]",children:"Try a different category or search term."}),(0,r.jsx)("button",{type:"button",onClick:()=>{s("all"),u("")},className:"mt-6 font-minecraft text-[#4472C7] underline underline-offset-4",children:"Clear filters"})]})})]})}],973529)},82717,e=>{"use strict";var t=e.i(543526);e.i(370700);var n=e.i(532547);e.i(145406);var r=e.i(772847);e.i(569743);var o=e.i(332052);e.i(567973);var l=e.i(346127);e.s(["default",0,function({eyebrow:e,title:i="Galithin Guides"}){return(0,o.default)(()=>{let e=l.gsap.context(()=>{let e=l.gsap.timeline({scrollTrigger:{trigger:".guides-hero-section",start:"top 75%"}});e.fromTo(".guides-hero-char",{opacity:0,y:10},{opacity:1,y:0,stagger:.04}),e.fromTo(".guides-hero-eyebrow",{opacity:0,y:16},{opacity:1,y:0,duration:.6},.15)});return()=>e.revert()},[]),(0,t.jsxs)("section",{"data-header-foreground":"black",style:{background:`linear-gradient(
2        180deg,
3        #4ac8f0 0%,
4        #96deeb 30%,
5        #fff 80%
6      )`},className:"guides-hero-section relative flex w-screen z-10 flex-col items-center overflow-hidden bg-[linear-gradient(to_bottom,_#5424C2_0%,_#7024C2_40%,_#FFFFFF_90%)] px-4 lg:px-16",children:[(0,t.jsxs)("div",{className:"relative z-20 flex flex-col items-center pt-32 pb-64 lg:pt-52 lg:pb-96",children:[e&&(0,t.jsx)("span",{className:"guides-hero-eyebrow mb-4 font-minecraft text-base text-white/75 opacity-0 lg:text-xl",children:e}),(0,t.jsx)(r.default,{types:["chars"],charsClassName:"guides-hero-char",children:(0,t.jsx)("h1",{className:"max-w-5xl text-center font-minecraftFifty text-4xl tracking-tight text-black lg:text-6xl",children:i})})]}),(0,t.jsx)(n.CloudsMarquee,{pauseOnHover:!1,speed:"slow",className:"absolute top-0 left-0 z-0",scrollerClassName:"-translate-y-[45%] lg:-translate-y-[65%]"})]})}])}]);

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.