(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,87255,5820,18185,e=>{"use strict";async function t(){let e=await fetch("https://datastore.itcode.dev/itcode/image");return await e.json()}e.s([],87255),e.s(["useGetDevStack",()=>ea],5820);var s,i,a,r,l,n,o,h,c,u,d,f,p,_,v,b,m,y,w,g,x,j,R,S,k=e.i(76054),O=e.i(36927),C=e.i(50475),E=e.i(42297),M=e.i(74754),W=e.i(50142),N=e.i(8909),T=e.i(89670),z=e.i(40398),q=e.i(61175),I=e.i(25513),U=(s=new WeakMap,i=new WeakMap,a=new WeakMap,r=new WeakMap,l=new WeakMap,n=new WeakMap,o=new WeakMap,h=new WeakMap,c=new WeakMap,u=new WeakMap,d=new WeakMap,f=new WeakMap,p=new WeakMap,_=new WeakMap,v=new WeakMap,b=new WeakSet,m=new WeakSet,y=new WeakSet,w=new WeakSet,g=new WeakSet,x=new WeakSet,j=new WeakSet,R=new WeakSet,S=new WeakSet,class extends z.Subscribable{bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){1===this.listeners.size&&((0,k._)(this,i).addObserver(this),D((0,k._)(this,i),this.options)?(0,E._)(this,b,L).call(this):this.updateResult(),(0,E._)(this,g,V).call(this))}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return P((0,k._)(this,i),this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return P((0,k._)(this,i),this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,(0,E._)(this,x,B).call(this),(0,E._)(this,j,K).call(this),(0,k._)(this,i).removeObserver(this)}setOptions(e,t){let a=this.options,r=(0,k._)(this,i);if(this.options=(0,k._)(this,s).defaultQueryOptions(e),void 0!==this.options.enabled&&"boolean"!=typeof this.options.enabled&&"function"!=typeof this.options.enabled&&"boolean"!=typeof(0,I.resolveEnabled)(this.options.enabled,(0,k._)(this,i)))throw Error("Expected enabled to be a boolean or a callback that returns a boolean");(0,E._)(this,R,J).call(this),(0,k._)(this,i).setOptions(this.options),a._defaulted&&!(0,I.shallowEqualObjects)(this.options,a)&&(0,k._)(this,s).getQueryCache().notify({type:"observerOptionsUpdated",query:(0,k._)(this,i),observer:this});let l=this.hasListeners();l&&Q((0,k._)(this,i),r,this.options,a)&&(0,E._)(this,b,L).call(this),this.updateResult(t),l&&((0,k._)(this,i)!==r||(0,I.resolveEnabled)(this.options.enabled,(0,k._)(this,i))!==(0,I.resolveEnabled)(a.enabled,(0,k._)(this,i))||(0,I.resolveStaleTime)(this.options.staleTime,(0,k._)(this,i))!==(0,I.resolveStaleTime)(a.staleTime,(0,k._)(this,i)))&&(0,E._)(this,m,A).call(this);let n=(0,E._)(this,y,G).call(this);l&&((0,k._)(this,i)!==r||(0,I.resolveEnabled)(this.options.enabled,(0,k._)(this,i))!==(0,I.resolveEnabled)(a.enabled,(0,k._)(this,i))||n!==(0,k._)(this,_))&&(0,E._)(this,w,H).call(this,n)}getOptimisticResult(e){var t,a;let o=(0,k._)(this,s).getQueryCache().build((0,k._)(this,s),e),h=this.createResult(o,e);return t=this,a=h,(0,I.shallowEqualObjects)(t.getCurrentResult(),a)||((0,C._)(this,r,h),(0,C._)(this,n,this.options),(0,C._)(this,l,(0,k._)(this,i).state)),h}getCurrentResult(){return(0,k._)(this,r)}trackResult(e,t){let s={};return Object.keys(e).forEach(i=>{Object.defineProperty(s,i,{configurable:!1,enumerable:!0,get:()=>(this.trackProp(i),null==t||t(i),e[i])})}),s}trackProp(e){(0,k._)(this,v).add(e)}getCurrentQuery(){return(0,k._)(this,i)}refetch(){let{...e}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return this.fetch({...e})}fetchOptimistic(e){let t=(0,k._)(this,s).defaultQueryOptions(e),i=(0,k._)(this,s).getQueryCache().build((0,k._)(this,s),t);return i.fetch().then(()=>this.createResult(i,t))}fetch(e){var t;return(0,E._)(this,b,L).call(this,{...e,cancelRefetch:null==(t=e.cancelRefetch)||t}).then(()=>(this.updateResult(),(0,k._)(this,r)))}createResult(e,t){let s,f=(0,k._)(this,i),p=this.options,_=(0,k._)(this,r),v=(0,k._)(this,l),b=(0,k._)(this,n),m=e!==f?e.state:(0,k._)(this,a),{state:y}=e,w={...y},g=!1;if(t._optimisticResults){let s=this.hasListeners(),i=!s&&D(e,t),a=s&&Q(e,f,t,p);(i||a)&&(w={...w,...(0,T.fetchState)(y.data,e.options)}),"isRestoring"===t._optimisticResults&&(w.fetchStatus="idle")}let{error:x,errorUpdatedAt:j,status:R}=w;if(t.select&&void 0!==w.data)if(_&&w.data===(null==v?void 0:v.data)&&t.select===(0,k._)(this,c))s=(0,k._)(this,u);else try{(0,C._)(this,c,t.select),s=t.select(w.data),s=(0,I.replaceData)(null==_?void 0:_.data,s,t),(0,C._)(this,u,s),(0,C._)(this,h,null)}catch(e){(0,C._)(this,h,e)}else s=w.data;if(void 0!==t.placeholderData&&void 0===s&&"pending"===R){let e;if((null==_?void 0:_.isPlaceholderData)&&t.placeholderData===(null==b?void 0:b.placeholderData))e=_.data;else{var S;if(e="function"==typeof t.placeholderData?t.placeholderData(null==(S=(0,k._)(this,d))?void 0:S.state.data,(0,k._)(this,d)):t.placeholderData,t.select&&void 0!==e)try{e=t.select(e),(0,C._)(this,h,null)}catch(e){(0,C._)(this,h,e)}}void 0!==e&&(R="success",s=(0,I.replaceData)(null==_?void 0:_.data,e,t),g=!0)}(0,k._)(this,h)&&(x=(0,k._)(this,h),s=(0,k._)(this,u),j=Date.now(),R="error");let O="fetching"===w.fetchStatus,E="pending"===R,M="error"===R,W=E&&O,N=void 0!==s,z={status:R,fetchStatus:w.fetchStatus,isPending:E,isSuccess:"success"===R,isError:M,isInitialLoading:W,isLoading:W,data:s,dataUpdatedAt:w.dataUpdatedAt,error:x,errorUpdatedAt:j,failureCount:w.fetchFailureCount,failureReason:w.fetchFailureReason,errorUpdateCount:w.errorUpdateCount,isFetched:w.dataUpdateCount>0||w.errorUpdateCount>0,isFetchedAfterMount:w.dataUpdateCount>m.dataUpdateCount||w.errorUpdateCount>m.errorUpdateCount,isFetching:O,isRefetching:O&&!E,isLoadingError:M&&!N,isPaused:"paused"===w.fetchStatus,isPlaceholderData:g,isRefetchError:M&&N,isStale:F(e,t),refetch:this.refetch,promise:(0,k._)(this,o)};if(this.options.experimental_prefetchInRender){let t=e=>{"error"===z.status?e.reject(z.error):void 0!==z.data&&e.resolve(z.data)},s=()=>{t((0,C._)(this,o,z.promise=(0,q.pendingThenable)()))},i=(0,k._)(this,o);switch(i.status){case"pending":e.queryHash===f.queryHash&&t(i);break;case"fulfilled":("error"===z.status||z.data!==i.value)&&s();break;case"rejected":("error"!==z.status||z.error!==i.reason)&&s()}}return z}updateResult(e){let t=(0,k._)(this,r),s=this.createResult((0,k._)(this,i),this.options);if((0,C._)(this,l,(0,k._)(this,i).state),(0,C._)(this,n,this.options),void 0!==(0,k._)(this,l).data&&(0,C._)(this,d,(0,k._)(this,i)),(0,I.shallowEqualObjects)(s,t))return;(0,C._)(this,r,s);let a={},o=()=>{if(!t)return!0;let{notifyOnChangeProps:e}=this.options,s="function"==typeof e?e():e;if("all"===s||!s&&!(0,k._)(this,v).size)return!0;let i=new Set(null!=s?s:(0,k._)(this,v));return this.options.throwOnError&&i.add("error"),Object.keys((0,k._)(this,r)).some(e=>(0,k._)(this,r)[e]!==t[e]&&i.has(e))};(null==e?void 0:e.listeners)!==!1&&o()&&(a.listeners=!0),(0,E._)(this,S,X).call(this,{...a,...e})}onQueryUpdate(){this.updateResult(),this.hasListeners()&&(0,E._)(this,g,V).call(this)}constructor(e,t){super(),(0,M._)(this,b),(0,M._)(this,m),(0,M._)(this,y),(0,M._)(this,w),(0,M._)(this,g),(0,M._)(this,x),(0,M._)(this,j),(0,M._)(this,R),(0,M._)(this,S),(0,O._)(this,s,{writable:!0,value:void 0}),(0,O._)(this,i,{writable:!0,value:void 0}),(0,O._)(this,a,{writable:!0,value:void 0}),(0,O._)(this,r,{writable:!0,value:void 0}),(0,O._)(this,l,{writable:!0,value:void 0}),(0,O._)(this,n,{writable:!0,value:void 0}),(0,O._)(this,o,{writable:!0,value:void 0}),(0,O._)(this,h,{writable:!0,value:void 0}),(0,O._)(this,c,{writable:!0,value:void 0}),(0,O._)(this,u,{writable:!0,value:void 0}),(0,O._)(this,d,{writable:!0,value:void 0}),(0,O._)(this,f,{writable:!0,value:void 0}),(0,O._)(this,p,{writable:!0,value:void 0}),(0,O._)(this,_,{writable:!0,value:void 0}),(0,O._)(this,v,{writable:!0,value:new Set}),this.options=t,(0,C._)(this,s,e),(0,C._)(this,h,null),(0,C._)(this,o,(0,q.pendingThenable)()),this.options.experimental_prefetchInRender||(0,k._)(this,o).reject(Error("experimental_prefetchInRender feature flag is not enabled")),this.bindMethods(),this.setOptions(t)}});function D(e,t){return!1!==(0,I.resolveEnabled)(t.enabled,e)&&void 0===e.state.data&&("error"!==e.state.status||!1!==t.retryOnMount)||void 0!==e.state.data&&P(e,t,t.refetchOnMount)}function P(e,t,s){if(!1!==(0,I.resolveEnabled)(t.enabled,e)){let i="function"==typeof s?s(e):s;return"always"===i||!1!==i&&F(e,t)}return!1}function Q(e,t,s,i){return(e!==t||!1===(0,I.resolveEnabled)(i.enabled,e))&&(!s.suspense||"error"!==e.state.status)&&F(e,s)}function F(e,t){return!1!==(0,I.resolveEnabled)(t.enabled,e)&&e.isStaleByTime((0,I.resolveStaleTime)(t.staleTime,e))}function L(e){(0,E._)(this,R,J).call(this);let t=(0,k._)(this,i).fetch(this.options,e);return(null==e?void 0:e.throwOnError)||(t=t.catch(I.noop)),t}function A(){(0,E._)(this,x,B).call(this);let e=(0,I.resolveStaleTime)(this.options.staleTime,(0,k._)(this,i));if(I.isServer||(0,k._)(this,r).isStale||!(0,I.isValidTimeout)(e))return;let t=(0,I.timeUntilStale)((0,k._)(this,r).dataUpdatedAt,e);(0,C._)(this,f,setTimeout(()=>{(0,k._)(this,r).isStale||this.updateResult()},t+1))}function G(){var e;return null!=(e="function"==typeof this.options.refetchInterval?this.options.refetchInterval((0,k._)(this,i)):this.options.refetchInterval)&&e}function H(e){(0,E._)(this,j,K).call(this),(0,C._)(this,_,e),!I.isServer&&!1!==(0,I.resolveEnabled)(this.options.enabled,(0,k._)(this,i))&&(0,I.isValidTimeout)((0,k._)(this,_))&&0!==(0,k._)(this,_)&&(0,C._)(this,p,setInterval(()=>{(this.options.refetchIntervalInBackground||W.focusManager.isFocused())&&(0,E._)(this,b,L).call(this)},(0,k._)(this,_)))}function V(){(0,E._)(this,m,A).call(this),(0,E._)(this,w,H).call(this,(0,E._)(this,y,G).call(this))}function B(){(0,k._)(this,f)&&(clearTimeout((0,k._)(this,f)),(0,C._)(this,f,void 0))}function K(){(0,k._)(this,p)&&(clearInterval((0,k._)(this,p)),(0,C._)(this,p,void 0))}function J(){let e=(0,k._)(this,s).getQueryCache().build((0,k._)(this,s),this.options);if(e===(0,k._)(this,i))return;let t=(0,k._)(this,i);(0,C._)(this,i,e),(0,C._)(this,a,e.state),this.hasListeners()&&(null==t||t.removeObserver(this),e.addObserver(this))}function X(e){N.notifyManager.batch(()=>{e.listeners&&this.listeners.forEach(e=>{e((0,k._)(this,r))}),(0,k._)(this,s).getQueryCache().notify({query:(0,k._)(this,i),type:"observerResultsUpdated"})})}e.i(37427);var Y=e.i(14593),Z=e.i(7631);e.i(67720);var $=Y.createContext(function(){let e=!1;return{clearReset:()=>{e=!1},reset:()=>{e=!0},isReset:()=>e}}());function ee(){}var et=Y.createContext(!1);et.Provider;var es=(e,t,s)=>t.fetchOptimistic(e).catch(()=>{s.clearReset()});function ei(e,t){return function(e,t,s){var i,a,r,l,n;let o=(0,Z.useQueryClient)(s),h=Y.useContext(et),c=Y.useContext($),u=o.defaultQueryOptions(e);null==(a=o.getDefaultOptions().queries)||null==(i=a._experimental_beforeQuery)||i.call(a,u),u._optimisticResults=h?"isRestoring":"optimistic";let d=u.staleTime;u.suspense&&(u.staleTime="function"==typeof d?function(){for(var e=arguments.length,t=Array(e),s=0;s{c.clearReset()},[c]);let f=!o.getQueryCache().get(u.queryHash),[p]=Y.useState(()=>new t(o,u)),_=p.getOptimisticResult(u),v=!h&&!1!==e.subscribed;if(Y.useSyncExternalStore(Y.useCallback(e=>{let t=v?p.subscribe(N.notifyManager.batchCalls(e)):ee;return p.updateResult(),t},[p,v]),()=>p.getCurrentResult(),()=>p.getCurrentResult()),Y.useEffect(()=>{p.setOptions(u,{listeners:!1})},[u,p]),(null==u?void 0:u.suspense)&&_.isPending)throw es(u,p,c);if((e=>{var t,s;let{result:i,errorResetBoundary:a,throwOnError:r,query:l}=e;return i.isError&&!a.isReset()&&!i.isFetching&&l&&(t=r,s=[i.error,l],"function"==typeof t?t(...s):!!t)})({result:_,errorResetBoundary:c,throwOnError:u.throwOnError,query:o.getQueryCache().get(u.queryHash)}))throw _.error;if(null==(l=o.getDefaultOptions().queries)||null==(r=l._experimental_afterQuery)||r.call(l,u,_),u.experimental_prefetchInRender&&!I.isServer&&_.isLoading&&_.isFetching&&!h){let e=f?es(u,p,c):null==(n=o.getQueryCache().get(u.queryHash))?void 0:n.promise;null==e||e.catch(ee).finally(()=>{p.updateResult()})}return u.notifyOnChangeProps?_:p.trackResult(_)}(e,U,t)}function ea(e,s){return ei({queryFn:async()=>await t(),queryKey:["useGetDevStack"],...e},s)}async function er(){let e=await fetch("https://datastore.itcode.dev/itcode/video");if(e.ok)return await e.json();throw Error(e.statusText)}function el(e){return ei({queryFn:async()=>await er(),queryKey:["useGetVideos"],...e})}e.s(["useGetVideos",()=>el],18185)},84555,e=>{"use strict";e.s(["default",()=>n]);var t=e.i(67720),s=e.i(85345),i=e.i(81212);e.i(87255);var a=e.i(18185);e.i(82558);var r=e.i(65001),l=e.i(14593);function n(e){let{src:n,isImage:o,stop:h,children:c,className:u,...d}=e,{data:f=[]}=(0,a.useGetVideos)(),p=(0,l.useMemo)(()=>(0,r.pickIndex)(f),[f]);return(0,t.jsxs)("div",{className:(0,i.cn)("relative size-full",u),"data-component":"Screener",...d,children:[(0,t.jsx)("div",{className:"absolute top-0 left-0 z-10 size-full bg-[#00000080]",children:c}),(0,t.jsx)("div",{className:"pointer-events-none absolute top-0 left-0 size-full",children:!0===o&&void 0!==n?(0,t.jsx)(s.default,{alt:n,className:"size-full object-cover object-center",fill:!0,src:n}):(0,t.jsx)("video",{autoPlay:!0!==h,className:"size-full object-cover object-center",controls:!1,loop:!0,muted:!0,src:null!=n?n:f[p]})})]})}},93700,e=>{"use strict";e.s(["default",()=>h],93700);var t=e.i(67720),s=e.i(81212);e.i(82558);var i=e.i(58446),a=e.i(14593),r=e.i(27159),l=e.i(85345),n=e.i(17232);let o=function(e){let{projectId:i,title:a,author:o,icon:h,thumbnail:c,completedAt:u,createdAt:d,className:f,...p}=e,_=Math.round(((null!=u?u:Date.now())-d)/864e5);return(0,t.jsx)(n.default,{className:(0,s.cn)("group flex flex-col",f),"data-component":"ProjectCard",href:"/projects/".concat(i),...p,children:(0,t.jsxs)("div",{className:"flex size-full flex-col",children:[(0,t.jsxs)("div",{className:"flex h-max flex-1 items-center gap-4 px-2 py-2",children:[(0,t.jsx)("div",{className:"size-8",children:(0,t.jsx)(l.default,{alt:a,className:"drop-shadow",fill:!0,src:h})}),(0,t.jsxs)("div",{className:"flex flex-1 flex-col",children:[(0,t.jsx)(r.default,{className:"font-bold",children:a}),(0,t.jsxs)("div",{className:"flex items-center justify-between gap-2",children:[(0,t.jsx)(r.default,{variant:"muted",children:o}),(0,t.jsx)(r.default,{className:(0,s.cn)({"text-green-600":void 0!==u,"text-orange-400":void 0===u}),variant:"small",children:void 0!==u?"".concat(_,"일 소요됨"):"D+".concat(_)})]})]})]}),(0,t.jsxs)("div",{className:"relative aspect-square overflow-hidden",children:[(0,t.jsx)("div",{className:"absolute top-0 left-0 size-full blur-2xl",children:(0,t.jsx)(l.default,{alt:a,fill:!0,src:c})}),(0,t.jsx)("div",{className:"absolute top-0 left-0 flex size-full items-center justify-center",children:(0,t.jsx)("div",{className:"size-4/5 transition-all duration-300 group-hover:size-full",children:(0,t.jsx)(l.default,{alt:a,fill:!0,src:c})})})]})]})})};function h(e){let{list:r}=e,[l,n]=(0,a.useState)(null),[h,c]=(0,a.useState)(!1);return(0,i.useIntersectionObserver)(l,e=>{e.isIntersecting&&c(e.isIntersecting)}),(0,t.jsx)("div",{className:"grid grid-cols-1 xs:grid-cols-2 gap-2 md:grid-cols-3 lg:grid-cols-4","data-component":"ProjectList",ref:n,children:r.map((e,i)=>{let{projectId:a,...r}=e;return(0,t.jsx)(o,{className:(0,s.cn)("scale-0",{"animate-show":h}),projectId:a,scroll:!1,style:{animationDelay:"".concat(.1*i,"s")},...r},a)})})}},63769,e=>{"use strict";e.s(["Code",()=>t],63769);let t=(0,e.i(88443).default)("Code",[["polyline",{points:"16 18 22 12 16 6",key:"z7tu5w"}],["polyline",{points:"8 6 2 12 8 18",key:"1eg1df"}]])},12490,e=>{"use strict";e.s(["Separator",()=>h],12490);var t=e.i(67720),s=e.i(14593);e.i(71552);var i=e.i(50809),a=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"].reduce((e,a)=>{let r=(0,i.createSlot)("Primitive.".concat(a)),l=s.forwardRef((e,s)=>{let{asChild:i,...l}=e;return"undefined"!=typeof window&&(window[Symbol.for("radix-ui")]=!0),(0,t.jsx)(i?r:a,{...l,ref:s})});return l.displayName="Primitive.".concat(a),{...e,[a]:l}},{}),r="horizontal",l=["horizontal","vertical"],n=s.forwardRef((e,s)=>{var i;let{decorative:n,orientation:o=r,...h}=e,c=(i=o,l.includes(i))?o:r;return(0,t.jsx)(a.div,{"data-orientation":c,...n?{role:"none"}:{"aria-orientation":"vertical"===c?c:void 0,role:"separator"},...h,ref:s})});n.displayName="Separator";var o=e.i(81212);let h=s.forwardRef((e,s)=>{let{className:i,orientation:a="horizontal",decorative:r=!0,...l}=e;return(0,t.jsx)(n,{ref:s,decorative:r,orientation:a,className:(0,o.cn)("shrink-0 bg-border","horizontal"===a?"h-[1px] w-full":"h-full w-[1px]",i),...l})});h.displayName=n.displayName},4569,e=>{e.v(t=>Promise.all(["static/chunks/910e2907c03d1d10.js","static/chunks/6f7d6fd386b21a1a.js"].map(t=>e.l(t))).then(()=>t(63952)))}]);