5 lines
5.5 KiB
JavaScript
5 lines
5.5 KiB
JavaScript
"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8539],{9453:(e,t,n)=>{n.d(t,{A:()=>a});let a=(0,n(13185).A)("message-square",[["path",{d:"M22 17a2 2 0 0 1-2 2H6.828a2 2 0 0 0-1.414.586l-2.202 2.202A.71.71 0 0 1 2 21.286V5a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2z",key:"18887p"}]])},22027:(e,t,n)=>{n.d(t,{C:()=>r});var a=n(87711);function r(e){return(0,a.o)(e.defaultTagName??"div",e,e)}},25959:(e,t,n)=>{n.d(t,{v:()=>s});var a=n(12115);let r=e=>{let t,n=new Set,a=(e,a)=>{let r="function"==typeof e?e(t):e;if(!Object.is(r,t)){let e=t;t=(null!=a?a:"object"!=typeof r||null===r)?r:Object.assign({},t,r),n.forEach(n=>n(t,e))}},r=()=>t,l={setState:a,getState:r,getInitialState:()=>s,subscribe:e=>(n.add(e),()=>n.delete(e))},s=t=e(a,r,l);return l},l=e=>{let t=(e=>e?r(e):r)(e),n=e=>(function(e,t=e=>e){let n=a.useSyncExternalStore(e.subscribe,a.useCallback(()=>t(e.getState()),[e,t]),a.useCallback(()=>t(e.getInitialState()),[e,t]));return a.useDebugValue(n),n})(t,e);return Object.assign(n,t),n},s=e=>e?l(e):l},54796:(e,t,n)=>{n.d(t,{A:()=>a});let a=(0,n(13185).A)("circle-check-big",[["path",{d:"M21.801 10A10 10 0 1 1 17 3.335",key:"yps3ct"}],["path",{d:"m9 11 3 3L22 4",key:"1pflzl"}]])},69746:(e,t,n)=>{n.d(t,{A:()=>a});let a=(0,n(13185).A)("loader-circle",[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]])},83410:(e,t,n)=>{n.d(t,{A:()=>a});let a=(0,n(13185).A)("clock",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 6v6l4 2",key:"mmk7yg"}]])},84107:(e,t,n)=>{n.d(t,{A:()=>a});let a=(0,n(13185).A)("triangle-alert",[["path",{d:"m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3",key:"wmoenq"}],["path",{d:"M12 9v4",key:"juzpu7"}],["path",{d:"M12 17h.01",key:"p32p05"}]])},89840:(e,t,n)=>{n.d(t,{A:()=>a});let a=(0,n(13185).A)("send",[["path",{d:"M14.536 21.686a.5.5 0 0 0 .937-.024l6.5-19a.496.496 0 0 0-.635-.635l-19 6.5a.5.5 0 0 0-.024.937l7.93 3.18a2 2 0 0 1 1.112 1.11z",key:"1ffxy3"}],["path",{d:"m21.854 2.147-10.94 10.939",key:"12cjpa"}]])},89863:(e,t,n)=>{n.d(t,{lt:()=>o});let a=e=>!!e.dispatchFromDevtools&&"function"==typeof e.dispatch,r=new Map,l=e=>{let t=r.get(e);return t?Object.fromEntries(Object.entries(t.stores).map(([e,t])=>[e,t.getState()])):{}},s=/.+ (.+) .+/,i=/^([^@]+)@/,o=(e,t={})=>(n,o,u)=>{let c,{enabled:p,anonymousActionType:y,store:f,...v}=t;try{c=(null==p||p)&&window.__REDUX_DEVTOOLS_EXTENSION__}catch(e){}if(!c)return e(n,o,u);let{connection:h,...S}=((e,t,n)=>{if(void 0===e)return{type:"untracked",connection:t.connect(n)};let a=r.get(n.name);if(a)return{type:"tracked",store:e,...a};let l={connection:t.connect(n),stores:{}};return r.set(n.name,l),{type:"tracked",store:e,...l}})(f,c,v),g=!0;u.setState=(e,t,a)=>{let r=n(e,t);if(!g)return r;let d=void 0===a?{type:y||function(e){var t,n,a;if(!e)return;let r=e.split("\n"),l=r.findIndex(e=>e.includes("api.setState"));if(l<0)return;let o=(null==(t=r[l+1])?void 0:t.trim())||"";return(null==(n=s.exec(o))?void 0:n[1])||(null==(a=i.exec(o))?void 0:a[1])}(Error().stack)||"anonymous"}:"string"==typeof a?{type:a}:a;return void 0===f?null==h||h.send(d,o()):null==h||h.send({...d,type:`${f}/${d.type}`},{...l(v.name),[f]:u.getState()}),r},u.devtools={cleanup:()=>{h&&"function"==typeof h.unsubscribe&&h.unsubscribe(),((e,t)=>{if(void 0===t)return;let n=r.get(e);n&&(delete n.stores[t],0===Object.keys(n.stores).length&&r.delete(e))})(v.name,f)}};let b=(...e)=>{let t=g;g=!1,n(...e),g=t},m=e(u.setState,o,u);if("untracked"===S.type?null==h||h.init(m):(S.stores[S.store]=u,null==h||h.init(Object.fromEntries(Object.entries(S.stores).map(([e,t])=>[e,e===S.store?m:t.getState()])))),a(u)){let e=!1,t=u.dispatch;u.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 h.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 d(e.payload,e=>{if("__setState"===e.type){if(void 0===f)return void b(e.state);1!==Object.keys(e.state).length&&console.error(`
|
|
[zustand devtools middleware] Unsupported __setState action format.
|
|
When using 'store' option in devtools(), the 'state' should have only one key, which is a value of 'store' that was passed in devtools(),
|
|
and value of this only key should be a state object. Example: { "type": "__setState", "state": { "abc123Store": { "foo": "bar" } } }
|
|
`);let t=e.state[f];return void(null==t||JSON.stringify(u.getState())!==JSON.stringify(t)&&b(t))}a(u)&&u.dispatch(e)});case"DISPATCH":switch(e.payload.type){case"RESET":if(b(m),void 0===f)return null==h?void 0:h.init(u.getState());return null==h?void 0:h.init(l(v.name));case"COMMIT":if(void 0===f){null==h||h.init(u.getState());break}return null==h?void 0:h.init(l(v.name));case"ROLLBACK":return d(e.state,e=>{if(void 0===f){b(e),null==h||h.init(u.getState());return}b(e[f]),null==h||h.init(l(v.name))});case"JUMP_TO_STATE":case"JUMP_TO_ACTION":return d(e.state,e=>{if(void 0===f)return void b(e);JSON.stringify(u.getState())!==JSON.stringify(e[f])&&b(e[f])});case"IMPORT_STATE":{let{nextLiftedState:n}=e.payload,a=null==(t=n.computedStates.slice(-1)[0])?void 0:t.state;if(!a)return;void 0===f?b(a):b(a[f]),null==h||h.send(null,n);break}case"PAUSE_RECORDING":return g=!g}return}}),m},d=(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)}}}]); |