PageSourceSearch

https://kumoo.ai/_next/static/chunks/4315.8a81c59745731525.js

js kumoo.ai collected 2026-10-05 12:10:44 UTC 10,238 bytes, 6 lines download raw bytes

1!function(){try{var e="u">typeof window?window:"u">typeof global?global:"u">typeof globalThis?globalThis:"u">typeof self?self:{},t=(new e.Error).stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="3e4685df-7169-4a79-be99-ca0d9ea129dc",e._sentryDebugIdIdentifier="sentry-dbid-3e4685df-7169-4a79-be99-ca0d9ea129dc")}catch(e){}}();"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4315],{39164:(e,t,n)=>{n.d(t,{v:()=>l});var o=n(51429),i=n(47044);let a=e=>{let t=(0,i.y)(e),n=e=>(function(e,t=e=>e){let n=o.useSyncExternalStore(e.subscribe,o.useCallback(()=>t(e.getState()),[e,t]),o.useCallback(()=>t(e.getInitialState()),[e,t]));return o.useDebugValue(n),n})(t,e);return Object.assign(n,t),n},l=e=>e?a(e):a},47044:(e,t,n)=>{n.d(t,{y:()=>i});let o=e=>{let t,n=new Set,o=(e,o)=>{let i="function"==typeof e?e(t):e;if(!Object.is(i,t)){let e=t;t=(null!=o?o:"object"!=typeof i||null===i)?i:Object.assign({},t,i),n.forEach(n=>n(t,e))}},i=()=>t,a={setState:o,getState:i,getInitialState:()=>l,subscribe:e=>(n.add(e),()=>n.delete(e))},l=t=e(o,i,a);return a},i=e=>e?o(e):o},74315:(e,t,n)=>{n.d(t,{Up:()=>g,v9:()=>d,default:()=>I});var o,i=n(44941),a=n(63722),l=n(39164),s=n(19508),r=n(76076),c=n(76192),u=n(79381);let d="REQUEST_LOGIN_SUPERSEDED",g="REQUEST_LOGIN_CANCELLED",f=null,y=!1,p=null;function b(e){return e instanceof Error&&"AccountBootstrapTimeoutError"===e.name}async function S(e,t){let n,o=new Promise((t,o)=>{n=setTimeout(()=>{o(Object.assign(Error(`Account bootstrap timed out at ${e}`),{name:"AccountBootstrapTimeoutError",accountBootstrapStep:e,accountBootstrapTimeoutMs:15e3}))},15e3)});try{return await Promise.race([t,o])}finally{n&&clearTimeout(n)}}function m(e,t){let n=b(t),o=t instanceof Error?t:Error(`Account bootstrap failed at ${e}`),i=window.navigator;(0,a.uV)(o,{level:n?"warning":"error",tags:{scope:"account_bootstrap",step:e,timeout:n,online:i?.onLine},contexts:{account_bootstrap:{step:e,timeoutMs:15e3,pathname:window.location.pathname,visibilityState:"u"<typeof document?void 0:document.visibilityState,userAgent:i?.userAgent,effectiveType:i?.connection?.effectiveType,saveData:i?.connection?.saveData}},fingerprint:["account_bootstrap",e,n?"timeout":"error"]})}let v=(0,l.v)()((o=(e,t)=>({initializing:!0,ready:!1,isLogin:!1,accountLoggedIn:!1,sessionSyncFailed:!1,account:null,user:null,memberInfo:null,location:null,hasSubProduct:!0,loginPending:!1,resetUser:()=>{e({isLogin:!1,accountLoggedIn:!1,sessionSyncFailed:!1,user:null,memberInfo:null,location:null}),(0,c.T)({loggedIn:!1})},bootstrap:async()=>{t().account||(p||(p=(async()=>{e({initializing:!0});let t=null,n="getAccountInstance";try{if(n="getAccountInstance",!(t=await S("getAccountInstance",(0,s.Ay)())))return void e({initializing:!1,ready:!0,isLogin:!1,accountLoggedIn:!1,sessionSyncFailed:!1,account:null});if(n="isLogin",!await S("isLogin",t.isLogin()))return void e({isLogin:!1,accountLoggedIn:!1,sessionSyncFailed:!1,user:null,memberInfo:null,location:null,account:t,initializing:!1,ready:!0});try{n="bootstrapAccountSession";let o=await S("bootstrapAccountSession",(0,s.Ow)(t));if(o.businessLoggedIn)return void e({isLogin:!0,accountLoggedIn:!0,sessionSyncFailed:!1,user:o.user,account:o.sdk,memberInfo:o.memberInfo,location:o.location,initializing:!1,ready:!0});e({isLogin:!1,accountLoggedIn:o.accountLoggedIn,sessionSyncFailed:o.accountLoggedIn,user:null,memberInfo:null,location:null,account:o.sdk,initializing:!1,ready:!0});return}catch(e){m("bootstrapAccountSession",e)}e({isLogin:!1,accountLoggedIn:!0,sessionSyncFailed:!0,user:null,memberInfo:null,location:null,account:t,initializing:!1,ready:!0})}catch(o){m(b(o)?o.accountBootstrapStep:n,o),e({isLogin:!1,accountLoggedIn:!1,sessionSyncFailed:!1,user:null,memberInfo:null,location:null,account:t,initializing:!1,ready:!0})}finally{p=null}})()),await p)},refreshSession:async()=>{let n=t().account??await (0,s.Ay)();if(!n)return void t().resetUser();if(t().account||e({account:n}),!await n.isLogin()){e({isLogin:!1,accountLoggedIn:!1,sessionSyncFailed:!1,user:null,memberInfo:null,location:null}),(0,c.T)({loggedIn:!1});return}try{let t=await (0,s.Ow)(n);t.businessLoggedIn?(e({isLogin:!0,accountLoggedIn:!0,sessionSyncFailed:!1,user:t.user,memberInfo:t.memberInfo,location:t.location,account:t.sdk}),(0,c.T)({loggedIn:!0})):(e({isLogin:!1,accountLoggedIn:t.accountLoggedIn,sessionSyncFailed:t.accountLoggedIn,user:null,memberInfo:null,location:null,account:t.sdk}),(0,c.T)({loggedIn:!1}))}catch{e({isLogin:!1,accountLoggedIn:!0,sessionSyncFailed:!0,user:null,memberInfo:null,location:null,account:n}),(0,c.T)({loggedIn:!1})}},openLogin:async(n={})=>{let o=t().account??await (0,s.Ay)();if(o){t().account||e({account:o}),n.skipAccountRedirect||(0,s.K3)(n.redirectCallback||""),t().loginPending&&e({loginPending:!1}),o.logining=!1,e({loginPending:!0});try{let{openLoginPopup:t,ThirdPartyPlatform:a,LoginMethod:l}=await (0,i.vT)(),{onClose:s,...r}=n;delete r.skipAccountRedirect,delete r.disallowFullPageFallback;let c={...{showMeituXiuXiuQRCode:!1,showCloseButton:!0,closeable:!0,thirdPartyAccounts:[a.Google,a.Facebook,a.Email],useLoginMethod:l.ThirdPartyAccounts},...r,force:r.force??r.useLoginMethod!==l.GoogleOneTap,onClose:t=>{e({loginPending:!1}),o.logining=!1,s?.(t)}};await t(c)}catch(i){if(n.disallowFullPageFallback)throw i;let e=`${window.location.origin}/callback`,t={...n,redirectCallback:n.redirectCallback||e};await o.login(t),console.warn("[account] openLoginPopup failed, fell back to full-page login",i)}finally{e({loginPending:!1})}}},requestLogin:async e=>{if(await t().bootstrap(),t().isLogin){(0,r.Hh)()&&await t().refreshSession(),await e();return}return new Promise((n,o)=>{let i=f;f={fn:e,resolve:n,reject:o},i&&i.reject(Object.assign(Error("requestLogin 已被新的调用替换"),{code:d})),t().loginPending||t().openLogin({disallowFullPageFallback:!0,onClose:()=>{let e;setTimeout(e=()=>{if(y)return void setTimeout(e,0);let t=f;t&&!v.getState().isLogin&&(f=null,t.reject(Object.assign(Error("已取消登录"),{code:g})))},0)}}).catch(e=>{let t=f;t&&(f=null,t.reject(e))})})},logout:async(e={})=>{let n=t().account;(0,s.K3)();let o={silentSyncLogout:!0,...e};await n?.logout(o)}}),(0,u.lt)(o,{name:"UserStore",enabled:!1})));(0,s.Xo)({afterLoginSuccess:async()=>{y=!0;try{await v.getState().refreshSession();let e=f;if(!e)return;if(!v.getState().isLogin){f=null,e.reject(Object.assign(Error("登录后云修会话未就绪"),{code:"REQUEST_LOGIN_SESSION_INCOMPLETE"}));return}f=null;try{await e.fn(),e.resolve()}catch(t){e.reject(t)}}finally{y=!1}},afterLogoutSuccess:()=>{v.getState().resetUser()}});let I=v},79381:(e,t,n)=>{n.d(t,{lt:()=>a});let o=new Map,i=e=>
1{let t=o.get(e);return t?Object.fromEntries(Object.entries(t.stores).map(([e,t])=>[e,t.getState()])):{}},a=(e,t={})=>(n,a,s)=>{let r,{enabled:c,anonymousActionType:u,store:d,...g}=t;try{r=(null==c||c)&&window.__REDUX_DEVTOOLS_EXTENSION__}catch(e){}if(!r)return e(n,a,s);let{connection:f,...y}=((e,t,n)=>{if(void 0===e)return{type:"untracked",connection:t.connect(n)};let i=o.get(n.name);if(i)return{type:"tracked",store:e,...i};let a={connection:t.connect(n),stores:{}};return o.set(n.name,a),{type:"tracked",store:e,...a}})(d,r,g),p=!0;s.setState=(e,t,o)=>{let l=n(e,t);if(!p)return l;let r=void 0===o?{type:u||(e=>{var t,n;if(!e)return;let o=e.split("\n"),i=o.findIndex(e=>e.includes("api.setState"));if(i<0)return;let a=(null==(t=o[i+1])?void 0:t.trim())||"";return null==(n=/.+ (.+) .+/.exec(a))?void 0:n[1]})(Error().stack)||"anonymous"}:"string"==typeof o?{type:o}:o;return void 0===d?null==f||f.send(r,a()):null==f||f.send({...r,type:`${d}/${r.type}`},{...i(g.name),[d]:s.getState()}),l},s.devtools={cleanup:()=>{f&&"function"==typeof f.unsubscribe&&f.unsubscribe(),((e,t)=>{if(void 0===t)return;let n=o.get(e);n&&(delete n.stores[t],0===Object.keys(n.stores).length&&o.delete(e))})(g.name,d)}};let b=(...e)=>{let t=p;p=!1,n(...e),p=t},S=e(s.setState,a,s);if("untracked"===y.type?null==f||f.init(S):(y.stores[y.store]=s,null==f||f.init(Object.fromEntries(Object.entries(y.stores).map(([e,t])=>[e,e===y.store?S:t.getState()])))),s.dispatchFromDevtools&&"function"==typeof s.dispatch){let e=!1,t=s.dispatch;s.dispatch=(...n)=>{"__setState"!==n[0].type||e||(console.warn('[zustand devtools middleware] "__setState" action type is reserved to set state from the devtools. Avoid using it.'),e=!0),t(...n)}}return f.subscribe(e=>{var t;switch(e.type){case"ACTION":if("string"!=typeof e.payload)return void console.error("[zustand devtools middleware] Unsupported action format");return l(e.payload,e=>{if("__setState"===e.type){if(void 0===d)return void b(e.state);1!==Object.keys(e.state).length&&console.error(`
2                    [zustand devtools middleware] Unsupported __setState action format.
3                    When using 'store' option in devtools(), the 'state' should have only one key, which is a value of 'store' that was passed in devtools(),
4                    and value of this only key should be a state object. Example: { "type": "__setState", "state": { "abc123Store": { "foo": "bar" } } }
5                    `);let t=e.state[d];return void(null==t||JSON.stringify(s.getState())!==JSON.stringify(t)&&b(t))}s.dispatchFromDevtools&&"function"==typeof s.dispatch&&s.dispatch(e)});case"DISPATCH":switch(e.payload.type){case"RESET":if(b(S),void 0===d)return null==f?void 0:f.init(s.getState());return null==f?void 0:f.init(i(g.name));case"COMMIT":if(void 0===d){null==f||f.init(s.getState());break}return null==f?void 0:f.init(i(g.name));case"ROLLBACK":return l(e.state,e=>{if(void 0===d){b(e),null==f||f.init(s.getState());return}b(e[d]),null==f||f.init(i(g.name))});case"JUMP_TO_STATE":case"JUMP_TO_ACTION":return l(e.state,e=>{void 0===d?b(e):JSON.stringify(s.getState())!==JSON.stringify(e[d])&&b(e[d])});case"IMPORT_STATE":{let{nextLiftedState:n}=e.payload,o=null==(t=n.computedStates.slice(-1)[0])?void 0:t.state;if(!o)return;void 0===d?b(o):b(o[d]),null==f||f.send(null,n);break}case"PAUSE_RECORDING":return p=!p}return}}),S},l=(e,t)=>{let n;try{n=JSON.parse(e)}catch(e){console.error("[zustand devtools middleware] Could not parse the received json",e)}void 0!==n&&t(n)}}}]);
6//# sourceMappingURL=4315.8a81c59745731525.js.map

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.