PageSourceSearch

https://www.guycameron.me/vite/assets/SitePage-Cfvf9HsB.js

js guycameron.me collected 2026-09-29 11:55:51 UTC 59,786 bytes, 18 lines download raw bytes

1const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/ContentScreen-Ctf5ucaF.js","assets/RenderReact-D01794dB.js","assets/index-BrgB-2s_.js","assets/index-BVi7EXb0.js","assets/ConfigTanstackQuery-vtCUV_at.js","assets/isObjectLike-nLWjQ9zq.js","assets/index-CFcgNnu0.js","assets/getAuthenticityToken-CMfMkA-b.js","assets/BlocksEditor-CAUXMZWr.js","assets/refreshPreview-BuhiaIfi.js","assets/clsx-B7rjN5bm.js","assets/iconify-DOvuEbFR.js","assets/config-DVYdRYYy.js","assets/index.prod-DA3Fci0A.js","assets/ConfigAccount-Egq9Y64d.js","assets/index-DVSp3ZRh.js","assets/CurrentSiteIdContext-MK8CVTxU.js","assets/YoutubeFields-DpXDgUUp.js","assets/formik.esm-DBS4aoCG.js","assets/isEmpty-DlXo6s1t.js","assets/index.esm-BxfKy9L_.js","assets/JsErb-DabgBzwQ.js","assets/findPropertyMatch-Ch7iOhxA.js","assets/find-C0QuYxBI.js","assets/_arrayEach-DpGxo2Of.js","assets/index-B6jTVFj0.js","assets/capitalize-N_VoQO5C.js","assets/_stringToArray-siYPoHCM.js","assets/index-4eUNG4Ql.js","assets/List-C5v-5Z_d.js","assets/index-BojVbZw0.js","assets/index-5X5g4BrD.js","assets/bundle.esm-CW22UBVJ.js","assets/List-Du9ebmKi.css","assets/MediaFilesApi-DUyjsAkq.js","assets/usePicture-LJLoIKae.js","assets/unsplash-js.esm-DJDHqe3T.js","assets/index-Dm56dulf.js","assets/index-D_yd_HrL.js","assets/usePictures-2GRCkcSR.js","assets/index-C9qlR54Q.js","assets/TileGrid-ubL13F6Z.js","assets/TileGrid-CkzsMBVV.css","assets/index-CXT21DDF.js","assets/times-D-RpD31p.js","assets/_castFunction-8GbB0kW9.js","assets/index-BVSdvhK8.js","assets/inflection-CWKxl8AH.js","assets/index-CU9rFyBU.css","assets/YoutubeFields-Dj5MDSdS.css","assets/index-Bfjrilrr.js","assets/index-Bi5lei3d.js","assets/index-B4Qbta6p.css","assets/BlocksEditor-BaiznWLJ.css","assets/AcademicLinkApi-CbT3FCCY.js","assets/connectToChild-CYVGlWxw.js","assets/Editor-sbpnT0CJ.js","assets/AboutApi-DmUH4GHw.js","assets/DescriptionScreen-DGrWRH73.js","assets/TextareaEditable-CFi4hazc.js","assets/index-CMRlsKda.js","assets/EmojiLinkTile-DdTx3v-4.js","assets/EmojiLinkTile-BsJpqhln.css","assets/LinkGroup-BCI07_vg.js","assets/LinkGroup-5nXTRifV.css","assets/TitleLinkTile-KlvAyCdF.js","assets/SharedScreen-DzKUbet4.js","assets/ListItemLink-DBD3L0QR.js","assets/index-CjpYfYsK.js","assets/AppearanceApi--v84OnGA.js","assets/AppearanceValueSelect-mME5J_h8.js","assets/index-BWuRcdZP.js","assets/index-DxDT7D1U.js","assets/EasyEditables-C4lZdIzy.js","assets/PictureEditable-CG6---xM.js","assets/UnsplashDialog-DEPHNHn_.js","assets/UnsplashDialog-ClSlL_os.css","assets/SitePropType-DpPhg30S.js","assets/PictureEditable-BOy_S85q.css","assets/TextEditable-By2GMjF2.js","assets/TabsWrapper-CRHC0noZ.js","assets/EditSharing-D1xHirdH.js","assets/SharerSettingEditable-Dr0CqdCZ.js","assets/SelectEditable-BAdPvdjp.js","assets/scrollIntoView-cocFt4ir.js","assets/SelectEditable-COkagzoT.css","assets/index-WrZO1uwM.js","assets/AnalyticsScreen-BQaTyTXn.js","assets/ContactScreen-BWK3H0KY.js","assets/SwitchEditable-fPGbItjF.js","assets/index-CN4sa3p-.js","assets/EditSpecialPageOptions-b7OOm3W_.js","assets/SpecialPagesApi-tir_EuXF.js","assets/UpgradeNotice-BY7ldGyP.js","assets/index-BXdpsaRM.js","assets/CoursesApi-ClUw1aGa.js","assets/index-kbVCk0eB.js","assets/LinkPickerDialog-sqLolEIi.js","assets/truncate-DHTE0Na-.js","assets/index-BLIcjHgg.css","assets/index-BEPE9aMT.js","assets/SectionsApi-gE_cVT2i.js","assets/index-CEmDAnmv.js","assets/EditSpecialPageSharing-Dap6nN-z.js","assets/index-Yz6wkJ4Z.js","assets/index-DDLAVEy0.js","assets/index-B0f8iUSZ.js","assets/index-BZFtsCaC.js","assets/index-Dg9masoT.js","assets/index-BLnvUqGJ.js","assets/SignupNotice-XBVPO5j2.js","assets/index-ClyA_wOW.js","assets/index-CkQJh-p-.js","assets/index-CH2aOVTX.js","assets/index-DV8AMsms.js","assets/dateformat-oVxhnyrt.js","assets/index-CTQ4RB1C.css","assets/index-DmsRB4VZ.js","assets/index-B2za4srX.js","assets/index-CMpJVARS.css","assets/index-uvrQ6qbO.js","assets/index-DCvXFUBn.js","assets/SiteMembershipsApi-jsAsiri1.js","assets/index-DOS3oVT_.js","assets/forEach-DenfW51K.js","assets/map-20zVmCGU.js","assets/index-DcgSQAJq.js","assets/MyMembershipsApi-LdFrYDCU.js","assets/index-DZ7hiPfQ.js","assets/index-DUA4-pX0.js","assets/index-CUb-0tSm.css","assets/index-Db38KGgJ.js","assets/usePolicies-pOqw5k-p.js","assets/TotalFilesBytesPanel-UavRdVjX.js","assets/TotalFilesBytesPanel-Bj1Q_ZBp.css","assets/index-CW_Y7dK3.js","assets/index-Cjp_zNG8.js","assets/PagesApi-DGafhDXz.js","assets/index-B_4gQ6Fw.css","assets/index-DVuOIm4V.js","assets/index-PB-4TzSC.js","assets/PageNotFoundScreen-Bs6ebEBT.js","assets/index-CL1QZf_Y.js","assets/index-CHDwZnk0.js","assets/index-elvTF004.js","assets/ErrorExplanation-DGEWtJyL.js","assets/index-qPR0T8fP.js","assets/index-BXDR8A2W.js","assets/PeopleApi-D-1u5crk.js","assets/index-CHDcdZ-9.js","assets/index-BPLzLpp1.js","assets/index-DwYBhmZk.js","assets/SelectUnsplashButton-BI4pkwu5.js","assets/SelectUnsplashButton-C8fMbY1j.css","assets/index-CdccnPet.css","assets/index-CZB2o92O.js","assets/index-BdVeivb0.css","assets/index-CpYii4FM.js","assets/index-Y9s0t9z-.js","assets/PostsApi-CHaDVD5T.js","assets/index-Bbv9dLZx.js","assets/index-qIyiyyir.js","assets/ProfileApi-BtOn0-RE.js","assets/index-D0lo8sRR.js","assets/ProjectsApi-DHur6cy1.js","assets/index-CZ5tPFy1.js","assets/index-DazumA6V.js","assets/index-BkuhmHsm.js","assets/index-DD0XgRMb.css","assets/index-IMh_l50D.js","assets/index-C_Cli-rW.js","assets/ImportTabs-DypCD9gJ.js","assets/index-CEN7w9ML.js","assets/index-BRHhH1N-.js","assets/index-DUEvwYy6.js","assets/index-CDbwoayv.js","assets/SiteAvatarForm-C0rTn_lN.js","assets/index-DUUmHAHQ.js","assets/SocialLinkScreen-cT5HWNCR.js","assets/SocialLinksApi-Bizfl-qq.js","assets/index-BlEAtjpG.js","assets/index-A4pmFehr.js","assets/index-D-cspiQt.js","assets/index-CbxVQCR6.js","assets/ThemeCustomizationTab-C9mRdG-d.js","assets/ThemeFontTab-CPVKwCXc.js","assets/ThemeFontTab-CJCiNwYZ.css","assets/ThemeColorTab-XEc0zumy.js"])))=>i.map(i=>d[i]);
2import{j as t,R as l}from"./RenderReact-D01794dB.js";import{u as ve,a as B,i as Ne,b as z}from"./getAuthenticityToken-CMfMkA-b.js";import{Q as h,O as Te}from"./index-BrgB-2s_.js";import{f as De,b as Le,g as Ce,c as ze,u as Q,S as re,s as Ve,d as ke,l as Fe,h as $e,e as Be}from"./index-Bfjrilrr.js";import{n as Qe,v as Me,j as Ue,w as ge,x as He,y as qe,u as A,c as We,h as R}from"./refreshPreview-BuhiaIfi.js";import{k as M,h as d,g as P,u as ie,n as Ze,S as Ge,o as Xe}from"./index-Bi5lei3d.js";import{b as Ye,i as Ke,p as Je,C as et}from"./CurrentSiteIdContext-MK8CVTxU.js";import{e as tt}from"./connectToChild-CYVGlWxw.js";import{I as S}from"./iconify-DOvuEbFR.js";import{u as rt}from"./index.esm-BxfKy9L_.js";import{a as K}from"./inflection-CWKxl8AH.js";import{D as U}from"./ConfigTanstackQuery-vtCUV_at.js";import{A as k}from"./index-CFcgNnu0.js";import{i as se}from"./isEmpty-DlXo6s1t.js";import{c as it}from"./clsx-B7rjN5bm.js";import{L as nt}from"./Editor-sbpnT0CJ.js";import{P as st,A as ae}from"./AboutApi-DmUH4GHw.js";import{n as H}from"./index.prod-DA3Fci0A.js";function at(){}function ot(i){return i!==i}function ct(i,e,r){for(var n=r-1,s=i.length;++n<s;)if(i[n]===e)return n;return-1}function lt(i,e,r){return e===e?ct(i,e,r):Qe(i,ot,r)}function ut(i,e){var r=i==null?0:i.length;return!!r&&lt(i,e,0)>-1}function be(i){var e=i==null?0:i.length;return e?De(i):[]}function dt(i){for(var e=-1,r=i==null?0:i.length,n=0,s=[];++e<r;){var a=i[e];a&&(s[n++]=a)}return s}var ft=Object.prototype,ht=ft.hasOwnProperty;function pt(i,e){return i!=null&&ht.call(i,e)}function mt(i,e){return i!=null&&Me(i,e,pt)}function xt(i,e,r){return i&&i.length?(e=e===void 0?1:Ue(e),Ye(i,0,e<0?0:e)):[]}
2var _t=1/0,yt=U&&1/ge(new U([,-0]))[1]==_t?function(i){return new U(i)}:at,jt=200;function vt(i,e,r){var n=-1,s=ut,a=i.length,c=!0,o=[],u=o;if(a>=jt){var m=yt(i);if(m)return ge(m);c=!1,s=qe,u=new He}else u=o;e:for(;++n<a;){var p=i[n],f=p;if(p=p!==0?p:0,c&&f===f){for(var x=u.length;x--;)if(u[x]===f)continue e;o.push(p)}else s(u,f,r)||(u!==o&&u.push(f),o.push(p))}return o}function gt(i){return i&&i.length?vt(i):[]}function bt(){return{type:"editorPreview/activatedSiteEditable",payload:{}}}function St(){return{type:"editorPreview/deactivatedSiteEditable",payload:{}}}function Se(){return t.jsxs(Le,{children:[t.jsx(Ce,{}),t.jsx(ze,{style:{display:"relative"},children:t.jsx("div",{className:"flex flex-row items-center justify-center",style:{position:"absolute",inset:0},children:t.jsx("div",{className:"loading loading-lg loading-spinner"})})})]})}const Pt=l.lazy(()=>h(()=>import("./ContentScreen-Ctf5ucaF.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57]))),It=l.lazy(()=>h(()=>import("./DescriptionScreen-DGrWRH73.js"),__vite__mapDeps([58,1,2,54,6,50,9,10,5,4,7,11,13,51,52,59,18,47,25,16,55,20,19,56,14,57]))),Et=l.lazy(()=>h(()=>import("./index-CMRlsKda.js"),__vite__mapDeps([60,1,2,50,9,10,5,4,6,7,11,13,51,52,61,56,14,19,62,63,64,41,32,42,65]))),D=l.lazy(()=>h(()=>import("./SharedScreen-DzKUbet4.js"),__vite__mapDeps([66,1,2,67,56,4,5,6,7,14,51,19,11,9,10,50,13,52]))),wt=l.lazy(()=>h(()=>import("./index-CjpYfYsK.js"),__vite__mapDeps([68,1,2,67,56,4,5,6,7,14,51,19,11,9,10,50,13,52,69,70,15,21,22,23]))),Ot=l.lazy(()=>h(()=>import("./index-BWuRcdZP.js"),__vite__mapDeps([71,1,2,56,4,5,6,7,14,51,19,9,10,11,50,13,52])));function At(){return l.useEffect(()=>{A.emit("init","/link")},[]),t.jsx(l.Suspense,{fallback:t.jsx(Se,{}),children:t.jsxs(M,{children:[t.jsx(d,{path:"/sites/:siteId/academic_link/avatar",children:t.jsx(D,{mode:"avatar"})}),t.jsx(d,{path:"/sites/:siteId/academic_link/content",children:t.jsx(Pt,{})}),t.jsx(d,{path:"/sites/:siteId/academic_link/description",children:t.jsx(It,{})}),t.jsx(d,{path:"/sites/:siteId/academic_link/domain",children:t.jsx(D,{mode:"domain"})}),t.jsx(d,{exact:!0,path:"/sites/:siteId/academic_link",children:t.jsx(Et,{})}),t.jsx(d,{path:"/sites/:siteId/academic_link/name",children:t.jsx(D,{mode:"name"})}),t.jsx(d,{path:"/sites/:siteId/academic_link/social_links",children:t.jsx(D,{mode:"social_links"})}),t.jsx(d,{path:"/sites/:siteId/academic_link/theme",children:t.jsx(wt,{})}),t.jsx(d,{path:"/sites/:siteId/academic_link/theme_font",children:t.jsx(D,{mode:"theme_font"})}),t.jsx(d,{path:"/sites/:siteId/academic_link/theme_palette",children:t.jsx(D,{mode:"theme_palette"})}),t.jsx(d,{path:"/sites/:siteId/academic_link/url_path",children:t.jsx(Ot,{})})]})})}const Rt=l.lazy(()=>h(()=>import("./index-DxDT7D1U.js"),__vite__mapDeps([72,1,2,50,9,10,5,4,6,7,11,13,51,52,57,73,3,8,12,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,53,74,75,76,77,78,79,59,80,56,81,82,83,84,85,55]))),Nt=l.lazy(()=>h(()=>import("./index-WrZO1uwM.js"),__vite__mapDeps([86,1,2,50,9,10,5,4,6,7,11,13,51,52,61,56,14,19,62,41,32,42]))),Tt=l.lazy(()=>h(()=>import("./AnalyticsScreen-BQaTyTXn.js"),__vite__mapDeps([87,1,2,9,10,5,4,6,7,11,50,13,51,52,79,18,47,16,55,20,19,56,14,57]))),Dt=l.lazy(()=>h(()=>import("./ContactScreen-BWK3H0KY.js"),__vite__mapDeps([88,1,2,50,9,10,5,4,6,7,11,13,51,52,74,28,30,40,16,39,36,75,18,19,76,77,78,89,79,47,59,25,55,20,56,14,57]))),Lt=l.lazy(()=>h(()=>import("./index-CN4sa3p-.js"),__vite__mapDeps([90,1,2,7,6,91,56,4,5,14,51,19,9,10,11,50,13,52,73,3,8,12,15,16,17,18,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,53,74,75,76,77,78,79,59,92,80,93,55,57]))),Ct=l.lazy(()=>h(()=>import("./index-BXdpsaRM.js"),__vite__mapDeps([94,1,2,50,9,10,5,4,6,7,11,13,51,52,95,81,82,83,84,18,23,85,73,3,8,12,14,15,16,17,19,20,21,22,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,53,74,75,76,77,78,79,59,96,97,98,99,100,101,80,56,55,57]))),zt=l.lazy(()=>h(()=>import("./index-CEmDAnmv.js"),__vite__mapDeps([102,1,2,91,56,4,5,6,7,14,51,19,9,10,11,50,13,52,73,3,8,12,15,16,17,18,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,53,74,75,76,77,78,79,59,92,103,81,82,83,84,85,80,55,57]))),Vt=l.lazy(()=>h(()=>import("./index-Yz6wkJ4Z.js"),__vite__mapDeps([104,1,2,95,6,4,5,7,50,9,10,11,13,51,52,105,47,18,101,37,23,77,19,80,56,14]))),kt=l.lazy(()=>h(()=>import("./index-B0f8iUSZ.js"),__vite__mapDeps([106,1,2,91,56,4,5,6,7,14,51,19,9,10,11,50,13,52,73,3,8,12,15,16,17,18,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,53,74,75,76,77,78,79,59,92,103,81,82,83,84,85,80,55,57]))),Ft=l.lazy(()=>h(()=>import("./index-BZFtsCaC.js"),__vite__mapDeps([107,1,2,9,10,5,4,6,7,11,50,13,51,52,74,28,30,40,16,39,36,75,18,19,76,77,78]))),$t=l.lazy(()=>h(()=>import("./index-Dg9masoT.js"),__vite__mapDeps([108,1,2,9,10,5,4,6,7,11,50,13,51,52,14]))),Bt=l.lazy(()=>h(()=>import("./index-BLnvUqGJ.js"),__vite__mapDeps([109,1,2,11,9,10,5,4,6,7,63,64,61,56,14,51,19,62,41,32,42,50,13,52,18,110,20,21,22,23]))),Qt=l.lazy(()=>h(()=>import("./index-ClyA_wOW.js"),__vite__mapDeps([111,1,2,7,6,9,10,5,4,11,50,13,51,52,89,79,18,47,93,16,55,20,19,56,14,57]))),Mt=l.lazy(()=>h(()=>import("./index-CkQJh-p-.js"),__vite__mapDeps([112,1,2,9,10,5,4,6,7,11,50,13,51,52,79,18,47,16,55,20,19,56,14,57]))),Ut=l.lazy(()=>h(()=>import("./index-CH2aOVTX.js"),__vite__mapDeps([113,1,2,50,9,10,5,4,6,7,11,13,51,52,73,3,8,12,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,53,74,75,76,77,78,79,59,80,56,55,57]))),Ht=l.lazy(()=>h(()=>import("./index-DV8AMsms.js"),__vite__mapDeps([114,1,2,115,50,9,10,5,4,6,7,11,13,51,52,80,56,14,19,98,27,16,116]))),qt=l.lazy(()=>h(()=>import("./index-DmsRB4VZ.js"),__vite__mapDeps([117,1,2,91,56,4,5,6,7,14,51,19,9,10,11,50,13,52,73,3,8,12,15,16,17,18,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,53,74,75,76,77,78,79,59,92,103,81,82,83,84,85,80,55,57]))),Wt=l.lazy(()=>h(()=>import("./index-B2za4srX.js"),__vite__mapDeps([118,1,2,7,6,50,9,10,5,4,11,13,51,52,61,56,14,19,62,63,64,41,32,42,65,26,27,16,119]))),Zt=l.lazy(()=>h(()=>import("./index-uvrQ6qbO.js"),__vite__mapDeps([120,1,2,31,9,10,5,4,6,7,11,50,13,51,52]))),Gt=l.lazy(()=>h(()=>import("./index-DCvXFUBn.js"),__vite__mapDeps([121,1,2,30,50,9,10,5,4,6,7,11,13,51,52,77,83,84,18,23,85,122]))),Xt=l.lazy(()=>h(()=>import("./index-DOS3oVT_.js"),__vite__mapDeps([123,1,2,50,9,10,5,4,6,7,11,13,51,52,18,122,77,124,24,45,125,30,19,89,80,56,14]))),Yt=l.lazy(()=>h(()=>import("./index-DcgSQAJq.js"),__vite__mapDeps([126,1,2,30,50,9,10,5,4,6,7,11,13,51,52,127]))),Kt=l.lazy(()=>h(()=>import("./index-DZ7hiPfQ.js"),__vite__mapDeps([128,1,2,30,4,5,6,7,50,9,10,11,13,51,52,127,77,19]))),Jt=l.lazy(()=>h(()=>import("./index-DUA4-pX0.js"),__vite__mapDeps([129,1,2,11,50,9,10,5,4,6,7,13,51,52,28,34,79,18,47,16,55,20,19,56,14,57,130]))),er=l.lazy(()=>h(()=>import("./index-Db38KGgJ.js"),__vite__mapDeps([131,1,2,50,9,10,5,4,6,7,11,13,51,52,29,30,31,32,33,34,132,28,133,40,16,134,19]))),tr=l.lazy(()=>h(()=>import("./index-CW_Y7dK3.js"),__vite__mapDeps([135,1,2,7,6,74,4,5,11,28,30,9,10,40,16,39,36,75,18,19,76,77,78,50,13,51,52,79,47,59,25,93,55,20,56,14,57]))),rr=l.lazy(()=>h(()=>import("./index-Cjp_zNG8.js"),__vite__mapDeps([136,1,2,7,6,50,9,10,5,4,11,13,51,52,97,46,18,47,34,16,19,48,37,77,20,43,22,23,137,138]))),ir=l.lazy(()=>h(()=>import("./index-DVuOIm4V.js"),__vite__mapDeps([139,2,1,51,6,4,5,7,50,9,10,11,13,52,16,55,20,47,19,56,14,57]))),nr=l.lazy(()=>h(()=>import("./index-PB-4TzSC.js"),__vite__mapDeps([140,1,2,50,9,10,5,4,6,7,11,13,51,52,73,3,8,12,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,53,74,75,76,77,78,79,59,137,80,56,82,83,84,85,89,55,57]))),sr=l.lazy(()=>h(()=>import("./PageNotFoundScreen-Bs6ebEBT.js"),__vite__mapDeps([141,1,2,9,10,5,4,6,7,11,50,13,51,52]))),ar=l.lazy(()=>h(()=>import("./index-CL1QZf_Y.js"),__vite__mapDeps([142,2,1,9,10,5,4,6,7,11,50,13,51,52]))),or=l.lazy(()=>h(()=>import("./index-CHDwZnk0.js"),__vite__mapDeps([143,1,2,91,56,4,5,6,7,14,51,19,9,10,11,50,13,52,73,3,8,12,15,16,17,18,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,53,74,75,76,77,78,79,59,92,103,81,82,83,84,85,80,55,57]))),cr=l.lazy(()=>h(()=>import("./index-elvTF004.js"),__vite__mapDeps([144,1,2,145,47,4,5,6,7,125,9,10,11,50,13,51,52,137,19,80,56,14]))),lr=l.lazy(()=>h(()=>import("./index-qPR0T8fP.js"),__vite__mapDeps([146,1,2,145,47,4,5,6,7,125,9,10,11,50,13,51,52,137]))),ur=l.lazy(()=>h(()=>import("./index-BXDR8A2W.js"),__vite__mapDeps([147,1,2,145,47,4,5,6,7,125,9,10,11,50,13,51,52,148,105,18,101,37,23,77,19,80,56,14]))),dr=l.lazy(()=>h(()=>import("./index-CHDcdZ-9.js"),__vite__mapDeps([149,1,2,91,56,4,5,6,7,14,51,19,9,10,11,50,13,52,73,3,8,12,15,16,17,18,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,53,74,75,76,77,78,79,59,92,103,81,82,83,84,85,80,55,57]))),fr=l.lazy(()=>h(()=>import("./index-BPLzLpp1.js"),__vite__mapDeps([150,1,2,50,9,10,5,4,6,7,11,13,51,52,81,82,83,84,18,23,85,73,3,8,12,14,15,16,17,19,20,21,22,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,53,74,75,76,77,78,79,59,100,101,148,80,56,55,57]))),hr=l.lazy(()=>h(()=>import("./index-DwYBhmZk.js"),__vite__mapDeps([151,1,2,28,11,50,9,10,5,4,6,7,13,51,52,84,36,19,152,75,18,76,153,79,47,35,16,55,20,56,14,57,154]))),pr=l.lazy(()=>h(()=>import("./index-CZB2o92O.js"),__vite__mapDeps([155,1,2,50,9,10,5,4,6,7,11,13,51,52,31,56,14,19,30,77,28,40,16,152,75,18,36,76,153,133,134,39,156]))),mr=l.lazy(()=>h(()=>import("./index-CpYii4FM.js"),__vite__mapDeps([157,1,2,91,56,4,5,6,7,14,51,19,9,10,11,50,13,52,73,3,8,12,15,16,17,18,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,53,74,75,76,77,78,79,59,92,103,81,82,83,84,85,80,55,57]))),xr=l.lazy(()=>h(()=>import("./index-Y9s0t9z-.js"),__vite__mapDeps([158,1,2,115,145,47,4,5,6,7,125,9,10,11,50,13,51,52,159,77,98,27,16,19,80,56,14,116]))),_r=l.lazy(()=>h(()=>import("./index-Bbv9dLZx.js"),__vite__mapDeps([160,1,2,50,9,10,5,4,6,7,11,13,51,52,81,82,83,84,18,23,85,73,3,8,12,14,15,16,17,19,20,21,22,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,53,74,75,76,77,78,79,59,159,80,56,55,57]))),yr=l.lazy(()=>h(()=>import("./index-qIyiyyir.js"),__vite__mapDeps([161,1,2,50,9,10,5,4,6,7,11,13,51,52,67,56,14,19,69,70,15,21,22,23,73,3,8,12,16,17,18,20,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,53,74,75,76,77,78,79,59,162,80,55,57]))),jr=l.lazy(()=>h(()=>import("./index-D0lo8sRR.js"),__vite__mapDeps([163,1,2,50,9,10,5,4,6,7,11,13,51,52,81,82,83,84,18,23,85,73,3,8,12,14,15,16,17,19,20,21,22,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,53,74,75,76,77,78,79,59,96,97,98,99,164,57,80,56,55]))),vr=l.lazy(()=>h(()=>import("./index-CZ5tPFy1.js"),__vite__mapDeps([165,1,2,9,10,5,4,6,7,11,50,13,51,52,73,3,8,12,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,53,74,75,76,77,78,79,59,164,80,56,55,57]))),gr=l.lazy(()=>h(()=>import("./index-DazumA6V.js"),__vite__mapDeps([166,1,2,91,56,4,5,6,7,14,51,19,9,10,11,50,13,52,73,3,8,12,15,16,17,18,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,53,74,75,76,77,78,79,59,92,103,81,82,83,84,85,80,55,57]))),br=l.lazy(()=>h(()=>import("./index-BkuhmHsm.js"),__vite__mapDeps([167,1,2,50,9,10,5,4,6,7,11,13,51,52,81,82,83,84,18,23,85,73,3,8,12,14,15,16,17,19,20,21,22,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,53,74,75,76,77,78,79,59,124,100,101,96,97,98,99,89,57,80,56,55,168]))),Sr=l.lazy(()=>h(()=>import("./index-IMh_l50D.js"),__vite__mapDeps([169,1,2,56,4,5,6,7,14,51,19,57,50,9,10,11,13,52,105,47,18,101,37,23,77,80]))),Pr=l.lazy(()=>h(()=>import("./index-C_Cli-rW.js"),__vite__mapDeps([170,1,2,50,9,10,5,4,6,7,11,13,51,52,171,38,30,16,57,23,145,47,125,77,19,18,138,55,20,56,14]))),Ir=l.lazy(()=>h(()=>import("./index-CEN7w9ML.js"),__vite__mapDeps([172,1,2,91,56,4,5,6,7,14,51,19,9,10,11,50,13,52,73,3,8,12,15,16,17,18,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,53,74,75,76,77,78,79,59,92,103,81,82,83,84,85,80,55,57]))),Er=l.lazy(()=>h(()=>import("./index-BRHhH1N-.js"),__vite__mapDeps([173,1,2,91,56,4,5,6,7,14,51,19,9,10,11,50,13,52,73,3,8,12,15,16,17,18,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,53,74,75,76,77,78,79,59,92,103,81,82,83,84,85,80,55,57]))),wr=l.lazy(()=>h(()=>import("./index-DUEvwYy6.js"),__vite__mapDeps([174,1,2,9,10,5,4,6,7,11,50,13,51,52,89,47,15,21,22,23,19,16,55,20,56,14,57]))),Or=l.lazy(()=>h(()=>import("./index-CDbwoayv.js"),__vite__mapDeps([175,1,2,9,10,5,4,6,7,11,50,13,51,52,176,74,28,30,40,16,39,36,75,18,19,76,77,78,21,22,23,79,47,55,20,56,14,57]))),Ar=l.lazy(()=>h(()=>import("./index-DUUmHAHQ.js"),__vite__mapDeps([177,1,2,7,6,9,10,5,4,11,50,13,51,52,89,79,18,47,93,16,55,20,19,56,14,57]))),Rr=l.lazy(()=>h(()=>import("./SocialLinkScreen-cT5HWNCR.js"),__vite__mapDeps([178,1,2,50,9,10,5,4,6,7,11,13,51,52,73,3,8,12,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,53,74,75,76,77,78,79,59,179,55,56,57]))),Nr=l.lazy(()=>h(()=>import("./index-BlEAtjpG.js"),__vite__mapDeps([180,1,2,50,9,10,5,4,6,7,11,13,51,52,181,20,43,179,37]))),Tr=l.lazy(()=>h(()=>import("./index-D-cspiQt.js"),__vite__mapDeps([182,1,2,8,9,10,5,4,6,7,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,55,56,57]))),Dr=l.lazy(()=>h(()=>import("./index-CbxVQCR6.js"),__vite__mapDeps([183,1,2,7,6,50,9,10,5,4,11,13,51,52,69,184,185,21,22,23,41,32,42,186,70,15,80,56,
214,19,187,132])));function Lr(){const{site:i}=Q();return l.useEffect(()=>{A.emit("init","/")},[i]),t.jsx(l.Suspense,{fallback:t.jsx(Se,{}),children:t.jsxs(M,{children:[t.jsx(P,{from:"/sites/:siteId/appearance",to:"/sites/:siteId/theme"}),t.jsx(P,{from:"/sites/:siteId/banners",to:"/sites/:siteId/default_banner"}),t.jsx(P,{from:"/sites/:siteId/config",to:"/sites/:siteId"}),t.jsx(P,{from:"/sites/:siteId/custom_domain",to:"/sites/:siteId/domain/custom"}),t.jsx(P,{from:"/sites/:siteId/essentials",to:"/sites/:siteId"}),t.jsx(P,{from:"/sites/:siteId/lists",to:"/sites/:siteId"}),t.jsx(P,{from:"/sites/:siteId/pro_domain",to:"/sites/:siteId/domain/pro"}),t.jsx(P,{from:"/sites/:siteId/publications/find",to:"/sites/:siteId/publications/import"}),t.jsx(P,{from:"/sites/:siteId/settings",to:"/sites/:siteId"}),t.jsx(P,{from:"/sites/:siteId/site_elements",to:"/sites/:siteId"}),t.jsx(P,{from:"/sites/:siteId/subdomain",to:"/sites/:siteId/domain"}),t.jsx(d,{path:"/sites/:siteId/navpages",children:t.jsx(rr,{})}),t.jsx(d,{exact:!0,path:"/sites/:siteId",children:t.jsx(Wt,{})}),t.jsx(d,{path:"/sites/:siteId/about",children:t.jsx(Rt,{})}),t.jsx(d,{path:"/sites/:siteId/academic_gallery",children:t.jsx(Nt,{})}),t.jsx(d,{path:"/sites/:siteId/academic_link",children:t.jsx(At,{})}),t.jsx(d,{exact:!0,path:"/sites/:siteId/analytics",children:t.jsx(Tt,{})}),t.jsx(d,{exact:!0,path:"/sites/:siteId/contact",children:t.jsx(Dt,{})}),t.jsx(d,{path:"/sites/:siteId/contact_form",children:t.jsx(Lt,{})}),t.jsx(d,{path:"/sites/:siteId/courses/:courseId(\\d+)",children:t.jsx(Ct,{})}),t.jsx(d,{path:"/sites/:siteId/courses_page",children:t.jsx(zt,{})}),t.jsx(d,{path:"/sites/:siteId/courses",children:t.jsx(Vt,{})}),t.jsx(d,{path:"/sites/:siteId/cv",children:t.jsx(kt,{})}),t.jsx(d,{exact:!0,path:"/sites/:siteId/default_banner",children:t.jsx(Ft,{})}),t.jsx(d,{exact:!0,path:"/sites/:siteId/delete_site",children:t.jsx($t,{})}),t.jsx(d,{path:"/sites/:siteId/domain",children:t.jsx(Bt,{})}),t.jsx(d,{path:"/sites/:siteId/members/:membershipId(\\d+)",children:t.jsx(Gt,{})}),t.jsx(d,{path:"/sites/:siteId/members",children:t.jsx(Xt,{})}),t.jsx(d,{path:"/sites/:siteId/memberships/:membershipId(\\d+)",children:t.jsx(Yt,{})}),t.jsx(d,{exact:!0,path:"/sites/:siteId/memberships",children:t.jsx(Kt,{})}),t.jsx(d,{exact:!0,path:"/sites/:siteId/footer",children:t.jsx(Qt,{})}),t.jsx(d,{exact:!0,path:"/sites/:siteId/header",children:t.jsx(Mt,{})}),t.jsx(d,{path:"/sites/:siteId/highlights/:highlightId(\\d+)",children:t.jsx(Ut,{})}),t.jsx(d,{path:"/sites/:siteId/highlights",children:t.jsx(Ht,{})}),t.jsx(d,{path:"/sites/:siteId/highlights_page",children:t.jsx(qt,{})}),t.jsx(d,{exact:!0,path:"/sites/:siteId/item_count",children:t.jsx(Zt,{})}),t.jsx(d,{exact:!0,path:"/sites/:siteId/media_files/:mediaFileId(\\d+)",children:t.jsx(Jt,{})}),t.jsx(d,{exact:!0,path:"/sites/:siteId/media_files",children:t.jsx(er,{})}),t.jsx(d,{exact:!0,path:"/sites/:siteId/meta",children:t.jsx(tr,{})}),t.jsx(d,{path:"/sites/:siteId/onboarding",children:t.jsx(ir,{})}),t.jsx(d,{exact:!0,path:"/sites/:siteId/pageviews",children:t.jsx(ar,{})}),t.jsx(d,{path:"/sites/:siteId/pages/:pageId([A-Za-z0-9_-]+)",children:t.jsx(nr,{})}),t.jsx(d,{exact:!0,path:"/sites/:siteId/pages",children:t.jsx(cr,{})}),t.jsx(d,{path:"/sites/:siteId/pages/suggested",children:t.jsx(lr,{})}),t.jsx(d,{path:"/sites/:siteId/pages_page",children:t.jsx(or,{})}),t.jsx(d,{path:"/sites/:siteId/sitewide_password",children:t.jsx(Ar,{})}),t.jsx(d,{path:"/sites/:siteId/people/:personId(\\d+)",children:t.jsx(fr,{})}),t.jsx(d,{path:"/sites/:siteId/people",children:t.jsx(ur,{})}),t.jsx(d,{path:"/sites/:siteId/people_page",children:t.jsx(dr,{})}),t.jsx(d,{exact:!0,path:"/sites/:siteId/pictures",children:t.jsx(pr,{})}),t.jsx(d,{exact:!0,path:"/sites/:siteId/pictures/:pictureId",children:t.jsx(hr,{})}),t.jsx(d,{path:"/sites/:siteId/posts/:postId(\\d+)",children:t.jsx(_r,{})}),t.jsx(d,{path:"/sites/:siteId/posts_page",children:t.jsx(mr,{})}),t.jsx(d,{path:"/sites/:siteId/posts",children:t.jsx(xr,{})}),t.jsx(d,{path:"/sites/:siteId/profile",children:t.jsx(yr,{})}),t.jsx(d,{path:"/sites/:siteId/projects/:projectId(\\d+)",children:t.jsx(jr,{})}),t.jsx(d,{path:"/sites/:siteId/projects",children:t.jsx(vr,{})}),t.jsx(d,{path:"/sites/:siteId/projects_page",children:t.jsx(gr,{})}),t.jsx(d,{path:"/sites/:siteId/publications/import",children:t.jsx(Pr,{})}),t.jsx(d,{path:"/sites/:siteId/publications_page",children:t.jsx(Ir,{})}),t.jsx(d,{path:"/sites/:siteId/publications/:publicationId(\\d+)",children:t.jsx(br,{})}),t.jsx(d,{path:"/sites/:siteId/publications",children:t.jsx(Sr,{})}),t.jsx(d,{path:"/sites/:siteId/search_page",children:t.jsx(Er,{})}),t.jsx(d,{exact:!0,path:"/sites/:siteId/sharer",children:t.jsx(wr,{})}),t.jsx(d,{exact:!0,path:"/sites/:siteId/site_picture",children:t.jsx(Or,{})}),t.jsx(d,{exact:!0,path:"/sites/:siteId/social_links",children:t.jsx(Nr,{})}),t.jsx(d,{exact:!0,path:"/sites/:siteId/social_links/:socialLinkId",children:t.jsx(Rr,{})}),t.jsx(d,{path:"/sites/:siteId/test",children:t.jsx(Tr,{})}),t.jsx(d,{path:"/sites/:siteId/theme",children:t.jsx(Dr,{})}),t.jsx(d,{path:"*",children:t.jsx(sr,{})})]})})}function Cr(){return console.debug("Render Drawer"),t.jsx(M,{children:t.jsx(d,{path:"/sites/:siteId",children:t.jsx(Lr,{})})})}function zr(){const i=ve(),{isActiveSiteEditable:e}=B(n=>n.editorPreview),r=n=>{i(e?St():bt())};return t.jsxs("div",{className:We("btn",{"btn-neutral":e,"btn-ghost":!e}),style:{height:40,minHeight:40},onClick:r,children:["Edit",e?t.jsx(S,{icon:"material-symbols:close",height:"24"}):t.jsx(S,{icon:"material-symbols:edit",height:"24"})]})}const Vr="_header_in10z_11",kr="_addressBar_in10z_20",oe={header:Vr,addressBar:kr};function Fr({pathname:i,site:e}){const n=e.canonical_domain_host+i,s="https://"+n;return t.jsxs("div",{className:`${oe.header} flex flex-row items-center gap-2`,children:[t.jsx(zr,{}),t.jsx("div",{className:"flex-1",style:{minWidth:0},children:t.jsxs("div",{className:`${oe.addressBar} flex flex-row items-center`,style:{minWidth:0},children:[t.jsx("div",{className:"flex-1 max-lines-1 max-lines--ellipsis",children:n}),t.jsx("div",{className:"block tooltip tooltip-bottom","data-tip":"Open in new window",children:t.jsx("a",{className:"flex btn btn-sm btn-ghost btn-circle","aria-label":"Open in new window",href:s,target:"_blank",style:{marginLeft:"16
2px"},children:t.jsx(S,{icon:"material-symbols:open-in-new",height:"24"})})})]})}),t.jsx("div",{className:"flex-none ms-2 hidden-sm-down",children:t.jsx($r,{})}),t.jsx("div",{className:"flex-none hidden-md-up",children:t.jsx(Br,{})})]})}function $r(){const[i,e]=l.useContext(re),r=()=>{e(!i)},n=i?"Close sidebar":"Open sidebar";return t.jsx("div",{className:"tooltip tooltip-bottom","data-tip":n,children:t.jsx("div",{className:"btn btn-sm btn-circle btn-ghost",onClick:r,children:i?t.jsx(S,{icon:"material-symbols:fullscreen",height:"24"}):t.jsx(S,{icon:"material-symbols:fullscreen-exit",height:"24"})})})}function Br(){const[i,e]=l.useContext(re);return i?null:t.jsx("button",{className:"btn btn-sm btn-circle btn-ghost",onClick:()=>e(!0),children:t.jsx(S,{icon:"material-symbols:close",height:"24"})})}const Qr="_root_1ots2_1",Mr="_body_1ots2_10",Ur="_iframe_1ots2_18",q={root:Qr,body:Mr,iframe:Ur};/*! *****************************************************************************
3Copyright (c) Microsoft Corporation. All rights reserved.
4Licensed under the Apache License, Version 2.0 (the "License"); you may not use
5this file except in compliance with the License. You may obtain a copy of the
6License at http://www.apache.org/licenses/LICENSE-2.0
7
8THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
9KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
10WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
11MERCHANTABLITY OR NON-INFRINGEMENT.
12
13See the Apache Version 2.0 License for specific language governing permissions
14and limitations under the License.
15***************************************************************************** */var w=function(){return w=Object.assign||function(e){for(var r,n=1,s=arguments.length;n<s;n++){r=arguments[n];for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&(e[a]=r[a])}return e},w.apply(this,arguments)},Pe=function(e){return e===void 0&&(e={}),{arrayFormat:e.arrayFormat||"none",booleanFormat:e.booleanFormat||"none",nullFormat:e.nullFormat||"default"}},Ie=function(e){return encodeURIComponent(e)},W=function(e){return decodeURIComponent(e)},Hr=function(e,r,n){if(n.booleanFormat==="empty-true"&&r)return e;var s;return n.booleanFormat==="unicode"?s=r?"✓":"✗":s=r.toString(),e+"="+s},qr=function(e,r){return r.nullFormat==="hidden"?"":r.nullFormat==="string"?e+"=null":e},Wr=function(e){return e.arrayFormat==="index"?function(r,n){return r+"["+n+"]"}:e.arrayFormat==="brackets"?function(r){return r+"[]"}:function(r){return r}},Zr=function(e,r,n){var s=Wr(n);return r.map(function(a,c){return s(e,c)+"="+Ie(a)}).join("&")},Gr=function(e,r,n){return r===null?qr(e,n):typeof r=="boolean"?Hr(e,r,n):Array.isArray(r)?Zr(e,r,n):e+"="+Ie(r)},Xr=function(e,r){if(e===void 0)return r.booleanFormat==="empty-true"?!0:null;if(r.booleanFormat==="string"){if(e==="true")return!0;if(e==="false")return!1}if(r.booleanFormat==="unicode"){if(W(e)==="✓")return!0;if(W(e)==="✗")return!1}return r.nullFormat==="string"&&e==="null"?null:W(e)},Yr=function(e){var r=e.indexOf("?");return r===-1?e:e.slice(r+1)},Kr=function(e){return e!==void 0},Jr=function(e){var r=e.indexOf("["),n=r!==-1;return{hasBrackets:n,name:n?e.slice(0,r):e}},ce=function(e,r){var n=Pe(r);return Yr(e).split("&").reduce(function(s,a){var c=a.split("="),o=c[0],u=c[1],m=Jr(o),p=m.hasBrackets,f=m.name,x=s[f],y=Xr(u,n);return x===void 0?s[f]=p?[y]:y:s[f]=(Array.isArray(x)?x:[x]).concat(y),s},{})},ei=function(e,r){var n=Pe(r);return Object.keys(e).filter(function(s){return Kr(e[s])}).map(function(s){return Gr(s,e[s],n)}).filter(Boolean).join("&")},ti=/[^!$'()*+,;|:]/g,Ee=function(e){return e.replace(ti,function(r){return encodeURIComponent(r)})},ri={default:Ee,uri:encodeURI,uriComponent:encodeURIComponent,none:function(e){return e},legacy:encodeURI},ii={default:decodeURIComponent,uri:decodeURI,uriComponent:decodeURIComponent,none:function(e){return e},legacy:decodeURIComponent},le=function(e,r,n){var s=ri[r]||Ee;return n?String(e).split("/").map(s).join("/"):s(String(e))},ni=function(e,r){return(ii[r]||decodeURIComponent)(e)},J=function(e){return"("+(e?e.replace(/(^<|>$)/g,""):"[a-zA-Z0-9-_.~%':|=+\\*@$]+")+")"},si=[{name:"url-parameter",pattern:/^:([a-zA-Z0-9-_]*[a-zA-Z0-9]{1})(<(.+?)>)?/,regex:function(e){return new RegExp(J(e[2]))}},{name:"url-parameter-splat",pattern:/^\*([a-zA-Z0-9-_]*[a-zA-Z0-9]{1})/,regex:/([^?]*)/},{name:"url-parameter-matrix",pattern:/^;([a-zA-Z0-9-_]*[a-zA-Z0-9]{1})(<(.+?)>)?/,regex:function(e){return new RegExp(";"+e[1]+"="+J(e[2]))}},{name:"query-parameter",pattern:/^(?:\?|&)(?::)?([a-zA-Z0-9-_]*[a-zA-Z0-9]{1})/},{name:"delimiter",pattern:/^(\/|\?)/,regex:function(e){return new RegExp("\\"+e[0])}},{name:"sub-delimiter",pattern:/^(!|&|-|_|\.|;)/,regex:function(e){return new RegExp(e[0])}},{name:"fragment",pattern:/^([0-9a-zA-Z]+)/,regex:function(e){return new RegExp(e[0])}}],ai=function i(e,r){r===void 0&&(r=[]);var n=si.some(function(s){var a=e.match(s.pattern);return a?(r.push({type:s.name,match:a[0],val:a.slice(1,2),otherVal:a.slice(2),regex:s.regex instanceof Function?s.regex(a):s.regex}),a[0].length<e.length&&(r=i(e.substr(a[0].length),r)),!0):!1});if(!n)throw new Error("Could not parse path '"+e+"'");return r},Z=function(e){return e!=null},oi=function(e,r){return r||e==="\\/"?e:e.replace(/\\\/$/,"")+"(?:\\/)?"},ci=function(e,r){return r?/(\/)$/.test(e)?e:e+"(\\/|\\?|\\.|;|$)":e},li=function(e,r,n){n===void 0&&(n="");var s=e[r];return s===void 0?e[r]=n:e[r]=Array.isArray(s)?s.concat(n):[s,n],e}
15,ui={urlParamsEncoding:"default"},$=function(){function i(e,r){if(!e)throw new Error("Missing path in Path constructor");this.path=e,this.options=w(w({},ui),r),this.tokens=ai(e),this.hasUrlParams=this.tokens.filter(function(n){return/^url-parameter/.test(n.type)}).length>0,this.hasSpatParam=this.tokens.filter(function(n){return/splat$/.test(n.type)}).length>0,this.hasMatrixParams=this.tokens.filter(function(n){return/matrix$/.test(n.type)}).length>0,this.hasQueryParams=this.tokens.filter(function(n){return/^query-parameter/.test(n.type)}).length>0,this.spatParams=this.getParams("url-parameter-splat"),this.urlParams=this.getParams(/^url-parameter/),this.queryParams=this.getParams("query-parameter"),this.params=this.urlParams.concat(this.queryParams),this.source=this.tokens.filter(function(n){return n.regex!==void 0}).map(function(n){return n.regex.source}).join("")}return i.createPath=function(e,r){return new i(e,r)},i.prototype.isQueryParam=function(e){return this.queryParams.indexOf(e)!==-1},i.prototype.isSpatParam=function(e){return this.spatParams.indexOf(e)!==-1},i.prototype.test=function(e,r){var n=this,s=w(w({caseSensitive:!1,strictTrailingSlash:!1},this.options),r),a=oi(this.source,s.strictTrailingSlash),c=this.urlTest(e,a+(this.hasQueryParams?"(\\?.*$|$)":"$"),s.caseSensitive,s.urlParamsEncoding);if(!c||!this.hasQueryParams)return c;var o=ce(e,s.queryParams),u=Object.keys(o).filter(function(m){return!n.isQueryParam(m)});return u.length===0?(Object.keys(o).forEach(function(m){return c[m]=o[m]}),c):null},i.prototype.partialTest=function(e,r){var n=this,s=w(w({caseSensitive:!1,delimited:!0},this.options),r),a=ci(this.source,s.delimited),c=this.urlTest(e,a,s.caseSensitive,s.urlParamsEncoding);if(!c||!this.hasQueryParams)return c;var o=ce(e,s.queryParams);return Object.keys(o).filter(function(u){return n.isQueryParam(u)}).forEach(function(u){return li(c,u,o[u])}),c},i.prototype.build=function(e,r){var n=this;e===void 0&&(e={});var s=w(w({ignoreConstraints:!1,ignoreSearch:!1,queryParams:{}},this.options),r),a=Object.keys(e).filter(function(f){return!n.isQueryParam(f)}).reduce(function(f,x){if(!Z(e[x]))return f;var y=e[x],_=n.isSpatParam(x);return typeof y=="boolean"?f[x]=y:Array.isArray(y)?f[x]=y.map(function(b){return le(b,s.urlParamsEncoding,_)}):f[x]=le(y,s.urlParamsEncoding,_),f},{});if(this.urlParams.some(function(f){return!Z(e[f])})){var c=this.urlParams.filter(function(f){return!Z(e[f])});throw new Error("Cannot build path: '"+this.path+"' requires missing parameters { "+c.join(", ")+" }")}if(!s.ignoreConstraints){var o=this.tokens.filter(function(f){return/^url-parameter/.test(f.type)&&!/-splat$/.test(f.type)}).every(function(f){return new RegExp("^"+J(f.otherVal[0])+"$").test(a[f.val])});if(!o)throw new Error("Some parameters of '"+this.path+"' are of invalid format")}var u=this.tokens.filter(function(f){return/^query-parameter/.test(f.type)===!1}).map(function(f){return f.type==="url-parameter-matrix"?";"+f.val+"="+a[f.val[0]]:/^url-parameter/.test(f.type)?a[f.val[0]]:f.match}).join("");if(s.ignoreSearch)return u;var m=this.queryParams.filter(function(f){return Object.keys(e).indexOf(f)!==-1}).reduce(function(f,x){return f[x]=e[x],f},{}),p=ei(m,s.queryParams);return p?u+"?"+p:u},i.prototype.getParams=function(e){var r=e instanceof RegExp?function(n){return e.test(n.type)}:function(n){return n.type===e};return this.tokens.filter(r).map(function(n){return n.val[0]})},i.prototype.urlTest=function(e,r,n,s){var a=this,c=new RegExp("^"+r,n?"":"i"),o=e.match(c);if(o){if(!this.urlParams.length)return{}}else return null;return o.slice(1,this.urlParams.length+1).reduce(function(u,m,p){return u[a.urlParams[p]]=ni(m,s),u},{})},i}();const di=["about","cv","contact","contact_form","courses","courses_page","courses/:id","courses/:id/page",["contact_picture","contact"],"navpages","pages","pages_page","pages/:id","people","people_page","people/:id","people/:id/page","posts","posts_page","posts/:id",["profile_avatar","profile"],["profile/social_links","social_links"],"projects","projects_page","projects/:id","projects/:id/page","publications","publications_page","publications/:id","publications/:id/page","sharer",["site_picture","site_picture"],["site_title","header"],"social_links"],ue=di.map(i=>Ke(i)?[new $(i),new $(i)]:Ne(i)&&i.length===2?[new $(i[0]),new $(i[1])]:null);function fi(i){for(let e=0;e<ue.length;e++){const r=ue[e],[n,s]=r,a=n.test(i);if(a)return s.build(a)}return i}function hi(i){return i.replace(/^\/sites\/\d+/,"")}function pi(){console.debug("Render Preview");const{site:i}=Q(),e=ie(),r=Ze(),n=l.useRef(null),s=`/preview/${i.subdomain}`,a=l.useRef(null),c=l.useRef(null),[o,u]=l.useState(hi(r.pathname)),[m,p]=l.useContext(re),{isActiveSiteEditable:f}=B(j=>j.editorPreview),x=l.useRef(f);l.useEffect(()=>{c.current&&(c.current.promise.then(j=>
15{j.activateSiteEditable(f).then(()=>{})}),x.current=f)},[f]);const y=l.useCallback(()=>{c.current?c.current.promise.then(j=>{j.turboVisit(a.current).then(()=>{})}):n.current.contentWindow.location.replace(a.current)},[]),_=l.useCallback(()=>{z(a.current)&&(a.current=s),y()},[i]),b=l.useCallback(j=>{z(j)?(z(a.current)&&(a.current=s),y()):(a.current=s+j,y())},[i]),O=l.useCallback(j=>{if(z(j))z(a.current)&&(a.current=s,y());else{const I=s+j;I!==a.current&&(a.current=I,y())}},[i]);return l.useLayoutEffect(()=>(A.on("refresh",_),A.on("update",b),A.on("init",O),()=>{A.off("refresh",_),A.off("update",b),A.off("init",O)}),[i]),l.useEffect(()=>{c.current=tt({iframe:n.current,methods:{edit(j){const I=fi(j);if(I){const N={shouldGoBack:!0};console.log({pathname:o,screenPath:I}),r.pathname.endsWith(`/${I}`)&&(N.shouldGoBack=!1),e.push(`/sites/${i.id}/${I}`,N),m||p(!0)}else console.warn(`No screen path for site-editable-id: ${j}`)},setPathname(j){a.current=s+j,u(j)},isActiveSiteEditable(){return x.current}}})},[]),t.jsxs("div",{className:q.root,children:[t.jsx(Fr,{site:i,pathname:o}),t.jsx("div",{className:q.body,children:t.jsx("iframe",{src:"about:blank",ref:n,className:q.iframe})})]})}function mi({result:i,onSelect:e}){const{name:r,paperCount:n,citationCount:s,papers:a,url:c}=i,o=l.useMemo(()=>Ve(a,p=>p.citationCount).reverse(),[a]),u=dt(gt(be(a.map(p=>p.fieldsOfStudy)))).sort(),m=()=>e(i);return t.jsxs("div",{className:"flex flex-col",children:[t.jsxs("div",{className:"flex flex-row gap-4",children:[t.jsxs("div",{className:"flex-1",children:[t.jsx("div",{className:"text-lg blt-weight-bold",children:r}),t.jsxs("div",{className:"text-sm text-gray-600",children:["Fields of study:"," ",t.jsx("b",{children:u.length>0?u.join(", "):"N/A"})]})]}),t.jsxs("button",{className:"flex-none btn",onClick:m,children:["Select",t.jsx(S,{icon:"material-symbols:arrow-forward"})]})]}),t.jsxs("div",{className:"text-sm text-gray-600",children:[t.jsxs("div",{children:["Author of"," ",t.jsxs("b",{children:[n," ",K.inflect("paper",n)," with"," ",s," ",K.inflect("citation",s)]})]}),a.length>0&&t.jsxs("ul",{className:"list list-inside list-disc",children:[xt(o,3).map(p=>t.jsx("li",{children:p.title},p.paperId)),a.length>3&&t.jsxs("li",{children:["…and ",a.length-3," more"]})]})]}),t.jsx("div",{className:"py-1",children:t.jsxs("a",{className:"btn btn-xs btn-soft",href:c,target:"_blank",children:["Preview on Semantic Scholar",t.jsx(S,{icon:"material-symbols:open-in-new"})]})})]})}const xi="_emptyState_1mzm7_1",_i="_emptyStateContent_1mzm7_8",de={emptyState:xi,emptyStateContent:_i};function yi({children:i}){return t.jsx(ke,{children:t.jsx("div",{className:de.emptyState,children:t.jsx("div",{className:de.emptyStateContent,children:i})})})}var G=Object.prototype.hasOwnProperty,L=Array.isArray,E=function(){for(var i=[],e=0;e<256;++e)i.push("%"+((e<16?"0":"")+e.toString(16)).toUpperCase());return i}(),ji=function(e){for(;e.length>1;){var r=e.pop(),n=r.obj[r.prop];if(L(n)){for(var s=[],a=0;a<n.length;++a)typeof n[a]<"u"&&s.push(n[a]);r.obj[r.prop]=s}}},we=function(e,r){for(var n=r&&r.plainObjects?Object.create(null):{},s=0;s<e.length;++s)typeof e[s]<"u"&&(n[s]=e[s]);return n},vi=function i(e,r,n){if(!r)return e;if(typeof r!="object"){if(L(e))e.push(r);else if(e&&typeof e=="object")(n&&(n.plainObjects||n.allowPrototypes)||!G.call(Object.prototype,r))&&(e[r]=!0);else return[e,r];return e}if(!e||typeof e!="object")return[e].concat(r);var s=e;return L(e)&&!L(r)&&(s=we(e,n)),L(e)&&L(r)?(r.forEach(function(a,c){if(G.call(e,c)){var o=e[c];o&&typeof o=="object"&&a&&typeof a=="object"?e[c]=i(o,a,n):e.push(a)}else e[c]=a}),e):Object.keys(r).reduce(function(a,c){var o=r[c];return G.call(a,c)?a[c]=i(a[c],o,n):a[c]=o,a},s)},gi=function(e,r){return Object.keys(r).reduce(function(n,s){return n[s]=r[s],n},e)},bi=function(i,e,r){var n=i.replace(/\+/g," ");if(r==="iso-8859-1")return n.replace(/%[0-9a-f]{2}/gi,unescape);try{return decodeURIComponent(n)}catch{return n}},Si=function(e,r,n){if(e.length===0)return e;var s=e;if(typeof e=="symbol"?s=Symbol.prototype.toString.call(e):typeof e!="string"&&(s=String(e)),n==="iso-8859-1")return escape(s).replace(/%u[0-9a-f]{4}/gi,function(u){return"%26%23"+parseInt(u.slice(2),16)+"%3B"});for(var a="",c=0;c<s.length;++c){var o=s.charCodeAt(c);if(o===45||o===46||o===95||o===126||o>=48&&o<=57||o>=65&&o<=90||o>=97&&o<=122){a+=s.charAt(c);continue}if(o<128){a=a+E[o];continue}if(o<2048){a=a+(E[192|o>>6]+E[128|o&63]);continue}if(o<55296||o>=57344){a=a+(E[224|o>>12]+E[128|o>>6&63]+E[128|o&63]);continue}
15c+=1,o=65536+((o&1023)<<10|s.charCodeAt(c)&1023),a+=E[240|o>>18]+E[128|o>>12&63]+E[128|o>>6&63]+E[128|o&63]}return a},Pi=function(e){for(var r=[{obj:{o:e},prop:"o"}],n=[],s=0;s<r.length;++s)for(var a=r[s],c=a.obj[a.prop],o=Object.keys(c),u=0;u<o.length;++u){var m=o[u],p=c[m];typeof p=="object"&&p!==null&&n.indexOf(p)===-1&&(r.push({obj:c,prop:m}),n.push(p))}return ji(r),e},Ii=function(e){return Object.prototype.toString.call(e)==="[object RegExp]"},Ei=function(e){return!e||typeof e!="object"?!1:!!(e.constructor&&e.constructor.isBuffer&&e.constructor.isBuffer(e))},wi=function(e,r){return[].concat(e,r)},ne={arrayToObject:we,assign:gi,combine:wi,compact:Pi,decode:bi,encode:Si,isBuffer:Ei,isRegExp:Ii,merge:vi},Oi=String.prototype.replace,Ai=/%20/g,Ri=ne,fe={RFC1738:"RFC1738",RFC3986:"RFC3986"},Oe=Ri.assign({default:fe.RFC3986,formatters:{RFC1738:function(i){return Oi.call(i,Ai,"+")},RFC3986:function(i){return String(i)}}},fe),Ae=ne,V=Oe,Ni=Object.prototype.hasOwnProperty,he={brackets:function(e){return e+"[]"},comma:"comma",indices:function(e,r){return e+"["+r+"]"},repeat:function(e){return e}},C=Array.isArray,Ti=Array.prototype.push,ee=function(i,e){Ti.apply(i,C(e)?e:[e])},Di=Date.prototype.toISOString,pe=V.default,g={addQueryPrefix:!1,allowDots:!1,charset:"utf-8",charsetSentinel:!1,delimiter:"&",encode:!0,encoder:Ae.encode,encodeValuesOnly:!1,format:pe,formatter:V.formatters[pe],indices:!1,serializeDate:function(e){return Di.call(e)},skipNulls:!1,strictNullHandling:!1},Li=function(e){return typeof e=="string"||typeof e=="number"||typeof e=="boolean"||typeof e=="symbol"||typeof e=="bigint"},Ci=function i(e,r,n,s,a,c,o,u,m,p,f,x,y){var _=e;if(typeof o=="function"?_=o(r,_):_ instanceof Date?_=p(_):n==="comma"&&C(_)&&(_=_.join(",")),_===null){if(s)return c&&!x?c(r,g.encoder,y,"key"):r;_=""}if(Li(_)||Ae.isBuffer(_)){if(c){var b=x?r:c(r,g.encoder,y,"key");return[f(b)+"="+f(c(_,g.encoder,y,"value"))]}return[f(r)+"="+f(String(_))]}var O=[];if(typeof _>"u")return O;var j;if(C(o))j=o;else{var I=Object.keys(_);j=u?I.sort(u):I}for(var N=0;N<j.length;++N){var T=j[N];a&&_[T]===null||(C(_)?ee(O,i(_[T],typeof n=="function"?n(r,T):r,n,s,a,c,o,u,m,p,f,x,y)):ee(O,i(_[T],r+(m?"."+T:"["+T+"]"),n,s,a,c,o,u,m,p,f,x,y)))}return O},zi=function(e){if(!e)return g;if(e.encoder!==null&&e.encoder!==void 0&&typeof e.encoder!="function")throw new TypeError("Encoder has to be a function.");var r=e.charset||g.charset;if(typeof e.charset<"u"&&e.charset!=="utf-8"&&e.charset!=="iso-8859-1")throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var n=V.default;if(typeof e.format<"u"){if(!Ni.call(V.formatters,e.format))throw new TypeError("Unknown format option provided.");n=e.format}var s=V.formatters[n],a=g.filter;return(typeof e.filter=="function"||C(e.filter))&&(a=e.filter),{addQueryPrefix:typeof e.addQueryPrefix=="boolean"?e.addQueryPrefix:g.addQueryPrefix,allowDots:typeof e.allowDots>"u"?g.allowDots:!!e.allowDots,charset:r,charsetSentinel:typeof e.charsetSentinel=="boolean"?e.charsetSentinel:g.charsetSentinel,delimiter:typeof e.delimiter>"u"?g.delimiter:e.delimiter,encode:typeof e.encode=="boolean"?e.encode:g.encode,encoder:typeof e.encoder=="function"?e.encoder:g.encoder,encodeValuesOnly:typeof e.encodeValuesOnly=="boolean"?e.encodeValuesOnly:g.encodeValuesOnly,filter:a,formatter:s,serializeDate:typeof e.serializeDate=="function"?e.serializeDate:g.serializeDate,skipNulls:typeof e.skipNulls=="boolean"?e.skipNulls:g.skipNulls,sort:typeof e.sort=="function"?e.sort:null,strictNullHandling:typeof e.strictNullHandling=="boolean"?e.strictNullHandling:g.strictNullHandling}},Vi=function(i,e){var r=i,n=zi(e),s,a;typeof n.filter=="function"?(a=n.filter,r=a("",r)):C(n.filter)&&(a=n.filter,s=a);var c=[];if(typeof r!="object"||r===null)return"";var o;e&&e.arrayFormat in he?o=e.arrayFormat:e&&"indices"in e?o=e.indices?"indices":"repeat":o="indices";var u=he[o];s||(s=Object.keys(r)),n.sort&&s.sort(n.sort);for(var m=0;m<s.length;++m){var p=s[m];n.skipNulls&&r[p]===null||ee(c,Ci(r[p],p,u,n.strictNullHandling,n.skipNulls,n.encode?n.encoder:null,n.filter,n.sort,n.allowDots,n.serializeDate,n.formatter,n.encodeValuesOnly,n.charset))}var f=c.join(n.delimiter),x=n.addQueryPrefix===!0?"?":"";return n.charsetSentinel&&(n.charset==="iso-8859-1"?x+="utf8=%26%2310003%3B&":x+="utf8=%E2%9C%93&"),f.length>0?x+f:""},F=ne,te=Object.prototype.hasOwnProperty,ki=Array.isArray,v={allowDots:!1,allowPrototypes:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decoder:F.decode,delimiter:"&",depth:5,ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictNullHandling:!1},Fi=function(i){return i.replace(/&#(\d+);/g,function(e,r){return String.fromCharCode(parseInt(r,10))})},$i="utf8=%26%2310003%3B",Bi="utf8=%E2%9C%93",Qi=function(e,r){var n={},s=r.ignoreQueryPrefix?e.replace(/^\?/,""):e,a=r.parameterLimit===1/0?void 0:r.parameterLimit,c=s.split(r.delimiter,a),o=-1,u,m=r.charset;if(r.charsetSentinel)for(u=0;
15u<c.length;++u)c[u].indexOf("utf8=")===0&&(c[u]===Bi?m="utf-8":c[u]===$i&&(m="iso-8859-1"),o=u,u=c.length);for(u=0;u<c.length;++u)if(u!==o){var p=c[u],f=p.indexOf("]="),x=f===-1?p.indexOf("="):f+1,y,_;x===-1?(y=r.decoder(p,v.decoder,m,"key"),_=r.strictNullHandling?null:""):(y=r.decoder(p.slice(0,x),v.decoder,m,"key"),_=r.decoder(p.slice(x+1),v.decoder,m,"value")),_&&r.interpretNumericEntities&&m==="iso-8859-1"&&(_=Fi(_)),_&&typeof _=="string"&&r.comma&&_.indexOf(",")>-1&&(_=_.split(",")),p.indexOf("[]=")>-1&&(_=ki(_)?[_]:_),te.call(n,y)?n[y]=F.combine(n[y],_):n[y]=_}return n},Mi=function(i,e,r){for(var n=e,s=i.length-1;s>=0;--s){var a,c=i[s];if(c==="[]"&&r.parseArrays)a=[].concat(n);else{a=r.plainObjects?Object.create(null):{};var o=c.charAt(0)==="["&&c.charAt(c.length-1)==="]"?c.slice(1,-1):c,u=parseInt(o,10);!r.parseArrays&&o===""?a={0:n}:!isNaN(u)&&c!==o&&String(u)===o&&u>=0&&r.parseArrays&&u<=r.arrayLimit?(a=[],a[u]=n):a[o]=n}n=a}return n},Ui=function(e,r,n){if(e){var s=n.allowDots?e.replace(/\.([^.[]+)/g,"[$1]"):e,a=/(\[[^[\]]*])/,c=/(\[[^[\]]*])/g,o=n.depth>0&&a.exec(s),u=o?s.slice(0,o.index):s,m=[];if(u){if(!n.plainObjects&&te.call(Object.prototype,u)&&!n.allowPrototypes)return;m.push(u)}for(var p=0;n.depth>0&&(o=c.exec(s))!==null&&p<n.depth;){if(p+=1,!n.plainObjects&&te.call(Object.prototype,o[1].slice(1,-1))&&!n.allowPrototypes)return;m.push(o[1])}return o&&m.push("["+s.slice(o.index)+"]"),Mi(m,r,n)}},Hi=function(e){if(!e)return v;if(e.decoder!==null&&e.decoder!==void 0&&typeof e.decoder!="function")throw new TypeError("Decoder has to be a function.");if(typeof e.charset<"u"&&e.charset!=="utf-8"&&e.charset!=="iso-8859-1")throw new Error("The charset option must be either utf-8, iso-8859-1, or undefined");var r=typeof e.charset>"u"?v.charset:e.charset;return{allowDots:typeof e.allowDots>"u"?v.allowDots:!!e.allowDots,allowPrototypes:typeof e.allowPrototypes=="boolean"?e.allowPrototypes:v.allowPrototypes,arrayLimit:typeof e.arrayLimit=="number"?e.arrayLimit:v.arrayLimit,charset:r,charsetSentinel:typeof e.charsetSentinel=="boolean"?e.charsetSentinel:v.charsetSentinel,comma:typeof e.comma=="boolean"?e.comma:v.comma,decoder:typeof e.decoder=="function"?e.decoder:v.decoder,delimiter:typeof e.delimiter=="string"||F.isRegExp(e.delimiter)?e.delimiter:v.delimiter,depth:typeof e.depth=="number"||e.depth===!1?+e.depth:v.depth,ignoreQueryPrefix:e.ignoreQueryPrefix===!0,interpretNumericEntities:typeof e.interpretNumericEntities=="boolean"?e.interpretNumericEntities:v.interpretNumericEntities,parameterLimit:typeof e.parameterLimit=="number"?e.parameterLimit:v.parameterLimit,parseArrays:e.parseArrays!==!1,plainObjects:typeof e.plainObjects=="boolean"?e.plainObjects:v.plainObjects,strictNullHandling:typeof e.strictNullHandling=="boolean"?e.strictNullHandling:v.strictNullHandling}},qi=function(i,e){var r=Hi(e);if(i===""||i===null||typeof i>"u")return r.plainObjects?Object.create(null):{};for(var n=typeof i=="string"?Qi(i,r):i,s=r.plainObjects?Object.create(null):{},a=Object.keys(n),c=0;c<a.length;++c){var o=a[c],u=Ui(o,n[o],r);s=F.merge(s,u,r)}return F.compact(s)},Wi=Vi,Zi=qi,Gi=Oe,Xi={formats:Gi,parse:Zi,stringify:Wi};const me=Te(Xi),xe=[(i,e)=>(delete e.common["X-CSRF-Token"],i)],Yi={async searchAuthorsByName(i,e={}){const r={};r.query=i,r.offset=R(e,"offset",0),r.limit=R(e,"limit",10),r.fields=R(e,"fields","externalIds,name,affiliations,url,homepage,paperCount,citationCount,hIndex");const s=`https://api.semanticscholar.org/graph/v1/author/search?${me.stringify(r)}`,a={transformRequest:xe};return await k.get(s,a)},async getPapersByAuthorId(i,e={}){const r={};r.offset=R(e,"offset",0),r.limit=R(e,"limit",10),r.fields=R(e,"fields","title,year,abstract,venue,authors,fieldsOfStudy,externalIds,url");const n=me.stringify(r),s=`https://api.semanticscholar.org/graph/v1/author/${i}/papers?${n}`,a={transformRequest:xe};return await k.get(s,a)}},_e=Yi,ye=20,je="externalIds,name,affiliations,url,homepage,paperCount,citationCount,hIndex,"+["title","year","abstract","venue","authors","fieldsOfStudy","externalIds","url","citationCount"].map(i=>"papers."+i).join(",");function Ki({query:i,onSelect:e}){const[r,n]=l.useState([]),[s,a]=l.useState(!1),[c,o]=l.useState(!1);l.useEffect(()=>{a(!0),_e.searchAuthorsByName(i,{fields:je,limit:ye}).then(x=>x.data).then(x=>{n([x]),a(!1)})},[i]);const u=()=>{const x=r[r.length-1];o(!0),_e.searchAuthorsByName(i,{fields:je,limit:ye,offset:x.next}).then(y=>y.data).then(y=>{n([...r,y]),o(!1)})};if(se(r)||s)return t.jsx("div",{className:"p-4 flex flex-row justify-center",children:t.jsx("div",{className:"loading loading-lg loading-spinner"})});const m=r[r.length-1];if(se(m.data))return t.jsx(yi,{children:"No results"});const p=m.next,f=be(r.map(x=>x.data));return t.jsxs(t.Fragment,{children:[t.jsxs("div",{className:"text-2xl",children:["Found publications by"," ",t.jsxs("b",{children:[f.length," ",K.inflect("author",f.length)," ",p?"and more":"total"]}),". Select one to start your website."]}),t.jsx("div",{className:"mt-8 flex flex-col gap-8 mb-8",children:f.map(x=>t.jsx(mi,{result:x,onSelect:e},x.authorId))}),p&&t.jsx("button",{className:"btn btn-block",onClick:u,disabled:c,
15children:c?t.jsx("div",{className:"loading loading-spinner"}):"Load more"})]})}const Ji={async generateIntro(i){const e=`/api/v1/sites/${i}/llm/generate_intro.json`;return await k.get(e)}},en=[{id:"ArXiv",title:"ArXiv",basePath:"https://arxiv.org/abs/"},{id:"DBLP",title:"DBLP",basePath:"https://dblp.org/rec/"},{id:"DOI",title:"DOI",basePath:"https://doi.org/"},{id:"PubMedCentral",title:"PubMedCentral",basePath:"https://www.ncbi.nlm.nih.gov/pubmed/PMC"},{id:"PubMed",title:"PubMed",basePath:"https://www.ncbi.nlm.nih.gov/pubmed/"}];function tn(i){const{title:e,authors:r,year:n,venue:s,url:a,abstract:c,externalIds:o}=i,u=r.map(b=>b.name),m=u.join(`
16`),p=u,f=p,x=s,y=[];a&&y.push({_id:H(4),name:"Semantic Scholar",url:a}),en.forEach(b=>{mt(o,b.id)&&y.push({_id:H(4),name:b.title,url:b.basePath+o[b.id]})});const _=[];return c&&_.push({_id:H(4),kind:"markdown",value:`## Abstract
17
18${c}`}),{entry_type:"article",title:e,authors:m,authors_list:p,display_authors_list:f,journal:x,year:n,links:y,blocks:_}}const rn={async get(i){const e=`/api/v1/sites/${i}/contact.json`;return await k.get(e)},async update(i,e){const r=`/api/v1/sites/${i}/contact.json`;return await k.patch(r,{contact:e})}};async function Re(i,e){await Ge.update(i,{title:e.name}),await rn.update(i,e)}function nn({author:i,department:e,institution:r}){const n=l.useRef(),{site:s}=Q(),[a,c]=l.useState(0);return l.useEffect(()=>{n.current.showModal();async function o(){await Y(Re(s.id,{name:i.name,department:e,institution:r}),2e3),c(1),await Y(sn(s.id,i),2e3),c(2),await Y(an(s.id),2e3),c(10)}a!==10&&o()},[]),t.jsx("dialog",{className:"modal",ref:n,children:t.jsxs("div",{className:"modal-box",children:[t.jsx("div",{className:"text-2xl font-bold",children:"Preparing your website…"}),t.jsxs("ul",{className:"steps steps-vertical",children:[t.jsx(X,{currentStatus:a,stepStatus:0,children:"Set website title and contact info."}),t.jsx(X,{currentStatus:a,stepStatus:1,children:"Import list of publications."}),t.jsx(X,{currentStatus:a,stepStatus:2,children:"Write short introduction on the home page."})]}),a===10&&t.jsx("div",{className:"flex flex-row justify-end",children:t.jsxs(nt,{to:`/sites/${s.id}/onboarding`,className:"btn btn-primary",children:["View your website ",t.jsx(S,{icon:"material-symbols:arrow-forward"})]})})]})})}function X({currentStatus:i,stepStatus:e,children:r}){let n=null;return e===i?n=t.jsx("span",{className:"step-icon",children:t.jsx("div",{className:"loading loading-spinner"})}):e<i&&(n=t.jsx("span",{className:"step-icon",children:t.jsx(S,{icon:"material-symbols:check",width:24,height:24})})),t.jsxs("li",{className:it("py-2 step",e<=i&&"step-primary"),children:[n,r]})}async function sn(i,e){const{papers:r}=e;for(const n of r){const s=tn(n);await st.create(i,s)}}async function an(i){const e=await Ji.generateIntro(i);if(e.status===200){const{content:r}=e.data;await ae.appendBlock(i,{kind:"markdown",value:r}),await ae.appendBlock(i,{kind:"owlstown-list",list_of:"publications",count:5,heading:"Publications"})}}async function Y(i,e){const r=new Promise(s=>setTimeout(s,e)),n=await Promise.allSettled([i,r]);if(n[0].status==="fulfilled")return n[0].value;throw n[0].reason}function on(){const i=ie(),{site:e}=Q(),[r,n]=l.useState({name:"",department:"",institution:""}),[s,a]=l.useState(""),[c,o]=l.useState(),{getValues:u,register:m,handleSubmit:p,watch:f,formState:{isValid:x}}=rt({values:{name:"",department:"",institution:""}}),[y]=f(["name"]),_=j=>{a(j.name),n(j)},b=j=>o(j),O=async()=>{await Re(e.id,u()),i.push(`/sites/${e.id}/onboarding`)};return t.jsxs("div",{className:"w-full p-8",children:[t.jsxs("div",{className:"mx-auto mt-20 w-full max-w-screen-sm text-center",children:[t.jsxs("div",{className:"flex flex-row gap-2 justify-center items-center",children:[t.jsx("img",{src:Fe,width:32,height:32}),t.jsx("a",{href:"/",className:"text-xl font-bold",children:"Owlstown"})]}),t.jsx("h1",{className:"mt-12 text-4xl font-bold tracking-tight",children:"Let's start your academic website!"}),t.jsx("p",{className:"mt-12 text-2xl",children:"First, tell us a little about yourself."})]}),t.jsxs("form",{className:"mt-6 mx-auto w-full max-w-md text-center",onSubmit:p(_),children:[t.jsxs("label",{className:"mt-2 input input-lg input-bordered w-full",children:[t.jsx("input",{type:"text",placeholder:"Full Name",autoComplete:"off",...m("name",{required:!0,minLength:4})}),t.jsx("span",{className:"badge badge-neutral badge-xs",children:"Required"})]}),t.jsx("label",{className:"mt-4 input input-lg input-bordered w-full",children:t.jsx("input",{type:"text",...m("institution"),placeholder:"Academic Institution"})}),t.jsx("label",{className:"mt-4 input input-lg input-bordered w-full",children:t.jsx("input",{type:"text",...m("department"),placeholder:"Academic Department"})}),(x||r.name)&&t.jsxs(t.Fragment,{children:[t.jsx("div",{className:"mt-12 text-2xl",children:"Next, we'll look for your publications to add to your website."}),t.jsxs("button",{type:"submit",className:"mt-6 btn btn-lg btn-primary",disabled:!y||y===s,children:[t.jsx(S,{icon:"material-symbols:search"})," Find my publications"]}),t.jsxs("div",{className:"mt-1 text-sm text-gray-500",children:["Powered by"," ",t.jsx("a",{href:"https://www.semanticscholar.org/",className:"hover:underline",children:"Semantic Scholar"})]}),t.jsxs("div",{className:"mt-6 flex flex-row gap-1 justify-center items-center text-gray-500 hover:underline text-sm cursor-pointer",onClick:O,children:["Continue without publications"," ",t.jsx(S,{icon:"material-symbols:arrow-forward"})]})]})]}),r.name&&t.jsx("div",{className:"m-auto my-12 w-full max-w-screen-sm",children:t.jsx(Ki,{query:r.name,onSelect:b})}),c&&t.jsx(nn,{author:c,department:r.department,institution:r.institution})]})}function cn(){const i=ve(),e=ie(),{siteId:r}=Xe(),n=B(a=>a.site),s=B(a=>a.policies);return l.useEffect(()=>{i($e.fetchSite(r)),i(Je.fetchPolicies(r)).then(a=>{R(a,"builder.show")||e.push("/sites")}
18).catch(()=>{e.push("/sites")})},[r]),!s||!n||n.id!=r?null:t.jsx(et,{site_id:n.id,site_subdomain:n.subdomain,children:t.jsxs(M,{children:[t.jsx(d,{path:"/sites/:siteId/start",children:t.jsx(on,{})}),t.jsx(d,{path:"/sites/:siteId",children:t.jsx(Be,{leftPanel:t.jsx(Cr,{}),rightPanel:t.jsx(pi,{})})})]})})}const wn=Object.freeze(Object.defineProperty({__proto__:null,default:cn},Symbol.toStringTag,{value:"Module"}));export{rn as C,Se as L,_e as S,ut as a,lt as b,dt as c,Ji as d,wn as e,be as f,mt as h,tn as p,xt as t,gt as u};

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.