(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[312],{1515:function(e,t,r){"use strict";r.d(t,{cL:function(){return f},Mo:function(){return d}});var n=r(27899),o=r(67294),a=r(77183),c=r(80654),i=r(44343);let u=()=>({pagesRouter:(0,i.useRouter)()}),s=(e,t,r,a=!0)=>{let i=o.useRef(0),{pagesRouter:s}=u(),{session:l,isLoaded:h}=(0,n.kP)();(0,c.rx)()||o.useEffect(()=>{if(!h||r&&"path"!==r||a&&!l)return;let n=new AbortController,o=()=>{let r=s?`${t}/[[...index]].tsx`:`${t}/[[...rest]]/page.tsx`;throw Error(` Clerk: The <${e}/> component is not configured correctly. The most likely reasons for this error are: 1. The "${t}" route is not a catch-all route. It is recommended to convert this route to a catch-all route, eg: "${r}". Alternatively, you can update the <${e}/> component to use hash-based routing by setting the "routing" prop to "hash". 2. The <${e}/> component is mounted in a catch-all route, but all routes under "${t}" are protected by the middleware. To resolve this, ensure that the middleware does not protect the catch-all route or any of its children. If you are using the "createRouteMatcher" helper, consider adding "(.*)" to the end of the route pattern, eg: "${t}(.*)". For more information, see: https://clerk.com/docs/references/nextjs/clerk-middleware#create-route-matcher `)};return s?s.pathname.match(/\[\[\.\.\..+]]/)||o():(async()=>{let t;if(i.current++,!(i.current>1)){try{let r=`${window.location.origin}${window.location.pathname}/${e}_clerk_catchall_check_${Date.now()}`;t=await fetch(r,{signal:n.signal})}catch(e){}(null==t?void 0:t.status)===404&&o()}})(),()=>{i.current>1&&n.abort()}},[h])},l=()=>{let e=o.useRef(),{pagesRouter:t}=u();if(t)return e.current||(e.current=t.pathname.replace(/\/\[\[\.\.\..*/,"")),e.current;let n=r(39332).usePathname,a=r(39332).useParams,c=(n()||"").split("/").filter(Boolean),i=Object.values(a()||{}).filter(e=>Array.isArray(e)).flat(1/0);return e.current||(e.current=`/${c.slice(0,c.length-i.length).join("/")}`),e.current};function h(e,t,r=!0){let n=l(),o=(0,a.EJ)(e,t,{path:n});return s(e,n,o.routing,r),o}Object.assign(e=>o.createElement(n.Iw,{...h("UserProfile",e)}),{...n.Iw}),Object.assign(e=>o.createElement(n.A,{...h("OrganizationProfile",e)}),{...n.A});let f=e=>o.createElement(n.cL,{...h("SignIn",e,!1)}),d=e=>o.createElement(n.Mo,{...h("SignUp",e,!1)})},6821:function(e,t,r){(window.__NEXT_P=window.__NEXT_P||[]).push(["/sign-in",function(){return r(1168)}])},1168:function(e,t,r){"use strict";r.r(t);var n=r(85893),o=r(1515);t.default=()=>(0,n.jsx)(o.cL,{path:"/sign-in",routing:"path",signUpUrl:"/sign-up"})}},function(e){e.O(0,[888,774,179],function(){return e(e.s=6821)}),_N_E=e.O()}]);