1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,755838,(e,t,r)=>{"use strict";var n=e.r(271645),i="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},o=n.useState,u=n.useEffect,a=n.useLayoutEffect,s=n.useDebugValue;function l(e){var t=e.getSnapshot;e=e.value;try{var r=t();return!i(e,r)}catch(e){return!0}}var c="u"<typeof window||void 0===window.document||void 0===window.document.createElement?function(e,t){return t()}:function(e,t){var r=t(),n=o({inst:{value:r,getSnapshot:t}}),i=n[0].inst,c=n[1];return a(function(){i.value=r,i.getSnapshot=t,l(i)&&c({inst:i})},[e,r,t]),u(function(){return l(i)&&c({inst:i}),e(function(){l(i)&&c({inst:i})})},[e]),s(r),r};r.useSyncExternalStore=void 0!==n.useSyncExternalStore?n.useSyncExternalStore:c},802239,(e,t,r)=>{"use strict";t.exports=e.r(755838)},407608,783491,8934,95266,e=>{"use strict";let t;var r=e.i(843476),n=e.i(95187);let i=(0,n.createServerReference)("40de1c7f3711cc5ef81b887c4137979e6876baae62",n.callServer,void 0,n.findSourceMapURL,"getIntegrationsAction");e.s(["getIntegrationsAction",0,i],783491);var o=e.i(271645),u=e.i(647360);e.i(247167);var a=e.i(854928),s=e.i(802239);e.s(["ERROR_REVALIDATE_EVENT",0,3,"FOCUS_EVENT",0,0,"MUTATE_EVENT",0,2,"RECONNECT_EVENT",0,1],211671);var l=Object.prototype.hasOwnProperty;let c=new WeakMap,d=()=>{},f=d(),p=Object,v=e=>e===f,h=(e,t)=>({...e,...t}),g={},E={},b="undefined",y=typeof window!=b,m=typeof document!=b,w=y&&"Deno"in window,T=(e,t)=>{let r=c.get(e);return[()=>!v(t)&&e.get(t)||g,n=>{if(!v(t)){let i=e.get(t);t in E||(E[t]=i),r[5](t,h(i,n),i||g)}},r[6],()=>!v(t)&&t in E?E[t]:!v(t)&&e.get(t)||g]},R=!0,[S,O]=y&&window.addEventListener?[window.addEventListener.bind(window),window.removeEventListener.bind(window)]:[d,d],C={initFocus:e=>(m&&document.addEventListener("visibilitychange",e),S("focus",e),()=>{m&&document.removeEventListener("visibilitychange",e),O("focus",e)}),initReconnect:e=>{let t=()=>{R=!0,e()},r=()=>{R=!1};return S("online",t),S("offline",r),()=>{O("online",t),O("offline",r)}}},A=!o.default.useId,_=!y||w,L=_?o.useEffect:o.useLayoutEffect,I="u">typeof navigator&&navigator.connection,k=!_&&I&&(["slow-2g","2g"].includes(I.effectiveType)||I.saveData),x=new WeakMap,P=(e,t)=>e===`[object ${t}]`,V=0,j=e=>{let t,r,n=typeof e,i=p.prototype.toString.call(e),o=P(i,"Date"),u=P(i,"RegExp"),a=P(i,"Object");if(p(e)!==e||o||u)t=o?e.toJSON():"symbol"==n?e.toString():"string"==n?JSON.stringify(e):""+e;else{if(t=x.get(e))return t;if(t=++V+"~",x.set(e,t),Array.isArray(e)){for(r=0,t="@";r<e.length;r++)t+=j(e[r])+",";x.set(e,t)}if(a){t="#";let n=p.keys(e).sort();for(;!v(r=n.pop());)v(e[r])||(t+=r+":"+j(e[r])+",");x.set(e,t)}}return t},D=e=>{if("function"==typeof e)try{e=e()}catch(t){e=""}let t=e;return[e="string"==typeof e?e:(Array.isArray(e)?e.length:e)?j(e):"",t]},N=0,U=()=>++N;async function z(...e){let[t,r,n,i]=e,o=h({populateCache:!0,throwOnError:!0},"boolean"==typeof i?{revalidate:i}:i||{}),u=o.populateCache,a=o.rollbackOnError,s=o.optimisticData,l=o.throwOnError;if("function"==typeof r){let e=[];for(let n of t.keys())!/^\$(inf|sub)\$/.test(n)&&r(t.get(n)._k)&&e.push(n);return Promise.all(e.map(d))}return d(r);async function d(r){let i,[d]=D(r);if(!d)return;let[p,h]=T(t,d),[g,E,b,y]=c.get(t),m=()=>{let e=g[d];return("function"==typeof o.revalidate?o.revalidate(p().data,r):!1!==o.revalidate)&&(delete b[d],delete y[d],e&&e[0])?e[0](2).then(()=>p().data):p().data};if(e.length<3)return m();let w=n,R=!1,S=U();E[d]=[S,0];let O=!v(s),C=p(),A=C.data,_=C._c,L=v(_)?A:_;if(O&&h({data:s="function"==typeof s?s(L,A):s,_c:L}),"function"==typeof w)try{w=w(L)}catch(e){i=e,R=!0}if(w&&"function"==typeof w.then){let e;if(w=await w.catch(e=>{i=e,R=!0}),S!==E[d][0]){if(R)throw i;return w}R&&O&&(e=i,"function"==typeof a?a(e):!1!==a)&&(u=!0,h({data:L,_c:f}))}if(u&&!R&&("function"==typeof u?h({data:u(w,L),error:f,_c:f}):h({data:w,error:f,_c:f})),E[d][1]=U(),Promise.resolve(m()).then(()=>{h({_c:f})}),R){if(l)throw i;return}return w}}let F=(e,t)=>{for(let r in e)e[r][0]&&e[r][0](t)},M=(e,t)=>{if(!c.has(e)){let r=h(C,t),n=Object.create(null),i=z.bind(f,e),o=d,u=Object.create(null),a=(e,t)=>{let r=u[e]||[];return u[e]=r,r.push(t),()=>r.splice(r.indexOf(t),1)},s=(t,r,n)=>{e.set(t,r);let i=u[t];if(i)for(let e of i)e(r,n)},l=()=>{if(!c.has(e)&&(c.set(e,[n,Object.create(null),Object.create(null),Object.create(null),i,s,a]),!_)){let t=r.initFocus(setTimeout.bind(f,F.bind(f,n,0))),i=r.initReconnect(setTimeout.bind(f,F.bind(f,n,1)));o=()=>{t&&t(),i&&i(),c.delete(e)}}};return l(),[e,i,l,o]}return[e,c.get(e)[4]]},[B,$]=M(new Map),K=h({onLoadingSlow:d,onSuccess:d,onError:d,onErrorRetry:(e,t,r,n,i)=>{let o=r.errorRetryCount,u=i.retryCount,a=~~((Math.random()+.5)*(1<<(u<8?u:8)))*r.errorRetryInterval;(v(o)||!(u>o))&&setTimeout(n,a,i)},onDiscarded:d,revalidateOnFocus:!0,revalidateOnReconnect:!0,revalidateIfStale:!0,shouldRetryOnError:!0,errorRetryInterval:k?1e4:5e3,focusThrottleInterval:5e3,dedupingInterval:2e3,loadingTimeout:k?5e3:3e3,compare:function e(t,r){var n,i;if(t===r)return!0;
1if(t&&r&&(n=t.constructor)===r.constructor){if(n===Date)return t.getTime()===r.getTime();if(n===RegExp)return t.toString()===r.toString();if(n===Array){if((i=t.length)===r.length)for(;i--&&e(t[i],r[i]););return -1===i}if(!n||"object"==typeof t){for(n in i=0,t)if(l.call(t,n)&&++i&&!l.call(r,n)||!(n in r)||!e(t[n],r[n]))return!1;return Object.keys(r).length===i}}return t!=t&&r!=r},isPaused:()=>!1,cache:B,mutate:$,fallback:{}},{isOnline:()=>R,isVisible:()=>{let e=m&&document.visibilityState;return v(e)||"hidden"!==e}}),W=(e,t)=>{let r=h(e,t);if(t){let{use:n,fallback:i}=e,{use:o,fallback:u}=t;n&&o&&(r.use=n.concat(o)),i&&u&&(r.fallback=h(i,u))}return r},G=(0,o.createContext)({});var H=e.i(211671);let q=y&&window.__SWR_DEVTOOLS_USE__,J=(q?window.__SWR_DEVTOOLS_USE__:[]).concat(e=>(t,r,n)=>{let i=r&&((...e)=>{let[n]=D(t),[,,,i]=c.get(B);if(n.startsWith("$inf$"))return r(...e);let o=i[n];return v(o)?r(...e):(delete i[n],o)});return e(t,i,n)});q&&(window.__SWR_DEVTOOLS_REACT__=o.default);let Q=()=>{},Y=Q(),Z=(new WeakMap,o.default.use||(e=>{switch(e.status){case"pending":throw e;case"fulfilled":return e.value;case"rejected":throw e.reason;default:throw e.status="pending",e.then(t=>{e.status="fulfilled",e.value=t},t=>{e.status="rejected",e.reason=t}),e}})),X={dedupe:!0},ee=Promise.resolve(f);p.defineProperty(e=>{let{value:t}=e,r=(0,o.useContext)(G),n="function"==typeof t,i=(0,o.useMemo)(()=>n?t(r):t,[n,r,t]),u=(0,o.useMemo)(()=>n?i:W(r,i),[n,r,i]),a=i&&i.provider,s=(0,o.useRef)(f);a&&!s.current&&(s.current=M(a(u.cache||B),i));let l=s.current;return l&&(u.cache=l[0],u.mutate=l[1]),L(()=>{if(l)return l[2]&&l[2](),l[3]},[]),(0,o.createElement)(G.Provider,h(e,{value:u}))},"defaultValue",{value:K});let et=(t=(e,t,r)=>{let{cache:n,compare:i,suspense:u,fallbackData:a,revalidateOnMount:l,revalidateIfStale:d,refreshInterval:p,refreshWhenHidden:g,refreshWhenOffline:E,keepPreviousData:m}=r,[w,R,S,O]=c.get(n),[C,I]=D(e),k=(0,o.useRef)(!1),x=(0,o.useRef)(!1),P=(0,o.useRef)(C),V=(0,o.useRef)(t),j=(0,o.useRef)(r),N=()=>j.current.isVisible()&&j.current.isOnline(),[F,M,B,$]=T(n,C),K=(0,o.useRef)({}).current,W=v(a)?v(r.fallback)?f:r.fallback[C]:a,G=(e,t)=>{for(let r in K)if("data"===r){if(!i(e[r],t[r])&&(!v(e[r])||!i(eo,t[r])))return!1}else if(t[r]!==e[r])return!1;return!0},q=(0,o.useMemo)(()=>{let e=!!C&&!!t&&(v(l)?!j.current.isPaused()&&!u&&!1!==d:l),r=t=>{let r=h(t);return(delete r._k,e)?{isValidating:!0,isLoading:!0,...r}:r},n=F(),i=$(),o=r(n),a=n===i?o:r(i),s=o;return[()=>{let e=r(F());return G(e,s)?(s.data=e.data,s.isLoading=e.isLoading,s.isValidating=e.isValidating,s.error=e.error,s):(s=e,e)},()=>a]},[n,C]),J=(0,s.useSyncExternalStore)((0,o.useCallback)(e=>B(C,(t,r)=>{G(r,t)||e()}),[n,C]),q[0],q[1]),Q=!k.current,Y=w[C]&&w[C].length>0,et=J.data,er=v(et)?W&&"function"==typeof W.then?Z(W):W:et,en=J.error,ei=(0,o.useRef)(er),eo=m?v(et)?v(ei.current)?er:ei.current:et:er,eu=(!Y||!!v(en))&&(Q&&!v(l)?l:!j.current.isPaused()&&(u?!v(er)&&d:v(er)||d)),ea=!!(C&&t&&Q&&eu),es=v(J.isValidating)?ea:J.isValidating,el=v(J.isLoading)?ea:J.isLoading,ec=(0,o.useCallback)(async e=>{let t,n,o=V.current;if(!C||!o||x.current||j.current.isPaused())return!1;let u=!0,a=e||{},s=!S[C]||!a.dedupe,l=()=>A?!x.current&&C===P.current&&k.current:C===P.current,c={isValidating:!1,isLoading:!1},d=()=>{M(c)},p=()=>{let e=S[C];e&&e[1]===n&&delete S[C]},h={isValidating:!0};v(F().data)&&(h.isLoading=!0);try{if(s&&(M(h),r.loadingTimeout&&v(F().data)&&setTimeout(()=>{u&&l()&&j.current.onLoadingSlow(C,r)},r.loadingTimeout),S[C]=[o(I),U()]),[t,n]=S[C],t=await t,s&&setTimeout(p,r.dedupingInterval),!S[C]||S[C][1]!==n)return s&&l()&&j.current.onDiscarded(C),!1;c.error=f;let e=R[C];if(!v(e)&&(n<=e[0]||n<=e[1]||0===e[1]))return d(),s&&l()&&j.current.onDiscarded(C),!1;let a=F().data;c.data=i(a,t)?a:t,s&&l()&&j.current.onSuccess(t,C,r)}catch(r){p();let e=j.current,{shouldRetryOnError:t}=e;!e.isPaused()&&(c.error=r,s&&l())&&(e.onError(r,C,e),(!0===t||"function"==typeof t&&t(r))&&(!j.current.revalidateOnFocus||!j.current.revalidateOnReconnect||N())&&e.onErrorRetry(r,C,e,e=>{let t=w[C];t&&t[0]&&t[0](H.ERROR_REVALIDATE_EVENT,e)},{retryCount:(a.retryCount||0)+1,dedupe:!0}))}return u=!1,d(),!0},[C,n]),ed=(0,o.useCallback)((...e)=>z(n,P.current,...e),[]);if(L(()=>{V.current=t,j.current=r,v(et)||(ei.current=et)}),L(()=>{var e;let t;if(!C)return;let r=ec.bind(f,X),n=0;j.current.revalidateOnFocus&&(n=Date.now()+j.current.focusThrottleInterval);let i=(e=(e,t={})=>
1{if(e==H.FOCUS_EVENT){let e=Date.now();j.current.revalidateOnFocus&&e>n&&N()&&(n=e+j.current.focusThrottleInterval,r())}else if(e==H.RECONNECT_EVENT)j.current.revalidateOnReconnect&&N()&&r();else if(e==H.MUTATE_EVENT)return ec();else if(e==H.ERROR_REVALIDATE_EVENT)return ec(t)},(t=w[C]||(w[C]=[])).push(e),()=>{let r=t.indexOf(e);r>=0&&(t[r]=t[t.length-1],t.pop())});if(x.current=!1,P.current=C,k.current=!0,M({_k:I}),eu&&!S[C])if(v(er)||_)r();else y&&typeof window.requestAnimationFrame!=b?window.requestAnimationFrame(r):setTimeout(r,1);return()=>{x.current=!0,i()}},[C]),L(()=>{let e;function t(){let t="function"==typeof p?p(F().data):p;t&&-1!==e&&(e=setTimeout(r,t))}function r(){!F().error&&(g||j.current.isVisible())&&(E||j.current.isOnline())?ec(X).then(t):t()}return t(),()=>{e&&(clearTimeout(e),e=-1)}},[p,g,E,C]),(0,o.useDebugValue)(eo),u){let e=C&&v(er);if(!A&&_&&e)throw Error("Fallback data is required when using Suspense in SSR.");e&&(V.current=t,j.current=r,x.current=!1);let n=O[C];if(Z(!v(n)&&e?ed(n):ee),!v(en)&&e)throw en;let i=e?ec(X):ee;!v(eo)&&e&&(i.status="fulfilled",i.value=!0),Z(i)}return{mutate:ed,get data(){return K.data=!0,eo},get error(){return K.error=!0,en},get isValidating(){return K.isValidating=!0,es},get isLoading(){return K.isLoading=!0,el}}},function(...e){let r,n=(r=(0,o.useContext)(G),(0,o.useMemo)(()=>h(K,r),[r])),[i,u,a]="function"==typeof e[1]?[e[0],e[1],e[2]||{}]:[e[0],null,(null===e[1]?e[2]:e[1])||{}],s=W(n,a),l=t,{use:c}=s,d=(c||[]).concat(J);for(let e=d.length;e--;)l=d[e](l);return l(i,u||s.fetcher||null,s)});class er extends Error{status;constructor(e,t){super(`${e} from ${t}`),this.status=e,this.name="FetchError"}}async function en(e){let t=await fetch(e,{headers:{accept:"application/json"}});if(!t.ok)throw new er(t.status,e);return await t.json()}let ei=(0,o.createContext)(void 0);function eo(){let e=(0,o.useContext)(ei);if(void 0===e)throw Error("useSubscription must be used within a SubscriptionProvider");return e}e.s(["SubscriptionProvider",0,function({children:e,initialSubscription:t,teamId:n}){let i,u=n?(i=n,`/api/teams/${i}/subscription`):null,{data:a,mutate:s,isValidating:l}=et(u,en,{fallbackData:{subscription:t},revalidateOnMount:!1,revalidateOnFocus:!1,dedupingInterval:2e3});(0,o.useEffect)(()=>{t&&s({subscription:t},{revalidate:!1})},[t,s]);let c=(0,o.useRef)(null),d=(0,o.useCallback)(async()=>{u&&(c.current||(c.current=s().catch(e=>console.error("Error refreshing subscription data:",e)).finally(()=>{c.current=null})),await c.current)},[u,s]);return(0,r.jsx)(ei.Provider,{value:{subscription:a?.subscription??t??null,refreshSubscription:d,isLoading:l},children:e})},"useSubscription",0,eo],8934);let eu=(0,o.createContext)(void 0);function ea(){let e=(0,o.useContext)(eu);if(void 0===e)throw Error("useTeam must be used within a TeamProvider");return e}e.s(["TeamProvider",0,function({children:e,initialTeam:t}){let n,i=t?.id?(n=t.id,`/api/teams/${n}`):null,{data:u,mutate:a,isValidating:s}=et(i,en,{fallbackData:{team:t},revalidateOnMount:!1,revalidateOnFocus:!1,dedupingInterval:2e3});(0,o.useEffect)(()=>{t&&a({team:t},{revalidate:!1})},[t,a]);let l=(0,o.useRef)(null),c=(0,o.useCallback)(async()=>{i&&(l.current||(l.current=a().catch(e=>console.error("Error refreshing team data:",e)).finally(()=>{l.current=null})),await l.current)},[i,a]);return(0,r.jsx)(eu.Provider,{value:{team:u?.team??t??null,refreshTeam:c,isLoading:s},children:e})},"useTeam",0,ea],95266);let es=(0,o.createContext)(void 0),el="hooked:selectedChannelId:",ec="__all__";function ed(e,t){if(e)try{let r=`${el}${e}`;window.localStorage.setItem(r,t??ec)}catch{}}e.s(["ChannelProvider",0,function({children:e,hasAppAccess:t=!1}){let{team:n}=ea(),{subscription:s}=eo(),l=(0,a.useTenantSlug)(),c=n?.id,[d,f]=(0,o.useState)([]),[p,v]=(0,o.useState)(!0),[h,g]=(0,o.useState)(null),E=(0,o.useCallback)(async()=>{if(!c){f([]),v(!1);return}v(!0);try{let e=await i(c);f(e||[])}catch(e){console.error("â [ChannelContext] Error loading channels",e),f([])}finally{v(!1)}},[c]);(0,o.useEffect)(()=>{E()},[E]),(0,o.useEffect)(()=>{if(p)return;let e=function(e){if(!e)return null;try{let t=window.localStorage.getItem(`${el}${e}`);return t&&t.length>0?t:null}catch{return null}}(c);if(e===ec)return void g(null);if(e&&d.some(t=>t.id===e))return void g(t=>t===e?t:e);if(d.length>0){let e=d[0].id;g(t=>t&&d.some(e=>e.id===t)?t:e),ed(c,e);return}g(e=>null===e?e:null)},[d,p,c]);let b=(0,o.useCallback)(e=>{g(e),ed(c,e)},[c]),y=(0,o.useMemo)(()=>d.find(e=>e.id===h)||null,[d,h]),m=(0,o.useMemo)(()=>{var e;return e=(0,u.getChannelLimit)(l||"hooked",s?.subscriptionType,s?.customLimitsConfig),e>0?e:+!!t},[l,s?.subscriptionType,s?.customLimitsConfig,t]),w=d.length<m;return(0,r.jsx)(es.Provider,{value:{channels:d,selectedChannelId:h,selectedChannel:y,setSelectedChannel:b,refreshChannels:E,isLoading:p,limit:m,canAddChannel:w},children:e})},"useChannel",0,function(){let e=(0,o.useContext)(es);if(void 0===e)throw Error("useChannel must be used within a ChannelProvider");return e}],407608)},10781,996685,538279,e=>{"use strict";var t=e.i(843476),r=e.i(271645),n=e.i(50270);let i={OPENROUTER:"openrouter",ELEVENLABS:"elevenlabs",FIRECRAWL:"firecrawl",BRIA:"bria",GEMINI:"gemini"},o=n.z.enum([i.OPENROUTER,i.ELEVENLABS,i.FIRECRAWL,i.BRIA,i.GEMINI]);o.options;let u={OK:"ok",MISSING:"missing",INVALID:"invalid"}
1,a=[i.OPENROUTER,i.ELEVENLABS];n.z.object({id:n.z.string().cuid(),provider:o,keyHint:n.z.string(),validatedAt:n.z.date().nullable(),lastError:n.z.string().nullable(),lastErrorAt:n.z.date().nullable(),updatedAt:n.z.date()}),n.z.object({teamId:n.z.string().cuid(),provider:o,apiKey:n.z.string().trim().min(8,"That does not look like an API key"),createdByUserId:n.z.string().cuid().optional()}),n.z.union([n.z.object({ok:n.z.literal(!0),meta:n.z.object({label:n.z.string().optional(),credits:n.z.number().optional()}).optional()}),n.z.object({ok:n.z.literal(!1),message:n.z.string()})]),e.s(["CREDENTIAL_KEY_STATUS",0,u,"CREDENTIAL_PROVIDER",0,i,"CREDENTIAL_PROVIDER_LABEL",0,{openrouter:"OpenRouter",elevenlabs:"ElevenLabs",firecrawl:"Firecrawl",bria:"Bria",gemini:"Google AI (Gemini)"},"REQUIRED_FOR_VIDEO",0,a,"ZCredentialProvider",0,o],996685);var s=e.i(407608),l=e.i(8934),c=e.i(95266);let d=(0,r.createContext)(void 0);function f({children:e,initialUser:n}){let[i,o]=(0,r.useState)(n),[u,a]=(0,r.useState)(!1),s=async()=>{if(i?.id){a(!0);try{let e=await fetch(`/api/users/${i.id}`,{method:"GET",headers:{"Content-Type":"application/json"}});if(e.ok){let t=await e.json();o(t.user)}}catch(e){console.error("Error refreshing user data:",e)}finally{a(!1)}}};return(0,r.useEffect)(()=>{n&&o(n)},[n]),(0,t.jsx)(d.Provider,{value:{user:i,refreshUser:s,isLoading:u},children:e})}function p(){let e=(0,r.useContext)(d);if(void 0===e)throw Error("useUser must be used within a UserProvider");return e}e.s(["UserProvider",0,f,"useUser",0,p],538279);let v=(0,r.createContext)(void 0);function h({children:e,userTeams:r,onboardingStatus:n,shouldShowOnboarding:i,isByok:o,providerKeys:u,hasAppAccess:a,billsWithCredits:s,hasTrends:d,accountTier:f,isFounder:g,proUpgrade:E}){let{user:b,refreshUser:y,isLoading:m}=p(),{team:w,refreshTeam:T,isLoading:R}=(0,c.useTeam)(),{subscription:S,refreshSubscription:O,isLoading:C}=(0,l.useSubscription)();return(0,t.jsx)(v.Provider,{value:{user:b,team:w,userTeams:r,subscription:S,onboardingStatus:n,shouldShowOnboarding:i,isByok:o,providerKeys:u,hasAppAccess:a,billsWithCredits:s,hasTrends:d,accountTier:f,isFounder:g,proUpgrade:E,refreshUser:y,refreshTeam:T,refreshSubscription:O,isLoading:{user:m,team:R,subscription:C}},children:e})}function g(e){let t=(0,r.useContext)(v);return t&&t.isByok?t.providerKeys[e]??u.OK:u.OK}e.s(["AppProvider",0,function({children:e,initialUser:r,initialTeam:n,initialUserTeams:i=[],initialSubscription:o,onboardingStatus:u=null,shouldShowOnboarding:a=!1,isByok:d=!1,providerKeys:p={},hasAppAccess:v=!0,billsWithCredits:g=!1,hasTrends:E=!1,accountTier:b="none",isFounder:y=!1,proUpgrade:m=null}){return(0,t.jsx)(f,{initialUser:r,children:(0,t.jsx)(c.TeamProvider,{initialTeam:n,children:(0,t.jsx)(l.SubscriptionProvider,{initialSubscription:o,teamId:n.id,children:(0,t.jsx)(s.ChannelProvider,{hasAppAccess:v,children:(0,t.jsx)(h,{userTeams:i,onboardingStatus:u,shouldShowOnboarding:a,isByok:d,providerKeys:p,hasAppAccess:v,billsWithCredits:g,hasTrends:E,accountTier:b,isFounder:y,proUpgrade:m,children:e})})})})})},"useAccountTier",0,function(){let e=(0,r.useContext)(v);return{tier:e?.accountTier??"none",isFounder:e?.isFounder??!1}},"useApp",0,function(){let e=(0,r.useContext)(v);if(void 0===e)throw Error("useApp must be used within an AppProvider");return e},"useBillsWithCredits",0,function(){let e=(0,r.useContext)(v);return e?.billsWithCredits??!1},"useHasAppAccess",0,function(){let e=(0,r.useContext)(v);return e?.hasAppAccess??!0},"useHasProviderKey",0,function(e){return g(e)===u.OK},"useHasTrends",0,function(){let e=(0,r.useContext)(v);return e?.hasTrends??!1},"useIsByok",0,function(){let e=(0,r.useContext)(v);return e?.isByok??!1},"useProUpgrade",0,function(){let e=(0,r.useContext)(v);return e?.proUpgrade??null},"useProviderKeyStatus",0,g],10781)}]);
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.