1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3185],{48590:function(e,t,r){Promise.resolve().then(r.bind(r,76057)),Promise.resolve().then(r.bind(r,41308)),Promise.resolve().then(r.bind(r,70006))},76057:function(e,t,r){"use strict";r.d(t,{default:function(){return a}});var n=r(26705),o=r(16463),u=r(84045),c=r.n(u),s=r(20955);function a(){let e=(0,o.usePathname)(),[t,r]=(0,s.useState)(!1),u=e.startsWith("/projects/")&&"/projects"!==e;return(0,n.jsx)("div",{id:"project-clone-root",className:"".concat(c().projectCloneRoot," ").concat("/"===e||u?c().active:"")})}},41308:function(e,t,r){"use strict";r.d(t,{ProjectCloneProvider:function(){return s},X:function(){return c}});var n=r(26705),o=r(20955);let u=(0,o.createContext)({clonedProject:null,setClonedProject:()=>{},isProjectToProjectNav:!1,setIsProjectToProjectNav:()=>{}});function c(){return(0,o.useContext)(u)}function s(e){let{children:t}=e,[r,c]=(0,o.useState)(null),[s,a]=(0,o.useState)(!1);return(0,n.jsx)(u.Provider,{value:{clonedProject:r,setClonedProject:c,isProjectToProjectNav:s,setIsProjectToProjectNav:a},children:t})}},16463:function(e,t,r){"use strict";var n=r(71169);r.o(n,"usePathname")&&r.d(t,{usePathname:function(){return n.usePathname}}),r.o(n,"useRouter")&&r.d(t,{useRouter:function(){return n.useRouter}}),r.o(n,"useSearchParams")&&r.d(t,{useSearchParams:function(){return n.useSearchParams}}),r.o(n,"useServerInsertedHTML")&&r.d(t,{useServerInsertedHTML:function(){return n.useServerInsertedHTML}})},58064:function(e,t,r){"use strict";Object.defineProperty(t,"$",{enumerable:!0,get:function(){return o}});let n=r(74590);function o(e){let{createServerReference:t}=r(12139);return t(e,n.callServer)}},84045:function(e){e.exports={projectCloneRoot:"ProjectCloneRoot_projectCloneRoot__uECBZ",active:"ProjectCloneRoot_active__u_Xko"}},70006:function(e,t,r){"use strict";r.r(t),r.d(t,{default:function(){return i}});var n=r(16463);r(74590);var o=(0,r(58064).$)("6d69f692d78a8846fad1639385fd46ffd3739cd7"),u=r(20955);function c(e){let t=e.indexOf("#"),r=e.indexOf("?"),n=r>-1&&(t<0||r<t);return n||t>-1?{pathname:e.substring(0,n?r:t),query:n?e.substring(r,t>-1?t:void 0):"",hash:t>-1?e.slice(t):""}:{pathname:e,query:"",hash:""}}function s(e,t){if(!function(e,t){if("string"!=typeof e)return!1;let{pathname:r}=c(e);return r===t||r.startsWith("".concat(t,"/"))}(e,t))return e;let r=e.slice(t.length);return r.startsWith("/")?r:"/".concat(r)}let a=(e,t)=>{let{pathname:r,query:n,hash:o}=c(e);return t?r.endsWith("/")?"".concat(r).concat(n).concat(o):"".concat(r,"/").concat(n).concat(o):"".concat(r.replace(/\/$/,"")||"/").concat(n).concat(o)};function i(e){let{refresh:t,zIndex:i,basePath:l="",trailingSlash:d=!1}=e,f=(0,n.useRouter)(),h=(0,u.useRef)(f),[p,v]=(0,u.useState)();(0,u.useEffect)(()=>{h.current=f},[f]),(0,u.useEffect)(()=>{let e=function(e={}){let t=new AbortController;return Promise.all([r.e(1145),r.e(6912)]).then(r.bind(r,30386)).then(({renderVisualEditing:r})=>{let{signal:n}=t;n.aborted||r(n,e)}),()=>{t.abort()}}({zIndex:i,refresh:t||(e=>{switch(e.source){case"manual":return e.livePreviewEnabled?(console.debug("Live preview is setup, calling router.refresh() to refresh the server components without refetching cached data"),h.current.refresh(),Promise.resolve()):(console.debug("No loaders in live mode detected, or preview kit setup, revalidating root layout"),o());case"mutation":return e.livePreviewEnabled?(console.debug("Live preview is setup, mutation is skipped assuming its handled by the live preview"),!1):(console.debug("No loaders in live mode detected, or preview kit setup, revalidating root layout"),o());default:throw Error("Unknown refresh source",{cause:e})}}),history:{subscribe:e=>(v(()=>e),()=>v(void 0)),update:e=>{switch(e.type){case"push":return h.current.push(s(e.url,l));case"pop":return h.current.back();case"replace":return h.current.replace(s(e.url,l));default:throw Error("Unknown update type: ".concat(e.type))}}}});return()=>e()},[l,t,i]);let P=(0,n.usePathname)(),m=(0,n.useSearchParams)();return(0,u.useEffect)(()=>{p&&p({type:"push",url:a(function(e,t){if(!e.startsWith("/")||!t)return e;if("/"===e&&t)return t;let{pathname:r,query:n,hash:o}=c(e);return"".concat(t).concat(r).concat(n).concat(o)}("".concat(P).concat(null!=m&&m.size?"?".concat(m):""),l),d)})},[l,p,P,m,d]),null}}},function(e){e.O(0,[7743,4121,3914,1744],function(){return e(e.s=48590)}),_N_E=e.O()}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.