@gardenfi/garden-book 0.2.5 → 0.2.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/atoms/Modal/Modal.d.ts +1 -0
- package/dist/ui.cjs.js +2 -2
- package/dist/ui.es.js +10 -10
- package/dist/ui.umd.js +2 -2
- package/package.json +1 -1
|
@@ -8,6 +8,7 @@ declare const modalStyles: (props?: ({
|
|
|
8
8
|
type ModalProps = VariantProps<typeof modalStyles> & {
|
|
9
9
|
onClose?: () => void;
|
|
10
10
|
children: React.ReactNode;
|
|
11
|
+
disableScrollLock?: boolean;
|
|
11
12
|
};
|
|
12
13
|
declare const Modal: React.FC<ModalProps> & {
|
|
13
14
|
Children: React.FC<ChildrenProps>;
|
package/dist/ui.cjs.js
CHANGED
|
@@ -38,7 +38,7 @@
|
|
|
38
38
|
`)},Q3=function(){var e=parseInt(document.body.getAttribute(ke)||"0",10);return isFinite(e)?e:0},ni=function(){j.useEffect(function(){return document.body.setAttribute(ke,(Q3()+1).toString()),function(){var e=Q3()-1;e<=0?document.body.removeAttribute(ke):document.body.setAttribute(ke,e.toString())}},[])},ri=function(e){var t=e.noRelative,n=e.noImportant,r=e.gapMode,o=r===void 0?"margin":r;ni();var i=j.useMemo(function(){return Jo(o)},[o]);return j.createElement(ei,{styles:ti(i,!t,o,n?"":"!important")})},N2=!1;if(typeof window<"u")try{var jt=Object.defineProperty({},"passive",{get:function(){return N2=!0,!0}});window.addEventListener("test",jt,jt),window.removeEventListener("test",jt,jt)}catch{N2=!1}var Le=N2?{passive:!1}:!1,oi=function(e){return e.tagName==="TEXTAREA"},zr=function(e,t){if(!(e instanceof Element))return!1;var n=window.getComputedStyle(e);return n[t]!=="hidden"&&!(n.overflowY===n.overflowX&&!oi(e)&&n[t]==="visible")},ii=function(e){return zr(e,"overflowY")},si=function(e){return zr(e,"overflowX")},J3=function(e,t){var n=t.ownerDocument,r=t;do{typeof ShadowRoot<"u"&&r instanceof ShadowRoot&&(r=r.host);var o=Gr(e,r);if(o){var i=Kr(e,r),a=i[1],l=i[2];if(a>l)return!0}r=r.parentNode}while(r&&r!==n.body);return!1},ai=function(e){var t=e.scrollTop,n=e.scrollHeight,r=e.clientHeight;return[t,n,r]},li=function(e){var t=e.scrollLeft,n=e.scrollWidth,r=e.clientWidth;return[t,n,r]},Gr=function(e,t){return e==="v"?ii(t):si(t)},Kr=function(e,t){return e==="v"?ai(t):li(t)},ci=function(e,t){return e==="h"&&t==="rtl"?-1:1},ui=function(e,t,n,r,o){var i=ci(e,window.getComputedStyle(t).direction),a=i*r,l=n.target,c=t.contains(l),u=!1,f=a>0,d=0,h=0;do{var g=Kr(e,l),w=g[0],C=g[1],y=g[2],m=C-y-i*w;(w||m)&&Gr(e,l)&&(d+=m,h+=w),l instanceof ShadowRoot?l=l.host:l=l.parentNode}while(!c&&l!==document.body||c&&(t.contains(l)||t===l));return(f&&(Math.abs(d)<1||!o)||!f&&(Math.abs(h)<1||!o))&&(u=!0),u},St=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},en=function(e){return[e.deltaX,e.deltaY]},tn=function(e){return e&&"current"in e?e.current:e},fi=function(e,t){return e[0]===t[0]&&e[1]===t[1]},di=function(e){return`
|
|
39
39
|
.block-interactivity-`.concat(e,` {pointer-events: none;}
|
|
40
40
|
.allow-interactivity-`).concat(e,` {pointer-events: all;}
|
|
41
|
-
`)},hi=0,Me=[];function Ci(e){var t=j.useRef([]),n=j.useRef([0,0]),r=j.useRef(),o=j.useState(hi++)[0],i=j.useState(Wr)[0],a=j.useRef(e);j.useEffect(function(){a.current=e},[e]),j.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(o));var C=Ao([e.lockRef.current],(e.shards||[]).map(tn),!0).filter(Boolean);return C.forEach(function(y){return y.classList.add("allow-interactivity-".concat(o))}),function(){document.body.classList.remove("block-interactivity-".concat(o)),C.forEach(function(y){return y.classList.remove("allow-interactivity-".concat(o))})}}},[e.inert,e.lockRef.current,e.shards]);var l=j.useCallback(function(C,y){if("touches"in C&&C.touches.length===2||C.type==="wheel"&&C.ctrlKey)return!a.current.allowPinchZoom;var m=St(C),S=n.current,L="deltaX"in C?C.deltaX:S[0]-m[0],T="deltaY"in C?C.deltaY:S[1]-m[1],E,D=C.target,k=Math.abs(L)>Math.abs(T)?"h":"v";if("touches"in C&&k==="h"&&D.type==="range")return!1;var H=J3(k,D);if(!H)return!0;if(H?E=k:(E=k==="v"?"h":"v",H=J3(k,D)),!H)return!1;if(!r.current&&"changedTouches"in C&&(L||T)&&(r.current=E),!E)return!0;var A=r.current||E;return ui(A,y,C,A==="h"?L:T,!0)},[]),c=j.useCallback(function(C){var y=C;if(!(!Me.length||Me[Me.length-1]!==i)){var m="deltaY"in y?en(y):St(y),S=t.current.filter(function(E){return E.name===y.type&&(E.target===y.target||y.target===E.shadowParent)&&fi(E.delta,m)})[0];if(S&&S.should){y.cancelable&&y.preventDefault();return}if(!S){var L=(a.current.shards||[]).map(tn).filter(Boolean).filter(function(E){return E.contains(y.target)}),T=L.length>0?l(y,L[0]):!a.current.noIsolation;T&&y.cancelable&&y.preventDefault()}}},[]),u=j.useCallback(function(C,y,m,S){var L={name:C,delta:y,target:m,should:S,shadowParent:pi(m)};t.current.push(L),setTimeout(function(){t.current=t.current.filter(function(T){return T!==L})},1)},[]),f=j.useCallback(function(C){n.current=St(C),r.current=void 0},[]),d=j.useCallback(function(C){u(C.type,en(C),C.target,l(C,e.lockRef.current))},[]),h=j.useCallback(function(C){u(C.type,St(C),C.target,l(C,e.lockRef.current))},[]);j.useEffect(function(){return Me.push(i),e.setCallbacks({onScrollCapture:d,onWheelCapture:d,onTouchMoveCapture:h}),document.addEventListener("wheel",c,Le),document.addEventListener("touchmove",c,Le),document.addEventListener("touchstart",f,Le),function(){Me=Me.filter(function(C){return C!==i}),document.removeEventListener("wheel",c,Le),document.removeEventListener("touchmove",c,Le),document.removeEventListener("touchstart",f,Le)}},[]);var g=e.removeScrollBar,w=e.inert;return j.createElement(j.Fragment,null,w?j.createElement(i,{styles:di(o)}):null,g?j.createElement(ri,{gapMode:e.gapMode}):null)}function pi(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const gi=$o($r,Ci);var Jt=j.forwardRef(function(e,t){return j.createElement(Qt,ee({},e,{ref:t,sideCar:gi}))});Jt.classNames=Qt.classNames;const mi=Ze("gf-fixed gf-inset-y-0 gf-right-0 gf-transition-transform gf-duration-200 gf-bg-white gf-backdrop-blur-sm gf-p-4",{variants:{open:{true:"gf-translate-x-0",false:"gf-translate-x-full"},size:{small:"gf-w-full md:gf-w-[360px]",large:"gf-w-full md:gf-w-[480px]"}},defaultVariants:{open:!1}}),vi=({open:e,size:t,children:n,className:r,...o})=>s.jsx(dt,{children:s.jsx(Jt,{removeScrollBar:!1,enabled:!!e,children:s.jsx(ht,{level:"medium",className:V1(mi({open:e,size:t,className:r})),...o,children:n})})}),yi=Ze(["gf-fixed gf-inset-0 gf-z-50 gf-flex gf-items-center gf-justify-center gf-min-h-screen gf-transition-all"],{variants:{open:{true:"gf-bg-black",false:"gf-opacity-0 gf-pointer-events-none"}},defaultVariants:{open:!1}}),Xr=({open:e,onClose:t,children:n})=>{const[r,o]=x.useState(!1);x.useEffect(()=>{e&&o(!0)},[e]);const i=a=>{t&&(a.stopPropagation(),t())};return s.jsx(dt,{children:s.jsx(Jt,{removeScrollBar:!1,enabled:!!e,children:s.jsx("div",{className:`gf-bg-dark-grey gf-bg-opacity-40 ${yi({open:e})} ${r?e?"gf-animate-fade-in ":"gf-animate-fade-out":""}`,onClick:i,children:s.jsx("div",{className:`gf-transform gf-transition-transform ${e?"gf-animate-scale-in":"gf-animate-scale-out"}`,children:n})})})})},xi=({children:e,className:t,opacityLevel:n,...r})=>{const o=i=>{i.stopPropagation()};return s.jsx(ht,{level:n,onClick:o,className:`gf-mx-auto gf-backdrop-blur-md gf-overscroll-contain ${t||""}`,...r,children:e})};Xr.Children=xi;function te(e,t,{checkForDefaultPrevented:n=!0}={}){return function(o){if(e==null||e(o),n===!1||!o.defaultPrevented)return t==null?void 0:t(o)}}function nn(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function wi(...e){return t=>{let n=!1;const r=e.map(o=>{const i=nn(o,t);return!n&&typeof i=="function"&&(n=!0),i});if(n)return()=>{for(let o=0;o<r.length;o++){const i=r[o];typeof i=="function"?i():nn(e[o],null)}}}}function oe(...e){return j.useCallback(wi(...e),e)}function bi(e,t){const n=j.createContext(t),r=i=>{const{children:a,...l}=i,c=j.useMemo(()=>l,Object.values(l));return s.jsx(n.Provider,{value:c,children:a})};r.displayName=e+"Provider";function o(i){const a=j.useContext(n);if(a)return a;if(t!==void 0)return t;throw new Error(`\`${i}\` must be used within \`${e}\``)}return[r,o]}function Li(e,t=[]){let n=[];function r(i,a){const l=j.createContext(a),c=n.length;n=[...n,a];const u=d=>{var m;const{scope:h,children:g,...w}=d,C=((m=h==null?void 0:h[e])==null?void 0:m[c])||l,y=j.useMemo(()=>w,Object.values(w));return s.jsx(C.Provider,{value:y,children:g})};u.displayName=i+"Provider";function f(d,h){var C;const g=((C=h==null?void 0:h[e])==null?void 0:C[c])||l,w=j.useContext(g);if(w)return w;if(a!==void 0)return a;throw new Error(`\`${d}\` must be used within \`${i}\``)}return[u,f]}const o=()=>{const i=n.map(a=>j.createContext(a));return function(l){const c=(l==null?void 0:l[e])||i;return j.useMemo(()=>({[`__scope${e}`]:{...l,[e]:c}}),[l,c])}};return o.scopeName=e,[r,Mi(o,...t)]}function Mi(...e){const t=e[0];if(e.length===1)return t;const n=()=>{const r=e.map(o=>({useScope:o(),scopeName:o.scopeName}));return function(i){const a=r.reduce((l,{useScope:c,scopeName:u})=>{const d=c(i)[`__scope${u}`];return{...l,...d}},{});return j.useMemo(()=>({[`__scope${t.scopeName}`]:a}),[a])}};return n.scopeName=t.scopeName,n}var st=globalThis!=null&&globalThis.document?j.useLayoutEffect:()=>{},Vi=j[" useId ".trim().toString()]||(()=>{}),ji=0;function m2(e){const[t,n]=j.useState(Vi());return st(()=>{e||n(r=>r??String(ji++))},[e]),e||(t?`radix-${t}`:"")}var Si=j[" useInsertionEffect ".trim().toString()]||st;function Ti({prop:e,defaultProp:t,onChange:n=()=>{},caller:r}){const[o,i,a]=Pi({defaultProp:t,onChange:n}),l=e!==void 0,c=l?e:o;{const f=j.useRef(e!==void 0);j.useEffect(()=>{const d=f.current;d!==l&&console.warn(`${r} is changing from ${d?"controlled":"uncontrolled"} to ${l?"controlled":"uncontrolled"}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`),f.current=l},[l,r])}const u=j.useCallback(f=>{var d;if(l){const h=Hi(f)?f(e):f;h!==e&&((d=a.current)==null||d.call(a,h))}else i(f)},[l,e,i,a]);return[c,u]}function Pi({defaultProp:e,onChange:t}){const[n,r]=j.useState(e),o=j.useRef(n),i=j.useRef(t);return Si(()=>{i.current=t},[t]),j.useEffect(()=>{var a;o.current!==n&&((a=i.current)==null||a.call(i,n),o.current=n)},[n,o]),[n,r,i]}function Hi(e){return typeof e=="function"}function Yr(e){const t=Ei(e),n=j.forwardRef((r,o)=>{const{children:i,...a}=r,l=j.Children.toArray(i),c=l.find(Ri);if(c){const u=c.props.children,f=l.map(d=>d===c?j.Children.count(u)>1?j.Children.only(null):j.isValidElement(u)?u.props.children:null:d);return s.jsx(t,{...a,ref:o,children:j.isValidElement(u)?j.cloneElement(u,void 0,f):null})}return s.jsx(t,{...a,ref:o,children:i})});return n.displayName=`${e}.Slot`,n}function Ei(e){const t=j.forwardRef((n,r)=>{const{children:o,...i}=n,a=j.isValidElement(o)?Oi(o):void 0,l=oe(a,r);if(j.isValidElement(o)){const c=Ai(i,o.props);return o.type!==j.Fragment&&(c.ref=l),j.cloneElement(o,c)}return j.Children.count(o)>1?j.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var ki=Symbol("radix.slottable");function Ri(e){return j.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===ki}function Ai(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]=(...l)=>{const c=i(...l);return o(...l),c}:o&&(n[r]=o):r==="style"?n[r]={...o,...i}:r==="className"&&(n[r]=[o,i].filter(Boolean).join(" "))}return{...e,...n}}function Oi(e){var r,o;let t=(r=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(o=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:o.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var Di=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],K1=Di.reduce((e,t)=>{const n=Yr(`Primitive.${t}`),r=j.forwardRef((o,i)=>{const{asChild:a,...l}=o,c=a?n:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),s.jsx(c,{...l,ref:i})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{});function Zi(e,t){e&&D0.flushSync(()=>e.dispatchEvent(t))}function at(e){const t=j.useRef(e);return j.useEffect(()=>{t.current=e}),j.useMemo(()=>(...n)=>{var r;return(r=t.current)==null?void 0:r.call(t,...n)},[])}function Ii(e,t=globalThis==null?void 0:globalThis.document){const n=at(e);j.useEffect(()=>{const r=o=>{o.key==="Escape"&&n(o)};return t.addEventListener("keydown",r,{capture:!0}),()=>t.removeEventListener("keydown",r,{capture:!0})},[n,t])}var _i="DismissableLayer",F2="dismissableLayer.update",Bi="dismissableLayer.pointerDownOutside",Ni="dismissableLayer.focusOutside",rn,qr=j.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),Qr=j.forwardRef((e,t)=>{const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:r,onPointerDownOutside:o,onFocusOutside:i,onInteractOutside:a,onDismiss:l,...c}=e,u=j.useContext(qr),[f,d]=j.useState(null),h=(f==null?void 0:f.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,g]=j.useState({}),w=oe(t,k=>d(k)),C=Array.from(u.layers),[y]=[...u.layersWithOutsidePointerEventsDisabled].slice(-1),m=C.indexOf(y),S=f?C.indexOf(f):-1,L=u.layersWithOutsidePointerEventsDisabled.size>0,T=S>=m,E=$i(k=>{const H=k.target,A=[...u.branches].some(_=>_.contains(H));!T||A||(o==null||o(k),a==null||a(k),k.defaultPrevented||l==null||l())},h),D=Wi(k=>{const H=k.target;[...u.branches].some(_=>_.contains(H))||(i==null||i(k),a==null||a(k),k.defaultPrevented||l==null||l())},h);return Ii(k=>{S===u.layers.size-1&&(r==null||r(k),!k.defaultPrevented&&l&&(k.preventDefault(),l()))},h),j.useEffect(()=>{if(f)return n&&(u.layersWithOutsidePointerEventsDisabled.size===0&&(rn=h.body.style.pointerEvents,h.body.style.pointerEvents="none"),u.layersWithOutsidePointerEventsDisabled.add(f)),u.layers.add(f),on(),()=>{n&&u.layersWithOutsidePointerEventsDisabled.size===1&&(h.body.style.pointerEvents=rn)}},[f,h,n,u]),j.useEffect(()=>()=>{f&&(u.layers.delete(f),u.layersWithOutsidePointerEventsDisabled.delete(f),on())},[f,u]),j.useEffect(()=>{const k=()=>g({});return document.addEventListener(F2,k),()=>document.removeEventListener(F2,k)},[]),s.jsx(K1.div,{...c,ref:w,style:{pointerEvents:L?T?"auto":"none":void 0,...e.style},onFocusCapture:te(e.onFocusCapture,D.onFocusCapture),onBlurCapture:te(e.onBlurCapture,D.onBlurCapture),onPointerDownCapture:te(e.onPointerDownCapture,E.onPointerDownCapture)})});Qr.displayName=_i;var Fi="DismissableLayerBranch",Ui=j.forwardRef((e,t)=>{const n=j.useContext(qr),r=j.useRef(null),o=oe(t,r);return j.useEffect(()=>{const i=r.current;if(i)return n.branches.add(i),()=>{n.branches.delete(i)}},[n.branches]),s.jsx(K1.div,{...e,ref:o})});Ui.displayName=Fi;function $i(e,t=globalThis==null?void 0:globalThis.document){const n=at(e),r=j.useRef(!1),o=j.useRef(()=>{});return j.useEffect(()=>{const i=l=>{if(l.target&&!r.current){let c=function(){Jr(Bi,n,u,{discrete:!0})};const u={originalEvent:l};l.pointerType==="touch"?(t.removeEventListener("click",o.current),o.current=c,t.addEventListener("click",o.current,{once:!0})):c()}else t.removeEventListener("click",o.current);r.current=!1},a=window.setTimeout(()=>{t.addEventListener("pointerdown",i)},0);return()=>{window.clearTimeout(a),t.removeEventListener("pointerdown",i),t.removeEventListener("click",o.current)}},[t,n]),{onPointerDownCapture:()=>r.current=!0}}function Wi(e,t=globalThis==null?void 0:globalThis.document){const n=at(e),r=j.useRef(!1);return j.useEffect(()=>{const o=i=>{i.target&&!r.current&&Jr(Ni,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 on(){const e=new CustomEvent(F2);document.dispatchEvent(e)}function Jr(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?Zi(o,i):o.dispatchEvent(i)}var v2="focusScope.autoFocusOnMount",y2="focusScope.autoFocusOnUnmount",sn={bubbles:!1,cancelable:!0},zi="FocusScope",e6=j.forwardRef((e,t)=>{const{loop:n=!1,trapped:r=!1,onMountAutoFocus:o,onUnmountAutoFocus:i,...a}=e,[l,c]=j.useState(null),u=at(o),f=at(i),d=j.useRef(null),h=oe(t,C=>c(C)),g=j.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;j.useEffect(()=>{if(r){let C=function(L){if(g.paused||!l)return;const T=L.target;l.contains(T)?d.current=T:Q1(d.current,{select:!0})},y=function(L){if(g.paused||!l)return;const T=L.relatedTarget;T!==null&&(l.contains(T)||Q1(d.current,{select:!0}))},m=function(L){if(document.activeElement===document.body)for(const E of L)E.removedNodes.length>0&&Q1(l)};document.addEventListener("focusin",C),document.addEventListener("focusout",y);const S=new MutationObserver(m);return l&&S.observe(l,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",C),document.removeEventListener("focusout",y),S.disconnect()}}},[r,l,g.paused]),j.useEffect(()=>{if(l){ln.add(g);const C=document.activeElement;if(!l.contains(C)){const m=new CustomEvent(v2,sn);l.addEventListener(v2,u),l.dispatchEvent(m),m.defaultPrevented||(Gi(Qi(t6(l)),{select:!0}),document.activeElement===C&&Q1(l))}return()=>{l.removeEventListener(v2,u),setTimeout(()=>{const m=new CustomEvent(y2,sn);l.addEventListener(y2,f),l.dispatchEvent(m),m.defaultPrevented||Q1(C??document.body,{select:!0}),l.removeEventListener(y2,f),ln.remove(g)},0)}}},[l,u,f,g]);const w=j.useCallback(C=>{if(!n&&!r||g.paused)return;const y=C.key==="Tab"&&!C.altKey&&!C.ctrlKey&&!C.metaKey,m=document.activeElement;if(y&&m){const S=C.currentTarget,[L,T]=Ki(S);L&&T?!C.shiftKey&&m===T?(C.preventDefault(),n&&Q1(L,{select:!0})):C.shiftKey&&m===L&&(C.preventDefault(),n&&Q1(T,{select:!0})):m===S&&C.preventDefault()}},[n,r,g.paused]);return s.jsx(K1.div,{tabIndex:-1,...a,ref:h,onKeyDown:w})});e6.displayName=zi;function Gi(e,{select:t=!1}={}){const n=document.activeElement;for(const r of e)if(Q1(r,{select:t}),document.activeElement!==n)return}function Ki(e){const t=t6(e),n=an(t,e),r=an(t.reverse(),e);return[n,r]}function t6(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 an(e,t){for(const n of e)if(!Xi(n,{upTo:t}))return n}function Xi(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 Yi(e){return e instanceof HTMLInputElement&&"select"in e}function Q1(e,{select:t=!1}={}){if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&Yi(e)&&t&&e.select()}}var ln=qi();function qi(){let e=[];return{add(t){const n=e[0];t!==n&&(n==null||n.pause()),e=cn(e,t),e.unshift(t)},remove(t){var n;e=cn(e,t),(n=e[0])==null||n.resume()}}}function cn(e,t){const n=[...e],r=n.indexOf(t);return r!==-1&&n.splice(r,1),n}function Qi(e){return e.filter(t=>t.tagName!=="A")}var Ji="Portal",n6=j.forwardRef((e,t)=>{var l;const{container:n,...r}=e,[o,i]=j.useState(!1);st(()=>i(!0),[]);const a=n||o&&((l=globalThis==null?void 0:globalThis.document)==null?void 0:l.body);return a?Rr.createPortal(s.jsx(K1.div,{...r,ref:t}),a):null});n6.displayName=Ji;function es(e,t){return j.useReducer((n,r)=>t[n][r]??n,e)}var e2=e=>{const{present:t,children:n}=e,r=ts(t),o=typeof n=="function"?n({present:r.isPresent}):j.Children.only(n),i=oe(r.ref,ns(o));return typeof n=="function"||r.isPresent?j.cloneElement(o,{ref:i}):null};e2.displayName="Presence";function ts(e){const[t,n]=j.useState(),r=j.useRef(null),o=j.useRef(e),i=j.useRef("none"),a=e?"mounted":"unmounted",[l,c]=es(a,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return j.useEffect(()=>{const u=Tt(r.current);i.current=l==="mounted"?u:"none"},[l]),st(()=>{const u=r.current,f=o.current;if(f!==e){const h=i.current,g=Tt(u);e?c("MOUNT"):g==="none"||(u==null?void 0:u.display)==="none"?c("UNMOUNT"):c(f&&h!==g?"ANIMATION_OUT":"UNMOUNT"),o.current=e}},[e,c]),st(()=>{if(t){let u;const f=t.ownerDocument.defaultView??window,d=g=>{const C=Tt(r.current).includes(g.animationName);if(g.target===t&&C&&(c("ANIMATION_END"),!o.current)){const y=t.style.animationFillMode;t.style.animationFillMode="forwards",u=f.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=y)})}},h=g=>{g.target===t&&(i.current=Tt(r.current))};return t.addEventListener("animationstart",h),t.addEventListener("animationcancel",d),t.addEventListener("animationend",d),()=>{f.clearTimeout(u),t.removeEventListener("animationstart",h),t.removeEventListener("animationcancel",d),t.removeEventListener("animationend",d)}}else c("ANIMATION_END")},[t,c]),{isPresent:["mounted","unmountSuspended"].includes(l),ref:j.useCallback(u=>{r.current=u?getComputedStyle(u):null,n(u)},[])}}function Tt(e){return(e==null?void 0:e.animationName)||"none"}function ns(e){var r,o;let t=(r=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(o=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:o.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var x2=0;function rs(){j.useEffect(()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??un()),document.body.insertAdjacentElement("beforeend",e[1]??un()),x2++,()=>{x2===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(t=>t.remove()),x2--}},[])}function un(){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 os=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},Ve=new WeakMap,Pt=new WeakMap,Ht={},w2=0,r6=function(e){return e&&(e.host||r6(e.parentNode))},is=function(e,t){return t.map(function(n){if(e.contains(n))return n;var r=r6(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})},ss=function(e,t,n,r){var o=is(t,Array.isArray(e)?e:[e]);Ht[n]||(Ht[n]=new WeakMap);var i=Ht[n],a=[],l=new Set,c=new Set(o),u=function(d){!d||l.has(d)||(l.add(d),u(d.parentNode))};o.forEach(u);var f=function(d){!d||c.has(d)||Array.prototype.forEach.call(d.children,function(h){if(l.has(h))f(h);else try{var g=h.getAttribute(r),w=g!==null&&g!=="false",C=(Ve.get(h)||0)+1,y=(i.get(h)||0)+1;Ve.set(h,C),i.set(h,y),a.push(h),C===1&&w&&Pt.set(h,!0),y===1&&h.setAttribute(n,"true"),w||h.setAttribute(r,"true")}catch(m){console.error("aria-hidden: cannot operate on ",h,m)}})};return f(t),l.clear(),w2++,function(){a.forEach(function(d){var h=Ve.get(d)-1,g=i.get(d)-1;Ve.set(d,h),i.set(d,g),h||(Pt.has(d)||d.removeAttribute(r),Pt.delete(d)),g||d.removeAttribute(n)}),w2--,w2||(Ve=new WeakMap,Ve=new WeakMap,Pt=new WeakMap,Ht={})}},as=function(e,t,n){n===void 0&&(n="data-aria-hidden");var r=Array.from(Array.isArray(e)?e:[e]),o=os(e);return o?(r.push.apply(r,Array.from(o.querySelectorAll("[aria-live]"))),ss(r,o,n,"aria-hidden")):function(){return null}},t2="Dialog",[o6,Nc]=Li(t2),[ls,A1]=o6(t2),i6=e=>{const{__scopeDialog:t,children:n,open:r,defaultOpen:o,onOpenChange:i,modal:a=!0}=e,l=j.useRef(null),c=j.useRef(null),[u,f]=Ti({prop:r,defaultProp:o??!1,onChange:i,caller:t2});return s.jsx(ls,{scope:t,triggerRef:l,contentRef:c,contentId:m2(),titleId:m2(),descriptionId:m2(),open:u,onOpenChange:f,onOpenToggle:j.useCallback(()=>f(d=>!d),[f]),modal:a,children:n})};i6.displayName=t2;var s6="DialogTrigger",a6=j.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=A1(s6,n),i=oe(t,o.triggerRef);return s.jsx(K1.button,{type:"button","aria-haspopup":"dialog","aria-expanded":o.open,"aria-controls":o.contentId,"data-state":u3(o.open),...r,ref:i,onClick:te(e.onClick,o.onOpenToggle)})});a6.displayName=s6;var l3="DialogPortal",[cs,l6]=o6(l3,{forceMount:void 0}),c6=e=>{const{__scopeDialog:t,forceMount:n,children:r,container:o}=e,i=A1(l3,t);return s.jsx(cs,{scope:t,forceMount:n,children:j.Children.map(r,a=>s.jsx(e2,{present:n||i.open,children:s.jsx(n6,{asChild:!0,container:o,children:a})}))})};c6.displayName=l3;var Wt="DialogOverlay",u6=j.forwardRef((e,t)=>{const n=l6(Wt,e.__scopeDialog),{forceMount:r=n.forceMount,...o}=e,i=A1(Wt,e.__scopeDialog);return i.modal?s.jsx(e2,{present:r||i.open,children:s.jsx(fs,{...o,ref:t})}):null});u6.displayName=Wt;var us=Yr("DialogOverlay.RemoveScroll"),fs=j.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=A1(Wt,n);return s.jsx(Jt,{as:us,allowPinchZoom:!0,shards:[o.contentRef],children:s.jsx(K1.div,{"data-state":u3(o.open),...r,ref:t,style:{pointerEvents:"auto",...r.style}})})}),pe="DialogContent",f6=j.forwardRef((e,t)=>{const n=l6(pe,e.__scopeDialog),{forceMount:r=n.forceMount,...o}=e,i=A1(pe,e.__scopeDialog);return s.jsx(e2,{present:r||i.open,children:i.modal?s.jsx(ds,{...o,ref:t}):s.jsx(hs,{...o,ref:t})})});f6.displayName=pe;var ds=j.forwardRef((e,t)=>{const n=A1(pe,e.__scopeDialog),r=j.useRef(null),o=oe(t,n.contentRef,r);return j.useEffect(()=>{const i=r.current;if(i)return as(i)},[]),s.jsx(d6,{...e,ref:o,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:te(e.onCloseAutoFocus,i=>{var a;i.preventDefault(),(a=n.triggerRef.current)==null||a.focus()}),onPointerDownOutside:te(e.onPointerDownOutside,i=>{const a=i.detail.originalEvent,l=a.button===0&&a.ctrlKey===!0;(a.button===2||l)&&i.preventDefault()}),onFocusOutside:te(e.onFocusOutside,i=>i.preventDefault())})}),hs=j.forwardRef((e,t)=>{const n=A1(pe,e.__scopeDialog),r=j.useRef(!1),o=j.useRef(!1);return s.jsx(d6,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:i=>{var a,l;(a=e.onCloseAutoFocus)==null||a.call(e,i),i.defaultPrevented||(r.current||(l=n.triggerRef.current)==null||l.focus(),i.preventDefault()),r.current=!1,o.current=!1},onInteractOutside:i=>{var c,u;(c=e.onInteractOutside)==null||c.call(e,i),i.defaultPrevented||(r.current=!0,i.detail.originalEvent.type==="pointerdown"&&(o.current=!0));const a=i.target;((u=n.triggerRef.current)==null?void 0:u.contains(a))&&i.preventDefault(),i.detail.originalEvent.type==="focusin"&&o.current&&i.preventDefault()}})}),d6=j.forwardRef((e,t)=>{const{__scopeDialog:n,trapFocus:r,onOpenAutoFocus:o,onCloseAutoFocus:i,...a}=e,l=A1(pe,n),c=j.useRef(null),u=oe(t,c);return rs(),s.jsxs(s.Fragment,{children:[s.jsx(e6,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:o,onUnmountAutoFocus:i,children:s.jsx(Qr,{role:"dialog",id:l.contentId,"aria-describedby":l.descriptionId,"aria-labelledby":l.titleId,"data-state":u3(l.open),...a,ref:u,onDismiss:()=>l.onOpenChange(!1)})}),s.jsxs(s.Fragment,{children:[s.jsx(Cs,{titleId:l.titleId}),s.jsx(gs,{contentRef:c,descriptionId:l.descriptionId})]})]})}),c3="DialogTitle",h6=j.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=A1(c3,n);return s.jsx(K1.h2,{id:o.titleId,...r,ref:t})});h6.displayName=c3;var C6="DialogDescription",p6=j.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=A1(C6,n);return s.jsx(K1.p,{id:o.descriptionId,...r,ref:t})});p6.displayName=C6;var g6="DialogClose",m6=j.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=A1(g6,n);return s.jsx(K1.button,{type:"button",...r,ref:t,onClick:te(e.onClick,()=>o.onOpenChange(!1))})});m6.displayName=g6;function u3(e){return e?"open":"closed"}var v6="DialogTitleWarning",[Fc,y6]=bi(v6,{contentName:pe,titleName:c3,docsSlug:"dialog"}),Cs=({titleId:e})=>{const t=y6(v6),n=`\`${t.contentName}\` requires a \`${t.titleName}\` for the component to be accessible for screen reader users.
|
|
41
|
+
`)},hi=0,Me=[];function Ci(e){var t=j.useRef([]),n=j.useRef([0,0]),r=j.useRef(),o=j.useState(hi++)[0],i=j.useState(Wr)[0],a=j.useRef(e);j.useEffect(function(){a.current=e},[e]),j.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(o));var C=Ao([e.lockRef.current],(e.shards||[]).map(tn),!0).filter(Boolean);return C.forEach(function(y){return y.classList.add("allow-interactivity-".concat(o))}),function(){document.body.classList.remove("block-interactivity-".concat(o)),C.forEach(function(y){return y.classList.remove("allow-interactivity-".concat(o))})}}},[e.inert,e.lockRef.current,e.shards]);var l=j.useCallback(function(C,y){if("touches"in C&&C.touches.length===2||C.type==="wheel"&&C.ctrlKey)return!a.current.allowPinchZoom;var m=St(C),S=n.current,L="deltaX"in C?C.deltaX:S[0]-m[0],T="deltaY"in C?C.deltaY:S[1]-m[1],E,D=C.target,k=Math.abs(L)>Math.abs(T)?"h":"v";if("touches"in C&&k==="h"&&D.type==="range")return!1;var H=J3(k,D);if(!H)return!0;if(H?E=k:(E=k==="v"?"h":"v",H=J3(k,D)),!H)return!1;if(!r.current&&"changedTouches"in C&&(L||T)&&(r.current=E),!E)return!0;var A=r.current||E;return ui(A,y,C,A==="h"?L:T,!0)},[]),c=j.useCallback(function(C){var y=C;if(!(!Me.length||Me[Me.length-1]!==i)){var m="deltaY"in y?en(y):St(y),S=t.current.filter(function(E){return E.name===y.type&&(E.target===y.target||y.target===E.shadowParent)&&fi(E.delta,m)})[0];if(S&&S.should){y.cancelable&&y.preventDefault();return}if(!S){var L=(a.current.shards||[]).map(tn).filter(Boolean).filter(function(E){return E.contains(y.target)}),T=L.length>0?l(y,L[0]):!a.current.noIsolation;T&&y.cancelable&&y.preventDefault()}}},[]),u=j.useCallback(function(C,y,m,S){var L={name:C,delta:y,target:m,should:S,shadowParent:pi(m)};t.current.push(L),setTimeout(function(){t.current=t.current.filter(function(T){return T!==L})},1)},[]),f=j.useCallback(function(C){n.current=St(C),r.current=void 0},[]),d=j.useCallback(function(C){u(C.type,en(C),C.target,l(C,e.lockRef.current))},[]),h=j.useCallback(function(C){u(C.type,St(C),C.target,l(C,e.lockRef.current))},[]);j.useEffect(function(){return Me.push(i),e.setCallbacks({onScrollCapture:d,onWheelCapture:d,onTouchMoveCapture:h}),document.addEventListener("wheel",c,Le),document.addEventListener("touchmove",c,Le),document.addEventListener("touchstart",f,Le),function(){Me=Me.filter(function(C){return C!==i}),document.removeEventListener("wheel",c,Le),document.removeEventListener("touchmove",c,Le),document.removeEventListener("touchstart",f,Le)}},[]);var g=e.removeScrollBar,w=e.inert;return j.createElement(j.Fragment,null,w?j.createElement(i,{styles:di(o)}):null,g?j.createElement(ri,{gapMode:e.gapMode}):null)}function pi(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const gi=$o($r,Ci);var Jt=j.forwardRef(function(e,t){return j.createElement(Qt,ee({},e,{ref:t,sideCar:gi}))});Jt.classNames=Qt.classNames;const mi=Ze("gf-fixed gf-inset-y-0 gf-right-0 gf-transition-transform gf-duration-200 gf-bg-white gf-backdrop-blur-sm gf-p-4",{variants:{open:{true:"gf-translate-x-0",false:"gf-translate-x-full"},size:{small:"gf-w-full md:gf-w-[360px]",large:"gf-w-full md:gf-w-[480px]"}},defaultVariants:{open:!1}}),vi=({open:e,size:t,children:n,className:r,...o})=>s.jsx(dt,{children:s.jsx(Jt,{removeScrollBar:!1,enabled:!!e,children:s.jsx(ht,{level:"medium",className:V1(mi({open:e,size:t,className:r})),...o,children:n})})}),yi=Ze(["gf-fixed gf-inset-0 gf-z-50 gf-flex gf-items-center gf-justify-center gf-min-h-screen gf-transition-all"],{variants:{open:{true:"gf-bg-black",false:"gf-opacity-0 gf-pointer-events-none"}},defaultVariants:{open:!1}}),Xr=({open:e,onClose:t,disableScrollLock:n,children:r})=>{const[o,i]=x.useState(!1);x.useEffect(()=>{e&&i(!0)},[e]);const a=l=>{t&&(l.stopPropagation(),t())};return s.jsx(dt,{children:s.jsx(Jt,{removeScrollBar:!1,enabled:!!e&&!n,children:s.jsx("div",{className:`gf-bg-dark-grey gf-bg-opacity-40 ${yi({open:e})} ${o?e?"gf-animate-fade-in ":"gf-animate-fade-out":""}`,onClick:a,children:s.jsx("div",{className:`gf-transform gf-transition-transform ${e?"gf-animate-scale-in":"gf-animate-scale-out"}`,children:r})})})})},xi=({children:e,className:t,opacityLevel:n,...r})=>{const o=i=>{i.stopPropagation()};return s.jsx(ht,{level:n,onClick:o,className:`gf-mx-auto gf-backdrop-blur-md gf-overscroll-contain ${t||""}`,...r,children:e})};Xr.Children=xi;function te(e,t,{checkForDefaultPrevented:n=!0}={}){return function(o){if(e==null||e(o),n===!1||!o.defaultPrevented)return t==null?void 0:t(o)}}function nn(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function wi(...e){return t=>{let n=!1;const r=e.map(o=>{const i=nn(o,t);return!n&&typeof i=="function"&&(n=!0),i});if(n)return()=>{for(let o=0;o<r.length;o++){const i=r[o];typeof i=="function"?i():nn(e[o],null)}}}}function oe(...e){return j.useCallback(wi(...e),e)}function bi(e,t){const n=j.createContext(t),r=i=>{const{children:a,...l}=i,c=j.useMemo(()=>l,Object.values(l));return s.jsx(n.Provider,{value:c,children:a})};r.displayName=e+"Provider";function o(i){const a=j.useContext(n);if(a)return a;if(t!==void 0)return t;throw new Error(`\`${i}\` must be used within \`${e}\``)}return[r,o]}function Li(e,t=[]){let n=[];function r(i,a){const l=j.createContext(a),c=n.length;n=[...n,a];const u=d=>{var m;const{scope:h,children:g,...w}=d,C=((m=h==null?void 0:h[e])==null?void 0:m[c])||l,y=j.useMemo(()=>w,Object.values(w));return s.jsx(C.Provider,{value:y,children:g})};u.displayName=i+"Provider";function f(d,h){var C;const g=((C=h==null?void 0:h[e])==null?void 0:C[c])||l,w=j.useContext(g);if(w)return w;if(a!==void 0)return a;throw new Error(`\`${d}\` must be used within \`${i}\``)}return[u,f]}const o=()=>{const i=n.map(a=>j.createContext(a));return function(l){const c=(l==null?void 0:l[e])||i;return j.useMemo(()=>({[`__scope${e}`]:{...l,[e]:c}}),[l,c])}};return o.scopeName=e,[r,Mi(o,...t)]}function Mi(...e){const t=e[0];if(e.length===1)return t;const n=()=>{const r=e.map(o=>({useScope:o(),scopeName:o.scopeName}));return function(i){const a=r.reduce((l,{useScope:c,scopeName:u})=>{const d=c(i)[`__scope${u}`];return{...l,...d}},{});return j.useMemo(()=>({[`__scope${t.scopeName}`]:a}),[a])}};return n.scopeName=t.scopeName,n}var st=globalThis!=null&&globalThis.document?j.useLayoutEffect:()=>{},Vi=j[" useId ".trim().toString()]||(()=>{}),ji=0;function m2(e){const[t,n]=j.useState(Vi());return st(()=>{e||n(r=>r??String(ji++))},[e]),e||(t?`radix-${t}`:"")}var Si=j[" useInsertionEffect ".trim().toString()]||st;function Ti({prop:e,defaultProp:t,onChange:n=()=>{},caller:r}){const[o,i,a]=Pi({defaultProp:t,onChange:n}),l=e!==void 0,c=l?e:o;{const f=j.useRef(e!==void 0);j.useEffect(()=>{const d=f.current;d!==l&&console.warn(`${r} is changing from ${d?"controlled":"uncontrolled"} to ${l?"controlled":"uncontrolled"}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`),f.current=l},[l,r])}const u=j.useCallback(f=>{var d;if(l){const h=Hi(f)?f(e):f;h!==e&&((d=a.current)==null||d.call(a,h))}else i(f)},[l,e,i,a]);return[c,u]}function Pi({defaultProp:e,onChange:t}){const[n,r]=j.useState(e),o=j.useRef(n),i=j.useRef(t);return Si(()=>{i.current=t},[t]),j.useEffect(()=>{var a;o.current!==n&&((a=i.current)==null||a.call(i,n),o.current=n)},[n,o]),[n,r,i]}function Hi(e){return typeof e=="function"}function Yr(e){const t=Ei(e),n=j.forwardRef((r,o)=>{const{children:i,...a}=r,l=j.Children.toArray(i),c=l.find(Ri);if(c){const u=c.props.children,f=l.map(d=>d===c?j.Children.count(u)>1?j.Children.only(null):j.isValidElement(u)?u.props.children:null:d);return s.jsx(t,{...a,ref:o,children:j.isValidElement(u)?j.cloneElement(u,void 0,f):null})}return s.jsx(t,{...a,ref:o,children:i})});return n.displayName=`${e}.Slot`,n}function Ei(e){const t=j.forwardRef((n,r)=>{const{children:o,...i}=n,a=j.isValidElement(o)?Oi(o):void 0,l=oe(a,r);if(j.isValidElement(o)){const c=Ai(i,o.props);return o.type!==j.Fragment&&(c.ref=l),j.cloneElement(o,c)}return j.Children.count(o)>1?j.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var ki=Symbol("radix.slottable");function Ri(e){return j.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===ki}function Ai(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]=(...l)=>{const c=i(...l);return o(...l),c}:o&&(n[r]=o):r==="style"?n[r]={...o,...i}:r==="className"&&(n[r]=[o,i].filter(Boolean).join(" "))}return{...e,...n}}function Oi(e){var r,o;let t=(r=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(o=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:o.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var Di=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],K1=Di.reduce((e,t)=>{const n=Yr(`Primitive.${t}`),r=j.forwardRef((o,i)=>{const{asChild:a,...l}=o,c=a?n:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),s.jsx(c,{...l,ref:i})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{});function Zi(e,t){e&&D0.flushSync(()=>e.dispatchEvent(t))}function at(e){const t=j.useRef(e);return j.useEffect(()=>{t.current=e}),j.useMemo(()=>(...n)=>{var r;return(r=t.current)==null?void 0:r.call(t,...n)},[])}function Ii(e,t=globalThis==null?void 0:globalThis.document){const n=at(e);j.useEffect(()=>{const r=o=>{o.key==="Escape"&&n(o)};return t.addEventListener("keydown",r,{capture:!0}),()=>t.removeEventListener("keydown",r,{capture:!0})},[n,t])}var _i="DismissableLayer",F2="dismissableLayer.update",Bi="dismissableLayer.pointerDownOutside",Ni="dismissableLayer.focusOutside",rn,qr=j.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),Qr=j.forwardRef((e,t)=>{const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:r,onPointerDownOutside:o,onFocusOutside:i,onInteractOutside:a,onDismiss:l,...c}=e,u=j.useContext(qr),[f,d]=j.useState(null),h=(f==null?void 0:f.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,g]=j.useState({}),w=oe(t,k=>d(k)),C=Array.from(u.layers),[y]=[...u.layersWithOutsidePointerEventsDisabled].slice(-1),m=C.indexOf(y),S=f?C.indexOf(f):-1,L=u.layersWithOutsidePointerEventsDisabled.size>0,T=S>=m,E=$i(k=>{const H=k.target,A=[...u.branches].some(_=>_.contains(H));!T||A||(o==null||o(k),a==null||a(k),k.defaultPrevented||l==null||l())},h),D=Wi(k=>{const H=k.target;[...u.branches].some(_=>_.contains(H))||(i==null||i(k),a==null||a(k),k.defaultPrevented||l==null||l())},h);return Ii(k=>{S===u.layers.size-1&&(r==null||r(k),!k.defaultPrevented&&l&&(k.preventDefault(),l()))},h),j.useEffect(()=>{if(f)return n&&(u.layersWithOutsidePointerEventsDisabled.size===0&&(rn=h.body.style.pointerEvents,h.body.style.pointerEvents="none"),u.layersWithOutsidePointerEventsDisabled.add(f)),u.layers.add(f),on(),()=>{n&&u.layersWithOutsidePointerEventsDisabled.size===1&&(h.body.style.pointerEvents=rn)}},[f,h,n,u]),j.useEffect(()=>()=>{f&&(u.layers.delete(f),u.layersWithOutsidePointerEventsDisabled.delete(f),on())},[f,u]),j.useEffect(()=>{const k=()=>g({});return document.addEventListener(F2,k),()=>document.removeEventListener(F2,k)},[]),s.jsx(K1.div,{...c,ref:w,style:{pointerEvents:L?T?"auto":"none":void 0,...e.style},onFocusCapture:te(e.onFocusCapture,D.onFocusCapture),onBlurCapture:te(e.onBlurCapture,D.onBlurCapture),onPointerDownCapture:te(e.onPointerDownCapture,E.onPointerDownCapture)})});Qr.displayName=_i;var Fi="DismissableLayerBranch",Ui=j.forwardRef((e,t)=>{const n=j.useContext(qr),r=j.useRef(null),o=oe(t,r);return j.useEffect(()=>{const i=r.current;if(i)return n.branches.add(i),()=>{n.branches.delete(i)}},[n.branches]),s.jsx(K1.div,{...e,ref:o})});Ui.displayName=Fi;function $i(e,t=globalThis==null?void 0:globalThis.document){const n=at(e),r=j.useRef(!1),o=j.useRef(()=>{});return j.useEffect(()=>{const i=l=>{if(l.target&&!r.current){let c=function(){Jr(Bi,n,u,{discrete:!0})};const u={originalEvent:l};l.pointerType==="touch"?(t.removeEventListener("click",o.current),o.current=c,t.addEventListener("click",o.current,{once:!0})):c()}else t.removeEventListener("click",o.current);r.current=!1},a=window.setTimeout(()=>{t.addEventListener("pointerdown",i)},0);return()=>{window.clearTimeout(a),t.removeEventListener("pointerdown",i),t.removeEventListener("click",o.current)}},[t,n]),{onPointerDownCapture:()=>r.current=!0}}function Wi(e,t=globalThis==null?void 0:globalThis.document){const n=at(e),r=j.useRef(!1);return j.useEffect(()=>{const o=i=>{i.target&&!r.current&&Jr(Ni,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 on(){const e=new CustomEvent(F2);document.dispatchEvent(e)}function Jr(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?Zi(o,i):o.dispatchEvent(i)}var v2="focusScope.autoFocusOnMount",y2="focusScope.autoFocusOnUnmount",sn={bubbles:!1,cancelable:!0},zi="FocusScope",e6=j.forwardRef((e,t)=>{const{loop:n=!1,trapped:r=!1,onMountAutoFocus:o,onUnmountAutoFocus:i,...a}=e,[l,c]=j.useState(null),u=at(o),f=at(i),d=j.useRef(null),h=oe(t,C=>c(C)),g=j.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;j.useEffect(()=>{if(r){let C=function(L){if(g.paused||!l)return;const T=L.target;l.contains(T)?d.current=T:Q1(d.current,{select:!0})},y=function(L){if(g.paused||!l)return;const T=L.relatedTarget;T!==null&&(l.contains(T)||Q1(d.current,{select:!0}))},m=function(L){if(document.activeElement===document.body)for(const E of L)E.removedNodes.length>0&&Q1(l)};document.addEventListener("focusin",C),document.addEventListener("focusout",y);const S=new MutationObserver(m);return l&&S.observe(l,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",C),document.removeEventListener("focusout",y),S.disconnect()}}},[r,l,g.paused]),j.useEffect(()=>{if(l){ln.add(g);const C=document.activeElement;if(!l.contains(C)){const m=new CustomEvent(v2,sn);l.addEventListener(v2,u),l.dispatchEvent(m),m.defaultPrevented||(Gi(Qi(t6(l)),{select:!0}),document.activeElement===C&&Q1(l))}return()=>{l.removeEventListener(v2,u),setTimeout(()=>{const m=new CustomEvent(y2,sn);l.addEventListener(y2,f),l.dispatchEvent(m),m.defaultPrevented||Q1(C??document.body,{select:!0}),l.removeEventListener(y2,f),ln.remove(g)},0)}}},[l,u,f,g]);const w=j.useCallback(C=>{if(!n&&!r||g.paused)return;const y=C.key==="Tab"&&!C.altKey&&!C.ctrlKey&&!C.metaKey,m=document.activeElement;if(y&&m){const S=C.currentTarget,[L,T]=Ki(S);L&&T?!C.shiftKey&&m===T?(C.preventDefault(),n&&Q1(L,{select:!0})):C.shiftKey&&m===L&&(C.preventDefault(),n&&Q1(T,{select:!0})):m===S&&C.preventDefault()}},[n,r,g.paused]);return s.jsx(K1.div,{tabIndex:-1,...a,ref:h,onKeyDown:w})});e6.displayName=zi;function Gi(e,{select:t=!1}={}){const n=document.activeElement;for(const r of e)if(Q1(r,{select:t}),document.activeElement!==n)return}function Ki(e){const t=t6(e),n=an(t,e),r=an(t.reverse(),e);return[n,r]}function t6(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 an(e,t){for(const n of e)if(!Xi(n,{upTo:t}))return n}function Xi(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 Yi(e){return e instanceof HTMLInputElement&&"select"in e}function Q1(e,{select:t=!1}={}){if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&Yi(e)&&t&&e.select()}}var ln=qi();function qi(){let e=[];return{add(t){const n=e[0];t!==n&&(n==null||n.pause()),e=cn(e,t),e.unshift(t)},remove(t){var n;e=cn(e,t),(n=e[0])==null||n.resume()}}}function cn(e,t){const n=[...e],r=n.indexOf(t);return r!==-1&&n.splice(r,1),n}function Qi(e){return e.filter(t=>t.tagName!=="A")}var Ji="Portal",n6=j.forwardRef((e,t)=>{var l;const{container:n,...r}=e,[o,i]=j.useState(!1);st(()=>i(!0),[]);const a=n||o&&((l=globalThis==null?void 0:globalThis.document)==null?void 0:l.body);return a?Rr.createPortal(s.jsx(K1.div,{...r,ref:t}),a):null});n6.displayName=Ji;function es(e,t){return j.useReducer((n,r)=>t[n][r]??n,e)}var e2=e=>{const{present:t,children:n}=e,r=ts(t),o=typeof n=="function"?n({present:r.isPresent}):j.Children.only(n),i=oe(r.ref,ns(o));return typeof n=="function"||r.isPresent?j.cloneElement(o,{ref:i}):null};e2.displayName="Presence";function ts(e){const[t,n]=j.useState(),r=j.useRef(null),o=j.useRef(e),i=j.useRef("none"),a=e?"mounted":"unmounted",[l,c]=es(a,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return j.useEffect(()=>{const u=Tt(r.current);i.current=l==="mounted"?u:"none"},[l]),st(()=>{const u=r.current,f=o.current;if(f!==e){const h=i.current,g=Tt(u);e?c("MOUNT"):g==="none"||(u==null?void 0:u.display)==="none"?c("UNMOUNT"):c(f&&h!==g?"ANIMATION_OUT":"UNMOUNT"),o.current=e}},[e,c]),st(()=>{if(t){let u;const f=t.ownerDocument.defaultView??window,d=g=>{const C=Tt(r.current).includes(g.animationName);if(g.target===t&&C&&(c("ANIMATION_END"),!o.current)){const y=t.style.animationFillMode;t.style.animationFillMode="forwards",u=f.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=y)})}},h=g=>{g.target===t&&(i.current=Tt(r.current))};return t.addEventListener("animationstart",h),t.addEventListener("animationcancel",d),t.addEventListener("animationend",d),()=>{f.clearTimeout(u),t.removeEventListener("animationstart",h),t.removeEventListener("animationcancel",d),t.removeEventListener("animationend",d)}}else c("ANIMATION_END")},[t,c]),{isPresent:["mounted","unmountSuspended"].includes(l),ref:j.useCallback(u=>{r.current=u?getComputedStyle(u):null,n(u)},[])}}function Tt(e){return(e==null?void 0:e.animationName)||"none"}function ns(e){var r,o;let t=(r=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(o=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:o.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var x2=0;function rs(){j.useEffect(()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??un()),document.body.insertAdjacentElement("beforeend",e[1]??un()),x2++,()=>{x2===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(t=>t.remove()),x2--}},[])}function un(){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 os=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},Ve=new WeakMap,Pt=new WeakMap,Ht={},w2=0,r6=function(e){return e&&(e.host||r6(e.parentNode))},is=function(e,t){return t.map(function(n){if(e.contains(n))return n;var r=r6(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})},ss=function(e,t,n,r){var o=is(t,Array.isArray(e)?e:[e]);Ht[n]||(Ht[n]=new WeakMap);var i=Ht[n],a=[],l=new Set,c=new Set(o),u=function(d){!d||l.has(d)||(l.add(d),u(d.parentNode))};o.forEach(u);var f=function(d){!d||c.has(d)||Array.prototype.forEach.call(d.children,function(h){if(l.has(h))f(h);else try{var g=h.getAttribute(r),w=g!==null&&g!=="false",C=(Ve.get(h)||0)+1,y=(i.get(h)||0)+1;Ve.set(h,C),i.set(h,y),a.push(h),C===1&&w&&Pt.set(h,!0),y===1&&h.setAttribute(n,"true"),w||h.setAttribute(r,"true")}catch(m){console.error("aria-hidden: cannot operate on ",h,m)}})};return f(t),l.clear(),w2++,function(){a.forEach(function(d){var h=Ve.get(d)-1,g=i.get(d)-1;Ve.set(d,h),i.set(d,g),h||(Pt.has(d)||d.removeAttribute(r),Pt.delete(d)),g||d.removeAttribute(n)}),w2--,w2||(Ve=new WeakMap,Ve=new WeakMap,Pt=new WeakMap,Ht={})}},as=function(e,t,n){n===void 0&&(n="data-aria-hidden");var r=Array.from(Array.isArray(e)?e:[e]),o=os(e);return o?(r.push.apply(r,Array.from(o.querySelectorAll("[aria-live]"))),ss(r,o,n,"aria-hidden")):function(){return null}},t2="Dialog",[o6,Nc]=Li(t2),[ls,A1]=o6(t2),i6=e=>{const{__scopeDialog:t,children:n,open:r,defaultOpen:o,onOpenChange:i,modal:a=!0}=e,l=j.useRef(null),c=j.useRef(null),[u,f]=Ti({prop:r,defaultProp:o??!1,onChange:i,caller:t2});return s.jsx(ls,{scope:t,triggerRef:l,contentRef:c,contentId:m2(),titleId:m2(),descriptionId:m2(),open:u,onOpenChange:f,onOpenToggle:j.useCallback(()=>f(d=>!d),[f]),modal:a,children:n})};i6.displayName=t2;var s6="DialogTrigger",a6=j.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=A1(s6,n),i=oe(t,o.triggerRef);return s.jsx(K1.button,{type:"button","aria-haspopup":"dialog","aria-expanded":o.open,"aria-controls":o.contentId,"data-state":u3(o.open),...r,ref:i,onClick:te(e.onClick,o.onOpenToggle)})});a6.displayName=s6;var l3="DialogPortal",[cs,l6]=o6(l3,{forceMount:void 0}),c6=e=>{const{__scopeDialog:t,forceMount:n,children:r,container:o}=e,i=A1(l3,t);return s.jsx(cs,{scope:t,forceMount:n,children:j.Children.map(r,a=>s.jsx(e2,{present:n||i.open,children:s.jsx(n6,{asChild:!0,container:o,children:a})}))})};c6.displayName=l3;var Wt="DialogOverlay",u6=j.forwardRef((e,t)=>{const n=l6(Wt,e.__scopeDialog),{forceMount:r=n.forceMount,...o}=e,i=A1(Wt,e.__scopeDialog);return i.modal?s.jsx(e2,{present:r||i.open,children:s.jsx(fs,{...o,ref:t})}):null});u6.displayName=Wt;var us=Yr("DialogOverlay.RemoveScroll"),fs=j.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=A1(Wt,n);return s.jsx(Jt,{as:us,allowPinchZoom:!0,shards:[o.contentRef],children:s.jsx(K1.div,{"data-state":u3(o.open),...r,ref:t,style:{pointerEvents:"auto",...r.style}})})}),pe="DialogContent",f6=j.forwardRef((e,t)=>{const n=l6(pe,e.__scopeDialog),{forceMount:r=n.forceMount,...o}=e,i=A1(pe,e.__scopeDialog);return s.jsx(e2,{present:r||i.open,children:i.modal?s.jsx(ds,{...o,ref:t}):s.jsx(hs,{...o,ref:t})})});f6.displayName=pe;var ds=j.forwardRef((e,t)=>{const n=A1(pe,e.__scopeDialog),r=j.useRef(null),o=oe(t,n.contentRef,r);return j.useEffect(()=>{const i=r.current;if(i)return as(i)},[]),s.jsx(d6,{...e,ref:o,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:te(e.onCloseAutoFocus,i=>{var a;i.preventDefault(),(a=n.triggerRef.current)==null||a.focus()}),onPointerDownOutside:te(e.onPointerDownOutside,i=>{const a=i.detail.originalEvent,l=a.button===0&&a.ctrlKey===!0;(a.button===2||l)&&i.preventDefault()}),onFocusOutside:te(e.onFocusOutside,i=>i.preventDefault())})}),hs=j.forwardRef((e,t)=>{const n=A1(pe,e.__scopeDialog),r=j.useRef(!1),o=j.useRef(!1);return s.jsx(d6,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:i=>{var a,l;(a=e.onCloseAutoFocus)==null||a.call(e,i),i.defaultPrevented||(r.current||(l=n.triggerRef.current)==null||l.focus(),i.preventDefault()),r.current=!1,o.current=!1},onInteractOutside:i=>{var c,u;(c=e.onInteractOutside)==null||c.call(e,i),i.defaultPrevented||(r.current=!0,i.detail.originalEvent.type==="pointerdown"&&(o.current=!0));const a=i.target;((u=n.triggerRef.current)==null?void 0:u.contains(a))&&i.preventDefault(),i.detail.originalEvent.type==="focusin"&&o.current&&i.preventDefault()}})}),d6=j.forwardRef((e,t)=>{const{__scopeDialog:n,trapFocus:r,onOpenAutoFocus:o,onCloseAutoFocus:i,...a}=e,l=A1(pe,n),c=j.useRef(null),u=oe(t,c);return rs(),s.jsxs(s.Fragment,{children:[s.jsx(e6,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:o,onUnmountAutoFocus:i,children:s.jsx(Qr,{role:"dialog",id:l.contentId,"aria-describedby":l.descriptionId,"aria-labelledby":l.titleId,"data-state":u3(l.open),...a,ref:u,onDismiss:()=>l.onOpenChange(!1)})}),s.jsxs(s.Fragment,{children:[s.jsx(Cs,{titleId:l.titleId}),s.jsx(gs,{contentRef:c,descriptionId:l.descriptionId})]})]})}),c3="DialogTitle",h6=j.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=A1(c3,n);return s.jsx(K1.h2,{id:o.titleId,...r,ref:t})});h6.displayName=c3;var C6="DialogDescription",p6=j.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=A1(C6,n);return s.jsx(K1.p,{id:o.descriptionId,...r,ref:t})});p6.displayName=C6;var g6="DialogClose",m6=j.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=A1(g6,n);return s.jsx(K1.button,{type:"button",...r,ref:t,onClick:te(e.onClick,()=>o.onOpenChange(!1))})});m6.displayName=g6;function u3(e){return e?"open":"closed"}var v6="DialogTitleWarning",[Fc,y6]=bi(v6,{contentName:pe,titleName:c3,docsSlug:"dialog"}),Cs=({titleId:e})=>{const t=y6(v6),n=`\`${t.contentName}\` requires a \`${t.titleName}\` for the component to be accessible for screen reader users.
|
|
42
42
|
|
|
43
43
|
If you want to hide the \`${t.titleName}\`, you can wrap it with our VisuallyHidden component.
|
|
44
44
|
|
|
@@ -62,4 +62,4 @@ For more information, see https://radix-ui.com/primitives/docs/components/${t.do
|
|
|
62
62
|
top: ${c}px !important;
|
|
63
63
|
left: ${u}px !important;
|
|
64
64
|
}
|
|
65
|
-
`),()=>{document.head.removeChild(f)}},[t]),s.jsx(nc,{isPresent:t,childRef:r,sizeRef:o,children:j.cloneElement(e,{ref:r})})}const oc=({children:e,initial:t,isPresent:n,onExitComplete:r,custom:o,presenceAffectsLayout:i,mode:a})=>{const l=ge(ic),c=x.useId(),u=x.useMemo(()=>({id:c,initial:t,isPresent:n,custom:o,onExitComplete:f=>{l.set(f,!0);for(const d of l.values())if(!d)return;r&&r()},register:f=>(l.set(f,!1),()=>l.delete(f))}),i?[Math.random()]:[n]);return x.useMemo(()=>{l.forEach((f,d)=>l.set(d,!1))},[n]),j.useEffect(()=>{!n&&!l.size&&r&&r()},[n]),a==="popLayout"&&(e=s.jsx(rc,{isPresent:n,children:e})),s.jsx(l2.Provider,{value:u,children:e})};function ic(){return new Map}const Zt=e=>e.key||"";function Tr(e){const t=[];return x.Children.forEach(e,n=>{x.isValidElement(n)&&t.push(n)}),t}const sc=({children:e,exitBeforeEnter:t,custom:n,initial:r=!0,onExitComplete:o,presenceAffectsLayout:i=!0,mode:a="sync"})=>{R1(!t,"Replace exitBeforeEnter with mode='wait'");const l=x.useMemo(()=>Tr(e),[e]),c=l.map(Zt),u=x.useRef(!0),f=x.useRef(l),d=ge(()=>new Map),[h,g]=x.useState(l),[w,C]=x.useState(l);D3(()=>{u.current=!1,f.current=l;for(let S=0;S<w.length;S++){const L=Zt(w[S]);c.includes(L)?d.delete(L):d.get(L)!==!0&&d.set(L,!1)}},[w,c.length,c.join("-")]);const y=[];if(l!==h){let S=[...l];for(let L=0;L<w.length;L++){const T=w[L],E=Zt(T);c.includes(E)||(S.splice(L,0,T),y.push(T))}a==="wait"&&y.length&&(S=y),C(Tr(S)),g(l);return}process.env.NODE_ENV!=="production"&&a==="wait"&&w.length>1&&console.warn(`You're attempting to animate multiple children within AnimatePresence, but its mode is set to "wait". This will lead to odd visual behaviour.`);const{forceRender:m}=x.useContext(k3);return s.jsx(s.Fragment,{children:w.map(S=>{const L=Zt(S),T=l===w||c.includes(L),E=()=>{if(d.has(L))d.set(L,!0);else return;let D=!0;d.forEach(k=>{k||(D=!1)}),D&&(m==null||m(),C(f.current),o&&o())};return s.jsx(oc,{isPresent:T,initial:!u.current||r?void 0:!1,custom:T?void 0:n,presenceAffectsLayout:i,mode:a,onExitComplete:T?void 0:E,children:S},L)})})};function E0(e){const t=ge(()=>Oe(e)),{isStatic:n}=x.useContext(c2);if(n){const[,r]=x.useState(e);x.useEffect(()=>t.on("change",r),[])}return t}function k0(e,t){const n=E0(t()),r=()=>n.set(t());return r(),D3(()=>{const o=()=>n1.preRender(r,!1,!0),i=e.map(a=>a.on("change",o));return()=>{i.forEach(a=>a()),F1(r)}}),n}const ac=e=>e&&typeof e=="object"&&e.mix,lc=e=>ac(e)?e.mix:void 0;function cc(...e){const t=!Array.isArray(e[0]),n=t?0:-1,r=e[0+n],o=e[1+n],i=e[2+n],a=e[3+n],l=H5(o,i,{mixer:lc(i[0]),...a});return t?l(r):l}function uc(e){rt.current=[],e();const t=k0(rt.current,e);return rt.current=void 0,t}function fc(e,t,n,r){if(typeof e=="function")return uc(e);const o=typeof t=="function"?t:cc(t,n,r);return Array.isArray(e)?Pr(e,o):Pr([e],([i])=>o(i))}function Pr(e,t){const n=ge(()=>[]);return k0(e,()=>{n.length=0;const r=e.length;for(let o=0;o<r;o++)n[o]=e[o].get();return t(n)})}function R0(e,t,n){var r;if(typeof e=="string"){let o=document;t&&(R1(!!t.current,"Scope provided, but no element detected."),o=t.current),n?((r=n[e])!==null&&r!==void 0||(n[e]=o.querySelectorAll(e)),e=n[e]):e=o.querySelectorAll(e)}else e instanceof Element&&(e=[e]);return Array.from(e||[])}function dc(e){return x.useEffect(()=>()=>e(),[])}function hc(e){return typeof e=="object"&&!Array.isArray(e)}function Cc(e){const t={presenceContext:null,props:{},visualState:{renderState:{transform:{},transformOrigin:{},style:{},vars:{},attrs:{}},latestValues:{}}},n=l0(e)?new H0(t):new P0(t);n.mount(e),ft.set(e,n)}function pc(e,t=100){const n=b3({keyframes:[0,t],...e}),r=Math.min(R5(n),J2);return{type:"keyframes",ease:o=>n.next(r*o).value/t,duration:_1(r)}}function Hr(e,t,n,r){var o;return typeof t=="number"?t:t.startsWith("-")||t.startsWith("+")?Math.max(0,e+parseFloat(t)):t==="<"?n:(o=r.get(t))!==null&&o!==void 0?o:e}const gc=(e,t,n)=>{const r=t-e;return((n-e)%r+r)%r+e};function mc(e,t){return L5(e)?e[gc(0,e.length,t)]:e}function vc(e,t,n){for(let r=0;r<e.length;r++){const o=e[r];o.at>t&&o.at<n&&(mt(e,o),r--)}}function yc(e,t,n,r,o,i){vc(e,o,i);for(let a=0;a<t.length;a++)e.push({value:t[a],at:c1(o,i,r[a]),easing:mc(n,a)})}function xc(e,t){return e.at===t.at?e.value===null?1:t.value===null?-1:0:e.at-t.at}const wc="easeInOut";function bc(e,{defaultTransition:t={},...n}={},r){const o=t.duration||.3,i=new Map,a=new Map,l={},c=new Map;let u=0,f=0,d=0;for(let h=0;h<e.length;h++){const g=e[h];if(typeof g=="string"){c.set(g,f);continue}else if(!Array.isArray(g)){c.set(g.name,Hr(f,g.at,u,c));continue}let[w,C,y={}]=g;y.at!==void 0&&(f=Hr(f,y.at,u,c));let m=0;const S=(L,T,E,D=0,k=0)=>{const H=Lc(L),{delay:A=0,times:_=k5(H),type:F="keyframes",...I}=T;let{ease:Z=t.ease||"easeOut",duration:$}=T;const J=typeof A=="function"?A(D,k):A,Y=H.length;if(Y<=2&&F==="spring"){let X=100;if(Y===2&&jc(H)){const o1=H[1]-H[0];X=Math.abs(o1)}const l1={...I};$!==void 0&&(l1.duration=k1($));const u1=pc(l1,X);Z=u1.ease,$=u1.duration}$??($=o);const N=f+J,K=N+$;_.length===1&&_[0]===0&&(_[1]=1);const q=_.length-H.length;q>0&&E5(_,q),H.length===1&&H.unshift(null),yc(E,H,Z,_,N,K),m=Math.max(J+$,m),d=Math.max(K,d)};if(m1(w)){const L=Er(w,a);S(C,y,kr("default",L))}else{const L=R0(w,r,l),T=L.length;for(let E=0;E<T;E++){C=C,y=y;const D=L[E],k=Er(D,a);for(const H in C)S(C[H],Mc(y,H),kr(H,k),E,T)}}u=f,f+=m}return a.forEach((h,g)=>{for(const w in h){const C=h[w];C.sort(xc);const y=[],m=[],S=[];for(let T=0;T<C.length;T++){const{at:E,value:D,easing:k}=C[T];y.push(D),m.push(Ae(0,d,E)),S.push(k||"easeOut")}m[0]!==0&&(m.unshift(0),y.unshift(y[0]),S.unshift(wc)),m[m.length-1]!==1&&(m.push(1),y.push(null)),i.has(g)||i.set(g,{keyframes:{},transition:{}});const L=i.get(g);L.keyframes[w]=y,L.transition[w]={...t,duration:d,ease:S,times:m,...n}}}),i}function Er(e,t){return!t.has(e)&&t.set(e,{}),t.get(e)}function kr(e,t){return t[e]||(t[e]=[]),t[e]}function Lc(e){return Array.isArray(e)?e:[e]}function Mc(e,t){return e[t]?{...e,...e[t]}:{...e}}const Vc=e=>typeof e=="number",jc=e=>e.every(Vc);function A0(e,t,n,r){const o=R0(e,r),i=o.length;R1(!!i,"No valid element provided.");const a=[];for(let l=0;l<i;l++){const c=o[l];ft.has(c)||Cc(c);const u=ft.get(c),f={...n};typeof f.delay=="function"&&(f.delay=f.delay(l,i)),a.push(...E3(u,{...t,transition:f},{}))}return new T3(a)}const Sc=e=>Array.isArray(e)&&Array.isArray(e[0]);function Tc(e,t,n){const r=[];return bc(e,t,n).forEach(({keyframes:i,transition:a},l)=>{let c;m1(l)?c=A3(l,i.default,a.default):c=A0(l,i,a),r.push(c)}),new T3(r)}const Pc=e=>{function t(n,r,o){let i;return Sc(n)?i=Tc(n,r,e):hc(r)?i=A0(n,r,o,e):i=A3(n,r,o),e&&e.animations.push(i),i}return t};function Hc(){const e=ge(()=>({current:null,animations:[]})),t=ge(()=>Pc(e));return dc(()=>{e.animations.forEach(n=>n.stop())}),[e,t]}function Ec(e,t){if(e==="first")return 0;{const n=t-1;return e==="last"?n:n/2}}function It(e=.1,{startDelay:t=0,from:n=0,ease:r}={}){return(o,i)=>{const a=typeof n=="number"?n:Ec(n,i),l=Math.abs(a-o);let c=e*l;if(r){const u=i*e;c=q2(r)(c/u)*u}return t+c}}const kc=({isMobile:e,isLogoHovered:t,maskUrl:n})=>{const[r]=x.useState("https://garden-bucket-cdn.s3.eu-central-1.amazonaws.com/flowers_bg.mp4"),[o,i]=x.useState("initial"),a=x.useRef(null),l=x.useRef(null),c=E0(45),u=fc(c,f=>`${f}% center`);return x.useEffect(()=>{if(t)i("visible");else{i("exit");const f=setTimeout(()=>{i("initial")},800);return()=>clearTimeout(f)}},[t]),s.jsxs(s.Fragment,{children:[s.jsx("video",{ref:a,src:r,autoPlay:!0,loop:!0,muted:!0,controls:!1,preload:"metadata",playsInline:!0,className:"gf-pointer-events-none gf-absolute gf-left-0 gf-top-0 gf-z-0 gf-h-full gf-w-screen gf-object-cover gf-opacity-0"},"video-flowers"),s.jsx(sc,{mode:"wait",children:s.jsx(U3.div,{animate:o,variants:{initial:{maskPosition:"45%",opacity:0},visible:{maskPosition:"10%",opacity:1},exit:{maskPosition:"-60%",opacity:0,transition:{duration:1.2,ease:[0,.77,.3,1],opacity:{delay:.4}}}},transition:{duration:1,ease:[.22,.68,.88,.96],delay:.15,opacity:{times:[0,1,1,1]}},style:{maskImage:`linear-gradient(black, black), url('${n}')`,maskComposite:"exclude",maskSize:e?"1200% 200%":"820% 600%",maskPosition:u},className:"gf-pointer-events-none gf-absolute gf-left-0 gf-top-0 gf-z-0 gf-h-full gf-w-full gf-overflow-hidden gf-opacity-0",children:s.jsx("video",{ref:l,src:r,autoPlay:!0,loop:!0,muted:!0,controls:!1,preload:"metadata",playsInline:!0,className:"gf-pointer-events-none gf-h-full gf-w-screen gf-object-cover",onCanPlayThrough:()=>{l.current&&l.current.play().catch(console.error)},onLoadStart:()=>{l.current&&l.current.play().catch(console.error)}},"video-flowers-animated")},"hovered")})]})},Rc=({children:e,triggerAnimation:t})=>{const n={animation:{scaleY:[0,1],opacity:[0,1],transition:{duration:.5,ease:Fe(.84,0,.16,1),opacity:{duration:.2,ease:"easeInOut"},once:!0}},idle:{scaleY:1,opacity:1}};return s.jsx(U3.div,{animate:t?"animation":"idle",variants:n,style:{transformOrigin:"bottom"},children:e})},Ac=({children:e})=>s.jsx(U3.div,{className:"gf-relative gf-inline-block gf-overflow-hidden gf-rounded-xl gf-w-[300px] before:gf-z-50 before:gf-absolute before:gf-bg-gradient-to-r before:gf-from-transparent before:gf-via-white/50 before:gf-via-50% before:gf-to-transparent before:gf-top-0 before:gf-left-0 before:gf-w-[168px] before:gf-h-full before:gf-animate-shine before:gf-opacity-0",children:e}),Ee=x.forwardRef(({value:e,isHovered:t,className:n,delay:r},o)=>{const i=e.split(""),[a,l]=Hc(),c=()=>{l([[".gf-letter",{y:"-100%"},{duration:.5,delay:r?It(.014,{startDelay:r}):It(.014),ease:[.76,0,.24,1]}]])},u=()=>{l([[".gf-letter",{y:"0%"},{duration:.5,delay:r?It(.014,{startDelay:r}):It(.014),ease:[.76,0,.24,1]}]])};return x.useImperativeHandle(o,()=>({startAnimation:c,stopAnimation:u})),x.useEffect(()=>{t?c():u()},[t]),x.useEffect(()=>{const f=()=>{t||c()},d=()=>{t||u()},h=a.current;if(h)return h.addEventListener("mouseenter",f),h.addEventListener("mouseleave",d),()=>{h.removeEventListener("mouseenter",f),h.removeEventListener("mouseleave",d)}},[a,t]),s.jsx("div",{ref:a,children:s.jsx("span",{className:V1("gf-flex gf-h-5 gf-items-center gf-justify-start gf-overflow-hidden gf-pr-0.5",n),children:i.map((f,d)=>s.jsx("span",{"data-letter":f,className:"gf-letter gf-relative gf-h-5 gf-whitespace-pre gf-leading-5 after:gf-absolute after:gf-left-0 after:gf-top-full after:gf-h-5 after:gf-leading-5 after:gf-content-[attr(data-letter)]",children:f},`${f}-${d}`))})})});Ee.displayName="RollingText";const Qe=({title:e,links:t,hoveredIndex:n,onHover:r,className:o="gf-flex gf-w-full gf-flex-col gf-gap-3 md:gf-w-fit",listClassName:i="gf-flex gf-flex-col gf-gap-1",isRoutes:a=!1})=>s.jsxs("div",{className:o,children:[s.jsx(M1,{size:"h4",weight:"medium",className:"gf-flex gf-items-center gf-gap-2 gf-transition-all gf-duration-500 gf-ease-in-out gf-text-inherit",children:s.jsx("span",{children:e})}),s.jsx("ul",{className:i,children:Object.values(t).map((l,c)=>l.link&&s.jsx("li",{className:a?"gf-w-fit":"",onMouseEnter:()=>{r==null||r(c)},onMouseLeave:()=>{r==null||r(null)},children:s.jsxs(M1,{as:"a",href:l.link,target:"_blank",size:"h4",weight:"regular",className:`gf-cursor-pointer gf-transition-all gf-duration-500 gf-ease-in-out gf-text-inherit ${a?"gf-flex gf-w-fit gf-gap-0.5 gf-items-end gf-transition-colors gf-duration-500 gf-ease-in-out":""}`,children:[l.inputAsset&&s.jsx(Ee,{value:l.inputAsset||"",isHovered:n===c}),a&&l.inputChain&&s.jsx(Ee,{delay:.1,className:"gf-text-xs gf-italic gf-translate-y-[0.6px]",value:l.inputChain,isHovered:n===c}),s.jsx(Ee,{delay:.15,value:l.title,isHovered:n===c}),a&&l.chain&&s.jsx(Ee,{delay:.3,className:"gf-text-xs gf-italic gf-translate-y-[0.6px] -gf-translate-x-[2px]",value:l.chain,isHovered:n===c})]})},c))})]}),Oc="data:image/svg+xml,%3csvg%20width='3956'%20height='906'%20viewBox='0%200%203956%20906'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3crect%20width='3956'%20height='906'%20fill='url(%23paint0_linear_579_2)'/%3e%3cdefs%3e%3clinearGradient%20id='paint0_linear_579_2'%20x1='1465.5'%20y1='731.406'%20x2='2604.91'%20y2='227.235'%20gradientUnits='userSpaceOnUse'%3e%3cstop%20stop-opacity='0'/%3e%3cstop%20offset='0.115385'/%3e%3cstop%20offset='0.88'/%3e%3cstop%20offset='1'%20stop-opacity='0'/%3e%3c/linearGradient%3e%3c/defs%3e%3c/svg%3e",Dc=({className:e,network:t="mainnet",maskUrl:n=Oc,...r})=>{const[o,i]=x.useState(!1),[a,l]=x.useState(null),c=Fr(),u=t&&t==="testnet"?"https://testnet.garden.finance":"https://app.garden.finance",f="https://garden.finance",d={Products:{swap:{title:"Swap",link:t&&t==="testnet"?`${u}/?input-chain=bitcoin_testnet&input-asset=BTC`:`${u}/?input-chain=bitcoin&input-asset=BTC`,isExternal:!0,icon:s.jsx(B6,{})},stake:{title:"Stake",link:t&&t==="testnet"?void 0:`${u}/stake`,isExternal:!0,icon:s.jsx(K6,{})},explorer:{title:"Explorer",link:t&&t==="testnet"?"https://testnet-explorer.garden.finance/":"https://explorer.garden.finance/",isExternal:!0,icon:s.jsx(Y6,{})}},Resources:{blog:{title:"Blog",link:`${f}/blog`,isExternal:!0,icon:s.jsx(F6,{})},brandkit:{title:"Media kit",link:"https://drive.google.com/drive/folders/1ZRAxs6jwhO6vLkadb9XOG7XqOQ4XLr0t?usp=sharing",isExternal:!0,icon:s.jsx(U6,{})},analytics:{title:"Analytics",link:"https://dune.com/garden_finance/gardenfinance",isExternal:!0,icon:null},Audits:{title:"Audits",link:"https://github.com/gardenfi/audits",isExternal:!0,icon:null}},Developers:{docs:{title:"Docs",link:"https://docs.garden.finance/",isExternal:!0,icon:s.jsx(z6,{})},api:{title:"API",link:"https://docs.garden.finance/developers/api/overview",isExternal:!0,icon:s.jsx(N6,{})},sdk:{title:"SDK",link:"https://docs.garden.finance/developers/sdk/overview",isExternal:!0,icon:s.jsx(G6,{})}}},h={btcToSol:{title:"BTC to SOL",link:f+"/routes/bridge-btc-to-sol",chain:"Solana",isExternal:!0},btcToEth:{title:"BTC to ETH",link:f+"/routes/bridge-btc-to-eth",chain:"Ethereum",isExternal:!0},btcToUsdc:{title:"BTC to USDC",link:f+"/routes/bridge-btc-to-usdc-arbitrum",chain:"Arbitrum",isExternal:!0},btctoUsdcEth:{title:"BTC to USDC",link:f+"/routes/bridge-btc-to-usdc-ethereum",chain:"Ethereum",isExternal:!0},btcToWbtc:{title:"BTC to WBTC",link:f+"/routes/bridge-btc-to-wbtc-ethereum",chain:"Ethereum",isExternal:!0},btcTocbBtc:{title:"BTC to cbBtc",link:f+"/routes/bridge-btc-to-cbbtc-base",chain:"Base",isExternal:!0},btcToSui:{title:"BTC to SUI",link:f+"/routes/bridge-btc-to-sui",chain:"Sui",isExternal:!0},btcToWbtcUni:{title:"BTC to WBTC",link:f+"/routes/bridge-btc-to-wbtc-unichain",chain:"Unichain",isExternal:!0},btcToBnb:{title:"BTC to BNB",link:f+"/routes/bridge-btc-to-bnb",chain:"BNB Chain",isExternal:!0},cbBtcBaseTocbBtcSolana:{title:" to cbBtc",link:f+"/routes/bridge-cbbtc-base-to-cbbtc-solana",inputAsset:"cbBtc",inputChain:"Base",chain:"Solana",isExternal:!0},usdcBnbToBtc:{title:" to BTC",link:f+"/routes/bridge-usdc-bnb-to-btc",inputAsset:"USDC",inputChain:"BNB Chain",chain:"Bitcoin",isExternal:!0}},g={discord:"https://discord.gg/7feudTFMXB",x:"https://x.com/garden_finance"},{Products:w,Resources:C,Developers:y}=d;return s.jsxs("footer",{className:V1("gf-z-10 gf-relative gf-mx-auto gf-flex gf-w-full gf-flex-col gf-items-center gf-justify-center gf-bg-white gf-px-6 gf-pb-10 gf-pt-20 md:gf-px-10",e,o?"gf-text-white":"gf-text-dark-grey"),...r,children:[s.jsxs("div",{className:"gf-z-30 gf-w-full gf-max-w-screen-2xl",children:[s.jsxs("div",{className:"gf-mx-auto gf-flex gf-w-full gf-flex-col gf-items-start gf-justify-between gf-gap-8",children:[s.jsxs("div",{className:"gf-flex gf-w-full gf-items-center gf-justify-between gf-gap-6",children:[s.jsx(q6,{onMouseEnter:()=>i(!0),onMouseLeave:()=>i(!1),className:"gf-h-8 gf-w-8 gf-cursor-pointer gf-duration-500 gf-ease-in-out",onClick:m=>m.preventDefault()}),s.jsxs("div",{className:"gf-flex gf-items-center gf-gap-4",children:[s.jsx(X6,{onClick:()=>{c&&window.open(g.x,"_blank")},className:"gf-cursor-pointer gf-duration-500 gf-ease-in-out"}),s.jsx(W6,{onClick:()=>{c&&window.open(g.discord,"_blank")},className:"gf-cursor-pointer gf-duration-500 gf-ease-in-out"})]})]}),s.jsxs("div",{className:"gf-flex gf-w-full gf-max-w-screen-2xl gf-flex-col-reverse gf-items-start gf-justify-between gf-gap-6 md:gf-flex-row",children:[s.jsxs("div",{className:"gf-flex gf-w-full gf-flex-col sm:gf-flex-row gf-gap-6 gf-items-start gf-justify-between sm:gf-gap-3 md:gf-w-fit",children:[s.jsx("div",{className:"gf-w-full md:gf-hidden",children:s.jsx(Qe,{title:"Resources",links:C,className:"gf-flex gf-w-full gf-flex-col gf-gap-3",listClassName:"gf-flex gf-flex-col gf-gap-2"})}),s.jsx("div",{className:"gf-flex gf-w-full gf-max-w-[400px] gf-flex-col gf-gap-3 md:gf-w-fit",children:s.jsx(Qe,{title:"Routes",links:h,hoveredIndex:a,onHover:l,className:"gf-flex gf-w-full gf-max-w-[400px] gf-flex-col gf-gap-3 md:gf-w-fit",listClassName:"gf-grid gf-w-full gf-grid-cols-1 gf-gap-1 gf-gap-x-8 md:gf-grid-cols-2 md:gf-grid-rows-2",isRoutes:!0})})]}),s.jsxs("div",{className:"gf-flex gf-w-full gf-items-start gf-justify-between gf-gap-3 md:gf-w-fit md:gf-gap-16",children:[s.jsx(Qe,{title:"Products",links:w,className:"gf-flex gf-w-full gf-flex-col gf-gap-3 md:gf-w-fit",listClassName:"gf-flex gf-w-fit gf-flex-col gf-gap-1 gf-gap-x-6"}),s.jsx(Qe,{title:"Developers",links:y,className:"gf-flex gf-w-full gf-flex-col gf-gap-3 md:gf-w-fit",listClassName:"gf-flex gf-flex-col gf-gap-1"}),s.jsx("div",{className:"gf-hidden md:gf-flex",children:s.jsx(Qe,{title:"Resources",links:C,className:"gf-flex gf-w-full gf-flex-col gf-gap-3",listClassName:"gf-flex gf-flex-col gf-gap-1"})})]})]})]}),s.jsxs("div",{className:"gf-relative gf-mt-6 gf-flex gf-w-full gf-max-w-screen-2xl gf-items-center gf-justify-center",children:[s.jsx("div",{className:`gf-absolute gf-left-0 gf-top-0 gf-h-[1px] gf-w-full gf-transition-all gf-duration-500 gf-ease-in-out ${o?"gf-bg-white":"gf-bg-dark-grey"}`}),s.jsxs("div",{className:"gf-z-10 gf-my-6 gf-flex gf-w-full gf-items-center gf-justify-between gf-gap-4",children:[s.jsx("div",{className:"gf-flex gf-w-fit gf-items-center gf-justify-start gf-gap-6",children:s.jsxs(M1,{size:"h5",className:"gf-flex gf-items-center gf-gap-1 gf-transition-all gf-duration-500 gf-ease-in-out gf-text-inherit",weight:"regular",children:[s.jsx($6,{}),s.jsx("span",{children:"Garden"}),s.jsx("span",{children:"2025"})]})}),s.jsxs("div",{className:"gf-flex gf-w-fit gf-items-center gf-justify-end gf-gap-6",children:[s.jsx(M1,{size:"h5",as:"a",className:"gf-cursor-pointer gf-underline-offset-2 gf-transition-all gf-duration-500 gf-ease-in-out gf-hover:underline gf-text-inherit",weight:"regular",href:"/privacy.pdf",target:"_blank",children:"Privacy Policy"}),s.jsx(M1,{as:"a",size:"h5",className:"gf-cursor-pointer gf-underline-offset-2 gf-transition-all gf-duration-500 gf-ease-in-out gf-hover:underline gf-text-inherit",weight:"regular",href:"/terms.pdf",target:"_blank",children:"Terms of Service"})]})]})]})]}),s.jsx(kc,{isMobile:!1,isLogoHovered:o,maskUrl:n})]})};var O0={exports:{}};(()=>{var e={181:(o,i,a)=>{var l=/^\s+|\s+$/g,c=/^[-+]0x[0-9a-f]+$/i,u=/^0b[01]+$/i,f=/^0o[0-7]+$/i,d=parseInt,h=typeof a.g=="object"&&a.g&&a.g.Object===Object&&a.g,g=typeof self=="object"&&self&&self.Object===Object&&self,w=h||g||Function("return this")(),C=Object.prototype.toString,y=Math.max,m=Math.min,S=function(){return w.Date.now()};function L(E){var D=typeof E;return!!E&&(D=="object"||D=="function")}function T(E){if(typeof E=="number")return E;if(function(H){return typeof H=="symbol"||function(A){return!!A&&typeof A=="object"}(H)&&C.call(H)=="[object Symbol]"}(E))return NaN;if(L(E)){var D=typeof E.valueOf=="function"?E.valueOf():E;E=L(D)?D+"":D}if(typeof E!="string")return E===0?E:+E;E=E.replace(l,"");var k=u.test(E);return k||f.test(E)?d(E.slice(2),k?2:8):c.test(E)?NaN:+E}o.exports=function(E,D,k){var H,A,_,F,I,Z,$=0,J=!1,Y=!1,N=!0;if(typeof E!="function")throw new TypeError("Expected a function");function K(o1){var i1=H,v1=A;return H=A=void 0,$=o1,F=E.apply(v1,i1)}function q(o1){var i1=o1-Z;return Z===void 0||i1>=D||i1<0||Y&&o1-$>=_}function X(){var o1=S();if(q(o1))return l1(o1);I=setTimeout(X,function(i1){var v1=D-(i1-Z);return Y?m(v1,_-(i1-$)):v1}(o1))}function l1(o1){return I=void 0,N&&H?K(o1):(H=A=void 0,F)}function u1(){var o1=S(),i1=q(o1);if(H=arguments,A=this,Z=o1,i1){if(I===void 0)return function(v1){return $=v1,I=setTimeout(X,D),J?K(v1):F}(Z);if(Y)return I=setTimeout(X,D),K(Z)}return I===void 0&&(I=setTimeout(X,D)),F}return D=T(D)||0,L(k)&&(J=!!k.leading,_=(Y="maxWait"in k)?y(T(k.maxWait)||0,D):_,N="trailing"in k?!!k.trailing:N),u1.cancel=function(){I!==void 0&&clearTimeout(I),$=0,H=Z=A=I=void 0},u1.flush=function(){return I===void 0?F:l1(S())},u1}},858:(o,i,a)=>{var l="Expected a function",c=NaN,u="[object Symbol]",f=/^\s+|\s+$/g,d=/^[-+]0x[0-9a-f]+$/i,h=/^0b[01]+$/i,g=/^0o[0-7]+$/i,w=parseInt,C=typeof a.g=="object"&&a.g&&a.g.Object===Object&&a.g,y=typeof self=="object"&&self&&self.Object===Object&&self,m=C||y||Function("return this")(),S=Object.prototype.toString,L=Math.max,T=Math.min,E=function(){return m.Date.now()};function D(H){var A=typeof H;return!!H&&(A=="object"||A=="function")}function k(H){if(typeof H=="number")return H;if(function(F){return typeof F=="symbol"||function(I){return!!I&&typeof I=="object"}(F)&&S.call(F)==u}(H))return c;if(D(H)){var A=typeof H.valueOf=="function"?H.valueOf():H;H=D(A)?A+"":A}if(typeof H!="string")return H===0?H:+H;H=H.replace(f,"");var _=h.test(H);return _||g.test(H)?w(H.slice(2),_?2:8):d.test(H)?c:+H}o.exports=function(H,A,_){var F=!0,I=!0;if(typeof H!="function")throw new TypeError(l);return D(_)&&(F="leading"in _?!!_.leading:F,I="trailing"in _?!!_.trailing:I),function(Z,$,J){var Y,N,K,q,X,l1,u1=0,o1=!1,i1=!1,v1=!0;if(typeof Z!="function")throw new TypeError(l);function U1(d1){var L1=Y,y1=N;return Y=N=void 0,u1=d1,q=Z.apply(y1,L1)}function O1(d1){var L1=d1-l1;return l1===void 0||L1>=$||L1<0||i1&&d1-u1>=K}function j1(){var d1=E();if(O1(d1))return H1(d1);X=setTimeout(j1,function(L1){var y1=$-(L1-l1);return i1?T(y1,K-(L1-u1)):y1}(d1))}function H1(d1){return X=void 0,v1&&Y?U1(d1):(Y=N=void 0,q)}function E1(){var d1=E(),L1=O1(d1);if(Y=arguments,N=this,l1=d1,L1){if(X===void 0)return function(y1){return u1=y1,X=setTimeout(j1,$),o1?U1(y1):q}(l1);if(i1)return X=setTimeout(j1,$),U1(l1)}return X===void 0&&(X=setTimeout(j1,$)),q}return $=k($)||0,D(J)&&(o1=!!J.leading,K=(i1="maxWait"in J)?L(k(J.maxWait)||0,$):K,v1="trailing"in J?!!J.trailing:v1),E1.cancel=function(){X!==void 0&&clearTimeout(X),u1=0,Y=l1=N=X=void 0},E1.flush=function(){return X===void 0?q:H1(E())},E1}(H,A,{leading:F,maxWait:A,trailing:I})}},694:(o,i,a)=>{var l=a(925);function c(){}function u(){}u.resetWarningCache=c,o.exports=function(){function f(g,w,C,y,m,S){if(S!==l){var L=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw L.name="Invariant Violation",L}}function d(){return f}f.isRequired=f;var h={array:f,bigint:f,bool:f,func:f,number:f,object:f,string:f,symbol:f,any:f,arrayOf:d,element:f,elementType:f,instanceOf:d,node:f,objectOf:d,oneOf:d,oneOfType:d,shape:d,exact:d,checkPropTypes:u,resetWarningCache:c};return h.PropTypes=h,h}},556:(o,i,a)=>{o.exports=a(694)()},925:o=>{o.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"}},t={};function n(o){var i=t[o];if(i!==void 0)return i.exports;var a=t[o]={exports:{}};return e[o](a,a.exports,n),a.exports}n.n=o=>{var i=o&&o.__esModule?()=>o.default:()=>o;return n.d(i,{a:i}),i},n.d=(o,i)=>{for(var a in i)n.o(i,a)&&!n.o(o,a)&&Object.defineProperty(o,a,{enumerable:!0,get:i[a]})},n.g=function(){if(typeof globalThis=="object")return globalThis;try{return this||new Function("return this")()}catch{if(typeof window=="object")return window}}(),n.o=(o,i)=>Object.prototype.hasOwnProperty.call(o,i),n.r=o=>{typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(o,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(o,"__esModule",{value:!0})};var r={};(()=>{n.r(r),n.d(r,{LazyLoadComponent:()=>$e,LazyLoadImage:()=>h2,trackWindowScroll:()=>o1});const o=x;var i=n.n(o),a=n(556);function l(){return typeof window<"u"&&"IntersectionObserver"in window&&"isIntersecting"in window.IntersectionObserverEntry.prototype}function c(P){return c=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(p){return typeof p}:function(p){return p&&typeof Symbol=="function"&&p.constructor===Symbol&&p!==Symbol.prototype?"symbol":typeof p},c(P)}function u(P,p){var V=Object.keys(P);if(Object.getOwnPropertySymbols){var b=Object.getOwnPropertySymbols(P);p&&(b=b.filter(function(v){return Object.getOwnPropertyDescriptor(P,v).enumerable})),V.push.apply(V,b)}return V}function f(P,p,V){return(p=h(p))in P?Object.defineProperty(P,p,{value:V,enumerable:!0,configurable:!0,writable:!0}):P[p]=V,P}function d(P,p){for(var V=0;V<p.length;V++){var b=p[V];b.enumerable=b.enumerable||!1,b.configurable=!0,"value"in b&&(b.writable=!0),Object.defineProperty(P,h(b.key),b)}}function h(P){var p=function(V,b){if(c(V)!="object"||!V)return V;var v=V[Symbol.toPrimitive];if(v!==void 0){var M=v.call(V,"string");if(c(M)!="object")return M;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(V)}(P);return c(p)=="symbol"?p:p+""}function g(P,p,V){return p=C(p),function(b,v){if(v&&(c(v)=="object"||typeof v=="function"))return v;if(v!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return function(M){if(M===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return M}(b)}(P,w()?Reflect.construct(p,V||[],C(P).constructor):p.apply(P,V))}function w(){try{var P=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(w=function(){return!!P})()}function C(P){return C=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(p){return p.__proto__||Object.getPrototypeOf(p)},C(P)}function y(P,p){return y=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(V,b){return V.__proto__=b,V},y(P,p)}var m=function(P){P.forEach(function(p){p.isIntersecting&&p.target.onVisible()})},S={},L=function(P){function p(v){var M;if(function(O,B){if(!(O instanceof B))throw new TypeError("Cannot call a class as a function")}(this,p),(M=g(this,p,[v])).supportsObserver=!v.scrollPosition&&v.useIntersectionObserver&&l(),M.supportsObserver){var R=v.threshold;M.observer=function(O){return S[O]=S[O]||new IntersectionObserver(m,{rootMargin:O+"px"}),S[O]}(R)}return M}return function(v,M){if(typeof M!="function"&&M!==null)throw new TypeError("Super expression must either be null or a function");v.prototype=Object.create(M&&M.prototype,{constructor:{value:v,writable:!0,configurable:!0}}),Object.defineProperty(v,"prototype",{writable:!1}),M&&y(v,M)}(p,P),V=p,b=[{key:"componentDidMount",value:function(){this.placeholder&&this.observer&&(this.placeholder.onVisible=this.props.onVisible,this.observer.observe(this.placeholder)),this.supportsObserver||this.updateVisibility()}},{key:"componentWillUnmount",value:function(){this.observer&&this.placeholder&&this.observer.unobserve(this.placeholder)}},{key:"componentDidUpdate",value:function(){this.supportsObserver||this.updateVisibility()}},{key:"getPlaceholderBoundingBox",value:function(){var v=arguments.length>0&&arguments[0]!==void 0?arguments[0]:this.props.scrollPosition,M=this.placeholder.getBoundingClientRect(),R=this.placeholder.style,O=parseInt(R.getPropertyValue("margin-left"),10)||0,B=parseInt(R.getPropertyValue("margin-top"),10)||0;return{bottom:v.y+M.bottom+B,left:v.x+M.left+O,right:v.x+M.right+O,top:v.y+M.top+B}}},{key:"isPlaceholderInViewport",value:function(){if(typeof window>"u"||!this.placeholder)return!1;var v=this.props,M=v.scrollPosition,R=v.threshold,O=this.getPlaceholderBoundingBox(M),B=M.y+window.innerHeight,W=M.x,t1=M.x+window.innerWidth,Q=M.y;return Q-R<=O.bottom&&B+R>=O.top&&W-R<=O.right&&t1+R>=O.left}},{key:"updateVisibility",value:function(){this.isPlaceholderInViewport()&&this.props.onVisible()}},{key:"render",value:function(){var v=this,M=this.props,R=M.className,O=M.height,B=M.placeholder,W=M.style,t1=M.width;if(B&&typeof B.type!="function")return i().cloneElement(B,{ref:function(e1){return v.placeholder=e1}});var Q=function(e1){for(var s1=1;s1<arguments.length;s1++){var r1=arguments[s1]!=null?arguments[s1]:{};s1%2?u(Object(r1),!0).forEach(function(h1){f(e1,h1,r1[h1])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e1,Object.getOwnPropertyDescriptors(r1)):u(Object(r1)).forEach(function(h1){Object.defineProperty(e1,h1,Object.getOwnPropertyDescriptor(r1,h1))})}return e1}({display:"inline-block"},W);return t1!==void 0&&(Q.width=t1),O!==void 0&&(Q.height=O),i().createElement("span",{className:R,ref:function(e1){return v.placeholder=e1},style:Q},B)}}],b&&d(V.prototype,b),Object.defineProperty(V,"prototype",{writable:!1}),V;var V,b}(i().Component);L.propTypes={onVisible:a.PropTypes.func.isRequired,className:a.PropTypes.string,height:a.PropTypes.oneOfType([a.PropTypes.number,a.PropTypes.string]),placeholder:a.PropTypes.element,threshold:a.PropTypes.number,useIntersectionObserver:a.PropTypes.bool,scrollPosition:a.PropTypes.shape({x:a.PropTypes.number.isRequired,y:a.PropTypes.number.isRequired}),width:a.PropTypes.oneOfType([a.PropTypes.number,a.PropTypes.string])},L.defaultProps={className:"",placeholder:null,threshold:100,useIntersectionObserver:!0};const T=L;var E=n(181),D=n.n(E),k=n(858),H=n.n(k),A=function(P){var p=getComputedStyle(P,null);return p.getPropertyValue("overflow")+p.getPropertyValue("overflow-y")+p.getPropertyValue("overflow-x")};const _=function(P){if(!(P instanceof HTMLElement))return window;for(var p=P;p&&p instanceof HTMLElement;){if(/(scroll|auto)/.test(A(p)))return p;p=p.parentNode}return window};function F(P){return F=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(p){return typeof p}:function(p){return p&&typeof Symbol=="function"&&p.constructor===Symbol&&p!==Symbol.prototype?"symbol":typeof p},F(P)}var I=["delayMethod","delayTime"];function Z(){return Z=Object.assign?Object.assign.bind():function(P){for(var p=1;p<arguments.length;p++){var V=arguments[p];for(var b in V)({}).hasOwnProperty.call(V,b)&&(P[b]=V[b])}return P},Z.apply(null,arguments)}function $(P,p){for(var V=0;V<p.length;V++){var b=p[V];b.enumerable=b.enumerable||!1,b.configurable=!0,"value"in b&&(b.writable=!0),Object.defineProperty(P,J(b.key),b)}}function J(P){var p=function(V,b){if(F(V)!="object"||!V)return V;var v=V[Symbol.toPrimitive];if(v!==void 0){var M=v.call(V,"string");if(F(M)!="object")return M;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(V)}(P);return F(p)=="symbol"?p:p+""}function Y(P,p,V){return p=q(p),N(P,K()?Reflect.construct(p,V||[],q(P).constructor):p.apply(P,V))}function N(P,p){if(p&&(F(p)=="object"||typeof p=="function"))return p;if(p!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return function(V){if(V===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return V}(P)}function K(){try{var P=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(K=function(){return!!P})()}function q(P){return q=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(p){return p.__proto__||Object.getPrototypeOf(p)},q(P)}function X(P,p){return X=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(V,b){return V.__proto__=b,V},X(P,p)}var l1=function(){return typeof window>"u"?0:window.scrollX||window.pageXOffset},u1=function(){return typeof window>"u"?0:window.scrollY||window.pageYOffset};const o1=function(P){var p=function(V){function b(R){var O;if(function(W,t1){if(!(W instanceof t1))throw new TypeError("Cannot call a class as a function")}(this,b),(O=Y(this,b,[R])).useIntersectionObserver=R.useIntersectionObserver&&l(),O.useIntersectionObserver)return N(O);var B=O.onChangeScroll.bind(O);return R.delayMethod==="debounce"?O.delayedScroll=D()(B,R.delayTime):R.delayMethod==="throttle"&&(O.delayedScroll=H()(B,R.delayTime)),O.state={scrollPosition:{x:l1(),y:u1()}},O.baseComponentRef=i().createRef(),O}return function(R,O){if(typeof O!="function"&&O!==null)throw new TypeError("Super expression must either be null or a function");R.prototype=Object.create(O&&O.prototype,{constructor:{value:R,writable:!0,configurable:!0}}),Object.defineProperty(R,"prototype",{writable:!1}),O&&X(R,O)}(b,V),v=b,M=[{key:"componentDidMount",value:function(){this.addListeners()}},{key:"componentWillUnmount",value:function(){this.removeListeners()}},{key:"componentDidUpdate",value:function(){typeof window>"u"||this.useIntersectionObserver||_(this.baseComponentRef.current)!==this.scrollElement&&(this.removeListeners(),this.addListeners())}},{key:"addListeners",value:function(){typeof window>"u"||this.useIntersectionObserver||(this.scrollElement=_(this.baseComponentRef.current),this.scrollElement.addEventListener("scroll",this.delayedScroll,{passive:!0}),window.addEventListener("resize",this.delayedScroll,{passive:!0}),this.scrollElement!==window&&window.addEventListener("scroll",this.delayedScroll,{passive:!0}))}},{key:"removeListeners",value:function(){typeof window>"u"||this.useIntersectionObserver||(this.scrollElement.removeEventListener("scroll",this.delayedScroll),window.removeEventListener("resize",this.delayedScroll),this.scrollElement!==window&&window.removeEventListener("scroll",this.delayedScroll))}},{key:"onChangeScroll",value:function(){this.useIntersectionObserver||this.setState({scrollPosition:{x:l1(),y:u1()}})}},{key:"render",value:function(){var R=this.props,O=(R.delayMethod,R.delayTime,function(W,t1){if(W==null)return{};var Q,e1,s1=function(h1,be){if(h1==null)return{};var $3={};for(var Mt in h1)if({}.hasOwnProperty.call(h1,Mt)){if(be.indexOf(Mt)>=0)continue;$3[Mt]=h1[Mt]}return $3}(W,t1);if(Object.getOwnPropertySymbols){var r1=Object.getOwnPropertySymbols(W);for(e1=0;e1<r1.length;e1++)Q=r1[e1],t1.indexOf(Q)>=0||{}.propertyIsEnumerable.call(W,Q)&&(s1[Q]=W[Q])}return s1}(R,I)),B=this.useIntersectionObserver?null:this.state.scrollPosition;return i().createElement(P,Z({forwardRef:this.baseComponentRef,scrollPosition:B},O))}}],M&&$(v.prototype,M),Object.defineProperty(v,"prototype",{writable:!1}),v;var v,M}(i().Component);return p.propTypes={delayMethod:a.PropTypes.oneOf(["debounce","throttle"]),delayTime:a.PropTypes.number,useIntersectionObserver:a.PropTypes.bool},p.defaultProps={delayMethod:"throttle",delayTime:300,useIntersectionObserver:!0},p};function i1(P){return i1=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(p){return typeof p}:function(p){return p&&typeof Symbol=="function"&&p.constructor===Symbol&&p!==Symbol.prototype?"symbol":typeof p},i1(P)}function v1(P,p){for(var V=0;V<p.length;V++){var b=p[V];b.enumerable=b.enumerable||!1,b.configurable=!0,"value"in b&&(b.writable=!0),Object.defineProperty(P,U1(b.key),b)}}function U1(P){var p=function(V,b){if(i1(V)!="object"||!V)return V;var v=V[Symbol.toPrimitive];if(v!==void 0){var M=v.call(V,"string");if(i1(M)!="object")return M;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(V)}(P);return i1(p)=="symbol"?p:p+""}function O1(P,p,V){return p=H1(p),function(b,v){if(v&&(i1(v)=="object"||typeof v=="function"))return v;if(v!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return function(M){if(M===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return M}(b)}(P,j1()?Reflect.construct(p,V||[],H1(P).constructor):p.apply(P,V))}function j1(){try{var P=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(j1=function(){return!!P})()}function H1(P){return H1=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(p){return p.__proto__||Object.getPrototypeOf(p)},H1(P)}function E1(P,p){return E1=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(V,b){return V.__proto__=b,V},E1(P,p)}var d1=function(P){function p(v){return function(M,R){if(!(M instanceof R))throw new TypeError("Cannot call a class as a function")}(this,p),O1(this,p,[v])}return function(v,M){if(typeof M!="function"&&M!==null)throw new TypeError("Super expression must either be null or a function");v.prototype=Object.create(M&&M.prototype,{constructor:{value:v,writable:!0,configurable:!0}}),Object.defineProperty(v,"prototype",{writable:!1}),M&&E1(v,M)}(p,P),V=p,(b=[{key:"render",value:function(){return i().createElement(T,this.props)}}])&&v1(V.prototype,b),Object.defineProperty(V,"prototype",{writable:!1}),V;var V,b}(i().Component);const L1=o1(d1);function y1(P){return y1=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(p){return typeof p}:function(p){return p&&typeof Symbol=="function"&&p.constructor===Symbol&&p!==Symbol.prototype?"symbol":typeof p},y1(P)}function z(P,p){for(var V=0;V<p.length;V++){var b=p[V];b.enumerable=b.enumerable||!1,b.configurable=!0,"value"in b&&(b.writable=!0),Object.defineProperty(P,vt(b.key),b)}}function vt(P){var p=function(V,b){if(y1(V)!="object"||!V)return V;var v=V[Symbol.toPrimitive];if(v!==void 0){var M=v.call(V,"string");if(y1(M)!="object")return M;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(V)}(P);return y1(p)=="symbol"?p:p+""}function yt(P,p,V){return p=ve(p),function(b,v){if(v&&(y1(v)=="object"||typeof v=="function"))return v;if(v!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return function(M){if(M===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return M}(b)}(P,me()?Reflect.construct(p,V||[],ve(P).constructor):p.apply(P,V))}function me(){try{var P=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(me=function(){return!!P})()}function ve(P){return ve=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(p){return p.__proto__||Object.getPrototypeOf(p)},ve(P)}function Ue(P,p){return Ue=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(V,b){return V.__proto__=b,V},Ue(P,p)}var D1=function(P){function p(v){var M;(function(t1,Q){if(!(t1 instanceof Q))throw new TypeError("Cannot call a class as a function")})(this,p),M=yt(this,p,[v]);var R=v.afterLoad,O=v.beforeLoad,B=v.scrollPosition,W=v.visibleByDefault;return M.state={visible:W},W&&(O(),R()),M.onVisible=M.onVisible.bind(M),M.isScrollTracked=!!(B&&Number.isFinite(B.x)&&B.x>=0&&Number.isFinite(B.y)&&B.y>=0),M}return function(v,M){if(typeof M!="function"&&M!==null)throw new TypeError("Super expression must either be null or a function");v.prototype=Object.create(M&&M.prototype,{constructor:{value:v,writable:!0,configurable:!0}}),Object.defineProperty(v,"prototype",{writable:!1}),M&&Ue(v,M)}(p,P),V=p,(b=[{key:"componentDidUpdate",value:function(v,M){M.visible!==this.state.visible&&this.props.afterLoad()}},{key:"onVisible",value:function(){this.props.beforeLoad(),this.setState({visible:!0})}},{key:"render",value:function(){if(this.state.visible)return this.props.children;var v=this.props,M=v.className,R=v.delayMethod,O=v.delayTime,B=v.height,W=v.placeholder,t1=v.scrollPosition,Q=v.style,e1=v.threshold,s1=v.useIntersectionObserver,r1=v.width;return this.isScrollTracked||s1&&l()?i().createElement(T,{className:M,height:B,onVisible:this.onVisible,placeholder:W,scrollPosition:t1,style:Q,threshold:e1,useIntersectionObserver:s1,width:r1}):i().createElement(L1,{className:M,delayMethod:R,delayTime:O,height:B,onVisible:this.onVisible,placeholder:W,style:Q,threshold:e1,width:r1})}}])&&z(V.prototype,b),Object.defineProperty(V,"prototype",{writable:!1}),V;var V,b}(i().Component);D1.propTypes={afterLoad:a.PropTypes.func,beforeLoad:a.PropTypes.func,useIntersectionObserver:a.PropTypes.bool,visibleByDefault:a.PropTypes.bool},D1.defaultProps={afterLoad:function(){return{}},beforeLoad:function(){return{}},useIntersectionObserver:!0,visibleByDefault:!1};const $e=D1;function X1(P){return X1=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(p){return typeof p}:function(p){return p&&typeof Symbol=="function"&&p.constructor===Symbol&&p!==Symbol.prototype?"symbol":typeof p},X1(P)}var ae=["afterLoad","beforeLoad","delayMethod","delayTime","effect","placeholder","placeholderSrc","scrollPosition","threshold","useIntersectionObserver","visibleByDefault","wrapperClassName","wrapperProps"];function xt(P,p){var V=Object.keys(P);if(Object.getOwnPropertySymbols){var b=Object.getOwnPropertySymbols(P);p&&(b=b.filter(function(v){return Object.getOwnPropertyDescriptor(P,v).enumerable})),V.push.apply(V,b)}return V}function We(P){for(var p=1;p<arguments.length;p++){var V=arguments[p]!=null?arguments[p]:{};p%2?xt(Object(V),!0).forEach(function(b){d2(P,b,V[b])}):Object.getOwnPropertyDescriptors?Object.defineProperties(P,Object.getOwnPropertyDescriptors(V)):xt(Object(V)).forEach(function(b){Object.defineProperty(P,b,Object.getOwnPropertyDescriptor(V,b))})}return P}function d2(P,p,V){return(p=wt(p))in P?Object.defineProperty(P,p,{value:V,enumerable:!0,configurable:!0,writable:!0}):P[p]=V,P}function ye(){return ye=Object.assign?Object.assign.bind():function(P){for(var p=1;p<arguments.length;p++){var V=arguments[p];for(var b in V)({}).hasOwnProperty.call(V,b)&&(P[b]=V[b])}return P},ye.apply(null,arguments)}function xe(P,p){for(var V=0;V<p.length;V++){var b=p[V];b.enumerable=b.enumerable||!1,b.configurable=!0,"value"in b&&(b.writable=!0),Object.defineProperty(P,wt(b.key),b)}}function wt(P){var p=function(V,b){if(X1(V)!="object"||!V)return V;var v=V[Symbol.toPrimitive];if(v!==void 0){var M=v.call(V,"string");if(X1(M)!="object")return M;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(V)}(P);return X1(p)=="symbol"?p:p+""}function bt(P,p,V){return p=Z1(p),function(b,v){if(v&&(X1(v)=="object"||typeof v=="function"))return v;if(v!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return function(M){if(M===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return M}(b)}(P,Lt()?Reflect.construct(p,V||[],Z1(P).constructor):p.apply(P,V))}function Lt(){try{var P=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(Lt=function(){return!!P})()}function Z1(P){return Z1=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(p){return p.__proto__||Object.getPrototypeOf(p)},Z1(P)}function we(P,p){return we=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(V,b){return V.__proto__=b,V},we(P,p)}var ze=function(P){function p(v){var M;return function(R,O){if(!(R instanceof O))throw new TypeError("Cannot call a class as a function")}(this,p),(M=bt(this,p,[v])).state={loaded:!1},M}return function(v,M){if(typeof M!="function"&&M!==null)throw new TypeError("Super expression must either be null or a function");v.prototype=Object.create(M&&M.prototype,{constructor:{value:v,writable:!0,configurable:!0}}),Object.defineProperty(v,"prototype",{writable:!1}),M&&we(v,M)}(p,P),V=p,b=[{key:"onImageLoad",value:function(){var v=this;return this.state.loaded?null:function(M){v.props.onLoad(M),v.props.afterLoad(),v.setState({loaded:!0})}}},{key:"getImg",value:function(){var v=this.props,M=(v.afterLoad,v.beforeLoad,v.delayMethod,v.delayTime,v.effect,v.placeholder,v.placeholderSrc,v.scrollPosition,v.threshold,v.useIntersectionObserver,v.visibleByDefault,v.wrapperClassName,v.wrapperProps,function(R,O){if(R==null)return{};var B,W,t1=function(e1,s1){if(e1==null)return{};var r1={};for(var h1 in e1)if({}.hasOwnProperty.call(e1,h1)){if(s1.indexOf(h1)>=0)continue;r1[h1]=e1[h1]}return r1}(R,O);if(Object.getOwnPropertySymbols){var Q=Object.getOwnPropertySymbols(R);for(W=0;W<Q.length;W++)B=Q[W],O.indexOf(B)>=0||{}.propertyIsEnumerable.call(R,B)&&(t1[B]=R[B])}return t1}(v,ae));return i().createElement("img",ye({},M,{onLoad:this.onImageLoad()}))}},{key:"getLazyLoadImage",value:function(){var v=this.props,M=v.beforeLoad,R=v.className,O=v.delayMethod,B=v.delayTime,W=v.height,t1=v.placeholder,Q=v.scrollPosition,e1=v.style,s1=v.threshold,r1=v.useIntersectionObserver,h1=v.visibleByDefault,be=v.width;return i().createElement($e,{beforeLoad:M,className:R,delayMethod:O,delayTime:B,height:W,placeholder:t1,scrollPosition:Q,style:e1,threshold:s1,useIntersectionObserver:r1,visibleByDefault:h1,width:be},this.getImg())}},{key:"getWrappedLazyLoadImage",value:function(v){var M=this.props,R=M.effect,O=M.height,B=M.placeholderSrc,W=M.width,t1=M.wrapperClassName,Q=M.wrapperProps,e1=this.state.loaded,s1=e1?" lazy-load-image-loaded":"",r1=e1||!B?{}:{backgroundImage:"url(".concat(B,")"),backgroundSize:"100% 100%"};return i().createElement("span",ye({className:t1+" lazy-load-image-background "+R+s1,style:We(We({},r1),{},{color:"transparent",display:"inline-block",height:O,width:W})},Q),v)}},{key:"render",value:function(){var v=this.props,M=v.effect,R=v.placeholderSrc,O=v.visibleByDefault,B=v.wrapperClassName,W=v.wrapperProps,t1=this.getLazyLoadImage();return(M||R)&&!O||B||W?this.getWrappedLazyLoadImage(t1):t1}}],b&&xe(V.prototype,b),Object.defineProperty(V,"prototype",{writable:!1}),V;var V,b}(i().Component);ze.propTypes={onLoad:a.PropTypes.func,afterLoad:a.PropTypes.func,beforeLoad:a.PropTypes.func,delayMethod:a.PropTypes.string,delayTime:a.PropTypes.number,effect:a.PropTypes.string,placeholderSrc:a.PropTypes.string,threshold:a.PropTypes.number,useIntersectionObserver:a.PropTypes.bool,visibleByDefault:a.PropTypes.bool,wrapperClassName:a.PropTypes.string,wrapperProps:a.PropTypes.object},ze.defaultProps={onLoad:function(){},afterLoad:function(){return{}},beforeLoad:function(){return{}},delayMethod:"throttle",delayTime:300,effect:"",placeholderSrc:null,threshold:100,useIntersectionObserver:!0,visibleByDefault:!1,wrapperClassName:""};const h2=ze})(),O0.exports=r})();var Zc=O0.exports;const _2="data:image/svg+xml,%3csvg%20width='384'%20height='216'%20viewBox='0%200%20384%20216'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20clip-path='url(%23clip0_11648_9381)'%3e%3crect%20width='384'%20height='216'%20fill='%2359BB99'/%3e%3ccircle%20cx='-7'%20cy='184'%20r='87'%20fill='url(%23paint0_radial_11648_9381)'/%3e%3ccircle%20cx='368'%20cy='33'%20r='87'%20fill='url(%23paint1_radial_11648_9381)'/%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M136%2078C141.959%2078%20146.986%2081.9942%20148.548%2087.4516C154.006%2089.014%20158%2094.0405%20158%2099.9999C158%20105.959%20154.006%20110.986%20148.548%20112.548C146.986%20118.006%20141.959%20122%20136%20122C130.04%20122%20125.014%20118.006%20123.452%20112.548C117.994%20110.986%20114%20105.959%20114%2099.9999C114%2094.0406%20117.994%2089.0142%20123.452%2087.4517C125.014%2081.9943%20130.04%2078%20136%2078Z'%20fill='%23F7CFDB'/%3e%3cpath%20d='M139.954%2095.3616C139.923%2097.884%20135.962%2097.5421%20134.7%2097.5267L134.755%2093.063C136.016%2093.0784%20139.985%2092.7277%20139.954%2095.3616ZM140.906%20102.316C140.874%20105.09%20136.128%20104.716%20134.611%20104.698L134.688%2099.7811C136.2%2099.8017%20140.958%2099.4226%20140.922%20102.32L140.906%20102.316ZM144.148%2094.4178C143.928%2091.7661%20141.653%2090.8548%20138.771%2090.5621L138.816%2086.8898L136.578%2086.8608L136.533%2090.4382C135.948%2090.4302%20135.347%2090.4347%20134.75%2090.4401L134.775%2086.845L132.543%2086.8093L132.499%2090.4777C132.013%2090.4841%20131.538%2090.4848%20131.075%2090.4809L127.993%2090.4406L127.964%2092.8313C127.964%2092.8313%20129.621%2092.8205%20129.584%2092.8518C130.21%2092.7802%20130.777%2093.2229%20130.86%2093.8471L130.822%2098.0175C130.901%2098.0184%20130.979%2098.0242%20131.057%2098.035L130.822%2098.034L130.737%20103.891C130.7%20104.329%20130.317%20104.655%20129.88%20104.621C129.914%20104.63%20128.256%20104.6%20128.256%20104.6L127.778%20107.263L130.688%20107.298L132.289%20107.314L132.246%20111.024L134.48%20111.052L134.512%20107.397C135.106%20107.419%20135.702%20107.43%20136.296%20107.436L136.25%20111.096L138.484%20111.124L138.535%20107.416C142.302%20107.247%20144.938%20106.332%20145.307%20102.809C145.601%2099.9679%20144.29%2098.6862%20142.168%2098.1466C143.474%2097.504%20144.303%2096.3533%20144.132%2094.4136L144.148%2094.4178Z'%20fill='%23DB6A93'/%3e%3cpath%20d='M170%2098.8577C170%2094.4242%20172.859%2090.9544%20177.421%2090.9544C179.959%2090.9544%20181.919%2092.111%20182.915%2094.0708L183.14%2091.4042H185.839V106.472C185.839%20111.42%20182.787%20114.568%20177.968%20114.568C173.695%20114.568%20170.771%20112.158%20170.193%20108.175H173.213C173.598%20110.488%20175.333%20111.837%20177.968%20111.837C180.923%20111.837%20182.851%20109.91%20182.851%20106.922V103.773C181.823%20105.604%20179.767%20106.697%20177.293%20106.697C172.827%20106.697%20170%20103.259%20170%2098.8577ZM173.02%2098.7935C173.02%20101.749%20174.851%20104.062%20177.807%20104.062C180.859%20104.062%20182.722%20101.878%20182.722%2098.7935C182.722%2095.7735%20180.923%2093.5889%20177.839%2093.5889C174.819%2093.5889%20173.02%2095.902%20173.02%2098.7935Z'%20fill='white'/%3e%3cpath%20d='M194.791%20107.5C191.418%20107.5%20189.426%20105.604%20189.426%20102.745C189.426%2099.8537%20191.579%2098.0545%20195.273%2097.7654L200.221%2097.3799V96.9301C200.221%2094.2957%20198.647%2093.364%20196.526%2093.364C193.988%2093.364%20192.542%2094.4884%20192.542%2096.3839H189.908C189.908%2093.1069%20192.607%2090.9544%20196.655%2090.9544C200.542%2090.9544%20203.176%2093.0106%20203.176%2097.2514V107.114H200.606L200.285%20104.576C199.482%20106.376%20197.329%20107.5%20194.791%20107.5ZM195.659%20105.155C198.518%20105.155%20200.253%20103.291%20200.253%20100.336V99.5003L196.237%2099.8216C193.57%20100.079%20192.478%20101.107%20192.478%20102.649C192.478%20104.319%20193.699%20105.155%20195.659%20105.155Z'%20fill='white'/%3e%3cpath%20d='M216.354%2091.2757V94.0386H215.005C212.146%2094.0386%20210.379%2095.7735%20210.379%2098.7935V107.114H207.359V91.4363H210.186L210.379%2093.8137C211.021%2092.1753%20212.596%2091.0829%20214.748%2091.0829C215.294%2091.0829%20215.744%2091.1472%20216.354%2091.2757Z'%20fill='white'/%3e%3cpath%20d='M224.919%20107.5C220.357%20107.5%20217.594%20104.094%20217.594%2099.3075C217.594%2094.4884%20220.389%2090.9544%20225.048%2090.9544C227.457%2090.9544%20229.481%2092.0146%20230.541%2093.9423V83.4688H233.529V107.114H230.831L230.574%20104.255C229.545%20106.408%20227.425%20107.5%20224.919%20107.5ZM225.53%20104.769C228.614%20104.769%20230.509%20102.488%20230.509%2099.2111C230.509%2095.9984%20228.614%2093.6852%20225.53%2093.6852C222.445%2093.6852%20220.646%2095.9984%20220.646%2099.2111C220.646%20102.456%20222.445%20104.769%20225.53%20104.769Z'%20fill='white'/%3e%3cpath%20d='M244.665%20107.5C240.039%20107.5%20236.858%20104.159%20236.858%2099.2754C236.858%2094.3599%20239.974%2090.9544%20244.536%2090.9544C249.002%2090.9544%20251.926%2094.0386%20251.926%2098.6971V99.8216L239.782%2099.8537C240.006%20103.163%20241.741%20104.994%20244.729%20104.994C247.074%20104.994%20248.617%20104.03%20249.131%20102.231H251.958C251.187%20105.604%20248.552%20107.5%20244.665%20107.5ZM244.536%2093.4925C241.902%2093.4925%20240.231%2095.0667%20239.846%2097.8297H248.906C248.906%2095.2273%20247.203%2093.4925%20244.536%2093.4925Z'%20fill='white'/%3e%3cpath%20d='M258.319%20107.114H255.299V91.4042H258.03L258.351%2093.8137C259.347%2092.0146%20261.339%2090.9544%20263.555%2090.9544C267.7%2090.9544%20269.595%2093.4925%20269.595%2097.5084V107.114H266.575V98.1831C266.575%2095.0025%20265.098%2093.7174%20262.784%2093.7174C259.957%2093.7174%20258.319%2095.7414%20258.319%2098.7935V107.114Z'%20fill='white'/%3e%3c/g%3e%3cdefs%3e%3cradialGradient%20id='paint0_radial_11648_9381'%20cx='0'%20cy='0'%20r='1'%20gradientUnits='userSpaceOnUse'%20gradientTransform='translate(-7%20184)%20rotate(90)%20scale(87)'%3e%3cstop%20offset='0.380208'%20stop-color='%239BC8FF'/%3e%3cstop%20offset='1'%20stop-color='%239BC8FF'%20stop-opacity='0.2'/%3e%3c/radialGradient%3e%3cradialGradient%20id='paint1_radial_11648_9381'%20cx='0'%20cy='0'%20r='1'%20gradientUnits='userSpaceOnUse'%20gradientTransform='translate(368%2033)%20rotate(90)%20scale(87)'%3e%3cstop%20offset='0.380208'%20stop-color='%239BC8FF'/%3e%3cstop%20offset='1'%20stop-color='%239BC8FF'%20stop-opacity='0.2'/%3e%3c/radialGradient%3e%3cclipPath%20id='clip0_11648_9381'%3e%3crect%20width='384'%20height='216'%20fill='white'/%3e%3c/clipPath%3e%3c/defs%3e%3c/svg%3e",Ic=({thumbnail:e,category:t,date:n,title:r,className:o,thumbnailClassName:i})=>{const[a,l]=x.useState(!1),[c,u]=x.useState(e??_2);x.useEffect(()=>{u(e??_2)},[e]);const f=()=>{u(_2)};return s.jsx(ht,{level:"semi-dark",className:"gf-rounded-2xl h-full",children:s.jsxs("div",{className:V1(o,"gf-overflow-hidden gf-rounded-2xl"),children:[s.jsx("div",{className:V1(i,`${a?"":"gf-filter gf-blur-md"}`),children:s.jsx(Zc.LazyLoadImage,{alt:r,effect:"blur",src:c,onLoad:()=>l(!0),onError:f})}),s.jsxs("div",{className:"gf-px-4 gf-pt-4 gf-pb-5 gf-md:px-5 gf-md:pb-11",children:[s.jsxs("div",{className:"gf-flex gf-justify-between gf-mb-3",children:[s.jsx(M1,{size:"h5",weight:"medium",className:"gf-bg-rose gf-px-3 gf-py-1 gf-rounded-full",children:t}),s.jsx(M1,{size:"h5",weight:"medium",className:"gf-px-3 gf-py-1",children:n})]}),s.jsx(M1,{size:"h3",weight:"bold",children:r})]})]})})},_c=Ze(["gf-w-full gf-max-w-96 gf-p-4 gf-pb-5 md:gf-p-6 md:gf-pb-8 gf-rounded-2xl"],{variants:{variant:{locked:"gf-bg-white gf-bg-opacity-25",default:"gf-bg-white gf-bg-opacity-50"}},defaultVariants:{variant:"locked"}}),Bc=({variant:e,title:t,description:n,chipContent:r,logo:o})=>s.jsxs("div",{className:V1(_c({variant:e})),children:[s.jsxs("div",{className:"gf-flex gf-justify-between gf-items-center gf-mb-4",children:[s.jsxs(I1,{className:"gf-cursor-pointer gf-px-2 gf-py-1",children:[s.jsx(I1.Logo,{children:o}),t,s.jsx(I1.CheckBox,{checked:!1})]}),e==="default"?s.jsx(O6,{className:"gf-cursor-pointer",height:"20px",width:"20px"}):s.jsx(A6,{className:"gf-cursor-pointer",height:"20px",width:"20px"})]}),s.jsx("div",{className:"gf-mb-3 md:gf-mb-8",children:s.jsx(M1,{size:"h3",weight:"medium",children:n})}),s.jsxs("div",{className:"gf-flex gf-justify-end gf-space-x-2",children:[s.jsxs(I1,{className:"gf-pl-3 gf-pr-2 gf-py-1",children:[s.jsx(M1,{size:"h4",weight:"medium",children:"Quest Access"}),s.jsx(I1.CheckBox,{checked:!1})]}),s.jsxs(I1,{className:"gf-pl-3 gf-pr-2 gf-py-1",children:[s.jsx(M1,{size:"h4",weight:"medium",children:r}),s.jsx(I1.CheckBox,{checked:!1})]})]})]});exports.APIIcon=N6;exports.AddIcon=o4;exports.ArbitrumLogo=u7;exports.ArrowDownwardIcon=e4;exports.ArrowEastIcon=k4;exports.ArrowLeftIcon=n4;exports.ArrowNorthEastIcon=i4;exports.ArrowNorthWestIcon=s4;exports.ArrowRightIcon=r4;exports.ArrowSouthEastIcon=a4;exports.ArrowSouthWestIcon=l4;exports.ArrowSyncIcon=X4;exports.ArrowUpwardIcon=t4;exports.BTCLogo=f7;exports.BlogCard=Ic;exports.BlogIcon=F6;exports.BottomSheet=Qs;exports.BrandKitIcon=U6;exports.Button=Eo;exports.Camelot=E7;exports.CancelIcon=K4;exports.CatalogLogo=d7;exports.ChainflipIcon=F4;exports.CheckBox=B7;exports.CheckCircleIcon=R4;exports.CheckIcon=c4;exports.Checked=I6;exports.Chip=I1;exports.ClientOnly=dt;exports.ClockIcon=u4;exports.CloseIcon=f4;exports.CodeBlockIcon=q4;exports.Coinbase=h7;exports.CompareArrowsIcon=O4;exports.ConsoleIcon=Q4;exports.Container=Js;exports.CopyIcon=d4;exports.CopyrightsIcon=$6;exports.DLCBTC=T7;exports.Debridge=H7;exports.DeleteIcon=W4;exports.DiscordIcon=W6;exports.Dodo=O7;exports.DollarChipIcon=s7;exports.DraftIcon=z6;exports.EditIcon=h4;exports.EncryptedIcon=r7;exports.EthereumLogo=C7;exports.ExchangeIcon=C4;exports.FeesIcon=H4;exports.FingerprintIcon=A4;exports.Footer=Dc;exports.GMX=k7;exports.GMXLogo=x7;exports.GardenExplorer=p7;exports.GardenFullLogo=g7;exports.GardenIcon=q6;exports.GardenIconOutline=I7;exports.GardenLogo=m7;exports.GardenLogoText=v7;exports.GardenStrokeIcon=y7;exports.GasStationIcon=G4;exports.GiftBoxIcon=a7;exports.GradientScroll=W7;exports.HorizontalSwap=i7;exports.HubIcon=Y4;exports.InfinityIcon=_4;exports.InfoBadge=U7;exports.InfoIcon=p4;exports.KeyboardDownIcon=R6;exports.KeyboardLeftIcon=g4;exports.KeyboardRightIcon=m4;exports.KeyboardUpIcon=v4;exports.LanguageIcon=y4;exports.LinkIcon=x4;exports.LockIcon=A6;exports.LogoutIcon=w4;exports.MenuIcon=b4;exports.MinusIcon=D4;exports.Modal=Xr;exports.NFTIcon=_7;exports.Opacity=ht;exports.OpenInFullIcon=O6;exports.OpenInNewIcon=E4;exports.OtterSecIcon=J4;exports.PageInfoIcon=L4;exports.PancakeSwap=A7;exports.PasskeyIcon=N4;exports.PhantomIcon=w7;exports.PlusIcon=Z4;exports.PolygonLogo=b7;exports.QuestCard=Bc;exports.Radiant=Z7;exports.RadiantLogo=L7;exports.RadioCheckedIcon=D6;exports.RadioUncheckedIcon=Z6;exports.RaiseHandIcon=l7;exports.ReferralIcon=P4;exports.RelayLinkIcon=U4;exports.RemoveIcon=M4;exports.RollingText=Ee;exports.Rotate360Icon=n7;exports.RoutingIcon=o7;exports.RowInfoIcon=c7;exports.SDKIcon=G6;exports.ScaleY=Rc;exports.SearchIcon=S4;exports.SearchIconThin=Y6;exports.Share=I4;exports.Shine=Ac;exports.Sidebar=vi;exports.Solv=R7;exports.StakeIcon=K6;exports.StarIcon=V4;exports.SwapHorizontalIcon=B6;exports.SwellBTC=S7;exports.ThorswapIcon=$4;exports.TimerIcon=T4;exports.TokenInfo=$7;exports.TokenNetworkLogos=Q6;exports.TraderJoe=P7;exports.TrailOfBits=M7;exports.TrustWallet=V7;exports.Typography=M1;exports.Unchecked=_6;exports.Vertex=D7;exports.WalletConnect=j7;exports.WalletIcon=j4;exports.WalletIconRose=B4;exports.WarningIcon=z4;exports.XIcon=X6;exports.XSolidIcon=e7;exports.ZellicIcon=t7;
|
|
65
|
+
`),()=>{document.head.removeChild(f)}},[t]),s.jsx(nc,{isPresent:t,childRef:r,sizeRef:o,children:j.cloneElement(e,{ref:r})})}const oc=({children:e,initial:t,isPresent:n,onExitComplete:r,custom:o,presenceAffectsLayout:i,mode:a})=>{const l=ge(ic),c=x.useId(),u=x.useMemo(()=>({id:c,initial:t,isPresent:n,custom:o,onExitComplete:f=>{l.set(f,!0);for(const d of l.values())if(!d)return;r&&r()},register:f=>(l.set(f,!1),()=>l.delete(f))}),i?[Math.random()]:[n]);return x.useMemo(()=>{l.forEach((f,d)=>l.set(d,!1))},[n]),j.useEffect(()=>{!n&&!l.size&&r&&r()},[n]),a==="popLayout"&&(e=s.jsx(rc,{isPresent:n,children:e})),s.jsx(l2.Provider,{value:u,children:e})};function ic(){return new Map}const Zt=e=>e.key||"";function Tr(e){const t=[];return x.Children.forEach(e,n=>{x.isValidElement(n)&&t.push(n)}),t}const sc=({children:e,exitBeforeEnter:t,custom:n,initial:r=!0,onExitComplete:o,presenceAffectsLayout:i=!0,mode:a="sync"})=>{R1(!t,"Replace exitBeforeEnter with mode='wait'");const l=x.useMemo(()=>Tr(e),[e]),c=l.map(Zt),u=x.useRef(!0),f=x.useRef(l),d=ge(()=>new Map),[h,g]=x.useState(l),[w,C]=x.useState(l);D3(()=>{u.current=!1,f.current=l;for(let S=0;S<w.length;S++){const L=Zt(w[S]);c.includes(L)?d.delete(L):d.get(L)!==!0&&d.set(L,!1)}},[w,c.length,c.join("-")]);const y=[];if(l!==h){let S=[...l];for(let L=0;L<w.length;L++){const T=w[L],E=Zt(T);c.includes(E)||(S.splice(L,0,T),y.push(T))}a==="wait"&&y.length&&(S=y),C(Tr(S)),g(l);return}process.env.NODE_ENV!=="production"&&a==="wait"&&w.length>1&&console.warn(`You're attempting to animate multiple children within AnimatePresence, but its mode is set to "wait". This will lead to odd visual behaviour.`);const{forceRender:m}=x.useContext(k3);return s.jsx(s.Fragment,{children:w.map(S=>{const L=Zt(S),T=l===w||c.includes(L),E=()=>{if(d.has(L))d.set(L,!0);else return;let D=!0;d.forEach(k=>{k||(D=!1)}),D&&(m==null||m(),C(f.current),o&&o())};return s.jsx(oc,{isPresent:T,initial:!u.current||r?void 0:!1,custom:T?void 0:n,presenceAffectsLayout:i,mode:a,onExitComplete:T?void 0:E,children:S},L)})})};function E0(e){const t=ge(()=>Oe(e)),{isStatic:n}=x.useContext(c2);if(n){const[,r]=x.useState(e);x.useEffect(()=>t.on("change",r),[])}return t}function k0(e,t){const n=E0(t()),r=()=>n.set(t());return r(),D3(()=>{const o=()=>n1.preRender(r,!1,!0),i=e.map(a=>a.on("change",o));return()=>{i.forEach(a=>a()),F1(r)}}),n}const ac=e=>e&&typeof e=="object"&&e.mix,lc=e=>ac(e)?e.mix:void 0;function cc(...e){const t=!Array.isArray(e[0]),n=t?0:-1,r=e[0+n],o=e[1+n],i=e[2+n],a=e[3+n],l=H5(o,i,{mixer:lc(i[0]),...a});return t?l(r):l}function uc(e){rt.current=[],e();const t=k0(rt.current,e);return rt.current=void 0,t}function fc(e,t,n,r){if(typeof e=="function")return uc(e);const o=typeof t=="function"?t:cc(t,n,r);return Array.isArray(e)?Pr(e,o):Pr([e],([i])=>o(i))}function Pr(e,t){const n=ge(()=>[]);return k0(e,()=>{n.length=0;const r=e.length;for(let o=0;o<r;o++)n[o]=e[o].get();return t(n)})}function R0(e,t,n){var r;if(typeof e=="string"){let o=document;t&&(R1(!!t.current,"Scope provided, but no element detected."),o=t.current),n?((r=n[e])!==null&&r!==void 0||(n[e]=o.querySelectorAll(e)),e=n[e]):e=o.querySelectorAll(e)}else e instanceof Element&&(e=[e]);return Array.from(e||[])}function dc(e){return x.useEffect(()=>()=>e(),[])}function hc(e){return typeof e=="object"&&!Array.isArray(e)}function Cc(e){const t={presenceContext:null,props:{},visualState:{renderState:{transform:{},transformOrigin:{},style:{},vars:{},attrs:{}},latestValues:{}}},n=l0(e)?new H0(t):new P0(t);n.mount(e),ft.set(e,n)}function pc(e,t=100){const n=b3({keyframes:[0,t],...e}),r=Math.min(R5(n),J2);return{type:"keyframes",ease:o=>n.next(r*o).value/t,duration:_1(r)}}function Hr(e,t,n,r){var o;return typeof t=="number"?t:t.startsWith("-")||t.startsWith("+")?Math.max(0,e+parseFloat(t)):t==="<"?n:(o=r.get(t))!==null&&o!==void 0?o:e}const gc=(e,t,n)=>{const r=t-e;return((n-e)%r+r)%r+e};function mc(e,t){return L5(e)?e[gc(0,e.length,t)]:e}function vc(e,t,n){for(let r=0;r<e.length;r++){const o=e[r];o.at>t&&o.at<n&&(mt(e,o),r--)}}function yc(e,t,n,r,o,i){vc(e,o,i);for(let a=0;a<t.length;a++)e.push({value:t[a],at:c1(o,i,r[a]),easing:mc(n,a)})}function xc(e,t){return e.at===t.at?e.value===null?1:t.value===null?-1:0:e.at-t.at}const wc="easeInOut";function bc(e,{defaultTransition:t={},...n}={},r){const o=t.duration||.3,i=new Map,a=new Map,l={},c=new Map;let u=0,f=0,d=0;for(let h=0;h<e.length;h++){const g=e[h];if(typeof g=="string"){c.set(g,f);continue}else if(!Array.isArray(g)){c.set(g.name,Hr(f,g.at,u,c));continue}let[w,C,y={}]=g;y.at!==void 0&&(f=Hr(f,y.at,u,c));let m=0;const S=(L,T,E,D=0,k=0)=>{const H=Lc(L),{delay:A=0,times:_=k5(H),type:F="keyframes",...I}=T;let{ease:Z=t.ease||"easeOut",duration:$}=T;const J=typeof A=="function"?A(D,k):A,Y=H.length;if(Y<=2&&F==="spring"){let X=100;if(Y===2&&jc(H)){const o1=H[1]-H[0];X=Math.abs(o1)}const l1={...I};$!==void 0&&(l1.duration=k1($));const u1=pc(l1,X);Z=u1.ease,$=u1.duration}$??($=o);const N=f+J,K=N+$;_.length===1&&_[0]===0&&(_[1]=1);const q=_.length-H.length;q>0&&E5(_,q),H.length===1&&H.unshift(null),yc(E,H,Z,_,N,K),m=Math.max(J+$,m),d=Math.max(K,d)};if(m1(w)){const L=Er(w,a);S(C,y,kr("default",L))}else{const L=R0(w,r,l),T=L.length;for(let E=0;E<T;E++){C=C,y=y;const D=L[E],k=Er(D,a);for(const H in C)S(C[H],Mc(y,H),kr(H,k),E,T)}}u=f,f+=m}return a.forEach((h,g)=>{for(const w in h){const C=h[w];C.sort(xc);const y=[],m=[],S=[];for(let T=0;T<C.length;T++){const{at:E,value:D,easing:k}=C[T];y.push(D),m.push(Ae(0,d,E)),S.push(k||"easeOut")}m[0]!==0&&(m.unshift(0),y.unshift(y[0]),S.unshift(wc)),m[m.length-1]!==1&&(m.push(1),y.push(null)),i.has(g)||i.set(g,{keyframes:{},transition:{}});const L=i.get(g);L.keyframes[w]=y,L.transition[w]={...t,duration:d,ease:S,times:m,...n}}}),i}function Er(e,t){return!t.has(e)&&t.set(e,{}),t.get(e)}function kr(e,t){return t[e]||(t[e]=[]),t[e]}function Lc(e){return Array.isArray(e)?e:[e]}function Mc(e,t){return e[t]?{...e,...e[t]}:{...e}}const Vc=e=>typeof e=="number",jc=e=>e.every(Vc);function A0(e,t,n,r){const o=R0(e,r),i=o.length;R1(!!i,"No valid element provided.");const a=[];for(let l=0;l<i;l++){const c=o[l];ft.has(c)||Cc(c);const u=ft.get(c),f={...n};typeof f.delay=="function"&&(f.delay=f.delay(l,i)),a.push(...E3(u,{...t,transition:f},{}))}return new T3(a)}const Sc=e=>Array.isArray(e)&&Array.isArray(e[0]);function Tc(e,t,n){const r=[];return bc(e,t,n).forEach(({keyframes:i,transition:a},l)=>{let c;m1(l)?c=A3(l,i.default,a.default):c=A0(l,i,a),r.push(c)}),new T3(r)}const Pc=e=>{function t(n,r,o){let i;return Sc(n)?i=Tc(n,r,e):hc(r)?i=A0(n,r,o,e):i=A3(n,r,o),e&&e.animations.push(i),i}return t};function Hc(){const e=ge(()=>({current:null,animations:[]})),t=ge(()=>Pc(e));return dc(()=>{e.animations.forEach(n=>n.stop())}),[e,t]}function Ec(e,t){if(e==="first")return 0;{const n=t-1;return e==="last"?n:n/2}}function It(e=.1,{startDelay:t=0,from:n=0,ease:r}={}){return(o,i)=>{const a=typeof n=="number"?n:Ec(n,i),l=Math.abs(a-o);let c=e*l;if(r){const u=i*e;c=q2(r)(c/u)*u}return t+c}}const kc=({isMobile:e,isLogoHovered:t,maskUrl:n})=>{const[r]=x.useState("https://garden-bucket-cdn.s3.eu-central-1.amazonaws.com/flowers_bg.mp4"),[o,i]=x.useState("initial"),a=x.useRef(null),l=x.useRef(null),c=E0(45),u=fc(c,f=>`${f}% center`);return x.useEffect(()=>{if(t)i("visible");else{i("exit");const f=setTimeout(()=>{i("initial")},800);return()=>clearTimeout(f)}},[t]),s.jsxs(s.Fragment,{children:[s.jsx("video",{ref:a,src:r,autoPlay:!0,loop:!0,muted:!0,controls:!1,preload:"metadata",playsInline:!0,className:"gf-pointer-events-none gf-absolute gf-left-0 gf-top-0 gf-z-0 gf-h-full gf-w-screen gf-object-cover gf-opacity-0"},"video-flowers"),s.jsx(sc,{mode:"wait",children:s.jsx(U3.div,{animate:o,variants:{initial:{maskPosition:"45%",opacity:0},visible:{maskPosition:"10%",opacity:1},exit:{maskPosition:"-60%",opacity:0,transition:{duration:1.2,ease:[0,.77,.3,1],opacity:{delay:.4}}}},transition:{duration:1,ease:[.22,.68,.88,.96],delay:.15,opacity:{times:[0,1,1,1]}},style:{maskImage:`linear-gradient(black, black), url('${n}')`,maskComposite:"exclude",maskSize:e?"1200% 200%":"820% 600%",maskPosition:u},className:"gf-pointer-events-none gf-absolute gf-left-0 gf-top-0 gf-z-0 gf-h-full gf-w-full gf-overflow-hidden gf-opacity-0",children:s.jsx("video",{ref:l,src:r,autoPlay:!0,loop:!0,muted:!0,controls:!1,preload:"metadata",playsInline:!0,className:"gf-pointer-events-none gf-h-full gf-w-screen gf-object-cover",onCanPlayThrough:()=>{l.current&&l.current.play().catch(console.error)},onLoadStart:()=>{l.current&&l.current.play().catch(console.error)}},"video-flowers-animated")},"hovered")})]})},Rc=({children:e,triggerAnimation:t})=>{const n={animation:{scaleY:[0,1],opacity:[0,1],transition:{duration:.5,ease:Fe(.84,0,.16,1),opacity:{duration:.2,ease:"easeInOut"},once:!0}},idle:{scaleY:1,opacity:1}};return s.jsx(U3.div,{animate:t?"animation":"idle",variants:n,style:{transformOrigin:"bottom"},children:e})},Ac=({children:e})=>s.jsx(U3.div,{className:"gf-relative gf-inline-block gf-overflow-hidden gf-rounded-xl gf-w-[300px] before:gf-z-50 before:gf-absolute before:gf-bg-gradient-to-r before:gf-from-transparent before:gf-via-white/50 before:gf-via-50% before:gf-to-transparent before:gf-top-0 before:gf-left-0 before:gf-w-[168px] before:gf-h-full before:gf-animate-shine before:gf-opacity-0",children:e}),Ee=x.forwardRef(({value:e,isHovered:t,className:n,delay:r},o)=>{const i=e.split(""),[a,l]=Hc(),c=()=>{l([[".gf-letter",{y:"-100%"},{duration:.5,delay:r?It(.014,{startDelay:r}):It(.014),ease:[.76,0,.24,1]}]])},u=()=>{l([[".gf-letter",{y:"0%"},{duration:.5,delay:r?It(.014,{startDelay:r}):It(.014),ease:[.76,0,.24,1]}]])};return x.useImperativeHandle(o,()=>({startAnimation:c,stopAnimation:u})),x.useEffect(()=>{t?c():u()},[t]),x.useEffect(()=>{const f=()=>{t||c()},d=()=>{t||u()},h=a.current;if(h)return h.addEventListener("mouseenter",f),h.addEventListener("mouseleave",d),()=>{h.removeEventListener("mouseenter",f),h.removeEventListener("mouseleave",d)}},[a,t]),s.jsx("div",{ref:a,children:s.jsx("span",{className:V1("gf-flex gf-h-5 gf-items-center gf-justify-start gf-overflow-hidden gf-pr-0.5",n),children:i.map((f,d)=>s.jsx("span",{"data-letter":f,className:"gf-letter gf-relative gf-h-5 gf-whitespace-pre gf-leading-5 after:gf-absolute after:gf-left-0 after:gf-top-full after:gf-h-5 after:gf-leading-5 after:gf-content-[attr(data-letter)]",children:f},`${f}-${d}`))})})});Ee.displayName="RollingText";const Qe=({title:e,links:t,hoveredIndex:n,onHover:r,className:o="gf-flex gf-w-full gf-flex-col gf-gap-3 md:gf-w-fit",listClassName:i="gf-flex gf-flex-col gf-gap-1",isRoutes:a=!1})=>s.jsxs("div",{className:o,children:[s.jsx(M1,{size:"h4",weight:"medium",className:"gf-flex gf-items-center gf-gap-2 gf-transition-all gf-duration-500 gf-ease-in-out gf-text-inherit",children:s.jsx("span",{children:e})}),s.jsx("ul",{className:i,children:Object.values(t).map((l,c)=>l.link&&s.jsx("li",{className:a?"gf-w-fit":"",onMouseEnter:()=>{r==null||r(c)},onMouseLeave:()=>{r==null||r(null)},children:s.jsxs(M1,{as:"a",href:l.link,target:"_blank",size:"h4",weight:"regular",className:`gf-cursor-pointer gf-transition-all gf-duration-500 gf-ease-in-out gf-text-inherit ${a?"gf-flex gf-w-fit gf-gap-0.5 gf-items-end gf-transition-colors gf-duration-500 gf-ease-in-out":""}`,children:[l.inputAsset&&s.jsx(Ee,{value:l.inputAsset||"",isHovered:n===c}),a&&l.inputChain&&s.jsx(Ee,{delay:.1,className:"gf-text-xs gf-italic gf-translate-y-[0.6px]",value:l.inputChain,isHovered:n===c}),s.jsx(Ee,{delay:.15,value:l.title,isHovered:n===c}),a&&l.chain&&s.jsx(Ee,{delay:.3,className:"gf-text-xs gf-italic gf-translate-y-[0.6px] -gf-translate-x-[2px]",value:l.chain,isHovered:n===c})]})},c))})]}),Oc="data:image/svg+xml,%3csvg%20width='3956'%20height='906'%20viewBox='0%200%203956%20906'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3crect%20width='3956'%20height='906'%20fill='url(%23paint0_linear_579_2)'/%3e%3cdefs%3e%3clinearGradient%20id='paint0_linear_579_2'%20x1='1465.5'%20y1='731.406'%20x2='2604.91'%20y2='227.235'%20gradientUnits='userSpaceOnUse'%3e%3cstop%20stop-opacity='0'/%3e%3cstop%20offset='0.115385'/%3e%3cstop%20offset='0.88'/%3e%3cstop%20offset='1'%20stop-opacity='0'/%3e%3c/linearGradient%3e%3c/defs%3e%3c/svg%3e",Dc=({className:e,network:t="mainnet",maskUrl:n=Oc,...r})=>{const[o,i]=x.useState(!1),[a,l]=x.useState(null),c=Fr(),u=t&&t==="testnet"?"https://testnet.garden.finance":"https://app.garden.finance",f="https://garden.finance",d={Products:{swap:{title:"Swap",link:t&&t==="testnet"?`${u}/?input-chain=bitcoin_testnet&input-asset=BTC`:`${u}/?input-chain=bitcoin&input-asset=BTC`,isExternal:!0,icon:s.jsx(B6,{})},stake:{title:"Stake",link:t&&t==="testnet"?void 0:`${u}/stake`,isExternal:!0,icon:s.jsx(K6,{})},explorer:{title:"Explorer",link:t&&t==="testnet"?"https://testnet-explorer.garden.finance/":"https://explorer.garden.finance/",isExternal:!0,icon:s.jsx(Y6,{})}},Resources:{blog:{title:"Blog",link:`${f}/blog`,isExternal:!0,icon:s.jsx(F6,{})},brandkit:{title:"Media kit",link:"https://drive.google.com/drive/folders/1ZRAxs6jwhO6vLkadb9XOG7XqOQ4XLr0t?usp=sharing",isExternal:!0,icon:s.jsx(U6,{})},analytics:{title:"Analytics",link:"https://dune.com/garden_finance/gardenfinance",isExternal:!0,icon:null},Audits:{title:"Audits",link:"https://github.com/gardenfi/audits",isExternal:!0,icon:null}},Developers:{docs:{title:"Docs",link:"https://docs.garden.finance/",isExternal:!0,icon:s.jsx(z6,{})},api:{title:"API",link:"https://docs.garden.finance/developers/api/overview",isExternal:!0,icon:s.jsx(N6,{})},sdk:{title:"SDK",link:"https://docs.garden.finance/developers/sdk/overview",isExternal:!0,icon:s.jsx(G6,{})}}},h={btcToSol:{title:"BTC to SOL",link:f+"/routes/bridge-btc-to-sol",chain:"Solana",isExternal:!0},btcToEth:{title:"BTC to ETH",link:f+"/routes/bridge-btc-to-eth",chain:"Ethereum",isExternal:!0},btcToUsdc:{title:"BTC to USDC",link:f+"/routes/bridge-btc-to-usdc-arbitrum",chain:"Arbitrum",isExternal:!0},btctoUsdcEth:{title:"BTC to USDC",link:f+"/routes/bridge-btc-to-usdc-ethereum",chain:"Ethereum",isExternal:!0},btcToWbtc:{title:"BTC to WBTC",link:f+"/routes/bridge-btc-to-wbtc-ethereum",chain:"Ethereum",isExternal:!0},btcTocbBtc:{title:"BTC to cbBtc",link:f+"/routes/bridge-btc-to-cbbtc-base",chain:"Base",isExternal:!0},btcToSui:{title:"BTC to SUI",link:f+"/routes/bridge-btc-to-sui",chain:"Sui",isExternal:!0},btcToWbtcUni:{title:"BTC to WBTC",link:f+"/routes/bridge-btc-to-wbtc-unichain",chain:"Unichain",isExternal:!0},btcToBnb:{title:"BTC to BNB",link:f+"/routes/bridge-btc-to-bnb",chain:"BNB Chain",isExternal:!0},cbBtcBaseTocbBtcSolana:{title:" to cbBtc",link:f+"/routes/bridge-cbbtc-base-to-cbbtc-solana",inputAsset:"cbBtc",inputChain:"Base",chain:"Solana",isExternal:!0},usdcBnbToBtc:{title:" to BTC",link:f+"/routes/bridge-usdc-bnb-to-btc",inputAsset:"USDC",inputChain:"BNB Chain",chain:"Bitcoin",isExternal:!0}},g={discord:"https://discord.gg/7feudTFMXB",x:"https://x.com/gardenfi"},{Products:w,Resources:C,Developers:y}=d;return s.jsxs("footer",{className:V1("gf-z-10 gf-relative gf-mx-auto gf-flex gf-w-full gf-flex-col gf-items-center gf-justify-center gf-bg-white gf-px-6 gf-pb-10 gf-pt-20 md:gf-px-10",e,o?"gf-text-white":"gf-text-dark-grey"),...r,children:[s.jsxs("div",{className:"gf-z-30 gf-w-full gf-max-w-screen-2xl",children:[s.jsxs("div",{className:"gf-mx-auto gf-flex gf-w-full gf-flex-col gf-items-start gf-justify-between gf-gap-8",children:[s.jsxs("div",{className:"gf-flex gf-w-full gf-items-center gf-justify-between gf-gap-6",children:[s.jsx(q6,{onMouseEnter:()=>i(!0),onMouseLeave:()=>i(!1),className:"gf-h-8 gf-w-8 gf-cursor-pointer gf-duration-500 gf-ease-in-out",onClick:m=>m.preventDefault()}),s.jsxs("div",{className:"gf-flex gf-items-center gf-gap-4",children:[s.jsx(X6,{onClick:()=>{c&&window.open(g.x,"_blank")},className:"gf-cursor-pointer gf-duration-500 gf-ease-in-out"}),s.jsx(W6,{onClick:()=>{c&&window.open(g.discord,"_blank")},className:"gf-cursor-pointer gf-duration-500 gf-ease-in-out"})]})]}),s.jsxs("div",{className:"gf-flex gf-w-full gf-max-w-screen-2xl gf-flex-col-reverse gf-items-start gf-justify-between gf-gap-6 md:gf-flex-row",children:[s.jsxs("div",{className:"gf-flex gf-w-full gf-flex-col sm:gf-flex-row gf-gap-6 gf-items-start gf-justify-between sm:gf-gap-3 md:gf-w-fit",children:[s.jsx("div",{className:"gf-w-full md:gf-hidden",children:s.jsx(Qe,{title:"Resources",links:C,className:"gf-flex gf-w-full gf-flex-col gf-gap-3",listClassName:"gf-flex gf-flex-col gf-gap-2"})}),s.jsx("div",{className:"gf-flex gf-w-full gf-max-w-[400px] gf-flex-col gf-gap-3 md:gf-w-fit",children:s.jsx(Qe,{title:"Routes",links:h,hoveredIndex:a,onHover:l,className:"gf-flex gf-w-full gf-max-w-[400px] gf-flex-col gf-gap-3 md:gf-w-fit",listClassName:"gf-grid gf-w-full gf-grid-cols-1 gf-gap-1 gf-gap-x-8 md:gf-grid-cols-2 md:gf-grid-rows-2",isRoutes:!0})})]}),s.jsxs("div",{className:"gf-flex gf-w-full gf-items-start gf-justify-between gf-gap-3 md:gf-w-fit md:gf-gap-16",children:[s.jsx(Qe,{title:"Products",links:w,className:"gf-flex gf-w-full gf-flex-col gf-gap-3 md:gf-w-fit",listClassName:"gf-flex gf-w-fit gf-flex-col gf-gap-1 gf-gap-x-6"}),s.jsx(Qe,{title:"Developers",links:y,className:"gf-flex gf-w-full gf-flex-col gf-gap-3 md:gf-w-fit",listClassName:"gf-flex gf-flex-col gf-gap-1"}),s.jsx("div",{className:"gf-hidden md:gf-flex",children:s.jsx(Qe,{title:"Resources",links:C,className:"gf-flex gf-w-full gf-flex-col gf-gap-3",listClassName:"gf-flex gf-flex-col gf-gap-1"})})]})]})]}),s.jsxs("div",{className:"gf-relative gf-mt-6 gf-flex gf-w-full gf-max-w-screen-2xl gf-items-center gf-justify-center",children:[s.jsx("div",{className:`gf-absolute gf-left-0 gf-top-0 gf-h-[1px] gf-w-full gf-transition-all gf-duration-500 gf-ease-in-out ${o?"gf-bg-white":"gf-bg-dark-grey"}`}),s.jsxs("div",{className:"gf-z-10 gf-my-6 gf-flex gf-w-full gf-items-center gf-justify-between gf-gap-4",children:[s.jsx("div",{className:"gf-flex gf-w-fit gf-items-center gf-justify-start gf-gap-6",children:s.jsxs(M1,{size:"h5",className:"gf-flex gf-items-center gf-gap-1 gf-transition-all gf-duration-500 gf-ease-in-out gf-text-inherit",weight:"regular",children:[s.jsx($6,{}),s.jsx("span",{children:"Garden"}),s.jsx("span",{children:"2025"})]})}),s.jsxs("div",{className:"gf-flex gf-w-fit gf-items-center gf-justify-end gf-gap-6",children:[s.jsx(M1,{size:"h5",as:"a",className:"gf-cursor-pointer gf-underline-offset-2 gf-transition-all gf-duration-500 gf-ease-in-out gf-hover:underline gf-text-inherit",weight:"regular",href:"/privacy.pdf",target:"_blank",children:"Privacy Policy"}),s.jsx(M1,{as:"a",size:"h5",className:"gf-cursor-pointer gf-underline-offset-2 gf-transition-all gf-duration-500 gf-ease-in-out gf-hover:underline gf-text-inherit",weight:"regular",href:"/terms.pdf",target:"_blank",children:"Terms of Service"})]})]})]})]}),s.jsx(kc,{isMobile:!1,isLogoHovered:o,maskUrl:n})]})};var O0={exports:{}};(()=>{var e={181:(o,i,a)=>{var l=/^\s+|\s+$/g,c=/^[-+]0x[0-9a-f]+$/i,u=/^0b[01]+$/i,f=/^0o[0-7]+$/i,d=parseInt,h=typeof a.g=="object"&&a.g&&a.g.Object===Object&&a.g,g=typeof self=="object"&&self&&self.Object===Object&&self,w=h||g||Function("return this")(),C=Object.prototype.toString,y=Math.max,m=Math.min,S=function(){return w.Date.now()};function L(E){var D=typeof E;return!!E&&(D=="object"||D=="function")}function T(E){if(typeof E=="number")return E;if(function(H){return typeof H=="symbol"||function(A){return!!A&&typeof A=="object"}(H)&&C.call(H)=="[object Symbol]"}(E))return NaN;if(L(E)){var D=typeof E.valueOf=="function"?E.valueOf():E;E=L(D)?D+"":D}if(typeof E!="string")return E===0?E:+E;E=E.replace(l,"");var k=u.test(E);return k||f.test(E)?d(E.slice(2),k?2:8):c.test(E)?NaN:+E}o.exports=function(E,D,k){var H,A,_,F,I,Z,$=0,J=!1,Y=!1,N=!0;if(typeof E!="function")throw new TypeError("Expected a function");function K(o1){var i1=H,v1=A;return H=A=void 0,$=o1,F=E.apply(v1,i1)}function q(o1){var i1=o1-Z;return Z===void 0||i1>=D||i1<0||Y&&o1-$>=_}function X(){var o1=S();if(q(o1))return l1(o1);I=setTimeout(X,function(i1){var v1=D-(i1-Z);return Y?m(v1,_-(i1-$)):v1}(o1))}function l1(o1){return I=void 0,N&&H?K(o1):(H=A=void 0,F)}function u1(){var o1=S(),i1=q(o1);if(H=arguments,A=this,Z=o1,i1){if(I===void 0)return function(v1){return $=v1,I=setTimeout(X,D),J?K(v1):F}(Z);if(Y)return I=setTimeout(X,D),K(Z)}return I===void 0&&(I=setTimeout(X,D)),F}return D=T(D)||0,L(k)&&(J=!!k.leading,_=(Y="maxWait"in k)?y(T(k.maxWait)||0,D):_,N="trailing"in k?!!k.trailing:N),u1.cancel=function(){I!==void 0&&clearTimeout(I),$=0,H=Z=A=I=void 0},u1.flush=function(){return I===void 0?F:l1(S())},u1}},858:(o,i,a)=>{var l="Expected a function",c=NaN,u="[object Symbol]",f=/^\s+|\s+$/g,d=/^[-+]0x[0-9a-f]+$/i,h=/^0b[01]+$/i,g=/^0o[0-7]+$/i,w=parseInt,C=typeof a.g=="object"&&a.g&&a.g.Object===Object&&a.g,y=typeof self=="object"&&self&&self.Object===Object&&self,m=C||y||Function("return this")(),S=Object.prototype.toString,L=Math.max,T=Math.min,E=function(){return m.Date.now()};function D(H){var A=typeof H;return!!H&&(A=="object"||A=="function")}function k(H){if(typeof H=="number")return H;if(function(F){return typeof F=="symbol"||function(I){return!!I&&typeof I=="object"}(F)&&S.call(F)==u}(H))return c;if(D(H)){var A=typeof H.valueOf=="function"?H.valueOf():H;H=D(A)?A+"":A}if(typeof H!="string")return H===0?H:+H;H=H.replace(f,"");var _=h.test(H);return _||g.test(H)?w(H.slice(2),_?2:8):d.test(H)?c:+H}o.exports=function(H,A,_){var F=!0,I=!0;if(typeof H!="function")throw new TypeError(l);return D(_)&&(F="leading"in _?!!_.leading:F,I="trailing"in _?!!_.trailing:I),function(Z,$,J){var Y,N,K,q,X,l1,u1=0,o1=!1,i1=!1,v1=!0;if(typeof Z!="function")throw new TypeError(l);function U1(d1){var L1=Y,y1=N;return Y=N=void 0,u1=d1,q=Z.apply(y1,L1)}function O1(d1){var L1=d1-l1;return l1===void 0||L1>=$||L1<0||i1&&d1-u1>=K}function j1(){var d1=E();if(O1(d1))return H1(d1);X=setTimeout(j1,function(L1){var y1=$-(L1-l1);return i1?T(y1,K-(L1-u1)):y1}(d1))}function H1(d1){return X=void 0,v1&&Y?U1(d1):(Y=N=void 0,q)}function E1(){var d1=E(),L1=O1(d1);if(Y=arguments,N=this,l1=d1,L1){if(X===void 0)return function(y1){return u1=y1,X=setTimeout(j1,$),o1?U1(y1):q}(l1);if(i1)return X=setTimeout(j1,$),U1(l1)}return X===void 0&&(X=setTimeout(j1,$)),q}return $=k($)||0,D(J)&&(o1=!!J.leading,K=(i1="maxWait"in J)?L(k(J.maxWait)||0,$):K,v1="trailing"in J?!!J.trailing:v1),E1.cancel=function(){X!==void 0&&clearTimeout(X),u1=0,Y=l1=N=X=void 0},E1.flush=function(){return X===void 0?q:H1(E())},E1}(H,A,{leading:F,maxWait:A,trailing:I})}},694:(o,i,a)=>{var l=a(925);function c(){}function u(){}u.resetWarningCache=c,o.exports=function(){function f(g,w,C,y,m,S){if(S!==l){var L=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw L.name="Invariant Violation",L}}function d(){return f}f.isRequired=f;var h={array:f,bigint:f,bool:f,func:f,number:f,object:f,string:f,symbol:f,any:f,arrayOf:d,element:f,elementType:f,instanceOf:d,node:f,objectOf:d,oneOf:d,oneOfType:d,shape:d,exact:d,checkPropTypes:u,resetWarningCache:c};return h.PropTypes=h,h}},556:(o,i,a)=>{o.exports=a(694)()},925:o=>{o.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"}},t={};function n(o){var i=t[o];if(i!==void 0)return i.exports;var a=t[o]={exports:{}};return e[o](a,a.exports,n),a.exports}n.n=o=>{var i=o&&o.__esModule?()=>o.default:()=>o;return n.d(i,{a:i}),i},n.d=(o,i)=>{for(var a in i)n.o(i,a)&&!n.o(o,a)&&Object.defineProperty(o,a,{enumerable:!0,get:i[a]})},n.g=function(){if(typeof globalThis=="object")return globalThis;try{return this||new Function("return this")()}catch{if(typeof window=="object")return window}}(),n.o=(o,i)=>Object.prototype.hasOwnProperty.call(o,i),n.r=o=>{typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(o,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(o,"__esModule",{value:!0})};var r={};(()=>{n.r(r),n.d(r,{LazyLoadComponent:()=>$e,LazyLoadImage:()=>h2,trackWindowScroll:()=>o1});const o=x;var i=n.n(o),a=n(556);function l(){return typeof window<"u"&&"IntersectionObserver"in window&&"isIntersecting"in window.IntersectionObserverEntry.prototype}function c(P){return c=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(p){return typeof p}:function(p){return p&&typeof Symbol=="function"&&p.constructor===Symbol&&p!==Symbol.prototype?"symbol":typeof p},c(P)}function u(P,p){var V=Object.keys(P);if(Object.getOwnPropertySymbols){var b=Object.getOwnPropertySymbols(P);p&&(b=b.filter(function(v){return Object.getOwnPropertyDescriptor(P,v).enumerable})),V.push.apply(V,b)}return V}function f(P,p,V){return(p=h(p))in P?Object.defineProperty(P,p,{value:V,enumerable:!0,configurable:!0,writable:!0}):P[p]=V,P}function d(P,p){for(var V=0;V<p.length;V++){var b=p[V];b.enumerable=b.enumerable||!1,b.configurable=!0,"value"in b&&(b.writable=!0),Object.defineProperty(P,h(b.key),b)}}function h(P){var p=function(V,b){if(c(V)!="object"||!V)return V;var v=V[Symbol.toPrimitive];if(v!==void 0){var M=v.call(V,"string");if(c(M)!="object")return M;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(V)}(P);return c(p)=="symbol"?p:p+""}function g(P,p,V){return p=C(p),function(b,v){if(v&&(c(v)=="object"||typeof v=="function"))return v;if(v!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return function(M){if(M===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return M}(b)}(P,w()?Reflect.construct(p,V||[],C(P).constructor):p.apply(P,V))}function w(){try{var P=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(w=function(){return!!P})()}function C(P){return C=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(p){return p.__proto__||Object.getPrototypeOf(p)},C(P)}function y(P,p){return y=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(V,b){return V.__proto__=b,V},y(P,p)}var m=function(P){P.forEach(function(p){p.isIntersecting&&p.target.onVisible()})},S={},L=function(P){function p(v){var M;if(function(O,B){if(!(O instanceof B))throw new TypeError("Cannot call a class as a function")}(this,p),(M=g(this,p,[v])).supportsObserver=!v.scrollPosition&&v.useIntersectionObserver&&l(),M.supportsObserver){var R=v.threshold;M.observer=function(O){return S[O]=S[O]||new IntersectionObserver(m,{rootMargin:O+"px"}),S[O]}(R)}return M}return function(v,M){if(typeof M!="function"&&M!==null)throw new TypeError("Super expression must either be null or a function");v.prototype=Object.create(M&&M.prototype,{constructor:{value:v,writable:!0,configurable:!0}}),Object.defineProperty(v,"prototype",{writable:!1}),M&&y(v,M)}(p,P),V=p,b=[{key:"componentDidMount",value:function(){this.placeholder&&this.observer&&(this.placeholder.onVisible=this.props.onVisible,this.observer.observe(this.placeholder)),this.supportsObserver||this.updateVisibility()}},{key:"componentWillUnmount",value:function(){this.observer&&this.placeholder&&this.observer.unobserve(this.placeholder)}},{key:"componentDidUpdate",value:function(){this.supportsObserver||this.updateVisibility()}},{key:"getPlaceholderBoundingBox",value:function(){var v=arguments.length>0&&arguments[0]!==void 0?arguments[0]:this.props.scrollPosition,M=this.placeholder.getBoundingClientRect(),R=this.placeholder.style,O=parseInt(R.getPropertyValue("margin-left"),10)||0,B=parseInt(R.getPropertyValue("margin-top"),10)||0;return{bottom:v.y+M.bottom+B,left:v.x+M.left+O,right:v.x+M.right+O,top:v.y+M.top+B}}},{key:"isPlaceholderInViewport",value:function(){if(typeof window>"u"||!this.placeholder)return!1;var v=this.props,M=v.scrollPosition,R=v.threshold,O=this.getPlaceholderBoundingBox(M),B=M.y+window.innerHeight,W=M.x,t1=M.x+window.innerWidth,Q=M.y;return Q-R<=O.bottom&&B+R>=O.top&&W-R<=O.right&&t1+R>=O.left}},{key:"updateVisibility",value:function(){this.isPlaceholderInViewport()&&this.props.onVisible()}},{key:"render",value:function(){var v=this,M=this.props,R=M.className,O=M.height,B=M.placeholder,W=M.style,t1=M.width;if(B&&typeof B.type!="function")return i().cloneElement(B,{ref:function(e1){return v.placeholder=e1}});var Q=function(e1){for(var s1=1;s1<arguments.length;s1++){var r1=arguments[s1]!=null?arguments[s1]:{};s1%2?u(Object(r1),!0).forEach(function(h1){f(e1,h1,r1[h1])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e1,Object.getOwnPropertyDescriptors(r1)):u(Object(r1)).forEach(function(h1){Object.defineProperty(e1,h1,Object.getOwnPropertyDescriptor(r1,h1))})}return e1}({display:"inline-block"},W);return t1!==void 0&&(Q.width=t1),O!==void 0&&(Q.height=O),i().createElement("span",{className:R,ref:function(e1){return v.placeholder=e1},style:Q},B)}}],b&&d(V.prototype,b),Object.defineProperty(V,"prototype",{writable:!1}),V;var V,b}(i().Component);L.propTypes={onVisible:a.PropTypes.func.isRequired,className:a.PropTypes.string,height:a.PropTypes.oneOfType([a.PropTypes.number,a.PropTypes.string]),placeholder:a.PropTypes.element,threshold:a.PropTypes.number,useIntersectionObserver:a.PropTypes.bool,scrollPosition:a.PropTypes.shape({x:a.PropTypes.number.isRequired,y:a.PropTypes.number.isRequired}),width:a.PropTypes.oneOfType([a.PropTypes.number,a.PropTypes.string])},L.defaultProps={className:"",placeholder:null,threshold:100,useIntersectionObserver:!0};const T=L;var E=n(181),D=n.n(E),k=n(858),H=n.n(k),A=function(P){var p=getComputedStyle(P,null);return p.getPropertyValue("overflow")+p.getPropertyValue("overflow-y")+p.getPropertyValue("overflow-x")};const _=function(P){if(!(P instanceof HTMLElement))return window;for(var p=P;p&&p instanceof HTMLElement;){if(/(scroll|auto)/.test(A(p)))return p;p=p.parentNode}return window};function F(P){return F=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(p){return typeof p}:function(p){return p&&typeof Symbol=="function"&&p.constructor===Symbol&&p!==Symbol.prototype?"symbol":typeof p},F(P)}var I=["delayMethod","delayTime"];function Z(){return Z=Object.assign?Object.assign.bind():function(P){for(var p=1;p<arguments.length;p++){var V=arguments[p];for(var b in V)({}).hasOwnProperty.call(V,b)&&(P[b]=V[b])}return P},Z.apply(null,arguments)}function $(P,p){for(var V=0;V<p.length;V++){var b=p[V];b.enumerable=b.enumerable||!1,b.configurable=!0,"value"in b&&(b.writable=!0),Object.defineProperty(P,J(b.key),b)}}function J(P){var p=function(V,b){if(F(V)!="object"||!V)return V;var v=V[Symbol.toPrimitive];if(v!==void 0){var M=v.call(V,"string");if(F(M)!="object")return M;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(V)}(P);return F(p)=="symbol"?p:p+""}function Y(P,p,V){return p=q(p),N(P,K()?Reflect.construct(p,V||[],q(P).constructor):p.apply(P,V))}function N(P,p){if(p&&(F(p)=="object"||typeof p=="function"))return p;if(p!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return function(V){if(V===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return V}(P)}function K(){try{var P=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(K=function(){return!!P})()}function q(P){return q=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(p){return p.__proto__||Object.getPrototypeOf(p)},q(P)}function X(P,p){return X=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(V,b){return V.__proto__=b,V},X(P,p)}var l1=function(){return typeof window>"u"?0:window.scrollX||window.pageXOffset},u1=function(){return typeof window>"u"?0:window.scrollY||window.pageYOffset};const o1=function(P){var p=function(V){function b(R){var O;if(function(W,t1){if(!(W instanceof t1))throw new TypeError("Cannot call a class as a function")}(this,b),(O=Y(this,b,[R])).useIntersectionObserver=R.useIntersectionObserver&&l(),O.useIntersectionObserver)return N(O);var B=O.onChangeScroll.bind(O);return R.delayMethod==="debounce"?O.delayedScroll=D()(B,R.delayTime):R.delayMethod==="throttle"&&(O.delayedScroll=H()(B,R.delayTime)),O.state={scrollPosition:{x:l1(),y:u1()}},O.baseComponentRef=i().createRef(),O}return function(R,O){if(typeof O!="function"&&O!==null)throw new TypeError("Super expression must either be null or a function");R.prototype=Object.create(O&&O.prototype,{constructor:{value:R,writable:!0,configurable:!0}}),Object.defineProperty(R,"prototype",{writable:!1}),O&&X(R,O)}(b,V),v=b,M=[{key:"componentDidMount",value:function(){this.addListeners()}},{key:"componentWillUnmount",value:function(){this.removeListeners()}},{key:"componentDidUpdate",value:function(){typeof window>"u"||this.useIntersectionObserver||_(this.baseComponentRef.current)!==this.scrollElement&&(this.removeListeners(),this.addListeners())}},{key:"addListeners",value:function(){typeof window>"u"||this.useIntersectionObserver||(this.scrollElement=_(this.baseComponentRef.current),this.scrollElement.addEventListener("scroll",this.delayedScroll,{passive:!0}),window.addEventListener("resize",this.delayedScroll,{passive:!0}),this.scrollElement!==window&&window.addEventListener("scroll",this.delayedScroll,{passive:!0}))}},{key:"removeListeners",value:function(){typeof window>"u"||this.useIntersectionObserver||(this.scrollElement.removeEventListener("scroll",this.delayedScroll),window.removeEventListener("resize",this.delayedScroll),this.scrollElement!==window&&window.removeEventListener("scroll",this.delayedScroll))}},{key:"onChangeScroll",value:function(){this.useIntersectionObserver||this.setState({scrollPosition:{x:l1(),y:u1()}})}},{key:"render",value:function(){var R=this.props,O=(R.delayMethod,R.delayTime,function(W,t1){if(W==null)return{};var Q,e1,s1=function(h1,be){if(h1==null)return{};var $3={};for(var Mt in h1)if({}.hasOwnProperty.call(h1,Mt)){if(be.indexOf(Mt)>=0)continue;$3[Mt]=h1[Mt]}return $3}(W,t1);if(Object.getOwnPropertySymbols){var r1=Object.getOwnPropertySymbols(W);for(e1=0;e1<r1.length;e1++)Q=r1[e1],t1.indexOf(Q)>=0||{}.propertyIsEnumerable.call(W,Q)&&(s1[Q]=W[Q])}return s1}(R,I)),B=this.useIntersectionObserver?null:this.state.scrollPosition;return i().createElement(P,Z({forwardRef:this.baseComponentRef,scrollPosition:B},O))}}],M&&$(v.prototype,M),Object.defineProperty(v,"prototype",{writable:!1}),v;var v,M}(i().Component);return p.propTypes={delayMethod:a.PropTypes.oneOf(["debounce","throttle"]),delayTime:a.PropTypes.number,useIntersectionObserver:a.PropTypes.bool},p.defaultProps={delayMethod:"throttle",delayTime:300,useIntersectionObserver:!0},p};function i1(P){return i1=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(p){return typeof p}:function(p){return p&&typeof Symbol=="function"&&p.constructor===Symbol&&p!==Symbol.prototype?"symbol":typeof p},i1(P)}function v1(P,p){for(var V=0;V<p.length;V++){var b=p[V];b.enumerable=b.enumerable||!1,b.configurable=!0,"value"in b&&(b.writable=!0),Object.defineProperty(P,U1(b.key),b)}}function U1(P){var p=function(V,b){if(i1(V)!="object"||!V)return V;var v=V[Symbol.toPrimitive];if(v!==void 0){var M=v.call(V,"string");if(i1(M)!="object")return M;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(V)}(P);return i1(p)=="symbol"?p:p+""}function O1(P,p,V){return p=H1(p),function(b,v){if(v&&(i1(v)=="object"||typeof v=="function"))return v;if(v!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return function(M){if(M===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return M}(b)}(P,j1()?Reflect.construct(p,V||[],H1(P).constructor):p.apply(P,V))}function j1(){try{var P=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(j1=function(){return!!P})()}function H1(P){return H1=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(p){return p.__proto__||Object.getPrototypeOf(p)},H1(P)}function E1(P,p){return E1=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(V,b){return V.__proto__=b,V},E1(P,p)}var d1=function(P){function p(v){return function(M,R){if(!(M instanceof R))throw new TypeError("Cannot call a class as a function")}(this,p),O1(this,p,[v])}return function(v,M){if(typeof M!="function"&&M!==null)throw new TypeError("Super expression must either be null or a function");v.prototype=Object.create(M&&M.prototype,{constructor:{value:v,writable:!0,configurable:!0}}),Object.defineProperty(v,"prototype",{writable:!1}),M&&E1(v,M)}(p,P),V=p,(b=[{key:"render",value:function(){return i().createElement(T,this.props)}}])&&v1(V.prototype,b),Object.defineProperty(V,"prototype",{writable:!1}),V;var V,b}(i().Component);const L1=o1(d1);function y1(P){return y1=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(p){return typeof p}:function(p){return p&&typeof Symbol=="function"&&p.constructor===Symbol&&p!==Symbol.prototype?"symbol":typeof p},y1(P)}function z(P,p){for(var V=0;V<p.length;V++){var b=p[V];b.enumerable=b.enumerable||!1,b.configurable=!0,"value"in b&&(b.writable=!0),Object.defineProperty(P,vt(b.key),b)}}function vt(P){var p=function(V,b){if(y1(V)!="object"||!V)return V;var v=V[Symbol.toPrimitive];if(v!==void 0){var M=v.call(V,"string");if(y1(M)!="object")return M;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(V)}(P);return y1(p)=="symbol"?p:p+""}function yt(P,p,V){return p=ve(p),function(b,v){if(v&&(y1(v)=="object"||typeof v=="function"))return v;if(v!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return function(M){if(M===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return M}(b)}(P,me()?Reflect.construct(p,V||[],ve(P).constructor):p.apply(P,V))}function me(){try{var P=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(me=function(){return!!P})()}function ve(P){return ve=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(p){return p.__proto__||Object.getPrototypeOf(p)},ve(P)}function Ue(P,p){return Ue=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(V,b){return V.__proto__=b,V},Ue(P,p)}var D1=function(P){function p(v){var M;(function(t1,Q){if(!(t1 instanceof Q))throw new TypeError("Cannot call a class as a function")})(this,p),M=yt(this,p,[v]);var R=v.afterLoad,O=v.beforeLoad,B=v.scrollPosition,W=v.visibleByDefault;return M.state={visible:W},W&&(O(),R()),M.onVisible=M.onVisible.bind(M),M.isScrollTracked=!!(B&&Number.isFinite(B.x)&&B.x>=0&&Number.isFinite(B.y)&&B.y>=0),M}return function(v,M){if(typeof M!="function"&&M!==null)throw new TypeError("Super expression must either be null or a function");v.prototype=Object.create(M&&M.prototype,{constructor:{value:v,writable:!0,configurable:!0}}),Object.defineProperty(v,"prototype",{writable:!1}),M&&Ue(v,M)}(p,P),V=p,(b=[{key:"componentDidUpdate",value:function(v,M){M.visible!==this.state.visible&&this.props.afterLoad()}},{key:"onVisible",value:function(){this.props.beforeLoad(),this.setState({visible:!0})}},{key:"render",value:function(){if(this.state.visible)return this.props.children;var v=this.props,M=v.className,R=v.delayMethod,O=v.delayTime,B=v.height,W=v.placeholder,t1=v.scrollPosition,Q=v.style,e1=v.threshold,s1=v.useIntersectionObserver,r1=v.width;return this.isScrollTracked||s1&&l()?i().createElement(T,{className:M,height:B,onVisible:this.onVisible,placeholder:W,scrollPosition:t1,style:Q,threshold:e1,useIntersectionObserver:s1,width:r1}):i().createElement(L1,{className:M,delayMethod:R,delayTime:O,height:B,onVisible:this.onVisible,placeholder:W,style:Q,threshold:e1,width:r1})}}])&&z(V.prototype,b),Object.defineProperty(V,"prototype",{writable:!1}),V;var V,b}(i().Component);D1.propTypes={afterLoad:a.PropTypes.func,beforeLoad:a.PropTypes.func,useIntersectionObserver:a.PropTypes.bool,visibleByDefault:a.PropTypes.bool},D1.defaultProps={afterLoad:function(){return{}},beforeLoad:function(){return{}},useIntersectionObserver:!0,visibleByDefault:!1};const $e=D1;function X1(P){return X1=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(p){return typeof p}:function(p){return p&&typeof Symbol=="function"&&p.constructor===Symbol&&p!==Symbol.prototype?"symbol":typeof p},X1(P)}var ae=["afterLoad","beforeLoad","delayMethod","delayTime","effect","placeholder","placeholderSrc","scrollPosition","threshold","useIntersectionObserver","visibleByDefault","wrapperClassName","wrapperProps"];function xt(P,p){var V=Object.keys(P);if(Object.getOwnPropertySymbols){var b=Object.getOwnPropertySymbols(P);p&&(b=b.filter(function(v){return Object.getOwnPropertyDescriptor(P,v).enumerable})),V.push.apply(V,b)}return V}function We(P){for(var p=1;p<arguments.length;p++){var V=arguments[p]!=null?arguments[p]:{};p%2?xt(Object(V),!0).forEach(function(b){d2(P,b,V[b])}):Object.getOwnPropertyDescriptors?Object.defineProperties(P,Object.getOwnPropertyDescriptors(V)):xt(Object(V)).forEach(function(b){Object.defineProperty(P,b,Object.getOwnPropertyDescriptor(V,b))})}return P}function d2(P,p,V){return(p=wt(p))in P?Object.defineProperty(P,p,{value:V,enumerable:!0,configurable:!0,writable:!0}):P[p]=V,P}function ye(){return ye=Object.assign?Object.assign.bind():function(P){for(var p=1;p<arguments.length;p++){var V=arguments[p];for(var b in V)({}).hasOwnProperty.call(V,b)&&(P[b]=V[b])}return P},ye.apply(null,arguments)}function xe(P,p){for(var V=0;V<p.length;V++){var b=p[V];b.enumerable=b.enumerable||!1,b.configurable=!0,"value"in b&&(b.writable=!0),Object.defineProperty(P,wt(b.key),b)}}function wt(P){var p=function(V,b){if(X1(V)!="object"||!V)return V;var v=V[Symbol.toPrimitive];if(v!==void 0){var M=v.call(V,"string");if(X1(M)!="object")return M;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(V)}(P);return X1(p)=="symbol"?p:p+""}function bt(P,p,V){return p=Z1(p),function(b,v){if(v&&(X1(v)=="object"||typeof v=="function"))return v;if(v!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return function(M){if(M===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return M}(b)}(P,Lt()?Reflect.construct(p,V||[],Z1(P).constructor):p.apply(P,V))}function Lt(){try{var P=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(Lt=function(){return!!P})()}function Z1(P){return Z1=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(p){return p.__proto__||Object.getPrototypeOf(p)},Z1(P)}function we(P,p){return we=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(V,b){return V.__proto__=b,V},we(P,p)}var ze=function(P){function p(v){var M;return function(R,O){if(!(R instanceof O))throw new TypeError("Cannot call a class as a function")}(this,p),(M=bt(this,p,[v])).state={loaded:!1},M}return function(v,M){if(typeof M!="function"&&M!==null)throw new TypeError("Super expression must either be null or a function");v.prototype=Object.create(M&&M.prototype,{constructor:{value:v,writable:!0,configurable:!0}}),Object.defineProperty(v,"prototype",{writable:!1}),M&&we(v,M)}(p,P),V=p,b=[{key:"onImageLoad",value:function(){var v=this;return this.state.loaded?null:function(M){v.props.onLoad(M),v.props.afterLoad(),v.setState({loaded:!0})}}},{key:"getImg",value:function(){var v=this.props,M=(v.afterLoad,v.beforeLoad,v.delayMethod,v.delayTime,v.effect,v.placeholder,v.placeholderSrc,v.scrollPosition,v.threshold,v.useIntersectionObserver,v.visibleByDefault,v.wrapperClassName,v.wrapperProps,function(R,O){if(R==null)return{};var B,W,t1=function(e1,s1){if(e1==null)return{};var r1={};for(var h1 in e1)if({}.hasOwnProperty.call(e1,h1)){if(s1.indexOf(h1)>=0)continue;r1[h1]=e1[h1]}return r1}(R,O);if(Object.getOwnPropertySymbols){var Q=Object.getOwnPropertySymbols(R);for(W=0;W<Q.length;W++)B=Q[W],O.indexOf(B)>=0||{}.propertyIsEnumerable.call(R,B)&&(t1[B]=R[B])}return t1}(v,ae));return i().createElement("img",ye({},M,{onLoad:this.onImageLoad()}))}},{key:"getLazyLoadImage",value:function(){var v=this.props,M=v.beforeLoad,R=v.className,O=v.delayMethod,B=v.delayTime,W=v.height,t1=v.placeholder,Q=v.scrollPosition,e1=v.style,s1=v.threshold,r1=v.useIntersectionObserver,h1=v.visibleByDefault,be=v.width;return i().createElement($e,{beforeLoad:M,className:R,delayMethod:O,delayTime:B,height:W,placeholder:t1,scrollPosition:Q,style:e1,threshold:s1,useIntersectionObserver:r1,visibleByDefault:h1,width:be},this.getImg())}},{key:"getWrappedLazyLoadImage",value:function(v){var M=this.props,R=M.effect,O=M.height,B=M.placeholderSrc,W=M.width,t1=M.wrapperClassName,Q=M.wrapperProps,e1=this.state.loaded,s1=e1?" lazy-load-image-loaded":"",r1=e1||!B?{}:{backgroundImage:"url(".concat(B,")"),backgroundSize:"100% 100%"};return i().createElement("span",ye({className:t1+" lazy-load-image-background "+R+s1,style:We(We({},r1),{},{color:"transparent",display:"inline-block",height:O,width:W})},Q),v)}},{key:"render",value:function(){var v=this.props,M=v.effect,R=v.placeholderSrc,O=v.visibleByDefault,B=v.wrapperClassName,W=v.wrapperProps,t1=this.getLazyLoadImage();return(M||R)&&!O||B||W?this.getWrappedLazyLoadImage(t1):t1}}],b&&xe(V.prototype,b),Object.defineProperty(V,"prototype",{writable:!1}),V;var V,b}(i().Component);ze.propTypes={onLoad:a.PropTypes.func,afterLoad:a.PropTypes.func,beforeLoad:a.PropTypes.func,delayMethod:a.PropTypes.string,delayTime:a.PropTypes.number,effect:a.PropTypes.string,placeholderSrc:a.PropTypes.string,threshold:a.PropTypes.number,useIntersectionObserver:a.PropTypes.bool,visibleByDefault:a.PropTypes.bool,wrapperClassName:a.PropTypes.string,wrapperProps:a.PropTypes.object},ze.defaultProps={onLoad:function(){},afterLoad:function(){return{}},beforeLoad:function(){return{}},delayMethod:"throttle",delayTime:300,effect:"",placeholderSrc:null,threshold:100,useIntersectionObserver:!0,visibleByDefault:!1,wrapperClassName:""};const h2=ze})(),O0.exports=r})();var Zc=O0.exports;const _2="data:image/svg+xml,%3csvg%20width='384'%20height='216'%20viewBox='0%200%20384%20216'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20clip-path='url(%23clip0_11648_9381)'%3e%3crect%20width='384'%20height='216'%20fill='%2359BB99'/%3e%3ccircle%20cx='-7'%20cy='184'%20r='87'%20fill='url(%23paint0_radial_11648_9381)'/%3e%3ccircle%20cx='368'%20cy='33'%20r='87'%20fill='url(%23paint1_radial_11648_9381)'/%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M136%2078C141.959%2078%20146.986%2081.9942%20148.548%2087.4516C154.006%2089.014%20158%2094.0405%20158%2099.9999C158%20105.959%20154.006%20110.986%20148.548%20112.548C146.986%20118.006%20141.959%20122%20136%20122C130.04%20122%20125.014%20118.006%20123.452%20112.548C117.994%20110.986%20114%20105.959%20114%2099.9999C114%2094.0406%20117.994%2089.0142%20123.452%2087.4517C125.014%2081.9943%20130.04%2078%20136%2078Z'%20fill='%23F7CFDB'/%3e%3cpath%20d='M139.954%2095.3616C139.923%2097.884%20135.962%2097.5421%20134.7%2097.5267L134.755%2093.063C136.016%2093.0784%20139.985%2092.7277%20139.954%2095.3616ZM140.906%20102.316C140.874%20105.09%20136.128%20104.716%20134.611%20104.698L134.688%2099.7811C136.2%2099.8017%20140.958%2099.4226%20140.922%20102.32L140.906%20102.316ZM144.148%2094.4178C143.928%2091.7661%20141.653%2090.8548%20138.771%2090.5621L138.816%2086.8898L136.578%2086.8608L136.533%2090.4382C135.948%2090.4302%20135.347%2090.4347%20134.75%2090.4401L134.775%2086.845L132.543%2086.8093L132.499%2090.4777C132.013%2090.4841%20131.538%2090.4848%20131.075%2090.4809L127.993%2090.4406L127.964%2092.8313C127.964%2092.8313%20129.621%2092.8205%20129.584%2092.8518C130.21%2092.7802%20130.777%2093.2229%20130.86%2093.8471L130.822%2098.0175C130.901%2098.0184%20130.979%2098.0242%20131.057%2098.035L130.822%2098.034L130.737%20103.891C130.7%20104.329%20130.317%20104.655%20129.88%20104.621C129.914%20104.63%20128.256%20104.6%20128.256%20104.6L127.778%20107.263L130.688%20107.298L132.289%20107.314L132.246%20111.024L134.48%20111.052L134.512%20107.397C135.106%20107.419%20135.702%20107.43%20136.296%20107.436L136.25%20111.096L138.484%20111.124L138.535%20107.416C142.302%20107.247%20144.938%20106.332%20145.307%20102.809C145.601%2099.9679%20144.29%2098.6862%20142.168%2098.1466C143.474%2097.504%20144.303%2096.3533%20144.132%2094.4136L144.148%2094.4178Z'%20fill='%23DB6A93'/%3e%3cpath%20d='M170%2098.8577C170%2094.4242%20172.859%2090.9544%20177.421%2090.9544C179.959%2090.9544%20181.919%2092.111%20182.915%2094.0708L183.14%2091.4042H185.839V106.472C185.839%20111.42%20182.787%20114.568%20177.968%20114.568C173.695%20114.568%20170.771%20112.158%20170.193%20108.175H173.213C173.598%20110.488%20175.333%20111.837%20177.968%20111.837C180.923%20111.837%20182.851%20109.91%20182.851%20106.922V103.773C181.823%20105.604%20179.767%20106.697%20177.293%20106.697C172.827%20106.697%20170%20103.259%20170%2098.8577ZM173.02%2098.7935C173.02%20101.749%20174.851%20104.062%20177.807%20104.062C180.859%20104.062%20182.722%20101.878%20182.722%2098.7935C182.722%2095.7735%20180.923%2093.5889%20177.839%2093.5889C174.819%2093.5889%20173.02%2095.902%20173.02%2098.7935Z'%20fill='white'/%3e%3cpath%20d='M194.791%20107.5C191.418%20107.5%20189.426%20105.604%20189.426%20102.745C189.426%2099.8537%20191.579%2098.0545%20195.273%2097.7654L200.221%2097.3799V96.9301C200.221%2094.2957%20198.647%2093.364%20196.526%2093.364C193.988%2093.364%20192.542%2094.4884%20192.542%2096.3839H189.908C189.908%2093.1069%20192.607%2090.9544%20196.655%2090.9544C200.542%2090.9544%20203.176%2093.0106%20203.176%2097.2514V107.114H200.606L200.285%20104.576C199.482%20106.376%20197.329%20107.5%20194.791%20107.5ZM195.659%20105.155C198.518%20105.155%20200.253%20103.291%20200.253%20100.336V99.5003L196.237%2099.8216C193.57%20100.079%20192.478%20101.107%20192.478%20102.649C192.478%20104.319%20193.699%20105.155%20195.659%20105.155Z'%20fill='white'/%3e%3cpath%20d='M216.354%2091.2757V94.0386H215.005C212.146%2094.0386%20210.379%2095.7735%20210.379%2098.7935V107.114H207.359V91.4363H210.186L210.379%2093.8137C211.021%2092.1753%20212.596%2091.0829%20214.748%2091.0829C215.294%2091.0829%20215.744%2091.1472%20216.354%2091.2757Z'%20fill='white'/%3e%3cpath%20d='M224.919%20107.5C220.357%20107.5%20217.594%20104.094%20217.594%2099.3075C217.594%2094.4884%20220.389%2090.9544%20225.048%2090.9544C227.457%2090.9544%20229.481%2092.0146%20230.541%2093.9423V83.4688H233.529V107.114H230.831L230.574%20104.255C229.545%20106.408%20227.425%20107.5%20224.919%20107.5ZM225.53%20104.769C228.614%20104.769%20230.509%20102.488%20230.509%2099.2111C230.509%2095.9984%20228.614%2093.6852%20225.53%2093.6852C222.445%2093.6852%20220.646%2095.9984%20220.646%2099.2111C220.646%20102.456%20222.445%20104.769%20225.53%20104.769Z'%20fill='white'/%3e%3cpath%20d='M244.665%20107.5C240.039%20107.5%20236.858%20104.159%20236.858%2099.2754C236.858%2094.3599%20239.974%2090.9544%20244.536%2090.9544C249.002%2090.9544%20251.926%2094.0386%20251.926%2098.6971V99.8216L239.782%2099.8537C240.006%20103.163%20241.741%20104.994%20244.729%20104.994C247.074%20104.994%20248.617%20104.03%20249.131%20102.231H251.958C251.187%20105.604%20248.552%20107.5%20244.665%20107.5ZM244.536%2093.4925C241.902%2093.4925%20240.231%2095.0667%20239.846%2097.8297H248.906C248.906%2095.2273%20247.203%2093.4925%20244.536%2093.4925Z'%20fill='white'/%3e%3cpath%20d='M258.319%20107.114H255.299V91.4042H258.03L258.351%2093.8137C259.347%2092.0146%20261.339%2090.9544%20263.555%2090.9544C267.7%2090.9544%20269.595%2093.4925%20269.595%2097.5084V107.114H266.575V98.1831C266.575%2095.0025%20265.098%2093.7174%20262.784%2093.7174C259.957%2093.7174%20258.319%2095.7414%20258.319%2098.7935V107.114Z'%20fill='white'/%3e%3c/g%3e%3cdefs%3e%3cradialGradient%20id='paint0_radial_11648_9381'%20cx='0'%20cy='0'%20r='1'%20gradientUnits='userSpaceOnUse'%20gradientTransform='translate(-7%20184)%20rotate(90)%20scale(87)'%3e%3cstop%20offset='0.380208'%20stop-color='%239BC8FF'/%3e%3cstop%20offset='1'%20stop-color='%239BC8FF'%20stop-opacity='0.2'/%3e%3c/radialGradient%3e%3cradialGradient%20id='paint1_radial_11648_9381'%20cx='0'%20cy='0'%20r='1'%20gradientUnits='userSpaceOnUse'%20gradientTransform='translate(368%2033)%20rotate(90)%20scale(87)'%3e%3cstop%20offset='0.380208'%20stop-color='%239BC8FF'/%3e%3cstop%20offset='1'%20stop-color='%239BC8FF'%20stop-opacity='0.2'/%3e%3c/radialGradient%3e%3cclipPath%20id='clip0_11648_9381'%3e%3crect%20width='384'%20height='216'%20fill='white'/%3e%3c/clipPath%3e%3c/defs%3e%3c/svg%3e",Ic=({thumbnail:e,category:t,date:n,title:r,className:o,thumbnailClassName:i})=>{const[a,l]=x.useState(!1),[c,u]=x.useState(e??_2);x.useEffect(()=>{u(e??_2)},[e]);const f=()=>{u(_2)};return s.jsx(ht,{level:"semi-dark",className:"gf-rounded-2xl h-full",children:s.jsxs("div",{className:V1(o,"gf-overflow-hidden gf-rounded-2xl"),children:[s.jsx("div",{className:V1(i,`${a?"":"gf-filter gf-blur-md"}`),children:s.jsx(Zc.LazyLoadImage,{alt:r,effect:"blur",src:c,onLoad:()=>l(!0),onError:f})}),s.jsxs("div",{className:"gf-px-4 gf-pt-4 gf-pb-5 gf-md:px-5 gf-md:pb-11",children:[s.jsxs("div",{className:"gf-flex gf-justify-between gf-mb-3",children:[s.jsx(M1,{size:"h5",weight:"medium",className:"gf-bg-rose gf-px-3 gf-py-1 gf-rounded-full",children:t}),s.jsx(M1,{size:"h5",weight:"medium",className:"gf-px-3 gf-py-1",children:n})]}),s.jsx(M1,{size:"h3",weight:"bold",children:r})]})]})})},_c=Ze(["gf-w-full gf-max-w-96 gf-p-4 gf-pb-5 md:gf-p-6 md:gf-pb-8 gf-rounded-2xl"],{variants:{variant:{locked:"gf-bg-white gf-bg-opacity-25",default:"gf-bg-white gf-bg-opacity-50"}},defaultVariants:{variant:"locked"}}),Bc=({variant:e,title:t,description:n,chipContent:r,logo:o})=>s.jsxs("div",{className:V1(_c({variant:e})),children:[s.jsxs("div",{className:"gf-flex gf-justify-between gf-items-center gf-mb-4",children:[s.jsxs(I1,{className:"gf-cursor-pointer gf-px-2 gf-py-1",children:[s.jsx(I1.Logo,{children:o}),t,s.jsx(I1.CheckBox,{checked:!1})]}),e==="default"?s.jsx(O6,{className:"gf-cursor-pointer",height:"20px",width:"20px"}):s.jsx(A6,{className:"gf-cursor-pointer",height:"20px",width:"20px"})]}),s.jsx("div",{className:"gf-mb-3 md:gf-mb-8",children:s.jsx(M1,{size:"h3",weight:"medium",children:n})}),s.jsxs("div",{className:"gf-flex gf-justify-end gf-space-x-2",children:[s.jsxs(I1,{className:"gf-pl-3 gf-pr-2 gf-py-1",children:[s.jsx(M1,{size:"h4",weight:"medium",children:"Quest Access"}),s.jsx(I1.CheckBox,{checked:!1})]}),s.jsxs(I1,{className:"gf-pl-3 gf-pr-2 gf-py-1",children:[s.jsx(M1,{size:"h4",weight:"medium",children:r}),s.jsx(I1.CheckBox,{checked:!1})]})]})]});exports.APIIcon=N6;exports.AddIcon=o4;exports.ArbitrumLogo=u7;exports.ArrowDownwardIcon=e4;exports.ArrowEastIcon=k4;exports.ArrowLeftIcon=n4;exports.ArrowNorthEastIcon=i4;exports.ArrowNorthWestIcon=s4;exports.ArrowRightIcon=r4;exports.ArrowSouthEastIcon=a4;exports.ArrowSouthWestIcon=l4;exports.ArrowSyncIcon=X4;exports.ArrowUpwardIcon=t4;exports.BTCLogo=f7;exports.BlogCard=Ic;exports.BlogIcon=F6;exports.BottomSheet=Qs;exports.BrandKitIcon=U6;exports.Button=Eo;exports.Camelot=E7;exports.CancelIcon=K4;exports.CatalogLogo=d7;exports.ChainflipIcon=F4;exports.CheckBox=B7;exports.CheckCircleIcon=R4;exports.CheckIcon=c4;exports.Checked=I6;exports.Chip=I1;exports.ClientOnly=dt;exports.ClockIcon=u4;exports.CloseIcon=f4;exports.CodeBlockIcon=q4;exports.Coinbase=h7;exports.CompareArrowsIcon=O4;exports.ConsoleIcon=Q4;exports.Container=Js;exports.CopyIcon=d4;exports.CopyrightsIcon=$6;exports.DLCBTC=T7;exports.Debridge=H7;exports.DeleteIcon=W4;exports.DiscordIcon=W6;exports.Dodo=O7;exports.DollarChipIcon=s7;exports.DraftIcon=z6;exports.EditIcon=h4;exports.EncryptedIcon=r7;exports.EthereumLogo=C7;exports.ExchangeIcon=C4;exports.FeesIcon=H4;exports.FingerprintIcon=A4;exports.Footer=Dc;exports.GMX=k7;exports.GMXLogo=x7;exports.GardenExplorer=p7;exports.GardenFullLogo=g7;exports.GardenIcon=q6;exports.GardenIconOutline=I7;exports.GardenLogo=m7;exports.GardenLogoText=v7;exports.GardenStrokeIcon=y7;exports.GasStationIcon=G4;exports.GiftBoxIcon=a7;exports.GradientScroll=W7;exports.HorizontalSwap=i7;exports.HubIcon=Y4;exports.InfinityIcon=_4;exports.InfoBadge=U7;exports.InfoIcon=p4;exports.KeyboardDownIcon=R6;exports.KeyboardLeftIcon=g4;exports.KeyboardRightIcon=m4;exports.KeyboardUpIcon=v4;exports.LanguageIcon=y4;exports.LinkIcon=x4;exports.LockIcon=A6;exports.LogoutIcon=w4;exports.MenuIcon=b4;exports.MinusIcon=D4;exports.Modal=Xr;exports.NFTIcon=_7;exports.Opacity=ht;exports.OpenInFullIcon=O6;exports.OpenInNewIcon=E4;exports.OtterSecIcon=J4;exports.PageInfoIcon=L4;exports.PancakeSwap=A7;exports.PasskeyIcon=N4;exports.PhantomIcon=w7;exports.PlusIcon=Z4;exports.PolygonLogo=b7;exports.QuestCard=Bc;exports.Radiant=Z7;exports.RadiantLogo=L7;exports.RadioCheckedIcon=D6;exports.RadioUncheckedIcon=Z6;exports.RaiseHandIcon=l7;exports.ReferralIcon=P4;exports.RelayLinkIcon=U4;exports.RemoveIcon=M4;exports.RollingText=Ee;exports.Rotate360Icon=n7;exports.RoutingIcon=o7;exports.RowInfoIcon=c7;exports.SDKIcon=G6;exports.ScaleY=Rc;exports.SearchIcon=S4;exports.SearchIconThin=Y6;exports.Share=I4;exports.Shine=Ac;exports.Sidebar=vi;exports.Solv=R7;exports.StakeIcon=K6;exports.StarIcon=V4;exports.SwapHorizontalIcon=B6;exports.SwellBTC=S7;exports.ThorswapIcon=$4;exports.TimerIcon=T4;exports.TokenInfo=$7;exports.TokenNetworkLogos=Q6;exports.TraderJoe=P7;exports.TrailOfBits=M7;exports.TrustWallet=V7;exports.Typography=M1;exports.Unchecked=_6;exports.Vertex=D7;exports.WalletConnect=j7;exports.WalletIcon=j4;exports.WalletIconRose=B4;exports.WarningIcon=z4;exports.XIcon=X6;exports.XSolidIcon=e7;exports.ZellicIcon=t7;
|
package/dist/ui.es.js
CHANGED
|
@@ -3487,26 +3487,26 @@ const ho = $e(
|
|
|
3487
3487
|
open: !1
|
|
3488
3488
|
}
|
|
3489
3489
|
}
|
|
3490
|
-
), Co = ({ open: e, onClose: t,
|
|
3491
|
-
const [
|
|
3490
|
+
), Co = ({ open: e, onClose: t, disableScrollLock: n, children: r }) => {
|
|
3491
|
+
const [i, o] = M1(!1);
|
|
3492
3492
|
S1(() => {
|
|
3493
|
-
e &&
|
|
3493
|
+
e && o(!0);
|
|
3494
3494
|
}, [e]);
|
|
3495
|
-
const
|
|
3496
|
-
t && (
|
|
3495
|
+
const s = (l) => {
|
|
3496
|
+
t && (l.stopPropagation(), t());
|
|
3497
3497
|
};
|
|
3498
|
-
return /* @__PURE__ */ a(i2, { children: /* @__PURE__ */ a(a2, { removeScrollBar: !1, enabled: !!e, children: /* @__PURE__ */ a(
|
|
3498
|
+
return /* @__PURE__ */ a(i2, { children: /* @__PURE__ */ a(a2, { removeScrollBar: !1, enabled: !!e && !n, children: /* @__PURE__ */ a(
|
|
3499
3499
|
"div",
|
|
3500
3500
|
{
|
|
3501
3501
|
className: `gf-bg-dark-grey gf-bg-opacity-40 ${po({
|
|
3502
3502
|
open: e
|
|
3503
|
-
})} ${
|
|
3504
|
-
onClick:
|
|
3503
|
+
})} ${i ? e ? "gf-animate-fade-in " : "gf-animate-fade-out" : ""}`,
|
|
3504
|
+
onClick: s,
|
|
3505
3505
|
children: /* @__PURE__ */ a(
|
|
3506
3506
|
"div",
|
|
3507
3507
|
{
|
|
3508
3508
|
className: `gf-transform gf-transition-transform ${e ? "gf-animate-scale-in" : "gf-animate-scale-out"}`,
|
|
3509
|
-
children:
|
|
3509
|
+
children: r
|
|
3510
3510
|
}
|
|
3511
3511
|
)
|
|
3512
3512
|
}
|
|
@@ -14311,7 +14311,7 @@ const ot = ({
|
|
|
14311
14311
|
}
|
|
14312
14312
|
}, g = {
|
|
14313
14313
|
discord: "https://discord.gg/7feudTFMXB",
|
|
14314
|
-
x: "https://x.com/
|
|
14314
|
+
x: "https://x.com/gardenfi"
|
|
14315
14315
|
}, { Products: w, Resources: p, Developers: y } = f;
|
|
14316
14316
|
return /* @__PURE__ */ E(
|
|
14317
14317
|
"footer",
|