"use strict";(globalThis.webpackChunk_affine_web=globalThis.webpackChunk_affine_web||[]).push([[3710],{73710:(e,r,t)=>{t.r(r),t.d(r,{Component:()=>s,loader:()=>c});var o=t(36870),a=t(52490),n=t(42277);let i=["stripe.com","github.com","twitter.com","discord.gg","youtube.com","t.me","reddit.com","affine.pro"],l=new a.k("redirect_proxy"),c=async({request:e})=>{let r=new URL(e.url).searchParams.get("redirect_uri");if(!r)return{allow:!1};try{let e=new URL(r);(e.hostname===window.location.hostname||i.some(r=>RegExp(`.?${r}$`).test(e.hostname)))&&(location.href=r)}catch(e){return l.error("Failed to parse redirect uri",e),{allow:!1}}return{allow:!0}},s=()=>{let{allow:e}=(0,n.LG)();return e?null:(0,o.jsx)(n.C5,{to:"/404"})}}}]); //# sourceMappingURL=chunk.3710.33a28c9c.js.map