(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,16769,e=>{"use strict";e.s(["default",()=>c],16769);var t=e.i(67720),n=e.i(36022),r=e.i(81212);e.i(21288);var a=e.i(68208),i=e.i(88443);let o=(0,i.default)("ArrowDown",[["path",{d:"M12 5v14",key:"s699le"}],["path",{d:"m19 12-7 7-7-7",key:"1idqje"}]]),s=(0,i.default)("ArrowUp",[["path",{d:"m5 12 7-7 7 7",key:"hav0vg"}],["path",{d:"M12 19V5",key:"x0mq9r"}]]),l=(0,i.default)("Moon",[["path",{d:"M12 3a6 6 0 0 0 9 9 9 9 0 1 1-9-9Z",key:"a7tn18"}]]),u=(0,i.default)("Sun",[["circle",{cx:"12",cy:"12",r:"4",key:"4exip2"}],["path",{d:"M12 2v2",key:"tus03m"}],["path",{d:"M12 20v2",key:"1lh1kg"}],["path",{d:"m4.93 4.93 1.41 1.41",key:"149t6j"}],["path",{d:"m17.66 17.66 1.41 1.41",key:"ptbguv"}],["path",{d:"M2 12h2",key:"1t8f8n"}],["path",{d:"M20 12h2",key:"1q8mjw"}],["path",{d:"m6.34 17.66-1.41 1.41",key:"1m8zz5"}],["path",{d:"m19.07 4.93-1.41 1.41",key:"1shlcs"}]]);function c(e){let{className:i,...c}=e,{themeState:d,setThemeState:f}=(0,a.themeStore)();return(0,t.jsxs)("div",{className:(0,r.cn)("fixed right-4 bottom-4 z-30 flex flex-col gap-4",i),"data-component":"Floater",...c,children:[(0,t.jsx)(n.default,{className:"rounded-full",onClick:()=>{window.scroll({behavior:"smooth",top:0})},size:"icon",children:(0,t.jsx)(s,{})}),(0,t.jsx)(n.default,{className:"rounded-full",onClick:()=>{window.scroll({behavior:"smooth",top:9999999})},size:"icon",children:(0,t.jsx)(o,{})}),(0,t.jsxs)(n.default,{className:"rounded-full",onClick:()=>{f(e=>"light"===e?"dark":"light")},size:"icon",children:["light"===d&&(0,t.jsx)(l,{}),"dark"===d&&(0,t.jsx)(u,{})]})]})}},82851,e=>{"use strict";e.s(["default",()=>a]);var t=e.i(67720);e.i(21288);var n=e.i(68208),r=e.i(14593);function a(e){let{children:a}=e,{themeState:i,setThemeState:o}=(0,n.themeStore)();return(0,r.useLayoutEffect)(()=>{let e=localStorage.getItem("theme");("light"===e||"dark"===e)&&o(e)},[o]),(0,r.useLayoutEffect)(()=>{document.body.classList.remove("light","dark"),document.body.classList.add(i)},[i]),(0,t.jsx)(t.Fragment,{children:a})}},75294,e=>{"use strict";e.s(["default",()=>tp],75294);var t,n,r=e.i(67720),a=e.i(27159),i=e.i(85345),o=e.i(36022),s=e.i(14593),l=e.i(78896),u=e.i(45349),c=e.i(14600),d=e.i(92909),f=e.i(23511),h=e.i(42029),p=e.i(69995),g=e.i(29072),m="focusScope.autoFocusOnMount",y="focusScope.autoFocusOnUnmount",b={bubbles:!1,cancelable:!0},w=s.forwardRef((e,t)=>{let{loop:n=!1,trapped:a=!1,onMountAutoFocus:i,onUnmountAutoFocus:o,...l}=e,[c,d]=s.useState(null),f=(0,g.useCallbackRef)(i),h=(0,g.useCallbackRef)(o),w=s.useRef(null),O=(0,u.useComposedRefs)(t,e=>d(e)),k=s.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;s.useEffect(()=>{if(a){let e=function(e){if(k.paused||!c)return;let t=e.target;c.contains(t)?w.current=t:j(w.current,{select:!0})},t=function(e){if(k.paused||!c)return;let t=e.relatedTarget;null!==t&&(c.contains(t)||j(w.current,{select:!0}))};document.addEventListener("focusin",e),document.addEventListener("focusout",t);let n=new MutationObserver(function(e){if(document.activeElement===document.body)for(let t of e)t.removedNodes.length>0&&j(c)});return c&&n.observe(c,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",e),document.removeEventListener("focusout",t),n.disconnect()}}},[a,c,k.paused]),s.useEffect(()=>{if(c){E.add(k);let e=document.activeElement;if(!c.contains(e)){let t=new CustomEvent(m,b);c.addEventListener(m,f),c.dispatchEvent(t),t.defaultPrevented||(function(e){let{select:t=!1}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=document.activeElement;for(let r of e)if(j(r,{select:t}),document.activeElement!==n)return}(_(c).filter(e=>"A"!==e.tagName),{select:!0}),document.activeElement===e&&j(c))}return()=>{c.removeEventListener(m,f),setTimeout(()=>{let t=new CustomEvent(y,b);c.addEventListener(y,h),c.dispatchEvent(t),t.defaultPrevented||j(null!=e?e:document.body,{select:!0}),c.removeEventListener(y,h),E.remove(k)},0)}}},[c,f,h,k]);let M=s.useCallback(e=>{if(!n&&!a||k.paused)return;let t="Tab"===e.key&&!e.altKey&&!e.ctrlKey&&!e.metaKey,r=document.activeElement;if(t&&r){let t=e.currentTarget,[a,i]=function(e){let t=_(e);return[x(t,e),x(t.reverse(),e)]}(t);a&&i?e.shiftKey||r!==i?e.shiftKey&&r===a&&(e.preventDefault(),n&&j(i,{select:!0})):(e.preventDefault(),n&&j(a,{select:!0})):r===t&&e.preventDefault()}},[n,a,k.paused]);return(0,r.jsx)(p.Primitive.div,{tabIndex:-1,...l,ref:O,onKeyDown:M})});function _(e){let t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:e=>{let t="INPUT"===e.tagName&&"hidden"===e.type;return e.disabled||e.hidden||t?NodeFilter.FILTER_SKIP:e.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function x(e,t){for(let n of e)if(!function(e,t){let{upTo:n}=t;if("hidden"===getComputedStyle(e).visibility)return!0;for(;e&&(void 0===n||e!==n);){if("none"===getComputedStyle(e).display)return!0;e=e.parentElement}return!1}(n,{upTo:t}))return n}function j(e){let{select:t=!1}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(e&&e.focus){var n;let r=document.activeElement;e.focus({preventScroll:!0}),e!==r&&(n=e)instanceof HTMLInputElement&&"select"in n&&t&&e.select()}}w.displayName="FocusScope";var E=function(){let e=[];return{add(t){let n=e[0];t!==n&&(null==n||n.pause()),(e=O(e,t)).unshift(t)},remove(t){var n;null==(n=(e=O(e,t))[0])||n.resume()}}}();function O(e,t){let n=[...e],r=n.indexOf(t);return -1!==r&&n.splice(r,1),n}var k=e.i(60215),M=e.i(68768),P=0;function S(){let e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.outline="none",e.style.opacity="0",e.style.position="fixed",e.style.pointerEvents="none",e}var C=function(){return(C=Object.assign||function(e){for(var t,n=1,r=arguments.length;nt.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var a=0,r=Object.getOwnPropertySymbols(e);at.indexOf(r[a])&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]]);return n}Object.create;Object.create;var R=("function"==typeof SuppressedError&&SuppressedError,"right-scroll-bar-position"),N="width-before-scroll-bar";function I(e,t){return"function"==typeof e?e(t):e&&(e.current=t),e}var T="undefined"!=typeof window?s.useLayoutEffect:s.useEffect,D=new WeakMap;function F(e){return e}var L=function(e){void 0===e&&(e={});var t,n,r,a=(void 0===t&&(t=F),n=[],r=!1,{read:function(){if(r)throw Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return n.length?n[n.length-1]:null},useMedium:function(e){var a=t(e,r);return n.push(a),function(){n=n.filter(function(e){return e!==a})}},assignSyncMedium:function(e){for(r=!0;n.length;){var t=n;n=[],t.forEach(e)}n={push:function(t){return e(t)},filter:function(){return n}}},assignMedium:function(e){r=!0;var t=[];if(n.length){var a=n;n=[],a.forEach(e),t=n}var i=function(){var n=t;t=[],n.forEach(e)},o=function(){return Promise.resolve().then(i)};o(),n={push:function(e){t.push(e),o()},filter:function(e){return t=t.filter(e),n}}}});return a.options=C({async:!0,ssr:!1},e),a}(),Q=function(){},W=s.forwardRef(function(e,t){var n,r,a,i,o=s.useRef(null),l=s.useState({onScrollCapture:Q,onWheelCapture:Q,onTouchMoveCapture:Q}),u=l[0],c=l[1],d=e.forwardProps,f=e.children,h=e.className,p=e.removeScrollBar,g=e.enabled,m=e.shards,y=e.sideCar,b=e.noIsolation,w=e.inert,_=e.allowPinchZoom,x=e.as,j=e.gapMode,E=A(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noIsolation","inert","allowPinchZoom","as","gapMode"]),O=(n=[o,t],r=function(e){return n.forEach(function(t){return I(t,e)})},(a=(0,s.useState)(function(){return{value:null,callback:r,facade:{get current(){return a.value},set current(value){var e=a.value;e!==value&&(a.value=value,a.callback(value,e))}}}})[0]).callback=r,i=a.facade,T(function(){var e=D.get(i);if(e){var t=new Set(e),r=new Set(n),a=i.current;t.forEach(function(e){r.has(e)||I(e,null)}),r.forEach(function(e){t.has(e)||I(e,a)})}D.set(i,n)},[n]),i),k=C(C({},E),u);return s.createElement(s.Fragment,null,g&&s.createElement(y,{sideCar:L,removeScrollBar:p,shards:m,noIsolation:b,inert:w,setCallbacks:c,allowPinchZoom:!!_,lockRef:o,gapMode:j}),d?s.cloneElement(s.Children.only(f),C(C({},k),{ref:O})):s.createElement(void 0===x?"div":x,C({},k,{className:h,ref:O}),f))});W.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},W.classNames={fullWidth:N,zeroRight:R};var q=function(e){var t=e.sideCar,n=A(e,["sideCar"]);if(!t)throw Error("Sidecar: please provide `sideCar` property to import the right car");var r=t.read();if(!r)throw Error("Sidecar medium not found");return s.createElement(r,C({},n))};q.isSideCarExport=!0;var G=function(){var e=0,t=null;return{add:function(r){if(0==e&&(t=function(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=n||("undefined"!=typeof __webpack_nonce__?__webpack_nonce__:void 0);return t&&e.setAttribute("nonce",t),e}())){var a,i;(a=t).styleSheet?a.styleSheet.cssText=r:a.appendChild(document.createTextNode(r)),i=t,(document.head||document.getElementsByTagName("head")[0]).appendChild(i)}e++},remove:function(){--e||!t||(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},z=function(){var e=G();return function(t,n){s.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])}},H=function(){var e=z();return function(t){return e(t.styles,t.dynamic),null}},K={left:0,top:0,right:0,gap:0},B=function(e){return parseInt(e||"",10)||0},U=function(e){var t=window.getComputedStyle(document.body),n=t["padding"===e?"paddingLeft":"marginLeft"],r=t["padding"===e?"paddingTop":"marginTop"],a=t["padding"===e?"paddingRight":"marginRight"];return[B(n),B(r),B(a)]},V=function(e){if(void 0===e&&(e="margin"),"undefined"==typeof window)return K;var t=U(e),n=document.documentElement.clientWidth,r=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,r-n+t[2]-t[0])}},X=H(),Z="data-scroll-locked",Y=function(e,t,n,r){var a=e.left,i=e.top,o=e.right,s=e.gap;return void 0===n&&(n="margin"),"\n .".concat("with-scroll-bars-hidden"," {\n overflow: hidden ").concat(r,";\n padding-right: ").concat(s,"px ").concat(r,";\n }\n body[").concat(Z,"] {\n overflow: hidden ").concat(r,";\n overscroll-behavior: contain;\n ").concat([t&&"position: relative ".concat(r,";"),"margin"===n&&"\n padding-left: ".concat(a,"px;\n padding-top: ").concat(i,"px;\n padding-right: ").concat(o,"px;\n margin-left:0;\n margin-top:0;\n margin-right: ").concat(s,"px ").concat(r,";\n "),"padding"===n&&"padding-right: ".concat(s,"px ").concat(r,";")].filter(Boolean).join(""),"\n }\n \n .").concat(R," {\n right: ").concat(s,"px ").concat(r,";\n }\n \n .").concat(N," {\n margin-right: ").concat(s,"px ").concat(r,";\n }\n \n .").concat(R," .").concat(R," {\n right: 0 ").concat(r,";\n }\n \n .").concat(N," .").concat(N," {\n margin-right: 0 ").concat(r,";\n }\n \n body[").concat(Z,"] {\n ").concat("--removed-body-scroll-bar-size",": ").concat(s,"px;\n }\n")},$=function(){var e=parseInt(document.body.getAttribute(Z)||"0",10);return isFinite(e)?e:0},J=function(){s.useEffect(function(){return document.body.setAttribute(Z,($()+1).toString()),function(){var e=$()-1;e<=0?document.body.removeAttribute(Z):document.body.setAttribute(Z,e.toString())}},[])},ee=function(e){var t=e.noRelative,n=e.noImportant,r=e.gapMode,a=void 0===r?"margin":r;J();var i=s.useMemo(function(){return V(a)},[a]);return s.createElement(X,{styles:Y(i,!t,a,n?"":"!important")})},et=!1;if("undefined"!=typeof window)try{var en=Object.defineProperty({},"passive",{get:function(){return et=!0,!0}});window.addEventListener("test",en,en),window.removeEventListener("test",en,en)}catch(e){et=!1}var er=!!et&&{passive:!1},ea=function(e,t){if(!(e instanceof Element))return!1;var n=window.getComputedStyle(e);return"hidden"!==n[t]&&(n.overflowY!==n.overflowX||"TEXTAREA"===e.tagName||"visible"!==n[t])},ei=function(e,t){var n=t.ownerDocument,r=t;do{if("undefined"!=typeof ShadowRoot&&r instanceof ShadowRoot&&(r=r.host),eo(e,r)){var a=es(e,r);if(a[1]>a[2])return!0}r=r.parentNode}while(r&&r!==n.body)return!1},eo=function(e,t){return"v"===e?ea(t,"overflowY"):ea(t,"overflowX")},es=function(e,t){return"v"===e?[t.scrollTop,t.scrollHeight,t.clientHeight]:[t.scrollLeft,t.scrollWidth,t.clientWidth]},el=function(e,t,n,r,a){var i,o=(i=window.getComputedStyle(t).direction,"h"===e&&"rtl"===i?-1:1),s=o*r,l=n.target,u=t.contains(l),c=!1,d=s>0,f=0,h=0;do{var p=es(e,l),g=p[0],m=p[1]-p[2]-o*g;(g||m)&&eo(e,l)&&(f+=m,h+=g),l=l instanceof ShadowRoot?l.host:l.parentNode}while(!u&&l!==document.body||u&&(t.contains(l)||t===l))return d&&(a&&1>Math.abs(f)||!a&&s>f)?c=!0:!d&&(a&&1>Math.abs(h)||!a&&-s>h)&&(c=!0),c},eu=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},ec=function(e){return[e.deltaX,e.deltaY]},ed=function(e){return e&&"current"in e?e.current:e},ef=0,eh=[];let ep=(t=function(e){var t=s.useRef([]),n=s.useRef([0,0]),r=s.useRef(),a=s.useState(ef++)[0],i=s.useState(H)[0],o=s.useRef(e);s.useEffect(function(){o.current=e},[e]),s.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(a));var t=(function(e,t,n){if(n||2==arguments.length)for(var r,a=0,i=t.length;aMath.abs(u)?"h":"v";if("touches"in e&&"h"===d&&"range"===c.type)return!1;var f=ei(d,c);if(!f)return!0;if(f?a=d:(a="v"===d?"h":"v",f=ei(d,c)),!f)return!1;if(!r.current&&"changedTouches"in e&&(l||u)&&(r.current=a),!a)return!0;var h=r.current||a;return el(h,t,e,"h"===h?l:u,!0)},[]),u=s.useCallback(function(e){if(eh.length&&eh[eh.length-1]===i){var n="deltaY"in e?ec(e):eu(e),r=t.current.filter(function(t){var r;return t.name===e.type&&(t.target===e.target||e.target===t.shadowParent)&&(r=t.delta,r[0]===n[0]&&r[1]===n[1])})[0];if(r&&r.should){e.cancelable&&e.preventDefault();return}if(!r){var a=(o.current.shards||[]).map(ed).filter(Boolean).filter(function(t){return t.contains(e.target)});(a.length>0?l(e,a[0]):!o.current.noIsolation)&&e.cancelable&&e.preventDefault()}}},[]),c=s.useCallback(function(e,n,r,a){var i={name:e,delta:n,target:r,should:a,shadowParent:function(e){for(var t=null;null!==e;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}(r)};t.current.push(i),setTimeout(function(){t.current=t.current.filter(function(e){return e!==i})},1)},[]),d=s.useCallback(function(e){n.current=eu(e),r.current=void 0},[]),f=s.useCallback(function(t){c(t.type,ec(t),t.target,l(t,e.lockRef.current))},[]),h=s.useCallback(function(t){c(t.type,eu(t),t.target,l(t,e.lockRef.current))},[]);s.useEffect(function(){return eh.push(i),e.setCallbacks({onScrollCapture:f,onWheelCapture:f,onTouchMoveCapture:h}),document.addEventListener("wheel",u,er),document.addEventListener("touchmove",u,er),document.addEventListener("touchstart",d,er),function(){eh=eh.filter(function(e){return e!==i}),document.removeEventListener("wheel",u,er),document.removeEventListener("touchmove",u,er),document.removeEventListener("touchstart",d,er)}},[]);var p=e.removeScrollBar,g=e.inert;return s.createElement(s.Fragment,null,g?s.createElement(i,{styles:"\n .block-interactivity-".concat(a," {pointer-events: none;}\n .allow-interactivity-").concat(a," {pointer-events: all;}\n")}):null,p?s.createElement(ee,{gapMode:e.gapMode}):null)},L.useMedium(t),q);var ev=s.forwardRef(function(e,t){return s.createElement(W,C({},e,{ref:t,sideCar:ep}))});ev.classNames=W.classNames;var eg=new WeakMap,em=new WeakMap,ey={},eb=0,ew=function(e){return e&&(e.host||ew(e.parentNode))},e_=function(e,t,n,r){var a=(Array.isArray(e)?e:[e]).map(function(e){if(t.contains(e))return e;var n=ew(e);return n&&t.contains(n)?n:(console.error("aria-hidden",e,"in not contained inside",t,". Doing nothing"),null)}).filter(function(e){return!!e});ey[n]||(ey[n]=new WeakMap);var i=ey[n],o=[],s=new Set,l=new Set(a),u=function(e){!e||s.has(e)||(s.add(e),u(e.parentNode))};a.forEach(u);var c=function(e){!e||l.has(e)||Array.prototype.forEach.call(e.children,function(e){if(s.has(e))c(e);else try{var t=e.getAttribute(r),a=null!==t&&"false"!==t,l=(eg.get(e)||0)+1,u=(i.get(e)||0)+1;eg.set(e,l),i.set(e,u),o.push(e),1===l&&a&&em.set(e,!0),1===u&&e.setAttribute(n,"true"),a||e.setAttribute(r,"true")}catch(t){console.error("aria-hidden: cannot operate on ",e,t)}})};return c(t),s.clear(),eb++,function(){o.forEach(function(e){var t=eg.get(e)-1,a=i.get(e)-1;eg.set(e,t),i.set(e,a),t||(em.has(e)||e.removeAttribute(r),em.delete(e)),a||e.removeAttribute(n)}),--eb||(eg=new WeakMap,eg=new WeakMap,em=new WeakMap,ey={})}},ex=function(e,t,n){void 0===n&&(n="data-aria-hidden");var r=Array.from(Array.isArray(e)?e:[e]),a=t||("undefined"==typeof document?null:(Array.isArray(e)?e[0]:e).ownerDocument.body);return a?(r.push.apply(r,Array.from(a.querySelectorAll("[aria-live]"))),e_(r,a,n,"aria-hidden")):function(){return null}},ej=e.i(96515),eE="Dialog",[eO,ek]=(0,c.createContextScope)(eE),[eM,eP]=eO(eE),eS=e=>{let{__scopeDialog:t,children:n,open:a,defaultOpen:i,onOpenChange:o,modal:l=!0}=e,u=s.useRef(null),c=s.useRef(null),[h=!1,p]=(0,f.useControllableState)({prop:a,defaultProp:i,onChange:o});return(0,r.jsx)(eM,{scope:t,triggerRef:u,contentRef:c,contentId:(0,d.useId)(),titleId:(0,d.useId)(),descriptionId:(0,d.useId)(),open:h,onOpenChange:p,onOpenToggle:s.useCallback(()=>p(e=>!e),[p]),modal:l,children:n})};eS.displayName=eE;var eC="DialogTrigger",eA=s.forwardRef((e,t)=>{let{__scopeDialog:n,...a}=e,i=eP(eC,n),o=(0,u.useComposedRefs)(t,i.triggerRef);return(0,r.jsx)(p.Primitive.button,{type:"button","aria-haspopup":"dialog","aria-expanded":i.open,"aria-controls":i.contentId,"data-state":eZ(i.open),...a,ref:o,onClick:(0,l.composeEventHandlers)(e.onClick,i.onOpenToggle)})});eA.displayName=eC;var eR="DialogPortal",[eN,eI]=eO(eR,{forceMount:void 0}),eT=e=>{let{__scopeDialog:t,forceMount:n,children:a,container:i}=e,o=eP(eR,t);return(0,r.jsx)(eN,{scope:t,forceMount:n,children:s.Children.map(a,e=>(0,r.jsx)(M.Presence,{present:n||o.open,children:(0,r.jsx)(k.Portal,{asChild:!0,container:i,children:e})}))})};eT.displayName=eR;var eD="DialogOverlay",eF=s.forwardRef((e,t)=>{let n=eI(eD,e.__scopeDialog),{forceMount:a=n.forceMount,...i}=e,o=eP(eD,e.__scopeDialog);return o.modal?(0,r.jsx)(M.Presence,{present:a||o.open,children:(0,r.jsx)(eL,{...i,ref:t})}):null});eF.displayName=eD;var eL=s.forwardRef((e,t)=>{let{__scopeDialog:n,...a}=e,i=eP(eD,n);return(0,r.jsx)(ev,{as:ej.Slot,allowPinchZoom:!0,shards:[i.contentRef],children:(0,r.jsx)(p.Primitive.div,{"data-state":eZ(i.open),...a,ref:t,style:{pointerEvents:"auto",...a.style}})})}),eQ="DialogContent",eW=s.forwardRef((e,t)=>{let n=eI(eQ,e.__scopeDialog),{forceMount:a=n.forceMount,...i}=e,o=eP(eQ,e.__scopeDialog);return(0,r.jsx)(M.Presence,{present:a||o.open,children:o.modal?(0,r.jsx)(eq,{...i,ref:t}):(0,r.jsx)(eG,{...i,ref:t})})});eW.displayName=eQ;var eq=s.forwardRef((e,t)=>{let n=eP(eQ,e.__scopeDialog),a=s.useRef(null),i=(0,u.useComposedRefs)(t,n.contentRef,a);return s.useEffect(()=>{let e=a.current;if(e)return ex(e)},[]),(0,r.jsx)(ez,{...e,ref:i,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:(0,l.composeEventHandlers)(e.onCloseAutoFocus,e=>{var t;e.preventDefault(),null==(t=n.triggerRef.current)||t.focus()}),onPointerDownOutside:(0,l.composeEventHandlers)(e.onPointerDownOutside,e=>{let t=e.detail.originalEvent,n=0===t.button&&!0===t.ctrlKey;(2===t.button||n)&&e.preventDefault()}),onFocusOutside:(0,l.composeEventHandlers)(e.onFocusOutside,e=>e.preventDefault())})}),eG=s.forwardRef((e,t)=>{let n=eP(eQ,e.__scopeDialog),a=s.useRef(!1),i=s.useRef(!1);return(0,r.jsx)(ez,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:t=>{var r,o;null==(r=e.onCloseAutoFocus)||r.call(e,t),t.defaultPrevented||(a.current||null==(o=n.triggerRef.current)||o.focus(),t.preventDefault()),a.current=!1,i.current=!1},onInteractOutside:t=>{var r,o;null==(r=e.onInteractOutside)||r.call(e,t),t.defaultPrevented||(a.current=!0,"pointerdown"===t.detail.originalEvent.type&&(i.current=!0));let s=t.target;(null==(o=n.triggerRef.current)?void 0:o.contains(s))&&t.preventDefault(),"focusin"===t.detail.originalEvent.type&&i.current&&t.preventDefault()}})}),ez=s.forwardRef((e,t)=>{let{__scopeDialog:n,trapFocus:a,onOpenAutoFocus:i,onCloseAutoFocus:o,...l}=e,c=eP(eQ,n),d=s.useRef(null),f=(0,u.useComposedRefs)(t,d);return s.useEffect(()=>{var e,t;let n=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",null!=(e=n[0])?e:S()),document.body.insertAdjacentElement("beforeend",null!=(t=n[1])?t:S()),P++,()=>{1===P&&document.querySelectorAll("[data-radix-focus-guard]").forEach(e=>e.remove()),P--}},[]),(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(w,{asChild:!0,loop:!0,trapped:a,onMountAutoFocus:i,onUnmountAutoFocus:o,children:(0,r.jsx)(h.DismissableLayer,{role:"dialog",id:c.contentId,"aria-describedby":c.descriptionId,"aria-labelledby":c.titleId,"data-state":eZ(c.open),...l,ref:f,onDismiss:()=>c.onOpenChange(!1)})}),(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(e0,{titleId:c.titleId}),(0,r.jsx)(e1,{contentRef:d,descriptionId:c.descriptionId})]})]})}),eH="DialogTitle",eK=s.forwardRef((e,t)=>{let{__scopeDialog:n,...a}=e,i=eP(eH,n);return(0,r.jsx)(p.Primitive.h2,{id:i.titleId,...a,ref:t})});eK.displayName=eH;var eB="DialogDescription",eU=s.forwardRef((e,t)=>{let{__scopeDialog:n,...a}=e,i=eP(eB,n);return(0,r.jsx)(p.Primitive.p,{id:i.descriptionId,...a,ref:t})});eU.displayName=eB;var eV="DialogClose",eX=s.forwardRef((e,t)=>{let{__scopeDialog:n,...a}=e,i=eP(eV,n);return(0,r.jsx)(p.Primitive.button,{type:"button",...a,ref:t,onClick:(0,l.composeEventHandlers)(e.onClick,()=>i.onOpenChange(!1))})});function eZ(e){return e?"open":"closed"}eX.displayName=eV;var eY="DialogTitleWarning",[e$,eJ]=(0,c.createContext)(eY,{contentName:eQ,titleName:eH,docsSlug:"dialog"}),e0=e=>{let{titleId:t}=e,n=eJ(eY),r="`".concat(n.contentName,"` requires a `").concat(n.titleName,"` for the component to be accessible for screen reader users.\n\nIf you want to hide the `").concat(n.titleName,"`, you can wrap it with our VisuallyHidden component.\n\nFor more information, see https://radix-ui.com/primitives/docs/components/").concat(n.docsSlug);return s.useEffect(()=>{t&&(document.getElementById(t)||console.error(r))},[r,t]),null},e1=e=>{let{contentRef:t,descriptionId:n}=e,r=eJ("DialogDescriptionWarning"),a="Warning: Missing `Description` or `aria-describedby={undefined}` for {".concat(r.contentName,"}.");return s.useEffect(()=>{var e;let r=null==(e=t.current)?void 0:e.getAttribute("aria-describedby");n&&r&&(document.getElementById(n)||console.warn(a))},[a,t,n]),null},e2=e.i(94237),e4=e.i(71234),e9=e.i(81212);let e5=s.forwardRef((e,t)=>{let{className:n,...a}=e;return(0,r.jsx)(eF,{className:(0,e9.cn)("fixed inset-0 z-50 bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",n),...a,ref:t})});e5.displayName=eF.displayName;let e7=(0,e2.cva)("fixed z-50 gap-4 bg-background p-6 shadow-lg transition ease-in-out data-[state=closed]:duration-300 data-[state=open]:duration-500 data-[state=open]:animate-in data-[state=closed]:animate-out",{variants:{side:{top:"inset-x-0 top-0 border-b data-[state=closed]:slide-out-to-top data-[state=open]:slide-in-from-top",bottom:"inset-x-0 bottom-0 border-t data-[state=closed]:slide-out-to-bottom data-[state=open]:slide-in-from-bottom",left:"inset-y-0 left-0 h-full w-3/4 border-r data-[state=closed]:slide-out-to-left data-[state=open]:slide-in-from-left sm:max-w-sm",right:"inset-y-0 right-0 h-full w-3/4 border-l data-[state=closed]:slide-out-to-right data-[state=open]:slide-in-from-right sm:max-w-sm"}},defaultVariants:{side:"right"}}),e8=s.forwardRef((e,t)=>{let{side:n="right",className:a,children:i,...o}=e;return(0,r.jsxs)(eT,{children:[(0,r.jsx)(e5,{}),(0,r.jsxs)(eW,{ref:t,className:(0,e9.cn)(e7({side:n}),a),...o,children:[(0,r.jsxs)(eX,{className:"absolute right-4 top-4 rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-secondary",children:[(0,r.jsx)(e4.X,{className:"h-4 w-4"}),(0,r.jsx)("span",{className:"sr-only",children:"Close"})]}),i]})]})});e8.displayName=eW.displayName;let e6=s.forwardRef((e,t)=>{let{className:n,...a}=e;return(0,r.jsx)(eK,{ref:t,className:(0,e9.cn)("text-lg font-semibold text-foreground",n),...a})});e6.displayName=eK.displayName;let e3=s.forwardRef((e,t)=>{let{className:n,...a}=e;return(0,r.jsx)(eU,{ref:t,className:(0,e9.cn)("text-sm text-muted-foreground",n),...a})});e3.displayName=eU.displayName;let te={Content:e8,Description:e3,Root:eS,Title:e6,Trigger:eA};var tt=e.i(88443);let tn=(0,tt.default)("Menu",[["line",{x1:"4",x2:"20",y1:"12",y2:"12",key:"1e0a9i"}],["line",{x1:"4",x2:"20",y1:"6",y2:"6",key:"1owob3"}],["line",{x1:"4",x2:"20",y1:"18",y2:"18",key:"yk5zj1"}]]);var tr=e.i(58708),ta=e.i(17232);let ti=function(e){let{logo:t,title:n,link:o="/",transparent:s,menu:l,children:u,className:c,...d}=e;return(0,r.jsxs)("header",{className:(0,e9.cn)("fixed top-0 left-0 flex w-full items-center gap-4 px-8 py-2 duration-300",{"bg-white/80 shadow backdrop-blur dark:bg-black/80":!0!==s,"text-white":!0===s},c),"data-component":"Header",...d,children:[l,(0,r.jsxs)(ta.default,{className:"inline-flex items-center gap-4",href:o,children:[void 0===t?null:(0,r.jsx)("div",{className:"shadow",children:(0,r.jsx)(i.default,{alt:t,height:24,src:t,width:24})}),void 0===n?null:(0,r.jsx)("div",{children:(0,r.jsx)(a.default,{className:"font-header",variant:"h4",children:n})})]}),u]})};var to=e.i(68720);let ts=function(e){let{side:t="left",trigger:n,children:a,...i}=e;return(0,r.jsxs)(te.Root,{"data-component":"Sidebar",...i,children:[n,(0,r.jsxs)(te.Content,{side:t,children:[(0,r.jsxs)(to.VisuallyHidden,{children:[(0,r.jsx)(te.Title,{}),(0,r.jsx)(te.Description,{})]}),a]})]})},tl=function(e){let{logo:t,title:n,link:a,transparent:i,className:l,...u}=e,[c,d]=(0,s.useState)(!1),f=(0,tr.usePathname)();return(0,s.useEffect)(()=>{d(!1)},[f]),(0,r.jsx)(ts,{onOpenChange:d,open:c,trigger:(0,r.jsx)(ti,{className:l,link:a,logo:t,menu:(0,r.jsx)(te.Trigger,{asChild:!0,children:(0,r.jsx)(o.default,{size:"icon",variant:"ghost",children:(0,r.jsx)(tn,{})})}),title:n,transparent:i}),...u})};e.i(82558);var tu=e.i(58446);let tc=(0,tt.default)("BookText",[["path",{d:"M4 19.5v-15A2.5 2.5 0 0 1 6.5 2H19a1 1 0 0 1 1 1v18a1 1 0 0 1-1 1H6.5a1 1 0 0 1 0-5H20",key:"k3hazp"}],["path",{d:"M8 11h8",key:"vwpz6n"}],["path",{d:"M8 7h6",key:"1f0q6e"}]]),td=(0,tt.default)("FlaskConical",[["path",{d:"M14 2v6a2 2 0 0 0 .245.96l5.51 10.08A2 2 0 0 1 18 22H6a2 2 0 0 1-1.755-2.96l5.51-10.08A2 2 0 0 0 10 8V2",key:"18mbvz"}],["path",{d:"M6.453 15h11.094",key:"3shlmq"}],["path",{d:"M8.5 2h7",key:"csnxdl"}]]),tf=(0,tt.default)("House",[["path",{d:"M15 21v-8a1 1 0 0 0-1-1h-4a1 1 0 0 0-1 1v8",key:"5wwlr5"}],["path",{d:"M3 10a2 2 0 0 1 .709-1.528l7-5.999a2 2 0 0 1 2.582 0l7 5.999A2 2 0 0 1 21 10v9a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z",key:"1d0kgt"}]]),th=(0,tt.default)("MessageSquareHeart",[["path",{d:"M21 15a2 2 0 0 1-2 2H7l-4 4V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2z",key:"1lielz"}],["path",{d:"M14.8 7.5a1.84 1.84 0 0 0-2.6 0l-.2.3-.3-.3a1.84 1.84 0 1 0-2.4 2.8L12 13l2.7-2.7c.9-.9.8-2.1.1-2.8",key:"1blaws"}]]);function tp(e){let{title:t,version:n}=e,l=(0,tr.usePathname)(),[u,c]=(0,s.useState)(!0);return(0,tu.useIntersectionObserver)("#topper",e=>{c(e.isIntersecting)}),(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("div",{id:"topper"}),(0,r.jsx)(tl,{className:"z-40",link:"/",logo:"/favicon.ico",title:"itcode.dev",transparent:u,children:(0,r.jsxs)("div",{className:"flex size-full flex-col",children:[(0,r.jsx)("div",{className:"flex flex-col items-center",children:(0,r.jsx)("div",{className:"relative m-4 aspect-square w-full max-w-20 rounded-lg shadow-lg",children:(0,r.jsx)(i.default,{alt:"blog.itcode.dev",fill:!0,src:"/favicon.ico"})})}),(0,r.jsxs)("div",{className:"flex flex-1 flex-col gap-2",children:[(0,r.jsx)(ta.default,{href:"/",children:(0,r.jsxs)(o.default,{className:"w-full justify-start",variant:"/"===l?"secondary":"ghost",children:[(0,r.jsx)(tf,{color:"gold"}),(0,r.jsx)(a.default,{variant:"large",children:"홈"})]})}),(0,r.jsx)(ta.default,{href:"/posts",children:(0,r.jsxs)(o.default,{className:"w-full justify-start",variant:l.startsWith("/posts")?"secondary":"ghost",children:[(0,r.jsx)(tc,{color:"dodgerblue"}),(0,r.jsx)(a.default,{variant:"large",children:"게시글"})]})}),(0,r.jsx)(ta.default,{href:"/projects",children:(0,r.jsxs)(o.default,{className:"w-full justify-start",variant:l.startsWith("/projects")?"secondary":"ghost",children:[(0,r.jsx)(td,{color:"springgreen"}),(0,r.jsx)(a.default,{variant:"large",children:"프로젝트"})]})}),(0,r.jsx)(ta.default,{href:"/comments",children:(0,r.jsxs)(o.default,{className:"w-full justify-start",variant:l.startsWith("/comments")?"secondary":"ghost",children:[(0,r.jsx)(th,{color:"hotpink"}),(0,r.jsx)(a.default,{variant:"large",children:"방명록"})]})})]}),(0,r.jsxs)("div",{className:"flex flex-col items-center justify-center gap-1",children:[(0,r.jsx)(a.default,{variant:"small",children:t}),(0,r.jsx)(a.default,{variant:"muted",children:n})]})]})})]})}},92126,(e,t,n)=>{"use strict";Object.defineProperty(n,"__esModule",{value:!0}),Object.defineProperty(n,"BailoutToCSR",{enumerable:!0,get:function(){return a}});let r=e.r(32112);function a(e){let{reason:t,children:n}=e;if("undefined"==typeof window)throw Object.defineProperty(new r.BailoutToCSRError(t),"__NEXT_ERROR_CODE",{value:"E394",enumerable:!1,configurable:!0});return n}},81936,(e,t,n)=>{"use strict";function r(e){return e.split("/").map(e=>encodeURIComponent(e)).join("/")}Object.defineProperty(n,"__esModule",{value:!0}),Object.defineProperty(n,"encodeURIPath",{enumerable:!0,get:function(){return r}})},68579,(e,t,n)=>{"use strict";Object.defineProperty(n,"__esModule",{value:!0}),Object.defineProperty(n,"PreloadChunks",{enumerable:!0,get:function(){return s}});let r=e.r(67720),a=e.r(71552),i=e.r(59023),o=e.r(81936);function s(e){let{moduleIds:t}=e;if("undefined"!=typeof window)return null;let n=i.workAsyncStorage.getStore();if(void 0===n)return null;let s=[];if(n.reactLoadableManifest&&t){let e=n.reactLoadableManifest;for(let n of t){if(!e[n])continue;let t=e[n].files;s.push(...t)}}return 0===s.length?null:(0,r.jsx)(r.Fragment,{children:s.map(e=>{let t=n.assetPrefix+"/_next/"+(0,o.encodeURIPath)(e);return e.endsWith(".css")?(0,r.jsx)("link",{precedence:"dynamic",href:t,rel:"stylesheet",as:"style"},e):((0,a.preload)(t,{as:"script",fetchPriority:"low"}),null)})})}},79872,(e,t,n)=>{"use strict";Object.defineProperty(n,"__esModule",{value:!0}),Object.defineProperty(n,"default",{enumerable:!0,get:function(){return u}});let r=e.r(67720),a=e.r(14593),i=e.r(92126),o=e.r(68579);function s(e){return{default:e&&"default"in e?e.default:e}}let l={loader:()=>Promise.resolve(s(()=>null)),loading:null,ssr:!0},u=function(e){let t={...l,...e},n=(0,a.lazy)(()=>t.loader().then(s)),u=t.loading;function c(e){let s=u?(0,r.jsx)(u,{isLoading:!0,pastDelay:!0,error:null}):null,l=!t.ssr||!!t.loading,c=l?a.Suspense:a.Fragment,d=t.ssr?(0,r.jsxs)(r.Fragment,{children:["undefined"==typeof window?(0,r.jsx)(o.PreloadChunks,{moduleIds:t.modules}):null,(0,r.jsx)(n,{...e})]}):(0,r.jsx)(i.BailoutToCSR,{reason:"next/dynamic",children:(0,r.jsx)(n,{...e})});return(0,r.jsx)(c,{...l?{fallback:s}:{},children:d})}return c.displayName="LoadableComponent",c}},50701,(e,t,n)=>{"use strict";Object.defineProperty(n,"__esModule",{value:!0}),Object.defineProperty(n,"default",{enumerable:!0,get:function(){return a}});let r=e.r(81258)._(e.r(79872));function a(e,t){var n;let a={};"function"==typeof e&&(a.loader=e);let i={...a,...t};return(0,r.default)({...i,modules:null==(n=i.loadableGenerated)?void 0:n.modules})}("function"==typeof n.default||"object"==typeof n.default&&null!==n.default)&&void 0===n.default.__esModule&&(Object.defineProperty(n.default,"__esModule",{value:!0}),Object.assign(n.default,n),t.exports=n.default)},43712,e=>{"use strict";e.s(["default",()=>s]);var t=e.i(67720),n=e.i(81212),r=e.i(50701),a=e.i(34262),i=e.i(85345);let o=(0,r.default)(()=>e.A(25364),{loadableGenerated:{modules:[11620]},ssr:!1});function s(e){let{hour:r,mainColor:s,bodyColor:l,className:u,children:c,...d}=e;return(0,t.jsxs)("footer",{className:(0,n.cn)("mt-3",u),"data-component":"Footer",...d,children:[(0,t.jsxs)("div",{className:"relative flex h-72 flex-col overflow-hidden",children:[(0,t.jsx)(o,{hour:r}),(0,t.jsx)("div",{className:"-bottom-5 absolute left-[10%] animate-boat",children:(0,t.jsx)(i.default,{alt:"ship",height:100,src:"https://github.com/user-attachments/assets/e2a11c89-57af-4944-9068-bf237369f8b3",width:100})}),(0,t.jsx)("div",{className:"absolute bottom-0 w-full",children:(0,t.jsx)(a.default,{fillColor:s,height:30,width:"100%"})})]}),(0,t.jsx)("div",{style:{background:null!=l?l:s},children:(0,t.jsx)("div",{className:"w-full",children:c})})]})}},35292,(e,t,n)=>{"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0,n.default=function(){for(var e,t=arguments.length,n=Array(t),r=0;r{"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.default=function(){var e,t,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",a=!(arguments.length>1)||void 0===arguments[1]||arguments[1],i=!(arguments.length>2)||void 0===arguments[2]||arguments[2],o=n||"";return a&&(o=n.toString().trim().replace(/[A-Za-z0-9\u00C0-\u00FF]+[^\s-]*/g,function(e,t,n){return t>0&&t+e.length!==n.length&&e.search(r)>-1&&":"!==n.charAt(t-2)&&("-"!==n.charAt(t+e.length)||"-"===n.charAt(t-1))&&0>n.charAt(t-1).search(/[^\s-]/)?e.toLowerCase():e.substr(1).search(/[A-Z]|\../)>-1?e:e.charAt(0).toUpperCase()+e.substr(1)})),i&&(o="string"==typeof(t=e=o)&&-1!==t.indexOf("@")?(console.warn("This arg looks like an email address, redacting."),"REDACTED (Potential Email Address)"):e),o};var r=/^(a|an|and|as|at|but|by|en|for|if|in|nor|of|on|or|per|the|to|vs?\.?|via)$/i},25226,(e,t,n)=>{"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.default=n.GA4=void 0;var r=l(e.r(35292)),a=l(e.r(60776)),i=["eventCategory","eventAction","eventLabel","eventValue","hitType"],o=["title","location"],s=["page","hitType"];function l(e){return e&&e.__esModule?e:{default:e}}function u(e,t){if(null==e)return{};var n,r,a=function(e,t){if(null==e)return{};var n,r,a={},i=Object.keys(e);for(r=0;r=0||(a[n]=e[n]);return a}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}function c(e){return(c="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function d(e){return function(e){if(Array.isArray(e))return g(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||p(e)||function(){throw TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function f(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function h(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=Array(t);n2&&void 0!==arguments[2]?arguments[2]:"https://www.googletagmanager.com/gtag/js";if("undefined"!=typeof window&&"undefined"!=typeof document&&!e._hasLoadedGA){var a=document.createElement("script");a.async=!0,a.src="".concat(r,"?id=").concat(t),n&&a.setAttribute("nonce",n),document.body.appendChild(a),window.dataLayer=window.dataLayer||[],window.gtag=function(){window.dataLayer.push(arguments)},e._hasLoadedGA=!0}}),m(this,"_toGtagOptions",function(e){if(e){var t={cookieUpdate:"cookie_update",cookieExpires:"cookie_expires",cookieDomain:"cookie_domain",cookieFlags:"cookie_flags",userId:"user_id",clientId:"client_id",anonymizeIp:"anonymize_ip",contentGroup1:"content_group1",contentGroup2:"content_group2",contentGroup3:"content_group3",contentGroup4:"content_group4",contentGroup5:"content_group5",allowAdFeatures:"allow_google_signals",allowAdPersonalizationSignals:"allow_ad_personalization_signals",nonInteraction:"non_interaction",page:"page_path",hitCallback:"event_callback"};return Object.entries(e).reduce(function(e,n){var r=function(e){if(Array.isArray(e))return e}(n)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,a,i,o,s=[],l=!0,u=!1;try{i=(n=n.call(e)).next,!1;for(;!(l=(r=i.call(n)).done)&&(s.push(r.value),s.length!==t);l=!0);}catch(e){u=!0,a=e}finally{try{if(!l&&null!=n.return&&(o=n.return(),Object(o)!==o))return}finally{if(u)throw a}}return s}}(n,2)||p(n,2)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(),a=r[0],i=r[1];return t[a]?e[t[a]]=i:e[a]=i,e},{})}}),m(this,"initialize",function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!t)throw Error("Require GA_MEASUREMENT_ID");var r="string"==typeof t?[{trackingId:t}]:t;e._currentMeasurementId=r[0].trackingId;var a=n.gaOptions,i=n.gtagOptions,o=n.nonce,s=n.testMode,l=void 0!==s&&s,u=n.gtagUrl;if(e._testMode=l,l||e._loadGA(e._currentMeasurementId,o,u),e.isInitialized||(e._gtag("js",new Date),r.forEach(function(t){var n=h(h(h({},e._toGtagOptions(h(h({},a),t.gaOptions))),i),t.gtagOptions);Object.keys(n).length?e._gtag("config",t.trackingId,n):e._gtag("config",t.trackingId)})),e.isInitialized=!0,!l){var c=d(e._queueGtag);for(e._queueGtag=[],e._isQueuing=!1;c.length;){var f=c.shift();e._gtag.apply(e,d(f)),"get"===f[0]&&(e._isQueuing=!0)}}}),m(this,"set",function(t){return t?"object"!==c(t)?void console.warn("Expected `fieldsObject` arg to be an Object"):void(0===Object.keys(t).length&&console.warn("empty `fieldsObject` given to .set()"),e._gaCommand("set",t)):void console.warn("`fieldsObject` is required in .set()")}),m(this,"_gaCommandSendEvent",function(t,n,r,a,i){e._gtag("event",n,h(h({event_category:t,event_label:r,value:a},i&&{non_interaction:i.nonInteraction}),e._toGtagOptions(i)))}),m(this,"_gaCommandSendEventParameters",function(){for(var t=arguments.length,n=Array(t),r=0;r1?n-1:0),a=1;a{"use strict";function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}Object.defineProperty(n,"__esModule",{value:!0}),n.default=n.ReactGAImplementation=void 0;var a=function(e,t){if(e&&e.__esModule)return e;if(null===e||"object"!==r(e)&&"function"!=typeof e)return{default:e};var n=i(t);if(n&&n.has(e))return n.get(e);var a={},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var s in e)if("default"!==s&&Object.prototype.hasOwnProperty.call(e,s)){var l=o?Object.getOwnPropertyDescriptor(e,s):null;l&&(l.get||l.set)?Object.defineProperty(a,s,l):a[s]=e[s]}return a.default=e,n&&n.set(e,a),a}(e.r(25226));function i(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(i=function(e){return e?n:t})(e)}n.ReactGAImplementation=a.GA4,n.default=a.default},59255,e=>{"use strict";e.s(["default",()=>a]);var t=e.i(67720),n=e.i(14593),r=e.i(93359);function a(e){let{gaKey:a,children:i}=e;return(0,n.useLayoutEffect)(()=>{r.default.initialize(a)},[a]),(0,t.jsx)(t.Fragment,{children:i})}},34068,e=>{"use strict";e.s(["default",()=>B],34068);var t,n,r,a,i,o,s,l,u,c,d,f,h,p,g,m,y=e.i(67720),b=e.i(76054),w=e.i(36927),_=e.i(50475),x=e.i(3069);function j(e,t){var n=(0,x._)(e,t,"update");if(n.set){if(!n.get)throw TypeError("attempted to read set only private field");return"__destrWrapper"in n||(n.__destrWrapper={set value(v){n.set.call(e,v)},get value(){return n.get.call(e)}}),n.__destrWrapper}if(!n.writable)throw TypeError("attempted to set read only private field");return n}var E=e.i(25513),O=e.i(89670),k=e.i(8909),M=e.i(40398),P=(t=new WeakMap,class extends M.Subscribable{build(e,t,n){var r;let a=t.queryKey,i=null!=(r=t.queryHash)?r:(0,E.hashQueryKeyByOptions)(a,t),o=this.get(i);return o||(o=new O.Query({cache:this,queryKey:a,queryHash:i,options:e.defaultQueryOptions(t),state:n,defaultOptions:e.getQueryDefaults(a)}),this.add(o)),o}add(e){(0,b._)(this,t).has(e.queryHash)||((0,b._)(this,t).set(e.queryHash,e),this.notify({type:"added",query:e}))}remove(e){let n=(0,b._)(this,t).get(e.queryHash);n&&(e.destroy(),n===e&&(0,b._)(this,t).delete(e.queryHash),this.notify({type:"removed",query:e}))}clear(){k.notifyManager.batch(()=>{this.getAll().forEach(e=>{this.remove(e)})})}get(e){return(0,b._)(this,t).get(e)}getAll(){return[...(0,b._)(this,t).values()]}find(e){let t={exact:!0,...e};return this.getAll().find(e=>(0,E.matchQuery)(t,e))}findAll(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=this.getAll();return Object.keys(e).length>0?t.filter(t=>(0,E.matchQuery)(e,t)):t}notify(e){k.notifyManager.batch(()=>{this.listeners.forEach(t=>{t(e)})})}onFocus(){k.notifyManager.batch(()=>{this.getAll().forEach(e=>{e.onFocus()})})}onOnline(){k.notifyManager.batch(()=>{this.getAll().forEach(e=>{e.onOnline()})})}constructor(e={}){super(),(0,w._)(this,t,{writable:!0,value:void 0}),this.config=e,(0,_._)(this,t,new Map)}}),S=e.i(42297),C=e.i(74754),A=e.i(25604),R=e.i(47196),N=(n=new WeakMap,r=new WeakMap,a=new WeakMap,i=new WeakSet,class extends A.Removable{setOptions(e){this.options=e,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(e){(0,b._)(this,n).includes(e)||((0,b._)(this,n).push(e),this.clearGcTimeout(),(0,b._)(this,r).notify({type:"observerAdded",mutation:this,observer:e}))}removeObserver(e){(0,_._)(this,n,(0,b._)(this,n).filter(t=>t!==e)),this.scheduleGc(),(0,b._)(this,r).notify({type:"observerRemoved",mutation:this,observer:e})}optionalRemove(){(0,b._)(this,n).length||("pending"===this.state.status?this.scheduleGc():(0,b._)(this,r).remove(this))}continue(){var e,t;return null!=(t=null==(e=(0,b._)(this,a))?void 0:e.continue())?t:this.execute(this.state.variables)}async execute(e){var t,n,o,s,l,u,c,d,f,h,p,g,m,y,w,x,j,E,O,k,M;(0,_._)(this,a,(0,R.createRetryer)({fn:()=>this.options.mutationFn?this.options.mutationFn(e):Promise.reject(Error("No mutationFn found")),onFail:(e,t)=>{(0,S._)(this,i,I).call(this,{type:"failed",failureCount:e,error:t})},onPause:()=>{(0,S._)(this,i,I).call(this,{type:"pause"})},onContinue:()=>{(0,S._)(this,i,I).call(this,{type:"continue"})},retry:null!=(t=this.options.retry)?t:0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>(0,b._)(this,r).canRun(this)}));let P="pending"===this.state.status,C=!(0,b._)(this,a).canStart();try{if(!P){(0,S._)(this,i,I).call(this,{type:"pending",variables:e,isPaused:C}),await (null==(h=(p=(0,b._)(this,r).config).onMutate)?void 0:h.call(p,e,this));let t=await (null==(g=(m=this.options).onMutate)?void 0:g.call(m,e));t!==this.state.context&&(0,S._)(this,i,I).call(this,{type:"pending",context:t,variables:e,isPaused:C})}let t=await (0,b._)(this,a).start();return await (null==(n=(o=(0,b._)(this,r).config).onSuccess)?void 0:n.call(o,t,e,this.state.context,this)),await (null==(s=(l=this.options).onSuccess)?void 0:s.call(l,t,e,this.state.context)),await (null==(u=(c=(0,b._)(this,r).config).onSettled)?void 0:u.call(c,t,null,this.state.variables,this.state.context,this)),await (null==(d=(f=this.options).onSettled)?void 0:d.call(f,t,null,e,this.state.context)),(0,S._)(this,i,I).call(this,{type:"success",data:t}),t}catch(t){try{throw await (null==(y=(w=(0,b._)(this,r).config).onError)?void 0:y.call(w,t,e,this.state.context,this)),await (null==(x=(j=this.options).onError)?void 0:x.call(j,t,e,this.state.context)),await (null==(E=(O=(0,b._)(this,r).config).onSettled)?void 0:E.call(O,void 0,t,this.state.variables,this.state.context,this)),await (null==(k=(M=this.options).onSettled)?void 0:k.call(M,void 0,t,e,this.state.context)),t}finally{(0,S._)(this,i,I).call(this,{type:"error",error:t})}}finally{(0,b._)(this,r).runNext(this)}}constructor(e){super(),(0,C._)(this,i),(0,w._)(this,n,{writable:!0,value:void 0}),(0,w._)(this,r,{writable:!0,value:void 0}),(0,w._)(this,a,{writable:!0,value:void 0}),this.mutationId=e.mutationId,(0,_._)(this,r,e.mutationCache),(0,_._)(this,n,[]),this.state=e.state||{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0},this.setOptions(e.options),this.scheduleGc()}});function I(e){this.state=(t=>{switch(e.type){case"failed":return{...t,failureCount:e.failureCount,failureReason:e.error};case"pause":return{...t,isPaused:!0};case"continue":return{...t,isPaused:!1};case"pending":return{...t,context:e.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:e.isPaused,status:"pending",variables:e.variables,submittedAt:Date.now()};case"success":return{...t,data:e.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...t,data:void 0,error:e.error,failureCount:t.failureCount+1,failureReason:e.error,isPaused:!1,status:"error"}}})(this.state),k.notifyManager.batch(()=>{(0,b._)(this,n).forEach(t=>{t.onMutationUpdate(e)}),(0,b._)(this,r).notify({mutation:this,type:"updated",action:e})})}var T=M,D=(o=new WeakMap,s=new WeakMap,l=new WeakMap,class extends T.Subscribable{build(e,t,n){let r=new N({mutationCache:this,mutationId:++j(this,l).value,options:e.defaultMutationOptions(t),state:n});return this.add(r),r}add(e){(0,b._)(this,o).add(e);let t=F(e);if("string"==typeof t){let n=(0,b._)(this,s).get(t);n?n.push(e):(0,b._)(this,s).set(t,[e])}this.notify({type:"added",mutation:e})}remove(e){if((0,b._)(this,o).delete(e)){let t=F(e);if("string"==typeof t){let n=(0,b._)(this,s).get(t);if(n)if(n.length>1){let t=n.indexOf(e);-1!==t&&n.splice(t,1)}else n[0]===e&&(0,b._)(this,s).delete(t)}}this.notify({type:"removed",mutation:e})}canRun(e){let t=F(e);if("string"!=typeof t)return!0;{let n=(0,b._)(this,s).get(t),r=null==n?void 0:n.find(e=>"pending"===e.state.status);return!r||r===e}}runNext(e){let t=F(e);if("string"!=typeof t)return Promise.resolve();{var n,r;let a=null==(n=(0,b._)(this,s).get(t))?void 0:n.find(t=>t!==e&&t.state.isPaused);return null!=(r=null==a?void 0:a.continue())?r:Promise.resolve()}}clear(){k.notifyManager.batch(()=>{(0,b._)(this,o).forEach(e=>{this.notify({type:"removed",mutation:e})}),(0,b._)(this,o).clear(),(0,b._)(this,s).clear()})}getAll(){return Array.from((0,b._)(this,o))}find(e){let t={exact:!0,...e};return this.getAll().find(e=>(0,E.matchMutation)(t,e))}findAll(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return this.getAll().filter(t=>(0,E.matchMutation)(e,t))}notify(e){k.notifyManager.batch(()=>{this.listeners.forEach(t=>{t(e)})})}resumePausedMutations(){let e=this.getAll().filter(e=>e.state.isPaused);return k.notifyManager.batch(()=>Promise.all(e.map(e=>e.continue().catch(E.noop))))}constructor(e={}){super(),(0,w._)(this,o,{writable:!0,value:void 0}),(0,w._)(this,s,{writable:!0,value:void 0}),(0,w._)(this,l,{writable:!0,value:void 0}),this.config=e,(0,_._)(this,o,new Set),(0,_._)(this,s,new Map),(0,_._)(this,l,0)}});function F(e){var t;return null==(t=e.options.scope)?void 0:t.id}var L=e.i(50142),Q=e.i(98232);function W(e){return{onFetch:(t,n)=>{var r,a,i,o,s;let l=t.options,u=null==(i=t.fetchOptions)||null==(a=i.meta)||null==(r=a.fetchMore)?void 0:r.direction,c=(null==(o=t.state.data)?void 0:o.pages)||[],d=(null==(s=t.state.data)?void 0:s.pageParams)||[],f={pages:[],pageParams:[]},h=0,p=async()=>{let n=!1,r=(0,E.ensureQueryFn)(t.options,t.fetchOptions),a=async(e,a,i)=>{if(n)return Promise.reject();if(null==a&&e.pages.length)return Promise.resolve(e);let o={queryKey:t.queryKey,pageParam:a,direction:i?"backward":"forward",meta:t.options.meta};Object.defineProperty(o,"signal",{enumerable:!0,get:()=>(t.signal.aborted?n=!0:t.signal.addEventListener("abort",()=>{n=!0}),t.signal)});let s=await r(o),{maxPages:l}=t.options,u=i?E.addToStart:E.addToEnd;return{pages:u(e.pages,s,l),pageParams:u(e.pageParams,a,l)}};if(u&&c.length){let e="backward"===u,t={pages:c,pageParams:d},n=(e?function(e,t){var n;let{pages:r,pageParams:a}=t;return r.length>0?null==(n=e.getPreviousPageParam)?void 0:n.call(e,r[0],r,a[0],a):void 0}:q)(l,t);f=await a(t,n,e)}else{let t=null!=e?e:c.length;do{var i;let e=0===h?null!=(i=d[0])?i:l.initialPageParam:q(l,f);if(h>0&&null==e)break;f=await a(f,e),h++}while(h{var e,r;return null==(e=(r=t.options).persister)?void 0:e.call(r,p,{queryKey:t.queryKey,meta:t.options.meta,signal:t.signal},n)}:t.fetchFn=p}}}function q(e,t){let{pages:n,pageParams:r}=t,a=n.length-1;return n.length>0?e.getNextPageParam(n[a],n,r[a],r):void 0}var G=(u=new WeakMap,c=new WeakMap,d=new WeakMap,f=new WeakMap,h=new WeakMap,p=new WeakMap,g=new WeakMap,m=new WeakMap,class{mount(){j(this,p).value++,1===(0,b._)(this,p)&&((0,_._)(this,g,L.focusManager.subscribe(async e=>{e&&(await this.resumePausedMutations(),(0,b._)(this,u).onFocus())})),(0,_._)(this,m,Q.onlineManager.subscribe(async e=>{e&&(await this.resumePausedMutations(),(0,b._)(this,u).onOnline())})))}unmount(){var e,t;j(this,p).value--,0===(0,b._)(this,p)&&(null==(e=(0,b._)(this,g))||e.call(this),(0,_._)(this,g,void 0),null==(t=(0,b._)(this,m))||t.call(this),(0,_._)(this,m,void 0))}isFetching(e){return(0,b._)(this,u).findAll({...e,fetchStatus:"fetching"}).length}isMutating(e){return(0,b._)(this,c).findAll({...e,status:"pending"}).length}getQueryData(e){var t;let n=this.defaultQueryOptions({queryKey:e});return null==(t=(0,b._)(this,u).get(n.queryHash))?void 0:t.state.data}ensureQueryData(e){let t=this.defaultQueryOptions(e),n=(0,b._)(this,u).build(this,t),r=n.state.data;return void 0===r?this.fetchQuery(e):(e.revalidateIfStale&&n.isStaleByTime((0,E.resolveStaleTime)(t.staleTime,n))&&this.prefetchQuery(t),Promise.resolve(r))}getQueriesData(e){return(0,b._)(this,u).findAll(e).map(e=>{let{queryKey:t,state:n}=e;return[t,n.data]})}setQueryData(e,t,n){let r=this.defaultQueryOptions({queryKey:e}),a=(0,b._)(this,u).get(r.queryHash),i=null==a?void 0:a.state.data,o=(0,E.functionalUpdate)(t,i);if(void 0!==o)return(0,b._)(this,u).build(this,r).setData(o,{...n,manual:!0})}setQueriesData(e,t,n){return k.notifyManager.batch(()=>(0,b._)(this,u).findAll(e).map(e=>{let{queryKey:r}=e;return[r,this.setQueryData(r,t,n)]}))}getQueryState(e){var t;let n=this.defaultQueryOptions({queryKey:e});return null==(t=(0,b._)(this,u).get(n.queryHash))?void 0:t.state}removeQueries(e){let t=(0,b._)(this,u);k.notifyManager.batch(()=>{t.findAll(e).forEach(e=>{t.remove(e)})})}resetQueries(e,t){let n=(0,b._)(this,u),r={type:"active",...e};return k.notifyManager.batch(()=>(n.findAll(e).forEach(e=>{e.reset()}),this.refetchQueries(r,t)))}cancelQueries(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n={revert:!0,...t};return Promise.all(k.notifyManager.batch(()=>(0,b._)(this,u).findAll(e).map(e=>e.cancel(n)))).then(E.noop).catch(E.noop)}invalidateQueries(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return k.notifyManager.batch(()=>{var n,r;if((0,b._)(this,u).findAll(e).forEach(e=>{e.invalidate()}),(null==e?void 0:e.refetchType)==="none")return Promise.resolve();let a={...e,type:null!=(r=null!=(n=null==e?void 0:e.refetchType)?n:null==e?void 0:e.type)?r:"active"};return this.refetchQueries(a,t)})}refetchQueries(e){var t;let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r={...n,cancelRefetch:null==(t=n.cancelRefetch)||t};return Promise.all(k.notifyManager.batch(()=>(0,b._)(this,u).findAll(e).filter(e=>!e.isDisabled()).map(e=>{let t=e.fetch(void 0,r);return r.throwOnError||(t=t.catch(E.noop)),"paused"===e.state.fetchStatus?Promise.resolve():t}))).then(E.noop)}fetchQuery(e){let t=this.defaultQueryOptions(e);void 0===t.retry&&(t.retry=!1);let n=(0,b._)(this,u).build(this,t);return n.isStaleByTime((0,E.resolveStaleTime)(t.staleTime,n))?n.fetch(t):Promise.resolve(n.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(E.noop).catch(E.noop)}fetchInfiniteQuery(e){return e.behavior=W(e.pages),this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(E.noop).catch(E.noop)}ensureInfiniteQueryData(e){return e.behavior=W(e.pages),this.ensureQueryData(e)}resumePausedMutations(){return Q.onlineManager.isOnline()?(0,b._)(this,c).resumePausedMutations():Promise.resolve()}getQueryCache(){return(0,b._)(this,u)}getMutationCache(){return(0,b._)(this,c)}getDefaultOptions(){return(0,b._)(this,d)}setDefaultOptions(e){(0,_._)(this,d,e)}setQueryDefaults(e,t){(0,b._)(this,f).set((0,E.hashKey)(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){let t=[...(0,b._)(this,f).values()],n={};return t.forEach(t=>{(0,E.partialMatchKey)(e,t.queryKey)&&Object.assign(n,t.defaultOptions)}),n}setMutationDefaults(e,t){(0,b._)(this,h).set((0,E.hashKey)(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){let t=[...(0,b._)(this,h).values()],n={};return t.forEach(t=>{(0,E.partialMatchKey)(e,t.mutationKey)&&(n={...n,...t.defaultOptions})}),n}defaultQueryOptions(e){if(e._defaulted)return e;let t={...(0,b._)(this,d).queries,...this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return t.queryHash||(t.queryHash=(0,E.hashQueryKeyByOptions)(t.queryKey,t)),void 0===t.refetchOnReconnect&&(t.refetchOnReconnect="always"!==t.networkMode),void 0===t.throwOnError&&(t.throwOnError=!!t.suspense),!t.networkMode&&t.persister&&(t.networkMode="offlineFirst"),t.queryFn===E.skipToken&&(t.enabled=!1),t}defaultMutationOptions(e){return(null==e?void 0:e._defaulted)?e:{...(0,b._)(this,d).mutations,...(null==e?void 0:e.mutationKey)&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){(0,b._)(this,u).clear(),(0,b._)(this,c).clear()}constructor(e={}){(0,w._)(this,u,{writable:!0,value:void 0}),(0,w._)(this,c,{writable:!0,value:void 0}),(0,w._)(this,d,{writable:!0,value:void 0}),(0,w._)(this,f,{writable:!0,value:void 0}),(0,w._)(this,h,{writable:!0,value:void 0}),(0,w._)(this,p,{writable:!0,value:void 0}),(0,w._)(this,g,{writable:!0,value:void 0}),(0,w._)(this,m,{writable:!0,value:void 0}),(0,_._)(this,u,e.queryCache||new P),(0,_._)(this,c,e.mutationCache||new D),(0,_._)(this,d,e.defaultOptions||{}),(0,_._)(this,f,new Map),(0,_._)(this,h,new Map),(0,_._)(this,p,0)}}),z=e.i(7631);e.i(37427);var H=function(){return null},K=e.i(14593);function B(e){let{client:t,buttonPosition:n,children:r}=e,a=(0,K.useMemo)(()=>null!=t?t:new G({defaultOptions:{queries:{staleTime:36e5}}}),[t]);return(0,y.jsxs)(z.QueryClientProvider,{client:a,children:[r,(0,y.jsx)(H,{buttonPosition:n})]})}}]);