PageSourceSearch

https://gnod7777-multica.hf.space/_next/static/chunks/77999-f97461ca3895754a.js

js gnod7777-multica.hf.space collected 2026-10-03 16:54:32 UTC 7,849 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[77999],{772:(e,t,n)=>{n.d(t,{Bz:()=>l,D:()=>a,Mo:()=>o,o0:()=>s});let i=null,r=null;function o(e){i=e??null}function s(){return i??function(){if("u"<typeof navigator)return"unknown";let e=navigator;for(let t of[e.userAgentData?.platform,e.platform,e.userAgent]){if(!t?.trim())continue;let e=function(e){let t=e.toLowerCase();return t.includes("mac")||t.includes("darwin")?"macos":t.includes("win")?"windows":t.includes("linux")||t.includes("x11")?"linux":"unknown"}(t);if("unknown"!==e)return e}return"unknown"}()}function a(e){r=e??null}function l(){let e;return r??((e=window).electron||e.desktopAPI||"u">typeof navigator&&/Electron/i.test(navigator.userAgent)?"desktop":"web")}},11431:(e,t,n)=>{n.d(t,{CY:()=>a,xF:()=>u,zA:()=>g,nV:()=>c});var i=n(96808),r=n(31730),o=n(59443),s=n(76083);function a({locale:e,resources:t,children:n}){let[l]=(0,s.useState)(()=>{let n;return(n=i.Ay.createInstance()).use(r.r9).init({lng:e,fallbackLng:"en",resources:t,interpolation:{escapeValue:!1},initAsync:!1,react:{useSuspense:!1}}),n}),u=(0,s.useRef)({locale:e,resources:t});return(0,s.useEffect)(()=>{if(u.current.locale!==e||u.current.resources!==t){for(let[e,n]of Object.entries(t))for(let[t,i]of Object.entries(n))l.addResourceBundle(e,t,i,!0,!0);l.language!==e?l.changeLanguage(e):l.emit("languageChanged",e),u.current={locale:e,resources:t}}},[l,e,t]),(0,o.jsx)(r.xC,{i18n:l,children:n})}let l=(0,s.createContext)(null);function u({adapter:e,children:t}){return(0,o.jsx)(l.Provider,{value:e,children:t})}function c(){let e=(0,s.use)(l);if(!e)throw Error("useLocaleAdapter must be used within <LocaleAdapterProvider>");return e}var d=n(99677),f=n(43669);function g(){let e=(0,d.nc)(e=>e.user?.language??null),t=c(),{i18n:n}=(0,r.Bd)();return(0,s.useEffect)(()=>{e&&f.d.includes(e)&&e!==n.language&&(t.persist(e),window.location.reload())},[e,n.language,t]),null}},43669:(e,t,n)=>{n.d(t,{X:()=>r,d:()=>i});let i=["en","zh-Hans","ko","ja"],r="en"},70547:(e,t,n)=>{n.d(t,{i:()=>l});var i=n(59443),r=n(76083),o=n(35315),s=n(19230);function a(){return new s.E({defaultOptions:{queries:{staleTime:1/0,gcTime:6e5,refetchOnWindowFocus:!1,refetchOnReconnect:!0,retry:1},mutations:{retry:!1}}})}function l({children:e}){let[t]=(0,r.useState)(a);return(0,i.jsx)(o.Ht,{client:t,children:e})}},77999:(e,t,n)=>{let i,r;n.d(t,{Xq:()=>L,y8:()=>D.y,ZL:()=>w.Z,jQ:()=>b.jQ,bY:()=>U.bY,_k:()=>U._k,IM:()=>U.IM,gf:()=>U.gf,Zm:()=>b.Zm});var o=n(59443),s=n(76083),a=n(79529),l=n(6262);[["issues"],["issues",":id"],["projects"],["projects",":id"],["autopilots"],["autopilots",":id"],["agents"],["agents","new"],["agents",":id"],["members",":id"],["squads"],["squads",":id"],["inbox"],["chat"],["my-issues"],["usage"],["billing"],["runtimes"],["runtimes",":id"],["runtimes",":id","runtime",":runtimeId"],["skills"],["skills",":id"],["settings"],["attachments",":id","preview"]].map(e=>e[0]),[["login"],["signup"],["logout"],["workspaces","new"],["invite",":id"],["invitations"],["onboarding"],["auth","callback"]].map(e=>e[0]);let u=0,c=!1;var d=n(75054),f=n(99677),g=n(52359),m=n(11431),p=n(85146),h=n(70547),v=n(89835),w=n(64042),k=n(35315),_=n(90070),y=n(71387),b=n(44302);let j=(0,v.h)("auth");function x({children:e,onLogin:t,onLogout:n,storage:i=w.Z,cookieAuth:r,identity:a}){let u=(0,k.jE)();return(0,s.useEffect)(()=>{let e=(0,d.x4)();(0,l.gF)(),e.getConfig().then(e=>{e.cdn_domain&&_.im.getState().setCdnConfig({cdnDomain:e.cdn_domain,cdnSigned:!0===e.cdn_signed}),_.im.getState().setAuthConfig({allowSignup:e.allow_signup,googleClientId:e.google_client_id,workspaceCreationDisabled:!0===e.workspace_creation_disabled,vcsIntegrationAvailable:!0===e.vcs_integration_available}),_.im.getState().setDaemonConfig({daemonServerUrl:e.daemon_server_url,daemonAppUrl:e.daemon_app_url}),_.im.getState().setFeatureFlags(e.feature_flags),_.im.getState().setServerVersion(e.server_version),e.posthog_key&&(0,l.Bu)({key:e.posthog_key,host:e.posthog_host||"",appVersion:a?.version,environment:e.anal
1ytics_environment})}).catch(()=>{});let o=e=>{t?.(),f.nc.setState({user:e,isLoading:!1}),(0,l.ls)(e.id,{email:e.email,name:e.name})},s=()=>{n?.(),(0,l.oV)(),f.nc.setState({user:null,isLoading:!1})};if(r)return void Promise.all([e.getMe(),e.listWorkspaces()]).then(([e,t])=>{o(e),u.setQueryData(y.Or.list(),t)}).catch(e=>{j.error("cookie auth init failed",e),s()});let c=i.getItem("multica_token");if(!c){n?.(),f.nc.setState({isLoading:!1});return}e.setToken(c),Promise.all([e.getMe(),e.listWorkspaces()]).then(([e,t])=>{o(e),u.setQueryData(y.Or.list(),t)}).catch(t=>{j.error("auth init failed",t),e.setToken(null),(0,b.Zm)(null,null),i.removeItem("multica_token"),s()})},[]),(0,o.jsx)(o.Fragment,{children:e})}let S="multica_install_id",E=/^[0-9a-f]{8}-[0-9a-f]{4}-[1-8][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$/i;function C({storage:e,identity:t}){let n=(0,f.nc)(e=>e.user?.id??null),i=(0,s.useRef)(n);i.current=n;let r=(0,s.useRef)(!1),o=(0,s.useRef)(!1),a=(0,s.useCallback)(async()=>{let n=t?.platform,s=i.current;if(!s||"web"!==n&&"desktop"!==n)return;if(r.current){o.current=!0;return}let l=function(e=new Date){return e.toISOString().slice(0,10)}();try{let t=function(e,t=function(){if("function"==typeof globalThis.crypto?.randomUUID)return globalThis.crypto.randomUUID();let e=new Uint8Array(16);globalThis.crypto.getRandomValues(e),e[6]=15&e[6]|64,e[8]=63&e[8]|128;let t=Array.from(e,e=>e.toString(16).padStart(2,"0"));return`${t.slice(0,4).join("")}-${t.slice(4,6).join("")}-${t.slice(6,8).join("")}-${t.slice(8,10).join("")}-${t.slice(10).join("")}`}){let n=e.getItem(S);if(n&&E.test(n))return n.toLowerCase();let i=t().toLowerCase();if(!E.test(i))throw Error("install id generator returned an invalid UUID");return e.setItem(S,i),i}(e),i=`multica_client_usage_last_reported:${s}:${n}:${t}`;if(e.getItem(i)===l)return;r.current=!0,await (0,d.x4)().upsertClientUsage({install_id:t}),e.setItem(i,l)}catch{}finally{r.current=!1,o.current&&(o.current=!1,a())}},[t?.platform,e]);return(0,s.useEffect)(()=>{a()},[a,n]),(0,s.useEffect)(()=>{let e=()=>void a(),t=()=>{"visible"===document.visibilityState&&a()};return window.addEventListener("focus",e),document.addEventListener("visibilitychange",t),()=>{window.removeEventListener("focus",e),document.removeEventListener("visibilitychange",t)}},[a]),null}var I=n(772);let A=!1;function L({children:e,apiBaseUrl:t="",wsUrl:n="ws://localhost:8080/ws",storage:k=w.Z,cookieAuth:_,onLogin:y,onLogout:b,identity:j,locale:S,resources:E,localeAdapter:D}){(0,s.useMemo)(()=>(function(e,t,n,o,s,l){if(A)return;(0,I.Mo)(l?.os==="macos"||l?.os==="windows"||l?.os==="linux"||l?.os==="unknown"?l.os:null),(0,I.D)(l?.platform==="desktop"?"desktop":null);let u=new a.OW(e,{logger:(0,v.h)("api"),onUnauthorized:()=>{t.removeItem("multica_token")},identity:l});if((0,d.il)(u),(0,d.ie)((0,v.h)("api-schema")),!s){let e=t.getItem("multica_token");e&&u.setToken(e)}i=(0,f.Et)({api:u,storage:t,onLogin:n,onLogout:o,cookieAuth:s}),(0,f.ll)(i),r=(0,g.e4)({storage:t}),(0,g.Bx)(r),A=!0})(t,k,y,b,_,j),[]),(0,s.useEffect)(()=>{if(!c&&"u">typeof PerformanceObserver){c=!0;try{new PerformanceObserver(e=>{for(let t of e.getEntries()){if(t.duration<2e3)continue;let e=Date.now();e-u<6e4||(u=e,(0,l.r)("client_unresponsive",{source:"longtask",duration_ms:Math.round(t.duration),path:"u">typeof location?location.pathname:void 0}))}}).observe({type:"longtask"})}catch{}}},[]);let U=(0,o.jsx)(h.i,{children:(0,o.jsxs)(x,{onLogin:y,onLogout:b,storage:k,cookieAuth:_,identity:j,children:[j?.platform!=="desktop"&&(0,o.jsx)(C,{storage:k,identity:j}),(0,o.jsx)(p.EQ,{wsUrl:n,authStore:i,storage:k,cookieAuth:_,identity:j,children:e})]})}),O=D?(0,o.jsxs)(m.xF,{adapter:D,children:[(0,o.jsx)(m.zA,{}),U]}):U;return(0,o.jsx)(m.CY,{locale:S,resources:E,children:O})}var D=n(84141),U=n(77304)}}]);

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.