mirror of
https://github.com/invoke-ai/InvokeAI
synced 2024-08-30 20:32:17 +00:00
* Implements rudimentary api * Fixes blocking in API * Adds UI to monorepo > src/frontend/ * Updates frontend/README * Reverts conda env name to `ldm` * Fixes environment yamls * CORS config for testing * Fixes LogViewer position * API WID * Adds actions to image viewer * Increases vite chunkSizeWarningLimit to 1500 * Implements init image * Implements state persistence in localStorage * Improve progress data handling * Final build * Fixes mimetypes error on windows * Adds error logging * Fixes bugged img2img strength component * Adds sourcemaps to dev build * Fixes missing key * Changes connection status indicator to text * Adds ability to serve other hosts than localhost * Adding Flask API server * Removes source maps from config * Fixes prop transfer * Add missing packages and add CORS support * Adding API doc * Remove defaults from openapi doc * Adds basic error handling for server config query * Mostly working socket.io implementation. * Fixes bug preventing mask upload * Fixes bug with sampler name not written to metadata * UI Overhaul, numerous fixes Co-authored-by: Kyle Schouviller <kyle0654@hotmail.com> Co-authored-by: Lincoln Stein <lincoln.stein@gmail.com>
696 lines
1013 KiB
JavaScript
696 lines
1013 KiB
JavaScript
function VV(e,t){for(var r=0;r<t.length;r++){const i=t[r];if(typeof i!="string"&&!Array.isArray(i)){for(const s in i)if(s!=="default"&&!(s in e)){const c=Object.getOwnPropertyDescriptor(i,s);c&&Object.defineProperty(e,s,c.get?c:{enumerable:!0,get:()=>i[s]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const s of document.querySelectorAll('link[rel="modulepreload"]'))i(s);new MutationObserver(s=>{for(const c of s)if(c.type==="childList")for(const u of c.addedNodes)u.tagName==="LINK"&&u.rel==="modulepreload"&&i(u)}).observe(document,{childList:!0,subtree:!0});function r(s){const c={};return s.integrity&&(c.integrity=s.integrity),s.referrerpolicy&&(c.referrerPolicy=s.referrerpolicy),s.crossorigin==="use-credentials"?c.credentials="include":s.crossorigin==="anonymous"?c.credentials="omit":c.credentials="same-origin",c}function i(s){if(s.ep)return;s.ep=!0;const c=r(s);fetch(s.href,c)}})();var lc=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function HV(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var D={exports:{}},TO={exports:{}};/**
|
|
* @license React
|
|
* react.development.js
|
|
*
|
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
*
|
|
* This source code is licensed under the MIT license found in the
|
|
* LICENSE file in the root directory of this source tree.
|
|
*/(function(e,t){(function(){typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(new Error);var r="18.2.0",i=Symbol.for("react.element"),s=Symbol.for("react.portal"),c=Symbol.for("react.fragment"),u=Symbol.for("react.strict_mode"),h=Symbol.for("react.profiler"),m=Symbol.for("react.provider"),v=Symbol.for("react.context"),b=Symbol.for("react.forward_ref"),x=Symbol.for("react.suspense"),C=Symbol.for("react.suspense_list"),_=Symbol.for("react.memo"),R=Symbol.for("react.lazy"),A=Symbol.for("react.offscreen"),M=Symbol.iterator,j="@@iterator";function I(S){if(S===null||typeof S!="object")return null;var N=M&&S[M]||S[j];return typeof N=="function"?N:null}var z={current:null},B={transition:null},$={current:null,isBatchingLegacy:!1,didScheduleLegacyUpdate:!1},K={current:null},X={},de=null;function ve(S){de=S}X.setExtraStackFrame=function(S){de=S},X.getCurrentStack=null,X.getStackAddendum=function(){var S="";de&&(S+=de);var N=X.getCurrentStack;return N&&(S+=N()||""),S};var se=!1,be=!1,Xe=!1,ie=!1,ce=!1,Re={ReactCurrentDispatcher:z,ReactCurrentBatchConfig:B,ReactCurrentOwner:K};Re.ReactDebugCurrentFrame=X,Re.ReactCurrentActQueue=$;function Ce(S){{for(var N=arguments.length,V=new Array(N>1?N-1:0),G=1;G<N;G++)V[G-1]=arguments[G];Se("warn",S,V)}}function oe(S){{for(var N=arguments.length,V=new Array(N>1?N-1:0),G=1;G<N;G++)V[G-1]=arguments[G];Se("error",S,V)}}function Se(S,N,V){{var G=Re.ReactDebugCurrentFrame,te=G.getStackAddendum();te!==""&&(N+="%s",V=V.concat([te]));var Fe=V.map(function(xe){return String(xe)});Fe.unshift("Warning: "+N),Function.prototype.apply.call(console[S],console,Fe)}}var Te={};function pe(S,N){{var V=S.constructor,G=V&&(V.displayName||V.name)||"ReactClass",te=G+"."+N;if(Te[te])return;oe("Can't call %s on a component that is not yet mounted. This is a no-op, but it might indicate a bug in your application. Instead, assign to `this.state` directly or define a `state = {};` class property with the desired state in the %s component.",N,G),Te[te]=!0}}var we={isMounted:function(S){return!1},enqueueForceUpdate:function(S,N,V){pe(S,"forceUpdate")},enqueueReplaceState:function(S,N,V,G){pe(S,"replaceState")},enqueueSetState:function(S,N,V,G){pe(S,"setState")}},Ie=Object.assign,Le={};Object.freeze(Le);function Ye(S,N,V){this.props=S,this.context=N,this.refs=Le,this.updater=V||we}Ye.prototype.isReactComponent={},Ye.prototype.setState=function(S,N){if(typeof S!="object"&&typeof S!="function"&&S!=null)throw new Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,S,N,"setState")},Ye.prototype.forceUpdate=function(S){this.updater.enqueueForceUpdate(this,S,"forceUpdate")};{var st={isMounted:["isMounted","Instead, make sure to clean up subscriptions and pending requests in componentWillUnmount to prevent memory leaks."],replaceState:["replaceState","Refactor your code to use setState instead (see https://github.com/facebook/react/issues/3236)."]},mt=function(S,N){Object.defineProperty(Ye.prototype,S,{get:function(){Ce("%s(...) is deprecated in plain JavaScript React classes. %s",N[0],N[1])}})};for(var Gt in st)st.hasOwnProperty(Gt)&&mt(Gt,st[Gt])}function Qe(){}Qe.prototype=Ye.prototype;function vt(S,N,V){this.props=S,this.context=N,this.refs=Le,this.updater=V||we}var Et=vt.prototype=new Qe;Et.constructor=vt,Ie(Et,Ye.prototype),Et.isPureReactComponent=!0;function zt(){var S={current:null};return Object.seal(S),S}var We=Array.isArray;function Yt(S){return We(S)}function ye(S){{var N=typeof Symbol=="function"&&Symbol.toStringTag,V=N&&S[Symbol.toStringTag]||S.constructor.name||"Object";return V}}function Mt(S){try{return Kt(S),!1}catch{return!0}}function Kt(S){return""+S}function St(S){if(Mt(S))return oe("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",ye(S)),Kt(S)}function ar(S,N,V){var G=S.displayName;if(G)return G;var te=N.displayName||N.name||"";return te!==""?V+"("+te+")":V}function ir(S){return S.displayName||"Context"}function Bt(S){if(S==null)return null;if(typeof S.tag=="number"&&oe("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),typeof S=="function")return S.displayName||S.name||null;if(typeof S=="string")return S;switch(S){case c:return"Fragment";case s:return"Portal";case h:return"Profiler";case u:return"StrictMode";case x:return"Suspense";case C:return"SuspenseList"}if(typeof S=="object")switch(S.$$typeof){case v:var N=S;return ir(N)+".Consumer";case m:var V=S;return ir(V._context)+".Provider";case b:return ar(S,S.render,"ForwardRef");case _:var G=S.displayName||null;return G!==null?G:Bt(S.type)||"Memo";case R:{var te=S,Fe=te._payload,xe=te._init;try{return Bt(xe(Fe))}catch{return null}}}return null}var fn=Object.prototype.hasOwnProperty,An={key:!0,ref:!0,__self:!0,__source:!0},hn,Ve,Ze;Ze={};function Jt(S){if(fn.call(S,"ref")){var N=Object.getOwnPropertyDescriptor(S,"ref").get;if(N&&N.isReactWarning)return!1}return S.ref!==void 0}function Tt(S){if(fn.call(S,"key")){var N=Object.getOwnPropertyDescriptor(S,"key").get;if(N&&N.isReactWarning)return!1}return S.key!==void 0}function ke(S,N){var V=function(){hn||(hn=!0,oe("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",N))};V.isReactWarning=!0,Object.defineProperty(S,"key",{get:V,configurable:!0})}function jt(S,N){var V=function(){Ve||(Ve=!0,oe("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",N))};V.isReactWarning=!0,Object.defineProperty(S,"ref",{get:V,configurable:!0})}function xn(S){if(typeof S.ref=="string"&&K.current&&S.__self&&K.current.stateNode!==S.__self){var N=Bt(K.current.type);Ze[N]||(oe('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref',N,S.ref),Ze[N]=!0)}}var je=function(S,N,V,G,te,Fe,xe){var $e={$$typeof:i,type:S,key:N,ref:V,props:xe,_owner:Fe};return $e._store={},Object.defineProperty($e._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty($e,"_self",{configurable:!1,enumerable:!1,writable:!1,value:G}),Object.defineProperty($e,"_source",{configurable:!1,enumerable:!1,writable:!1,value:te}),Object.freeze&&(Object.freeze($e.props),Object.freeze($e)),$e};function rt(S,N,V){var G,te={},Fe=null,xe=null,$e=null,it=null;if(N!=null){Jt(N)&&(xe=N.ref,xn(N)),Tt(N)&&(St(N.key),Fe=""+N.key),$e=N.__self===void 0?null:N.__self,it=N.__source===void 0?null:N.__source;for(G in N)fn.call(N,G)&&!An.hasOwnProperty(G)&&(te[G]=N[G])}var gt=arguments.length-2;if(gt===1)te.children=V;else if(gt>1){for(var Nt=Array(gt),pt=0;pt<gt;pt++)Nt[pt]=arguments[pt+2];Object.freeze&&Object.freeze(Nt),te.children=Nt}if(S&&S.defaultProps){var Lt=S.defaultProps;for(G in Lt)te[G]===void 0&&(te[G]=Lt[G])}if(Fe||xe){var wt=typeof S=="function"?S.displayName||S.name||"Unknown":S;Fe&&ke(te,wt),xe&&jt(te,wt)}return je(S,Fe,xe,$e,it,K.current,te)}function xt(S,N){var V=je(S.type,N,S.ref,S._self,S._source,S._owner,S.props);return V}function dn(S,N,V){if(S==null)throw new Error("React.cloneElement(...): The argument must be a React element, but you passed "+S+".");var G,te=Ie({},S.props),Fe=S.key,xe=S.ref,$e=S._self,it=S._source,gt=S._owner;if(N!=null){Jt(N)&&(xe=N.ref,gt=K.current),Tt(N)&&(St(N.key),Fe=""+N.key);var Nt;S.type&&S.type.defaultProps&&(Nt=S.type.defaultProps);for(G in N)fn.call(N,G)&&!An.hasOwnProperty(G)&&(N[G]===void 0&&Nt!==void 0?te[G]=Nt[G]:te[G]=N[G])}var pt=arguments.length-2;if(pt===1)te.children=V;else if(pt>1){for(var Lt=Array(pt),wt=0;wt<pt;wt++)Lt[wt]=arguments[wt+2];te.children=Lt}return je(S.type,Fe,xe,$e,it,gt,te)}function Xt(S){return typeof S=="object"&&S!==null&&S.$$typeof===i}var wn=".",kn=":";function Nr(S){var N=/[=:]/g,V={"=":"=0",":":"=2"},G=S.replace(N,function(te){return V[te]});return"$"+G}var Tn=!1,ca=/\/+/g;function Fn(S){return S.replace(ca,"$&/")}function Cn(S,N){return typeof S=="object"&&S!==null&&S.key!=null?(St(S.key),Nr(""+S.key)):N.toString(36)}function fa(S,N,V,G,te){var Fe=typeof S;(Fe==="undefined"||Fe==="boolean")&&(S=null);var xe=!1;if(S===null)xe=!0;else switch(Fe){case"string":case"number":xe=!0;break;case"object":switch(S.$$typeof){case i:case s:xe=!0}}if(xe){var $e=S,it=te($e),gt=G===""?wn+Cn($e,0):G;if(Yt(it)){var Nt="";gt!=null&&(Nt=Fn(gt)+"/"),fa(it,N,Nt,"",function(Yf){return Yf})}else it!=null&&(Xt(it)&&(it.key&&(!$e||$e.key!==it.key)&&St(it.key),it=xt(it,V+(it.key&&(!$e||$e.key!==it.key)?Fn(""+it.key)+"/":"")+gt)),N.push(it));return 1}var pt,Lt,wt=0,Dt=G===""?wn:G+kn;if(Yt(S))for(var vi=0;vi<S.length;vi++)pt=S[vi],Lt=Dt+Cn(pt,vi),wt+=fa(pt,N,V,Lt,te);else{var va=I(S);if(typeof va=="function"){var Mo=S;va===Mo.entries&&(Tn||Ce("Using Maps as children is not supported. Use an array of keyed ReactElements instead."),Tn=!0);for(var xu=va.call(Mo),Nn,gi=0;!(Nn=xu.next()).done;)pt=Nn.value,Lt=Dt+Cn(pt,gi++),wt+=fa(pt,N,V,Lt,te)}else if(Fe==="object"){var ls=String(S);throw new Error("Objects are not valid as a React child (found: "+(ls==="[object Object]"?"object with keys {"+Object.keys(S).join(", ")+"}":ls)+"). If you meant to render a collection of children, use an array instead.")}}return wt}function vr(S,N,V){if(S==null)return S;var G=[],te=0;return fa(S,G,"","",function(Fe){return N.call(V,Fe,te++)}),G}function wo(S){var N=0;return vr(S,function(){N++}),N}function es(S,N,V){vr(S,function(){N.apply(this,arguments)},V)}function ts(S){return vr(S,function(N){return N})||[]}function Co(S){if(!Xt(S))throw new Error("React.Children.only expected to receive a single React element child.");return S}function _o(S){var N={$$typeof:v,_currentValue:S,_currentValue2:S,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null};N.Provider={$$typeof:m,_context:N};var V=!1,G=!1,te=!1;{var Fe={$$typeof:v,_context:N};Object.defineProperties(Fe,{Provider:{get:function(){return G||(G=!0,oe("Rendering <Context.Consumer.Provider> is not supported and will be removed in a future major release. Did you mean to render <Context.Provider> instead?")),N.Provider},set:function(xe){N.Provider=xe}},_currentValue:{get:function(){return N._currentValue},set:function(xe){N._currentValue=xe}},_currentValue2:{get:function(){return N._currentValue2},set:function(xe){N._currentValue2=xe}},_threadCount:{get:function(){return N._threadCount},set:function(xe){N._threadCount=xe}},Consumer:{get:function(){return V||(V=!0,oe("Rendering <Context.Consumer.Consumer> is not supported and will be removed in a future major release. Did you mean to render <Context.Consumer> instead?")),N.Consumer}},displayName:{get:function(){return N.displayName},set:function(xe){te||(Ce("Setting `displayName` on Context.Consumer has no effect. You should set it directly on the context with Context.displayName = '%s'.",xe),te=!0)}}}),N.Consumer=Fe}return N._currentRenderer=null,N._currentRenderer2=null,N}var cr=-1,Aa=0,Di=1,ka=2;function q(S){if(S._status===cr){var N=S._result,V=N();if(V.then(function(Fe){if(S._status===Aa||S._status===cr){var xe=S;xe._status=Di,xe._result=Fe}},function(Fe){if(S._status===Aa||S._status===cr){var xe=S;xe._status=ka,xe._result=Fe}}),S._status===cr){var G=S;G._status=Aa,G._result=V}}if(S._status===Di){var te=S._result;return te===void 0&&oe(`lazy: Expected the result of a dynamic import() call. Instead received: %s
|
|
|
|
Your code should look like:
|
|
const MyComponent = lazy(() => import('./MyComponent'))
|
|
|
|
Did you accidentally put curly braces around the import?`,te),"default"in te||oe(`lazy: Expected the result of a dynamic import() call. Instead received: %s
|
|
|
|
Your code should look like:
|
|
const MyComponent = lazy(() => import('./MyComponent'))`,te),te.default}else throw S._result}function Be(S){var N={_status:cr,_result:S},V={$$typeof:R,_payload:N,_init:q};{var G,te;Object.defineProperties(V,{defaultProps:{configurable:!0,get:function(){return G},set:function(Fe){oe("React.lazy(...): It is not supported to assign `defaultProps` to a lazy component import. Either specify them where the component is defined, or create a wrapping component around it."),G=Fe,Object.defineProperty(V,"defaultProps",{enumerable:!0})}},propTypes:{configurable:!0,get:function(){return te},set:function(Fe){oe("React.lazy(...): It is not supported to assign `propTypes` to a lazy component import. Either specify them where the component is defined, or create a wrapping component around it."),te=Fe,Object.defineProperty(V,"propTypes",{enumerable:!0})}}})}return V}function qe(S){S!=null&&S.$$typeof===_?oe("forwardRef requires a render function but received a `memo` component. Instead of forwardRef(memo(...)), use memo(forwardRef(...))."):typeof S!="function"?oe("forwardRef requires a render function but was given %s.",S===null?"null":typeof S):S.length!==0&&S.length!==2&&oe("forwardRef render functions accept exactly two parameters: props and ref. %s",S.length===1?"Did you forget to use the ref parameter?":"Any additional parameter will be undefined."),S!=null&&(S.defaultProps!=null||S.propTypes!=null)&&oe("forwardRef render functions do not support propTypes or defaultProps. Did you accidentally pass a React component?");var N={$$typeof:b,render:S};{var V;Object.defineProperty(N,"displayName",{enumerable:!1,configurable:!0,get:function(){return V},set:function(G){V=G,!S.name&&!S.displayName&&(S.displayName=G)}})}return N}var bt;bt=Symbol.for("react.module.reference");function nn(S){return!!(typeof S=="string"||typeof S=="function"||S===c||S===h||ce||S===u||S===x||S===C||ie||S===A||se||be||Xe||typeof S=="object"&&S!==null&&(S.$$typeof===R||S.$$typeof===_||S.$$typeof===m||S.$$typeof===v||S.$$typeof===b||S.$$typeof===bt||S.getModuleId!==void 0))}function gn(S,N){nn(S)||oe("memo: The first argument must be a component. Instead received: %s",S===null?"null":typeof S);var V={$$typeof:_,type:S,compare:N===void 0?null:N};{var G;Object.defineProperty(V,"displayName",{enumerable:!1,configurable:!0,get:function(){return G},set:function(te){G=te,!S.name&&!S.displayName&&(S.displayName=te)}})}return V}function tt(){var S=z.current;return S===null&&oe(`Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:
|
|
1. You might have mismatching versions of React and the renderer (such as React DOM)
|
|
2. You might be breaking the Rules of Hooks
|
|
3. You might have more than one copy of React in the same app
|
|
See https://reactjs.org/link/invalid-hook-call for tips about how to debug and fix this problem.`),S}function $t(S){var N=tt();if(S._context!==void 0){var V=S._context;V.Consumer===S?oe("Calling useContext(Context.Consumer) is not supported, may cause bugs, and will be removed in a future major release. Did you mean to call useContext(Context) instead?"):V.Provider===S&&oe("Calling useContext(Context.Provider) is not supported. Did you mean to call useContext(Context) instead?")}return N.useContext(S)}function zn(S){var N=tt();return N.useState(S)}function Mn(S,N,V){var G=tt();return G.useReducer(S,N,V)}function an(S){var N=tt();return N.useRef(S)}function Lr(S,N){var V=tt();return V.useEffect(S,N)}function ci(S,N){var V=tt();return V.useInsertionEffect(S,N)}function Eo(S,N){var V=tt();return V.useLayoutEffect(S,N)}function da(S,N){var V=tt();return V.useCallback(S,N)}function Ji(S,N){var V=tt();return V.useMemo(S,N)}function bu(S,N,V){var G=tt();return G.useImperativeHandle(S,N,V)}function fi(S,N){{var V=tt();return V.useDebugValue(S,N)}}function Bs(){var S=tt();return S.useTransition()}function Pi(S){var N=tt();return N.useDeferredValue(S)}function Zt(){var S=tt();return S.useId()}function Mi(S,N,V){var G=tt();return G.useSyncExternalStore(S,N,V)}var pa=0,To,ns,No,rs,as,Ro,Oo;function is(){}is.__reactDisabledLog=!0;function Us(){{if(pa===0){To=console.log,ns=console.info,No=console.warn,rs=console.error,as=console.group,Ro=console.groupCollapsed,Oo=console.groupEnd;var S={configurable:!0,enumerable:!0,value:is,writable:!0};Object.defineProperties(console,{info:S,log:S,warn:S,error:S,group:S,groupCollapsed:S,groupEnd:S})}pa++}}function js(){{if(pa--,pa===0){var S={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:Ie({},S,{value:To}),info:Ie({},S,{value:ns}),warn:Ie({},S,{value:No}),error:Ie({},S,{value:rs}),group:Ie({},S,{value:as}),groupCollapsed:Ie({},S,{value:Ro}),groupEnd:Ie({},S,{value:Oo})})}pa<0&&oe("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var di=Re.ReactCurrentDispatcher,kr;function Da(S,N,V){{if(kr===void 0)try{throw Error()}catch(te){var G=te.stack.trim().match(/\n( *(at )?)/);kr=G&&G[1]||""}return`
|
|
`+kr+S}}var ha=!1,Pa;{var os=typeof WeakMap=="function"?WeakMap:Map;Pa=new os}function Ao(S,N){if(!S||ha)return"";{var V=Pa.get(S);if(V!==void 0)return V}var G;ha=!0;var te=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var Fe;Fe=di.current,di.current=null,Us();try{if(N){var xe=function(){throw Error()};if(Object.defineProperty(xe.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(xe,[])}catch(Dt){G=Dt}Reflect.construct(S,[],xe)}else{try{xe.call()}catch(Dt){G=Dt}S.call(xe.prototype)}}else{try{throw Error()}catch(Dt){G=Dt}S()}}catch(Dt){if(Dt&&G&&typeof Dt.stack=="string"){for(var $e=Dt.stack.split(`
|
|
`),it=G.stack.split(`
|
|
`),gt=$e.length-1,Nt=it.length-1;gt>=1&&Nt>=0&&$e[gt]!==it[Nt];)Nt--;for(;gt>=1&&Nt>=0;gt--,Nt--)if($e[gt]!==it[Nt]){if(gt!==1||Nt!==1)do if(gt--,Nt--,Nt<0||$e[gt]!==it[Nt]){var pt=`
|
|
`+$e[gt].replace(" at new "," at ");return S.displayName&&pt.includes("<anonymous>")&&(pt=pt.replace("<anonymous>",S.displayName)),typeof S=="function"&&Pa.set(S,pt),pt}while(gt>=1&&Nt>=0);break}}}finally{ha=!1,di.current=Fe,js(),Error.prepareStackTrace=te}var Lt=S?S.displayName||S.name:"",wt=Lt?Da(Lt):"";return typeof S=="function"&&Pa.set(S,wt),wt}function ss(S,N,V){return Ao(S,!1)}function Al(S){var N=S.prototype;return!!(N&&N.isReactComponent)}function ma(S,N,V){if(S==null)return"";if(typeof S=="function")return Ao(S,Al(S));if(typeof S=="string")return Da(S);switch(S){case x:return Da("Suspense");case C:return Da("SuspenseList")}if(typeof S=="object")switch(S.$$typeof){case b:return ss(S.render);case _:return ma(S.type,N,V);case R:{var G=S,te=G._payload,Fe=G._init;try{return ma(Fe(te),N,V)}catch{}}}return""}var ko={},Ma=Re.ReactDebugCurrentFrame;function pi(S){if(S){var N=S._owner,V=ma(S.type,S._source,N?N.type:null);Ma.setExtraStackFrame(V)}else Ma.setExtraStackFrame(null)}function $s(S,N,V,G,te){{var Fe=Function.call.bind(fn);for(var xe in S)if(Fe(S,xe)){var $e=void 0;try{if(typeof S[xe]!="function"){var it=Error((G||"React class")+": "+V+" type `"+xe+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof S[xe]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw it.name="Invariant Violation",it}$e=S[xe](N,xe,G,V,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(gt){$e=gt}$e&&!($e instanceof Error)&&(pi(te),oe("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).",G||"React class",V,xe,typeof $e),pi(null)),$e instanceof Error&&!($e.message in ko)&&(ko[$e.message]=!0,pi(te),oe("Failed %s type: %s",V,$e.message),pi(null))}}}function on(S){if(S){var N=S._owner,V=ma(S.type,S._source,N?N.type:null);ve(V)}else ve(null)}var hi;hi=!1;function Do(){if(K.current){var S=Bt(K.current.type);if(S)return`
|
|
|
|
Check the render method of \``+S+"`."}return""}function It(S){if(S!==void 0){var N=S.fileName.replace(/^.*[\\\/]/,""),V=S.lineNumber;return`
|
|
|
|
Check your code at `+N+":"+V+"."}return""}function Vs(S){return S!=null?It(S.__source):""}var gr={};function Ii(S){var N=Do();if(!N){var V=typeof S=="string"?S:S.displayName||S.name;V&&(N=`
|
|
|
|
Check the top-level render call using <`+V+">.")}return N}function $a(S,N){if(!(!S._store||S._store.validated||S.key!=null)){S._store.validated=!0;var V=Ii(N);if(!gr[V]){gr[V]=!0;var G="";S&&S._owner&&S._owner!==K.current&&(G=" It was passed a child from "+Bt(S._owner.type)+"."),on(S),oe('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',V,G),on(null)}}}function eo(S,N){if(typeof S=="object"){if(Yt(S))for(var V=0;V<S.length;V++){var G=S[V];Xt(G)&&$a(G,N)}else if(Xt(S))S._store&&(S._store.validated=!0);else if(S){var te=I(S);if(typeof te=="function"&&te!==S.entries)for(var Fe=te.call(S),xe;!(xe=Fe.next()).done;)Xt(xe.value)&&$a(xe.value,N)}}}function wr(S){{var N=S.type;if(N==null||typeof N=="string")return;var V;if(typeof N=="function")V=N.propTypes;else if(typeof N=="object"&&(N.$$typeof===b||N.$$typeof===_))V=N.propTypes;else return;if(V){var G=Bt(N);$s(V,S.props,"prop",G,S)}else if(N.PropTypes!==void 0&&!hi){hi=!0;var te=Bt(N);oe("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",te||"Unknown")}typeof N.getDefaultProps=="function"&&!N.getDefaultProps.isReactClassApproved&&oe("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function er(S){{for(var N=Object.keys(S.props),V=0;V<N.length;V++){var G=N[V];if(G!=="children"&&G!=="key"){on(S),oe("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",G),on(null);break}}S.ref!==null&&(on(S),oe("Invalid attribute `ref` supplied to `React.Fragment`."),on(null))}}function Po(S,N,V){var G=nn(S);if(!G){var te="";(S===void 0||typeof S=="object"&&S!==null&&Object.keys(S).length===0)&&(te+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");var Fe=Vs(N);Fe?te+=Fe:te+=Do();var xe;S===null?xe="null":Yt(S)?xe="array":S!==void 0&&S.$$typeof===i?(xe="<"+(Bt(S.type)||"Unknown")+" />",te=" Did you accidentally export a JSX literal instead of a component?"):xe=typeof S,oe("React.createElement: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",xe,te)}var $e=rt.apply(this,arguments);if($e==null)return $e;if(G)for(var it=2;it<arguments.length;it++)eo(arguments[it],S);return S===c?er($e):wr($e),$e}var $r=!1;function ur(S){var N=Po.bind(null,S);return N.type=S,$r||($r=!0,Ce("React.createFactory() is deprecated and will be removed in a future major release. Consider using JSX or use React.createElement() directly instead.")),Object.defineProperty(N,"type",{enumerable:!1,get:function(){return Ce("Factory.type is deprecated. Access the class directly before passing it to createFactory."),Object.defineProperty(this,"type",{value:S}),S}}),N}function Jr(S,N,V){for(var G=dn.apply(this,arguments),te=2;te<arguments.length;te++)eo(arguments[te],G.type);return wr(G),G}function Su(S,N){var V=B.transition;B.transition={};var G=B.transition;B.transition._updatedFibers=new Set;try{S()}finally{if(B.transition=V,V===null&&G._updatedFibers){var te=G._updatedFibers.size;te>10&&Ce("Detected a large number of updates inside startTransition. If this is due to a subscription please re-write it to use React provided hooks. Otherwise concurrent mode guarantees are off the table."),G._updatedFibers.clear()}}}var to=!1,mi=null;function Hs(S){if(mi===null)try{var N=("require"+Math.random()).slice(0,7),V=e&&e[N];mi=V.call(e,"timers").setImmediate}catch{mi=function(te){to===!1&&(to=!0,typeof MessageChannel>"u"&&oe("This browser does not have a MessageChannel implementation, so enqueuing tasks via await act(async () => ...) will fail. Please file an issue at https://github.com/facebook/react/issues if you encounter this warning."));var Fe=new MessageChannel;Fe.port1.onmessage=te,Fe.port2.postMessage(void 0)}}return mi(S)}var pn=0,Dn=!1;function kl(S){{var N=pn;pn++,$.current===null&&($.current=[]);var V=$.isBatchingLegacy,G;try{if($.isBatchingLegacy=!0,G=S(),!V&&$.didScheduleLegacyUpdate){var te=$.current;te!==null&&($.didScheduleLegacyUpdate=!1,fe(te))}}catch(Lt){throw Ia(N),Lt}finally{$.isBatchingLegacy=V}if(G!==null&&typeof G=="object"&&typeof G.then=="function"){var Fe=G,xe=!1,$e={then:function(Lt,wt){xe=!0,Fe.then(function(Dt){Ia(N),pn===0?W(Dt,Lt,wt):Lt(Dt)},function(Dt){Ia(N),wt(Dt)})}};return!Dn&&typeof Promise<"u"&&Promise.resolve().then(function(){}).then(function(){xe||(Dn=!0,oe("You called act(async () => ...) without await. This could lead to unexpected testing behaviour, interleaving multiple act calls and mixing their scopes. You should - await act(async () => ...);"))}),$e}else{var it=G;if(Ia(N),pn===0){var gt=$.current;gt!==null&&(fe(gt),$.current=null);var Nt={then:function(Lt,wt){$.current===null?($.current=[],W(it,Lt,wt)):Lt(it)}};return Nt}else{var pt={then:function(Lt,wt){Lt(it)}};return pt}}}}function Ia(S){S!==pn-1&&oe("You seem to have overlapping act() calls, this is not supported. Be sure to await previous act() calls before making a new one. "),pn=S}function W(S,N,V){{var G=$.current;if(G!==null)try{fe(G),Hs(function(){G.length===0?($.current=null,N(S)):W(S,N,V)})}catch(te){V(te)}else N(S)}}var Q=!1;function fe(S){if(!Q){Q=!0;var N=0;try{for(;N<S.length;N++){var V=S[N];do V=V(!0);while(V!==null)}S.length=0}catch(G){throw S=S.slice(N+1),G}finally{Q=!1}}}var at=Po,sn=Jr,Pn=ur,Vt={map:vr,forEach:es,count:wo,toArray:ts,only:Co};t.Children=Vt,t.Component=Ye,t.Fragment=c,t.Profiler=h,t.PureComponent=vt,t.StrictMode=u,t.Suspense=x,t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=Re,t.cloneElement=sn,t.createContext=_o,t.createElement=at,t.createFactory=Pn,t.createRef=zt,t.forwardRef=qe,t.isValidElement=Xt,t.lazy=Be,t.memo=gn,t.startTransition=Su,t.unstable_act=kl,t.useCallback=da,t.useContext=$t,t.useDebugValue=fi,t.useDeferredValue=Pi,t.useEffect=Lr,t.useId=Zt,t.useImperativeHandle=bu,t.useInsertionEffect=ci,t.useLayoutEffect=Eo,t.useMemo=Ji,t.useReducer=Mn,t.useRef=an,t.useState=zn,t.useSyncExternalStore=Mi,t.useTransition=Bs,t.version=r,typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(new Error)})()})(TO,TO.exports);(function(e){e.exports=TO.exports})(D);const Ue=HV(D.exports),iI=VV({__proto__:null,default:Ue},[D.exports]);var NO={},Sb={exports:{}},Ho={},hF={exports:{}},mF={};/**
|
|
* @license React
|
|
* scheduler.development.js
|
|
*
|
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
*
|
|
* This source code is licensed under the MIT license found in the
|
|
* LICENSE file in the root directory of this source tree.
|
|
*/(function(e){(function(){typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(new Error);var t=!1,r=!1,i=5;function s(je,rt){var xt=je.length;je.push(rt),h(je,rt,xt)}function c(je){return je.length===0?null:je[0]}function u(je){if(je.length===0)return null;var rt=je[0],xt=je.pop();return xt!==rt&&(je[0]=xt,m(je,xt,0)),rt}function h(je,rt,xt){for(var dn=xt;dn>0;){var Xt=dn-1>>>1,wn=je[Xt];if(v(wn,rt)>0)je[Xt]=rt,je[dn]=wn,dn=Xt;else return}}function m(je,rt,xt){for(var dn=xt,Xt=je.length,wn=Xt>>>1;dn<wn;){var kn=(dn+1)*2-1,Nr=je[kn],Tn=kn+1,ca=je[Tn];if(v(Nr,rt)<0)Tn<Xt&&v(ca,Nr)<0?(je[dn]=ca,je[Tn]=rt,dn=Tn):(je[dn]=Nr,je[kn]=rt,dn=kn);else if(Tn<Xt&&v(ca,rt)<0)je[dn]=ca,je[Tn]=rt,dn=Tn;else return}}function v(je,rt){var xt=je.sortIndex-rt.sortIndex;return xt!==0?xt:je.id-rt.id}var b=1,x=2,C=3,_=4,R=5;function A(je,rt){}var M=typeof performance=="object"&&typeof performance.now=="function";if(M){var j=performance;e.unstable_now=function(){return j.now()}}else{var I=Date,z=I.now();e.unstable_now=function(){return I.now()-z}}var B=1073741823,$=-1,K=250,X=5e3,de=1e4,ve=B,se=[],be=[],Xe=1,ie=null,ce=C,Re=!1,Ce=!1,oe=!1,Se=typeof setTimeout=="function"?setTimeout:null,Te=typeof clearTimeout=="function"?clearTimeout:null,pe=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function we(je){for(var rt=c(be);rt!==null;){if(rt.callback===null)u(be);else if(rt.startTime<=je)u(be),rt.sortIndex=rt.expirationTime,s(se,rt);else return;rt=c(be)}}function Ie(je){if(oe=!1,we(je),!Ce)if(c(se)!==null)Ce=!0,Jt(Le);else{var rt=c(be);rt!==null&&Tt(Ie,rt.startTime-je)}}function Le(je,rt){Ce=!1,oe&&(oe=!1,ke()),Re=!0;var xt=ce;try{var dn;if(!r)return Ye(je,rt)}finally{ie=null,ce=xt,Re=!1}}function Ye(je,rt){var xt=rt;for(we(xt),ie=c(se);ie!==null&&!t&&!(ie.expirationTime>xt&&(!je||ir()));){var dn=ie.callback;if(typeof dn=="function"){ie.callback=null,ce=ie.priorityLevel;var Xt=ie.expirationTime<=xt,wn=dn(Xt);xt=e.unstable_now(),typeof wn=="function"?ie.callback=wn:ie===c(se)&&u(se),we(xt)}else u(se);ie=c(se)}if(ie!==null)return!0;var kn=c(be);return kn!==null&&Tt(Ie,kn.startTime-xt),!1}function st(je,rt){switch(je){case b:case x:case C:case _:case R:break;default:je=C}var xt=ce;ce=je;try{return rt()}finally{ce=xt}}function mt(je){var rt;switch(ce){case b:case x:case C:rt=C;break;default:rt=ce;break}var xt=ce;ce=rt;try{return je()}finally{ce=xt}}function Gt(je){var rt=ce;return function(){var xt=ce;ce=rt;try{return je.apply(this,arguments)}finally{ce=xt}}}function Qe(je,rt,xt){var dn=e.unstable_now(),Xt;if(typeof xt=="object"&&xt!==null){var wn=xt.delay;typeof wn=="number"&&wn>0?Xt=dn+wn:Xt=dn}else Xt=dn;var kn;switch(je){case b:kn=$;break;case x:kn=K;break;case R:kn=ve;break;case _:kn=de;break;case C:default:kn=X;break}var Nr=Xt+kn,Tn={id:Xe++,callback:rt,priorityLevel:je,startTime:Xt,expirationTime:Nr,sortIndex:-1};return Xt>dn?(Tn.sortIndex=Xt,s(be,Tn),c(se)===null&&Tn===c(be)&&(oe?ke():oe=!0,Tt(Ie,Xt-dn))):(Tn.sortIndex=Nr,s(se,Tn),!Ce&&!Re&&(Ce=!0,Jt(Le))),Tn}function vt(){}function Et(){!Ce&&!Re&&(Ce=!0,Jt(Le))}function zt(){return c(se)}function We(je){je.callback=null}function Yt(){return ce}var ye=!1,Mt=null,Kt=-1,St=i,ar=-1;function ir(){var je=e.unstable_now()-ar;return!(je<St)}function Bt(){}function fn(je){if(je<0||je>125){console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported");return}je>0?St=Math.floor(1e3/je):St=i}var An=function(){if(Mt!==null){var je=e.unstable_now();ar=je;var rt=!0,xt=!0;try{xt=Mt(rt,je)}finally{xt?hn():(ye=!1,Mt=null)}}else ye=!1},hn;if(typeof pe=="function")hn=function(){pe(An)};else if(typeof MessageChannel<"u"){var Ve=new MessageChannel,Ze=Ve.port2;Ve.port1.onmessage=An,hn=function(){Ze.postMessage(null)}}else hn=function(){Se(An,0)};function Jt(je){Mt=je,ye||(ye=!0,hn())}function Tt(je,rt){Kt=Se(function(){je(e.unstable_now())},rt)}function ke(){Te(Kt),Kt=-1}var jt=Bt,xn=null;e.unstable_IdlePriority=R,e.unstable_ImmediatePriority=b,e.unstable_LowPriority=_,e.unstable_NormalPriority=C,e.unstable_Profiling=xn,e.unstable_UserBlockingPriority=x,e.unstable_cancelCallback=We,e.unstable_continueExecution=Et,e.unstable_forceFrameRate=fn,e.unstable_getCurrentPriorityLevel=Yt,e.unstable_getFirstCallbackNode=zt,e.unstable_next=mt,e.unstable_pauseExecution=vt,e.unstable_requestPaint=jt,e.unstable_runWithPriority=st,e.unstable_scheduleCallback=Qe,e.unstable_shouldYield=ir,e.unstable_wrapCallback=Gt,typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(new Error)})()})(mF);(function(e){e.exports=mF})(hF);/**
|
|
* @license React
|
|
* react-dom.development.js
|
|
*
|
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
*
|
|
* This source code is licensed under the MIT license found in the
|
|
* LICENSE file in the root directory of this source tree.
|
|
*/(function(){typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(new Error);var e=D.exports,t=hF.exports,r=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,i=!1;function s(n){i=n}function c(n){if(!i){for(var a=arguments.length,o=new Array(a>1?a-1:0),f=1;f<a;f++)o[f-1]=arguments[f];h("warn",n,o)}}function u(n){if(!i){for(var a=arguments.length,o=new Array(a>1?a-1:0),f=1;f<a;f++)o[f-1]=arguments[f];h("error",n,o)}}function h(n,a,o){{var f=r.ReactDebugCurrentFrame,p=f.getStackAddendum();p!==""&&(a+="%s",o=o.concat([p]));var y=o.map(function(w){return String(w)});y.unshift("Warning: "+a),Function.prototype.apply.call(console[n],console,y)}}var m=0,v=1,b=2,x=3,C=4,_=5,R=6,A=7,M=8,j=9,I=10,z=11,B=12,$=13,K=14,X=15,de=16,ve=17,se=18,be=19,Xe=21,ie=22,ce=23,Re=24,Ce=25,oe=!0,Se=!1,Te=!1,pe=!1,we=!1,Ie=!0,Le=!1,Ye=!1,st=!0,mt=!0,Gt=!0,Qe=new Set,vt={},Et={};function zt(n,a){We(n,a),We(n+"Capture",a)}function We(n,a){vt[n]&&u("EventRegistry: More than one plugin attempted to publish the same registration name, `%s`.",n),vt[n]=a;{var o=n.toLowerCase();Et[o]=n,n==="onDoubleClick"&&(Et.ondblclick=n)}for(var f=0;f<a.length;f++)Qe.add(a[f])}var Yt=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",ye=Object.prototype.hasOwnProperty;function Mt(n){{var a=typeof Symbol=="function"&&Symbol.toStringTag,o=a&&n[Symbol.toStringTag]||n.constructor.name||"Object";return o}}function Kt(n){try{return St(n),!1}catch{return!0}}function St(n){return""+n}function ar(n,a){if(Kt(n))return u("The provided `%s` attribute is an unsupported type %s. This value must be coerced to a string before before using it here.",a,Mt(n)),St(n)}function ir(n){if(Kt(n))return u("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",Mt(n)),St(n)}function Bt(n,a){if(Kt(n))return u("The provided `%s` prop is an unsupported type %s. This value must be coerced to a string before before using it here.",a,Mt(n)),St(n)}function fn(n,a){if(Kt(n))return u("The provided `%s` CSS property is an unsupported type %s. This value must be coerced to a string before before using it here.",a,Mt(n)),St(n)}function An(n){if(Kt(n))return u("The provided HTML markup uses a value of unsupported type %s. This value must be coerced to a string before before using it here.",Mt(n)),St(n)}function hn(n){if(Kt(n))return u("Form field values (value, checked, defaultValue, or defaultChecked props) must be strings, not %s. This value must be coerced to a string before before using it here.",Mt(n)),St(n)}var Ve=0,Ze=1,Jt=2,Tt=3,ke=4,jt=5,xn=6,je=":A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD",rt=je+"\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040",xt=new RegExp("^["+je+"]["+rt+"]*$"),dn={},Xt={};function wn(n){return ye.call(Xt,n)?!0:ye.call(dn,n)?!1:xt.test(n)?(Xt[n]=!0,!0):(dn[n]=!0,u("Invalid attribute name: `%s`",n),!1)}function kn(n,a,o){return a!==null?a.type===Ve:o?!1:n.length>2&&(n[0]==="o"||n[0]==="O")&&(n[1]==="n"||n[1]==="N")}function Nr(n,a,o,f){if(o!==null&&o.type===Ve)return!1;switch(typeof a){case"function":case"symbol":return!0;case"boolean":{if(f)return!1;if(o!==null)return!o.acceptsBooleans;var p=n.toLowerCase().slice(0,5);return p!=="data-"&&p!=="aria-"}default:return!1}}function Tn(n,a,o,f){if(a===null||typeof a>"u"||Nr(n,a,o,f))return!0;if(f)return!1;if(o!==null)switch(o.type){case Tt:return!a;case ke:return a===!1;case jt:return isNaN(a);case xn:return isNaN(a)||a<1}return!1}function ca(n){return Cn.hasOwnProperty(n)?Cn[n]:null}function Fn(n,a,o,f,p,y,w){this.acceptsBooleans=a===Jt||a===Tt||a===ke,this.attributeName=f,this.attributeNamespace=p,this.mustUseProperty=o,this.propertyName=n,this.type=a,this.sanitizeURL=y,this.removeEmptyString=w}var Cn={},fa=["children","dangerouslySetInnerHTML","defaultValue","defaultChecked","innerHTML","suppressContentEditableWarning","suppressHydrationWarning","style"];fa.forEach(function(n){Cn[n]=new Fn(n,Ve,!1,n,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(n){var a=n[0],o=n[1];Cn[a]=new Fn(a,Ze,!1,o,null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(n){Cn[n]=new Fn(n,Jt,!1,n.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(n){Cn[n]=new Fn(n,Jt,!1,n,null,!1,!1)}),["allowFullScreen","async","autoFocus","autoPlay","controls","default","defer","disabled","disablePictureInPicture","disableRemotePlayback","formNoValidate","hidden","loop","noModule","noValidate","open","playsInline","readOnly","required","reversed","scoped","seamless","itemScope"].forEach(function(n){Cn[n]=new Fn(n,Tt,!1,n.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(n){Cn[n]=new Fn(n,Tt,!0,n,null,!1,!1)}),["capture","download"].forEach(function(n){Cn[n]=new Fn(n,ke,!1,n,null,!1,!1)}),["cols","rows","size","span"].forEach(function(n){Cn[n]=new Fn(n,xn,!1,n,null,!1,!1)}),["rowSpan","start"].forEach(function(n){Cn[n]=new Fn(n,jt,!1,n.toLowerCase(),null,!1,!1)});var vr=/[\-\:]([a-z])/g,wo=function(n){return n[1].toUpperCase()};["accent-height","alignment-baseline","arabic-form","baseline-shift","cap-height","clip-path","clip-rule","color-interpolation","color-interpolation-filters","color-profile","color-rendering","dominant-baseline","enable-background","fill-opacity","fill-rule","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","glyph-name","glyph-orientation-horizontal","glyph-orientation-vertical","horiz-adv-x","horiz-origin-x","image-rendering","letter-spacing","lighting-color","marker-end","marker-mid","marker-start","overline-position","overline-thickness","paint-order","panose-1","pointer-events","rendering-intent","shape-rendering","stop-color","stop-opacity","strikethrough-position","strikethrough-thickness","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke-width","text-anchor","text-decoration","text-rendering","underline-position","underline-thickness","unicode-bidi","unicode-range","units-per-em","v-alphabetic","v-hanging","v-ideographic","v-mathematical","vector-effect","vert-adv-y","vert-origin-x","vert-origin-y","word-spacing","writing-mode","xmlns:xlink","x-height"].forEach(function(n){var a=n.replace(vr,wo);Cn[a]=new Fn(a,Ze,!1,n,null,!1,!1)}),["xlink:actuate","xlink:arcrole","xlink:role","xlink:show","xlink:title","xlink:type"].forEach(function(n){var a=n.replace(vr,wo);Cn[a]=new Fn(a,Ze,!1,n,"http://www.w3.org/1999/xlink",!1,!1)}),["xml:base","xml:lang","xml:space"].forEach(function(n){var a=n.replace(vr,wo);Cn[a]=new Fn(a,Ze,!1,n,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(n){Cn[n]=new Fn(n,Ze,!1,n.toLowerCase(),null,!1,!1)});var es="xlinkHref";Cn[es]=new Fn("xlinkHref",Ze,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(n){Cn[n]=new Fn(n,Ze,!1,n.toLowerCase(),null,!0,!0)});var ts=/^[\u0000-\u001F ]*j[\r\n\t]*a[\r\n\t]*v[\r\n\t]*a[\r\n\t]*s[\r\n\t]*c[\r\n\t]*r[\r\n\t]*i[\r\n\t]*p[\r\n\t]*t[\r\n\t]*\:/i,Co=!1;function _o(n){!Co&&ts.test(n)&&(Co=!0,u("A future version of React will block javascript: URLs as a security precaution. Use event handlers instead if you can. If you need to generate unsafe HTML try using dangerouslySetInnerHTML instead. React was passed %s.",JSON.stringify(n)))}function cr(n,a,o,f){if(f.mustUseProperty){var p=f.propertyName;return n[p]}else{ar(o,a),f.sanitizeURL&&_o(""+o);var y=f.attributeName,w=null;if(f.type===ke){if(n.hasAttribute(y)){var T=n.getAttribute(y);return T===""?!0:Tn(a,o,f,!1)?T:T===""+o?o:T}}else if(n.hasAttribute(y)){if(Tn(a,o,f,!1))return n.getAttribute(y);if(f.type===Tt)return o;w=n.getAttribute(y)}return Tn(a,o,f,!1)?w===null?o:w:w===""+o?o:w}}function Aa(n,a,o,f){{if(!wn(a))return;if(!n.hasAttribute(a))return o===void 0?void 0:null;var p=n.getAttribute(a);return ar(o,a),p===""+o?o:p}}function Di(n,a,o,f){var p=ca(a);if(!kn(a,p,f)){if(Tn(a,o,p,f)&&(o=null),f||p===null){if(wn(a)){var y=a;o===null?n.removeAttribute(y):(ar(o,a),n.setAttribute(y,""+o))}return}var w=p.mustUseProperty;if(w){var T=p.propertyName;if(o===null){var O=p.type;n[T]=O===Tt?!1:""}else n[T]=o;return}var F=p.attributeName,H=p.attributeNamespace;if(o===null)n.removeAttribute(F);else{var ee=p.type,J;ee===Tt||ee===ke&&o===!0?J="":(ar(o,F),J=""+o,p.sanitizeURL&&_o(J.toString())),H?n.setAttributeNS(H,F,J):n.setAttribute(F,J)}}}var ka=Symbol.for("react.element"),q=Symbol.for("react.portal"),Be=Symbol.for("react.fragment"),qe=Symbol.for("react.strict_mode"),bt=Symbol.for("react.profiler"),nn=Symbol.for("react.provider"),gn=Symbol.for("react.context"),tt=Symbol.for("react.forward_ref"),$t=Symbol.for("react.suspense"),zn=Symbol.for("react.suspense_list"),Mn=Symbol.for("react.memo"),an=Symbol.for("react.lazy"),Lr=Symbol.for("react.scope"),ci=Symbol.for("react.debug_trace_mode"),Eo=Symbol.for("react.offscreen"),da=Symbol.for("react.legacy_hidden"),Ji=Symbol.for("react.cache"),bu=Symbol.for("react.tracing_marker"),fi=Symbol.iterator,Bs="@@iterator";function Pi(n){if(n===null||typeof n!="object")return null;var a=fi&&n[fi]||n[Bs];return typeof a=="function"?a:null}var Zt=Object.assign,Mi=0,pa,To,ns,No,rs,as,Ro;function Oo(){}Oo.__reactDisabledLog=!0;function is(){{if(Mi===0){pa=console.log,To=console.info,ns=console.warn,No=console.error,rs=console.group,as=console.groupCollapsed,Ro=console.groupEnd;var n={configurable:!0,enumerable:!0,value:Oo,writable:!0};Object.defineProperties(console,{info:n,log:n,warn:n,error:n,group:n,groupCollapsed:n,groupEnd:n})}Mi++}}function Us(){{if(Mi--,Mi===0){var n={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:Zt({},n,{value:pa}),info:Zt({},n,{value:To}),warn:Zt({},n,{value:ns}),error:Zt({},n,{value:No}),group:Zt({},n,{value:rs}),groupCollapsed:Zt({},n,{value:as}),groupEnd:Zt({},n,{value:Ro})})}Mi<0&&u("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var js=r.ReactCurrentDispatcher,di;function kr(n,a,o){{if(di===void 0)try{throw Error()}catch(p){var f=p.stack.trim().match(/\n( *(at )?)/);di=f&&f[1]||""}return`
|
|
`+di+n}}var Da=!1,ha;{var Pa=typeof WeakMap=="function"?WeakMap:Map;ha=new Pa}function os(n,a){if(!n||Da)return"";{var o=ha.get(n);if(o!==void 0)return o}var f;Da=!0;var p=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var y;y=js.current,js.current=null,is();try{if(a){var w=function(){throw Error()};if(Object.defineProperty(w.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(w,[])}catch(me){f=me}Reflect.construct(n,[],w)}else{try{w.call()}catch(me){f=me}n.call(w.prototype)}}else{try{throw Error()}catch(me){f=me}n()}}catch(me){if(me&&f&&typeof me.stack=="string"){for(var T=me.stack.split(`
|
|
`),O=f.stack.split(`
|
|
`),F=T.length-1,H=O.length-1;F>=1&&H>=0&&T[F]!==O[H];)H--;for(;F>=1&&H>=0;F--,H--)if(T[F]!==O[H]){if(F!==1||H!==1)do if(F--,H--,H<0||T[F]!==O[H]){var ee=`
|
|
`+T[F].replace(" at new "," at ");return n.displayName&&ee.includes("<anonymous>")&&(ee=ee.replace("<anonymous>",n.displayName)),typeof n=="function"&&ha.set(n,ee),ee}while(F>=1&&H>=0);break}}}finally{Da=!1,js.current=y,Us(),Error.prepareStackTrace=p}var J=n?n.displayName||n.name:"",he=J?kr(J):"";return typeof n=="function"&&ha.set(n,he),he}function Ao(n,a,o){return os(n,!0)}function ss(n,a,o){return os(n,!1)}function Al(n){var a=n.prototype;return!!(a&&a.isReactComponent)}function ma(n,a,o){if(n==null)return"";if(typeof n=="function")return os(n,Al(n));if(typeof n=="string")return kr(n);switch(n){case $t:return kr("Suspense");case zn:return kr("SuspenseList")}if(typeof n=="object")switch(n.$$typeof){case tt:return ss(n.render);case Mn:return ma(n.type,a,o);case an:{var f=n,p=f._payload,y=f._init;try{return ma(y(p),a,o)}catch{}}}return""}function ko(n){switch(n._debugOwner&&n._debugOwner.type,n._debugSource,n.tag){case _:return kr(n.type);case de:return kr("Lazy");case $:return kr("Suspense");case be:return kr("SuspenseList");case m:case b:case X:return ss(n.type);case z:return ss(n.type.render);case v:return Ao(n.type);default:return""}}function Ma(n){try{var a="",o=n;do a+=ko(o),o=o.return;while(o);return a}catch(f){return`
|
|
Error generating stack: `+f.message+`
|
|
`+f.stack}}function pi(n,a,o){var f=n.displayName;if(f)return f;var p=a.displayName||a.name||"";return p!==""?o+"("+p+")":o}function $s(n){return n.displayName||"Context"}function on(n){if(n==null)return null;if(typeof n.tag=="number"&&u("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),typeof n=="function")return n.displayName||n.name||null;if(typeof n=="string")return n;switch(n){case Be:return"Fragment";case q:return"Portal";case bt:return"Profiler";case qe:return"StrictMode";case $t:return"Suspense";case zn:return"SuspenseList"}if(typeof n=="object")switch(n.$$typeof){case gn:var a=n;return $s(a)+".Consumer";case nn:var o=n;return $s(o._context)+".Provider";case tt:return pi(n,n.render,"ForwardRef");case Mn:var f=n.displayName||null;return f!==null?f:on(n.type)||"Memo";case an:{var p=n,y=p._payload,w=p._init;try{return on(w(y))}catch{return null}}}return null}function hi(n,a,o){var f=a.displayName||a.name||"";return n.displayName||(f!==""?o+"("+f+")":o)}function Do(n){return n.displayName||"Context"}function It(n){var a=n.tag,o=n.type;switch(a){case Re:return"Cache";case j:var f=o;return Do(f)+".Consumer";case I:var p=o;return Do(p._context)+".Provider";case se:return"DehydratedFragment";case z:return hi(o,o.render,"ForwardRef");case A:return"Fragment";case _:return o;case C:return"Portal";case x:return"Root";case R:return"Text";case de:return on(o);case M:return o===qe?"StrictMode":"Mode";case ie:return"Offscreen";case B:return"Profiler";case Xe:return"Scope";case $:return"Suspense";case be:return"SuspenseList";case Ce:return"TracingMarker";case v:case m:case ve:case b:case K:case X:if(typeof o=="function")return o.displayName||o.name||null;if(typeof o=="string")return o;break}return null}var Vs=r.ReactDebugCurrentFrame,gr=null,Ii=!1;function $a(){{if(gr===null)return null;var n=gr._debugOwner;if(n!==null&&typeof n<"u")return It(n)}return null}function eo(){return gr===null?"":Ma(gr)}function wr(){Vs.getCurrentStack=null,gr=null,Ii=!1}function er(n){Vs.getCurrentStack=n===null?null:eo,gr=n,Ii=!1}function Po(){return gr}function $r(n){Ii=n}function ur(n){return""+n}function Jr(n){switch(typeof n){case"boolean":case"number":case"string":case"undefined":return n;case"object":return hn(n),n;default:return""}}var Su={button:!0,checkbox:!0,image:!0,hidden:!0,radio:!0,reset:!0,submit:!0};function to(n,a){Su[a.type]||a.onChange||a.onInput||a.readOnly||a.disabled||a.value==null||u("You provided a `value` prop to a form field without an `onChange` handler. This will render a read-only field. If the field should be mutable use `defaultValue`. Otherwise, set either `onChange` or `readOnly`."),a.onChange||a.readOnly||a.disabled||a.checked==null||u("You provided a `checked` prop to a form field without an `onChange` handler. This will render a read-only field. If the field should be mutable use `defaultChecked`. Otherwise, set either `onChange` or `readOnly`.")}function mi(n){var a=n.type,o=n.nodeName;return o&&o.toLowerCase()==="input"&&(a==="checkbox"||a==="radio")}function Hs(n){return n._valueTracker}function pn(n){n._valueTracker=null}function Dn(n){var a="";return n&&(mi(n)?a=n.checked?"true":"false":a=n.value),a}function kl(n){var a=mi(n)?"checked":"value",o=Object.getOwnPropertyDescriptor(n.constructor.prototype,a);hn(n[a]);var f=""+n[a];if(!(n.hasOwnProperty(a)||typeof o>"u"||typeof o.get!="function"||typeof o.set!="function")){var p=o.get,y=o.set;Object.defineProperty(n,a,{configurable:!0,get:function(){return p.call(this)},set:function(T){hn(T),f=""+T,y.call(this,T)}}),Object.defineProperty(n,a,{enumerable:o.enumerable});var w={getValue:function(){return f},setValue:function(T){hn(T),f=""+T},stopTracking:function(){pn(n),delete n[a]}};return w}}function Ia(n){Hs(n)||(n._valueTracker=kl(n))}function W(n){if(!n)return!1;var a=Hs(n);if(!a)return!0;var o=a.getValue(),f=Dn(n);return f!==o?(a.setValue(f),!0):!1}function Q(n){if(n=n||(typeof document<"u"?document:void 0),typeof n>"u")return null;try{return n.activeElement||n.body}catch{return n.body}}var fe=!1,at=!1,sn=!1,Pn=!1;function Vt(n){var a=n.type==="checkbox"||n.type==="radio";return a?n.checked!=null:n.value!=null}function S(n,a){var o=n,f=a.checked,p=Zt({},a,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:f??o._wrapperState.initialChecked});return p}function N(n,a){to("input",a),a.checked!==void 0&&a.defaultChecked!==void 0&&!at&&(u("%s contains an input of type %s with both checked and defaultChecked props. Input elements must be either controlled or uncontrolled (specify either the checked prop, or the defaultChecked prop, but not both). Decide between using a controlled or uncontrolled input element and remove one of these props. More info: https://reactjs.org/link/controlled-components",$a()||"A component",a.type),at=!0),a.value!==void 0&&a.defaultValue!==void 0&&!fe&&(u("%s contains an input of type %s with both value and defaultValue props. Input elements must be either controlled or uncontrolled (specify either the value prop, or the defaultValue prop, but not both). Decide between using a controlled or uncontrolled input element and remove one of these props. More info: https://reactjs.org/link/controlled-components",$a()||"A component",a.type),fe=!0);var o=n,f=a.defaultValue==null?"":a.defaultValue;o._wrapperState={initialChecked:a.checked!=null?a.checked:a.defaultChecked,initialValue:Jr(a.value!=null?a.value:f),controlled:Vt(a)}}function V(n,a){var o=n,f=a.checked;f!=null&&Di(o,"checked",f,!1)}function G(n,a){var o=n;{var f=Vt(a);!o._wrapperState.controlled&&f&&!Pn&&(u("A component is changing an uncontrolled input to be controlled. This is likely caused by the value changing from undefined to a defined value, which should not happen. Decide between using a controlled or uncontrolled input element for the lifetime of the component. More info: https://reactjs.org/link/controlled-components"),Pn=!0),o._wrapperState.controlled&&!f&&!sn&&(u("A component is changing a controlled input to be uncontrolled. This is likely caused by the value changing from a defined to undefined, which should not happen. Decide between using a controlled or uncontrolled input element for the lifetime of the component. More info: https://reactjs.org/link/controlled-components"),sn=!0)}V(n,a);var p=Jr(a.value),y=a.type;if(p!=null)y==="number"?(p===0&&o.value===""||o.value!=p)&&(o.value=ur(p)):o.value!==ur(p)&&(o.value=ur(p));else if(y==="submit"||y==="reset"){o.removeAttribute("value");return}a.hasOwnProperty("value")?$e(o,a.type,p):a.hasOwnProperty("defaultValue")&&$e(o,a.type,Jr(a.defaultValue)),a.checked==null&&a.defaultChecked!=null&&(o.defaultChecked=!!a.defaultChecked)}function te(n,a,o){var f=n;if(a.hasOwnProperty("value")||a.hasOwnProperty("defaultValue")){var p=a.type,y=p==="submit"||p==="reset";if(y&&(a.value===void 0||a.value===null))return;var w=ur(f._wrapperState.initialValue);o||w!==f.value&&(f.value=w),f.defaultValue=w}var T=f.name;T!==""&&(f.name=""),f.defaultChecked=!f.defaultChecked,f.defaultChecked=!!f._wrapperState.initialChecked,T!==""&&(f.name=T)}function Fe(n,a){var o=n;G(o,a),xe(o,a)}function xe(n,a){var o=a.name;if(a.type==="radio"&&o!=null){for(var f=n;f.parentNode;)f=f.parentNode;ar(o,"name");for(var p=f.querySelectorAll("input[name="+JSON.stringify(""+o)+'][type="radio"]'),y=0;y<p.length;y++){var w=p[y];if(!(w===n||w.form!==n.form)){var T=At(w);if(!T)throw new Error("ReactDOMInput: Mixing React and non-React radio inputs with the same `name` is not supported.");W(w),G(w,T)}}}}function $e(n,a,o){(a!=="number"||Q(n.ownerDocument)!==n)&&(o==null?n.defaultValue=ur(n._wrapperState.initialValue):n.defaultValue!==ur(o)&&(n.defaultValue=ur(o)))}var it=!1,gt=!1,Nt=!1;function pt(n,a){a.value==null&&(typeof a.children=="object"&&a.children!==null?e.Children.forEach(a.children,function(o){o!=null&&(typeof o=="string"||typeof o=="number"||gt||(gt=!0,u("Cannot infer the option value of complex children. Pass a `value` prop or use a plain string as children to <option>.")))}):a.dangerouslySetInnerHTML!=null&&(Nt||(Nt=!0,u("Pass a `value` prop if you set dangerouslyInnerHTML so React knows which value should be selected.")))),a.selected!=null&&!it&&(u("Use the `defaultValue` or `value` props on <select> instead of setting `selected` on <option>."),it=!0)}function Lt(n,a){a.value!=null&&n.setAttribute("value",ur(Jr(a.value)))}var wt=Array.isArray;function Dt(n){return wt(n)}var vi;vi=!1;function va(){var n=$a();return n?`
|
|
|
|
Check the render method of \``+n+"`.":""}var Mo=["value","defaultValue"];function xu(n){{to("select",n);for(var a=0;a<Mo.length;a++){var o=Mo[a];if(n[o]!=null){var f=Dt(n[o]);n.multiple&&!f?u("The `%s` prop supplied to <select> must be an array if `multiple` is true.%s",o,va()):!n.multiple&&f&&u("The `%s` prop supplied to <select> must be a scalar value if `multiple` is false.%s",o,va())}}}}function Nn(n,a,o,f){var p=n.options;if(a){for(var y=o,w={},T=0;T<y.length;T++)w["$"+y[T]]=!0;for(var O=0;O<p.length;O++){var F=w.hasOwnProperty("$"+p[O].value);p[O].selected!==F&&(p[O].selected=F),F&&f&&(p[O].defaultSelected=!0)}}else{for(var H=ur(Jr(o)),ee=null,J=0;J<p.length;J++){if(p[J].value===H){p[J].selected=!0,f&&(p[J].defaultSelected=!0);return}ee===null&&!p[J].disabled&&(ee=p[J])}ee!==null&&(ee.selected=!0)}}function gi(n,a){return Zt({},a,{value:void 0})}function ls(n,a){var o=n;xu(a),o._wrapperState={wasMultiple:!!a.multiple},a.value!==void 0&&a.defaultValue!==void 0&&!vi&&(u("Select elements must be either controlled or uncontrolled (specify either the value prop, or the defaultValue prop, but not both). Decide between using a controlled or uncontrolled select element and remove one of these props. More info: https://reactjs.org/link/controlled-components"),vi=!0)}function Yf(n,a){var o=n;o.multiple=!!a.multiple;var f=a.value;f!=null?Nn(o,!!a.multiple,f,!1):a.defaultValue!=null&&Nn(o,!!a.multiple,a.defaultValue,!0)}function lv(n,a){var o=n,f=o._wrapperState.wasMultiple;o._wrapperState.wasMultiple=!!a.multiple;var p=a.value;p!=null?Nn(o,!!a.multiple,p,!1):f!==!!a.multiple&&(a.defaultValue!=null?Nn(o,!!a.multiple,a.defaultValue,!0):Nn(o,!!a.multiple,a.multiple?[]:"",!1))}function cC(n,a){var o=n,f=a.value;f!=null&&Nn(o,!!a.multiple,f,!1)}var Bb=!1;function uv(n,a){var o=n;if(a.dangerouslySetInnerHTML!=null)throw new Error("`dangerouslySetInnerHTML` does not make sense on <textarea>.");var f=Zt({},a,{value:void 0,defaultValue:void 0,children:ur(o._wrapperState.initialValue)});return f}function cv(n,a){var o=n;to("textarea",a),a.value!==void 0&&a.defaultValue!==void 0&&!Bb&&(u("%s contains a textarea with both value and defaultValue props. Textarea elements must be either controlled or uncontrolled (specify either the value prop, or the defaultValue prop, but not both). Decide between using a controlled or uncontrolled textarea and remove one of these props. More info: https://reactjs.org/link/controlled-components",$a()||"A component"),Bb=!0);var f=a.value;if(f==null){var p=a.children,y=a.defaultValue;if(p!=null){u("Use the `defaultValue` or `value` props instead of setting children on <textarea>.");{if(y!=null)throw new Error("If you supply `defaultValue` on a <textarea>, do not pass children.");if(Dt(p)){if(p.length>1)throw new Error("<textarea> can only have at most one child.");p=p[0]}y=p}}y==null&&(y=""),f=y}o._wrapperState={initialValue:Jr(f)}}function qf(n,a){var o=n,f=Jr(a.value),p=Jr(a.defaultValue);if(f!=null){var y=ur(f);y!==o.value&&(o.value=y),a.defaultValue==null&&o.defaultValue!==y&&(o.defaultValue=y)}p!=null&&(o.defaultValue=ur(p))}function wu(n,a){var o=n,f=o.textContent;f===o._wrapperState.initialValue&&f!==""&&f!==null&&(o.value=f)}function fC(n,a){qf(n,a)}var us="http://www.w3.org/1999/xhtml",Ub="http://www.w3.org/1998/Math/MathML",Kf="http://www.w3.org/2000/svg";function Xf(n){switch(n){case"svg":return Kf;case"math":return Ub;default:return us}}function qp(n,a){return n==null||n===us?Xf(a):n===Kf&&a==="foreignObject"?us:n}var dC=function(n){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(a,o,f,p){MSApp.execUnsafeLocalFunction(function(){return n(a,o,f,p)})}:n},yc,Kp=dC(function(n,a){if(n.namespaceURI===Kf&&!("innerHTML"in n)){yc=yc||document.createElement("div"),yc.innerHTML="<svg>"+a.valueOf().toString()+"</svg>";for(var o=yc.firstChild;n.firstChild;)n.removeChild(n.firstChild);for(;o.firstChild;)n.appendChild(o.firstChild);return}n.innerHTML=a}),yi=1,cs=3,Bn=8,Io=9,Cu=11,Zf=function(n,a){if(a){var o=n.firstChild;if(o&&o===n.lastChild&&o.nodeType===cs){o.nodeValue=a;return}}n.textContent=a},jb={animation:["animationDelay","animationDirection","animationDuration","animationFillMode","animationIterationCount","animationName","animationPlayState","animationTimingFunction"],background:["backgroundAttachment","backgroundClip","backgroundColor","backgroundImage","backgroundOrigin","backgroundPositionX","backgroundPositionY","backgroundRepeat","backgroundSize"],backgroundPosition:["backgroundPositionX","backgroundPositionY"],border:["borderBottomColor","borderBottomStyle","borderBottomWidth","borderImageOutset","borderImageRepeat","borderImageSlice","borderImageSource","borderImageWidth","borderLeftColor","borderLeftStyle","borderLeftWidth","borderRightColor","borderRightStyle","borderRightWidth","borderTopColor","borderTopStyle","borderTopWidth"],borderBlockEnd:["borderBlockEndColor","borderBlockEndStyle","borderBlockEndWidth"],borderBlockStart:["borderBlockStartColor","borderBlockStartStyle","borderBlockStartWidth"],borderBottom:["borderBottomColor","borderBottomStyle","borderBottomWidth"],borderColor:["borderBottomColor","borderLeftColor","borderRightColor","borderTopColor"],borderImage:["borderImageOutset","borderImageRepeat","borderImageSlice","borderImageSource","borderImageWidth"],borderInlineEnd:["borderInlineEndColor","borderInlineEndStyle","borderInlineEndWidth"],borderInlineStart:["borderInlineStartColor","borderInlineStartStyle","borderInlineStartWidth"],borderLeft:["borderLeftColor","borderLeftStyle","borderLeftWidth"],borderRadius:["borderBottomLeftRadius","borderBottomRightRadius","borderTopLeftRadius","borderTopRightRadius"],borderRight:["borderRightColor","borderRightStyle","borderRightWidth"],borderStyle:["borderBottomStyle","borderLeftStyle","borderRightStyle","borderTopStyle"],borderTop:["borderTopColor","borderTopStyle","borderTopWidth"],borderWidth:["borderBottomWidth","borderLeftWidth","borderRightWidth","borderTopWidth"],columnRule:["columnRuleColor","columnRuleStyle","columnRuleWidth"],columns:["columnCount","columnWidth"],flex:["flexBasis","flexGrow","flexShrink"],flexFlow:["flexDirection","flexWrap"],font:["fontFamily","fontFeatureSettings","fontKerning","fontLanguageOverride","fontSize","fontSizeAdjust","fontStretch","fontStyle","fontVariant","fontVariantAlternates","fontVariantCaps","fontVariantEastAsian","fontVariantLigatures","fontVariantNumeric","fontVariantPosition","fontWeight","lineHeight"],fontVariant:["fontVariantAlternates","fontVariantCaps","fontVariantEastAsian","fontVariantLigatures","fontVariantNumeric","fontVariantPosition"],gap:["columnGap","rowGap"],grid:["gridAutoColumns","gridAutoFlow","gridAutoRows","gridTemplateAreas","gridTemplateColumns","gridTemplateRows"],gridArea:["gridColumnEnd","gridColumnStart","gridRowEnd","gridRowStart"],gridColumn:["gridColumnEnd","gridColumnStart"],gridColumnGap:["columnGap"],gridGap:["columnGap","rowGap"],gridRow:["gridRowEnd","gridRowStart"],gridRowGap:["rowGap"],gridTemplate:["gridTemplateAreas","gridTemplateColumns","gridTemplateRows"],listStyle:["listStyleImage","listStylePosition","listStyleType"],margin:["marginBottom","marginLeft","marginRight","marginTop"],marker:["markerEnd","markerMid","markerStart"],mask:["maskClip","maskComposite","maskImage","maskMode","maskOrigin","maskPositionX","maskPositionY","maskRepeat","maskSize"],maskPosition:["maskPositionX","maskPositionY"],outline:["outlineColor","outlineStyle","outlineWidth"],overflow:["overflowX","overflowY"],padding:["paddingBottom","paddingLeft","paddingRight","paddingTop"],placeContent:["alignContent","justifyContent"],placeItems:["alignItems","justifyItems"],placeSelf:["alignSelf","justifySelf"],textDecoration:["textDecorationColor","textDecorationLine","textDecorationStyle"],textEmphasis:["textEmphasisColor","textEmphasisStyle"],transition:["transitionDelay","transitionDuration","transitionProperty","transitionTimingFunction"],wordWrap:["overflowWrap"]},Qf={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0};function pC(n,a){return n+a.charAt(0).toUpperCase()+a.substring(1)}var hC=["Webkit","ms","Moz","O"];Object.keys(Qf).forEach(function(n){hC.forEach(function(a){Qf[pC(a,n)]=Qf[n]})});function fv(n,a,o){var f=a==null||typeof a=="boolean"||a==="";return f?"":!o&&typeof a=="number"&&a!==0&&!(Qf.hasOwnProperty(n)&&Qf[n])?a+"px":(fn(a,n),(""+a).trim())}var mC=/([A-Z])/g,bc=/^ms-/;function vC(n){return n.replace(mC,"-$1").toLowerCase().replace(bc,"-ms-")}var $b=function(){};{var dv=/^(?:webkit|moz|o)[A-Z]/,Vb=/^-ms-/,Dl=/-(.)/g,Jf=/;\s*$/,Sc={},pv={},Hb=!1,_u=!1,Lo=function(n){return n.replace(Dl,function(a,o){return o.toUpperCase()})},Wb=function(n){Sc.hasOwnProperty(n)&&Sc[n]||(Sc[n]=!0,u("Unsupported style property %s. Did you mean %s?",n,Lo(n.replace(Vb,"ms-"))))},gC=function(n){Sc.hasOwnProperty(n)&&Sc[n]||(Sc[n]=!0,u("Unsupported vendor-prefixed style property %s. Did you mean %s?",n,n.charAt(0).toUpperCase()+n.slice(1)))},yC=function(n,a){pv.hasOwnProperty(a)&&pv[a]||(pv[a]=!0,u(`Style property values shouldn't contain a semicolon. Try "%s: %s" instead.`,n,a.replace(Jf,"")))},bC=function(n,a){Hb||(Hb=!0,u("`NaN` is an invalid value for the `%s` css style property.",n))},SC=function(n,a){_u||(_u=!0,u("`Infinity` is an invalid value for the `%s` css style property.",n))};$b=function(n,a){n.indexOf("-")>-1?Wb(n):dv.test(n)?gC(n):Jf.test(a)&&yC(n,a),typeof a=="number"&&(isNaN(a)?bC(n,a):isFinite(a)||SC(n,a))}}var xC=$b;function xc(n){{var a="",o="";for(var f in n)if(!!n.hasOwnProperty(f)){var p=n[f];if(p!=null){var y=f.indexOf("--")===0;a+=o+(y?f:vC(f))+":",a+=fv(f,p,y),o=";"}}return a||null}}function re(n,a){var o=n.style;for(var f in a)if(!!a.hasOwnProperty(f)){var p=f.indexOf("--")===0;p||xC(f,a[f]);var y=fv(f,a[f],p);f==="float"&&(f="cssFloat"),p?o.setProperty(f,y):o[f]=y}}function Ne(n){return n==null||typeof n=="boolean"||n===""}function ge(n){var a={};for(var o in n)for(var f=jb[o]||[o],p=0;p<f.length;p++)a[f[p]]=o;return a}function ft(n,a){{if(!a)return;var o=ge(n),f=ge(a),p={};for(var y in o){var w=o[y],T=f[y];if(T&&w!==T){var O=w+","+T;if(p[O])continue;p[O]=!0,u("%s a style property during rerender (%s) when a conflicting property is set (%s) can lead to styling bugs. To avoid this, don't mix shorthand and non-shorthand properties for the same value; instead, replace the shorthand with separate values.",Ne(n[w])?"Removing":"Updating",w,T)}}}}var en={area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0},Hn=Zt({menuitem:!0},en),Vr="__html";function qn(n,a){if(!!a){if(Hn[n]&&(a.children!=null||a.dangerouslySetInnerHTML!=null))throw new Error(n+" is a void element tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");if(a.dangerouslySetInnerHTML!=null){if(a.children!=null)throw new Error("Can only set one of `children` or `props.dangerouslySetInnerHTML`.");if(typeof a.dangerouslySetInnerHTML!="object"||!(Vr in a.dangerouslySetInnerHTML))throw new Error("`props.dangerouslySetInnerHTML` must be in the form `{__html: ...}`. Please visit https://reactjs.org/link/dangerously-set-inner-html for more information.")}if(!a.suppressContentEditableWarning&&a.contentEditable&&a.children!=null&&u("A component is `contentEditable` and contains `children` managed by React. It is now your responsibility to guarantee that none of those nodes are unexpectedly modified or duplicated. This is probably not intentional."),a.style!=null&&typeof a.style!="object")throw new Error("The `style` prop expects a mapping from style properties to values, not a string. For example, style={{marginRight: spacing + 'em'}} when using JSX.")}}function Ws(n,a){if(n.indexOf("-")===-1)return typeof a.is=="string";switch(n){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var Xp={accept:"accept",acceptcharset:"acceptCharset","accept-charset":"acceptCharset",accesskey:"accessKey",action:"action",allowfullscreen:"allowFullScreen",alt:"alt",as:"as",async:"async",autocapitalize:"autoCapitalize",autocomplete:"autoComplete",autocorrect:"autoCorrect",autofocus:"autoFocus",autoplay:"autoPlay",autosave:"autoSave",capture:"capture",cellpadding:"cellPadding",cellspacing:"cellSpacing",challenge:"challenge",charset:"charSet",checked:"checked",children:"children",cite:"cite",class:"className",classid:"classID",classname:"className",cols:"cols",colspan:"colSpan",content:"content",contenteditable:"contentEditable",contextmenu:"contextMenu",controls:"controls",controlslist:"controlsList",coords:"coords",crossorigin:"crossOrigin",dangerouslysetinnerhtml:"dangerouslySetInnerHTML",data:"data",datetime:"dateTime",default:"default",defaultchecked:"defaultChecked",defaultvalue:"defaultValue",defer:"defer",dir:"dir",disabled:"disabled",disablepictureinpicture:"disablePictureInPicture",disableremoteplayback:"disableRemotePlayback",download:"download",draggable:"draggable",enctype:"encType",enterkeyhint:"enterKeyHint",for:"htmlFor",form:"form",formmethod:"formMethod",formaction:"formAction",formenctype:"formEncType",formnovalidate:"formNoValidate",formtarget:"formTarget",frameborder:"frameBorder",headers:"headers",height:"height",hidden:"hidden",high:"high",href:"href",hreflang:"hrefLang",htmlfor:"htmlFor",httpequiv:"httpEquiv","http-equiv":"httpEquiv",icon:"icon",id:"id",imagesizes:"imageSizes",imagesrcset:"imageSrcSet",innerhtml:"innerHTML",inputmode:"inputMode",integrity:"integrity",is:"is",itemid:"itemID",itemprop:"itemProp",itemref:"itemRef",itemscope:"itemScope",itemtype:"itemType",keyparams:"keyParams",keytype:"keyType",kind:"kind",label:"label",lang:"lang",list:"list",loop:"loop",low:"low",manifest:"manifest",marginwidth:"marginWidth",marginheight:"marginHeight",max:"max",maxlength:"maxLength",media:"media",mediagroup:"mediaGroup",method:"method",min:"min",minlength:"minLength",multiple:"multiple",muted:"muted",name:"name",nomodule:"noModule",nonce:"nonce",novalidate:"noValidate",open:"open",optimum:"optimum",pattern:"pattern",placeholder:"placeholder",playsinline:"playsInline",poster:"poster",preload:"preload",profile:"profile",radiogroup:"radioGroup",readonly:"readOnly",referrerpolicy:"referrerPolicy",rel:"rel",required:"required",reversed:"reversed",role:"role",rows:"rows",rowspan:"rowSpan",sandbox:"sandbox",scope:"scope",scoped:"scoped",scrolling:"scrolling",seamless:"seamless",selected:"selected",shape:"shape",size:"size",sizes:"sizes",span:"span",spellcheck:"spellCheck",src:"src",srcdoc:"srcDoc",srclang:"srcLang",srcset:"srcSet",start:"start",step:"step",style:"style",summary:"summary",tabindex:"tabIndex",target:"target",title:"title",type:"type",usemap:"useMap",value:"value",width:"width",wmode:"wmode",wrap:"wrap",about:"about",accentheight:"accentHeight","accent-height":"accentHeight",accumulate:"accumulate",additive:"additive",alignmentbaseline:"alignmentBaseline","alignment-baseline":"alignmentBaseline",allowreorder:"allowReorder",alphabetic:"alphabetic",amplitude:"amplitude",arabicform:"arabicForm","arabic-form":"arabicForm",ascent:"ascent",attributename:"attributeName",attributetype:"attributeType",autoreverse:"autoReverse",azimuth:"azimuth",basefrequency:"baseFrequency",baselineshift:"baselineShift","baseline-shift":"baselineShift",baseprofile:"baseProfile",bbox:"bbox",begin:"begin",bias:"bias",by:"by",calcmode:"calcMode",capheight:"capHeight","cap-height":"capHeight",clip:"clip",clippath:"clipPath","clip-path":"clipPath",clippathunits:"clipPathUnits",cliprule:"clipRule","clip-rule":"clipRule",color:"color",colorinterpolation:"colorInterpolation","color-interpolation":"colorInterpolation",colorinterpolationfilters:"colorInterpolationFilters","color-interpolation-filters":"colorInterpolationFilters",colorprofile:"colorProfile","color-profile":"colorProfile",colorrendering:"colorRendering","color-rendering":"colorRendering",contentscripttype:"contentScriptType",contentstyletype:"contentStyleType",cursor:"cursor",cx:"cx",cy:"cy",d:"d",datatype:"datatype",decelerate:"decelerate",descent:"descent",diffuseconstant:"diffuseConstant",direction:"direction",display:"display",divisor:"divisor",dominantbaseline:"dominantBaseline","dominant-baseline":"dominantBaseline",dur:"dur",dx:"dx",dy:"dy",edgemode:"edgeMode",elevation:"elevation",enablebackground:"enableBackground","enable-background":"enableBackground",end:"end",exponent:"exponent",externalresourcesrequired:"externalResourcesRequired",fill:"fill",fillopacity:"fillOpacity","fill-opacity":"fillOpacity",fillrule:"fillRule","fill-rule":"fillRule",filter:"filter",filterres:"filterRes",filterunits:"filterUnits",floodopacity:"floodOpacity","flood-opacity":"floodOpacity",floodcolor:"floodColor","flood-color":"floodColor",focusable:"focusable",fontfamily:"fontFamily","font-family":"fontFamily",fontsize:"fontSize","font-size":"fontSize",fontsizeadjust:"fontSizeAdjust","font-size-adjust":"fontSizeAdjust",fontstretch:"fontStretch","font-stretch":"fontStretch",fontstyle:"fontStyle","font-style":"fontStyle",fontvariant:"fontVariant","font-variant":"fontVariant",fontweight:"fontWeight","font-weight":"fontWeight",format:"format",from:"from",fx:"fx",fy:"fy",g1:"g1",g2:"g2",glyphname:"glyphName","glyph-name":"glyphName",glyphorientationhorizontal:"glyphOrientationHorizontal","glyph-orientation-horizontal":"glyphOrientationHorizontal",glyphorientationvertical:"glyphOrientationVertical","glyph-orientation-vertical":"glyphOrientationVertical",glyphref:"glyphRef",gradienttransform:"gradientTransform",gradientunits:"gradientUnits",hanging:"hanging",horizadvx:"horizAdvX","horiz-adv-x":"horizAdvX",horizoriginx:"horizOriginX","horiz-origin-x":"horizOriginX",ideographic:"ideographic",imagerendering:"imageRendering","image-rendering":"imageRendering",in2:"in2",in:"in",inlist:"inlist",intercept:"intercept",k1:"k1",k2:"k2",k3:"k3",k4:"k4",k:"k",kernelmatrix:"kernelMatrix",kernelunitlength:"kernelUnitLength",kerning:"kerning",keypoints:"keyPoints",keysplines:"keySplines",keytimes:"keyTimes",lengthadjust:"lengthAdjust",letterspacing:"letterSpacing","letter-spacing":"letterSpacing",lightingcolor:"lightingColor","lighting-color":"lightingColor",limitingconeangle:"limitingConeAngle",local:"local",markerend:"markerEnd","marker-end":"markerEnd",markerheight:"markerHeight",markermid:"markerMid","marker-mid":"markerMid",markerstart:"markerStart","marker-start":"markerStart",markerunits:"markerUnits",markerwidth:"markerWidth",mask:"mask",maskcontentunits:"maskContentUnits",maskunits:"maskUnits",mathematical:"mathematical",mode:"mode",numoctaves:"numOctaves",offset:"offset",opacity:"opacity",operator:"operator",order:"order",orient:"orient",orientation:"orientation",origin:"origin",overflow:"overflow",overlineposition:"overlinePosition","overline-position":"overlinePosition",overlinethickness:"overlineThickness","overline-thickness":"overlineThickness",paintorder:"paintOrder","paint-order":"paintOrder",panose1:"panose1","panose-1":"panose1",pathlength:"pathLength",patterncontentunits:"patternContentUnits",patterntransform:"patternTransform",patternunits:"patternUnits",pointerevents:"pointerEvents","pointer-events":"pointerEvents",points:"points",pointsatx:"pointsAtX",pointsaty:"pointsAtY",pointsatz:"pointsAtZ",prefix:"prefix",preservealpha:"preserveAlpha",preserveaspectratio:"preserveAspectRatio",primitiveunits:"primitiveUnits",property:"property",r:"r",radius:"radius",refx:"refX",refy:"refY",renderingintent:"renderingIntent","rendering-intent":"renderingIntent",repeatcount:"repeatCount",repeatdur:"repeatDur",requiredextensions:"requiredExtensions",requiredfeatures:"requiredFeatures",resource:"resource",restart:"restart",result:"result",results:"results",rotate:"rotate",rx:"rx",ry:"ry",scale:"scale",security:"security",seed:"seed",shaperendering:"shapeRendering","shape-rendering":"shapeRendering",slope:"slope",spacing:"spacing",specularconstant:"specularConstant",specularexponent:"specularExponent",speed:"speed",spreadmethod:"spreadMethod",startoffset:"startOffset",stddeviation:"stdDeviation",stemh:"stemh",stemv:"stemv",stitchtiles:"stitchTiles",stopcolor:"stopColor","stop-color":"stopColor",stopopacity:"stopOpacity","stop-opacity":"stopOpacity",strikethroughposition:"strikethroughPosition","strikethrough-position":"strikethroughPosition",strikethroughthickness:"strikethroughThickness","strikethrough-thickness":"strikethroughThickness",string:"string",stroke:"stroke",strokedasharray:"strokeDasharray","stroke-dasharray":"strokeDasharray",strokedashoffset:"strokeDashoffset","stroke-dashoffset":"strokeDashoffset",strokelinecap:"strokeLinecap","stroke-linecap":"strokeLinecap",strokelinejoin:"strokeLinejoin","stroke-linejoin":"strokeLinejoin",strokemiterlimit:"strokeMiterlimit","stroke-miterlimit":"strokeMiterlimit",strokewidth:"strokeWidth","stroke-width":"strokeWidth",strokeopacity:"strokeOpacity","stroke-opacity":"strokeOpacity",suppresscontenteditablewarning:"suppressContentEditableWarning",suppresshydrationwarning:"suppressHydrationWarning",surfacescale:"surfaceScale",systemlanguage:"systemLanguage",tablevalues:"tableValues",targetx:"targetX",targety:"targetY",textanchor:"textAnchor","text-anchor":"textAnchor",textdecoration:"textDecoration","text-decoration":"textDecoration",textlength:"textLength",textrendering:"textRendering","text-rendering":"textRendering",to:"to",transform:"transform",typeof:"typeof",u1:"u1",u2:"u2",underlineposition:"underlinePosition","underline-position":"underlinePosition",underlinethickness:"underlineThickness","underline-thickness":"underlineThickness",unicode:"unicode",unicodebidi:"unicodeBidi","unicode-bidi":"unicodeBidi",unicoderange:"unicodeRange","unicode-range":"unicodeRange",unitsperem:"unitsPerEm","units-per-em":"unitsPerEm",unselectable:"unselectable",valphabetic:"vAlphabetic","v-alphabetic":"vAlphabetic",values:"values",vectoreffect:"vectorEffect","vector-effect":"vectorEffect",version:"version",vertadvy:"vertAdvY","vert-adv-y":"vertAdvY",vertoriginx:"vertOriginX","vert-origin-x":"vertOriginX",vertoriginy:"vertOriginY","vert-origin-y":"vertOriginY",vhanging:"vHanging","v-hanging":"vHanging",videographic:"vIdeographic","v-ideographic":"vIdeographic",viewbox:"viewBox",viewtarget:"viewTarget",visibility:"visibility",vmathematical:"vMathematical","v-mathematical":"vMathematical",vocab:"vocab",widths:"widths",wordspacing:"wordSpacing","word-spacing":"wordSpacing",writingmode:"writingMode","writing-mode":"writingMode",x1:"x1",x2:"x2",x:"x",xchannelselector:"xChannelSelector",xheight:"xHeight","x-height":"xHeight",xlinkactuate:"xlinkActuate","xlink:actuate":"xlinkActuate",xlinkarcrole:"xlinkArcrole","xlink:arcrole":"xlinkArcrole",xlinkhref:"xlinkHref","xlink:href":"xlinkHref",xlinkrole:"xlinkRole","xlink:role":"xlinkRole",xlinkshow:"xlinkShow","xlink:show":"xlinkShow",xlinktitle:"xlinkTitle","xlink:title":"xlinkTitle",xlinktype:"xlinkType","xlink:type":"xlinkType",xmlbase:"xmlBase","xml:base":"xmlBase",xmllang:"xmlLang","xml:lang":"xmlLang",xmlns:"xmlns","xml:space":"xmlSpace",xmlnsxlink:"xmlnsXlink","xmlns:xlink":"xmlnsXlink",xmlspace:"xmlSpace",y1:"y1",y2:"y2",y:"y",ychannelselector:"yChannelSelector",z:"z",zoomandpan:"zoomAndPan"},Li={"aria-current":0,"aria-description":0,"aria-details":0,"aria-disabled":0,"aria-hidden":0,"aria-invalid":0,"aria-keyshortcuts":0,"aria-label":0,"aria-roledescription":0,"aria-autocomplete":0,"aria-checked":0,"aria-expanded":0,"aria-haspopup":0,"aria-level":0,"aria-modal":0,"aria-multiline":0,"aria-multiselectable":0,"aria-orientation":0,"aria-placeholder":0,"aria-pressed":0,"aria-readonly":0,"aria-required":0,"aria-selected":0,"aria-sort":0,"aria-valuemax":0,"aria-valuemin":0,"aria-valuenow":0,"aria-valuetext":0,"aria-atomic":0,"aria-busy":0,"aria-live":0,"aria-relevant":0,"aria-dropeffect":0,"aria-grabbed":0,"aria-activedescendant":0,"aria-colcount":0,"aria-colindex":0,"aria-colspan":0,"aria-controls":0,"aria-describedby":0,"aria-errormessage":0,"aria-flowto":0,"aria-labelledby":0,"aria-owns":0,"aria-posinset":0,"aria-rowcount":0,"aria-rowindex":0,"aria-rowspan":0,"aria-setsize":0},Gs={},wC=new RegExp("^(aria)-["+rt+"]*$"),wc=new RegExp("^(aria)[A-Z]["+rt+"]*$");function Zp(n,a){{if(ye.call(Gs,a)&&Gs[a])return!0;if(wc.test(a)){var o="aria-"+a.slice(4).toLowerCase(),f=Li.hasOwnProperty(o)?o:null;if(f==null)return u("Invalid ARIA attribute `%s`. ARIA attributes follow the pattern aria-* and must be lowercase.",a),Gs[a]=!0,!0;if(a!==f)return u("Invalid ARIA attribute `%s`. Did you mean `%s`?",a,f),Gs[a]=!0,!0}if(wC.test(a)){var p=a.toLowerCase(),y=Li.hasOwnProperty(p)?p:null;if(y==null)return Gs[a]=!0,!1;if(a!==y)return u("Unknown ARIA attribute `%s`. Did you mean `%s`?",a,y),Gs[a]=!0,!0}}return!0}function Qp(n,a){{var o=[];for(var f in a){var p=Zp(n,f);p||o.push(f)}var y=o.map(function(w){return"`"+w+"`"}).join(", ");o.length===1?u("Invalid aria prop %s on <%s> tag. For details, see https://reactjs.org/link/invalid-aria-props",y,n):o.length>1&&u("Invalid aria props %s on <%s> tag. For details, see https://reactjs.org/link/invalid-aria-props",y,n)}}function Kn(n,a){Ws(n,a)||Qp(n,a)}var Gb=!1;function Yb(n,a){{if(n!=="input"&&n!=="textarea"&&n!=="select")return;a!=null&&a.value===null&&!Gb&&(Gb=!0,n==="select"&&a.multiple?u("`value` prop on `%s` should not be null. Consider using an empty array when `multiple` is set to `true` to clear the component or `undefined` for uncontrolled components.",n):u("`value` prop on `%s` should not be null. Consider using an empty string to clear the component or `undefined` for uncontrolled components.",n))}}var ed=function(){};{var Va={},qb=/^on./,CC=/^on[^A-Z]/,Jp=new RegExp("^(aria)-["+rt+"]*$"),Pl=new RegExp("^(aria)[A-Z]["+rt+"]*$");ed=function(n,a,o,f){if(ye.call(Va,a)&&Va[a])return!0;var p=a.toLowerCase();if(p==="onfocusin"||p==="onfocusout")return u("React uses onFocus and onBlur instead of onFocusIn and onFocusOut. All React events are normalized to bubble, so onFocusIn and onFocusOut are not needed/supported by React."),Va[a]=!0,!0;if(f!=null){var y=f.registrationNameDependencies,w=f.possibleRegistrationNames;if(y.hasOwnProperty(a))return!0;var T=w.hasOwnProperty(p)?w[p]:null;if(T!=null)return u("Invalid event handler property `%s`. Did you mean `%s`?",a,T),Va[a]=!0,!0;if(qb.test(a))return u("Unknown event handler property `%s`. It will be ignored.",a),Va[a]=!0,!0}else if(qb.test(a))return CC.test(a)&&u("Invalid event handler property `%s`. React events use the camelCase naming convention, for example `onClick`.",a),Va[a]=!0,!0;if(Jp.test(a)||Pl.test(a))return!0;if(p==="innerhtml")return u("Directly setting property `innerHTML` is not permitted. For more information, lookup documentation on `dangerouslySetInnerHTML`."),Va[a]=!0,!0;if(p==="aria")return u("The `aria` attribute is reserved for future use in React. Pass individual `aria-` attributes instead."),Va[a]=!0,!0;if(p==="is"&&o!==null&&o!==void 0&&typeof o!="string")return u("Received a `%s` for a string attribute `is`. If this is expected, cast the value to a string.",typeof o),Va[a]=!0,!0;if(typeof o=="number"&&isNaN(o))return u("Received NaN for the `%s` attribute. If this is expected, cast the value to a string.",a),Va[a]=!0,!0;var O=ca(a),F=O!==null&&O.type===Ve;if(Xp.hasOwnProperty(p)){var H=Xp[p];if(H!==a)return u("Invalid DOM property `%s`. Did you mean `%s`?",a,H),Va[a]=!0,!0}else if(!F&&a!==p)return u("React does not recognize the `%s` prop on a DOM element. If you intentionally want it to appear in the DOM as a custom attribute, spell it as lowercase `%s` instead. If you accidentally passed it from a parent component, remove it from the DOM element.",a,p),Va[a]=!0,!0;return typeof o=="boolean"&&Nr(a,o,O,!1)?(o?u('Received `%s` for a non-boolean attribute `%s`.\n\nIf you want to write it to the DOM, pass a string instead: %s="%s" or %s={value.toString()}.',o,a,a,o,a):u('Received `%s` for a non-boolean attribute `%s`.\n\nIf you want to write it to the DOM, pass a string instead: %s="%s" or %s={value.toString()}.\n\nIf you used to conditionally omit it with %s={condition && value}, pass %s={condition ? value : undefined} instead.',o,a,a,o,a,a,a),Va[a]=!0,!0):F?!0:Nr(a,o,O,!1)?(Va[a]=!0,!1):((o==="false"||o==="true")&&O!==null&&O.type===Tt&&(u("Received the string `%s` for the boolean attribute `%s`. %s Did you mean %s={%s}?",o,a,o==="false"?"The browser will interpret it as a truthy value.":'Although this works, it will not work as expected if you pass the string "false".',a,o),Va[a]=!0),!0)}}var eh=function(n,a,o){{var f=[];for(var p in a){var y=ed(n,p,a[p],o);y||f.push(p)}var w=f.map(function(T){return"`"+T+"`"}).join(", ");f.length===1?u("Invalid value for prop %s on <%s> tag. Either remove it from the element, or pass a string or number value to keep it in the DOM. For details, see https://reactjs.org/link/attribute-behavior ",w,n):f.length>1&&u("Invalid values for props %s on <%s> tag. Either remove them from the element, or pass a string or number value to keep them in the DOM. For details, see https://reactjs.org/link/attribute-behavior ",w,n)}};function Kb(n,a,o){Ws(n,a)||eh(n,a,o)}var td=1,th=1<<1,Cc=1<<2,nh=td|th|Cc,_c=null;function nd(n){_c!==null&&u("Expected currently replaying event to be null. This error is likely caused by a bug in React. Please file an issue."),_c=n}function Eu(){_c===null&&u("Expected currently replaying event to not be null. This error is likely caused by a bug in React. Please file an issue."),_c=null}function rh(n){return n===_c}function hv(n){var a=n.target||n.srcElement||window;return a.correspondingUseElement&&(a=a.correspondingUseElement),a.nodeType===cs?a.parentNode:a}var mv=null,Ec=null,Ys=null;function rd(n){var a=Ke(n);if(!!a){if(typeof mv!="function")throw new Error("setRestoreImplementation() needs to be called to handle a target for controlled events. This error is likely caused by a bug in React. Please file an issue.");var o=a.stateNode;if(o){var f=At(o);mv(a.stateNode,a.type,f)}}}function vv(n){mv=n}function Xb(n){Ec?Ys?Ys.push(n):Ys=[n]:Ec=n}function Zb(){return Ec!==null||Ys!==null}function Qb(){if(!!Ec){var n=Ec,a=Ys;if(Ec=null,Ys=null,rd(n),a)for(var o=0;o<a.length;o++)rd(a[o])}}var Jb=function(n,a){return n(a)},Fr=function(){},ea=!1;function _C(){var n=Zb();n&&(Fr(),Qb())}function e0(n,a,o){if(ea)return n(a,o);ea=!0;try{return Jb(n,a,o)}finally{ea=!1,_C()}}function t0(n,a,o){Jb=n,Fr=o}function EC(n){return n==="button"||n==="input"||n==="select"||n==="textarea"}function gv(n,a,o){switch(n){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":return!!(o.disabled&&EC(a));default:return!1}}function qs(n,a){var o=n.stateNode;if(o===null)return null;var f=At(o);if(f===null)return null;var p=f[a];if(gv(a,n.type,f))return null;if(p&&typeof p!="function")throw new Error("Expected `"+a+"` listener to be a function, instead got a value of `"+typeof p+"` type.");return p}var ad=!1;if(Yt)try{var fs={};Object.defineProperty(fs,"passive",{get:function(){ad=!0}}),window.addEventListener("test",fs,fs),window.removeEventListener("test",fs,fs)}catch{ad=!1}function Tc(n,a,o,f,p,y,w,T,O){var F=Array.prototype.slice.call(arguments,3);try{a.apply(o,F)}catch(H){this.onError(H)}}var Nc=Tc;if(typeof window<"u"&&typeof window.dispatchEvent=="function"&&typeof document<"u"&&typeof document.createEvent=="function"){var Rc=document.createElement("react");Nc=function(a,o,f,p,y,w,T,O,F){if(typeof document>"u"||document===null)throw new Error("The `document` global was defined when React was initialized, but is not defined anymore. This can happen in a test environment if a component schedules an update from an asynchronous callback, but the test has already finished running. To solve this, you can either unmount the component at the end of your test (and ensure that any asynchronous operations get canceled in `componentWillUnmount`), or you can change the test itself to be asynchronous.");var H=document.createEvent("Event"),ee=!1,J=!0,he=window.event,me=Object.getOwnPropertyDescriptor(window,"event");function _e(){Rc.removeEventListener(Ee,Ct,!1),typeof window.event<"u"&&window.hasOwnProperty("event")&&(window.event=he)}var ut=Array.prototype.slice.call(arguments,3);function Ct(){ee=!0,_e(),o.apply(f,ut),J=!1}var yt,On=!1,Sn=!1;function le(ue){if(yt=ue.error,On=!0,yt===null&&ue.colno===0&&ue.lineno===0&&(Sn=!0),ue.defaultPrevented&&yt!=null&&typeof yt=="object")try{yt._suppressLogging=!0}catch{}}var Ee="react-"+(a||"invokeguardedcallback");if(window.addEventListener("error",le),Rc.addEventListener(Ee,Ct,!1),H.initEvent(Ee,!1,!1),Rc.dispatchEvent(H),me&&Object.defineProperty(window,"event",me),ee&&J&&(On?Sn&&(yt=new Error("A cross-origin error was thrown. React doesn't have access to the actual error object in development. See https://reactjs.org/link/crossorigin-error for more information.")):yt=new Error(`An error was thrown inside one of your components, but React doesn't know what it was. This is likely due to browser flakiness. React does its best to preserve the "Pause on exceptions" behavior of the DevTools, which requires some DEV-mode only tricks. It's possible that these don't work in your browser. Try triggering the error in production mode, or switching to a modern browser. If you suspect that this is actually an issue with React, please file an issue.`),this.onError(yt)),window.removeEventListener("error",le),!ee)return _e(),Tc.apply(this,arguments)}}var Oc=Nc,Ac=!1,ah=null,ih=!1,yv=null,TC={onError:function(n){Ac=!0,ah=n}};function kc(n,a,o,f,p,y,w,T,O){Ac=!1,ah=null,Oc.apply(TC,arguments)}function id(n,a,o,f,p,y,w,T,O){if(kc.apply(this,arguments),Ac){var F=Ml();ih||(ih=!0,yv=F)}}function n0(){if(ih){var n=yv;throw ih=!1,yv=null,n}}function L(){return Ac}function Ml(){if(Ac){var n=ah;return Ac=!1,ah=null,n}else throw new Error("clearCaughtError was called but no error was captured. This error is likely caused by a bug in React. Please file an issue.")}function Ks(n){return n._reactInternals}function no(n){return n._reactInternals!==void 0}function _n(n,a){n._reactInternals=a}var kt=0,Dc=1,zr=2,ln=4,Tu=16,od=32,bv=64,In=128,Xs=256,La=512,Nu=1024,Fo=2048,Zs=4096,Ru=8192,oh=16384,Qs=Fo|ln|bv|La|Nu|oh,NC=32767,sd=32768,Ha=65536,Sv=131072,r0=1048576,Js=2097152,Ou=4194304,xv=8388608,Hr=16777216,sh=33554432,wv=ln|Nu|0,Cv=zr|ln|Tu|od|La|Zs|Ru,ld=ln|bv|La|Ru,Pc=Fo|Tu,ds=Ou|xv|Js,a0=r.ReactCurrentOwner;function Au(n){var a=n,o=n;if(n.alternate)for(;a.return;)a=a.return;else{var f=a;do a=f,(a.flags&(zr|Zs))!==kt&&(o=a.return),f=a.return;while(f)}return a.tag===x?o:null}function i0(n){if(n.tag===$){var a=n.memoizedState;if(a===null){var o=n.alternate;o!==null&&(a=o.memoizedState)}if(a!==null)return a.dehydrated}return null}function lh(n){return n.tag===x?n.stateNode.containerInfo:null}function ud(n){return Au(n)===n}function uh(n){{var a=a0.current;if(a!==null&&a.tag===v){var o=a,f=o.stateNode;f._warnedAboutRefsInRender||u("%s is accessing isMounted inside its render() function. render() should be a pure function of props and state. It should never access something that requires stale data from the previous render, such as refs. Move this logic to componentDidMount and componentDidUpdate instead.",It(o)||"A component"),f._warnedAboutRefsInRender=!0}}var p=Ks(n);return p?Au(p)===p:!1}function o0(n){if(Au(n)!==n)throw new Error("Unable to find node on an unmounted component.")}function _v(n){var a=n.alternate;if(!a){var o=Au(n);if(o===null)throw new Error("Unable to find node on an unmounted component.");return o!==n?null:n}for(var f=n,p=a;;){var y=f.return;if(y===null)break;var w=y.alternate;if(w===null){var T=y.return;if(T!==null){f=p=T;continue}break}if(y.child===w.child){for(var O=y.child;O;){if(O===f)return o0(y),n;if(O===p)return o0(y),a;O=O.sibling}throw new Error("Unable to find node on an unmounted component.")}if(f.return!==p.return)f=y,p=w;else{for(var F=!1,H=y.child;H;){if(H===f){F=!0,f=y,p=w;break}if(H===p){F=!0,p=y,f=w;break}H=H.sibling}if(!F){for(H=w.child;H;){if(H===f){F=!0,f=w,p=y;break}if(H===p){F=!0,p=w,f=y;break}H=H.sibling}if(!F)throw new Error("Child was not found in either parent set. This indicates a bug in React related to the return pointer. Please file an issue.")}}if(f.alternate!==p)throw new Error("Return fibers should always be each others' alternates. This error is likely caused by a bug in React. Please file an issue.")}if(f.tag!==x)throw new Error("Unable to find node on an unmounted component.");return f.stateNode.current===f?n:a}function s0(n){var a=_v(n);return a!==null?ps(a):null}function ps(n){if(n.tag===_||n.tag===R)return n;for(var a=n.child;a!==null;){var o=ps(a);if(o!==null)return o;a=a.sibling}return null}function Ev(n){var a=_v(n);return a!==null?Il(a):null}function Il(n){if(n.tag===_||n.tag===R)return n;for(var a=n.child;a!==null;){if(a.tag!==C){var o=Il(a);if(o!==null)return o}a=a.sibling}return null}var Fi=t.unstable_scheduleCallback,RC=t.unstable_cancelCallback,l0=t.unstable_shouldYield,u0=t.unstable_requestPaint,Rr=t.unstable_now,Ll=t.unstable_getCurrentPriorityLevel,cd=t.unstable_ImmediatePriority,Tv=t.unstable_UserBlockingPriority,hs=t.unstable_NormalPriority,OC=t.unstable_LowPriority,ch=t.unstable_IdlePriority,ga=t.unstable_yieldValue,Nv=t.unstable_setDisableYieldValue,ku=null,fr=null,nt=null,zi=!1,ya=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u";function c0(n){if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u")return!1;var a=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(a.isDisabled)return!0;if(!a.supportsFiber)return u("The installed version of React DevTools is too old and will not work with the current version of React. Please update React DevTools. https://reactjs.org/link/react-devtools"),!0;try{st&&(n=Zt({},n,{getLaneLabelMap:DC,injectProfilingHooks:Ov})),ku=a.inject(n),fr=a}catch(o){u("React instrumentation encountered an error: %s.",o)}return!!a.checkDCE}function Wa(n,a){if(fr&&typeof fr.onScheduleFiberRoot=="function")try{fr.onScheduleFiberRoot(ku,n,a)}catch(o){zi||(zi=!0,u("React instrumentation encountered an error: %s",o))}}function Rv(n,a){if(fr&&typeof fr.onCommitFiberRoot=="function")try{var o=(n.current.flags&In)===In;if(mt){var f;switch(a){case Ya:f=cd;break;case ys:f=Tv;break;case yr:f=hs;break;case _h:f=ch;break;default:f=hs;break}fr.onCommitFiberRoot(ku,n,f,o)}}catch(p){zi||(zi=!0,u("React instrumentation encountered an error: %s",p))}}function AC(n){if(fr&&typeof fr.onPostCommitFiberRoot=="function")try{fr.onPostCommitFiberRoot(ku,n)}catch(a){zi||(zi=!0,u("React instrumentation encountered an error: %s",a))}}function kC(n){if(fr&&typeof fr.onCommitFiberUnmount=="function")try{fr.onCommitFiberUnmount(ku,n)}catch(a){zi||(zi=!0,u("React instrumentation encountered an error: %s",a))}}function ta(n){if(typeof ga=="function"&&(Nv(n),s(n)),fr&&typeof fr.setStrictMode=="function")try{fr.setStrictMode(ku,n)}catch(a){zi||(zi=!0,u("React instrumentation encountered an error: %s",a))}}function Ov(n){nt=n}function DC(){{for(var n=new Map,a=1,o=0;o<Fv;o++){var f=zC(a);n.set(a,f),a*=2}return n}}function fd(n){nt!==null&&typeof nt.markCommitStarted=="function"&&nt.markCommitStarted(n)}function Av(){nt!==null&&typeof nt.markCommitStopped=="function"&&nt.markCommitStopped()}function dd(n){nt!==null&&typeof nt.markComponentRenderStarted=="function"&&nt.markComponentRenderStarted(n)}function Mc(){nt!==null&&typeof nt.markComponentRenderStopped=="function"&&nt.markComponentRenderStopped()}function pd(n){nt!==null&&typeof nt.markComponentPassiveEffectMountStarted=="function"&&nt.markComponentPassiveEffectMountStarted(n)}function PC(){nt!==null&&typeof nt.markComponentPassiveEffectMountStopped=="function"&&nt.markComponentPassiveEffectMountStopped()}function MC(n){nt!==null&&typeof nt.markComponentPassiveEffectUnmountStarted=="function"&&nt.markComponentPassiveEffectUnmountStarted(n)}function kv(){nt!==null&&typeof nt.markComponentPassiveEffectUnmountStopped=="function"&&nt.markComponentPassiveEffectUnmountStopped()}function f0(n){nt!==null&&typeof nt.markComponentLayoutEffectMountStarted=="function"&&nt.markComponentLayoutEffectMountStarted(n)}function IC(){nt!==null&&typeof nt.markComponentLayoutEffectMountStopped=="function"&&nt.markComponentLayoutEffectMountStopped()}function d0(n){nt!==null&&typeof nt.markComponentLayoutEffectUnmountStarted=="function"&&nt.markComponentLayoutEffectUnmountStarted(n)}function p0(){nt!==null&&typeof nt.markComponentLayoutEffectUnmountStopped=="function"&&nt.markComponentLayoutEffectUnmountStopped()}function h0(n,a,o){nt!==null&&typeof nt.markComponentErrored=="function"&&nt.markComponentErrored(n,a,o)}function Dv(n,a,o){nt!==null&&typeof nt.markComponentSuspended=="function"&&nt.markComponentSuspended(n,a,o)}function LC(n){nt!==null&&typeof nt.markLayoutEffectsStarted=="function"&&nt.markLayoutEffectsStarted(n)}function Pv(){nt!==null&&typeof nt.markLayoutEffectsStopped=="function"&&nt.markLayoutEffectsStopped()}function m0(n){nt!==null&&typeof nt.markPassiveEffectsStarted=="function"&&nt.markPassiveEffectsStarted(n)}function v0(){nt!==null&&typeof nt.markPassiveEffectsStopped=="function"&&nt.markPassiveEffectsStopped()}function Mv(n){nt!==null&&typeof nt.markRenderStarted=="function"&&nt.markRenderStarted(n)}function fh(){nt!==null&&typeof nt.markRenderYielded=="function"&&nt.markRenderYielded()}function g0(){nt!==null&&typeof nt.markRenderStopped=="function"&&nt.markRenderStopped()}function y0(n){nt!==null&&typeof nt.markRenderScheduled=="function"&&nt.markRenderScheduled(n)}function b0(n,a){nt!==null&&typeof nt.markForceUpdateScheduled=="function"&&nt.markForceUpdateScheduled(n,a)}function Iv(n,a){nt!==null&&typeof nt.markStateUpdateScheduled=="function"&&nt.markStateUpdateScheduled(n,a)}var Rt=0,yn=1,Un=2,Dr=8,ro=16,S0=Math.clz32?Math.clz32:FC,Lv=Math.log,mn=Math.LN2;function FC(n){var a=n>>>0;return a===0?32:31-(Lv(a)/mn|0)|0}var Fv=31,Me=0,Wr=0,Ut=1,Ic=2,Br=4,Du=8,Bi=16,Pu=32,Mu=4194240,Lc=64,Ga=128,ms=256,hd=512,dh=1024,Fc=2048,ph=4096,md=8192,hh=16384,vd=32768,gd=65536,vs=131072,zv=262144,gs=524288,mh=1048576,vh=2097152,zc=130023424,Bc=4194304,Bv=8388608,Uv=16777216,gh=33554432,yh=67108864,x0=Bc,Uc=134217728,jv=268435455,na=268435456,Fa=536870912,Ui=1073741824;function zC(n){{if(n&Ut)return"Sync";if(n&Ic)return"InputContinuousHydration";if(n&Br)return"InputContinuous";if(n&Du)return"DefaultHydration";if(n&Bi)return"Default";if(n&Pu)return"TransitionHydration";if(n&Mu)return"Transition";if(n&zc)return"Retry";if(n&Uc)return"SelectiveHydration";if(n&na)return"IdleHydration";if(n&Fa)return"Idle";if(n&Ui)return"Offscreen"}}var Xn=-1,el=Lc,yd=Bc;function jc(n){switch(tl(n)){case Ut:return Ut;case Ic:return Ic;case Br:return Br;case Du:return Du;case Bi:return Bi;case Pu:return Pu;case Lc:case Ga:case ms:case hd:case dh:case Fc:case ph:case md:case hh:case vd:case gd:case vs:case zv:case gs:case mh:case vh:return nΜcase Bc:case Bv:case Uv:case gh:case yh:return n&zc;case Uc:return Uc;case na:return na;case Fa:return Fa;case Ui:return Ui;default:return u("Should have found matching lanes. This is a bug in React."),n}}function bh(n,a){var o=n.pendingLanes;if(o===Me)return Me;var f=Me,p=n.suspendedLanes,y=n.pingedLanes,w=o&jv;if(w!==Me){var T=w&~p;if(T!==Me)f=jc(T);else{var O=w&y;O!==Me&&(f=jc(O))}}else{var F=o&~p;F!==Me?f=jc(F):y!==Me&&(f=jc(y))}if(f===Me)return Me;if(a!==Me&&a!==f&&(a&p)===Me){var H=tl(f),ee=tl(a);if(H>=ee||H===Bi&&(ee&Mu)!==Me)return a}(f&Br)!==Me&&(f|=o&Bi);var J=n.entangledLanes;if(J!==Me)for(var he=n.entanglements,me=f&J;me>0;){var _e=Fl(me),ut=1<<_e;f|=he[_e],me&=~ut}return f}function w0(n,a){for(var o=n.eventTimes,f=Xn;a>0;){var p=Fl(a),y=1<<p,w=o[p];w>f&&(f=w),a&=~y}return f}function $c(n,a){switch(n){case Ut:case Ic:case Br:return a+250;case Du:case Bi:case Pu:case Lc:case Ga:case ms:case hd:case dh:case Fc:case ph:case md:case hh:case vd:case gd:case vs:case zv:case gs:case mh:case vh:return a+5e3;case Bc:case Bv:case Uv:case gh:case yh:return Xn;case Uc:case na:case Fa:case Ui:return Xn;default:return u("Should have found matching lanes. This is a bug in React."),Xn}}function bd(n,a){for(var o=n.pendingLanes,f=n.suspendedLanes,p=n.pingedLanes,y=n.expirationTimes,w=o;w>0;){var T=Fl(w),O=1<<T,F=y[T];F===Xn?((O&f)===Me||(O&p)!==Me)&&(y[T]=$c(O,a)):F<=a&&(n.expiredLanes|=O),w&=~O}}function BC(n){return jc(n.pendingLanes)}function Sh(n){var a=n.pendingLanes&~Ui;return a!==Me?a:a&Ui?Ui:Me}function C0(n){return(n&Ut)!==Me}function Vc(n){return(n&jv)!==Me}function $v(n){return(n&zc)===n}function xh(n){var a=Ut|Br|Bi;return(n&a)===Me}function Vv(n){return(n&Mu)===n}function Iu(n,a){var o=Ic|Br|Du|Bi;return(a&o)!==Me}function UC(n,a){return(a&n.expiredLanes)!==Me}function Hv(n){return(n&Mu)!==Me}function Sd(){var n=el;return el<<=1,(el&Mu)===Me&&(el=Lc),n}function _0(){var n=yd;return yd<<=1,(yd&zc)===Me&&(yd=Bc),n}function tl(n){return n&-n}function xd(n){return tl(n)}function Fl(n){return 31-S0(n)}function zo(n){return Fl(n)}function bi(n,a){return(n&a)!==Me}function Lu(n,a){return(n&a)===a}function un(n,a){return n|a}function wd(n,a){return n&~a}function E0(n,a){return n&a}function eD(n){return n}function nl(n,a){return n!==Wr&&n<a?n:a}function Cd(n){for(var a=[],o=0;o<Fv;o++)a.push(n);return a}function Fu(n,a,o){n.pendingLanes|=a,a!==Fa&&(n.suspendedLanes=Me,n.pingedLanes=Me);var f=n.eventTimes,p=zo(a);f[p]=o}function Wv(n,a){n.suspendedLanes|=a,n.pingedLanes&=~a;for(var o=n.expirationTimes,f=a;f>0;){var p=Fl(f),y=1<<p;o[p]=Xn,f&=~y}}function _d(n,a,o){n.pingedLanes|=n.suspendedLanes&a}function Hc(n,a){var o=n.pendingLanes&~a;n.pendingLanes=a,n.suspendedLanes=Me,n.pingedLanes=Me,n.expiredLanes&=a,n.mutableReadLanes&=a,n.entangledLanes&=a;for(var f=n.entanglements,p=n.eventTimes,y=n.expirationTimes,w=o;w>0;){var T=Fl(w),O=1<<T;f[T]=Me,p[T]=Xn,y[T]=Xn,w&=~O}}function Ot(n,a){for(var o=n.entangledLanes|=a,f=n.entanglements,p=o;p;){var y=Fl(p),w=1<<y;w&a|f[y]&a&&(f[y]|=a),p&=~w}}function wh(n,a){var o=tl(a),f;switch(o){case Br:f=Ic;break;case Bi:f=Du;break;case Lc:case Ga:case ms:case hd:case dh:case Fc:case ph:case md:case hh:case vd:case gd:case vs:case zv:case gs:case mh:case vh:case Bc:case Bv:case Uv:case gh:case yh:f=Pu;break;case Fa:f=na;break;default:f=Wr;break}return(f&(n.suspendedLanes|a))!==Wr?Wr:f}function Ch(n,a,o){if(!!ya)for(var f=n.pendingUpdatersLaneMap;o>0;){var p=zo(o),y=1<<p,w=f[p];w.add(a),o&=~y}}function zl(n,a){if(!!ya)for(var o=n.pendingUpdatersLaneMap,f=n.memoizedUpdaters;a>0;){var p=zo(a),y=1<<p,w=o[p];w.size>0&&(w.forEach(function(T){var O=T.alternate;(O===null||!f.has(O))&&f.add(T)}),w.clear()),a&=~y}}function T0(n,a){return null}var Ya=Ut,ys=Br,yr=Bi,_h=Fa,Ed=Wr;function ao(){return Ed}function ra(n){Ed=n}function N0(n,a){var o=Ed;try{return Ed=n,a()}finally{Ed=o}}function jC(n,a){return n!==0&&n<a?n:a}function $C(n,a){return n===0||n>a?n:a}function Gv(n,a){return n!==0&&n<a}function bs(n){var a=tl(n);return Gv(Ya,a)?Gv(ys,a)?Vc(a)?yr:_h:ys:Ya}function aa(n){var a=n.current.memoizedState;return a.isDehydrated}var Eh;function VC(n){Eh=n}function Yv(n){Eh(n)}var qv;function HC(n){qv=n}var Wc;function R0(n){Wc=n}var Kv;function WC(n){Kv=n}var O0;function GC(n){O0=n}var Xv=!1,Td=[],rl=null,Bl=null,Ss=null,Gc=new Map,al=new Map,xs=[],A0=["mousedown","mouseup","touchcancel","touchend","touchstart","auxclick","dblclick","pointercancel","pointerdown","pointerup","dragend","dragstart","drop","compositionend","compositionstart","keydown","keypress","keyup","input","textInput","copy","cut","paste","click","change","contextmenu","reset","submit"];function k0(n){return A0.indexOf(n)>-1}function Th(n,a,o,f,p){return{blockedOn:n,domEventName:a,eventSystemFlags:o,nativeEvent:p,targetContainers:[f]}}function Zv(n,a){switch(n){case"focusin":case"focusout":rl=null;break;case"dragenter":case"dragleave":Bl=null;break;case"mouseover":case"mouseout":Ss=null;break;case"pointerover":case"pointerout":{var o=a.pointerId;Gc.delete(o);break}case"gotpointercapture":case"lostpointercapture":{var f=a.pointerId;al.delete(f);break}}}function Si(n,a,o,f,p,y){if(n===null||n.nativeEvent!==y){var w=Th(a,o,f,p,y);if(a!==null){var T=Ke(a);T!==null&&qv(T)}return w}n.eventSystemFlags|=f;var O=n.targetContainers;return p!==null&&O.indexOf(p)===-1&&O.push(p),n}function zu(n,a,o,f,p){switch(a){case"focusin":{var y=p;return rl=Si(rl,n,a,o,f,y),!0}case"dragenter":{var w=p;return Bl=Si(Bl,n,a,o,f,w),!0}case"mouseover":{var T=p;return Ss=Si(Ss,n,a,o,f,T),!0}case"pointerover":{var O=p,F=O.pointerId;return Gc.set(F,Si(Gc.get(F)||null,n,a,o,f,O)),!0}case"gotpointercapture":{var H=p,ee=H.pointerId;return al.set(ee,Si(al.get(ee)||null,n,a,o,f,H)),!0}}return!1}function D0(n){var a=Pe(n.target);if(a!==null){var o=Au(a);if(o!==null){var f=o.tag;if(f===$){var p=i0(o);if(p!==null){n.blockedOn=p,O0(n.priority,function(){Wc(o)});return}}else if(f===x){var y=o.stateNode;if(aa(y)){n.blockedOn=lh(o);return}}}}n.blockedOn=null}function P0(n){for(var a=Kv(),o={blockedOn:null,target:n,priority:a},f=0;f<xs.length&&Gv(a,xs[f].priority);f++);xs.splice(f,0,o),f===0&&D0(o)}function Nh(n){if(n.blockedOn!==null)return!1;for(var a=n.targetContainers;a.length>0;){var o=a[0],f=Jv(n.domEventName,n.eventSystemFlags,o,n.nativeEvent);if(f===null){var p=n.nativeEvent,y=new p.constructor(p.type,p);nd(y),p.target.dispatchEvent(y),Eu()}else{var w=Ke(f);return w!==null&&qv(w),n.blockedOn=f,!1}a.shift()}return!0}function M0(n,a,o){Nh(n)&&o.delete(a)}function YC(){Xv=!1,rl!==null&&Nh(rl)&&(rl=null),Bl!==null&&Nh(Bl)&&(Bl=null),Ss!==null&&Nh(Ss)&&(Ss=null),Gc.forEach(M0),al.forEach(M0)}function Nd(n,a){n.blockedOn===a&&(n.blockedOn=null,Xv||(Xv=!0,t.unstable_scheduleCallback(t.unstable_NormalPriority,YC)))}function Rd(n){if(Td.length>0){Nd(Td[0],n);for(var a=1;a<Td.length;a++){var o=Td[a];o.blockedOn===n&&(o.blockedOn=null)}}rl!==null&&Nd(rl,n),Bl!==null&&Nd(Bl,n),Ss!==null&&Nd(Ss,n);var f=function(T){return Nd(T,n)};Gc.forEach(f),al.forEach(f);for(var p=0;p<xs.length;p++){var y=xs[p];y.blockedOn===n&&(y.blockedOn=null)}for(;xs.length>0;){var w=xs[0];if(w.blockedOn!==null)break;D0(w),w.blockedOn===null&&xs.shift()}}var Yc=r.ReactCurrentBatchConfig,Qv=!0;function I0(n){Qv=!!n}function qC(){return Qv}function KC(n,a,o){var f=z0(a),p;switch(f){case Ya:p=XC;break;case ys:p=L0;break;case yr:default:p=Rh;break}return p.bind(null,a,o,n)}function XC(n,a,o,f){var p=ao(),y=Yc.transition;Yc.transition=null;try{ra(Ya),Rh(n,a,o,f)}finally{ra(p),Yc.transition=y}}function L0(n,a,o,f){var p=ao(),y=Yc.transition;Yc.transition=null;try{ra(ys),Rh(n,a,o,f)}finally{ra(p),Yc.transition=y}}function Rh(n,a,o,f){!Qv||F0(n,a,o,f)}function F0(n,a,o,f){var p=Jv(n,a,o,f);if(p===null){mg(n,a,f,Oh,o),Zv(n,f);return}if(zu(p,n,a,o,f)){f.stopPropagation();return}if(Zv(n,f),a&Cc&&k0(n)){for(;p!==null;){var y=Ke(p);y!==null&&Yv(y);var w=Jv(n,a,o,f);if(w===null&&mg(n,a,f,Oh,o),w===p)break;p=w}p!==null&&f.stopPropagation();return}mg(n,a,f,null,o)}var Oh=null;function Jv(n,a,o,f){Oh=null;var p=hv(f),y=Pe(p);if(y!==null){var w=Au(y);if(w===null)y=null;else{var T=w.tag;if(T===$){var O=i0(w);if(O!==null)return O;y=null}else if(T===x){var F=w.stateNode;if(aa(F))return lh(w);y=null}else w!==y&&(y=null)}}return Oh=y,null}function z0(n){switch(n){case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return Ya;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"toggle":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return ys;case"message":{var a=Ll();switch(a){case cd:return Ya;case Tv:return ys;case hs:case OC:return yr;case ch:return _h;default:return yr}}default:return yr}}function B0(n,a,o){return n.addEventListener(a,o,!1),o}function ZC(n,a,o){return n.addEventListener(a,o,!0),o}function QC(n,a,o,f){return n.addEventListener(a,o,{capture:!0,passive:f}),o}function JC(n,a,o,f){return n.addEventListener(a,o,{passive:f}),o}var Od=null,eg=null,Ad=null;function io(n){return Od=n,eg=j0(),!0}function e_(){Od=null,eg=null,Ad=null}function U0(){if(Ad)return Ad;var n,a=eg,o=a.length,f,p=j0(),y=p.length;for(n=0;n<o&&a[n]===p[n];n++);var w=o-n;for(f=1;f<=w&&a[o-f]===p[y-f];f++);var T=f>1?1-f:void 0;return Ad=p.slice(n,T),Ad}function j0(){return"value"in Od?Od.value:Od.textContent}function kd(n){var a,o=n.keyCode;return"charCode"in n?(a=n.charCode,a===0&&o===13&&(a=13)):a=o,a===10&&(a=13),a>=32||a===13?a:0}function Ah(){return!0}function $0(){return!1}function ji(n){function a(o,f,p,y,w){this._reactName=o,this._targetInst=p,this.type=f,this.nativeEvent=y,this.target=w,this.currentTarget=null;for(var T in n)if(!!n.hasOwnProperty(T)){var O=n[T];O?this[T]=O(y):this[T]=y[T]}var F=y.defaultPrevented!=null?y.defaultPrevented:y.returnValue===!1;return F?this.isDefaultPrevented=Ah:this.isDefaultPrevented=$0,this.isPropagationStopped=$0,this}return Zt(a.prototype,{preventDefault:function(){this.defaultPrevented=!0;var o=this.nativeEvent;!o||(o.preventDefault?o.preventDefault():typeof o.returnValue!="unknown"&&(o.returnValue=!1),this.isDefaultPrevented=Ah)},stopPropagation:function(){var o=this.nativeEvent;!o||(o.stopPropagation?o.stopPropagation():typeof o.cancelBubble!="unknown"&&(o.cancelBubble=!0),this.isPropagationStopped=Ah)},persist:function(){},isPersistent:Ah}),a}var qc={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(n){return n.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Dd=ji(qc),Pd=Zt({},qc,{view:0,detail:0}),t_=ji(Pd),tg,ng,Md;function n_(n){n!==Md&&(Md&&n.type==="mousemove"?(tg=n.screenX-Md.screenX,ng=n.screenY-Md.screenY):(tg=0,ng=0),Md=n)}var kh=Zt({},Pd,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:ig,button:0,buttons:0,relatedTarget:function(n){return n.relatedTarget===void 0?n.fromElement===n.srcElement?n.toElement:n.fromElement:n.relatedTarget},movementX:function(n){return"movementX"in n?n.movementX:(n_(n),tg)},movementY:function(n){return"movementY"in n?n.movementY:ng}}),V0=ji(kh),r_=Zt({},kh,{dataTransfer:0}),a_=ji(r_),i_=Zt({},Pd,{relatedTarget:0}),rg=ji(i_),o_=Zt({},qc,{animationName:0,elapsedTime:0,pseudoElement:0}),s_=ji(o_),l_=Zt({},qc,{clipboardData:function(n){return"clipboardData"in n?n.clipboardData:window.clipboardData}}),u_=ji(l_),c_=Zt({},qc,{data:0}),H0=ji(c_),f_=H0,d_={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},ag={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"};function W0(n){if(n.key){var a=d_[n.key]||n.key;if(a!=="Unidentified")return a}if(n.type==="keypress"){var o=kd(n);return o===13?"Enter":String.fromCharCode(o)}return n.type==="keydown"||n.type==="keyup"?ag[n.keyCode]||"Unidentified":""}var p_={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function h_(n){var a=this,o=a.nativeEvent;if(o.getModifierState)return o.getModifierState(n);var f=p_[n];return f?!!o[f]:!1}function ig(n){return h_}var m_=Zt({},Pd,{key:W0,code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:ig,charCode:function(n){return n.type==="keypress"?kd(n):0},keyCode:function(n){return n.type==="keydown"||n.type==="keyup"?n.keyCode:0},which:function(n){return n.type==="keypress"?kd(n):n.type==="keydown"||n.type==="keyup"?n.keyCode:0}}),v_=ji(m_),g_=Zt({},kh,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),G0=ji(g_),y_=Zt({},Pd,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:ig}),Y0=ji(y_),b_=Zt({},qc,{propertyName:0,elapsedTime:0,pseudoElement:0}),Dh=ji(b_),S_=Zt({},kh,{deltaX:function(n){return"deltaX"in n?n.deltaX:"wheelDeltaX"in n?-n.wheelDeltaX:0},deltaY:function(n){return"deltaY"in n?n.deltaY:"wheelDeltaY"in n?-n.wheelDeltaY:"wheelDelta"in n?-n.wheelDelta:0},deltaZ:0,deltaMode:0}),x_=ji(S_),w_=[9,13,27,32],q0=229,og=Yt&&"CompositionEvent"in window,Id=null;Yt&&"documentMode"in document&&(Id=document.documentMode);var C_=Yt&&"TextEvent"in window&&!Id,K0=Yt&&(!og||Id&&Id>8&&Id<=11),X0=32,Z0=String.fromCharCode(X0);function __(){zt("onBeforeInput",["compositionend","keypress","textInput","paste"]),zt("onCompositionEnd",["compositionend","focusout","keydown","keypress","keyup","mousedown"]),zt("onCompositionStart",["compositionstart","focusout","keydown","keypress","keyup","mousedown"]),zt("onCompositionUpdate",["compositionupdate","focusout","keydown","keypress","keyup","mousedown"])}var Q0=!1;function E_(n){return(n.ctrlKey||n.altKey||n.metaKey)&&!(n.ctrlKey&&n.altKey)}function T_(n){switch(n){case"compositionstart":return"onCompositionStart";case"compositionend":return"onCompositionEnd";case"compositionupdate":return"onCompositionUpdate"}}function N_(n,a){return n==="keydown"&&a.keyCode===q0}function J0(n,a){switch(n){case"keyup":return w_.indexOf(a.keyCode)!==-1;case"keydown":return a.keyCode!==q0;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function sg(n){var a=n.detail;return typeof a=="object"&&"data"in a?a.data:null}function lg(n){return n.locale==="ko"}var Kc=!1;function R_(n,a,o,f,p){var y,w;if(og?y=T_(a):Kc?J0(a,f)&&(y="onCompositionEnd"):N_(a,f)&&(y="onCompositionStart"),!y)return null;K0&&!lg(f)&&(!Kc&&y==="onCompositionStart"?Kc=io(p):y==="onCompositionEnd"&&Kc&&(w=U0()));var T=tn(o,y);if(T.length>0){var O=new H0(y,a,null,f,p);if(n.push({event:O,listeners:T}),w)O.data=w;else{var F=sg(f);F!==null&&(O.data=F)}}}function O_(n,a){switch(n){case"compositionend":return sg(a);case"keypress":var o=a.which;return o!==X0?null:(Q0=!0,Z0);case"textInput":var f=a.data;return f===Z0&&Q0?null:f;default:return null}}function A_(n,a){if(Kc){if(n==="compositionend"||!og&&J0(n,a)){var o=U0();return e_(),Kc=!1,o}return null}switch(n){case"paste":return null;case"keypress":if(!E_(a)){if(a.char&&a.char.length>1)return a.char;if(a.which)return String.fromCharCode(a.which)}return null;case"compositionend":return K0&&!lg(a)?null:a.data;default:return null}}function Ph(n,a,o,f,p){var y;if(C_?y=O_(a,f):y=A_(a,f),!y)return null;var w=tn(o,"onBeforeInput");if(w.length>0){var T=new f_("onBeforeInput","beforeinput",null,f,p);n.push({event:T,listeners:w}),T.data=y}}function k_(n,a,o,f,p,y,w){R_(n,a,o,f,p),Ph(n,a,o,f,p)}var D_={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function eS(n){var a=n&&n.nodeName&&n.nodeName.toLowerCase();return a==="input"?!!D_[n.type]:a==="textarea"}/**
|
|
* Checks if an event is supported in the current execution environment.
|
|
*
|
|
* NOTE: This will not work correctly for non-generic events such as `change`,
|
|
* `reset`, `load`, `error`, and `select`.
|
|
*
|
|
* Borrows from Modernizr.
|
|
*
|
|
* @param {string} eventNameSuffix Event name, e.g. "click".
|
|
* @return {boolean} True if the event is supported.
|
|
* @internal
|
|
* @license Modernizr 3.0.0pre (Custom Build) | MIT
|
|
*/function P_(n){if(!Yt)return!1;var a="on"+n,o=a in document;if(!o){var f=document.createElement("div");f.setAttribute(a,"return;"),o=typeof f[a]=="function"}return o}function M_(){zt("onChange",["change","click","focusin","focusout","input","keydown","keyup","selectionchange"])}function tS(n,a,o,f){Xb(f);var p=tn(a,"onChange");if(p.length>0){var y=new Dd("onChange","change",null,o,f);n.push({event:y,listeners:p})}}var Ld=null,Fd=null;function I_(n){var a=n.nodeName&&n.nodeName.toLowerCase();return a==="select"||a==="input"&&n.type==="file"}function L_(n){var a=[];tS(a,Fd,n,hv(n)),e0(F_,a)}function F_(n){hg(n,0)}function Bu(n){var a=dt(n);if(W(a))return n}function z_(n,a){if(n==="change")return a}var ug=!1;Yt&&(ug=P_("input")&&(!document.documentMode||document.documentMode>9));function nS(n,a){Ld=n,Fd=a,Ld.attachEvent("onpropertychange",cg)}function Mh(){!Ld||(Ld.detachEvent("onpropertychange",cg),Ld=null,Fd=null)}function cg(n){n.propertyName==="value"&&Bu(Fd)&&L_(n)}function rS(n,a,o){n==="focusin"?(Mh(),nS(a,o)):n==="focusout"&&Mh()}function aS(n,a){if(n==="selectionchange"||n==="keyup"||n==="keydown")return Bu(Fd)}function iS(n){var a=n.nodeName;return a&&a.toLowerCase()==="input"&&(n.type==="checkbox"||n.type==="radio")}function B_(n,a){if(n==="click")return Bu(a)}function U_(n,a){if(n==="input"||n==="change")return Bu(a)}function j_(n){var a=n._wrapperState;!a||!a.controlled||n.type!=="number"||$e(n,"number",n.value)}function Ih(n,a,o,f,p,y,w){var T=o?dt(o):window,O,F;if(I_(T)?O=z_:eS(T)?ug?O=U_:(O=aS,F=rS):iS(T)&&(O=B_),O){var H=O(a,o);if(H){tS(n,H,f,p);return}}F&&F(a,T,o),a==="focusout"&&j_(T)}function Lh(){We("onMouseEnter",["mouseout","mouseover"]),We("onMouseLeave",["mouseout","mouseover"]),We("onPointerEnter",["pointerout","pointerover"]),We("onPointerLeave",["pointerout","pointerover"])}function $_(n,a,o,f,p,y,w){var T=a==="mouseover"||a==="pointerover",O=a==="mouseout"||a==="pointerout";if(T&&!rh(f)){var F=f.relatedTarget||f.fromElement;if(F&&(Pe(F)||Oe(F)))return}if(!(!O&&!T)){var H;if(p.window===p)H=p;else{var ee=p.ownerDocument;ee?H=ee.defaultView||ee.parentWindow:H=window}var J,he;if(O){var me=f.relatedTarget||f.toElement;if(J=o,he=me?Pe(me):null,he!==null){var _e=Au(he);(he!==_e||he.tag!==_&&he.tag!==R)&&(he=null)}}else J=null,he=o;if(J!==he){var ut=V0,Ct="onMouseLeave",yt="onMouseEnter",On="mouse";(a==="pointerout"||a==="pointerover")&&(ut=G0,Ct="onPointerLeave",yt="onPointerEnter",On="pointer");var Sn=J==null?H:dt(J),le=he==null?H:dt(he),Ee=new ut(Ct,On+"leave",J,f,p);Ee.target=Sn,Ee.relatedTarget=le;var ue=null,He=Pe(p);if(He===o){var ct=new ut(yt,On+"enter",he,f,p);ct.target=le,ct.relatedTarget=Sn,ue=ct}oE(n,Ee,ue,J,he)}}}function V_(n,a){return n===a&&(n!==0||1/n===1/a)||n!==n&&a!==a}var qa=typeof Object.is=="function"?Object.is:V_;function Xc(n,a){if(qa(n,a))return!0;if(typeof n!="object"||n===null||typeof a!="object"||a===null)return!1;var o=Object.keys(n),f=Object.keys(a);if(o.length!==f.length)return!1;for(var p=0;p<o.length;p++){var y=o[p];if(!ye.call(a,y)||!qa(n[y],a[y]))return!1}return!0}function oS(n){for(;n&&n.firstChild;)n=n.firstChild;return n}function H_(n){for(;n;){if(n.nextSibling)return n.nextSibling;n=n.parentNode}}function sS(n,a){for(var o=oS(n),f=0,p=0;o;){if(o.nodeType===cs){if(p=f+o.textContent.length,f<=a&&p>=a)return{node:o,offset:a-f};f=p}o=oS(H_(o))}}function W_(n){var a=n.ownerDocument,o=a&&a.defaultView||window,f=o.getSelection&&o.getSelection();if(!f||f.rangeCount===0)return null;var p=f.anchorNode,y=f.anchorOffset,w=f.focusNode,T=f.focusOffset;try{p.nodeType,w.nodeType}catch{return null}return G_(n,p,y,w,T)}function G_(n,a,o,f,p){var y=0,w=-1,T=-1,O=0,F=0,H=n,ee=null;e:for(;;){for(var J=null;H===a&&(o===0||H.nodeType===cs)&&(w=y+o),H===f&&(p===0||H.nodeType===cs)&&(T=y+p),H.nodeType===cs&&(y+=H.nodeValue.length),(J=H.firstChild)!==null;)ee=H,H=J;for(;;){if(H===n)break e;if(ee===a&&++O===o&&(w=y),ee===f&&++F===p&&(T=y),(J=H.nextSibling)!==null)break;H=ee,ee=H.parentNode}H=J}return w===-1||T===-1?null:{start:w,end:T}}function Y_(n,a){var o=n.ownerDocument||document,f=o&&o.defaultView||window;if(!!f.getSelection){var p=f.getSelection(),y=n.textContent.length,w=Math.min(a.start,y),T=a.end===void 0?w:Math.min(a.end,y);if(!p.extend&&w>T){var O=T;T=w,w=O}var F=sS(n,w),H=sS(n,T);if(F&&H){if(p.rangeCount===1&&p.anchorNode===F.node&&p.anchorOffset===F.offset&&p.focusNode===H.node&&p.focusOffset===H.offset)return;var ee=o.createRange();ee.setStart(F.node,F.offset),p.removeAllRanges(),w>T?(p.addRange(ee),p.extend(H.node,H.offset)):(ee.setEnd(H.node,H.offset),p.addRange(ee))}}}function lS(n){return n&&n.nodeType===cs}function uS(n,a){return!n||!a?!1:n===a?!0:lS(n)?!1:lS(a)?uS(n,a.parentNode):"contains"in n?n.contains(a):n.compareDocumentPosition?!!(n.compareDocumentPosition(a)&16):!1}function q_(n){return n&&n.ownerDocument&&uS(n.ownerDocument.documentElement,n)}function K_(n){try{return typeof n.contentWindow.location.href=="string"}catch{return!1}}function cS(){for(var n=window,a=Q();a instanceof n.HTMLIFrameElement;){if(K_(a))n=a.contentWindow;else return a;a=Q(n.document)}return a}function fg(n){var a=n&&n.nodeName&&n.nodeName.toLowerCase();return a&&(a==="input"&&(n.type==="text"||n.type==="search"||n.type==="tel"||n.type==="url"||n.type==="password")||a==="textarea"||n.contentEditable==="true")}function Bo(){var n=cS();return{focusedElem:n,selectionRange:fg(n)?Z_(n):null}}function X_(n){var a=cS(),o=n.focusedElem,f=n.selectionRange;if(a!==o&&q_(o)){f!==null&&fg(o)&&Uu(o,f);for(var p=[],y=o;y=y.parentNode;)y.nodeType===yi&&p.push({element:y,left:y.scrollLeft,top:y.scrollTop});typeof o.focus=="function"&&o.focus();for(var w=0;w<p.length;w++){var T=p[w];T.element.scrollLeft=T.left,T.element.scrollTop=T.top}}}function Z_(n){var a;return"selectionStart"in n?a={start:n.selectionStart,end:n.selectionEnd}:a=W_(n),a||{start:0,end:0}}function Uu(n,a){var o=a.start,f=a.end;f===void 0&&(f=o),"selectionStart"in n?(n.selectionStart=o,n.selectionEnd=Math.min(f,n.value.length)):Y_(n,a)}var rn=Yt&&"documentMode"in document&&document.documentMode<=11;function Q_(){zt("onSelect",["focusout","contextmenu","dragend","focusin","keydown","keyup","mousedown","mouseup","selectionchange"])}var Gr=null,Cr=null,zd=null,ws=!1;function J_(n){if("selectionStart"in n&&fg(n))return{start:n.selectionStart,end:n.selectionEnd};var a=n.ownerDocument&&n.ownerDocument.defaultView||window,o=a.getSelection();return{anchorNode:o.anchorNode,anchorOffset:o.anchorOffset,focusNode:o.focusNode,focusOffset:o.focusOffset}}function eE(n){return n.window===n?n.document:n.nodeType===Io?n:n.ownerDocument}function fS(n,a,o){var f=eE(o);if(!(ws||Gr==null||Gr!==Q(f))){var p=J_(Gr);if(!zd||!Xc(zd,p)){zd=p;var y=tn(Cr,"onSelect");if(y.length>0){var w=new Dd("onSelect","select",null,a,o);n.push({event:w,listeners:y}),w.target=Gr}}}}function tE(n,a,o,f,p,y,w){var T=o?dt(o):window;switch(a){case"focusin":(eS(T)||T.contentEditable==="true")&&(Gr=T,Cr=o,zd=null);break;case"focusout":Gr=null,Cr=null,zd=null;break;case"mousedown":ws=!0;break;case"contextmenu":case"mouseup":case"dragend":ws=!1,fS(n,f,p);break;case"selectionchange":if(rn)break;case"keydown":case"keyup":fS(n,f,p)}}function Fh(n,a){var o={};return o[n.toLowerCase()]=a.toLowerCase(),o["Webkit"+n]="webkit"+a,o["Moz"+n]="moz"+a,o}var Ul={animationend:Fh("Animation","AnimationEnd"),animationiteration:Fh("Animation","AnimationIteration"),animationstart:Fh("Animation","AnimationStart"),transitionend:Fh("Transition","TransitionEnd")},dg={},Cs={};Yt&&(Cs=document.createElement("div").style,"AnimationEvent"in window||(delete Ul.animationend.animation,delete Ul.animationiteration.animation,delete Ul.animationstart.animation),"TransitionEvent"in window||delete Ul.transitionend.transition);function Bd(n){if(dg[n])return dg[n];if(!Ul[n])return n;var a=Ul[n];for(var o in a)if(a.hasOwnProperty(o)&&o in Cs)return dg[n]=a[o];return n}var Ud=Bd("animationend"),br=Bd("animationiteration"),_r=Bd("animationstart"),pg=Bd("transitionend"),dS=new Map,pS=["abort","auxClick","cancel","canPlay","canPlayThrough","click","close","contextMenu","copy","cut","drag","dragEnd","dragEnter","dragExit","dragLeave","dragOver","dragStart","drop","durationChange","emptied","encrypted","ended","error","gotPointerCapture","input","invalid","keyDown","keyPress","keyUp","load","loadedData","loadedMetadata","loadStart","lostPointerCapture","mouseDown","mouseMove","mouseOut","mouseOver","mouseUp","paste","pause","play","playing","pointerCancel","pointerDown","pointerMove","pointerOut","pointerOver","pointerUp","progress","rateChange","reset","resize","seeked","seeking","stalled","submit","suspend","timeUpdate","touchCancel","touchEnd","touchStart","volumeChange","scroll","toggle","touchMove","waiting","wheel"];function jl(n,a){dS.set(n,a),zt(a,[n])}function nE(){for(var n=0;n<pS.length;n++){var a=pS[n],o=a.toLowerCase(),f=a[0].toUpperCase()+a.slice(1);jl(o,"on"+f)}jl(Ud,"onAnimationEnd"),jl(br,"onAnimationIteration"),jl(_r,"onAnimationStart"),jl("dblclick","onDoubleClick"),jl("focusin","onFocus"),jl("focusout","onBlur"),jl(pg,"onTransitionEnd")}function rE(n,a,o,f,p,y,w){var T=dS.get(a);if(T!==void 0){var O=Dd,F=a;switch(a){case"keypress":if(kd(f)===0)return;case"keydown":case"keyup":O=v_;break;case"focusin":F="focus",O=rg;break;case"focusout":F="blur",O=rg;break;case"beforeblur":case"afterblur":O=rg;break;case"click":if(f.button===2)return;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":O=V0;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":O=a_;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":O=Y0;break;case Ud:case br:case _r:O=s_;break;case pg:O=Dh;break;case"scroll":O=t_;break;case"wheel":O=x_;break;case"copy":case"cut":case"paste":O=u_;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":O=G0;break}var H=(y&Cc)!==0;{var ee=!H&&a==="scroll",J=il(o,T,f.type,H,ee);if(J.length>0){var he=new O(T,F,null,f,p);n.push({event:he,listeners:J})}}}}nE(),Lh(),M_(),Q_(),__();function aE(n,a,o,f,p,y,w){rE(n,a,o,f,p,y);var T=(y&nh)===0;T&&($_(n,a,o,f,p),Ih(n,a,o,f,p),tE(n,a,o,f,p),k_(n,a,o,f,p))}var Zc=["abort","canplay","canplaythrough","durationchange","emptied","encrypted","ended","error","loadeddata","loadedmetadata","loadstart","pause","play","playing","progress","ratechange","resize","seeked","seeking","stalled","suspend","timeupdate","volumechange","waiting"],ju=new Set(["cancel","close","invalid","load","scroll","toggle"].concat(Zc));function zh(n,a,o){var f=n.type||"unknown-event";n.currentTarget=o,id(f,a,void 0,n),n.currentTarget=null}function iE(n,a,o){var f;if(o)for(var p=a.length-1;p>=0;p--){var y=a[p],w=y.instance,T=y.currentTarget,O=y.listener;if(w!==f&&n.isPropagationStopped())return;zh(n,O,T),f=w}else for(var F=0;F<a.length;F++){var H=a[F],ee=H.instance,J=H.currentTarget,he=H.listener;if(ee!==f&&n.isPropagationStopped())return;zh(n,he,J),f=ee}}function hg(n,a){for(var o=(a&Cc)!==0,f=0;f<n.length;f++){var p=n[f],y=p.event,w=p.listeners;iE(y,w,o)}n0()}function Bh(n,a,o,f,p){var y=hv(o),w=[];aE(w,n,f,o,y,a),hg(w,a)}function bn(n,a){ju.has(n)||u('Did not expect a listenToNonDelegatedEvent() call for "%s". This is a bug in React. Please file an issue.',n);var o=!1,f=Pt(a),p=Gn(n,o);f.has(p)||(hS(a,n,th,o),f.add(p))}function $l(n,a,o){ju.has(n)&&!a&&u('Did not expect a listenToNativeEvent() call for "%s" in the bubble phase. This is a bug in React. Please file an issue.',n);var f=0;a&&(f|=Cc),hS(o,n,f,a)}var Uh="_reactListening"+Math.random().toString(36).slice(2);function jd(n){if(!n[Uh]){n[Uh]=!0,Qe.forEach(function(o){o!=="selectionchange"&&(ju.has(o)||$l(o,!1,n),$l(o,!0,n))});var a=n.nodeType===Io?n:n.ownerDocument;a!==null&&(a[Uh]||(a[Uh]=!0,$l("selectionchange",!1,a)))}}function hS(n,a,o,f,p){var y=KC(n,a,o),w=void 0;ad&&(a==="touchstart"||a==="touchmove"||a==="wheel")&&(w=!0),n=n,f?w!==void 0?QC(n,a,y,w):ZC(n,a,y):w!==void 0?JC(n,a,y,w):B0(n,a,y)}function mS(n,a){return n===a||n.nodeType===Bn&&n.parentNode===a}function mg(n,a,o,f,p){var y=f;if((a&td)===0&&(a&th)===0){var w=p;if(f!==null){var T=f;e:for(;;){if(T===null)return;var O=T.tag;if(O===x||O===C){var F=T.stateNode.containerInfo;if(mS(F,w))break;if(O===C)for(var H=T.return;H!==null;){var ee=H.tag;if(ee===x||ee===C){var J=H.stateNode.containerInfo;if(mS(J,w))return}H=H.return}for(;F!==null;){var he=Pe(F);if(he===null)return;var me=he.tag;if(me===_||me===R){T=y=he;continue e}F=F.parentNode}}T=T.return}}}e0(function(){return Bh(n,a,o,y)})}function Qc(n,a,o){return{instance:n,listener:a,currentTarget:o}}function il(n,a,o,f,p,y){for(var w=a!==null?a+"Capture":null,T=f?w:a,O=[],F=n,H=null;F!==null;){var ee=F,J=ee.stateNode,he=ee.tag;if(he===_&&J!==null&&(H=J,T!==null)){var me=qs(F,T);me!=null&&O.push(Qc(F,me,H))}if(p)break;F=F.return}return O}function tn(n,a){for(var o=a+"Capture",f=[],p=n;p!==null;){var y=p,w=y.stateNode,T=y.tag;if(T===_&&w!==null){var O=w,F=qs(p,o);F!=null&&f.unshift(Qc(p,F,O));var H=qs(p,a);H!=null&&f.push(Qc(p,H,O))}p=p.return}return f}function $u(n){if(n===null)return null;do n=n.return;while(n&&n.tag!==_);return n||null}function oo(n,a){for(var o=n,f=a,p=0,y=o;y;y=$u(y))p++;for(var w=0,T=f;T;T=$u(T))w++;for(;p-w>0;)o=$u(o),p--;for(;w-p>0;)f=$u(f),w--;for(var O=p;O--;){if(o===f||f!==null&&o===f.alternate)return o;o=$u(o),f=$u(f)}return null}function vg(n,a,o,f,p){for(var y=a._reactName,w=[],T=o;T!==null&&T!==f;){var O=T,F=O.alternate,H=O.stateNode,ee=O.tag;if(F!==null&&F===f)break;if(ee===_&&H!==null){var J=H;if(p){var he=qs(T,y);he!=null&&w.unshift(Qc(T,he,J))}else if(!p){var me=qs(T,y);me!=null&&w.push(Qc(T,me,J))}}T=T.return}w.length!==0&&n.push({event:a,listeners:w})}function oE(n,a,o,f,p){var y=f&&p?oo(f,p):null;f!==null&&vg(n,a,f,y,!1),p!==null&&o!==null&&vg(n,o,p,y,!0)}function Gn(n,a){return n+"__"+(a?"capture":"bubble")}var xi=!1,Jc="dangerouslySetInnerHTML",Vu="suppressContentEditableWarning",Vl="suppressHydrationWarning",vS="autoFocus",Hu="children",Wu="style",jh="__html",gg,$h,$d,gS,Vh,yS,bS;gg={dialog:!0,webview:!0},$h=function(n,a){Kn(n,a),Yb(n,a),Kb(n,a,{registrationNameDependencies:vt,possibleRegistrationNames:Et})},yS=Yt&&!document.documentMode,$d=function(n,a,o){if(!xi){var f=Hh(o),p=Hh(a);p!==f&&(xi=!0,u("Prop `%s` did not match. Server: %s Client: %s",n,JSON.stringify(p),JSON.stringify(f)))}},gS=function(n){if(!xi){xi=!0;var a=[];n.forEach(function(o){a.push(o)}),u("Extra attributes from the server: %s",a)}},Vh=function(n,a){a===!1?u("Expected `%s` listener to be a function, instead got `false`.\n\nIf you used to conditionally omit it with %s={condition && value}, pass %s={condition ? value : undefined} instead.",n,n,n):u("Expected `%s` listener to be a function, instead got a value of `%s` type.",n,typeof a)},bS=function(n,a){var o=n.namespaceURI===us?n.ownerDocument.createElement(n.tagName):n.ownerDocument.createElementNS(n.namespaceURI,n.tagName);return o.innerHTML=a,o.innerHTML};var sE=/\r\n?/g,yg=/\u0000|\uFFFD/g;function Hh(n){An(n);var a=typeof n=="string"?n:""+n;return a.replace(sE,`
|
|
`).replace(yg,"")}function ef(n,a,o,f){var p=Hh(a),y=Hh(n);if(y!==p&&(f&&(xi||(xi=!0,u('Text content did not match. Server: "%s" Client: "%s"',y,p))),o&&oe))throw new Error("Text content does not match server-rendered HTML.")}function SS(n){return n.nodeType===Io?n:n.ownerDocument}function lE(){}function Wh(n){n.onclick=lE}function ia(n,a,o,f,p){for(var y in f)if(!!f.hasOwnProperty(y)){var w=f[y];if(y===Wu)w&&Object.freeze(w),re(a,w);else if(y===Jc){var T=w?w[jh]:void 0;T!=null&&Kp(a,T)}else if(y===Hu)if(typeof w=="string"){var O=n!=="textarea"||w!=="";O&&Zf(a,w)}else typeof w=="number"&&Zf(a,""+w);else y===Vu||y===Vl||y===vS||(vt.hasOwnProperty(y)?w!=null&&(typeof w!="function"&&Vh(y,w),y==="onScroll"&&bn("scroll",a)):w!=null&&Di(a,y,w,p))}}function wi(n,a,o,f){for(var p=0;p<a.length;p+=2){var y=a[p],w=a[p+1];y===Wu?re(n,w):y===Jc?Kp(n,w):y===Hu?Zf(n,w):Di(n,y,w,f)}}function uE(n,a,o,f){var p,y=SS(o),w,T=f;if(T===us&&(T=Xf(n)),T===us){if(p=Ws(n,a),!p&&n!==n.toLowerCase()&&u("<%s /> is using incorrect casing. Use PascalCase for React components, or lowercase for HTML elements.",n),n==="script"){var O=y.createElement("div");O.innerHTML="<script><\/script>";var F=O.firstChild;w=O.removeChild(F)}else if(typeof a.is=="string")w=y.createElement(n,{is:a.is});else if(w=y.createElement(n),n==="select"){var H=w;a.multiple?H.multiple=!0:a.size&&(H.size=a.size)}}else w=y.createElementNS(T,n);return T===us&&!p&&Object.prototype.toString.call(w)==="[object HTMLUnknownElement]"&&!ye.call(gg,n)&&(gg[n]=!0,u("The tag <%s> is unrecognized in this browser. If you meant to render a React component, start its name with an uppercase letter.",n)),w}function cE(n,a){return SS(a).createTextNode(n)}function fE(n,a,o,f){var p=Ws(a,o);$h(a,o);var y;switch(a){case"dialog":bn("cancel",n),bn("close",n),y=o;break;case"iframe":case"object":case"embed":bn("load",n),y=o;break;case"video":case"audio":for(var w=0;w<Zc.length;w++)bn(Zc[w],n);y=o;break;case"source":bn("error",n),y=o;break;case"img":case"image":case"link":bn("error",n),bn("load",n),y=o;break;case"details":bn("toggle",n),y=o;break;case"input":N(n,o),y=S(n,o),bn("invalid",n);break;case"option":pt(n,o),y=o;break;case"select":ls(n,o),y=gi(n,o),bn("invalid",n);break;case"textarea":cv(n,o),y=uv(n,o),bn("invalid",n);break;default:y=o}switch(qn(a,y),ia(a,n,f,y,p),a){case"input":Ia(n),te(n,o,!1);break;case"textarea":Ia(n),wu(n);break;case"option":Lt(n,o);break;case"select":Yf(n,o);break;default:typeof y.onClick=="function"&&Wh(n);break}}function xS(n,a,o,f,p){$h(a,f);var y=null,w,T;switch(a){case"input":w=S(n,o),T=S(n,f),y=[];break;case"select":w=gi(n,o),T=gi(n,f),y=[];break;case"textarea":w=uv(n,o),T=uv(n,f),y=[];break;default:w=o,T=f,typeof w.onClick!="function"&&typeof T.onClick=="function"&&Wh(n);break}qn(a,T);var O,F,H=null;for(O in w)if(!(T.hasOwnProperty(O)||!w.hasOwnProperty(O)||w[O]==null))if(O===Wu){var ee=w[O];for(F in ee)ee.hasOwnProperty(F)&&(H||(H={}),H[F]="")}else O===Jc||O===Hu||O===Vu||O===Vl||O===vS||(vt.hasOwnProperty(O)?y||(y=[]):(y=y||[]).push(O,null));for(O in T){var J=T[O],he=w?.[O];if(!(!T.hasOwnProperty(O)||J===he||J==null&&he==null))if(O===Wu)if(J&&Object.freeze(J),he){for(F in he)he.hasOwnProperty(F)&&(!J||!J.hasOwnProperty(F))&&(H||(H={}),H[F]="");for(F in J)J.hasOwnProperty(F)&&he[F]!==J[F]&&(H||(H={}),H[F]=J[F])}else H||(y||(y=[]),y.push(O,H)),H=J;else if(O===Jc){var me=J?J[jh]:void 0,_e=he?he[jh]:void 0;me!=null&&_e!==me&&(y=y||[]).push(O,me)}else O===Hu?(typeof J=="string"||typeof J=="number")&&(y=y||[]).push(O,""+J):O===Vu||O===Vl||(vt.hasOwnProperty(O)?(J!=null&&(typeof J!="function"&&Vh(O,J),O==="onScroll"&&bn("scroll",n)),!y&&he!==J&&(y=[])):(y=y||[]).push(O,J))}return H&&(ft(H,T[Wu]),(y=y||[]).push(Wu,H)),y}function dE(n,a,o,f,p){o==="input"&&p.type==="radio"&&p.name!=null&&V(n,p);var y=Ws(o,f),w=Ws(o,p);switch(wi(n,a,y,w),o){case"input":G(n,p);break;case"textarea":qf(n,p);break;case"select":lv(n,p);break}}function pE(n){{var a=n.toLowerCase();return Xp.hasOwnProperty(a)&&Xp[a]||null}}function hE(n,a,o,f,p,y,w){var T,O;switch(T=Ws(a,o),$h(a,o),a){case"dialog":bn("cancel",n),bn("close",n);break;case"iframe":case"object":case"embed":bn("load",n);break;case"video":case"audio":for(var F=0;F<Zc.length;F++)bn(Zc[F],n);break;case"source":bn("error",n);break;case"img":case"image":case"link":bn("error",n),bn("load",n);break;case"details":bn("toggle",n);break;case"input":N(n,o),bn("invalid",n);break;case"option":pt(n,o);break;case"select":ls(n,o),bn("invalid",n);break;case"textarea":cv(n,o),bn("invalid",n);break}qn(a,o);{O=new Set;for(var H=n.attributes,ee=0;ee<H.length;ee++){var J=H[ee].name.toLowerCase();switch(J){case"value":break;case"checked":break;case"selected":break;default:O.add(H[ee].name)}}}var he=null;for(var me in o)if(!!o.hasOwnProperty(me)){var _e=o[me];if(me===Hu)typeof _e=="string"?n.textContent!==_e&&(o[Vl]!==!0&&ef(n.textContent,_e,y,w),he=[Hu,_e]):typeof _e=="number"&&n.textContent!==""+_e&&(o[Vl]!==!0&&ef(n.textContent,_e,y,w),he=[Hu,""+_e]);else if(vt.hasOwnProperty(me))_e!=null&&(typeof _e!="function"&&Vh(me,_e),me==="onScroll"&&bn("scroll",n));else if(w&&!0&&typeof T=="boolean"){var ut=void 0,Ct=T&&Le?null:ca(me);if(o[Vl]!==!0){if(!(me===Vu||me===Vl||me==="value"||me==="checked"||me==="selected")){if(me===Jc){var yt=n.innerHTML,On=_e?_e[jh]:void 0;if(On!=null){var Sn=bS(n,On);Sn!==yt&&$d(me,yt,Sn)}}else if(me===Wu){if(O.delete(me),yS){var le=xc(_e);ut=n.getAttribute("style"),le!==ut&&$d(me,ut,le)}}else if(T&&!Le)O.delete(me.toLowerCase()),ut=Aa(n,me,_e),_e!==ut&&$d(me,ut,_e);else if(!kn(me,Ct,T)&&!Tn(me,_e,Ct,T)){var Ee=!1;if(Ct!==null)O.delete(Ct.attributeName),ut=cr(n,me,_e,Ct);else{var ue=f;if(ue===us&&(ue=Xf(a)),ue===us)O.delete(me.toLowerCase());else{var He=pE(me);He!==null&&He!==me&&(Ee=!0,O.delete(He)),O.delete(me)}ut=Aa(n,me,_e)}var ct=Le;!ct&&_e!==ut&&!Ee&&$d(me,ut,_e)}}}}}switch(w&&O.size>0&&o[Vl]!==!0&&gS(O),a){case"input":Ia(n),te(n,o,!0);break;case"textarea":Ia(n),wu(n);break;case"select":case"option":break;default:typeof o.onClick=="function"&&Wh(n);break}return he}function wS(n,a,o){var f=n.nodeValue!==a;return f}function bg(n,a){{if(xi)return;xi=!0,u("Did not expect server HTML to contain a <%s> in <%s>.",a.nodeName.toLowerCase(),n.nodeName.toLowerCase())}}function Sg(n,a){{if(xi)return;xi=!0,u('Did not expect server HTML to contain the text node "%s" in <%s>.',a.nodeValue,n.nodeName.toLowerCase())}}function xg(n,a,o){{if(xi)return;xi=!0,u("Expected server HTML to contain a matching <%s> in <%s>.",a,n.nodeName.toLowerCase())}}function Gh(n,a){{if(a===""||xi)return;xi=!0,u('Expected server HTML to contain a matching text node for "%s" in <%s>.',a,n.nodeName.toLowerCase())}}function CS(n,a,o){switch(a){case"input":Fe(n,o);return;case"textarea":fC(n,o);return;case"select":cC(n,o);return}}var Vd=function(){},Hd=function(){};{var mE=["address","applet","area","article","aside","base","basefont","bgsound","blockquote","body","br","button","caption","center","col","colgroup","dd","details","dir","div","dl","dt","embed","fieldset","figcaption","figure","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","iframe","img","input","isindex","li","link","listing","main","marquee","menu","menuitem","meta","nav","noembed","noframes","noscript","object","ol","p","param","plaintext","pre","script","section","select","source","style","summary","table","tbody","td","template","textarea","tfoot","th","thead","title","tr","track","ul","wbr","xmp"],_S=["applet","caption","html","table","td","th","marquee","object","template","foreignObject","desc","title"],tf=_S.concat(["button"]),vE=["dd","dt","li","option","optgroup","p","rp","rt"],ES={current:null,formTag:null,aTagInScope:null,buttonTagInScope:null,nobrTagInScope:null,pTagInButtonScope:null,listItemTagAutoclosing:null,dlItemTagAutoclosing:null};Hd=function(n,a){var o=Zt({},n||ES),f={tag:a};return _S.indexOf(a)!==-1&&(o.aTagInScope=null,o.buttonTagInScope=null,o.nobrTagInScope=null),tf.indexOf(a)!==-1&&(o.pTagInButtonScope=null),mE.indexOf(a)!==-1&&a!=="address"&&a!=="div"&&a!=="p"&&(o.listItemTagAutoclosing=null,o.dlItemTagAutoclosing=null),o.current=f,a==="form"&&(o.formTag=f),a==="a"&&(o.aTagInScope=f),a==="button"&&(o.buttonTagInScope=f),a==="nobr"&&(o.nobrTagInScope=f),a==="p"&&(o.pTagInButtonScope=f),a==="li"&&(o.listItemTagAutoclosing=f),(a==="dd"||a==="dt")&&(o.dlItemTagAutoclosing=f),o};var gE=function(n,a){switch(a){case"select":return n==="option"||n==="optgroup"||n==="#text";case"optgroup":return n==="option"||n==="#text";case"option":return n==="#text";case"tr":return n==="th"||n==="td"||n==="style"||n==="script"||n==="template";case"tbody":case"thead":case"tfoot":return n==="tr"||n==="style"||n==="script"||n==="template";case"colgroup":return n==="col"||n==="template";case"table":return n==="caption"||n==="colgroup"||n==="tbody"||n==="tfoot"||n==="thead"||n==="style"||n==="script"||n==="template";case"head":return n==="base"||n==="basefont"||n==="bgsound"||n==="link"||n==="meta"||n==="title"||n==="noscript"||n==="noframes"||n==="style"||n==="script"||n==="template";case"html":return n==="head"||n==="body"||n==="frameset";case"frameset":return n==="frame";case"#document":return n==="html"}switch(n){case"h1":case"h2":case"h3":case"h4":case"h5":case"h6":return a!=="h1"&&a!=="h2"&&a!=="h3"&&a!=="h4"&&a!=="h5"&&a!=="h6";case"rp":case"rt":return vE.indexOf(a)===-1;case"body":case"caption":case"col":case"colgroup":case"frameset":case"frame":case"head":case"html":case"tbody":case"td":case"tfoot":case"th":case"thead":case"tr":return a==null}return!0},yE=function(n,a){switch(n){case"address":case"article":case"aside":case"blockquote":case"center":case"details":case"dialog":case"dir":case"div":case"dl":case"fieldset":case"figcaption":case"figure":case"footer":case"header":case"hgroup":case"main":case"menu":case"nav":case"ol":case"p":case"section":case"summary":case"ul":case"pre":case"listing":case"table":case"hr":case"xmp":case"h1":case"h2":case"h3":case"h4":case"h5":case"h6":return a.pTagInButtonScope;case"form":return a.formTag||a.pTagInButtonScope;case"li":return a.listItemTagAutoclosing;case"dd":case"dt":return a.dlItemTagAutoclosing;case"button":return a.buttonTagInScope;case"a":return a.aTagInScope;case"nobr":return a.nobrTagInScope}return null},TS={};Vd=function(n,a,o){o=o||ES;var f=o.current,p=f&&f.tag;a!=null&&(n!=null&&u("validateDOMNesting: when childText is passed, childTag should be null"),n="#text");var y=gE(n,p)?null:f,w=y?null:yE(n,o),T=y||w;if(!!T){var O=T.tag,F=!!y+"|"+n+"|"+O;if(!TS[F]){TS[F]=!0;var H=n,ee="";if(n==="#text"?/\S/.test(a)?H="Text nodes":(H="Whitespace text nodes",ee=" Make sure you don't have any extra whitespace between tags on each line of your source code."):H="<"+n+">",y){var J="";O==="table"&&n==="tr"&&(J+=" Add a <tbody>, <thead> or <tfoot> to your code to match the DOM tree generated by the browser."),u("validateDOMNesting(...): %s cannot appear as a child of <%s>.%s%s",H,O,ee,J)}else u("validateDOMNesting(...): %s cannot appear as a descendant of <%s>.",H,O)}}}}var Wd="suppressHydrationWarning",Gd="$",Yh="/$",Yd="$?",qd="$!",bE="style",wg=null,Cg=null;function SE(n){var a,o,f=n.nodeType;switch(f){case Io:case Cu:{a=f===Io?"#document":"#fragment";var p=n.documentElement;o=p?p.namespaceURI:qp(null,"");break}default:{var y=f===Bn?n.parentNode:n,w=y.namespaceURI||null;a=y.tagName,o=qp(w,a);break}}{var T=a.toLowerCase(),O=Hd(null,T);return{namespace:o,ancestorInfo:O}}}function xE(n,a,o){{var f=n,p=qp(f.namespace,a),y=Hd(f.ancestorInfo,a);return{namespace:p,ancestorInfo:y}}}function tD(n){return n}function wE(n){wg=qC(),Cg=Bo();var a=null;return I0(!1),a}function CE(n){X_(Cg),I0(wg),wg=null,Cg=null}function _E(n,a,o,f,p){var y;{var w=f;if(Vd(n,null,w.ancestorInfo),typeof a.children=="string"||typeof a.children=="number"){var T=""+a.children,O=Hd(w.ancestorInfo,n);Vd(null,T,O)}y=w.namespace}var F=uE(n,a,o,y);return Z(p,F),cn(F,a),F}function EE(n,a){n.appendChild(a)}function TE(n,a,o,f,p){switch(fE(n,a,o,f),a){case"button":case"input":case"select":case"textarea":return!!o.autoFocus;case"img":return!0;default:return!1}}function NE(n,a,o,f,p,y){{var w=y;if(typeof f.children!=typeof o.children&&(typeof f.children=="string"||typeof f.children=="number")){var T=""+f.children,O=Hd(w.ancestorInfo,a);Vd(null,T,O)}}return xS(n,a,o,f)}function _g(n,a){return n==="textarea"||n==="noscript"||typeof a.children=="string"||typeof a.children=="number"||typeof a.dangerouslySetInnerHTML=="object"&&a.dangerouslySetInnerHTML!==null&&a.dangerouslySetInnerHTML.__html!=null}function RE(n,a,o,f){{var p=o;Vd(null,n,p.ancestorInfo)}var y=cE(n,a);return Z(f,y),y}function OE(){var n=window.event;return n===void 0?yr:z0(n.type)}var Eg=typeof setTimeout=="function"?setTimeout:void 0,AE=typeof clearTimeout=="function"?clearTimeout:void 0,Tg=-1,NS=typeof Promise=="function"?Promise:void 0,kE=typeof queueMicrotask=="function"?queueMicrotask:typeof NS<"u"?function(n){return NS.resolve(null).then(n).catch(DE)}:Eg;function DE(n){setTimeout(function(){throw n})}function PE(n,a,o,f){switch(a){case"button":case"input":case"select":case"textarea":o.autoFocus&&n.focus();return;case"img":{o.src&&(n.src=o.src);return}}}function Ng(n,a,o,f,p,y){dE(n,a,o,f,p),cn(n,p)}function Rg(n){Zf(n,"")}function RS(n,a,o){n.nodeValue=o}function ME(n,a){n.appendChild(a)}function IE(n,a){var o;n.nodeType===Bn?(o=n.parentNode,o.insertBefore(a,n)):(o=n,o.appendChild(a));var f=n._reactRootContainer;f==null&&o.onclick===null&&Wh(o)}function LE(n,a,o){n.insertBefore(a,o)}function Og(n,a,o){n.nodeType===Bn?n.parentNode.insertBefore(a,o):n.insertBefore(a,o)}function FE(n,a){n.removeChild(a)}function zE(n,a){n.nodeType===Bn?n.parentNode.removeChild(a):n.removeChild(a)}function Ag(n,a){var o=a,f=0;do{var p=o.nextSibling;if(n.removeChild(o),p&&p.nodeType===Bn){var y=p.data;if(y===Yh)if(f===0){n.removeChild(p),Rd(a);return}else f--;else(y===Gd||y===Yd||y===qd)&&f++}o=p}while(o);Rd(a)}function Ci(n,a){n.nodeType===Bn?Ag(n.parentNode,a):n.nodeType===yi&&Ag(n,a),Rd(n)}function kg(n){n=n;var a=n.style;typeof a.setProperty=="function"?a.setProperty("display","none","important"):a.display="none"}function BE(n){n.nodeValue=""}function UE(n,a){n=n;var o=a[bE],f=o!=null&&o.hasOwnProperty("display")?o.display:null;n.style.display=fv("display",f)}function jE(n,a){n.nodeValue=a}function $E(n){n.nodeType===yi?n.textContent="":n.nodeType===Io&&n.documentElement&&n.removeChild(n.documentElement)}function Dg(n,a,o){return n.nodeType!==yi||a.toLowerCase()!==n.nodeName.toLowerCase()?null:n}function VE(n,a){return a===""||n.nodeType!==cs?null:n}function Pg(n){return n.nodeType!==Bn?null:n}function OS(n){return n.data===Yd}function Mg(n){return n.data===qd}function HE(n){var a=n.nextSibling&&n.nextSibling.dataset,o,f,p;return a&&(o=a.dgst,f=a.msg,p=a.stck),{message:f,digest:o,stack:p}}function WE(n,a){n._reactRetry=a}function Kd(n){for(;n!=null;n=n.nextSibling){var a=n.nodeType;if(a===yi||a===cs)break;if(a===Bn){var o=n.data;if(o===Gd||o===qd||o===Yd)break;if(o===Yh)return null}}return n}function Xd(n){return Kd(n.nextSibling)}function GE(n){return Kd(n.firstChild)}function YE(n){return Kd(n.firstChild)}function Ig(n){return Kd(n.nextSibling)}function Lg(n,a,o,f,p,y,w){Z(y,n),cn(n,o);var T;{var O=p;T=O.namespace}var F=(y.mode&yn)!==Rt;return hE(n,a,o,T,f,F,w)}function qE(n,a,o,f){return Z(o,n),o.mode&yn,wS(n,a)}function KE(n,a){Z(a,n)}function XE(n){for(var a=n.nextSibling,o=0;a;){if(a.nodeType===Bn){var f=a.data;if(f===Yh){if(o===0)return Xd(a);o--}else(f===Gd||f===qd||f===Yd)&&o++}a=a.nextSibling}return null}function AS(n){for(var a=n.previousSibling,o=0;a;){if(a.nodeType===Bn){var f=a.data;if(f===Gd||f===qd||f===Yd){if(o===0)return a;o--}else f===Yh&&o++}a=a.previousSibling}return null}function ZE(n){Rd(n)}function QE(n){Rd(n)}function JE(n){return n!=="head"&&n!=="body"}function eT(n,a,o,f){var p=!0;ef(a.nodeValue,o,f,p)}function tT(n,a,o,f,p,y){if(a[Wd]!==!0){var w=!0;ef(f.nodeValue,p,y,w)}}function nT(n,a){a.nodeType===yi?bg(n,a):a.nodeType===Bn||Sg(n,a)}function rT(n,a){{var o=n.parentNode;o!==null&&(a.nodeType===yi?bg(o,a):a.nodeType===Bn||Sg(o,a))}}function aT(n,a,o,f,p){(p||a[Wd]!==!0)&&(f.nodeType===yi?bg(o,f):f.nodeType===Bn||Sg(o,f))}function iT(n,a,o){xg(n,a)}function oT(n,a){Gh(n,a)}function sT(n,a,o){{var f=n.parentNode;f!==null&&xg(f,a)}}function lT(n,a){{var o=n.parentNode;o!==null&&Gh(o,a)}}function uT(n,a,o,f,p,y){(y||a[Wd]!==!0)&&xg(o,f)}function cT(n,a,o,f,p){(p||a[Wd]!==!0)&&Gh(o,f)}function fT(n){u("An error occurred during hydration. The server HTML was replaced with client content in <%s>.",n.nodeName.toLowerCase())}function dT(n){jd(n)}var nf=Math.random().toString(36).slice(2),l="__reactFiber$"+nf,d="__reactProps$"+nf,g="__reactContainer$"+nf,E="__reactEvents$"+nf,P="__reactListeners$"+nf,U="__reactHandles$"+nf;function Y(n){delete n[l],delete n[d],delete n[E],delete n[P],delete n[U]}function Z(n,a){a[l]=n}function ae(n,a){a[g]=n}function De(n){n[g]=null}function Oe(n){return!!n[g]}function Pe(n){var a=n[l];if(a)return a;for(var o=n.parentNode;o;){if(a=o[g]||o[l],a){var f=a.alternate;if(a.child!==null||f!==null&&f.child!==null)for(var p=AS(n);p!==null;){var y=p[l];if(y)return y;p=AS(p)}return a}n=o,o=n.parentNode}return null}function Ke(n){var a=n[l]||n[g];return a&&(a.tag===_||a.tag===R||a.tag===$||a.tag===x)?a:null}function dt(n){if(n.tag===_||n.tag===R)return n.stateNode;throw new Error("getNodeFromInstance: Invalid argument.")}function At(n){return n[d]||null}function cn(n,a){n[d]=a}function Pt(n){var a=n[E];return a===void 0&&(a=n[E]=new Set),a}var vn={},En=r.ReactDebugCurrentFrame;function za(n){if(n){var a=n._owner,o=ma(n.type,n._source,a?a.type:null);En.setExtraStackFrame(o)}else En.setExtraStackFrame(null)}function dr(n,a,o,f,p){{var y=Function.call.bind(ye);for(var w in n)if(y(n,w)){var T=void 0;try{if(typeof n[w]!="function"){var O=Error((f||"React class")+": "+o+" type `"+w+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof n[w]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw O.name="Invariant Violation",O}T=n[w](a,w,f,o,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(F){T=F}T&&!(T instanceof Error)&&(za(p),u("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).",f||"React class",o,w,typeof T),za(null)),T instanceof Error&&!(T.message in vn)&&(vn[T.message]=!0,za(p),u("Failed %s type: %s",o,T.message),za(null))}}}var Ka=[],Sr;Sr=[];var Yr=-1;function Ba(n){return{current:n}}function ba(n,a){if(Yr<0){u("Unexpected pop.");return}a!==Sr[Yr]&&u("Unexpected Fiber popped."),n.current=Ka[Yr],Ka[Yr]=null,Sr[Yr]=null,Yr--}function _i(n,a,o){Yr++,Ka[Yr]=n.current,Sr[Yr]=o,n.current=a}var pT;pT={};var Uo={};Object.freeze(Uo);var Gu=Ba(Uo),Hl=Ba(!1),hT=Uo;function qh(n,a,o){return o&&Wl(a)?hT:Gu.current}function nD(n,a,o){{var f=n.stateNode;f.__reactInternalMemoizedUnmaskedChildContext=a,f.__reactInternalMemoizedMaskedChildContext=o}}function Kh(n,a){{var o=n.type,f=o.contextTypes;if(!f)return Uo;var p=n.stateNode;if(p&&p.__reactInternalMemoizedUnmaskedChildContext===a)return p.__reactInternalMemoizedMaskedChildContext;var y={};for(var w in f)y[w]=a[w];{var T=It(n)||"Unknown";dr(f,y,"context",T)}return p&&nD(n,a,y),y}}function kS(){return Hl.current}function Wl(n){{var a=n.childContextTypes;return a!=null}}function DS(n){ba(Hl,n),ba(Gu,n)}function mT(n){ba(Hl,n),ba(Gu,n)}function rD(n,a,o){{if(Gu.current!==Uo)throw new Error("Unexpected context found on stack. This error is likely caused by a bug in React. Please file an issue.");_i(Gu,a,n),_i(Hl,o,n)}}function aD(n,a,o){{var f=n.stateNode,p=a.childContextTypes;if(typeof f.getChildContext!="function"){{var y=It(n)||"Unknown";pT[y]||(pT[y]=!0,u("%s.childContextTypes is specified but there is no getChildContext() method on the instance. You can either define getChildContext() on %s or remove childContextTypes from it.",y,y))}return o}var w=f.getChildContext();for(var T in w)if(!(T in p))throw new Error((It(n)||"Unknown")+'.getChildContext(): key "'+T+'" is not defined in childContextTypes.');{var O=It(n)||"Unknown";dr(p,w,"child context",O)}return Zt({},o,w)}}function PS(n){{var a=n.stateNode,o=a&&a.__reactInternalMemoizedMergedChildContext||Uo;return hT=Gu.current,_i(Gu,o,n),_i(Hl,Hl.current,n),!0}}function iD(n,a,o){{var f=n.stateNode;if(!f)throw new Error("Expected to have an instance by this point. This error is likely caused by a bug in React. Please file an issue.");if(o){var p=aD(n,a,hT);f.__reactInternalMemoizedMergedChildContext=p,ba(Hl,n),ba(Gu,n),_i(Gu,p,n),_i(Hl,o,n)}else ba(Hl,n),_i(Hl,o,n)}}function XU(n){{if(!ud(n)||n.tag!==v)throw new Error("Expected subtree parent to be a mounted class component. This error is likely caused by a bug in React. Please file an issue.");var a=n;do{switch(a.tag){case x:return a.stateNode.context;case v:{var o=a.type;if(Wl(o))return a.stateNode.__reactInternalMemoizedMergedChildContext;break}}a=a.return}while(a!==null);throw new Error("Found unexpected detached subtree parent. This error is likely caused by a bug in React. Please file an issue.")}}var rf=0,MS=1,Yu=null,vT=!1,gT=!1;function oD(n){Yu===null?Yu=[n]:Yu.push(n)}function ZU(n){vT=!0,oD(n)}function sD(){vT&&af()}function af(){if(!gT&&Yu!==null){gT=!0;var n=0,a=ao();try{var o=!0,f=Yu;for(ra(Ya);n<f.length;n++){var p=f[n];do p=p(o);while(p!==null)}Yu=null,vT=!1}catch(y){throw Yu!==null&&(Yu=Yu.slice(n+1)),Fi(cd,af),y}finally{ra(a),gT=!1}}return null}var Xh=[],Zh=0,IS=null,LS=0,_s=[],Es=0,Zd=null,qu=1,Ku="";function QU(n){return Jd(),(n.flags&r0)!==kt}function JU(n){return Jd(),LS}function ej(){var n=Ku,a=qu,o=a&~tj(a);return o.toString(32)+n}function Qd(n,a){Jd(),Xh[Zh++]=LS,Xh[Zh++]=IS,IS=n,LS=a}function lD(n,a,o){Jd(),_s[Es++]=qu,_s[Es++]=Ku,_s[Es++]=Zd,Zd=n;var f=qu,p=Ku,y=FS(f)-1,w=f&~(1<<y),T=o+1,O=FS(a)+y;if(O>30){var F=y-y%5,H=(1<<F)-1,ee=(w&H).toString(32),J=w>>F,he=y-F,me=FS(a)+he,_e=T<<he,ut=_e|J,Ct=ee+p;qu=1<<me|ut,Ku=Ct}else{var yt=T<<y,On=yt|w,Sn=p;qu=1<<O|On,Ku=Sn}}function yT(n){Jd();var a=n.return;if(a!==null){var o=1,f=0;Qd(n,o),lD(n,o,f)}}function FS(n){return 32-S0(n)}function tj(n){return 1<<FS(n)-1}function bT(n){for(;n===IS;)IS=Xh[--Zh],Xh[Zh]=null,LS=Xh[--Zh],Xh[Zh]=null;for(;n===Zd;)Zd=_s[--Es],_s[Es]=null,Ku=_s[--Es],_s[Es]=null,qu=_s[--Es],_s[Es]=null}function nj(){return Jd(),Zd!==null?{id:qu,overflow:Ku}:null}function rj(n,a){Jd(),_s[Es++]=qu,_s[Es++]=Ku,_s[Es++]=Zd,qu=a.id,Ku=a.overflow,Zd=n}function Jd(){Za()||u("Expected to be hydrating. This is a bug in React. Please file an issue.")}var Xa=null,Ts=null,ol=!1,ep=!1,of=null;function aj(){ol&&u("We should not be hydrating here. This is a bug in React. Please file a bug.")}function uD(){ep=!0}function ij(){return ep}function oj(n){var a=n.stateNode.containerInfo;return Ts=YE(a),Xa=n,ol=!0,of=null,ep=!1,!0}function sj(n,a,o){return Ts=Ig(a),Xa=n,ol=!0,of=null,ep=!1,o!==null&&rj(n,o),!0}function cD(n,a){switch(n.tag){case x:{nT(n.stateNode.containerInfo,a);break}case _:{var o=(n.mode&yn)!==Rt;aT(n.type,n.memoizedProps,n.stateNode,a,o);break}case $:{var f=n.memoizedState;f.dehydrated!==null&&rT(f.dehydrated,a);break}}}function fD(n,a){cD(n,a);var o=cV();o.stateNode=a,o.return=n;var f=n.deletions;f===null?(n.deletions=[o],n.flags|=Tu):f.push(o)}function ST(n,a){{if(ep)return;switch(n.tag){case x:{var o=n.stateNode.containerInfo;switch(a.tag){case _:var f=a.type;a.pendingProps,iT(o,f);break;case R:var p=a.pendingProps;oT(o,p);break}break}case _:{var y=n.type,w=n.memoizedProps,T=n.stateNode;switch(a.tag){case _:{var O=a.type,F=a.pendingProps,H=(n.mode&yn)!==Rt;uT(y,w,T,O,F,H);break}case R:{var ee=a.pendingProps,J=(n.mode&yn)!==Rt;cT(y,w,T,ee,J);break}}break}case $:{var he=n.memoizedState,me=he.dehydrated;if(me!==null)switch(a.tag){case _:var _e=a.type;a.pendingProps,sT(me,_e);break;case R:var ut=a.pendingProps;lT(me,ut);break}break}default:return}}}function dD(n,a){a.flags=a.flags&~Zs|zr,ST(n,a)}function pD(n,a){switch(n.tag){case _:{var o=n.type;n.pendingProps;var f=Dg(a,o);return f!==null?(n.stateNode=f,Xa=n,Ts=GE(f),!0):!1}case R:{var p=n.pendingProps,y=VE(a,p);return y!==null?(n.stateNode=y,Xa=n,Ts=null,!0):!1}case $:{var w=Pg(a);if(w!==null){var T={dehydrated:w,treeContext:nj(),retryLane:Ui};n.memoizedState=T;var O=fV(w);return O.return=n,n.child=O,Xa=n,Ts=null,!0}return!1}default:return!1}}function xT(n){return(n.mode&yn)!==Rt&&(n.flags&In)===kt}function wT(n){throw new Error("Hydration failed because the initial UI does not match what was rendered on the server.")}function CT(n){if(!!ol){var a=Ts;if(!a){xT(n)&&(ST(Xa,n),wT()),dD(Xa,n),ol=!1,Xa=n;return}var o=a;if(!pD(n,a)){xT(n)&&(ST(Xa,n),wT()),a=Xd(o);var f=Xa;if(!a||!pD(n,a)){dD(Xa,n),ol=!1,Xa=n;return}fD(f,o)}}}function lj(n,a,o){var f=n.stateNode,p=!ep,y=Lg(f,n.type,n.memoizedProps,a,o,n,p);return n.updateQueue=y,y!==null}function uj(n){var a=n.stateNode,o=n.memoizedProps,f=qE(a,o,n);if(f){var p=Xa;if(p!==null)switch(p.tag){case x:{var y=p.stateNode.containerInfo,w=(p.mode&yn)!==Rt;eT(y,a,o,w);break}case _:{var T=p.type,O=p.memoizedProps,F=p.stateNode,H=(p.mode&yn)!==Rt;tT(T,O,F,a,o,H);break}}}return f}function cj(n){var a=n.memoizedState,o=a!==null?a.dehydrated:null;if(!o)throw new Error("Expected to have a hydrated suspense instance. This error is likely caused by a bug in React. Please file an issue.");KE(o,n)}function fj(n){var a=n.memoizedState,o=a!==null?a.dehydrated:null;if(!o)throw new Error("Expected to have a hydrated suspense instance. This error is likely caused by a bug in React. Please file an issue.");return XE(o)}function hD(n){for(var a=n.return;a!==null&&a.tag!==_&&a.tag!==x&&a.tag!==$;)a=a.return;Xa=a}function zS(n){if(n!==Xa)return!1;if(!ol)return hD(n),ol=!0,!1;if(n.tag!==x&&(n.tag!==_||JE(n.type)&&!_g(n.type,n.memoizedProps))){var a=Ts;if(a)if(xT(n))mD(n),wT();else for(;a;)fD(n,a),a=Xd(a)}return hD(n),n.tag===$?Ts=fj(n):Ts=Xa?Xd(n.stateNode):null,!0}function dj(){return ol&&Ts!==null}function mD(n){for(var a=Ts;a;)cD(n,a),a=Xd(a)}function Qh(){Xa=null,Ts=null,ol=!1,ep=!1}function vD(){of!==null&&(cM(of),of=null)}function Za(){return ol}function _T(n){of===null?of=[n]:of.push(n)}var pj=r.ReactCurrentBatchConfig,hj=null;function mj(){return pj.transition}var sl={recordUnsafeLifecycleWarnings:function(n,a){},flushPendingUnsafeLifecycleWarnings:function(){},recordLegacyContextWarning:function(n,a){},flushLegacyContextWarning:function(){},discardPendingWarnings:function(){}};{var vj=function(n){for(var a=null,o=n;o!==null;)o.mode&Dr&&(a=o),o=o.return;return a},tp=function(n){var a=[];return n.forEach(function(o){a.push(o)}),a.sort().join(", ")},Fg=[],zg=[],Bg=[],Ug=[],jg=[],$g=[],np=new Set;sl.recordUnsafeLifecycleWarnings=function(n,a){np.has(n.type)||(typeof a.componentWillMount=="function"&&a.componentWillMount.__suppressDeprecationWarning!==!0&&Fg.push(n),n.mode&Dr&&typeof a.UNSAFE_componentWillMount=="function"&&zg.push(n),typeof a.componentWillReceiveProps=="function"&&a.componentWillReceiveProps.__suppressDeprecationWarning!==!0&&Bg.push(n),n.mode&Dr&&typeof a.UNSAFE_componentWillReceiveProps=="function"&&Ug.push(n),typeof a.componentWillUpdate=="function"&&a.componentWillUpdate.__suppressDeprecationWarning!==!0&&jg.push(n),n.mode&Dr&&typeof a.UNSAFE_componentWillUpdate=="function"&&$g.push(n))},sl.flushPendingUnsafeLifecycleWarnings=function(){var n=new Set;Fg.length>0&&(Fg.forEach(function(J){n.add(It(J)||"Component"),np.add(J.type)}),Fg=[]);var a=new Set;zg.length>0&&(zg.forEach(function(J){a.add(It(J)||"Component"),np.add(J.type)}),zg=[]);var o=new Set;Bg.length>0&&(Bg.forEach(function(J){o.add(It(J)||"Component"),np.add(J.type)}),Bg=[]);var f=new Set;Ug.length>0&&(Ug.forEach(function(J){f.add(It(J)||"Component"),np.add(J.type)}),Ug=[]);var p=new Set;jg.length>0&&(jg.forEach(function(J){p.add(It(J)||"Component"),np.add(J.type)}),jg=[]);var y=new Set;if($g.length>0&&($g.forEach(function(J){y.add(It(J)||"Component"),np.add(J.type)}),$g=[]),a.size>0){var w=tp(a);u(`Using UNSAFE_componentWillMount in strict mode is not recommended and may indicate bugs in your code. See https://reactjs.org/link/unsafe-component-lifecycles for details.
|
|
|
|
* Move code with side effects to componentDidMount, and set initial state in the constructor.
|
|
|
|
Please update the following components: %s`,w)}if(f.size>0){var T=tp(f);u(`Using UNSAFE_componentWillReceiveProps in strict mode is not recommended and may indicate bugs in your code. See https://reactjs.org/link/unsafe-component-lifecycles for details.
|
|
|
|
* Move data fetching code or side effects to componentDidUpdate.
|
|
* If you're updating state whenever props change, refactor your code to use memoization techniques or move it to static getDerivedStateFromProps. Learn more at: https://reactjs.org/link/derived-state
|
|
|
|
Please update the following components: %s`,T)}if(y.size>0){var O=tp(y);u(`Using UNSAFE_componentWillUpdate in strict mode is not recommended and may indicate bugs in your code. See https://reactjs.org/link/unsafe-component-lifecycles for details.
|
|
|
|
* Move data fetching code or side effects to componentDidUpdate.
|
|
|
|
Please update the following components: %s`,O)}if(n.size>0){var F=tp(n);c(`componentWillMount has been renamed, and is not recommended for use. See https://reactjs.org/link/unsafe-component-lifecycles for details.
|
|
|
|
* Move code with side effects to componentDidMount, and set initial state in the constructor.
|
|
* Rename componentWillMount to UNSAFE_componentWillMount to suppress this warning in non-strict mode. In React 18.x, only the UNSAFE_ name will work. To rename all deprecated lifecycles to their new names, you can run \`npx react-codemod rename-unsafe-lifecycles\` in your project source folder.
|
|
|
|
Please update the following components: %s`,F)}if(o.size>0){var H=tp(o);c(`componentWillReceiveProps has been renamed, and is not recommended for use. See https://reactjs.org/link/unsafe-component-lifecycles for details.
|
|
|
|
* Move data fetching code or side effects to componentDidUpdate.
|
|
* If you're updating state whenever props change, refactor your code to use memoization techniques or move it to static getDerivedStateFromProps. Learn more at: https://reactjs.org/link/derived-state
|
|
* Rename componentWillReceiveProps to UNSAFE_componentWillReceiveProps to suppress this warning in non-strict mode. In React 18.x, only the UNSAFE_ name will work. To rename all deprecated lifecycles to their new names, you can run \`npx react-codemod rename-unsafe-lifecycles\` in your project source folder.
|
|
|
|
Please update the following components: %s`,H)}if(p.size>0){var ee=tp(p);c(`componentWillUpdate has been renamed, and is not recommended for use. See https://reactjs.org/link/unsafe-component-lifecycles for details.
|
|
|
|
* Move data fetching code or side effects to componentDidUpdate.
|
|
* Rename componentWillUpdate to UNSAFE_componentWillUpdate to suppress this warning in non-strict mode. In React 18.x, only the UNSAFE_ name will work. To rename all deprecated lifecycles to their new names, you can run \`npx react-codemod rename-unsafe-lifecycles\` in your project source folder.
|
|
|
|
Please update the following components: %s`,ee)}};var BS=new Map,gD=new Set;sl.recordLegacyContextWarning=function(n,a){var o=vj(n);if(o===null){u("Expected to find a StrictMode component in a strict mode tree. This error is likely caused by a bug in React. Please file an issue.");return}if(!gD.has(n.type)){var f=BS.get(o);(n.type.contextTypes!=null||n.type.childContextTypes!=null||a!==null&&typeof a.getChildContext=="function")&&(f===void 0&&(f=[],BS.set(o,f)),f.push(n))}},sl.flushLegacyContextWarning=function(){BS.forEach(function(n,a){if(n.length!==0){var o=n[0],f=new Set;n.forEach(function(y){f.add(It(y)||"Component"),gD.add(y.type)});var p=tp(f);try{er(o),u(`Legacy context API has been detected within a strict-mode tree.
|
|
|
|
The old API will be supported in all 16.x releases, but applications using it should migrate to the new version.
|
|
|
|
Please update the following components: %s
|
|
|
|
Learn more about this warning here: https://reactjs.org/link/legacy-context`,p)}finally{wr()}}})},sl.discardPendingWarnings=function(){Fg=[],zg=[],Bg=[],Ug=[],jg=[],$g=[],BS=new Map}}function ll(n,a){if(n&&n.defaultProps){var o=Zt({},a),f=n.defaultProps;for(var p in f)o[p]===void 0&&(o[p]=f[p]);return o}return a}var ET=Ba(null),TT;TT={};var US=null,Jh=null,NT=null,jS=!1;function $S(){US=null,Jh=null,NT=null,jS=!1}function yD(){jS=!0}function bD(){jS=!1}function SD(n,a,o){_i(ET,a._currentValue,n),a._currentValue=o,a._currentRenderer!==void 0&&a._currentRenderer!==null&&a._currentRenderer!==TT&&u("Detected multiple renderers concurrently rendering the same context provider. This is currently unsupported."),a._currentRenderer=TT}function RT(n,a){var o=ET.current;ba(ET,a),n._currentValue=o}function OT(n,a,o){for(var f=n;f!==null;){var p=f.alternate;if(Lu(f.childLanes,a)?p!==null&&!Lu(p.childLanes,a)&&(p.childLanes=un(p.childLanes,a)):(f.childLanes=un(f.childLanes,a),p!==null&&(p.childLanes=un(p.childLanes,a))),f===o)break;f=f.return}f!==o&&u("Expected to find the propagation root when scheduling context work. This error is likely caused by a bug in React. Please file an issue.")}function gj(n,a,o){yj(n,a,o)}function yj(n,a,o){var f=n.child;for(f!==null&&(f.return=n);f!==null;){var p=void 0,y=f.dependencies;if(y!==null){p=f.child;for(var w=y.firstContext;w!==null;){if(w.context===a){if(f.tag===v){var T=xd(o),O=Xu(Xn,T);O.tag=HS;var F=f.updateQueue;if(F!==null){var H=F.shared,ee=H.pending;ee===null?O.next=O:(O.next=ee.next,ee.next=O),H.pending=O}}f.lanes=un(f.lanes,o);var J=f.alternate;J!==null&&(J.lanes=un(J.lanes,o)),OT(f.return,o,n),y.lanes=un(y.lanes,o);break}w=w.next}}else if(f.tag===I)p=f.type===n.type?null:f.child;else if(f.tag===se){var he=f.return;if(he===null)throw new Error("We just came from a parent so we must have had a parent. This is a bug in React.");he.lanes=un(he.lanes,o);var me=he.alternate;me!==null&&(me.lanes=un(me.lanes,o)),OT(he,o,n),p=f.sibling}else p=f.child;if(p!==null)p.return=f;else for(p=f;p!==null;){if(p===n){p=null;break}var _e=p.sibling;if(_e!==null){_e.return=p.return,p=_e;break}p=p.return}f=p}}function em(n,a){US=n,Jh=null,NT=null;var o=n.dependencies;if(o!==null){var f=o.firstContext;f!==null&&(bi(o.lanes,a)&&ny(),o.firstContext=null)}}function oa(n){jS&&u("Context can only be read while React is rendering. In classes, you can read it in the render method or getDerivedStateFromProps. In function components, you can read it directly in the function body, but not inside Hooks like useReducer() or useMemo().");var a=n._currentValue;if(NT!==n){var o={context:n,memoizedValue:a,next:null};if(Jh===null){if(US===null)throw new Error("Context can only be read while React is rendering. In classes, you can read it in the render method or getDerivedStateFromProps. In function components, you can read it directly in the function body, but not inside Hooks like useReducer() or useMemo().");Jh=o,US.dependencies={lanes:Me,firstContext:o}}else Jh=Jh.next=o}return a}var rp=null;function AT(n){rp===null?rp=[n]:rp.push(n)}function bj(){if(rp!==null){for(var n=0;n<rp.length;n++){var a=rp[n],o=a.interleaved;if(o!==null){a.interleaved=null;var f=o.next,p=a.pending;if(p!==null){var y=p.next;p.next=f,o.next=y}a.pending=o}}rp=null}}function xD(n,a,o,f){var p=a.interleaved;return p===null?(o.next=o,AT(a)):(o.next=p.next,p.next=o),a.interleaved=o,VS(n,f)}function Sj(n,a,o,f){var p=a.interleaved;p===null?(o.next=o,AT(a)):(o.next=p.next,p.next=o),a.interleaved=o}function xj(n,a,o,f){var p=a.interleaved;return p===null?(o.next=o,AT(a)):(o.next=p.next,p.next=o),a.interleaved=o,VS(n,f)}function so(n,a){return VS(n,a)}var wj=VS;function VS(n,a){n.lanes=un(n.lanes,a);var o=n.alternate;o!==null&&(o.lanes=un(o.lanes,a)),o===null&&(n.flags&(zr|Zs))!==kt&&wM(n);for(var f=n,p=n.return;p!==null;)p.childLanes=un(p.childLanes,a),o=p.alternate,o!==null?o.childLanes=un(o.childLanes,a):(p.flags&(zr|Zs))!==kt&&wM(n),f=p,p=p.return;if(f.tag===x){var y=f.stateNode;return y}else return null}var wD=0,CD=1,HS=2,kT=3,WS=!1,DT,GS;DT=!1,GS=null;function PT(n){var a={baseState:n.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:Me},effects:null};n.updateQueue=a}function _D(n,a){var o=a.updateQueue,f=n.updateQueue;if(o===f){var p={baseState:f.baseState,firstBaseUpdate:f.firstBaseUpdate,lastBaseUpdate:f.lastBaseUpdate,shared:f.shared,effects:f.effects};a.updateQueue=p}}function Xu(n,a){var o={eventTime:n,lane:a,tag:wD,payload:null,callback:null,next:null};return o}function sf(n,a,o){var f=n.updateQueue;if(f===null)return null;var p=f.shared;if(GS===p&&!DT&&(u("An update (setState, replaceState, or forceUpdate) was scheduled from inside an update function. Update functions should be pure, with zero side-effects. Consider using componentDidUpdate or a callback."),DT=!0),w9()){var y=p.pending;return y===null?a.next=a:(a.next=y.next,y.next=a),p.pending=a,wj(n,o)}else return xj(n,p,a,o)}function YS(n,a,o){var f=a.updateQueue;if(f!==null){var p=f.shared;if(Hv(o)){var y=p.lanes;y=E0(y,n.pendingLanes);var w=un(y,o);p.lanes=w,Ot(n,w)}}}function MT(n,a){var o=n.updateQueue,f=n.alternate;if(f!==null){var p=f.updateQueue;if(o===p){var y=null,w=null,T=o.firstBaseUpdate;if(T!==null){var O=T;do{var F={eventTime:O.eventTime,lane:O.lane,tag:O.tag,payload:O.payload,callback:O.callback,next:null};w===null?y=w=F:(w.next=F,w=F),O=O.next}while(O!==null);w===null?y=w=a:(w.next=a,w=a)}else y=w=a;o={baseState:p.baseState,firstBaseUpdate:y,lastBaseUpdate:w,shared:p.shared,effects:p.effects},n.updateQueue=o;return}}var H=o.lastBaseUpdate;H===null?o.firstBaseUpdate=a:H.next=a,o.lastBaseUpdate=a}function Cj(n,a,o,f,p,y){switch(o.tag){case CD:{var w=o.payload;if(typeof w=="function"){yD();var T=w.call(y,f,p);{if(n.mode&Dr){ta(!0);try{w.call(y,f,p)}finally{ta(!1)}}bD()}return T}return w}case kT:n.flags=n.flags&~Ha|In;case wD:{var O=o.payload,F;if(typeof O=="function"){yD(),F=O.call(y,f,p);{if(n.mode&Dr){ta(!0);try{O.call(y,f,p)}finally{ta(!1)}}bD()}}else F=O;return F==null?f:Zt({},f,F)}case HS:return WS=!0,f}return f}function qS(n,a,o,f){var p=n.updateQueue;WS=!1,GS=p.shared;var y=p.firstBaseUpdate,w=p.lastBaseUpdate,T=p.shared.pending;if(T!==null){p.shared.pending=null;var O=T,F=O.next;O.next=null,w===null?y=F:w.next=F,w=O;var H=n.alternate;if(H!==null){var ee=H.updateQueue,J=ee.lastBaseUpdate;J!==w&&(J===null?ee.firstBaseUpdate=F:J.next=F,ee.lastBaseUpdate=O)}}if(y!==null){var he=p.baseState,me=Me,_e=null,ut=null,Ct=null,yt=y;do{var On=yt.lane,Sn=yt.eventTime;if(Lu(f,On)){if(Ct!==null){var Ee={eventTime:Sn,lane:Wr,tag:yt.tag,payload:yt.payload,callback:yt.callback,next:null};Ct=Ct.next=Ee}he=Cj(n,p,yt,he,a,o);var ue=yt.callback;if(ue!==null&&yt.lane!==Wr){n.flags|=bv;var He=p.effects;He===null?p.effects=[yt]:He.push(yt)}}else{var le={eventTime:Sn,lane:On,tag:yt.tag,payload:yt.payload,callback:yt.callback,next:null};Ct===null?(ut=Ct=le,_e=he):Ct=Ct.next=le,me=un(me,On)}if(yt=yt.next,yt===null){if(T=p.shared.pending,T===null)break;var ct=T,ot=ct.next;ct.next=null,yt=ot,p.lastBaseUpdate=ct,p.shared.pending=null}}while(!0);Ct===null&&(_e=he),p.baseState=_e,p.firstBaseUpdate=ut,p.lastBaseUpdate=Ct;var Ft=p.shared.interleaved;if(Ft!==null){var Qt=Ft;do me=un(me,Qt.lane),Qt=Qt.next;while(Qt!==Ft)}else y===null&&(p.shared.lanes=Me);hy(me),n.lanes=me,n.memoizedState=he}GS=null}function _j(n,a){if(typeof n!="function")throw new Error("Invalid argument passed as callback. Expected a function. Instead "+("received: "+n));n.call(a)}function ED(){WS=!1}function KS(){return WS}function TD(n,a,o){var f=a.effects;if(a.effects=null,f!==null)for(var p=0;p<f.length;p++){var y=f[p],w=y.callback;w!==null&&(y.callback=null,_j(w,o))}}var IT={},ND=new e.Component().refs,LT,FT,zT,BT,UT,RD,XS,jT,$T,VT;{LT=new Set,FT=new Set,zT=new Set,BT=new Set,jT=new Set,UT=new Set,$T=new Set,VT=new Set;var OD=new Set;XS=function(n,a){if(!(n===null||typeof n=="function")){var o=a+"_"+n;OD.has(o)||(OD.add(o),u("%s(...): Expected the last optional `callback` argument to be a function. Instead received: %s.",a,n))}},RD=function(n,a){if(a===void 0){var o=on(n)||"Component";UT.has(o)||(UT.add(o),u("%s.getDerivedStateFromProps(): A valid state object (or null) must be returned. You have returned undefined.",o))}},Object.defineProperty(IT,"_processChildContext",{enumerable:!1,value:function(){throw new Error("_processChildContext is not available in React 16+. This likely means you have multiple copies of React and are attempting to nest a React 15 tree inside a React 16 tree using unstable_renderSubtreeIntoContainer, which isn't supported. Try to make sure you have only one copy of React (and ideally, switch to ReactDOM.createPortal).")}}),Object.freeze(IT)}function HT(n,a,o,f){var p=n.memoizedState,y=o(f,p);{if(n.mode&Dr){ta(!0);try{y=o(f,p)}finally{ta(!1)}}RD(a,y)}var w=y==null?p:Zt({},p,y);if(n.memoizedState=w,n.lanes===Me){var T=n.updateQueue;T.baseState=w}}var WT={isMounted:uh,enqueueSetState:function(n,a,o){var f=Ks(n),p=Hi(),y=mf(f),w=Xu(p,y);w.payload=a,o!=null&&(XS(o,"setState"),w.callback=o);var T=sf(f,w,y);T!==null&&(Na(T,f,y,p),YS(T,f,y)),Iv(f,y)},enqueueReplaceState:function(n,a,o){var f=Ks(n),p=Hi(),y=mf(f),w=Xu(p,y);w.tag=CD,w.payload=a,o!=null&&(XS(o,"replaceState"),w.callback=o);var T=sf(f,w,y);T!==null&&(Na(T,f,y,p),YS(T,f,y)),Iv(f,y)},enqueueForceUpdate:function(n,a){var o=Ks(n),f=Hi(),p=mf(o),y=Xu(f,p);y.tag=HS,a!=null&&(XS(a,"forceUpdate"),y.callback=a);var w=sf(o,y,p);w!==null&&(Na(w,o,p,f),YS(w,o,p)),b0(o,p)}};function AD(n,a,o,f,p,y,w){var T=n.stateNode;if(typeof T.shouldComponentUpdate=="function"){var O=T.shouldComponentUpdate(f,y,w);{if(n.mode&Dr){ta(!0);try{O=T.shouldComponentUpdate(f,y,w)}finally{ta(!1)}}O===void 0&&u("%s.shouldComponentUpdate(): Returned undefined instead of a boolean value. Make sure to return true or false.",on(a)||"Component")}return O}return a.prototype&&a.prototype.isPureReactComponent?!Xc(o,f)||!Xc(p,y):!0}function Ej(n,a,o){var f=n.stateNode;{var p=on(a)||"Component",y=f.render;y||(a.prototype&&typeof a.prototype.render=="function"?u("%s(...): No `render` method found on the returned component instance: did you accidentally return an object from the constructor?",p):u("%s(...): No `render` method found on the returned component instance: you may have forgotten to define `render`.",p)),f.getInitialState&&!f.getInitialState.isReactClassApproved&&!f.state&&u("getInitialState was defined on %s, a plain JavaScript class. This is only supported for classes created using React.createClass. Did you mean to define a state property instead?",p),f.getDefaultProps&&!f.getDefaultProps.isReactClassApproved&&u("getDefaultProps was defined on %s, a plain JavaScript class. This is only supported for classes created using React.createClass. Use a static property to define defaultProps instead.",p),f.propTypes&&u("propTypes was defined as an instance property on %s. Use a static property to define propTypes instead.",p),f.contextType&&u("contextType was defined as an instance property on %s. Use a static property to define contextType instead.",p),f.contextTypes&&u("contextTypes was defined as an instance property on %s. Use a static property to define contextTypes instead.",p),a.contextType&&a.contextTypes&&!$T.has(a)&&($T.add(a),u("%s declares both contextTypes and contextType static properties. The legacy contextTypes property will be ignored.",p)),typeof f.componentShouldUpdate=="function"&&u("%s has a method called componentShouldUpdate(). Did you mean shouldComponentUpdate()? The name is phrased as a question because the function is expected to return a value.",p),a.prototype&&a.prototype.isPureReactComponent&&typeof f.shouldComponentUpdate<"u"&&u("%s has a method called shouldComponentUpdate(). shouldComponentUpdate should not be used when extending React.PureComponent. Please extend React.Component if shouldComponentUpdate is used.",on(a)||"A pure component"),typeof f.componentDidUnmount=="function"&&u("%s has a method called componentDidUnmount(). But there is no such lifecycle method. Did you mean componentWillUnmount()?",p),typeof f.componentDidReceiveProps=="function"&&u("%s has a method called componentDidReceiveProps(). But there is no such lifecycle method. If you meant to update the state in response to changing props, use componentWillReceiveProps(). If you meant to fetch data or run side-effects or mutations after React has updated the UI, use componentDidUpdate().",p),typeof f.componentWillRecieveProps=="function"&&u("%s has a method called componentWillRecieveProps(). Did you mean componentWillReceiveProps()?",p),typeof f.UNSAFE_componentWillRecieveProps=="function"&&u("%s has a method called UNSAFE_componentWillRecieveProps(). Did you mean UNSAFE_componentWillReceiveProps()?",p);var w=f.props!==o;f.props!==void 0&&w&&u("%s(...): When calling super() in `%s`, make sure to pass up the same props that your component's constructor was passed.",p,p),f.defaultProps&&u("Setting defaultProps as an instance property on %s is not supported and will be ignored. Instead, define defaultProps as a static property on %s.",p,p),typeof f.getSnapshotBeforeUpdate=="function"&&typeof f.componentDidUpdate!="function"&&!zT.has(a)&&(zT.add(a),u("%s: getSnapshotBeforeUpdate() should be used with componentDidUpdate(). This component defines getSnapshotBeforeUpdate() only.",on(a))),typeof f.getDerivedStateFromProps=="function"&&u("%s: getDerivedStateFromProps() is defined as an instance method and will be ignored. Instead, declare it as a static method.",p),typeof f.getDerivedStateFromError=="function"&&u("%s: getDerivedStateFromError() is defined as an instance method and will be ignored. Instead, declare it as a static method.",p),typeof a.getSnapshotBeforeUpdate=="function"&&u("%s: getSnapshotBeforeUpdate() is defined as a static method and will be ignored. Instead, declare it as an instance method.",p);var T=f.state;T&&(typeof T!="object"||Dt(T))&&u("%s.state: must be set to an object or null",p),typeof f.getChildContext=="function"&&typeof a.childContextTypes!="object"&&u("%s.getChildContext(): childContextTypes must be defined in order to use getChildContext().",p)}}function kD(n,a){a.updater=WT,n.stateNode=a,_n(a,n),a._reactInternalInstance=IT}function DD(n,a,o){var f=!1,p=Uo,y=Uo,w=a.contextType;if("contextType"in a){var T=w===null||w!==void 0&&w.$$typeof===gn&&w._context===void 0;if(!T&&!VT.has(a)){VT.add(a);var O="";w===void 0?O=" However, it is set to undefined. This can be caused by a typo or by mixing up named and default imports. This can also happen due to a circular dependency, so try moving the createContext() call to a separate file.":typeof w!="object"?O=" However, it is set to a "+typeof w+".":w.$$typeof===nn?O=" Did you accidentally pass the Context.Provider instead?":w._context!==void 0?O=" Did you accidentally pass the Context.Consumer instead?":O=" However, it is set to an object with keys {"+Object.keys(w).join(", ")+"}.",u("%s defines an invalid contextType. contextType should point to the Context object returned by React.createContext().%s",on(a)||"Component",O)}}if(typeof w=="object"&&w!==null)y=oa(w);else{p=qh(n,a,!0);var F=a.contextTypes;f=F!=null,y=f?Kh(n,p):Uo}var H=new a(o,y);if(n.mode&Dr){ta(!0);try{H=new a(o,y)}finally{ta(!1)}}var ee=n.memoizedState=H.state!==null&&H.state!==void 0?H.state:null;kD(n,H);{if(typeof a.getDerivedStateFromProps=="function"&&ee===null){var J=on(a)||"Component";FT.has(J)||(FT.add(J),u("`%s` uses `getDerivedStateFromProps` but its initial state is %s. This is not recommended. Instead, define the initial state by assigning an object to `this.state` in the constructor of `%s`. This ensures that `getDerivedStateFromProps` arguments have a consistent shape.",J,H.state===null?"null":"undefined",J))}if(typeof a.getDerivedStateFromProps=="function"||typeof H.getSnapshotBeforeUpdate=="function"){var he=null,me=null,_e=null;if(typeof H.componentWillMount=="function"&&H.componentWillMount.__suppressDeprecationWarning!==!0?he="componentWillMount":typeof H.UNSAFE_componentWillMount=="function"&&(he="UNSAFE_componentWillMount"),typeof H.componentWillReceiveProps=="function"&&H.componentWillReceiveProps.__suppressDeprecationWarning!==!0?me="componentWillReceiveProps":typeof H.UNSAFE_componentWillReceiveProps=="function"&&(me="UNSAFE_componentWillReceiveProps"),typeof H.componentWillUpdate=="function"&&H.componentWillUpdate.__suppressDeprecationWarning!==!0?_e="componentWillUpdate":typeof H.UNSAFE_componentWillUpdate=="function"&&(_e="UNSAFE_componentWillUpdate"),he!==null||me!==null||_e!==null){var ut=on(a)||"Component",Ct=typeof a.getDerivedStateFromProps=="function"?"getDerivedStateFromProps()":"getSnapshotBeforeUpdate()";BT.has(ut)||(BT.add(ut),u(`Unsafe legacy lifecycles will not be called for components using new component APIs.
|
|
|
|
%s uses %s but also contains the following legacy lifecycles:%s%s%s
|
|
|
|
The above lifecycles should be removed. Learn more about this warning here:
|
|
https://reactjs.org/link/unsafe-component-lifecycles`,ut,Ct,he!==null?`
|
|
`+he:"",me!==null?`
|
|
`+me:"",_e!==null?`
|
|
`+_e:""))}}}return f&&nD(n,p,y),H}function Tj(n,a){var o=a.state;typeof a.componentWillMount=="function"&&a.componentWillMount(),typeof a.UNSAFE_componentWillMount=="function"&&a.UNSAFE_componentWillMount(),o!==a.state&&(u("%s.componentWillMount(): Assigning directly to this.state is deprecated (except inside a component's constructor). Use setState instead.",It(n)||"Component"),WT.enqueueReplaceState(a,a.state,null))}function PD(n,a,o,f){var p=a.state;if(typeof a.componentWillReceiveProps=="function"&&a.componentWillReceiveProps(o,f),typeof a.UNSAFE_componentWillReceiveProps=="function"&&a.UNSAFE_componentWillReceiveProps(o,f),a.state!==p){{var y=It(n)||"Component";LT.has(y)||(LT.add(y),u("%s.componentWillReceiveProps(): Assigning directly to this.state is deprecated (except inside a component's constructor). Use setState instead.",y))}WT.enqueueReplaceState(a,a.state,null)}}function GT(n,a,o,f){Ej(n,a,o);var p=n.stateNode;p.props=o,p.state=n.memoizedState,p.refs=ND,PT(n);var y=a.contextType;if(typeof y=="object"&&y!==null)p.context=oa(y);else{var w=qh(n,a,!0);p.context=Kh(n,w)}{if(p.state===o){var T=on(a)||"Component";jT.has(T)||(jT.add(T),u("%s: It is not recommended to assign props directly to state because updates to props won't be reflected in state. In most cases, it is better to use props directly.",T))}n.mode&Dr&&sl.recordLegacyContextWarning(n,p),sl.recordUnsafeLifecycleWarnings(n,p)}p.state=n.memoizedState;var O=a.getDerivedStateFromProps;if(typeof O=="function"&&(HT(n,a,O,o),p.state=n.memoizedState),typeof a.getDerivedStateFromProps!="function"&&typeof p.getSnapshotBeforeUpdate!="function"&&(typeof p.UNSAFE_componentWillMount=="function"||typeof p.componentWillMount=="function")&&(Tj(n,p),qS(n,o,p,f),p.state=n.memoizedState),typeof p.componentDidMount=="function"){var F=ln;F|=Ou,(n.mode&ro)!==Rt&&(F|=Hr),n.flags|=F}}function Nj(n,a,o,f){var p=n.stateNode,y=n.memoizedProps;p.props=y;var w=p.context,T=a.contextType,O=Uo;if(typeof T=="object"&&T!==null)O=oa(T);else{var F=qh(n,a,!0);O=Kh(n,F)}var H=a.getDerivedStateFromProps,ee=typeof H=="function"||typeof p.getSnapshotBeforeUpdate=="function";!ee&&(typeof p.UNSAFE_componentWillReceiveProps=="function"||typeof p.componentWillReceiveProps=="function")&&(y!==o||w!==O)&&PD(n,p,o,O),ED();var J=n.memoizedState,he=p.state=J;if(qS(n,o,p,f),he=n.memoizedState,y===o&&J===he&&!kS()&&!KS()){if(typeof p.componentDidMount=="function"){var me=ln;me|=Ou,(n.mode&ro)!==Rt&&(me|=Hr),n.flags|=me}return!1}typeof H=="function"&&(HT(n,a,H,o),he=n.memoizedState);var _e=KS()||AD(n,a,y,o,J,he,O);if(_e){if(!ee&&(typeof p.UNSAFE_componentWillMount=="function"||typeof p.componentWillMount=="function")&&(typeof p.componentWillMount=="function"&&p.componentWillMount(),typeof p.UNSAFE_componentWillMount=="function"&&p.UNSAFE_componentWillMount()),typeof p.componentDidMount=="function"){var ut=ln;ut|=Ou,(n.mode&ro)!==Rt&&(ut|=Hr),n.flags|=ut}}else{if(typeof p.componentDidMount=="function"){var Ct=ln;Ct|=Ou,(n.mode&ro)!==Rt&&(Ct|=Hr),n.flags|=Ct}n.memoizedProps=o,n.memoizedState=he}return p.props=o,p.state=he,p.context=O,_e}function Rj(n,a,o,f,p){var y=a.stateNode;_D(n,a);var w=a.memoizedProps,T=a.type===a.elementType?w:ll(a.type,w);y.props=T;var O=a.pendingProps,F=y.context,H=o.contextType,ee=Uo;if(typeof H=="object"&&H!==null)ee=oa(H);else{var J=qh(a,o,!0);ee=Kh(a,J)}var he=o.getDerivedStateFromProps,me=typeof he=="function"||typeof y.getSnapshotBeforeUpdate=="function";!me&&(typeof y.UNSAFE_componentWillReceiveProps=="function"||typeof y.componentWillReceiveProps=="function")&&(w!==O||F!==ee)&&PD(a,y,f,ee),ED();var _e=a.memoizedState,ut=y.state=_e;if(qS(a,f,y,p),ut=a.memoizedState,w===O&&_e===ut&&!kS()&&!KS()&&!Te)return typeof y.componentDidUpdate=="function"&&(w!==n.memoizedProps||_e!==n.memoizedState)&&(a.flags|=ln),typeof y.getSnapshotBeforeUpdate=="function"&&(w!==n.memoizedProps||_e!==n.memoizedState)&&(a.flags|=Nu),!1;typeof he=="function"&&(HT(a,o,he,f),ut=a.memoizedState);var Ct=KS()||AD(a,o,T,f,_e,ut,ee)||Te;return Ct?(!me&&(typeof y.UNSAFE_componentWillUpdate=="function"||typeof y.componentWillUpdate=="function")&&(typeof y.componentWillUpdate=="function"&&y.componentWillUpdate(f,ut,ee),typeof y.UNSAFE_componentWillUpdate=="function"&&y.UNSAFE_componentWillUpdate(f,ut,ee)),typeof y.componentDidUpdate=="function"&&(a.flags|=ln),typeof y.getSnapshotBeforeUpdate=="function"&&(a.flags|=Nu)):(typeof y.componentDidUpdate=="function"&&(w!==n.memoizedProps||_e!==n.memoizedState)&&(a.flags|=ln),typeof y.getSnapshotBeforeUpdate=="function"&&(w!==n.memoizedProps||_e!==n.memoizedState)&&(a.flags|=Nu),a.memoizedProps=f,a.memoizedState=ut),y.props=f,y.state=ut,y.context=ee,Ct}var YT,qT,KT,XT,ZT,MD=function(n,a){};YT=!1,qT=!1,KT={},XT={},ZT={},MD=function(n,a){if(!(n===null||typeof n!="object")&&!(!n._store||n._store.validated||n.key!=null)){if(typeof n._store!="object")throw new Error("React Component in warnForMissingKey should have a _store. This error is likely caused by a bug in React. Please file an issue.");n._store.validated=!0;var o=It(a)||"Component";XT[o]||(XT[o]=!0,u('Each child in a list should have a unique "key" prop. See https://reactjs.org/link/warning-keys for more information.'))}};function Vg(n,a,o){var f=o.ref;if(f!==null&&typeof f!="function"&&typeof f!="object"){if((n.mode&Dr||Ye)&&!(o._owner&&o._self&&o._owner.stateNode!==o._self)){var p=It(n)||"Component";KT[p]||(u('A string ref, "%s", has been found within a strict mode tree. String refs are a source of potential bugs and should be avoided. We recommend using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref',f),KT[p]=!0)}if(o._owner){var y=o._owner,w;if(y){var T=y;if(T.tag!==v)throw new Error("Function components cannot have string refs. We recommend using useRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref");w=T.stateNode}if(!w)throw new Error("Missing owner for string ref "+f+". This error is likely caused by a bug in React. Please file an issue.");var O=w;Bt(f,"ref");var F=""+f;if(a!==null&&a.ref!==null&&typeof a.ref=="function"&&a.ref._stringRef===F)return a.ref;var H=function(ee){var J=O.refs;J===ND&&(J=O.refs={}),ee===null?delete J[F]:J[F]=ee};return H._stringRef=F,H}else{if(typeof f!="string")throw new Error("Expected ref to be a function, a string, an object returned by React.createRef(), or null.");if(!o._owner)throw new Error("Element ref was specified as a string ("+f+`) but no owner was set. This could happen for one of the following reasons:
|
|
1. You may be adding a ref to a function component
|
|
2. You may be adding a ref to a component that was not created inside a component's render method
|
|
3. You have multiple copies of React loaded
|
|
See https://reactjs.org/link/refs-must-have-owner for more information.`)}}return f}function ZS(n,a){var o=Object.prototype.toString.call(a);throw new Error("Objects are not valid as a React child (found: "+(o==="[object Object]"?"object with keys {"+Object.keys(a).join(", ")+"}":o)+"). If you meant to render a collection of children, use an array instead.")}function QS(n){{var a=It(n)||"Component";if(ZT[a])return;ZT[a]=!0,u("Functions are not valid as a React child. This may happen if you return a Component instead of <Component /> from render. Or maybe you meant to call this function rather than return it.")}}function ID(n){var a=n._payload,o=n._init;return o(a)}function LD(n){function a(le,Ee){if(!!n){var ue=le.deletions;ue===null?(le.deletions=[Ee],le.flags|=Tu):ue.push(Ee)}}function o(le,Ee){if(!n)return null;for(var ue=Ee;ue!==null;)a(le,ue),ue=ue.sibling;return null}function f(le,Ee){for(var ue=new Map,He=Ee;He!==null;)He.key!==null?ue.set(He.key,He):ue.set(He.index,He),He=He.sibling;return ue}function p(le,Ee){var ue=fp(le,Ee);return ue.index=0,ue.sibling=null,ue}function y(le,Ee,ue){if(le.index=ue,!n)return le.flags|=r0,Ee;var He=le.alternate;if(He!==null){var ct=He.index;return ct<Ee?(le.flags|=zr,Ee):ct}else return le.flags|=zr,Ee}function w(le){return n&&le.alternate===null&&(le.flags|=zr),le}function T(le,Ee,ue,He){if(Ee===null||Ee.tag!==R){var ct=_R(ue,le.mode,He);return ct.return=le,ct}else{var ot=p(Ee,ue);return ot.return=le,ot}}function O(le,Ee,ue,He){var ct=ue.type;if(ct===Be)return H(le,Ee,ue.props.children,He,ue.key);if(Ee!==null&&(Ee.elementType===ct||TM(Ee,ue)||typeof ct=="object"&&ct!==null&&ct.$$typeof===an&&ID(ct)===Ee.type)){var ot=p(Ee,ue.props);return ot.ref=Vg(le,Ee,ue),ot.return=le,ot._debugSource=ue._source,ot._debugOwner=ue._owner,ot}var Ft=CR(ue,le.mode,He);return Ft.ref=Vg(le,Ee,ue),Ft.return=le,Ft}function F(le,Ee,ue,He){if(Ee===null||Ee.tag!==C||Ee.stateNode.containerInfo!==ue.containerInfo||Ee.stateNode.implementation!==ue.implementation){var ct=ER(ue,le.mode,He);return ct.return=le,ct}else{var ot=p(Ee,ue.children||[]);return ot.return=le,ot}}function H(le,Ee,ue,He,ct){if(Ee===null||Ee.tag!==A){var ot=gf(ue,le.mode,He,ct);return ot.return=le,ot}else{var Ft=p(Ee,ue);return Ft.return=le,Ft}}function ee(le,Ee,ue){if(typeof Ee=="string"&&Ee!==""||typeof Ee=="number"){var He=_R(""+Ee,le.mode,ue);return He.return=le,He}if(typeof Ee=="object"&&Ee!==null){switch(Ee.$$typeof){case ka:{var ct=CR(Ee,le.mode,ue);return ct.ref=Vg(le,null,Ee),ct.return=le,ct}case q:{var ot=ER(Ee,le.mode,ue);return ot.return=le,ot}case an:{var Ft=Ee._payload,Qt=Ee._init;return ee(le,Qt(Ft),ue)}}if(Dt(Ee)||Pi(Ee)){var nr=gf(Ee,le.mode,ue,null);return nr.return=le,nr}ZS(le,Ee)}return typeof Ee=="function"&&QS(le),null}function J(le,Ee,ue,He){var ct=Ee!==null?Ee.key:null;if(typeof ue=="string"&&ue!==""||typeof ue=="number")return ct!==null?null:T(le,Ee,""+ue,He);if(typeof ue=="object"&&ue!==null){switch(ue.$$typeof){case ka:return ue.key===ct?O(le,Ee,ue,He):null;case q:return ue.key===ct?F(le,Ee,ue,He):null;case an:{var ot=ue._payload,Ft=ue._init;return J(le,Ee,Ft(ot),He)}}if(Dt(ue)||Pi(ue))return ct!==null?null:H(le,Ee,ue,He,null);ZS(le,ue)}return typeof ue=="function"&&QS(le),null}function he(le,Ee,ue,He,ct){if(typeof He=="string"&&He!==""||typeof He=="number"){var ot=le.get(ue)||null;return T(Ee,ot,""+He,ct)}if(typeof He=="object"&&He!==null){switch(He.$$typeof){case ka:{var Ft=le.get(He.key===null?ue:He.key)||null;return O(Ee,Ft,He,ct)}case q:{var Qt=le.get(He.key===null?ue:He.key)||null;return F(Ee,Qt,He,ct)}case an:var nr=He._payload,jn=He._init;return he(le,Ee,ue,jn(nr),ct)}if(Dt(He)||Pi(He)){var qr=le.get(ue)||null;return H(Ee,qr,He,ct,null)}ZS(Ee,He)}return typeof He=="function"&&QS(Ee),null}function me(le,Ee,ue){{if(typeof le!="object"||le===null)return Ee;switch(le.$$typeof){case ka:case q:MD(le,ue);var He=le.key;if(typeof He!="string")break;if(Ee===null){Ee=new Set,Ee.add(He);break}if(!Ee.has(He)){Ee.add(He);break}u("Encountered two children with the same key, `%s`. Keys should be unique so that components maintain their identity across updates. Non-unique keys may cause children to be duplicated and/or omitted \u2014 the behavior is unsupported and could change in a future version.",He);break;case an:var ct=le._payload,ot=le._init;me(ot(ct),Ee,ue);break}}return Ee}function _e(le,Ee,ue,He){for(var ct=null,ot=0;ot<ue.length;ot++){var Ft=ue[ot];ct=me(Ft,ct,le)}for(var Qt=null,nr=null,jn=Ee,qr=0,$n=0,Ur=null;jn!==null&&$n<ue.length;$n++){jn.index>$n?(Ur=jn,jn=null):Ur=jn.sibling;var Ti=J(le,jn,ue[$n],He);if(Ti===null){jn===null&&(jn=Ur);break}n&&jn&&Ti.alternate===null&&a(le,jn),qr=y(Ti,qr,$n),nr===null?Qt=Ti:nr.sibling=Ti,nr=Ti,jn=Ur}if($n===ue.length){if(o(le,jn),Za()){var ai=$n;Qd(le,ai)}return Qt}if(jn===null){for(;$n<ue.length;$n++){var $o=ee(le,ue[$n],He);$o!==null&&(qr=y($o,qr,$n),nr===null?Qt=$o:nr.sibling=$o,nr=$o)}if(Za()){var Wi=$n;Qd(le,Wi)}return Qt}for(var Gi=f(le,jn);$n<ue.length;$n++){var Ni=he(Gi,le,$n,ue[$n],He);Ni!==null&&(n&&Ni.alternate!==null&&Gi.delete(Ni.key===null?$n:Ni.key),qr=y(Ni,qr,$n),nr===null?Qt=Ni:nr.sibling=Ni,nr=Ni)}if(n&&Gi.forEach(function(gm){return a(le,gm)}),Za()){var nc=$n;Qd(le,nc)}return Qt}function ut(le,Ee,ue,He){var ct=Pi(ue);if(typeof ct!="function")throw new Error("An object is not an iterable. This error is likely caused by a bug in React. Please file an issue.");{typeof Symbol=="function"&&ue[Symbol.toStringTag]==="Generator"&&(qT||u("Using Generators as children is unsupported and will likely yield unexpected results because enumerating a generator mutates it. You may convert it to an array with `Array.from()` or the `[...spread]` operator before rendering. Keep in mind you might need to polyfill these features for older browsers."),qT=!0),ue.entries===ct&&(YT||u("Using Maps as children is not supported. Use an array of keyed ReactElements instead."),YT=!0);var ot=ct.call(ue);if(ot)for(var Ft=null,Qt=ot.next();!Qt.done;Qt=ot.next()){var nr=Qt.value;Ft=me(nr,Ft,le)}}var jn=ct.call(ue);if(jn==null)throw new Error("An iterable object provided no iterator.");for(var qr=null,$n=null,Ur=Ee,Ti=0,ai=0,$o=null,Wi=jn.next();Ur!==null&&!Wi.done;ai++,Wi=jn.next()){Ur.index>ai?($o=Ur,Ur=null):$o=Ur.sibling;var Gi=J(le,Ur,Wi.value,He);if(Gi===null){Ur===null&&(Ur=$o);break}n&&Ur&&Gi.alternate===null&&a(le,Ur),Ti=y(Gi,Ti,ai),$n===null?qr=Gi:$n.sibling=Gi,$n=Gi,Ur=$o}if(Wi.done){if(o(le,Ur),Za()){var Ni=ai;Qd(le,Ni)}return qr}if(Ur===null){for(;!Wi.done;ai++,Wi=jn.next()){var nc=ee(le,Wi.value,He);nc!==null&&(Ti=y(nc,Ti,ai),$n===null?qr=nc:$n.sibling=nc,$n=nc)}if(Za()){var gm=ai;Qd(le,gm)}return qr}for(var by=f(le,Ur);!Wi.done;ai++,Wi=jn.next()){var Jl=he(by,le,ai,Wi.value,He);Jl!==null&&(n&&Jl.alternate!==null&&by.delete(Jl.key===null?ai:Jl.key),Ti=y(Jl,Ti,ai),$n===null?qr=Jl:$n.sibling=Jl,$n=Jl)}if(n&&by.forEach(function($V){return a(le,$V)}),Za()){var jV=ai;Qd(le,jV)}return qr}function Ct(le,Ee,ue,He){if(Ee!==null&&Ee.tag===R){o(le,Ee.sibling);var ct=p(Ee,ue);return ct.return=le,ct}o(le,Ee);var ot=_R(ue,le.mode,He);return ot.return=le,ot}function yt(le,Ee,ue,He){for(var ct=ue.key,ot=Ee;ot!==null;){if(ot.key===ct){var Ft=ue.type;if(Ft===Be){if(ot.tag===A){o(le,ot.sibling);var Qt=p(ot,ue.props.children);return Qt.return=le,Qt._debugSource=ue._source,Qt._debugOwner=ue._owner,Qt}}else if(ot.elementType===Ft||TM(ot,ue)||typeof Ft=="object"&&Ft!==null&&Ft.$$typeof===an&&ID(Ft)===ot.type){o(le,ot.sibling);var nr=p(ot,ue.props);return nr.ref=Vg(le,ot,ue),nr.return=le,nr._debugSource=ue._source,nr._debugOwner=ue._owner,nr}o(le,ot);break}else a(le,ot);ot=ot.sibling}if(ue.type===Be){var jn=gf(ue.props.children,le.mode,He,ue.key);return jn.return=le,jn}else{var qr=CR(ue,le.mode,He);return qr.ref=Vg(le,Ee,ue),qr.return=le,qr}}function On(le,Ee,ue,He){for(var ct=ue.key,ot=Ee;ot!==null;){if(ot.key===ct)if(ot.tag===C&&ot.stateNode.containerInfo===ue.containerInfo&&ot.stateNode.implementation===ue.implementation){o(le,ot.sibling);var Ft=p(ot,ue.children||[]);return Ft.return=le,Ft}else{o(le,ot);break}else a(le,ot);ot=ot.sibling}var Qt=ER(ue,le.mode,He);return Qt.return=le,Qt}function Sn(le,Ee,ue,He){var ct=typeof ue=="object"&&ue!==null&&ue.type===Be&&ue.key===null;if(ct&&(ue=ue.props.children),typeof ue=="object"&&ue!==null){switch(ue.$$typeof){case ka:return w(yt(le,Ee,ue,He));case q:return w(On(le,Ee,ue,He));case an:var ot=ue._payload,Ft=ue._init;return Sn(le,Ee,Ft(ot),He)}if(Dt(ue))return _e(le,Ee,ue,He);if(Pi(ue))return ut(le,Ee,ue,He);ZS(le,ue)}return typeof ue=="string"&&ue!==""||typeof ue=="number"?w(Ct(le,Ee,""+ue,He)):(typeof ue=="function"&&QS(le),o(le,Ee))}return Sn}var tm=LD(!0),FD=LD(!1);function Oj(n,a){if(n!==null&&a.child!==n.child)throw new Error("Resuming work not yet implemented.");if(a.child!==null){var o=a.child,f=fp(o,o.pendingProps);for(a.child=f,f.return=a;o.sibling!==null;)o=o.sibling,f=f.sibling=fp(o,o.pendingProps),f.return=a;f.sibling=null}}function Aj(n,a){for(var o=n.child;o!==null;)iV(o,a),o=o.sibling}var Hg={},lf=Ba(Hg),Wg=Ba(Hg),JS=Ba(Hg);function e1(n){if(n===Hg)throw new Error("Expected host context to exist. This error is likely caused by a bug in React. Please file an issue.");return n}function zD(){var n=e1(JS.current);return n}function QT(n,a){_i(JS,a,n),_i(Wg,n,n),_i(lf,Hg,n);var o=SE(a);ba(lf,n),_i(lf,o,n)}function nm(n){ba(lf,n),ba(Wg,n),ba(JS,n)}function JT(){var n=e1(lf.current);return n}function BD(n){e1(JS.current);var a=e1(lf.current),o=xE(a,n.type);a!==o&&(_i(Wg,n,n),_i(lf,o,n))}function eN(n){Wg.current===n&&(ba(lf,n),ba(Wg,n))}var kj=0,UD=1,jD=1,Gg=2,ul=Ba(kj);function tN(n,a){return(n&a)!==0}function rm(n){return n&UD}function nN(n,a){return n&UD|a}function Dj(n,a){return n|a}function uf(n,a){_i(ul,a,n)}function am(n){ba(ul,n)}function Pj(n,a){var o=n.memoizedState;return o!==null?o.dehydrated!==null:(n.memoizedProps,!0)}function t1(n){for(var a=n;a!==null;){if(a.tag===$){var o=a.memoizedState;if(o!==null){var f=o.dehydrated;if(f===null||OS(f)||Mg(f))return a}}else if(a.tag===be&&a.memoizedProps.revealOrder!==void 0){var p=(a.flags&In)!==kt;if(p)return a}else if(a.child!==null){a.child.return=a,a=a.child;continue}if(a===n)return null;for(;a.sibling===null;){if(a.return===null||a.return===n)return null;a=a.return}a.sibling.return=a.return,a=a.sibling}return null}var lo=0,Sa=1,Gl=2,xa=4,Qa=8,rN=[];function aN(){for(var n=0;n<rN.length;n++){var a=rN[n];a._workInProgressVersionPrimary=null}rN.length=0}function Mj(n,a){var o=a._getVersion,f=o(a._source);n.mutableSourceEagerHydrationData==null?n.mutableSourceEagerHydrationData=[a,f]:n.mutableSourceEagerHydrationData.push(a,f)}var lt=r.ReactCurrentDispatcher,Yg=r.ReactCurrentBatchConfig,iN,im;iN=new Set;var ap=Me,tr=null,wa=null,Ca=null,n1=!1,qg=!1,Kg=0,Ij=0,Lj=25,Ae=null,Ns=null,cf=-1,oN=!1;function Yn(){{var n=Ae;Ns===null?Ns=[n]:Ns.push(n)}}function Je(){{var n=Ae;Ns!==null&&(cf++,Ns[cf]!==n&&Fj(n))}}function om(n){n!=null&&!Dt(n)&&u("%s received a final argument that is not an array (instead, received `%s`). When specified, the final argument must be an array.",Ae,typeof n)}function Fj(n){{var a=It(tr);if(!iN.has(a)&&(iN.add(a),Ns!==null)){for(var o="",f=30,p=0;p<=cf;p++){for(var y=Ns[p],w=p===cf?n:y,T=p+1+". "+y;T.length<f;)T+=" ";T+=w+`
|
|
`,o+=T}u(`React has detected a change in the order of Hooks called by %s. This will lead to bugs and errors if not fixed. For more information, read the Rules of Hooks: https://reactjs.org/link/rules-of-hooks
|
|
|
|
Previous render Next render
|
|
------------------------------------------------------
|
|
%s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
`,a,o)}}}function Ei(){throw new Error(`Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:
|
|
1. You might have mismatching versions of React and the renderer (such as React DOM)
|
|
2. You might be breaking the Rules of Hooks
|
|
3. You might have more than one copy of React in the same app
|
|
See https://reactjs.org/link/invalid-hook-call for tips about how to debug and fix this problem.`)}function sN(n,a){if(oN)return!1;if(a===null)return u("%s received a final argument during this render, but not during the previous render. Even though the final argument is optional, its type cannot change between renders.",Ae),!1;n.length!==a.length&&u(`The final argument passed to %s changed size between renders. The order and size of this array must remain constant.
|
|
|
|
Previous: %s
|
|
Incoming: %s`,Ae,"["+a.join(", ")+"]","["+n.join(", ")+"]");for(var o=0;o<a.length&&o<n.length;o++)if(!qa(n[o],a[o]))return!1;return!0}function sm(n,a,o,f,p,y){ap=y,tr=a,Ns=n!==null?n._debugHookTypes:null,cf=-1,oN=n!==null&&n.type!==a.type,a.memoizedState=null,a.updateQueue=null,a.lanes=Me,n!==null&&n.memoizedState!==null?lt.current=uP:Ns!==null?lt.current=lP:lt.current=sP;var w=o(f,p);if(qg){var T=0;do{if(qg=!1,Kg=0,T>=Lj)throw new Error("Too many re-renders. React limits the number of renders to prevent an infinite loop.");T+=1,oN=!1,wa=null,Ca=null,a.updateQueue=null,cf=-1,lt.current=cP,w=o(f,p)}while(qg)}lt.current=m1,a._debugHookTypes=Ns;var O=wa!==null&&wa.next!==null;if(ap=Me,tr=null,wa=null,Ca=null,Ae=null,Ns=null,cf=-1,n!==null&&(n.flags&ds)!==(a.flags&ds)&&(n.mode&yn)!==Rt&&u("Internal React error: Expected static flag was missing. Please notify the React team."),n1=!1,O)throw new Error("Rendered fewer hooks than expected. This may be caused by an accidental early return statement.");return w}function lm(){var n=Kg!==0;return Kg=0,n}function $D(n,a,o){a.updateQueue=n.updateQueue,(a.mode&ro)!==Rt?a.flags&=~(sh|Hr|Fo|ln):a.flags&=~(Fo|ln),n.lanes=wd(n.lanes,o)}function VD(){if(lt.current=m1,n1){for(var n=tr.memoizedState;n!==null;){var a=n.queue;a!==null&&(a.pending=null),n=n.next}n1=!1}ap=Me,tr=null,wa=null,Ca=null,Ns=null,cf=-1,Ae=null,nP=!1,qg=!1,Kg=0}function Yl(){var n={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Ca===null?tr.memoizedState=Ca=n:Ca=Ca.next=n,Ca}function Rs(){var n;if(wa===null){var a=tr.alternate;a!==null?n=a.memoizedState:n=null}else n=wa.next;var o;if(Ca===null?o=tr.memoizedState:o=Ca.next,o!==null)Ca=o,o=Ca.next,wa=n;else{if(n===null)throw new Error("Rendered more hooks than during the previous render.");wa=n;var f={memoizedState:wa.memoizedState,baseState:wa.baseState,baseQueue:wa.baseQueue,queue:wa.queue,next:null};Ca===null?tr.memoizedState=Ca=f:Ca=Ca.next=f}return Ca}function HD(){return{lastEffect:null,stores:null}}function lN(n,a){return typeof a=="function"?a(n):a}function uN(n,a,o){var f=Yl(),p;o!==void 0?p=o(a):p=a,f.memoizedState=f.baseState=p;var y={pending:null,interleaved:null,lanes:Me,dispatch:null,lastRenderedReducer:n,lastRenderedState:p};f.queue=y;var w=y.dispatch=jj.bind(null,tr,y);return[f.memoizedState,w]}function cN(n,a,o){var f=Rs(),p=f.queue;if(p===null)throw new Error("Should have a queue. This is likely a bug in React. Please file an issue.");p.lastRenderedReducer=n;var y=wa,w=y.baseQueue,T=p.pending;if(T!==null){if(w!==null){var O=w.next,F=T.next;w.next=F,T.next=O}y.baseQueue!==w&&u("Internal error: Expected work-in-progress queue to be a clone. This is a bug in React."),y.baseQueue=w=T,p.pending=null}if(w!==null){var H=w.next,ee=y.baseState,J=null,he=null,me=null,_e=H;do{var ut=_e.lane;if(Lu(ap,ut)){if(me!==null){var yt={lane:Wr,action:_e.action,hasEagerState:_e.hasEagerState,eagerState:_e.eagerState,next:null};me=me.next=yt}if(_e.hasEagerState)ee=_e.eagerState;else{var On=_e.action;ee=n(ee,On)}}else{var Ct={lane:ut,action:_e.action,hasEagerState:_e.hasEagerState,eagerState:_e.eagerState,next:null};me===null?(he=me=Ct,J=ee):me=me.next=Ct,tr.lanes=un(tr.lanes,ut),hy(ut)}_e=_e.next}while(_e!==null&&_e!==H);me===null?J=ee:me.next=he,qa(ee,f.memoizedState)||ny(),f.memoizedState=ee,f.baseState=J,f.baseQueue=me,p.lastRenderedState=ee}var Sn=p.interleaved;if(Sn!==null){var le=Sn;do{var Ee=le.lane;tr.lanes=un(tr.lanes,Ee),hy(Ee),le=le.next}while(le!==Sn)}else w===null&&(p.lanes=Me);var ue=p.dispatch;return[f.memoizedState,ue]}function fN(n,a,o){var f=Rs(),p=f.queue;if(p===null)throw new Error("Should have a queue. This is likely a bug in React. Please file an issue.");p.lastRenderedReducer=n;var y=p.dispatch,w=p.pending,T=f.memoizedState;if(w!==null){p.pending=null;var O=w.next,F=O;do{var H=F.action;T=n(T,H),F=F.next}while(F!==O);qa(T,f.memoizedState)||ny(),f.memoizedState=T,f.baseQueue===null&&(f.baseState=T),p.lastRenderedState=T}return[T,y]}function lme(n,a,o){}function ume(n,a,o){}function dN(n,a,o){var f=tr,p=Yl(),y,w=Za();if(w){if(o===void 0)throw new Error("Missing getServerSnapshot, which is required for server-rendered content. Will revert to client rendering.");y=o(),im||y!==o()&&(u("The result of getServerSnapshot should be cached to avoid an infinite loop"),im=!0)}else{if(y=a(),!im){var T=a();qa(y,T)||(u("The result of getSnapshot should be cached to avoid an infinite loop"),im=!0)}var O=P1();if(O===null)throw new Error("Expected a work-in-progress root. This is a bug in React. Please file an issue.");Iu(O,ap)||WD(f,a,y)}p.memoizedState=y;var F={value:y,getSnapshot:a};return p.queue=F,s1(YD.bind(null,f,F,n),[n]),f.flags|=Fo,Xg(Sa|Qa,GD.bind(null,f,F,y,a),void 0,null),y}function r1(n,a,o){var f=tr,p=Rs(),y=a();if(!im){var w=a();qa(y,w)||(u("The result of getSnapshot should be cached to avoid an infinite loop"),im=!0)}var T=p.memoizedState,O=!qa(T,y);O&&(p.memoizedState=y,ny());var F=p.queue;if(Qg(YD.bind(null,f,F,n),[n]),F.getSnapshot!==a||O||Ca!==null&&Ca.memoizedState.tag&Sa){f.flags|=Fo,Xg(Sa|Qa,GD.bind(null,f,F,y,a),void 0,null);var H=P1();if(H===null)throw new Error("Expected a work-in-progress root. This is a bug in React. Please file an issue.");Iu(H,ap)||WD(f,a,y)}return y}function WD(n,a,o){n.flags|=oh;var f={getSnapshot:a,value:o},p=tr.updateQueue;if(p===null)p=HD(),tr.updateQueue=p,p.stores=[f];else{var y=p.stores;y===null?p.stores=[f]:y.push(f)}}function GD(n,a,o,f){a.value=o,a.getSnapshot=f,qD(a)&&KD(n)}function YD(n,a,o){var f=function(){qD(a)&&KD(n)};return o(f)}function qD(n){var a=n.getSnapshot,o=n.value;try{var f=a();return!qa(o,f)}catch{return!0}}function KD(n){var a=so(n,Ut);a!==null&&Na(a,n,Ut,Xn)}function a1(n){var a=Yl();typeof n=="function"&&(n=n()),a.memoizedState=a.baseState=n;var o={pending:null,interleaved:null,lanes:Me,dispatch:null,lastRenderedReducer:lN,lastRenderedState:n};a.queue=o;var f=o.dispatch=$j.bind(null,tr,o);return[a.memoizedState,f]}function pN(n){return cN(lN)}function hN(n){return fN(lN)}function Xg(n,a,o,f){var p={tag:n,create:a,destroy:o,deps:f,next:null},y=tr.updateQueue;if(y===null)y=HD(),tr.updateQueue=y,y.lastEffect=p.next=p;else{var w=y.lastEffect;if(w===null)y.lastEffect=p.next=p;else{var T=w.next;w.next=p,p.next=T,y.lastEffect=p}}return p}function mN(n){var a=Yl();{var o={current:n};return a.memoizedState=o,o}}function i1(n){var a=Rs();return a.memoizedState}function Zg(n,a,o,f){var p=Yl(),y=f===void 0?null:f;tr.flags|=n,p.memoizedState=Xg(Sa|a,o,void 0,y)}function o1(n,a,o,f){var p=Rs(),y=f===void 0?null:f,w=void 0;if(wa!==null){var T=wa.memoizedState;if(w=T.destroy,y!==null){var O=T.deps;if(sN(y,O)){p.memoizedState=Xg(a,o,w,y);return}}}tr.flags|=n,p.memoizedState=Xg(Sa|a,o,w,y)}function s1(n,a){return(tr.mode&ro)!==Rt?Zg(sh|Fo|xv,Qa,n,a):Zg(Fo|xv,Qa,n,a)}function Qg(n,a){return o1(Fo,Qa,n,a)}function vN(n,a){return Zg(ln,Gl,n,a)}function l1(n,a){return o1(ln,Gl,n,a)}function gN(n,a){var o=ln;return o|=Ou,(tr.mode&ro)!==Rt&&(o|=Hr),Zg(o,xa,n,a)}function u1(n,a){return o1(ln,xa,n,a)}function XD(n,a){if(typeof a=="function"){var o=a,f=n();return o(f),function(){o(null)}}else if(a!=null){var p=a;p.hasOwnProperty("current")||u("Expected useImperativeHandle() first argument to either be a ref callback or React.createRef() object. Instead received: %s.","an object with keys {"+Object.keys(p).join(", ")+"}");var y=n();return p.current=y,function(){p.current=null}}}function yN(n,a,o){typeof a!="function"&&u("Expected useImperativeHandle() second argument to be a function that creates a handle. Instead received: %s.",a!==null?typeof a:"null");var f=o!=null?o.concat([n]):null,p=ln;return p|=Ou,(tr.mode&ro)!==Rt&&(p|=Hr),Zg(p,xa,XD.bind(null,a,n),f)}function c1(n,a,o){typeof a!="function"&&u("Expected useImperativeHandle() second argument to be a function that creates a handle. Instead received: %s.",a!==null?typeof a:"null");var f=o!=null?o.concat([n]):null;return o1(ln,xa,XD.bind(null,a,n),f)}function zj(n,a){}var f1=zj;function bN(n,a){var o=Yl(),f=a===void 0?null:a;return o.memoizedState=[n,f],n}function d1(n,a){var o=Rs(),f=a===void 0?null:a,p=o.memoizedState;if(p!==null&&f!==null){var y=p[1];if(sN(f,y))return p[0]}return o.memoizedState=[n,f],n}function SN(n,a){var o=Yl(),f=a===void 0?null:a,p=n();return o.memoizedState=[p,f],p}function p1(n,a){var o=Rs(),f=a===void 0?null:a,p=o.memoizedState;if(p!==null&&f!==null){var y=p[1];if(sN(f,y))return p[0]}var w=n();return o.memoizedState=[w,f],w}function xN(n){var a=Yl();return a.memoizedState=n,n}function ZD(n){var a=Rs(),o=wa,f=o.memoizedState;return JD(a,f,n)}function QD(n){var a=Rs();if(wa===null)return a.memoizedState=n,n;var o=wa.memoizedState;return JD(a,o,n)}function JD(n,a,o){var f=!xh(ap);if(f){if(!qa(o,a)){var p=Sd();tr.lanes=un(tr.lanes,p),hy(p),n.baseState=!0}return a}else return n.baseState&&(n.baseState=!1,ny()),n.memoizedState=o,o}function Bj(n,a,o){var f=ao();ra(jC(f,ys)),n(!0);var p=Yg.transition;Yg.transition={};var y=Yg.transition;Yg.transition._updatedFibers=new Set;try{n(!1),a()}finally{if(ra(f),Yg.transition=p,p===null&&y._updatedFibers){var w=y._updatedFibers.size;w>10&&c("Detected a large number of updates inside startTransition. If this is due to a subscription please re-write it to use React provided hooks. Otherwise concurrent mode guarantees are off the table."),y._updatedFibers.clear()}}}function wN(){var n=a1(!1),a=n[0],o=n[1],f=Bj.bind(null,o),p=Yl();return p.memoizedState=f,[a,f]}function eP(){var n=pN(),a=n[0],o=Rs(),f=o.memoizedState;return[a,f]}function tP(){var n=hN(),a=n[0],o=Rs(),f=o.memoizedState;return[a,f]}var nP=!1;function Uj(){return nP}function CN(){var n=Yl(),a=P1(),o=a.identifierPrefix,f;if(Za()){var p=ej();f=":"+o+"R"+p;var y=Kg++;y>0&&(f+="H"+y.toString(32)),f+=":"}else{var w=Ij++;f=":"+o+"r"+w.toString(32)+":"}return n.memoizedState=f,f}function h1(){var n=Rs(),a=n.memoizedState;return a}function jj(n,a,o){typeof arguments[3]=="function"&&u("State updates from the useState() and useReducer() Hooks don't support the second callback argument. To execute a side effect after rendering, declare it in the component body with useEffect().");var f=mf(n),p={lane:f,action:o,hasEagerState:!1,eagerState:null,next:null};if(rP(n))aP(a,p);else{var y=xD(n,a,p,f);if(y!==null){var w=Hi();Na(y,n,f,w),iP(y,a,f)}}oP(n,f)}function $j(n,a,o){typeof arguments[3]=="function"&&u("State updates from the useState() and useReducer() Hooks don't support the second callback argument. To execute a side effect after rendering, declare it in the component body with useEffect().");var f=mf(n),p={lane:f,action:o,hasEagerState:!1,eagerState:null,next:null};if(rP(n))aP(a,p);else{var y=n.alternate;if(n.lanes===Me&&(y===null||y.lanes===Me)){var w=a.lastRenderedReducer;if(w!==null){var T;T=lt.current,lt.current=cl;try{var O=a.lastRenderedState,F=w(O,o);if(p.hasEagerState=!0,p.eagerState=F,qa(F,O)){Sj(n,a,p,f);return}}catch{}finally{lt.current=T}}}var H=xD(n,a,p,f);if(H!==null){var ee=Hi();Na(H,n,f,ee),iP(H,a,f)}}oP(n,f)}function rP(n){var a=n.alternate;return n===tr||a!==null&&a===tr}function aP(n,a){qg=n1=!0;var o=n.pending;o===null?a.next=a:(a.next=o.next,o.next=a),n.pending=a}function iP(n,a,o){if(Hv(o)){var f=a.lanes;f=E0(f,n.pendingLanes);var p=un(f,o);a.lanes=p,Ot(n,p)}}function oP(n,a,o){Iv(n,a)}var m1={readContext:oa,useCallback:Ei,useContext:Ei,useEffect:Ei,useImperativeHandle:Ei,useInsertionEffect:Ei,useLayoutEffect:Ei,useMemo:Ei,useReducer:Ei,useRef:Ei,useState:Ei,useDebugValue:Ei,useDeferredValue:Ei,useTransition:Ei,useMutableSource:Ei,useSyncExternalStore:Ei,useId:Ei,unstable_isNewReconciler:Se},sP=null,lP=null,uP=null,cP=null,ql=null,cl=null,v1=null;{var _N=function(){u("Context can only be read while React is rendering. In classes, you can read it in the render method or getDerivedStateFromProps. In function components, you can read it directly in the function body, but not inside Hooks like useReducer() or useMemo().")},qt=function(){u("Do not call Hooks inside useEffect(...), useMemo(...), or other built-in Hooks. You can only call Hooks at the top level of your React function. For more information, see https://reactjs.org/link/rules-of-hooks")};sP={readContext:function(n){return oa(n)},useCallback:function(n,a){return Ae="useCallback",Yn(),om(a),bN(n,a)},useContext:function(n){return Ae="useContext",Yn(),oa(n)},useEffect:function(n,a){return Ae="useEffect",Yn(),om(a),s1(n,a)},useImperativeHandle:function(n,a,o){return Ae="useImperativeHandle",Yn(),om(o),yN(n,a,o)},useInsertionEffect:function(n,a){return Ae="useInsertionEffect",Yn(),om(a),vN(n,a)},useLayoutEffect:function(n,a){return Ae="useLayoutEffect",Yn(),om(a),gN(n,a)},useMemo:function(n,a){Ae="useMemo",Yn(),om(a);var o=lt.current;lt.current=ql;try{return SN(n,a)}finally{lt.current=o}},useReducer:function(n,a,o){Ae="useReducer",Yn();var f=lt.current;lt.current=ql;try{return uN(n,a,o)}finally{lt.current=f}},useRef:function(n){return Ae="useRef",Yn(),mN(n)},useState:function(n){Ae="useState",Yn();var a=lt.current;lt.current=ql;try{return a1(n)}finally{lt.current=a}},useDebugValue:function(n,a){return Ae="useDebugValue",Yn(),void 0},useDeferredValue:function(n){return Ae="useDeferredValue",Yn(),xN(n)},useTransition:function(){return Ae="useTransition",Yn(),wN()},useMutableSource:function(n,a,o){return Ae="useMutableSource",Yn(),void 0},useSyncExternalStore:function(n,a,o){return Ae="useSyncExternalStore",Yn(),dN(n,a,o)},useId:function(){return Ae="useId",Yn(),CN()},unstable_isNewReconciler:Se},lP={readContext:function(n){return oa(n)},useCallback:function(n,a){return Ae="useCallback",Je(),bN(n,a)},useContext:function(n){return Ae="useContext",Je(),oa(n)},useEffect:function(n,a){return Ae="useEffect",Je(),s1(n,a)},useImperativeHandle:function(n,a,o){return Ae="useImperativeHandle",Je(),yN(n,a,o)},useInsertionEffect:function(n,a){return Ae="useInsertionEffect",Je(),vN(n,a)},useLayoutEffect:function(n,a){return Ae="useLayoutEffect",Je(),gN(n,a)},useMemo:function(n,a){Ae="useMemo",Je();var o=lt.current;lt.current=ql;try{return SN(n,a)}finally{lt.current=o}},useReducer:function(n,a,o){Ae="useReducer",Je();var f=lt.current;lt.current=ql;try{return uN(n,a,o)}finally{lt.current=f}},useRef:function(n){return Ae="useRef",Je(),mN(n)},useState:function(n){Ae="useState",Je();var a=lt.current;lt.current=ql;try{return a1(n)}finally{lt.current=a}},useDebugValue:function(n,a){return Ae="useDebugValue",Je(),void 0},useDeferredValue:function(n){return Ae="useDeferredValue",Je(),xN(n)},useTransition:function(){return Ae="useTransition",Je(),wN()},useMutableSource:function(n,a,o){return Ae="useMutableSource",Je(),void 0},useSyncExternalStore:function(n,a,o){return Ae="useSyncExternalStore",Je(),dN(n,a,o)},useId:function(){return Ae="useId",Je(),CN()},unstable_isNewReconciler:Se},uP={readContext:function(n){return oa(n)},useCallback:function(n,a){return Ae="useCallback",Je(),d1(n,a)},useContext:function(n){return Ae="useContext",Je(),oa(n)},useEffect:function(n,a){return Ae="useEffect",Je(),Qg(n,a)},useImperativeHandle:function(n,a,o){return Ae="useImperativeHandle",Je(),c1(n,a,o)},useInsertionEffect:function(n,a){return Ae="useInsertionEffect",Je(),l1(n,a)},useLayoutEffect:function(n,a){return Ae="useLayoutEffect",Je(),u1(n,a)},useMemo:function(n,a){Ae="useMemo",Je();var o=lt.current;lt.current=cl;try{return p1(n,a)}finally{lt.current=o}},useReducer:function(n,a,o){Ae="useReducer",Je();var f=lt.current;lt.current=cl;try{return cN(n,a,o)}finally{lt.current=f}},useRef:function(n){return Ae="useRef",Je(),i1()},useState:function(n){Ae="useState",Je();var a=lt.current;lt.current=cl;try{return pN(n)}finally{lt.current=a}},useDebugValue:function(n,a){return Ae="useDebugValue",Je(),f1()},useDeferredValue:function(n){return Ae="useDeferredValue",Je(),ZD(n)},useTransition:function(){return Ae="useTransition",Je(),eP()},useMutableSource:function(n,a,o){return Ae="useMutableSource",Je(),void 0},useSyncExternalStore:function(n,a,o){return Ae="useSyncExternalStore",Je(),r1(n,a)},useId:function(){return Ae="useId",Je(),h1()},unstable_isNewReconciler:Se},cP={readContext:function(n){return oa(n)},useCallback:function(n,a){return Ae="useCallback",Je(),d1(n,a)},useContext:function(n){return Ae="useContext",Je(),oa(n)},useEffect:function(n,a){return Ae="useEffect",Je(),Qg(n,a)},useImperativeHandle:function(n,a,o){return Ae="useImperativeHandle",Je(),c1(n,a,o)},useInsertionEffect:function(n,a){return Ae="useInsertionEffect",Je(),l1(n,a)},useLayoutEffect:function(n,a){return Ae="useLayoutEffect",Je(),u1(n,a)},useMemo:function(n,a){Ae="useMemo",Je();var o=lt.current;lt.current=v1;try{return p1(n,a)}finally{lt.current=o}},useReducer:function(n,a,o){Ae="useReducer",Je();var f=lt.current;lt.current=v1;try{return fN(n,a,o)}finally{lt.current=f}},useRef:function(n){return Ae="useRef",Je(),i1()},useState:function(n){Ae="useState",Je();var a=lt.current;lt.current=v1;try{return hN(n)}finally{lt.current=a}},useDebugValue:function(n,a){return Ae="useDebugValue",Je(),f1()},useDeferredValue:function(n){return Ae="useDeferredValue",Je(),QD(n)},useTransition:function(){return Ae="useTransition",Je(),tP()},useMutableSource:function(n,a,o){return Ae="useMutableSource",Je(),void 0},useSyncExternalStore:function(n,a,o){return Ae="useSyncExternalStore",Je(),r1(n,a)},useId:function(){return Ae="useId",Je(),h1()},unstable_isNewReconciler:Se},ql={readContext:function(n){return _N(),oa(n)},useCallback:function(n,a){return Ae="useCallback",qt(),Yn(),bN(n,a)},useContext:function(n){return Ae="useContext",qt(),Yn(),oa(n)},useEffect:function(n,a){return Ae="useEffect",qt(),Yn(),s1(n,a)},useImperativeHandle:function(n,a,o){return Ae="useImperativeHandle",qt(),Yn(),yN(n,a,o)},useInsertionEffect:function(n,a){return Ae="useInsertionEffect",qt(),Yn(),vN(n,a)},useLayoutEffect:function(n,a){return Ae="useLayoutEffect",qt(),Yn(),gN(n,a)},useMemo:function(n,a){Ae="useMemo",qt(),Yn();var o=lt.current;lt.current=ql;try{return SN(n,a)}finally{lt.current=o}},useReducer:function(n,a,o){Ae="useReducer",qt(),Yn();var f=lt.current;lt.current=ql;try{return uN(n,a,o)}finally{lt.current=f}},useRef:function(n){return Ae="useRef",qt(),Yn(),mN(n)},useState:function(n){Ae="useState",qt(),Yn();var a=lt.current;lt.current=ql;try{return a1(n)}finally{lt.current=a}},useDebugValue:function(n,a){return Ae="useDebugValue",qt(),Yn(),void 0},useDeferredValue:function(n){return Ae="useDeferredValue",qt(),Yn(),xN(n)},useTransition:function(){return Ae="useTransition",qt(),Yn(),wN()},useMutableSource:function(n,a,o){return Ae="useMutableSource",qt(),Yn(),void 0},useSyncExternalStore:function(n,a,o){return Ae="useSyncExternalStore",qt(),Yn(),dN(n,a,o)},useId:function(){return Ae="useId",qt(),Yn(),CN()},unstable_isNewReconciler:Se},cl={readContext:function(n){return _N(),oa(n)},useCallback:function(n,a){return Ae="useCallback",qt(),Je(),d1(n,a)},useContext:function(n){return Ae="useContext",qt(),Je(),oa(n)},useEffect:function(n,a){return Ae="useEffect",qt(),Je(),Qg(n,a)},useImperativeHandle:function(n,a,o){return Ae="useImperativeHandle",qt(),Je(),c1(n,a,o)},useInsertionEffect:function(n,a){return Ae="useInsertionEffect",qt(),Je(),l1(n,a)},useLayoutEffect:function(n,a){return Ae="useLayoutEffect",qt(),Je(),u1(n,a)},useMemo:function(n,a){Ae="useMemo",qt(),Je();var o=lt.current;lt.current=cl;try{return p1(n,a)}finally{lt.current=o}},useReducer:function(n,a,o){Ae="useReducer",qt(),Je();var f=lt.current;lt.current=cl;try{return cN(n,a,o)}finally{lt.current=f}},useRef:function(n){return Ae="useRef",qt(),Je(),i1()},useState:function(n){Ae="useState",qt(),Je();var a=lt.current;lt.current=cl;try{return pN(n)}finally{lt.current=a}},useDebugValue:function(n,a){return Ae="useDebugValue",qt(),Je(),f1()},useDeferredValue:function(n){return Ae="useDeferredValue",qt(),Je(),ZD(n)},useTransition:function(){return Ae="useTransition",qt(),Je(),eP()},useMutableSource:function(n,a,o){return Ae="useMutableSource",qt(),Je(),void 0},useSyncExternalStore:function(n,a,o){return Ae="useSyncExternalStore",qt(),Je(),r1(n,a)},useId:function(){return Ae="useId",qt(),Je(),h1()},unstable_isNewReconciler:Se},v1={readContext:function(n){return _N(),oa(n)},useCallback:function(n,a){return Ae="useCallback",qt(),Je(),d1(n,a)},useContext:function(n){return Ae="useContext",qt(),Je(),oa(n)},useEffect:function(n,a){return Ae="useEffect",qt(),Je(),Qg(n,a)},useImperativeHandle:function(n,a,o){return Ae="useImperativeHandle",qt(),Je(),c1(n,a,o)},useInsertionEffect:function(n,a){return Ae="useInsertionEffect",qt(),Je(),l1(n,a)},useLayoutEffect:function(n,a){return Ae="useLayoutEffect",qt(),Je(),u1(n,a)},useMemo:function(n,a){Ae="useMemo",qt(),Je();var o=lt.current;lt.current=cl;try{return p1(n,a)}finally{lt.current=o}},useReducer:function(n,a,o){Ae="useReducer",qt(),Je();var f=lt.current;lt.current=cl;try{return fN(n,a,o)}finally{lt.current=f}},useRef:function(n){return Ae="useRef",qt(),Je(),i1()},useState:function(n){Ae="useState",qt(),Je();var a=lt.current;lt.current=cl;try{return hN(n)}finally{lt.current=a}},useDebugValue:function(n,a){return Ae="useDebugValue",qt(),Je(),f1()},useDeferredValue:function(n){return Ae="useDeferredValue",qt(),Je(),QD(n)},useTransition:function(){return Ae="useTransition",qt(),Je(),tP()},useMutableSource:function(n,a,o){return Ae="useMutableSource",qt(),Je(),void 0},useSyncExternalStore:function(n,a,o){return Ae="useSyncExternalStore",qt(),Je(),r1(n,a)},useId:function(){return Ae="useId",qt(),Je(),h1()},unstable_isNewReconciler:Se}}var ff=t.unstable_now,fP=0,g1=-1,Jg=-1,y1=-1,EN=!1,b1=!1;function dP(){return EN}function Vj(){b1=!0}function Hj(){EN=!1,b1=!1}function Wj(){EN=b1,b1=!1}function pP(){return fP}function hP(){fP=ff()}function TN(n){Jg=ff(),n.actualStartTime<0&&(n.actualStartTime=ff())}function mP(n){Jg=-1}function S1(n,a){if(Jg>=0){var o=ff()-Jg;n.actualDuration+=o,a&&(n.selfBaseDuration=o),Jg=-1}}function Kl(n){if(g1>=0){var a=ff()-g1;g1=-1;for(var o=n.return;o!==null;){switch(o.tag){case x:var f=o.stateNode;f.effectDuration+=a;return;case B:var p=o.stateNode;p.effectDuration+=a;return}o=o.return}}}function NN(n){if(y1>=0){var a=ff()-y1;y1=-1;for(var o=n.return;o!==null;){switch(o.tag){case x:var f=o.stateNode;f!==null&&(f.passiveEffectDuration+=a);return;case B:var p=o.stateNode;p!==null&&(p.passiveEffectDuration+=a);return}o=o.return}}}function Xl(){g1=ff()}function RN(){y1=ff()}function ON(n){for(var a=n.child;a;)n.actualDuration+=a.actualDuration,a=a.sibling}function ip(n,a){return{value:n,source:a,stack:Ma(a),digest:null}}function AN(n,a,o){return{value:n,source:null,stack:o??null,digest:a??null}}function Gj(n,a){return!0}function kN(n,a){try{var o=Gj(n,a);if(o===!1)return;var f=a.value,p=a.source,y=a.stack,w=y!==null?y:"";if(f!=null&&f._suppressLogging){if(n.tag===v)return;console.error(f)}var T=p?It(p):null,O=T?"The above error occurred in the <"+T+"> component:":"The above error occurred in one of your React components:",F;if(n.tag===x)F=`Consider adding an error boundary to your tree to customize error handling behavior.
|
|
Visit https://reactjs.org/link/error-boundaries to learn more about error boundaries.`;else{var H=It(n)||"Anonymous";F="React will try to recreate this component tree from scratch "+("using the error boundary you provided, "+H+".")}var ee=O+`
|
|
`+w+`
|
|
|
|
`+(""+F);console.error(ee)}catch(J){setTimeout(function(){throw J})}}var Yj=typeof WeakMap=="function"?WeakMap:Map;function vP(n,a,o){var f=Xu(Xn,o);f.tag=kT,f.payload={element:null};var p=a.value;return f.callback=function(){B9(p),kN(n,a)},f}function DN(n,a,o){var f=Xu(Xn,o);f.tag=kT;var p=n.type.getDerivedStateFromError;if(typeof p=="function"){var y=a.value;f.payload=function(){return p(y)},f.callback=function(){NM(n),kN(n,a)}}var w=n.stateNode;return w!==null&&typeof w.componentDidCatch=="function"&&(f.callback=function(){NM(n),kN(n,a),typeof p!="function"&&F9(this);var O=a.value,F=a.stack;this.componentDidCatch(O,{componentStack:F!==null?F:""}),typeof p!="function"&&(bi(n.lanes,Ut)||u("%s: Error boundaries should implement getDerivedStateFromError(). In that method, return a state update to display an error message or fallback UI.",It(n)||"Unknown"))}),f}function gP(n,a,o){var f=n.pingCache,p;if(f===null?(f=n.pingCache=new Yj,p=new Set,f.set(a,p)):(p=f.get(a),p===void 0&&(p=new Set,f.set(a,p))),!p.has(o)){p.add(o);var y=U9.bind(null,n,a,o);ya&&my(n,o),a.then(y,y)}}function qj(n,a,o,f){var p=n.updateQueue;if(p===null){var y=new Set;y.add(o),n.updateQueue=y}else p.add(o)}function Kj(n,a){var o=n.tag;if((n.mode&yn)===Rt&&(o===m||o===z||o===X)){var f=n.alternate;f?(n.updateQueue=f.updateQueue,n.memoizedState=f.memoizedState,n.lanes=f.lanes):(n.updateQueue=null,n.memoizedState=null)}}function yP(n){var a=n;do{if(a.tag===$&&Pj(a))return a;a=a.return}while(a!==null);return null}function bP(n,a,o,f,p){if((n.mode&yn)===Rt){if(n===a)n.flags|=Ha;else{if(n.flags|=In,o.flags|=Sv,o.flags&=~(Qs|sd),o.tag===v){var y=o.alternate;if(y===null)o.tag=ve;else{var w=Xu(Xn,Ut);w.tag=HS,sf(o,w,Ut)}}o.lanes=un(o.lanes,Ut)}return n}return n.flags|=Ha,n.lanes=p,n}function Xj(n,a,o,f,p){if(o.flags|=sd,ya&&my(n,p),f!==null&&typeof f=="object"&&typeof f.then=="function"){var y=f;Kj(o),Za()&&o.mode&yn&&uD();var w=yP(a);if(w!==null){w.flags&=~Xs,bP(w,a,o,n,p),w.mode&yn&&gP(n,y,p),qj(w,n,y);return}else{if(!C0(p)){gP(n,y,p),fR();return}var T=new Error("A component suspended while responding to synchronous input. This will cause the UI to be replaced with a loading indicator. To fix, updates that suspend should be wrapped with startTransition.");f=T}}else if(Za()&&o.mode&yn){uD();var O=yP(a);if(O!==null){(O.flags&Ha)===kt&&(O.flags|=Xs),bP(O,a,o,n,p),_T(ip(f,o));return}}f=ip(f,o),O9(f);var F=a;do{switch(F.tag){case x:{var H=f;F.flags|=Ha;var ee=xd(p);F.lanes=un(F.lanes,ee);var J=vP(F,H,ee);MT(F,J);return}case v:var he=f,me=F.type,_e=F.stateNode;if((F.flags&In)===kt&&(typeof me.getDerivedStateFromError=="function"||_e!==null&&typeof _e.componentDidCatch=="function"&&!yM(_e))){F.flags|=Ha;var ut=xd(p);F.lanes=un(F.lanes,ut);var Ct=DN(F,he,ut);MT(F,Ct);return}break}F=F.return}while(F!==null)}function Zj(){return null}var ey=r.ReactCurrentOwner,fl=!1,PN,ty,MN,IN,LN,op,FN,x1;PN={},ty={},MN={},IN={},LN={},op=!1,FN={},x1={};function $i(n,a,o,f){n===null?a.child=FD(a,null,o,f):a.child=tm(a,n.child,o,f)}function Qj(n,a,o,f){a.child=tm(a,n.child,null,f),a.child=tm(a,null,o,f)}function SP(n,a,o,f,p){if(a.type!==a.elementType){var y=o.propTypes;y&&dr(y,f,"prop",on(o))}var w=o.render,T=a.ref,O,F;em(a,p),dd(a);{if(ey.current=a,$r(!0),O=sm(n,a,w,f,T,p),F=lm(),a.mode&Dr){ta(!0);try{O=sm(n,a,w,f,T,p),F=lm()}finally{ta(!1)}}$r(!1)}return Mc(),n!==null&&!fl?($D(n,a,p),Zu(n,a,p)):(Za()&&F&&yT(a),a.flags|=Dc,$i(n,a,O,p),a.child)}function xP(n,a,o,f,p){if(n===null){var y=o.type;if(rV(y)&&o.compare===null&&o.defaultProps===void 0){var w=y;return w=vm(y),a.tag=X,a.type=w,UN(a,y),wP(n,a,w,f,p)}{var T=y.propTypes;T&&dr(T,f,"prop",on(y))}var O=wR(o.type,null,f,a,a.mode,p);return O.ref=a.ref,O.return=a,a.child=O,O}{var F=o.type,H=F.propTypes;H&&dr(H,f,"prop",on(F))}var ee=n.child,J=GN(n,p);if(!J){var he=ee.memoizedProps,me=o.compare;if(me=me!==null?me:Xc,me(he,f)&&n.ref===a.ref)return Zu(n,a,p)}a.flags|=Dc;var _e=fp(ee,f);return _e.ref=a.ref,_e.return=a,a.child=_e,_e}function wP(n,a,o,f,p){if(a.type!==a.elementType){var y=a.elementType;if(y.$$typeof===an){var w=y,T=w._payload,O=w._init;try{y=O(T)}catch{y=null}var F=y&&y.propTypes;F&&dr(F,f,"prop",on(y))}}if(n!==null){var H=n.memoizedProps;if(Xc(H,f)&&n.ref===a.ref&&a.type===n.type)if(fl=!1,a.pendingProps=f=H,GN(n,p))(n.flags&Sv)!==kt&&(fl=!0);else return a.lanes=n.lanes,Zu(n,a,p)}return zN(n,a,o,f,p)}function CP(n,a,o){var f=a.pendingProps,p=f.children,y=n!==null?n.memoizedState:null;if(f.mode==="hidden"||pe)if((a.mode&yn)===Rt){var w={baseLanes:Me,cachePool:null,transitions:null};a.memoizedState=w,M1(a,o)}else if(bi(o,Ui)){var ee={baseLanes:Me,cachePool:null,transitions:null};a.memoizedState=ee;var J=y!==null?y.baseLanes:o;M1(a,J)}else{var T=null,O;if(y!==null){var F=y.baseLanes;O=un(F,o)}else O=o;a.lanes=a.childLanes=Ui;var H={baseLanes:O,cachePool:T,transitions:null};return a.memoizedState=H,a.updateQueue=null,M1(a,O),null}else{var he;y!==null?(he=un(y.baseLanes,o),a.memoizedState=null):he=o,M1(a,he)}return $i(n,a,p,o),a.child}function Jj(n,a,o){var f=a.pendingProps;return $i(n,a,f,o),a.child}function e$(n,a,o){var f=a.pendingProps.children;return $i(n,a,f,o),a.child}function t$(n,a,o){{a.flags|=ln;{var f=a.stateNode;f.effectDuration=0,f.passiveEffectDuration=0}}var p=a.pendingProps,y=p.children;return $i(n,a,y,o),a.child}function _P(n,a){var o=a.ref;(n===null&&o!==null||n!==null&&n.ref!==o)&&(a.flags|=La,a.flags|=Js)}function zN(n,a,o,f,p){if(a.type!==a.elementType){var y=o.propTypes;y&&dr(y,f,"prop",on(o))}var w;{var T=qh(a,o,!0);w=Kh(a,T)}var O,F;em(a,p),dd(a);{if(ey.current=a,$r(!0),O=sm(n,a,o,f,w,p),F=lm(),a.mode&Dr){ta(!0);try{O=sm(n,a,o,f,w,p),F=lm()}finally{ta(!1)}}$r(!1)}return Mc(),n!==null&&!fl?($D(n,a,p),Zu(n,a,p)):(Za()&&F&&yT(a),a.flags|=Dc,$i(n,a,O,p),a.child)}function EP(n,a,o,f,p){{switch(yV(a)){case!1:{var y=a.stateNode,w=a.type,T=new w(a.memoizedProps,y.context),O=T.state;y.updater.enqueueSetState(y,O,null);break}case!0:{a.flags|=In,a.flags|=Ha;var F=new Error("Simulated error coming from DevTools"),H=xd(p);a.lanes=un(a.lanes,H);var ee=DN(a,ip(F,a),H);MT(a,ee);break}}if(a.type!==a.elementType){var J=o.propTypes;J&&dr(J,f,"prop",on(o))}}var he;Wl(o)?(he=!0,PS(a)):he=!1,em(a,p);var me=a.stateNode,_e;me===null?(C1(n,a),DD(a,o,f),GT(a,o,f,p),_e=!0):n===null?_e=Nj(a,o,f,p):_e=Rj(n,a,o,f,p);var ut=BN(n,a,o,_e,he,p);{var Ct=a.stateNode;_e&&Ct.props!==f&&(op||u("It looks like %s is reassigning its own `this.props` while rendering. This is not supported and can lead to confusing bugs.",It(a)||"a component"),op=!0)}return ut}function BN(n,a,o,f,p,y){_P(n,a);var w=(a.flags&In)!==kt;if(!f&&!w)return p&&iD(a,o,!1),Zu(n,a,y);var T=a.stateNode;ey.current=a;var O;if(w&&typeof o.getDerivedStateFromError!="function")O=null,mP();else{dd(a);{if($r(!0),O=T.render(),a.mode&Dr){ta(!0);try{T.render()}finally{ta(!1)}}$r(!1)}Mc()}return a.flags|=Dc,n!==null&&w?Qj(n,a,O,y):$i(n,a,O,y),a.memoizedState=T.state,p&&iD(a,o,!0),a.child}function TP(n){var a=n.stateNode;a.pendingContext?rD(n,a.pendingContext,a.pendingContext!==a.context):a.context&&rD(n,a.context,!1),QT(n,a.containerInfo)}function n$(n,a,o){if(TP(a),n===null)throw new Error("Should have a current fiber. This is a bug in React.");var f=a.pendingProps,p=a.memoizedState,y=p.element;_D(n,a),qS(a,f,null,o);var w=a.memoizedState;a.stateNode;var T=w.element;if(p.isDehydrated){var O={element:T,isDehydrated:!1,cache:w.cache,pendingSuspenseBoundaries:w.pendingSuspenseBoundaries,transitions:w.transitions},F=a.updateQueue;if(F.baseState=O,a.memoizedState=O,a.flags&Xs){var H=ip(new Error("There was an error while hydrating. Because the error happened outside of a Suspense boundary, the entire root will switch to client rendering."),a);return NP(n,a,T,o,H)}else if(T!==y){var ee=ip(new Error("This root received an early update, before anything was able hydrate. Switched the entire root to client rendering."),a);return NP(n,a,T,o,ee)}else{oj(a);var J=FD(a,null,T,o);a.child=J;for(var he=J;he;)he.flags=he.flags&~zr|Zs,he=he.sibling}}else{if(Qh(),T===y)return Zu(n,a,o);$i(n,a,T,o)}return a.child}function NP(n,a,o,f,p){return Qh(),_T(p),a.flags|=Xs,$i(n,a,o,f),a.child}function r$(n,a,o){BD(a),n===null&&CT(a);var f=a.type,p=a.pendingProps,y=n!==null?n.memoizedProps:null,w=p.children,T=_g(f,p);return T?w=null:y!==null&&_g(f,y)&&(a.flags|=od),_P(n,a),$i(n,a,w,o),a.child}function a$(n,a){return n===null&&CT(a),null}function i$(n,a,o,f){C1(n,a);var p=a.pendingProps,y=o,w=y._payload,T=y._init,O=T(w);a.type=O;var F=a.tag=aV(O),H=ll(O,p),ee;switch(F){case m:return UN(a,O),a.type=O=vm(O),ee=zN(null,a,O,H,f),ee;case v:return a.type=O=vR(O),ee=EP(null,a,O,H,f),ee;case z:return a.type=O=gR(O),ee=SP(null,a,O,H,f),ee;case K:{if(a.type!==a.elementType){var J=O.propTypes;J&&dr(J,H,"prop",on(O))}return ee=xP(null,a,O,ll(O.type,H),f),ee}}var he="";throw O!==null&&typeof O=="object"&&O.$$typeof===an&&(he=" Did you wrap a component in React.lazy() more than once?"),new Error("Element type is invalid. Received a promise that resolves to: "+O+". "+("Lazy element type must resolve to a class or function."+he))}function o$(n,a,o,f,p){C1(n,a),a.tag=v;var y;return Wl(o)?(y=!0,PS(a)):y=!1,em(a,p),DD(a,o,f),GT(a,o,f,p),BN(null,a,o,!0,y,p)}function s$(n,a,o,f){C1(n,a);var p=a.pendingProps,y;{var w=qh(a,o,!1);y=Kh(a,w)}em(a,f);var T,O;dd(a);{if(o.prototype&&typeof o.prototype.render=="function"){var F=on(o)||"Unknown";PN[F]||(u("The <%s /> component appears to have a render method, but doesn't extend React.Component. This is likely to cause errors. Change %s to extend React.Component instead.",F,F),PN[F]=!0)}a.mode&Dr&&sl.recordLegacyContextWarning(a,null),$r(!0),ey.current=a,T=sm(null,a,o,p,y,f),O=lm(),$r(!1)}if(Mc(),a.flags|=Dc,typeof T=="object"&&T!==null&&typeof T.render=="function"&&T.$$typeof===void 0){var H=on(o)||"Unknown";ty[H]||(u("The <%s /> component appears to be a function component that returns a class instance. Change %s to a class that extends React.Component instead. If you can't use a class try assigning the prototype on the function as a workaround. `%s.prototype = React.Component.prototype`. Don't use an arrow function since it cannot be called with `new` by React.",H,H,H),ty[H]=!0)}if(typeof T=="object"&&T!==null&&typeof T.render=="function"&&T.$$typeof===void 0){{var ee=on(o)||"Unknown";ty[ee]||(u("The <%s /> component appears to be a function component that returns a class instance. Change %s to a class that extends React.Component instead. If you can't use a class try assigning the prototype on the function as a workaround. `%s.prototype = React.Component.prototype`. Don't use an arrow function since it cannot be called with `new` by React.",ee,ee,ee),ty[ee]=!0)}a.tag=v,a.memoizedState=null,a.updateQueue=null;var J=!1;return Wl(o)?(J=!0,PS(a)):J=!1,a.memoizedState=T.state!==null&&T.state!==void 0?T.state:null,PT(a),kD(a,T),GT(a,o,p,f),BN(null,a,o,!0,J,f)}else{if(a.tag=m,a.mode&Dr){ta(!0);try{T=sm(null,a,o,p,y,f),O=lm()}finally{ta(!1)}}return Za()&&O&&yT(a),$i(null,a,T,f),UN(a,o),a.child}}function UN(n,a){{if(a&&a.childContextTypes&&u("%s(...): childContextTypes cannot be defined on a function component.",a.displayName||a.name||"Component"),n.ref!==null){var o="",f=$a();f&&(o+=`
|
|
|
|
Check the render method of \``+f+"`.");var p=f||"",y=n._debugSource;y&&(p=y.fileName+":"+y.lineNumber),LN[p]||(LN[p]=!0,u("Function components cannot be given refs. Attempts to access this ref will fail. Did you mean to use React.forwardRef()?%s",o))}if(typeof a.getDerivedStateFromProps=="function"){var w=on(a)||"Unknown";IN[w]||(u("%s: Function components do not support getDerivedStateFromProps.",w),IN[w]=!0)}if(typeof a.contextType=="object"&&a.contextType!==null){var T=on(a)||"Unknown";MN[T]||(u("%s: Function components do not support contextType.",T),MN[T]=!0)}}}var jN={dehydrated:null,treeContext:null,retryLane:Wr};function $N(n){return{baseLanes:n,cachePool:Zj(),transitions:null}}function l$(n,a){var o=null;return{baseLanes:un(n.baseLanes,a),cachePool:o,transitions:n.transitions}}function u$(n,a,o,f){if(a!==null){var p=a.memoizedState;if(p===null)return!1}return tN(n,Gg)}function c$(n,a){return wd(n.childLanes,a)}function RP(n,a,o){var f=a.pendingProps;bV(a)&&(a.flags|=In);var p=ul.current,y=!1,w=(a.flags&In)!==kt;if(w||u$(p,n)?(y=!0,a.flags&=~In):(n===null||n.memoizedState!==null)&&(p=Dj(p,jD)),p=rm(p),uf(a,p),n===null){CT(a);var T=a.memoizedState;if(T!==null){var O=T.dehydrated;if(O!==null)return m$(a,O)}var F=f.children,H=f.fallback;if(y){var ee=f$(a,F,H,o),J=a.child;return J.memoizedState=$N(o),a.memoizedState=jN,ee}else return VN(a,F)}else{var he=n.memoizedState;if(he!==null){var me=he.dehydrated;if(me!==null)return v$(n,a,w,f,me,he,o)}if(y){var _e=f.fallback,ut=f.children,Ct=p$(n,a,ut,_e,o),yt=a.child,On=n.child.memoizedState;return yt.memoizedState=On===null?$N(o):l$(On,o),yt.childLanes=c$(n,o),a.memoizedState=jN,Ct}else{var Sn=f.children,le=d$(n,a,Sn,o);return a.memoizedState=null,le}}}function VN(n,a,o){var f=n.mode,p={mode:"visible",children:a},y=HN(p,f);return y.return=n,n.child=y,y}function f$(n,a,o,f){var p=n.mode,y=n.child,w={mode:"hidden",children:a},T,O;return(p&yn)===Rt&&y!==null?(T=y,T.childLanes=Me,T.pendingProps=w,n.mode&Un&&(T.actualDuration=0,T.actualStartTime=-1,T.selfBaseDuration=0,T.treeBaseDuration=0),O=gf(o,p,f,null)):(T=HN(w,p),O=gf(o,p,f,null)),T.return=n,O.return=n,T.sibling=O,n.child=T,O}function HN(n,a,o){return OM(n,a,Me,null)}function OP(n,a){return fp(n,a)}function d$(n,a,o,f){var p=n.child,y=p.sibling,w=OP(p,{mode:"visible",children:o});if((a.mode&yn)===Rt&&(w.lanes=f),w.return=a,w.sibling=null,y!==null){var T=a.deletions;T===null?(a.deletions=[y],a.flags|=Tu):T.push(y)}return a.child=w,w}function p$(n,a,o,f,p){var y=a.mode,w=n.child,T=w.sibling,O={mode:"hidden",children:o},F;if((y&yn)===Rt&&a.child!==w){var H=a.child;F=H,F.childLanes=Me,F.pendingProps=O,a.mode&Un&&(F.actualDuration=0,F.actualStartTime=-1,F.selfBaseDuration=w.selfBaseDuration,F.treeBaseDuration=w.treeBaseDuration),a.deletions=null}else F=OP(w,O),F.subtreeFlags=w.subtreeFlags&ds;var ee;return T!==null?ee=fp(T,f):(ee=gf(f,y,p,null),ee.flags|=zr),ee.return=a,F.return=a,F.sibling=ee,a.child=F,ee}function w1(n,a,o,f){f!==null&&_T(f),tm(a,n.child,null,o);var p=a.pendingProps,y=p.children,w=VN(a,y);return w.flags|=zr,a.memoizedState=null,w}function h$(n,a,o,f,p){var y=a.mode,w={mode:"visible",children:o},T=HN(w,y),O=gf(f,y,p,null);return O.flags|=zr,T.return=a,O.return=a,T.sibling=O,a.child=T,(a.mode&yn)!==Rt&&tm(a,n.child,null,p),O}function m$(n,a,o){return(n.mode&yn)===Rt?(u("Cannot hydrate Suspense in legacy mode. Switch from ReactDOM.hydrate(element, container) to ReactDOMClient.hydrateRoot(container, <App />).render(element) or remove the Suspense components from the server rendered components."),n.lanes=Ut):Mg(a)?n.lanes=Du:n.lanes=Ui,null}function v$(n,a,o,f,p,y,w){if(o)if(a.flags&Xs){a.flags&=~Xs;var le=AN(new Error("There was an error while hydrating this Suspense boundary. Switched to client rendering."));return w1(n,a,w,le)}else{if(a.memoizedState!==null)return a.child=n.child,a.flags|=In,null;var Ee=f.children,ue=f.fallback,He=h$(n,a,Ee,ue,w),ct=a.child;return ct.memoizedState=$N(w),a.memoizedState=jN,He}else{if(aj(),(a.mode&yn)===Rt)return w1(n,a,w,null);if(Mg(p)){var T,O,F;{var H=HE(p);T=H.digest,O=H.message,F=H.stack}var ee;O?ee=new Error(O):ee=new Error("The server could not finish this Suspense boundary, likely due to an error during server rendering. Switched to client rendering.");var J=AN(ee,T,F);return w1(n,a,w,J)}var he=bi(w,n.childLanes);if(fl||he){var me=P1();if(me!==null){var _e=wh(me,w);if(_e!==Wr&&_e!==y.retryLane){y.retryLane=_e;var ut=Xn;so(n,_e),Na(me,n,_e,ut)}}fR();var Ct=AN(new Error("This Suspense boundary received an update before it finished hydrating. This caused the boundary to switch to client rendering. The usual way to fix this is to wrap the original update in startTransition."));return w1(n,a,w,Ct)}else if(OS(p)){a.flags|=In,a.child=n.child;var yt=j9.bind(null,n);return WE(p,yt),null}else{sj(a,p,y.treeContext);var On=f.children,Sn=VN(a,On);return Sn.flags|=Zs,Sn}}}function AP(n,a,o){n.lanes=un(n.lanes,a);var f=n.alternate;f!==null&&(f.lanes=un(f.lanes,a)),OT(n.return,a,o)}function g$(n,a,o){for(var f=a;f!==null;){if(f.tag===$){var p=f.memoizedState;p!==null&&AP(f,o,n)}else if(f.tag===be)AP(f,o,n);else if(f.child!==null){f.child.return=f,f=f.child;continue}if(f===n)return;for(;f.sibling===null;){if(f.return===null||f.return===n)return;f=f.return}f.sibling.return=f.return,f=f.sibling}}function y$(n){for(var a=n,o=null;a!==null;){var f=a.alternate;f!==null&&t1(f)===null&&(o=a),a=a.sibling}return o}function b$(n){if(n!==void 0&&n!=="forwards"&&n!=="backwards"&&n!=="together"&&!FN[n])if(FN[n]=!0,typeof n=="string")switch(n.toLowerCase()){case"together":case"forwards":case"backwards":{u('"%s" is not a valid value for revealOrder on <SuspenseList />. Use lowercase "%s" instead.',n,n.toLowerCase());break}case"forward":case"backward":{u('"%s" is not a valid value for revealOrder on <SuspenseList />. React uses the -s suffix in the spelling. Use "%ss" instead.',n,n.toLowerCase());break}default:u('"%s" is not a supported revealOrder on <SuspenseList />. Did you mean "together", "forwards" or "backwards"?',n);break}else u('%s is not a supported value for revealOrder on <SuspenseList />. Did you mean "together", "forwards" or "backwards"?',n)}function S$(n,a){n!==void 0&&!x1[n]&&(n!=="collapsed"&&n!=="hidden"?(x1[n]=!0,u('"%s" is not a supported value for tail on <SuspenseList />. Did you mean "collapsed" or "hidden"?',n)):a!=="forwards"&&a!=="backwards"&&(x1[n]=!0,u('<SuspenseList tail="%s" /> is only valid if revealOrder is "forwards" or "backwards". Did you mean to specify revealOrder="forwards"?',n)))}function kP(n,a){{var o=Dt(n),f=!o&&typeof Pi(n)=="function";if(o||f){var p=o?"array":"iterable";return u("A nested %s was passed to row #%s in <SuspenseList />. Wrap it in an additional SuspenseList to configure its revealOrder: <SuspenseList revealOrder=...> ... <SuspenseList revealOrder=...>{%s}</SuspenseList> ... </SuspenseList>",p,a,p),!1}}return!0}function x$(n,a){if((a==="forwards"||a==="backwards")&&n!==void 0&&n!==null&&n!==!1)if(Dt(n)){for(var o=0;o<n.length;o++)if(!kP(n[o],o))return}else{var f=Pi(n);if(typeof f=="function"){var p=f.call(n);if(p)for(var y=p.next(),w=0;!y.done;y=p.next()){if(!kP(y.value,w))return;w++}}else u('A single row was passed to a <SuspenseList revealOrder="%s" />. This is not useful since it needs multiple rows. Did you mean to pass multiple children or an array?',a)}}function WN(n,a,o,f,p){var y=n.memoizedState;y===null?n.memoizedState={isBackwards:a,rendering:null,renderingStartTime:0,last:f,tail:o,tailMode:p}:(y.isBackwards=a,y.rendering=null,y.renderingStartTime=0,y.last=f,y.tail=o,y.tailMode=p)}function DP(n,a,o){var f=a.pendingProps,p=f.revealOrder,y=f.tail,w=f.children;b$(p),S$(y,p),x$(w,p),$i(n,a,w,o);var T=ul.current,O=tN(T,Gg);if(O)T=nN(T,Gg),a.flags|=In;else{var F=n!==null&&(n.flags&In)!==kt;F&&g$(a,a.child,o),T=rm(T)}if(uf(a,T),(a.mode&yn)===Rt)a.memoizedState=null;else switch(p){case"forwards":{var H=y$(a.child),ee;H===null?(ee=a.child,a.child=null):(ee=H.sibling,H.sibling=null),WN(a,!1,ee,H,y);break}case"backwards":{var J=null,he=a.child;for(a.child=null;he!==null;){var me=he.alternate;if(me!==null&&t1(me)===null){a.child=he;break}var _e=he.sibling;he.sibling=J,J=he,he=_e}WN(a,!0,J,null,y);break}case"together":{WN(a,!1,null,null,void 0);break}default:a.memoizedState=null}return a.child}function w$(n,a,o){QT(a,a.stateNode.containerInfo);var f=a.pendingProps;return n===null?a.child=tm(a,null,f,o):$i(n,a,f,o),a.child}var PP=!1;function C$(n,a,o){var f=a.type,p=f._context,y=a.pendingProps,w=a.memoizedProps,T=y.value;{"value"in y||PP||(PP=!0,u("The `value` prop is required for the `<Context.Provider>`. Did you misspell it or forget to pass it?"));var O=a.type.propTypes;O&&dr(O,y,"prop","Context.Provider")}if(SD(a,p,T),w!==null){var F=w.value;if(qa(F,T)){if(w.children===y.children&&!kS())return Zu(n,a,o)}else gj(a,p,o)}var H=y.children;return $i(n,a,H,o),a.child}var MP=!1;function _$(n,a,o){var f=a.type;f._context===void 0?f!==f.Consumer&&(MP||(MP=!0,u("Rendering <Context> directly is not supported and will be removed in a future major release. Did you mean to render <Context.Consumer> instead?"))):f=f._context;var p=a.pendingProps,y=p.children;typeof y!="function"&&u("A context consumer was rendered with multiple children, or a child that isn't a function. A context consumer expects a single child that is a function. If you did pass a function, make sure there is no trailing or leading whitespace around it."),em(a,o);var w=oa(f);dd(a);var T;return ey.current=a,$r(!0),T=y(w),$r(!1),Mc(),a.flags|=Dc,$i(n,a,T,o),a.child}function ny(){fl=!0}function C1(n,a){(a.mode&yn)===Rt&&n!==null&&(n.alternate=null,a.alternate=null,a.flags|=zr)}function Zu(n,a,o){return n!==null&&(a.dependencies=n.dependencies),mP(),hy(a.lanes),bi(o,a.childLanes)?(Oj(n,a),a.child):null}function E$(n,a,o){{var f=a.return;if(f===null)throw new Error("Cannot swap the root fiber.");if(n.alternate=null,a.alternate=null,o.index=a.index,o.sibling=a.sibling,o.return=a.return,o.ref=a.ref,a===f.child)f.child=o;else{var p=f.child;if(p===null)throw new Error("Expected parent to have a child.");for(;p.sibling!==a;)if(p=p.sibling,p===null)throw new Error("Expected to find the previous sibling.");p.sibling=o}var y=f.deletions;return y===null?(f.deletions=[n],f.flags|=Tu):y.push(n),o.flags|=zr,o}}function GN(n,a){var o=n.lanes;return!!bi(o,a)}function T$(n,a,o){switch(a.tag){case x:TP(a),a.stateNode,Qh();break;case _:BD(a);break;case v:{var f=a.type;Wl(f)&&PS(a);break}case C:QT(a,a.stateNode.containerInfo);break;case I:{var p=a.memoizedProps.value,y=a.type._context;SD(a,y,p);break}case B:{var w=bi(o,a.childLanes);w&&(a.flags|=ln);{var T=a.stateNode;T.effectDuration=0,T.passiveEffectDuration=0}}break;case $:{var O=a.memoizedState;if(O!==null){if(O.dehydrated!==null)return uf(a,rm(ul.current)),a.flags|=In,null;var F=a.child,H=F.childLanes;if(bi(o,H))return RP(n,a,o);uf(a,rm(ul.current));var ee=Zu(n,a,o);return ee!==null?ee.sibling:null}else uf(a,rm(ul.current));break}case be:{var J=(n.flags&In)!==kt,he=bi(o,a.childLanes);if(J){if(he)return DP(n,a,o);a.flags|=In}var me=a.memoizedState;if(me!==null&&(me.rendering=null,me.tail=null,me.lastEffect=null),uf(a,ul.current),he)break;return null}case ie:case ce:return a.lanes=Me,CP(n,a,o)}return Zu(n,a,o)}function IP(n,a,o){if(a._debugNeedsRemount&&n!==null)return E$(n,a,wR(a.type,a.key,a.pendingProps,a._debugOwner||null,a.mode,a.lanes));if(n!==null){var f=n.memoizedProps,p=a.pendingProps;if(f!==p||kS()||a.type!==n.type)fl=!0;else{var y=GN(n,o);if(!y&&(a.flags&In)===kt)return fl=!1,T$(n,a,o);(n.flags&Sv)!==kt?fl=!0:fl=!1}}else if(fl=!1,Za()&&QU(a)){var w=a.index,T=JU();lD(a,T,w)}switch(a.lanes=Me,a.tag){case b:return s$(n,a,a.type,o);case de:{var O=a.elementType;return i$(n,a,O,o)}case m:{var F=a.type,H=a.pendingProps,ee=a.elementType===F?H:ll(F,H);return zN(n,a,F,ee,o)}case v:{var J=a.type,he=a.pendingProps,me=a.elementType===J?he:ll(J,he);return EP(n,a,J,me,o)}case x:return n$(n,a,o);case _:return r$(n,a,o);case R:return a$(n,a);case $:return RP(n,a,o);case C:return w$(n,a,o);case z:{var _e=a.type,ut=a.pendingProps,Ct=a.elementType===_e?ut:ll(_e,ut);return SP(n,a,_e,Ct,o)}case A:return Jj(n,a,o);case M:return e$(n,a,o);case B:return t$(n,a,o);case I:return C$(n,a,o);case j:return _$(n,a,o);case K:{var yt=a.type,On=a.pendingProps,Sn=ll(yt,On);if(a.type!==a.elementType){var le=yt.propTypes;le&&dr(le,Sn,"prop",on(yt))}return Sn=ll(yt.type,Sn),xP(n,a,yt,Sn,o)}case X:return wP(n,a,a.type,a.pendingProps,o);case ve:{var Ee=a.type,ue=a.pendingProps,He=a.elementType===Ee?ue:ll(Ee,ue);return o$(n,a,Ee,He,o)}case be:return DP(n,a,o);case Xe:break;case ie:return CP(n,a,o)}throw new Error("Unknown unit of work tag ("+a.tag+"). This error is likely caused by a bug in React. Please file an issue.")}function um(n){n.flags|=ln}function LP(n){n.flags|=La,n.flags|=Js}var FP,YN,zP,BP;FP=function(n,a,o,f){for(var p=a.child;p!==null;){if(p.tag===_||p.tag===R)EE(n,p.stateNode);else if(p.tag!==C){if(p.child!==null){p.child.return=p,p=p.child;continue}}if(p===a)return;for(;p.sibling===null;){if(p.return===null||p.return===a)return;p=p.return}p.sibling.return=p.return,p=p.sibling}},YN=function(n,a){},zP=function(n,a,o,f,p){var y=n.memoizedProps;if(y!==f){var w=a.stateNode,T=JT(),O=NE(w,o,y,f,p,T);a.updateQueue=O,O&&um(a)}},BP=function(n,a,o,f){o!==f&&um(a)};function ry(n,a){if(!Za())switch(n.tailMode){case"hidden":{for(var o=n.tail,f=null;o!==null;)o.alternate!==null&&(f=o),o=o.sibling;f===null?n.tail=null:f.sibling=null;break}case"collapsed":{for(var p=n.tail,y=null;p!==null;)p.alternate!==null&&(y=p),p=p.sibling;y===null?!a&&n.tail!==null?n.tail.sibling=null:n.tail=null:y.sibling=null;break}}}function Ja(n){var a=n.alternate!==null&&n.alternate.child===n.child,o=Me,f=kt;if(a){if((n.mode&Un)!==Rt){for(var O=n.selfBaseDuration,F=n.child;F!==null;)o=un(o,un(F.lanes,F.childLanes)),f|=F.subtreeFlags&ds,f|=F.flags&ds,O+=F.treeBaseDuration,F=F.sibling;n.treeBaseDuration=O}else for(var H=n.child;H!==null;)o=un(o,un(H.lanes,H.childLanes)),f|=H.subtreeFlags&ds,f|=H.flags&ds,H.return=n,H=H.sibling;n.subtreeFlags|=f}else{if((n.mode&Un)!==Rt){for(var p=n.actualDuration,y=n.selfBaseDuration,w=n.child;w!==null;)o=un(o,un(w.lanes,w.childLanes)),f|=w.subtreeFlags,f|=w.flags,p+=w.actualDuration,y+=w.treeBaseDuration,w=w.sibling;n.actualDuration=p,n.treeBaseDuration=y}else for(var T=n.child;T!==null;)o=un(o,un(T.lanes,T.childLanes)),f|=T.subtreeFlags,f|=T.flags,T.return=n,T=T.sibling;n.subtreeFlags|=f}return n.childLanes=o,a}function N$(n,a,o){if(dj()&&(a.mode&yn)!==Rt&&(a.flags&In)===kt)return mD(a),Qh(),a.flags|=Xs|sd|Ha,!1;var f=zS(a);if(o!==null&&o.dehydrated!==null)if(n===null){if(!f)throw new Error("A dehydrated suspense component was completed without a hydrated node. This is probably a bug in React.");if(cj(a),Ja(a),(a.mode&Un)!==Rt){var p=o!==null;if(p){var y=a.child;y!==null&&(a.treeBaseDuration-=y.treeBaseDuration)}}return!1}else{if(Qh(),(a.flags&In)===kt&&(a.memoizedState=null),a.flags|=ln,Ja(a),(a.mode&Un)!==Rt){var w=o!==null;if(w){var T=a.child;T!==null&&(a.treeBaseDuration-=T.treeBaseDuration)}}return!1}else return vD(),!0}function UP(n,a,o){var f=a.pendingProps;switch(bT(a),a.tag){case b:case de:case X:case m:case z:case A:case M:case B:case j:case K:return Ja(a),null;case v:{var p=a.type;return Wl(p)&&DS(a),Ja(a),null}case x:{var y=a.stateNode;if(nm(a),mT(a),aN(),y.pendingContext&&(y.context=y.pendingContext,y.pendingContext=null),n===null||n.child===null){var w=zS(a);if(w)um(a);else if(n!==null){var T=n.memoizedState;(!T.isDehydrated||(a.flags&Xs)!==kt)&&(a.flags|=Nu,vD())}}return YN(n,a),Ja(a),null}case _:{eN(a);var O=zD(),F=a.type;if(n!==null&&a.stateNode!=null)zP(n,a,F,f,O),n.ref!==a.ref&&LP(a);else{if(!f){if(a.stateNode===null)throw new Error("We must have new props for new mounts. This error is likely caused by a bug in React. Please file an issue.");return Ja(a),null}var H=JT(),ee=zS(a);if(ee)lj(a,O,H)&&um(a);else{var J=_E(F,f,O,H,a);FP(J,a,!1,!1),a.stateNode=J,TE(J,F,f,O)&&um(a)}a.ref!==null&&LP(a)}return Ja(a),null}case R:{var he=f;if(n&&a.stateNode!=null){var me=n.memoizedProps;BP(n,a,me,he)}else{if(typeof he!="string"&&a.stateNode===null)throw new Error("We must have new props for new mounts. This error is likely caused by a bug in React. Please file an issue.");var _e=zD(),ut=JT(),Ct=zS(a);Ct?uj(a)&&um(a):a.stateNode=RE(he,_e,ut,a)}return Ja(a),null}case $:{am(a);var yt=a.memoizedState;if(n===null||n.memoizedState!==null&&n.memoizedState.dehydrated!==null){var On=N$(n,a,yt);if(!On)return a.flags&Ha?a:null}if((a.flags&In)!==kt)return a.lanes=o,(a.mode&Un)!==Rt&&ON(a),a;var Sn=yt!==null,le=n!==null&&n.memoizedState!==null;if(Sn!==le&&Sn){var Ee=a.child;if(Ee.flags|=Ru,(a.mode&yn)!==Rt){var ue=n===null&&(a.memoizedProps.unstable_avoidThisFallback!==!0||!we);ue||tN(ul.current,jD)?R9():fR()}}var He=a.updateQueue;if(He!==null&&(a.flags|=ln),Ja(a),(a.mode&Un)!==Rt&&Sn){var ct=a.child;ct!==null&&(a.treeBaseDuration-=ct.treeBaseDuration)}return null}case C:return nm(a),YN(n,a),n===null&&dT(a.stateNode.containerInfo),Ja(a),null;case I:var ot=a.type._context;return RT(ot,a),Ja(a),null;case ve:{var Ft=a.type;return Wl(Ft)&&DS(a),Ja(a),null}case be:{am(a);var Qt=a.memoizedState;if(Qt===null)return Ja(a),null;var nr=(a.flags&In)!==kt,jn=Qt.rendering;if(jn===null)if(nr)ry(Qt,!1);else{var qr=A9()&&(n===null||(n.flags&In)===kt);if(!qr)for(var $n=a.child;$n!==null;){var Ur=t1($n);if(Ur!==null){nr=!0,a.flags|=In,ry(Qt,!1);var Ti=Ur.updateQueue;return Ti!==null&&(a.updateQueue=Ti,a.flags|=ln),a.subtreeFlags=kt,Aj(a,o),uf(a,nN(ul.current,Gg)),a.child}$n=$n.sibling}Qt.tail!==null&&Rr()>sM()&&(a.flags|=In,nr=!0,ry(Qt,!1),a.lanes=x0)}else{if(!nr){var ai=t1(jn);if(ai!==null){a.flags|=In,nr=!0;var $o=ai.updateQueue;if($o!==null&&(a.updateQueue=$o,a.flags|=ln),ry(Qt,!0),Qt.tail===null&&Qt.tailMode==="hidden"&&!jn.alternate&&!Za())return Ja(a),null}else Rr()*2-Qt.renderingStartTime>sM()&&o!==Ui&&(a.flags|=In,nr=!0,ry(Qt,!1),a.lanes=x0)}if(Qt.isBackwards)jn.sibling=a.child,a.child=jn;else{var Wi=Qt.last;Wi!==null?Wi.sibling=jn:a.child=jn,Qt.last=jn}}if(Qt.tail!==null){var Gi=Qt.tail;Qt.rendering=Gi,Qt.tail=Gi.sibling,Qt.renderingStartTime=Rr(),Gi.sibling=null;var Ni=ul.current;return nr?Ni=nN(Ni,Gg):Ni=rm(Ni),uf(a,Ni),Gi}return Ja(a),null}case Xe:break;case ie:case ce:{cR(a);var nc=a.memoizedState,gm=nc!==null;if(n!==null){var by=n.memoizedState,Jl=by!==null;Jl!==gm&&!pe&&(a.flags|=Ru)}return!gm||(a.mode&yn)===Rt?Ja(a):bi(Ql,Ui)&&(Ja(a),a.subtreeFlags&(zr|ln)&&(a.flags|=Ru)),null}case Re:return null;case Ce:return null}throw new Error("Unknown unit of work tag ("+a.tag+"). This error is likely caused by a bug in React. Please file an issue.")}function R$(n,a,o){switch(bT(a),a.tag){case v:{var f=a.type;Wl(f)&&DS(a);var p=a.flags;return p&Ha?(a.flags=p&~Ha|In,(a.mode&Un)!==Rt&&ON(a),a):null}case x:{a.stateNode,nm(a),mT(a),aN();var y=a.flags;return(y&Ha)!==kt&&(y&In)===kt?(a.flags=y&~Ha|In,a):null}case _:return eN(a),null;case $:{am(a);var w=a.memoizedState;if(w!==null&&w.dehydrated!==null){if(a.alternate===null)throw new Error("Threw in newly mounted dehydrated component. This is likely a bug in React. Please file an issue.");Qh()}var T=a.flags;return T&Ha?(a.flags=T&~Ha|In,(a.mode&Un)!==Rt&&ON(a),a):null}case be:return am(a),null;case C:return nm(a),null;case I:var O=a.type._context;return RT(O,a),null;case ie:case ce:return cR(a),null;case Re:return null;default:return null}}function jP(n,a,o){switch(bT(a),a.tag){case v:{var f=a.type.childContextTypes;f!=null&&DS(a);break}case x:{a.stateNode,nm(a),mT(a),aN();break}case _:{eN(a);break}case C:nm(a);break;case $:am(a);break;case be:am(a);break;case I:var p=a.type._context;RT(p,a);break;case ie:case ce:cR(a);break}}var $P=null;$P=new Set;var _1=!1,ei=!1,O$=typeof WeakSet=="function"?WeakSet:Set,ht=null,cm=null,fm=null;function A$(n){kc(null,function(){throw n}),Ml()}var k$=function(n,a){if(a.props=n.memoizedProps,a.state=n.memoizedState,n.mode&Un)try{Xl(),a.componentWillUnmount()}finally{Kl(n)}else a.componentWillUnmount()};function VP(n,a){try{df(xa,n)}catch(o){pr(n,a,o)}}function qN(n,a,o){try{k$(n,o)}catch(f){pr(n,a,f)}}function D$(n,a,o){try{o.componentDidMount()}catch(f){pr(n,a,f)}}function HP(n,a){try{GP(n)}catch(o){pr(n,a,o)}}function dm(n,a){var o=n.ref;if(o!==null)if(typeof o=="function"){var f;try{if(mt&&Gt&&n.mode&Un)try{Xl(),f=o(null)}finally{Kl(n)}else f=o(null)}catch(p){pr(n,a,p)}typeof f=="function"&&u("Unexpected return value from a callback ref in %s. A callback ref should not return a function.",It(n))}else o.current=null}function E1(n,a,o){try{o()}catch(f){pr(n,a,f)}}var WP=!1;function P$(n,a){wE(n.containerInfo),ht=a,M$();var o=WP;return WP=!1,o}function M$(){for(;ht!==null;){var n=ht,a=n.child;(n.subtreeFlags&wv)!==kt&&a!==null?(a.return=n,ht=a):I$()}}function I$(){for(;ht!==null;){var n=ht;er(n);try{L$(n)}catch(o){pr(n,n.return,o)}wr();var a=n.sibling;if(a!==null){a.return=n.return,ht=a;return}ht=n.return}}function L$(n){var a=n.alternate,o=n.flags;if((o&Nu)!==kt){switch(er(n),n.tag){case m:case z:case X:break;case v:{if(a!==null){var f=a.memoizedProps,p=a.memoizedState,y=n.stateNode;n.type===n.elementType&&!op&&(y.props!==n.memoizedProps&&u("Expected %s props to match memoized props before getSnapshotBeforeUpdate. This might either be because of a bug in React, or because a component reassigns its own `this.props`. Please file an issue.",It(n)||"instance"),y.state!==n.memoizedState&&u("Expected %s state to match memoized state before getSnapshotBeforeUpdate. This might either be because of a bug in React, or because a component reassigns its own `this.state`. Please file an issue.",It(n)||"instance"));var w=y.getSnapshotBeforeUpdate(n.elementType===n.type?f:ll(n.type,f),p);{var T=$P;w===void 0&&!T.has(n.type)&&(T.add(n.type),u("%s.getSnapshotBeforeUpdate(): A snapshot value (or null) must be returned. You have returned undefined.",It(n)))}y.__reactInternalSnapshotBeforeUpdate=w}break}case x:{{var O=n.stateNode;$E(O.containerInfo)}break}case _:case R:case C:case ve:break;default:throw new Error("This unit of work tag should not have side-effects. This error is likely caused by a bug in React. Please file an issue.")}wr()}}function dl(n,a,o){var f=a.updateQueue,p=f!==null?f.lastEffect:null;if(p!==null){var y=p.next,w=y;do{if((w.tag&n)===n){var T=w.destroy;w.destroy=void 0,T!==void 0&&((n&Qa)!==lo?MC(a):(n&xa)!==lo&&d0(a),(n&Gl)!==lo&&vy(!0),E1(a,o,T),(n&Gl)!==lo&&vy(!1),(n&Qa)!==lo?kv():(n&xa)!==lo&&p0())}w=w.next}while(w!==y)}}function df(n,a){var o=a.updateQueue,f=o!==null?o.lastEffect:null;if(f!==null){var p=f.next,y=p;do{if((y.tag&n)===n){(n&Qa)!==lo?pd(a):(n&xa)!==lo&&f0(a);var w=y.create;(n&Gl)!==lo&&vy(!0),y.destroy=w(),(n&Gl)!==lo&&vy(!1),(n&Qa)!==lo?PC():(n&xa)!==lo&&IC();{var T=y.destroy;if(T!==void 0&&typeof T!="function"){var O=void 0;(y.tag&xa)!==kt?O="useLayoutEffect":(y.tag&Gl)!==kt?O="useInsertionEffect":O="useEffect";var F=void 0;T===null?F=" You returned null. If your effect does not require clean up, return undefined (or nothing).":typeof T.then=="function"?F=`
|
|
|
|
It looks like you wrote `+O+`(async () => ...) or returned a Promise. Instead, write the async function inside your effect and call it immediately:
|
|
|
|
`+O+`(() => {
|
|
async function fetchData() {
|
|
// You can await here
|
|
const response = await MyAPI.getData(someId);
|
|
// ...
|
|
}
|
|
fetchData();
|
|
}, [someId]); // Or [] if effect doesn't need props or state
|
|
|
|
Learn more about data fetching with Hooks: https://reactjs.org/link/hooks-data-fetching`:F=" You returned: "+T,u("%s must not return anything besides a function, which is used for clean-up.%s",O,F)}}}y=y.next}while(y!==p)}}function F$(n,a){if((a.flags&ln)!==kt)switch(a.tag){case B:{var o=a.stateNode.passiveEffectDuration,f=a.memoizedProps,p=f.id,y=f.onPostCommit,w=pP(),T=a.alternate===null?"mount":"update";dP()&&(T="nested-update"),typeof y=="function"&&y(p,T,o,w);var O=a.return;e:for(;O!==null;){switch(O.tag){case x:var F=O.stateNode;F.passiveEffectDuration+=o;break e;case B:var H=O.stateNode;H.passiveEffectDuration+=o;break e}O=O.return}break}}}function z$(n,a,o,f){if((o.flags&ld)!==kt)switch(o.tag){case m:case z:case X:{if(!ei)if(o.mode&Un)try{Xl(),df(xa|Sa,o)}finally{Kl(o)}else df(xa|Sa,o);break}case v:{var p=o.stateNode;if(o.flags&ln&&!ei)if(a===null)if(o.type===o.elementType&&!op&&(p.props!==o.memoizedProps&&u("Expected %s props to match memoized props before componentDidMount. This might either be because of a bug in React, or because a component reassigns its own `this.props`. Please file an issue.",It(o)||"instance"),p.state!==o.memoizedState&&u("Expected %s state to match memoized state before componentDidMount. This might either be because of a bug in React, or because a component reassigns its own `this.state`. Please file an issue.",It(o)||"instance")),o.mode&Un)try{Xl(),p.componentDidMount()}finally{Kl(o)}else p.componentDidMount();else{var y=o.elementType===o.type?a.memoizedProps:ll(o.type,a.memoizedProps),w=a.memoizedState;if(o.type===o.elementType&&!op&&(p.props!==o.memoizedProps&&u("Expected %s props to match memoized props before componentDidUpdate. This might either be because of a bug in React, or because a component reassigns its own `this.props`. Please file an issue.",It(o)||"instance"),p.state!==o.memoizedState&&u("Expected %s state to match memoized state before componentDidUpdate. This might either be because of a bug in React, or because a component reassigns its own `this.state`. Please file an issue.",It(o)||"instance")),o.mode&Un)try{Xl(),p.componentDidUpdate(y,w,p.__reactInternalSnapshotBeforeUpdate)}finally{Kl(o)}else p.componentDidUpdate(y,w,p.__reactInternalSnapshotBeforeUpdate)}var T=o.updateQueue;T!==null&&(o.type===o.elementType&&!op&&(p.props!==o.memoizedProps&&u("Expected %s props to match memoized props before processing the update queue. This might either be because of a bug in React, or because a component reassigns its own `this.props`. Please file an issue.",It(o)||"instance"),p.state!==o.memoizedState&&u("Expected %s state to match memoized state before processing the update queue. This might either be because of a bug in React, or because a component reassigns its own `this.state`. Please file an issue.",It(o)||"instance")),TD(o,T,p));break}case x:{var O=o.updateQueue;if(O!==null){var F=null;if(o.child!==null)switch(o.child.tag){case _:F=o.child.stateNode;break;case v:F=o.child.stateNode;break}TD(o,O,F)}break}case _:{var H=o.stateNode;if(a===null&&o.flags&ln){var ee=o.type,J=o.memoizedProps;PE(H,ee,J)}break}case R:break;case C:break;case B:{{var he=o.memoizedProps,me=he.onCommit,_e=he.onRender,ut=o.stateNode.effectDuration,Ct=pP(),yt=a===null?"mount":"update";dP()&&(yt="nested-update"),typeof _e=="function"&&_e(o.memoizedProps.id,yt,o.actualDuration,o.treeBaseDuration,o.actualStartTime,Ct);{typeof me=="function"&&me(o.memoizedProps.id,yt,ut,Ct),I9(o);var On=o.return;e:for(;On!==null;){switch(On.tag){case x:var Sn=On.stateNode;Sn.effectDuration+=ut;break e;case B:var le=On.stateNode;le.effectDuration+=ut;break e}On=On.return}}}break}case $:{G$(n,o);break}case be:case ve:case Xe:case ie:case ce:case Ce:break;default:throw new Error("This unit of work tag should not have side-effects. This error is likely caused by a bug in React. Please file an issue.")}ei||o.flags&La&&GP(o)}function B$(n){switch(n.tag){case m:case z:case X:{if(n.mode&Un)try{Xl(),VP(n,n.return)}finally{Kl(n)}else VP(n,n.return);break}case v:{var a=n.stateNode;typeof a.componentDidMount=="function"&&D$(n,n.return,a),HP(n,n.return);break}case _:{HP(n,n.return);break}}}function U$(n,a){for(var o=null,f=n;;){if(f.tag===_){if(o===null){o=f;try{var p=f.stateNode;a?kg(p):UE(f.stateNode,f.memoizedProps)}catch(w){pr(n,n.return,w)}}}else if(f.tag===R){if(o===null)try{var y=f.stateNode;a?BE(y):jE(y,f.memoizedProps)}catch(w){pr(n,n.return,w)}}else if(!((f.tag===ie||f.tag===ce)&&f.memoizedState!==null&&f!==n)){if(f.child!==null){f.child.return=f,f=f.child;continue}}if(f===n)return;for(;f.sibling===null;){if(f.return===null||f.return===n)return;o===f&&(o=null),f=f.return}o===f&&(o=null),f.sibling.return=f.return,f=f.sibling}}function GP(n){var a=n.ref;if(a!==null){var o=n.stateNode,f;switch(n.tag){case _:f=o;break;default:f=o}if(typeof a=="function"){var p;if(n.mode&Un)try{Xl(),p=a(f)}finally{Kl(n)}else p=a(f);typeof p=="function"&&u("Unexpected return value from a callback ref in %s. A callback ref should not return a function.",It(n))}else a.hasOwnProperty("current")||u("Unexpected ref object provided for %s. Use either a ref-setter function or React.createRef().",It(n)),a.current=f}}function j$(n){var a=n.alternate;a!==null&&(a.return=null),n.return=null}function YP(n){var a=n.alternate;a!==null&&(n.alternate=null,YP(a));{if(n.child=null,n.deletions=null,n.sibling=null,n.tag===_){var o=n.stateNode;o!==null&&Y(o)}n.stateNode=null,n._debugOwner=null,n.return=null,n.dependencies=null,n.memoizedProps=null,n.memoizedState=null,n.pendingProps=null,n.stateNode=null,n.updateQueue=null}}function $$(n){for(var a=n.return;a!==null;){if(qP(a))return a;a=a.return}throw new Error("Expected to find a host parent. This error is likely caused by a bug in React. Please file an issue.")}function qP(n){return n.tag===_||n.tag===x||n.tag===C}function KP(n){var a=n;e:for(;;){for(;a.sibling===null;){if(a.return===null||qP(a.return))return null;a=a.return}for(a.sibling.return=a.return,a=a.sibling;a.tag!==_&&a.tag!==R&&a.tag!==se;){if(a.flags&zr||a.child===null||a.tag===C)continue e;a.child.return=a,a=a.child}if(!(a.flags&zr))return a.stateNode}}function V$(n){var a=$$(n);switch(a.tag){case _:{var o=a.stateNode;a.flags&od&&(Rg(o),a.flags&=~od);var f=KP(n);XN(n,f,o);break}case x:case C:{var p=a.stateNode.containerInfo,y=KP(n);KN(n,y,p);break}default:throw new Error("Invalid host parent fiber. This error is likely caused by a bug in React. Please file an issue.")}}function KN(n,a,o){var f=n.tag,p=f===_||f===R;if(p){var y=n.stateNode;a?Og(o,y,a):IE(o,y)}else if(f!==C){var w=n.child;if(w!==null){KN(w,a,o);for(var T=w.sibling;T!==null;)KN(T,a,o),T=T.sibling}}}function XN(n,a,o){var f=n.tag,p=f===_||f===R;if(p){var y=n.stateNode;a?LE(o,y,a):ME(o,y)}else if(f!==C){var w=n.child;if(w!==null){XN(w,a,o);for(var T=w.sibling;T!==null;)XN(T,a,o),T=T.sibling}}}var ti=null,pl=!1;function H$(n,a,o){{var f=a;e:for(;f!==null;){switch(f.tag){case _:{ti=f.stateNode,pl=!1;break e}case x:{ti=f.stateNode.containerInfo,pl=!0;break e}case C:{ti=f.stateNode.containerInfo,pl=!0;break e}}f=f.return}if(ti===null)throw new Error("Expected to find a host parent. This error is likely caused by a bug in React. Please file an issue.");XP(n,a,o),ti=null,pl=!1}j$(o)}function pf(n,a,o){for(var f=o.child;f!==null;)XP(n,a,f),f=f.sibling}function XP(n,a,o){switch(kC(o),o.tag){case _:ei||dm(o,a);case R:{{var f=ti,p=pl;ti=null,pf(n,a,o),ti=f,pl=p,ti!==null&&(pl?zE(ti,o.stateNode):FE(ti,o.stateNode))}return}case se:{ti!==null&&(pl?Ci(ti,o.stateNode):Ag(ti,o.stateNode));return}case C:{{var y=ti,w=pl;ti=o.stateNode.containerInfo,pl=!0,pf(n,a,o),ti=y,pl=w}return}case m:case z:case K:case X:{if(!ei){var T=o.updateQueue;if(T!==null){var O=T.lastEffect;if(O!==null){var F=O.next,H=F;do{var ee=H,J=ee.destroy,he=ee.tag;J!==void 0&&((he&Gl)!==lo?E1(o,a,J):(he&xa)!==lo&&(d0(o),o.mode&Un?(Xl(),E1(o,a,J),Kl(o)):E1(o,a,J),p0())),H=H.next}while(H!==F)}}}pf(n,a,o);return}case v:{if(!ei){dm(o,a);var me=o.stateNode;typeof me.componentWillUnmount=="function"&&qN(o,a,me)}pf(n,a,o);return}case Xe:{pf(n,a,o);return}case ie:{if(o.mode&yn){var _e=ei;ei=_e||o.memoizedState!==null,pf(n,a,o),ei=_e}else pf(n,a,o);break}default:{pf(n,a,o);return}}}function W$(n){n.memoizedState}function G$(n,a){var o=a.memoizedState;if(o===null){var f=a.alternate;if(f!==null){var p=f.memoizedState;if(p!==null){var y=p.dehydrated;y!==null&&QE(y)}}}}function ZP(n){var a=n.updateQueue;if(a!==null){n.updateQueue=null;var o=n.stateNode;o===null&&(o=n.stateNode=new O$),a.forEach(function(f){var p=$9.bind(null,n,f);if(!o.has(f)){if(o.add(f),ya)if(cm!==null&&fm!==null)my(fm,cm);else throw Error("Expected finished root and lanes to be set. This is a bug in React.");f.then(p,p)}})}}function Y$(n,a,o){cm=o,fm=n,er(a),QP(a,n),er(a),cm=null,fm=null}function hl(n,a,o){var f=a.deletions;if(f!==null)for(var p=0;p<f.length;p++){var y=f[p];try{H$(n,a,y)}catch(O){pr(y,a,O)}}var w=Po();if(a.subtreeFlags&Cv)for(var T=a.child;T!==null;)er(T),QP(T,n),T=T.sibling;er(w)}function QP(n,a,o){var f=n.alternate,p=n.flags;switch(n.tag){case m:case z:case K:case X:{if(hl(a,n),Zl(n),p&ln){try{dl(Gl|Sa,n,n.return),df(Gl|Sa,n)}catch(Ft){pr(n,n.return,Ft)}if(n.mode&Un){try{Xl(),dl(xa|Sa,n,n.return)}catch(Ft){pr(n,n.return,Ft)}Kl(n)}else try{dl(xa|Sa,n,n.return)}catch(Ft){pr(n,n.return,Ft)}}return}case v:{hl(a,n),Zl(n),p&La&&f!==null&&dm(f,f.return);return}case _:{hl(a,n),Zl(n),p&La&&f!==null&&dm(f,f.return);{if(n.flags&od){var y=n.stateNode;try{Rg(y)}catch(Ft){pr(n,n.return,Ft)}}if(p&ln){var w=n.stateNode;if(w!=null){var T=n.memoizedProps,O=f!==null?f.memoizedProps:T,F=n.type,H=n.updateQueue;if(n.updateQueue=null,H!==null)try{Ng(w,H,F,O,T,n)}catch(Ft){pr(n,n.return,Ft)}}}}return}case R:{if(hl(a,n),Zl(n),p&ln){if(n.stateNode===null)throw new Error("This should have a text node initialized. This error is likely caused by a bug in React. Please file an issue.");var ee=n.stateNode,J=n.memoizedProps,he=f!==null?f.memoizedProps:J;try{RS(ee,he,J)}catch(Ft){pr(n,n.return,Ft)}}return}case x:{if(hl(a,n),Zl(n),p&ln&&f!==null){var me=f.memoizedState;if(me.isDehydrated)try{ZE(a.containerInfo)}catch(Ft){pr(n,n.return,Ft)}}return}case C:{hl(a,n),Zl(n);return}case $:{hl(a,n),Zl(n);var _e=n.child;if(_e.flags&Ru){var ut=_e.stateNode,Ct=_e.memoizedState,yt=Ct!==null;if(ut.isHidden=yt,yt){var On=_e.alternate!==null&&_e.alternate.memoizedState!==null;On||N9()}}if(p&ln){try{W$(n)}catch(Ft){pr(n,n.return,Ft)}ZP(n)}return}case ie:{var Sn=f!==null&&f.memoizedState!==null;if(n.mode&yn){var le=ei;ei=le||Sn,hl(a,n),ei=le}else hl(a,n);if(Zl(n),p&Ru){var Ee=n.stateNode,ue=n.memoizedState,He=ue!==null,ct=n;if(Ee.isHidden=He,He&&!Sn&&(ct.mode&yn)!==Rt){ht=ct;for(var ot=ct.child;ot!==null;)ht=ot,K$(ot),ot=ot.sibling}U$(ct,He)}return}case be:{hl(a,n),Zl(n),p&ln&&ZP(n);return}case Xe:return;default:{hl(a,n),Zl(n);return}}}function Zl(n){var a=n.flags;if(a&zr){try{V$(n)}catch(o){pr(n,n.return,o)}n.flags&=~zr}a&Zs&&(n.flags&=~Zs)}function q$(n,a,o){cm=o,fm=a,ht=n,JP(n,a,o),cm=null,fm=null}function JP(n,a,o){for(var f=(n.mode&yn)!==Rt;ht!==null;){var p=ht,y=p.child;if(p.tag===ie&&f){var w=p.memoizedState!==null,T=w||_1;if(T){ZN(n,a,o);continue}else{var O=p.alternate,F=O!==null&&O.memoizedState!==null,H=F||ei,ee=_1,J=ei;_1=T,ei=H,ei&&!J&&(ht=p,X$(p));for(var he=y;he!==null;)ht=he,JP(he,a,o),he=he.sibling;ht=p,_1=ee,ei=J,ZN(n,a,o);continue}}(p.subtreeFlags&ld)!==kt&&y!==null?(y.return=p,ht=y):ZN(n,a,o)}}function ZN(n,a,o){for(;ht!==null;){var f=ht;if((f.flags&ld)!==kt){var p=f.alternate;er(f);try{z$(a,p,f,o)}catch(w){pr(f,f.return,w)}wr()}if(f===n){ht=null;return}var y=f.sibling;if(y!==null){y.return=f.return,ht=y;return}ht=f.return}}function K$(n){for(;ht!==null;){var a=ht,o=a.child;switch(a.tag){case m:case z:case K:case X:{if(a.mode&Un)try{Xl(),dl(xa,a,a.return)}finally{Kl(a)}else dl(xa,a,a.return);break}case v:{dm(a,a.return);var f=a.stateNode;typeof f.componentWillUnmount=="function"&&qN(a,a.return,f);break}case _:{dm(a,a.return);break}case ie:{var p=a.memoizedState!==null;if(p){eM(n);continue}break}}o!==null?(o.return=a,ht=o):eM(n)}}function eM(n){for(;ht!==null;){var a=ht;if(a===n){ht=null;return}var o=a.sibling;if(o!==null){o.return=a.return,ht=o;return}ht=a.return}}function X$(n){for(;ht!==null;){var a=ht,o=a.child;if(a.tag===ie){var f=a.memoizedState!==null;if(f){tM(n);continue}}o!==null?(o.return=a,ht=o):tM(n)}}function tM(n){for(;ht!==null;){var a=ht;er(a);try{B$(a)}catch(f){pr(a,a.return,f)}if(wr(),a===n){ht=null;return}var o=a.sibling;if(o!==null){o.return=a.return,ht=o;return}ht=a.return}}function Z$(n,a,o,f){ht=a,Q$(a,n,o,f)}function Q$(n,a,o,f){for(;ht!==null;){var p=ht,y=p.child;(p.subtreeFlags&Pc)!==kt&&y!==null?(y.return=p,ht=y):J$(n,a,o,f)}}function J$(n,a,o,f){for(;ht!==null;){var p=ht;if((p.flags&Fo)!==kt){er(p);try{e9(a,p,o,f)}catch(w){pr(p,p.return,w)}wr()}if(p===n){ht=null;return}var y=p.sibling;if(y!==null){y.return=p.return,ht=y;return}ht=p.return}}function e9(n,a,o,f){switch(a.tag){case m:case z:case X:{if(a.mode&Un){RN();try{df(Qa|Sa,a)}finally{NN(a)}}else df(Qa|Sa,a);break}}}function t9(n){ht=n,n9()}function n9(){for(;ht!==null;){var n=ht,a=n.child;if((ht.flags&Tu)!==kt){var o=n.deletions;if(o!==null){for(var f=0;f<o.length;f++){var p=o[f];ht=p,i9(p,n)}{var y=n.alternate;if(y!==null){var w=y.child;if(w!==null){y.child=null;do{var T=w.sibling;w.sibling=null,w=T}while(w!==null)}}}ht=n}}(n.subtreeFlags&Pc)!==kt&&a!==null?(a.return=n,ht=a):r9()}}function r9(){for(;ht!==null;){var n=ht;(n.flags&Fo)!==kt&&(er(n),a9(n),wr());var a=n.sibling;if(a!==null){a.return=n.return,ht=a;return}ht=n.return}}function a9(n){switch(n.tag){case m:case z:case X:{n.mode&Un?(RN(),dl(Qa|Sa,n,n.return),NN(n)):dl(Qa|Sa,n,n.return);break}}}function i9(n,a){for(;ht!==null;){var o=ht;er(o),s9(o,a),wr();var f=o.child;f!==null?(f.return=o,ht=f):o9(n)}}function o9(n){for(;ht!==null;){var a=ht,o=a.sibling,f=a.return;if(YP(a),a===n){ht=null;return}if(o!==null){o.return=f,ht=o;return}ht=f}}function s9(n,a){switch(n.tag){case m:case z:case X:{n.mode&Un?(RN(),dl(Qa,n,a),NN(n)):dl(Qa,n,a);break}}}function l9(n){switch(n.tag){case m:case z:case X:{try{df(xa|Sa,n)}catch(o){pr(n,n.return,o)}break}case v:{var a=n.stateNode;try{a.componentDidMount()}catch(o){pr(n,n.return,o)}break}}}function u9(n){switch(n.tag){case m:case z:case X:{try{df(Qa|Sa,n)}catch(a){pr(n,n.return,a)}break}}}function c9(n){switch(n.tag){case m:case z:case X:{try{dl(xa|Sa,n,n.return)}catch(o){pr(n,n.return,o)}break}case v:{var a=n.stateNode;typeof a.componentWillUnmount=="function"&&qN(n,n.return,a);break}}}function f9(n){switch(n.tag){case m:case z:case X:try{dl(Qa|Sa,n,n.return)}catch(a){pr(n,n.return,a)}}}if(typeof Symbol=="function"&&Symbol.for){var ay=Symbol.for;ay("selector.component"),ay("selector.has_pseudo_class"),ay("selector.role"),ay("selector.test_id"),ay("selector.text")}var d9=[];function p9(){d9.forEach(function(n){return n()})}var h9=r.ReactCurrentActQueue;function m9(n){{var a=typeof IS_REACT_ACT_ENVIRONMENT<"u"?IS_REACT_ACT_ENVIRONMENT:void 0,o=typeof jest<"u";return o&&a!==!1}}function nM(){{var n=typeof IS_REACT_ACT_ENVIRONMENT<"u"?IS_REACT_ACT_ENVIRONMENT:void 0;return!n&&h9.current!==null&&u("The current testing environment is not configured to support act(...)"),n}}var v9=Math.ceil,QN=r.ReactCurrentDispatcher,JN=r.ReactCurrentOwner,ni=r.ReactCurrentBatchConfig,ml=r.ReactCurrentActQueue,_a=0,rM=1,ri=2,Os=4,Qu=0,iy=1,sp=2,T1=3,oy=4,aM=5,eR=6,Rn=_a,Vi=null,Pr=null,Ea=Me,Ql=Me,tR=Ba(Me),Ta=Qu,sy=null,N1=Me,ly=Me,R1=Me,uy=null,uo=null,nR=0,iM=500,oM=1/0,g9=500,Ju=null;function cy(){oM=Rr()+g9}function sM(){return oM}var O1=!1,rR=null,pm=null,lp=!1,hf=null,fy=Me,aR=[],iR=null,y9=50,dy=0,oR=null,sR=!1,A1=!1,b9=50,hm=0,k1=null,py=Xn,D1=Me,lM=!1;function P1(){return Vi}function Hi(){return(Rn&(ri|Os))!==_a?Rr():(py!==Xn||(py=Rr()),py)}function mf(n){var a=n.mode;if((a&yn)===Rt)return Ut;if((Rn&ri)!==_a&&Ea!==Me)return xd(Ea);var o=mj()!==hj;if(o){if(ni.transition!==null){var f=ni.transition;f._updatedFibers||(f._updatedFibers=new Set),f._updatedFibers.add(n)}return D1===Wr&&(D1=Sd()),D1}var p=ao();if(p!==Wr)return p;var y=OE();return y}function S9(n){var a=n.mode;return(a&yn)===Rt?Ut:_0()}function Na(n,a,o,f){H9(),lM&&u("useInsertionEffect must not schedule updates."),sR&&(A1=!0),Fu(n,o,f),(Rn&ri)!==Me&&n===Vi?Y9(a):(ya&&Ch(n,a,o),q9(a),n===Vi&&((Rn&ri)===_a&&(ly=un(ly,o)),Ta===oy&&vf(n,Ea)),co(n,f),o===Ut&&Rn===_a&&(a.mode&yn)===Rt&&!ml.isBatchingLegacy&&(cy(),sD()))}function x9(n,a,o){var f=n.current;f.lanes=a,Fu(n,a,o),co(n,o)}function w9(n){return(Rn&ri)!==_a}function co(n,a){var o=n.callbackNode;bd(n,a);var f=bh(n,n===Vi?Ea:Me);if(f===Me){o!==null&&_M(o),n.callbackNode=null,n.callbackPriority=Wr;return}var p=tl(f),y=n.callbackPriority;if(y===p&&!(ml.current!==null&&o!==hR)){o==null&&y!==Ut&&u("Expected scheduled callback to exist. This error is likely caused by a bug in React. Please file an issue.");return}o!=null&&_M(o);var w;if(p===Ut)n.tag===rf?(ml.isBatchingLegacy!==null&&(ml.didScheduleLegacyUpdate=!0),ZU(fM.bind(null,n))):oD(fM.bind(null,n)),ml.current!==null?ml.current.push(af):kE(function(){(Rn&(ri|Os))===_a&&af()}),w=null;else{var T;switch(bs(f)){case Ya:T=cd;break;case ys:T=Tv;break;case yr:T=hs;break;case _h:T=ch;break;default:T=hs;break}w=mR(T,uM.bind(null,n))}n.callbackPriority=p,n.callbackNode=w}function uM(n,a){if(Hj(),py=Xn,D1=Me,(Rn&(ri|Os))!==_a)throw new Error("Should not already be working.");var o=n.callbackNode,f=tc();if(f&&n.callbackNode!==o)return null;var p=bh(n,n===Vi?Ea:Me);if(p===Me)return null;var y=!Iu(n,p)&&!UC(n,p)&&!a,w=y?D9(n,p):I1(n,p);if(w!==Qu){if(w===sp){var T=Sh(n);T!==Me&&(p=T,w=lR(n,T))}if(w===iy){var O=sy;throw up(n,Me),vf(n,p),co(n,Rr()),O}if(w===eR)vf(n,p);else{var F=!Iu(n,p),H=n.current.alternate;if(F&&!_9(H)){if(w=I1(n,p),w===sp){var ee=Sh(n);ee!==Me&&(p=ee,w=lR(n,ee))}if(w===iy){var J=sy;throw up(n,Me),vf(n,p),co(n,Rr()),J}}n.finishedWork=H,n.finishedLanes=p,C9(n,w,p)}}return co(n,Rr()),n.callbackNode===o?uM.bind(null,n):null}function lR(n,a){var o=uy;if(aa(n)){var f=up(n,a);f.flags|=Xs,fT(n.containerInfo)}var p=I1(n,a);if(p!==sp){var y=uo;uo=o,y!==null&&cM(y)}return p}function cM(n){uo===null?uo=n:uo.push.apply(uo,n)}function C9(n,a,o){switch(a){case Qu:case iy:throw new Error("Root did not complete. This is a bug in React.");case sp:{cp(n,uo,Ju);break}case T1:{if(vf(n,o),$v(o)&&!EM()){var f=nR+iM-Rr();if(f>10){var p=bh(n,Me);if(p!==Me)break;var y=n.suspendedLanes;if(!Lu(y,o)){Hi(),_d(n,y);break}n.timeoutHandle=Eg(cp.bind(null,n,uo,Ju),f);break}}cp(n,uo,Ju);break}case oy:{if(vf(n,o),Vv(o))break;if(!EM()){var w=w0(n,o),T=w,O=Rr()-T,F=V9(O)-O;if(F>10){n.timeoutHandle=Eg(cp.bind(null,n,uo,Ju),F);break}}cp(n,uo,Ju);break}case aM:{cp(n,uo,Ju);break}default:throw new Error("Unknown root exit status.")}}function _9(n){for(var a=n;;){if(a.flags&oh){var o=a.updateQueue;if(o!==null){var f=o.stores;if(f!==null)for(var p=0;p<f.length;p++){var y=f[p],w=y.getSnapshot,T=y.value;try{if(!qa(w(),T))return!1}catch{return!1}}}}var O=a.child;if(a.subtreeFlags&oh&&O!==null){O.return=a,a=O;continue}if(a===n)return!0;for(;a.sibling===null;){if(a.return===null||a.return===n)return!0;a=a.return}a.sibling.return=a.return,a=a.sibling}return!0}function vf(n,a){a=wd(a,R1),a=wd(a,ly),Wv(n,a)}function fM(n){if(Wj(),(Rn&(ri|Os))!==_a)throw new Error("Should not already be working.");tc();var a=bh(n,Me);if(!bi(a,Ut))return co(n,Rr()),null;var o=I1(n,a);if(n.tag!==rf&&o===sp){var f=Sh(n);f!==Me&&(a=f,o=lR(n,f))}if(o===iy){var p=sy;throw up(n,Me),vf(n,a),co(n,Rr()),p}if(o===eR)throw new Error("Root did not complete. This is a bug in React.");var y=n.current.alternate;return n.finishedWork=y,n.finishedLanes=a,cp(n,uo,Ju),co(n,Rr()),null}function E9(n,a){a!==Me&&(Ot(n,un(a,Ut)),co(n,Rr()),(Rn&(ri|Os))===_a&&(cy(),af()))}function uR(n,a){var o=Rn;Rn|=rM;try{return n(a)}finally{Rn=o,Rn===_a&&!ml.isBatchingLegacy&&(cy(),sD())}}function T9(n,a,o,f,p){var y=ao(),w=ni.transition;try{return ni.transition=null,ra(Ya),n(a,o,f,p)}finally{ra(y),ni.transition=w,Rn===_a&&cy()}}function ec(n){hf!==null&&hf.tag===rf&&(Rn&(ri|Os))===_a&&tc();var a=Rn;Rn|=rM;var o=ni.transition,f=ao();try{return ni.transition=null,ra(Ya),n?n():void 0}finally{ra(f),ni.transition=o,Rn=a,(Rn&(ri|Os))===_a&&af()}}function dM(){return(Rn&(ri|Os))!==_a}function M1(n,a){_i(tR,Ql,n),Ql=un(Ql,a)}function cR(n){Ql=tR.current,ba(tR,n)}function up(n,a){n.finishedWork=null,n.finishedLanes=Me;var o=n.timeoutHandle;if(o!==Tg&&(n.timeoutHandle=Tg,AE(o)),Pr!==null)for(var f=Pr.return;f!==null;){var p=f.alternate;jP(p,f),f=f.return}Vi=n;var y=fp(n.current,null);return Pr=y,Ea=Ql=a,Ta=Qu,sy=null,N1=Me,ly=Me,R1=Me,uy=null,uo=null,bj(),sl.discardPendingWarnings(),y}function pM(n,a){do{var o=Pr;try{if($S(),VD(),wr(),JN.current=null,o===null||o.return===null){Ta=iy,sy=a,Pr=null;return}if(mt&&o.mode&Un&&S1(o,!0),st)if(Mc(),a!==null&&typeof a=="object"&&typeof a.then=="function"){var f=a;Dv(o,f,Ea)}else h0(o,a,Ea);Xj(n,o.return,o,a,Ea),gM(o)}catch(p){a=p,Pr===o&&o!==null?(o=o.return,Pr=o):o=Pr;continue}return}while(!0)}function hM(){var n=QN.current;return QN.current=m1,n===null?m1:n}function mM(n){QN.current=n}function N9(){nR=Rr()}function hy(n){N1=un(n,N1)}function R9(){Ta===Qu&&(Ta=T1)}function fR(){(Ta===Qu||Ta===T1||Ta===sp)&&(Ta=oy),Vi!==null&&(Vc(N1)||Vc(ly))&&vf(Vi,Ea)}function O9(n){Ta!==oy&&(Ta=sp),uy===null?uy=[n]:uy.push(n)}function A9(){return Ta===Qu}function I1(n,a){var o=Rn;Rn|=ri;var f=hM();if(Vi!==n||Ea!==a){if(ya){var p=n.memoizedUpdaters;p.size>0&&(my(n,Ea),p.clear()),zl(n,a)}Ju=T0(),up(n,a)}Mv(a);do try{k9();break}catch(y){pM(n,y)}while(!0);if($S(),Rn=o,mM(f),Pr!==null)throw new Error("Cannot commit an incomplete root. This error is likely caused by a bug in React. Please file an issue.");return g0(),Vi=null,Ea=Me,Ta}function k9(){for(;Pr!==null;)vM(Pr)}function D9(n,a){var o=Rn;Rn|=ri;var f=hM();if(Vi!==n||Ea!==a){if(ya){var p=n.memoizedUpdaters;p.size>0&&(my(n,Ea),p.clear()),zl(n,a)}Ju=T0(),cy(),up(n,a)}Mv(a);do try{P9();break}catch(y){pM(n,y)}while(!0);return $S(),mM(f),Rn=o,Pr!==null?(fh(),Qu):(g0(),Vi=null,Ea=Me,Ta)}function P9(){for(;Pr!==null&&!l0();)vM(Pr)}function vM(n){var a=n.alternate;er(n);var o;(n.mode&Un)!==Rt?(TN(n),o=dR(a,n,Ql),S1(n,!0)):o=dR(a,n,Ql),wr(),n.memoizedProps=n.pendingProps,o===null?gM(n):Pr=o,JN.current=null}function gM(n){var a=n;do{var o=a.alternate,f=a.return;if((a.flags&sd)===kt){er(a);var p=void 0;if((a.mode&Un)===Rt?p=UP(o,a,Ql):(TN(a),p=UP(o,a,Ql),S1(a,!1)),wr(),p!==null){Pr=p;return}}else{var y=R$(o,a);if(y!==null){y.flags&=NC,Pr=y;return}if((a.mode&Un)!==Rt){S1(a,!1);for(var w=a.actualDuration,T=a.child;T!==null;)w+=T.actualDuration,T=T.sibling;a.actualDuration=w}if(f!==null)f.flags|=sd,f.subtreeFlags=kt,f.deletions=null;else{Ta=eR,Pr=null;return}}var O=a.sibling;if(O!==null){Pr=O;return}a=f,Pr=a}while(a!==null);Ta===Qu&&(Ta=aM)}function cp(n,a,o){var f=ao(),p=ni.transition;try{ni.transition=null,ra(Ya),M9(n,a,o,f)}finally{ni.transition=p,ra(f)}return null}function M9(n,a,o,f){do tc();while(hf!==null);if(W9(),(Rn&(ri|Os))!==_a)throw new Error("Should not already be working.");var p=n.finishedWork,y=n.finishedLanes;if(fd(y),p===null)return Av(),null;if(y===Me&&u("root.finishedLanes should not be empty during a commit. This is a bug in React."),n.finishedWork=null,n.finishedLanes=Me,p===n.current)throw new Error("Cannot commit the same tree as before. This error is likely caused by a bug in React. Please file an issue.");n.callbackNode=null,n.callbackPriority=Wr;var w=un(p.lanes,p.childLanes);Hc(n,w),n===Vi&&(Vi=null,Pr=null,Ea=Me),((p.subtreeFlags&Pc)!==kt||(p.flags&Pc)!==kt)&&(lp||(lp=!0,iR=o,mR(hs,function(){return tc(),null})));var T=(p.subtreeFlags&(wv|Cv|ld|Pc))!==kt,O=(p.flags&(wv|Cv|ld|Pc))!==kt;if(T||O){var F=ni.transition;ni.transition=null;var H=ao();ra(Ya);var ee=Rn;Rn|=Os,JN.current=null,P$(n,p),hP(),Y$(n,p,y),CE(n.containerInfo),n.current=p,LC(y),q$(p,n,y),Pv(),u0(),Rn=ee,ra(H),ni.transition=F}else n.current=p,hP();var J=lp;if(lp?(lp=!1,hf=n,fy=y):(hm=0,k1=null),w=n.pendingLanes,w===Me&&(pm=null),J||xM(n.current,!1),Rv(p.stateNode,f),ya&&n.memoizedUpdaters.clear(),p9(),co(n,Rr()),a!==null)for(var he=n.onRecoverableError,me=0;me<a.length;me++){var _e=a[me],ut=_e.stack,Ct=_e.digest;he(_e.value,{componentStack:ut,digest:Ct})}if(O1){O1=!1;var yt=rR;throw rR=null,yt}return bi(fy,Ut)&&n.tag!==rf&&tc(),w=n.pendingLanes,bi(w,Ut)?(Vj(),n===oR?dy++:(dy=0,oR=n)):dy=0,af(),Av(),null}function tc(){if(hf!==null){var n=bs(fy),a=$C(yr,n),o=ni.transition,f=ao();try{return ni.transition=null,ra(a),L9()}finally{ra(f),ni.transition=o}}return!1}function I9(n){aR.push(n),lp||(lp=!0,mR(hs,function(){return tc(),null}))}function L9(){if(hf===null)return!1;var n=iR;iR=null;var a=hf,o=fy;if(hf=null,fy=Me,(Rn&(ri|Os))!==_a)throw new Error("Cannot flush passive effects while already rendering.");sR=!0,A1=!1,m0(o);var f=Rn;Rn|=Os,t9(a.current),Z$(a,a.current,o,n);{var p=aR;aR=[];for(var y=0;y<p.length;y++){var w=p[y];F$(a,w)}}v0(),xM(a.current,!0),Rn=f,af(),A1?a===k1?hm++:(hm=0,k1=a):hm=0,sR=!1,A1=!1,AC(a);{var T=a.current.stateNode;T.effectDuration=0,T.passiveEffectDuration=0}return!0}function yM(n){return pm!==null&&pm.has(n)}function F9(n){pm===null?pm=new Set([n]):pm.add(n)}function z9(n){O1||(O1=!0,rR=n)}var B9=z9;function bM(n,a,o){var f=ip(o,a),p=vP(n,f,Ut),y=sf(n,p,Ut),w=Hi();y!==null&&(Fu(y,Ut,w),co(y,w))}function pr(n,a,o){if(A$(o),vy(!1),n.tag===x){bM(n,n,o);return}var f=null;for(f=a;f!==null;){if(f.tag===x){bM(f,n,o);return}else if(f.tag===v){var p=f.type,y=f.stateNode;if(typeof p.getDerivedStateFromError=="function"||typeof y.componentDidCatch=="function"&&!yM(y)){var w=ip(o,n),T=DN(f,w,Ut),O=sf(f,T,Ut),F=Hi();O!==null&&(Fu(O,Ut,F),co(O,F));return}}f=f.return}u(`Internal React error: Attempted to capture a commit phase error inside a detached tree. This indicates a bug in React. Likely causes include deleting the same fiber more than once, committing an already-finished tree, or an inconsistent return pointer.
|
|
|
|
Error message:
|
|
|
|
%s`,o)}function U9(n,a,o){var f=n.pingCache;f!==null&&f.delete(a);var p=Hi();_d(n,o),K9(n),Vi===n&&Lu(Ea,o)&&(Ta===oy||Ta===T1&&$v(Ea)&&Rr()-nR<iM?up(n,Me):R1=un(R1,o)),co(n,p)}function SM(n,a){a===Wr&&(a=S9(n));var o=Hi(),f=so(n,a);f!==null&&(Fu(f,a,o),co(f,o))}function j9(n){var a=n.memoizedState,o=Wr;a!==null&&(o=a.retryLane),SM(n,o)}function $9(n,a){var o=Wr,f;switch(n.tag){case $:f=n.stateNode;var p=n.memoizedState;p!==null&&(o=p.retryLane);break;case be:f=n.stateNode;break;default:throw new Error("Pinged unknown suspense boundary type. This is probably a bug in React.")}f!==null&&f.delete(a),SM(n,o)}function V9(n){return n<120?120:n<480?480:n<1080?1080:n<1920?1920:n<3e3?3e3:n<4320?4320:v9(n/1960)*1960}function H9(){if(dy>y9)throw dy=0,oR=null,new Error("Maximum update depth exceeded. This can happen when a component repeatedly calls setState inside componentWillUpdate or componentDidUpdate. React limits the number of nested updates to prevent infinite loops.");hm>b9&&(hm=0,k1=null,u("Maximum update depth exceeded. This can happen when a component calls setState inside useEffect, but useEffect either doesn't have a dependency array, or one of the dependencies changes on every render."))}function W9(){sl.flushLegacyContextWarning(),sl.flushPendingUnsafeLifecycleWarnings()}function xM(n,a){er(n),L1(n,Hr,c9),a&&L1(n,sh,f9),L1(n,Hr,l9),a&&L1(n,sh,u9),wr()}function L1(n,a,o){for(var f=n,p=null;f!==null;){var y=f.subtreeFlags&a;f!==p&&f.child!==null&&y!==kt?f=f.child:((f.flags&a)!==kt&&o(f),f.sibling!==null?f=f.sibling:f=p=f.return)}}var F1=null;function wM(n){{if((Rn&ri)!==_a||!(n.mode&yn))return;var a=n.tag;if(a!==b&&a!==x&&a!==v&&a!==m&&a!==z&&a!==K&&a!==X)return;var o=It(n)||"ReactComponent";if(F1!==null){if(F1.has(o))return;F1.add(o)}else F1=new Set([o]);var f=gr;try{er(n),u("Can't perform a React state update on a component that hasn't mounted yet. This indicates that you have a side-effect in your render function that asynchronously later calls tries to update the component. Move this work to useEffect instead.")}finally{f?er(n):wr()}}}var dR;{var G9=null;dR=function(n,a,o){var f=AM(G9,a);try{return IP(n,a,o)}catch(y){if(ij()||y!==null&&typeof y=="object"&&typeof y.then=="function")throw y;if($S(),VD(),jP(n,a),AM(a,f),a.mode&Un&&TN(a),kc(null,IP,null,n,a,o),L()){var p=Ml();typeof p=="object"&&p!==null&&p._suppressLogging&&typeof y=="object"&&y!==null&&!y._suppressLogging&&(y._suppressLogging=!0)}throw y}}}var CM=!1,pR;pR=new Set;function Y9(n){if(Ii&&!Uj())switch(n.tag){case m:case z:case X:{var a=Pr&&It(Pr)||"Unknown",o=a;if(!pR.has(o)){pR.add(o);var f=It(n)||"Unknown";u("Cannot update a component (`%s`) while rendering a different component (`%s`). To locate the bad setState() call inside `%s`, follow the stack trace as described in https://reactjs.org/link/setstate-in-render",f,a,a)}break}case v:{CM||(u("Cannot update during an existing state transition (such as within `render`). Render methods should be a pure function of props and state."),CM=!0);break}}}function my(n,a){if(ya){var o=n.memoizedUpdaters;o.forEach(function(f){Ch(n,f,a)})}}var hR={};function mR(n,a){{var o=ml.current;return o!==null?(o.push(a),hR):Fi(n,a)}}function _M(n){if(n!==hR)return RC(n)}function EM(){return ml.current!==null}function q9(n){{if(n.mode&yn){if(!nM())return}else if(!m9()||Rn!==_a||n.tag!==m&&n.tag!==z&&n.tag!==X)return;if(ml.current===null){var a=gr;try{er(n),u(`An update to %s inside a test was not wrapped in act(...).
|
|
|
|
When testing, code that causes React state updates should be wrapped into act(...):
|
|
|
|
act(() => {
|
|
/* fire events that update state */
|
|
});
|
|
/* assert on the output */
|
|
|
|
This ensures that you're testing the behavior the user would see in the browser. Learn more at https://reactjs.org/link/wrap-tests-with-act`,It(n))}finally{a?er(n):wr()}}}}function K9(n){n.tag!==rf&&nM()&&ml.current===null&&u(`A suspended resource finished loading inside a test, but the event was not wrapped in act(...).
|
|
|
|
When testing, code that resolves suspended data should be wrapped into act(...):
|
|
|
|
act(() => {
|
|
/* finish loading suspended data */
|
|
});
|
|
/* assert on the output */
|
|
|
|
This ensures that you're testing the behavior the user would see in the browser. Learn more at https://reactjs.org/link/wrap-tests-with-act`)}function vy(n){lM=n}var As=null,mm=null,X9=function(n){As=n};function vm(n){{if(As===null)return n;var a=As(n);return a===void 0?n:a.current}}function vR(n){return vm(n)}function gR(n){{if(As===null)return n;var a=As(n);if(a===void 0){if(n!=null&&typeof n.render=="function"){var o=vm(n.render);if(n.render!==o){var f={$$typeof:tt,render:o};return n.displayName!==void 0&&(f.displayName=n.displayName),f}}return n}return a.current}}function TM(n,a){{if(As===null)return!1;var o=n.elementType,f=a.type,p=!1,y=typeof f=="object"&&f!==null?f.$$typeof:null;switch(n.tag){case v:{typeof f=="function"&&(p=!0);break}case m:{(typeof f=="function"||y===an)&&(p=!0);break}case z:{(y===tt||y===an)&&(p=!0);break}case K:case X:{(y===Mn||y===an)&&(p=!0);break}default:return!1}if(p){var w=As(o);if(w!==void 0&&w===As(f))return!0}return!1}}function NM(n){{if(As===null||typeof WeakSet!="function")return;mm===null&&(mm=new WeakSet),mm.add(n)}}var Z9=function(n,a){{if(As===null)return;var o=a.staleFamilies,f=a.updatedFamilies;tc(),ec(function(){yR(n.current,f,o)})}},Q9=function(n,a){{if(n.context!==Uo)return;tc(),ec(function(){gy(a,n,null,null)})}};function yR(n,a,o){{var f=n.alternate,p=n.child,y=n.sibling,w=n.tag,T=n.type,O=null;switch(w){case m:case X:case v:O=T;break;case z:O=T.render;break}if(As===null)throw new Error("Expected resolveFamily to be set during hot reload.");var F=!1,H=!1;if(O!==null){var ee=As(O);ee!==void 0&&(o.has(ee)?H=!0:a.has(ee)&&(w===v?H=!0:F=!0))}if(mm!==null&&(mm.has(n)||f!==null&&mm.has(f))&&(H=!0),H&&(n._debugNeedsRemount=!0),H||F){var J=so(n,Ut);J!==null&&Na(J,n,Ut,Xn)}p!==null&&!H&&yR(p,a,o),y!==null&&yR(y,a,o)}}var J9=function(n,a){{var o=new Set,f=new Set(a.map(function(p){return p.current}));return bR(n.current,f,o),o}};function bR(n,a,o){{var f=n.child,p=n.sibling,y=n.tag,w=n.type,T=null;switch(y){case m:case X:case v:T=w;break;case z:T=w.render;break}var O=!1;T!==null&&a.has(T)&&(O=!0),O?eV(n,o):f!==null&&bR(f,a,o),p!==null&&bR(p,a,o)}}function eV(n,a){{var o=tV(n,a);if(o)return;for(var f=n;;){switch(f.tag){case _:a.add(f.stateNode);return;case C:a.add(f.stateNode.containerInfo);return;case x:a.add(f.stateNode.containerInfo);return}if(f.return===null)throw new Error("Expected to reach root first.");f=f.return}}}function tV(n,a){for(var o=n,f=!1;;){if(o.tag===_)f=!0,a.add(o.stateNode);else if(o.child!==null){o.child.return=o,o=o.child;continue}if(o===n)return f;for(;o.sibling===null;){if(o.return===null||o.return===n)return f;o=o.return}o.sibling.return=o.return,o=o.sibling}return!1}var SR;{SR=!1;try{var RM=Object.preventExtensions({})}catch{SR=!0}}function nV(n,a,o,f){this.tag=n,this.key=o,this.elementType=null,this.type=null,this.stateNode=null,this.return=null,this.child=null,this.sibling=null,this.index=0,this.ref=null,this.pendingProps=a,this.memoizedProps=null,this.updateQueue=null,this.memoizedState=null,this.dependencies=null,this.mode=f,this.flags=kt,this.subtreeFlags=kt,this.deletions=null,this.lanes=Me,this.childLanes=Me,this.alternate=null,this.actualDuration=Number.NaN,this.actualStartTime=Number.NaN,this.selfBaseDuration=Number.NaN,this.treeBaseDuration=Number.NaN,this.actualDuration=0,this.actualStartTime=-1,this.selfBaseDuration=0,this.treeBaseDuration=0,this._debugSource=null,this._debugOwner=null,this._debugNeedsRemount=!1,this._debugHookTypes=null,!SR&&typeof Object.preventExtensions=="function"&&Object.preventExtensions(this)}var jo=function(n,a,o,f){return new nV(n,a,o,f)};function xR(n){var a=n.prototype;return!!(a&&a.isReactComponent)}function rV(n){return typeof n=="function"&&!xR(n)&&n.defaultProps===void 0}function aV(n){if(typeof n=="function")return xR(n)?v:m;if(n!=null){var a=n.$$typeof;if(a===tt)return z;if(a===Mn)return K}return b}function fp(n,a){var o=n.alternate;o===null?(o=jo(n.tag,a,n.key,n.mode),o.elementType=n.elementType,o.type=n.type,o.stateNode=n.stateNode,o._debugSource=n._debugSource,o._debugOwner=n._debugOwner,o._debugHookTypes=n._debugHookTypes,o.alternate=n,n.alternate=o):(o.pendingProps=a,o.type=n.type,o.flags=kt,o.subtreeFlags=kt,o.deletions=null,o.actualDuration=0,o.actualStartTime=-1),o.flags=n.flags&ds,o.childLanes=n.childLanes,o.lanes=n.lanes,o.child=n.child,o.memoizedProps=n.memoizedProps,o.memoizedState=n.memoizedState,o.updateQueue=n.updateQueue;var f=n.dependencies;switch(o.dependencies=f===null?null:{lanes:f.lanes,firstContext:f.firstContext},o.sibling=n.sibling,o.index=n.index,o.ref=n.ref,o.selfBaseDuration=n.selfBaseDuration,o.treeBaseDuration=n.treeBaseDuration,o._debugNeedsRemount=n._debugNeedsRemount,o.tag){case b:case m:case X:o.type=vm(n.type);break;case v:o.type=vR(n.type);break;case z:o.type=gR(n.type);break}return o}function iV(n,a){n.flags&=ds|zr;var o=n.alternate;if(o===null)n.childLanes=Me,n.lanes=a,n.child=null,n.subtreeFlags=kt,n.memoizedProps=null,n.memoizedState=null,n.updateQueue=null,n.dependencies=null,n.stateNode=null,n.selfBaseDuration=0,n.treeBaseDuration=0;else{n.childLanes=o.childLanes,n.lanes=o.lanes,n.child=o.child,n.subtreeFlags=kt,n.deletions=null,n.memoizedProps=o.memoizedProps,n.memoizedState=o.memoizedState,n.updateQueue=o.updateQueue,n.type=o.type;var f=o.dependencies;n.dependencies=f===null?null:{lanes:f.lanes,firstContext:f.firstContext},n.selfBaseDuration=o.selfBaseDuration,n.treeBaseDuration=o.treeBaseDuration}return n}function oV(n,a,o){var f;return n===MS?(f=yn,a===!0&&(f|=Dr,f|=ro)):f=Rt,ya&&(f|=Un),jo(x,null,null,f)}function wR(n,a,o,f,p,y){var w=b,T=n;if(typeof n=="function")xR(n)?(w=v,T=vR(T)):T=vm(T);else if(typeof n=="string")w=_;else{e:switch(n){case Be:return gf(o.children,p,y,a);case qe:w=M,p|=Dr,(p&yn)!==Rt&&(p|=ro);break;case bt:return sV(o,p,y,a);case $t:return lV(o,p,y,a);case zn:return uV(o,p,y,a);case Eo:return OM(o,p,y,a);case da:case Lr:case Ji:case bu:case ci:default:{if(typeof n=="object"&&n!==null)switch(n.$$typeof){case nn:w=I;break e;case gn:w=j;break e;case tt:w=z,T=gR(T);break e;case Mn:w=K;break e;case an:w=de,T=null;break e}var O="";{(n===void 0||typeof n=="object"&&n!==null&&Object.keys(n).length===0)&&(O+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");var F=f?It(f):null;F&&(O+=`
|
|
|
|
Check the render method of \``+F+"`.")}throw new Error("Element type is invalid: expected a string (for built-in components) or a class/function (for composite components) "+("but got: "+(n==null?n:typeof n)+"."+O))}}}var H=jo(w,o,a,p);return H.elementType=n,H.type=T,H.lanes=y,H._debugOwner=f,H}function CR(n,a,o){var f=null;f=n._owner;var p=n.type,y=n.key,w=n.props,T=wR(p,y,w,f,a,o);return T._debugSource=n._source,T._debugOwner=n._owner,T}function gf(n,a,o,f){var p=jo(A,n,f,a);return p.lanes=o,p}function sV(n,a,o,f){typeof n.id!="string"&&u('Profiler must specify an "id" of type `string` as a prop. Received the type `%s` instead.',typeof n.id);var p=jo(B,n,f,a|Un);return p.elementType=bt,p.lanes=o,p.stateNode={effectDuration:0,passiveEffectDuration:0},p}function lV(n,a,o,f){var p=jo($,n,f,a);return p.elementType=$t,p.lanes=o,p}function uV(n,a,o,f){var p=jo(be,n,f,a);return p.elementType=zn,p.lanes=o,p}function OM(n,a,o,f){var p=jo(ie,n,f,a);p.elementType=Eo,p.lanes=o;var y={isHidden:!1};return p.stateNode=y,p}function _R(n,a,o){var f=jo(R,n,null,a);return f.lanes=o,f}function cV(){var n=jo(_,null,null,Rt);return n.elementType="DELETED",n}function fV(n){var a=jo(se,null,null,Rt);return a.stateNode=n,a}function ER(n,a,o){var f=n.children!==null?n.children:[],p=jo(C,f,n.key,a);return p.lanes=o,p.stateNode={containerInfo:n.containerInfo,pendingChildren:null,implementation:n.implementation},p}function AM(n,a){return n===null&&(n=jo(b,null,null,Rt)),n.tag=a.tag,n.key=a.key,n.elementType=a.elementType,n.type=a.type,n.stateNode=a.stateNode,n.return=a.return,n.child=a.child,n.sibling=a.sibling,n.index=a.index,n.ref=a.ref,n.pendingProps=a.pendingProps,n.memoizedProps=a.memoizedProps,n.updateQueue=a.updateQueue,n.memoizedState=a.memoizedState,n.dependencies=a.dependencies,n.mode=a.mode,n.flags=a.flags,n.subtreeFlags=a.subtreeFlags,n.deletions=a.deletions,n.lanes=a.lanes,n.childLanes=a.childLanes,n.alternate=a.alternate,n.actualDuration=a.actualDuration,n.actualStartTime=a.actualStartTime,n.selfBaseDuration=a.selfBaseDuration,n.treeBaseDuration=a.treeBaseDuration,n._debugSource=a._debugSource,n._debugOwner=a._debugOwner,n._debugNeedsRemount=a._debugNeedsRemount,n._debugHookTypes=a._debugHookTypes,n}function dV(n,a,o,f,p){this.tag=a,this.containerInfo=n,this.pendingChildren=null,this.current=null,this.pingCache=null,this.finishedWork=null,this.timeoutHandle=Tg,this.context=null,this.pendingContext=null,this.callbackNode=null,this.callbackPriority=Wr,this.eventTimes=Cd(Me),this.expirationTimes=Cd(Xn),this.pendingLanes=Me,this.suspendedLanes=Me,this.pingedLanes=Me,this.expiredLanes=Me,this.mutableReadLanes=Me,this.finishedLanes=Me,this.entangledLanes=Me,this.entanglements=Cd(Me),this.identifierPrefix=f,this.onRecoverableError=p,this.mutableSourceEagerHydrationData=null,this.effectDuration=0,this.passiveEffectDuration=0;{this.memoizedUpdaters=new Set;for(var y=this.pendingUpdatersLaneMap=[],w=0;w<Fv;w++)y.push(new Set)}switch(a){case MS:this._debugRootType=o?"hydrateRoot()":"createRoot()";break;case rf:this._debugRootType=o?"hydrate()":"render()";break}}function kM(n,a,o,f,p,y,w,T,O,F){var H=new dV(n,a,o,T,O),ee=oV(a,y);H.current=ee,ee.stateNode=H;{var J={element:f,isDehydrated:o,cache:null,transitions:null,pendingSuspenseBoundaries:null};ee.memoizedState=J}return PT(ee),H}var TR="18.2.0";function pV(n,a,o){var f=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null;return ir(f),{$$typeof:q,key:f==null?null:""+f,children:n,containerInfo:a,implementation:o}}var NR,RR;NR=!1,RR={};function DM(n){if(!n)return Uo;var a=Ks(n),o=XU(a);if(a.tag===v){var f=a.type;if(Wl(f))return aD(a,f,o)}return o}function hV(n,a){{var o=Ks(n);if(o===void 0){if(typeof n.render=="function")throw new Error("Unable to find node on an unmounted component.");var f=Object.keys(n).join(",");throw new Error("Argument appears to not be a ReactComponent. Keys: "+f)}var p=s0(o);if(p===null)return null;if(p.mode&Dr){var y=It(o)||"Component";if(!RR[y]){RR[y]=!0;var w=gr;try{er(p),o.mode&Dr?u("%s is deprecated in StrictMode. %s was passed an instance of %s which is inside StrictMode. Instead, add a ref directly to the element you want to reference. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-find-node",a,a,y):u("%s is deprecated in StrictMode. %s was passed an instance of %s which renders StrictMode children. Instead, add a ref directly to the element you want to reference. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-find-node",a,a,y)}finally{w?er(w):wr()}}}return p.stateNode}}function PM(n,a,o,f,p,y,w,T){var O=!1,F=null;return kM(n,a,O,F,o,f,p,y,w)}function MM(n,a,o,f,p,y,w,T,O,F){var H=!0,ee=kM(o,f,H,n,p,y,w,T,O);ee.context=DM(null);var J=ee.current,he=Hi(),me=mf(J),_e=Xu(he,me);return _e.callback=a??null,sf(J,_e,me),x9(ee,me,he),ee}function gy(n,a,o,f){Wa(a,n);var p=a.current,y=Hi(),w=mf(p);y0(w);var T=DM(o);a.context===null?a.context=T:a.pendingContext=T,Ii&&gr!==null&&!NR&&(NR=!0,u(`Render methods should be a pure function of props and state; triggering nested component updates from render is not allowed. If necessary, trigger nested updates in componentDidUpdate.
|
|
|
|
Check the render method of %s.`,It(gr)||"Unknown"));var O=Xu(y,w);O.payload={element:n},f=f===void 0?null:f,f!==null&&(typeof f!="function"&&u("render(...): Expected the last optional `callback` argument to be a function. Instead received: %s.",f),O.callback=f);var F=sf(p,O,w);return F!==null&&(Na(F,p,w,y),YS(F,p,w)),w}function z1(n){var a=n.current;if(!a.child)return null;switch(a.child.tag){case _:return a.child.stateNode;default:return a.child.stateNode}}function mV(n){switch(n.tag){case x:{var a=n.stateNode;if(aa(a)){var o=BC(a);E9(a,o)}break}case $:{ec(function(){var p=so(n,Ut);if(p!==null){var y=Hi();Na(p,n,Ut,y)}});var f=Ut;OR(n,f);break}}}function IM(n,a){var o=n.memoizedState;o!==null&&o.dehydrated!==null&&(o.retryLane=nl(o.retryLane,a))}function OR(n,a){IM(n,a);var o=n.alternate;o&&IM(o,a)}function vV(n){if(n.tag===$){var a=Uc,o=so(n,a);if(o!==null){var f=Hi();Na(o,n,a,f)}OR(n,a)}}function gV(n){if(n.tag===$){var a=mf(n),o=so(n,a);if(o!==null){var f=Hi();Na(o,n,a,f)}OR(n,a)}}function LM(n){var a=Ev(n);return a===null?null:a.stateNode}var FM=function(n){return null};function yV(n){return FM(n)}var zM=function(n){return!1};function bV(n){return zM(n)}var BM=null,UM=null,jM=null,$M=null,VM=null,HM=null,WM=null,GM=null,YM=null;{var qM=function(n,a,o){var f=a[o],p=Dt(n)?n.slice():Zt({},n);return o+1===a.length?(Dt(p)?p.splice(f,1):delete p[f],p):(p[f]=qM(n[f],a,o+1),p)},KM=function(n,a){return qM(n,a,0)},XM=function(n,a,o,f){var p=a[f],y=Dt(n)?n.slice():Zt({},n);if(f+1===a.length){var w=o[f];y[w]=y[p],Dt(y)?y.splice(p,1):delete y[p]}else y[p]=XM(n[p],a,o,f+1);return y},ZM=function(n,a,o){if(a.length!==o.length){c("copyWithRename() expects paths of the same length");return}else for(var f=0;f<o.length-1;f++)if(a[f]!==o[f]){c("copyWithRename() expects paths to be the same except for the deepest key");return}return XM(n,a,o,0)},QM=function(n,a,o,f){if(o>=a.length)return f;var p=a[o],y=Dt(n)?n.slice():Zt({},n);return y[p]=QM(n[p],a,o+1,f),y},JM=function(n,a,o){return QM(n,a,0,o)},AR=function(n,a){for(var o=n.memoizedState;o!==null&&a>0;)o=o.next,a--;return o};BM=function(n,a,o,f){var p=AR(n,a);if(p!==null){var y=JM(p.memoizedState,o,f);p.memoizedState=y,p.baseState=y,n.memoizedProps=Zt({},n.memoizedProps);var w=so(n,Ut);w!==null&&Na(w,n,Ut,Xn)}},UM=function(n,a,o){var f=AR(n,a);if(f!==null){var p=KM(f.memoizedState,o);f.memoizedState=p,f.baseState=p,n.memoizedProps=Zt({},n.memoizedProps);var y=so(n,Ut);y!==null&&Na(y,n,Ut,Xn)}},jM=function(n,a,o,f){var p=AR(n,a);if(p!==null){var y=ZM(p.memoizedState,o,f);p.memoizedState=y,p.baseState=y,n.memoizedProps=Zt({},n.memoizedProps);var w=so(n,Ut);w!==null&&Na(w,n,Ut,Xn)}},$M=function(n,a,o){n.pendingProps=JM(n.memoizedProps,a,o),n.alternate&&(n.alternate.pendingProps=n.pendingProps);var f=so(n,Ut);f!==null&&Na(f,n,Ut,Xn)},VM=function(n,a){n.pendingProps=KM(n.memoizedProps,a),n.alternate&&(n.alternate.pendingProps=n.pendingProps);var o=so(n,Ut);o!==null&&Na(o,n,Ut,Xn)},HM=function(n,a,o){n.pendingProps=ZM(n.memoizedProps,a,o),n.alternate&&(n.alternate.pendingProps=n.pendingProps);var f=so(n,Ut);f!==null&&Na(f,n,Ut,Xn)},WM=function(n){var a=so(n,Ut);a!==null&&Na(a,n,Ut,Xn)},GM=function(n){FM=n},YM=function(n){zM=n}}function SV(n){var a=s0(n);return a===null?null:a.stateNode}function xV(n){return null}function wV(){return gr}function CV(n){var a=n.findFiberByHostInstance,o=r.ReactCurrentDispatcher;return c0({bundleType:n.bundleType,version:n.version,rendererPackageName:n.rendererPackageName,rendererConfig:n.rendererConfig,overrideHookState:BM,overrideHookStateDeletePath:UM,overrideHookStateRenamePath:jM,overrideProps:$M,overridePropsDeletePath:VM,overridePropsRenamePath:HM,setErrorHandler:GM,setSuspenseHandler:YM,scheduleUpdate:WM,currentDispatcherRef:o,findHostInstanceByFiber:SV,findFiberByHostInstance:a||xV,findHostInstancesForRefresh:J9,scheduleRefresh:Z9,scheduleRoot:Q9,setRefreshHandler:X9,getCurrentFiber:wV,reconcilerVersion:TR})}var eI=typeof reportError=="function"?reportError:function(n){console.error(n)};function kR(n){this._internalRoot=n}B1.prototype.render=kR.prototype.render=function(n){var a=this._internalRoot;if(a===null)throw new Error("Cannot update an unmounted root.");{typeof arguments[1]=="function"?u("render(...): does not support the second callback argument. To execute a side effect after rendering, declare it in a component body with useEffect()."):U1(arguments[1])?u("You passed a container to the second argument of root.render(...). You don't need to pass it again since you already passed it to create the root."):typeof arguments[1]<"u"&&u("You passed a second argument to root.render(...) but it only accepts one argument.");var o=a.containerInfo;if(o.nodeType!==Bn){var f=LM(a.current);f&&f.parentNode!==o&&u("render(...): It looks like the React-rendered content of the root container was removed without using React. This is not supported and will cause errors. Instead, call root.unmount() to empty a root's container.")}}gy(n,a,null,null)},B1.prototype.unmount=kR.prototype.unmount=function(){typeof arguments[0]=="function"&&u("unmount(...): does not support a callback argument. To execute a side effect after rendering, declare it in a component body with useEffect().");var n=this._internalRoot;if(n!==null){this._internalRoot=null;var a=n.containerInfo;dM()&&u("Attempted to synchronously unmount a root while React was already rendering. React cannot finish unmounting the root until the current render has completed, which may lead to a race condition."),ec(function(){gy(null,n,null,null)}),De(a)}};function _V(n,a){if(!U1(n))throw new Error("createRoot(...): Target container is not a DOM element.");tI(n);var o=!1,f=!1,p="",y=eI;a!=null&&(a.hydrate?c("hydrate through createRoot is deprecated. Use ReactDOMClient.hydrateRoot(container, <App />) instead."):typeof a=="object"&&a!==null&&a.$$typeof===ka&&u(`You passed a JSX element to createRoot. You probably meant to call root.render instead. Example usage:
|
|
|
|
let root = createRoot(domContainer);
|
|
root.render(<App />);`),a.unstable_strictMode===!0&&(o=!0),a.identifierPrefix!==void 0&&(p=a.identifierPrefix),a.onRecoverableError!==void 0&&(y=a.onRecoverableError),a.transitionCallbacks!==void 0&&a.transitionCallbacks);var w=PM(n,MS,null,o,f,p,y);ae(w.current,n);var T=n.nodeType===Bn?n.parentNode:n;return jd(T),new kR(w)}function B1(n){this._internalRoot=n}function EV(n){n&&P0(n)}B1.prototype.unstable_scheduleHydration=EV;function TV(n,a,o){if(!U1(n))throw new Error("hydrateRoot(...): Target container is not a DOM element.");tI(n),a===void 0&&u("Must provide initial children as second argument to hydrateRoot. Example usage: hydrateRoot(domContainer, <App />)");var f=o??null,p=o!=null&&o.hydratedSources||null,y=!1,w=!1,T="",O=eI;o!=null&&(o.unstable_strictMode===!0&&(y=!0),o.identifierPrefix!==void 0&&(T=o.identifierPrefix),o.onRecoverableError!==void 0&&(O=o.onRecoverableError));var F=MM(a,null,n,MS,f,y,w,T,O);if(ae(F.current,n),jd(n),p)for(var H=0;H<p.length;H++){var ee=p[H];Mj(F,ee)}return new B1(F)}function U1(n){return!!(n&&(n.nodeType===yi||n.nodeType===Io||n.nodeType===Cu||!Ie))}function yy(n){return!!(n&&(n.nodeType===yi||n.nodeType===Io||n.nodeType===Cu||n.nodeType===Bn&&n.nodeValue===" react-mount-point-unstable "))}function tI(n){n.nodeType===yi&&n.tagName&&n.tagName.toUpperCase()==="BODY"&&u("createRoot(): Creating roots directly with document.body is discouraged, since its children are often manipulated by third-party scripts and browser extensions. This may lead to subtle reconciliation issues. Try using a container element created for your app."),Oe(n)&&(n._reactRootContainer?u("You are calling ReactDOMClient.createRoot() on a container that was previously passed to ReactDOM.render(). This is not supported."):u("You are calling ReactDOMClient.createRoot() on a container that has already been passed to createRoot() before. Instead, call root.render() on the existing root instead if you want to update it."))}var NV=r.ReactCurrentOwner,nI;nI=function(n){if(n._reactRootContainer&&n.nodeType!==Bn){var a=LM(n._reactRootContainer.current);a&&a.parentNode!==n&&u("render(...): It looks like the React-rendered content of this container was removed without using React. This is not supported and will cause errors. Instead, call ReactDOM.unmountComponentAtNode to empty a container.")}var o=!!n._reactRootContainer,f=DR(n),p=!!(f&&Ke(f));p&&!o&&u("render(...): Replacing React-rendered children with a new root component. If you intended to update the children of this node, you should instead have the existing children update their state and render the new components instead of calling ReactDOM.render."),n.nodeType===yi&&n.tagName&&n.tagName.toUpperCase()==="BODY"&&u("render(): Rendering components directly into document.body is discouraged, since its children are often manipulated by third-party scripts and browser extensions. This may lead to subtle reconciliation issues. Try rendering into a container element created for your app.")};function DR(n){return n?n.nodeType===Io?n.documentElement:n.firstChild:null}function rI(){}function RV(n,a,o,f,p){if(p){if(typeof f=="function"){var y=f;f=function(){var J=z1(w);y.call(J)}}var w=MM(a,f,n,rf,null,!1,!1,"",rI);n._reactRootContainer=w,ae(w.current,n);var T=n.nodeType===Bn?n.parentNode:n;return jd(T),ec(),w}else{for(var O;O=n.lastChild;)n.removeChild(O);if(typeof f=="function"){var F=f;f=function(){var J=z1(H);F.call(J)}}var H=PM(n,rf,null,!1,!1,"",rI);n._reactRootContainer=H,ae(H.current,n);var ee=n.nodeType===Bn?n.parentNode:n;return jd(ee),ec(function(){gy(a,H,o,f)}),H}}function OV(n,a){n!==null&&typeof n!="function"&&u("%s(...): Expected the last optional `callback` argument to be a function. Instead received: %s.",a,n)}function j1(n,a,o,f,p){nI(o),OV(p===void 0?null:p,"render");var y=o._reactRootContainer,w;if(!y)w=RV(o,a,n,p,f);else{if(w=y,typeof p=="function"){var T=p;p=function(){var O=z1(w);T.call(O)}}gy(a,w,n,p)}return z1(w)}function AV(n){{var a=NV.current;if(a!==null&&a.stateNode!==null){var o=a.stateNode._warnedAboutRefsInRender;o||u("%s is accessing findDOMNode inside its render(). render() should be a pure function of props and state. It should never access something that requires stale data from the previous render, such as refs. Move this logic to componentDidMount and componentDidUpdate instead.",on(a.type)||"A component"),a.stateNode._warnedAboutRefsInRender=!0}}return n==null?null:n.nodeType===yi?n:hV(n,"findDOMNode")}function kV(n,a,o){if(u("ReactDOM.hydrate is no longer supported in React 18. Use hydrateRoot instead. Until you switch to the new API, your app will behave as if it's running React 17. Learn more: https://reactjs.org/link/switch-to-createroot"),!yy(a))throw new Error("Target container is not a DOM element.");{var f=Oe(a)&&a._reactRootContainer===void 0;f&&u("You are calling ReactDOM.hydrate() on a container that was previously passed to ReactDOMClient.createRoot(). This is not supported. Did you mean to call hydrateRoot(container, element)?")}return j1(null,n,a,!0,o)}function DV(n,a,o){if(u("ReactDOM.render is no longer supported in React 18. Use createRoot instead. Until you switch to the new API, your app will behave as if it's running React 17. Learn more: https://reactjs.org/link/switch-to-createroot"),!yy(a))throw new Error("Target container is not a DOM element.");{var f=Oe(a)&&a._reactRootContainer===void 0;f&&u("You are calling ReactDOM.render() on a container that was previously passed to ReactDOMClient.createRoot(). This is not supported. Did you mean to call root.render(element)?")}return j1(null,n,a,!1,o)}function PV(n,a,o,f){if(u("ReactDOM.unstable_renderSubtreeIntoContainer() is no longer supported in React 18. Consider using a portal instead. Until you switch to the createRoot API, your app will behave as if it's running React 17. Learn more: https://reactjs.org/link/switch-to-createroot"),!yy(o))throw new Error("Target container is not a DOM element.");if(n==null||!no(n))throw new Error("parentComponent must be a valid React Component");return j1(n,a,o,!1,f)}function MV(n){if(!yy(n))throw new Error("unmountComponentAtNode(...): Target container is not a DOM element.");{var a=Oe(n)&&n._reactRootContainer===void 0;a&&u("You are calling ReactDOM.unmountComponentAtNode() on a container that was previously passed to ReactDOMClient.createRoot(). This is not supported. Did you mean to call root.unmount()?")}if(n._reactRootContainer){{var o=DR(n),f=o&&!Ke(o);f&&u("unmountComponentAtNode(): The node you're attempting to unmount was rendered by another copy of React.")}return ec(function(){j1(null,null,n,!1,function(){n._reactRootContainer=null,De(n)})}),!0}else{{var p=DR(n),y=!!(p&&Ke(p)),w=n.nodeType===yi&&yy(n.parentNode)&&!!n.parentNode._reactRootContainer;y&&u("unmountComponentAtNode(): The node you're attempting to unmount was rendered by React and is not a top-level container. %s",w?"You may have accidentally passed in a React root node instead of its container.":"Instead, have the parent component update its state and rerender in order to remove this component.")}return!1}}VC(mV),HC(vV),R0(gV),WC(ao),GC(N0),(typeof Map!="function"||Map.prototype==null||typeof Map.prototype.forEach!="function"||typeof Set!="function"||Set.prototype==null||typeof Set.prototype.clear!="function"||typeof Set.prototype.forEach!="function")&&u("React depends on Map and Set built-in types. Make sure that you load a polyfill in older browsers. https://reactjs.org/link/react-polyfills"),vv(CS),t0(uR,T9,ec);function IV(n,a){var o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null;if(!U1(a))throw new Error("Target container is not a DOM element.");return pV(n,a,null,o)}function LV(n,a,o,f){return PV(n,a,o,f)}var PR={usingClientEntryPoint:!1,Events:[Ke,dt,At,Xb,Qb,uR]};function FV(n,a){return PR.usingClientEntryPoint||u('You are importing createRoot from "react-dom" which is not supported. You should instead import it from "react-dom/client".'),_V(n,a)}function zV(n,a,o){return PR.usingClientEntryPoint||u('You are importing hydrateRoot from "react-dom" which is not supported. You should instead import it from "react-dom/client".'),TV(n,a,o)}function BV(n){return dM()&&u("flushSync was called from inside a lifecycle method. React cannot flush when React is already rendering. Consider moving this call to a scheduler task or micro task."),ec(n)}var UV=CV({findFiberByHostInstance:Pe,bundleType:1,version:TR,rendererPackageName:"react-dom"});if(!UV&&Yt&&window.top===window.self&&(navigator.userAgent.indexOf("Chrome")>-1&&navigator.userAgent.indexOf("Edge")===-1||navigator.userAgent.indexOf("Firefox")>-1)){var aI=window.location.protocol;/^(https?|file):$/.test(aI)&&console.info("%cDownload the React DevTools for a better development experience: https://reactjs.org/link/react-devtools"+(aI==="file:"?`
|
|
You might need to use a local HTTP server (instead of file://): https://reactjs.org/link/react-devtools-faq`:""),"font-weight:bold")}Ho.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=PR,Ho.createPortal=IV,Ho.createRoot=FV,Ho.findDOMNode=AV,Ho.flushSync=BV,Ho.hydrate=kV,Ho.hydrateRoot=zV,Ho.render=DV,Ho.unmountComponentAtNode=MV,Ho.unstable_batchedUpdates=uR,Ho.unstable_renderSubtreeIntoContainer=LV,Ho.version=TR,typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(new Error)})();(function(e){e.exports=Ho})(Sb);var MR=Sb.exports;{var $1=MR.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;NO.createRoot=function(e,t){$1.usingClientEntryPoint=!0;try{return MR.createRoot(e,t)}finally{$1.usingClientEntryPoint=!1}},NO.hydrateRoot=function(e,t,r){$1.usingClientEntryPoint=!0;try{return MR.hydrateRoot(e,t,r)}finally{$1.usingClientEntryPoint=!1}}}var dc=Boolean(globalThis?.document)?D.exports.useLayoutEffect:D.exports.useEffect,i2={exports:{}},RO={};/**
|
|
* @license React
|
|
* react-jsx-dev-runtime.development.js
|
|
*
|
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
*
|
|
* This source code is licensed under the MIT license found in the
|
|
* LICENSE file in the root directory of this source tree.
|
|
*/(function(){var e=D.exports,t=Symbol.for("react.element"),r=Symbol.for("react.portal"),i=Symbol.for("react.fragment"),s=Symbol.for("react.strict_mode"),c=Symbol.for("react.profiler"),u=Symbol.for("react.provider"),h=Symbol.for("react.context"),m=Symbol.for("react.forward_ref"),v=Symbol.for("react.suspense"),b=Symbol.for("react.suspense_list"),x=Symbol.for("react.memo"),C=Symbol.for("react.lazy"),_=Symbol.for("react.offscreen"),R=Symbol.iterator,A="@@iterator";function M(q){if(q===null||typeof q!="object")return null;var Be=R&&q[R]||q[A];return typeof Be=="function"?Be:null}var j=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function I(q){{for(var Be=arguments.length,qe=new Array(Be>1?Be-1:0),bt=1;bt<Be;bt++)qe[bt-1]=arguments[bt];z("error",q,qe)}}function z(q,Be,qe){{var bt=j.ReactDebugCurrentFrame,nn=bt.getStackAddendum();nn!==""&&(Be+="%s",qe=qe.concat([nn]));var gn=qe.map(function(tt){return String(tt)});gn.unshift("Warning: "+Be),Function.prototype.apply.call(console[q],console,gn)}}var B=!1,$=!1,K=!1,X=!1,de=!1,ve;ve=Symbol.for("react.module.reference");function se(q){return!!(typeof q=="string"||typeof q=="function"||q===i||q===c||de||q===s||q===v||q===b||X||q===_||B||$||K||typeof q=="object"&&q!==null&&(q.$$typeof===C||q.$$typeof===x||q.$$typeof===u||q.$$typeof===h||q.$$typeof===m||q.$$typeof===ve||q.getModuleId!==void 0))}function be(q,Be,qe){var bt=q.displayName;if(bt)return bt;var nn=Be.displayName||Be.name||"";return nn!==""?qe+"("+nn+")":qe}function Xe(q){return q.displayName||"Context"}function ie(q){if(q==null)return null;if(typeof q.tag=="number"&&I("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),typeof q=="function")return q.displayName||q.name||null;if(typeof q=="string")return q;switch(q){case i:return"Fragment";case r:return"Portal";case c:return"Profiler";case s:return"StrictMode";case v:return"Suspense";case b:return"SuspenseList"}if(typeof q=="object")switch(q.$$typeof){case h:var Be=q;return Xe(Be)+".Consumer";case u:var qe=q;return Xe(qe._context)+".Provider";case m:return be(q,q.render,"ForwardRef");case x:var bt=q.displayName||null;return bt!==null?bt:ie(q.type)||"Memo";case C:{var nn=q,gn=nn._payload,tt=nn._init;try{return ie(tt(gn))}catch{return null}}}return null}var ce=Object.assign,Re=0,Ce,oe,Se,Te,pe,we,Ie;function Le(){}Le.__reactDisabledLog=!0;function Ye(){{if(Re===0){Ce=console.log,oe=console.info,Se=console.warn,Te=console.error,pe=console.group,we=console.groupCollapsed,Ie=console.groupEnd;var q={configurable:!0,enumerable:!0,value:Le,writable:!0};Object.defineProperties(console,{info:q,log:q,warn:q,error:q,group:q,groupCollapsed:q,groupEnd:q})}Re++}}function st(){{if(Re--,Re===0){var q={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:ce({},q,{value:Ce}),info:ce({},q,{value:oe}),warn:ce({},q,{value:Se}),error:ce({},q,{value:Te}),group:ce({},q,{value:pe}),groupCollapsed:ce({},q,{value:we}),groupEnd:ce({},q,{value:Ie})})}Re<0&&I("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var mt=j.ReactCurrentDispatcher,Gt;function Qe(q,Be,qe){{if(Gt===void 0)try{throw Error()}catch(nn){var bt=nn.stack.trim().match(/\n( *(at )?)/);Gt=bt&&bt[1]||""}return`
|
|
`+Gt+q}}var vt=!1,Et;{var zt=typeof WeakMap=="function"?WeakMap:Map;Et=new zt}function We(q,Be){if(!q||vt)return"";{var qe=Et.get(q);if(qe!==void 0)return qe}var bt;vt=!0;var nn=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var gn;gn=mt.current,mt.current=null,Ye();try{if(Be){var tt=function(){throw Error()};if(Object.defineProperty(tt.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(tt,[])}catch(da){bt=da}Reflect.construct(q,[],tt)}else{try{tt.call()}catch(da){bt=da}q.call(tt.prototype)}}else{try{throw Error()}catch(da){bt=da}q()}}catch(da){if(da&&bt&&typeof da.stack=="string"){for(var $t=da.stack.split(`
|
|
`),zn=bt.stack.split(`
|
|
`),Mn=$t.length-1,an=zn.length-1;Mn>=1&&an>=0&&$t[Mn]!==zn[an];)an--;for(;Mn>=1&&an>=0;Mn--,an--)if($t[Mn]!==zn[an]){if(Mn!==1||an!==1)do if(Mn--,an--,an<0||$t[Mn]!==zn[an]){var Lr=`
|
|
`+$t[Mn].replace(" at new "," at ");return q.displayName&&Lr.includes("<anonymous>")&&(Lr=Lr.replace("<anonymous>",q.displayName)),typeof q=="function"&&Et.set(q,Lr),Lr}while(Mn>=1&&an>=0);break}}}finally{vt=!1,mt.current=gn,st(),Error.prepareStackTrace=nn}var ci=q?q.displayName||q.name:"",Eo=ci?Qe(ci):"";return typeof q=="function"&&Et.set(q,Eo),Eo}function Yt(q,Be,qe){return We(q,!1)}function ye(q){var Be=q.prototype;return!!(Be&&Be.isReactComponent)}function Mt(q,Be,qe){if(q==null)return"";if(typeof q=="function")return We(q,ye(q));if(typeof q=="string")return Qe(q);switch(q){case v:return Qe("Suspense");case b:return Qe("SuspenseList")}if(typeof q=="object")switch(q.$$typeof){case m:return Yt(q.render);case x:return Mt(q.type,Be,qe);case C:{var bt=q,nn=bt._payload,gn=bt._init;try{return Mt(gn(nn),Be,qe)}catch{}}}return""}var Kt=Object.prototype.hasOwnProperty,St={},ar=j.ReactDebugCurrentFrame;function ir(q){if(q){var Be=q._owner,qe=Mt(q.type,q._source,Be?Be.type:null);ar.setExtraStackFrame(qe)}else ar.setExtraStackFrame(null)}function Bt(q,Be,qe,bt,nn){{var gn=Function.call.bind(Kt);for(var tt in q)if(gn(q,tt)){var $t=void 0;try{if(typeof q[tt]!="function"){var zn=Error((bt||"React class")+": "+qe+" type `"+tt+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof q[tt]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw zn.name="Invariant Violation",zn}$t=q[tt](Be,tt,bt,qe,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(Mn){$t=Mn}$t&&!($t instanceof Error)&&(ir(nn),I("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).",bt||"React class",qe,tt,typeof $t),ir(null)),$t instanceof Error&&!($t.message in St)&&(St[$t.message]=!0,ir(nn),I("Failed %s type: %s",qe,$t.message),ir(null))}}}var fn=Array.isArray;function An(q){return fn(q)}function hn(q){{var Be=typeof Symbol=="function"&&Symbol.toStringTag,qe=Be&&q[Symbol.toStringTag]||q.constructor.name||"Object";return qe}}function Ve(q){try{return Ze(q),!1}catch{return!0}}function Ze(q){return""+q}function Jt(q){if(Ve(q))return I("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",hn(q)),Ze(q)}var Tt=j.ReactCurrentOwner,ke={key:!0,ref:!0,__self:!0,__source:!0},jt,xn,je;je={};function rt(q){if(Kt.call(q,"ref")){var Be=Object.getOwnPropertyDescriptor(q,"ref").get;if(Be&&Be.isReactWarning)return!1}return q.ref!==void 0}function xt(q){if(Kt.call(q,"key")){var Be=Object.getOwnPropertyDescriptor(q,"key").get;if(Be&&Be.isReactWarning)return!1}return q.key!==void 0}function dn(q,Be){if(typeof q.ref=="string"&&Tt.current&&Be&&Tt.current.stateNode!==Be){var qe=ie(Tt.current.type);je[qe]||(I('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref',ie(Tt.current.type),q.ref),je[qe]=!0)}}function Xt(q,Be){{var qe=function(){jt||(jt=!0,I("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",Be))};qe.isReactWarning=!0,Object.defineProperty(q,"key",{get:qe,configurable:!0})}}function wn(q,Be){{var qe=function(){xn||(xn=!0,I("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",Be))};qe.isReactWarning=!0,Object.defineProperty(q,"ref",{get:qe,configurable:!0})}}var kn=function(q,Be,qe,bt,nn,gn,tt){var $t={$$typeof:t,type:q,key:Be,ref:qe,props:tt,_owner:gn};return $t._store={},Object.defineProperty($t._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty($t,"_self",{configurable:!1,enumerable:!1,writable:!1,value:bt}),Object.defineProperty($t,"_source",{configurable:!1,enumerable:!1,writable:!1,value:nn}),Object.freeze&&(Object.freeze($t.props),Object.freeze($t)),$t};function Nr(q,Be,qe,bt,nn){{var gn,tt={},$t=null,zn=null;qe!==void 0&&(Jt(qe),$t=""+qe),xt(Be)&&(Jt(Be.key),$t=""+Be.key),rt(Be)&&(zn=Be.ref,dn(Be,nn));for(gn in Be)Kt.call(Be,gn)&&!ke.hasOwnProperty(gn)&&(tt[gn]=Be[gn]);if(q&&q.defaultProps){var Mn=q.defaultProps;for(gn in Mn)tt[gn]===void 0&&(tt[gn]=Mn[gn])}if($t||zn){var an=typeof q=="function"?q.displayName||q.name||"Unknown":q;$t&&Xt(tt,an),zn&&wn(tt,an)}return kn(q,$t,zn,nn,bt,Tt.current,tt)}}var Tn=j.ReactCurrentOwner,ca=j.ReactDebugCurrentFrame;function Fn(q){if(q){var Be=q._owner,qe=Mt(q.type,q._source,Be?Be.type:null);ca.setExtraStackFrame(qe)}else ca.setExtraStackFrame(null)}var Cn;Cn=!1;function fa(q){return typeof q=="object"&&q!==null&&q.$$typeof===t}function vr(){{if(Tn.current){var q=ie(Tn.current.type);if(q)return`
|
|
|
|
Check the render method of \``+q+"`."}return""}}function wo(q){{if(q!==void 0){var Be=q.fileName.replace(/^.*[\\\/]/,""),qe=q.lineNumber;return`
|
|
|
|
Check your code at `+Be+":"+qe+"."}return""}}var es={};function ts(q){{var Be=vr();if(!Be){var qe=typeof q=="string"?q:q.displayName||q.name;qe&&(Be=`
|
|
|
|
Check the top-level render call using <`+qe+">.")}return Be}}function Co(q,Be){{if(!q._store||q._store.validated||q.key!=null)return;q._store.validated=!0;var qe=ts(Be);if(es[qe])return;es[qe]=!0;var bt="";q&&q._owner&&q._owner!==Tn.current&&(bt=" It was passed a child from "+ie(q._owner.type)+"."),Fn(q),I('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',qe,bt),Fn(null)}}function _o(q,Be){{if(typeof q!="object")return;if(An(q))for(var qe=0;qe<q.length;qe++){var bt=q[qe];fa(bt)&&Co(bt,Be)}else if(fa(q))q._store&&(q._store.validated=!0);else if(q){var nn=M(q);if(typeof nn=="function"&&nn!==q.entries)for(var gn=nn.call(q),tt;!(tt=gn.next()).done;)fa(tt.value)&&Co(tt.value,Be)}}}function cr(q){{var Be=q.type;if(Be==null||typeof Be=="string")return;var qe;if(typeof Be=="function")qe=Be.propTypes;else if(typeof Be=="object"&&(Be.$$typeof===m||Be.$$typeof===x))qe=Be.propTypes;else return;if(qe){var bt=ie(Be);Bt(qe,q.props,"prop",bt,q)}else if(Be.PropTypes!==void 0&&!Cn){Cn=!0;var nn=ie(Be);I("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",nn||"Unknown")}typeof Be.getDefaultProps=="function"&&!Be.getDefaultProps.isReactClassApproved&&I("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function Aa(q){{for(var Be=Object.keys(q.props),qe=0;qe<Be.length;qe++){var bt=Be[qe];if(bt!=="children"&&bt!=="key"){Fn(q),I("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",bt),Fn(null);break}}q.ref!==null&&(Fn(q),I("Invalid attribute `ref` supplied to `React.Fragment`."),Fn(null))}}function Di(q,Be,qe,bt,nn,gn){{var tt=se(q);if(!tt){var $t="";(q===void 0||typeof q=="object"&&q!==null&&Object.keys(q).length===0)&&($t+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");var zn=wo(nn);zn?$t+=zn:$t+=vr();var Mn;q===null?Mn="null":An(q)?Mn="array":q!==void 0&&q.$$typeof===t?(Mn="<"+(ie(q.type)||"Unknown")+" />",$t=" Did you accidentally export a JSX literal instead of a component?"):Mn=typeof q,I("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",Mn,$t)}var an=Nr(q,Be,qe,nn,gn);if(an==null)return an;if(tt){var Lr=Be.children;if(Lr!==void 0)if(bt)if(An(Lr)){for(var ci=0;ci<Lr.length;ci++)_o(Lr[ci],q);Object.freeze&&Object.freeze(Lr)}else I("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else _o(Lr,q)}return q===i?Aa(an):cr(an),an}}var ka=Di;RO.Fragment=i,RO.jsxDEV=ka})();(function(e){e.exports=RO})(i2);const bo=i2.exports.Fragment,k=i2.exports.jsxDEV;var vF="/Users/spencer/Documents/Code/stable-diffusion/frontend/node_modules/@chakra-ui/color-mode/dist/index.esm.js",o2=D.exports.createContext({});o2.displayName="ColorModeContext";function Nw(){const e=D.exports.useContext(o2);if(e===void 0)throw new Error("useColorMode must be used within a ColorModeProvider");return e}function Pm(e,t){const{colorMode:r}=Nw();return r==="dark"?t:e}var V1={light:"chakra-ui-light",dark:"chakra-ui-dark"};function WV(e={}){const{preventTransition:t=!0}=e,r={setDataset:i=>{const s=t?r.preventTransition():void 0;document.documentElement.dataset.theme=i,document.documentElement.style.colorScheme=i,s?.()},setClassName(i){document.body.classList.add(i?V1.dark:V1.light),document.body.classList.remove(i?V1.light:V1.dark)},query(){return window.matchMedia("(prefers-color-scheme: dark)")},getSystemTheme(i){return r.query().matches??i==="dark"?"dark":"light"},addListener(i){const s=r.query(),c=u=>{i(u.matches?"dark":"light")};return typeof s.addListener=="function"?s.addListener(c):s.addEventListener("change",c),()=>{typeof s.removeListener=="function"?s.removeListener(c):s.removeEventListener("change",c)}},preventTransition(){const i=document.createElement("style");return i.appendChild(document.createTextNode("*{-webkit-transition:none!important;-moz-transition:none!important;-o-transition:none!important;-ms-transition:none!important;transition:none!important}")),document.head.appendChild(i),()=>{window.getComputedStyle(document.body),requestAnimationFrame(()=>{requestAnimationFrame(()=>{document.head.removeChild(i)})})}}};return r}var GV="chakra-ui-color-mode";function YV(e){return{ssr:!1,type:"localStorage",get(t){if(!globalThis?.document)return t;let r;try{r=localStorage.getItem(e)||t}catch{}return r||t},set(t){try{localStorage.setItem(e,t)}catch{}}}}var qV=YV(GV),oI=()=>{};function sI(e,t){return e.type==="cookie"&&e.ssr?e.get(t):t}function gF(e){const{value:t,children:r,options:{useSystemColorMode:i,initialColorMode:s,disableTransitionOnChange:c}={},colorModeManager:u=qV}=e,h=s==="dark"?"dark":"light",[m,v]=D.exports.useState(()=>sI(u,h)),[b,x]=D.exports.useState(()=>sI(u)),{getSystemTheme:C,setClassName:_,setDataset:R,addListener:A}=D.exports.useMemo(()=>WV({preventTransition:c}),[c]),M=s==="system"&&!m?b:m,j=D.exports.useCallback(B=>{const $=B==="system"?C():B;v($),_($==="dark"),R($),u.set($)},[u,C,_,R]);dc(()=>{s==="system"&&x(C())},[]),D.exports.useEffect(()=>{const B=u.get();if(B){j(B);return}if(s==="system"){j("system");return}j(h)},[u,h,s,j]);const I=D.exports.useCallback(()=>{j(M==="dark"?"light":"dark")},[M,j]);D.exports.useEffect(()=>{if(!!i)return A(j)},[i,A,j]);const z=D.exports.useMemo(()=>({colorMode:t??M,toggleColorMode:t?oI:I,setColorMode:t?oI:j}),[M,I,j,t]);return k(o2.Provider,{value:z,children:r},void 0,!1,{fileName:vF,lineNumber:190,columnNumber:26},this)}gF.displayName="ColorModeProvider";var KV=new Set(["dark","light","system"]);function XV(e){let t=e;return KV.has(t)||(t="light"),t}function ZV(e={}){const{initialColorMode:t="light",type:r="localStorage",storageKey:i="chakra-ui-color-mode"}=e,s=XV(t),c=r==="cookie",u=`(function(){try{var a=function(o){var l="(prefers-color-scheme: dark)",v=window.matchMedia(l).matches?"dark":"light",e=o==="system"?v:o,d=document.documentElement,m=document.body,i="chakra-ui-light",n="chakra-ui-dark",s=e==="dark";return m.classList.add(s?n:i),m.classList.remove(s?i:n),d.style.colorScheme=e,d.dataset.theme=e,e},u=a,h="${s}",r="${i}",t=document.cookie.match(new RegExp("(^| )".concat(r,"=([^;]+)"))),c=t?t[2]:null;c?a(c):document.cookie="".concat(r,"=").concat(a(h),"; max-age=31536000; path=/")}catch(a){}})();
|
|
`,h=`(function(){try{var a=function(c){var v="(prefers-color-scheme: dark)",h=window.matchMedia(v).matches?"dark":"light",r=c==="system"?h:c,o=document.documentElement,s=document.body,l="chakra-ui-light",d="chakra-ui-dark",i=r==="dark";return s.classList.add(i?d:l),s.classList.remove(i?l:d),o.style.colorScheme=r,o.dataset.theme=r,r},n=a,m="${s}",e="${i}",t=localStorage.getItem(e);t?a(t):localStorage.setItem(e,a(m))}catch(a){}})();
|
|
`;return`!${c?u:h}`.trim()}function QV(e={}){return k("script",{id:"chakra-script",dangerouslySetInnerHTML:{__html:ZV(e)}},void 0,!1,{fileName:vF,lineNumber:244,columnNumber:26},this)}var OO={exports:{}};(function(e,t){var r=200,i="__lodash_hash_undefined__",s=800,c=16,u=9007199254740991,h="[object Arguments]",m="[object Array]",v="[object AsyncFunction]",b="[object Boolean]",x="[object Date]",C="[object Error]",_="[object Function]",R="[object GeneratorFunction]",A="[object Map]",M="[object Number]",j="[object Null]",I="[object Object]",z="[object Proxy]",B="[object RegExp]",$="[object Set]",K="[object String]",X="[object Undefined]",de="[object WeakMap]",ve="[object ArrayBuffer]",se="[object DataView]",be="[object Float32Array]",Xe="[object Float64Array]",ie="[object Int8Array]",ce="[object Int16Array]",Re="[object Int32Array]",Ce="[object Uint8Array]",oe="[object Uint8ClampedArray]",Se="[object Uint16Array]",Te="[object Uint32Array]",pe=/[\\^$.*+?()[\]{}|]/g,we=/^\[object .+?Constructor\]$/,Ie=/^(?:0|[1-9]\d*)$/,Le={};Le[be]=Le[Xe]=Le[ie]=Le[ce]=Le[Re]=Le[Ce]=Le[oe]=Le[Se]=Le[Te]=!0,Le[h]=Le[m]=Le[ve]=Le[b]=Le[se]=Le[x]=Le[C]=Le[_]=Le[A]=Le[M]=Le[I]=Le[B]=Le[$]=Le[K]=Le[de]=!1;var Ye=typeof lc=="object"&&lc&&lc.Object===Object&&lc,st=typeof self=="object"&&self&&self.Object===Object&&self,mt=Ye||st||Function("return this")(),Gt=t&&!t.nodeType&&t,Qe=Gt&&!0&&e&&!e.nodeType&&e,vt=Qe&&Qe.exports===Gt,Et=vt&&Ye.process,zt=function(){try{var W=Qe&&Qe.require&&Qe.require("util").types;return W||Et&&Et.binding&&Et.binding("util")}catch{}}(),We=zt&&zt.isTypedArray;function Yt(W,Q,fe){switch(fe.length){case 0:return W.call(Q);case 1:return W.call(Q,fe[0]);case 2:return W.call(Q,fe[0],fe[1]);case 3:return W.call(Q,fe[0],fe[1],fe[2])}return W.apply(Q,fe)}function ye(W,Q){for(var fe=-1,at=Array(W);++fe<W;)at[fe]=Q(fe);return at}function Mt(W){return function(Q){return W(Q)}}function Kt(W,Q){return W?.[Q]}function St(W,Q){return function(fe){return W(Q(fe))}}var ar=Array.prototype,ir=Function.prototype,Bt=Object.prototype,fn=mt["__core-js_shared__"],An=ir.toString,hn=Bt.hasOwnProperty,Ve=function(){var W=/[^.]+$/.exec(fn&&fn.keys&&fn.keys.IE_PROTO||"");return W?"Symbol(src)_1."+W:""}(),Ze=Bt.toString,Jt=An.call(Object),Tt=RegExp("^"+An.call(hn).replace(pe,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),ke=vt?mt.Buffer:void 0,jt=mt.Symbol,xn=mt.Uint8Array,je=ke?ke.allocUnsafe:void 0,rt=St(Object.getPrototypeOf,Object),xt=Object.create,dn=Bt.propertyIsEnumerable,Xt=ar.splice,wn=jt?jt.toStringTag:void 0,kn=function(){try{var W=Pa(Object,"defineProperty");return W({},"",{}),W}catch{}}(),Nr=ke?ke.isBuffer:void 0,Tn=Math.max,ca=Date.now,Fn=Pa(mt,"Map"),Cn=Pa(Object,"create"),fa=function(){function W(){}return function(Q){if(!ur(Q))return{};if(xt)return xt(Q);W.prototype=Q;var fe=new W;return W.prototype=void 0,fe}}();function vr(W){var Q=-1,fe=W==null?0:W.length;for(this.clear();++Q<fe;){var at=W[Q];this.set(at[0],at[1])}}function wo(){this.__data__=Cn?Cn(null):{},this.size=0}function es(W){var Q=this.has(W)&&delete this.__data__[W];return this.size-=Q?1:0,Q}function ts(W){var Q=this.__data__;if(Cn){var fe=Q[W];return fe===i?void 0:fe}return hn.call(Q,W)?Q[W]:void 0}function Co(W){var Q=this.__data__;return Cn?Q[W]!==void 0:hn.call(Q,W)}function _o(W,Q){var fe=this.__data__;return this.size+=this.has(W)?0:1,fe[W]=Cn&&Q===void 0?i:Q,this}vr.prototype.clear=wo,vr.prototype.delete=es,vr.prototype.get=ts,vr.prototype.has=Co,vr.prototype.set=_o;function cr(W){var Q=-1,fe=W==null?0:W.length;for(this.clear();++Q<fe;){var at=W[Q];this.set(at[0],at[1])}}function Aa(){this.__data__=[],this.size=0}function Di(W){var Q=this.__data__,fe=fi(Q,W);if(fe<0)return!1;var at=Q.length-1;return fe==at?Q.pop():Xt.call(Q,fe,1),--this.size,!0}function ka(W){var Q=this.__data__,fe=fi(Q,W);return fe<0?void 0:Q[fe][1]}function q(W){return fi(this.__data__,W)>-1}function Be(W,Q){var fe=this.__data__,at=fi(fe,W);return at<0?(++this.size,fe.push([W,Q])):fe[at][1]=Q,this}cr.prototype.clear=Aa,cr.prototype.delete=Di,cr.prototype.get=ka,cr.prototype.has=q,cr.prototype.set=Be;function qe(W){var Q=-1,fe=W==null?0:W.length;for(this.clear();++Q<fe;){var at=W[Q];this.set(at[0],at[1])}}function bt(){this.size=0,this.__data__={hash:new vr,map:new(Fn||cr),string:new vr}}function nn(W){var Q=ha(this,W).delete(W);return this.size-=Q?1:0,Q}function gn(W){return ha(this,W).get(W)}function tt(W){return ha(this,W).has(W)}function $t(W,Q){var fe=ha(this,W),at=fe.size;return fe.set(W,Q),this.size+=fe.size==at?0:1,this}qe.prototype.clear=bt,qe.prototype.delete=nn,qe.prototype.get=gn,qe.prototype.has=tt,qe.prototype.set=$t;function zn(W){var Q=this.__data__=new cr(W);this.size=Q.size}function Mn(){this.__data__=new cr,this.size=0}function an(W){var Q=this.__data__,fe=Q.delete(W);return this.size=Q.size,fe}function Lr(W){return this.__data__.get(W)}function ci(W){return this.__data__.has(W)}function Eo(W,Q){var fe=this.__data__;if(fe instanceof cr){var at=fe.__data__;if(!Fn||at.length<r-1)return at.push([W,Q]),this.size=++fe.size,this;fe=this.__data__=new qe(at)}return fe.set(W,Q),this.size=fe.size,this}zn.prototype.clear=Mn,zn.prototype.delete=an,zn.prototype.get=Lr,zn.prototype.has=ci,zn.prototype.set=Eo;function da(W,Q){var fe=$a(W),at=!fe&&Ii(W),sn=!fe&&!at&&er(W),Pn=!fe&&!at&&!sn&&to(W),Vt=fe||at||sn||Pn,S=Vt?ye(W.length,String):[],N=S.length;for(var V in W)(Q||hn.call(W,V))&&!(Vt&&(V=="length"||sn&&(V=="offset"||V=="parent")||Pn&&(V=="buffer"||V=="byteLength"||V=="byteOffset")||ss(V,N)))&&S.push(V);return S}function Ji(W,Q,fe){(fe!==void 0&&!gr(W[Q],fe)||fe===void 0&&!(Q in W))&&Bs(W,Q,fe)}function bu(W,Q,fe){var at=W[Q];(!(hn.call(W,Q)&&gr(at,fe))||fe===void 0&&!(Q in W))&&Bs(W,Q,fe)}function fi(W,Q){for(var fe=W.length;fe--;)if(gr(W[fe][0],Q))return fe;return-1}function Bs(W,Q,fe){Q=="__proto__"&&kn?kn(W,Q,{configurable:!0,enumerable:!0,value:fe,writable:!0}):W[Q]=fe}var Pi=Da();function Zt(W){return W==null?W===void 0?X:j:wn&&wn in Object(W)?os(W):$s(W)}function Mi(W){return Jr(W)&&Zt(W)==h}function pa(W){if(!ur(W)||ko(W))return!1;var Q=Po(W)?Tt:we;return Q.test(Vs(W))}function To(W){return Jr(W)&&$r(W.length)&&!!Le[Zt(W)]}function ns(W){if(!ur(W))return pi(W);var Q=Ma(W),fe=[];for(var at in W)at=="constructor"&&(Q||!hn.call(W,at))||fe.push(at);return fe}function No(W,Q,fe,at,sn){W!==Q&&Pi(Q,function(Pn,Vt){if(sn||(sn=new zn),ur(Pn))rs(W,Q,Vt,fe,No,at,sn);else{var S=at?at(hi(W,Vt),Pn,Vt+"",W,Q,sn):void 0;S===void 0&&(S=Pn),Ji(W,Vt,S)}},Hs)}function rs(W,Q,fe,at,sn,Pn,Vt){var S=hi(W,fe),N=hi(Q,fe),V=Vt.get(N);if(V){Ji(W,fe,V);return}var G=Pn?Pn(S,N,fe+"",W,Q,Vt):void 0,te=G===void 0;if(te){var Fe=$a(N),xe=!Fe&&er(N),$e=!Fe&&!xe&&to(N);G=N,Fe||xe||$e?$a(S)?G=S:wr(S)?G=js(S):xe?(te=!1,G=Oo(N,!0)):$e?(te=!1,G=Us(N,!0)):G=[]:Su(N)||Ii(N)?(G=S,Ii(S)?G=mi(S):(!ur(S)||Po(S))&&(G=Ao(N))):te=!1}te&&(Vt.set(N,G),sn(G,N,at,Pn,Vt),Vt.delete(N)),Ji(W,fe,G)}function as(W,Q){return Do(on(W,Q,kl),W+"")}var Ro=kn?function(W,Q){return kn(W,"toString",{configurable:!0,enumerable:!1,value:Dn(Q),writable:!0})}:kl;function Oo(W,Q){if(Q)return W.slice();var fe=W.length,at=je?je(fe):new W.constructor(fe);return W.copy(at),at}function is(W){var Q=new W.constructor(W.byteLength);return new xn(Q).set(new xn(W)),Q}function Us(W,Q){var fe=Q?is(W.buffer):W.buffer;return new W.constructor(fe,W.byteOffset,W.length)}function js(W,Q){var fe=-1,at=W.length;for(Q||(Q=Array(at));++fe<at;)Q[fe]=W[fe];return Q}function di(W,Q,fe,at){var sn=!fe;fe||(fe={});for(var Pn=-1,Vt=Q.length;++Pn<Vt;){var S=Q[Pn],N=at?at(fe[S],W[S],S,fe,W):void 0;N===void 0&&(N=W[S]),sn?Bs(fe,S,N):bu(fe,S,N)}return fe}function kr(W){return as(function(Q,fe){var at=-1,sn=fe.length,Pn=sn>1?fe[sn-1]:void 0,Vt=sn>2?fe[2]:void 0;for(Pn=W.length>3&&typeof Pn=="function"?(sn--,Pn):void 0,Vt&&Al(fe[0],fe[1],Vt)&&(Pn=sn<3?void 0:Pn,sn=1),Q=Object(Q);++at<sn;){var S=fe[at];S&&W(Q,S,at,Pn)}return Q})}function Da(W){return function(Q,fe,at){for(var sn=-1,Pn=Object(Q),Vt=at(Q),S=Vt.length;S--;){var N=Vt[W?S:++sn];if(fe(Pn[N],N,Pn)===!1)break}return Q}}function ha(W,Q){var fe=W.__data__;return ma(Q)?fe[typeof Q=="string"?"string":"hash"]:fe.map}function Pa(W,Q){var fe=Kt(W,Q);return pa(fe)?fe:void 0}function os(W){var Q=hn.call(W,wn),fe=W[wn];try{W[wn]=void 0;var at=!0}catch{}var sn=Ze.call(W);return at&&(Q?W[wn]=fe:delete W[wn]),sn}function Ao(W){return typeof W.constructor=="function"&&!Ma(W)?fa(rt(W)):{}}function ss(W,Q){var fe=typeof W;return Q=Q??u,!!Q&&(fe=="number"||fe!="symbol"&&Ie.test(W))&&W>-1&&W%1==0&&W<Q}function Al(W,Q,fe){if(!ur(fe))return!1;var at=typeof Q;return(at=="number"?eo(fe)&&ss(Q,fe.length):at=="string"&&Q in fe)?gr(fe[Q],W):!1}function ma(W){var Q=typeof W;return Q=="string"||Q=="number"||Q=="symbol"||Q=="boolean"?W!=="__proto__":W===null}function ko(W){return!!Ve&&Ve in W}function Ma(W){var Q=W&&W.constructor,fe=typeof Q=="function"&&Q.prototype||Bt;return W===fe}function pi(W){var Q=[];if(W!=null)for(var fe in Object(W))Q.push(fe);return Q}function $s(W){return Ze.call(W)}function on(W,Q,fe){return Q=Tn(Q===void 0?W.length-1:Q,0),function(){for(var at=arguments,sn=-1,Pn=Tn(at.length-Q,0),Vt=Array(Pn);++sn<Pn;)Vt[sn]=at[Q+sn];sn=-1;for(var S=Array(Q+1);++sn<Q;)S[sn]=at[sn];return S[Q]=fe(Vt),Yt(W,this,S)}}function hi(W,Q){if(!(Q==="constructor"&&typeof W[Q]=="function")&&Q!="__proto__")return W[Q]}var Do=It(Ro);function It(W){var Q=0,fe=0;return function(){var at=ca(),sn=c-(at-fe);if(fe=at,sn>0){if(++Q>=s)return arguments[0]}else Q=0;return W.apply(void 0,arguments)}}function Vs(W){if(W!=null){try{return An.call(W)}catch{}try{return W+""}catch{}}return""}function gr(W,Q){return W===Q||W!==W&&Q!==Q}var Ii=Mi(function(){return arguments}())?Mi:function(W){return Jr(W)&&hn.call(W,"callee")&&!dn.call(W,"callee")},$a=Array.isArray;function eo(W){return W!=null&&$r(W.length)&&!Po(W)}function wr(W){return Jr(W)&&eo(W)}var er=Nr||Ia;function Po(W){if(!ur(W))return!1;var Q=Zt(W);return Q==_||Q==R||Q==v||Q==z}function $r(W){return typeof W=="number"&&W>-1&&W%1==0&&W<=u}function ur(W){var Q=typeof W;return W!=null&&(Q=="object"||Q=="function")}function Jr(W){return W!=null&&typeof W=="object"}function Su(W){if(!Jr(W)||Zt(W)!=I)return!1;var Q=rt(W);if(Q===null)return!0;var fe=hn.call(Q,"constructor")&&Q.constructor;return typeof fe=="function"&&fe instanceof fe&&An.call(fe)==Jt}var to=We?Mt(We):To;function mi(W){return di(W,Hs(W))}function Hs(W){return eo(W)?da(W,!0):ns(W)}var pn=kr(function(W,Q,fe,at){No(W,Q,fe,at)});function Dn(W){return function(){return W}}function kl(W){return W}function Ia(){return!1}e.exports=pn})(OO,OO.exports);const Bf=OO.exports;function lu(e){const t=typeof e;return e!=null&&(t==="object"||t==="function")&&!Array.isArray(e)}function Rm(e,...t){return JV(e)?e(...t):e}var JV=e=>typeof e=="function",eH=e=>/!(important)?$/.test(e),lI=e=>typeof e=="string"?e.replace(/!(important)?$/,"").trim():e,AO=(e,t)=>r=>{const i=String(t),s=eH(i),c=lI(i),u=e?`${e}.${c}`:c;let h=lu(r.__cssMap)&&u in r.__cssMap?r.__cssMap[u].varRef:t;return h=lI(h),s?`${h} !important`:h};function Ky(e){const{scale:t,transform:r,compose:i}=e;return(c,u)=>{const h=AO(t,c)(u);let m=r?.(h,u)??h;return i&&(m=i(m,u)),m}}var H1=(...e)=>t=>e.reduce((r,i)=>i(r),t);function vl(e,t){return r=>{const i={property:r,scale:e};return i.transform=Ky({scale:e,transform:t}),i}}var tH=({rtl:e,ltr:t})=>r=>r.direction==="rtl"?e:t;function nH(e){const{property:t,scale:r,transform:i}=e;return{scale:r,property:tH(t),transform:r?Ky({scale:r,compose:i}):i}}var yF=["rotate(var(--chakra-rotate, 0))","scaleX(var(--chakra-scale-x, 1))","scaleY(var(--chakra-scale-y, 1))","skewX(var(--chakra-skew-x, 0))","skewY(var(--chakra-skew-y, 0))"];function rH(){return["translateX(var(--chakra-translate-x, 0))","translateY(var(--chakra-translate-y, 0))",...yF].join(" ")}function aH(){return["translate3d(var(--chakra-translate-x, 0), var(--chakra-translate-y, 0), 0)",...yF].join(" ")}var iH={"--chakra-blur":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-brightness":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-contrast":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-grayscale":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-hue-rotate":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-invert":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-saturate":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-sepia":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-drop-shadow":"var(--chakra-empty,/*!*/ /*!*/)",filter:["var(--chakra-blur)","var(--chakra-brightness)","var(--chakra-contrast)","var(--chakra-grayscale)","var(--chakra-hue-rotate)","var(--chakra-invert)","var(--chakra-saturate)","var(--chakra-sepia)","var(--chakra-drop-shadow)"].join(" ")},oH={backdropFilter:["var(--chakra-backdrop-blur)","var(--chakra-backdrop-brightness)","var(--chakra-backdrop-contrast)","var(--chakra-backdrop-grayscale)","var(--chakra-backdrop-hue-rotate)","var(--chakra-backdrop-invert)","var(--chakra-backdrop-opacity)","var(--chakra-backdrop-saturate)","var(--chakra-backdrop-sepia)"].join(" "),"--chakra-backdrop-blur":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-backdrop-brightness":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-backdrop-contrast":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-backdrop-grayscale":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-backdrop-hue-rotate":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-backdrop-invert":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-backdrop-opacity":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-backdrop-saturate":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-backdrop-sepia":"var(--chakra-empty,/*!*/ /*!*/)"};function sH(e){return{"--chakra-ring-offset-shadow":"var(--chakra-ring-inset) 0 0 0 var(--chakra-ring-offset-width) var(--chakra-ring-offset-color)","--chakra-ring-shadow":"var(--chakra-ring-inset) 0 0 0 calc(var(--chakra-ring-width) + var(--chakra-ring-offset-width)) var(--chakra-ring-color)","--chakra-ring-width":e,boxShadow:["var(--chakra-ring-offset-shadow)","var(--chakra-ring-shadow)","var(--chakra-shadow, 0 0 #0000)"].join(", ")}}var lH={"row-reverse":{space:"--chakra-space-x-reverse",divide:"--chakra-divide-x-reverse"},"column-reverse":{space:"--chakra-space-y-reverse",divide:"--chakra-divide-y-reverse"}},bF="& > :not(style) ~ :not(style)",uH={[bF]:{marginInlineStart:"calc(var(--chakra-space-x) * calc(1 - var(--chakra-space-x-reverse)))",marginInlineEnd:"calc(var(--chakra-space-x) * var(--chakra-space-x-reverse))"}},cH={[bF]:{marginTop:"calc(var(--chakra-space-y) * calc(1 - var(--chakra-space-y-reverse)))",marginBottom:"calc(var(--chakra-space-y) * var(--chakra-space-y-reverse))"}},kO={"to-t":"to top","to-tr":"to top right","to-r":"to right","to-br":"to bottom right","to-b":"to bottom","to-bl":"to bottom left","to-l":"to left","to-tl":"to top left"},fH=new Set(Object.values(kO)),SF=new Set(["none","-moz-initial","inherit","initial","revert","unset"]),dH=e=>e.trim();function pH(e,t){var r;if(e==null||SF.has(e))return e;const i=/(?<type>^[a-z-A-Z]+)\((?<values>(.*))\)/g,{type:s,values:c}=((r=i.exec(e))==null?void 0:r.groups)??{};if(!s||!c)return e;const u=s.includes("-gradient")?s:`${s}-gradient`,[h,...m]=c.split(",").map(dH).filter(Boolean);if(m?.length===0)return e;const v=h in kO?kO[h]:h;m.unshift(v);const b=m.map(x=>{if(fH.has(x))return x;const C=x.indexOf(" "),[_,R]=C!==-1?[x.substr(0,C),x.substr(C+1)]:[x],A=xF(R)?R:R&&R.split(" "),M=`colors.${_}`,j=M in t.__cssMap?t.__cssMap[M].varRef:_;return A?[j,...Array.isArray(A)?A:[A]].join(" "):j});return`${u}(${b.join(", ")})`}var xF=e=>typeof e=="string"&&e.includes("(")&&e.includes(")"),hH=(e,t)=>pH(e,t??{});function mH(e){return/^var\(--.+\)$/.test(e)}var vH=e=>{const t=parseFloat(e.toString()),r=e.toString().replace(String(t),"");return{unitless:!r,value:t,unit:r}},eu=e=>t=>`${e}(${t})`,Wn={filter(e){return e!=="auto"?e:iH},backdropFilter(e){return e!=="auto"?e:oH},ring(e){return sH(Wn.px(e))},bgClip(e){return e==="text"?{color:"transparent",backgroundClip:"text"}:{backgroundClip:e}},transform(e){return e==="auto"?rH():e==="auto-gpu"?aH():e},vh(e){return e==="$100vh"?"var(--chakra-vh)":e},px(e){if(e==null)return e;const{unitless:t}=vH(e);return t||typeof e=="number"?`${e}px`:e},fraction(e){return typeof e!="number"||e>1?e:`${e*100}%`},float(e,t){const r={left:"right",right:"left"};return t.direction==="rtl"?r[e]:e},degree(e){if(mH(e)||e==null)return e;const t=typeof e=="string"&&!e.endsWith("deg");return typeof e=="number"||t?`${e}deg`:e},gradient:hH,blur:eu("blur"),opacity:eu("opacity"),brightness:eu("brightness"),contrast:eu("contrast"),dropShadow:eu("drop-shadow"),grayscale:eu("grayscale"),hueRotate:eu("hue-rotate"),invert:eu("invert"),saturate:eu("saturate"),sepia:eu("sepia"),bgImage(e){return e==null||xF(e)||SF.has(e)?e:`url(${e})`},outline(e){const t=String(e)==="0"||String(e)==="none";return e!==null&&t?{outline:"2px solid transparent",outlineOffset:"2px"}:{outline:e}},flexDirection(e){const{space:t,divide:r}=lH[e]??{},i={flexDirection:e};return t&&(i[t]=1),r&&(i[r]=1),i}},ne={borderWidths:vl("borderWidths"),borderStyles:vl("borderStyles"),colors:vl("colors"),borders:vl("borders"),radii:vl("radii",Wn.px),space:vl("space",H1(Wn.vh,Wn.px)),spaceT:vl("space",H1(Wn.vh,Wn.px)),degreeT(e){return{property:e,transform:Wn.degree}},prop(e,t,r){return{property:e,scale:t,...t&&{transform:Ky({scale:t,transform:r})}}},propT(e,t){return{property:e,transform:t}},sizes:vl("sizes",H1(Wn.vh,Wn.px)),sizesT:vl("sizes",H1(Wn.vh,Wn.fraction)),shadows:vl("shadows"),logical:nH,blur:vl("blur",Wn.blur)},Sx={background:ne.colors("background"),backgroundColor:ne.colors("backgroundColor"),backgroundImage:ne.propT("backgroundImage",Wn.bgImage),backgroundSize:!0,backgroundPosition:!0,backgroundRepeat:!0,backgroundAttachment:!0,backgroundClip:{transform:Wn.bgClip},bgSize:ne.prop("backgroundSize"),bgPosition:ne.prop("backgroundPosition"),bg:ne.colors("background"),bgColor:ne.colors("backgroundColor"),bgPos:ne.prop("backgroundPosition"),bgRepeat:ne.prop("backgroundRepeat"),bgAttachment:ne.prop("backgroundAttachment"),bgGradient:ne.propT("backgroundImage",Wn.gradient),bgClip:{transform:Wn.bgClip}};Object.assign(Sx,{bgImage:Sx.backgroundImage,bgImg:Sx.backgroundImage});var Zn={border:ne.borders("border"),borderWidth:ne.borderWidths("borderWidth"),borderStyle:ne.borderStyles("borderStyle"),borderColor:ne.colors("borderColor"),borderRadius:ne.radii("borderRadius"),borderTop:ne.borders("borderTop"),borderBlockStart:ne.borders("borderBlockStart"),borderTopLeftRadius:ne.radii("borderTopLeftRadius"),borderStartStartRadius:ne.logical({scale:"radii",property:{ltr:"borderTopLeftRadius",rtl:"borderTopRightRadius"}}),borderEndStartRadius:ne.logical({scale:"radii",property:{ltr:"borderBottomLeftRadius",rtl:"borderBottomRightRadius"}}),borderTopRightRadius:ne.radii("borderTopRightRadius"),borderStartEndRadius:ne.logical({scale:"radii",property:{ltr:"borderTopRightRadius",rtl:"borderTopLeftRadius"}}),borderEndEndRadius:ne.logical({scale:"radii",property:{ltr:"borderBottomRightRadius",rtl:"borderBottomLeftRadius"}}),borderRight:ne.borders("borderRight"),borderInlineEnd:ne.borders("borderInlineEnd"),borderBottom:ne.borders("borderBottom"),borderBlockEnd:ne.borders("borderBlockEnd"),borderBottomLeftRadius:ne.radii("borderBottomLeftRadius"),borderBottomRightRadius:ne.radii("borderBottomRightRadius"),borderLeft:ne.borders("borderLeft"),borderInlineStart:{property:"borderInlineStart",scale:"borders"},borderInlineStartRadius:ne.logical({scale:"radii",property:{ltr:["borderTopLeftRadius","borderBottomLeftRadius"],rtl:["borderTopRightRadius","borderBottomRightRadius"]}}),borderInlineEndRadius:ne.logical({scale:"radii",property:{ltr:["borderTopRightRadius","borderBottomRightRadius"],rtl:["borderTopLeftRadius","borderBottomLeftRadius"]}}),borderX:ne.borders(["borderLeft","borderRight"]),borderInline:ne.borders("borderInline"),borderY:ne.borders(["borderTop","borderBottom"]),borderBlock:ne.borders("borderBlock"),borderTopWidth:ne.borderWidths("borderTopWidth"),borderBlockStartWidth:ne.borderWidths("borderBlockStartWidth"),borderTopColor:ne.colors("borderTopColor"),borderBlockStartColor:ne.colors("borderBlockStartColor"),borderTopStyle:ne.borderStyles("borderTopStyle"),borderBlockStartStyle:ne.borderStyles("borderBlockStartStyle"),borderBottomWidth:ne.borderWidths("borderBottomWidth"),borderBlockEndWidth:ne.borderWidths("borderBlockEndWidth"),borderBottomColor:ne.colors("borderBottomColor"),borderBlockEndColor:ne.colors("borderBlockEndColor"),borderBottomStyle:ne.borderStyles("borderBottomStyle"),borderBlockEndStyle:ne.borderStyles("borderBlockEndStyle"),borderLeftWidth:ne.borderWidths("borderLeftWidth"),borderInlineStartWidth:ne.borderWidths("borderInlineStartWidth"),borderLeftColor:ne.colors("borderLeftColor"),borderInlineStartColor:ne.colors("borderInlineStartColor"),borderLeftStyle:ne.borderStyles("borderLeftStyle"),borderInlineStartStyle:ne.borderStyles("borderInlineStartStyle"),borderRightWidth:ne.borderWidths("borderRightWidth"),borderInlineEndWidth:ne.borderWidths("borderInlineEndWidth"),borderRightColor:ne.colors("borderRightColor"),borderInlineEndColor:ne.colors("borderInlineEndColor"),borderRightStyle:ne.borderStyles("borderRightStyle"),borderInlineEndStyle:ne.borderStyles("borderInlineEndStyle"),borderTopRadius:ne.radii(["borderTopLeftRadius","borderTopRightRadius"]),borderBottomRadius:ne.radii(["borderBottomLeftRadius","borderBottomRightRadius"]),borderLeftRadius:ne.radii(["borderTopLeftRadius","borderBottomLeftRadius"]),borderRightRadius:ne.radii(["borderTopRightRadius","borderBottomRightRadius"])};Object.assign(Zn,{rounded:Zn.borderRadius,roundedTop:Zn.borderTopRadius,roundedTopLeft:Zn.borderTopLeftRadius,roundedTopRight:Zn.borderTopRightRadius,roundedTopStart:Zn.borderStartStartRadius,roundedTopEnd:Zn.borderStartEndRadius,roundedBottom:Zn.borderBottomRadius,roundedBottomLeft:Zn.borderBottomLeftRadius,roundedBottomRight:Zn.borderBottomRightRadius,roundedBottomStart:Zn.borderEndStartRadius,roundedBottomEnd:Zn.borderEndEndRadius,roundedLeft:Zn.borderLeftRadius,roundedRight:Zn.borderRightRadius,roundedStart:Zn.borderInlineStartRadius,roundedEnd:Zn.borderInlineEndRadius,borderStart:Zn.borderInlineStart,borderEnd:Zn.borderInlineEnd,borderTopStartRadius:Zn.borderStartStartRadius,borderTopEndRadius:Zn.borderStartEndRadius,borderBottomStartRadius:Zn.borderEndStartRadius,borderBottomEndRadius:Zn.borderEndEndRadius,borderStartRadius:Zn.borderInlineStartRadius,borderEndRadius:Zn.borderInlineEndRadius,borderStartWidth:Zn.borderInlineStartWidth,borderEndWidth:Zn.borderInlineEndWidth,borderStartColor:Zn.borderInlineStartColor,borderEndColor:Zn.borderInlineEndColor,borderStartStyle:Zn.borderInlineStartStyle,borderEndStyle:Zn.borderInlineEndStyle});var gH={color:ne.colors("color"),textColor:ne.colors("color"),fill:ne.colors("fill"),stroke:ne.colors("stroke")},DO={boxShadow:ne.shadows("boxShadow"),mixBlendMode:!0,blendMode:ne.prop("mixBlendMode"),backgroundBlendMode:!0,bgBlendMode:ne.prop("backgroundBlendMode"),opacity:!0};Object.assign(DO,{shadow:DO.boxShadow});var yH={filter:{transform:Wn.filter},blur:ne.blur("--chakra-blur"),brightness:ne.propT("--chakra-brightness",Wn.brightness),contrast:ne.propT("--chakra-contrast",Wn.contrast),hueRotate:ne.degreeT("--chakra-hue-rotate"),invert:ne.propT("--chakra-invert",Wn.invert),saturate:ne.propT("--chakra-saturate",Wn.saturate),dropShadow:ne.propT("--chakra-drop-shadow",Wn.dropShadow),backdropFilter:{transform:Wn.backdropFilter},backdropBlur:ne.blur("--chakra-backdrop-blur"),backdropBrightness:ne.propT("--chakra-backdrop-brightness",Wn.brightness),backdropContrast:ne.propT("--chakra-backdrop-contrast",Wn.contrast),backdropHueRotate:ne.degreeT("--chakra-backdrop-hue-rotate"),backdropInvert:ne.propT("--chakra-backdrop-invert",Wn.invert),backdropSaturate:ne.propT("--chakra-backdrop-saturate",Wn.saturate)},$x={alignItems:!0,alignContent:!0,justifyItems:!0,justifyContent:!0,flexWrap:!0,flexDirection:{transform:Wn.flexDirection},experimental_spaceX:{static:uH,transform:Ky({scale:"space",transform:e=>e!==null?{"--chakra-space-x":e}:null})},experimental_spaceY:{static:cH,transform:Ky({scale:"space",transform:e=>e!=null?{"--chakra-space-y":e}:null})},flex:!0,flexFlow:!0,flexGrow:!0,flexShrink:!0,flexBasis:ne.sizes("flexBasis"),justifySelf:!0,alignSelf:!0,order:!0,placeItems:!0,placeContent:!0,placeSelf:!0,gap:ne.space("gap"),rowGap:ne.space("rowGap"),columnGap:ne.space("columnGap")};Object.assign($x,{flexDir:$x.flexDirection});var wF={gridGap:ne.space("gridGap"),gridColumnGap:ne.space("gridColumnGap"),gridRowGap:ne.space("gridRowGap"),gridColumn:!0,gridRow:!0,gridAutoFlow:!0,gridAutoColumns:!0,gridColumnStart:!0,gridColumnEnd:!0,gridRowStart:!0,gridRowEnd:!0,gridAutoRows:!0,gridTemplate:!0,gridTemplateColumns:!0,gridTemplateRows:!0,gridTemplateAreas:!0,gridArea:!0},bH={appearance:!0,cursor:!0,resize:!0,userSelect:!0,pointerEvents:!0,outline:{transform:Wn.outline},outlineOffset:!0,outlineColor:ne.colors("outlineColor")},Ds={width:ne.sizesT("width"),inlineSize:ne.sizesT("inlineSize"),height:ne.sizes("height"),blockSize:ne.sizes("blockSize"),boxSize:ne.sizes(["width","height"]),minWidth:ne.sizes("minWidth"),minInlineSize:ne.sizes("minInlineSize"),minHeight:ne.sizes("minHeight"),minBlockSize:ne.sizes("minBlockSize"),maxWidth:ne.sizes("maxWidth"),maxInlineSize:ne.sizes("maxInlineSize"),maxHeight:ne.sizes("maxHeight"),maxBlockSize:ne.sizes("maxBlockSize"),overflow:!0,overflowX:!0,overflowY:!0,overscrollBehavior:!0,overscrollBehaviorX:!0,overscrollBehaviorY:!0,display:!0,verticalAlign:!0,boxSizing:!0,boxDecorationBreak:!0,float:ne.propT("float",Wn.float),objectFit:!0,objectPosition:!0,visibility:!0,isolation:!0};Object.assign(Ds,{w:Ds.width,h:Ds.height,minW:Ds.minWidth,maxW:Ds.maxWidth,minH:Ds.minHeight,maxH:Ds.maxHeight,overscroll:Ds.overscrollBehavior,overscrollX:Ds.overscrollBehaviorX,overscrollY:Ds.overscrollBehaviorY});var SH={listStyleType:!0,listStylePosition:!0,listStylePos:ne.prop("listStylePosition"),listStyleImage:!0,listStyleImg:ne.prop("listStyleImage")};function xH(e,t,r,i){const s=typeof t=="string"?t.split("."):[t];for(i=0;i<s.length&&e;i+=1)e=e[s[i]];return e===void 0?r:e}var wH=e=>{const t=new WeakMap;return(i,s,c,u)=>{if(typeof i>"u")return e(i,s,c);t.has(i)||t.set(i,new Map);const h=t.get(i);if(h.has(s))return h.get(s);const m=e(i,s,c,u);return h.set(s,m),m}},CH=wH(xH),_H={border:"0px",clip:"rect(0, 0, 0, 0)",width:"1px",height:"1px",margin:"-1px",padding:"0px",overflow:"hidden",whiteSpace:"nowrap",position:"absolute"},EH={position:"static",width:"auto",height:"auto",clip:"auto",padding:"0",margin:"0",overflow:"visible",whiteSpace:"normal"},IR=(e,t,r)=>{const i={},s=CH(e,t,{});for(const c in s)c in r&&r[c]!=null||(i[c]=s[c]);return i},TH={srOnly:{transform(e){return e===!0?_H:e==="focusable"?EH:{}}},layerStyle:{processResult:!0,transform:(e,t,r)=>IR(t,`layerStyles.${e}`,r)},textStyle:{processResult:!0,transform:(e,t,r)=>IR(t,`textStyles.${e}`,r)},apply:{processResult:!0,transform:(e,t,r)=>IR(t,e,r)}},My={position:!0,pos:ne.prop("position"),zIndex:ne.prop("zIndex","zIndices"),inset:ne.spaceT("inset"),insetX:ne.spaceT(["left","right"]),insetInline:ne.spaceT("insetInline"),insetY:ne.spaceT(["top","bottom"]),insetBlock:ne.spaceT("insetBlock"),top:ne.spaceT("top"),insetBlockStart:ne.spaceT("insetBlockStart"),bottom:ne.spaceT("bottom"),insetBlockEnd:ne.spaceT("insetBlockEnd"),left:ne.spaceT("left"),insetInlineStart:ne.logical({scale:"space",property:{ltr:"left",rtl:"right"}}),right:ne.spaceT("right"),insetInlineEnd:ne.logical({scale:"space",property:{ltr:"right",rtl:"left"}})};Object.assign(My,{insetStart:My.insetInlineStart,insetEnd:My.insetInlineEnd});var NH={ring:{transform:Wn.ring},ringColor:ne.colors("--chakra-ring-color"),ringOffset:ne.prop("--chakra-ring-offset-width"),ringOffsetColor:ne.colors("--chakra-ring-offset-color"),ringInset:ne.prop("--chakra-ring-inset")},Er={margin:ne.spaceT("margin"),marginTop:ne.spaceT("marginTop"),marginBlockStart:ne.spaceT("marginBlockStart"),marginRight:ne.spaceT("marginRight"),marginInlineEnd:ne.spaceT("marginInlineEnd"),marginBottom:ne.spaceT("marginBottom"),marginBlockEnd:ne.spaceT("marginBlockEnd"),marginLeft:ne.spaceT("marginLeft"),marginInlineStart:ne.spaceT("marginInlineStart"),marginX:ne.spaceT(["marginInlineStart","marginInlineEnd"]),marginInline:ne.spaceT("marginInline"),marginY:ne.spaceT(["marginTop","marginBottom"]),marginBlock:ne.spaceT("marginBlock"),padding:ne.space("padding"),paddingTop:ne.space("paddingTop"),paddingBlockStart:ne.space("paddingBlockStart"),paddingRight:ne.space("paddingRight"),paddingBottom:ne.space("paddingBottom"),paddingBlockEnd:ne.space("paddingBlockEnd"),paddingLeft:ne.space("paddingLeft"),paddingInlineStart:ne.space("paddingInlineStart"),paddingInlineEnd:ne.space("paddingInlineEnd"),paddingX:ne.space(["paddingInlineStart","paddingInlineEnd"]),paddingInline:ne.space("paddingInline"),paddingY:ne.space(["paddingTop","paddingBottom"]),paddingBlock:ne.space("paddingBlock")};Object.assign(Er,{m:Er.margin,mt:Er.marginTop,mr:Er.marginRight,me:Er.marginInlineEnd,marginEnd:Er.marginInlineEnd,mb:Er.marginBottom,ml:Er.marginLeft,ms:Er.marginInlineStart,marginStart:Er.marginInlineStart,mx:Er.marginX,my:Er.marginY,p:Er.padding,pt:Er.paddingTop,py:Er.paddingY,px:Er.paddingX,pb:Er.paddingBottom,pl:Er.paddingLeft,ps:Er.paddingInlineStart,paddingStart:Er.paddingInlineStart,pr:Er.paddingRight,pe:Er.paddingInlineEnd,paddingEnd:Er.paddingInlineEnd});var RH={textDecorationColor:ne.colors("textDecorationColor"),textDecoration:!0,textDecor:{property:"textDecoration"},textDecorationLine:!0,textDecorationStyle:!0,textDecorationThickness:!0,textUnderlineOffset:!0,textShadow:ne.shadows("textShadow")},OH={clipPath:!0,transform:ne.propT("transform",Wn.transform),transformOrigin:!0,translateX:ne.spaceT("--chakra-translate-x"),translateY:ne.spaceT("--chakra-translate-y"),skewX:ne.degreeT("--chakra-skew-x"),skewY:ne.degreeT("--chakra-skew-y"),scaleX:ne.prop("--chakra-scale-x"),scaleY:ne.prop("--chakra-scale-y"),scale:ne.prop(["--chakra-scale-x","--chakra-scale-y"]),rotate:ne.degreeT("--chakra-rotate")},AH={transition:!0,transitionDelay:!0,animation:!0,willChange:!0,transitionDuration:ne.prop("transitionDuration","transition.duration"),transitionProperty:ne.prop("transitionProperty","transition.property"),transitionTimingFunction:ne.prop("transitionTimingFunction","transition.easing")},kH={fontFamily:ne.prop("fontFamily","fonts"),fontSize:ne.prop("fontSize","fontSizes",Wn.px),fontWeight:ne.prop("fontWeight","fontWeights"),lineHeight:ne.prop("lineHeight","lineHeights"),letterSpacing:ne.prop("letterSpacing","letterSpacings"),textAlign:!0,fontStyle:!0,wordBreak:!0,overflowWrap:!0,textOverflow:!0,textTransform:!0,whiteSpace:!0,noOfLines:{static:{overflow:"hidden",textOverflow:"ellipsis",display:"-webkit-box",WebkitBoxOrient:"vertical",WebkitLineClamp:"var(--chakra-line-clamp)"},property:"--chakra-line-clamp"}},DH={scrollBehavior:!0,scrollSnapAlign:!0,scrollSnapStop:!0,scrollSnapType:!0,scrollMargin:ne.spaceT("scrollMargin"),scrollMarginTop:ne.spaceT("scrollMarginTop"),scrollMarginBottom:ne.spaceT("scrollMarginBottom"),scrollMarginLeft:ne.spaceT("scrollMarginLeft"),scrollMarginRight:ne.spaceT("scrollMarginRight"),scrollMarginX:ne.spaceT(["scrollMarginLeft","scrollMarginRight"]),scrollMarginY:ne.spaceT(["scrollMarginTop","scrollMarginBottom"]),scrollPadding:ne.spaceT("scrollPadding"),scrollPaddingTop:ne.spaceT("scrollPaddingTop"),scrollPaddingBottom:ne.spaceT("scrollPaddingBottom"),scrollPaddingLeft:ne.spaceT("scrollPaddingLeft"),scrollPaddingRight:ne.spaceT("scrollPaddingRight"),scrollPaddingX:ne.spaceT(["scrollPaddingLeft","scrollPaddingRight"]),scrollPaddingY:ne.spaceT(["scrollPaddingTop","scrollPaddingBottom"])};function CF(e){return lu(e)&&e.reference?e.reference:String(e)}var Rw=(e,...t)=>t.map(CF).join(` ${e} `).replace(/calc/g,""),uI=(...e)=>`calc(${Rw("+",...e)})`,cI=(...e)=>`calc(${Rw("-",...e)})`,PO=(...e)=>`calc(${Rw("*",...e)})`,fI=(...e)=>`calc(${Rw("/",...e)})`,dI=e=>{const t=CF(e);return t!=null&&!Number.isNaN(parseFloat(t))?String(t).startsWith("-")?String(t).slice(1):`-${t}`:PO(t,-1)},Cp=Object.assign(e=>({add:(...t)=>Cp(uI(e,...t)),subtract:(...t)=>Cp(cI(e,...t)),multiply:(...t)=>Cp(PO(e,...t)),divide:(...t)=>Cp(fI(e,...t)),negate:()=>Cp(dI(e)),toString:()=>e.toString()}),{add:uI,subtract:cI,multiply:PO,divide:fI,negate:dI});function PH(e,t="-"){return e.replace(/\s+/g,t)}function MH(e){const t=PH(e.toString());return LH(IH(t))}function IH(e){return e.includes("\\.")?e:!Number.isInteger(parseFloat(e.toString()))?e.replace(".","\\."):e}function LH(e){return e.replace(/[!-,/:-@[-^`{-~]/g,"\\$&")}function FH(e,t=""){return[t,e].filter(Boolean).join("-")}function zH(e,t){return`var(${e}${t?`, ${t}`:""})`}function BH(e,t=""){return MH(`--${FH(e,t)}`)}function Wf(e,t,r){const i=BH(e,r);return{variable:i,reference:zH(i,t)}}function UH(e){const t=typeof e;return e!=null&&(t==="object"||t==="function")&&!Array.isArray(e)}Object.freeze(["base","sm","md","lg","xl","2xl"]);function jH(e){const t=e==null?0:e.length;return t?e[t-1]:void 0}function $H(e){const t=parseFloat(e.toString()),r=e.toString().replace(String(t),"");return{unitless:!r,value:t,unit:r}}function MO(e){if(e==null)return e;const{unitless:t}=$H(e);return t||typeof e=="number"?`${e}px`:e}var _F=(e,t)=>parseInt(e[1],10)>parseInt(t[1],10)?1:-1,s2=e=>Object.fromEntries(Object.entries(e).sort(_F));function pI(e){const t=s2(e);return Object.assign(Object.values(t),t)}function VH(e){const t=Object.keys(s2(e));return new Set(t)}function hI(e){if(!e)return e;e=MO(e)??e;const t=e.endsWith("px")?-1:-.0625;return typeof e=="number"?`${e+t}`:e.replace(/(\d+\.?\d*)/u,r=>`${parseFloat(r)+t}`)}function Oy(e,t){const r=["@media screen"];return e&&r.push("and",`(min-width: ${MO(e)})`),t&&r.push("and",`(max-width: ${MO(t)})`),r.join(" ")}function HH(e){if(!e)return null;e.base=e.base??"0px";const t=pI(e),r=Object.entries(e).sort(_F).map(([c,u],h,m)=>{let[,v]=m[h+1]??[];return v=parseFloat(v)>0?hI(v):void 0,{_minW:hI(u),breakpoint:c,minW:u,maxW:v,maxWQuery:Oy(null,v),minWQuery:Oy(u),minMaxQuery:Oy(u,v)}}),i=VH(e),s=Array.from(i.values());return{keys:i,normalized:t,isResponsive(c){const u=Object.keys(c);return u.length>0&&u.every(h=>i.has(h))},asObject:s2(e),asArray:pI(e),details:r,media:[null,...t.map(c=>Oy(c)).slice(1)],toArrayValue(c){if(!UH(c))throw new Error("toArrayValue: value must be an object");const u=s.map(h=>c[h]??null);for(;jH(u)===null;)u.pop();return u},toObjectValue(c){if(!Array.isArray(c))throw new Error("toObjectValue: value must be an array");return c.reduce((u,h,m)=>{const v=s[m];return v!=null&&h!=null&&(u[v]=h),u},{})}}}var ii={hover:(e,t)=>`${e}:hover ${t}, ${e}[data-hover] ${t}`,focus:(e,t)=>`${e}:focus ${t}, ${e}[data-focus] ${t}`,focusVisible:(e,t)=>`${e}:focus-visible ${t}`,focusWithin:(e,t)=>`${e}:focus-within ${t}`,active:(e,t)=>`${e}:active ${t}, ${e}[data-active] ${t}`,disabled:(e,t)=>`${e}:disabled ${t}, ${e}[data-disabled] ${t}`,invalid:(e,t)=>`${e}:invalid ${t}, ${e}[data-invalid] ${t}`,checked:(e,t)=>`${e}:checked ${t}, ${e}[data-checked] ${t}`,indeterminate:(e,t)=>`${e}:indeterminate ${t}, ${e}[aria-checked=mixed] ${t}, ${e}[data-indeterminate] ${t}`,readOnly:(e,t)=>`${e}:read-only ${t}, ${e}[readonly] ${t}, ${e}[data-read-only] ${t}`,expanded:(e,t)=>`${e}:read-only ${t}, ${e}[aria-expanded=true] ${t}, ${e}[data-expanded] ${t}`,placeholderShown:(e,t)=>`${e}:placeholder-shown ${t}`},yf=e=>EF(t=>e(t,"&"),"[role=group]","[data-group]",".group"),rc=e=>EF(t=>e(t,"~ &"),"[data-peer]",".peer"),EF=(e,...t)=>t.map(e).join(", "),Ow={_hover:"&:hover, &[data-hover]",_active:"&:active, &[data-active]",_focus:"&:focus, &[data-focus]",_highlighted:"&[data-highlighted]",_focusWithin:"&:focus-within",_focusVisible:"&:focus-visible, &[data-focus-visible]",_disabled:"&[disabled], &[aria-disabled=true], &[data-disabled]",_readOnly:"&[aria-readonly=true], &[readonly], &[data-readonly]",_before:"&::before",_after:"&::after",_empty:"&:empty",_expanded:"&[aria-expanded=true], &[data-expanded]",_checked:"&[aria-checked=true], &[data-checked]",_grabbed:"&[aria-grabbed=true], &[data-grabbed]",_pressed:"&[aria-pressed=true], &[data-pressed]",_invalid:"&[aria-invalid=true], &[data-invalid]",_valid:"&[data-valid], &[data-state=valid]",_loading:"&[data-loading], &[aria-busy=true]",_selected:"&[aria-selected=true], &[data-selected]",_hidden:"&[hidden], &[data-hidden]",_autofill:"&:-webkit-autofill",_even:"&:nth-of-type(even)",_odd:"&:nth-of-type(odd)",_first:"&:first-of-type",_last:"&:last-of-type",_notFirst:"&:not(:first-of-type)",_notLast:"&:not(:last-of-type)",_visited:"&:visited",_activeLink:"&[aria-current=page]",_activeStep:"&[aria-current=step]",_indeterminate:"&:indeterminate, &[aria-checked=mixed], &[data-indeterminate]",_groupHover:yf(ii.hover),_peerHover:rc(ii.hover),_groupFocus:yf(ii.focus),_peerFocus:rc(ii.focus),_groupFocusVisible:yf(ii.focusVisible),_peerFocusVisible:rc(ii.focusVisible),_groupActive:yf(ii.active),_peerActive:rc(ii.active),_groupDisabled:yf(ii.disabled),_peerDisabled:rc(ii.disabled),_groupInvalid:yf(ii.invalid),_peerInvalid:rc(ii.invalid),_groupChecked:yf(ii.checked),_peerChecked:rc(ii.checked),_groupFocusWithin:yf(ii.focusWithin),_peerFocusWithin:rc(ii.focusWithin),_peerPlaceholderShown:rc(ii.placeholderShown),_placeholder:"&::placeholder",_placeholderShown:"&:placeholder-shown",_fullScreen:"&:fullscreen",_selection:"&::selection",_rtl:"[dir=rtl] &, &[dir=rtl]",_ltr:"[dir=ltr] &, &[dir=ltr]",_mediaDark:"@media (prefers-color-scheme: dark)",_mediaReduceMotion:"@media (prefers-reduced-motion: reduce)",_dark:".chakra-ui-dark &:not([data-theme]),[data-theme=dark] &:not([data-theme]),&[data-theme=dark]",_light:".chakra-ui-light &:not([data-theme]),[data-theme=light] &:not([data-theme]),&[data-theme=light]"},WH=Object.keys(Ow);function mI(e,t){return Wf(String(e).replace(/\./g,"-"),void 0,t)}function GH(e,t){let r={};const i={};for(const[s,c]of Object.entries(e)){const{isSemantic:u,value:h}=c,{variable:m,reference:v}=mI(s,t?.cssVarPrefix);if(!u){if(s.startsWith("space")){const C=s.split("."),[_,...R]=C,A=`${_}.-${R.join(".")}`,M=Cp.negate(h),j=Cp.negate(v);i[A]={value:M,var:m,varRef:j}}r[m]=h,i[s]={value:h,var:m,varRef:v};continue}const b=C=>{const R=[String(s).split(".")[0],C].join(".");if(!e[R])return C;const{reference:M}=mI(R,t?.cssVarPrefix);return M},x=lu(h)?h:{default:h};r=Bf(r,Object.entries(x).reduce((C,[_,R])=>{var A;const M=b(R);if(_==="default")return C[m]=M,C;const j=((A=Ow)==null?void 0:A[_])??_;return C[j]={[m]:M},C},{})),i[s]={value:v,var:m,varRef:v}}return{cssVars:r,cssMap:i}}function YH(e,t=[]){const r=Object.assign({},e);for(const i of t)i in r&&delete r[i];return r}function qH(e,t){const r={};for(const i of t)i in e&&(r[i]=e[i]);return r}var KH=["colors","borders","borderWidths","borderStyles","fonts","fontSizes","fontWeights","letterSpacings","lineHeights","radii","space","shadows","sizes","zIndices","transition","blur"];function XH(e){return qH(e,KH)}function ZH(e){return e.semanticTokens}function QH(e){const{__cssMap:t,__cssVars:r,__breakpoints:i,...s}=e;return s}function JH({tokens:e,semanticTokens:t}){const r=Object.entries(IO(e)??{}).map(([s,c])=>[s,{isSemantic:!1,value:c}]),i=Object.entries(IO(t,1)??{}).map(([s,c])=>[s,{isSemantic:!0,value:c}]);return Object.fromEntries([...r,...i])}function IO(e,t=1/0){return!lu(e)&&!Array.isArray(e)||!t?e:Object.entries(e).reduce((r,[i,s])=>(lu(s)||Array.isArray(s)?Object.entries(IO(s,t-1)).forEach(([c,u])=>{r[`${i}.${c}`]=u}):r[i]=s,r),{})}function e8(e){var t;const r=QH(e),i=XH(r),s=ZH(r),c=JH({tokens:i,semanticTokens:s}),u=(t=r.config)==null?void 0:t.cssVarPrefix,{cssMap:h,cssVars:m}=GH(c,{cssVarPrefix:u});return Object.assign(r,{__cssVars:{...{"--chakra-ring-inset":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-ring-offset-width":"0px","--chakra-ring-offset-color":"#fff","--chakra-ring-color":"rgba(66, 153, 225, 0.6)","--chakra-ring-offset-shadow":"0 0 #0000","--chakra-ring-shadow":"0 0 #0000","--chakra-space-x-reverse":"0","--chakra-space-y-reverse":"0"},...m},__cssMap:h,__breakpoints:HH(r.breakpoints)}),r}var l2=Bf({},Sx,Zn,gH,$x,Ds,yH,NH,bH,wF,TH,My,DO,Er,DH,kH,RH,OH,SH,AH),t8=Object.assign({},Er,Ds,$x,wF,My),n8=Object.keys(t8),r8=[...Object.keys(l2),...WH],a8={...l2,...Ow},i8=e=>e in a8;function o8(e){return/^var\(--.+\)$/.test(e)}var s8=(e,t)=>e.startsWith("--")&&typeof t=="string"&&!o8(t),l8=(e,t)=>{if(t==null)return t;const r=h=>{var m,v;return(v=(m=e.__cssMap)==null?void 0:m[h])==null?void 0:v.varRef},i=h=>r(h)??h,s=t.split(",").map(h=>h.trim()),[c,u]=s;return t=r(c)??i(u)??i(t),t};function u8(e){const{configs:t={},pseudos:r={},theme:i}=e;if(!i.__breakpoints)return()=>({});const{isResponsive:s,toArrayValue:c,media:u}=i.__breakpoints,h=(m,v=!1)=>{var b;const x=Rm(m,i);let C={};for(let _ in x){let R=Rm(x[_],i);if(R==null)continue;if(Array.isArray(R)||lu(R)&&s(R)){let I=Array.isArray(R)?R:c(R);I=I.slice(0,u.length);for(let z=0;z<I.length;z++){const B=u[z],$=I[z];B?$==null?C[B]??(C[B]={}):C[B]=Object.assign({},C[B],h({[_]:$},!0)):C=Object.assign({},C,h({...x,[_]:$},!1))}continue}if(_ in r&&(_=r[_]),s8(_,R)&&(R=l8(i,R)),lu(R)){C[_]=Object.assign({},C[_],h(R,!0));continue}let A=t[_];if(A===!0&&(A={property:_}),!v&&A?.static){const I=Rm(A.static,i);C=Object.assign({},C,I)}let M=((b=A?.transform)==null?void 0:b.call(A,R,i,x))??R;if(M=A?.processResult?h(M,!0):M,lu(M)){C=Object.assign({},C,M);continue}const j=Rm(A?.property,i);if(j){if(Array.isArray(j)){for(const I of j)C[I]=M;continue}j==="&"&&lu(M)?C=Object.assign({},C,M):C[j]=M;continue}C[_]=M}return C};return h}var TF=e=>t=>u8({theme:t,pseudos:Ow,configs:l2})(e);function Ar(e){return{definePartsStyle(t){return t},defineMultiStyleConfig(t){return{parts:e,...t}}}}function c8(e,t){if(Array.isArray(e))return e;if(lu(e))return t(e);if(e!=null)return[e]}function f8(e,t){for(let r=t+1;r<e.length;r++)if(e[r]!=null)return r;return-1}function d8(e){const t=e.__breakpoints;return function(i,s,c,u){var h,m;if(!t)return;const v={},b=c8(c,t.toArrayValue);if(!b)return v;const x=b.length,C=x===1,_=!!i.parts;for(let R=0;R<x;R++){const A=t.details[R],M=t.details[f8(b,R)],j=Oy(A.minW,M?._minW),I=Rm((h=i[s])==null?void 0:h[b[R]],u);if(!!I){if(_){(m=i.parts)==null||m.forEach(z=>{Bf(v,{[z]:C?I[z]:{[j]:I[z]}})});continue}if(!_){C?Bf(v,I):v[j]=I;continue}v[j]=I}}return v}}function p8(e){return t=>{const{variant:r,size:i,theme:s}=t,c=d8(s);return Bf({},Rm(e.baseStyle??{},t),c(e,"sizes",i,t),c(e,"variants",r,t))}}function h8(e,t,r){var i,s;return((s=(i=e.__cssMap)==null?void 0:i[`${t}.${r}`])==null?void 0:s.varRef)??r}function mr(e){return YH(e,["styleConfig","size","variant","colorScheme"])}function m8(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]}function v8(e){var t=document.createElement("style");return t.setAttribute("data-emotion",e.key),e.nonce!==void 0&&t.setAttribute("nonce",e.nonce),t.appendChild(document.createTextNode("")),t.setAttribute("data-s",""),t}var g8=function(){function e(r){var i=this;this._insertTag=function(s){var c;i.tags.length===0?i.insertionPoint?c=i.insertionPoint.nextSibling:i.prepend?c=i.container.firstChild:c=i.before:c=i.tags[i.tags.length-1].nextSibling,i.container.insertBefore(s,c),i.tags.push(s)},this.isSpeedy=r.speedy===void 0?!1:r.speedy,this.tags=[],this.ctr=0,this.nonce=r.nonce,this.key=r.key,this.container=r.container,this.prepend=r.prepend,this.insertionPoint=r.insertionPoint,this.before=null}var t=e.prototype;return t.hydrate=function(i){i.forEach(this._insertTag)},t.insert=function(i){this.ctr%(this.isSpeedy?65e3:1)===0&&this._insertTag(v8(this));var s=this.tags[this.tags.length-1];{var c=i.charCodeAt(0)===64&&i.charCodeAt(1)===105;c&&this._alreadyInsertedOrderInsensitiveRule&&console.error(`You're attempting to insert the following rule:
|
|
`+i+"\n\n`@import` rules must be before all other types of rules in a stylesheet but other rules have already been inserted. Please ensure that `@import` rules are before all other rules."),this._alreadyInsertedOrderInsensitiveRule=this._alreadyInsertedOrderInsensitiveRule||!c}if(this.isSpeedy){var u=m8(s);try{u.insertRule(i,u.cssRules.length)}catch(h){/:(-moz-placeholder|-moz-focus-inner|-moz-focusring|-ms-input-placeholder|-moz-read-write|-moz-read-only|-ms-clear){/.test(i)||console.error('There was a problem inserting the following rule: "'+i+'"',h)}}else s.appendChild(document.createTextNode(i));this.ctr++},t.flush=function(){this.tags.forEach(function(i){return i.parentNode&&i.parentNode.removeChild(i)}),this.tags=[],this.ctr=0,this._alreadyInsertedOrderInsensitiveRule=!1},e}(),Ai="-ms-",Vx="-moz-",Qn="-webkit-",u2="comm",c2="rule",f2="decl",y8="@import",NF="@keyframes",b8=Math.abs,Aw=String.fromCharCode,S8=Object.assign;function x8(e,t){return(((t<<2^vo(e,0))<<2^vo(e,1))<<2^vo(e,2))<<2^vo(e,3)}function RF(e){return e.trim()}function w8(e,t){return(e=t.exec(e))?e[0]:e}function rr(e,t,r){return e.replace(t,r)}function LO(e,t){return e.indexOf(t)}function vo(e,t){return e.charCodeAt(t)|0}function Xy(e,t,r){return e.slice(t,r)}function au(e){return e.length}function d2(e){return e.length}function W1(e,t){return t.push(e),e}function C8(e,t){return e.map(t).join("")}var kw=1,Vm=1,OF=0,So=0,sa=0,ev="";function Dw(e,t,r,i,s,c,u){return{value:e,root:t,parent:r,type:i,props:s,children:c,line:kw,column:Vm,length:u,return:""}}function Sy(e,t){return S8(Dw("",null,null,"",null,null,0),e,{length:-e.length},t)}function _8(){return sa}function E8(){return sa=So>0?vo(ev,--So):0,Vm--,sa===10&&(Vm=1,kw--),sa}function Yo(){return sa=So<OF?vo(ev,So++):0,Vm++,sa===10&&(Vm=1,kw++),sa}function uu(){return vo(ev,So)}function xx(){return So}function xb(e,t){return Xy(ev,e,t)}function Zy(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function AF(e){return kw=Vm=1,OF=au(ev=e),So=0,[]}function kF(e){return ev="",e}function wx(e){return RF(xb(So-1,FO(e===91?e+2:e===40?e+1:e)))}function T8(e){for(;(sa=uu())&&sa<33;)Yo();return Zy(e)>2||Zy(sa)>3?"":" "}function N8(e,t){for(;--t&&Yo()&&!(sa<48||sa>102||sa>57&&sa<65||sa>70&&sa<97););return xb(e,xx()+(t<6&&uu()==32&&Yo()==32))}function FO(e){for(;Yo();)switch(sa){case e:return So;case 34:case 39:e!==34&&e!==39&&FO(sa);break;case 40:e===41&&FO(e);break;case 92:Yo();break}return So}function R8(e,t){for(;Yo()&&e+sa!==47+10;)if(e+sa===42+42&&uu()===47)break;return"/*"+xb(t,So-1)+"*"+Aw(e===47?e:Yo())}function O8(e){for(;!Zy(uu());)Yo();return xb(e,So)}function A8(e){return kF(Cx("",null,null,null,[""],e=AF(e),0,[0],e))}function Cx(e,t,r,i,s,c,u,h,m){for(var v=0,b=0,x=u,C=0,_=0,R=0,A=1,M=1,j=1,I=0,z="",B=s,$=c,K=i,X=z;M;)switch(R=I,I=Yo()){case 40:if(R!=108&&X.charCodeAt(x-1)==58){LO(X+=rr(wx(I),"&","&\f"),"&\f")!=-1&&(j=-1);break}case 34:case 39:case 91:X+=wx(I);break;case 9:case 10:case 13:case 32:X+=T8(R);break;case 92:X+=N8(xx()-1,7);continue;case 47:switch(uu()){case 42:case 47:W1(k8(R8(Yo(),xx()),t,r),m);break;default:X+="/"}break;case 123*A:h[v++]=au(X)*j;case 125*A:case 59:case 0:switch(I){case 0:case 125:M=0;case 59+b:_>0&&au(X)-x&&W1(_>32?gI(X+";",i,r,x-1):gI(rr(X," ","")+";",i,r,x-2),m);break;case 59:X+=";";default:if(W1(K=vI(X,t,r,v,b,s,h,z,B=[],$=[],x),c),I===123)if(b===0)Cx(X,t,K,K,B,c,x,h,$);else switch(C){case 100:case 109:case 115:Cx(e,K,K,i&&W1(vI(e,K,K,0,0,s,h,z,s,B=[],x),$),s,$,x,h,i?B:$);break;default:Cx(X,K,K,K,[""],$,0,h,$)}}v=b=_=0,A=j=1,z=X="",x=u;break;case 58:x=1+au(X),_=R;default:if(A<1){if(I==123)--A;else if(I==125&&A++==0&&E8()==125)continue}switch(X+=Aw(I),I*A){case 38:j=b>0?1:(X+="\f",-1);break;case 44:h[v++]=(au(X)-1)*j,j=1;break;case 64:uu()===45&&(X+=wx(Yo())),C=uu(),b=x=au(z=X+=O8(xx())),I++;break;case 45:R===45&&au(X)==2&&(A=0)}}return c}function vI(e,t,r,i,s,c,u,h,m,v,b){for(var x=s-1,C=s===0?c:[""],_=d2(C),R=0,A=0,M=0;R<i;++R)for(var j=0,I=Xy(e,x+1,x=b8(A=u[R])),z=e;j<_;++j)(z=RF(A>0?C[j]+" "+I:rr(I,/&\f/g,C[j])))&&(m[M++]=z);return Dw(e,t,r,s===0?c2:h,m,v,b)}function k8(e,t,r){return Dw(e,t,r,u2,Aw(_8()),Xy(e,2,-2),0)}function gI(e,t,r,i){return Dw(e,t,r,f2,Xy(e,0,i),Xy(e,i+1,-1),i)}function DF(e,t){switch(x8(e,t)){case 5103:return Qn+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return Qn+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return Qn+e+Vx+e+Ai+e+e;case 6828:case 4268:return Qn+e+Ai+e+e;case 6165:return Qn+e+Ai+"flex-"+e+e;case 5187:return Qn+e+rr(e,/(\w+).+(:[^]+)/,Qn+"box-$1$2"+Ai+"flex-$1$2")+e;case 5443:return Qn+e+Ai+"flex-item-"+rr(e,/flex-|-self/,"")+e;case 4675:return Qn+e+Ai+"flex-line-pack"+rr(e,/align-content|flex-|-self/,"")+e;case 5548:return Qn+e+Ai+rr(e,"shrink","negative")+e;case 5292:return Qn+e+Ai+rr(e,"basis","preferred-size")+e;case 6060:return Qn+"box-"+rr(e,"-grow","")+Qn+e+Ai+rr(e,"grow","positive")+e;case 4554:return Qn+rr(e,/([^-])(transform)/g,"$1"+Qn+"$2")+e;case 6187:return rr(rr(rr(e,/(zoom-|grab)/,Qn+"$1"),/(image-set)/,Qn+"$1"),e,"")+e;case 5495:case 3959:return rr(e,/(image-set\([^]*)/,Qn+"$1$`$1");case 4968:return rr(rr(e,/(.+:)(flex-)?(.*)/,Qn+"box-pack:$3"+Ai+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+Qn+e+e;case 4095:case 3583:case 4068:case 2532:return rr(e,/(.+)-inline(.+)/,Qn+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(au(e)-1-t>6)switch(vo(e,t+1)){case 109:if(vo(e,t+4)!==45)break;case 102:return rr(e,/(.+:)(.+)-([^]+)/,"$1"+Qn+"$2-$3$1"+Vx+(vo(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~LO(e,"stretch")?DF(rr(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(vo(e,t+1)!==115)break;case 6444:switch(vo(e,au(e)-3-(~LO(e,"!important")&&10))){case 107:return rr(e,":",":"+Qn)+e;case 101:return rr(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+Qn+(vo(e,14)===45?"inline-":"")+"box$3$1"+Qn+"$2$3$1"+Ai+"$2box$3")+e}break;case 5936:switch(vo(e,t+11)){case 114:return Qn+e+Ai+rr(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return Qn+e+Ai+rr(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return Qn+e+Ai+rr(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return Qn+e+Ai+e+e}return e}function Mm(e,t){for(var r="",i=d2(e),s=0;s<i;s++)r+=t(e[s],s,e,t)||"";return r}function D8(e,t,r,i){switch(e.type){case y8:case f2:return e.return=e.return||e.value;case u2:return"";case NF:return e.return=e.value+"{"+Mm(e.children,i)+"}";case c2:e.value=e.props.join(",")}return au(r=Mm(e.children,i))?e.return=e.value+"{"+r+"}":""}function P8(e){var t=d2(e);return function(r,i,s,c){for(var u="",h=0;h<t;h++)u+=e[h](r,i,s,c)||"";return u}}function M8(e,t,r,i){if(e.length>-1&&!e.return)switch(e.type){case f2:e.return=DF(e.value,e.length);break;case NF:return Mm([Sy(e,{value:rr(e.value,"@","@"+Qn)})],i);case c2:if(e.length)return C8(e.props,function(s){switch(w8(s,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return Mm([Sy(e,{props:[rr(s,/:(read-\w+)/,":"+Vx+"$1")]})],i);case"::placeholder":return Mm([Sy(e,{props:[rr(s,/:(plac\w+)/,":"+Qn+"input-$1")]}),Sy(e,{props:[rr(s,/:(plac\w+)/,":"+Vx+"$1")]}),Sy(e,{props:[rr(s,/:(plac\w+)/,Ai+"input-$1")]})],i)}return""})}}var yI=function(t){var r=new WeakMap;return function(i){if(r.has(i))return r.get(i);var s=t(i);return r.set(i,s),s}};function PF(e){var t=Object.create(null);return function(r){return t[r]===void 0&&(t[r]=e(r)),t[r]}}var I8=function(t,r,i){for(var s=0,c=0;s=c,c=uu(),s===38&&c===12&&(r[i]=1),!Zy(c);)Yo();return xb(t,So)},L8=function(t,r){var i=-1,s=44;do switch(Zy(s)){case 0:s===38&&uu()===12&&(r[i]=1),t[i]+=I8(So-1,r,i);break;case 2:t[i]+=wx(s);break;case 4:if(s===44){t[++i]=uu()===58?"&\f":"",r[i]=t[i].length;break}default:t[i]+=Aw(s)}while(s=Yo());return t},F8=function(t,r){return kF(L8(AF(t),r))},bI=new WeakMap,z8=function(t){if(!(t.type!=="rule"||!t.parent||t.length<1)){for(var r=t.value,i=t.parent,s=t.column===i.column&&t.line===i.line;i.type!=="rule";)if(i=i.parent,!i)return;if(!(t.props.length===1&&r.charCodeAt(0)!==58&&!bI.get(i))&&!s){bI.set(t,!0);for(var c=[],u=F8(r,c),h=i.props,m=0,v=0;m<u.length;m++)for(var b=0;b<h.length;b++,v++)t.props[v]=c[m]?u[m].replace(/&\f/g,h[b]):h[b]+" "+u[m]}}},B8=function(t){if(t.type==="decl"){var r=t.value;r.charCodeAt(0)===108&&r.charCodeAt(2)===98&&(t.return="",t.value="")}},U8="emotion-disable-server-rendering-unsafe-selector-warning-please-do-not-use-this-the-warning-exists-for-a-reason",j8=function(t){return t.type==="comm"&&t.children.indexOf(U8)>-1},$8=function(t){return function(r,i,s){if(!(r.type!=="rule"||t.compat)){var c=r.value.match(/(:first|:nth|:nth-last)-child/g);if(c){for(var u=r.parent===s[0],h=u?s[0].children:s,m=h.length-1;m>=0;m--){var v=h[m];if(v.line<r.line)break;if(v.column<r.column){if(j8(v))return;break}}c.forEach(function(b){console.error('The pseudo class "'+b+'" is potentially unsafe when doing server-side rendering. Try changing it to "'+b.split("-child")[0]+'-of-type".')})}}}},MF=function(t){return t.type.charCodeAt(1)===105&&t.type.charCodeAt(0)===64},V8=function(t,r){for(var i=t-1;i>=0;i--)if(!MF(r[i]))return!0;return!1},SI=function(t){t.type="",t.value="",t.return="",t.children="",t.props=""},H8=function(t,r,i){!MF(t)||(t.parent?(console.error("`@import` rules can't be nested inside other rules. Please move it to the top level and put it before regular rules. Keep in mind that they can only be used within global styles."),SI(t)):V8(r,i)&&(console.error("`@import` rules can't be after other rules. Please put your `@import` rules before your other rules."),SI(t)))},W8=[M8],G8=function(t){var r=t.key;if(!r)throw new Error(`You have to configure \`key\` for your cache. Please make sure it's unique (and not equal to 'css') as it's used for linking styles to your cache.
|
|
If multiple caches share the same key they might "fight" for each other's style elements.`);if(r==="css"){var i=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(i,function(A){var M=A.getAttribute("data-emotion");M.indexOf(" ")!==-1&&(document.head.appendChild(A),A.setAttribute("data-s",""))})}var s=t.stylisPlugins||W8;if(/[^a-z-]/.test(r))throw new Error('Emotion key must only contain lower case alphabetical characters and - but "'+r+'" was passed');var c={},u,h=[];u=t.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+r+' "]'),function(A){for(var M=A.getAttribute("data-emotion").split(" "),j=1;j<M.length;j++)c[M[j]]=!0;h.push(A)});var m,v=[z8,B8];v.push($8({get compat(){return R.compat}}),H8);{var b,x=[D8,function(A){A.root||(A.return?b.insert(A.return):A.value&&A.type!==u2&&b.insert(A.value+"{}"))}],C=P8(v.concat(s,x)),_=function(M){return Mm(A8(M),C)};m=function(M,j,I,z){b=I,j.map!==void 0&&(b={insert:function($){I.insert($+j.map)}}),_(M?M+"{"+j.styles+"}":j.styles),z&&(R.inserted[j.name]=!0)}}var R={key:r,sheet:new g8({key:r,container:u,nonce:t.nonce,speedy:t.speedy,prepend:t.prepend,insertionPoint:t.insertionPoint}),nonce:t.nonce,inserted:c,registered:{},insert:m};return R.sheet.hydrate(h),R};function Qy(){return Qy=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(e[i]=r[i])}return e},Qy.apply(this,arguments)}var Pw={exports:{}},or={};/** @license React v16.13.1
|
|
* react-is.development.js
|
|
*
|
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
*
|
|
* This source code is licensed under the MIT license found in the
|
|
* LICENSE file in the root directory of this source tree.
|
|
*/(function(){var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,r=e?Symbol.for("react.portal"):60106,i=e?Symbol.for("react.fragment"):60107,s=e?Symbol.for("react.strict_mode"):60108,c=e?Symbol.for("react.profiler"):60114,u=e?Symbol.for("react.provider"):60109,h=e?Symbol.for("react.context"):60110,m=e?Symbol.for("react.async_mode"):60111,v=e?Symbol.for("react.concurrent_mode"):60111,b=e?Symbol.for("react.forward_ref"):60112,x=e?Symbol.for("react.suspense"):60113,C=e?Symbol.for("react.suspense_list"):60120,_=e?Symbol.for("react.memo"):60115,R=e?Symbol.for("react.lazy"):60116,A=e?Symbol.for("react.block"):60121,M=e?Symbol.for("react.fundamental"):60117,j=e?Symbol.for("react.responder"):60118,I=e?Symbol.for("react.scope"):60119;function z(We){return typeof We=="string"||typeof We=="function"||We===i||We===v||We===c||We===s||We===x||We===C||typeof We=="object"&&We!==null&&(We.$$typeof===R||We.$$typeof===_||We.$$typeof===u||We.$$typeof===h||We.$$typeof===b||We.$$typeof===M||We.$$typeof===j||We.$$typeof===I||We.$$typeof===A)}function B(We){if(typeof We=="object"&&We!==null){var Yt=We.$$typeof;switch(Yt){case t:var ye=We.type;switch(ye){case m:case v:case i:case c:case s:case x:return ye;default:var Mt=ye&&ye.$$typeof;switch(Mt){case h:case b:case R:case _:case u:return Mt;default:return Yt}}case r:return Yt}}}var $=m,K=v,X=h,de=u,ve=t,se=b,be=i,Xe=R,ie=_,ce=r,Re=c,Ce=s,oe=x,Se=!1;function Te(We){return Se||(Se=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")),pe(We)||B(We)===m}function pe(We){return B(We)===v}function we(We){return B(We)===h}function Ie(We){return B(We)===u}function Le(We){return typeof We=="object"&&We!==null&&We.$$typeof===t}function Ye(We){return B(We)===b}function st(We){return B(We)===i}function mt(We){return B(We)===R}function Gt(We){return B(We)===_}function Qe(We){return B(We)===r}function vt(We){return B(We)===c}function Et(We){return B(We)===s}function zt(We){return B(We)===x}or.AsyncMode=$,or.ConcurrentMode=K,or.ContextConsumer=X,or.ContextProvider=de,or.Element=ve,or.ForwardRef=se,or.Fragment=be,or.Lazy=Xe,or.Memo=ie,or.Portal=ce,or.Profiler=Re,or.StrictMode=Ce,or.Suspense=oe,or.isAsyncMode=Te,or.isConcurrentMode=pe,or.isContextConsumer=we,or.isContextProvider=Ie,or.isElement=Le,or.isForwardRef=Ye,or.isFragment=st,or.isLazy=mt,or.isMemo=Gt,or.isPortal=Qe,or.isProfiler=vt,or.isStrictMode=Et,or.isSuspense=zt,or.isValidElementType=z,or.typeOf=B})();(function(e){e.exports=or})(Pw);var IF=Pw.exports,Y8={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},q8={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},LF={};LF[IF.ForwardRef]=Y8;LF[IF.Memo]=q8;var K8=!0;function p2(e,t,r){var i="";return r.split(" ").forEach(function(s){e[s]!==void 0?t.push(e[s]+";"):i+=s+" "}),i}var Mw=function(t,r,i){var s=t.key+"-"+r.name;(i===!1||K8===!1)&&t.registered[s]===void 0&&(t.registered[s]=r.styles)},Iw=function(t,r,i){Mw(t,r,i);var s=t.key+"-"+r.name;if(t.inserted[r.name]===void 0){var c=r;do t.insert(r===c?"."+s:"",c,t.sheet,!0),c=c.next;while(c!==void 0)}};function X8(e){for(var t=0,r,i=0,s=e.length;s>=4;++i,s-=4)r=e.charCodeAt(i)&255|(e.charCodeAt(++i)&255)<<8|(e.charCodeAt(++i)&255)<<16|(e.charCodeAt(++i)&255)<<24,r=(r&65535)*1540483477+((r>>>16)*59797<<16),r^=r>>>24,t=(r&65535)*1540483477+((r>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(s){case 3:t^=(e.charCodeAt(i+2)&255)<<16;case 2:t^=(e.charCodeAt(i+1)&255)<<8;case 1:t^=e.charCodeAt(i)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16)}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}var Z8={animationIterationCount:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},xI=`You have illegal escape sequence in your template literal, most likely inside content's property value.
|
|
Because you write your CSS inside a JavaScript string you actually have to do double escaping, so for example "content: '\\00d7';" should become "content: '\\\\00d7';".
|
|
You can read more about this here:
|
|
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Template_literals#ES2018_revision_of_illegal_escape_sequences`,Q8="You have passed in falsy value as style object's key (can happen when in example you pass unexported component as computed key).",J8=/[A-Z]|^ms/g,FF=/_EMO_([^_]+?)_([^]*?)_EMO_/g,h2=function(t){return t.charCodeAt(1)===45},wI=function(t){return t!=null&&typeof t!="boolean"},LR=PF(function(e){return h2(e)?e:e.replace(J8,"-$&").toLowerCase()}),Hx=function(t,r){switch(t){case"animation":case"animationName":if(typeof r=="string")return r.replace(FF,function(i,s,c){return iu={name:s,styles:c,next:iu},s})}return Z8[t]!==1&&!h2(t)&&typeof r=="number"&&r!==0?r+"px":r};{var e7=/(var|attr|counters?|url|(((repeating-)?(linear|radial))|conic)-gradient)\(|(no-)?(open|close)-quote/,t7=["normal","none","initial","inherit","unset"],n7=Hx,r7=/^-ms-/,a7=/-(.)/g,CI={};Hx=function(t,r){if(t==="content"&&(typeof r!="string"||t7.indexOf(r)===-1&&!e7.test(r)&&(r.charAt(0)!==r.charAt(r.length-1)||r.charAt(0)!=='"'&&r.charAt(0)!=="'")))throw new Error("You seem to be using a value for 'content' without quotes, try replacing it with `content: '\""+r+"\"'`");var i=n7(t,r);return i!==""&&!h2(t)&&t.indexOf("-")!==-1&&CI[t]===void 0&&(CI[t]=!0,console.error("Using kebab-case for css properties in objects is not supported. Did you mean "+t.replace(r7,"ms-").replace(a7,function(s,c){return c.toUpperCase()})+"?")),i}}var zF="Component selectors can only be used in conjunction with @emotion/babel-plugin, the swc Emotion plugin, or another Emotion-aware compiler transform.";function Jy(e,t,r){if(r==null)return"";if(r.__emotion_styles!==void 0){if(r.toString()==="NO_COMPONENT_SELECTOR")throw new Error(zF);return r}switch(typeof r){case"boolean":return"";case"object":{if(r.anim===1)return iu={name:r.name,styles:r.styles,next:iu},r.name;if(r.styles!==void 0){var i=r.next;if(i!==void 0)for(;i!==void 0;)iu={name:i.name,styles:i.styles,next:iu},i=i.next;var s=r.styles+";";return r.map!==void 0&&(s+=r.map),s}return i7(e,t,r)}case"function":{if(e!==void 0){var c=iu,u=r(e);return iu=c,Jy(e,t,u)}else console.error("Functions that are interpolated in css calls will be stringified.\nIf you want to have a css call based on props, create a function that returns a css call like this\nlet dynamicStyle = (props) => css`color: ${props.color}`\nIt can be called directly with props or interpolated in a styled call like this\nlet SomeComponent = styled('div')`${dynamicStyle}`");break}case"string":{var h=[],m=r.replace(FF,function(b,x,C){var _="animation"+h.length;return h.push("const "+_+" = keyframes`"+C.replace(/^@keyframes animation-\w+/,"")+"`"),"${"+_+"}"});h.length&&console.error("`keyframes` output got interpolated into plain string, please wrap it with `css`.\n\nInstead of doing this:\n\n"+[].concat(h,["`"+m+"`"]).join(`
|
|
`)+`
|
|
|
|
You should wrap it with \`css\` like this:
|
|
|
|
`+("css`"+m+"`"))}break}if(t==null)return r;var v=t[r];return v!==void 0?v:r}function i7(e,t,r){var i="";if(Array.isArray(r))for(var s=0;s<r.length;s++)i+=Jy(e,t,r[s])+";";else for(var c in r){var u=r[c];if(typeof u!="object")t!=null&&t[u]!==void 0?i+=c+"{"+t[u]+"}":wI(u)&&(i+=LR(c)+":"+Hx(c,u)+";");else{if(c==="NO_COMPONENT_SELECTOR")throw new Error(zF);if(Array.isArray(u)&&typeof u[0]=="string"&&(t==null||t[u[0]]===void 0))for(var h=0;h<u.length;h++)wI(u[h])&&(i+=LR(c)+":"+Hx(c,u[h])+";");else{var m=Jy(e,t,u);switch(c){case"animation":case"animationName":{i+=LR(c)+":"+m+";";break}default:c==="undefined"&&console.error(Q8),i+=c+"{"+m+"}"}}}}return i}var _I=/label:\s*([^\s;\n{]+)\s*(;|$)/g,BF;BF=/\/\*#\ssourceMappingURL=data:application\/json;\S+\s+\*\//g;var iu,Hm=function(t,r,i){if(t.length===1&&typeof t[0]=="object"&&t[0]!==null&&t[0].styles!==void 0)return t[0];var s=!0,c="";iu=void 0;var u=t[0];u==null||u.raw===void 0?(s=!1,c+=Jy(i,r,u)):(u[0]===void 0&&console.error(xI),c+=u[0]);for(var h=1;h<t.length;h++)c+=Jy(i,r,t[h]),s&&(u[h]===void 0&&console.error(xI),c+=u[h]);var m;c=c.replace(BF,function(C){return m=C,""}),_I.lastIndex=0;for(var v="",b;(b=_I.exec(c))!==null;)v+="-"+b[1];var x=X8(c)+v;return{name:x,styles:c,map:m,next:iu,toString:function(){return"You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."}}},o7=function(t){return t()},UF=iI["useInsertionEffect"]?iI["useInsertionEffect"]:!1,m2=UF||o7,EI=UF||D.exports.useLayoutEffect,s7={}.hasOwnProperty,v2=D.exports.createContext(typeof HTMLElement<"u"?G8({key:"css"}):null);v2.displayName="EmotionCacheContext";v2.Provider;var Lw=function(t){return D.exports.forwardRef(function(r,i){var s=D.exports.useContext(v2);return t(r,s,i)})},Uf=D.exports.createContext({});Uf.displayName="EmotionThemeContext";var l7=function(t,r){if(typeof r=="function"){var i=r(t);if(i==null||typeof i!="object"||Array.isArray(i))throw new Error("[ThemeProvider] Please return an object from your theme function, i.e. theme={() => ({})}!");return i}if(r==null||typeof r!="object"||Array.isArray(r))throw new Error("[ThemeProvider] Please make your theme prop a plain object");return Qy({},t,r)},u7=yI(function(e){return yI(function(t){return l7(e,t)})}),c7=function(t){var r=D.exports.useContext(Uf);return t.theme!==r&&(r=u7(r)(t.theme)),D.exports.createElement(Uf.Provider,{value:r},t.children)},TI="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",NI="__EMOTION_LABEL_PLEASE_DO_NOT_USE__",f7=function(t){var r=t.cache,i=t.serialized,s=t.isStringTag;return Mw(r,i,s),m2(function(){return Iw(r,i,s)}),null},d7=Lw(function(e,t,r){var i=e.css;typeof i=="string"&&t.registered[i]!==void 0&&(i=t.registered[i]);var s=e[TI],c=[i],u="";typeof e.className=="string"?u=p2(t.registered,c,e.className):e.className!=null&&(u=e.className+" ");var h=Hm(c,void 0,D.exports.useContext(Uf));if(h.name.indexOf("-")===-1){var m=e[NI];m&&(h=Hm([h,"label:"+m+";"]))}u+=t.key+"-"+h.name;var v={};for(var b in e)s7.call(e,b)&&b!=="css"&&b!==TI&&b!==NI&&(v[b]=e[b]);return v.ref=r,v.className=u,D.exports.createElement(D.exports.Fragment,null,D.exports.createElement(f7,{cache:t,serialized:h,isStringTag:typeof s=="string"}),D.exports.createElement(s,v))});d7.displayName="EmotionCssPropInternal";var p7={name:"@emotion/react",version:"11.10.4",main:"dist/emotion-react.cjs.js",module:"dist/emotion-react.esm.js",browser:{"./dist/emotion-react.esm.js":"./dist/emotion-react.browser.esm.js"},exports:{".":{module:{worker:"./dist/emotion-react.worker.esm.js",browser:"./dist/emotion-react.browser.esm.js",default:"./dist/emotion-react.esm.js"},default:"./dist/emotion-react.cjs.js"},"./jsx-runtime":{module:{worker:"./jsx-runtime/dist/emotion-react-jsx-runtime.worker.esm.js",browser:"./jsx-runtime/dist/emotion-react-jsx-runtime.browser.esm.js",default:"./jsx-runtime/dist/emotion-react-jsx-runtime.esm.js"},default:"./jsx-runtime/dist/emotion-react-jsx-runtime.cjs.js"},"./_isolated-hnrs":{module:{worker:"./_isolated-hnrs/dist/emotion-react-_isolated-hnrs.worker.esm.js",browser:"./_isolated-hnrs/dist/emotion-react-_isolated-hnrs.browser.esm.js",default:"./_isolated-hnrs/dist/emotion-react-_isolated-hnrs.esm.js"},default:"./_isolated-hnrs/dist/emotion-react-_isolated-hnrs.cjs.js"},"./jsx-dev-runtime":{module:{worker:"./jsx-dev-runtime/dist/emotion-react-jsx-dev-runtime.worker.esm.js",browser:"./jsx-dev-runtime/dist/emotion-react-jsx-dev-runtime.browser.esm.js",default:"./jsx-dev-runtime/dist/emotion-react-jsx-dev-runtime.esm.js"},default:"./jsx-dev-runtime/dist/emotion-react-jsx-dev-runtime.cjs.js"},"./package.json":"./package.json","./types/css-prop":"./types/css-prop.d.ts","./macro":"./macro.js"},types:"types/index.d.ts",files:["src","dist","jsx-runtime","jsx-dev-runtime","_isolated-hnrs","types/*.d.ts","macro.js","macro.d.ts","macro.js.flow"],sideEffects:!1,author:"Emotion Contributors",license:"MIT",scripts:{"test:typescript":"dtslint types"},dependencies:{"@babel/runtime":"^7.18.3","@emotion/babel-plugin":"^11.10.0","@emotion/cache":"^11.10.0","@emotion/serialize":"^1.1.0","@emotion/use-insertion-effect-with-fallbacks":"^1.0.0","@emotion/utils":"^1.2.0","@emotion/weak-memoize":"^0.3.0","hoist-non-react-statics":"^3.3.1"},peerDependencies:{"@babel/core":"^7.0.0",react:">=16.8.0"},peerDependenciesMeta:{"@babel/core":{optional:!0},"@types/react":{optional:!0}},devDependencies:{"@babel/core":"^7.18.5","@definitelytyped/dtslint":"0.0.112","@emotion/css":"11.10.0","@emotion/css-prettifier":"1.1.0","@emotion/server":"11.10.0","@emotion/styled":"11.10.4","html-tag-names":"^1.1.2",react:"16.14.0","svg-tag-names":"^1.1.1",typescript:"^4.5.5"},repository:"https://github.com/emotion-js/emotion/tree/main/packages/react",publishConfig:{access:"public"},"umd:main":"dist/emotion-react.umd.min.js",preconstruct:{entrypoints:["./index.js","./jsx-runtime.js","./jsx-dev-runtime.js","./_isolated-hnrs.js"],umdName:"emotionReact",exports:{envConditions:["browser","worker"],extra:{"./types/css-prop":"./types/css-prop.d.ts","./macro":"./macro.js"}}}},RI=!1,wb=Lw(function(e,t){!RI&&(e.className||e.css)&&(console.error("It looks like you're using the css prop on Global, did you mean to use the styles prop instead?"),RI=!0);var r=e.styles,i=Hm([r],void 0,D.exports.useContext(Uf)),s=D.exports.useRef();return EI(function(){var c=t.key+"-global",u=new t.sheet.constructor({key:c,nonce:t.sheet.nonce,container:t.sheet.container,speedy:t.sheet.isSpeedy}),h=!1,m=document.querySelector('style[data-emotion="'+c+" "+i.name+'"]');return t.sheet.tags.length&&(u.before=t.sheet.tags[0]),m!==null&&(h=!0,m.setAttribute("data-emotion",c),u.hydrate([m])),s.current=[u,h],function(){u.flush()}},[t]),EI(function(){var c=s.current,u=c[0],h=c[1];if(h){c[1]=!1;return}if(i.next!==void 0&&Iw(t,i.next,!0),u.tags.length){var m=u.tags[u.tags.length-1].nextElementSibling;u.before=m,u.flush()}t.insert("",i,u,!1)},[t,i.name]),null});wb.displayName="EmotionGlobal";function h7(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return Hm(t)}var Cb=function(){var t=h7.apply(void 0,arguments),r="animation-"+t.name;return{name:r,styles:"@keyframes "+r+"{"+t.styles+"}",anim:1,toString:function(){return"_EMO_"+this.name+"_"+this.styles+"_EMO_"}}},m7=function e(t){for(var r=t.length,i=0,s="";i<r;i++){var c=t[i];if(c!=null){var u=void 0;switch(typeof c){case"boolean":break;case"object":{if(Array.isArray(c))u=e(c);else{c.styles!==void 0&&c.name!==void 0&&console.error("You have passed styles created with `css` from `@emotion/react` package to the `cx`.\n`cx` is meant to compose class names (strings) so you should convert those styles to a class name by passing them to the `css` received from <ClassNames/> component."),u="";for(var h in c)c[h]&&h&&(u&&(u+=" "),u+=h)}break}default:u=c}u&&(s&&(s+=" "),s+=u)}}return s};function v7(e,t,r){var i=[],s=p2(e,i,r);return i.length<2?r:s+t(i)}var g7=function(t){var r=t.cache,i=t.serializedArr;return m2(function(){for(var s=0;s<i.length;s++)Iw(r,i[s],!1)}),null},y7=Lw(function(e,t){var r=!1,i=[],s=function(){if(r)throw new Error("css can only be used during render");for(var v=arguments.length,b=new Array(v),x=0;x<v;x++)b[x]=arguments[x];var C=Hm(b,t.registered);return i.push(C),Mw(t,C,!1),t.key+"-"+C.name},c=function(){if(r)throw new Error("cx can only be used during render");for(var v=arguments.length,b=new Array(v),x=0;x<v;x++)b[x]=arguments[x];return v7(t.registered,s,m7(b))},u={css:s,cx:c,theme:D.exports.useContext(Uf)},h=e.children(u);return r=!0,D.exports.createElement(D.exports.Fragment,null,D.exports.createElement(g7,{cache:t,serializedArr:i}),h)});y7.displayName="EmotionClassNames";{var OI=!0,b7=typeof jest<"u";if(OI&&!b7){var AI=typeof globalThis<"u"?globalThis:OI?window:global,kI="__EMOTION_REACT_"+p7.version.split(".")[0]+"__";AI[kI]&&console.warn("You are loading @emotion/react when it is already loaded. Running multiple instances may cause problems. This can happen if multiple versions are used, or if multiple builds of the same version are used."),AI[kI]=!0}}function Om(e){return typeof e=="function"}function S7(e,t){const r={};return Object.keys(e).forEach(i=>{t.includes(i)||(r[i]=e[i])}),r}function x7(e,t,r,i){const s=typeof t=="string"?t.split("."):[t];for(i=0;i<s.length&&e;i+=1)e=e[s[i]];return e===void 0?r:e}var w7=e=>{const t=new WeakMap;return(i,s,c,u)=>{if(typeof i>"u")return e(i,s,c);t.has(i)||t.set(i,new Map);const h=t.get(i);if(h.has(s))return h.get(s);const m=e(i,s,c,u);return h.set(s,m),m}},jF=w7(x7);function $F(e,t){const r={};return Object.keys(e).forEach(i=>{const s=e[i];t(s,i,e)&&(r[i]=s)}),r}var VF=e=>$F(e,t=>t!=null);function C7(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}var _7=C7();function HF(e,...t){return Om(e)?e(...t):e}function E7(...e){return function(r){e.some(i=>(i?.(r),r?.defaultPrevented))}}var T7=(...e)=>t=>e.reduce((r,i)=>i(r),t);Object.freeze(["base","sm","md","lg","xl","2xl"]);function N7(e={}){const{strict:t=!0,errorMessage:r="useContext: `context` is undefined. Seems you forgot to wrap component within the Provider",name:i}=e,s=D.exports.createContext(void 0);s.displayName=i;function c(){var u;const h=D.exports.useContext(s);if(!h&&t){const m=new Error(r);throw m.name="ContextError",(u=Error.captureStackTrace)==null||u.call(Error,m,c),m}return h}return[s.Provider,c,s]}var R7=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|download|draggable|encType|enterKeyHint|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,O7=PF(function(e){return R7.test(e)||e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)<91}),A7=O7,k7=function(t){return t!=="theme"},DI=function(t){return typeof t=="string"&&t.charCodeAt(0)>96?A7:k7},PI=function(t,r,i){var s;if(r){var c=r.shouldForwardProp;s=t.__emotion_forwardProp&&c?function(u){return t.__emotion_forwardProp(u)&&c(u)}:c}return typeof s!="function"&&i&&(s=t.__emotion_forwardProp),s},MI=`You have illegal escape sequence in your template literal, most likely inside content's property value.
|
|
Because you write your CSS inside a JavaScript string you actually have to do double escaping, so for example "content: '\\00d7';" should become "content: '\\\\00d7';".
|
|
You can read more about this here:
|
|
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Template_literals#ES2018_revision_of_illegal_escape_sequences`,D7=function(t){var r=t.cache,i=t.serialized,s=t.isStringTag;return Mw(r,i,s),m2(function(){return Iw(r,i,s)}),null},P7=function e(t,r){if(t===void 0)throw new Error(`You are trying to create a styled element with an undefined component.
|
|
You may have forgotten to import it.`);var i=t.__emotion_real===t,s=i&&t.__emotion_base||t,c,u;r!==void 0&&(c=r.label,u=r.target);var h=PI(t,r,i),m=h||DI(s),v=!m("as");return function(){var b=arguments,x=i&&t.__emotion_styles!==void 0?t.__emotion_styles.slice(0):[];if(c!==void 0&&x.push("label:"+c+";"),b[0]==null||b[0].raw===void 0)x.push.apply(x,b);else{b[0][0]===void 0&&console.error(MI),x.push(b[0][0]);for(var C=b.length,_=1;_<C;_++)b[0][_]===void 0&&console.error(MI),x.push(b[_],b[0][_])}var R=Lw(function(A,M,j){var I=v&&A.as||s,z="",B=[],$=A;if(A.theme==null){$={};for(var K in A)$[K]=A[K];$.theme=D.exports.useContext(Uf)}typeof A.className=="string"?z=p2(M.registered,B,A.className):A.className!=null&&(z=A.className+" ");var X=Hm(x.concat(B),M.registered,$);z+=M.key+"-"+X.name,u!==void 0&&(z+=" "+u);var de=v&&h===void 0?DI(I):m,ve={};for(var se in A)v&&se==="as"||de(se)&&(ve[se]=A[se]);return ve.className=z,ve.ref=j,D.exports.createElement(D.exports.Fragment,null,D.exports.createElement(D7,{cache:M,serialized:X,isStringTag:typeof I=="string"}),D.exports.createElement(I,ve))});return R.displayName=c!==void 0?c:"Styled("+(typeof s=="string"?s:s.displayName||s.name||"Component")+")",R.defaultProps=t.defaultProps,R.__emotion_real=R,R.__emotion_base=s,R.__emotion_styles=x,R.__emotion_forwardProp=h,Object.defineProperty(R,"toString",{value:function(){return u===void 0?"NO_COMPONENT_SELECTOR":"."+u}}),R.withComponent=function(A,M){return e(A,Qy({},r,M,{shouldForwardProp:PI(R,M,!0)})).apply(void 0,x)},R}},M7=["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","marquee","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"],zO=P7.bind();M7.forEach(function(e){zO[e]=zO(e)});var I7=typeof Element<"u",L7=typeof Map=="function",F7=typeof Set=="function",z7=typeof ArrayBuffer=="function"&&!!ArrayBuffer.isView;function _x(e,t){if(e===t)return!0;if(e&&t&&typeof e=="object"&&typeof t=="object"){if(e.constructor!==t.constructor)return!1;var r,i,s;if(Array.isArray(e)){if(r=e.length,r!=t.length)return!1;for(i=r;i--!==0;)if(!_x(e[i],t[i]))return!1;return!0}var c;if(L7&&e instanceof Map&&t instanceof Map){if(e.size!==t.size)return!1;for(c=e.entries();!(i=c.next()).done;)if(!t.has(i.value[0]))return!1;for(c=e.entries();!(i=c.next()).done;)if(!_x(i.value[1],t.get(i.value[0])))return!1;return!0}if(F7&&e instanceof Set&&t instanceof Set){if(e.size!==t.size)return!1;for(c=e.entries();!(i=c.next()).done;)if(!t.has(i.value[0]))return!1;return!0}if(z7&&ArrayBuffer.isView(e)&&ArrayBuffer.isView(t)){if(r=e.length,r!=t.length)return!1;for(i=r;i--!==0;)if(e[i]!==t[i])return!1;return!0}if(e.constructor===RegExp)return e.source===t.source&&e.flags===t.flags;if(e.valueOf!==Object.prototype.valueOf)return e.valueOf()===t.valueOf();if(e.toString!==Object.prototype.toString)return e.toString()===t.toString();if(s=Object.keys(e),r=s.length,r!==Object.keys(t).length)return!1;for(i=r;i--!==0;)if(!Object.prototype.hasOwnProperty.call(t,s[i]))return!1;if(I7&&e instanceof Element)return!1;for(i=r;i--!==0;)if(!((s[i]==="_owner"||s[i]==="__v"||s[i]==="__o")&&e.$$typeof)&&!_x(e[s[i]],t[s[i]]))return!1;return!0}return e!==e&&t!==t}var B7=function(t,r){try{return _x(t,r)}catch(i){if((i.message||"").match(/stack|recursion/i))return console.warn("react-fast-compare cannot handle circular refs"),!1;throw i}},Wx="/Users/spencer/Documents/Code/stable-diffusion/frontend/node_modules/@chakra-ui/system/dist/index.esm.js";function g2(){const e=D.exports.useContext(Uf);if(!e)throw Error("useTheme: `theme` is undefined. Seems you forgot to wrap your app in `<ChakraProvider />` or `<ThemeProvider />`");return e}function WF(){const e=Nw(),t=g2();return{...e,theme:t}}function U7(e,t,r){if(t==null)return t;const i=s=>{var c,u;return(u=(c=e.__breakpoints)==null?void 0:c.asArray)==null?void 0:u[s]};return i(t)??i(r)??r}function j7(e,t,r){if(t==null)return t;const i=s=>{var c,u;return(u=(c=e.__cssMap)==null?void 0:c[s])==null?void 0:u.value};return i(t)??i(r)??r}function $7(e,t,r){const i=Array.isArray(t)?t:[t],s=Array.isArray(r)?r:[r];return c=>{const u=s.filter(Boolean),h=i.map((m,v)=>{if(e==="breakpoints")return U7(c,m,u[v]??m);const b=`${e}.${m}`;return j7(c,b,u[v]??m)});return Array.isArray(t)?h:h[0]}}function V7(e){const{cssVarsRoot:t,theme:r,children:i}=e,s=D.exports.useMemo(()=>e8(r),[r]);return k(c7,{theme:s,children:[k(H7,{root:t},void 0,!1,{fileName:Wx,lineNumber:82,columnNumber:22},this),i]},void 0,!0,{fileName:Wx,lineNumber:80,columnNumber:26},this)}function H7({root:e=":host, :root"}){const t=[e,"[data-theme]"].join(",");return k(wb,{styles:r=>({[t]:r.__cssVars})},void 0,!1,{fileName:Wx,lineNumber:88,columnNumber:26},this)}N7({name:"StylesContext",errorMessage:"useStyles: `styles` is undefined. Seems you forgot to wrap the components in `<StylesProvider />` "});function W7(){const{colorMode:e}=Nw();return k(wb,{styles:t=>{const r=jF(t,"styles.global"),i=HF(r,{theme:t,colorMode:e});return i?TF(i)(t):void 0}},void 0,!1,{fileName:Wx,lineNumber:104,columnNumber:26},this)}var G7=new Set([...r8,"textStyle","layerStyle","apply","noOfLines","focusBorderColor","errorBorderColor","as","__css","css","sx"]),Y7=new Set(["htmlWidth","htmlHeight","htmlSize"]);function q7(e){return Y7.has(e)||!G7.has(e)}var K7=({baseStyle:e})=>t=>{const{theme:r,css:i,__css:s,sx:c,...u}=t,h=$F(u,(x,C)=>i8(C)),m=HF(e,t),v=Object.assign({},s,m,VF(h),c),b=TF(v)(t.theme);return i?[b,i]:b};function FR(e,t){const{baseStyle:r,...i}=t??{};i.shouldForwardProp||(i.shouldForwardProp=q7);const s=K7({baseStyle:r});return zO(e,i)(s)}function et(e){return D.exports.forwardRef(e)}function GF(e,t={}){const{styleConfig:r,...i}=t,{theme:s,colorMode:c}=WF(),u=jF(s,`components.${e}`),h=r||u,m=Bf({theme:s,colorMode:c},h?.defaultProps??{},VF(S7(i,["children"]))),v=D.exports.useRef({});if(h){const x=p8(h)(m);B7(v.current,x)||(v.current=x)}return v.current}function Qi(e,t={}){return GF(e,t)}function Qo(e,t={}){return GF(e,t)}function X7(){const e=new Map;return new Proxy(FR,{apply(t,r,i){return FR(...i)},get(t,r){return e.has(r)||e.set(r,FR(r)),e.get(r)}})}var Ge=X7();function Z7(e,t){return`${e} returned \`undefined\`. Seems you forgot to wrap component within ${t}`}function Xr(e={}){const{name:t,strict:r=!0,hookName:i="useContext",providerName:s="Provider",errorMessage:c}=e,u=D.exports.createContext(void 0);u.displayName=t;function h(){var m;const v=D.exports.useContext(u);if(!v&&r){const b=new Error(c??Z7(i,s));throw b.name="ContextError",(m=Error.captureStackTrace)==null||m.call(Error,b,h),b}return v}return[u.Provider,h,u]}function Q7(e,t){if(e!=null){if(typeof e=="function"){e(t);return}try{e.current=t}catch{throw new Error(`Cannot assign value '${t}' to ref '${e}'`)}}}function Zi(...e){return t=>{e.forEach(r=>{Q7(r,t)})}}function J7(...e){return D.exports.useMemo(()=>Zi(...e),e)}function II(e){return e.sort((t,r)=>{const i=t.compareDocumentPosition(r);if(i&Node.DOCUMENT_POSITION_FOLLOWING||i&Node.DOCUMENT_POSITION_CONTAINED_BY)return-1;if(i&Node.DOCUMENT_POSITION_PRECEDING||i&Node.DOCUMENT_POSITION_CONTAINS)return 1;if(i&Node.DOCUMENT_POSITION_DISCONNECTED||i&Node.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC)throw Error("Cannot sort the given nodes.");return 0})}var eW=e=>typeof e=="object"&&"nodeType"in e&&e.nodeType===Node.ELEMENT_NODE;function LI(e,t,r){let i=e+1;return r&&i>=t&&(i=0),i}function FI(e,t,r){let i=e-1;return r&&i<0&&(i=t),i}var BO=typeof window<"u"?D.exports.useLayoutEffect:D.exports.useEffect,Gx=e=>e,tW=class{descendants=new Map;register=e=>{if(e!=null)return eW(e)?this.registerNode(e):t=>{this.registerNode(t,e)}};unregister=e=>{this.descendants.delete(e);const t=II(Array.from(this.descendants.keys()));this.assignIndex(t)};destroy=()=>{this.descendants.clear()};assignIndex=e=>{this.descendants.forEach(t=>{const r=e.indexOf(t.node);t.index=r,t.node.dataset.index=t.index.toString()})};count=()=>this.descendants.size;enabledCount=()=>this.enabledValues().length;values=()=>Array.from(this.descendants.values()).sort((t,r)=>t.index-r.index);enabledValues=()=>this.values().filter(e=>!e.disabled);item=e=>{if(this.count()!==0)return this.values()[e]};enabledItem=e=>{if(this.enabledCount()!==0)return this.enabledValues()[e]};first=()=>this.item(0);firstEnabled=()=>this.enabledItem(0);last=()=>this.item(this.descendants.size-1);lastEnabled=()=>{const e=this.enabledValues().length-1;return this.enabledItem(e)};indexOf=e=>{var t;return e?((t=this.descendants.get(e))==null?void 0:t.index)??-1:-1};enabledIndexOf=e=>e==null?-1:this.enabledValues().findIndex(t=>t.node.isSameNode(e));next=(e,t=!0)=>{const r=LI(e,this.count(),t);return this.item(r)};nextEnabled=(e,t=!0)=>{const r=this.item(e);if(!r)return;const i=this.enabledIndexOf(r.node),s=LI(i,this.enabledCount(),t);return this.enabledItem(s)};prev=(e,t=!0)=>{const r=FI(e,this.count()-1,t);return this.item(r)};prevEnabled=(e,t=!0)=>{const r=this.item(e);if(!r)return;const i=this.enabledIndexOf(r.node),s=FI(i,this.enabledCount()-1,t);return this.enabledItem(s)};registerNode=(e,t)=>{if(!e||this.descendants.has(e))return;const r=Array.from(this.descendants.keys()).concat(e),i=II(r);t?.disabled&&(t.disabled=!!t.disabled);const s={node:e,index:-1,...t};this.descendants.set(e,s),this.assignIndex(i)}};function nW(){const e=D.exports.useRef(new tW);return BO(()=>()=>e.current.destroy()),e.current}var[rW,YF]=Xr({name:"DescendantsProvider",errorMessage:"useDescendantsContext must be used within DescendantsProvider"});function aW(e){const t=YF(),[r,i]=D.exports.useState(-1),s=D.exports.useRef(null);BO(()=>()=>{!s.current||t.unregister(s.current)},[]),BO(()=>{if(!s.current)return;const u=Number(s.current.dataset.index);r!=u&&!Number.isNaN(u)&&i(u)});const c=Gx(e?t.register(e):t.register);return{descendants:t,index:r,enabledIndex:t.enabledIndexOf(s.current),register:Zi(c,s)}}function iW(){return[Gx(rW),()=>Gx(YF()),()=>nW(),s=>aW(s)]}var Zr=(...e)=>e.filter(Boolean).join(" "),G1="/Users/spencer/Documents/Code/stable-diffusion/frontend/node_modules/@chakra-ui/icon/dist/index.esm.js",zI={path:k("g",{stroke:"currentColor",strokeWidth:"1.5",children:[k("path",{strokeLinecap:"round",fill:"none",d:"M9,9a3,3,0,1,1,4,2.829,1.5,1.5,0,0,0-1,1.415V14.25"},void 0,!1,{fileName:G1,lineNumber:14,columnNumber:22},globalThis),k("path",{fill:"currentColor",strokeLinecap:"round",d:"M12,17.25a.375.375,0,1,0,.375.375A.375.375,0,0,0,12,17.25h0"},void 0,!1,{fileName:G1,lineNumber:18,columnNumber:23},globalThis),k("circle",{fill:"none",strokeMiterlimit:"10",cx:"12",cy:"12",r:"11.25"},void 0,!1,{fileName:G1,lineNumber:22,columnNumber:23},globalThis)]},void 0,!0,{fileName:G1,lineNumber:11,columnNumber:25},globalThis),viewBox:"0 0 24 24"},Rl=et((e,t)=>{const{as:r,viewBox:i,color:s="currentColor",focusable:c=!1,children:u,className:h,__css:m,...v}=e,b=Zr("chakra-icon",h),x={w:"1em",h:"1em",display:"inline-block",lineHeight:"1em",flexShrink:0,color:s,...m},C={ref:t,focusable:c,className:b,__css:x},_=i??zI.viewBox;if(r&&typeof r!="string")return Ue.createElement(Ge.svg,{as:r,...C,...v});const R=u??zI.path;return Ue.createElement(Ge.svg,{verticalAlign:"middle",viewBox:_,...C,...v},R)});Rl.displayName="Icon";function ki(e,t=[]){const r=D.exports.useRef(e);return D.exports.useEffect(()=>{r.current=e}),D.exports.useCallback((...i)=>{var s;return(s=r.current)==null?void 0:s.call(r,...i)},t)}function oW(e){const{value:t,defaultValue:r,onChange:i,shouldUpdate:s=(C,_)=>C!==_}=e,c=ki(i),u=ki(s),[h,m]=D.exports.useState(r),v=t!==void 0,b=v?t:h,x=D.exports.useCallback(C=>{const R=typeof C=="function"?C(b):C;!u(b,R)||(v||m(R),c(R))},[v,c,b,u]);return[b,x]}const y2=D.exports.createContext({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"}),Fw=D.exports.createContext({});function sW(){return D.exports.useContext(Fw).visualElement}const tv=D.exports.createContext(null),$p=typeof document<"u",Yx=$p?D.exports.useLayoutEffect:D.exports.useEffect,qF=D.exports.createContext({strict:!1});function lW(e,t,r,i){const s=sW(),c=D.exports.useContext(qF),u=D.exports.useContext(tv),h=D.exports.useContext(y2).reducedMotion,m=D.exports.useRef(void 0);i=i||c.renderer,!m.current&&i&&(m.current=i(e,{visualState:t,parent:s,props:r,presenceId:u?u.id:void 0,blockInitialAnimation:u?u.initial===!1:!1,reducedMotionConfig:h}));const v=m.current;return Yx(()=>{v&&v.syncRender()}),D.exports.useEffect(()=>{v&&v.animationState&&v.animationState.animateChanges()}),Yx(()=>()=>v&&v.notifyUnmount(),[]),v}function Am(e){return typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}function uW(e,t,r){return D.exports.useCallback(i=>{i&&e.mount&&e.mount(i),t&&(i?t.mount(i):t.unmount()),r&&(typeof r=="function"?r(i):Am(r)&&(r.current=i))},[t])}function eb(e){return typeof e=="string"||Array.isArray(e)}function zw(e){return typeof e=="object"&&typeof e.start=="function"}const cW=["initial","animate","exit","whileHover","whileDrag","whileTap","whileFocus","whileInView"];function Bw(e){return zw(e.animate)||cW.some(t=>eb(e[t]))}function KF(e){return Boolean(Bw(e)||e.variants)}function fW(e,t){if(Bw(e)){const{initial:r,animate:i}=e;return{initial:r===!1||eb(r)?r:void 0,animate:eb(i)?i:void 0}}return e.inherit!==!1?t:{}}function dW(e){const{initial:t,animate:r}=fW(e,D.exports.useContext(Fw));return D.exports.useMemo(()=>({initial:t,animate:r}),[BI(t),BI(r)])}function BI(e){return Array.isArray(e)?e.join(" "):e}const ac=e=>({isEnabled:t=>e.some(r=>!!t[r])}),tb={measureLayout:ac(["layout","layoutId","drag"]),animation:ac(["animate","exit","variants","whileHover","whileTap","whileFocus","whileDrag","whileInView"]),exit:ac(["exit"]),drag:ac(["drag","dragControls"]),focus:ac(["whileFocus"]),hover:ac(["whileHover","onHoverStart","onHoverEnd"]),tap:ac(["whileTap","onTap","onTapStart","onTapCancel"]),pan:ac(["onPan","onPanStart","onPanSessionStart","onPanEnd"]),inView:ac(["whileInView","onViewportEnter","onViewportLeave"])};function pW(e){for(const t in e)t==="projectionNodeConstructor"?tb.projectionNodeConstructor=e[t]:tb[t].Component=e[t]}function Uw(e){const t=D.exports.useRef(null);return t.current===null&&(t.current=e()),t.current}const Iy={hasAnimatedSinceResize:!0,hasEverUpdated:!1};let hW=1;function mW(){return Uw(()=>{if(Iy.hasEverUpdated)return hW++})}const b2=D.exports.createContext({});class vW extends Ue.Component{getSnapshotBeforeUpdate(){const{visualElement:t,props:r}=this.props;return t&&t.setProps(r),null}componentDidUpdate(){}render(){return this.props.children}}const XF=D.exports.createContext({}),gW=Symbol.for("motionComponentSymbol");var UI="/Users/spencer/Documents/Code/stable-diffusion/frontend/node_modules/framer-motion/dist/es/motion/index.mjs";function yW({preloadedFeatures:e,createVisualElement:t,projectionNodeConstructor:r,useRender:i,useVisualState:s,Component:c}){e&&pW(e);function u(m,v){const b={...D.exports.useContext(y2),...m,layoutId:bW(m)},{isStatic:x}=b;let C=null;const _=dW(m),R=x?void 0:mW(),A=s(m,x);if(!x&&$p){_.visualElement=lW(c,A,b,t);const M=D.exports.useContext(qF).strict,j=D.exports.useContext(XF);_.visualElement&&(C=_.visualElement.loadFeatures(b,M,e,R,r||tb.projectionNodeConstructor,j))}return k(vW,{visualElement:_.visualElement,props:b,children:[C,k(Fw.Provider,{value:_,children:i(c,m,R,uW(A,_.visualElement,v),A,x,_.visualElement)},void 0,!1,{fileName:UI,lineNumber:81,columnNumber:13},this)]},void 0,!0,{fileName:UI,lineNumber:79,columnNumber:17},this)}const h=D.exports.forwardRef(u);return h[gW]=c,h}function bW({layoutId:e}){const t=D.exports.useContext(b2).id;return t&&e!==void 0?t+"-"+e:e}function SW(e){function t(i,s={}){return yW(e(i,s))}if(typeof Proxy>"u")return t;const r=new Map;return new Proxy(t,{get:(i,s)=>(r.has(s)||r.set(s,t(s)),r.get(s))})}const xW=["animate","circle","defs","desc","ellipse","g","image","line","filter","marker","mask","metadata","path","pattern","polygon","polyline","rect","stop","svg","switch","symbol","text","tspan","use","view"];function S2(e){return typeof e!="string"||e.includes("-")?!1:!!(xW.indexOf(e)>-1||/[A-Z]/.test(e))}const qx={};function wW(e){Object.assign(qx,e)}const Kx=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],_b=new Set(Kx);function ZF(e,{layout:t,layoutId:r}){return _b.has(e)||e.startsWith("origin")||(t||r!==void 0)&&(!!qx[e]||e==="opacity")}const mu=e=>!!e?.getVelocity,CW={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},_W=(e,t)=>Kx.indexOf(e)-Kx.indexOf(t);function EW({transform:e,transformKeys:t},{enableHardwareAcceleration:r=!0,allowTransformNone:i=!0},s,c){let u="";t.sort(_W);for(const h of t)u+=`${CW[h]||h}(${e[h]}) `;return r&&!e.z&&(u+="translateZ(0)"),u=u.trim(),c?u=c(e,s?"":u):i&&s&&(u="none"),u}function QF(e){return e.startsWith("--")}const TW=(e,t)=>t&&typeof e=="number"?t.transform(e):e,JF=(e,t)=>r=>Math.max(Math.min(r,t),e),Ly=e=>e%1?Number(e.toFixed(5)):e,nb=/(-)?([\d]*\.?[\d])+/g,UO=/(#[0-9a-f]{6}|#[0-9a-f]{3}|#(?:[0-9a-f]{2}){2,4}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))/gi,NW=/^(#[0-9a-f]{3}|#(?:[0-9a-f]{2}){2,4}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))$/i;function Eb(e){return typeof e=="string"}const Vp={test:e=>typeof e=="number",parse:parseFloat,transform:e=>e},Fy=Object.assign(Object.assign({},Vp),{transform:JF(0,1)}),Y1=Object.assign(Object.assign({},Vp),{default:1}),Tb=e=>({test:t=>Eb(t)&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),Cf=Tb("deg"),cu=Tb("%"),Wt=Tb("px"),RW=Tb("vh"),OW=Tb("vw"),jI=Object.assign(Object.assign({},cu),{parse:e=>cu.parse(e)/100,transform:e=>cu.transform(e*100)}),x2=(e,t)=>r=>Boolean(Eb(r)&&NW.test(r)&&r.startsWith(e)||t&&Object.prototype.hasOwnProperty.call(r,t)),e4=(e,t,r)=>i=>{if(!Eb(i))return i;const[s,c,u,h]=i.match(nb);return{[e]:parseFloat(s),[t]:parseFloat(c),[r]:parseFloat(u),alpha:h!==void 0?parseFloat(h):1}},Tp={test:x2("hsl","hue"),parse:e4("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:r,alpha:i=1})=>"hsla("+Math.round(e)+", "+cu.transform(Ly(t))+", "+cu.transform(Ly(r))+", "+Ly(Fy.transform(i))+")"},AW=JF(0,255),zR=Object.assign(Object.assign({},Vp),{transform:e=>Math.round(AW(e))}),kf={test:x2("rgb","red"),parse:e4("red","green","blue"),transform:({red:e,green:t,blue:r,alpha:i=1})=>"rgba("+zR.transform(e)+", "+zR.transform(t)+", "+zR.transform(r)+", "+Ly(Fy.transform(i))+")"};function kW(e){let t="",r="",i="",s="";return e.length>5?(t=e.substr(1,2),r=e.substr(3,2),i=e.substr(5,2),s=e.substr(7,2)):(t=e.substr(1,1),r=e.substr(2,1),i=e.substr(3,1),s=e.substr(4,1),t+=t,r+=r,i+=i,s+=s),{red:parseInt(t,16),green:parseInt(r,16),blue:parseInt(i,16),alpha:s?parseInt(s,16)/255:1}}const jO={test:x2("#"),parse:kW,transform:kf.transform},Ki={test:e=>kf.test(e)||jO.test(e)||Tp.test(e),parse:e=>kf.test(e)?kf.parse(e):Tp.test(e)?Tp.parse(e):jO.parse(e),transform:e=>Eb(e)?e:e.hasOwnProperty("red")?kf.transform(e):Tp.transform(e)},t4="${c}",n4="${n}";function DW(e){var t,r,i,s;return isNaN(e)&&Eb(e)&&((r=(t=e.match(nb))===null||t===void 0?void 0:t.length)!==null&&r!==void 0?r:0)+((s=(i=e.match(UO))===null||i===void 0?void 0:i.length)!==null&&s!==void 0?s:0)>0}function r4(e){typeof e=="number"&&(e=`${e}`);const t=[];let r=0;const i=e.match(UO);i&&(r=i.length,e=e.replace(UO,t4),t.push(...i.map(Ki.parse)));const s=e.match(nb);return s&&(e=e.replace(nb,n4),t.push(...s.map(Vp.parse))),{values:t,numColors:r,tokenised:e}}function a4(e){return r4(e).values}function i4(e){const{values:t,numColors:r,tokenised:i}=r4(e),s=t.length;return c=>{let u=i;for(let h=0;h<s;h++)u=u.replace(h<r?t4:n4,h<r?Ki.transform(c[h]):Ly(c[h]));return u}}const PW=e=>typeof e=="number"?0:e;function MW(e){const t=a4(e);return i4(e)(t.map(PW))}const pc={test:DW,parse:a4,createTransformer:i4,getAnimatableNone:MW},IW=new Set(["brightness","contrast","saturate","opacity"]);function LW(e){let[t,r]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;const[i]=r.match(nb)||[];if(!i)return e;const s=r.replace(i,"");let c=IW.has(t)?1:0;return i!==r&&(c*=100),t+"("+c+s+")"}const FW=/([a-z-]*)\(.*?\)/g,$O=Object.assign(Object.assign({},pc),{getAnimatableNone:e=>{const t=e.match(FW);return t?t.map(LW).join(" "):e}}),$I={...Vp,transform:Math.round},o4={borderWidth:Wt,borderTopWidth:Wt,borderRightWidth:Wt,borderBottomWidth:Wt,borderLeftWidth:Wt,borderRadius:Wt,radius:Wt,borderTopLeftRadius:Wt,borderTopRightRadius:Wt,borderBottomRightRadius:Wt,borderBottomLeftRadius:Wt,width:Wt,maxWidth:Wt,height:Wt,maxHeight:Wt,size:Wt,top:Wt,right:Wt,bottom:Wt,left:Wt,padding:Wt,paddingTop:Wt,paddingRight:Wt,paddingBottom:Wt,paddingLeft:Wt,margin:Wt,marginTop:Wt,marginRight:Wt,marginBottom:Wt,marginLeft:Wt,rotate:Cf,rotateX:Cf,rotateY:Cf,rotateZ:Cf,scale:Y1,scaleX:Y1,scaleY:Y1,scaleZ:Y1,skew:Cf,skewX:Cf,skewY:Cf,distance:Wt,translateX:Wt,translateY:Wt,translateZ:Wt,x:Wt,y:Wt,z:Wt,perspective:Wt,transformPerspective:Wt,opacity:Fy,originX:jI,originY:jI,originZ:Wt,zIndex:$I,fillOpacity:Fy,strokeOpacity:Fy,numOctaves:$I};function w2(e,t,r,i){const{style:s,vars:c,transform:u,transformKeys:h,transformOrigin:m}=e;h.length=0;let v=!1,b=!1,x=!0;for(const C in t){const _=t[C];if(QF(C)){c[C]=_;continue}const R=o4[C],A=TW(_,R);if(_b.has(C)){if(v=!0,u[C]=A,h.push(C),!x)continue;_!==(R.default||0)&&(x=!1)}else C.startsWith("origin")?(b=!0,m[C]=A):s[C]=A}if(v||i?s.transform=EW(e,r,x,i):!t.transform&&s.transform&&(s.transform="none"),b){const{originX:C="50%",originY:_="50%",originZ:R=0}=m;s.transformOrigin=`${C} ${_} ${R}`}}const C2=()=>({style:{},transform:{},transformKeys:[],transformOrigin:{},vars:{}});function s4(e,t,r){for(const i in t)!mu(t[i])&&!ZF(i,r)&&(e[i]=t[i])}function zW({transformTemplate:e},t,r){return D.exports.useMemo(()=>{const i=C2();return w2(i,t,{enableHardwareAcceleration:!r},e),Object.assign({},i.vars,i.style)},[t])}function BW(e,t,r){const i=e.style||{},s={};return s4(s,i,e),Object.assign(s,zW(e,t,r)),e.transformValues?e.transformValues(s):s}function UW(e,t,r){const i={},s=BW(e,t,r);return e.drag&&e.dragListener!==!1&&(i.draggable=!1,s.userSelect=s.WebkitUserSelect=s.WebkitTouchCallout="none",s.touchAction=e.drag===!0?"none":`pan-${e.drag==="x"?"y":"x"}`),i.style=s,i}const jW=["animate","exit","variants","whileHover","whileTap","whileFocus","whileDrag","whileInView"],$W=["whileTap","onTap","onTapStart","onTapCancel"],VW=["onPan","onPanStart","onPanSessionStart","onPanEnd"],HW=["whileInView","onViewportEnter","onViewportLeave","viewport"],WW=new Set(["initial","style","variants","transition","transformTemplate","transformValues","custom","inherit","layout","layoutId","layoutDependency","onLayoutAnimationStart","onLayoutAnimationComplete","onLayoutMeasure","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","drag","dragControls","dragListener","dragConstraints","dragDirectionLock","dragSnapToOrigin","_dragX","_dragY","dragElastic","dragMomentum","dragPropagation","dragTransition","onHoverStart","onHoverEnd","layoutScroll",...HW,...$W,...jW,...VW]);function Xx(e){return WW.has(e)}let l4=e=>!Xx(e);function GW(e){!e||(l4=t=>t.startsWith("on")?!Xx(t):e(t))}try{GW(require("@emotion/is-prop-valid").default)}catch{}function YW(e,t,r){const i={};for(const s in e)(l4(s)||r===!0&&Xx(s)||!t&&!Xx(s)||e.draggable&&s.startsWith("onDrag"))&&(i[s]=e[s]);return i}function VI(e,t,r){return typeof e=="string"?e:Wt.transform(t+r*e)}function qW(e,t,r){const i=VI(t,e.x,e.width),s=VI(r,e.y,e.height);return`${i} ${s}`}const KW={offset:"stroke-dashoffset",array:"stroke-dasharray"},XW={offset:"strokeDashoffset",array:"strokeDasharray"};function ZW(e,t,r=1,i=0,s=!0){e.pathLength=1;const c=s?KW:XW;e[c.offset]=Wt.transform(-i);const u=Wt.transform(t),h=Wt.transform(r);e[c.array]=`${u} ${h}`}function _2(e,{attrX:t,attrY:r,originX:i,originY:s,pathLength:c,pathSpacing:u=1,pathOffset:h=0,...m},v,b){w2(e,m,v,b),e.attrs=e.style,e.style={};const{attrs:x,style:C,dimensions:_}=e;x.transform&&(_&&(C.transform=x.transform),delete x.transform),_&&(i!==void 0||s!==void 0||C.transform)&&(C.transformOrigin=qW(_,i!==void 0?i:.5,s!==void 0?s:.5)),t!==void 0&&(x.x=t),r!==void 0&&(x.y=r),c!==void 0&&ZW(x,c,u,h,!1)}const u4=()=>({...C2(),attrs:{}});function QW(e,t){const r=D.exports.useMemo(()=>{const i=u4();return _2(i,t,{enableHardwareAcceleration:!1},e.transformTemplate),{...i.attrs,style:{...i.style}}},[t]);if(e.style){const i={};s4(i,e.style,e),r.style={...i,...r.style}}return r}function JW(e=!1){return(r,i,s,c,{latestValues:u},h)=>{const v=(S2(r)?QW:UW)(i,u,h),x={...YW(i,typeof r=="string",e),...v,ref:c};return s&&(x["data-projection-id"]=s),D.exports.createElement(r,x)}}const c4=e=>e.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase();function f4(e,{style:t,vars:r},i,s){Object.assign(e.style,t,s&&s.getProjectionStyles(i));for(const c in r)e.style.setProperty(c,r[c])}const d4=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength"]);function p4(e,t,r,i){f4(e,t,void 0,i);for(const s in t.attrs)e.setAttribute(d4.has(s)?s:c4(s),t.attrs[s])}function E2(e){const{style:t}=e,r={};for(const i in t)(mu(t[i])||ZF(i,e))&&(r[i]=t[i]);return r}function h4(e){const t=E2(e);for(const r in e)if(mu(e[r])){const i=r==="x"||r==="y"?"attr"+r.toUpperCase():r;t[i]=e[r]}return t}function m4(e,t,r,i={},s={}){return typeof t=="function"&&(t=t(r!==void 0?r:e.custom,i,s)),typeof t=="string"&&(t=e.variants&&e.variants[t]),typeof t=="function"&&(t=t(r!==void 0?r:e.custom,i,s)),t}const rb=e=>Array.isArray(e),eG=e=>Boolean(e&&typeof e=="object"&&e.mix&&e.toValue),v4=e=>rb(e)?e[e.length-1]||0:e;function Ex(e){const t=mu(e)?e.get():e;return eG(t)?t.toValue():t}function tG({scrapeMotionValuesFromProps:e,createRenderState:t,onMount:r},i,s,c){const u={latestValues:nG(i,s,c,e),renderState:t()};return r&&(u.mount=h=>r(i,h,u)),u}const g4=e=>(t,r)=>{const i=D.exports.useContext(Fw),s=D.exports.useContext(tv),c=()=>tG(e,t,i,s);return r?c():Uw(c)};function nG(e,t,r,i){const s={},c=i(e);for(const C in c)s[C]=Ex(c[C]);let{initial:u,animate:h}=e;const m=Bw(e),v=KF(e);t&&v&&!m&&e.inherit!==!1&&(u===void 0&&(u=t.initial),h===void 0&&(h=t.animate));let b=r?r.initial===!1:!1;b=b||u===!1;const x=b?h:u;return x&&typeof x!="boolean"&&!zw(x)&&(Array.isArray(x)?x:[x]).forEach(_=>{const R=m4(e,_);if(!R)return;const{transitionEnd:A,transition:M,...j}=R;for(const I in j){let z=j[I];if(Array.isArray(z)){const B=b?z.length-1:0;z=z[B]}z!==null&&(s[I]=z)}for(const I in A)s[I]=A[I]}),s}const rG={useVisualState:g4({scrapeMotionValuesFromProps:h4,createRenderState:u4,onMount:(e,t,{renderState:r,latestValues:i})=>{try{r.dimensions=typeof t.getBBox=="function"?t.getBBox():t.getBoundingClientRect()}catch{r.dimensions={x:0,y:0,width:0,height:0}}_2(r,i,{enableHardwareAcceleration:!1},e.transformTemplate),p4(t,r)}})},aG={useVisualState:g4({scrapeMotionValuesFromProps:E2,createRenderState:C2})};function iG(e,{forwardMotionProps:t=!1},r,i,s){return{...S2(e)?rG:aG,preloadedFeatures:r,useRender:JW(t),createVisualElement:i,projectionNodeConstructor:s,Component:e}}var xr;(function(e){e.Animate="animate",e.Hover="whileHover",e.Tap="whileTap",e.Drag="whileDrag",e.Focus="whileFocus",e.InView="whileInView",e.Exit="exit"})(xr||(xr={}));function jw(e,t,r,i={passive:!0}){return e.addEventListener(t,r,i),()=>e.removeEventListener(t,r)}function VO(e,t,r,i){D.exports.useEffect(()=>{const s=e.current;if(r&&s)return jw(s,t,r,i)},[e,t,r,i])}function oG({whileFocus:e,visualElement:t}){const{animationState:r}=t,i=()=>{r&&r.setActive(xr.Focus,!0)},s=()=>{r&&r.setActive(xr.Focus,!1)};VO(t,"focus",e?i:void 0),VO(t,"blur",e?s:void 0)}function y4(e){return typeof PointerEvent<"u"&&e instanceof PointerEvent?e.pointerType==="mouse":e instanceof MouseEvent}function b4(e){return!!e.touches}function sG(e){return t=>{const r=t instanceof MouseEvent;(!r||r&&t.button===0)&&e(t)}}const lG={pageX:0,pageY:0};function uG(e,t="page"){const i=e.touches[0]||e.changedTouches[0]||lG;return{x:i[t+"X"],y:i[t+"Y"]}}function cG(e,t="page"){return{x:e[t+"X"],y:e[t+"Y"]}}function T2(e,t="page"){return{point:b4(e)?uG(e,t):cG(e,t)}}const S4=(e,t=!1)=>{const r=i=>e(i,T2(i));return t?sG(r):r},fG=()=>$p&&window.onpointerdown===null,dG=()=>$p&&window.ontouchstart===null,pG=()=>$p&&window.onmousedown===null,hG={pointerdown:"mousedown",pointermove:"mousemove",pointerup:"mouseup",pointercancel:"mousecancel",pointerover:"mouseover",pointerout:"mouseout",pointerenter:"mouseenter",pointerleave:"mouseleave"},mG={pointerdown:"touchstart",pointermove:"touchmove",pointerup:"touchend",pointercancel:"touchcancel"};function x4(e){return fG()?e:dG()?mG[e]:pG()?hG[e]:e}function Im(e,t,r,i){return jw(e,x4(t),S4(r,t==="pointerdown"),i)}function Zx(e,t,r,i){return VO(e,x4(t),r&&S4(r,t==="pointerdown"),i)}function w4(e){let t=null;return()=>{const r=()=>{t=null};return t===null?(t=e,r):!1}}const HI=w4("dragHorizontal"),WI=w4("dragVertical");function C4(e){let t=!1;if(e==="y")t=WI();else if(e==="x")t=HI();else{const r=HI(),i=WI();r&&i?t=()=>{r(),i()}:(r&&r(),i&&i())}return t}function _4(){const e=C4(!0);return e?(e(),!1):!0}function GI(e,t,r){return(i,s)=>{!y4(i)||_4()||(e.animationState&&e.animationState.setActive(xr.Hover,t),r&&r(i,s))}}function vG({onHoverStart:e,onHoverEnd:t,whileHover:r,visualElement:i}){Zx(i,"pointerenter",e||r?GI(i,!0,e):void 0,{passive:!e}),Zx(i,"pointerleave",t||r?GI(i,!1,t):void 0,{passive:!t})}const E4=(e,t)=>t?e===t?!0:E4(e,t.parentElement):!1;function N2(e){return D.exports.useEffect(()=>()=>e(),[])}var ou=function(){return ou=Object.assign||function(t){for(var r,i=1,s=arguments.length;i<s;i++){r=arguments[i];for(var c in r)Object.prototype.hasOwnProperty.call(r,c)&&(t[c]=r[c])}return t},ou.apply(this,arguments)};function $w(e,t){var r={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(r[i]=e[i]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var s=0,i=Object.getOwnPropertySymbols(e);s<i.length;s++)t.indexOf(i[s])<0&&Object.prototype.propertyIsEnumerable.call(e,i[s])&&(r[i[s]]=e[i[s]]);return r}function nv(e,t,r,i){function s(c){return c instanceof r?c:new r(function(u){u(c)})}return new(r||(r=Promise))(function(c,u){function h(b){try{v(i.next(b))}catch(x){u(x)}}function m(b){try{v(i.throw(b))}catch(x){u(x)}}function v(b){b.done?c(b.value):s(b.value).then(h,m)}v((i=i.apply(e,t||[])).next())})}function rv(e,t){var r={label:0,sent:function(){if(c[0]&1)throw c[1];return c[1]},trys:[],ops:[]},i,s,c,u;return u={next:h(0),throw:h(1),return:h(2)},typeof Symbol=="function"&&(u[Symbol.iterator]=function(){return this}),u;function h(v){return function(b){return m([v,b])}}function m(v){if(i)throw new TypeError("Generator is already executing.");for(;r;)try{if(i=1,s&&(c=v[0]&2?s.return:v[0]?s.throw||((c=s.return)&&c.call(s),0):s.next)&&!(c=c.call(s,v[1])).done)return c;switch(s=0,c&&(v=[v[0]&2,c.value]),v[0]){case 0:case 1:c=v;break;case 4:return r.label++,{value:v[1],done:!1};case 5:r.label++,s=v[1],v=[0];continue;case 7:v=r.ops.pop(),r.trys.pop();continue;default:if(c=r.trys,!(c=c.length>0&&c[c.length-1])&&(v[0]===6||v[0]===2)){r=0;continue}if(v[0]===3&&(!c||v[1]>c[0]&&v[1]<c[3])){r.label=v[1];break}if(v[0]===6&&r.label<c[1]){r.label=c[1],c=v;break}if(c&&r.label<c[2]){r.label=c[2],r.ops.push(v);break}c[2]&&r.ops.pop(),r.trys.pop();continue}v=t.call(e,r)}catch(b){v=[6,b],s=0}finally{i=c=0}if(v[0]&5)throw v[1];return{value:v[0]?v[1]:void 0,done:!0}}}function YI(e,t){var r=typeof Symbol=="function"&&e[Symbol.iterator];if(!r)return e;var i=r.call(e),s,c=[],u;try{for(;(t===void 0||t-- >0)&&!(s=i.next()).done;)c.push(s.value)}catch(h){u={error:h}}finally{try{s&&!s.done&&(r=i.return)&&r.call(i)}finally{if(u)throw u.error}}return c}function HO(e,t,r){if(r||arguments.length===2)for(var i=0,s=t.length,c;i<s;i++)(c||!(i in t))&&(c||(c=Array.prototype.slice.call(t,0,i)),c[i]=t[i]);return e.concat(c||Array.prototype.slice.call(t))}var Nb=function(){},Ms=function(){};Nb=function(e,t){!e&&typeof console<"u"&&console.warn(t)},Ms=function(e,t){if(!e)throw new Error(t)};const Qx=(e,t,r)=>Math.min(Math.max(r,e),t),BR=.001,gG=.01,qI=10,yG=.05,bG=1;function SG({duration:e=800,bounce:t=.25,velocity:r=0,mass:i=1}){let s,c;Nb(e<=qI*1e3,"Spring duration must be 10 seconds or less");let u=1-t;u=Qx(yG,bG,u),e=Qx(gG,qI,e/1e3),u<1?(s=v=>{const b=v*u,x=b*e,C=b-r,_=WO(v,u),R=Math.exp(-x);return BR-C/_*R},c=v=>{const x=v*u*e,C=x*r+r,_=Math.pow(u,2)*Math.pow(v,2)*e,R=Math.exp(-x),A=WO(Math.pow(v,2),u);return(-s(v)+BR>0?-1:1)*((C-_)*R)/A}):(s=v=>{const b=Math.exp(-v*e),x=(v-r)*e+1;return-BR+b*x},c=v=>{const b=Math.exp(-v*e),x=(r-v)*(e*e);return b*x});const h=5/e,m=wG(s,c,h);if(e=e*1e3,isNaN(m))return{stiffness:100,damping:10,duration:e};{const v=Math.pow(m,2)*i;return{stiffness:v,damping:u*2*Math.sqrt(i*v),duration:e}}}const xG=12;function wG(e,t,r){let i=r;for(let s=1;s<xG;s++)i=i-e(i)/t(i);return i}function WO(e,t){return e*Math.sqrt(1-t*t)}const CG=["duration","bounce"],_G=["stiffness","damping","mass"];function KI(e,t){return t.some(r=>e[r]!==void 0)}function EG(e){let t=Object.assign({velocity:0,stiffness:100,damping:10,mass:1,isResolvedFromDuration:!1},e);if(!KI(e,_G)&&KI(e,CG)){const r=SG(e);t=Object.assign(Object.assign(Object.assign({},t),r),{velocity:0,mass:1}),t.isResolvedFromDuration=!0}return t}function R2(e){var{from:t=0,to:r=1,restSpeed:i=2,restDelta:s}=e,c=$w(e,["from","to","restSpeed","restDelta"]);const u={done:!1,value:t};let{stiffness:h,damping:m,mass:v,velocity:b,duration:x,isResolvedFromDuration:C}=EG(c),_=XI,R=XI;function A(){const M=b?-(b/1e3):0,j=r-t,I=m/(2*Math.sqrt(h*v)),z=Math.sqrt(h/v)/1e3;if(s===void 0&&(s=Math.min(Math.abs(r-t)/100,.4)),I<1){const B=WO(z,I);_=$=>{const K=Math.exp(-I*z*$);return r-K*((M+I*z*j)/B*Math.sin(B*$)+j*Math.cos(B*$))},R=$=>{const K=Math.exp(-I*z*$);return I*z*K*(Math.sin(B*$)*(M+I*z*j)/B+j*Math.cos(B*$))-K*(Math.cos(B*$)*(M+I*z*j)-B*j*Math.sin(B*$))}}else if(I===1)_=B=>r-Math.exp(-z*B)*(j+(M+z*j)*B);else{const B=z*Math.sqrt(I*I-1);_=$=>{const K=Math.exp(-I*z*$),X=Math.min(B*$,300);return r-K*((M+I*z*j)*Math.sinh(X)+B*j*Math.cosh(X))/B}}}return A(),{next:M=>{const j=_(M);if(C)u.done=M>=x;else{const I=R(M)*1e3,z=Math.abs(I)<=i,B=Math.abs(r-j)<=s;u.done=z&&B}return u.value=u.done?r:j,u},flipTarget:()=>{b=-b,[t,r]=[r,t],A()}}}R2.needsInterpolation=(e,t)=>typeof e=="string"||typeof t=="string";const XI=e=>0,ab=(e,t,r)=>{const i=t-e;return i===0?1:(r-e)/i},jr=(e,t,r)=>-r*e+r*t+e;function UR(e,t,r){return r<0&&(r+=1),r>1&&(r-=1),r<1/6?e+(t-e)*6*r:r<1/2?t:r<2/3?e+(t-e)*(2/3-r)*6:e}function ZI({hue:e,saturation:t,lightness:r,alpha:i}){e/=360,t/=100,r/=100;let s=0,c=0,u=0;if(!t)s=c=u=r;else{const h=r<.5?r*(1+t):r+t-r*t,m=2*r-h;s=UR(m,h,e+1/3),c=UR(m,h,e),u=UR(m,h,e-1/3)}return{red:Math.round(s*255),green:Math.round(c*255),blue:Math.round(u*255),alpha:i}}const TG=(e,t,r)=>{const i=e*e,s=t*t;return Math.sqrt(Math.max(0,r*(s-i)+i))},NG=[jO,kf,Tp],QI=e=>NG.find(t=>t.test(e)),JI=e=>`'${e}' is not an animatable color. Use the equivalent color code instead.`,T4=(e,t)=>{let r=QI(e),i=QI(t);Ms(!!r,JI(e)),Ms(!!i,JI(t));let s=r.parse(e),c=i.parse(t);r===Tp&&(s=ZI(s),r=kf),i===Tp&&(c=ZI(c),i=kf);const u=Object.assign({},s);return h=>{for(const m in u)m!=="alpha"&&(u[m]=TG(s[m],c[m],h));return u.alpha=jr(s.alpha,c.alpha,h),r.transform(u)}},GO=e=>typeof e=="number",RG=(e,t)=>r=>t(e(r)),Vw=(...e)=>e.reduce(RG);function N4(e,t){return GO(e)?r=>jr(e,t,r):Ki.test(e)?T4(e,t):O4(e,t)}const R4=(e,t)=>{const r=[...e],i=r.length,s=e.map((c,u)=>N4(c,t[u]));return c=>{for(let u=0;u<i;u++)r[u]=s[u](c);return r}},OG=(e,t)=>{const r=Object.assign(Object.assign({},e),t),i={};for(const s in r)e[s]!==void 0&&t[s]!==void 0&&(i[s]=N4(e[s],t[s]));return s=>{for(const c in i)r[c]=i[c](s);return r}};function eL(e){const t=pc.parse(e),r=t.length;let i=0,s=0,c=0;for(let u=0;u<r;u++)i||typeof t[u]=="number"?i++:t[u].hue!==void 0?c++:s++;return{parsed:t,numNumbers:i,numRGB:s,numHSL:c}}const O4=(e,t)=>{const r=pc.createTransformer(t),i=eL(e),s=eL(t);return i.numHSL===s.numHSL&&i.numRGB===s.numRGB&&i.numNumbers>=s.numNumbers?Vw(R4(i.parsed,s.parsed),r):(Nb(!0,`Complex values '${e}' and '${t}' too different to mix. Ensure all colors are of the same type, and that each contains the same quantity of number and color values. Falling back to instant transition.`),u=>`${u>0?t:e}`)},AG=(e,t)=>r=>jr(e,t,r);function kG(e){if(typeof e=="number")return AG;if(typeof e=="string")return Ki.test(e)?T4:O4;if(Array.isArray(e))return R4;if(typeof e=="object")return OG}function DG(e,t,r){const i=[],s=r||kG(e[0]),c=e.length-1;for(let u=0;u<c;u++){let h=s(e[u],e[u+1]);if(t){const m=Array.isArray(t)?t[u]:t;h=Vw(m,h)}i.push(h)}return i}function PG([e,t],[r]){return i=>r(ab(e,t,i))}function MG(e,t){const r=e.length,i=r-1;return s=>{let c=0,u=!1;if(s<=e[0]?u=!0:s>=e[i]&&(c=i-1,u=!0),!u){let m=1;for(;m<r&&!(e[m]>s||m===i);m++);c=m-1}const h=ab(e[c],e[c+1],s);return t[c](h)}}function A4(e,t,{clamp:r=!0,ease:i,mixer:s}={}){const c=e.length;Ms(c===t.length,"Both input and output ranges must be the same length"),Ms(!i||!Array.isArray(i)||i.length===c-1,"Array of easing functions must be of length `input.length - 1`, as it applies to the transitions **between** the defined values."),e[0]>e[c-1]&&(e=[].concat(e),t=[].concat(t),e.reverse(),t.reverse());const u=DG(t,i,s),h=c===2?PG(e,u):MG(e,u);return r?m=>h(Qx(e[0],e[c-1],m)):h}const Hw=e=>t=>1-e(1-t),O2=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,IG=e=>t=>Math.pow(t,e),k4=e=>t=>t*t*((e+1)*t-e),LG=e=>{const t=k4(e);return r=>(r*=2)<1?.5*t(r):.5*(2-Math.pow(2,-10*(r-1)))},D4=1.525,FG=4/11,zG=8/11,BG=9/10,A2=e=>e,k2=IG(2),UG=Hw(k2),P4=O2(k2),M4=e=>1-Math.sin(Math.acos(e)),D2=Hw(M4),jG=O2(D2),P2=k4(D4),$G=Hw(P2),VG=O2(P2),HG=LG(D4),WG=4356/361,GG=35442/1805,YG=16061/1805,Jx=e=>{if(e===1||e===0)return e;const t=e*e;return e<FG?7.5625*t:e<zG?9.075*t-9.9*e+3.4:e<BG?WG*t-GG*e+YG:10.8*e*e-20.52*e+10.72},qG=Hw(Jx),KG=e=>e<.5?.5*(1-Jx(1-e*2)):.5*Jx(e*2-1)+.5;function XG(e,t){return e.map(()=>t||P4).splice(0,e.length-1)}function ZG(e){const t=e.length;return e.map((r,i)=>i!==0?i/(t-1):0)}function QG(e,t){return e.map(r=>r*t)}function Tx({from:e=0,to:t=1,ease:r,offset:i,duration:s=300}){const c={done:!1,value:e},u=Array.isArray(t)?t:[e,t],h=QG(i&&i.length===u.length?i:ZG(u),s);function m(){return A4(h,u,{ease:Array.isArray(r)?r:XG(u,r)})}let v=m();return{next:b=>(c.value=v(b),c.done=b>=s,c),flipTarget:()=>{u.reverse(),v=m()}}}function JG({velocity:e=0,from:t=0,power:r=.8,timeConstant:i=350,restDelta:s=.5,modifyTarget:c}){const u={done:!1,value:t};let h=r*e;const m=t+h,v=c===void 0?m:c(m);return v!==m&&(h=v-t),{next:b=>{const x=-h*Math.exp(-b/i);return u.done=!(x>s||x<-s),u.value=u.done?v:v+x,u},flipTarget:()=>{}}}const tL={keyframes:Tx,spring:R2,decay:JG};function eY(e){if(Array.isArray(e.to))return Tx;if(tL[e.type])return tL[e.type];const t=new Set(Object.keys(e));return t.has("ease")||t.has("duration")&&!t.has("dampingRatio")?Tx:t.has("dampingRatio")||t.has("stiffness")||t.has("mass")||t.has("damping")||t.has("restSpeed")||t.has("restDelta")?R2:Tx}const I4=1/60*1e3,tY=typeof performance<"u"?()=>performance.now():()=>Date.now(),L4=typeof window<"u"?e=>window.requestAnimationFrame(e):e=>setTimeout(()=>e(tY()),I4);function nY(e){let t=[],r=[],i=0,s=!1,c=!1;const u=new WeakSet,h={schedule:(m,v=!1,b=!1)=>{const x=b&&s,C=x?t:r;return v&&u.add(m),C.indexOf(m)===-1&&(C.push(m),x&&s&&(i=t.length)),m},cancel:m=>{const v=r.indexOf(m);v!==-1&&r.splice(v,1),u.delete(m)},process:m=>{if(s){c=!0;return}if(s=!0,[t,r]=[r,t],r.length=0,i=t.length,i)for(let v=0;v<i;v++){const b=t[v];b(m),u.has(b)&&(h.schedule(b),e())}s=!1,c&&(c=!1,h.process(m))}};return h}const rY=40;let YO=!0,ib=!1,qO=!1;const Lm={delta:0,timestamp:0},Rb=["read","update","preRender","render","postRender"],Ww=Rb.reduce((e,t)=>(e[t]=nY(()=>ib=!0),e),{}),aY=Rb.reduce((e,t)=>{const r=Ww[t];return e[t]=(i,s=!1,c=!1)=>(ib||sY(),r.schedule(i,s,c)),e},{}),iY=Rb.reduce((e,t)=>(e[t]=Ww[t].cancel,e),{});Rb.reduce((e,t)=>(e[t]=()=>Ww[t].process(Lm),e),{});const oY=e=>Ww[e].process(Lm),F4=e=>{ib=!1,Lm.delta=YO?I4:Math.max(Math.min(e-Lm.timestamp,rY),1),Lm.timestamp=e,qO=!0,Rb.forEach(oY),qO=!1,ib&&(YO=!1,L4(F4))},sY=()=>{ib=!0,YO=!0,qO||L4(F4)},lY=()=>Lm;function z4(e,t,r=0){return e-t-r}function uY(e,t,r=0,i=!0){return i?z4(t+-e,t,r):t-(e-t)+r}function cY(e,t,r,i){return i?e>=t+r:e<=-r}const fY=e=>{const t=({delta:r})=>e(r);return{start:()=>aY.update(t,!0),stop:()=>iY.update(t)}};function B4(e){var t,r,{from:i,autoplay:s=!0,driver:c=fY,elapsed:u=0,repeat:h=0,repeatType:m="loop",repeatDelay:v=0,onPlay:b,onStop:x,onComplete:C,onRepeat:_,onUpdate:R}=e,A=$w(e,["from","autoplay","driver","elapsed","repeat","repeatType","repeatDelay","onPlay","onStop","onComplete","onRepeat","onUpdate"]);let{to:M}=A,j,I=0,z=A.duration,B,$=!1,K=!0,X;const de=eY(A);!((r=(t=de).needsInterpolation)===null||r===void 0)&&r.call(t,i,M)&&(X=A4([0,100],[i,M],{clamp:!1}),i=0,M=100);const ve=de(Object.assign(Object.assign({},A),{from:i,to:M}));function se(){I++,m==="reverse"?(K=I%2===0,u=uY(u,z,v,K)):(u=z4(u,z,v),m==="mirror"&&ve.flipTarget()),$=!1,_&&_()}function be(){j.stop(),C&&C()}function Xe(ce){if(K||(ce=-ce),u+=ce,!$){const Re=ve.next(Math.max(0,u));B=Re.value,X&&(B=X(B)),$=K?Re.done:u<=0}R?.(B),$&&(I===0&&(z??(z=u)),I<h?cY(u,z,v,K)&&se():be())}function ie(){b?.(),j=c(Xe),j.start()}return s&&ie(),{stop:()=>{x?.(),j.stop()}}}function U4(e,t){return t?e*(1e3/t):0}function dY({from:e=0,velocity:t=0,min:r,max:i,power:s=.8,timeConstant:c=750,bounceStiffness:u=500,bounceDamping:h=10,restDelta:m=1,modifyTarget:v,driver:b,onUpdate:x,onComplete:C,onStop:_}){let R;function A(z){return r!==void 0&&z<r||i!==void 0&&z>i}function M(z){return r===void 0?i:i===void 0||Math.abs(r-z)<Math.abs(i-z)?r:i}function j(z){R?.stop(),R=B4(Object.assign(Object.assign({},z),{driver:b,onUpdate:B=>{var $;x?.(B),($=z.onUpdate)===null||$===void 0||$.call(z,B)},onComplete:C,onStop:_}))}function I(z){j(Object.assign({type:"spring",stiffness:u,damping:h,restDelta:m},z))}if(A(e))I({from:e,velocity:t,to:M(e)});else{let z=s*t+e;typeof v<"u"&&(z=v(z));const B=M(z),$=B===r?-1:1;let K,X;const de=ve=>{K=X,X=ve,t=U4(ve-K,lY().delta),($===1&&ve>B||$===-1&&ve<B)&&I({from:ve,to:B,velocity:t})};j({type:"decay",from:e,velocity:t,timeConstant:c,power:s,restDelta:m,modifyTarget:v,onUpdate:A(z)?de:void 0})}return{stop:()=>R?.stop()}}const KO=e=>e.hasOwnProperty("x")&&e.hasOwnProperty("y"),nL=e=>KO(e)&&e.hasOwnProperty("z"),q1=(e,t)=>Math.abs(e-t);function M2(e,t){if(GO(e)&&GO(t))return q1(e,t);if(KO(e)&&KO(t)){const r=q1(e.x,t.x),i=q1(e.y,t.y),s=nL(e)&&nL(t)?q1(e.z,t.z):0;return Math.sqrt(Math.pow(r,2)+Math.pow(i,2)+Math.pow(s,2))}}const j4=(e,t)=>1-3*t+3*e,$4=(e,t)=>3*t-6*e,V4=e=>3*e,ew=(e,t,r)=>((j4(t,r)*e+$4(t,r))*e+V4(t))*e,H4=(e,t,r)=>3*j4(t,r)*e*e+2*$4(t,r)*e+V4(t),pY=1e-7,hY=10;function mY(e,t,r,i,s){let c,u,h=0;do u=t+(r-t)/2,c=ew(u,i,s)-e,c>0?r=u:t=u;while(Math.abs(c)>pY&&++h<hY);return u}const vY=8,gY=.001;function yY(e,t,r,i){for(let s=0;s<vY;++s){const c=H4(t,r,i);if(c===0)return t;t-=(ew(t,r,i)-e)/c}return t}const Nx=11,K1=1/(Nx-1);function bY(e,t,r,i){if(e===t&&r===i)return A2;const s=new Float32Array(Nx);for(let u=0;u<Nx;++u)s[u]=ew(u*K1,e,r);function c(u){let h=0,m=1;const v=Nx-1;for(;m!==v&&s[m]<=u;++m)h+=K1;--m;const b=(u-s[m])/(s[m+1]-s[m]),x=h+b*K1,C=H4(x,e,r);return C>=gY?yY(u,x,e,r):C===0?x:mY(u,h,h+K1,e,r)}return u=>u===0||u===1?u:ew(c(u),t,i)}function SY({onTap:e,onTapStart:t,onTapCancel:r,whileTap:i,visualElement:s}){const c=e||t||r||i,u=D.exports.useRef(!1),h=D.exports.useRef(null),m={passive:!(t||e||r||_)};function v(){h.current&&h.current(),h.current=null}function b(){return v(),u.current=!1,s.animationState&&s.animationState.setActive(xr.Tap,!1),!_4()}function x(R,A){!b()||(E4(s.getInstance(),R.target)?e&&e(R,A):r&&r(R,A))}function C(R,A){!b()||r&&r(R,A)}function _(R,A){v(),!u.current&&(u.current=!0,h.current=Vw(Im(window,"pointerup",x,m),Im(window,"pointercancel",C,m)),s.animationState&&s.animationState.setActive(xr.Tap,!0),t&&t(R,A))}Zx(s,"pointerdown",c?_:void 0,m),N2(v)}const xY="production",I2=typeof process>"u"||process.env===void 0?xY:"development",rL=new Set;function L2(e,t,r){e||rL.has(t)||(console.warn(t),r&&console.warn(r),rL.add(t))}const XO=new WeakMap,jR=new WeakMap,wY=e=>{const t=XO.get(e.target);t&&t(e)},CY=e=>{e.forEach(wY)};function _Y({root:e,...t}){const r=e||document;jR.has(r)||jR.set(r,{});const i=jR.get(r),s=JSON.stringify(t);return i[s]||(i[s]=new IntersectionObserver(CY,{root:e,...t})),i[s]}function EY(e,t,r){const i=_Y(t);return XO.set(e,r),i.observe(e),()=>{XO.delete(e),i.unobserve(e)}}function TY({visualElement:e,whileInView:t,onViewportEnter:r,onViewportLeave:i,viewport:s={}}){const c=D.exports.useRef({hasEnteredView:!1,isInView:!1});let u=Boolean(t||r||i);s.once&&c.current.hasEnteredView&&(u=!1),(typeof IntersectionObserver>"u"?OY:RY)(u,c.current,e,s)}const NY={some:0,all:1};function RY(e,t,r,{root:i,margin:s,amount:c="some",once:u}){D.exports.useEffect(()=>{if(!e)return;const h={root:i?.current,rootMargin:s,threshold:typeof c=="number"?c:NY[c]},m=v=>{const{isIntersecting:b}=v;if(t.isInView===b||(t.isInView=b,u&&!b&&t.hasEnteredView))return;b&&(t.hasEnteredView=!0),r.animationState&&r.animationState.setActive(xr.InView,b);const x=r.getProps(),C=b?x.onViewportEnter:x.onViewportLeave;C&&C(v)};return EY(r.getInstance(),h,m)},[e,i,s,c])}function OY(e,t,r,{fallback:i=!0}){D.exports.useEffect(()=>{!e||!i||(I2!=="production"&&L2(!1,"IntersectionObserver not available on this device. whileInView animations will trigger on mount."),requestAnimationFrame(()=>{t.hasEnteredView=!0;const{onViewportEnter:s}=r.getProps();s&&s(null),r.animationState&&r.animationState.setActive(xr.InView,!0)}))},[e])}const Df=e=>t=>(e(t),null),AY={inView:Df(TY),tap:Df(SY),focus:Df(oG),hover:Df(vG)};function F2(){const e=D.exports.useContext(tv);if(e===null)return[!0,null];const{isPresent:t,onExitComplete:r,register:i}=e,s=D.exports.useId();return D.exports.useEffect(()=>i(s),[]),!t&&r?[!1,()=>r&&r(s)]:[!0]}function kY(){return DY(D.exports.useContext(tv))}function DY(e){return e===null?!0:e.isPresent}function W4(e,t){if(!Array.isArray(t))return!1;const r=t.length;if(r!==e.length)return!1;for(let i=0;i<r;i++)if(t[i]!==e[i])return!1;return!0}const tw=e=>e*1e3,aL={linear:A2,easeIn:k2,easeInOut:P4,easeOut:UG,circIn:M4,circInOut:jG,circOut:D2,backIn:P2,backInOut:VG,backOut:$G,anticipate:HG,bounceIn:qG,bounceInOut:KG,bounceOut:Jx},iL=e=>{if(Array.isArray(e)){Ms(e.length===4,"Cubic bezier arrays must contain four numerical values.");const[t,r,i,s]=e;return bY(t,r,i,s)}else if(typeof e=="string")return Ms(aL[e]!==void 0,`Invalid easing type '${e}'`),aL[e];return e},PY=e=>Array.isArray(e)&&typeof e[0]!="number",oL=(e,t)=>e==="zIndex"?!1:!!(typeof t=="number"||Array.isArray(t)||typeof t=="string"&&pc.test(t)&&!t.startsWith("url(")),dp=()=>({type:"spring",stiffness:500,damping:25,restSpeed:10}),X1=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),$R=()=>({type:"keyframes",ease:"linear",duration:.3}),MY=e=>({type:"keyframes",duration:.8,values:e}),sL={x:dp,y:dp,z:dp,rotate:dp,rotateX:dp,rotateY:dp,rotateZ:dp,scaleX:X1,scaleY:X1,scale:X1,opacity:$R,backgroundColor:$R,color:$R,default:X1},IY=(e,t)=>{let r;return rb(t)?r=MY:r=sL[e]||sL.default,{to:t,...r(t)}},LY={...o4,color:Ki,backgroundColor:Ki,outlineColor:Ki,fill:Ki,stroke:Ki,borderColor:Ki,borderTopColor:Ki,borderRightColor:Ki,borderBottomColor:Ki,borderLeftColor:Ki,filter:$O,WebkitFilter:$O},z2=e=>LY[e];function B2(e,t){var r;let i=z2(e);return i!==$O&&(i=pc),(r=i.getAnimatableNone)===null||r===void 0?void 0:r.call(i,t)}const FY={current:!1};function zY({when:e,delay:t,delayChildren:r,staggerChildren:i,staggerDirection:s,repeat:c,repeatType:u,repeatDelay:h,from:m,...v}){return!!Object.keys(v).length}let lL=!1;function BY({ease:e,times:t,yoyo:r,flip:i,loop:s,...c}){const u={...c};return t&&(u.offset=t),c.duration&&(u.duration=tw(c.duration)),c.repeatDelay&&(u.repeatDelay=tw(c.repeatDelay)),e&&(u.ease=PY(e)?e.map(iL):iL(e)),c.type==="tween"&&(u.type="keyframes"),(r||s||i)&&(Nb(!lL,"yoyo, loop and flip have been removed from the API. Replace with repeat and repeatType options."),lL=!0,r?u.repeatType="reverse":s?u.repeatType="loop":i&&(u.repeatType="mirror"),u.repeat=s||r||i||c.repeat),c.type!=="spring"&&(u.type="keyframes"),u}function UY(e,t){var r,i;return(i=(r=(U2(e,t)||{}).delay)!==null&&r!==void 0?r:e.delay)!==null&&i!==void 0?i:0}function jY(e){return Array.isArray(e.to)&&e.to[0]===null&&(e.to=[...e.to],e.to[0]=e.from),e}function $Y(e,t,r){return Array.isArray(t.to)&&e.duration===void 0&&(e.duration=.8),jY(t),zY(e)||(e={...e,...IY(r,t.to)}),{...t,...BY(e)}}function VY(e,t,r,i,s){const c=U2(i,e)||{};let u=c.from!==void 0?c.from:t.get();const h=oL(e,r);u==="none"&&h&&typeof r=="string"?u=B2(e,r):uL(u)&&typeof r=="string"?u=cL(r):!Array.isArray(r)&&uL(r)&&typeof u=="string"&&(r=cL(u));const m=oL(e,u);Nb(m===h,`You are trying to animate ${e} from "${u}" to "${r}". ${u} is not an animatable value - to enable this animation set ${u} to a value animatable to ${r} via the \`style\` property.`);function v(){const x={from:u,to:r,velocity:t.getVelocity(),onComplete:s,onUpdate:C=>t.set(C)};return c.type==="inertia"||c.type==="decay"?dY({...x,...c}):B4({...$Y(c,x,e),onUpdate:C=>{x.onUpdate(C),c.onUpdate&&c.onUpdate(C)},onComplete:()=>{x.onComplete(),c.onComplete&&c.onComplete()}})}function b(){const x=v4(r);return t.set(x),s(),c.onUpdate&&c.onUpdate(x),c.onComplete&&c.onComplete(),{stop:()=>{}}}return!m||!h||c.type===!1?b:v}function uL(e){return e===0||typeof e=="string"&&parseFloat(e)===0&&e.indexOf(" ")===-1}function cL(e){return typeof e=="number"?0:B2("",e)}function U2(e,t){return e[t]||e.default||e}function j2(e,t,r,i={}){return FY.current&&(i={type:!1}),t.start(s=>{let c,u;const h=VY(e,t,r,i,s),m=UY(i,e),v=()=>u=h();return m?c=window.setTimeout(v,tw(m)):v(),()=>{clearTimeout(c),u&&u.stop()}})}const HY=e=>/^\-?\d*\.?\d+$/.test(e),WY=e=>/^0[^.\s]+$/.test(e),G4=1/60*1e3,GY=typeof performance<"u"?()=>performance.now():()=>Date.now(),Y4=typeof window<"u"?e=>window.requestAnimationFrame(e):e=>setTimeout(()=>e(GY()),G4);function YY(e){let t=[],r=[],i=0,s=!1,c=!1;const u=new WeakSet,h={schedule:(m,v=!1,b=!1)=>{const x=b&&s,C=x?t:r;return v&&u.add(m),C.indexOf(m)===-1&&(C.push(m),x&&s&&(i=t.length)),m},cancel:m=>{const v=r.indexOf(m);v!==-1&&r.splice(v,1),u.delete(m)},process:m=>{if(s){c=!0;return}if(s=!0,[t,r]=[r,t],r.length=0,i=t.length,i)for(let v=0;v<i;v++){const b=t[v];b(m),u.has(b)&&(h.schedule(b),e())}s=!1,c&&(c=!1,h.process(m))}};return h}const qY=40;let ZO=!0,ob=!1,QO=!1;const Fm={delta:0,timestamp:0},Ob=["read","update","preRender","render","postRender"],Gw=Ob.reduce((e,t)=>(e[t]=YY(()=>ob=!0),e),{}),fu=Ob.reduce((e,t)=>{const r=Gw[t];return e[t]=(i,s=!1,c=!1)=>(ob||XY(),r.schedule(i,s,c)),e},{}),sb=Ob.reduce((e,t)=>(e[t]=Gw[t].cancel,e),{}),VR=Ob.reduce((e,t)=>(e[t]=()=>Gw[t].process(Fm),e),{}),KY=e=>Gw[e].process(Fm),q4=e=>{ob=!1,Fm.delta=ZO?G4:Math.max(Math.min(e-Fm.timestamp,qY),1),Fm.timestamp=e,QO=!0,Ob.forEach(KY),QO=!1,ob&&(ZO=!1,Y4(q4))},XY=()=>{ob=!0,ZO=!0,QO||Y4(q4)},JO=()=>Fm;function $2(e,t){e.indexOf(t)===-1&&e.push(t)}function V2(e,t){const r=e.indexOf(t);r>-1&&e.splice(r,1)}class zy{constructor(){this.subscriptions=[]}add(t){return $2(this.subscriptions,t),()=>V2(this.subscriptions,t)}notify(t,r,i){const s=this.subscriptions.length;if(!!s)if(s===1)this.subscriptions[0](t,r,i);else for(let c=0;c<s;c++){const u=this.subscriptions[c];u&&u(t,r,i)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}const ZY=e=>!isNaN(parseFloat(e));class QY{constructor(t){this.version="7.3.5",this.timeDelta=0,this.lastUpdated=0,this.updateSubscribers=new zy,this.velocityUpdateSubscribers=new zy,this.renderSubscribers=new zy,this.canTrackVelocity=!1,this.updateAndNotify=(r,i=!0)=>{this.prev=this.current,this.current=r;const{delta:s,timestamp:c}=JO();this.lastUpdated!==c&&(this.timeDelta=s,this.lastUpdated=c,fu.postRender(this.scheduleVelocityCheck)),this.prev!==this.current&&this.updateSubscribers.notify(this.current),this.velocityUpdateSubscribers.getSize()&&this.velocityUpdateSubscribers.notify(this.getVelocity()),i&&this.renderSubscribers.notify(this.current)},this.scheduleVelocityCheck=()=>fu.postRender(this.velocityCheck),this.velocityCheck=({timestamp:r})=>{r!==this.lastUpdated&&(this.prev=this.current,this.velocityUpdateSubscribers.notify(this.getVelocity()))},this.hasAnimated=!1,this.prev=this.current=t,this.canTrackVelocity=ZY(this.current)}onChange(t){return this.updateSubscribers.add(t)}clearListeners(){this.updateSubscribers.clear()}onRenderRequest(t){return t(this.get()),this.renderSubscribers.add(t)}attach(t){this.passiveEffect=t}set(t,r=!0){!r||!this.passiveEffect?this.updateAndNotify(t,r):this.passiveEffect(t,this.updateAndNotify)}get(){return this.current}getPrevious(){return this.prev}getVelocity(){return this.canTrackVelocity?U4(parseFloat(this.current)-parseFloat(this.prev),this.timeDelta):0}start(t){return this.stop(),new Promise(r=>{this.hasAnimated=!0,this.stopAnimation=t(r)}).then(()=>this.clearAnimation())}stop(){this.stopAnimation&&this.stopAnimation(),this.clearAnimation()}isAnimating(){return!!this.stopAnimation}clearAnimation(){this.stopAnimation=null}destroy(){this.updateSubscribers.clear(),this.renderSubscribers.clear(),this.stop()}}function Wm(e){return new QY(e)}const K4=e=>t=>t.test(e),JY={test:e=>e==="auto",parse:e=>e},X4=[Vp,Wt,cu,Cf,OW,RW,JY],xy=e=>X4.find(K4(e)),eq=[...X4,Ki,pc],tq=e=>eq.find(K4(e));function nq(e){const t={};return e.forEachValue((r,i)=>t[i]=r.get()),t}function rq(e){const t={};return e.forEachValue((r,i)=>t[i]=r.getVelocity()),t}function Yw(e,t,r){const i=e.getProps();return m4(i,t,r!==void 0?r:i.custom,nq(e),rq(e))}function aq(e,t,r){e.hasValue(t)?e.getValue(t).set(r):e.addValue(t,Wm(r))}function iq(e,t){const r=Yw(e,t);let{transitionEnd:i={},transition:s={},...c}=r?e.makeTargetAnimatable(r,!1):{};c={...c,...i};for(const u in c){const h=v4(c[u]);aq(e,u,h)}}function oq(e,t,r){var i,s;const c=Object.keys(t).filter(h=>!e.hasValue(h)),u=c.length;if(!!u)for(let h=0;h<u;h++){const m=c[h],v=t[m];let b=null;Array.isArray(v)&&(b=v[0]),b===null&&(b=(s=(i=r[m])!==null&&i!==void 0?i:e.readValue(m))!==null&&s!==void 0?s:t[m]),b!=null&&(typeof b=="string"&&(HY(b)||WY(b))?b=parseFloat(b):!tq(b)&&pc.test(v)&&(b=B2(m,v)),e.addValue(m,Wm(b)),r[m]===void 0&&(r[m]=b),e.setBaseTarget(m,b))}}function sq(e,t){return t?(t[e]||t.default||t).from:void 0}function lq(e,t,r){var i;const s={};for(const c in e){const u=sq(c,t);s[c]=u!==void 0?u:(i=r.getValue(c))===null||i===void 0?void 0:i.get()}return s}function nw(e){return Boolean(mu(e)&&e.add)}function uq(e,t,r={}){e.notifyAnimationStart(t);let i;if(Array.isArray(t)){const s=t.map(c=>eA(e,c,r));i=Promise.all(s)}else if(typeof t=="string")i=eA(e,t,r);else{const s=typeof t=="function"?Yw(e,t,r.custom):t;i=Z4(e,s,r)}return i.then(()=>e.notifyAnimationComplete(t))}function eA(e,t,r={}){var i;const s=Yw(e,t,r.custom);let{transition:c=e.getDefaultTransition()||{}}=s||{};r.transitionOverride&&(c=r.transitionOverride);const u=s?()=>Z4(e,s,r):()=>Promise.resolve(),h=!((i=e.variantChildren)===null||i===void 0)&&i.size?(v=0)=>{const{delayChildren:b=0,staggerChildren:x,staggerDirection:C}=c;return cq(e,t,b+v,x,C,r)}:()=>Promise.resolve(),{when:m}=c;if(m){const[v,b]=m==="beforeChildren"?[u,h]:[h,u];return v().then(b)}else return Promise.all([u(),h(r.delay)])}function Z4(e,t,{delay:r=0,transitionOverride:i,type:s}={}){var c;let{transition:u=e.getDefaultTransition(),transitionEnd:h,...m}=e.makeTargetAnimatable(t);const v=e.getValue("willChange");i&&(u=i);const b=[],x=s&&((c=e.animationState)===null||c===void 0?void 0:c.getState()[s]);for(const C in m){const _=e.getValue(C),R=m[C];if(!_||R===void 0||x&&dq(x,C))continue;let A={delay:r,...u};e.shouldReduceMotion&&_b.has(C)&&(A={...A,type:!1,delay:0});let M=j2(C,_,R,A);nw(v)&&(v.add(C),M=M.then(()=>v.remove(C))),b.push(M)}return Promise.all(b).then(()=>{h&&iq(e,h)})}function cq(e,t,r=0,i=0,s=1,c){const u=[],h=(e.variantChildren.size-1)*i,m=s===1?(v=0)=>v*i:(v=0)=>h-v*i;return Array.from(e.variantChildren).sort(fq).forEach((v,b)=>{u.push(eA(v,t,{...c,delay:r+m(b)}).then(()=>v.notifyAnimationComplete(t)))}),Promise.all(u)}function fq(e,t){return e.sortNodePosition(t)}function dq({protectedKeys:e,needsAnimating:t},r){const i=e.hasOwnProperty(r)&&t[r]!==!0;return t[r]=!1,i}const H2=[xr.Animate,xr.InView,xr.Focus,xr.Hover,xr.Tap,xr.Drag,xr.Exit],pq=[...H2].reverse(),hq=H2.length;function mq(e){return t=>Promise.all(t.map(({animation:r,options:i})=>uq(e,r,i)))}function vq(e){let t=mq(e);const r=yq();let i=!0;const s=(m,v)=>{const b=Yw(e,v);if(b){const{transition:x,transitionEnd:C,..._}=b;m={...m,..._,...C}}return m};function c(m){t=m(e)}function u(m,v){var b;const x=e.getProps(),C=e.getVariantContext(!0)||{},_=[],R=new Set;let A={},M=1/0;for(let I=0;I<hq;I++){const z=pq[I],B=r[z],$=(b=x[z])!==null&&b!==void 0?b:C[z],K=eb($),X=z===v?B.isActive:null;X===!1&&(M=I);let de=$===C[z]&&$!==x[z]&&K;if(de&&i&&e.manuallyAnimateOnMount&&(de=!1),B.protectedKeys={...A},!B.isActive&&X===null||!$&&!B.prevProp||zw($)||typeof $=="boolean")continue;const ve=gq(B.prevProp,$);let se=ve||z===v&&B.isActive&&!de&&K||I>M&&K;const be=Array.isArray($)?$:[$];let Xe=be.reduce(s,{});X===!1&&(Xe={});const{prevResolvedValues:ie={}}=B,ce={...ie,...Xe},Re=Ce=>{se=!0,R.delete(Ce),B.needsAnimating[Ce]=!0};for(const Ce in ce){const oe=Xe[Ce],Se=ie[Ce];A.hasOwnProperty(Ce)||(oe!==Se?rb(oe)&&rb(Se)?!W4(oe,Se)||ve?Re(Ce):B.protectedKeys[Ce]=!0:oe!==void 0?Re(Ce):R.add(Ce):oe!==void 0&&R.has(Ce)?Re(Ce):B.protectedKeys[Ce]=!0)}B.prevProp=$,B.prevResolvedValues=Xe,B.isActive&&(A={...A,...Xe}),i&&e.blockInitialAnimation&&(se=!1),se&&!de&&_.push(...be.map(Ce=>({animation:Ce,options:{type:z,...m}})))}if(R.size){const I={};R.forEach(z=>{const B=e.getBaseTarget(z);B!==void 0&&(I[z]=B)}),_.push({animation:I})}let j=Boolean(_.length);return i&&x.initial===!1&&!e.manuallyAnimateOnMount&&(j=!1),i=!1,j?t(_):Promise.resolve()}function h(m,v,b){var x;if(r[m].isActive===v)return Promise.resolve();(x=e.variantChildren)===null||x===void 0||x.forEach(_=>{var R;return(R=_.animationState)===null||R===void 0?void 0:R.setActive(m,v)}),r[m].isActive=v;const C=u(b,m);for(const _ in r)r[_].protectedKeys={};return C}return{animateChanges:u,setActive:h,setAnimateFunction:c,getState:()=>r}}function gq(e,t){return typeof t=="string"?t!==e:Array.isArray(t)?!W4(t,e):!1}function pp(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function yq(){return{[xr.Animate]:pp(!0),[xr.InView]:pp(),[xr.Hover]:pp(),[xr.Tap]:pp(),[xr.Drag]:pp(),[xr.Focus]:pp(),[xr.Exit]:pp()}}const bq={animation:Df(({visualElement:e,animate:t})=>{e.animationState||(e.animationState=vq(e)),zw(t)&&D.exports.useEffect(()=>t.subscribe(e),[t])}),exit:Df(e=>{const{custom:t,visualElement:r}=e,[i,s]=F2(),c=D.exports.useContext(tv);D.exports.useEffect(()=>{r.isPresent=i;const u=r.animationState&&r.animationState.setActive(xr.Exit,!i,{custom:c&&c.custom||t});u&&!i&&u.then(s)},[i])})};class Q4{constructor(t,r,{transformPagePoint:i}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const v=WR(this.lastMoveEventInfo,this.history),b=this.startEvent!==null,x=M2(v.offset,{x:0,y:0})>=3;if(!b&&!x)return;const{point:C}=v,{timestamp:_}=JO();this.history.push({...C,timestamp:_});const{onStart:R,onMove:A}=this.handlers;b||(R&&R(this.lastMoveEvent,v),this.startEvent=this.lastMoveEvent),A&&A(this.lastMoveEvent,v)},this.handlePointerMove=(v,b)=>{if(this.lastMoveEvent=v,this.lastMoveEventInfo=HR(b,this.transformPagePoint),y4(v)&&v.buttons===0){this.handlePointerUp(v,b);return}fu.update(this.updatePoint,!0)},this.handlePointerUp=(v,b)=>{this.end();const{onEnd:x,onSessionEnd:C}=this.handlers,_=WR(HR(b,this.transformPagePoint),this.history);this.startEvent&&x&&x(v,_),C&&C(v,_)},b4(t)&&t.touches.length>1)return;this.handlers=r,this.transformPagePoint=i;const s=T2(t),c=HR(s,this.transformPagePoint),{point:u}=c,{timestamp:h}=JO();this.history=[{...u,timestamp:h}];const{onSessionStart:m}=r;m&&m(t,WR(c,this.history)),this.removeListeners=Vw(Im(window,"pointermove",this.handlePointerMove),Im(window,"pointerup",this.handlePointerUp),Im(window,"pointercancel",this.handlePointerUp))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),sb.update(this.updatePoint)}}function HR(e,t){return t?{point:t(e.point)}:e}function fL(e,t){return{x:e.x-t.x,y:e.y-t.y}}function WR({point:e},t){return{point:e,delta:fL(e,J4(t)),offset:fL(e,Sq(t)),velocity:xq(t,.1)}}function Sq(e){return e[0]}function J4(e){return e[e.length-1]}function xq(e,t){if(e.length<2)return{x:0,y:0};let r=e.length-1,i=null;const s=J4(e);for(;r>=0&&(i=e[r],!(s.timestamp-i.timestamp>tw(t)));)r--;if(!i)return{x:0,y:0};const c=(s.timestamp-i.timestamp)/1e3;if(c===0)return{x:0,y:0};const u={x:(s.x-i.x)/c,y:(s.y-i.y)/c};return u.x===1/0&&(u.x=0),u.y===1/0&&(u.y=0),u}function Ko(e){return e.max-e.min}function dL(e,t=0,r=.01){return M2(e,t)<r}function pL(e,t,r,i=.5){e.origin=i,e.originPoint=jr(t.min,t.max,e.origin),e.scale=Ko(r)/Ko(t),(dL(e.scale,1,1e-4)||isNaN(e.scale))&&(e.scale=1),e.translate=jr(r.min,r.max,e.origin)-e.originPoint,(dL(e.translate)||isNaN(e.translate))&&(e.translate=0)}function By(e,t,r,i){pL(e.x,t.x,r.x,i?.originX),pL(e.y,t.y,r.y,i?.originY)}function hL(e,t,r){e.min=r.min+t.min,e.max=e.min+Ko(t)}function wq(e,t,r){hL(e.x,t.x,r.x),hL(e.y,t.y,r.y)}function mL(e,t,r){e.min=t.min-r.min,e.max=e.min+Ko(t)}function Uy(e,t,r){mL(e.x,t.x,r.x),mL(e.y,t.y,r.y)}function Cq(e,{min:t,max:r},i){return t!==void 0&&e<t?e=i?jr(t,e,i.min):Math.max(e,t):r!==void 0&&e>r&&(e=i?jr(r,e,i.max):Math.min(e,r)),e}function vL(e,t,r){return{min:t!==void 0?e.min+t:void 0,max:r!==void 0?e.max+r-(e.max-e.min):void 0}}function _q(e,{top:t,left:r,bottom:i,right:s}){return{x:vL(e.x,r,s),y:vL(e.y,t,i)}}function gL(e,t){let r=t.min-e.min,i=t.max-e.max;return t.max-t.min<e.max-e.min&&([r,i]=[i,r]),{min:r,max:i}}function Eq(e,t){return{x:gL(e.x,t.x),y:gL(e.y,t.y)}}function Tq(e,t){let r=.5;const i=Ko(e),s=Ko(t);return s>i?r=ab(t.min,t.max-i,e.min):i>s&&(r=ab(e.min,e.max-s,t.min)),Qx(0,1,r)}function Nq(e,t){const r={};return t.min!==void 0&&(r.min=t.min-e.min),t.max!==void 0&&(r.max=t.max-e.min),r}const tA=.35;function Rq(e=tA){return e===!1?e=0:e===!0&&(e=tA),{x:yL(e,"left","right"),y:yL(e,"top","bottom")}}function yL(e,t,r){return{min:bL(e,t),max:bL(e,r)}}function bL(e,t){var r;return typeof e=="number"?e:(r=e[t])!==null&&r!==void 0?r:0}const SL=()=>({translate:0,scale:1,origin:0,originPoint:0}),jy=()=>({x:SL(),y:SL()}),xL=()=>({min:0,max:0}),si=()=>({x:xL(),y:xL()});function ru(e){return[e("x"),e("y")]}function ez({top:e,left:t,right:r,bottom:i}){return{x:{min:t,max:r},y:{min:e,max:i}}}function Oq({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function Aq(e,t){if(!t)return e;const r=t({x:e.left,y:e.top}),i=t({x:e.right,y:e.bottom});return{top:r.y,left:r.x,bottom:i.y,right:i.x}}function GR(e){return e===void 0||e===1}function tz({scale:e,scaleX:t,scaleY:r}){return!GR(e)||!GR(t)||!GR(r)}function _f(e){return tz(e)||wL(e.x)||wL(e.y)||e.z||e.rotate||e.rotateX||e.rotateY}function wL(e){return e&&e!=="0%"}function rw(e,t,r){const i=e-r,s=t*i;return r+s}function CL(e,t,r,i,s){return s!==void 0&&(e=rw(e,s,i)),rw(e,r,i)+t}function nA(e,t=0,r=1,i,s){e.min=CL(e.min,t,r,i,s),e.max=CL(e.max,t,r,i,s)}function nz(e,{x:t,y:r}){nA(e.x,t.translate,t.scale,t.originPoint),nA(e.y,r.translate,r.scale,r.originPoint)}function kq(e,t,r,i=!1){var s,c;const u=r.length;if(!u)return;t.x=t.y=1;let h,m;for(let v=0;v<u;v++)h=r[v],m=h.projectionDelta,((c=(s=h.instance)===null||s===void 0?void 0:s.style)===null||c===void 0?void 0:c.display)!=="contents"&&(i&&h.options.layoutScroll&&h.scroll&&h!==h.root&&km(e,{x:-h.scroll.x,y:-h.scroll.y}),m&&(t.x*=m.x.scale,t.y*=m.y.scale,nz(e,m)),i&&_f(h.latestValues)&&km(e,h.latestValues))}function Nf(e,t){e.min=e.min+t,e.max=e.max+t}function _L(e,t,[r,i,s]){const c=t[s]!==void 0?t[s]:.5,u=jr(e.min,e.max,c);nA(e,t[r],t[i],u,t.scale)}const Dq=["x","scaleX","originX"],Pq=["y","scaleY","originY"];function km(e,t){_L(e.x,t,Dq),_L(e.y,t,Pq)}function rz(e,t){return ez(Aq(e.getBoundingClientRect(),t))}function Mq(e,t,r){const i=rz(e,r),{scroll:s}=t;return s&&(Nf(i.x,s.x),Nf(i.y,s.y)),i}const Iq=new WeakMap;class Lq{constructor(t){this.openGlobalLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=si(),this.visualElement=t}start(t,{snapToCursor:r=!1}={}){if(this.visualElement.isPresent===!1)return;const i=h=>{this.stopAnimation(),r&&this.snapToCursor(T2(h,"page").point)},s=(h,m)=>{var v;const{drag:b,dragPropagation:x,onDragStart:C}=this.getProps();b&&!x&&(this.openGlobalLock&&this.openGlobalLock(),this.openGlobalLock=C4(b),!this.openGlobalLock)||(this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),ru(_=>{var R,A;let M=this.getAxisMotionValue(_).get()||0;if(cu.test(M)){const j=(A=(R=this.visualElement.projection)===null||R===void 0?void 0:R.layout)===null||A===void 0?void 0:A.actual[_];j&&(M=Ko(j)*(parseFloat(M)/100))}this.originPoint[_]=M}),C?.(h,m),(v=this.visualElement.animationState)===null||v===void 0||v.setActive(xr.Drag,!0))},c=(h,m)=>{const{dragPropagation:v,dragDirectionLock:b,onDirectionLock:x,onDrag:C}=this.getProps();if(!v&&!this.openGlobalLock)return;const{offset:_}=m;if(b&&this.currentDirection===null){this.currentDirection=Fq(_),this.currentDirection!==null&&x?.(this.currentDirection);return}this.updateAxis("x",m.point,_),this.updateAxis("y",m.point,_),this.visualElement.syncRender(),C?.(h,m)},u=(h,m)=>this.stop(h,m);this.panSession=new Q4(t,{onSessionStart:i,onStart:s,onMove:c,onSessionEnd:u},{transformPagePoint:this.visualElement.getTransformPagePoint()})}stop(t,r){const i=this.isDragging;if(this.cancel(),!i)return;const{velocity:s}=r;this.startAnimation(s);const{onDragEnd:c}=this.getProps();c?.(t,r)}cancel(){var t,r;this.isDragging=!1,this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!1),(t=this.panSession)===null||t===void 0||t.end(),this.panSession=void 0;const{dragPropagation:i}=this.getProps();!i&&this.openGlobalLock&&(this.openGlobalLock(),this.openGlobalLock=null),(r=this.visualElement.animationState)===null||r===void 0||r.setActive(xr.Drag,!1)}updateAxis(t,r,i){const{drag:s}=this.getProps();if(!i||!Z1(t,s,this.currentDirection))return;const c=this.getAxisMotionValue(t);let u=this.originPoint[t]+i[t];this.constraints&&this.constraints[t]&&(u=Cq(u,this.constraints[t],this.elastic[t])),c.set(u)}resolveConstraints(){const{dragConstraints:t,dragElastic:r}=this.getProps(),{layout:i}=this.visualElement.projection||{},s=this.constraints;t&&Am(t)?this.constraints||(this.constraints=this.resolveRefConstraints()):t&&i?this.constraints=_q(i.actual,t):this.constraints=!1,this.elastic=Rq(r),s!==this.constraints&&i&&this.constraints&&!this.hasMutatedConstraints&&ru(c=>{this.getAxisMotionValue(c)&&(this.constraints[c]=Nq(i.actual[c],this.constraints[c]))})}resolveRefConstraints(){const{dragConstraints:t,onMeasureDragConstraints:r}=this.getProps();if(!t||!Am(t))return!1;const i=t.current;Ms(i!==null,"If `dragConstraints` is set as a React ref, that ref must be passed to another component's `ref` prop.");const{projection:s}=this.visualElement;if(!s||!s.layout)return!1;const c=Mq(i,s.root,this.visualElement.getTransformPagePoint());let u=Eq(s.layout.actual,c);if(r){const h=r(Oq(u));this.hasMutatedConstraints=!!h,h&&(u=ez(h))}return u}startAnimation(t){const{drag:r,dragMomentum:i,dragElastic:s,dragTransition:c,dragSnapToOrigin:u,onDragTransitionEnd:h}=this.getProps(),m=this.constraints||{},v=ru(b=>{var x;if(!Z1(b,r,this.currentDirection))return;let C=(x=m?.[b])!==null&&x!==void 0?x:{};u&&(C={min:0,max:0});const _=s?200:1e6,R=s?40:1e7,A={type:"inertia",velocity:i?t[b]:0,bounceStiffness:_,bounceDamping:R,timeConstant:750,restDelta:1,restSpeed:10,...c,...C};return this.startAxisValueAnimation(b,A)});return Promise.all(v).then(h)}startAxisValueAnimation(t,r){const i=this.getAxisMotionValue(t);return j2(t,i,0,r)}stopAnimation(){ru(t=>this.getAxisMotionValue(t).stop())}getAxisMotionValue(t){var r,i;const s="_drag"+t.toUpperCase(),c=this.visualElement.getProps()[s];return c||this.visualElement.getValue(t,(i=(r=this.visualElement.getProps().initial)===null||r===void 0?void 0:r[t])!==null&&i!==void 0?i:0)}snapToCursor(t){ru(r=>{const{drag:i}=this.getProps();if(!Z1(r,i,this.currentDirection))return;const{projection:s}=this.visualElement,c=this.getAxisMotionValue(r);if(s&&s.layout){const{min:u,max:h}=s.layout.actual[r];c.set(t[r]-jr(u,h,.5))}})}scalePositionWithinConstraints(){var t;const{drag:r,dragConstraints:i}=this.getProps(),{projection:s}=this.visualElement;if(!Am(i)||!s||!this.constraints)return;this.stopAnimation();const c={x:0,y:0};ru(h=>{const m=this.getAxisMotionValue(h);if(m){const v=m.get();c[h]=Tq({min:v,max:v},this.constraints[h])}});const{transformTemplate:u}=this.visualElement.getProps();this.visualElement.getInstance().style.transform=u?u({},""):"none",(t=s.root)===null||t===void 0||t.updateScroll(),s.updateLayout(),this.resolveConstraints(),ru(h=>{if(!Z1(h,r,null))return;const m=this.getAxisMotionValue(h),{min:v,max:b}=this.constraints[h];m.set(jr(v,b,c[h]))})}addListeners(){var t;Iq.set(this.visualElement,this);const r=this.visualElement.getInstance(),i=Im(r,"pointerdown",v=>{const{drag:b,dragListener:x=!0}=this.getProps();b&&x&&this.start(v)}),s=()=>{const{dragConstraints:v}=this.getProps();Am(v)&&(this.constraints=this.resolveRefConstraints())},{projection:c}=this.visualElement,u=c.addEventListener("measure",s);c&&!c.layout&&((t=c.root)===null||t===void 0||t.updateScroll(),c.updateLayout()),s();const h=jw(window,"resize",()=>this.scalePositionWithinConstraints()),m=c.addEventListener("didUpdate",({delta:v,hasLayoutChanged:b})=>{this.isDragging&&b&&(ru(x=>{const C=this.getAxisMotionValue(x);!C||(this.originPoint[x]+=v[x].translate,C.set(C.get()+v[x].translate))}),this.visualElement.syncRender())});return()=>{h(),i(),u(),m?.()}}getProps(){const t=this.visualElement.getProps(),{drag:r=!1,dragDirectionLock:i=!1,dragPropagation:s=!1,dragConstraints:c=!1,dragElastic:u=tA,dragMomentum:h=!0}=t;return{...t,drag:r,dragDirectionLock:i,dragPropagation:s,dragConstraints:c,dragElastic:u,dragMomentum:h}}}function Z1(e,t,r){return(t===!0||t===e)&&(r===null||r===e)}function Fq(e,t=10){let r=null;return Math.abs(e.y)>t?r="y":Math.abs(e.x)>t&&(r="x"),r}function zq(e){const{dragControls:t,visualElement:r}=e,i=Uw(()=>new Lq(r));D.exports.useEffect(()=>t&&t.subscribe(i),[i,t]),D.exports.useEffect(()=>i.addListeners(),[i])}function Bq({onPan:e,onPanStart:t,onPanEnd:r,onPanSessionStart:i,visualElement:s}){const c=e||t||r||i,u=D.exports.useRef(null),{transformPagePoint:h}=D.exports.useContext(y2),m={onSessionStart:i,onStart:t,onMove:e,onEnd:(b,x)=>{u.current=null,r&&r(b,x)}};D.exports.useEffect(()=>{u.current!==null&&u.current.updateHandlers(m)});function v(b){u.current=new Q4(b,m,{transformPagePoint:h})}Zx(s,"pointerdown",c&&v),N2(()=>u.current&&u.current.end())}const Uq={pan:Df(Bq),drag:Df(zq)},rA={current:null},az={current:!1};function jq(){if(az.current=!0,!!$p)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>rA.current=e.matches;e.addListener(t),t()}else rA.current=!1}const Q1=["LayoutMeasure","BeforeLayoutMeasure","LayoutUpdate","ViewportBoxUpdate","Update","Render","AnimationComplete","LayoutAnimationComplete","AnimationStart","LayoutAnimationStart","SetAxisTarget","Unmount"];function $q(){const e=Q1.map(()=>new zy),t={},r={clearAllListeners:()=>e.forEach(i=>i.clear()),updatePropListeners:i=>{Q1.forEach(s=>{var c;const u="on"+s,h=i[u];(c=t[s])===null||c===void 0||c.call(t),h&&(t[s]=r[u](h))})}};return e.forEach((i,s)=>{r["on"+Q1[s]]=c=>i.add(c),r["notify"+Q1[s]]=(...c)=>i.notify(...c)}),r}function Vq(e,t,r){const{willChange:i}=t;for(const s in t){const c=t[s],u=r[s];if(mu(c))e.addValue(s,c),nw(i)&&i.add(s),L2(c.version==="7.3.5",`Attempting to mix Framer Motion versions ${c.version} with 7.3.5 may not work as expected.`);else if(mu(u))e.addValue(s,Wm(c)),nw(i)&&i.remove(s);else if(u!==c)if(e.hasValue(s)){const h=e.getValue(s);!h.hasAnimated&&h.set(c)}else{const h=e.getStaticValue(s);e.addValue(s,Wm(h!==void 0?h:c))}}for(const s in r)t[s]===void 0&&e.removeValue(s);return t}const iz=Object.keys(tb),Hq=iz.length,oz=({treeType:e="",build:t,getBaseTarget:r,makeTargetAnimatable:i,measureViewportBox:s,render:c,readValueFromInstance:u,removeValueFromRenderState:h,sortNodePosition:m,scrapeMotionValuesFromProps:v})=>({parent:b,props:x,presenceId:C,blockInitialAnimation:_,visualState:R,reducedMotionConfig:A},M={})=>{let j=!1;const{latestValues:I,renderState:z}=R;let B;const $=$q(),K=new Map,X=new Map;let de={};const ve={...I};let se;function be(){!B||!j||(Xe(),c(B,z,x.style,Te.projection))}function Xe(){t(Te,z,I,M,x)}function ie(){$.notifyUpdate(I)}function ce(pe,we){const Ie=we.onChange(Ye=>{I[pe]=Ye,x.onUpdate&&fu.update(ie,!1,!0)}),Le=we.onRenderRequest(Te.scheduleRender);X.set(pe,()=>{Ie(),Le()})}const{willChange:Re,...Ce}=v(x);for(const pe in Ce){const we=Ce[pe];I[pe]!==void 0&&mu(we)&&(we.set(I[pe],!1),nw(Re)&&Re.add(pe))}const oe=Bw(x),Se=KF(x),Te={treeType:e,current:null,depth:b?b.depth+1:0,parent:b,children:new Set,presenceId:C,shouldReduceMotion:null,variantChildren:Se?new Set:void 0,isVisible:void 0,manuallyAnimateOnMount:Boolean(b?.isMounted()),blockInitialAnimation:_,isMounted:()=>Boolean(B),mount(pe){j=!0,B=Te.current=pe,Te.projection&&Te.projection.mount(pe),Se&&b&&!oe&&(se=b?.addVariantChild(Te)),K.forEach((we,Ie)=>ce(Ie,we)),az.current||jq(),Te.shouldReduceMotion=A==="never"?!1:A==="always"?!0:rA.current,b?.children.add(Te),Te.setProps(x)},unmount(){var pe;(pe=Te.projection)===null||pe===void 0||pe.unmount(),sb.update(ie),sb.render(be),X.forEach(we=>we()),se?.(),b?.children.delete(Te),$.clearAllListeners(),B=void 0,j=!1},loadFeatures(pe,we,Ie,Le,Ye,st){const mt=[];I2!=="production"&&Ie&&we&&Ms(!1,"You have rendered a `motion` component within a `LazyMotion` component. This will break tree shaking. Import and render a `m` component instead.");for(let Gt=0;Gt<Hq;Gt++){const Qe=iz[Gt],{isEnabled:vt,Component:Et}=tb[Qe];vt(pe)&&Et&&mt.push(D.exports.createElement(Et,{key:Qe,...pe,visualElement:Te}))}if(!Te.projection&&Ye){Te.projection=new Ye(Le,Te.getLatestValues(),b&&b.projection);const{layoutId:Gt,layout:Qe,drag:vt,dragConstraints:Et,layoutScroll:zt}=pe;Te.projection.setOptions({layoutId:Gt,layout:Qe,alwaysMeasureLayout:Boolean(vt)||Et&&Am(Et),visualElement:Te,scheduleRender:()=>Te.scheduleRender(),animationType:typeof Qe=="string"?Qe:"both",initialPromotionConfig:st,layoutScroll:zt})}return mt},addVariantChild(pe){var we;const Ie=Te.getClosestVariantNode();if(Ie)return(we=Ie.variantChildren)===null||we===void 0||we.add(pe),()=>Ie.variantChildren.delete(pe)},sortNodePosition(pe){return!m||e!==pe.treeType?0:m(Te.getInstance(),pe.getInstance())},getClosestVariantNode:()=>Se?Te:b?.getClosestVariantNode(),getLayoutId:()=>x.layoutId,getInstance:()=>B,getStaticValue:pe=>I[pe],setStaticValue:(pe,we)=>I[pe]=we,getLatestValues:()=>I,setVisibility(pe){Te.isVisible!==pe&&(Te.isVisible=pe,Te.scheduleRender())},makeTargetAnimatable(pe,we=!0){return i(Te,pe,x,we)},measureViewportBox(){return s(B,x)},addValue(pe,we){Te.hasValue(pe)&&Te.removeValue(pe),K.set(pe,we),I[pe]=we.get(),ce(pe,we)},removeValue(pe){var we;K.delete(pe),(we=X.get(pe))===null||we===void 0||we(),X.delete(pe),delete I[pe],h(pe,z)},hasValue:pe=>K.has(pe),getValue(pe,we){let Ie=K.get(pe);return Ie===void 0&&we!==void 0&&(Ie=Wm(we),Te.addValue(pe,Ie)),Ie},forEachValue:pe=>K.forEach(pe),readValue:pe=>I[pe]!==void 0?I[pe]:u(B,pe,M),setBaseTarget(pe,we){ve[pe]=we},getBaseTarget(pe){if(r){const we=r(x,pe);if(we!==void 0&&!mu(we))return we}return ve[pe]},...$,build(){return Xe(),z},scheduleRender(){fu.render(be,!1,!0)},syncRender:be,setProps(pe){(pe.transformTemplate||x.transformTemplate)&&Te.scheduleRender(),x=pe,$.updatePropListeners(pe),de=Vq(Te,v(x),de)},getProps:()=>x,getVariant:pe=>{var we;return(we=x.variants)===null||we===void 0?void 0:we[pe]},getDefaultTransition:()=>x.transition,getTransformPagePoint:()=>x.transformPagePoint,getVariantContext(pe=!1){if(pe)return b?.getVariantContext();if(!oe){const Ie=b?.getVariantContext()||{};return x.initial!==void 0&&(Ie.initial=x.initial),Ie}const we={};for(let Ie=0;Ie<Wq;Ie++){const Le=sz[Ie],Ye=x[Le];(eb(Ye)||Ye===!1)&&(we[Le]=Ye)}return we}};return Te},sz=["initial",...H2],Wq=sz.length;function aA(e){return typeof e=="string"&&e.startsWith("var(--")}const lz=/var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/;function Gq(e){const t=lz.exec(e);if(!t)return[,];const[,r,i]=t;return[r,i]}const Yq=4;function iA(e,t,r=1){Ms(r<=Yq,`Max CSS variable fallback depth detected in property "${e}". This may indicate a circular fallback dependency.`);const[i,s]=Gq(e);if(!i)return;const c=window.getComputedStyle(t).getPropertyValue(i);return c?c.trim():aA(s)?iA(s,t,r+1):s}function qq(e,{...t},r){const i=e.getInstance();if(!(i instanceof Element))return{target:t,transitionEnd:r};r&&(r={...r}),e.forEachValue(s=>{const c=s.get();if(!aA(c))return;const u=iA(c,i);u&&s.set(u)});for(const s in t){const c=t[s];if(!aA(c))continue;const u=iA(c,i);!u||(t[s]=u,r&&r[s]===void 0&&(r[s]=c))}return{target:t,transitionEnd:r}}const Kq=new Set(["width","height","top","left","right","bottom","x","y"]),uz=e=>Kq.has(e),Xq=e=>Object.keys(e).some(uz),cz=(e,t)=>{e.set(t,!1),e.set(t)},J1=e=>e===Vp||e===Wt;var EL;(function(e){e.width="width",e.height="height",e.left="left",e.right="right",e.top="top",e.bottom="bottom"})(EL||(EL={}));const TL=(e,t)=>parseFloat(e.split(", ")[t]),NL=(e,t)=>(r,{transform:i})=>{if(i==="none"||!i)return 0;const s=i.match(/^matrix3d\((.+)\)$/);if(s)return TL(s[1],t);{const c=i.match(/^matrix\((.+)\)$/);return c?TL(c[1],e):0}},Zq=new Set(["x","y","z"]),Qq=Kx.filter(e=>!Zq.has(e));function Jq(e){const t=[];return Qq.forEach(r=>{const i=e.getValue(r);i!==void 0&&(t.push([r,i.get()]),i.set(r.startsWith("scale")?1:0))}),t.length&&e.syncRender(),t}const RL={width:({x:e},{paddingLeft:t="0",paddingRight:r="0"})=>e.max-e.min-parseFloat(t)-parseFloat(r),height:({y:e},{paddingTop:t="0",paddingBottom:r="0"})=>e.max-e.min-parseFloat(t)-parseFloat(r),top:(e,{top:t})=>parseFloat(t),left:(e,{left:t})=>parseFloat(t),bottom:({y:e},{top:t})=>parseFloat(t)+(e.max-e.min),right:({x:e},{left:t})=>parseFloat(t)+(e.max-e.min),x:NL(4,13),y:NL(5,14)},eK=(e,t,r)=>{const i=t.measureViewportBox(),s=t.getInstance(),c=getComputedStyle(s),{display:u}=c,h={};u==="none"&&t.setStaticValue("display",e.display||"block"),r.forEach(v=>{h[v]=RL[v](i,c)}),t.syncRender();const m=t.measureViewportBox();return r.forEach(v=>{const b=t.getValue(v);cz(b,h[v]),e[v]=RL[v](m,c)}),e},tK=(e,t,r={},i={})=>{t={...t},i={...i};const s=Object.keys(t).filter(uz);let c=[],u=!1;const h=[];if(s.forEach(m=>{const v=e.getValue(m);if(!e.hasValue(m))return;let b=r[m],x=xy(b);const C=t[m];let _;if(rb(C)){const R=C.length,A=C[0]===null?1:0;b=C[A],x=xy(b);for(let M=A;M<R;M++)_?Ms(xy(C[M])===_,"All keyframes must be of the same type"):(_=xy(C[M]),Ms(_===x||J1(x)&&J1(_),"Keyframes must be of the same dimension as the current value"))}else _=xy(C);if(x!==_)if(J1(x)&&J1(_)){const R=v.get();typeof R=="string"&&v.set(parseFloat(R)),typeof C=="string"?t[m]=parseFloat(C):Array.isArray(C)&&_===Wt&&(t[m]=C.map(parseFloat))}else x?.transform&&_?.transform&&(b===0||C===0)?b===0?v.set(_.transform(b)):t[m]=x.transform(C):(u||(c=Jq(e),u=!0),h.push(m),i[m]=i[m]!==void 0?i[m]:t[m],cz(v,C))}),h.length){const m=h.indexOf("height")>=0?window.pageYOffset:null,v=eK(t,e,h);return c.length&&c.forEach(([b,x])=>{e.getValue(b).set(x)}),e.syncRender(),$p&&m!==null&&window.scrollTo({top:m}),{target:v,transitionEnd:i}}else return{target:t,transitionEnd:i}};function nK(e,t,r,i){return Xq(t)?tK(e,t,r,i):{target:t,transitionEnd:i}}const rK=(e,t,r,i)=>{const s=qq(e,t,i);return t=s.target,i=s.transitionEnd,nK(e,t,r,i)};function aK(e){return window.getComputedStyle(e)}const fz={treeType:"dom",readValueFromInstance(e,t){if(_b.has(t)){const r=z2(t);return r&&r.default||0}else{const r=aK(e),i=(QF(t)?r.getPropertyValue(t):r[t])||0;return typeof i=="string"?i.trim():i}},sortNodePosition(e,t){return e.compareDocumentPosition(t)&2?1:-1},getBaseTarget(e,t){var r;return(r=e.style)===null||r===void 0?void 0:r[t]},measureViewportBox(e,{transformPagePoint:t}){return rz(e,t)},resetTransform(e,t,r){const{transformTemplate:i}=r;t.style.transform=i?i({},""):"none",e.scheduleRender()},restoreTransform(e,t){e.style.transform=t.style.transform},removeValueFromRenderState(e,{vars:t,style:r}){delete t[e],delete r[e]},makeTargetAnimatable(e,{transition:t,transitionEnd:r,...i},{transformValues:s},c=!0){let u=lq(i,t||{},e);if(s&&(r&&(r=s(r)),i&&(i=s(i)),u&&(u=s(u))),c){oq(e,i,u);const h=rK(e,i,u,r);r=h.transitionEnd,i=h.target}return{transition:t,transitionEnd:r,...i}},scrapeMotionValuesFromProps:E2,build(e,t,r,i,s){e.isVisible!==void 0&&(t.style.visibility=e.isVisible?"visible":"hidden"),w2(t,r,i,s.transformTemplate)},render:f4},iK=oz(fz),oK=oz({...fz,getBaseTarget(e,t){return e[t]},readValueFromInstance(e,t){var r;return _b.has(t)?((r=z2(t))===null||r===void 0?void 0:r.default)||0:(t=d4.has(t)?t:c4(t),e.getAttribute(t))},scrapeMotionValuesFromProps:h4,build(e,t,r,i,s){_2(t,r,i,s.transformTemplate)},render:p4}),sK=(e,t)=>S2(e)?oK(t,{enableHardwareAcceleration:!1}):iK(t,{enableHardwareAcceleration:!0});function OL(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}const wy={correct:(e,t)=>{if(!t.target)return e;if(typeof e=="string")if(Wt.test(e))e=parseFloat(e);else return e;const r=OL(e,t.target.x),i=OL(e,t.target.y);return`${r}% ${i}%`}},AL="_$css",lK={correct:(e,{treeScale:t,projectionDelta:r})=>{const i=e,s=e.includes("var("),c=[];s&&(e=e.replace(lz,_=>(c.push(_),AL)));const u=pc.parse(e);if(u.length>5)return i;const h=pc.createTransformer(e),m=typeof u[0]!="number"?1:0,v=r.x.scale*t.x,b=r.y.scale*t.y;u[0+m]/=v,u[1+m]/=b;const x=jr(v,b,.5);typeof u[2+m]=="number"&&(u[2+m]/=x),typeof u[3+m]=="number"&&(u[3+m]/=x);let C=h(u);if(s){let _=0;C=C.replace(AL,()=>{const R=c[_];return _++,R})}return C}};var uK="/Users/spencer/Documents/Code/stable-diffusion/frontend/node_modules/framer-motion/dist/es/motion/features/layout/MeasureLayout.mjs";class cK extends Ue.Component{componentDidMount(){const{visualElement:t,layoutGroup:r,switchLayoutGroup:i,layoutId:s}=this.props,{projection:c}=t;wW(dK),c&&(r.group&&r.group.add(c),i&&i.register&&s&&i.register(c),c.root.didUpdate(),c.addEventListener("animationComplete",()=>{this.safeToRemove()}),c.setOptions({...c.options,onExitComplete:()=>this.safeToRemove()})),Iy.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){const{layoutDependency:r,visualElement:i,drag:s,isPresent:c}=this.props,u=i.projection;return u&&(u.isPresent=c,s||t.layoutDependency!==r||r===void 0?u.willUpdate():this.safeToRemove(),t.isPresent!==c&&(c?u.promote():u.relegate()||fu.postRender(()=>{var h;!((h=u.getStack())===null||h===void 0)&&h.members.length||this.safeToRemove()}))),null}componentDidUpdate(){const{projection:t}=this.props.visualElement;t&&(t.root.didUpdate(),!t.currentAnimation&&t.isLead()&&this.safeToRemove())}componentWillUnmount(){const{visualElement:t,layoutGroup:r,switchLayoutGroup:i}=this.props,{projection:s}=t;s&&(s.scheduleCheckAfterUnmount(),r?.group&&r.group.remove(s),i?.deregister&&i.deregister(s))}safeToRemove(){const{safeToRemove:t}=this.props;t?.()}render(){return null}}function fK(e){const[t,r]=F2(),i=D.exports.useContext(b2);return k(cK,{...e,layoutGroup:i,switchLayoutGroup:D.exports.useContext(XF),isPresent:t,safeToRemove:r},void 0,!1,{fileName:uK,lineNumber:110,columnNumber:13},this)}const dK={borderRadius:{...wy,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:wy,borderTopRightRadius:wy,borderBottomLeftRadius:wy,borderBottomRightRadius:wy,boxShadow:lK},pK={measureLayout:fK};function hK(e,t,r={}){const i=mu(e)?e:Wm(e);return j2("",i,t,r),{stop:()=>i.stop(),isAnimating:()=>i.isAnimating()}}const dz=["TopLeft","TopRight","BottomLeft","BottomRight"],mK=dz.length,kL=e=>typeof e=="string"?parseFloat(e):e,DL=e=>typeof e=="number"||Wt.test(e);function vK(e,t,r,i,s,c){var u,h,m,v;s?(e.opacity=jr(0,(u=r.opacity)!==null&&u!==void 0?u:1,gK(i)),e.opacityExit=jr((h=t.opacity)!==null&&h!==void 0?h:1,0,yK(i))):c&&(e.opacity=jr((m=t.opacity)!==null&&m!==void 0?m:1,(v=r.opacity)!==null&&v!==void 0?v:1,i));for(let b=0;b<mK;b++){const x=`border${dz[b]}Radius`;let C=PL(t,x),_=PL(r,x);if(C===void 0&&_===void 0)continue;C||(C=0),_||(_=0),C===0||_===0||DL(C)===DL(_)?(e[x]=Math.max(jr(kL(C),kL(_),i),0),(cu.test(_)||cu.test(C))&&(e[x]+="%")):e[x]=_}(t.rotate||r.rotate)&&(e.rotate=jr(t.rotate||0,r.rotate||0,i))}function PL(e,t){var r;return(r=e[t])!==null&&r!==void 0?r:e.borderRadius}const gK=pz(0,.5,D2),yK=pz(.5,.95,A2);function pz(e,t,r){return i=>i<e?0:i>t?1:r(ab(e,t,i))}function ML(e,t){e.min=t.min,e.max=t.max}function gl(e,t){ML(e.x,t.x),ML(e.y,t.y)}function IL(e,t,r,i,s){return e-=t,e=rw(e,1/r,i),s!==void 0&&(e=rw(e,1/s,i)),e}function bK(e,t=0,r=1,i=.5,s,c=e,u=e){if(cu.test(t)&&(t=parseFloat(t),t=jr(u.min,u.max,t/100)-u.min),typeof t!="number")return;let h=jr(c.min,c.max,i);e===c&&(h-=t),e.min=IL(e.min,t,r,h,s),e.max=IL(e.max,t,r,h,s)}function LL(e,t,[r,i,s],c,u){bK(e,t[r],t[i],t[s],t.scale,c,u)}const SK=["x","scaleX","originX"],xK=["y","scaleY","originY"];function FL(e,t,r,i){LL(e.x,t,SK,r?.x,i?.x),LL(e.y,t,xK,r?.y,i?.y)}function zL(e){return e.translate===0&&e.scale===1}function hz(e){return zL(e.x)&&zL(e.y)}function mz(e,t){return e.x.min===t.x.min&&e.x.max===t.x.max&&e.y.min===t.y.min&&e.y.max===t.y.max}function BL(e){return Ko(e.x)/Ko(e.y)}function wK(e,t,r=.01){return M2(e,t)<=r}class CK{constructor(){this.members=[]}add(t){$2(this.members,t),t.scheduleRender()}remove(t){if(V2(this.members,t),t===this.prevLead&&(this.prevLead=void 0),t===this.lead){const r=this.members[this.members.length-1];r&&this.promote(r)}}relegate(t){const r=this.members.findIndex(s=>t===s);if(r===0)return!1;let i;for(let s=r;s>=0;s--){const c=this.members[s];if(c.isPresent!==!1){i=c;break}}return i?(this.promote(i),!0):!1}promote(t,r){var i;const s=this.lead;if(t!==s&&(this.prevLead=s,this.lead=t,t.show(),s)){s.instance&&s.scheduleRender(),t.scheduleRender(),t.resumeFrom=s,r&&(t.resumeFrom.preserveOpacity=!0),s.snapshot&&(t.snapshot=s.snapshot,t.snapshot.latestValues=s.animationValues||s.latestValues,t.snapshot.isShared=!0),!((i=t.root)===null||i===void 0)&&i.isUpdating&&(t.isLayoutDirty=!0);const{crossfade:c}=t.options;c===!1&&s.hide()}}exitAnimationComplete(){this.members.forEach(t=>{var r,i,s,c,u;(i=(r=t.options).onExitComplete)===null||i===void 0||i.call(r),(u=(s=t.resumingFrom)===null||s===void 0?void 0:(c=s.options).onExitComplete)===null||u===void 0||u.call(c)})}scheduleRender(){this.members.forEach(t=>{t.instance&&t.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}const _K="translate3d(0px, 0px, 0) scale(1, 1) scale(1, 1)";function UL(e,t,r){const i=e.x.translate/t.x,s=e.y.translate/t.y;let c=`translate3d(${i}px, ${s}px, 0) `;if(c+=`scale(${1/t.x}, ${1/t.y}) `,r){const{rotate:m,rotateX:v,rotateY:b}=r;m&&(c+=`rotate(${m}deg) `),v&&(c+=`rotateX(${v}deg) `),b&&(c+=`rotateY(${b}deg) `)}const u=e.x.scale*t.x,h=e.y.scale*t.y;return c+=`scale(${u}, ${h})`,c===_K?"none":c}const EK=(e,t)=>e.depth-t.depth;class TK{constructor(){this.children=[],this.isDirty=!1}add(t){$2(this.children,t),this.isDirty=!0}remove(t){V2(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(EK),this.isDirty=!1,this.children.forEach(t)}}const jL=["","X","Y","Z"],$L=1e3;function vz({attachResizeListener:e,defaultParent:t,measureScroll:r,checkIsScrollRoot:i,resetTransform:s}){return class{constructor(u,h={},m=t?.()){this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.potentialNodes=new Map,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.nodes.forEach(DK),this.nodes.forEach(PK)},this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.id=u,this.latestValues=h,this.root=m?m.root||m:this,this.path=m?[...m.path,m]:[],this.parent=m,this.depth=m?m.depth+1:0,u&&this.root.registerPotentialNode(u,this);for(let v=0;v<this.path.length;v++)this.path[v].shouldResetTransform=!0;this.root===this&&(this.nodes=new TK)}addEventListener(u,h){return this.eventHandlers.has(u)||this.eventHandlers.set(u,new zy),this.eventHandlers.get(u).add(h)}notifyListeners(u,...h){const m=this.eventHandlers.get(u);m?.notify(...h)}hasListeners(u){return this.eventHandlers.has(u)}registerPotentialNode(u,h){this.potentialNodes.set(u,h)}mount(u,h=!1){var m;if(this.instance)return;this.isSVG=u instanceof SVGElement&&u.tagName!=="svg",this.instance=u;const{layoutId:v,layout:b,visualElement:x}=this.options;if(x&&!x.getInstance()&&x.mount(u),this.root.nodes.add(this),(m=this.parent)===null||m===void 0||m.children.add(this),this.id&&this.root.potentialNodes.delete(this.id),h&&(b||v)&&(this.isLayoutDirty=!0),e){let C;const _=()=>this.root.updateBlockedByResize=!1;e(u,()=>{this.root.updateBlockedByResize=!0,clearTimeout(C),C=window.setTimeout(_,250),Iy.hasAnimatedSinceResize&&(Iy.hasAnimatedSinceResize=!1,this.nodes.forEach(kK))})}v&&this.root.registerSharedNode(v,this),this.options.animate!==!1&&x&&(v||b)&&this.addEventListener("didUpdate",({delta:C,hasLayoutChanged:_,hasRelativeTargetChanged:R,layout:A})=>{var M,j,I,z,B;if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const $=(j=(M=this.options.transition)!==null&&M!==void 0?M:x.getDefaultTransition())!==null&&j!==void 0?j:zK,{onLayoutAnimationStart:K,onLayoutAnimationComplete:X}=x.getProps(),de=!this.targetLayout||!mz(this.targetLayout,A)||R,ve=!_&&R;if(((I=this.resumeFrom)===null||I===void 0?void 0:I.instance)||ve||_&&(de||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0),this.setAnimationOrigin(C,ve);const se={...U2($,"layout"),onPlay:K,onComplete:X};x.shouldReduceMotion&&(se.delay=0,se.type=!1),this.startAnimation(se)}else!_&&this.animationProgress===0&&this.finishAnimation(),this.isLead()&&((B=(z=this.options).onExitComplete)===null||B===void 0||B.call(z));this.targetLayout=A})}unmount(){var u,h;this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this),(u=this.getStack())===null||u===void 0||u.remove(this),(h=this.parent)===null||h===void 0||h.children.delete(this),this.instance=void 0,sb.preRender(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}isTreeAnimationBlocked(){var u;return this.isAnimationBlocked||((u=this.parent)===null||u===void 0?void 0:u.isTreeAnimationBlocked())||!1}startUpdate(){var u;this.isUpdateBlocked()||(this.isUpdating=!0,(u=this.nodes)===null||u===void 0||u.forEach(MK))}willUpdate(u=!0){var h,m,v;if(this.root.isUpdateBlocked()){(m=(h=this.options).onExitComplete)===null||m===void 0||m.call(h);return}if(!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let _=0;_<this.path.length;_++){const R=this.path[_];R.shouldResetTransform=!0,R.updateScroll()}const{layoutId:b,layout:x}=this.options;if(b===void 0&&!x)return;const C=(v=this.options.visualElement)===null||v===void 0?void 0:v.getProps().transformTemplate;this.prevTransformTemplateValue=C?.(this.latestValues,""),this.updateSnapshot(),u&&this.notifyListeners("willUpdate")}didUpdate(){if(this.isUpdateBlocked()){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEach(VL);return}!this.isUpdating||(this.isUpdating=!1,this.potentialNodes.size&&(this.potentialNodes.forEach(BK),this.potentialNodes.clear()),this.nodes.forEach(AK),this.nodes.forEach(NK),this.nodes.forEach(RK),this.clearAllSnapshots(),VR.update(),VR.preRender(),VR.render())}clearAllSnapshots(){this.nodes.forEach(OK),this.sharedNodes.forEach(IK)}scheduleUpdateProjection(){fu.preRender(this.updateProjection,!1,!0)}scheduleCheckAfterUnmount(){fu.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){if(this.snapshot||!this.instance)return;const u=this.measure(),h=this.removeTransform(this.removeElementScroll(u));YL(h),this.snapshot={measured:u,layout:h,latestValues:{}}}updateLayout(){var u;if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let v=0;v<this.path.length;v++)this.path[v].updateScroll();const h=this.measure();YL(h);const m=this.layout;this.layout={measured:h,actual:this.removeElementScroll(h)},this.layoutCorrected=si(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.actual),(u=this.options.visualElement)===null||u===void 0||u.notifyLayoutMeasure(this.layout.actual,m?.actual)}updateScroll(){this.options.layoutScroll&&this.instance&&(this.isScrollRoot=i(this.instance),this.scroll=r(this.instance))}resetTransform(){var u;if(!s)return;const h=this.isLayoutDirty||this.shouldResetTransform,m=this.projectionDelta&&!hz(this.projectionDelta),v=(u=this.options.visualElement)===null||u===void 0?void 0:u.getProps().transformTemplate,b=v?.(this.latestValues,""),x=b!==this.prevTransformTemplateValue;h&&(m||_f(this.latestValues)||x)&&(s(this.instance,b),this.shouldResetTransform=!1,this.scheduleRender())}measure(){const{visualElement:u}=this.options;if(!u)return si();const h=u.measureViewportBox(),{scroll:m}=this.root;return m&&(Nf(h.x,m.x),Nf(h.y,m.y)),h}removeElementScroll(u){const h=si();gl(h,u);for(let m=0;m<this.path.length;m++){const v=this.path[m],{scroll:b,options:x,isScrollRoot:C}=v;if(v!==this.root&&b&&x.layoutScroll){if(C){gl(h,u);const{scroll:_}=this.root;_&&(Nf(h.x,-_.x),Nf(h.y,-_.y))}Nf(h.x,b.x),Nf(h.y,b.y)}}return h}applyTransform(u,h=!1){const m=si();gl(m,u);for(let v=0;v<this.path.length;v++){const b=this.path[v];!h&&b.options.layoutScroll&&b.scroll&&b!==b.root&&km(m,{x:-b.scroll.x,y:-b.scroll.y}),_f(b.latestValues)&&km(m,b.latestValues)}return _f(this.latestValues)&&km(m,this.latestValues),m}removeTransform(u){var h;const m=si();gl(m,u);for(let v=0;v<this.path.length;v++){const b=this.path[v];if(!b.instance||!_f(b.latestValues))continue;tz(b.latestValues)&&b.updateSnapshot();const x=si(),C=b.measure();gl(x,C),FL(m,b.latestValues,(h=b.snapshot)===null||h===void 0?void 0:h.layout,x)}return _f(this.latestValues)&&FL(m,this.latestValues),m}setTargetDelta(u){this.targetDelta=u,this.root.scheduleUpdateProjection()}setOptions(u){this.options={...this.options,...u,crossfade:u.crossfade!==void 0?u.crossfade:!0}}clearMeasurements(){this.scroll=void 0,this.layout=void 0,this.snapshot=void 0,this.prevTransformTemplateValue=void 0,this.targetDelta=void 0,this.target=void 0,this.isLayoutDirty=!1}resolveTargetDelta(){var u;const{layout:h,layoutId:m}=this.options;!this.layout||!(h||m)||(!this.targetDelta&&!this.relativeTarget&&(this.relativeParent=this.getClosestProjectingParent(),this.relativeParent&&this.relativeParent.layout&&(this.relativeTarget=si(),this.relativeTargetOrigin=si(),Uy(this.relativeTargetOrigin,this.layout.actual,this.relativeParent.layout.actual),gl(this.relativeTarget,this.relativeTargetOrigin))),!(!this.relativeTarget&&!this.targetDelta)&&(this.target||(this.target=si(),this.targetWithTransforms=si()),this.relativeTarget&&this.relativeTargetOrigin&&((u=this.relativeParent)===null||u===void 0?void 0:u.target)?wq(this.target,this.relativeTarget,this.relativeParent.target):this.targetDelta?(Boolean(this.resumingFrom)?this.target=this.applyTransform(this.layout.actual):gl(this.target,this.layout.actual),nz(this.target,this.targetDelta)):gl(this.target,this.layout.actual),this.attemptToResolveRelativeTarget&&(this.attemptToResolveRelativeTarget=!1,this.relativeParent=this.getClosestProjectingParent(),this.relativeParent&&Boolean(this.relativeParent.resumingFrom)===Boolean(this.resumingFrom)&&!this.relativeParent.options.layoutScroll&&this.relativeParent.target&&(this.relativeTarget=si(),this.relativeTargetOrigin=si(),Uy(this.relativeTargetOrigin,this.target,this.relativeParent.target),gl(this.relativeTarget,this.relativeTargetOrigin)))))}getClosestProjectingParent(){if(!(!this.parent||_f(this.parent.latestValues)))return(this.parent.relativeTarget||this.parent.targetDelta)&&this.parent.layout?this.parent:this.parent.getClosestProjectingParent()}calcProjection(){var u;const{layout:h,layoutId:m}=this.options;if(this.isTreeAnimating=Boolean(((u=this.parent)===null||u===void 0?void 0:u.isTreeAnimating)||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(h||m))return;const v=this.getLead();gl(this.layoutCorrected,this.layout.actual),kq(this.layoutCorrected,this.treeScale,this.path,Boolean(this.resumingFrom)||this!==v);const{target:b}=v;if(!b)return;this.projectionDelta||(this.projectionDelta=jy(),this.projectionDeltaWithTransform=jy());const x=this.treeScale.x,C=this.treeScale.y,_=this.projectionTransform;By(this.projectionDelta,this.layoutCorrected,b,this.latestValues),this.projectionTransform=UL(this.projectionDelta,this.treeScale),(this.projectionTransform!==_||this.treeScale.x!==x||this.treeScale.y!==C)&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",b))}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(u=!0){var h,m,v;(m=(h=this.options).scheduleRender)===null||m===void 0||m.call(h),u&&((v=this.getStack())===null||v===void 0||v.scheduleRender()),this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}setAnimationOrigin(u,h=!1){var m;const v=this.snapshot,b=v?.latestValues||{},x={...this.latestValues},C=jy();this.relativeTarget=this.relativeTargetOrigin=void 0,this.attemptToResolveRelativeTarget=!h;const _=si(),R=v?.isShared,A=(((m=this.getStack())===null||m===void 0?void 0:m.members.length)||0)<=1,M=Boolean(R&&!A&&this.options.crossfade===!0&&!this.path.some(FK));this.animationProgress=0,this.mixTargetDelta=j=>{var I;const z=j/1e3;HL(C.x,u.x,z),HL(C.y,u.y,z),this.setTargetDelta(C),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&((I=this.relativeParent)===null||I===void 0?void 0:I.layout)&&(Uy(_,this.layout.actual,this.relativeParent.layout.actual),LK(this.relativeTarget,this.relativeTargetOrigin,_,z)),R&&(this.animationValues=x,vK(x,b,this.latestValues,z,M,A)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=z},this.mixTargetDelta(0)}startAnimation(u){var h,m;this.notifyListeners("animationStart"),(h=this.currentAnimation)===null||h===void 0||h.stop(),this.resumingFrom&&((m=this.resumingFrom.currentAnimation)===null||m===void 0||m.stop()),this.pendingAnimation&&(sb.update(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=fu.update(()=>{Iy.hasAnimatedSinceResize=!0,this.currentAnimation=hK(0,$L,{...u,onUpdate:v=>{var b;this.mixTargetDelta(v),(b=u.onUpdate)===null||b===void 0||b.call(u,v)},onComplete:()=>{var v;(v=u.onComplete)===null||v===void 0||v.call(u),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){var u;this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0),(u=this.getStack())===null||u===void 0||u.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){var u;this.currentAnimation&&((u=this.mixTargetDelta)===null||u===void 0||u.call(this,$L),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const u=this.getLead();let{targetWithTransforms:h,target:m,layout:v,latestValues:b}=u;if(!(!h||!m||!v)){if(this!==u&&this.layout&&v&&gz(this.options.animationType,this.layout.actual,v.actual)){m=this.target||si();const x=Ko(this.layout.actual.x);m.x.min=u.target.x.min,m.x.max=m.x.min+x;const C=Ko(this.layout.actual.y);m.y.min=u.target.y.min,m.y.max=m.y.min+C}gl(h,m),km(h,b),By(this.projectionDeltaWithTransform,this.layoutCorrected,h,b)}}registerSharedNode(u,h){var m,v,b;this.sharedNodes.has(u)||this.sharedNodes.set(u,new CK),this.sharedNodes.get(u).add(h),h.promote({transition:(m=h.options.initialPromotionConfig)===null||m===void 0?void 0:m.transition,preserveFollowOpacity:(b=(v=h.options.initialPromotionConfig)===null||v===void 0?void 0:v.shouldPreserveFollowOpacity)===null||b===void 0?void 0:b.call(v,h)})}isLead(){const u=this.getStack();return u?u.lead===this:!0}getLead(){var u;const{layoutId:h}=this.options;return h?((u=this.getStack())===null||u===void 0?void 0:u.lead)||this:this}getPrevLead(){var u;const{layoutId:h}=this.options;return h?(u=this.getStack())===null||u===void 0?void 0:u.prevLead:void 0}getStack(){const{layoutId:u}=this.options;if(u)return this.root.sharedNodes.get(u)}promote({needsReset:u,transition:h,preserveFollowOpacity:m}={}){const v=this.getStack();v&&v.promote(this,m),u&&(this.projectionDelta=void 0,this.needsReset=!0),h&&this.setOptions({transition:h})}relegate(){const u=this.getStack();return u?u.relegate(this):!1}resetRotation(){const{visualElement:u}=this.options;if(!u)return;let h=!1;const m={};for(let v=0;v<jL.length;v++){const b=jL[v],x="rotate"+b;!u.getStaticValue(x)||(h=!0,m[x]=u.getStaticValue(x),u.setStaticValue(x,0))}if(!!h){u?.syncRender();for(const v in m)u.setStaticValue(v,m[v]);u.scheduleRender()}}getProjectionStyles(u={}){var h,m,v;const b={};if(!this.instance||this.isSVG)return b;if(this.isVisible)b.visibility="";else return{visibility:"hidden"};const x=(h=this.options.visualElement)===null||h===void 0?void 0:h.getProps().transformTemplate;if(this.needsReset)return this.needsReset=!1,b.opacity="",b.pointerEvents=Ex(u.pointerEvents)||"",b.transform=x?x(this.latestValues,""):"none",b;const C=this.getLead();if(!this.projectionDelta||!this.layout||!C.target){const M={};return this.options.layoutId&&(M.opacity=this.latestValues.opacity!==void 0?this.latestValues.opacity:1,M.pointerEvents=Ex(u.pointerEvents)||""),this.hasProjected&&!_f(this.latestValues)&&(M.transform=x?x({},""):"none",this.hasProjected=!1),M}const _=C.animationValues||C.latestValues;this.applyTransformsToTarget(),b.transform=UL(this.projectionDeltaWithTransform,this.treeScale,_),x&&(b.transform=x(_,b.transform));const{x:R,y:A}=this.projectionDelta;b.transformOrigin=`${R.origin*100}% ${A.origin*100}% 0`,C.animationValues?b.opacity=C===this?(v=(m=_.opacity)!==null&&m!==void 0?m:this.latestValues.opacity)!==null&&v!==void 0?v:1:this.preserveOpacity?this.latestValues.opacity:_.opacityExit:b.opacity=C===this?_.opacity!==void 0?_.opacity:"":_.opacityExit!==void 0?_.opacityExit:0;for(const M in qx){if(_[M]===void 0)continue;const{correct:j,applyTo:I}=qx[M],z=j(_[M],C);if(I){const B=I.length;for(let $=0;$<B;$++)b[I[$]]=z}else b[M]=z}return this.options.layoutId&&(b.pointerEvents=C===this?Ex(u.pointerEvents)||"":"none"),b}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(u=>{var h;return(h=u.currentAnimation)===null||h===void 0?void 0:h.stop()}),this.root.nodes.forEach(VL),this.root.sharedNodes.clear()}}}function NK(e){e.updateLayout()}function RK(e){var t,r,i;const s=((t=e.resumeFrom)===null||t===void 0?void 0:t.snapshot)||e.snapshot;if(e.isLead()&&e.layout&&s&&e.hasListeners("didUpdate")){const{actual:c,measured:u}=e.layout,{animationType:h}=e.options;h==="size"?ru(C=>{const _=s.isShared?s.measured[C]:s.layout[C],R=Ko(_);_.min=c[C].min,_.max=_.min+R}):gz(h,s.layout,c)&&ru(C=>{const _=s.isShared?s.measured[C]:s.layout[C],R=Ko(c[C]);_.max=_.min+R});const m=jy();By(m,c,s.layout);const v=jy();s.isShared?By(v,e.applyTransform(u,!0),s.measured):By(v,c,s.layout);const b=!hz(m);let x=!1;if(!e.resumeFrom&&(e.relativeParent=e.getClosestProjectingParent(),e.relativeParent&&!e.relativeParent.resumeFrom)){const{snapshot:C,layout:_}=e.relativeParent;if(C&&_){const R=si();Uy(R,s.layout,C.layout);const A=si();Uy(A,c,_.actual),mz(R,A)||(x=!0)}}e.notifyListeners("didUpdate",{layout:c,snapshot:s,delta:v,layoutDelta:m,hasLayoutChanged:b,hasRelativeTargetChanged:x})}else e.isLead()&&((i=(r=e.options).onExitComplete)===null||i===void 0||i.call(r));e.options.transition=void 0}function OK(e){e.clearSnapshot()}function VL(e){e.clearMeasurements()}function AK(e){const{visualElement:t}=e.options;t?.getProps().onBeforeLayoutMeasure&&t.notifyBeforeLayoutMeasure(),e.resetTransform()}function kK(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0}function DK(e){e.resolveTargetDelta()}function PK(e){e.calcProjection()}function MK(e){e.resetRotation()}function IK(e){e.removeLeadSnapshot()}function HL(e,t,r){e.translate=jr(t.translate,0,r),e.scale=jr(t.scale,1,r),e.origin=t.origin,e.originPoint=t.originPoint}function WL(e,t,r,i){e.min=jr(t.min,r.min,i),e.max=jr(t.max,r.max,i)}function LK(e,t,r,i){WL(e.x,t.x,r.x,i),WL(e.y,t.y,r.y,i)}function FK(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}const zK={duration:.45,ease:[.4,0,.1,1]};function BK(e,t){let r=e.root;for(let c=e.path.length-1;c>=0;c--)if(Boolean(e.path[c].instance)){r=e.path[c];break}const s=(r&&r!==e.root?r.instance:document).querySelector(`[data-projection-id="${t}"]`);s&&e.mount(s,!0)}function GL(e){e.min=Math.round(e.min),e.max=Math.round(e.max)}function YL(e){GL(e.x),GL(e.y)}function gz(e,t,r){return e==="position"||e==="preserve-aspect"&&!wK(BL(t),BL(r))}const UK=vz({attachResizeListener:(e,t)=>jw(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),YR={current:void 0},jK=vz({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!YR.current){const e=new UK(0,{});e.mount(window),e.setOptions({layoutScroll:!0}),YR.current=e}return YR.current},resetTransform:(e,t)=>{e.style.transform=t!==void 0?t:"none"},checkIsScrollRoot:e=>Boolean(window.getComputedStyle(e).position==="fixed")}),$K={...bq,...AY,...Uq,...pK},Ol=SW((e,t)=>iG(e,t,$K,sK,jK));function yz(){const e=D.exports.useRef(!1);return Yx(()=>(e.current=!0,()=>{e.current=!1}),[]),e}function VK(){const e=yz(),[t,r]=D.exports.useState(0),i=D.exports.useCallback(()=>{e.current&&r(t+1)},[t]);return[D.exports.useCallback(()=>fu.postRender(i),[i]),t]}var HK="/Users/spencer/Documents/Code/stable-diffusion/frontend/node_modules/framer-motion/dist/es/components/AnimatePresence/PopChild.mjs";class WK extends D.exports.Component{getSnapshotBeforeUpdate(t){const r=this.props.childRef.current;if(r&&t.isPresent&&!this.props.isPresent){const i=this.props.sizeRef.current;i.height=r.offsetHeight||0,i.width=r.offsetWidth||0,i.top=r.offsetTop,i.left=r.offsetLeft}return null}componentDidUpdate(){}render(){return this.props.children}}function GK({children:e,isPresent:t}){const r=D.exports.useId(),i=D.exports.useRef(null),s=D.exports.useRef({width:0,height:0,top:0,left:0});return D.exports.useInsertionEffect(()=>{const{width:c,height:u,top:h,left:m}=s.current;if(t||!i.current||!c||!u)return;i.current.dataset.motionPopId=r;const v=document.createElement("style");return document.head.appendChild(v),v.sheet&&v.sheet.insertRule(`
|
|
[data-motion-pop-id="${r}"] {
|
|
position: absolute !important;
|
|
width: ${c}px !important;
|
|
height: ${u}px !important;
|
|
top: ${h}px !important;
|
|
left: ${m}px !important;
|
|
}
|
|
`),()=>{document.head.removeChild(v)}},[t]),k(WK,{isPresent:t,childRef:i,sizeRef:s,children:D.exports.cloneElement(e,{ref:i})},void 0,!1,{fileName:HK,lineNumber:68,columnNumber:13},this)}var qL="/Users/spencer/Documents/Code/stable-diffusion/frontend/node_modules/framer-motion/dist/es/components/AnimatePresence/PresenceChild.mjs";const qR=({children:e,initial:t,isPresent:r,onExitComplete:i,custom:s,presenceAffectsLayout:c,mode:u})=>{const h=Uw(YK),m=D.exports.useId(),v=D.exports.useMemo(()=>({id:m,initial:t,isPresent:r,custom:s,onExitComplete:b=>{h.set(b,!0);for(const x of h.values())if(!x)return;i&&i()},register:b=>(h.set(b,!1),()=>h.delete(b))}),c?void 0:[r]);return D.exports.useMemo(()=>{h.forEach((b,x)=>h.set(x,!1))},[r]),D.exports.useEffect(()=>{!r&&!h.size&&i&&i()},[r]),u==="popLayout"&&(e=k(GK,{isPresent:r,children:e},void 0,!1,{fileName:qL,lineNumber:48,columnNumber:20},globalThis)),k(tv.Provider,{value:v,children:e},void 0,!1,{fileName:qL,lineNumber:50,columnNumber:13},globalThis)};function YK(){return new Map}var KR="/Users/spencer/Documents/Code/stable-diffusion/frontend/node_modules/framer-motion/dist/es/components/AnimatePresence/index.mjs";const Tm=e=>e.key||"";function qK(e,t){e.forEach(r=>{const i=Tm(r);t.set(i,r)})}function KK(e){const t=[];return D.exports.Children.forEach(e,r=>{D.exports.isValidElement(r)&&t.push(r)}),t}const gc=({children:e,custom:t,initial:r=!0,onExitComplete:i,exitBeforeEnter:s,presenceAffectsLayout:c=!0,mode:u="sync"})=>{s&&(u="wait",L2(!1,"Replace exitBeforeEnter with mode='wait'"));let[h]=VK();const m=D.exports.useContext(b2).forceRender;m&&(h=m);const v=yz(),b=KK(e);let x=b;const C=new Set,_=D.exports.useRef(x),R=D.exports.useRef(new Map).current,A=D.exports.useRef(!0);if(Yx(()=>{A.current=!1,qK(b,R),_.current=x}),N2(()=>{A.current=!0,R.clear(),C.clear()}),A.current)return k(bo,{children:x.map(z=>k(qR,{isPresent:!0,initial:r?void 0:!1,presenceAffectsLayout:c,mode:u,children:z},Tm(z),!1,{fileName:KR,lineNumber:97,columnNumber:92},globalThis))},void 0,!1);x=[...x];const M=_.current.map(Tm),j=b.map(Tm),I=M.length;for(let z=0;z<I;z++){const B=M[z];j.indexOf(B)===-1&&C.add(B)}return u==="wait"&&C.size&&(x=[]),C.forEach(z=>{if(j.indexOf(z)!==-1)return;const B=R.get(z);if(!B)return;const $=M.indexOf(z),K=()=>{R.delete(z),C.delete(z);const X=_.current.findIndex(de=>de.key===z);if(_.current.splice(X,1),!C.size){if(_.current=b,v.current===!1)return;h(),i&&i()}};x.splice($,0,k(qR,{isPresent:!1,onExitComplete:K,custom:t,presenceAffectsLayout:c,mode:u,children:B},Tm(B),!1,{fileName:KR,lineNumber:143,columnNumber:52},globalThis))}),x=x.map(z=>{const B=z.key;return C.has(B)?z:k(qR,{isPresent:!0,presenceAffectsLayout:c,mode:u,children:z},Tm(z),!1,{fileName:KR,lineNumber:149,columnNumber:46},globalThis)}),I2!=="production"&&u==="wait"&&x.length>1&&console.warn(`You're attempting to animate multiple children within AnimatePresence, but its mode is set to "wait". This will lead to odd visual behaviour.`),k(bo,{children:C.size?x:x.map(z=>D.exports.cloneElement(z))},void 0,!1)};var Ab="/Users/spencer/Documents/Code/stable-diffusion/frontend/node_modules/@chakra-ui/transition/dist/index.esm.js",kb=(...e)=>e.filter(Boolean).join(" ");function XK(){return!0}var ZK=e=>{const{condition:t,message:r}=e;t&&XK()&&console.warn(r)},Np={ease:[.25,.1,.25,1],easeIn:[.4,0,1,1],easeOut:[0,0,.2,1],easeInOut:[.4,0,.2,1]},Cy={scale:{enter:{scale:1},exit:{scale:.95}},fade:{enter:{opacity:1},exit:{opacity:0}},pushLeft:{enter:{x:"100%"},exit:{x:"-30%"}},pushRight:{enter:{x:"-100%"},exit:{x:"30%"}},pushUp:{enter:{y:"100%"},exit:{y:"-30%"}},pushDown:{enter:{y:"-100%"},exit:{y:"30%"}},slideLeft:{position:{left:0,top:0,bottom:0,width:"100%"},enter:{x:0,y:0},exit:{x:"-100%",y:0}},slideRight:{position:{right:0,top:0,bottom:0,width:"100%"},enter:{x:0,y:0},exit:{x:"100%",y:0}},slideUp:{position:{top:0,left:0,right:0,maxWidth:"100vw"},enter:{x:0,y:0},exit:{x:0,y:"-100%"}},slideDown:{position:{bottom:0,left:0,right:0,maxWidth:"100vw"},enter:{x:0,y:0},exit:{x:0,y:"100%"}}};function oA(e){switch(e?.direction??"right"){case"right":return Cy.slideRight;case"left":return Cy.slideLeft;case"bottom":return Cy.slideDown;case"top":return Cy.slideUp;default:return Cy.slideRight}}var Op={enter:{duration:.2,ease:Np.easeOut},exit:{duration:.1,ease:Np.easeIn}},El={enter:(e,t)=>({...e,delay:typeof t=="number"?t:t?.enter}),exit:(e,t)=>({...e,delay:typeof t=="number"?t:t?.exit})},QK=e=>e!=null&&parseInt(e.toString(),10)>0,KL={exit:{height:{duration:.2,ease:Np.ease},opacity:{duration:.3,ease:Np.ease}},enter:{height:{duration:.3,ease:Np.ease},opacity:{duration:.4,ease:Np.ease}}},JK={exit:({animateOpacity:e,startingHeight:t,transition:r,transitionEnd:i,delay:s})=>({...e&&{opacity:QK(t)?1:0},height:t,transitionEnd:i?.exit,transition:r?.exit??El.exit(KL.exit,s)}),enter:({animateOpacity:e,endingHeight:t,transition:r,transitionEnd:i,delay:s})=>({...e&&{opacity:1},height:t,transitionEnd:i?.enter,transition:r?.enter??El.enter(KL.enter,s)})},bz=D.exports.forwardRef((e,t)=>{const{in:r,unmountOnExit:i,animateOpacity:s=!0,startingHeight:c=0,endingHeight:u="auto",style:h,className:m,transition:v,transitionEnd:b,...x}=e,[C,_]=D.exports.useState(!1);D.exports.useEffect(()=>{const I=setTimeout(()=>{_(!0)});return()=>clearTimeout(I)},[]),ZK({condition:Boolean(c>0&&i),message:"startingHeight and unmountOnExit are mutually exclusive. You can't use them together"});const R=parseFloat(c.toString())>0,A={startingHeight:c,endingHeight:u,animateOpacity:s,transition:C?v:{enter:{duration:0}},transitionEnd:{enter:b?.enter,exit:i?b?.exit:{...b?.exit,display:R?"block":"none"}}},M=i?r:!0,j=r||i?"enter":"exit";return k(gc,{initial:!1,custom:A,children:M&&Ue.createElement(Ol.div,{ref:t,...x,className:kb("chakra-collapse",m),style:{overflow:"hidden",display:"block",...h},custom:A,variants:JK,initial:i?"exit":!1,animate:j,exit:"exit"})},void 0,!1,{fileName:Ab,lineNumber:190,columnNumber:26},globalThis)});bz.displayName="Collapse";var eX={enter:({transition:e,transitionEnd:t,delay:r}={})=>({opacity:1,transition:e?.enter??El.enter(Op.enter,r),transitionEnd:t?.enter}),exit:({transition:e,transitionEnd:t,delay:r}={})=>({opacity:0,transition:e?.exit??El.exit(Op.exit,r),transitionEnd:t?.exit})},Sz={initial:"exit",animate:"enter",exit:"exit",variants:eX},tX=D.exports.forwardRef(function(t,r){const{unmountOnExit:i,in:s,className:c,transition:u,transitionEnd:h,delay:m,...v}=t,b=s||i?"enter":"exit",x=i?s&&i:!0,C={transition:u,transitionEnd:h,delay:m};return k(gc,{custom:C,children:x&&Ue.createElement(Ol.div,{ref:r,className:kb("chakra-fade",c),custom:C,...Sz,animate:b,...v})},void 0,!1,{fileName:Ab,lineNumber:248,columnNumber:26},this)});tX.displayName="Fade";var nX={exit:({reverse:e,initialScale:t,transition:r,transitionEnd:i,delay:s})=>({opacity:0,...e?{scale:t,transitionEnd:i?.exit}:{transitionEnd:{scale:t,...i?.exit}},transition:r?.exit??El.exit(Op.exit,s)}),enter:({transitionEnd:e,transition:t,delay:r})=>({opacity:1,scale:1,transition:t?.enter??El.enter(Op.enter,r),transitionEnd:e?.enter})},xz={initial:"exit",animate:"enter",exit:"exit",variants:nX},rX=D.exports.forwardRef(function(t,r){const{unmountOnExit:i,in:s,reverse:c=!0,initialScale:u=.95,className:h,transition:m,transitionEnd:v,delay:b,...x}=t,C=i?s&&i:!0,_=s||i?"enter":"exit",R={initialScale:u,reverse:c,transition:m,transitionEnd:v,delay:b};return k(gc,{custom:R,children:C&&Ue.createElement(Ol.div,{ref:r,className:kb("chakra-offset-slide",h),...xz,animate:_,custom:R,...x})},void 0,!1,{fileName:Ab,lineNumber:301,columnNumber:26},this)});rX.displayName="ScaleFade";var XL={exit:{duration:.15,ease:Np.easeInOut},enter:{type:"spring",damping:25,stiffness:180}},aX={exit:({direction:e,transition:t,transitionEnd:r,delay:i})=>{const{exit:s}=oA({direction:e});return{...s,transition:t?.exit??El.exit(XL.exit,i),transitionEnd:r?.exit}},enter:({direction:e,transitionEnd:t,transition:r,delay:i})=>{const{enter:s}=oA({direction:e});return{...s,transition:r?.enter??El.enter(XL.enter,i),transitionEnd:t?.enter}}},wz=D.exports.forwardRef(function(t,r){const{direction:i="right",style:s,unmountOnExit:c,in:u,className:h,transition:m,transitionEnd:v,delay:b,...x}=t,C=oA({direction:i}),_=Object.assign({position:"fixed"},C.position,s),R=c?u&&c:!0,A=u||c?"enter":"exit",M={transitionEnd:v,transition:m,direction:i,delay:b};return k(gc,{custom:M,children:R&&Ue.createElement(Ol.div,{...x,ref:r,initial:"exit",className:kb("chakra-slide",h),animate:A,exit:"exit",custom:M,variants:aX,style:_})},void 0,!1,{fileName:Ab,lineNumber:366,columnNumber:26},this)});wz.displayName="Slide";var iX={initial:({offsetX:e,offsetY:t,transition:r,transitionEnd:i,delay:s})=>({opacity:0,x:e,y:t,transition:r?.exit??El.exit(Op.exit,s),transitionEnd:i?.exit}),enter:({transition:e,transitionEnd:t,delay:r})=>({opacity:1,x:0,y:0,transition:e?.enter??El.enter(Op.enter,r),transitionEnd:t?.enter}),exit:({offsetY:e,offsetX:t,transition:r,transitionEnd:i,reverse:s,delay:c})=>{const u={x:t,y:e};return{opacity:0,transition:r?.exit??El.exit(Op.exit,c),...s?{...u,transitionEnd:i?.exit}:{transitionEnd:{...u,...i?.exit}}}}},sA={initial:"initial",animate:"enter",exit:"exit",variants:iX},oX=D.exports.forwardRef(function(t,r){const{unmountOnExit:i,in:s,reverse:c=!0,className:u,offsetX:h=0,offsetY:m=8,transition:v,transitionEnd:b,delay:x,...C}=t,_=i?s&&i:!0,R=s||i?"enter":"exit",A={offsetX:h,offsetY:m,reverse:c,transition:v,transitionEnd:b,delay:x};return k(gc,{custom:A,children:_&&Ue.createElement(Ol.div,{ref:r,className:kb("chakra-offset-slide",u),custom:A,...sA,animate:R,...C})},void 0,!1,{fileName:Ab,lineNumber:441,columnNumber:26},this)});oX.displayName="SlideFade";var lA="/Users/spencer/Documents/Code/stable-diffusion/frontend/node_modules/@chakra-ui/accordion/dist/index.esm.js",Db=(...e)=>e.filter(Boolean).join(" ");function sX(){return!0}var qw=e=>{const{condition:t,message:r}=e;t&&sX()&&console.warn(r)};function XR(...e){return function(r){e.some(i=>(i?.(r),r?.defaultPrevented))}}var[lX,Kw]=Xr({name:"AccordionStylesContext",hookName:"useAccordionStyles",providerName:"<Accordion />"}),[uX,W2]=Xr({name:"AccordionItemContext",hookName:"useAccordionItemContext",providerName:"<AccordionItem />"}),[cX,fme,fX,dX]=iW(),yp=et(function(t,r){const{getButtonProps:i}=W2(),s=i(t,r),c=Kw(),u={display:"flex",alignItems:"center",width:"100%",outline:0,...c.button};return Ue.createElement(Ge.button,{...s,className:Db("chakra-accordion__button",t.className),__css:u})});yp.displayName="AccordionButton";function pX(e){const{onChange:t,defaultIndex:r,index:i,allowMultiple:s,allowToggle:c,...u}=e;vX(e),gX(e);const h=fX(),[m,v]=D.exports.useState(-1);D.exports.useEffect(()=>()=>{v(-1)},[]);const[b,x]=oW({value:i,defaultValue(){return s?r??[]:r??-1},onChange:t});return{index:b,setIndex:x,htmlProps:u,getAccordionItemProps:_=>{let R=!1;return _!==null&&(R=Array.isArray(b)?b.includes(_):b===_),{isOpen:R,onChange:M=>{if(_!==null)if(s&&Array.isArray(b)){const j=M?b.concat(_):b.filter(I=>I!==_);x(j)}else M?x(_):c&&x(-1)}}},focusedIndex:m,setFocusedIndex:v,descendants:h}}var[hX,G2]=Xr({name:"AccordionContext",hookName:"useAccordionContext",providerName:"Accordion"});function mX(e){const{isDisabled:t,isFocusable:r,id:i,...s}=e,{getAccordionItemProps:c,setFocusedIndex:u}=G2(),h=D.exports.useRef(null),m=D.exports.useId(),v=i??m,b=`accordion-button-${v}`,x=`accordion-panel-${v}`;yX(e);const{register:C,index:_,descendants:R}=dX({disabled:t&&!r}),{isOpen:A,onChange:M}=c(_===-1?null:_);bX({isOpen:A,isDisabled:t});const j=()=>{M?.(!0)},I=()=>{M?.(!1)},z=D.exports.useCallback(()=>{M?.(!A),u(_)},[_,u,A,M]),B=D.exports.useCallback(de=>{const se={ArrowDown:()=>{const be=R.nextEnabled(_);be?.node.focus()},ArrowUp:()=>{const be=R.prevEnabled(_);be?.node.focus()},Home:()=>{const be=R.firstEnabled();be?.node.focus()},End:()=>{const be=R.lastEnabled();be?.node.focus()}}[de.key];se&&(de.preventDefault(),se(de))},[R,_]),$=D.exports.useCallback(()=>{u(_)},[u,_]),K=D.exports.useCallback(function(ve={},se=null){return{...ve,type:"button",ref:Zi(C,h,se),id:b,disabled:!!t,"aria-expanded":!!A,"aria-controls":x,onClick:XR(ve.onClick,z),onFocus:XR(ve.onFocus,$),onKeyDown:XR(ve.onKeyDown,B)}},[b,t,A,z,$,B,x,C]),X=D.exports.useCallback(function(ve={},se=null){return{...ve,ref:se,role:"region",id:x,"aria-labelledby":b,hidden:!A}},[b,A,x]);return{isOpen:A,isDisabled:t,isFocusable:r,onOpen:j,onClose:I,getButtonProps:K,getPanelProps:X,htmlProps:s}}function vX(e){const t=e.index||e.defaultIndex,r=t==null&&!Array.isArray(t)&&e.allowMultiple;qw({condition:!!r,message:`If 'allowMultiple' is passed, then 'index' or 'defaultIndex' must be an array. You passed: ${typeof t},`})}function gX(e){qw({condition:!!(e.allowMultiple&&e.allowToggle),message:"If 'allowMultiple' is passed, 'allowToggle' will be ignored. Either remove 'allowToggle' or 'allowMultiple' depending on whether you want multiple accordions visible or not"})}function yX(e){qw({condition:!!(e.isFocusable&&!e.isDisabled),message:`Using only 'isFocusable', this prop is reserved for situations where you pass 'isDisabled' but you still want the element to receive focus (A11y). Either remove it or pass 'isDisabled' as well.
|
|
`})}function bX(e){qw({condition:e.isOpen&&!!e.isDisabled,message:"Cannot open a disabled accordion item"})}function bp(e){const{isOpen:t,isDisabled:r}=W2(),{reduceMotion:i}=G2(),s=Db("chakra-accordion__icon",e.className),c=Kw(),u={opacity:r?.4:1,transform:t?"rotate(-180deg)":void 0,transition:i?void 0:"transform 0.2s",transformOrigin:"center",...c.icon};return k(Rl,{viewBox:"0 0 24 24","aria-hidden":!0,className:s,__css:u,...e,children:k("path",{fill:"currentColor",d:"M16.59 8.59L12 13.17 7.41 8.59 6 10l6 6 6-6z"},void 0,!1,{fileName:lA,lineNumber:282,columnNumber:22},this)},void 0,!1,{fileName:lA,lineNumber:276,columnNumber:26},this)}bp.displayName="AccordionIcon";var Sp=et(function(t,r){const{children:i,className:s}=t,{htmlProps:c,...u}=mX(t),m={...Kw().container,overflowAnchor:"none"},v=D.exports.useMemo(()=>u,[u]);return Ue.createElement(uX,{value:v},Ue.createElement(Ge.div,{ref:r,...c,className:Db("chakra-accordion__item",s),__css:m},typeof i=="function"?i({isExpanded:!!u.isOpen,isDisabled:!!u.isDisabled}):i))});Sp.displayName="AccordionItem";var xp=et(function(t,r){const{reduceMotion:i}=G2(),{getPanelProps:s,isOpen:c}=W2(),u=s(t,r),h=Db("chakra-accordion__panel",t.className),m=Kw();i||delete u.hidden;const v=Ue.createElement(Ge.div,{...u,__css:m.panel,className:h});return i?v:k(bz,{in:c,children:v},void 0,!1,{fileName:lA,lineNumber:336,columnNumber:28},this)});xp.displayName="AccordionPanel";var Cz=et(function({children:t,reduceMotion:r,...i},s){const c=Qo("Accordion",i),u=mr(i),{htmlProps:h,descendants:m,...v}=pX(u),b=D.exports.useMemo(()=>({...v,reduceMotion:!!r}),[v,r]);return Ue.createElement(cX,{value:m},Ue.createElement(hX,{value:b},Ue.createElement(lX,{value:c},Ue.createElement(Ge.div,{ref:s,...h,className:Db("chakra-accordion",i.className),__css:c.root},t))))});Cz.displayName="Accordion";var SX=(...e)=>e.filter(Boolean).join(" "),xX=Cb({"0%":{transform:"rotate(0deg)"},"100%":{transform:"rotate(360deg)"}}),Xw=et((e,t)=>{const r=Qi("Spinner",e),{label:i="Loading...",thickness:s="2px",speed:c="0.45s",emptyColor:u="transparent",className:h,...m}=mr(e),v=SX("chakra-spinner",h),b={display:"inline-block",borderColor:"currentColor",borderStyle:"solid",borderRadius:"99999px",borderWidth:s,borderBottomColor:u,borderLeftColor:u,animation:`${xX} ${c} linear infinite`,...r};return Ue.createElement(Ge.div,{ref:t,__css:b,className:v,...m},i&&Ue.createElement(Ge.span,{srOnly:!0},i))});Xw.displayName="Spinner";var Lp="/Users/spencer/Documents/Code/stable-diffusion/frontend/node_modules/@chakra-ui/alert/dist/index.esm.js",Zw=(...e)=>e.filter(Boolean).join(" ");function wX(e){return k(Rl,{viewBox:"0 0 24 24",...e,children:k("path",{fill:"currentColor",d:"M12,0A12,12,0,1,0,24,12,12.014,12.014,0,0,0,12,0Zm6.927,8.2-6.845,9.289a1.011,1.011,0,0,1-1.43.188L5.764,13.769a1,1,0,1,1,1.25-1.562l4.076,3.261,6.227-8.451A1,1,0,1,1,18.927,8.2Z"},void 0,!1,{fileName:Lp,lineNumber:24,columnNumber:22},this)},void 0,!1,{fileName:Lp,lineNumber:21,columnNumber:26},this)}function CX(e){return k(Rl,{viewBox:"0 0 24 24",...e,children:k("path",{fill:"currentColor",d:"M12,0A12,12,0,1,0,24,12,12.013,12.013,0,0,0,12,0Zm.25,5a1.5,1.5,0,1,1-1.5,1.5A1.5,1.5,0,0,1,12.25,5ZM14.5,18.5h-4a1,1,0,0,1,0-2h.75a.25.25,0,0,0,.25-.25v-4.5a.25.25,0,0,0-.25-.25H10.5a1,1,0,0,1,0-2h1a2,2,0,0,1,2,2v4.75a.25.25,0,0,0,.25.25h.75a1,1,0,1,1,0,2Z"},void 0,!1,{fileName:Lp,lineNumber:33,columnNumber:22},this)},void 0,!1,{fileName:Lp,lineNumber:30,columnNumber:26},this)}function ZL(e){return k(Rl,{viewBox:"0 0 24 24",...e,children:k("path",{fill:"currentColor",d:"M11.983,0a12.206,12.206,0,0,0-8.51,3.653A11.8,11.8,0,0,0,0,12.207,11.779,11.779,0,0,0,11.8,24h.214A12.111,12.111,0,0,0,24,11.791h0A11.766,11.766,0,0,0,11.983,0ZM10.5,16.542a1.476,1.476,0,0,1,1.449-1.53h.027a1.527,1.527,0,0,1,1.523,1.47,1.475,1.475,0,0,1-1.449,1.53h-.027A1.529,1.529,0,0,1,10.5,16.542ZM11,12.5v-6a1,1,0,0,1,2,0v6a1,1,0,1,1-2,0Z"},void 0,!1,{fileName:Lp,lineNumber:42,columnNumber:22},this)},void 0,!1,{fileName:Lp,lineNumber:39,columnNumber:26},this)}var[_X,EX]=Xr({name:"AlertContext",hookName:"useAlertContext",providerName:"<Alert />"}),[TX,Y2]=Xr({name:"AlertStylesContext",hookName:"useAlertStyles",providerName:"<Alert />"}),_z={info:{icon:CX,colorScheme:"blue"},warning:{icon:ZL,colorScheme:"orange"},success:{icon:wX,colorScheme:"green"},error:{icon:ZL,colorScheme:"red"},loading:{icon:Xw,colorScheme:"blue"}};function NX(e){return _z[e].colorScheme}function RX(e){return _z[e].icon}var Ez=et(function(t,r){const{status:i="info",addRole:s=!0,...c}=mr(t),u=t.colorScheme??NX(i),h=Qo("Alert",{...t,colorScheme:u}),m={width:"100%",display:"flex",alignItems:"center",position:"relative",overflow:"hidden",...h.container};return Ue.createElement(_X,{value:{status:i}},Ue.createElement(TX,{value:h},Ue.createElement(Ge.div,{role:s?"alert":void 0,ref:r,...c,className:Zw("chakra-alert",t.className),__css:m})))});Ez.displayName="Alert";var Tz=et(function(t,r){const i=Y2(),s={display:"inline",...i.description};return Ue.createElement(Ge.div,{ref:r,...t,className:Zw("chakra-alert__desc",t.className),__css:s})});Tz.displayName="AlertDescription";function Nz(e){const{status:t}=EX(),r=RX(t),i=Y2(),s=t==="loading"?i.spinner:i.icon;return Ue.createElement(Ge.span,{display:"inherit",...e,className:Zw("chakra-alert__icon",e.className),__css:s},e.children||k(r,{h:"100%",w:"100%"},void 0,!1,{fileName:Lp,lineNumber:133,columnNumber:40},this))}Nz.displayName="AlertIcon";var Rz=et(function(t,r){const i=Y2();return Ue.createElement(Ge.div,{ref:r,...t,className:Zw("chakra-alert__title",t.className),__css:i.title})});Rz.displayName="AlertTitle";var OX="/Users/spencer/Documents/Code/stable-diffusion/frontend/node_modules/@chakra-ui/image/dist/index.esm.js";function AX(e,t=[]){const r=Object.assign({},e);for(const i of t)i in r&&delete r[i];return r}function kX(e){const{loading:t,src:r,srcSet:i,onLoad:s,onError:c,crossOrigin:u,sizes:h,ignoreFallback:m}=e,[v,b]=D.exports.useState("pending");D.exports.useEffect(()=>{b(r?"loading":"pending")},[r]);const x=D.exports.useRef(),C=D.exports.useCallback(()=>{if(!r)return;_();const R=new Image;R.src=r,u&&(R.crossOrigin=u),i&&(R.srcset=i),h&&(R.sizes=h),t&&(R.loading=t),R.onload=A=>{_(),b("loaded"),s?.(A)},R.onerror=A=>{_(),b("failed"),c?.(A)},x.current=R},[r,u,i,h,s,c,t]),_=()=>{x.current&&(x.current.onload=null,x.current.onerror=null,x.current=null)};return dc(()=>{if(!m)return v==="loading"&&C(),()=>{_()}},[v,C,m]),m?"loaded":v}var DX=(e,t)=>e!=="loaded"&&t==="beforeLoadOrError"||e==="failed"&&t==="onError",aw=et(function(t,r){const{htmlWidth:i,htmlHeight:s,alt:c,...u}=t;return k("img",{width:i,height:s,ref:r,alt:c,...u},void 0,!1,{fileName:OX,lineNumber:90,columnNumber:26},this)});aw.displayName="NativeImage";var lb=et(function(t,r){const{fallbackSrc:i,fallback:s,src:c,srcSet:u,align:h,fit:m,loading:v,ignoreFallback:b,crossOrigin:x,fallbackStrategy:C="beforeLoadOrError",referrerPolicy:_,...R}=t,A=i!==void 0||s!==void 0,M=v!=null||b||!A,j=kX({...t,ignoreFallback:M}),I=DX(j,C),z={ref:r,objectFit:m,objectPosition:h,...M?R:AX(R,["onError","onLoad"])};return I?s||Ue.createElement(Ge.img,{as:aw,className:"chakra-image__placeholder",src:i,...z}):Ue.createElement(Ge.img,{as:aw,src:c,srcSet:u,crossOrigin:x,loading:v,referrerPolicy:_,className:"chakra-image",...z})});lb.displayName="Image";et((e,t)=>Ue.createElement(Ge.img,{ref:t,as:aw,className:"chakra-image",...e}));var PX=Object.create,Oz=Object.defineProperty,MX=Object.getOwnPropertyDescriptor,Az=Object.getOwnPropertyNames,IX=Object.getPrototypeOf,LX=Object.prototype.hasOwnProperty,kz=(e,t)=>function(){return t||(0,e[Az(e)[0]])((t={exports:{}}).exports,t),t.exports},FX=(e,t,r,i)=>{if(t&&typeof t=="object"||typeof t=="function")for(let s of Az(t))!LX.call(e,s)&&s!==r&&Oz(e,s,{get:()=>t[s],enumerable:!(i=MX(t,s))||i.enumerable});return e},zX=(e,t,r)=>(r=e!=null?PX(IX(e)):{},FX(t||!e||!e.__esModule?Oz(r,"default",{value:e,enumerable:!0}):r,e)),BX=kz({"../../node_modules/.pnpm/react@18.2.0/node_modules/react/cjs/react.development.js"(e,t){(function(){typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(new Error);var r="18.2.0",i=Symbol.for("react.element"),s=Symbol.for("react.portal"),c=Symbol.for("react.fragment"),u=Symbol.for("react.strict_mode"),h=Symbol.for("react.profiler"),m=Symbol.for("react.provider"),v=Symbol.for("react.context"),b=Symbol.for("react.forward_ref"),x=Symbol.for("react.suspense"),C=Symbol.for("react.suspense_list"),_=Symbol.for("react.memo"),R=Symbol.for("react.lazy"),A=Symbol.for("react.offscreen"),M=Symbol.iterator,j="@@iterator";function I(S){if(S===null||typeof S!="object")return null;var N=M&&S[M]||S[j];return typeof N=="function"?N:null}var z={current:null},B={transition:null},$={current:null,isBatchingLegacy:!1,didScheduleLegacyUpdate:!1},K={current:null},X={},de=null;function ve(S){de=S}X.setExtraStackFrame=function(S){de=S},X.getCurrentStack=null,X.getStackAddendum=function(){var S="";de&&(S+=de);var N=X.getCurrentStack;return N&&(S+=N()||""),S};var se=!1,be=!1,Xe=!1,ie=!1,ce=!1,Re={ReactCurrentDispatcher:z,ReactCurrentBatchConfig:B,ReactCurrentOwner:K};Re.ReactDebugCurrentFrame=X,Re.ReactCurrentActQueue=$;function Ce(S){{for(var N=arguments.length,V=new Array(N>1?N-1:0),G=1;G<N;G++)V[G-1]=arguments[G];Se("warn",S,V)}}function oe(S){{for(var N=arguments.length,V=new Array(N>1?N-1:0),G=1;G<N;G++)V[G-1]=arguments[G];Se("error",S,V)}}function Se(S,N,V){{var G=Re.ReactDebugCurrentFrame,te=G.getStackAddendum();te!==""&&(N+="%s",V=V.concat([te]));var Fe=V.map(function(xe){return String(xe)});Fe.unshift("Warning: "+N),Function.prototype.apply.call(console[S],console,Fe)}}var Te={};function pe(S,N){{var V=S.constructor,G=V&&(V.displayName||V.name)||"ReactClass",te=G+"."+N;if(Te[te])return;oe("Can't call %s on a component that is not yet mounted. This is a no-op, but it might indicate a bug in your application. Instead, assign to `this.state` directly or define a `state = {};` class property with the desired state in the %s component.",N,G),Te[te]=!0}}var we={isMounted:function(S){return!1},enqueueForceUpdate:function(S,N,V){pe(S,"forceUpdate")},enqueueReplaceState:function(S,N,V,G){pe(S,"replaceState")},enqueueSetState:function(S,N,V,G){pe(S,"setState")}},Ie=Object.assign,Le={};Object.freeze(Le);function Ye(S,N,V){this.props=S,this.context=N,this.refs=Le,this.updater=V||we}Ye.prototype.isReactComponent={},Ye.prototype.setState=function(S,N){if(typeof S!="object"&&typeof S!="function"&&S!=null)throw new Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,S,N,"setState")},Ye.prototype.forceUpdate=function(S){this.updater.enqueueForceUpdate(this,S,"forceUpdate")};{var st={isMounted:["isMounted","Instead, make sure to clean up subscriptions and pending requests in componentWillUnmount to prevent memory leaks."],replaceState:["replaceState","Refactor your code to use setState instead (see https://github.com/facebook/react/issues/3236)."]},mt=function(S,N){Object.defineProperty(Ye.prototype,S,{get:function(){Ce("%s(...) is deprecated in plain JavaScript React classes. %s",N[0],N[1])}})};for(var Gt in st)st.hasOwnProperty(Gt)&&mt(Gt,st[Gt])}function Qe(){}Qe.prototype=Ye.prototype;function vt(S,N,V){this.props=S,this.context=N,this.refs=Le,this.updater=V||we}var Et=vt.prototype=new Qe;Et.constructor=vt,Ie(Et,Ye.prototype),Et.isPureReactComponent=!0;function zt(){var S={current:null};return Object.seal(S),S}var We=Array.isArray;function Yt(S){return We(S)}function ye(S){{var N=typeof Symbol=="function"&&Symbol.toStringTag,V=N&&S[Symbol.toStringTag]||S.constructor.name||"Object";return V}}function Mt(S){try{return Kt(S),!1}catch{return!0}}function Kt(S){return""+S}function St(S){if(Mt(S))return oe("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",ye(S)),Kt(S)}function ar(S,N,V){var G=S.displayName;if(G)return G;var te=N.displayName||N.name||"";return te!==""?V+"("+te+")":V}function ir(S){return S.displayName||"Context"}function Bt(S){if(S==null)return null;if(typeof S.tag=="number"&&oe("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),typeof S=="function")return S.displayName||S.name||null;if(typeof S=="string")return S;switch(S){case c:return"Fragment";case s:return"Portal";case h:return"Profiler";case u:return"StrictMode";case x:return"Suspense";case C:return"SuspenseList"}if(typeof S=="object")switch(S.$$typeof){case v:var N=S;return ir(N)+".Consumer";case m:var V=S;return ir(V._context)+".Provider";case b:return ar(S,S.render,"ForwardRef");case _:var G=S.displayName||null;return G!==null?G:Bt(S.type)||"Memo";case R:{var te=S,Fe=te._payload,xe=te._init;try{return Bt(xe(Fe))}catch{return null}}}return null}var fn=Object.prototype.hasOwnProperty,An={key:!0,ref:!0,__self:!0,__source:!0},hn,Ve,Ze;Ze={};function Jt(S){if(fn.call(S,"ref")){var N=Object.getOwnPropertyDescriptor(S,"ref").get;if(N&&N.isReactWarning)return!1}return S.ref!==void 0}function Tt(S){if(fn.call(S,"key")){var N=Object.getOwnPropertyDescriptor(S,"key").get;if(N&&N.isReactWarning)return!1}return S.key!==void 0}function ke(S,N){var V=function(){hn||(hn=!0,oe("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",N))};V.isReactWarning=!0,Object.defineProperty(S,"key",{get:V,configurable:!0})}function jt(S,N){var V=function(){Ve||(Ve=!0,oe("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",N))};V.isReactWarning=!0,Object.defineProperty(S,"ref",{get:V,configurable:!0})}function xn(S){if(typeof S.ref=="string"&&K.current&&S.__self&&K.current.stateNode!==S.__self){var N=Bt(K.current.type);Ze[N]||(oe('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref',N,S.ref),Ze[N]=!0)}}var je=function(S,N,V,G,te,Fe,xe){var $e={$$typeof:i,type:S,key:N,ref:V,props:xe,_owner:Fe};return $e._store={},Object.defineProperty($e._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty($e,"_self",{configurable:!1,enumerable:!1,writable:!1,value:G}),Object.defineProperty($e,"_source",{configurable:!1,enumerable:!1,writable:!1,value:te}),Object.freeze&&(Object.freeze($e.props),Object.freeze($e)),$e};function rt(S,N,V){var G,te={},Fe=null,xe=null,$e=null,it=null;if(N!=null){Jt(N)&&(xe=N.ref,xn(N)),Tt(N)&&(St(N.key),Fe=""+N.key),$e=N.__self===void 0?null:N.__self,it=N.__source===void 0?null:N.__source;for(G in N)fn.call(N,G)&&!An.hasOwnProperty(G)&&(te[G]=N[G])}var gt=arguments.length-2;if(gt===1)te.children=V;else if(gt>1){for(var Nt=Array(gt),pt=0;pt<gt;pt++)Nt[pt]=arguments[pt+2];Object.freeze&&Object.freeze(Nt),te.children=Nt}if(S&&S.defaultProps){var Lt=S.defaultProps;for(G in Lt)te[G]===void 0&&(te[G]=Lt[G])}if(Fe||xe){var wt=typeof S=="function"?S.displayName||S.name||"Unknown":S;Fe&&ke(te,wt),xe&&jt(te,wt)}return je(S,Fe,xe,$e,it,K.current,te)}function xt(S,N){var V=je(S.type,N,S.ref,S._self,S._source,S._owner,S.props);return V}function dn(S,N,V){if(S==null)throw new Error("React.cloneElement(...): The argument must be a React element, but you passed "+S+".");var G,te=Ie({},S.props),Fe=S.key,xe=S.ref,$e=S._self,it=S._source,gt=S._owner;if(N!=null){Jt(N)&&(xe=N.ref,gt=K.current),Tt(N)&&(St(N.key),Fe=""+N.key);var Nt;S.type&&S.type.defaultProps&&(Nt=S.type.defaultProps);for(G in N)fn.call(N,G)&&!An.hasOwnProperty(G)&&(N[G]===void 0&&Nt!==void 0?te[G]=Nt[G]:te[G]=N[G])}var pt=arguments.length-2;if(pt===1)te.children=V;else if(pt>1){for(var Lt=Array(pt),wt=0;wt<pt;wt++)Lt[wt]=arguments[wt+2];te.children=Lt}return je(S.type,Fe,xe,$e,it,gt,te)}function Xt(S){return typeof S=="object"&&S!==null&&S.$$typeof===i}var wn=".",kn=":";function Nr(S){var N=/[=:]/g,V={"=":"=0",":":"=2"},G=S.replace(N,function(te){return V[te]});return"$"+G}var Tn=!1,ca=/\/+/g;function Fn(S){return S.replace(ca,"$&/")}function Cn(S,N){return typeof S=="object"&&S!==null&&S.key!=null?(St(S.key),Nr(""+S.key)):N.toString(36)}function fa(S,N,V,G,te){var Fe=typeof S;(Fe==="undefined"||Fe==="boolean")&&(S=null);var xe=!1;if(S===null)xe=!0;else switch(Fe){case"string":case"number":xe=!0;break;case"object":switch(S.$$typeof){case i:case s:xe=!0}}if(xe){var $e=S,it=te($e),gt=G===""?wn+Cn($e,0):G;if(Yt(it)){var Nt="";gt!=null&&(Nt=Fn(gt)+"/"),fa(it,N,Nt,"",function(Yf){return Yf})}else it!=null&&(Xt(it)&&(it.key&&(!$e||$e.key!==it.key)&&St(it.key),it=xt(it,V+(it.key&&(!$e||$e.key!==it.key)?Fn(""+it.key)+"/":"")+gt)),N.push(it));return 1}var pt,Lt,wt=0,Dt=G===""?wn:G+kn;if(Yt(S))for(var vi=0;vi<S.length;vi++)pt=S[vi],Lt=Dt+Cn(pt,vi),wt+=fa(pt,N,V,Lt,te);else{var va=I(S);if(typeof va=="function"){var Mo=S;va===Mo.entries&&(Tn||Ce("Using Maps as children is not supported. Use an array of keyed ReactElements instead."),Tn=!0);for(var xu=va.call(Mo),Nn,gi=0;!(Nn=xu.next()).done;)pt=Nn.value,Lt=Dt+Cn(pt,gi++),wt+=fa(pt,N,V,Lt,te)}else if(Fe==="object"){var ls=String(S);throw new Error("Objects are not valid as a React child (found: "+(ls==="[object Object]"?"object with keys {"+Object.keys(S).join(", ")+"}":ls)+"). If you meant to render a collection of children, use an array instead.")}}return wt}function vr(S,N,V){if(S==null)return S;var G=[],te=0;return fa(S,G,"","",function(Fe){return N.call(V,Fe,te++)}),G}function wo(S){var N=0;return vr(S,function(){N++}),N}function es(S,N,V){vr(S,function(){N.apply(this,arguments)},V)}function ts(S){return vr(S,function(N){return N})||[]}function Co(S){if(!Xt(S))throw new Error("React.Children.only expected to receive a single React element child.");return S}function _o(S){var N={$$typeof:v,_currentValue:S,_currentValue2:S,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null};N.Provider={$$typeof:m,_context:N};var V=!1,G=!1,te=!1;{var Fe={$$typeof:v,_context:N};Object.defineProperties(Fe,{Provider:{get:function(){return G||(G=!0,oe("Rendering <Context.Consumer.Provider> is not supported and will be removed in a future major release. Did you mean to render <Context.Provider> instead?")),N.Provider},set:function(xe){N.Provider=xe}},_currentValue:{get:function(){return N._currentValue},set:function(xe){N._currentValue=xe}},_currentValue2:{get:function(){return N._currentValue2},set:function(xe){N._currentValue2=xe}},_threadCount:{get:function(){return N._threadCount},set:function(xe){N._threadCount=xe}},Consumer:{get:function(){return V||(V=!0,oe("Rendering <Context.Consumer.Consumer> is not supported and will be removed in a future major release. Did you mean to render <Context.Consumer> instead?")),N.Consumer}},displayName:{get:function(){return N.displayName},set:function(xe){te||(Ce("Setting `displayName` on Context.Consumer has no effect. You should set it directly on the context with Context.displayName = '%s'.",xe),te=!0)}}}),N.Consumer=Fe}return N._currentRenderer=null,N._currentRenderer2=null,N}var cr=-1,Aa=0,Di=1,ka=2;function q(S){if(S._status===cr){var N=S._result,V=N();if(V.then(function(Fe){if(S._status===Aa||S._status===cr){var xe=S;xe._status=Di,xe._result=Fe}},function(Fe){if(S._status===Aa||S._status===cr){var xe=S;xe._status=ka,xe._result=Fe}}),S._status===cr){var G=S;G._status=Aa,G._result=V}}if(S._status===Di){var te=S._result;return te===void 0&&oe(`lazy: Expected the result of a dynamic import() call. Instead received: %s
|
|
|
|
Your code should look like:
|
|
const MyComponent = lazy(() => import('./MyComponent'))
|
|
|
|
Did you accidentally put curly braces around the import?`,te),"default"in te||oe(`lazy: Expected the result of a dynamic import() call. Instead received: %s
|
|
|
|
Your code should look like:
|
|
const MyComponent = lazy(() => import('./MyComponent'))`,te),te.default}else throw S._result}function Be(S){var N={_status:cr,_result:S},V={$$typeof:R,_payload:N,_init:q};{var G,te;Object.defineProperties(V,{defaultProps:{configurable:!0,get:function(){return G},set:function(Fe){oe("React.lazy(...): It is not supported to assign `defaultProps` to a lazy component import. Either specify them where the component is defined, or create a wrapping component around it."),G=Fe,Object.defineProperty(V,"defaultProps",{enumerable:!0})}},propTypes:{configurable:!0,get:function(){return te},set:function(Fe){oe("React.lazy(...): It is not supported to assign `propTypes` to a lazy component import. Either specify them where the component is defined, or create a wrapping component around it."),te=Fe,Object.defineProperty(V,"propTypes",{enumerable:!0})}}})}return V}function qe(S){S!=null&&S.$$typeof===_?oe("forwardRef requires a render function but received a `memo` component. Instead of forwardRef(memo(...)), use memo(forwardRef(...))."):typeof S!="function"?oe("forwardRef requires a render function but was given %s.",S===null?"null":typeof S):S.length!==0&&S.length!==2&&oe("forwardRef render functions accept exactly two parameters: props and ref. %s",S.length===1?"Did you forget to use the ref parameter?":"Any additional parameter will be undefined."),S!=null&&(S.defaultProps!=null||S.propTypes!=null)&&oe("forwardRef render functions do not support propTypes or defaultProps. Did you accidentally pass a React component?");var N={$$typeof:b,render:S};{var V;Object.defineProperty(N,"displayName",{enumerable:!1,configurable:!0,get:function(){return V},set:function(G){V=G,!S.name&&!S.displayName&&(S.displayName=G)}})}return N}var bt;bt=Symbol.for("react.module.reference");function nn(S){return!!(typeof S=="string"||typeof S=="function"||S===c||S===h||ce||S===u||S===x||S===C||ie||S===A||se||be||Xe||typeof S=="object"&&S!==null&&(S.$$typeof===R||S.$$typeof===_||S.$$typeof===m||S.$$typeof===v||S.$$typeof===b||S.$$typeof===bt||S.getModuleId!==void 0))}function gn(S,N){nn(S)||oe("memo: The first argument must be a component. Instead received: %s",S===null?"null":typeof S);var V={$$typeof:_,type:S,compare:N===void 0?null:N};{var G;Object.defineProperty(V,"displayName",{enumerable:!1,configurable:!0,get:function(){return G},set:function(te){G=te,!S.name&&!S.displayName&&(S.displayName=te)}})}return V}function tt(){var S=z.current;return S===null&&oe(`Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:
|
|
1. You might have mismatching versions of React and the renderer (such as React DOM)
|
|
2. You might be breaking the Rules of Hooks
|
|
3. You might have more than one copy of React in the same app
|
|
See https://reactjs.org/link/invalid-hook-call for tips about how to debug and fix this problem.`),S}function $t(S){var N=tt();if(S._context!==void 0){var V=S._context;V.Consumer===S?oe("Calling useContext(Context.Consumer) is not supported, may cause bugs, and will be removed in a future major release. Did you mean to call useContext(Context) instead?"):V.Provider===S&&oe("Calling useContext(Context.Provider) is not supported. Did you mean to call useContext(Context) instead?")}return N.useContext(S)}function zn(S){var N=tt();return N.useState(S)}function Mn(S,N,V){var G=tt();return G.useReducer(S,N,V)}function an(S){var N=tt();return N.useRef(S)}function Lr(S,N){var V=tt();return V.useEffect(S,N)}function ci(S,N){var V=tt();return V.useInsertionEffect(S,N)}function Eo(S,N){var V=tt();return V.useLayoutEffect(S,N)}function da(S,N){var V=tt();return V.useCallback(S,N)}function Ji(S,N){var V=tt();return V.useMemo(S,N)}function bu(S,N,V){var G=tt();return G.useImperativeHandle(S,N,V)}function fi(S,N){{var V=tt();return V.useDebugValue(S,N)}}function Bs(){var S=tt();return S.useTransition()}function Pi(S){var N=tt();return N.useDeferredValue(S)}function Zt(){var S=tt();return S.useId()}function Mi(S,N,V){var G=tt();return G.useSyncExternalStore(S,N,V)}var pa=0,To,ns,No,rs,as,Ro,Oo;function is(){}is.__reactDisabledLog=!0;function Us(){{if(pa===0){To=console.log,ns=console.info,No=console.warn,rs=console.error,as=console.group,Ro=console.groupCollapsed,Oo=console.groupEnd;var S={configurable:!0,enumerable:!0,value:is,writable:!0};Object.defineProperties(console,{info:S,log:S,warn:S,error:S,group:S,groupCollapsed:S,groupEnd:S})}pa++}}function js(){{if(pa--,pa===0){var S={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:Ie({},S,{value:To}),info:Ie({},S,{value:ns}),warn:Ie({},S,{value:No}),error:Ie({},S,{value:rs}),group:Ie({},S,{value:as}),groupCollapsed:Ie({},S,{value:Ro}),groupEnd:Ie({},S,{value:Oo})})}pa<0&&oe("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var di=Re.ReactCurrentDispatcher,kr;function Da(S,N,V){{if(kr===void 0)try{throw Error()}catch(te){var G=te.stack.trim().match(/\n( *(at )?)/);kr=G&&G[1]||""}return`
|
|
`+kr+S}}var ha=!1,Pa;{var os=typeof WeakMap=="function"?WeakMap:Map;Pa=new os}function Ao(S,N){if(!S||ha)return"";{var V=Pa.get(S);if(V!==void 0)return V}var G;ha=!0;var te=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var Fe;Fe=di.current,di.current=null,Us();try{if(N){var xe=function(){throw Error()};if(Object.defineProperty(xe.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(xe,[])}catch(Dt){G=Dt}Reflect.construct(S,[],xe)}else{try{xe.call()}catch(Dt){G=Dt}S.call(xe.prototype)}}else{try{throw Error()}catch(Dt){G=Dt}S()}}catch(Dt){if(Dt&&G&&typeof Dt.stack=="string"){for(var $e=Dt.stack.split(`
|
|
`),it=G.stack.split(`
|
|
`),gt=$e.length-1,Nt=it.length-1;gt>=1&&Nt>=0&&$e[gt]!==it[Nt];)Nt--;for(;gt>=1&&Nt>=0;gt--,Nt--)if($e[gt]!==it[Nt]){if(gt!==1||Nt!==1)do if(gt--,Nt--,Nt<0||$e[gt]!==it[Nt]){var pt=`
|
|
`+$e[gt].replace(" at new "," at ");return S.displayName&&pt.includes("<anonymous>")&&(pt=pt.replace("<anonymous>",S.displayName)),typeof S=="function"&&Pa.set(S,pt),pt}while(gt>=1&&Nt>=0);break}}}finally{ha=!1,di.current=Fe,js(),Error.prepareStackTrace=te}var Lt=S?S.displayName||S.name:"",wt=Lt?Da(Lt):"";return typeof S=="function"&&Pa.set(S,wt),wt}function ss(S,N,V){return Ao(S,!1)}function Al(S){var N=S.prototype;return!!(N&&N.isReactComponent)}function ma(S,N,V){if(S==null)return"";if(typeof S=="function")return Ao(S,Al(S));if(typeof S=="string")return Da(S);switch(S){case x:return Da("Suspense");case C:return Da("SuspenseList")}if(typeof S=="object")switch(S.$$typeof){case b:return ss(S.render);case _:return ma(S.type,N,V);case R:{var G=S,te=G._payload,Fe=G._init;try{return ma(Fe(te),N,V)}catch{}}}return""}var ko={},Ma=Re.ReactDebugCurrentFrame;function pi(S){if(S){var N=S._owner,V=ma(S.type,S._source,N?N.type:null);Ma.setExtraStackFrame(V)}else Ma.setExtraStackFrame(null)}function $s(S,N,V,G,te){{var Fe=Function.call.bind(fn);for(var xe in S)if(Fe(S,xe)){var $e=void 0;try{if(typeof S[xe]!="function"){var it=Error((G||"React class")+": "+V+" type `"+xe+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof S[xe]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw it.name="Invariant Violation",it}$e=S[xe](N,xe,G,V,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(gt){$e=gt}$e&&!($e instanceof Error)&&(pi(te),oe("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).",G||"React class",V,xe,typeof $e),pi(null)),$e instanceof Error&&!($e.message in ko)&&(ko[$e.message]=!0,pi(te),oe("Failed %s type: %s",V,$e.message),pi(null))}}}function on(S){if(S){var N=S._owner,V=ma(S.type,S._source,N?N.type:null);ve(V)}else ve(null)}var hi;hi=!1;function Do(){if(K.current){var S=Bt(K.current.type);if(S)return`
|
|
|
|
Check the render method of \``+S+"`."}return""}function It(S){if(S!==void 0){var N=S.fileName.replace(/^.*[\\\/]/,""),V=S.lineNumber;return`
|
|
|
|
Check your code at `+N+":"+V+"."}return""}function Vs(S){return S!=null?It(S.__source):""}var gr={};function Ii(S){var N=Do();if(!N){var V=typeof S=="string"?S:S.displayName||S.name;V&&(N=`
|
|
|
|
Check the top-level render call using <`+V+">.")}return N}function $a(S,N){if(!(!S._store||S._store.validated||S.key!=null)){S._store.validated=!0;var V=Ii(N);if(!gr[V]){gr[V]=!0;var G="";S&&S._owner&&S._owner!==K.current&&(G=" It was passed a child from "+Bt(S._owner.type)+"."),on(S),oe('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',V,G),on(null)}}}function eo(S,N){if(typeof S=="object"){if(Yt(S))for(var V=0;V<S.length;V++){var G=S[V];Xt(G)&&$a(G,N)}else if(Xt(S))S._store&&(S._store.validated=!0);else if(S){var te=I(S);if(typeof te=="function"&&te!==S.entries)for(var Fe=te.call(S),xe;!(xe=Fe.next()).done;)Xt(xe.value)&&$a(xe.value,N)}}}function wr(S){{var N=S.type;if(N==null||typeof N=="string")return;var V;if(typeof N=="function")V=N.propTypes;else if(typeof N=="object"&&(N.$$typeof===b||N.$$typeof===_))V=N.propTypes;else return;if(V){var G=Bt(N);$s(V,S.props,"prop",G,S)}else if(N.PropTypes!==void 0&&!hi){hi=!0;var te=Bt(N);oe("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",te||"Unknown")}typeof N.getDefaultProps=="function"&&!N.getDefaultProps.isReactClassApproved&&oe("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function er(S){{for(var N=Object.keys(S.props),V=0;V<N.length;V++){var G=N[V];if(G!=="children"&&G!=="key"){on(S),oe("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",G),on(null);break}}S.ref!==null&&(on(S),oe("Invalid attribute `ref` supplied to `React.Fragment`."),on(null))}}function Po(S,N,V){var G=nn(S);if(!G){var te="";(S===void 0||typeof S=="object"&&S!==null&&Object.keys(S).length===0)&&(te+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");var Fe=Vs(N);Fe?te+=Fe:te+=Do();var xe;S===null?xe="null":Yt(S)?xe="array":S!==void 0&&S.$$typeof===i?(xe="<"+(Bt(S.type)||"Unknown")+" />",te=" Did you accidentally export a JSX literal instead of a component?"):xe=typeof S,oe("React.createElement: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",xe,te)}var $e=rt.apply(this,arguments);if($e==null)return $e;if(G)for(var it=2;it<arguments.length;it++)eo(arguments[it],S);return S===c?er($e):wr($e),$e}var $r=!1;function ur(S){var N=Po.bind(null,S);return N.type=S,$r||($r=!0,Ce("React.createFactory() is deprecated and will be removed in a future major release. Consider using JSX or use React.createElement() directly instead.")),Object.defineProperty(N,"type",{enumerable:!1,get:function(){return Ce("Factory.type is deprecated. Access the class directly before passing it to createFactory."),Object.defineProperty(this,"type",{value:S}),S}}),N}function Jr(S,N,V){for(var G=dn.apply(this,arguments),te=2;te<arguments.length;te++)eo(arguments[te],G.type);return wr(G),G}function Su(S,N){var V=B.transition;B.transition={};var G=B.transition;B.transition._updatedFibers=new Set;try{S()}finally{if(B.transition=V,V===null&&G._updatedFibers){var te=G._updatedFibers.size;te>10&&Ce("Detected a large number of updates inside startTransition. If this is due to a subscription please re-write it to use React provided hooks. Otherwise concurrent mode guarantees are off the table."),G._updatedFibers.clear()}}}var to=!1,mi=null;function Hs(S){if(mi===null)try{var N=("require"+Math.random()).slice(0,7),V=t&&t[N];mi=V.call(t,"timers").setImmediate}catch{mi=function(te){to===!1&&(to=!0,typeof MessageChannel>"u"&&oe("This browser does not have a MessageChannel implementation, so enqueuing tasks via await act(async () => ...) will fail. Please file an issue at https://github.com/facebook/react/issues if you encounter this warning."));var Fe=new MessageChannel;Fe.port1.onmessage=te,Fe.port2.postMessage(void 0)}}return mi(S)}var pn=0,Dn=!1;function kl(S){{var N=pn;pn++,$.current===null&&($.current=[]);var V=$.isBatchingLegacy,G;try{if($.isBatchingLegacy=!0,G=S(),!V&&$.didScheduleLegacyUpdate){var te=$.current;te!==null&&($.didScheduleLegacyUpdate=!1,fe(te))}}catch(Lt){throw Ia(N),Lt}finally{$.isBatchingLegacy=V}if(G!==null&&typeof G=="object"&&typeof G.then=="function"){var Fe=G,xe=!1,$e={then:function(Lt,wt){xe=!0,Fe.then(function(Dt){Ia(N),pn===0?W(Dt,Lt,wt):Lt(Dt)},function(Dt){Ia(N),wt(Dt)})}};return!Dn&&typeof Promise<"u"&&Promise.resolve().then(function(){}).then(function(){xe||(Dn=!0,oe("You called act(async () => ...) without await. This could lead to unexpected testing behaviour, interleaving multiple act calls and mixing their scopes. You should - await act(async () => ...);"))}),$e}else{var it=G;if(Ia(N),pn===0){var gt=$.current;gt!==null&&(fe(gt),$.current=null);var Nt={then:function(Lt,wt){$.current===null?($.current=[],W(it,Lt,wt)):Lt(it)}};return Nt}else{var pt={then:function(Lt,wt){Lt(it)}};return pt}}}}function Ia(S){S!==pn-1&&oe("You seem to have overlapping act() calls, this is not supported. Be sure to await previous act() calls before making a new one. "),pn=S}function W(S,N,V){{var G=$.current;if(G!==null)try{fe(G),Hs(function(){G.length===0?($.current=null,N(S)):W(S,N,V)})}catch(te){V(te)}else N(S)}}var Q=!1;function fe(S){if(!Q){Q=!0;var N=0;try{for(;N<S.length;N++){var V=S[N];do V=V(!0);while(V!==null)}S.length=0}catch(G){throw S=S.slice(N+1),G}finally{Q=!1}}}var at=Po,sn=Jr,Pn=ur,Vt={map:vr,forEach:es,count:wo,toArray:ts,only:Co};e.Children=Vt,e.Component=Ye,e.Fragment=c,e.Profiler=h,e.PureComponent=vt,e.StrictMode=u,e.Suspense=x,e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=Re,e.cloneElement=sn,e.createContext=_o,e.createElement=at,e.createFactory=Pn,e.createRef=zt,e.forwardRef=qe,e.isValidElement=Xt,e.lazy=Be,e.memo=gn,e.startTransition=Su,e.unstable_act=kl,e.useCallback=da,e.useContext=$t,e.useDebugValue=fi,e.useDeferredValue=Pi,e.useEffect=Lr,e.useId=Zt,e.useImperativeHandle=bu,e.useInsertionEffect=ci,e.useLayoutEffect=Eo,e.useMemo=Ji,e.useReducer=Mn,e.useRef=an,e.useState=zn,e.useSyncExternalStore=Mi,e.useTransition=Bs,e.version=r,typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(new Error)})()}}),UX=kz({"../../node_modules/.pnpm/react@18.2.0/node_modules/react/index.js"(e,t){t.exports=BX()}}),QL=zX(UX());function q2(e){return QL.Children.toArray(e).filter(t=>(0,QL.isValidElement)(t))}/**
|
|
* @license React
|
|
* react.development.js
|
|
*
|
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
*
|
|
* This source code is licensed under the MIT license found in the
|
|
* LICENSE file in the root directory of this source tree.
|
|
*//**
|
|
* @license React
|
|
* react.production.min.js
|
|
*
|
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
*
|
|
* This source code is licensed under the MIT license found in the
|
|
* LICENSE file in the root directory of this source tree.
|
|
*/var Pf="/Users/spencer/Documents/Code/stable-diffusion/frontend/node_modules/@chakra-ui/button/dist/index.esm.js",Qw=(...e)=>e.filter(Boolean).join(" "),JL=e=>e?"":void 0,[jX,$X]=Xr({strict:!1,name:"ButtonGroupContext"});function uA(e){const{children:t,className:r,...i}=e,s=D.exports.isValidElement(t)?D.exports.cloneElement(t,{"aria-hidden":!0,focusable:!1}):t,c=Qw("chakra-button__icon",r);return Ue.createElement(Ge.span,{display:"inline-flex",alignSelf:"center",flexShrink:0,...i,className:c},s)}uA.displayName="ButtonIcon";function cA(e){const{label:t,placement:r,spacing:i="0.5rem",children:s=k(Xw,{color:"currentColor",width:"1em",height:"1em"},void 0,!1,{fileName:Pf,lineNumber:56,columnNumber:32},this),className:c,__css:u,...h}=e,m=Qw("chakra-button__spinner",c),v=r==="start"?"marginEnd":"marginStart",b=D.exports.useMemo(()=>({display:"flex",alignItems:"center",position:t?"relative":"absolute",[v]:t?i:0,fontSize:"1em",lineHeight:"normal",...u}),[u,t,v,i]);return Ue.createElement(Ge.div,{className:m,...h,__css:b},s)}cA.displayName="ButtonSpinner";function VX(e){const[t,r]=D.exports.useState(!e);return{ref:D.exports.useCallback(c=>{!c||r(c.tagName==="BUTTON")},[]),type:t?"button":void 0}}var Gm=et((e,t)=>{const r=$X(),i=Qi("Button",{...r,...e}),{isDisabled:s=r?.isDisabled,isLoading:c,isActive:u,children:h,leftIcon:m,rightIcon:v,loadingText:b,iconSpacing:x="0.5rem",type:C,spinner:_,spinnerPlacement:R="start",className:A,as:M,...j}=mr(e),I=D.exports.useMemo(()=>{const K={...i?._focus,zIndex:1};return{display:"inline-flex",appearance:"none",alignItems:"center",justifyContent:"center",userSelect:"none",position:"relative",whiteSpace:"nowrap",verticalAlign:"middle",outline:"none",...i,...!!r&&{_focus:K}}},[i,r]),{ref:z,type:B}=VX(M),$={rightIcon:v,leftIcon:m,iconSpacing:x,children:h};return Ue.createElement(Ge.button,{disabled:s||c,ref:J7(t,z),as:M,type:C??B,"data-active":JL(u),"data-loading":JL(c),__css:I,className:Qw("chakra-button",A),...j},c&&R==="start"&&k(cA,{className:"chakra-button__spinner--start",label:b,placement:"start",spacing:x,children:_},void 0,!1,{fileName:Pf,lineNumber:145,columnNumber:67},globalThis),c?b||Ue.createElement(Ge.span,{opacity:0},k(e5,{...$},void 0,!1,{fileName:Pf,lineNumber:152,columnNumber:22},globalThis)):k(e5,{...$},void 0,!1,{fileName:Pf,lineNumber:154,columnNumber:25},globalThis),c&&R==="end"&&k(cA,{className:"chakra-button__spinner--end",label:b,placement:"end",spacing:x,children:_},void 0,!1,{fileName:Pf,lineNumber:156,columnNumber:66},globalThis))});Gm.displayName="Button";function e5(e){const{leftIcon:t,rightIcon:r,children:i,iconSpacing:s}=e;return k(bo,{children:[t&&k(uA,{marginEnd:s,children:t},void 0,!1,{fileName:Pf,lineNumber:166,columnNumber:96},this),i,r&&k(uA,{marginStart:s,children:r},void 0,!1,{fileName:Pf,lineNumber:168,columnNumber:56},this)]},void 0,!0)}var HX=et(function(t,r){const{size:i,colorScheme:s,variant:c,className:u,spacing:h="0.5rem",isAttached:m,isDisabled:v,...b}=t,x=Qw("chakra-button__group",u),C=D.exports.useMemo(()=>({size:i,colorScheme:s,variant:c,isDisabled:v}),[i,s,c,v]);let _={display:"inline-flex"};return m?_={..._,"> *:first-of-type:not(:last-of-type)":{borderEndRadius:0},"> *:not(:first-of-type):not(:last-of-type)":{borderRadius:0},"> *:not(:first-of-type):last-of-type":{borderStartRadius:0}}:_={..._,"& > *:not(style) ~ *:not(style)":{marginStart:h}},Ue.createElement(jX,{value:C},Ue.createElement(Ge.div,{ref:r,role:"group",__css:_,className:x,"data-attached":m?"":void 0,...b}))});HX.displayName="ButtonGroup";var Ps=et((e,t)=>{const{icon:r,children:i,isRound:s,"aria-label":c,...u}=e,h=r||i,m=D.exports.isValidElement(h)?D.exports.cloneElement(h,{"aria-hidden":!0,focusable:!1}):null;return k(Gm,{padding:"0",borderRadius:s?"full":void 0,ref:t,"aria-label":c,...u,children:m},void 0,!1,{fileName:Pf,lineNumber:231,columnNumber:26},globalThis)});Ps.displayName="IconButton";var fA="/Users/spencer/Documents/Code/stable-diffusion/frontend/node_modules/@chakra-ui/form-control/dist/index.esm.js",av=(...e)=>e.filter(Boolean).join(" "),ex=e=>e?"":void 0,ZR=e=>e?!0:void 0;function t5(...e){return function(r){e.some(i=>(i?.(r),r?.defaultPrevented))}}var[WX,Dz]=Xr({name:"FormControlStylesContext",errorMessage:`useFormControlStyles returned is 'undefined'. Seems you forgot to wrap the components in "<FormControl />" `}),[GX,iv]=Xr({strict:!1,name:"FormControlContext"});function YX(e){const{id:t,isRequired:r,isInvalid:i,isDisabled:s,isReadOnly:c,...u}=e,h=D.exports.useId(),m=t||`field-${h}`,v=`${m}-label`,b=`${m}-feedback`,x=`${m}-helptext`,[C,_]=D.exports.useState(!1),[R,A]=D.exports.useState(!1),[M,j]=D.exports.useState(!1),I=D.exports.useCallback((X={},de=null)=>({id:x,...X,ref:Zi(de,ve=>{!ve||A(!0)})}),[x]),z=D.exports.useCallback((X={},de=null)=>({...X,ref:de,"data-focus":ex(M),"data-disabled":ex(s),"data-invalid":ex(i),"data-readonly":ex(c),id:X.id??v,htmlFor:X.htmlFor??m}),[m,s,M,i,c,v]),B=D.exports.useCallback((X={},de=null)=>({id:b,...X,ref:Zi(de,ve=>{!ve||_(!0)}),"aria-live":"polite"}),[b]),$=D.exports.useCallback((X={},de=null)=>({...X,...u,ref:de,role:"group"}),[u]),K=D.exports.useCallback((X={},de=null)=>({...X,ref:de,role:"presentation","aria-hidden":!0,children:X.children||"*"}),[]);return{isRequired:!!r,isInvalid:!!i,isReadOnly:!!c,isDisabled:!!s,isFocused:!!M,onFocus:()=>j(!0),onBlur:()=>j(!1),hasFeedbackText:C,setHasFeedbackText:_,hasHelpText:R,setHasHelpText:A,id:m,labelId:v,feedbackId:b,helpTextId:x,htmlProps:u,getHelpTextProps:I,getErrorMessageProps:B,getRootProps:$,getLabelProps:z,getRequiredIndicatorProps:K}}var Fp=et(function(t,r){const i=Qo("Form",t),s=mr(t),{getRootProps:c,htmlProps:u,...h}=YX(s),m=av("chakra-form-control",t.className);return Ue.createElement(GX,{value:h},Ue.createElement(WX,{value:i},Ue.createElement(Ge.div,{...c({},r),className:m,__css:i.container})))});Fp.displayName="FormControl";var qX=et(function(t,r){const i=iv(),s=Dz(),c=av("chakra-form__helper-text",t.className);return Ue.createElement(Ge.div,{...i?.getHelpTextProps(t,r),__css:s.helperText,className:c})});qX.displayName="FormHelperText";function K2(e){const{isDisabled:t,isInvalid:r,isReadOnly:i,isRequired:s,...c}=X2(e);return{...c,disabled:t,readOnly:i,required:s,"aria-invalid":ZR(r),"aria-required":ZR(s),"aria-readonly":ZR(i)}}function X2(e){const t=iv(),{id:r,disabled:i,readOnly:s,required:c,isRequired:u,isInvalid:h,isReadOnly:m,isDisabled:v,onFocus:b,onBlur:x,...C}=e,_=e["aria-describedby"]?[e["aria-describedby"]]:[];return t?.hasFeedbackText&&t?.isInvalid&&_.push(t.feedbackId),t?.hasHelpText&&_.push(t.helpTextId),{...C,"aria-describedby":_.join(" ")||void 0,id:r??t?.id,isDisabled:i??v??t?.isDisabled,isReadOnly:s??m??t?.isReadOnly,isRequired:c??u??t?.isRequired,isInvalid:h??t?.isInvalid,onFocus:t5(t?.onFocus,b),onBlur:t5(t?.onBlur,x)}}var[KX,XX]=Xr({name:"FormErrorStylesContext",errorMessage:`useFormErrorStyles returned is 'undefined'. Seems you forgot to wrap the components in "<FormError />" `}),ZX=et((e,t)=>{const r=Qo("FormError",e),i=mr(e),s=iv();return s?.isInvalid?Ue.createElement(KX,{value:r},Ue.createElement(Ge.div,{...s?.getErrorMessageProps(i,t),className:av("chakra-form__error-message",e.className),__css:{display:"flex",alignItems:"center",...r.text}})):null});ZX.displayName="FormErrorMessage";var QX=et((e,t)=>{const r=XX(),i=iv();if(!i?.isInvalid)return null;const s=av("chakra-form__error-icon",e.className);return k(Rl,{ref:t,"aria-hidden":!0,...e,__css:r.icon,className:s,children:k("path",{fill:"currentColor",d:"M11.983,0a12.206,12.206,0,0,0-8.51,3.653A11.8,11.8,0,0,0,0,12.207,11.779,11.779,0,0,0,11.8,24h.214A12.111,12.111,0,0,0,24,11.791h0A11.766,11.766,0,0,0,11.983,0ZM10.5,16.542a1.476,1.476,0,0,1,1.449-1.53h.027a1.527,1.527,0,0,1,1.523,1.47,1.475,1.475,0,0,1-1.449,1.53h-.027A1.529,1.529,0,0,1,10.5,16.542ZM11,12.5v-6a1,1,0,0,1,2,0v6a1,1,0,1,1-2,0Z"},void 0,!1,{fileName:fA,lineNumber:244,columnNumber:22},globalThis)},void 0,!1,{fileName:fA,lineNumber:238,columnNumber:26},globalThis)});QX.displayName="FormErrorIcon";var zp=et(function(t,r){const i=Qi("FormLabel",t),s=mr(t),{className:c,children:u,requiredIndicator:h=k(Pz,{},void 0,!1,{fileName:fA,lineNumber:264,columnNumber:41},this),optionalIndicator:m=null,...v}=s,b=iv(),x=b?.getLabelProps(v,r)??{ref:r,...v};return Ue.createElement(Ge.label,{...x,className:av("chakra-form__label",s.className),__css:{display:"block",textAlign:"start",...i}},u,b?.isRequired?h:m)});zp.displayName="FormLabel";var Pz=et(function(t,r){const i=iv(),s=Dz();if(!i?.isRequired)return null;const c=av("chakra-form__required-indicator",t.className);return Ue.createElement(Ge.span,{...i?.getRequiredIndicatorProps(t,r),__css:s.requiredIndicator,className:c})});Pz.displayName="RequiredIndicator";function iw(e,t){const r=D.exports.useRef(!1),i=D.exports.useRef(!1);D.exports.useEffect(()=>{if(r.current&&i.current)return e();i.current=!0},t),D.exports.useEffect(()=>(r.current=!0,()=>{r.current=!1}),[])}var Z2={border:"0px",clip:"rect(0px, 0px, 0px, 0px)",height:"1px",width:"1px",margin:"-1px",padding:"0px",overflow:"hidden",whiteSpace:"nowrap",position:"absolute"},JX=Ge("span",{baseStyle:Z2});JX.displayName="VisuallyHidden";var eZ=Ge("input",{baseStyle:Z2});eZ.displayName="VisuallyHiddenInput";var n5=!1,Jw=null,Ym=!1,dA=new Set,tZ=typeof window<"u"&&window.navigator!=null?/^Mac/.test(window.navigator.platform):!1;function nZ(e){return!(e.metaKey||!tZ&&e.altKey||e.ctrlKey)}function Q2(e,t){dA.forEach(r=>r(e,t))}function r5(e){Ym=!0,nZ(e)&&(Jw="keyboard",Q2("keyboard",e))}function ym(e){Jw="pointer",(e.type==="mousedown"||e.type==="pointerdown")&&(Ym=!0,Q2("pointer",e))}function rZ(e){e.target===window||e.target===document||(Ym||(Jw="keyboard",Q2("keyboard",e)),Ym=!1)}function aZ(){Ym=!1}function a5(){return Jw!=="pointer"}function iZ(){if(typeof window>"u"||n5)return;const{focus:e}=HTMLElement.prototype;HTMLElement.prototype.focus=function(...r){Ym=!0,e.apply(this,r)},document.addEventListener("keydown",r5,!0),document.addEventListener("keyup",r5,!0),window.addEventListener("focus",rZ,!0),window.addEventListener("blur",aZ,!1),typeof PointerEvent<"u"?(document.addEventListener("pointerdown",ym,!0),document.addEventListener("pointermove",ym,!0),document.addEventListener("pointerup",ym,!0)):(document.addEventListener("mousedown",ym,!0),document.addEventListener("mousemove",ym,!0),document.addEventListener("mouseup",ym,!0)),n5=!0}function oZ(e){iZ(),e(a5());const t=()=>e(a5());return dA.add(t),()=>{dA.delete(t)}}var _l="/Users/spencer/Documents/Code/stable-diffusion/frontend/node_modules/@chakra-ui/checkbox/dist/index.esm.js",[dme,sZ]=Xr({name:"CheckboxGroupContext",strict:!1}),lZ=(...e)=>e.filter(Boolean).join(" "),Yi=e=>e?"":void 0;function ks(...e){return function(r){e.some(i=>(i?.(r),r?.defaultPrevented))}}function uZ(...e){return function(r){e.forEach(i=>{i?.(r)})}}function cZ(e){const t=Ol;return"custom"in t&&typeof t.custom=="function"?t.custom(e):t(e)}var Mz=cZ(Ge.svg);function fZ(e){return k(Mz,{width:"1.2em",viewBox:"0 0 12 10",variants:{unchecked:{opacity:0,strokeDashoffset:16},checked:{opacity:1,strokeDashoffset:0,transition:{duration:.2}}},style:{fill:"none",strokeWidth:2,stroke:"currentColor",strokeDasharray:16},...e,children:k("polyline",{points:"1.5 6 4.5 9 10.5 1"},void 0,!1,{fileName:_l,lineNumber:137,columnNumber:22},this)},void 0,!1,{fileName:_l,lineNumber:116,columnNumber:26},this)}function dZ(e){return k(Mz,{width:"1.2em",viewBox:"0 0 24 24",variants:{unchecked:{scaleX:.65,opacity:0},checked:{scaleX:1,opacity:1,transition:{scaleX:{duration:0},opacity:{duration:.02}}}},style:{stroke:"currentColor",strokeWidth:4},...e,children:k("line",{x1:"21",x2:"3",y1:"12",y2:"12"},void 0,!1,{fileName:_l,lineNumber:161,columnNumber:22},this)},void 0,!1,{fileName:_l,lineNumber:142,columnNumber:26},this)}function pZ({open:e,children:t}){return k(gc,{initial:!1,children:e&&Ue.createElement(Ol.div,{variants:{unchecked:{scale:.5},checked:{scale:1}},initial:"unchecked",animate:"checked",exit:"unchecked",style:{display:"flex",alignItems:"center",justifyContent:"center",height:"100%"}},t)},void 0,!1,{fileName:_l,lineNumber:169,columnNumber:26},this)}function hZ(e){const{isIndeterminate:t,isChecked:r,...i}=e;return k(pZ,{open:r||t,children:k(t?dZ:fZ,{...i},void 0,!1,{fileName:_l,lineNumber:192,columnNumber:22},this)},void 0,!1,{fileName:_l,lineNumber:190,columnNumber:26},this)}function mZ(e,t=[]){const r=Object.assign({},e);for(const i of t)i in r&&delete r[i];return r}function Iz(e={}){const t=X2(e),{isDisabled:r,isReadOnly:i,isRequired:s,isInvalid:c,id:u,onBlur:h,onFocus:m,"aria-describedby":v}=t,{defaultChecked:b,isChecked:x,isFocusable:C,onChange:_,isIndeterminate:R,name:A,value:M,tabIndex:j=void 0,"aria-label":I,"aria-labelledby":z,"aria-invalid":B,...$}=e,K=mZ($,["isDisabled","isReadOnly","isRequired","isInvalid","id","onBlur","onFocus","aria-describedby"]),X=ki(_),de=ki(h),ve=ki(m),[se,be]=D.exports.useState(!1),[Xe,ie]=D.exports.useState(!1),[ce,Re]=D.exports.useState(!1),[Ce,oe]=D.exports.useState(!1);D.exports.useEffect(()=>oZ(be),[]);const Se=D.exports.useRef(null),[Te,pe]=D.exports.useState(!0),[we,Ie]=D.exports.useState(!!b),Le=x!==void 0,Ye=Le?x:we,st=D.exports.useCallback(ye=>{if(i||r){ye.preventDefault();return}Le||Ie(Ye?ye.target.checked:R?!0:ye.target.checked),X?.(ye)},[i,r,Ye,Le,R,X]);dc(()=>{Se.current&&(Se.current.indeterminate=Boolean(R))},[R]),iw(()=>{r&&ie(!1)},[r,ie]),dc(()=>{const ye=Se.current;!ye?.form||(ye.form.onreset=()=>{Ie(!!b)})},[]);const mt=r&&!C,Gt=D.exports.useCallback(ye=>{ye.key===" "&&oe(!0)},[oe]),Qe=D.exports.useCallback(ye=>{ye.key===" "&&oe(!1)},[oe]);dc(()=>{if(!Se.current)return;Se.current.checked!==Ye&&Ie(Se.current.checked)},[Se.current]);const vt=D.exports.useCallback((ye={},Mt=null)=>{const Kt=St=>{Xe&&St.preventDefault(),oe(!0)};return{...ye,ref:Mt,"data-active":Yi(Ce),"data-hover":Yi(ce),"data-checked":Yi(Ye),"data-focus":Yi(Xe),"data-focus-visible":Yi(Xe&&se),"data-indeterminate":Yi(R),"data-disabled":Yi(r),"data-invalid":Yi(c),"data-readonly":Yi(i),"aria-hidden":!0,onMouseDown:ks(ye.onMouseDown,Kt),onMouseUp:ks(ye.onMouseUp,()=>oe(!1)),onMouseEnter:ks(ye.onMouseEnter,()=>Re(!0)),onMouseLeave:ks(ye.onMouseLeave,()=>Re(!1))}},[Ce,Ye,r,Xe,se,ce,R,c,i]),Et=D.exports.useCallback((ye={},Mt=null)=>({...K,...ye,ref:Zi(Mt,Kt=>{!Kt||pe(Kt.tagName==="LABEL")}),onClick:ks(ye.onClick,()=>{var Kt;Te||((Kt=Se.current)==null||Kt.click(),requestAnimationFrame(()=>{var St;(St=Se.current)==null||St.focus()}))}),"data-disabled":Yi(r),"data-checked":Yi(Ye),"data-invalid":Yi(c)}),[K,r,Ye,c,Te]),zt=D.exports.useCallback((ye={},Mt=null)=>({...ye,ref:Zi(Se,Mt),type:"checkbox",name:A,value:M,id:u,tabIndex:j,onChange:ks(ye.onChange,st),onBlur:ks(ye.onBlur,de,()=>ie(!1)),onFocus:ks(ye.onFocus,ve,()=>ie(!0)),onKeyDown:ks(ye.onKeyDown,Gt),onKeyUp:ks(ye.onKeyUp,Qe),required:s,checked:Ye,disabled:mt,readOnly:i,"aria-label":I,"aria-labelledby":z,"aria-invalid":B?Boolean(B):c,"aria-describedby":v,"aria-disabled":r,style:Z2}),[A,M,u,st,de,ve,Gt,Qe,s,Ye,mt,i,I,z,B,c,v,r,j]),We=D.exports.useCallback((ye={},Mt=null)=>({...ye,ref:Mt,onMouseDown:ks(ye.onMouseDown,i5),onTouchStart:ks(ye.onTouchStart,i5),"data-disabled":Yi(r),"data-checked":Yi(Ye),"data-invalid":Yi(c)}),[Ye,r,c]);return{state:{isInvalid:c,isFocused:Xe,isChecked:Ye,isActive:Ce,isHovered:ce,isIndeterminate:R,isDisabled:r,isReadOnly:i,isRequired:s},getRootProps:Et,getCheckboxProps:vt,getInputProps:zt,getLabelProps:We,htmlProps:K}}function i5(e){e.preventDefault(),e.stopPropagation()}var vZ=Ge("span",{baseStyle:{display:"inline-flex",alignItems:"center",justifyContent:"center",verticalAlign:"top",userSelect:"none",flexShrink:0}}),gZ=Ge("label",{baseStyle:{cursor:"pointer",display:"inline-flex",alignItems:"center",verticalAlign:"top",position:"relative"}}),yZ=et(function(t,r){const i=sZ(),s={...i,...t},c=Qo("Checkbox",s),u=mr(t),{spacing:h="0.5rem",className:m,children:v,iconColor:b,iconSize:x,icon:C=k(hZ,{},void 0,!1,{fileName:_l,lineNumber:505,columnNumber:28},this),isChecked:_,isDisabled:R=i?.isDisabled,onChange:A,inputProps:M,...j}=u;let I=_;i?.value&&u.value&&(I=i.value.includes(u.value));let z=A;i?.onChange&&u.value&&(z=uZ(i.onChange,A));const{state:B,getInputProps:$,getCheckboxProps:K,getLabelProps:X,getRootProps:de}=Iz({...j,isDisabled:R,isChecked:I,onChange:z}),ve=D.exports.useMemo(()=>({opacity:B.isChecked||B.isIndeterminate?1:0,transform:B.isChecked||B.isIndeterminate?"scale(1)":"scale(0.95)",fontSize:x,color:b,...c.icon}),[b,x,B.isChecked,B.isIndeterminate,c.icon]),se=D.exports.cloneElement(C,{__css:ve,isIndeterminate:B.isIndeterminate,isChecked:B.isChecked});return k(gZ,{__css:c.container,className:lZ("chakra-checkbox",m),...de(),children:[k("input",{className:"chakra-checkbox__input",...$(M,r)},void 0,!1,{fileName:_l,lineNumber:548,columnNumber:22},this),k(vZ,{__css:c.control,className:"chakra-checkbox__control",...K(),children:se},void 0,!1,{fileName:_l,lineNumber:551,columnNumber:23},this),v&&Ue.createElement(Ge.span,{className:"chakra-checkbox__label",...X(),__css:{marginStart:h,...c.label}},v)]},void 0,!0,{fileName:_l,lineNumber:544,columnNumber:26},this)});yZ.displayName="Checkbox";var pA="/Users/spencer/Documents/Code/stable-diffusion/frontend/node_modules/@chakra-ui/close-button/dist/index.esm.js";function bZ(e){return k(Rl,{focusable:"false","aria-hidden":!0,...e,children:k("path",{fill:"currentColor",d:"M.439,21.44a1.5,1.5,0,0,0,2.122,2.121L11.823,14.3a.25.25,0,0,1,.354,0l9.262,9.263a1.5,1.5,0,1,0,2.122-2.121L14.3,12.177a.25.25,0,0,1,0-.354l9.263-9.262A1.5,1.5,0,0,0,21.439.44L12.177,9.7a.25.25,0,0,1-.354,0L2.561.44A1.5,1.5,0,0,0,.439,2.561L9.7,11.823a.25.25,0,0,1,0,.354Z"},void 0,!1,{fileName:pA,lineNumber:17,columnNumber:22},this)},void 0,!1,{fileName:pA,lineNumber:13,columnNumber:26},this)}var J2=et(function(t,r){const i=Qi("CloseButton",t),{children:s,isDisabled:c,__css:u,...h}=mr(t),m={outline:0,display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0};return Ue.createElement(Ge.button,{type:"button","aria-label":"Close",ref:r,disabled:c,__css:{...m,...i,...u},...h},s||k(bZ,{width:"1em",height:"1em"},void 0,!1,{fileName:pA,lineNumber:43,columnNumber:34},this))});J2.displayName="CloseButton";function SZ(e){const t=parseFloat(e);return typeof t!="number"||Number.isNaN(t)?0:t}function Lz(e,t){let r=SZ(e);const i=10**(t??10);return r=Math.round(r*i)/i,t?r.toFixed(t):r.toString()}function o5(e){if(!Number.isFinite(e))return 0;let t=1,r=0;for(;Math.round(e*t)/t!==e;)t*=10,r+=1;return r}function xZ(e,t,r){return e==null?e:(r<t&&console.warn("clamp: max cannot be less than min"),Math.min(Math.max(e,t),r))}function wZ(e={}){const{onChange:t,precision:r,defaultValue:i,value:s,step:c=1,min:u=Number.MIN_SAFE_INTEGER,max:h=Number.MAX_SAFE_INTEGER,keepWithinRange:m=!0}=e,v=ki(t),[b,x]=D.exports.useState(()=>i==null?"":QR(i,c,r)??""),C=typeof s<"u",_=C?s:b,R=Fz(Ef(_),c),A=r??R,M=D.exports.useCallback(se=>{se!==_&&(C||x(se.toString()),v?.(se.toString(),Ef(se)))},[v,C,_]),j=D.exports.useCallback(se=>{let be=se;return m&&(be=xZ(be,u,h)),Lz(be,A)},[A,m,h,u]),I=D.exports.useCallback((se=c)=>{let be;_===""?be=Ef(se):be=Ef(_)+se,be=j(be),M(be)},[j,c,M,_]),z=D.exports.useCallback((se=c)=>{let be;_===""?be=Ef(-se):be=Ef(_)-se,be=j(be),M(be)},[j,c,M,_]),B=D.exports.useCallback(()=>{let se;i==null?se="":se=QR(i,c,r)??u,M(se)},[i,r,c,M,u]),$=D.exports.useCallback(se=>{const be=QR(se,c,A)??u;M(be)},[A,c,M,u]),K=Ef(_);return{isOutOfRange:K>h||K<u,isAtMax:K===h,isAtMin:K===u,precision:A,value:_,valueAsNumber:K,update:M,reset:B,increment:I,decrement:z,clamp:j,cast:$,setValue:x}}function Ef(e){return parseFloat(e.toString().replace(/[^\w.-]+/g,""))}function Fz(e,t){return Math.max(o5(t),o5(e))}function QR(e,t,r){const i=Ef(e);if(Number.isNaN(i))return;const s=Fz(i,t);return Lz(i,r??s)}var zz="/Users/spencer/Documents/Code/stable-diffusion/frontend/node_modules/@chakra-ui/css-reset/dist/index.esm.js",Bz=`
|
|
:root {
|
|
--chakra-vh: 100vh;
|
|
}
|
|
|
|
@supports (height: -webkit-fill-available) {
|
|
:root {
|
|
--chakra-vh: -webkit-fill-available;
|
|
}
|
|
}
|
|
|
|
@supports (height: -moz-fill-available) {
|
|
:root {
|
|
--chakra-vh: -moz-fill-available;
|
|
}
|
|
}
|
|
|
|
@supports (height: 100lvh) {
|
|
:root {
|
|
--chakra-vh: 100lvh;
|
|
}
|
|
}
|
|
`,CZ=()=>k(wb,{styles:Bz},void 0,!1,{fileName:zz,lineNumber:29,columnNumber:41},globalThis),_Z=()=>k(wb,{styles:`
|
|
html {
|
|
line-height: 1.5;
|
|
-webkit-text-size-adjust: 100%;
|
|
font-family: system-ui, sans-serif;
|
|
-webkit-font-smoothing: antialiased;
|
|
text-rendering: optimizeLegibility;
|
|
-moz-osx-font-smoothing: grayscale;
|
|
touch-action: manipulation;
|
|
}
|
|
|
|
body {
|
|
position: relative;
|
|
min-height: 100%;
|
|
font-feature-settings: 'kern';
|
|
}
|
|
|
|
*,
|
|
*::before,
|
|
*::after {
|
|
border-width: 0;
|
|
border-style: solid;
|
|
box-sizing: border-box;
|
|
}
|
|
|
|
main {
|
|
display: block;
|
|
}
|
|
|
|
hr {
|
|
border-top-width: 1px;
|
|
box-sizing: content-box;
|
|
height: 0;
|
|
overflow: visible;
|
|
}
|
|
|
|
pre,
|
|
code,
|
|
kbd,
|
|
samp {
|
|
font-family: SFMono-Regular, Menlo, Monaco, Consolas, monospace;
|
|
font-size: 1em;
|
|
}
|
|
|
|
a {
|
|
background-color: transparent;
|
|
color: inherit;
|
|
text-decoration: inherit;
|
|
}
|
|
|
|
abbr[title] {
|
|
border-bottom: none;
|
|
text-decoration: underline;
|
|
-webkit-text-decoration: underline dotted;
|
|
text-decoration: underline dotted;
|
|
}
|
|
|
|
b,
|
|
strong {
|
|
font-weight: bold;
|
|
}
|
|
|
|
small {
|
|
font-size: 80%;
|
|
}
|
|
|
|
sub,
|
|
sup {
|
|
font-size: 75%;
|
|
line-height: 0;
|
|
position: relative;
|
|
vertical-align: baseline;
|
|
}
|
|
|
|
sub {
|
|
bottom: -0.25em;
|
|
}
|
|
|
|
sup {
|
|
top: -0.5em;
|
|
}
|
|
|
|
img {
|
|
border-style: none;
|
|
}
|
|
|
|
button,
|
|
input,
|
|
optgroup,
|
|
select,
|
|
textarea {
|
|
font-family: inherit;
|
|
font-size: 100%;
|
|
line-height: 1.15;
|
|
margin: 0;
|
|
}
|
|
|
|
button,
|
|
input {
|
|
overflow: visible;
|
|
}
|
|
|
|
button,
|
|
select {
|
|
text-transform: none;
|
|
}
|
|
|
|
button::-moz-focus-inner,
|
|
[type="button"]::-moz-focus-inner,
|
|
[type="reset"]::-moz-focus-inner,
|
|
[type="submit"]::-moz-focus-inner {
|
|
border-style: none;
|
|
padding: 0;
|
|
}
|
|
|
|
fieldset {
|
|
padding: 0.35em 0.75em 0.625em;
|
|
}
|
|
|
|
legend {
|
|
box-sizing: border-box;
|
|
color: inherit;
|
|
display: table;
|
|
max-width: 100%;
|
|
padding: 0;
|
|
white-space: normal;
|
|
}
|
|
|
|
progress {
|
|
vertical-align: baseline;
|
|
}
|
|
|
|
textarea {
|
|
overflow: auto;
|
|
}
|
|
|
|
[type="checkbox"],
|
|
[type="radio"] {
|
|
box-sizing: border-box;
|
|
padding: 0;
|
|
}
|
|
|
|
[type="number"]::-webkit-inner-spin-button,
|
|
[type="number"]::-webkit-outer-spin-button {
|
|
-webkit-appearance: none !important;
|
|
}
|
|
|
|
input[type="number"] {
|
|
-moz-appearance: textfield;
|
|
}
|
|
|
|
[type="search"] {
|
|
-webkit-appearance: textfield;
|
|
outline-offset: -2px;
|
|
}
|
|
|
|
[type="search"]::-webkit-search-decoration {
|
|
-webkit-appearance: none !important;
|
|
}
|
|
|
|
::-webkit-file-upload-button {
|
|
-webkit-appearance: button;
|
|
font: inherit;
|
|
}
|
|
|
|
details {
|
|
display: block;
|
|
}
|
|
|
|
summary {
|
|
display: list-item;
|
|
}
|
|
|
|
template {
|
|
display: none;
|
|
}
|
|
|
|
[hidden] {
|
|
display: none !important;
|
|
}
|
|
|
|
body,
|
|
blockquote,
|
|
dl,
|
|
dd,
|
|
h1,
|
|
h2,
|
|
h3,
|
|
h4,
|
|
h5,
|
|
h6,
|
|
hr,
|
|
figure,
|
|
p,
|
|
pre {
|
|
margin: 0;
|
|
}
|
|
|
|
button {
|
|
background: transparent;
|
|
padding: 0;
|
|
}
|
|
|
|
fieldset {
|
|
margin: 0;
|
|
padding: 0;
|
|
}
|
|
|
|
ol,
|
|
ul {
|
|
margin: 0;
|
|
padding: 0;
|
|
}
|
|
|
|
textarea {
|
|
resize: vertical;
|
|
}
|
|
|
|
button,
|
|
[role="button"] {
|
|
cursor: pointer;
|
|
}
|
|
|
|
button::-moz-focus-inner {
|
|
border: 0 !important;
|
|
}
|
|
|
|
table {
|
|
border-collapse: collapse;
|
|
}
|
|
|
|
h1,
|
|
h2,
|
|
h3,
|
|
h4,
|
|
h5,
|
|
h6 {
|
|
font-size: inherit;
|
|
font-weight: inherit;
|
|
}
|
|
|
|
button,
|
|
input,
|
|
optgroup,
|
|
select,
|
|
textarea {
|
|
padding: 0;
|
|
line-height: inherit;
|
|
color: inherit;
|
|
}
|
|
|
|
img,
|
|
svg,
|
|
video,
|
|
canvas,
|
|
audio,
|
|
iframe,
|
|
embed,
|
|
object {
|
|
display: block;
|
|
}
|
|
|
|
img,
|
|
video {
|
|
max-width: 100%;
|
|
height: auto;
|
|
}
|
|
|
|
[data-js-focus-visible] :focus:not([data-focus-visible-added]):not([data-focus-visible-disabled]) {
|
|
outline: none;
|
|
box-shadow: none;
|
|
}
|
|
|
|
select::-ms-expand {
|
|
display: none;
|
|
}
|
|
|
|
${Bz}
|
|
`},void 0,!1,{fileName:zz,lineNumber:32,columnNumber:38},globalThis);function hA(e,t,r,i){const s=ki(r);return D.exports.useEffect(()=>{const c=typeof e=="function"?e():e??document;if(!(!r||!c))return c.addEventListener(t,s,i),()=>{c.removeEventListener(t,s,i)}},[t,e,i,s,r]),()=>{const c=typeof e=="function"?e():e??document;c?.removeEventListener(t,s,i)}}var EZ=_7?D.exports.useLayoutEffect:D.exports.useEffect;function s5(e,t=[]){const r=D.exports.useRef(e);return EZ(()=>{r.current=e}),D.exports.useCallback((...i)=>{var s;return(s=r.current)==null?void 0:s.call(r,...i)},t)}function TZ(e,t){const r=e!==void 0;return[r,r&&typeof e<"u"?e:t]}function NZ(e,t){const r=D.exports.useId();return D.exports.useMemo(()=>e||[t,r].filter(Boolean).join("-"),[e,t,r])}function mA(e={}){const{onClose:t,onOpen:r,isOpen:i,id:s}=e,c=s5(r),u=s5(t),[h,m]=D.exports.useState(e.defaultIsOpen||!1),[v,b]=TZ(i,h),x=NZ(s,"disclosure"),C=D.exports.useCallback(()=>{v||m(!1),u?.()},[v,u]),_=D.exports.useCallback(()=>{v||m(!0),c?.()},[v,c]),R=D.exports.useCallback(()=>{(b?C:_)()},[b,_,C]);return{isOpen:!!b,onOpen:_,onClose:C,onToggle:R,isControlled:v,getButtonProps:(A={})=>({...A,"aria-expanded":b,"aria-controls":x,onClick:E7(A.onClick,R)}),getDisclosureProps:(A={})=>({...A,hidden:!b,id:x})}}function ek(e){const t=Object.assign({},e);for(let r in t)t[r]===void 0&&delete t[r];return t}var Hp="/Users/spencer/Documents/Code/stable-diffusion/frontend/node_modules/@chakra-ui/input/dist/index.esm.js",tk=et(function(t,r){const{htmlSize:i,...s}=t,c=Qo("Input",s),u=mr(s),h=K2(u),m=Zr("chakra-input",t.className);return Ue.createElement(Ge.input,{size:i,...h,__css:c.field,ref:r,className:m})});tk.displayName="Input";tk.id="Input";var[RZ,Uz]=Xr({name:"InputGroupStylesContext",errorMessage:`useInputGroupStyles returned is 'undefined'. Seems you forgot to wrap the components in "<InputGroup />" `}),OZ=et(function(t,r){const i=Qo("Input",t),{children:s,className:c,...u}=mr(t),h=Zr("chakra-input__group",c),m={},v=q2(s),b=i.field;v.forEach(C=>{!i||(b&&C.type.id==="InputLeftElement"&&(m.paddingStart=b.height??b.h),b&&C.type.id==="InputRightElement"&&(m.paddingEnd=b.height??b.h),C.type.id==="InputRightAddon"&&(m.borderEndRadius=0),C.type.id==="InputLeftAddon"&&(m.borderStartRadius=0))});const x=v.map(C=>{var _,R;const A=ek({size:((_=C.props)==null?void 0:_.size)||t.size,variant:((R=C.props)==null?void 0:R.variant)||t.variant});return C.type.id!=="Input"?D.exports.cloneElement(C,A):D.exports.cloneElement(C,Object.assign(A,m,C.props))});return Ue.createElement(Ge.div,{className:h,ref:r,__css:{width:"100%",display:"flex",position:"relative"},...u},k(RZ,{value:i,children:x},void 0,!1,{fileName:Hp,lineNumber:90,columnNumber:22},this))});OZ.displayName="InputGroup";var AZ={left:{marginEnd:"-1px",borderEndRadius:0,borderEndColor:"transparent"},right:{marginStart:"-1px",borderStartRadius:0,borderStartColor:"transparent"}},kZ=Ge("div",{baseStyle:{flex:"0 0 auto",width:"auto",display:"flex",alignItems:"center",whiteSpace:"nowrap"}}),nk=et(function(t,r){const{placement:i="left",...s}=t,c=AZ[i]??{},u=Uz();return k(kZ,{ref:r,...s,__css:{...u.addon,...c}},void 0,!1,{fileName:Hp,lineNumber:122,columnNumber:26},this)});nk.displayName="InputAddon";var jz=et(function(t,r){return k(nk,{ref:r,placement:"left",...t,className:Zr("chakra-input__left-addon",t.className)},void 0,!1,{fileName:Hp,lineNumber:133,columnNumber:26},this)});jz.displayName="InputLeftAddon";jz.id="InputLeftAddon";var $z=et(function(t,r){return k(nk,{ref:r,placement:"right",...t,className:Zr("chakra-input__right-addon",t.className)},void 0,!1,{fileName:Hp,lineNumber:143,columnNumber:26},this)});$z.displayName="InputRightAddon";$z.id="InputRightAddon";var DZ=Ge("div",{baseStyle:{display:"flex",alignItems:"center",justifyContent:"center",position:"absolute",top:"0",zIndex:2}}),eC=et(function(t,r){const{placement:i="left",...s}=t,c=Uz(),u=c.field,m={[i==="left"?"insetStart":"insetEnd"]:"0",width:u?.height??u?.h,height:u?.height??u?.h,fontSize:u?.fontSize,...c.element};return k(DZ,{ref:r,__css:m,...s},void 0,!1,{fileName:Hp,lineNumber:181,columnNumber:26},this)});eC.id="InputElement";eC.displayName="InputElement";var Vz=et(function(t,r){const{className:i,...s}=t,c=Zr("chakra-input__left-element",i);return k(eC,{ref:r,placement:"left",className:c,...s},void 0,!1,{fileName:Hp,lineNumber:192,columnNumber:26},this)});Vz.id="InputLeftElement";Vz.displayName="InputLeftElement";var Hz=et(function(t,r){const{className:i,...s}=t,c=Zr("chakra-input__right-element",i);return k(eC,{ref:r,placement:"right",className:c,...s},void 0,!1,{fileName:Hp,lineNumber:204,columnNumber:26},this)});Hz.id="InputRightElement";Hz.displayName="InputRightElement";function PZ(e){const t=typeof e;return e!=null&&(t==="object"||t==="function")&&!Array.isArray(e)}Object.freeze(["base","sm","md","lg","xl","2xl"]);function jf(e,t){return Array.isArray(e)?e.map(r=>r===null?null:t(r)):PZ(e)?Object.keys(e).reduce((r,i)=>(r[i]=t(e[i]),r),{}):e!=null?t(e):null}var Is="/Users/spencer/Documents/Code/stable-diffusion/frontend/node_modules/@chakra-ui/layout/dist/index.esm.js",MZ=et(function(e,t){const{ratio:r=4/3,children:i,className:s,...c}=e,u=D.exports.Children.only(i),h=Zr("chakra-aspect-ratio",s);return Ue.createElement(Ge.div,{ref:t,position:"relative",className:h,_before:{height:0,content:'""',display:"block",paddingBottom:jf(r,m=>`${1/m*100}%`)},__css:{"& > *:not(style)":{overflow:"hidden",position:"absolute",top:"0",right:"0",bottom:"0",left:"0",display:"flex",justifyContent:"center",alignItems:"center",width:"100%",height:"100%"},"& > img, & > video":{objectFit:"cover"}},...c},u)});MZ.displayName="AspectRatio";var IZ=et(function(t,r){const i=Qi("Badge",t),{className:s,...c}=mr(t);return Ue.createElement(Ge.span,{ref:r,className:Zr("chakra-badge",t.className),...c,__css:{display:"inline-block",whiteSpace:"nowrap",verticalAlign:"middle",...i}})});IZ.displayName="Badge";var Ap=Ge("div");Ap.displayName="Box";var Wz=et(function(t,r){const{size:i,centerContent:s=!0,...c}=t;return k(Ap,{ref:r,boxSize:i,__css:{...s?{display:"flex",alignItems:"center",justifyContent:"center"}:{},flexShrink:0,flexGrow:0},...c},void 0,!1,{fileName:Is,lineNumber:84,columnNumber:26},this)});Wz.displayName="Square";var LZ=et(function(t,r){const{size:i,...s}=t;return k(Wz,{size:i,ref:r,borderRadius:"9999px",...s},void 0,!1,{fileName:Is,lineNumber:98,columnNumber:26},this)});LZ.displayName="Circle";var rk=Ge("div",{baseStyle:{display:"flex",alignItems:"center",justifyContent:"center"}});rk.displayName="Center";var FZ={horizontal:{insetStart:"50%",transform:"translateX(-50%)"},vertical:{top:"50%",transform:"translateY(-50%)"},both:{insetStart:"50%",top:"50%",transform:"translate(-50%, -50%)"}};et(function(t,r){const{axis:i="both",...s}=t;return Ue.createElement(Ge.div,{ref:r,__css:FZ[i],...s,position:"absolute"})});var zZ=et(function(t,r){const i=Qi("Code",t),{className:s,...c}=mr(t);return Ue.createElement(Ge.code,{ref:r,className:Zr("chakra-code",t.className),...c,__css:{display:"inline-block",...i}})});zZ.displayName="Code";var BZ=et(function(t,r){const{className:i,centerContent:s,...c}=mr(t),u=Qi("Container",t);return Ue.createElement(Ge.div,{ref:r,className:Zr("chakra-container",i),...c,__css:{...u,...s&&{display:"flex",flexDirection:"column",alignItems:"center"}}})});BZ.displayName="Container";var UZ=et(function(t,r){const{borderLeftWidth:i,borderBottomWidth:s,borderTopWidth:c,borderRightWidth:u,borderWidth:h,borderStyle:m,borderColor:v,...b}=Qi("Divider",t),{className:x,orientation:C="horizontal",__css:_,...R}=mr(t),A={vertical:{borderLeftWidth:i||u||h||"1px",height:"100%"},horizontal:{borderBottomWidth:s||c||h||"1px",width:"100%"}};return Ue.createElement(Ge.hr,{ref:r,"aria-orientation":C,...R,__css:{...b,border:"0",borderColor:v,borderStyle:m,...A[C],..._},className:Zr("chakra-divider",x)})});UZ.displayName="Divider";var Ln=et(function(t,r){const{direction:i,align:s,justify:c,wrap:u,basis:h,grow:m,shrink:v,...b}=t,x={display:"flex",flexDirection:i,alignItems:s,justifyContent:c,flexWrap:u,flexBasis:h,flexGrow:m,flexShrink:v};return Ue.createElement(Ge.div,{ref:r,__css:x,...b})});Ln.displayName="Flex";var ak=et(function(t,r){const{templateAreas:i,gap:s,rowGap:c,columnGap:u,column:h,row:m,autoFlow:v,autoRows:b,templateRows:x,autoColumns:C,templateColumns:_,...R}=t,A={display:"grid",gridTemplateAreas:i,gridGap:s,gridRowGap:c,gridColumnGap:u,gridAutoColumns:C,gridColumn:h,gridRow:m,gridAutoFlow:v,gridAutoRows:b,gridTemplateRows:x,gridTemplateColumns:_};return Ue.createElement(Ge.div,{ref:r,__css:A,...R})});ak.displayName="Grid";function l5(e){return jf(e,t=>t==="auto"?"auto":`span ${t}/span ${t}`)}var Tf=et(function(t,r){const{area:i,colSpan:s,colStart:c,colEnd:u,rowEnd:h,rowSpan:m,rowStart:v,...b}=t,x=ek({gridArea:i,gridColumn:l5(s),gridRow:l5(m),gridColumnStart:c,gridColumnEnd:u,gridRowStart:v,gridRowEnd:h});return Ue.createElement(Ge.div,{ref:r,__css:x,...b})});Tf.displayName="GridItem";var ik=et(function(t,r){const i=Qi("Heading",t),{className:s,...c}=mr(t);return Ue.createElement(Ge.h2,{ref:r,className:Zr("chakra-heading",t.className),...c,__css:i})});ik.displayName="Heading";et(function(t,r){const i=Qi("Mark",t),s=mr(t);return k(Ap,{ref:r,...s,as:"mark",__css:{bg:"transparent",whiteSpace:"nowrap",...i}},void 0,!1,{fileName:Is,lineNumber:399,columnNumber:26},this)});var jZ=et(function(t,r){const i=Qi("Kbd",t),{className:s,...c}=mr(t);return Ue.createElement(Ge.kbd,{ref:r,className:Zr("chakra-kbd",s),...c,__css:{fontFamily:"mono",...i}})});jZ.displayName="Kbd";var ow=et(function(t,r){const i=Qi("Link",t),{className:s,isExternal:c,...u}=mr(t);return Ue.createElement(Ge.a,{target:c?"_blank":void 0,rel:c?"noopener":void 0,ref:r,className:Zr("chakra-link",s),...u,__css:i})});ow.displayName="Link";et(function(t,r){const{isExternal:i,target:s,rel:c,className:u,...h}=t;return Ue.createElement(Ge.a,{...h,ref:r,className:Zr("chakra-linkbox__overlay",u),rel:i?"noopener noreferrer":c,target:i?"_blank":s,__css:{position:"static","&::before":{content:"''",cursor:"inherit",display:"block",position:"absolute",top:0,left:0,zIndex:0,width:"100%",height:"100%"}}})});et(function(t,r){const{className:i,...s}=t;return Ue.createElement(Ge.div,{ref:r,position:"relative",...s,className:Zr("chakra-linkbox",i),__css:{"a[href]:not(.chakra-linkbox__overlay), abbr[title]":{position:"relative",zIndex:1}}})});var[$Z,Gz]=Xr({name:"ListStylesContext",errorMessage:`useListStyles returned is 'undefined'. Seems you forgot to wrap the components in "<List />" `}),tC=et(function(t,r){const i=Qo("List",t),{children:s,styleType:c="none",stylePosition:u,spacing:h,...m}=mr(t),v=q2(s),x=h?{["& > *:not(style) ~ *:not(style)"]:{mt:h}}:{};return Ue.createElement($Z,{value:i},Ue.createElement(Ge.ul,{ref:r,listStyleType:c,listStylePosition:u,role:"list",__css:{...i.container,...x},...m},v))});tC.displayName="List";var VZ=et((e,t)=>{const{as:r,...i}=e;return k(tC,{ref:t,as:"ol",styleType:"decimal",marginStart:"1em",...i},void 0,!1,{fileName:Is,lineNumber:550,columnNumber:26},globalThis)});VZ.displayName="OrderedList";var HZ=et(function(t,r){const{as:i,...s}=t;return k(tC,{ref:r,as:"ul",styleType:"initial",marginStart:"1em",...s},void 0,!1,{fileName:Is,lineNumber:561,columnNumber:26},this)});HZ.displayName="UnorderedList";var Yz=et(function(t,r){const i=Gz();return Ue.createElement(Ge.li,{ref:r,...t,__css:i.item})});Yz.displayName="ListItem";var WZ=et(function(t,r){const i=Gz();return k(Rl,{ref:r,role:"presentation",...t,__css:i.icon},void 0,!1,{fileName:Is,lineNumber:581,columnNumber:26},this)});WZ.displayName="ListIcon";var GZ=et(function(t,r){const{columns:i,spacingX:s,spacingY:c,spacing:u,minChildWidth:h,...m}=t,v=g2(),b=h?qZ(h,v):KZ(i);return k(ak,{ref:r,gap:u,columnGap:s,rowGap:c,templateColumns:b,...m},void 0,!1,{fileName:Is,lineNumber:601,columnNumber:26},this)});GZ.displayName="SimpleGrid";function YZ(e){return typeof e=="number"?`${e}px`:e}function qZ(e,t){return jf(e,r=>{const i=$7("sizes",r,YZ(r))(t);return r===null?null:`repeat(auto-fit, minmax(${i}, 1fr))`})}function KZ(e){return jf(e,t=>t===null?null:`repeat(${t}, minmax(0, 1fr))`)}var qz=Ge("div",{baseStyle:{flex:1,justifySelf:"stretch",alignSelf:"stretch"}});qz.displayName="Spacer";var vA="& > *:not(style) ~ *:not(style)";function XZ(e){const{spacing:t,direction:r}=e,i={column:{marginTop:t,marginEnd:0,marginBottom:0,marginStart:0},row:{marginTop:0,marginEnd:0,marginBottom:0,marginStart:t},"column-reverse":{marginTop:0,marginEnd:0,marginBottom:t,marginStart:0},"row-reverse":{marginTop:0,marginEnd:t,marginBottom:0,marginStart:0}};return{flexDirection:r,[vA]:jf(r,s=>i[s])}}function ZZ(e){const{spacing:t,direction:r}=e,i={column:{my:t,mx:0,borderLeftWidth:0,borderBottomWidth:"1px"},"column-reverse":{my:t,mx:0,borderLeftWidth:0,borderBottomWidth:"1px"},row:{mx:t,my:0,borderLeftWidth:"1px",borderBottomWidth:0},"row-reverse":{mx:t,my:0,borderLeftWidth:"1px",borderBottomWidth:0}};return{"&":jf(r,s=>i[s])}}var Kz=e=>Ue.createElement(Ge.div,{className:"chakra-stack__item",...e,__css:{display:"inline-block",flex:"0 0 auto",minWidth:0,...e.__css}});Kz.displayName="StackItem";var ok=et((e,t)=>{const{isInline:r,direction:i,align:s,justify:c,spacing:u="0.5rem",wrap:h,children:m,divider:v,className:b,shouldWrapChildren:x,...C}=e,_=r?"row":i??"column",R=D.exports.useMemo(()=>XZ({direction:_,spacing:u}),[_,u]),A=D.exports.useMemo(()=>ZZ({spacing:u,direction:_}),[u,_]),M=!!v,j=!x&&!M,I=q2(m),z=j?I:I.map(($,K)=>{const X=typeof $.key<"u"?$.key:K,de=K+1===I.length,se=x?k(Kz,{children:$},X,!1,{fileName:Is,lineNumber:749,columnNumber:42},globalThis):$;if(!M)return se;const be=D.exports.cloneElement(v,{__css:A}),Xe=de?null:be;return k(D.exports.Fragment,{children:[se,Xe]},X,!0,{fileName:Is,lineNumber:759,columnNumber:28},globalThis)}),B=Zr("chakra-stack",b);return Ue.createElement(Ge.div,{ref:t,display:"flex",alignItems:s,justifyContent:c,flexDirection:R.flexDirection,flexWrap:h,className:B,__css:M?{}:{[vA]:R[vA]},...C},z)});ok.displayName="Stack";var sw=et((e,t)=>k(ok,{align:"center",...e,direction:"row",ref:t},void 0,!1,{fileName:Is,lineNumber:779,columnNumber:59},globalThis));sw.displayName="HStack";var QZ=et((e,t)=>k(ok,{align:"center",...e,direction:"column",ref:t},void 0,!1,{fileName:Is,lineNumber:805,columnNumber:59},globalThis));QZ.displayName="VStack";var Ir=et(function(t,r){const i=Qi("Text",t),{className:s,align:c,decoration:u,casing:h,...m}=mr(t),v=ek({textAlign:t.align,textDecoration:t.decoration,textTransform:t.casing});return Ue.createElement(Ge.p,{ref:r,className:Zr("chakra-text",t.className),...v,...m,__css:i})});Ir.displayName="Text";function u5(e){return typeof e=="number"?`${e}px`:e}var JZ=et(function(t,r){const{spacing:i="0.5rem",spacingX:s,spacingY:c,children:u,justify:h,direction:m,align:v,className:b,shouldWrapChildren:x,...C}=t,_=D.exports.useMemo(()=>{const{spacingX:A=i,spacingY:M=i}={spacingX:s,spacingY:c};return{"--chakra-wrap-x-spacing":j=>jf(A,I=>u5(AO("space",I)(j))),"--chakra-wrap-y-spacing":j=>jf(M,I=>u5(AO("space",I)(j))),"--wrap-x-spacing":"calc(var(--chakra-wrap-x-spacing) / 2)","--wrap-y-spacing":"calc(var(--chakra-wrap-y-spacing) / 2)",display:"flex",flexWrap:"wrap",justifyContent:h,alignItems:v,flexDirection:m,listStyleType:"none",padding:"0",margin:"calc(var(--wrap-y-spacing) * -1) calc(var(--wrap-x-spacing) * -1)","& > *:not(style)":{margin:"var(--wrap-y-spacing) var(--wrap-x-spacing)"}}},[i,s,c,h,v,m]),R=x?D.exports.Children.map(u,(A,M)=>k(Xz,{children:A},M,!1,{fileName:Is,lineNumber:888,columnNumber:107},this)):u;return Ue.createElement(Ge.div,{ref:r,className:Zr("chakra-wrap",b),overflow:"hidden",...C},Ue.createElement(Ge.ul,{className:"chakra-wrap__list",__css:_},R))});JZ.displayName="Wrap";var Xz=et(function(t,r){const{className:i,...s}=t;return Ue.createElement(Ge.li,{ref:r,__css:{display:"flex",alignItems:"flex-start"},className:Zr("chakra-wrap__listitem",i),...s})});Xz.displayName="WrapItem";var c5="/Users/spencer/Documents/Code/stable-diffusion/frontend/node_modules/@chakra-ui/react-env/dist/index.esm.js",eQ={body:{classList:{add(){},remove(){}}},addEventListener(){},removeEventListener(){},activeElement:{blur(){},nodeName:""},querySelector(){return null},querySelectorAll(){return[]},getElementById(){return null},createEvent(){return{initEvent(){}}},createElement(){return{children:[],childNodes:[],style:{},setAttribute(){},getElementsByTagName(){return[]}}}},Zz=eQ,bm=()=>{},tQ={document:Zz,navigator:{userAgent:""},CustomEvent:function(){return this},addEventListener:bm,removeEventListener:bm,getComputedStyle(){return{getPropertyValue(){return""}}},matchMedia(){return{matches:!1,addListener:bm,removeListener:bm}},requestAnimationFrame(e){return typeof setTimeout>"u"?(e(),null):setTimeout(e,0)},cancelAnimationFrame(e){typeof setTimeout>"u"||clearTimeout(e)},setTimeout:()=>0,clearTimeout:bm,setInterval:()=>0,clearInterval:bm},nQ=tQ,rQ={window:nQ,document:Zz},Qz=typeof window<"u"?{window,document}:rQ,Jz=D.exports.createContext(Qz);Jz.displayName="EnvironmentContext";function eB(e){const{children:t,environment:r}=e,[i,s]=D.exports.useState(null),[c,u]=D.exports.useState(!1);D.exports.useEffect(()=>u(!0),[]);const h=D.exports.useMemo(()=>{if(r)return r;const m=i?.ownerDocument,v=i?.ownerDocument.defaultView;return m?{document:m,window:v}:Qz},[i,r]);return k(Jz.Provider,{value:h,children:[t,!r&&c&&k("span",{id:"__chakra_env",hidden:!0,ref:m=>{D.exports.startTransition(()=>{m&&s(m)})}},void 0,!1,{fileName:c5,lineNumber:136,columnNumber:63},this)]},void 0,!0,{fileName:c5,lineNumber:134,columnNumber:26},this)}eB.displayName="EnvironmentProvider";function aQ(e){return e!=null&&typeof e=="object"&&"nodeType"in e&&e.nodeType===Node.ELEMENT_NODE}function iQ(e){if(!aQ(e))return!1;const t=e.ownerDocument.defaultView??window;return e instanceof t.HTMLElement}var oQ=e=>e.hasAttribute("tabindex");function sQ(e){return Boolean(e.getAttribute("disabled"))===!0||Boolean(e.getAttribute("aria-disabled"))===!0}function tB(e){return e.parentElement&&tB(e.parentElement)?!0:e.hidden}function lQ(e){const t=e.getAttribute("contenteditable");return t!=="false"&&t!=null}function uQ(e){if(!iQ(e)||tB(e)||sQ(e))return!1;const{localName:t}=e;if(["input","select","textarea","button"].indexOf(t)>=0)return!0;const i={a:()=>e.hasAttribute("href"),audio:()=>e.hasAttribute("controls"),video:()=>e.hasAttribute("controls")};return t in i?i[t]():lQ(e)?!0:oQ(e)}var cQ=["input:not([disabled])","select:not([disabled])","textarea:not([disabled])","embed","iframe","object","a[href]","area[href]","button:not([disabled])","[tabindex]","audio[controls]","video[controls]","*[tabindex]:not([aria-disabled])","*[contenteditable]"],fQ=cQ.join(),dQ=e=>e.offsetWidth>0&&e.offsetHeight>0;function pQ(e){const t=Array.from(e.querySelectorAll(fQ));return t.unshift(e),t.filter(r=>uQ(r)&&dQ(r))}var go="top",Ls="bottom",Fs="right",yo="left",nC="auto",Pb=[go,Ls,Fs,yo],qm="start",ub="end",hQ="clippingParents",nB="viewport",_y="popper",mQ="reference",f5=Pb.reduce(function(e,t){return e.concat([t+"-"+qm,t+"-"+ub])},[]),rB=[].concat(Pb,[nC]).reduce(function(e,t){return e.concat([t,t+"-"+qm,t+"-"+ub])},[]),vQ="beforeRead",gQ="read",yQ="afterRead",bQ="beforeMain",SQ="main",xQ="afterMain",wQ="beforeWrite",CQ="write",_Q="afterWrite",gA=[vQ,gQ,yQ,bQ,SQ,xQ,wQ,CQ,_Q];function vu(e){return e?(e.nodeName||"").toLowerCase():null}function zs(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function Bp(e){var t=zs(e).Element;return e instanceof t||e instanceof Element}function qo(e){var t=zs(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function sk(e){if(typeof ShadowRoot>"u")return!1;var t=zs(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function EQ(e){var t=e.state;Object.keys(t.elements).forEach(function(r){var i=t.styles[r]||{},s=t.attributes[r]||{},c=t.elements[r];!qo(c)||!vu(c)||(Object.assign(c.style,i),Object.keys(s).forEach(function(u){var h=s[u];h===!1?c.removeAttribute(u):c.setAttribute(u,h===!0?"":h)}))})}function TQ(e){var t=e.state,r={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,r.popper),t.styles=r,t.elements.arrow&&Object.assign(t.elements.arrow.style,r.arrow),function(){Object.keys(t.elements).forEach(function(i){var s=t.elements[i],c=t.attributes[i]||{},u=Object.keys(t.styles.hasOwnProperty(i)?t.styles[i]:r[i]),h=u.reduce(function(m,v){return m[v]="",m},{});!qo(s)||!vu(s)||(Object.assign(s.style,h),Object.keys(c).forEach(function(m){s.removeAttribute(m)}))})}}const NQ={name:"applyStyles",enabled:!0,phase:"write",fn:EQ,effect:TQ,requires:["computeStyles"]};function Tl(e){return e.split("-")[0]}var kp=Math.max,lw=Math.min,Km=Math.round;function yA(){var e=navigator.userAgentData;return e!=null&&e.brands?e.brands.map(function(t){return t.brand+"/"+t.version}).join(" "):navigator.userAgent}function aB(){return!/^((?!chrome|android).)*safari/i.test(yA())}function Xm(e,t,r){t===void 0&&(t=!1),r===void 0&&(r=!1);var i=e.getBoundingClientRect(),s=1,c=1;t&&qo(e)&&(s=e.offsetWidth>0&&Km(i.width)/e.offsetWidth||1,c=e.offsetHeight>0&&Km(i.height)/e.offsetHeight||1);var u=Bp(e)?zs(e):window,h=u.visualViewport,m=!aB()&&r,v=(i.left+(m&&h?h.offsetLeft:0))/s,b=(i.top+(m&&h?h.offsetTop:0))/c,x=i.width/s,C=i.height/c;return{width:x,height:C,top:b,right:v+x,bottom:b+C,left:v,x:v,y:b}}function lk(e){var t=Xm(e),r=e.offsetWidth,i=e.offsetHeight;return Math.abs(t.width-r)<=1&&(r=t.width),Math.abs(t.height-i)<=1&&(i=t.height),{x:e.offsetLeft,y:e.offsetTop,width:r,height:i}}function iB(e,t){var r=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(r&&sk(r)){var i=t;do{if(i&&e.isSameNode(i))return!0;i=i.parentNode||i.host}while(i)}return!1}function Nl(e){return zs(e).getComputedStyle(e)}function RQ(e){return["table","td","th"].indexOf(vu(e))>=0}function Gf(e){return((Bp(e)?e.ownerDocument:e.document)||window.document).documentElement}function rC(e){return vu(e)==="html"?e:e.assignedSlot||e.parentNode||(sk(e)?e.host:null)||Gf(e)}function d5(e){return!qo(e)||Nl(e).position==="fixed"?null:e.offsetParent}function OQ(e){var t=/firefox/i.test(yA()),r=/Trident/i.test(yA());if(r&&qo(e)){var i=Nl(e);if(i.position==="fixed")return null}var s=rC(e);for(sk(s)&&(s=s.host);qo(s)&&["html","body"].indexOf(vu(s))<0;){var c=Nl(s);if(c.transform!=="none"||c.perspective!=="none"||c.contain==="paint"||["transform","perspective"].indexOf(c.willChange)!==-1||t&&c.willChange==="filter"||t&&c.filter&&c.filter!=="none")return s;s=s.parentNode}return null}function Mb(e){for(var t=zs(e),r=d5(e);r&&RQ(r)&&Nl(r).position==="static";)r=d5(r);return r&&(vu(r)==="html"||vu(r)==="body"&&Nl(r).position==="static")?t:r||OQ(e)||t}function uk(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function $y(e,t,r){return kp(e,lw(t,r))}function AQ(e,t,r){var i=$y(e,t,r);return i>r?r:i}function oB(){return{top:0,right:0,bottom:0,left:0}}function sB(e){return Object.assign({},oB(),e)}function lB(e,t){return t.reduce(function(r,i){return r[i]=e,r},{})}var kQ=function(t,r){return t=typeof t=="function"?t(Object.assign({},r.rects,{placement:r.placement})):t,sB(typeof t!="number"?t:lB(t,Pb))};function DQ(e){var t,r=e.state,i=e.name,s=e.options,c=r.elements.arrow,u=r.modifiersData.popperOffsets,h=Tl(r.placement),m=uk(h),v=[yo,Fs].indexOf(h)>=0,b=v?"height":"width";if(!(!c||!u)){var x=kQ(s.padding,r),C=lk(c),_=m==="y"?go:yo,R=m==="y"?Ls:Fs,A=r.rects.reference[b]+r.rects.reference[m]-u[m]-r.rects.popper[b],M=u[m]-r.rects.reference[m],j=Mb(c),I=j?m==="y"?j.clientHeight||0:j.clientWidth||0:0,z=A/2-M/2,B=x[_],$=I-C[b]-x[R],K=I/2-C[b]/2+z,X=$y(B,K,$),de=m;r.modifiersData[i]=(t={},t[de]=X,t.centerOffset=X-K,t)}}function PQ(e){var t=e.state,r=e.options,i=r.element,s=i===void 0?"[data-popper-arrow]":i;if(s!=null&&!(typeof s=="string"&&(s=t.elements.popper.querySelector(s),!s))){if(qo(s)||console.error(['Popper: "arrow" element must be an HTMLElement (not an SVGElement).',"To use an SVG arrow, wrap it in an HTMLElement that will be used as","the arrow."].join(" ")),!iB(t.elements.popper,s)){console.error(['Popper: "arrow" modifier\'s `element` must be a child of the popper',"element."].join(" "));return}t.elements.arrow=s}}const MQ={name:"arrow",enabled:!0,phase:"main",fn:DQ,effect:PQ,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function Zm(e){return e.split("-")[1]}var IQ={top:"auto",right:"auto",bottom:"auto",left:"auto"};function LQ(e){var t=e.x,r=e.y,i=window,s=i.devicePixelRatio||1;return{x:Km(t*s)/s||0,y:Km(r*s)/s||0}}function p5(e){var t,r=e.popper,i=e.popperRect,s=e.placement,c=e.variation,u=e.offsets,h=e.position,m=e.gpuAcceleration,v=e.adaptive,b=e.roundOffsets,x=e.isFixed,C=u.x,_=C===void 0?0:C,R=u.y,A=R===void 0?0:R,M=typeof b=="function"?b({x:_,y:A}):{x:_,y:A};_=M.x,A=M.y;var j=u.hasOwnProperty("x"),I=u.hasOwnProperty("y"),z=yo,B=go,$=window;if(v){var K=Mb(r),X="clientHeight",de="clientWidth";if(K===zs(r)&&(K=Gf(r),Nl(K).position!=="static"&&h==="absolute"&&(X="scrollHeight",de="scrollWidth")),K=K,s===go||(s===yo||s===Fs)&&c===ub){B=Ls;var ve=x&&K===$&&$.visualViewport?$.visualViewport.height:K[X];A-=ve-i.height,A*=m?1:-1}if(s===yo||(s===go||s===Ls)&&c===ub){z=Fs;var se=x&&K===$&&$.visualViewport?$.visualViewport.width:K[de];_-=se-i.width,_*=m?1:-1}}var be=Object.assign({position:h},v&&IQ),Xe=b===!0?LQ({x:_,y:A}):{x:_,y:A};if(_=Xe.x,A=Xe.y,m){var ie;return Object.assign({},be,(ie={},ie[B]=I?"0":"",ie[z]=j?"0":"",ie.transform=($.devicePixelRatio||1)<=1?"translate("+_+"px, "+A+"px)":"translate3d("+_+"px, "+A+"px, 0)",ie))}return Object.assign({},be,(t={},t[B]=I?A+"px":"",t[z]=j?_+"px":"",t.transform="",t))}function FQ(e){var t=e.state,r=e.options,i=r.gpuAcceleration,s=i===void 0?!0:i,c=r.adaptive,u=c===void 0?!0:c,h=r.roundOffsets,m=h===void 0?!0:h;{var v=Nl(t.elements.popper).transitionProperty||"";u&&["transform","top","right","bottom","left"].some(function(x){return v.indexOf(x)>=0})&&console.warn(["Popper: Detected CSS transitions on at least one of the following",'CSS properties: "transform", "top", "right", "bottom", "left".',`
|
|
|
|
`,'Disable the "computeStyles" modifier\'s `adaptive` option to allow',"for smooth transitions, or remove these properties from the CSS","transition declaration on the popper element if only transitioning","opacity or background-color for example.",`
|
|
|
|
`,"We recommend using the popper element as a wrapper around an inner","element that can have any CSS property transitioned for animations."].join(" "))}var b={placement:Tl(t.placement),variation:Zm(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:s,isFixed:t.options.strategy==="fixed"};t.modifiersData.popperOffsets!=null&&(t.styles.popper=Object.assign({},t.styles.popper,p5(Object.assign({},b,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:u,roundOffsets:m})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,p5(Object.assign({},b,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:m})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}const zQ={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:FQ,data:{}};var tx={passive:!0};function BQ(e){var t=e.state,r=e.instance,i=e.options,s=i.scroll,c=s===void 0?!0:s,u=i.resize,h=u===void 0?!0:u,m=zs(t.elements.popper),v=[].concat(t.scrollParents.reference,t.scrollParents.popper);return c&&v.forEach(function(b){b.addEventListener("scroll",r.update,tx)}),h&&m.addEventListener("resize",r.update,tx),function(){c&&v.forEach(function(b){b.removeEventListener("scroll",r.update,tx)}),h&&m.removeEventListener("resize",r.update,tx)}}const UQ={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:BQ,data:{}};var jQ={left:"right",right:"left",bottom:"top",top:"bottom"};function Rx(e){return e.replace(/left|right|bottom|top/g,function(t){return jQ[t]})}var $Q={start:"end",end:"start"};function h5(e){return e.replace(/start|end/g,function(t){return $Q[t]})}function ck(e){var t=zs(e),r=t.pageXOffset,i=t.pageYOffset;return{scrollLeft:r,scrollTop:i}}function fk(e){return Xm(Gf(e)).left+ck(e).scrollLeft}function VQ(e,t){var r=zs(e),i=Gf(e),s=r.visualViewport,c=i.clientWidth,u=i.clientHeight,h=0,m=0;if(s){c=s.width,u=s.height;var v=aB();(v||!v&&t==="fixed")&&(h=s.offsetLeft,m=s.offsetTop)}return{width:c,height:u,x:h+fk(e),y:m}}function HQ(e){var t,r=Gf(e),i=ck(e),s=(t=e.ownerDocument)==null?void 0:t.body,c=kp(r.scrollWidth,r.clientWidth,s?s.scrollWidth:0,s?s.clientWidth:0),u=kp(r.scrollHeight,r.clientHeight,s?s.scrollHeight:0,s?s.clientHeight:0),h=-i.scrollLeft+fk(e),m=-i.scrollTop;return Nl(s||r).direction==="rtl"&&(h+=kp(r.clientWidth,s?s.clientWidth:0)-c),{width:c,height:u,x:h,y:m}}function dk(e){var t=Nl(e),r=t.overflow,i=t.overflowX,s=t.overflowY;return/auto|scroll|overlay|hidden/.test(r+s+i)}function uB(e){return["html","body","#document"].indexOf(vu(e))>=0?e.ownerDocument.body:qo(e)&&dk(e)?e:uB(rC(e))}function Vy(e,t){var r;t===void 0&&(t=[]);var i=uB(e),s=i===((r=e.ownerDocument)==null?void 0:r.body),c=zs(i),u=s?[c].concat(c.visualViewport||[],dk(i)?i:[]):i,h=t.concat(u);return s?h:h.concat(Vy(rC(u)))}function bA(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function WQ(e,t){var r=Xm(e,!1,t==="fixed");return r.top=r.top+e.clientTop,r.left=r.left+e.clientLeft,r.bottom=r.top+e.clientHeight,r.right=r.left+e.clientWidth,r.width=e.clientWidth,r.height=e.clientHeight,r.x=r.left,r.y=r.top,r}function m5(e,t,r){return t===nB?bA(VQ(e,r)):Bp(t)?WQ(t,r):bA(HQ(Gf(e)))}function GQ(e){var t=Vy(rC(e)),r=["absolute","fixed"].indexOf(Nl(e).position)>=0,i=r&&qo(e)?Mb(e):e;return Bp(i)?t.filter(function(s){return Bp(s)&&iB(s,i)&&vu(s)!=="body"}):[]}function YQ(e,t,r,i){var s=t==="clippingParents"?GQ(e):[].concat(t),c=[].concat(s,[r]),u=c[0],h=c.reduce(function(m,v){var b=m5(e,v,i);return m.top=kp(b.top,m.top),m.right=lw(b.right,m.right),m.bottom=lw(b.bottom,m.bottom),m.left=kp(b.left,m.left),m},m5(e,u,i));return h.width=h.right-h.left,h.height=h.bottom-h.top,h.x=h.left,h.y=h.top,h}function cB(e){var t=e.reference,r=e.element,i=e.placement,s=i?Tl(i):null,c=i?Zm(i):null,u=t.x+t.width/2-r.width/2,h=t.y+t.height/2-r.height/2,m;switch(s){case go:m={x:u,y:t.y-r.height};break;case Ls:m={x:u,y:t.y+t.height};break;case Fs:m={x:t.x+t.width,y:h};break;case yo:m={x:t.x-r.width,y:h};break;default:m={x:t.x,y:t.y}}var v=s?uk(s):null;if(v!=null){var b=v==="y"?"height":"width";switch(c){case qm:m[v]=m[v]-(t[b]/2-r[b]/2);break;case ub:m[v]=m[v]+(t[b]/2-r[b]/2);break}}return m}function cb(e,t){t===void 0&&(t={});var r=t,i=r.placement,s=i===void 0?e.placement:i,c=r.strategy,u=c===void 0?e.strategy:c,h=r.boundary,m=h===void 0?hQ:h,v=r.rootBoundary,b=v===void 0?nB:v,x=r.elementContext,C=x===void 0?_y:x,_=r.altBoundary,R=_===void 0?!1:_,A=r.padding,M=A===void 0?0:A,j=sB(typeof M!="number"?M:lB(M,Pb)),I=C===_y?mQ:_y,z=e.rects.popper,B=e.elements[R?I:C],$=YQ(Bp(B)?B:B.contextElement||Gf(e.elements.popper),m,b,u),K=Xm(e.elements.reference),X=cB({reference:K,element:z,strategy:"absolute",placement:s}),de=bA(Object.assign({},z,X)),ve=C===_y?de:K,se={top:$.top-ve.top+j.top,bottom:ve.bottom-$.bottom+j.bottom,left:$.left-ve.left+j.left,right:ve.right-$.right+j.right},be=e.modifiersData.offset;if(C===_y&&be){var Xe=be[s];Object.keys(se).forEach(function(ie){var ce=[Fs,Ls].indexOf(ie)>=0?1:-1,Re=[go,Ls].indexOf(ie)>=0?"y":"x";se[ie]+=Xe[Re]*ce})}return se}function qQ(e,t){t===void 0&&(t={});var r=t,i=r.placement,s=r.boundary,c=r.rootBoundary,u=r.padding,h=r.flipVariations,m=r.allowedAutoPlacements,v=m===void 0?rB:m,b=Zm(i),x=b?h?f5:f5.filter(function(R){return Zm(R)===b}):Pb,C=x.filter(function(R){return v.indexOf(R)>=0});C.length===0&&(C=x,console.error(["Popper: The `allowedAutoPlacements` option did not allow any","placements. Ensure the `placement` option matches the variation","of the allowed placements.",'For example, "auto" cannot be used to allow "bottom-start".','Use "auto-start" instead.'].join(" ")));var _=C.reduce(function(R,A){return R[A]=cb(e,{placement:A,boundary:s,rootBoundary:c,padding:u})[Tl(A)],R},{});return Object.keys(_).sort(function(R,A){return _[R]-_[A]})}function KQ(e){if(Tl(e)===nC)return[];var t=Rx(e);return[h5(e),t,h5(t)]}function XQ(e){var t=e.state,r=e.options,i=e.name;if(!t.modifiersData[i]._skip){for(var s=r.mainAxis,c=s===void 0?!0:s,u=r.altAxis,h=u===void 0?!0:u,m=r.fallbackPlacements,v=r.padding,b=r.boundary,x=r.rootBoundary,C=r.altBoundary,_=r.flipVariations,R=_===void 0?!0:_,A=r.allowedAutoPlacements,M=t.options.placement,j=Tl(M),I=j===M,z=m||(I||!R?[Rx(M)]:KQ(M)),B=[M].concat(z).reduce(function(Ye,st){return Ye.concat(Tl(st)===nC?qQ(t,{placement:st,boundary:b,rootBoundary:x,padding:v,flipVariations:R,allowedAutoPlacements:A}):st)},[]),$=t.rects.reference,K=t.rects.popper,X=new Map,de=!0,ve=B[0],se=0;se<B.length;se++){var be=B[se],Xe=Tl(be),ie=Zm(be)===qm,ce=[go,Ls].indexOf(Xe)>=0,Re=ce?"width":"height",Ce=cb(t,{placement:be,boundary:b,rootBoundary:x,altBoundary:C,padding:v}),oe=ce?ie?Fs:yo:ie?Ls:go;$[Re]>K[Re]&&(oe=Rx(oe));var Se=Rx(oe),Te=[];if(c&&Te.push(Ce[Xe]<=0),h&&Te.push(Ce[oe]<=0,Ce[Se]<=0),Te.every(function(Ye){return Ye})){ve=be,de=!1;break}X.set(be,Te)}if(de)for(var pe=R?3:1,we=function(st){var mt=B.find(function(Gt){var Qe=X.get(Gt);if(Qe)return Qe.slice(0,st).every(function(vt){return vt})});if(mt)return ve=mt,"break"},Ie=pe;Ie>0;Ie--){var Le=we(Ie);if(Le==="break")break}t.placement!==ve&&(t.modifiersData[i]._skip=!0,t.placement=ve,t.reset=!0)}}const ZQ={name:"flip",enabled:!0,phase:"main",fn:XQ,requiresIfExists:["offset"],data:{_skip:!1}};function v5(e,t,r){return r===void 0&&(r={x:0,y:0}),{top:e.top-t.height-r.y,right:e.right-t.width+r.x,bottom:e.bottom-t.height+r.y,left:e.left-t.width-r.x}}function g5(e){return[go,Fs,Ls,yo].some(function(t){return e[t]>=0})}function QQ(e){var t=e.state,r=e.name,i=t.rects.reference,s=t.rects.popper,c=t.modifiersData.preventOverflow,u=cb(t,{elementContext:"reference"}),h=cb(t,{altBoundary:!0}),m=v5(u,i),v=v5(h,s,c),b=g5(m),x=g5(v);t.modifiersData[r]={referenceClippingOffsets:m,popperEscapeOffsets:v,isReferenceHidden:b,hasPopperEscaped:x},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":b,"data-popper-escaped":x})}const JQ={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:QQ};function eJ(e,t,r){var i=Tl(e),s=[yo,go].indexOf(i)>=0?-1:1,c=typeof r=="function"?r(Object.assign({},t,{placement:e})):r,u=c[0],h=c[1];return u=u||0,h=(h||0)*s,[yo,Fs].indexOf(i)>=0?{x:h,y:u}:{x:u,y:h}}function tJ(e){var t=e.state,r=e.options,i=e.name,s=r.offset,c=s===void 0?[0,0]:s,u=rB.reduce(function(b,x){return b[x]=eJ(x,t.rects,c),b},{}),h=u[t.placement],m=h.x,v=h.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=m,t.modifiersData.popperOffsets.y+=v),t.modifiersData[i]=u}const nJ={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:tJ};function rJ(e){var t=e.state,r=e.name;t.modifiersData[r]=cB({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})}const aJ={name:"popperOffsets",enabled:!0,phase:"read",fn:rJ,data:{}};function iJ(e){return e==="x"?"y":"x"}function oJ(e){var t=e.state,r=e.options,i=e.name,s=r.mainAxis,c=s===void 0?!0:s,u=r.altAxis,h=u===void 0?!1:u,m=r.boundary,v=r.rootBoundary,b=r.altBoundary,x=r.padding,C=r.tether,_=C===void 0?!0:C,R=r.tetherOffset,A=R===void 0?0:R,M=cb(t,{boundary:m,rootBoundary:v,padding:x,altBoundary:b}),j=Tl(t.placement),I=Zm(t.placement),z=!I,B=uk(j),$=iJ(B),K=t.modifiersData.popperOffsets,X=t.rects.reference,de=t.rects.popper,ve=typeof A=="function"?A(Object.assign({},t.rects,{placement:t.placement})):A,se=typeof ve=="number"?{mainAxis:ve,altAxis:ve}:Object.assign({mainAxis:0,altAxis:0},ve),be=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,Xe={x:0,y:0};if(!!K){if(c){var ie,ce=B==="y"?go:yo,Re=B==="y"?Ls:Fs,Ce=B==="y"?"height":"width",oe=K[B],Se=oe+M[ce],Te=oe-M[Re],pe=_?-de[Ce]/2:0,we=I===qm?X[Ce]:de[Ce],Ie=I===qm?-de[Ce]:-X[Ce],Le=t.elements.arrow,Ye=_&&Le?lk(Le):{width:0,height:0},st=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:oB(),mt=st[ce],Gt=st[Re],Qe=$y(0,X[Ce],Ye[Ce]),vt=z?X[Ce]/2-pe-Qe-mt-se.mainAxis:we-Qe-mt-se.mainAxis,Et=z?-X[Ce]/2+pe+Qe+Gt+se.mainAxis:Ie+Qe+Gt+se.mainAxis,zt=t.elements.arrow&&Mb(t.elements.arrow),We=zt?B==="y"?zt.clientTop||0:zt.clientLeft||0:0,Yt=(ie=be?.[B])!=null?ie:0,ye=oe+vt-Yt-We,Mt=oe+Et-Yt,Kt=$y(_?lw(Se,ye):Se,oe,_?kp(Te,Mt):Te);K[B]=Kt,Xe[B]=Kt-oe}if(h){var St,ar=B==="x"?go:yo,ir=B==="x"?Ls:Fs,Bt=K[$],fn=$==="y"?"height":"width",An=Bt+M[ar],hn=Bt-M[ir],Ve=[go,yo].indexOf(j)!==-1,Ze=(St=be?.[$])!=null?St:0,Jt=Ve?An:Bt-X[fn]-de[fn]-Ze+se.altAxis,Tt=Ve?Bt+X[fn]+de[fn]-Ze-se.altAxis:hn,ke=_&&Ve?AQ(Jt,Bt,Tt):$y(_?Jt:An,Bt,_?Tt:hn);K[$]=ke,Xe[$]=ke-Bt}t.modifiersData[i]=Xe}}const sJ={name:"preventOverflow",enabled:!0,phase:"main",fn:oJ,requiresIfExists:["offset"]};function lJ(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function uJ(e){return e===zs(e)||!qo(e)?ck(e):lJ(e)}function cJ(e){var t=e.getBoundingClientRect(),r=Km(t.width)/e.offsetWidth||1,i=Km(t.height)/e.offsetHeight||1;return r!==1||i!==1}function fJ(e,t,r){r===void 0&&(r=!1);var i=qo(t),s=qo(t)&&cJ(t),c=Gf(t),u=Xm(e,s,r),h={scrollLeft:0,scrollTop:0},m={x:0,y:0};return(i||!i&&!r)&&((vu(t)!=="body"||dk(c))&&(h=uJ(t)),qo(t)?(m=Xm(t,!0),m.x+=t.clientLeft,m.y+=t.clientTop):c&&(m.x=fk(c))),{x:u.left+h.scrollLeft-m.x,y:u.top+h.scrollTop-m.y,width:u.width,height:u.height}}function dJ(e){var t=new Map,r=new Set,i=[];e.forEach(function(c){t.set(c.name,c)});function s(c){r.add(c.name);var u=[].concat(c.requires||[],c.requiresIfExists||[]);u.forEach(function(h){if(!r.has(h)){var m=t.get(h);m&&s(m)}}),i.push(c)}return e.forEach(function(c){r.has(c.name)||s(c)}),i}function pJ(e){var t=dJ(e);return gA.reduce(function(r,i){return r.concat(t.filter(function(s){return s.phase===i}))},[])}function hJ(e){var t;return function(){return t||(t=new Promise(function(r){Promise.resolve().then(function(){t=void 0,r(e())})})),t}}function bf(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),i=1;i<t;i++)r[i-1]=arguments[i];return[].concat(r).reduce(function(s,c){return s.replace(/%s/,c)},e)}var hp='Popper: modifier "%s" provided an invalid %s property, expected %s but got %s',mJ='Popper: modifier "%s" requires "%s", but "%s" modifier is not available',y5=["name","enabled","phase","fn","effect","requires","options"];function vJ(e){e.forEach(function(t){[].concat(Object.keys(t),y5).filter(function(r,i,s){return s.indexOf(r)===i}).forEach(function(r){switch(r){case"name":typeof t.name!="string"&&console.error(bf(hp,String(t.name),'"name"','"string"','"'+String(t.name)+'"'));break;case"enabled":typeof t.enabled!="boolean"&&console.error(bf(hp,t.name,'"enabled"','"boolean"','"'+String(t.enabled)+'"'));break;case"phase":gA.indexOf(t.phase)<0&&console.error(bf(hp,t.name,'"phase"',"either "+gA.join(", "),'"'+String(t.phase)+'"'));break;case"fn":typeof t.fn!="function"&&console.error(bf(hp,t.name,'"fn"','"function"','"'+String(t.fn)+'"'));break;case"effect":t.effect!=null&&typeof t.effect!="function"&&console.error(bf(hp,t.name,'"effect"','"function"','"'+String(t.fn)+'"'));break;case"requires":t.requires!=null&&!Array.isArray(t.requires)&&console.error(bf(hp,t.name,'"requires"','"array"','"'+String(t.requires)+'"'));break;case"requiresIfExists":Array.isArray(t.requiresIfExists)||console.error(bf(hp,t.name,'"requiresIfExists"','"array"','"'+String(t.requiresIfExists)+'"'));break;case"options":case"data":break;default:console.error('PopperJS: an invalid property has been provided to the "'+t.name+'" modifier, valid properties are '+y5.map(function(i){return'"'+i+'"'}).join(", ")+'; but "'+r+'" was provided.')}t.requires&&t.requires.forEach(function(i){e.find(function(s){return s.name===i})==null&&console.error(bf(mJ,String(t.name),i,i))})})})}function gJ(e,t){var r=new Set;return e.filter(function(i){var s=t(i);if(!r.has(s))return r.add(s),!0})}function yJ(e){var t=e.reduce(function(r,i){var s=r[i.name];return r[i.name]=s?Object.assign({},s,i,{options:Object.assign({},s.options,i.options),data:Object.assign({},s.data,i.data)}):i,r},{});return Object.keys(t).map(function(r){return t[r]})}var b5="Popper: Invalid reference or popper argument provided. They must be either a DOM element or virtual element.",bJ="Popper: An infinite loop in the modifiers cycle has been detected! The cycle has been interrupted to prevent a browser crash.",S5={placement:"bottom",modifiers:[],strategy:"absolute"};function x5(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return!t.some(function(i){return!(i&&typeof i.getBoundingClientRect=="function")})}function SJ(e){e===void 0&&(e={});var t=e,r=t.defaultModifiers,i=r===void 0?[]:r,s=t.defaultOptions,c=s===void 0?S5:s;return function(h,m,v){v===void 0&&(v=c);var b={placement:"bottom",orderedModifiers:[],options:Object.assign({},S5,c),modifiersData:{},elements:{reference:h,popper:m},attributes:{},styles:{}},x=[],C=!1,_={state:b,setOptions:function(j){var I=typeof j=="function"?j(b.options):j;A(),b.options=Object.assign({},c,b.options,I),b.scrollParents={reference:Bp(h)?Vy(h):h.contextElement?Vy(h.contextElement):[],popper:Vy(m)};var z=pJ(yJ([].concat(i,b.options.modifiers)));b.orderedModifiers=z.filter(function(be){return be.enabled});{var B=gJ([].concat(z,b.options.modifiers),function(be){var Xe=be.name;return Xe});if(vJ(B),Tl(b.options.placement)===nC){var $=b.orderedModifiers.find(function(be){var Xe=be.name;return Xe==="flip"});$||console.error(['Popper: "auto" placements require the "flip" modifier be',"present and enabled to work."].join(" "))}var K=Nl(m),X=K.marginTop,de=K.marginRight,ve=K.marginBottom,se=K.marginLeft;[X,de,ve,se].some(function(be){return parseFloat(be)})&&console.warn(['Popper: CSS "margin" styles cannot be used to apply padding',"between the popper and its reference element or boundary.","To replicate margin, use the `offset` modifier, as well as","the `padding` option in the `preventOverflow` and `flip`","modifiers."].join(" "))}return R(),_.update()},forceUpdate:function(){if(!C){var j=b.elements,I=j.reference,z=j.popper;if(!x5(I,z)){console.error(b5);return}b.rects={reference:fJ(I,Mb(z),b.options.strategy==="fixed"),popper:lk(z)},b.reset=!1,b.placement=b.options.placement,b.orderedModifiers.forEach(function(be){return b.modifiersData[be.name]=Object.assign({},be.data)});for(var B=0,$=0;$<b.orderedModifiers.length;$++){if(B+=1,B>100){console.error(bJ);break}if(b.reset===!0){b.reset=!1,$=-1;continue}var K=b.orderedModifiers[$],X=K.fn,de=K.options,ve=de===void 0?{}:de,se=K.name;typeof X=="function"&&(b=X({state:b,options:ve,name:se,instance:_})||b)}}},update:hJ(function(){return new Promise(function(M){_.forceUpdate(),M(b)})}),destroy:function(){A(),C=!0}};if(!x5(h,m))return console.error(b5),_;_.setOptions(v).then(function(M){!C&&v.onFirstUpdate&&v.onFirstUpdate(M)});function R(){b.orderedModifiers.forEach(function(M){var j=M.name,I=M.options,z=I===void 0?{}:I,B=M.effect;if(typeof B=="function"){var $=B({state:b,name:j,instance:_,options:z}),K=function(){};x.push($||K)}})}function A(){x.forEach(function(M){return M()}),x=[]}return _}}var xJ=[UQ,aJ,zQ,NQ,nJ,ZQ,sJ,MQ,JQ],wJ=SJ({defaultModifiers:xJ}),Sm=(e,t)=>({var:e,varRef:t?`var(${e}, ${t})`:`var(${e})`}),li={arrowShadowColor:Sm("--popper-arrow-shadow-color"),arrowSize:Sm("--popper-arrow-size","8px"),arrowSizeHalf:Sm("--popper-arrow-size-half"),arrowBg:Sm("--popper-arrow-bg"),transformOrigin:Sm("--popper-transform-origin"),arrowOffset:Sm("--popper-arrow-offset")};function CJ(e){if(e.includes("top"))return"1px 1px 1px 0 var(--popper-arrow-shadow-color)";if(e.includes("bottom"))return"-1px -1px 1px 0 var(--popper-arrow-shadow-color)";if(e.includes("right"))return"-1px 1px 1px 0 var(--popper-arrow-shadow-color)";if(e.includes("left"))return"1px -1px 1px 0 var(--popper-arrow-shadow-color)"}var _J={top:"bottom center","top-start":"bottom left","top-end":"bottom right",bottom:"top center","bottom-start":"top left","bottom-end":"top right",left:"right center","left-start":"right top","left-end":"right bottom",right:"left center","right-start":"left top","right-end":"left bottom"},EJ=e=>_J[e],w5={scroll:!0,resize:!0};function TJ(e){let t;return typeof e=="object"?t={enabled:!0,options:{...w5,...e}}:t={enabled:e,options:w5},t}var NJ={name:"matchWidth",enabled:!0,phase:"beforeWrite",requires:["computeStyles"],fn:({state:e})=>{e.styles.popper.width=`${e.rects.reference.width}px`},effect:({state:e})=>()=>{const t=e.elements.reference;e.elements.popper.style.width=`${t.offsetWidth}px`}},RJ={name:"transformOrigin",enabled:!0,phase:"write",fn:({state:e})=>{C5(e)},effect:({state:e})=>()=>{C5(e)}},C5=e=>{e.elements.popper.style.setProperty(li.transformOrigin.var,EJ(e.placement))},OJ={name:"positionArrow",enabled:!0,phase:"afterWrite",fn:({state:e})=>{AJ(e)}},AJ=e=>{var t;if(!e.placement)return;const r=kJ(e.placement);if(((t=e.elements)==null?void 0:t.arrow)&&r){Object.assign(e.elements.arrow.style,{[r.property]:r.value,width:li.arrowSize.varRef,height:li.arrowSize.varRef,zIndex:-1});const i={[li.arrowSizeHalf.var]:`calc(${li.arrowSize.varRef} / 2)`,[li.arrowOffset.var]:`calc(${li.arrowSizeHalf.varRef} * -1)`};for(const s in i)e.elements.arrow.style.setProperty(s,i[s])}},kJ=e=>{if(e.startsWith("top"))return{property:"bottom",value:li.arrowOffset.varRef};if(e.startsWith("bottom"))return{property:"top",value:li.arrowOffset.varRef};if(e.startsWith("left"))return{property:"right",value:li.arrowOffset.varRef};if(e.startsWith("right"))return{property:"left",value:li.arrowOffset.varRef}},DJ={name:"innerArrow",enabled:!0,phase:"main",requires:["arrow"],fn:({state:e})=>{_5(e)},effect:({state:e})=>()=>{_5(e)}},_5=e=>{if(!e.elements.arrow)return;const t=e.elements.arrow.querySelector("[data-popper-arrow-inner]");!t||Object.assign(t.style,{transform:"rotate(45deg)",background:li.arrowBg.varRef,top:0,left:0,width:"100%",height:"100%",position:"absolute",zIndex:"inherit",boxShadow:CJ(e.placement)})},PJ={"start-start":{ltr:"left-start",rtl:"right-start"},"start-end":{ltr:"left-end",rtl:"right-end"},"end-start":{ltr:"right-start",rtl:"left-start"},"end-end":{ltr:"right-end",rtl:"left-end"},start:{ltr:"left",rtl:"right"},end:{ltr:"right",rtl:"left"}},MJ={"auto-start":"auto-end","auto-end":"auto-start","top-start":"top-end","top-end":"top-start","bottom-start":"bottom-end","bottom-end":"bottom-start"};function IJ(e,t="ltr"){var r;const i=((r=PJ[e])==null?void 0:r[t])||e;return t==="ltr"?i:MJ[e]??i}function LJ(e={}){const{enabled:t=!0,modifiers:r,placement:i="bottom",strategy:s="absolute",arrowPadding:c=8,eventListeners:u=!0,offset:h,gutter:m=8,flip:v=!0,boundary:b="clippingParents",preventOverflow:x=!0,matchWidth:C,direction:_="ltr"}=e,R=D.exports.useRef(null),A=D.exports.useRef(null),M=D.exports.useRef(null),j=IJ(i,_),I=D.exports.useRef(()=>{}),z=D.exports.useCallback(()=>{var se;!t||!R.current||!A.current||((se=I.current)==null||se.call(I),M.current=wJ(R.current,A.current,{placement:j,modifiers:[DJ,OJ,RJ,{...NJ,enabled:!!C},{name:"eventListeners",...TJ(u)},{name:"arrow",options:{padding:c}},{name:"offset",options:{offset:h??[0,m]}},{name:"flip",enabled:!!v,options:{padding:8}},{name:"preventOverflow",enabled:!!x,options:{boundary:b}},...r??[]],strategy:s}),M.current.forceUpdate(),I.current=M.current.destroy)},[j,t,r,C,u,c,h,m,v,x,b,s]);D.exports.useEffect(()=>()=>{var se;!R.current&&!A.current&&((se=M.current)==null||se.destroy(),M.current=null)},[]);const B=D.exports.useCallback(se=>{R.current=se,z()},[z]),$=D.exports.useCallback((se={},be=null)=>({...se,ref:Zi(B,be)}),[B]),K=D.exports.useCallback(se=>{A.current=se,z()},[z]),X=D.exports.useCallback((se={},be=null)=>({...se,ref:Zi(K,be),style:{...se.style,position:s,minWidth:C?void 0:"max-content",inset:"0 auto auto 0"}}),[s,K,C]),de=D.exports.useCallback((se={},be=null)=>{const{size:Xe,shadowColor:ie,bg:ce,style:Re,...Ce}=se;return{...Ce,ref:be,"data-popper-arrow":"",style:FJ(se)}},[]),ve=D.exports.useCallback((se={},be=null)=>({...se,ref:be,"data-popper-arrow-inner":""}),[]);return{update(){var se;(se=M.current)==null||se.update()},forceUpdate(){var se;(se=M.current)==null||se.forceUpdate()},transformOrigin:li.transformOrigin.varRef,referenceRef:B,popperRef:K,getPopperProps:X,getArrowProps:de,getArrowInnerProps:ve,getReferenceProps:$}}function FJ(e){const{size:t,shadowColor:r,bg:i,style:s}=e,c={...s,position:"absolute"};return t&&(c["--popper-arrow-size"]=t),r&&(c["--popper-arrow-shadow-color"]=r),i&&(c["--popper-arrow-bg"]=i),c}function zJ(e={}){const{onClose:t,onOpen:r,isOpen:i,id:s}=e,c=ki(r),u=ki(t),[h,m]=D.exports.useState(e.defaultIsOpen||!1),v=i!==void 0?i:h,b=i!==void 0,x=s??`disclosure-${D.exports.useId()}`,C=D.exports.useCallback(()=>{b||m(!1),u?.()},[b,u]),_=D.exports.useCallback(()=>{b||m(!0),c?.()},[b,c]),R=D.exports.useCallback(()=>{v?C():_()},[v,_,C]);function A(j={}){return{...j,"aria-expanded":v,"aria-controls":x,onClick(I){var z;(z=j.onClick)==null||z.call(j,I),R()}}}function M(j={}){return{...j,hidden:!v,id:x}}return{isOpen:v,onOpen:_,onClose:C,onToggle:R,isControlled:b,getButtonProps:A,getDisclosureProps:M}}var Lf="/Users/spencer/Documents/Code/stable-diffusion/frontend/node_modules/@chakra-ui/portal/dist/index.esm.js",[BJ,UJ]=Xr({strict:!1,name:"PortalManagerContext"});function fB(e){const{children:t,zIndex:r}=e;return k(BJ,{value:{zIndex:r},children:t},void 0,!1,{fileName:Lf,lineNumber:12,columnNumber:26},this)}fB.displayName="PortalManager";var[dB,jJ]=Xr({strict:!1,name:"PortalContext"}),pk="chakra-portal",$J=".chakra-portal",VJ=e=>k("div",{className:"chakra-portal-zIndex",style:{position:"absolute",zIndex:e.zIndex,top:0,left:0,right:0},children:e.children},void 0,!1,{fileName:Lf,lineNumber:29,columnNumber:44},globalThis),HJ=e=>{const{appendToParentPortal:t,children:r}=e,[i,s]=D.exports.useState(null),c=D.exports.useRef(null),[,u]=D.exports.useState({});D.exports.useEffect(()=>u({}),[]);const h=jJ(),m=UJ();dc(()=>{if(!i)return;const b=i.ownerDocument,x=t?h??b.body:b.body;if(!x)return;c.current=b.createElement("div"),c.current.className=pk,x.appendChild(c.current),u({});const C=c.current;return()=>{x.contains(C)&&x.removeChild(C)}},[i]);const v=m?.zIndex?k(VJ,{zIndex:m?.zIndex,children:r},void 0,!1,{fileName:Lf,lineNumber:65,columnNumber:83},globalThis):r;return c.current?Sb.exports.createPortal(k(dB,{value:c.current,children:v},void 0,!1,{fileName:Lf,lineNumber:68,columnNumber:56},globalThis),c.current):k("span",{ref:b=>{b&&s(b)}},void 0,!1,{fileName:Lf,lineNumber:70,columnNumber:52},globalThis)},WJ=e=>{const{children:t,containerRef:r,appendToParentPortal:i}=e,s=r.current,c=s??(typeof window<"u"?document.body:void 0),u=D.exports.useMemo(()=>{const m=s?.ownerDocument.createElement("div");return m&&(m.className=pk),m},[s]),[,h]=D.exports.useState({});return dc(()=>h({}),[]),dc(()=>{if(!(!u||!c))return c.appendChild(u),()=>{c.removeChild(u)}},[u,c]),c&&u?Sb.exports.createPortal(k(dB,{value:i?u:null,children:t},void 0,!1,{fileName:Lf,lineNumber:98,columnNumber:41},globalThis),u):null};function Wp(e){const{containerRef:t,...r}=e;return t?k(WJ,{containerRef:t,...r},void 0,!1,{fileName:Lf,lineNumber:106,columnNumber:41},this):k(HJ,{...r},void 0,!1,{fileName:Lf,lineNumber:109,columnNumber:24},this)}Wp.defaultProps={appendToParentPortal:!0};Wp.className=pk;Wp.selector=$J;Wp.displayName="Portal";var GJ=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},xm=new WeakMap,nx=new WeakMap,rx={},JR=0,YJ=function(e,t,r,i){var s=Array.isArray(e)?e:[e];rx[r]||(rx[r]=new WeakMap);var c=rx[r],u=[],h=new Set,m=new Set(s),v=function(x){!x||h.has(x)||(h.add(x),v(x.parentNode))};s.forEach(v);var b=function(x){!x||m.has(x)||Array.prototype.forEach.call(x.children,function(C){if(h.has(C))b(C);else{var _=C.getAttribute(i),R=_!==null&&_!=="false",A=(xm.get(C)||0)+1,M=(c.get(C)||0)+1;xm.set(C,A),c.set(C,M),u.push(C),A===1&&R&&nx.set(C,!0),M===1&&C.setAttribute(r,"true"),R||C.setAttribute(i,"true")}})};return b(t),h.clear(),JR++,function(){u.forEach(function(x){var C=xm.get(x)-1,_=c.get(x)-1;xm.set(x,C),c.set(x,_),C||(nx.has(x)||x.removeAttribute(i),nx.delete(x)),_||x.removeAttribute(r)}),JR--,JR||(xm=new WeakMap,xm=new WeakMap,nx=new WeakMap,rx={})}},qJ=function(e,t,r){r===void 0&&(r="data-aria-hidden");var i=Array.from(Array.isArray(e)?e:[e]),s=t||GJ(e);return s?(i.push.apply(i,Array.from(s.querySelectorAll("[aria-live]"))),YJ(i,s,r,"aria-hidden")):function(){return null}};function KJ(e,t){if(e==null)return{};var r={},i=Object.keys(e),s,c;for(c=0;c<i.length;c++)s=i[c],!(t.indexOf(s)>=0)&&(r[s]=e[s]);return r}var _t={exports:{}};/*
|
|
object-assign
|
|
(c) Sindre Sorhus
|
|
@license MIT
|
|
*/var E5=Object.getOwnPropertySymbols,XJ=Object.prototype.hasOwnProperty,ZJ=Object.prototype.propertyIsEnumerable;function QJ(e){if(e==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}function JJ(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de",Object.getOwnPropertyNames(e)[0]==="5")return!1;for(var t={},r=0;r<10;r++)t["_"+String.fromCharCode(r)]=r;var i=Object.getOwnPropertyNames(t).map(function(c){return t[c]});if(i.join("")!=="0123456789")return!1;var s={};return"abcdefghijklmnopqrst".split("").forEach(function(c){s[c]=c}),Object.keys(Object.assign({},s)).join("")==="abcdefghijklmnopqrst"}catch{return!1}}var eee=JJ()?Object.assign:function(e,t){for(var r,i=QJ(e),s,c=1;c<arguments.length;c++){r=Object(arguments[c]);for(var u in r)XJ.call(r,u)&&(i[u]=r[u]);if(E5){s=E5(r);for(var h=0;h<s.length;h++)ZJ.call(r,s[h])&&(i[s[h]]=r[s[h]])}}return i},tee="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED",pB=tee,hB=Function.call.bind(Object.prototype.hasOwnProperty),SA=function(){};{var nee=pB,xA={},ree=hB;SA=function(e){var t="Warning: "+e;typeof console<"u"&&console.error(t);try{throw new Error(t)}catch{}}}function mB(e,t,r,i,s){for(var c in e)if(ree(e,c)){var u;try{if(typeof e[c]!="function"){var h=Error((i||"React class")+": "+r+" type `"+c+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof e[c]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw h.name="Invariant Violation",h}u=e[c](t,c,i,r,null,nee)}catch(v){u=v}if(u&&!(u instanceof Error)&&SA((i||"React class")+": type specification of "+r+" `"+c+"` is invalid; the type checker function must return `null` or an `Error` but returned a "+typeof u+". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."),u instanceof Error&&!(u.message in xA)){xA[u.message]=!0;var m=s?s():"";SA("Failed "+r+" type: "+u.message+(m??""))}}}mB.resetWarningCache=function(){xA={}};var aee=mB,iee=Pw.exports,oee=eee,wm=pB,eO=hB,T5=aee,Nm=function(){};Nm=function(e){var t="Warning: "+e;typeof console<"u"&&console.error(t);try{throw new Error(t)}catch{}};function ax(){return null}var see=function(e,t){var r=typeof Symbol=="function"&&Symbol.iterator,i="@@iterator";function s(ie){var ce=ie&&(r&&ie[r]||ie[i]);if(typeof ce=="function")return ce}var c="<<anonymous>>",u={array:b("array"),bigint:b("bigint"),bool:b("boolean"),func:b("function"),number:b("number"),object:b("object"),string:b("string"),symbol:b("symbol"),any:x(),arrayOf:C,element:_(),elementType:R(),instanceOf:A,node:z(),objectOf:j,oneOf:M,oneOfType:I,shape:$,exact:K};function h(ie,ce){return ie===ce?ie!==0||1/ie===1/ce:ie!==ie&&ce!==ce}function m(ie,ce){this.message=ie,this.data=ce&&typeof ce=="object"?ce:{},this.stack=""}m.prototype=Error.prototype;function v(ie){var ce={},Re=0;function Ce(Se,Te,pe,we,Ie,Le,Ye){if(we=we||c,Le=Le||pe,Ye!==wm){if(t){var st=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use `PropTypes.checkPropTypes()` to call them. Read more at http://fb.me/use-check-prop-types");throw st.name="Invariant Violation",st}else if(typeof console<"u"){var mt=we+":"+pe;!ce[mt]&&Re<3&&(Nm("You are manually calling a React.PropTypes validation function for the `"+Le+"` prop on `"+we+"`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details."),ce[mt]=!0,Re++)}}return Te[pe]==null?Se?Te[pe]===null?new m("The "+Ie+" `"+Le+"` is marked as required "+("in `"+we+"`, but its value is `null`.")):new m("The "+Ie+" `"+Le+"` is marked as required in "+("`"+we+"`, but its value is `undefined`.")):null:ie(Te,pe,we,Ie,Le)}var oe=Ce.bind(null,!1);return oe.isRequired=Ce.bind(null,!0),oe}function b(ie){function ce(Re,Ce,oe,Se,Te,pe){var we=Re[Ce],Ie=ve(we);if(Ie!==ie){var Le=se(we);return new m("Invalid "+Se+" `"+Te+"` of type "+("`"+Le+"` supplied to `"+oe+"`, expected ")+("`"+ie+"`."),{expectedType:ie})}return null}return v(ce)}function x(){return v(ax)}function C(ie){function ce(Re,Ce,oe,Se,Te){if(typeof ie!="function")return new m("Property `"+Te+"` of component `"+oe+"` has invalid PropType notation inside arrayOf.");var pe=Re[Ce];if(!Array.isArray(pe)){var we=ve(pe);return new m("Invalid "+Se+" `"+Te+"` of type "+("`"+we+"` supplied to `"+oe+"`, expected an array."))}for(var Ie=0;Ie<pe.length;Ie++){var Le=ie(pe,Ie,oe,Se,Te+"["+Ie+"]",wm);if(Le instanceof Error)return Le}return null}return v(ce)}function _(){function ie(ce,Re,Ce,oe,Se){var Te=ce[Re];if(!e(Te)){var pe=ve(Te);return new m("Invalid "+oe+" `"+Se+"` of type "+("`"+pe+"` supplied to `"+Ce+"`, expected a single ReactElement."))}return null}return v(ie)}function R(){function ie(ce,Re,Ce,oe,Se){var Te=ce[Re];if(!iee.isValidElementType(Te)){var pe=ve(Te);return new m("Invalid "+oe+" `"+Se+"` of type "+("`"+pe+"` supplied to `"+Ce+"`, expected a single ReactElement type."))}return null}return v(ie)}function A(ie){function ce(Re,Ce,oe,Se,Te){if(!(Re[Ce]instanceof ie)){var pe=ie.name||c,we=Xe(Re[Ce]);return new m("Invalid "+Se+" `"+Te+"` of type "+("`"+we+"` supplied to `"+oe+"`, expected ")+("instance of `"+pe+"`."))}return null}return v(ce)}function M(ie){if(!Array.isArray(ie))return arguments.length>1?Nm("Invalid arguments supplied to oneOf, expected an array, got "+arguments.length+" arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z])."):Nm("Invalid argument supplied to oneOf, expected an array."),ax;function ce(Re,Ce,oe,Se,Te){for(var pe=Re[Ce],we=0;we<ie.length;we++)if(h(pe,ie[we]))return null;var Ie=JSON.stringify(ie,function(Ye,st){var mt=se(st);return mt==="symbol"?String(st):st});return new m("Invalid "+Se+" `"+Te+"` of value `"+String(pe)+"` "+("supplied to `"+oe+"`, expected one of "+Ie+"."))}return v(ce)}function j(ie){function ce(Re,Ce,oe,Se,Te){if(typeof ie!="function")return new m("Property `"+Te+"` of component `"+oe+"` has invalid PropType notation inside objectOf.");var pe=Re[Ce],we=ve(pe);if(we!=="object")return new m("Invalid "+Se+" `"+Te+"` of type "+("`"+we+"` supplied to `"+oe+"`, expected an object."));for(var Ie in pe)if(eO(pe,Ie)){var Le=ie(pe,Ie,oe,Se,Te+"."+Ie,wm);if(Le instanceof Error)return Le}return null}return v(ce)}function I(ie){if(!Array.isArray(ie))return Nm("Invalid argument supplied to oneOfType, expected an instance of array."),ax;for(var ce=0;ce<ie.length;ce++){var Re=ie[ce];if(typeof Re!="function")return Nm("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+be(Re)+" at index "+ce+"."),ax}function Ce(oe,Se,Te,pe,we){for(var Ie=[],Le=0;Le<ie.length;Le++){var Ye=ie[Le],st=Ye(oe,Se,Te,pe,we,wm);if(st==null)return null;st.data&&eO(st.data,"expectedType")&&Ie.push(st.data.expectedType)}var mt=Ie.length>0?", expected one of type ["+Ie.join(", ")+"]":"";return new m("Invalid "+pe+" `"+we+"` supplied to "+("`"+Te+"`"+mt+"."))}return v(Ce)}function z(){function ie(ce,Re,Ce,oe,Se){return X(ce[Re])?null:new m("Invalid "+oe+" `"+Se+"` supplied to "+("`"+Ce+"`, expected a ReactNode."))}return v(ie)}function B(ie,ce,Re,Ce,oe){return new m((ie||"React class")+": "+ce+" type `"+Re+"."+Ce+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+oe+"`.")}function $(ie){function ce(Re,Ce,oe,Se,Te){var pe=Re[Ce],we=ve(pe);if(we!=="object")return new m("Invalid "+Se+" `"+Te+"` of type `"+we+"` "+("supplied to `"+oe+"`, expected `object`."));for(var Ie in ie){var Le=ie[Ie];if(typeof Le!="function")return B(oe,Se,Te,Ie,se(Le));var Ye=Le(pe,Ie,oe,Se,Te+"."+Ie,wm);if(Ye)return Ye}return null}return v(ce)}function K(ie){function ce(Re,Ce,oe,Se,Te){var pe=Re[Ce],we=ve(pe);if(we!=="object")return new m("Invalid "+Se+" `"+Te+"` of type `"+we+"` "+("supplied to `"+oe+"`, expected `object`."));var Ie=oee({},Re[Ce],ie);for(var Le in Ie){var Ye=ie[Le];if(eO(ie,Le)&&typeof Ye!="function")return B(oe,Se,Te,Le,se(Ye));if(!Ye)return new m("Invalid "+Se+" `"+Te+"` key `"+Le+"` supplied to `"+oe+"`.\nBad object: "+JSON.stringify(Re[Ce],null," ")+`
|
|
Valid keys: `+JSON.stringify(Object.keys(ie),null," "));var st=Ye(pe,Le,oe,Se,Te+"."+Le,wm);if(st)return st}return null}return v(ce)}function X(ie){switch(typeof ie){case"number":case"string":case"undefined":return!0;case"boolean":return!ie;case"object":if(Array.isArray(ie))return ie.every(X);if(ie===null||e(ie))return!0;var ce=s(ie);if(ce){var Re=ce.call(ie),Ce;if(ce!==ie.entries){for(;!(Ce=Re.next()).done;)if(!X(Ce.value))return!1}else for(;!(Ce=Re.next()).done;){var oe=Ce.value;if(oe&&!X(oe[1]))return!1}}else return!1;return!0;default:return!1}}function de(ie,ce){return ie==="symbol"?!0:ce?ce["@@toStringTag"]==="Symbol"||typeof Symbol=="function"&&ce instanceof Symbol:!1}function ve(ie){var ce=typeof ie;return Array.isArray(ie)?"array":ie instanceof RegExp?"object":de(ce,ie)?"symbol":ce}function se(ie){if(typeof ie>"u"||ie===null)return""+ie;var ce=ve(ie);if(ce==="object"){if(ie instanceof Date)return"date";if(ie instanceof RegExp)return"regexp"}return ce}function be(ie){var ce=se(ie);switch(ce){case"array":case"object":return"an "+ce;case"boolean":case"date":case"regexp":return"a "+ce;default:return ce}}function Xe(ie){return!ie.constructor||!ie.constructor.name?c:ie.constructor.name}return u.checkPropTypes=T5,u.resetWarningCache=T5.resetWarningCache,u.PropTypes=u,u};{var lee=Pw.exports,uee=!0;_t.exports=see(lee.isElement,uee)}var wA="data-focus-lock",vB="data-focus-lock-disabled",cee="data-no-focus-lock",fee="data-autofocus-inside",dee="data-no-autofocus";function pee(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function hee(e,t){var r=D.exports.useState(function(){return{value:e,callback:t,facade:{get current(){return r.value},set current(i){var s=r.value;s!==i&&(r.value=i,r.callback(i,s))}}}})[0];return r.callback=t,r.facade}function gB(e,t){return hee(t||null,function(r){return e.forEach(function(i){return pee(i,r)})})}var tO={width:"1px",height:"0px",padding:0,overflow:"hidden",position:"fixed",top:"1px",left:"1px"};_t.exports.node;function yB(e){return e}function bB(e,t){t===void 0&&(t=yB);var r=[],i=!1,s={read:function(){if(i)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return r.length?r[r.length-1]:e},useMedium:function(c){var u=t(c,i);return r.push(u),function(){r=r.filter(function(h){return h!==u})}},assignSyncMedium:function(c){for(i=!0;r.length;){var u=r;r=[],u.forEach(c)}r={push:function(h){return c(h)},filter:function(){return r}}},assignMedium:function(c){i=!0;var u=[];if(r.length){var h=r;r=[],h.forEach(c),u=r}var m=function(){var b=u;u=[],b.forEach(c)},v=function(){return Promise.resolve().then(m)};v(),r={push:function(b){u.push(b),v()},filter:function(b){return u=u.filter(b),r}}}};return s}function hk(e,t){return t===void 0&&(t=yB),bB(e,t)}function SB(e){e===void 0&&(e={});var t=bB(null);return t.options=ou({async:!0,ssr:!1},e),t}var mee="/Users/spencer/Documents/Code/stable-diffusion/frontend/node_modules/use-sidecar/dist/es2015/exports.js",xB=function(e){var t=e.sideCar,r=$w(e,["sideCar"]);if(!t)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var i=t.read();if(!i)throw new Error("Sidecar medium not found");return k(i,{...ou({},r)},void 0,!1,{fileName:mee,lineNumber:12,columnNumber:12},this)};xB.isSideCarExport=!0;function vee(e,t){return e.useMedium(t),xB}var wB=hk({},function(e){var t=e.target,r=e.currentTarget;return{target:t,currentTarget:r}}),CB=hk(),gee=hk(),yee=SB({async:!0}),Ey="/Users/spencer/Documents/Code/stable-diffusion/frontend/node_modules/react-focus-lock/dist/es2015/Lock.js",bee=[],mk=D.exports.forwardRef(function(t,r){var i,s=D.exports.useState(),c=s[0],u=s[1],h=D.exports.useRef(),m=D.exports.useRef(!1),v=D.exports.useRef(null),b=t.children,x=t.disabled,C=t.noFocusGuards,_=t.persistentFocus,R=t.crossFrame,A=t.autoFocus,M=t.allowTextSelection,j=t.group,I=t.className,z=t.whiteList,B=t.hasPositiveIndices,$=t.shards,K=$===void 0?bee:$,X=t.as,de=X===void 0?"div":X,ve=t.lockProps,se=ve===void 0?{}:ve,be=t.sideCar,Xe=t.returnFocus,ie=t.focusOptions,ce=t.onActivation,Re=t.onDeactivation,Ce=D.exports.useState({}),oe=Ce[0],Se=D.exports.useCallback(function(){v.current=v.current||document&&document.activeElement,h.current&&ce&&ce(h.current),m.current=!0},[ce]),Te=D.exports.useCallback(function(){m.current=!1,Re&&Re(h.current)},[Re]);D.exports.useEffect(function(){x||(v.current=null)},[]);var pe=D.exports.useCallback(function(Qe){var vt=v.current;if(vt&&vt.focus){var Et=typeof Xe=="function"?Xe(vt):Xe;if(Et){var zt=typeof Et=="object"?Et:void 0;v.current=null,Qe?Promise.resolve().then(function(){return vt.focus(zt)}):vt.focus(zt)}}},[Xe]),we=D.exports.useCallback(function(Qe){m.current&&wB.useMedium(Qe)},[]),Ie=CB.useMedium,Le=D.exports.useCallback(function(Qe){h.current!==Qe&&(h.current=Qe,u(Qe))},[]);typeof M<"u"&&console.warn("React-Focus-Lock: allowTextSelection is deprecated and enabled by default"),D.exports.useEffect(function(){h.current||console.error("FocusLock: could not obtain ref to internal node")},[]);var Ye=Qy((i={},i[vB]=x&&"disabled",i[wA]=j,i),se),st=C!==!0,mt=st&&C!=="tail",Gt=gB([r,Le]);return k(bo,{children:[st&&[k("div",{"data-focus-guard":!0,tabIndex:x?-1:0,style:tO},"guard-first",!1,{fileName:Ey,lineNumber:130,columnNumber:3},this),B?k("div",{"data-focus-guard":!0,tabIndex:x?-1:1,style:tO},"guard-nearest",!1,{fileName:Ey,lineNumber:136,columnNumber:37},this):null],!x&&k(be,{id:oe,sideCar:yee,observed:c,disabled:x,persistentFocus:_,crossFrame:R,autoFocus:A,whiteList:z,shards:K,onActivation:Se,onDeactivation:Te,returnFocus:pe,focusOptions:ie},void 0,!1,{fileName:Ey,lineNumber:141,columnNumber:41},this),k(de,{ref:Gt,...Ye,className:I,onBlur:Ie,onFocus:we,children:b},void 0,!1,{fileName:Ey,lineNumber:155,columnNumber:20},this),mt&&k("div",{"data-focus-guard":!0,tabIndex:x?-1:0,style:tO},void 0,!1,{fileName:Ey,lineNumber:161,columnNumber:51},this)]},void 0,!0)});mk.propTypes={children:_t.exports.node,disabled:_t.exports.bool,returnFocus:_t.exports.oneOfType([_t.exports.bool,_t.exports.object,_t.exports.func]),focusOptions:_t.exports.object,noFocusGuards:_t.exports.bool,hasPositiveIndices:_t.exports.bool,allowTextSelection:_t.exports.bool,autoFocus:_t.exports.bool,persistentFocus:_t.exports.bool,crossFrame:_t.exports.bool,group:_t.exports.string,className:_t.exports.string,whiteList:_t.exports.func,shards:_t.exports.arrayOf(_t.exports.any),as:_t.exports.oneOfType([_t.exports.string,_t.exports.func,_t.exports.object]),lockProps:_t.exports.object,onActivation:_t.exports.func,onDeactivation:_t.exports.func,sideCar:_t.exports.any.isRequired};mk.defaultProps={children:void 0,disabled:!1,returnFocus:!1,focusOptions:void 0,noFocusGuards:!1,autoFocus:!0,persistentFocus:!1,crossFrame:!0,hasPositiveIndices:void 0,allowTextSelection:void 0,group:void 0,className:void 0,whiteList:void 0,shards:void 0,as:"div",lockProps:{},onActivation:void 0,onDeactivation:void 0};const _B=mk;function CA(e,t){return CA=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(i,s){return i.__proto__=s,i},CA(e,t)}function See(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,CA(e,t)}function EB(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var xee="/Users/spencer/Documents/Code/stable-diffusion/frontend/node_modules/react-clientside-effect/lib/index.es.js";function wee(e,t){{if(typeof e!="function")throw new Error("Expected reducePropsToState to be a function.");if(typeof t!="function")throw new Error("Expected handleStateChangeOnClient to be a function.")}function r(i){return i.displayName||i.name||"Component"}return function(s){if(typeof s!="function")throw new Error("Expected WrappedComponent to be a React component.");var c=[],u;function h(){u=e(c.map(function(v){return v.props})),t(u)}var m=function(v){See(b,v);function b(){return v.apply(this,arguments)||this}b.peek=function(){return u};var x=b.prototype;return x.componentDidMount=function(){c.push(this),h()},x.componentDidUpdate=function(){h()},x.componentWillUnmount=function(){var _=c.indexOf(this);c.splice(_,1),h()},x.render=function(){return k(s,{...this.props},void 0,!1,{fileName:xee,lineNumber:67,columnNumber:29},this)},b}(D.exports.PureComponent);return EB(m,"displayName","SideEffect("+r(s)+")"),m}}var yu=function(e){for(var t=Array(e.length),r=0;r<e.length;++r)t[r]=e[r];return t},_A=function(e){return Array.isArray(e)?e:[e]},Cee=function(e){if(e.nodeType!==Node.ELEMENT_NODE)return!1;var t=window.getComputedStyle(e,null);return!t||!t.getPropertyValue?!1:t.getPropertyValue("display")==="none"||t.getPropertyValue("visibility")==="hidden"},TB=function(e){return e.parentNode&&e.parentNode.nodeType===Node.DOCUMENT_FRAGMENT_NODE?e.parentNode.host:e.parentNode},NB=function(e){return e===document||e&&e.nodeType===Node.DOCUMENT_NODE},_ee=function(e,t){return!e||NB(e)||!Cee(e)&&t(TB(e))},RB=function(e,t){var r=e.get(t);if(r!==void 0)return r;var i=_ee(t,RB.bind(void 0,e));return e.set(t,i),i},Eee=function(e,t){return e&&!NB(e)?Ree(e)?t(TB(e)):!1:!0},OB=function(e,t){var r=e.get(t);if(r!==void 0)return r;var i=Eee(t,OB.bind(void 0,e));return e.set(t,i),i},AB=function(e){return e.dataset},Tee=function(e){return e.tagName==="BUTTON"},kB=function(e){return e.tagName==="INPUT"},DB=function(e){return kB(e)&&e.type==="radio"},Nee=function(e){return!((kB(e)||Tee(e))&&(e.type==="hidden"||e.disabled))},Ree=function(e){var t=e.getAttribute(dee);return![!0,"true",""].includes(t)},vk=function(e){var t;return Boolean(e&&((t=AB(e))===null||t===void 0?void 0:t.focusGuard))},uw=function(e){return!vk(e)},Oee=function(e){return Boolean(e)},Aee=function(e,t){var r=e.tabIndex-t.tabIndex,i=e.index-t.index;if(r){if(!e.tabIndex)return 1;if(!t.tabIndex)return-1}return r||i},PB=function(e,t,r){return yu(e).map(function(i,s){return{node:i,index:s,tabIndex:r&&i.tabIndex===-1?(i.dataset||{}).focusGuard?0:-1:i.tabIndex}}).filter(function(i){return!t||i.tabIndex>=0}).sort(Aee)},kee=["button:enabled","select:enabled","textarea:enabled","input:enabled","a[href]","area[href]","summary","iframe","object","embed","audio[controls]","video[controls]","[tabindex]","[contenteditable]","[autofocus]"],gk=kee.join(","),Dee="".concat(gk,", [data-focus-guard]"),MB=function(e,t){var r;return yu(((r=e.shadowRoot)===null||r===void 0?void 0:r.children)||e.children).reduce(function(i,s){return i.concat(s.matches(t?Dee:gk)?[s]:[],MB(s))},[])},yk=function(e,t){return e.reduce(function(r,i){return r.concat(MB(i,t),i.parentNode?yu(i.parentNode.querySelectorAll(gk)).filter(function(s){return s===i}):[])},[])},Pee=function(e){var t=e.querySelectorAll("[".concat(fee,"]"));return yu(t).map(function(r){return yk([r])}).reduce(function(r,i){return r.concat(i)},[])},bk=function(e,t){return yu(e).filter(function(r){return RB(t,r)}).filter(function(r){return Nee(r)})},N5=function(e,t){return t===void 0&&(t=new Map),yu(e).filter(function(r){return OB(t,r)})},EA=function(e,t,r){return PB(bk(yk(e,r),t),!0,r)},R5=function(e,t){return PB(bk(yk(e),t),!1)},Mee=function(e,t){return bk(Pee(e),t)},fb=function(e,t){return(e.shadowRoot?fb(e.shadowRoot,t):Object.getPrototypeOf(e).contains.call(e,t))||yu(e.children).some(function(r){return fb(r,t)})},Iee=function(e){for(var t=new Set,r=e.length,i=0;i<r;i+=1)for(var s=i+1;s<r;s+=1){var c=e[i].compareDocumentPosition(e[s]);(c&Node.DOCUMENT_POSITION_CONTAINED_BY)>0&&t.add(s),(c&Node.DOCUMENT_POSITION_CONTAINS)>0&&t.add(i)}return e.filter(function(u,h){return!t.has(h)})},IB=function(e){return e.parentNode?IB(e.parentNode):e},Sk=function(e){var t=_A(e);return t.filter(Boolean).reduce(function(r,i){var s=i.getAttribute(wA);return r.push.apply(r,s?Iee(yu(IB(i).querySelectorAll("[".concat(wA,'="').concat(s,'"]:not([').concat(vB,'="disabled"])')))):[i]),r},[])},LB=function(e){return e.activeElement?e.activeElement.shadowRoot?LB(e.activeElement.shadowRoot):e.activeElement:void 0},xk=function(){return document.activeElement?document.activeElement.shadowRoot?LB(document.activeElement.shadowRoot):document.activeElement:void 0},Lee=function(e){return e===document.activeElement},Fee=function(e){return Boolean(yu(e.querySelectorAll("iframe")).some(function(t){return Lee(t)}))},FB=function(e){var t=document&&xk();return!t||t.dataset&&t.dataset.focusGuard?!1:Sk(e).some(function(r){return fb(r,t)||Fee(r)})},zee=function(){var e=document&&xk();return e?yu(document.querySelectorAll("[".concat(cee,"]"))).some(function(t){return fb(t,e)}):!1},Bee=function(e,t){return t.filter(DB).filter(function(r){return r.name===e.name}).filter(function(r){return r.checked})[0]||e},wk=function(e,t){return DB(e)&&e.name?Bee(e,t):e},Uee=function(e){var t=new Set;return e.forEach(function(r){return t.add(wk(r,e))}),e.filter(function(r){return t.has(r)})},O5=function(e){return e[0]&&e.length>1?wk(e[0],e):e[0]},A5=function(e,t){return e.length>1?e.indexOf(wk(e[t],e)):t},zB="NEW_FOCUS",jee=function(e,t,r,i){var s=e.length,c=e[0],u=e[s-1],h=vk(r);if(!(r&&e.indexOf(r)>=0)){var m=r!==void 0?t.indexOf(r):-1,v=i?t.indexOf(i):m,b=i?e.indexOf(i):-1,x=m-v,C=t.indexOf(c),_=t.indexOf(u),R=Uee(t),A=r!==void 0?R.indexOf(r):-1,M=A-(i?R.indexOf(i):m),j=A5(e,0),I=A5(e,s-1);if(m===-1||b===-1)return zB;if(!x&&b>=0)return b;if(m<=C&&h&&Math.abs(x)>1)return I;if(m>=_&&h&&Math.abs(x)>1)return j;if(x&&Math.abs(M)>1)return b;if(m<=C)return I;if(m>_)return j;if(x)return Math.abs(x)>1?b:(s+b+x)%s}},TA=function(e,t){return t===void 0&&(t=[]),t.push(e),e.parentNode&&TA(e.parentNode.host||e.parentNode,t),t},nO=function(e,t){for(var r=TA(e),i=TA(t),s=0;s<r.length;s+=1){var c=r[s];if(i.indexOf(c)>=0)return c}return!1},BB=function(e,t,r){var i=_A(e),s=_A(t),c=i[0],u=!1;return s.filter(Boolean).forEach(function(h){u=nO(u||h,h)||u,r.filter(Boolean).forEach(function(m){var v=nO(c,m);v&&(!u||fb(v,u)?u=v:u=nO(v,u))})}),u},$ee=function(e,t){return e.reduce(function(r,i){return r.concat(Mee(i,t))},[])},Vee=function(e){return function(t){var r;return t.autofocus||!!(!((r=AB(t))===null||r===void 0)&&r.autofocus)||e.indexOf(t)>=0}},Hee=function(e,t){var r=new Map;return t.forEach(function(i){return r.set(i.node,i)}),e.map(function(i){return r.get(i)}).filter(Oee)},Wee=function(e,t){var r=document&&xk(),i=Sk(e).filter(uw),s=BB(r||e,e,i),c=new Map,u=R5(i,c),h=EA(i,c).filter(function(_){var R=_.node;return uw(R)});if(!(!h[0]&&(h=u,!h[0]))){var m=R5([s],c).map(function(_){var R=_.node;return R}),v=Hee(m,h),b=v.map(function(_){var R=_.node;return R}),x=jee(b,m,r,t);if(x===zB){var C=N5(u.map(function(_){var R=_.node;return R})).filter(Vee($ee(i,c)));return{node:C&&C.length?O5(C):O5(N5(b))}}return x===void 0?x:v[x]}},Gee=function(e){var t=Sk(e).filter(uw),r=BB(e,e,t),i=new Map,s=EA([r],i,!0),c=EA(t,i).filter(function(u){var h=u.node;return uw(h)}).map(function(u){var h=u.node;return h});return s.map(function(u){var h=u.node,m=u.index;return{node:h,index:m,lockItem:c.indexOf(h)>=0,guard:vk(h)}})},Yee=function(e,t){"focus"in e&&e.focus(t),"contentWindow"in e&&e.contentWindow&&e.contentWindow.focus()},rO=0,aO=!1,qee=function(e,t,r){r===void 0&&(r={});var i=Wee(e,t);if(!aO&&i){if(rO>2){console.error("FocusLock: focus-fighting detected. Only one focus management system could be active. See https://github.com/theKashey/focus-lock/#focus-fighting"),aO=!0,setTimeout(function(){aO=!1},1);return}rO++,Yee(i.node,r.focusOptions),rO--}};const UB=qee;function jB(e){var t=window,r=t.setImmediate;typeof r<"u"?r(e):setTimeout(e,1)}var Kee=function(){return document&&document.activeElement===document.body},Xee=function(){return Kee()||zee()},zm=null,Dm=null,Bm=null,db=!1,Zee=function(){return!0},Qee=function(t){return(zm.whiteList||Zee)(t)},Jee=function(t,r){Bm={observerNode:t,portaledElement:r}},ete=function(t){return Bm&&Bm.portaledElement===t};function k5(e,t,r,i){var s=null,c=e;do{var u=i[c];if(u.guard)u.node.dataset.focusAutoGuard&&(s=u);else if(u.lockItem){if(c!==e)return;s=null}else break}while((c+=r)!==t);s&&(s.node.tabIndex=0)}var tte=function(t){return t&&"current"in t?t.current:t},nte=function(t){return t?Boolean(db):db==="meanwhile"},rte=function e(t,r,i){return r&&(r.host===t&&(!r.activeElement||i.contains(r.activeElement))||r.parentNode&&e(t,r.parentNode,i))},ate=function(t,r){return r.some(function(i){return rte(t,i,i)})},cw=function(){var t=!1;if(zm){var r=zm,i=r.observed,s=r.persistentFocus,c=r.autoFocus,u=r.shards,h=r.crossFrame,m=r.focusOptions,v=i||Bm&&Bm.portaledElement,b=document&&document.activeElement;if(v){var x=[v].concat(u.map(tte).filter(Boolean));if((!b||Qee(b))&&(s||nte(h)||!Xee()||!Dm&&c)&&(v&&!(FB(x)||b&&ate(b,x)||ete(b))&&(document&&!Dm&&b&&!c?(b.blur&&b.blur(),document.body.focus()):(t=UB(x,Dm,{focusOptions:m}),Bm={})),db=!1,Dm=document&&document.activeElement),document){var C=document&&document.activeElement,_=Gee(x),R=_.map(function(A){var M=A.node;return M}).indexOf(C);R>-1&&(_.filter(function(A){var M=A.guard,j=A.node;return M&&j.dataset.focusAutoGuard}).forEach(function(A){var M=A.node;return M.removeAttribute("tabIndex")}),k5(R,_.length,1,_),k5(R,-1,-1,_))}}}return t},$B=function(t){cw()&&t&&(t.stopPropagation(),t.preventDefault())},Ck=function(){return jB(cw)},ite=function(t){var r=t.target,i=t.currentTarget;i.contains(r)||Jee(i,r)},ote=function(){return null};_t.exports.node.isRequired;var VB=function(){db="just",setTimeout(function(){db="meanwhile"},0)},ste=function(){document.addEventListener("focusin",$B),document.addEventListener("focusout",Ck),window.addEventListener("blur",VB)},lte=function(){document.removeEventListener("focusin",$B),document.removeEventListener("focusout",Ck),window.removeEventListener("blur",VB)};function ute(e){return e.filter(function(t){var r=t.disabled;return!r})}function cte(e){var t=e.slice(-1)[0];t&&!zm&&ste();var r=zm,i=r&&t&&t.id===r.id;zm=t,r&&!i&&(r.onDeactivation(),e.filter(function(s){var c=s.id;return c===r.id}).length||r.returnFocus(!t)),t?(Dm=null,(!i||r.observed!==t.observed)&&t.onActivation(),cw(),jB(cw)):(lte(),Dm=null)}wB.assignSyncMedium(ite);CB.assignMedium(Ck);gee.assignMedium(function(e){return e({moveFocusInside:UB,focusInside:FB})});const fte=wee(ute,cte)(ote);var dte="/Users/spencer/Documents/Code/stable-diffusion/frontend/node_modules/react-focus-lock/dist/es2015/Combination.js",HB=D.exports.forwardRef(function(t,r){return k(_B,{sideCar:fte,ref:r,...t},void 0,!1,{fileName:dte,lineNumber:16,columnNumber:23},this)}),WB=_B.propTypes||{};WB.sideCar;var pte=KJ(WB,["sideCar"]);HB.propTypes=pte;const hte=HB;var mte="/Users/spencer/Documents/Code/stable-diffusion/frontend/node_modules/@chakra-ui/focus-lock/dist/index.esm.js",GB=e=>{const{initialFocusRef:t,finalFocusRef:r,contentRef:i,restoreFocus:s,children:c,isDisabled:u,autoFocus:h,persistentFocus:m,lockFocusAcrossFrames:v}=e,b=D.exports.useCallback(()=>{t?.current?t.current.focus():i?.current&&pQ(i.current).length===0&&requestAnimationFrame(()=>{var R;(R=i.current)==null||R.focus()})},[t,i]),x=D.exports.useCallback(()=>{var _;(_=r?.current)==null||_.focus()},[r]);return k(hte,{crossFrame:v,persistentFocus:m,autoFocus:h,disabled:u,onActivation:b,onDeactivation:x,returnFocus:s&&!r,children:c},void 0,!1,{fileName:mte,lineNumber:38,columnNumber:26},globalThis)};GB.displayName="FocusLock";var Ox="right-scroll-bar-position",Ax="width-before-scroll-bar",vte="with-scroll-bars-hidden",gte="--removed-body-scroll-bar-size",YB=SB(),D5="/Users/spencer/Documents/Code/stable-diffusion/frontend/node_modules/react-remove-scroll/dist/es2015/UI.js",iO=function(){},aC=D.exports.forwardRef(function(e,t){var r=D.exports.useRef(null),i=D.exports.useState({onScrollCapture:iO,onWheelCapture:iO,onTouchMoveCapture:iO}),s=i[0],c=i[1],u=e.forwardProps,h=e.children,m=e.className,v=e.removeScrollBar,b=e.enabled,x=e.shards,C=e.sideCar,_=e.noIsolation,R=e.inert,A=e.allowPinchZoom,M=e.as,j=M===void 0?"div":M,I=$w(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noIsolation","inert","allowPinchZoom","as"]),z=C,B=gB([r,t]),$=ou(ou({},I),s);return k(bo,{children:[b&&k(z,{sideCar:YB,removeScrollBar:v,shards:x,noIsolation:_,inert:R,setCallbacks:c,allowPinchZoom:!!A,lockRef:r},void 0,!1,{fileName:D5,lineNumber:24,columnNumber:21},this),u?D.exports.cloneElement(D.exports.Children.only(h),ou(ou({},$),{ref:B})):k(j,{...ou({},$,{className:m,ref:B}),children:h},void 0,!1,{fileName:D5,lineNumber:25,columnNumber:142},this)]},void 0,!0)});aC.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};aC.classNames={fullWidth:Ax,zeroRight:Ox};var yte=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function bte(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=yte();return t&&e.setAttribute("nonce",t),e}function Ste(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function xte(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var wte=function(){var e=0,t=null;return{add:function(r){e==0&&(t=bte())&&(Ste(t,r),xte(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},Cte=function(){var e=wte();return function(t,r){D.exports.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&r])}},qB=function(){var e=Cte(),t=function(r){var i=r.styles,s=r.dynamic;return e(i,s),null};return t},_te={left:0,top:0,right:0,gap:0},oO=function(e){return parseInt(e||"",10)||0},Ete=function(e){var t=window.getComputedStyle(document.body);t.overflowY==="hidden"&&console.error("react-remove-scroll-bar: cannot calculate scrollbar size because it is removed (overflow:hidden on body");var r=t[e==="padding"?"paddingLeft":"marginLeft"],i=t[e==="padding"?"paddingTop":"marginTop"],s=t[e==="padding"?"paddingRight":"marginRight"];return[oO(r),oO(i),oO(s)]},Tte=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return _te;var t=Ete(e),r=document.documentElement.clientWidth,i=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,i-r+t[2]-t[0])}},Nte="/Users/spencer/Documents/Code/stable-diffusion/frontend/node_modules/react-remove-scroll-bar/dist/es2015/component.js",Rte=qB(),Ote=function(e,t,r,i){var s=e.left,c=e.top,u=e.right,h=e.gap;return r===void 0&&(r="margin"),`
|
|
.`.concat(vte,` {
|
|
overflow: hidden `).concat(i,`;
|
|
padding-right: `).concat(h,"px ").concat(i,`;
|
|
}
|
|
body {
|
|
overflow: hidden `).concat(i,`;
|
|
overscroll-behavior: contain;
|
|
`).concat([t&&"position: relative ".concat(i,";"),r==="margin"&&`
|
|
padding-left: `.concat(s,`px;
|
|
padding-top: `).concat(c,`px;
|
|
padding-right: `).concat(u,`px;
|
|
margin-left:0;
|
|
margin-top:0;
|
|
margin-right: `).concat(h,"px ").concat(i,`;
|
|
`),r==="padding"&&"padding-right: ".concat(h,"px ").concat(i,";")].filter(Boolean).join(""),`
|
|
}
|
|
|
|
.`).concat(Ox,` {
|
|
right: `).concat(h,"px ").concat(i,`;
|
|
}
|
|
|
|
.`).concat(Ax,` {
|
|
margin-right: `).concat(h,"px ").concat(i,`;
|
|
}
|
|
|
|
.`).concat(Ox," .").concat(Ox,` {
|
|
right: 0 `).concat(i,`;
|
|
}
|
|
|
|
.`).concat(Ax," .").concat(Ax,` {
|
|
margin-right: 0 `).concat(i,`;
|
|
}
|
|
|
|
body {
|
|
`).concat(gte,": ").concat(h,`px;
|
|
}
|
|
`)},Ate=function(e){var t=e.noRelative,r=e.noImportant,i=e.gapMode,s=i===void 0?"margin":i,c=D.exports.useMemo(function(){return Tte(s)},[s]);return k(Rte,{styles:Ote(c,!t,s,r?"":"!important")},void 0,!1,{fileName:Nte,lineNumber:27,columnNumber:12},this)},NA=!1;if(typeof window<"u")try{var ix=Object.defineProperty({},"passive",{get:function(){return NA=!0,!0}});window.addEventListener("test",ix,ix),window.removeEventListener("test",ix,ix)}catch{NA=!1}var Cm=NA?{passive:!1}:!1,kte=function(e){return e.tagName==="TEXTAREA"},KB=function(e,t){var r=window.getComputedStyle(e);return r[t]!=="hidden"&&!(r.overflowY===r.overflowX&&!kte(e)&&r[t]==="visible")},Dte=function(e){return KB(e,"overflowY")},Pte=function(e){return KB(e,"overflowX")},P5=function(e,t){var r=t;do{typeof ShadowRoot<"u"&&r instanceof ShadowRoot&&(r=r.host);var i=XB(e,r);if(i){var s=ZB(e,r),c=s[1],u=s[2];if(c>u)return!0}r=r.parentNode}while(r&&r!==document.body);return!1},Mte=function(e){var t=e.scrollTop,r=e.scrollHeight,i=e.clientHeight;return[t,r,i]},Ite=function(e){var t=e.scrollLeft,r=e.scrollWidth,i=e.clientWidth;return[t,r,i]},XB=function(e,t){return e==="v"?Dte(t):Pte(t)},ZB=function(e,t){return e==="v"?Mte(t):Ite(t)},Lte=function(e,t){return e==="h"&&t==="rtl"?-1:1},Fte=function(e,t,r,i,s){var c=Lte(e,window.getComputedStyle(t).direction),u=c*i,h=r.target,m=t.contains(h),v=!1,b=u>0,x=0,C=0;do{var _=ZB(e,h),R=_[0],A=_[1],M=_[2],j=A-M-c*R;(R||j)&&XB(e,h)&&(x+=j,C+=R),h=h.parentNode}while(!m&&h!==document.body||m&&(t.contains(h)||t===h));return(b&&(s&&x===0||!s&&u>x)||!b&&(s&&C===0||!s&&-u>C))&&(v=!0),v},M5="/Users/spencer/Documents/Code/stable-diffusion/frontend/node_modules/react-remove-scroll/dist/es2015/SideEffect.js",ox=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},I5=function(e){return[e.deltaX,e.deltaY]},L5=function(e){return e&&"current"in e?e.current:e},zte=function(e,t){return e[0]===t[0]&&e[1]===t[1]},Bte=function(e){return`
|
|
.block-interactivity-`.concat(e,` {pointer-events: none;}
|
|
.allow-interactivity-`).concat(e,` {pointer-events: all;}
|
|
`)},Ute=0,_m=[];function jte(e){var t=D.exports.useRef([]),r=D.exports.useRef([0,0]),i=D.exports.useRef(),s=D.exports.useState(Ute++)[0],c=D.exports.useState(function(){return qB()})[0],u=D.exports.useRef(e);D.exports.useEffect(function(){u.current=e},[e]),D.exports.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(s));var A=HO([e.lockRef.current],(e.shards||[]).map(L5),!0).filter(Boolean);return A.forEach(function(M){return M.classList.add("allow-interactivity-".concat(s))}),function(){document.body.classList.remove("block-interactivity-".concat(s)),A.forEach(function(M){return M.classList.remove("allow-interactivity-".concat(s))})}}},[e.inert,e.lockRef.current,e.shards]);var h=D.exports.useCallback(function(A,M){if("touches"in A&&A.touches.length===2)return!u.current.allowPinchZoom;var j=ox(A),I=r.current,z="deltaX"in A?A.deltaX:I[0]-j[0],B="deltaY"in A?A.deltaY:I[1]-j[1],$,K=A.target,X=Math.abs(z)>Math.abs(B)?"h":"v";if("touches"in A&&X==="h"&&K.type==="range")return!1;var de=P5(X,K);if(!de)return!0;if(de?$=X:($=X==="v"?"h":"v",de=P5(X,K)),!de)return!1;if(!i.current&&"changedTouches"in A&&(z||B)&&(i.current=$),!$)return!0;var ve=i.current||$;return Fte(ve,M,A,ve==="h"?z:B,!0)},[]),m=D.exports.useCallback(function(A){var M=A;if(!(!_m.length||_m[_m.length-1]!==c)){var j="deltaY"in M?I5(M):ox(M),I=t.current.filter(function($){return $.name===M.type&&$.target===M.target&&zte($.delta,j)})[0];if(I&&I.should){M.cancelable&&M.preventDefault();return}if(!I){var z=(u.current.shards||[]).map(L5).filter(Boolean).filter(function($){return $.contains(M.target)}),B=z.length>0?h(M,z[0]):!u.current.noIsolation;B&&M.cancelable&&M.preventDefault()}}},[]),v=D.exports.useCallback(function(A,M,j,I){var z={name:A,delta:M,target:j,should:I};t.current.push(z),setTimeout(function(){t.current=t.current.filter(function(B){return B!==z})},1)},[]),b=D.exports.useCallback(function(A){r.current=ox(A),i.current=void 0},[]),x=D.exports.useCallback(function(A){v(A.type,I5(A),A.target,h(A,e.lockRef.current))},[]),C=D.exports.useCallback(function(A){v(A.type,ox(A),A.target,h(A,e.lockRef.current))},[]);D.exports.useEffect(function(){return _m.push(c),e.setCallbacks({onScrollCapture:x,onWheelCapture:x,onTouchMoveCapture:C}),document.addEventListener("wheel",m,Cm),document.addEventListener("touchmove",m,Cm),document.addEventListener("touchstart",b,Cm),function(){_m=_m.filter(function(A){return A!==c}),document.removeEventListener("wheel",m,Cm),document.removeEventListener("touchmove",m,Cm),document.removeEventListener("touchstart",b,Cm)}},[]);var _=e.removeScrollBar,R=e.inert;return k(bo,{children:[R?k(c,{styles:Bte(s)},void 0,!1,{fileName:M5,lineNumber:144,columnNumber:17},this):null,_?k(Ate,{gapMode:"margin"},void 0,!1,{fileName:M5,lineNumber:145,columnNumber:27},this):null]},void 0,!0)}const $te=vee(YB,jte);var Vte="/Users/spencer/Documents/Code/stable-diffusion/frontend/node_modules/react-remove-scroll/dist/es2015/Combination.js",QB=D.exports.forwardRef(function(e,t){return k(aC,{...ou({},e,{ref:t,sideCar:$te})},void 0,!1,{fileName:Vte,lineNumber:5,columnNumber:74},this)});QB.classNames=aC.classNames;const Hte=QB;var Go="/Users/spencer/Documents/Code/stable-diffusion/frontend/node_modules/@chakra-ui/modal/dist/index.esm.js",Gp=(...e)=>e.filter(Boolean).join(" ");function Ay(...e){return function(r){e.some(i=>(i?.(r),r?.defaultPrevented))}}var Wte=class{modals;constructor(){this.modals=[]}add(e){this.modals.push(e)}remove(e){this.modals=this.modals.filter(t=>t!==e)}isTopModal(e){return this.modals[this.modals.length-1]===e}},RA=new Wte;function Gte(e,t){D.exports.useEffect(()=>(t&&RA.add(e),()=>{RA.remove(e)}),[t,e])}function Yte(e){const{isOpen:t,onClose:r,id:i,closeOnOverlayClick:s=!0,closeOnEsc:c=!0,useInert:u=!0,onOverlayClick:h,onEsc:m}=e,v=D.exports.useRef(null),b=D.exports.useRef(null),[x,C,_]=Kte(i,"chakra-modal","chakra-modal--header","chakra-modal--body");qte(v,t&&u),Gte(v,t);const R=D.exports.useRef(null),A=D.exports.useCallback(de=>{R.current=de.target},[]),M=D.exports.useCallback(de=>{de.key==="Escape"&&(de.stopPropagation(),c&&r?.(),m?.())},[c,r,m]),[j,I]=D.exports.useState(!1),[z,B]=D.exports.useState(!1),$=D.exports.useCallback((de={},ve=null)=>({role:"dialog",...de,ref:Zi(ve,v),id:x,tabIndex:-1,"aria-modal":!0,"aria-labelledby":j?C:void 0,"aria-describedby":z?_:void 0,onClick:Ay(de.onClick,se=>se.stopPropagation())}),[_,z,x,C,j]),K=D.exports.useCallback(de=>{de.stopPropagation(),R.current===de.target&&(!RA.isTopModal(v)||(s&&r?.(),h?.()))},[r,s,h]),X=D.exports.useCallback((de={},ve=null)=>({...de,ref:Zi(ve,b),onClick:Ay(de.onClick,K),onKeyDown:Ay(de.onKeyDown,M),onMouseDown:Ay(de.onMouseDown,A)}),[M,A,K]);return{isOpen:t,onClose:r,headerId:C,bodyId:_,setBodyMounted:B,setHeaderMounted:I,dialogRef:v,overlayRef:b,getDialogProps:$,getDialogContainerProps:X}}function qte(e,t){const r=e.current;D.exports.useEffect(()=>{if(!(!e.current||!t))return qJ(e.current)},[t,e,r])}function Kte(e,...t){const r=D.exports.useId(),i=e||r;return D.exports.useMemo(()=>t.map(s=>`${s}-${i}`),[i,t])}var[Xte,Yp]=Xr({name:"ModalStylesContext",errorMessage:`useModalStyles returned is 'undefined'. Seems you forgot to wrap the components in "<Modal />" `}),[Zte,$f]=Xr({strict:!0,name:"ModalContext",errorMessage:"useModalContext: `context` is undefined. Seems you forgot to wrap modal components in `<Modal />`"}),pb=e=>{const{portalProps:t,children:r,autoFocus:i,trapFocus:s,initialFocusRef:c,finalFocusRef:u,returnFocusOnClose:h,blockScrollOnMount:m,allowPinchZoom:v,preserveScrollBarGap:b,motionPreset:x,lockFocusAcrossFrames:C,onCloseComplete:_}=e,R=Qo("Modal",e),M={...Yte(e),autoFocus:i,trapFocus:s,initialFocusRef:c,finalFocusRef:u,returnFocusOnClose:h,blockScrollOnMount:m,allowPinchZoom:v,preserveScrollBarGap:b,motionPreset:x,lockFocusAcrossFrames:C};return k(Zte,{value:M,children:k(Xte,{value:R,children:k(gc,{onExitComplete:_,children:M.isOpen&&k(Wp,{...t,children:r},void 0,!1,{fileName:Go,lineNumber:195,columnNumber:40},globalThis)},void 0,!1,{fileName:Go,lineNumber:193,columnNumber:22},globalThis)},void 0,!1,{fileName:Go,lineNumber:191,columnNumber:22},globalThis)},void 0,!1,{fileName:Go,lineNumber:189,columnNumber:26},globalThis)};pb.defaultProps={lockFocusAcrossFrames:!0,returnFocusOnClose:!0,scrollBehavior:"outside",trapFocus:!0,autoFocus:!0,blockScrollOnMount:!0,allowPinchZoom:!1,motionPreset:"scale"};pb.displayName="Modal";var fw=et((e,t)=>{const{className:r,...i}=e,{bodyId:s,setBodyMounted:c}=$f();D.exports.useEffect(()=>(c(!0),()=>c(!1)),[c]);const u=Gp("chakra-modal__body",r),h=Yp();return Ue.createElement(Ge.div,{ref:t,className:u,id:s,...i,__css:h.body})});fw.displayName="ModalBody";var _k=et((e,t)=>{const{onClick:r,className:i,...s}=e,{onClose:c}=$f(),u=Gp("chakra-modal__close-btn",i),h=Yp();return k(J2,{ref:t,__css:h.closeButton,className:u,onClick:Ay(r,m=>{m.stopPropagation(),c()}),...s},void 0,!1,{fileName:Go,lineNumber:241,columnNumber:26},globalThis)});_k.displayName="ModalCloseButton";function JB(e){const{autoFocus:t,trapFocus:r,dialogRef:i,initialFocusRef:s,blockScrollOnMount:c,allowPinchZoom:u,finalFocusRef:h,returnFocusOnClose:m,preserveScrollBarGap:v,lockFocusAcrossFrames:b}=$f(),[x,C]=F2();return D.exports.useEffect(()=>{!x&&C&&setTimeout(C)},[x,C]),k(GB,{autoFocus:t,isDisabled:!r,initialFocusRef:s,finalFocusRef:h,restoreFocus:m,contentRef:i,lockFocusAcrossFrames:b,children:k(Hte,{removeScrollBar:!v,allowPinchZoom:u,enabled:c,forwardProps:!0,children:e.children},void 0,!1,{fileName:Go,lineNumber:292,columnNumber:22},this)},void 0,!1,{fileName:Go,lineNumber:284,columnNumber:26},this)}var Qte={slideInBottom:{...sA,custom:{offsetY:16,reverse:!0}},slideInRight:{...sA,custom:{offsetX:16,reverse:!0}},scale:{...xz,custom:{initialScale:.95,reverse:!0}},none:{}},Jte=Ge(Ol.section),e6=D.exports.forwardRef((e,t)=>{const{preset:r,...i}=e,s=Qte[r];return k(Jte,{ref:t,...s,...i},void 0,!1,{fileName:Go,lineNumber:324,columnNumber:26},globalThis)});e6.displayName="ModalTransition";var hb=et((e,t)=>{const{className:r,children:i,containerProps:s,...c}=e,{getDialogProps:u,getDialogContainerProps:h}=$f(),m=u(c,t),v=h(s),b=Gp("chakra-modal__content",r),x=Yp(),C={display:"flex",flexDirection:"column",position:"relative",width:"100%",outline:0,...x.dialog},_={display:"flex",width:"100vw",height:"100vh","@supports(height: -webkit-fill-available)":{height:"-webkit-fill-available"},position:"fixed",left:0,top:0,...x.dialogContainer},{motionPreset:R}=$f();return Ue.createElement(JB,null,Ue.createElement(Ge.div,{...v,className:"chakra-modal__content-container",tabIndex:-1,__css:_},k(e6,{preset:R,className:b,...m,__css:C,children:i},void 0,!1,{fileName:Go,lineNumber:366,columnNumber:22},globalThis)))});hb.displayName="ModalContent";var Ek=et((e,t)=>{const{className:r,...i}=e,s=Gp("chakra-modal__footer",r),c=Yp(),u={display:"flex",alignItems:"center",justifyContent:"flex-end",...c.footer};return Ue.createElement(Ge.footer,{ref:t,...i,__css:u,className:s})});Ek.displayName="ModalFooter";var Tk=et((e,t)=>{const{className:r,...i}=e,{headerId:s,setHeaderMounted:c}=$f();D.exports.useEffect(()=>(c(!0),()=>c(!1)),[c]);const u=Gp("chakra-modal__header",r),h=Yp(),m={flex:0,...h.header};return Ue.createElement(Ge.header,{ref:t,className:u,id:s,...i,__css:m})});Tk.displayName="ModalHeader";var ene=Ge(Ol.div),dw=et((e,t)=>{const{className:r,transition:i,...s}=e,c=Gp("chakra-modal__overlay",r),u=Yp(),h={pos:"fixed",left:"0",top:"0",w:"100vw",h:"100vh",...u.overlay},{motionPreset:m}=$f();return k(ene,{...m==="none"?{}:Sz,__css:h,ref:t,className:c,...s},void 0,!1,{fileName:Go,lineNumber:450,columnNumber:26},globalThis)});dw.displayName="ModalOverlay";et((e,t)=>k(hb,{ref:t,role:"alertdialog",...e},void 0,!1,{fileName:Go,lineNumber:469,columnNumber:70},globalThis));var[pme,tne]=Xr(),nne=Ge(wz),rne=et((e,t)=>{const{className:r,children:i,...s}=e,{getDialogProps:c,getDialogContainerProps:u,isOpen:h}=$f(),m=c(s,t),v=u(),b=Gp("chakra-modal__content",r),x=Yp(),C={display:"flex",flexDirection:"column",position:"relative",width:"100%",outline:0,...x.dialog},_={display:"flex",width:"100vw",height:"100vh",position:"fixed",left:0,top:0,...x.dialogContainer},{placement:R}=tne();return Ue.createElement(Ge.div,{...v,className:"chakra-modal__content-container",__css:_},k(JB,{children:k(nne,{direction:R,in:h,className:b,...m,__css:C,children:i},void 0,!1,{fileName:Go,lineNumber:547,columnNumber:81},globalThis)},void 0,!1,{fileName:Go,lineNumber:547,columnNumber:22},globalThis))});rne.displayName="DrawerContent";function ane(e,t){const r=ki(e);D.exports.useEffect(()=>{let i=null;const s=()=>r();return t!==null&&(i=window.setInterval(s,t)),()=>{i&&window.clearInterval(i)}},[t,r])}var Vf="/Users/spencer/Documents/Code/stable-diffusion/frontend/node_modules/@chakra-ui/number-input/dist/index.esm.js",t6=(...e)=>e.filter(Boolean).join(" "),sO=e=>e?!0:void 0;function tu(...e){return function(r){e.some(i=>(i?.(r),r?.defaultPrevented))}}var ine=e=>k(Rl,{viewBox:"0 0 24 24",...e,children:k("path",{fill:"currentColor",d:"M21,5H3C2.621,5,2.275,5.214,2.105,5.553C1.937,5.892,1.973,6.297,2.2,6.6l9,12 c0.188,0.252,0.485,0.4,0.8,0.4s0.611-0.148,0.8-0.4l9-12c0.228-0.303,0.264-0.708,0.095-1.047C21.725,5.214,21.379,5,21,5z"},void 0,!1,{fileName:Vf,lineNumber:34,columnNumber:20},globalThis)},void 0,!1,{fileName:Vf,lineNumber:31,columnNumber:51},globalThis),one=e=>k(Rl,{viewBox:"0 0 24 24",...e,children:k("path",{fill:"currentColor",d:"M12.8,5.4c-0.377-0.504-1.223-0.504-1.6,0l-9,12c-0.228,0.303-0.264,0.708-0.095,1.047 C2.275,18.786,2.621,19,3,19h18c0.379,0,0.725-0.214,0.895-0.553c0.169-0.339,0.133-0.744-0.095-1.047L12.8,5.4z"},void 0,!1,{fileName:Vf,lineNumber:41,columnNumber:20},globalThis)},void 0,!1,{fileName:Vf,lineNumber:38,columnNumber:49},globalThis);function F5(e,t,r,i){D.exports.useEffect(()=>{if(!e.current||!i)return;const s=e.current.ownerDocument.defaultView??window,c=Array.isArray(t)?t:[t],u=new s.MutationObserver(h=>{for(const m of h)m.type==="attributes"&&m.attributeName&&c.includes(m.attributeName)&&r(m)});return u.observe(e.current,{attributes:!0,attributeFilter:c}),()=>u.disconnect()})}var sne=50,z5=300;function lne(e,t){const[r,i]=D.exports.useState(!1),[s,c]=D.exports.useState(null),[u,h]=D.exports.useState(!0),m=D.exports.useRef(null),v=()=>clearTimeout(m.current);ane(()=>{s==="increment"&&e(),s==="decrement"&&t()},r?sne:null);const b=D.exports.useCallback(()=>{u&&e(),m.current=setTimeout(()=>{h(!1),i(!0),c("increment")},z5)},[e,u]),x=D.exports.useCallback(()=>{u&&t(),m.current=setTimeout(()=>{h(!1),i(!0),c("decrement")},z5)},[t,u]),C=D.exports.useCallback(()=>{h(!0),i(!1),v()},[]);return D.exports.useEffect(()=>()=>v(),[]),{up:b,down:x,stop:C,isSpinning:r}}var une=/^[Ee0-9+\-.]$/;function cne(e){return une.test(e)}function fne(e,t){if(e.key==null)return!0;const r=e.ctrlKey||e.altKey||e.metaKey;return!(e.key.length===1)||r?!0:t(e.key)}function dne(e={}){const{focusInputOnChange:t=!0,clampValueOnBlur:r=!0,keepWithinRange:i=!0,min:s=Number.MIN_SAFE_INTEGER,max:c=Number.MAX_SAFE_INTEGER,step:u=1,isReadOnly:h,isDisabled:m,isRequired:v,isInvalid:b,pattern:x="[0-9]*(.[0-9]+)?",inputMode:C="decimal",allowMouseWheel:_,id:R,onChange:A,precision:M,name:j,"aria-describedby":I,"aria-label":z,"aria-labelledby":B,onFocus:$,onBlur:K,onInvalid:X,getAriaValueText:de,isValidCharacter:ve,format:se,parse:be,...Xe}=e,ie=ki($),ce=ki(K),Re=ki(X),Ce=ki(ve??cne),oe=ki(de),Se=wZ(e),{update:Te,increment:pe,decrement:we}=Se,[Ie,Le]=D.exports.useState(!1),Ye=!(h||m),st=D.exports.useRef(null),mt=D.exports.useRef(null),Gt=D.exports.useRef(null),Qe=D.exports.useRef(null),vt=D.exports.useCallback(ke=>ke.split("").filter(Ce).join(""),[Ce]),Et=D.exports.useCallback(ke=>be?.(ke)??ke,[be]),zt=D.exports.useCallback(ke=>(se?.(ke)??ke).toString(),[se]);iw(()=>{(Se.valueAsNumber>c||Se.valueAsNumber<s)&&Re?.("rangeOverflow",zt(Se.value),Se.valueAsNumber)},[Se.valueAsNumber,Se.value,zt,Re]),dc(()=>{if(!st.current)return;if(st.current.value!=Se.value){const jt=Et(st.current.value);Se.setValue(vt(jt))}},[Et,vt]);const We=D.exports.useCallback((ke=u)=>{Ye&&pe(ke)},[pe,Ye,u]),Yt=D.exports.useCallback((ke=u)=>{Ye&&we(ke)},[we,Ye,u]),ye=lne(We,Yt);F5(Gt,"disabled",ye.stop,ye.isSpinning),F5(Qe,"disabled",ye.stop,ye.isSpinning);const Mt=D.exports.useCallback(ke=>{if(ke.nativeEvent.isComposing)return;const xn=Et(ke.currentTarget.value);Te(vt(xn)),mt.current={start:ke.currentTarget.selectionStart,end:ke.currentTarget.selectionEnd}},[Te,vt,Et]),Kt=D.exports.useCallback(ke=>{var jt;ie?.(ke),mt.current&&(ke.target.selectionStart=mt.current.start??((jt=ke.currentTarget.value)==null?void 0:jt.length),ke.currentTarget.selectionEnd=mt.current.end??ke.currentTarget.selectionStart)},[ie]),St=D.exports.useCallback(ke=>{if(ke.nativeEvent.isComposing)return;fne(ke,Ce)||ke.preventDefault();const jt=ar(ke)*u,xn=ke.key,rt={ArrowUp:()=>We(jt),ArrowDown:()=>Yt(jt),Home:()=>Te(s),End:()=>Te(c)}[xn];rt&&(ke.preventDefault(),rt(ke))},[Ce,u,We,Yt,Te,s,c]),ar=ke=>{let jt=1;return(ke.metaKey||ke.ctrlKey)&&(jt=.1),ke.shiftKey&&(jt=10),jt},ir=D.exports.useMemo(()=>{const ke=oe?.(Se.value);if(ke!=null)return ke;const jt=Se.value.toString();return jt||void 0},[Se.value,oe]),Bt=D.exports.useCallback(()=>{let ke=Se.value;ke!==""&&(Se.valueAsNumber<s&&(ke=s),Se.valueAsNumber>c&&(ke=c),Se.cast(ke))},[Se,c,s]),fn=D.exports.useCallback(()=>{Le(!1),r&&Bt()},[r,Le,Bt]),An=D.exports.useCallback(()=>{t&&requestAnimationFrame(()=>{var ke;(ke=st.current)==null||ke.focus()})},[t]),hn=D.exports.useCallback(ke=>{ke.preventDefault(),ye.up(),An()},[An,ye]),Ve=D.exports.useCallback(ke=>{ke.preventDefault(),ye.down(),An()},[An,ye]);hA(()=>st.current,"wheel",ke=>{var jt;const je=(((jt=st.current)==null?void 0:jt.ownerDocument)??document).activeElement===st.current;if(!_||!je)return;ke.preventDefault();const rt=ar(ke)*u,xt=Math.sign(ke.deltaY);xt===-1?We(rt):xt===1&&Yt(rt)},{passive:!1});const Ze=D.exports.useCallback((ke={},jt=null)=>{const xn=m||i&&Se.isAtMax;return{...ke,ref:Zi(jt,Gt),role:"button",tabIndex:-1,onPointerDown:tu(ke.onPointerDown,je=>{xn||hn(je)}),onPointerLeave:tu(ke.onPointerLeave,ye.stop),onPointerUp:tu(ke.onPointerUp,ye.stop),disabled:xn,"aria-disabled":sO(xn)}},[Se.isAtMax,i,hn,ye.stop,m]),Jt=D.exports.useCallback((ke={},jt=null)=>{const xn=m||i&&Se.isAtMin;return{...ke,ref:Zi(jt,Qe),role:"button",tabIndex:-1,onPointerDown:tu(ke.onPointerDown,je=>{xn||Ve(je)}),onPointerLeave:tu(ke.onPointerLeave,ye.stop),onPointerUp:tu(ke.onPointerUp,ye.stop),disabled:xn,"aria-disabled":sO(xn)}},[Se.isAtMin,i,Ve,ye.stop,m]),Tt=D.exports.useCallback((ke={},jt=null)=>({name:j,inputMode:C,type:"text",pattern:x,"aria-labelledby":B,"aria-label":z,"aria-describedby":I,id:R,disabled:m,...ke,readOnly:ke.readOnly??h,"aria-readonly":ke.readOnly??h,"aria-required":ke.required??v,required:ke.required??v,ref:Zi(st,jt),value:zt(Se.value),role:"spinbutton","aria-valuemin":s,"aria-valuemax":c,"aria-valuenow":Number.isNaN(Se.valueAsNumber)?void 0:Se.valueAsNumber,"aria-invalid":sO(b??Se.isOutOfRange),"aria-valuetext":ir,autoComplete:"off",autoCorrect:"off",onChange:tu(ke.onChange,Mt),onKeyDown:tu(ke.onKeyDown,St),onFocus:tu(ke.onFocus,Kt,()=>Le(!0)),onBlur:tu(ke.onBlur,ce,fn)}),[j,C,x,B,z,zt,I,R,m,v,h,b,Se.value,Se.valueAsNumber,Se.isOutOfRange,s,c,ir,Mt,St,Kt,ce,fn]);return{value:zt(Se.value),valueAsNumber:Se.valueAsNumber,isFocused:Ie,isDisabled:m,isReadOnly:h,getIncrementButtonProps:Ze,getDecrementButtonProps:Jt,getInputProps:Tt,htmlProps:Xe}}var[pne,iC]=Xr({name:"NumberInputStylesContext",errorMessage:`useNumberInputStyles returned is 'undefined'. Seems you forgot to wrap the components in "<NumberInput />" `}),[hne,Nk]=Xr({name:"NumberInputContext",errorMessage:"useNumberInputContext: `context` is undefined. Seems you forgot to wrap number-input's components within <NumberInput />"}),n6=et(function(t,r){const i=Qo("NumberInput",t),s=mr(t),c=X2(s),{htmlProps:u,...h}=dne(c),m=D.exports.useMemo(()=>h,[h]);return Ue.createElement(hne,{value:m},Ue.createElement(pne,{value:i},Ue.createElement(Ge.div,{...u,ref:r,className:t6("chakra-numberinput",t.className),__css:{position:"relative",zIndex:0,...i.root}})))});n6.displayName="NumberInput";var r6=et(function(t,r){const i=iC();return Ue.createElement(Ge.div,{"aria-hidden":!0,ref:r,...t,__css:{display:"flex",flexDirection:"column",position:"absolute",top:"0",insetEnd:"0px",margin:"1px",height:"calc(100% - 2px)",zIndex:1,...i.stepperGroup}})});r6.displayName="NumberInputStepper";var a6=et(function(t,r){const{getInputProps:i}=Nk(),s=i(t,r),c=iC();return Ue.createElement(Ge.input,{...s,className:t6("chakra-numberinput__field",t.className),__css:{width:"100%",...c.field}})});a6.displayName="NumberInputField";var i6=Ge("div",{baseStyle:{display:"flex",justifyContent:"center",alignItems:"center",flex:1,transitionProperty:"common",transitionDuration:"normal",userSelect:"none",cursor:"pointer",lineHeight:"normal"}}),o6=et(function(t,r){const i=iC(),{getDecrementButtonProps:s}=Nk(),c=s(t,r);return k(i6,{...c,__css:i.stepper,children:t.children??k(ine,{},void 0,!1,{fileName:Vf,lineNumber:512,columnNumber:40},this)},void 0,!1,{fileName:Vf,lineNumber:509,columnNumber:26},this)});o6.displayName="NumberDecrementStepper";var s6=et(function(t,r){const{getIncrementButtonProps:i}=Nk(),s=i(t,r),c=iC();return k(i6,{...s,__css:c.stepper,children:t.children??k(one,{},void 0,!1,{fileName:Vf,lineNumber:522,columnNumber:40},this)},void 0,!1,{fileName:Vf,lineNumber:519,columnNumber:26},this)});s6.displayName="NumberIncrementStepper";var B5="/Users/spencer/Documents/Code/stable-diffusion/frontend/node_modules/@chakra-ui/progress/dist/index.esm.js";function mne(e,t,r){return(e-t)*100/(r-t)}Cb({"0%":{strokeDasharray:"1, 400",strokeDashoffset:"0"},"50%":{strokeDasharray:"400, 400",strokeDashoffset:"-100"},"100%":{strokeDasharray:"400, 400",strokeDashoffset:"-260"}});Cb({"0%":{transform:"rotate(0deg)"},"100%":{transform:"rotate(360deg)"}});var vne=Cb({"0%":{left:"-40%"},"100%":{left:"100%"}}),gne=Cb({from:{backgroundPosition:"1rem 0"},to:{backgroundPosition:"0 0"}});function yne(e){const{value:t=0,min:r,max:i,valueText:s,getValueText:c,isIndeterminate:u}=e,h=mne(t,r,i);return{bind:{"data-indeterminate":u?"":void 0,"aria-valuemax":i,"aria-valuemin":r,"aria-valuenow":u?void 0:t,"aria-valuetext":(()=>{if(t!=null)return typeof c=="function"?c(t,h):s})(),role:"progressbar"},percent:h,value:t}}var[bne,Sne]=Xr({name:"ProgressStylesContext",errorMessage:`useProgressStyles returned is 'undefined'. Seems you forgot to wrap the components in "<Progress />" `}),xne=e=>{const{min:t,max:r,value:i,isIndeterminate:s,...c}=e,u=yne({value:i,min:t,max:r,isIndeterminate:s}),h=Sne(),m={height:"100%",...h.filledTrack};return Ue.createElement(Ge.div,{style:{width:`${u.percent}%`,...c.style},...u.bind,...c,__css:m})},l6=e=>{var t;const{value:r,min:i=0,max:s=100,hasStripe:c,isAnimated:u,children:h,borderRadius:m,isIndeterminate:v,"aria-label":b,"aria-labelledby":x,...C}=mr(e),_=Qo("Progress",e),R=m??((t=_.track)==null?void 0:t.borderRadius),A={animation:`${gne} 1s linear infinite`},I={...!v&&c&&u&&A,...v&&{position:"absolute",willChange:"left",minWidth:"50%",animation:`${vne} 1s ease infinite normal none running`}},z={overflow:"hidden",position:"relative",..._.track};return Ue.createElement(Ge.div,{borderRadius:R,__css:z,...C},k(bne,{value:_,children:[k(xne,{"aria-label":b,"aria-labelledby":x,min:i,max:s,value:r,isIndeterminate:v,css:I,borderRadius:R},void 0,!1,{fileName:B5,lineNumber:232,columnNumber:22},globalThis),h]},void 0,!0,{fileName:B5,lineNumber:230,columnNumber:22},globalThis))};l6.displayName="Progress";var wne=Ge("div",{baseStyle:{fontSize:"0.24em",top:"50%",left:"50%",width:"100%",textAlign:"center",position:"absolute",transform:"translate(-50%, -50%)"}});wne.displayName="CircularProgressLabel";var Up="/Users/spencer/Documents/Code/stable-diffusion/frontend/node_modules/@chakra-ui/select/dist/index.esm.js",Cne=(...e)=>e.filter(Boolean).join(" "),_ne=e=>e?"":void 0;function Ene(e,t){const r={},i={};for(const[s,c]of Object.entries(e))t.includes(s)?r[s]=c:i[s]=c;return[r,i]}var u6=et(function(t,r){const{children:i,placeholder:s,className:c,...u}=t;return Ue.createElement(Ge.select,{...u,ref:r,className:Cne("chakra-select",c)},s&&k("option",{value:"",children:s},void 0,!1,{fileName:Up,lineNumber:42,columnNumber:37},this),i)});u6.displayName="SelectField";var c6=et((e,t)=>{var r;const i=Qo("Select",e),{rootProps:s,placeholder:c,icon:u,color:h,height:m,h:v,minH:b,minHeight:x,iconColor:C,iconSize:_,...R}=mr(e),[A,M]=Ene(R,n8),j=K2(M),I={width:"100%",height:"fit-content",position:"relative",color:h},z={paddingEnd:"2rem",...i.field,_focus:{zIndex:"unset",...(r=i.field)==null?void 0:r._focus}};return Ue.createElement(Ge.div,{className:"chakra-select__wrapper",__css:I,...A,...s},k(u6,{ref:t,height:v??m,minH:b??x,placeholder:c,...j,__css:z,children:e.children},void 0,!1,{fileName:Up,lineNumber:86,columnNumber:22},globalThis),k(f6,{"data-disabled":_ne(j.disabled),...(C||h)&&{color:C||h},__css:i.icon,..._&&{fontSize:_},children:u},void 0,!1,{fileName:Up,lineNumber:93,columnNumber:39},globalThis))});c6.displayName="Select";var Tne=e=>k("svg",{viewBox:"0 0 24 24",...e,children:k("path",{fill:"currentColor",d:"M16.59 8.59L12 13.17 7.41 8.59 6 10l6 6 6-6z"},void 0,!1,{fileName:Up,lineNumber:104,columnNumber:20},globalThis)},void 0,!1,{fileName:Up,lineNumber:101,columnNumber:46},globalThis),Nne=Ge("div",{baseStyle:{position:"absolute",display:"inline-flex",alignItems:"center",justifyContent:"center",pointerEvents:"none",top:"50%",transform:"translateY(-50%)"}}),f6=e=>{const{children:t=k(Tne,{},void 0,!1,{fileName:Up,lineNumber:120,columnNumber:38},globalThis),...r}=e,i=D.exports.cloneElement(t,{role:"presentation",className:"chakra-select__icon",focusable:!1,"aria-hidden":!0,style:{width:"1em",height:"1em",color:"currentColor"}});return k(Nne,{...r,className:"chakra-select__icon-wrapper",children:D.exports.isValidElement(t)?i:null},void 0,!1,{fileName:Up,lineNumber:132,columnNumber:26},globalThis)};f6.displayName="SelectIcon";var Rne="/Users/spencer/Documents/Code/stable-diffusion/frontend/node_modules/@chakra-ui/switch/dist/index.esm.js",One=(...e)=>e.filter(Boolean).join(" "),U5=e=>e?"":void 0,Dp=et(function(t,r){const i=Qo("Switch",t),{spacing:s="0.5rem",children:c,...u}=mr(t),{state:h,getInputProps:m,getCheckboxProps:v,getRootProps:b,getLabelProps:x}=Iz(u),C=D.exports.useMemo(()=>({display:"inline-block",position:"relative",verticalAlign:"middle",lineHeight:0,...i.container}),[i.container]),_=D.exports.useMemo(()=>({display:"inline-flex",flexShrink:0,justifyContent:"flex-start",boxSizing:"content-box",cursor:"pointer",...i.track}),[i.track]),R=D.exports.useMemo(()=>({userSelect:"none",marginStart:s,...i.label}),[s,i.label]);return Ue.createElement(Ge.label,{...b(),className:One("chakra-switch",t.className),__css:C},k("input",{className:"chakra-switch__input",...m({},r)},void 0,!1,{fileName:Rne,lineNumber:53,columnNumber:22},this),Ue.createElement(Ge.span,{...v(),className:"chakra-switch__track",__css:_},Ue.createElement(Ge.span,{__css:i.thumb,className:"chakra-switch__thumb","data-checked":U5(h.isChecked),"data-hover":U5(h.isHovered)})),c&&Ue.createElement(Ge.span,{className:"chakra-switch__label",...x(),__css:R},c))});Dp.displayName="Switch";var Ane=(...e)=>e.filter(Boolean).join(" ");function kne(e,t=[]){const r=Object.assign({},e);for(const i of t)i in r&&delete r[i];return r}var Dne=["h","minH","height","minHeight"],d6=et((e,t)=>{const r=Qi("Textarea",e),{className:i,rows:s,...c}=mr(e),u=K2(c),h=s?kne(r,Dne):r;return Ue.createElement(Ge.textarea,{ref:t,rows:s,...u,className:Ane("chakra-textarea",i),__css:h})});d6.displayName="Textarea";function lr(e,t={}){let r=!1;function i(){if(!r){r=!0;return}throw new Error("[anatomy] .part(...) should only be called once. Did you mean to use .extend(...) ?")}function s(...b){i();for(const x of b)t[x]=m(x);return lr(e,t)}function c(...b){for(const x of b)x in t||(t[x]=m(x));return lr(e,t)}function u(){return Object.fromEntries(Object.entries(t).map(([x,C])=>[x,C.selector]))}function h(){return Object.fromEntries(Object.entries(t).map(([x,C])=>[x,C.className]))}function m(b){const _=`chakra-${(["container","root"].includes(b??"")?[e]:[e,b]).filter(Boolean).join("__")}`;return{className:_,selector:`.${_}`,toString:()=>b}}return{parts:s,toPart:m,extend:c,selectors:u,classnames:h,get keys(){return Object.keys(t)},__type:{}}}var Pne=lr("accordion").parts("root","container","button","panel").extend("icon"),Mne=lr("alert").parts("title","description","container").extend("icon","spinner"),Ine=lr("avatar").parts("label","badge","container").extend("excessLabel","group"),Lne=lr("breadcrumb").parts("link","item","container").extend("separator");lr("button").parts();var Fne=lr("checkbox").parts("control","icon","container").extend("label");lr("progress").parts("track","filledTrack").extend("label");var zne=lr("drawer").parts("overlay","dialogContainer","dialog").extend("header","closeButton","body","footer"),Bne=lr("editable").parts("preview","input","textarea"),Une=lr("form").parts("container","requiredIndicator","helperText"),jne=lr("formError").parts("text","icon"),$ne=lr("input").parts("addon","field","element"),Vne=lr("list").parts("container","item","icon"),Hne=lr("menu").parts("button","list","item").extend("groupTitle","command","divider"),Wne=lr("modal").parts("overlay","dialogContainer","dialog").extend("header","closeButton","body","footer"),Gne=lr("numberinput").parts("root","field","stepperGroup","stepper");lr("pininput").parts("field");var Yne=lr("popover").parts("content","header","body","footer").extend("popper","arrow","closeButton"),qne=lr("progress").parts("label","filledTrack","track"),Kne=lr("radio").parts("container","control","label"),Xne=lr("select").parts("field","icon"),Zne=lr("slider").parts("container","track","thumb","filledTrack","mark"),Qne=lr("stat").parts("container","label","helpText","number","icon"),Jne=lr("switch").parts("container","track","thumb"),ere=lr("table").parts("table","thead","tbody","tr","th","td","tfoot","caption"),tre=lr("tabs").parts("root","tab","tablist","tabpanel","tabpanels","indicator"),nre=lr("tag").parts("container","label","closeButton");function ui(e,t){rre(e)&&(e="100%");var r=are(e);return e=t===360?e:Math.min(t,Math.max(0,parseFloat(e))),r&&(e=parseInt(String(e*t),10)/100),Math.abs(e-t)<1e-6?1:(t===360?e=(e<0?e%t+t:e%t)/parseFloat(String(t)):e=e%t/parseFloat(String(t)),e)}function sx(e){return Math.min(1,Math.max(0,e))}function rre(e){return typeof e=="string"&&e.indexOf(".")!==-1&&parseFloat(e)===1}function are(e){return typeof e=="string"&&e.indexOf("%")!==-1}function p6(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}function lx(e){return e<=1?"".concat(Number(e)*100,"%"):e}function Rp(e){return e.length===1?"0"+e:String(e)}function ire(e,t,r){return{r:ui(e,255)*255,g:ui(t,255)*255,b:ui(r,255)*255}}function j5(e,t,r){e=ui(e,255),t=ui(t,255),r=ui(r,255);var i=Math.max(e,t,r),s=Math.min(e,t,r),c=0,u=0,h=(i+s)/2;if(i===s)u=0,c=0;else{var m=i-s;switch(u=h>.5?m/(2-i-s):m/(i+s),i){case e:c=(t-r)/m+(t<r?6:0);break;case t:c=(r-e)/m+2;break;case r:c=(e-t)/m+4;break}c/=6}return{h:c,s:u,l:h}}function lO(e,t,r){return r<0&&(r+=1),r>1&&(r-=1),r<1/6?e+(t-e)*(6*r):r<1/2?t:r<2/3?e+(t-e)*(2/3-r)*6:e}function ore(e,t,r){var i,s,c;if(e=ui(e,360),t=ui(t,100),r=ui(r,100),t===0)s=r,c=r,i=r;else{var u=r<.5?r*(1+t):r+t-r*t,h=2*r-u;i=lO(h,u,e+1/3),s=lO(h,u,e),c=lO(h,u,e-1/3)}return{r:i*255,g:s*255,b:c*255}}function $5(e,t,r){e=ui(e,255),t=ui(t,255),r=ui(r,255);var i=Math.max(e,t,r),s=Math.min(e,t,r),c=0,u=i,h=i-s,m=i===0?0:h/i;if(i===s)c=0;else{switch(i){case e:c=(t-r)/h+(t<r?6:0);break;case t:c=(r-e)/h+2;break;case r:c=(e-t)/h+4;break}c/=6}return{h:c,s:m,v:u}}function sre(e,t,r){e=ui(e,360)*6,t=ui(t,100),r=ui(r,100);var i=Math.floor(e),s=e-i,c=r*(1-t),u=r*(1-s*t),h=r*(1-(1-s)*t),m=i%6,v=[r,u,c,c,h,r][m],b=[h,r,r,u,c,c][m],x=[c,c,h,r,r,u][m];return{r:v*255,g:b*255,b:x*255}}function V5(e,t,r,i){var s=[Rp(Math.round(e).toString(16)),Rp(Math.round(t).toString(16)),Rp(Math.round(r).toString(16))];return i&&s[0].startsWith(s[0].charAt(1))&&s[1].startsWith(s[1].charAt(1))&&s[2].startsWith(s[2].charAt(1))?s[0].charAt(0)+s[1].charAt(0)+s[2].charAt(0):s.join("")}function lre(e,t,r,i,s){var c=[Rp(Math.round(e).toString(16)),Rp(Math.round(t).toString(16)),Rp(Math.round(r).toString(16)),Rp(ure(i))];return s&&c[0].startsWith(c[0].charAt(1))&&c[1].startsWith(c[1].charAt(1))&&c[2].startsWith(c[2].charAt(1))&&c[3].startsWith(c[3].charAt(1))?c[0].charAt(0)+c[1].charAt(0)+c[2].charAt(0)+c[3].charAt(0):c.join("")}function ure(e){return Math.round(parseFloat(e)*255).toString(16)}function H5(e){return Wo(e)/255}function Wo(e){return parseInt(e,16)}function cre(e){return{r:e>>16,g:(e&65280)>>8,b:e&255}}var OA={aliceblue:"#f0f8ff",antiquewhite:"#faebd7",aqua:"#00ffff",aquamarine:"#7fffd4",azure:"#f0ffff",beige:"#f5f5dc",bisque:"#ffe4c4",black:"#000000",blanchedalmond:"#ffebcd",blue:"#0000ff",blueviolet:"#8a2be2",brown:"#a52a2a",burlywood:"#deb887",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",cornflowerblue:"#6495ed",cornsilk:"#fff8dc",crimson:"#dc143c",cyan:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkgray:"#a9a9a9",darkgreen:"#006400",darkgrey:"#a9a9a9",darkkhaki:"#bdb76b",darkmagenta:"#8b008b",darkolivegreen:"#556b2f",darkorange:"#ff8c00",darkorchid:"#9932cc",darkred:"#8b0000",darksalmon:"#e9967a",darkseagreen:"#8fbc8f",darkslateblue:"#483d8b",darkslategray:"#2f4f4f",darkslategrey:"#2f4f4f",darkturquoise:"#00ced1",darkviolet:"#9400d3",deeppink:"#ff1493",deepskyblue:"#00bfff",dimgray:"#696969",dimgrey:"#696969",dodgerblue:"#1e90ff",firebrick:"#b22222",floralwhite:"#fffaf0",forestgreen:"#228b22",fuchsia:"#ff00ff",gainsboro:"#dcdcdc",ghostwhite:"#f8f8ff",goldenrod:"#daa520",gold:"#ffd700",gray:"#808080",green:"#008000",greenyellow:"#adff2f",grey:"#808080",honeydew:"#f0fff0",hotpink:"#ff69b4",indianred:"#cd5c5c",indigo:"#4b0082",ivory:"#fffff0",khaki:"#f0e68c",lavenderblush:"#fff0f5",lavender:"#e6e6fa",lawngreen:"#7cfc00",lemonchiffon:"#fffacd",lightblue:"#add8e6",lightcoral:"#f08080",lightcyan:"#e0ffff",lightgoldenrodyellow:"#fafad2",lightgray:"#d3d3d3",lightgreen:"#90ee90",lightgrey:"#d3d3d3",lightpink:"#ffb6c1",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",lightskyblue:"#87cefa",lightslategray:"#778899",lightslategrey:"#778899",lightsteelblue:"#b0c4de",lightyellow:"#ffffe0",lime:"#00ff00",limegreen:"#32cd32",linen:"#faf0e6",magenta:"#ff00ff",maroon:"#800000",mediumaquamarine:"#66cdaa",mediumblue:"#0000cd",mediumorchid:"#ba55d3",mediumpurple:"#9370db",mediumseagreen:"#3cb371",mediumslateblue:"#7b68ee",mediumspringgreen:"#00fa9a",mediumturquoise:"#48d1cc",mediumvioletred:"#c71585",midnightblue:"#191970",mintcream:"#f5fffa",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",navajowhite:"#ffdead",navy:"#000080",oldlace:"#fdf5e6",olive:"#808000",olivedrab:"#6b8e23",orange:"#ffa500",orangered:"#ff4500",orchid:"#da70d6",palegoldenrod:"#eee8aa",palegreen:"#98fb98",paleturquoise:"#afeeee",palevioletred:"#db7093",papayawhip:"#ffefd5",peachpuff:"#ffdab9",peru:"#cd853f",pink:"#ffc0cb",plum:"#dda0dd",powderblue:"#b0e0e6",purple:"#800080",rebeccapurple:"#663399",red:"#ff0000",rosybrown:"#bc8f8f",royalblue:"#4169e1",saddlebrown:"#8b4513",salmon:"#fa8072",sandybrown:"#f4a460",seagreen:"#2e8b57",seashell:"#fff5ee",sienna:"#a0522d",silver:"#c0c0c0",skyblue:"#87ceeb",slateblue:"#6a5acd",slategray:"#708090",slategrey:"#708090",snow:"#fffafa",springgreen:"#00ff7f",steelblue:"#4682b4",tan:"#d2b48c",teal:"#008080",thistle:"#d8bfd8",tomato:"#ff6347",turquoise:"#40e0d0",violet:"#ee82ee",wheat:"#f5deb3",white:"#ffffff",whitesmoke:"#f5f5f5",yellow:"#ffff00",yellowgreen:"#9acd32"};function fre(e){var t={r:0,g:0,b:0},r=1,i=null,s=null,c=null,u=!1,h=!1;return typeof e=="string"&&(e=hre(e)),typeof e=="object"&&(ic(e.r)&&ic(e.g)&&ic(e.b)?(t=ire(e.r,e.g,e.b),u=!0,h=String(e.r).substr(-1)==="%"?"prgb":"rgb"):ic(e.h)&&ic(e.s)&&ic(e.v)?(i=lx(e.s),s=lx(e.v),t=sre(e.h,i,s),u=!0,h="hsv"):ic(e.h)&&ic(e.s)&&ic(e.l)&&(i=lx(e.s),c=lx(e.l),t=ore(e.h,i,c),u=!0,h="hsl"),Object.prototype.hasOwnProperty.call(e,"a")&&(r=e.a)),r=p6(r),{ok:u,format:e.format||h,r:Math.min(255,Math.max(t.r,0)),g:Math.min(255,Math.max(t.g,0)),b:Math.min(255,Math.max(t.b,0)),a:r}}var dre="[-\\+]?\\d+%?",pre="[-\\+]?\\d*\\.\\d+%?",Mf="(?:".concat(pre,")|(?:").concat(dre,")"),uO="[\\s|\\(]+(".concat(Mf,")[,|\\s]+(").concat(Mf,")[,|\\s]+(").concat(Mf,")\\s*\\)?"),cO="[\\s|\\(]+(".concat(Mf,")[,|\\s]+(").concat(Mf,")[,|\\s]+(").concat(Mf,")[,|\\s]+(").concat(Mf,")\\s*\\)?"),wl={CSS_UNIT:new RegExp(Mf),rgb:new RegExp("rgb"+uO),rgba:new RegExp("rgba"+cO),hsl:new RegExp("hsl"+uO),hsla:new RegExp("hsla"+cO),hsv:new RegExp("hsv"+uO),hsva:new RegExp("hsva"+cO),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/};function hre(e){if(e=e.trim().toLowerCase(),e.length===0)return!1;var t=!1;if(OA[e])e=OA[e],t=!0;else if(e==="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var r=wl.rgb.exec(e);return r?{r:r[1],g:r[2],b:r[3]}:(r=wl.rgba.exec(e),r?{r:r[1],g:r[2],b:r[3],a:r[4]}:(r=wl.hsl.exec(e),r?{h:r[1],s:r[2],l:r[3]}:(r=wl.hsla.exec(e),r?{h:r[1],s:r[2],l:r[3],a:r[4]}:(r=wl.hsv.exec(e),r?{h:r[1],s:r[2],v:r[3]}:(r=wl.hsva.exec(e),r?{h:r[1],s:r[2],v:r[3],a:r[4]}:(r=wl.hex8.exec(e),r?{r:Wo(r[1]),g:Wo(r[2]),b:Wo(r[3]),a:H5(r[4]),format:t?"name":"hex8"}:(r=wl.hex6.exec(e),r?{r:Wo(r[1]),g:Wo(r[2]),b:Wo(r[3]),format:t?"name":"hex"}:(r=wl.hex4.exec(e),r?{r:Wo(r[1]+r[1]),g:Wo(r[2]+r[2]),b:Wo(r[3]+r[3]),a:H5(r[4]+r[4]),format:t?"name":"hex8"}:(r=wl.hex3.exec(e),r?{r:Wo(r[1]+r[1]),g:Wo(r[2]+r[2]),b:Wo(r[3]+r[3]),format:t?"name":"hex"}:!1)))))))))}function ic(e){return Boolean(wl.CSS_UNIT.exec(String(e)))}var Ib=function(){function e(t,r){t===void 0&&(t=""),r===void 0&&(r={});var i;if(t instanceof e)return t;typeof t=="number"&&(t=cre(t)),this.originalInput=t;var s=fre(t);this.originalInput=t,this.r=s.r,this.g=s.g,this.b=s.b,this.a=s.a,this.roundA=Math.round(100*this.a)/100,this.format=(i=r.format)!==null&&i!==void 0?i:s.format,this.gradientType=r.gradientType,this.r<1&&(this.r=Math.round(this.r)),this.g<1&&(this.g=Math.round(this.g)),this.b<1&&(this.b=Math.round(this.b)),this.isValid=s.ok}return e.prototype.isDark=function(){return this.getBrightness()<128},e.prototype.isLight=function(){return!this.isDark()},e.prototype.getBrightness=function(){var t=this.toRgb();return(t.r*299+t.g*587+t.b*114)/1e3},e.prototype.getLuminance=function(){var t=this.toRgb(),r,i,s,c=t.r/255,u=t.g/255,h=t.b/255;return c<=.03928?r=c/12.92:r=Math.pow((c+.055)/1.055,2.4),u<=.03928?i=u/12.92:i=Math.pow((u+.055)/1.055,2.4),h<=.03928?s=h/12.92:s=Math.pow((h+.055)/1.055,2.4),.2126*r+.7152*i+.0722*s},e.prototype.getAlpha=function(){return this.a},e.prototype.setAlpha=function(t){return this.a=p6(t),this.roundA=Math.round(100*this.a)/100,this},e.prototype.toHsv=function(){var t=$5(this.r,this.g,this.b);return{h:t.h*360,s:t.s,v:t.v,a:this.a}},e.prototype.toHsvString=function(){var t=$5(this.r,this.g,this.b),r=Math.round(t.h*360),i=Math.round(t.s*100),s=Math.round(t.v*100);return this.a===1?"hsv(".concat(r,", ").concat(i,"%, ").concat(s,"%)"):"hsva(".concat(r,", ").concat(i,"%, ").concat(s,"%, ").concat(this.roundA,")")},e.prototype.toHsl=function(){var t=j5(this.r,this.g,this.b);return{h:t.h*360,s:t.s,l:t.l,a:this.a}},e.prototype.toHslString=function(){var t=j5(this.r,this.g,this.b),r=Math.round(t.h*360),i=Math.round(t.s*100),s=Math.round(t.l*100);return this.a===1?"hsl(".concat(r,", ").concat(i,"%, ").concat(s,"%)"):"hsla(".concat(r,", ").concat(i,"%, ").concat(s,"%, ").concat(this.roundA,")")},e.prototype.toHex=function(t){return t===void 0&&(t=!1),V5(this.r,this.g,this.b,t)},e.prototype.toHexString=function(t){return t===void 0&&(t=!1),"#"+this.toHex(t)},e.prototype.toHex8=function(t){return t===void 0&&(t=!1),lre(this.r,this.g,this.b,this.a,t)},e.prototype.toHex8String=function(t){return t===void 0&&(t=!1),"#"+this.toHex8(t)},e.prototype.toRgb=function(){return{r:Math.round(this.r),g:Math.round(this.g),b:Math.round(this.b),a:this.a}},e.prototype.toRgbString=function(){var t=Math.round(this.r),r=Math.round(this.g),i=Math.round(this.b);return this.a===1?"rgb(".concat(t,", ").concat(r,", ").concat(i,")"):"rgba(".concat(t,", ").concat(r,", ").concat(i,", ").concat(this.roundA,")")},e.prototype.toPercentageRgb=function(){var t=function(r){return"".concat(Math.round(ui(r,255)*100),"%")};return{r:t(this.r),g:t(this.g),b:t(this.b),a:this.a}},e.prototype.toPercentageRgbString=function(){var t=function(r){return Math.round(ui(r,255)*100)};return this.a===1?"rgb(".concat(t(this.r),"%, ").concat(t(this.g),"%, ").concat(t(this.b),"%)"):"rgba(".concat(t(this.r),"%, ").concat(t(this.g),"%, ").concat(t(this.b),"%, ").concat(this.roundA,")")},e.prototype.toName=function(){if(this.a===0)return"transparent";if(this.a<1)return!1;for(var t="#"+V5(this.r,this.g,this.b,!1),r=0,i=Object.entries(OA);r<i.length;r++){var s=i[r],c=s[0],u=s[1];if(t===u)return c}return!1},e.prototype.toString=function(t){var r=Boolean(t);t=t??this.format;var i=!1,s=this.a<1&&this.a>=0,c=!r&&s&&(t.startsWith("hex")||t==="name");return c?t==="name"&&this.a===0?this.toName():this.toRgbString():(t==="rgb"&&(i=this.toRgbString()),t==="prgb"&&(i=this.toPercentageRgbString()),(t==="hex"||t==="hex6")&&(i=this.toHexString()),t==="hex3"&&(i=this.toHexString(!0)),t==="hex4"&&(i=this.toHex8String(!0)),t==="hex8"&&(i=this.toHex8String()),t==="name"&&(i=this.toName()),t==="hsl"&&(i=this.toHslString()),t==="hsv"&&(i=this.toHsvString()),i||this.toHexString())},e.prototype.toNumber=function(){return(Math.round(this.r)<<16)+(Math.round(this.g)<<8)+Math.round(this.b)},e.prototype.clone=function(){return new e(this.toString())},e.prototype.lighten=function(t){t===void 0&&(t=10);var r=this.toHsl();return r.l+=t/100,r.l=sx(r.l),new e(r)},e.prototype.brighten=function(t){t===void 0&&(t=10);var r=this.toRgb();return r.r=Math.max(0,Math.min(255,r.r-Math.round(255*-(t/100)))),r.g=Math.max(0,Math.min(255,r.g-Math.round(255*-(t/100)))),r.b=Math.max(0,Math.min(255,r.b-Math.round(255*-(t/100)))),new e(r)},e.prototype.darken=function(t){t===void 0&&(t=10);var r=this.toHsl();return r.l-=t/100,r.l=sx(r.l),new e(r)},e.prototype.tint=function(t){return t===void 0&&(t=10),this.mix("white",t)},e.prototype.shade=function(t){return t===void 0&&(t=10),this.mix("black",t)},e.prototype.desaturate=function(t){t===void 0&&(t=10);var r=this.toHsl();return r.s-=t/100,r.s=sx(r.s),new e(r)},e.prototype.saturate=function(t){t===void 0&&(t=10);var r=this.toHsl();return r.s+=t/100,r.s=sx(r.s),new e(r)},e.prototype.greyscale=function(){return this.desaturate(100)},e.prototype.spin=function(t){var r=this.toHsl(),i=(r.h+t)%360;return r.h=i<0?360+i:i,new e(r)},e.prototype.mix=function(t,r){r===void 0&&(r=50);var i=this.toRgb(),s=new e(t).toRgb(),c=r/100,u={r:(s.r-i.r)*c+i.r,g:(s.g-i.g)*c+i.g,b:(s.b-i.b)*c+i.b,a:(s.a-i.a)*c+i.a};return new e(u)},e.prototype.analogous=function(t,r){t===void 0&&(t=6),r===void 0&&(r=30);var i=this.toHsl(),s=360/r,c=[this];for(i.h=(i.h-(s*t>>1)+720)%360;--t;)i.h=(i.h+s)%360,c.push(new e(i));return c},e.prototype.complement=function(){var t=this.toHsl();return t.h=(t.h+180)%360,new e(t)},e.prototype.monochromatic=function(t){t===void 0&&(t=6);for(var r=this.toHsv(),i=r.h,s=r.s,c=r.v,u=[],h=1/t;t--;)u.push(new e({h:i,s,v:c})),c=(c+h)%1;return u},e.prototype.splitcomplement=function(){var t=this.toHsl(),r=t.h;return[this,new e({h:(r+72)%360,s:t.s,l:t.l}),new e({h:(r+216)%360,s:t.s,l:t.l})]},e.prototype.onBackground=function(t){var r=this.toRgb(),i=new e(t).toRgb();return new e({r:i.r+(r.r-i.r)*r.a,g:i.g+(r.g-i.g)*r.a,b:i.b+(r.b-i.b)*r.a})},e.prototype.triad=function(){return this.polyad(3)},e.prototype.tetrad=function(){return this.polyad(4)},e.prototype.polyad=function(t){for(var r=this.toHsl(),i=r.h,s=[this],c=360/t,u=1;u<t;u++)s.push(new e({h:(i+u*c)%360,s:r.s,l:r.l}));return s},e.prototype.equals=function(t){return this.toRgbString()===new e(t).toRgbString()},e}();function h6(e){if(e===void 0&&(e={}),e.count!==void 0&&e.count!==null){var t=e.count,r=[];for(e.count=void 0;t>r.length;)e.count=null,e.seed&&(e.seed+=1),r.push(h6(e));return e.count=t,r}var i=mre(e.hue,e.seed),s=vre(i,e),c=gre(i,s,e),u={h:i,s,v:c};return e.alpha!==void 0&&(u.a=e.alpha),new Ib(u)}function mre(e,t){var r=bre(e),i=pw(r,t);return i<0&&(i=360+i),i}function vre(e,t){if(t.hue==="monochrome")return 0;if(t.luminosity==="random")return pw([0,100],t.seed);var r=m6(e).saturationRange,i=r[0],s=r[1];switch(t.luminosity){case"bright":i=55;break;case"dark":i=s-10;break;case"light":s=55;break}return pw([i,s],t.seed)}function gre(e,t,r){var i=yre(e,t),s=100;switch(r.luminosity){case"dark":s=i+20;break;case"light":i=(s+i)/2;break;case"random":i=0,s=100;break}return pw([i,s],r.seed)}function yre(e,t){for(var r=m6(e).lowerBounds,i=0;i<r.length-1;i++){var s=r[i][0],c=r[i][1],u=r[i+1][0],h=r[i+1][1];if(t>=s&&t<=u){var m=(h-c)/(u-s),v=c-m*s;return m*t+v}}return 0}function bre(e){var t=parseInt(e,10);if(!Number.isNaN(t)&&t<360&&t>0)return[t,t];if(typeof e=="string"){var r=g6.find(function(u){return u.name===e});if(r){var i=v6(r);if(i.hueRange)return i.hueRange}var s=new Ib(e);if(s.isValid){var c=s.toHsv().h;return[c,c]}}return[0,360]}function m6(e){e>=334&&e<=360&&(e-=360);for(var t=0,r=g6;t<r.length;t++){var i=r[t],s=v6(i);if(s.hueRange&&e>=s.hueRange[0]&&e<=s.hueRange[1])return s}throw Error("Color not found")}function pw(e,t){if(t===void 0)return Math.floor(e[0]+Math.random()*(e[1]+1-e[0]));var r=e[1]||1,i=e[0]||0;t=(t*9301+49297)%233280;var s=t/233280;return Math.floor(i+s*(r-i))}function v6(e){var t=e.lowerBounds[0][0],r=e.lowerBounds[e.lowerBounds.length-1][0],i=e.lowerBounds[e.lowerBounds.length-1][1],s=e.lowerBounds[0][1];return{name:e.name,hueRange:e.hueRange,lowerBounds:e.lowerBounds,saturationRange:[t,r],brightnessRange:[i,s]}}var g6=[{name:"monochrome",hueRange:null,lowerBounds:[[0,0],[100,0]]},{name:"red",hueRange:[-26,18],lowerBounds:[[20,100],[30,92],[40,89],[50,85],[60,78],[70,70],[80,60],[90,55],[100,50]]},{name:"orange",hueRange:[19,46],lowerBounds:[[20,100],[30,93],[40,88],[50,86],[60,85],[70,70],[100,70]]},{name:"yellow",hueRange:[47,62],lowerBounds:[[25,100],[40,94],[50,89],[60,86],[70,84],[80,82],[90,80],[100,75]]},{name:"green",hueRange:[63,178],lowerBounds:[[30,100],[40,90],[50,85],[60,81],[70,74],[80,64],[90,50],[100,40]]},{name:"blue",hueRange:[179,257],lowerBounds:[[20,100],[30,86],[40,80],[50,74],[60,60],[70,52],[80,44],[90,39],[100,35]]},{name:"purple",hueRange:[258,282],lowerBounds:[[20,100],[30,87],[40,79],[50,70],[60,65],[70,59],[80,52],[90,45],[100,42]]},{name:"pink",hueRange:[283,334],lowerBounds:[[20,100],[30,90],[40,86],[60,84],[80,80],[90,75],[100,73]]}];function Sre(e,t,r,i,s){for(t=t.split?t.split("."):t,i=0;i<t.length;i++)e=e?e[t[i]]:s;return e===s?r:e}var xre=e=>Object.keys(e).length===0,Oa=(e,t,r)=>{const i=Sre(e,`colors.${t}`,t),{isValid:s}=new Ib(i);return s?i:r},wre=e=>t=>{const r=Oa(t,e);return new Ib(r).isDark()?"dark":"light"},Cre=e=>t=>wre(e)(t)==="dark",Qm=(e,t)=>r=>{const i=Oa(r,e);return new Ib(i).setAlpha(t).toRgbString()};function W5(e="1rem",t="rgba(255, 255, 255, 0.15)"){return{backgroundImage:`linear-gradient(
|
|
45deg,
|
|
${t} 25%,
|
|
transparent 25%,
|
|
transparent 50%,
|
|
${t} 50%,
|
|
${t} 75%,
|
|
transparent 75%,
|
|
transparent
|
|
)`,backgroundSize:`${e} ${e}`}}function _re(e){const t=h6().toHexString();return!e||xre(e)?t:e.string&&e.colors?Tre(e.string,e.colors):e.string&&!e.colors?Ere(e.string):e.colors&&!e.string?Nre(e.colors):t}function Ere(e){let t=0;if(e.length===0)return t.toString();for(let i=0;i<e.length;i+=1)t=e.charCodeAt(i)+((t<<5)-t),t=t&t;let r="#";for(let i=0;i<3;i+=1)r+=`00${(t>>i*8&255).toString(16)}`.substr(-2);return r}function Tre(e,t){let r=0;if(e.length===0)return t[0];for(let i=0;i<e.length;i+=1)r=e.charCodeAt(i)+((r<<5)-r),r=r&r;return r=(r%t.length+t.length)%t.length,t[r]}function Nre(e){return e[Math.floor(Math.random()*e.length)]}function ze(e,t){return r=>r.colorMode==="dark"?t:e}function Rk(e){const{orientation:t,vertical:r,horizontal:i}=e;return t?t==="vertical"?r:i:{}}function Rre(e){const t=typeof e;return e!=null&&(t==="object"||t==="function")&&!Array.isArray(e)}function y6(e){return Rre(e)&&e.reference?e.reference:String(e)}var oC=(e,...t)=>t.map(y6).join(` ${e} `).replace(/calc/g,""),G5=(...e)=>`calc(${oC("+",...e)})`,Y5=(...e)=>`calc(${oC("-",...e)})`,AA=(...e)=>`calc(${oC("*",...e)})`,q5=(...e)=>`calc(${oC("/",...e)})`,K5=e=>{const t=y6(e);return t!=null&&!Number.isNaN(parseFloat(t))?String(t).startsWith("-")?String(t).slice(1):`-${t}`:AA(t,-1)},uc=Object.assign(e=>({add:(...t)=>uc(G5(e,...t)),subtract:(...t)=>uc(Y5(e,...t)),multiply:(...t)=>uc(AA(e,...t)),divide:(...t)=>uc(q5(e,...t)),negate:()=>uc(K5(e)),toString:()=>e.toString()}),{add:G5,subtract:Y5,multiply:AA,divide:q5,negate:K5});function Ore(e){return!Number.isInteger(parseFloat(e.toString()))}function Are(e,t="-"){return e.replace(/\s+/g,t)}function b6(e){const t=Are(e.toString());return t.includes("\\.")?e:Ore(e)?t.replace(".","\\."):e}function kre(e,t=""){return[t,b6(e)].filter(Boolean).join("-")}function Dre(e,t){return`var(${b6(e)}${t?`, ${t}`:""})`}function Pre(e,t=""){return`--${kre(e,t)}`}function xo(e,t){const r=Pre(e,t?.prefix);return{variable:r,reference:Dre(r,Mre(t?.fallback))}}function Mre(e){return typeof e=="string"?e:e?.reference}var{definePartsStyle:Ire,defineMultiStyleConfig:Lre}=Ar(Pne.keys),Fre={borderTopWidth:"1px",borderColor:"inherit",_last:{borderBottomWidth:"1px"}},zre={transitionProperty:"common",transitionDuration:"normal",fontSize:"md",_focusVisible:{boxShadow:"outline"},_hover:{bg:"blackAlpha.50"},_disabled:{opacity:.4,cursor:"not-allowed"},px:"4",py:"2"},Bre={pt:"2",px:"4",pb:"5"},Ure={fontSize:"1.25em"},jre=Ire({container:Fre,button:zre,panel:Bre,icon:Ure}),$re=Lre({baseStyle:jre}),{definePartsStyle:Lb,defineMultiStyleConfig:Vre}=Ar(Mne.keys),hc=Wf("alert-fg"),Fb=Wf("alert-bg"),Hre=Lb({container:{bg:Fb.reference,px:"4",py:"3"},title:{fontWeight:"bold",lineHeight:"6",marginEnd:"2"},description:{lineHeight:"6"},icon:{color:hc.reference,flexShrink:0,marginEnd:"3",w:"5",h:"6"},spinner:{color:hc.reference,flexShrink:0,marginEnd:"3",w:"5",h:"5"}});function Ok(e){const{theme:t,colorScheme:r}=e,i=Oa(t,`${r}.100`,r),s=Qm(`${r}.200`,.16)(t);return ze(i,s)(e)}var Wre=Lb(e=>{const{colorScheme:t}=e,r=ze(`${t}.500`,`${t}.200`)(e);return{container:{[Fb.variable]:Ok(e),[hc.variable]:`colors.${r}`}}}),Gre=Lb(e=>{const{colorScheme:t}=e,r=ze(`${t}.500`,`${t}.200`)(e);return{container:{[Fb.variable]:Ok(e),[hc.variable]:`colors.${r}`,paddingStart:"3",borderStartWidth:"4px",borderStartColor:hc.reference}}}),Yre=Lb(e=>{const{colorScheme:t}=e,r=ze(`${t}.500`,`${t}.200`)(e);return{container:{[Fb.variable]:Ok(e),[hc.variable]:`colors.${r}`,pt:"2",borderTopWidth:"4px",borderTopColor:hc.reference}}}),qre=Lb(e=>{const{colorScheme:t}=e,r=ze(`${t}.500`,`${t}.200`)(e),i=ze("white","gray.900")(e);return{container:{[Fb.variable]:`colors.${r}`,[hc.variable]:`colors.${i}`,color:hc.reference}}}),Kre={subtle:Wre,"left-accent":Gre,"top-accent":Yre,solid:qre},Xre=Vre({baseStyle:Hre,variants:Kre,defaultProps:{variant:"subtle",colorScheme:"blue"}}),S6={px:"1px",.5:"0.125rem",1:"0.25rem",1.5:"0.375rem",2:"0.5rem",2.5:"0.625rem",3:"0.75rem",3.5:"0.875rem",4:"1rem",5:"1.25rem",6:"1.5rem",7:"1.75rem",8:"2rem",9:"2.25rem",10:"2.5rem",12:"3rem",14:"3.5rem",16:"4rem",20:"5rem",24:"6rem",28:"7rem",32:"8rem",36:"9rem",40:"10rem",44:"11rem",48:"12rem",52:"13rem",56:"14rem",60:"15rem",64:"16rem",72:"18rem",80:"20rem",96:"24rem"},Zre={max:"max-content",min:"min-content",full:"100%","3xs":"14rem","2xs":"16rem",xs:"20rem",sm:"24rem",md:"28rem",lg:"32rem",xl:"36rem","2xl":"42rem","3xl":"48rem","4xl":"56rem","5xl":"64rem","6xl":"72rem","7xl":"80rem","8xl":"90rem",prose:"60ch"},Qre={sm:"640px",md:"768px",lg:"1024px",xl:"1280px"},Jre={...S6,...Zre,container:Qre},x6=Jre,eae=e=>typeof e=="function";function Kr(e,...t){return eae(e)?e(...t):e}var{definePartsStyle:w6,defineMultiStyleConfig:tae}=Ar(Ine.keys),nae=e=>({borderRadius:"full",border:"0.2em solid",borderColor:ze("white","gray.800")(e)}),rae=e=>({bg:ze("gray.200","whiteAlpha.400")(e)}),aae=e=>{const{name:t,theme:r}=e,i=t?_re({string:t}):"gray.400",s=Cre(i)(r);let c="white";s||(c="gray.800");const u=ze("white","gray.800")(e);return{bg:i,color:c,borderColor:u,verticalAlign:"top"}},iae=w6(e=>({badge:Kr(nae,e),excessLabel:Kr(rae,e),container:Kr(aae,e)}));function Sf(e){const t=e!=="100%"?x6[e]:void 0;return w6({container:{width:e,height:e,fontSize:`calc(${t??e} / 2.5)`},excessLabel:{width:e,height:e},label:{fontSize:`calc(${t??e} / 2.5)`,lineHeight:e!=="100%"?t??e:void 0}})}var oae={"2xs":Sf(4),xs:Sf(6),sm:Sf(8),md:Sf(12),lg:Sf(16),xl:Sf(24),"2xl":Sf(32),full:Sf("100%")},sae=tae({baseStyle:iae,sizes:oae,defaultProps:{size:"md"}}),lae={px:1,textTransform:"uppercase",fontSize:"xs",borderRadius:"sm",fontWeight:"bold"},uae=e=>{const{colorScheme:t,theme:r}=e,i=Qm(`${t}.500`,.6)(r);return{bg:ze(`${t}.500`,i)(e),color:ze("white","whiteAlpha.800")(e)}},cae=e=>{const{colorScheme:t,theme:r}=e,i=Qm(`${t}.200`,.16)(r);return{bg:ze(`${t}.100`,i)(e),color:ze(`${t}.800`,`${t}.200`)(e)}},fae=e=>{const{colorScheme:t,theme:r}=e,i=Qm(`${t}.200`,.8)(r),s=Oa(r,`${t}.500`),c=ze(s,i)(e);return{color:c,boxShadow:`inset 0 0 0px 1px ${c}`}},dae={solid:uae,subtle:cae,outline:fae},Hy={baseStyle:lae,variants:dae,defaultProps:{variant:"subtle",colorScheme:"gray"}},{defineMultiStyleConfig:pae,definePartsStyle:hae}=Ar(Lne.keys),mae={transitionProperty:"common",transitionDuration:"fast",transitionTimingFunction:"ease-out",cursor:"pointer",textDecoration:"none",outline:"none",color:"inherit",_hover:{textDecoration:"underline"},_focusVisible:{boxShadow:"outline"}},vae=hae({link:mae}),gae=pae({baseStyle:vae}),yae={lineHeight:"1.2",borderRadius:"md",fontWeight:"semibold",transitionProperty:"common",transitionDuration:"normal",_focusVisible:{boxShadow:"outline"},_disabled:{opacity:.4,cursor:"not-allowed",boxShadow:"none"},_hover:{_disabled:{bg:"initial"}}},C6=e=>{const{colorScheme:t,theme:r}=e;if(t==="gray")return{color:ze("inherit","whiteAlpha.900")(e),_hover:{bg:ze("gray.100","whiteAlpha.200")(e)},_active:{bg:ze("gray.200","whiteAlpha.300")(e)}};const i=Qm(`${t}.200`,.12)(r),s=Qm(`${t}.200`,.24)(r);return{color:ze(`${t}.600`,`${t}.200`)(e),bg:"transparent",_hover:{bg:ze(`${t}.50`,i)(e)},_active:{bg:ze(`${t}.100`,s)(e)}}},bae=e=>{const{colorScheme:t}=e,r=ze("gray.200","whiteAlpha.300")(e);return{border:"1px solid",borderColor:t==="gray"?r:"currentColor",".chakra-button__group[data-attached] > &:not(:last-of-type)":{marginEnd:"-1px"},...Kr(C6,e)}},Sae={yellow:{bg:"yellow.400",color:"black",hoverBg:"yellow.500",activeBg:"yellow.600"},cyan:{bg:"cyan.400",color:"black",hoverBg:"cyan.500",activeBg:"cyan.600"}},xae=e=>{const{colorScheme:t}=e;if(t==="gray"){const h=ze("gray.100","whiteAlpha.200")(e);return{bg:h,_hover:{bg:ze("gray.200","whiteAlpha.300")(e),_disabled:{bg:h}},_active:{bg:ze("gray.300","whiteAlpha.400")(e)}}}const{bg:r=`${t}.500`,color:i="white",hoverBg:s=`${t}.600`,activeBg:c=`${t}.700`}=Sae[t]??{},u=ze(r,`${t}.200`)(e);return{bg:u,color:ze(i,"gray.800")(e),_hover:{bg:ze(s,`${t}.300`)(e),_disabled:{bg:u}},_active:{bg:ze(c,`${t}.400`)(e)}}},wae=e=>{const{colorScheme:t}=e;return{padding:0,height:"auto",lineHeight:"normal",verticalAlign:"baseline",color:ze(`${t}.500`,`${t}.200`)(e),_hover:{textDecoration:"underline",_disabled:{textDecoration:"none"}},_active:{color:ze(`${t}.700`,`${t}.500`)(e)}}},Cae={bg:"none",color:"inherit",display:"inline",lineHeight:"inherit",m:"0",p:"0"},_ae={ghost:C6,outline:bae,solid:xae,link:wae,unstyled:Cae},Eae={lg:{h:"12",minW:"12",fontSize:"lg",px:"6"},md:{h:"10",minW:"10",fontSize:"md",px:"4"},sm:{h:"8",minW:"8",fontSize:"sm",px:"3"},xs:{h:"6",minW:"6",fontSize:"xs",px:"2"}},Tae={baseStyle:yae,variants:_ae,sizes:Eae,defaultProps:{variant:"solid",size:"md",colorScheme:"gray"}},{definePartsStyle:kx,defineMultiStyleConfig:Nae}=Ar(Fne.keys),Wy=Wf("checkbox-size"),Rae=e=>{const{colorScheme:t}=e;return{w:Wy.reference,h:Wy.reference,transitionProperty:"box-shadow",transitionDuration:"normal",border:"2px solid",borderRadius:"sm",borderColor:"inherit",color:"white",_checked:{bg:ze(`${t}.500`,`${t}.200`)(e),borderColor:ze(`${t}.500`,`${t}.200`)(e),color:ze("white","gray.900")(e),_hover:{bg:ze(`${t}.600`,`${t}.300`)(e),borderColor:ze(`${t}.600`,`${t}.300`)(e)},_disabled:{borderColor:ze("gray.200","transparent")(e),bg:ze("gray.200","whiteAlpha.300")(e),color:ze("gray.500","whiteAlpha.500")(e)}},_indeterminate:{bg:ze(`${t}.500`,`${t}.200`)(e),borderColor:ze(`${t}.500`,`${t}.200`)(e),color:ze("white","gray.900")(e)},_disabled:{bg:ze("gray.100","whiteAlpha.100")(e),borderColor:ze("gray.100","transparent")(e)},_focusVisible:{boxShadow:"outline"},_invalid:{borderColor:ze("red.500","red.300")(e)}}},Oae={_disabled:{cursor:"not-allowed"}},Aae={userSelect:"none",_disabled:{opacity:.4}},kae={transitionProperty:"transform",transitionDuration:"normal"},Dae=kx(e=>({icon:kae,container:Oae,control:Kr(Rae,e),label:Aae})),Pae={sm:kx({control:{[Wy.variable]:"sizes.3"},label:{fontSize:"sm"},icon:{fontSize:"3xs"}}),md:kx({control:{[Wy.variable]:"sizes.4"},label:{fontSize:"md"},icon:{fontSize:"2xs"}}),lg:kx({control:{[Wy.variable]:"sizes.5"},label:{fontSize:"lg"},icon:{fontSize:"2xs"}})},hw=Nae({baseStyle:Dae,sizes:Pae,defaultProps:{size:"md",colorScheme:"blue"}}),Gy=xo("close-button-size"),Mae=e=>{const t=ze("blackAlpha.100","whiteAlpha.100")(e),r=ze("blackAlpha.200","whiteAlpha.200")(e);return{w:[Gy.reference],h:[Gy.reference],borderRadius:"md",transitionProperty:"common",transitionDuration:"normal",_disabled:{opacity:.4,cursor:"not-allowed",boxShadow:"none"},_hover:{bg:t},_active:{bg:r},_focusVisible:{boxShadow:"outline"}}},Iae={lg:{[Gy.variable]:"sizes.10",fontSize:"md"},md:{[Gy.variable]:"sizes.8",fontSize:"xs"},sm:{[Gy.variable]:"sizes.6",fontSize:"2xs"}},Lae={baseStyle:Mae,sizes:Iae,defaultProps:{size:"md"}},{variants:Fae,defaultProps:zae}=Hy,Bae={fontFamily:"mono",fontSize:"sm",px:"0.2em",borderRadius:"sm"},Uae={baseStyle:Bae,variants:Fae,defaultProps:zae},jae={w:"100%",mx:"auto",maxW:"prose",px:"4"},$ae={baseStyle:jae},Vae={opacity:.6,borderColor:"inherit"},Hae={borderStyle:"solid"},Wae={borderStyle:"dashed"},Gae={solid:Hae,dashed:Wae},Yae={baseStyle:Vae,variants:Gae,defaultProps:{variant:"solid"}},{definePartsStyle:kA,defineMultiStyleConfig:qae}=Ar(zne.keys);function Em(e){return kA(e==="full"?{dialog:{maxW:"100vw",h:"100vh"}}:{dialog:{maxW:e}})}var Kae={bg:"blackAlpha.600",zIndex:"overlay"},Xae={display:"flex",zIndex:"modal",justifyContent:"center"},Zae=e=>{const{isFullHeight:t}=e;return{...t&&{height:"100vh"},zIndex:"modal",maxH:"100vh",bg:ze("white","gray.700")(e),color:"inherit",boxShadow:ze("lg","dark-lg")(e)}},Qae={px:"6",py:"4",fontSize:"xl",fontWeight:"semibold"},Jae={position:"absolute",top:"2",insetEnd:"3"},eie={px:"6",py:"2",flex:"1",overflow:"auto"},tie={px:"6",py:"4"},nie=kA(e=>({overlay:Kae,dialogContainer:Xae,dialog:Kr(Zae,e),header:Qae,closeButton:Jae,body:eie,footer:tie})),rie={xs:Em("xs"),sm:Em("md"),md:Em("lg"),lg:Em("2xl"),xl:Em("4xl"),full:Em("full")},aie=qae({baseStyle:nie,sizes:rie,defaultProps:{size:"xs"}}),{definePartsStyle:iie,defineMultiStyleConfig:oie}=Ar(Bne.keys),sie={borderRadius:"md",py:"1",transitionProperty:"common",transitionDuration:"normal"},lie={borderRadius:"md",py:"1",transitionProperty:"common",transitionDuration:"normal",width:"full",_focusVisible:{boxShadow:"outline"},_placeholder:{opacity:.6}},uie={borderRadius:"md",py:"1",transitionProperty:"common",transitionDuration:"normal",width:"full",_focusVisible:{boxShadow:"outline"},_placeholder:{opacity:.6}},cie=iie({preview:sie,input:lie,textarea:uie}),fie=oie({baseStyle:cie}),{definePartsStyle:die,defineMultiStyleConfig:pie}=Ar(Une.keys),hie=e=>({marginStart:"1",color:ze("red.500","red.300")(e)}),mie=e=>({mt:"2",color:ze("gray.600","whiteAlpha.600")(e),lineHeight:"normal",fontSize:"sm"}),vie=die(e=>({container:{width:"100%",position:"relative"},requiredIndicator:Kr(hie,e),helperText:Kr(mie,e)})),gie=pie({baseStyle:vie}),{definePartsStyle:yie,defineMultiStyleConfig:bie}=Ar(jne.keys),Sie=e=>({color:ze("red.500","red.300")(e),mt:"2",fontSize:"sm",lineHeight:"normal"}),xie=e=>({marginEnd:"0.5em",color:ze("red.500","red.300")(e)}),wie=yie(e=>({text:Kr(Sie,e),icon:Kr(xie,e)})),Cie=bie({baseStyle:wie}),_ie={fontSize:"md",marginEnd:"3",mb:"2",fontWeight:"medium",transitionProperty:"common",transitionDuration:"normal",opacity:1,_disabled:{opacity:.4}},Eie={baseStyle:_ie},Tie={fontFamily:"heading",fontWeight:"bold"},Nie={"4xl":{fontSize:["6xl",null,"7xl"],lineHeight:1},"3xl":{fontSize:["5xl",null,"6xl"],lineHeight:1},"2xl":{fontSize:["4xl",null,"5xl"],lineHeight:[1.2,null,1]},xl:{fontSize:["3xl",null,"4xl"],lineHeight:[1.33,null,1.2]},lg:{fontSize:["2xl",null,"3xl"],lineHeight:[1.33,null,1.2]},md:{fontSize:"xl",lineHeight:1.2},sm:{fontSize:"md",lineHeight:1.2},xs:{fontSize:"sm",lineHeight:1.2}},Rie={baseStyle:Tie,sizes:Nie,defaultProps:{size:"xl"}},{definePartsStyle:cc,defineMultiStyleConfig:Oie}=Ar($ne.keys),Aie=cc({field:{width:"100%",minWidth:0,outline:0,position:"relative",appearance:"none",transitionProperty:"common",transitionDuration:"normal",_disabled:{opacity:.4,cursor:"not-allowed"}}}),xf={lg:{fontSize:"lg",px:"4",h:"12",borderRadius:"md"},md:{fontSize:"md",px:"4",h:"10",borderRadius:"md"},sm:{fontSize:"sm",px:"3",h:"8",borderRadius:"sm"},xs:{fontSize:"xs",px:"2",h:"6",borderRadius:"sm"}},kie={lg:cc({field:xf.lg,addon:xf.lg}),md:cc({field:xf.md,addon:xf.md}),sm:cc({field:xf.sm,addon:xf.sm}),xs:cc({field:xf.xs,addon:xf.xs})};function Ak(e){const{focusBorderColor:t,errorBorderColor:r}=e;return{focusBorderColor:t||ze("blue.500","blue.300")(e),errorBorderColor:r||ze("red.500","red.300")(e)}}var Die=cc(e=>{const{theme:t}=e,{focusBorderColor:r,errorBorderColor:i}=Ak(e);return{field:{border:"1px solid",borderColor:"inherit",bg:"inherit",_hover:{borderColor:ze("gray.300","whiteAlpha.400")(e)},_readOnly:{boxShadow:"none !important",userSelect:"all"},_invalid:{borderColor:Oa(t,i),boxShadow:`0 0 0 1px ${Oa(t,i)}`},_focusVisible:{zIndex:1,borderColor:Oa(t,r),boxShadow:`0 0 0 1px ${Oa(t,r)}`}},addon:{border:"1px solid",borderColor:ze("inherit","whiteAlpha.50")(e),bg:ze("gray.100","whiteAlpha.300")(e)}}}),Pie=cc(e=>{const{theme:t}=e,{focusBorderColor:r,errorBorderColor:i}=Ak(e);return{field:{border:"2px solid",borderColor:"transparent",bg:ze("gray.100","whiteAlpha.50")(e),_hover:{bg:ze("gray.200","whiteAlpha.100")(e)},_readOnly:{boxShadow:"none !important",userSelect:"all"},_invalid:{borderColor:Oa(t,i)},_focusVisible:{bg:"transparent",borderColor:Oa(t,r)}},addon:{border:"2px solid",borderColor:"transparent",bg:ze("gray.100","whiteAlpha.50")(e)}}}),Mie=cc(e=>{const{theme:t}=e,{focusBorderColor:r,errorBorderColor:i}=Ak(e);return{field:{borderBottom:"1px solid",borderColor:"inherit",borderRadius:"0",px:"0",bg:"transparent",_readOnly:{boxShadow:"none !important",userSelect:"all"},_invalid:{borderColor:Oa(t,i),boxShadow:`0px 1px 0px 0px ${Oa(t,i)}`},_focusVisible:{borderColor:Oa(t,r),boxShadow:`0px 1px 0px 0px ${Oa(t,r)}`}},addon:{borderBottom:"2px solid",borderColor:"inherit",borderRadius:"0",px:"0",bg:"transparent"}}}),Iie=cc({field:{bg:"transparent",px:"0",height:"auto"},addon:{bg:"transparent",px:"0",height:"auto"}}),Lie={outline:Die,filled:Pie,flushed:Mie,unstyled:Iie},Jn=Oie({baseStyle:Aie,sizes:kie,variants:Lie,defaultProps:{size:"md",variant:"outline"}}),Fie=e=>({bg:ze("gray.100","whiteAlpha")(e),borderRadius:"md",borderWidth:"1px",borderBottomWidth:"3px",fontSize:"0.8em",fontWeight:"bold",lineHeight:"normal",px:"0.4em",whiteSpace:"nowrap"}),zie={baseStyle:Fie},Bie={transitionProperty:"common",transitionDuration:"fast",transitionTimingFunction:"ease-out",cursor:"pointer",textDecoration:"none",outline:"none",color:"inherit",_hover:{textDecoration:"underline"},_focusVisible:{boxShadow:"outline"}},Uie={baseStyle:Bie},{defineMultiStyleConfig:jie,definePartsStyle:$ie}=Ar(Vne.keys),Vie={marginEnd:"2",display:"inline",verticalAlign:"text-bottom"},Hie=$ie({icon:Vie}),Wie=jie({baseStyle:Hie}),{defineMultiStyleConfig:Gie,definePartsStyle:Yie}=Ar(Hne.keys),qie=e=>({bg:ze("#fff","gray.700")(e),boxShadow:ze("sm","dark-lg")(e),color:"inherit",minW:"3xs",py:"2",zIndex:1,borderRadius:"md",borderWidth:"1px"}),Kie=e=>({py:"1.5",px:"3",transitionProperty:"background",transitionDuration:"ultra-fast",transitionTimingFunction:"ease-in",_focus:{bg:ze("gray.100","whiteAlpha.100")(e)},_active:{bg:ze("gray.200","whiteAlpha.200")(e)},_expanded:{bg:ze("gray.100","whiteAlpha.100")(e)},_disabled:{opacity:.4,cursor:"not-allowed"}}),Xie={mx:4,my:2,fontWeight:"semibold",fontSize:"sm"},Zie={opacity:.6},Qie={border:0,borderBottom:"1px solid",borderColor:"inherit",my:"2",opacity:.6},Jie={transitionProperty:"common",transitionDuration:"normal"},eoe=Yie(e=>({button:Jie,list:Kr(qie,e),item:Kr(Kie,e),groupTitle:Xie,command:Zie,divider:Qie})),toe=Gie({baseStyle:eoe}),{defineMultiStyleConfig:noe,definePartsStyle:DA}=Ar(Wne.keys),roe={bg:"blackAlpha.600",zIndex:"modal"},aoe=e=>{const{isCentered:t,scrollBehavior:r}=e;return{display:"flex",zIndex:"modal",justifyContent:"center",alignItems:t?"center":"flex-start",overflow:r==="inside"?"hidden":"auto"}},ioe=e=>{const{scrollBehavior:t}=e;return{borderRadius:"md",bg:ze("white","gray.700")(e),color:"inherit",my:"16",zIndex:"modal",maxH:t==="inside"?"calc(100% - 7.5rem)":void 0,boxShadow:ze("lg","dark-lg")(e)}},ooe={px:"6",py:"4",fontSize:"xl",fontWeight:"semibold"},soe={position:"absolute",top:"2",insetEnd:"3"},loe=e=>{const{scrollBehavior:t}=e;return{px:"6",py:"2",flex:"1",overflow:t==="inside"?"auto":void 0}},uoe={px:"6",py:"4"},coe=DA(e=>({overlay:roe,dialogContainer:Kr(aoe,e),dialog:Kr(ioe,e),header:ooe,closeButton:soe,body:Kr(loe,e),footer:uoe}));function yl(e){return DA(e==="full"?{dialog:{maxW:"100vw",minH:"$100vh",my:"0",borderRadius:"0"}}:{dialog:{maxW:e}})}var foe={xs:yl("xs"),sm:yl("sm"),md:yl("md"),lg:yl("lg"),xl:yl("xl"),"2xl":yl("2xl"),"3xl":yl("3xl"),"4xl":yl("4xl"),"5xl":yl("5xl"),"6xl":yl("6xl"),full:yl("full")},doe=noe({baseStyle:coe,sizes:foe,defaultProps:{size:"md"}}),poe={letterSpacings:{tighter:"-0.05em",tight:"-0.025em",normal:"0",wide:"0.025em",wider:"0.05em",widest:"0.1em"},lineHeights:{normal:"normal",none:1,shorter:1.25,short:1.375,base:1.5,tall:1.625,taller:"2",3:".75rem",4:"1rem",5:"1.25rem",6:"1.5rem",7:"1.75rem",8:"2rem",9:"2.25rem",10:"2.5rem"},fontWeights:{hairline:100,thin:200,light:300,normal:400,medium:500,semibold:600,bold:700,extrabold:800,black:900},fonts:{heading:'-apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"',body:'-apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"',mono:'SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace'},fontSizes:{"3xs":"0.45rem","2xs":"0.625rem",xs:"0.75rem",sm:"0.875rem",md:"1rem",lg:"1.125rem",xl:"1.25rem","2xl":"1.5rem","3xl":"1.875rem","4xl":"2.25rem","5xl":"3rem","6xl":"3.75rem","7xl":"4.5rem","8xl":"6rem","9xl":"8rem"}},_6=poe,{defineMultiStyleConfig:hoe,definePartsStyle:E6}=Ar(Gne.keys),kk=xo("number-input-stepper-width"),T6=xo("number-input-input-padding"),moe=uc(kk).add("0.5rem").toString(),voe={[kk.variable]:"sizes.6",[T6.variable]:moe},goe=e=>{var t;return((t=Kr(Jn.baseStyle,e))==null?void 0:t.field)??{}},yoe={width:[kk.reference]},boe=e=>({borderStart:"1px solid",borderStartColor:ze("inherit","whiteAlpha.300")(e),color:ze("inherit","whiteAlpha.800")(e),_active:{bg:ze("gray.200","whiteAlpha.300")(e)},_disabled:{opacity:.4,cursor:"not-allowed"}}),Soe=E6(e=>({root:voe,field:goe,stepperGroup:yoe,stepper:Kr(boe,e)??{}}));function ux(e){var t,r;const i=(t=Jn.sizes)==null?void 0:t[e],s={lg:"md",md:"md",sm:"sm",xs:"sm"},c=((r=i.field)==null?void 0:r.fontSize)??"md",u=_6.fontSizes[c];return E6({field:{...i.field,paddingInlineEnd:T6.reference,verticalAlign:"top"},stepper:{fontSize:uc(u).multiply(.75).toString(),_first:{borderTopEndRadius:s[e]},_last:{borderBottomEndRadius:s[e],mt:"-1px",borderTopWidth:1}}})}var xoe={xs:ux("xs"),sm:ux("sm"),md:ux("md"),lg:ux("lg")},woe=hoe({baseStyle:Soe,sizes:xoe,variants:Jn.variants,defaultProps:Jn.defaultProps}),X5,Coe={...(X5=Jn.baseStyle)==null?void 0:X5.field,textAlign:"center"},_oe={lg:{fontSize:"lg",w:12,h:12,borderRadius:"md"},md:{fontSize:"md",w:10,h:10,borderRadius:"md"},sm:{fontSize:"sm",w:8,h:8,borderRadius:"sm"},xs:{fontSize:"xs",w:6,h:6,borderRadius:"sm"}},Z5,Eoe={outline:e=>{var t,r;return((r=Kr((t=Jn.variants)==null?void 0:t.outline,e))==null?void 0:r.field)??{}},flushed:e=>{var t,r;return((r=Kr((t=Jn.variants)==null?void 0:t.flushed,e))==null?void 0:r.field)??{}},filled:e=>{var t,r;return((r=Kr((t=Jn.variants)==null?void 0:t.filled,e))==null?void 0:r.field)??{}},unstyled:((Z5=Jn.variants)==null?void 0:Z5.unstyled.field)??{}},Toe={baseStyle:Coe,sizes:_oe,variants:Eoe,defaultProps:Jn.defaultProps},{defineMultiStyleConfig:Noe,definePartsStyle:Roe}=Ar(Yne.keys),fO=xo("popper-bg"),Ooe=xo("popper-arrow-bg"),Aoe=xo("popper-arrow-shadow-color"),koe={zIndex:10},Doe=e=>{const t=ze("white","gray.700")(e),r=ze("gray.200","whiteAlpha.300")(e);return{[fO.variable]:`colors.${t}`,bg:fO.reference,[Ooe.variable]:fO.reference,[Aoe.variable]:`colors.${r}`,width:"xs",border:"1px solid",borderColor:"inherit",borderRadius:"md",boxShadow:"sm",zIndex:"inherit",_focusVisible:{outline:0,boxShadow:"outline"}}},Poe={px:3,py:2,borderBottomWidth:"1px"},Moe={px:3,py:2},Ioe={px:3,py:2,borderTopWidth:"1px"},Loe={position:"absolute",borderRadius:"md",top:1,insetEnd:2,padding:2},Foe=Roe(e=>({popper:koe,content:Doe(e),header:Poe,body:Moe,footer:Ioe,closeButton:Loe})),zoe=Noe({baseStyle:Foe}),{defineMultiStyleConfig:Boe,definePartsStyle:ky}=Ar(qne.keys),Uoe=e=>{const{colorScheme:t,theme:r,isIndeterminate:i,hasStripe:s}=e,c=ze(W5(),W5("1rem","rgba(0,0,0,0.1)"))(e),u=ze(`${t}.500`,`${t}.200`)(e),h=`linear-gradient(
|
|
to right,
|
|
transparent 0%,
|
|
${Oa(r,u)} 50%,
|
|
transparent 100%
|
|
)`;return{...!i&&s&&c,...i?{bgImage:h}:{bgColor:u}}},joe={lineHeight:"1",fontSize:"0.25em",fontWeight:"bold",color:"white"},$oe=e=>({bg:ze("gray.100","whiteAlpha.300")(e)}),Voe=e=>({transitionProperty:"common",transitionDuration:"slow",...Uoe(e)}),Hoe=ky(e=>({label:joe,filledTrack:Voe(e),track:$oe(e)})),Woe={xs:ky({track:{h:"1"}}),sm:ky({track:{h:"2"}}),md:ky({track:{h:"3"}}),lg:ky({track:{h:"4"}})},Goe=Boe({sizes:Woe,baseStyle:Hoe,defaultProps:{size:"md",colorScheme:"blue"}}),{defineMultiStyleConfig:Yoe,definePartsStyle:Dx}=Ar(Kne.keys),qoe=e=>{var t;const r=(t=Kr(hw.baseStyle,e))==null?void 0:t.control;return{...r,borderRadius:"full",_checked:{...r?._checked,_before:{content:'""',display:"inline-block",pos:"relative",w:"50%",h:"50%",borderRadius:"50%",bg:"currentColor"}}}},Koe=Dx(e=>{var t,r,i,s;return{label:(r=(t=hw).baseStyle)==null?void 0:r.call(t,e).label,container:(s=(i=hw).baseStyle)==null?void 0:s.call(i,e).container,control:qoe(e)}}),Xoe={md:Dx({control:{w:"4",h:"4"},label:{fontSize:"md"}}),lg:Dx({control:{w:"5",h:"5"},label:{fontSize:"lg"}}),sm:Dx({control:{width:"3",height:"3"},label:{fontSize:"sm"}})},Zoe=Yoe({baseStyle:Koe,sizes:Xoe,defaultProps:{size:"md",colorScheme:"blue"}}),{defineMultiStyleConfig:Qoe,definePartsStyle:Joe}=Ar(Xne.keys),ese=e=>{var t;return{...(t=Jn.baseStyle)==null?void 0:t.field,bg:ze("white","gray.700")(e),appearance:"none",paddingBottom:"1px",lineHeight:"normal","> option, > optgroup":{bg:ze("white","gray.700")(e)}}},tse={width:"6",height:"100%",insetEnd:"2",position:"relative",color:"currentColor",fontSize:"xl",_disabled:{opacity:.5}},nse=Joe(e=>({field:ese(e),icon:tse})),cx={paddingInlineEnd:"8"},Q5,J5,e3,t3,n3,r3,a3,i3,rse={lg:{...(Q5=Jn.sizes)==null?void 0:Q5.lg,field:{...(J5=Jn.sizes)==null?void 0:J5.lg.field,...cx}},md:{...(e3=Jn.sizes)==null?void 0:e3.md,field:{...(t3=Jn.sizes)==null?void 0:t3.md.field,...cx}},sm:{...(n3=Jn.sizes)==null?void 0:n3.sm,field:{...(r3=Jn.sizes)==null?void 0:r3.sm.field,...cx}},xs:{...(a3=Jn.sizes)==null?void 0:a3.xs,field:{...(i3=Jn.sizes)==null?void 0:i3.sm.field,...cx},icon:{insetEnd:"1"}}},ase=Qoe({baseStyle:nse,sizes:rse,variants:Jn.variants,defaultProps:Jn.defaultProps}),ise=Wf("skeleton-start-color"),ose=Wf("skeleton-end-color"),sse=e=>{const t=ze("gray.100","gray.800")(e),r=ze("gray.400","gray.600")(e),{startColor:i=t,endColor:s=r,theme:c}=e,u=Oa(c,i),h=Oa(c,s);return{[ise.variable]:u,[ose.variable]:h,opacity:.7,borderRadius:"2px",borderColor:u,background:h}},lse={baseStyle:sse},use=e=>({borderRadius:"md",fontWeight:"semibold",_focusVisible:{boxShadow:"outline",padding:"4",position:"fixed",top:"6",insetStart:"6",bg:ze("white","gray.700")(e)}}),cse={baseStyle:use},{defineMultiStyleConfig:fse,definePartsStyle:sC}=Ar(Zne.keys),mb=Wf("slider-thumb-size"),vb=Wf("slider-track-size"),dse=e=>{const{orientation:t}=e;return{display:"inline-block",position:"relative",cursor:"pointer",_disabled:{opacity:.6,cursor:"default",pointerEvents:"none"},...Rk({orientation:t,vertical:{h:"100%"},horizontal:{w:"100%"}})}},pse=e=>({...Rk({orientation:e.orientation,horizontal:{h:vb.reference},vertical:{w:vb.reference}}),overflow:"hidden",borderRadius:"sm",bg:ze("gray.200","whiteAlpha.200")(e),_disabled:{bg:ze("gray.300","whiteAlpha.300")(e)}}),hse=e=>{const{orientation:t}=e;return{...Rk({orientation:t,vertical:{left:"50%",transform:"translateX(-50%)",_active:{transform:"translateX(-50%) scale(1.15)"}},horizontal:{top:"50%",transform:"translateY(-50%)",_active:{transform:"translateY(-50%) scale(1.15)"}}}),w:mb.reference,h:mb.reference,display:"flex",alignItems:"center",justifyContent:"center",position:"absolute",outline:0,zIndex:1,borderRadius:"full",bg:"white",boxShadow:"base",border:"1px solid",borderColor:"transparent",transitionProperty:"transform",transitionDuration:"normal",_focusVisible:{boxShadow:"outline"},_disabled:{bg:"gray.300"}}},mse=e=>{const{colorScheme:t}=e;return{width:"inherit",height:"inherit",bg:ze(`${t}.500`,`${t}.200`)(e)}},vse=sC(e=>({container:dse(e),track:pse(e),thumb:hse(e),filledTrack:mse(e)})),gse=sC({container:{[mb.variable]:"sizes.4",[vb.variable]:"sizes.1"}}),yse=sC({container:{[mb.variable]:"sizes.3.5",[vb.variable]:"sizes.1"}}),bse=sC({container:{[mb.variable]:"sizes.2.5",[vb.variable]:"sizes.0.5"}}),Sse={lg:gse,md:yse,sm:bse},xse=fse({baseStyle:vse,sizes:Sse,defaultProps:{size:"md",colorScheme:"blue"}}),_p=xo("spinner-size"),wse={width:[_p.reference],height:[_p.reference]},Cse={xs:{[_p.variable]:"sizes.3"},sm:{[_p.variable]:"sizes.4"},md:{[_p.variable]:"sizes.6"},lg:{[_p.variable]:"sizes.8"},xl:{[_p.variable]:"sizes.12"}},_se={baseStyle:wse,sizes:Cse,defaultProps:{size:"md"}},{defineMultiStyleConfig:Ese,definePartsStyle:N6}=Ar(Qne.keys),Tse={fontWeight:"medium"},Nse={opacity:.8,marginBottom:"2"},Rse={verticalAlign:"baseline",fontWeight:"semibold"},Ose={marginEnd:1,w:"3.5",h:"3.5",verticalAlign:"middle"},Ase=N6({container:{},label:Tse,helpText:Nse,number:Rse,icon:Ose}),kse={md:N6({label:{fontSize:"sm"},helpText:{fontSize:"sm"},number:{fontSize:"2xl"}})},Dse=Ese({baseStyle:Ase,sizes:kse,defaultProps:{size:"md"}}),{defineMultiStyleConfig:Pse,definePartsStyle:Px}=Ar(Jne.keys),Yy=xo("switch-track-width"),Pp=xo("switch-track-height"),dO=xo("switch-track-diff"),Mse=uc.subtract(Yy,Pp),PA=xo("switch-thumb-x"),Ise=e=>{const{colorScheme:t}=e;return{borderRadius:"full",p:"0.5",width:[Yy.reference],height:[Pp.reference],transitionProperty:"common",transitionDuration:"fast",bg:ze("gray.300","whiteAlpha.400")(e),_focusVisible:{boxShadow:"outline"},_disabled:{opacity:.4,cursor:"not-allowed"},_checked:{bg:ze(`${t}.500`,`${t}.200`)(e)}}},Lse={bg:"white",transitionProperty:"transform",transitionDuration:"normal",borderRadius:"inherit",width:[Pp.reference],height:[Pp.reference],_checked:{transform:`translateX(${PA.reference})`}},Fse=Px(e=>({container:{[dO.variable]:Mse,[PA.variable]:dO.reference,_rtl:{[PA.variable]:uc(dO).negate().toString()}},track:Ise(e),thumb:Lse})),zse={sm:Px({container:{[Yy.variable]:"1.375rem",[Pp.variable]:"sizes.3"}}),md:Px({container:{[Yy.variable]:"1.875rem",[Pp.variable]:"sizes.4"}}),lg:Px({container:{[Yy.variable]:"2.875rem",[Pp.variable]:"sizes.6"}})},Bse=Pse({baseStyle:Fse,sizes:zse,defaultProps:{size:"md",colorScheme:"blue"}}),{defineMultiStyleConfig:Use,definePartsStyle:Um}=Ar(ere.keys),jse=Um({table:{fontVariantNumeric:"lining-nums tabular-nums",borderCollapse:"collapse",width:"full"},th:{fontFamily:"heading",fontWeight:"bold",textTransform:"uppercase",letterSpacing:"wider",textAlign:"start"},td:{textAlign:"start"},caption:{mt:4,fontFamily:"heading",textAlign:"center",fontWeight:"medium"}}),mw={"&[data-is-numeric=true]":{textAlign:"end"}},$se=Um(e=>{const{colorScheme:t}=e;return{th:{color:ze("gray.600","gray.400")(e),borderBottom:"1px",borderColor:ze(`${t}.100`,`${t}.700`)(e),...mw},td:{borderBottom:"1px",borderColor:ze(`${t}.100`,`${t}.700`)(e),...mw},caption:{color:ze("gray.600","gray.100")(e)},tfoot:{tr:{"&:last-of-type":{th:{borderBottomWidth:0}}}}}}),Vse=Um(e=>{const{colorScheme:t}=e;return{th:{color:ze("gray.600","gray.400")(e),borderBottom:"1px",borderColor:ze(`${t}.100`,`${t}.700`)(e),...mw},td:{borderBottom:"1px",borderColor:ze(`${t}.100`,`${t}.700`)(e),...mw},caption:{color:ze("gray.600","gray.100")(e)},tbody:{tr:{"&:nth-of-type(odd)":{"th, td":{borderBottomWidth:"1px",borderColor:ze(`${t}.100`,`${t}.700`)(e)},td:{background:ze(`${t}.100`,`${t}.700`)(e)}}}},tfoot:{tr:{"&:last-of-type":{th:{borderBottomWidth:0}}}}}}),Hse={simple:$se,striped:Vse,unstyled:{}},Wse={sm:Um({th:{px:"4",py:"1",lineHeight:"4",fontSize:"xs"},td:{px:"4",py:"2",fontSize:"sm",lineHeight:"4"},caption:{px:"4",py:"2",fontSize:"xs"}}),md:Um({th:{px:"6",py:"3",lineHeight:"4",fontSize:"xs"},td:{px:"6",py:"4",lineHeight:"5"},caption:{px:"6",py:"2",fontSize:"sm"}}),lg:Um({th:{px:"8",py:"4",lineHeight:"5",fontSize:"sm"},td:{px:"8",py:"5",lineHeight:"6"},caption:{px:"6",py:"2",fontSize:"md"}})},Gse=Use({baseStyle:jse,variants:Hse,sizes:Wse,defaultProps:{variant:"simple",size:"md",colorScheme:"gray"}}),{defineMultiStyleConfig:Yse,definePartsStyle:du}=Ar(tre.keys),qse=e=>{const{orientation:t}=e;return{display:t==="vertical"?"flex":"block"}},Kse=e=>{const{isFitted:t}=e;return{flex:t?1:void 0,transitionProperty:"common",transitionDuration:"normal",_focusVisible:{zIndex:1,boxShadow:"outline"},_disabled:{cursor:"not-allowed",opacity:.4}}},Xse=e=>{const{align:t="start",orientation:r}=e;return{justifyContent:{end:"flex-end",center:"center",start:"flex-start"}[t],flexDirection:r==="vertical"?"column":"row"}},Zse={p:4},Qse=du(e=>({root:qse(e),tab:Kse(e),tablist:Xse(e),tabpanel:Zse})),Jse={sm:du({tab:{py:1,px:4,fontSize:"sm"}}),md:du({tab:{fontSize:"md",py:2,px:4}}),lg:du({tab:{fontSize:"lg",py:3,px:4}})},ele=du(e=>{const{colorScheme:t,orientation:r}=e,i=r==="vertical",s=r==="vertical"?"borderStart":"borderBottom",c=i?"marginStart":"marginBottom";return{tablist:{[s]:"2px solid",borderColor:"inherit"},tab:{[s]:"2px solid",borderColor:"transparent",[c]:"-2px",_selected:{color:ze(`${t}.600`,`${t}.300`)(e),borderColor:"currentColor"},_active:{bg:ze("gray.200","whiteAlpha.300")(e)},_disabled:{_active:{bg:"none"}}}}}),tle=du(e=>{const{colorScheme:t}=e;return{tab:{borderTopRadius:"md",border:"1px solid",borderColor:"transparent",mb:"-1px",_selected:{color:ze(`${t}.600`,`${t}.300`)(e),borderColor:"inherit",borderBottomColor:ze("white","gray.800")(e)}},tablist:{mb:"-1px",borderBottom:"1px solid",borderColor:"inherit"}}}),nle=du(e=>{const{colorScheme:t}=e;return{tab:{border:"1px solid",borderColor:"inherit",bg:ze("gray.50","whiteAlpha.50")(e),mb:"-1px",_notLast:{marginEnd:"-1px"},_selected:{bg:ze("#fff","gray.800")(e),color:ze(`${t}.600`,`${t}.300`)(e),borderColor:"inherit",borderTopColor:"currentColor",borderBottomColor:"transparent"}},tablist:{mb:"-1px",borderBottom:"1px solid",borderColor:"inherit"}}}),rle=du(e=>{const{colorScheme:t,theme:r}=e;return{tab:{borderRadius:"full",fontWeight:"semibold",color:"gray.600",_selected:{color:Oa(r,`${t}.700`),bg:Oa(r,`${t}.100`)}}}}),ale=du(e=>{const{colorScheme:t}=e;return{tab:{borderRadius:"full",fontWeight:"semibold",color:ze("gray.600","inherit")(e),_selected:{color:ze("#fff","gray.800")(e),bg:ze(`${t}.600`,`${t}.300`)(e)}}}}),ile=du({}),ole={line:ele,enclosed:tle,"enclosed-colored":nle,"soft-rounded":rle,"solid-rounded":ale,unstyled:ile},sle=Yse({baseStyle:Qse,sizes:Jse,variants:ole,defaultProps:{size:"md",variant:"line",colorScheme:"blue"}}),{defineMultiStyleConfig:lle,definePartsStyle:Mp}=Ar(nre.keys),ule={fontWeight:"medium",lineHeight:1.2,outline:0,borderRadius:"md",_focusVisible:{boxShadow:"outline"}},cle={lineHeight:1.2,overflow:"visible"},fle={fontSize:"lg",w:"5",h:"5",transitionProperty:"common",transitionDuration:"normal",borderRadius:"full",marginStart:"1.5",marginEnd:"-1",opacity:.5,_disabled:{opacity:.4},_focusVisible:{boxShadow:"outline",bg:"rgba(0, 0, 0, 0.14)"},_hover:{opacity:.8},_active:{opacity:1}},dle=Mp({container:ule,label:cle,closeButton:fle}),ple={sm:Mp({container:{minH:"5",minW:"5",fontSize:"xs",px:"2"},closeButton:{marginEnd:"-2px",marginStart:"0.35rem"}}),md:Mp({container:{minH:"6",minW:"6",fontSize:"sm",px:"2"}}),lg:Mp({container:{minH:"8",minW:"8",fontSize:"md",px:"3"}})},hle={subtle:Mp(e=>{var t;return{container:(t=Hy.variants)==null?void 0:t.subtle(e)}}),solid:Mp(e=>{var t;return{container:(t=Hy.variants)==null?void 0:t.solid(e)}}),outline:Mp(e=>{var t;return{container:(t=Hy.variants)==null?void 0:t.outline(e)}})},mle=lle({variants:hle,baseStyle:dle,sizes:ple,defaultProps:{size:"md",variant:"subtle",colorScheme:"gray"}}),o3,vle={...(o3=Jn.baseStyle)==null?void 0:o3.field,paddingY:"2",minHeight:"20",lineHeight:"short",verticalAlign:"top"},s3,gle={outline:e=>{var t;return((t=Jn.variants)==null?void 0:t.outline(e).field)??{}},flushed:e=>{var t;return((t=Jn.variants)==null?void 0:t.flushed(e).field)??{}},filled:e=>{var t;return((t=Jn.variants)==null?void 0:t.filled(e).field)??{}},unstyled:((s3=Jn.variants)==null?void 0:s3.unstyled.field)??{}},l3,u3,c3,f3,yle={xs:((l3=Jn.sizes)==null?void 0:l3.xs.field)??{},sm:((u3=Jn.sizes)==null?void 0:u3.sm.field)??{},md:((c3=Jn.sizes)==null?void 0:c3.md.field)??{},lg:((f3=Jn.sizes)==null?void 0:f3.lg.field)??{}},ble={baseStyle:vle,sizes:yle,variants:gle,defaultProps:{size:"md",variant:"outline"}},pO=xo("tooltip-bg"),d3=xo("tooltip-fg"),Sle=xo("popper-arrow-bg"),xle=e=>{const t=ze("gray.700","gray.300")(e),r=ze("whiteAlpha.900","gray.900")(e);return{bg:pO.reference,color:d3.reference,[pO.variable]:`colors.${t}`,[d3.variable]:`colors.${r}`,[Sle.variable]:pO.reference,px:"2",py:"0.5",borderRadius:"sm",fontWeight:"medium",fontSize:"sm",boxShadow:"md",maxW:"xs",zIndex:"tooltip"}},wle={baseStyle:xle},Cle={Accordion:$re,Alert:Xre,Avatar:sae,Badge:Hy,Breadcrumb:gae,Button:Tae,Checkbox:hw,CloseButton:Lae,Code:Uae,Container:$ae,Divider:Yae,Drawer:aie,Editable:fie,Form:gie,FormError:Cie,FormLabel:Eie,Heading:Rie,Input:Jn,Kbd:zie,Link:Uie,List:Wie,Menu:toe,Modal:doe,NumberInput:woe,PinInput:Toe,Popover:zoe,Progress:Goe,Radio:Zoe,Select:ase,Skeleton:lse,SkipLink:cse,Slider:xse,Spinner:_se,Stat:Dse,Switch:Bse,Table:Gse,Tabs:sle,Tag:mle,Textarea:ble,Tooltip:wle},_le={none:0,"1px":"1px solid","2px":"2px solid","4px":"4px solid","8px":"8px solid"},Ele=_le,Tle={base:"0em",sm:"30em",md:"48em",lg:"62em",xl:"80em","2xl":"96em"},Nle=Tle,Rle={transparent:"transparent",current:"currentColor",black:"#000000",white:"#FFFFFF",whiteAlpha:{50:"rgba(255, 255, 255, 0.04)",100:"rgba(255, 255, 255, 0.06)",200:"rgba(255, 255, 255, 0.08)",300:"rgba(255, 255, 255, 0.16)",400:"rgba(255, 255, 255, 0.24)",500:"rgba(255, 255, 255, 0.36)",600:"rgba(255, 255, 255, 0.48)",700:"rgba(255, 255, 255, 0.64)",800:"rgba(255, 255, 255, 0.80)",900:"rgba(255, 255, 255, 0.92)"},blackAlpha:{50:"rgba(0, 0, 0, 0.04)",100:"rgba(0, 0, 0, 0.06)",200:"rgba(0, 0, 0, 0.08)",300:"rgba(0, 0, 0, 0.16)",400:"rgba(0, 0, 0, 0.24)",500:"rgba(0, 0, 0, 0.36)",600:"rgba(0, 0, 0, 0.48)",700:"rgba(0, 0, 0, 0.64)",800:"rgba(0, 0, 0, 0.80)",900:"rgba(0, 0, 0, 0.92)"},gray:{50:"#F7FAFC",100:"#EDF2F7",200:"#E2E8F0",300:"#CBD5E0",400:"#A0AEC0",500:"#718096",600:"#4A5568",700:"#2D3748",800:"#1A202C",900:"#171923"},red:{50:"#FFF5F5",100:"#FED7D7",200:"#FEB2B2",300:"#FC8181",400:"#F56565",500:"#E53E3E",600:"#C53030",700:"#9B2C2C",800:"#822727",900:"#63171B"},orange:{50:"#FFFAF0",100:"#FEEBC8",200:"#FBD38D",300:"#F6AD55",400:"#ED8936",500:"#DD6B20",600:"#C05621",700:"#9C4221",800:"#7B341E",900:"#652B19"},yellow:{50:"#FFFFF0",100:"#FEFCBF",200:"#FAF089",300:"#F6E05E",400:"#ECC94B",500:"#D69E2E",600:"#B7791F",700:"#975A16",800:"#744210",900:"#5F370E"},green:{50:"#F0FFF4",100:"#C6F6D5",200:"#9AE6B4",300:"#68D391",400:"#48BB78",500:"#38A169",600:"#2F855A",700:"#276749",800:"#22543D",900:"#1C4532"},teal:{50:"#E6FFFA",100:"#B2F5EA",200:"#81E6D9",300:"#4FD1C5",400:"#38B2AC",500:"#319795",600:"#2C7A7B",700:"#285E61",800:"#234E52",900:"#1D4044"},blue:{50:"#ebf8ff",100:"#bee3f8",200:"#90cdf4",300:"#63b3ed",400:"#4299e1",500:"#3182ce",600:"#2b6cb0",700:"#2c5282",800:"#2a4365",900:"#1A365D"},cyan:{50:"#EDFDFD",100:"#C4F1F9",200:"#9DECF9",300:"#76E4F7",400:"#0BC5EA",500:"#00B5D8",600:"#00A3C4",700:"#0987A0",800:"#086F83",900:"#065666"},purple:{50:"#FAF5FF",100:"#E9D8FD",200:"#D6BCFA",300:"#B794F4",400:"#9F7AEA",500:"#805AD5",600:"#6B46C1",700:"#553C9A",800:"#44337A",900:"#322659"},pink:{50:"#FFF5F7",100:"#FED7E2",200:"#FBB6CE",300:"#F687B3",400:"#ED64A6",500:"#D53F8C",600:"#B83280",700:"#97266D",800:"#702459",900:"#521B41"},linkedin:{50:"#E8F4F9",100:"#CFEDFB",200:"#9BDAF3",300:"#68C7EC",400:"#34B3E4",500:"#00A0DC",600:"#008CC9",700:"#0077B5",800:"#005E93",900:"#004471"},facebook:{50:"#E8F4F9",100:"#D9DEE9",200:"#B7C2DA",300:"#6482C0",400:"#4267B2",500:"#385898",600:"#314E89",700:"#29487D",800:"#223B67",900:"#1E355B"},messenger:{50:"#D0E6FF",100:"#B9DAFF",200:"#A2CDFF",300:"#7AB8FF",400:"#2E90FF",500:"#0078FF",600:"#0063D1",700:"#0052AC",800:"#003C7E",900:"#002C5C"},whatsapp:{50:"#dffeec",100:"#b9f5d0",200:"#90edb3",300:"#65e495",400:"#3cdd78",500:"#22c35e",600:"#179848",700:"#0c6c33",800:"#01421c",900:"#001803"},twitter:{50:"#E5F4FD",100:"#C8E9FB",200:"#A8DCFA",300:"#83CDF7",400:"#57BBF5",500:"#1DA1F2",600:"#1A94DA",700:"#1681BF",800:"#136B9E",900:"#0D4D71"},telegram:{50:"#E3F2F9",100:"#C5E4F3",200:"#A2D4EC",300:"#7AC1E4",400:"#47A9DA",500:"#0088CC",600:"#007AB8",700:"#006BA1",800:"#005885",900:"#003F5E"}},Ole=Rle,Ale={none:"0",sm:"0.125rem",base:"0.25rem",md:"0.375rem",lg:"0.5rem",xl:"0.75rem","2xl":"1rem","3xl":"1.5rem",full:"9999px"},kle=Ale,Dle={xs:"0 0 0 1px rgba(0, 0, 0, 0.05)",sm:"0 1px 2px 0 rgba(0, 0, 0, 0.05)",base:"0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06)",md:"0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06)",lg:"0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05)",xl:"0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04)","2xl":"0 25px 50px -12px rgba(0, 0, 0, 0.25)",outline:"0 0 0 3px rgba(66, 153, 225, 0.6)",inner:"inset 0 2px 4px 0 rgba(0,0,0,0.06)",none:"none","dark-lg":"rgba(0, 0, 0, 0.1) 0px 0px 0px 1px, rgba(0, 0, 0, 0.2) 0px 5px 10px, rgba(0, 0, 0, 0.4) 0px 15px 40px"},Ple=Dle,Mle={common:"background-color, border-color, color, fill, stroke, opacity, box-shadow, transform",colors:"background-color, border-color, color, fill, stroke",dimensions:"width, height",position:"left, right, top, bottom",background:"background-color, background-image, background-position"},Ile={"ease-in":"cubic-bezier(0.4, 0, 1, 1)","ease-out":"cubic-bezier(0, 0, 0.2, 1)","ease-in-out":"cubic-bezier(0.4, 0, 0.2, 1)"},Lle={"ultra-fast":"50ms",faster:"100ms",fast:"150ms",normal:"200ms",slow:"300ms",slower:"400ms","ultra-slow":"500ms"},Fle={property:Mle,easing:Ile,duration:Lle},zle=Fle,Ble={hide:-1,auto:"auto",base:0,docked:10,dropdown:1e3,sticky:1100,banner:1200,overlay:1300,modal:1400,popover:1500,skipLink:1600,toast:1700,tooltip:1800},Ule=Ble,jle={none:0,sm:"4px",base:"8px",md:"12px",lg:"16px",xl:"24px","2xl":"40px","3xl":"64px"},$le=jle,Vle={breakpoints:Nle,zIndices:Ule,radii:kle,blur:$le,colors:Ole,..._6,sizes:x6,shadows:Ple,space:S6,borders:Ele,transition:zle},Hle={colors:{"chakra-body-text":{_light:"gray.800",_dark:"whiteAlpha.900"},"chakra-body-bg":{_light:"white",_dark:"gray.800"},"chakra-border-color":{_light:"gray.200",_dark:"whiteAlpha.300"},"chakra-placeholder-color":{_light:"gray.500",_dark:"whiteAlpha.400"}}},Wle={global:{body:{fontFamily:"body",color:"chakra-body-text",bg:"chakra-body-bg",transitionProperty:"background-color",transitionDuration:"normal",lineHeight:"base"},"*::placeholder":{color:"chakra-placeholder-color"},"*, *::before, &::after":{borderColor:"chakra-border-color",wordWrap:"break-word"}}};function Gle(e){const t=typeof e;return e!=null&&(t==="object"||t==="function")&&!Array.isArray(e)}var Yle=["borders","breakpoints","colors","components","config","direction","fonts","fontSizes","fontWeights","letterSpacings","lineHeights","radii","shadows","sizes","space","styles","transition","zIndices"];function qle(e){return Gle(e)?Yle.every(t=>Object.prototype.hasOwnProperty.call(e,t)):!1}var Kle="ltr",Xle={useSystemColorMode:!1,initialColorMode:"light",cssVarPrefix:"chakra"},R6={semanticTokens:Hle,direction:Kle,...Vle,components:Cle,styles:Wle,config:Xle};function Zle(e,t){const r=ki(e);D.exports.useEffect(()=>{if(t==null)return;let i=null;return i=window.setTimeout(()=>{r()},t),()=>{i&&window.clearTimeout(i)}},[t,r])}var fc="/Users/spencer/Documents/Code/stable-diffusion/frontend/node_modules/@chakra-ui/toast/dist/index.esm.js";function MA(e,...t){return Qle(e)?e(...t):e}var Qle=e=>typeof e=="function";function Jle(e,t){const r=e??"bottom",s={"top-start":{ltr:"top-left",rtl:"top-right"},"top-end":{ltr:"top-right",rtl:"top-left"},"bottom-start":{ltr:"bottom-left",rtl:"bottom-right"},"bottom-end":{ltr:"bottom-right",rtl:"bottom-left"}}[r];return s?.[t]??r}var eue=(e,t)=>e.find(r=>r.id===t);function p3(e,t){const r=O6(e,t),i=r?e[r].findIndex(s=>s.id===t):-1;return{position:r,index:i}}function O6(e,t){for(const[r,i]of Object.entries(e))if(eue(i,t))return r}function tue(e){const t=e.includes("right"),r=e.includes("left");let i="center";return t&&(i="flex-end"),r&&(i="flex-start"),{display:"flex",flexDirection:"column",alignItems:i}}function nue(e){const r=e==="top"||e==="bottom"?"0 auto":void 0,i=e.includes("top")?"env(safe-area-inset-top, 0px)":void 0,s=e.includes("bottom")?"env(safe-area-inset-bottom, 0px)":void 0,c=e.includes("left")?void 0:"env(safe-area-inset-right, 0px)",u=e.includes("right")?void 0:"env(safe-area-inset-left, 0px)";return{position:"fixed",zIndex:5500,pointerEvents:"none",display:"flex",flexDirection:"column",margin:r,top:i,bottom:s,right:c,left:u}}var rue={top:[],"top-left":[],"top-right":[],"bottom-left":[],bottom:[],"bottom-right":[]},su=aue(rue);function aue(e){let t=e;const r=new Set,i=s=>{t=s(t),r.forEach(c=>c())};return{getState:()=>t,subscribe:s=>(r.add(s),()=>{i(()=>e),r.delete(s)}),removeToast:(s,c)=>{i(u=>({...u,[c]:u[c].filter(h=>h.id!=s)}))},notify:(s,c)=>{const u=iue(s,c),{position:h,id:m}=u;return i(v=>{const x=h.includes("top")?[u,...v[h]??[]]:[...v[h]??[],u];return{...v,[h]:x}}),m},update:(s,c)=>{!s||i(u=>{const h={...u},{position:m,index:v}=p3(h,s);return m&&v!==-1&&(h[m][v]={...h[m][v],...c,message:A6(c)}),h})},closeAll:({positions:s}={})=>{i(c=>(s??["bottom","bottom-right","bottom-left","top","top-left","top-right"]).reduce((m,v)=>(m[v]=c[v].map(b=>({...b,requestClose:!0})),m),{...c}))},close:s=>{i(c=>{const u=O6(c,s);return u?{...c,[u]:c[u].map(h=>h.id==s?{...h,requestClose:!0}:h)}:c})},isActive:s=>Boolean(p3(su.getState(),s).position)}}var h3=0;function iue(e,t={}){h3+=1;const r=t.id??h3,i=t.position??"bottom";return{id:r,message:e,position:i,duration:t.duration,onCloseComplete:t.onCloseComplete,onRequestRemove:()=>su.removeToast(String(r),i),status:t.status,requestClose:!1,containerStyle:t.containerStyle}}var oue=e=>{const{status:t,variant:r="solid",id:i,title:s,isClosable:c,onClose:u,description:h,icon:m}=e,v=i?{root:`toast-${i}`,title:`toast-${i}-title`,description:`toast-${i}-description`}:void 0;return Ue.createElement(Ez,{addRole:!1,status:t,variant:r,id:v?.root,alignItems:"start",borderRadius:"md",boxShadow:"lg",paddingEnd:8,textAlign:"start",width:"auto"},k(Nz,{children:m},void 0,!1,{fileName:fc,lineNumber:237,columnNumber:22},globalThis),Ue.createElement(Ge.div,{flex:"1",maxWidth:"100%"},s&&k(Rz,{id:v?.title,children:s},void 0,!1,{fileName:fc,lineNumber:240,columnNumber:31},globalThis),h&&k(Tz,{id:v?.description,display:"block",children:h},void 0,!1,{fileName:fc,lineNumber:242,columnNumber:45},globalThis)),c&&k(J2,{size:"sm",onClick:u,position:"absolute",insetEnd:1,top:1},void 0,!1,{fileName:fc,lineNumber:245,columnNumber:51},globalThis))};function A6(e={}){const{render:t,toastComponent:r=oue}=e;return s=>typeof t=="function"?t(s):k(r,{...s,...e},void 0,!1,{fileName:fc,lineNumber:259,columnNumber:28},this)}function sue(e,t){const r=s=>({...t,...s,position:Jle(s?.position??t?.position,e)}),i=s=>{const c=r(s),u=A6(c);return su.notify(u,c)};return i.update=(s,c)=>{su.update(s,r(c))},i.promise=(s,c)=>{const u=i({...c.loading,status:"loading",duration:null});s.then(h=>i.update(u,{status:"success",duration:5e3,...MA(c.success,h)})).catch(h=>i.update(u,{status:"error",duration:5e3,...MA(c.error,h)}))},i.closeAll=su.closeAll,i.close=su.close,i.isActive=su.isActive,i}function k6(e){const{theme:t}=WF();return D.exports.useMemo(()=>sue(t.direction,e),[e,t.direction])}var lue={initial:e=>{const{position:t}=e,r=["top","bottom"].includes(t)?"y":"x";let i=["top-right","bottom-right"].includes(t)?1:-1;return t==="bottom"&&(i=1),{opacity:0,[r]:i*24}},animate:{opacity:1,y:0,x:0,scale:1,transition:{duration:.4,ease:[.4,0,.2,1]}},exit:{opacity:0,scale:.85,transition:{duration:.2,ease:[.4,0,1,1]}}},D6=D.exports.memo(e=>{const{id:t,message:r,onCloseComplete:i,onRequestRemove:s,requestClose:c=!1,position:u="bottom",duration:h=5e3,containerStyle:m,motionVariants:v=lue,toastSpacing:b="0.5rem"}=e,[x,C]=D.exports.useState(h),_=kY();iw(()=>{_||i?.()},[_]),iw(()=>{C(h)},[h]);const R=()=>C(null),A=()=>C(h),M=()=>{_&&s()};D.exports.useEffect(()=>{_&&c&&s()},[_,c,s]),Zle(M,x);const j=D.exports.useMemo(()=>({pointerEvents:"auto",maxWidth:560,minWidth:300,margin:b,...m}),[m,b]),I=D.exports.useMemo(()=>tue(u),[u]);return Ue.createElement(Ol.li,{layout:!0,className:"chakra-toast",variants:v,initial:"initial",animate:"animate",exit:"exit",onHoverStart:R,onHoverEnd:A,custom:{position:u},style:I},Ue.createElement(Ge.div,{role:"status","aria-atomic":"true",className:"chakra-toast__inner",__css:j},MA(r,{id:t,onClose:M})))});D6.displayName="ToastComponent";var uue=e=>{const t=D.exports.useSyncExternalStore(su.subscribe,su.getState,su.getState),{children:r,motionVariants:i,component:s=D6,portalProps:c}=e,h=Object.keys(t).map(m=>{const v=t[m];return k("ul",{role:"region","aria-live":"polite",id:`chakra-toast-manager-${m}`,style:nue(m),children:k(gc,{initial:!1,children:v.map(b=>k(s,{motionVariants:i,...b},b.id,!1,{fileName:fc,lineNumber:434,columnNumber:46},globalThis))},void 0,!1,{fileName:fc,lineNumber:432,columnNumber:24},globalThis)},m,!1,{fileName:fc,lineNumber:426,columnNumber:28},globalThis)});return k(bo,{children:[r,k(Wp,{...c,children:h},void 0,!1,{fileName:fc,lineNumber:440,columnNumber:94},globalThis)]},void 0,!0)},m3="/Users/spencer/Documents/Code/stable-diffusion/frontend/node_modules/@chakra-ui/tooltip/dist/index.esm.js";function cue(e,t=[]){const r=Object.assign({},e);for(const i of t)i in r&&delete r[i];return r}function fue(e,t){const r={};for(const i of t)i in e&&(r[i]=e[i]);return r}var due={exit:{scale:.85,opacity:0,transition:{opacity:{duration:.15,easings:"easeInOut"},scale:{duration:.2,easings:"easeInOut"}}},enter:{scale:1,opacity:1,transition:{opacity:{easings:"easeOut",duration:.2},scale:{duration:.2,ease:[.175,.885,.4,1.1]}}}};function Ty(...e){return function(r){e.some(i=>(i?.(r),r?.defaultPrevented))}}var IA=e=>{var t;return((t=e.current)==null?void 0:t.ownerDocument)||document},LA=e=>{var t,r;return((r=(t=e.current)==null?void 0:t.ownerDocument)==null?void 0:r.defaultView)||window};function pue(e={}){const{openDelay:t=0,closeDelay:r=0,closeOnClick:i=!0,closeOnMouseDown:s,closeOnEsc:c=!0,onOpen:u,onClose:h,placement:m,id:v,isOpen:b,defaultIsOpen:x,arrowSize:C=10,arrowShadowColor:_,arrowPadding:R,modifiers:A,isDisabled:M,gutter:j,offset:I,direction:z,...B}=e,{isOpen:$,onOpen:K,onClose:X}=zJ({isOpen:b,defaultIsOpen:x,onOpen:u,onClose:h}),{referenceRef:de,getPopperProps:ve,getArrowInnerProps:se,getArrowProps:be}=LJ({enabled:$,placement:m,arrowPadding:R,modifiers:A,gutter:j,offset:I,direction:z}),Xe=D.exports.useId(),ce=`tooltip-${v??Xe}`,Re=D.exports.useRef(null),Ce=D.exports.useRef(),oe=D.exports.useRef(),Se=D.exports.useCallback(()=>{oe.current&&(clearTimeout(oe.current),oe.current=void 0),X()},[X]),Te=hue(Re,Se),pe=D.exports.useCallback(()=>{if(!M&&!Ce.current){Te();const Qe=LA(Re);Ce.current=Qe.setTimeout(K,t)}},[Te,M,K,t]),we=D.exports.useCallback(()=>{Ce.current&&(clearTimeout(Ce.current),Ce.current=void 0);const Qe=LA(Re);oe.current=Qe.setTimeout(Se,r)},[r,Se]),Ie=D.exports.useCallback(()=>{$&&i&&we()},[i,we,$]),Le=D.exports.useCallback(()=>{$&&s&&we()},[s,we,$]),Ye=D.exports.useCallback(Qe=>{$&&Qe.key==="Escape"&&we()},[$,we]);hA(()=>IA(Re),"keydown",c?Ye:void 0),D.exports.useEffect(()=>()=>{clearTimeout(Ce.current),clearTimeout(oe.current)},[]),hA(()=>Re.current,"mouseleave",we);const st=D.exports.useCallback((Qe={},vt=null)=>({...Qe,ref:Zi(Re,vt,de),onMouseEnter:Ty(Qe.onMouseEnter,pe),onClick:Ty(Qe.onClick,Ie),onMouseDown:Ty(Qe.onMouseDown,Le),onFocus:Ty(Qe.onFocus,pe),onBlur:Ty(Qe.onBlur,we),"aria-describedby":$?ce:void 0}),[pe,we,Le,$,ce,Ie,de]),mt=D.exports.useCallback((Qe={},vt=null)=>ve({...Qe,style:{...Qe.style,[li.arrowSize.var]:C?`${C}px`:void 0,[li.arrowShadowColor.var]:_}},vt),[ve,C,_]),Gt=D.exports.useCallback((Qe={},vt=null)=>{const Et={...Qe.style,position:"relative",transformOrigin:li.transformOrigin.varRef};return{ref:vt,...B,...Qe,id:ce,role:"tooltip",style:Et}},[B,ce]);return{isOpen:$,show:pe,hide:we,getTriggerProps:st,getTooltipProps:Gt,getTooltipPositionerProps:mt,getArrowProps:be,getArrowInnerProps:se}}var hO="chakra-ui:close-tooltip";function hue(e,t){return D.exports.useEffect(()=>{const r=IA(e);return r.addEventListener(hO,t),()=>r.removeEventListener(hO,t)},[t,e]),()=>{const r=IA(e),i=LA(e);r.dispatchEvent(new i.CustomEvent(hO))}}var mue=Ge(Ol.div),FA=et((e,t)=>{const r=Qi("Tooltip",e),i=mr(e),s=g2(),{children:c,label:u,shouldWrapChildren:h,"aria-label":m,hasArrow:v,bg:b,portalProps:x,background:C,backgroundColor:_,bgColor:R,...A}=i,M=C??_??b??R;if(M){r.bg=M;const de=h8(s,"colors",M);r[li.arrowBg.var]=de}const j=pue({...A,direction:s.direction}),I=typeof c=="string"||h;let z;if(I)z=Ue.createElement(Ge.span,{tabIndex:0,...j.getTriggerProps()},c);else{const de=D.exports.Children.only(c);z=D.exports.cloneElement(de,j.getTriggerProps(de.props,de.ref))}const B=!!m,$=j.getTooltipProps({},t),K=B?cue($,["role","id"]):$,X=fue($,["role","id"]);return u?k(bo,{children:[z,k(gc,{children:j.isOpen&&Ue.createElement(Wp,{...x},Ue.createElement(Ge.div,{...j.getTooltipPositionerProps(),__css:{zIndex:r.zIndex,pointerEvents:"none"}},k(mue,{variants:due,...K,initial:"exit",animate:"enter",exit:"exit",__css:r,children:[u,B&&Ue.createElement(Ge.span,{srOnly:!0,...X},m),v&&Ue.createElement(Ge.div,{"data-popper-arrow":!0,className:"chakra-tooltip__arrow-wrapper"},Ue.createElement(Ge.div,{"data-popper-arrow-inner":!0,className:"chakra-tooltip__arrow",__css:{bg:r.bg}}))]},void 0,!0,{fileName:m3,lineNumber:299,columnNumber:22},globalThis)))},void 0,!1,{fileName:m3,lineNumber:291,columnNumber:93},globalThis)]},void 0,!0):k(bo,{children:c},void 0,!1)});FA.displayName="Tooltip";var mp="/Users/spencer/Documents/Code/stable-diffusion/frontend/node_modules/@chakra-ui/provider/dist/index.esm.js",vue=e=>{const{children:t,colorModeManager:r,portalZIndex:i,resetCSS:s=!0,theme:c={},environment:u,cssVarsRoot:h}=e,m=k(eB,{environment:u,children:t},void 0,!1,{fileName:mp,lineNumber:25,columnNumber:37},globalThis);return k(V7,{theme:c,cssVarsRoot:h,children:k(gF,{colorModeManager:r,options:c.config,children:[s?k(_Z,{},void 0,!1,{fileName:mp,lineNumber:34,columnNumber:33},globalThis):k(CZ,{},void 0,!1,{fileName:mp,lineNumber:34,columnNumber:87},globalThis),k(W7,{},void 0,!1,{fileName:mp,lineNumber:34,columnNumber:143},globalThis),i?k(fB,{zIndex:i,children:m},void 0,!1,{fileName:mp,lineNumber:34,columnNumber:214},globalThis):m]},void 0,!0,{fileName:mp,lineNumber:31,columnNumber:22},globalThis)},void 0,!1,{fileName:mp,lineNumber:28,columnNumber:26},globalThis)},v3="/Users/spencer/Documents/Code/stable-diffusion/frontend/node_modules/@chakra-ui/react/dist/index.esm.js";function gue({children:e,theme:t=R6,toastOptions:r,...i}){return k(vue,{theme:t,...i,children:[e,k(uue,{...r},void 0,!1,{fileName:v3,lineNumber:65,columnNumber:32},this)]},void 0,!0,{fileName:v3,lineNumber:62,columnNumber:26},this)}function yue(...e){let t=[...e],r=e[e.length-1];return qle(r)&&t.length>1?t=t.slice(0,t.length-1):r=R6,T7(...t.map(i=>s=>Om(i)?i(s):bue(s,i)))(r)}function bue(...e){return Bf({},...e,P6)}function P6(e,t,r,i){if((Om(e)||Om(t))&&Object.prototype.hasOwnProperty.call(i,r))return(...s)=>{const c=Om(e)?e(...s):e,u=Om(t)?t(...s):t;return Bf({},c,u,P6)}}function Ua(e){for(var t=arguments.length,r=Array(t>1?t-1:0),i=1;i<t;i++)r[i-1]=arguments[i];{var s=Rue[e],c=s?typeof s=="function"?s.apply(null,r):s:"unknown error nr: "+e;throw Error("[Immer] "+c)}}function Hf(e){return!!e&&!!e[Or]}function mc(e){return!!e&&(function(t){if(!t||typeof t!="object")return!1;var r=Object.getPrototypeOf(t);if(r===null)return!0;var i=Object.hasOwnProperty.call(r,"constructor")&&r.constructor;return i===Object||typeof i=="function"&&Function.toString.call(i)===Oue}(e)||Array.isArray(e)||!!e[C3]||!!e.constructor[C3]||Dk(e)||Pk(e))}function jp(e,t,r){r===void 0&&(r=!1),ov(e)===0?(r?Object.keys:$m)(e).forEach(function(i){r&&typeof i=="symbol"||t(i,e[i],e)}):e.forEach(function(i,s){return t(s,i,e)})}function ov(e){var t=e[Or];return t?t.i>3?t.i-4:t.i:Array.isArray(e)?1:Dk(e)?2:Pk(e)?3:0}function jm(e,t){return ov(e)===2?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function Sue(e,t){return ov(e)===2?e.get(t):e[t]}function M6(e,t,r){var i=ov(e);i===2?e.set(t,r):i===3?(e.delete(t),e.add(r)):e[t]=r}function I6(e,t){return e===t?e!==0||1/e==1/t:e!=e&&t!=t}function Dk(e){return Tue&&e instanceof Map}function Pk(e){return Nue&&e instanceof Set}function Rf(e){return e.o||e.t}function Mk(e){if(Array.isArray(e))return Array.prototype.slice.call(e);var t=F6(e);delete t[Or];for(var r=$m(t),i=0;i<r.length;i++){var s=r[i],c=t[s];c.writable===!1&&(c.writable=!0,c.configurable=!0),(c.get||c.set)&&(t[s]={configurable:!0,writable:!0,enumerable:c.enumerable,value:e[s]})}return Object.create(Object.getPrototypeOf(e),t)}function Ik(e,t){return t===void 0&&(t=!1),Lk(e)||Hf(e)||!mc(e)||(ov(e)>1&&(e.set=e.add=e.clear=e.delete=xue),Object.freeze(e),t&&jp(e,function(r,i){return Ik(i,!0)},!0)),e}function xue(){Ua(2)}function Lk(e){return e==null||typeof e!="object"||Object.isFrozen(e)}function pu(e){var t=jA[e];return t||Ua(18,e),t}function wue(e,t){jA[e]||(jA[e]=t)}function zA(){return Jm||Ua(0),Jm}function mO(e,t){t&&(pu("Patches"),e.u=[],e.s=[],e.v=t)}function vw(e){BA(e),e.p.forEach(Cue),e.p=null}function BA(e){e===Jm&&(Jm=e.l)}function g3(e){return Jm={p:[],l:Jm,h:e,m:!0,_:0}}function Cue(e){var t=e[Or];t.i===0||t.i===1?t.j():t.O=!0}function vO(e,t){t._=t.p.length;var r=t.p[0],i=e!==void 0&&e!==r;return t.h.g||pu("ES5").S(t,e,i),i?(r[Or].P&&(vw(t),Ua(4)),mc(e)&&(e=gw(t,e),t.l||yw(t,e)),t.u&&pu("Patches").M(r[Or].t,e,t.u,t.s)):e=gw(t,r,[]),vw(t),t.u&&t.v(t.u,t.s),e!==L6?e:void 0}function gw(e,t,r){if(Lk(t))return t;var i=t[Or];if(!i)return jp(t,function(c,u){return y3(e,i,t,c,u,r)},!0),t;if(i.A!==e)return t;if(!i.P)return yw(e,i.t,!0),i.t;if(!i.I){i.I=!0,i.A._--;var s=i.i===4||i.i===5?i.o=Mk(i.k):i.o;jp(i.i===3?new Set(s):s,function(c,u){return y3(e,i,s,c,u,r)}),yw(e,s,!1),r&&e.u&&pu("Patches").R(i,r,e.u,e.s)}return i.o}function y3(e,t,r,i,s,c){if(s===r&&Ua(5),Hf(s)){var u=gw(e,s,c&&t&&t.i!==3&&!jm(t.D,i)?c.concat(i):void 0);if(M6(r,i,u),!Hf(u))return;e.m=!1}if(mc(s)&&!Lk(s)){if(!e.h.F&&e._<1)return;gw(e,s),t&&t.A.l||yw(e,s)}}function yw(e,t,r){r===void 0&&(r=!1),e.h.F&&e.m&&Ik(t,r)}function gO(e,t){var r=e[Or];return(r?Rf(r):e)[t]}function b3(e,t){if(t in e)for(var r=Object.getPrototypeOf(e);r;){var i=Object.getOwnPropertyDescriptor(r,t);if(i)return i;r=Object.getPrototypeOf(r)}}function Of(e){e.P||(e.P=!0,e.l&&Of(e.l))}function yO(e){e.o||(e.o=Mk(e.t))}function UA(e,t,r){var i=Dk(t)?pu("MapSet").N(t,r):Pk(t)?pu("MapSet").T(t,r):e.g?function(s,c){var u=Array.isArray(s),h={i:u?1:0,A:c?c.A:zA(),P:!1,I:!1,D:{},l:c,t:s,k:null,o:null,j:null,C:!1},m=h,v=gb;u&&(m=[h],v=Dy);var b=Proxy.revocable(m,v),x=b.revoke,C=b.proxy;return h.k=C,h.j=x,C}(t,r):pu("ES5").J(t,r);return(r?r.A:zA()).p.push(i),i}function _ue(e){return Hf(e)||Ua(22,e),function t(r){if(!mc(r))return r;var i,s=r[Or],c=ov(r);if(s){if(!s.P&&(s.i<4||!pu("ES5").K(s)))return s.t;s.I=!0,i=S3(r,c),s.I=!1}else i=S3(r,c);return jp(i,function(u,h){s&&Sue(s.t,u)===h||M6(i,u,t(h))}),c===3?new Set(i):i}(e)}function S3(e,t){switch(t){case 2:return new Map(e);case 3:return Array.from(e)}return Mk(e)}function Eue(){function e(u,h){var m=c[u];return m?m.enumerable=h:c[u]=m={configurable:!0,enumerable:h,get:function(){var v=this[Or];return s(v),gb.get(v,u)},set:function(v){var b=this[Or];s(b),gb.set(b,u,v)}},m}function t(u){for(var h=u.length-1;h>=0;h--){var m=u[h][Or];if(!m.P)switch(m.i){case 5:i(m)&&Of(m);break;case 4:r(m)&&Of(m)}}}function r(u){for(var h=u.t,m=u.k,v=$m(m),b=v.length-1;b>=0;b--){var x=v[b];if(x!==Or){var C=h[x];if(C===void 0&&!jm(h,x))return!0;var _=m[x],R=_&&_[Or];if(R?R.t!==C:!I6(_,C))return!0}}var A=!!h[Or];return v.length!==$m(h).length+(A?0:1)}function i(u){var h=u.k;if(h.length!==u.t.length)return!0;var m=Object.getOwnPropertyDescriptor(h,h.length-1);if(m&&!m.get)return!0;for(var v=0;v<h.length;v++)if(!h.hasOwnProperty(v))return!0;return!1}function s(u){u.O&&Ua(3,JSON.stringify(Rf(u)))}var c={};wue("ES5",{J:function(u,h){var m=Array.isArray(u),v=function(x,C){if(x){for(var _=Array(C.length),R=0;R<C.length;R++)Object.defineProperty(_,""+R,e(R,!0));return _}var A=F6(C);delete A[Or];for(var M=$m(A),j=0;j<M.length;j++){var I=M[j];A[I]=e(I,x||!!A[I].enumerable)}return Object.create(Object.getPrototypeOf(C),A)}(m,u),b={i:m?5:4,A:h?h.A:zA(),P:!1,I:!1,D:{},l:h,t:u,k:v,o:null,O:!1,C:!1};return Object.defineProperty(v,Or,{value:b,writable:!0}),v},S:function(u,h,m){m?Hf(h)&&h[Or].A===u&&t(u.p):(u.u&&function v(b){if(b&&typeof b=="object"){var x=b[Or];if(x){var C=x.t,_=x.k,R=x.D,A=x.i;if(A===4)jp(_,function(B){B!==Or&&(C[B]!==void 0||jm(C,B)?R[B]||v(_[B]):(R[B]=!0,Of(x)))}),jp(C,function(B){_[B]!==void 0||jm(_,B)||(R[B]=!1,Of(x))});else if(A===5){if(i(x)&&(Of(x),R.length=!0),_.length<C.length)for(var M=_.length;M<C.length;M++)R[M]=!1;else for(var j=C.length;j<_.length;j++)R[j]=!0;for(var I=Math.min(_.length,C.length),z=0;z<I;z++)_.hasOwnProperty(z)||(R[z]=!0),R[z]===void 0&&v(_[z])}}}}(u.p[0]),t(u.p))},K:function(u){return u.i===4?r(u):i(u)}})}var x3,Jm,Fk=typeof Symbol<"u"&&typeof Symbol("x")=="symbol",Tue=typeof Map<"u",Nue=typeof Set<"u",w3=typeof Proxy<"u"&&Proxy.revocable!==void 0&&typeof Reflect<"u",L6=Fk?Symbol.for("immer-nothing"):((x3={})["immer-nothing"]=!0,x3),C3=Fk?Symbol.for("immer-draftable"):"__$immer_draftable",Or=Fk?Symbol.for("immer-state"):"__$immer_state",Rue={0:"Illegal state",1:"Immer drafts cannot have computed properties",2:"This object has been frozen and should not be mutated",3:function(e){return"Cannot use a proxy that has been revoked. Did you pass an object from inside an immer function to an async process? "+e},4:"An immer producer returned a new value *and* modified its draft. Either return a new value *or* modify the draft.",5:"Immer forbids circular references",6:"The first or second argument to `produce` must be a function",7:"The third argument to `produce` must be a function or undefined",8:"First argument to `createDraft` must be a plain object, an array, or an immerable object",9:"First argument to `finishDraft` must be a draft returned by `createDraft`",10:"The given draft is already finalized",11:"Object.defineProperty() cannot be used on an Immer draft",12:"Object.setPrototypeOf() cannot be used on an Immer draft",13:"Immer only supports deleting array indices",14:"Immer only supports setting array indices and the 'length' property",15:function(e){return"Cannot apply patch, path doesn't resolve: "+e},16:'Sets cannot have "replace" patches.',17:function(e){return"Unsupported patch operation: "+e},18:function(e){return"The plugin for '"+e+"' has not been loaded into Immer. To enable the plugin, import and call `enable"+e+"()` when initializing your application."},20:"Cannot use proxies if Proxy, Proxy.revocable or Reflect are not available",21:function(e){return"produce can only be called on things that are draftable: plain objects, arrays, Map, Set or classes that are marked with '[immerable]: true'. Got '"+e+"'"},22:function(e){return"'current' expects a draft, got: "+e},23:function(e){return"'original' expects a draft, got: "+e},24:"Patching reserved attributes like __proto__, prototype and constructor is not allowed"},Oue=""+Object.prototype.constructor,$m=typeof Reflect<"u"&&Reflect.ownKeys?Reflect.ownKeys:Object.getOwnPropertySymbols!==void 0?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:Object.getOwnPropertyNames,F6=Object.getOwnPropertyDescriptors||function(e){var t={};return $m(e).forEach(function(r){t[r]=Object.getOwnPropertyDescriptor(e,r)}),t},jA={},gb={get:function(e,t){if(t===Or)return e;var r=Rf(e);if(!jm(r,t))return function(s,c,u){var h,m=b3(c,u);return m?"value"in m?m.value:(h=m.get)===null||h===void 0?void 0:h.call(s.k):void 0}(e,r,t);var i=r[t];return e.I||!mc(i)?i:i===gO(e.t,t)?(yO(e),e.o[t]=UA(e.A.h,i,e)):i},has:function(e,t){return t in Rf(e)},ownKeys:function(e){return Reflect.ownKeys(Rf(e))},set:function(e,t,r){var i=b3(Rf(e),t);if(i?.set)return i.set.call(e.k,r),!0;if(!e.P){var s=gO(Rf(e),t),c=s?.[Or];if(c&&c.t===r)return e.o[t]=r,e.D[t]=!1,!0;if(I6(r,s)&&(r!==void 0||jm(e.t,t)))return!0;yO(e),Of(e)}return e.o[t]===r&&typeof r!="number"&&(r!==void 0||t in e.o)||(e.o[t]=r,e.D[t]=!0,!0)},deleteProperty:function(e,t){return gO(e.t,t)!==void 0||t in e.t?(e.D[t]=!1,yO(e),Of(e)):delete e.D[t],e.o&&delete e.o[t],!0},getOwnPropertyDescriptor:function(e,t){var r=Rf(e),i=Reflect.getOwnPropertyDescriptor(r,t);return i&&{writable:!0,configurable:e.i!==1||t!=="length",enumerable:i.enumerable,value:r[t]}},defineProperty:function(){Ua(11)},getPrototypeOf:function(e){return Object.getPrototypeOf(e.t)},setPrototypeOf:function(){Ua(12)}},Dy={};jp(gb,function(e,t){Dy[e]=function(){return arguments[0]=arguments[0][0],t.apply(this,arguments)}}),Dy.deleteProperty=function(e,t){return isNaN(parseInt(t))&&Ua(13),Dy.set.call(this,e,t,void 0)},Dy.set=function(e,t,r){return t!=="length"&&isNaN(parseInt(t))&&Ua(14),gb.set.call(this,e[0],t,r,e[0])};var Aue=function(){function e(r){var i=this;this.g=w3,this.F=!0,this.produce=function(s,c,u){if(typeof s=="function"&&typeof c!="function"){var h=c;c=s;var m=i;return function(A){var M=this;A===void 0&&(A=h);for(var j=arguments.length,I=Array(j>1?j-1:0),z=1;z<j;z++)I[z-1]=arguments[z];return m.produce(A,function(B){var $;return($=c).call.apply($,[M,B].concat(I))})}}var v;if(typeof c!="function"&&Ua(6),u!==void 0&&typeof u!="function"&&Ua(7),mc(s)){var b=g3(i),x=UA(i,s,void 0),C=!0;try{v=c(x),C=!1}finally{C?vw(b):BA(b)}return typeof Promise<"u"&&v instanceof Promise?v.then(function(A){return mO(b,u),vO(A,b)},function(A){throw vw(b),A}):(mO(b,u),vO(v,b))}if(!s||typeof s!="object"){if((v=c(s))===void 0&&(v=s),v===L6&&(v=void 0),i.F&&Ik(v,!0),u){var _=[],R=[];pu("Patches").M(s,v,_,R),u(_,R)}return v}Ua(21,s)},this.produceWithPatches=function(s,c){if(typeof s=="function")return function(v){for(var b=arguments.length,x=Array(b>1?b-1:0),C=1;C<b;C++)x[C-1]=arguments[C];return i.produceWithPatches(v,function(_){return s.apply(void 0,[_].concat(x))})};var u,h,m=i.produce(s,c,function(v,b){u=v,h=b});return typeof Promise<"u"&&m instanceof Promise?m.then(function(v){return[v,u,h]}):[m,u,h]},typeof r?.useProxies=="boolean"&&this.setUseProxies(r.useProxies),typeof r?.autoFreeze=="boolean"&&this.setAutoFreeze(r.autoFreeze)}var t=e.prototype;return t.createDraft=function(r){mc(r)||Ua(8),Hf(r)&&(r=_ue(r));var i=g3(this),s=UA(this,r,void 0);return s[Or].C=!0,BA(i),s},t.finishDraft=function(r,i){var s=r&&r[Or];s&&s.C||Ua(9),s.I&&Ua(10);var c=s.A;return mO(c,i),vO(void 0,c)},t.setAutoFreeze=function(r){this.F=r},t.setUseProxies=function(r){r&&!w3&&Ua(20),this.g=r},t.applyPatches=function(r,i){var s;for(s=i.length-1;s>=0;s--){var c=i[s];if(c.path.length===0&&c.op==="replace"){r=c.value;break}}s>-1&&(i=i.slice(s+1));var u=pu("Patches").$;return Hf(r)?u(r,i):this.produce(r,function(h){return u(h,i)})},e}(),Xo=new Aue,z6=Xo.produce;Xo.produceWithPatches.bind(Xo);Xo.setAutoFreeze.bind(Xo);Xo.setUseProxies.bind(Xo);Xo.applyPatches.bind(Xo);Xo.createDraft.bind(Xo);Xo.finishDraft.bind(Xo);function _3(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(s){return Object.getOwnPropertyDescriptor(e,s).enumerable})),r.push.apply(r,i)}return r}function E3(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?_3(Object(r),!0).forEach(function(i){EB(e,i,r[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):_3(Object(r)).forEach(function(i){Object.defineProperty(e,i,Object.getOwnPropertyDescriptor(r,i))})}return e}var T3=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}(),bO=function(){return Math.random().toString(36).substring(7).split("").join(".")},Ip={INIT:"@@redux/INIT"+bO(),REPLACE:"@@redux/REPLACE"+bO(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+bO()}};function B6(e){if(typeof e!="object"||e===null)return!1;for(var t=e;Object.getPrototypeOf(t)!==null;)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t}function kue(e){if(e===void 0)return"undefined";if(e===null)return"null";var t=typeof e;switch(t){case"boolean":case"string":case"number":case"symbol":case"function":return t}if(Array.isArray(e))return"array";if(Mue(e))return"date";if(Pue(e))return"error";var r=Due(e);switch(r){case"Symbol":case"Promise":case"WeakMap":case"WeakSet":case"Map":case"Set":return r}return t.slice(8,-1).toLowerCase().replace(/\s/g,"")}function Due(e){return typeof e.constructor=="function"?e.constructor.name:null}function Pue(e){return e instanceof Error||typeof e.message=="string"&&e.constructor&&typeof e.constructor.stackTraceLimit=="number"}function Mue(e){return e instanceof Date?!0:typeof e.toDateString=="function"&&typeof e.getDate=="function"&&typeof e.setDate=="function"}function wp(e){var t=typeof e;return t=kue(e),t}function zk(e,t,r){var i;if(typeof t=="function"&&typeof r=="function"||typeof r=="function"&&typeof arguments[3]=="function")throw new Error("It looks like you are passing several store enhancers to createStore(). This is not supported. Instead, compose them together to a single function. See https://redux.js.org/tutorials/fundamentals/part-4-store#creating-a-store-with-enhancers for an example.");if(typeof t=="function"&&typeof r>"u"&&(r=t,t=void 0),typeof r<"u"){if(typeof r!="function")throw new Error("Expected the enhancer to be a function. Instead, received: '"+wp(r)+"'");return r(zk)(e,t)}if(typeof e!="function")throw new Error("Expected the root reducer to be a function. Instead, received: '"+wp(e)+"'");var s=e,c=t,u=[],h=u,m=!1;function v(){h===u&&(h=u.slice())}function b(){if(m)throw new Error("You may not call store.getState() while the reducer is executing. The reducer has already received the state as an argument. Pass it down from the top reducer instead of reading it from the store.");return c}function x(A){if(typeof A!="function")throw new Error("Expected the listener to be a function. Instead, received: '"+wp(A)+"'");if(m)throw new Error("You may not call store.subscribe() while the reducer is executing. If you would like to be notified after the store has been updated, subscribe from a component and invoke store.getState() in the callback to access the latest state. See https://redux.js.org/api/store#subscribelistener for more details.");var M=!0;return v(),h.push(A),function(){if(!!M){if(m)throw new Error("You may not unsubscribe from a store listener while the reducer is executing. See https://redux.js.org/api/store#subscribelistener for more details.");M=!1,v();var I=h.indexOf(A);h.splice(I,1),u=null}}}function C(A){if(!B6(A))throw new Error("Actions must be plain objects. Instead, the actual type was: '"+wp(A)+"'. You may need to add middleware to your store setup to handle dispatching other values, such as 'redux-thunk' to handle dispatching functions. See https://redux.js.org/tutorials/fundamentals/part-4-store#middleware and https://redux.js.org/tutorials/fundamentals/part-6-async-logic#using-the-redux-thunk-middleware for examples.");if(typeof A.type>"u")throw new Error('Actions may not have an undefined "type" property. You may have misspelled an action type string constant.');if(m)throw new Error("Reducers may not dispatch actions.");try{m=!0,c=s(c,A)}finally{m=!1}for(var M=u=h,j=0;j<M.length;j++){var I=M[j];I()}return A}function _(A){if(typeof A!="function")throw new Error("Expected the nextReducer to be a function. Instead, received: '"+wp(A));s=A,C({type:Ip.REPLACE})}function R(){var A,M=x;return A={subscribe:function(I){if(typeof I!="object"||I===null)throw new Error("Expected the observer to be an object. Instead, received: '"+wp(I)+"'");function z(){I.next&&I.next(b())}z();var B=M(z);return{unsubscribe:B}}},A[T3]=function(){return this},A}return C({type:Ip.INIT}),i={dispatch:C,subscribe:x,getState:b,replaceReducer:_},i[T3]=R,i}function $A(e){typeof console<"u"&&typeof console.error=="function"&&console.error(e);try{throw new Error(e)}catch{}}function Iue(e,t,r,i){var s=Object.keys(t),c=r&&r.type===Ip.INIT?"preloadedState argument passed to createStore":"previous state received by the reducer";if(s.length===0)return"Store does not have a valid reducer. Make sure the argument passed to combineReducers is an object whose values are reducers.";if(!B6(e))return"The "+c+' has unexpected type of "'+wp(e)+'". Expected argument to be an object with the following '+('keys: "'+s.join('", "')+'"');var u=Object.keys(e).filter(function(h){return!t.hasOwnProperty(h)&&!i[h]});if(u.forEach(function(h){i[h]=!0}),!(r&&r.type===Ip.REPLACE)&&u.length>0)return"Unexpected "+(u.length>1?"keys":"key")+" "+('"'+u.join('", "')+'" found in '+c+". ")+"Expected to find one of the known reducer keys instead: "+('"'+s.join('", "')+'". Unexpected keys will be ignored.')}function Lue(e){Object.keys(e).forEach(function(t){var r=e[t],i=r(void 0,{type:Ip.INIT});if(typeof i>"u")throw new Error('The slice reducer for key "'+t+`" returned undefined during initialization. If the state passed to the reducer is undefined, you must explicitly return the initial state. The initial state may not be undefined. If you don't want to set a value for this reducer, you can use null instead of undefined.`);if(typeof r(void 0,{type:Ip.PROBE_UNKNOWN_ACTION()})>"u")throw new Error('The slice reducer for key "'+t+'" returned undefined when probed with a random type. '+("Don't try to handle '"+Ip.INIT+`' or other actions in "redux/*" `)+"namespace. They are considered private. Instead, you must return the current state for any unknown actions, unless it is undefined, in which case you must return the initial state, regardless of the action type. The initial state may not be undefined, but can be null.")})}function U6(e){for(var t=Object.keys(e),r={},i=0;i<t.length;i++){var s=t[i];typeof e[s]>"u"&&$A('No reducer provided for key "'+s+'"'),typeof e[s]=="function"&&(r[s]=e[s])}var c=Object.keys(r),u;u={};var h;try{Lue(r)}catch(m){h=m}return function(v,b){if(v===void 0&&(v={}),h)throw h;{var x=Iue(v,r,b,u);x&&$A(x)}for(var C=!1,_={},R=0;R<c.length;R++){var A=c[R],M=r[A],j=v[A],I=M(j,b);if(typeof I>"u"){var z=b&&b.type;throw new Error("When called with an action of type "+(z?'"'+String(z)+'"':"(unknown type)")+', the slice reducer for key "'+A+'" returned undefined. To ignore an action, you must explicitly return the previous state. If you want this reducer to hold no value, you can return null instead of undefined.')}_[A]=I,C=C||I!==j}return C=C||c.length!==Object.keys(v).length,C?_:v}}function bw(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return t.length===0?function(i){return i}:t.length===1?t[0]:t.reduce(function(i,s){return function(){return i(s.apply(void 0,arguments))}})}function Fue(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return function(i){return function(){var s=i.apply(void 0,arguments),c=function(){throw new Error("Dispatching while constructing your middleware is not allowed. Other middleware would not be applied to this dispatch.")},u={getState:s.getState,dispatch:function(){return c.apply(void 0,arguments)}},h=t.map(function(m){return m(u)});return c=bw.apply(void 0,h)(s.dispatch),E3(E3({},s),{},{dispatch:c})}}}function N3(){}typeof N3.name=="string"&&N3.name!=="isCrushed"&&$A('You are currently using minified code outside of NODE_ENV === "production". This means that you are running a slower development build of Redux. You can use loose-envify (https://github.com/zertosh/loose-envify) for browserify or setting mode to production in webpack (https://webpack.js.org/concepts/mode/) to ensure you have the correct code for your production build.');var Sw="NOT_FOUND";function zue(e){var t;return{get:function(i){return t&&e(t.key,i)?t.value:Sw},put:function(i,s){t={key:i,value:s}},getEntries:function(){return t?[t]:[]},clear:function(){t=void 0}}}function Bue(e,t){var r=[];function i(h){var m=r.findIndex(function(b){return t(h,b.key)});if(m>-1){var v=r[m];return m>0&&(r.splice(m,1),r.unshift(v)),v.value}return Sw}function s(h,m){i(h)===Sw&&(r.unshift({key:h,value:m}),r.length>e&&r.pop())}function c(){return r}function u(){r=[]}return{get:i,put:s,getEntries:c,clear:u}}var Uue=function(t,r){return t===r};function jue(e){return function(r,i){if(r===null||i===null||r.length!==i.length)return!1;for(var s=r.length,c=0;c<s;c++)if(!e(r[c],i[c]))return!1;return!0}}function $ue(e,t){var r=typeof t=="object"?t:{equalityCheck:t},i=r.equalityCheck,s=i===void 0?Uue:i,c=r.maxSize,u=c===void 0?1:c,h=r.resultEqualityCheck,m=jue(s),v=u===1?zue(m):Bue(u,m);function b(){var x=v.get(arguments);if(x===Sw){if(x=e.apply(null,arguments),h){var C=v.getEntries(),_=C.find(function(R){return h(R.value,x)});_&&(x=_.value)}v.put(arguments,x)}return x}return b.clearCache=function(){return v.clear()},b}function Vue(e){var t=Array.isArray(e[0])?e[0]:e;if(!t.every(function(i){return typeof i=="function"})){var r=t.map(function(i){return typeof i=="function"?"function "+(i.name||"unnamed")+"()":typeof i}).join(", ");throw new Error("createSelector expects all input-selectors to be functions, but received the following types: ["+r+"]")}return t}function Hue(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),i=1;i<t;i++)r[i-1]=arguments[i];var s=function(){for(var u=arguments.length,h=new Array(u),m=0;m<u;m++)h[m]=arguments[m];var v=0,b,x={memoizeOptions:void 0},C=h.pop();if(typeof C=="object"&&(x=C,C=h.pop()),typeof C!="function")throw new Error("createSelector expects an output function after the inputs, but received: ["+typeof C+"]");var _=x,R=_.memoizeOptions,A=R===void 0?r:R,M=Array.isArray(A)?A:[A],j=Vue(h),I=e.apply(void 0,[function(){return v++,C.apply(null,arguments)}].concat(M)),z=e(function(){for(var $=[],K=j.length,X=0;X<K;X++)$.push(j[X].apply(null,arguments));return b=I.apply(null,$),b});return Object.assign(z,{resultFunc:C,memoizedResultFunc:I,dependencies:j,lastResult:function(){return b},recomputations:function(){return v},resetRecomputations:function(){return v=0}}),z};return s}var Qr=Hue($ue);function j6(e){var t=function(i){var s=i.dispatch,c=i.getState;return function(u){return function(h){return typeof h=="function"?h(s,c,e):u(h)}}};return t}var $6=j6();$6.withExtraArgument=j6;const R3=$6;var Wue=globalThis&&globalThis.__extends||function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,s){i.__proto__=s}||function(i,s){for(var c in s)Object.prototype.hasOwnProperty.call(s,c)&&(i[c]=s[c])},e(t,r)};return function(t,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");e(t,r);function i(){this.constructor=t}t.prototype=r===null?Object.create(r):(i.prototype=r.prototype,new i)}}();globalThis&&globalThis.__generator;var xw=globalThis&&globalThis.__spreadArray||function(e,t){for(var r=0,i=t.length,s=e.length;r<i;r++,s++)e[s]=t[r];return e},Gue=Object.defineProperty,O3=Object.getOwnPropertySymbols,Yue=Object.prototype.hasOwnProperty,que=Object.prototype.propertyIsEnumerable,A3=function(e,t,r){return t in e?Gue(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r},yb=function(e,t){for(var r in t||(t={}))Yue.call(t,r)&&A3(e,r,t[r]);if(O3)for(var i=0,s=O3(t);i<s.length;i++){var r=s[i];que.call(t,r)&&A3(e,r,t[r])}return e},Kue=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(arguments.length!==0)return typeof arguments[0]=="object"?bw:bw.apply(null,arguments)};function V6(e){if(typeof e!="object"||e===null)return!1;var t=Object.getPrototypeOf(e);if(t===null)return!0;for(var r=t;Object.getPrototypeOf(r)!==null;)r=Object.getPrototypeOf(r);return t===r}function H6(e,t){var r=0;return{measureTime:function(i){var s=Date.now();try{return i()}finally{var c=Date.now();r+=c-s}},warnIfExceeded:function(){r>e&&console.warn(t+" took "+r+"ms, which is more than the warning threshold of "+e+`ms.
|
|
If your state or actions are very large, you may want to disable the middleware as it might cause too much of a slowdown in development mode. See https://redux-toolkit.js.org/api/getDefaultMiddleware for instructions.
|
|
It is disabled in production builds, so you don't need to worry about that.`)}}}var Xue=function(e){Wue(t,e);function t(){for(var r=[],i=0;i<arguments.length;i++)r[i]=arguments[i];var s=e.apply(this,r)||this;return Object.setPrototypeOf(s,t.prototype),s}return Object.defineProperty(t,Symbol.species,{get:function(){return t},enumerable:!1,configurable:!0}),t.prototype.concat=function(){for(var r=[],i=0;i<arguments.length;i++)r[i]=arguments[i];return e.prototype.concat.apply(this,r)},t.prototype.prepend=function(){for(var r=[],i=0;i<arguments.length;i++)r[i]=arguments[i];return r.length===1&&Array.isArray(r[0])?new(t.bind.apply(t,xw([void 0],r[0].concat(this)))):new(t.bind.apply(t,xw([void 0],r.concat(this))))},t}(Array);function VA(e){return mc(e)?z6(e,function(){}):e}var Zue="Invariant failed";function k3(e,t){if(!e)throw new Error(Zue+": "+(t||""))}function Que(e,t,r,i){return JSON.stringify(e,Jue(t,i),r)}function Jue(e,t){var r=[],i=[];return t||(t=function(s,c){return r[0]===c?"[Circular ~]":"[Circular ~."+i.slice(0,r.indexOf(c)).join(".")+"]"}),function(s,c){if(r.length>0){var u=r.indexOf(this);~u?r.splice(u+1):r.push(this),~u?i.splice(u,1/0,s):i.push(s),~r.indexOf(c)&&(c=t.call(this,s,c))}else r.push(c);return e==null?c:e.call(this,s,c)}}function ece(e){return typeof e!="object"||e==null||Object.isFrozen(e)}function tce(e,t,r){var i=W6(e,t,r);return{detectMutations:function(){return G6(e,t,i,r)}}}function W6(e,t,r,i){t===void 0&&(t=[]),i===void 0&&(i="");var s={value:r};if(!e(r)){s.children={};for(var c in r){var u=i?i+"."+c:c;t.length&&t.indexOf(u)!==-1||(s.children[c]=W6(e,t,r[c],u))}}return s}function G6(e,t,r,i,s,c){t===void 0&&(t=[]),s===void 0&&(s=!1),c===void 0&&(c="");var u=r?r.value:void 0,h=u===i;if(s&&!h&&!Number.isNaN(i))return{wasMutated:!0,path:c};if(e(u)||e(i))return{wasMutated:!1};var m={};for(var v in r.children)m[v]=!0;for(var v in i)m[v]=!0;for(var v in m){var b=c?c+"."+v:v;if(!(t.length&&t.indexOf(b)!==-1)){var x=G6(e,t,r.children[v],i[v],h,b);if(x.wasMutated)return x}}return{wasMutated:!1}}function nce(e){e===void 0&&(e={});var t=e.isImmutable,r=t===void 0?ece:t,i=e.ignoredPaths,s=e.warnAfter,c=s===void 0?32:s,u=e.ignore;i=i||u;var h=tce.bind(null,r,i);return function(m){var v=m.getState,b=v(),x=h(b),C;return function(_){return function(R){var A=H6(c,"ImmutableStateInvariantMiddleware");A.measureTime(function(){b=v(),C=x.detectMutations(),x=h(b),k3(!C.wasMutated,"A state mutation was detected between dispatches, in the path '"+(C.path||"")+"'. This may cause incorrect behavior. (https://redux.js.org/style-guide/style-guide#do-not-mutate-state)")});var M=_(R);return A.measureTime(function(){b=v(),C=x.detectMutations(),x=h(b),C.wasMutated&&k3(!C.wasMutated,"A state mutation was detected inside a dispatch, in the path: "+(C.path||"")+". Take a look at the reducer(s) handling the action "+Que(R)+". (https://redux.js.org/style-guide/style-guide#do-not-mutate-state)")}),A.warnIfExceeded(),M}}}}function Y6(e){var t=typeof e;return e==null||t==="string"||t==="boolean"||t==="number"||Array.isArray(e)||V6(e)}function HA(e,t,r,i,s){t===void 0&&(t=""),r===void 0&&(r=Y6),s===void 0&&(s=[]);var c;if(!r(e))return{keyPath:t||"<root>",value:e};if(typeof e!="object"||e===null)return!1;for(var u=i!=null?i(e):Object.entries(e),h=s.length>0,m=0,v=u;m<v.length;m++){var b=v[m],x=b[0],C=b[1],_=t?t+"."+x:x;if(!(h&&s.indexOf(_)>=0)){if(!r(C))return{keyPath:_,value:C};if(typeof C=="object"&&(c=HA(C,_,r,i,s),c))return c}}return!1}function rce(e){e===void 0&&(e={});var t=e.isSerializable,r=t===void 0?Y6:t,i=e.getEntries,s=e.ignoredActions,c=s===void 0?[]:s,u=e.ignoredActionPaths,h=u===void 0?["meta.arg","meta.baseQueryMeta"]:u,m=e.ignoredPaths,v=m===void 0?[]:m,b=e.warnAfter,x=b===void 0?32:b,C=e.ignoreState,_=C===void 0?!1:C,R=e.ignoreActions,A=R===void 0?!1:R;return function(M){return function(j){return function(I){var z=j(I),B=H6(x,"SerializableStateInvariantMiddleware");return!A&&!(c.length&&c.indexOf(I.type)!==-1)&&B.measureTime(function(){var $=HA(I,"",r,i,h);if($){var K=$.keyPath,X=$.value;console.error("A non-serializable value was detected in an action, in the path: `"+K+"`. Value:",X,`
|
|
Take a look at the logic that dispatched this action: `,I,`
|
|
(See https://redux.js.org/faq/actions#why-should-type-be-a-string-or-at-least-serializable-why-should-my-action-types-be-constants)`,`
|
|
(To allow non-serializable values see: https://redux-toolkit.js.org/usage/usage-guide#working-with-non-serializable-data)`)}}),_||(B.measureTime(function(){var $=M.getState(),K=HA($,"",r,i,v);if(K){var X=K.keyPath,de=K.value;console.error("A non-serializable value was detected in the state, in the path: `"+X+"`. Value:",de,`
|
|
Take a look at the reducer(s) handling this action type: `+I.type+`.
|
|
(See https://redux.js.org/faq/organizing-state#can-i-put-functions-promises-or-other-non-serializable-items-in-my-store-state)`)}}),B.warnIfExceeded()),z}}}}function SO(e){return typeof e=="boolean"}function ace(){return function(t){return ice(t)}}function ice(e){e===void 0&&(e={});var t=e.thunk,r=t===void 0?!0:t,i=e.immutableCheck,s=i===void 0?!0:i,c=e.serializableCheck,u=c===void 0?!0:c,h=new Xue;r&&(SO(r)?h.push(R3):h.push(R3.withExtraArgument(r.extraArgument)));{if(s){var m={};SO(s)||(m=s),h.unshift(nce(m))}if(u){var v={};SO(u)||(v=u),h.push(rce(v))}}return h}var oce=!1;function sce(e){var t=ace(),r=e||{},i=r.reducer,s=i===void 0?void 0:i,c=r.middleware,u=c===void 0?t():c,h=r.devTools,m=h===void 0?!0:h,v=r.preloadedState,b=v===void 0?void 0:v,x=r.enhancers,C=x===void 0?void 0:x,_;if(typeof s=="function")_=s;else if(V6(s))_=U6(s);else throw new Error('"reducer" is a required argument, and must be a function or an object of functions that can be passed to combineReducers');var R=u;if(typeof R=="function"&&(R=R(t),!Array.isArray(R)))throw new Error("when using a middleware builder function, an array of middleware must be returned");if(R.some(function(z){return typeof z!="function"}))throw new Error("each middleware provided to configureStore must be a function");var A=Fue.apply(void 0,R),M=bw;m&&(M=Kue(yb({trace:!oce},typeof m=="object"&&m)));var j=[A];Array.isArray(C)?j=xw([A],C):typeof C=="function"&&(j=C(j));var I=M.apply(void 0,j);return zk(_,b,I)}function Zo(e,t){function r(){for(var i=[],s=0;s<arguments.length;s++)i[s]=arguments[s];if(t){var c=t.apply(void 0,i);if(!c)throw new Error("prepareAction did not return an object");return yb(yb({type:e,payload:c.payload},"meta"in c&&{meta:c.meta}),"error"in c&&{error:c.error})}return{type:e,payload:i[0]}}return r.toString=function(){return""+e},r.type=e,r.match=function(i){return i.type===e},r}function q6(e){var t={},r=[],i,s={addCase:function(c,u){{if(r.length>0)throw new Error("`builder.addCase` should only be called before calling `builder.addMatcher`");if(i)throw new Error("`builder.addCase` should only be called before calling `builder.addDefaultCase`")}var h=typeof c=="string"?c:c.type;if(h in t)throw new Error("addCase cannot be called with two reducers for the same action type");return t[h]=u,s},addMatcher:function(c,u){if(i)throw new Error("`builder.addMatcher` should only be called before calling `builder.addDefaultCase`");return r.push({matcher:c,reducer:u}),s},addDefaultCase:function(c){if(i)throw new Error("`builder.addDefaultCase` can only be called once");return i=c,s}};return e(s),[t,r,i]}function lce(e){return typeof e=="function"}function uce(e,t,r,i){r===void 0&&(r=[]);var s=typeof t=="function"?q6(t):[t,r,i],c=s[0],u=s[1],h=s[2],m;if(lce(e))m=function(){return VA(e())};else{var v=VA(e);m=function(){return v}}function b(x,C){x===void 0&&(x=m());var _=xw([c[C.type]],u.filter(function(R){var A=R.matcher;return A(C)}).map(function(R){var A=R.reducer;return A}));return _.filter(function(R){return!!R}).length===0&&(_=[h]),_.reduce(function(R,A){if(A)if(Hf(R)){var M=R,j=A(M,C);return j===void 0?R:j}else{if(mc(R))return z6(R,function(I){return A(I,C)});var j=A(R,C);if(j===void 0){if(R===null)return R;throw Error("A case reducer on a non-draftable value must not return undefined")}return j}return R},x)}return b.getInitialState=m,b}function cce(e,t){return e+"/"+t}function Bk(e){var t=e.name;if(!t)throw new Error("`name` is a required option for createSlice");typeof process<"u"&&e.initialState===void 0&&console.error("You must provide an `initialState` value that is not `undefined`. You may have misspelled `initialState`");var r=typeof e.initialState=="function"?e.initialState:VA(e.initialState),i=e.reducers||{},s=Object.keys(i),c={},u={},h={};s.forEach(function(b){var x=i[b],C=cce(t,b),_,R;"reducer"in x?(_=x.reducer,R=x.prepare):_=x,c[b]=_,u[C]=_,h[b]=R?Zo(C,R):Zo(C)});function m(){var b=typeof e.extraReducers=="function"?q6(e.extraReducers):[e.extraReducers],x=b[0],C=x===void 0?{}:x,_=b[1],R=_===void 0?[]:_,A=b[2],M=A===void 0?void 0:A,j=yb(yb({},C),u);return uce(r,j,R,M)}var v;return{name:t,reducer:function(b,x){return v||(v=m()),v(b,x)},actions:h,caseReducers:c,getInitialState:function(){return v||(v=m()),v.getInitialState()}}}var Uk="listenerMiddleware";Zo(Uk+"/add");Zo(Uk+"/removeAll");Zo(Uk+"/remove");Eue();var jk="persist:",K6="persist/FLUSH",$k="persist/REHYDRATE",X6="persist/PAUSE",Z6="persist/PERSIST",Q6="persist/PURGE",J6="persist/REGISTER",fce=-1;function qy(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?qy=function(r){return typeof r}:qy=function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},qy(e)}function D3(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(s){return Object.getOwnPropertyDescriptor(e,s).enumerable})),r.push.apply(r,i)}return r}function dce(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?D3(r,!0).forEach(function(i){pce(e,i,r[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):D3(r).forEach(function(i){Object.defineProperty(e,i,Object.getOwnPropertyDescriptor(r,i))})}return e}function pce(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function hce(e,t,r,i){var s=i.debug,c=dce({},r);return e&&qy(e)==="object"&&Object.keys(e).forEach(function(u){if(u!=="_persist"){if(t[u]!==r[u]){s&&console.log("redux-persist/stateReconciler: sub state for key `%s` modified, skipping.",u);return}c[u]=e[u]}}),s&&e&&qy(e)==="object"&&console.log("redux-persist/stateReconciler: rehydrated keys '".concat(Object.keys(e).join(", "),"'")),c}function mce(e){var t=e.blacklist||null,r=e.whitelist||null,i=e.transforms||[],s=e.throttle||0,c="".concat(e.keyPrefix!==void 0?e.keyPrefix:jk).concat(e.key),u=e.storage,h;e.serialize===!1?h=function($){return $}:typeof e.serialize=="function"?h=e.serialize:h=vce;var m=e.writeFailHandler||null,v={},b={},x=[],C=null,_=null,R=function($){Object.keys($).forEach(function(K){!j(K)||v[K]!==$[K]&&x.indexOf(K)===-1&&x.push(K)}),Object.keys(v).forEach(function(K){$[K]===void 0&&j(K)&&x.indexOf(K)===-1&&v[K]!==void 0&&x.push(K)}),C===null&&(C=setInterval(A,s)),v=$};function A(){if(x.length===0){C&&clearInterval(C),C=null;return}var B=x.shift(),$=i.reduce(function(K,X){return X.in(K,B,v)},v[B]);if($!==void 0)try{b[B]=h($)}catch(K){console.error("redux-persist/createPersistoid: error serializing state",K)}else delete b[B];x.length===0&&M()}function M(){Object.keys(b).forEach(function(B){v[B]===void 0&&delete b[B]}),_=u.setItem(c,h(b)).catch(I)}function j(B){return!(r&&r.indexOf(B)===-1&&B!=="_persist"||t&&t.indexOf(B)!==-1)}function I(B){m&&m(B),B&&console.error("Error storing data",B)}var z=function(){for(;x.length!==0;)A();return _||Promise.resolve()};return{update:R,flush:z}}function vce(e){return JSON.stringify(e)}function gce(e){var t=e.transforms||[],r="".concat(e.keyPrefix!==void 0?e.keyPrefix:jk).concat(e.key),i=e.storage,s=e.debug,c;return e.deserialize===!1?c=function(h){return h}:typeof e.deserialize=="function"?c=e.deserialize:c=yce,i.getItem(r).then(function(u){if(u)try{var h={},m=c(u);return Object.keys(m).forEach(function(v){h[v]=t.reduceRight(function(b,x){return x.out(b,v,m)},c(m[v]))}),h}catch(v){throw s&&console.log("redux-persist/getStoredState: Error restoring data ".concat(u),v),v}else return})}function yce(e){return JSON.parse(e)}function bce(e){var t=e.storage,r="".concat(e.keyPrefix!==void 0?e.keyPrefix:jk).concat(e.key);return t.removeItem(r,Sce)}function Sce(e){e&&console.error("redux-persist/purgeStoredState: Error purging data stored state",e)}function P3(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(s){return Object.getOwnPropertyDescriptor(e,s).enumerable})),r.push.apply(r,i)}return r}function oc(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?P3(r,!0).forEach(function(i){xce(e,i,r[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):P3(r).forEach(function(i){Object.defineProperty(e,i,Object.getOwnPropertyDescriptor(r,i))})}return e}function xce(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function wce(e,t){if(e==null)return{};var r=Cce(e,t),i,s;if(Object.getOwnPropertySymbols){var c=Object.getOwnPropertySymbols(e);for(s=0;s<c.length;s++)i=c[s],!(t.indexOf(i)>=0)&&(!Object.prototype.propertyIsEnumerable.call(e,i)||(r[i]=e[i]))}return r}function Cce(e,t){if(e==null)return{};var r={},i=Object.keys(e),s,c;for(c=0;c<i.length;c++)s=i[c],!(t.indexOf(s)>=0)&&(r[s]=e[s]);return r}var _ce=5e3;function Ece(e,t){{if(!e)throw new Error("config is required for persistReducer");if(!e.key)throw new Error("key is required in persistor config");if(!e.storage)throw new Error("redux-persist: config.storage is required. Try using one of the provided storage engines `import storage from 'redux-persist/lib/storage'`")}var r=e.version!==void 0?e.version:fce;e.debug;var i=e.stateReconciler===void 0?hce:e.stateReconciler,s=e.getStoredState||gce,c=e.timeout!==void 0?e.timeout:_ce,u=null,h=!1,m=!0,v=function(x){return x._persist.rehydrated&&u&&!m&&u.update(x),x};return function(b,x){var C=b||{},_=C._persist,R=wce(C,["_persist"]),A=R;if(x.type===Z6){var M=!1,j=function(de,ve){M&&console.error('redux-persist: rehydrate for "'.concat(e.key,'" called after timeout.'),de,ve),M||(x.rehydrate(e.key,de,ve),M=!0)};if(c&&setTimeout(function(){!M&&j(void 0,new Error('redux-persist: persist timed out for persist key "'.concat(e.key,'"')))},c),m=!1,u||(u=mce(e)),_)return oc({},t(A,x),{_persist:_});if(typeof x.rehydrate!="function"||typeof x.register!="function")throw new Error("redux-persist: either rehydrate or register is not a function on the PERSIST action. This can happen if the action is being replayed. This is an unexplored use case, please open an issue and we will figure out a resolution.");return x.register(e.key),s(e).then(function(X){var de=e.migrate||function(ve,se){return Promise.resolve(ve)};de(X,r).then(function(ve){j(ve)},function(ve){ve&&console.error("redux-persist: migration error",ve),j(void 0,ve)})},function(X){j(void 0,X)}),oc({},t(A,x),{_persist:{version:r,rehydrated:!1}})}else{if(x.type===Q6)return h=!0,x.result(bce(e)),oc({},t(A,x),{_persist:_});if(x.type===K6)return x.result(u&&u.flush()),oc({},t(A,x),{_persist:_});if(x.type===X6)m=!0;else if(x.type===$k){if(h)return oc({},A,{_persist:oc({},_,{rehydrated:!0})});if(x.key===e.key){var I=t(A,x),z=x.payload,B=i!==!1&&z!==void 0?i(z,b,I,e):I,$=oc({},B,{_persist:oc({},_,{rehydrated:!0})});return v($)}}}if(!_)return t(b,x);var K=t(A,x);return K===A?b:v(oc({},K,{_persist:_}))}}function M3(e){return Rce(e)||Nce(e)||Tce()}function Tce(){throw new TypeError("Invalid attempt to spread non-iterable instance")}function Nce(e){if(Symbol.iterator in Object(e)||Object.prototype.toString.call(e)==="[object Arguments]")return Array.from(e)}function Rce(e){if(Array.isArray(e)){for(var t=0,r=new Array(e.length);t<e.length;t++)r[t]=e[t];return r}}function I3(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(s){return Object.getOwnPropertyDescriptor(e,s).enumerable})),r.push.apply(r,i)}return r}function WA(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?I3(r,!0).forEach(function(i){Oce(e,i,r[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):I3(r).forEach(function(i){Object.defineProperty(e,i,Object.getOwnPropertyDescriptor(r,i))})}return e}function Oce(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var eU={registry:[],bootstrapped:!1},Ace=function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:eU,r=arguments.length>1?arguments[1]:void 0;switch(r.type){case J6:return WA({},t,{registry:[].concat(M3(t.registry),[r.key])});case $k:var i=t.registry.indexOf(r.key),s=M3(t.registry);return s.splice(i,1),WA({},t,{registry:s,bootstrapped:s.length===0});default:return t}};function kce(e,t,r){{var i=t||{},s=["blacklist","whitelist","transforms","storage","keyPrefix","migrate"];s.forEach(function(b){i[b]&&console.error('redux-persist: invalid option passed to persistStore: "'.concat(b,'". You may be incorrectly passing persistConfig into persistStore, whereas it should be passed into persistReducer.'))})}var c=r||!1,u=zk(Ace,eU,t&&t.enhancer?t.enhancer:void 0),h=function(x){u.dispatch({type:J6,key:x})},m=function(x,C,_){var R={type:$k,payload:C,err:_,key:x};e.dispatch(R),u.dispatch(R),c&&v.getState().bootstrapped&&(c(),c=!1)},v=WA({},u,{purge:function(){var x=[];return e.dispatch({type:Q6,result:function(_){x.push(_)}}),Promise.all(x)},flush:function(){var x=[];return e.dispatch({type:K6,result:function(_){x.push(_)}}),Promise.all(x)},pause:function(){e.dispatch({type:X6})},persist:function(){e.dispatch({type:Z6,register:h,rehydrate:m})}});return t&&t.manualPersist||v.persist(),v}var Vk={},Hk={};Hk.__esModule=!0;Hk.default=Mce;function Mx(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Mx=function(r){return typeof r}:Mx=function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},Mx(e)}function xO(){}var Dce={getItem:xO,setItem:xO,removeItem:xO};function Pce(e){if((typeof self>"u"?"undefined":Mx(self))!=="object"||!(e in self))return!1;try{var t=self[e],r="redux-persist ".concat(e," test");t.setItem(r,"test"),t.getItem(r),t.removeItem(r)}catch{return console.warn("redux-persist ".concat(e," test failed, persistence will be disabled.")),!1}return!0}function Mce(e){var t="".concat(e,"Storage");return Pce(t)?self[t]:(console.error("redux-persist failed to create sync storage. falling back to noop storage."),Dce)}Vk.__esModule=!0;Vk.default=Fce;var Ice=Lce(Hk);function Lce(e){return e&&e.__esModule?e:{default:e}}function Fce(e){var t=(0,Ice.default)(e);return{getItem:function(i){return new Promise(function(s,c){s(t.getItem(i))})},setItem:function(i,s){return new Promise(function(c,u){c(t.setItem(i,s))})},removeItem:function(i){return new Promise(function(s,c){s(t.removeItem(i))})}}}var tU=void 0,zce=Bce(Vk);function Bce(e){return e&&e.__esModule?e:{default:e}}var Uce=(0,zce.default)("local");tU=Uce;const nU=(e,t)=>Math.floor(Math.random()*(t-e+1)+e),jce=["ddim","plms","k_lms","k_dpm_2","k_dpm_2_a","k_euler","k_euler_a","k_heun"],$ce=[64,128,192,256,320,384,448,512,576,640,704,768,832,896,960,1024],Vce=[64,128,192,256,320,384,448,512,576,640,704,768,832,896,960,1024],Hce=[{key:"2x",value:2},{key:"4x",value:4}],L3={prompt:"Prompt",iterations:"Iterations",steps:"Steps",cfgScale:"CFG Scale",height:"Height",width:"Width",sampler:"Sampler",seed:"Seed",img2imgStrength:"img2img Strength",gfpganStrength:"GFPGAN Strength",upscalingLevel:"Upscaling Level",upscalingStrength:"Upscaling Strength",initialImagePath:"Initial Image",maskPath:"Initial Image Mask",shouldFitToWidthHeight:"Fit Initial Image",seamless:"Seamless Tiling"},Wk=0,Gk=4294967295,wO=(e,t,r)=>r?Math.floor(t*e):e,rU={prompt:"",iterations:1,steps:50,realSteps:50,cfgScale:7.5,height:512,width:512,sampler:"k_lms",seed:0,seamless:!1,shouldUseInitImage:!1,img2imgStrength:.75,initialImagePath:"",maskPath:"",shouldFitToWidthHeight:!0,shouldGenerateVariations:!1,variantAmount:.1,seedWeights:"",shouldRunESRGAN:!1,upscalingLevel:4,upscalingStrength:.75,shouldRunGFPGAN:!1,gfpganStrength:.8,shouldRandomizeSeed:!0},Wce=rU,aU=Bk({name:"sd",initialState:Wce,reducers:{setPrompt:(e,t)=>{e.prompt=t.payload},setIterations:(e,t)=>{e.iterations=t.payload},setSteps:(e,t)=>{const{img2imgStrength:r,initialImagePath:i}=e,s=t.payload;e.steps=s,e.realSteps=wO(s,r,Boolean(i))},setCfgScale:(e,t)=>{e.cfgScale=t.payload},setHeight:(e,t)=>{e.height=t.payload},setWidth:(e,t)=>{e.width=t.payload},setSampler:(e,t)=>{e.sampler=t.payload},setSeed:(e,t)=>{e.seed=t.payload,e.shouldRandomizeSeed=!1},setImg2imgStrength:(e,t)=>{const r=t.payload,{steps:i,initialImagePath:s}=e;e.img2imgStrength=r,e.realSteps=wO(i,r,Boolean(s))},setGfpganStrength:(e,t)=>{e.gfpganStrength=t.payload},setUpscalingLevel:(e,t)=>{e.upscalingLevel=t.payload},setUpscalingStrength:(e,t)=>{e.upscalingStrength=t.payload},setShouldUseInitImage:(e,t)=>{e.shouldUseInitImage=t.payload},setInitialImagePath:(e,t)=>{const r=t.payload,{steps:i,img2imgStrength:s}=e;e.shouldUseInitImage=!!r,e.initialImagePath=r,e.realSteps=wO(i,s,Boolean(r))},setMaskPath:(e,t)=>{e.maskPath=t.payload},setSeamless:(e,t)=>{e.seamless=t.payload},setShouldFitToWidthHeight:(e,t)=>{e.shouldFitToWidthHeight=t.payload},resetSeed:e=>{e.seed=-1},randomizeSeed:e=>{e.seed=nU(Wk,Gk)},setParameter:(e,t)=>{const{key:r,value:i}=t.payload,s={...e,[r]:i};return r==="seed"&&(s.shouldRandomizeSeed=!1),r==="initialImagePath"&&i===""&&(s.shouldUseInitImage=!1),s},setShouldGenerateVariations:(e,t)=>{e.shouldGenerateVariations=t.payload},setVariantAmount:(e,t)=>{e.variantAmount=t.payload},setSeedWeights:(e,t)=>{e.seedWeights=t.payload},setAllParameters:(e,t)=>{const{prompt:r,steps:i,cfgScale:s,height:c,width:u,sampler:h,seed:m,img2imgStrength:v,gfpganStrength:b,upscalingLevel:x,upscalingStrength:C,initialImagePath:_,maskPath:R,seamless:A,shouldFitToWidthHeight:M}=t.payload;e.prompt=r??e.prompt,e.steps=i||e.steps,e.cfgScale=s||e.cfgScale,e.width=u||e.width,e.height=c||e.height,e.sampler=h||e.sampler,e.seed=m??e.seed,e.seamless=A??e.seamless,e.shouldFitToWidthHeight=M??e.shouldFitToWidthHeight,e.img2imgStrength=v??e.img2imgStrength,e.gfpganStrength=b??e.gfpganStrength,e.upscalingLevel=x??e.upscalingLevel,e.upscalingStrength=C??e.upscalingStrength,e.initialImagePath=_??e.initialImagePath,e.maskPath=R??e.maskPath,m&&(e.shouldRandomizeSeed=!1),e.shouldRunGFPGAN=!!b,e.shouldRunESRGAN=!!x,e.shouldGenerateVariations=!1,e.shouldUseInitImage=!!_},resetSDState:e=>({...e,...rU}),setShouldRunGFPGAN:(e,t)=>{e.shouldRunGFPGAN=t.payload},setShouldRunESRGAN:(e,t)=>{e.shouldRunESRGAN=t.payload},setShouldRandomizeSeed:(e,t)=>{e.shouldRandomizeSeed=t.payload}}}),{setPrompt:Gce,setIterations:Yce,setSteps:qce,setCfgScale:Kce,setHeight:Xce,setWidth:Zce,setSampler:Qce,setSeed:Yk,setSeamless:Jce,setImg2imgStrength:efe,setGfpganStrength:tfe,setUpscalingLevel:nfe,setUpscalingStrength:rfe,setShouldUseInitImage:afe,setInitialImagePath:qk,setMaskPath:iU,resetSeed:hme,randomizeSeed:ife,resetSDState:mme,setShouldFitToWidthHeight:ofe,setParameter:sfe,setShouldGenerateVariations:lfe,setSeedWeights:ufe,setVariantAmount:cfe,setAllParameters:Kk,setShouldRunGFPGAN:ffe,setShouldRunESRGAN:dfe,setShouldRandomizeSeed:pfe}=aU.actions,hfe=aU.reducer;let fx;const mfe=new Uint8Array(16);function vfe(){if(!fx&&(fx=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!fx))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return fx(mfe)}const oi=[];for(let e=0;e<256;++e)oi.push((e+256).toString(16).slice(1));function gfe(e,t=0){return(oi[e[t+0]]+oi[e[t+1]]+oi[e[t+2]]+oi[e[t+3]]+"-"+oi[e[t+4]]+oi[e[t+5]]+"-"+oi[e[t+6]]+oi[e[t+7]]+"-"+oi[e[t+8]]+oi[e[t+9]]+"-"+oi[e[t+10]]+oi[e[t+11]]+oi[e[t+12]]+oi[e[t+13]]+oi[e[t+14]]+oi[e[t+15]]).toLowerCase()}const yfe=typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto),F3={randomUUID:yfe};function GA(e,t,r){if(F3.randomUUID&&!t&&!e)return F3.randomUUID();e=e||{};const i=e.random||(e.rng||vfe)();if(i[6]=i[6]&15|64,i[8]=i[8]&63|128,t){r=r||0;for(let s=0;s<16;++s)t[r+s]=i[s];return t}return gfe(i)}const oU=e=>{const i=e.split(",").map(s=>s.split(":")).map(s=>[parseInt(s[0]),parseFloat(s[1])]);return lC(i)?i:!1},lC=e=>Boolean(typeof e=="string"?oU(e):e.length&&!e.some(t=>{const[r,i]=t,s=!isNaN(parseInt(r.toString(),10)),c=!isNaN(parseInt(i.toString(),10))&&i>=0&&i<=1;return!(s&&c)})),bfe=e=>lC(e)?e.reduce((t,r,i,s)=>{const[c,u]=r;return t+=`${c}:${u}`,i!==s.length-1&&(t+=","),t},""):!1,Sfe=(e,t)=>{const{prompt:r,iterations:i,steps:s,cfgScale:c,height:u,width:h,sampler:m,seed:v,seamless:b,shouldUseInitImage:x,img2imgStrength:C,initialImagePath:_,maskPath:R,shouldFitToWidthHeight:A,shouldGenerateVariations:M,variantAmount:j,seedWeights:I,shouldRunESRGAN:z,upscalingLevel:B,upscalingStrength:$,shouldRunGFPGAN:K,gfpganStrength:X,shouldRandomizeSeed:de}=e,{shouldDisplayInProgress:ve}=t,se={prompt:r,iterations:i,steps:s,cfg_scale:c,height:u,width:h,sampler_name:m,seed:v,seamless:b,progress_images:ve};se.seed=de?nU(Wk,Gk):v,x&&(se.init_img=_,se.strength=C,se.fit=A,R&&(se.init_mask=R)),M?(se.variation_amount=j,I&&(se.with_variations=oU(I))):se.variation_amount=0;let be=!1,Xe=!1;return z&&(be={level:B,strength:$}),K&&(Xe={strength:X}),{generationParameters:se,esrganParameters:be,gfpganParameters:Xe}},sU=e=>{const{prompt:t,iterations:r,steps:i,cfg_scale:s,height:c,width:u,sampler_name:h,seed:m,seamless:v,progress_images:b,variation_amount:x,with_variations:C,gfpgan_strength:_,upscale:R,init_img:A,init_mask:M,strength:j}=e,I={shouldDisplayInProgress:b,shouldGenerateVariations:!1,shouldRunESRGAN:!1,shouldRunGFPGAN:!1,initialImagePath:"",maskPath:""};return x>0&&(I.shouldGenerateVariations=!0,I.variantAmount=x,C&&(I.seedWeights=bfe(C))),_>0&&(I.shouldRunGFPGAN=!0,I.gfpganStrength=_),R&&(I.shouldRunESRGAN=!0,I.upscalingLevel=R[0],I.upscalingStrength=R[1]),A&&(I.shouldUseInitImage=!0,I.initialImagePath=A,I.strength=j,M&&(I.maskPath=M)),t&&(I.prompt=t,I.iterations=r,I.steps=i,I.cfgScale=s,I.height=c,I.width=u,I.sampler=h,I.seed=m,I.seamless=v),I},xfe={currentImageUuid:"",images:[]},lU=Bk({name:"gallery",initialState:xfe,reducers:{setCurrentImage:(e,t)=>{e.currentImage=t.payload,e.currentImageUuid=t.payload.uuid},removeImage:(e,t)=>{const{uuid:r}=t.payload,i=e.images.filter(u=>u.uuid!==r),s=e.images.findIndex(u=>u.uuid===r),c=Math.min(Math.max(s,0),i.length-1);e.images=i,e.currentImage=i.length?i[c]:void 0,e.currentImageUuid=i.length?i[c].uuid:""},addImage:(e,t)=>{e.images.push(t.payload),e.currentImageUuid=t.payload.uuid,e.intermediateImage=void 0,e.currentImage=t.payload},setIntermediateImage:(e,t)=>{e.intermediateImage=t.payload},clearIntermediateImage:e=>{e.intermediateImage=void 0},setGalleryImages:(e,t)=>{if(t.payload.length===0)e.images=[],e.currentImageUuid="",e.currentImage=void 0;else{const s=t.payload.filter(u=>!e.images.find(h=>h.url===u.path)).map(u=>({uuid:GA(),url:u.path,metadata:sU(u.metadata)})),c=[...e.images].concat(s);if(!c.find(u=>u.uuid===e.currentImageUuid)){const u=c[c.length-1];e.currentImage=u,e.currentImageUuid=u.uuid}e.images=c}}}}),{setCurrentImage:wfe,removeImage:Cfe,addImage:dx,setGalleryImages:_fe,setIntermediateImage:Efe,clearIntermediateImage:z3}=lU.actions,Tfe=lU.reducer;var Nfe=/d{1,4}|D{3,4}|m{1,4}|yy(?:yy)?|([HhMsTt])\1?|W{1,2}|[LlopSZN]|"[^"]*"|'[^']*'/g,Rfe=/\b(?:[A-Z]{1,3}[A-Z][TC])(?:[-+]\d{4})?|((?:Australian )?(?:Pacific|Mountain|Central|Eastern|Atlantic) (?:Standard|Daylight|Prevailing) Time)\b/g,Ofe=/[^-+\dA-Z]/g;function Afe(e,t,r,i){if(arguments.length===1&&typeof e=="string"&&!/\d/.test(e)&&(t=e,e=void 0),e=e||e===0?e:new Date,e instanceof Date||(e=new Date(e)),isNaN(e))throw TypeError("Invalid date");t=String(B3[t]||t||B3.default);var s=t.slice(0,4);(s==="UTC:"||s==="GMT:")&&(t=t.slice(4),r=!0,s==="GMT:"&&(i=!0));var c=function(){return r?"getUTC":"get"},u=function(){return e[c()+"Date"]()},h=function(){return e[c()+"Day"]()},m=function(){return e[c()+"Month"]()},v=function(){return e[c()+"FullYear"]()},b=function(){return e[c()+"Hours"]()},x=function(){return e[c()+"Minutes"]()},C=function(){return e[c()+"Seconds"]()},_=function(){return e[c()+"Milliseconds"]()},R=function(){return r?0:e.getTimezoneOffset()},A=function(){return kfe(e)},M=function(){return Dfe(e)},j={d:function(){return u()},dd:function(){return Vo(u())},ddd:function(){return fo.dayNames[h()]},DDD:function(){return U3({y:v(),m:m(),d:u(),_:c(),dayName:fo.dayNames[h()],short:!0})},dddd:function(){return fo.dayNames[h()+7]},DDDD:function(){return U3({y:v(),m:m(),d:u(),_:c(),dayName:fo.dayNames[h()+7]})},m:function(){return m()+1},mm:function(){return Vo(m()+1)},mmm:function(){return fo.monthNames[m()]},mmmm:function(){return fo.monthNames[m()+12]},yy:function(){return String(v()).slice(2)},yyyy:function(){return Vo(v(),4)},h:function(){return b()%12||12},hh:function(){return Vo(b()%12||12)},H:function(){return b()},HH:function(){return Vo(b())},M:function(){return x()},MM:function(){return Vo(x())},s:function(){return C()},ss:function(){return Vo(C())},l:function(){return Vo(_(),3)},L:function(){return Vo(Math.floor(_()/10))},t:function(){return b()<12?fo.timeNames[0]:fo.timeNames[1]},tt:function(){return b()<12?fo.timeNames[2]:fo.timeNames[3]},T:function(){return b()<12?fo.timeNames[4]:fo.timeNames[5]},TT:function(){return b()<12?fo.timeNames[6]:fo.timeNames[7]},Z:function(){return i?"GMT":r?"UTC":Pfe(e)},o:function(){return(R()>0?"-":"+")+Vo(Math.floor(Math.abs(R())/60)*100+Math.abs(R())%60,4)},p:function(){return(R()>0?"-":"+")+Vo(Math.floor(Math.abs(R())/60),2)+":"+Vo(Math.floor(Math.abs(R())%60),2)},S:function(){return["th","st","nd","rd"][u()%10>3?0:(u()%100-u()%10!=10)*u()%10]},W:function(){return A()},WW:function(){return Vo(A())},N:function(){return M()}};return t.replace(Nfe,function(I){return I in j?j[I]():I.slice(1,I.length-1)})}var B3={default:"ddd mmm dd yyyy HH:MM:ss",shortDate:"m/d/yy",paddedShortDate:"mm/dd/yyyy",mediumDate:"mmm d, yyyy",longDate:"mmmm d, yyyy",fullDate:"dddd, mmmm d, yyyy",shortTime:"h:MM TT",mediumTime:"h:MM:ss TT",longTime:"h:MM:ss TT Z",isoDate:"yyyy-mm-dd",isoTime:"HH:MM:ss",isoDateTime:"yyyy-mm-dd'T'HH:MM:sso",isoUtcDateTime:"UTC:yyyy-mm-dd'T'HH:MM:ss'Z'",expiresHeaderFormat:"ddd, dd mmm yyyy HH:MM:ss Z"},fo={dayNames:["Sun","Mon","Tue","Wed","Thu","Fri","Sat","Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],monthNames:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec","January","February","March","April","May","June","July","August","September","October","November","December"],timeNames:["a","p","am","pm","A","P","AM","PM"]},Vo=function(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:2;return String(t).padStart(r,"0")},U3=function(t){var r=t.y,i=t.m,s=t.d,c=t._,u=t.dayName,h=t.short,m=h===void 0?!1:h,v=new Date,b=new Date;b.setDate(b[c+"Date"]()-1);var x=new Date;x.setDate(x[c+"Date"]()+1);var C=function(){return v[c+"Date"]()},_=function(){return v[c+"Month"]()},R=function(){return v[c+"FullYear"]()},A=function(){return b[c+"Date"]()},M=function(){return b[c+"Month"]()},j=function(){return b[c+"FullYear"]()},I=function(){return x[c+"Date"]()},z=function(){return x[c+"Month"]()},B=function(){return x[c+"FullYear"]()};return R()===r&&_()===i&&C()===s?m?"Tdy":"Today":j()===r&&M()===i&&A()===s?m?"Ysd":"Yesterday":B()===r&&z()===i&&I()===s?m?"Tmw":"Tomorrow":u},kfe=function(t){var r=new Date(t.getFullYear(),t.getMonth(),t.getDate());r.setDate(r.getDate()-(r.getDay()+6)%7+3);var i=new Date(r.getFullYear(),0,4);i.setDate(i.getDate()-(i.getDay()+6)%7+3);var s=r.getTimezoneOffset()-i.getTimezoneOffset();r.setHours(r.getHours()-s);var c=(r-i)/(864e5*7);return 1+Math.floor(c)},Dfe=function(t){var r=t.getDay();return r===0&&(r=7),r},Pfe=function(t){return(String(t).match(Rfe)||[""]).pop().replace(Ofe,"").replace(/GMT\+0000/g,"UTC")};const Mfe={isConnected:!1,isProcessing:!1,currentStep:0,log:[],shouldShowLogViewer:!1,shouldDisplayInProgress:!1,isGFPGANAvailable:!0,isESRGANAvailable:!0,socketId:"",shouldConfirmOnDelete:!0,openAccordions:[0]},Ife=Mfe,uU=Bk({name:"system",initialState:Ife,reducers:{setShouldDisplayInProgress:(e,t)=>{e.shouldDisplayInProgress=t.payload},setIsProcessing:(e,t)=>{e.isProcessing=t.payload,t.payload===!1&&(e.currentStep=0)},setCurrentStep:(e,t)=>{e.currentStep=t.payload},addLogEntry:(e,t)=>{const r={timestamp:Afe(new Date,"isoDateTime"),message:t.payload};e.log.push(r)},setShouldShowLogViewer:(e,t)=>{e.shouldShowLogViewer=t.payload},setIsConnected:(e,t)=>{e.isConnected=t.payload},setSocketId:(e,t)=>{e.socketId=t.payload},setShouldConfirmOnDelete:(e,t)=>{e.shouldConfirmOnDelete=t.payload},setOpenAccordions:(e,t)=>{e.openAccordions=t.payload}}}),{setShouldDisplayInProgress:Lfe,setIsProcessing:wf,setCurrentStep:px,addLogEntry:qi,setShouldShowLogViewer:Ffe,setIsConnected:j3,setSocketId:vme,setShouldConfirmOnDelete:cU,setOpenAccordions:zfe}=uU.actions,Bfe=uU.reducer,gu=Object.create(null);gu.open="0";gu.close="1";gu.ping="2";gu.pong="3";gu.message="4";gu.upgrade="5";gu.noop="6";const Ix=Object.create(null);Object.keys(gu).forEach(e=>{Ix[gu[e]]=e});const Ufe={type:"error",data:"parser error"},jfe=typeof Blob=="function"||typeof Blob<"u"&&Object.prototype.toString.call(Blob)==="[object BlobConstructor]",$fe=typeof ArrayBuffer=="function",Vfe=e=>typeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(e):e&&e.buffer instanceof ArrayBuffer,fU=({type:e,data:t},r,i)=>jfe&&t instanceof Blob?r?i(t):$3(t,i):$fe&&(t instanceof ArrayBuffer||Vfe(t))?r?i(t):$3(new Blob([t]),i):i(gu[e]+(t||"")),$3=(e,t)=>{const r=new FileReader;return r.onload=function(){const i=r.result.split(",")[1];t("b"+i)},r.readAsDataURL(e)},V3="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Py=typeof Uint8Array>"u"?[]:new Uint8Array(256);for(let e=0;e<V3.length;e++)Py[V3.charCodeAt(e)]=e;const Hfe=e=>{let t=e.length*.75,r=e.length,i,s=0,c,u,h,m;e[e.length-1]==="="&&(t--,e[e.length-2]==="="&&t--);const v=new ArrayBuffer(t),b=new Uint8Array(v);for(i=0;i<r;i+=4)c=Py[e.charCodeAt(i)],u=Py[e.charCodeAt(i+1)],h=Py[e.charCodeAt(i+2)],m=Py[e.charCodeAt(i+3)],b[s++]=c<<2|u>>4,b[s++]=(u&15)<<4|h>>2,b[s++]=(h&3)<<6|m&63;return v},Wfe=typeof ArrayBuffer=="function",dU=(e,t)=>{if(typeof e!="string")return{type:"message",data:pU(e,t)};const r=e.charAt(0);return r==="b"?{type:"message",data:Gfe(e.substring(1),t)}:Ix[r]?e.length>1?{type:Ix[r],data:e.substring(1)}:{type:Ix[r]}:Ufe},Gfe=(e,t)=>{if(Wfe){const r=Hfe(e);return pU(r,t)}else return{base64:!0,data:e}},pU=(e,t)=>{switch(t){case"blob":return e instanceof ArrayBuffer?new Blob([e]):e;case"arraybuffer":default:return e}},hU=String.fromCharCode(30),Yfe=(e,t)=>{const r=e.length,i=new Array(r);let s=0;e.forEach((c,u)=>{fU(c,!1,h=>{i[u]=h,++s===r&&t(i.join(hU))})})},qfe=(e,t)=>{const r=e.split(hU),i=[];for(let s=0;s<r.length;s++){const c=dU(r[s],t);if(i.push(c),c.type==="error")break}return i},mU=4;function la(e){if(e)return Kfe(e)}function Kfe(e){for(var t in la.prototype)e[t]=la.prototype[t];return e}la.prototype.on=la.prototype.addEventListener=function(e,t){return this._callbacks=this._callbacks||{},(this._callbacks["$"+e]=this._callbacks["$"+e]||[]).push(t),this};la.prototype.once=function(e,t){function r(){this.off(e,r),t.apply(this,arguments)}return r.fn=t,this.on(e,r),this};la.prototype.off=la.prototype.removeListener=la.prototype.removeAllListeners=la.prototype.removeEventListener=function(e,t){if(this._callbacks=this._callbacks||{},arguments.length==0)return this._callbacks={},this;var r=this._callbacks["$"+e];if(!r)return this;if(arguments.length==1)return delete this._callbacks["$"+e],this;for(var i,s=0;s<r.length;s++)if(i=r[s],i===t||i.fn===t){r.splice(s,1);break}return r.length===0&&delete this._callbacks["$"+e],this};la.prototype.emit=function(e){this._callbacks=this._callbacks||{};for(var t=new Array(arguments.length-1),r=this._callbacks["$"+e],i=1;i<arguments.length;i++)t[i-1]=arguments[i];if(r){r=r.slice(0);for(var i=0,s=r.length;i<s;++i)r[i].apply(this,t)}return this};la.prototype.emitReserved=la.prototype.emit;la.prototype.listeners=function(e){return this._callbacks=this._callbacks||{},this._callbacks["$"+e]||[]};la.prototype.hasListeners=function(e){return!!this.listeners(e).length};const If=(()=>typeof self<"u"?self:typeof window<"u"?window:Function("return this")())();function vU(e,...t){return t.reduce((r,i)=>(e.hasOwnProperty(i)&&(r[i]=e[i]),r),{})}const Xfe=setTimeout,Zfe=clearTimeout;function uC(e,t){t.useNativeTimers?(e.setTimeoutFn=Xfe.bind(If),e.clearTimeoutFn=Zfe.bind(If)):(e.setTimeoutFn=setTimeout.bind(If),e.clearTimeoutFn=clearTimeout.bind(If))}const Qfe=1.33;function Jfe(e){return typeof e=="string"?ede(e):Math.ceil((e.byteLength||e.size)*Qfe)}function ede(e){let t=0,r=0;for(let i=0,s=e.length;i<s;i++)t=e.charCodeAt(i),t<128?r+=1:t<2048?r+=2:t<55296||t>=57344?r+=3:(i++,r+=4);return r}class tde extends Error{constructor(t,r,i){super(t),this.description=r,this.context=i,this.type="TransportError"}}class gU extends la{constructor(t){super(),this.writable=!1,uC(this,t),this.opts=t,this.query=t.query,this.readyState="",this.socket=t.socket}onError(t,r,i){return super.emitReserved("error",new tde(t,r,i)),this}open(){return(this.readyState==="closed"||this.readyState==="")&&(this.readyState="opening",this.doOpen()),this}close(){return(this.readyState==="opening"||this.readyState==="open")&&(this.doClose(),this.onClose()),this}send(t){this.readyState==="open"&&this.write(t)}onOpen(){this.readyState="open",this.writable=!0,super.emitReserved("open")}onData(t){const r=dU(t,this.socket.binaryType);this.onPacket(r)}onPacket(t){super.emitReserved("packet",t)}onClose(t){this.readyState="closed",super.emitReserved("close",t)}}const yU="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz-_".split(""),YA=64,nde={};let H3=0,hx=0,W3;function G3(e){let t="";do t=yU[e%YA]+t,e=Math.floor(e/YA);while(e>0);return t}function bU(){const e=G3(+new Date);return e!==W3?(H3=0,W3=e):e+"."+G3(H3++)}for(;hx<YA;hx++)nde[yU[hx]]=hx;function SU(e){let t="";for(let r in e)e.hasOwnProperty(r)&&(t.length&&(t+="&"),t+=encodeURIComponent(r)+"="+encodeURIComponent(e[r]));return t}function rde(e){let t={},r=e.split("&");for(let i=0,s=r.length;i<s;i++){let c=r[i].split("=");t[decodeURIComponent(c[0])]=decodeURIComponent(c[1])}return t}let xU=!1;try{xU=typeof XMLHttpRequest<"u"&&"withCredentials"in new XMLHttpRequest}catch{}const ade=xU;function wU(e){const t=e.xdomain;try{if(typeof XMLHttpRequest<"u"&&(!t||ade))return new XMLHttpRequest}catch{}if(!t)try{return new If[["Active"].concat("Object").join("X")]("Microsoft.XMLHTTP")}catch{}}function ide(){}const ode=function(){return new wU({xdomain:!1}).responseType!=null}();class sde extends gU{constructor(t){if(super(t),this.polling=!1,typeof location<"u"){const i=location.protocol==="https:";let s=location.port;s||(s=i?"443":"80"),this.xd=typeof location<"u"&&t.hostname!==location.hostname||s!==t.port,this.xs=t.secure!==i}const r=t&&t.forceBase64;this.supportsBinary=ode&&!r}get name(){return"polling"}doOpen(){this.poll()}pause(t){this.readyState="pausing";const r=()=>{this.readyState="paused",t()};if(this.polling||!this.writable){let i=0;this.polling&&(i++,this.once("pollComplete",function(){--i||r()})),this.writable||(i++,this.once("drain",function(){--i||r()}))}else r()}poll(){this.polling=!0,this.doPoll(),this.emitReserved("poll")}onData(t){const r=i=>{if(this.readyState==="opening"&&i.type==="open"&&this.onOpen(),i.type==="close")return this.onClose({description:"transport closed by the server"}),!1;this.onPacket(i)};qfe(t,this.socket.binaryType).forEach(r),this.readyState!=="closed"&&(this.polling=!1,this.emitReserved("pollComplete"),this.readyState==="open"&&this.poll())}doClose(){const t=()=>{this.write([{type:"close"}])};this.readyState==="open"?t():this.once("open",t)}write(t){this.writable=!1,Yfe(t,r=>{this.doWrite(r,()=>{this.writable=!0,this.emitReserved("drain")})})}uri(){let t=this.query||{};const r=this.opts.secure?"https":"http";let i="";this.opts.timestampRequests!==!1&&(t[this.opts.timestampParam]=bU()),!this.supportsBinary&&!t.sid&&(t.b64=1),this.opts.port&&(r==="https"&&Number(this.opts.port)!==443||r==="http"&&Number(this.opts.port)!==80)&&(i=":"+this.opts.port);const s=SU(t),c=this.opts.hostname.indexOf(":")!==-1;return r+"://"+(c?"["+this.opts.hostname+"]":this.opts.hostname)+i+this.opts.path+(s.length?"?"+s:"")}request(t={}){return Object.assign(t,{xd:this.xd,xs:this.xs},this.opts),new hu(this.uri(),t)}doWrite(t,r){const i=this.request({method:"POST",data:t});i.on("success",r),i.on("error",(s,c)=>{this.onError("xhr post error",s,c)})}doPoll(){const t=this.request();t.on("data",this.onData.bind(this)),t.on("error",(r,i)=>{this.onError("xhr poll error",r,i)}),this.pollXhr=t}}class hu extends la{constructor(t,r){super(),uC(this,r),this.opts=r,this.method=r.method||"GET",this.uri=t,this.async=r.async!==!1,this.data=r.data!==void 0?r.data:null,this.create()}create(){const t=vU(this.opts,"agent","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","autoUnref");t.xdomain=!!this.opts.xd,t.xscheme=!!this.opts.xs;const r=this.xhr=new wU(t);try{r.open(this.method,this.uri,this.async);try{if(this.opts.extraHeaders){r.setDisableHeaderCheck&&r.setDisableHeaderCheck(!0);for(let i in this.opts.extraHeaders)this.opts.extraHeaders.hasOwnProperty(i)&&r.setRequestHeader(i,this.opts.extraHeaders[i])}}catch{}if(this.method==="POST")try{r.setRequestHeader("Content-type","text/plain;charset=UTF-8")}catch{}try{r.setRequestHeader("Accept","*/*")}catch{}"withCredentials"in r&&(r.withCredentials=this.opts.withCredentials),this.opts.requestTimeout&&(r.timeout=this.opts.requestTimeout),r.onreadystatechange=()=>{r.readyState===4&&(r.status===200||r.status===1223?this.onLoad():this.setTimeoutFn(()=>{this.onError(typeof r.status=="number"?r.status:0)},0))},r.send(this.data)}catch(i){this.setTimeoutFn(()=>{this.onError(i)},0);return}typeof document<"u"&&(this.index=hu.requestsCount++,hu.requests[this.index]=this)}onError(t){this.emitReserved("error",t,this.xhr),this.cleanup(!0)}cleanup(t){if(!(typeof this.xhr>"u"||this.xhr===null)){if(this.xhr.onreadystatechange=ide,t)try{this.xhr.abort()}catch{}typeof document<"u"&&delete hu.requests[this.index],this.xhr=null}}onLoad(){const t=this.xhr.responseText;t!==null&&(this.emitReserved("data",t),this.emitReserved("success"),this.cleanup())}abort(){this.cleanup()}}hu.requestsCount=0;hu.requests={};if(typeof document<"u"){if(typeof attachEvent=="function")attachEvent("onunload",Y3);else if(typeof addEventListener=="function"){const e="onpagehide"in If?"pagehide":"unload";addEventListener(e,Y3,!1)}}function Y3(){for(let e in hu.requests)hu.requests.hasOwnProperty(e)&&hu.requests[e].abort()}const lde=(()=>typeof Promise=="function"&&typeof Promise.resolve=="function"?t=>Promise.resolve().then(t):(t,r)=>r(t,0))(),mx=If.WebSocket||If.MozWebSocket,q3=!0,ude="arraybuffer",K3=typeof navigator<"u"&&typeof navigator.product=="string"&&navigator.product.toLowerCase()==="reactnative";class cde extends gU{constructor(t){super(t),this.supportsBinary=!t.forceBase64}get name(){return"websocket"}doOpen(){if(!this.check())return;const t=this.uri(),r=this.opts.protocols,i=K3?{}:vU(this.opts,"agent","perMessageDeflate","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","localAddress","protocolVersion","origin","maxPayload","family","checkServerIdentity");this.opts.extraHeaders&&(i.headers=this.opts.extraHeaders);try{this.ws=q3&&!K3?r?new mx(t,r):new mx(t):new mx(t,r,i)}catch(s){return this.emitReserved("error",s)}this.ws.binaryType=this.socket.binaryType||ude,this.addEventListeners()}addEventListeners(){this.ws.onopen=()=>{this.opts.autoUnref&&this.ws._socket.unref(),this.onOpen()},this.ws.onclose=t=>this.onClose({description:"websocket connection closed",context:t}),this.ws.onmessage=t=>this.onData(t.data),this.ws.onerror=t=>this.onError("websocket error",t)}write(t){this.writable=!1;for(let r=0;r<t.length;r++){const i=t[r],s=r===t.length-1;fU(i,this.supportsBinary,c=>{const u={};try{q3&&this.ws.send(c)}catch{}s&&lde(()=>{this.writable=!0,this.emitReserved("drain")},this.setTimeoutFn)})}}doClose(){typeof this.ws<"u"&&(this.ws.close(),this.ws=null)}uri(){let t=this.query||{};const r=this.opts.secure?"wss":"ws";let i="";this.opts.port&&(r==="wss"&&Number(this.opts.port)!==443||r==="ws"&&Number(this.opts.port)!==80)&&(i=":"+this.opts.port),this.opts.timestampRequests&&(t[this.opts.timestampParam]=bU()),this.supportsBinary||(t.b64=1);const s=SU(t),c=this.opts.hostname.indexOf(":")!==-1;return r+"://"+(c?"["+this.opts.hostname+"]":this.opts.hostname)+i+this.opts.path+(s.length?"?"+s:"")}check(){return!!mx}}const fde={websocket:cde,polling:sde},dde=/^(?:(?![^:@]+:[^:@\/]*@)(http|https|ws|wss):\/\/)?((?:(([^:@]*)(?::([^:@]*))?)?@)?((?:[a-f0-9]{0,4}:){2,7}[a-f0-9]{0,4}|[^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/,pde=["source","protocol","authority","userInfo","user","password","host","port","relative","path","directory","file","query","anchor"];function qA(e){const t=e,r=e.indexOf("["),i=e.indexOf("]");r!=-1&&i!=-1&&(e=e.substring(0,r)+e.substring(r,i).replace(/:/g,";")+e.substring(i,e.length));let s=dde.exec(e||""),c={},u=14;for(;u--;)c[pde[u]]=s[u]||"";return r!=-1&&i!=-1&&(c.source=t,c.host=c.host.substring(1,c.host.length-1).replace(/;/g,":"),c.authority=c.authority.replace("[","").replace("]","").replace(/;/g,":"),c.ipv6uri=!0),c.pathNames=hde(c,c.path),c.queryKey=mde(c,c.query),c}function hde(e,t){const r=/\/{2,9}/g,i=t.replace(r,"/").split("/");return(t.substr(0,1)=="/"||t.length===0)&&i.splice(0,1),t.substr(t.length-1,1)=="/"&&i.splice(i.length-1,1),i}function mde(e,t){const r={};return t.replace(/(?:^|&)([^&=]*)=?([^&]*)/g,function(i,s,c){s&&(r[s]=c)}),r}class Af extends la{constructor(t,r={}){super(),t&&typeof t=="object"&&(r=t,t=null),t?(t=qA(t),r.hostname=t.host,r.secure=t.protocol==="https"||t.protocol==="wss",r.port=t.port,t.query&&(r.query=t.query)):r.host&&(r.hostname=qA(r.host).host),uC(this,r),this.secure=r.secure!=null?r.secure:typeof location<"u"&&location.protocol==="https:",r.hostname&&!r.port&&(r.port=this.secure?"443":"80"),this.hostname=r.hostname||(typeof location<"u"?location.hostname:"localhost"),this.port=r.port||(typeof location<"u"&&location.port?location.port:this.secure?"443":"80"),this.transports=r.transports||["polling","websocket"],this.readyState="",this.writeBuffer=[],this.prevBufferLen=0,this.opts=Object.assign({path:"/engine.io",agent:!1,withCredentials:!1,upgrade:!0,timestampParam:"t",rememberUpgrade:!1,rejectUnauthorized:!0,perMessageDeflate:{threshold:1024},transportOptions:{},closeOnBeforeunload:!0},r),this.opts.path=this.opts.path.replace(/\/$/,"")+"/",typeof this.opts.query=="string"&&(this.opts.query=rde(this.opts.query)),this.id=null,this.upgrades=null,this.pingInterval=null,this.pingTimeout=null,this.pingTimeoutTimer=null,typeof addEventListener=="function"&&(this.opts.closeOnBeforeunload&&addEventListener("beforeunload",()=>{this.transport&&(this.transport.removeAllListeners(),this.transport.close())},!1),this.hostname!=="localhost"&&(this.offlineEventListener=()=>{this.onClose("transport close",{description:"network connection lost"})},addEventListener("offline",this.offlineEventListener,!1))),this.open()}createTransport(t){const r=Object.assign({},this.opts.query);r.EIO=mU,r.transport=t,this.id&&(r.sid=this.id);const i=Object.assign({},this.opts.transportOptions[t],this.opts,{query:r,socket:this,hostname:this.hostname,secure:this.secure,port:this.port});return new fde[t](i)}open(){let t;if(this.opts.rememberUpgrade&&Af.priorWebsocketSuccess&&this.transports.indexOf("websocket")!==-1)t="websocket";else if(this.transports.length===0){this.setTimeoutFn(()=>{this.emitReserved("error","No transports available")},0);return}else t=this.transports[0];this.readyState="opening";try{t=this.createTransport(t)}catch{this.transports.shift(),this.open();return}t.open(),this.setTransport(t)}setTransport(t){this.transport&&this.transport.removeAllListeners(),this.transport=t,t.on("drain",this.onDrain.bind(this)).on("packet",this.onPacket.bind(this)).on("error",this.onError.bind(this)).on("close",r=>this.onClose("transport close",r))}probe(t){let r=this.createTransport(t),i=!1;Af.priorWebsocketSuccess=!1;const s=()=>{i||(r.send([{type:"ping",data:"probe"}]),r.once("packet",x=>{if(!i)if(x.type==="pong"&&x.data==="probe"){if(this.upgrading=!0,this.emitReserved("upgrading",r),!r)return;Af.priorWebsocketSuccess=r.name==="websocket",this.transport.pause(()=>{i||this.readyState!=="closed"&&(b(),this.setTransport(r),r.send([{type:"upgrade"}]),this.emitReserved("upgrade",r),r=null,this.upgrading=!1,this.flush())})}else{const C=new Error("probe error");C.transport=r.name,this.emitReserved("upgradeError",C)}}))};function c(){i||(i=!0,b(),r.close(),r=null)}const u=x=>{const C=new Error("probe error: "+x);C.transport=r.name,c(),this.emitReserved("upgradeError",C)};function h(){u("transport closed")}function m(){u("socket closed")}function v(x){r&&x.name!==r.name&&c()}const b=()=>{r.removeListener("open",s),r.removeListener("error",u),r.removeListener("close",h),this.off("close",m),this.off("upgrading",v)};r.once("open",s),r.once("error",u),r.once("close",h),this.once("close",m),this.once("upgrading",v),r.open()}onOpen(){if(this.readyState="open",Af.priorWebsocketSuccess=this.transport.name==="websocket",this.emitReserved("open"),this.flush(),this.readyState==="open"&&this.opts.upgrade&&this.transport.pause){let t=0;const r=this.upgrades.length;for(;t<r;t++)this.probe(this.upgrades[t])}}onPacket(t){if(this.readyState==="opening"||this.readyState==="open"||this.readyState==="closing")switch(this.emitReserved("packet",t),this.emitReserved("heartbeat"),t.type){case"open":this.onHandshake(JSON.parse(t.data));break;case"ping":this.resetPingTimeout(),this.sendPacket("pong"),this.emitReserved("ping"),this.emitReserved("pong");break;case"error":const r=new Error("server error");r.code=t.data,this.onError(r);break;case"message":this.emitReserved("data",t.data),this.emitReserved("message",t.data);break}}onHandshake(t){this.emitReserved("handshake",t),this.id=t.sid,this.transport.query.sid=t.sid,this.upgrades=this.filterUpgrades(t.upgrades),this.pingInterval=t.pingInterval,this.pingTimeout=t.pingTimeout,this.maxPayload=t.maxPayload,this.onOpen(),this.readyState!=="closed"&&this.resetPingTimeout()}resetPingTimeout(){this.clearTimeoutFn(this.pingTimeoutTimer),this.pingTimeoutTimer=this.setTimeoutFn(()=>{this.onClose("ping timeout")},this.pingInterval+this.pingTimeout),this.opts.autoUnref&&this.pingTimeoutTimer.unref()}onDrain(){this.writeBuffer.splice(0,this.prevBufferLen),this.prevBufferLen=0,this.writeBuffer.length===0?this.emitReserved("drain"):this.flush()}flush(){if(this.readyState!=="closed"&&this.transport.writable&&!this.upgrading&&this.writeBuffer.length){const t=this.getWritablePackets();this.transport.send(t),this.prevBufferLen=t.length,this.emitReserved("flush")}}getWritablePackets(){if(!(this.maxPayload&&this.transport.name==="polling"&&this.writeBuffer.length>1))return this.writeBuffer;let r=1;for(let i=0;i<this.writeBuffer.length;i++){const s=this.writeBuffer[i].data;if(s&&(r+=Jfe(s)),i>0&&r>this.maxPayload)return this.writeBuffer.slice(0,i);r+=2}return this.writeBuffer}write(t,r,i){return this.sendPacket("message",t,r,i),this}send(t,r,i){return this.sendPacket("message",t,r,i),this}sendPacket(t,r,i,s){if(typeof r=="function"&&(s=r,r=void 0),typeof i=="function"&&(s=i,i=null),this.readyState==="closing"||this.readyState==="closed")return;i=i||{},i.compress=i.compress!==!1;const c={type:t,data:r,options:i};this.emitReserved("packetCreate",c),this.writeBuffer.push(c),s&&this.once("flush",s),this.flush()}close(){const t=()=>{this.onClose("forced close"),this.transport.close()},r=()=>{this.off("upgrade",r),this.off("upgradeError",r),t()},i=()=>{this.once("upgrade",r),this.once("upgradeError",r)};return(this.readyState==="opening"||this.readyState==="open")&&(this.readyState="closing",this.writeBuffer.length?this.once("drain",()=>{this.upgrading?i():t()}):this.upgrading?i():t()),this}onError(t){Af.priorWebsocketSuccess=!1,this.emitReserved("error",t),this.onClose("transport error",t)}onClose(t,r){(this.readyState==="opening"||this.readyState==="open"||this.readyState==="closing")&&(this.clearTimeoutFn(this.pingTimeoutTimer),this.transport.removeAllListeners("close"),this.transport.close(),this.transport.removeAllListeners(),typeof removeEventListener=="function"&&removeEventListener("offline",this.offlineEventListener,!1),this.readyState="closed",this.id=null,this.emitReserved("close",t,r),this.writeBuffer=[],this.prevBufferLen=0)}filterUpgrades(t){const r=[];let i=0;const s=t.length;for(;i<s;i++)~this.transports.indexOf(t[i])&&r.push(t[i]);return r}}Af.protocol=mU;function vde(e,t="",r){let i=e;r=r||typeof location<"u"&&location,e==null&&(e=r.protocol+"//"+r.host),typeof e=="string"&&(e.charAt(0)==="/"&&(e.charAt(1)==="/"?e=r.protocol+e:e=r.host+e),/^(https?|wss?):\/\//.test(e)||(typeof r<"u"?e=r.protocol+"//"+e:e="https://"+e),i=qA(e)),i.port||(/^(http|ws)$/.test(i.protocol)?i.port="80":/^(http|ws)s$/.test(i.protocol)&&(i.port="443")),i.path=i.path||"/";const c=i.host.indexOf(":")!==-1?"["+i.host+"]":i.host;return i.id=i.protocol+"://"+c+":"+i.port+t,i.href=i.protocol+"://"+c+(r&&r.port===i.port?"":":"+i.port),i}const gde=typeof ArrayBuffer=="function",yde=e=>typeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(e):e.buffer instanceof ArrayBuffer,CU=Object.prototype.toString,bde=typeof Blob=="function"||typeof Blob<"u"&&CU.call(Blob)==="[object BlobConstructor]",Sde=typeof File=="function"||typeof File<"u"&&CU.call(File)==="[object FileConstructor]";function Xk(e){return gde&&(e instanceof ArrayBuffer||yde(e))||bde&&e instanceof Blob||Sde&&e instanceof File}function Lx(e,t){if(!e||typeof e!="object")return!1;if(Array.isArray(e)){for(let r=0,i=e.length;r<i;r++)if(Lx(e[r]))return!0;return!1}if(Xk(e))return!0;if(e.toJSON&&typeof e.toJSON=="function"&&arguments.length===1)return Lx(e.toJSON(),!0);for(const r in e)if(Object.prototype.hasOwnProperty.call(e,r)&&Lx(e[r]))return!0;return!1}function xde(e){const t=[],r=e.data,i=e;return i.data=KA(r,t),i.attachments=t.length,{packet:i,buffers:t}}function KA(e,t){if(!e)return e;if(Xk(e)){const r={_placeholder:!0,num:t.length};return t.push(e),r}else if(Array.isArray(e)){const r=new Array(e.length);for(let i=0;i<e.length;i++)r[i]=KA(e[i],t);return r}else if(typeof e=="object"&&!(e instanceof Date)){const r={};for(const i in e)Object.prototype.hasOwnProperty.call(e,i)&&(r[i]=KA(e[i],t));return r}return e}function wde(e,t){return e.data=XA(e.data,t),e.attachments=void 0,e}function XA(e,t){if(!e)return e;if(e&&e._placeholder===!0){if(typeof e.num=="number"&&e.num>=0&&e.num<t.length)return t[e.num];throw new Error("illegal attachments")}else if(Array.isArray(e))for(let r=0;r<e.length;r++)e[r]=XA(e[r],t);else if(typeof e=="object")for(const r in e)Object.prototype.hasOwnProperty.call(e,r)&&(e[r]=XA(e[r],t));return e}const Cde=5;var Vn;(function(e){e[e.CONNECT=0]="CONNECT",e[e.DISCONNECT=1]="DISCONNECT",e[e.EVENT=2]="EVENT",e[e.ACK=3]="ACK",e[e.CONNECT_ERROR=4]="CONNECT_ERROR",e[e.BINARY_EVENT=5]="BINARY_EVENT",e[e.BINARY_ACK=6]="BINARY_ACK"})(Vn||(Vn={}));class _de{constructor(t){this.replacer=t}encode(t){return(t.type===Vn.EVENT||t.type===Vn.ACK)&&Lx(t)?(t.type=t.type===Vn.EVENT?Vn.BINARY_EVENT:Vn.BINARY_ACK,this.encodeAsBinary(t)):[this.encodeAsString(t)]}encodeAsString(t){let r=""+t.type;return(t.type===Vn.BINARY_EVENT||t.type===Vn.BINARY_ACK)&&(r+=t.attachments+"-"),t.nsp&&t.nsp!=="/"&&(r+=t.nsp+","),t.id!=null&&(r+=t.id),t.data!=null&&(r+=JSON.stringify(t.data,this.replacer)),r}encodeAsBinary(t){const r=xde(t),i=this.encodeAsString(r.packet),s=r.buffers;return s.unshift(i),s}}class Zk extends la{constructor(t){super(),this.reviver=t}add(t){let r;if(typeof t=="string"){if(this.reconstructor)throw new Error("got plaintext data when reconstructing a packet");r=this.decodeString(t),r.type===Vn.BINARY_EVENT||r.type===Vn.BINARY_ACK?(this.reconstructor=new Ede(r),r.attachments===0&&super.emitReserved("decoded",r)):super.emitReserved("decoded",r)}else if(Xk(t)||t.base64)if(this.reconstructor)r=this.reconstructor.takeBinaryData(t),r&&(this.reconstructor=null,super.emitReserved("decoded",r));else throw new Error("got binary data when not reconstructing a packet");else throw new Error("Unknown type: "+t)}decodeString(t){let r=0;const i={type:Number(t.charAt(0))};if(Vn[i.type]===void 0)throw new Error("unknown packet type "+i.type);if(i.type===Vn.BINARY_EVENT||i.type===Vn.BINARY_ACK){const c=r+1;for(;t.charAt(++r)!=="-"&&r!=t.length;);const u=t.substring(c,r);if(u!=Number(u)||t.charAt(r)!=="-")throw new Error("Illegal attachments");i.attachments=Number(u)}if(t.charAt(r+1)==="/"){const c=r+1;for(;++r&&!(t.charAt(r)===","||r===t.length););i.nsp=t.substring(c,r)}else i.nsp="/";const s=t.charAt(r+1);if(s!==""&&Number(s)==s){const c=r+1;for(;++r;){const u=t.charAt(r);if(u==null||Number(u)!=u){--r;break}if(r===t.length)break}i.id=Number(t.substring(c,r+1))}if(t.charAt(++r)){const c=this.tryParse(t.substr(r));if(Zk.isPayloadValid(i.type,c))i.data=c;else throw new Error("invalid payload")}return i}tryParse(t){try{return JSON.parse(t,this.reviver)}catch{return!1}}static isPayloadValid(t,r){switch(t){case Vn.CONNECT:return typeof r=="object";case Vn.DISCONNECT:return r===void 0;case Vn.CONNECT_ERROR:return typeof r=="string"||typeof r=="object";case Vn.EVENT:case Vn.BINARY_EVENT:return Array.isArray(r)&&r.length>0;case Vn.ACK:case Vn.BINARY_ACK:return Array.isArray(r)}}destroy(){this.reconstructor&&this.reconstructor.finishedReconstruction()}}class Ede{constructor(t){this.packet=t,this.buffers=[],this.reconPack=t}takeBinaryData(t){if(this.buffers.push(t),this.buffers.length===this.reconPack.attachments){const r=wde(this.reconPack,this.buffers);return this.finishedReconstruction(),r}return null}finishedReconstruction(){this.reconPack=null,this.buffers=[]}}const Tde=Object.freeze(Object.defineProperty({__proto__:null,protocol:Cde,get PacketType(){return Vn},Encoder:_de,Decoder:Zk},Symbol.toStringTag,{value:"Module"}));function Cl(e,t,r){return e.on(t,r),function(){e.off(t,r)}}const Nde=Object.freeze({connect:1,connect_error:1,disconnect:1,disconnecting:1,newListener:1,removeListener:1});class _U extends la{constructor(t,r,i){super(),this.connected=!1,this.receiveBuffer=[],this.sendBuffer=[],this.ids=0,this.acks={},this.flags={},this.io=t,this.nsp=r,i&&i.auth&&(this.auth=i.auth),this.io._autoConnect&&this.open()}get disconnected(){return!this.connected}subEvents(){if(this.subs)return;const t=this.io;this.subs=[Cl(t,"open",this.onopen.bind(this)),Cl(t,"packet",this.onpacket.bind(this)),Cl(t,"error",this.onerror.bind(this)),Cl(t,"close",this.onclose.bind(this))]}get active(){return!!this.subs}connect(){return this.connected?this:(this.subEvents(),this.io._reconnecting||this.io.open(),this.io._readyState==="open"&&this.onopen(),this)}open(){return this.connect()}send(...t){return t.unshift("message"),this.emit.apply(this,t),this}emit(t,...r){if(Nde.hasOwnProperty(t))throw new Error('"'+t.toString()+'" is a reserved event name');r.unshift(t);const i={type:Vn.EVENT,data:r};if(i.options={},i.options.compress=this.flags.compress!==!1,typeof r[r.length-1]=="function"){const u=this.ids++,h=r.pop();this._registerAckCallback(u,h),i.id=u}const s=this.io.engine&&this.io.engine.transport&&this.io.engine.transport.writable;return this.flags.volatile&&(!s||!this.connected)||(this.connected?(this.notifyOutgoingListeners(i),this.packet(i)):this.sendBuffer.push(i)),this.flags={},this}_registerAckCallback(t,r){const i=this.flags.timeout;if(i===void 0){this.acks[t]=r;return}const s=this.io.setTimeoutFn(()=>{delete this.acks[t];for(let c=0;c<this.sendBuffer.length;c++)this.sendBuffer[c].id===t&&this.sendBuffer.splice(c,1);r.call(this,new Error("operation has timed out"))},i);this.acks[t]=(...c)=>{this.io.clearTimeoutFn(s),r.apply(this,[null,...c])}}packet(t){t.nsp=this.nsp,this.io._packet(t)}onopen(){typeof this.auth=="function"?this.auth(t=>{this.packet({type:Vn.CONNECT,data:t})}):this.packet({type:Vn.CONNECT,data:this.auth})}onerror(t){this.connected||this.emitReserved("connect_error",t)}onclose(t,r){this.connected=!1,delete this.id,this.emitReserved("disconnect",t,r)}onpacket(t){if(t.nsp===this.nsp)switch(t.type){case Vn.CONNECT:if(t.data&&t.data.sid){const s=t.data.sid;this.onconnect(s)}else this.emitReserved("connect_error",new Error("It seems you are trying to reach a Socket.IO server in v2.x with a v3.x client, but they are not compatible (more information here: https://socket.io/docs/v3/migrating-from-2-x-to-3-0/)"));break;case Vn.EVENT:case Vn.BINARY_EVENT:this.onevent(t);break;case Vn.ACK:case Vn.BINARY_ACK:this.onack(t);break;case Vn.DISCONNECT:this.ondisconnect();break;case Vn.CONNECT_ERROR:this.destroy();const i=new Error(t.data.message);i.data=t.data.data,this.emitReserved("connect_error",i);break}}onevent(t){const r=t.data||[];t.id!=null&&r.push(this.ack(t.id)),this.connected?this.emitEvent(r):this.receiveBuffer.push(Object.freeze(r))}emitEvent(t){if(this._anyListeners&&this._anyListeners.length){const r=this._anyListeners.slice();for(const i of r)i.apply(this,t)}super.emit.apply(this,t)}ack(t){const r=this;let i=!1;return function(...s){i||(i=!0,r.packet({type:Vn.ACK,id:t,data:s}))}}onack(t){const r=this.acks[t.id];typeof r=="function"&&(r.apply(this,t.data),delete this.acks[t.id])}onconnect(t){this.id=t,this.connected=!0,this.emitBuffered(),this.emitReserved("connect")}emitBuffered(){this.receiveBuffer.forEach(t=>this.emitEvent(t)),this.receiveBuffer=[],this.sendBuffer.forEach(t=>{this.notifyOutgoingListeners(t),this.packet(t)}),this.sendBuffer=[]}ondisconnect(){this.destroy(),this.onclose("io server disconnect")}destroy(){this.subs&&(this.subs.forEach(t=>t()),this.subs=void 0),this.io._destroy(this)}disconnect(){return this.connected&&this.packet({type:Vn.DISCONNECT}),this.destroy(),this.connected&&this.onclose("io client disconnect"),this}close(){return this.disconnect()}compress(t){return this.flags.compress=t,this}get volatile(){return this.flags.volatile=!0,this}timeout(t){return this.flags.timeout=t,this}onAny(t){return this._anyListeners=this._anyListeners||[],this._anyListeners.push(t),this}prependAny(t){return this._anyListeners=this._anyListeners||[],this._anyListeners.unshift(t),this}offAny(t){if(!this._anyListeners)return this;if(t){const r=this._anyListeners;for(let i=0;i<r.length;i++)if(t===r[i])return r.splice(i,1),this}else this._anyListeners=[];return this}listenersAny(){return this._anyListeners||[]}onAnyOutgoing(t){return this._anyOutgoingListeners=this._anyOutgoingListeners||[],this._anyOutgoingListeners.push(t),this}prependAnyOutgoing(t){return this._anyOutgoingListeners=this._anyOutgoingListeners||[],this._anyOutgoingListeners.unshift(t),this}offAnyOutgoing(t){if(!this._anyOutgoingListeners)return this;if(t){const r=this._anyOutgoingListeners;for(let i=0;i<r.length;i++)if(t===r[i])return r.splice(i,1),this}else this._anyOutgoingListeners=[];return this}listenersAnyOutgoing(){return this._anyOutgoingListeners||[]}notifyOutgoingListeners(t){if(this._anyOutgoingListeners&&this._anyOutgoingListeners.length){const r=this._anyOutgoingListeners.slice();for(const i of r)i.apply(this,t.data)}}}function sv(e){e=e||{},this.ms=e.min||100,this.max=e.max||1e4,this.factor=e.factor||2,this.jitter=e.jitter>0&&e.jitter<=1?e.jitter:0,this.attempts=0}sv.prototype.duration=function(){var e=this.ms*Math.pow(this.factor,this.attempts++);if(this.jitter){var t=Math.random(),r=Math.floor(t*this.jitter*e);e=(Math.floor(t*10)&1)==0?e-r:e+r}return Math.min(e,this.max)|0};sv.prototype.reset=function(){this.attempts=0};sv.prototype.setMin=function(e){this.ms=e};sv.prototype.setMax=function(e){this.max=e};sv.prototype.setJitter=function(e){this.jitter=e};class ZA extends la{constructor(t,r){var i;super(),this.nsps={},this.subs=[],t&&typeof t=="object"&&(r=t,t=void 0),r=r||{},r.path=r.path||"/socket.io",this.opts=r,uC(this,r),this.reconnection(r.reconnection!==!1),this.reconnectionAttempts(r.reconnectionAttempts||1/0),this.reconnectionDelay(r.reconnectionDelay||1e3),this.reconnectionDelayMax(r.reconnectionDelayMax||5e3),this.randomizationFactor((i=r.randomizationFactor)!==null&&i!==void 0?i:.5),this.backoff=new sv({min:this.reconnectionDelay(),max:this.reconnectionDelayMax(),jitter:this.randomizationFactor()}),this.timeout(r.timeout==null?2e4:r.timeout),this._readyState="closed",this.uri=t;const s=r.parser||Tde;this.encoder=new s.Encoder,this.decoder=new s.Decoder,this._autoConnect=r.autoConnect!==!1,this._autoConnect&&this.open()}reconnection(t){return arguments.length?(this._reconnection=!!t,this):this._reconnection}reconnectionAttempts(t){return t===void 0?this._reconnectionAttempts:(this._reconnectionAttempts=t,this)}reconnectionDelay(t){var r;return t===void 0?this._reconnectionDelay:(this._reconnectionDelay=t,(r=this.backoff)===null||r===void 0||r.setMin(t),this)}randomizationFactor(t){var r;return t===void 0?this._randomizationFactor:(this._randomizationFactor=t,(r=this.backoff)===null||r===void 0||r.setJitter(t),this)}reconnectionDelayMax(t){var r;return t===void 0?this._reconnectionDelayMax:(this._reconnectionDelayMax=t,(r=this.backoff)===null||r===void 0||r.setMax(t),this)}timeout(t){return arguments.length?(this._timeout=t,this):this._timeout}maybeReconnectOnOpen(){!this._reconnecting&&this._reconnection&&this.backoff.attempts===0&&this.reconnect()}open(t){if(~this._readyState.indexOf("open"))return this;this.engine=new Af(this.uri,this.opts);const r=this.engine,i=this;this._readyState="opening",this.skipReconnect=!1;const s=Cl(r,"open",function(){i.onopen(),t&&t()}),c=Cl(r,"error",u=>{i.cleanup(),i._readyState="closed",this.emitReserved("error",u),t?t(u):i.maybeReconnectOnOpen()});if(this._timeout!==!1){const u=this._timeout;u===0&&s();const h=this.setTimeoutFn(()=>{s(),r.close(),r.emit("error",new Error("timeout"))},u);this.opts.autoUnref&&h.unref(),this.subs.push(function(){clearTimeout(h)})}return this.subs.push(s),this.subs.push(c),this}connect(t){return this.open(t)}onopen(){this.cleanup(),this._readyState="open",this.emitReserved("open");const t=this.engine;this.subs.push(Cl(t,"ping",this.onping.bind(this)),Cl(t,"data",this.ondata.bind(this)),Cl(t,"error",this.onerror.bind(this)),Cl(t,"close",this.onclose.bind(this)),Cl(this.decoder,"decoded",this.ondecoded.bind(this)))}onping(){this.emitReserved("ping")}ondata(t){try{this.decoder.add(t)}catch{this.onclose("parse error")}}ondecoded(t){this.emitReserved("packet",t)}onerror(t){this.emitReserved("error",t)}socket(t,r){let i=this.nsps[t];return i||(i=new _U(this,t,r),this.nsps[t]=i),i}_destroy(t){const r=Object.keys(this.nsps);for(const i of r)if(this.nsps[i].active)return;this._close()}_packet(t){const r=this.encoder.encode(t);for(let i=0;i<r.length;i++)this.engine.write(r[i],t.options)}cleanup(){this.subs.forEach(t=>t()),this.subs.length=0,this.decoder.destroy()}_close(){this.skipReconnect=!0,this._reconnecting=!1,this.onclose("forced close"),this.engine&&this.engine.close()}disconnect(){return this._close()}onclose(t,r){this.cleanup(),this.backoff.reset(),this._readyState="closed",this.emitReserved("close",t,r),this._reconnection&&!this.skipReconnect&&this.reconnect()}reconnect(){if(this._reconnecting||this.skipReconnect)return this;const t=this;if(this.backoff.attempts>=this._reconnectionAttempts)this.backoff.reset(),this.emitReserved("reconnect_failed"),this._reconnecting=!1;else{const r=this.backoff.duration();this._reconnecting=!0;const i=this.setTimeoutFn(()=>{t.skipReconnect||(this.emitReserved("reconnect_attempt",t.backoff.attempts),!t.skipReconnect&&t.open(s=>{s?(t._reconnecting=!1,t.reconnect(),this.emitReserved("reconnect_error",s)):t.onreconnect()}))},r);this.opts.autoUnref&&i.unref(),this.subs.push(function(){clearTimeout(i)})}}onreconnect(){const t=this.backoff.attempts;this._reconnecting=!1,this.backoff.reset(),this.emitReserved("reconnect",t)}}const Ny={};function Fx(e,t){typeof e=="object"&&(t=e,e=void 0),t=t||{};const r=vde(e,t.path||"/socket.io"),i=r.source,s=r.id,c=r.path,u=Ny[s]&&c in Ny[s].nsps,h=t.forceNew||t["force new connection"]||t.multiplex===!1||u;let m;return h?m=new ZA(i,t):(Ny[s]||(Ny[s]=new ZA(i,t)),m=Ny[s]),r.query&&!t.query&&(t.query=r.queryKey),m.socket(r.path,t)}Object.assign(Fx,{Manager:ZA,Socket:_U,io:Fx,connect:Fx});const Rde=()=>{const{hostname:e,port:t}=new URL(window.location.href),r=Fx(`http://${e}:9090`);let i=!1;return c=>u=>h=>{const{dispatch:m,getState:v}=c;switch(i||(r.on("connect",()=>{try{m(j3(!0))}catch(b){console.error(b)}}),r.on("disconnect",()=>{try{m(j3(!1)),m(wf(!1)),m(qi("Disconnected from server"))}catch(b){console.error(b)}}),r.on("result",b=>{try{const x=GA(),{type:C,url:_,uuid:R,metadata:A}=b;switch(C){case"generation":{const M=sU(A);m(dx({uuid:x,url:_,metadata:M})),m(qi(`Image generated: ${_}`));break}case"esrgan":{const j={...v().gallery.images.find(I=>I.uuid===R).metadata};j.shouldRunESRGAN=!0,j.upscalingLevel=A.upscale[0],j.upscalingStrength=A.upscale[1],m(dx({uuid:x,url:_,metadata:j})),m(qi(`ESRGAN upscaled: ${_}`));break}case"gfpgan":{const j={...v().gallery.images.find(I=>I.uuid===R).metadata};j.shouldRunGFPGAN=!0,j.gfpganStrength=A.gfpgan_strength,m(dx({uuid:x,url:_,metadata:j})),m(qi(`GFPGAN fixed faces: ${_}`));break}}m(wf(!1))}catch(x){console.error(x)}}),r.on("progress",b=>{try{m(wf(!0)),m(px(b.step))}catch(x){console.error(x)}}),r.on("intermediateResult",b=>{try{const x=GA(),{url:C,metadata:_}=b;m(Efe({uuid:x,url:C,metadata:_})),m(qi(`Intermediate image generated: ${C}`))}catch(x){console.error(x)}}),r.on("error",b=>{try{m(qi(`Server error: ${b}`)),m(wf(!1)),m(z3())}catch(x){console.error(x)}}),i=!0),h.type){case"socketio/generateImage":{m(wf(!0)),m(px(-1));const{generationParameters:b,esrganParameters:x,gfpganParameters:C}=Sfe(v().sd,v().system);r.emit("generateImage",b,x,C),m(qi(`Image generation requested: ${JSON.stringify({...b,...x,...C})}`));break}case"socketio/runESRGAN":{const b=h.payload;m(wf(!0)),m(px(-1));const{upscalingLevel:x,upscalingStrength:C}=v().sd,_={upscale:[x,C]};r.emit("runESRGAN",b,_),m(qi(`ESRGAN upscale requested: ${JSON.stringify({file:b.url,..._})}`));break}case"socketio/runGFPGAN":{const b=h.payload;m(wf(!0)),m(px(-1));const{gfpganStrength:x}=v().sd,C={gfpgan_strength:x};r.emit("runGFPGAN",b,C),m(qi(`GFPGAN fix faces requested: ${JSON.stringify({file:b.url,...C})}`));break}case"socketio/deleteImage":{const b=h.payload,{url:x}=b;r.emit("deleteImage",x,C=>{C.status==="OK"&&(m(Cfe(b)),m(qi(`Image deleted: ${x}`)))});break}case"socketio/requestAllImages":{r.emit("requestAllImages",b=>{m(_fe(b.data)),m(qi(`Loaded ${b.data.length} images`))});break}case"socketio/cancelProcessing":{r.emit("cancel",b=>{const{intermediateImage:x}=v().gallery;b.status==="OK"&&(m(wf(!1)),x&&(m(dx(x)),m(qi(`Intermediate image saved: ${x.url}`)),m(z3())),m(qi("Processing canceled")))});break}case"socketio/uploadInitialImage":{const b=h.payload;r.emit("uploadInitialImage",b,b.name,x=>{x.status==="OK"&&(m(qk(x.data)),m(qi(`Initial image uploaded: ${x.data}`)))});break}case"socketio/uploadMaskImage":{const b=h.payload;r.emit("uploadMaskImage",b,b.name,x=>{x.status==="OK"&&(m(iU(x.data)),m(qi(`Mask image uploaded: ${x.data}`)))});break}}u(h)}},Ode=Zo("socketio/generateImage"),Ade=Zo("socketio/runESRGAN"),kde=Zo("socketio/runGFPGAN"),X3=Zo("socketio/deleteImage"),Dde=Zo("socketio/requestAllImages"),Pde=Zo("socketio/cancelProcessing"),Mde=Zo("socketio/uploadInitialImage"),Ide=Zo("socketio/uploadMaskImage"),Lde=U6({sd:hfe,gallery:Tfe,system:Bfe}),Fde={key:"root",storage:tU},zde=Ece(Fde,Lde),EU=sce({reducer:zde,middleware:e=>e({serializableCheck:!1}).concat(Rde())});var TU={exports:{}},NU={};/**
|
|
* @license React
|
|
* use-sync-external-store-shim.development.js
|
|
*
|
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
*
|
|
* This source code is licensed under the MIT license found in the
|
|
* LICENSE file in the root directory of this source tree.
|
|
*/(function(){typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(new Error);var e=D.exports,t=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function r(z){{for(var B=arguments.length,$=new Array(B>1?B-1:0),K=1;K<B;K++)$[K-1]=arguments[K];i("error",z,$)}}function i(z,B,$){{var K=t.ReactDebugCurrentFrame,X=K.getStackAddendum();X!==""&&(B+="%s",$=$.concat([X]));var de=$.map(function(ve){return String(ve)});de.unshift("Warning: "+B),Function.prototype.apply.call(console[z],console,de)}}function s(z,B){return z===B&&(z!==0||1/z===1/B)||z!==z&&B!==B}var c=typeof Object.is=="function"?Object.is:s,u=e.useState,h=e.useEffect,m=e.useLayoutEffect,v=e.useDebugValue,b=!1,x=!1;function C(z,B,$){b||e.startTransition!==void 0&&(b=!0,r("You are using an outdated, pre-release alpha of React 18 that does not support useSyncExternalStore. The use-sync-external-store shim will not work correctly. Upgrade to a newer pre-release."));var K=B();if(!x){var X=B();c(K,X)||(r("The result of getSnapshot should be cached to avoid an infinite loop"),x=!0)}var de=u({inst:{value:K,getSnapshot:B}}),ve=de[0].inst,se=de[1];return m(function(){ve.value=K,ve.getSnapshot=B,_(ve)&&se({inst:ve})},[z,K,B]),h(function(){_(ve)&&se({inst:ve});var be=function(){_(ve)&&se({inst:ve})};return z(be)},[z]),v(K),K}function _(z){var B=z.getSnapshot,$=z.value;try{var K=B();return!c($,K)}catch{return!0}}function R(z,B,$){return B()}var A=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",M=!A,j=M?R:C,I=e.useSyncExternalStore!==void 0?e.useSyncExternalStore:j;NU.useSyncExternalStore=I,typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(new Error)})();(function(e){e.exports=NU})(TU);var RU={exports:{}},OU={};/**
|
|
* @license React
|
|
* use-sync-external-store-shim/with-selector.development.js
|
|
*
|
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
*
|
|
* This source code is licensed under the MIT license found in the
|
|
* LICENSE file in the root directory of this source tree.
|
|
*/(function(){typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(new Error);var e=D.exports,t=TU.exports;function r(b,x){return b===x&&(b!==0||1/b===1/x)||b!==b&&x!==x}var i=typeof Object.is=="function"?Object.is:r,s=t.useSyncExternalStore,c=e.useRef,u=e.useEffect,h=e.useMemo,m=e.useDebugValue;function v(b,x,C,_,R){var A=c(null),M;A.current===null?(M={hasValue:!1,value:null},A.current=M):M=A.current;var j=h(function(){var $=!1,K,X,de=function(Xe){if(!$){$=!0,K=Xe;var ie=_(Xe);if(R!==void 0&&M.hasValue){var ce=M.value;if(R(ce,ie))return X=ce,ce}return X=ie,ie}var Re=K,Ce=X;if(i(Re,Xe))return Ce;var oe=_(Xe);return R!==void 0&&R(Ce,oe)?Ce:(K=Xe,X=oe,oe)},ve=C===void 0?null:C,se=function(){return de(x())},be=ve===null?void 0:function(){return de(ve())};return[se,be]},[x,C,_,R]),I=j[0],z=j[1],B=s(b,I,z);return u(function(){M.hasValue=!0,M.value=B},[B]),m(B),B}OU.useSyncExternalStoreWithSelector=v,typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(new Error)})();(function(e){e.exports=OU})(RU);function Bde(e){e()}let AU=Bde;const Ude=e=>AU=e,jde=()=>AU,vc=Ue.createContext(null);vc.displayName="ReactRedux";function kU(){const e=D.exports.useContext(vc);if(!e)throw new Error("could not find react-redux context value; please ensure the component is wrapped in a <Provider>");return e}const $de=()=>{throw new Error("uSES not initialized!")};let DU=$de;const Vde=e=>{DU=e},Hde=(e,t)=>e===t;function Wde(e=vc){const t=e===vc?kU:()=>D.exports.useContext(e);return function(i,s=Hde){{if(!i)throw new Error("You must pass a selector to useSelector");if(typeof i!="function")throw new Error("You must pass a function as a selector to useSelector");if(typeof s!="function")throw new Error("You must pass a function as an equality function to useSelector")}const{store:c,subscription:u,getServerState:h}=t(),m=DU(u.addNestedSub,c.getState,h||c.getState,i,s);return D.exports.useDebugValue(m),m}}const Gde=Wde();var Yde={exports:{}},sr={};/**
|
|
* @license React
|
|
* react-is.development.js
|
|
*
|
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
*
|
|
* This source code is licensed under the MIT license found in the
|
|
* LICENSE file in the root directory of this source tree.
|
|
*/(function(){var e=Symbol.for("react.element"),t=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),i=Symbol.for("react.strict_mode"),s=Symbol.for("react.profiler"),c=Symbol.for("react.provider"),u=Symbol.for("react.context"),h=Symbol.for("react.server_context"),m=Symbol.for("react.forward_ref"),v=Symbol.for("react.suspense"),b=Symbol.for("react.suspense_list"),x=Symbol.for("react.memo"),C=Symbol.for("react.lazy"),_=Symbol.for("react.offscreen"),R=!1,A=!1,M=!1,j=!1,I=!1,z;z=Symbol.for("react.module.reference");function B(ye){return!!(typeof ye=="string"||typeof ye=="function"||ye===r||ye===s||I||ye===i||ye===v||ye===b||j||ye===_||R||A||M||typeof ye=="object"&&ye!==null&&(ye.$$typeof===C||ye.$$typeof===x||ye.$$typeof===c||ye.$$typeof===u||ye.$$typeof===m||ye.$$typeof===z||ye.getModuleId!==void 0))}function $(ye){if(typeof ye=="object"&&ye!==null){var Mt=ye.$$typeof;switch(Mt){case e:var Kt=ye.type;switch(Kt){case r:case s:case i:case v:case b:return Kt;default:var St=Kt&&Kt.$$typeof;switch(St){case h:case u:case m:case C:case x:case c:return St;default:return Mt}}case t:return Mt}}}var K=u,X=c,de=e,ve=m,se=r,be=C,Xe=x,ie=t,ce=s,Re=i,Ce=v,oe=b,Se=!1,Te=!1;function pe(ye){return Se||(Se=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 18+.")),!1}function we(ye){return Te||(Te=!0,console.warn("The ReactIs.isConcurrentMode() alias has been deprecated, and will be removed in React 18+.")),!1}function Ie(ye){return $(ye)===u}function Le(ye){return $(ye)===c}function Ye(ye){return typeof ye=="object"&&ye!==null&&ye.$$typeof===e}function st(ye){return $(ye)===m}function mt(ye){return $(ye)===r}function Gt(ye){return $(ye)===C}function Qe(ye){return $(ye)===x}function vt(ye){return $(ye)===t}function Et(ye){return $(ye)===s}function zt(ye){return $(ye)===i}function We(ye){return $(ye)===v}function Yt(ye){return $(ye)===b}sr.ContextConsumer=K,sr.ContextProvider=X,sr.Element=de,sr.ForwardRef=ve,sr.Fragment=se,sr.Lazy=be,sr.Memo=Xe,sr.Portal=ie,sr.Profiler=ce,sr.StrictMode=Re,sr.Suspense=Ce,sr.SuspenseList=oe,sr.isAsyncMode=pe,sr.isConcurrentMode=we,sr.isContextConsumer=Ie,sr.isContextProvider=Le,sr.isElement=Ye,sr.isForwardRef=st,sr.isFragment=mt,sr.isLazy=Gt,sr.isMemo=Qe,sr.isPortal=vt,sr.isProfiler=Et,sr.isStrictMode=zt,sr.isSuspense=We,sr.isSuspenseList=Yt,sr.isValidElementType=B,sr.typeOf=$})();(function(e){e.exports=sr})(Yde);function qde(){const e=jde();let t=null,r=null;return{clear(){t=null,r=null},notify(){e(()=>{let i=t;for(;i;)i.callback(),i=i.next})},get(){let i=[],s=t;for(;s;)i.push(s),s=s.next;return i},subscribe(i){let s=!0,c=r={callback:i,next:null,prev:r};return c.prev?c.prev.next=c:t=c,function(){!s||t===null||(s=!1,c.next?c.next.prev=c.prev:r=c.prev,c.prev?c.prev.next=c.next:t=c.next)}}}}const Z3={notify(){},get:()=>[]};function Kde(e,t){let r,i=Z3;function s(x){return m(),i.subscribe(x)}function c(){i.notify()}function u(){b.onStateChange&&b.onStateChange()}function h(){return Boolean(r)}function m(){r||(r=t?t.addNestedSub(u):e.subscribe(u),i=qde())}function v(){r&&(r(),r=void 0,i.clear(),i=Z3)}const b={addNestedSub:s,notifyNestedSubs:c,handleChangeWrapper:u,isSubscribed:h,trySubscribe:m,tryUnsubscribe:v,getListeners:()=>i};return b}const Xde=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",Zde=Xde?D.exports.useLayoutEffect:D.exports.useEffect;var Qde="/Users/spencer/Documents/Code/stable-diffusion/frontend/node_modules/react-redux/es/components/Provider.js";function Jde({store:e,context:t,children:r,serverState:i}){const s=D.exports.useMemo(()=>{const h=Kde(e);return{store:e,subscription:h,getServerState:i?()=>i:void 0}},[e,i]),c=D.exports.useMemo(()=>e.getState(),[e]);return Zde(()=>{const{subscription:h}=s;return h.onStateChange=h.notifyNestedSubs,h.trySubscribe(),c!==e.getState()&&h.notifyNestedSubs(),()=>{h.tryUnsubscribe(),h.onStateChange=void 0}},[s,c]),k((t||vc).Provider,{value:s,children:r},void 0,!1,{fileName:Qde,lineNumber:39,columnNumber:23},this)}function PU(e=vc){const t=e===vc?kU:()=>D.exports.useContext(e);return function(){const{store:i}=t();return i}}const epe=PU();function tpe(e=vc){const t=e===vc?epe:PU(e);return function(){return t().dispatch}}const npe=tpe();Vde(RU.exports.useSyncExternalStoreWithSelector);Ude(Sb.exports.unstable_batchedUpdates);function zx(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?zx=function(r){return typeof r}:zx=function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},zx(e)}function rpe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Q3(e,t){for(var r=0;r<t.length;r++){var i=t[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function ape(e,t,r){return t&&Q3(e.prototype,t),r&&Q3(e,r),e}function ipe(e,t){return t&&(zx(t)==="object"||typeof t=="function")?t:Bx(e)}function QA(e){return QA=Object.setPrototypeOf?Object.getPrototypeOf:function(r){return r.__proto__||Object.getPrototypeOf(r)},QA(e)}function Bx(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function ope(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&JA(e,t)}function JA(e,t){return JA=Object.setPrototypeOf||function(i,s){return i.__proto__=s,i},JA(e,t)}function Ux(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var MU=function(e){ope(t,e);function t(){var r,i;rpe(this,t);for(var s=arguments.length,c=new Array(s),u=0;u<s;u++)c[u]=arguments[u];return i=ipe(this,(r=QA(t)).call.apply(r,[this].concat(c))),Ux(Bx(i),"state",{bootstrapped:!1}),Ux(Bx(i),"_unsubscribe",void 0),Ux(Bx(i),"handlePersistorState",function(){var h=i.props.persistor,m=h.getState(),v=m.bootstrapped;v&&(i.props.onBeforeLift?Promise.resolve(i.props.onBeforeLift()).finally(function(){return i.setState({bootstrapped:!0})}):i.setState({bootstrapped:!0}),i._unsubscribe&&i._unsubscribe())}),i}return ape(t,[{key:"componentDidMount",value:function(){this._unsubscribe=this.props.persistor.subscribe(this.handlePersistorState),this.handlePersistorState()}},{key:"componentWillUnmount",value:function(){this._unsubscribe&&this._unsubscribe()}},{key:"render",value:function(){return typeof this.props.children=="function"&&this.props.loading&&console.error("redux-persist: PersistGate expects either a function child or loading prop, but not both. The loading prop will be ignored."),typeof this.props.children=="function"?this.props.children(this.state.bootstrapped):this.state.bootstrapped?this.props.children:this.props.loading}}]),t}(D.exports.PureComponent);Ux(MU,"defaultProps",{children:null,loading:null});const ja=npe,Tr=Gde;var IU={color:void 0,size:void 0,className:void 0,style:void 0,attr:void 0},J3=Ue.createContext&&Ue.createContext(IU),jx="/Users/spencer/Documents/Code/stable-diffusion/frontend/node_modules/react-icons/lib/esm/iconBase.js",Ff=globalThis&&globalThis.__assign||function(){return Ff=Object.assign||function(e){for(var t,r=1,i=arguments.length;r<i;r++){t=arguments[r];for(var s in t)Object.prototype.hasOwnProperty.call(t,s)&&(e[s]=t[s])}return e},Ff.apply(this,arguments)},spe=globalThis&&globalThis.__rest||function(e,t){var r={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(r[i]=e[i]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var s=0,i=Object.getOwnPropertySymbols(e);s<i.length;s++)t.indexOf(i[s])<0&&Object.prototype.propertyIsEnumerable.call(e,i[s])&&(r[i[s]]=e[i[s]]);return r};function LU(e){return e&&e.map(function(t,r){return Ue.createElement(t.tag,Ff({key:r},t.attr),LU(t.child))})}function Jo(e){return function(t){return k(lpe,{...Ff({attr:Ff({},e.attr)},t),children:LU(e.child)},void 0,!1,{fileName:jx,lineNumber:39,columnNumber:12},this)}}function lpe(e){var t=function(r){var i=e.attr,s=e.size,c=e.title,u=spe(e,["attr","size","title"]),h=s||r.size||"1em",m;return r.className&&(m=r.className),e.className&&(m=(m?m+" ":"")+e.className),k("svg",{...Ff({stroke:"currentColor",fill:"currentColor",strokeWidth:"0"},r.attr,i,u,{className:m,style:Ff(Ff({color:e.color||r.color},r.style),e.style),height:h,width:h,xmlns:"http://www.w3.org/2000/svg"}),children:[c&&k("title",{children:c},void 0,!1,{fileName:jx,lineNumber:67,columnNumber:18},this),e.children]},void 0,!0,{fileName:jx,lineNumber:55,columnNumber:12},this)};return J3!==void 0?k(J3.Consumer,{children:function(r){return t(r)}},void 0,!1,{fileName:jx,lineNumber:70,columnNumber:38},this):t(IU)}function upe(e){return Jo({tag:"svg",attr:{viewBox:"0 0 496 512"},child:[{tag:"path",attr:{d:"M165.9 397.4c0 2-2.3 3.6-5.2 3.6-3.3.3-5.6-1.3-5.6-3.6 0-2 2.3-3.6 5.2-3.6 3-.3 5.6 1.3 5.6 3.6zm-31.1-4.5c-.7 2 1.3 4.3 4.3 4.9 2.6 1 5.6 0 6.2-2s-1.3-4.3-4.3-5.2c-2.6-.7-5.5.3-6.2 2.3zm44.2-1.7c-2.9.7-4.9 2.6-4.6 4.9.3 2 2.9 3.3 5.9 2.6 2.9-.7 4.9-2.6 4.6-4.6-.3-1.9-3-3.2-5.9-2.9zM244.8 8C106.1 8 0 113.3 0 252c0 110.9 69.8 205.8 169.5 239.2 12.8 2.3 17.3-5.6 17.3-12.1 0-6.2-.3-40.4-.3-61.4 0 0-70 15-84.7-29.8 0 0-11.4-29.1-27.8-36.6 0 0-22.9-15.7 1.6-15.4 0 0 24.9 2 38.6 25.8 21.9 38.6 58.6 27.5 72.9 20.9 2.3-16 8.8-27.1 16-33.7-55.9-6.2-112.3-14.3-112.3-110.5 0-27.5 7.6-41.3 23.6-58.9-2.6-6.5-11.1-33.3 2.6-67.9 20.9-6.5 69 27 69 27 20-5.6 41.5-8.5 62.8-8.5s42.8 2.9 62.8 8.5c0 0 48.1-33.6 69-27 13.7 34.7 5.2 61.4 2.6 67.9 16 17.7 25.8 31.5 25.8 58.9 0 96.5-58.9 104.2-114.8 110.5 9.2 7.9 17 22.9 17 46.4 0 33.7-.3 75.4-.3 83.6 0 6.5 4.6 14.4 17.3 12.1C428.2 457.8 496 362.9 496 252 496 113.3 383.5 8 244.8 8zM97.2 352.9c-1.3 1-1 3.3.7 5.2 1.6 1.6 3.9 2.3 5.2 1 1.3-1 1-3.3-.7-5.2-1.6-1.6-3.9-2.3-5.2-1zm-10.8-8.1c-.7 1.3.3 2.9 2.3 3.9 1.6 1 3.6.7 4.3-.7.7-1.3-.3-2.9-2.3-3.9-2-.6-3.6-.3-4.3.7zm32.4 35.6c-1.6 1.3-1 4.3 1.3 6.2 2.3 2.3 5.2 2.6 6.5 1 1.3-1.3.7-4.3-1.3-6.2-2.2-2.3-5.2-2.6-6.5-1zm-11.4-14.7c-1.6 1-1.6 3.6 0 5.9 1.6 2.3 4.3 3.3 5.6 2.3 1.6-1.3 1.6-3.9 0-6.2-1.4-2.3-4-3.3-5.6-2z"}}]})(e)}function cpe(e){return Jo({tag:"svg",attr:{viewBox:"0 0 320 512"},child:[{tag:"path",attr:{d:"M143 256.3L7 120.3c-9.4-9.4-9.4-24.6 0-33.9l22.6-22.6c9.4-9.4 24.6-9.4 33.9 0l96.4 96.4 96.4-96.4c9.4-9.4 24.6-9.4 33.9 0L313 86.3c9.4 9.4 9.4 24.6 0 33.9l-136 136c-9.4 9.5-24.6 9.5-34 .1zm34 192l136-136c9.4-9.4 9.4-24.6 0-33.9l-22.6-22.6c-9.4-9.4-24.6-9.4-33.9 0L160 352.1l-96.4-96.4c-9.4-9.4-24.6-9.4-33.9 0L7 278.3c-9.4 9.4-9.4 24.6 0 33.9l136 136c9.4 9.5 24.6 9.5 34 .1z"}}]})(e)}function fpe(e){return Jo({tag:"svg",attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M173.898 439.404l-166.4-166.4c-9.997-9.997-9.997-26.206 0-36.204l36.203-36.204c9.997-9.998 26.207-9.998 36.204 0L192 312.69 432.095 72.596c9.997-9.997 26.207-9.997 36.204 0l36.203 36.204c9.997 9.997 9.997 26.206 0 36.204l-294.4 294.401c-9.998 9.997-26.207 9.997-36.204-.001z"}}]})(e)}function dpe(e){return Jo({tag:"svg",attr:{viewBox:"0 0 640 512"},child:[{tag:"path",attr:{d:"M278.9 511.5l-61-17.7c-6.4-1.8-10-8.5-8.2-14.9L346.2 8.7c1.8-6.4 8.5-10 14.9-8.2l61 17.7c6.4 1.8 10 8.5 8.2 14.9L293.8 503.3c-1.9 6.4-8.5 10.1-14.9 8.2zm-114-112.2l43.5-46.4c4.6-4.9 4.3-12.7-.8-17.2L117 256l90.6-79.7c5.1-4.5 5.5-12.3.8-17.2l-43.5-46.4c-4.5-4.8-12.1-5.1-17-.5L3.8 247.2c-5.1 4.7-5.1 12.8 0 17.5l144.1 135.1c4.9 4.6 12.5 4.4 17-.5zm327.2.6l144.1-135.1c5.1-4.7 5.1-12.8 0-17.5L492.1 112.1c-4.8-4.5-12.4-4.3-17 .5L431.6 159c-4.6 4.9-4.3 12.7.8 17.2L523 256l-90.6 79.7c-5.1 4.5-5.5 12.3-.8 17.2l43.5 46.4c4.5 4.9 12.1 5.1 17 .6z"}}]})(e)}function ppe(e){return Jo({tag:"svg",attr:{viewBox:"0 0 448 512"},child:[{tag:"path",attr:{d:"M320 448v40c0 13.255-10.745 24-24 24H24c-13.255 0-24-10.745-24-24V120c0-13.255 10.745-24 24-24h72v296c0 30.879 25.121 56 56 56h168zm0-344V0H152c-13.255 0-24 10.745-24 24v368c0 13.255 10.745 24 24 24h272c13.255 0 24-10.745 24-24V128H344c-13.2 0-24-10.8-24-24zm120.971-31.029L375.029 7.029A24 24 0 0 0 358.059 0H352v96h96v-6.059a24 24 0 0 0-7.029-16.97z"}}]})(e)}function hpe(e){return Jo({tag:"svg",attr:{viewBox:"0 0 448 512"},child:[{tag:"path",attr:{d:"M416 208H32c-17.67 0-32 14.33-32 32v32c0 17.67 14.33 32 32 32h384c17.67 0 32-14.33 32-32v-32c0-17.67-14.33-32-32-32z"}}]})(e)}function mpe(e){return Jo({tag:"svg",attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M283.211 512c78.962 0 151.079-35.925 198.857-94.792 7.068-8.708-.639-21.43-11.562-19.35-124.203 23.654-238.262-71.576-238.262-196.954 0-72.222 38.662-138.635 101.498-174.394 9.686-5.512 7.25-20.197-3.756-22.23A258.156 258.156 0 0 0 283.211 0c-141.309 0-256 114.511-256 256 0 141.309 114.511 256 256 256z"}}]})(e)}function vpe(e){return Jo({tag:"svg",attr:{viewBox:"0 0 448 512"},child:[{tag:"path",attr:{d:"M416 208H272V64c0-17.67-14.33-32-32-32h-32c-17.67 0-32 14.33-32 32v144H32c-17.67 0-32 14.33-32 32v32c0 17.67 14.33 32 32 32h144v144c0 17.67 14.33 32 32 32h32c17.67 0 32-14.33 32-32V304h144c17.67 0 32-14.33 32-32v-32c0-17.67-14.33-32-32-32z"}}]})(e)}function gpe(e){return Jo({tag:"svg",attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M64 96H0c0 123.7 100.3 224 224 224v144c0 8.8 7.2 16 16 16h32c8.8 0 16-7.2 16-16V320C288 196.3 187.7 96 64 96zm384-64c-84.2 0-157.4 46.5-195.7 115.2 27.7 30.2 48.2 66.9 59 107.6C424 243.1 512 147.9 512 32h-64z"}}]})(e)}function ype(e){return Jo({tag:"svg",attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M256 160c-52.9 0-96 43.1-96 96s43.1 96 96 96 96-43.1 96-96-43.1-96-96-96zm246.4 80.5l-94.7-47.3 33.5-100.4c4.5-13.6-8.4-26.5-21.9-21.9l-100.4 33.5-47.4-94.8c-6.4-12.8-24.6-12.8-31 0l-47.3 94.7L92.7 70.8c-13.6-4.5-26.5 8.4-21.9 21.9l33.5 100.4-94.7 47.4c-12.8 6.4-12.8 24.6 0 31l94.7 47.3-33.5 100.5c-4.5 13.6 8.4 26.5 21.9 21.9l100.4-33.5 47.3 94.7c6.4 12.8 24.6 12.8 31 0l47.3-94.7 100.4 33.5c13.6 4.5 26.5-8.4 21.9-21.9l-33.5-100.4 94.7-47.3c13-6.5 13-24.7.2-31.1zm-155.9 106c-49.9 49.9-131.1 49.9-181 0-49.9-49.9-49.9-131.1 0-181 49.9-49.9 131.1-49.9 181 0 49.9 49.9 49.9 131.1 0 181z"}}]})(e)}function FU(e){return Jo({tag:"svg",attr:{viewBox:"0 0 448 512"},child:[{tag:"path",attr:{d:"M432 32H312l-9.4-18.7A24 24 0 0 0 281.1 0H166.8a23.72 23.72 0 0 0-21.4 13.3L136 32H16A16 16 0 0 0 0 48v32a16 16 0 0 0 16 16h416a16 16 0 0 0 16-16V48a16 16 0 0 0-16-16zM53.2 467a48 48 0 0 0 47.9 45h245.8a48 48 0 0 0 47.9-45L416 128H32z"}}]})(e)}var bpe="/Users/spencer/Documents/Code/stable-diffusion/frontend/src/components/SDButton.tsx";const Xi=e=>{const{label:t,size:r="sm",...i}=e;return k(Gm,{size:r,...i,children:t},void 0,!1,{fileName:bpe,lineNumber:10,columnNumber:9},void 0)};var Ra="/Users/spencer/Documents/Code/stable-diffusion/frontend/src/features/gallery/ImageMetadataViewer.tsx";const Spe=({image:e})=>{const t=ja(),r=Object.keys(L3),i=[];return r.forEach(s=>{const c=e.metadata[s];c!==void 0&&i.push({label:L3[s],key:s,value:c})}),k(Ln,{gap:2,direction:"column",overflowY:"scroll",width:"100%",children:[k(Xi,{label:"Use all parameters",colorScheme:"gray",padding:2,isDisabled:i.length===0,onClick:()=>t(Kk(e.metadata))},void 0,!1,{fileName:Ra,lineNumber:41,columnNumber:13},void 0),k(Ln,{gap:2,children:[k(Ir,{fontWeight:"semibold",children:"File:"},void 0,!1,{fileName:Ra,lineNumber:49,columnNumber:17},void 0),k(ow,{href:e.url,isExternal:!0,children:k(Ir,{children:e.url},void 0,!1,{fileName:Ra,lineNumber:51,columnNumber:21},void 0)},void 0,!1,{fileName:Ra,lineNumber:50,columnNumber:17},void 0)]},void 0,!0,{fileName:Ra,lineNumber:48,columnNumber:13},void 0),i.length?k(bo,{children:[k(tC,{children:i.map((s,c)=>{const{label:u,key:h,value:m}=s;return k(Yz,{pb:1,children:k(Ln,{gap:2,children:[k(Ps,{"aria-label":"Use this parameter",icon:k(vpe,{},void 0,!1,{fileName:Ra,lineNumber:64,columnNumber:51},void 0),size:"xs",onClick:()=>t(sfe({key:h,value:m}))},void 0,!1,{fileName:Ra,lineNumber:62,columnNumber:41},void 0),k(Ir,{fontWeight:"semibold",children:[u,":"]},void 0,!0,{fileName:Ra,lineNumber:75,columnNumber:41},void 0),m==null||m===""||m===0?k(Ir,{maxHeight:100,fontStyle:"italic",children:"None"},void 0,!1,{fileName:Ra,lineNumber:83,columnNumber:45},void 0):k(Ir,{maxHeight:100,overflowY:"scroll",children:m.toString()},void 0,!1,{fileName:Ra,lineNumber:90,columnNumber:45},void 0)]},void 0,!0,{fileName:Ra,lineNumber:61,columnNumber:37},void 0)},c,!1,{fileName:Ra,lineNumber:60,columnNumber:33},void 0)})},void 0,!1,{fileName:Ra,lineNumber:56,columnNumber:21},void 0),k(Ln,{gap:2,children:[k(Ir,{fontWeight:"semibold",children:"Raw:"},void 0,!1,{fileName:Ra,lineNumber:103,columnNumber:25},void 0),k(Ir,{maxHeight:100,overflowY:"scroll",wordBreak:"break-all",children:JSON.stringify(e.metadata)},void 0,!1,{fileName:Ra,lineNumber:104,columnNumber:25},void 0)]},void 0,!0,{fileName:Ra,lineNumber:102,columnNumber:21},void 0)]},void 0,!0):k(rk,{width:"100%",pt:10,children:k(Ir,{fontSize:"lg",fontWeight:"semibold",children:"No metadata available"},void 0,!1,{fileName:Ra,lineNumber:115,columnNumber:21},void 0)},void 0,!1,{fileName:Ra,lineNumber:114,columnNumber:17},void 0)]},void 0,!0,{fileName:Ra,lineNumber:40,columnNumber:9},void 0)};var bl="/Users/spencer/Documents/Code/stable-diffusion/frontend/src/features/gallery/DeleteImageModalButton.tsx";const xpe=Qr(e=>e.system,e=>e.shouldConfirmOnDelete),zU=e=>{const{isOpen:t,onOpen:r,onClose:i}=mA(),s=ja(),c=Tr(xpe),u=x=>{x.stopPropagation(),c?r():v()},{image:h,children:m}=e,v=()=>{s(X3(h)),i()},b=()=>{s(X3(h)),s(cU(!1)),i()};return k(bo,{children:[D.exports.cloneElement(m,{onClick:u}),k(pb,{isOpen:t,onClose:i,children:[k(dw,{},void 0,!1,{fileName:bl,lineNumber:71,columnNumber:9},void 0),k(hb,{children:[k(Tk,{children:"Are you sure you want to delete this image?"},void 0,!1,{fileName:bl,lineNumber:73,columnNumber:11},void 0),k(_k,{},void 0,!1,{fileName:bl,lineNumber:74,columnNumber:11},void 0),k(fw,{children:k(Ir,{children:"It will be deleted forever!"},void 0,!1,{fileName:bl,lineNumber:76,columnNumber:13},void 0)},void 0,!1,{fileName:bl,lineNumber:75,columnNumber:11},void 0),k(Ek,{justifyContent:"space-between",children:[k(Xi,{label:"Yes",colorScheme:"red",onClick:v},void 0,!1,{fileName:bl,lineNumber:80,columnNumber:13},void 0),k(Xi,{label:"Yes, and don't ask me again",colorScheme:"red",onClick:b},void 0,!1,{fileName:bl,lineNumber:81,columnNumber:13},void 0),k(Xi,{label:"Cancel",colorScheme:"blue",onClick:i},void 0,!1,{fileName:bl,lineNumber:86,columnNumber:13},void 0)]},void 0,!0,{fileName:bl,lineNumber:79,columnNumber:11},void 0)]},void 0,!0,{fileName:bl,lineNumber:72,columnNumber:9},void 0)]},void 0,!0,{fileName:bl,lineNumber:70,columnNumber:7},void 0)]},void 0,!0)};var ua={exports:{}};/**
|
|
* @license
|
|
* Lodash <https://lodash.com/>
|
|
* Copyright OpenJS Foundation and other contributors <https://openjsf.org/>
|
|
* Released under MIT license <https://lodash.com/license>
|
|
* Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
|
|
* Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
|
|
*/(function(e,t){(function(){var r,i="4.17.21",s=200,c="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",u="Expected a function",h="Invalid `variable` option passed into `_.template`",m="__lodash_hash_undefined__",v=500,b="__lodash_placeholder__",x=1,C=2,_=4,R=1,A=2,M=1,j=2,I=4,z=8,B=16,$=32,K=64,X=128,de=256,ve=512,se=30,be="...",Xe=800,ie=16,ce=1,Re=2,Ce=3,oe=1/0,Se=9007199254740991,Te=17976931348623157e292,pe=0/0,we=4294967295,Ie=we-1,Le=we>>>1,Ye=[["ary",X],["bind",M],["bindKey",j],["curry",z],["curryRight",B],["flip",ve],["partial",$],["partialRight",K],["rearg",de]],st="[object Arguments]",mt="[object Array]",Gt="[object AsyncFunction]",Qe="[object Boolean]",vt="[object Date]",Et="[object DOMException]",zt="[object Error]",We="[object Function]",Yt="[object GeneratorFunction]",ye="[object Map]",Mt="[object Number]",Kt="[object Null]",St="[object Object]",ar="[object Promise]",ir="[object Proxy]",Bt="[object RegExp]",fn="[object Set]",An="[object String]",hn="[object Symbol]",Ve="[object Undefined]",Ze="[object WeakMap]",Jt="[object WeakSet]",Tt="[object ArrayBuffer]",ke="[object DataView]",jt="[object Float32Array]",xn="[object Float64Array]",je="[object Int8Array]",rt="[object Int16Array]",xt="[object Int32Array]",dn="[object Uint8Array]",Xt="[object Uint8ClampedArray]",wn="[object Uint16Array]",kn="[object Uint32Array]",Nr=/\b__p \+= '';/g,Tn=/\b(__p \+=) '' \+/g,ca=/(__e\(.*?\)|\b__t\)) \+\n'';/g,Fn=/&(?:amp|lt|gt|quot|#39);/g,Cn=/[&<>"']/g,fa=RegExp(Fn.source),vr=RegExp(Cn.source),wo=/<%-([\s\S]+?)%>/g,es=/<%([\s\S]+?)%>/g,ts=/<%=([\s\S]+?)%>/g,Co=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,_o=/^\w*$/,cr=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Aa=/[\\^$.*+?()[\]{}|]/g,Di=RegExp(Aa.source),ka=/^\s+/,q=/\s/,Be=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,qe=/\{\n\/\* \[wrapped with (.+)\] \*/,bt=/,? & /,nn=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,gn=/[()=,{}\[\]\/\s]/,tt=/\\(\\)?/g,$t=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,zn=/\w*$/,Mn=/^[-+]0x[0-9a-f]+$/i,an=/^0b[01]+$/i,Lr=/^\[object .+?Constructor\]$/,ci=/^0o[0-7]+$/i,Eo=/^(?:0|[1-9]\d*)$/,da=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,Ji=/($^)/,bu=/['\n\r\u2028\u2029\\]/g,fi="\\ud800-\\udfff",Bs="\\u0300-\\u036f",Pi="\\ufe20-\\ufe2f",Zt="\\u20d0-\\u20ff",Mi=Bs+Pi+Zt,pa="\\u2700-\\u27bf",To="a-z\\xdf-\\xf6\\xf8-\\xff",ns="\\xac\\xb1\\xd7\\xf7",No="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",rs="\\u2000-\\u206f",as=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",Ro="A-Z\\xc0-\\xd6\\xd8-\\xde",Oo="\\ufe0e\\ufe0f",is=ns+No+rs+as,Us="['\u2019]",js="["+fi+"]",di="["+is+"]",kr="["+Mi+"]",Da="\\d+",ha="["+pa+"]",Pa="["+To+"]",os="[^"+fi+is+Da+pa+To+Ro+"]",Ao="\\ud83c[\\udffb-\\udfff]",ss="(?:"+kr+"|"+Ao+")",Al="[^"+fi+"]",ma="(?:\\ud83c[\\udde6-\\uddff]){2}",ko="[\\ud800-\\udbff][\\udc00-\\udfff]",Ma="["+Ro+"]",pi="\\u200d",$s="(?:"+Pa+"|"+os+")",on="(?:"+Ma+"|"+os+")",hi="(?:"+Us+"(?:d|ll|m|re|s|t|ve))?",Do="(?:"+Us+"(?:D|LL|M|RE|S|T|VE))?",It=ss+"?",Vs="["+Oo+"]?",gr="(?:"+pi+"(?:"+[Al,ma,ko].join("|")+")"+Vs+It+")*",Ii="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",$a="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",eo=Vs+It+gr,wr="(?:"+[ha,ma,ko].join("|")+")"+eo,er="(?:"+[Al+kr+"?",kr,ma,ko,js].join("|")+")",Po=RegExp(Us,"g"),$r=RegExp(kr,"g"),ur=RegExp(Ao+"(?="+Ao+")|"+er+eo,"g"),Jr=RegExp([Ma+"?"+Pa+"+"+hi+"(?="+[di,Ma,"$"].join("|")+")",on+"+"+Do+"(?="+[di,Ma+$s,"$"].join("|")+")",Ma+"?"+$s+"+"+hi,Ma+"+"+Do,$a,Ii,Da,wr].join("|"),"g"),Su=RegExp("["+pi+fi+Mi+Oo+"]"),to=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,mi=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],Hs=-1,pn={};pn[jt]=pn[xn]=pn[je]=pn[rt]=pn[xt]=pn[dn]=pn[Xt]=pn[wn]=pn[kn]=!0,pn[st]=pn[mt]=pn[Tt]=pn[Qe]=pn[ke]=pn[vt]=pn[zt]=pn[We]=pn[ye]=pn[Mt]=pn[St]=pn[Bt]=pn[fn]=pn[An]=pn[Ze]=!1;var Dn={};Dn[st]=Dn[mt]=Dn[Tt]=Dn[ke]=Dn[Qe]=Dn[vt]=Dn[jt]=Dn[xn]=Dn[je]=Dn[rt]=Dn[xt]=Dn[ye]=Dn[Mt]=Dn[St]=Dn[Bt]=Dn[fn]=Dn[An]=Dn[hn]=Dn[dn]=Dn[Xt]=Dn[wn]=Dn[kn]=!0,Dn[zt]=Dn[We]=Dn[Ze]=!1;var kl={\u00C0:"A",\u00C1:"A",\u00C2:"A",\u00C3:"A",\u00C4:"A",\u00C5:"A",\u00E0:"a",\u00E1:"a",\u00E2:"a",\u00E3:"a",\u00E4:"a",\u00E5:"a",\u00C7:"C",\u00E7:"c",\u00D0:"D",\u00F0:"d",\u00C8:"E",\u00C9:"E",\u00CA:"E",\u00CB:"E",\u00E8:"e",\u00E9:"e",\u00EA:"e",\u00EB:"e",\u00CC:"I",\u00CD:"I",\u00CE:"I",\u00CF:"I",\u00EC:"i",\u00ED:"i",\u00EE:"i",\u00EF:"i",\u00D1:"N",\u00F1:"n",\u00D2:"O",\u00D3:"O",\u00D4:"O",\u00D5:"O",\u00D6:"O",\u00D8:"O",\u00F2:"o",\u00F3:"o",\u00F4:"o",\u00F5:"o",\u00F6:"o",\u00F8:"o",\u00D9:"U",\u00DA:"U",\u00DB:"U",\u00DC:"U",\u00F9:"u",\u00FA:"u",\u00FB:"u",\u00FC:"u",\u00DD:"Y",\u00FD:"y",\u00FF:"y",\u00C6:"Ae",\u00E6:"ae",\u00DE:"Th",\u00FE:"th",\u00DF:"ss",\u0100:"A",\u0102:"A",\u0104:"A",\u0101:"a",\u0103:"a",\u0105:"a",\u0106:"C",\u0108:"C",\u010A:"C",\u010C:"C",\u0107:"c",\u0109:"c",\u010B:"c",\u010D:"c",\u010E:"D",\u0110:"D",\u010F:"d",\u0111:"d",\u0112:"E",\u0114:"E",\u0116:"E",\u0118:"E",\u011A:"E",\u0113:"e",\u0115:"e",\u0117:"e",\u0119:"e",\u011B:"e",\u011C:"G",\u011E:"G",\u0120:"G",\u0122:"G",\u011D:"g",\u011F:"g",\u0121:"g",\u0123:"g",\u0124:"H",\u0126:"H",\u0125:"h",\u0127:"h",\u0128:"I",\u012A:"I",\u012C:"I",\u012E:"I",\u0130:"I",\u0129:"i",\u012B:"i",\u012D:"i",\u012F:"i",\u0131:"i",\u0134:"J",\u0135:"j",\u0136:"K",\u0137:"k",\u0138:"k",\u0139:"L",\u013B:"L",\u013D:"L",\u013F:"L",\u0141:"L",\u013A:"l",\u013C:"l",\u013E:"l",\u0140:"l",\u0142:"l",\u0143:"N",\u0145:"N",\u0147:"N",\u014A:"N",\u0144:"n",\u0146:"n",\u0148:"n",\u014B:"n",\u014C:"O",\u014E:"O",\u0150:"O",\u014D:"o",\u014F:"o",\u0151:"o",\u0154:"R",\u0156:"R",\u0158:"R",\u0155:"r",\u0157:"r",\u0159:"r",\u015A:"S",\u015C:"S",\u015E:"S",\u0160:"S",\u015B:"s",\u015D:"s",\u015F:"s",\u0161:"s",\u0162:"T",\u0164:"T",\u0166:"T",\u0163:"t",\u0165:"t",\u0167:"t",\u0168:"U",\u016A:"U",\u016C:"U",\u016E:"U",\u0170:"U",\u0172:"U",\u0169:"u",\u016B:"u",\u016D:"u",\u016F:"u",\u0171:"u",\u0173:"u",\u0174:"W",\u0175:"w",\u0176:"Y",\u0177:"y",\u0178:"Y",\u0179:"Z",\u017B:"Z",\u017D:"Z",\u017A:"z",\u017C:"z",\u017E:"z",\u0132:"IJ",\u0133:"ij",\u0152:"Oe",\u0153:"oe",\u0149:"'n",\u017F:"s"},Ia={"&":"&","<":"<",">":">",'"':""","'":"'"},W={"&":"&","<":"<",">":">",""":'"',"'":"'"},Q={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},fe=parseFloat,at=parseInt,sn=typeof lc=="object"&&lc&&lc.Object===Object&&lc,Pn=typeof self=="object"&&self&&self.Object===Object&&self,Vt=sn||Pn||Function("return this")(),S=t&&!t.nodeType&&t,N=S&&!0&&e&&!e.nodeType&&e,V=N&&N.exports===S,G=V&&sn.process,te=function(){try{var re=N&&N.require&&N.require("util").types;return re||G&&G.binding&&G.binding("util")}catch{}}(),Fe=te&&te.isArrayBuffer,xe=te&&te.isDate,$e=te&&te.isMap,it=te&&te.isRegExp,gt=te&&te.isSet,Nt=te&&te.isTypedArray;function pt(re,Ne,ge){switch(ge.length){case 0:return re.call(Ne);case 1:return re.call(Ne,ge[0]);case 2:return re.call(Ne,ge[0],ge[1]);case 3:return re.call(Ne,ge[0],ge[1],ge[2])}return re.apply(Ne,ge)}function Lt(re,Ne,ge,ft){for(var en=-1,Hn=re==null?0:re.length;++en<Hn;){var Vr=re[en];Ne(ft,Vr,ge(Vr),re)}return ft}function wt(re,Ne){for(var ge=-1,ft=re==null?0:re.length;++ge<ft&&Ne(re[ge],ge,re)!==!1;);return re}function Dt(re,Ne){for(var ge=re==null?0:re.length;ge--&&Ne(re[ge],ge,re)!==!1;);return re}function vi(re,Ne){for(var ge=-1,ft=re==null?0:re.length;++ge<ft;)if(!Ne(re[ge],ge,re))return!1;return!0}function va(re,Ne){for(var ge=-1,ft=re==null?0:re.length,en=0,Hn=[];++ge<ft;){var Vr=re[ge];Ne(Vr,ge,re)&&(Hn[en++]=Vr)}return Hn}function Mo(re,Ne){var ge=re==null?0:re.length;return!!ge&&wu(re,Ne,0)>-1}function xu(re,Ne,ge){for(var ft=-1,en=re==null?0:re.length;++ft<en;)if(ge(Ne,re[ft]))return!0;return!1}function Nn(re,Ne){for(var ge=-1,ft=re==null?0:re.length,en=Array(ft);++ge<ft;)en[ge]=Ne(re[ge],ge,re);return en}function gi(re,Ne){for(var ge=-1,ft=Ne.length,en=re.length;++ge<ft;)re[en+ge]=Ne[ge];return re}function ls(re,Ne,ge,ft){var en=-1,Hn=re==null?0:re.length;for(ft&&Hn&&(ge=re[++en]);++en<Hn;)ge=Ne(ge,re[en],en,re);return ge}function Yf(re,Ne,ge,ft){var en=re==null?0:re.length;for(ft&&en&&(ge=re[--en]);en--;)ge=Ne(ge,re[en],en,re);return ge}function lv(re,Ne){for(var ge=-1,ft=re==null?0:re.length;++ge<ft;)if(Ne(re[ge],ge,re))return!0;return!1}var cC=Kf("length");function Bb(re){return re.split("")}function uv(re){return re.match(nn)||[]}function cv(re,Ne,ge){var ft;return ge(re,function(en,Hn,Vr){if(Ne(en,Hn,Vr))return ft=Hn,!1}),ft}function qf(re,Ne,ge,ft){for(var en=re.length,Hn=ge+(ft?1:-1);ft?Hn--:++Hn<en;)if(Ne(re[Hn],Hn,re))return Hn;return-1}function wu(re,Ne,ge){return Ne===Ne?pv(re,Ne,ge):qf(re,us,ge)}function fC(re,Ne,ge,ft){for(var en=ge-1,Hn=re.length;++en<Hn;)if(ft(re[en],Ne))return en;return-1}function us(re){return re!==re}function Ub(re,Ne){var ge=re==null?0:re.length;return ge?yc(re,Ne)/ge:pe}function Kf(re){return function(Ne){return Ne==null?r:Ne[re]}}function Xf(re){return function(Ne){return re==null?r:re[Ne]}}function qp(re,Ne,ge,ft,en){return en(re,function(Hn,Vr,qn){ge=ft?(ft=!1,Hn):Ne(ge,Hn,Vr,qn)}),ge}function dC(re,Ne){var ge=re.length;for(re.sort(Ne);ge--;)re[ge]=re[ge].value;return re}function yc(re,Ne){for(var ge,ft=-1,en=re.length;++ft<en;){var Hn=Ne(re[ft]);Hn!==r&&(ge=ge===r?Hn:ge+Hn)}return ge}function Kp(re,Ne){for(var ge=-1,ft=Array(re);++ge<re;)ft[ge]=Ne(ge);return ft}function yi(re,Ne){return Nn(Ne,function(ge){return[ge,re[ge]]})}function cs(re){return re&&re.slice(0,Wb(re)+1).replace(ka,"")}function Bn(re){return function(Ne){return re(Ne)}}function Io(re,Ne){return Nn(Ne,function(ge){return re[ge]})}function Cu(re,Ne){return re.has(Ne)}function Zf(re,Ne){for(var ge=-1,ft=re.length;++ge<ft&&wu(Ne,re[ge],0)>-1;);return ge}function jb(re,Ne){for(var ge=re.length;ge--&&wu(Ne,re[ge],0)>-1;);return ge}function Qf(re,Ne){for(var ge=re.length,ft=0;ge--;)re[ge]===Ne&&++ft;return ft}var pC=Xf(kl),hC=Xf(Ia);function fv(re){return"\\"+Q[re]}function mC(re,Ne){return re==null?r:re[Ne]}function bc(re){return Su.test(re)}function vC(re){return to.test(re)}function $b(re){for(var Ne,ge=[];!(Ne=re.next()).done;)ge.push(Ne.value);return ge}function dv(re){var Ne=-1,ge=Array(re.size);return re.forEach(function(ft,en){ge[++Ne]=[en,ft]}),ge}function Vb(re,Ne){return function(ge){return re(Ne(ge))}}function Dl(re,Ne){for(var ge=-1,ft=re.length,en=0,Hn=[];++ge<ft;){var Vr=re[ge];(Vr===Ne||Vr===b)&&(re[ge]=b,Hn[en++]=ge)}return Hn}function Jf(re){var Ne=-1,ge=Array(re.size);return re.forEach(function(ft){ge[++Ne]=ft}),ge}function Sc(re){var Ne=-1,ge=Array(re.size);return re.forEach(function(ft){ge[++Ne]=[ft,ft]}),ge}function pv(re,Ne,ge){for(var ft=ge-1,en=re.length;++ft<en;)if(re[ft]===Ne)return ft;return-1}function Hb(re,Ne,ge){for(var ft=ge+1;ft--;)if(re[ft]===Ne)return ft;return ft}function _u(re){return bc(re)?yC(re):cC(re)}function Lo(re){return bc(re)?bC(re):Bb(re)}function Wb(re){for(var Ne=re.length;Ne--&&q.test(re.charAt(Ne)););return Ne}var gC=Xf(W);function yC(re){for(var Ne=ur.lastIndex=0;ur.test(re);)++Ne;return Ne}function bC(re){return re.match(ur)||[]}function SC(re){return re.match(Jr)||[]}var xC=function re(Ne){Ne=Ne==null?Vt:xc.defaults(Vt.Object(),Ne,xc.pick(Vt,mi));var ge=Ne.Array,ft=Ne.Date,en=Ne.Error,Hn=Ne.Function,Vr=Ne.Math,qn=Ne.Object,Ws=Ne.RegExp,Xp=Ne.String,Li=Ne.TypeError,Gs=ge.prototype,wC=Hn.prototype,wc=qn.prototype,Zp=Ne["__core-js_shared__"],Qp=wC.toString,Kn=wc.hasOwnProperty,Gb=0,Yb=function(){var l=/[^.]+$/.exec(Zp&&Zp.keys&&Zp.keys.IE_PROTO||"");return l?"Symbol(src)_1."+l:""}(),ed=wc.toString,Va=Qp.call(qn),qb=Vt._,CC=Ws("^"+Qp.call(Kn).replace(Aa,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Jp=V?Ne.Buffer:r,Pl=Ne.Symbol,eh=Ne.Uint8Array,Kb=Jp?Jp.allocUnsafe:r,td=Vb(qn.getPrototypeOf,qn),th=qn.create,Cc=wc.propertyIsEnumerable,nh=Gs.splice,_c=Pl?Pl.isConcatSpreadable:r,nd=Pl?Pl.iterator:r,Eu=Pl?Pl.toStringTag:r,rh=function(){try{var l=zl(qn,"defineProperty");return l({},"",{}),l}catch{}}(),hv=Ne.clearTimeout!==Vt.clearTimeout&&Ne.clearTimeout,mv=ft&&ft.now!==Vt.Date.now&&ft.now,Ec=Ne.setTimeout!==Vt.setTimeout&&Ne.setTimeout,Ys=Vr.ceil,rd=Vr.floor,vv=qn.getOwnPropertySymbols,Xb=Jp?Jp.isBuffer:r,Zb=Ne.isFinite,Qb=Gs.join,Jb=Vb(qn.keys,qn),Fr=Vr.max,ea=Vr.min,_C=ft.now,e0=Ne.parseInt,t0=Vr.random,EC=Gs.reverse,gv=zl(Ne,"DataView"),qs=zl(Ne,"Map"),ad=zl(Ne,"Promise"),fs=zl(Ne,"Set"),Tc=zl(Ne,"WeakMap"),Nc=zl(qn,"create"),Rc=Tc&&new Tc,Oc={},Ac=zu(gv),ah=zu(qs),ih=zu(ad),yv=zu(fs),TC=zu(Tc),kc=Pl?Pl.prototype:r,id=kc?kc.valueOf:r,n0=kc?kc.toString:r;function L(l){if(_r(l)&&!rn(l)&&!(l instanceof _n)){if(l instanceof no)return l;if(Kn.call(l,"__wrapped__"))return P0(l)}return new no(l)}var Ml=function(){function l(){}return function(d){if(!br(d))return{};if(th)return th(d);l.prototype=d;var g=new l;return l.prototype=r,g}}();function Ks(){}function no(l,d){this.__wrapped__=l,this.__actions__=[],this.__chain__=!!d,this.__index__=0,this.__values__=r}L.templateSettings={escape:wo,evaluate:es,interpolate:ts,variable:"",imports:{_:L}},L.prototype=Ks.prototype,L.prototype.constructor=L,no.prototype=Ml(Ks.prototype),no.prototype.constructor=no;function _n(l){this.__wrapped__=l,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=we,this.__views__=[]}function kt(){var l=new _n(this.__wrapped__);return l.__actions__=na(this.__actions__),l.__dir__=this.__dir__,l.__filtered__=this.__filtered__,l.__iteratees__=na(this.__iteratees__),l.__takeCount__=this.__takeCount__,l.__views__=na(this.__views__),l}function Dc(){if(this.__filtered__){var l=new _n(this);l.__dir__=-1,l.__filtered__=!0}else l=this.clone(),l.__dir__*=-1;return l}function zr(){var l=this.__wrapped__.value(),d=this.__dir__,g=rn(l),E=d<0,P=g?l.length:0,U=_h(0,P,this.__views__),Y=U.start,Z=U.end,ae=Z-Y,De=E?Z:Y-1,Oe=this.__iteratees__,Pe=Oe.length,Ke=0,dt=ea(ae,this.__takeCount__);if(!g||!E&&P==ae&&dt==ae)return ph(l,this.__actions__);var At=[];e:for(;ae--&&Ke<dt;){De+=d;for(var cn=-1,Pt=l[De];++cn<Pe;){var vn=Oe[cn],En=vn.iteratee,za=vn.type,dr=En(Pt);if(za==Re)Pt=dr;else if(!dr){if(za==ce)continue e;break e}}At[Ke++]=Pt}return At}_n.prototype=Ml(Ks.prototype),_n.prototype.constructor=_n;function ln(l){var d=-1,g=l==null?0:l.length;for(this.clear();++d<g;){var E=l[d];this.set(E[0],E[1])}}function Tu(){this.__data__=Nc?Nc(null):{},this.size=0}function od(l){var d=this.has(l)&&delete this.__data__[l];return this.size-=d?1:0,d}function bv(l){var d=this.__data__;if(Nc){var g=d[l];return g===m?r:g}return Kn.call(d,l)?d[l]:r}function In(l){var d=this.__data__;return Nc?d[l]!==r:Kn.call(d,l)}function Xs(l,d){var g=this.__data__;return this.size+=this.has(l)?0:1,g[l]=Nc&&d===r?m:d,this}ln.prototype.clear=Tu,ln.prototype.delete=od,ln.prototype.get=bv,ln.prototype.has=In,ln.prototype.set=Xs;function La(l){var d=-1,g=l==null?0:l.length;for(this.clear();++d<g;){var E=l[d];this.set(E[0],E[1])}}function Nu(){this.__data__=[],this.size=0}function Fo(l){var d=this.__data__,g=uh(d,l);if(g<0)return!1;var E=d.length-1;return g==E?d.pop():nh.call(d,g,1),--this.size,!0}function Zs(l){var d=this.__data__,g=uh(d,l);return g<0?r:d[g][1]}function Ru(l){return uh(this.__data__,l)>-1}function oh(l,d){var g=this.__data__,E=uh(g,l);return E<0?(++this.size,g.push([l,d])):g[E][1]=d,this}La.prototype.clear=Nu,La.prototype.delete=Fo,La.prototype.get=Zs,La.prototype.has=Ru,La.prototype.set=oh;function Qs(l){var d=-1,g=l==null?0:l.length;for(this.clear();++d<g;){var E=l[d];this.set(E[0],E[1])}}function NC(){this.size=0,this.__data__={hash:new ln,map:new(qs||La),string:new ln}}function sd(l){var d=wh(this,l).delete(l);return this.size-=d?1:0,d}function Ha(l){return wh(this,l).get(l)}function Sv(l){return wh(this,l).has(l)}function r0(l,d){var g=wh(this,l),E=g.size;return g.set(l,d),this.size+=g.size==E?0:1,this}Qs.prototype.clear=NC,Qs.prototype.delete=sd,Qs.prototype.get=Ha,Qs.prototype.has=Sv,Qs.prototype.set=r0;function Js(l){var d=-1,g=l==null?0:l.length;for(this.__data__=new Qs;++d<g;)this.add(l[d])}function Ou(l){return this.__data__.set(l,m),this}function xv(l){return this.__data__.has(l)}Js.prototype.add=Js.prototype.push=Ou,Js.prototype.has=xv;function Hr(l){var d=this.__data__=new La(l);this.size=d.size}function sh(){this.__data__=new La,this.size=0}function wv(l){var d=this.__data__,g=d.delete(l);return this.size=d.size,g}function Cv(l){return this.__data__.get(l)}function ld(l){return this.__data__.has(l)}function Pc(l,d){var g=this.__data__;if(g instanceof La){var E=g.__data__;if(!qs||E.length<s-1)return E.push([l,d]),this.size=++g.size,this;g=this.__data__=new Qs(E)}return g.set(l,d),this.size=g.size,this}Hr.prototype.clear=sh,Hr.prototype.delete=wv,Hr.prototype.get=Cv,Hr.prototype.has=ld,Hr.prototype.set=Pc;function ds(l,d){var g=rn(l),E=!g&&Uu(l),P=!g&&!E&&ws(l),U=!g&&!E&&!P&&$l(l),Y=g||E||P||U,Z=Y?Kp(l.length,Xp):[],ae=Z.length;for(var De in l)(d||Kn.call(l,De))&&!(Y&&(De=="length"||P&&(De=="offset"||De=="parent")||U&&(De=="buffer"||De=="byteLength"||De=="byteOffset")||bs(De,ae)))&&Z.push(De);return Z}function a0(l){var d=l.length;return d?l[ro(0,d-1)]:r}function Au(l,d){return Th(na(l),Il(d,0,l.length))}function i0(l){return Th(na(l))}function lh(l,d,g){(g!==r&&!Bo(l[d],g)||g===r&&!(d in l))&&ps(l,d,g)}function ud(l,d,g){var E=l[d];(!(Kn.call(l,d)&&Bo(E,g))||g===r&&!(d in l))&&ps(l,d,g)}function uh(l,d){for(var g=l.length;g--;)if(Bo(l[g][0],d))return g;return-1}function o0(l,d,g,E){return Ll(l,function(P,U,Y){d(E,P,g(P),Y)}),E}function _v(l,d){return l&&Fa(d,ia(d),l)}function s0(l,d){return l&&Fa(d,wi(d),l)}function ps(l,d,g){d=="__proto__"&&rh?rh(l,d,{configurable:!0,enumerable:!0,value:g,writable:!0}):l[d]=g}function Ev(l,d){for(var g=-1,E=d.length,P=ge(E),U=l==null;++g<E;)P[g]=U?r:yg(l,d[g]);return P}function Il(l,d,g){return l===l&&(g!==r&&(l=l<=g?l:g),d!==r&&(l=l>=d?l:d)),l}function Fi(l,d,g,E,P,U){var Y,Z=d&x,ae=d&C,De=d&_;if(g&&(Y=P?g(l,E,P,U):g(l)),Y!==r)return Y;if(!br(l))return l;var Oe=rn(l);if(Oe){if(Y=ra(l),!Z)return na(l,Y)}else{var Pe=yr(l),Ke=Pe==We||Pe==Yt;if(ws(l))return vh(l,Z);if(Pe==St||Pe==st||Ke&&!P){if(Y=ae||Ke?{}:N0(l),!Z)return ae?zC(l,s0(Y,l)):Ui(l,_v(Y,l))}else{if(!Dn[Pe])return P?l:{};Y=jC(l,Pe,Z)}}U||(U=new Hr);var dt=U.get(l);if(dt)return dt;U.set(l,Y),hg(l)?l.forEach(function(Pt){Y.add(Fi(Pt,d,g,Pt,l,U))}):pg(l)&&l.forEach(function(Pt,vn){Y.set(vn,Fi(Pt,d,g,vn,l,U))});var At=De?ae?Fu:Cd:ae?wi:ia,cn=Oe?r:At(l);return wt(cn||l,function(Pt,vn){cn&&(vn=Pt,Pt=l[vn]),ud(Y,vn,Fi(Pt,d,g,vn,l,U))}),Y}function RC(l){var d=ia(l);return function(g){return l0(g,l,d)}}function l0(l,d,g){var E=g.length;if(l==null)return!E;for(l=qn(l);E--;){var P=g[E],U=d[P],Y=l[P];if(Y===r&&!(P in l)||!U(Y))return!1}return!0}function u0(l,d,g){if(typeof l!="function")throw new Li(u);return al(function(){l.apply(r,g)},d)}function Rr(l,d,g,E){var P=-1,U=Mo,Y=!0,Z=l.length,ae=[],De=d.length;if(!Z)return ae;g&&(d=Nn(d,Bn(g))),E?(U=xu,Y=!1):d.length>=s&&(U=Cu,Y=!1,d=new Js(d));e:for(;++P<Z;){var Oe=l[P],Pe=g==null?Oe:g(Oe);if(Oe=E||Oe!==0?Oe:0,Y&&Pe===Pe){for(var Ke=De;Ke--;)if(d[Ke]===Pe)continue e;ae.push(Oe)}else U(d,Pe,E)||ae.push(Oe)}return ae}var Ll=yd(fr),cd=yd(nt,!0);function Tv(l,d){var g=!0;return Ll(l,function(E,P,U){return g=!!d(E,P,U),g}),g}function hs(l,d,g){for(var E=-1,P=l.length;++E<P;){var U=l[E],Y=d(U);if(Y!=null&&(Z===r?Y===Y&&!bn(Y):g(Y,Z)))var Z=Y,ae=U}return ae}function OC(l,d,g,E){var P=l.length;for(g=tn(g),g<0&&(g=-g>P?0:P+g),E=E===r||E>P?P:tn(E),E<0&&(E+=P),E=g>E?0:$u(E);g<E;)l[g++]=d;return l}function ch(l,d){var g=[];return Ll(l,function(E,P,U){d(E,P,U)&&g.push(E)}),g}function ga(l,d,g,E,P){var U=-1,Y=l.length;for(g||(g=Gv),P||(P=[]);++U<Y;){var Z=l[U];d>0&&g(Z)?d>1?ga(Z,d-1,g,E,P):gi(P,Z):E||(P[P.length]=Z)}return P}var Nv=jc(),ku=jc(!0);function fr(l,d){return l&&Nv(l,d,ia)}function nt(l,d){return l&&ku(l,d,ia)}function zi(l,d){return va(d,function(g){return Cs(l[g])})}function ya(l,d){d=vs(d,l);for(var g=0,E=d.length;l!=null&&g<E;)l=l[Si(d[g++])];return g&&g==E?l:r}function c0(l,d,g){var E=d(l);return rn(l)?E:gi(E,g(l))}function Wa(l){return l==null?l===r?Ve:Kt:Eu&&Eu in qn(l)?T0(l):Xv(l)}function Rv(l,d){return l>d}function AC(l,d){return l!=null&&Kn.call(l,d)}function kC(l,d){return l!=null&&d in qn(l)}function ta(l,d,g){return l>=ea(d,g)&&l<Fr(d,g)}function Ov(l,d,g){for(var E=g?xu:Mo,P=l[0].length,U=l.length,Y=U,Z=ge(U),ae=1/0,De=[];Y--;){var Oe=l[Y];Y&&d&&(Oe=Nn(Oe,Bn(d))),ae=ea(Oe.length,ae),Z[Y]=!g&&(d||P>=120&&Oe.length>=120)?new Js(Y&&Oe):r}Oe=l[0];var Pe=-1,Ke=Z[0];e:for(;++Pe<P&&De.length<ae;){var dt=Oe[Pe],At=d?d(dt):dt;if(dt=g||dt!==0?dt:0,!(Ke?Cu(Ke,At):E(De,At,g))){for(Y=U;--Y;){var cn=Z[Y];if(!(cn?Cu(cn,At):E(l[Y],At,g)))continue e}Ke&&Ke.push(At),De.push(dt)}}return De}function DC(l,d,g,E){return fr(l,function(P,U,Y){d(E,g(P),U,Y)}),E}function fd(l,d,g){d=vs(d,l),l=rl(l,d);var E=l==null?l:l[Si(io(d))];return E==null?r:pt(E,l,g)}function Av(l){return _r(l)&&Wa(l)==st}function dd(l){return _r(l)&&Wa(l)==Tt}function Mc(l){return _r(l)&&Wa(l)==vt}function pd(l,d,g,E,P){return l===d?!0:l==null||d==null||!_r(l)&&!_r(d)?l!==l&&d!==d:PC(l,d,g,E,pd,P)}function PC(l,d,g,E,P,U){var Y=rn(l),Z=rn(d),ae=Y?mt:yr(l),De=Z?mt:yr(d);ae=ae==st?St:ae,De=De==st?St:De;var Oe=ae==St,Pe=De==St,Ke=ae==De;if(Ke&&ws(l)){if(!ws(d))return!1;Y=!0,Oe=!1}if(Ke&&!Oe)return U||(U=new Hr),Y||$l(l)?wd(l,d,g,E,P,U):E0(l,d,ae,g,E,P,U);if(!(g&R)){var dt=Oe&&Kn.call(l,"__wrapped__"),At=Pe&&Kn.call(d,"__wrapped__");if(dt||At){var cn=dt?l.value():l,Pt=At?d.value():d;return U||(U=new Hr),P(cn,Pt,g,E,U)}}return Ke?(U||(U=new Hr),eD(l,d,g,E,P,U)):!1}function MC(l){return _r(l)&&yr(l)==ye}function kv(l,d,g,E){var P=g.length,U=P,Y=!E;if(l==null)return!U;for(l=qn(l);P--;){var Z=g[P];if(Y&&Z[2]?Z[1]!==l[Z[0]]:!(Z[0]in l))return!1}for(;++P<U;){Z=g[P];var ae=Z[0],De=l[ae],Oe=Z[1];if(Y&&Z[2]){if(De===r&&!(ae in l))return!1}else{var Pe=new Hr;if(E)var Ke=E(De,Oe,ae,l,d,Pe);if(!(Ke===r?pd(Oe,De,R|A,E,Pe):Ke))return!1}}return!0}function f0(l){if(!br(l)||qv(l))return!1;var d=Cs(l)?CC:Lr;return d.test(zu(l))}function IC(l){return _r(l)&&Wa(l)==Bt}function d0(l){return _r(l)&&yr(l)==fn}function p0(l){return _r(l)&&Ud(l.length)&&!!pn[Wa(l)]}function h0(l){return typeof l=="function"?l:l==null?Ci:typeof l=="object"?rn(l)?Mv(l[0],l[1]):v0(l):Kd(l)}function Dv(l){if(!Wc(l))return Jb(l);var d=[];for(var g in qn(l))Kn.call(l,g)&&g!="constructor"&&d.push(g);return d}function LC(l){if(!br(l))return GC(l);var d=Wc(l),g=[];for(var E in l)E=="constructor"&&(d||!Kn.call(l,E))||g.push(E);return g}function Pv(l,d){return l<d}function m0(l,d){var g=-1,E=Gr(l)?ge(l.length):[];return Ll(l,function(P,U,Y){E[++g]=d(P,U,Y)}),E}function v0(l){var d=Ch(l);return d.length==1&&d[0][2]?Kv(d[0][0],d[0][1]):function(g){return g===l||kv(g,l,d)}}function Mv(l,d){return Eh(l)&&R0(d)?Kv(Si(l),d):function(g){var E=yg(g,l);return E===r&&E===d?ef(g,l):pd(d,E,R|A)}}function fh(l,d,g,E,P){l!==d&&Nv(d,function(U,Y){if(P||(P=new Hr),br(U))g0(l,d,Y,g,fh,E,P);else{var Z=E?E(Ss(l,Y),U,Y+"",l,d,P):r;Z===r&&(Z=U),lh(l,Y,Z)}},wi)}function g0(l,d,g,E,P,U,Y){var Z=Ss(l,g),ae=Ss(d,g),De=Y.get(ae);if(De){lh(l,g,De);return}var Oe=U?U(Z,ae,g+"",l,d,Y):r,Pe=Oe===r;if(Pe){var Ke=rn(ae),dt=!Ke&&ws(ae),At=!Ke&&!dt&&$l(ae);Oe=ae,Ke||dt||At?rn(Z)?Oe=Z:Cr(Z)?Oe=na(Z):dt?(Pe=!1,Oe=vh(ae,!0)):At?(Pe=!1,Oe=gh(ae,!0)):Oe=[]:ju(ae)||Uu(ae)?(Oe=Z,Uu(Z)?Oe=vg(Z):(!br(Z)||Cs(Z))&&(Oe=N0(ae))):Pe=!1}Pe&&(Y.set(ae,Oe),P(Oe,ae,E,U,Y),Y.delete(ae)),lh(l,g,Oe)}function y0(l,d){var g=l.length;if(!!g)return d+=d<0?g:0,bs(d,g)?l[d]:r}function b0(l,d,g){d.length?d=Nn(d,function(U){return rn(U)?function(Y){return ya(Y,U.length===1?U[0]:U)}:U}):d=[Ci];var E=-1;d=Nn(d,Bn(Ot()));var P=m0(l,function(U,Y,Z){var ae=Nn(d,function(De){return De(U)});return{criteria:ae,index:++E,value:U}});return dC(P,function(U,Y){return x0(U,Y,g)})}function Iv(l,d){return Rt(l,d,function(g,E){return ef(l,E)})}function Rt(l,d,g){for(var E=-1,P=d.length,U={};++E<P;){var Y=d[E],Z=ya(l,Y);g(Z,Y)&&Me(U,vs(Y,l),Z)}return U}function yn(l){return function(d){return ya(d,l)}}function Un(l,d,g,E){var P=E?fC:wu,U=-1,Y=d.length,Z=l;for(l===d&&(d=na(d)),g&&(Z=Nn(l,Bn(g)));++U<Y;)for(var ae=0,De=d[U],Oe=g?g(De):De;(ae=P(Z,Oe,ae,E))>-1;)Z!==l&&nh.call(Z,ae,1),nh.call(l,ae,1);return l}function Dr(l,d){for(var g=l?d.length:0,E=g-1;g--;){var P=d[g];if(g==E||P!==U){var U=P;bs(P)?nh.call(l,P,1):hd(l,P)}}return l}function ro(l,d){return l+rd(t0()*(d-l+1))}function S0(l,d,g,E){for(var P=-1,U=Fr(Ys((d-l)/(g||1)),0),Y=ge(U);U--;)Y[E?U:++P]=l,l+=g;return Y}function Lv(l,d){var g="";if(!l||d<1||d>Se)return g;do d%2&&(g+=l),d=rd(d/2),d&&(l+=l);while(d);return g}function mn(l,d){return xs(Td(l,d,Ci),l+"")}function FC(l){return a0(tf(l))}function Fv(l,d){var g=tf(l);return Th(g,Il(d,0,g.length))}function Me(l,d,g,E){if(!br(l))return l;d=vs(d,l);for(var P=-1,U=d.length,Y=U-1,Z=l;Z!=null&&++P<U;){var ae=Si(d[P]),De=g;if(ae==="__proto__"||ae==="constructor"||ae==="prototype")return l;if(P!=Y){var Oe=Z[ae];De=E?E(Oe,ae,Z):r,De===r&&(De=br(Oe)?Oe:bs(d[P+1])?[]:{})}ud(Z,ae,De),Z=Z[ae]}return l}var Wr=Rc?function(l,d){return Rc.set(l,d),l}:Ci,Ut=rh?function(l,d){return rh(l,"toString",{configurable:!0,enumerable:!1,value:Og(d),writable:!0})}:Ci;function Ic(l){return Th(tf(l))}function Br(l,d,g){var E=-1,P=l.length;d<0&&(d=-d>P?0:P+d),g=g>P?P:g,g<0&&(g+=P),P=d>g?0:g-d>>>0,d>>>=0;for(var U=ge(P);++E<P;)U[E]=l[E+d];return U}function Du(l,d){var g;return Ll(l,function(E,P,U){return g=d(E,P,U),!g}),!!g}function Bi(l,d,g){var E=0,P=l==null?E:l.length;if(typeof d=="number"&&d===d&&P<=Le){for(;E<P;){var U=E+P>>>1,Y=l[U];Y!==null&&!bn(Y)&&(g?Y<=d:Y<d)?E=U+1:P=U}return P}return Pu(l,d,Ci,g)}function Pu(l,d,g,E){var P=0,U=l==null?0:l.length;if(U===0)return 0;d=g(d);for(var Y=d!==d,Z=d===null,ae=bn(d),De=d===r;P<U;){var Oe=rd((P+U)/2),Pe=g(l[Oe]),Ke=Pe!==r,dt=Pe===null,At=Pe===Pe,cn=bn(Pe);if(Y)var Pt=E||At;else De?Pt=At&&(E||Ke):Z?Pt=At&&Ke&&(E||!dt):ae?Pt=At&&Ke&&!dt&&(E||!cn):dt||cn?Pt=!1:Pt=E?Pe<=d:Pe<d;Pt?P=Oe+1:U=Oe}return ea(U,Ie)}function Mu(l,d){for(var g=-1,E=l.length,P=0,U=[];++g<E;){var Y=l[g],Z=d?d(Y):Y;if(!g||!Bo(Z,ae)){var ae=Z;U[P++]=Y===0?0:Y}}return U}function Lc(l){return typeof l=="number"?l:bn(l)?pe:+l}function Ga(l){if(typeof l=="string")return l;if(rn(l))return Nn(l,Ga)+"";if(bn(l))return n0?n0.call(l):"";var d=l+"";return d=="0"&&1/l==-oe?"-0":d}function ms(l,d,g){var E=-1,P=Mo,U=l.length,Y=!0,Z=[],ae=Z;if(g)Y=!1,P=xu;else if(U>=s){var De=d?null:xd(l);if(De)return Jf(De);Y=!1,P=Cu,ae=new Js}else ae=d?[]:Z;e:for(;++E<U;){var Oe=l[E],Pe=d?d(Oe):Oe;if(Oe=g||Oe!==0?Oe:0,Y&&Pe===Pe){for(var Ke=ae.length;Ke--;)if(ae[Ke]===Pe)continue e;d&&ae.push(Pe),Z.push(Oe)}else P(ae,Pe,g)||(ae!==Z&&ae.push(Pe),Z.push(Oe))}return Z}function hd(l,d){return d=vs(d,l),l=rl(l,d),l==null||delete l[Si(io(d))]}function dh(l,d,g,E){return Me(l,d,g(ya(l,d)),E)}function Fc(l,d,g,E){for(var P=l.length,U=E?P:-1;(E?U--:++U<P)&&d(l[U],U,l););return g?Br(l,E?0:U,E?U+1:P):Br(l,E?U+1:0,E?P:U)}function ph(l,d){var g=l;return g instanceof _n&&(g=g.value()),ls(d,function(E,P){return P.func.apply(P.thisArg,gi([E],P.args))},g)}function md(l,d,g){var E=l.length;if(E<2)return E?ms(l[0]):[];for(var P=-1,U=ge(E);++P<E;)for(var Y=l[P],Z=-1;++Z<E;)Z!=P&&(U[P]=Rr(U[P]||Y,l[Z],d,g));return ms(ga(U,1),d,g)}function hh(l,d,g){for(var E=-1,P=l.length,U=d.length,Y={};++E<P;){var Z=E<U?d[E]:r;g(Y,l[E],Z)}return Y}function vd(l){return Cr(l)?l:[]}function gd(l){return typeof l=="function"?l:Ci}function vs(l,d){return rn(l)?l:Eh(l,d)?[l]:Zv(Gn(l))}var zv=mn;function gs(l,d,g){var E=l.length;return g=g===r?E:g,!d&&g>=E?l:Br(l,d,g)}var mh=hv||function(l){return Vt.clearTimeout(l)};function vh(l,d){if(d)return l.slice();var g=l.length,E=Kb?Kb(g):new l.constructor(g);return l.copy(E),E}function zc(l){var d=new l.constructor(l.byteLength);return new eh(d).set(new eh(l)),d}function Bc(l,d){var g=d?zc(l.buffer):l.buffer;return new l.constructor(g,l.byteOffset,l.byteLength)}function Bv(l){var d=new l.constructor(l.source,zn.exec(l));return d.lastIndex=l.lastIndex,d}function Uv(l){return id?qn(id.call(l)):{}}function gh(l,d){var g=d?zc(l.buffer):l.buffer;return new l.constructor(g,l.byteOffset,l.length)}function yh(l,d){if(l!==d){var g=l!==r,E=l===null,P=l===l,U=bn(l),Y=d!==r,Z=d===null,ae=d===d,De=bn(d);if(!Z&&!De&&!U&&l>d||U&&Y&&ae&&!Z&&!De||E&&Y&&ae||!g&&ae||!P)return 1;if(!E&&!U&&!De&&l<d||De&&g&&P&&!E&&!U||Z&&g&&P||!Y&&P||!ae)return-1}return 0}function x0(l,d,g){for(var E=-1,P=l.criteria,U=d.criteria,Y=P.length,Z=g.length;++E<Y;){var ae=yh(P[E],U[E]);if(ae){if(E>=Z)return ae;var De=g[E];return ae*(De=="desc"?-1:1)}}return l.index-d.index}function Uc(l,d,g,E){for(var P=-1,U=l.length,Y=g.length,Z=-1,ae=d.length,De=Fr(U-Y,0),Oe=ge(ae+De),Pe=!E;++Z<ae;)Oe[Z]=d[Z];for(;++P<Y;)(Pe||P<U)&&(Oe[g[P]]=l[P]);for(;De--;)Oe[Z++]=l[P++];return Oe}function jv(l,d,g,E){for(var P=-1,U=l.length,Y=-1,Z=g.length,ae=-1,De=d.length,Oe=Fr(U-Z,0),Pe=ge(Oe+De),Ke=!E;++P<Oe;)Pe[P]=l[P];for(var dt=P;++ae<De;)Pe[dt+ae]=d[ae];for(;++Y<Z;)(Ke||P<U)&&(Pe[dt+g[Y]]=l[P++]);return Pe}function na(l,d){var g=-1,E=l.length;for(d||(d=ge(E));++g<E;)d[g]=l[g];return d}function Fa(l,d,g,E){var P=!g;g||(g={});for(var U=-1,Y=d.length;++U<Y;){var Z=d[U],ae=E?E(g[Z],l[Z],Z,g,l):r;ae===r&&(ae=l[Z]),P?ps(g,Z,ae):ud(g,Z,ae)}return g}function Ui(l,d){return Fa(l,Ya(l),d)}function zC(l,d){return Fa(l,ys(l),d)}function Xn(l,d){return function(g,E){var P=rn(g)?Lt:o0,U=d?d():{};return P(g,l,Ot(E,2),U)}}function el(l){return mn(function(d,g){var E=-1,P=g.length,U=P>1?g[P-1]:r,Y=P>2?g[2]:r;for(U=l.length>3&&typeof U=="function"?(P--,U):r,Y&&aa(g[0],g[1],Y)&&(U=P<3?r:U,P=1),d=qn(d);++E<P;){var Z=g[E];Z&&l(d,Z,E,U)}return d})}function yd(l,d){return function(g,E){if(g==null)return g;if(!Gr(g))return l(g,E);for(var P=g.length,U=d?P:-1,Y=qn(g);(d?U--:++U<P)&&E(Y[U],U,Y)!==!1;);return g}}function jc(l){return function(d,g,E){for(var P=-1,U=qn(d),Y=E(d),Z=Y.length;Z--;){var ae=Y[l?Z:++P];if(g(U[ae],ae,U)===!1)break}return d}}function bh(l,d,g){var E=d&M,P=bd(l);function U(){var Y=this&&this!==Vt&&this instanceof U?P:l;return Y.apply(E?g:this,arguments)}return U}function w0(l){return function(d){d=Gn(d);var g=bc(d)?Lo(d):r,E=g?g[0]:d.charAt(0),P=g?gs(g,1).join(""):d.slice(1);return E[l]()+P}}function $c(l){return function(d){return ls(Rg(Gd(d).replace(Po,"")),l,"")}}function bd(l){return function(){var d=arguments;switch(d.length){case 0:return new l;case 1:return new l(d[0]);case 2:return new l(d[0],d[1]);case 3:return new l(d[0],d[1],d[2]);case 4:return new l(d[0],d[1],d[2],d[3]);case 5:return new l(d[0],d[1],d[2],d[3],d[4]);case 6:return new l(d[0],d[1],d[2],d[3],d[4],d[5]);case 7:return new l(d[0],d[1],d[2],d[3],d[4],d[5],d[6])}var g=Ml(l.prototype),E=l.apply(g,d);return br(E)?E:g}}function BC(l,d,g){var E=bd(l);function P(){for(var U=arguments.length,Y=ge(U),Z=U,ae=Hc(P);Z--;)Y[Z]=arguments[Z];var De=U<3&&Y[0]!==ae&&Y[U-1]!==ae?[]:Dl(Y,ae);if(U-=De.length,U<g)return _0(l,d,Vc,P.placeholder,r,Y,De,r,r,g-U);var Oe=this&&this!==Vt&&this instanceof P?E:l;return pt(Oe,this,Y)}return P}function Sh(l){return function(d,g,E){var P=qn(d);if(!Gr(d)){var U=Ot(g,3);d=ia(d),g=function(Z){return U(P[Z],Z,P)}}var Y=l(d,g,E);return Y>-1?P[U?d[Y]:Y]:r}}function C0(l){return nl(function(d){var g=d.length,E=g,P=no.prototype.thru;for(l&&d.reverse();E--;){var U=d[E];if(typeof U!="function")throw new Li(u);if(P&&!Y&&_d(U)=="wrapper")var Y=new no([],!0)}for(E=Y?E:g;++E<g;){U=d[E];var Z=_d(U),ae=Z=="wrapper"?Wv(U):r;ae&&Yv(ae[0])&&ae[1]==(X|z|$|de)&&!ae[4].length&&ae[9]==1?Y=Y[_d(ae[0])].apply(Y,ae[3]):Y=U.length==1&&Yv(U)?Y[Z]():Y.thru(U)}return function(){var De=arguments,Oe=De[0];if(Y&&De.length==1&&rn(Oe))return Y.plant(Oe).value();for(var Pe=0,Ke=g?d[Pe].apply(this,De):Oe;++Pe<g;)Ke=d[Pe].call(this,Ke);return Ke}})}function Vc(l,d,g,E,P,U,Y,Z,ae,De){var Oe=d&X,Pe=d&M,Ke=d&j,dt=d&(z|B),At=d&ve,cn=Ke?r:bd(l);function Pt(){for(var vn=arguments.length,En=ge(vn),za=vn;za--;)En[za]=arguments[za];if(dt)var dr=Hc(Pt),Ka=Qf(En,dr);if(E&&(En=Uc(En,E,P,dt)),U&&(En=jv(En,U,Y,dt)),vn-=Ka,dt&&vn<De){var Sr=Dl(En,dr);return _0(l,d,Vc,Pt.placeholder,g,En,Sr,Z,ae,De-vn)}var Yr=Pe?g:this,Ba=Ke?Yr[l]:l;return vn=En.length,Z?En=Bl(En,Z):At&&vn>1&&En.reverse(),Oe&&ae<vn&&(En.length=ae),this&&this!==Vt&&this instanceof Pt&&(Ba=cn||bd(Ba)),Ba.apply(Yr,En)}return Pt}function $v(l,d){return function(g,E){return DC(g,l,d(E),{})}}function xh(l,d){return function(g,E){var P;if(g===r&&E===r)return d;if(g!==r&&(P=g),E!==r){if(P===r)return E;typeof g=="string"||typeof E=="string"?(g=Ga(g),E=Ga(E)):(g=Lc(g),E=Lc(E)),P=l(g,E)}return P}}function Vv(l){return nl(function(d){return d=Nn(d,Bn(Ot())),mn(function(g){var E=this;return l(d,function(P){return pt(P,E,g)})})})}function Iu(l,d){d=d===r?" ":Ga(d);var g=d.length;if(g<2)return g?Lv(d,l):d;var E=Lv(d,Ys(l/_u(d)));return bc(d)?gs(Lo(E),0,l).join(""):E.slice(0,l)}function UC(l,d,g,E){var P=d&M,U=bd(l);function Y(){for(var Z=-1,ae=arguments.length,De=-1,Oe=E.length,Pe=ge(Oe+ae),Ke=this&&this!==Vt&&this instanceof Y?U:l;++De<Oe;)Pe[De]=E[De];for(;ae--;)Pe[De++]=arguments[++Z];return pt(Ke,P?g:this,Pe)}return Y}function Hv(l){return function(d,g,E){return E&&typeof E!="number"&&aa(d,g,E)&&(g=E=r),d=il(d),g===r?(g=d,d=0):g=il(g),E=E===r?d<g?1:-1:il(E),S0(d,g,E,l)}}function Sd(l){return function(d,g){return typeof d=="string"&&typeof g=="string"||(d=oo(d),g=oo(g)),l(d,g)}}function _0(l,d,g,E,P,U,Y,Z,ae,De){var Oe=d&z,Pe=Oe?Y:r,Ke=Oe?r:Y,dt=Oe?U:r,At=Oe?r:U;d|=Oe?$:K,d&=~(Oe?K:$),d&I||(d&=~(M|j));var cn=[l,d,P,dt,Pe,At,Ke,Z,ae,De],Pt=g.apply(r,cn);return Yv(l)&&Gc(Pt,cn),Pt.placeholder=E,A0(Pt,l,d)}function tl(l){var d=Vr[l];return function(g,E){if(g=oo(g),E=E==null?0:ea(tn(E),292),E&&Zb(g)){var P=(Gn(g)+"e").split("e"),U=d(P[0]+"e"+(+P[1]+E));return P=(Gn(U)+"e").split("e"),+(P[0]+"e"+(+P[1]-E))}return d(g)}}var xd=fs&&1/Jf(new fs([,-0]))[1]==oe?function(l){return new fs(l)}:Pg;function Fl(l){return function(d){var g=yr(d);return g==ye?dv(d):g==fn?Sc(d):yi(d,l(d))}}function zo(l,d,g,E,P,U,Y,Z){var ae=d&j;if(!ae&&typeof l!="function")throw new Li(u);var De=E?E.length:0;if(De||(d&=~($|K),E=P=r),Y=Y===r?Y:Fr(tn(Y),0),Z=Z===r?Z:tn(Z),De-=P?P.length:0,d&K){var Oe=E,Pe=P;E=P=r}var Ke=ae?r:Wv(l),dt=[l,d,g,E,P,Oe,Pe,U,Y,Z];if(Ke&&O0(dt,Ke),l=dt[0],d=dt[1],g=dt[2],E=dt[3],P=dt[4],Z=dt[9]=dt[9]===r?ae?0:l.length:Fr(dt[9]-De,0),!Z&&d&(z|B)&&(d&=~(z|B)),!d||d==M)var At=bh(l,d,g);else d==z||d==B?At=BC(l,d,Z):(d==$||d==(M|$))&&!P.length?At=UC(l,d,g,E):At=Vc.apply(r,dt);var cn=Ke?Wr:Gc;return A0(cn(At,dt),l,d)}function bi(l,d,g,E){return l===r||Bo(l,wc[g])&&!Kn.call(E,g)?d:l}function Lu(l,d,g,E,P,U){return br(l)&&br(d)&&(U.set(d,l),fh(l,d,r,Lu,U),U.delete(d)),l}function un(l){return ju(l)?r:l}function wd(l,d,g,E,P,U){var Y=g&R,Z=l.length,ae=d.length;if(Z!=ae&&!(Y&&ae>Z))return!1;var De=U.get(l),Oe=U.get(d);if(De&&Oe)return De==d&&Oe==l;var Pe=-1,Ke=!0,dt=g&A?new Js:r;for(U.set(l,d),U.set(d,l);++Pe<Z;){var At=l[Pe],cn=d[Pe];if(E)var Pt=Y?E(cn,At,Pe,d,l,U):E(At,cn,Pe,l,d,U);if(Pt!==r){if(Pt)continue;Ke=!1;break}if(dt){if(!lv(d,function(vn,En){if(!Cu(dt,En)&&(At===vn||P(At,vn,g,E,U)))return dt.push(En)})){Ke=!1;break}}else if(!(At===cn||P(At,cn,g,E,U))){Ke=!1;break}}return U.delete(l),U.delete(d),Ke}function E0(l,d,g,E,P,U,Y){switch(g){case ke:if(l.byteLength!=d.byteLength||l.byteOffset!=d.byteOffset)return!1;l=l.buffer,d=d.buffer;case Tt:return!(l.byteLength!=d.byteLength||!U(new eh(l),new eh(d)));case Qe:case vt:case Mt:return Bo(+l,+d);case zt:return l.name==d.name&&l.message==d.message;case Bt:case An:return l==d+"";case ye:var Z=dv;case fn:var ae=E&R;if(Z||(Z=Jf),l.size!=d.size&&!ae)return!1;var De=Y.get(l);if(De)return De==d;E|=A,Y.set(l,d);var Oe=wd(Z(l),Z(d),E,P,U,Y);return Y.delete(l),Oe;case hn:if(id)return id.call(l)==id.call(d)}return!1}function eD(l,d,g,E,P,U){var Y=g&R,Z=Cd(l),ae=Z.length,De=Cd(d),Oe=De.length;if(ae!=Oe&&!Y)return!1;for(var Pe=ae;Pe--;){var Ke=Z[Pe];if(!(Y?Ke in d:Kn.call(d,Ke)))return!1}var dt=U.get(l),At=U.get(d);if(dt&&At)return dt==d&&At==l;var cn=!0;U.set(l,d),U.set(d,l);for(var Pt=Y;++Pe<ae;){Ke=Z[Pe];var vn=l[Ke],En=d[Ke];if(E)var za=Y?E(En,vn,Ke,d,l,U):E(vn,En,Ke,l,d,U);if(!(za===r?vn===En||P(vn,En,g,E,U):za)){cn=!1;break}Pt||(Pt=Ke=="constructor")}if(cn&&!Pt){var dr=l.constructor,Ka=d.constructor;dr!=Ka&&"constructor"in l&&"constructor"in d&&!(typeof dr=="function"&&dr instanceof dr&&typeof Ka=="function"&&Ka instanceof Ka)&&(cn=!1)}return U.delete(l),U.delete(d),cn}function nl(l){return xs(Td(l,r,F0),l+"")}function Cd(l){return c0(l,ia,Ya)}function Fu(l){return c0(l,wi,ys)}var Wv=Rc?function(l){return Rc.get(l)}:Pg;function _d(l){for(var d=l.name+"",g=Oc[d],E=Kn.call(Oc,d)?g.length:0;E--;){var P=g[E],U=P.func;if(U==null||U==l)return P.name}return d}function Hc(l){var d=Kn.call(L,"placeholder")?L:l;return d.placeholder}function Ot(){var l=L.iteratee||kg;return l=l===kg?h0:l,arguments.length?l(arguments[0],arguments[1]):l}function wh(l,d){var g=l.__data__;return VC(d)?g[typeof d=="string"?"string":"hash"]:g.map}function Ch(l){for(var d=ia(l),g=d.length;g--;){var E=d[g],P=l[E];d[g]=[E,P,R0(P)]}return d}function zl(l,d){var g=mC(l,d);return f0(g)?g:r}function T0(l){var d=Kn.call(l,Eu),g=l[Eu];try{l[Eu]=r;var E=!0}catch{}var P=ed.call(l);return E&&(d?l[Eu]=g:delete l[Eu]),P}var Ya=vv?function(l){return l==null?[]:(l=qn(l),va(vv(l),function(d){return Cc.call(l,d)}))}:Ig,ys=vv?function(l){for(var d=[];l;)gi(d,Ya(l)),l=td(l);return d}:Ig,yr=Wa;(gv&&yr(new gv(new ArrayBuffer(1)))!=ke||qs&&yr(new qs)!=ye||ad&&yr(ad.resolve())!=ar||fs&&yr(new fs)!=fn||Tc&&yr(new Tc)!=Ze)&&(yr=function(l){var d=Wa(l),g=d==St?l.constructor:r,E=g?zu(g):"";if(E)switch(E){case Ac:return ke;case ah:return ye;case ih:return ar;case yv:return fn;case TC:return Ze}return d});function _h(l,d,g){for(var E=-1,P=g.length;++E<P;){var U=g[E],Y=U.size;switch(U.type){case"drop":l+=Y;break;case"dropRight":d-=Y;break;case"take":d=ea(d,l+Y);break;case"takeRight":l=Fr(l,d-Y);break}}return{start:l,end:d}}function Ed(l){var d=l.match(qe);return d?d[1].split(bt):[]}function ao(l,d,g){d=vs(d,l);for(var E=-1,P=d.length,U=!1;++E<P;){var Y=Si(d[E]);if(!(U=l!=null&&g(l,Y)))break;l=l[Y]}return U||++E!=P?U:(P=l==null?0:l.length,!!P&&Ud(P)&&bs(Y,P)&&(rn(l)||Uu(l)))}function ra(l){var d=l.length,g=new l.constructor(d);return d&&typeof l[0]=="string"&&Kn.call(l,"index")&&(g.index=l.index,g.input=l.input),g}function N0(l){return typeof l.constructor=="function"&&!Wc(l)?Ml(td(l)):{}}function jC(l,d,g){var E=l.constructor;switch(d){case Tt:return zc(l);case Qe:case vt:return new E(+l);case ke:return Bc(l,g);case jt:case xn:case je:case rt:case xt:case dn:case Xt:case wn:case kn:return gh(l,g);case ye:return new E;case Mt:case An:return new E(l);case Bt:return Bv(l);case fn:return new E;case hn:return Uv(l)}}function $C(l,d){var g=d.length;if(!g)return l;var E=g-1;return d[E]=(g>1?"& ":"")+d[E],d=d.join(g>2?", ":" "),l.replace(Be,`{
|
|
/* [wrapped with `+d+`] */
|
|
`)}function Gv(l){return rn(l)||Uu(l)||!!(_c&&l&&l[_c])}function bs(l,d){var g=typeof l;return d=d??Se,!!d&&(g=="number"||g!="symbol"&&Eo.test(l))&&l>-1&&l%1==0&&l<d}function aa(l,d,g){if(!br(g))return!1;var E=typeof d;return(E=="number"?Gr(g)&&bs(d,g.length):E=="string"&&d in g)?Bo(g[d],l):!1}function Eh(l,d){if(rn(l))return!1;var g=typeof l;return g=="number"||g=="symbol"||g=="boolean"||l==null||bn(l)?!0:_o.test(l)||!Co.test(l)||d!=null&&l in qn(d)}function VC(l){var d=typeof l;return d=="string"||d=="number"||d=="symbol"||d=="boolean"?l!=="__proto__":l===null}function Yv(l){var d=_d(l),g=L[d];if(typeof g!="function"||!(d in _n.prototype))return!1;if(l===g)return!0;var E=Wv(g);return!!E&&l===E[0]}function qv(l){return!!Yb&&Yb in l}var HC=Zp?Cs:Lg;function Wc(l){var d=l&&l.constructor,g=typeof d=="function"&&d.prototype||wc;return l===g}function R0(l){return l===l&&!br(l)}function Kv(l,d){return function(g){return g==null?!1:g[l]===d&&(d!==r||l in qn(g))}}function WC(l){var d=Ih(l,function(E){return g.size===v&&g.clear(),E}),g=d.cache;return d}function O0(l,d){var g=l[1],E=d[1],P=g|E,U=P<(M|j|X),Y=E==X&&g==z||E==X&&g==de&&l[7].length<=d[8]||E==(X|de)&&d[7].length<=d[8]&&g==z;if(!(U||Y))return l;E&M&&(l[2]=d[2],P|=g&M?0:I);var Z=d[3];if(Z){var ae=l[3];l[3]=ae?Uc(ae,Z,d[4]):Z,l[4]=ae?Dl(l[3],b):d[4]}return Z=d[5],Z&&(ae=l[5],l[5]=ae?jv(ae,Z,d[6]):Z,l[6]=ae?Dl(l[5],b):d[6]),Z=d[7],Z&&(l[7]=Z),E&X&&(l[8]=l[8]==null?d[8]:ea(l[8],d[8])),l[9]==null&&(l[9]=d[9]),l[0]=d[0],l[1]=P,l}function GC(l){var d=[];if(l!=null)for(var g in qn(l))d.push(g);return d}function Xv(l){return ed.call(l)}function Td(l,d,g){return d=Fr(d===r?l.length-1:d,0),function(){for(var E=arguments,P=-1,U=Fr(E.length-d,0),Y=ge(U);++P<U;)Y[P]=E[d+P];P=-1;for(var Z=ge(d+1);++P<d;)Z[P]=E[P];return Z[d]=g(Y),pt(l,this,Z)}}function rl(l,d){return d.length<2?l:ya(l,Br(d,0,-1))}function Bl(l,d){for(var g=l.length,E=ea(d.length,g),P=na(l);E--;){var U=d[E];l[E]=bs(U,g)?P[U]:r}return l}function Ss(l,d){if(!(d==="constructor"&&typeof l[d]=="function")&&d!="__proto__")return l[d]}var Gc=k0(Wr),al=Ec||function(l,d){return Vt.setTimeout(l,d)},xs=k0(Ut);function A0(l,d,g){var E=d+"";return xs(l,$C(E,D0(Ed(E),g)))}function k0(l){var d=0,g=0;return function(){var E=_C(),P=ie-(E-g);if(g=E,P>0){if(++d>=Xe)return arguments[0]}else d=0;return l.apply(r,arguments)}}function Th(l,d){var g=-1,E=l.length,P=E-1;for(d=d===r?E:d;++g<d;){var U=ro(g,P),Y=l[U];l[U]=l[g],l[g]=Y}return l.length=d,l}var Zv=WC(function(l){var d=[];return l.charCodeAt(0)===46&&d.push(""),l.replace(cr,function(g,E,P,U){d.push(P?U.replace(tt,"$1"):E||g)}),d});function Si(l){if(typeof l=="string"||bn(l))return l;var d=l+"";return d=="0"&&1/l==-oe?"-0":d}function zu(l){if(l!=null){try{return Qp.call(l)}catch{}try{return l+""}catch{}}return""}function D0(l,d){return wt(Ye,function(g){var E="_."+g[0];d&g[1]&&!Mo(l,E)&&l.push(E)}),l.sort()}function P0(l){if(l instanceof _n)return l.clone();var d=new no(l.__wrapped__,l.__chain__);return d.__actions__=na(l.__actions__),d.__index__=l.__index__,d.__values__=l.__values__,d}function Nh(l,d,g){(g?aa(l,d,g):d===r)?d=1:d=Fr(tn(d),0);var E=l==null?0:l.length;if(!E||d<1)return[];for(var P=0,U=0,Y=ge(Ys(E/d));P<E;)Y[U++]=Br(l,P,P+=d);return Y}function M0(l){for(var d=-1,g=l==null?0:l.length,E=0,P=[];++d<g;){var U=l[d];U&&(P[E++]=U)}return P}function YC(){var l=arguments.length;if(!l)return[];for(var d=ge(l-1),g=arguments[0],E=l;E--;)d[E-1]=arguments[E];return gi(rn(g)?na(g):[g],ga(d,1))}var Nd=mn(function(l,d){return Cr(l)?Rr(l,ga(d,1,Cr,!0)):[]}),Rd=mn(function(l,d){var g=io(d);return Cr(g)&&(g=r),Cr(l)?Rr(l,ga(d,1,Cr,!0),Ot(g,2)):[]}),Yc=mn(function(l,d){var g=io(d);return Cr(g)&&(g=r),Cr(l)?Rr(l,ga(d,1,Cr,!0),r,g):[]});function Qv(l,d,g){var E=l==null?0:l.length;return E?(d=g||d===r?1:tn(d),Br(l,d<0?0:d,E)):[]}function I0(l,d,g){var E=l==null?0:l.length;return E?(d=g||d===r?1:tn(d),d=E-d,Br(l,0,d<0?0:d)):[]}function qC(l,d){return l&&l.length?Fc(l,Ot(d,3),!0,!0):[]}function KC(l,d){return l&&l.length?Fc(l,Ot(d,3),!0):[]}function XC(l,d,g,E){var P=l==null?0:l.length;return P?(g&&typeof g!="number"&&aa(l,d,g)&&(g=0,E=P),OC(l,d,g,E)):[]}function L0(l,d,g){var E=l==null?0:l.length;if(!E)return-1;var P=g==null?0:tn(g);return P<0&&(P=Fr(E+P,0)),qf(l,Ot(d,3),P)}function Rh(l,d,g){var E=l==null?0:l.length;if(!E)return-1;var P=E-1;return g!==r&&(P=tn(g),P=g<0?Fr(E+P,0):ea(P,E-1)),qf(l,Ot(d,3),P,!0)}function F0(l){var d=l==null?0:l.length;return d?ga(l,1):[]}function Oh(l){var d=l==null?0:l.length;return d?ga(l,oe):[]}function Jv(l,d){var g=l==null?0:l.length;return g?(d=d===r?1:tn(d),ga(l,d)):[]}function z0(l){for(var d=-1,g=l==null?0:l.length,E={};++d<g;){var P=l[d];E[P[0]]=P[1]}return E}function B0(l){return l&&l.length?l[0]:r}function ZC(l,d,g){var E=l==null?0:l.length;if(!E)return-1;var P=g==null?0:tn(g);return P<0&&(P=Fr(E+P,0)),wu(l,d,P)}function QC(l){var d=l==null?0:l.length;return d?Br(l,0,-1):[]}var JC=mn(function(l){var d=Nn(l,vd);return d.length&&d[0]===l[0]?Ov(d):[]}),Od=mn(function(l){var d=io(l),g=Nn(l,vd);return d===io(g)?d=r:g.pop(),g.length&&g[0]===l[0]?Ov(g,Ot(d,2)):[]}),eg=mn(function(l){var d=io(l),g=Nn(l,vd);return d=typeof d=="function"?d:r,d&&g.pop(),g.length&&g[0]===l[0]?Ov(g,r,d):[]});function Ad(l,d){return l==null?"":Qb.call(l,d)}function io(l){var d=l==null?0:l.length;return d?l[d-1]:r}function e_(l,d,g){var E=l==null?0:l.length;if(!E)return-1;var P=E;return g!==r&&(P=tn(g),P=P<0?Fr(E+P,0):ea(P,E-1)),d===d?Hb(l,d,P):qf(l,us,P,!0)}function U0(l,d){return l&&l.length?y0(l,tn(d)):r}var j0=mn(kd);function kd(l,d){return l&&l.length&&d&&d.length?Un(l,d):l}function Ah(l,d,g){return l&&l.length&&d&&d.length?Un(l,d,Ot(g,2)):l}function $0(l,d,g){return l&&l.length&&d&&d.length?Un(l,d,r,g):l}var ji=nl(function(l,d){var g=l==null?0:l.length,E=Ev(l,d);return Dr(l,Nn(d,function(P){return bs(P,g)?+P:P}).sort(yh)),E});function qc(l,d){var g=[];if(!(l&&l.length))return g;var E=-1,P=[],U=l.length;for(d=Ot(d,3);++E<U;){var Y=l[E];d(Y,E,l)&&(g.push(Y),P.push(E))}return Dr(l,P),g}function Dd(l){return l==null?l:EC.call(l)}function Pd(l,d,g){var E=l==null?0:l.length;return E?(g&&typeof g!="number"&&aa(l,d,g)?(d=0,g=E):(d=d==null?0:tn(d),g=g===r?E:tn(g)),Br(l,d,g)):[]}function t_(l,d){return Bi(l,d)}function tg(l,d,g){return Pu(l,d,Ot(g,2))}function ng(l,d){var g=l==null?0:l.length;if(g){var E=Bi(l,d);if(E<g&&Bo(l[E],d))return E}return-1}function Md(l,d){return Bi(l,d,!0)}function n_(l,d,g){return Pu(l,d,Ot(g,2),!0)}function kh(l,d){var g=l==null?0:l.length;if(g){var E=Bi(l,d,!0)-1;if(Bo(l[E],d))return E}return-1}function V0(l){return l&&l.length?Mu(l):[]}function r_(l,d){return l&&l.length?Mu(l,Ot(d,2)):[]}function a_(l){var d=l==null?0:l.length;return d?Br(l,1,d):[]}function i_(l,d,g){return l&&l.length?(d=g||d===r?1:tn(d),Br(l,0,d<0?0:d)):[]}function rg(l,d,g){var E=l==null?0:l.length;return E?(d=g||d===r?1:tn(d),d=E-d,Br(l,d<0?0:d,E)):[]}function o_(l,d){return l&&l.length?Fc(l,Ot(d,3),!1,!0):[]}function s_(l,d){return l&&l.length?Fc(l,Ot(d,3)):[]}var l_=mn(function(l){return ms(ga(l,1,Cr,!0))}),u_=mn(function(l){var d=io(l);return Cr(d)&&(d=r),ms(ga(l,1,Cr,!0),Ot(d,2))}),c_=mn(function(l){var d=io(l);return d=typeof d=="function"?d:r,ms(ga(l,1,Cr,!0),r,d)});function H0(l){return l&&l.length?ms(l):[]}function f_(l,d){return l&&l.length?ms(l,Ot(d,2)):[]}function d_(l,d){return d=typeof d=="function"?d:r,l&&l.length?ms(l,r,d):[]}function ag(l){if(!(l&&l.length))return[];var d=0;return l=va(l,function(g){if(Cr(g))return d=Fr(g.length,d),!0}),Kp(d,function(g){return Nn(l,Kf(g))})}function W0(l,d){if(!(l&&l.length))return[];var g=ag(l);return d==null?g:Nn(g,function(E){return pt(d,r,E)})}var p_=mn(function(l,d){return Cr(l)?Rr(l,d):[]}),h_=mn(function(l){return md(va(l,Cr))}),ig=mn(function(l){var d=io(l);return Cr(d)&&(d=r),md(va(l,Cr),Ot(d,2))}),m_=mn(function(l){var d=io(l);return d=typeof d=="function"?d:r,md(va(l,Cr),r,d)}),v_=mn(ag);function g_(l,d){return hh(l||[],d||[],ud)}function G0(l,d){return hh(l||[],d||[],Me)}var y_=mn(function(l){var d=l.length,g=d>1?l[d-1]:r;return g=typeof g=="function"?(l.pop(),g):r,W0(l,g)});function Y0(l){var d=L(l);return d.__chain__=!0,d}function b_(l,d){return d(l),l}function Dh(l,d){return d(l)}var S_=nl(function(l){var d=l.length,g=d?l[0]:0,E=this.__wrapped__,P=function(U){return Ev(U,l)};return d>1||this.__actions__.length||!(E instanceof _n)||!bs(g)?this.thru(P):(E=E.slice(g,+g+(d?1:0)),E.__actions__.push({func:Dh,args:[P],thisArg:r}),new no(E,this.__chain__).thru(function(U){return d&&!U.length&&U.push(r),U}))});function x_(){return Y0(this)}function w_(){return new no(this.value(),this.__chain__)}function q0(){this.__values__===r&&(this.__values__=Qc(this.value()));var l=this.__index__>=this.__values__.length,d=l?r:this.__values__[this.__index__++];return{done:l,value:d}}function og(){return this}function Id(l){for(var d,g=this;g instanceof Ks;){var E=P0(g);E.__index__=0,E.__values__=r,d?P.__wrapped__=E:d=E;var P=E;g=g.__wrapped__}return P.__wrapped__=l,d}function C_(){var l=this.__wrapped__;if(l instanceof _n){var d=l;return this.__actions__.length&&(d=new _n(this)),d=d.reverse(),d.__actions__.push({func:Dh,args:[Dd],thisArg:r}),new no(d,this.__chain__)}return this.thru(Dd)}function K0(){return ph(this.__wrapped__,this.__actions__)}var X0=Xn(function(l,d,g){Kn.call(l,g)?++l[g]:ps(l,g,1)});function Z0(l,d,g){var E=rn(l)?vi:Tv;return g&&aa(l,d,g)&&(d=r),E(l,Ot(d,3))}function __(l,d){var g=rn(l)?va:ch;return g(l,Ot(d,3))}var Q0=Sh(L0),E_=Sh(Rh);function T_(l,d){return ga(Ph(l,d),1)}function N_(l,d){return ga(Ph(l,d),oe)}function J0(l,d,g){return g=g===r?1:tn(g),ga(Ph(l,d),g)}function sg(l,d){var g=rn(l)?wt:Ll;return g(l,Ot(d,3))}function lg(l,d){var g=rn(l)?Dt:cd;return g(l,Ot(d,3))}var Kc=Xn(function(l,d,g){Kn.call(l,g)?l[g].push(d):ps(l,g,[d])});function R_(l,d,g,E){l=Gr(l)?l:tf(l),g=g&&!E?tn(g):0;var P=l.length;return g<0&&(g=Fr(P+g,0)),Bh(l)?g<=P&&l.indexOf(d,g)>-1:!!P&&wu(l,d,g)>-1}var O_=mn(function(l,d,g){var E=-1,P=typeof d=="function",U=Gr(l)?ge(l.length):[];return Ll(l,function(Y){U[++E]=P?pt(d,Y,g):fd(Y,d,g)}),U}),A_=Xn(function(l,d,g){ps(l,g,d)});function Ph(l,d){var g=rn(l)?Nn:m0;return g(l,Ot(d,3))}function k_(l,d,g,E){return l==null?[]:(rn(d)||(d=d==null?[]:[d]),g=E?r:g,rn(g)||(g=g==null?[]:[g]),b0(l,d,g))}var D_=Xn(function(l,d,g){l[g?0:1].push(d)},function(){return[[],[]]});function eS(l,d,g){var E=rn(l)?ls:qp,P=arguments.length<3;return E(l,Ot(d,4),g,P,Ll)}function P_(l,d,g){var E=rn(l)?Yf:qp,P=arguments.length<3;return E(l,Ot(d,4),g,P,cd)}function M_(l,d){var g=rn(l)?va:ch;return g(l,Lh(Ot(d,3)))}function tS(l){var d=rn(l)?a0:FC;return d(l)}function Ld(l,d,g){(g?aa(l,d,g):d===r)?d=1:d=tn(d);var E=rn(l)?Au:Fv;return E(l,d)}function Fd(l){var d=rn(l)?i0:Ic;return d(l)}function I_(l){if(l==null)return 0;if(Gr(l))return Bh(l)?_u(l):l.length;var d=yr(l);return d==ye||d==fn?l.size:Dv(l).length}function L_(l,d,g){var E=rn(l)?lv:Du;return g&&aa(l,d,g)&&(d=r),E(l,Ot(d,3))}var F_=mn(function(l,d){if(l==null)return[];var g=d.length;return g>1&&aa(l,d[0],d[1])?d=[]:g>2&&aa(d[0],d[1],d[2])&&(d=[d[0]]),b0(l,ga(d,1),[])}),Bu=mv||function(){return Vt.Date.now()};function z_(l,d){if(typeof d!="function")throw new Li(u);return l=tn(l),function(){if(--l<1)return d.apply(this,arguments)}}function ug(l,d,g){return d=g?r:d,d=l&&d==null?l.length:d,zo(l,X,r,r,r,r,d)}function nS(l,d){var g;if(typeof d!="function")throw new Li(u);return l=tn(l),function(){return--l>0&&(g=d.apply(this,arguments)),l<=1&&(d=r),g}}var Mh=mn(function(l,d,g){var E=M;if(g.length){var P=Dl(g,Hc(Mh));E|=$}return zo(l,E,d,g,P)}),cg=mn(function(l,d,g){var E=M|j;if(g.length){var P=Dl(g,Hc(cg));E|=$}return zo(d,E,l,g,P)});function rS(l,d,g){d=g?r:d;var E=zo(l,z,r,r,r,r,r,d);return E.placeholder=rS.placeholder,E}function aS(l,d,g){d=g?r:d;var E=zo(l,B,r,r,r,r,r,d);return E.placeholder=aS.placeholder,E}function iS(l,d,g){var E,P,U,Y,Z,ae,De=0,Oe=!1,Pe=!1,Ke=!0;if(typeof l!="function")throw new Li(u);d=oo(d)||0,br(g)&&(Oe=!!g.leading,Pe="maxWait"in g,U=Pe?Fr(oo(g.maxWait)||0,d):U,Ke="trailing"in g?!!g.trailing:Ke);function dt(Sr){var Yr=E,Ba=P;return E=P=r,De=Sr,Y=l.apply(Ba,Yr),Y}function At(Sr){return De=Sr,Z=al(vn,d),Oe?dt(Sr):Y}function cn(Sr){var Yr=Sr-ae,Ba=Sr-De,ba=d-Yr;return Pe?ea(ba,U-Ba):ba}function Pt(Sr){var Yr=Sr-ae,Ba=Sr-De;return ae===r||Yr>=d||Yr<0||Pe&&Ba>=U}function vn(){var Sr=Bu();if(Pt(Sr))return En(Sr);Z=al(vn,cn(Sr))}function En(Sr){return Z=r,Ke&&E?dt(Sr):(E=P=r,Y)}function za(){Z!==r&&mh(Z),De=0,E=ae=P=Z=r}function dr(){return Z===r?Y:En(Bu())}function Ka(){var Sr=Bu(),Yr=Pt(Sr);if(E=arguments,P=this,ae=Sr,Yr){if(Z===r)return At(ae);if(Pe)return mh(Z),Z=al(vn,d),dt(ae)}return Z===r&&(Z=al(vn,d)),Y}return Ka.cancel=za,Ka.flush=dr,Ka}var B_=mn(function(l,d){return u0(l,1,d)}),U_=mn(function(l,d,g){return u0(l,oo(d)||0,g)});function j_(l){return zo(l,ve)}function Ih(l,d){if(typeof l!="function"||d!=null&&typeof d!="function")throw new Li(u);var g=function(){var E=arguments,P=d?d.apply(this,E):E[0],U=g.cache;if(U.has(P))return U.get(P);var Y=l.apply(this,E);return g.cache=U.set(P,Y)||U,Y};return g.cache=new(Ih.Cache||Qs),g}Ih.Cache=Qs;function Lh(l){if(typeof l!="function")throw new Li(u);return function(){var d=arguments;switch(d.length){case 0:return!l.call(this);case 1:return!l.call(this,d[0]);case 2:return!l.call(this,d[0],d[1]);case 3:return!l.call(this,d[0],d[1],d[2])}return!l.apply(this,d)}}function $_(l){return nS(2,l)}var V_=zv(function(l,d){d=d.length==1&&rn(d[0])?Nn(d[0],Bn(Ot())):Nn(ga(d,1),Bn(Ot()));var g=d.length;return mn(function(E){for(var P=-1,U=ea(E.length,g);++P<U;)E[P]=d[P].call(this,E[P]);return pt(l,this,E)})}),qa=mn(function(l,d){var g=Dl(d,Hc(qa));return zo(l,$,r,d,g)}),Xc=mn(function(l,d){var g=Dl(d,Hc(Xc));return zo(l,K,r,d,g)}),oS=nl(function(l,d){return zo(l,de,r,r,r,d)});function H_(l,d){if(typeof l!="function")throw new Li(u);return d=d===r?d:tn(d),mn(l,d)}function sS(l,d){if(typeof l!="function")throw new Li(u);return d=d==null?0:Fr(tn(d),0),mn(function(g){var E=g[d],P=gs(g,0,d);return E&&gi(P,E),pt(l,this,P)})}function W_(l,d,g){var E=!0,P=!0;if(typeof l!="function")throw new Li(u);return br(g)&&(E="leading"in g?!!g.leading:E,P="trailing"in g?!!g.trailing:P),iS(l,d,{leading:E,maxWait:d,trailing:P})}function G_(l){return ug(l,1)}function Y_(l,d){return qa(gd(d),l)}function lS(){if(!arguments.length)return[];var l=arguments[0];return rn(l)?l:[l]}function uS(l){return Fi(l,_)}function q_(l,d){return d=typeof d=="function"?d:r,Fi(l,_,d)}function K_(l){return Fi(l,x|_)}function cS(l,d){return d=typeof d=="function"?d:r,Fi(l,x|_,d)}function fg(l,d){return d==null||l0(l,d,ia(d))}function Bo(l,d){return l===d||l!==l&&d!==d}var X_=Sd(Rv),Z_=Sd(function(l,d){return l>=d}),Uu=Av(function(){return arguments}())?Av:function(l){return _r(l)&&Kn.call(l,"callee")&&!Cc.call(l,"callee")},rn=ge.isArray,Q_=Fe?Bn(Fe):dd;function Gr(l){return l!=null&&Ud(l.length)&&!Cs(l)}function Cr(l){return _r(l)&&Gr(l)}function zd(l){return l===!0||l===!1||_r(l)&&Wa(l)==Qe}var ws=Xb||Lg,J_=xe?Bn(xe):Mc;function eE(l){return _r(l)&&l.nodeType===1&&!ju(l)}function fS(l){if(l==null)return!0;if(Gr(l)&&(rn(l)||typeof l=="string"||typeof l.splice=="function"||ws(l)||$l(l)||Uu(l)))return!l.length;var d=yr(l);if(d==ye||d==fn)return!l.size;if(Wc(l))return!Dv(l).length;for(var g in l)if(Kn.call(l,g))return!1;return!0}function tE(l,d){return pd(l,d)}function Fh(l,d,g){g=typeof g=="function"?g:r;var E=g?g(l,d):r;return E===r?pd(l,d,r,g):!!E}function Ul(l){if(!_r(l))return!1;var d=Wa(l);return d==zt||d==Et||typeof l.message=="string"&&typeof l.name=="string"&&!ju(l)}function dg(l){return typeof l=="number"&&Zb(l)}function Cs(l){if(!br(l))return!1;var d=Wa(l);return d==We||d==Yt||d==Gt||d==ir}function Bd(l){return typeof l=="number"&&l==tn(l)}function Ud(l){return typeof l=="number"&&l>-1&&l%1==0&&l<=Se}function br(l){var d=typeof l;return l!=null&&(d=="object"||d=="function")}function _r(l){return l!=null&&typeof l=="object"}var pg=$e?Bn($e):MC;function dS(l,d){return l===d||kv(l,d,Ch(d))}function pS(l,d,g){return g=typeof g=="function"?g:r,kv(l,d,Ch(d),g)}function jl(l){return Zc(l)&&l!=+l}function nE(l){if(HC(l))throw new en(c);return f0(l)}function rE(l){return l===null}function aE(l){return l==null}function Zc(l){return typeof l=="number"||_r(l)&&Wa(l)==Mt}function ju(l){if(!_r(l)||Wa(l)!=St)return!1;var d=td(l);if(d===null)return!0;var g=Kn.call(d,"constructor")&&d.constructor;return typeof g=="function"&&g instanceof g&&Qp.call(g)==Va}var zh=it?Bn(it):IC;function iE(l){return Bd(l)&&l>=-Se&&l<=Se}var hg=gt?Bn(gt):d0;function Bh(l){return typeof l=="string"||!rn(l)&&_r(l)&&Wa(l)==An}function bn(l){return typeof l=="symbol"||_r(l)&&Wa(l)==hn}var $l=Nt?Bn(Nt):p0;function Uh(l){return l===r}function jd(l){return _r(l)&&yr(l)==Ze}function hS(l){return _r(l)&&Wa(l)==Jt}var mS=Sd(Pv),mg=Sd(function(l,d){return l<=d});function Qc(l){if(!l)return[];if(Gr(l))return Bh(l)?Lo(l):na(l);if(nd&&l[nd])return $b(l[nd]());var d=yr(l),g=d==ye?dv:d==fn?Jf:tf;return g(l)}function il(l){if(!l)return l===0?l:0;if(l=oo(l),l===oe||l===-oe){var d=l<0?-1:1;return d*Te}return l===l?l:0}function tn(l){var d=il(l),g=d%1;return d===d?g?d-g:d:0}function $u(l){return l?Il(tn(l),0,we):0}function oo(l){if(typeof l=="number")return l;if(bn(l))return pe;if(br(l)){var d=typeof l.valueOf=="function"?l.valueOf():l;l=br(d)?d+"":d}if(typeof l!="string")return l===0?l:+l;l=cs(l);var g=an.test(l);return g||ci.test(l)?at(l.slice(2),g?2:8):Mn.test(l)?pe:+l}function vg(l){return Fa(l,wi(l))}function oE(l){return l?Il(tn(l),-Se,Se):l===0?l:0}function Gn(l){return l==null?"":Ga(l)}var xi=el(function(l,d){if(Wc(d)||Gr(d)){Fa(d,ia(d),l);return}for(var g in d)Kn.call(d,g)&&ud(l,g,d[g])}),Jc=el(function(l,d){Fa(d,wi(d),l)}),Vu=el(function(l,d,g,E){Fa(d,wi(d),l,E)}),Vl=el(function(l,d,g,E){Fa(d,ia(d),l,E)}),vS=nl(Ev);function Hu(l,d){var g=Ml(l);return d==null?g:_v(g,d)}var Wu=mn(function(l,d){l=qn(l);var g=-1,E=d.length,P=E>2?d[2]:r;for(P&&aa(d[0],d[1],P)&&(E=1);++g<E;)for(var U=d[g],Y=wi(U),Z=-1,ae=Y.length;++Z<ae;){var De=Y[Z],Oe=l[De];(Oe===r||Bo(Oe,wc[De])&&!Kn.call(l,De))&&(l[De]=U[De])}return l}),jh=mn(function(l){return l.push(r,Lu),pt(xS,r,l)});function gg(l,d){return cv(l,Ot(d,3),fr)}function $h(l,d){return cv(l,Ot(d,3),nt)}function $d(l,d){return l==null?l:Nv(l,Ot(d,3),wi)}function gS(l,d){return l==null?l:ku(l,Ot(d,3),wi)}function Vh(l,d){return l&&fr(l,Ot(d,3))}function yS(l,d){return l&&nt(l,Ot(d,3))}function bS(l){return l==null?[]:zi(l,ia(l))}function sE(l){return l==null?[]:zi(l,wi(l))}function yg(l,d,g){var E=l==null?r:ya(l,d);return E===r?g:E}function Hh(l,d){return l!=null&&ao(l,d,AC)}function ef(l,d){return l!=null&&ao(l,d,kC)}var SS=$v(function(l,d,g){d!=null&&typeof d.toString!="function"&&(d=ed.call(d)),l[d]=g},Og(Ci)),lE=$v(function(l,d,g){d!=null&&typeof d.toString!="function"&&(d=ed.call(d)),Kn.call(l,d)?l[d].push(g):l[d]=[g]},Ot),Wh=mn(fd);function ia(l){return Gr(l)?ds(l):Dv(l)}function wi(l){return Gr(l)?ds(l,!0):LC(l)}function uE(l,d){var g={};return d=Ot(d,3),fr(l,function(E,P,U){ps(g,d(E,P,U),E)}),g}function cE(l,d){var g={};return d=Ot(d,3),fr(l,function(E,P,U){ps(g,P,d(E,P,U))}),g}var fE=el(function(l,d,g){fh(l,d,g)}),xS=el(function(l,d,g,E){fh(l,d,g,E)}),dE=nl(function(l,d){var g={};if(l==null)return g;var E=!1;d=Nn(d,function(U){return U=vs(U,l),E||(E=U.length>1),U}),Fa(l,Fu(l),g),E&&(g=Fi(g,x|C|_,un));for(var P=d.length;P--;)hd(g,d[P]);return g});function pE(l,d){return wS(l,Lh(Ot(d)))}var hE=nl(function(l,d){return l==null?{}:Iv(l,d)});function wS(l,d){if(l==null)return{};var g=Nn(Fu(l),function(E){return[E]});return d=Ot(d),Rt(l,g,function(E,P){return d(E,P[0])})}function bg(l,d,g){d=vs(d,l);var E=-1,P=d.length;for(P||(P=1,l=r);++E<P;){var U=l==null?r:l[Si(d[E])];U===r&&(E=P,U=g),l=Cs(U)?U.call(l):U}return l}function Sg(l,d,g){return l==null?l:Me(l,d,g)}function xg(l,d,g,E){return E=typeof E=="function"?E:r,l==null?l:Me(l,d,g,E)}var Gh=Fl(ia),CS=Fl(wi);function Vd(l,d,g){var E=rn(l),P=E||ws(l)||$l(l);if(d=Ot(d,4),g==null){var U=l&&l.constructor;P?g=E?new U:[]:br(l)?g=Cs(U)?Ml(td(l)):{}:g={}}return(P?wt:fr)(l,function(Y,Z,ae){return d(g,Y,Z,ae)}),g}function Hd(l,d){return l==null?!0:hd(l,d)}function mE(l,d,g){return l==null?l:dh(l,d,gd(g))}function _S(l,d,g,E){return E=typeof E=="function"?E:r,l==null?l:dh(l,d,gd(g),E)}function tf(l){return l==null?[]:Io(l,ia(l))}function vE(l){return l==null?[]:Io(l,wi(l))}function ES(l,d,g){return g===r&&(g=d,d=r),g!==r&&(g=oo(g),g=g===g?g:0),d!==r&&(d=oo(d),d=d===d?d:0),Il(oo(l),d,g)}function gE(l,d,g){return d=il(d),g===r?(g=d,d=0):g=il(g),l=oo(l),ta(l,d,g)}function yE(l,d,g){if(g&&typeof g!="boolean"&&aa(l,d,g)&&(d=g=r),g===r&&(typeof d=="boolean"?(g=d,d=r):typeof l=="boolean"&&(g=l,l=r)),l===r&&d===r?(l=0,d=1):(l=il(l),d===r?(d=l,l=0):d=il(d)),l>d){var E=l;l=d,d=E}if(g||l%1||d%1){var P=t0();return ea(l+P*(d-l+fe("1e-"+((P+"").length-1))),d)}return ro(l,d)}var TS=$c(function(l,d,g){return d=d.toLowerCase(),l+(g?Wd(d):d)});function Wd(l){return Ng(Gn(l).toLowerCase())}function Gd(l){return l=Gn(l),l&&l.replace(da,pC).replace($r,"")}function Yh(l,d,g){l=Gn(l),d=Ga(d);var E=l.length;g=g===r?E:Il(tn(g),0,E);var P=g;return g-=d.length,g>=0&&l.slice(g,P)==d}function Yd(l){return l=Gn(l),l&&vr.test(l)?l.replace(Cn,hC):l}function qd(l){return l=Gn(l),l&&Di.test(l)?l.replace(Aa,"\\$&"):l}var bE=$c(function(l,d,g){return l+(g?"-":"")+d.toLowerCase()}),wg=$c(function(l,d,g){return l+(g?" ":"")+d.toLowerCase()}),Cg=w0("toLowerCase");function SE(l,d,g){l=Gn(l),d=tn(d);var E=d?_u(l):0;if(!d||E>=d)return l;var P=(d-E)/2;return Iu(rd(P),g)+l+Iu(Ys(P),g)}function xE(l,d,g){l=Gn(l),d=tn(d);var E=d?_u(l):0;return d&&E<d?l+Iu(d-E,g):l}function tD(l,d,g){l=Gn(l),d=tn(d);var E=d?_u(l):0;return d&&E<d?Iu(d-E,g)+l:l}function wE(l,d,g){return g||d==null?d=0:d&&(d=+d),e0(Gn(l).replace(ka,""),d||0)}function CE(l,d,g){return(g?aa(l,d,g):d===r)?d=1:d=tn(d),Lv(Gn(l),d)}function _E(){var l=arguments,d=Gn(l[0]);return l.length<3?d:d.replace(l[1],l[2])}var EE=$c(function(l,d,g){return l+(g?"_":"")+d.toLowerCase()});function TE(l,d,g){return g&&typeof g!="number"&&aa(l,d,g)&&(d=g=r),g=g===r?we:g>>>0,g?(l=Gn(l),l&&(typeof d=="string"||d!=null&&!zh(d))&&(d=Ga(d),!d&&bc(l))?gs(Lo(l),0,g):l.split(d,g)):[]}var NE=$c(function(l,d,g){return l+(g?" ":"")+Ng(d)});function _g(l,d,g){return l=Gn(l),g=g==null?0:Il(tn(g),0,l.length),d=Ga(d),l.slice(g,g+d.length)==d}function RE(l,d,g){var E=L.templateSettings;g&&aa(l,d,g)&&(d=r),l=Gn(l),d=Vu({},d,E,bi);var P=Vu({},d.imports,E.imports,bi),U=ia(P),Y=Io(P,U),Z,ae,De=0,Oe=d.interpolate||Ji,Pe="__p += '",Ke=Ws((d.escape||Ji).source+"|"+Oe.source+"|"+(Oe===ts?$t:Ji).source+"|"+(d.evaluate||Ji).source+"|$","g"),dt="//# sourceURL="+(Kn.call(d,"sourceURL")?(d.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++Hs+"]")+`
|
|
`;l.replace(Ke,function(Pt,vn,En,za,dr,Ka){return En||(En=za),Pe+=l.slice(De,Ka).replace(bu,fv),vn&&(Z=!0,Pe+=`' +
|
|
__e(`+vn+`) +
|
|
'`),dr&&(ae=!0,Pe+=`';
|
|
`+dr+`;
|
|
__p += '`),En&&(Pe+=`' +
|
|
((__t = (`+En+`)) == null ? '' : __t) +
|
|
'`),De=Ka+Pt.length,Pt}),Pe+=`';
|
|
`;var At=Kn.call(d,"variable")&&d.variable;if(!At)Pe=`with (obj) {
|
|
`+Pe+`
|
|
}
|
|
`;else if(gn.test(At))throw new en(h);Pe=(ae?Pe.replace(Nr,""):Pe).replace(Tn,"$1").replace(ca,"$1;"),Pe="function("+(At||"obj")+`) {
|
|
`+(At?"":`obj || (obj = {});
|
|
`)+"var __t, __p = ''"+(Z?", __e = _.escape":"")+(ae?`, __j = Array.prototype.join;
|
|
function print() { __p += __j.call(arguments, '') }
|
|
`:`;
|
|
`)+Pe+`return __p
|
|
}`;var cn=RS(function(){return Hn(U,dt+"return "+Pe).apply(r,Y)});if(cn.source=Pe,Ul(cn))throw cn;return cn}function OE(l){return Gn(l).toLowerCase()}function Eg(l){return Gn(l).toUpperCase()}function AE(l,d,g){if(l=Gn(l),l&&(g||d===r))return cs(l);if(!l||!(d=Ga(d)))return l;var E=Lo(l),P=Lo(d),U=Zf(E,P),Y=jb(E,P)+1;return gs(E,U,Y).join("")}function Tg(l,d,g){if(l=Gn(l),l&&(g||d===r))return l.slice(0,Wb(l)+1);if(!l||!(d=Ga(d)))return l;var E=Lo(l),P=jb(E,Lo(d))+1;return gs(E,0,P).join("")}function NS(l,d,g){if(l=Gn(l),l&&(g||d===r))return l.replace(ka,"");if(!l||!(d=Ga(d)))return l;var E=Lo(l),P=Zf(E,Lo(d));return gs(E,P).join("")}function kE(l,d){var g=se,E=be;if(br(d)){var P="separator"in d?d.separator:P;g="length"in d?tn(d.length):g,E="omission"in d?Ga(d.omission):E}l=Gn(l);var U=l.length;if(bc(l)){var Y=Lo(l);U=Y.length}if(g>=U)return l;var Z=g-_u(E);if(Z<1)return E;var ae=Y?gs(Y,0,Z).join(""):l.slice(0,Z);if(P===r)return ae+E;if(Y&&(Z+=ae.length-Z),zh(P)){if(l.slice(Z).search(P)){var De,Oe=ae;for(P.global||(P=Ws(P.source,Gn(zn.exec(P))+"g")),P.lastIndex=0;De=P.exec(Oe);)var Pe=De.index;ae=ae.slice(0,Pe===r?Z:Pe)}}else if(l.indexOf(Ga(P),Z)!=Z){var Ke=ae.lastIndexOf(P);Ke>-1&&(ae=ae.slice(0,Ke))}return ae+E}function DE(l){return l=Gn(l),l&&fa.test(l)?l.replace(Fn,gC):l}var PE=$c(function(l,d,g){return l+(g?" ":"")+d.toUpperCase()}),Ng=w0("toUpperCase");function Rg(l,d,g){return l=Gn(l),d=g?r:d,d===r?vC(l)?SC(l):uv(l):l.match(d)||[]}var RS=mn(function(l,d){try{return pt(l,r,d)}catch(g){return Ul(g)?g:new en(g)}}),ME=nl(function(l,d){return wt(d,function(g){g=Si(g),ps(l,g,Mh(l[g],l))}),l});function IE(l){var d=l==null?0:l.length,g=Ot();return l=d?Nn(l,function(E){if(typeof E[1]!="function")throw new Li(u);return[g(E[0]),E[1]]}):[],mn(function(E){for(var P=-1;++P<d;){var U=l[P];if(pt(U[0],this,E))return pt(U[1],this,E)}})}function LE(l){return RC(Fi(l,x))}function Og(l){return function(){return l}}function FE(l,d){return l==null||l!==l?d:l}var zE=C0(),Ag=C0(!0);function Ci(l){return l}function kg(l){return h0(typeof l=="function"?l:Fi(l,x))}function BE(l){return v0(Fi(l,x))}function UE(l,d){return Mv(l,Fi(d,x))}var jE=mn(function(l,d){return function(g){return fd(g,l,d)}}),$E=mn(function(l,d){return function(g){return fd(l,g,d)}});function Dg(l,d,g){var E=ia(d),P=zi(d,E);g==null&&!(br(d)&&(P.length||!E.length))&&(g=d,d=l,l=this,P=zi(d,ia(d)));var U=!(br(g)&&"chain"in g)||!!g.chain,Y=Cs(l);return wt(P,function(Z){var ae=d[Z];l[Z]=ae,Y&&(l.prototype[Z]=function(){var De=this.__chain__;if(U||De){var Oe=l(this.__wrapped__),Pe=Oe.__actions__=na(this.__actions__);return Pe.push({func:ae,args:arguments,thisArg:l}),Oe.__chain__=De,Oe}return ae.apply(l,gi([this.value()],arguments))})}),l}function VE(){return Vt._===this&&(Vt._=qb),this}function Pg(){}function OS(l){return l=tn(l),mn(function(d){return y0(d,l)})}var Mg=Vv(Nn),HE=Vv(vi),WE=Vv(lv);function Kd(l){return Eh(l)?Kf(Si(l)):yn(l)}function Xd(l){return function(d){return l==null?r:ya(l,d)}}var GE=Hv(),YE=Hv(!0);function Ig(){return[]}function Lg(){return!1}function qE(){return{}}function KE(){return""}function XE(){return!0}function AS(l,d){if(l=tn(l),l<1||l>Se)return[];var g=we,E=ea(l,we);d=Ot(d),l-=we;for(var P=Kp(E,d);++g<l;)d(g);return P}function ZE(l){return rn(l)?Nn(l,Si):bn(l)?[l]:na(Zv(Gn(l)))}function QE(l){var d=++Gb;return Gn(l)+d}var JE=xh(function(l,d){return l+d},0),eT=tl("ceil"),tT=xh(function(l,d){return l/d},1),nT=tl("floor");function rT(l){return l&&l.length?hs(l,Ci,Rv):r}function aT(l,d){return l&&l.length?hs(l,Ot(d,2),Rv):r}function iT(l){return Ub(l,Ci)}function oT(l,d){return Ub(l,Ot(d,2))}function sT(l){return l&&l.length?hs(l,Ci,Pv):r}function lT(l,d){return l&&l.length?hs(l,Ot(d,2),Pv):r}var uT=xh(function(l,d){return l*d},1),cT=tl("round"),fT=xh(function(l,d){return l-d},0);function dT(l){return l&&l.length?yc(l,Ci):0}function nf(l,d){return l&&l.length?yc(l,Ot(d,2)):0}return L.after=z_,L.ary=ug,L.assign=xi,L.assignIn=Jc,L.assignInWith=Vu,L.assignWith=Vl,L.at=vS,L.before=nS,L.bind=Mh,L.bindAll=ME,L.bindKey=cg,L.castArray=lS,L.chain=Y0,L.chunk=Nh,L.compact=M0,L.concat=YC,L.cond=IE,L.conforms=LE,L.constant=Og,L.countBy=X0,L.create=Hu,L.curry=rS,L.curryRight=aS,L.debounce=iS,L.defaults=Wu,L.defaultsDeep=jh,L.defer=B_,L.delay=U_,L.difference=Nd,L.differenceBy=Rd,L.differenceWith=Yc,L.drop=Qv,L.dropRight=I0,L.dropRightWhile=qC,L.dropWhile=KC,L.fill=XC,L.filter=__,L.flatMap=T_,L.flatMapDeep=N_,L.flatMapDepth=J0,L.flatten=F0,L.flattenDeep=Oh,L.flattenDepth=Jv,L.flip=j_,L.flow=zE,L.flowRight=Ag,L.fromPairs=z0,L.functions=bS,L.functionsIn=sE,L.groupBy=Kc,L.initial=QC,L.intersection=JC,L.intersectionBy=Od,L.intersectionWith=eg,L.invert=SS,L.invertBy=lE,L.invokeMap=O_,L.iteratee=kg,L.keyBy=A_,L.keys=ia,L.keysIn=wi,L.map=Ph,L.mapKeys=uE,L.mapValues=cE,L.matches=BE,L.matchesProperty=UE,L.memoize=Ih,L.merge=fE,L.mergeWith=xS,L.method=jE,L.methodOf=$E,L.mixin=Dg,L.negate=Lh,L.nthArg=OS,L.omit=dE,L.omitBy=pE,L.once=$_,L.orderBy=k_,L.over=Mg,L.overArgs=V_,L.overEvery=HE,L.overSome=WE,L.partial=qa,L.partialRight=Xc,L.partition=D_,L.pick=hE,L.pickBy=wS,L.property=Kd,L.propertyOf=Xd,L.pull=j0,L.pullAll=kd,L.pullAllBy=Ah,L.pullAllWith=$0,L.pullAt=ji,L.range=GE,L.rangeRight=YE,L.rearg=oS,L.reject=M_,L.remove=qc,L.rest=H_,L.reverse=Dd,L.sampleSize=Ld,L.set=Sg,L.setWith=xg,L.shuffle=Fd,L.slice=Pd,L.sortBy=F_,L.sortedUniq=V0,L.sortedUniqBy=r_,L.split=TE,L.spread=sS,L.tail=a_,L.take=i_,L.takeRight=rg,L.takeRightWhile=o_,L.takeWhile=s_,L.tap=b_,L.throttle=W_,L.thru=Dh,L.toArray=Qc,L.toPairs=Gh,L.toPairsIn=CS,L.toPath=ZE,L.toPlainObject=vg,L.transform=Vd,L.unary=G_,L.union=l_,L.unionBy=u_,L.unionWith=c_,L.uniq=H0,L.uniqBy=f_,L.uniqWith=d_,L.unset=Hd,L.unzip=ag,L.unzipWith=W0,L.update=mE,L.updateWith=_S,L.values=tf,L.valuesIn=vE,L.without=p_,L.words=Rg,L.wrap=Y_,L.xor=h_,L.xorBy=ig,L.xorWith=m_,L.zip=v_,L.zipObject=g_,L.zipObjectDeep=G0,L.zipWith=y_,L.entries=Gh,L.entriesIn=CS,L.extend=Jc,L.extendWith=Vu,Dg(L,L),L.add=JE,L.attempt=RS,L.camelCase=TS,L.capitalize=Wd,L.ceil=eT,L.clamp=ES,L.clone=uS,L.cloneDeep=K_,L.cloneDeepWith=cS,L.cloneWith=q_,L.conformsTo=fg,L.deburr=Gd,L.defaultTo=FE,L.divide=tT,L.endsWith=Yh,L.eq=Bo,L.escape=Yd,L.escapeRegExp=qd,L.every=Z0,L.find=Q0,L.findIndex=L0,L.findKey=gg,L.findLast=E_,L.findLastIndex=Rh,L.findLastKey=$h,L.floor=nT,L.forEach=sg,L.forEachRight=lg,L.forIn=$d,L.forInRight=gS,L.forOwn=Vh,L.forOwnRight=yS,L.get=yg,L.gt=X_,L.gte=Z_,L.has=Hh,L.hasIn=ef,L.head=B0,L.identity=Ci,L.includes=R_,L.indexOf=ZC,L.inRange=gE,L.invoke=Wh,L.isArguments=Uu,L.isArray=rn,L.isArrayBuffer=Q_,L.isArrayLike=Gr,L.isArrayLikeObject=Cr,L.isBoolean=zd,L.isBuffer=ws,L.isDate=J_,L.isElement=eE,L.isEmpty=fS,L.isEqual=tE,L.isEqualWith=Fh,L.isError=Ul,L.isFinite=dg,L.isFunction=Cs,L.isInteger=Bd,L.isLength=Ud,L.isMap=pg,L.isMatch=dS,L.isMatchWith=pS,L.isNaN=jl,L.isNative=nE,L.isNil=aE,L.isNull=rE,L.isNumber=Zc,L.isObject=br,L.isObjectLike=_r,L.isPlainObject=ju,L.isRegExp=zh,L.isSafeInteger=iE,L.isSet=hg,L.isString=Bh,L.isSymbol=bn,L.isTypedArray=$l,L.isUndefined=Uh,L.isWeakMap=jd,L.isWeakSet=hS,L.join=Ad,L.kebabCase=bE,L.last=io,L.lastIndexOf=e_,L.lowerCase=wg,L.lowerFirst=Cg,L.lt=mS,L.lte=mg,L.max=rT,L.maxBy=aT,L.mean=iT,L.meanBy=oT,L.min=sT,L.minBy=lT,L.stubArray=Ig,L.stubFalse=Lg,L.stubObject=qE,L.stubString=KE,L.stubTrue=XE,L.multiply=uT,L.nth=U0,L.noConflict=VE,L.noop=Pg,L.now=Bu,L.pad=SE,L.padEnd=xE,L.padStart=tD,L.parseInt=wE,L.random=yE,L.reduce=eS,L.reduceRight=P_,L.repeat=CE,L.replace=_E,L.result=bg,L.round=cT,L.runInContext=re,L.sample=tS,L.size=I_,L.snakeCase=EE,L.some=L_,L.sortedIndex=t_,L.sortedIndexBy=tg,L.sortedIndexOf=ng,L.sortedLastIndex=Md,L.sortedLastIndexBy=n_,L.sortedLastIndexOf=kh,L.startCase=NE,L.startsWith=_g,L.subtract=fT,L.sum=dT,L.sumBy=nf,L.template=RE,L.times=AS,L.toFinite=il,L.toInteger=tn,L.toLength=$u,L.toLower=OE,L.toNumber=oo,L.toSafeInteger=oE,L.toString=Gn,L.toUpper=Eg,L.trim=AE,L.trimEnd=Tg,L.trimStart=NS,L.truncate=kE,L.unescape=DE,L.uniqueId=QE,L.upperCase=PE,L.upperFirst=Ng,L.each=sg,L.eachRight=lg,L.first=B0,Dg(L,function(){var l={};return fr(L,function(d,g){Kn.call(L.prototype,g)||(l[g]=d)}),l}(),{chain:!1}),L.VERSION=i,wt(["bind","bindKey","curry","curryRight","partial","partialRight"],function(l){L[l].placeholder=L}),wt(["drop","take"],function(l,d){_n.prototype[l]=function(g){g=g===r?1:Fr(tn(g),0);var E=this.__filtered__&&!d?new _n(this):this.clone();return E.__filtered__?E.__takeCount__=ea(g,E.__takeCount__):E.__views__.push({size:ea(g,we),type:l+(E.__dir__<0?"Right":"")}),E},_n.prototype[l+"Right"]=function(g){return this.reverse()[l](g).reverse()}}),wt(["filter","map","takeWhile"],function(l,d){var g=d+1,E=g==ce||g==Ce;_n.prototype[l]=function(P){var U=this.clone();return U.__iteratees__.push({iteratee:Ot(P,3),type:g}),U.__filtered__=U.__filtered__||E,U}}),wt(["head","last"],function(l,d){var g="take"+(d?"Right":"");_n.prototype[l]=function(){return this[g](1).value()[0]}}),wt(["initial","tail"],function(l,d){var g="drop"+(d?"":"Right");_n.prototype[l]=function(){return this.__filtered__?new _n(this):this[g](1)}}),_n.prototype.compact=function(){return this.filter(Ci)},_n.prototype.find=function(l){return this.filter(l).head()},_n.prototype.findLast=function(l){return this.reverse().find(l)},_n.prototype.invokeMap=mn(function(l,d){return typeof l=="function"?new _n(this):this.map(function(g){return fd(g,l,d)})}),_n.prototype.reject=function(l){return this.filter(Lh(Ot(l)))},_n.prototype.slice=function(l,d){l=tn(l);var g=this;return g.__filtered__&&(l>0||d<0)?new _n(g):(l<0?g=g.takeRight(-l):l&&(g=g.drop(l)),d!==r&&(d=tn(d),g=d<0?g.dropRight(-d):g.take(d-l)),g)},_n.prototype.takeRightWhile=function(l){return this.reverse().takeWhile(l).reverse()},_n.prototype.toArray=function(){return this.take(we)},fr(_n.prototype,function(l,d){var g=/^(?:filter|find|map|reject)|While$/.test(d),E=/^(?:head|last)$/.test(d),P=L[E?"take"+(d=="last"?"Right":""):d],U=E||/^find/.test(d);!P||(L.prototype[d]=function(){var Y=this.__wrapped__,Z=E?[1]:arguments,ae=Y instanceof _n,De=Z[0],Oe=ae||rn(Y),Pe=function(vn){var En=P.apply(L,gi([vn],Z));return E&&Ke?En[0]:En};Oe&&g&&typeof De=="function"&&De.length!=1&&(ae=Oe=!1);var Ke=this.__chain__,dt=!!this.__actions__.length,At=U&&!Ke,cn=ae&&!dt;if(!U&&Oe){Y=cn?Y:new _n(this);var Pt=l.apply(Y,Z);return Pt.__actions__.push({func:Dh,args:[Pe],thisArg:r}),new no(Pt,Ke)}return At&&cn?l.apply(this,Z):(Pt=this.thru(Pe),At?E?Pt.value()[0]:Pt.value():Pt)})}),wt(["pop","push","shift","sort","splice","unshift"],function(l){var d=Gs[l],g=/^(?:push|sort|unshift)$/.test(l)?"tap":"thru",E=/^(?:pop|shift)$/.test(l);L.prototype[l]=function(){var P=arguments;if(E&&!this.__chain__){var U=this.value();return d.apply(rn(U)?U:[],P)}return this[g](function(Y){return d.apply(rn(Y)?Y:[],P)})}}),fr(_n.prototype,function(l,d){var g=L[d];if(g){var E=g.name+"";Kn.call(Oc,E)||(Oc[E]=[]),Oc[E].push({name:d,func:g})}}),Oc[Vc(r,j).name]=[{name:"wrapper",func:r}],_n.prototype.clone=kt,_n.prototype.reverse=Dc,_n.prototype.value=zr,L.prototype.at=S_,L.prototype.chain=x_,L.prototype.commit=w_,L.prototype.next=q0,L.prototype.plant=Id,L.prototype.reverse=C_,L.prototype.toJSON=L.prototype.valueOf=L.prototype.value=K0,L.prototype.first=L.prototype.head,nd&&(L.prototype[nd]=og),L},xc=xC();N?((N.exports=xc)._=xc,S._=xc):Vt._=xc}).call(lc)})(ua,ua.exports);var po="/Users/spencer/Documents/Code/stable-diffusion/frontend/src/features/gallery/CurrentImage.tsx";const wpe="calc(100vh - 238px)",Cpe=Qr(e=>e.system,e=>({isProcessing:e.isProcessing,isConnected:e.isConnected,isGFPGANAvailable:e.isGFPGANAvailable,isESRGANAvailable:e.isESRGANAvailable}),{memoizeOptions:{resultEqualityCheck:ua.exports.isEqual}}),_pe=()=>{const{currentImage:e,intermediateImage:t}=Tr(x=>x.gallery),{isProcessing:r,isConnected:i,isGFPGANAvailable:s,isESRGANAvailable:c}=Tr(Cpe),u=ja(),h=Pm("rgba(255, 255, 255, 0.85)","rgba(0, 0, 0, 0.8)"),[m,v]=D.exports.useState(!1),b=t||e;return k(Ln,{direction:"column",rounded:"md",borderWidth:1,p:2,gap:2,children:[b&&k(Ln,{gap:2,children:[k(Xi,{label:"Use as initial image",colorScheme:"gray",flexGrow:1,variant:"outline",onClick:()=>u(qk(b.url))},void 0,!1,{fileName:po,lineNumber:56,columnNumber:21},void 0),k(Xi,{label:"Use all",colorScheme:"gray",flexGrow:1,variant:"outline",onClick:()=>u(Kk(b.metadata))},void 0,!1,{fileName:po,lineNumber:66,columnNumber:21},void 0),k(Xi,{label:"Use seed",colorScheme:"gray",flexGrow:1,variant:"outline",isDisabled:!b.metadata.seed,onClick:()=>u(Yk(b.metadata.seed))},void 0,!1,{fileName:po,lineNumber:76,columnNumber:21},void 0),k(Xi,{label:"Upscale",colorScheme:"gray",flexGrow:1,variant:"outline",isDisabled:!c||Boolean(t)||!(i&&!r),onClick:()=>u(Ade(b))},void 0,!1,{fileName:po,lineNumber:87,columnNumber:21},void 0),k(Xi,{label:"Fix faces",colorScheme:"gray",flexGrow:1,variant:"outline",isDisabled:!s||Boolean(t)||!(i&&!r),onClick:()=>u(kde(b))},void 0,!1,{fileName:po,lineNumber:99,columnNumber:21},void 0),k(Xi,{label:"Details",colorScheme:"gray",variant:m?"solid":"outline",borderWidth:1,flexGrow:1,onClick:()=>v(!m)},void 0,!1,{fileName:po,lineNumber:111,columnNumber:21},void 0),k(zU,{image:b,children:k(Xi,{label:"Delete",colorScheme:"red",flexGrow:1,variant:"outline",isDisabled:Boolean(t)},void 0,!1,{fileName:po,lineNumber:122,columnNumber:25},void 0)},void 0,!1,{fileName:po,lineNumber:121,columnNumber:21},void 0)]},void 0,!0,{fileName:po,lineNumber:55,columnNumber:17},void 0),k(rk,{height:wpe,position:"relative",children:[b&&k(lb,{src:b.url,fit:"contain",maxWidth:"100%",maxHeight:"100%"},void 0,!1,{fileName:po,lineNumber:134,columnNumber:21},void 0),b&&m&&k(Ln,{width:"100%",height:"100%",position:"absolute",top:0,left:0,p:3,boxSizing:"border-box",backgroundColor:h,overflow:"scroll",children:k(Spe,{image:b},void 0,!1,{fileName:po,lineNumber:153,columnNumber:25},void 0)},void 0,!1,{fileName:po,lineNumber:142,columnNumber:21},void 0)]},void 0,!0,{fileName:po,lineNumber:132,columnNumber:13},void 0)]},void 0,!0,{fileName:po,lineNumber:53,columnNumber:9},void 0)};var Sl="/Users/spencer/Documents/Code/stable-diffusion/frontend/src/features/system/LogViewer.tsx";const Epe=Qr(e=>e.system,e=>e.log,{memoizeOptions:{resultEqualityCheck:(e,t)=>e.length===t.length}}),Tpe=Qr(e=>e.system,e=>({shouldShowLogViewer:e.shouldShowLogViewer}),{memoizeOptions:{resultEqualityCheck:ua.exports.isEqual}}),Npe=()=>{const e=ja(),t=Pm("gray.50","gray.900"),r=Pm("gray.500","gray.500"),[i,s]=D.exports.useState(!0),c=Tr(Epe),{shouldShowLogViewer:u}=Tr(Tpe),h=D.exports.useRef(null);return D.exports.useLayoutEffect(()=>{h.current!==null&&i&&(h.current.scrollTop=h.current.scrollHeight)}),k(bo,{children:[u&&k(Ln,{position:"fixed",left:0,bottom:0,height:"200px",width:"100vw",overflow:"auto",direction:"column",fontFamily:"monospace",fontSize:"sm",pl:12,pr:2,pb:2,borderTopWidth:"4px",borderColor:r,background:t,ref:h,children:c.map((m,v)=>k(Ln,{gap:2,children:[k(Ir,{fontSize:"sm",fontWeight:"semibold",children:[m.timestamp,":"]},void 0,!0,{fileName:Sl,lineNumber:78,columnNumber:29},void 0),k(Ir,{fontSize:"sm",wordBreak:"break-all",children:m.message},void 0,!1,{fileName:Sl,lineNumber:81,columnNumber:29},void 0)]},v,!0,{fileName:Sl,lineNumber:77,columnNumber:25},void 0))},void 0,!1,{fileName:Sl,lineNumber:58,columnNumber:17},void 0),u&&k(FA,{label:i?"Autoscroll on":"Autoscroll off",children:k(Ps,{size:"sm",position:"fixed",left:2,bottom:12,"aria-label":"Toggle autoscroll",variant:"solid",colorScheme:i?"blue":"gray",icon:k(cpe,{},void 0,!1,{fileName:Sl,lineNumber:102,columnNumber:31},void 0),onClick:()=>s(!i)},void 0,!1,{fileName:Sl,lineNumber:94,columnNumber:21},void 0)},void 0,!1,{fileName:Sl,lineNumber:89,columnNumber:17},void 0),k(FA,{label:u?"Hide logs":"Show logs",children:k(Ps,{size:"sm",position:"fixed",left:2,bottom:2,variant:"solid","aria-label":"Toggle Log Viewer",icon:u?k(hpe,{},void 0,!1,{fileName:Sl,lineNumber:115,columnNumber:49},void 0):k(dpe,{},void 0,!1,{fileName:Sl,lineNumber:115,columnNumber:63},void 0),onClick:()=>e(Ffe(!u))},void 0,!1,{fileName:Sl,lineNumber:108,columnNumber:17},void 0)},void 0,!1,{fileName:Sl,lineNumber:107,columnNumber:13},void 0)]},void 0,!0)};var Rpe="/Users/spencer/Documents/Code/stable-diffusion/frontend/src/features/sd/PromptInput.tsx";const Ope=()=>{const{prompt:e}=Tr(r=>r.sd),t=ja();return k(d6,{id:"prompt",name:"prompt",resize:"none",size:"lg",height:"100%",isInvalid:!e.length,onChange:r=>t(Gce(r.target.value)),value:e,placeholder:"I'm dreaming of..."},void 0,!1,{fileName:Rpe,lineNumber:11,columnNumber:5},void 0)};var Ape="/Users/spencer/Documents/Code/stable-diffusion/frontend/src/features/header/ProgressBar.tsx";const kpe=Qr(e=>e.sd,e=>({realSteps:e.realSteps}),{memoizeOptions:{resultEqualityCheck:ua.exports.isEqual}}),Dpe=()=>{const{realSteps:e}=Tr(kpe),{currentStep:t}=Tr(i=>i.system),r=Math.round(t*100/e);return k(l6,{height:"10px",value:r,isIndeterminate:r<0||t===e},void 0,!1,{fileName:Ape,lineNumber:27,columnNumber:9},void 0)},Ppe=Qr(e=>e.sd,e=>({prompt:e.prompt,shouldGenerateVariations:e.shouldGenerateVariations,seedWeights:e.seedWeights,maskPath:e.maskPath,initialImagePath:e.initialImagePath,seed:e.seed}),{memoizeOptions:{resultEqualityCheck:ua.exports.isEqual}}),Mpe=Qr(e=>e.system,e=>({isProcessing:e.isProcessing,isConnected:e.isConnected}),{memoizeOptions:{resultEqualityCheck:ua.exports.isEqual}}),Ipe=()=>{const{prompt:e,shouldGenerateVariations:t,seedWeights:r,maskPath:i,initialImagePath:s,seed:c}=Tr(Ppe),{isProcessing:u,isConnected:h}=Tr(Mpe);return D.exports.useMemo(()=>!(!e||i&&!s||u||!h||t&&(!(lC(r)||r==="")||c===-1)),[e,i,s,u,h,t,r,c])};var CO="/Users/spencer/Documents/Code/stable-diffusion/frontend/src/features/sd/ProcessButtons.tsx";const Lpe=Qr(e=>e.system,e=>({isProcessing:e.isProcessing,isConnected:e.isConnected}),{memoizeOptions:{resultEqualityCheck:ua.exports.isEqual}}),Fpe=()=>{const{isProcessing:e,isConnected:t}=Tr(Lpe),r=ja(),i=Ipe();return k(Ln,{gap:2,direction:"column",alignItems:"space-between",height:"100%",children:[k(Xi,{label:"Generate",type:"submit",colorScheme:"green",flexGrow:1,isDisabled:!i,fontSize:"md",size:"md",onClick:()=>r(Ode())},void 0,!1,{fileName:CO,lineNumber:35,columnNumber:13},void 0),k(Xi,{label:"Cancel",colorScheme:"red",flexGrow:1,fontSize:"md",size:"md",isDisabled:!t||!e,onClick:()=>r(Pde())},void 0,!1,{fileName:CO,lineNumber:45,columnNumber:13},void 0)]},void 0,!0,{fileName:CO,lineNumber:34,columnNumber:9},void 0)};var mo="/Users/spencer/Documents/Code/stable-diffusion/frontend/src/features/gallery/ImageRoll.tsx";const zpe=D.exports.memo(e=>{const[t,r]=D.exports.useState(!1),i=ja(),s=Pm("green.600","green.300"),c=Pm("gray.200","gray.700"),u=Pm("radial-gradient(circle, rgba(255,255,255,0.7) 0%, rgba(255,255,255,0.7) 20%, rgba(0,0,0,0) 100%)","radial-gradient(circle, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.7) 20%, rgba(0,0,0,0) 100%)"),{image:h,isSelected:m}=e,{url:v,uuid:b,metadata:x}=h,C=()=>r(!0),_=()=>r(!1),R=M=>{M.stopPropagation(),i(Kk(x))},A=M=>{M.stopPropagation(),i(Yk(h.metadata.seed))};return k(Ap,{position:"relative",children:[k(lb,{width:120,height:120,objectFit:"cover",rounded:"md",src:v,loading:"lazy",backgroundColor:c},void 0,!1,{fileName:mo,lineNumber:50,columnNumber:17},void 0),k(Ln,{cursor:"pointer",position:"absolute",top:0,left:0,rounded:"md",width:"100%",height:"100%",alignItems:"center",justifyContent:"center",background:m?u:void 0,onClick:()=>i(wfe(h)),onMouseOver:C,onMouseOut:_,children:[m&&k(Rl,{fill:s,width:"50%",height:"50%",as:fpe},void 0,!1,{fileName:mo,lineNumber:75,columnNumber:25},void 0),t&&k(Ln,{direction:"column",gap:1,position:"absolute",top:1,right:1,children:[k(zU,{image:h,children:k(Ps,{colorScheme:"red","aria-label":"Delete image",icon:k(FU,{},void 0,!1,{fileName:mo,lineNumber:94,columnNumber:43},void 0),size:"xs",fontSize:15},void 0,!1,{fileName:mo,lineNumber:91,columnNumber:33},void 0)},void 0,!1,{fileName:mo,lineNumber:90,columnNumber:29},void 0),k(Ps,{"aria-label":"Use all parameters",colorScheme:"blue",icon:k(ppe,{},void 0,!1,{fileName:mo,lineNumber:102,columnNumber:39},void 0),size:"xs",fontSize:15,onClickCapture:R},void 0,!1,{fileName:mo,lineNumber:99,columnNumber:29},void 0),h.metadata.seed&&k(Ps,{"aria-label":"Use seed",colorScheme:"blue",icon:k(gpe,{},void 0,!1,{fileName:mo,lineNumber:111,columnNumber:43},void 0),size:"xs",fontSize:16,onClickCapture:A},void 0,!1,{fileName:mo,lineNumber:108,columnNumber:33},void 0)]},void 0,!0,{fileName:mo,lineNumber:83,columnNumber:25},void 0)]},void 0,!0,{fileName:mo,lineNumber:59,columnNumber:17},void 0)]},b,!0,{fileName:mo,lineNumber:49,columnNumber:13},void 0)},(e,t)=>e.image.uuid===t.image.uuid&&e.isSelected===t.isSelected),Bpe=()=>{const{images:e,currentImageUuid:t}=Tr(r=>r.gallery);return k(Ln,{gap:2,wrap:"wrap",pb:2,children:[...e].reverse().map(r=>{const{uuid:i}=r;return k(zpe,{image:r,isSelected:t===i},i,!1,{fileName:mo,lineNumber:139,columnNumber:21},void 0)})},void 0,!1,{fileName:mo,lineNumber:134,columnNumber:9},void 0)};function Upe(e){return Jo({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm1 17h-2v-2h2v2zm2.07-7.75l-.9.92C13.45 12.9 13 13.5 13 15h-2v-.5c0-1.1.45-2.1 1.17-2.83l1.24-1.26c.37-.36.59-.86.59-1.41 0-1.1-.9-2-2-2s-2 .9-2 2H8c0-2.21 1.79-4 4-4s4 1.79 4 4c0 .88-.36 1.68-.93 2.25z"}}]})(e)}function jpe(e){return Jo({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0V0z"}},{tag:"path",attr:{d:"M19.14 12.94c.04-.3.06-.61.06-.94 0-.32-.02-.64-.07-.94l2.03-1.58a.49.49 0 00.12-.61l-1.92-3.32a.488.488 0 00-.59-.22l-2.39.96c-.5-.38-1.03-.7-1.62-.94l-.36-2.54a.484.484 0 00-.48-.41h-3.84c-.24 0-.43.17-.47.41l-.36 2.54c-.59.24-1.13.57-1.62.94l-2.39-.96c-.22-.08-.47 0-.59.22L2.74 8.87c-.12.21-.08.47.12.61l2.03 1.58c-.05.3-.09.63-.09.94s.02.64.07.94l-2.03 1.58a.49.49 0 00-.12.61l1.92 3.32c.12.22.37.29.59.22l2.39-.96c.5.38 1.03.7 1.62.94l.36 2.54c.05.24.24.41.48.41h3.84c.24 0 .44-.17.47-.41l.36-2.54c.59-.24 1.13-.56 1.62-.94l2.39.96c.22.08.47 0 .59-.22l1.92-3.32c.12-.22.07-.47-.12-.61l-2.01-1.58zM12 15.6c-1.98 0-3.6-1.62-3.6-3.6s1.62-3.6 3.6-3.6 3.6 1.62 3.6 3.6-1.62 3.6-3.6 3.6z"}}]})(e)}var hr="/Users/spencer/Documents/Code/stable-diffusion/frontend/src/features/system/SettingsModal.tsx";const $pe=Qr(e=>e.system,e=>{const{shouldDisplayInProgress:t,shouldConfirmOnDelete:r}=e;return{shouldDisplayInProgress:t,shouldConfirmOnDelete:r}},{memoizeOptions:{resultEqualityCheck:ua.exports.isEqual}}),Vpe=({children:e})=>{const{isOpen:t,onOpen:r,onClose:i}=mA(),{isOpen:s,onOpen:c,onClose:u}=mA(),{shouldDisplayInProgress:h,shouldConfirmOnDelete:m}=Tr($pe),v=ja(),b=()=>{KU.purge().then(()=>{i(),c()})};return k(bo,{children:[D.exports.cloneElement(e,{onClick:r}),k(pb,{isOpen:t,onClose:i,children:[k(dw,{},void 0,!1,{fileName:hr,lineNumber:78,columnNumber:17},void 0),k(hb,{children:[k(Tk,{children:"Settings"},void 0,!1,{fileName:hr,lineNumber:80,columnNumber:21},void 0),k(_k,{},void 0,!1,{fileName:hr,lineNumber:81,columnNumber:21},void 0),k(fw,{children:k(Ln,{gap:5,direction:"column",children:[k(Fp,{children:k(sw,{children:[k(zp,{marginBottom:1,children:"Display in-progress images (slower)"},void 0,!1,{fileName:hr,lineNumber:86,columnNumber:37},void 0),k(Dp,{isChecked:h,onChange:x=>v(Lfe(x.target.checked))},void 0,!1,{fileName:hr,lineNumber:89,columnNumber:37},void 0)]},void 0,!0,{fileName:hr,lineNumber:85,columnNumber:33},void 0)},void 0,!1,{fileName:hr,lineNumber:84,columnNumber:29},void 0),k(Fp,{children:k(sw,{children:[k(zp,{marginBottom:1,children:"Confirm on delete"},void 0,!1,{fileName:hr,lineNumber:103,columnNumber:37},void 0),k(Dp,{isChecked:m,onChange:x=>v(cU(x.target.checked))},void 0,!1,{fileName:hr,lineNumber:106,columnNumber:37},void 0)]},void 0,!0,{fileName:hr,lineNumber:102,columnNumber:33},void 0)},void 0,!1,{fileName:hr,lineNumber:101,columnNumber:29},void 0),k(ik,{size:"md",children:"Reset Web UI"},void 0,!1,{fileName:hr,lineNumber:119,columnNumber:29},void 0),k(Ir,{children:"Resetting the web UI only resets the browser's local cache of your images and remembered settings. It does not delete any images from disk."},void 0,!1,{fileName:hr,lineNumber:120,columnNumber:29},void 0),k(Ir,{children:"If images aren't showing up in the gallery or something else isn't working, please try resetting before submitting an issue on GitHub."},void 0,!1,{fileName:hr,lineNumber:126,columnNumber:29},void 0),k(Xi,{label:"Reset Web UI",colorScheme:"red",onClick:b},void 0,!1,{fileName:hr,lineNumber:131,columnNumber:29},void 0)]},void 0,!0,{fileName:hr,lineNumber:83,columnNumber:25},void 0)},void 0,!1,{fileName:hr,lineNumber:82,columnNumber:21},void 0),k(Ek,{children:k(Xi,{label:"Close",onClick:i},void 0,!1,{fileName:hr,lineNumber:140,columnNumber:25},void 0)},void 0,!1,{fileName:hr,lineNumber:139,columnNumber:21},void 0)]},void 0,!0,{fileName:hr,lineNumber:79,columnNumber:17},void 0)]},void 0,!0,{fileName:hr,lineNumber:77,columnNumber:13},void 0),k(pb,{closeOnOverlayClick:!1,isOpen:s,onClose:u,isCentered:!0,children:[k(dw,{bg:"blackAlpha.300",backdropFilter:"blur(40px)"},void 0,!1,{fileName:hr,lineNumber:154,columnNumber:17},void 0),k(hb,{children:k(fw,{pb:6,pt:6,children:k(Ln,{justifyContent:"center",children:k(Ir,{fontSize:"lg",children:"Web UI has been reset. Refresh the page to reload."},void 0,!1,{fileName:hr,lineNumber:158,columnNumber:29},void 0)},void 0,!1,{fileName:hr,lineNumber:157,columnNumber:25},void 0)},void 0,!1,{fileName:hr,lineNumber:156,columnNumber:21},void 0)},void 0,!1,{fileName:hr,lineNumber:155,columnNumber:17},void 0)]},void 0,!0,{fileName:hr,lineNumber:148,columnNumber:13},void 0)]},void 0,!0)};var Ri="/Users/spencer/Documents/Code/stable-diffusion/frontend/src/features/header/SiteHeader.tsx";const Hpe=Qr(e=>e.system,e=>({isConnected:e.isConnected}),{memoizeOptions:{resultEqualityCheck:ua.exports.isEqual}}),Wpe=()=>{const{colorMode:e,toggleColorMode:t}=Nw(),{isConnected:r}=Tr(Hpe);return k(Ln,{minWidth:"max-content",alignItems:"center",gap:"1",pl:2,pr:1,children:[k(ik,{size:"lg",children:"Stable Diffusion Dream Server"},void 0,!1,{fileName:Ri,lineNumber:36,columnNumber:7},void 0),k(qz,{},void 0,!1,{fileName:Ri,lineNumber:38,columnNumber:7},void 0),k(Ir,{textColor:r?"green.500":"red.500",children:r?"Connected to server":"No connection to server"},void 0,!1,{fileName:Ri,lineNumber:40,columnNumber:7},void 0),k(Vpe,{children:k(Ps,{"aria-label":"Settings",variant:"link",fontSize:24,size:"sm",icon:k(jpe,{},void 0,!1,{fileName:Ri,lineNumber:50,columnNumber:17},void 0)},void 0,!1,{fileName:Ri,lineNumber:45,columnNumber:9},void 0)},void 0,!1,{fileName:Ri,lineNumber:44,columnNumber:7},void 0),k(Ps,{"aria-label":"Link to Github Issues",variant:"link",fontSize:23,size:"sm",icon:k(ow,{isExternal:!0,href:"http://github.com/lstein/stable-diffusion/issues",children:k(Upe,{},void 0,!1,{fileName:Ri,lineNumber:64,columnNumber:13},void 0)},void 0,!1,{fileName:Ri,lineNumber:60,columnNumber:11},void 0)},void 0,!1,{fileName:Ri,lineNumber:54,columnNumber:7},void 0),k(Ps,{"aria-label":"Link to Github Repo",variant:"link",fontSize:20,size:"sm",icon:k(ow,{isExternal:!0,href:"http://github.com/lstein/stable-diffusion",children:k(upe,{},void 0,!1,{fileName:Ri,lineNumber:76,columnNumber:13},void 0)},void 0,!1,{fileName:Ri,lineNumber:75,columnNumber:11},void 0)},void 0,!1,{fileName:Ri,lineNumber:69,columnNumber:7},void 0),k(Ps,{"aria-label":"Toggle Dark Mode",onClick:t,variant:"link",size:"sm",fontSize:e=="light"?18:20,icon:e=="light"?k(mpe,{},void 0,!1,{fileName:Ri,lineNumber:87,columnNumber:38},void 0):k(ype,{},void 0,!1,{fileName:Ri,lineNumber:87,columnNumber:51},void 0)},void 0,!1,{fileName:Ri,lineNumber:81,columnNumber:7},void 0)]},void 0,!0,{fileName:Ri,lineNumber:35,columnNumber:5},void 0)};var sc="/Users/spencer/Documents/Code/stable-diffusion/frontend/src/components/SDNumberInput.tsx";const zf=e=>{const{label:t,isDisabled:r=!1,fontSize:i="md",size:s="sm",width:c,isInvalid:u,...h}=e;return k(Fp,{isDisabled:r,width:c,isInvalid:u,children:k(Ln,{gap:2,justifyContent:"space-between",alignItems:"center",children:[t&&k(zp,{marginBottom:1,children:k(Ir,{fontSize:i,whiteSpace:"nowrap",children:t},void 0,!1,{fileName:sc,lineNumber:34,columnNumber:13},void 0)},void 0,!1,{fileName:sc,lineNumber:33,columnNumber:11},void 0),k(n6,{size:s,...h,keepWithinRange:!1,clampValueOnBlur:!0,children:[k(a6,{fontSize:"md"},void 0,!1,{fileName:sc,lineNumber:45,columnNumber:11},void 0),k(r6,{children:[k(s6,{},void 0,!1,{fileName:sc,lineNumber:47,columnNumber:13},void 0),k(o6,{},void 0,!1,{fileName:sc,lineNumber:48,columnNumber:13},void 0)]},void 0,!0,{fileName:sc,lineNumber:46,columnNumber:11},void 0)]},void 0,!0,{fileName:sc,lineNumber:39,columnNumber:9},void 0)]},void 0,!0,{fileName:sc,lineNumber:31,columnNumber:7},void 0)},void 0,!1,{fileName:sc,lineNumber:30,columnNumber:5},void 0)};var vx="/Users/spencer/Documents/Code/stable-diffusion/frontend/src/components/SDSwitch.tsx";const ww=e=>{const{label:t,isDisabled:r=!1,fontSize:i="md",size:s="md",width:c,...u}=e;return k(Fp,{isDisabled:r,width:c,children:k(Ln,{justifyContent:"space-between",alignItems:"center",children:[t&&k(zp,{fontSize:i,marginBottom:1,flexGrow:2,whiteSpace:"nowrap",children:t},void 0,!1,{fileName:vx,lineNumber:27,columnNumber:11},void 0),k(Dp,{size:s,...u},void 0,!1,{fileName:vx,lineNumber:36,columnNumber:9},void 0)]},void 0,!0,{fileName:vx,lineNumber:25,columnNumber:7},void 0)},void 0,!1,{fileName:vx,lineNumber:24,columnNumber:5},void 0)};var ho="/Users/spencer/Documents/Code/stable-diffusion/frontend/src/features/sd/SeedVariationOptions.tsx";const Gpe=Qr(e=>e.sd,e=>({variantAmount:e.variantAmount,seedWeights:e.seedWeights,shouldGenerateVariations:e.shouldGenerateVariations,shouldRandomizeSeed:e.shouldRandomizeSeed,seed:e.seed,iterations:e.iterations}),{memoizeOptions:{resultEqualityCheck:ua.exports.isEqual}}),Ype=()=>{const{shouldGenerateVariations:e,variantAmount:t,seedWeights:r,shouldRandomizeSeed:i,seed:s,iterations:c}=Tr(Gpe),u=ja();return k(Ln,{gap:2,direction:"column",children:[k(zf,{label:"Images to generate",step:1,min:1,precision:0,onChange:h=>u(Yce(Number(h))),value:c},void 0,!1,{fileName:ho,lineNumber:62,columnNumber:13},void 0),k(ww,{label:"Randomize seed on generation",isChecked:i,onChange:h=>u(pfe(h.target.checked))},void 0,!1,{fileName:ho,lineNumber:70,columnNumber:13},void 0),k(Ln,{gap:2,children:[k(zf,{label:"Seed",step:1,precision:0,flexGrow:1,min:Wk,max:Gk,isDisabled:i,isInvalid:s<0&&e,onChange:h=>u(Yk(Number(h))),value:s},void 0,!1,{fileName:ho,lineNumber:78,columnNumber:17},void 0),k(Gm,{size:"sm",isDisabled:i,onClick:()=>u(ife()),children:k(Ir,{pl:2,pr:2,children:"Shuffle"},void 0,!1,{fileName:ho,lineNumber:95,columnNumber:21},void 0)},void 0,!1,{fileName:ho,lineNumber:90,columnNumber:17},void 0)]},void 0,!0,{fileName:ho,lineNumber:77,columnNumber:13},void 0),k(ww,{label:"Generate variations",isChecked:e,width:"auto",onChange:h=>u(lfe(h.target.checked))},void 0,!1,{fileName:ho,lineNumber:100,columnNumber:13},void 0),k(zf,{label:"Variation amount",value:t,step:.01,min:0,max:1,isDisabled:!e,onChange:h=>u(cfe(Number(h)))},void 0,!1,{fileName:ho,lineNumber:108,columnNumber:13},void 0),k(Fp,{isInvalid:e&&!(lC(r)||r===""),flexGrow:1,isDisabled:!e,children:k(sw,{children:[k(zp,{marginInlineEnd:0,marginBottom:1,children:k(Ir,{whiteSpace:"nowrap",children:"Seed Weights"},void 0,!1,{fileName:ho,lineNumber:127,columnNumber:25},void 0)},void 0,!1,{fileName:ho,lineNumber:126,columnNumber:21},void 0),k(tk,{size:"sm",value:r,onChange:h=>u(ufe(h.target.value))},void 0,!1,{fileName:ho,lineNumber:131,columnNumber:21},void 0)]},void 0,!0,{fileName:ho,lineNumber:125,columnNumber:17},void 0)},void 0,!1,{fileName:ho,lineNumber:117,columnNumber:13},void 0)]},void 0,!0,{fileName:ho,lineNumber:61,columnNumber:9},void 0)};var vp="/Users/spencer/Documents/Code/stable-diffusion/frontend/src/components/SDSelect.tsx";const Cw=e=>{const{label:t,isDisabled:r,validValues:i,size:s="sm",fontSize:c="md",marginBottom:u=1,whiteSpace:h="nowrap",...m}=e;return k(Fp,{isDisabled:r,children:k(Ln,{justifyContent:"space-between",alignItems:"center",children:[k(zp,{marginBottom:u,children:k(Ir,{fontSize:c,whiteSpace:h,children:t},void 0,!1,{fileName:vp,lineNumber:34,columnNumber:21},void 0)},void 0,!1,{fileName:vp,lineNumber:31,columnNumber:17},void 0),k(c6,{fontSize:c,size:s,...m,children:i.map(v=>typeof v=="string"||typeof v=="number"?k("option",{value:v,children:v},v,!1,{fileName:vp,lineNumber:42,columnNumber:29},void 0):k("option",{value:v.value,children:v.key},v.value,!1,{fileName:vp,lineNumber:46,columnNumber:29},void 0))},void 0,!1,{fileName:vp,lineNumber:38,columnNumber:17},void 0)]},void 0,!0,{fileName:vp,lineNumber:30,columnNumber:13},void 0)},void 0,!1,{fileName:vp,lineNumber:29,columnNumber:9},void 0)};var gx="/Users/spencer/Documents/Code/stable-diffusion/frontend/src/features/sd/SamplerOptions.tsx";const qpe=Qr(e=>e.sd,e=>({steps:e.steps,cfgScale:e.cfgScale,sampler:e.sampler}),{memoizeOptions:{resultEqualityCheck:ua.exports.isEqual}}),Kpe=()=>{const{steps:e,cfgScale:t,sampler:r}=Tr(qpe),i=ja();return k(Ln,{gap:2,direction:"column",children:[k(zf,{label:"Steps",min:1,step:1,precision:0,onChange:s=>i(qce(Number(s))),value:e},void 0,!1,{fileName:gx,lineNumber:38,columnNumber:13},void 0),k(zf,{label:"CFG scale",step:.5,onChange:s=>i(Kce(Number(s))),value:t},void 0,!1,{fileName:gx,lineNumber:46,columnNumber:13},void 0),k(Cw,{label:"Sampler",value:r,onChange:s=>i(Qce(s.target.value)),validValues:jce},void 0,!1,{fileName:gx,lineNumber:52,columnNumber:13},void 0)]},void 0,!0,{fileName:gx,lineNumber:37,columnNumber:9},void 0)};var _O="/Users/spencer/Documents/Code/stable-diffusion/frontend/src/features/sd/ESRGANOptions.tsx";const Xpe=Qr(e=>e.sd,e=>({upscalingLevel:e.upscalingLevel,upscalingStrength:e.upscalingStrength}),{memoizeOptions:{resultEqualityCheck:ua.exports.isEqual}}),Zpe=Qr(e=>e.system,e=>({isESRGANAvailable:e.isESRGANAvailable}),{memoizeOptions:{resultEqualityCheck:ua.exports.isEqual}}),Qpe=()=>{const{upscalingLevel:e,upscalingStrength:t}=Tr(Xpe),{isESRGANAvailable:r}=Tr(Zpe),i=ja();return k(Ln,{direction:"column",gap:2,children:[k(Cw,{isDisabled:!r,label:"Scale",value:e,onChange:s=>i(nfe(Number(s.target.value))),validValues:Hce},void 0,!1,{fileName:_O,lineNumber:58,columnNumber:13},void 0),k(zf,{isDisabled:!r,label:"Strength",step:.05,min:0,max:1,onChange:s=>i(rfe(Number(s))),value:t},void 0,!1,{fileName:_O,lineNumber:71,columnNumber:13},void 0)]},void 0,!0,{fileName:_O,lineNumber:57,columnNumber:9},void 0)};var eF="/Users/spencer/Documents/Code/stable-diffusion/frontend/src/features/sd/GFPGANOptions.tsx";const Jpe=Qr(e=>e.sd,e=>({gfpganStrength:e.gfpganStrength}),{memoizeOptions:{resultEqualityCheck:ua.exports.isEqual}}),ehe=Qr(e=>e.system,e=>({isGFPGANAvailable:e.isGFPGANAvailable}),{memoizeOptions:{resultEqualityCheck:ua.exports.isEqual}}),the=()=>{const{gfpganStrength:e}=Tr(Jpe),{isGFPGANAvailable:t}=Tr(ehe),r=ja();return k(Ln,{direction:"column",gap:2,children:k(zf,{isDisabled:!t,label:"Strength",step:.05,min:0,max:1,onChange:i=>r(tfe(Number(i))),value:e},void 0,!1,{fileName:eF,lineNumber:50,columnNumber:13},void 0)},void 0,!1,{fileName:eF,lineNumber:49,columnNumber:9},void 0)};var Ry="/Users/spencer/Documents/Code/stable-diffusion/frontend/src/features/sd/OutputOptions.tsx";const nhe=Qr(e=>e.sd,e=>({height:e.height,width:e.width,seamless:e.seamless}),{memoizeOptions:{resultEqualityCheck:ua.exports.isEqual}}),rhe=()=>{const{height:e,width:t,seamless:r}=Tr(nhe),i=ja();return k(Ln,{gap:2,direction:"column",children:[k(Ln,{gap:2,children:[k(Cw,{label:"Width",value:t,flexGrow:1,onChange:s=>i(Zce(Number(s.target.value))),validValues:$ce},void 0,!1,{fileName:Ry,lineNumber:39,columnNumber:17},void 0),k(Cw,{label:"Height",value:e,flexGrow:1,onChange:s=>i(Xce(Number(s.target.value))),validValues:Vce},void 0,!1,{fileName:Ry,lineNumber:46,columnNumber:17},void 0)]},void 0,!0,{fileName:Ry,lineNumber:38,columnNumber:13},void 0),k(ww,{label:"Seamless tiling",fontSize:"md",isChecked:r,onChange:s=>i(Jce(s.target.checked))},void 0,!1,{fileName:Ry,lineNumber:56,columnNumber:13},void 0)]},void 0,!0,{fileName:Ry,lineNumber:37,columnNumber:9},void 0)};var ahe=new Map([["aac","audio/aac"],["abw","application/x-abiword"],["arc","application/x-freearc"],["avif","image/avif"],["avi","video/x-msvideo"],["azw","application/vnd.amazon.ebook"],["bin","application/octet-stream"],["bmp","image/bmp"],["bz","application/x-bzip"],["bz2","application/x-bzip2"],["cda","application/x-cdf"],["csh","application/x-csh"],["css","text/css"],["csv","text/csv"],["doc","application/msword"],["docx","application/vnd.openxmlformats-officedocument.wordprocessingml.document"],["eot","application/vnd.ms-fontobject"],["epub","application/epub+zip"],["gz","application/gzip"],["gif","image/gif"],["heic","image/heic"],["heif","image/heif"],["htm","text/html"],["html","text/html"],["ico","image/vnd.microsoft.icon"],["ics","text/calendar"],["jar","application/java-archive"],["jpeg","image/jpeg"],["jpg","image/jpeg"],["js","text/javascript"],["json","application/json"],["jsonld","application/ld+json"],["mid","audio/midi"],["midi","audio/midi"],["mjs","text/javascript"],["mp3","audio/mpeg"],["mp4","video/mp4"],["mpeg","video/mpeg"],["mpkg","application/vnd.apple.installer+xml"],["odp","application/vnd.oasis.opendocument.presentation"],["ods","application/vnd.oasis.opendocument.spreadsheet"],["odt","application/vnd.oasis.opendocument.text"],["oga","audio/ogg"],["ogv","video/ogg"],["ogx","application/ogg"],["opus","audio/opus"],["otf","font/otf"],["png","image/png"],["pdf","application/pdf"],["php","application/x-httpd-php"],["ppt","application/vnd.ms-powerpoint"],["pptx","application/vnd.openxmlformats-officedocument.presentationml.presentation"],["rar","application/vnd.rar"],["rtf","application/rtf"],["sh","application/x-sh"],["svg","image/svg+xml"],["swf","application/x-shockwave-flash"],["tar","application/x-tar"],["tif","image/tiff"],["tiff","image/tiff"],["ts","video/mp2t"],["ttf","font/ttf"],["txt","text/plain"],["vsd","application/vnd.visio"],["wav","audio/wav"],["weba","audio/webm"],["webm","video/webm"],["webp","image/webp"],["woff","font/woff"],["woff2","font/woff2"],["xhtml","application/xhtml+xml"],["xls","application/vnd.ms-excel"],["xlsx","application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"],["xml","application/xml"],["xul","application/vnd.mozilla.xul+xml"],["zip","application/zip"],["7z","application/x-7z-compressed"],["mkv","video/x-matroska"],["mov","video/quicktime"],["msg","application/vnd.ms-outlook"]]);function zb(e,t){var r=ihe(e);if(typeof r.path!="string"){var i=e.webkitRelativePath;Object.defineProperty(r,"path",{value:typeof t=="string"?t:typeof i=="string"&&i.length>0?i:e.name,writable:!1,configurable:!1,enumerable:!0})}return r}function ihe(e){var t=e.name,r=t&&t.lastIndexOf(".")!==-1;if(r&&!e.type){var i=t.split(".").pop().toLowerCase(),s=ahe.get(i);s&&Object.defineProperty(e,"type",{value:s,writable:!1,configurable:!1,enumerable:!0})}return e}var ohe=[".DS_Store","Thumbs.db"];function she(e){return nv(this,void 0,void 0,function(){return rv(this,function(t){return _w(e)&&lhe(e.dataTransfer)?[2,dhe(e.dataTransfer,e.type)]:uhe(e)?[2,che(e)]:Array.isArray(e)&&e.every(function(r){return"getFile"in r&&typeof r.getFile=="function"})?[2,fhe(e)]:[2,[]]})})}function lhe(e){return _w(e)}function uhe(e){return _w(e)&&_w(e.target)}function _w(e){return typeof e=="object"&&e!==null}function che(e){return e2(e.target.files).map(function(t){return zb(t)})}function fhe(e){return nv(this,void 0,void 0,function(){var t;return rv(this,function(r){switch(r.label){case 0:return[4,Promise.all(e.map(function(i){return i.getFile()}))];case 1:return t=r.sent(),[2,t.map(function(i){return zb(i)})]}})})}function dhe(e,t){return nv(this,void 0,void 0,function(){var r,i;return rv(this,function(s){switch(s.label){case 0:return e.items?(r=e2(e.items).filter(function(c){return c.kind==="file"}),t!=="drop"?[2,r]:[4,Promise.all(r.map(phe))]):[3,2];case 1:return i=s.sent(),[2,tF(BU(i))];case 2:return[2,tF(e2(e.files).map(function(c){return zb(c)}))]}})})}function tF(e){return e.filter(function(t){return ohe.indexOf(t.name)===-1})}function e2(e){if(e===null)return[];for(var t=[],r=0;r<e.length;r++){var i=e[r];t.push(i)}return t}function phe(e){if(typeof e.webkitGetAsEntry!="function")return nF(e);var t=e.webkitGetAsEntry();return t&&t.isDirectory?UU(t):nF(e)}function BU(e){return e.reduce(function(t,r){return HO(HO([],YI(t),!1),YI(Array.isArray(r)?BU(r):[r]),!1)},[])}function nF(e){var t=e.getAsFile();if(!t)return Promise.reject("".concat(e," is not a File"));var r=zb(t);return Promise.resolve(r)}function hhe(e){return nv(this,void 0,void 0,function(){return rv(this,function(t){return[2,e.isDirectory?UU(e):mhe(e)]})})}function UU(e){var t=e.createReader();return new Promise(function(r,i){var s=[];function c(){var u=this;t.readEntries(function(h){return nv(u,void 0,void 0,function(){var m,v,b;return rv(this,function(x){switch(x.label){case 0:if(h.length)return[3,5];x.label=1;case 1:return x.trys.push([1,3,,4]),[4,Promise.all(s)];case 2:return m=x.sent(),r(m),[3,4];case 3:return v=x.sent(),i(v),[3,4];case 4:return[3,6];case 5:b=Promise.all(h.map(hhe)),s.push(b),c(),x.label=6;case 6:return[2]}})})},function(h){i(h)})}c()})}function mhe(e){return nv(this,void 0,void 0,function(){return rv(this,function(t){return[2,new Promise(function(r,i){e.file(function(s){var c=zb(s,e.fullPath);r(c)},function(s){i(s)})})]})})}var vhe=function(e,t){if(e&&t){var r=Array.isArray(t)?t:t.split(","),i=e.name||"",s=(e.type||"").toLowerCase(),c=s.replace(/\/.*$/,"");return r.some(function(u){var h=u.trim().toLowerCase();return h.charAt(0)==="."?i.toLowerCase().endsWith(h):h.endsWith("/*")?c===h.replace(/\/.*$/,""):s===h})}return!0};function rF(e){return bhe(e)||yhe(e)||$U(e)||ghe()}function ghe(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function yhe(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function bhe(e){if(Array.isArray(e))return t2(e)}function aF(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(s){return Object.getOwnPropertyDescriptor(e,s).enumerable})),r.push.apply(r,i)}return r}function iF(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?aF(Object(r),!0).forEach(function(i){jU(e,i,r[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):aF(Object(r)).forEach(function(i){Object.defineProperty(e,i,Object.getOwnPropertyDescriptor(r,i))})}return e}function jU(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function bb(e,t){return whe(e)||xhe(e,t)||$U(e,t)||She()}function She(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function $U(e,t){if(!!e){if(typeof e=="string")return t2(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return t2(e,t)}}function t2(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,i=new Array(t);r<t;r++)i[r]=e[r];return i}function xhe(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var i=[],s=!0,c=!1,u,h;try{for(r=r.call(e);!(s=(u=r.next()).done)&&(i.push(u.value),!(t&&i.length===t));s=!0);}catch(m){c=!0,h=m}finally{try{!s&&r.return!=null&&r.return()}finally{if(c)throw h}}return i}}function whe(e){if(Array.isArray(e))return e}var Che="file-invalid-type",_he="file-too-large",Ehe="file-too-small",The="too-many-files",Nhe=function(t){t=Array.isArray(t)&&t.length===1?t[0]:t;var r=Array.isArray(t)?"one of ".concat(t.join(", ")):t;return{code:Che,message:"File type must be ".concat(r)}},oF=function(t){return{code:_he,message:"File is larger than ".concat(t," ").concat(t===1?"byte":"bytes")}},sF=function(t){return{code:Ehe,message:"File is smaller than ".concat(t," ").concat(t===1?"byte":"bytes")}},Rhe={code:The,message:"Too many files"};function VU(e,t){var r=e.type==="application/x-moz-file"||vhe(e,t);return[r,r?null:Nhe(t)]}function HU(e,t,r){if(Ep(e.size))if(Ep(t)&&Ep(r)){if(e.size>r)return[!1,oF(r)];if(e.size<t)return[!1,sF(t)]}else{if(Ep(t)&&e.size<t)return[!1,sF(t)];if(Ep(r)&&e.size>r)return[!1,oF(r)]}return[!0,null]}function Ep(e){return e!=null}function Ohe(e){var t=e.files,r=e.accept,i=e.minSize,s=e.maxSize,c=e.multiple,u=e.maxFiles,h=e.validator;return!c&&t.length>1||c&&u>=1&&t.length>u?!1:t.every(function(m){var v=VU(m,r),b=bb(v,1),x=b[0],C=HU(m,i,s),_=bb(C,1),R=_[0],A=h?h(m):null;return x&&R&&!A})}function Ew(e){return typeof e.isPropagationStopped=="function"?e.isPropagationStopped():typeof e.cancelBubble<"u"?e.cancelBubble:!1}function yx(e){return e.dataTransfer?Array.prototype.some.call(e.dataTransfer.types,function(t){return t==="Files"||t==="application/x-moz-file"}):!!e.target&&!!e.target.files}function lF(e){e.preventDefault()}function Ahe(e){return e.indexOf("MSIE")!==-1||e.indexOf("Trident/")!==-1}function khe(e){return e.indexOf("Edge/")!==-1}function Dhe(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:window.navigator.userAgent;return Ahe(e)||khe(e)}function nu(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return function(i){for(var s=arguments.length,c=new Array(s>1?s-1:0),u=1;u<s;u++)c[u-1]=arguments[u];return t.some(function(h){return!Ew(i)&&h&&h.apply(void 0,[i].concat(c)),Ew(i)})}}function Phe(){return"showOpenFilePicker"in window}function Mhe(e){if(Ep(e)){var t=Object.entries(e).filter(function(r){var i=bb(r,2),s=i[0],c=i[1],u=!0;return WU(s)||(console.warn('Skipped "'.concat(s,'" because it is not a valid MIME type. Check https://developer.mozilla.org/en-US/docs/Web/HTTP/Basics_of_HTTP/MIME_types/Common_types for a list of valid MIME types.')),u=!1),(!Array.isArray(c)||!c.every(GU))&&(console.warn('Skipped "'.concat(s,'" because an invalid file extension was provided.')),u=!1),u}).reduce(function(r,i){var s=bb(i,2),c=s[0],u=s[1];return iF(iF({},r),{},jU({},c,u))},{});return[{accept:t}]}return e}function Ihe(e){if(Ep(e))return Object.entries(e).reduce(function(t,r){var i=bb(r,2),s=i[0],c=i[1];return[].concat(rF(t),[s],rF(c))},[]).filter(function(t){return WU(t)||GU(t)}).join(",")}function Lhe(e){return e instanceof DOMException&&(e.name==="AbortError"||e.code===e.ABORT_ERR)}function Fhe(e){return e instanceof DOMException&&(e.name==="SecurityError"||e.code===e.SECURITY_ERR)}function WU(e){return e==="audio/*"||e==="video/*"||e==="image/*"||e==="text/*"||/\w+\/[-+.\w]+/g.test(e)}function GU(e){return/^.*\.[\w]+$/.test(e)}var zhe="/Users/spencer/Documents/Code/stable-diffusion/frontend/node_modules/react-dropzone/dist/es/index.js",Bhe=["children"],Uhe=["open"],jhe=["refKey","role","onKeyDown","onFocus","onBlur","onClick","onDragEnter","onDragOver","onDragLeave","onDrop"],$he=["refKey","onChange","onClick"];function Vhe(e){return Ghe(e)||Whe(e)||YU(e)||Hhe()}function Hhe(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Whe(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function Ghe(e){if(Array.isArray(e))return n2(e)}function EO(e,t){return Khe(e)||qhe(e,t)||YU(e,t)||Yhe()}function Yhe(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function YU(e,t){if(!!e){if(typeof e=="string")return n2(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return n2(e,t)}}function n2(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,i=new Array(t);r<t;r++)i[r]=e[r];return i}function qhe(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var i=[],s=!0,c=!1,u,h;try{for(r=r.call(e);!(s=(u=r.next()).done)&&(i.push(u.value),!(t&&i.length===t));s=!0);}catch(m){c=!0,h=m}finally{try{!s&&r.return!=null&&r.return()}finally{if(c)throw h}}return i}}function Khe(e){if(Array.isArray(e))return e}function uF(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(s){return Object.getOwnPropertyDescriptor(e,s).enumerable})),r.push.apply(r,i)}return r}function Mr(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?uF(Object(r),!0).forEach(function(i){r2(e,i,r[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):uF(Object(r)).forEach(function(i){Object.defineProperty(e,i,Object.getOwnPropertyDescriptor(r,i))})}return e}function r2(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Tw(e,t){if(e==null)return{};var r=Xhe(e,t),i,s;if(Object.getOwnPropertySymbols){var c=Object.getOwnPropertySymbols(e);for(s=0;s<c.length;s++)i=c[s],!(t.indexOf(i)>=0)&&(!Object.prototype.propertyIsEnumerable.call(e,i)||(r[i]=e[i]))}return r}function Xhe(e,t){if(e==null)return{};var r={},i=Object.keys(e),s,c;for(c=0;c<i.length;c++)s=i[c],!(t.indexOf(s)>=0)&&(r[s]=e[s]);return r}var Qk=D.exports.forwardRef(function(e,t){var r=e.children,i=Tw(e,Bhe),s=Jk(i),c=s.open,u=Tw(s,Uhe);return D.exports.useImperativeHandle(t,function(){return{open:c}},[c]),k(D.exports.Fragment,{children:r(Mr(Mr({},u),{},{open:c}))},void 0,!1,{fileName:zhe,lineNumber:70,columnNumber:23},this)});Qk.displayName="Dropzone";var qU={disabled:!1,getFilesFromEvent:she,maxSize:1/0,minSize:0,multiple:!0,maxFiles:0,preventDropOnDocument:!0,noClick:!1,noKeyboard:!1,noDrag:!1,noDragEventsBubbling:!1,validator:null,useFsAccessApi:!0,autoFocus:!1};Qk.defaultProps=qU;Qk.propTypes={children:_t.exports.func,accept:_t.exports.objectOf(_t.exports.arrayOf(_t.exports.string)),multiple:_t.exports.bool,preventDropOnDocument:_t.exports.bool,noClick:_t.exports.bool,noKeyboard:_t.exports.bool,noDrag:_t.exports.bool,noDragEventsBubbling:_t.exports.bool,minSize:_t.exports.number,maxSize:_t.exports.number,maxFiles:_t.exports.number,disabled:_t.exports.bool,getFilesFromEvent:_t.exports.func,onFileDialogCancel:_t.exports.func,onFileDialogOpen:_t.exports.func,useFsAccessApi:_t.exports.bool,autoFocus:_t.exports.bool,onDragEnter:_t.exports.func,onDragLeave:_t.exports.func,onDragOver:_t.exports.func,onDrop:_t.exports.func,onDropAccepted:_t.exports.func,onDropRejected:_t.exports.func,onError:_t.exports.func,validator:_t.exports.func};var a2={isFocused:!1,isFileDialogActive:!1,isDragActive:!1,isDragAccept:!1,isDragReject:!1,acceptedFiles:[],fileRejections:[]};function Jk(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=Mr(Mr({},qU),e),r=t.accept,i=t.disabled,s=t.getFilesFromEvent,c=t.maxSize,u=t.minSize,h=t.multiple,m=t.maxFiles,v=t.onDragEnter,b=t.onDragLeave,x=t.onDragOver,C=t.onDrop,_=t.onDropAccepted,R=t.onDropRejected,A=t.onFileDialogCancel,M=t.onFileDialogOpen,j=t.useFsAccessApi,I=t.autoFocus,z=t.preventDropOnDocument,B=t.noClick,$=t.noKeyboard,K=t.noDrag,X=t.noDragEventsBubbling,de=t.onError,ve=t.validator,se=D.exports.useMemo(function(){return Ihe(r)},[r]),be=D.exports.useMemo(function(){return Mhe(r)},[r]),Xe=D.exports.useMemo(function(){return typeof M=="function"?M:cF},[M]),ie=D.exports.useMemo(function(){return typeof A=="function"?A:cF},[A]),ce=D.exports.useRef(null),Re=D.exports.useRef(null),Ce=D.exports.useReducer(Zhe,a2),oe=EO(Ce,2),Se=oe[0],Te=oe[1],pe=Se.isFocused,we=Se.isFileDialogActive,Ie=D.exports.useRef(typeof window<"u"&&window.isSecureContext&&j&&Phe()),Le=function(){!Ie.current&&we&&setTimeout(function(){if(Re.current){var Ze=Re.current.files;Ze.length||(Te({type:"closeDialog"}),ie())}},300)};D.exports.useEffect(function(){return window.addEventListener("focus",Le,!1),function(){window.removeEventListener("focus",Le,!1)}},[Re,we,ie,Ie]);var Ye=D.exports.useRef([]),st=function(Ze){ce.current&&ce.current.contains(Ze.target)||(Ze.preventDefault(),Ye.current=[])};D.exports.useEffect(function(){return z&&(document.addEventListener("dragover",lF,!1),document.addEventListener("drop",st,!1)),function(){z&&(document.removeEventListener("dragover",lF),document.removeEventListener("drop",st))}},[ce,z]),D.exports.useEffect(function(){return!i&&I&&ce.current&&ce.current.focus(),function(){}},[ce,I,i]);var mt=D.exports.useCallback(function(Ve){de?de(Ve):console.error(Ve)},[de]),Gt=D.exports.useCallback(function(Ve){Ve.preventDefault(),Ve.persist(),Bt(Ve),Ye.current=[].concat(Vhe(Ye.current),[Ve.target]),yx(Ve)&&Promise.resolve(s(Ve)).then(function(Ze){if(!(Ew(Ve)&&!X)){var Jt=Ze.length,Tt=Jt>0&&Ohe({files:Ze,accept:se,minSize:u,maxSize:c,multiple:h,maxFiles:m,validator:ve}),ke=Jt>0&&!Tt;Te({isDragAccept:Tt,isDragReject:ke,isDragActive:!0,type:"setDraggedFiles"}),v&&v(Ve)}}).catch(function(Ze){return mt(Ze)})},[s,v,mt,X,se,u,c,h,m,ve]),Qe=D.exports.useCallback(function(Ve){Ve.preventDefault(),Ve.persist(),Bt(Ve);var Ze=yx(Ve);if(Ze&&Ve.dataTransfer)try{Ve.dataTransfer.dropEffect="copy"}catch{}return Ze&&x&&x(Ve),!1},[x,X]),vt=D.exports.useCallback(function(Ve){Ve.preventDefault(),Ve.persist(),Bt(Ve);var Ze=Ye.current.filter(function(Tt){return ce.current&&ce.current.contains(Tt)}),Jt=Ze.indexOf(Ve.target);Jt!==-1&&Ze.splice(Jt,1),Ye.current=Ze,!(Ze.length>0)&&(Te({type:"setDraggedFiles",isDragActive:!1,isDragAccept:!1,isDragReject:!1}),yx(Ve)&&b&&b(Ve))},[ce,b,X]),Et=D.exports.useCallback(function(Ve,Ze){var Jt=[],Tt=[];Ve.forEach(function(ke){var jt=VU(ke,se),xn=EO(jt,2),je=xn[0],rt=xn[1],xt=HU(ke,u,c),dn=EO(xt,2),Xt=dn[0],wn=dn[1],kn=ve?ve(ke):null;if(je&&Xt&&!kn)Jt.push(ke);else{var Nr=[rt,wn];kn&&(Nr=Nr.concat(kn)),Tt.push({file:ke,errors:Nr.filter(function(Tn){return Tn})})}}),(!h&&Jt.length>1||h&&m>=1&&Jt.length>m)&&(Jt.forEach(function(ke){Tt.push({file:ke,errors:[Rhe]})}),Jt.splice(0)),Te({acceptedFiles:Jt,fileRejections:Tt,type:"setFiles"}),C&&C(Jt,Tt,Ze),Tt.length>0&&R&&R(Tt,Ze),Jt.length>0&&_&&_(Jt,Ze)},[Te,h,se,u,c,m,C,_,R,ve]),zt=D.exports.useCallback(function(Ve){Ve.preventDefault(),Ve.persist(),Bt(Ve),Ye.current=[],yx(Ve)&&Promise.resolve(s(Ve)).then(function(Ze){Ew(Ve)&&!X||Et(Ze,Ve)}).catch(function(Ze){return mt(Ze)}),Te({type:"reset"})},[s,Et,mt,X]),We=D.exports.useCallback(function(){if(Ie.current){Te({type:"openDialog"}),Xe();var Ve={multiple:h,types:be};window.showOpenFilePicker(Ve).then(function(Ze){return s(Ze)}).then(function(Ze){Et(Ze,null),Te({type:"closeDialog"})}).catch(function(Ze){Lhe(Ze)?(ie(Ze),Te({type:"closeDialog"})):Fhe(Ze)?(Ie.current=!1,Re.current?(Re.current.value=null,Re.current.click()):mt(new Error("Cannot open the file picker because the https://developer.mozilla.org/en-US/docs/Web/API/File_System_Access_API is not supported and no <input> was provided."))):mt(Ze)});return}Re.current&&(Te({type:"openDialog"}),Xe(),Re.current.value=null,Re.current.click())},[Te,Xe,ie,j,Et,mt,be,h]),Yt=D.exports.useCallback(function(Ve){!ce.current||!ce.current.isEqualNode(Ve.target)||(Ve.key===" "||Ve.key==="Enter"||Ve.keyCode===32||Ve.keyCode===13)&&(Ve.preventDefault(),We())},[ce,We]),ye=D.exports.useCallback(function(){Te({type:"focus"})},[]),Mt=D.exports.useCallback(function(){Te({type:"blur"})},[]),Kt=D.exports.useCallback(function(){B||(Dhe()?setTimeout(We,0):We())},[B,We]),St=function(Ze){return i?null:Ze},ar=function(Ze){return $?null:St(Ze)},ir=function(Ze){return K?null:St(Ze)},Bt=function(Ze){X&&Ze.stopPropagation()},fn=D.exports.useMemo(function(){return function(){var Ve=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},Ze=Ve.refKey,Jt=Ze===void 0?"ref":Ze,Tt=Ve.role,ke=Ve.onKeyDown,jt=Ve.onFocus,xn=Ve.onBlur,je=Ve.onClick,rt=Ve.onDragEnter,xt=Ve.onDragOver,dn=Ve.onDragLeave,Xt=Ve.onDrop,wn=Tw(Ve,jhe);return Mr(Mr(r2({onKeyDown:ar(nu(ke,Yt)),onFocus:ar(nu(jt,ye)),onBlur:ar(nu(xn,Mt)),onClick:St(nu(je,Kt)),onDragEnter:ir(nu(rt,Gt)),onDragOver:ir(nu(xt,Qe)),onDragLeave:ir(nu(dn,vt)),onDrop:ir(nu(Xt,zt)),role:typeof Tt=="string"&&Tt!==""?Tt:"presentation"},Jt,ce),!i&&!$?{tabIndex:0}:{}),wn)}},[ce,Yt,ye,Mt,Kt,Gt,Qe,vt,zt,$,K,i]),An=D.exports.useCallback(function(Ve){Ve.stopPropagation()},[]),hn=D.exports.useMemo(function(){return function(){var Ve=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},Ze=Ve.refKey,Jt=Ze===void 0?"ref":Ze,Tt=Ve.onChange,ke=Ve.onClick,jt=Tw(Ve,$he),xn=r2({accept:se,multiple:h,type:"file",style:{display:"none"},onChange:St(nu(Tt,zt)),onClick:St(nu(ke,An)),tabIndex:-1},Jt,Re);return Mr(Mr({},xn),jt)}},[Re,r,h,zt,i]);return Mr(Mr({},Se),{},{isFocused:pe&&!i,getRootProps:fn,getInputProps:hn,rootRef:ce,inputRef:Re,open:St(We)})}function Zhe(e,t){switch(t.type){case"focus":return Mr(Mr({},e),{},{isFocused:!0});case"blur":return Mr(Mr({},e),{},{isFocused:!1});case"openDialog":return Mr(Mr({},a2),{},{isFileDialogActive:!0});case"closeDialog":return Mr(Mr({},e),{},{isFileDialogActive:!1});case"setDraggedFiles":return Mr(Mr({},e),{},{isDragActive:t.isDragActive,isDragAccept:t.isDragAccept,isDragReject:t.isDragReject});case"setFiles":return Mr(Mr({},e),{},{acceptedFiles:t.acceptedFiles,fileRejections:t.fileRejections});case"reset":return Mr({},a2);default:return e}}function cF(){}var fF="/Users/spencer/Documents/Code/stable-diffusion/frontend/src/features/sd/MaskUploader.tsx";const Qhe=({children:e})=>{const t=ja(),r=k6(),i=D.exports.useCallback((m,v)=>{v.forEach(b=>{const x=b.errors.reduce((C,_)=>C+`
|
|
`+_.message,"");r({title:"Upload failed",description:x,status:"error",isClosable:!0})}),m.forEach(b=>{t(Ide(b))})},[t,r]),{getRootProps:s,getInputProps:c,open:u}=Jk({onDrop:i,accept:{"image/jpeg":[".jpg",".jpeg",".png"]}}),h=m=>{m.stopPropagation(),u()};return k("div",{...s(),children:[k("input",{...c({multiple:!1})},void 0,!1,{fileName:fF,lineNumber:53,columnNumber:13},void 0),D.exports.cloneElement(e,{onClick:h})]},void 0,!0,{fileName:fF,lineNumber:52,columnNumber:9},void 0)};var xl="/Users/spencer/Documents/Code/stable-diffusion/frontend/src/features/sd/InitImage.tsx";const Jhe=Qr(e=>e.sd,e=>({initialImagePath:e.initialImagePath,maskPath:e.maskPath}),{memoizeOptions:{resultEqualityCheck:ua.exports.isEqual}}),eme=()=>{const e=k6(),t=ja(),{initialImagePath:r,maskPath:i}=Tr(Jhe),s=D.exports.useCallback((M,j)=>{j.forEach(I=>{const z=I.errors.reduce((B,$)=>B+`
|
|
`+$.message,"");e({title:"Upload failed",description:z,status:"error",isClosable:!0})}),M.forEach(I=>{t(Mde(I))})},[t,e]),{getRootProps:c,getInputProps:u,open:h}=Jk({onDrop:s,accept:{"image/jpeg":[".jpg",".jpeg",".png"]}}),[m,v]=D.exports.useState(!1),b=M=>{M.stopPropagation(),h()},x=M=>{M.stopPropagation(),t(qk("")),t(iU(""))},C=()=>v(!1),_=()=>v(!0),R=()=>v(!0),A=()=>v(!0);return k(Ln,{...c({onClick:r?M=>M.stopPropagation():void 0}),direction:"column",alignItems:"center",gap:2,children:[k("input",{...u({multiple:!1})},void 0,!1,{fileName:xl,lineNumber:97,columnNumber:7},void 0),k(Ln,{gap:2,justifyContent:"space-between",width:"100%",children:[k(Gm,{size:"sm",fontSize:"md",fontWeight:"normal",onClick:b,onMouseOver:C,onMouseOut:_,children:"Upload Image"},void 0,!1,{fileName:xl,lineNumber:99,columnNumber:9},void 0),k(Qhe,{children:k(Gm,{size:"sm",fontSize:"md",fontWeight:"normal",onClick:b,onMouseOver:R,onMouseOut:A,children:"Upload Mask"},void 0,!1,{fileName:xl,lineNumber:111,columnNumber:11},void 0)},void 0,!1,{fileName:xl,lineNumber:110,columnNumber:9},void 0),k(Ps,{size:"sm","aria-label":"Reset initial image and mask",onClick:x,icon:k(FU,{},void 0,!1,{fileName:xl,lineNumber:126,columnNumber:17},void 0)},void 0,!1,{fileName:xl,lineNumber:122,columnNumber:9},void 0)]},void 0,!0,{fileName:xl,lineNumber:98,columnNumber:7},void 0),r&&k(Ln,{position:"relative",width:"100%",children:[k(lb,{fit:"contain",src:r,rounded:"md",className:"checkerboard"},void 0,!1,{fileName:xl,lineNumber:131,columnNumber:11},void 0),m&&i&&k(lb,{position:"absolute",top:0,left:0,fit:"contain",src:i,rounded:"md",zIndex:1,className:"checkerboard"},void 0,!1,{fileName:xl,lineNumber:138,columnNumber:13},void 0)]},void 0,!0,{fileName:xl,lineNumber:130,columnNumber:9},void 0)]},void 0,!0,{fileName:xl,lineNumber:89,columnNumber:5},void 0)};var bx="/Users/spencer/Documents/Code/stable-diffusion/frontend/src/features/sd/ImageToImageOptions.tsx";const tme=Qr(e=>e.sd,e=>({initialImagePath:e.initialImagePath,img2imgStrength:e.img2imgStrength,shouldFitToWidthHeight:e.shouldFitToWidthHeight})),nme=()=>{const{initialImagePath:e,img2imgStrength:t,shouldFitToWidthHeight:r}=Tr(tme),i=ja();return k(Ln,{direction:"column",gap:2,children:[k(zf,{isDisabled:!e,label:"Strength",step:.01,min:0,max:1,onChange:s=>i(efe(Number(s))),value:t},void 0,!1,{fileName:bx,lineNumber:32,columnNumber:13},void 0),k(ww,{isDisabled:!e,label:"Fit initial image to output size",isChecked:r,onChange:s=>i(ofe(s.target.checked))},void 0,!1,{fileName:bx,lineNumber:41,columnNumber:13},void 0),k(eme,{},void 0,!1,{fileName:bx,lineNumber:49,columnNumber:13},void 0)]},void 0,!0,{fileName:bx,lineNumber:31,columnNumber:9},void 0)};var Ht="/Users/spencer/Documents/Code/stable-diffusion/frontend/src/features/sd/OptionsAccordion.tsx";const rme=Qr(e=>e.sd,e=>({initialImagePath:e.initialImagePath,shouldUseInitImage:e.shouldUseInitImage,shouldRunESRGAN:e.shouldRunESRGAN,shouldRunGFPGAN:e.shouldRunGFPGAN}),{memoizeOptions:{resultEqualityCheck:ua.exports.isEqual}}),ame=Qr(e=>e.system,e=>({isGFPGANAvailable:e.isGFPGANAvailable,isESRGANAvailable:e.isESRGANAvailable,openAccordions:e.openAccordions}),{memoizeOptions:{resultEqualityCheck:ua.exports.isEqual}}),ime=()=>{const{shouldRunESRGAN:e,shouldRunGFPGAN:t,shouldUseInitImage:r,initialImagePath:i}=Tr(rme),{isGFPGANAvailable:s,isESRGANAvailable:c,openAccordions:u}=Tr(ame),h=ja();return k(Cz,{defaultIndex:u,allowMultiple:!0,reduceMotion:!0,onChange:m=>h(zfe(m)),children:[k(Sp,{children:[k("h2",{children:k(yp,{children:[k(Ap,{flex:"1",textAlign:"left",children:"Seed & Variation"},void 0,!1,{fileName:Ht,lineNumber:90,columnNumber:25},void 0),k(bp,{},void 0,!1,{fileName:Ht,lineNumber:93,columnNumber:25},void 0)]},void 0,!0,{fileName:Ht,lineNumber:89,columnNumber:21},void 0)},void 0,!1,{fileName:Ht,lineNumber:88,columnNumber:17},void 0),k(xp,{children:k(Ype,{},void 0,!1,{fileName:Ht,lineNumber:97,columnNumber:21},void 0)},void 0,!1,{fileName:Ht,lineNumber:96,columnNumber:17},void 0)]},void 0,!0,{fileName:Ht,lineNumber:87,columnNumber:13},void 0),k(Sp,{children:[k("h2",{children:k(yp,{children:[k(Ap,{flex:"1",textAlign:"left",children:"Sampler"},void 0,!1,{fileName:Ht,lineNumber:103,columnNumber:25},void 0),k(bp,{},void 0,!1,{fileName:Ht,lineNumber:106,columnNumber:25},void 0)]},void 0,!0,{fileName:Ht,lineNumber:102,columnNumber:21},void 0)},void 0,!1,{fileName:Ht,lineNumber:101,columnNumber:17},void 0),k(xp,{children:k(Kpe,{},void 0,!1,{fileName:Ht,lineNumber:110,columnNumber:21},void 0)},void 0,!1,{fileName:Ht,lineNumber:109,columnNumber:17},void 0)]},void 0,!0,{fileName:Ht,lineNumber:100,columnNumber:13},void 0),k(Sp,{children:[k("h2",{children:k(yp,{children:[k(Ln,{justifyContent:"space-between",alignItems:"center",width:"100%",mr:2,children:[k(Ir,{children:"Upscale (ESRGAN)"},void 0,!1,{fileName:Ht,lineNumber:122,columnNumber:29},void 0),k(Dp,{isDisabled:!c,isChecked:e,onChange:m=>h(dfe(m.target.checked))},void 0,!1,{fileName:Ht,lineNumber:123,columnNumber:29},void 0)]},void 0,!0,{fileName:Ht,lineNumber:116,columnNumber:25},void 0),k(bp,{},void 0,!1,{fileName:Ht,lineNumber:133,columnNumber:25},void 0)]},void 0,!0,{fileName:Ht,lineNumber:115,columnNumber:21},void 0)},void 0,!1,{fileName:Ht,lineNumber:114,columnNumber:17},void 0),k(xp,{children:k(Qpe,{},void 0,!1,{fileName:Ht,lineNumber:137,columnNumber:21},void 0)},void 0,!1,{fileName:Ht,lineNumber:136,columnNumber:17},void 0)]},void 0,!0,{fileName:Ht,lineNumber:113,columnNumber:13},void 0),k(Sp,{children:[k("h2",{children:k(yp,{children:[k(Ln,{justifyContent:"space-between",alignItems:"center",width:"100%",mr:2,children:[k(Ir,{children:"Fix Faces (GFPGAN)"},void 0,!1,{fileName:Ht,lineNumber:149,columnNumber:29},void 0),k(Dp,{isDisabled:!s,isChecked:t,onChange:m=>h(ffe(m.target.checked))},void 0,!1,{fileName:Ht,lineNumber:150,columnNumber:29},void 0)]},void 0,!0,{fileName:Ht,lineNumber:143,columnNumber:25},void 0),k(bp,{},void 0,!1,{fileName:Ht,lineNumber:160,columnNumber:25},void 0)]},void 0,!0,{fileName:Ht,lineNumber:142,columnNumber:21},void 0)},void 0,!1,{fileName:Ht,lineNumber:141,columnNumber:17},void 0),k(xp,{children:k(the,{},void 0,!1,{fileName:Ht,lineNumber:164,columnNumber:21},void 0)},void 0,!1,{fileName:Ht,lineNumber:163,columnNumber:17},void 0)]},void 0,!0,{fileName:Ht,lineNumber:140,columnNumber:13},void 0),k(Sp,{children:[k("h2",{children:k(yp,{children:[k(Ln,{justifyContent:"space-between",alignItems:"center",width:"100%",mr:2,children:[k(Ir,{children:"Image to Image"},void 0,!1,{fileName:Ht,lineNumber:176,columnNumber:29},void 0),k(Dp,{isDisabled:!i,isChecked:r,onChange:m=>h(afe(m.target.checked))},void 0,!1,{fileName:Ht,lineNumber:177,columnNumber:29},void 0)]},void 0,!0,{fileName:Ht,lineNumber:170,columnNumber:25},void 0),k(bp,{},void 0,!1,{fileName:Ht,lineNumber:187,columnNumber:25},void 0)]},void 0,!0,{fileName:Ht,lineNumber:169,columnNumber:21},void 0)},void 0,!1,{fileName:Ht,lineNumber:168,columnNumber:17},void 0),k(xp,{children:k(nme,{},void 0,!1,{fileName:Ht,lineNumber:191,columnNumber:21},void 0)},void 0,!1,{fileName:Ht,lineNumber:190,columnNumber:17},void 0)]},void 0,!0,{fileName:Ht,lineNumber:167,columnNumber:13},void 0),k(Sp,{children:[k("h2",{children:k(yp,{children:[k(Ap,{flex:"1",textAlign:"left",children:"Output"},void 0,!1,{fileName:Ht,lineNumber:197,columnNumber:25},void 0),k(bp,{},void 0,!1,{fileName:Ht,lineNumber:200,columnNumber:25},void 0)]},void 0,!0,{fileName:Ht,lineNumber:196,columnNumber:21},void 0)},void 0,!1,{fileName:Ht,lineNumber:195,columnNumber:17},void 0),k(xp,{children:k(rhe,{},void 0,!1,{fileName:Ht,lineNumber:204,columnNumber:21},void 0)},void 0,!1,{fileName:Ht,lineNumber:203,columnNumber:17},void 0)]},void 0,!0,{fileName:Ht,lineNumber:194,columnNumber:13},void 0)]},void 0,!0,{fileName:Ht,lineNumber:79,columnNumber:9},void 0)};var Oi="/Users/spencer/Documents/Code/stable-diffusion/frontend/src/App.tsx";const ome=()=>{const e=ja();return D.exports.useEffect(()=>{e(Dde())},[e]),k(bo,{children:[k(ak,{width:"100vw",height:"100vh",templateAreas:`
|
|
"header header header header"
|
|
"progressBar progressBar progressBar progressBar"
|
|
"menu prompt processButtons imageRoll"
|
|
"menu currentImage currentImage imageRoll"`,gridTemplateRows:"36px 10px 100px auto",gridTemplateColumns:"350px auto 100px 388px",gap:2,children:[k(Tf,{area:"header",pt:1,children:k(Wpe,{},void 0,!1,{fileName:Oi,lineNumber:34,columnNumber:21},void 0)},void 0,!1,{fileName:Oi,lineNumber:33,columnNumber:17},void 0),k(Tf,{area:"progressBar",children:k(Dpe,{},void 0,!1,{fileName:Oi,lineNumber:37,columnNumber:21},void 0)},void 0,!1,{fileName:Oi,lineNumber:36,columnNumber:17},void 0),k(Tf,{pl:"2",area:"menu",overflowY:"scroll",children:k(ime,{},void 0,!1,{fileName:Oi,lineNumber:40,columnNumber:21},void 0)},void 0,!1,{fileName:Oi,lineNumber:39,columnNumber:17},void 0),k(Tf,{area:"prompt",children:k(Ope,{},void 0,!1,{fileName:Oi,lineNumber:43,columnNumber:21},void 0)},void 0,!1,{fileName:Oi,lineNumber:42,columnNumber:17},void 0),k(Tf,{area:"processButtons",children:k(Fpe,{},void 0,!1,{fileName:Oi,lineNumber:46,columnNumber:21},void 0)},void 0,!1,{fileName:Oi,lineNumber:45,columnNumber:17},void 0),k(Tf,{area:"currentImage",children:k(_pe,{},void 0,!1,{fileName:Oi,lineNumber:49,columnNumber:21},void 0)},void 0,!1,{fileName:Oi,lineNumber:48,columnNumber:17},void 0),k(Tf,{pr:"2",area:"imageRoll",overflowY:"scroll",children:k(Bpe,{},void 0,!1,{fileName:Oi,lineNumber:52,columnNumber:21},void 0)},void 0,!1,{fileName:Oi,lineNumber:51,columnNumber:17},void 0)]},void 0,!0,{fileName:Oi,lineNumber:21,columnNumber:13},void 0),k(Npe,{},void 0,!1,{fileName:Oi,lineNumber:55,columnNumber:13},void 0)]},void 0,!0)},dF=yue({config:{initialColorMode:"dark",useSystemColorMode:!1},components:{Tooltip:{baseStyle:e=>({textColor:e.colorMode==="dark"?"gray.800":"gray.100"})},Accordion:{baseStyle:e=>({button:{fontWeight:"bold",_hover:{bgColor:e.colorMode==="dark"?"rgba(255,255,255,0.05)":"rgba(0,0,0,0.05)"}},panel:{paddingBottom:2}})},FormLabel:{baseStyle:{fontWeight:"light"}}}});var pF="/Users/spencer/Documents/Code/stable-diffusion/frontend/src/Loading.tsx";const sme=()=>k(Ln,{width:"100vw",height:"100vh",alignItems:"center",justifyContent:"center",children:k(Xw,{thickness:"2px",speed:"1s",emptyColor:"gray.200",color:"gray.400",size:"xl"},void 0,!1,{fileName:pF,lineNumber:11,columnNumber:13},void 0)},void 0,!1,{fileName:pF,lineNumber:5,columnNumber:9},void 0);var gp="/Users/spencer/Documents/Code/stable-diffusion/frontend/src/main.tsx";const KU=kce(EU);NO.createRoot(document.getElementById("root")).render(k(Ue.StrictMode,{children:k(Jde,{store:EU,children:k(MU,{loading:k(sme,{},void 0,!1,{fileName:gp,lineNumber:18,columnNumber:29},void 0),persistor:KU,children:k(gue,{theme:dF,children:[k(QV,{initialColorMode:dF.config.initialColorMode},void 0,!1,{fileName:gp,lineNumber:20,columnNumber:11},void 0),k(ome,{},void 0,!1,{fileName:gp,lineNumber:21,columnNumber:11},void 0)]},void 0,!0,{fileName:gp,lineNumber:19,columnNumber:9},void 0)},void 0,!1,{fileName:gp,lineNumber:18,columnNumber:7},void 0)},void 0,!1,{fileName:gp,lineNumber:17,columnNumber:5},void 0)},void 0,!1,{fileName:gp,lineNumber:16,columnNumber:3},void 0));
|