import"./island-bootstrap-runtime-BErdtfX-.js";var e=`SNlM0e`,t=`eptZe`,n=`W3Yyqf`,r=`QrtxK`,i=`JLbhgf`,a=`KnDnFf`,o=`qKIAYe`,s=`Ylro7b`,c=`h1eoVe`,l=`u21JSd`,u=`Lz8rbb`,d=`nPMdNb`,f=`M9l3o`,p=`dSupif`,m=`GruApd`,h=`PI9WOb`,g=`fx9U0`,_=`svUc8c`,v=`oPEP7c`,y=`Z9dR2`,b=`hZcZ2`,x=`SDPG4c`,S=`kmz9uc`,C=`zEdwB`,w=`vCjA5b`,T=`I2uq4c`,E=`lRWJfb`,D=`cPpIQe`,O=`Qd7BXc`,k=`YJfVcd`,A=`template[data-netjet-deferred-stylesheet]`,j=`link[data-netjet-deferred-stylesheet]`,M=new WeakMap;function N(){let e;return()=>{if(e!==void 0)return e;let t=P();return e=t,t.catch(()=>{e===t&&(e=void 0)}),t}}function P(){let e=document.querySelectorAll(A),t=document.querySelectorAll(j);return Promise.all([...Array.from(e,F),...Array.from(t,I)]).then(()=>void 0)}function F(e){return L(e,()=>{let t=e.content.querySelector(`link[rel="stylesheet"]`);if(t===null)return Promise.reject(Error(`Deferred NetJet stylesheet template has no stylesheet link.`));let n=t.cloneNode(!0);return R(n,()=>e.after(n)).then(()=>e.remove()).catch(e=>{throw n.remove(),e})})}function I(e){return L(e,()=>R(e,()=>{e.rel=`stylesheet`}).catch(t=>{throw e.rel=`alternate`,t}))}function L(e,t){let n=M.get(e);if(n!==void 0)return n;let r=t();return M.set(e,r),r.catch(()=>{M.get(e)===r&&M.delete(e)}),r}function R(e,t){return new Promise((n,r)=>{let i=()=>{o(),n()},a=()=>{o(),r(Error(`Failed to apply NetJet stylesheet: ${e.href}`))},o=()=>{e.removeEventListener(`load`,i),e.removeEventListener(`error`,a)};e.addEventListener(`load`,i),e.addEventListener(`error`,a),t()})}function z(e,t,n,r,i,a,o){try{var s=e[a](o),c=s.value}catch(e){n(e);return}s.done?t(c):Promise.resolve(c).then(r,i)}function B(e){return function(){var t=this,n=arguments;return new Promise(function(r,i){var a=e.apply(t,n);function o(e){z(a,r,i,o,s,`next`,e)}function s(e){z(a,r,i,o,s,`throw`,e)}o(void 0)})}}var V=Object.assign({"./__generated__/avatar.ts":()=>import(`./avatar-CZI_Cjl3.js`).then(e=>e.t),"./__generated__/chat.ts":()=>import(`./chat-BzJ60G0D.js`).then(e=>e.t),"./__generated__/customize.ts":()=>import(`./customize-D1ZQGpdX.js`).then(e=>e.t),"./__generated__/dailyBriefHeartbeats.ts":()=>import(`./dailyBriefHeartbeats-CUekOzGa.js`),"./__generated__/download.ts":()=>import(`./download-Bqj4XYKd.js`),"./__generated__/immersive_explorations.ts":()=>import(`./immersive_explorations-Cg49YQW-.js`).then(e=>e.t),"./__generated__/labs.ts":()=>import(`./labs-B0soX8dU.js`),"./__generated__/library.ts":()=>import(`./library-CnIJzPXB.js`).then(e=>e.t),"./__generated__/personalIntelligence.ts":()=>import(`./personalIntelligence-8v1euQWd.js`).then(e=>e.t),"./__generated__/projects.ts":()=>import(`./projects-BNc_mTn4.js`),"./__generated__/rememberedItems.ts":()=>import(`./rememberedItems-GngoMGM3.js`).then(e=>e.t),"./__generated__/shareViewer.ts":()=>import(`./shareViewer-B0U7KCSV.js`).then(e=>e.t),"./__generated__/sharing.ts":()=>import(`./sharing-jEh9sXgX.js`),"./__generated__/shopping.ts":()=>import(`./shopping-ChHA8ojA.js`),"./__generated__/spaces.ts":()=>import(`./spaces-xrrrX2rn.js`).then(e=>e.t),"./__generated__/unavailable.ts":()=>import(`./unavailable-BopDmkOo.js`),"./__generated__/usage.ts":()=>import(`./usage-Bz-kuLUc.js`),"./__generated__/yourDay.ts":()=>import(`./yourDay-Bt70XW-0.js`).then(e=>e.t),"./devTools.ts":()=>import(`./devTools-n6dgAc6v.js`),"./search_modal.tsx":()=>import(`./search_modal-Dj8y17w-.js`),"./sidenav.tsx":()=>import(`./sidenav-D9b9p_Gh.js`).then(e=>e.t)}),H=N(),U=Object.fromEntries(Object.entries(V).map(([e,t])=>{let n=e.replace(/^\.\/(?:__generated__\/)?/u,``).replace(/\.tsx?$/,``);return[n,B(function*(){try{let[,e]=yield Promise.all([H(),t()]);return e}catch(t){throw console.error(`Failed to load island '${n}' from '${e}'`,t),t}})]})),W=globalThis;W.__njri_BardChatUi??=[],W.__njri_BardChatUi.push(U);function G(){if(typeof window>`u`)return!1;let e=window.WIZ_global_data;return!e||typeof e!=`object`?!1:e.fx9U0===!0||e.canAccessCode_===!0}G()&&V[`./devTools.ts`]?.().then(e=>{e.mount(document.documentElement,void 0,{ensureStylesheets:H})});export{e as A,u as C,h as D,E,v as O,O as S,p as T,S as _,T as a,l as b,i as c,s as d,c as f,m as g,_ as h,y as i,t as k,a as l,k as m,r as n,w as o,g as p,C as r,d as s,n as t,o as u,x as v,f as w,b as x,D as y};